@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
|
@@ -4460,6 +4460,7 @@
|
|
|
4460
4460
|
"DEFAULT_FORM_BUILDER_CALCULATION_ENGINE",
|
|
4461
4461
|
"DEFAULT_FORM_BUILDER_FIELDS",
|
|
4462
4462
|
"DEFAULT_FORM_BUILDER_ITEMS",
|
|
4463
|
+
"DEFAULT_FORM_BUILDER_LOGIC_ENGINE",
|
|
4463
4464
|
"DEFAULT_FORM_BUILDER_VALIDATORS",
|
|
4464
4465
|
"FORM_BUILDER_CALCULATION_ENGINE",
|
|
4465
4466
|
"FORM_BUILDER_FIELD_BASE_SETTINGS_SCHEMA",
|
|
@@ -4468,6 +4469,7 @@
|
|
|
4468
4469
|
"FORM_BUILDER_ITEMS",
|
|
4469
4470
|
"FORM_BUILDER_LAYOUT_BASE_SETTINGS_SCHEMA",
|
|
4470
4471
|
"FORM_BUILDER_LAYOUT_CONTAINER_BASE_SETTINGS_SCHEMA",
|
|
4472
|
+
"FORM_BUILDER_LOGIC_ENGINE",
|
|
4471
4473
|
"FORM_BUILDER_SECTION_BASE_SETTINGS_SCHEMA",
|
|
4472
4474
|
"FORM_BUILDER_SELECT_DATA_SOURCES",
|
|
4473
4475
|
"FORM_BUILDER_SETTINGS",
|
|
@@ -4492,6 +4494,16 @@
|
|
|
4492
4494
|
"FormBuilderItemDefinition",
|
|
4493
4495
|
"FormBuilderItemKind",
|
|
4494
4496
|
"FormBuilderLayoutItem",
|
|
4497
|
+
"FormBuilderLogicAction",
|
|
4498
|
+
"FormBuilderLogicCondition",
|
|
4499
|
+
"FormBuilderLogicConditionOperator",
|
|
4500
|
+
"FormBuilderLogicContext",
|
|
4501
|
+
"FormBuilderLogicEngine",
|
|
4502
|
+
"FormBuilderLogicError",
|
|
4503
|
+
"FormBuilderLogicEvaluation",
|
|
4504
|
+
"FormBuilderLogicFieldState",
|
|
4505
|
+
"FormBuilderLogicRule",
|
|
4506
|
+
"FormBuilderLogicTargetKind",
|
|
4495
4507
|
"FormBuilderOption",
|
|
4496
4508
|
"FormBuilderSchema",
|
|
4497
4509
|
"FormBuilderSection",
|
|
@@ -4537,6 +4549,7 @@
|
|
|
4537
4549
|
"flow",
|
|
4538
4550
|
"inspectorTitle",
|
|
4539
4551
|
"items",
|
|
4552
|
+
"logic",
|
|
4540
4553
|
"paletteTitle",
|
|
4541
4554
|
"readonly",
|
|
4542
4555
|
"schema",
|
|
@@ -1026,16 +1026,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
1026
1026
|
class DatepickerToggle {
|
|
1027
1027
|
_intl = inject(DatepickerIntl);
|
|
1028
1028
|
_formField = inject(FORM_FIELD, { optional: true });
|
|
1029
|
-
for = input
|
|
1029
|
+
for = input(null, ...(ngDevMode ? [{ debugName: "for" }] : /* istanbul ignore next */ [])); // Reference to the datepicker
|
|
1030
1030
|
customIcon = contentChild(DatepickerToggleIcon, ...(ngDevMode ? [{ debugName: "customIcon" }] : /* istanbul ignore next */ []));
|
|
1031
1031
|
_open(event) {
|
|
1032
|
-
|
|
1033
|
-
|
|
1032
|
+
const datepicker = this.for();
|
|
1033
|
+
if (datepicker) {
|
|
1034
|
+
datepicker.open();
|
|
1034
1035
|
event.stopPropagation();
|
|
1035
1036
|
}
|
|
1036
1037
|
}
|
|
1037
1038
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DatepickerToggle, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1038
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", type: DatepickerToggle, isStandalone: true, selector: "ngs-datepicker-toggle", inputs: { for: { classPropertyName: "for", publicName: "for", isSignal: true, isRequired:
|
|
1039
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", type: DatepickerToggle, isStandalone: true, selector: "ngs-datepicker-toggle", inputs: { for: { classPropertyName: "for", publicName: "for", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "ngs-datepicker-toggle" }, queries: [{ propertyName: "customIcon", first: true, predicate: DatepickerToggleIcon, descendants: true, isSignal: true }], exportAs: ["ngsDatepickerToggle"], ngImport: i0, template: "<button ngsIconButton type=\"button\" (click)=\"_open($event)\" class=\"ngs-datepicker-toggle-button\">\n @if (customIcon()) {\n <ng-content select=\"[ngsDatepickerToggleIcon]\"/>\n } @else {\n <svg viewBox=\"0 0 24 24\" class=\"size-6\">\n <path fill=\"currentColor\"\n d=\"M17.75 3A3.25 3.25 0 0 1 21 6.25v11.5A3.25 3.25 0 0 1 17.75 21H6.25A3.25 3.25 0 0 1 3 17.75V6.25A3.25 3.25 0 0 1 6.25 3zm1.75 5.5h-15v9.25c0 .966.784 1.75 1.75 1.75h11.5a1.75 1.75 0 0 0 1.75-1.75zm-11.75 6a1.25 1.25 0 1 1 0 2.5a1.25 1.25 0 0 1 0-2.5m4.25 0a1.25 1.25 0 1 1 0 2.5a1.25 1.25 0 0 1 0-2.5m-4.25-4a1.25 1.25 0 1 1 0 2.5a1.25 1.25 0 0 1 0-2.5m4.25 0a1.25 1.25 0 1 1 0 2.5a1.25 1.25 0 0 1 0-2.5m4.25 0a1.25 1.25 0 1 1 0 2.5a1.25 1.25 0 0 1 0-2.5m1.5-6H6.25A1.75 1.75 0 0 0 4.5 6.25V7h15v-.75a1.75 1.75 0 0 0-1.75-1.75\"></path>\n </svg>\n }\n</button>\n", styles: ["/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "component", type: Button, selector: " button[ngsButton], button[ngsIconButton], a[ngsButton], a[ngsIconButton] ", inputs: ["ngsButton", "ngsIconButton", "loading", "disabled", "disabledInteractive", "disableRipple", "reverse", "fullWidth", "hideTextOnMobile"], exportAs: ["ngsButton"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1039
1040
|
}
|
|
1040
1041
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DatepickerToggle, decorators: [{
|
|
1041
1042
|
type: Component,
|
|
@@ -1044,7 +1045,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
1044
1045
|
], changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
1045
1046
|
'class': 'ngs-datepicker-toggle',
|
|
1046
1047
|
}, template: "<button ngsIconButton type=\"button\" (click)=\"_open($event)\" class=\"ngs-datepicker-toggle-button\">\n @if (customIcon()) {\n <ng-content select=\"[ngsDatepickerToggleIcon]\"/>\n } @else {\n <svg viewBox=\"0 0 24 24\" class=\"size-6\">\n <path fill=\"currentColor\"\n d=\"M17.75 3A3.25 3.25 0 0 1 21 6.25v11.5A3.25 3.25 0 0 1 17.75 21H6.25A3.25 3.25 0 0 1 3 17.75V6.25A3.25 3.25 0 0 1 6.25 3zm1.75 5.5h-15v9.25c0 .966.784 1.75 1.75 1.75h11.5a1.75 1.75 0 0 0 1.75-1.75zm-11.75 6a1.25 1.25 0 1 1 0 2.5a1.25 1.25 0 0 1 0-2.5m4.25 0a1.25 1.25 0 1 1 0 2.5a1.25 1.25 0 0 1 0-2.5m-4.25-4a1.25 1.25 0 1 1 0 2.5a1.25 1.25 0 0 1 0-2.5m4.25 0a1.25 1.25 0 1 1 0 2.5a1.25 1.25 0 0 1 0-2.5m4.25 0a1.25 1.25 0 1 1 0 2.5a1.25 1.25 0 0 1 0-2.5m1.5-6H6.25A1.75 1.75 0 0 0 4.5 6.25V7h15v-.75a1.75 1.75 0 0 0-1.75-1.75\"></path>\n </svg>\n }\n</button>\n", styles: ["/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */\n"] }]
|
|
1047
|
-
}], propDecorators: { for: [{ type: i0.Input, args: [{ isSignal: true, alias: "for", required:
|
|
1048
|
+
}], propDecorators: { for: [{ type: i0.Input, args: [{ isSignal: true, alias: "for", required: false }] }], customIcon: [{ type: i0.ContentChild, args: [i0.forwardRef(() => DatepickerToggleIcon), { isSignal: true }] }] } });
|
|
1048
1049
|
|
|
1049
1050
|
class NativeDateAdapter extends DateAdapter {
|
|
1050
1051
|
getYear(date) {
|