@ng-nest/ui 14.0.13 → 15.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 (857) hide show
  1. package/README.md +1 -1
  2. package/affix/affix.component.d.ts +1 -1
  3. package/affix/affix.property.d.ts +1 -1
  4. package/alert/alert.component.d.ts +1 -1
  5. package/alert/alert.property.d.ts +1 -1
  6. package/anchor/anchor.component.d.ts +1 -1
  7. package/anchor/anchor.property.d.ts +1 -1
  8. package/api/api.component.d.ts +1 -1
  9. package/auto-complete/auto-complete-portal.component.d.ts +1 -1
  10. package/auto-complete/auto-complete.component.d.ts +1 -1
  11. package/auto-complete/auto-complete.property.d.ts +1 -1
  12. package/avatar/avatar-group.component.d.ts +1 -1
  13. package/avatar/avatar.component.d.ts +1 -1
  14. package/avatar/avatar.property.d.ts +2 -2
  15. package/back-top/back-top.component.d.ts +1 -1
  16. package/back-top/back-top.property.d.ts +1 -1
  17. package/badge/badge.component.d.ts +1 -1
  18. package/badge/badge.property.d.ts +1 -1
  19. package/base-form/base-form.component.d.ts +1 -1
  20. package/base-form/base-form.property.d.ts +1 -1
  21. package/border/border.component.d.ts +1 -1
  22. package/button/button.component.d.ts +1 -1
  23. package/button/button.property.d.ts +2 -2
  24. package/button/buttons.component.d.ts +1 -1
  25. package/calendar/calendar.component.d.ts +1 -1
  26. package/calendar/calendar.property.d.ts +1 -1
  27. package/card/card.component.d.ts +1 -1
  28. package/card/card.property.d.ts +1 -1
  29. package/carousel/carousel-panel.component.d.ts +1 -1
  30. package/carousel/carousel.component.d.ts +1 -1
  31. package/carousel/carousel.property.d.ts +2 -2
  32. package/cascade/cascade-portal.component.d.ts +1 -1
  33. package/cascade/cascade.component.d.ts +1 -1
  34. package/cascade/cascade.property.d.ts +1 -1
  35. package/checkbox/checkbox.component.d.ts +1 -1
  36. package/checkbox/checkbox.property.d.ts +1 -1
  37. package/collapse/collapse-panel.component.d.ts +1 -1
  38. package/collapse/collapse.component.d.ts +1 -1
  39. package/collapse/collapse.property.d.ts +2 -2
  40. package/color/color.component.d.ts +1 -1
  41. package/color/color.property.d.ts +1 -1
  42. package/color-picker/color-picker-portal.component.d.ts +1 -1
  43. package/color-picker/color-picker.component.d.ts +1 -1
  44. package/color-picker/color-picker.property.d.ts +1 -1
  45. package/comment/comment-reply.component.d.ts +1 -1
  46. package/comment/comment.component.d.ts +1 -1
  47. package/comment/comment.property.d.ts +2 -2
  48. package/container/aside.component.d.ts +1 -1
  49. package/container/container.component.d.ts +1 -1
  50. package/container/container.property.d.ts +4 -4
  51. package/container/footer.component.d.ts +1 -1
  52. package/container/header.component.d.ts +1 -1
  53. package/container/main.component.d.ts +1 -1
  54. package/crumb/crumb.component.d.ts +1 -1
  55. package/crumb/crumb.property.d.ts +1 -1
  56. package/date-picker/date-picker-portal.component.d.ts +1 -1
  57. package/date-picker/date-picker.component.d.ts +1 -1
  58. package/date-picker/date-picker.property.d.ts +5 -5
  59. package/date-picker/date-range-portal.component.d.ts +1 -1
  60. package/date-picker/date-range.component.d.ts +1 -1
  61. package/date-picker/picker-date.component.d.ts +1 -1
  62. package/date-picker/picker-month.component.d.ts +1 -1
  63. package/date-picker/picker-year.component.d.ts +1 -1
  64. package/description/description-item.component.d.ts +1 -1
  65. package/description/description.component.d.ts +1 -1
  66. package/description/description.property.d.ts +2 -2
  67. package/dialog/dialog-container.component.d.ts +1 -1
  68. package/dialog/dialog-portal.component.d.ts +1 -1
  69. package/dialog/dialog-portal.directives.d.ts +6 -6
  70. package/dialog/dialog.component.d.ts +1 -1
  71. package/dialog/dialog.property.d.ts +2 -2
  72. package/doc/doc.component.d.ts +1 -1
  73. package/drawer/drawer-container.component.d.ts +1 -1
  74. package/drawer/drawer-portal.component.d.ts +1 -1
  75. package/drawer/drawer-portal.directives.d.ts +3 -3
  76. package/drawer/drawer.component.d.ts +1 -1
  77. package/drawer/drawer.property.d.ts +2 -2
  78. package/dropdown/dropdown-portal.component.d.ts +1 -1
  79. package/dropdown/dropdown.component.d.ts +1 -1
  80. package/dropdown/dropdown.property.d.ts +1 -1
  81. package/empty/empty.component.d.ts +1 -1
  82. package/empty/empty.property.d.ts +1 -1
  83. package/esm2020/affix/affix.component.mjs +4 -4
  84. package/esm2020/affix/affix.module.mjs +5 -5
  85. package/esm2020/affix/affix.property.mjs +4 -4
  86. package/esm2020/alert/alert.component.mjs +4 -4
  87. package/esm2020/alert/alert.module.mjs +5 -5
  88. package/esm2020/alert/alert.property.mjs +4 -4
  89. package/esm2020/anchor/anchor.component.mjs +4 -4
  90. package/esm2020/anchor/anchor.module.mjs +5 -5
  91. package/esm2020/anchor/anchor.property.mjs +4 -4
  92. package/esm2020/api/api.component.mjs +4 -4
  93. package/esm2020/api/api.module.mjs +5 -5
  94. package/esm2020/auto-complete/auto-complete-portal.component.mjs +4 -4
  95. package/esm2020/auto-complete/auto-complete.component.mjs +4 -4
  96. package/esm2020/auto-complete/auto-complete.module.mjs +5 -5
  97. package/esm2020/auto-complete/auto-complete.property.mjs +4 -4
  98. package/esm2020/avatar/avatar-group.component.mjs +4 -4
  99. package/esm2020/avatar/avatar.component.mjs +4 -4
  100. package/esm2020/avatar/avatar.module.mjs +5 -5
  101. package/esm2020/avatar/avatar.property.mjs +7 -7
  102. package/esm2020/back-top/back-top.component.mjs +4 -4
  103. package/esm2020/back-top/back-top.module.mjs +5 -5
  104. package/esm2020/back-top/back-top.property.mjs +4 -4
  105. package/esm2020/badge/badge.component.mjs +4 -4
  106. package/esm2020/badge/badge.module.mjs +5 -5
  107. package/esm2020/badge/badge.property.mjs +4 -4
  108. package/esm2020/base-form/base-form.component.mjs +4 -4
  109. package/esm2020/base-form/base-form.module.mjs +5 -5
  110. package/esm2020/base-form/base-form.property.mjs +4 -4
  111. package/esm2020/border/border.component.mjs +4 -4
  112. package/esm2020/border/border.module.mjs +5 -5
  113. package/esm2020/button/button.component.mjs +4 -4
  114. package/esm2020/button/button.module.mjs +5 -5
  115. package/esm2020/button/button.property.mjs +7 -7
  116. package/esm2020/button/buttons.component.mjs +4 -4
  117. package/esm2020/calendar/calendar.component.mjs +4 -4
  118. package/esm2020/calendar/calendar.module.mjs +5 -5
  119. package/esm2020/calendar/calendar.property.mjs +4 -4
  120. package/esm2020/card/card.component.mjs +4 -4
  121. package/esm2020/card/card.module.mjs +5 -5
  122. package/esm2020/card/card.property.mjs +4 -4
  123. package/esm2020/carousel/carousel-panel.component.mjs +4 -4
  124. package/esm2020/carousel/carousel.component.mjs +4 -4
  125. package/esm2020/carousel/carousel.module.mjs +5 -5
  126. package/esm2020/carousel/carousel.property.mjs +7 -7
  127. package/esm2020/cascade/cascade-portal.component.mjs +4 -4
  128. package/esm2020/cascade/cascade.component.mjs +4 -4
  129. package/esm2020/cascade/cascade.module.mjs +5 -5
  130. package/esm2020/cascade/cascade.property.mjs +4 -4
  131. package/esm2020/checkbox/checkbox.component.mjs +4 -4
  132. package/esm2020/checkbox/checkbox.module.mjs +5 -5
  133. package/esm2020/checkbox/checkbox.property.mjs +4 -4
  134. package/esm2020/collapse/collapse-panel.component.mjs +4 -4
  135. package/esm2020/collapse/collapse.component.mjs +4 -4
  136. package/esm2020/collapse/collapse.module.mjs +5 -5
  137. package/esm2020/collapse/collapse.property.mjs +7 -7
  138. package/esm2020/color/color.component.mjs +4 -4
  139. package/esm2020/color/color.module.mjs +5 -5
  140. package/esm2020/color/color.property.mjs +4 -4
  141. package/esm2020/color-picker/color-picker-portal.component.mjs +4 -4
  142. package/esm2020/color-picker/color-picker.component.mjs +4 -4
  143. package/esm2020/color-picker/color-picker.module.mjs +5 -5
  144. package/esm2020/color-picker/color-picker.property.mjs +4 -4
  145. package/esm2020/comment/comment-reply.component.mjs +4 -4
  146. package/esm2020/comment/comment.component.mjs +4 -4
  147. package/esm2020/comment/comment.module.mjs +5 -5
  148. package/esm2020/comment/comment.property.mjs +7 -7
  149. package/esm2020/container/aside.component.mjs +4 -4
  150. package/esm2020/container/container.component.mjs +4 -4
  151. package/esm2020/container/container.module.mjs +5 -5
  152. package/esm2020/container/container.property.mjs +13 -13
  153. package/esm2020/container/footer.component.mjs +4 -4
  154. package/esm2020/container/header.component.mjs +4 -4
  155. package/esm2020/container/main.component.mjs +4 -4
  156. package/esm2020/core/config/config.service.mjs +4 -4
  157. package/esm2020/core/services/http.service.mjs +4 -4
  158. package/esm2020/core/services/preloading-strategy.service.mjs +4 -4
  159. package/esm2020/core/services/storage.service.mjs +4 -4
  160. package/esm2020/core/theme/theme.service.mjs +4 -4
  161. package/esm2020/crumb/crumb.component.mjs +4 -4
  162. package/esm2020/crumb/crumb.module.mjs +5 -5
  163. package/esm2020/crumb/crumb.property.mjs +4 -4
  164. package/esm2020/date-picker/date-picker-portal.component.mjs +4 -4
  165. package/esm2020/date-picker/date-picker.component.mjs +4 -4
  166. package/esm2020/date-picker/date-picker.module.mjs +5 -5
  167. package/esm2020/date-picker/date-picker.property.mjs +16 -16
  168. package/esm2020/date-picker/date-range-portal.component.mjs +4 -4
  169. package/esm2020/date-picker/date-range.component.mjs +4 -4
  170. package/esm2020/date-picker/picker-date.component.mjs +4 -4
  171. package/esm2020/date-picker/picker-month.component.mjs +4 -4
  172. package/esm2020/date-picker/picker-year.component.mjs +4 -4
  173. package/esm2020/description/description-item.component.mjs +4 -4
  174. package/esm2020/description/description.component.mjs +4 -4
  175. package/esm2020/description/description.module.mjs +5 -5
  176. package/esm2020/description/description.property.mjs +7 -7
  177. package/esm2020/dialog/dialog-container.component.mjs +4 -4
  178. package/esm2020/dialog/dialog-portal.component.mjs +4 -4
  179. package/esm2020/dialog/dialog-portal.directives.mjs +19 -19
  180. package/esm2020/dialog/dialog.component.mjs +4 -4
  181. package/esm2020/dialog/dialog.module.mjs +5 -5
  182. package/esm2020/dialog/dialog.property.mjs +7 -7
  183. package/esm2020/dialog/dialog.service.mjs +4 -4
  184. package/esm2020/doc/doc.component.mjs +4 -4
  185. package/esm2020/doc/doc.module.mjs +5 -5
  186. package/esm2020/drawer/drawer-container.component.mjs +4 -4
  187. package/esm2020/drawer/drawer-portal.component.mjs +4 -4
  188. package/esm2020/drawer/drawer-portal.directives.mjs +10 -10
  189. package/esm2020/drawer/drawer.component.mjs +4 -4
  190. package/esm2020/drawer/drawer.module.mjs +5 -5
  191. package/esm2020/drawer/drawer.property.mjs +7 -7
  192. package/esm2020/drawer/drawer.service.mjs +4 -4
  193. package/esm2020/dropdown/dropdown-portal.component.mjs +4 -4
  194. package/esm2020/dropdown/dropdown.component.mjs +4 -4
  195. package/esm2020/dropdown/dropdown.module.mjs +5 -5
  196. package/esm2020/dropdown/dropdown.property.mjs +4 -4
  197. package/esm2020/empty/empty.component.mjs +4 -4
  198. package/esm2020/empty/empty.module.mjs +5 -5
  199. package/esm2020/empty/empty.property.mjs +4 -4
  200. package/esm2020/examples/examples.component.mjs +4 -4
  201. package/esm2020/examples/examples.module.mjs +5 -5
  202. package/esm2020/find/find.component.mjs +4 -4
  203. package/esm2020/find/find.module.mjs +5 -5
  204. package/esm2020/find/find.property.mjs +4 -4
  205. package/esm2020/form/control.component.mjs +4 -4
  206. package/esm2020/form/form.component.mjs +4 -4
  207. package/esm2020/form/form.module.mjs +5 -5
  208. package/esm2020/form/form.property.mjs +7 -7
  209. package/esm2020/highlight/highlight.component.mjs +4 -4
  210. package/esm2020/highlight/highlight.module.mjs +5 -5
  211. package/esm2020/highlight/highlight.property.mjs +4 -4
  212. package/esm2020/i18n/i18n.directive.mjs +4 -4
  213. package/esm2020/i18n/i18n.module.mjs +5 -5
  214. package/esm2020/i18n/i18n.pipe.mjs +4 -4
  215. package/esm2020/i18n/i18n.service.mjs +4 -4
  216. package/esm2020/icon/icon.component.mjs +4 -4
  217. package/esm2020/icon/icon.module.mjs +5 -5
  218. package/esm2020/icon/icon.property.mjs +4 -4
  219. package/esm2020/icon/icon.service.mjs +4 -4
  220. package/esm2020/image/image-group.component.mjs +4 -4
  221. package/esm2020/image/image-preview.component.mjs +4 -4
  222. package/esm2020/image/image.component.mjs +4 -4
  223. package/esm2020/image/image.module.mjs +5 -5
  224. package/esm2020/image/image.property.mjs +7 -7
  225. package/esm2020/inner/inner.component.mjs +4 -4
  226. package/esm2020/inner/inner.module.mjs +5 -5
  227. package/esm2020/inner/inner.property.mjs +4 -4
  228. package/esm2020/input/input-group.component.mjs +4 -4
  229. package/esm2020/input/input.component.mjs +4 -4
  230. package/esm2020/input/input.module.mjs +5 -5
  231. package/esm2020/input/input.property.mjs +7 -7
  232. package/esm2020/input-number/input-number.component.mjs +4 -4
  233. package/esm2020/input-number/input-number.module.mjs +5 -5
  234. package/esm2020/input-number/input-number.property.mjs +4 -4
  235. package/esm2020/keyword/keyword.directive.mjs +4 -4
  236. package/esm2020/keyword/keyword.module.mjs +5 -5
  237. package/esm2020/keyword/keyword.property.mjs +4 -4
  238. package/esm2020/layout/col.component.mjs +4 -4
  239. package/esm2020/layout/layout.module.mjs +5 -5
  240. package/esm2020/layout/layout.property.mjs +7 -7
  241. package/esm2020/layout/row.component.mjs +4 -4
  242. package/esm2020/link/link.component.mjs +4 -4
  243. package/esm2020/link/link.module.mjs +5 -5
  244. package/esm2020/link/link.property.mjs +4 -4
  245. package/esm2020/list/list-drop-group.directive.mjs +4 -4
  246. package/esm2020/list/list-option.component.mjs +4 -4
  247. package/esm2020/list/list.component.mjs +4 -4
  248. package/esm2020/list/list.module.mjs +5 -5
  249. package/esm2020/list/list.property.mjs +7 -7
  250. package/esm2020/loading/loading.component.mjs +4 -4
  251. package/esm2020/loading/loading.module.mjs +5 -5
  252. package/esm2020/loading/loading.property.mjs +4 -4
  253. package/esm2020/menu/menu-node.component.mjs +4 -4
  254. package/esm2020/menu/menu.component.mjs +4 -4
  255. package/esm2020/menu/menu.module.mjs +5 -5
  256. package/esm2020/menu/menu.property.mjs +7 -7
  257. package/esm2020/message/message.component.mjs +4 -4
  258. package/esm2020/message/message.module.mjs +5 -5
  259. package/esm2020/message/message.service.mjs +4 -4
  260. package/esm2020/message-box/message-box.component.mjs +4 -4
  261. package/esm2020/message-box/message-box.module.mjs +5 -5
  262. package/esm2020/message-box/message-box.service.mjs +4 -4
  263. package/esm2020/notification/notification.component.mjs +4 -4
  264. package/esm2020/notification/notification.module.mjs +5 -5
  265. package/esm2020/notification/notification.service.mjs +4 -4
  266. package/esm2020/outlet/outlet.directive.mjs +4 -4
  267. package/esm2020/outlet/outlet.module.mjs +5 -5
  268. package/esm2020/page-header/page-header.component.mjs +4 -4
  269. package/esm2020/page-header/page-header.module.mjs +5 -5
  270. package/esm2020/page-header/page-header.property.mjs +4 -4
  271. package/esm2020/pagination/pagination.component.mjs +4 -4
  272. package/esm2020/pagination/pagination.module.mjs +5 -5
  273. package/esm2020/pagination/pagination.property.mjs +4 -4
  274. package/esm2020/pattern/pattern.component.mjs +4 -4
  275. package/esm2020/pattern/pattern.module.mjs +5 -5
  276. package/esm2020/popconfirm/popconfirm.component.mjs +4 -4
  277. package/esm2020/popconfirm/popconfirm.module.mjs +5 -5
  278. package/esm2020/popconfirm/popconfirm.property.mjs +4 -4
  279. package/esm2020/popover/popover-portal.component.mjs +4 -4
  280. package/esm2020/popover/popover.directive.mjs +4 -4
  281. package/esm2020/popover/popover.module.mjs +5 -5
  282. package/esm2020/popover/popover.property.mjs +4 -4
  283. package/esm2020/portal/portal.module.mjs +5 -5
  284. package/esm2020/portal/portal.service.mjs +4 -4
  285. package/esm2020/progress/progress.component.mjs +4 -4
  286. package/esm2020/progress/progress.module.mjs +5 -5
  287. package/esm2020/progress/progress.property.mjs +4 -4
  288. package/esm2020/radio/radio.component.mjs +4 -4
  289. package/esm2020/radio/radio.module.mjs +5 -5
  290. package/esm2020/radio/radio.property.mjs +4 -4
  291. package/esm2020/rate/rate.component.mjs +4 -4
  292. package/esm2020/rate/rate.module.mjs +5 -5
  293. package/esm2020/rate/rate.property.mjs +4 -4
  294. package/esm2020/resizable/resizable.directive.mjs +4 -4
  295. package/esm2020/resizable/resizable.module.mjs +5 -5
  296. package/esm2020/resizable/resizable.property.mjs +4 -4
  297. package/esm2020/result/result.component.mjs +4 -4
  298. package/esm2020/result/result.module.mjs +5 -5
  299. package/esm2020/result/result.property.mjs +4 -4
  300. package/esm2020/ripple/ripple.directive.mjs +4 -4
  301. package/esm2020/ripple/ripple.module.mjs +5 -5
  302. package/esm2020/ripple/ripple.property.mjs +4 -4
  303. package/esm2020/select/select-portal.component.mjs +4 -4
  304. package/esm2020/select/select.component.mjs +4 -4
  305. package/esm2020/select/select.module.mjs +5 -5
  306. package/esm2020/select/select.property.mjs +4 -4
  307. package/esm2020/skeleton/skeleton.component.mjs +4 -4
  308. package/esm2020/skeleton/skeleton.module.mjs +5 -5
  309. package/esm2020/skeleton/skeleton.property.mjs +4 -4
  310. package/esm2020/slider/slider.component.mjs +4 -4
  311. package/esm2020/slider/slider.module.mjs +5 -5
  312. package/esm2020/slider/slider.property.mjs +4 -4
  313. package/esm2020/slider-select/slider-select.component.mjs +4 -4
  314. package/esm2020/slider-select/slider-select.module.mjs +5 -5
  315. package/esm2020/slider-select/slider-select.property.mjs +4 -4
  316. package/esm2020/statistic/countdown.component.mjs +4 -4
  317. package/esm2020/statistic/statistic.component.mjs +4 -4
  318. package/esm2020/statistic/statistic.module.mjs +5 -5
  319. package/esm2020/statistic/statistic.property.mjs +7 -7
  320. package/esm2020/steps/steps.component.mjs +4 -4
  321. package/esm2020/steps/steps.module.mjs +5 -5
  322. package/esm2020/steps/steps.property.mjs +4 -4
  323. package/esm2020/switch/switch.component.mjs +4 -4
  324. package/esm2020/switch/switch.module.mjs +5 -5
  325. package/esm2020/switch/switch.property.mjs +4 -4
  326. package/esm2020/table/drag.directive.mjs +4 -4
  327. package/esm2020/table/table-body.component.mjs +4 -4
  328. package/esm2020/table/table-foot.component.mjs +4 -4
  329. package/esm2020/table/table-head.component.mjs +4 -4
  330. package/esm2020/table/table.component.mjs +4 -4
  331. package/esm2020/table/table.module.mjs +5 -5
  332. package/esm2020/table/table.property.mjs +13 -13
  333. package/esm2020/tabs/tab-content.component.mjs +4 -4
  334. package/esm2020/tabs/tab-link.directive.mjs +7 -7
  335. package/esm2020/tabs/tab.component.mjs +4 -4
  336. package/esm2020/tabs/tabs.component.mjs +4 -4
  337. package/esm2020/tabs/tabs.module.mjs +5 -5
  338. package/esm2020/tabs/tabs.property.mjs +7 -7
  339. package/esm2020/tag/tag.component.mjs +4 -4
  340. package/esm2020/tag/tag.module.mjs +5 -5
  341. package/esm2020/tag/tag.property.mjs +4 -4
  342. package/esm2020/text-retract/text-retract.component.mjs +4 -4
  343. package/esm2020/text-retract/text-retract.module.mjs +5 -5
  344. package/esm2020/text-retract/text-retract.property.mjs +4 -4
  345. package/esm2020/textarea/textarea.component.mjs +4 -4
  346. package/esm2020/textarea/textarea.module.mjs +5 -5
  347. package/esm2020/textarea/textarea.property.mjs +4 -4
  348. package/esm2020/theme/theme.component.mjs +4 -4
  349. package/esm2020/theme/theme.module.mjs +5 -5
  350. package/esm2020/theme/theme.property.mjs +4 -4
  351. package/esm2020/time-ago/time-ago.module.mjs +5 -5
  352. package/esm2020/time-ago/time-ago.pipe.mjs +4 -4
  353. package/esm2020/time-picker/time-picker-frame.component.mjs +7 -7
  354. package/esm2020/time-picker/time-picker-portal.component.mjs +4 -4
  355. package/esm2020/time-picker/time-picker.component.mjs +4 -4
  356. package/esm2020/time-picker/time-picker.module.mjs +5 -5
  357. package/esm2020/time-picker/time-picker.property.mjs +4 -4
  358. package/esm2020/time-range/time-range.module.mjs +5 -5
  359. package/esm2020/time-range/time-range.pipe.mjs +4 -4
  360. package/esm2020/timeline/timeline.component.mjs +4 -4
  361. package/esm2020/timeline/timeline.module.mjs +5 -5
  362. package/esm2020/timeline/timeline.property.mjs +4 -4
  363. package/esm2020/tooltip/tooltip-portal.component.mjs +4 -4
  364. package/esm2020/tooltip/tooltip.directive.mjs +4 -4
  365. package/esm2020/tooltip/tooltip.module.mjs +5 -5
  366. package/esm2020/tooltip/tooltip.property.mjs +4 -4
  367. package/esm2020/transfer/transfer.component.mjs +5 -5
  368. package/esm2020/transfer/transfer.module.mjs +5 -5
  369. package/esm2020/transfer/transfer.property.mjs +4 -4
  370. package/esm2020/tree/tree-node.component.mjs +4 -4
  371. package/esm2020/tree/tree.component.mjs +4 -4
  372. package/esm2020/tree/tree.module.mjs +5 -5
  373. package/esm2020/tree/tree.property.mjs +7 -7
  374. package/esm2020/tree-file/tree-file.component.mjs +4 -4
  375. package/esm2020/tree-file/tree-file.module.mjs +5 -5
  376. package/esm2020/tree-file/tree-file.property.mjs +4 -4
  377. package/esm2020/tree-select/tree-select-portal.component.mjs +4 -4
  378. package/esm2020/tree-select/tree-select.component.mjs +4 -4
  379. package/esm2020/tree-select/tree-select.module.mjs +5 -5
  380. package/esm2020/tree-select/tree-select.property.mjs +4 -4
  381. package/esm2020/typography/typography.component.mjs +4 -4
  382. package/esm2020/typography/typography.module.mjs +5 -5
  383. package/esm2020/typography/typography.property.mjs +4 -4
  384. package/esm2020/upload/upload-portal.component.mjs +4 -4
  385. package/esm2020/upload/upload.component.mjs +4 -4
  386. package/esm2020/upload/upload.module.mjs +5 -5
  387. package/esm2020/upload/upload.property.mjs +4 -4
  388. package/examples/examples.component.d.ts +1 -1
  389. package/fesm2015/ng-nest-ui-affix.mjs +11 -10
  390. package/fesm2015/ng-nest-ui-affix.mjs.map +1 -1
  391. package/fesm2015/ng-nest-ui-alert.mjs +11 -10
  392. package/fesm2015/ng-nest-ui-alert.mjs.map +1 -1
  393. package/fesm2015/ng-nest-ui-anchor.mjs +10 -10
  394. package/fesm2015/ng-nest-ui-anchor.mjs.map +1 -1
  395. package/fesm2015/ng-nest-ui-api.mjs +8 -7
  396. package/fesm2015/ng-nest-ui-api.mjs.map +1 -1
  397. package/fesm2015/ng-nest-ui-auto-complete.mjs +14 -13
  398. package/fesm2015/ng-nest-ui-auto-complete.mjs.map +1 -1
  399. package/fesm2015/ng-nest-ui-avatar.mjs +17 -16
  400. package/fesm2015/ng-nest-ui-avatar.mjs.map +1 -1
  401. package/fesm2015/ng-nest-ui-back-top.mjs +11 -10
  402. package/fesm2015/ng-nest-ui-back-top.mjs.map +1 -1
  403. package/fesm2015/ng-nest-ui-badge.mjs +11 -10
  404. package/fesm2015/ng-nest-ui-badge.mjs.map +1 -1
  405. package/fesm2015/ng-nest-ui-base-form.mjs +11 -10
  406. package/fesm2015/ng-nest-ui-base-form.mjs.map +1 -1
  407. package/fesm2015/ng-nest-ui-border.mjs +8 -7
  408. package/fesm2015/ng-nest-ui-border.mjs.map +1 -1
  409. package/fesm2015/ng-nest-ui-button.mjs +17 -16
  410. package/fesm2015/ng-nest-ui-button.mjs.map +1 -1
  411. package/fesm2015/ng-nest-ui-calendar.mjs +11 -10
  412. package/fesm2015/ng-nest-ui-calendar.mjs.map +1 -1
  413. package/fesm2015/ng-nest-ui-card.mjs +11 -10
  414. package/fesm2015/ng-nest-ui-card.mjs.map +1 -1
  415. package/fesm2015/ng-nest-ui-carousel.mjs +17 -16
  416. package/fesm2015/ng-nest-ui-carousel.mjs.map +1 -1
  417. package/fesm2015/ng-nest-ui-cascade.mjs +14 -13
  418. package/fesm2015/ng-nest-ui-cascade.mjs.map +1 -1
  419. package/fesm2015/ng-nest-ui-checkbox.mjs +10 -10
  420. package/fesm2015/ng-nest-ui-checkbox.mjs.map +1 -1
  421. package/fesm2015/ng-nest-ui-collapse.mjs +17 -16
  422. package/fesm2015/ng-nest-ui-collapse.mjs.map +1 -1
  423. package/fesm2015/ng-nest-ui-color-picker.mjs +14 -13
  424. package/fesm2015/ng-nest-ui-color-picker.mjs.map +1 -1
  425. package/fesm2015/ng-nest-ui-color.mjs +11 -10
  426. package/fesm2015/ng-nest-ui-color.mjs.map +1 -1
  427. package/fesm2015/ng-nest-ui-comment.mjs +17 -16
  428. package/fesm2015/ng-nest-ui-comment.mjs.map +1 -1
  429. package/fesm2015/ng-nest-ui-container.mjs +32 -31
  430. package/fesm2015/ng-nest-ui-container.mjs.map +1 -1
  431. package/fesm2015/ng-nest-ui-core.mjs +16 -15
  432. package/fesm2015/ng-nest-ui-core.mjs.map +1 -1
  433. package/fesm2015/ng-nest-ui-crumb.mjs +11 -10
  434. package/fesm2015/ng-nest-ui-crumb.mjs.map +1 -1
  435. package/fesm2015/ng-nest-ui-date-picker.mjs +41 -40
  436. package/fesm2015/ng-nest-ui-date-picker.mjs.map +1 -1
  437. package/fesm2015/ng-nest-ui-description.mjs +17 -16
  438. package/fesm2015/ng-nest-ui-description.mjs.map +1 -1
  439. package/fesm2015/ng-nest-ui-dialog.mjs +41 -40
  440. package/fesm2015/ng-nest-ui-dialog.mjs.map +1 -1
  441. package/fesm2015/ng-nest-ui-doc.mjs +8 -7
  442. package/fesm2015/ng-nest-ui-doc.mjs.map +1 -1
  443. package/fesm2015/ng-nest-ui-drawer.mjs +32 -31
  444. package/fesm2015/ng-nest-ui-drawer.mjs.map +1 -1
  445. package/fesm2015/ng-nest-ui-dropdown.mjs +14 -13
  446. package/fesm2015/ng-nest-ui-dropdown.mjs.map +1 -1
  447. package/fesm2015/ng-nest-ui-empty.mjs +11 -10
  448. package/fesm2015/ng-nest-ui-empty.mjs.map +1 -1
  449. package/fesm2015/ng-nest-ui-examples.mjs +8 -7
  450. package/fesm2015/ng-nest-ui-examples.mjs.map +1 -1
  451. package/fesm2015/ng-nest-ui-find.mjs +11 -10
  452. package/fesm2015/ng-nest-ui-find.mjs.map +1 -1
  453. package/fesm2015/ng-nest-ui-form.mjs +17 -16
  454. package/fesm2015/ng-nest-ui-form.mjs.map +1 -1
  455. package/fesm2015/ng-nest-ui-highlight.mjs +11 -10
  456. package/fesm2015/ng-nest-ui-highlight.mjs.map +1 -1
  457. package/fesm2015/ng-nest-ui-i18n.mjs +14 -13
  458. package/fesm2015/ng-nest-ui-i18n.mjs.map +1 -1
  459. package/fesm2015/ng-nest-ui-icon.mjs +14 -13
  460. package/fesm2015/ng-nest-ui-icon.mjs.map +1 -1
  461. package/fesm2015/ng-nest-ui-image.mjs +20 -19
  462. package/fesm2015/ng-nest-ui-image.mjs.map +1 -1
  463. package/fesm2015/ng-nest-ui-inner.mjs +11 -10
  464. package/fesm2015/ng-nest-ui-inner.mjs.map +1 -1
  465. package/fesm2015/ng-nest-ui-input-number.mjs +11 -10
  466. package/fesm2015/ng-nest-ui-input-number.mjs.map +1 -1
  467. package/fesm2015/ng-nest-ui-input.mjs +16 -16
  468. package/fesm2015/ng-nest-ui-input.mjs.map +1 -1
  469. package/fesm2015/ng-nest-ui-keyword.mjs +11 -10
  470. package/fesm2015/ng-nest-ui-keyword.mjs.map +1 -1
  471. package/fesm2015/ng-nest-ui-layout.mjs +17 -16
  472. package/fesm2015/ng-nest-ui-layout.mjs.map +1 -1
  473. package/fesm2015/ng-nest-ui-link.mjs +11 -10
  474. package/fesm2015/ng-nest-ui-link.mjs.map +1 -1
  475. package/fesm2015/ng-nest-ui-list.mjs +20 -19
  476. package/fesm2015/ng-nest-ui-list.mjs.map +1 -1
  477. package/fesm2015/ng-nest-ui-loading.mjs +11 -10
  478. package/fesm2015/ng-nest-ui-loading.mjs.map +1 -1
  479. package/fesm2015/ng-nest-ui-menu.mjs +17 -16
  480. package/fesm2015/ng-nest-ui-menu.mjs.map +1 -1
  481. package/fesm2015/ng-nest-ui-message-box.mjs +11 -10
  482. package/fesm2015/ng-nest-ui-message-box.mjs.map +1 -1
  483. package/fesm2015/ng-nest-ui-message.mjs +11 -10
  484. package/fesm2015/ng-nest-ui-message.mjs.map +1 -1
  485. package/fesm2015/ng-nest-ui-notification.mjs +11 -10
  486. package/fesm2015/ng-nest-ui-notification.mjs.map +1 -1
  487. package/fesm2015/ng-nest-ui-outlet.mjs +8 -7
  488. package/fesm2015/ng-nest-ui-outlet.mjs.map +1 -1
  489. package/fesm2015/ng-nest-ui-page-header.mjs +11 -10
  490. package/fesm2015/ng-nest-ui-page-header.mjs.map +1 -1
  491. package/fesm2015/ng-nest-ui-pagination.mjs +11 -10
  492. package/fesm2015/ng-nest-ui-pagination.mjs.map +1 -1
  493. package/fesm2015/ng-nest-ui-pattern.mjs +8 -7
  494. package/fesm2015/ng-nest-ui-pattern.mjs.map +1 -1
  495. package/fesm2015/ng-nest-ui-popconfirm.mjs +11 -10
  496. package/fesm2015/ng-nest-ui-popconfirm.mjs.map +1 -1
  497. package/fesm2015/ng-nest-ui-popover.mjs +14 -13
  498. package/fesm2015/ng-nest-ui-popover.mjs.map +1 -1
  499. package/fesm2015/ng-nest-ui-portal.mjs +8 -7
  500. package/fesm2015/ng-nest-ui-portal.mjs.map +1 -1
  501. package/fesm2015/ng-nest-ui-progress.mjs +11 -10
  502. package/fesm2015/ng-nest-ui-progress.mjs.map +1 -1
  503. package/fesm2015/ng-nest-ui-radio.mjs +10 -10
  504. package/fesm2015/ng-nest-ui-radio.mjs.map +1 -1
  505. package/fesm2015/ng-nest-ui-rate.mjs +11 -10
  506. package/fesm2015/ng-nest-ui-rate.mjs.map +1 -1
  507. package/fesm2015/ng-nest-ui-resizable.mjs +11 -10
  508. package/fesm2015/ng-nest-ui-resizable.mjs.map +1 -1
  509. package/fesm2015/ng-nest-ui-result.mjs +11 -10
  510. package/fesm2015/ng-nest-ui-result.mjs.map +1 -1
  511. package/fesm2015/ng-nest-ui-ripple.mjs +11 -10
  512. package/fesm2015/ng-nest-ui-ripple.mjs.map +1 -1
  513. package/fesm2015/ng-nest-ui-select.mjs +14 -13
  514. package/fesm2015/ng-nest-ui-select.mjs.map +1 -1
  515. package/fesm2015/ng-nest-ui-skeleton.mjs +11 -10
  516. package/fesm2015/ng-nest-ui-skeleton.mjs.map +1 -1
  517. package/fesm2015/ng-nest-ui-slider-select.mjs +11 -10
  518. package/fesm2015/ng-nest-ui-slider-select.mjs.map +1 -1
  519. package/fesm2015/ng-nest-ui-slider.mjs +11 -10
  520. package/fesm2015/ng-nest-ui-slider.mjs.map +1 -1
  521. package/fesm2015/ng-nest-ui-statistic.mjs +17 -16
  522. package/fesm2015/ng-nest-ui-statistic.mjs.map +1 -1
  523. package/fesm2015/ng-nest-ui-steps.mjs +11 -10
  524. package/fesm2015/ng-nest-ui-steps.mjs.map +1 -1
  525. package/fesm2015/ng-nest-ui-switch.mjs +11 -10
  526. package/fesm2015/ng-nest-ui-switch.mjs.map +1 -1
  527. package/fesm2015/ng-nest-ui-table.mjs +32 -31
  528. package/fesm2015/ng-nest-ui-table.mjs.map +1 -1
  529. package/fesm2015/ng-nest-ui-tabs.mjs +26 -25
  530. package/fesm2015/ng-nest-ui-tabs.mjs.map +1 -1
  531. package/fesm2015/ng-nest-ui-tag.mjs +11 -10
  532. package/fesm2015/ng-nest-ui-tag.mjs.map +1 -1
  533. package/fesm2015/ng-nest-ui-text-retract.mjs +11 -10
  534. package/fesm2015/ng-nest-ui-text-retract.mjs.map +1 -1
  535. package/fesm2015/ng-nest-ui-textarea.mjs +11 -10
  536. package/fesm2015/ng-nest-ui-textarea.mjs.map +1 -1
  537. package/fesm2015/ng-nest-ui-theme.mjs +11 -10
  538. package/fesm2015/ng-nest-ui-theme.mjs.map +1 -1
  539. package/fesm2015/ng-nest-ui-time-ago.mjs +8 -7
  540. package/fesm2015/ng-nest-ui-time-ago.mjs.map +1 -1
  541. package/fesm2015/ng-nest-ui-time-picker.mjs +20 -19
  542. package/fesm2015/ng-nest-ui-time-picker.mjs.map +1 -1
  543. package/fesm2015/ng-nest-ui-time-range.mjs +8 -7
  544. package/fesm2015/ng-nest-ui-time-range.mjs.map +1 -1
  545. package/fesm2015/ng-nest-ui-timeline.mjs +11 -10
  546. package/fesm2015/ng-nest-ui-timeline.mjs.map +1 -1
  547. package/fesm2015/ng-nest-ui-tooltip.mjs +14 -13
  548. package/fesm2015/ng-nest-ui-tooltip.mjs.map +1 -1
  549. package/fesm2015/ng-nest-ui-transfer.mjs +12 -11
  550. package/fesm2015/ng-nest-ui-transfer.mjs.map +1 -1
  551. package/fesm2015/ng-nest-ui-tree-file.mjs +11 -10
  552. package/fesm2015/ng-nest-ui-tree-file.mjs.map +1 -1
  553. package/fesm2015/ng-nest-ui-tree-select.mjs +14 -13
  554. package/fesm2015/ng-nest-ui-tree-select.mjs.map +1 -1
  555. package/fesm2015/ng-nest-ui-tree.mjs +17 -16
  556. package/fesm2015/ng-nest-ui-tree.mjs.map +1 -1
  557. package/fesm2015/ng-nest-ui-typography.mjs +11 -10
  558. package/fesm2015/ng-nest-ui-typography.mjs.map +1 -1
  559. package/fesm2015/ng-nest-ui-upload.mjs +14 -13
  560. package/fesm2015/ng-nest-ui-upload.mjs.map +1 -1
  561. package/fesm2015/ng-nest-ui.mjs +1 -0
  562. package/fesm2020/ng-nest-ui-affix.mjs +11 -10
  563. package/fesm2020/ng-nest-ui-affix.mjs.map +1 -1
  564. package/fesm2020/ng-nest-ui-alert.mjs +11 -10
  565. package/fesm2020/ng-nest-ui-alert.mjs.map +1 -1
  566. package/fesm2020/ng-nest-ui-anchor.mjs +10 -10
  567. package/fesm2020/ng-nest-ui-anchor.mjs.map +1 -1
  568. package/fesm2020/ng-nest-ui-api.mjs +8 -7
  569. package/fesm2020/ng-nest-ui-api.mjs.map +1 -1
  570. package/fesm2020/ng-nest-ui-auto-complete.mjs +14 -13
  571. package/fesm2020/ng-nest-ui-auto-complete.mjs.map +1 -1
  572. package/fesm2020/ng-nest-ui-avatar.mjs +17 -16
  573. package/fesm2020/ng-nest-ui-avatar.mjs.map +1 -1
  574. package/fesm2020/ng-nest-ui-back-top.mjs +11 -10
  575. package/fesm2020/ng-nest-ui-back-top.mjs.map +1 -1
  576. package/fesm2020/ng-nest-ui-badge.mjs +11 -10
  577. package/fesm2020/ng-nest-ui-badge.mjs.map +1 -1
  578. package/fesm2020/ng-nest-ui-base-form.mjs +11 -10
  579. package/fesm2020/ng-nest-ui-base-form.mjs.map +1 -1
  580. package/fesm2020/ng-nest-ui-border.mjs +8 -7
  581. package/fesm2020/ng-nest-ui-border.mjs.map +1 -1
  582. package/fesm2020/ng-nest-ui-button.mjs +17 -16
  583. package/fesm2020/ng-nest-ui-button.mjs.map +1 -1
  584. package/fesm2020/ng-nest-ui-calendar.mjs +11 -10
  585. package/fesm2020/ng-nest-ui-calendar.mjs.map +1 -1
  586. package/fesm2020/ng-nest-ui-card.mjs +11 -10
  587. package/fesm2020/ng-nest-ui-card.mjs.map +1 -1
  588. package/fesm2020/ng-nest-ui-carousel.mjs +17 -16
  589. package/fesm2020/ng-nest-ui-carousel.mjs.map +1 -1
  590. package/fesm2020/ng-nest-ui-cascade.mjs +14 -13
  591. package/fesm2020/ng-nest-ui-cascade.mjs.map +1 -1
  592. package/fesm2020/ng-nest-ui-checkbox.mjs +10 -10
  593. package/fesm2020/ng-nest-ui-checkbox.mjs.map +1 -1
  594. package/fesm2020/ng-nest-ui-collapse.mjs +17 -16
  595. package/fesm2020/ng-nest-ui-collapse.mjs.map +1 -1
  596. package/fesm2020/ng-nest-ui-color-picker.mjs +14 -13
  597. package/fesm2020/ng-nest-ui-color-picker.mjs.map +1 -1
  598. package/fesm2020/ng-nest-ui-color.mjs +11 -10
  599. package/fesm2020/ng-nest-ui-color.mjs.map +1 -1
  600. package/fesm2020/ng-nest-ui-comment.mjs +17 -16
  601. package/fesm2020/ng-nest-ui-comment.mjs.map +1 -1
  602. package/fesm2020/ng-nest-ui-container.mjs +32 -31
  603. package/fesm2020/ng-nest-ui-container.mjs.map +1 -1
  604. package/fesm2020/ng-nest-ui-core.mjs +16 -15
  605. package/fesm2020/ng-nest-ui-core.mjs.map +1 -1
  606. package/fesm2020/ng-nest-ui-crumb.mjs +11 -10
  607. package/fesm2020/ng-nest-ui-crumb.mjs.map +1 -1
  608. package/fesm2020/ng-nest-ui-date-picker.mjs +41 -40
  609. package/fesm2020/ng-nest-ui-date-picker.mjs.map +1 -1
  610. package/fesm2020/ng-nest-ui-description.mjs +17 -16
  611. package/fesm2020/ng-nest-ui-description.mjs.map +1 -1
  612. package/fesm2020/ng-nest-ui-dialog.mjs +41 -40
  613. package/fesm2020/ng-nest-ui-dialog.mjs.map +1 -1
  614. package/fesm2020/ng-nest-ui-doc.mjs +8 -7
  615. package/fesm2020/ng-nest-ui-doc.mjs.map +1 -1
  616. package/fesm2020/ng-nest-ui-drawer.mjs +32 -31
  617. package/fesm2020/ng-nest-ui-drawer.mjs.map +1 -1
  618. package/fesm2020/ng-nest-ui-dropdown.mjs +14 -13
  619. package/fesm2020/ng-nest-ui-dropdown.mjs.map +1 -1
  620. package/fesm2020/ng-nest-ui-empty.mjs +11 -10
  621. package/fesm2020/ng-nest-ui-empty.mjs.map +1 -1
  622. package/fesm2020/ng-nest-ui-examples.mjs +8 -7
  623. package/fesm2020/ng-nest-ui-examples.mjs.map +1 -1
  624. package/fesm2020/ng-nest-ui-find.mjs +11 -10
  625. package/fesm2020/ng-nest-ui-find.mjs.map +1 -1
  626. package/fesm2020/ng-nest-ui-form.mjs +17 -16
  627. package/fesm2020/ng-nest-ui-form.mjs.map +1 -1
  628. package/fesm2020/ng-nest-ui-highlight.mjs +11 -10
  629. package/fesm2020/ng-nest-ui-highlight.mjs.map +1 -1
  630. package/fesm2020/ng-nest-ui-i18n.mjs +14 -13
  631. package/fesm2020/ng-nest-ui-i18n.mjs.map +1 -1
  632. package/fesm2020/ng-nest-ui-icon.mjs +14 -13
  633. package/fesm2020/ng-nest-ui-icon.mjs.map +1 -1
  634. package/fesm2020/ng-nest-ui-image.mjs +20 -19
  635. package/fesm2020/ng-nest-ui-image.mjs.map +1 -1
  636. package/fesm2020/ng-nest-ui-inner.mjs +11 -10
  637. package/fesm2020/ng-nest-ui-inner.mjs.map +1 -1
  638. package/fesm2020/ng-nest-ui-input-number.mjs +11 -10
  639. package/fesm2020/ng-nest-ui-input-number.mjs.map +1 -1
  640. package/fesm2020/ng-nest-ui-input.mjs +16 -16
  641. package/fesm2020/ng-nest-ui-input.mjs.map +1 -1
  642. package/fesm2020/ng-nest-ui-keyword.mjs +11 -10
  643. package/fesm2020/ng-nest-ui-keyword.mjs.map +1 -1
  644. package/fesm2020/ng-nest-ui-layout.mjs +17 -16
  645. package/fesm2020/ng-nest-ui-layout.mjs.map +1 -1
  646. package/fesm2020/ng-nest-ui-link.mjs +11 -10
  647. package/fesm2020/ng-nest-ui-link.mjs.map +1 -1
  648. package/fesm2020/ng-nest-ui-list.mjs +20 -19
  649. package/fesm2020/ng-nest-ui-list.mjs.map +1 -1
  650. package/fesm2020/ng-nest-ui-loading.mjs +11 -10
  651. package/fesm2020/ng-nest-ui-loading.mjs.map +1 -1
  652. package/fesm2020/ng-nest-ui-menu.mjs +17 -16
  653. package/fesm2020/ng-nest-ui-menu.mjs.map +1 -1
  654. package/fesm2020/ng-nest-ui-message-box.mjs +11 -10
  655. package/fesm2020/ng-nest-ui-message-box.mjs.map +1 -1
  656. package/fesm2020/ng-nest-ui-message.mjs +11 -10
  657. package/fesm2020/ng-nest-ui-message.mjs.map +1 -1
  658. package/fesm2020/ng-nest-ui-notification.mjs +11 -10
  659. package/fesm2020/ng-nest-ui-notification.mjs.map +1 -1
  660. package/fesm2020/ng-nest-ui-outlet.mjs +8 -7
  661. package/fesm2020/ng-nest-ui-outlet.mjs.map +1 -1
  662. package/fesm2020/ng-nest-ui-page-header.mjs +11 -10
  663. package/fesm2020/ng-nest-ui-page-header.mjs.map +1 -1
  664. package/fesm2020/ng-nest-ui-pagination.mjs +11 -10
  665. package/fesm2020/ng-nest-ui-pagination.mjs.map +1 -1
  666. package/fesm2020/ng-nest-ui-pattern.mjs +8 -7
  667. package/fesm2020/ng-nest-ui-pattern.mjs.map +1 -1
  668. package/fesm2020/ng-nest-ui-popconfirm.mjs +11 -10
  669. package/fesm2020/ng-nest-ui-popconfirm.mjs.map +1 -1
  670. package/fesm2020/ng-nest-ui-popover.mjs +14 -13
  671. package/fesm2020/ng-nest-ui-popover.mjs.map +1 -1
  672. package/fesm2020/ng-nest-ui-portal.mjs +8 -7
  673. package/fesm2020/ng-nest-ui-portal.mjs.map +1 -1
  674. package/fesm2020/ng-nest-ui-progress.mjs +11 -10
  675. package/fesm2020/ng-nest-ui-progress.mjs.map +1 -1
  676. package/fesm2020/ng-nest-ui-radio.mjs +10 -10
  677. package/fesm2020/ng-nest-ui-radio.mjs.map +1 -1
  678. package/fesm2020/ng-nest-ui-rate.mjs +11 -10
  679. package/fesm2020/ng-nest-ui-rate.mjs.map +1 -1
  680. package/fesm2020/ng-nest-ui-resizable.mjs +11 -10
  681. package/fesm2020/ng-nest-ui-resizable.mjs.map +1 -1
  682. package/fesm2020/ng-nest-ui-result.mjs +11 -10
  683. package/fesm2020/ng-nest-ui-result.mjs.map +1 -1
  684. package/fesm2020/ng-nest-ui-ripple.mjs +11 -10
  685. package/fesm2020/ng-nest-ui-ripple.mjs.map +1 -1
  686. package/fesm2020/ng-nest-ui-select.mjs +14 -13
  687. package/fesm2020/ng-nest-ui-select.mjs.map +1 -1
  688. package/fesm2020/ng-nest-ui-skeleton.mjs +11 -10
  689. package/fesm2020/ng-nest-ui-skeleton.mjs.map +1 -1
  690. package/fesm2020/ng-nest-ui-slider-select.mjs +11 -10
  691. package/fesm2020/ng-nest-ui-slider-select.mjs.map +1 -1
  692. package/fesm2020/ng-nest-ui-slider.mjs +11 -10
  693. package/fesm2020/ng-nest-ui-slider.mjs.map +1 -1
  694. package/fesm2020/ng-nest-ui-statistic.mjs +17 -16
  695. package/fesm2020/ng-nest-ui-statistic.mjs.map +1 -1
  696. package/fesm2020/ng-nest-ui-steps.mjs +11 -10
  697. package/fesm2020/ng-nest-ui-steps.mjs.map +1 -1
  698. package/fesm2020/ng-nest-ui-switch.mjs +11 -10
  699. package/fesm2020/ng-nest-ui-switch.mjs.map +1 -1
  700. package/fesm2020/ng-nest-ui-table.mjs +32 -31
  701. package/fesm2020/ng-nest-ui-table.mjs.map +1 -1
  702. package/fesm2020/ng-nest-ui-tabs.mjs +26 -25
  703. package/fesm2020/ng-nest-ui-tabs.mjs.map +1 -1
  704. package/fesm2020/ng-nest-ui-tag.mjs +11 -10
  705. package/fesm2020/ng-nest-ui-tag.mjs.map +1 -1
  706. package/fesm2020/ng-nest-ui-text-retract.mjs +11 -10
  707. package/fesm2020/ng-nest-ui-text-retract.mjs.map +1 -1
  708. package/fesm2020/ng-nest-ui-textarea.mjs +11 -10
  709. package/fesm2020/ng-nest-ui-textarea.mjs.map +1 -1
  710. package/fesm2020/ng-nest-ui-theme.mjs +11 -10
  711. package/fesm2020/ng-nest-ui-theme.mjs.map +1 -1
  712. package/fesm2020/ng-nest-ui-time-ago.mjs +8 -7
  713. package/fesm2020/ng-nest-ui-time-ago.mjs.map +1 -1
  714. package/fesm2020/ng-nest-ui-time-picker.mjs +20 -19
  715. package/fesm2020/ng-nest-ui-time-picker.mjs.map +1 -1
  716. package/fesm2020/ng-nest-ui-time-range.mjs +8 -7
  717. package/fesm2020/ng-nest-ui-time-range.mjs.map +1 -1
  718. package/fesm2020/ng-nest-ui-timeline.mjs +11 -10
  719. package/fesm2020/ng-nest-ui-timeline.mjs.map +1 -1
  720. package/fesm2020/ng-nest-ui-tooltip.mjs +14 -13
  721. package/fesm2020/ng-nest-ui-tooltip.mjs.map +1 -1
  722. package/fesm2020/ng-nest-ui-transfer.mjs +12 -11
  723. package/fesm2020/ng-nest-ui-transfer.mjs.map +1 -1
  724. package/fesm2020/ng-nest-ui-tree-file.mjs +11 -10
  725. package/fesm2020/ng-nest-ui-tree-file.mjs.map +1 -1
  726. package/fesm2020/ng-nest-ui-tree-select.mjs +14 -13
  727. package/fesm2020/ng-nest-ui-tree-select.mjs.map +1 -1
  728. package/fesm2020/ng-nest-ui-tree.mjs +17 -16
  729. package/fesm2020/ng-nest-ui-tree.mjs.map +1 -1
  730. package/fesm2020/ng-nest-ui-typography.mjs +11 -10
  731. package/fesm2020/ng-nest-ui-typography.mjs.map +1 -1
  732. package/fesm2020/ng-nest-ui-upload.mjs +14 -13
  733. package/fesm2020/ng-nest-ui-upload.mjs.map +1 -1
  734. package/fesm2020/ng-nest-ui.mjs +1 -0
  735. package/find/find.component.d.ts +1 -1
  736. package/find/find.property.d.ts +1 -1
  737. package/form/control.component.d.ts +1 -1
  738. package/form/form.component.d.ts +1 -1
  739. package/form/form.property.d.ts +2 -2
  740. package/highlight/highlight.component.d.ts +1 -1
  741. package/highlight/highlight.property.d.ts +1 -1
  742. package/i18n/i18n.directive.d.ts +1 -1
  743. package/icon/icon.component.d.ts +1 -1
  744. package/icon/icon.property.d.ts +1 -1
  745. package/image/image-group.component.d.ts +1 -1
  746. package/image/image-preview.component.d.ts +1 -1
  747. package/image/image.component.d.ts +1 -1
  748. package/image/image.property.d.ts +2 -2
  749. package/inner/inner.component.d.ts +1 -1
  750. package/inner/inner.property.d.ts +1 -1
  751. package/input/input-group.component.d.ts +1 -1
  752. package/input/input.component.d.ts +1 -1
  753. package/input/input.property.d.ts +2 -2
  754. package/input-number/input-number.component.d.ts +1 -1
  755. package/input-number/input-number.property.d.ts +1 -1
  756. package/keyword/keyword.directive.d.ts +1 -1
  757. package/keyword/keyword.property.d.ts +1 -1
  758. package/layout/col.component.d.ts +1 -1
  759. package/layout/layout.property.d.ts +2 -2
  760. package/layout/row.component.d.ts +1 -1
  761. package/link/link.component.d.ts +1 -1
  762. package/link/link.property.d.ts +1 -1
  763. package/list/list-drop-group.directive.d.ts +1 -1
  764. package/list/list-option.component.d.ts +1 -1
  765. package/list/list.component.d.ts +1 -1
  766. package/list/list.property.d.ts +2 -2
  767. package/loading/loading.component.d.ts +1 -1
  768. package/loading/loading.property.d.ts +1 -1
  769. package/menu/menu-node.component.d.ts +1 -1
  770. package/menu/menu.component.d.ts +1 -1
  771. package/menu/menu.property.d.ts +2 -2
  772. package/message/message.component.d.ts +1 -1
  773. package/message-box/message-box.component.d.ts +1 -1
  774. package/notification/notification.component.d.ts +1 -1
  775. package/outlet/outlet.directive.d.ts +1 -1
  776. package/package.json +6 -6
  777. package/page-header/page-header.component.d.ts +1 -1
  778. package/page-header/page-header.property.d.ts +1 -1
  779. package/pagination/pagination.component.d.ts +1 -1
  780. package/pagination/pagination.property.d.ts +1 -1
  781. package/pattern/pattern.component.d.ts +1 -1
  782. package/popconfirm/popconfirm.component.d.ts +1 -1
  783. package/popconfirm/popconfirm.property.d.ts +1 -1
  784. package/popover/popover-portal.component.d.ts +1 -1
  785. package/popover/popover.directive.d.ts +1 -1
  786. package/popover/popover.property.d.ts +1 -1
  787. package/progress/progress.component.d.ts +1 -1
  788. package/progress/progress.property.d.ts +1 -1
  789. package/radio/radio.component.d.ts +1 -1
  790. package/radio/radio.property.d.ts +1 -1
  791. package/rate/rate.component.d.ts +1 -1
  792. package/rate/rate.property.d.ts +1 -1
  793. package/resizable/resizable.directive.d.ts +1 -1
  794. package/resizable/resizable.property.d.ts +1 -1
  795. package/result/result.component.d.ts +1 -1
  796. package/result/result.property.d.ts +1 -1
  797. package/ripple/ripple.directive.d.ts +1 -1
  798. package/ripple/ripple.property.d.ts +1 -1
  799. package/select/select-portal.component.d.ts +1 -1
  800. package/select/select.component.d.ts +1 -1
  801. package/select/select.property.d.ts +1 -1
  802. package/skeleton/skeleton.component.d.ts +1 -1
  803. package/skeleton/skeleton.property.d.ts +1 -1
  804. package/slider/slider.component.d.ts +1 -1
  805. package/slider/slider.property.d.ts +1 -1
  806. package/slider-select/slider-select.component.d.ts +1 -1
  807. package/slider-select/slider-select.property.d.ts +1 -1
  808. package/statistic/countdown.component.d.ts +1 -1
  809. package/statistic/statistic.component.d.ts +1 -1
  810. package/statistic/statistic.property.d.ts +2 -2
  811. package/steps/steps.component.d.ts +1 -1
  812. package/steps/steps.property.d.ts +1 -1
  813. package/switch/switch.component.d.ts +1 -1
  814. package/switch/switch.property.d.ts +1 -1
  815. package/table/drag.directive.d.ts +1 -1
  816. package/table/table-body.component.d.ts +1 -1
  817. package/table/table-foot.component.d.ts +1 -1
  818. package/table/table-head.component.d.ts +1 -1
  819. package/table/table.component.d.ts +1 -1
  820. package/table/table.property.d.ts +4 -4
  821. package/tabs/tab-content.component.d.ts +1 -1
  822. package/tabs/tab-link.directive.d.ts +2 -2
  823. package/tabs/tab.component.d.ts +1 -1
  824. package/tabs/tabs.component.d.ts +1 -1
  825. package/tabs/tabs.property.d.ts +2 -2
  826. package/tag/tag.component.d.ts +1 -1
  827. package/tag/tag.property.d.ts +1 -1
  828. package/text-retract/text-retract.component.d.ts +1 -1
  829. package/text-retract/text-retract.property.d.ts +1 -1
  830. package/textarea/textarea.component.d.ts +1 -1
  831. package/textarea/textarea.property.d.ts +1 -1
  832. package/theme/theme.component.d.ts +1 -1
  833. package/theme/theme.property.d.ts +1 -1
  834. package/time-picker/time-picker-frame.component.d.ts +1 -1
  835. package/time-picker/time-picker-portal.component.d.ts +1 -1
  836. package/time-picker/time-picker.component.d.ts +1 -1
  837. package/time-picker/time-picker.property.d.ts +1 -1
  838. package/timeline/timeline.component.d.ts +1 -1
  839. package/timeline/timeline.property.d.ts +1 -1
  840. package/tooltip/tooltip-portal.component.d.ts +1 -1
  841. package/tooltip/tooltip.directive.d.ts +1 -1
  842. package/tooltip/tooltip.property.d.ts +1 -1
  843. package/transfer/transfer.component.d.ts +1 -1
  844. package/transfer/transfer.property.d.ts +1 -1
  845. package/tree/tree-node.component.d.ts +1 -1
  846. package/tree/tree.component.d.ts +1 -1
  847. package/tree/tree.property.d.ts +2 -2
  848. package/tree-file/tree-file.component.d.ts +1 -1
  849. package/tree-file/tree-file.property.d.ts +1 -1
  850. package/tree-select/tree-select-portal.component.d.ts +1 -1
  851. package/tree-select/tree-select.component.d.ts +1 -1
  852. package/tree-select/tree-select.property.d.ts +1 -1
  853. package/typography/typography.component.d.ts +1 -1
  854. package/typography/typography.property.d.ts +1 -1
  855. package/upload/upload-portal.component.d.ts +1 -1
  856. package/upload/upload.component.d.ts +1 -1
  857. package/upload/upload.property.d.ts +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"ng-nest-ui-calendar.mjs","sources":["../../../../lib/ng-nest/ui/calendar/calendar.property.ts","../../../../lib/ng-nest/ui/calendar/calendar.component.ts","../../../../lib/ng-nest/ui/calendar/calendar.component.html","../../../../lib/ng-nest/ui/calendar/calendar.module.ts","../../../../lib/ng-nest/ui/calendar/ng-nest-ui-calendar.ts"],"sourcesContent":["import { XIdentityProperty, XProperty } from '@ng-nest/ui/core';\r\nimport { Input, Output, EventEmitter, Component, TemplateRef } from '@angular/core';\r\n\r\n/**\r\n * Calendar\r\n * @selector x-calendar\r\n * @decorator component\r\n */\r\nexport const XCalendarPrefix = 'x-calendar';\r\n\r\n/**\r\n * Calendar Property\r\n */\r\n@Component({ template: '' })\r\nexport class XCalendarProperty extends XProperty {\r\n /**\r\n * @zh_CN 事务数据对象\r\n * @en_US Transaction data object\r\n */\r\n @Input() data?: XCalendarData;\r\n /**\r\n * @zh_CN 显示模式\r\n * @en_US Display mode\r\n */\r\n @Input() model: XCalendarModel = 'month';\r\n /**\r\n * @zh_CN 显示类型\r\n * @en_US Display type\r\n */\r\n @Input() displayType: XCalendarType = 'calendar';\r\n /**\r\n * @zh_CN 头部显示模版\r\n * @en_US Head display template\r\n */\r\n @Input() headerLeftTemp?: TemplateRef<void>;\r\n /**\r\n * @zh_CN 选择日期变化的事件\r\n * @en_US Select the event of the date change\r\n */\r\n @Output() dateChange = new EventEmitter<Date>();\r\n /**\r\n * @zh_CN 日期范围变化的事件\r\n * @en_US Date range change event\r\n */\r\n @Output() rangeChange = new EventEmitter<Date[]>();\r\n}\r\n\r\n/**\r\n * @zh_CN Calendar 数据对象\r\n * @en_US Calendar data object\r\n */\r\nexport interface XCalendarData {\r\n /**\r\n * key-value\r\n * { \"2020-2-22\": [{id:\"1\",label:\"1\"}] }\r\n */\r\n [property: string]: XCalendarNode[];\r\n}\r\n\r\n/**\r\n * @zh_CN Calendar 数据对象\r\n * @en_US Calendar data object\r\n */\r\nexport interface XCalendarNode extends XIdentityProperty {}\r\n\r\n/**\r\n * @zh_CN 显示模式\r\n * @en_US Display mode\r\n */\r\nexport type XCalendarModel = 'month' | 'year';\r\n\r\n/**\r\n * @zh_CN 显示类型\r\n * @en_US Display type\r\n */\r\nexport type XCalendarType = 'calendar' | 'card';\r\n","import {\r\n Component,\r\n ViewEncapsulation,\r\n Renderer2,\r\n ElementRef,\r\n ChangeDetectorRef,\r\n ChangeDetectionStrategy,\r\n SimpleChanges,\r\n OnChanges,\r\n OnDestroy\r\n} from '@angular/core';\r\nimport { XCalendarPrefix, XCalendarProperty, XCalendarNode } from './calendar.property';\r\nimport { XIsChange, XConfigService, XIsEmpty } from '@ng-nest/ui/core';\r\nimport { DatePipe, LowerCasePipe } from '@angular/common';\r\nimport { XI18nService, XI18nCalendar } from '@ng-nest/ui/i18n';\r\nimport { takeUntil, map } from 'rxjs/operators';\r\nimport { Subject } from 'rxjs';\r\n\r\n@Component({\r\n selector: `${XCalendarPrefix}`,\r\n templateUrl: './calendar.component.html',\r\n styleUrls: ['./calendar.component.scss'],\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n providers: [DatePipe, LowerCasePipe]\r\n})\r\nexport class XCalendarComponent extends XCalendarProperty implements OnChanges, OnDestroy {\r\n now: Date = new Date();\r\n datetime: Date = new Date();\r\n activatedDate: Date = new Date();\r\n monthData: { [property: string]: XCalendarNode[] } = {};\r\n locale: XI18nCalendar = {};\r\n radioData = [\r\n { label: '月', id: 'month' },\r\n { label: '年', id: 'year' }\r\n ];\r\n\r\n private _unSubject = new Subject<void>();\r\n\r\n constructor(\r\n public renderer: Renderer2,\r\n public elementRef: ElementRef,\r\n public cdr: ChangeDetectorRef,\r\n public datePipe: DatePipe,\r\n public lowerCasePipe: LowerCasePipe,\r\n public configService: XConfigService,\r\n public i18n: XI18nService\r\n ) {\r\n super();\r\n }\r\n\r\n ngOnInit() {\r\n this.i18n.localeChange\r\n .pipe(\r\n map((x) => x.calendar as XI18nCalendar),\r\n takeUntil(this._unSubject)\r\n )\r\n .subscribe((x) => {\r\n this.locale = x;\r\n this.setLocal();\r\n this.cdr.markForCheck();\r\n });\r\n this.setClassMap();\r\n }\r\n\r\n ngOnChanges(changes: SimpleChanges) {\r\n const { data } = changes;\r\n XIsChange(data) && this.setMonthData();\r\n }\r\n\r\n ngOnDestroy() {\r\n this._unSubject.next();\r\n this._unSubject.unsubscribe();\r\n }\r\n\r\n setClassMap() {\r\n this.classMap[`${XCalendarPrefix}-${this.displayType}`] = !XIsEmpty(this.displayType);\r\n }\r\n\r\n action(next: number) {\r\n let datetime = new Date(this.datetime.getTime());\r\n if (this.model === 'month') {\r\n datetime.setMonth(datetime.getMonth() + next);\r\n } else if (this.model === 'year') {\r\n datetime.setFullYear(datetime.getFullYear() + next);\r\n }\r\n this.datetime = datetime;\r\n this.cdr.markForCheck();\r\n }\r\n\r\n setLocal() {\r\n this.radioData = this.radioData.map((x) => {\r\n x.label = (this.locale as any)[x.id];\r\n return x;\r\n });\r\n }\r\n\r\n setMonthData() {\r\n let dt: { [property: string]: XCalendarNode[] } = {};\r\n for (let key in this.data) {\r\n let month = this.datePipe.transform(key, 'yyyy-MM') as string;\r\n let value = '';\r\n this.data[key].forEach((x) => {\r\n value += `${x.id}${x.label} <br/>`;\r\n });\r\n let item = { id: key, label: value };\r\n if (dt[month]) {\r\n dt[month] = [...dt[month], item];\r\n } else {\r\n dt[month] = [item];\r\n }\r\n }\r\n\r\n this.monthData = dt;\r\n }\r\n\r\n getLocaleMonth(date: Date) {\r\n return (this.locale as any)[this.lowerCasePipe.transform(this.datePipe.transform(date, 'LLLL') as string)];\r\n }\r\n\r\n dateOnChange(date: Date) {\r\n if (this.datePipe.transform(date, 'yyyy-MM-dd') !== this.datePipe.transform(this.activatedDate, 'yyyy-MM-dd')) {\r\n this.activatedDate = date;\r\n this.dateChange.emit(this.activatedDate);\r\n this.cdr.markForCheck();\r\n }\r\n }\r\n\r\n modelOnChange() {\r\n this.cdr.detectChanges();\r\n }\r\n\r\n rangeOnChange(range: Date[]) {\r\n this.rangeChange.emit(range);\r\n }\r\n\r\n getDate(date: Date): XCalendarNode[] {\r\n if (this.data) {\r\n return this.data[this.datePipe.transform(date, 'yyyy-MM-dd') as string];\r\n } else {\r\n return [];\r\n }\r\n }\r\n\r\n getMonth(date: Date): XCalendarNode[] {\r\n return this.monthData?.[this.datePipe.transform(date, 'yyyy-MM') as string];\r\n }\r\n\r\n trackByDate(_index: number, item: XCalendarNode) {\r\n return `${item.id}-${item.label}`;\r\n }\r\n\r\n trackByMonth(_index: number, item: XCalendarNode) {\r\n return item.id;\r\n }\r\n}\r\n","<div #calendar class=\"x-calendar\" [ngClass]=\"classMap\">\r\n <div class=\"x-calendar-header\">\r\n <div class=\"x-calendar-header-left\">\r\n <ng-container *ngIf=\"headerLeftTemp\">\r\n <ng-container *ngTemplateOutlet=\"headerLeftTemp\"></ng-container>\r\n </ng-container>\r\n </div>\r\n <div class=\"x-calendar-header-right\">\r\n <x-date-picker [(ngModel)]=\"datetime\" [type]=\"model\" showHeader=\"false\" [clearable]=\"false\"></x-date-picker>\r\n <x-buttons>\r\n <x-button (click)=\"action(-1)\">{{ model === 'month' ? locale.lastMonth : locale.lastYear }}</x-button>\r\n <x-button (click)=\"action(1)\">{{ model === 'month' ? locale.nextMonth : locale.nextYear }}</x-button>\r\n </x-buttons>\r\n <x-radio [data]=\"radioData\" [(ngModel)]=\"model\" (ngModelChange)=\"modelOnChange()\" button></x-radio>\r\n </div>\r\n </div>\r\n <div class=\"x-calendar-body\">\r\n <x-picker-date\r\n *ngIf=\"model === 'month'\"\r\n [display]=\"datetime\"\r\n (modelChange)=\"dateOnChange($event)\"\r\n (rangeChange)=\"rangeOnChange($event)\"\r\n [dateTemp]=\"dateTemp\"\r\n showHeader=\"false\"\r\n ></x-picker-date>\r\n <x-picker-month\r\n *ngIf=\"model === 'year'\"\r\n [display]=\"datetime\"\r\n (modelChange)=\"dateOnChange($event)\"\r\n (rangeChange)=\"rangeOnChange($event)\"\r\n [monthTemp]=\"monthTemp\"\r\n showHeader=\"false\"\r\n ></x-picker-month>\r\n </div>\r\n</div>\r\n\r\n<ng-template #dateTemp let-date=\"date$\">\r\n <div class=\"x-calendar-date\" [class.x-activated]=\"(date | date: 'yyyyMMdd') === (activatedDate | date: 'yyyyMMdd')\">\r\n <span [title]=\"date | date: 'yyyy-MM-dd'\">{{ date | date: 'd' }}</span>\r\n <div class=\"x-calendar-date-content\" *ngIf=\"displayType === 'calendar'\">\r\n <ul *ngIf=\"getDate(date)\">\r\n <li *ngFor=\"let item of getDate(date); trackBy: trackByDate\">\r\n <span [title]=\"item.id + item.label\">{{ item.id }}{{ item.label }}</span>\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n</ng-template>\r\n\r\n<ng-template #monthTemp let-date=\"date$\">\r\n <div class=\"x-calendar-month\" [class.x-activated]=\"(date | date: 'yyyyMM') === (activatedDate | date: 'yyyyMM')\">\r\n <span [title]=\"date | date: 'yyyy-MM'\">{{ getLocaleMonth(date) }}</span>\r\n <div class=\"x-calendar-month-content\" *ngIf=\"displayType === 'calendar'\">\r\n <ul *ngIf=\"getMonth(date)\">\r\n <li *ngFor=\"let item of getMonth(date); trackBy: trackByMonth\">\r\n <x-link x-tooltip [content]=\"item.label\" placement=\"top\">{{ item.id }}</x-link>\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n</ng-template>\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { XCalendarComponent } from './calendar.component';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { XDatePickerModule } from '@ng-nest/ui/date-picker';\r\nimport { XButtonModule } from '@ng-nest/ui/button';\r\nimport { XRadioModule } from '@ng-nest/ui/radio';\r\nimport { XLinkModule } from '@ng-nest/ui/link';\r\nimport { XTooltipModule } from '@ng-nest/ui/tooltip';\r\nimport { XCalendarProperty } from './calendar.property';\r\nimport { XI18nModule } from '@ng-nest/ui/i18n';\r\n\r\n@NgModule({\r\n declarations: [XCalendarComponent, XCalendarProperty],\r\n exports: [XCalendarComponent],\r\n imports: [CommonModule, FormsModule, XLinkModule, XTooltipModule, XRadioModule, XDatePickerModule, XButtonModule, XI18nModule]\r\n})\r\nexport class XCalendarModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAGA;;;;AAIG;AACI,MAAM,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AkB,EAAE,iBAAiB,CAAC;oBACrD,OAAO,EAAE,CAAC,kBAAkB,CAAC;AAC7B,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,cAAc,EAAE,YAAY,EAAE,iBAAiB,EAAE,aAAa,EAAE,WAAW,CAAC;iBAC/H,CAAA;;;AChBD;;AAEG;;;;"}
