@ng-nest/ui 16.0.11 → 17.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (494) hide show
  1. package/README.md +1 -1
  2. package/date-picker/date-range.component.d.ts +2 -2
  3. package/dialog/dialog.property.d.ts +1 -1
  4. package/drawer/drawer.property.d.ts +1 -1
  5. package/esm2022/affix/affix.component.mjs +6 -7
  6. package/esm2022/affix/affix.module.mjs +6 -7
  7. package/esm2022/affix/affix.property.mjs +5 -6
  8. package/esm2022/alert/alert.component.mjs +6 -7
  9. package/esm2022/alert/alert.module.mjs +6 -7
  10. package/esm2022/alert/alert.property.mjs +5 -6
  11. package/esm2022/anchor/anchor-inner.component.mjs +5 -6
  12. package/esm2022/anchor/anchor.component.mjs +6 -7
  13. package/esm2022/anchor/anchor.module.mjs +6 -7
  14. package/esm2022/anchor/anchor.property.mjs +9 -11
  15. package/esm2022/api/api.component.mjs +6 -7
  16. package/esm2022/api/api.module.mjs +6 -7
  17. package/esm2022/auto-complete/auto-complete-portal.component.mjs +6 -7
  18. package/esm2022/auto-complete/auto-complete.component.mjs +6 -7
  19. package/esm2022/auto-complete/auto-complete.module.mjs +6 -7
  20. package/esm2022/auto-complete/auto-complete.property.mjs +5 -6
  21. package/esm2022/avatar/avatar-group.component.mjs +6 -7
  22. package/esm2022/avatar/avatar.component.mjs +6 -7
  23. package/esm2022/avatar/avatar.module.mjs +6 -7
  24. package/esm2022/avatar/avatar.property.mjs +9 -11
  25. package/esm2022/back-top/back-top.component.mjs +6 -7
  26. package/esm2022/back-top/back-top.module.mjs +6 -7
  27. package/esm2022/back-top/back-top.property.mjs +5 -6
  28. package/esm2022/badge/badge.component.mjs +6 -7
  29. package/esm2022/badge/badge.module.mjs +6 -7
  30. package/esm2022/badge/badge.property.mjs +5 -6
  31. package/esm2022/base-form/base-form.component.mjs +5 -6
  32. package/esm2022/base-form/base-form.module.mjs +6 -7
  33. package/esm2022/base-form/base-form.property.mjs +5 -6
  34. package/esm2022/border/border.component.mjs +6 -7
  35. package/esm2022/border/border.module.mjs +6 -7
  36. package/esm2022/button/button.component.mjs +7 -8
  37. package/esm2022/button/button.module.mjs +6 -7
  38. package/esm2022/button/button.property.mjs +9 -11
  39. package/esm2022/button/buttons.component.mjs +6 -7
  40. package/esm2022/calendar/calendar.component.mjs +7 -8
  41. package/esm2022/calendar/calendar.module.mjs +6 -7
  42. package/esm2022/calendar/calendar.property.mjs +5 -6
  43. package/esm2022/card/card.component.mjs +6 -7
  44. package/esm2022/card/card.module.mjs +6 -7
  45. package/esm2022/card/card.property.mjs +5 -6
  46. package/esm2022/carousel/carousel-panel.component.mjs +7 -8
  47. package/esm2022/carousel/carousel.component.mjs +6 -7
  48. package/esm2022/carousel/carousel.module.mjs +6 -7
  49. package/esm2022/carousel/carousel.property.mjs +9 -11
  50. package/esm2022/cascade/cascade-portal.component.mjs +6 -7
  51. package/esm2022/cascade/cascade.component.mjs +6 -7
  52. package/esm2022/cascade/cascade.module.mjs +6 -7
  53. package/esm2022/cascade/cascade.property.mjs +5 -6
  54. package/esm2022/checkbox/checkbox.component.mjs +6 -7
  55. package/esm2022/checkbox/checkbox.module.mjs +6 -7
  56. package/esm2022/checkbox/checkbox.property.mjs +5 -6
  57. package/esm2022/collapse/collapse-panel.component.mjs +7 -8
  58. package/esm2022/collapse/collapse.component.mjs +6 -7
  59. package/esm2022/collapse/collapse.module.mjs +6 -7
  60. package/esm2022/collapse/collapse.property.mjs +9 -11
  61. package/esm2022/color/color.component.mjs +6 -7
  62. package/esm2022/color/color.module.mjs +6 -7
  63. package/esm2022/color/color.property.mjs +5 -6
  64. package/esm2022/color-picker/color-picker-portal.component.mjs +7 -8
  65. package/esm2022/color-picker/color-picker.component.mjs +6 -7
  66. package/esm2022/color-picker/color-picker.module.mjs +6 -7
  67. package/esm2022/color-picker/color-picker.property.mjs +5 -6
  68. package/esm2022/comment/comment-reply.component.mjs +6 -7
  69. package/esm2022/comment/comment.component.mjs +7 -8
  70. package/esm2022/comment/comment.module.mjs +6 -7
  71. package/esm2022/comment/comment.property.mjs +9 -11
  72. package/esm2022/container/aside.component.mjs +6 -7
  73. package/esm2022/container/container.component.mjs +6 -7
  74. package/esm2022/container/container.module.mjs +6 -7
  75. package/esm2022/container/container.property.mjs +17 -21
  76. package/esm2022/container/footer.component.mjs +7 -8
  77. package/esm2022/container/header.component.mjs +7 -8
  78. package/esm2022/container/main.component.mjs +6 -7
  79. package/esm2022/core/config/config.service.mjs +6 -7
  80. package/esm2022/core/services/http.service.mjs +6 -7
  81. package/esm2022/core/services/preloading-strategy.service.mjs +5 -6
  82. package/esm2022/core/services/reuse-strategy.service.mjs +2 -3
  83. package/esm2022/core/services/storage.service.mjs +6 -7
  84. package/esm2022/core/theme/theme.service.mjs +6 -7
  85. package/esm2022/crumb/crumb.component.mjs +7 -8
  86. package/esm2022/crumb/crumb.module.mjs +6 -7
  87. package/esm2022/crumb/crumb.property.mjs +5 -6
  88. package/esm2022/date-picker/date-picker-portal.component.mjs +6 -7
  89. package/esm2022/date-picker/date-picker.component.mjs +6 -7
  90. package/esm2022/date-picker/date-picker.module.mjs +6 -7
  91. package/esm2022/date-picker/date-picker.property.mjs +25 -31
  92. package/esm2022/date-picker/date-quarter.pipe.mjs +6 -7
  93. package/esm2022/date-picker/date-range-portal.component.mjs +6 -7
  94. package/esm2022/date-picker/date-range.component.mjs +6 -7
  95. package/esm2022/date-picker/picker-date.component.mjs +6 -7
  96. package/esm2022/date-picker/picker-month.component.mjs +6 -7
  97. package/esm2022/date-picker/picker-quarter.component.mjs +6 -7
  98. package/esm2022/date-picker/picker-year.component.mjs +6 -7
  99. package/esm2022/description/description-item.component.mjs +6 -7
  100. package/esm2022/description/description.component.mjs +6 -7
  101. package/esm2022/description/description.module.mjs +6 -7
  102. package/esm2022/description/description.property.mjs +9 -11
  103. package/esm2022/dialog/dialog-container.component.mjs +6 -7
  104. package/esm2022/dialog/dialog-portal.component.mjs +6 -7
  105. package/esm2022/dialog/dialog-portal.directives.mjs +31 -37
  106. package/esm2022/dialog/dialog.component.mjs +7 -8
  107. package/esm2022/dialog/dialog.module.mjs +6 -7
  108. package/esm2022/dialog/dialog.property.mjs +9 -11
  109. package/esm2022/dialog/dialog.service.mjs +6 -7
  110. package/esm2022/doc/doc.component.mjs +6 -7
  111. package/esm2022/doc/doc.module.mjs +6 -7
  112. package/esm2022/drag/drag.directive.mjs +6 -7
  113. package/esm2022/drag/drag.module.mjs +6 -7
  114. package/esm2022/drag/drag.property.mjs +5 -6
  115. package/esm2022/drawer/drawer-container.component.mjs +6 -7
  116. package/esm2022/drawer/drawer-portal.component.mjs +6 -7
  117. package/esm2022/drawer/drawer-portal.directives.mjs +15 -18
  118. package/esm2022/drawer/drawer.component.mjs +7 -8
  119. package/esm2022/drawer/drawer.module.mjs +6 -7
  120. package/esm2022/drawer/drawer.property.mjs +9 -11
  121. package/esm2022/drawer/drawer.service.mjs +6 -7
  122. package/esm2022/dropdown/dropdown-portal.component.mjs +6 -7
  123. package/esm2022/dropdown/dropdown.component.mjs +6 -7
  124. package/esm2022/dropdown/dropdown.module.mjs +6 -7
  125. package/esm2022/dropdown/dropdown.property.mjs +5 -6
  126. package/esm2022/empty/empty.component.mjs +6 -7
  127. package/esm2022/empty/empty.module.mjs +6 -7
  128. package/esm2022/empty/empty.property.mjs +5 -6
  129. package/esm2022/examples/examples.component.mjs +6 -7
  130. package/esm2022/examples/examples.module.mjs +6 -7
  131. package/esm2022/find/find.component.mjs +6 -7
  132. package/esm2022/find/find.module.mjs +6 -7
  133. package/esm2022/find/find.property.mjs +5 -6
  134. package/esm2022/form/control.component.mjs +6 -7
  135. package/esm2022/form/form.component.mjs +6 -7
  136. package/esm2022/form/form.module.mjs +6 -7
  137. package/esm2022/form/form.property.mjs +9 -11
  138. package/esm2022/highlight/highlight.component.mjs +7 -8
  139. package/esm2022/highlight/highlight.module.mjs +6 -7
  140. package/esm2022/highlight/highlight.property.mjs +5 -6
  141. package/esm2022/i18n/i18n.directive.mjs +6 -7
  142. package/esm2022/i18n/i18n.module.mjs +6 -7
  143. package/esm2022/i18n/i18n.pipe.mjs +6 -7
  144. package/esm2022/i18n/i18n.service.mjs +7 -8
  145. package/esm2022/icon/icon.component.mjs +6 -7
  146. package/esm2022/icon/icon.module.mjs +6 -7
  147. package/esm2022/icon/icon.property.mjs +5 -6
  148. package/esm2022/icon/icon.service.mjs +7 -8
  149. package/esm2022/image/image-group.component.mjs +5 -6
  150. package/esm2022/image/image-preview.component.mjs +7 -8
  151. package/esm2022/image/image.component.mjs +7 -8
  152. package/esm2022/image/image.module.mjs +6 -7
  153. package/esm2022/image/image.property.mjs +9 -11
  154. package/esm2022/inner/inner.component.mjs +6 -7
  155. package/esm2022/inner/inner.module.mjs +6 -7
  156. package/esm2022/inner/inner.property.mjs +5 -6
  157. package/esm2022/input/input-group.component.mjs +6 -7
  158. package/esm2022/input/input.component.mjs +7 -8
  159. package/esm2022/input/input.module.mjs +6 -7
  160. package/esm2022/input/input.property.mjs +9 -11
  161. package/esm2022/input-number/input-number.component.mjs +6 -7
  162. package/esm2022/input-number/input-number.module.mjs +6 -7
  163. package/esm2022/input-number/input-number.property.mjs +5 -6
  164. package/esm2022/keyword/keyword.directive.mjs +6 -7
  165. package/esm2022/keyword/keyword.module.mjs +6 -7
  166. package/esm2022/keyword/keyword.property.mjs +5 -6
  167. package/esm2022/layout/col.component.mjs +7 -8
  168. package/esm2022/layout/layout.module.mjs +6 -7
  169. package/esm2022/layout/layout.property.mjs +9 -11
  170. package/esm2022/layout/row.component.mjs +6 -7
  171. package/esm2022/link/link.component.mjs +6 -7
  172. package/esm2022/link/link.module.mjs +6 -7
  173. package/esm2022/link/link.property.mjs +5 -6
  174. package/esm2022/list/list-drop-group.directive.mjs +5 -6
  175. package/esm2022/list/list-option.component.mjs +6 -7
  176. package/esm2022/list/list.component.mjs +7 -8
  177. package/esm2022/list/list.module.mjs +6 -7
  178. package/esm2022/list/list.property.mjs +9 -11
  179. package/esm2022/loading/loading.component.mjs +6 -7
  180. package/esm2022/loading/loading.module.mjs +6 -7
  181. package/esm2022/loading/loading.property.mjs +5 -6
  182. package/esm2022/menu/menu-node.component.mjs +6 -7
  183. package/esm2022/menu/menu.component.mjs +6 -7
  184. package/esm2022/menu/menu.module.mjs +6 -7
  185. package/esm2022/menu/menu.property.mjs +9 -11
  186. package/esm2022/message/message.component.mjs +6 -7
  187. package/esm2022/message/message.module.mjs +6 -7
  188. package/esm2022/message/message.service.mjs +6 -7
  189. package/esm2022/message-box/message-box.component.mjs +6 -7
  190. package/esm2022/message-box/message-box.module.mjs +6 -7
  191. package/esm2022/message-box/message-box.service.mjs +6 -7
  192. package/esm2022/notification/notification.component.mjs +6 -7
  193. package/esm2022/notification/notification.module.mjs +6 -7
  194. package/esm2022/notification/notification.service.mjs +6 -7
  195. package/esm2022/outlet/outlet.directive.mjs +6 -7
  196. package/esm2022/outlet/outlet.module.mjs +6 -7
  197. package/esm2022/page-header/page-header.component.mjs +6 -7
  198. package/esm2022/page-header/page-header.module.mjs +6 -7
  199. package/esm2022/page-header/page-header.property.mjs +5 -6
  200. package/esm2022/pagination/pagination.component.mjs +6 -7
  201. package/esm2022/pagination/pagination.module.mjs +6 -7
  202. package/esm2022/pagination/pagination.property.mjs +5 -6
  203. package/esm2022/pattern/pattern.component.mjs +6 -7
  204. package/esm2022/pattern/pattern.module.mjs +6 -7
  205. package/esm2022/popconfirm/popconfirm.component.mjs +6 -7
  206. package/esm2022/popconfirm/popconfirm.module.mjs +6 -7
  207. package/esm2022/popconfirm/popconfirm.property.mjs +5 -6
  208. package/esm2022/popover/popover-portal.component.mjs +6 -7
  209. package/esm2022/popover/popover.directive.mjs +6 -7
  210. package/esm2022/popover/popover.module.mjs +6 -7
  211. package/esm2022/popover/popover.property.mjs +5 -6
  212. package/esm2022/portal/portal.module.mjs +6 -7
  213. package/esm2022/portal/portal.service.mjs +6 -7
  214. package/esm2022/progress/progress.component.mjs +6 -7
  215. package/esm2022/progress/progress.module.mjs +6 -7
  216. package/esm2022/progress/progress.property.mjs +5 -6
  217. package/esm2022/radio/radio.component.mjs +6 -7
  218. package/esm2022/radio/radio.module.mjs +6 -7
  219. package/esm2022/radio/radio.property.mjs +5 -6
  220. package/esm2022/rate/rate.component.mjs +6 -7
  221. package/esm2022/rate/rate.module.mjs +6 -7
  222. package/esm2022/rate/rate.property.mjs +5 -6
  223. package/esm2022/resizable/resizable.directive.mjs +6 -7
  224. package/esm2022/resizable/resizable.module.mjs +6 -7
  225. package/esm2022/resizable/resizable.property.mjs +5 -6
  226. package/esm2022/result/result.component.mjs +6 -7
  227. package/esm2022/result/result.module.mjs +6 -7
  228. package/esm2022/result/result.property.mjs +5 -6
  229. package/esm2022/ripple/ripple.directive.mjs +6 -7
  230. package/esm2022/ripple/ripple.module.mjs +6 -7
  231. package/esm2022/ripple/ripple.property.mjs +5 -6
  232. package/esm2022/select/select-portal.component.mjs +6 -7
  233. package/esm2022/select/select.component.mjs +6 -7
  234. package/esm2022/select/select.module.mjs +6 -7
  235. package/esm2022/select/select.property.mjs +5 -6
  236. package/esm2022/skeleton/skeleton.component.mjs +6 -7
  237. package/esm2022/skeleton/skeleton.module.mjs +6 -7
  238. package/esm2022/skeleton/skeleton.property.mjs +5 -6
  239. package/esm2022/slider/slider.component.mjs +7 -8
  240. package/esm2022/slider/slider.module.mjs +6 -7
  241. package/esm2022/slider/slider.property.mjs +5 -6
  242. package/esm2022/slider-select/slider-select.component.mjs +6 -7
  243. package/esm2022/slider-select/slider-select.module.mjs +6 -7
  244. package/esm2022/slider-select/slider-select.property.mjs +5 -6
  245. package/esm2022/statistic/countdown.component.mjs +6 -7
  246. package/esm2022/statistic/statistic.component.mjs +6 -7
  247. package/esm2022/statistic/statistic.module.mjs +6 -7
  248. package/esm2022/statistic/statistic.property.mjs +9 -11
  249. package/esm2022/steps/steps.component.mjs +6 -7
  250. package/esm2022/steps/steps.module.mjs +6 -7
  251. package/esm2022/steps/steps.property.mjs +5 -6
  252. package/esm2022/switch/switch.component.mjs +6 -7
  253. package/esm2022/switch/switch.module.mjs +6 -7
  254. package/esm2022/switch/switch.property.mjs +5 -6
  255. package/esm2022/table/table-body.component.mjs +6 -7
  256. package/esm2022/table/table-foot.component.mjs +6 -7
  257. package/esm2022/table/table-head.component.mjs +6 -7
  258. package/esm2022/table/table.component.mjs +6 -7
  259. package/esm2022/table/table.module.mjs +6 -7
  260. package/esm2022/table/table.property.mjs +17 -21
  261. package/esm2022/tabs/tab-content.component.mjs +6 -7
  262. package/esm2022/tabs/tab-link.directive.mjs +13 -15
  263. package/esm2022/tabs/tab.component.mjs +6 -7
  264. package/esm2022/tabs/tabs.component.mjs +7 -8
  265. package/esm2022/tabs/tabs.module.mjs +6 -7
  266. package/esm2022/tabs/tabs.property.mjs +9 -11
  267. package/esm2022/tag/tag.component.mjs +6 -7
  268. package/esm2022/tag/tag.module.mjs +6 -7
  269. package/esm2022/tag/tag.property.mjs +5 -6
  270. package/esm2022/text-retract/text-retract.component.mjs +6 -7
  271. package/esm2022/text-retract/text-retract.module.mjs +6 -7
  272. package/esm2022/text-retract/text-retract.property.mjs +5 -6
  273. package/esm2022/textarea/textarea.component.mjs +6 -7
  274. package/esm2022/textarea/textarea.module.mjs +6 -7
  275. package/esm2022/textarea/textarea.property.mjs +5 -6
  276. package/esm2022/theme/theme.component.mjs +6 -7
  277. package/esm2022/theme/theme.module.mjs +6 -7
  278. package/esm2022/theme/theme.property.mjs +5 -6
  279. package/esm2022/time-ago/time-ago.module.mjs +6 -7
  280. package/esm2022/time-ago/time-ago.pipe.mjs +6 -7
  281. package/esm2022/time-picker/time-picker-frame.component.mjs +6 -7
  282. package/esm2022/time-picker/time-picker-portal.component.mjs +6 -7
  283. package/esm2022/time-picker/time-picker.component.mjs +6 -7
  284. package/esm2022/time-picker/time-picker.module.mjs +6 -7
  285. package/esm2022/time-picker/time-picker.property.mjs +5 -6
  286. package/esm2022/time-range/time-range.module.mjs +6 -7
  287. package/esm2022/time-range/time-range.pipe.mjs +5 -6
  288. package/esm2022/timeline/timeline.component.mjs +7 -8
  289. package/esm2022/timeline/timeline.module.mjs +6 -7
  290. package/esm2022/timeline/timeline.property.mjs +5 -6
  291. package/esm2022/tooltip/tooltip-portal.component.mjs +6 -7
  292. package/esm2022/tooltip/tooltip.directive.mjs +6 -7
  293. package/esm2022/tooltip/tooltip.module.mjs +6 -7
  294. package/esm2022/tooltip/tooltip.property.mjs +5 -6
  295. package/esm2022/transfer/transfer.component.mjs +7 -8
  296. package/esm2022/transfer/transfer.module.mjs +6 -7
  297. package/esm2022/transfer/transfer.property.mjs +5 -6
  298. package/esm2022/tree/tree-node.component.mjs +6 -7
  299. package/esm2022/tree/tree.component.mjs +30 -14
  300. package/esm2022/tree/tree.module.mjs +6 -7
  301. package/esm2022/tree/tree.property.mjs +9 -11
  302. package/esm2022/tree/tree.service.mjs +5 -6
  303. package/esm2022/tree-file/tree-file.component.mjs +7 -8
  304. package/esm2022/tree-file/tree-file.module.mjs +6 -7
  305. package/esm2022/tree-file/tree-file.property.mjs +5 -6
  306. package/esm2022/tree-select/tree-select-portal.component.mjs +6 -7
  307. package/esm2022/tree-select/tree-select.component.mjs +6 -7
  308. package/esm2022/tree-select/tree-select.module.mjs +6 -7
  309. package/esm2022/tree-select/tree-select.property.mjs +5 -6
  310. package/esm2022/typography/typography.component.mjs +6 -7
  311. package/esm2022/typography/typography.module.mjs +6 -7
  312. package/esm2022/typography/typography.property.mjs +5 -6
  313. package/esm2022/upload/upload-portal.component.mjs +6 -7
  314. package/esm2022/upload/upload.component.mjs +8 -9
  315. package/esm2022/upload/upload.module.mjs +6 -7
  316. package/esm2022/upload/upload.property.mjs +5 -6
  317. package/fesm2022/ng-nest-ui-affix.mjs +11 -11
  318. package/fesm2022/ng-nest-ui-affix.mjs.map +1 -1
  319. package/fesm2022/ng-nest-ui-alert.mjs +11 -11
  320. package/fesm2022/ng-nest-ui-alert.mjs.map +1 -1
  321. package/fesm2022/ng-nest-ui-anchor.mjs +17 -17
  322. package/fesm2022/ng-nest-ui-anchor.mjs.map +1 -1
  323. package/fesm2022/ng-nest-ui-api.mjs +8 -8
  324. package/fesm2022/ng-nest-ui-api.mjs.map +1 -1
  325. package/fesm2022/ng-nest-ui-auto-complete.mjs +15 -15
  326. package/fesm2022/ng-nest-ui-auto-complete.mjs.map +1 -1
  327. package/fesm2022/ng-nest-ui-avatar.mjs +18 -18
  328. package/fesm2022/ng-nest-ui-avatar.mjs.map +1 -1
  329. package/fesm2022/ng-nest-ui-back-top.mjs +12 -12
  330. package/fesm2022/ng-nest-ui-back-top.mjs.map +1 -1
  331. package/fesm2022/ng-nest-ui-badge.mjs +11 -11
  332. package/fesm2022/ng-nest-ui-badge.mjs.map +1 -1
  333. package/fesm2022/ng-nest-ui-base-form.mjs +11 -11
  334. package/fesm2022/ng-nest-ui-base-form.mjs.map +1 -1
  335. package/fesm2022/ng-nest-ui-border.mjs +8 -8
  336. package/fesm2022/ng-nest-ui-border.mjs.map +1 -1
  337. package/fesm2022/ng-nest-ui-button.mjs +20 -20
  338. package/fesm2022/ng-nest-ui-button.mjs.map +1 -1
  339. package/fesm2022/ng-nest-ui-calendar.mjs +12 -12
  340. package/fesm2022/ng-nest-ui-calendar.mjs.map +1 -1
  341. package/fesm2022/ng-nest-ui-card.mjs +11 -11
  342. package/fesm2022/ng-nest-ui-card.mjs.map +1 -1
  343. package/fesm2022/ng-nest-ui-carousel.mjs +20 -20
  344. package/fesm2022/ng-nest-ui-carousel.mjs.map +1 -1
  345. package/fesm2022/ng-nest-ui-cascade.mjs +16 -16
  346. package/fesm2022/ng-nest-ui-cascade.mjs.map +1 -1
  347. package/fesm2022/ng-nest-ui-checkbox.mjs +11 -11
  348. package/fesm2022/ng-nest-ui-checkbox.mjs.map +1 -1
  349. package/fesm2022/ng-nest-ui-collapse.mjs +19 -19
  350. package/fesm2022/ng-nest-ui-collapse.mjs.map +1 -1
  351. package/fesm2022/ng-nest-ui-color-picker.mjs +16 -16
  352. package/fesm2022/ng-nest-ui-color-picker.mjs.map +1 -1
  353. package/fesm2022/ng-nest-ui-color.mjs +12 -12
  354. package/fesm2022/ng-nest-ui-color.mjs.map +1 -1
  355. package/fesm2022/ng-nest-ui-comment.mjs +20 -20
  356. package/fesm2022/ng-nest-ui-comment.mjs.map +1 -1
  357. package/fesm2022/ng-nest-ui-container.mjs +38 -38
  358. package/fesm2022/ng-nest-ui-container.mjs.map +1 -1
  359. package/fesm2022/ng-nest-ui-core.mjs +20 -20
  360. package/fesm2022/ng-nest-ui-core.mjs.map +1 -1
  361. package/fesm2022/ng-nest-ui-crumb.mjs +12 -12
  362. package/fesm2022/ng-nest-ui-crumb.mjs.map +1 -1
  363. package/fesm2022/ng-nest-ui-date-picker.mjs +58 -58
  364. package/fesm2022/ng-nest-ui-date-picker.mjs.map +1 -1
  365. package/fesm2022/ng-nest-ui-description.mjs +18 -18
  366. package/fesm2022/ng-nest-ui-description.mjs.map +1 -1
  367. package/fesm2022/ng-nest-ui-dialog.mjs +51 -51
  368. package/fesm2022/ng-nest-ui-dialog.mjs.map +1 -1
  369. package/fesm2022/ng-nest-ui-doc.mjs +8 -8
  370. package/fesm2022/ng-nest-ui-doc.mjs.map +1 -1
  371. package/fesm2022/ng-nest-ui-drag.mjs +11 -11
  372. package/fesm2022/ng-nest-ui-drag.mjs.map +1 -1
  373. package/fesm2022/ng-nest-ui-drawer.mjs +38 -38
  374. package/fesm2022/ng-nest-ui-drawer.mjs.map +1 -1
  375. package/fesm2022/ng-nest-ui-dropdown.mjs +16 -16
  376. package/fesm2022/ng-nest-ui-dropdown.mjs.map +1 -1
  377. package/fesm2022/ng-nest-ui-empty.mjs +11 -11
  378. package/fesm2022/ng-nest-ui-empty.mjs.map +1 -1
  379. package/fesm2022/ng-nest-ui-examples.mjs +8 -8
  380. package/fesm2022/ng-nest-ui-examples.mjs.map +1 -1
  381. package/fesm2022/ng-nest-ui-find.mjs +11 -11
  382. package/fesm2022/ng-nest-ui-find.mjs.map +1 -1
  383. package/fesm2022/ng-nest-ui-form.mjs +18 -18
  384. package/fesm2022/ng-nest-ui-form.mjs.map +1 -1
  385. package/fesm2022/ng-nest-ui-highlight.mjs +13 -13
  386. package/fesm2022/ng-nest-ui-highlight.mjs.map +1 -1
  387. package/fesm2022/ng-nest-ui-i18n.mjs +17 -17
  388. package/fesm2022/ng-nest-ui-i18n.mjs.map +1 -1
  389. package/fesm2022/ng-nest-ui-icon.mjs +16 -16
  390. package/fesm2022/ng-nest-ui-icon.mjs.map +1 -1
  391. package/fesm2022/ng-nest-ui-image.mjs +23 -23
  392. package/fesm2022/ng-nest-ui-image.mjs.map +1 -1
  393. package/fesm2022/ng-nest-ui-inner.mjs +11 -11
  394. package/fesm2022/ng-nest-ui-inner.mjs.map +1 -1
  395. package/fesm2022/ng-nest-ui-input-number.mjs +11 -11
  396. package/fesm2022/ng-nest-ui-input-number.mjs.map +1 -1
  397. package/fesm2022/ng-nest-ui-input.mjs +19 -19
  398. package/fesm2022/ng-nest-ui-input.mjs.map +1 -1
  399. package/fesm2022/ng-nest-ui-keyword.mjs +11 -11
  400. package/fesm2022/ng-nest-ui-keyword.mjs.map +1 -1
  401. package/fesm2022/ng-nest-ui-layout.mjs +19 -19
  402. package/fesm2022/ng-nest-ui-layout.mjs.map +1 -1
  403. package/fesm2022/ng-nest-ui-link.mjs +11 -11
  404. package/fesm2022/ng-nest-ui-link.mjs.map +1 -1
  405. package/fesm2022/ng-nest-ui-list.mjs +22 -22
  406. package/fesm2022/ng-nest-ui-list.mjs.map +1 -1
  407. package/fesm2022/ng-nest-ui-loading.mjs +11 -11
  408. package/fesm2022/ng-nest-ui-loading.mjs.map +1 -1
  409. package/fesm2022/ng-nest-ui-menu.mjs +18 -18
  410. package/fesm2022/ng-nest-ui-menu.mjs.map +1 -1
  411. package/fesm2022/ng-nest-ui-message-box.mjs +13 -13
  412. package/fesm2022/ng-nest-ui-message-box.mjs.map +1 -1
  413. package/fesm2022/ng-nest-ui-message.mjs +12 -12
  414. package/fesm2022/ng-nest-ui-message.mjs.map +1 -1
  415. package/fesm2022/ng-nest-ui-notification.mjs +12 -12
  416. package/fesm2022/ng-nest-ui-notification.mjs.map +1 -1
  417. package/fesm2022/ng-nest-ui-outlet.mjs +8 -8
  418. package/fesm2022/ng-nest-ui-outlet.mjs.map +1 -1
  419. package/fesm2022/ng-nest-ui-page-header.mjs +11 -11
  420. package/fesm2022/ng-nest-ui-page-header.mjs.map +1 -1
  421. package/fesm2022/ng-nest-ui-pagination.mjs +11 -11
  422. package/fesm2022/ng-nest-ui-pagination.mjs.map +1 -1
  423. package/fesm2022/ng-nest-ui-pattern.mjs +8 -8
  424. package/fesm2022/ng-nest-ui-pattern.mjs.map +1 -1
  425. package/fesm2022/ng-nest-ui-popconfirm.mjs +11 -11
  426. package/fesm2022/ng-nest-ui-popconfirm.mjs.map +1 -1
  427. package/fesm2022/ng-nest-ui-popover.mjs +15 -15
  428. package/fesm2022/ng-nest-ui-popover.mjs.map +1 -1
  429. package/fesm2022/ng-nest-ui-portal.mjs +8 -8
  430. package/fesm2022/ng-nest-ui-portal.mjs.map +1 -1
  431. package/fesm2022/ng-nest-ui-progress.mjs +11 -11
  432. package/fesm2022/ng-nest-ui-progress.mjs.map +1 -1
  433. package/fesm2022/ng-nest-ui-radio.mjs +11 -11
  434. package/fesm2022/ng-nest-ui-radio.mjs.map +1 -1
  435. package/fesm2022/ng-nest-ui-rate.mjs +11 -11
  436. package/fesm2022/ng-nest-ui-rate.mjs.map +1 -1
  437. package/fesm2022/ng-nest-ui-resizable.mjs +11 -11
  438. package/fesm2022/ng-nest-ui-resizable.mjs.map +1 -1
  439. package/fesm2022/ng-nest-ui-result.mjs +11 -11
  440. package/fesm2022/ng-nest-ui-result.mjs.map +1 -1
  441. package/fesm2022/ng-nest-ui-ripple.mjs +13 -13
  442. package/fesm2022/ng-nest-ui-ripple.mjs.map +1 -1
  443. package/fesm2022/ng-nest-ui-select.mjs +15 -15
  444. package/fesm2022/ng-nest-ui-select.mjs.map +1 -1
  445. package/fesm2022/ng-nest-ui-skeleton.mjs +11 -11
  446. package/fesm2022/ng-nest-ui-skeleton.mjs.map +1 -1
  447. package/fesm2022/ng-nest-ui-slider-select.mjs +11 -11
  448. package/fesm2022/ng-nest-ui-slider-select.mjs.map +1 -1
  449. package/fesm2022/ng-nest-ui-slider.mjs +12 -12
  450. package/fesm2022/ng-nest-ui-slider.mjs.map +1 -1
  451. package/fesm2022/ng-nest-ui-statistic.mjs +19 -19
  452. package/fesm2022/ng-nest-ui-statistic.mjs.map +1 -1
  453. package/fesm2022/ng-nest-ui-steps.mjs +11 -11
  454. package/fesm2022/ng-nest-ui-steps.mjs.map +1 -1
  455. package/fesm2022/ng-nest-ui-switch.mjs +11 -11
  456. package/fesm2022/ng-nest-ui-switch.mjs.map +1 -1
  457. package/fesm2022/ng-nest-ui-table.mjs +32 -32
  458. package/fesm2022/ng-nest-ui-table.mjs.map +1 -1
  459. package/fesm2022/ng-nest-ui-tabs.mjs +33 -33
  460. package/fesm2022/ng-nest-ui-tabs.mjs.map +1 -1
  461. package/fesm2022/ng-nest-ui-tag.mjs +11 -11
  462. package/fesm2022/ng-nest-ui-tag.mjs.map +1 -1
  463. package/fesm2022/ng-nest-ui-text-retract.mjs +11 -11
  464. package/fesm2022/ng-nest-ui-text-retract.mjs.map +1 -1
  465. package/fesm2022/ng-nest-ui-textarea.mjs +11 -11
  466. package/fesm2022/ng-nest-ui-textarea.mjs.map +1 -1
  467. package/fesm2022/ng-nest-ui-theme.mjs +11 -11
  468. package/fesm2022/ng-nest-ui-theme.mjs.map +1 -1
  469. package/fesm2022/ng-nest-ui-time-ago.mjs +8 -8
  470. package/fesm2022/ng-nest-ui-time-ago.mjs.map +1 -1
  471. package/fesm2022/ng-nest-ui-time-picker.mjs +20 -20
  472. package/fesm2022/ng-nest-ui-time-picker.mjs.map +1 -1
  473. package/fesm2022/ng-nest-ui-time-range.mjs +7 -7
  474. package/fesm2022/ng-nest-ui-time-range.mjs.map +1 -1
  475. package/fesm2022/ng-nest-ui-timeline.mjs +12 -12
  476. package/fesm2022/ng-nest-ui-timeline.mjs.map +1 -1
  477. package/fesm2022/ng-nest-ui-tooltip.mjs +15 -15
  478. package/fesm2022/ng-nest-ui-tooltip.mjs.map +1 -1
  479. package/fesm2022/ng-nest-ui-transfer.mjs +12 -12
  480. package/fesm2022/ng-nest-ui-transfer.mjs.map +1 -1
  481. package/fesm2022/ng-nest-ui-tree-file.mjs +12 -12
  482. package/fesm2022/ng-nest-ui-tree-file.mjs.map +1 -1
  483. package/fesm2022/ng-nest-ui-tree-select.mjs +15 -15
  484. package/fesm2022/ng-nest-ui-tree-select.mjs.map +1 -1
  485. package/fesm2022/ng-nest-ui-tree.mjs +45 -28
  486. package/fesm2022/ng-nest-ui-tree.mjs.map +1 -1
  487. package/fesm2022/ng-nest-ui-typography.mjs +11 -11
  488. package/fesm2022/ng-nest-ui-typography.mjs.map +1 -1
  489. package/fesm2022/ng-nest-ui-upload.mjs +18 -18
  490. package/fesm2022/ng-nest-ui-upload.mjs.map +1 -1
  491. package/package.json +52 -52
  492. package/style/core/base.scss +0 -7
  493. package/style/core/index.css +0 -7
  494. package/style/core/index.css.map +1 -1
