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
1
  import { NgStyle, DecimalPipe } from '@angular/common';
2
2
  import * as i0 from '@angular/core';
3
- import { EventEmitter, Injectable, Output, Input, Directive, ViewEncapsulation, ChangeDetectionStrategy, Component, Pipe } from '@angular/core';
4
- import * as i6 from '@angular/material/button';
3
+ import { EventEmitter, Injectable, inject, ChangeDetectorRef, Output, Input, Directive, ViewEncapsulation, ChangeDetectionStrategy, Component, Pipe } from '@angular/core';
4
+ import * as i5 from '@angular/material/button';
5
5
  import { MatButtonModule } from '@angular/material/button';
6
- import * as i3 from '@angular/material/form-field';
6
+ import * as i2 from '@angular/material/form-field';
7
7
  import { MatFormFieldModule } from '@angular/material/form-field';
8
- import * as i2 from '@angular/material/icon';
8
+ import * as i1 from '@angular/material/icon';
9
9
  import { MatIconModule } from '@angular/material/icon';
10
- import * as i4 from '@angular/material/input';
10
+ import * as i3 from '@angular/material/input';
11
11
  import { MatInputModule } from '@angular/material/input';
12
- import * as i5 from '@angular/material/select';
12
+ import * as i4 from '@angular/material/select';
13
13
  import { MatSelectModule } from '@angular/material/select';
14
14
  import { Subject, takeUntil } from 'rxjs';
15
15
  import { CmatDigitOnlyDirective } from 'cmat/directives/digit-only';
16
- import * as i1 from 'cmat/services/media-watcher';
16
+ import { CmatMediaWatcherService } from 'cmat/services/media-watcher';
17
17
  import { isNil } from 'lodash-es';
18
18
 
19
19
  class CmatPaginationService {
@@ -24,9 +24,7 @@ class CmatPaginationService {
24
24
  }
25
25
  defaultId() { return this._defaultPaginationId; }
26
26
  register(instance) {
27
- if (instance.id == null) {
28
- instance.id = this._defaultPaginationId;
29
- }
27
+ instance.id ??= this._defaultPaginationId;
30
28
  if (!this._instances[instance.id]) {
31
29
  this._instances[instance.id] = instance;
32
30
  return true;
@@ -94,10 +92,10 @@ class CmatPaginationService {
94
92
  }
95
93
  return target;
96
94
  }
97
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: CmatPaginationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
98
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: CmatPaginationService, providedIn: 'root' }); }
95
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: CmatPaginationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
96
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: CmatPaginationService, providedIn: 'root' }); }
99
97
  }
