cmat 0.0.7 → 0.0.8

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 (310) hide show
  1. package/components/adapter/dayjs-datetime-adapter.d.ts +1 -1
  2. package/components/breadcrumb/breadcrumb.service.d.ts +1 -1
  3. package/components/card/card.component.d.ts +1 -1
  4. package/components/cascade/cascade-list/cascade-list.component.d.ts +45 -21
  5. package/components/chip-input/chip-input.component.d.ts +39 -12
  6. package/components/custom-formly/extension/addons.extension.d.ts +2 -0
  7. package/components/custom-formly/index.d.ts +5 -0
  8. package/components/custom-formly/public-api.d.ts +21 -0
  9. package/components/custom-formly/types/button/button.component.d.ts +18 -0
  10. package/components/custom-formly/types/checklist/checklist.component.d.ts +41 -0
  11. package/components/custom-formly/types/chips/chips.component.d.ts +27 -0
  12. package/components/custom-formly/types/multicheckbox/multicheckbox.component.d.ts +44 -0
  13. package/components/custom-formly/types/number/number.component.d.ts +20 -0
  14. package/components/custom-formly/types/radio/radio.component.d.ts +44 -0
  15. package/components/custom-formly/types/rating/rating.component.d.ts +24 -0
  16. package/components/custom-formly/types/repeat/repeat.component.d.ts +16 -0
  17. package/components/custom-formly/types/select/select.component.d.ts +54 -0
  18. package/components/custom-formly/types/select-tree/select-tree.component.d.ts +43 -0
  19. package/components/custom-formly/types/stepper/horizontal/stepper.component.d.ts +9 -0
  20. package/components/custom-formly/types/stepper/stepper.type.d.ts +6 -0
  21. package/components/custom-formly/types/stepper/vertical/stepper.component.d.ts +9 -0
  22. package/components/custom-formly/types/table/table.component.d.ts +43 -0
  23. package/components/custom-formly/types/tabs/tab.component.d.ts +8 -0
  24. package/components/custom-formly/types/tags/tags.component.d.ts +41 -0
  25. package/components/custom-formly/types/textarea/textarea.component.d.ts +13 -0
  26. package/components/custom-formly/wrappers/addons/addons.component.d.ts +10 -0
  27. package/components/custom-formly/wrappers/card/card.component.d.ts +6 -0
  28. package/components/custom-formly/wrappers/expansion/expansion.component.d.ts +6 -0
  29. package/components/custom-formly/wrappers/panel/panel.component.d.ts +6 -0
  30. package/components/date-range/date-range.component.d.ts +8 -6
  31. package/components/drawer/drawer.component.d.ts +2 -2
  32. package/components/fullscreen/fullscreen.component.d.ts +2 -9
  33. package/components/fullscreen/public-api.d.ts +0 -1
  34. package/components/material-color-picker/material-color-picker.component.d.ts +8 -4
  35. package/components/material-datetimepicker/calendar.d.ts +2 -2
  36. package/components/material-datetimepicker/clock.d.ts +1 -1
  37. package/components/material-datetimepicker/datetimepicker-input.d.ts +1 -1
  38. package/components/material-datetimepicker/datetimepicker-toggle.d.ts +1 -1
  39. package/components/material-datetimepicker/datetimepicker.d.ts +5 -10
  40. package/components/material-datetimepicker/month-view.d.ts +1 -2
  41. package/components/material-datetimepicker/multi-year-view.d.ts +1 -1
  42. package/components/material-datetimepicker/time.d.ts +2 -2
  43. package/components/material-datetimepicker/year-view.d.ts +1 -1
  44. package/components/navigation/horizontal/components/basic/basic.component.d.ts +1 -1
  45. package/components/navigation/horizontal/components/branch/branch.component.d.ts +1 -1
  46. package/components/navigation/horizontal/horizontal.component.d.ts +2 -2
  47. package/components/navigation/vertical/components/aside/aside.component.d.ts +1 -1
  48. package/components/navigation/vertical/components/basic/basic.component.d.ts +1 -7
  49. package/components/navigation/vertical/components/collapsable/collapsable.component.d.ts +1 -1
  50. package/components/navigation/vertical/components/group/group.component.d.ts +1 -1
  51. package/components/navigation/vertical/vertical.component.d.ts +5 -5
  52. package/components/popover/popover-trigger.d.ts +1 -1
  53. package/components/popover/popover.component.d.ts +3 -3
  54. package/components/rating/rating.component.d.ts +38 -9
  55. package/components/select-search/select-search.component.d.ts +4 -4
  56. package/components/select-tree/select-tree.component.d.ts +50 -21
  57. package/components/toast/toast.component.d.ts +4 -4
  58. package/components/transfer-picker/filter/filter.component.d.ts +1 -1
  59. package/components/transfer-picker/transfer-picker-source/transfer-picker-source.component.d.ts +2 -2
  60. package/components/transfer-picker/transfer-picker.component.d.ts +1 -1
  61. package/components/upload/files.type.d.ts +22 -0
  62. package/components/upload/files.util.service.d.ts +20 -0
  63. package/components/upload/index.d.ts +5 -0
  64. package/components/upload/public-api.d.ts +4 -0
  65. package/components/upload/upload-queue/upload-queue.component.d.ts +39 -0
  66. package/components/upload/upload.component.d.ts +32 -0
  67. package/esm2022/animations/public-api.mjs +2 -2
  68. package/esm2022/components/adapter/dayjs-date-adapter.mjs +6 -6
  69. package/esm2022/components/adapter/dayjs-datetime-adapter.mjs +5 -5
  70. package/esm2022/components/adapter/native-datetime-adapter.mjs +3 -3
  71. package/esm2022/components/breadcrumb/breadcrumb-item.directive.mjs +3 -3
  72. package/esm2022/components/breadcrumb/breadcrumb.component.mjs +6 -6
  73. package/esm2022/components/breadcrumb/breadcrumb.service.mjs +5 -5
  74. package/esm2022/components/card/card.component.mjs +5 -5
  75. package/esm2022/components/cascade/cascade-bottom-sheet/cascade-bottom-sheet.component.mjs +7 -7
  76. package/esm2022/components/cascade/cascade-list/cascade-list.component.mjs +207 -114
  77. package/esm2022/components/cascade/cascade-menu/cascade-menu.component.mjs +4 -4
  78. package/esm2022/components/chip-input/chip-input.component.mjs +152 -49
  79. package/esm2022/components/custom-formly/cmat-components-custom-formly.mjs +5 -0
  80. package/esm2022/components/custom-formly/extension/addons.extension.mjs +13 -0
  81. package/esm2022/components/custom-formly/public-api.mjs +22 -0
  82. package/esm2022/components/custom-formly/types/button/button.component.mjs +39 -0
  83. package/esm2022/components/custom-formly/types/checklist/checklist.component.mjs +161 -0
  84. package/esm2022/components/custom-formly/types/chips/chips.component.mjs +55 -0
  85. package/esm2022/components/custom-formly/types/multicheckbox/multicheckbox.component.mjs +89 -0
  86. package/esm2022/components/custom-formly/types/number/number.component.mjs +27 -0
  87. package/esm2022/components/custom-formly/types/radio/radio.component.mjs +88 -0
  88. package/esm2022/components/custom-formly/types/rating/rating.component.mjs +27 -0
  89. package/esm2022/components/custom-formly/types/repeat/repeat.component.mjs +28 -0
  90. package/esm2022/components/custom-formly/types/select/select.component.mjs +169 -0
  91. package/esm2022/components/custom-formly/types/select-tree/select-tree.component.mjs +66 -0
  92. package/esm2022/components/custom-formly/types/stepper/horizontal/stepper.component.mjs +31 -0
  93. package/esm2022/components/custom-formly/types/stepper/stepper.type.mjs +2 -0
  94. package/esm2022/components/custom-formly/types/stepper/vertical/stepper.component.mjs +31 -0
  95. package/esm2022/components/custom-formly/types/table/table.component.mjs +116 -0
  96. package/esm2022/components/custom-formly/types/tabs/tab.component.mjs +19 -0
  97. package/esm2022/components/custom-formly/types/tags/tags.component.mjs +149 -0
  98. package/esm2022/components/custom-formly/types/textarea/textarea.component.mjs +25 -0
  99. package/esm2022/components/custom-formly/wrappers/addons/addons.component.mjs +92 -0
  100. package/esm2022/components/custom-formly/wrappers/card/card.component.mjs +14 -0
  101. package/esm2022/components/custom-formly/wrappers/expansion/expansion.component.mjs +14 -0
  102. package/esm2022/components/custom-formly/wrappers/panel/panel.component.mjs +12 -0
  103. package/esm2022/components/date-range/date-range.component.mjs +26 -17
  104. package/esm2022/components/drawer/drawer.component.mjs +5 -5
  105. package/esm2022/components/drawer/drawer.service.mjs +3 -3
  106. package/esm2022/components/fullscreen/fullscreen.component.mjs +16 -73
  107. package/esm2022/components/fullscreen/public-api.mjs +1 -2
  108. package/esm2022/components/highlight/highlight.component.mjs +5 -5
  109. package/esm2022/components/highlight/highlight.service.mjs +3 -3
  110. package/esm2022/components/json-editor/json-editor.component.mjs +3 -3
  111. package/esm2022/components/masonry/masonry.component.mjs +5 -5
  112. package/esm2022/components/material-color-picker/material-color-picker.component.mjs +22 -12
  113. package/esm2022/components/material-datetimepicker/calendar-body.mjs +3 -3
  114. package/esm2022/components/material-datetimepicker/calendar.mjs +11 -12
  115. package/esm2022/components/material-datetimepicker/clock.mjs +5 -5
  116. package/esm2022/components/material-datetimepicker/datetimepicker-input.mjs +4 -5
  117. package/esm2022/components/material-datetimepicker/datetimepicker-intl.mjs +3 -3
  118. package/esm2022/components/material-datetimepicker/datetimepicker-toggle.mjs +9 -9
  119. package/esm2022/components/material-datetimepicker/datetimepicker.mjs +17 -22
  120. package/esm2022/components/material-datetimepicker/month-view.mjs +5 -6
  121. package/esm2022/components/material-datetimepicker/multi-year-view.mjs +7 -8
  122. package/esm2022/components/material-datetimepicker/time.mjs +8 -8
  123. package/esm2022/components/material-datetimepicker/year-view.mjs +7 -8
  124. package/esm2022/components/navigation/horizontal/components/basic/basic.component.mjs +8 -8
  125. package/esm2022/components/navigation/horizontal/components/branch/branch.component.mjs +8 -8
  126. package/esm2022/components/navigation/horizontal/components/divider/divider.component.mjs +5 -5
  127. package/esm2022/components/navigation/horizontal/components/spacer/spacer.component.mjs +6 -6
  128. package/esm2022/components/navigation/horizontal/horizontal.component.mjs +6 -6
  129. package/esm2022/components/navigation/navigation.service.mjs +3 -3
  130. package/esm2022/components/navigation/vertical/components/aside/aside.component.mjs +11 -11
  131. package/esm2022/components/navigation/vertical/components/basic/basic.component.mjs +7 -24
  132. package/esm2022/components/navigation/vertical/components/collapsable/collapsable.component.mjs +10 -10
  133. package/esm2022/components/navigation/vertical/components/divider/divider.component.mjs +5 -5
  134. package/esm2022/components/navigation/vertical/components/group/group.component.mjs +9 -9
  135. package/esm2022/components/navigation/vertical/components/spacer/spacer.component.mjs +6 -6
  136. package/esm2022/components/navigation/vertical/vertical.component.mjs +11 -11
  137. package/esm2022/components/pagination/pagination.component.mjs +10 -10
  138. package/esm2022/components/pagination/pagination.directive.mjs +4 -4
  139. package/esm2022/components/pagination/pagination.pipe.mjs +4 -4
  140. package/esm2022/components/pagination/pagination.service.mjs +3 -3
  141. package/esm2022/components/password-strength/mat-pass-toggle-visibility/mat-pass-toggle-visibility.component.mjs +6 -6
  142. package/esm2022/components/password-strength/mat-password-strength/mat-password-strength.component.mjs +5 -5
  143. package/esm2022/components/password-strength/mat-password-strength-info/mat-password-strength-info.component.mjs +6 -6
  144. package/esm2022/components/popover/popover-trigger.mjs +5 -5
  145. package/esm2022/components/popover/popover.component.mjs +8 -9
  146. package/esm2022/components/popover/popover.target.mjs +3 -3
  147. package/esm2022/components/progress-bar/progress-bar.component.mjs +6 -6
  148. package/esm2022/components/rating/rating.component.mjs +122 -23
  149. package/esm2022/components/select-search/select-no-entries-found.directive.mjs +3 -3
  150. package/esm2022/components/select-search/select-search-clear.directive.mjs +3 -3
  151. package/esm2022/components/select-search/select-search.component.mjs +15 -15
  152. package/esm2022/components/select-tree/select-tree.component.mjs +281 -157
  153. package/esm2022/components/timeline/timeline-item/timeline-item.component.mjs +9 -9
  154. package/esm2022/components/timeline/timeline.component.mjs +5 -5
  155. package/esm2022/components/toast/toast-modal.component.mjs +5 -5
  156. package/esm2022/components/toast/toast.component.mjs +6 -6
  157. package/esm2022/components/toast/toast.service.mjs +3 -3
  158. package/esm2022/components/transfer-picker/filter/filter.component.mjs +9 -9
  159. package/esm2022/components/transfer-picker/search/search.component.mjs +6 -6
  160. package/esm2022/components/transfer-picker/transfer-picker-source/transfer-picker-source.component.mjs +11 -11
  161. package/esm2022/components/transfer-picker/transfer-picker-target/transfer-picker-target.component.mjs +5 -5
  162. package/esm2022/components/transfer-picker/transfer-picker.component.mjs +7 -7
  163. package/esm2022/components/transfer-picker/transfer-picker.service.mjs +4 -4
  164. package/esm2022/components/upload/cmat-components-upload.mjs +5 -0
  165. package/esm2022/components/upload/files.type.mjs +2 -0
  166. package/esm2022/components/upload/files.util.service.mjs +100 -0
  167. package/esm2022/components/upload/public-api.mjs +5 -0
  168. package/esm2022/components/upload/upload-queue/upload-queue.component.mjs +154 -0
  169. package/esm2022/components/upload/upload.component.mjs +118 -0
  170. package/esm2022/directives/animate-on-scroll/animate-on-scroll.directive.mjs +3 -3
  171. package/esm2022/directives/animate-on-scroll/scroll.service.mjs +3 -3
  172. package/esm2022/directives/autofocus/autofocus.directive.mjs +3 -3
  173. package/esm2022/directives/debounce/abstract-debounce.directive.mjs +3 -3
  174. package/esm2022/directives/debounce/debounce-click.directive.mjs +3 -3
  175. package/esm2022/directives/debounce/debounce-keyup.directive.mjs +3 -3
  176. package/esm2022/directives/digit-only/digit-only.directive.mjs +3 -3
  177. package/esm2022/directives/digit-only/mask.directive.mjs +3 -3
  178. package/esm2022/directives/equal-validator/equal-validator.directive.mjs +3 -3
  179. package/esm2022/lib/mock-api/mock-api.interceptor.mjs +5 -5
  180. package/esm2022/lib/mock-api/mock-api.service.mjs +3 -3
  181. package/esm2022/pipes/bytes/bytes.pipe.mjs +3 -3
  182. package/esm2022/pipes/date-format/date-format.pipe.mjs +3 -3
  183. package/esm2022/pipes/find-by-key/find-by-key.pipe.mjs +3 -3
  184. package/esm2022/pipes/group-by/group-by.pipe.mjs +3 -3
  185. package/esm2022/pipes/keys/keys.pipe.mjs +3 -3
  186. package/esm2022/pipes/secure/secure-pipe.mjs +5 -5
  187. package/esm2022/pipes/uppercase/uppercase.pipe.mjs +3 -3
  188. package/esm2022/public-api.mjs +1 -1
  189. package/esm2022/services/alert/alert.service.mjs +7 -7
  190. package/esm2022/services/alert/enum.mjs +2 -2
  191. package/esm2022/services/config/config.service.mjs +5 -5
  192. package/esm2022/services/config/urlStateConfig.service.mjs +5 -5
  193. package/esm2022/services/confirmation/confirmation.service.mjs +5 -5
  194. package/esm2022/services/confirmation/dialog/dialog.component.mjs +7 -7
  195. package/esm2022/services/data/data.service.mjs +5 -5
  196. package/esm2022/services/loading/loading.interceptor.mjs +4 -4
  197. package/esm2022/services/loading/loading.service.mjs +3 -3
  198. package/esm2022/services/local-storage/local-storage.service.mjs +3 -3
  199. package/esm2022/services/media-watcher/media-watcher.service.mjs +5 -5
  200. package/esm2022/services/platform/platform.service.mjs +4 -4
  201. package/esm2022/services/splash-screen/splash-screen.service.mjs +6 -6
  202. package/esm2022/services/title/title.service.mjs +4 -4
  203. package/esm2022/services/translation/translation.service.mjs +3 -3
  204. package/esm2022/services/utils/utils.service.mjs +54 -9
  205. package/fesm2022/cmat-animations.mjs +15 -15
  206. package/fesm2022/cmat-animations.mjs.map +1 -1
  207. package/fesm2022/cmat-components-adapter.mjs +11 -11
  208. package/fesm2022/cmat-components-adapter.mjs.map +1 -1
  209. package/fesm2022/cmat-components-breadcrumb.mjs +11 -11
  210. package/fesm2022/cmat-components-breadcrumb.mjs.map +1 -1
  211. package/fesm2022/cmat-components-card.mjs +4 -4
  212. package/fesm2022/cmat-components-card.mjs.map +1 -1
  213. package/fesm2022/cmat-components-cascade.mjs +215 -123
  214. package/fesm2022/cmat-components-cascade.mjs.map +1 -1
  215. package/fesm2022/cmat-components-chip-input.mjs +153 -50
  216. package/fesm2022/cmat-components-chip-input.mjs.map +1 -1
  217. package/fesm2022/cmat-components-custom-formly.mjs +1141 -0
  218. package/fesm2022/cmat-components-custom-formly.mjs.map +1 -0
  219. package/fesm2022/cmat-components-date-range.mjs +27 -18
  220. package/fesm2022/cmat-components-date-range.mjs.map +1 -1
  221. package/fesm2022/cmat-components-drawer.mjs +8 -8
  222. package/fesm2022/cmat-components-drawer.mjs.map +1 -1
  223. package/fesm2022/cmat-components-fullscreen.mjs +16 -73
  224. package/fesm2022/cmat-components-fullscreen.mjs.map +1 -1
  225. package/fesm2022/cmat-components-highlight.mjs +7 -7
  226. package/fesm2022/cmat-components-highlight.mjs.map +1 -1
  227. package/fesm2022/cmat-components-json-editor.mjs +3 -3
  228. package/fesm2022/cmat-components-masonry.mjs +4 -4
  229. package/fesm2022/cmat-components-masonry.mjs.map +1 -1
  230. package/fesm2022/cmat-components-material-color-picker.mjs +21 -11
  231. package/fesm2022/cmat-components-material-color-picker.mjs.map +1 -1
  232. package/fesm2022/cmat-components-material-datetimepicker.mjs +189 -195
  233. package/fesm2022/cmat-components-material-datetimepicker.mjs.map +1 -1
  234. package/fesm2022/cmat-components-navigation.mjs +166 -183
  235. package/fesm2022/cmat-components-navigation.mjs.map +1 -1
  236. package/fesm2022/cmat-components-pagination.mjs +20 -20
  237. package/fesm2022/cmat-components-pagination.mjs.map +1 -1
  238. package/fesm2022/cmat-components-password-strength.mjs +13 -13
  239. package/fesm2022/cmat-components-password-strength.mjs.map +1 -1
  240. package/fesm2022/cmat-components-popover.mjs +13 -14
  241. package/fesm2022/cmat-components-popover.mjs.map +1 -1
  242. package/fesm2022/cmat-components-progress-bar.mjs +6 -6
  243. package/fesm2022/cmat-components-progress-bar.mjs.map +1 -1
  244. package/fesm2022/cmat-components-rating.mjs +121 -22
  245. package/fesm2022/cmat-components-rating.mjs.map +1 -1
  246. package/fesm2022/cmat-components-select-search.mjs +41 -41
  247. package/fesm2022/cmat-components-select-search.mjs.map +1 -1
  248. package/fesm2022/cmat-components-select-tree.mjs +281 -157
  249. package/fesm2022/cmat-components-select-tree.mjs.map +1 -1
  250. package/fesm2022/cmat-components-timeline.mjs +12 -12
  251. package/fesm2022/cmat-components-timeline.mjs.map +1 -1
  252. package/fesm2022/cmat-components-toast.mjs +12 -12
  253. package/fesm2022/cmat-components-toast.mjs.map +1 -1
  254. package/fesm2022/cmat-components-transfer-picker.mjs +33 -33
  255. package/fesm2022/cmat-components-transfer-picker.mjs.map +1 -1
  256. package/fesm2022/cmat-components-upload.mjs +366 -0
  257. package/fesm2022/cmat-components-upload.mjs.map +1 -0
  258. package/fesm2022/cmat-directives-animate-on-scroll.mjs +6 -6
  259. package/fesm2022/cmat-directives-autofocus.mjs +3 -3
  260. package/fesm2022/cmat-directives-debounce.mjs +9 -9
  261. package/fesm2022/cmat-directives-digit-only.mjs +6 -6
  262. package/fesm2022/cmat-directives-equal-validator.mjs +3 -3
  263. package/fesm2022/cmat-lib-mock-api.mjs +6 -6
  264. package/fesm2022/cmat-lib-mock-api.mjs.map +1 -1
  265. package/fesm2022/cmat-pipes-bytes.mjs +3 -3
  266. package/fesm2022/cmat-pipes-date-format.mjs +3 -3
  267. package/fesm2022/cmat-pipes-find-by-key.mjs +3 -3
  268. package/fesm2022/cmat-pipes-group-by.mjs +3 -3
  269. package/fesm2022/cmat-pipes-keys.mjs +3 -3
  270. package/fesm2022/cmat-pipes-secure.mjs +4 -4
  271. package/fesm2022/cmat-pipes-secure.mjs.map +1 -1
  272. package/fesm2022/cmat-pipes-uppercase.mjs +3 -3
  273. package/fesm2022/cmat-services-alert.mjs +6 -6
  274. package/fesm2022/cmat-services-alert.mjs.map +1 -1
  275. package/fesm2022/cmat-services-config.mjs +7 -7
  276. package/fesm2022/cmat-services-config.mjs.map +1 -1
  277. package/fesm2022/cmat-services-confirmation.mjs +11 -11
  278. package/fesm2022/cmat-services-confirmation.mjs.map +1 -1
  279. package/fesm2022/cmat-services-data.mjs +5 -5
  280. package/fesm2022/cmat-services-data.mjs.map +1 -1
  281. package/fesm2022/cmat-services-loading.mjs +6 -6
  282. package/fesm2022/cmat-services-loading.mjs.map +1 -1
  283. package/fesm2022/cmat-services-local-storage.mjs +3 -3
  284. package/fesm2022/cmat-services-media-watcher.mjs +4 -4
  285. package/fesm2022/cmat-services-media-watcher.mjs.map +1 -1
  286. package/fesm2022/cmat-services-platform.mjs +3 -3
  287. package/fesm2022/cmat-services-platform.mjs.map +1 -1
  288. package/fesm2022/cmat-services-splash-screen.mjs +5 -5
  289. package/fesm2022/cmat-services-splash-screen.mjs.map +1 -1
  290. package/fesm2022/cmat-services-title.mjs +3 -3
  291. package/fesm2022/cmat-services-title.mjs.map +1 -1
  292. package/fesm2022/cmat-services-translation.mjs +3 -3
  293. package/fesm2022/cmat-services-utils.mjs +53 -8
  294. package/fesm2022/cmat-services-utils.mjs.map +1 -1
  295. package/package.json +19 -7
  296. package/pipes/secure/secure-pipe.d.ts +1 -1
  297. package/services/alert/enum.d.ts +1 -1
  298. package/services/confirmation/confirmation.service.d.ts +1 -1
  299. package/services/data/data.service.d.ts +1 -1
  300. package/services/media-watcher/media-watcher.service.d.ts +1 -1
  301. package/services/title/title.service.d.ts +1 -1
  302. package/services/utils/utils.service.d.ts +1 -0
  303. package/styles/components/bundle.scss +18 -5
  304. package/styles/overrides/angular-material.scss +51 -52
  305. package/styles/tailwind.scss +2 -8
  306. package/styles/themes.scss +7 -7
  307. package/styles/user-themes.scss +1 -1
  308. package/tailwind/plugins/utilities.js +1 -1
  309. package/components/fullscreen/fullscreen.types.d.ts +0 -13
  310. package/esm2022/components/fullscreen/fullscreen.types.mjs +0 -2
