Store Undo Redo para Angular | ng-hub-ui-history
Store de undo y redo para Angular con APIs compatibles con Signals, transacciones, límites y soporte para formularios reactivos.
Referencia API
Inputs
createHistoryStore(config)
Tipo: HistoryStoreConfig<T, K>
Creates a signal-based store with optional limits and custom diff/patch functions.
registerObject(id, initialState) (Obligatorio)
Tipo: (id: K, initialState: T) => void
Registers object base state and starts linear history for that key.
commit(id, newState, options?) (Obligatorio)
Tipo: (id: K, state: T, options?: { label?: string }) => boolean
Stores diff patch, invalidates redo branch if pointer was not at tail.
watchForm(id, form, options?)
Tipo: (id: K, form: FormGroup, options?: WatchFormOptions) => () => void
Automatically commits form value changes and returns unsubscribe callback.
Outputs
states
Tipo: Signal<Map<K, T>>
Reactive signal map with current immutable snapshots per object id.
Templates
Todavía no hay templates documentados.
Variables CSS
Todavía no hay variables CSS documentadas.
Estilos y theming
Todavía no hay ejemplos de estilos documentados. Esta sección incluirá recetas de personalización y ejemplos de theming.