@3kles/kles-material-dynamicforms 19.3.2 → 19.4.1
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.
- package/fesm2022/3kles-kles-material-dynamicforms.mjs +1572 -1123
- package/fesm2022/3kles-kles-material-dynamicforms.mjs.map +1 -1
- package/lib/controls/control.abstract.d.ts +5 -5
- package/lib/decorators/component.decorator.d.ts +4 -1
- package/lib/directive/dynamic-field.directive.d.ts +3 -1
- package/lib/dynamic-form.component.d.ts +4 -0
- package/lib/factories/field.factory.d.ts +3 -2
- package/lib/fields/array.component.d.ts +3 -0
- package/lib/fields/checkbox.component.d.ts +2 -0
- package/lib/fields/date.component.d.ts +1 -1
- package/lib/fields/field.abstract.d.ts +23 -9
- package/lib/fields/group.component.d.ts +2 -0
- package/lib/fields/icon.component.d.ts +1 -1
- package/lib/fields/input.clearable.component.d.ts +1 -5
- package/lib/fields/input.component.d.ts +3 -4
- package/lib/fields/label.component.d.ts +2 -1
- package/lib/fields/list-field.component.d.ts +3 -5
- package/lib/fields/select.component.d.ts +3 -5
- package/lib/fields/select.lazy-search.component.d.ts +1 -6
- package/lib/fields/select.search.component.d.ts +3 -5
- package/lib/fields/subfields/clear.component.d.ts +14 -9
- package/lib/fields/subfields/copy.component.d.ts +18 -0
- package/lib/fields/subfields/password-visibility.component.d.ts +6 -6
- package/lib/interfaces/field.config.interface.d.ts +38 -35
- package/lib/kles-material-dynamicforms.module.d.ts +3 -7
- package/lib/token.d.ts +9 -0
- package/lib/ui/array.ui.d.ts +5 -0
- package/lib/ui/default.ui.d.ts +5 -0
- package/lib/ui/group.ui.d.ts +5 -0
- package/lib/ui/ui-state/array-ui-state.d.ts +9 -0
- package/lib/ui/ui-state/control-ui-state.d.ts +7 -0
- package/lib/ui/ui-state/group-ui-state.d.ts +13 -0
- package/lib/ui/ui-state/ui-state.abstract.d.ts +11 -0
- package/lib/ui/ui.abstract.d.ts +8 -0
- package/lib/ui/ui.interface.d.ts +4 -0
- package/package.json +1 -1
- package/public-api.d.ts +11 -1
- package/lib/fields/copy.component.d.ts +0 -20
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ɵTypedOrUntyped } from '@angular/forms';
|
|
2
|
+
import { AbstractUiState } from './ui-state.abstract';
|
|
3
|
+
export declare class GroupUiState<TUiState extends {
|
|
4
|
+
[K in keyof TUiState]: AbstractUiState<any>;
|
|
5
|
+
} = any> extends AbstractUiState<any, any> {
|
|
6
|
+
states: ɵTypedOrUntyped<TUiState, TUiState, {
|
|
7
|
+
[key: string]: AbstractUiState<any>;
|
|
8
|
+
}>;
|
|
9
|
+
setValue(value: any): void;
|
|
10
|
+
patchValue(value: any): void;
|
|
11
|
+
_find(name: string | number): AbstractUiState | null;
|
|
12
|
+
addUiState(name: any, uiState: any): void;
|
|
13
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Signal } from '@angular/core';
|
|
2
|
+
import { ɵGetProperty } from '@angular/forms';
|
|
3
|
+
export declare abstract class AbstractUiState<TValue = any, TRawValue extends TValue = TValue> {
|
|
4
|
+
protected _value: import("@angular/core").WritableSignal<TValue>;
|
|
5
|
+
get<P extends string | readonly (string | number)[]>(path: P): AbstractUiState<ɵGetProperty<TRawValue, P>> | null;
|
|
6
|
+
get<P extends string | Array<string | number>>(path: P): AbstractUiState<ɵGetProperty<TRawValue, P>> | null;
|
|
7
|
+
_find(name: string | number): AbstractUiState | null;
|
|
8
|
+
abstract setValue(value: TRawValue): void;
|
|
9
|
+
abstract patchValue(value: TValue): void;
|
|
10
|
+
get value(): Signal<TValue>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IKlesFieldConfig } from '../interfaces/field.config.interface';
|
|
2
|
+
import { AbstractUiState } from './ui-state/ui-state.abstract';
|
|
3
|
+
import { IKlesUi } from './ui.interface';
|
|
4
|
+
export declare abstract class KlesAbstractFormUiControl implements IKlesUi {
|
|
5
|
+
protected field: IKlesFieldConfig;
|
|
6
|
+
constructor(field: IKlesFieldConfig);
|
|
7
|
+
abstract create(): AbstractUiState;
|
|
8
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -49,7 +49,7 @@ export * from './lib/fields/button-fab.component';
|
|
|
49
49
|
export * from './lib/fields/button-mini-fab.component';
|
|
50
50
|
export * from './lib/fields/button-icon.component';
|
|
51
51
|
export * from './lib/fields/selection-list.search.component';
|
|
52
|
-
export * from './lib/fields/copy.component';
|
|
52
|
+
export * from './lib/fields/subfields/copy.component';
|
|
53
53
|
export * from './lib/fields/subfields/password-visibility.component';
|
|
54
54
|
/**ENUMS */
|
|
55
55
|
export * from './lib/enums/type.enum';
|
|
@@ -87,3 +87,13 @@ export * from './lib/selection/selection-model';
|
|
|
87
87
|
export * from './lib/utils/destroyable.guard';
|
|
88
88
|
/**INTL */
|
|
89
89
|
export * from './lib/dynamic-form-intl';
|
|
90
|
+
/**UI */
|
|
91
|
+
export * from './lib/ui/array.ui';
|
|
92
|
+
export * from './lib/ui/default.ui';
|
|
93
|
+
export * from './lib/ui/group.ui';
|
|
94
|
+
export * from './lib/ui/ui.abstract';
|
|
95
|
+
export * from './lib/ui/ui.interface';
|
|
96
|
+
export * from './lib/ui/ui-state/array-ui-state';
|
|
97
|
+
export * from './lib/ui/ui-state/control-ui-state';
|
|
98
|
+
export * from './lib/ui/ui-state/group-ui-state';
|
|
99
|
+
export * from './lib/ui/ui-state/ui-state.abstract';
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { UntypedFormGroup } from '@angular/forms';
|
|
3
|
-
import { MatTooltip } from '@angular/material/tooltip';
|
|
4
|
-
import { Clipboard } from '@angular/cdk/clipboard';
|
|
5
|
-
import { IKlesFieldConfig } from '../interfaces/field.config.interface';
|
|
6
|
-
import { IKlesField } from '../interfaces/field.interface';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class KlesFormCopyComponent implements OnInit, IKlesField {
|
|
9
|
-
private clipBoard;
|
|
10
|
-
tooltip: MatTooltip;
|
|
11
|
-
field: IKlesFieldConfig;
|
|
12
|
-
group: UntypedFormGroup;
|
|
13
|
-
siblingFields: IKlesFieldConfig[];
|
|
14
|
-
tooltipText: string;
|
|
15
|
-
constructor(clipBoard: Clipboard);
|
|
16
|
-
ngOnInit(): void;
|
|
17
|
-
copy(event: any): void;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<KlesFormCopyComponent, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KlesFormCopyComponent, "kles-form-copy", never, { "field": { "alias": "field"; "required": false; }; "group": { "alias": "group"; "required": false; }; "siblingFields": { "alias": "siblingFields"; "required": false; }; }, {}, never, never, true, never>;
|
|
20
|
-
}
|