cmat 0.0.28 → 0.0.30

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 (483) hide show
  1. package/animations/index.d.ts +5 -5
  2. package/components/adapter/index.d.ts +187 -5
  3. package/components/breadcrumb/index.d.ts +243 -3
  4. package/components/card/index.d.ts +20 -5
  5. package/components/carousel/index.d.ts +175 -5
  6. package/components/cascade/index.d.ts +101 -5
  7. package/components/chip-input/index.d.ts +65 -5
  8. package/components/custom-formly/index.d.ts +669 -5
  9. package/components/date-range/index.d.ts +139 -5
  10. package/components/drawer/index.d.ts +101 -5
  11. package/components/fullscreen/index.d.ts +13 -5
  12. package/components/highlight/index.d.ts +28 -5
  13. package/components/image-viewer/index.d.ts +78 -5
  14. package/components/json-editor/index.d.ts +27 -5
  15. package/components/knob-input/index.d.ts +98 -5
  16. package/components/masonry/index.d.ts +16 -5
  17. package/components/material-color-picker/index.d.ts +46 -5
  18. package/components/material-datetimepicker/index.d.ts +752 -3
  19. package/components/navigation/index.d.ts +314 -5
  20. package/components/opt-input/index.d.ts +87 -5
  21. package/components/org-chart/index.d.ts +38 -5
  22. package/components/pagination/index.d.ts +119 -5
  23. package/components/password-strength/index.d.ts +92 -5
  24. package/components/popover/index.d.ts +289 -3
  25. package/components/progress-bar/index.d.ts +19 -5
  26. package/components/rating/index.d.ts +61 -5
  27. package/components/select-search/index.d.ts +108 -5
  28. package/components/select-table/index.d.ts +120 -5
  29. package/components/select-tree/index.d.ts +120 -5
  30. package/components/speed-dial/index.d.ts +66 -5
  31. package/components/timeline/index.d.ts +56 -5
  32. package/components/toast/index.d.ts +84 -5
  33. package/components/transfer-picker/index.d.ts +188 -3
  34. package/components/treetable/index.d.ts +43 -5
  35. package/components/upload/index.d.ts +111 -5
  36. package/components/x6-angular-shape/index.d.ts +43 -5
  37. package/directives/animate-on-scroll/index.d.ts +30 -5
  38. package/directives/arrow-cursor/index.d.ts +32 -5
  39. package/directives/autofocus/index.d.ts +11 -5
  40. package/directives/data-exporter/index.d.ts +41 -5
  41. package/directives/debounce/index.d.ts +32 -5
  42. package/directives/digit-only/index.d.ts +54 -5
  43. package/directives/equal-validator/index.d.ts +14 -5
  44. package/fesm2022/cmat-components-adapter.mjs +22 -39
  45. package/fesm2022/cmat-components-adapter.mjs.map +1 -1
  46. package/fesm2022/cmat-components-breadcrumb.mjs +19 -21
  47. package/fesm2022/cmat-components-breadcrumb.mjs.map +1 -1
  48. package/fesm2022/cmat-components-card.mjs +3 -3
  49. package/fesm2022/cmat-components-carousel.mjs +116 -133
  50. package/fesm2022/cmat-components-carousel.mjs.map +1 -1
  51. package/fesm2022/cmat-components-cascade.mjs +61 -73
  52. package/fesm2022/cmat-components-cascade.mjs.map +1 -1
  53. package/fesm2022/cmat-components-chip-input.mjs +14 -18
  54. package/fesm2022/cmat-components-chip-input.mjs.map +1 -1
  55. package/fesm2022/cmat-components-custom-formly.mjs +176 -178
  56. package/fesm2022/cmat-components-custom-formly.mjs.map +1 -1
  57. package/fesm2022/cmat-components-date-range.mjs +18 -18
  58. package/fesm2022/cmat-components-date-range.mjs.map +1 -1
  59. package/fesm2022/cmat-components-drawer.mjs +17 -19
  60. package/fesm2022/cmat-components-drawer.mjs.map +1 -1
  61. package/fesm2022/cmat-components-fullscreen.mjs +8 -11
  62. package/fesm2022/cmat-components-fullscreen.mjs.map +1 -1
  63. package/fesm2022/cmat-components-highlight.mjs +14 -14
  64. package/fesm2022/cmat-components-highlight.mjs.map +1 -1
  65. package/fesm2022/cmat-components-image-viewer.mjs +10 -13
  66. package/fesm2022/cmat-components-image-viewer.mjs.map +1 -1
  67. package/fesm2022/cmat-components-json-editor.mjs +7 -7
  68. package/fesm2022/cmat-components-json-editor.mjs.map +1 -1
  69. package/fesm2022/cmat-components-knob-input.mjs +13 -20
  70. package/fesm2022/cmat-components-knob-input.mjs.map +1 -1
  71. package/fesm2022/cmat-components-masonry.mjs +3 -3
  72. package/fesm2022/cmat-components-material-color-picker.mjs +8 -7
  73. package/fesm2022/cmat-components-material-color-picker.mjs.map +1 -1
  74. package/fesm2022/cmat-components-material-datetimepicker.mjs +168 -220
  75. package/fesm2022/cmat-components-material-datetimepicker.mjs.map +1 -1
  76. package/fesm2022/cmat-components-navigation.mjs +115 -119
  77. package/fesm2022/cmat-components-navigation.mjs.map +1 -1
  78. package/fesm2022/cmat-components-opt-input.mjs +15 -22
  79. package/fesm2022/cmat-components-opt-input.mjs.map +1 -1
  80. package/fesm2022/cmat-components-org-chart.mjs +9 -9
  81. package/fesm2022/cmat-components-org-chart.mjs.map +1 -1
  82. package/fesm2022/cmat-components-pagination.mjs +34 -40
  83. package/fesm2022/cmat-components-pagination.mjs.map +1 -1
  84. package/fesm2022/cmat-components-password-strength.mjs +15 -15
  85. package/fesm2022/cmat-components-password-strength.mjs.map +1 -1
  86. package/fesm2022/cmat-components-popover.mjs +27 -32
  87. package/fesm2022/cmat-components-popover.mjs.map +1 -1
  88. package/fesm2022/cmat-components-progress-bar.mjs +10 -10
  89. package/fesm2022/cmat-components-progress-bar.mjs.map +1 -1
  90. package/fesm2022/cmat-components-rating.mjs +10 -14
  91. package/fesm2022/cmat-components-rating.mjs.map +1 -1
  92. package/fesm2022/cmat-components-select-search.mjs +30 -53
  93. package/fesm2022/cmat-components-select-search.mjs.map +1 -1
  94. package/fesm2022/cmat-components-select-table.mjs +28 -33
  95. package/fesm2022/cmat-components-select-table.mjs.map +1 -1
  96. package/fesm2022/cmat-components-select-tree.mjs +55 -61
  97. package/fesm2022/cmat-components-select-tree.mjs.map +1 -1
  98. package/fesm2022/cmat-components-speed-dial.mjs +16 -19
  99. package/fesm2022/cmat-components-speed-dial.mjs.map +1 -1
  100. package/fesm2022/cmat-components-timeline.mjs +18 -20
  101. package/fesm2022/cmat-components-timeline.mjs.map +1 -1
  102. package/fesm2022/cmat-components-toast.mjs +16 -16
  103. package/fesm2022/cmat-components-toast.mjs.map +1 -1
  104. package/fesm2022/cmat-components-transfer-picker.mjs +49 -49
  105. package/fesm2022/cmat-components-transfer-picker.mjs.map +1 -1
  106. package/fesm2022/cmat-components-treetable.mjs +11 -12
  107. package/fesm2022/cmat-components-treetable.mjs.map +1 -1
  108. package/fesm2022/cmat-components-upload.mjs +33 -34
  109. package/fesm2022/cmat-components-upload.mjs.map +1 -1
  110. package/fesm2022/cmat-directives-animate-on-scroll.mjs +13 -14
  111. package/fesm2022/cmat-directives-animate-on-scroll.mjs.map +1 -1
  112. package/fesm2022/cmat-directives-arrow-cursor.mjs +11 -15
  113. package/fesm2022/cmat-directives-arrow-cursor.mjs.map +1 -1
  114. package/fesm2022/cmat-directives-autofocus.mjs +8 -9
  115. package/fesm2022/cmat-directives-autofocus.mjs.map +1 -1
  116. package/fesm2022/cmat-directives-data-exporter.mjs +29 -31
  117. package/fesm2022/cmat-directives-data-exporter.mjs.map +1 -1
  118. package/fesm2022/cmat-directives-debounce.mjs +11 -13
  119. package/fesm2022/cmat-directives-debounce.mjs.map +1 -1
  120. package/fesm2022/cmat-directives-digit-only.mjs +17 -17
  121. package/fesm2022/cmat-directives-digit-only.mjs.map +1 -1
  122. package/fesm2022/cmat-directives-equal-validator.mjs +9 -16
  123. package/fesm2022/cmat-directives-equal-validator.mjs.map +1 -1
  124. package/fesm2022/cmat-lib-mock-api.mjs +11 -14
  125. package/fesm2022/cmat-lib-mock-api.mjs.map +1 -1
  126. package/fesm2022/cmat-pipes-bytes.mjs +4 -5
  127. package/fesm2022/cmat-pipes-bytes.mjs.map +1 -1
  128. package/fesm2022/cmat-pipes-date-format.mjs +4 -5
  129. package/fesm2022/cmat-pipes-date-format.mjs.map +1 -1
  130. package/fesm2022/cmat-pipes-find-by-key.mjs +4 -5
  131. package/fesm2022/cmat-pipes-find-by-key.mjs.map +1 -1
  132. package/fesm2022/cmat-pipes-group-by.mjs +4 -5
  133. package/fesm2022/cmat-pipes-group-by.mjs.map +1 -1
  134. package/fesm2022/cmat-pipes-keys.mjs +4 -5
  135. package/fesm2022/cmat-pipes-keys.mjs.map +1 -1
  136. package/fesm2022/cmat-pipes-secure.mjs +13 -14
  137. package/fesm2022/cmat-pipes-secure.mjs.map +1 -1
  138. package/fesm2022/cmat-pipes-uppercase.mjs +4 -5
  139. package/fesm2022/cmat-pipes-uppercase.mjs.map +1 -1
  140. package/fesm2022/cmat-services-alert.mjs +7 -16
  141. package/fesm2022/cmat-services-alert.mjs.map +1 -1
  142. package/fesm2022/cmat-services-config.mjs +10 -12
  143. package/fesm2022/cmat-services-config.mjs.map +1 -1
  144. package/fesm2022/cmat-services-confirmation.mjs +17 -20
  145. package/fesm2022/cmat-services-confirmation.mjs.map +1 -1
  146. package/fesm2022/cmat-services-data.mjs +10 -11
  147. package/fesm2022/cmat-services-data.mjs.map +1 -1
  148. package/fesm2022/cmat-services-export-as.mjs +3 -3
  149. package/fesm2022/cmat-services-loading.mjs +14 -14
  150. package/fesm2022/cmat-services-loading.mjs.map +1 -1
  151. package/fesm2022/cmat-services-local-storage.mjs +3 -3
  152. package/fesm2022/cmat-services-media-watcher.mjs +10 -10
  153. package/fesm2022/cmat-services-media-watcher.mjs.map +1 -1
  154. package/fesm2022/cmat-services-platform.mjs +8 -8
  155. package/fesm2022/cmat-services-platform.mjs.map +1 -1
  156. package/fesm2022/cmat-services-splash-screen.mjs +9 -14
  157. package/fesm2022/cmat-services-splash-screen.mjs.map +1 -1
  158. package/fesm2022/cmat-services-title.mjs +10 -11
  159. package/fesm2022/cmat-services-title.mjs.map +1 -1
  160. package/fesm2022/cmat-services-translation.mjs +8 -8
  161. package/fesm2022/cmat-services-translation.mjs.map +1 -1
  162. package/fesm2022/cmat-services-utils.mjs +5 -5
  163. package/fesm2022/cmat-services-utils.mjs.map +1 -1
  164. package/index.d.ts +2 -5
  165. package/lib/mock-api/index.d.ts +60 -5
  166. package/package.json +71 -71
  167. package/pipes/bytes/index.d.ts +10 -5
  168. package/pipes/date-format/index.d.ts +10 -5
  169. package/pipes/find-by-key/index.d.ts +10 -5
  170. package/pipes/group-by/index.d.ts +10 -5
  171. package/pipes/keys/index.d.ts +10 -5
  172. package/pipes/secure/index.d.ts +19 -5
  173. package/pipes/uppercase/index.d.ts +10 -5
  174. package/services/alert/index.d.ts +69 -5
  175. package/services/config/index.d.ts +30 -5
  176. package/services/confirmation/index.d.ts +42 -5
  177. package/services/data/index.d.ts +21 -5
  178. package/services/export-as/index.d.ts +55 -5
  179. package/services/loading/index.d.ts +35 -5
  180. package/services/local-storage/index.d.ts +11 -5
  181. package/services/media-watcher/index.d.ts +22 -5
  182. package/services/platform/index.d.ts +11 -5
  183. package/services/splash-screen/index.d.ts +16 -5
  184. package/services/title/index.d.ts +14 -5
  185. package/services/translation/index.d.ts +22 -5
  186. package/services/utils/index.d.ts +63 -5
  187. package/styles/themes.scss +2 -1
  188. package/validators/index.d.ts +8 -5
  189. package/version/index.d.ts +11 -5
  190. package/animations/defaults.d.ts +0 -11
  191. package/animations/dropdown.d.ts +0 -2
  192. package/animations/expand-collapse.d.ts +0 -2
  193. package/animations/fade.d.ts +0 -11
  194. package/animations/public-api.d.ts +0 -1
  195. package/animations/shake.d.ts +0 -2
  196. package/animations/slide.d.ts +0 -9
  197. package/animations/transform.d.ts +0 -2
  198. package/animations/zoom.d.ts +0 -3
  199. package/components/adapter/datetime-adapter.d.ts +0 -45
  200. package/components/adapter/datetime-formats.d.ts +0 -22
  201. package/components/adapter/dayjs-date-adapter.d.ts +0 -63
  202. package/components/adapter/dayjs-date-formats.d.ts +0 -2
  203. package/components/adapter/dayjs-datetime-adapter.d.ts +0 -22
  204. package/components/adapter/dayjs-datetime-formats.d.ts +0 -2
  205. package/components/adapter/native-datetime-adapter.d.ts +0 -31
  206. package/components/adapter/native-datetime-formats.d.ts +0 -2
  207. package/components/adapter/public-api.d.ts +0 -8
  208. package/components/breadcrumb/breadcrumb-item.directive.d.ts +0 -10
  209. package/components/breadcrumb/breadcrumb.component.d.ts +0 -55
  210. package/components/breadcrumb/breadcrumb.service.d.ts +0 -126
  211. package/components/breadcrumb/public-api.d.ts +0 -5
  212. package/components/breadcrumb/types/breadcrumb.config.d.ts +0 -33
  213. package/components/breadcrumb/types/breadcrumb.d.ts +0 -23
  214. package/components/card/card.component.d.ts +0 -15
  215. package/components/card/card.types.d.ts +0 -1
  216. package/components/card/public-api.d.ts +0 -2
  217. package/components/carousel/carousel.component.d.ts +0 -136
  218. package/components/carousel/carousel.interface.d.ts +0 -38
  219. package/components/carousel/public-api.d.ts +0 -2
  220. package/components/cascade/cascade-bottom-sheet/cascade-bottom-sheet.component.d.ts +0 -13
  221. package/components/cascade/cascade-list/cascade-list.component.d.ts +0 -79
  222. package/components/cascade/cascade-menu/cascade-menu.component.d.ts +0 -8
  223. package/components/cascade/options.interface.d.ts +0 -8
  224. package/components/cascade/public-api.d.ts +0 -3
  225. package/components/chip-input/chip-input.component.d.ts +0 -62
  226. package/components/chip-input/public-api.d.ts +0 -1
  227. package/components/custom-formly/extension/addons.extension.d.ts +0 -2
  228. package/components/custom-formly/public-api.d.ts +0 -30
  229. package/components/custom-formly/types/button/button.component.d.ts +0 -34
  230. package/components/custom-formly/types/cascade/cascade.component.d.ts +0 -39
  231. package/components/custom-formly/types/checklist/checklist.component.d.ts +0 -42
  232. package/components/custom-formly/types/chips/chips.component.d.ts +0 -28
  233. package/components/custom-formly/types/color-picker/color-picker.component.d.ts +0 -7
  234. package/components/custom-formly/types/date-range/date-range.component.d.ts +0 -21
  235. package/components/custom-formly/types/datepicker/datepicker.component.d.ts +0 -42
  236. package/components/custom-formly/types/knob/knob.component.d.ts +0 -36
  237. package/components/custom-formly/types/multicheckbox/multicheckbox.component.d.ts +0 -44
  238. package/components/custom-formly/types/number/number.component.d.ts +0 -21
  239. package/components/custom-formly/types/quill/quill.component.d.ts +0 -43
  240. package/components/custom-formly/types/radio/radio.component.d.ts +0 -44
  241. package/components/custom-formly/types/rating/rating.component.d.ts +0 -25
  242. package/components/custom-formly/types/repeat/repeat.component.d.ts +0 -16
  243. package/components/custom-formly/types/select/select.component.d.ts +0 -54
  244. package/components/custom-formly/types/select-table/select-table.component.d.ts +0 -40
  245. package/components/custom-formly/types/select-tree/select-tree.component.d.ts +0 -43
  246. package/components/custom-formly/types/stepper/horizontal/stepper.component.d.ts +0 -8
  247. package/components/custom-formly/types/stepper/stepper.type.d.ts +0 -6
  248. package/components/custom-formly/types/stepper/vertical/stepper.component.d.ts +0 -8
  249. package/components/custom-formly/types/table/table.component.d.ts +0 -43
  250. package/components/custom-formly/types/tabs/tab.component.d.ts +0 -7
  251. package/components/custom-formly/types/tags/tags.component.d.ts +0 -41
  252. package/components/custom-formly/types/textarea/textarea.component.d.ts +0 -13
  253. package/components/custom-formly/types/upload/upload.component.d.ts +0 -32
  254. package/components/custom-formly/wrappers/addons/addons.component.d.ts +0 -10
  255. package/components/custom-formly/wrappers/card/card.component.d.ts +0 -6
  256. package/components/custom-formly/wrappers/expansion/expansion.component.d.ts +0 -6
  257. package/components/custom-formly/wrappers/form-field/form-field.component.d.ts +0 -25
  258. package/components/custom-formly/wrappers/panel/panel.component.d.ts +0 -6
  259. package/components/date-range/date-range.component.d.ts +0 -137
  260. package/components/date-range/public-api.d.ts +0 -1
  261. package/components/drawer/drawer.component.d.ts +0 -75
  262. package/components/drawer/drawer.service.d.ts +0 -26
  263. package/components/drawer/drawer.types.d.ts +0 -2
  264. package/components/drawer/public-api.d.ts +0 -3
  265. package/components/fullscreen/fullscreen.component.d.ts +0 -11
  266. package/components/fullscreen/public-api.d.ts +0 -1
  267. package/components/highlight/highlight.component.d.ts +0 -21
  268. package/components/highlight/highlight.service.d.ts +0 -7
  269. package/components/highlight/public-api.d.ts +0 -2
  270. package/components/image-viewer/image-viewer.component.d.ts +0 -76
  271. package/components/image-viewer/public-api.d.ts +0 -1
  272. package/components/json-editor/json-editor.component.d.ts +0 -25
  273. package/components/json-editor/public-api.d.ts +0 -1
  274. package/components/knob-input/knob-input.component.d.ts +0 -95
  275. package/components/knob-input/public-api.d.ts +0 -1
  276. package/components/masonry/masonry.component.d.ts +0 -13
  277. package/components/masonry/public-api.d.ts +0 -1
  278. package/components/material-color-picker/base-color.d.ts +0 -2
  279. package/components/material-color-picker/material-color-picker.component.d.ts +0 -38
  280. package/components/material-color-picker/public-api.d.ts +0 -2
  281. package/components/material-color-picker/selected-color.d.ts +0 -5
  282. package/components/material-datetimepicker/calendar-body.d.ts +0 -42
  283. package/components/material-datetimepicker/calendar.d.ts +0 -145
  284. package/components/material-datetimepicker/clock.d.ts +0 -73
  285. package/components/material-datetimepicker/datetimepicker-animations.d.ts +0 -4
  286. package/components/material-datetimepicker/datetimepicker-errors.d.ts +0 -1
  287. package/components/material-datetimepicker/datetimepicker-filtertype.d.ts +0 -5
  288. package/components/material-datetimepicker/datetimepicker-input.d.ts +0 -106
  289. package/components/material-datetimepicker/datetimepicker-intl.d.ts +0 -51
  290. package/components/material-datetimepicker/datetimepicker-toggle.d.ts +0 -40
  291. package/components/material-datetimepicker/datetimepicker-types.d.ts +0 -13
  292. package/components/material-datetimepicker/datetimepicker.d.ts +0 -190
  293. package/components/material-datetimepicker/month-view.d.ts +0 -62
  294. package/components/material-datetimepicker/multi-year-view.d.ts +0 -74
  295. package/components/material-datetimepicker/public-api.d.ts +0 -10
  296. package/components/material-datetimepicker/time.d.ts +0 -129
  297. package/components/material-datetimepicker/year-view.d.ts +0 -56
  298. package/components/navigation/horizontal/components/basic/basic.component.d.ts +0 -27
  299. package/components/navigation/horizontal/components/branch/branch.component.d.ts +0 -39
  300. package/components/navigation/horizontal/components/divider/divider.component.d.ts +0 -23
  301. package/components/navigation/horizontal/components/spacer/spacer.component.d.ts +0 -23
  302. package/components/navigation/horizontal/horizontal.component.d.ts +0 -43
  303. package/components/navigation/navigation.service.d.ts +0 -71
  304. package/components/navigation/navigation.types.d.ts +0 -34
  305. package/components/navigation/public-api.d.ts +0 -4
  306. package/components/navigation/vertical/components/aside/aside.component.d.ts +0 -63
  307. package/components/navigation/vertical/components/basic/basic.component.d.ts +0 -24
  308. package/components/navigation/vertical/components/collapsable/collapsable.component.d.ts +0 -74
  309. package/components/navigation/vertical/components/divider/divider.component.d.ts +0 -26
  310. package/components/navigation/vertical/components/group/group.component.d.ts +0 -36
  311. package/components/navigation/vertical/components/spacer/spacer.component.d.ts +0 -26
  312. package/components/navigation/vertical/vertical.component.d.ts +0 -176
  313. package/components/opt-input/models/config.d.ts +0 -14
  314. package/components/opt-input/otp-input.component.d.ts +0 -70
  315. package/components/opt-input/public-api.d.ts +0 -1
  316. package/components/opt-input/utils/keyboard-util.d.ts +0 -9
  317. package/components/opt-input/utils/object-util.d.ts +0 -3
  318. package/components/org-chart/designer/chart-designer.component.d.ts +0 -17
  319. package/components/org-chart/node/chart-node.component.d.ts +0 -17
  320. package/components/org-chart/node/node.type.d.ts +0 -22
  321. package/components/org-chart/org-chart.component.d.ts +0 -12
  322. package/components/org-chart/public-api.d.ts +0 -2
  323. package/components/pagination/pagination.component.d.ts +0 -23
  324. package/components/pagination/pagination.directive.d.ts +0 -40
  325. package/components/pagination/pagination.instance.d.ts +0 -11
  326. package/components/pagination/pagination.pipe.d.ts +0 -29
  327. package/components/pagination/pagination.service.d.ts +0 -20
  328. package/components/pagination/public-api.d.ts +0 -5
  329. package/components/password-strength/animations/index.d.ts +0 -4
  330. package/components/password-strength/enum.d.ts +0 -13
  331. package/components/password-strength/mat-pass-toggle-visibility/mat-pass-toggle-visibility.component.d.ts +0 -11
  332. package/components/password-strength/mat-password-strength/mat-password-strength.component.d.ts +0 -52
  333. package/components/password-strength/mat-password-strength-info/mat-password-strength-info.component.d.ts +0 -16
  334. package/components/password-strength/mat-password-strength-validator.d.ts +0 -6
  335. package/components/password-strength/public-api.d.ts +0 -3
  336. package/components/password-strength/regexp.class.d.ts +0 -6
  337. package/components/popover/popover-trigger.d.ts +0 -121
  338. package/components/popover/popover.component.d.ts +0 -136
  339. package/components/popover/popover.errors.d.ts +0 -14
  340. package/components/popover/popover.interfaces.d.ts +0 -43
  341. package/components/popover/popover.target.d.ts +0 -8
  342. package/components/popover/popover.type.d.ts +0 -5
  343. package/components/popover/public-api.d.ts +0 -4
  344. package/components/progress-bar/progress-bar.component.d.ts +0 -18
  345. package/components/progress-bar/public-api.d.ts +0 -1
  346. package/components/rating/public-api.d.ts +0 -1
  347. package/components/rating/rating.component.d.ts +0 -58
  348. package/components/select-search/default-options.d.ts +0 -8
  349. package/components/select-search/public-api.d.ts +0 -2
  350. package/components/select-search/select-no-entries-found.directive.d.ts +0 -5
  351. package/components/select-search/select-search-clear.directive.d.ts +0 -5
  352. package/components/select-search/select-search.component.d.ts +0 -91
  353. package/components/select-table/public-api.d.ts +0 -2
  354. package/components/select-table/select-table.component.d.ts +0 -96
  355. package/components/select-table/select-table.type.d.ts +0 -20
  356. package/components/select-tree/public-api.d.ts +0 -3
  357. package/components/select-tree/select-tree.component.d.ts +0 -105
  358. package/components/select-tree/select-tree.flatnode.d.ts +0 -6
  359. package/components/select-tree/select-tree.node.d.ts +0 -5
  360. package/components/speed-dial/public-api.d.ts +0 -2
  361. package/components/speed-dial/speed-dial.component.d.ts +0 -63
  362. package/components/timeline/public-api.d.ts +0 -2
  363. package/components/timeline/timeline-item/timeline-item.component.d.ts +0 -25
  364. package/components/timeline/timeline.component.d.ts +0 -30
  365. package/components/toast/models/global-config.model.d.ts +0 -12
  366. package/components/toast/models/toast.model.d.ts +0 -6
  367. package/components/toast/models/type.model.d.ts +0 -12
  368. package/components/toast/public-api.d.ts +0 -6
  369. package/components/toast/toast-modal.component.d.ts +0 -18
  370. package/components/toast/toast.component.d.ts +0 -17
  371. package/components/toast/toast.service.d.ts +0 -26
  372. package/components/transfer-picker/filter/filter.component.d.ts +0 -23
  373. package/components/transfer-picker/interface.d.ts +0 -41
  374. package/components/transfer-picker/public-api.d.ts +0 -7
  375. package/components/transfer-picker/search/search.component.d.ts +0 -14
  376. package/components/transfer-picker/transfer-picker-source/transfer-picker-source.component.d.ts +0 -51
  377. package/components/transfer-picker/transfer-picker-target/transfer-picker-target.component.d.ts +0 -11
  378. package/components/transfer-picker/transfer-picker.component.d.ts +0 -28
  379. package/components/transfer-picker/transfer-picker.service.d.ts +0 -32
  380. package/components/treetable/public-api.d.ts +0 -2
  381. package/components/treetable/treetable.component.d.ts +0 -32
  382. package/components/treetable/treetable.interface.d.ts +0 -9
  383. package/components/upload/files.type.d.ts +0 -22
  384. package/components/upload/files.util.service.d.ts +0 -20
  385. package/components/upload/public-api.d.ts +0 -4
  386. package/components/upload/upload-queue/upload-queue.component.d.ts +0 -40
  387. package/components/upload/upload.component.d.ts +0 -32
  388. package/components/x6-angular-shape/node.d.ts +0 -11
  389. package/components/x6-angular-shape/public-api.d.ts +0 -3
  390. package/components/x6-angular-shape/registry.d.ts +0 -13
  391. package/components/x6-angular-shape/view.d.ts +0 -16
  392. package/directives/animate-on-scroll/animate-on-scroll.directive.d.ts +0 -29
  393. package/directives/animate-on-scroll/public-api.d.ts +0 -1
  394. package/directives/animate-on-scroll/scroll.service.d.ts +0 -15
  395. package/directives/arrow-cursor/arrow-cursor.directive.d.ts +0 -31
  396. package/directives/arrow-cursor/public-api.d.ts +0 -1
  397. package/directives/autofocus/autofocus.directive.d.ts +0 -8
  398. package/directives/autofocus/public-api.d.ts +0 -1
  399. package/directives/data-exporter/constants.d.ts +0 -26
  400. package/directives/data-exporter/data-exporter.directive.d.ts +0 -18
  401. package/directives/data-exporter/mime.d.ts +0 -5
  402. package/directives/data-exporter/options.d.ts +0 -21
  403. package/directives/data-exporter/public-api.d.ts +0 -2
  404. package/directives/data-exporter/services/exporters/csv-exporter.service.d.ts +0 -12
  405. package/directives/data-exporter/services/exporters/exporter.d.ts +0 -4
  406. package/directives/data-exporter/services/exporters/file-exporter.d.ts +0 -8
  407. package/directives/data-exporter/services/exporters/json-exporter.service.d.ts +0 -11
  408. package/directives/data-exporter/services/exporters/txt-exporter.service.d.ts +0 -12
  409. package/directives/data-exporter/services/exporters/worksheet-exporter.d.ts +0 -10
  410. package/directives/data-exporter/services/exporters/xls-exporter.service.d.ts +0 -14
  411. package/directives/data-exporter/services/exporters/xlsx-exporter.service.d.ts +0 -9
  412. package/directives/data-exporter/services/file-util.d.ts +0 -8
  413. package/directives/data-exporter/services/service-locator.service.d.ts +0 -11
  414. package/directives/debounce/abstract-debounce.directive.d.ts +0 -15
  415. package/directives/debounce/debounce-click.directive.d.ts +0 -8
  416. package/directives/debounce/debounce-keyup.directive.d.ts +0 -8
  417. package/directives/debounce/public-api.d.ts +0 -2
  418. package/directives/digit-only/digit-only.directive.d.ts +0 -36
  419. package/directives/digit-only/mask.directive.d.ts +0 -16
  420. package/directives/digit-only/public-api.d.ts +0 -2
  421. package/directives/equal-validator/equal-validator.directive.d.ts +0 -12
  422. package/directives/equal-validator/public-api.d.ts +0 -1
  423. package/lib/mock-api/mock-api.constants.d.ts +0 -2
  424. package/lib/mock-api/mock-api.interceptor.d.ts +0 -12
  425. package/lib/mock-api/mock-api.request-handler.d.ts +0 -16
  426. package/lib/mock-api/mock-api.service.d.ts +0 -20
  427. package/lib/mock-api/mock-api.types.d.ts +0 -7
  428. package/lib/mock-api/mock-api.utils.d.ts +0 -3
  429. package/lib/mock-api/public-api.d.ts +0 -5
  430. package/pipes/bytes/bytes.pipe.d.ts +0 -7
  431. package/pipes/bytes/public-api.d.ts +0 -1
  432. package/pipes/date-format/date-format.pipe.d.ts +0 -7
  433. package/pipes/date-format/public-api.d.ts +0 -1
  434. package/pipes/find-by-key/find-by-key.pipe.d.ts +0 -7
  435. package/pipes/find-by-key/public-api.d.ts +0 -1
  436. package/pipes/group-by/group-by.pipe.d.ts +0 -7
  437. package/pipes/group-by/public-api.d.ts +0 -1
  438. package/pipes/keys/keys.pipe.d.ts +0 -7
  439. package/pipes/keys/public-api.d.ts +0 -1
  440. package/pipes/secure/public-api.d.ts +0 -1
  441. package/pipes/secure/secure-pipe.d.ts +0 -18
  442. package/pipes/uppercase/public-api.d.ts +0 -1
  443. package/pipes/uppercase/uppercase.pipe.d.ts +0 -7
  444. package/public-api.d.ts +0 -1
  445. package/services/alert/alert.dialog.d.ts +0 -11
  446. package/services/alert/alert.message.d.ts +0 -8
  447. package/services/alert/alert.service.d.ts +0 -37
  448. package/services/alert/enum.d.ts +0 -12
  449. package/services/alert/public-api.d.ts +0 -4
  450. package/services/config/config.constants.d.ts +0 -6
  451. package/services/config/config.service.d.ts +0 -11
  452. package/services/config/public-api.d.ts +0 -3
  453. package/services/config/urlStateConfig.service.d.ts +0 -10
  454. package/services/confirmation/confirmation.service.d.ts +0 -12
  455. package/services/confirmation/confirmation.types.d.ts +0 -21
  456. package/services/confirmation/dialog/dialog.component.d.ts +0 -10
  457. package/services/confirmation/public-api.d.ts +0 -2
  458. package/services/data/data.service.d.ts +0 -20
  459. package/services/data/public-api.d.ts +0 -1
  460. package/services/export-as/export-as-config.model.d.ts +0 -8
  461. package/services/export-as/export-as.service.d.ts +0 -43
  462. package/services/export-as/public-api.d.ts +0 -2
  463. package/services/loading/loading.interceptor.d.ts +0 -12
  464. package/services/loading/loading.service.d.ts +0 -24
  465. package/services/loading/public-api.d.ts +0 -2
  466. package/services/local-storage/local-storage.service.d.ts +0 -8
  467. package/services/local-storage/public-api.d.ts +0 -1
  468. package/services/media-watcher/media-watcher.service.d.ts +0 -20
  469. package/services/media-watcher/public-api.d.ts +0 -1
  470. package/services/platform/platform.service.d.ts +0 -9
  471. package/services/platform/public-api.d.ts +0 -1
  472. package/services/splash-screen/public-api.d.ts +0 -1
  473. package/services/splash-screen/splash-screen.service.d.ts +0 -14
  474. package/services/title/public-api.d.ts +0 -1
  475. package/services/title/title.service.d.ts +0 -13
  476. package/services/translation/public-api.d.ts +0 -1
  477. package/services/translation/translation.service.d.ts +0 -20
  478. package/services/utils/public-api.d.ts +0 -1
  479. package/services/utils/utils.service.d.ts +0 -60
  480. package/validators/public-api.d.ts +0 -1
  481. package/validators/validators.d.ts +0 -5
  482. package/version/public-api.d.ts +0 -1
  483. package/version/version.d.ts +0 -9
