@ng-nest/ui 20.0.7 → 20.1.0
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/auto-complete/index.d.ts +33 -8
- package/base-form/index.d.ts +3 -3
- package/calendar/index.d.ts +1 -2
- package/cascade/index.d.ts +33 -8
- package/checkbox/index.d.ts +3 -3
- package/color-picker/index.d.ts +34 -8
- package/core/index.d.ts +40 -8
- package/date-picker/index.d.ts +57 -12
- package/dropdown/index.d.ts +4 -4
- package/fesm2022/ng-nest-ui-affix.mjs +12 -12
- package/fesm2022/ng-nest-ui-affix.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-alert.mjs +35 -35
- package/fesm2022/ng-nest-ui-alert.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-anchor.mjs +31 -31
- package/fesm2022/ng-nest-ui-anchor.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-api.mjs +7 -7
- package/fesm2022/ng-nest-ui-api.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-auto-complete.mjs +82 -72
- package/fesm2022/ng-nest-ui-auto-complete.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-avatar.mjs +31 -31
- package/fesm2022/ng-nest-ui-avatar.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-back-top.mjs +18 -18
- package/fesm2022/ng-nest-ui-back-top.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-badge.mjs +23 -23
- package/fesm2022/ng-nest-ui-badge.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-base-form.mjs +45 -45
- package/fesm2022/ng-nest-ui-base-form.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-button.mjs +42 -42
- package/fesm2022/ng-nest-ui-button.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-calendar.mjs +20 -20
- package/fesm2022/ng-nest-ui-calendar.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-card.mjs +15 -15
- package/fesm2022/ng-nest-ui-card.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-carousel.mjs +46 -46
- package/fesm2022/ng-nest-ui-carousel.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-cascade.mjs +86 -76
- package/fesm2022/ng-nest-ui-cascade.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-checkbox.mjs +39 -39
- package/fesm2022/ng-nest-ui-checkbox.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-collapse.mjs +31 -31
- package/fesm2022/ng-nest-ui-collapse.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-color-picker.mjs +91 -72
- package/fesm2022/ng-nest-ui-color-picker.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-color.mjs +16 -16
- package/fesm2022/ng-nest-ui-color.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-comment.mjs +21 -21
- package/fesm2022/ng-nest-ui-comment.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-container.mjs +37 -37
- package/fesm2022/ng-nest-ui-container.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-core.mjs +38 -22
- package/fesm2022/ng-nest-ui-core.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-crumb.mjs +13 -13
- package/fesm2022/ng-nest-ui-crumb.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-date-picker.mjs +273 -253
- package/fesm2022/ng-nest-ui-date-picker.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-description.mjs +31 -31
- package/fesm2022/ng-nest-ui-description.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-dialog.mjs +81 -81
- package/fesm2022/ng-nest-ui-dialog.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-doc.mjs +7 -7
- package/fesm2022/ng-nest-ui-doc.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-drag.mjs +10 -10
- package/fesm2022/ng-nest-ui-drag.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-drawer.mjs +42 -42
- package/fesm2022/ng-nest-ui-drawer.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-dropdown.mjs +49 -49
- package/fesm2022/ng-nest-ui-dropdown.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-empty.mjs +12 -12
- package/fesm2022/ng-nest-ui-empty.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-examples.mjs +7 -7
- package/fesm2022/ng-nest-ui-examples.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-find.mjs +79 -77
- package/fesm2022/ng-nest-ui-find.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-form.mjs +33 -33
- package/fesm2022/ng-nest-ui-form.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-highlight.mjs +20 -20
- package/fesm2022/ng-nest-ui-highlight.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-i18n.mjs +15 -15
- package/fesm2022/ng-nest-ui-i18n.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-icon.mjs +21 -21
- package/fesm2022/ng-nest-ui-icon.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-image.mjs +39 -39
- package/fesm2022/ng-nest-ui-image.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-inner.mjs +11 -11
- package/fesm2022/ng-nest-ui-inner.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-input-number.mjs +42 -42
- package/fesm2022/ng-nest-ui-input-number.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-input.mjs +102 -81
- package/fesm2022/ng-nest-ui-input.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-keyword.mjs +15 -15
- package/fesm2022/ng-nest-ui-keyword.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-layout.mjs +31 -31
- package/fesm2022/ng-nest-ui-layout.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-link.mjs +18 -18
- package/fesm2022/ng-nest-ui-link.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-list.mjs +80 -80
- package/fesm2022/ng-nest-ui-list.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-loading.mjs +22 -22
- package/fesm2022/ng-nest-ui-loading.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-menu.mjs +45 -45
- package/fesm2022/ng-nest-ui-menu.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-message-box.mjs +10 -10
- package/fesm2022/ng-nest-ui-message-box.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-message.mjs +10 -10
- package/fesm2022/ng-nest-ui-message.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-notification.mjs +10 -10
- package/fesm2022/ng-nest-ui-notification.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-outlet.mjs +9 -9
- package/fesm2022/ng-nest-ui-outlet.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-page-header.mjs +15 -15
- package/fesm2022/ng-nest-ui-page-header.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-pagination.mjs +53 -53
- package/fesm2022/ng-nest-ui-pagination.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-pattern.mjs +7 -7
- package/fesm2022/ng-nest-ui-pattern.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-popconfirm.mjs +27 -27
- package/fesm2022/ng-nest-ui-popconfirm.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-popover.mjs +38 -38
- package/fesm2022/ng-nest-ui-popover.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-portal.mjs +7 -7
- package/fesm2022/ng-nest-ui-portal.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-progress.mjs +38 -38
- package/fesm2022/ng-nest-ui-progress.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-radio.mjs +36 -36
- package/fesm2022/ng-nest-ui-radio.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-rate.mjs +30 -30
- package/fesm2022/ng-nest-ui-rate.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-resizable.mjs +16 -16
- package/fesm2022/ng-nest-ui-resizable.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-result.mjs +16 -16
- package/fesm2022/ng-nest-ui-result.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-ripple.mjs +13 -13
- package/fesm2022/ng-nest-ui-ripple.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-scrollable.mjs +102 -19
- package/fesm2022/ng-nest-ui-scrollable.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-select.mjs +121 -111
- package/fesm2022/ng-nest-ui-select.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-skeleton.mjs +15 -15
- package/fesm2022/ng-nest-ui-skeleton.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-slider-select.mjs +54 -54
- package/fesm2022/ng-nest-ui-slider-select.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-slider.mjs +39 -39
- package/fesm2022/ng-nest-ui-slider.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-statistic.mjs +30 -30
- package/fesm2022/ng-nest-ui-statistic.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-steps.mjs +19 -19
- package/fesm2022/ng-nest-ui-steps.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-switch.mjs +26 -26
- package/fesm2022/ng-nest-ui-switch.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-table-view.mjs +490 -242
- package/fesm2022/ng-nest-ui-table-view.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-table.mjs +221 -221
- package/fesm2022/ng-nest-ui-table.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-tabs.mjs +58 -58
- package/fesm2022/ng-nest-ui-tabs.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-tag.mjs +22 -22
- package/fesm2022/ng-nest-ui-tag.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-text-retract.mjs +15 -15
- package/fesm2022/ng-nest-ui-text-retract.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-textarea.mjs +41 -41
- package/fesm2022/ng-nest-ui-textarea.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-theme.mjs +23 -23
- package/fesm2022/ng-nest-ui-theme.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-time-ago.mjs +7 -7
- package/fesm2022/ng-nest-ui-time-ago.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-time-picker.mjs +104 -94
- package/fesm2022/ng-nest-ui-time-picker.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-time-range.mjs +7 -7
- package/fesm2022/ng-nest-ui-time-range.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-timeline.mjs +15 -15
- package/fesm2022/ng-nest-ui-timeline.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-tooltip.mjs +38 -38
- package/fesm2022/ng-nest-ui-tooltip.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-transfer.mjs +40 -40
- package/fesm2022/ng-nest-ui-transfer.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-tree-file.mjs +28 -28
- package/fesm2022/ng-nest-ui-tree-file.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-tree-select.mjs +126 -116
- package/fesm2022/ng-nest-ui-tree-select.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-tree.mjs +107 -107
- package/fesm2022/ng-nest-ui-tree.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-typography.mjs +13 -13
- package/fesm2022/ng-nest-ui-typography.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-upload.mjs +37 -37
- package/fesm2022/ng-nest-ui-upload.mjs.map +1 -1
- package/find/index.d.ts +5 -5
- package/form/index.d.ts +1 -1
- package/input/index.d.ts +32 -5
- package/input-number/index.d.ts +5 -5
- package/list/index.d.ts +2 -2
- package/message-box/index.d.ts +4 -5
- package/package.json +20 -20
- package/radio/index.d.ts +3 -3
- package/rate/index.d.ts +5 -5
- package/scrollable/index.d.ts +15 -7
- package/select/index.d.ts +38 -8
- package/slider-select/index.d.ts +3 -3
- package/steps/index.d.ts +1 -2
- package/switch/index.d.ts +3 -3
- package/table-view/index.d.ts +121 -79
- package/textarea/index.d.ts +3 -3
- package/theme/index.d.ts +1 -1
- package/time-picker/index.d.ts +33 -8
- package/transfer/index.d.ts +1 -1
- package/tree-select/index.d.ts +33 -8
- package/upload/index.d.ts +2 -2
|
@@ -15,22 +15,22 @@ import { DOCUMENT } from '@angular/common';
|
|
|
15
15
|
|
|
16
16
|
class XCascadePortalComponent {
|
|
17
17
|
constructor() {
|
|
18
|
-
this.value = input();
|
|
19
|
-
this.placement = input();
|
|
20
|
-
this.nodeTpl = input();
|
|
21
|
-
this.inputCom = input();
|
|
22
|
-
this.nodeTrigger = input();
|
|
23
|
-
this.nodeHoverDelay = input(200);
|
|
24
|
-
this.portalMaxHeight = input('');
|
|
25
|
-
this.portalHeight = input('');
|
|
26
|
-
this.portalWidth = input('');
|
|
27
|
-
this.nodes = model([]);
|
|
28
|
-
this.datas = input([]);
|
|
18
|
+
this.value = input(...(ngDevMode ? [undefined, { debugName: "value" }] : []));
|
|
19
|
+
this.placement = input(...(ngDevMode ? [undefined, { debugName: "placement" }] : []));
|
|
20
|
+
this.nodeTpl = input(...(ngDevMode ? [undefined, { debugName: "nodeTpl" }] : []));
|
|
21
|
+
this.inputCom = input(...(ngDevMode ? [undefined, { debugName: "inputCom" }] : []));
|
|
22
|
+
this.nodeTrigger = input(...(ngDevMode ? [undefined, { debugName: "nodeTrigger" }] : []));
|
|
23
|
+
this.nodeHoverDelay = input(200, ...(ngDevMode ? [{ debugName: "nodeHoverDelay" }] : []));
|
|
24
|
+
this.portalMaxHeight = input('', ...(ngDevMode ? [{ debugName: "portalMaxHeight" }] : []));
|
|
25
|
+
this.portalHeight = input('', ...(ngDevMode ? [{ debugName: "portalHeight" }] : []));
|
|
26
|
+
this.portalWidth = input('', ...(ngDevMode ? [{ debugName: "portalWidth" }] : []));
|
|
27
|
+
this.nodes = model([], ...(ngDevMode ? [{ debugName: "nodes" }] : []));
|
|
28
|
+
this.datas = input([], ...(ngDevMode ? [{ debugName: "datas" }] : []));
|
|
29
29
|
this.animating = output();
|
|
30
30
|
this.nodeClick = output();
|
|
31
|
-
this.selecteds = signal([]);
|
|
32
|
-
this.values = signal([]);
|
|
33
|
-
this.destroy = signal(false);
|
|
31
|
+
this.selecteds = signal([], ...(ngDevMode ? [{ debugName: "selecteds" }] : []));
|
|
32
|
+
this.values = signal([], ...(ngDevMode ? [{ debugName: "values" }] : []));
|
|
33
|
+
this.destroy = signal(false, ...(ngDevMode ? [{ debugName: "destroy" }] : []));
|
|
34
34
|
this.unSubject = new Subject();
|
|
35
35
|
this.hoverDelayUnSub = new Subject();
|
|
36
36
|
this.destroyRef = inject(DestroyRef);
|
|
@@ -131,10 +131,10 @@ class XCascadePortalComponent {
|
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
135
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.
|
|
134
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XCascadePortalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
135
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.4", type: XCascadePortalComponent, isStandalone: true, selector: "x-cascade-portal", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: false, transformFunction: null }, nodeTpl: { classPropertyName: "nodeTpl", publicName: "nodeTpl", isSignal: true, isRequired: false, transformFunction: null }, inputCom: { classPropertyName: "inputCom", publicName: "inputCom", isSignal: true, isRequired: false, transformFunction: null }, nodeTrigger: { classPropertyName: "nodeTrigger", publicName: "nodeTrigger", isSignal: true, isRequired: false, transformFunction: null }, nodeHoverDelay: { classPropertyName: "nodeHoverDelay", publicName: "nodeHoverDelay", isSignal: true, isRequired: false, transformFunction: null }, portalMaxHeight: { classPropertyName: "portalMaxHeight", publicName: "portalMaxHeight", isSignal: true, isRequired: false, transformFunction: null }, portalHeight: { classPropertyName: "portalHeight", publicName: "portalHeight", isSignal: true, isRequired: false, transformFunction: null }, portalWidth: { classPropertyName: "portalWidth", publicName: "portalWidth", isSignal: true, isRequired: false, transformFunction: null }, nodes: { classPropertyName: "nodes", publicName: "nodes", isSignal: true, isRequired: false, transformFunction: null }, datas: { classPropertyName: "datas", publicName: "datas", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { nodes: "nodesChange", animating: "animating", nodeClick: "nodeClick" }, host: { listeners: { "@x-connect-base-animation.done": "done($event)", "@x-connect-base-animation.start": "start($event)" }, properties: { "@x-connect-base-animation": "this.getPlacement" } }, ngImport: i0, template: "<div\r\n class=\"x-cascade-portal\"\r\n tabindex=\"-1\"\r\n (click)=\"inputCom()?.inputFocus('focus'); stopPropagation($event)\"\r\n [style.maxHeight]=\"portalHeight() ? portalHeight() : portalMaxHeight()\"\r\n [style.height]=\"portalHeight()\"\r\n>\r\n @for (list of nodes(); track list) {\r\n <x-list\r\n [style.width]=\"portalWidth()\"\r\n [data]=\"list\"\r\n [nodeTpl]=\"nodeTpl()\"\r\n [(ngModel)]=\"values\"\r\n (nodeClick)=\"onNodeClick($event)\"\r\n (nodeMouseenter)=\"nodeTrigger() === 'hover' && nodeMouseenter($event)\"\r\n (nodeMouseleave)=\"nodeTrigger() === 'hover' && nodeMouseleave()\"\r\n [checked]=\"true\"\r\n [inPortal]=\"true\"\r\n ></x-list>\r\n }\r\n</div>\r\n", styles: ["@charset \"UTF-8\";.x-cascade-portal{color:var(--x-text);width:100%;border-radius:var(--x-border-small-radius);box-shadow:var(--x-box-shadow);position:relative;display:flex;background-color:var(--x-background-100);overflow:hidden auto;max-height:calc(calc(var(--x-font-size) + .875rem) * 6 + var(--x-border-width) * 7)}.x-cascade-portal:focus{outline:none}.x-cascade-portal>x-list .x-list-option{min-width:8rem}.x-cascade-portal>x-list:not(:first-child){border-left:var(--x-border-width) var(--x-border-style) var(--x-border)}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: XListComponent, selector: "x-list" }], animations: [XConnectBaseAnimation], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
136
136
|
}
|
|
137
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
137
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XCascadePortalComponent, decorators: [{
|
|
138
138
|
type: Component,
|
|
139
139
|
args: [{ selector: 'x-cascade-portal', imports: [FormsModule, XListComponent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, animations: [XConnectBaseAnimation], template: "<div\r\n class=\"x-cascade-portal\"\r\n tabindex=\"-1\"\r\n (click)=\"inputCom()?.inputFocus('focus'); stopPropagation($event)\"\r\n [style.maxHeight]=\"portalHeight() ? portalHeight() : portalMaxHeight()\"\r\n [style.height]=\"portalHeight()\"\r\n>\r\n @for (list of nodes(); track list) {\r\n <x-list\r\n [style.width]=\"portalWidth()\"\r\n [data]=\"list\"\r\n [nodeTpl]=\"nodeTpl()\"\r\n [(ngModel)]=\"values\"\r\n (nodeClick)=\"onNodeClick($event)\"\r\n (nodeMouseenter)=\"nodeTrigger() === 'hover' && nodeMouseenter($event)\"\r\n (nodeMouseleave)=\"nodeTrigger() === 'hover' && nodeMouseleave()\"\r\n [checked]=\"true\"\r\n [inPortal]=\"true\"\r\n ></x-list>\r\n }\r\n</div>\r\n", styles: ["@charset \"UTF-8\";.x-cascade-portal{color:var(--x-text);width:100%;border-radius:var(--x-border-small-radius);box-shadow:var(--x-box-shadow);position:relative;display:flex;background-color:var(--x-background-100);overflow:hidden auto;max-height:calc(calc(var(--x-font-size) + .875rem) * 6 + var(--x-border-width) * 7)}.x-cascade-portal:focus{outline:none}.x-cascade-portal>x-list .x-list-option{min-width:8rem}.x-cascade-portal>x-list:not(:first-child){border-left:var(--x-border-width) var(--x-border-style) var(--x-border)}\n"] }]
|
|
140
140
|
}], propDecorators: { getPlacement: [{
|
|
@@ -165,181 +165,191 @@ class XCascadeProperty extends XFormControlFunction(X_CASCADE_CONFIG_NAME) {
|
|
|
165
165
|
* @zh_CN 节点数据
|
|
166
166
|
* @en_US Node data
|
|
167
167
|
*/
|
|
168
|
-
this.data = input([]);
|
|
168
|
+
this.data = input([], ...(ngDevMode ? [{ debugName: "data" }] : []));
|
|
169
169
|
/**
|
|
170
170
|
* @zh_CN 形态变体
|
|
171
171
|
* @en_US Input variant
|
|
172
172
|
*/
|
|
173
|
-
this.variant = input(this.config?.variant ?? 'outlined');
|
|
173
|
+
this.variant = input(this.config?.variant ?? 'outlined', ...(ngDevMode ? [{ debugName: "variant" }] : []));
|
|
174
174
|
/**
|
|
175
175
|
* @zh_CN 展示方位
|
|
176
176
|
* @en_US Display position
|
|
177
177
|
*/
|
|
178
|
-
this.placement = input(this.config?.placement ?? 'bottom-start');
|
|
178
|
+
this.placement = input(this.config?.placement ?? 'bottom-start', ...(ngDevMode ? [{ debugName: "placement" }] : []));
|
|
179
179
|
/**
|
|
180
180
|
* @zh_CN 清除按钮
|
|
181
181
|
* @en_US Clear button
|
|
182
182
|
*/
|
|
183
|
-
this.clearable = input(this.config?.clearable ?? true, { transform: XToBoolean });
|
|
183
|
+
this.clearable = input(this.config?.clearable ?? true, ...(ngDevMode ? [{ debugName: "clearable", transform: XToBoolean }] : [{ transform: XToBoolean }]));
|
|
184
184
|
/**
|
|
185
185
|
* @zh_CN 显示边框
|
|
186
186
|
* @en_US Display Border
|
|
187
187
|
*/
|
|
188
|
-
this.bordered = input(this.config?.bordered ?? true, { transform: XToBoolean });
|
|
188
|
+
this.bordered = input(this.config?.bordered ?? true, ...(ngDevMode ? [{ debugName: "bordered", transform: XToBoolean }] : [{ transform: XToBoolean }]));
|
|
189
189
|
/**
|
|
190
190
|
* @zh_CN 路径分隔符
|
|
191
191
|
* @en_US Path separator
|
|
192
192
|
*/
|
|
193
|
-
this.separator = input(this.config?.separator ?? ' / ');
|
|
193
|
+
this.separator = input(this.config?.separator ?? ' / ', ...(ngDevMode ? [{ debugName: "separator" }] : []));
|
|
194
194
|
/**
|
|
195
195
|
* @zh_CN 下拉框的最大高度
|
|
196
196
|
* @en_US The biggest height of the drop-down box
|
|
197
197
|
*/
|
|
198
|
-
this.portalMaxHeight = input(this.config?.portalMaxHeight ?? '12rem', {
|
|
199
|
-
|
|
200
|
-
|
|
198
|
+
this.portalMaxHeight = input(this.config?.portalMaxHeight ?? '12rem', ...(ngDevMode ? [{ debugName: "portalMaxHeight", transform: XToCssPixelValue }] : [{
|
|
199
|
+
transform: XToCssPixelValue
|
|
200
|
+
}]));
|
|
201
201
|
/**
|
|
202
202
|
* @zh_CN 下拉框的高度,启用虚拟滚动的时候必须设置一个高度
|
|
203
203
|
* @en_US The biggest height of the drop-down box
|
|
204
204
|
*/
|
|
205
|
-
this.portalHeight = input('', {
|
|
206
|
-
|
|
207
|
-
|
|
205
|
+
this.portalHeight = input('', ...(ngDevMode ? [{ debugName: "portalHeight", transform: XToCssPixelValue }] : [{
|
|
206
|
+
transform: XToCssPixelValue
|
|
207
|
+
}]));
|
|
208
208
|
/**
|
|
209
209
|
* @zh_CN 下拉框的宽度
|
|
210
210
|
* @en_US The width of the drop-down box
|
|
211
211
|
*/
|
|
212
|
-
this.portalWidth = input('', { transform: XToCssPixelValue });
|
|
212
|
+
this.portalWidth = input('', ...(ngDevMode ? [{ debugName: "portalWidth", transform: XToCssPixelValue }] : [{ transform: XToCssPixelValue }]));
|
|
213
213
|
/**
|
|
214
214
|
* @zh_CN 下拉框设置样式名
|
|
215
215
|
* @en_US The style class name of the drop-down box
|
|
216
216
|
*/
|
|
217
|
-
this.portalClass = input('');
|
|
217
|
+
this.portalClass = input('', ...(ngDevMode ? [{ debugName: "portalClass" }] : []));
|
|
218
218
|
/**
|
|
219
219
|
* @zh_CN 子节点触发方式
|
|
220
220
|
* @en_US Sub node triggering method
|
|
221
221
|
*/
|
|
222
|
-
this.nodeTrigger = input(this.config?.nodeTrigger ?? 'click');
|
|
222
|
+
this.nodeTrigger = input(this.config?.nodeTrigger ?? 'click', ...(ngDevMode ? [{ debugName: "nodeTrigger" }] : []));
|
|
223
223
|
/**
|
|
224
224
|
* @zh_CN 子节点触发方式为 hover 时的延迟时间
|
|
225
225
|
* @en_US Sub node triggering method
|
|
226
226
|
*/
|
|
227
|
-
this.nodeHoverDelay = input(this.config?.nodeHoverDelay ?? 200, { transform: XToNumber });
|
|
227
|
+
this.nodeHoverDelay = input(this.config?.nodeHoverDelay ?? 200, ...(ngDevMode ? [{ debugName: "nodeHoverDelay", transform: XToNumber }] : [{ transform: XToNumber }]));
|
|
228
228
|
/**
|
|
229
229
|
* @zh_CN 节点模板
|
|
230
230
|
* @en_US Node template
|
|
231
231
|
*/
|
|
232
|
-
this.nodeTpl = input();
|
|
232
|
+
this.nodeTpl = input(...(ngDevMode ? [undefined, { debugName: "nodeTpl" }] : []));
|
|
233
|
+
/**
|
|
234
|
+
* @zh_CN 浮动标签
|
|
235
|
+
* @en_US Float label
|
|
236
|
+
*/
|
|
237
|
+
this.floatLabel = input(this.config?.floatLabel ?? null, ...(ngDevMode ? [{ debugName: "floatLabel" }] : []));
|
|
238
|
+
/**
|
|
239
|
+
* @zh_CN 固定浮动标签
|
|
240
|
+
* @en_US Fixed float label
|
|
241
|
+
*/
|
|
242
|
+
this.floatFixed = input(this.config?.floatFixed ?? false, ...(ngDevMode ? [{ debugName: "floatFixed", transform: XToBoolean }] : [{ transform: XToBoolean }]));
|
|
233
243
|
/**
|
|
234
244
|
* @zh_CN 尺寸
|
|
235
245
|
* @en_US Size
|
|
236
246
|
*/
|
|
237
|
-
this.size = input(this.config?.size ?? 'medium');
|
|
247
|
+
this.size = input(this.config?.size ?? 'medium', ...(ngDevMode ? [{ debugName: "size" }] : []));
|
|
238
248
|
/**
|
|
239
249
|
* @zh_CN 输入框点击样式
|
|
240
250
|
* @en_US Input pointer
|
|
241
251
|
*/
|
|
242
|
-
this.pointer = input(false, { transform: XToBoolean });
|
|
252
|
+
this.pointer = input(false, ...(ngDevMode ? [{ debugName: "pointer", transform: XToBoolean }] : [{ transform: XToBoolean }]));
|
|
243
253
|
/**
|
|
244
254
|
* @zh_CN 标签
|
|
245
255
|
* @en_US Label
|
|
246
256
|
*/
|
|
247
|
-
this.label = input('');
|
|
257
|
+
this.label = input('', ...(ngDevMode ? [{ debugName: "label" }] : []));
|
|
248
258
|
/**
|
|
249
259
|
* @zh_CN 标签宽度
|
|
250
260
|
* @en_US Label width
|
|
251
261
|
*/
|
|
252
|
-
this.labelWidth = input('', { transform: XToCssPixelValue });
|
|
262
|
+
this.labelWidth = input('', ...(ngDevMode ? [{ debugName: "labelWidth", transform: XToCssPixelValue }] : [{ transform: XToCssPixelValue }]));
|
|
253
263
|
/**
|
|
254
264
|
* @zh_CN 标签文字对齐方式
|
|
255
265
|
* @en_US Label text alignment method
|
|
256
266
|
*/
|
|
257
|
-
this.labelAlign = input('start');
|
|
267
|
+
this.labelAlign = input('start', ...(ngDevMode ? [{ debugName: "labelAlign" }] : []));
|
|
258
268
|
/**
|
|
259
269
|
* @zh_CN flex 布局下的子元素水平排列方式
|
|
260
270
|
* @en_US The level of sub-element level arrangement under flex layout
|
|
261
271
|
*/
|
|
262
|
-
this.justify = input('start');
|
|
272
|
+
this.justify = input('start', ...(ngDevMode ? [{ debugName: "justify" }] : []));
|
|
263
273
|
/**
|
|
264
274
|
* @zh_CN flex 布局下的子元素垂直排列方式
|
|
265
275
|
* @en_US sub-element vertical arrangement method under flex layout
|
|
266
276
|
*/
|
|
267
|
-
this.align = input('start');
|
|
277
|
+
this.align = input('start', ...(ngDevMode ? [{ debugName: "align" }] : []));
|
|
268
278
|
/**
|
|
269
279
|
* @zh_CN flex 布局下的子元素排列方向
|
|
270
280
|
* @en_US The direction of the sub-element arrangement under flex layout
|
|
271
281
|
*/
|
|
272
|
-
this.direction = input('column');
|
|
282
|
+
this.direction = input('column', ...(ngDevMode ? [{ debugName: "direction" }] : []));
|
|
273
283
|
/**
|
|
274
284
|
* @zh_CN 输入提示信息
|
|
275
285
|
* @en_US Enter prompt information
|
|
276
286
|
*/
|
|
277
|
-
this.placeholder = input('');
|
|
287
|
+
this.placeholder = input('', ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
|
|
278
288
|
/**
|
|
279
289
|
* @zh_CN 禁用
|
|
280
290
|
* @en_US Disabled
|
|
281
291
|
*/
|
|
282
|
-
this.disabled = input(false, { transform: XToBoolean });
|
|
292
|
+
this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled", transform: XToBoolean }] : [{ transform: XToBoolean }]));
|
|
283
293
|
/**
|
|
284
294
|
* @zh_CN 必填
|
|
285
295
|
* @en_US Required
|
|
286
296
|
*/
|
|
287
|
-
this.required = input(false, { transform: XToBoolean });
|
|
297
|
+
this.required = input(false, ...(ngDevMode ? [{ debugName: "required", transform: XToBoolean }] : [{ transform: XToBoolean }]));
|
|
288
298
|
/**
|
|
289
299
|
* @zh_CN 只读
|
|
290
300
|
* @en_US Readonly
|
|
291
301
|
*/
|
|
292
|
-
this.readonly = input(true, { transform: XToBoolean });
|
|
302
|
+
this.readonly = input(true, ...(ngDevMode ? [{ debugName: "readonly", transform: XToBoolean }] : [{ transform: XToBoolean }]));
|
|
293
303
|
/**
|
|
294
304
|
* @zh_CN 值模板
|
|
295
305
|
* @en_US Node template
|
|
296
306
|
*/
|
|
297
|
-
this.valueTpl = input();
|
|
307
|
+
this.valueTpl = input(...(ngDevMode ? [undefined, { debugName: "valueTpl" }] : []));
|
|
298
308
|
/**
|
|
299
309
|
* @zh_CN 值模板参数
|
|
300
310
|
* @en_US Node template
|
|
301
311
|
*/
|
|
302
|
-
this.valueTplContext = input();
|
|
312
|
+
this.valueTplContext = input(...(ngDevMode ? [undefined, { debugName: "valueTplContext" }] : []));
|
|
303
313
|
/**
|
|
304
314
|
* @zh_CN 前置标签
|
|
305
315
|
* @en_US Before label
|
|
306
316
|
*/
|
|
307
|
-
this.before = input();
|
|
317
|
+
this.before = input(...(ngDevMode ? [undefined, { debugName: "before" }] : []));
|
|
308
318
|
/**
|
|
309
319
|
* @zh_CN 后置标签
|
|
310
320
|
* @en_US After label
|
|
311
321
|
*/
|
|
312
|
-
this.after = input();
|
|
322
|
+
this.after = input(...(ngDevMode ? [undefined, { debugName: "after" }] : []));
|
|
313
323
|
/**
|
|
314
324
|
* @zh_CN 正则验证规则
|
|
315
325
|
* @en_US Regular verification rules
|
|
316
326
|
*/
|
|
317
|
-
this.pattern = input(null);
|
|
327
|
+
this.pattern = input(null, ...(ngDevMode ? [{ debugName: "pattern" }] : []));
|
|
318
328
|
/**
|
|
319
329
|
* @zh_CN 验证不通过提示文字
|
|
320
330
|
* @en_US Verify not pass the prompt text
|
|
321
331
|
*/
|
|
322
|
-
this.message = input([]);
|
|
332
|
+
this.message = input([], ...(ngDevMode ? [{ debugName: "message" }] : []));
|
|
323
333
|
/**
|
|
324
334
|
* @zh_CN 激活状态
|
|
325
335
|
* @en_US Activation state
|
|
326
336
|
*/
|
|
327
|
-
this.active = model(false);
|
|
337
|
+
this.active = model(false, ...(ngDevMode ? [{ debugName: "active" }] : []));
|
|
328
338
|
/**
|
|
329
339
|
* @zh_CN 输入验证函数
|
|
330
340
|
* @en_US Enter the verification function
|
|
331
341
|
*/
|
|
332
|
-
this.inputValidator = input();
|
|
342
|
+
this.inputValidator = input(...(ngDevMode ? [undefined, { debugName: "inputValidator" }] : []));
|
|
333
343
|
/**
|
|
334
344
|
* @zh_CN 节点点击的事件
|
|
335
345
|
* @en_US Node click event
|
|
336
346
|
*/
|
|
337
347
|
this.nodeEmit = output();
|
|
338
348
|
}
|
|
339
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
340
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.
|
|
349
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XCascadeProperty, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
350
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.2.4", type: XCascadeProperty, isStandalone: true, selector: "x-cascade-property", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: false, transformFunction: null }, clearable: { classPropertyName: "clearable", publicName: "clearable", isSignal: true, isRequired: false, transformFunction: null }, bordered: { classPropertyName: "bordered", publicName: "bordered", isSignal: true, isRequired: false, transformFunction: null }, separator: { classPropertyName: "separator", publicName: "separator", isSignal: true, isRequired: false, transformFunction: null }, portalMaxHeight: { classPropertyName: "portalMaxHeight", publicName: "portalMaxHeight", isSignal: true, isRequired: false, transformFunction: null }, portalHeight: { classPropertyName: "portalHeight", publicName: "portalHeight", isSignal: true, isRequired: false, transformFunction: null }, portalWidth: { classPropertyName: "portalWidth", publicName: "portalWidth", isSignal: true, isRequired: false, transformFunction: null }, portalClass: { classPropertyName: "portalClass", publicName: "portalClass", isSignal: true, isRequired: false, transformFunction: null }, nodeTrigger: { classPropertyName: "nodeTrigger", publicName: "nodeTrigger", isSignal: true, isRequired: false, transformFunction: null }, nodeHoverDelay: { classPropertyName: "nodeHoverDelay", publicName: "nodeHoverDelay", isSignal: true, isRequired: false, transformFunction: null }, nodeTpl: { classPropertyName: "nodeTpl", publicName: "nodeTpl", isSignal: true, isRequired: false, transformFunction: null }, floatLabel: { classPropertyName: "floatLabel", publicName: "floatLabel", isSignal: true, isRequired: false, transformFunction: null }, floatFixed: { classPropertyName: "floatFixed", publicName: "floatFixed", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, pointer: { classPropertyName: "pointer", publicName: "pointer", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, labelWidth: { classPropertyName: "labelWidth", publicName: "labelWidth", isSignal: true, isRequired: false, transformFunction: null }, labelAlign: { classPropertyName: "labelAlign", publicName: "labelAlign", isSignal: true, isRequired: false, transformFunction: null }, justify: { classPropertyName: "justify", publicName: "justify", isSignal: true, isRequired: false, transformFunction: null }, align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, direction: { classPropertyName: "direction", publicName: "direction", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, valueTpl: { classPropertyName: "valueTpl", publicName: "valueTpl", isSignal: true, isRequired: false, transformFunction: null }, valueTplContext: { classPropertyName: "valueTplContext", publicName: "valueTplContext", isSignal: true, isRequired: false, transformFunction: null }, before: { classPropertyName: "before", publicName: "before", isSignal: true, isRequired: false, transformFunction: null }, after: { classPropertyName: "after", publicName: "after", isSignal: true, isRequired: false, transformFunction: null }, pattern: { classPropertyName: "pattern", publicName: "pattern", isSignal: true, isRequired: false, transformFunction: null }, message: { classPropertyName: "message", publicName: "message", isSignal: true, isRequired: false, transformFunction: null }, active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null }, inputValidator: { classPropertyName: "inputValidator", publicName: "inputValidator", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { active: "activeChange", nodeEmit: "nodeEmit" }, usesInheritance: true, ngImport: i0, template: '', isInline: true }); }
|
|
341
351
|
}
|
|
342
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
352
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XCascadeProperty, decorators: [{
|
|
343
353
|
type: Component,
|
|
344
354
|
args: [{ selector: `${XCascadePrefix}-property`, template: '' }]
|
|
345
355
|
}] });
|
|
@@ -355,12 +365,12 @@ class XCascadeComponent extends XCascadeProperty {
|
|
|
355
365
|
super();
|
|
356
366
|
this.cascade = viewChild.required('cascade', { read: (ElementRef) });
|
|
357
367
|
this.inputCom = viewChild.required('inputCom', { read: XInputComponent });
|
|
358
|
-
this.showClearable = signal(false);
|
|
359
|
-
this.enter = signal(false);
|
|
360
|
-
this.animating = signal(false);
|
|
361
|
-
this.datas = signal([]);
|
|
362
|
-
this.nodes = signal([]);
|
|
363
|
-
this.icon = signal('fto-chevron-down');
|
|
368
|
+
this.showClearable = signal(false, ...(ngDevMode ? [{ debugName: "showClearable" }] : []));
|
|
369
|
+
this.enter = signal(false, ...(ngDevMode ? [{ debugName: "enter" }] : []));
|
|
370
|
+
this.animating = signal(false, ...(ngDevMode ? [{ debugName: "animating" }] : []));
|
|
371
|
+
this.datas = signal([], ...(ngDevMode ? [{ debugName: "datas" }] : []));
|
|
372
|
+
this.nodes = signal([], ...(ngDevMode ? [{ debugName: "nodes" }] : []));
|
|
373
|
+
this.icon = signal('fto-chevron-down', ...(ngDevMode ? [{ debugName: "icon" }] : []));
|
|
364
374
|
this.displayValue = computed(() => {
|
|
365
375
|
let node = this.datas().find((x) => x.id === this.value());
|
|
366
376
|
if (XIsEmpty(node)) {
|
|
@@ -374,7 +384,7 @@ class XCascadeComponent extends XCascadeProperty {
|
|
|
374
384
|
}
|
|
375
385
|
return selecteds.map((x) => x.label).join(this.separator());
|
|
376
386
|
}
|
|
377
|
-
});
|
|
387
|
+
}, ...(ngDevMode ? [{ debugName: "displayValue" }] : []));
|
|
378
388
|
this.valueTplContextSignal = computed(() => {
|
|
379
389
|
if (this.valueTplContext())
|
|
380
390
|
return this.valueTplContext();
|
|
@@ -394,7 +404,7 @@ class XCascadeComponent extends XCascadeProperty {
|
|
|
394
404
|
$isValue: true
|
|
395
405
|
};
|
|
396
406
|
}
|
|
397
|
-
});
|
|
407
|
+
}, ...(ngDevMode ? [{ debugName: "valueTplContextSignal" }] : []));
|
|
398
408
|
this.closeSubject = new Subject();
|
|
399
409
|
this.unSubject = new Subject();
|
|
400
410
|
this.document = inject(DOCUMENT);
|
|
@@ -402,9 +412,9 @@ class XCascadeComponent extends XCascadeProperty {
|
|
|
402
412
|
this.viewContainerRef = inject(ViewContainerRef);
|
|
403
413
|
this.elementRef = inject(ElementRef);
|
|
404
414
|
this.overlay = inject(Overlay);
|
|
405
|
-
this.realPlacement = signal(null);
|
|
406
|
-
this.portalComponent = signal(null);
|
|
407
|
-
this.portalOverlayRef = signal(null);
|
|
415
|
+
this.realPlacement = signal(null, ...(ngDevMode ? [{ debugName: "realPlacement" }] : []));
|
|
416
|
+
this.portalComponent = signal(null, ...(ngDevMode ? [{ debugName: "portalComponent" }] : []));
|
|
417
|
+
this.portalOverlayRef = signal(null, ...(ngDevMode ? [{ debugName: "portalOverlayRef" }] : []));
|
|
408
418
|
effect(() => this.portalComponent()?.setInput('value', this.value()));
|
|
409
419
|
effect(() => this.portalComponent()?.setInput('placement', this.realPlacement()));
|
|
410
420
|
effect(() => this.portalComponent()?.setInput('nodeTpl', this.nodeTpl()));
|
|
@@ -564,20 +574,20 @@ class XCascadeComponent extends XCascadeProperty {
|
|
|
564
574
|
setPortal() {
|
|
565
575
|
this.portalAttached() && this.portalOverlayRef()?.updatePositionStrategy(this.setPlacement());
|
|
566
576
|
}
|
|
567
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
568
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.
|
|
577
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XCascadeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
578
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.2.4", type: XCascadeComponent, isStandalone: true, selector: "x-cascade", providers: [XValueAccessor(XCascadeComponent)], viewQueries: [{ propertyName: "cascade", first: true, predicate: ["cascade"], descendants: true, read: ElementRef, isSignal: true }, { propertyName: "inputCom", first: true, predicate: ["inputCom"], descendants: true, read: XInputComponent, isSignal: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div #cascade class=\"x-cascade\">\r\n <div class=\"x-cascade-row\">\r\n <x-input\r\n #inputCom\r\n type=\"text\"\r\n [label]=\"label()\"\r\n [labelWidth]=\"labelWidth()\"\r\n [labelAlign]=\"labelAlign()\"\r\n [justify]=\"justify()\"\r\n [align]=\"align()\"\r\n [direction]=\"direction()\"\r\n [disabled]=\"disabledComputed()\"\r\n [required]=\"requiredComputed()\"\r\n [validator]=\"validatorComputed()\"\r\n [inputValidator]=\"inputValidator()\"\r\n [icon]=\"icon()\"\r\n [placeholder]=\"placeholder()\"\r\n [readonly]=\"readonly()\"\r\n [clearable]=\"clearable()\"\r\n [(ngModel)]=\"value\"\r\n [valueTpl]=\"valueTpl() ? valueTpl() : valueTemplate\"\r\n [valueTplContext]=\"valueTplContextSignal()\"\r\n [size]=\"size()\"\r\n [bordered]=\"bordered()\"\r\n [before]=\"before()\"\r\n [after]=\"after()\"\r\n [pattern]=\"patternComputed()\"\r\n [message]=\"messageComputed()\"\r\n [pointer]=\"true\"\r\n [floatLabel]=\"floatLabel()\"\r\n [floatFixed]=\"floatFixed()\"\r\n [(active)]=\"active\"\r\n [variant]=\"variant()\"\r\n (clearEmit)=\"clearEmit()\"\r\n (click)=\"showPortal()\"\r\n (xMouseenter)=\"menter()\"\r\n (xMouseleave)=\"mleave()\"\r\n ></x-input>\r\n </div>\r\n</div>\r\n\r\n<ng-template #valueTemplate>\r\n <span [attr.title]=\"displayValue()\">{{ displayValue() }}</span>\r\n</ng-template>\r\n", styles: ["@charset \"UTF-8\";x-cascade{display:inline-block;width:12rem}.x-cascade{margin:0;padding:0}.x-cascade{width:100%}.x-cascade x-input{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: ["pattern"] }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "component", type: XInputComponent, selector: "x-input" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
569
579
|
}
|
|
570
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
580
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XCascadeComponent, decorators: [{
|
|
571
581
|
type: Component,
|
|
572
|
-
args: [{ selector: 'x-cascade', imports: [FormsModule, ReactiveFormsModule, XInputComponent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [XValueAccessor(XCascadeComponent)], template: "<div #cascade class=\"x-cascade\">\r\n <div class=\"x-cascade-row\">\r\n <x-input\r\n #inputCom\r\n type=\"text\"\r\n [label]=\"label()\"\r\n [labelWidth]=\"labelWidth()\"\r\n [labelAlign]=\"labelAlign()\"\r\n [justify]=\"justify()\"\r\n [align]=\"align()\"\r\n [direction]=\"direction()\"\r\n [disabled]=\"disabledComputed()\"\r\n [required]=\"requiredComputed()\"\r\n [validator]=\"validatorComputed()\"\r\n [inputValidator]=\"inputValidator()\"\r\n [icon]=\"icon()\"\r\n [placeholder]=\"placeholder()\"\r\n [readonly]=\"readonly()\"\r\n [clearable]=\"clearable()\"\r\n [(ngModel)]=\"value\"\r\n [valueTpl]=\"valueTpl() ? valueTpl() : valueTemplate\"\r\n [valueTplContext]=\"valueTplContextSignal()\"\r\n [size]=\"size()\"\r\n [bordered]=\"bordered()\"\r\n [before]=\"before()\"\r\n [after]=\"after()\"\r\n [pattern]=\"patternComputed()\"\r\n [message]=\"messageComputed()\"\r\n [pointer]=\"true\"\r\n [(active)]=\"active\"\r\n [variant]=\"variant()\"\r\n (clearEmit)=\"clearEmit()\"\r\n (click)=\"showPortal()\"\r\n (xMouseenter)=\"menter()\"\r\n (xMouseleave)=\"mleave()\"\r\n ></x-input>\r\n </div>\r\n</div>\r\n\r\n<ng-template #valueTemplate>\r\n {{ displayValue() }}
|
|
582
|
+
args: [{ selector: 'x-cascade', imports: [FormsModule, ReactiveFormsModule, XInputComponent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [XValueAccessor(XCascadeComponent)], template: "<div #cascade class=\"x-cascade\">\r\n <div class=\"x-cascade-row\">\r\n <x-input\r\n #inputCom\r\n type=\"text\"\r\n [label]=\"label()\"\r\n [labelWidth]=\"labelWidth()\"\r\n [labelAlign]=\"labelAlign()\"\r\n [justify]=\"justify()\"\r\n [align]=\"align()\"\r\n [direction]=\"direction()\"\r\n [disabled]=\"disabledComputed()\"\r\n [required]=\"requiredComputed()\"\r\n [validator]=\"validatorComputed()\"\r\n [inputValidator]=\"inputValidator()\"\r\n [icon]=\"icon()\"\r\n [placeholder]=\"placeholder()\"\r\n [readonly]=\"readonly()\"\r\n [clearable]=\"clearable()\"\r\n [(ngModel)]=\"value\"\r\n [valueTpl]=\"valueTpl() ? valueTpl() : valueTemplate\"\r\n [valueTplContext]=\"valueTplContextSignal()\"\r\n [size]=\"size()\"\r\n [bordered]=\"bordered()\"\r\n [before]=\"before()\"\r\n [after]=\"after()\"\r\n [pattern]=\"patternComputed()\"\r\n [message]=\"messageComputed()\"\r\n [pointer]=\"true\"\r\n [floatLabel]=\"floatLabel()\"\r\n [floatFixed]=\"floatFixed()\"\r\n [(active)]=\"active\"\r\n [variant]=\"variant()\"\r\n (clearEmit)=\"clearEmit()\"\r\n (click)=\"showPortal()\"\r\n (xMouseenter)=\"menter()\"\r\n (xMouseleave)=\"mleave()\"\r\n ></x-input>\r\n </div>\r\n</div>\r\n\r\n<ng-template #valueTemplate>\r\n <span [attr.title]=\"displayValue()\">{{ displayValue() }}</span>\r\n</ng-template>\r\n", styles: ["@charset \"UTF-8\";x-cascade{display:inline-block;width:12rem}.x-cascade{margin:0;padding:0}.x-cascade{width:100%}.x-cascade x-input{width:100%}\n"] }]
|
|
573
583
|
}], ctorParameters: () => [] });
|
|
574
584
|
|
|
575
585
|
class XCascadeModule {
|
|
576
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
577
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
578
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
|
586
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XCascadeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
587
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.4", ngImport: i0, type: XCascadeModule, imports: [XCascadeComponent], exports: [XCascadeComponent] }); }
|
|
588
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XCascadeModule, imports: [XCascadeComponent] }); }
|
|
579
589
|
}
|
|
580
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
590
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XCascadeModule, decorators: [{
|
|
581
591
|
type: NgModule,
|
|
582
592
|
args: [{
|
|
583
593
|
exports: [XCascadeComponent],
|