1
+ {"version":3,"file":"ng-nest-ui-calendar.mjs","sources":["../../../../lib/ng-nest/ui/calendar/calendar.property.ts","../../../../lib/ng-nest/ui/calendar/calendar.component.ts","../../../../lib/ng-nest/ui/calendar/calendar.component.html","../../../../lib/ng-nest/ui/calendar/calendar.module.ts","../../../../lib/ng-nest/ui/calendar/ng-nest-ui-calendar.ts"],"sourcesContent":["import { XIdentityProperty, XProperty } from '@ng-nest/ui/core';\r\nimport { Input, Output, EventEmitter, Component, TemplateRef } from '@angular/core';\r\n\r\n/**\r\n * Calendar\r\n * @selector x-calendar\r\n * @decorator component\r\n */\r\nexport const XCalendarPrefix = 'x-calendar';\r\n\r\n/**\r\n * Calendar Property\r\n */\r\n@Component({ template: '' })\r\nexport class XCalendarProperty extends XProperty {\r\n /**\r\n * @zh_CN 事务数据对象\r\n * @en_US Transaction data object\r\n */\r\n @Input() data?: XCalendarData;\r\n /**\r\n * @zh_CN 显示模式\r\n * @en_US Display mode\r\n */\r\n @Input() model: XCalendarModel = 'month';\r\n /**\r\n * @zh_CN 显示类型\r\n * @en_US Display type\r\n */\r\n @Input() displayType: XCalendarType = 'calendar';\r\n /**\r\n * @zh_CN 头部显示模版\r\n * @en_US Head display template\r\n */\r\n @Input() headerLeftTemp?: TemplateRef<void>;\r\n /**\r\n * @zh_CN 选择日期变化的事件\r\n * @en_US Select the event of the date change\r\n */\r\n @Output() dateChange = new EventEmitter<Date>();\r\n /**\r\n * @zh_CN 日期范围变化的事件\r\n * @en_US Date range change event\r\n */\r\n @Output() rangeChange = new EventEmitter<Date[]>();\r\n}\r\n\r\n/**\r\n * @zh_CN Calendar 数据对象\r\n * @en_US Calendar data object\r\n */\r\nexport interface XCalendarData {\r\n /**\r\n * key-value\r\n * { \"2020-2-22\": [{id:\"1\",label:\"1\"}] }\r\n */\r\n [property: string]: XCalendarNode[];\r\n}\r\n\r\n/**\r\n * @zh_CN Calendar 数据对象\r\n * @en_US Calendar data object\r\n */\r\nexport interface XCalendarNode extends XIdentityProperty {}\r\n\r\n/**\r\n * @zh_CN 显示模式\r\n * @en_US Display mode\r\n */\r\nexport type XCalendarModel = 'month' | 'year';\r\n\r\n/**\r\n * @zh_CN 显示类型\r\n * @en_US Display type\r\n */\r\nexport type XCalendarType = 'calendar' | 'card';\r\n","import {\r\n Component,\r\n ViewEncapsulation,\r\n Renderer2,\r\n ElementRef,\r\n ChangeDetectorRef,\r\n ChangeDetectionStrategy,\r\n SimpleChanges,\r\n OnChanges,\r\n OnDestroy\r\n} from '@angular/core';\r\nimport { XCalendarPrefix, XCalendarProperty, XCalendarNode } from './calendar.property';\r\nimport { XIsChange, XConfigService, XIsEmpty } from '@ng-nest/ui/core';\r\nimport { DatePipe, LowerCasePipe } from '@angular/common';\r\nimport { XI18nService, XI18nCalendar } from '@ng-nest/ui/i18n';\r\nimport { takeUntil, map } from 'rxjs/operators';\r\nimport { Subject } from 'rxjs';\r\n\r\n@Component({\r\n selector: `${XCalendarPrefix}`,\r\n templateUrl: './calendar.component.html',\r\n styleUrls: ['./calendar.component.scss'],\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n providers: [DatePipe, LowerCasePipe]\r\n})\r\nexport class XCalendarComponent extends XCalendarProperty implements OnChanges, OnDestroy {\r\n now: Date = new Date();\r\n datetime: Date = new Date();\r\n activatedDate: Date = new Date();\r\n monthData: { [property: string]: XCalendarNode[] } = {};\r\n locale: XI18nCalendar = {};\r\n radioData = [\r\n { label: '月', id: 'month' },\r\n { label: '年', id: 'year' }\r\n ];\r\n\r\n private _unSubject = new Subject<void>();\r\n\r\n constructor(\r\n public renderer: Renderer2,\r\n public elementRef: ElementRef,\r\n public cdr: ChangeDetectorRef,\r\n public datePipe: DatePipe,\r\n public lowerCasePipe: LowerCasePipe,\r\n public configService: XConfigService,\r\n public i18n: XI18nService\r\n ) {\r\n super();\r\n }\r\n\r\n ngOnInit() {\r\n this.i18n.localeChange\r\n .pipe(\r\n map((x) => x.calendar as XI18nCalendar),\r\n takeUntil(this._unSubject)\r\n )\r\n .subscribe((x) => {\r\n this.locale = x;\r\n this.setLocal();\r\n this.cdr.markForCheck();\r\n });\r\n this.setClassMap();\r\n }\r\n\r\n ngOnChanges(changes: SimpleChanges) {\r\n const { data } = changes;\r\n XIsChange(data) && this.setMonthData();\r\n }\r\n\r\n ngOnDestroy() {\r\n this._unSubject.next();\r\n this._unSubject.unsubscribe();\r\n }\r\n\r\n setClassMap() {\r\n this.classMap[`${XCalendarPrefix}-${this.displayType}`] = !XIsEmpty(this.displayType);\r\n }\r\n\r\n action(next: number) {\r\n let datetime = new Date(this.datetime.getTime());\r\n if (this.model === 'month') {\r\n datetime.setMonth(datetime.getMonth() + next);\r\n } else if (this.model === 'year') {\r\n datetime.setFullYear(datetime.getFullYear() + next);\r\n }\r\n this.datetime = datetime;\r\n this.cdr.markForCheck();\r\n }\r\n\r\n setLocal() {\r\n this.radioData = this.radioData.map((x) => {\r\n x.label = (this.locale as any)[x.id];\r\n return x;\r\n });\r\n }\r\n\r\n setMonthData() {\r\n let dt: { [property: string]: XCalendarNode[] } = {};\r\n for (let key in this.data) {\r\n let month = this.datePipe.transform(key, 'yyyy-MM') as string;\r\n let value = '';\r\n this.data[key].forEach((x) => {\r\n value += `${x.id}${x.label} <br/>`;\r\n });\r\n let item = { id: key, label: value };\r\n if (dt[month]) {\r\n dt[month] = [...dt[month], item];\r\n } else {\r\n dt[month] = [item];\r\n }\r\n }\r\n\r\n this.monthData = dt;\r\n }\r\n\r\n getLocaleMonth(date: Date) {\r\n return (this.locale as any)[this.lowerCasePipe.transform(this.datePipe.transform(date, 'LLLL') as string)];\r\n }\r\n\r\n dateOnChange(date: Date) {\r\n if (this.datePipe.transform(date, 'yyyy-MM-dd') !== this.datePipe.transform(this.activatedDate, 'yyyy-MM-dd')) {\r\n this.activatedDate = date;\r\n this.dateChange.emit(this.activatedDate);\r\n this.cdr.markForCheck();\r\n }\r\n }\r\n\r\n modelOnChange() {\r\n this.cdr.detectChanges();\r\n }\r\n\r\n rangeOnChange(range: Date[]) {\r\n this.rangeChange.emit(range);\r\n }\r\n\r\n getDate(date: Date): XCalendarNode[] {\r\n if (this.data) {\r\n return this.data[this.datePipe.transform(date, 'yyyy-MM-dd') as string];\r\n } else {\r\n return [];\r\n }\r\n }\r\n\r\n getMonth(date: Date): XCalendarNode[] {\r\n return this.monthData?.[this.datePipe.transform(date, 'yyyy-MM') as string];\r\n }\r\n\r\n trackByDate(_index: number, item: XCalendarNode) {\r\n return `${item.id}-${item.label}`;\r\n }\r\n\r\n trackByMonth(_index: number, item: XCalendarNode) {\r\n return item.id;\r\n }\r\n}\r\n","<div #calendar class=\"x-calendar\" [ngClass]=\"classMap\">\r\n <div class=\"x-calendar-header\">\r\n <div class=\"x-calendar-header-left\">\r\n <ng-container *ngIf=\"headerLeftTemp\">\r\n <ng-container *ngTemplateOutlet=\"headerLeftTemp\"></ng-container>\r\n </ng-container>\r\n </div>\r\n <div class=\"x-calendar-header-right\">\r\n <x-date-picker [(ngModel)]=\"datetime\" [type]=\"model\" showHeader=\"false\" [clearable]=\"false\"></x-date-picker>\r\n <x-buttons>\r\n <x-button (click)=\"action(-1)\">{{ model === 'month' ? locale.lastMonth : locale.lastYear }}</x-button>\r\n <x-button (click)=\"action(1)\">{{ model === 'month' ? locale.nextMonth : locale.nextYear }}</x-button>\r\n </x-buttons>\r\n <x-radio [data]=\"radioData\" [(ngModel)]=\"model\" (ngModelChange)=\"modelOnChange()\" button></x-radio>\r\n </div>\r\n </div>\r\n <div class=\"x-calendar-body\">\r\n <x-picker-date\r\n *ngIf=\"model === 'month'\"\r\n [display]=\"datetime\"\r\n (modelChange)=\"dateOnChange($event)\"\r\n (rangeChange)=\"rangeOnChange($event)\"\r\n [dateTemp]=\"dateTemp\"\r\n showHeader=\"false\"\r\n ></x-picker-date>\r\n <x-picker-month\r\n *ngIf=\"model === 'year'\"\r\n [display]=\"datetime\"\r\n (modelChange)=\"dateOnChange($event)\"\r\n (rangeChange)=\"rangeOnChange($event)\"\r\n [monthTemp]=\"monthTemp\"\r\n showHeader=\"false\"\r\n ></x-picker-month>\r\n </div>\r\n</div>\r\n\r\n<ng-template #dateTemp let-date=\"date$\">\r\n <div class=\"x-calendar-date\" [class.x-activated]=\"(date | date: 'yyyyMMdd') === (activatedDate | date: 'yyyyMMdd')\">\r\n <span [title]=\"date | date: 'yyyy-MM-dd'\">{{ date | date: 'd' }}</span>\r\n <div class=\"x-calendar-date-content\" *ngIf=\"displayType === 'calendar'\">\r\n <ul *ngIf=\"getDate(date)\">\r\n <li *ngFor=\"let item of getDate(date); trackBy: trackByDate\">\r\n <span [title]=\"item.id + item.label\">{{ item.id }}{{ item.label }}</span>\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n</ng-template>\r\n\r\n<ng-template #monthTemp let-date=\"date$\">\r\n <div class=\"x-calendar-month\" [class.x-activated]=\"(date | date: 'yyyyMM') === (activatedDate | date: 'yyyyMM')\">\r\n <span [title]=\"date | date: 'yyyy-MM'\">{{ getLocaleMonth(date) }}</span>\r\n <div class=\"x-calendar-month-content\" *ngIf=\"displayType === 'calendar'\">\r\n <ul *ngIf=\"getMonth(date)\">\r\n <li *ngFor=\"let item of getMonth(date); trackBy: trackByMonth\">\r\n <x-link x-tooltip [content]=\"item.label\" placement=\"top\">{{ item.id }}</x-link>\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n</ng-template>\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { XCalendarComponent } from './calendar.component';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { XDatePickerModule } from '@ng-nest/ui/date-picker';\r\nimport { XButtonModule } from '@ng-nest/ui/button';\r\nimport { XRadioModule } from '@ng-nest/ui/radio';\r\nimport { XLinkModule } from '@ng-nest/ui/link';\r\nimport { XTooltipModule } from '@ng-nest/ui/tooltip';\r\nimport { XCalendarProperty } from './calendar.property';\r\nimport { XI18nModule } from '@ng-nest/ui/i18n';\r\n\r\n@NgModule({\r\n declarations: [XCalendarComponent, XCalendarProperty],\r\n exports: [XCalendarComponent],\r\n imports: [CommonModule, FormsModule, XLinkModule, XTooltipModule, XRadioModule, XDatePickerModule, XButtonModule, XI18nModule]\r\n})\r\nexport class XCalendarModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAGA;;;;AAIG;AACI,MAAM,eAAe,GAAG,aAAa;AAE5C;;AAEG;AAEG,MAAO,iBAAkB,SAAQ,SAAS,CAAA;AADhD,IAAA,WAAA,GAAA;;AAOE;;;AAGG;AACM,QAAA,IAAK,CAAA,KAAA,GAAmB,OAAO,CAAC;AACzC;;;AAGG;AACM,QAAA,IAAW,CAAA,WAAA,GAAkB,UAAU,CAAC;AAMjD;;;AAGG;AACO,QAAA,IAAA,CAAA,UAAU,GAAG,IAAI,YAAY,EAAQ,CAAC;AAChD;;;AAGG;AACO,QAAA,IAAA,CAAA,WAAW,GAAG,IAAI,YAAY,EAAU,CAAC;KACpD;;iIA/BY,iBAAiB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAjB,mBAAA,iBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,iBAAiB,sPADP,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,CAAA;2FACZ,iBAAiB,EAAA,UAAA,EAA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,EAAE,iBAAiB,EAAE,aAAa,EAAE,WAAW,CAAA,EAAA,OAAA,EAAA,CADnH,kBAAkB,CAAA,EAAA,CAAA,CAAA;AAGjB,mBAAA,eAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,eAAe,EAFhB,OAAA,EAAA,CAAA,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,cAAc,EAAE,YAAY,EAAE,iBAAiB,EAAE,aAAa,EAAE,WAAW,CAAA,EAAA,CAAA,CAAA;2FAElH,eAAe,EAAA,UAAA,EAAA,CAAA;kBAL3B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,CAAC,kBAAkB,EAAE,iBAAiB,CAAC;oBACrD,OAAO,EAAE,CAAC,kBAAkB,CAAC;AAC7B,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,cAAc,EAAE,YAAY,EAAE,iBAAiB,EAAE,aAAa,EAAE,WAAW,CAAC;iBAC/H,CAAA;;;AChBD;;AAEG;;;;"}
@@ -29,12 +29,12 @@ class XCardProperty extends XProperty {
29
29
  this.bodyStyle = {};
30
30
  }
31
31
  }
