@3kles/kles-material-dynamicforms 19.4.10 → 19.4.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,13 +1,14 @@
1
- import { Signal } from '@angular/core';
2
1
  import { AbstractUiState } from './ui-state.abstract';
3
2
  export declare class ArrayUiState<TItem extends AbstractUiState<any, any> = AbstractUiState<any, any>, TValue extends any[] = any[], TRawValue extends TValue = TValue> extends AbstractUiState<TValue, TRawValue> {
4
3
  states: TItem[];
5
- private readonly _computedValue;
6
4
  constructor(states?: TItem[]);
7
- get value(): Signal<any>;
8
5
  setValue(value: TRawValue): void;
9
6
  patchValue(value: Partial<TRawValue>): void;
7
+ childValueChanged(key: string | number, value: any): void;
10
8
  at(index: number): AbstractUiState;
11
9
  _find(name: string | number): AbstractUiState | null;
12
10
  push(control: TItem | TItem[]): void;
11
+ insert(index: number, state: TItem | TItem[]): void;
12
+ removeAt(index: number): void;
13
+ clear(): void;
13
14
  }
@@ -1,7 +1,9 @@
1
+ import { Signal } from '@angular/core';
1
2
  import { IKlesFieldUi } from '../../interfaces/field.config.interface';
2
3
  import { AbstractUiState } from './ui-state.abstract';
3
4
  export declare class ControlUiState<TValue extends IKlesFieldUi> extends AbstractUiState<TValue, TValue> {
4
5
  constructor(value?: TValue);
6
+ get value(): Signal<TValue | undefined>;
5
7
  setValue(value: TValue): void;
6
8
  patchValue(value: Partial<TValue> | TValue): void;
7
9
  }
@@ -1,18 +1,16 @@
1
1
  import { ɵTypedOrUntyped } from '@angular/forms';
2
2
  import { AbstractUiState } from './ui-state.abstract';
3
- import { Signal } from '@angular/core';
4
3
  export declare class GroupUiState<TUiState extends {
5
4
  [K in keyof TUiState]: AbstractUiState<any>;
6
5
  } = any> extends AbstractUiState<any, any> {
7
6
  states: ɵTypedOrUntyped<TUiState, TUiState, {
8
7
  [key: string]: AbstractUiState<any>;
9
8
  }>;
10
- private readonly _computedValue;
11
9
  constructor(states?: TUiState);
12
10
  setValue(value: any): void;
13
11
  patchValue(value: any): void;
12
+ childValueChanged(key: string | number, value: any): void;
14
13
  _find(name: string | number): AbstractUiState | null;
15
- addUiState(name: any, uiState: any): void;
16
- get value(): Signal<any>;
17
- private _snapshot;
14
+ addUiState(name: string, uiState: AbstractUiState<any>): void;
15
+ private buildInitialValue;
18
16
  }
@@ -2,10 +2,15 @@ import { Signal } from '@angular/core';
2
2
  import { ɵGetProperty } from '@angular/forms';
3
3
  export declare abstract class AbstractUiState<TValue = any, TRawValue extends TValue = TValue> {
4
4
  protected _value: import("@angular/core").WritableSignal<TValue>;
5
+ private _parent;
6
+ private _parentKey;
5
7
  get<P extends string | readonly (string | number)[]>(path: P): AbstractUiState<ɵGetProperty<TRawValue, P>> | null;
6
8
  get<P extends string | Array<string | number>>(path: P): AbstractUiState<ɵGetProperty<TRawValue, P>> | null;
7
9
  _find(name: string | number): AbstractUiState | null;
8
10
  abstract setValue(value: TRawValue): void;
9
11
  abstract patchValue(value: Partial<TValue>): void;
10
- get value(): Signal<TValue>;
12
+ get value(): Signal<TValue | undefined>;
13
+ setParent(parent: AbstractUiState<any>, key: string | number): void;
14
+ protected notifyParent(): void;
15
+ childValueChanged(key: string | number, value: any): void;
11
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@3kles/kles-material-dynamicforms",
3
- "version": "19.4.10",
3
+ "version": "19.4.13",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/3kles-lab/klesmaterialdynamicforms"