@ng-nest/ui 20.0.6 → 20.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (209) hide show
  1. package/auto-complete/index.d.ts +72 -9
  2. package/base-form/index.d.ts +3 -3
  3. package/calendar/index.d.ts +1 -2
  4. package/cascade/index.d.ts +48 -8
  5. package/checkbox/index.d.ts +4 -4
  6. package/color-picker/index.d.ts +49 -8
  7. package/core/index.d.ts +68 -6
  8. package/date-picker/index.d.ts +82 -12
  9. package/dropdown/index.d.ts +4 -4
  10. package/fesm2022/ng-nest-ui-affix.mjs +12 -12
  11. package/fesm2022/ng-nest-ui-affix.mjs.map +1 -1
  12. package/fesm2022/ng-nest-ui-alert.mjs +35 -35
  13. package/fesm2022/ng-nest-ui-alert.mjs.map +1 -1
  14. package/fesm2022/ng-nest-ui-anchor.mjs +31 -31
  15. package/fesm2022/ng-nest-ui-anchor.mjs.map +1 -1
  16. package/fesm2022/ng-nest-ui-api.mjs +7 -7
  17. package/fesm2022/ng-nest-ui-api.mjs.map +1 -1
  18. package/fesm2022/ng-nest-ui-auto-complete.mjs +108 -62
  19. package/fesm2022/ng-nest-ui-auto-complete.mjs.map +1 -1
  20. package/fesm2022/ng-nest-ui-avatar.mjs +31 -31
  21. package/fesm2022/ng-nest-ui-avatar.mjs.map +1 -1
  22. package/fesm2022/ng-nest-ui-back-top.mjs +18 -18
  23. package/fesm2022/ng-nest-ui-back-top.mjs.map +1 -1
  24. package/fesm2022/ng-nest-ui-badge.mjs +23 -23
  25. package/fesm2022/ng-nest-ui-badge.mjs.map +1 -1
  26. package/fesm2022/ng-nest-ui-base-form.mjs +45 -45
  27. package/fesm2022/ng-nest-ui-base-form.mjs.map +1 -1
  28. package/fesm2022/ng-nest-ui-button.mjs +42 -42
  29. package/fesm2022/ng-nest-ui-button.mjs.map +1 -1
  30. package/fesm2022/ng-nest-ui-calendar.mjs +20 -20
  31. package/fesm2022/ng-nest-ui-calendar.mjs.map +1 -1
  32. package/fesm2022/ng-nest-ui-card.mjs +15 -15
  33. package/fesm2022/ng-nest-ui-card.mjs.map +1 -1
  34. package/fesm2022/ng-nest-ui-carousel.mjs +46 -46
  35. package/fesm2022/ng-nest-ui-carousel.mjs.map +1 -1
  36. package/fesm2022/ng-nest-ui-cascade.mjs +92 -76
  37. package/fesm2022/ng-nest-ui-cascade.mjs.map +1 -1
  38. package/fesm2022/ng-nest-ui-checkbox.mjs +39 -39
  39. package/fesm2022/ng-nest-ui-checkbox.mjs.map +1 -1
  40. package/fesm2022/ng-nest-ui-collapse.mjs +31 -31
  41. package/fesm2022/ng-nest-ui-collapse.mjs.map +1 -1
  42. package/fesm2022/ng-nest-ui-color-picker.mjs +95 -71
  43. package/fesm2022/ng-nest-ui-color-picker.mjs.map +1 -1
  44. package/fesm2022/ng-nest-ui-color.mjs +16 -16
  45. package/fesm2022/ng-nest-ui-color.mjs.map +1 -1
  46. package/fesm2022/ng-nest-ui-comment.mjs +21 -21
  47. package/fesm2022/ng-nest-ui-comment.mjs.map +1 -1
  48. package/fesm2022/ng-nest-ui-container.mjs +37 -37
  49. package/fesm2022/ng-nest-ui-container.mjs.map +1 -1
  50. package/fesm2022/ng-nest-ui-core.mjs +38 -22
  51. package/fesm2022/ng-nest-ui-core.mjs.map +1 -1
  52. package/fesm2022/ng-nest-ui-crumb.mjs +13 -13
  53. package/fesm2022/ng-nest-ui-crumb.mjs.map +1 -1
  54. package/fesm2022/ng-nest-ui-date-picker.mjs +284 -254
  55. package/fesm2022/ng-nest-ui-date-picker.mjs.map +1 -1
  56. package/fesm2022/ng-nest-ui-description.mjs +31 -31
  57. package/fesm2022/ng-nest-ui-description.mjs.map +1 -1
  58. package/fesm2022/ng-nest-ui-dialog.mjs +81 -81
  59. package/fesm2022/ng-nest-ui-dialog.mjs.map +1 -1
  60. package/fesm2022/ng-nest-ui-doc.mjs +7 -7
  61. package/fesm2022/ng-nest-ui-doc.mjs.map +1 -1
  62. package/fesm2022/ng-nest-ui-drag.mjs +10 -10
  63. package/fesm2022/ng-nest-ui-drag.mjs.map +1 -1
  64. package/fesm2022/ng-nest-ui-drawer.mjs +42 -42
  65. package/fesm2022/ng-nest-ui-drawer.mjs.map +1 -1
  66. package/fesm2022/ng-nest-ui-dropdown.mjs +49 -49
  67. package/fesm2022/ng-nest-ui-dropdown.mjs.map +1 -1
  68. package/fesm2022/ng-nest-ui-empty.mjs +12 -12
  69. package/fesm2022/ng-nest-ui-empty.mjs.map +1 -1
  70. package/fesm2022/ng-nest-ui-examples.mjs +7 -7
  71. package/fesm2022/ng-nest-ui-examples.mjs.map +1 -1
  72. package/fesm2022/ng-nest-ui-find.mjs +79 -77
  73. package/fesm2022/ng-nest-ui-find.mjs.map +1 -1
  74. package/fesm2022/ng-nest-ui-form.mjs +33 -33
  75. package/fesm2022/ng-nest-ui-form.mjs.map +1 -1
  76. package/fesm2022/ng-nest-ui-highlight.mjs +20 -20
  77. package/fesm2022/ng-nest-ui-highlight.mjs.map +1 -1
  78. package/fesm2022/ng-nest-ui-i18n.mjs +15 -15
  79. package/fesm2022/ng-nest-ui-i18n.mjs.map +1 -1
  80. package/fesm2022/ng-nest-ui-icon.mjs +21 -21
  81. package/fesm2022/ng-nest-ui-icon.mjs.map +1 -1
  82. package/fesm2022/ng-nest-ui-image.mjs +39 -39
  83. package/fesm2022/ng-nest-ui-image.mjs.map +1 -1
  84. package/fesm2022/ng-nest-ui-inner.mjs +11 -11
  85. package/fesm2022/ng-nest-ui-inner.mjs.map +1 -1
  86. package/fesm2022/ng-nest-ui-input-number.mjs +47 -42
  87. package/fesm2022/ng-nest-ui-input-number.mjs.map +1 -1
  88. package/fesm2022/ng-nest-ui-input.mjs +106 -80
  89. package/fesm2022/ng-nest-ui-input.mjs.map +1 -1
  90. package/fesm2022/ng-nest-ui-keyword.mjs +15 -15
  91. package/fesm2022/ng-nest-ui-keyword.mjs.map +1 -1
  92. package/fesm2022/ng-nest-ui-layout.mjs +31 -31
  93. package/fesm2022/ng-nest-ui-layout.mjs.map +1 -1
  94. package/fesm2022/ng-nest-ui-link.mjs +18 -18
  95. package/fesm2022/ng-nest-ui-link.mjs.map +1 -1
  96. package/fesm2022/ng-nest-ui-list.mjs +80 -80
  97. package/fesm2022/ng-nest-ui-list.mjs.map +1 -1
  98. package/fesm2022/ng-nest-ui-loading.mjs +22 -22
  99. package/fesm2022/ng-nest-ui-loading.mjs.map +1 -1
  100. package/fesm2022/ng-nest-ui-menu.mjs +45 -45
  101. package/fesm2022/ng-nest-ui-menu.mjs.map +1 -1
  102. package/fesm2022/ng-nest-ui-message-box.mjs +10 -10
  103. package/fesm2022/ng-nest-ui-message-box.mjs.map +1 -1
  104. package/fesm2022/ng-nest-ui-message.mjs +10 -10
  105. package/fesm2022/ng-nest-ui-message.mjs.map +1 -1
  106. package/fesm2022/ng-nest-ui-notification.mjs +10 -10
  107. package/fesm2022/ng-nest-ui-notification.mjs.map +1 -1
  108. package/fesm2022/ng-nest-ui-outlet.mjs +9 -9
  109. package/fesm2022/ng-nest-ui-outlet.mjs.map +1 -1
  110. package/fesm2022/ng-nest-ui-page-header.mjs +15 -15
  111. package/fesm2022/ng-nest-ui-page-header.mjs.map +1 -1
  112. package/fesm2022/ng-nest-ui-pagination.mjs +53 -53
  113. package/fesm2022/ng-nest-ui-pagination.mjs.map +1 -1
  114. package/fesm2022/ng-nest-ui-pattern.mjs +7 -7
  115. package/fesm2022/ng-nest-ui-pattern.mjs.map +1 -1
  116. package/fesm2022/ng-nest-ui-popconfirm.mjs +27 -27
  117. package/fesm2022/ng-nest-ui-popconfirm.mjs.map +1 -1
  118. package/fesm2022/ng-nest-ui-popover.mjs +38 -38
  119. package/fesm2022/ng-nest-ui-popover.mjs.map +1 -1
  120. package/fesm2022/ng-nest-ui-portal.mjs +7 -7
  121. package/fesm2022/ng-nest-ui-portal.mjs.map +1 -1
  122. package/fesm2022/ng-nest-ui-progress.mjs +38 -38
  123. package/fesm2022/ng-nest-ui-progress.mjs.map +1 -1
  124. package/fesm2022/ng-nest-ui-radio.mjs +36 -36
  125. package/fesm2022/ng-nest-ui-radio.mjs.map +1 -1
  126. package/fesm2022/ng-nest-ui-rate.mjs +30 -30
  127. package/fesm2022/ng-nest-ui-rate.mjs.map +1 -1
  128. package/fesm2022/ng-nest-ui-resizable.mjs +16 -16
  129. package/fesm2022/ng-nest-ui-resizable.mjs.map +1 -1
  130. package/fesm2022/ng-nest-ui-result.mjs +16 -16
  131. package/fesm2022/ng-nest-ui-result.mjs.map +1 -1
  132. package/fesm2022/ng-nest-ui-ripple.mjs +13 -13
  133. package/fesm2022/ng-nest-ui-ripple.mjs.map +1 -1
  134. package/fesm2022/ng-nest-ui-scrollable.mjs +219 -0
  135. package/fesm2022/ng-nest-ui-scrollable.mjs.map +1 -0
  136. package/fesm2022/ng-nest-ui-select.mjs +125 -110
  137. package/fesm2022/ng-nest-ui-select.mjs.map +1 -1
  138. package/fesm2022/ng-nest-ui-skeleton.mjs +15 -15
  139. package/fesm2022/ng-nest-ui-skeleton.mjs.map +1 -1
  140. package/fesm2022/ng-nest-ui-slider-select.mjs +54 -54
  141. package/fesm2022/ng-nest-ui-slider-select.mjs.map +1 -1
  142. package/fesm2022/ng-nest-ui-slider.mjs +39 -39
  143. package/fesm2022/ng-nest-ui-slider.mjs.map +1 -1
  144. package/fesm2022/ng-nest-ui-statistic.mjs +30 -30
  145. package/fesm2022/ng-nest-ui-statistic.mjs.map +1 -1
  146. package/fesm2022/ng-nest-ui-steps.mjs +19 -19
  147. package/fesm2022/ng-nest-ui-steps.mjs.map +1 -1
  148. package/fesm2022/ng-nest-ui-switch.mjs +26 -26
  149. package/fesm2022/ng-nest-ui-switch.mjs.map +1 -1
  150. package/fesm2022/ng-nest-ui-table-view.mjs +593 -0
  151. package/fesm2022/ng-nest-ui-table-view.mjs.map +1 -0
  152. package/fesm2022/ng-nest-ui-table.mjs +222 -222
  153. package/fesm2022/ng-nest-ui-table.mjs.map +1 -1
  154. package/fesm2022/ng-nest-ui-tabs.mjs +58 -58
  155. package/fesm2022/ng-nest-ui-tabs.mjs.map +1 -1
  156. package/fesm2022/ng-nest-ui-tag.mjs +22 -22
  157. package/fesm2022/ng-nest-ui-tag.mjs.map +1 -1
  158. package/fesm2022/ng-nest-ui-text-retract.mjs +15 -15
  159. package/fesm2022/ng-nest-ui-text-retract.mjs.map +1 -1
  160. package/fesm2022/ng-nest-ui-textarea.mjs +45 -40
  161. package/fesm2022/ng-nest-ui-textarea.mjs.map +1 -1
  162. package/fesm2022/ng-nest-ui-theme.mjs +23 -23
  163. package/fesm2022/ng-nest-ui-theme.mjs.map +1 -1
  164. package/fesm2022/ng-nest-ui-time-ago.mjs +7 -7
  165. package/fesm2022/ng-nest-ui-time-ago.mjs.map +1 -1
  166. package/fesm2022/ng-nest-ui-time-picker.mjs +113 -92
  167. package/fesm2022/ng-nest-ui-time-picker.mjs.map +1 -1
  168. package/fesm2022/ng-nest-ui-time-range.mjs +7 -7
  169. package/fesm2022/ng-nest-ui-time-range.mjs.map +1 -1
  170. package/fesm2022/ng-nest-ui-timeline.mjs +15 -15
  171. package/fesm2022/ng-nest-ui-timeline.mjs.map +1 -1
  172. package/fesm2022/ng-nest-ui-tooltip.mjs +38 -38
  173. package/fesm2022/ng-nest-ui-tooltip.mjs.map +1 -1
  174. package/fesm2022/ng-nest-ui-transfer.mjs +40 -40
  175. package/fesm2022/ng-nest-ui-transfer.mjs.map +1 -1
  176. package/fesm2022/ng-nest-ui-tree-file.mjs +28 -28
  177. package/fesm2022/ng-nest-ui-tree-file.mjs.map +1 -1
  178. package/fesm2022/ng-nest-ui-tree-select.mjs +147 -110
  179. package/fesm2022/ng-nest-ui-tree-select.mjs.map +1 -1
  180. package/fesm2022/ng-nest-ui-tree.mjs +107 -107
  181. package/fesm2022/ng-nest-ui-tree.mjs.map +1 -1
  182. package/fesm2022/ng-nest-ui-typography.mjs +13 -13
  183. package/fesm2022/ng-nest-ui-typography.mjs.map +1 -1
  184. package/fesm2022/ng-nest-ui-upload.mjs +37 -37
  185. package/fesm2022/ng-nest-ui-upload.mjs.map +1 -1
  186. package/fesm2022/ng-nest-ui.mjs +2 -0
  187. package/fesm2022/ng-nest-ui.mjs.map +1 -1
  188. package/find/index.d.ts +5 -5
  189. package/form/index.d.ts +1 -1
  190. package/index.d.ts +2 -0
  191. package/input/index.d.ts +47 -5
  192. package/input-number/index.d.ts +22 -7
  193. package/list/index.d.ts +2 -2
  194. package/message-box/index.d.ts +4 -5
  195. package/package.json +28 -20
  196. package/radio/index.d.ts +4 -4
  197. package/rate/index.d.ts +5 -5
  198. package/scrollable/index.d.ts +49 -0
  199. package/select/index.d.ts +53 -8
  200. package/slider-select/index.d.ts +3 -3
  201. package/steps/index.d.ts +1 -2
  202. package/switch/index.d.ts +3 -3
  203. package/table-view/index.d.ts +148 -0
  204. package/textarea/index.d.ts +20 -5
  205. package/theme/index.d.ts +1 -1
  206. package/time-picker/index.d.ts +53 -8
  207. package/transfer/index.d.ts +1 -1
  208. package/tree-select/index.d.ts +70 -9
  209. package/upload/index.d.ts +2 -2