100
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: CmatPaginationService, decorators: [{
98
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: CmatPaginationService, decorators: [{
101
99
  type: Injectable,
102
100
  args: [{
103
101
  providedIn: 'root'
@@ -105,14 +103,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImpor
105
103
  }] });
106
104
 
107
105
  class CmatPaginationDirective {
108
- constructor(service, changeDetectorRef) {
109
- this.service = service;
110
- this.changeDetectorRef = changeDetectorRef;
106
+ constructor() {
111
107
  this.maxSize = 7;
112
108
  this.pageChange = new EventEmitter();
113
109
  this.pageBoundsCorrection = new EventEmitter();
114
110
  this.perPageCountChange = new EventEmitter();
115
111
  this.pages = [];
112
+ this.service = inject(CmatPaginationService);
113
+ this.changeDetectorRef = inject(ChangeDetectorRef);
116
114
  this._unsubscribeAll = new Subject();
117
115
  this.service.change.pipe(takeUntil(this._unsubscribeAll))
118
116
  .subscribe((id) => {
@@ -123,9 +121,7 @@ class CmatPaginationDirective {
123
121
  });
124
122
  }
125
123
  ngOnInit() {
126
- if (this.id === undefined) {
127
- this.id = this.service.defaultId();
128
- }
124
+ this.id ??= this.service.defaultId();
129
125
  this._updatePageLinks();
130
126
  }
131
127
  ngOnChanges() {
@@ -275,17 +271,16 @@ class CmatPaginationDirective {
275
271
  return i;
276
272
  }
277
273
  }
278
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: CmatPaginationDirective, deps: [{ token: CmatPaginationService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive }); }
279
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.9", type: CmatPaginationDirective, isStandalone: true, selector: "pagination-template,[pagination-template]", inputs: { id: "id", maxSize: "maxSize" }, outputs: { pageChange: "pageChange", pageBoundsCorrection: "pageBoundsCorrection", perPageCountChange: "perPageCountChange" }, exportAs: ["paginationApi"], usesOnChanges: true, ngImport: i0 }); }
274
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: CmatPaginationDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
275
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.2", type: CmatPaginationDirective, isStandalone: true, selector: "pagination-template,[pagination-template]", inputs: { id: "id", maxSize: "maxSize" }, outputs: { pageChange: "pageChange", pageBoundsCorrection: "pageBoundsCorrection", perPageCountChange: "perPageCountChange" }, exportAs: ["paginationApi"], usesOnChanges: true, ngImport: i0 }); }
280
276
  }
281
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: CmatPaginationDirective, decorators: [{
277
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: CmatPaginationDirective, decorators: [{
282
278
  type: Directive,
283
279
  args: [{
284
280
  selector: 'pagination-template,[pagination-template]',
285
- exportAs: 'paginationApi',
286
- standalone: true
281
+ exportAs: 'paginationApi'
287
282
  }]
288
- }], ctorParameters: () => [{ type: CmatPaginationService }, { type: i0.ChangeDetectorRef }], propDecorators: { id: [{
283
+ }], ctorParameters: () => [], propDecorators: { id: [{
289
284
  type: Input
290
285
  }], maxSize: [{
291
286
  type: Input
@@ -298,15 +293,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImpor
298
293
  }] } });
299
294
 
300
295
  class CmatPaginationComponent {
301
- constructor(_cmatMediaWatcherService, _changeDetectorRef) {
302
- this._cmatMediaWatcherService = _cmatMediaWatcherService;
303
- this._changeDetectorRef = _changeDetectorRef;
296
+ constructor() {
304
297
  this.pageChange = new EventEmitter();
305
298
  this.pageBoundsCorrection = new EventEmitter();
306
299
  this.perPageCountChange = new EventEmitter();
307
300
  this.maxSize = 7;
308
301
  this.itemsPerPages = [10, 20, 30];
309
302
  this.initPerPage = 10;
303
+ this._cmatMediaWatcherService = inject(CmatMediaWatcherService);
304
+ this._changeDetectorRef = inject(ChangeDetectorRef);
310
305
  this._autoHide = false;
311
306
  this._unsubscribeAll = new Subject();
312
307
  }
@@ -324,13 +319,13 @@ class CmatPaginationComponent {
324
319
  this._changeDetectorRef.markForCheck();
325
320
  });
326
321
  }
327
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: CmatPaginationComponent, deps: [{ token: i1.CmatMediaWatcherService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
328
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.9", type: CmatPaginationComponent, isStandalone: true, selector: "cmat-pagination", inputs: { id: "id", maxSize: "maxSize", itemsPerPages: "itemsPerPages", initPerPage: "initPerPage", autoHide: "autoHide" }, outputs: { pageChange: "pageChange", pageBoundsCorrection: "pageBoundsCorrection", perPageCountChange: "perPageCountChange" }, exportAs: ["cmatPagination"], ngImport: i0, template: "<pagination-template #p=\"paginationApi\" class=\"w-full px-4 py-2 flex\" [id]=\"id\"\r\n [maxSize]=\"isScreenSmall&&maxSize>5?5:maxSize\" (pageChange)=\"pageChange.emit($event)\"\r\n (pageBoundsCorrection)=\"pageBoundsCorrection.emit($event)\" (perPageCountChange)=\"perPageCountChange.emit($event)\">\r\n <div class=\"hidden md:flex flex-auto items-center\">\r\n <span>\u603B\u8BA1:{{p.getTotalItems()}}</span>\r\n </div>\r\n <nav role=\"navigation\" class=\"flex min-h-12 w-full md:w-0\">\r\n @if (!(autoHide && p.pages.length <= 1)) {\r\n <ul\r\n class=\"flex flex-row items-center justify-center md:justify-end w-full\">\r\n <li>\r\n <button type=\"button\" class=\"flex items-center\" mat-icon-button [disabled]=\"p.getCurrent()===1\"\r\n (click)=\"p.goFirstPage()\">\r\n <mat-icon svgIcon=\"mat_outline:first_page\"></mat-icon>\r\n </button>\r\n </li>\r\n <li class=\"pr-4\">\r\n <button type=\"button\" class=\"flex items-center\" mat-icon-button [disabled]=\"p.getCurrent()===1\"\r\n (click)=\"p.previous()\">\r\n <mat-icon svgIcon=\"mat_outline:navigate_before\"></mat-icon>\r\n </button>\r\n </li>\r\n <div class=\"flex flex-row gap-4\">\r\n @for (page of p.pages; track $index) {\r\n <li class=\"flex text-xl lg:text-2xl\">\r\n @if (p.getCurrent() !== page.value) {\r\n <a tabindex=\"0\" role=\"presentation\"\r\n class=\"cursor-pointer text-gray-400 hover:text-current\" (click)=\"p.setCurrent(page.value)\">\r\n <span>{{ (page.label === '...') ? page.label : (page.label | number:'') }}</span>\r\n </a>\r\n }\r\n @if (p.getCurrent() === page.value) {\r\n <span class=\"text-current\">\r\n <span>{{ (page.label === '...') ? page.label : (page.label | number:'') }}</span>\r\n </span>\r\n }\r\n </li>\r\n }\r\n </div> \r\n <li class=\"pl-4\">\r\n <button type=\"button\" class=\"flex items-center\" mat-icon-button [disabled]=\"p.getCurrent()===p.getLastPage()\"\r\n (click)=\"p.next()\">\r\n <mat-icon svgIcon=\"mat_outline:navigate_next\"></mat-icon>\r\n </button>\r\n </li>\r\n <li>\r\n <button type=\"button\" class=\"flex items-center\" mat-icon-button [disabled]=\"p.getCurrent()===p.getLastPage()\"\r\n (click)=\"p.goLastPage()\">\r\n <mat-icon svgIcon=\"mat_outline:last_page\"></mat-icon>\r\n </button>\r\n </li>\r\n <li class=\"hidden md:block px-2\">\r\n <mat-form-field [ngStyle]=\"{'width':((p.getLastPage()?.toString()?.length||0)*8+64)+'px'}\">\r\n <input #current matInput type=\"text\" cmatDigitOnly class=\"text-end\"\r\n [value]=\"p.getCurrent()\" [autocomplete]=\"'off'\" [min]=\"0\" [max]=\"p.getLastPage()||0\"\r\n (keyup.enter)=\"p.setCurrent(current.value)\">\r\n <span matSuffix>/<div class=\"pl-1\">{{p.getLastPage()}}</div></span>\r\n </mat-form-field>\r\n </li>\r\n <li class=\"hidden md:block\">\r\n <mat-form-field class=\"w-24\">\r\n <mat-select #pageCount name=\"pageCount\" [value]=\"initPerPage\"\r\n (selectionChange)=\"p.setItemsPerPage(pageCount.value)\">\r\n @for (perPage of itemsPerPages; track perPage) {\r\n <mat-option [value]=\"perPage\">\r\n {{perPage}}\r\n </mat-option>\r\n }\r\n </mat-select>\r\n </mat-form-field>\r\n </li>\r\n </ul>\r\n }\r\n </nav>\r\n </pagination-template>", dependencies: [{ kind: "directive", type: CmatPaginationDirective, selector: "pagination-template,[pagination-template]", inputs: ["id", "maxSize"], outputs: ["pageChange", "pageBoundsCorrection", "perPageCountChange"], exportAs: ["paginationApi"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i4.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "directive", type: CmatDigitOnlyDirective, selector: "[cmatDigitOnly]", inputs: ["decimal", "decimalSeparator", "allowNegatives", "allowPaste", "negativeSign", "min", "max", "pattern"] }, { kind: "ngmodule", type: MatSelectModule }, { kind: "component", type: i5.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: i5.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "pipe", type: DecimalPipe, name: "number" }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i6.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
322
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: CmatPaginationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
323
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.2", type: CmatPaginationComponent, isStandalone: true, selector: "cmat-pagination", inputs: { id: "id", maxSize: "maxSize", itemsPerPages: "itemsPerPages", initPerPage: "initPerPage", autoHide: "autoHide" }, outputs: { pageChange: "pageChange", pageBoundsCorrection: "pageBoundsCorrection", perPageCountChange: "perPageCountChange" }, exportAs: ["cmatPagination"], ngImport: i0, template: "<pagination-template #p=\"paginationApi\" class=\"w-full px-4 py-2 flex\" [id]=\"id\"\r\n [maxSize]=\"isScreenSmall&&maxSize>5?5:maxSize\" (pageChange)=\"pageChange.emit($event)\"\r\n (pageBoundsCorrection)=\"pageBoundsCorrection.emit($event)\" (perPageCountChange)=\"perPageCountChange.emit($event)\">\r\n <div class=\"hidden md:flex flex-auto items-center\">\r\n <span>\u603B\u8BA1:{{p.getTotalItems()}}</span>\r\n </div>\r\n <nav role=\"navigation\" class=\"flex min-h-12 w-full md:w-0\">\r\n @if (!(autoHide && p.pages.length <= 1)) {\r\n <ul\r\n class=\"flex flex-row items-center justify-center md:justify-end w-full\">\r\n <li>\r\n <button type=\"button\" class=\"flex items-center\" mat-icon-button [disabled]=\"p.getCurrent()===1\"\r\n (click)=\"p.goFirstPage()\">\r\n <mat-icon svgIcon=\"mat_outline:first_page\"></mat-icon>\r\n </button>\r\n </li>\r\n <li class=\"pr-4\">\r\n <button type=\"button\" class=\"flex items-center\" mat-icon-button [disabled]=\"p.getCurrent()===1\"\r\n (click)=\"p.previous()\">\r\n <mat-icon svgIcon=\"mat_outline:navigate_before\"></mat-icon>\r\n </button>\r\n </li>\r\n <div class=\"flex flex-row gap-4\">\r\n @for (page of p.pages; track $index) {\r\n <li class=\"flex text-xl lg:text-2xl\">\r\n @if (p.getCurrent() !== page.value) {\r\n <a tabindex=\"0\" role=\"presentation\"\r\n class=\"cursor-pointer text-gray-400 hover:text-current\" (click)=\"p.setCurrent(page.value)\">\r\n <span>{{ (page.label === '...') ? page.label : (page.label | number:'') }}</span>\r\n </a>\r\n }\r\n @if (p.getCurrent() === page.value) {\r\n <span class=\"text-current\">\r\n <span>{{ (page.label === '...') ? page.label : (page.label | number:'') }}</span>\r\n </span>\r\n }\r\n </li>\r\n }\r\n </div> \r\n <li class=\"pl-4\">\r\n <button type=\"button\" class=\"flex items-center\" mat-icon-button [disabled]=\"p.getCurrent()===p.getLastPage()\"\r\n (click)=\"p.next()\">\r\n <mat-icon svgIcon=\"mat_outline:navigate_next\"></mat-icon>\r\n </button>\r\n </li>\r\n <li>\r\n <button type=\"button\" class=\"flex items-center\" mat-icon-button [disabled]=\"p.getCurrent()===p.getLastPage()\"\r\n (click)=\"p.goLastPage()\">\r\n <mat-icon svgIcon=\"mat_outline:last_page\"></mat-icon>\r\n </button>\r\n </li>\r\n <li class=\"hidden md:block px-2\">\r\n <mat-form-field [ngStyle]=\"{'width':((p.getLastPage()?.toString()?.length||0)*8+64)+'px'}\">\r\n <input #current matInput type=\"text\" cmatDigitOnly class=\"text-end\"\r\n [value]=\"p.getCurrent()\" [autocomplete]=\"'off'\" [min]=\"0\" [max]=\"p.getLastPage()||0\"\r\n (keyup.enter)=\"p.setCurrent(current.value)\">\r\n <span matSuffix>/<div class=\"pl-1\">{{p.getLastPage()}}</div></span>\r\n </mat-form-field>\r\n </li>\r\n <li class=\"hidden md:block\">\r\n <mat-form-field class=\"w-24\">\r\n <mat-select #pageCount name=\"pageCount\" [value]=\"initPerPage\"\r\n (selectionChange)=\"p.setItemsPerPage(pageCount.value)\">\r\n @for (perPage of itemsPerPages; track perPage) {\r\n <mat-option [value]=\"perPage\">\r\n {{perPage}}\r\n </mat-option>\r\n }\r\n </mat-select>\r\n </mat-form-field>\r\n </li>\r\n </ul>\r\n }\r\n </nav>\r\n </pagination-template>", dependencies: [{ kind: "directive", type: CmatPaginationDirective, selector: "pagination-template,[pagination-template]", inputs: ["id", "maxSize"], outputs: ["pageChange", "pageBoundsCorrection", "perPageCountChange"], exportAs: ["paginationApi"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i3.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "directive", type: CmatDigitOnlyDirective, selector: "[cmatDigitOnly]", inputs: ["decimal", "decimalSeparator", "allowNegatives", "allowPaste", "negativeSign", "min", "max", "pattern"] }, { kind: "ngmodule", type: MatSelectModule }, { kind: "component", type: i4.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: i4.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "pipe", type: DecimalPipe, name: "number" }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i5.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
329
324
  }
330
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: CmatPaginationComponent, decorators: [{
325
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: CmatPaginationComponent, decorators: [{
331
326
  type: Component,
332
327
  args: [{ selector: 'cmat-pagination', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, exportAs: 'cmatPagination', imports: [CmatPaginationDirective, MatIconModule, NgStyle, MatFormFieldModule, MatInputModule, CmatDigitOnlyDirective, MatSelectModule, DecimalPipe, MatButtonModule], template: "<pagination-template #p=\"paginationApi\" class=\"w-full px-4 py-2 flex\" [id]=\"id\"\r\n [maxSize]=\"isScreenSmall&&maxSize>5?5:maxSize\" (pageChange)=\"pageChange.emit($event)\"\r\n (pageBoundsCorrection)=\"pageBoundsCorrection.emit($event)\" (perPageCountChange)=\"perPageCountChange.emit($event)\">\r\n <div class=\"hidden md:flex flex-auto items-center\">\r\n <span>\u603B\u8BA1:{{p.getTotalItems()}}</span>\r\n </div>\r\n <nav role=\"navigation\" class=\"flex min-h-12 w-full md:w-0\">\r\n @if (!(autoHide && p.pages.length <= 1)) {\r\n <ul\r\n class=\"flex flex-row items-center justify-center md:justify-end w-full\">\r\n <li>\r\n <button type=\"button\" class=\"flex items-center\" mat-icon-button [disabled]=\"p.getCurrent()===1\"\r\n (click)=\"p.goFirstPage()\">\r\n <mat-icon svgIcon=\"mat_outline:first_page\"></mat-icon>\r\n </button>\r\n </li>\r\n <li class=\"pr-4\">\r\n <button type=\"button\" class=\"flex items-center\" mat-icon-button [disabled]=\"p.getCurrent()===1\"\r\n (click)=\"p.previous()\">\r\n <mat-icon svgIcon=\"mat_outline:navigate_before\"></mat-icon>\r\n </button>\r\n </li>\r\n <div class=\"flex flex-row gap-4\">\r\n @for (page of p.pages; track $index) {\r\n <li class=\"flex text-xl lg:text-2xl\">\r\n @if (p.getCurrent() !== page.value) {\r\n <a tabindex=\"0\" role=\"presentation\"\r\n class=\"cursor-pointer text-gray-400 hover:text-current\" (click)=\"p.setCurrent(page.value)\">\r\n <span>{{ (page.label === '...') ? page.label : (page.label | number:'') }}</span>\r\n </a>\r\n }\r\n @if (p.getCurrent() === page.value) {\r\n <span class=\"text-current\">\r\n <span>{{ (page.label === '...') ? page.label : (page.label | number:'') }}</span>\r\n </span>\r\n }\r\n </li>\r\n }\r\n </div> \r\n <li class=\"pl-4\">\r\n <button type=\"button\" class=\"flex items-center\" mat-icon-button [disabled]=\"p.getCurrent()===p.getLastPage()\"\r\n (click)=\"p.next()\">\r\n <mat-icon svgIcon=\"mat_outline:navigate_next\"></mat-icon>\r\n </button>\r\n </li>\r\n <li>\r\n <button type=\"button\" class=\"flex items-center\" mat-icon-button [disabled]=\"p.getCurrent()===p.getLastPage()\"\r\n (click)=\"p.goLastPage()\">\r\n <mat-icon svgIcon=\"mat_outline:last_page\"></mat-icon>\r\n </button>\r\n </li>\r\n <li class=\"hidden md:block px-2\">\r\n <mat-form-field [ngStyle]=\"{'width':((p.getLastPage()?.toString()?.length||0)*8+64)+'px'}\">\r\n <input #current matInput type=\"text\" cmatDigitOnly class=\"text-end\"\r\n [value]=\"p.getCurrent()\" [autocomplete]=\"'off'\" [min]=\"0\" [max]=\"p.getLastPage()||0\"\r\n (keyup.enter)=\"p.setCurrent(current.value)\">\r\n <span matSuffix>/<div class=\"pl-1\">{{p.getLastPage()}}</div></span>\r\n </mat-form-field>\r\n </li>\r\n <li class=\"hidden md:block\">\r\n <mat-form-field class=\"w-24\">\r\n <mat-select #pageCount name=\"pageCount\" [value]=\"initPerPage\"\r\n (selectionChange)=\"p.setItemsPerPage(pageCount.value)\">\r\n @for (perPage of itemsPerPages; track perPage) {\r\n <mat-option [value]=\"perPage\">\r\n {{perPage}}\r\n </mat-option>\r\n }\r\n </mat-select>\r\n </mat-form-field>\r\n </li>\r\n </ul>\r\n }\r\n </nav>\r\n </pagination-template>" }]
333
- }], ctorParameters: () => [{ type: i1.CmatMediaWatcherService }, { type: i0.ChangeDetectorRef }], propDecorators: { pageChange: [{
328
+ }], propDecorators: { pageChange: [{
334
329
  type: Output
335
330
  }], pageBoundsCorrection: [{
336
331
  type: Output
@@ -350,8 +345,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImpor
350
345
 
351
346
  const LARGE_NUMBER = Number.MAX_SAFE_INTEGER;
352
347
  class CmatPaginatePipe {
353
- constructor(service) {
354
- this.service = service;
348
+ constructor() {
349
+ this.service = inject(CmatPaginationService);
355
350
  this.state = {};
356
351
  }
357
352
  transform(collection, args) {
@@ -432,17 +427,16 @@ class CmatPaginatePipe {
432
427
  }
433
428
  return state.slice.every((element, index) => element === collection[start + index]);
434
429
  }
435
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: CmatPaginatePipe, deps: [{ token: CmatPaginationService }], target: i0.ɵɵFactoryTarget.Pipe }); }
436
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.9", ngImport: i0, type: CmatPaginatePipe, isStandalone: true, name: "paginate" }); }
430
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: CmatPaginatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
431
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.0.2", ngImport: i0, type: CmatPaginatePipe, isStandalone: true, name: "paginate" }); }
437
432
  }
438
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: CmatPaginatePipe, decorators: [{
433
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: CmatPaginatePipe, decorators: [{
439
434
  type: Pipe,
440
435
  args: [{
441
436
  name: 'paginate',
442
- pure: true,
443
- standalone: true
437
+ pure: true
444
438
  }]
445
- }], ctorParameters: () => [{ type: CmatPaginationService }] });
439
+ }] });
446
440
 
447
441
  /**
448
442
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"cmat-components-pagination.mjs","sources":["../../../projects/cmat/components/pagination/pagination.service.ts","../../../projects/cmat/components/pagination/pagination.directive.ts","../../../projects/cmat/components/pagination/pagination.component.ts","../../../projects/cmat/components/pagination/pagination.component.html","../../../projects/cmat/components/pagination/pagination.pipe.ts","../../../projects/cmat/components/pagination/cmat-components-pagination.ts"],"sourcesContent":["import { EventEmitter, Injectable } from '@angular/core';\r\nimport { CmatPaginationInstance } from './pagination.instance';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class CmatPaginationService {\r\n public change: EventEmitter<string> = new EventEmitter<string>();\r\n\r\n private _instances: Record<string, CmatPaginationInstance> = {};\r\n private _defaultPaginationId = 'DEFAULT_PAGINATION_ID';\r\n\r\n public defaultId(): string { return this._defaultPaginationId; }\r\n\r\n public register(instance: CmatPaginationInstance): boolean {\r\n if (instance.id == null) {\r\n instance.id = this._defaultPaginationId;\r\n }\r\n\r\n if (!this._instances[instance.id]) {\r\n this._instances[instance.id] = instance;\r\n return true;\r\n } else {\r\n return this._updateInstance(instance);\r\n }\r\n }\r\n\r\n public getCurrentPage(id: string): number | void {\r\n if (this._instances[id]) {\r\n return this._instances[id].currentPage;\r\n }\r\n }\r\n\r\n public getItemsPerPage(id: string): number | void {\r\n if (this._instances[id]) {\r\n return this._instances[id].itemsPerPage;\r\n }\r\n }\r\n\r\n public setCurrentPage(id: string, page: number): void {\r\n if (this._instances[id]) {\r\n const instance = this._instances[id];\r\n const maxPage = Math.ceil(instance.totalItems / instance.itemsPerPage);\r\n if (page <= maxPage && 1 <= page) {\r\n this._instances[id].currentPage = page;\r\n this.change.emit(id);\r\n }\r\n }\r\n }\r\n\r\n public setTotalItems(id: string, totalItems: number): void {\r\n if (this._instances[id] && 0 <= totalItems) {\r\n this._instances[id].totalItems = totalItems;\r\n this.change.emit(id);\r\n }\r\n }\r\n\r\n public setItemsPerPage(id: string, itemsPerPage: number): void {\r\n if (this._instances[id]) {\r\n this._instances[id].itemsPerPage = itemsPerPage;\r\n this.change.emit(id);\r\n }\r\n }\r\n\r\n public getInstance(id: string = this._defaultPaginationId): CmatPaginationInstance {\r\n if (this._instances[id]) {\r\n return this._clone(this._instances[id]);\r\n }\r\n return {} as CmatPaginationInstance;\r\n }\r\n\r\n private _updateInstance(instance: CmatPaginationInstance): boolean {\r\n let changed = false;\r\n if (instance.id) {\r\n for (const prop in this._instances[instance.id]) {\r\n if (instance[prop] !== this._instances[instance.id][prop]) {\r\n this._instances[instance.id][prop] = instance[prop];\r\n changed = true;\r\n }\r\n }\r\n }\r\n return changed;\r\n }\r\n\r\n private _clone(obj: any): any {\r\n const target: any = {};\r\n for (const i in obj) {\r\n if (Object.prototype.hasOwnProperty.call(obj, i)) {\r\n target[i] = obj[i];\r\n }\r\n }\r\n return target;\r\n }\r\n}\r\n","import { ChangeDetectorRef, Directive, EventEmitter, Input, OnChanges, OnDestroy, OnInit, Output } from '@angular/core';\r\nimport { Subject, takeUntil } from 'rxjs';\r\nimport { CmatPaginationInstance } from './pagination.instance';\r\nimport { CmatPaginationService } from './pagination.service';\r\n\r\nexport interface Page {\r\n label: string;\r\n value: any;\r\n}\r\n@Directive({\r\n selector: 'pagination-template,[pagination-template]',\r\n exportAs: 'paginationApi',\r\n standalone: true\r\n})\r\nexport class CmatPaginationDirective implements OnInit, OnChanges, OnDestroy {\r\n @Input() id: string;\r\n @Input() maxSize: number = 7;\r\n @Output() pageChange: EventEmitter<number> = new EventEmitter<number>();\r\n @Output() pageBoundsCorrection: EventEmitter<number> = new EventEmitter<number>();\r\n @Output() perPageCountChange: EventEmitter<number> = new EventEmitter<number>();\r\n\r\n pages: Page[] = [];\r\n\r\n private _unsubscribeAll: Subject<any> = new Subject<any>();\r\n\r\n constructor(private service: CmatPaginationService,\r\n private changeDetectorRef: ChangeDetectorRef) {\r\n this.service.change.pipe(\r\n takeUntil(this._unsubscribeAll))\r\n .subscribe((id) => {\r\n if (this.id === id) {\r\n this._updatePageLinks();\r\n this.changeDetectorRef.markForCheck();\r\n }\r\n });\r\n }\r\n\r\n ngOnInit(): void {\r\n if (this.id === undefined) {\r\n this.id = this.service.defaultId();\r\n }\r\n this._updatePageLinks();\r\n }\r\n\r\n ngOnChanges(): void {\r\n this._updatePageLinks();\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this._unsubscribeAll.next(void 0);\r\n this._unsubscribeAll.complete();\r\n }\r\n\r\n previous(): void {\r\n if (!this.isFirstPage()) {\r\n this._checkValidId();\r\n\r\n const current = this.getCurrent();\r\n if (current)\r\n this.setCurrent(current - 1);\r\n }\r\n }\r\n\r\n next(): void {\r\n if (!this.isLastPage()) {\r\n this._checkValidId();\r\n\r\n const current = this.getCurrent();\r\n if (current)\r\n this.setCurrent(current + 1);\r\n }\r\n }\r\n\r\n goFirstPage(): void {\r\n if (!this.isFirstPage()) {\r\n this._checkValidId();\r\n\r\n this.setCurrent(1);\r\n }\r\n }\r\n\r\n goLastPage(): void {\r\n if (!this.isLastPage()) {\r\n this._checkValidId();\r\n\r\n const lastPage = this.getLastPage();\r\n if (lastPage)\r\n this.setCurrent(lastPage);\r\n }\r\n }\r\n\r\n isFirstPage(): boolean {\r\n return this.getCurrent() === 1;\r\n }\r\n\r\n isLastPage(): boolean {\r\n return this.getLastPage() === this.getCurrent();\r\n }\r\n\r\n setCurrent(page: number | string): void {\r\n this.pageChange.emit(page as number);\r\n }\r\n\r\n getCurrent(): number | void {\r\n return this.service.getCurrentPage(this.id);\r\n }\r\n\r\n getLastPage(): number | void {\r\n const inst = this.service.getInstance(this.id);\r\n if (inst.totalItems < 1) {\r\n // when there are 0 or fewer (an error case) items, there are no \"pages\" as such,\r\n // but it makes sense to consider a single, empty page as the last page.\r\n return 1;\r\n }\r\n return Math.ceil(inst.totalItems / inst.itemsPerPage);\r\n }\r\n\r\n getTotalItems(): number | void {\r\n return this.service.getInstance(this.id).totalItems;\r\n }\r\n\r\n setItemsPerPage(count: number): void {\r\n this.service.setItemsPerPage(this.id, count);\r\n\r\n this.perPageCountChange.emit(count);\r\n const inst = this.service.getInstance(this.id);\r\n this.setCurrent(this._outOfBoundCorrection(inst));\r\n }\r\n\r\n private _checkValidId(): void {\r\n if (this.service.getInstance(this.id).id == null) {\r\n console.warn(`PaginationControlsDirective: the specified id \"${this.id}\" does not match any registered PaginationInstance`);\r\n }\r\n }\r\n\r\n private _updatePageLinks(): void {\r\n const inst = this.service.getInstance(this.id);\r\n const correctedCurrentPage = this._outOfBoundCorrection(inst);\r\n\r\n if (correctedCurrentPage !== inst.currentPage) {\r\n setTimeout(() => {\r\n this.pageBoundsCorrection.emit(correctedCurrentPage);\r\n this.pages = this._createPageArray(inst.currentPage, inst.itemsPerPage, inst.totalItems, this.maxSize);\r\n });\r\n } else {\r\n this.pages = this._createPageArray(inst.currentPage, inst.itemsPerPage, inst.totalItems, this.maxSize);\r\n }\r\n }\r\n\r\n private _outOfBoundCorrection(instance: CmatPaginationInstance): number {\r\n const totalPages = Math.ceil(instance.totalItems / instance.itemsPerPage);\r\n if (totalPages < instance.currentPage && 0 < totalPages) {\r\n return totalPages;\r\n } else if (instance.currentPage < 1) {\r\n return 1;\r\n }\r\n\r\n return instance.currentPage;\r\n }\r\n\r\n private _createPageArray(currentPage: number, itemsPerPage: number, totalItems: number, paginationRange: number): Page[] {\r\n paginationRange = +paginationRange;\r\n const pages = [];\r\n\r\n const totalPages = Math.max(Math.ceil(totalItems / itemsPerPage), 1);\r\n const halfWay = Math.ceil(paginationRange / 2);\r\n\r\n const isStart = currentPage <= halfWay;\r\n const isEnd = totalPages - halfWay < currentPage;\r\n const isMiddle = !isStart && !isEnd;\r\n\r\n const ellipsesNeeded = paginationRange < totalPages;\r\n let i = 1;\r\n\r\n while (i <= totalPages && i <= paginationRange) {\r\n let label: any;\r\n const pageNumber = this._calculatePageNumber(i, currentPage, paginationRange, totalPages);\r\n const openingEllipsesNeeded = (i === 2 && (isMiddle || isEnd));\r\n const closingEllipsesNeeded = (i === paginationRange - 1 && (isMiddle || isStart));\r\n if (ellipsesNeeded && (openingEllipsesNeeded || closingEllipsesNeeded)) {\r\n label = '...';\r\n } else {\r\n label = pageNumber;\r\n }\r\n pages.push({\r\n label: label,\r\n value: pageNumber\r\n });\r\n i++;\r\n }\r\n\r\n return pages;\r\n }\r\n\r\n private _calculatePageNumber(i: number, currentPage: number, paginationRange: number, totalPages: number): number {\r\n const halfWay = Math.ceil(paginationRange / 2);\r\n if (i === paginationRange) {\r\n return totalPages;\r\n } else if (i === 1) {\r\n return i;\r\n } else if (paginationRange < totalPages) {\r\n if (totalPages - halfWay < currentPage) {\r\n return totalPages - paginationRange + i;\r\n } else if (halfWay < currentPage) {\r\n return currentPage - halfWay + i;\r\n } else {\r\n return i;\r\n }\r\n } else {\r\n return i;\r\n }\r\n }\r\n}\r\n","import { DecimalPipe, NgStyle } from '@angular/common';\r\nimport { ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, Input, OnInit, Output, ViewEncapsulation } from '@angular/core';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { MatFormFieldModule } from '@angular/material/form-field';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatInputModule } from '@angular/material/input';\r\nimport { MatSelectModule } from '@angular/material/select';\r\nimport { Subject, takeUntil } from 'rxjs';\r\nimport { CmatDigitOnlyDirective } from 'cmat/directives/digit-only';\r\nimport { CmatMediaWatcherService } from 'cmat/services/media-watcher';\r\nimport { CmatPaginationDirective } from './pagination.directive';\r\n\r\n@Component({\r\n selector: 'cmat-pagination',\r\n templateUrl: './pagination.component.html',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n exportAs: 'cmatPagination',\r\n imports: [CmatPaginationDirective, MatIconModule, NgStyle, MatFormFieldModule, MatInputModule, CmatDigitOnlyDirective, MatSelectModule, DecimalPipe,MatButtonModule]\r\n})\r\nexport class CmatPaginationComponent implements OnInit {\r\n @Output() pageChange: EventEmitter<number> = new EventEmitter<number>();\r\n @Output() pageBoundsCorrection: EventEmitter<number> = new EventEmitter<number>();\r\n @Output() perPageCountChange: EventEmitter<number> = new EventEmitter<number>();\r\n\r\n @Input() id: string;\r\n @Input() maxSize: number = 7;\r\n\r\n @Input() itemsPerPages: number[] = [10, 20, 30];\r\n @Input() initPerPage: number = 10;\r\n\r\n isScreenSmall: boolean;\r\n\r\n private _autoHide: boolean = false;\r\n private _unsubscribeAll: Subject<void> = new Subject<void>();\r\n\r\n constructor(private _cmatMediaWatcherService: CmatMediaWatcherService, private _changeDetectorRef: ChangeDetectorRef) {\r\n\r\n }\r\n\r\n @Input()\r\n get autoHide(): boolean {\r\n return this._autoHide;\r\n }\r\n set autoHide(value: boolean) {\r\n this._autoHide = !!value;\r\n }\r\n\r\n ngOnInit(): void {\r\n this._cmatMediaWatcherService.onMediaChange$\r\n .pipe(takeUntil(this._unsubscribeAll))\r\n .subscribe(({ matchingAliases }) => {\r\n this.isScreenSmall = !matchingAliases.includes('md');\r\n this._changeDetectorRef.markForCheck();\r\n });\r\n }\r\n}\r\n","<pagination-template #p=\"paginationApi\" class=\"w-full px-4 py-2 flex\" [id]=\"id\"\r\n [maxSize]=\"isScreenSmall&&maxSize>5?5:maxSize\" (pageChange)=\"pageChange.emit($event)\"\r\n (pageBoundsCorrection)=\"pageBoundsCorrection.emit($event)\" (perPageCountChange)=\"perPageCountChange.emit($event)\">\r\n <div class=\"hidden md:flex flex-auto items-center\">\r\n <span>总计:{{p.getTotalItems()}}</span>\r\n </div>\r\n <nav role=\"navigation\" class=\"flex min-h-12 w-full md:w-0\">\r\n @if (!(autoHide && p.pages.length <= 1)) {\r\n <ul\r\n class=\"flex flex-row items-center justify-center md:justify-end w-full\">\r\n <li>\r\n <button type=\"button\" class=\"flex items-center\" mat-icon-button [disabled]=\"p.getCurrent()===1\"\r\n (click)=\"p.goFirstPage()\">\r\n <mat-icon svgIcon=\"mat_outline:first_page\"></mat-icon>\r\n </button>\r\n </li>\r\n <li class=\"pr-4\">\r\n <button type=\"button\" class=\"flex items-center\" mat-icon-button [disabled]=\"p.getCurrent()===1\"\r\n (click)=\"p.previous()\">\r\n <mat-icon svgIcon=\"mat_outline:navigate_before\"></mat-icon>\r\n </button>\r\n </li>\r\n <div class=\"flex flex-row gap-4\">\r\n @for (page of p.pages; track $index) {\r\n <li class=\"flex text-xl lg:text-2xl\">\r\n @if (p.getCurrent() !== page.value) {\r\n <a tabindex=\"0\" role=\"presentation\"\r\n class=\"cursor-pointer text-gray-400 hover:text-current\" (click)=\"p.setCurrent(page.value)\">\r\n <span>{{ (page.label === '...') ? page.label : (page.label | number:'') }}</span>\r\n </a>\r\n }\r\n @if (p.getCurrent() === page.value) {\r\n <span class=\"text-current\">\r\n <span>{{ (page.label === '...') ? page.label : (page.label | number:'') }}</span>\r\n </span>\r\n }\r\n </li>\r\n }\r\n </div> \r\n <li class=\"pl-4\">\r\n <button type=\"button\" class=\"flex items-center\" mat-icon-button [disabled]=\"p.getCurrent()===p.getLastPage()\"\r\n (click)=\"p.next()\">\r\n <mat-icon svgIcon=\"mat_outline:navigate_next\"></mat-icon>\r\n </button>\r\n </li>\r\n <li>\r\n <button type=\"button\" class=\"flex items-center\" mat-icon-button [disabled]=\"p.getCurrent()===p.getLastPage()\"\r\n (click)=\"p.goLastPage()\">\r\n <mat-icon svgIcon=\"mat_outline:last_page\"></mat-icon>\r\n </button>\r\n </li>\r\n <li class=\"hidden md:block px-2\">\r\n <mat-form-field [ngStyle]=\"{'width':((p.getLastPage()?.toString()?.length||0)*8+64)+'px'}\">\r\n <input #current matInput type=\"text\" cmatDigitOnly class=\"text-end\"\r\n [value]=\"p.getCurrent()\" [autocomplete]=\"'off'\" [min]=\"0\" [max]=\"p.getLastPage()||0\"\r\n (keyup.enter)=\"p.setCurrent(current.value)\">\r\n <span matSuffix>/<div class=\"pl-1\">{{p.getLastPage()}}</div></span>\r\n </mat-form-field>\r\n </li>\r\n <li class=\"hidden md:block\">\r\n <mat-form-field class=\"w-24\">\r\n <mat-select #pageCount name=\"pageCount\" [value]=\"initPerPage\"\r\n (selectionChange)=\"p.setItemsPerPage(pageCount.value)\">\r\n @for (perPage of itemsPerPages; track perPage) {\r\n <mat-option [value]=\"perPage\">\r\n {{perPage}}\r\n </mat-option>\r\n }\r\n </mat-select>\r\n </mat-form-field>\r\n </li>\r\n </ul>\r\n }\r\n </nav>\r\n </pagination-template>","import { Pipe, PipeTransform } from '@angular/core';\r\nimport { isNil } from 'lodash-es';\r\nimport { CmatPaginationInstance } from './pagination.instance';\r\nimport { CmatPaginationService } from './pagination.service';\r\n\r\nconst LARGE_NUMBER = Number.MAX_SAFE_INTEGER;\r\n\r\nexport type Collection<T> = T[];\r\n\r\nexport interface CmatPaginatePipeArgs {\r\n id?: string;\r\n currentPage: string | number;\r\n itemsPerPage: string | number;\r\n totalItems: string | number;\r\n}\r\n\r\nexport interface CmatPipeState {\r\n collection: any[];\r\n size: number;\r\n start?: number;\r\n end?: number;\r\n slice: any[];\r\n}\r\n\r\n@Pipe({\r\n name: 'paginate',\r\n pure: true,\r\n standalone: true\r\n})\r\nexport class CmatPaginatePipe implements PipeTransform {\r\n private state: Record<string, CmatPipeState> = {};\r\n\r\n constructor(private service: CmatPaginationService) {\r\n }\r\n\r\n public transform<T, U extends Collection<T>>(collection: U, args: CmatPaginatePipeArgs): U {\r\n if (!(collection instanceof Array)) {\r\n const _id = args.id ?? this.service.defaultId();\r\n if (this.state[_id]) {\r\n return this.state[_id].slice as U;\r\n } else {\r\n return collection;\r\n }\r\n }\r\n\r\n const serverSideMode = args.totalItems && args.totalItems !== collection.length;\r\n const instance = this.createInstance(collection, args);\r\n\r\n const id = instance.id!;\r\n let start;\r\n let end;\r\n let perPage = args.itemsPerPage;\r\n\r\n const emitChange = this.service.register(instance);\r\n\r\n if (!serverSideMode && collection instanceof Array) {\r\n perPage = +perPage || LARGE_NUMBER;\r\n start = (instance.currentPage - 1) * perPage;\r\n end = start + perPage;\r\n\r\n const isIdentical = this._stateIsIdentical(id, collection, start, end);\r\n if (isIdentical) {\r\n return this.state[id].slice as U;\r\n } else {\r\n const slice = collection.slice(start, end);\r\n this._saveState(id, collection, slice, start, end);\r\n this.service.change.emit(id);\r\n return slice as U;\r\n }\r\n } else {\r\n if (emitChange) {\r\n this.service.change.emit(id);\r\n }\r\n\r\n this._saveState(id, collection, collection, start, end);\r\n\r\n return collection;\r\n }\r\n\r\n }\r\n\r\n private createInstance(collection: any[], config: CmatPaginatePipeArgs): CmatPaginationInstance {\r\n this.checkConfig(config);\r\n\r\n return {\r\n id: !isNil(config.id) ? config.id : this.service.defaultId(),\r\n itemsPerPage: +config.itemsPerPage || 10,\r\n currentPage: +config.currentPage || 1,\r\n totalItems: +config.totalItems || collection.length\r\n };\r\n }\r\n\r\n private checkConfig(config: CmatPaginatePipeArgs): void {\r\n const required = ['itemsPerPage', 'currentPage'];\r\n\r\n const missing = required.filter(prop => !(prop in config));\r\n if (0 < missing.length) {\r\n throw new Error(`PaginatePipe: Argument is missing the following required properties: ${missing.join(', ')}`);\r\n }\r\n }\r\n\r\n private _saveState(id: string, collection: any[], slice: any[], start?: number, end?: number): void {\r\n this.state[id] = {\r\n collection,\r\n size: collection.length,\r\n slice,\r\n start,\r\n end\r\n };\r\n }\r\n\r\n private _stateIsIdentical(id: string, collection: any[], start: number, end: number): boolean {\r\n const state = this.state[id];\r\n if (!state) {\r\n return false;\r\n }\r\n const isMetaDataIdentical = state.size === collection.length &&\r\n state.start === start &&\r\n state.end === end;\r\n\r\n if (!isMetaDataIdentical) {\r\n return false;\r\n }\r\n\r\n return state.slice.every((element, index) => element === collection[start + index]);\r\n }\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.CmatPaginationService"],"mappings":";;;;;;;;;;;;;;;;;;MAMa,qBAAqB,CAAA;AAHlC,IAAA,WAAA,GAAA;AAIW,QAAA,IAAA,CAAA,MAAM,GAAyB,IAAI,YAAY,EAAU;QAExD,IAAU,CAAA,UAAA,GAA2C,EAAE;QACvD,IAAoB,CAAA,oBAAA,GAAG,uBAAuB;AAmFzD;AAjFU,IAAA,SAA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K;YACL;SACH;;AAGG,IAAA,iBAAiB,CAAC,EAAU,EAAE,UAAiB,EAAE,KAAa,EAAE,GAAW,EAAA;QAC/E,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;QAC5B,IAAI,CAAC,KAAK,EAAE;AACR,YAAA,OAAO,KAAK;;QAEhB,MAAM,mBAAmB,GAAG,KAAK,CAAC,IAAI,KAAK,UAAU,CAAC,MAAM;YACxD,KAAK,CAAC,KAAK,KAAK,KAAK;AACrB,YAAA,KAAK,CAAC,GAAG,KAAK,GAAG;QAErB,IAAI,CAAC,mBAAmB,EAAE;AACtB,YAAA,OAAO,KAAK;;QAGhB,OAAO,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE,KAAK,KAAK,OAAO,KAAK,UAAU,CAAC,KAAK,GAAG,KAAK,CAAC,CAAC;;8GA/F9E,gBAAgB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAAA,qBAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;4GAAhB,gBAAgB,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,UAAA,EAAA,CAAA,CAAA;;2FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAL5B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,IAAI,EAAE,UAAU;AAChB,oBAAA,IAAI,EAAE,IAAI;AACV,oBAAA,UAAU,EAAE;AACf,iBAAA;;;AC5BD;;AAEG;;;;"}
1
+ {"version":3,"file":"cmat-components-pagination.mjs","sources":["../../../projects/cmat/components/pagination/pagination.service.ts","../../../projects/cmat/components/pagination/pagination.directive.ts","../../../projects/cmat/components/pagination/pagination.component.ts","../../../projects/cmat/components/pagination/pagination.component.html","../../../projects/cmat/components/pagination/pagination.pipe.ts","../../../projects/cmat/components/pagination/cmat-components-pagination.ts"],"sourcesContent":["import { EventEmitter, Injectable } from '@angular/core';\r\nimport { CmatPaginationInstance } from './pagination.instance';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class CmatPaginationService {\r\n public change: EventEmitter<string> = new EventEmitter<string>();\r\n\r\n private _instances: Record<string, CmatPaginationInstance> = {};\r\n private _defaultPaginationId = 'DEFAULT_PAGINATION_ID';\r\n\r\n public defaultId(): string { return this._defaultPaginationId; }\r\n\r\n public register(instance: CmatPaginationInstance): boolean {\r\n instance.id ??= this._defaultPaginationId;\r\n\r\n if (!this._instances[instance.id]) {\r\n this._instances[instance.id] = instance;\r\n return true;\r\n } else {\r\n return this._updateInstance(instance);\r\n }\r\n }\r\n\r\n public getCurrentPage(id: string): number | void {\r\n if (this._instances[id]) {\r\n return this._instances[id].currentPage;\r\n }\r\n }\r\n\r\n public getItemsPerPage(id: string): number | void {\r\n if (this._instances[id]) {\r\n return this._instances[id].itemsPerPage;\r\n }\r\n }\r\n\r\n public setCurrentPage(id: string, page: number): void {\r\n if (this._instances[id]) {\r\n const instance = this._instances[id];\r\n const maxPage = Math.ceil(instance.totalItems / instance.itemsPerPage);\r\n if (page <= maxPage && 1 <= page) {\r\n this._instances[id].currentPage = page;\r\n this.change.emit(id);\r\n }\r\n }\r\n }\r\n\r\n public setTotalItems(id: string, totalItems: number): void {\r\n if (this._instances[id] && 0 <= totalItems) {\r\n this._instances[id].totalItems = totalItems;\r\n this.change.emit(id);\r\n }\r\n }\r\n\r\n public setItemsPerPage(id: string, itemsPerPage: number): void {\r\n if (this._instances[id]) {\r\n this._instances[id].itemsPerPage = itemsPerPage;\r\n this.change.emit(id);\r\n }\r\n }\r\n\r\n public getInstance(id: string = this._defaultPaginationId): CmatPaginationInstance {\r\n if (this._instances[id]) {\r\n return this._clone(this._instances[id]);\r\n }\r\n return {} as CmatPaginationInstance;\r\n }\r\n\r\n private _updateInstance(instance: CmatPaginationInstance): boolean {\r\n let changed = false;\r\n if (instance.id) {\r\n for (const prop in this._instances[instance.id]) {\r\n if (instance[prop] !== this._instances[instance.id][prop]) {\r\n this._instances[instance.id][prop] = instance[prop];\r\n changed = true;\r\n }\r\n }\r\n }\r\n return changed;\r\n }\r\n\r\n private _clone(obj: any): any {\r\n const target: any = {};\r\n for (const i in obj) {\r\n if (Object.prototype.hasOwnProperty.call(obj, i)) {\r\n target[i] = obj[i];\r\n }\r\n }\r\n return target;\r\n }\r\n}\r\n","import { ChangeDetectorRef, Directive, EventEmitter, Input, OnChanges, OnDestroy, OnInit, Output, inject } from '@angular/core';\r\nimport { Subject, takeUntil } from 'rxjs';\r\nimport { CmatPaginationInstance } from './pagination.instance';\r\nimport { CmatPaginationService } from './pagination.service';\r\n\r\nexport interface Page {\r\n label: string;\r\n value: any;\r\n}\r\n@Directive({\r\n selector: 'pagination-template,[pagination-template]',\r\n exportAs: 'paginationApi'\r\n})\r\nexport class CmatPaginationDirective implements OnInit, OnChanges, OnDestroy {\r\n @Input() id: string;\r\n @Input() maxSize: number = 7;\r\n @Output() pageChange: EventEmitter<number> = new EventEmitter<number>();\r\n @Output() pageBoundsCorrection: EventEmitter<number> = new EventEmitter<number>();\r\n @Output() perPageCountChange: EventEmitter<number> = new EventEmitter<number>();\r\n\r\n pages: Page[] = [];\r\n\r\n private service = inject(CmatPaginationService);\r\n private changeDetectorRef = inject(ChangeDetectorRef);\r\n\r\n private _unsubscribeAll: Subject<any> = new Subject<any>();\r\n\r\n constructor() {\r\n this.service.change.pipe(\r\n takeUntil(this._unsubscribeAll))\r\n .subscribe((id) => {\r\n if (this.id === id) {\r\n this._updatePageLinks();\r\n this.changeDetectorRef.markForCheck();\r\n }\r\n });\r\n }\r\n\r\n ngOnInit(): void {\r\n this.id ??= this.service.defaultId();\r\n this._updatePageLinks();\r\n }\r\n\r\n ngOnChanges(): void {\r\n this._updatePageLinks();\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this._unsubscribeAll.next(void 0);\r\n this._unsubscribeAll.complete();\r\n }\r\n\r\n previous(): void {\r\n if (!this.isFirstPage()) {\r\n this._checkValidId();\r\n\r\n const current = this.getCurrent();\r\n if (current)\r\n this.setCurrent(current - 1);\r\n }\r\n }\r\n\r\n next(): void {\r\n if (!this.isLastPage()) {\r\n this._checkValidId();\r\n\r\n const current = this.getCurrent();\r\n if (current)\r\n this.setCurrent(current + 1);\r\n }\r\n }\r\n\r\n goFirstPage(): void {\r\n if (!this.isFirstPage()) {\r\n this._checkValidId();\r\n\r\n this.setCurrent(1);\r\n }\r\n }\r\n\r\n goLastPage(): void {\r\n if (!this.isLastPage()) {\r\n this._checkValidId();\r\n\r\n const lastPage = this.getLastPage();\r\n if (lastPage)\r\n this.setCurrent(lastPage);\r\n }\r\n }\r\n\r\n isFirstPage(): boolean {\r\n return this.getCurrent() === 1;\r\n }\r\n\r\n isLastPage(): boolean {\r\n return this.getLastPage() === this.getCurrent();\r\n }\r\n\r\n setCurrent(page: number | string): void {\r\n this.pageChange.emit(page as number);\r\n }\r\n\r\n getCurrent(): number | void {\r\n return this.service.getCurrentPage(this.id);\r\n }\r\n\r\n getLastPage(): number | void {\r\n const inst = this.service.getInstance(this.id);\r\n if (inst.totalItems < 1) {\r\n // when there are 0 or fewer (an error case) items, there are no \"pages\" as such,\r\n // but it makes sense to consider a single, empty page as the last page.\r\n return 1;\r\n }\r\n return Math.ceil(inst.totalItems / inst.itemsPerPage);\r\n }\r\n\r\n getTotalItems(): number | void {\r\n return this.service.getInstance(this.id).totalItems;\r\n }\r\n\r\n setItemsPerPage(count: number): void {\r\n this.service.setItemsPerPage(this.id, count);\r\n\r\n this.perPageCountChange.emit(count);\r\n const inst = this.service.getInstance(this.id);\r\n this.setCurrent(this._outOfBoundCorrection(inst));\r\n }\r\n\r\n private _checkValidId(): void {\r\n if (this.service.getInstance(this.id).id == null) {\r\n console.warn(`PaginationControlsDirective: the specified id \"${this.id}\" does not match any registered PaginationInstance`);\r\n }\r\n }\r\n\r\n private _updatePageLinks(): void {\r\n const inst = this.service.getInstance(this.id);\r\n const correctedCurrentPage = this._outOfBoundCorrection(inst);\r\n\r\n if (correctedCurrentPage !== inst.currentPage) {\r\n setTimeout(() => {\r\n this.pageBoundsCorrection.emit(correctedCurrentPage);\r\n this.pages = this._createPageArray(inst.currentPage, inst.itemsPerPage, inst.totalItems, this.maxSize);\r\n });\r\n } else {\r\n this.pages = this._createPageArray(inst.currentPage, inst.itemsPerPage, inst.totalItems, this.maxSize);\r\n }\r\n }\r\n\r\n private _outOfBoundCorrection(instance: CmatPaginationInstance): number {\r\n const totalPages = Math.ceil(instance.totalItems / instance.itemsPerPage);\r\n if (totalPages < instance.currentPage && 0 < totalPages) {\r\n return totalPages;\r\n } else if (instance.currentPage < 1) {\r\n return 1;\r\n }\r\n\r\n return instance.currentPage;\r\n }\r\n\r\n private _createPageArray(currentPage: number, itemsPerPage: number, totalItems: number, paginationRange: number): Page[] {\r\n paginationRange = +paginationRange;\r\n const pages = [];\r\n\r\n const totalPages = Math.max(Math.ceil(totalItems / itemsPerPage), 1);\r\n const halfWay = Math.ceil(paginationRange / 2);\r\n\r\n const isStart = currentPage <= halfWay;\r\n const isEnd = totalPages - halfWay < currentPage;\r\n const isMiddle = !isStart && !isEnd;\r\n\r\n const ellipsesNeeded = paginationRange < totalPages;\r\n let i = 1;\r\n\r\n while (i <= totalPages && i <= paginationRange) {\r\n let label: any;\r\n const pageNumber = this._calculatePageNumber(i, currentPage, paginationRange, totalPages);\r\n const openingEllipsesNeeded = (i === 2 && (isMiddle || isEnd));\r\n const closingEllipsesNeeded = (i === paginationRange - 1 && (isMiddle || isStart));\r\n if (ellipsesNeeded && (openingEllipsesNeeded || closingEllipsesNeeded)) {\r\n label = '...';\r\n } else {\r\n label = pageNumber;\r\n }\r\n pages.push({\r\n label: label,\r\n value: pageNumber\r\n });\r\n i++;\r\n }\r\n\r\n return pages;\r\n }\r\n\r\n private _calculatePageNumber(i: number, currentPage: number, paginationRange: number, totalPages: number): number {\r\n const halfWay = Math.ceil(paginationRange / 2);\r\n if (i === paginationRange) {\r\n return totalPages;\r\n } else if (i === 1) {\r\n return i;\r\n } else if (paginationRange < totalPages) {\r\n if (totalPages - halfWay < currentPage) {\r\n return totalPages - paginationRange + i;\r\n } else if (halfWay < currentPage) {\r\n return currentPage - halfWay + i;\r\n } else {\r\n return i;\r\n }\r\n } else {\r\n return i;\r\n }\r\n }\r\n}\r\n","import { DecimalPipe, NgStyle } from '@angular/common';\r\nimport { ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, Input, OnInit, Output, ViewEncapsulation, inject } from '@angular/core';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { MatFormFieldModule } from '@angular/material/form-field';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatInputModule } from '@angular/material/input';\r\nimport { MatSelectModule } from '@angular/material/select';\r\nimport { Subject, takeUntil } from 'rxjs';\r\nimport { CmatDigitOnlyDirective } from 'cmat/directives/digit-only';\r\nimport { CmatMediaWatcherService } from 'cmat/services/media-watcher';\r\nimport { CmatPaginationDirective } from './pagination.directive';\r\n\r\n@Component({\r\n selector: 'cmat-pagination',\r\n templateUrl: './pagination.component.html',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n exportAs: 'cmatPagination',\r\n imports: [CmatPaginationDirective, MatIconModule, NgStyle, MatFormFieldModule, MatInputModule, CmatDigitOnlyDirective, MatSelectModule, DecimalPipe, MatButtonModule]\r\n})\r\nexport class CmatPaginationComponent implements OnInit {\r\n @Output() pageChange: EventEmitter<number> = new EventEmitter<number>();\r\n @Output() pageBoundsCorrection: EventEmitter<number> = new EventEmitter<number>();\r\n @Output() perPageCountChange: EventEmitter<number> = new EventEmitter<number>();\r\n\r\n @Input() id: string;\r\n @Input() maxSize: number = 7;\r\n\r\n @Input() itemsPerPages: number[] = [10, 20, 30];\r\n @Input() initPerPage: number = 10;\r\n\r\n isScreenSmall: boolean;\r\n\r\n private _cmatMediaWatcherService = inject(CmatMediaWatcherService);\r\n private _changeDetectorRef = inject(ChangeDetectorRef);\r\n\r\n private _autoHide: boolean = false;\r\n private _unsubscribeAll: Subject<void> = new Subject<void>();\r\n\r\n @Input()\r\n get autoHide(): boolean {\r\n return this._autoHide;\r\n }\r\n set autoHide(value: boolean) {\r\n this._autoHide = !!value;\r\n }\r\n\r\n ngOnInit(): void {\r\n this._cmatMediaWatcherService.onMediaChange$\r\n .pipe(takeUntil(this._unsubscribeAll))\r\n .subscribe(({ matchingAliases }) => {\r\n this.isScreenSmall = !matchingAliases.includes('md');\r\n this._changeDetectorRef.markForCheck();\r\n });\r\n }\r\n}\r\n","<pagination-template #p=\"paginationApi\" class=\"w-full px-4 py-2 flex\" [id]=\"id\"\r\n [maxSize]=\"isScreenSmall&&maxSize>5?5:maxSize\" (pageChange)=\"pageChange.emit($event)\"\r\n (pageBoundsCorrection)=\"pageBoundsCorrection.emit($event)\" (perPageCountChange)=\"perPageCountChange.emit($event)\">\r\n <div class=\"hidden md:flex flex-auto items-center\">\r\n <span>总计:{{p.getTotalItems()}}</span>\r\n </div>\r\n <nav role=\"navigation\" class=\"flex min-h-12 w-full md:w-0\">\r\n @if (!(autoHide && p.pages.length <= 1)) {\r\n <ul\r\n class=\"flex flex-row items-center justify-center md:justify-end w-full\">\r\n <li>\r\n <button type=\"button\" class=\"flex items-center\" mat-icon-button [disabled]=\"p.getCurrent()===1\"\r\n (click)=\"p.goFirstPage()\">\r\n <mat-icon svgIcon=\"mat_outline:first_page\"></mat-icon>\r\n </button>\r\n </li>\r\n <li class=\"pr-4\">\r\n <button type=\"button\" class=\"flex items-center\" mat-icon-button [disabled]=\"p.getCurrent()===1\"\r\n (click)=\"p.previous()\">\r\n <mat-icon svgIcon=\"mat_outline:navigate_before\"></mat-icon>\r\n </button>\r\n </li>\r\n <div class=\"flex flex-row gap-4\">\r\n @for (page of p.pages; track $index) {\r\n <li class=\"flex text-xl lg:text-2xl\">\r\n @if (p.getCurrent() !== page.value) {\r\n <a tabindex=\"0\" role=\"presentation\"\r\n class=\"cursor-pointer text-gray-400 hover:text-current\" (click)=\"p.setCurrent(page.value)\">\r\n <span>{{ (page.label === '...') ? page.label : (page.label | number:'') }}</span>\r\n </a>\r\n }\r\n @if (p.getCurrent() === page.value) {\r\n <span class=\"text-current\">\r\n <span>{{ (page.label === '...') ? page.label : (page.label | number:'') }}</span>\r\n </span>\r\n }\r\n </li>\r\n }\r\n </div> \r\n <li class=\"pl-4\">\r\n <button type=\"button\" class=\"flex items-center\" mat-icon-button [disabled]=\"p.getCurrent()===p.getLastPage()\"\r\n (click)=\"p.next()\">\r\n <mat-icon svgIcon=\"mat_outline:navigate_next\"></mat-icon>\r\n </button>\r\n </li>\r\n <li>\r\n <button type=\"button\" class=\"flex items-center\" mat-icon-button [disabled]=\"p.getCurrent()===p.getLastPage()\"\r\n (click)=\"p.goLastPage()\">\r\n <mat-icon svgIcon=\"mat_outline:last_page\"></mat-icon>\r\n </button>\r\n </li>\r\n <li class=\"hidden md:block px-2\">\r\n <mat-form-field [ngStyle]=\"{'width':((p.getLastPage()?.toString()?.length||0)*8+64)+'px'}\">\r\n <input #current matInput type=\"text\" cmatDigitOnly class=\"text-end\"\r\n [value]=\"p.getCurrent()\" [autocomplete]=\"'off'\" [min]=\"0\" [max]=\"p.getLastPage()||0\"\r\n (keyup.enter)=\"p.setCurrent(current.value)\">\r\n <span matSuffix>/<div class=\"pl-1\">{{p.getLastPage()}}</div></span>\r\n </mat-form-field>\r\n </li>\r\n <li class=\"hidden md:block\">\r\n <mat-form-field class=\"w-24\">\r\n <mat-select #pageCount name=\"pageCount\" [value]=\"initPerPage\"\r\n (selectionChange)=\"p.setItemsPerPage(pageCount.value)\">\r\n @for (perPage of itemsPerPages; track perPage) {\r\n <mat-option [value]=\"perPage\">\r\n {{perPage}}\r\n </mat-option>\r\n }\r\n </mat-select>\r\n </mat-form-field>\r\n </li>\r\n </ul>\r\n }\r\n </nav>\r\n </pagination-template>","import { Pipe, PipeTransform, inject } from '@angular/core';\r\nimport { isNil } from 'lodash-es';\r\nimport { CmatPaginationInstance } from './pagination.instance';\r\nimport { CmatPaginationService } from './pagination.service';\r\n\r\nconst LARGE_NUMBER = Number.MAX_SAFE_INTEGER;\r\n\r\nexport type Collection<T> = T[];\r\n\r\nexport interface CmatPaginatePipeArgs {\r\n id?: string;\r\n currentPage: string | number;\r\n itemsPerPage: string | number;\r\n totalItems: string | number;\r\n}\r\n\r\nexport interface CmatPipeState {\r\n collection: any[];\r\n size: number;\r\n start?: number;\r\n end?: number;\r\n slice: any[];\r\n}\r\n\r\n@Pipe({\r\n name: 'paginate',\r\n pure: true\r\n})\r\nexport class CmatPaginatePipe implements PipeTransform {\r\n private service = inject(CmatPaginationService);\r\n\r\n private state: Record<string, CmatPipeState> = {};\r\n\r\n public transform<T, U extends Collection<T>>(collection: U, args: CmatPaginatePipeArgs): U {\r\n if (!(collection instanceof Array)) {\r\n const _id = args.id ?? this.service.defaultId();\r\n if (this.state[_id]) {\r\n return this.state[_id].slice as U;\r\n } else {\r\n return collection;\r\n }\r\n }\r\n\r\n const serverSideMode = args.totalItems && args.totalItems !== collection.length;\r\n const instance = this.createInstance(collection, args);\r\n\r\n const id = instance.id!;\r\n let start;\r\n let end;\r\n let perPage = args.itemsPerPage;\r\n\r\n const emitChange = this.service.register(instance);\r\n\r\n if (!serverSideMode && collection instanceof Array) {\r\n perPage = +perPage || LARGE_NUMBER;\r\n start = (instance.currentPage - 1) * perPage;\r\n end = start + perPage;\r\n\r\n const isIdentical = this._stateIsIdentical(id, collection, start, end);\r\n if (isIdentical) {\r\n return this.state[id].slice as U;\r\n } else {\r\n const slice = collection.slice(start, end);\r\n this._saveState(id, collection, slice, start, end);\r\n this.service.change.emit(id);\r\n return slice as U;\r\n }\r\n } else {\r\n if (emitChange) {\r\n this.service.change.emit(id);\r\n }\r\n\r\n this._saveState(id, collection, collection, start, end);\r\n\r\n return collection;\r\n }\r\n\r\n }\r\n\r\n private createInstance(collection: any[], config: CmatPaginatePipeArgs): CmatPaginationInstance {\r\n this.checkConfig(config);\r\n\r\n return {\r\n id: !isNil(config.id) ? config.id : this.service.defaultId(),\r\n itemsPerPage: +config.itemsPerPage || 10,\r\n currentPage: +config.currentPage || 1,\r\n totalItems: +config.totalItems || collection.length\r\n };\r\n }\r\n\r\n private checkConfig(config: CmatPaginatePipeArgs): void {\r\n const required = ['itemsPerPage', 'currentPage'];\r\n\r\n const missing = required.filter(prop => !(prop in config));\r\n if (0 < missing.length) {\r\n throw new Error(`PaginatePipe: Argument is missing the following required properties: ${missing.join(', ')}`);\r\n }\r\n }\r\n\r\n private _saveState(id: string, collection: any[], slice: any[], start?: number, end?: number): void {\r\n this.state[id] = {\r\n collection,\r\n size: collection.length,\r\n slice,\r\n start,\r\n end\r\n };\r\n }\r\n\r\n private _stateIsIdentical(id: string, collection: any[], start: number, end: number): boolean {\r\n const state = this.state[id];\r\n if (!state) {\r\n return false;\r\n }\r\n const isMetaDataIdentical = state.size === collection.length &&\r\n state.start === start &&\r\n state.end === end;\r\n\r\n if (!isMetaDataIdentical) {\r\n return false;\r\n }\r\n\r\n return state.slice.every((element, index) => element === collection[start + index]);\r\n }\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;MAMa,qBAAqB,CAAA;AAHlC,IAAA,WAAA,GAAA;AAIW,QAAA,IAAA,CAAA,MAAM,GAAyB,IAAI,YAAY,EAAU;QAExD,IAAU,CAAA,UAAA,GAA2C,EAAE;QACvD,IAAoB,CAAA,oBAAA,GAAG,uBAAuB;AAiFzD;AA/EU,IAAA,SAAS,KAAa,OAAO,IAAI,CAAC,oBAAoB,CAAC;AAEvD,IAAA,QAAQ,CAAC,QAAgC,EAAA;AAC5C,QAAA,QAAQ,CAAC,EAAE,KAAK,IAAI,CAAC,oBAAoB;QAEzC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE;YAC/B,IAAI,CAAC,UAAU,CAAC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AAO,KAAK,UAAU,CAAC,KAAK,GAAG,KAAK,CAAC,CAAC;;8GA9F9E,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;4GAAhB,gBAAgB,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,UAAA,EAAA,CAAA,CAAA;;2FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAJ5B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,IAAI,EAAE,UAAU;AAChB,oBAAA,IAAI,EAAE;AACT,iBAAA;;;AC3BD;;AAEG;;;;"}
@@ -20,10 +20,10 @@ class CmatPassToggleVisibilityComponent {
20
20
  get type() {
21
21
  return this.isVisible ? 'text' : 'password';
22
22
  }
23
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: CmatPassToggleVisibilityComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
24
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.9", type: CmatPassToggleVisibilityComponent, isStandalone: true, selector: "cmat-pass-toggle-visibility", inputs: { isVisible: "isVisible", tabindex: "tabindex" }, exportAs: ["cmatPassToggleVisibility"], ngImport: i0, template: "<button type=\"button\" class=\"mat-icon-button cdk-focused cdk-mouse-focused\" mat-icon-button\r\n matRipple [matRippleCentered]=\"true\" [attr.tabindex]=\"tabindex ? tabindex : null\" (click)=\"isVisible = !isVisible\">\r\n <mat-icon svgIcon=\"{{isVisible ? 'mat_outline:visibility' : 'mat_outline:visibility_off' }}\"></mat-icon>\r\n</button>", dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "ngmodule", type: MatRippleModule }, { kind: "directive", type: i2.MatRipple, selector: "[mat-ripple], [matRipple]", inputs: ["matRippleColor", "matRippleUnbounded", "matRippleCentered", "matRippleRadius", "matRippleAnimation", "matRippleDisabled", "matRippleTrigger"], exportAs: ["matRipple"] }, { 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 }); }
23
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: CmatPassToggleVisibilityComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
24
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.2", type: CmatPassToggleVisibilityComponent, isStandalone: true, selector: "cmat-pass-toggle-visibility", inputs: { isVisible: "isVisible", tabindex: "tabindex" }, exportAs: ["cmatPassToggleVisibility"], ngImport: i0, template: "<button type=\"button\" class=\"mat-icon-button cdk-focused cdk-mouse-focused\" mat-icon-button\r\n matRipple [matRippleCentered]=\"true\" [attr.tabindex]=\"tabindex ? tabindex : null\" (click)=\"isVisible = !isVisible\">\r\n <mat-icon svgIcon=\"{{isVisible ? 'mat_outline:visibility' : 'mat_outline:visibility_off' }}\"></mat-icon>\r\n</button>", dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatRippleModule }, { kind: "directive", type: i2.MatRipple, selector: "[mat-ripple], [matRipple]", inputs: ["matRippleColor", "matRippleUnbounded", "matRippleCentered", "matRippleRadius", "matRippleAnimation", "matRippleDisabled", "matRippleTrigger"], exportAs: ["matRipple"] }, { 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 }); }
25
25
  }
26
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: CmatPassToggleVisibilityComponent, decorators: [{
26
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: CmatPassToggleVisibilityComponent, decorators: [{
27
27
  type: Component,
28
28
  args: [{ selector: 'cmat-pass-toggle-visibility', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, exportAs: 'cmatPassToggleVisibility', imports: [MatButtonModule, MatRippleModule, MatIconModule], template: "<button type=\"button\" class=\"mat-icon-button cdk-focused cdk-mouse-focused\" mat-icon-button\r\n matRipple [matRippleCentered]=\"true\" [attr.tabindex]=\"tabindex ? tabindex : null\" (click)=\"isVisible = !isVisible\">\r\n <mat-icon svgIcon=\"{{isVisible ? 'mat_outline:visibility' : 'mat_outline:visibility_off' }}\"></mat-icon>\r\n</button>" }]
29
29
  }], propDecorators: { isVisible: [{
@@ -227,40 +227,40 @@ class CmatPasswordStrengthComponent {
227
227
  this.containAtLeastOneLowerCaseLetter =
228
228
  this.criteriaMap
229
229
  .get(Criteria.at_least_one_lower_case_char)?.test(this.password);
230
- return this.containAtLeastOneLowerCaseLetter || false;
230
+ return this.containAtLeastOneLowerCaseLetter ?? false;
231
231
  }
232
232
  _containAtLeastOneUpperCaseLetter() {
233
233
  this.containAtLeastOneUpperCaseLetter =
234
234
  this.criteriaMap
235
235
  .get(Criteria.at_least_one_upper_case_char)?.test(this.password);
236
- return this.containAtLeastOneUpperCaseLetter || false;
236
+ return this.containAtLeastOneUpperCaseLetter ?? false;
237
237
  }
238
238
  _containAtLeastOneDigit() {
239
239
  this.containAtLeastOneDigit =
240
240
  this.criteriaMap
241
241
  .get(Criteria.at_least_one_digit_char)?.test(this.password);
242
- return this.containAtLeastOneDigit || false;
242
+ return this.containAtLeastOneDigit ?? false;
243
243
  }
244
244
  _containAtLeastOneSpecialChar() {
245
245
  this.containAtLeastOneSpecialChar =
246
246
  this.criteriaMap
247
247
  .get(Criteria.at_least_one_special_char)?.test(this.password);
248
- return this.containAtLeastOneSpecialChar || false;
248
+ return this.containAtLeastOneSpecialChar ?? false;
249
249
  }
250
250
  _containCustomChars() {
251
251
  this.containAtCustomChars =
252
252
  this.criteriaMap
253
253
  .get(Criteria.at_custom_chars)?.test(this.password);
254
- return this.containAtCustomChars || false;
254
+ return this.containAtCustomChars ?? false;
255
255
  }
256
256
  _checkPassword() {
257
257
  this.calculatePasswordStrength();
258
258
  this.passwordConfirmationFormControl.updateValueAndValidity();
259
259
  }
260
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: CmatPasswordStrengthComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
261
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.9", type: CmatPasswordStrengthComponent, isStandalone: true, selector: "cmat-password-strength", inputs: { password: "password", externalError: "externalError", enableLengthRule: "enableLengthRule", enableLowerCaseLetterRule: "enableLowerCaseLetterRule", enableUpperCaseLetterRule: "enableUpperCaseLetterRule", enableDigitRule: "enableDigitRule", enableSpecialCharRule: "enableSpecialCharRule", min: "min", max: "max", customValidator: "customValidator", warnThreshold: "warnThreshold", accentThreshold: "accentThreshold" }, outputs: { strengthChanged: "strengthChanged" }, exportAs: ["cmatPasswordStrength"], usesOnChanges: true, ngImport: i0, template: "<mat-progress-bar mode=\"determinate\" [color]=\"color\" [value]=\"strength\"></mat-progress-bar>", dependencies: [{ kind: "ngmodule", type: MatProgressBarModule }, { kind: "component", type: i1$1.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
260
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: CmatPasswordStrengthComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
261
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.2", type: CmatPasswordStrengthComponent, isStandalone: true, selector: "cmat-password-strength", inputs: { password: "password", externalError: "externalError", enableLengthRule: "enableLengthRule", enableLowerCaseLetterRule: "enableLowerCaseLetterRule", enableUpperCaseLetterRule: "enableUpperCaseLetterRule", enableDigitRule: "enableDigitRule", enableSpecialCharRule: "enableSpecialCharRule", min: "min", max: "max", customValidator: "customValidator", warnThreshold: "warnThreshold", accentThreshold: "accentThreshold" }, outputs: { strengthChanged: "strengthChanged" }, exportAs: ["cmatPasswordStrength"], usesOnChanges: true, ngImport: i0, template: "<mat-progress-bar mode=\"determinate\" [color]=\"color\" [value]=\"strength\"></mat-progress-bar>", dependencies: [{ kind: "ngmodule", type: MatProgressBarModule }, { kind: "component", type: i1$1.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
262
262
  }
263
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: CmatPasswordStrengthComponent, decorators: [{
263
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: CmatPasswordStrengthComponent, decorators: [{
264
264
  type: Component,
265
265
  args: [{ selector: 'cmat-password-strength', exportAs: 'cmatPasswordStrength', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatProgressBarModule], template: "<mat-progress-bar mode=\"determinate\" [color]=\"color\" [value]=\"strength\"></mat-progress-bar>" }]
266
266
  }], propDecorators: { password: [{
@@ -352,8 +352,8 @@ class CmatPasswordStrengthInfoComponent {
352
352
  this.minCharsCriteriaMsg = `包含至少 ${this.passwordComponent.min} 个字符`;
353
353
  }
354
354
  }
355
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: CmatPasswordStrengthInfoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
356
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.9", type: CmatPasswordStrengthInfoComponent, isStandalone: true, selector: "cmat-password-strength-info", inputs: { passwordComponent: "passwordComponent", enableScoreInfo: "enableScoreInfo", lowerCaseCriteriaMsg: "lowerCaseCriteriaMsg", upperCaseCriteriaMsg: "upperCaseCriteriaMsg", digitsCriteriaMsg: "digitsCriteriaMsg", specialCharsCriteriaMsg: "specialCharsCriteriaMsg", customCharsCriteriaMsg: "customCharsCriteriaMsg", minCharsCriteriaMsg: "minCharsCriteriaMsg" }, exportAs: ["cmatPasswordStrengthInfo"], ngImport: i0, template: "<mat-card class=\"info-card\" @list>\r\n <mat-card-content>\r\n @if (passwordComponent.enableLowerCaseLetterRule) {\r\n <div class=\"info-row\" @items>\r\n @if (passwordComponent.containAtLeastOneLowerCaseLetter) {\r\n <mat-icon color=\"primary\" svgIcon=\"mat_outline:done\" @positiveState></mat-icon>\r\n } @else {\r\n <mat-icon color=\"warn\" svgIcon=\"mat_outline:error\" @negativeState></mat-icon>\r\n }\r\n <span>{{lowerCaseCriteriaMsg}}</span>\r\n </div>\r\n }\r\n\r\n @if (passwordComponent.enableUpperCaseLetterRule) {\r\n <div class=\"info-row\" @items>\r\n @if (passwordComponent.containAtLeastOneUpperCaseLetter) {\r\n <mat-icon color=\"primary\" svgIcon=\"mat_outline:done\" @positiveState></mat-icon>\r\n } @else {\r\n <mat-icon color=\"warn\" svgIcon=\"mat_outline:error\" @negativeState></mat-icon>\r\n }\r\n <span>{{upperCaseCriteriaMsg}}</span>\r\n </div>\r\n }\r\n\r\n @if (passwordComponent.enableDigitRule) {\r\n <div class=\"info-row\" @items>\r\n @if (passwordComponent.containAtLeastOneDigit) {\r\n <mat-icon color=\"primary\" svgIcon=\"mat_outline:done\" @positiveState></mat-icon>\r\n } @else {\r\n <mat-icon color=\"warn\" svgIcon=\"mat_outline:error\" @negativeState></mat-icon>\r\n }\r\n <span>{{digitsCriteriaMsg}}</span>\r\n </div>\r\n }\r\n\r\n @if (passwordComponent.enableSpecialCharRule) {\r\n <div class=\"info-row\" @items>\r\n @if (passwordComponent.containAtLeastOneSpecialChar) {\r\n <mat-icon color=\"primary\" svgIcon=\"mat_outline:done\" @positiveState></mat-icon>\r\n } @else {\r\n <mat-icon color=\"warn\" svgIcon=\"mat_outline:error\" @negativeState></mat-icon>\r\n }\r\n <span>{{specialCharsCriteriaMsg}}</span>\r\n </div>\r\n }\r\n\r\n @if (passwordComponent.enableLengthRule) {\r\n <div class=\"info-row\" @items>\r\n @if (passwordComponent.containAtLeastMinChars) {\r\n <mat-icon color=\"primary\" svgIcon=\"mat_outline:done\" @positiveState></mat-icon>\r\n } @else {\r\n <mat-icon color=\"warn\" svgIcon=\"mat_outline:error\" @negativeState></mat-icon>\r\n }\r\n <span>{{minCharsCriteriaMsg}}</span>\r\n </div>\r\n }\r\n\r\n @if (passwordComponent.customValidator) {\r\n <div class=\"info-row\" @items>\r\n @if (passwordComponent.containAtCustomChars) {\r\n <mat-icon color=\"primary\" svgIcon=\"mat_outline:done\" @positiveState></mat-icon>\r\n } @else {\r\n <mat-icon color=\"warn\" svgIcon=\"mat_outline:error\" @negativeState></mat-icon>\r\n }\r\n <span>{{customCharsCriteriaMsg}}</span>\r\n </div>\r\n }\r\n\r\n @if (enableScoreInfo) {\r\n <div class=\"info-row\" @items>\r\n @if (passwordComponent.strength === 100) {\r\n <mat-icon color=\"primary\" svgIcon=\"mat_outline:done\" @positiveState></mat-icon>\r\n } @else {\r\n <mat-icon color=\"warn\" svgIcon=\"mat_outline:error\" @negativeState></mat-icon>\r\n }\r\n <span>\u5BC6\u7801\u5F3A\u5EA6= {{passwordComponent.strength}} %100</span>\r\n </div>\r\n }\r\n\r\n </mat-card-content>\r\n</mat-card>", styles: ["cmat-password-strength-info{margin-top:20px}cmat-password-strength-info .mat-mdc-card{display:flex;flex-direction:row;flex:1 1 0%;margin:.5rem;box-sizing:border-box;place-content:stretch;align-items:stretch}cmat-password-strength-info .mat-mdc-card .mat-mdc-card-content{display:flex;flex-direction:column;box-sizing:border-box;max-width:100%;place-content:stretch;align-items:stretch}cmat-password-strength-info .mat-mdc-card .mat-mdc-card-content .mat-icon{margin-right:1rem}cmat-password-strength-info .mat-mdc-card .mat-mdc-card-content .info-row{display:flex;flex-direction:row;box-sizing:border-box;align-items:center}\n"], dependencies: [{ kind: "ngmodule", type: MatCardModule }, { kind: "component", type: i1$2.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i1$2.MatCardContent, selector: "mat-card-content" }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], animations: [
355
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: CmatPasswordStrengthInfoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
356
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.2", type: CmatPasswordStrengthInfoComponent, isStandalone: true, selector: "cmat-password-strength-info", inputs: { passwordComponent: "passwordComponent", enableScoreInfo: "enableScoreInfo", lowerCaseCriteriaMsg: "lowerCaseCriteriaMsg", upperCaseCriteriaMsg: "upperCaseCriteriaMsg", digitsCriteriaMsg: "digitsCriteriaMsg", specialCharsCriteriaMsg: "specialCharsCriteriaMsg", customCharsCriteriaMsg: "customCharsCriteriaMsg", minCharsCriteriaMsg: "minCharsCriteriaMsg" }, exportAs: ["cmatPasswordStrengthInfo"], ngImport: i0, template: "<mat-card @list class=\"info-card\">\r\n <mat-card-content>\r\n @if (passwordComponent.enableLowerCaseLetterRule) {\r\n <div @items class=\"info-row\">\r\n @if (passwordComponent.containAtLeastOneLowerCaseLetter) {\r\n <mat-icon @positiveState color=\"primary\" svgIcon=\"mat_outline:done\"></mat-icon>\r\n } @else {\r\n <mat-icon @negativeState color=\"warn\" svgIcon=\"mat_outline:error\"></mat-icon>\r\n }\r\n <span>{{lowerCaseCriteriaMsg}}</span>\r\n </div>\r\n }\r\n\r\n @if (passwordComponent.enableUpperCaseLetterRule) {\r\n <div @items class=\"info-row\">\r\n @if (passwordComponent.containAtLeastOneUpperCaseLetter) {\r\n <mat-icon @positiveState color=\"primary\" svgIcon=\"mat_outline:done\"></mat-icon>\r\n } @else {\r\n <mat-icon @negativeState color=\"warn\" svgIcon=\"mat_outline:error\"></mat-icon>\r\n }\r\n <span>{{upperCaseCriteriaMsg}}</span>\r\n </div>\r\n }\r\n\r\n @if (passwordComponent.enableDigitRule) {\r\n <div @items class=\"info-row\">\r\n @if (passwordComponent.containAtLeastOneDigit) {\r\n <mat-icon @positiveState color=\"primary\" svgIcon=\"mat_outline:done\"></mat-icon>\r\n } @else {\r\n <mat-icon @negativeState color=\"warn\" svgIcon=\"mat_outline:error\"></mat-icon>\r\n }\r\n <span>{{digitsCriteriaMsg}}</span>\r\n </div>\r\n }\r\n\r\n @if (passwordComponent.enableSpecialCharRule) {\r\n <div @items class=\"info-row\">\r\n @if (passwordComponent.containAtLeastOneSpecialChar) {\r\n <mat-icon @positiveState color=\"primary\" svgIcon=\"mat_outline:done\"></mat-icon>\r\n } @else {\r\n <mat-icon @negativeState color=\"warn\" svgIcon=\"mat_outline:error\"></mat-icon>\r\n }\r\n <span>{{specialCharsCriteriaMsg}}</span>\r\n </div>\r\n }\r\n\r\n @if (passwordComponent.enableLengthRule) {\r\n <div @items class=\"info-row\">\r\n @if (passwordComponent.containAtLeastMinChars) {\r\n <mat-icon @positiveState color=\"primary\" svgIcon=\"mat_outline:done\"></mat-icon>\r\n } @else {\r\n <mat-icon @negativeState color=\"warn\" svgIcon=\"mat_outline:error\"></mat-icon>\r\n }\r\n <span>{{minCharsCriteriaMsg}}</span>\r\n </div>\r\n }\r\n\r\n @if (passwordComponent.customValidator) {\r\n <div @items class=\"info-row\">\r\n @if (passwordComponent.containAtCustomChars) {\r\n <mat-icon @positiveState color=\"primary\" svgIcon=\"mat_outline:done\"></mat-icon>\r\n } @else {\r\n <mat-icon @negativeState color=\"warn\" svgIcon=\"mat_outline:error\"></mat-icon>\r\n }\r\n <span>{{customCharsCriteriaMsg}}</span>\r\n </div>\r\n }\r\n\r\n @if (enableScoreInfo) {\r\n <div @items class=\"info-row\">\r\n @if (passwordComponent.strength === 100) {\r\n <mat-icon @positiveState color=\"primary\" svgIcon=\"mat_outline:done\"></mat-icon>\r\n } @else {\r\n <mat-icon @negativeState color=\"warn\" svgIcon=\"mat_outline:error\"></mat-icon>\r\n }\r\n <span>\u5BC6\u7801\u5F3A\u5EA6= {{passwordComponent.strength}} %100</span>\r\n </div>\r\n }\r\n\r\n </mat-card-content>\r\n</mat-card>", styles: ["cmat-password-strength-info{margin-top:20px}cmat-password-strength-info .mat-mdc-card{display:flex;flex-direction:row;flex:1 1 0%;margin:.5rem;box-sizing:border-box;place-content:stretch;align-items:stretch}cmat-password-strength-info .mat-mdc-card .mat-mdc-card-content{display:flex;flex-direction:column;box-sizing:border-box;max-width:100%;place-content:stretch;align-items:stretch}cmat-password-strength-info .mat-mdc-card .mat-mdc-card-content .mat-icon{margin-right:1rem}cmat-password-strength-info .mat-mdc-card .mat-mdc-card-content .info-row{display:flex;flex-direction:row;box-sizing:border-box;align-items:center}\n"], dependencies: [{ kind: "ngmodule", type: MatCardModule }, { kind: "component", type: i1$2.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i1$2.MatCardContent, selector: "mat-card-content" }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], animations: [
357
357
  // nice stagger effect when showing existing elements
358
358
  trigger('list', [
359
359
  transition(':enter', [
@@ -407,7 +407,7 @@ class CmatPasswordStrengthInfoComponent {
407
407
  ]),
408
408
  ], encapsulation: i0.ViewEncapsulation.None }); }
409
409
  }
410
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: CmatPasswordStrengthInfoComponent, decorators: [{
410
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: CmatPasswordStrengthInfoComponent, decorators: [{
411
411
  type: Component,
412
412
  args: [{ selector: 'cmat-password-strength-info', exportAs: 'cmatPasswordStrengthInfo', encapsulation: ViewEncapsulation.None, animations: [
413
413
  // nice stagger effect when showing existing elements
@@ -461,7 +461,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImpor
461
461
  trigger('negativeState', [
462
462
  transition(':enter', useAnimation(shake)),
463
463
  ]),
464
- ], imports: [MatCardModule, MatIconModule], template: "<mat-card class=\"info-card\" @list>\r\n <mat-card-content>\r\n @if (passwordComponent.enableLowerCaseLetterRule) {\r\n <div class=\"info-row\" @items>\r\n @if (passwordComponent.containAtLeastOneLowerCaseLetter) {\r\n <mat-icon color=\"primary\" svgIcon=\"mat_outline:done\" @positiveState></mat-icon>\r\n } @else {\r\n <mat-icon color=\"warn\" svgIcon=\"mat_outline:error\" @negativeState></mat-icon>\r\n }\r\n <span>{{lowerCaseCriteriaMsg}}</span>\r\n </div>\r\n }\r\n\r\n @if (passwordComponent.enableUpperCaseLetterRule) {\r\n <div class=\"info-row\" @items>\r\n @if (passwordComponent.containAtLeastOneUpperCaseLetter) {\r\n <mat-icon color=\"primary\" svgIcon=\"mat_outline:done\" @positiveState></mat-icon>\r\n } @else {\r\n <mat-icon color=\"warn\" svgIcon=\"mat_outline:error\" @negativeState></mat-icon>\r\n }\r\n <span>{{upperCaseCriteriaMsg}}</span>\r\n </div>\r\n }\r\n\r\n @if (passwordComponent.enableDigitRule) {\r\n <div class=\"info-row\" @items>\r\n @if (passwordComponent.containAtLeastOneDigit) {\r\n <mat-icon color=\"primary\" svgIcon=\"mat_outline:done\" @positiveState></mat-icon>\r\n } @else {\r\n <mat-icon color=\"warn\" svgIcon=\"mat_outline:error\" @negativeState></mat-icon>\r\n }\r\n <span>{{digitsCriteriaMsg}}</span>\r\n </div>\r\n }\r\n\r\n @if (passwordComponent.enableSpecialCharRule) {\r\n <div class=\"info-row\" @items>\r\n @if (passwordComponent.containAtLeastOneSpecialChar) {\r\n <mat-icon color=\"primary\" svgIcon=\"mat_outline:done\" @positiveState></mat-icon>\r\n } @else {\r\n <mat-icon color=\"warn\" svgIcon=\"mat_outline:error\" @negativeState></mat-icon>\r\n }\r\n <span>{{specialCharsCriteriaMsg}}</span>\r\n </div>\r\n }\r\n\r\n @if (passwordComponent.enableLengthRule) {\r\n <div class=\"info-row\" @items>\r\n @if (passwordComponent.containAtLeastMinChars) {\r\n <mat-icon color=\"primary\" svgIcon=\"mat_outline:done\" @positiveState></mat-icon>\r\n } @else {\r\n <mat-icon color=\"warn\" svgIcon=\"mat_outline:error\" @negativeState></mat-icon>\r\n }\r\n <span>{{minCharsCriteriaMsg}}</span>\r\n </div>\r\n }\r\n\r\n @if (passwordComponent.customValidator) {\r\n <div class=\"info-row\" @items>\r\n @if (passwordComponent.containAtCustomChars) {\r\n <mat-icon color=\"primary\" svgIcon=\"mat_outline:done\" @positiveState></mat-icon>\r\n } @else {\r\n <mat-icon color=\"warn\" svgIcon=\"mat_outline:error\" @negativeState></mat-icon>\r\n }\r\n <span>{{customCharsCriteriaMsg}}</span>\r\n </div>\r\n }\r\n\r\n @if (enableScoreInfo) {\r\n <div class=\"info-row\" @items>\r\n @if (passwordComponent.strength === 100) {\r\n <mat-icon color=\"primary\" svgIcon=\"mat_outline:done\" @positiveState></mat-icon>\r\n } @else {\r\n <mat-icon color=\"warn\" svgIcon=\"mat_outline:error\" @negativeState></mat-icon>\r\n }\r\n <span>\u5BC6\u7801\u5F3A\u5EA6= {{passwordComponent.strength}} %100</span>\r\n </div>\r\n }\r\n\r\n </mat-card-content>\r\n</mat-card>", styles: ["cmat-password-strength-info{margin-top:20px}cmat-password-strength-info .mat-mdc-card{display:flex;flex-direction:row;flex:1 1 0%;margin:.5rem;box-sizing:border-box;place-content:stretch;align-items:stretch}cmat-password-strength-info .mat-mdc-card .mat-mdc-card-content{display:flex;flex-direction:column;box-sizing:border-box;max-width:100%;place-content:stretch;align-items:stretch}cmat-password-strength-info .mat-mdc-card .mat-mdc-card-content .mat-icon{margin-right:1rem}cmat-password-strength-info .mat-mdc-card .mat-mdc-card-content .info-row{display:flex;flex-direction:row;box-sizing:border-box;align-items:center}\n"] }]
464
+ ], imports: [MatCardModule, MatIconModule], template: "<mat-card @list class=\"info-card\">\r\n <mat-card-content>\r\n @if (passwordComponent.enableLowerCaseLetterRule) {\r\n <div @items class=\"info-row\">\r\n @if (passwordComponent.containAtLeastOneLowerCaseLetter) {\r\n <mat-icon @positiveState color=\"primary\" svgIcon=\"mat_outline:done\"></mat-icon>\r\n } @else {\r\n <mat-icon @negativeState color=\"warn\" svgIcon=\"mat_outline:error\"></mat-icon>\r\n }\r\n <span>{{lowerCaseCriteriaMsg}}</span>\r\n </div>\r\n }\r\n\r\n @if (passwordComponent.enableUpperCaseLetterRule) {\r\n <div @items class=\"info-row\">\r\n @if (passwordComponent.containAtLeastOneUpperCaseLetter) {\r\n <mat-icon @positiveState color=\"primary\" svgIcon=\"mat_outline:done\"></mat-icon>\r\n } @else {\r\n <mat-icon @negativeState color=\"warn\" svgIcon=\"mat_outline:error\"></mat-icon>\r\n }\r\n <span>{{upperCaseCriteriaMsg}}</span>\r\n </div>\r\n }\r\n\r\n @if (passwordComponent.enableDigitRule) {\r\n <div @items class=\"info-row\">\r\n @if (passwordComponent.containAtLeastOneDigit) {\r\n <mat-icon @positiveState color=\"primary\" svgIcon=\"mat_outline:done\"></mat-icon>\r\n } @else {\r\n <mat-icon @negativeState color=\"warn\" svgIcon=\"mat_outline:error\"></mat-icon>\r\n }\r\n <span>{{digitsCriteriaMsg}}</span>\r\n </div>\r\n }\r\n\r\n @if (passwordComponent.enableSpecialCharRule) {\r\n <div @items class=\"info-row\">\r\n @if (passwordComponent.containAtLeastOneSpecialChar) {\r\n <mat-icon @positiveState color=\"primary\" svgIcon=\"mat_outline:done\"></mat-icon>\r\n } @else {\r\n <mat-icon @negativeState color=\"warn\" svgIcon=\"mat_outline:error\"></mat-icon>\r\n }\r\n <span>{{specialCharsCriteriaMsg}}</span>\r\n </div>\r\n }\r\n\r\n @if (passwordComponent.enableLengthRule) {\r\n <div @items class=\"info-row\">\r\n @if (passwordComponent.containAtLeastMinChars) {\r\n <mat-icon @positiveState color=\"primary\" svgIcon=\"mat_outline:done\"></mat-icon>\r\n } @else {\r\n <mat-icon @negativeState color=\"warn\" svgIcon=\"mat_outline:error\"></mat-icon>\r\n }\r\n <span>{{minCharsCriteriaMsg}}</span>\r\n </div>\r\n }\r\n\r\n @if (passwordComponent.customValidator) {\r\n <div @items class=\"info-row\">\r\n @if (passwordComponent.containAtCustomChars) {\r\n <mat-icon @positiveState color=\"primary\" svgIcon=\"mat_outline:done\"></mat-icon>\r\n } @else {\r\n <mat-icon @negativeState color=\"warn\" svgIcon=\"mat_outline:error\"></mat-icon>\r\n }\r\n <span>{{customCharsCriteriaMsg}}</span>\r\n </div>\r\n }\r\n\r\n @if (enableScoreInfo) {\r\n <div @items class=\"info-row\">\r\n @if (passwordComponent.strength === 100) {\r\n <mat-icon @positiveState color=\"primary\" svgIcon=\"mat_outline:done\"></mat-icon>\r\n } @else {\r\n <mat-icon @negativeState color=\"warn\" svgIcon=\"mat_outline:error\"></mat-icon>\r\n }\r\n <span>\u5BC6\u7801\u5F3A\u5EA6= {{passwordComponent.strength}} %100</span>\r\n </div>\r\n }\r\n\r\n </mat-card-content>\r\n</mat-card>", styles: ["cmat-password-strength-info{margin-top:20px}cmat-password-strength-info .mat-mdc-card{display:flex;flex-direction:row;flex:1 1 0%;margin:.5rem;box-sizing:border-box;place-content:stretch;align-items:stretch}cmat-password-strength-info .mat-mdc-card .mat-mdc-card-content{display:flex;flex-direction:column;box-sizing:border-box;max-width:100%;place-content:stretch;align-items:stretch}cmat-password-strength-info .mat-mdc-card .mat-mdc-card-content .mat-icon{margin-right:1rem}cmat-password-strength-info .mat-mdc-card .mat-mdc-card-content .info-row{display:flex;flex-direction:row;box-sizing:border-box;align-items:center}\n"] }]
465
465
  }], propDecorators: { passwordComponent: [{
466
466
  type: Input
467
467
  }], enableScoreInfo: [{