@@ -1,32 +1,33 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, ViewEncapsulation, ChangeDetectionStrategy, Optional, EventEmitter, forwardRef, HostBinding, Input, Output, ViewChild, Inject } from '@angular/core';
3
- import * as i3$1 from '@angular/material/bottom-sheet';
2
+ import { Component, ViewEncapsulation, ChangeDetectionStrategy, Optional, Self, HostBinding, Input, ViewChild, Inject } from '@angular/core';
3
+ import * as i1 from '@angular/forms';
4
+ import { FormControl } from '@angular/forms';
5
+ import * as i4 from '@angular/material/bottom-sheet';
4
6
  import { MAT_BOTTOM_SHEET_DATA } from '@angular/material/bottom-sheet';
5
- import { NG_VALUE_ACCESSOR, FormControl } from '@angular/forms';
6
- import * as i2$2 from '@angular/material/tabs';
7
- import { MatTabsModule } from '@angular/material/tabs';
8
- import * as i1$1 from '@angular/material/button';
7
+ import * as i9 from '@angular/material/button';
9
8
  import { MatButtonModule } from '@angular/material/button';
10
- import * as i2 from '@angular/material/list';
11
- import { MatListModule } from '@angular/material/list';
12
9
  import * as i3 from '@angular/material/icon';
