@ngstarter-ui/components 21.0.63 → 21.0.64
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/ai/component-registry.json +13 -0
- package/fesm2022/ngstarter-ui-components-datepicker.mjs +6 -5
- package/fesm2022/ngstarter-ui-components-datepicker.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-form-builder.mjs +930 -22
- package/fesm2022/ngstarter-ui-components-form-builder.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-select.mjs +15 -5
- package/fesm2022/ngstarter-ui-components-select.mjs.map +1 -1
- package/package.json +1 -1
- package/types/ngstarter-ui-components-datepicker.d.ts +2 -2
- package/types/ngstarter-ui-components-form-builder.d.ts +177 -5
- package/types/ngstarter-ui-components-select.d.ts +2 -0
|
@@ -99,11 +99,68 @@ interface FormBuilderFlow {
|
|
|
99
99
|
mode: 'single' | 'steps';
|
|
100
100
|
steps?: FormBuilderStep[];
|
|
101
101
|
}
|
|
102
|
+
type FormBuilderLogicCondition = {
|
|
103
|
+
type: 'expression';
|
|
104
|
+
expression: string;
|
|
105
|
+
} | {
|
|
106
|
+
type: 'field';
|
|
107
|
+
fieldId: string;
|
|
108
|
+
operator: FormBuilderLogicConditionOperator | '';
|
|
109
|
+
value?: unknown;
|
|
110
|
+
} | {
|
|
111
|
+
type: 'all';
|
|
112
|
+
conditions: FormBuilderLogicCondition[];
|
|
113
|
+
} | {
|
|
114
|
+
type: 'any';
|
|
115
|
+
conditions: FormBuilderLogicCondition[];
|
|
116
|
+
};
|
|
117
|
+
type FormBuilderLogicConditionOperator = 'equals' | 'notEquals' | 'contains' | 'notContains' | 'empty' | 'notEmpty' | 'greaterThan' | 'lessThan' | 'before' | 'after';
|
|
118
|
+
type FormBuilderLogicTargetKind = 'field' | 'section';
|
|
119
|
+
type FormBuilderLogicAction = {
|
|
120
|
+
type: '';
|
|
121
|
+
targetId: '';
|
|
122
|
+
targetKind?: FormBuilderLogicTargetKind;
|
|
123
|
+
} | {
|
|
124
|
+
type: 'show' | 'hide';
|
|
125
|
+
targetId: string;
|
|
126
|
+
targetKind?: FormBuilderLogicTargetKind;
|
|
127
|
+
} | {
|
|
128
|
+
type: 'enable' | 'disable';
|
|
129
|
+
targetId: string;
|
|
130
|
+
targetKind?: FormBuilderLogicTargetKind;
|
|
131
|
+
} | {
|
|
132
|
+
type: 'readonly' | 'editable';
|
|
133
|
+
targetId: string;
|
|
134
|
+
targetKind?: FormBuilderLogicTargetKind;
|
|
135
|
+
} | {
|
|
136
|
+
type: 'require' | 'optional';
|
|
137
|
+
targetId: string;
|
|
138
|
+
targetKind?: FormBuilderLogicTargetKind;
|
|
139
|
+
} | {
|
|
140
|
+
type: 'setValue';
|
|
141
|
+
targetId: string;
|
|
142
|
+
targetKind?: FormBuilderLogicTargetKind;
|
|
143
|
+
expression: string;
|
|
144
|
+
} | {
|
|
145
|
+
type: 'clearValue';
|
|
146
|
+
targetId: string;
|
|
147
|
+
targetKind?: FormBuilderLogicTargetKind;
|
|
148
|
+
};
|
|
149
|
+
interface FormBuilderLogicRule {
|
|
150
|
+
id: string;
|
|
151
|
+
name?: string;
|
|
152
|
+
enabled?: boolean;
|
|
153
|
+
priority?: number;
|
|
154
|
+
when: FormBuilderLogicCondition;
|
|
155
|
+
actions: FormBuilderLogicAction[];
|
|
156
|
+
elseActions?: FormBuilderLogicAction[];
|
|
157
|
+
}
|
|
102
158
|
interface FormBuilderSchema {
|
|
103
159
|
title?: string;
|
|
104
160
|
fields?: FormBuilderField[];
|
|
105
161
|
layout?: FormBuilderLayoutItem[];
|
|
106
162
|
flow?: FormBuilderFlow;
|
|
163
|
+
logic?: FormBuilderLogicRule[];
|
|
107
164
|
sections: FormBuilderSection[];
|
|
108
165
|
}
|
|
109
166
|
interface FormBuilderFieldRenderContext {
|
|
@@ -187,6 +244,34 @@ interface FormBuilderCalculationEngine {
|
|
|
187
244
|
evaluate(expression: string, context: FormBuilderCalculationContext): FormBuilderCalculationResult;
|
|
188
245
|
dependencies?(expression: string, fields: FormBuilderField[]): string[];
|
|
189
246
|
}
|
|
247
|
+
interface FormBuilderLogicContext {
|
|
248
|
+
fields: FormBuilderField[];
|
|
249
|
+
sections?: FormBuilderSection[];
|
|
250
|
+
values: Record<string, any>;
|
|
251
|
+
calculationEngine: FormBuilderCalculationEngine;
|
|
252
|
+
}
|
|
253
|
+
interface FormBuilderLogicFieldState {
|
|
254
|
+
hidden?: boolean;
|
|
255
|
+
disabled?: boolean;
|
|
256
|
+
readonly?: boolean;
|
|
257
|
+
required?: boolean;
|
|
258
|
+
value?: any;
|
|
259
|
+
hasValue?: boolean;
|
|
260
|
+
errors?: string[];
|
|
261
|
+
}
|
|
262
|
+
interface FormBuilderLogicError {
|
|
263
|
+
ruleId: string;
|
|
264
|
+
targetId?: string;
|
|
265
|
+
message: string;
|
|
266
|
+
}
|
|
267
|
+
interface FormBuilderLogicEvaluation {
|
|
268
|
+
fields: Record<string, FormBuilderLogicFieldState>;
|
|
269
|
+
sections: Record<string, FormBuilderLogicFieldState>;
|
|
270
|
+
errors: FormBuilderLogicError[];
|
|
271
|
+
}
|
|
272
|
+
interface FormBuilderLogicEngine {
|
|
273
|
+
evaluate(rules: FormBuilderLogicRule[], context: FormBuilderLogicContext): FormBuilderLogicEvaluation;
|
|
274
|
+
}
|
|
190
275
|
|
|
191
276
|
declare const FORM_BUILDER_ITEMS: InjectionToken<FormBuilderItemDefinition[]>;
|
|
192
277
|
declare const FORM_BUILDER_FIELDS: InjectionToken<FormBuilderFieldDefinition[]>;
|
|
@@ -195,6 +280,7 @@ declare const FORM_BUILDER_UPLOAD_CALLBACK: InjectionToken<FormBuilderUploadCall
|
|
|
195
280
|
declare const FORM_BUILDER_SELECT_DATA_SOURCES: InjectionToken<FormBuilderSelectDataSourceDefinition[]>;
|
|
196
281
|
declare const FORM_BUILDER_VALIDATORS: InjectionToken<FormBuilderValidatorDefinition[]>;
|
|
197
282
|
declare const FORM_BUILDER_CALCULATION_ENGINE: InjectionToken<FormBuilderCalculationEngine>;
|
|
283
|
+
declare const FORM_BUILDER_LOGIC_ENGINE: InjectionToken<FormBuilderLogicEngine>;
|
|
198
284
|
declare function formBuilderField(definition: FormBuilderFieldDefinition): FormBuilderFieldDefinition;
|
|
199
285
|
declare function formBuilderItem(definition: FormBuilderItemDefinition): FormBuilderItemDefinition;
|
|
200
286
|
declare function formBuilderSettings(definition: FormBuilderSettingsDefinition): FormBuilderSettingsDefinition;
|
|
@@ -212,6 +298,7 @@ declare function provideFormBuilder(config?: {
|
|
|
212
298
|
selectDataSources?: FormBuilderSelectDataSourceDefinition[];
|
|
213
299
|
validators?: FormBuilderValidatorDefinition[];
|
|
214
300
|
calculationEngine?: FormBuilderCalculationEngine;
|
|
301
|
+
logicEngine?: FormBuilderLogicEngine;
|
|
215
302
|
uploadCallback?: FormBuilderUploadCallback;
|
|
216
303
|
}): EnvironmentProviders;
|
|
217
304
|
declare const FORM_BUILDER_FIELD_BASE_SETTINGS_SCHEMA: FormBuilderSchema;
|
|
@@ -229,6 +316,8 @@ declare function asyncValidatorsFromRules(rules?: FormBuilderValidationRule[], f
|
|
|
229
316
|
|
|
230
317
|
declare const DEFAULT_FORM_BUILDER_CALCULATION_ENGINE: FormBuilderCalculationEngine;
|
|
231
318
|
|
|
319
|
+
declare const DEFAULT_FORM_BUILDER_LOGIC_ENGINE: FormBuilderLogicEngine;
|
|
320
|
+
|
|
232
321
|
interface FormBuilderPaletteGroup {
|
|
233
322
|
name: string;
|
|
234
323
|
fields: FormBuilderFieldDefinition[];
|
|
@@ -373,6 +462,7 @@ declare class FormBuilder implements OnDestroy {
|
|
|
373
462
|
protected removeSection(section: FormBuilderSection): void;
|
|
374
463
|
protected updateSection(section: FormBuilderSection, changes: Partial<FormBuilderSection>): void;
|
|
375
464
|
protected updateStep(step: FormBuilderStep, changes: Partial<FormBuilderStep>): void;
|
|
465
|
+
protected updateLogic(logic: FormBuilderLogicRule[]): void;
|
|
376
466
|
protected removeStep(step: FormBuilderStep): void;
|
|
377
467
|
protected isSectionCollapsed(section: FormBuilderSection): boolean;
|
|
378
468
|
protected selectField(field: FormBuilderField, section?: FormBuilderSection): void;
|
|
@@ -474,12 +564,82 @@ declare class FormBuilder implements OnDestroy {
|
|
|
474
564
|
}
|
|
475
565
|
declare function createDefaultFormBuilderSchema(): FormBuilderSchema;
|
|
476
566
|
|
|
567
|
+
type FormBuilderLogicActionBranch = 'actions' | 'elseActions';
|
|
568
|
+
type FormBuilderLogicActionType = Exclude<FormBuilderLogicAction['type'], ''>;
|
|
569
|
+
type FormBuilderLogicConditionMode = Exclude<FormBuilderLogicCondition['type'], 'field'>;
|
|
570
|
+
interface FormBuilderLogicTargetOption {
|
|
571
|
+
kind: FormBuilderLogicTargetKind;
|
|
572
|
+
id: string;
|
|
573
|
+
name: string;
|
|
574
|
+
label: string;
|
|
575
|
+
type: string;
|
|
576
|
+
depth: number;
|
|
577
|
+
}
|
|
477
578
|
declare class FormLogic {
|
|
579
|
+
private readonly dialog;
|
|
478
580
|
readonly schema: _angular_core.InputSignal<FormBuilderSchema | null>;
|
|
581
|
+
readonly logic: _angular_core.ModelSignal<FormBuilderLogicRule[]>;
|
|
479
582
|
readonly title: _angular_core.InputSignal<string>;
|
|
480
583
|
readonly description: _angular_core.InputSignal<string>;
|
|
584
|
+
protected readonly conditionTypeOptions: {
|
|
585
|
+
label: string;
|
|
586
|
+
value: FormBuilderLogicConditionMode;
|
|
587
|
+
}[];
|
|
588
|
+
protected readonly conditionOperatorOptions: {
|
|
589
|
+
label: string;
|
|
590
|
+
value: FormBuilderLogicConditionOperator;
|
|
591
|
+
}[];
|
|
592
|
+
protected readonly draftRule: _angular_core.WritableSignal<FormBuilderLogicRule | null>;
|
|
593
|
+
protected readonly selectedRuleId: _angular_core.WritableSignal<string | null>;
|
|
594
|
+
protected readonly rules: _angular_core.Signal<FormBuilderLogicRule[]>;
|
|
595
|
+
protected readonly targetOptions: _angular_core.Signal<FormBuilderLogicTargetOption[]>;
|
|
596
|
+
protected readonly selectedRule: _angular_core.Signal<FormBuilderLogicRule | null>;
|
|
597
|
+
protected openAddRuleDialog(template: TemplateRef<unknown>): void;
|
|
598
|
+
protected openRuleEditorDialog(rule: FormBuilderLogicRule, template: TemplateRef<unknown>, ariaLabel?: string): void;
|
|
599
|
+
protected duplicateRule(rule: FormBuilderLogicRule): void;
|
|
600
|
+
protected removeRule(rule: FormBuilderLogicRule): void;
|
|
601
|
+
protected moveRule(rule: FormBuilderLogicRule, direction: -1 | 1): void;
|
|
602
|
+
protected selectRule(rule: FormBuilderLogicRule): void;
|
|
603
|
+
protected isFirstRule(rule: FormBuilderLogicRule): boolean;
|
|
604
|
+
protected isLastRule(rule: FormBuilderLogicRule): boolean;
|
|
605
|
+
protected isDraftRule(rule: FormBuilderLogicRule): boolean;
|
|
606
|
+
protected saveRuleDialog(rule: FormBuilderLogicRule): void;
|
|
607
|
+
protected discardDraftRule(): void;
|
|
608
|
+
protected updateRule(rule: FormBuilderLogicRule, changes: Partial<FormBuilderLogicRule>): void;
|
|
609
|
+
protected setConditionType(rule: FormBuilderLogicRule, type: FormBuilderLogicConditionMode): void;
|
|
610
|
+
protected updateConditionExpression(rule: FormBuilderLogicRule, expression: string, index?: number): void;
|
|
611
|
+
protected addCondition(rule: FormBuilderLogicRule): void;
|
|
612
|
+
protected removeCondition(rule: FormBuilderLogicRule, index: number): void;
|
|
613
|
+
protected conditionsFor(rule: FormBuilderLogicRule): FormBuilderLogicCondition[];
|
|
614
|
+
protected fieldOptions(): FormBuilderLogicTargetOption[];
|
|
615
|
+
protected conditionFieldValue(condition: FormBuilderLogicCondition): string;
|
|
616
|
+
protected conditionOperatorValue(condition: FormBuilderLogicCondition): FormBuilderLogicConditionOperator | '';
|
|
617
|
+
protected conditionValue(condition: FormBuilderLogicCondition): string;
|
|
618
|
+
protected conditionNeedsValue(condition: FormBuilderLogicCondition): boolean;
|
|
619
|
+
protected updateConditionField(rule: FormBuilderLogicRule, index: number, fieldId: string): void;
|
|
620
|
+
protected updateConditionOperator(rule: FormBuilderLogicRule, index: number, operator: FormBuilderLogicConditionOperator): void;
|
|
621
|
+
protected updateConditionValue(rule: FormBuilderLogicRule, index: number, value: string): void;
|
|
622
|
+
protected actionsFor(rule: FormBuilderLogicRule, branch: FormBuilderLogicActionBranch): FormBuilderLogicAction[];
|
|
623
|
+
protected addAction(rule: FormBuilderLogicRule, branch: FormBuilderLogicActionBranch): void;
|
|
624
|
+
protected updateActionType(rule: FormBuilderLogicRule, branch: FormBuilderLogicActionBranch, index: number, type: FormBuilderLogicActionType): void;
|
|
625
|
+
protected updateActionTarget(rule: FormBuilderLogicRule, branch: FormBuilderLogicActionBranch, index: number, value: string): void;
|
|
626
|
+
protected updateActionExpression(rule: FormBuilderLogicRule, branch: FormBuilderLogicActionBranch, index: number, expression: string): void;
|
|
627
|
+
protected removeAction(rule: FormBuilderLogicRule, branch: FormBuilderLogicActionBranch, index: number): void;
|
|
628
|
+
protected conditionLabel(condition: FormBuilderLogicCondition): string;
|
|
629
|
+
protected actionLabel(action: FormBuilderLogicAction): string;
|
|
630
|
+
protected actionTypeOptionsForTarget(kind: FormBuilderLogicTargetKind | undefined): {
|
|
631
|
+
label: string;
|
|
632
|
+
value: FormBuilderLogicActionType;
|
|
633
|
+
}[];
|
|
634
|
+
protected actionTargetValue(action: FormBuilderLogicAction): string;
|
|
635
|
+
protected targetOptionLabel(option: FormBuilderLogicTargetOption): string;
|
|
636
|
+
protected fieldOptionLabel(option: FormBuilderLogicTargetOption): string;
|
|
637
|
+
private targetLabel;
|
|
638
|
+
private updateAction;
|
|
639
|
+
private updateFieldCondition;
|
|
640
|
+
private replaceRule;
|
|
481
641
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormLogic, never>;
|
|
482
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormLogic, "ngs-form-logic", ["ngsFormLogic"], { "schema": { "alias": "schema"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
642
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormLogic, "ngs-form-logic", ["ngsFormLogic"], { "schema": { "alias": "schema"; "required": false; "isSignal": true; }; "logic": { "alias": "logic"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; }, { "logic": "logicChange"; }, never, never, true, never>;
|
|
483
643
|
}
|
|
484
644
|
|
|
485
645
|
interface FormRendererCanvasItem extends FormBuilderLayoutItem {
|
|
@@ -494,7 +654,10 @@ declare class FormRenderer {
|
|
|
494
654
|
private readonly providedFields;
|
|
495
655
|
private readonly providedValidators;
|
|
496
656
|
private readonly calculationEngine;
|
|
657
|
+
private readonly logicEngine;
|
|
497
658
|
private readonly orphanControls;
|
|
659
|
+
private readonly logicEvaluations;
|
|
660
|
+
private readonly logicVersion;
|
|
498
661
|
readonly schema: _angular_core.InputSignal<FormBuilderSchema>;
|
|
499
662
|
readonly flow: _angular_core.InputSignal<FormBuilderFlow | null | undefined>;
|
|
500
663
|
readonly items: _angular_core.InputSignal<FormBuilderLayoutItem[] | null | undefined>;
|
|
@@ -515,7 +678,14 @@ declare class FormRenderer {
|
|
|
515
678
|
constructor();
|
|
516
679
|
protected getControl(field: FormBuilderField, formGroup?: FormGroup<any>): FormControl;
|
|
517
680
|
protected isContainerField(field: FormBuilderField): boolean;
|
|
518
|
-
protected visibleChildren(field: FormBuilderField): FormBuilderField[];
|
|
681
|
+
protected visibleChildren(field: FormBuilderField, formGroup?: FormGroup<any>): FormBuilderField[];
|
|
682
|
+
protected fieldVisible(field: FormBuilderField, formGroup?: FormGroup<any>): boolean;
|
|
683
|
+
protected sectionVisible(section: FormBuilderSection, formGroup?: FormGroup<any>): boolean;
|
|
684
|
+
protected effectiveField(field: FormBuilderField, formGroup?: FormGroup<any>): FormBuilderField;
|
|
685
|
+
protected fieldReadonly(field: FormBuilderField, formGroup?: FormGroup<any>): boolean;
|
|
686
|
+
private logicState;
|
|
687
|
+
private sectionLogicState;
|
|
688
|
+
private effectiveFieldFromState;
|
|
519
689
|
protected isRepeaterField(field: FormBuilderField): boolean;
|
|
520
690
|
protected repeaterArray(field: FormBuilderField, formGroup?: FormGroup<any>): FormArray<FormGroup>;
|
|
521
691
|
protected repeaterGroups(field: FormBuilderField, formGroup?: FormGroup<any>): FormGroup[];
|
|
@@ -528,8 +698,10 @@ declare class FormRenderer {
|
|
|
528
698
|
private addFieldsToControls;
|
|
529
699
|
private createRepeaterArray;
|
|
530
700
|
private createRepeaterGroup;
|
|
531
|
-
private
|
|
701
|
+
private applyRuntime;
|
|
532
702
|
private applyRepeaterCalculations;
|
|
703
|
+
private applyLogic;
|
|
704
|
+
private applyLogicControlEffects;
|
|
533
705
|
private applyCalculatedFields;
|
|
534
706
|
private applyPlainTextFields;
|
|
535
707
|
private renderPlainTextTemplate;
|
|
@@ -730,5 +902,5 @@ declare class BasicFormBuilderSectionSettings {
|
|
|
730
902
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BasicFormBuilderSectionSettings, "ngs-basic-form-builder-section-settings", ["ngsBasicFormBuilderSectionSettings"], { "section": { "alias": "section"; "required": true; "isSignal": true; }; "update": { "alias": "update"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
731
903
|
}
|
|
732
904
|
|
|
733
|
-
export { BasicFormBuilderFieldSettings, BasicFormBuilderLayoutSettings, BasicFormBuilderSectionSettings, DEFAULT_FORM_BUILDER_CALCULATION_ENGINE, DEFAULT_FORM_BUILDER_FIELDS, DEFAULT_FORM_BUILDER_ITEMS, DEFAULT_FORM_BUILDER_VALIDATORS, FORM_BUILDER_CALCULATION_ENGINE, FORM_BUILDER_FIELDS, FORM_BUILDER_FIELD_BASE_SETTINGS_SCHEMA, FORM_BUILDER_INPUT_FIELD_BASE_SETTINGS_SCHEMA, FORM_BUILDER_ITEMS, FORM_BUILDER_LAYOUT_BASE_SETTINGS_SCHEMA, FORM_BUILDER_LAYOUT_CONTAINER_BASE_SETTINGS_SCHEMA, FORM_BUILDER_SECTION_BASE_SETTINGS_SCHEMA, FORM_BUILDER_SELECT_DATA_SOURCES, FORM_BUILDER_SETTINGS, FORM_BUILDER_STATIC_BASE_SETTINGS_SCHEMA, FORM_BUILDER_UPLOAD_CALLBACK, FORM_BUILDER_VALIDATORS, FormBuilder, FormBuilderFieldHost, FormBuilderSettingsHost, FormLogic, FormRenderer, asyncValidatorsFromRules, createDefaultFormBuilderSchema, formBuilderField, formBuilderItem, formBuilderSettings, formBuilderValidator, mergeFormBuilderValidatorDefinitions, provideFormBuilder, provideFormBuilderField, provideFormBuilderFields, provideFormBuilderSelectDataSource, provideFormBuilderSelectDataSources, provideFormBuilderValidator, provideFormBuilderValidators, validatorsFromRules };
|
|
734
|
-
export type { FormBuilderCalculationContext, FormBuilderCalculationEngine, FormBuilderCalculationResult, FormBuilderComponentImporter, FormBuilderField, FormBuilderFieldChange, FormBuilderFieldDefinition, FormBuilderFieldRenderContext, FormBuilderFieldSettingsContext, FormBuilderFieldWidth, FormBuilderFlow, FormBuilderItemDefinition, FormBuilderItemKind, FormBuilderLayoutItem, FormBuilderOption, FormBuilderSchema, FormBuilderSection, FormBuilderSectionSettingsContext, FormBuilderSelectDataSourceDefinition, FormBuilderSelectDataSourceOptions, FormBuilderSelectOptionsSource, FormBuilderSettingsConfig, FormBuilderSettingsContext, FormBuilderSettingsDefinition, FormBuilderSettingsInheritance, FormBuilderSettingsSchemaFactory, FormBuilderStep, FormBuilderUploadCallback, FormBuilderUploadContext, FormBuilderValidationRule, FormBuilderValidatorDefinition, FormBuilderValidatorFactory, FormBuilderValidatorValueType };
|
|
905
|
+
export { BasicFormBuilderFieldSettings, BasicFormBuilderLayoutSettings, BasicFormBuilderSectionSettings, DEFAULT_FORM_BUILDER_CALCULATION_ENGINE, DEFAULT_FORM_BUILDER_FIELDS, DEFAULT_FORM_BUILDER_ITEMS, DEFAULT_FORM_BUILDER_LOGIC_ENGINE, DEFAULT_FORM_BUILDER_VALIDATORS, FORM_BUILDER_CALCULATION_ENGINE, FORM_BUILDER_FIELDS, FORM_BUILDER_FIELD_BASE_SETTINGS_SCHEMA, FORM_BUILDER_INPUT_FIELD_BASE_SETTINGS_SCHEMA, FORM_BUILDER_ITEMS, FORM_BUILDER_LAYOUT_BASE_SETTINGS_SCHEMA, FORM_BUILDER_LAYOUT_CONTAINER_BASE_SETTINGS_SCHEMA, FORM_BUILDER_LOGIC_ENGINE, FORM_BUILDER_SECTION_BASE_SETTINGS_SCHEMA, FORM_BUILDER_SELECT_DATA_SOURCES, FORM_BUILDER_SETTINGS, FORM_BUILDER_STATIC_BASE_SETTINGS_SCHEMA, FORM_BUILDER_UPLOAD_CALLBACK, FORM_BUILDER_VALIDATORS, FormBuilder, FormBuilderFieldHost, FormBuilderSettingsHost, FormLogic, FormRenderer, asyncValidatorsFromRules, createDefaultFormBuilderSchema, formBuilderField, formBuilderItem, formBuilderSettings, formBuilderValidator, mergeFormBuilderValidatorDefinitions, provideFormBuilder, provideFormBuilderField, provideFormBuilderFields, provideFormBuilderSelectDataSource, provideFormBuilderSelectDataSources, provideFormBuilderValidator, provideFormBuilderValidators, validatorsFromRules };
|
|
906
|
+
export type { FormBuilderCalculationContext, FormBuilderCalculationEngine, FormBuilderCalculationResult, FormBuilderComponentImporter, FormBuilderField, FormBuilderFieldChange, FormBuilderFieldDefinition, FormBuilderFieldRenderContext, FormBuilderFieldSettingsContext, FormBuilderFieldWidth, FormBuilderFlow, FormBuilderItemDefinition, FormBuilderItemKind, FormBuilderLayoutItem, FormBuilderLogicAction, FormBuilderLogicCondition, FormBuilderLogicConditionOperator, FormBuilderLogicContext, FormBuilderLogicEngine, FormBuilderLogicError, FormBuilderLogicEvaluation, FormBuilderLogicFieldState, FormBuilderLogicRule, FormBuilderLogicTargetKind, FormBuilderOption, FormBuilderSchema, FormBuilderSection, FormBuilderSectionSettingsContext, FormBuilderSelectDataSourceDefinition, FormBuilderSelectDataSourceOptions, FormBuilderSelectOptionsSource, FormBuilderSettingsConfig, FormBuilderSettingsContext, FormBuilderSettingsDefinition, FormBuilderSettingsInheritance, FormBuilderSettingsSchemaFactory, FormBuilderStep, FormBuilderUploadCallback, FormBuilderUploadContext, FormBuilderValidationRule, FormBuilderValidatorDefinition, FormBuilderValidatorFactory, FormBuilderValidatorValueType };
|
|
@@ -165,6 +165,7 @@ declare class Select implements ControlValueAccessor, OnDestroy, AfterContentIni
|
|
|
165
165
|
panel: _angular_core.Signal<ElementRef<HTMLElement> | undefined>;
|
|
166
166
|
origin: _angular_core.Signal<CdkOverlayOrigin | undefined>;
|
|
167
167
|
get overlayOrigin(): CdkOverlayOrigin | ElementRef;
|
|
168
|
+
private readonly _overlayWidth;
|
|
168
169
|
get overlayWidth(): string | number;
|
|
169
170
|
panelOpen: _angular_core.WritableSignal<boolean>;
|
|
170
171
|
_panelPosition: _angular_core.WritableSignal<"top" | "bottom">;
|
|
@@ -214,6 +215,7 @@ declare class Select implements ControlValueAccessor, OnDestroy, AfterContentIni
|
|
|
214
215
|
private updateErrorState;
|
|
215
216
|
toggle(): void;
|
|
216
217
|
open(): void;
|
|
218
|
+
private _updateOverlayWidth;
|
|
217
219
|
close(): void;
|
|
218
220
|
clear(event?: MouseEvent): void;
|
|
219
221
|
_onPositionChange(event: any): void;
|