@ng-nest/ui 21.0.12 → 22.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +196 -117
- 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 +44 -34
- 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 +3 -2
- 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
|
@@ -32,187 +32,210 @@ class XTimePickerProperty extends XFormControlFunction(X_TIME_PICKER_CONFIG_NAME
|
|
|
32
32
|
* @zh_CN 时间类型
|
|
33
33
|
* @en_US Time type
|
|
34
34
|
*/
|
|
35
|
-
this.type = input('time',
|
|
35
|
+
this.type = input('time', /* @ts-ignore */
|
|
36
|
+
...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
|
|
36
37
|
/**
|
|
37
38
|
* @zh_CN 形态变体
|
|
38
39
|
* @en_US Input variant
|
|
39
40
|
*/
|
|
40
|
-
this.variant = input(this.config?.variant ?? 'outlined',
|
|
41
|
+
this.variant = input(this.config?.variant ?? 'outlined', /* @ts-ignore */
|
|
42
|
+
...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
|
|
41
43
|
/**
|
|
42
44
|
* @zh_CN 格式化
|
|
43
45
|
* @en_US Format
|
|
44
46
|
*/
|
|
45
|
-
this.format = input(this.config?.format ?? 'HH:mm:ss',
|
|
47
|
+
this.format = input(this.config?.format ?? 'HH:mm:ss', /* @ts-ignore */
|
|
48
|
+
...(ngDevMode ? [{ debugName: "format" }] : /* istanbul ignore next */ []));
|
|
46
49
|
/**
|
|
47
50
|
* @zh_CN 展示方位
|
|
48
51
|
* @en_US Display position
|
|
49
52
|
*/
|
|
50
|
-
this.placement = input(this.config?.placement ?? 'bottom-start',
|
|
53
|
+
this.placement = input(this.config?.placement ?? 'bottom-start', /* @ts-ignore */
|
|
54
|
+
...(ngDevMode ? [{ debugName: "placement" }] : /* istanbul ignore next */ []));
|
|
51
55
|
/**
|
|
52
56
|
* @zh_CN 使用12小时制
|
|
53
57
|
* @en_US Use 12 hour clock
|
|
54
58
|
*/
|
|
55
|
-
this.use12Hours = input(this.config?.use12Hours ?? false, { ...(ngDevMode ? { debugName: "use12Hours" } : {}), transform: XToBoolean });
|
|
59
|
+
this.use12Hours = input(this.config?.use12Hours ?? false, { ...(ngDevMode ? { debugName: "use12Hours" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
56
60
|
/**
|
|
57
61
|
* @zh_CN 显示边框
|
|
58
62
|
* @en_US Display Border
|
|
59
63
|
*/
|
|
60
|
-
this.bordered = input(this.config?.bordered ?? true, { ...(ngDevMode ? { debugName: "bordered" } : {}), transform: XToBoolean });
|
|
64
|
+
this.bordered = input(this.config?.bordered ?? true, { ...(ngDevMode ? { debugName: "bordered" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
61
65
|
/**
|
|
62
66
|
* @zh_CN 小时选项间隔
|
|
63
67
|
* @en_US Hour option interval
|
|
64
68
|
*/
|
|
65
|
-
this.hourStep = input(this.config?.hourStep ?? 1, { ...(ngDevMode ? { debugName: "hourStep" } : {}), transform: XToNumber });
|
|
69
|
+
this.hourStep = input(this.config?.hourStep ?? 1, { ...(ngDevMode ? { debugName: "hourStep" } : /* istanbul ignore next */ {}), transform: XToNumber });
|
|
66
70
|
/**
|
|
67
71
|
* @zh_CN 分钟选项间隔
|
|
68
72
|
* @en_US Minute option interval
|
|
69
73
|
*/
|
|
70
|
-
this.minuteStep = input(this.config?.minuteStep ?? 1, { ...(ngDevMode ? { debugName: "minuteStep" } : {}), transform: XToNumber });
|
|
74
|
+
this.minuteStep = input(this.config?.minuteStep ?? 1, { ...(ngDevMode ? { debugName: "minuteStep" } : /* istanbul ignore next */ {}), transform: XToNumber });
|
|
71
75
|
/**
|
|
72
76
|
* @zh_CN 秒选项间隔
|
|
73
77
|
* @en_US Second option interval
|
|
74
78
|
*/
|
|
75
|
-
this.secondStep = input(this.config?.secondStep ?? 1, { ...(ngDevMode ? { debugName: "secondStep" } : {}), transform: XToNumber });
|
|
79
|
+
this.secondStep = input(this.config?.secondStep ?? 1, { ...(ngDevMode ? { debugName: "secondStep" } : /* istanbul ignore next */ {}), transform: XToNumber });
|
|
76
80
|
/**
|
|
77
81
|
* @zh_CN 快捷选择按钮,支持此刻以及自定义
|
|
78
82
|
* @en_US Quick selection button, support now and custom
|
|
79
83
|
*/
|
|
80
|
-
this.preset = input([],
|
|
84
|
+
this.preset = input([], /* @ts-ignore */
|
|
85
|
+
...(ngDevMode ? [{ debugName: "preset" }] : /* istanbul ignore next */ []));
|
|
81
86
|
/**
|
|
82
87
|
* @zh_CN 禁用的时间
|
|
83
88
|
* @en_US Disabled time
|
|
84
89
|
*/
|
|
85
|
-
this.disabledTime = input(
|
|
90
|
+
this.disabledTime = input(/* @ts-ignore */
|
|
91
|
+
...(ngDevMode ? [undefined, { debugName: "disabledTime" }] : /* istanbul ignore next */ []));
|
|
86
92
|
/**
|
|
87
93
|
* @zh_CN 下拉框设置样式名
|
|
88
94
|
* @en_US The style class name of the drop-down box
|
|
89
95
|
*/
|
|
90
|
-
this.portalClass = input('',
|
|
96
|
+
this.portalClass = input('', /* @ts-ignore */
|
|
97
|
+
...(ngDevMode ? [{ debugName: "portalClass" }] : /* istanbul ignore next */ []));
|
|
91
98
|
/**
|
|
92
99
|
* @zh_CN 浮动标签
|
|
93
100
|
* @en_US Float label
|
|
94
101
|
*/
|
|
95
|
-
this.floatLabel = input(this.config?.floatLabel ?? null,
|
|
102
|
+
this.floatLabel = input(this.config?.floatLabel ?? null, /* @ts-ignore */
|
|
103
|
+
...(ngDevMode ? [{ debugName: "floatLabel" }] : /* istanbul ignore next */ []));
|
|
96
104
|
/**
|
|
97
105
|
* @zh_CN 固定浮动标签
|
|
98
106
|
* @en_US Fixed float label
|
|
99
107
|
*/
|
|
100
|
-
this.floatFixed = input(this.config?.floatFixed ?? false, { ...(ngDevMode ? { debugName: "floatFixed" } : {}), transform: XToBoolean });
|
|
108
|
+
this.floatFixed = input(this.config?.floatFixed ?? false, { ...(ngDevMode ? { debugName: "floatFixed" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
101
109
|
/**
|
|
102
110
|
* @zh_CN 尺寸
|
|
103
111
|
* @en_US Size
|
|
104
112
|
*/
|
|
105
|
-
this.size = input(this.config?.size ?? 'medium',
|
|
113
|
+
this.size = input(this.config?.size ?? 'medium', /* @ts-ignore */
|
|
114
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
106
115
|
/**
|
|
107
116
|
* @zh_CN 输入框点击样式
|
|
108
117
|
* @en_US Input pointer
|
|
109
118
|
*/
|
|
110
|
-
this.pointer = input(true, { ...(ngDevMode ? { debugName: "pointer" } : {}), transform: XToBoolean });
|
|
119
|
+
this.pointer = input(true, { ...(ngDevMode ? { debugName: "pointer" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
111
120
|
/**
|
|
112
121
|
* @zh_CN 初始启用验证,在输入值都自动开启
|
|
113
122
|
* @en_US Initial enable validation, which is automatically enabled when the input value is
|
|
114
123
|
*/
|
|
115
|
-
this.validator = input(false, { ...(ngDevMode ? { debugName: "validator" } : {}), transform: XToBoolean });
|
|
124
|
+
this.validator = input(false, { ...(ngDevMode ? { debugName: "validator" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
116
125
|
/**
|
|
117
126
|
* @zh_CN 标签
|
|
118
127
|
* @en_US Label
|
|
119
128
|
*/
|
|
120
|
-
this.label = input('',
|
|
129
|
+
this.label = input('', /* @ts-ignore */
|
|
130
|
+
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
121
131
|
/**
|
|
122
132
|
* @zh_CN 标签宽度
|
|
123
133
|
* @en_US Label width
|
|
124
134
|
*/
|
|
125
|
-
this.labelWidth = input('', { ...(ngDevMode ? { debugName: "labelWidth" } : {}), transform: XToCssPixelValue });
|
|
135
|
+
this.labelWidth = input('', { ...(ngDevMode ? { debugName: "labelWidth" } : /* istanbul ignore next */ {}), transform: XToCssPixelValue });
|
|
126
136
|
/**
|
|
127
137
|
* @zh_CN 标签文字对齐方式
|
|
128
138
|
* @en_US Label text alignment method
|
|
129
139
|
*/
|
|
130
|
-
this.labelAlign = input('start',
|
|
140
|
+
this.labelAlign = input('start', /* @ts-ignore */
|
|
141
|
+
...(ngDevMode ? [{ debugName: "labelAlign" }] : /* istanbul ignore next */ []));
|
|
131
142
|
/**
|
|
132
143
|
* @zh_CN flex 布局下的子元素水平排列方式
|
|
133
144
|
* @en_US The level of sub-element level arrangement under flex layout
|
|
134
145
|
*/
|
|
135
|
-
this.justify = input('start',
|
|
146
|
+
this.justify = input('start', /* @ts-ignore */
|
|
147
|
+
...(ngDevMode ? [{ debugName: "justify" }] : /* istanbul ignore next */ []));
|
|
136
148
|
/**
|
|
137
149
|
* @zh_CN flex 布局下的子元素垂直排列方式
|
|
138
150
|
* @en_US sub-element vertical arrangement method under flex layout
|
|
139
151
|
*/
|
|
140
|
-
this.align = input('start',
|
|
152
|
+
this.align = input('start', /* @ts-ignore */
|
|
153
|
+
...(ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []));
|
|
141
154
|
/**
|
|
142
155
|
* @zh_CN flex 布局下的子元素排列方向
|
|
143
156
|
* @en_US The direction of the sub-element arrangement under flex layout
|
|
144
157
|
*/
|
|
145
|
-
this.direction = input('column',
|
|
158
|
+
this.direction = input('column', /* @ts-ignore */
|
|
159
|
+
...(ngDevMode ? [{ debugName: "direction" }] : /* istanbul ignore next */ []));
|
|
146
160
|
/**
|
|
147
161
|
* @zh_CN 输入提示信息
|
|
148
162
|
* @en_US Enter prompt information
|
|
149
163
|
*/
|
|
150
|
-
this.placeholder = input('',
|
|
164
|
+
this.placeholder = input('', /* @ts-ignore */
|
|
165
|
+
...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
|
|
151
166
|
/**
|
|
152
167
|
* @zh_CN 禁用
|
|
153
168
|
* @en_US Disabled
|
|
154
169
|
*/
|
|
155
|
-
this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : {}), transform: XToBoolean });
|
|
170
|
+
this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
156
171
|
/**
|
|
157
172
|
* @zh_CN 必填
|
|
158
173
|
* @en_US Required
|
|
159
174
|
*/
|
|
160
|
-
this.required = input(false, { ...(ngDevMode ? { debugName: "required" } : {}), transform: XToBoolean });
|
|
175
|
+
this.required = input(false, { ...(ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
161
176
|
/**
|
|
162
177
|
* @zh_CN 只读
|
|
163
178
|
* @en_US Readonly
|
|
164
179
|
*/
|
|
165
|
-
this.readonly = input(true, { ...(ngDevMode ? { debugName: "readonly" } : {}), transform: XToBoolean });
|
|
180
|
+
this.readonly = input(true, { ...(ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
166
181
|
/**
|
|
167
182
|
* @zh_CN 值模板
|
|
168
183
|
* @en_US Node template
|
|
169
184
|
*/
|
|
170
|
-
this.valueTpl = input(
|
|
185
|
+
this.valueTpl = input(/* @ts-ignore */
|
|
186
|
+
...(ngDevMode ? [undefined, { debugName: "valueTpl" }] : /* istanbul ignore next */ []));
|
|
171
187
|
/**
|
|
172
188
|
* @zh_CN 值模板参数
|
|
173
189
|
* @en_US Node template
|
|
174
190
|
*/
|
|
175
|
-
this.valueTplContext = input(
|
|
191
|
+
this.valueTplContext = input(/* @ts-ignore */
|
|
192
|
+
...(ngDevMode ? [undefined, { debugName: "valueTplContext" }] : /* istanbul ignore next */ []));
|
|
176
193
|
/**
|
|
177
194
|
* @zh_CN 前置标签
|
|
178
195
|
* @en_US Before label
|
|
179
196
|
*/
|
|
180
|
-
this.before = input(
|
|
197
|
+
this.before = input(/* @ts-ignore */
|
|
198
|
+
...(ngDevMode ? [undefined, { debugName: "before" }] : /* istanbul ignore next */ []));
|
|
181
199
|
/**
|
|
182
200
|
* @zh_CN 后置标签
|
|
183
201
|
* @en_US After label
|
|
184
202
|
*/
|
|
185
|
-
this.after = input(
|
|
203
|
+
this.after = input(/* @ts-ignore */
|
|
204
|
+
...(ngDevMode ? [undefined, { debugName: "after" }] : /* istanbul ignore next */ []));
|
|
186
205
|
/**
|
|
187
206
|
* @zh_CN 正则验证规则
|
|
188
207
|
* @en_US Regular verification rules
|
|
189
208
|
*/
|
|
190
|
-
this.pattern = input(null,
|
|
209
|
+
this.pattern = input(null, /* @ts-ignore */
|
|
210
|
+
...(ngDevMode ? [{ debugName: "pattern" }] : /* istanbul ignore next */ []));
|
|
191
211
|
/**
|
|
192
212
|
* @zh_CN 验证不通过提示文字
|
|
193
213
|
* @en_US Verify not pass the prompt text
|
|
194
214
|
*/
|
|
195
|
-
this.message = input('',
|
|
215
|
+
this.message = input('', /* @ts-ignore */
|
|
216
|
+
...(ngDevMode ? [{ debugName: "message" }] : /* istanbul ignore next */ []));
|
|
196
217
|
/**
|
|
197
218
|
* @zh_CN 激活状态
|
|
198
219
|
* @en_US Activation state
|
|
199
220
|
*/
|
|
200
|
-
this.active = model(false,
|
|
221
|
+
this.active = model(false, /* @ts-ignore */
|
|
222
|
+
...(ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []));
|
|
201
223
|
/**
|
|
202
224
|
* @zh_CN 输入验证函数
|
|
203
225
|
* @en_US Enter the verification function
|
|
204
226
|
*/
|
|
205
|
-
this.inputValidator = input(
|
|
227
|
+
this.inputValidator = input(/* @ts-ignore */
|
|
228
|
+
...(ngDevMode ? [undefined, { debugName: "inputValidator" }] : /* istanbul ignore next */ []));
|
|
206
229
|
/**
|
|
207
230
|
* @zh_CN 节点点击的事件
|
|
208
231
|
* @en_US Node click event
|
|
209
232
|
*/
|
|
210
233
|
this.nodeEmit = output();
|
|
211
234
|
}
|
|
212
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
213
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
235
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XTimePickerProperty, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
236
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.1", type: XTimePickerProperty, isStandalone: true, selector: "x-time-picker-property", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, format: { classPropertyName: "format", publicName: "format", isSignal: true, isRequired: false, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: false, transformFunction: null }, use12Hours: { classPropertyName: "use12Hours", publicName: "use12Hours", isSignal: true, isRequired: false, transformFunction: null }, bordered: { classPropertyName: "bordered", publicName: "bordered", isSignal: true, isRequired: false, transformFunction: null }, hourStep: { classPropertyName: "hourStep", publicName: "hourStep", isSignal: true, isRequired: false, transformFunction: null }, minuteStep: { classPropertyName: "minuteStep", publicName: "minuteStep", isSignal: true, isRequired: false, transformFunction: null }, secondStep: { classPropertyName: "secondStep", publicName: "secondStep", isSignal: true, isRequired: false, transformFunction: null }, preset: { classPropertyName: "preset", publicName: "preset", isSignal: true, isRequired: false, transformFunction: null }, disabledTime: { classPropertyName: "disabledTime", publicName: "disabledTime", isSignal: true, isRequired: false, transformFunction: null }, portalClass: { classPropertyName: "portalClass", publicName: "portalClass", 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 }, validator: { classPropertyName: "validator", publicName: "validator", 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 }); }
|
|
214
237
|
}
|
|
215
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
238
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XTimePickerProperty, decorators: [{
|
|
216
239
|
type: Component,
|
|
217
240
|
args: [{ selector: `${XTimePickerPrefix}-property`, template: '' }]
|
|
218
241
|
}], propDecorators: { type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], format: [{ type: i0.Input, args: [{ isSignal: true, alias: "format", required: false }] }], placement: [{ type: i0.Input, args: [{ isSignal: true, alias: "placement", required: false }] }], use12Hours: [{ type: i0.Input, args: [{ isSignal: true, alias: "use12Hours", required: false }] }], bordered: [{ type: i0.Input, args: [{ isSignal: true, alias: "bordered", required: false }] }], hourStep: [{ type: i0.Input, args: [{ isSignal: true, alias: "hourStep", required: false }] }], minuteStep: [{ type: i0.Input, args: [{ isSignal: true, alias: "minuteStep", required: false }] }], secondStep: [{ type: i0.Input, args: [{ isSignal: true, alias: "secondStep", required: false }] }], preset: [{ type: i0.Input, args: [{ isSignal: true, alias: "preset", required: false }] }], disabledTime: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabledTime", required: false }] }], portalClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "portalClass", 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 }] }], validator: [{ type: i0.Input, args: [{ isSignal: true, alias: "validator", 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"] }] } });
|
|
@@ -232,26 +255,44 @@ const XTimePickerFramePrefix = 'x-time-picker-frame';
|
|
|
232
255
|
class XTimePickerFrameComponent {
|
|
233
256
|
constructor() {
|
|
234
257
|
this.i18n = inject(XI18nService);
|
|
235
|
-
this.type = input('time',
|
|
236
|
-
|
|
237
|
-
this.
|
|
238
|
-
|
|
239
|
-
this.
|
|
240
|
-
|
|
241
|
-
this.
|
|
242
|
-
|
|
243
|
-
this.
|
|
258
|
+
this.type = input('time', /* @ts-ignore */
|
|
259
|
+
...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
|
|
260
|
+
this.value = input(/* @ts-ignore */
|
|
261
|
+
...(ngDevMode ? [undefined, { debugName: "value" }] : /* istanbul ignore next */ []));
|
|
262
|
+
this.use12Hours = input(false, /* @ts-ignore */
|
|
263
|
+
...(ngDevMode ? [{ debugName: "use12Hours" }] : /* istanbul ignore next */ []));
|
|
264
|
+
this.hourStep = input(1, /* @ts-ignore */
|
|
265
|
+
...(ngDevMode ? [{ debugName: "hourStep" }] : /* istanbul ignore next */ []));
|
|
266
|
+
this.minuteStep = input(1, /* @ts-ignore */
|
|
267
|
+
...(ngDevMode ? [{ debugName: "minuteStep" }] : /* istanbul ignore next */ []));
|
|
268
|
+
this.secondStep = input(1, /* @ts-ignore */
|
|
269
|
+
...(ngDevMode ? [{ debugName: "secondStep" }] : /* istanbul ignore next */ []));
|
|
270
|
+
this.defaultNow = input(true, /* @ts-ignore */
|
|
271
|
+
...(ngDevMode ? [{ debugName: "defaultNow" }] : /* istanbul ignore next */ []));
|
|
272
|
+
this.disabledTime = input(/* @ts-ignore */
|
|
273
|
+
...(ngDevMode ? [undefined, { debugName: "disabledTime" }] : /* istanbul ignore next */ []));
|
|
274
|
+
this.disabledTimeParam = input(/* @ts-ignore */
|
|
275
|
+
...(ngDevMode ? [undefined, { debugName: "disabledTimeParam" }] : /* istanbul ignore next */ []));
|
|
244
276
|
this.nodeEmit = output();
|
|
245
277
|
this.hourRef = viewChild.required('hourRef');
|
|
246
|
-
this.minuteRef = viewChild('minuteRef',
|
|
247
|
-
|
|
248
|
-
this.
|
|
249
|
-
|
|
250
|
-
this.
|
|
251
|
-
|
|
252
|
-
this.
|
|
253
|
-
|
|
254
|
-
this.
|
|
278
|
+
this.minuteRef = viewChild('minuteRef', /* @ts-ignore */
|
|
279
|
+
...(ngDevMode ? [{ debugName: "minuteRef" }] : /* istanbul ignore next */ []));
|
|
280
|
+
this.secondRef = viewChild('secondRef', /* @ts-ignore */
|
|
281
|
+
...(ngDevMode ? [{ debugName: "secondRef" }] : /* istanbul ignore next */ []));
|
|
282
|
+
this.use12HoursRef = viewChild('use12HoursRef', /* @ts-ignore */
|
|
283
|
+
...(ngDevMode ? [{ debugName: "use12HoursRef" }] : /* istanbul ignore next */ []));
|
|
284
|
+
this.model = signal(null, /* @ts-ignore */
|
|
285
|
+
...(ngDevMode ? [{ debugName: "model" }] : /* istanbul ignore next */ []));
|
|
286
|
+
this.hour = signal(null, /* @ts-ignore */
|
|
287
|
+
...(ngDevMode ? [{ debugName: "hour" }] : /* istanbul ignore next */ []));
|
|
288
|
+
this.minute = signal(null, /* @ts-ignore */
|
|
289
|
+
...(ngDevMode ? [{ debugName: "minute" }] : /* istanbul ignore next */ []));
|
|
290
|
+
this.second = signal(null, /* @ts-ignore */
|
|
291
|
+
...(ngDevMode ? [{ debugName: "second" }] : /* istanbul ignore next */ []));
|
|
292
|
+
this.use12Hour = signal('am', /* @ts-ignore */
|
|
293
|
+
...(ngDevMode ? [{ debugName: "use12Hour" }] : /* istanbul ignore next */ []));
|
|
294
|
+
this.scrollAnimating = signal({}, /* @ts-ignore */
|
|
295
|
+
...(ngDevMode ? [{ debugName: "scrollAnimating" }] : /* istanbul ignore next */ []));
|
|
255
296
|
this.hourData = computed(() => {
|
|
256
297
|
let length = this.use12Hours() ? 12 : 24;
|
|
257
298
|
return Array.from({ length: Math.ceil(length / this.hourStep()) }).map((_, i) => {
|
|
@@ -272,7 +313,8 @@ class XTimePickerFrameComponent {
|
|
|
272
313
|
};
|
|
273
314
|
}
|
|
274
315
|
});
|
|
275
|
-
},
|
|
316
|
+
}, /* @ts-ignore */
|
|
317
|
+
...(ngDevMode ? [{ debugName: "hourData" }] : /* istanbul ignore next */ []));
|
|
276
318
|
this.minuteData = computed(() => {
|
|
277
319
|
return Array.from({ length: Math.ceil(60 / this.minuteStep()) }).map((_, i) => {
|
|
278
320
|
const num = i * this.minuteStep();
|
|
@@ -282,7 +324,8 @@ class XTimePickerFrameComponent {
|
|
|
282
324
|
id: num
|
|
283
325
|
};
|
|
284
326
|
});
|
|
285
|
-
},
|
|
327
|
+
}, /* @ts-ignore */
|
|
328
|
+
...(ngDevMode ? [{ debugName: "minuteData" }] : /* istanbul ignore next */ []));
|
|
286
329
|
this.secondData = computed(() => {
|
|
287
330
|
return Array.from({ length: Math.ceil(60 / this.secondStep()) }).map((_, i) => {
|
|
288
331
|
const num = i * this.secondStep();
|
|
@@ -292,7 +335,8 @@ class XTimePickerFrameComponent {
|
|
|
292
335
|
id: num
|
|
293
336
|
};
|
|
294
337
|
});
|
|
295
|
-
},
|
|
338
|
+
}, /* @ts-ignore */
|
|
339
|
+
...(ngDevMode ? [{ debugName: "secondData" }] : /* istanbul ignore next */ []));
|
|
296
340
|
this.use12HoursData = computed(() => {
|
|
297
341
|
return [
|
|
298
342
|
{
|
|
@@ -304,7 +348,8 @@ class XTimePickerFrameComponent {
|
|
|
304
348
|
label: this.locale().pm
|
|
305
349
|
}
|
|
306
350
|
];
|
|
307
|
-
},
|
|
351
|
+
}, /* @ts-ignore */
|
|
352
|
+
...(ngDevMode ? [{ debugName: "use12HoursData" }] : /* istanbul ignore next */ []));
|
|
308
353
|
this.locale = toSignal(this.i18n.localeChange.pipe(map((x) => x.timePicker)), {
|
|
309
354
|
initialValue: zh_CN.timePicker
|
|
310
355
|
});
|
|
@@ -523,10 +568,10 @@ class XTimePickerFrameComponent {
|
|
|
523
568
|
}
|
|
524
569
|
});
|
|
525
570
|
}
|
|
526
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
527
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
571
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XTimePickerFrameComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
572
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.1", type: XTimePickerFrameComponent, isStandalone: true, selector: "x-time-picker-frame", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, use12Hours: { classPropertyName: "use12Hours", publicName: "use12Hours", isSignal: true, isRequired: false, transformFunction: null }, hourStep: { classPropertyName: "hourStep", publicName: "hourStep", isSignal: true, isRequired: false, transformFunction: null }, minuteStep: { classPropertyName: "minuteStep", publicName: "minuteStep", isSignal: true, isRequired: false, transformFunction: null }, secondStep: { classPropertyName: "secondStep", publicName: "secondStep", isSignal: true, isRequired: false, transformFunction: null }, defaultNow: { classPropertyName: "defaultNow", publicName: "defaultNow", isSignal: true, isRequired: false, transformFunction: null }, disabledTime: { classPropertyName: "disabledTime", publicName: "disabledTime", isSignal: true, isRequired: false, transformFunction: null }, disabledTimeParam: { classPropertyName: "disabledTimeParam", publicName: "disabledTimeParam", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { nodeEmit: "nodeEmit" }, viewQueries: [{ propertyName: "hourRef", first: true, predicate: ["hourRef"], descendants: true, isSignal: true }, { propertyName: "minuteRef", first: true, predicate: ["minuteRef"], descendants: true, isSignal: true }, { propertyName: "secondRef", first: true, predicate: ["secondRef"], descendants: true, isSignal: true }, { propertyName: "use12HoursRef", first: true, predicate: ["use12HoursRef"], descendants: true, isSignal: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"x-time-picker-frame\">\r\n <div class=\"x-time-picker-frame-hour\" #hourRef>\r\n <x-list [data]=\"hourData()\" [(ngModel)]=\"hour\" (nodeClick)=\"itemClick('hour')\"></x-list>\r\n </div>\r\n @if (type() !== 'hour') {\r\n <div class=\"x-time-picker-frame-minute\" #minuteRef>\r\n <x-list [data]=\"minuteData()\" [(ngModel)]=\"minute\" (nodeClick)=\"itemClick('minute')\"></x-list>\r\n </div>\r\n }\r\n @if (type() === 'time') {\r\n <div class=\"x-time-picker-frame-second\" #secondRef>\r\n <x-list [data]=\"secondData()\" [(ngModel)]=\"second\" (nodeClick)=\"itemClick('second')\"></x-list>\r\n </div>\r\n }\r\n @if (use12Hours()) {\r\n <div class=\"x-time-picker-frame-use12Hours\" #use12HoursRef>\r\n <x-list [data]=\"use12HoursData()\" [(ngModel)]=\"use12Hour\" (nodeClick)=\"itemClick('use12Hours')\"></x-list>\r\n </div>\r\n }\r\n</div>\r\n", styles: ["@charset \"UTF-8\";.x-time-picker-frame{margin:0;padding:0}.x-time-picker-frame{display:block;height:100%}.x-time-picker-frame>div{width:4.25rem;max-height:16rem;padding-bottom:13.5rem;padding:.25rem .25rem 13.75rem}.x-time-picker-frame>div:first-child{width:4.125rem}.x-time-picker-frame>div:not(:first-child){border-left:var(--x-border-width) var(--x-border-style) var(--x-border)}.x-time-picker-frame-hour,.x-time-picker-frame-minute,.x-time-picker-frame-second,.x-time-picker-frame-use12Hours{position:relative;float:left;overflow:hidden}.x-time-picker-frame-hour:hover,.x-time-picker-frame-minute:hover,.x-time-picker-frame-second:hover,.x-time-picker-frame-use12Hours:hover{overflow-y:auto}.x-time-picker-frame-hour>x-list>.x-list,.x-time-picker-frame-minute>x-list>.x-list,.x-time-picker-frame-second>x-list>.x-list,.x-time-picker-frame-use12Hours>x-list>.x-list{width:3.625rem}.x-time-picker-frame-hour>x-list>.x-list>x-list-option,.x-time-picker-frame-minute>x-list>.x-list>x-list-option,.x-time-picker-frame-second>x-list>.x-list>x-list-option,.x-time-picker-frame-use12Hours>x-list>.x-list>x-list-option{min-width:3.625rem}.x-time-picker-frame-hour>x-list>.x-list>x-list-option>.x-list-option,.x-time-picker-frame-minute>x-list>.x-list>x-list-option>.x-list-option,.x-time-picker-frame-second>x-list>.x-list>x-list-option>.x-list-option,.x-time-picker-frame-use12Hours>x-list>.x-list>x-list-option>.x-list-option{padding-left:.6rem;border-radius:0}.x-time-picker-frame-hour>x-list>.x-list>x-list-option>.x-list-option:not(:first-child),.x-time-picker-frame-minute>x-list>.x-list>x-list-option>.x-list-option:not(:first-child),.x-time-picker-frame-second>x-list>.x-list>x-list-option>.x-list-option:not(:first-child),.x-time-picker-frame-use12Hours>x-list>.x-list>x-list-option>.x-list-option:not(:first-child){margin-top:0}.x-time-picker-frame-use12Hours{width:4.5rem}.x-time-picker-frame-use12Hours>x-list>.x-list{width:4.5rem}.x-time-picker-frame-use12Hours>x-list>.x-list>x-list-option{min-width:4.5rem}\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 }); }
|
|
528
573
|
}
|
|
529
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
574
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XTimePickerFrameComponent, decorators: [{
|
|
530
575
|
type: Component,
|
|
531
576
|
args: [{ selector: `${XTimePickerFramePrefix}`, imports: [FormsModule, XListComponent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"x-time-picker-frame\">\r\n <div class=\"x-time-picker-frame-hour\" #hourRef>\r\n <x-list [data]=\"hourData()\" [(ngModel)]=\"hour\" (nodeClick)=\"itemClick('hour')\"></x-list>\r\n </div>\r\n @if (type() !== 'hour') {\r\n <div class=\"x-time-picker-frame-minute\" #minuteRef>\r\n <x-list [data]=\"minuteData()\" [(ngModel)]=\"minute\" (nodeClick)=\"itemClick('minute')\"></x-list>\r\n </div>\r\n }\r\n @if (type() === 'time') {\r\n <div class=\"x-time-picker-frame-second\" #secondRef>\r\n <x-list [data]=\"secondData()\" [(ngModel)]=\"second\" (nodeClick)=\"itemClick('second')\"></x-list>\r\n </div>\r\n }\r\n @if (use12Hours()) {\r\n <div class=\"x-time-picker-frame-use12Hours\" #use12HoursRef>\r\n <x-list [data]=\"use12HoursData()\" [(ngModel)]=\"use12Hour\" (nodeClick)=\"itemClick('use12Hours')\"></x-list>\r\n </div>\r\n }\r\n</div>\r\n", styles: ["@charset \"UTF-8\";.x-time-picker-frame{margin:0;padding:0}.x-time-picker-frame{display:block;height:100%}.x-time-picker-frame>div{width:4.25rem;max-height:16rem;padding-bottom:13.5rem;padding:.25rem .25rem 13.75rem}.x-time-picker-frame>div:first-child{width:4.125rem}.x-time-picker-frame>div:not(:first-child){border-left:var(--x-border-width) var(--x-border-style) var(--x-border)}.x-time-picker-frame-hour,.x-time-picker-frame-minute,.x-time-picker-frame-second,.x-time-picker-frame-use12Hours{position:relative;float:left;overflow:hidden}.x-time-picker-frame-hour:hover,.x-time-picker-frame-minute:hover,.x-time-picker-frame-second:hover,.x-time-picker-frame-use12Hours:hover{overflow-y:auto}.x-time-picker-frame-hour>x-list>.x-list,.x-time-picker-frame-minute>x-list>.x-list,.x-time-picker-frame-second>x-list>.x-list,.x-time-picker-frame-use12Hours>x-list>.x-list{width:3.625rem}.x-time-picker-frame-hour>x-list>.x-list>x-list-option,.x-time-picker-frame-minute>x-list>.x-list>x-list-option,.x-time-picker-frame-second>x-list>.x-list>x-list-option,.x-time-picker-frame-use12Hours>x-list>.x-list>x-list-option{min-width:3.625rem}.x-time-picker-frame-hour>x-list>.x-list>x-list-option>.x-list-option,.x-time-picker-frame-minute>x-list>.x-list>x-list-option>.x-list-option,.x-time-picker-frame-second>x-list>.x-list>x-list-option>.x-list-option,.x-time-picker-frame-use12Hours>x-list>.x-list>x-list-option>.x-list-option{padding-left:.6rem;border-radius:0}.x-time-picker-frame-hour>x-list>.x-list>x-list-option>.x-list-option:not(:first-child),.x-time-picker-frame-minute>x-list>.x-list>x-list-option>.x-list-option:not(:first-child),.x-time-picker-frame-second>x-list>.x-list>x-list-option>.x-list-option:not(:first-child),.x-time-picker-frame-use12Hours>x-list>.x-list>x-list-option>.x-list-option:not(:first-child){margin-top:0}.x-time-picker-frame-use12Hours{width:4.5rem}.x-time-picker-frame-use12Hours>x-list>.x-list{width:4.5rem}.x-time-picker-frame-use12Hours>x-list>.x-list>x-list-option{min-width:4.5rem}\n"] }]
|
|
532
577
|
}], propDecorators: { type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], use12Hours: [{ type: i0.Input, args: [{ isSignal: true, alias: "use12Hours", required: false }] }], hourStep: [{ type: i0.Input, args: [{ isSignal: true, alias: "hourStep", required: false }] }], minuteStep: [{ type: i0.Input, args: [{ isSignal: true, alias: "minuteStep", required: false }] }], secondStep: [{ type: i0.Input, args: [{ isSignal: true, alias: "secondStep", required: false }] }], defaultNow: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultNow", required: false }] }], disabledTime: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabledTime", required: false }] }], disabledTimeParam: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabledTimeParam", required: false }] }], nodeEmit: [{ type: i0.Output, args: ["nodeEmit"] }], hourRef: [{ type: i0.ViewChild, args: ['hourRef', { isSignal: true }] }], minuteRef: [{ type: i0.ViewChild, args: ['minuteRef', { isSignal: true }] }], secondRef: [{ type: i0.ViewChild, args: ['secondRef', { isSignal: true }] }], use12HoursRef: [{ type: i0.ViewChild, args: ['use12HoursRef', { isSignal: true }] }] } });
|
|
@@ -536,22 +581,33 @@ class XTimePickerPortalComponent {
|
|
|
536
581
|
this.i18n = inject(XI18nService);
|
|
537
582
|
this.animateEnter = 'x-connect-enter';
|
|
538
583
|
this.animateLeave = 'x-connect-leave';
|
|
539
|
-
this.value = model(
|
|
540
|
-
|
|
541
|
-
this.
|
|
542
|
-
|
|
543
|
-
this.
|
|
544
|
-
|
|
545
|
-
this.
|
|
546
|
-
|
|
547
|
-
this.
|
|
548
|
-
|
|
584
|
+
this.value = model(/* @ts-ignore */
|
|
585
|
+
...(ngDevMode ? [undefined, { debugName: "value" }] : /* istanbul ignore next */ []));
|
|
586
|
+
this.type = input('time', /* @ts-ignore */
|
|
587
|
+
...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
|
|
588
|
+
this.placement = input(/* @ts-ignore */
|
|
589
|
+
...(ngDevMode ? [undefined, { debugName: "placement" }] : /* istanbul ignore next */ []));
|
|
590
|
+
this.inputCom = input(/* @ts-ignore */
|
|
591
|
+
...(ngDevMode ? [undefined, { debugName: "inputCom" }] : /* istanbul ignore next */ []));
|
|
592
|
+
this.use12Hours = input(/* @ts-ignore */
|
|
593
|
+
...(ngDevMode ? [undefined, { debugName: "use12Hours" }] : /* istanbul ignore next */ []));
|
|
594
|
+
this.hourStep = input(/* @ts-ignore */
|
|
595
|
+
...(ngDevMode ? [undefined, { debugName: "hourStep" }] : /* istanbul ignore next */ []));
|
|
596
|
+
this.minuteStep = input(/* @ts-ignore */
|
|
597
|
+
...(ngDevMode ? [undefined, { debugName: "minuteStep" }] : /* istanbul ignore next */ []));
|
|
598
|
+
this.secondStep = input(/* @ts-ignore */
|
|
599
|
+
...(ngDevMode ? [undefined, { debugName: "secondStep" }] : /* istanbul ignore next */ []));
|
|
600
|
+
this.preset = input([], /* @ts-ignore */
|
|
601
|
+
...(ngDevMode ? [{ debugName: "preset" }] : /* istanbul ignore next */ []));
|
|
602
|
+
this.disabledTime = input(/* @ts-ignore */
|
|
603
|
+
...(ngDevMode ? [undefined, { debugName: "disabledTime" }] : /* istanbul ignore next */ []));
|
|
549
604
|
this.animating = output();
|
|
550
605
|
this.nodeClick = output();
|
|
551
606
|
this.locale = toSignal(this.i18n.localeChange.pipe(map((x) => x.timePicker)), {
|
|
552
607
|
initialValue: zh_CN.timePicker
|
|
553
608
|
});
|
|
554
|
-
this.destroy = signal(false,
|
|
609
|
+
this.destroy = signal(false, /* @ts-ignore */
|
|
610
|
+
...(ngDevMode ? [{ debugName: "destroy" }] : /* istanbul ignore next */ []));
|
|
555
611
|
this.destroyRef = inject(DestroyRef);
|
|
556
612
|
}
|
|
557
613
|
done() {
|
|
@@ -582,10 +638,10 @@ class XTimePickerPortalComponent {
|
|
|
582
638
|
this.value.set(date);
|
|
583
639
|
this.nodeClick.emit(date);
|
|
584
640
|
}
|
|
585
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
586
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
641
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XTimePickerPortalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
642
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.1", type: XTimePickerPortalComponent, isStandalone: true, selector: "x-time-picker-portal", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: false, transformFunction: null }, inputCom: { classPropertyName: "inputCom", publicName: "inputCom", isSignal: true, isRequired: false, transformFunction: null }, use12Hours: { classPropertyName: "use12Hours", publicName: "use12Hours", isSignal: true, isRequired: false, transformFunction: null }, hourStep: { classPropertyName: "hourStep", publicName: "hourStep", isSignal: true, isRequired: false, transformFunction: null }, minuteStep: { classPropertyName: "minuteStep", publicName: "minuteStep", isSignal: true, isRequired: false, transformFunction: null }, secondStep: { classPropertyName: "secondStep", publicName: "secondStep", isSignal: true, isRequired: false, transformFunction: null }, preset: { classPropertyName: "preset", publicName: "preset", isSignal: true, isRequired: false, transformFunction: null }, disabledTime: { classPropertyName: "disabledTime", publicName: "disabledTime", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", animating: "animating", nodeClick: "nodeClick" }, host: { listeners: { "animationend": "done()", "animationstart": "start()" }, properties: { "animate.enter": "this.animateEnter", "animate.leave": "this.animateLeave" } }, ngImport: i0, template: "<div class=\"x-time-picker-portal\" (click)=\"inputCom()?.inputFocus('focus'); stopPropagation($event)\">\r\n <x-time-picker-frame\r\n [type]=\"type()\"\r\n [value]=\"value()\"\r\n [use12Hours]=\"use12Hours()!\"\r\n [hourStep]=\"hourStep()!\"\r\n [minuteStep]=\"minuteStep()!\"\r\n [secondStep]=\"secondStep()!\"\r\n [disabledTime]=\"disabledTime()\"\r\n (nodeEmit)=\"nodeClick.emit($event)\"\r\n ></x-time-picker-frame>\r\n @if (preset()) {\r\n <div class=\"x-time-picker-portal-preset\">\r\n @for (item of preset(); track item) {\r\n @if (!!item.func) {\r\n <x-button type=\"text\" (click)=\"onPresetFunc(item)\">{{ item.label }}</x-button>\r\n } @else if (!item.func && item.id === 'now') {\r\n <x-button type=\"text\" (click)=\"onNow()\">{{ locale().now }}</x-button>\r\n }\r\n }\r\n </div>\r\n }\r\n</div>\r\n", styles: ["@charset \"UTF-8\";.x-time-picker-portal{display:flex;flex-direction:column;height:100%;font-size:var(--x-font-size);color:var(--x-text);border-radius:var(--x-border-small-radius);box-shadow:var(--x-box-shadow);background-color:var(--x-background-100)}.x-time-picker-portal-preset{display:flex;align-items:center;justify-content:center;border-top:var(--x-border-width) solid var(--x-border)}.x-time-picker-portal-preset>x-button{flex:1}\n"], dependencies: [{ kind: "component", type: XTimePickerFrameComponent, selector: "x-time-picker-frame", inputs: ["type", "value", "use12Hours", "hourStep", "minuteStep", "secondStep", "defaultNow", "disabledTime", "disabledTimeParam"], outputs: ["nodeEmit"] }, { kind: "component", type: XButtonComponent, selector: "x-button" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
587
643
|
}
|
|
588
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
644
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XTimePickerPortalComponent, decorators: [{
|
|
589
645
|
type: Component,
|
|
590
646
|
args: [{ selector: `${XTimePickerPortalPrefix}`, imports: [XTimePickerFrameComponent, XButtonComponent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"x-time-picker-portal\" (click)=\"inputCom()?.inputFocus('focus'); stopPropagation($event)\">\r\n <x-time-picker-frame\r\n [type]=\"type()\"\r\n [value]=\"value()\"\r\n [use12Hours]=\"use12Hours()!\"\r\n [hourStep]=\"hourStep()!\"\r\n [minuteStep]=\"minuteStep()!\"\r\n [secondStep]=\"secondStep()!\"\r\n [disabledTime]=\"disabledTime()\"\r\n (nodeEmit)=\"nodeClick.emit($event)\"\r\n ></x-time-picker-frame>\r\n @if (preset()) {\r\n <div class=\"x-time-picker-portal-preset\">\r\n @for (item of preset(); track item) {\r\n @if (!!item.func) {\r\n <x-button type=\"text\" (click)=\"onPresetFunc(item)\">{{ item.label }}</x-button>\r\n } @else if (!item.func && item.id === 'now') {\r\n <x-button type=\"text\" (click)=\"onNow()\">{{ locale().now }}</x-button>\r\n }\r\n }\r\n </div>\r\n }\r\n</div>\r\n", styles: ["@charset \"UTF-8\";.x-time-picker-portal{display:flex;flex-direction:column;height:100%;font-size:var(--x-font-size);color:var(--x-text);border-radius:var(--x-border-small-radius);box-shadow:var(--x-box-shadow);background-color:var(--x-background-100)}.x-time-picker-portal-preset{display:flex;align-items:center;justify-content:center;border-top:var(--x-border-width) solid var(--x-border)}.x-time-picker-portal-preset>x-button{flex:1}\n"] }]
|
|
591
647
|
}], propDecorators: { animateEnter: [{
|
|
@@ -634,7 +690,8 @@ class XTimePickerComponent extends XTimePickerProperty {
|
|
|
634
690
|
this.i18n = inject(XI18nService);
|
|
635
691
|
this.datePicker = viewChild.required('datePicker');
|
|
636
692
|
this.inputCom = viewChild.required('inputCom');
|
|
637
|
-
this.numberValue = signal(null,
|
|
693
|
+
this.numberValue = signal(null, /* @ts-ignore */
|
|
694
|
+
...(ngDevMode ? [{ debugName: "numberValue" }] : /* istanbul ignore next */ []));
|
|
638
695
|
this.locale = toSignal(this.i18n.localeChange.pipe(map((x) => x.timePicker)), {
|
|
639
696
|
initialValue: zh_CN.timePicker
|
|
640
697
|
});
|
|
@@ -651,7 +708,8 @@ class XTimePickerComponent extends XTimePickerProperty {
|
|
|
651
708
|
else {
|
|
652
709
|
return this.datePipe.transform(value, this.formatSignal());
|
|
653
710
|
}
|
|
654
|
-
},
|
|
711
|
+
}, /* @ts-ignore */
|
|
712
|
+
...(ngDevMode ? [{ debugName: "displayValue" }] : /* istanbul ignore next */ []));
|
|
655
713
|
this.formatSignal = computed(() => {
|
|
656
714
|
if (this.format() === 'HH:mm:ss') {
|
|
657
715
|
if (this.type() === 'hour') {
|
|
@@ -662,13 +720,19 @@ class XTimePickerComponent extends XTimePickerProperty {
|
|
|
662
720
|
}
|
|
663
721
|
}
|
|
664
722
|
return this.format();
|
|
665
|
-
},
|
|
666
|
-
|
|
667
|
-
this.
|
|
668
|
-
|
|
669
|
-
this.
|
|
723
|
+
}, /* @ts-ignore */
|
|
724
|
+
...(ngDevMode ? [{ debugName: "formatSignal" }] : /* istanbul ignore next */ []));
|
|
725
|
+
this.clearable = signal(false, /* @ts-ignore */
|
|
726
|
+
...(ngDevMode ? [{ debugName: "clearable" }] : /* istanbul ignore next */ []));
|
|
727
|
+
this.enter = signal(false, /* @ts-ignore */
|
|
728
|
+
...(ngDevMode ? [{ debugName: "enter" }] : /* istanbul ignore next */ []));
|
|
729
|
+
this.animating = signal(false, /* @ts-ignore */
|
|
730
|
+
...(ngDevMode ? [{ debugName: "animating" }] : /* istanbul ignore next */ []));
|
|
731
|
+
this.icon = signal('fto-clock', /* @ts-ignore */
|
|
732
|
+
...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
670
733
|
this.closeSubject = new Subject();
|
|
671
|
-
this.valueType = signal('date',
|
|
734
|
+
this.valueType = signal('date', /* @ts-ignore */
|
|
735
|
+
...(ngDevMode ? [{ debugName: "valueType" }] : /* istanbul ignore next */ []));
|
|
672
736
|
this.unSubject = new Subject();
|
|
673
737
|
this.document = inject(DOCUMENT);
|
|
674
738
|
this.getPlaceholder = computed(() => {
|
|
@@ -686,10 +750,14 @@ class XTimePickerComponent extends XTimePickerProperty {
|
|
|
686
750
|
else {
|
|
687
751
|
return this.locale().selectTime;
|
|
688
752
|
}
|
|
689
|
-
},
|
|
690
|
-
|
|
691
|
-
this.
|
|
692
|
-
|
|
753
|
+
}, /* @ts-ignore */
|
|
754
|
+
...(ngDevMode ? [{ debugName: "getPlaceholder" }] : /* istanbul ignore next */ []));
|
|
755
|
+
this.realPlacement = signal(null, /* @ts-ignore */
|
|
756
|
+
...(ngDevMode ? [{ debugName: "realPlacement" }] : /* istanbul ignore next */ []));
|
|
757
|
+
this.portalComponent = signal(null, /* @ts-ignore */
|
|
758
|
+
...(ngDevMode ? [{ debugName: "portalComponent" }] : /* istanbul ignore next */ []));
|
|
759
|
+
this.portalOverlayRef = signal(null, /* @ts-ignore */
|
|
760
|
+
...(ngDevMode ? [{ debugName: "portalOverlayRef" }] : /* istanbul ignore next */ []));
|
|
693
761
|
effect(() => this.portalComponent()?.setInput('value', this.numberValue()));
|
|
694
762
|
effect(() => this.portalComponent()?.setInput('placement', this.realPlacement()));
|
|
695
763
|
effect(() => this.portalComponent()?.setInput('use12Hours', this.use12Hours()));
|
|
@@ -861,20 +929,20 @@ class XTimePickerComponent extends XTimePickerProperty {
|
|
|
861
929
|
formControlChanges() {
|
|
862
930
|
this.ngOnInit();
|
|
863
931
|
}
|
|
864
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
865
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "
|
|
932
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XTimePickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
933
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.1", type: XTimePickerComponent, isStandalone: true, selector: "x-time-picker", providers: [XValueAccessor(XTimePickerComponent), DatePipe], viewQueries: [{ propertyName: "datePicker", first: true, predicate: ["datePicker"], descendants: true, isSignal: true }, { propertyName: "inputCom", first: true, predicate: ["inputCom"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div #datePicker class=\"x-time-picker\">\r\n <div class=\"x-time-picker-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]=\"getPlaceholder()!\"\r\n [readonly]=\"readonly()\"\r\n [clearable]=\"clearable()\"\r\n [(ngModel)]=\"value\"\r\n [valueTpl]=\"valueTpl() ? valueTpl() : valueTemplate\"\r\n [valueTplContext]=\"valueTplContext()\"\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]=\"pointer()\"\r\n [variant]=\"variant()\"\r\n [floatLabel]=\"floatLabel()\"\r\n [floatFixed]=\"floatFixed()\"\r\n [(active)]=\"active\"\r\n (clearEmit)=\"clearEmit()\"\r\n (xClick)=\"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>{{ displayValue() }}</ng-template>\r\n", styles: ["@charset \"UTF-8\";x-time-picker{display:inline-block;width:12rem}.x-time-picker{margin:0;padding:0}.x-time-picker{width:100%}.x-time-picker 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: "component", type: XInputComponent, selector: "x-input" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
866
934
|
}
|
|
867
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
935
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XTimePickerComponent, decorators: [{
|
|
868
936
|
type: Component,
|
|
869
937
|
args: [{ selector: `${XTimePickerPrefix}`, imports: [FormsModule, XInputComponent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [XValueAccessor(XTimePickerComponent), DatePipe], template: "<div #datePicker class=\"x-time-picker\">\r\n <div class=\"x-time-picker-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]=\"getPlaceholder()!\"\r\n [readonly]=\"readonly()\"\r\n [clearable]=\"clearable()\"\r\n [(ngModel)]=\"value\"\r\n [valueTpl]=\"valueTpl() ? valueTpl() : valueTemplate\"\r\n [valueTplContext]=\"valueTplContext()\"\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]=\"pointer()\"\r\n [variant]=\"variant()\"\r\n [floatLabel]=\"floatLabel()\"\r\n [floatFixed]=\"floatFixed()\"\r\n [(active)]=\"active\"\r\n (clearEmit)=\"clearEmit()\"\r\n (xClick)=\"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>{{ displayValue() }}</ng-template>\r\n", styles: ["@charset \"UTF-8\";x-time-picker{display:inline-block;width:12rem}.x-time-picker{margin:0;padding:0}.x-time-picker{width:100%}.x-time-picker x-input{width:100%}\n"] }]
|
|
870
938
|
}], ctorParameters: () => [], propDecorators: { datePicker: [{ type: i0.ViewChild, args: ['datePicker', { isSignal: true }] }], inputCom: [{ type: i0.ViewChild, args: ['inputCom', { isSignal: true }] }] } });
|
|
871
939
|
|
|
872
940
|
class XTimePickerModule {
|
|
873
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
874
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
875
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
941
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XTimePickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
942
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.1", ngImport: i0, type: XTimePickerModule, imports: [XTimePickerComponent, XTimePickerFrameComponent], exports: [XTimePickerComponent, XTimePickerFrameComponent] }); }
|
|
943
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XTimePickerModule, imports: [XTimePickerComponent, XTimePickerFrameComponent] }); }
|
|
876
944
|
}
|
|
877
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
945
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XTimePickerModule, decorators: [{
|
|
878
946
|
type: NgModule,
|
|
879
947
|
args: [{
|
|
880
948
|
exports: [XTimePickerComponent, XTimePickerFrameComponent],
|