32
- /** @nocollapse */ XCardProperty.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: XCardProperty, deps: null, target: i0.ɵɵFactoryTarget.Component });
33
- /** @nocollapse */ XCardProperty.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: XCardProperty, selector: "ng-component", inputs: { width: "width", bodyStyle: "bodyStyle", header: "header", shadow: "shadow" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
32
+ /** @nocollapse */ XCardProperty.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: XCardProperty, deps: null, target: i0.ɵɵFactoryTarget.Component });
33
+ /** @nocollapse */ XCardProperty.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.0", type: XCardProperty, selector: "ng-component", inputs: { width: "width", bodyStyle: "bodyStyle", header: "header", shadow: "shadow" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
34
34
  __decorate([
35
35
  XWithConfig(X_CONFIG_NAME, 'always')
36
36
  ], XCardProperty.prototype, "shadow", void 0);
37
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: XCardProperty, decorators: [{
37
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: XCardProperty, decorators: [{
38
38
  type: Component,
39
39
  args: [{ template: '' }]
40
40
  }], propDecorators: { width: [{
@@ -62,19 +62,19 @@ class XCardComponent extends XCardProperty {
62
62
  this.classMap[`${XCardPrefix}-${this.shadow}`] = !XIsEmpty(this.shadow);
63
63
  }
64
64
  }
65
- /** @nocollapse */ XCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: XCardComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1.XConfigService }], target: i0.ɵɵFactoryTarget.Component });
66
- /** @nocollapse */ XCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: XCardComponent, selector: "x-card", usesInheritance: true, ngImport: i0, template: "<div #card class=\"x-card\" [ngClass]=\"classMap\" [style.width]=\"width\">\r\n <div class=\"x-card-header\" *ngIf=\"header\">\r\n <ng-container *xOutlet=\"header\">{{ header }}</ng-container>\r\n </div>\r\n <div class=\"x-card-body\" [ngStyle]=\"bodyStyle\">\r\n <ng-content></ng-content>\r\n </div>\r\n</div>\r\n", styles: [".x-card{margin:0;padding:0;font-size:var(--x-font-size);box-sizing:border-box;position:relative;border:var(--x-border-width) var(--x-border-style) var(--x-border);border-radius:var(--x-border-radius);background-color:var(--x-background-a100);transition:box-shadow .3s}.x-card-always,.x-card-hover:hover{box-shadow:var(--x-box-shadow) var(--x-box-shadow-light-color)}.x-card-header{display:flex;align-items:center;justify-content:space-between;padding:.675rem;border-bottom:var(--x-border-width) var(--x-border-style) var(--x-border)}.x-card-body{padding:.875rem;width:100%}.x-card-body>ul li:not(:last-child){margin-bottom:.875rem}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i3.XOutletDirective, selector: "[xOutlet]", inputs: ["xOutletContext", "xOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
67
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: XCardComponent, decorators: [{
65
+ /** @nocollapse */ XCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: XCardComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1.XConfigService }], target: i0.ɵɵFactoryTarget.Component });
66
+ /** @nocollapse */ XCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.0", type: XCardComponent, selector: "x-card", usesInheritance: true, ngImport: i0, template: "<div #card class=\"x-card\" [ngClass]=\"classMap\" [style.width]=\"width\">\r\n <div class=\"x-card-header\" *ngIf=\"header\">\r\n <ng-container *xOutlet=\"header\">{{ header }}</ng-container>\r\n </div>\r\n <div class=\"x-card-body\" [ngStyle]=\"bodyStyle\">\r\n <ng-content></ng-content>\r\n </div>\r\n</div>\r\n", styles: [".x-card{margin:0;padding:0;font-size:var(--x-font-size);box-sizing:border-box;position:relative;border:var(--x-border-width) var(--x-border-style) var(--x-border);border-radius:var(--x-border-radius);background-color:var(--x-background-a100);transition:box-shadow .3s}.x-card-always,.x-card-hover:hover{box-shadow:var(--x-box-shadow) var(--x-box-shadow-light-color)}.x-card-header{display:flex;align-items:center;justify-content:space-between;padding:.675rem;border-bottom:var(--x-border-width) var(--x-border-style) var(--x-border)}.x-card-body{padding:.875rem;width:100%}.x-card-body>ul li:not(:last-child){margin-bottom:.875rem}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i3.XOutletDirective, selector: "[xOutlet]", inputs: ["xOutletContext", "xOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
67
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: XCardComponent, decorators: [{
68
68
  type: Component,
69
69
  args: [{ selector: `${XCardPrefix}`, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div #card class=\"x-card\" [ngClass]=\"classMap\" [style.width]=\"width\">\r\n <div class=\"x-card-header\" *ngIf=\"header\">\r\n <ng-container *xOutlet=\"header\">{{ header }}</ng-container>\r\n </div>\r\n <div class=\"x-card-body\" [ngStyle]=\"bodyStyle\">\r\n <ng-content></ng-content>\r\n </div>\r\n</div>\r\n", styles: [".x-card{margin:0;padding:0;font-size:var(--x-font-size);box-sizing:border-box;position:relative;border:var(--x-border-width) var(--x-border-style) var(--x-border);border-radius:var(--x-border-radius);background-color:var(--x-background-a100);transition:box-shadow .3s}.x-card-always,.x-card-hover:hover{box-shadow:var(--x-box-shadow) var(--x-box-shadow-light-color)}.x-card-header{display:flex;align-items:center;justify-content:space-between;padding:.675rem;border-bottom:var(--x-border-width) var(--x-border-style) var(--x-border)}.x-card-body{padding:.875rem;width:100%}.x-card-body>ul li:not(:last-child){margin-bottom:.875rem}\n"] }]
70
70
  }], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1.XConfigService }]; } });