13
10
  import { MatIconModule } from '@angular/material/icon';
11
+ import * as i2 from '@angular/material/list';
12
+ import { MatListModule } from '@angular/material/list';
13
+ import * as i2$2 from '@angular/material/tabs';
14
+ import { MatTabsModule } from '@angular/material/tabs';
14
15
  import { isUndefined, isNull } from 'lodash-es';
15
- import { NgClass } from '@angular/common';
16
16
  import { coerceBooleanProperty } from '@angular/cdk/coercion';
17
- import * as i2$1 from '@angular/cdk/layout';
17
+ import * as i3$1 from '@angular/cdk/layout';
18
18
  import { Breakpoints } from '@angular/cdk/layout';
19
+ import * as i2$1 from '@angular/cdk/overlay';
20
+ import { OverlayConfig, CdkOverlayOrigin, OverlayModule } from '@angular/cdk/overlay';
21
+ import * as i8 from '@angular/cdk/portal';
22
+ import { PortalModule } from '@angular/cdk/portal';
23
+ import { NgClass } from '@angular/common';
24
+ import * as i7 from '@angular/material/form-field';
25
+ import { MatFormFieldControl } from '@angular/material/form-field';
26
+ import * as i6 from '@angular/material/input';
27
+ import { MatInputModule } from '@angular/material/input';
19
28
  import { Subject } from 'rxjs';
