@ng-nest/ui 20.0.6 → 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 +72 -9
- package/base-form/index.d.ts +3 -3
- package/calendar/index.d.ts +1 -2
- package/cascade/index.d.ts +48 -8
- package/checkbox/index.d.ts +4 -4
- package/color-picker/index.d.ts +49 -8
- package/core/index.d.ts +68 -6
- package/date-picker/index.d.ts +82 -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 +108 -62
- 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 +92 -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 +95 -71
- 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 +284 -254
- 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 +47 -42
- package/fesm2022/ng-nest-ui-input-number.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-input.mjs +106 -80
- 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 +219 -0
- package/fesm2022/ng-nest-ui-scrollable.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-select.mjs +125 -110
- 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 +593 -0
- package/fesm2022/ng-nest-ui-table-view.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-table.mjs +222 -222
- 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 +45 -40
- 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 +113 -92
- 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 +147 -110
- 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/fesm2022/ng-nest-ui.mjs +2 -0
- package/fesm2022/ng-nest-ui.mjs.map +1 -1
- package/find/index.d.ts +5 -5
- package/form/index.d.ts +1 -1
- package/index.d.ts +2 -0
- package/input/index.d.ts +47 -5
- package/input-number/index.d.ts +22 -7
- package/list/index.d.ts +2 -2
- package/message-box/index.d.ts +4 -5
- package/package.json +28 -20
- package/radio/index.d.ts +4 -4
- package/rate/index.d.ts +5 -5
- package/scrollable/index.d.ts +49 -0
- package/select/index.d.ts +53 -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 +148 -0
- package/textarea/index.d.ts +20 -5
- package/theme/index.d.ts +1 -1
- package/time-picker/index.d.ts +53 -8
- package/transfer/index.d.ts +1 -1
- package/tree-select/index.d.ts +70 -9
- 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,12 +131,12 @@ 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
|
-
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{
|
|
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: [{
|
|
141
141
|
type: HostBinding,
|
|
142
142
|
args: ['@x-connect-base-animation']
|
|
@@ -165,176 +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
|
+
/**
|
|
170
|
+
* @zh_CN 形态变体
|
|
171
|
+
* @en_US Input variant
|
|
172
|
+
*/
|
|
173
|
+
this.variant = input(this.config?.variant ?? 'outlined', ...(ngDevMode ? [{ debugName: "variant" }] : []));
|
|
169
174
|
/**
|
|
170
175
|
* @zh_CN 展示方位
|
|
171
176
|
* @en_US Display position
|
|
172
177
|
*/
|
|
173
|
-
this.placement = input(this.config?.placement ?? 'bottom-start');
|
|
178
|
+
this.placement = input(this.config?.placement ?? 'bottom-start', ...(ngDevMode ? [{ debugName: "placement" }] : []));
|
|
174
179
|
/**
|
|
175
180
|
* @zh_CN 清除按钮
|
|
176
181
|
* @en_US Clear button
|
|
177
182
|
*/
|
|
178
|
-
this.clearable = input(this.config?.clearable ?? true, { transform: XToBoolean });
|
|
183
|
+
this.clearable = input(this.config?.clearable ?? true, ...(ngDevMode ? [{ debugName: "clearable", transform: XToBoolean }] : [{ transform: XToBoolean }]));
|
|
179
184
|
/**
|
|
180
185
|
* @zh_CN 显示边框
|
|
181
186
|
* @en_US Display Border
|
|
182
187
|
*/
|
|
183
|
-
this.bordered = input(this.config?.bordered ?? true, { transform: XToBoolean });
|
|
188
|
+
this.bordered = input(this.config?.bordered ?? true, ...(ngDevMode ? [{ debugName: "bordered", transform: XToBoolean }] : [{ transform: XToBoolean }]));
|
|
184
189
|
/**
|
|
185
190
|
* @zh_CN 路径分隔符
|
|
186
191
|
* @en_US Path separator
|
|
187
192
|
*/
|
|
188
|
-
this.separator = input(this.config?.separator ?? ' / ');
|
|
193
|
+
this.separator = input(this.config?.separator ?? ' / ', ...(ngDevMode ? [{ debugName: "separator" }] : []));
|
|
189
194
|
/**
|
|
190
195
|
* @zh_CN 下拉框的最大高度
|
|
191
196
|
* @en_US The biggest height of the drop-down box
|
|
192
197
|
*/
|
|
193
|
-
this.portalMaxHeight = input(this.config?.portalMaxHeight ?? '12rem', {
|
|
194
|
-
|
|
195
|
-
|
|
198
|
+
this.portalMaxHeight = input(this.config?.portalMaxHeight ?? '12rem', ...(ngDevMode ? [{ debugName: "portalMaxHeight", transform: XToCssPixelValue }] : [{
|
|
199
|
+
transform: XToCssPixelValue
|
|
200
|
+
}]));
|
|
196
201
|
/**
|
|
197
202
|
* @zh_CN 下拉框的高度,启用虚拟滚动的时候必须设置一个高度
|
|
198
203
|
* @en_US The biggest height of the drop-down box
|
|
199
204
|
*/
|
|
200
|
-
this.portalHeight = input('', {
|
|
201
|
-
|
|
202
|
-
|
|
205
|
+
this.portalHeight = input('', ...(ngDevMode ? [{ debugName: "portalHeight", transform: XToCssPixelValue }] : [{
|
|
206
|
+
transform: XToCssPixelValue
|
|
207
|
+
}]));
|
|
203
208
|
/**
|
|
204
209
|
* @zh_CN 下拉框的宽度
|
|
205
210
|
* @en_US The width of the drop-down box
|
|
206
211
|
*/
|
|
207
|
-
this.portalWidth = input('', { transform: XToCssPixelValue });
|
|
212
|
+
this.portalWidth = input('', ...(ngDevMode ? [{ debugName: "portalWidth", transform: XToCssPixelValue }] : [{ transform: XToCssPixelValue }]));
|
|
208
213
|
/**
|
|
209
214
|
* @zh_CN 下拉框设置样式名
|
|
210
215
|
* @en_US The style class name of the drop-down box
|
|
211
216
|
*/
|
|
212
|
-
this.portalClass = input('');
|
|
217
|
+
this.portalClass = input('', ...(ngDevMode ? [{ debugName: "portalClass" }] : []));
|
|
213
218
|
/**
|
|
214
219
|
* @zh_CN 子节点触发方式
|
|
215
220
|
* @en_US Sub node triggering method
|
|
216
221
|
*/
|
|
217
|
-
this.nodeTrigger = input(this.config?.nodeTrigger ?? 'click');
|
|
222
|
+
this.nodeTrigger = input(this.config?.nodeTrigger ?? 'click', ...(ngDevMode ? [{ debugName: "nodeTrigger" }] : []));
|
|
218
223
|
/**
|
|
219
224
|
* @zh_CN 子节点触发方式为 hover 时的延迟时间
|
|
220
225
|
* @en_US Sub node triggering method
|
|
221
226
|
*/
|
|
222
|
-
this.nodeHoverDelay = input(this.config?.nodeHoverDelay ?? 200, { transform: XToNumber });
|
|
227
|
+
this.nodeHoverDelay = input(this.config?.nodeHoverDelay ?? 200, ...(ngDevMode ? [{ debugName: "nodeHoverDelay", transform: XToNumber }] : [{ transform: XToNumber }]));
|
|
223
228
|
/**
|
|
224
229
|
* @zh_CN 节点模板
|
|
225
230
|
* @en_US Node template
|
|
226
231
|
*/
|
|
227
|
-
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 }]));
|
|
228
243
|
/**
|
|
229
244
|
* @zh_CN 尺寸
|
|
230
245
|
* @en_US Size
|
|
231
246
|
*/
|
|
232
|
-
this.size = input(this.config?.size ?? 'medium');
|
|
247
|
+
this.size = input(this.config?.size ?? 'medium', ...(ngDevMode ? [{ debugName: "size" }] : []));
|
|
233
248
|
/**
|
|
234
249
|
* @zh_CN 输入框点击样式
|
|
235
250
|
* @en_US Input pointer
|
|
236
251
|
*/
|
|
237
|
-
this.pointer = input(false, { transform: XToBoolean });
|
|
252
|
+
this.pointer = input(false, ...(ngDevMode ? [{ debugName: "pointer", transform: XToBoolean }] : [{ transform: XToBoolean }]));
|
|
238
253
|
/**
|
|
239
254
|
* @zh_CN 标签
|
|
240
255
|
* @en_US Label
|
|
241
256
|
*/
|
|
242
|
-
this.label = input('');
|
|
257
|
+
this.label = input('', ...(ngDevMode ? [{ debugName: "label" }] : []));
|
|
243
258
|
/**
|
|
244
259
|
* @zh_CN 标签宽度
|
|
245
260
|
* @en_US Label width
|
|
246
261
|
*/
|
|
247
|
-
this.labelWidth = input('', { transform: XToCssPixelValue });
|
|
262
|
+
this.labelWidth = input('', ...(ngDevMode ? [{ debugName: "labelWidth", transform: XToCssPixelValue }] : [{ transform: XToCssPixelValue }]));
|
|
248
263
|
/**
|
|
249
264
|
* @zh_CN 标签文字对齐方式
|
|
250
265
|
* @en_US Label text alignment method
|
|
251
266
|
*/
|
|
252
|
-
this.labelAlign = input('start');
|
|
267
|
+
this.labelAlign = input('start', ...(ngDevMode ? [{ debugName: "labelAlign" }] : []));
|
|
253
268
|
/**
|
|
254
269
|
* @zh_CN flex 布局下的子元素水平排列方式
|
|
255
270
|
* @en_US The level of sub-element level arrangement under flex layout
|
|
256
271
|
*/
|
|
257
|
-
this.justify = input('start');
|
|
272
|
+
this.justify = input('start', ...(ngDevMode ? [{ debugName: "justify" }] : []));
|
|
258
273
|
/**
|
|
259
274
|
* @zh_CN flex 布局下的子元素垂直排列方式
|
|
260
275
|
* @en_US sub-element vertical arrangement method under flex layout
|
|
261
276
|
*/
|
|
262
|
-
this.align = input('start');
|
|
277
|
+
this.align = input('start', ...(ngDevMode ? [{ debugName: "align" }] : []));
|
|
263
278
|
/**
|
|
264
279
|
* @zh_CN flex 布局下的子元素排列方向
|
|
265
280
|
* @en_US The direction of the sub-element arrangement under flex layout
|
|
266
281
|
*/
|
|
267
|
-
this.direction = input('column');
|
|
282
|
+
this.direction = input('column', ...(ngDevMode ? [{ debugName: "direction" }] : []));
|
|
268
283
|
/**
|
|
269
284
|
* @zh_CN 输入提示信息
|
|
270
285
|
* @en_US Enter prompt information
|
|
271
286
|
*/
|
|
272
|
-
this.placeholder = input('');
|
|
287
|
+
this.placeholder = input('', ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
|
|
273
288
|
/**
|
|
274
289
|
* @zh_CN 禁用
|
|
275
290
|
* @en_US Disabled
|
|
276
291
|
*/
|
|
277
|
-
this.disabled = input(false, { transform: XToBoolean });
|
|
292
|
+
this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled", transform: XToBoolean }] : [{ transform: XToBoolean }]));
|
|
278
293
|
/**
|
|
279
294
|
* @zh_CN 必填
|
|
280
295
|
* @en_US Required
|
|
281
296
|
*/
|
|
282
|
-
this.required = input(false, { transform: XToBoolean });
|
|
297
|
+
this.required = input(false, ...(ngDevMode ? [{ debugName: "required", transform: XToBoolean }] : [{ transform: XToBoolean }]));
|
|
283
298
|
/**
|
|
284
299
|
* @zh_CN 只读
|
|
285
300
|
* @en_US Readonly
|
|
286
301
|
*/
|
|
287
|
-
this.readonly = input(true, { transform: XToBoolean });
|
|
302
|
+
this.readonly = input(true, ...(ngDevMode ? [{ debugName: "readonly", transform: XToBoolean }] : [{ transform: XToBoolean }]));
|
|
288
303
|
/**
|
|
289
304
|
* @zh_CN 值模板
|
|
290
305
|
* @en_US Node template
|
|
291
306
|
*/
|
|
292
|
-
this.valueTpl = input();
|
|
307
|
+
this.valueTpl = input(...(ngDevMode ? [undefined, { debugName: "valueTpl" }] : []));
|
|
293
308
|
/**
|
|
294
309
|
* @zh_CN 值模板参数
|
|
295
310
|
* @en_US Node template
|
|
296
311
|
*/
|
|
297
|
-
this.valueTplContext = input();
|
|
312
|
+
this.valueTplContext = input(...(ngDevMode ? [undefined, { debugName: "valueTplContext" }] : []));
|
|
298
313
|
/**
|
|
299
314
|
* @zh_CN 前置标签
|
|
300
315
|
* @en_US Before label
|
|
301
316
|
*/
|
|
302
|
-
this.before = input();
|
|
317
|
+
this.before = input(...(ngDevMode ? [undefined, { debugName: "before" }] : []));
|
|
303
318
|
/**
|
|
304
319
|
* @zh_CN 后置标签
|
|
305
320
|
* @en_US After label
|
|
306
321
|
*/
|
|
307
|
-
this.after = input();
|
|
322
|
+
this.after = input(...(ngDevMode ? [undefined, { debugName: "after" }] : []));
|
|
308
323
|
/**
|
|
309
324
|
* @zh_CN 正则验证规则
|
|
310
325
|
* @en_US Regular verification rules
|
|
311
326
|
*/
|
|
312
|
-
this.pattern = input(null);
|
|
327
|
+
this.pattern = input(null, ...(ngDevMode ? [{ debugName: "pattern" }] : []));
|
|
313
328
|
/**
|
|
314
329
|
* @zh_CN 验证不通过提示文字
|
|
315
330
|
* @en_US Verify not pass the prompt text
|
|
316
331
|
*/
|
|
317
|
-
this.message = input([]);
|
|
332
|
+
this.message = input([], ...(ngDevMode ? [{ debugName: "message" }] : []));
|
|
318
333
|
/**
|
|
319
334
|
* @zh_CN 激活状态
|
|
320
335
|
* @en_US Activation state
|
|
321
336
|
*/
|
|
322
|
-
this.active = model(false);
|
|
337
|
+
this.active = model(false, ...(ngDevMode ? [{ debugName: "active" }] : []));
|
|
323
338
|
/**
|
|
324
339
|
* @zh_CN 输入验证函数
|
|
325
340
|
* @en_US Enter the verification function
|
|
326
341
|
*/
|
|
327
|
-
this.inputValidator = input();
|
|
342
|
+
this.inputValidator = input(...(ngDevMode ? [undefined, { debugName: "inputValidator" }] : []));
|
|
328
343
|
/**
|
|
329
344
|
* @zh_CN 节点点击的事件
|
|
330
345
|
* @en_US Node click event
|
|
331
346
|
*/
|
|
332
347
|
this.nodeEmit = output();
|
|
333
348
|
}
|
|
334
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
335
|
-
/** @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 }); }
|
|
336
351
|
}
|
|
337
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
352
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XCascadeProperty, decorators: [{
|
|
338
353
|
type: Component,
|
|
339
354
|
args: [{ selector: `${XCascadePrefix}-property`, template: '' }]
|
|
340
355
|
}] });
|
|
@@ -350,12 +365,12 @@ class XCascadeComponent extends XCascadeProperty {
|
|
|
350
365
|
super();
|
|
351
366
|
this.cascade = viewChild.required('cascade', { read: (ElementRef) });
|
|
352
367
|
this.inputCom = viewChild.required('inputCom', { read: XInputComponent });
|
|
353
|
-
this.showClearable = signal(false);
|
|
354
|
-
this.enter = signal(false);
|
|
355
|
-
this.animating = signal(false);
|
|
356
|
-
this.datas = signal([]);
|
|
357
|
-
this.nodes = signal([]);
|
|
358
|
-
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" }] : []));
|
|
359
374
|
this.displayValue = computed(() => {
|
|
360
375
|
let node = this.datas().find((x) => x.id === this.value());
|
|
361
376
|
if (XIsEmpty(node)) {
|
|
@@ -369,7 +384,7 @@ class XCascadeComponent extends XCascadeProperty {
|
|
|
369
384
|
}
|
|
370
385
|
return selecteds.map((x) => x.label).join(this.separator());
|
|
371
386
|
}
|
|
372
|
-
});
|
|
387
|
+
}, ...(ngDevMode ? [{ debugName: "displayValue" }] : []));
|
|
373
388
|
this.valueTplContextSignal = computed(() => {
|
|
374
389
|
if (this.valueTplContext())
|
|
375
390
|
return this.valueTplContext();
|
|
@@ -389,7 +404,7 @@ class XCascadeComponent extends XCascadeProperty {
|
|
|
389
404
|
$isValue: true
|
|
390
405
|
};
|
|
391
406
|
}
|
|
392
|
-
});
|
|
407
|
+
}, ...(ngDevMode ? [{ debugName: "valueTplContextSignal" }] : []));
|
|
393
408
|
this.closeSubject = new Subject();
|
|
394
409
|
this.unSubject = new Subject();
|
|
395
410
|
this.document = inject(DOCUMENT);
|
|
@@ -397,9 +412,9 @@ class XCascadeComponent extends XCascadeProperty {
|
|
|
397
412
|
this.viewContainerRef = inject(ViewContainerRef);
|
|
398
413
|
this.elementRef = inject(ElementRef);
|
|
399
414
|
this.overlay = inject(Overlay);
|
|
400
|
-
this.realPlacement = signal(null);
|
|
401
|
-
this.portalComponent = signal(null);
|
|
402
|
-
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" }] : []));
|
|
403
418
|
effect(() => this.portalComponent()?.setInput('value', this.value()));
|
|
404
419
|
effect(() => this.portalComponent()?.setInput('placement', this.realPlacement()));
|
|
405
420
|
effect(() => this.portalComponent()?.setInput('nodeTpl', this.nodeTpl()));
|
|
@@ -503,6 +518,7 @@ class XCascadeComponent extends XCascadeProperty {
|
|
|
503
518
|
const config = {
|
|
504
519
|
backdropClass: '',
|
|
505
520
|
width: this.portalWidth(),
|
|
521
|
+
panelClass: this.portalClass(),
|
|
506
522
|
positionStrategy: this.setPlacement(),
|
|
507
523
|
scrollStrategy: this.overlay.scrollStrategies.reposition()
|
|
508
524
|
};
|
|
@@ -558,20 +574,20 @@ class XCascadeComponent extends XCascadeProperty {
|
|
|
558
574
|
setPortal() {
|
|
559
575
|
this.portalAttached() && this.portalOverlayRef()?.updatePositionStrategy(this.setPlacement());
|
|
560
576
|
}
|
|
561
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
562
|
-
/** @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 }); }
|
|
563
579
|
}
|
|
564
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
580
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XCascadeComponent, decorators: [{
|
|
565
581
|
type: Component,
|
|
566
|
-
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 (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"] }]
|
|
567
583
|
}], ctorParameters: () => [] });
|
|
568
584
|
|
|
569
585
|
class XCascadeModule {
|
|
570
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
571
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
572
|
-
/** @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] }); }
|
|
573
589
|
}
|
|
574
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
590
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XCascadeModule, decorators: [{
|
|
575
591
|
type: NgModule,
|
|
576
592
|
args: [{
|
|
577
593
|
exports: [XCascadeComponent],
|