@@ -1,19 +1,19 @@
1
- import * as i1 from '@angular/common';
2
- import { isPlatformBrowser, DOCUMENT, CommonModule } from '@angular/common';
1
+ import * as i3 from '@angular/common';
2
+ import { CommonModule } from '@angular/common';
3
3
  import * as i0 from '@angular/core';
4
- import { Component, Input, Directive, EventEmitter, PLATFORM_ID, numberAttribute, booleanAttribute, ContentChildren, ContentChild, ViewChild, Output, Inject, ViewEncapsulation, ChangeDetectionStrategy } from '@angular/core';
5
- import * as i3 from '@angular/material/button';
4
+ import { Component, inject, TemplateRef, Input, Directive, ElementRef, NgZone, ChangeDetectorRef, Renderer2, DOCUMENT, EventEmitter, numberAttribute, booleanAttribute, ContentChildren, ContentChild, ViewChild, Output, ViewEncapsulation, ChangeDetectionStrategy } from '@angular/core';
5
+ import * as i2 from '@angular/material/button';
6
6
  import { MatButtonModule } from '@angular/material/button';
7
- import * as i2 from '@angular/material/icon';
7
+ import * as i1 from '@angular/material/icon';
8
8
  import { MatIconModule } from '@angular/material/icon';
9
9
  import { CmatArrowCursorDirective } from 'cmat/directives/arrow-cursor';