@@ -34,7 +34,7 @@ class XAlertProperty extends XPropertyFunction(X_ALERT_CONFIG_NAME) {
34
34
  * ```
35
35
  *
36
36
  */
37
- this.hide = input(false, { transform: XToBoolean });
37
+ this.hide = input(false, ...(ngDevMode ? [{ debugName: "hide", transform: XToBoolean }] : [{ transform: XToBoolean }]));
38
38
  /**
39
39
  * @zh_CN 标题
40
40
  * @en_US Title
@@ -45,7 +45,7 @@ class XAlertProperty extends XPropertyFunction(X_ALERT_CONFIG_NAME) {
45
45
  * ```
46
46
  *
47
47
  */
48
- this.title = input();
48
+ this.title = input(...(ngDevMode ? [undefined, { debugName: "title" }] : []));
49
49
  /**
50
50
  * @zh_CN 内容
51
51
  * @en_US Content
@@ -56,7 +56,7 @@ class XAlertProperty extends XPropertyFunction(X_ALERT_CONFIG_NAME) {
56
56
  * ```
57
57
  *
58
58
  */
59
- this.content = input();
59
+ this.content = input(...(ngDevMode ? [undefined, { debugName: "content" }] : []));
60
60
  /**
61
61
  * @zh_CN 类型
62
62
  * @en_US Alert type
@@ -71,7 +71,7 @@ class XAlertProperty extends XPropertyFunction(X_ALERT_CONFIG_NAME) {
71
71
  * ```
72
72
  *
73
73
  */
74
- this.type = input('info');
74
+ this.type = input('info', ...(ngDevMode ? [{ debugName: "type" }] : []));
75
75
  /**
76
76
  * @zh_CN 主题
77
77
  * @en_US Theme
@@ -84,7 +84,7 @@ class XAlertProperty extends XPropertyFunction(X_ALERT_CONFIG_NAME) {
84
84
  * ```
85
85
  *
86
86
  */
87
- this.effect = input(this.config?.effect ?? 'light');
87
+ this.effect = input(this.config?.effect ?? 'light', ...(ngDevMode ? [{ debugName: "effect" }] : []));
88
88
  /**
89
89
  * @zh_CN 隐藏关闭按钮
90
90
  * @en_US Hide close button
@@ -95,7 +95,7 @@ class XAlertProperty extends XPropertyFunction(X_ALERT_CONFIG_NAME) {
95
95
  * ```
96
96
  *
97
97
  */
98
- this.hideClose = input(this.config?.hideClose ?? false, { transform: XToBoolean });
98
+ this.hideClose = input(this.config?.hideClose ?? false, ...(ngDevMode ? [{ debugName: "hideClose", transform: XToBoolean }] : [{ transform: XToBoolean }]));
99
99
  /**
100
100
  * @zh_CN 使用文本关闭按钮
101
101
  * @en_US Use the text to close button
@@ -106,7 +106,7 @@ class XAlertProperty extends XPropertyFunction(X_ALERT_CONFIG_NAME) {
106
106
  * ```
107
107
  *
108
108
  */
109
- this.closeText = input();
109
+ this.closeText = input(...(ngDevMode ? [undefined, { debugName: "closeText" }] : []));
110
110
  /**
111
111
  * @zh_CN 显示图标
112
112
  * @en_US Show icon
@@ -121,7 +121,7 @@ class XAlertProperty extends XPropertyFunction(X_ALERT_CONFIG_NAME) {
121
121
  * ```
122
122
  *
123
123
  */
124
- this.showIcon = input(this.config?.showIcon ?? false, { transform: XToBoolean });
124
+ this.showIcon = input(this.config?.showIcon ?? false, ...(ngDevMode ? [{ debugName: "showIcon", transform: XToBoolean }] : [{ transform: XToBoolean }]));
125
125
  /**
126
126
  * @zh_CN 禁用动画
127
127
  * @en_US Disable animation
@@ -132,9 +132,9 @@ class XAlertProperty extends XPropertyFunction(X_ALERT_CONFIG_NAME) {
132
132
  * ```
133
133
  *
134
134
  */
135
- this.disabledAnimation = input(this.config?.disabledAnimation ?? false, {
136
- transform: XToBoolean
137
- });
135
+ this.disabledAnimation = input(this.config?.disabledAnimation ?? false, ...(ngDevMode ? [{ debugName: "disabledAnimation", transform: XToBoolean }] : [{
136
+ transform: XToBoolean
137
+ }]));
138
138
  /**
139
139
  * @zh_CN 延迟关闭,默认 0 表示不关闭,ms
140
140
  * @en_US Delay close, the default value of 0 means do not close. ms
@@ -145,7 +145,7 @@ class XAlertProperty extends XPropertyFunction(X_ALERT_CONFIG_NAME) {
145
145
  * ```
146
146
  *
147
147
  */
148
- this.duration = input(this.config?.duration ?? 0, { transform: XToNumber });
148
+ this.duration = input(this.config?.duration ?? 0, ...(ngDevMode ? [{ debugName: "duration", transform: XToNumber }] : [{ transform: XToNumber }]));
149
149
  /**
150
150
  * @zh_CN 手动处理关闭事件
151
151
  * @en_US Manually handle close events
@@ -156,7 +156,7 @@ class XAlertProperty extends XPropertyFunction(X_ALERT_CONFIG_NAME) {
156
156
  * ```
157
157
  *
158
158
  */
159
- this.manual = input(false, { transform: XToBoolean });
159
+ this.manual = input(false, ...(ngDevMode ? [{ debugName: "manual", transform: XToBoolean }] : [{ transform: XToBoolean }]));
160
160
  /**
161
161
  * @zh_CN 拖动提示框
162
162
  * @en_US Drag dialog
@@ -167,7 +167,7 @@ class XAlertProperty extends XPropertyFunction(X_ALERT_CONFIG_NAME) {
167
167
  * ```
168
168
  *
169
169
  */
170
- this.draggable = input(this.config?.draggable ?? false, { transform: XToBoolean });
170
+ this.draggable = input(this.config?.draggable ?? false, ...(ngDevMode ? [{ debugName: "draggable", transform: XToBoolean }] : [{ transform: XToBoolean }]));
171
171
  /**
172
172
  * @zh_CN 调整提示框大小
173
173
  * @en_US Adjust the size of the box
@@ -178,7 +178,7 @@ class XAlertProperty extends XPropertyFunction(X_ALERT_CONFIG_NAME) {
178
178
  * ```
179
179
  *
180
180
  */
181
- this.resizable = input(this.config?.resizable ?? false, { transform: XToBoolean });
181
+ this.resizable = input(this.config?.resizable ?? false, ...(ngDevMode ? [{ debugName: "resizable", transform: XToBoolean }] : [{ transform: XToBoolean }]));
182
182
  /**
183
183
  * @zh_CN 开启 resizable 调整大小,偏移屏幕左边
184
184
  * @en_US Open the resizable resize, offset screen left
@@ -189,7 +189,7 @@ class XAlertProperty extends XPropertyFunction(X_ALERT_CONFIG_NAME) {
189
189
  * ```
190
190
  *
191
191
  */
192
- this.offsetLeft = input(0, { transform: XToNumber });
192
+ this.offsetLeft = input(0, ...(ngDevMode ? [{ debugName: "offsetLeft", transform: XToNumber }] : [{ transform: XToNumber }]));
193
193
  /**
194
194
  * @zh_CN 开启 resizable 调整大小,偏移屏幕顶部
195
195
  * @en_US Open the resizable resize, offset screen top
@@ -200,7 +200,7 @@ class XAlertProperty extends XPropertyFunction(X_ALERT_CONFIG_NAME) {
200
200
  * ```
201
201
  *
202
202
  */
203
- this.offsetTop = input(0, { transform: XToNumber });
203
+ this.offsetTop = input(0, ...(ngDevMode ? [{ debugName: "offsetTop", transform: XToNumber }] : [{ transform: XToNumber }]));
204
204
  /**
205
205
  * @zh_CN 最小宽度
206
206
  * @en_US Min width
@@ -211,7 +211,7 @@ class XAlertProperty extends XPropertyFunction(X_ALERT_CONFIG_NAME) {
211
211
  * ```
212
212
  *
213
213
  */
214
- this.minWidth = input(this.config?.minWidth ?? '0', { transform: XToCssPixelValue });
214
+ this.minWidth = input(this.config?.minWidth ?? '0', ...(ngDevMode ? [{ debugName: "minWidth", transform: XToCssPixelValue }] : [{ transform: XToCssPixelValue }]));
215
215
  /**
216
216
  * @zh_CN 最小高度
217
217
  * @en_US Min height
@@ -222,7 +222,7 @@ class XAlertProperty extends XPropertyFunction(X_ALERT_CONFIG_NAME) {
222
222
  * ```
223
223
  *
224
224
  */
225
- this.minHeight = input(this.config?.minHeight ?? '0', { transform: XToCssPixelValue });
225
+ this.minHeight = input(this.config?.minHeight ?? '0', ...(ngDevMode ? [{ debugName: "minHeight", transform: XToCssPixelValue }] : [{ transform: XToCssPixelValue }]));
226
226
  /**
227
227
  * @zh_CN 拖动范围限制,父节点选择器或者对象
228
228
  * @en_US Drag dialog
@@ -235,7 +235,7 @@ class XAlertProperty extends XPropertyFunction(X_ALERT_CONFIG_NAME) {
235
235
  * ```
236
236
  *
237
237
  */
238
- this.dragBoundary = input();
238
+ this.dragBoundary = input(...(ngDevMode ? [undefined, { debugName: "dragBoundary" }] : []));
239
239
  /**
240
240
  * @zh_CN 设置投放容器外部的 CdkDrag 的位置。可用于为返回的用户恢复元素的位置
241
241
  * @en_US Set the location of the CDKDRAG outside the container. Can be used to recover elements for returned users
@@ -246,7 +246,7 @@ class XAlertProperty extends XPropertyFunction(X_ALERT_CONFIG_NAME) {
246
246
  * ```
247
247
  *
248
248
  */
249
- this.dragFreeDragPosition = input();
249
+ this.dragFreeDragPosition = input(...(ngDevMode ? [undefined, { debugName: "dragFreeDragPosition" }] : []));
250
250
  /**
251
251
  * @zh_CN 自定义操作
252
252
  * @en_US Custom operation
@@ -260,7 +260,7 @@ class XAlertProperty extends XPropertyFunction(X_ALERT_CONFIG_NAME) {
260
260
  * ```
261
261
  *
262
262
  */
263
- this.operationTpl = input();
263
+ this.operationTpl = input(...(ngDevMode ? [undefined, { debugName: "operationTpl" }] : []));
264
264
  /**
265
265
  * @zh_CN 关闭的事件
266
266
  * @en_US Closed event
@@ -313,10 +313,10 @@ class XAlertProperty extends XPropertyFunction(X_ALERT_CONFIG_NAME) {
313
313
  */
314
314
  this.resizing = output();
315
315
  }