71
71
 
72
72
  class XCardModule {
73
73
  }
74
- /** @nocollapse */ XCardModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: XCardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
75
- /** @nocollapse */ XCardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: XCardModule, declarations: [XCardComponent, XCardProperty], imports: [CommonModule, XIconModule, XOutletModule], exports: [XCardComponent] });
76
- /** @nocollapse */ XCardModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: XCardModule, imports: [CommonModule, XIconModule, XOutletModule] });
77
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: XCardModule, decorators: [{
74
+ /** @nocollapse */ XCardModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: XCardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
75
+ /** @nocollapse */ XCardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.0", ngImport: i0, type: XCardModule, declarations: [XCardComponent, XCardProperty], imports: [CommonModule, XIconModule, XOutletModule], exports: [XCardComponent] });
76
+ /** @nocollapse */ XCardModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: XCardModule, imports: [CommonModule, XIconModule, XOutletModule] });
77
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: XCardModule, decorators: [{
78
78
  type: NgModule,
79
79
  args: [{
80
80
  declarations: [XCardComponent, XCardProperty],
@@ -89,3 +89,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
89
89
 
90
90
  export { XCardComponent, XCardModule, XCardPrefix, XCardProperty };
91
91
  //# sourceMappingURL=ng-nest-ui-card.mjs.map
92
+ //# sourceMappingURL=ng-nest-ui-card.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ng-nest-ui-card.mjs","sources":["../../../../lib/ng-nest/ui/card/card.property.ts","../../../../lib/ng-nest/ui/card/card.component.ts","../../../../lib/ng-nest/ui/card/card.component.html","../../../../lib/ng-nest/ui/card/card.module.ts","../../../../lib/ng-nest/ui/card/ng-nest-ui-card.ts"],"sourcesContent":["import { XTemplate, XProperty, XNumber, XShadow, XWithConfig } from '@ng-nest/ui/core';\r\nimport { Input, Component } from '@angular/core';\r\n\r\n/**\r\n * Card\r\n * @selector x-card\r\n * @decorator component\r\n */\r\nexport const XCardPrefix = 'x-card';\r\nconst X_CONFIG_NAME = 'card';\r\n\r\n/**\r\n * Card Property\r\n */\r\n@Component({ template: '' })\r\nexport class XCardProperty extends XProperty {\r\n /**\r\n * @zh_CN 卡片宽度\r\n * @en_US Card width\r\n */\r\n @Input() width?: string;\r\n /**\r\n * @zh_CN 内容样式\r\n * @en_US Content style\r\n */\r\n @Input() bodyStyle: { [property: string]: XNumber } = {};\r\n /**\r\n * @zh_CN 头部模板\r\n * @en_US Head template\r\n */\r\n @Input() header?: XTemplate;\r\n /**\r\n * @zh_CN 阴影显示方式\r\n * @en_US Shadow display method\r\n */\r\n @Input() @XWithConfig<XCardShadow>(X_CONFIG_NAME, 'always') shadow?: XCardShadow;\r\n}\r\n\r\n/**\r\n * @zh_CN 阴影显示配置\r\n * @en_US Shadow display configuration\r\n */\r\nexport type XCardShadow = XShadow;\r\n","import { Component, OnInit, ViewEncapsulation, Renderer2, ElementRef, ChangeDetectorRef, ChangeDetectionStrategy } from '@angular/core';\r\nimport { XCardPrefix, XCardProperty } from './card.property';\r\nimport { XIsEmpty, XConfigService } from '@ng-nest/ui/core';\r\n\r\n@Component({\r\n selector: `${XCardPrefix}`,\r\n templateUrl: './card.component.html',\r\n styleUrls: ['./card.component.scss'],\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class XCardComponent extends XCardProperty implements OnInit {\r\n constructor(\r\n public renderer: Renderer2,\r\n public elementRef: ElementRef,\r\n public cdr: ChangeDetectorRef,\r\n public configService: XConfigService\r\n ) {\r\n super();\r\n }\r\n\r\n ngOnInit() {\r\n this.setClassMap();\r\n }\r\n\r\n setClassMap() {\r\n this.classMap[`${XCardPrefix}-${this.shadow}`] = !XIsEmpty(this.shadow);\r\n }\r\n}\r\n","<div #card class=\"x-card\" [ngClass]=\"classMap\" [style.width]=\"width\">\r\n <div class=\"x-card-header\" *ngIf=\"header\">\r\n <ng-container *xOutlet=\"header\">{{ header }}</ng-container>\r\n </div>\r\n <div class=\"x-card-body\" [ngStyle]=\"bodyStyle\">\r\n <ng-content></ng-content>\r\n </div>\r\n</div>\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { XCardComponent } from './card.component';\r\nimport { XIconModule } from '@ng-nest/ui/icon';\r\nimport { XOutletModule } from '@ng-nest/ui/outlet';\r\nimport { XCardProperty } from './card.property';\r\n\r\n@NgModule({\r\n declarations: [XCardComponent, XCardProperty],\r\n exports: [XCardComponent],\r\n imports: [CommonModule, XIconModule, XOutletModule]\r\n})\r\nexport class XCardModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;AAGA;;;;AAIG;AACI,MAAM,WAAW,GAAG,SAAS;AACpC,MAAM,aAAa,GAAG,MAAM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file":"ng-nest-ui-card.mjs","sources":["../../../../lib/ng-nest/ui/card/card.property.ts","../../../../lib/ng-nest/ui/card/card.component.ts","../../../../lib/ng-nest/ui/card/card.component.html","../../../../lib/ng-nest/ui/card/card.module.ts","../../../../lib/ng-nest/ui/card/ng-nest-ui-card.ts"],"sourcesContent":["import { XTemplate, XProperty, XNumber, XShadow, XWithConfig } from '@ng-nest/ui/core';\r\nimport { Input, Component } from '@angular/core';\r\n\r\n/**\r\n * Card\r\n * @selector x-card\r\n * @decorator component\r\n */\r\nexport const XCardPrefix = 'x-card';\r\nconst X_CONFIG_NAME = 'card';\r\n\r\n/**\r\n * Card Property\r\n */\r\n@Component({ template: '' })\r\nexport class XCardProperty extends XProperty {\r\n /**\r\n * @zh_CN 卡片宽度\r\n * @en_US Card width\r\n */\r\n @Input() width?: string;\r\n /**\r\n * @zh_CN 内容样式\r\n * @en_US Content style\r\n */\r\n @Input() bodyStyle: { [property: string]: XNumber } = {};\r\n /**\r\n * @zh_CN 头部模板\r\n * @en_US Head template\r\n */\r\n @Input() header?: XTemplate;\r\n /**\r\n * @zh_CN 阴影显示方式\r\n * @en_US Shadow display method\r\n */\r\n @Input() @XWithConfig<XCardShadow>(X_CONFIG_NAME, 'always') shadow?: XCardShadow;\r\n}\r\n\r\n/**\r\n * @zh_CN 阴影显示配置\r\n * @en_US Shadow display configuration\r\n */\r\nexport type XCardShadow = XShadow;\r\n","import { Component, OnInit, ViewEncapsulation, Renderer2, ElementRef, ChangeDetectorRef, ChangeDetectionStrategy } from '@angular/core';\r\nimport { XCardPrefix, XCardProperty } from './card.property';\r\nimport { XIsEmpty, XConfigService } from '@ng-nest/ui/core';\r\n\r\n@Component({\r\n selector: `${XCardPrefix}`,\r\n templateUrl: './card.component.html',\r\n styleUrls: ['./card.component.scss'],\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class XCardComponent extends XCardProperty implements OnInit {\r\n constructor(\r\n public renderer: Renderer2,\r\n public elementRef: ElementRef,\r\n public cdr: ChangeDetectorRef,\r\n public configService: XConfigService\r\n ) {\r\n super();\r\n }\r\n\r\n ngOnInit() {\r\n this.setClassMap();\r\n }\r\n\r\n setClassMap() {\r\n this.classMap[`${XCardPrefix}-${this.shadow}`] = !XIsEmpty(this.shadow);\r\n }\r\n}\r\n","<div #card class=\"x-card\" [ngClass]=\"classMap\" [style.width]=\"width\">\r\n <div class=\"x-card-header\" *ngIf=\"header\">\r\n <ng-container *xOutlet=\"header\">{{ header }}</ng-container>\r\n </div>\r\n <div class=\"x-card-body\" [ngStyle]=\"bodyStyle\">\r\n <ng-content></ng-content>\r\n </div>\r\n</div>\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { XCardComponent } from './card.component';\r\nimport { XIconModule } from '@ng-nest/ui/icon';\r\nimport { XOutletModule } from '@ng-nest/ui/outlet';\r\nimport { XCardProperty } from './card.property';\r\n\r\n@NgModule({\r\n declarations: [XCardComponent, XCardProperty],\r\n exports: [XCardComponent],\r\n imports: [CommonModule, XIconModule, XOutletModule]\r\n})\r\nexport class XCardModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;AAGA;;;;AAIG;AACI,MAAM,WAAW,GAAG,SAAS;AACpC,MAAM,aAAa,GAAG,MAAM,CAAC;AAE7B;;AAEG;AAEG,MAAO,aAAc,SAAQ,SAAS,CAAA;AAD5C,IAAA,WAAA,GAAA;;AAOE;;;AAGG;AACM,QAAA,IAAS,CAAA,SAAA,GAAoC,EAAE,CAAC;KAW1D;;6HArBY,aAAa,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAb,mBAAA,aAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EA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,MAAA,EAAA,CAAA,2nBAAA,CAAA,EAAA,CAAA;;;MEGpC,WAAW,CAAA;;2HAAX,WAAW,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;4HAAX,WAAW,EAAA,YAAA,EAAA,CAJP,cAAc,EAAE,aAAa,CAAA,EAAA,OAAA,EAAA,CAElC,YAAY,EAAE,WAAW,EAAE,aAAa,CAAA,EAAA,OAAA,EAAA,CADxC,cAAc,CAAA,EAAA,CAAA,CAAA;AAGb,mBAAA,WAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAW,EAFZ,OAAA,EAAA,CAAA,YAAY,EAAE,WAAW,EAAE,aAAa,CAAA,EAAA,CAAA,CAAA;2FAEvC,WAAW,EAAA,UAAA,EAAA,CAAA;kBALvB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,CAAC,cAAc,EAAE,aAAa,CAAC;oBAC7C,OAAO,EAAE,CAAC,cAAc,CAAC;AACzB,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,WAAW,EAAE,aAAa,CAAC;iBACpD,CAAA;;;ACXD;;AAEG;;;;"}
@@ -46,8 +46,8 @@ class XCarouselProperty extends XProperty {
46
46
  this.activeChange = new EventEmitter();
47
47
  }
48
48
  }
49
- /** @nocollapse */ XCarouselProperty.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: XCarouselProperty, deps: null, target: i0.ɵɵFactoryTarget.Component });
50
- /** @nocollapse */ XCarouselProperty.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: XCarouselProperty, selector: "ng-component", inputs: { active: "active", height: "height", trigger: "trigger", arrow: "arrow", direction: "direction", autoplay: "autoplay", interval: "interval", outside: "outside", card: "card" }, outputs: { activeChange: "activeChange" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
49
+ /** @nocollapse */ XCarouselProperty.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: XCarouselProperty, deps: null, target: i0.ɵɵFactoryTarget.Component });
50
+ /** @nocollapse */ XCarouselProperty.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.0", type: XCarouselProperty, selector: "ng-component", inputs: { active: "active", height: "height", trigger: "trigger", arrow: "arrow", direction: "direction", autoplay: "autoplay", interval: "interval", outside: "outside", card: "card" }, outputs: { activeChange: "activeChange" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
51
51
  __decorate([
52
52
  XInputNumber()
53
53
  ], XCarouselProperty.prototype, "active", void 0);