20
29
  import { takeUntil, map } from 'rxjs/operators';
21
- import * as i4 from '@angular/material/form-field';
22
- import { MatFormFieldModule } from '@angular/material/form-field';
23
30
  import { cmatAnimations } from 'cmat/animations';
24
- import * as i6 from '@angular/material/input';
25
- import { MatInputModule } from '@angular/material/input';
26
- import * as i1 from '@angular/cdk/overlay';
27
- import { OverlayConfig, CdkOverlayOrigin, OverlayModule } from '@angular/cdk/overlay';
28
- import * as i7 from '@angular/cdk/portal';
29
- import { PortalModule } from '@angular/cdk/portal';
30
31
 
31
32
  class CmatCascadeMenuComponent {
32
33
  constructor(root) {
@@ -35,45 +36,102 @@ class CmatCascadeMenuComponent {
35
36
  trackByFn(index, item) {
36
37
  return index || item;
37
38
  }
38
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.4", ngImport: i0, type: CmatCascadeMenuComponent, deps: [{ token: CmatCascadeListComponent, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
39
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.2.4", type: CmatCascadeMenuComponent, isStandalone: true, selector: "cmat-cascade-menu", exportAs: ["cmatCascadeMenu"], ngImport: i0, template: "@for (menuItem of root.steps; track trackByFn(step, menuItem); let step = $index) {\n <mat-list class=\"menu-list overflow-y-auto lg:overflow-y-hidden lg:hover:overflow-y-auto scrollbar-custom\"\n >\n @for (listItem of menuItem; track trackByFn(i, listItem); let i = $index) {\n <mat-list-item class=\"menu-item\"\n [class.active]=\"listItem.active\" [class.disabled]=\"listItem.disabled\"\n (click)=\"root.selectHandle($event, step, i);\">\n <div matLine>{{listItem.label}}</div>\n @if (listItem.children && listItem.children.length) {\n <mat-icon class=\"item-icon\" [svgIcon]=\"'mat_outline:chevron_right'\"\n ></mat-icon>\n }\n </mat-list-item>\n }\n </mat-list>\n}", styles: ["cmat-cascade-menu{height:200px;z-index:2007;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f;white-space:nowrap}cmat-cascade-menu .menu-list{display:inline-block;border-right-width:1px;box-sizing:border-box;margin:0;padding:.5rem;overflow:hidden;position:relative;height:200px;min-width:200px;vertical-align:top}cmat-cascade-menu .menu-list:last-child{border-right-width:0px}cmat-cascade-menu .menu-item{line-height:3rem;padding:0 16px;position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box;cursor:pointer!important}cmat-cascade-menu .menu-item.disabled{cursor:not-allowed!important}cmat-cascade-menu .menu-item .item-icon{position:absolute;justify-items:center;top:50%;bottom:50%;right:0;transform:translateY(-50%)}\n"], dependencies: [{ kind: "ngmodule", type: MatListModule }, { kind: "component", type: i2.MatList, selector: "mat-list", exportAs: ["matList"] }, { kind: "component", type: i2.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["activated"], exportAs: ["matListItem"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], animations: [cmatAnimations], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
39
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: CmatCascadeMenuComponent, deps: [{ token: CmatCascadeListComponent, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
40
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.7", type: CmatCascadeMenuComponent, isStandalone: true, selector: "cmat-cascade-menu", exportAs: ["cmatCascadeMenu"], ngImport: i0, template: "@for (menuItem of root.steps; track trackByFn(step, menuItem); let step = $index) {\n <mat-list class=\"menu-list overflow-y-auto lg:overflow-y-hidden lg:hover:overflow-y-auto scrollbar-custom\"\n >\n @for (listItem of menuItem; track trackByFn(i, listItem); let i = $index) {\n <mat-list-item class=\"menu-item\"\n [class.active]=\"listItem.active\" [class.disabled]=\"listItem.disabled\"\n (click)=\"root.selectHandle($event, step, i);\">\n <div matLine>{{listItem.label}}</div>\n @if (listItem.children && listItem.children.length) {\n <mat-icon class=\"item-icon\" [svgIcon]=\"'mat_outline:chevron_right'\"\n ></mat-icon>\n }\n </mat-list-item>\n }\n </mat-list>\n}", styles: ["cmat-cascade-menu{height:200px;z-index:2007;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f;white-space:nowrap}cmat-cascade-menu .menu-list{display:inline-block;border-right-width:1px;box-sizing:border-box;margin:0;padding:.5rem;overflow:hidden;position:relative;height:200px;min-width:200px;vertical-align:top}cmat-cascade-menu .menu-list:last-child{border-right-width:0px}cmat-cascade-menu .menu-item{line-height:3rem;padding:0 16px;position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box;cursor:pointer!important}cmat-cascade-menu .menu-item.disabled{cursor:not-allowed!important}cmat-cascade-menu .menu-item .item-icon{position:absolute;justify-items:center;top:50%;bottom:50%;right:0;transform:translateY(-50%)}\n"], dependencies: [{ kind: "ngmodule", type: MatListModule }, { kind: "component", type: i2.MatList, selector: "mat-list", exportAs: ["matList"] }, { kind: "component", type: i2.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["activated"], exportAs: ["matListItem"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], animations: [cmatAnimations], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
40
41
  }
41
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.4", ngImport: i0, type: CmatCascadeMenuComponent, decorators: [{
42
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: CmatCascadeMenuComponent, decorators: [{
42
43
  type: Component,
43
44
  args: [{ selector: 'cmat-cascade-menu', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, exportAs: 'cmatCascadeMenu', animations: [cmatAnimations], standalone: true, imports: [MatListModule, MatIconModule], template: "@for (menuItem of root.steps; track trackByFn(step, menuItem); let step = $index) {\n <mat-list class=\"menu-list overflow-y-auto lg:overflow-y-hidden lg:hover:overflow-y-auto scrollbar-custom\"\n >\n @for (listItem of menuItem; track trackByFn(i, listItem); let i = $index) {\n <mat-list-item class=\"menu-item\"\n [class.active]=\"listItem.active\" [class.disabled]=\"listItem.disabled\"\n (click)=\"root.selectHandle($event, step, i);\">\n <div matLine>{{listItem.label}}</div>\n @if (listItem.children && listItem.children.length) {\n <mat-icon class=\"item-icon\" [svgIcon]=\"'mat_outline:chevron_right'\"\n ></mat-icon>\n }\n </mat-list-item>\n }\n </mat-list>\n}", styles: ["cmat-cascade-menu{height:200px;z-index:2007;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f;white-space:nowrap}cmat-cascade-menu .menu-list{display:inline-block;border-right-width:1px;box-sizing:border-box;margin:0;padding:.5rem;overflow:hidden;position:relative;height:200px;min-width:200px;vertical-align:top}cmat-cascade-menu .menu-list:last-child{border-right-width:0px}cmat-cascade-menu .menu-item{line-height:3rem;padding:0 16px;position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box;cursor:pointer!important}cmat-cascade-menu .menu-item.disabled{cursor:not-allowed!important}cmat-cascade-menu .menu-item .item-icon{position:absolute;justify-items:center;top:50%;bottom:50%;right:0;transform:translateY(-50%)}\n"] }]
44
45
  }], ctorParameters: () => [{ type: CmatCascadeListComponent, decorators: [{
45
46
  type: Optional
46
47
  }] }] });
47
48
 
49
+ /* eslint-disable @typescript-eslint/member-ordering */
48
50
  let NEXT_ID = 0;
49
51
  class CmatCascadeListComponent {
50
- constructor(_overlay, _breakpointObserver, _bottomSheet) {
52
+ constructor(ngControl, _overlay, _breakpointObserver, _bottomSheet, _changeDetectorRef) {
53
+ this.ngControl = ngControl;
51
54
  this._overlay = _overlay;
52
55
  this._breakpointObserver = _breakpointObserver;
53
56
  this._bottomSheet = _bottomSheet;
57
+ this._changeDetectorRef = _changeDetectorRef;
54
58
  /* 组件 id */
55
59
  this.id = `cmat-cascade-list-${NEXT_ID++}`;
56
- this.disabled = false;
57
- this.placeholder = '请选择';
58
60
  this.clearable = false;
59
61
  this.fullLevels = true;
60
62
  this.changeOnSelect = false;
61
- this.modelChange = new EventEmitter();
62
63
  this.steps = [];
63
64
  this.menuVisible = false;
64
65
  this.currentLabels = [];
65
- this._touchUi = false;
66
+ this.stateChanges = new Subject();
67
+ this.focused = false;
68
+ this.touched = false;
69
+ this.controlType = 'cmat-cascade-list';
66
70
  this._unsubscribeAll = new Subject();
71
+ // Whether the cascade dropdownlist UI is in touch mode.
72
+ this._touchUi = false;
73
+ this._placeholder = '请选择';
74
+ this._required = false;
75
+ this._disabled = false;
67
76
  this.onTouched = () => { };
68
77
  this.controlChange = () => { };
78
+ if (this.ngControl != null) {
79
+ this.ngControl.valueAccessor = this;
80
+ }
69
81
  }
70
- // Whether the cascade dropdownlist UI is in touch mode.
71
82
  get touchUi() {
72
83
  return this._touchUi;
73
84
  }
74
85
  set touchUi(value) {
75
86
  this._touchUi = coerceBooleanProperty(value);
76
87
  }
88
+ get placeholder() {
89
+ return this._placeholder;
90
+ }
91
+ set placeholder(value) {
92
+ this._placeholder = value;
93
+ this.stateChanges.next();
94
+ }
95
+ get value() {
96
+ return this._value;
97
+ }
98
+ set value(value) {
99
+ if (value !== this.value) {
100
+ this._value = value;
101
+ this._setInputValue();
102
+ this.stateChanges.next();
103
+ this.controlChange(value);
104
+ }
105
+ }
106
+ get empty() {
107
+ return !this._value;
108
+ }
109
+ get errorState() {
110
+ if (this.ngControl == null)
111
+ return false;
112
+ return (this.touched && this.ngControl?.invalid) ?? false;
113
+ }
114
+ get shouldLabelFloat() {
115
+ return this.focused || !this.empty;
116
+ }
117
+ get required() { return this._required; }
118
+ set required(value) {
119
+ this._required = coerceBooleanProperty(value);
120
+ this.stateChanges.next();
121
+ }
122
+ get disabled() {
123
+ if (this.ngControl && this.ngControl.disabled !== null) {
124
+ return this.ngControl.disabled;
125
+ }
126
+ return this._disabled;
127
+ }
128
+ set disabled(value) {
129
+ this._disabled = coerceBooleanProperty(value);
130
+ if (this.focused) {
131
+ this.focused = false;
132
+ this.stateChanges.next();
133
+ }
134
+ }
77
135
  ngOnInit() {
78
136
  const config = new OverlayConfig({
79
137
  hasBackdrop: true,
@@ -97,6 +155,9 @@ class CmatCascadeListComponent {
97
155
  }
98
156
  ])
99
157
  });
158
+ this._breakpointObserver.observe(Breakpoints.Handset).pipe(takeUntil(this._unsubscribeAll), map((match) => match.matches)).subscribe((matches) => {
159
+ this.touchUi !== matches && !matches && this.bottomSheetRef && this.bottomSheetRef.dismiss();
160
+ });
100
161
  this.overlayRef = this._overlay.create(config);
101
162
  this.overlayRef.backdropClick().subscribe(() => {
102
163
  this.overlayRef.detach();
@@ -104,16 +165,25 @@ class CmatCascadeListComponent {
104
165
  }
105
166
  ngOnChanges(changes) {
106
167
  if (changes['options']) {
107
- this.options = changes['options'].currentValue;
168
+ if ((this.value && !this.value.length) || !this.value) {
169
+ const step1 = this.options.map((option) => ({
170
+ ...option,
171
+ active: false
172
+ }));
173
+ this.steps = [step1];
174
+ }
108
175
  this._init();
109
176
  }
110
177
  }
111
178
  ngOnDestroy() {
179
+ this.stateChanges.complete();
112
180
  this._unsubscribeAll.next(void 0);
113
181
  this._unsubscribeAll.complete();
114
182
  }
115
183
  writeValue(value) {
116
- this.model = value;
184
+ this.value = value;
185
+ this.steps = [];
186
+ this._init();
117
187
  }
118
188
  registerOnChange(fn) {
119
189
  this.controlChange = fn;
@@ -121,9 +191,24 @@ class CmatCascadeListComponent {
121
191
  registerOnTouched(fn) {
122
192
  this.onTouched = fn;
123
193
  }
194
+ setDisabledState(isDisabled) {
195
+ this.disabled = isDisabled;
196
+ }
197
+ setDescribedByIds(ids) {
198
+ if (ids.length) {
199
+ this._inputElement.nativeElement.setAttribute('aria-describedby', ids.join(' '));
200
+ }
201
+ else {
202
+ this._inputElement.nativeElement.removeAttribute('aria-describedby');
203
+ }
204
+ }
205
+ onContainerClick() {
206
+ if (!this.focused) {
207
+ this._inputElement.nativeElement.focus();
208
+ }
209
+ }
124
210
  clickHandle(event) {
125
- event.stopPropagation();
126
- if (this.disabled) {
211
+ if (this.disabled || this.options.length === 0) {
127
212
  return;
128
213
  }
129
214
  const element = event.target;
@@ -135,64 +220,28 @@ class CmatCascadeListComponent {
135
220
  if (this.overlayRef && this.overlayRef.hasAttached()) {
136
221
  this.overlayRef.detach();
137
222
  }
138
- this.openBottomSheet();
223
+ this._openBottomSheet();
139
224
  }
140
225
  else {
141
226
  this.overlayRef.attach(this.menuTemplate);
142
227
  }
143
228
  }
144
- changeLabels() {
145
- this.inputValue = '';
146
- const nextValue = [];
147
- this.steps.forEach((items) => {
148
- const steps = items.filter((item) => item.active);
149
- nextValue.push(steps[0]);
150
- });
151
- this.currentLabels = nextValue;
152
- this._setInputValue();
153
- const next = nextValue.map((item) => item.value);
154
- this.model = next;
155
- this.modelChange.emit(next);
156
- this.controlChange();
157
- }
158
- clearValue(isFirst, event) {
229
+ clearValue(event) {
159
230
  if (event) {
160
231
  event.stopPropagation();
161
232
  }
162
233
  this.currentLabels = [];
163
- if (!isFirst || (this.model && !this.model.length) || !this.model) {
164
- const step1 = this.options.map((option) => ({
165
- ...option,
166
- active: false
167
- }));
168
- this.steps = [step1];
169
- }
170
- //this.menuVisible = false;
171
- this.inputValue = '';
172
- if (event) {
173
- this.modelChange.emit([]);
174
- }
234
+ this.steps = [];
235
+ const step1 = this.options.map((option) => ({
236
+ ...option,
237
+ active: false
238
+ }));
239
+ this.steps = [step1];
240
+ this.value = null;
241
+ this._changeDetectorRef.markForCheck();
175
242
  }
176
- initSteps(index, options) {
177
- const step = [];
178
- options.map((item) => {
179
- if (this.model[index] === item.value) {
180
- if (!isUndefined(item.children))
181
- options = item.children;
182
- step.push(({
183
- ...item,
184
- active: true
185
- }));
186
- }
187
- else {
188
- step.push(item);
189
- }
190
- });
191
- this.steps.push(step);
192
- index += 1;
193
- if (index < this.model.length) {
194
- this.initSteps(index, options);
195
- }
243
+ showClearIcon() {
244
+ return !!(this.clearable && this.currentLabels.length > 0 && !this.disabled);
196
245
  }
197
246
  selectHandle(event, step, index) {
198
247
  event.stopPropagation();
@@ -210,7 +259,7 @@ class CmatCascadeListComponent {
210
259
  if (next && Array.isArray(next) && next.length) {
211
260
  // change on select (props)
212
261
  if (this.changeOnSelect) {
213
- this.changeLabels();
262
+ this._changeLabels();
214
263
  }
215
264
  const nativeNext = next.map((item) => ({
216
265
  ...item,
@@ -219,7 +268,7 @@ class CmatCascadeListComponent {
219
268
  return this.steps.push(nativeNext);
220
269
  }
221
270
  // last step
222
- this.changeLabels();
271
+ this._changeLabels();
223
272
  if (this.overlayRef && this.overlayRef.hasAttached()) {
224
273
  this.overlayRef.detach();
225
274
  }
@@ -227,66 +276,103 @@ class CmatCascadeListComponent {
227
276
  this.bottomSheetRef.dismiss();
228
277
  }
229
278
  }
230
- showClearIcon() {
231
- return !!(this.clearable && this.currentLabels.length);
279
+ onFocusIn() {
280
+ if (!this.focused) {
281
+ this.focused = true;
282
+ this.stateChanges.next();
283
+ }
284
+ }
285
+ onFocusOut(event) {
286
+ if (!this._inputElement.nativeElement.contains(event.relatedTarget)) {
287
+ this.touched = true;
288
+ this.focused = false;
289
+ this.onTouched();
290
+ this.stateChanges.next();
291
+ }
292
+ }
293
+ _initSteps(index, options) {
294
+ const step = [];
295
+ options.map((item) => {
296
+ if (this.value[index].value === item.value) {
297
+ if (!isUndefined(item.children))
298
+ options = item.children;
299
+ step.push(({
300
+ ...item,
301
+ active: true
302
+ }));
303
+ }
304
+ else {
305
+ step.push(item);
306
+ }
307
+ });
308
+ this.steps.push(step);
309
+ index += 1;
310
+ if (index < this.value.length) {
311
+ this._initSteps(index, options);
312
+ }
313
+ }
314
+ _changeLabels() {
315
+ const nextValue = [];
316
+ this.steps.forEach((items) => {
317
+ const steps = items.filter((item) => item.active);
318
+ nextValue.push(steps[0]);
319
+ });
320
+ this.currentLabels = nextValue;
321
+ const next = nextValue.map((item) => {
322
+ return {
323
+ value: item.value,
324
+ label: item.label
325
+ };
326
+ });
327
+ this.value = next;
232
328
  }
233
- openBottomSheet() {
329
+ _openBottomSheet() {
234
330
  this.bottomSheetRef = this._bottomSheet.open(CmatCascadeBottomSheetComponent, {
235
331
  data: this
236
332
  });
237
333
  }
238
334
  _init() {
239
- this.clearValue(true);
240
- if (this.model && this.model.length) {
241
- const val = this.model.map((v) => {
242
- const item = this.options.filter((i) => i.value === v)[0];
335
+ this.currentLabels = [];
336
+ if (this.value && this.value.length && this.options.length > 0) {
337
+ let options = this.options;
338
+ const val = this.value.map((v) => {
339
+ const item = options.filter((i) => i.value === v.value)[0];
243
340
  if (!isUndefined(item.children))
244
- this.options = item.children;
341
+ options = item.children;
245
342
  return item;
246
343
  });
247
- this.currentLabels = val.filter(v => !!v);
344
+ this.currentLabels = val.filter((v) => !!v);
248
345
  this._setInputValue();
249
- this.initSteps(0, this.options);
346
+ this._initSteps(0, this.options);
250
347
  }
251
- this._breakpointObserver.observe(Breakpoints.Handset).pipe(takeUntil(this._unsubscribeAll), map((match) => match.matches)).subscribe((matches) => {
252
- this.touchUi !== matches && !matches && this.bottomSheetRef && this.bottomSheetRef.dismiss();
253
- });
348
+ this._changeDetectorRef.markForCheck();
254
349
  }
255
350
  _setInputValue() {
351
+ this._inputElement.nativeElement.value = '';
256
352
  if (this.fullLevels) {
257
353
  this.currentLabels.map((value, i) => {
258
- this.inputValue += `${value.label}${i < this.currentLabels.length - 1 ? ' / ' : ''}`;
354
+ this._inputElement.nativeElement.value += `${value.label}${i < this.currentLabels.length - 1 ? ' / ' : ''}`;
259
355
  });
260
356
  }
261
357
  else {
262
- this.inputValue = this.currentLabels[this.currentLabels.length - 1].label;
358
+ this._inputElement.nativeElement.value = this.currentLabels[this.currentLabels.length - 1].label ?? '';
263
359
  }
264
360
  }
265
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.4", ngImport: i0, type: CmatCascadeListComponent, deps: [{ token: i1.Overlay }, { token: i2$1.BreakpointObserver }, { token: i3$1.MatBottomSheet }], target: i0.ɵɵFactoryTarget.Component }); }
266
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.2.4", type: CmatCascadeListComponent, isStandalone: true, selector: "cmat-cascade-list", inputs: { id: "id", disabled: "disabled", placeholder: "placeholder", label: "label", options: "options", clearable: "clearable", fullLevels: "fullLevels", changeOnSelect: "changeOnSelect", model: "model", touchUi: "touchUi" }, outputs: { modelChange: "modelChange" }, host: { properties: { "attr.id": "this.id" } }, providers: [{
267
- provide: NG_VALUE_ACCESSOR,
268
- useExisting: forwardRef(() => CmatCascadeListComponent),
269
- multi: true
270
- }], viewQueries: [{ propertyName: "overlayOrigin", first: true, predicate: CdkOverlayOrigin, descendants: true, static: true }, { propertyName: "menuTemplate", first: true, predicate: ["menuTemplate"], descendants: true, static: true }], exportAs: ["cmatCascadeList"], usesOnChanges: true, ngImport: i0, template: "<span role=\"presentation\" class=\"cmat-cascade-list\" [ngClass]=\"{'opened': menuVisible, 'disabled': disabled}\"\n cdk-overlay-origin>\n <mat-form-field>\n @if (label) {\n <mat-label>{{label}}</mat-label>\n }\n <input (click)=\"clickHandle($event)\" [value]=\"inputValue || ''\" matInput readonly\n [placeholder]=\"currentLabels.length ? '' : placeholder\">\n\n @if (showClearIcon()) {\n <button type=\"button\" matSuffix mat-icon-button aria-label=\"Clear\"\n (click)=\"clearValue(false,$event)\">\n <mat-icon [svgIcon]=\"'heroicons_outline:x-mark'\"></mat-icon>\n </button>\n }\n @if (!showClearIcon()) {\n <mat-icon matSuffix [svgIcon]=\"'mat_outline:arrow_drop_down'\"></mat-icon>\n }\n </mat-form-field>\n</span>\n\n<ng-template cdk-portal #menuTemplate=\"cdkPortal\">\n <cmat-cascade-menu></cmat-cascade-menu>\n</ng-template>", styles: [".cmat-cascade-list{position:relative;display:inline-block;width:100%;line-height:2}.cmat-cascade-list mat-form-field{width:100%}.cmat-cascade-list input{cursor:pointer}.cmat-cascade-list.disabled .cascade-label{z-index:2}\n"], dependencies: [{ kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: CmatCascadeMenuComponent, selector: "cmat-cascade-menu", exportAs: ["cmatCascadeMenu"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i6.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "ngmodule", type: OverlayModule }, { kind: "directive", type: i1.CdkOverlayOrigin, selector: "[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]", exportAs: ["cdkOverlayOrigin"] }, { kind: "ngmodule", type: PortalModule }, { kind: "directive", type: i7.TemplatePortalDirective, selector: "[cdk-portal], [portal]", exportAs: ["cdkPortal"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
361
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: CmatCascadeListComponent, deps: [{ token: i1.NgControl, optional: true, self: true }, { token: i2$1.Overlay }, { token: i3$1.BreakpointObserver }, { token: i4.MatBottomSheet }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
362
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.7", type: CmatCascadeListComponent, isStandalone: true, selector: "cmat-cascade-list", inputs: { id: "id", options: "options", clearable: "clearable", fullLevels: "fullLevels", changeOnSelect: "changeOnSelect", touchUi: "touchUi", placeholder: "placeholder", value: "value", required: "required", disabled: "disabled" }, host: { properties: { "attr.id": "this.id" } }, providers: [{ provide: MatFormFieldControl, useExisting: CmatCascadeListComponent }], viewQueries: [{ propertyName: "overlayOrigin", first: true, predicate: CdkOverlayOrigin, descendants: true, static: true }, { propertyName: "menuTemplate", first: true, predicate: ["menuTemplate"], descendants: true, static: true }, { propertyName: "_inputElement", first: true, predicate: ["inputElement"], descendants: true, static: true }], exportAs: ["cmatCascadeList"], usesOnChanges: true, ngImport: i0, template: "<span role=\"presentation\" class=\"cmat-cascade-list\" [ngClass]=\"{'opened': menuVisible, 'disabled': disabled}\"\n cdk-overlay-origin>\n <input (click)=\"clickHandle($event)\" matInput readonly #inputElement [required]='required' (focusin)=\"onFocusIn()\"\n (focusout)=\"onFocusOut($event)\" [placeholder]=\"currentLabels.length>0 ? '' : placeholder\">\n\n @if (showClearIcon()) {\n <button type=\"button\" matSuffix mat-icon-button aria-label=\"Clear\" (click)=\"clearValue($event)\">\n <mat-icon [svgIcon]=\"'heroicons_outline:x-mark'\"></mat-icon>\n </button>\n }\n @else {\n <mat-icon matSuffix [svgIcon]=\"'mat_outline:arrow_drop_down'\"></mat-icon>\n }\n</span>\n\n<ng-template cdk-portal #menuTemplate=\"cdkPortal\">\n <cmat-cascade-menu></cmat-cascade-menu>\n</ng-template>", styles: ["cmat-cascade-list{width:100%}.cmat-cascade-list{position:relative;display:flex;width:100%;line-height:2;align-items:center}.cmat-cascade-list mat-form-field{width:100%}.cmat-cascade-list input{cursor:pointer}.cmat-cascade-list.disabled .cascade-label{z-index:2}\n"], dependencies: [{ kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: CmatCascadeMenuComponent, selector: "cmat-cascade-menu", exportAs: ["cmatCascadeMenu"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i6.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "directive", type: i7.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: OverlayModule }, { kind: "directive", type: i2$1.CdkOverlayOrigin, selector: "[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]", exportAs: ["cdkOverlayOrigin"] }, { kind: "ngmodule", type: PortalModule }, { kind: "directive", type: i8.TemplatePortalDirective, selector: "[cdk-portal], [portal]", exportAs: ["cdkPortal"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i9.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
271
363
  }
272
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.4", ngImport: i0, type: CmatCascadeListComponent, decorators: [{
364
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: CmatCascadeListComponent, decorators: [{
273
365
  type: Component,
274
- args: [{ selector: 'cmat-cascade-list', providers: [{
275
- provide: NG_VALUE_ACCESSOR,
276
- useExisting: forwardRef(() => CmatCascadeListComponent),
277
- multi: true
278
- }], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, exportAs: 'cmatCascadeList', standalone: true, imports: [MatFormFieldModule, MatIconModule, NgClass, CmatCascadeMenuComponent, MatInputModule, OverlayModule, PortalModule], template: "<span role=\"presentation\" class=\"cmat-cascade-list\" [ngClass]=\"{'opened': menuVisible, 'disabled': disabled}\"\n cdk-overlay-origin>\n <mat-form-field>\n @if (label) {\n <mat-label>{{label}}</mat-label>\n }\n <input (click)=\"clickHandle($event)\" [value]=\"inputValue || ''\" matInput readonly\n [placeholder]=\"currentLabels.length ? '' : placeholder\">\n\n @if (showClearIcon()) {\n <button type=\"button\" matSuffix mat-icon-button aria-label=\"Clear\"\n (click)=\"clearValue(false,$event)\">\n <mat-icon [svgIcon]=\"'heroicons_outline:x-mark'\"></mat-icon>\n </button>\n }\n @if (!showClearIcon()) {\n <mat-icon matSuffix [svgIcon]=\"'mat_outline:arrow_drop_down'\"></mat-icon>\n }\n </mat-form-field>\n</span>\n\n<ng-template cdk-portal #menuTemplate=\"cdkPortal\">\n <cmat-cascade-menu></cmat-cascade-menu>\n</ng-template>", styles: [".cmat-cascade-list{position:relative;display:inline-block;width:100%;line-height:2}.cmat-cascade-list mat-form-field{width:100%}.cmat-cascade-list input{cursor:pointer}.cmat-cascade-list.disabled .cascade-label{z-index:2}\n"] }]
279
- }], ctorParameters: () => [{ type: i1.Overlay }, { type: i2$1.BreakpointObserver }, { type: i3$1.MatBottomSheet }], propDecorators: { id: [{
366
+ args: [{ selector: 'cmat-cascade-list', providers: [{ provide: MatFormFieldControl, useExisting: CmatCascadeListComponent }], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, exportAs: 'cmatCascadeList', standalone: true, imports: [MatIconModule, NgClass, CmatCascadeMenuComponent, MatInputModule, OverlayModule, PortalModule, MatButtonModule], template: "<span role=\"presentation\" class=\"cmat-cascade-list\" [ngClass]=\"{'opened': menuVisible, 'disabled': disabled}\"\n cdk-overlay-origin>\n <input (click)=\"clickHandle($event)\" matInput readonly #inputElement [required]='required' (focusin)=\"onFocusIn()\"\n (focusout)=\"onFocusOut($event)\" [placeholder]=\"currentLabels.length>0 ? '' : placeholder\">\n\n @if (showClearIcon()) {\n <button type=\"button\" matSuffix mat-icon-button aria-label=\"Clear\" (click)=\"clearValue($event)\">\n <mat-icon [svgIcon]=\"'heroicons_outline:x-mark'\"></mat-icon>\n </button>\n }\n @else {\n <mat-icon matSuffix [svgIcon]=\"'mat_outline:arrow_drop_down'\"></mat-icon>\n }\n</span>\n\n<ng-template cdk-portal #menuTemplate=\"cdkPortal\">\n <cmat-cascade-menu></cmat-cascade-menu>\n</ng-template>", styles: ["cmat-cascade-list{width:100%}.cmat-cascade-list{position:relative;display:flex;width:100%;line-height:2;align-items:center}.cmat-cascade-list mat-form-field{width:100%}.cmat-cascade-list input{cursor:pointer}.cmat-cascade-list.disabled .cascade-label{z-index:2}\n"] }]
367
+ }], ctorParameters: () => [{ type: i1.NgControl, decorators: [{
368
+ type: Optional
369
+ }, {
370
+ type: Self
371
+ }] }, { type: i2$1.Overlay }, { type: i3$1.BreakpointObserver }, { type: i4.MatBottomSheet }, { type: i0.ChangeDetectorRef }], propDecorators: { id: [{
280
372
  type: HostBinding,
281
373
  args: ['attr.id']
282
374
  }, {
283
375
  type: Input
284
- }], disabled: [{
285
- type: Input
286
- }], placeholder: [{
287
- type: Input
288
- }], label: [{
289
- type: Input
290
376
  }], options: [{
291
377
  type: Input,
292
378
  args: [{ required: true }]
@@ -296,19 +382,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.4", ngImpor
296
382
  type: Input
297
383
  }], changeOnSelect: [{
298
384
  type: Input
299
- }], model: [{
300
- type: Input,
301
- args: [{ required: true }]
302
- }], modelChange: [{
303
- type: Output
304
385
  }], overlayOrigin: [{
305
386
  type: ViewChild,
306
387
  args: [CdkOverlayOrigin, { static: true }]
307
388
  }], menuTemplate: [{
308
389
  type: ViewChild,
309
390
  args: ['menuTemplate', { static: true }]
391
+ }], _inputElement: [{
392
+ type: ViewChild,
393
+ args: ['inputElement', { static: true }]
310
394
  }], touchUi: [{
311
395
  type: Input
396
+ }], placeholder: [{
397
+ type: Input
398
+ }], value: [{
399
+ type: Input
400
+ }], required: [{
401
+ type: Input
402
+ }], disabled: [{
403
+ type: Input
312
404
  }] } });
313
405
 
314
406
  class CmatCascadeBottomSheetComponent {
@@ -338,10 +430,10 @@ class CmatCascadeBottomSheetComponent {
338
430
  trackByFn(index, item) {
339
431
  return index || item;
340
432
  }
341
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.4", ngImport: i0, type: CmatCascadeBottomSheetComponent, deps: [{ token: MAT_BOTTOM_SHEET_DATA }], target: i0.ɵɵFactoryTarget.Component }); }
342
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.2.4", type: CmatCascadeBottomSheetComponent, isStandalone: true, selector: "cmat-cascade-bottom-sheet", exportAs: ["cmatCascadeBottomSheet"], ngImport: i0, template: "<div role=\"presentation\" class=\"cmat-cascade-bottom-sheet\" (click)=\"clickHandle($event)\">\n <div class=\"sheet-header flex items-center\">\n <p class=\"sheet-title\">{{root.placeholder}}</p>\n <button type=\"button\" mat-icon-button (click)=\"root.bottomSheetRef.dismiss()\">\n <mat-icon [svgIcon]=\"'heroicons_outline:x-mark'\"></mat-icon>\n </button>\n </div>\n <mat-tab-group [selectedIndex]=\"selected.value\" (selectedIndexChange)=\"selected.setValue($event);\">\n @for (menuItem of root.steps; track trackByFn(step, menuItem); let step = $index) {\n <mat-tab\n [label]=\"labels[step] || '\u9009\u62E9'\">\n <mat-list class=\"menu-list overflow-y-auto lg:overflow-y-hidden lg:hover:overflow-y-auto scrollbar-custom\">\n @for (listItem of menuItem; track trackByFn(i, listItem); let i = $index) {\n <mat-list-item class=\"menu-item\"\n [class.active]=\"listItem.active\" [class.disabled]=\"listItem.disabled\"\n (click)=\"root.selectHandle($event, step, i); select(listItem.disabled,listItem.label);\">\n <div matLine>{{listItem.label}}</div>\n </mat-list-item>\n }\n </mat-list>\n </mat-tab>\n }\n </mat-tab-group>\n</div>", styles: [".cmat-cascade-bottom-sheet{padding:0;margin:-8px -16px}.cmat-cascade-bottom-sheet .sheet-header{display:flex;flex:1 1 0%;align-items:center;font-size:1rem;border-bottom-width:1px;padding:12px 16px}.cmat-cascade-bottom-sheet .sheet-header .sheet-title{margin:0;padding:0;letter-spacing:.05rem;text-align:center;flex-grow:1}.cmat-cascade-bottom-sheet .menu-list{vertical-align:top;box-sizing:border-box;margin:0;padding:0;width:100%;overflow:hidden;position:relative;height:204px}.cmat-cascade-bottom-sheet .menu-item{padding:0 16px;text-overflow:ellipsis;box-sizing:border-box;cursor:pointer!important;font-size:14px;line-height:3em}.cmat-cascade-bottom-sheet .menu-item.disabled{cursor:not-allowed!important;pointer-events:none}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$1.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "ngmodule", type: MatTabsModule }, { kind: "component", type: i2$2.MatTab, selector: "mat-tab", inputs: ["disabled", "label", "aria-label", "aria-labelledby", "labelClass", "bodyClass"], exportAs: ["matTab"] }, { kind: "component", type: i2$2.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "fitInkBarToContent", "mat-stretch-tabs", "dynamicHeight", "selectedIndex", "headerPosition", "animationDuration", "contentTabIndex", "disablePagination", "disableRipple", "preserveContent", "backgroundColor"], outputs: ["selectedIndexChange", "focusChange", "animationDone", "selectedTabChange"], exportAs: ["matTabGroup"] }, { kind: "ngmodule", type: MatListModule }, { kind: "component", type: i2.MatList, selector: "mat-list", exportAs: ["matList"] }, { kind: "component", type: i2.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["activated"], exportAs: ["matListItem"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
433
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: CmatCascadeBottomSheetComponent, deps: [{ token: MAT_BOTTOM_SHEET_DATA }], target: i0.ɵɵFactoryTarget.Component }); }
434
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.7", type: CmatCascadeBottomSheetComponent, isStandalone: true, selector: "cmat-cascade-bottom-sheet", exportAs: ["cmatCascadeBottomSheet"], ngImport: i0, template: "<div role=\"presentation\" class=\"cmat-cascade-bottom-sheet\" (click)=\"clickHandle($event)\">\n <div class=\"sheet-header flex items-center\">\n <p class=\"sheet-title\">{{root.placeholder}}</p>\n <button type=\"button\" mat-icon-button (click)=\"root.bottomSheetRef.dismiss()\">\n <mat-icon [svgIcon]=\"'heroicons_outline:x-mark'\"></mat-icon>\n </button>\n </div>\n <mat-tab-group [selectedIndex]=\"selected.value\" (selectedIndexChange)=\"selected.setValue($event);\">\n @for (menuItem of root.steps; track trackByFn(step, menuItem); let step = $index) {\n <mat-tab\n [label]=\"labels[step] || '\u9009\u62E9'\">\n <mat-list class=\"menu-list overflow-y-auto lg:overflow-y-hidden lg:hover:overflow-y-auto scrollbar-custom\">\n @for (listItem of menuItem; track trackByFn(i, listItem); let i = $index) {\n <mat-list-item class=\"menu-item\"\n [class.active]=\"listItem.active\" [class.disabled]=\"listItem.disabled\"\n (click)=\"root.selectHandle($event, step, i); select(listItem.disabled,listItem.label);\">\n <div matLine>{{listItem.label}}</div>\n </mat-list-item>\n }\n </mat-list>\n </mat-tab>\n }\n </mat-tab-group>\n</div>", styles: [".cmat-cascade-bottom-sheet{padding:0;margin:-8px -16px}.cmat-cascade-bottom-sheet .sheet-header{display:flex;flex:1 1 0%;align-items:center;font-size:1rem;border-bottom-width:1px;padding:12px 16px}.cmat-cascade-bottom-sheet .sheet-header .sheet-title{margin:0;padding:0;letter-spacing:.05rem;text-align:center;flex-grow:1}.cmat-cascade-bottom-sheet .menu-list{vertical-align:top;box-sizing:border-box;margin:0;padding:0;width:100%;overflow:hidden;position:relative;height:204px}.cmat-cascade-bottom-sheet .menu-item{padding:0 16px;text-overflow:ellipsis;box-sizing:border-box;cursor:pointer!important;font-size:14px;line-height:3em}.cmat-cascade-bottom-sheet .menu-item.disabled{cursor:not-allowed!important;pointer-events:none}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i9.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "ngmodule", type: MatTabsModule }, { kind: "component", type: i2$2.MatTab, selector: "mat-tab", inputs: ["disabled", "label", "aria-label", "aria-labelledby", "labelClass", "bodyClass"], exportAs: ["matTab"] }, { kind: "component", type: i2$2.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "fitInkBarToContent", "mat-stretch-tabs", "dynamicHeight", "selectedIndex", "headerPosition", "animationDuration", "contentTabIndex", "disablePagination", "disableRipple", "preserveContent", "backgroundColor"], outputs: ["selectedIndexChange", "focusChange", "animationDone", "selectedTabChange"], exportAs: ["matTabGroup"] }, { kind: "ngmodule", type: MatListModule }, { kind: "component", type: i2.MatList, selector: "mat-list", exportAs: ["matList"] }, { kind: "component", type: i2.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["activated"], exportAs: ["matListItem"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
343
435
  }
344
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.4", ngImport: i0, type: CmatCascadeBottomSheetComponent, decorators: [{
436
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: CmatCascadeBottomSheetComponent, decorators: [{
345
437
  type: Component,
346
438
  args: [{ selector: 'cmat-cascade-bottom-sheet', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, exportAs: 'cmatCascadeBottomSheet', standalone: true, imports: [MatButtonModule, MatTabsModule, MatListModule, MatIconModule], template: "<div role=\"presentation\" class=\"cmat-cascade-bottom-sheet\" (click)=\"clickHandle($event)\">\n <div class=\"sheet-header flex items-center\">\n <p class=\"sheet-title\">{{root.placeholder}}</p>\n <button type=\"button\" mat-icon-button (click)=\"root.bottomSheetRef.dismiss()\">\n <mat-icon [svgIcon]=\"'heroicons_outline:x-mark'\"></mat-icon>\n </button>\n </div>\n <mat-tab-group [selectedIndex]=\"selected.value\" (selectedIndexChange)=\"selected.setValue($event);\">\n @for (menuItem of root.steps; track trackByFn(step, menuItem); let step = $index) {\n <mat-tab\n [label]=\"labels[step] || '\u9009\u62E9'\">\n <mat-list class=\"menu-list overflow-y-auto lg:overflow-y-hidden lg:hover:overflow-y-auto scrollbar-custom\">\n @for (listItem of menuItem; track trackByFn(i, listItem); let i = $index) {\n <mat-list-item class=\"menu-item\"\n [class.active]=\"listItem.active\" [class.disabled]=\"listItem.disabled\"\n (click)=\"root.selectHandle($event, step, i); select(listItem.disabled,listItem.label);\">\n <div matLine>{{listItem.label}}</div>\n </mat-list-item>\n }\n </mat-list>\n </mat-tab>\n }\n </mat-tab-group>\n</div>", styles: [".cmat-cascade-bottom-sheet{padding:0;margin:-8px -16px}.cmat-cascade-bottom-sheet .sheet-header{display:flex;flex:1 1 0%;align-items:center;font-size:1rem;border-bottom-width:1px;padding:12px 16px}.cmat-cascade-bottom-sheet .sheet-header .sheet-title{margin:0;padding:0;letter-spacing:.05rem;text-align:center;flex-grow:1}.cmat-cascade-bottom-sheet .menu-list{vertical-align:top;box-sizing:border-box;margin:0;padding:0;width:100%;overflow:hidden;position:relative;height:204px}.cmat-cascade-bottom-sheet .menu-item{padding:0 16px;text-overflow:ellipsis;box-sizing:border-box;cursor:pointer!important;font-size:14px;line-height:3em}.cmat-cascade-bottom-sheet .menu-item.disabled{cursor:not-allowed!important;pointer-events:none}\n"] }]
347
439
  }], ctorParameters: () => [{ type: CmatCascadeListComponent, decorators: [{