316
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XAlertProperty, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
317
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.0.0", type: XAlertProperty, isStandalone: true, selector: "x-alert-property", inputs: { hide: { classPropertyName: "hide", publicName: "hide", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, effect: { classPropertyName: "effect", publicName: "effect", isSignal: true, isRequired: false, transformFunction: null }, hideClose: { classPropertyName: "hideClose", publicName: "hideClose", isSignal: true, isRequired: false, transformFunction: null }, closeText: { classPropertyName: "closeText", publicName: "closeText", isSignal: true, isRequired: false, transformFunction: null }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: true, isRequired: false, transformFunction: null }, disabledAnimation: { classPropertyName: "disabledAnimation", publicName: "disabledAnimation", isSignal: true, isRequired: false, transformFunction: null }, duration: { classPropertyName: "duration", publicName: "duration", isSignal: true, isRequired: false, transformFunction: null }, manual: { classPropertyName: "manual", publicName: "manual", isSignal: true, isRequired: false, transformFunction: null }, draggable: { classPropertyName: "draggable", publicName: "draggable", isSignal: true, isRequired: false, transformFunction: null }, resizable: { classPropertyName: "resizable", publicName: "resizable", isSignal: true, isRequired: false, transformFunction: null }, offsetLeft: { classPropertyName: "offsetLeft", publicName: "offsetLeft", isSignal: true, isRequired: false, transformFunction: null }, offsetTop: { classPropertyName: "offsetTop", publicName: "offsetTop", isSignal: true, isRequired: false, transformFunction: null }, minWidth: { classPropertyName: "minWidth", publicName: "minWidth", isSignal: true, isRequired: false, transformFunction: null }, minHeight: { classPropertyName: "minHeight", publicName: "minHeight", isSignal: true, isRequired: false, transformFunction: null }, dragBoundary: { classPropertyName: "dragBoundary", publicName: "dragBoundary", isSignal: true, isRequired: false, transformFunction: null }, dragFreeDragPosition: { classPropertyName: "dragFreeDragPosition", publicName: "dragFreeDragPosition", isSignal: true, isRequired: false, transformFunction: null }, operationTpl: { classPropertyName: "operationTpl", publicName: "operationTpl", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { close: "close", dragEnded: "dragEnded", resizing: "resizing" }, usesInheritance: true, ngImport: i0, template: '', isInline: true }); }
316
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XAlertProperty, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
317
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.2.4", type: XAlertProperty, isStandalone: true, selector: "x-alert-property", inputs: { hide: { classPropertyName: "hide", publicName: "hide", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, effect: { classPropertyName: "effect", publicName: "effect", isSignal: true, isRequired: false, transformFunction: null }, hideClose: { classPropertyName: "hideClose", publicName: "hideClose", isSignal: true, isRequired: false, transformFunction: null }, closeText: { classPropertyName: "closeText", publicName: "closeText", isSignal: true, isRequired: false, transformFunction: null }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: true, isRequired: false, transformFunction: null }, disabledAnimation: { classPropertyName: "disabledAnimation", publicName: "disabledAnimation", isSignal: true, isRequired: false, transformFunction: null }, duration: { classPropertyName: "duration", publicName: "duration", isSignal: true, isRequired: false, transformFunction: null }, manual: { classPropertyName: "manual", publicName: "manual", isSignal: true, isRequired: false, transformFunction: null }, draggable: { classPropertyName: "draggable", publicName: "draggable", isSignal: true, isRequired: false, transformFunction: null }, resizable: { classPropertyName: "resizable", publicName: "resizable", isSignal: true, isRequired: false, transformFunction: null }, offsetLeft: { classPropertyName: "offsetLeft", publicName: "offsetLeft", isSignal: true, isRequired: false, transformFunction: null }, offsetTop: { classPropertyName: "offsetTop", publicName: "offsetTop", isSignal: true, isRequired: false, transformFunction: null }, minWidth: { classPropertyName: "minWidth", publicName: "minWidth", isSignal: true, isRequired: false, transformFunction: null }, minHeight: { classPropertyName: "minHeight", publicName: "minHeight", isSignal: true, isRequired: false, transformFunction: null }, dragBoundary: { classPropertyName: "dragBoundary", publicName: "dragBoundary", isSignal: true, isRequired: false, transformFunction: null }, dragFreeDragPosition: { classPropertyName: "dragFreeDragPosition", publicName: "dragFreeDragPosition", isSignal: true, isRequired: false, transformFunction: null }, operationTpl: { classPropertyName: "operationTpl", publicName: "operationTpl", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { close: "close", dragEnded: "dragEnded", resizing: "resizing" }, usesInheritance: true, ngImport: i0, template: '', isInline: true }); }
318
318
  }