@@ -36,8 +36,8 @@ class XSwitchProperty extends XControlValueAccessor {
36
36
  */
37
37
  this.manual = false;
38
38
  }
39
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: XSwitchProperty, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
40
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: XSwitchProperty, selector: "x-switch-property", inputs: { loading: "loading", manual: "manual", size: "size", checkedText: "checkedText", unCheckedText: "unCheckedText" }, usesInheritance: true, ngImport: i0, template: '', isInline: true }); }
39
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: XSwitchProperty, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
40
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.2", type: XSwitchProperty, selector: "x-switch-property", inputs: { loading: "loading", manual: "manual", size: "size", checkedText: "checkedText", unCheckedText: "unCheckedText" }, usesInheritance: true, ngImport: i0, template: '', isInline: true }); }
41
41
  }
42
42
  __decorate([
43
43
  XInputBoolean()
@@ -48,7 +48,7 @@ __decorate([
48
48
  __decorate([
49
49
  XWithConfig(X_CONFIG_NAME, 'medium')
50
50
  ], XSwitchProperty.prototype, "size", void 0);
51
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: XSwitchProperty, decorators: [{
51
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: XSwitchProperty, decorators: [{
52
52
  type: Component,
53
53
  args: [{ selector: `${XSwitchPrefix}-property`, template: '' }]
54
54
  }], propDecorators: { loading: [{
@@ -99,23 +99,23 @@ class XSwitchComponent extends XSwitchProperty {
99
99
  this.ngOnInit();
100
100
  this.cdr.detectChanges();
101
101
  }
102
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: XSwitchComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: i1.XConfigService }], target: i0.ɵɵFactoryTarget.Component }); }
103
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: XSwitchComponent, selector: "x-switch", providers: [XValueAccessor(XSwitchComponent)], viewQueries: [{ propertyName: "switch", first: true, predicate: ["switch"], descendants: true, static: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div\r\n #switch\r\n class=\"x-switch\"\r\n [ngClass]=\"classMap\"\r\n [class.x-switch-loading]=\"loading\"\r\n [class.x-flex]=\"justify || align || direction\"\r\n [class.x-checked]=\"value\"\r\n [class.x-disabled]=\"disabled\"\r\n>\r\n <label *ngIf=\"label\" [style.width]=\"labelWidth\" [ngClass]=\"labelMap\">{{ label }}</label>\r\n <div class=\"x-switch-row\">\r\n <div class=\"x-switch-slider\" (click)=\"switchClick()\">\r\n <div class=\"x-switch-handle\">\r\n <div class=\"x-switch-spinner\" [x-loading]=\"loading\" [size]=\"size\"></div>\r\n </div>\r\n <div class=\"x-switch-text\">\r\n <ng-container *ngIf=\"value; else uncheckTemplate\">\r\n <ng-container *xOutlet=\"checkedText\">{{ checkedText }}</ng-container>\r\n </ng-container>\r\n <ng-template #uncheckTemplate>\r\n <ng-container *xOutlet=\"unCheckedText\">{{ unCheckedText }}</ng-container>\r\n </ng-template>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n", styles: ["@charset \"UTF-8\";.x-switch{margin:0;padding:0;width:100%}.x-switch.x-flex{display:flex}.x-switch.x-justify-start{justify-content:flex-start}.x-switch.x-justify-center{justify-content:center}.x-switch.x-justify-end{justify-content:flex-end}.x-switch.x-justify-space-between{justify-content:space-between}.x-switch.x-justify-space-around{justify-content:space-around}.x-switch.x-align-start{align-items:flex-start}.x-switch.x-align-center{align-items:center}.x-switch.x-align-end{align-items:flex-end}.x-switch.x-direction-column{flex-direction:column}.x-switch.x-direction-column-reverse{flex-direction:column-reverse}.x-switch.x-direction-row{flex-direction:row}.x-switch.x-direction-row-reverse{flex-direction:row-reverse}.x-switch>label{display:inline-block;white-space:nowrap;position:relative;color:var(--x-text-300);font-weight:600}.x-switch>label.x-text-align-start{text-align:start}.x-switch>label.x-text-align-center{text-align:center}.x-switch>label.x-text-align-end{text-align:end}.x-switch-row{flex:1;display:flex;align-items:center;position:relative;height:calc(var(--x-font-size) + .875rem);line-height:calc(var(--x-font-size) + .875rem)}.x-switch-slider{display:inline-flex;align-items:center;position:relative;border:var(--x-border-width) solid var(--x-info);background-color:var(--x-info);cursor:pointer;transition:var(--x-animation-duration-slow)}.x-switch-handle{position:absolute;transition:var(--x-animation-duration-slow);left:0;display:block}.x-switch-handle:before{position:absolute;inset:0;box-shadow:0 .125rem .25rem #00230b33;background-color:var(--x-background-a100);content:\"\"}.x-switch-spinner .x-loading{background-color:transparent}.x-switch-spinner .x-loading-spinner{display:flex;align-items:center}.x-switch-text{color:var(--x-white);transition:var(--x-animation-duration-slow)}.x-switch.x-checked .x-switch-slider{background-color:var(--x-primary);border-color:var(--x-primary)}.x-switch.x-required>label{color:var(--x-danger)}.x-switch.x-disabled .x-switch-slider,.x-switch-loading .x-switch-slider{cursor:not-allowed;background-color:var(--x-info-500);border-color:var(--x-info-500)}.x-switch.x-disabled.x-checked .x-switch-slider,.x-switch-loading.x-checked .x-switch-slider{background-color:var(--x-primary-500);border-color:var(--x-primary-500)}.x-switch.x-direction-row>label{padding:0 .5rem 0 0}.x-switch.x-direction-row-reverse>label{padding:0 0 0 .5rem}.x-switch.x-direction-column,.x-switch.x-direction-column-reverse{align-items:inherit}.x-switch-big>label{height:var(--x-height-big);line-height:var(--x-height-big)}.x-switch-big .x-switch-slider{height:calc(var(--x-height-big) - .25rem);min-width:calc((var(--x-height-big) - .25rem) * 2);border-radius:calc(var(--x-height-big) - .25rem);margin:.125rem 0}.x-switch-big .x-switch-handle{width:calc(var(--x-height-big) - .5rem);height:calc(var(--x-height-big) - .5rem);margin:0 .125rem}.x-switch-big .x-switch-handle:before{border-radius:calc(var(--x-height-big) - .5rem)}.x-switch-big .x-switch-text{margin-left:calc(var(--x-height-big) - .125rem);margin-right:.5rem}.x-switch-big.x-checked .x-switch-handle{left:calc(100% - (var(--x-height-big) - .5rem) - .25rem)}.x-switch-big.x-checked .x-switch-text{margin-left:.5rem;margin-right:calc(var(--x-height-big) - .25rem)}.x-switch-big .x-switch-spinner{width:calc(var(--x-height-big) - .5rem);height:calc(var(--x-height-big) - .5rem)}.x-switch-big .x-loading-big .x-loading-circular{width:calc(var(--x-height-big) - .625rem);height:calc(var(--x-height-big) - .625rem)}.x-switch-large>label{height:var(--x-height-large);line-height:var(--x-height-large)}.x-switch-large .x-switch-slider{height:calc(var(--x-height-large) - .25rem);min-width:calc((var(--x-height-large) - .25rem) * 2);border-radius:calc(var(--x-height-large) - .25rem);margin:.125rem 0}.x-switch-large .x-switch-handle{width:calc(var(--x-height-large) - .5rem);height:calc(var(--x-height-large) - .5rem);margin:0 .125rem}.x-switch-large .x-switch-handle:before{border-radius:calc(var(--x-height-large) - .5rem)}.x-switch-large .x-switch-text{margin-left:calc(var(--x-height-large) - .125rem);margin-right:.5rem}.x-switch-large.x-checked .x-switch-handle{left:calc(100% - (var(--x-height-large) - .5rem) - .25rem)}.x-switch-large.x-checked .x-switch-text{margin-left:.5rem;margin-right:calc(var(--x-height-large) - .25rem)}.x-switch-large .x-switch-spinner{width:calc(var(--x-height-large) - .5rem);height:calc(var(--x-height-large) - .5rem)}.x-switch-large .x-loading-large .x-loading-circular{width:calc(var(--x-height-large) - .625rem);height:calc(var(--x-height-large) - .625rem)}.x-switch-medium>label{height:var(--x-height-medium);line-height:var(--x-height-medium)}.x-switch-medium .x-switch-slider{height:calc(var(--x-height-medium) - .25rem);min-width:calc((var(--x-height-medium) - .25rem) * 2);border-radius:calc(var(--x-height-medium) - .25rem);margin:.125rem 0}.x-switch-medium .x-switch-handle{width:calc(var(--x-height-medium) - .5rem);height:calc(var(--x-height-medium) - .5rem);margin:0 .125rem}.x-switch-medium .x-switch-handle:before{border-radius:calc(var(--x-height-medium) - .5rem)}.x-switch-medium .x-switch-text{margin-left:calc(var(--x-height-medium) - .125rem);margin-right:.5rem}.x-switch-medium.x-checked .x-switch-handle{left:calc(100% - (var(--x-height-medium) - .5rem) - .25rem)}.x-switch-medium.x-checked .x-switch-text{margin-left:.5rem;margin-right:calc(var(--x-height-medium) - .25rem)}.x-switch-medium .x-switch-spinner{width:calc(var(--x-height-medium) - .5rem);height:calc(var(--x-height-medium) - .5rem)}.x-switch-medium .x-loading-medium .x-loading-circular{width:calc(var(--x-height-medium) - .625rem);height:calc(var(--x-height-medium) - .625rem)}.x-switch-small>label{height:var(--x-height-small);line-height:var(--x-height-small)}.x-switch-small .x-switch-slider{height:calc(var(--x-height-small) - .25rem);min-width:calc((var(--x-height-small) - .25rem) * 2);border-radius:calc(var(--x-height-small) - .25rem);margin:.125rem 0}.x-switch-small .x-switch-handle{width:calc(var(--x-height-small) - .5rem);height:calc(var(--x-height-small) - .5rem);margin:0 .125rem}.x-switch-small .x-switch-handle:before{border-radius:calc(var(--x-height-small) - .5rem)}.x-switch-small .x-switch-text{margin-left:calc(var(--x-height-small) - .125rem);margin-right:.5rem}.x-switch-small.x-checked .x-switch-handle{left:calc(100% - (var(--x-height-small) - .5rem) - .25rem)}.x-switch-small.x-checked .x-switch-text{margin-left:.5rem;margin-right:calc(var(--x-height-small) - .25rem)}.x-switch-small .x-switch-spinner{width:calc(var(--x-height-small) - .5rem);height:calc(var(--x-height-small) - .5rem)}.x-switch-small .x-loading-small .x-loading-circular{width:calc(var(--x-height-small) - .625rem);height:calc(var(--x-height-small) - .625rem)}.x-switch-mini>label{height:var(--x-height-mini);line-height:var(--x-height-mini)}.x-switch-mini .x-switch-slider{height:calc(var(--x-height-mini) - .25rem);min-width:calc((var(--x-height-mini) - .25rem) * 2);border-radius:calc(var(--x-height-mini) - .25rem);margin:.125rem 0}.x-switch-mini .x-switch-handle{width:calc(var(--x-height-mini) - .5rem);height:calc(var(--x-height-mini) - .5rem);margin:0 .125rem}.x-switch-mini .x-switch-handle:before{border-radius:calc(var(--x-height-mini) - .5rem)}.x-switch-mini .x-switch-text{margin-left:calc(var(--x-height-mini) - .125rem);margin-right:.5rem}.x-switch-mini.x-checked .x-switch-handle{left:calc(100% - (var(--x-height-mini) - .5rem) - .25rem)}.x-switch-mini.x-checked .x-switch-text{margin-left:.5rem;margin-right:calc(var(--x-height-mini) - .25rem)}.x-switch-mini .x-switch-spinner{width:calc(var(--x-height-mini) - .5rem);height:calc(var(--x-height-mini) - .5rem)}.x-switch-mini .x-loading-mini .x-loading-circular{width:calc(var(--x-height-mini) - .625rem);height:calc(var(--x-height-mini) - .625rem)}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.XLoadingComponent, selector: "x-loading, [x-loading]" }, { kind: "directive", type: i4.XOutletDirective, selector: "[xOutlet]", inputs: ["xOutletContext", "xOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
102
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: XSwitchComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: i1.XConfigService }], target: i0.ɵɵFactoryTarget.Component }); }
103
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.2", type: XSwitchComponent, selector: "x-switch", providers: [XValueAccessor(XSwitchComponent)], viewQueries: [{ propertyName: "switch", first: true, predicate: ["switch"], descendants: true, static: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div\r\n #switch\r\n class=\"x-switch\"\r\n [ngClass]=\"classMap\"\r\n [class.x-switch-loading]=\"loading\"\r\n [class.x-flex]=\"justify || align || direction\"\r\n [class.x-checked]=\"value\"\r\n [class.x-disabled]=\"disabled\"\r\n>\r\n <label *ngIf=\"label\" [style.width]=\"labelWidth\" [ngClass]=\"labelMap\">{{ label }}</label>\r\n <div class=\"x-switch-row\">\r\n <div class=\"x-switch-slider\" (click)=\"switchClick()\">\r\n <div class=\"x-switch-handle\">\r\n <div class=\"x-switch-spinner\" [x-loading]=\"loading\" [size]=\"size\"></div>\r\n </div>\r\n <div class=\"x-switch-text\">\r\n <ng-container *ngIf=\"value; else uncheckTemplate\">\r\n <ng-container *xOutlet=\"checkedText\">{{ checkedText }}</ng-container>\r\n </ng-container>\r\n <ng-template #uncheckTemplate>\r\n <ng-container *xOutlet=\"unCheckedText\">{{ unCheckedText }}</ng-container>\r\n </ng-template>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n", styles: ["@charset \"UTF-8\";.x-switch{margin:0;padding:0;width:100%}.x-switch.x-flex{display:flex}.x-switch.x-justify-start{justify-content:flex-start}.x-switch.x-justify-center{justify-content:center}.x-switch.x-justify-end{justify-content:flex-end}.x-switch.x-justify-space-between{justify-content:space-between}.x-switch.x-justify-space-around{justify-content:space-around}.x-switch.x-align-start{align-items:flex-start}.x-switch.x-align-center{align-items:center}.x-switch.x-align-end{align-items:flex-end}.x-switch.x-direction-column{flex-direction:column}.x-switch.x-direction-column-reverse{flex-direction:column-reverse}.x-switch.x-direction-row{flex-direction:row}.x-switch.x-direction-row-reverse{flex-direction:row-reverse}.x-switch>label{display:inline-block;white-space:nowrap;position:relative;color:var(--x-text-300);font-weight:600}.x-switch>label.x-text-align-start{text-align:start}.x-switch>label.x-text-align-center{text-align:center}.x-switch>label.x-text-align-end{text-align:end}.x-switch-row{flex:1;display:flex;align-items:center;position:relative;height:calc(var(--x-font-size) + .875rem);line-height:calc(var(--x-font-size) + .875rem)}.x-switch-slider{display:inline-flex;align-items:center;position:relative;border:var(--x-border-width) solid var(--x-info);background-color:var(--x-info);cursor:pointer;transition:var(--x-animation-duration-slow)}.x-switch-handle{position:absolute;transition:var(--x-animation-duration-slow);left:0;display:block}.x-switch-handle:before{position:absolute;inset:0;box-shadow:0 .125rem .25rem #00230b33;background-color:var(--x-background-a100);content:\"\"}.x-switch-spinner .x-loading{background-color:transparent}.x-switch-spinner .x-loading-spinner{display:flex;align-items:center}.x-switch-text{color:var(--x-white);transition:var(--x-animation-duration-slow)}.x-switch.x-checked .x-switch-slider{background-color:var(--x-primary);border-color:var(--x-primary)}.x-switch.x-required>label{color:var(--x-danger)}.x-switch.x-disabled .x-switch-slider,.x-switch-loading .x-switch-slider{cursor:not-allowed;background-color:var(--x-info-500);border-color:var(--x-info-500)}.x-switch.x-disabled.x-checked .x-switch-slider,.x-switch-loading.x-checked .x-switch-slider{background-color:var(--x-primary-500);border-color:var(--x-primary-500)}.x-switch.x-direction-row>label{padding:0 .5rem 0 0}.x-switch.x-direction-row-reverse>label{padding:0 0 0 .5rem}.x-switch.x-direction-column,.x-switch.x-direction-column-reverse{align-items:inherit}.x-switch-big>label{height:var(--x-height-big);line-height:var(--x-height-big)}.x-switch-big .x-switch-slider{height:calc(var(--x-height-big) - .25rem);min-width:calc((var(--x-height-big) - .25rem) * 2);border-radius:calc(var(--x-height-big) - .25rem);margin:.125rem 0}.x-switch-big .x-switch-handle{width:calc(var(--x-height-big) - .5rem);height:calc(var(--x-height-big) - .5rem);margin:0 .125rem}.x-switch-big .x-switch-handle:before{border-radius:calc(var(--x-height-big) - .5rem)}.x-switch-big .x-switch-text{margin-left:calc(var(--x-height-big) - .125rem);margin-right:.5rem}.x-switch-big.x-checked .x-switch-handle{left:calc(100% - (var(--x-height-big) - .5rem) - .25rem)}.x-switch-big.x-checked .x-switch-text{margin-left:.5rem;margin-right:calc(var(--x-height-big) - .25rem)}.x-switch-big .x-switch-spinner{width:calc(var(--x-height-big) - .5rem);height:calc(var(--x-height-big) - .5rem)}.x-switch-big .x-loading-big .x-loading-circular{width:calc(var(--x-height-big) - .625rem);height:calc(var(--x-height-big) - .625rem)}.x-switch-large>label{height:var(--x-height-large);line-height:var(--x-height-large)}.x-switch-large .x-switch-slider{height:calc(var(--x-height-large) - .25rem);min-width:calc((var(--x-height-large) - .25rem) * 2);border-radius:calc(var(--x-height-large) - .25rem);margin:.125rem 0}.x-switch-large .x-switch-handle{width:calc(var(--x-height-large) - .5rem);height:calc(var(--x-height-large) - .5rem);margin:0 .125rem}.x-switch-large .x-switch-handle:before{border-radius:calc(var(--x-height-large) - .5rem)}.x-switch-large .x-switch-text{margin-left:calc(var(--x-height-large) - .125rem);margin-right:.5rem}.x-switch-large.x-checked .x-switch-handle{left:calc(100% - (var(--x-height-large) - .5rem) - .25rem)}.x-switch-large.x-checked .x-switch-text{margin-left:.5rem;margin-right:calc(var(--x-height-large) - .25rem)}.x-switch-large .x-switch-spinner{width:calc(var(--x-height-large) - .5rem);height:calc(var(--x-height-large) - .5rem)}.x-switch-large .x-loading-large .x-loading-circular{width:calc(var(--x-height-large) - .625rem);height:calc(var(--x-height-large) - .625rem)}.x-switch-medium>label{height:var(--x-height-medium);line-height:var(--x-height-medium)}.x-switch-medium .x-switch-slider{height:calc(var(--x-height-medium) - .25rem);min-width:calc((var(--x-height-medium) - .25rem) * 2);border-radius:calc(var(--x-height-medium) - .25rem);margin:.125rem 0}.x-switch-medium .x-switch-handle{width:calc(var(--x-height-medium) - .5rem);height:calc(var(--x-height-medium) - .5rem);margin:0 .125rem}.x-switch-medium .x-switch-handle:before{border-radius:calc(var(--x-height-medium) - .5rem)}.x-switch-medium .x-switch-text{margin-left:calc(var(--x-height-medium) - .125rem);margin-right:.5rem}.x-switch-medium.x-checked .x-switch-handle{left:calc(100% - (var(--x-height-medium) - .5rem) - .25rem)}.x-switch-medium.x-checked .x-switch-text{margin-left:.5rem;margin-right:calc(var(--x-height-medium) - .25rem)}.x-switch-medium .x-switch-spinner{width:calc(var(--x-height-medium) - .5rem);height:calc(var(--x-height-medium) - .5rem)}.x-switch-medium .x-loading-medium .x-loading-circular{width:calc(var(--x-height-medium) - .625rem);height:calc(var(--x-height-medium) - .625rem)}.x-switch-small>label{height:var(--x-height-small);line-height:var(--x-height-small)}.x-switch-small .x-switch-slider{height:calc(var(--x-height-small) - .25rem);min-width:calc((var(--x-height-small) - .25rem) * 2);border-radius:calc(var(--x-height-small) - .25rem);margin:.125rem 0}.x-switch-small .x-switch-handle{width:calc(var(--x-height-small) - .5rem);height:calc(var(--x-height-small) - .5rem);margin:0 .125rem}.x-switch-small .x-switch-handle:before{border-radius:calc(var(--x-height-small) - .5rem)}.x-switch-small .x-switch-text{margin-left:calc(var(--x-height-small) - .125rem);margin-right:.5rem}.x-switch-small.x-checked .x-switch-handle{left:calc(100% - (var(--x-height-small) - .5rem) - .25rem)}.x-switch-small.x-checked .x-switch-text{margin-left:.5rem;margin-right:calc(var(--x-height-small) - .25rem)}.x-switch-small .x-switch-spinner{width:calc(var(--x-height-small) - .5rem);height:calc(var(--x-height-small) - .5rem)}.x-switch-small .x-loading-small .x-loading-circular{width:calc(var(--x-height-small) - .625rem);height:calc(var(--x-height-small) - .625rem)}.x-switch-mini>label{height:var(--x-height-mini);line-height:var(--x-height-mini)}.x-switch-mini .x-switch-slider{height:calc(var(--x-height-mini) - .25rem);min-width:calc((var(--x-height-mini) - .25rem) * 2);border-radius:calc(var(--x-height-mini) - .25rem);margin:.125rem 0}.x-switch-mini .x-switch-handle{width:calc(var(--x-height-mini) - .5rem);height:calc(var(--x-height-mini) - .5rem);margin:0 .125rem}.x-switch-mini .x-switch-handle:before{border-radius:calc(var(--x-height-mini) - .5rem)}.x-switch-mini .x-switch-text{margin-left:calc(var(--x-height-mini) - .125rem);margin-right:.5rem}.x-switch-mini.x-checked .x-switch-handle{left:calc(100% - (var(--x-height-mini) - .5rem) - .25rem)}.x-switch-mini.x-checked .x-switch-text{margin-left:.5rem;margin-right:calc(var(--x-height-mini) - .25rem)}.x-switch-mini .x-switch-spinner{width:calc(var(--x-height-mini) - .5rem);height:calc(var(--x-height-mini) - .5rem)}.x-switch-mini .x-loading-mini .x-loading-circular{width:calc(var(--x-height-mini) - .625rem);height:calc(var(--x-height-mini) - .625rem)}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.XLoadingComponent, selector: "x-loading, [x-loading]" }, { kind: "directive", type: i4.XOutletDirective, selector: "[xOutlet]", inputs: ["xOutletContext", "xOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
104
104
  }
105
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: XSwitchComponent, decorators: [{
105
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: XSwitchComponent, decorators: [{
106
106
  type: Component,
107
107
  args: [{ selector: `${XSwitchPrefix}`, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [XValueAccessor(XSwitchComponent)], template: "<div\r\n #switch\r\n class=\"x-switch\"\r\n [ngClass]=\"classMap\"\r\n [class.x-switch-loading]=\"loading\"\r\n [class.x-flex]=\"justify || align || direction\"\r\n [class.x-checked]=\"value\"\r\n [class.x-disabled]=\"disabled\"\r\n>\r\n <label *ngIf=\"label\" [style.width]=\"labelWidth\" [ngClass]=\"labelMap\">{{ label }}</label>\r\n <div class=\"x-switch-row\">\r\n <div class=\"x-switch-slider\" (click)=\"switchClick()\">\r\n <div class=\"x-switch-handle\">\r\n <div class=\"x-switch-spinner\" [x-loading]=\"loading\" [size]=\"size\"></div>\r\n </div>\r\n <div class=\"x-switch-text\">\r\n <ng-container *ngIf=\"value; else uncheckTemplate\">\r\n <ng-container *xOutlet=\"checkedText\">{{ checkedText }}</ng-container>\r\n </ng-container>\r\n <ng-template #uncheckTemplate>\r\n <ng-container *xOutlet=\"unCheckedText\">{{ unCheckedText }}</ng-container>\r\n </ng-template>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n", styles: ["@charset \"UTF-8\";.x-switch{margin:0;padding:0;width:100%}.x-switch.x-flex{display:flex}.x-switch.x-justify-start{justify-content:flex-start}.x-switch.x-justify-center{justify-content:center}.x-switch.x-justify-end{justify-content:flex-end}.x-switch.x-justify-space-between{justify-content:space-between}.x-switch.x-justify-space-around{justify-content:space-around}.x-switch.x-align-start{align-items:flex-start}.x-switch.x-align-center{align-items:center}.x-switch.x-align-end{align-items:flex-end}.x-switch.x-direction-column{flex-direction:column}.x-switch.x-direction-column-reverse{flex-direction:column-reverse}.x-switch.x-direction-row{flex-direction:row}.x-switch.x-direction-row-reverse{flex-direction:row-reverse}.x-switch>label{display:inline-block;white-space:nowrap;position:relative;color:var(--x-text-300);font-weight:600}.x-switch>label.x-text-align-start{text-align:start}.x-switch>label.x-text-align-center{text-align:center}.x-switch>label.x-text-align-end{text-align:end}.x-switch-row{flex:1;display:flex;align-items:center;position:relative;height:calc(var(--x-font-size) + .875rem);line-height:calc(var(--x-font-size) + .875rem)}.x-switch-slider{display:inline-flex;align-items:center;position:relative;border:var(--x-border-width) solid var(--x-info);background-color:var(--x-info);cursor:pointer;transition:var(--x-animation-duration-slow)}.x-switch-handle{position:absolute;transition:var(--x-animation-duration-slow);left:0;display:block}.x-switch-handle:before{position:absolute;inset:0;box-shadow:0 .125rem .25rem #00230b33;background-color:var(--x-background-a100);content:\"\"}.x-switch-spinner .x-loading{background-color:transparent}.x-switch-spinner .x-loading-spinner{display:flex;align-items:center}.x-switch-text{color:var(--x-white);transition:var(--x-animation-duration-slow)}.x-switch.x-checked .x-switch-slider{background-color:var(--x-primary);border-color:var(--x-primary)}.x-switch.x-required>label{color:var(--x-danger)}.x-switch.x-disabled .x-switch-slider,.x-switch-loading .x-switch-slider{cursor:not-allowed;background-color:var(--x-info-500);border-color:var(--x-info-500)}.x-switch.x-disabled.x-checked .x-switch-slider,.x-switch-loading.x-checked .x-switch-slider{background-color:var(--x-primary-500);border-color:var(--x-primary-500)}.x-switch.x-direction-row>label{padding:0 .5rem 0 0}.x-switch.x-direction-row-reverse>label{padding:0 0 0 .5rem}.x-switch.x-direction-column,.x-switch.x-direction-column-reverse{align-items:inherit}.x-switch-big>label{height:var(--x-height-big);line-height:var(--x-height-big)}.x-switch-big .x-switch-slider{height:calc(var(--x-height-big) - .25rem);min-width:calc((var(--x-height-big) - .25rem) * 2);border-radius:calc(var(--x-height-big) - .25rem);margin:.125rem 0}.x-switch-big .x-switch-handle{width:calc(var(--x-height-big) - .5rem);height:calc(var(--x-height-big) - .5rem);margin:0 .125rem}.x-switch-big .x-switch-handle:before{border-radius:calc(var(--x-height-big) - .5rem)}.x-switch-big .x-switch-text{margin-left:calc(var(--x-height-big) - .125rem);margin-right:.5rem}.x-switch-big.x-checked .x-switch-handle{left:calc(100% - (var(--x-height-big) - .5rem) - .25rem)}.x-switch-big.x-checked .x-switch-text{margin-left:.5rem;margin-right:calc(var(--x-height-big) - .25rem)}.x-switch-big .x-switch-spinner{width:calc(var(--x-height-big) - .5rem);height:calc(var(--x-height-big) - .5rem)}.x-switch-big .x-loading-big .x-loading-circular{width:calc(var(--x-height-big) - .625rem);height:calc(var(--x-height-big) - .625rem)}.x-switch-large>label{height:var(--x-height-large);line-height:var(--x-height-large)}.x-switch-large .x-switch-slider{height:calc(var(--x-height-large) - .25rem);min-width:calc((var(--x-height-large) - .25rem) * 2);border-radius:calc(var(--x-height-large) - .25rem);margin:.125rem 0}.x-switch-large .x-switch-handle{width:calc(var(--x-height-large) - .5rem);height:calc(var(--x-height-large) - .5rem);margin:0 .125rem}.x-switch-large .x-switch-handle:before{border-radius:calc(var(--x-height-large) - .5rem)}.x-switch-large .x-switch-text{margin-left:calc(var(--x-height-large) - .125rem);margin-right:.5rem}.x-switch-large.x-checked .x-switch-handle{left:calc(100% - (var(--x-height-large) - .5rem) - .25rem)}.x-switch-large.x-checked .x-switch-text{margin-left:.5rem;margin-right:calc(var(--x-height-large) - .25rem)}.x-switch-large .x-switch-spinner{width:calc(var(--x-height-large) - .5rem);height:calc(var(--x-height-large) - .5rem)}.x-switch-large .x-loading-large .x-loading-circular{width:calc(var(--x-height-large) - .625rem);height:calc(var(--x-height-large) - .625rem)}.x-switch-medium>label{height:var(--x-height-medium);line-height:var(--x-height-medium)}.x-switch-medium .x-switch-slider{height:calc(var(--x-height-medium) - .25rem);min-width:calc((var(--x-height-medium) - .25rem) * 2);border-radius:calc(var(--x-height-medium) - .25rem);margin:.125rem 0}.x-switch-medium .x-switch-handle{width:calc(var(--x-height-medium) - .5rem);height:calc(var(--x-height-medium) - .5rem);margin:0 .125rem}.x-switch-medium .x-switch-handle:before{border-radius:calc(var(--x-height-medium) - .5rem)}.x-switch-medium .x-switch-text{margin-left:calc(var(--x-height-medium) - .125rem);margin-right:.5rem}.x-switch-medium.x-checked .x-switch-handle{left:calc(100% - (var(--x-height-medium) - .5rem) - .25rem)}.x-switch-medium.x-checked .x-switch-text{margin-left:.5rem;margin-right:calc(var(--x-height-medium) - .25rem)}.x-switch-medium .x-switch-spinner{width:calc(var(--x-height-medium) - .5rem);height:calc(var(--x-height-medium) - .5rem)}.x-switch-medium .x-loading-medium .x-loading-circular{width:calc(var(--x-height-medium) - .625rem);height:calc(var(--x-height-medium) - .625rem)}.x-switch-small>label{height:var(--x-height-small);line-height:var(--x-height-small)}.x-switch-small .x-switch-slider{height:calc(var(--x-height-small) - .25rem);min-width:calc((var(--x-height-small) - .25rem) * 2);border-radius:calc(var(--x-height-small) - .25rem);margin:.125rem 0}.x-switch-small .x-switch-handle{width:calc(var(--x-height-small) - .5rem);height:calc(var(--x-height-small) - .5rem);margin:0 .125rem}.x-switch-small .x-switch-handle:before{border-radius:calc(var(--x-height-small) - .5rem)}.x-switch-small .x-switch-text{margin-left:calc(var(--x-height-small) - .125rem);margin-right:.5rem}.x-switch-small.x-checked .x-switch-handle{left:calc(100% - (var(--x-height-small) - .5rem) - .25rem)}.x-switch-small.x-checked .x-switch-text{margin-left:.5rem;margin-right:calc(var(--x-height-small) - .25rem)}.x-switch-small .x-switch-spinner{width:calc(var(--x-height-small) - .5rem);height:calc(var(--x-height-small) - .5rem)}.x-switch-small .x-loading-small .x-loading-circular{width:calc(var(--x-height-small) - .625rem);height:calc(var(--x-height-small) - .625rem)}.x-switch-mini>label{height:var(--x-height-mini);line-height:var(--x-height-mini)}.x-switch-mini .x-switch-slider{height:calc(var(--x-height-mini) - .25rem);min-width:calc((var(--x-height-mini) - .25rem) * 2);border-radius:calc(var(--x-height-mini) - .25rem);margin:.125rem 0}.x-switch-mini .x-switch-handle{width:calc(var(--x-height-mini) - .5rem);height:calc(var(--x-height-mini) - .5rem);margin:0 .125rem}.x-switch-mini .x-switch-handle:before{border-radius:calc(var(--x-height-mini) - .5rem)}.x-switch-mini .x-switch-text{margin-left:calc(var(--x-height-mini) - .125rem);margin-right:.5rem}.x-switch-mini.x-checked .x-switch-handle{left:calc(100% - (var(--x-height-mini) - .5rem) - .25rem)}.x-switch-mini.x-checked .x-switch-text{margin-left:.5rem;margin-right:calc(var(--x-height-mini) - .25rem)}.x-switch-mini .x-switch-spinner{width:calc(var(--x-height-mini) - .5rem);height:calc(var(--x-height-mini) - .5rem)}.x-switch-mini .x-loading-mini .x-loading-circular{width:calc(var(--x-height-mini) - .625rem);height:calc(var(--x-height-mini) - .625rem)}\n"] }]
108
- }], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }, { type: i1.XConfigService }]; }, propDecorators: { switch: [{
108
+ }], ctorParameters: () => [{ type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }, { type: i1.XConfigService }], propDecorators: { switch: [{
109
109
  type: ViewChild,
110
110
  args: ['switch', { static: true }]
111
111
  }] } });