@@ -72,7 +72,7 @@ __decorate([
72
72
  __decorate([
73
73
  XInputBoolean()
74
74
  ], XCarouselProperty.prototype, "card", void 0);
75
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: XCarouselProperty, decorators: [{
75
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: XCarouselProperty, decorators: [{
76
76
  type: Component,
77
77
  args: [{ template: '' }]
78
78
  }], propDecorators: { active: [{
@@ -107,12 +107,12 @@ const XCarouselPanelPrefix = 'x-carousel-panel';
107
107
  */
108
108
  class XCarouselPanelProperty extends XProperty {
109
109
  }
110
- /** @nocollapse */ XCarouselPanelProperty.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: XCarouselPanelProperty, deps: null, target: i0.ɵɵFactoryTarget.Component });
111
- /** @nocollapse */ XCarouselPanelProperty.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: XCarouselPanelProperty, selector: "ng-component", inputs: { active: "active" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
110
+ /** @nocollapse */ XCarouselPanelProperty.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: XCarouselPanelProperty, deps: null, target: i0.ɵɵFactoryTarget.Component });
111
+ /** @nocollapse */ XCarouselPanelProperty.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.0", type: XCarouselPanelProperty, selector: "ng-component", inputs: { active: "active" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
112
112
  __decorate([
113
113
  XInputBoolean()
114
114
  ], XCarouselPanelProperty.prototype, "active", void 0);
115
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: XCarouselPanelProperty, decorators: [{
115
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: XCarouselPanelProperty, decorators: [{
116
116
  type: Component,
117
117
  args: [{ template: '' }]
118
118
  }], propDecorators: { active: [{
@@ -187,9 +187,9 @@ class XCarouselComponent extends XCarouselProperty {
187
187
  return index;
188
188
  }
189
189
  }
190
- /** @nocollapse */ XCarouselComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: XCarouselComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1.XConfigService }], target: i0.ɵɵFactoryTarget.Component });
191
- /** @nocollapse */ XCarouselComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: XCarouselComponent, selector: "x-carousel", viewQueries: [{ propertyName: "carousel", first: true, predicate: ["carousel"], descendants: true }, { propertyName: "content", first: true, predicate: ["content"], descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div #carousel class=\"x-carousel\" [ngClass]=\"classMap\" [class.x-carousel-arrow-always]=\"arrow === 'always'\">\r\n <div #content class=\"x-carousel-content\" [style.height]=\"height\">\r\n <ng-container *ngIf=\"arrow !== 'never' && direction !== 'vertical'\">\r\n <x-button class=\"arrow-left\" icon=\"fto-chevron-left\" (click)=\"action(active, -1)\"></x-button>\r\n <x-button class=\"arrow-right\" icon=\"fto-chevron-right\" (click)=\"action(active, 1)\"></x-button>\r\n </ng-container>\r\n <ng-content></ng-content>\r\n </div>\r\n <ul class=\"x-carousel-indicator\" [class.x-carousel-indicator-outside]=\"outside || card\">\r\n <li\r\n *ngFor=\"let panel of panelChanges; let i = index; trackBy: trackByPanel\"\r\n [class.x-activated]=\"getActivated(i)\"\r\n (click)=\"action(i, 0, 'click')\"\r\n (mouseenter)=\"action(i, 0, 'hover')\"\r\n >\r\n <x-button type=\"text\"></x-button>\r\n </li>\r\n </ul>\r\n</div>\r\n", styles: [".x-carousel{margin:0;padding:0;font-size:var(--x-font-size);box-sizing:border-box;position:relative}.x-carousel-content{position:relative}.x-carousel-content>x-button{opacity:0;visibility:hidden;top:50%;z-index:10;transform:translateY(-50%);position:absolute;transition:var(--x-animation-duration-base) ease-out}.x-carousel-content>x-button .x-button{border:none;outline:none;padding:0;margin:0;height:2.25rem;width:2.25rem;border-radius:50%;background-color:#1f2d3d26;color:var(--x-background-100);text-align:center}.x-carousel-content>x-button .x-button:hover{color:var(--x-background-100);background-color:#1f2d3d40}.x-carousel-content>x-button.arrow-left{left:1rem;transform:translate3D(-15px,-50%,0)}.x-carousel-content>x-button.arrow-right{right:1rem;transform:translate3D(15px,-50%,0)}.x-carousel-content>x-carousel-panel{position:absolute;top:0;left:0;width:100%;height:100%;display:inline-block;overflow:hidden;background-color:var(--x-background-a100);z-index:0}.x-carousel-content>x-carousel-panel.x-carousel-animating{transition:.4s ease-in-out}.x-carousel-content>x-carousel-panel.x-carousel-card{width:50%}.x-carousel-content>x-carousel-panel.x-carousel-in-stage{cursor:pointer;z-index:1}.x-carousel-content>x-carousel-panel.x-carousel-in-stage .x-carousel-mask{position:absolute;width:100%;height:100%;top:0;left:0;background-color:var(--x-background);opacity:.24;transition:.2s}.x-carousel-content>x-carousel-panel.x-carousel-in-stage:hover .x-carousel-mask{opacity:.12}.x-carousel-content>x-carousel-panel.x-activated{z-index:2}.x-carousel-indicator{bottom:.25rem;left:50%;transform:translate(-50%);position:absolute;z-index:2;display:inline-flex}.x-carousel-indicator>li{cursor:pointer;background-color:transparent;display:inline-flex;padding:.75rem .25rem}.x-carousel-indicator>li>x-button .x-button{padding:0;width:1.875rem;height:.125rem;background-color:#1f2d3d26;transition:.3s}.x-carousel-indicator>li:hover>x-button .x-button{background-color:#1f2d3d40}.x-carousel-indicator>li.x-activated>x-button .x-button{background-color:#ffffffe6}.x-carousel-indicator-outside{position:static;transform:none;display:flex;align-items:center;justify-content:center}.x-carousel-indicator-outside>li>x-button .x-button{background-color:var(--x-text-700)}.x-carousel-indicator-outside>li.x-activated>x-button .x-button{background-color:#00000080}.x-carousel:hover .x-carousel-content>x-button,.x-carousel-arrow-always .x-carousel-content>x-button{opacity:1;visibility:inherit}.x-carousel:hover .x-carousel-content>x-button.arrow-left,.x-carousel-arrow-always .x-carousel-content>x-button.arrow-left{transform:translate3D(0,-50%,0)}.x-carousel:hover .x-carousel-content>x-button.arrow-right,.x-carousel-arrow-always .x-carousel-content>x-button.arrow-right{transform:translate3D(0,-50%,0)}.x-carousel-horizontal{overflow-x:hidden}.x-carousel-vertical{overflow-y:hidden}.x-carousel-vertical>.x-carousel-indicator{right:0;top:50%;left:inherit;bottom:inherit;flex-direction:column;transform:translateY(-50%)}.x-carousel-vertical>.x-carousel-indicator>li{padding:.25rem .75rem}.x-carousel-vertical>.x-carousel-indicator>li>x-button .x-button{width:.125rem;height:1rem}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.XButtonComponent, selector: "x-button" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
192
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: XCarouselComponent, decorators: [{
190
+ /** @nocollapse */ XCarouselComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: XCarouselComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1.XConfigService }], target: i0.ɵɵFactoryTarget.Component });
191
+ /** @nocollapse */ XCarouselComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.0", type: XCarouselComponent, selector: "x-carousel", viewQueries: [{ propertyName: "carousel", first: true, predicate: ["carousel"], descendants: true }, { propertyName: "content", first: true, predicate: ["content"], descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div #carousel class=\"x-carousel\" [ngClass]=\"classMap\" [class.x-carousel-arrow-always]=\"arrow === 'always'\">\r\n <div #content class=\"x-carousel-content\" [style.height]=\"height\">\r\n <ng-container *ngIf=\"arrow !== 'never' && direction !== 'vertical'\">\r\n <x-button class=\"arrow-left\" icon=\"fto-chevron-left\" (click)=\"action(active, -1)\"></x-button>\r\n <x-button class=\"arrow-right\" icon=\"fto-chevron-right\" (click)=\"action(active, 1)\"></x-button>\r\n </ng-container>\r\n <ng-content></ng-content>\r\n </div>\r\n <ul class=\"x-carousel-indicator\" [class.x-carousel-indicator-outside]=\"outside || card\">\r\n <li\r\n *ngFor=\"let panel of panelChanges; let i = index; trackBy: trackByPanel\"\r\n [class.x-activated]=\"getActivated(i)\"\r\n (click)=\"action(i, 0, 'click')\"\r\n (mouseenter)=\"action(i, 0, 'hover')\"\r\n >\r\n <x-button type=\"text\"></x-button>\r\n </li>\r\n </ul>\r\n</div>\r\n", styles: [".x-carousel{margin:0;padding:0;font-size:var(--x-font-size);box-sizing:border-box;position:relative}.x-carousel-content{position:relative}.x-carousel-content>x-button{opacity:0;visibility:hidden;top:50%;z-index:10;transform:translateY(-50%);position:absolute;transition:var(--x-animation-duration-base) ease-out}.x-carousel-content>x-button .x-button{border:none;outline:none;padding:0;margin:0;height:2.25rem;width:2.25rem;border-radius:50%;background-color:#1f2d3d26;color:var(--x-background-100);text-align:center}.x-carousel-content>x-button .x-button:hover{color:var(--x-background-100);background-color:#1f2d3d40}.x-carousel-content>x-button.arrow-left{left:1rem;transform:translate3D(-15px,-50%,0)}.x-carousel-content>x-button.arrow-right{right:1rem;transform:translate3D(15px,-50%,0)}.x-carousel-content>x-carousel-panel{position:absolute;top:0;left:0;width:100%;height:100%;display:inline-block;overflow:hidden;background-color:var(--x-background-a100);z-index:0}.x-carousel-content>x-carousel-panel.x-carousel-animating{transition:.4s ease-in-out}.x-carousel-content>x-carousel-panel.x-carousel-card{width:50%}.x-carousel-content>x-carousel-panel.x-carousel-in-stage{cursor:pointer;z-index:1}.x-carousel-content>x-carousel-panel.x-carousel-in-stage .x-carousel-mask{position:absolute;width:100%;height:100%;top:0;left:0;background-color:var(--x-background);opacity:.24;transition:.2s}.x-carousel-content>x-carousel-panel.x-carousel-in-stage:hover .x-carousel-mask{opacity:.12}.x-carousel-content>x-carousel-panel.x-activated{z-index:2}.x-carousel-indicator{bottom:.25rem;left:50%;transform:translate(-50%);position:absolute;z-index:2;display:inline-flex}.x-carousel-indicator>li{cursor:pointer;background-color:transparent;display:inline-flex;padding:.75rem .25rem}.x-carousel-indicator>li>x-button .x-button{padding:0;width:1.875rem;height:.125rem;background-color:#1f2d3d26;transition:.3s}.x-carousel-indicator>li:hover>x-button .x-button{background-color:#1f2d3d40}.x-carousel-indicator>li.x-activated>x-button .x-button{background-color:#ffffffe6}.x-carousel-indicator-outside{position:static;transform:none;display:flex;align-items:center;justify-content:center}.x-carousel-indicator-outside>li>x-button .x-button{background-color:var(--x-text-700)}.x-carousel-indicator-outside>li.x-activated>x-button .x-button{background-color:#00000080}.x-carousel:hover .x-carousel-content>x-button,.x-carousel-arrow-always .x-carousel-content>x-button{opacity:1;visibility:inherit}.x-carousel:hover .x-carousel-content>x-button.arrow-left,.x-carousel-arrow-always .x-carousel-content>x-button.arrow-left{transform:translate3D(0,-50%,0)}.x-carousel:hover .x-carousel-content>x-button.arrow-right,.x-carousel-arrow-always .x-carousel-content>x-button.arrow-right{transform:translate3D(0,-50%,0)}.x-carousel-horizontal{overflow-x:hidden}.x-carousel-vertical{overflow-y:hidden}.x-carousel-vertical>.x-carousel-indicator{right:0;top:50%;left:inherit;bottom:inherit;flex-direction:column;transform:translateY(-50%)}.x-carousel-vertical>.x-carousel-indicator>li{padding:.25rem .75rem}.x-carousel-vertical>.x-carousel-indicator>li>x-button .x-button{width:.125rem;height:1rem}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.XButtonComponent, selector: "x-button" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
192
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: XCarouselComponent, decorators: [{
193
193
  type: Component,
194
194
  args: [{ selector: `${XCarouselPrefix}`, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div #carousel class=\"x-carousel\" [ngClass]=\"classMap\" [class.x-carousel-arrow-always]=\"arrow === 'always'\">\r\n <div #content class=\"x-carousel-content\" [style.height]=\"height\">\r\n <ng-container *ngIf=\"arrow !== 'never' && direction !== 'vertical'\">\r\n <x-button class=\"arrow-left\" icon=\"fto-chevron-left\" (click)=\"action(active, -1)\"></x-button>\r\n <x-button class=\"arrow-right\" icon=\"fto-chevron-right\" (click)=\"action(active, 1)\"></x-button>\r\n </ng-container>\r\n <ng-content></ng-content>\r\n </div>\r\n <ul class=\"x-carousel-indicator\" [class.x-carousel-indicator-outside]=\"outside || card\">\r\n <li\r\n *ngFor=\"let panel of panelChanges; let i = index; trackBy: trackByPanel\"\r\n [class.x-activated]=\"getActivated(i)\"\r\n (click)=\"action(i, 0, 'click')\"\r\n (mouseenter)=\"action(i, 0, 'hover')\"\r\n >\r\n <x-button type=\"text\"></x-button>\r\n </li>\r\n </ul>\r\n</div>\r\n", styles: [".x-carousel{margin:0;padding:0;font-size:var(--x-font-size);box-sizing:border-box;position:relative}.x-carousel-content{position:relative}.x-carousel-content>x-button{opacity:0;visibility:hidden;top:50%;z-index:10;transform:translateY(-50%);position:absolute;transition:var(--x-animation-duration-base) ease-out}.x-carousel-content>x-button .x-button{border:none;outline:none;padding:0;margin:0;height:2.25rem;width:2.25rem;border-radius:50%;background-color:#1f2d3d26;color:var(--x-background-100);text-align:center}.x-carousel-content>x-button .x-button:hover{color:var(--x-background-100);background-color:#1f2d3d40}.x-carousel-content>x-button.arrow-left{left:1rem;transform:translate3D(-15px,-50%,0)}.x-carousel-content>x-button.arrow-right{right:1rem;transform:translate3D(15px,-50%,0)}.x-carousel-content>x-carousel-panel{position:absolute;top:0;left:0;width:100%;height:100%;display:inline-block;overflow:hidden;background-color:var(--x-background-a100);z-index:0}.x-carousel-content>x-carousel-panel.x-carousel-animating{transition:.4s ease-in-out}.x-carousel-content>x-carousel-panel.x-carousel-card{width:50%}.x-carousel-content>x-carousel-panel.x-carousel-in-stage{cursor:pointer;z-index:1}.x-carousel-content>x-carousel-panel.x-carousel-in-stage .x-carousel-mask{position:absolute;width:100%;height:100%;top:0;left:0;background-color:var(--x-background);opacity:.24;transition:.2s}.x-carousel-content>x-carousel-panel.x-carousel-in-stage:hover .x-carousel-mask{opacity:.12}.x-carousel-content>x-carousel-panel.x-activated{z-index:2}.x-carousel-indicator{bottom:.25rem;left:50%;transform:translate(-50%);position:absolute;z-index:2;display:inline-flex}.x-carousel-indicator>li{cursor:pointer;background-color:transparent;display:inline-flex;padding:.75rem .25rem}.x-carousel-indicator>li>x-button .x-button{padding:0;width:1.875rem;height:.125rem;background-color:#1f2d3d26;transition:.3s}.x-carousel-indicator>li:hover>x-button .x-button{background-color:#1f2d3d40}.x-carousel-indicator>li.x-activated>x-button .x-button{background-color:#ffffffe6}.x-carousel-indicator-outside{position:static;transform:none;display:flex;align-items:center;justify-content:center}.x-carousel-indicator-outside>li>x-button .x-button{background-color:var(--x-text-700)}.x-carousel-indicator-outside>li.x-activated>x-button .x-button{background-color:#00000080}.x-carousel:hover .x-carousel-content>x-button,.x-carousel-arrow-always .x-carousel-content>x-button{opacity:1;visibility:inherit}.x-carousel:hover .x-carousel-content>x-button.arrow-left,.x-carousel-arrow-always .x-carousel-content>x-button.arrow-left{transform:translate3D(0,-50%,0)}.x-carousel:hover .x-carousel-content>x-button.arrow-right,.x-carousel-arrow-always .x-carousel-content>x-button.arrow-right{transform:translate3D(0,-50%,0)}.x-carousel-horizontal{overflow-x:hidden}.x-carousel-vertical{overflow-y:hidden}.x-carousel-vertical>.x-carousel-indicator{right:0;top:50%;left:inherit;bottom:inherit;flex-direction:column;transform:translateY(-50%)}.x-carousel-vertical>.x-carousel-indicator>li{padding:.25rem .75rem}.x-carousel-vertical>.x-carousel-indicator>li>x-button .x-button{width:.125rem;height:1rem}\n"] }]
195
195
  }], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1.XConfigService }]; }, propDecorators: { carousel: [{
@@ -312,9 +312,9 @@ class XCarouselPanelComponent extends XCarouselPanelProperty {
312
312
  this.renderer.removeClass(this.elementRef.nativeElement, cls);
313
313
  }
314
314
  }
315
- /** @nocollapse */ XCarouselPanelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: XCarouselPanelComponent, deps: [{ token: XCarouselComponent, host: true, optional: true }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i2$1.DomSanitizer }, { token: i0.ChangeDetectorRef }, { token: i1.XConfigService }], target: i0.ɵɵFactoryTarget.Component });
316
- /** @nocollapse */ XCarouselPanelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: XCarouselPanelComponent, selector: "x-carousel-panel", usesInheritance: true, ngImport: i0, template: "<div #carouselPanel class=\"x-carousel-panel\" (click)=\"panelClick()\">\r\n <div *ngIf=\"carousel?.card\" [hidden]=\"active\" class=\"x-carousel-mask\"></div>\r\n <ng-content></ng-content>\r\n</div>\r\n", styles: [".x-carousel-panel{margin:0;padding:0;box-sizing:border-box;width:100%;height:100%;display:inline-block}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], animations: [XDropAnimation], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
317
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: XCarouselPanelComponent, decorators: [{
315
+ /** @nocollapse */ XCarouselPanelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: XCarouselPanelComponent, deps: [{ token: XCarouselComponent, host: true, optional: true }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i2$1.DomSanitizer }, { token: i0.ChangeDetectorRef }, { token: i1.XConfigService }], target: i0.ɵɵFactoryTarget.Component });
316
+ /** @nocollapse */ XCarouselPanelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.0", type: XCarouselPanelComponent, selector: "x-carousel-panel", usesInheritance: true, ngImport: i0, template: "<div #carouselPanel class=\"x-carousel-panel\" (click)=\"panelClick()\">\r\n <div *ngIf=\"carousel?.card\" [hidden]=\"active\" class=\"x-carousel-mask\"></div>\r\n <ng-content></ng-content>\r\n</div>\r\n", styles: [".x-carousel-panel{margin:0;padding:0;box-sizing:border-box;width:100%;height:100%;display:inline-block}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], animations: [XDropAnimation], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
317
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: XCarouselPanelComponent, decorators: [{
318
318
  type: Component,
319
319
  args: [{ selector: `${XCarouselPanelPrefix}`, animations: [XDropAnimation], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div #carouselPanel class=\"x-carousel-panel\" (click)=\"panelClick()\">\r\n <div *ngIf=\"carousel?.card\" [hidden]=\"active\" class=\"x-carousel-mask\"></div>\r\n <ng-content></ng-content>\r\n</div>\r\n", styles: [".x-carousel-panel{margin:0;padding:0;box-sizing:border-box;width:100%;height:100%;display:inline-block}\n"] }]
320
320
  }], ctorParameters: function () {
@@ -327,10 +327,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
327
327
 
328
328
  class XCarouselModule {
329
329
  }
330
- /** @nocollapse */ XCarouselModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: XCarouselModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
331
- /** @nocollapse */ XCarouselModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: XCarouselModule, declarations: [XCarouselComponent, XCarouselPanelComponent, XCarouselProperty, XCarouselPanelProperty], imports: [CommonModule, XButtonModule], exports: [XCarouselComponent, XCarouselPanelComponent] });
332
- /** @nocollapse */ XCarouselModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: XCarouselModule, imports: [CommonModule, XButtonModule] });
333
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: XCarouselModule, decorators: [{
330
+ /** @nocollapse */ XCarouselModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: XCarouselModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
331
+ /** @nocollapse */ XCarouselModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.0", ngImport: i0, type: XCarouselModule, declarations: [XCarouselComponent, XCarouselPanelComponent, XCarouselProperty, XCarouselPanelProperty], imports: [CommonModule, XButtonModule], exports: [XCarouselComponent, XCarouselPanelComponent] });
332
+ /** @nocollapse */ XCarouselModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: XCarouselModule, imports: [CommonModule, XButtonModule] });
333
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: XCarouselModule, decorators: [{
334
334
  type: NgModule,
335
335
  args: [{
336
336
  declarations: [XCarouselComponent, XCarouselPanelComponent, XCarouselProperty, XCarouselPanelProperty],
@@ -345,3 +345,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
345
345
 
346
346
  export { XCarouselComponent, XCarouselModule, XCarouselPanelComponent, XCarouselPanelPrefix, XCarouselPanelProperty, XCarouselPrefix, XCarouselProperty };
347
347
  //# sourceMappingURL=ng-nest-ui-carousel.mjs.map
348
+ //# sourceMappingURL=ng-nest-ui-carousel.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ng-nest-ui-carousel.mjs","sources":["../../../../lib/ng-nest/ui/carousel/carousel.property.ts","../../../../lib/ng-nest/ui/carousel/carousel.component.ts","../../../../lib/ng-nest/ui/carousel/carousel.component.html","../../../../lib/ng-nest/ui/carousel/carousel-panel.component.ts","../../../../lib/ng-nest/ui/carousel/carousel-panel.component.html","../../../../lib/ng-nest/ui/carousel/carousel.module.ts","../../../../lib/ng-nest/ui/carousel/ng-nest-ui-carousel.ts"],"sourcesContent":["import {\r\n XProperty,\r\n XInputNumber,\r\n XInputBoolean,\r\n XNumber,\r\n XBoolean,\r\n XWithConfig,\r\n XShadow,\r\n XDisplayDirection,\r\n XTrigger\r\n} from '@ng-nest/ui/core';\r\nimport { Input, Output, EventEmitter, Component } from '@angular/core';\r\n\r\n/**\r\n * Carousel\r\n * @selector x-carousel\r\n * @decorator component\r\n */\r\nexport const XCarouselPrefix = 'x-carousel';\r\nconst X_CONFIG_NAME = 'carousel';\r\n\r\n/**\r\n * Carousel Property\r\n */\r\n@Component({ template: '' })\r\nexport class XCarouselProperty extends XProperty {\r\n /**\r\n * @zh_CN 当前激活的幻灯片索引\r\n * @en_US Index of the currently active slide\r\n */\r\n @Input() @XInputNumber() active: XNumber = 0;\r\n /**\r\n * @zh_CN 幻灯片高度\r\n * @en_US Slide height\r\n */\r\n @Input() @XWithConfig<string>(X_CONFIG_NAME, '15rem') height?: string;\r\n /**\r\n * @zh_CN 切换器触发方式\r\n * @en_US Switcher trigger method\r\n */\r\n @Input() @XWithConfig<XCarouselTrigger>(X_CONFIG_NAME, 'hover') trigger?: XCarouselTrigger;\r\n /**\r\n * @zh_CN 箭头显示影藏方式\r\n * @en_US Arrow shows how to hide\r\n */\r\n @Input() @XWithConfig<XCarouselArrow>(X_CONFIG_NAME, 'hover') arrow?: XCarouselArrow;\r\n /**\r\n * @zh_CN 幻灯片轮播方向\r\n * @en_US Slide rotation direction\r\n */\r\n @Input() @XWithConfig<XCarouselDirection>(X_CONFIG_NAME, 'horizontal') direction?: XCarouselDirection;\r\n /**\r\n * @zh_CN 自动切换\r\n * @en_US Automatic switching\r\n */\r\n @Input() @XInputBoolean() autoplay: XBoolean = true;\r\n /**\r\n * @zh_CN 自动切换时间间隔\r\n * @en_US Automatic switching time interval\r\n */\r\n @Input() interval: XNumber = 3000;\r\n /**\r\n * @zh_CN 切换器否显示在外面\r\n * @en_US Whether the switcher is displayed outside\r\n */\r\n @Input() @XInputBoolean() outside?: XBoolean;\r\n /**\r\n * @zh_CN 是否以卡片的方式显示幻灯片\r\n * @en_US Whether to display the slideshow as a card\r\n */\r\n @Input() @XInputBoolean() card?: XBoolean;\r\n /**\r\n * @zh_CN 激活的序号改变的事件\r\n * @en_US The activated sequence number changed event\r\n */\r\n @Output() activeChange = new EventEmitter<number>();\r\n}\r\n\r\n/**\r\n * @zh_CN 指示器切换方式\r\n * @en_US Indicator switching method\r\n */\r\nexport type XCarouselTrigger = XTrigger;\r\n\r\n/**\r\n * @zh_CN 切换箭头显示方式\r\n * @en_US Toggle arrow display\r\n */\r\nexport type XCarouselArrow = XShadow;\r\n\r\n/**\r\n * @zh_CN 走马灯展示的方向\r\n * @en_US The direction of the revolving lantern\r\n */\r\nexport type XCarouselDirection = XDisplayDirection;\r\n\r\n/**\r\n * Carousel Panel\r\n * @selector x-carousel-panel\r\n * @decorator component\r\n */\r\nexport const XCarouselPanelPrefix = 'x-carousel-panel';\r\n\r\n/**\r\n * Carousel Panel Property\r\n */\r\n@Component({ template: '' })\r\nexport class XCarouselPanelProperty extends XProperty {\r\n /**\r\n * @zh_CN 激活当前幻灯片\r\n * @en_US Activate the current slide\r\n */\r\n @Input() @XInputBoolean() active?: XBoolean;\r\n}\r\n","import {\r\n Component,\r\n OnInit,\r\n ViewEncapsulation,\r\n Renderer2,\r\n ElementRef,\r\n ChangeDetectorRef,\r\n ChangeDetectionStrategy,\r\n SimpleChanges,\r\n OnChanges,\r\n ViewChild\r\n} from '@angular/core';\r\nimport { XCarouselPrefix, XCarouselProperty } from './carousel.property';\r\nimport { XIsUndefined, XIsChange, XIsEmpty, XNumber, XResize, XConfigService } from '@ng-nest/ui/core';\r\nimport { BehaviorSubject, Subject } from 'rxjs';\r\nimport { takeUntil, debounceTime } from 'rxjs/operators';\r\n\r\n@Component({\r\n selector: `${XCarouselPrefix}`,\r\n templateUrl: './carousel.component.html',\r\n styleUrls: ['./carousel.component.scss'],\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class XCarouselComponent extends XCarouselProperty implements OnInit, OnChanges {\r\n @ViewChild('carousel') carousel!: ElementRef;\r\n @ViewChild('content') content!: ElementRef;\r\n start: number = -1;\r\n before!: number;\r\n timer: any;\r\n panelChanges: BehaviorSubject<any>[] = [];\r\n private _unSubject = new Subject<void>();\r\n private _resizeObserver!: ResizeObserver;\r\n\r\n constructor(\r\n public renderer: Renderer2,\r\n public elementRef: ElementRef,\r\n public cdr: ChangeDetectorRef,\r\n public configService: XConfigService\r\n ) {\r\n super();\r\n }\r\n\r\n ngOnInit() {\r\n this.setClassMap();\r\n }\r\n\r\n ngAfterViewInit() {\r\n this.autoplay && this.resetInterval();\r\n XResize(this.content.nativeElement)\r\n .pipe(debounceTime(30), takeUntil(this._unSubject))\r\n .subscribe((x) => {\r\n this.panelChanges.forEach((sub) => sub.next(true));\r\n this._resizeObserver = x.resizeObserver;\r\n this.cdr.detectChanges();\r\n });\r\n }\r\n\r\n ngOnChanges(simples: SimpleChanges): void {\r\n const { active } = simples;\r\n XIsChange(active) && this.setActiveItem(Number(this.active));\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this.timer && clearInterval(this.timer);\r\n this.panelChanges.forEach((x) => x.complete());\r\n this._unSubject.complete();\r\n this._unSubject.unsubscribe();\r\n this._resizeObserver?.disconnect();\r\n }\r\n\r\n action(index: XNumber, increase: number, event?: string): void {\r\n if (!XIsUndefined(event) && this.trigger !== event) return;\r\n this.autoplay && this.resetInterval();\r\n this.setActiveItem(Number(index) + increase);\r\n }\r\n\r\n resetInterval(): void {\r\n this.timer && clearInterval(this.timer);\r\n this.timer = setInterval(() => {\r\n this.setActiveItem(Number(this.active) + 1);\r\n }, Number(this.interval));\r\n }\r\n\r\n setActiveItem(index: number): void {\r\n if (this.start === -1) return;\r\n this.before = Number(this.active);\r\n const nextValue = index > this.start ? 0 : index < 0 ? this.start : index;\r\n this.active = nextValue;\r\n this.panelChanges.forEach((sub) => sub.next(true));\r\n this.activeChange.emit(this.active);\r\n this.cdr.detectChanges();\r\n }\r\n\r\n setClassMap() {\r\n this.classMap[`${XCarouselPrefix}-${this.direction}`] = !XIsEmpty(this.direction);\r\n }\r\n\r\n getActivated(index: number) {\r\n return Number(this.active) === index;\r\n }\r\n\r\n trackByPanel(index: number, _item: any) {\r\n return index;\r\n }\r\n}\r\n","<div #carousel class=\"x-carousel\" [ngClass]=\"classMap\" [class.x-carousel-arrow-always]=\"arrow === 'always'\">\r\n <div #content class=\"x-carousel-content\" [style.height]=\"height\">\r\n <ng-container *ngIf=\"arrow !== 'never' && direction !== 'vertical'\">\r\n <x-button class=\"arrow-left\" icon=\"fto-chevron-left\" (click)=\"action(active, -1)\"></x-button>\r\n <x-button class=\"arrow-right\" icon=\"fto-chevron-right\" (click)=\"action(active, 1)\"></x-button>\r\n </ng-container>\r\n <ng-content></ng-content>\r\n </div>\r\n <ul class=\"x-carousel-indicator\" [class.x-carousel-indicator-outside]=\"outside || card\">\r\n <li\r\n *ngFor=\"let panel of panelChanges; let i = index; trackBy: trackByPanel\"\r\n [class.x-activated]=\"getActivated(i)\"\r\n (click)=\"action(i, 0, 'click')\"\r\n (mouseenter)=\"action(i, 0, 'hover')\"\r\n >\r\n <x-button type=\"text\"></x-button>\r\n </li>\r\n </ul>\r\n</div>\r\n","import {\r\n Component,\r\n OnInit,\r\n ViewEncapsulation,\r\n Renderer2,\r\n ElementRef,\r\n ChangeDetectorRef,\r\n ChangeDetectionStrategy,\r\n Host,\r\n Optional\r\n} from '@angular/core';\r\nimport { XCarouselPanelPrefix, XCarouselPanelProperty } from './carousel.property';\r\nimport { XDropAnimation, XConfigService } from '@ng-nest/ui/core';\r\nimport { XCarouselComponent } from './carousel.component';\r\nimport { DomSanitizer } from '@angular/platform-browser';\r\nimport { BehaviorSubject, Subject, takeUntil } from 'rxjs';\r\n\r\n@Component({\r\n selector: `${XCarouselPanelPrefix}`,\r\n templateUrl: './carousel-panel.component.html',\r\n styleUrls: ['./carousel-panel.component.scss'],\r\n animations: [XDropAnimation],\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class XCarouselPanelComponent extends XCarouselPanelProperty implements OnInit {\r\n index!: number;\r\n width!: number;\r\n height!: number;\r\n animating!: boolean;\r\n preTranslate!: number;\r\n cardScale = 0.83;\r\n scale = 1;\r\n inStage = false;\r\n updateSub = new BehaviorSubject(false);\r\n unSubject = new Subject<void>();\r\n\r\n constructor(\r\n @Optional() @Host() public carousel: XCarouselComponent,\r\n public renderer: Renderer2,\r\n public elementRef: ElementRef,\r\n public sanitizer: DomSanitizer,\r\n public cdr: ChangeDetectorRef,\r\n public configService: XConfigService\r\n ) {\r\n super();\r\n }\r\n\r\n ngOnInit() {\r\n this.carousel.start++;\r\n this.index = this.carousel.start;\r\n this.setClass('x-carousel-card', Boolean(this.carousel.card));\r\n this.carousel.panelChanges.push(this.updateSub);\r\n this.updateSub.pipe(takeUntil(this.unSubject)).subscribe((x) => {\r\n if (x) this.update();\r\n });\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this.carousel.start--;\r\n const idx = this.carousel.panelChanges.indexOf(this.updateSub);\r\n this.carousel.panelChanges.splice(idx, 1);\r\n this.unSubject.next();\r\n this.unSubject.complete();\r\n }\r\n\r\n setActive() {\r\n const isActive: boolean = this.carousel.active === this.index;\r\n if (this.active !== isActive) {\r\n this.active = isActive;\r\n this.setClass('x-activated', this.active);\r\n }\r\n }\r\n\r\n setStyles() {\r\n this.width = this.elementRef.nativeElement.offsetWidth;\r\n this.height = this.elementRef.nativeElement.offsetHeight;\r\n\r\n let translate: number;\r\n let offset: number = Number(this.carousel.active) - this.index;\r\n let distance = this.width;\r\n let translateType = 'translateX';\r\n if (this.carousel.card) {\r\n if (this.carousel.direction === 'vertical') {\r\n console.warn('[x-carousel] vertical direction is not supported in card mode');\r\n }\r\n this.inStage = Math.round(Math.abs(offset)) <= 1;\r\n this.setClass('x-carousel-in-stage', this.inStage);\r\n translate = this.calcCardTranslate(this.index, Number(this.carousel.active));\r\n this.scale = offset === 0 ? 1 : this.cardScale;\r\n } else {\r\n if (this.carousel.direction === 'vertical') {\r\n distance = this.height;\r\n translateType = 'translateY';\r\n }\r\n const map: any = {\r\n '-2': -distance,\r\n '-1': distance,\r\n '0': 0,\r\n '1': 0 - distance,\r\n '2': distance\r\n };\r\n offset = offset < -2 ? -2 : offset > 2 ? 2 : offset;\r\n translate = map[offset];\r\n }\r\n this.animating =\r\n this.carousel.active === this.index ||\r\n this.carousel.before === this.index ||\r\n this.carousel.start === Math.abs(offset) ||\r\n Boolean(this.carousel.card);\r\n this.setClass('x-carousel-animating', this.animating);\r\n this.renderer.setStyle(this.elementRef.nativeElement, 'transform', `${translateType}(${translate}px) scale(${this.scale})`);\r\n }\r\n\r\n calcCardTranslate(index: number, activeIndex: number) {\r\n const parentWidth = this.carousel.carousel.nativeElement.offsetWidth;\r\n let offset: number = index - activeIndex;\r\n let activeFirstOrLast = this.carousel.start > 1 && this.carousel.start === Math.abs(offset);\r\n if (this.inStage || activeFirstOrLast) {\r\n if (activeFirstOrLast) offset = offset < 0 ? 1 : -1;\r\n return (parentWidth * ((2 - this.cardScale) * offset + 1)) / 4;\r\n } else if (index < activeIndex) {\r\n return (-(1 + this.cardScale) * parentWidth) / 4;\r\n } else {\r\n return ((3 + this.cardScale) * parentWidth) / 4;\r\n }\r\n }\r\n\r\n update() {\r\n this.setActive();\r\n this.setStyles();\r\n this.cdr.detectChanges();\r\n }\r\n\r\n panelClick() {\r\n if (this.carousel.card && this.carousel.active !== this.index) {\r\n this.carousel.autoplay && this.carousel.resetInterval();\r\n this.carousel.setActiveItem(this.index);\r\n }\r\n }\r\n\r\n setClass(cls: string, value: boolean) {\r\n if (value) this.renderer.addClass(this.elementRef.nativeElement, cls);\r\n else this.renderer.removeClass(this.elementRef.nativeElement, cls);\r\n }\r\n}\r\n","<div #carouselPanel class=\"x-carousel-panel\" (click)=\"panelClick()\">\r\n <div *ngIf=\"carousel?.card\" [hidden]=\"active\" class=\"x-carousel-mask\"></div>\r\n <ng-content></ng-content>\r\n</div>\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { XCarouselComponent } from './carousel.component';\r\nimport { XCarouselPanelComponent } from './carousel-panel.component';\r\nimport { XButtonModule } from '@ng-nest/ui/button';\r\nimport { XCarouselProperty, XCarouselPanelProperty } from './carousel.property';\r\n\r\n@NgModule({\r\n declarations: [XCarouselComponent, XCarouselPanelComponent, XCarouselProperty, XCarouselPanelProperty],\r\n exports: [XCarouselComponent, XCarouselPanelComponent],\r\n imports: [CommonModule, XButtonModule]\r\n})\r\nexport class XCarouselModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["takeUntil","i1.XCarouselComponent","i2","i3","i4"],"mappings":";;;;;;;;;;;;;AAaA;;;;AAIG;AACI,MAAM,eAAe,GAAG,aAAa;AAC5C,MAAM,aAAa,GAAG,UAAU,CAAC;AAEjC;;AAEG;AAEG,MAAO,iBAAkB,SAAQ,SAAS,CAAA;AADhD,IAAA,WAAA,GAAA;;AAEE;;;AAGG;AACsB,QAAA,IAAM,CAAA,MAAA,GAAY,CAAC,CAAC;AAqB7C;;;AAGG;AACuB,QAAA,IAAQ,CAAA,QAAA,GAAa,IAAI,CAAC;AACpD;;;AAGG;AACM,QAAA,IAAQ,CAAA,QAAA,GAAY,IAAI,CAAC;AAWlC;;;AAGG;AACO,QAAA,IAAA,CAAA,YAAY,GAAG,IAAI,YAAY,EAAU,CAAC;KACrD;;kIAnDY,iBAAiB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAA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kBAAkB,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,sBAAsB,CAAA,EAAA,OAAA,EAAA,CAE3F,YAAY,EAAE,aAAa,CAD3B,EAAA,OAAA,EAAA,CAAA,kBAAkB,EAAE,uBAAuB,CAAA,EAAA,CAAA,CAAA;iIAG1C,eAAe,EAAA,OAAA,EAAA,CAFhB,YAAY,EAAE,aAAa,CAAA,EAAA,CAAA,CAAA;4FAE1B,eAAe,EAAA,UAAA,EAAA,CAAA;kBAL3B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,kBAAkB,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,sBAAsB,CAAC;AACtG,oBAAA,OAAO,EAAE,CAAC,kBAAkB,EAAE,uBAAuB,CAAC;AACtD,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,aAAa,CAAC;iBACvC,CAAA;;;ACXD;;AAEG;;;;"}
1
+ {"version":3,"file":"ng-nest-ui-carousel.mjs","sources":["../../../../lib/ng-nest/ui/carousel/carousel.property.ts","../../../../lib/ng-nest/ui/carousel/carousel.component.ts","../../../../lib/ng-nest/ui/carousel/carousel.component.html","../../../../lib/ng-nest/ui/carousel/carousel-panel.component.ts","../../../../lib/ng-nest/ui/carousel/carousel-panel.component.html","../../../../lib/ng-nest/ui/carousel/carousel.module.ts","../../../../lib/ng-nest/ui/carousel/ng-nest-ui-carousel.ts"],"sourcesContent":["import {\r\n XProperty,\r\n XInputNumber,\r\n XInputBoolean,\r\n XNumber,\r\n XBoolean,\r\n XWithConfig,\r\n XShadow,\r\n XDisplayDirection,\r\n XTrigger\r\n} from '@ng-nest/ui/core';\r\nimport { Input, Output, EventEmitter, Component } from '@angular/core';\r\n\r\n/**\r\n * Carousel\r\n * @selector x-carousel\r\n * @decorator component\r\n */\r\nexport const XCarouselPrefix = 'x-carousel';\r\nconst X_CONFIG_NAME = 'carousel';\r\n\r\n/**\r\n * Carousel Property\r\n */\r\n@Component({ template: '' })\r\nexport class XCarouselProperty extends XProperty {\r\n /**\r\n * @zh_CN 当前激活的幻灯片索引\r\n * @en_US Index of the currently active slide\r\n */\r\n @Input() @XInputNumber() active: XNumber = 0;\r\n /**\r\n * @zh_CN 幻灯片高度\r\n * @en_US Slide height\r\n */\r\n @Input() @XWithConfig<string>(X_CONFIG_NAME, '15rem') height?: string;\r\n /**\r\n * @zh_CN 切换器触发方式\r\n * @en_US Switcher trigger method\r\n */\r\n @Input() @XWithConfig<XCarouselTrigger>(X_CONFIG_NAME, 'hover') trigger?: XCarouselTrigger;\r\n /**\r\n * @zh_CN 箭头显示影藏方式\r\n * @en_US Arrow shows how to hide\r\n */\r\n @Input() @XWithConfig<XCarouselArrow>(X_CONFIG_NAME, 'hover') arrow?: XCarouselArrow;\r\n /**\r\n * @zh_CN 幻灯片轮播方向\r\n * @en_US Slide rotation direction\r\n */\r\n @Input() @XWithConfig<XCarouselDirection>(X_CONFIG_NAME, 'horizontal') direction?: XCarouselDirection;\r\n /**\r\n * @zh_CN 自动切换\r\n * @en_US Automatic switching\r\n */\r\n @Input() @XInputBoolean() autoplay: XBoolean = true;\r\n /**\r\n * @zh_CN 自动切换时间间隔\r\n * @en_US Automatic switching time interval\r\n */\r\n @Input() interval: XNumber = 3000;\r\n /**\r\n * @zh_CN 切换器否显示在外面\r\n * @en_US Whether the switcher is displayed outside\r\n */\r\n @Input() @XInputBoolean() outside?: XBoolean;\r\n /**\r\n * @zh_CN 是否以卡片的方式显示幻灯片\r\n * @en_US Whether to display the slideshow as a card\r\n */\r\n @Input() @XInputBoolean() card?: XBoolean;\r\n /**\r\n * @zh_CN 激活的序号改变的事件\r\n * @en_US The activated sequence number changed event\r\n */\r\n @Output() activeChange = new EventEmitter<number>();\r\n}\r\n\r\n/**\r\n * @zh_CN 指示器切换方式\r\n * @en_US Indicator switching method\r\n */\r\nexport type XCarouselTrigger = XTrigger;\r\n\r\n/**\r\n * @zh_CN 切换箭头显示方式\r\n * @en_US Toggle arrow display\r\n */\r\nexport type XCarouselArrow = XShadow;\r\n\r\n/**\r\n * @zh_CN 走马灯展示的方向\r\n * @en_US The direction of the revolving lantern\r\n */\r\nexport type XCarouselDirection = XDisplayDirection;\r\n\r\n/**\r\n * Carousel Panel\r\n * @selector x-carousel-panel\r\n * @decorator component\r\n */\r\nexport const XCarouselPanelPrefix = 'x-carousel-panel';\r\n\r\n/**\r\n * Carousel Panel Property\r\n */\r\n@Component({ template: '' })\r\nexport class XCarouselPanelProperty extends XProperty {\r\n /**\r\n * @zh_CN 激活当前幻灯片\r\n * @en_US Activate the current slide\r\n */\r\n @Input() @XInputBoolean() active?: XBoolean;\r\n}\r\n","import {\r\n Component,\r\n OnInit,\r\n ViewEncapsulation,\r\n Renderer2,\r\n ElementRef,\r\n ChangeDetectorRef,\r\n ChangeDetectionStrategy,\r\n SimpleChanges,\r\n OnChanges,\r\n ViewChild\r\n} from '@angular/core';\r\nimport { XCarouselPrefix, XCarouselProperty } from './carousel.property';\r\nimport { XIsUndefined, XIsChange, XIsEmpty, XNumber, XResize, XConfigService } from '@ng-nest/ui/core';\r\nimport { BehaviorSubject, Subject } from 'rxjs';\r\nimport { takeUntil, debounceTime } from 'rxjs/operators';\r\n\r\n@Component({\r\n selector: `${XCarouselPrefix}`,\r\n templateUrl: './carousel.component.html',\r\n styleUrls: ['./carousel.component.scss'],\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class XCarouselComponent extends XCarouselProperty implements OnInit, OnChanges {\r\n @ViewChild('carousel') carousel!: ElementRef;\r\n @ViewChild('content') content!: ElementRef;\r\n start: number = -1;\r\n before!: number;\r\n timer: any;\r\n panelChanges: BehaviorSubject<any>[] = [];\r\n private _unSubject = new Subject<void>();\r\n private _resizeObserver!: ResizeObserver;\r\n\r\n constructor(\r\n public renderer: Renderer2,\r\n public elementRef: ElementRef,\r\n public cdr: ChangeDetectorRef,\r\n public configService: XConfigService\r\n ) {\r\n super();\r\n }\r\n\r\n ngOnInit() {\r\n this.setClassMap();\r\n }\r\n\r\n ngAfterViewInit() {\r\n this.autoplay && this.resetInterval();\r\n XResize(this.content.nativeElement)\r\n .pipe(debounceTime(30), takeUntil(this._unSubject))\r\n .subscribe((x) => {\r\n this.panelChanges.forEach((sub) => sub.next(true));\r\n this._resizeObserver = x.resizeObserver;\r\n this.cdr.detectChanges();\r\n });\r\n }\r\n\r\n ngOnChanges(simples: SimpleChanges): void {\r\n const { active } = simples;\r\n XIsChange(active) && this.setActiveItem(Number(this.active));\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this.timer && clearInterval(this.timer);\r\n this.panelChanges.forEach((x) => x.complete());\r\n this._unSubject.complete();\r\n this._unSubject.unsubscribe();\r\n this._resizeObserver?.disconnect();\r\n }\r\n\r\n action(index: XNumber, increase: number, event?: string): void {\r\n if (!XIsUndefined(event) && this.trigger !== event) return;\r\n this.autoplay && this.resetInterval();\r\n this.setActiveItem(Number(index) + increase);\r\n }\r\n\r\n resetInterval(): void {\r\n this.timer && clearInterval(this.timer);\r\n this.timer = setInterval(() => {\r\n this.setActiveItem(Number(this.active) + 1);\r\n }, Number(this.interval));\r\n }\r\n\r\n setActiveItem(index: number): void {\r\n if (this.start === -1) return;\r\n this.before = Number(this.active);\r\n const nextValue = index > this.start ? 0 : index < 0 ? this.start : index;\r\n this.active = nextValue;\r\n this.panelChanges.forEach((sub) => sub.next(true));\r\n this.activeChange.emit(this.active);\r\n this.cdr.detectChanges();\r\n }\r\n\r\n setClassMap() {\r\n this.classMap[`${XCarouselPrefix}-${this.direction}`] = !XIsEmpty(this.direction);\r\n }\r\n\r\n getActivated(index: number) {\r\n return Number(this.active) === index;\r\n }\r\n\r\n trackByPanel(index: number, _item: any) {\r\n return index;\r\n }\r\n}\r\n","<div #carousel class=\"x-carousel\" [ngClass]=\"classMap\" [class.x-carousel-arrow-always]=\"arrow === 'always'\">\r\n <div #content class=\"x-carousel-content\" [style.height]=\"height\">\r\n <ng-container *ngIf=\"arrow !== 'never' && direction !== 'vertical'\">\r\n <x-button class=\"arrow-left\" icon=\"fto-chevron-left\" (click)=\"action(active, -1)\"></x-button>\r\n <x-button class=\"arrow-right\" icon=\"fto-chevron-right\" (click)=\"action(active, 1)\"></x-button>\r\n </ng-container>\r\n <ng-content></ng-content>\r\n </div>\r\n <ul class=\"x-carousel-indicator\" [class.x-carousel-indicator-outside]=\"outside || card\">\r\n <li\r\n *ngFor=\"let panel of panelChanges; let i = index; trackBy: trackByPanel\"\r\n [class.x-activated]=\"getActivated(i)\"\r\n (click)=\"action(i, 0, 'click')\"\r\n (mouseenter)=\"action(i, 0, 'hover')\"\r\n >\r\n <x-button type=\"text\"></x-button>\r\n </li>\r\n </ul>\r\n</div>\r\n","import {\r\n Component,\r\n OnInit,\r\n ViewEncapsulation,\r\n Renderer2,\r\n ElementRef,\r\n ChangeDetectorRef,\r\n ChangeDetectionStrategy,\r\n Host,\r\n Optional\r\n} from '@angular/core';\r\nimport { XCarouselPanelPrefix, XCarouselPanelProperty } from './carousel.property';\r\nimport { XDropAnimation, XConfigService } from '@ng-nest/ui/core';\r\nimport { XCarouselComponent } from './carousel.component';\r\nimport { DomSanitizer } from '@angular/platform-browser';\r\nimport { BehaviorSubject, Subject, takeUntil } from 'rxjs';\r\n\r\n@Component({\r\n selector: `${XCarouselPanelPrefix}`,\r\n templateUrl: './carousel-panel.component.html',\r\n styleUrls: ['./carousel-panel.component.scss'],\r\n animations: [XDropAnimation],\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class XCarouselPanelComponent extends XCarouselPanelProperty implements OnInit {\r\n index!: number;\r\n width!: number;\r\n height!: number;\r\n animating!: boolean;\r\n preTranslate!: number;\r\n cardScale = 0.83;\r\n scale = 1;\r\n inStage = false;\r\n updateSub = new BehaviorSubject(false);\r\n unSubject = new Subject<void>();\r\n\r\n constructor(\r\n @Optional() @Host() public carousel: XCarouselComponent,\r\n public renderer: Renderer2,\r\n public elementRef: ElementRef,\r\n public sanitizer: DomSanitizer,\r\n public cdr: ChangeDetectorRef,\r\n public configService: XConfigService\r\n ) {\r\n super();\r\n }\r\n\r\n ngOnInit() {\r\n this.carousel.start++;\r\n this.index = this.carousel.start;\r\n this.setClass('x-carousel-card', Boolean(this.carousel.card));\r\n this.carousel.panelChanges.push(this.updateSub);\r\n this.updateSub.pipe(takeUntil(this.unSubject)).subscribe((x) => {\r\n if (x) this.update();\r\n });\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this.carousel.start--;\r\n const idx = this.carousel.panelChanges.indexOf(this.updateSub);\r\n this.carousel.panelChanges.splice(idx, 1);\r\n this.unSubject.next();\r\n this.unSubject.complete();\r\n }\r\n\r\n setActive() {\r\n const isActive: boolean = this.carousel.active === this.index;\r\n if (this.active !== isActive) {\r\n this.active = isActive;\r\n this.setClass('x-activated', this.active);\r\n }\r\n }\r\n\r\n setStyles() {\r\n this.width = this.elementRef.nativeElement.offsetWidth;\r\n this.height = this.elementRef.nativeElement.offsetHeight;\r\n\r\n let translate: number;\r\n let offset: number = Number(this.carousel.active) - this.index;\r\n let distance = this.width;\r\n let translateType = 'translateX';\r\n if (this.carousel.card) {\r\n if (this.carousel.direction === 'vertical') {\r\n console.warn('[x-carousel] vertical direction is not supported in card mode');\r\n }\r\n this.inStage = Math.round(Math.abs(offset)) <= 1;\r\n this.setClass('x-carousel-in-stage', this.inStage);\r\n translate = this.calcCardTranslate(this.index, Number(this.carousel.active));\r\n this.scale = offset === 0 ? 1 : this.cardScale;\r\n } else {\r\n if (this.carousel.direction === 'vertical') {\r\n distance = this.height;\r\n translateType = 'translateY';\r\n }\r\n const map: any = {\r\n '-2': -distance,\r\n '-1': distance,\r\n '0': 0,\r\n '1': 0 - distance,\r\n '2': distance\r\n };\r\n offset = offset < -2 ? -2 : offset > 2 ? 2 : offset;\r\n translate = map[offset];\r\n }\r\n this.animating =\r\n this.carousel.active === this.index ||\r\n this.carousel.before === this.index ||\r\n this.carousel.start === Math.abs(offset) ||\r\n Boolean(this.carousel.card);\r\n this.setClass('x-carousel-animating', this.animating);\r\n this.renderer.setStyle(this.elementRef.nativeElement, 'transform', `${translateType}(${translate}px) scale(${this.scale})`);\r\n }\r\n\r\n calcCardTranslate(index: number, activeIndex: number) {\r\n const parentWidth = this.carousel.carousel.nativeElement.offsetWidth;\r\n let offset: number = index - activeIndex;\r\n let activeFirstOrLast = this.carousel.start > 1 && this.carousel.start === Math.abs(offset);\r\n if (this.inStage || activeFirstOrLast) {\r\n if (activeFirstOrLast) offset = offset < 0 ? 1 : -1;\r\n return (parentWidth * ((2 - this.cardScale) * offset + 1)) / 4;\r\n } else if (index < activeIndex) {\r\n return (-(1 + this.cardScale) * parentWidth) / 4;\r\n } else {\r\n return ((3 + this.cardScale) * parentWidth) / 4;\r\n }\r\n }\r\n\r\n update() {\r\n this.setActive();\r\n this.setStyles();\r\n this.cdr.detectChanges();\r\n }\r\n\r\n panelClick() {\r\n if (this.carousel.card && this.carousel.active !== this.index) {\r\n this.carousel.autoplay && this.carousel.resetInterval();\r\n this.carousel.setActiveItem(this.index);\r\n }\r\n }\r\n\r\n setClass(cls: string, value: boolean) {\r\n if (value) this.renderer.addClass(this.elementRef.nativeElement, cls);\r\n else this.renderer.removeClass(this.elementRef.nativeElement, cls);\r\n }\r\n}\r\n","<div #carouselPanel class=\"x-carousel-panel\" (click)=\"panelClick()\">\r\n <div *ngIf=\"carousel?.card\" [hidden]=\"active\" class=\"x-carousel-mask\"></div>\r\n <ng-content></ng-content>\r\n</div>\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { XCarouselComponent } from './carousel.component';\r\nimport { XCarouselPanelComponent } from './carousel-panel.component';\r\nimport { XButtonModule } from '@ng-nest/ui/button';\r\nimport { XCarouselProperty, XCarouselPanelProperty } from './carousel.property';\r\n\r\n@NgModule({\r\n declarations: [XCarouselComponent, XCarouselPanelComponent, XCarouselProperty, XCarouselPanelProperty],\r\n exports: [XCarouselComponent, XCarouselPanelComponent],\r\n imports: [CommonModule, XButtonModule]\r\n})\r\nexport class XCarouselModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["takeUntil","i1.XCarouselComponent","i2","i3","i4"],"mappings":";;;;;;;;;;;;;AAaA;;;;AAIG;AACI,MAAM,eAAe,GAAG,aAAa;AAC5C,MAAM,aAAa,GAAG,UAAU,CAAC;AAEjC;;AAEG;AAEG,MAAO,iBAAkB,SAAQ,SAAS,CAAA;AADhD,IAAA,WAAA,GAAA;;AAEE;;;AAGG;AACsB,QAAA,IAAM,CAAA,MAAA,GAAY,CAAC,CAAC;AAqB7C;;;AAGG;AACuB,QAAA,IAAQ,CAAA,QAAA,GAAa,IAAI,CAAC;AACpD;;;AAGG;AACM,QAAA,IAAQ,CAAA,QAAA,GAAY,IAAI,CAAC;AAWlC;;;AAGG;AACO,QAAA,IAAA,CAAA,YAAY,GAAG,IAAI,YAAY,EAAU,CAAC;KACrD;;iIAnDY,iBAAiB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAjB,mBAAA,iBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,iBAAiB,gTADP,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,CAAA;AAME,UAAA,CAAA;AAAf,IAAA,YAAY,EAAE;CAAqB,EAAA,iBAAA,CAAA,SAAA,EAAA,QAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAKS,UAAA,CAAA;AAA5C,IAAA,WAAW,CAAS,aAAa,EAAE,OAAO,CAAC;CAAiB,EAAA,iBAAA,CAAA,SAAA,EAAA,QAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAKN,UAAA,CAAA;AAAtD,IAAA,WAAW,CAAmB,aAAa,EA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BAAiB,EAAE,sBAAsB,CAAC;AACtG,oBAAA,OAAO,EAAE,CAAC,kBAAkB,EAAE,uBAAuB,CAAC;AACtD,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,aAAa,CAAC;iBACvC,CAAA;;;ACXD;;AAEG;;;;"}
@@ -117,9 +117,9 @@ class XCascadePortalComponent {
117
117
  });
118
118
  }
119
119
  }
120
- /** @nocollapse */ XCascadePortalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: XCascadePortalComponent, deps: [{ token: i0.NgZone }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
121
- /** @nocollapse */ XCascadePortalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: XCascadePortalComponent, selector: "x-cascade-portal", host: { listeners: { "@x-connect-base-animation.done": "done($event)", "@x-connect-base-animation.start": "start($event)" }, properties: { "@x-connect-base-animation": "this.placement" } }, ngImport: i0, template: "<div class=\"x-cascade-portal\" tabindex=\"-1\" (click)=\"inputCom.inputFocus(); stopPropagation($event)\">\r\n <ng-container *ngFor=\"let list of nodes\">\r\n <x-list\r\n [data]=\"list\"\r\n [nodeTpl]=\"nodeTpl\"\r\n [(ngModel)]=\"values\"\r\n (nodeClick)=\"nodeClick($event)\"\r\n (nodeMouseenter)=\"nodeTrigger === 'hover' && nodeMouseenter($event)\"\r\n (nodeMouseleave)=\"nodeTrigger === 'hover' && nodeMouseleave()\"\r\n checked\r\n ></x-list>\r\n </ng-container>\r\n</div>\r\n", styles: ["@charset \"UTF-8\";.x-cascade-portal{margin:.0625rem 0;font-size:var(--x-font-size);color:var(--x-text);border:var(--x-border-width) var(--x-border-style) var(--x-border);border-radius:var(--x-border-radius);box-shadow:var(--x-box-shadow) var(--x-box-shadow-light-color);background-color:var(--x-background);display:flex}.x-cascade-portal:focus{outline:none}.x-cascade-portal>x-list .x-list-option{min-width:8rem}.x-cascade-portal>x-list:not(:first-child){border-left:var(--x-border-width) solid var(--x-border)}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i3$1.XListComponent, selector: "x-list" }], animations: [XConnectBaseAnimation], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
122
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: XCascadePortalComponent, decorators: [{
120
+ /** @nocollapse */ XCascadePortalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: XCascadePortalComponent, deps: [{ token: i0.NgZone }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
121
+ /** @nocollapse */ XCascadePortalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.0", type: XCascadePortalComponent, selector: "x-cascade-portal", host: { listeners: { "@x-connect-base-animation.done": "done($event)", "@x-connect-base-animation.start": "start($event)" }, properties: { "@x-connect-base-animation": "this.placement" } }, ngImport: i0, template: "<div class=\"x-cascade-portal\" tabindex=\"-1\" (click)=\"inputCom.inputFocus(); stopPropagation($event)\">\r\n <ng-container *ngFor=\"let list of nodes\">\r\n <x-list\r\n [data]=\"list\"\r\n [nodeTpl]=\"nodeTpl\"\r\n [(ngModel)]=\"values\"\r\n (nodeClick)=\"nodeClick($event)\"\r\n (nodeMouseenter)=\"nodeTrigger === 'hover' && nodeMouseenter($event)\"\r\n (nodeMouseleave)=\"nodeTrigger === 'hover' && nodeMouseleave()\"\r\n checked\r\n ></x-list>\r\n </ng-container>\r\n</div>\r\n", styles: ["@charset \"UTF-8\";.x-cascade-portal{margin:.0625rem 0;font-size:var(--x-font-size);color:var(--x-text);border:var(--x-border-width) var(--x-border-style) var(--x-border);border-radius:var(--x-border-radius);box-shadow:var(--x-box-shadow) var(--x-box-shadow-light-color);background-color:var(--x-background);display:flex}.x-cascade-portal:focus{outline:none}.x-cascade-portal>x-list .x-list-option{min-width:8rem}.x-cascade-portal>x-list:not(:first-child){border-left:var(--x-border-width) solid var(--x-border)}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i3$1.XListComponent, selector: "x-list" }], animations: [XConnectBaseAnimation], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
122
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: XCascadePortalComponent, decorators: [{
123
123
  type: Component,
124
124
  args: [{ selector: 'x-cascade-portal', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, animations: [XConnectBaseAnimation], template: "<div class=\"x-cascade-portal\" tabindex=\"-1\" (click)=\"inputCom.inputFocus(); stopPropagation($event)\">\r\n <ng-container *ngFor=\"let list of nodes\">\r\n <x-list\r\n [data]=\"list\"\r\n [nodeTpl]=\"nodeTpl\"\r\n [(ngModel)]=\"values\"\r\n (nodeClick)=\"nodeClick($event)\"\r\n (nodeMouseenter)=\"nodeTrigger === 'hover' && nodeMouseenter($event)\"\r\n (nodeMouseleave)=\"nodeTrigger === 'hover' && nodeMouseleave()\"\r\n checked\r\n ></x-list>\r\n </ng-container>\r\n</div>\r\n", styles: ["@charset \"UTF-8\";.x-cascade-portal{margin:.0625rem 0;font-size:var(--x-font-size);color:var(--x-text);border:var(--x-border-width) var(--x-border-style) var(--x-border);border-radius:var(--x-border-radius);box-shadow:var(--x-box-shadow) var(--x-box-shadow-light-color);background-color:var(--x-background);display:flex}.x-cascade-portal:focus{outline:none}.x-cascade-portal>x-list .x-list-option{min-width:8rem}.x-cascade-portal>x-list:not(:first-child){border-left:var(--x-border-width) solid var(--x-border)}\n"] }]
125
125
  }], ctorParameters: function () { return [{ type: i0.NgZone }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { placement: [{
@@ -158,8 +158,8 @@ class XCascadeProperty extends XControlValueAccessor {
158
158
  this.nodeEmit = new EventEmitter();
159
159
  }
160
160
  }
161
- /** @nocollapse */ XCascadeProperty.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: XCascadeProperty, deps: null, target: i0.ɵɵFactoryTarget.Component });
162
- /** @nocollapse */ XCascadeProperty.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: XCascadeProperty, selector: "ng-component", inputs: { data: "data", placement: "placement", size: "size", bordered: "bordered", nodeTrigger: "nodeTrigger", nodeHoverDelay: "nodeHoverDelay", nodeTpl: "nodeTpl" }, outputs: { nodeEmit: "nodeEmit" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
161
+ /** @nocollapse */ XCascadeProperty.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: XCascadeProperty, deps: null, target: i0.ɵɵFactoryTarget.Component });
162
+ /** @nocollapse */ XCascadeProperty.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.0", type: XCascadeProperty, selector: "ng-component", inputs: { data: "data", placement: "placement", size: "size", bordered: "bordered", nodeTrigger: "nodeTrigger", nodeHoverDelay: "nodeHoverDelay", nodeTpl: "nodeTpl" }, outputs: { nodeEmit: "nodeEmit" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
163
163
  __decorate([
164
164
  XDataConvert()
165
165
  ], XCascadeProperty.prototype, "data", void 0);
@@ -179,7 +179,7 @@ __decorate([
179
179
  __decorate([
180
180
  XWithConfig(X_CONFIG_NAME, 200)
181
181
  ], XCascadeProperty.prototype, "nodeHoverDelay", void 0);
182
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: XCascadeProperty, decorators: [{
182
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: XCascadeProperty, decorators: [{
183
183
  type: Component,
184
184
  args: [{ template: '' }]
185
185
  }], propDecorators: { data: [{
@@ -420,9 +420,9 @@ class XCascadeComponent extends XCascadeProperty {
420
420
  this.cdr.detectChanges();
421
421
  }
422
422
  }
423
- /** @nocollapse */ XCascadeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: XCascadeComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: i1$1.XPortalService }, { token: i0.ViewContainerRef }, { token: i2.Overlay }], target: i0.ɵɵFactoryTarget.Component });
424
- /** @nocollapse */ XCascadeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: XCascadeComponent, selector: "x-cascade", providers: [XValueAccessor(XCascadeComponent)], viewQueries: [{ propertyName: "cascade", first: true, predicate: ["cascade"], descendants: true, static: true }, { propertyName: "inputCom", first: true, predicate: ["inputCom"], descendants: true, static: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div #cascade class=\"x-cascade\">\r\n <div class=\"x-cascade-row\">\r\n <x-input\r\n #inputCom\r\n type=\"text\"\r\n [label]=\"label\"\r\n [labelWidth]=\"labelWidth\"\r\n [labelAlign]=\"labelAlign\"\r\n [justify]=\"justify\"\r\n [align]=\"align\"\r\n [direction]=\"direction\"\r\n [disabled]=\"disabled\"\r\n [validator]=\"validator\"\r\n [required]=\"required\"\r\n [icon]=\"icon\"\r\n [placeholder]=\"placeholder\"\r\n [readonly]=\"readonly\"\r\n [clearable]=\"clearable\"\r\n [(ngModel)]=\"displayValue\"\r\n [valueTpl]=\"valueTpl\"\r\n [valueTplContext]=\"valueTplContext\"\r\n [size]=\"size\"\r\n [bordered]=\"bordered\"\r\n [before]=\"before\"\r\n [after]=\"after\"\r\n [pattern]=\"pattern\"\r\n [message]=\"message\"\r\n [pointer]=\"true\"\r\n [(active)]=\"active\"\r\n (clearEmit)=\"clearEmit()\"\r\n (click)=\"showPortal()\"\r\n (xMouseenter)=\"menter()\"\r\n (xMouseleave)=\"mleave()\"\r\n ></x-input>\r\n </div>\r\n</div>\r\n", styles: ["@charset \"UTF-8\";x-cascade{display:inline-block;width:12rem}.x-cascade{margin:0;padding:0;width:100%}.x-cascade x-input{width:100%}\n"], dependencies: [{ kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i3.PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: ["pattern"] }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i4.XInputComponent, selector: "x-input" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
425
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: XCascadeComponent, decorators: [{
423
+ /** @nocollapse */ XCascadeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: XCascadeComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: i1$1.XPortalService }, { token: i0.ViewContainerRef }, { token: i2.Overlay }], target: i0.ɵɵFactoryTarget.Component });
424
+ /** @nocollapse */ XCascadeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.0", type: XCascadeComponent, selector: "x-cascade", providers: [XValueAccessor(XCascadeComponent)], viewQueries: [{ propertyName: "cascade", first: true, predicate: ["cascade"], descendants: true, static: true }, { propertyName: "inputCom", first: true, predicate: ["inputCom"], descendants: true, static: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div #cascade class=\"x-cascade\">\r\n <div class=\"x-cascade-row\">\r\n <x-input\r\n #inputCom\r\n type=\"text\"\r\n [label]=\"label\"\r\n [labelWidth]=\"labelWidth\"\r\n [labelAlign]=\"labelAlign\"\r\n [justify]=\"justify\"\r\n [align]=\"align\"\r\n [direction]=\"direction\"\r\n [disabled]=\"disabled\"\r\n [validator]=\"validator\"\r\n [required]=\"required\"\r\n [icon]=\"icon\"\r\n [placeholder]=\"placeholder\"\r\n [readonly]=\"readonly\"\r\n [clearable]=\"clearable\"\r\n [(ngModel)]=\"displayValue\"\r\n [valueTpl]=\"valueTpl\"\r\n [valueTplContext]=\"valueTplContext\"\r\n [size]=\"size\"\r\n [bordered]=\"bordered\"\r\n [before]=\"before\"\r\n [after]=\"after\"\r\n [pattern]=\"pattern\"\r\n [message]=\"message\"\r\n [pointer]=\"true\"\r\n [(active)]=\"active\"\r\n (clearEmit)=\"clearEmit()\"\r\n (click)=\"showPortal()\"\r\n (xMouseenter)=\"menter()\"\r\n (xMouseleave)=\"mleave()\"\r\n ></x-input>\r\n </div>\r\n</div>\r\n", styles: ["@charset \"UTF-8\";x-cascade{display:inline-block;width:12rem}.x-cascade{margin:0;padding:0;width:100%}.x-cascade x-input{width:100%}\n"], dependencies: [{ kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i3.PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: ["pattern"] }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i4.XInputComponent, selector: "x-input" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
425
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: XCascadeComponent, decorators: [{
426
426
  type: Component,
427
427
  args: [{ selector: 'x-cascade', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [XValueAccessor(XCascadeComponent)], template: "<div #cascade class=\"x-cascade\">\r\n <div class=\"x-cascade-row\">\r\n <x-input\r\n #inputCom\r\n type=\"text\"\r\n [label]=\"label\"\r\n [labelWidth]=\"labelWidth\"\r\n [labelAlign]=\"labelAlign\"\r\n [justify]=\"justify\"\r\n [align]=\"align\"\r\n [direction]=\"direction\"\r\n [disabled]=\"disabled\"\r\n [validator]=\"validator\"\r\n [required]=\"required\"\r\n [icon]=\"icon\"\r\n [placeholder]=\"placeholder\"\r\n [readonly]=\"readonly\"\r\n [clearable]=\"clearable\"\r\n [(ngModel)]=\"displayValue\"\r\n [valueTpl]=\"valueTpl\"\r\n [valueTplContext]=\"valueTplContext\"\r\n [size]=\"size\"\r\n [bordered]=\"bordered\"\r\n [before]=\"before\"\r\n [after]=\"after\"\r\n [pattern]=\"pattern\"\r\n [message]=\"message\"\r\n [pointer]=\"true\"\r\n [(active)]=\"active\"\r\n (clearEmit)=\"clearEmit()\"\r\n (click)=\"showPortal()\"\r\n (xMouseenter)=\"menter()\"\r\n (xMouseleave)=\"mleave()\"\r\n ></x-input>\r\n </div>\r\n</div>\r\n", styles: ["@charset \"UTF-8\";x-cascade{display:inline-block;width:12rem}.x-cascade{margin:0;padding:0;width:100%}.x-cascade x-input{width:100%}\n"] }]
428
428
  }], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }, { type: i1$1.XPortalService }, { type: i0.ViewContainerRef }, { type: i2.Overlay }]; }, propDecorators: { cascade: [{
@@ -435,10 +435,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
435
435
 
436
436
  class XCascadeModule {
437
437
  }
438
- /** @nocollapse */ XCascadeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: XCascadeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
439
- /** @nocollapse */ XCascadeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: XCascadeModule, declarations: [XCascadeComponent, XCascadePortalComponent, XCascadeProperty], imports: [CommonModule, FormsModule, XPortalModule, ReactiveFormsModule, XInputModule, XListModule, XBaseFormModule], exports: [XCascadeComponent, XCascadePortalComponent] });
440
- /** @nocollapse */ XCascadeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: XCascadeModule, imports: [CommonModule, FormsModule, XPortalModule, ReactiveFormsModule, XInputModule, XListModule, XBaseFormModule] });
441
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: XCascadeModule, decorators: [{
438
+ /** @nocollapse */ XCascadeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: XCascadeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
439
+ /** @nocollapse */ XCascadeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.0", ngImport: i0, type: XCascadeModule, declarations: [XCascadeComponent, XCascadePortalComponent, XCascadeProperty], imports: [CommonModule, FormsModule, XPortalModule, ReactiveFormsModule, XInputModule, XListModule, XBaseFormModule], exports: [XCascadeComponent, XCascadePortalComponent] });
440
+ /** @nocollapse */ XCascadeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: XCascadeModule, imports: [CommonModule, FormsModule, XPortalModule, ReactiveFormsModule, XInputModule, XListModule, XBaseFormModule] });
441
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: XCascadeModule, decorators: [{
442
442
  type: NgModule,
443
443
  args: [{
444
444
  declarations: [XCascadeComponent, XCascadePortalComponent, XCascadeProperty],
@@ -453,3 +453,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
453
453
 
454
454
  export { XCascadeComponent, XCascadeModule, XCascadePortalComponent, XCascadePortalPrefix, XCascadePrefix, XCascadeProperty };
455
455
  //# sourceMappingURL=ng-nest-ui-cascade.mjs.map
456
+ //# sourceMappingURL=ng-nest-ui-cascade.mjs.map