ui-core-abv 0.6.69 → 0.6.71
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/ui-core-abv.mjs +234 -103
- package/fesm2022/ui-core-abv.mjs.map +1 -1
- package/lib/components/dynamic-form/form-wrapper/form-wrapper.component.d.ts +7 -1
- package/lib/components/dynamic-form/form.models.d.ts +1 -0
- package/lib/components/inputs/file-input/file-input.component.d.ts +1 -0
- package/lib/components/tree-admin/tree-admin.component.d.ts +4 -0
- package/lib/components/user-formbuilder/block-editor/field-editor/field-editor.component.d.ts +6 -1
- package/lib/components/user-formbuilder/user-formbuilder.component.d.ts +9 -0
- package/package.json +1 -1
|
@@ -5,6 +5,7 @@ import { FormField, FormResult, FormSchema, uicFormValuesRecord } from '../form.
|
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class UicFormWrapperComponent implements OnInit, OnChanges, OnDestroy {
|
|
7
7
|
private readonly fb;
|
|
8
|
+
private readonly elementRef;
|
|
8
9
|
form: FormGroup;
|
|
9
10
|
effectiveSchema: FormSchema;
|
|
10
11
|
schema?: FormSchema;
|
|
@@ -16,14 +17,19 @@ export declare class UicFormWrapperComponent implements OnInit, OnChanges, OnDes
|
|
|
16
17
|
showButtons: boolean;
|
|
17
18
|
fillSelects: boolean;
|
|
18
19
|
initialValues: uicFormValuesRecord;
|
|
20
|
+
focusFieldName: string | null;
|
|
21
|
+
focusFieldTrigger: unknown;
|
|
19
22
|
fileUidResolverFn?: (fileUid: string) => void;
|
|
20
23
|
formSubmit: EventEmitter<FormResult>;
|
|
21
24
|
formChange: EventEmitter<uicFormValuesRecord>;
|
|
22
25
|
private formValueSub;
|
|
26
|
+
private hasFocusedCurrentTrigger;
|
|
23
27
|
ngOnInit(): void;
|
|
24
28
|
ngOnChanges(changes: SimpleChanges): void;
|
|
25
29
|
ngOnDestroy(): void;
|
|
26
30
|
private buildForm;
|
|
31
|
+
private focusConfiguredField;
|
|
32
|
+
private findFocusableFieldElement;
|
|
27
33
|
private updateDisabledState;
|
|
28
34
|
private updateExtenalData;
|
|
29
35
|
private mapValidatorsFromField;
|
|
@@ -53,5 +59,5 @@ export declare class UicFormWrapperComponent implements OnInit, OnChanges, OnDes
|
|
|
53
59
|
private setNestedValue;
|
|
54
60
|
private syncEffectiveSchema;
|
|
55
61
|
static ɵfac: i0.ɵɵFactoryDeclaration<UicFormWrapperComponent, never>;
|
|
56
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<UicFormWrapperComponent, "ui-form-wrapper", never, { "schema": { "alias": "schema"; "required": false; }; "fields": { "alias": "fields"; "required": false; }; "cols": { "alias": "cols"; "required": false; }; "externalData": { "alias": "externalData"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "showButtons": { "alias": "showButtons"; "required": false; }; "fillSelects": { "alias": "fillSelects"; "required": false; }; "initialValues": { "alias": "initialValues"; "required": false; }; "fileUidResolverFn": { "alias": "fileUidResolverFn"; "required": false; }; }, { "formSubmit": "formSubmit"; "formChange": "formChange"; }, never, never, true, never>;
|
|
62
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UicFormWrapperComponent, "ui-form-wrapper", never, { "schema": { "alias": "schema"; "required": false; }; "fields": { "alias": "fields"; "required": false; }; "cols": { "alias": "cols"; "required": false; }; "externalData": { "alias": "externalData"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "showButtons": { "alias": "showButtons"; "required": false; }; "fillSelects": { "alias": "fillSelects"; "required": false; }; "initialValues": { "alias": "initialValues"; "required": false; }; "focusFieldName": { "alias": "focusFieldName"; "required": false; }; "focusFieldTrigger": { "alias": "focusFieldTrigger"; "required": false; }; "fileUidResolverFn": { "alias": "fileUidResolverFn"; "required": false; }; }, { "formSubmit": "formSubmit"; "formChange": "formChange"; }, never, never, true, never>;
|
|
57
63
|
}
|
|
@@ -32,6 +32,7 @@ export declare class UicFileInputComponent extends base {
|
|
|
32
32
|
fileTypes: string[] | string | null;
|
|
33
33
|
fileUidResolverFn?: (fileUid: string) => void;
|
|
34
34
|
private fileInput?;
|
|
35
|
+
private readonly push;
|
|
35
36
|
value: UicFileInputValue[];
|
|
36
37
|
files: UicFileInputValue[];
|
|
37
38
|
isDragging: boolean;
|
|
@@ -37,6 +37,7 @@ export declare class UicTreeAdminComponent implements AfterViewChecked {
|
|
|
37
37
|
updateChildName(parent: TreeData, subitem: TreeData, event: Event): void;
|
|
38
38
|
updateFilter(event: Event): void;
|
|
39
39
|
clearFilter(): void;
|
|
40
|
+
getVisibleTree(): TreeData[];
|
|
40
41
|
getFilteredChildren(item: TreeData): TreeData[];
|
|
41
42
|
finalizeParentEdit(item: TreeData): void;
|
|
42
43
|
finalizeChildEdit(parent: TreeData, subitem: TreeData): void;
|
|
@@ -53,6 +54,7 @@ export declare class UicTreeAdminComponent implements AfterViewChecked {
|
|
|
53
54
|
private removeChild;
|
|
54
55
|
private isNewChild;
|
|
55
56
|
private hasDuplicateChildName;
|
|
57
|
+
private hasActiveFilter;
|
|
56
58
|
private cleanupPendingCreateIds;
|
|
57
59
|
static ɵfac: i0.ɵɵFactoryDeclaration<UicTreeAdminComponent, never>;
|
|
58
60
|
static ɵcmp: i0.ɵɵComponentDeclaration<UicTreeAdminComponent, "ui-tree-admin", never, { "searchEnabled": { "alias": "searchEnabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "emptyMessage": { "alias": "emptyMessage"; "required": false; }; "duplicateNameMessage": { "alias": "duplicateNameMessage"; "required": false; }; "tree": { "alias": "tree"; "required": false; }; }, { "edit": "edit"; "remove": "remove"; "deactivate": "deactivate"; "nameChange": "nameChange"; "create": "create"; }, never, never, true, never>;
|
|
@@ -61,6 +63,8 @@ export interface TreeData {
|
|
|
61
63
|
id: number | string;
|
|
62
64
|
name: string;
|
|
63
65
|
enabled: boolean;
|
|
66
|
+
tag?: string;
|
|
67
|
+
tagColor?: 'yellow' | 'red' | 'green' | 'blue';
|
|
64
68
|
children?: TreeData[];
|
|
65
69
|
}
|
|
66
70
|
export interface TreeActionEvent {
|
package/lib/components/user-formbuilder/block-editor/field-editor/field-editor.component.d.ts
CHANGED
|
@@ -4,8 +4,11 @@ import { EditableField } from '../../user-formbuilder.component';
|
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class FieldEditorComponent {
|
|
6
6
|
private readonly translateService;
|
|
7
|
+
private readonly elementRef;
|
|
8
|
+
private currentFieldCode;
|
|
7
9
|
hasOptions: import("@angular/core").Signal<boolean>;
|
|
8
10
|
config: import("@angular/core").InputSignal<EditableField>;
|
|
11
|
+
focusRequiredField: import("@angular/core").InputSignal<boolean>;
|
|
9
12
|
options: import("@angular/core").InputSignal<Record<string, AppSelectOption[]>>;
|
|
10
13
|
hiddenSections: import("@angular/core").WritableSignal<string[]>;
|
|
11
14
|
fieldChange: import("@angular/core").OutputEmitterRef<FormField>;
|
|
@@ -18,16 +21,18 @@ export declare class FieldEditorComponent {
|
|
|
18
21
|
branchInitialValues: import("@angular/core").Signal<uicFormValuesRecord>;
|
|
19
22
|
fieldType: import("@angular/core").Signal<import("ui-core-abv").FieldConfig | undefined>;
|
|
20
23
|
constructor();
|
|
24
|
+
private scrollPropertiesToTop;
|
|
21
25
|
updateRuleValue(fr: uicFormValuesRecord): void;
|
|
22
26
|
addRule(): void;
|
|
23
27
|
removeRule(): void;
|
|
24
28
|
updateFieldValues(fr: uicFormValuesRecord): void;
|
|
25
29
|
updateOptions(options: AppSelectOption[]): void;
|
|
30
|
+
private getDependencyFieldLabel;
|
|
26
31
|
toggleSection(section: string): void;
|
|
27
32
|
private buildRequiredFields;
|
|
28
33
|
private buildDesignBlocks;
|
|
29
34
|
private buildAdvancedBlocks;
|
|
30
35
|
private buildBranchFields;
|
|
31
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<FieldEditorComponent, never>;
|
|
32
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FieldEditorComponent, "lib-field-editor", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; }, { "fieldChange": "fieldChange"; }, never, never, true, never>;
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FieldEditorComponent, "lib-field-editor", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; "focusRequiredField": { "alias": "focusRequiredField"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; }, { "fieldChange": "fieldChange"; }, never, never, true, never>;
|
|
33
38
|
}
|
|
@@ -37,12 +37,21 @@ export declare class UicUserFormbuilderComponent {
|
|
|
37
37
|
editingSnapshot: import("@angular/core").WritableSignal<EditableForm | null>;
|
|
38
38
|
isReadOnly: import("@angular/core").WritableSignal<boolean>;
|
|
39
39
|
selectedField: import("@angular/core").WritableSignal<EditableField | null>;
|
|
40
|
+
focusNewFieldCode: import("@angular/core").WritableSignal<string | null>;
|
|
41
|
+
propertiesWidth: import("@angular/core").WritableSignal<number>;
|
|
40
42
|
previewSchema: import("@angular/core").Signal<FormSchema>;
|
|
43
|
+
private isResizingProperties;
|
|
44
|
+
private resizeStartX;
|
|
45
|
+
private resizeStartWidth;
|
|
41
46
|
dependencyOptions: import("@angular/core").Signal<Record<string, AppSelectOption[]>>;
|
|
42
47
|
constructor();
|
|
43
48
|
addBlock(): void;
|
|
44
49
|
deleteBlock(code: string): void;
|
|
45
50
|
addField(blockCode: string, newFieldType: FieldConfig): void;
|
|
51
|
+
selectField(field: EditableField | null): void;
|
|
52
|
+
startPropertiesResize(event: MouseEvent): void;
|
|
53
|
+
onPropertiesResize(event: MouseEvent): void;
|
|
54
|
+
stopPropertiesResize(): void;
|
|
46
55
|
printForm(): void;
|
|
47
56
|
submitForm(): void;
|
|
48
57
|
private getDuplicatedFieldName;
|