112
112
 
113
113
  class XSwitchModule {
114
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: XSwitchModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
115
- /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: XSwitchModule, declarations: [XSwitchComponent, XSwitchProperty], imports: [CommonModule, FormsModule, ReactiveFormsModule, XBaseFormModule, XLoadingModule, XOutletModule], exports: [XSwitchComponent] }); }
116
- /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: XSwitchModule, imports: [CommonModule, FormsModule, ReactiveFormsModule, XBaseFormModule, XLoadingModule, XOutletModule] }); }
114
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: XSwitchModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
115
+ /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.2", ngImport: i0, type: XSwitchModule, declarations: [XSwitchComponent, XSwitchProperty], imports: [CommonModule, FormsModule, ReactiveFormsModule, XBaseFormModule, XLoadingModule, XOutletModule], exports: [XSwitchComponent] }); }
116
+ /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: XSwitchModule, imports: [CommonModule, FormsModule, ReactiveFormsModule, XBaseFormModule, XLoadingModule, XOutletModule] }); }
117
117
  }
118
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: XSwitchModule, decorators: [{
118
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: XSwitchModule, decorators: [{
119
119
  type: NgModule,
120
120
  args: [{
121
121
  declarations: [XSwitchComponent, XSwitchProperty],
@@ -1 +1 @@
1
- {"version":3,"file":"ng-nest-ui-switch.mjs","sources":["../../../../lib/ng-nest/ui/switch/switch.property.ts","../../../../lib/ng-nest/ui/switch/switch.component.ts","../../../../lib/ng-nest/ui/switch/switch.component.html","../../../../lib/ng-nest/ui/switch/switch.module.ts","../../../../lib/ng-nest/ui/switch/ng-nest-ui-switch.ts"],"sourcesContent":["import { Component, Input } from '@angular/core';\r\nimport { XControlValueAccessor, XFormOption } from '@ng-nest/ui/base-form';\r\nimport { XBoolean, XInputBoolean, XSize, XTemplate, XWithConfig } from '@ng-nest/ui/core';\r\n\r\n/**\r\n * Switch\r\n * @selector x-switch\r\n * @decorator component\r\n */\r\nexport const XSwitchPrefix = 'x-switch';\r\nconst X_CONFIG_NAME = 'switch';\r\n\r\n/**\r\n * Switch Property\r\n */\r\n@Component({ selector: `${XSwitchPrefix}-property`, template: '' })\r\nexport class XSwitchProperty extends XControlValueAccessor<boolean> implements XSwitchOption {\r\n /**\r\n * @zh_CN 显示加载中\r\n * @en_US Show loading\r\n */\r\n @Input() @XInputBoolean() loading: XBoolean = false;\r\n /**\r\n * @zh_CN 手动控制\r\n * @en_US Manual control\r\n */\r\n @Input() @XInputBoolean() manual: XBoolean = false;\r\n /**\r\n * @zh_CN 尺寸\r\n * @en_US Size\r\n */\r\n @Input() @XWithConfig<XSize>(X_CONFIG_NAME, 'medium') override size!: XSize;\r\n /**\r\n * @zh_CN 显示文字或者自定义模版(开启状态)\r\n * @en_US Display text or custom template (open state)\r\n */\r\n @Input() checkedText?: XTemplate;\r\n /**\r\n * @zh_CN 显示文字或者自定义模版(关闭状态)\r\n * @en_US Display text or custom template (closed)\r\n */\r\n @Input() unCheckedText?: XTemplate;\r\n}\r\n\r\n/**\r\n * Switch Option\r\n * @undocument true\r\n */\r\nexport interface XSwitchOption extends XFormOption {\r\n /**\r\n * @zh_CN 显示加载中\r\n * @en_US Show loading\r\n */\r\n loading?: XBoolean;\r\n /**\r\n * @zh_CN 手动控制\r\n * @en_US Manual control\r\n */\r\n manual?: XBoolean;\r\n /**\r\n * @zh_CN 显示文字或者自定义模版(开启状态)\r\n * @en_US Display text or custom template (open state)\r\n */\r\n checkedText?: XTemplate;\r\n /**\r\n * @zh_CN 显示文字或者自定义模版(关闭状态)\r\n * @en_US Display text or custom template (closed)\r\n */\r\n unCheckedText?: XTemplate;\r\n}\r\n","import {\r\n Component,\r\n OnInit,\r\n ViewEncapsulation,\r\n ChangeDetectionStrategy,\r\n ChangeDetectorRef,\r\n Renderer2,\r\n ElementRef,\r\n ViewChild,\r\n SimpleChanges\r\n} from '@angular/core';\r\nimport { XSwitchProperty, XSwitchPrefix } from './switch.property';\r\nimport { XClearClass, XConfigService, XIsChange } from '@ng-nest/ui/core';\r\nimport { XValueAccessor } from '@ng-nest/ui/base-form';\r\n\r\n@Component({\r\n selector: `${XSwitchPrefix}`,\r\n templateUrl: './switch.component.html',\r\n styleUrls: ['./switch.component.scss'],\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n providers: [XValueAccessor(XSwitchComponent)]\r\n})\r\nexport class XSwitchComponent extends XSwitchProperty implements OnInit {\r\n @ViewChild('switch', { static: true }) switch!: ElementRef<HTMLElement>;\r\n\r\n override writeValue(value: any) {\r\n this.value = value;\r\n this.cdr.detectChanges();\r\n }\r\n\r\n constructor(public renderer: Renderer2, public override cdr: ChangeDetectorRef, public configService: XConfigService) {\r\n super();\r\n }\r\n\r\n ngOnChanges(changes: SimpleChanges): void {\r\n const { size, labelAlign } = changes;\r\n XIsChange(size, labelAlign) && this.setClassMap();\r\n }\r\n\r\n ngOnInit() {\r\n this.setFlex(this.switch.nativeElement, this.renderer, this.justify, this.align, this.direction);\r\n this.setClassMap();\r\n }\r\n\r\n setClassMap() {\r\n XClearClass(this.classMap, this.labelMap);\r\n this.classMap[`${XSwitchPrefix}-${this.size}`] = this.size ? true : false;\r\n this.labelMap[`x-text-align-${this.labelAlign}`] = this.labelAlign ? true : false;\r\n }\r\n\r\n switchClick() {\r\n if (this.disabled || this.loading || this.manual) return;\r\n this.value = !this.value;\r\n if (this.onChange) this.onChange(this.value);\r\n this.cdr.detectChanges();\r\n }\r\n\r\n formControlChanges() {\r\n this.ngOnInit();\r\n this.cdr.detectChanges();\r\n }\r\n}\r\n","<div\r\n #switch\r\n class=\"x-switch\"\r\n [ngClass]=\"classMap\"\r\n [class.x-switch-loading]=\"loading\"\r\n [class.x-flex]=\"justify || align || direction\"\r\n [class.x-checked]=\"value\"\r\n [class.x-disabled]=\"disabled\"\r\n>\r\n <label *ngIf=\"label\" [style.width]=\"labelWidth\" [ngClass]=\"labelMap\">{{ label }}</label>\r\n <div class=\"x-switch-row\">\r\n <div class=\"x-switch-slider\" (click)=\"switchClick()\">\r\n <div class=\"x-switch-handle\">\r\n <div class=\"x-switch-spinner\" [x-loading]=\"loading\" [size]=\"size\"></div>\r\n </div>\r\n <div class=\"x-switch-text\">\r\n <ng-container *ngIf=\"value; else uncheckTemplate\">\r\n <ng-container *xOutlet=\"checkedText\">{{ checkedText }}</ng-container>\r\n </ng-container>\r\n <ng-template #uncheckTemplate>\r\n <ng-container *xOutlet=\"unCheckedText\">{{ unCheckedText }}</ng-container>\r\n </ng-template>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\r\nimport { XSwitchComponent } from './switch.component';\r\nimport { XSwitchProperty } from './switch.property';\r\nimport { XBaseFormModule } from '@ng-nest/ui/base-form';\r\nimport { XLoadingModule } from '@ng-nest/ui/loading';\r\nimport { XOutletModule } from '@ng-nest/ui/outlet';\r\n\r\n@NgModule({\r\n declarations: [XSwitchComponent, XSwitchProperty],\r\n exports: [XSwitchComponent],\r\n imports: [CommonModule, FormsModule, ReactiveFormsModule, XBaseFormModule, XLoadingModule, XOutletModule]\r\n})\r\nexport class XSwitchModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAIA;;;;AAIG;AACI,MAAM,aAAa,GAAG,WAAW;AACxC,MAAM,aAAa,GAAG,QAAQ,CAAC;AAE/B;;AAEG;AACH,MACa,eAAgB,SAAQ,qBAA8B,CAAA;AADnE,IAAA,WAAA,GAAA;;AAEE;;;AAGG;QACuB,IAAO,CAAA,OAAA,GAAa,KAAK,CAAC;AACpD;;;AAGG;QACuB,IAAM,CAAA,MAAA,GAAa,KAAK,CAAC;AAgBpD,KAAA;kIA1BY,eAAe,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EA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A,CAAA;AACR,oBAAA,YAAY,EAAE,CAAC,gBAAgB,EAAE,eAAe,CAAC;oBACjD,OAAO,EAAE,CAAC,gBAAgB,CAAC;AAC3B,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,WAAW,EAAE,mBAAmB,EAAE,eAAe,EAAE,cAAc,EAAE,aAAa,CAAC;AAC1G,iBAAA,CAAA;;;ACbD;;AAEG;;;;"}
1
+ {"version":3,"file":"ng-nest-ui-switch.mjs","sources":["../../../../lib/ng-nest/ui/switch/switch.property.ts","../../../../lib/ng-nest/ui/switch/switch.component.ts","../../../../lib/ng-nest/ui/switch/switch.component.html","../../../../lib/ng-nest/ui/switch/switch.module.ts","../../../../lib/ng-nest/ui/switch/ng-nest-ui-switch.ts"],"sourcesContent":["import { Component, Input } from '@angular/core';\r\nimport { XControlValueAccessor, XFormOption } from '@ng-nest/ui/base-form';\r\nimport { XBoolean, XInputBoolean, XSize, XTemplate, XWithConfig } from '@ng-nest/ui/core';\r\n\r\n/**\r\n * Switch\r\n * @selector x-switch\r\n * @decorator component\r\n */\r\nexport const XSwitchPrefix = 'x-switch';\r\nconst X_CONFIG_NAME = 'switch';\r\n\r\n/**\r\n * Switch Property\r\n */\r\n@Component({ selector: `${XSwitchPrefix}-property`, template: '' })\r\nexport class XSwitchProperty extends XControlValueAccessor<boolean> implements XSwitchOption {\r\n /**\r\n * @zh_CN 显示加载中\r\n * @en_US Show loading\r\n */\r\n @Input() @XInputBoolean() loading: XBoolean = false;\r\n /**\r\n * @zh_CN 手动控制\r\n * @en_US Manual control\r\n */\r\n @Input() @XInputBoolean() manual: XBoolean = false;\r\n /**\r\n * @zh_CN 尺寸\r\n * @en_US Size\r\n */\r\n @Input() @XWithConfig<XSize>(X_CONFIG_NAME, 'medium') override size!: XSize;\r\n /**\r\n * @zh_CN 显示文字或者自定义模版(开启状态)\r\n * @en_US Display text or custom template (open state)\r\n */\r\n @Input() checkedText?: XTemplate;\r\n /**\r\n * @zh_CN 显示文字或者自定义模版(关闭状态)\r\n * @en_US Display text or custom template (closed)\r\n */\r\n @Input() unCheckedText?: XTemplate;\r\n}\r\n\r\n/**\r\n * Switch Option\r\n * @undocument true\r\n */\r\nexport interface XSwitchOption extends XFormOption {\r\n /**\r\n * @zh_CN 显示加载中\r\n * @en_US Show loading\r\n */\r\n loading?: XBoolean;\r\n /**\r\n * @zh_CN 手动控制\r\n * @en_US Manual control\r\n */\r\n manual?: XBoolean;\r\n /**\r\n * @zh_CN 显示文字或者自定义模版(开启状态)\r\n * @en_US Display text or custom template (open state)\r\n */\r\n checkedText?: XTemplate;\r\n /**\r\n * @zh_CN 显示文字或者自定义模版(关闭状态)\r\n * @en_US Display text or custom template (closed)\r\n */\r\n unCheckedText?: XTemplate;\r\n}\r\n","import {\r\n Component,\r\n OnInit,\r\n ViewEncapsulation,\r\n ChangeDetectionStrategy,\r\n ChangeDetectorRef,\r\n Renderer2,\r\n ElementRef,\r\n ViewChild,\r\n SimpleChanges\r\n} from '@angular/core';\r\nimport { XSwitchProperty, XSwitchPrefix } from './switch.property';\r\nimport { XClearClass, XConfigService, XIsChange } from '@ng-nest/ui/core';\r\nimport { XValueAccessor } from '@ng-nest/ui/base-form';\r\n\r\n@Component({\r\n selector: `${XSwitchPrefix}`,\r\n templateUrl: './switch.component.html',\r\n styleUrls: ['./switch.component.scss'],\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n providers: [XValueAccessor(XSwitchComponent)]\r\n})\r\nexport class XSwitchComponent extends XSwitchProperty implements OnInit {\r\n @ViewChild('switch', { static: true }) switch!: ElementRef<HTMLElement>;\r\n\r\n override writeValue(value: any) {\r\n this.value = value;\r\n this.cdr.detectChanges();\r\n }\r\n\r\n constructor(public renderer: Renderer2, public override cdr: ChangeDetectorRef, public configService: XConfigService) {\r\n super();\r\n }\r\n\r\n ngOnChanges(changes: SimpleChanges): void {\r\n const { size, labelAlign } = changes;\r\n XIsChange(size, labelAlign) && this.setClassMap();\r\n }\r\n\r\n ngOnInit() {\r\n this.setFlex(this.switch.nativeElement, this.renderer, this.justify, this.align, this.direction);\r\n this.setClassMap();\r\n }\r\n\r\n setClassMap() {\r\n XClearClass(this.classMap, this.labelMap);\r\n this.classMap[`${XSwitchPrefix}-${this.size}`] = this.size ? true : false;\r\n this.labelMap[`x-text-align-${this.labelAlign}`] = this.labelAlign ? true : false;\r\n }\r\n\r\n switchClick() {\r\n if (this.disabled || this.loading || this.manual) return;\r\n this.value = !this.value;\r\n if (this.onChange) this.onChange(this.value);\r\n this.cdr.detectChanges();\r\n }\r\n\r\n formControlChanges() {\r\n this.ngOnInit();\r\n this.cdr.detectChanges();\r\n }\r\n}\r\n","<div\r\n #switch\r\n class=\"x-switch\"\r\n [ngClass]=\"classMap\"\r\n [class.x-switch-loading]=\"loading\"\r\n [class.x-flex]=\"justify || align || direction\"\r\n [class.x-checked]=\"value\"\r\n [class.x-disabled]=\"disabled\"\r\n>\r\n <label *ngIf=\"label\" [style.width]=\"labelWidth\" [ngClass]=\"labelMap\">{{ label }}</label>\r\n <div class=\"x-switch-row\">\r\n <div class=\"x-switch-slider\" (click)=\"switchClick()\">\r\n <div class=\"x-switch-handle\">\r\n <div class=\"x-switch-spinner\" [x-loading]=\"loading\" [size]=\"size\"></div>\r\n </div>\r\n <div class=\"x-switch-text\">\r\n <ng-container *ngIf=\"value; else uncheckTemplate\">\r\n <ng-container *xOutlet=\"checkedText\">{{ checkedText }}</ng-container>\r\n </ng-container>\r\n <ng-template #uncheckTemplate>\r\n <ng-container *xOutlet=\"unCheckedText\">{{ unCheckedText }}</ng-container>\r\n </ng-template>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\r\nimport { XSwitchComponent } from './switch.component';\r\nimport { XSwitchProperty } from './switch.property';\r\nimport { XBaseFormModule } from '@ng-nest/ui/base-form';\r\nimport { XLoadingModule } from '@ng-nest/ui/loading';\r\nimport { XOutletModule } from '@ng-nest/ui/outlet';\r\n\r\n@NgModule({\r\n declarations: [XSwitchComponent, XSwitchProperty],\r\n exports: [XSwitchComponent],\r\n imports: [CommonModule, FormsModule, ReactiveFormsModule, XBaseFormModule, XLoadingModule, XOutletModule]\r\n})\r\nexport class XSwitchModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAIA;;;;AAIG;AACI,MAAM,aAAa,GAAG,WAAW;AACxC,MAAM,aAAa,GAAG,QAAQ,CAAC;AAE/B;;AAEG;AAEG,MAAO,eAAgB,SAAQ,qBAA8B,CAAA;AADnE,IAAA,WAAA,GAAA;;AAEE;;;AAGG;QACuB,IAAO,CAAA,OAAA,GAAa,KAAK,CAAC;AACpD;;;AAGG;QACuB,IAAM,CAAA,MAAA,GAAa,KAAK,CAAC;AAgBpD,KAAA;iIA1BY,eAAe,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAf,uBAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,eAAe,4MADkC,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,CAAA,EAAA;;AAMpC,UAAA,CAAA;AAAhB,IAAA,aAAa,EAAE;AAA2B,CAAA,EAAA,eAAA,CAAA,SAAA,EAAA,SAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAK1B,UAAA,CAAA;AAAhB,IAAA,aAAa,EAAE;AAA0B,CAAA,EAAA,eAAA,CAAA,SAAA,EAAA,QAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAKY,UAAA,CAAA;AAArD,IAAA,WAAW,CAAQ,aAAa,EAAE,QAAQ,CAAC;AAAuB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