@ng-nest/ui 21.0.13 → 22.0.1
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/README.md +1 -1
- 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 +46 -34
- package/fesm2022/ng-nest-ui-alert.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-anchor.mjs +43 -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-attachments.mjs +74 -48
- package/fesm2022/ng-nest-ui-attachments.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-auto-complete.mjs +114 -70
- package/fesm2022/ng-nest-ui-auto-complete.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-avatar.mjs +47 -32
- package/fesm2022/ng-nest-ui-avatar.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-back-top.mjs +23 -18
- package/fesm2022/ng-nest-ui-back-top.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-badge.mjs +30 -23
- package/fesm2022/ng-nest-ui-badge.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-base-form.mjs +75 -44
- package/fesm2022/ng-nest-ui-base-form.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-bubble.mjs +76 -48
- package/fesm2022/ng-nest-ui-bubble.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-button.mjs +53 -42
- package/fesm2022/ng-nest-ui-button.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-calendar.mjs +30 -20
- package/fesm2022/ng-nest-ui-calendar.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-card.mjs +21 -16
- package/fesm2022/ng-nest-ui-card.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-carousel.mjs +68 -46
- package/fesm2022/ng-nest-ui-carousel.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-cascade.mjs +121 -73
- package/fesm2022/ng-nest-ui-cascade.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-checkbox.mjs +54 -38
- package/fesm2022/ng-nest-ui-checkbox.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-collapse.mjs +38 -30
- package/fesm2022/ng-nest-ui-collapse.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-color-picker.mjs +119 -72
- package/fesm2022/ng-nest-ui-color-picker.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-color.mjs +22 -16
- package/fesm2022/ng-nest-ui-color.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-comment.mjs +23 -21
- package/fesm2022/ng-nest-ui-comment.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-container.mjs +40 -37
- package/fesm2022/ng-nest-ui-container.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-contextmenu.mjs +71 -45
- package/fesm2022/ng-nest-ui-contextmenu.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-core.mjs +24 -21
- package/fesm2022/ng-nest-ui-core.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-coversations.mjs +25 -18
- package/fesm2022/ng-nest-ui-coversations.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-crumb.mjs +15 -13
- package/fesm2022/ng-nest-ui-crumb.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-date-picker.mjs +425 -256
- package/fesm2022/ng-nest-ui-date-picker.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-description.mjs +42 -31
- package/fesm2022/ng-nest-ui-description.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-dialog.mjs +106 -82
- package/fesm2022/ng-nest-ui-dialog.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-divider.mjs +24 -17
- package/fesm2022/ng-nest-ui-divider.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-doc.mjs +7 -7
- package/fesm2022/ng-nest-ui-drag.mjs +10 -10
- package/fesm2022/ng-nest-ui-drawer.mjs +52 -43
- package/fesm2022/ng-nest-ui-drawer.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-dropdown.mjs +94 -58
- package/fesm2022/ng-nest-ui-dropdown.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-empty.mjs +14 -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-find.mjs +111 -71
- package/fesm2022/ng-nest-ui-find.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-form.mjs +45 -33
- package/fesm2022/ng-nest-ui-form.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-highlight.mjs +26 -20
- package/fesm2022/ng-nest-ui-highlight.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-i18n.mjs +16 -15
- package/fesm2022/ng-nest-ui-i18n.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-icon.mjs +28 -21
- package/fesm2022/ng-nest-ui-icon.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-image.mjs +57 -51
- 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 +63 -42
- package/fesm2022/ng-nest-ui-input-number.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-input.mjs +130 -85
- package/fesm2022/ng-nest-ui-input.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-keyword.mjs +19 -15
- package/fesm2022/ng-nest-ui-keyword.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-layout.mjs +37 -31
- package/fesm2022/ng-nest-ui-layout.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-link.mjs +23 -18
- package/fesm2022/ng-nest-ui-link.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-list.mjs +137 -89
- package/fesm2022/ng-nest-ui-list.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-loading.mjs +36 -25
- package/fesm2022/ng-nest-ui-loading.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-menu.mjs +68 -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.mjs +10 -10
- package/fesm2022/ng-nest-ui-notification.mjs +10 -10
- package/fesm2022/ng-nest-ui-outlet.mjs +11 -9
- package/fesm2022/ng-nest-ui-outlet.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-page-header.mjs +20 -15
- package/fesm2022/ng-nest-ui-page-header.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-pagination.mjs +69 -48
- package/fesm2022/ng-nest-ui-pagination.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-pattern.mjs +7 -7
- package/fesm2022/ng-nest-ui-popconfirm.mjs +40 -27
- package/fesm2022/ng-nest-ui-popconfirm.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-popover.mjs +57 -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-progress.mjs +60 -41
- package/fesm2022/ng-nest-ui-progress.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-prompts.mjs +18 -15
- package/fesm2022/ng-nest-ui-prompts.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-radio.mjs +50 -35
- package/fesm2022/ng-nest-ui-radio.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-rate.mjs +43 -29
- package/fesm2022/ng-nest-ui-rate.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-resizable.mjs +18 -16
- package/fesm2022/ng-nest-ui-resizable.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-result.mjs +22 -16
- package/fesm2022/ng-nest-ui-result.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-ripple.mjs +14 -13
- package/fesm2022/ng-nest-ui-ripple.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-scrollable.mjs +41 -24
- package/fesm2022/ng-nest-ui-scrollable.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-select.mjs +197 -118
- package/fesm2022/ng-nest-ui-select.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-sender.mjs +43 -31
- package/fesm2022/ng-nest-ui-sender.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-skeleton.mjs +17 -15
- package/fesm2022/ng-nest-ui-skeleton.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-slider-select.mjs +85 -53
- package/fesm2022/ng-nest-ui-slider-select.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-slider.mjs +58 -37
- package/fesm2022/ng-nest-ui-slider.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-splitter.mjs +32 -24
- package/fesm2022/ng-nest-ui-splitter.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-statistic.mjs +44 -30
- package/fesm2022/ng-nest-ui-statistic.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-steps.mjs +30 -22
- package/fesm2022/ng-nest-ui-steps.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-suggestion.mjs +23 -20
- package/fesm2022/ng-nest-ui-suggestion.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-switch.mjs +35 -25
- package/fesm2022/ng-nest-ui-switch.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-table-view.mjs +78 -69
- package/fesm2022/ng-nest-ui-table-view.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-table.mjs +320 -205
- package/fesm2022/ng-nest-ui-table.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-tabs.mjs +74 -56
- package/fesm2022/ng-nest-ui-tabs.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-tag.mjs +30 -23
- package/fesm2022/ng-nest-ui-tag.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-text-retract.mjs +19 -15
- package/fesm2022/ng-nest-ui-text-retract.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-textarea.mjs +69 -44
- package/fesm2022/ng-nest-ui-textarea.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-theme.mjs +34 -23
- package/fesm2022/ng-nest-ui-theme.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-thought-chain.mjs +26 -19
- package/fesm2022/ng-nest-ui-thought-chain.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-time-ago.mjs +7 -7
- package/fesm2022/ng-nest-ui-time-picker.mjs +164 -96
- 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-timeline.mjs +26 -19
- package/fesm2022/ng-nest-ui-timeline.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-tooltip.mjs +53 -35
- package/fesm2022/ng-nest-ui-tooltip.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-transfer.mjs +66 -40
- package/fesm2022/ng-nest-ui-transfer.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-tree-file.mjs +39 -28
- package/fesm2022/ng-nest-ui-tree-file.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-tree-select.mjs +186 -111
- package/fesm2022/ng-nest-ui-tree-select.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-tree.mjs +166 -105
- package/fesm2022/ng-nest-ui-tree.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-typography.mjs +16 -13
- package/fesm2022/ng-nest-ui-typography.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-upload.mjs +81 -53
- package/fesm2022/ng-nest-ui-upload.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-watermark.mjs +45 -35
- package/fesm2022/ng-nest-ui-watermark.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-welcome.mjs +22 -16
- package/fesm2022/ng-nest-ui-welcome.mjs.map +1 -1
- package/package.json +7 -6
- package/types/ng-nest-ui-base-form.d.ts +3 -3
- package/types/ng-nest-ui-carousel.d.ts +1 -1
- package/types/ng-nest-ui-container.d.ts +1 -1
- package/types/ng-nest-ui-core.d.ts +1 -1
- package/types/ng-nest-ui-dialog.d.ts +1 -1
- package/types/ng-nest-ui-drawer.d.ts +1 -1
- package/types/ng-nest-ui-form.d.ts +12 -12
- package/types/ng-nest-ui-layout.d.ts +1 -1
- package/types/ng-nest-ui-list.d.ts +1 -1
- package/types/ng-nest-ui-portal.d.ts +3 -3
- package/types/ng-nest-ui-table-view.d.ts +1 -1
- package/types/ng-nest-ui-table.d.ts +1 -1
- package/types/ng-nest-ui-tabs.d.ts +1 -1
- package/types/ng-nest-ui-tree.d.ts +1 -1
|
@@ -17,22 +17,36 @@ class XCascadePortalComponent {
|
|
|
17
17
|
constructor() {
|
|
18
18
|
this.animateEnter = 'x-connect-enter';
|
|
19
19
|
this.animateLeave = 'x-connect-leave';
|
|
20
|
-
this.value = input(
|
|
21
|
-
|
|
22
|
-
this.
|
|
23
|
-
|
|
24
|
-
this.
|
|
25
|
-
|
|
26
|
-
this.
|
|
27
|
-
|
|
28
|
-
this.
|
|
29
|
-
|
|
30
|
-
this.
|
|
20
|
+
this.value = input(/* @ts-ignore */
|
|
21
|
+
...(ngDevMode ? [undefined, { debugName: "value" }] : /* istanbul ignore next */ []));
|
|
22
|
+
this.placement = input(/* @ts-ignore */
|
|
23
|
+
...(ngDevMode ? [undefined, { debugName: "placement" }] : /* istanbul ignore next */ []));
|
|
24
|
+
this.nodeTpl = input(/* @ts-ignore */
|
|
25
|
+
...(ngDevMode ? [undefined, { debugName: "nodeTpl" }] : /* istanbul ignore next */ []));
|
|
26
|
+
this.inputCom = input(/* @ts-ignore */
|
|
27
|
+
...(ngDevMode ? [undefined, { debugName: "inputCom" }] : /* istanbul ignore next */ []));
|
|
28
|
+
this.nodeTrigger = input(/* @ts-ignore */
|
|
29
|
+
...(ngDevMode ? [undefined, { debugName: "nodeTrigger" }] : /* istanbul ignore next */ []));
|
|
30
|
+
this.nodeHoverDelay = input(200, /* @ts-ignore */
|
|
31
|
+
...(ngDevMode ? [{ debugName: "nodeHoverDelay" }] : /* istanbul ignore next */ []));
|
|
32
|
+
this.portalMaxHeight = input('', /* @ts-ignore */
|
|
33
|
+
...(ngDevMode ? [{ debugName: "portalMaxHeight" }] : /* istanbul ignore next */ []));
|
|
34
|
+
this.portalHeight = input('', /* @ts-ignore */
|
|
35
|
+
...(ngDevMode ? [{ debugName: "portalHeight" }] : /* istanbul ignore next */ []));
|
|
36
|
+
this.portalWidth = input('', /* @ts-ignore */
|
|
37
|
+
...(ngDevMode ? [{ debugName: "portalWidth" }] : /* istanbul ignore next */ []));
|
|
38
|
+
this.nodes = model([], /* @ts-ignore */
|
|
39
|
+
...(ngDevMode ? [{ debugName: "nodes" }] : /* istanbul ignore next */ []));
|
|
40
|
+
this.datas = input([], /* @ts-ignore */
|
|
41
|
+
...(ngDevMode ? [{ debugName: "datas" }] : /* istanbul ignore next */ []));
|
|
31
42
|
this.animating = output();
|
|
32
43
|
this.nodeClick = output();
|
|
33
|
-
this.selecteds = signal([],
|
|
34
|
-
|
|
35
|
-
this.
|
|
44
|
+
this.selecteds = signal([], /* @ts-ignore */
|
|
45
|
+
...(ngDevMode ? [{ debugName: "selecteds" }] : /* istanbul ignore next */ []));
|
|
46
|
+
this.values = signal([], /* @ts-ignore */
|
|
47
|
+
...(ngDevMode ? [{ debugName: "values" }] : /* istanbul ignore next */ []));
|
|
48
|
+
this.destroy = signal(false, /* @ts-ignore */
|
|
49
|
+
...(ngDevMode ? [{ debugName: "destroy" }] : /* istanbul ignore next */ []));
|
|
36
50
|
this.unSubject = new Subject();
|
|
37
51
|
this.hoverDelayUnSub = new Subject();
|
|
38
52
|
this.destroyRef = inject(DestroyRef);
|
|
@@ -130,10 +144,10 @@ class XCascadePortalComponent {
|
|
|
130
144
|
});
|
|
131
145
|
}
|
|
132
146
|
}
|
|
133
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
134
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
147
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XCascadePortalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
148
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.1", 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: { "animationend": "done()", "animationstart": "start()" }, properties: { "animate.enter": "this.animateEnter", "animate.leave": "this.animateLeave" } }, 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" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
135
149
|
}
|
|
136
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
150
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XCascadePortalComponent, decorators: [{
|
|
137
151
|
type: Component,
|
|
138
152
|
args: [{ selector: 'x-cascade-portal', imports: [FormsModule, XListComponent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, 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"] }]
|
|
139
153
|
}], propDecorators: { animateEnter: [{
|
|
@@ -167,187 +181,210 @@ class XCascadeProperty extends XFormControlFunction(X_CASCADE_CONFIG_NAME) {
|
|
|
167
181
|
* @zh_CN 节点数据
|
|
168
182
|
* @en_US Node data
|
|
169
183
|
*/
|
|
170
|
-
this.data = input([],
|
|
184
|
+
this.data = input([], /* @ts-ignore */
|
|
185
|
+
...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
|
|
171
186
|
/**
|
|
172
187
|
* @zh_CN 形态变体
|
|
173
188
|
* @en_US Input variant
|
|
174
189
|
*/
|
|
175
|
-
this.variant = input(this.config?.variant ?? 'outlined',
|
|
190
|
+
this.variant = input(this.config?.variant ?? 'outlined', /* @ts-ignore */
|
|
191
|
+
...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
|
|
176
192
|
/**
|
|
177
193
|
* @zh_CN 展示方位
|
|
178
194
|
* @en_US Display position
|
|
179
195
|
*/
|
|
180
|
-
this.placement = input(this.config?.placement ?? 'bottom-start',
|
|
196
|
+
this.placement = input(this.config?.placement ?? 'bottom-start', /* @ts-ignore */
|
|
197
|
+
...(ngDevMode ? [{ debugName: "placement" }] : /* istanbul ignore next */ []));
|
|
181
198
|
/**
|
|
182
199
|
* @zh_CN 清除按钮
|
|
183
200
|
* @en_US Clear button
|
|
184
201
|
*/
|
|
185
|
-
this.clearable = input(this.config?.clearable ?? true, { ...(ngDevMode ? { debugName: "clearable" } : {}), transform: XToBoolean });
|
|
202
|
+
this.clearable = input(this.config?.clearable ?? true, { ...(ngDevMode ? { debugName: "clearable" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
186
203
|
/**
|
|
187
204
|
* @zh_CN 显示边框
|
|
188
205
|
* @en_US Display Border
|
|
189
206
|
*/
|
|
190
|
-
this.bordered = input(this.config?.bordered ?? true, { ...(ngDevMode ? { debugName: "bordered" } : {}), transform: XToBoolean });
|
|
207
|
+
this.bordered = input(this.config?.bordered ?? true, { ...(ngDevMode ? { debugName: "bordered" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
191
208
|
/**
|
|
192
209
|
* @zh_CN 路径分隔符
|
|
193
210
|
* @en_US Path separator
|
|
194
211
|
*/
|
|
195
|
-
this.separator = input(this.config?.separator ?? ' / ',
|
|
212
|
+
this.separator = input(this.config?.separator ?? ' / ', /* @ts-ignore */
|
|
213
|
+
...(ngDevMode ? [{ debugName: "separator" }] : /* istanbul ignore next */ []));
|
|
196
214
|
/**
|
|
197
215
|
* @zh_CN 下拉框的最大高度
|
|
198
216
|
* @en_US The biggest height of the drop-down box
|
|
199
217
|
*/
|
|
200
|
-
this.portalMaxHeight = input(this.config?.portalMaxHeight ?? '12rem', { ...(ngDevMode ? { debugName: "portalMaxHeight" } : {}), transform: XToCssPixelValue });
|
|
218
|
+
this.portalMaxHeight = input(this.config?.portalMaxHeight ?? '12rem', { ...(ngDevMode ? { debugName: "portalMaxHeight" } : /* istanbul ignore next */ {}), transform: XToCssPixelValue });
|
|
201
219
|
/**
|
|
202
220
|
* @zh_CN 下拉框的高度,启用虚拟滚动的时候必须设置一个高度
|
|
203
221
|
* @en_US The biggest height of the drop-down box
|
|
204
222
|
*/
|
|
205
|
-
this.portalHeight = input('', { ...(ngDevMode ? { debugName: "portalHeight" } : {}), transform: XToCssPixelValue });
|
|
223
|
+
this.portalHeight = input('', { ...(ngDevMode ? { debugName: "portalHeight" } : /* istanbul ignore next */ {}), transform: XToCssPixelValue });
|
|
206
224
|
/**
|
|
207
225
|
* @zh_CN 下拉框的宽度
|
|
208
226
|
* @en_US The width of the drop-down box
|
|
209
227
|
*/
|
|
210
|
-
this.portalWidth = input('', { ...(ngDevMode ? { debugName: "portalWidth" } : {}), transform: XToCssPixelValue });
|
|
228
|
+
this.portalWidth = input('', { ...(ngDevMode ? { debugName: "portalWidth" } : /* istanbul ignore next */ {}), transform: XToCssPixelValue });
|
|
211
229
|
/**
|
|
212
230
|
* @zh_CN 下拉框设置样式名
|
|
213
231
|
* @en_US The style class name of the drop-down box
|
|
214
232
|
*/
|
|
215
|
-
this.portalClass = input('',
|
|
233
|
+
this.portalClass = input('', /* @ts-ignore */
|
|
234
|
+
...(ngDevMode ? [{ debugName: "portalClass" }] : /* istanbul ignore next */ []));
|
|
216
235
|
/**
|
|
217
236
|
* @zh_CN 子节点触发方式
|
|
218
237
|
* @en_US Sub node triggering method
|
|
219
238
|
*/
|
|
220
|
-
this.nodeTrigger = input(this.config?.nodeTrigger ?? 'click',
|
|
239
|
+
this.nodeTrigger = input(this.config?.nodeTrigger ?? 'click', /* @ts-ignore */
|
|
240
|
+
...(ngDevMode ? [{ debugName: "nodeTrigger" }] : /* istanbul ignore next */ []));
|
|
221
241
|
/**
|
|
222
242
|
* @zh_CN 子节点触发方式为 hover 时的延迟时间
|
|
223
243
|
* @en_US Sub node triggering method
|
|
224
244
|
*/
|
|
225
|
-
this.nodeHoverDelay = input(this.config?.nodeHoverDelay ?? 200, { ...(ngDevMode ? { debugName: "nodeHoverDelay" } : {}), transform: XToNumber });
|
|
245
|
+
this.nodeHoverDelay = input(this.config?.nodeHoverDelay ?? 200, { ...(ngDevMode ? { debugName: "nodeHoverDelay" } : /* istanbul ignore next */ {}), transform: XToNumber });
|
|
226
246
|
/**
|
|
227
247
|
* @zh_CN 节点模板
|
|
228
248
|
* @en_US Node template
|
|
229
249
|
*/
|
|
230
|
-
this.nodeTpl = input(
|
|
250
|
+
this.nodeTpl = input(/* @ts-ignore */
|
|
251
|
+
...(ngDevMode ? [undefined, { debugName: "nodeTpl" }] : /* istanbul ignore next */ []));
|
|
231
252
|
/**
|
|
232
253
|
* @zh_CN 浮动标签
|
|
233
254
|
* @en_US Float label
|
|
234
255
|
*/
|
|
235
|
-
this.floatLabel = input(this.config?.floatLabel ?? null,
|
|
256
|
+
this.floatLabel = input(this.config?.floatLabel ?? null, /* @ts-ignore */
|
|
257
|
+
...(ngDevMode ? [{ debugName: "floatLabel" }] : /* istanbul ignore next */ []));
|
|
236
258
|
/**
|
|
237
259
|
* @zh_CN 固定浮动标签
|
|
238
260
|
* @en_US Fixed float label
|
|
239
261
|
*/
|
|
240
|
-
this.floatFixed = input(this.config?.floatFixed ?? false, { ...(ngDevMode ? { debugName: "floatFixed" } : {}), transform: XToBoolean });
|
|
262
|
+
this.floatFixed = input(this.config?.floatFixed ?? false, { ...(ngDevMode ? { debugName: "floatFixed" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
241
263
|
/**
|
|
242
264
|
* @zh_CN 尺寸
|
|
243
265
|
* @en_US Size
|
|
244
266
|
*/
|
|
245
|
-
this.size = input(this.config?.size ?? 'medium',
|
|
267
|
+
this.size = input(this.config?.size ?? 'medium', /* @ts-ignore */
|
|
268
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
246
269
|
/**
|
|
247
270
|
* @zh_CN 输入框点击样式
|
|
248
271
|
* @en_US Input pointer
|
|
249
272
|
*/
|
|
250
|
-
this.pointer = input(false, { ...(ngDevMode ? { debugName: "pointer" } : {}), transform: XToBoolean });
|
|
273
|
+
this.pointer = input(false, { ...(ngDevMode ? { debugName: "pointer" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
251
274
|
/**
|
|
252
275
|
* @zh_CN 标签
|
|
253
276
|
* @en_US Label
|
|
254
277
|
*/
|
|
255
|
-
this.label = input('',
|
|
278
|
+
this.label = input('', /* @ts-ignore */
|
|
279
|
+
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
256
280
|
/**
|
|
257
281
|
* @zh_CN 标签宽度
|
|
258
282
|
* @en_US Label width
|
|
259
283
|
*/
|
|
260
|
-
this.labelWidth = input('', { ...(ngDevMode ? { debugName: "labelWidth" } : {}), transform: XToCssPixelValue });
|
|
284
|
+
this.labelWidth = input('', { ...(ngDevMode ? { debugName: "labelWidth" } : /* istanbul ignore next */ {}), transform: XToCssPixelValue });
|
|
261
285
|
/**
|
|
262
286
|
* @zh_CN 标签文字对齐方式
|
|
263
287
|
* @en_US Label text alignment method
|
|
264
288
|
*/
|
|
265
|
-
this.labelAlign = input('start',
|
|
289
|
+
this.labelAlign = input('start', /* @ts-ignore */
|
|
290
|
+
...(ngDevMode ? [{ debugName: "labelAlign" }] : /* istanbul ignore next */ []));
|
|
266
291
|
/**
|
|
267
292
|
* @zh_CN flex 布局下的子元素水平排列方式
|
|
268
293
|
* @en_US The level of sub-element level arrangement under flex layout
|
|
269
294
|
*/
|
|
270
|
-
this.justify = input('start',
|
|
295
|
+
this.justify = input('start', /* @ts-ignore */
|
|
296
|
+
...(ngDevMode ? [{ debugName: "justify" }] : /* istanbul ignore next */ []));
|
|
271
297
|
/**
|
|
272
298
|
* @zh_CN flex 布局下的子元素垂直排列方式
|
|
273
299
|
* @en_US sub-element vertical arrangement method under flex layout
|
|
274
300
|
*/
|
|
275
|
-
this.align = input('start',
|
|
301
|
+
this.align = input('start', /* @ts-ignore */
|
|
302
|
+
...(ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []));
|
|
276
303
|
/**
|
|
277
304
|
* @zh_CN flex 布局下的子元素排列方向
|
|
278
305
|
* @en_US The direction of the sub-element arrangement under flex layout
|
|
279
306
|
*/
|
|
280
|
-
this.direction = input('column',
|
|
307
|
+
this.direction = input('column', /* @ts-ignore */
|
|
308
|
+
...(ngDevMode ? [{ debugName: "direction" }] : /* istanbul ignore next */ []));
|
|
281
309
|
/**
|
|
282
310
|
* @zh_CN 输入提示信息
|
|
283
311
|
* @en_US Enter prompt information
|
|
284
312
|
*/
|
|
285
|
-
this.placeholder = input('',
|
|
313
|
+
this.placeholder = input('', /* @ts-ignore */
|
|
314
|
+
...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
|
|
286
315
|
/**
|
|
287
316
|
* @zh_CN 禁用
|
|
288
317
|
* @en_US Disabled
|
|
289
318
|
*/
|
|
290
|
-
this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : {}), transform: XToBoolean });
|
|
319
|
+
this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
291
320
|
/**
|
|
292
321
|
* @zh_CN 必填
|
|
293
322
|
* @en_US Required
|
|
294
323
|
*/
|
|
295
|
-
this.required = input(false, { ...(ngDevMode ? { debugName: "required" } : {}), transform: XToBoolean });
|
|
324
|
+
this.required = input(false, { ...(ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
296
325
|
/**
|
|
297
326
|
* @zh_CN 只读
|
|
298
327
|
* @en_US Readonly
|
|
299
328
|
*/
|
|
300
|
-
this.readonly = input(true, { ...(ngDevMode ? { debugName: "readonly" } : {}), transform: XToBoolean });
|
|
329
|
+
this.readonly = input(true, { ...(ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
301
330
|
/**
|
|
302
331
|
* @zh_CN 值模板
|
|
303
332
|
* @en_US Node template
|
|
304
333
|
*/
|
|
305
|
-
this.valueTpl = input(
|
|
334
|
+
this.valueTpl = input(/* @ts-ignore */
|
|
335
|
+
...(ngDevMode ? [undefined, { debugName: "valueTpl" }] : /* istanbul ignore next */ []));
|
|
306
336
|
/**
|
|
307
337
|
* @zh_CN 值模板参数
|
|
308
338
|
* @en_US Node template
|
|
309
339
|
*/
|
|
310
|
-
this.valueTplContext = input(
|
|
340
|
+
this.valueTplContext = input(/* @ts-ignore */
|
|
341
|
+
...(ngDevMode ? [undefined, { debugName: "valueTplContext" }] : /* istanbul ignore next */ []));
|
|
311
342
|
/**
|
|
312
343
|
* @zh_CN 前置标签
|
|
313
344
|
* @en_US Before label
|
|
314
345
|
*/
|
|
315
|
-
this.before = input(
|
|
346
|
+
this.before = input(/* @ts-ignore */
|
|
347
|
+
...(ngDevMode ? [undefined, { debugName: "before" }] : /* istanbul ignore next */ []));
|
|
316
348
|
/**
|
|
317
349
|
* @zh_CN 后置标签
|
|
318
350
|
* @en_US After label
|
|
319
351
|
*/
|
|
320
|
-
this.after = input(
|
|
352
|
+
this.after = input(/* @ts-ignore */
|
|
353
|
+
...(ngDevMode ? [undefined, { debugName: "after" }] : /* istanbul ignore next */ []));
|
|
321
354
|
/**
|
|
322
355
|
* @zh_CN 正则验证规则
|
|
323
356
|
* @en_US Regular verification rules
|
|
324
357
|
*/
|
|
325
|
-
this.pattern = input(null,
|
|
358
|
+
this.pattern = input(null, /* @ts-ignore */
|
|
359
|
+
...(ngDevMode ? [{ debugName: "pattern" }] : /* istanbul ignore next */ []));
|
|
326
360
|
/**
|
|
327
361
|
* @zh_CN 验证不通过提示文字
|
|
328
362
|
* @en_US Verify not pass the prompt text
|
|
329
363
|
*/
|
|
330
|
-
this.message = input('',
|
|
364
|
+
this.message = input('', /* @ts-ignore */
|
|
365
|
+
...(ngDevMode ? [{ debugName: "message" }] : /* istanbul ignore next */ []));
|
|
331
366
|
/**
|
|
332
367
|
* @zh_CN 激活状态
|
|
333
368
|
* @en_US Activation state
|
|
334
369
|
*/
|
|
335
|
-
this.active = model(false,
|
|
370
|
+
this.active = model(false, /* @ts-ignore */
|
|
371
|
+
...(ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []));
|
|
336
372
|
/**
|
|
337
373
|
* @zh_CN 输入验证函数
|
|
338
374
|
* @en_US Enter the verification function
|
|
339
375
|
*/
|
|
340
|
-
this.inputValidator = input(
|
|
376
|
+
this.inputValidator = input(/* @ts-ignore */
|
|
377
|
+
...(ngDevMode ? [undefined, { debugName: "inputValidator" }] : /* istanbul ignore next */ []));
|
|
341
378
|
/**
|
|
342
379
|
* @zh_CN 节点点击的事件
|
|
343
380
|
* @en_US Node click event
|
|
344
381
|
*/
|
|
345
382
|
this.nodeEmit = output();
|
|
346
383
|
}
|
|
347
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
348
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
384
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XCascadeProperty, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
385
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.1", 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 }); }
|
|
349
386
|
}
|
|
350
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
387
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XCascadeProperty, decorators: [{
|
|
351
388
|
type: Component,
|
|
352
389
|
args: [{ selector: `${XCascadePrefix}-property`, template: '' }]
|
|
353
390
|
}], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], placement: [{ type: i0.Input, args: [{ isSignal: true, alias: "placement", required: false }] }], clearable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearable", required: false }] }], bordered: [{ type: i0.Input, args: [{ isSignal: true, alias: "bordered", required: false }] }], separator: [{ type: i0.Input, args: [{ isSignal: true, alias: "separator", required: false }] }], portalMaxHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "portalMaxHeight", required: false }] }], portalHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "portalHeight", required: false }] }], portalWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "portalWidth", required: false }] }], portalClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "portalClass", required: false }] }], nodeTrigger: [{ type: i0.Input, args: [{ isSignal: true, alias: "nodeTrigger", required: false }] }], nodeHoverDelay: [{ type: i0.Input, args: [{ isSignal: true, alias: "nodeHoverDelay", required: false }] }], nodeTpl: [{ type: i0.Input, args: [{ isSignal: true, alias: "nodeTpl", required: false }] }], floatLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "floatLabel", required: false }] }], floatFixed: [{ type: i0.Input, args: [{ isSignal: true, alias: "floatFixed", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], pointer: [{ type: i0.Input, args: [{ isSignal: true, alias: "pointer", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], labelWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelWidth", required: false }] }], labelAlign: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelAlign", required: false }] }], justify: [{ type: i0.Input, args: [{ isSignal: true, alias: "justify", required: false }] }], align: [{ type: i0.Input, args: [{ isSignal: true, alias: "align", required: false }] }], direction: [{ type: i0.Input, args: [{ isSignal: true, alias: "direction", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], valueTpl: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueTpl", required: false }] }], valueTplContext: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueTplContext", required: false }] }], before: [{ type: i0.Input, args: [{ isSignal: true, alias: "before", required: false }] }], after: [{ type: i0.Input, args: [{ isSignal: true, alias: "after", required: false }] }], pattern: [{ type: i0.Input, args: [{ isSignal: true, alias: "pattern", required: false }] }], message: [{ type: i0.Input, args: [{ isSignal: true, alias: "message", required: false }] }], active: [{ type: i0.Input, args: [{ isSignal: true, alias: "active", required: false }] }, { type: i0.Output, args: ["activeChange"] }], inputValidator: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputValidator", required: false }] }], nodeEmit: [{ type: i0.Output, args: ["nodeEmit"] }] } });
|
|
@@ -363,12 +400,18 @@ class XCascadeComponent extends XCascadeProperty {
|
|
|
363
400
|
super();
|
|
364
401
|
this.cascade = viewChild.required('cascade', { read: (ElementRef) });
|
|
365
402
|
this.inputCom = viewChild.required('inputCom', { read: XInputComponent });
|
|
366
|
-
this.showClearable = signal(false,
|
|
367
|
-
|
|
368
|
-
this.
|
|
369
|
-
|
|
370
|
-
this.
|
|
371
|
-
|
|
403
|
+
this.showClearable = signal(false, /* @ts-ignore */
|
|
404
|
+
...(ngDevMode ? [{ debugName: "showClearable" }] : /* istanbul ignore next */ []));
|
|
405
|
+
this.enter = signal(false, /* @ts-ignore */
|
|
406
|
+
...(ngDevMode ? [{ debugName: "enter" }] : /* istanbul ignore next */ []));
|
|
407
|
+
this.animating = signal(false, /* @ts-ignore */
|
|
408
|
+
...(ngDevMode ? [{ debugName: "animating" }] : /* istanbul ignore next */ []));
|
|
409
|
+
this.datas = signal([], /* @ts-ignore */
|
|
410
|
+
...(ngDevMode ? [{ debugName: "datas" }] : /* istanbul ignore next */ []));
|
|
411
|
+
this.nodes = signal([], /* @ts-ignore */
|
|
412
|
+
...(ngDevMode ? [{ debugName: "nodes" }] : /* istanbul ignore next */ []));
|
|
413
|
+
this.icon = signal('fto-chevron-down', /* @ts-ignore */
|
|
414
|
+
...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
372
415
|
this.displayValue = computed(() => {
|
|
373
416
|
let node = this.datas().find((x) => x.id === this.value());
|
|
374
417
|
if (XIsEmpty(node)) {
|
|
@@ -382,7 +425,8 @@ class XCascadeComponent extends XCascadeProperty {
|
|
|
382
425
|
}
|
|
383
426
|
return selecteds.map((x) => x.label).join(this.separator());
|
|
384
427
|
}
|
|
385
|
-
},
|
|
428
|
+
}, /* @ts-ignore */
|
|
429
|
+
...(ngDevMode ? [{ debugName: "displayValue" }] : /* istanbul ignore next */ []));
|
|
386
430
|
this.valueTplContextSignal = computed(() => {
|
|
387
431
|
if (this.valueTplContext())
|
|
388
432
|
return this.valueTplContext();
|
|
@@ -402,7 +446,8 @@ class XCascadeComponent extends XCascadeProperty {
|
|
|
402
446
|
$isValue: true
|
|
403
447
|
};
|
|
404
448
|
}
|
|
405
|
-
},
|
|
449
|
+
}, /* @ts-ignore */
|
|
450
|
+
...(ngDevMode ? [{ debugName: "valueTplContextSignal" }] : /* istanbul ignore next */ []));
|
|
406
451
|
this.closeSubject = new Subject();
|
|
407
452
|
this.unSubject = new Subject();
|
|
408
453
|
this.document = inject(DOCUMENT);
|
|
@@ -410,9 +455,12 @@ class XCascadeComponent extends XCascadeProperty {
|
|
|
410
455
|
this.viewContainerRef = inject(ViewContainerRef);
|
|
411
456
|
this.elementRef = inject(ElementRef);
|
|
412
457
|
this.overlay = inject(Overlay);
|
|
413
|
-
this.realPlacement = signal(null,
|
|
414
|
-
|
|
415
|
-
this.
|
|
458
|
+
this.realPlacement = signal(null, /* @ts-ignore */
|
|
459
|
+
...(ngDevMode ? [{ debugName: "realPlacement" }] : /* istanbul ignore next */ []));
|
|
460
|
+
this.portalComponent = signal(null, /* @ts-ignore */
|
|
461
|
+
...(ngDevMode ? [{ debugName: "portalComponent" }] : /* istanbul ignore next */ []));
|
|
462
|
+
this.portalOverlayRef = signal(null, /* @ts-ignore */
|
|
463
|
+
...(ngDevMode ? [{ debugName: "portalOverlayRef" }] : /* istanbul ignore next */ []));
|
|
416
464
|
effect(() => this.portalComponent()?.setInput('value', this.value()));
|
|
417
465
|
effect(() => this.portalComponent()?.setInput('placement', this.realPlacement()));
|
|
418
466
|
effect(() => this.portalComponent()?.setInput('nodeTpl', this.nodeTpl()));
|
|
@@ -580,20 +628,20 @@ class XCascadeComponent extends XCascadeProperty {
|
|
|
580
628
|
setPortal() {
|
|
581
629
|
this.portalAttached() && this.portalOverlayRef()?.updatePositionStrategy(this.setPlacement());
|
|
582
630
|
}
|
|
583
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
584
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "
|
|
631
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XCascadeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
632
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.1", 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 }); }
|
|
585
633
|
}
|
|
586
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
634
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XCascadeComponent, decorators: [{
|
|
587
635
|
type: Component,
|
|
588
636
|
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"] }]
|
|
589
637
|
}], ctorParameters: () => [], propDecorators: { cascade: [{ type: i0.ViewChild, args: ['cascade', { ...{ read: (ElementRef) }, isSignal: true }] }], inputCom: [{ type: i0.ViewChild, args: ['inputCom', { ...{ read: XInputComponent }, isSignal: true }] }] } });
|
|
590
638
|
|
|
591
639
|
class XCascadeModule {
|
|
592
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
593
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
594
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
640
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XCascadeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
641
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.1", ngImport: i0, type: XCascadeModule, imports: [XCascadeComponent], exports: [XCascadeComponent] }); }
|
|
642
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XCascadeModule, imports: [XCascadeComponent] }); }
|
|
595
643
|
}
|
|
596
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
644
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XCascadeModule, decorators: [{
|
|
597
645
|
type: NgModule,
|
|
598
646
|
args: [{
|
|
599
647
|
exports: [XCascadeComponent],
|