10
10
 
11
11
  /* eslint-disable @typescript-eslint/member-ordering */
12
12
  class CmatCarouselHeaderComponent {
13
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: CmatCarouselHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
14
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.9", type: CmatCarouselHeaderComponent, isStandalone: true, selector: "cmat-carousel-header", ngImport: i0, template: '<ng-content></ng-content>', isInline: true }); }
13
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: CmatCarouselHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
14
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.2", type: CmatCarouselHeaderComponent, isStandalone: true, selector: "cmat-carousel-header", ngImport: i0, template: '<ng-content></ng-content>', isInline: true }); }
15
15
  }
16
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: CmatCarouselHeaderComponent, decorators: [{
16
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: CmatCarouselHeaderComponent, decorators: [{
17
17
  type: Component,
18
18
  args: [{
19
19
  selector: 'cmat-carousel-header',
@@ -21,10 +21,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImpor
21
21
  }]
22
22
  }] });
23
23
  class CmatCarouselFooterComponent {
24
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: CmatCarouselFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
25
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.9", type: CmatCarouselFooterComponent, isStandalone: true, selector: "cmat-carousel-footer", ngImport: i0, template: '<ng-content></ng-content>', isInline: true }); }
24
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: CmatCarouselFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
25
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.2", type: CmatCarouselFooterComponent, isStandalone: true, selector: "cmat-carousel-footer", ngImport: i0, template: '<ng-content></ng-content>', isInline: true }); }
26
26
  }
