@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
|
@@ -30,187 +30,209 @@ class XAutoCompleteProperty extends XFormControlFunction(X_AUTOCOMPLETE_CONFIG_N
|
|
|
30
30
|
* @zh_CN 节点数据
|
|
31
31
|
* @en_US Node data
|
|
32
32
|
*/
|
|
33
|
-
this.data = input([],
|
|
33
|
+
this.data = input([], /* @ts-ignore */
|
|
34
|
+
...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
|
|
34
35
|
/**
|
|
35
36
|
* @zh_CN 形态变体
|
|
36
37
|
* @en_US Input variant
|
|
37
38
|
*/
|
|
38
|
-
this.variant = input(this.config?.variant ?? 'outlined',
|
|
39
|
+
this.variant = input(this.config?.variant ?? 'outlined', /* @ts-ignore */
|
|
40
|
+
...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
|
|
39
41
|
/**
|
|
40
42
|
* @zh_CN 输入延迟执行时间,ms
|
|
41
43
|
* @en_US Enter a delay execution time, ms
|
|
42
44
|
*/
|
|
43
|
-
this.debounceTime = input(this.config?.debounceTime ?? 200, { ...(ngDevMode ? { debugName: "debounceTime" } : {}), transform: XToNumber });
|
|
45
|
+
this.debounceTime = input(this.config?.debounceTime ?? 200, { ...(ngDevMode ? { debugName: "debounceTime" } : /* istanbul ignore next */ {}), transform: XToNumber });
|
|
44
46
|
/**
|
|
45
47
|
* @zh_CN 展示方位
|
|
46
48
|
* @en_US Display position
|
|
47
49
|
*/
|
|
48
|
-
this.placement = input(this.config?.placement ?? 'bottom-start',
|
|
50
|
+
this.placement = input(this.config?.placement ?? 'bottom-start', /* @ts-ignore */
|
|
51
|
+
...(ngDevMode ? [{ debugName: "placement" }] : /* istanbul ignore next */ []));
|
|
49
52
|
/**
|
|
50
53
|
* @zh_CN 节点模板
|
|
51
54
|
* @en_US Node template
|
|
52
55
|
*/
|
|
53
|
-
this.nodeTpl = input(
|
|
56
|
+
this.nodeTpl = input(/* @ts-ignore */
|
|
57
|
+
...(ngDevMode ? [undefined, { debugName: "nodeTpl" }] : /* istanbul ignore next */ []));
|
|
54
58
|
/**
|
|
55
59
|
* @zh_CN 显示边框
|
|
56
60
|
* @en_US Display Border
|
|
57
61
|
*/
|
|
58
|
-
this.bordered = input(this.config?.bordered ?? true, { ...(ngDevMode ? { debugName: "bordered" } : {}), transform: XToBoolean });
|
|
62
|
+
this.bordered = input(this.config?.bordered ?? true, { ...(ngDevMode ? { debugName: "bordered" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
59
63
|
/**
|
|
60
64
|
* @zh_CN 输入框样式
|
|
61
65
|
* @en_US Input Style
|
|
62
66
|
*/
|
|
63
|
-
this.inputStyle = input(
|
|
67
|
+
this.inputStyle = input(/* @ts-ignore */
|
|
68
|
+
...(ngDevMode ? [undefined, { debugName: "inputStyle" }] : /* istanbul ignore next */ []));
|
|
64
69
|
/**
|
|
65
70
|
* @zh_CN 下拉框的最大高度
|
|
66
71
|
* @en_US The biggest height of the drop-down box
|
|
67
72
|
*/
|
|
68
|
-
this.portalMaxHeight = input(this.config?.portalMaxHeight ?? '12rem', { ...(ngDevMode ? { debugName: "portalMaxHeight" } : {}), transform: XToCssPixelValue });
|
|
73
|
+
this.portalMaxHeight = input(this.config?.portalMaxHeight ?? '12rem', { ...(ngDevMode ? { debugName: "portalMaxHeight" } : /* istanbul ignore next */ {}), transform: XToCssPixelValue });
|
|
69
74
|
/**
|
|
70
75
|
* @zh_CN 下拉框的高度,启用虚拟滚动的时候必须设置一个高度
|
|
71
76
|
* @en_US The biggest height of the drop-down box
|
|
72
77
|
*/
|
|
73
|
-
this.portalHeight = input('', { ...(ngDevMode ? { debugName: "portalHeight" } : {}), transform: XToCssPixelValue });
|
|
78
|
+
this.portalHeight = input('', { ...(ngDevMode ? { debugName: "portalHeight" } : /* istanbul ignore next */ {}), transform: XToCssPixelValue });
|
|
74
79
|
/**
|
|
75
80
|
* @zh_CN 下拉框的宽度
|
|
76
81
|
* @en_US The width of the drop-down box
|
|
77
82
|
*/
|
|
78
|
-
this.portalWidth = input('', { ...(ngDevMode ? { debugName: "portalWidth" } : {}), transform: XToCssPixelValue });
|
|
83
|
+
this.portalWidth = input('', { ...(ngDevMode ? { debugName: "portalWidth" } : /* istanbul ignore next */ {}), transform: XToCssPixelValue });
|
|
79
84
|
/**
|
|
80
85
|
* @zh_CN 下拉框设置样式名
|
|
81
86
|
* @en_US The style class name of the drop-down box
|
|
82
87
|
*/
|
|
83
|
-
this.portalClass = input('',
|
|
88
|
+
this.portalClass = input('', /* @ts-ignore */
|
|
89
|
+
...(ngDevMode ? [{ debugName: "portalClass" }] : /* istanbul ignore next */ []));
|
|
84
90
|
/**
|
|
85
91
|
* @zh_CN 匹配区分大小写
|
|
86
92
|
* @en_US Case-sensitive
|
|
87
93
|
*/
|
|
88
|
-
this.caseSensitive = input(this.config?.caseSensitive ?? true, { ...(ngDevMode ? { debugName: "caseSensitive" } : {}), transform: XToBoolean });
|
|
94
|
+
this.caseSensitive = input(this.config?.caseSensitive ?? true, { ...(ngDevMode ? { debugName: "caseSensitive" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
89
95
|
/**
|
|
90
96
|
* @zh_CN 只能是选择的值
|
|
91
97
|
* @en_US Can only be the value of choice
|
|
92
98
|
*/
|
|
93
|
-
this.onlySelect = input(this.config?.onlySelect ?? false, { ...(ngDevMode ? { debugName: "onlySelect" } : {}), transform: XToBoolean });
|
|
99
|
+
this.onlySelect = input(this.config?.onlySelect ?? false, { ...(ngDevMode ? { debugName: "onlySelect" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
94
100
|
/**
|
|
95
101
|
* @zh_CN 浮动标签
|
|
96
102
|
* @en_US Float label
|
|
97
103
|
*/
|
|
98
|
-
this.floatLabel = input(this.config?.floatLabel ?? null,
|
|
104
|
+
this.floatLabel = input(this.config?.floatLabel ?? null, /* @ts-ignore */
|
|
105
|
+
...(ngDevMode ? [{ debugName: "floatLabel" }] : /* istanbul ignore next */ []));
|
|
99
106
|
/**
|
|
100
107
|
* @zh_CN 固定浮动标签
|
|
101
108
|
* @en_US Fixed float label
|
|
102
109
|
*/
|
|
103
|
-
this.floatFixed = input(this.config?.floatFixed ?? false, { ...(ngDevMode ? { debugName: "floatFixed" } : {}), transform: XToBoolean });
|
|
110
|
+
this.floatFixed = input(this.config?.floatFixed ?? false, { ...(ngDevMode ? { debugName: "floatFixed" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
104
111
|
/**
|
|
105
112
|
* @zh_CN 尺寸
|
|
106
113
|
* @en_US Size
|
|
107
114
|
*/
|
|
108
|
-
this.size = input(this.config?.size ?? 'medium',
|
|
115
|
+
this.size = input(this.config?.size ?? 'medium', /* @ts-ignore */
|
|
116
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
109
117
|
/**
|
|
110
118
|
* @zh_CN 输入框点击样式
|
|
111
119
|
* @en_US Input pointer
|
|
112
120
|
*/
|
|
113
|
-
this.pointer = input(false, { ...(ngDevMode ? { debugName: "pointer" } : {}), transform: XToBoolean });
|
|
121
|
+
this.pointer = input(false, { ...(ngDevMode ? { debugName: "pointer" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
114
122
|
/**
|
|
115
123
|
* @zh_CN 标签
|
|
116
124
|
* @en_US Label
|
|
117
125
|
*/
|
|
118
|
-
this.label = input('',
|
|
126
|
+
this.label = input('', /* @ts-ignore */
|
|
127
|
+
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
119
128
|
/**
|
|
120
129
|
* @zh_CN 标签宽度
|
|
121
130
|
* @en_US Label width
|
|
122
131
|
*/
|
|
123
|
-
this.labelWidth = input('', { ...(ngDevMode ? { debugName: "labelWidth" } : {}), transform: XToCssPixelValue });
|
|
132
|
+
this.labelWidth = input('', { ...(ngDevMode ? { debugName: "labelWidth" } : /* istanbul ignore next */ {}), transform: XToCssPixelValue });
|
|
124
133
|
/**
|
|
125
134
|
* @zh_CN 标签文字对齐方式
|
|
126
135
|
* @en_US Label text alignment method
|
|
127
136
|
*/
|
|
128
|
-
this.labelAlign = input('start',
|
|
137
|
+
this.labelAlign = input('start', /* @ts-ignore */
|
|
138
|
+
...(ngDevMode ? [{ debugName: "labelAlign" }] : /* istanbul ignore next */ []));
|
|
129
139
|
/**
|
|
130
140
|
* @zh_CN flex 布局下的子元素水平排列方式
|
|
131
141
|
* @en_US The level of sub-element level arrangement under flex layout
|
|
132
142
|
*/
|
|
133
|
-
this.justify = input('start',
|
|
143
|
+
this.justify = input('start', /* @ts-ignore */
|
|
144
|
+
...(ngDevMode ? [{ debugName: "justify" }] : /* istanbul ignore next */ []));
|
|
134
145
|
/**
|
|
135
146
|
* @zh_CN flex 布局下的子元素垂直排列方式
|
|
136
147
|
* @en_US sub-element vertical arrangement method under flex layout
|
|
137
148
|
*/
|
|
138
|
-
this.align = input('start',
|
|
149
|
+
this.align = input('start', /* @ts-ignore */
|
|
150
|
+
...(ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []));
|
|
139
151
|
/**
|
|
140
152
|
* @zh_CN flex 布局下的子元素排列方向
|
|
141
153
|
* @en_US The direction of the sub-element arrangement under flex layout
|
|
142
154
|
*/
|
|
143
|
-
this.direction = input('column',
|
|
155
|
+
this.direction = input('column', /* @ts-ignore */
|
|
156
|
+
...(ngDevMode ? [{ debugName: "direction" }] : /* istanbul ignore next */ []));
|
|
144
157
|
/**
|
|
145
158
|
* @zh_CN 输入提示信息
|
|
146
159
|
* @en_US Enter prompt information
|
|
147
160
|
*/
|
|
148
|
-
this.placeholder = input('',
|
|
161
|
+
this.placeholder = input('', /* @ts-ignore */
|
|
162
|
+
...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
|
|
149
163
|
/**
|
|
150
164
|
* @zh_CN 禁用
|
|
151
165
|
* @en_US Disabled
|
|
152
166
|
*/
|
|
153
|
-
this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : {}), transform: XToBoolean });
|
|
167
|
+
this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
154
168
|
/**
|
|
155
169
|
* @zh_CN 必填
|
|
156
170
|
* @en_US Required
|
|
157
171
|
*/
|
|
158
|
-
this.required = input(false, { ...(ngDevMode ? { debugName: "required" } : {}), transform: XToBoolean });
|
|
172
|
+
this.required = input(false, { ...(ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
159
173
|
/**
|
|
160
174
|
* @zh_CN 只读
|
|
161
175
|
* @en_US Readonly
|
|
162
176
|
*/
|
|
163
|
-
this.readonly = input(false, { ...(ngDevMode ? { debugName: "readonly" } : {}), transform: XToBoolean });
|
|
177
|
+
this.readonly = input(false, { ...(ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
164
178
|
/**
|
|
165
179
|
* @zh_CN 值模板
|
|
166
180
|
* @en_US Node template
|
|
167
181
|
*/
|
|
168
|
-
this.valueTpl = input(
|
|
182
|
+
this.valueTpl = input(/* @ts-ignore */
|
|
183
|
+
...(ngDevMode ? [undefined, { debugName: "valueTpl" }] : /* istanbul ignore next */ []));
|
|
169
184
|
/**
|
|
170
185
|
* @zh_CN 值模板参数
|
|
171
186
|
* @en_US Node template
|
|
172
187
|
*/
|
|
173
|
-
this.valueTplContext = input(
|
|
188
|
+
this.valueTplContext = input(/* @ts-ignore */
|
|
189
|
+
...(ngDevMode ? [undefined, { debugName: "valueTplContext" }] : /* istanbul ignore next */ []));
|
|
174
190
|
/**
|
|
175
191
|
* @zh_CN 前置标签
|
|
176
192
|
* @en_US Before label
|
|
177
193
|
*/
|
|
178
|
-
this.before = input(
|
|
194
|
+
this.before = input(/* @ts-ignore */
|
|
195
|
+
...(ngDevMode ? [undefined, { debugName: "before" }] : /* istanbul ignore next */ []));
|
|
179
196
|
/**
|
|
180
197
|
* @zh_CN 后置标签
|
|
181
198
|
* @en_US After label
|
|
182
199
|
*/
|
|
183
|
-
this.after = input(
|
|
200
|
+
this.after = input(/* @ts-ignore */
|
|
201
|
+
...(ngDevMode ? [undefined, { debugName: "after" }] : /* istanbul ignore next */ []));
|
|
184
202
|
/**
|
|
185
203
|
* @zh_CN 正则验证规则
|
|
186
204
|
* @en_US Regular verification rules
|
|
187
205
|
*/
|
|
188
|
-
this.pattern = input(null,
|
|
206
|
+
this.pattern = input(null, /* @ts-ignore */
|
|
207
|
+
...(ngDevMode ? [{ debugName: "pattern" }] : /* istanbul ignore next */ []));
|
|
189
208
|
/**
|
|
190
209
|
* @zh_CN 验证不通过提示文字
|
|
191
210
|
* @en_US Verify not pass the prompt text
|
|
192
211
|
*/
|
|
193
|
-
this.message = input('',
|
|
212
|
+
this.message = input('', /* @ts-ignore */
|
|
213
|
+
...(ngDevMode ? [{ debugName: "message" }] : /* istanbul ignore next */ []));
|
|
194
214
|
/**
|
|
195
215
|
* @zh_CN 激活状态
|
|
196
216
|
* @en_US Activation state
|
|
197
217
|
*/
|
|
198
|
-
this.active = model(false,
|
|
218
|
+
this.active = model(false, /* @ts-ignore */
|
|
219
|
+
...(ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []));
|
|
199
220
|
/**
|
|
200
221
|
* @zh_CN 输入验证函数
|
|
201
222
|
* @en_US Enter the verification function
|
|
202
223
|
*/
|
|
203
|
-
this.inputValidator = input(
|
|
224
|
+
this.inputValidator = input(/* @ts-ignore */
|
|
225
|
+
...(ngDevMode ? [undefined, { debugName: "inputValidator" }] : /* istanbul ignore next */ []));
|
|
204
226
|
/**
|
|
205
227
|
* @zh_CN 选择节点事件
|
|
206
228
|
* @en_US Node click event
|
|
207
229
|
*/
|
|
208
230
|
this.nodeEmit = output();
|
|
209
231
|
}
|
|
210
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
211
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
232
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XAutoCompleteProperty, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
233
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.1", type: XAutoCompleteProperty, isStandalone: true, selector: "x-auto-complete-property", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, debounceTime: { classPropertyName: "debounceTime", publicName: "debounceTime", 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 }, bordered: { classPropertyName: "bordered", publicName: "bordered", isSignal: true, isRequired: false, transformFunction: null }, inputStyle: { classPropertyName: "inputStyle", publicName: "inputStyle", 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 }, caseSensitive: { classPropertyName: "caseSensitive", publicName: "caseSensitive", isSignal: true, isRequired: false, transformFunction: null }, onlySelect: { classPropertyName: "onlySelect", publicName: "onlySelect", 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 }); }
|
|
212
234
|
}
|
|
213
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
235
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XAutoCompleteProperty, decorators: [{
|
|
214
236
|
type: Component,
|
|
215
237
|
args: [{ selector: `${XAutoCompletePrefix}-property`, template: '' }]
|
|
216
238
|
}], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], debounceTime: [{ type: i0.Input, args: [{ isSignal: true, alias: "debounceTime", required: false }] }], placement: [{ type: i0.Input, args: [{ isSignal: true, alias: "placement", required: false }] }], nodeTpl: [{ type: i0.Input, args: [{ isSignal: true, alias: "nodeTpl", required: false }] }], bordered: [{ type: i0.Input, args: [{ isSignal: true, alias: "bordered", required: false }] }], inputStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputStyle", 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 }] }], caseSensitive: [{ type: i0.Input, args: [{ isSignal: true, alias: "caseSensitive", required: false }] }], onlySelect: [{ type: i0.Input, args: [{ isSignal: true, alias: "onlySelect", 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"] }] } });
|
|
@@ -226,20 +248,32 @@ class XAutoCompletePortalComponent {
|
|
|
226
248
|
this.animateEnter = 'x-connect-enter';
|
|
227
249
|
this.animateLeave = 'x-connect-leave';
|
|
228
250
|
this.list = viewChild.required('list', { read: XListComponent });
|
|
229
|
-
this.data = input(
|
|
230
|
-
|
|
231
|
-
this.
|
|
232
|
-
|
|
233
|
-
this.
|
|
234
|
-
|
|
235
|
-
this.
|
|
236
|
-
|
|
237
|
-
this.
|
|
238
|
-
|
|
251
|
+
this.data = input(/* @ts-ignore */
|
|
252
|
+
...(ngDevMode ? [undefined, { debugName: "data" }] : /* istanbul ignore next */ []));
|
|
253
|
+
this.value = input(/* @ts-ignore */
|
|
254
|
+
...(ngDevMode ? [undefined, { debugName: "value" }] : /* istanbul ignore next */ []));
|
|
255
|
+
this.placement = input(/* @ts-ignore */
|
|
256
|
+
...(ngDevMode ? [undefined, { debugName: "placement" }] : /* istanbul ignore next */ []));
|
|
257
|
+
this.nodeTpl = input(/* @ts-ignore */
|
|
258
|
+
...(ngDevMode ? [undefined, { debugName: "nodeTpl" }] : /* istanbul ignore next */ []));
|
|
259
|
+
this.inputCom = input(/* @ts-ignore */
|
|
260
|
+
...(ngDevMode ? [undefined, { debugName: "inputCom" }] : /* istanbul ignore next */ []));
|
|
261
|
+
this.keywordText = model('', /* @ts-ignore */
|
|
262
|
+
...(ngDevMode ? [{ debugName: "keywordText" }] : /* istanbul ignore next */ []));
|
|
263
|
+
this.caseSensitive = input(false, /* @ts-ignore */
|
|
264
|
+
...(ngDevMode ? [{ debugName: "caseSensitive" }] : /* istanbul ignore next */ []));
|
|
265
|
+
this.portalMaxHeight = input('', /* @ts-ignore */
|
|
266
|
+
...(ngDevMode ? [{ debugName: "portalMaxHeight" }] : /* istanbul ignore next */ []));
|
|
267
|
+
this.portalHeight = input('', /* @ts-ignore */
|
|
268
|
+
...(ngDevMode ? [{ debugName: "portalHeight" }] : /* istanbul ignore next */ []));
|
|
269
|
+
this.portalWidth = input('', /* @ts-ignore */
|
|
270
|
+
...(ngDevMode ? [{ debugName: "portalWidth" }] : /* istanbul ignore next */ []));
|
|
239
271
|
this.animating = output();
|
|
240
272
|
this.nodeClick = output();
|
|
241
|
-
this.active = signal(-1,
|
|
242
|
-
|
|
273
|
+
this.active = signal(-1, /* @ts-ignore */
|
|
274
|
+
...(ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []));
|
|
275
|
+
this.destroy = signal(false, /* @ts-ignore */
|
|
276
|
+
...(ngDevMode ? [{ debugName: "destroy" }] : /* istanbul ignore next */ []));
|
|
243
277
|
this.unSubject = new Subject();
|
|
244
278
|
this.destroyRef = inject(DestroyRef);
|
|
245
279
|
}
|
|
@@ -282,10 +316,10 @@ class XAutoCompletePortalComponent {
|
|
|
282
316
|
onTabOut() {
|
|
283
317
|
this.closeSubject.next();
|
|
284
318
|
}
|
|
285
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
286
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "
|
|
319
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XAutoCompletePortalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
320
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.1", type: XAutoCompletePortalComponent, isStandalone: true, selector: "x-auto-complete-portal", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, 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 }, keywordText: { classPropertyName: "keywordText", publicName: "keywordText", isSignal: true, isRequired: false, transformFunction: null }, caseSensitive: { classPropertyName: "caseSensitive", publicName: "caseSensitive", 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 } }, outputs: { keywordText: "keywordTextChange", animating: "animating", nodeClick: "nodeClick" }, host: { listeners: { "animationend": "done()", "animationstart": "start()" }, properties: { "animate.enter": "this.animateEnter", "animate.leave": "this.animateLeave" } }, viewQueries: [{ propertyName: "list", first: true, predicate: ["list"], descendants: true, read: XListComponent, isSignal: true }], ngImport: i0, template: "<div\r\n #autoCompletePortal\r\n class=\"x-auto-complete-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 <x-list\r\n #list\r\n [data]=\"data()!\"\r\n (nodeClick)=\"onNodeClick($event)\"\r\n (keyManagerChange)=\"onActive($event)\"\r\n (keyManagerTabOut)=\"onTabOut()\"\r\n [nodeTpl]=\"nodeTpl()\"\r\n [scrollElement]=\"autoCompletePortal\"\r\n [keywordText]=\"keywordText()\"\r\n [caseSensitive]=\"caseSensitive()\"\r\n [inPortal]=\"true\"\r\n ></x-list>\r\n</div>\r\n", styles: ["@charset \"UTF-8\";x-auto-complete-portal{width:100%}.x-auto-complete-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-auto-complete-portal:focus{outline:none}\n"], dependencies: [{ kind: "component", type: XListComponent, selector: "x-list" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
287
321
|
}
|
|
288
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
322
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XAutoCompletePortalComponent, decorators: [{
|
|
289
323
|
type: Component,
|
|
290
324
|
args: [{ selector: `${XAutoCompletePortalPrefix}`, imports: [XListComponent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\r\n #autoCompletePortal\r\n class=\"x-auto-complete-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 <x-list\r\n #list\r\n [data]=\"data()!\"\r\n (nodeClick)=\"onNodeClick($event)\"\r\n (keyManagerChange)=\"onActive($event)\"\r\n (keyManagerTabOut)=\"onTabOut()\"\r\n [nodeTpl]=\"nodeTpl()\"\r\n [scrollElement]=\"autoCompletePortal\"\r\n [keywordText]=\"keywordText()\"\r\n [caseSensitive]=\"caseSensitive()\"\r\n [inPortal]=\"true\"\r\n ></x-list>\r\n</div>\r\n", styles: ["@charset \"UTF-8\";x-auto-complete-portal{width:100%}.x-auto-complete-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-auto-complete-portal:focus{outline:none}\n"] }]
|
|
291
325
|
}], propDecorators: { animateEnter: [{
|
|
@@ -306,15 +340,22 @@ class XAutoCompleteComponent extends XAutoCompleteProperty {
|
|
|
306
340
|
constructor() {
|
|
307
341
|
super();
|
|
308
342
|
this.inputCom = viewChild.required('inputCom', { read: XInputComponent });
|
|
309
|
-
this.nodes = signal([],
|
|
310
|
-
|
|
311
|
-
this.
|
|
312
|
-
|
|
313
|
-
this.
|
|
314
|
-
|
|
343
|
+
this.nodes = signal([], /* @ts-ignore */
|
|
344
|
+
...(ngDevMode ? [{ debugName: "nodes" }] : /* istanbul ignore next */ []));
|
|
345
|
+
this.searchNodes = signal([], /* @ts-ignore */
|
|
346
|
+
...(ngDevMode ? [{ debugName: "searchNodes" }] : /* istanbul ignore next */ []));
|
|
347
|
+
this.icon = signal('', /* @ts-ignore */
|
|
348
|
+
...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
349
|
+
this.iconSpin = signal(false, /* @ts-ignore */
|
|
350
|
+
...(ngDevMode ? [{ debugName: "iconSpin" }] : /* istanbul ignore next */ []));
|
|
351
|
+
this.animating = signal(false, /* @ts-ignore */
|
|
352
|
+
...(ngDevMode ? [{ debugName: "animating" }] : /* istanbul ignore next */ []));
|
|
353
|
+
this.valueTplContextSignal = signal({ $node: null, $isValue: true }, /* @ts-ignore */
|
|
354
|
+
...(ngDevMode ? [{ debugName: "valueTplContextSignal" }] : /* istanbul ignore next */ []));
|
|
315
355
|
this.valueTplContextComputed = computed(() => {
|
|
316
356
|
return this.valueTplContext() ? this.valueTplContext() : this.valueTplContextSignal();
|
|
317
|
-
},
|
|
357
|
+
}, /* @ts-ignore */
|
|
358
|
+
...(ngDevMode ? [{ debugName: "valueTplContextComputed" }] : /* istanbul ignore next */ []));
|
|
318
359
|
this.inputChange = new BehaviorSubject(null);
|
|
319
360
|
this.closeSubject = new Subject();
|
|
320
361
|
this.keydownSubject = new Subject();
|
|
@@ -323,9 +364,12 @@ class XAutoCompleteComponent extends XAutoCompleteProperty {
|
|
|
323
364
|
this.viewContainerRef = inject(ViewContainerRef);
|
|
324
365
|
this.overlay = inject(Overlay);
|
|
325
366
|
this.elementRef = inject(ElementRef);
|
|
326
|
-
this.realPlacement = signal(null,
|
|
327
|
-
|
|
328
|
-
this.
|
|
367
|
+
this.realPlacement = signal(null, /* @ts-ignore */
|
|
368
|
+
...(ngDevMode ? [{ debugName: "realPlacement" }] : /* istanbul ignore next */ []));
|
|
369
|
+
this.portalComponent = signal(null, /* @ts-ignore */
|
|
370
|
+
...(ngDevMode ? [{ debugName: "portalComponent" }] : /* istanbul ignore next */ []));
|
|
371
|
+
this.portalOverlayRef = signal(null, /* @ts-ignore */
|
|
372
|
+
...(ngDevMode ? [{ debugName: "portalOverlayRef" }] : /* istanbul ignore next */ []));
|
|
329
373
|
this.inputChanged = toSignal(this.inputChange.pipe(filter((x) => x !== null)));
|
|
330
374
|
effect(() => this.portalComponent()?.setInput('value', this.value()));
|
|
331
375
|
effect(() => this.portalComponent()?.setInput('placement', this.realPlacement()));
|
|
@@ -588,20 +632,20 @@ class XAutoCompleteComponent extends XAutoCompleteProperty {
|
|
|
588
632
|
this.inputChange.next(this.value());
|
|
589
633
|
});
|
|
590
634
|
}
|
|
591
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
592
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "
|
|
635
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XAutoCompleteComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
636
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.1", type: XAutoCompleteComponent, isStandalone: true, selector: "x-auto-complete", providers: [XValueAccessor(XAutoCompleteComponent)], viewQueries: [{ propertyName: "inputCom", first: true, predicate: ["inputCom"], descendants: true, read: XInputComponent, isSignal: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div #autoComplete class=\"x-auto-complete\">\r\n <div class=\"x-auto-complete-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 [iconSpin]=\"iconSpin()\"\r\n [placeholder]=\"placeholder()\"\r\n [readonly]=\"readonly()\"\r\n [clearable]=\"false\"\r\n [(ngModel)]=\"value\"\r\n [valueTpl]=\"valueTpl()\"\r\n [valueTplContext]=\"valueTplContextComputed()\"\r\n [size]=\"size()\"\r\n [bordered]=\"bordered()\"\r\n [inputStyle]=\"inputStyle()\"\r\n [before]=\"before()\"\r\n [after]=\"after()\"\r\n [pattern]=\"patternComputed()\"\r\n [message]=\"messageComputed()\"\r\n [pointer]=\"pointer()\"\r\n [variant]=\"variant()\"\r\n [floatLabel]=\"floatLabel()\"\r\n [floatFixed]=\"floatFixed()\"\r\n [(active)]=\"active\"\r\n (xInput)=\"onInput($event)\"\r\n (xKeydown)=\"onKeydown($event)\"\r\n (xClick)=\"showPortal()\"\r\n ></x-input>\r\n </div>\r\n</div>\r\n", styles: ["@charset \"UTF-8\";x-auto-complete{display:inline-block;width:12rem}.x-auto-complete{margin:0;padding:0}.x-auto-complete{width:100%}.x-auto-complete x-input{width:100%}.x-auto-complete-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-auto-complete-portal:focus{outline:none}\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 }); }
|
|
593
637
|
}
|
|
594
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
638
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XAutoCompleteComponent, decorators: [{
|
|
595
639
|
type: Component,
|
|
596
640
|
args: [{ selector: `${XAutoCompletePrefix}`, imports: [FormsModule, ReactiveFormsModule, XInputComponent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [XValueAccessor(XAutoCompleteComponent)], template: "<div #autoComplete class=\"x-auto-complete\">\r\n <div class=\"x-auto-complete-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 [iconSpin]=\"iconSpin()\"\r\n [placeholder]=\"placeholder()\"\r\n [readonly]=\"readonly()\"\r\n [clearable]=\"false\"\r\n [(ngModel)]=\"value\"\r\n [valueTpl]=\"valueTpl()\"\r\n [valueTplContext]=\"valueTplContextComputed()\"\r\n [size]=\"size()\"\r\n [bordered]=\"bordered()\"\r\n [inputStyle]=\"inputStyle()\"\r\n [before]=\"before()\"\r\n [after]=\"after()\"\r\n [pattern]=\"patternComputed()\"\r\n [message]=\"messageComputed()\"\r\n [pointer]=\"pointer()\"\r\n [variant]=\"variant()\"\r\n [floatLabel]=\"floatLabel()\"\r\n [floatFixed]=\"floatFixed()\"\r\n [(active)]=\"active\"\r\n (xInput)=\"onInput($event)\"\r\n (xKeydown)=\"onKeydown($event)\"\r\n (xClick)=\"showPortal()\"\r\n ></x-input>\r\n </div>\r\n</div>\r\n", styles: ["@charset \"UTF-8\";x-auto-complete{display:inline-block;width:12rem}.x-auto-complete{margin:0;padding:0}.x-auto-complete{width:100%}.x-auto-complete x-input{width:100%}.x-auto-complete-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-auto-complete-portal:focus{outline:none}\n"] }]
|
|
597
641
|
}], ctorParameters: () => [], propDecorators: { inputCom: [{ type: i0.ViewChild, args: ['inputCom', { ...{ read: XInputComponent }, isSignal: true }] }] } });
|
|
598
642
|
|
|
599
643
|
class XAutoCompleteModule {
|
|
600
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
601
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
602
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
644
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XAutoCompleteModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
645
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.1", ngImport: i0, type: XAutoCompleteModule, imports: [XAutoCompleteComponent], exports: [XAutoCompleteComponent] }); }
|
|
646
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XAutoCompleteModule, imports: [XAutoCompleteComponent] }); }
|
|
603
647
|
}
|
|
604
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
648
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XAutoCompleteModule, decorators: [{
|
|
605
649
|
type: NgModule,
|
|
606
650
|
args: [{
|
|
607
651
|
exports: [XAutoCompleteComponent],
|