319
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XAlertProperty, decorators: [{
319
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XAlertProperty, decorators: [{
320
320
  type: Component,
321
321
  args: [{
322
322
  selector: `${XAlertPrefix}-property`, template: ''
@@ -326,17 +326,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImpor
326
326
  class XAlertComponent extends XAlertProperty {
327
327
  constructor() {
328
328
  super();
329
- this.styleHide = signal(false);
329
+ this.styleHide = signal(false, ...(ngDevMode ? [{ debugName: "styleHide" }] : []));
330
330
  this.classMap = computed(() => ({
331
331
  [`${XAlertPrefix}-${this.type()}`]: !XIsEmpty(this.type()),
332
332
  [`x-${this.effect()}`]: !XIsEmpty(this.effect()),
333
333
  [`${XAlertPrefix}-icon-medium`]: !XIsEmpty(this.title()) && !XIsEmpty(this.content()) && !XIsEmpty(this.showIcon()),
334
334
  [`${XAlertPrefix}-draggable`]: this.draggable()
335
- }));
335
+ }), ...(ngDevMode ? [{ debugName: "classMap" }] : []));
336
336
  this.unSubject = new Subject();
337
337
  this.isBrowser = isPlatformBrowser(inject(PLATFORM_ID));
338
338
  this.destoryRef = inject(DestroyRef);
339
- this.destory = signal(false);
339
+ this.destory = signal(false, ...(ngDevMode ? [{ debugName: "destory" }] : []));
340
340
  effect(() => this.setDuration());
341
341
  this.destoryRef.onDestroy(() => {
342
342
  this.destory.set(true);
@@ -367,10 +367,10 @@ class XAlertComponent extends XAlertProperty {
367
367
  !this.destory() && this.close.emit();
368
368
  }
369
369
  }
370
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XAlertComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
371
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.0", type: XAlertComponent, isStandalone: true, selector: "x-alert", usesInheritance: true, ngImport: i0, template: "@if (!styleHide() && !hide()) {\r\n <div\r\n class=\"x-alert\"\r\n [class.x-alert-has-close]=\"!hideClose()\"\r\n [class.x-alert-icon-content]=\"showIcon() && content()\"\r\n cdkDrag\r\n (cdkDragEnded)=\"dragEnded.emit($event)\"\r\n [cdkDragFreeDragPosition]=\"dragFreeDragPosition()!\"\r\n [cdkDragDisabled]=\"!draggable()\"\r\n [cdkDragBoundary]=\"dragBoundary()!\"\r\n [ngClass]=\"classMap()\"\r\n @x-fade-animation\r\n [@.disabled]=\"disabledAnimation()\"\r\n (@x-fade-animation.done)=\"onCloseAnimationDone()\"\r\n [xResizable]=\"resizable()!\"\r\n (resizing)=\"resizing.emit($event)\"\r\n [offsetLeft]=\"offsetLeft()\"\r\n [offsetTop]=\"offsetTop()\"\r\n [style.minWidth]=\"minWidth()\"\r\n [style.minHeight]=\"minHeight()\"\r\n >\r\n @if (showIcon()) {\r\n <ng-container *ngTemplateOutlet=\"iconTpl\"></ng-container>\r\n }\r\n <ng-template #iconTpl>\r\n @switch (type()) {\r\n @case ('success') {\r\n <x-icon class=\"x-alert-icon\" type=\"adf-check-circle\"></x-icon>\r\n }\r\n @case ('info') {\r\n <x-icon class=\"x-alert-icon\" type=\"adf-info-circle\"></x-icon>\r\n }\r\n @case ('warning') {\r\n <x-icon class=\"x-alert-icon\" type=\"adf-exclamation-circle\"></x-icon>\r\n }\r\n @case ('error') {\r\n <x-icon class=\"x-alert-icon\" type=\"adf-close-circle\"></x-icon>\r\n }\r\n @case ('loading') {\r\n <x-icon class=\"x-alert-icon\" type=\"fto-loader\" [spin]=\"true\"></x-icon>\r\n }\r\n }\r\n </ng-template>\r\n <div class=\"x-alert-inner\">\r\n <span class=\"x-alert-title\" cdkDragHandle [class.x-bold]=\"title() && content()\">\r\n <ng-container *xOutlet=\"title(); context: { $iconTpl: iconTpl }\">{{ title() }}</ng-container>\r\n </span>\r\n @if (content()) {\r\n <div class=\"x-alert-content\">\r\n <ng-container *xOutlet=\"content(); context: { $iconTpl: iconTpl }\">{{ content() }}</ng-container>\r\n </div>\r\n }\r\n <div class=\"x-alert-close\">\r\n <div class=\"x-alert-operation\" *xOutlet=\"operationTpl()\">{{ operationTpl() }}</div>\r\n @if (!hideClose()) {\r\n <x-button class=\"x-alert-operation-close\" size=\"small\" [icon]=\"!closeText() ? 'fto-x' : ''\" [type]=\"'text'\" (click)=\"onClose()\" closable>\r\n {{ closeText() }}\r\n </x-button>\r\n }\r\n </div>\r\n </div>\r\n </div>\r\n}\r\n", styles: ["x-alert{display:block}.x-alert{margin:0;padding:0}.x-alert{background-color:var(--x-background);border:.0625rem solid var(--x-border-300);border-radius:var(--x-border-radius);padding:.5rem 1rem;position:relative;display:flex;align-items:center}.x-alert-close{position:absolute;top:.425rem;right:.425rem}.x-alert-inner{width:100%}.x-alert-title.x-bold{font-weight:600}.x-alert-has-close .x-alert-title{margin-right:1.425rem}.x-alert-content{font-size:calc(var(--x-font-size) - .0625rem);line-height:1.325rem;margin:.25rem 0 0}.x-alert-icon-content{align-items:flex-start}.x-alert-icon.x-icon{font-size:calc(var(--x-font-size) + .25rem);margin-right:.5rem}.x-alert-icon-medium>.x-icon{font-size:1.75rem}.x-alert-draggable .cdk-drag-handle{cursor:move}.x-alert-success.x-light{color:var(--x-success);background-color:var(--x-success-900);border-color:transparent;box-shadow:var(--x-box-shadow)}.x-alert-success.x-light x-button.x-alert-close .x-button{color:var(--x-success-400)}.x-alert-success.x-light x-button.x-alert-close .x-button:hover{color:var(--x-success)}.x-alert-success.x-dark{color:var(--x-success-900);background-color:var(--x-success);border-color:transparent;box-shadow:var(--x-box-shadow)}.x-alert-success.x-dark x-button.x-alert-close .x-button{color:var(--x-success-900)}.x-alert-success.x-dark x-button.x-alert-close .x-button:hover{color:var(--x-background-100)}.x-alert-success.x-white{color:var(--x-text-300);background-color:var(--x-background);border-color:transparent;box-shadow:var(--x-box-shadow)}.x-alert-success.x-white .x-alert-icon.x-icon{color:var(--x-success)}.x-alert-success.x-white x-button.x-alert-close .x-button{color:var(--x-text-400)}.x-alert-success.x-white x-button.x-alert-close .x-button:hover{color:var(--x-text-300)}.x-alert-info.x-light{color:var(--x-info);background-color:var(--x-info-900);border-color:transparent;box-shadow:var(--x-box-shadow)}.x-alert-info.x-light x-button.x-alert-close .x-button{color:var(--x-info-400)}.x-alert-info.x-light x-button.x-alert-close .x-button:hover{color:var(--x-info)}.x-alert-info.x-dark{color:var(--x-info-900);background-color:var(--x-info);border-color:transparent;box-shadow:var(--x-box-shadow)}.x-alert-info.x-dark x-button.x-alert-close .x-button{color:var(--x-info-900)}.x-alert-info.x-dark x-button.x-alert-close .x-button:hover{color:var(--x-background-100)}.x-alert-info.x-white{color:var(--x-text-300);background-color:var(--x-background);border-color:transparent;box-shadow:var(--x-box-shadow)}.x-alert-info.x-white .x-alert-icon.x-icon{color:var(--x-info)}.x-alert-info.x-white x-button.x-alert-close .x-button{color:var(--x-text-400)}.x-alert-info.x-white x-button.x-alert-close .x-button:hover{color:var(--x-text-300)}.x-alert-warning.x-light{color:var(--x-warning);background-color:var(--x-warning-900);border-color:transparent;box-shadow:var(--x-box-shadow)}.x-alert-warning.x-light x-button.x-alert-close .x-button{color:var(--x-warning-400)}.x-alert-warning.x-light x-button.x-alert-close .x-button:hover{color:var(--x-warning)}.x-alert-warning.x-dark{color:var(--x-warning-900);background-color:var(--x-warning);border-color:transparent;box-shadow:var(--x-box-shadow)}.x-alert-warning.x-dark x-button.x-alert-close .x-button{color:var(--x-warning-900)}.x-alert-warning.x-dark x-button.x-alert-close .x-button:hover{color:var(--x-background-100)}.x-alert-warning.x-white{color:var(--x-text-300);background-color:var(--x-background);border-color:transparent;box-shadow:var(--x-box-shadow)}.x-alert-warning.x-white .x-alert-icon.x-icon{color:var(--x-warning)}.x-alert-warning.x-white x-button.x-alert-close .x-button{color:var(--x-text-400)}.x-alert-warning.x-white x-button.x-alert-close .x-button:hover{color:var(--x-text-300)}.x-alert-error.x-light{color:var(--x-danger);background-color:var(--x-danger-900);border-color:transparent;box-shadow:var(--x-box-shadow)}.x-alert-error.x-light x-button.x-alert-close .x-button{color:var(--x-danger-400)}.x-alert-error.x-light x-button.x-alert-close .x-button:hover{color:var(--x-danger)}.x-alert-error.x-dark{color:var(--x-danger-900);background-color:var(--x-danger);border-color:transparent;box-shadow:var(--x-box-shadow)}.x-alert-error.x-dark x-button.x-alert-close .x-button{color:var(--x-danger-900)}.x-alert-error.x-dark x-button.x-alert-close .x-button:hover{color:var(--x-background-100)}.x-alert-error.x-white{color:var(--x-text-300);background-color:var(--x-background);border-color:transparent;box-shadow:var(--x-box-shadow)}.x-alert-error.x-white .x-alert-icon.x-icon{color:var(--x-danger)}.x-alert-error.x-white x-button.x-alert-close .x-button{color:var(--x-text-400)}.x-alert-error.x-white x-button.x-alert-close .x-button:hover{color:var(--x-text-300)}.x-alert-loading.x-light{color:var(--x-primary);background-color:var(--x-info-900);border-color:transparent;box-shadow:var(--x-box-shadow)}.x-alert-loading.x-light x-button.x-alert-close .x-button{color:var(--x-info-400)}.x-alert-loading.x-light x-button.x-alert-close .x-button:hover{color:var(--x-primary)}.x-alert-loading.x-dark{color:var(--x-info-900);background-color:var(--x-primary);border-color:transparent;box-shadow:var(--x-box-shadow)}.x-alert-loading.x-dark x-button.x-alert-close .x-button{color:var(--x-info-900)}.x-alert-loading.x-dark x-button.x-alert-close .x-button:hover{color:var(--x-background-100)}.x-alert-loading.x-white{color:var(--x-text-300);background-color:var(--x-background);border-color:transparent;box-shadow:var(--x-box-shadow)}.x-alert-loading.x-white .x-alert-icon.x-icon{color:var(--x-primary)}.x-alert-loading.x-white x-button.x-alert-close .x-button{color:var(--x-text-400)}.x-alert-loading.x-white x-button.x-alert-close .x-button:hover{color:var(--x-text-300)}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i1.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: i1.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "component", type: XIconComponent, selector: "x-icon" }, { kind: "component", type: XButtonComponent, selector: "x-button" }, { kind: "directive", type: XOutletDirective, selector: "[xOutlet]", inputs: ["xOutletContext", "xOutlet"] }, { kind: "directive", type: XResizableDirective, selector: "[xResizable]" }], animations: [XFadeAnimation], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
370
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XAlertComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
371
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.4", type: XAlertComponent, isStandalone: true, selector: "x-alert", usesInheritance: true, ngImport: i0, template: "@if (!styleHide() && !hide()) {\r\n <div\r\n class=\"x-alert\"\r\n [class.x-alert-has-close]=\"!hideClose()\"\r\n [class.x-alert-icon-content]=\"showIcon() && content()\"\r\n cdkDrag\r\n (cdkDragEnded)=\"dragEnded.emit($event)\"\r\n [cdkDragFreeDragPosition]=\"dragFreeDragPosition()!\"\r\n [cdkDragDisabled]=\"!draggable()\"\r\n [cdkDragBoundary]=\"dragBoundary()!\"\r\n [ngClass]=\"classMap()\"\r\n @x-fade-animation\r\n [@.disabled]=\"disabledAnimation()\"\r\n (@x-fade-animation.done)=\"onCloseAnimationDone()\"\r\n [xResizable]=\"resizable()!\"\r\n (resizing)=\"resizing.emit($event)\"\r\n [offsetLeft]=\"offsetLeft()\"\r\n [offsetTop]=\"offsetTop()\"\r\n [style.minWidth]=\"minWidth()\"\r\n [style.minHeight]=\"minHeight()\"\r\n >\r\n @if (showIcon()) {\r\n <ng-container *ngTemplateOutlet=\"iconTpl\"></ng-container>\r\n }\r\n <ng-template #iconTpl>\r\n @switch (type()) {\r\n @case ('success') {\r\n <x-icon class=\"x-alert-icon\" type=\"adf-check-circle\"></x-icon>\r\n }\r\n @case ('info') {\r\n <x-icon class=\"x-alert-icon\" type=\"adf-info-circle\"></x-icon>\r\n }\r\n @case ('warning') {\r\n <x-icon class=\"x-alert-icon\" type=\"adf-exclamation-circle\"></x-icon>\r\n }\r\n @case ('error') {\r\n <x-icon class=\"x-alert-icon\" type=\"adf-close-circle\"></x-icon>\r\n }\r\n @case ('loading') {\r\n <x-icon class=\"x-alert-icon\" type=\"fto-loader\" [spin]=\"true\"></x-icon>\r\n }\r\n }\r\n </ng-template>\r\n <div class=\"x-alert-inner\">\r\n <span class=\"x-alert-title\" cdkDragHandle [class.x-bold]=\"title() && content()\">\r\n <ng-container *xOutlet=\"title(); context: { $iconTpl: iconTpl }\">{{ title() }}</ng-container>\r\n </span>\r\n @if (content()) {\r\n <div class=\"x-alert-content\">\r\n <ng-container *xOutlet=\"content(); context: { $iconTpl: iconTpl }\">{{ content() }}</ng-container>\r\n </div>\r\n }\r\n <div class=\"x-alert-close\">\r\n <div class=\"x-alert-operation\" *xOutlet=\"operationTpl()\">{{ operationTpl() }}</div>\r\n @if (!hideClose()) {\r\n <x-button class=\"x-alert-operation-close\" size=\"small\" [icon]=\"!closeText() ? 'fto-x' : ''\" [type]=\"'text'\" (click)=\"onClose()\" closable>\r\n {{ closeText() }}\r\n </x-button>\r\n }\r\n </div>\r\n </div>\r\n </div>\r\n}\r\n", styles: ["x-alert{display:block}.x-alert{margin:0;padding:0}.x-alert{background-color:var(--x-background);border:.0625rem solid var(--x-border-300);border-radius:var(--x-border-radius);padding:.5rem 1rem;position:relative;display:flex;align-items:center}.x-alert-close{position:absolute;top:.425rem;right:.425rem}.x-alert-inner{width:100%}.x-alert-title.x-bold{font-weight:600}.x-alert-has-close .x-alert-title{margin-right:1.425rem}.x-alert-content{font-size:calc(var(--x-font-size) - .0625rem);line-height:1.325rem;margin:.25rem 0 0}.x-alert-icon-content{align-items:flex-start}.x-alert-icon.x-icon{font-size:calc(var(--x-font-size) + .25rem);margin-right:.5rem}.x-alert-icon-medium>.x-icon{font-size:1.75rem}.x-alert-draggable .cdk-drag-handle{cursor:move}.x-alert-success.x-light{color:var(--x-success);background-color:var(--x-success-900);border-color:transparent;box-shadow:var(--x-box-shadow)}.x-alert-success.x-light x-button.x-alert-close .x-button{color:var(--x-success-400)}.x-alert-success.x-light x-button.x-alert-close .x-button:hover{color:var(--x-success)}.x-alert-success.x-dark{color:var(--x-success-900);background-color:var(--x-success);border-color:transparent;box-shadow:var(--x-box-shadow)}.x-alert-success.x-dark x-button.x-alert-close .x-button{color:var(--x-success-900)}.x-alert-success.x-dark x-button.x-alert-close .x-button:hover{color:var(--x-background-100)}.x-alert-success.x-white{color:var(--x-text-300);background-color:var(--x-background);border-color:transparent;box-shadow:var(--x-box-shadow)}.x-alert-success.x-white .x-alert-icon.x-icon{color:var(--x-success)}.x-alert-success.x-white x-button.x-alert-close .x-button{color:var(--x-text-400)}.x-alert-success.x-white x-button.x-alert-close .x-button:hover{color:var(--x-text-300)}.x-alert-info.x-light{color:var(--x-info);background-color:var(--x-info-900);border-color:transparent;box-shadow:var(--x-box-shadow)}.x-alert-info.x-light x-button.x-alert-close .x-button{color:var(--x-info-400)}.x-alert-info.x-light x-button.x-alert-close .x-button:hover{color:var(--x-info)}.x-alert-info.x-dark{color:var(--x-info-900);background-color:var(--x-info);border-color:transparent;box-shadow:var(--x-box-shadow)}.x-alert-info.x-dark x-button.x-alert-close .x-button{color:var(--x-info-900)}.x-alert-info.x-dark x-button.x-alert-close .x-button:hover{color:var(--x-background-100)}.x-alert-info.x-white{color:var(--x-text-300);background-color:var(--x-background);border-color:transparent;box-shadow:var(--x-box-shadow)}.x-alert-info.x-white .x-alert-icon.x-icon{color:var(--x-info)}.x-alert-info.x-white x-button.x-alert-close .x-button{color:var(--x-text-400)}.x-alert-info.x-white x-button.x-alert-close .x-button:hover{color:var(--x-text-300)}.x-alert-warning.x-light{color:var(--x-warning);background-color:var(--x-warning-900);border-color:transparent;box-shadow:var(--x-box-shadow)}.x-alert-warning.x-light x-button.x-alert-close .x-button{color:var(--x-warning-400)}.x-alert-warning.x-light x-button.x-alert-close .x-button:hover{color:var(--x-warning)}.x-alert-warning.x-dark{color:var(--x-warning-900);background-color:var(--x-warning);border-color:transparent;box-shadow:var(--x-box-shadow)}.x-alert-warning.x-dark x-button.x-alert-close .x-button{color:var(--x-warning-900)}.x-alert-warning.x-dark x-button.x-alert-close .x-button:hover{color:var(--x-background-100)}.x-alert-warning.x-white{color:var(--x-text-300);background-color:var(--x-background);border-color:transparent;box-shadow:var(--x-box-shadow)}.x-alert-warning.x-white .x-alert-icon.x-icon{color:var(--x-warning)}.x-alert-warning.x-white x-button.x-alert-close .x-button{color:var(--x-text-400)}.x-alert-warning.x-white x-button.x-alert-close .x-button:hover{color:var(--x-text-300)}.x-alert-error.x-light{color:var(--x-danger);background-color:var(--x-danger-900);border-color:transparent;box-shadow:var(--x-box-shadow)}.x-alert-error.x-light x-button.x-alert-close .x-button{color:var(--x-danger-400)}.x-alert-error.x-light x-button.x-alert-close .x-button:hover{color:var(--x-danger)}.x-alert-error.x-dark{color:var(--x-danger-900);background-color:var(--x-danger);border-color:transparent;box-shadow:var(--x-box-shadow)}.x-alert-error.x-dark x-button.x-alert-close .x-button{color:var(--x-danger-900)}.x-alert-error.x-dark x-button.x-alert-close .x-button:hover{color:var(--x-background-100)}.x-alert-error.x-white{color:var(--x-text-300);background-color:var(--x-background);border-color:transparent;box-shadow:var(--x-box-shadow)}.x-alert-error.x-white .x-alert-icon.x-icon{color:var(--x-danger)}.x-alert-error.x-white x-button.x-alert-close .x-button{color:var(--x-text-400)}.x-alert-error.x-white x-button.x-alert-close .x-button:hover{color:var(--x-text-300)}.x-alert-loading.x-light{color:var(--x-primary);background-color:var(--x-info-900);border-color:transparent;box-shadow:var(--x-box-shadow)}.x-alert-loading.x-light x-button.x-alert-close .x-button{color:var(--x-info-400)}.x-alert-loading.x-light x-button.x-alert-close .x-button:hover{color:var(--x-primary)}.x-alert-loading.x-dark{color:var(--x-info-900);background-color:var(--x-primary);border-color:transparent;box-shadow:var(--x-box-shadow)}.x-alert-loading.x-dark x-button.x-alert-close .x-button{color:var(--x-info-900)}.x-alert-loading.x-dark x-button.x-alert-close .x-button:hover{color:var(--x-background-100)}.x-alert-loading.x-white{color:var(--x-text-300);background-color:var(--x-background);border-color:transparent;box-shadow:var(--x-box-shadow)}.x-alert-loading.x-white .x-alert-icon.x-icon{color:var(--x-primary)}.x-alert-loading.x-white x-button.x-alert-close .x-button{color:var(--x-text-400)}.x-alert-loading.x-white x-button.x-alert-close .x-button:hover{color:var(--x-text-300)}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i1.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: i1.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "component", type: XIconComponent, selector: "x-icon" }, { kind: "component", type: XButtonComponent, selector: "x-button" }, { kind: "directive", type: XOutletDirective, selector: "[xOutlet]", inputs: ["xOutletContext", "xOutlet"] }, { kind: "directive", type: XResizableDirective, selector: "[xResizable]" }], animations: [XFadeAnimation], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
372
372
  }
373
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XAlertComponent, decorators: [{
373
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XAlertComponent, decorators: [{
374
374
  type: Component,
375
375
  args: [{ selector: `${XAlertPrefix}`, imports: [
376
376
  NgClass,
@@ -384,11 +384,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImpor
384
384
  }], ctorParameters: () => [] });
385
385
 
386
386
  class XAlertModule {
387
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XAlertModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
388
- /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0", ngImport: i0, type: XAlertModule, imports: [XAlertComponent], exports: [XAlertComponent] }); }
389
- /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XAlertModule, imports: [XAlertComponent] }); }
387
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XAlertModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
388
+ /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.4", ngImport: i0, type: XAlertModule, imports: [XAlertComponent], exports: [XAlertComponent] }); }
389
+ /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XAlertModule, imports: [XAlertComponent] }); }
390
390
  }
391
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XAlertModule, decorators: [{
391
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XAlertModule, decorators: [{
392
392
  type: NgModule,
393
393
  args: [{
394
394
  exports: [XAlertComponent],
@@ -1 +1 @@
1
- {"version":3,"file":"ng-nest-ui-alert.mjs","sources":["../../../../lib/ng-nest/ui/alert/alert.property.ts","../../../../lib/ng-nest/ui/alert/alert.component.ts","../../../../lib/ng-nest/ui/alert/alert.component.html","../../../../lib/ng-nest/ui/alert/alert.module.ts","../../../../lib/ng-nest/ui/alert/ng-nest-ui-alert.ts"],"sourcesContent":["import { XPropertyFunction, XToBoolean, XToCssPixelValue, XToNumber } from '@ng-nest/ui/core';\r\nimport { Component, ElementRef, input, output } from '@angular/core';\r\nimport type { CdkDragEnd } from '@angular/cdk/drag-drop';\r\nimport type { XResizableEvent } from '@ng-nest/ui/resizable';\r\nimport type { XBoolean, XNumber, XEffect, XTemplate, XStatus } from '@ng-nest/ui/core';\r\n\r\n/**\r\n * Alert\r\n * @selector x-alert\r\n * @decorator component\r\n */\r\nexport const XAlertPrefix = 'x-alert';\r\nexport const X_ALERT_CONFIG_NAME = 'alert';\r\n\r\n/**\r\n * Alert Property\r\n */\r\n@Component({\r\n selector: `${XAlertPrefix}-property`, template: ''\r\n})\r\nexport class XAlertProperty extends XPropertyFunction(X_ALERT_CONFIG_NAME) {\r\n /**\r\n * @zh_CN 隐藏\r\n * @en_US Hide\r\n * @example\r\n *\r\n * ```html\r\n * <x-alert title=\"隐藏,看不见\" hide> </x-alert>\r\n * ```\r\n *\r\n */\r\n readonly hide = input<boolean, XBoolean>(false, { transform: XToBoolean });\r\n /**\r\n * @zh_CN 标题\r\n * @en_US Title\r\n * @example\r\n *\r\n * ```html\r\n * <x-alert title=\"Title\" > </x-alert>\r\n * ```\r\n *\r\n */\r\n readonly title = input<XTemplate>();\r\n /**\r\n * @zh_CN 内容\r\n * @en_US Content\r\n * @example\r\n *\r\n * ```html\r\n * <x-alert content=\"Content\" > </x-alert>\r\n * ```\r\n *\r\n */\r\n readonly content = input<XTemplate>();\r\n /**\r\n * @zh_CN 类型\r\n * @en_US Alert type\r\n * @example\r\n *\r\n * ```html\r\n * <x-alert type=\"success\" > </x-alert>\r\n * <x-alert type=\"info\" > </x-alert>\r\n * <x-alert type=\"warning\" > </x-alert>\r\n * <x-alert type=\"error\" > </x-alert>\r\n * <x-alert type=\"loading\" > </x-alert>\r\n * ```\r\n *\r\n */\r\n readonly type = input<XAlertType>('info');\r\n /**\r\n * @zh_CN 主题\r\n * @en_US Theme\r\n * @example\r\n *\r\n * ```html\r\n * <x-alert effect=\"light\" > </x-alert>\r\n * <x-alert effect=\"dark\" > </x-alert>\r\n * <x-alert effect=\"white\" > </x-alert>\r\n * ```\r\n *\r\n */\r\n readonly effect = input<XEffect>(this.config?.effect ?? 'light');\r\n /**\r\n * @zh_CN 隐藏关闭按钮\r\n * @en_US Hide close button\r\n * @example\r\n *\r\n * ```html\r\n * <x-alert title=\"no close button\" hideClose> </x-alert>\r\n * ```\r\n *\r\n */\r\n readonly hideClose = input<boolean, XBoolean>(this.config?.hideClose ?? false, { transform: XToBoolean });\r\n /**\r\n * @zh_CN 使用文本关闭按钮\r\n * @en_US Use the text to close button\r\n * @example\r\n *\r\n * ```html\r\n * <x-alert title=\"close button is text\" closeText=\"close\"> </x-alert>\r\n * ```\r\n *\r\n */\r\n readonly closeText = input<string>();\r\n /**\r\n * @zh_CN 显示图标\r\n * @en_US Show icon\r\n * @example\r\n *\r\n * ```html\r\n * <x-alert type=\"success\" showIcon> </x-alert>\r\n * <x-alert type=\"info\" showIcon> </x-alert>\r\n * <x-alert type=\"warning\" showIcon> </x-alert>\r\n * <x-alert type=\"error\" showIcon> </x-alert>\r\n * <x-alert type=\"loading\" showIcon> </x-alert>\r\n * ```\r\n *\r\n */\r\n readonly showIcon = input<boolean, XBoolean>(this.config?.showIcon ?? false, { transform: XToBoolean });\r\n /**\r\n * @zh_CN 禁用动画\r\n * @en_US Disable animation\r\n * @example\r\n *\r\n * ```html\r\n * <x-alert title=\"disabled animation\" disabledAnimation> </x-alert>\r\n * ```\r\n *\r\n */\r\n readonly disabledAnimation = input<boolean, XBoolean>(this.config?.disabledAnimation ?? false, {\r\n transform: XToBoolean\r\n });\r\n /**\r\n * @zh_CN 延迟关闭,默认 0 表示不关闭,ms\r\n * @en_US Delay close, the default value of 0 means do not close. ms\r\n * @example\r\n *\r\n * ```html\r\n * <x-alert title=\"duration close\" duration=\"1000\"> </x-alert>\r\n * ```\r\n *\r\n */\r\n readonly duration = input<number, XNumber>(this.config?.duration ?? 0, { transform: XToNumber });\r\n /**\r\n * @zh_CN 手动处理关闭事件\r\n * @en_US Manually handle close events\r\n * @example\r\n *\r\n * ```html\r\n * <x-alert title=\"manual close\" manual> </x-alert>\r\n * ```\r\n *\r\n */\r\n readonly manual = input<boolean, XBoolean>(false, { transform: XToBoolean });\r\n /**\r\n * @zh_CN 拖动提示框\r\n * @en_US Drag dialog\r\n * @example\r\n *\r\n * ```html\r\n * <x-alert title=\"draggable alert\" draggable> </x-alert>\r\n * ```\r\n *\r\n */\r\n readonly draggable = input<boolean, XBoolean>(this.config?.draggable ?? false, { transform: XToBoolean });\r\n /**\r\n * @zh_CN 调整提示框大小\r\n * @en_US Adjust the size of the box\r\n * @example\r\n *\r\n * ```html\r\n * <x-alert title=\"resizable alert\" resizable> </x-alert>\r\n * ```\r\n *\r\n */\r\n readonly resizable = input<boolean, XBoolean>(this.config?.resizable ?? false, { transform: XToBoolean });\r\n /**\r\n * @zh_CN 开启 resizable 调整大小,偏移屏幕左边\r\n * @en_US Open the resizable resize, offset screen left\r\n * @example\r\n *\r\n * ```html\r\n * <x-alert title=\"resizable alert\" resizable offsetLeft=\"100\"> </x-alert>\r\n * ```\r\n *\r\n */\r\n readonly offsetLeft = input<number, XNumber>(0, { transform: XToNumber });\r\n /**\r\n * @zh_CN 开启 resizable 调整大小,偏移屏幕顶部\r\n * @en_US Open the resizable resize, offset screen top\r\n * @example\r\n *\r\n * ```html\r\n * <x-alert title=\"resizable alert\" resizable offsetTop=\"100\"> </x-alert>\r\n * ```\r\n *\r\n */\r\n readonly offsetTop = input<number, XNumber>(0, { transform: XToNumber });\r\n /**\r\n * @zh_CN 最小宽度\r\n * @en_US Min width\r\n * @example\r\n *\r\n * ```html\r\n * <x-alert title=\"alert min-width\" minWidth=\"100\"> </x-alert>\r\n * ```\r\n *\r\n */\r\n readonly minWidth = input<string, XNumber>(this.config?.minWidth ?? '0', { transform: XToCssPixelValue });\r\n /**\r\n * @zh_CN 最小高度\r\n * @en_US Min height\r\n * @example\r\n *\r\n * ```html\r\n * <x-alert title=\"alert min-height\" minHeight=\"100\"> </x-alert>\r\n * ```\r\n *\r\n */\r\n readonly minHeight = input<string, XNumber>(this.config?.minHeight ?? '0', { transform: XToCssPixelValue });\r\n /**\r\n * @zh_CN 拖动范围限制,父节点选择器或者对象\r\n * @en_US Drag dialog\r\n * @example\r\n *\r\n * ```html\r\n * <div #element style=\"width:300px; height: 300px\">\r\n * <x-alert title=\"draggable boundary\" draggable [dragBoundary]=\"element\"> </x-alert>\r\n * </div>\r\n * ```\r\n *\r\n */\r\n readonly dragBoundary = input<string | ElementRef<HTMLElement> | HTMLElement>();\r\n /**\r\n * @zh_CN 设置投放容器外部的 CdkDrag 的位置。可用于为返回的用户恢复元素的位置\r\n * @en_US Set the location of the CDKDRAG outside the container. Can be used to recover elements for returned users\r\n * @example\r\n *\r\n * ```html\r\n * <x-alert title=\"draggable boundary\" draggable [dragFreeDragPosition]=\"{ x: 100, y: 100 }\"> </x-alert>\r\n * ```\r\n *\r\n */\r\n readonly dragFreeDragPosition = input<XAlertDragFreeDragPosition>();\r\n /**\r\n * @zh_CN 自定义操作\r\n * @en_US Custom operation\r\n * @example\r\n *\r\n * ```html\r\n * <x-alert title=\"operation template\" [operationTpl]=\"operationTpl\"> </x-alert>\r\n * <ng-template #operationTpl>\r\n * <x-button>Button</x-button>\r\n * </ng-template>\r\n * ```\r\n *\r\n */\r\n readonly operationTpl = input<XTemplate>();\r\n /**\r\n * @zh_CN 关闭的事件\r\n * @en_US Closed event\r\n * @example\r\n *\r\n * ```html\r\n * <x-alert title=\"operation template\" (close)=\"close()\"> </x-alert>\r\n * ```\r\n *\r\n * ```typescript\r\n * close() {\r\n * console.log(\"close\")\r\n * }\r\n * ```\r\n *\r\n */\r\n readonly close = output();\r\n /**\r\n * @zh_CN 拖动结束的事件\r\n * @en_US Drag end event\r\n * @example\r\n *\r\n * ```html\r\n * <x-alert title=\"draggable event\" draggable (dragEnded)=\"dragEnded($event)\"> </x-alert>\r\n * ```\r\n *\r\n * ```typescript\r\n * dragEnded(event: CdkDragEnd) {\r\n * console.log(event)\r\n * }\r\n * ```\r\n *\r\n */\r\n readonly dragEnded = output<CdkDragEnd>();\r\n /**\r\n * @zh_CN 改变尺寸事件\r\n * @en_US Change the size event\r\n * @example\r\n *\r\n * ```html\r\n * <x-alert title=\"resizable event\" resizable (resizing)=\"resizing($event)\"> </x-alert>\r\n * ```\r\n *\r\n * ```typescript\r\n * resizing(event: XResizableEvent) {\r\n * console.log(event)\r\n * }\r\n * ```\r\n *\r\n */\r\n readonly resizing = output<XResizableEvent>();\r\n}\r\n\r\n/**\r\n * Alert Option\r\n * @undocument true\r\n */\r\nexport interface XAlertOption {\r\n /**\r\n * 隐藏\r\n */\r\n hide?: boolean;\r\n /**\r\n * 标题\r\n */\r\n title?: XTemplate;\r\n /**\r\n * 内容\r\n */\r\n content?: XTemplate;\r\n /**\r\n * 类型\r\n */\r\n type?: XAlertType;\r\n /**\r\n * 主题\r\n */\r\n effect?: XEffect;\r\n /**\r\n * 隐藏关闭按钮\r\n */\r\n hideClose?: boolean;\r\n /**\r\n * 关闭按钮文字替换\r\n */\r\n closeText?: string;\r\n /**\r\n * 显示图标\r\n */\r\n showIcon?: boolean;\r\n /**\r\n * 禁用动画\r\n */\r\n disabledAnimation?: boolean;\r\n /**\r\n * 延迟关闭,默认 0 表示不关闭\r\n */\r\n duration?: number;\r\n /**\r\n * 手动处理关闭事件\r\n */\r\n manual?: boolean;\r\n /**\r\n * 拖动提示框\r\n */\r\n draggable?: boolean;\r\n /**\r\n * 调整提示框大小\r\n */\r\n resizable?: boolean;\r\n /**\r\n * 开启 resizable 调整大小,偏移屏幕左边\r\n */\r\n offsetLeft?: string;\r\n /**\r\n * 开启 resizable 调整大小,偏移屏幕顶部\r\n */\r\n offsetTop?: string;\r\n /**\r\n * 最小宽度\r\n */\r\n minWidth?: string;\r\n /**\r\n * 最小高度\r\n */\r\n minHeight?: string;\r\n}\r\n\r\n/**\r\n * @zh_CN 类型\r\n * @en_US Type\r\n */\r\nexport type XAlertType = XStatus;\r\n\r\n/**\r\n * @zh_CN 设置投放容器外部的 CdkDrag 的位置。可用于为返回的用户恢复元素的位置\r\n * @en_US Set the location of the CDKDRAG outside the container. Can be used to recover elements for returned users\r\n */\r\nexport type XAlertDragFreeDragPosition = { x: number; y: number };\r\n","import {\r\n Component,\r\n ViewEncapsulation,\r\n ChangeDetectionStrategy,\r\n inject,\r\n PLATFORM_ID,\r\n computed,\r\n signal,\r\n effect,\r\n DestroyRef\r\n} from '@angular/core';\r\nimport { XAlertPrefix, XAlertProperty } from './alert.property';\r\nimport { XFadeAnimation, XIsEmpty } from '@ng-nest/ui/core';\r\nimport { of, Subject, Subscription } from 'rxjs';\r\nimport { delay, takeUntil } from 'rxjs/operators';\r\nimport { XIconComponent } from '@ng-nest/ui/icon';\r\nimport { XOutletDirective } from '@ng-nest/ui/outlet';\r\nimport { XButtonComponent } from '@ng-nest/ui/button';\r\nimport { DragDropModule } from '@angular/cdk/drag-drop';\r\nimport { XResizableDirective } from '@ng-nest/ui/resizable';\r\nimport { NgClass, NgTemplateOutlet, isPlatformBrowser } from '@angular/common';\r\n\r\n@Component({\r\n selector: `${XAlertPrefix}`,\r\n imports: [\r\n NgClass,\r\n NgTemplateOutlet,\r\n DragDropModule,\r\n XIconComponent,\r\n XButtonComponent,\r\n XOutletDirective,\r\n XResizableDirective\r\n ],\r\n templateUrl: './alert.component.html',\r\n styleUrls: ['./alert.component.scss'],\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n animations: [XFadeAnimation]\r\n})\r\nexport class XAlertComponent extends XAlertProperty {\r\n styleHide = signal(false);\r\n classMap = computed(() => ({\r\n [`${XAlertPrefix}-${this.type()}`]: !XIsEmpty(this.type()),\r\n [`x-${this.effect()}`]: !XIsEmpty(this.effect()),\r\n [`${XAlertPrefix}-icon-medium`]: !XIsEmpty(this.title()) && !XIsEmpty(this.content()) && !XIsEmpty(this.showIcon()),\r\n [`${XAlertPrefix}-draggable`]: this.draggable()\r\n }));\r\n\r\n private unSubject = new Subject<void>();\r\n private durationSubscription?: Subscription;\r\n private isBrowser = isPlatformBrowser(inject(PLATFORM_ID));\r\n private destoryRef = inject(DestroyRef);\r\n private destory = signal(false);\r\n\r\n constructor() {\r\n super();\r\n effect(() => this.setDuration());\r\n this.destoryRef.onDestroy(() => {\r\n this.destory.set(true);\r\n this.unSubject.next();\r\n this.unSubject.complete();\r\n });\r\n }\r\n\r\n setDuration() {\r\n if (this.duration() && this.isBrowser) {\r\n this.durationSubscription?.unsubscribe();\r\n this.durationSubscription = of(true)\r\n .pipe(delay(this.duration()), takeUntil(this.unSubject))\r\n .subscribe(() => {\r\n this.onClose();\r\n });\r\n }\r\n }\r\n\r\n onClose() {\r\n if (this.manual()) {\r\n !this.destory() && this.close.emit();\r\n } else {\r\n this.styleHide.set(true);\r\n }\r\n }\r\n\r\n onCloseAnimationDone() {\r\n if (this.hide()) {\r\n !this.destory() && this.close.emit();\r\n }\r\n }\r\n}\r\n","@if (!styleHide() && !hide()) {\r\n <div\r\n class=\"x-alert\"\r\n [class.x-alert-has-close]=\"!hideClose()\"\r\n [class.x-alert-icon-content]=\"showIcon() && content()\"\r\n cdkDrag\r\n (cdkDragEnded)=\"dragEnded.emit($event)\"\r\n [cdkDragFreeDragPosition]=\"dragFreeDragPosition()!\"\r\n [cdkDragDisabled]=\"!draggable()\"\r\n [cdkDragBoundary]=\"dragBoundary()!\"\r\n [ngClass]=\"classMap()\"\r\n @x-fade-animation\r\n [@.disabled]=\"disabledAnimation()\"\r\n (@x-fade-animation.done)=\"onCloseAnimationDone()\"\r\n [xResizable]=\"resizable()!\"\r\n (resizing)=\"resizing.emit($event)\"\r\n [offsetLeft]=\"offsetLeft()\"\r\n [offsetTop]=\"offsetTop()\"\r\n [style.minWidth]=\"minWidth()\"\r\n [style.minHeight]=\"minHeight()\"\r\n >\r\n @if (showIcon()) {\r\n <ng-container *ngTemplateOutlet=\"iconTpl\"></ng-container>\r\n }\r\n <ng-template #iconTpl>\r\n @switch (type()) {\r\n @case ('success') {\r\n <x-icon class=\"x-alert-icon\" type=\"adf-check-circle\"></x-icon>\r\n }\r\n @case ('info') {\r\n <x-icon class=\"x-alert-icon\" type=\"adf-info-circle\"></x-icon>\r\n }\r\n @case ('warning') {\r\n <x-icon class=\"x-alert-icon\" type=\"adf-exclamation-circle\"></x-icon>\r\n }\r\n @case ('error') {\r\n <x-icon class=\"x-alert-icon\" type=\"adf-close-circle\"></x-icon>\r\n }\r\n @case ('loading') {\r\n <x-icon class=\"x-alert-icon\" type=\"fto-loader\" [spin]=\"true\"></x-icon>\r\n }\r\n }\r\n </ng-template>\r\n <div class=\"x-alert-inner\">\r\n <span class=\"x-alert-title\" cdkDragHandle [class.x-bold]=\"title() && content()\">\r\n <ng-container *xOutlet=\"title(); context: { $iconTpl: iconTpl }\">{{ title() }}</ng-container>\r\n </span>\r\n @if (content()) {\r\n <div class=\"x-alert-content\">\r\n <ng-container *xOutlet=\"content(); context: { $iconTpl: iconTpl }\">{{ content() }}</ng-container>\r\n </div>\r\n }\r\n <div class=\"x-alert-close\">\r\n <div class=\"x-alert-operation\" *xOutlet=\"operationTpl()\">{{ operationTpl() }}</div>\r\n @if (!hideClose()) {\r\n <x-button class=\"x-alert-operation-close\" size=\"small\" [icon]=\"!closeText() ? 'fto-x' : ''\" [type]=\"'text'\" (click)=\"onClose()\" closable>\r\n {{ closeText() }}\r\n </x-button>\r\n }\r\n </div>\r\n </div>\r\n </div>\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { XAlertComponent } from './alert.component';\r\n\r\n@NgModule({\r\n exports: [XAlertComponent],\r\n imports: [XAlertComponent]\r\n})\r\nexport class XAlertModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;AAMA;;;;A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AA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,YAAY,YAFb,eAAe,CAAA,EAAA,CAAA,CAAA;;2FAEd,YAAY,EAAA,UAAA,EAAA,CAAA;kBAJxB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,eAAe,CAAC;oBAC1B,OAAO,EAAE,CAAC,eAAe;AAC1B,iBAAA;;;ACND;;AAEG;;;;"}
1
+ {"version":3,"file":"ng-nest-ui-alert.mjs","sources":["../../../../lib/ng-nest/ui/alert/alert.property.ts","../../../../lib/ng-nest/ui/alert/alert.component.ts","../../../../lib/ng-nest/ui/alert/alert.component.html","../../../../lib/ng-nest/ui/alert/alert.module.ts","../../../../lib/ng-nest/ui/alert/ng-nest-ui-alert.ts"],"sourcesContent":["import { XPropertyFunction, XToBoolean, XToCssPixelValue, XToNumber } from '@ng-nest/ui/core';\r\nimport { Component, ElementRef, input, output } from '@angular/core';\r\nimport type { CdkDragEnd } from '@angular/cdk/drag-drop';\r\nimport type { XResizableEvent } from '@ng-nest/ui/resizable';\r\nimport type { XBoolean, XNumber, XEffect, XTemplate, XStatus } from '@ng-nest/ui/core';\r\n\r\n/**\r\n * Alert\r\n * @selector x-alert\r\n * @decorator component\r\n */\r\nexport const XAlertPrefix = 'x-alert';\r\nexport const X_ALERT_CONFIG_NAME = 'alert';\r\n\r\n/**\r\n * Alert Property\r\n */\r\n@Component({\r\n selector: `${XAlertPrefix}-property`, template: ''\r\n})\r\nexport class XAlertProperty extends XPropertyFunction(X_ALERT_CONFIG_NAME) {\r\n /**\r\n * @zh_CN 隐藏\r\n * @en_US Hide\r\n * @example\r\n *\r\n * ```html\r\n * <x-alert title=\"隐藏,看不见\" hide> </x-alert>\r\n * ```\r\n *\r\n */\r\n readonly hide = input<boolean, XBoolean>(false, { transform: XToBoolean });\r\n /**\r\n * @zh_CN 标题\r\n * @en_US Title\r\n * @example\r\n *\r\n * ```html\r\n * <x-alert title=\"Title\" > </x-alert>\r\n * ```\r\n *\r\n */\r\n readonly title = input<XTemplate>();\r\n /**\r\n * @zh_CN 内容\r\n * @en_US Content\r\n * @example\r\n *\r\n * ```html\r\n * <x-alert content=\"Content\" > </x-alert>\r\n * ```\r\n *\r\n */\r\n readonly content = input<XTemplate>();\r\n /**\r\n * @zh_CN 类型\r\n * @en_US Alert type\r\n * @example\r\n *\r\n * ```html\r\n * <x-alert type=\"success\" > </x-alert>\r\n * <x-alert type=\"info\" > </x-alert>\r\n * <x-alert type=\"warning\" > </x-alert>\r\n * <x-alert type=\"error\" > </x-alert>\r\n * <x-alert type=\"loading\" > </x-alert>\r\n * ```\r\n *\r\n */\r\n readonly type = input<XAlertType>('info');\r\n /**\r\n * @zh_CN 主题\r\n * @en_US Theme\r\n * @example\r\n *\r\n * ```html\r\n * <x-alert effect=\"light\" > </x-alert>\r\n * <x-alert effect=\"dark\" > </x-alert>\r\n * <x-alert effect=\"white\" > </x-alert>\r\n * ```\r\n *\r\n */\r\n readonly effect = input<XEffect>(this.config?.effect ?? 'light');\r\n /**\r\n * @zh_CN 隐藏关闭按钮\r\n * @en_US Hide close button\r\n * @example\r\n *\r\n * ```html\r\n * <x-alert title=\"no close button\" hideClose> </x-alert>\r\n * ```\r\n *\r\n */\r\n readonly hideClose = input<boolean, XBoolean>(this.config?.hideClose ?? false, { transform: XToBoolean });\r\n /**\r\n * @zh_CN 使用文本关闭按钮\r\n * @en_US Use the text to close button\r\n * @example\r\n *\r\n * ```html\r\n * <x-alert title=\"close button is text\" closeText=\"close\"> </x-alert>\r\n * ```\r\n *\r\n */\r\n readonly closeText = input<string>();\r\n /**\r\n * @zh_CN 显示图标\r\n * @en_US Show icon\r\n * @example\r\n *\r\n * ```html\r\n * <x-alert type=\"success\" showIcon> </x-alert>\r\n * <x-alert type=\"info\" showIcon> </x-alert>\r\n * <x-alert type=\"warning\" showIcon> </x-alert>\r\n * <x-alert type=\"error\" showIcon> </x-alert>\r\n * <x-alert type=\"loading\" showIcon> </x-alert>\r\n * ```\r\n *\r\n */\r\n readonly showIcon = input<boolean, XBoolean>(this.config?.showIcon ?? false, { transform: XToBoolean });\r\n /**\r\n * @zh_CN 禁用动画\r\n * @en_US Disable animation\r\n * @example\r\n *\r\n * ```html\r\n * <x-alert title=\"disabled animation\" disabledAnimation> </x-alert>\r\n * ```\r\n *\r\n */\r\n readonly disabledAnimation = input<boolean, XBoolean>(this.config?.disabledAnimation ?? false, {\r\n transform: XToBoolean\r\n });\r\n /**\r\n * @zh_CN 延迟关闭,默认 0 表示不关闭,ms\r\n * @en_US Delay close, the default value of 0 means do not close. ms\r\n * @example\r\n *\r\n * ```html\r\n * <x-alert title=\"duration close\" duration=\"1000\"> </x-alert>\r\n * ```\r\n *\r\n */\r\n readonly duration = input<number, XNumber>(this.config?.duration ?? 0, { transform: XToNumber });\r\n /**\r\n * @zh_CN 手动处理关闭事件\r\n * @en_US Manually handle close events\r\n * @example\r\n *\r\n * ```html\r\n * <x-alert title=\"manual close\" manual> </x-alert>\r\n * ```\r\n *\r\n */\r\n readonly manual = input<boolean, XBoolean>(false, { transform: XToBoolean });\r\n /**\r\n * @zh_CN 拖动提示框\r\n * @en_US Drag dialog\r\n * @example\r\n *\r\n * ```html\r\n * <x-alert title=\"draggable alert\" draggable> </x-alert>\r\n * ```\r\n *\r\n */\r\n readonly draggable = input<boolean, XBoolean>(this.config?.draggable ?? false, { transform: XToBoolean });\r\n /**\r\n * @zh_CN 调整提示框大小\r\n * @en_US Adjust the size of the box\r\n * @example\r\n *\r\n * ```html\r\n * <x-alert title=\"resizable alert\" resizable> </x-alert>\r\n * ```\r\n *\r\n */\r\n readonly resizable = input<boolean, XBoolean>(this.config?.resizable ?? false, { transform: XToBoolean });\r\n /**\r\n * @zh_CN 开启 resizable 调整大小,偏移屏幕左边\r\n * @en_US Open the resizable resize, offset screen left\r\n * @example\r\n *\r\n * ```html\r\n * <x-alert title=\"resizable alert\" resizable offsetLeft=\"100\"> </x-alert>\r\n * ```\r\n *\r\n */\r\n readonly offsetLeft = input<number, XNumber>(0, { transform: XToNumber });\r\n /**\r\n * @zh_CN 开启 resizable 调整大小,偏移屏幕顶部\r\n * @en_US Open the resizable resize, offset screen top\r\n * @example\r\n *\r\n * ```html\r\n * <x-alert title=\"resizable alert\" resizable offsetTop=\"100\"> </x-alert>\r\n * ```\r\n *\r\n */\r\n readonly offsetTop = input<number, XNumber>(0, { transform: XToNumber });\r\n /**\r\n * @zh_CN 最小宽度\r\n * @en_US Min width\r\n * @example\r\n *\r\n * ```html\r\n * <x-alert title=\"alert min-width\" minWidth=\"100\"> </x-alert>\r\n * ```\r\n *\r\n */\r\n readonly minWidth = input<string, XNumber>(this.config?.minWidth ?? '0', { transform: XToCssPixelValue });\r\n /**\r\n * @zh_CN 最小高度\r\n * @en_US Min height\r\n * @example\r\n *\r\n * ```html\r\n * <x-alert title=\"alert min-height\" minHeight=\"100\"> </x-alert>\r\n * ```\r\n *\r\n */\r\n readonly minHeight = input<string, XNumber>(this.config?.minHeight ?? '0', { transform: XToCssPixelValue });\r\n /**\r\n * @zh_CN 拖动范围限制,父节点选择器或者对象\r\n * @en_US Drag dialog\r\n * @example\r\n *\r\n * ```html\r\n * <div #element style=\"width:300px; height: 300px\">\r\n * <x-alert title=\"draggable boundary\" draggable [dragBoundary]=\"element\"> </x-alert>\r\n * </div>\r\n * ```\r\n *\r\n */\r\n readonly dragBoundary = input<string | ElementRef<HTMLElement> | HTMLElement>();\r\n /**\r\n * @zh_CN 设置投放容器外部的 CdkDrag 的位置。可用于为返回的用户恢复元素的位置\r\n * @en_US Set the location of the CDKDRAG outside the container. Can be used to recover elements for returned users\r\n * @example\r\n *\r\n * ```html\r\n * <x-alert title=\"draggable boundary\" draggable [dragFreeDragPosition]=\"{ x: 100, y: 100 }\"> </x-alert>\r\n * ```\r\n *\r\n */\r\n readonly dragFreeDragPosition = input<XAlertDragFreeDragPosition>();\r\n /**\r\n * @zh_CN 自定义操作\r\n * @en_US Custom operation\r\n * @example\r\n *\r\n * ```html\r\n * <x-alert title=\"operation template\" [operationTpl]=\"operationTpl\"> </x-alert>\r\n * <ng-template #operationTpl>\r\n * <x-button>Button</x-button>\r\n * </ng-template>\r\n * ```\r\n *\r\n */\r\n readonly operationTpl = input<XTemplate>();\r\n /**\r\n * @zh_CN 关闭的事件\r\n * @en_US Closed event\r\n * @example\r\n *\r\n * ```html\r\n * <x-alert title=\"operation template\" (close)=\"close()\"> </x-alert>\r\n * ```\r\n *\r\n * ```typescript\r\n * close() {\r\n * console.log(\"close\")\r\n * }\r\n * ```\r\n *\r\n */\r\n readonly close = output();\r\n /**\r\n * @zh_CN 拖动结束的事件\r\n * @en_US Drag end event\r\n * @example\r\n *\r\n * ```html\r\n * <x-alert title=\"draggable event\" draggable (dragEnded)=\"dragEnded($event)\"> </x-alert>\r\n * ```\r\n *\r\n * ```typescript\r\n * dragEnded(event: CdkDragEnd) {\r\n * console.log(event)\r\n * }\r\n * ```\r\n *\r\n */\r\n readonly dragEnded = output<CdkDragEnd>();\r\n /**\r\n * @zh_CN 改变尺寸事件\r\n * @en_US Change the size event\r\n * @example\r\n *\r\n * ```html\r\n * <x-alert title=\"resizable event\" resizable (resizing)=\"resizing($event)\"> </x-alert>\r\n * ```\r\n *\r\n * ```typescript\r\n * resizing(event: XResizableEvent) {\r\n * console.log(event)\r\n * }\r\n * ```\r\n *\r\n */\r\n readonly resizing = output<XResizableEvent>();\r\n}\r\n\r\n/**\r\n * Alert Option\r\n * @undocument true\r\n */\r\nexport interface XAlertOption {\r\n /**\r\n * 隐藏\r\n */\r\n hide?: boolean;\r\n /**\r\n * 标题\r\n */\r\n title?: XTemplate;\r\n /**\r\n * 内容\r\n */\r\n content?: XTemplate;\r\n /**\r\n * 类型\r\n */\r\n type?: XAlertType;\r\n /**\r\n * 主题\r\n */\r\n effect?: XEffect;\r\n /**\r\n * 隐藏关闭按钮\r\n */\r\n hideClose?: boolean;\r\n /**\r\n * 关闭按钮文字替换\r\n */\r\n closeText?: string;\r\n /**\r\n * 显示图标\r\n */\r\n showIcon?: boolean;\r\n /**\r\n * 禁用动画\r\n */\r\n disabledAnimation?: boolean;\r\n /**\r\n * 延迟关闭,默认 0 表示不关闭\r\n */\r\n duration?: number;\r\n /**\r\n * 手动处理关闭事件\r\n */\r\n manual?: boolean;\r\n /**\r\n * 拖动提示框\r\n */\r\n draggable?: boolean;\r\n /**\r\n * 调整提示框大小\r\n */\r\n resizable?: boolean;\r\n /**\r\n * 开启 resizable 调整大小,偏移屏幕左边\r\n */\r\n offsetLeft?: string;\r\n /**\r\n * 开启 resizable 调整大小,偏移屏幕顶部\r\n */\r\n offsetTop?: string;\r\n /**\r\n * 最小宽度\r\n */\r\n minWidth?: string;\r\n /**\r\n * 最小高度\r\n */\r\n minHeight?: string;\r\n}\r\n\r\n/**\r\n * @zh_CN 类型\r\n * @en_US Type\r\n */\r\nexport type XAlertType = XStatus;\r\n\r\n/**\r\n * @zh_CN 设置投放容器外部的 CdkDrag 的位置。可用于为返回的用户恢复元素的位置\r\n * @en_US Set the location of the CDKDRAG outside the container. Can be used to recover elements for returned users\r\n */\r\nexport type XAlertDragFreeDragPosition = { x: number; y: number };\r\n","import {\r\n Component,\r\n ViewEncapsulation,\r\n ChangeDetectionStrategy,\r\n inject,\r\n PLATFORM_ID,\r\n computed,\r\n signal,\r\n effect,\r\n DestroyRef\r\n} from '@angular/core';\r\nimport { XAlertPrefix, XAlertProperty } from './alert.property';\r\nimport { XFadeAnimation, XIsEmpty } from '@ng-nest/ui/core';\r\nimport { of, Subject, Subscription } from 'rxjs';\r\nimport { delay, takeUntil } from 'rxjs/operators';\r\nimport { XIconComponent } from '@ng-nest/ui/icon';\r\nimport { XOutletDirective } from '@ng-nest/ui/outlet';\r\nimport { XButtonComponent } from '@ng-nest/ui/button';\r\nimport { DragDropModule } from '@angular/cdk/drag-drop';\r\nimport { XResizableDirective } from '@ng-nest/ui/resizable';\r\nimport { NgClass, NgTemplateOutlet, isPlatformBrowser } from '@angular/common';\r\n\r\n@Component({\r\n selector: `${XAlertPrefix}`,\r\n imports: [\r\n NgClass,\r\n NgTemplateOutlet,\r\n DragDropModule,\r\n XIconComponent,\r\n XButtonComponent,\r\n XOutletDirective,\r\n XResizableDirective\r\n ],\r\n templateUrl: './alert.component.html',\r\n styleUrls: ['./alert.component.scss'],\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n animations: [XFadeAnimation]\r\n})\r\nexport class XAlertComponent extends XAlertProperty {\r\n styleHide = signal(false);\r\n classMap = computed(() => ({\r\n [`${XAlertPrefix}-${this.type()}`]: !XIsEmpty(this.type()),\r\n [`x-${this.effect()}`]: !XIsEmpty(this.effect()),\r\n [`${XAlertPrefix}-icon-medium`]: !XIsEmpty(this.title()) && !XIsEmpty(this.content()) && !XIsEmpty(this.showIcon()),\r\n [`${XAlertPrefix}-draggable`]: this.draggable()\r\n }));\r\n\r\n private unSubject = new Subject<void>();\r\n private durationSubscription?: Subscription;\r\n private isBrowser = isPlatformBrowser(inject(PLATFORM_ID));\r\n private destoryRef = inject(DestroyRef);\r\n private destory = signal(false);\r\n\r\n constructor() {\r\n super();\r\n effect(() => this.setDuration());\r\n this.destoryRef.onDestroy(() => {\r\n this.destory.set(true);\r\n this.unSubject.next();\r\n this.unSubject.complete();\r\n });\r\n }\r\n\r\n setDuration() {\r\n if (this.duration() && this.isBrowser) {\r\n this.durationSubscription?.unsubscribe();\r\n this.durationSubscription = of(true)\r\n .pipe(delay(this.duration()), takeUntil(this.unSubject))\r\n .subscribe(() => {\r\n this.onClose();\r\n });\r\n }\r\n }\r\n\r\n onClose() {\r\n if (this.manual()) {\r\n !this.destory() && this.close.emit();\r\n } else {\r\n this.styleHide.set(true);\r\n }\r\n }\r\n\r\n onCloseAnimationDone() {\r\n if (this.hide()) {\r\n !this.destory() && this.close.emit();\r\n }\r\n }\r\n}\r\n","@if (!styleHide() && !hide()) {\r\n <div\r\n class=\"x-alert\"\r\n [class.x-alert-has-close]=\"!hideClose()\"\r\n [class.x-alert-icon-content]=\"showIcon() && content()\"\r\n cdkDrag\r\n (cdkDragEnded)=\"dragEnded.emit($event)\"\r\n [cdkDragFreeDragPosition]=\"dragFreeDragPosition()!\"\r\n [cdkDragDisabled]=\"!draggable()\"\r\n [cdkDragBoundary]=\"dragBoundary()!\"\r\n [ngClass]=\"classMap()\"\r\n @x-fade-animation\r\n [@.disabled]=\"disabledAnimation()\"\r\n (@x-fade-animation.done)=\"onCloseAnimationDone()\"\r\n [xResizable]=\"resizable()!\"\r\n (resizing)=\"resizing.emit($event)\"\r\n [offsetLeft]=\"offsetLeft()\"\r\n [offsetTop]=\"offsetTop()\"\r\n [style.minWidth]=\"minWidth()\"\r\n [style.minHeight]=\"minHeight()\"\r\n >\r\n @if (showIcon()) {\r\n <ng-container *ngTemplateOutlet=\"iconTpl\"></ng-container>\r\n }\r\n <ng-template #iconTpl>\r\n @switch (type()) {\r\n @case ('success') {\r\n <x-icon class=\"x-alert-icon\" type=\"adf-check-circle\"></x-icon>\r\n }\r\n @case ('info') {\r\n <x-icon class=\"x-alert-icon\" type=\"adf-info-circle\"></x-icon>\r\n }\r\n @case ('warning') {\r\n <x-icon class=\"x-alert-icon\" type=\"adf-exclamation-circle\"></x-icon>\r\n }\r\n @case ('error') {\r\n <x-icon class=\"x-alert-icon\" type=\"adf-close-circle\"></x-icon>\r\n }\r\n @case ('loading') {\r\n <x-icon class=\"x-alert-icon\" type=\"fto-loader\" [spin]=\"true\"></x-icon>\r\n }\r\n }\r\n </ng-template>\r\n <div class=\"x-alert-inner\">\r\n <span class=\"x-alert-title\" cdkDragHandle [class.x-bold]=\"title() && content()\">\r\n <ng-container *xOutlet=\"title(); context: { $iconTpl: iconTpl }\">{{ title() }}</ng-container>\r\n </span>\r\n @if (content()) {\r\n <div class=\"x-alert-content\">\r\n <ng-container *xOutlet=\"content(); context: { $iconTpl: iconTpl }\">{{ content() }}</ng-container>\r\n </div>\r\n }\r\n <div class=\"x-alert-close\">\r\n <div class=\"x-alert-operation\" *xOutlet=\"operationTpl()\">{{ operationTpl() }}</div>\r\n @if (!hideClose()) {\r\n <x-button class=\"x-alert-operation-close\" size=\"small\" [icon]=\"!closeText() ? 'fto-x' : ''\" [type]=\"'text'\" (click)=\"onClose()\" closable>\r\n {{ closeText() }}\r\n </x-button>\r\n }\r\n </div>\r\n </div>\r\n </div>\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { XAlertComponent } from './alert.component';\r\n\r\n@NgModule({\r\n exports: [XAlertComponent],\r\n imports: [XAlertComponent]\r\n})\r\nexport class XAlertModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;AAMA;;;;AAIG;AACI,MAAM,YAAY,GAAG;AACrB,MAAM,mBAAmB,GAAG;AAEnC;;AAEG;MAIU,cAAe,SAAQ,iBAAiB,CAAC,mBAAmB,CAAC,CAAA;AAH1E,IAAA,WAAA,GAAA;;AAIE;;;;;;;;;AASG;AACM,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAoB,KAAK,wCAAI,SAAS,EAAE,UAAU,EAAA,CAAA,GAAA,CAAvB,EAAE,SAAS,EAAE,UAAU,EAAE,GAAC;AAC1E;;;;;;;;;AASG;QACM,IAAA,CAAA,KAAK,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,OAAA,EAAA,CAAA,GAAA,EAAA,CAAA,CAAa;AACnC;;;;;;;;;AASG;QACM,IAAA,CAAA,OAAO,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,SAAA,EAAA,CAAA,GAAA,EAAA,CAAA,CAAa;AACrC;;;;;;;;;;;;;AAaG;AACM,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAa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AAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;2FAEnB,eAAe,EAAA,UAAA,EAAA,CAAA;kBAjB3B,SAAS;+BACI,CAAA,EAAG,YAAY,EAAE,EAAA,OAAA,EAClB;wBACL,OAAO;wBACP,gBAAgB;wBAChB,cAAc;wBACd,cAAc;wBACd,gBAAgB;wBAChB,gBAAgB;wBAChB;qBACH,EAAA,aAAA,EAGc,iBAAiB,CAAC,IAAI,EAAA,eAAA,EACpB,uBAAuB,CAAC,MAAM,EAAA,UAAA,EACnC,CAAC,cAAc,CAAC,EAAA,QAAA,EAAA,2+EAAA,EAAA,MAAA,EAAA,CAAA,4lLAAA,CAAA,EAAA;;;ME9BnB,YAAY,CAAA;iIAAZ,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;kIAAZ,YAAY,EAAA,OAAA,EAAA,CAFb,eAAe,CAAA,EAAA,OAAA,EAAA,CADf,eAAe,CAAA,EAAA,CAAA,CAAA;AAGd,uBAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,YAAY,YAFb,eAAe,CAAA,EAAA,CAAA,CAAA;;2FAEd,YAAY,EAAA,UAAA,EAAA,CAAA;kBAJxB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,eAAe,CAAC;oBAC1B,OAAO,EAAE,CAAC,eAAe;AAC1B,iBAAA;;;ACND;;AAEG;;;;"}
@@ -33,7 +33,7 @@ class XAnchorProperty extends XPropertyFunction(X_ANCHOR_CONFIG_NAME) {
33
33
  * </div>
34
34
  * ```
35
35
  */
36
- this.scroll = input();
36
+ this.scroll = input(...(ngDevMode ? [undefined, { debugName: "scroll" }] : []));
37
37
  /**
38
38
  * @zh_CN 顶部距离
39
39
  * @en_US Top distance
@@ -46,7 +46,7 @@ class XAnchorProperty extends XPropertyFunction(X_ANCHOR_CONFIG_NAME) {
46
46
  * ```
47
47
  *
48
48
  */
49
- this.affixTop = input(this.config?.affixTop ?? '0', { transform: XToCssPixelValue });
49
+ this.affixTop = input(this.config?.affixTop ?? '0', ...(ngDevMode ? [{ debugName: "affixTop", transform: XToCssPixelValue }] : [{ transform: XToCssPixelValue }]));
50
50
  /**
51
51
  * @zh_CN 底部距离
52
52
  * @en_US Bottom distance
@@ -59,7 +59,7 @@ class XAnchorProperty extends XPropertyFunction(X_ANCHOR_CONFIG_NAME) {
59
59
  * ```
60
60
  *
61
61
  */
62
- this.affixBottom = input(this.config?.affixBottom ?? '0', { transform: XToCssPixelValue });
62
+ this.affixBottom = input(this.config?.affixBottom ?? '0', ...(ngDevMode ? [{ debugName: "affixBottom", transform: XToCssPixelValue }] : [{ transform: XToCssPixelValue }]));
63
63
  /**
64
64
  * @zh_CN 导航宽度
65
65
  * @en_US Navigation Width
@@ -72,7 +72,7 @@ class XAnchorProperty extends XPropertyFunction(X_ANCHOR_CONFIG_NAME) {
72
72
  * ```
73
73
  *
74
74
  */
75
- this.affixWidth = input(this.config?.affixWidth, { transform: XToCssPixelValue });
75
+ this.affixWidth = input(this.config?.affixWidth, ...(ngDevMode ? [{ debugName: "affixWidth", transform: XToCssPixelValue }] : [{ transform: XToCssPixelValue }]));
76
76
  /**
77
77
  * @zh_CN 导航相对内容位置
78
78
  * @en_US Navigation relative content position
@@ -85,7 +85,7 @@ class XAnchorProperty extends XPropertyFunction(X_ANCHOR_CONFIG_NAME) {
85
85
  * ```
86
86
  *
87
87
  */
88
- this.layout = input(this.config?.layout ?? 'right');
88
+ this.layout = input(this.config?.layout ?? 'right', ...(ngDevMode ? [{ debugName: "layout" }] : []));
89
89
  /**
90
90
  * @zh_CN 对齐方式
91
91
  * @en_US Alignment
@@ -98,12 +98,12 @@ class XAnchorProperty extends XPropertyFunction(X_ANCHOR_CONFIG_NAME) {
98
98
  * ```
99
99
  *
100
100
  */
101
- this.justify = input(this.config?.justify ?? 'start');
101
+ this.justify = input(this.config?.justify ?? 'start', ...(ngDevMode ? [{ debugName: "justify" }] : []));
102
102
  }
103
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XAnchorProperty, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
104
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.0.0", type: XAnchorProperty, isStandalone: true, selector: "x-anchor-property", inputs: { scroll: { classPropertyName: "scroll", publicName: "scroll", isSignal: true, isRequired: false, transformFunction: null }, affixTop: { classPropertyName: "affixTop", publicName: "affixTop", isSignal: true, isRequired: false, transformFunction: null }, affixBottom: { classPropertyName: "affixBottom", publicName: "affixBottom", isSignal: true, isRequired: false, transformFunction: null }, affixWidth: { classPropertyName: "affixWidth", publicName: "affixWidth", isSignal: true, isRequired: false, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null }, justify: { classPropertyName: "justify", publicName: "justify", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: '', isInline: true }); }
103
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XAnchorProperty, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
104
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.2.4", type: XAnchorProperty, isStandalone: true, selector: "x-anchor-property", inputs: { scroll: { classPropertyName: "scroll", publicName: "scroll", isSignal: true, isRequired: false, transformFunction: null }, affixTop: { classPropertyName: "affixTop", publicName: "affixTop", isSignal: true, isRequired: false, transformFunction: null }, affixBottom: { classPropertyName: "affixBottom", publicName: "affixBottom", isSignal: true, isRequired: false, transformFunction: null }, affixWidth: { classPropertyName: "affixWidth", publicName: "affixWidth", isSignal: true, isRequired: false, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null }, justify: { classPropertyName: "justify", publicName: "justify", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: '', isInline: true }); }
105
105
  }
106
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XAnchorProperty, decorators: [{
106
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XAnchorProperty, decorators: [{
107
107
  type: Component,
108
108
  args: [{
109
109
  selector: `${XAnchorPrefix}-property`, template: ''
@@ -119,10 +119,10 @@ const XAnchorInnerPrefix = 'x-anchor-inner';
119
119
  * Anchor inner Property
120
120
  */
121
121
  class XAnchorInnerProperty {
122
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XAnchorInnerProperty, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
123
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.0", type: XAnchorInnerProperty, isStandalone: true, selector: "x-anchor-inner-property", ngImport: i0, template: '', isInline: true }); }
122
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XAnchorInnerProperty, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
123
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.4", type: XAnchorInnerProperty, isStandalone: true, selector: "x-anchor-inner-property", ngImport: i0, template: '', isInline: true }); }
124
124
  }
125
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XAnchorInnerProperty, decorators: [{
125
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XAnchorInnerProperty, decorators: [{
126
126
  type: Component,
127
127
  args: [{
128
128
  selector: `${XAnchorInnerPrefix}-property`, template: ''
@@ -134,9 +134,9 @@ class XAnchorComponent extends XAnchorProperty {
134
134
  super(...arguments);
135
135
  this.anchor = viewChild.required('anchor', { read: (ElementRef) });
136
136
  this.content = viewChild.required('content', { read: (ElementRef) });
137
- this.hElements = signal(null);
138
- this.sliderData = signal([]);
139
- this.activatedIndex = signal(0);
137
+ this.hElements = signal(null, ...(ngDevMode ? [{ debugName: "hElements" }] : []));
138
+ this.sliderData = signal([], ...(ngDevMode ? [{ debugName: "sliderData" }] : []));
139
+ this.activatedIndex = signal(0, ...(ngDevMode ? [{ debugName: "activatedIndex" }] : []));
140
140
  this.document = inject(DOCUMENT);
141
141
  this.contentChange = new Subject();
142
142
  this.scrollElement = computed(() => {
@@ -145,7 +145,7 @@ class XAnchorComponent extends XAnchorProperty {
145
145
  scroll = this.document.documentElement;
146
146
  }
147
147
  return scroll;
148
- });
148
+ }, ...(ngDevMode ? [{ debugName: "scrollElement" }] : []));
149
149
  this.sliderHeight = computed(() => {
150
150
  if (XIsEmpty(this.sliderData())) {
151
151
  return 0;
@@ -164,16 +164,16 @@ class XAnchorComponent extends XAnchorProperty {
164
164
  XToCssPx(this.affixTop(), this.fontSize()) -
165
165
  XToCssPx(this.affixBottom(), this.fontSize()));
166
166
  }
167
- });
167
+ }, ...(ngDevMode ? [{ debugName: "sliderHeight" }] : []));
168
168
  this.classMap = computed(() => ({
169
169
  [`${XAnchorPrefix}-${this.layout()}`]: !XIsEmpty(this.layout())
170
- }));
171
- this.scrolling = signal(false);
172
- this.fontSize = computed(() => parseFloat(XComputedStyle(this.document.documentElement, 'font-size')));
170
+ }), ...(ngDevMode ? [{ debugName: "classMap" }] : []));
171
+ this.scrolling = signal(false, ...(ngDevMode ? [{ debugName: "scrolling" }] : []));
172
+ this.fontSize = computed(() => parseFloat(XComputedStyle(this.document.documentElement, 'font-size')), ...(ngDevMode ? [{ debugName: "fontSize" }] : []));
173
173
  this.unSubject = new Subject();
174
174
  this.renderer = inject(Renderer2);
175
175
  this.elementRef = inject(ElementRef);
176
- this.scrollChanged = signal(null);
176
+ this.scrollChanged = signal(null, ...(ngDevMode ? [{ debugName: "scrollChanged" }] : []));
177
177
  }
178
178
  ngAfterContentChecked() {
179
179
  this.contentChange.next(this.elementRef.nativeElement.innerText);
@@ -276,19 +276,19 @@ class XAnchorComponent extends XAnchorProperty {
276
276
  }
277
277
  });
278
278
  }
279
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XAnchorComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
280
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.0.0", type: XAnchorComponent, isStandalone: true, selector: "x-anchor", viewQueries: [{ propertyName: "anchor", first: true, predicate: ["anchor"], descendants: true, read: ElementRef, isSignal: true }, { propertyName: "content", first: true, predicate: ["content"], descendants: true, read: ElementRef, isSignal: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div #anchor class=\"x-anchor\" [ngClass]=\"classMap()\">\r\n <div #content class=\"x-anchor-content\">\r\n <ng-content></ng-content>\r\n </div>\r\n <x-affix class=\"x-anchor-affix\" [top]=\"affixTop()\">\r\n <div class=\"x-anchor-slider\" [style.height.px]=\"sliderHeight()\" [style.width]=\"affixWidth()\">\r\n <x-slider\r\n [data]=\"sliderData()\"\r\n layout=\"column\"\r\n [(activatedIndex)]=\"activatedIndex\"\r\n [nodeJustify]=\"justify()\"\r\n [nodeTpl]=\"sliderNodeTpl\"\r\n [showAnchor]=\"true\"\r\n (indexChange)=\"activatedChange($event)\"\r\n ></x-slider>\r\n </div>\r\n </x-affix>\r\n</div>\r\n\r\n<ng-template #sliderNodeTpl let-node=\"$node\">\r\n <span [style.padding-left.rem]=\"node.left - 1\">{{ node.label }}</span>\r\n</ng-template>\r\n", styles: [".x-anchor{margin:0;padding:0}.x-anchor{display:flex}.x-anchor-content{flex:1}.x-anchor-affix{display:block}.x-anchor-slider{float:left}.x-anchor-slider:hover{overflow-y:auto}.x-anchor-slider .x-slider{overflow:hidden}.x-anchor-right{flex-direction:row}.x-anchor-right .x-anchor-slider .x-slider-column>.x-slider-scroll{overflow-y:auto}.x-anchor-left{flex-direction:row-reverse}.x-anchor-left .x-anchor-slider .x-slider-column>.x-slider-scroll{overflow-y:auto}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: XAffixComponent, selector: "x-affix" }, { kind: "component", type: XSliderComponent, selector: "x-slider" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
279
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XAnchorComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
280
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.2.4", type: XAnchorComponent, isStandalone: true, selector: "x-anchor", viewQueries: [{ propertyName: "anchor", first: true, predicate: ["anchor"], descendants: true, read: ElementRef, isSignal: true }, { propertyName: "content", first: true, predicate: ["content"], descendants: true, read: ElementRef, isSignal: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div #anchor class=\"x-anchor\" [ngClass]=\"classMap()\">\r\n <div #content class=\"x-anchor-content\">\r\n <ng-content></ng-content>\r\n </div>\r\n <x-affix class=\"x-anchor-affix\" [top]=\"affixTop()\">\r\n <div class=\"x-anchor-slider\" [style.height.px]=\"sliderHeight()\" [style.width]=\"affixWidth()\">\r\n <x-slider\r\n [data]=\"sliderData()\"\r\n layout=\"column\"\r\n [(activatedIndex)]=\"activatedIndex\"\r\n [nodeJustify]=\"justify()\"\r\n [nodeTpl]=\"sliderNodeTpl\"\r\n [showAnchor]=\"true\"\r\n (indexChange)=\"activatedChange($event)\"\r\n ></x-slider>\r\n </div>\r\n </x-affix>\r\n</div>\r\n\r\n<ng-template #sliderNodeTpl let-node=\"$node\">\r\n <span [style.padding-left.rem]=\"node.left - 1\">{{ node.label }}</span>\r\n</ng-template>\r\n", styles: [".x-anchor{margin:0;padding:0}.x-anchor{display:flex}.x-anchor-content{flex:1}.x-anchor-affix{display:block}.x-anchor-slider{float:left}.x-anchor-slider:hover{overflow-y:auto}.x-anchor-slider .x-slider{overflow:hidden}.x-anchor-right{flex-direction:row}.x-anchor-right .x-anchor-slider .x-slider-column>.x-slider-scroll{overflow-y:auto}.x-anchor-left{flex-direction:row-reverse}.x-anchor-left .x-anchor-slider .x-slider-column>.x-slider-scroll{overflow-y:auto}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: XAffixComponent, selector: "x-affix" }, { kind: "component", type: XSliderComponent, selector: "x-slider" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
281
281
  }
282
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XAnchorComponent, decorators: [{
282
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XAnchorComponent, decorators: [{
283
283
  type: Component,
284
284
  args: [{ selector: `${XAnchorPrefix}`, imports: [NgClass, XAffixComponent, XSliderComponent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div #anchor class=\"x-anchor\" [ngClass]=\"classMap()\">\r\n <div #content class=\"x-anchor-content\">\r\n <ng-content></ng-content>\r\n </div>\r\n <x-affix class=\"x-anchor-affix\" [top]=\"affixTop()\">\r\n <div class=\"x-anchor-slider\" [style.height.px]=\"sliderHeight()\" [style.width]=\"affixWidth()\">\r\n <x-slider\r\n [data]=\"sliderData()\"\r\n layout=\"column\"\r\n [(activatedIndex)]=\"activatedIndex\"\r\n [nodeJustify]=\"justify()\"\r\n [nodeTpl]=\"sliderNodeTpl\"\r\n [showAnchor]=\"true\"\r\n (indexChange)=\"activatedChange($event)\"\r\n ></x-slider>\r\n </div>\r\n </x-affix>\r\n</div>\r\n\r\n<ng-template #sliderNodeTpl let-node=\"$node\">\r\n <span [style.padding-left.rem]=\"node.left - 1\">{{ node.label }}</span>\r\n</ng-template>\r\n", styles: [".x-anchor{margin:0;padding:0}.x-anchor{display:flex}.x-anchor-content{flex:1}.x-anchor-affix{display:block}.x-anchor-slider{float:left}.x-anchor-slider:hover{overflow-y:auto}.x-anchor-slider .x-slider{overflow:hidden}.x-anchor-right{flex-direction:row}.x-anchor-right .x-anchor-slider .x-slider-column>.x-slider-scroll{overflow-y:auto}.x-anchor-left{flex-direction:row-reverse}.x-anchor-left .x-anchor-slider .x-slider-column>.x-slider-scroll{overflow-y:auto}\n"] }]
285
285
  }] });
286
286
 
287
287
  class XAnchorInnerComponent extends XAnchorInnerProperty {
288
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XAnchorInnerComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
289
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.0", type: XAnchorInnerComponent, isStandalone: true, selector: "x-anchor-inner", usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
288
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XAnchorInnerComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
289
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.4", type: XAnchorInnerComponent, isStandalone: true, selector: "x-anchor-inner", usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
290
290
  }
291
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XAnchorInnerComponent, decorators: [{
291
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XAnchorInnerComponent, decorators: [{
292
292
  type: Component,
293
293
  args: [{
294
294
  selector: `${XAnchorInnerPrefix}`,
@@ -299,11 +299,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImpor
299
299
  }] });
300
300
 
301
301
  class XAnchorModule {
302
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XAnchorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
303
- /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0", ngImport: i0, type: XAnchorModule, imports: [XAnchorComponent, XAnchorInnerComponent], exports: [XAnchorComponent, XAnchorInnerComponent] }); }
304
- /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XAnchorModule, imports: [XAnchorComponent] }); }
302
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XAnchorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
303
+ /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.4", ngImport: i0, type: XAnchorModule, imports: [XAnchorComponent, XAnchorInnerComponent], exports: [XAnchorComponent, XAnchorInnerComponent] }); }
304
+ /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XAnchorModule, imports: [XAnchorComponent] }); }
305
305
  }
306
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: XAnchorModule, decorators: [{
306
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XAnchorModule, decorators: [{
307
307
  type: NgModule,
308
308
  args: [{
309
309
  exports: [XAnchorComponent, XAnchorInnerComponent],