27
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: CmatCarouselFooterComponent, decorators: [{
27
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: CmatCarouselFooterComponent, decorators: [{
28
28
  type: Component,
29
29
  args: [{
30
30
  selector: 'cmat-carousel-footer',
@@ -32,21 +32,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImpor
32
32
  }]
33
33
  }] });
34
34
  class CmatCarouselTemplateDirective {
35
- constructor(template) {
36
- this.template = template;
35
+ constructor() {
36
+ this.template = inject(TemplateRef);
37
37
  }
38
38
  getType() {
39
39
  return this.name;
40
40
  }
41
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: CmatCarouselTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
42
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.9", type: CmatCarouselTemplateDirective, isStandalone: true, selector: "[cmatCarouselTemplate]", inputs: { type: "type", name: ["cmatCarouselTemplate", "name"] }, ngImport: i0 }); }
41
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: CmatCarouselTemplateDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
42
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.2", type: CmatCarouselTemplateDirective, isStandalone: true, selector: "[cmatCarouselTemplate]", inputs: { type: "type", name: ["cmatCarouselTemplate", "name"] }, ngImport: i0 }); }
43
43
  }
44
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: CmatCarouselTemplateDirective, decorators: [{
44
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: CmatCarouselTemplateDirective, decorators: [{
45
45
  type: Directive,
46
46
  args: [{
47
47
  selector: '[cmatCarouselTemplate]'
48
48
  }]
49
- }], ctorParameters: () => [{ type: i0.TemplateRef }], propDecorators: { type: [{
49
+ }], propDecorators: { type: [{
50
50
  type: Input
51
51
  }], name: [{
52
52
  type: Input,
@@ -89,13 +89,12 @@ class CmatCarouselComponent {
89
89
  set data(val) {
90
90
  this._data = val;
91
91
  }
92
- constructor(el, zone, cd, renderer, _document, _platformId) {
93
- this.el = el;
94
- this.zone = zone;
95
- this.cd = cd;
96
- this.renderer = renderer;
97
- this._document = _document;
98
- this._platformId = _platformId;
92
+ constructor() {
93
+ this.el = inject(ElementRef);
94
+ this.zone = inject(NgZone);
95
+ this.cd = inject(ChangeDetectorRef);
96
+ this.renderer = inject(Renderer2);
97
+ this._document = inject(DOCUMENT);
99
98
  this.orientation = 'horizontal';
100
99
  this.navigatorsType = 'normal';
101
100
  this.verticalViewPortHeight = '300px';
@@ -127,51 +126,49 @@ class CmatCarouselComponent {
127
126
  this.window = this._document.defaultView;
128
127
  }
129
128
  ngOnChanges(simpleChange) {
130
- if (isPlatformBrowser(this._platformId)) {
131
- if (simpleChange.data) {
132
- if (this.circular && this._data) {
129
+ if (simpleChange.data) {
130
+ if (this.circular && this._data) {
131
+ this._setCloneItems();
132
+ }
133
+ }
134
+ if (this.isCreated) {
135
+ if (simpleChange.circular) {
136
+ if (this.isCircular()) {
133
137
  this._setCloneItems();
134
138
  }
135
139
  }
136
- if (this.isCreated) {
137
- if (simpleChange.numVisible) {
138
- if (this.responsiveOptions) {
139
- this.defaultNumVisible = this.numVisible;
140
- }
141
- if (this.isCircular()) {
142
- this._setCloneItems();
143
- }
144
- this._createStyle();
145
- this._calculatePosition();
146
- }
147
- if (simpleChange.numScroll) {
148
- if (this.responsiveOptions) {
149
- this.defaultNumScroll = this.numScroll;
150
- }
140
+ if (simpleChange.numVisible) {
141
+ if (this.responsiveOptions) {
142
+ this.defaultNumVisible = this.numVisible;
151
143
  }
152
- if (simpleChange.autoplayInterval) {
153
- this.allowAutoplay = !!this.autoplayInterval;
144
+ this._createStyle();
145
+ this._calculatePosition();
146
+ }
147
+ if (simpleChange.numScroll) {
148
+ if (this.responsiveOptions) {
149
+ this.defaultNumScroll = this.numScroll;
154
150
  }
155
151
  }
152
+ if (simpleChange.autoplayInterval) {
153
+ this.allowAutoplay = !!this.autoplayInterval;
154
+ }
156
155
  }
157
156
  this.cd.markForCheck();
158
157
  }
159
158
  ngAfterContentInit() {
160
159
  this.id = `cmat-carousel-${NEXT_ID++}`;
161
- if (isPlatformBrowser(this._platformId)) {
162
- this.allowAutoplay = !!this.autoplayInterval;
163
- if (this.circular) {
164
- this._setCloneItems();
165
- }
166
- if (this.responsiveOptions) {
167
- this.defaultNumScroll = this._numScroll;
168
- this.defaultNumVisible = this._numVisible;
169
- }
170
- this._createStyle();
171
- this._calculatePosition();
172
- if (this.responsiveOptions) {
173
- this._bindDocumentListeners();
174
- }
160
+ this.allowAutoplay = !!this.autoplayInterval;
161
+ if (this.circular) {
162
+ this._setCloneItems();
163
+ }
164
+ if (this.responsiveOptions) {
165
+ this.defaultNumScroll = this._numScroll;
166
+ this.defaultNumVisible = this._numVisible;
167
+ }
168
+ this._createStyle();
169
+ this._calculatePosition();
170
+ if (this.responsiveOptions) {
171
+ this._bindDocumentListeners();
175
172
  }
176
173
  this.templates?.forEach((item) => {
177
174
  switch (item.getType()) {
@@ -198,62 +195,60 @@ class CmatCarouselComponent {
198
195
  this.cd.detectChanges();
199
196
  }
200
197
  ngAfterContentChecked() {
201
- if (isPlatformBrowser(this._platformId)) {
202
- const isCircular = this.isCircular();
203
- let totalShiftedItems = this.totalShiftedItems;
204
- if (this.data && this.itemsContainer && (this.prevState.numScroll !== this._numScroll || this.prevState.numVisible !== this._numVisible || this.prevState.value.length !== this.data.length)) {
205
- if (this.autoplayInterval) {
206
- this._stopAutoplay(false);
207
- }
208
- this.remainingItems = (this.data.length - this._numVisible) % this._numScroll;
209
- let page = this._page;
210
- if (this.totalDots() !== 0 && page >= this.totalDots()) {
211
- page = this.totalDots() - 1;
212
- this._page = page;
213
- this.pageEvent.emit({
214
- page: this.page
215
- });
216
- }
217
- totalShiftedItems = page * this._numScroll * -1;
218
- if (isCircular) {
219
- totalShiftedItems -= this._numVisible;
220
- }
221
- if (page === this.totalDots() - 1 && this.remainingItems > 0) {
222
- totalShiftedItems += -1 * this.remainingItems + this._numScroll;
223
- this.isRemainingItemsAdded = true;
224
- }
225
- else {
226
- this.isRemainingItemsAdded = false;
227
- }
228
- if (totalShiftedItems !== this.totalShiftedItems) {
229
- this.totalShiftedItems = totalShiftedItems;
230
- }
231
- this._oldNumScroll = this._numScroll;
232
- this.prevState.numScroll = this._numScroll;
233
- this.prevState.numVisible = this._numVisible;
234
- this.prevState.value = [...(this._data)];
235
- if (this.totalDots() > 0 && this.itemsContainer.nativeElement) {
236
- this.itemsContainer.nativeElement.style.transform = this.isVertical() ? `translate3d(0, ${totalShiftedItems * (100 / this._numVisible)}%, 0)` : `translate3d(${totalShiftedItems * (100 / this._numVisible)}%, 0, 0)`;
237
- }
238
- this.isCreated = true;
239
- if (this.autoplayInterval && this.isAutoplay()) {
240
- this._startAutoplay();
241
- }
198
+ const isCircular = this.isCircular();
199
+ let totalShiftedItems = this.totalShiftedItems;
200
+ if (this.data && this.itemsContainer && (this.prevState.numScroll !== this._numScroll || this.prevState.numVisible !== this._numVisible || this.prevState.value.length !== this.data.length)) {
201
+ if (this.autoplayInterval) {
202
+ this._stopAutoplay(false);
203
+ }
204
+ this.remainingItems = (this.data.length - this._numVisible) % this._numScroll;
205
+ let page = this._page;
206
+ if (this.totalDots() !== 0 && page >= this.totalDots()) {
207
+ page = this.totalDots() - 1;
208
+ this._page = page;
209
+ this.pageEvent.emit({
210
+ page: this.page
211
+ });
242
212
  }
213
+ totalShiftedItems = page * this._numScroll * -1;
243
214
  if (isCircular) {
244
- if (this.page === 0) {
245
- totalShiftedItems = -1 * this._numVisible;
246
- }
247
- else if (totalShiftedItems === 0) {
248
- totalShiftedItems = -1 * this.data.length;
249
- if (this.remainingItems > 0) {
250
- this.isRemainingItemsAdded = true;
251
- }
252
- }
253
- if (totalShiftedItems !== this.totalShiftedItems) {
254
- this.totalShiftedItems = totalShiftedItems;
215
+ totalShiftedItems -= this._numVisible;
216
+ }
217
+ if (page === this.totalDots() - 1 && this.remainingItems > 0) {
218
+ totalShiftedItems += -1 * this.remainingItems + this._numScroll;
219
+ this.isRemainingItemsAdded = true;
220
+ }
221
+ else {
222
+ this.isRemainingItemsAdded = false;
223
+ }
224
+ if (totalShiftedItems !== this.totalShiftedItems) {
225
+ this.totalShiftedItems = totalShiftedItems;
226
+ }
227
+ this._oldNumScroll = this._numScroll;
228
+ this.prevState.numScroll = this._numScroll;
229
+ this.prevState.numVisible = this._numVisible;
230
+ this.prevState.value = [...(this._data)];
231
+ if (this.totalDots() > 0 && this.itemsContainer.nativeElement) {
232
+ this.itemsContainer.nativeElement.style.transform = this.isVertical() ? `translate3d(0, ${totalShiftedItems * (100 / this._numVisible)}%, 0)` : `translate3d(${totalShiftedItems * (100 / this._numVisible)}%, 0, 0)`;
233
+ }
234
+ this.isCreated = true;
235
+ if (this.autoplayInterval && this.isAutoplay()) {
236
+ this._startAutoplay();
237
+ }
238
+ }
239
+ if (isCircular) {
240
+ if (this.page === 0) {
241
+ totalShiftedItems = -1 * this._numVisible;
242
+ }
243
+ else if (totalShiftedItems === 0) {
244
+ totalShiftedItems = -1 * this.data.length;
245
+ if (this.remainingItems > 0) {
246
+ this.isRemainingItemsAdded = true;
255
247
  }
256
248
  }
249
+ if (totalShiftedItems !== this.totalShiftedItems) {
250
+ this.totalShiftedItems = totalShiftedItems;
251
+ }
257
252
  }
258
253
  }
259
254
  ngOnDestroy() {
@@ -411,20 +406,14 @@ class CmatCarouselComponent {
411
406
  }
412
407
  }
413
408
  _bindDocumentListeners() {
414
- if (isPlatformBrowser(this._platformId)) {
415
- if (!this.documentResizeListener) {
416
- this.documentResizeListener = this.renderer.listen(this.window, 'resize', () => {
417
- this._calculatePosition();
418
- });
419
- }
420
- }
409
+ this.documentResizeListener ??= this.renderer.listen(this.window, 'resize', () => {
410
+ this._calculatePosition();
411
+ });
421
412
  }
422
413
  _unbindDocumentListeners() {
423
- if (isPlatformBrowser(this._platformId)) {
424
- if (this.documentResizeListener) {
425
- this.documentResizeListener();
426
- this.documentResizeListener = null;
427
- }
414
+ if (this.documentResizeListener) {
415
+ this.documentResizeListener();
416
+ this.documentResizeListener = null;
428
417
  }
429
418
  }
430
419
  _onRightKey() {
@@ -628,19 +617,13 @@ class CmatCarouselComponent {
628
617
  this.clonedItemsForFinishing.push(...this.data.slice(0, this._numVisible));
629
618
  }
630
619
  }
631
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: CmatCarouselComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }, { token: DOCUMENT }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Component }); }
632
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.9", type: CmatCarouselComponent, isStandalone: true, selector: "cmat-carousel", inputs: { page: "page", numVisible: "numVisible", numScroll: "numScroll", responsiveOptions: "responsiveOptions", orientation: "orientation", navigatorsType: "navigatorsType", verticalViewPortHeight: "verticalViewPortHeight", arrowSelector: "arrowSelector", contentClass: "contentClass", indicatorsContentClass: "indicatorsContentClass", indicatorsContentStyle: "indicatorsContentStyle", indicatorStyleClass: "indicatorStyleClass", indicatorStyle: "indicatorStyle", data: "data", circular: ["circular", "circular", booleanAttribute], showIndicators: ["showIndicators", "showIndicators", booleanAttribute], showNavigators: ["showNavigators", "showNavigators", booleanAttribute], autoplayInterval: ["autoplayInterval", "autoplayInterval", numberAttribute], style: "style", styleClass: "styleClass" }, outputs: { pageEvent: "pageEvent" }, queries: [{ propertyName: "headerFacet", first: true, predicate: CmatCarouselHeaderComponent, descendants: true }, { propertyName: "footerFacet", first: true, predicate: CmatCarouselFooterComponent, descendants: true }, { propertyName: "templates", predicate: CmatCarouselTemplateDirective }], viewQueries: [{ propertyName: "itemsContainer", first: true, predicate: ["itemsContainer"], descendants: true }, { propertyName: "indicatorContent", first: true, predicate: ["indicatorContent"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div role=\"region\" [attr.id]=\"id\"\r\n [ngClass]=\"{ 'cmat-carousel': true, 'cmat-carousel-vertical': isVertical(), 'cmat-carousel-horizontal': !isVertical() }\"\r\n [ngStyle]=\"style\" [class]=\"styleClass\">\r\n\r\n @if(headerFacet || headerTemplate){\r\n <div class=\"cmat-carousel-header\">\r\n <ng-content select=\"cmat-carousel-header\"></ng-content>\r\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\r\n </div>\r\n }\r\n\r\n <div [class]=\"contentClass\" [ngClass]=\"'items-center cmat-carousel-content'\">\r\n <div class=\"cmat-carousel-container\" cmatArrowCursor [orientation]=\"orientation\" [selector]=\"arrowSelector\"\r\n [enabled]=\"navigatorsType==='arrow'\" [attr.aria-live]=\"allowAutoplay ? 'polite' : 'off'\"\r\n (clickEvent)=\"arrowCursorClick($event)\">\r\n @if(showNavigators&&navigatorsType==='normal'){\r\n <button type=\"button\" mat-icon-button [ngClass]=\"{ 'cmat-carousel-prev': true }\"\r\n [disabled]=\"isBackwardNavDisabled()\" (click)=\"navBackward($event)\">\r\n @if(!previousIconTemplate){\r\n @if(!isVertical()){\r\n <mat-icon [svgIcon]=\"'heroicons_solid:chevron-left'\"></mat-icon>\r\n }@else {\r\n <mat-icon [svgIcon]=\"'heroicons_solid:chevron-up'\"></mat-icon>\r\n }\r\n }\r\n @else {\r\n <span class=\"cmat-carousel-prev-icon\">\r\n <ng-template *ngTemplateOutlet=\"previousIconTemplate\"></ng-template>\r\n </span>\r\n }\r\n </button>\r\n }\r\n\r\n <div class=\"cmat-carousel-items-content\"\r\n [ngStyle]=\"{ height: isVertical() ? verticalViewPortHeight : 'auto' }\" (touchend)=\"onTouchEnd($event)\"\r\n (touchstart)=\"onTouchStart($event)\" (touchmove)=\"onTouchMove($event)\">\r\n <div #itemsContainer class=\"cmat-carousel-items-container\" (transitionend)=\"onTransitionEnd()\">\r\n @for (item of clonedItemsForStarting; track $index) {\r\n <div [ngClass]=\"{\r\n 'cmat-carousel-item cmat-carousel-item-cloned': true,\r\n 'cmat-carousel-item-active': totalShiftedItems * -1 === data.length,\r\n 'cmat-carousel-item-start': 0 === $index,\r\n 'cmat-carousel-item-end': clonedItemsForStarting?.length??0 - 1 === $index\r\n }\" [attr.aria-hidden]=\"!(totalShiftedItems * -1 === data.length)\">\r\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item }\"></ng-container>\r\n </div>\r\n }\r\n\r\n @for (item of data; track $index) {\r\n <div [ngClass]=\"{ 'cmat-carousel-item': true, 'cmat-carousel-item-active': firstIndex() <= $index && lastIndex() >= $index, 'cmat-carousel-item-start': firstIndex() === $index, 'cmat-carousel-item-end': lastIndex() === $index }\"\r\n [attr.aria-hidden]=\"!(totalShiftedItems * -1 === data.length)\">\r\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item }\"></ng-container>\r\n </div>\r\n }\r\n\r\n @for (item of clonedItemsForFinishing; track $index) {\r\n <div [ngClass]=\"{\r\n 'cmat-carousel-item cmat-carousel-item-cloned': true,\r\n 'cmat-carousel-item-active': totalShiftedItems * -1 === numVisible,\r\n 'cmat-carousel-item-start': 0 === $index,\r\n 'cmat-carousel-item-end': clonedItemsForFinishing?.length??0 - 1 === $index\r\n }\">\r\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item }\"></ng-container>\r\n </div>\r\n }\r\n\r\n </div>\r\n </div>\r\n\r\n @if(showNavigators&&navigatorsType==='normal'){\r\n <button type=\"button\" mat-icon-button [ngClass]=\"{ 'cmat-carousel-next': true}\"\r\n [disabled]=\"isForwardNavDisabled()\" (click)=\"navForward($event)\">\r\n @if(!nextIconTemplate){\r\n @if(!isVertical()){\r\n <mat-icon [svgIcon]=\"'heroicons_solid:chevron-right'\"></mat-icon>\r\n }@else {\r\n <mat-icon [svgIcon]=\"'heroicons_solid:chevron-down'\"></mat-icon>\r\n }\r\n }\r\n @else{\r\n <span class=\"cmat-carousel-prev-icon\">\r\n <ng-template *ngTemplateOutlet=\"nextIconTemplate\"></ng-template>\r\n </span>\r\n }\r\n </button>\r\n }\r\n\r\n </div>\r\n @if(showIndicators){\r\n <ul #indicatorContent role=\"presentation\" [ngClass]=\"'cmat-carousel-indicators'\"\r\n [class]=\"indicatorsContentClass\" [ngStyle]=\"indicatorsContentStyle\" (keydown)=\"onIndicatorKeydown($event)\">\r\n @for (totalDot of totalDotsArray(); track $index) {\r\n <li [ngClass]=\"{ 'cmat-carousel-indicator': true, 'cmat-carousel-indicator-active': page === $index }\"\r\n [attr.data-pc-section]=\"'indicator'\">\r\n <button type=\"button\" [ngClass]=\"'cmat-carousel-indicator-button'\" [class]=\"indicatorStyleClass\"\r\n [ngStyle]=\"indicatorStyle\" [attr.aria-current]=\"page === $index ? 'page' : undefined\"\r\n [tabindex]=\"page === $index ? 0 : -1\" (click)=\"onDotClick($event, $index)\">\r\n </button>\r\n </li>\r\n }\r\n </ul>\r\n }\r\n\r\n </div>\r\n @if(footerFacet || footerTemplate){\r\n <div class=\"cmat-carousel-footer\">\r\n <ng-content select=\"cmat-carousel-footer\"></ng-content>\r\n <ng-container *ngTemplateOutlet=\"footerTemplate\"></ng-container>\r\n </div>\r\n }\r\n</div>", styles: ["cmat-carousel{display:flex;flex-direction:column}cmat-carousel .cmat-carousel-content{display:flex;flex-direction:column;overflow:hidden}cmat-carousel .cmat-carousel-prev,cmat-carousel .cmat-carousel-next{align-self:center;flex-grow:0;flex-shrink:0;display:flex;justify-content:center;align-items:center;overflow:hidden;position:relative;margin:.25rem}cmat-carousel .cmat-carousel-container{display:flex;flex-direction:row;width:100%}cmat-carousel .cmat-carousel-items-content{overflow:hidden;width:100%}cmat-carousel .cmat-carousel-items-container{display:flex;flex-direction:row}cmat-carousel .cmat-carousel-indicators{display:flex;flex-direction:row;justify-content:center;flex-wrap:wrap;padding:1rem;gap:.5rem;margin:0;list-style:none}cmat-carousel .cmat-carousel-indicators .cmat-carousel-indicator-active{background:var(--cmat-text-default)!important;opacity:1!important}cmat-carousel .cmat-carousel-indicators .cmat-carousel-indicator{border:0 none;border-radius:6px;background:var(--cmat-text-disabled);transition:background .2s,color .2s,outline-color .2s,box-shadow .2s;opacity:.3}cmat-carousel .cmat-carousel-indicators .cmat-carousel-indicator .cmat-carousel-indicator-button{display:flex;align-items:center;justify-content:center;width:2rem;height:.5rem;outline-color:transparent;padding:0;margin:0;-webkit-user-select:none;user-select:none;cursor:pointer}cmat-carousel .cmat-carousel-vertical .cmat-carousel-container{flex-direction:column;width:auto}cmat-carousel .cmat-carousel-vertical .cmat-carousel-items-container{flex-direction:column;height:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "directive", type: CmatArrowCursorDirective, selector: "[cmatArrowCursor]", inputs: ["animationDuration", "orientation", "enabled", "selector"], outputs: ["clickEvent"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
620
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: CmatCarouselComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
621
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.2", type: CmatCarouselComponent, isStandalone: true, selector: "cmat-carousel", inputs: { page: "page", numVisible: "numVisible", numScroll: "numScroll", responsiveOptions: "responsiveOptions", orientation: "orientation", navigatorsType: "navigatorsType", verticalViewPortHeight: "verticalViewPortHeight", arrowSelector: "arrowSelector", contentClass: "contentClass", indicatorsContentClass: "indicatorsContentClass", indicatorsContentStyle: "indicatorsContentStyle", indicatorStyleClass: "indicatorStyleClass", indicatorStyle: "indicatorStyle", data: "data", circular: ["circular", "circular", booleanAttribute], showIndicators: ["showIndicators", "showIndicators", booleanAttribute], showNavigators: ["showNavigators", "showNavigators", booleanAttribute], autoplayInterval: ["autoplayInterval", "autoplayInterval", numberAttribute], style: "style", styleClass: "styleClass" }, outputs: { pageEvent: "pageEvent" }, queries: [{ propertyName: "headerFacet", first: true, predicate: CmatCarouselHeaderComponent, descendants: true }, { propertyName: "footerFacet", first: true, predicate: CmatCarouselFooterComponent, descendants: true }, { propertyName: "templates", predicate: CmatCarouselTemplateDirective }], viewQueries: [{ propertyName: "itemsContainer", first: true, predicate: ["itemsContainer"], descendants: true }, { propertyName: "indicatorContent", first: true, predicate: ["indicatorContent"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div role=\"region\" [attr.id]=\"id\"\r\n [ngClass]=\"{ 'cmat-carousel': true, 'cmat-carousel-vertical': isVertical(), 'cmat-carousel-horizontal': !isVertical() }\"\r\n [ngStyle]=\"style\" [class]=\"styleClass\">\r\n\r\n @if(headerFacet || headerTemplate){\r\n <div class=\"cmat-carousel-header\">\r\n <ng-content select=\"cmat-carousel-header\"></ng-content>\r\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\r\n </div>\r\n }\r\n\r\n <div [class]=\"contentClass\" [ngClass]=\"'items-center cmat-carousel-content'\">\r\n <div class=\"cmat-carousel-container\" cmatArrowCursor [orientation]=\"orientation\" [selector]=\"arrowSelector\"\r\n [enabled]=\"navigatorsType==='arrow'\" [attr.aria-live]=\"allowAutoplay ? 'polite' : 'off'\"\r\n (clickEvent)=\"arrowCursorClick($event)\">\r\n @if(showNavigators&&navigatorsType==='normal'){\r\n <button type=\"button\" mat-icon-button [ngClass]=\"{ 'cmat-carousel-prev': true }\"\r\n [disabled]=\"isBackwardNavDisabled()\" (click)=\"navBackward($event)\">\r\n @if(!previousIconTemplate){\r\n @if(!isVertical()){\r\n <mat-icon [svgIcon]=\"'heroicons_solid:chevron-left'\"></mat-icon>\r\n }@else {\r\n <mat-icon [svgIcon]=\"'heroicons_solid:chevron-up'\"></mat-icon>\r\n }\r\n }\r\n @else {\r\n <span class=\"cmat-carousel-prev-icon\">\r\n <ng-template *ngTemplateOutlet=\"previousIconTemplate\"></ng-template>\r\n </span>\r\n }\r\n </button>\r\n }\r\n\r\n <div class=\"cmat-carousel-items-content\"\r\n [ngStyle]=\"{ height: isVertical() ? verticalViewPortHeight : 'auto' }\" (touchend)=\"onTouchEnd($event)\"\r\n (touchstart)=\"onTouchStart($event)\" (touchmove)=\"onTouchMove($event)\">\r\n <div #itemsContainer class=\"cmat-carousel-items-container\" (transitionend)=\"onTransitionEnd()\">\r\n @for (item of clonedItemsForStarting; track $index) {\r\n <div [ngClass]=\"{\r\n 'cmat-carousel-item cmat-carousel-item-cloned': true,\r\n 'cmat-carousel-item-active': totalShiftedItems * -1 === data.length,\r\n 'cmat-carousel-item-start': 0 === $index,\r\n 'cmat-carousel-item-end': clonedItemsForStarting?.length??0 - 1 === $index\r\n }\" [attr.aria-hidden]=\"!(totalShiftedItems * -1 === data.length)\">\r\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item }\"></ng-container>\r\n </div>\r\n }\r\n\r\n @for (item of data; track $index) {\r\n <div [ngClass]=\"{ 'cmat-carousel-item': true, 'cmat-carousel-item-active': firstIndex() <= $index && lastIndex() >= $index, 'cmat-carousel-item-start': firstIndex() === $index, 'cmat-carousel-item-end': lastIndex() === $index }\"\r\n [attr.aria-hidden]=\"!(totalShiftedItems * -1 === data.length)\">\r\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item }\"></ng-container>\r\n </div>\r\n }\r\n\r\n @for (item of clonedItemsForFinishing; track $index) {\r\n <div [ngClass]=\"{\r\n 'cmat-carousel-item cmat-carousel-item-cloned': true,\r\n 'cmat-carousel-item-active': totalShiftedItems * -1 === numVisible,\r\n 'cmat-carousel-item-start': 0 === $index,\r\n 'cmat-carousel-item-end': clonedItemsForFinishing?.length??0 - 1 === $index\r\n }\">\r\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item }\"></ng-container>\r\n </div>\r\n }\r\n\r\n </div>\r\n </div>\r\n\r\n @if(showNavigators&&navigatorsType==='normal'){\r\n <button type=\"button\" mat-icon-button [ngClass]=\"{ 'cmat-carousel-next': true}\"\r\n [disabled]=\"isForwardNavDisabled()\" (click)=\"navForward($event)\">\r\n @if(!nextIconTemplate){\r\n @if(!isVertical()){\r\n <mat-icon [svgIcon]=\"'heroicons_solid:chevron-right'\"></mat-icon>\r\n }@else {\r\n <mat-icon [svgIcon]=\"'heroicons_solid:chevron-down'\"></mat-icon>\r\n }\r\n }\r\n @else{\r\n <span class=\"cmat-carousel-prev-icon\">\r\n <ng-template *ngTemplateOutlet=\"nextIconTemplate\"></ng-template>\r\n </span>\r\n }\r\n </button>\r\n }\r\n\r\n </div>\r\n @if(showIndicators){\r\n <ul #indicatorContent role=\"presentation\" [ngClass]=\"'cmat-carousel-indicators'\"\r\n [class]=\"indicatorsContentClass\" [ngStyle]=\"indicatorsContentStyle\" (keydown)=\"onIndicatorKeydown($event)\">\r\n @for (totalDot of totalDotsArray(); track $index) {\r\n <li [ngClass]=\"{ 'cmat-carousel-indicator': true, 'cmat-carousel-indicator-active': page === $index }\"\r\n [attr.data-pc-section]=\"'indicator'\">\r\n <button type=\"button\" [ngClass]=\"'cmat-carousel-indicator-button'\" [class]=\"indicatorStyleClass\"\r\n [ngStyle]=\"indicatorStyle\" [attr.aria-current]=\"page === $index ? 'page' : undefined\"\r\n [tabindex]=\"page === $index ? 0 : -1\" (click)=\"onDotClick($event, $index)\">\r\n </button>\r\n </li>\r\n }\r\n </ul>\r\n }\r\n\r\n </div>\r\n @if(footerFacet || footerTemplate){\r\n <div class=\"cmat-carousel-footer\">\r\n <ng-content select=\"cmat-carousel-footer\"></ng-content>\r\n <ng-container *ngTemplateOutlet=\"footerTemplate\"></ng-container>\r\n </div>\r\n }\r\n</div>", styles: ["cmat-carousel{display:flex;flex-direction:column}cmat-carousel .cmat-carousel-content{display:flex;flex-direction:column;overflow:hidden}cmat-carousel .cmat-carousel-prev,cmat-carousel .cmat-carousel-next{align-self:center;flex-grow:0;flex-shrink:0;display:flex;justify-content:center;align-items:center;overflow:hidden;position:relative;margin:.25rem}cmat-carousel .cmat-carousel-container{display:flex;flex-direction:row;width:100%}cmat-carousel .cmat-carousel-items-content{overflow:hidden;width:100%}cmat-carousel .cmat-carousel-items-container{display:flex;flex-direction:row}cmat-carousel .cmat-carousel-indicators{display:flex;flex-direction:row;justify-content:center;flex-wrap:wrap;padding:1rem;gap:.5rem;margin:0;list-style:none}cmat-carousel .cmat-carousel-indicators .cmat-carousel-indicator-active{background:var(--cmat-text-default)!important;opacity:1!important}cmat-carousel .cmat-carousel-indicators .cmat-carousel-indicator{border:0 none;border-radius:6px;background:var(--cmat-text-disabled);transition:background .2s,color .2s,outline-color .2s,box-shadow .2s;opacity:.3}cmat-carousel .cmat-carousel-indicators .cmat-carousel-indicator .cmat-carousel-indicator-button{display:flex;align-items:center;justify-content:center;width:2rem;height:.5rem;outline-color:transparent;padding:0;margin:0;-webkit-user-select:none;user-select:none;cursor:pointer}cmat-carousel .cmat-carousel-vertical .cmat-carousel-container{flex-direction:column;width:auto}cmat-carousel .cmat-carousel-vertical .cmat-carousel-items-container{flex-direction:column;height:100%}\n"], dependencies: [{ kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: CmatArrowCursorDirective, selector: "[cmatArrowCursor]", inputs: ["animationDuration", "orientation", "enabled", "selector"], outputs: ["clickEvent"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
633
622
  }
634
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: CmatCarouselComponent, decorators: [{
623
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: CmatCarouselComponent, decorators: [{
635
624
  type: Component,
636
- args: [{ selector: 'cmat-carousel', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [CommonModule, MatIconModule, MatButtonModule, CmatArrowCursorDirective], template: "<div role=\"region\" [attr.id]=\"id\"\r\n [ngClass]=\"{ 'cmat-carousel': true, 'cmat-carousel-vertical': isVertical(), 'cmat-carousel-horizontal': !isVertical() }\"\r\n [ngStyle]=\"style\" [class]=\"styleClass\">\r\n\r\n @if(headerFacet || headerTemplate){\r\n <div class=\"cmat-carousel-header\">\r\n <ng-content select=\"cmat-carousel-header\"></ng-content>\r\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\r\n </div>\r\n }\r\n\r\n <div [class]=\"contentClass\" [ngClass]=\"'items-center cmat-carousel-content'\">\r\n <div class=\"cmat-carousel-container\" cmatArrowCursor [orientation]=\"orientation\" [selector]=\"arrowSelector\"\r\n [enabled]=\"navigatorsType==='arrow'\" [attr.aria-live]=\"allowAutoplay ? 'polite' : 'off'\"\r\n (clickEvent)=\"arrowCursorClick($event)\">\r\n @if(showNavigators&&navigatorsType==='normal'){\r\n <button type=\"button\" mat-icon-button [ngClass]=\"{ 'cmat-carousel-prev': true }\"\r\n [disabled]=\"isBackwardNavDisabled()\" (click)=\"navBackward($event)\">\r\n @if(!previousIconTemplate){\r\n @if(!isVertical()){\r\n <mat-icon [svgIcon]=\"'heroicons_solid:chevron-left'\"></mat-icon>\r\n }@else {\r\n <mat-icon [svgIcon]=\"'heroicons_solid:chevron-up'\"></mat-icon>\r\n }\r\n }\r\n @else {\r\n <span class=\"cmat-carousel-prev-icon\">\r\n <ng-template *ngTemplateOutlet=\"previousIconTemplate\"></ng-template>\r\n </span>\r\n }\r\n </button>\r\n }\r\n\r\n <div class=\"cmat-carousel-items-content\"\r\n [ngStyle]=\"{ height: isVertical() ? verticalViewPortHeight : 'auto' }\" (touchend)=\"onTouchEnd($event)\"\r\n (touchstart)=\"onTouchStart($event)\" (touchmove)=\"onTouchMove($event)\">\r\n <div #itemsContainer class=\"cmat-carousel-items-container\" (transitionend)=\"onTransitionEnd()\">\r\n @for (item of clonedItemsForStarting; track $index) {\r\n <div [ngClass]=\"{\r\n 'cmat-carousel-item cmat-carousel-item-cloned': true,\r\n 'cmat-carousel-item-active': totalShiftedItems * -1 === data.length,\r\n 'cmat-carousel-item-start': 0 === $index,\r\n 'cmat-carousel-item-end': clonedItemsForStarting?.length??0 - 1 === $index\r\n }\" [attr.aria-hidden]=\"!(totalShiftedItems * -1 === data.length)\">\r\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item }\"></ng-container>\r\n </div>\r\n }\r\n\r\n @for (item of data; track $index) {\r\n <div [ngClass]=\"{ 'cmat-carousel-item': true, 'cmat-carousel-item-active': firstIndex() <= $index && lastIndex() >= $index, 'cmat-carousel-item-start': firstIndex() === $index, 'cmat-carousel-item-end': lastIndex() === $index }\"\r\n [attr.aria-hidden]=\"!(totalShiftedItems * -1 === data.length)\">\r\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item }\"></ng-container>\r\n </div>\r\n }\r\n\r\n @for (item of clonedItemsForFinishing; track $index) {\r\n <div [ngClass]=\"{\r\n 'cmat-carousel-item cmat-carousel-item-cloned': true,\r\n 'cmat-carousel-item-active': totalShiftedItems * -1 === numVisible,\r\n 'cmat-carousel-item-start': 0 === $index,\r\n 'cmat-carousel-item-end': clonedItemsForFinishing?.length??0 - 1 === $index\r\n }\">\r\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item }\"></ng-container>\r\n </div>\r\n }\r\n\r\n </div>\r\n </div>\r\n\r\n @if(showNavigators&&navigatorsType==='normal'){\r\n <button type=\"button\" mat-icon-button [ngClass]=\"{ 'cmat-carousel-next': true}\"\r\n [disabled]=\"isForwardNavDisabled()\" (click)=\"navForward($event)\">\r\n @if(!nextIconTemplate){\r\n @if(!isVertical()){\r\n <mat-icon [svgIcon]=\"'heroicons_solid:chevron-right'\"></mat-icon>\r\n }@else {\r\n <mat-icon [svgIcon]=\"'heroicons_solid:chevron-down'\"></mat-icon>\r\n }\r\n }\r\n @else{\r\n <span class=\"cmat-carousel-prev-icon\">\r\n <ng-template *ngTemplateOutlet=\"nextIconTemplate\"></ng-template>\r\n </span>\r\n }\r\n </button>\r\n }\r\n\r\n </div>\r\n @if(showIndicators){\r\n <ul #indicatorContent role=\"presentation\" [ngClass]=\"'cmat-carousel-indicators'\"\r\n [class]=\"indicatorsContentClass\" [ngStyle]=\"indicatorsContentStyle\" (keydown)=\"onIndicatorKeydown($event)\">\r\n @for (totalDot of totalDotsArray(); track $index) {\r\n <li [ngClass]=\"{ 'cmat-carousel-indicator': true, 'cmat-carousel-indicator-active': page === $index }\"\r\n [attr.data-pc-section]=\"'indicator'\">\r\n <button type=\"button\" [ngClass]=\"'cmat-carousel-indicator-button'\" [class]=\"indicatorStyleClass\"\r\n [ngStyle]=\"indicatorStyle\" [attr.aria-current]=\"page === $index ? 'page' : undefined\"\r\n [tabindex]=\"page === $index ? 0 : -1\" (click)=\"onDotClick($event, $index)\">\r\n </button>\r\n </li>\r\n }\r\n </ul>\r\n }\r\n\r\n </div>\r\n @if(footerFacet || footerTemplate){\r\n <div class=\"cmat-carousel-footer\">\r\n <ng-content select=\"cmat-carousel-footer\"></ng-content>\r\n <ng-container *ngTemplateOutlet=\"footerTemplate\"></ng-container>\r\n </div>\r\n }\r\n</div>", styles: ["cmat-carousel{display:flex;flex-direction:column}cmat-carousel .cmat-carousel-content{display:flex;flex-direction:column;overflow:hidden}cmat-carousel .cmat-carousel-prev,cmat-carousel .cmat-carousel-next{align-self:center;flex-grow:0;flex-shrink:0;display:flex;justify-content:center;align-items:center;overflow:hidden;position:relative;margin:.25rem}cmat-carousel .cmat-carousel-container{display:flex;flex-direction:row;width:100%}cmat-carousel .cmat-carousel-items-content{overflow:hidden;width:100%}cmat-carousel .cmat-carousel-items-container{display:flex;flex-direction:row}cmat-carousel .cmat-carousel-indicators{display:flex;flex-direction:row;justify-content:center;flex-wrap:wrap;padding:1rem;gap:.5rem;margin:0;list-style:none}cmat-carousel .cmat-carousel-indicators .cmat-carousel-indicator-active{background:var(--cmat-text-default)!important;opacity:1!important}cmat-carousel .cmat-carousel-indicators .cmat-carousel-indicator{border:0 none;border-radius:6px;background:var(--cmat-text-disabled);transition:background .2s,color .2s,outline-color .2s,box-shadow .2s;opacity:.3}cmat-carousel .cmat-carousel-indicators .cmat-carousel-indicator .cmat-carousel-indicator-button{display:flex;align-items:center;justify-content:center;width:2rem;height:.5rem;outline-color:transparent;padding:0;margin:0;-webkit-user-select:none;user-select:none;cursor:pointer}cmat-carousel .cmat-carousel-vertical .cmat-carousel-container{flex-direction:column;width:auto}cmat-carousel .cmat-carousel-vertical .cmat-carousel-items-container{flex-direction:column;height:100%}\n"] }]
637
- }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }, { type: i0.Renderer2 }, { type: Document, decorators: [{
638
- type: Inject,
639
- args: [DOCUMENT]
640
- }] }, { type: undefined, decorators: [{
641
- type: Inject,
642
- args: [PLATFORM_ID]
643
- }] }], propDecorators: { page: [{
625
+ args: [{ selector: 'cmat-carousel', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [MatIconModule, MatButtonModule, CmatArrowCursorDirective, CommonModule], template: "<div role=\"region\" [attr.id]=\"id\"\r\n [ngClass]=\"{ 'cmat-carousel': true, 'cmat-carousel-vertical': isVertical(), 'cmat-carousel-horizontal': !isVertical() }\"\r\n [ngStyle]=\"style\" [class]=\"styleClass\">\r\n\r\n @if(headerFacet || headerTemplate){\r\n <div class=\"cmat-carousel-header\">\r\n <ng-content select=\"cmat-carousel-header\"></ng-content>\r\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\r\n </div>\r\n }\r\n\r\n <div [class]=\"contentClass\" [ngClass]=\"'items-center cmat-carousel-content'\">\r\n <div class=\"cmat-carousel-container\" cmatArrowCursor [orientation]=\"orientation\" [selector]=\"arrowSelector\"\r\n [enabled]=\"navigatorsType==='arrow'\" [attr.aria-live]=\"allowAutoplay ? 'polite' : 'off'\"\r\n (clickEvent)=\"arrowCursorClick($event)\">\r\n @if(showNavigators&&navigatorsType==='normal'){\r\n <button type=\"button\" mat-icon-button [ngClass]=\"{ 'cmat-carousel-prev': true }\"\r\n [disabled]=\"isBackwardNavDisabled()\" (click)=\"navBackward($event)\">\r\n @if(!previousIconTemplate){\r\n @if(!isVertical()){\r\n <mat-icon [svgIcon]=\"'heroicons_solid:chevron-left'\"></mat-icon>\r\n }@else {\r\n <mat-icon [svgIcon]=\"'heroicons_solid:chevron-up'\"></mat-icon>\r\n }\r\n }\r\n @else {\r\n <span class=\"cmat-carousel-prev-icon\">\r\n <ng-template *ngTemplateOutlet=\"previousIconTemplate\"></ng-template>\r\n </span>\r\n }\r\n </button>\r\n }\r\n\r\n <div class=\"cmat-carousel-items-content\"\r\n [ngStyle]=\"{ height: isVertical() ? verticalViewPortHeight : 'auto' }\" (touchend)=\"onTouchEnd($event)\"\r\n (touchstart)=\"onTouchStart($event)\" (touchmove)=\"onTouchMove($event)\">\r\n <div #itemsContainer class=\"cmat-carousel-items-container\" (transitionend)=\"onTransitionEnd()\">\r\n @for (item of clonedItemsForStarting; track $index) {\r\n <div [ngClass]=\"{\r\n 'cmat-carousel-item cmat-carousel-item-cloned': true,\r\n 'cmat-carousel-item-active': totalShiftedItems * -1 === data.length,\r\n 'cmat-carousel-item-start': 0 === $index,\r\n 'cmat-carousel-item-end': clonedItemsForStarting?.length??0 - 1 === $index\r\n }\" [attr.aria-hidden]=\"!(totalShiftedItems * -1 === data.length)\">\r\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item }\"></ng-container>\r\n </div>\r\n }\r\n\r\n @for (item of data; track $index) {\r\n <div [ngClass]=\"{ 'cmat-carousel-item': true, 'cmat-carousel-item-active': firstIndex() <= $index && lastIndex() >= $index, 'cmat-carousel-item-start': firstIndex() === $index, 'cmat-carousel-item-end': lastIndex() === $index }\"\r\n [attr.aria-hidden]=\"!(totalShiftedItems * -1 === data.length)\">\r\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item }\"></ng-container>\r\n </div>\r\n }\r\n\r\n @for (item of clonedItemsForFinishing; track $index) {\r\n <div [ngClass]=\"{\r\n 'cmat-carousel-item cmat-carousel-item-cloned': true,\r\n 'cmat-carousel-item-active': totalShiftedItems * -1 === numVisible,\r\n 'cmat-carousel-item-start': 0 === $index,\r\n 'cmat-carousel-item-end': clonedItemsForFinishing?.length??0 - 1 === $index\r\n }\">\r\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item }\"></ng-container>\r\n </div>\r\n }\r\n\r\n </div>\r\n </div>\r\n\r\n @if(showNavigators&&navigatorsType==='normal'){\r\n <button type=\"button\" mat-icon-button [ngClass]=\"{ 'cmat-carousel-next': true}\"\r\n [disabled]=\"isForwardNavDisabled()\" (click)=\"navForward($event)\">\r\n @if(!nextIconTemplate){\r\n @if(!isVertical()){\r\n <mat-icon [svgIcon]=\"'heroicons_solid:chevron-right'\"></mat-icon>\r\n }@else {\r\n <mat-icon [svgIcon]=\"'heroicons_solid:chevron-down'\"></mat-icon>\r\n }\r\n }\r\n @else{\r\n <span class=\"cmat-carousel-prev-icon\">\r\n <ng-template *ngTemplateOutlet=\"nextIconTemplate\"></ng-template>\r\n </span>\r\n }\r\n </button>\r\n }\r\n\r\n </div>\r\n @if(showIndicators){\r\n <ul #indicatorContent role=\"presentation\" [ngClass]=\"'cmat-carousel-indicators'\"\r\n [class]=\"indicatorsContentClass\" [ngStyle]=\"indicatorsContentStyle\" (keydown)=\"onIndicatorKeydown($event)\">\r\n @for (totalDot of totalDotsArray(); track $index) {\r\n <li [ngClass]=\"{ 'cmat-carousel-indicator': true, 'cmat-carousel-indicator-active': page === $index }\"\r\n [attr.data-pc-section]=\"'indicator'\">\r\n <button type=\"button\" [ngClass]=\"'cmat-carousel-indicator-button'\" [class]=\"indicatorStyleClass\"\r\n [ngStyle]=\"indicatorStyle\" [attr.aria-current]=\"page === $index ? 'page' : undefined\"\r\n [tabindex]=\"page === $index ? 0 : -1\" (click)=\"onDotClick($event, $index)\">\r\n </button>\r\n </li>\r\n }\r\n </ul>\r\n }\r\n\r\n </div>\r\n @if(footerFacet || footerTemplate){\r\n <div class=\"cmat-carousel-footer\">\r\n <ng-content select=\"cmat-carousel-footer\"></ng-content>\r\n <ng-container *ngTemplateOutlet=\"footerTemplate\"></ng-container>\r\n </div>\r\n }\r\n</div>", styles: ["cmat-carousel{display:flex;flex-direction:column}cmat-carousel .cmat-carousel-content{display:flex;flex-direction:column;overflow:hidden}cmat-carousel .cmat-carousel-prev,cmat-carousel .cmat-carousel-next{align-self:center;flex-grow:0;flex-shrink:0;display:flex;justify-content:center;align-items:center;overflow:hidden;position:relative;margin:.25rem}cmat-carousel .cmat-carousel-container{display:flex;flex-direction:row;width:100%}cmat-carousel .cmat-carousel-items-content{overflow:hidden;width:100%}cmat-carousel .cmat-carousel-items-container{display:flex;flex-direction:row}cmat-carousel .cmat-carousel-indicators{display:flex;flex-direction:row;justify-content:center;flex-wrap:wrap;padding:1rem;gap:.5rem;margin:0;list-style:none}cmat-carousel .cmat-carousel-indicators .cmat-carousel-indicator-active{background:var(--cmat-text-default)!important;opacity:1!important}cmat-carousel .cmat-carousel-indicators .cmat-carousel-indicator{border:0 none;border-radius:6px;background:var(--cmat-text-disabled);transition:background .2s,color .2s,outline-color .2s,box-shadow .2s;opacity:.3}cmat-carousel .cmat-carousel-indicators .cmat-carousel-indicator .cmat-carousel-indicator-button{display:flex;align-items:center;justify-content:center;width:2rem;height:.5rem;outline-color:transparent;padding:0;margin:0;-webkit-user-select:none;user-select:none;cursor:pointer}cmat-carousel .cmat-carousel-vertical .cmat-carousel-container{flex-direction:column;width:auto}cmat-carousel .cmat-carousel-vertical .cmat-carousel-items-container{flex-direction:column;height:100%}\n"] }]
626
+ }], ctorParameters: () => [], propDecorators: { page: [{
644
627
  type: Input
645
628
  }], numVisible: [{
646
629
  type: Input