ngx-tethys 18.2.5 → 18.2.7

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 (589) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/carousel/carousel.component.d.ts +2 -2
  3. package/date-picker/date-picker.config.d.ts +1 -1
  4. package/date-picker/lib/calendar/calendar-footer.component.d.ts +2 -2
  5. package/date-picker/lib/date/date-table.component.d.ts +2 -2
  6. package/date-picker/lib/popups/date-popup.component.d.ts +3 -2
  7. package/date-picker/lib/popups/inner-popup.component.d.ts +1 -1
  8. package/date-picker/picker.util.d.ts +3 -3
  9. package/date-range/date-range.component.d.ts +1 -1
  10. package/esm2022/action/action.component.mjs +4 -4
  11. package/esm2022/action/action.module.mjs +5 -5
  12. package/esm2022/action/actions.component.mjs +4 -4
  13. package/esm2022/affix/affix.component.mjs +4 -4
  14. package/esm2022/affix/affix.module.mjs +5 -5
  15. package/esm2022/alert/alert.component.mjs +4 -4
  16. package/esm2022/alert/alert.directive.mjs +4 -4
  17. package/esm2022/alert/alert.module.mjs +5 -5
  18. package/esm2022/anchor/anchor-link.component.mjs +4 -4
  19. package/esm2022/anchor/anchor.component.mjs +4 -4
  20. package/esm2022/anchor/anchor.module.mjs +5 -5
  21. package/esm2022/arrow-switcher/arrow-switcher.component.mjs +4 -4
  22. package/esm2022/arrow-switcher/module.mjs +5 -5
  23. package/esm2022/autocomplete/autocomplete.component.mjs +4 -4
  24. package/esm2022/autocomplete/autocomplete.trigger.directive.mjs +4 -4
  25. package/esm2022/autocomplete/module.mjs +5 -5
  26. package/esm2022/autocomplete/overlay/autocomplete-container.component.mjs +4 -4
  27. package/esm2022/autocomplete/overlay/autocomplete.service.mjs +4 -4
  28. package/esm2022/avatar/avatar-list/avatar-list.component.mjs +4 -4
  29. package/esm2022/avatar/avatar.component.mjs +4 -4
  30. package/esm2022/avatar/avatar.module.mjs +5 -5
  31. package/esm2022/avatar/avatar.pipe.mjs +10 -10
  32. package/esm2022/avatar/avatar.service.mjs +4 -4
  33. package/esm2022/back-top/back-top.component.mjs +4 -4
  34. package/esm2022/back-top/back-top.module.mjs +5 -5
  35. package/esm2022/badge/badge.component.mjs +4 -4
  36. package/esm2022/badge/badge.module.mjs +5 -5
  37. package/esm2022/breadcrumb/breadcrumb-item.component.mjs +4 -4
  38. package/esm2022/breadcrumb/breadcrumb.component.mjs +4 -4
  39. package/esm2022/breadcrumb/module.mjs +5 -5
  40. package/esm2022/button/button-group.component.mjs +4 -4
  41. package/esm2022/button/button-icon.component.mjs +4 -4
  42. package/esm2022/button/button.component.mjs +4 -4
  43. package/esm2022/button/button.module.mjs +5 -5
  44. package/esm2022/calendar/calendar-cells.mjs +7 -7
  45. package/esm2022/calendar/calendar-header.component.mjs +17 -17
  46. package/esm2022/calendar/calendar.component.mjs +6 -6
  47. package/esm2022/calendar/module.mjs +5 -5
  48. package/esm2022/card/card.component.mjs +4 -4
  49. package/esm2022/card/card.module.mjs +5 -5
  50. package/esm2022/card/content.component.mjs +4 -4
  51. package/esm2022/card/header.component.mjs +4 -4
  52. package/esm2022/carousel/carousel-item.directive.mjs +4 -4
  53. package/esm2022/carousel/carousel.component.mjs +13 -13
  54. package/esm2022/carousel/carousel.service.mjs +4 -4
  55. package/esm2022/carousel/module.mjs +5 -5
  56. package/esm2022/cascader/cascader-li.component.mjs +4 -4
  57. package/esm2022/cascader/cascader-search-option.component.mjs +4 -4
  58. package/esm2022/cascader/cascader.component.mjs +4 -4
  59. package/esm2022/cascader/cascader.service.mjs +4 -4
  60. package/esm2022/cascader/module.mjs +5 -5
  61. package/esm2022/checkbox/checkbox.component.mjs +4 -4
  62. package/esm2022/checkbox/module.mjs +5 -5
  63. package/esm2022/collapse/collapse-item.component.mjs +4 -4
  64. package/esm2022/collapse/collapse.component.mjs +4 -4
  65. package/esm2022/collapse/module.mjs +5 -5
  66. package/esm2022/color-picker/color-picker-custom-panel.component.mjs +4 -4
  67. package/esm2022/color-picker/color-picker-panel.component.mjs +4 -4
  68. package/esm2022/color-picker/color-picker.component.mjs +4 -4
  69. package/esm2022/color-picker/coordinates.directive.mjs +4 -4
  70. package/esm2022/color-picker/module.mjs +5 -5
  71. package/esm2022/color-picker/parts/alpha/alpha.component.mjs +4 -4
  72. package/esm2022/color-picker/parts/hue/hue.component.mjs +4 -4
  73. package/esm2022/color-picker/parts/indicator/indicator.component.mjs +4 -4
  74. package/esm2022/color-picker/parts/inputs/inputs.component.mjs +4 -4
  75. package/esm2022/color-picker/parts/saturation/saturation.component.mjs +4 -4
  76. package/esm2022/comment/comment-actions.directive.mjs +4 -4
  77. package/esm2022/comment/comment-content.directive.mjs +4 -4
  78. package/esm2022/comment/comment.component.mjs +4 -4
  79. package/esm2022/comment/comment.module.mjs +5 -5
  80. package/esm2022/copy/copy.directive.mjs +4 -4
  81. package/esm2022/copy/module.mjs +5 -5
  82. package/esm2022/core/click-positioner.mjs +4 -4
  83. package/esm2022/core/overlay/portal-directives.mjs +4 -4
  84. package/esm2022/core/request-animation.mjs +3 -2
  85. package/esm2022/core/scroll.mjs +4 -4
  86. package/esm2022/core/store/store.mjs +4 -4
  87. package/esm2022/core/theme/store.mjs +4 -4
  88. package/esm2022/core/translate.mjs +4 -4
  89. package/esm2022/core/update-host-class.service.mjs +4 -4
  90. package/esm2022/date-picker/abstract-picker.component.mjs +4 -4
  91. package/esm2022/date-picker/abstract-picker.directive.mjs +4 -4
  92. package/esm2022/date-picker/base-picker.component.mjs +4 -4
  93. package/esm2022/date-picker/date-helper.service.mjs +4 -4
  94. package/esm2022/date-picker/date-picker.component.mjs +4 -4
  95. package/esm2022/date-picker/date-picker.config.mjs +12 -13
  96. package/esm2022/date-picker/date-picker.directive.mjs +4 -4
  97. package/esm2022/date-picker/date-picker.module.mjs +5 -5
  98. package/esm2022/date-picker/date-picker.service.mjs +4 -4
  99. package/esm2022/date-picker/lib/calendar/calendar-footer.component.mjs +9 -9
  100. package/esm2022/date-picker/lib/calendar/calendar-header.component.mjs +4 -4
  101. package/esm2022/date-picker/lib/calendar/calendar-table.component.mjs +4 -4
  102. package/esm2022/date-picker/lib/date/date-header.component.mjs +4 -4
  103. package/esm2022/date-picker/lib/date/date-table-cell.component.mjs +4 -4
  104. package/esm2022/date-picker/lib/date/date-table.component.mjs +10 -9
  105. package/esm2022/date-picker/lib/date-carousel/date-carousel.component.mjs +4 -4
  106. package/esm2022/date-picker/lib/decade/decade-header.component.mjs +4 -4
  107. package/esm2022/date-picker/lib/decade/decade-table.component.mjs +4 -4
  108. package/esm2022/date-picker/lib/lib-packer.module.mjs +5 -5
  109. package/esm2022/date-picker/lib/month/month-header.component.mjs +4 -4
  110. package/esm2022/date-picker/lib/month/month-table.component.mjs +4 -4
  111. package/esm2022/date-picker/lib/popups/date-popup.component.mjs +21 -18
  112. package/esm2022/date-picker/lib/popups/inner-popup.component.mjs +6 -6
  113. package/esm2022/date-picker/lib/quarter/quarter-table.component.mjs +4 -4
  114. package/esm2022/date-picker/lib/year/year-header.component.mjs +4 -4
  115. package/esm2022/date-picker/lib/year/year-table.component.mjs +4 -4
  116. package/esm2022/date-picker/month-picker.component.mjs +4 -4
  117. package/esm2022/date-picker/picker.component.mjs +8 -8
  118. package/esm2022/date-picker/picker.pipes.mjs +13 -13
  119. package/esm2022/date-picker/picker.util.mjs +8 -6
  120. package/esm2022/date-picker/picker.validators.mjs +7 -7
  121. package/esm2022/date-picker/quarter-picker.component.mjs +4 -4
  122. package/esm2022/date-picker/range-picker.component.mjs +4 -4
  123. package/esm2022/date-picker/range-picker.directive.mjs +4 -4
  124. package/esm2022/date-picker/week-picker.component.mjs +4 -4
  125. package/esm2022/date-picker/year-picker.component.mjs +4 -4
  126. package/esm2022/date-range/date-range.component.mjs +15 -16
  127. package/esm2022/date-range/module.mjs +5 -5
  128. package/esm2022/date-range/optional-dates/optional-dates.component.mjs +4 -4
  129. package/esm2022/dialog/body/dialog-body.component.mjs +4 -4
  130. package/esm2022/dialog/confirm/confirm.component.mjs +4 -4
  131. package/esm2022/dialog/dialog-container.component.mjs +4 -4
  132. package/esm2022/dialog/dialog.module.mjs +5 -5
  133. package/esm2022/dialog/dialog.service.mjs +4 -4
  134. package/esm2022/dialog/footer/dialog-footer.component.mjs +4 -4
  135. package/esm2022/dialog/header/dialog-header.component.mjs +4 -4
  136. package/esm2022/divider/divider.component.mjs +4 -4
  137. package/esm2022/divider/divider.module.mjs +5 -5
  138. package/esm2022/dot/dot.component.mjs +4 -4
  139. package/esm2022/dot/dot.module.mjs +5 -5
  140. package/esm2022/drag-drop/drag-content.directive.mjs +4 -4
  141. package/esm2022/drag-drop/drag-drop.service.mjs +4 -4
  142. package/esm2022/drag-drop/drag-handle.directive.mjs +4 -4
  143. package/esm2022/drag-drop/drag.directive.mjs +4 -4
  144. package/esm2022/drag-drop/drop-container.directive.mjs +4 -4
  145. package/esm2022/drag-drop/module.mjs +5 -5
  146. package/esm2022/dropdown/dropdown-active.directive.mjs +4 -4
  147. package/esm2022/dropdown/dropdown-menu-item.directive.mjs +22 -22
  148. package/esm2022/dropdown/dropdown-menu.component.mjs +13 -13
  149. package/esm2022/dropdown/dropdown-submenu.component.mjs +4 -4
  150. package/esm2022/dropdown/dropdown.directive.mjs +4 -4
  151. package/esm2022/dropdown/module.mjs +5 -5
  152. package/esm2022/empty/empty.component.mjs +4 -4
  153. package/esm2022/empty/empty.config.mjs +4 -4
  154. package/esm2022/empty/empty.module.mjs +5 -5
  155. package/esm2022/flexible-text/flexible-text.component.mjs +4 -4
  156. package/esm2022/flexible-text/flexible-text.module.mjs +5 -5
  157. package/esm2022/form/form-group-error/form-group-error.component.mjs +4 -4
  158. package/esm2022/form/form-group-label.directive.mjs +4 -4
  159. package/esm2022/form/form-group.component.mjs +4 -4
  160. package/esm2022/form/form-submit.directive.mjs +4 -4
  161. package/esm2022/form/form-validator-loader.mjs +4 -4
  162. package/esm2022/form/form-validator.service.mjs +4 -4
  163. package/esm2022/form/form.directive.mjs +4 -4
  164. package/esm2022/form/from-group-footer/form-group-footer.component.mjs +4 -4
  165. package/esm2022/form/module.mjs +5 -5
  166. package/esm2022/form/validator/confirm-validator.directive.mjs +4 -4
  167. package/esm2022/form/validator/max-validator.directive.mjs +4 -4
  168. package/esm2022/form/validator/min-validator.directive.mjs +4 -4
  169. package/esm2022/form/validator/unique-validator.directive.mjs +4 -4
  170. package/esm2022/fullscreen/fullscreen-launch.directive.mjs +4 -4
  171. package/esm2022/fullscreen/fullscreen.component.mjs +4 -4
  172. package/esm2022/fullscreen/fullscreen.module.mjs +5 -5
  173. package/esm2022/fullscreen/fullscreen.service.mjs +4 -4
  174. package/esm2022/grid/flex.mjs +13 -13
  175. package/esm2022/grid/module.mjs +5 -5
  176. package/esm2022/grid/thy-col.directive.mjs +4 -4
  177. package/esm2022/grid/thy-grid-item.component.mjs +4 -4
  178. package/esm2022/grid/thy-grid.component.mjs +7 -7
  179. package/esm2022/grid/thy-row.directive.mjs +4 -4
  180. package/esm2022/guider/guider-hint/guider-hint.component.mjs +4 -4
  181. package/esm2022/guider/guider-manager.mjs +4 -4
  182. package/esm2022/guider/guider.directive.mjs +4 -4
  183. package/esm2022/guider/guider.module.mjs +5 -5
  184. package/esm2022/guider/guider.service.mjs +4 -4
  185. package/esm2022/i18n/i18n.mjs +1 -1
  186. package/esm2022/i18n/i18n.service.mjs +4 -4
  187. package/esm2022/i18n/locales/de-de.mjs +5 -1
  188. package/esm2022/i18n/locales/en-us.mjs +5 -1
  189. package/esm2022/i18n/locales/ja-jp.mjs +5 -1
  190. package/esm2022/i18n/locales/zh-hans.mjs +5 -1
  191. package/esm2022/i18n/locales/zh-hant.mjs +5 -1
  192. package/esm2022/icon/icon-registry.mjs +5 -5
  193. package/esm2022/icon/icon.component.mjs +4 -4
  194. package/esm2022/icon/icon.module.mjs +6 -7
  195. package/esm2022/image/image-group.component.mjs +4 -4
  196. package/esm2022/image/image.directive.mjs +4 -4
  197. package/esm2022/image/image.service.mjs +4 -4
  198. package/esm2022/image/module.mjs +5 -5
  199. package/esm2022/image/preview/image-preview.component.mjs +4 -4
  200. package/esm2022/input/input-count.component.mjs +4 -4
  201. package/esm2022/input/input-group.component.mjs +4 -4
  202. package/esm2022/input/input-search.component.mjs +4 -4
  203. package/esm2022/input/input.component.mjs +4 -4
  204. package/esm2022/input/input.directive.mjs +4 -4
  205. package/esm2022/input/module.mjs +5 -5
  206. package/esm2022/input-number/input-number.component.mjs +4 -4
  207. package/esm2022/input-number/module.mjs +5 -5
  208. package/esm2022/layout/content-main.component.mjs +7 -7
  209. package/esm2022/layout/content-section.component.mjs +7 -7
  210. package/esm2022/layout/content.component.mjs +7 -7
  211. package/esm2022/layout/header.component.mjs +7 -7
  212. package/esm2022/layout/layout.component.mjs +7 -7
  213. package/esm2022/layout/layout.module.mjs +5 -5
  214. package/esm2022/layout/sidebar-content.component.mjs +7 -7
  215. package/esm2022/layout/sidebar-footer.component.mjs +7 -7
  216. package/esm2022/layout/sidebar-header.component.mjs +7 -7
  217. package/esm2022/layout/sidebar.component.mjs +10 -8
  218. package/esm2022/list/list-item-meta.component.mjs +4 -4
  219. package/esm2022/list/list-item.component.mjs +4 -4
  220. package/esm2022/list/list.component.mjs +4 -4
  221. package/esm2022/list/list.module.mjs +5 -5
  222. package/esm2022/list/selection/selection-list.mjs +4 -4
  223. package/esm2022/loading/loading.component.mjs +4 -4
  224. package/esm2022/loading/loading.module.mjs +5 -5
  225. package/esm2022/mention/mention.directive.mjs +4 -4
  226. package/esm2022/mention/mention.module.mjs +5 -5
  227. package/esm2022/mention/suggestions/suggestions.component.mjs +4 -4
  228. package/esm2022/menu/divider/menu-divider.component.mjs +4 -4
  229. package/esm2022/menu/group/menu-group.component.mjs +4 -4
  230. package/esm2022/menu/item/action/menu-item-action.component.mjs +4 -4
  231. package/esm2022/menu/item/icon/menu-item-icon.component.mjs +4 -4
  232. package/esm2022/menu/item/menu-item.component.mjs +4 -4
  233. package/esm2022/menu/item/name/menu-item-name.component.mjs +4 -4
  234. package/esm2022/menu/menu.component.mjs +4 -4
  235. package/esm2022/menu/menu.module.mjs +5 -5
  236. package/esm2022/message/abstract/abstract-message-container.component.mjs +4 -4
  237. package/esm2022/message/abstract/abstract-message.component.mjs +4 -4
  238. package/esm2022/message/message-container.component.mjs +4 -4
  239. package/esm2022/message/message-queue.service.mjs +4 -4
  240. package/esm2022/message/message.component.mjs +4 -4
  241. package/esm2022/message/message.service.mjs +4 -4
  242. package/esm2022/message/module.mjs +5 -5
  243. package/esm2022/nav/icon-nav/icon-nav-link.directive.mjs +4 -4
  244. package/esm2022/nav/icon-nav/icon-nav.component.mjs +4 -4
  245. package/esm2022/nav/nav-ink-bar.directive.mjs +4 -4
  246. package/esm2022/nav/nav-item.directive.mjs +4 -4
  247. package/esm2022/nav/nav.component.mjs +4 -4
  248. package/esm2022/nav/nav.module.mjs +5 -5
  249. package/esm2022/nav/nav.pipe.mjs +4 -4
  250. package/esm2022/notify/module.mjs +5 -5
  251. package/esm2022/notify/notify-container.component.mjs +4 -4
  252. package/esm2022/notify/notify-queue.service.mjs +4 -4
  253. package/esm2022/notify/notify.component.mjs +4 -4
  254. package/esm2022/notify/notify.service.mjs +4 -4
  255. package/esm2022/pagination/pagination.component.mjs +4 -4
  256. package/esm2022/pagination/pagination.module.mjs +5 -5
  257. package/esm2022/pagination/pagination.pipe.mjs +7 -7
  258. package/esm2022/popover/body/popover-body.component.mjs +4 -4
  259. package/esm2022/popover/header/popover-header.component.mjs +4 -4
  260. package/esm2022/popover/module.mjs +5 -5
  261. package/esm2022/popover/popover-container.component.mjs +4 -4
  262. package/esm2022/popover/popover.directive.mjs +4 -4
  263. package/esm2022/popover/popover.service.mjs +4 -4
  264. package/esm2022/progress/progress-circle.component.mjs +4 -4
  265. package/esm2022/progress/progress-strip.component.mjs +4 -4
  266. package/esm2022/progress/progress.component.mjs +4 -4
  267. package/esm2022/progress/progress.module.mjs +5 -5
  268. package/esm2022/property/module.mjs +5 -5
  269. package/esm2022/property/properties.component.mjs +4 -4
  270. package/esm2022/property/property-item.component.mjs +4 -4
  271. package/esm2022/property-operation/group/property-operation-group.component.mjs +4 -4
  272. package/esm2022/property-operation/module.mjs +5 -5
  273. package/esm2022/property-operation/property-operation.component.mjs +4 -4
  274. package/esm2022/radio/button/radio-button.component.mjs +4 -4
  275. package/esm2022/radio/group/radio-group.component.mjs +4 -4
  276. package/esm2022/radio/module.mjs +5 -5
  277. package/esm2022/radio/radio.component.mjs +4 -4
  278. package/esm2022/rate/module.mjs +5 -5
  279. package/esm2022/rate/rate-item.component.mjs +4 -4
  280. package/esm2022/rate/rate.component.mjs +4 -4
  281. package/esm2022/resizable/module.mjs +5 -5
  282. package/esm2022/resizable/resizable.directive.mjs +4 -4
  283. package/esm2022/resizable/resizable.service.mjs +4 -4
  284. package/esm2022/resizable/resize-handle.component.mjs +4 -4
  285. package/esm2022/resizable/resize-handles.component.mjs +4 -4
  286. package/esm2022/result/result.component.mjs +4 -4
  287. package/esm2022/result/result.module.mjs +5 -5
  288. package/esm2022/segment/segment-item.component.mjs +4 -4
  289. package/esm2022/segment/segment.component.mjs +4 -4
  290. package/esm2022/segment/segment.module.mjs +5 -5
  291. package/esm2022/select/custom-select/custom-select.component.mjs +4 -4
  292. package/esm2022/select/module.mjs +5 -5
  293. package/esm2022/select/native-select/native-select.component.mjs +4 -4
  294. package/esm2022/shared/base-form-check.component.mjs +4 -4
  295. package/esm2022/shared/directives/string-or-template-outlet.directive.mjs +4 -4
  296. package/esm2022/shared/directives/thy-autofocus.directive.mjs +4 -4
  297. package/esm2022/shared/directives/thy-contextmenu.directive.mjs +4 -4
  298. package/esm2022/shared/directives/thy-ctrl-enter.directive.mjs +4 -4
  299. package/esm2022/shared/directives/thy-drag-drop.directive.mjs +4 -4
  300. package/esm2022/shared/directives/thy-enter.directive.mjs +4 -4
  301. package/esm2022/shared/directives/thy-scroll.directive.mjs +4 -4
  302. package/esm2022/shared/directives/thy-show.mjs +4 -4
  303. package/esm2022/shared/directives/thy-stop-propagation.directive.mjs +4 -4
  304. package/esm2022/shared/directives/view-outlet.directive.mjs +4 -4
  305. package/esm2022/shared/ng-transclude.directive.mjs +4 -4
  306. package/esm2022/shared/option/group/option-group.component.mjs +4 -4
  307. package/esm2022/shared/option/list-option/list-option.component.mjs +4 -4
  308. package/esm2022/shared/option/module.mjs +5 -5
  309. package/esm2022/shared/option/option-group.component.mjs +4 -4
  310. package/esm2022/shared/option/option.component.mjs +4 -4
  311. package/esm2022/shared/option/options-container.component.mjs +4 -4
  312. package/esm2022/shared/select/module.mjs +5 -5
  313. package/esm2022/shared/select/select-control/select-control.component.mjs +4 -4
  314. package/esm2022/shared/shared.module.mjs +5 -5
  315. package/esm2022/skeleton/module.mjs +5 -5
  316. package/esm2022/skeleton/skeleton-circle.component.mjs +4 -4
  317. package/esm2022/skeleton/skeleton-rectangle.component.mjs +4 -4
  318. package/esm2022/skeleton/skeleton.component.mjs +4 -4
  319. package/esm2022/skeleton/stylized/bullet-list.component.mjs +4 -4
  320. package/esm2022/skeleton/stylized/list.component.mjs +4 -4
  321. package/esm2022/skeleton/stylized/paragraph.component.mjs +4 -4
  322. package/esm2022/slide/drawer/drawer-container.directive.mjs +4 -4
  323. package/esm2022/slide/slide-body/slide-body-section.component.mjs +4 -4
  324. package/esm2022/slide/slide-body/slide-body.component.mjs +4 -4
  325. package/esm2022/slide/slide-container.component.mjs +4 -4
  326. package/esm2022/slide/slide-footer/slide-footer.component.mjs +4 -4
  327. package/esm2022/slide/slide-header/slide-header.component.mjs +4 -4
  328. package/esm2022/slide/slide-layout/slide-layout.component.mjs +4 -4
  329. package/esm2022/slide/slide-ref.service.mjs +4 -4
  330. package/esm2022/slide/slide.module.mjs +5 -5
  331. package/esm2022/slide/slide.service.mjs +4 -4
  332. package/esm2022/slider/slider.component.mjs +4 -4
  333. package/esm2022/slider/slider.module.mjs +5 -5
  334. package/esm2022/space/space.component.mjs +7 -7
  335. package/esm2022/space/space.module.mjs +5 -5
  336. package/esm2022/statistic/statistic.component.mjs +4 -4
  337. package/esm2022/statistic/statistic.module.mjs +5 -5
  338. package/esm2022/stepper/step-header.component.mjs +4 -4
  339. package/esm2022/stepper/step.component.mjs +4 -4
  340. package/esm2022/stepper/stepper-button.directive.mjs +7 -7
  341. package/esm2022/stepper/stepper.component.mjs +4 -4
  342. package/esm2022/stepper/stepper.module.mjs +5 -5
  343. package/esm2022/strength/strength.component.mjs +4 -4
  344. package/esm2022/strength/strength.module.mjs +5 -5
  345. package/esm2022/switch/switch.component.mjs +4 -4
  346. package/esm2022/switch/switch.module.mjs +5 -5
  347. package/esm2022/table/pipes/drag.pipe.mjs +4 -4
  348. package/esm2022/table/pipes/table.pipe.mjs +4 -4
  349. package/esm2022/table/table-column.component.mjs +4 -4
  350. package/esm2022/table/table-skeleton.component.mjs +4 -4
  351. package/esm2022/table/table.component.mjs +4 -4
  352. package/esm2022/table/table.module.mjs +5 -5
  353. package/esm2022/tabs/tab-content.component.mjs +4 -4
  354. package/esm2022/tabs/tab.component.mjs +4 -4
  355. package/esm2022/tabs/tabs.component.mjs +4 -4
  356. package/esm2022/tabs/tabs.module.mjs +5 -5
  357. package/esm2022/tag/tag.component.mjs +4 -4
  358. package/esm2022/tag/tag.module.mjs +5 -5
  359. package/esm2022/tag/tags.component.mjs +4 -4
  360. package/esm2022/time-picker/inner/inner-time-picker.component.mjs +5 -5
  361. package/esm2022/time-picker/inner/inner-time-picker.config.mjs +4 -4
  362. package/esm2022/time-picker/inner/inner-time-picker.store.mjs +12 -9
  363. package/esm2022/time-picker/time-picker-panel.component.mjs +11 -12
  364. package/esm2022/time-picker/time-picker.component.mjs +17 -19
  365. package/esm2022/time-picker/time-picker.module.mjs +5 -5
  366. package/esm2022/time-picker/time-picker.utils.mjs +14 -8
  367. package/esm2022/timeline/timeline-item.component.mjs +4 -4
  368. package/esm2022/timeline/timeline.component.mjs +4 -4
  369. package/esm2022/timeline/timeline.module.mjs +5 -5
  370. package/esm2022/timeline/timeline.service.mjs +4 -4
  371. package/esm2022/tooltip/tooltip.component.mjs +4 -4
  372. package/esm2022/tooltip/tooltip.directive.mjs +4 -4
  373. package/esm2022/tooltip/tooltip.module.mjs +5 -5
  374. package/esm2022/tooltip/tooltip.service.mjs +4 -4
  375. package/esm2022/transfer/transfer-list.component.mjs +4 -4
  376. package/esm2022/transfer/transfer.component.mjs +4 -4
  377. package/esm2022/transfer/transfer.module.mjs +5 -5
  378. package/esm2022/tree/tree-node.component.mjs +4 -4
  379. package/esm2022/tree/tree.component.mjs +4 -4
  380. package/esm2022/tree/tree.module.mjs +5 -5
  381. package/esm2022/tree/tree.pipe.mjs +4 -4
  382. package/esm2022/tree/tree.service.mjs +4 -4
  383. package/esm2022/tree-select/module.mjs +5 -5
  384. package/esm2022/tree-select/tree-select.component.mjs +7 -7
  385. package/esm2022/typography/bg-color.directive.mjs +4 -4
  386. package/esm2022/typography/module.mjs +5 -5
  387. package/esm2022/typography/text/text.component.mjs +4 -4
  388. package/esm2022/typography/text-color.directive.mjs +4 -4
  389. package/esm2022/upload/file-drop.directive.mjs +4 -4
  390. package/esm2022/upload/file-select-base.mjs +4 -4
  391. package/esm2022/upload/file-select.component.mjs +4 -4
  392. package/esm2022/upload/module.mjs +6 -7
  393. package/esm2022/upload/upload.service.mjs +11 -11
  394. package/esm2022/util/date/functions.mjs +26 -1
  395. package/esm2022/util/date/tiny-date.mjs +78 -34
  396. package/esm2022/util/index.mjs +9 -9
  397. package/esm2022/version.mjs +2 -2
  398. package/esm2022/vote/vote.component.mjs +4 -4
  399. package/esm2022/vote/vote.module.mjs +5 -5
  400. package/esm2022/watermark/watermark.directive.mjs +4 -4
  401. package/esm2022/watermark/watermark.module.mjs +5 -5
  402. package/fesm2022/ngx-tethys-action.mjs +10 -10
  403. package/fesm2022/ngx-tethys-action.mjs.map +1 -1
  404. package/fesm2022/ngx-tethys-affix.mjs +7 -7
  405. package/fesm2022/ngx-tethys-affix.mjs.map +1 -1
  406. package/fesm2022/ngx-tethys-alert.mjs +10 -10
  407. package/fesm2022/ngx-tethys-alert.mjs.map +1 -1
  408. package/fesm2022/ngx-tethys-anchor.mjs +10 -10
  409. package/fesm2022/ngx-tethys-anchor.mjs.map +1 -1
  410. package/fesm2022/ngx-tethys-arrow-switcher.mjs +7 -7
  411. package/fesm2022/ngx-tethys-arrow-switcher.mjs.map +1 -1
  412. package/fesm2022/ngx-tethys-autocomplete.mjs +16 -16
  413. package/fesm2022/ngx-tethys-autocomplete.mjs.map +1 -1
  414. package/fesm2022/ngx-tethys-avatar.mjs +22 -22
  415. package/fesm2022/ngx-tethys-avatar.mjs.map +1 -1
  416. package/fesm2022/ngx-tethys-back-top.mjs +7 -7
  417. package/fesm2022/ngx-tethys-back-top.mjs.map +1 -1
  418. package/fesm2022/ngx-tethys-badge.mjs +7 -7
  419. package/fesm2022/ngx-tethys-badge.mjs.map +1 -1
  420. package/fesm2022/ngx-tethys-breadcrumb.mjs +10 -10
  421. package/fesm2022/ngx-tethys-breadcrumb.mjs.map +1 -1
  422. package/fesm2022/ngx-tethys-button.mjs +13 -13
  423. package/fesm2022/ngx-tethys-button.mjs.map +1 -1
  424. package/fesm2022/ngx-tethys-calendar.mjs +26 -26
  425. package/fesm2022/ngx-tethys-calendar.mjs.map +1 -1
  426. package/fesm2022/ngx-tethys-card.mjs +13 -13
  427. package/fesm2022/ngx-tethys-card.mjs.map +1 -1
  428. package/fesm2022/ngx-tethys-carousel.mjs +84 -84
  429. package/fesm2022/ngx-tethys-carousel.mjs.map +1 -1
  430. package/fesm2022/ngx-tethys-cascader.mjs +16 -16
  431. package/fesm2022/ngx-tethys-cascader.mjs.map +1 -1
  432. package/fesm2022/ngx-tethys-checkbox.mjs +7 -7
  433. package/fesm2022/ngx-tethys-checkbox.mjs.map +1 -1
  434. package/fesm2022/ngx-tethys-collapse.mjs +10 -10
  435. package/fesm2022/ngx-tethys-collapse.mjs.map +1 -1
  436. package/fesm2022/ngx-tethys-color-picker.mjs +31 -31
  437. package/fesm2022/ngx-tethys-color-picker.mjs.map +1 -1
  438. package/fesm2022/ngx-tethys-comment.mjs +13 -13
  439. package/fesm2022/ngx-tethys-comment.mjs.map +1 -1
  440. package/fesm2022/ngx-tethys-copy.mjs +7 -7
  441. package/fesm2022/ngx-tethys-copy.mjs.map +1 -1
  442. package/fesm2022/ngx-tethys-core.mjs +23 -23
  443. package/fesm2022/ngx-tethys-core.mjs.map +1 -1
  444. package/fesm2022/ngx-tethys-date-picker.mjs +242 -235
  445. package/fesm2022/ngx-tethys-date-picker.mjs.map +1 -1
  446. package/fesm2022/ngx-tethys-date-range.mjs +17 -18
  447. package/fesm2022/ngx-tethys-date-range.mjs.map +1 -1
  448. package/fesm2022/ngx-tethys-dialog.mjs +22 -22
  449. package/fesm2022/ngx-tethys-dialog.mjs.map +1 -1
  450. package/fesm2022/ngx-tethys-divider.mjs +7 -7
  451. package/fesm2022/ngx-tethys-divider.mjs.map +1 -1
  452. package/fesm2022/ngx-tethys-dot.mjs +7 -7
  453. package/fesm2022/ngx-tethys-dot.mjs.map +1 -1
  454. package/fesm2022/ngx-tethys-drag-drop.mjs +19 -19
  455. package/fesm2022/ngx-tethys-drag-drop.mjs.map +1 -1
  456. package/fesm2022/ngx-tethys-dropdown.mjs +46 -46
  457. package/fesm2022/ngx-tethys-dropdown.mjs.map +1 -1
  458. package/fesm2022/ngx-tethys-empty.mjs +10 -10
  459. package/fesm2022/ngx-tethys-empty.mjs.map +1 -1
  460. package/fesm2022/ngx-tethys-flexible-text.mjs +7 -7
  461. package/fesm2022/ngx-tethys-flexible-text.mjs.map +1 -1
  462. package/fesm2022/ngx-tethys-form.mjs +40 -40
  463. package/fesm2022/ngx-tethys-form.mjs.map +1 -1
  464. package/fesm2022/ngx-tethys-fullscreen.mjs +13 -13
  465. package/fesm2022/ngx-tethys-fullscreen.mjs.map +1 -1
  466. package/fesm2022/ngx-tethys-grid.mjs +31 -31
  467. package/fesm2022/ngx-tethys-grid.mjs.map +1 -1
  468. package/fesm2022/ngx-tethys-guider.mjs +16 -16
  469. package/fesm2022/ngx-tethys-guider.mjs.map +1 -1
  470. package/fesm2022/ngx-tethys-i18n.mjs +23 -3
  471. package/fesm2022/ngx-tethys-i18n.mjs.map +1 -1
  472. package/fesm2022/ngx-tethys-icon.mjs +13 -13
  473. package/fesm2022/ngx-tethys-icon.mjs.map +1 -1
  474. package/fesm2022/ngx-tethys-image.mjs +16 -16
  475. package/fesm2022/ngx-tethys-image.mjs.map +1 -1
  476. package/fesm2022/ngx-tethys-input-number.mjs +7 -7
  477. package/fesm2022/ngx-tethys-input-number.mjs.map +1 -1
  478. package/fesm2022/ngx-tethys-input.mjs +19 -19
  479. package/fesm2022/ngx-tethys-input.mjs.map +1 -1
  480. package/fesm2022/ngx-tethys-layout.mjs +61 -59
  481. package/fesm2022/ngx-tethys-layout.mjs.map +1 -1
  482. package/fesm2022/ngx-tethys-list.mjs +16 -16
  483. package/fesm2022/ngx-tethys-list.mjs.map +1 -1
  484. package/fesm2022/ngx-tethys-loading.mjs +7 -7
  485. package/fesm2022/ngx-tethys-loading.mjs.map +1 -1
  486. package/fesm2022/ngx-tethys-mention.mjs +10 -10
  487. package/fesm2022/ngx-tethys-mention.mjs.map +1 -1
  488. package/fesm2022/ngx-tethys-menu.mjs +25 -25
  489. package/fesm2022/ngx-tethys-menu.mjs.map +1 -1
  490. package/fesm2022/ngx-tethys-message.mjs +22 -22
  491. package/fesm2022/ngx-tethys-message.mjs.map +1 -1
  492. package/fesm2022/ngx-tethys-nav.mjs +22 -22
  493. package/fesm2022/ngx-tethys-nav.mjs.map +1 -1
  494. package/fesm2022/ngx-tethys-notify.mjs +16 -16
  495. package/fesm2022/ngx-tethys-notify.mjs.map +1 -1
  496. package/fesm2022/ngx-tethys-pagination.mjs +13 -13
  497. package/fesm2022/ngx-tethys-pagination.mjs.map +1 -1
  498. package/fesm2022/ngx-tethys-popover.mjs +19 -19
  499. package/fesm2022/ngx-tethys-popover.mjs.map +1 -1
  500. package/fesm2022/ngx-tethys-progress.mjs +13 -13
  501. package/fesm2022/ngx-tethys-progress.mjs.map +1 -1
  502. package/fesm2022/ngx-tethys-property-operation.mjs +10 -10
  503. package/fesm2022/ngx-tethys-property-operation.mjs.map +1 -1
  504. package/fesm2022/ngx-tethys-property.mjs +10 -10
  505. package/fesm2022/ngx-tethys-property.mjs.map +1 -1
  506. package/fesm2022/ngx-tethys-radio.mjs +13 -13
  507. package/fesm2022/ngx-tethys-radio.mjs.map +1 -1
  508. package/fesm2022/ngx-tethys-rate.mjs +10 -10
  509. package/fesm2022/ngx-tethys-rate.mjs.map +1 -1
  510. package/fesm2022/ngx-tethys-resizable.mjs +16 -16
  511. package/fesm2022/ngx-tethys-resizable.mjs.map +1 -1
  512. package/fesm2022/ngx-tethys-result.mjs +7 -7
  513. package/fesm2022/ngx-tethys-result.mjs.map +1 -1
  514. package/fesm2022/ngx-tethys-segment.mjs +10 -10
  515. package/fesm2022/ngx-tethys-segment.mjs.map +1 -1
  516. package/fesm2022/ngx-tethys-select.mjs +10 -10
  517. package/fesm2022/ngx-tethys-select.mjs.map +1 -1
  518. package/fesm2022/ngx-tethys-shared.mjs +66 -66
  519. package/fesm2022/ngx-tethys-shared.mjs.map +1 -1
  520. package/fesm2022/ngx-tethys-skeleton.mjs +22 -22
  521. package/fesm2022/ngx-tethys-skeleton.mjs.map +1 -1
  522. package/fesm2022/ngx-tethys-slide.mjs +31 -31
  523. package/fesm2022/ngx-tethys-slide.mjs.map +1 -1
  524. package/fesm2022/ngx-tethys-slider.mjs +7 -7
  525. package/fesm2022/ngx-tethys-slider.mjs.map +1 -1
  526. package/fesm2022/ngx-tethys-space.mjs +10 -10
  527. package/fesm2022/ngx-tethys-space.mjs.map +1 -1
  528. package/fesm2022/ngx-tethys-statistic.mjs +7 -7
  529. package/fesm2022/ngx-tethys-statistic.mjs.map +1 -1
  530. package/fesm2022/ngx-tethys-stepper.mjs +19 -19
  531. package/fesm2022/ngx-tethys-stepper.mjs.map +1 -1
  532. package/fesm2022/ngx-tethys-strength.mjs +7 -7
  533. package/fesm2022/ngx-tethys-strength.mjs.map +1 -1
  534. package/fesm2022/ngx-tethys-switch.mjs +7 -7
  535. package/fesm2022/ngx-tethys-switch.mjs.map +1 -1
  536. package/fesm2022/ngx-tethys-table.mjs +19 -19
  537. package/fesm2022/ngx-tethys-table.mjs.map +1 -1
  538. package/fesm2022/ngx-tethys-tabs.mjs +13 -13
  539. package/fesm2022/ngx-tethys-tabs.mjs.map +1 -1
  540. package/fesm2022/ngx-tethys-tag.mjs +10 -10
  541. package/fesm2022/ngx-tethys-tag.mjs.map +1 -1
  542. package/fesm2022/ngx-tethys-time-picker.mjs +46 -40
  543. package/fesm2022/ngx-tethys-time-picker.mjs.map +1 -1
  544. package/fesm2022/ngx-tethys-timeline.mjs +13 -13
  545. package/fesm2022/ngx-tethys-timeline.mjs.map +1 -1
  546. package/fesm2022/ngx-tethys-tooltip.mjs +13 -13
  547. package/fesm2022/ngx-tethys-tooltip.mjs.map +1 -1
  548. package/fesm2022/ngx-tethys-transfer.mjs +10 -10
  549. package/fesm2022/ngx-tethys-transfer.mjs.map +1 -1
  550. package/fesm2022/ngx-tethys-tree-select.mjs +10 -10
  551. package/fesm2022/ngx-tethys-tree-select.mjs.map +1 -1
  552. package/fesm2022/ngx-tethys-tree.mjs +16 -16
  553. package/fesm2022/ngx-tethys-tree.mjs.map +1 -1
  554. package/fesm2022/ngx-tethys-typography.mjs +13 -13
  555. package/fesm2022/ngx-tethys-typography.mjs.map +1 -1
  556. package/fesm2022/ngx-tethys-upload.mjs +23 -24
  557. package/fesm2022/ngx-tethys-upload.mjs.map +1 -1
  558. package/fesm2022/ngx-tethys-util.mjs +107 -38
  559. package/fesm2022/ngx-tethys-util.mjs.map +1 -1
  560. package/fesm2022/ngx-tethys-vote.mjs +7 -7
  561. package/fesm2022/ngx-tethys-vote.mjs.map +1 -1
  562. package/fesm2022/ngx-tethys-watermark.mjs +7 -7
  563. package/fesm2022/ngx-tethys-watermark.mjs.map +1 -1
  564. package/fesm2022/ngx-tethys.mjs +1 -1
  565. package/fesm2022/ngx-tethys.mjs.map +1 -1
  566. package/i18n/i18n.d.ts +6 -1
  567. package/i18n/locales/de-de.d.ts +4 -0
  568. package/i18n/locales/en-us.d.ts +4 -0
  569. package/i18n/locales/ja-jp.d.ts +4 -0
  570. package/i18n/locales/zh-hans.d.ts +4 -0
  571. package/i18n/locales/zh-hant.d.ts +4 -0
  572. package/layout/sidebar.component.d.ts +8 -42
  573. package/package.json +3 -2
  574. package/schematics/ng-add/index.js +2 -3
  575. package/schematics/ng-add/index.spec.js +21 -22
  576. package/schematics/ng-update/update-18/index.spec.js +7 -8
  577. package/schematics/testing/test-app.js +2 -5
  578. package/schematics/testing/test-project.js +7 -10
  579. package/schematics/testing/test-workspace.d.ts +1 -0
  580. package/schematics/testing/test-workspace.js +14 -15
  581. package/schematics/tsconfig.json +1 -1
  582. package/schematics/utils/get-workspace-tsconfig.js +8 -9
  583. package/schematics/utils/package-config.js +1 -2
  584. package/schematics/version.d.ts +1 -1
  585. package/schematics/version.js +1 -1
  586. package/time-picker/inner/inner-time-picker.store.d.ts +1 -1
  587. package/util/date/functions.d.ts +25 -0
  588. package/util/date/tiny-date.d.ts +20 -4
  589. package/util/index.d.ts +8 -8
@@ -100,10 +100,10 @@ class ThyBackTop {
100
100
  this.registerScrollEvent();
101
101
  }
102
102
  }
103
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: ThyBackTop, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
104
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: ThyBackTop, isStandalone: true, selector: "thy-back-top,[thyBackTop]", inputs: { thyTemplate: "thyTemplate", thyContainer: "thyContainer", thyVisibilityHeight: ["thyVisibilityHeight", "thyVisibilityHeight", numberAttribute] }, outputs: { thyClick: "thyClick", visibleChange: "visibleChange" }, host: { properties: { "class.thy-back-top-container": "this.classNames" } }, viewQueries: [{ propertyName: "backTop", first: true, predicate: ["backTop"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "@if (visible) {\n <div class=\"thy-back-top\" #backTop @fadeMotion>\n <ng-template #defaultContent>\n <div class=\"thy-back-top-content\">\n <thy-icon class=\"back-top-icon text-muted font-size-lg\" thyIconName=\"arrow-up\"></thy-icon>\n </div>\n </ng-template>\n <ng-template [ngTemplateOutlet]=\"thyTemplate || defaultContent\"></ng-template>\n </div>\n}\n", dependencies: [{ kind: "component", type: ThyIcon, selector: "thy-icon, [thy-icon]", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], animations: [fadeMotion], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
103
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ThyBackTop, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
104
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: ThyBackTop, isStandalone: true, selector: "thy-back-top,[thyBackTop]", inputs: { thyTemplate: "thyTemplate", thyContainer: "thyContainer", thyVisibilityHeight: ["thyVisibilityHeight", "thyVisibilityHeight", numberAttribute] }, outputs: { thyClick: "thyClick", visibleChange: "visibleChange" }, host: { properties: { "class.thy-back-top-container": "this.classNames" } }, viewQueries: [{ propertyName: "backTop", first: true, predicate: ["backTop"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "@if (visible) {\n <div class=\"thy-back-top\" #backTop @fadeMotion>\n <ng-template #defaultContent>\n <div class=\"thy-back-top-content\">\n <thy-icon class=\"back-top-icon text-muted font-size-lg\" thyIconName=\"arrow-up\"></thy-icon>\n </div>\n </ng-template>\n <ng-template [ngTemplateOutlet]=\"thyTemplate || defaultContent\"></ng-template>\n </div>\n}\n", dependencies: [{ kind: "component", type: ThyIcon, selector: "thy-icon, [thy-icon]", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], animations: [fadeMotion], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
105
105
  }
106
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: ThyBackTop, decorators: [{
106
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ThyBackTop, decorators: [{
107
107
  type: Component,
108
108
  args: [{ selector: 'thy-back-top,[thyBackTop]', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, animations: [fadeMotion], standalone: true, imports: [ThyIcon, NgTemplateOutlet], template: "@if (visible) {\n <div class=\"thy-back-top\" #backTop @fadeMotion>\n <ng-template #defaultContent>\n <div class=\"thy-back-top-content\">\n <thy-icon class=\"back-top-icon text-muted font-size-lg\" thyIconName=\"arrow-up\"></thy-icon>\n </div>\n </ng-template>\n <ng-template [ngTemplateOutlet]=\"thyTemplate || defaultContent\"></ng-template>\n </div>\n}\n" }]
109
109
  }], ctorParameters: () => [], propDecorators: { classNames: [{
@@ -126,11 +126,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
126
126
  }] } });
127
127
 
128
128
  class ThyBackTopModule {
129
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: ThyBackTopModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
130
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.0", ngImport: i0, type: ThyBackTopModule, imports: [CommonModule, ThyIconModule, ThyBackTop], exports: [ThyBackTop] }); }
131
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: ThyBackTopModule, imports: [CommonModule, ThyIconModule, ThyBackTop] }); }
129
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ThyBackTopModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
130
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: ThyBackTopModule, imports: [CommonModule, ThyIconModule, ThyBackTop], exports: [ThyBackTop] }); }
131
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ThyBackTopModule, imports: [CommonModule, ThyIconModule, ThyBackTop] }); }
132
132
  }
133
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: ThyBackTopModule, decorators: [{
133
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ThyBackTopModule, decorators: [{
134
134
  type: NgModule,
135
135
  args: [{
136
136
  imports: [CommonModule, ThyIconModule, ThyBackTop],
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-tethys-back-top.mjs","sources":["../../../src/back-top/back-top.component.ts","../../../src/back-top/back-top.component.html","../../../src/back-top/back-top.module.ts","../../../src/back-top/ngx-tethys-back-top.ts"],"sourcesContent":["import {\n Component,\n OnInit,\n ChangeDetectionStrategy,\n ViewEncapsulation,\n Input,\n TemplateRef,\n EventEmitter,\n Output,\n HostBinding,\n NgZone,\n ChangeDetectorRef,\n OnDestroy,\n OnChanges,\n ViewChild,\n ElementRef,\n numberAttribute,\n inject\n} from '@angular/core';\nimport { Subject, fromEvent, BehaviorSubject, EMPTY, Observable } from 'rxjs';\nimport { Platform } from '@angular/cdk/platform';\nimport { throttleTime, takeUntil, switchMap } from 'rxjs/operators';\nimport { DOCUMENT, NgTemplateOutlet } from '@angular/common';\nimport { fadeMotion, ThyScrollService } from 'ngx-tethys/core';\nimport { ThyIcon } from 'ngx-tethys/icon';\n\n/**\n * 回到顶部组件\n * @name thy-back-top\n */\n@Component({\n selector: 'thy-back-top,[thyBackTop]',\n templateUrl: './back-top.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n animations: [fadeMotion],\n standalone: true,\n imports: [ThyIcon, NgTemplateOutlet]\n})\nexport class ThyBackTop implements OnInit, OnDestroy, OnChanges {\n private doc = inject(DOCUMENT);\n private thyScrollService = inject(ThyScrollService);\n private platform = inject(Platform);\n private cdr = inject(ChangeDetectorRef);\n private zone = inject(NgZone);\n\n @HostBinding('class.thy-back-top-container') classNames = true;\n\n /**\n * 自定义按钮显示模板\n */\n @Input() thyTemplate?: TemplateRef<void>;\n\n /**\n * 指定对哪个 DOM 元素返回顶部\n * @type string | HTMLElement\n * @default window\n */\n @Input() thyContainer?: string | HTMLElement;\n\n /**\n * 滚动高度达到此参数值才出现 thy-back-top\n * @type number\n */\n @Input({ transform: numberAttribute }) thyVisibilityHeight = 400;\n\n /**\n * 点击按钮的回调函数\n */\n @Output() readonly thyClick: EventEmitter<boolean> = new EventEmitter();\n\n /**\n * 监听按钮显示状态的回调函数\n */\n @Output() public visibleChange: EventEmitter<boolean> = new EventEmitter();\n\n /** The native `<div class=\"thy-back-top\"></div>` element. */\n @ViewChild('backTop', { static: false })\n set backTop(backTop: ElementRef<HTMLElement> | undefined) {\n this.backTop$.next(backTop);\n }\n\n public visible = false;\n\n /**\n * The subject used to store the native `<div class=\"thy-back-top\"></div>` since\n * it's located within the `ngIf` directive. It might be set asynchronously whenever the condition\n * is met. Having subject makes the code reactive and cancellable (e.g. event listeners will be\n * automatically removed and re-added through the `switchMap` below).\n */\n private backTop$ = new BehaviorSubject<ElementRef<HTMLElement> | undefined>(undefined);\n\n private destroy$ = new Subject<void>();\n private scrollListenerDestroy$ = new Subject<void>();\n\n private target: HTMLElement | null = null;\n\n constructor() {\n const zone = this.zone;\n\n this.backTop$\n .pipe(\n switchMap(backTop =>\n backTop\n ? new Observable(subscriber =>\n zone.runOutsideAngular(() => fromEvent(backTop.nativeElement, 'click').subscribe(subscriber))\n )\n : EMPTY\n ),\n takeUntil(this.destroy$)\n )\n .subscribe(() => {\n this.thyScrollService.scrollTo(this.getTarget(), 0);\n if (this.thyClick.observers.length) {\n zone.run(() => this.thyClick.emit(true));\n }\n });\n }\n\n ngOnInit(): void {\n this.registerScrollEvent();\n }\n\n private getTarget(): HTMLElement | Window {\n return this.target || window;\n }\n\n private handleScroll(): void {\n if (this.visible === this.thyScrollService.getScroll(this.getTarget()) > this.thyVisibilityHeight) {\n return;\n }\n this.visible = !this.visible;\n this.cdr.detectChanges();\n if (this.visibleChange.observers.length > 0) {\n this.zone.run(() => {\n this.visibleChange.emit(this.visible);\n });\n }\n }\n\n private registerScrollEvent(): void {\n if (!this.platform.isBrowser) {\n return;\n }\n this.scrollListenerDestroy$.next();\n this.handleScroll();\n this.zone.runOutsideAngular(() => {\n fromEvent(this.getTarget(), 'scroll', { passive: true })\n .pipe(throttleTime(50), takeUntil(this.scrollListenerDestroy$))\n .subscribe(() => this.handleScroll());\n });\n }\n\n ngOnDestroy(): void {\n this.destroy$.next();\n this.scrollListenerDestroy$.next();\n }\n\n ngOnChanges(changes: any): void {\n const { thyContainer } = changes;\n if (thyContainer) {\n this.target = typeof this.thyContainer === 'string' ? this.doc.querySelector(this.thyContainer) : this.thyContainer;\n this.registerScrollEvent();\n }\n }\n}\n","@if (visible) {\n <div class=\"thy-back-top\" #backTop @fadeMotion>\n <ng-template #defaultContent>\n <div class=\"thy-back-top-content\">\n <thy-icon class=\"back-top-icon text-muted font-size-lg\" thyIconName=\"arrow-up\"></thy-icon>\n </div>\n </ng-template>\n <ng-template [ngTemplateOutlet]=\"thyTemplate || defaultContent\"></ng-template>\n </div>\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ThyIconModule } from 'ngx-tethys/icon';\nimport { ThyBackTop } from './back-top.component';\n\n@NgModule({\n imports: [CommonModule, ThyIconModule, ThyBackTop],\n exports: [ThyBackTop]\n})\nexport class ThyBackTopModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AA0BA;;;AAGG;MAUU,UAAU,CAAA;;IAsCnB,IACI,OAAO,CAAC,OAA4C,EAAA;AACpD,QAAA,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;KAC/B;AAiBD,IAAA,WAAA,GAAA;AAzDQ,QAAA,IAAA,CAAA,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;AACvB,QAAA,IAAA,CAAA,gBAAgB,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAC;AAC5C,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;AAC5B,QAAA,IAAA,CAAA,GAAG,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAChC,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;QAEe,IAAU,CAAA,UAAA,GAAG,IAAI,CAAC;AAc/D;;;AAGG;QACoC,IAAmB,CAAA,mBAAA,GAAG,GAAG,CAAC;AAEjE;;AAEG;AACgB,QAAA,IAAA,CAAA,QAAQ,GAA0B,IAAI,YAAY,EAAE,CAAC;AAExE;;AAEG;AACc,QAAA,IAAA,CAAA,aAAa,GAA0B,IAAI,YAAY,EAAE,CAAC;QAQpE,IAAO,CAAA,OAAA,GAAG,KAAK,CAAC;AAEvB;;;;;AAKG;AACK,QAAA,IAAA,CAAA,QAAQ,GAAG,IAAI,eAAe,CAAsC,SAAS,CAAC,CAAC;AAE/E,QA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AAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,EAHf,OAAA,EAAA,CAAA,YAAY,EAAE,aAAa,EAAE,UAAU,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGxC,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAJ5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,aAAa,EAAE,UAAU,CAAC;oBAClD,OAAO,EAAE,CAAC,UAAU,CAAC;AACxB,iBAAA,CAAA;;;ACRD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-tethys-back-top.mjs","sources":["../../../src/back-top/back-top.component.ts","../../../src/back-top/back-top.component.html","../../../src/back-top/back-top.module.ts","../../../src/back-top/ngx-tethys-back-top.ts"],"sourcesContent":["import {\n Component,\n OnInit,\n ChangeDetectionStrategy,\n ViewEncapsulation,\n Input,\n TemplateRef,\n EventEmitter,\n Output,\n HostBinding,\n NgZone,\n ChangeDetectorRef,\n OnDestroy,\n OnChanges,\n ViewChild,\n ElementRef,\n numberAttribute,\n inject\n} from '@angular/core';\nimport { Subject, fromEvent, BehaviorSubject, EMPTY, Observable } from 'rxjs';\nimport { Platform } from '@angular/cdk/platform';\nimport { throttleTime, takeUntil, switchMap } from 'rxjs/operators';\nimport { DOCUMENT, NgTemplateOutlet } from '@angular/common';\nimport { fadeMotion, ThyScrollService } from 'ngx-tethys/core';\nimport { ThyIcon } from 'ngx-tethys/icon';\n\n/**\n * 回到顶部组件\n * @name thy-back-top\n */\n@Component({\n selector: 'thy-back-top,[thyBackTop]',\n templateUrl: './back-top.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n animations: [fadeMotion],\n standalone: true,\n imports: [ThyIcon, NgTemplateOutlet]\n})\nexport class ThyBackTop implements OnInit, OnDestroy, OnChanges {\n private doc = inject(DOCUMENT);\n private thyScrollService = inject(ThyScrollService);\n private platform = inject(Platform);\n private cdr = inject(ChangeDetectorRef);\n private zone = inject(NgZone);\n\n @HostBinding('class.thy-back-top-container') classNames = true;\n\n /**\n * 自定义按钮显示模板\n */\n @Input() thyTemplate?: TemplateRef<void>;\n\n /**\n * 指定对哪个 DOM 元素返回顶部\n * @type string | HTMLElement\n * @default window\n */\n @Input() thyContainer?: string | HTMLElement;\n\n /**\n * 滚动高度达到此参数值才出现 thy-back-top\n * @type number\n */\n @Input({ transform: numberAttribute }) thyVisibilityHeight = 400;\n\n /**\n * 点击按钮的回调函数\n */\n @Output() readonly thyClick: EventEmitter<boolean> = new EventEmitter();\n\n /**\n * 监听按钮显示状态的回调函数\n */\n @Output() public visibleChange: EventEmitter<boolean> = new EventEmitter();\n\n /** The native `<div class=\"thy-back-top\"></div>` element. */\n @ViewChild('backTop', { static: false })\n set backTop(backTop: ElementRef<HTMLElement> | undefined) {\n this.backTop$.next(backTop);\n }\n\n public visible = false;\n\n /**\n * The subject used to store the native `<div class=\"thy-back-top\"></div>` since\n * it's located within the `ngIf` directive. It might be set asynchronously whenever the condition\n * is met. Having subject makes the code reactive and cancellable (e.g. event listeners will be\n * automatically removed and re-added through the `switchMap` below).\n */\n private backTop$ = new BehaviorSubject<ElementRef<HTMLElement> | undefined>(undefined);\n\n private destroy$ = new Subject<void>();\n private scrollListenerDestroy$ = new Subject<void>();\n\n private target: HTMLElement | null = null;\n\n constructor() {\n const zone = this.zone;\n\n this.backTop$\n .pipe(\n switchMap(backTop =>\n backTop\n ? new Observable(subscriber =>\n zone.runOutsideAngular(() => fromEvent(backTop.nativeElement, 'click').subscribe(subscriber))\n )\n : EMPTY\n ),\n takeUntil(this.destroy$)\n )\n .subscribe(() => {\n this.thyScrollService.scrollTo(this.getTarget(), 0);\n if (this.thyClick.observers.length) {\n zone.run(() => this.thyClick.emit(true));\n }\n });\n }\n\n ngOnInit(): void {\n this.registerScrollEvent();\n }\n\n private getTarget(): HTMLElement | Window {\n return this.target || window;\n }\n\n private handleScroll(): void {\n if (this.visible === this.thyScrollService.getScroll(this.getTarget()) > this.thyVisibilityHeight) {\n return;\n }\n this.visible = !this.visible;\n this.cdr.detectChanges();\n if (this.visibleChange.observers.length > 0) {\n this.zone.run(() => {\n this.visibleChange.emit(this.visible);\n });\n }\n }\n\n private registerScrollEvent(): void {\n if (!this.platform.isBrowser) {\n return;\n }\n this.scrollListenerDestroy$.next();\n this.handleScroll();\n this.zone.runOutsideAngular(() => {\n fromEvent(this.getTarget(), 'scroll', { passive: true })\n .pipe(throttleTime(50), takeUntil(this.scrollListenerDestroy$))\n .subscribe(() => this.handleScroll());\n });\n }\n\n ngOnDestroy(): void {\n this.destroy$.next();\n this.scrollListenerDestroy$.next();\n }\n\n ngOnChanges(changes: any): void {\n const { thyContainer } = changes;\n if (thyContainer) {\n this.target = typeof this.thyContainer === 'string' ? this.doc.querySelector(this.thyContainer) : this.thyContainer;\n this.registerScrollEvent();\n }\n }\n}\n","@if (visible) {\n <div class=\"thy-back-top\" #backTop @fadeMotion>\n <ng-template #defaultContent>\n <div class=\"thy-back-top-content\">\n <thy-icon class=\"back-top-icon text-muted font-size-lg\" thyIconName=\"arrow-up\"></thy-icon>\n </div>\n </ng-template>\n <ng-template [ngTemplateOutlet]=\"thyTemplate || defaultContent\"></ng-template>\n </div>\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ThyIconModule } from 'ngx-tethys/icon';\nimport { ThyBackTop } from './back-top.component';\n\n@NgModule({\n imports: [CommonModule, ThyIconModule, ThyBackTop],\n exports: [ThyBackTop]\n})\nexport class ThyBackTopModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AA0BA;;;AAGG;MAUU,UAAU,CAAA;;IAsCnB,IACI,OAAO,CAAC,OAA4C,EAAA;AACpD,QAAA,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,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ThyBadge {
200
200
  this.isShowBadge = true;
201
201
  }
202
202
  }
203
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: ThyBadge, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
204
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: ThyBadge, isStandalone: true, selector: "thy-badge,[thyBadge]", inputs: { thyType: "thyType", thyCount: ["thyCount", "thyCount", numberAttribute], thyContent: "thyContent", thyContext: "thyContext", thyMaxCount: ["thyMaxCount", "thyMaxCount", numberAttribute], thySize: "thySize", thyIsDot: ["thyIsDot", "thyIsDot", coerceBooleanProperty], thyIsHollow: ["thyIsHollow", "thyIsHollow", coerceBooleanProperty], thyKeepShow: ["thyKeepShow", "thyKeepShow", coerceBooleanProperty], thyTextColor: "thyTextColor", thyBackgroundColor: "thyBackgroundColor" }, host: { properties: { "class.thy-badge-wrapper": "isWrapper" }, classAttribute: "thy-badge-container" }, ngImport: i0, template: "@if (isShowBadge) {\n <div class=\"thy-badge {{ badgeClassName }}\" [style.color]=\"textColor\" [style.backgroundColor]=\"backgroundColor\">\n <span>{{ displayContent }}</span>\n </div>\n}\n<ng-content></ng-content>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
203
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ThyBadge, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
204
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: ThyBadge, isStandalone: true, selector: "thy-badge,[thyBadge]", inputs: { thyType: "thyType", thyCount: ["thyCount", "thyCount", numberAttribute], thyContent: "thyContent", thyContext: "thyContext", thyMaxCount: ["thyMaxCount", "thyMaxCount", numberAttribute], thySize: "thySize", thyIsDot: ["thyIsDot", "thyIsDot", coerceBooleanProperty], thyIsHollow: ["thyIsHollow", "thyIsHollow", coerceBooleanProperty], thyKeepShow: ["thyKeepShow", "thyKeepShow", coerceBooleanProperty], thyTextColor: "thyTextColor", thyBackgroundColor: "thyBackgroundColor" }, host: { properties: { "class.thy-badge-wrapper": "isWrapper" }, classAttribute: "thy-badge-container" }, ngImport: i0, template: "@if (isShowBadge) {\n <div class=\"thy-badge {{ badgeClassName }}\" [style.color]=\"textColor\" [style.backgroundColor]=\"backgroundColor\">\n <span>{{ displayContent }}</span>\n </div>\n}\n<ng-content></ng-content>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
205
205
  }
206
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: ThyBadge, decorators: [{
206
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ThyBadge, decorators: [{
207
207
  type: Component,
208
208
  args: [{ selector: 'thy-badge,[thyBadge]', changeDetection: ChangeDetectionStrategy.OnPush, host: {
209
209
  class: 'thy-badge-container',
@@ -240,11 +240,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
240
240
 
241
241
  class ThyBadgeModule {
242
242
  constructor() { }
243
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: ThyBadgeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
244
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.0", ngImport: i0, type: ThyBadgeModule, imports: [CommonModule, ThyBadge], exports: [ThyBadge] }); }
245
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: ThyBadgeModule, imports: [CommonModule] }); }
243
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ThyBadgeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
244
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: ThyBadgeModule, imports: [CommonModule, ThyBadge], exports: [ThyBadge] }); }
245
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ThyBadgeModule, imports: [CommonModule] }); }
246
246
  }
247
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: ThyBadgeModule, decorators: [{
247
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ThyBadgeModule, decorators: [{
248
248
  type: NgModule,
249
249
  args: [{
250
250
  imports: [CommonModule, ThyBadge],
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-tethys-badge.mjs","sources":["../../../src/badge/badge.component.ts","../../../src/badge/badge.component.html","../../../src/badge/badge.module.ts","../../../src/badge/ngx-tethys-badge.ts"],"sourcesContent":["import { isTextColor } from 'ngx-tethys/core';\n\nimport { ChangeDetectionStrategy, Component, ElementRef, Input, OnInit, numberAttribute, inject } from '@angular/core';\n\nimport { coerceBooleanProperty } from 'ngx-tethys/util';\n\nexport type ThyBadgeSize = 'md' | 'sm' | 'lg';\n\n/**\n * 徽标组件,支持组件`thy-badge`和`thyBadge`指令两种使用方式\n * @name thy-badge,[thyBadge]\n */\n@Component({\n selector: 'thy-badge,[thyBadge]',\n templateUrl: './badge.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'thy-badge-container',\n '[class.thy-badge-wrapper]': 'isWrapper'\n },\n standalone: true,\n imports: []\n})\nexport class ThyBadge implements OnInit {\n private elementRef = inject(ElementRef);\n\n displayContent = '';\n\n badgeClassName = '';\n\n private nativeElement: any;\n\n private initialized = false;\n\n // 是否包裹在元素上\n protected isWrapper = false;\n\n public isShowBadge = true;\n\n private keepShowValue = false;\n\n private value: number | string = '';\n\n private valueHasBeenSet = false;\n\n private maxCount: number;\n\n private type: string;\n\n private size: ThyBadgeSize;\n\n private isDot: boolean;\n\n private isHollow: boolean;\n\n protected textColor: string;\n\n protected builtInTextColorClass: string;\n\n protected backgroundColor: string;\n\n protected builtInBackgroundColorClass: string;\n\n protected supClasses: string[] = [];\n\n constructor() {\n this.nativeElement = this.elementRef.nativeElement;\n }\n\n /**\n * 徽标类型\n * @type default | primary | danger | warning | success\n * @default danger\n */\n @Input()\n set thyType(value: string) {\n this.type = value;\n if (this.initialized) {\n this.combineBadgeClasses();\n }\n }\n\n /**\n * 徽标内容数字\n * @type number\n */\n @Input({ transform: numberAttribute })\n set thyCount(value: number) {\n this.value = value;\n this.valueHasBeenSet = true;\n if (this.initialized) {\n this.combineBadgeDisplayContent();\n this.combineBadgeClasses();\n }\n }\n\n /**\n * 徽标内容文本\n * @type string\n */\n @Input()\n set thyContent(value: string) {\n this.value = value;\n this.valueHasBeenSet = true;\n if (this.initialized) {\n this.combineBadgeDisplayContent();\n this.combineBadgeClasses();\n }\n }\n\n /**\n * 已废弃,徽标内容文本,命名错误,请使用 thyContent\n * @deprecated\n */\n @Input()\n set thyContext(value: string) {\n this.thyContent = value;\n }\n\n /**\n * 徽标显示的最大值, 与 thyCount 一起使用,thyCount 超过了 thyMaxCount 设置的值时,徽标内容为 thyMaxCount+\n * @type number\n */\n @Input({ transform: numberAttribute })\n set thyMaxCount(value: number) {\n this.maxCount = value;\n if (this.initialized) {\n this.combineBadgeDisplayContent();\n this.combineBadgeClasses();\n }\n }\n\n /**\n * 徽标显示的大小\n * @type md | sm | lg\n * @default md\n */\n @Input()\n set thySize(value: ThyBadgeSize) {\n this.size = value;\n\n if (this.initialized) {\n this.combineBadgeClasses();\n }\n }\n\n /**\n * 已废弃,徽标是一个实心点,已经被废弃\n * @deprecated\n */\n @Input({ transform: coerceBooleanProperty })\n set thyIsDot(value: boolean) {\n this.isDot = value;\n if (this.initialized) {\n this.combineBadgeClasses();\n }\n }\n\n /**\n * 已废弃,徽标是一个空心点\n * @deprecated\n */\n @Input({ transform: coerceBooleanProperty })\n set thyIsHollow(value: boolean) {\n this.isHollow = value;\n if (this.initialized) {\n this.combineBadgeClasses();\n }\n }\n\n /**\n * thyCount 为 0 时,强制显示数字 0,默认不显示\n * @default false\n */\n @Input({ transform: coerceBooleanProperty })\n set thyKeepShow(value: boolean) {\n this.keepShowValue = value;\n if (this.initialized) {\n this.combineBadgeDisplayContent();\n }\n }\n\n /**\n * 设置徽标字体的颜色,支持内置颜色和自定义颜色 'primary' | '#87d068' | ...\n * @type string\n */\n @Input()\n set thyTextColor(value: string) {\n if (isTextColor(value)) {\n this.builtInTextColorClass = `text-${value}`;\n this.textColor = null;\n } else {\n this.textColor = value;\n this.builtInTextColorClass = null;\n }\n if (this.initialized) {\n this.combineBadgeClasses();\n }\n }\n\n /**\n * 设置徽标的背景颜色,支持内置颜色和自定义颜色 'primary' | '#87d068' | ...\n * @type string\n */\n @Input()\n set thyBackgroundColor(value: string) {\n if (isTextColor(value)) {\n this.builtInBackgroundColorClass = `bg-${value}`;\n this.backgroundColor = null;\n } else {\n this.backgroundColor = value;\n this.builtInBackgroundColorClass = null;\n }\n if (this.initialized) {\n this.combineBadgeClasses();\n }\n }\n\n ngOnInit() {\n let childNodeCount = 0;\n this.nativeElement.childNodes.forEach((n: HTMLElement) => {\n if (['#comment'].indexOf(n.nodeName) < 0) {\n childNodeCount++;\n }\n });\n this.isWrapper = childNodeCount > 0;\n\n this.combineBadgeClasses();\n\n if (this.valueHasBeenSet) {\n this.combineBadgeDisplayContent();\n }\n\n this.initialized = true;\n }\n\n private combineBadgeClasses() {\n const classes: string[] = [];\n classes.push(`thy-badge-${this.type || 'danger'}`);\n if (this.size) {\n classes.push(`thy-badge-${this.size}`);\n }\n if (this.isDot) {\n classes.push(`thy-badge-dot`);\n } else if (this.isHollow) {\n classes.push(`thy-badge-hollow`);\n } else {\n classes.push(`thy-badge-count`);\n }\n\n if (this.builtInTextColorClass) {\n classes.push(this.builtInTextColorClass);\n }\n if (this.builtInBackgroundColorClass) {\n classes.push(this.builtInBackgroundColorClass);\n }\n this.badgeClassName = classes.join(' ');\n }\n\n private combineBadgeDisplayContent() {\n this.displayContent = this.value as string;\n if (this.value && this.maxCount != undefined && (this.value as number) > this.maxCount) {\n this.displayContent = `${this.maxCount}+`;\n }\n\n if (!this.value && !this.keepShowValue) {\n this.isShowBadge = false;\n } else {\n this.isShowBadge = true;\n }\n }\n}\n","@if (isShowBadge) {\n <div class=\"thy-badge {{ badgeClassName }}\" [style.color]=\"textColor\" [style.backgroundColor]=\"backgroundColor\">\n <span>{{ displayContent }}</span>\n </div>\n}\n<ng-content></ng-content>\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ThyBadge } from './badge.component';\n\n@NgModule({\n imports: [CommonModule, ThyBadge],\n exports: [ThyBadge]\n})\nexport class ThyBadgeModule {\n constructor() {}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAQA;;;AAGG;MAYU,QAAQ,CAAA;AA0CjB,IAAA,WAAA,GAAA;AAzCQ,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;QAExC,IAAc,CAAA,cAAA,GAAG,EAAE,CAAC;QAEpB,IAAc,CAAA,cAAA,GAAG,EAAE,CAAC;QAIZ,IAAW,CAAA,WAAA,GAAG,KAAK,CAAC;;QAGlB,IAAS,CAAA,SAAA,GAAG,KAAK,CAAC;QAErB,IAAW,CAAA,WAAA,GAAG,IAAI,CAAC;QAElB,IAAa,CAAA,aAAA,GAAG,KAAK,CAAC;QAEtB,IAAK,CAAA,KAAA,GAAoB,EAAE,CAAC;QAE5B,IAAe,CAAA,eAAA,GAAG,KAAK,CAAC;QAoBtB,IAAU,CAAA,UAAA,GAAa,EAAE,CAAC;QAGhC,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC;KACtD;AAED;;;;AAIG;I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module.ts","../../../src/badge/ngx-tethys-badge.ts"],"sourcesContent":["import { isTextColor } from 'ngx-tethys/core';\n\nimport { ChangeDetectionStrategy, Component, ElementRef, Input, OnInit, numberAttribute, inject } from '@angular/core';\n\nimport { coerceBooleanProperty } from 'ngx-tethys/util';\n\nexport type ThyBadgeSize = 'md' | 'sm' | 'lg';\n\n/**\n * 徽标组件,支持组件`thy-badge`和`thyBadge`指令两种使用方式\n * @name thy-badge,[thyBadge]\n */\n@Component({\n selector: 'thy-badge,[thyBadge]',\n templateUrl: './badge.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'thy-badge-container',\n '[class.thy-badge-wrapper]': 'isWrapper'\n },\n standalone: true,\n imports: []\n})\nexport class ThyBadge implements OnInit {\n private elementRef = inject(ElementRef);\n\n displayContent = '';\n\n badgeClassName = '';\n\n private nativeElement: any;\n\n private initialized = false;\n\n // 是否包裹在元素上\n protected isWrapper = false;\n\n public isShowBadge = true;\n\n private keepShowValue = false;\n\n private value: number | string = '';\n\n private valueHasBeenSet = false;\n\n private maxCount: number;\n\n private type: string;\n\n private size: ThyBadgeSize;\n\n private isDot: boolean;\n\n private isHollow: boolean;\n\n protected textColor: string;\n\n protected builtInTextColorClass: string;\n\n protected backgroundColor: string;\n\n protected builtInBackgroundColorClass: string;\n\n protected supClasses: string[] = [];\n\n constructor() {\n this.nativeElement = this.elementRef.nativeElement;\n }\n\n /**\n * 徽标类型\n * @type default | primary | danger | warning | success\n * @default danger\n */\n @Input()\n set thyType(value: string) {\n this.type = value;\n if (this.initialized) {\n this.combineBadgeClasses();\n }\n }\n\n /**\n * 徽标内容数字\n * @type number\n */\n @Input({ transform: numberAttribute })\n set thyCount(value: number) {\n this.value = value;\n this.valueHasBeenSet = true;\n if (this.initialized) {\n this.combineBadgeDisplayContent();\n this.combineBadgeClasses();\n }\n }\n\n /**\n * 徽标内容文本\n * @type string\n */\n @Input()\n set thyContent(value: string) {\n this.value = value;\n this.valueHasBeenSet = true;\n if (this.initialized) {\n this.combineBadgeDisplayContent();\n this.combineBadgeClasses();\n }\n }\n\n /**\n * 已废弃,徽标内容文本,命名错误,请使用 thyContent\n * @deprecated\n */\n @Input()\n set thyContext(value: string) {\n this.thyContent = value;\n }\n\n /**\n * 徽标显示的最大值, 与 thyCount 一起使用,thyCount 超过了 thyMaxCount 设置的值时,徽标内容为 thyMaxCount+\n * @type number\n */\n @Input({ transform: numberAttribute })\n set thyMaxCount(value: number) {\n this.maxCount = value;\n if (this.initialized) {\n this.combineBadgeDisplayContent();\n this.combineBadgeClasses();\n }\n }\n\n /**\n * 徽标显示的大小\n * @type md | sm | lg\n * @default md\n */\n @Input()\n set thySize(value: ThyBadgeSize) {\n this.size = value;\n\n if (this.initialized) {\n this.combineBadgeClasses();\n }\n }\n\n /**\n * 已废弃,徽标是一个实心点,已经被废弃\n * @deprecated\n */\n @Input({ transform: coerceBooleanProperty })\n set thyIsDot(value: boolean) {\n this.isDot = value;\n if (this.initialized) {\n this.combineBadgeClasses();\n }\n }\n\n /**\n * 已废弃,徽标是一个空心点\n * @deprecated\n */\n @Input({ transform: coerceBooleanProperty })\n set thyIsHollow(value: boolean) {\n this.isHollow = value;\n if (this.initialized) {\n this.combineBadgeClasses();\n }\n }\n\n /**\n * thyCount 为 0 时,强制显示数字 0,默认不显示\n * @default false\n */\n @Input({ transform: coerceBooleanProperty })\n set thyKeepShow(value: boolean) {\n this.keepShowValue = value;\n if (this.initialized) {\n this.combineBadgeDisplayContent();\n }\n }\n\n /**\n * 设置徽标字体的颜色,支持内置颜色和自定义颜色 'primary' | '#87d068' | ...\n * @type string\n */\n @Input()\n set thyTextColor(value: string) {\n if (isTextColor(value)) {\n this.builtInTextColorClass = `text-${value}`;\n this.textColor = null;\n } else {\n this.textColor = value;\n this.builtInTextColorClass = null;\n }\n if (this.initialized) {\n this.combineBadgeClasses();\n }\n }\n\n /**\n * 设置徽标的背景颜色,支持内置颜色和自定义颜色 'primary' | '#87d068' | ...\n * @type string\n */\n @Input()\n set thyBackgroundColor(value: string) {\n if (isTextColor(value)) {\n this.builtInBackgroundColorClass = `bg-${value}`;\n this.backgroundColor = null;\n } else {\n this.backgroundColor = value;\n this.builtInBackgroundColorClass = null;\n }\n if (this.initialized) {\n this.combineBadgeClasses();\n }\n }\n\n ngOnInit() {\n let childNodeCount = 0;\n this.nativeElement.childNodes.forEach((n: HTMLElement) => {\n if (['#comment'].indexOf(n.nodeName) < 0) {\n childNodeCount++;\n }\n });\n this.isWrapper = childNodeCount > 0;\n\n this.combineBadgeClasses();\n\n if (this.valueHasBeenSet) {\n this.combineBadgeDisplayContent();\n }\n\n this.initialized = true;\n }\n\n private combineBadgeClasses() {\n const classes: string[] = [];\n classes.push(`thy-badge-${this.type || 'danger'}`);\n if (this.size) {\n classes.push(`thy-badge-${this.size}`);\n }\n if (this.isDot) {\n classes.push(`thy-badge-dot`);\n } else if (this.isHollow) {\n classes.push(`thy-badge-hollow`);\n } else {\n classes.push(`thy-badge-count`);\n }\n\n if (this.builtInTextColorClass) {\n classes.push(this.builtInTextColorClass);\n }\n if (this.builtInBackgroundColorClass) {\n classes.push(this.builtInBackgroundColorClass);\n }\n this.badgeClassName = classes.join(' ');\n }\n\n private combineBadgeDisplayContent() {\n this.displayContent = this.value as string;\n if (this.value && this.maxCount != undefined && (this.value as number) > this.maxCount) {\n this.displayContent = `${this.maxCount}+`;\n }\n\n if (!this.value && !this.keepShowValue) {\n this.isShowBadge = false;\n } else {\n this.isShowBadge = true;\n }\n }\n}\n","@if (isShowBadge) {\n <div class=\"thy-badge {{ badgeClassName }}\" [style.color]=\"textColor\" [style.backgroundColor]=\"backgroundColor\">\n <span>{{ displayContent }}</span>\n </div>\n}\n<ng-content></ng-content>\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ThyBadge } from './badge.component';\n\n@NgModule({\n imports: [CommonModule, ThyBadge],\n exports: [ThyBadge]\n})\nexport class ThyBadgeModule {\n constructor() {}\n}\n","/**\n * Generated bund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A,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,EAHb,OAAA,EAAA,CAAA,YAAY,EAAE,QAAQ,aACtB,QAAQ,CAAA,EAAA,CAAA,CAAA,EAAA;AAET,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,YAHb,YAAY,CAAA,EAAA,CAAA,CAAA,EAAA;;4FAGb,cAAc,EAAA,UAAA,EAAA,CAAA;kBAJ1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,QAAQ,CAAC;oBACjC,OAAO,EAAE,CAAC,QAAQ,CAAC;AACtB,iBAAA,CAAA;;;ACPD;;AAEG;;;;"}
@@ -34,10 +34,10 @@ class ThyBreadcrumbItem {
34
34
  }
35
35
  });
36
36
  }
37
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: ThyBreadcrumbItem, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
38
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: ThyBreadcrumbItem, isStandalone: true, selector: "thy-breadcrumb-item,[thyBreadcrumbItem]", host: { classAttribute: "thy-breadcrumb-item" }, exportAs: ["ThyBreadcrumbItem"], ngImport: i0, template: '<ng-content></ng-content><thy-icon class="separator-icon" thyIconName="angle-right"></thy-icon>', isInline: true, dependencies: [{ kind: "component", type: ThyIcon, selector: "thy-icon, [thy-icon]", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
37
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ThyBreadcrumbItem, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
38
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: ThyBreadcrumbItem, isStandalone: true, selector: "thy-breadcrumb-item,[thyBreadcrumbItem]", host: { classAttribute: "thy-breadcrumb-item" }, exportAs: ["ThyBreadcrumbItem"], ngImport: i0, template: '<ng-content></ng-content><thy-icon class="separator-icon" thyIconName="angle-right"></thy-icon>', isInline: true, dependencies: [{ kind: "component", type: ThyIcon, selector: "thy-icon, [thy-icon]", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
39
39
  }
40
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: ThyBreadcrumbItem, decorators: [{
40
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ThyBreadcrumbItem, decorators: [{
41
41
  type: Component,
42
42
  args: [{
43
43
  selector: 'thy-breadcrumb-item,[thyBreadcrumbItem]',
@@ -118,10 +118,10 @@ class ThyBreadcrumb {
118
118
  this.ellipsisItems = [];
119
119
  }
120
120
  }
121
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: ThyBreadcrumb, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
122
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: ThyBreadcrumb, isStandalone: true, selector: "thy-breadcrumb", inputs: { thyIcon: "thyIcon", thySeparator: "thySeparator", items: ["thyItems", "items"], thyMaxCount: ["thyMaxCount", "thyMaxCount", numberAttribute], thyExpandable: ["thyExpandable", "thyExpandable", coerceBooleanProperty] }, host: { properties: { "class.thy-breadcrumb-separator": "!!thySeparator", "class.thy-breadcrumb-separator-slash": "thySeparator === \"slash\"", "class.thy-breadcrumb-separator-backslash": "thySeparator === \"backslash\"", "class.thy-breadcrumb-separator-vertical-line": "thySeparator === \"vertical-line\"" }, classAttribute: "thy-breadcrumb" }, queries: [{ propertyName: "itemTemplate", first: true, predicate: ["item"], descendants: true }], exportAs: ["ThyBreadcrumb"], usesOnChanges: true, ngImport: i0, template: "@if (svgIconName || iconClasses) {\n <div class=\"thy-breadcrumb-icon\">\n @if (svgIconName) {\n <thy-icon [thyIconName]=\"svgIconName\"></thy-icon>\n } @else {\n <i [ngClass]=\"iconClasses\"></i>\n }\n </div>\n}\n\n@for (item of showItems; track $index) {\n <thy-breadcrumb-item class=\"thy-breadcrumb-item-ellipsis\">\n @if (item?._id !== ellipsisItemId) {\n <ng-container *ngTemplateOutlet=\"itemContentTpl; context: { $implicit: item }\"></ng-container>\n } @else {\n <a\n thyAction\n href=\"javascript:;\"\n thyActionIcon=\"more\"\n thyActiveClass=\"active\"\n [class.disabled]=\"!thyExpandable\"\n class=\"ellipsis-action ml-n1 mr-n1\"\n [thyDropdown]=\"ellipsisList\"></a>\n }\n </thy-breadcrumb-item>\n}\n\n<ng-template #ellipsisList>\n <thy-dropdown-menu thyImmediateRender>\n @for (item of ellipsisItems; track $index) {\n <a thyDropdownMenuItem href=\"javascript:;\">\n <ng-template *ngTemplateOutlet=\"itemContentTpl; context: { $implicit: item }\"></ng-template>\n </a>\n }\n </thy-dropdown-menu>\n</ng-template>\n\n<ng-template #itemContentTpl let-item>\n @if (itemTemplate) {\n <ng-template *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item }\"></ng-template>\n } @else {\n @if (item?.icon) {\n <thy-icon [thyIconName]=\"item.icon\" class=\"mr-2\"></thy-icon>\n }\n @if (item?.name) {\n <span>{{ item.name }}</span>\n }\n }\n</ng-template>\n\n<ng-content></ng-content>\n", dependencies: [{ kind: "component", type: ThyIcon, selector: "thy-icon, [thy-icon]", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: ThyBreadcrumbItem, selector: "thy-breadcrumb-item,[thyBreadcrumbItem]", exportAs: ["ThyBreadcrumbItem"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ThyAction, selector: "thy-action, [thyAction]", inputs: ["thyType", "thyIcon", "thyActionIcon", "thyActive", "thyActionActive", "thyTheme", "thyHoverIcon", "thyDisabled"] }, { kind: "directive", type: ThyDropdownDirective, selector: "[thyDropdown]", inputs: ["thyDropdownMenu", "thyDropdown", "thyTrigger", "thyShowDelay", "thyHideDelay", "thyActiveClass", "thyPopoverOptions", "thyPlacement", "thyMenuInsideClosable", "thyPanelClass"], outputs: ["thyActiveChange"] }, { kind: "directive", type: ThyDropdownMenuItemDirective, selector: "[thyDropdownMenuItem]", inputs: ["thyType", "thyDisabled"] }, { kind: "component", type: ThyDropdownMenuComponent, selector: "thy-dropdown-menu", inputs: ["thyWidth", "thyImmediateRender"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
121
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ThyBreadcrumb, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
122
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: ThyBreadcrumb, isStandalone: true, selector: "thy-breadcrumb", inputs: { thyIcon: "thyIcon", thySeparator: "thySeparator", items: ["thyItems", "items"], thyMaxCount: ["thyMaxCount", "thyMaxCount", numberAttribute], thyExpandable: ["thyExpandable", "thyExpandable", coerceBooleanProperty] }, host: { properties: { "class.thy-breadcrumb-separator": "!!thySeparator", "class.thy-breadcrumb-separator-slash": "thySeparator === \"slash\"", "class.thy-breadcrumb-separator-backslash": "thySeparator === \"backslash\"", "class.thy-breadcrumb-separator-vertical-line": "thySeparator === \"vertical-line\"" }, classAttribute: "thy-breadcrumb" }, queries: [{ propertyName: "itemTemplate", first: true, predicate: ["item"], descendants: true }], exportAs: ["ThyBreadcrumb"], usesOnChanges: true, ngImport: i0, template: "@if (svgIconName || iconClasses) {\n <div class=\"thy-breadcrumb-icon\">\n @if (svgIconName) {\n <thy-icon [thyIconName]=\"svgIconName\"></thy-icon>\n } @else {\n <i [ngClass]=\"iconClasses\"></i>\n }\n </div>\n}\n\n@for (item of showItems; track $index) {\n <thy-breadcrumb-item class=\"thy-breadcrumb-item-ellipsis\">\n @if (item?._id !== ellipsisItemId) {\n <ng-container *ngTemplateOutlet=\"itemContentTpl; context: { $implicit: item }\"></ng-container>\n } @else {\n <a\n thyAction\n href=\"javascript:;\"\n thyActionIcon=\"more\"\n thyActiveClass=\"active\"\n [class.disabled]=\"!thyExpandable\"\n class=\"ellipsis-action ml-n1 mr-n1\"\n [thyDropdown]=\"ellipsisList\"></a>\n }\n </thy-breadcrumb-item>\n}\n\n<ng-template #ellipsisList>\n <thy-dropdown-menu thyImmediateRender>\n @for (item of ellipsisItems; track $index) {\n <a thyDropdownMenuItem href=\"javascript:;\">\n <ng-template *ngTemplateOutlet=\"itemContentTpl; context: { $implicit: item }\"></ng-template>\n </a>\n }\n </thy-dropdown-menu>\n</ng-template>\n\n<ng-template #itemContentTpl let-item>\n @if (itemTemplate) {\n <ng-template *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item }\"></ng-template>\n } @else {\n @if (item?.icon) {\n <thy-icon [thyIconName]=\"item.icon\" class=\"mr-2\"></thy-icon>\n }\n @if (item?.name) {\n <span>{{ item.name }}</span>\n }\n }\n</ng-template>\n\n<ng-content></ng-content>\n", dependencies: [{ kind: "component", type: ThyIcon, selector: "thy-icon, [thy-icon]", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: ThyBreadcrumbItem, selector: "thy-breadcrumb-item,[thyBreadcrumbItem]", exportAs: ["ThyBreadcrumbItem"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ThyAction, selector: "thy-action, [thyAction]", inputs: ["thyType", "thyIcon", "thyActionIcon", "thyActive", "thyActionActive", "thyTheme", "thyHoverIcon", "thyDisabled"] }, { kind: "directive", type: ThyDropdownDirective, selector: "[thyDropdown]", inputs: ["thyDropdownMenu", "thyDropdown", "thyTrigger", "thyShowDelay", "thyHideDelay", "thyActiveClass", "thyPopoverOptions", "thyPlacement", "thyMenuInsideClosable", "thyPanelClass"], outputs: ["thyActiveChange"] }, { kind: "directive", type: ThyDropdownMenuItemDirective, selector: "[thyDropdownMenuItem]", inputs: ["thyType", "thyDisabled"] }, { kind: "component", type: ThyDropdownMenuComponent, selector: "thy-dropdown-menu", inputs: ["thyWidth", "thyImmediateRender"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
123
123
  }
124
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: ThyBreadcrumb, decorators: [{
124
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ThyBreadcrumb, decorators: [{
125
125
  type: Component,
126
126
  args: [{ selector: 'thy-breadcrumb', exportAs: 'ThyBreadcrumb', changeDetection: ChangeDetectionStrategy.OnPush, host: {
127
127
  class: 'thy-breadcrumb',
@@ -160,11 +160,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
160
160
  }] } });
161
161
 
162
162
  class ThyBreadcrumbModule {
163
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: ThyBreadcrumbModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
164
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.0", ngImport: i0, type: ThyBreadcrumbModule, imports: [CommonModule, ThyIconModule, ThyBreadcrumb, ThyBreadcrumbItem, ThyActionModule, ThyDropdownModule], exports: [ThyBreadcrumb, ThyBreadcrumbItem] }); }
165
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: ThyBreadcrumbModule, imports: [CommonModule, ThyIconModule, ThyBreadcrumb, ThyBreadcrumbItem, ThyActionModule, ThyDropdownModule] }); }
163
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ThyBreadcrumbModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
164
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: ThyBreadcrumbModule, imports: [CommonModule, ThyIconModule, ThyBreadcrumb, ThyBreadcrumbItem, ThyActionModule, ThyDropdownModule], exports: [ThyBreadcrumb, ThyBreadcrumbItem] }); }
165
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ThyBreadcrumbModule, imports: [CommonModule, ThyIconModule, ThyBreadcrumb, ThyBreadcrumbItem, ThyActionModule, ThyDropdownModule] }); }
166
166
  }
167
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: ThyBreadcrumbModule, decorators: [{
167
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ThyBreadcrumbModule, decorators: [{
168
168
  type: NgModule,
169
169
  args: [{
170
170
  imports: [CommonModule, ThyIconModule, ThyBreadcrumb, ThyBreadcrumbItem, ThyActionModule, ThyDropdownModule],
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-tethys-breadcrumb.mjs","sources":["../../../src/breadcrumb/breadcrumb-item.component.ts","../../../src/breadcrumb/breadcrumb.component.ts","../../../src/breadcrumb/breadcrumb.component.html","../../../src/breadcrumb/module.ts","../../../src/breadcrumb/ngx-tethys-breadcrumb.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, AfterViewInit, ElementRef, Renderer2, inject } from '@angular/core';\nimport { ThyIcon } from 'ngx-tethys/icon';\n\n/**\n * 面包屑 Item 组件\n * @name thy-breadcrumb-item,[thyBreadcrumbItem]\n * @order 20\n */\n@Component({\n selector: 'thy-breadcrumb-item,[thyBreadcrumbItem]',\n template: '<ng-content></ng-content><thy-icon class=\"separator-icon\" thyIconName=\"angle-right\"></thy-icon>',\n exportAs: 'ThyBreadcrumbItem',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'thy-breadcrumb-item'\n },\n standalone: true,\n imports: [ThyIcon]\n})\nexport class ThyBreadcrumbItem implements AfterViewInit {\n private renderer = inject(Renderer2);\n private elementRef = inject(ElementRef);\n\n ngAfterViewInit() {\n this.wrapSpanForText(this.elementRef.nativeElement.childNodes);\n const link: HTMLElement = this.elementRef.nativeElement.querySelector('a');\n if (link && link.childNodes) {\n this.wrapSpanForText(link.childNodes);\n }\n }\n\n private wrapSpanForText(nodes: NodeList): void {\n nodes.forEach(node => {\n if (node.nodeName === '#text') {\n const span = this.renderer.createElement('span');\n const parent = this.renderer.parentNode(node);\n this.renderer.addClass(span, 'thy-wrap-span');\n this.renderer.insertBefore(parent, span, node);\n this.renderer.appendChild(span, node);\n }\n });\n }\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n Input,\n ContentChild,\n TemplateRef,\n numberAttribute,\n OnChanges,\n SimpleChanges,\n OnInit,\n ChangeDetectorRef,\n inject\n} from '@angular/core';\nimport { ThyIcon } from 'ngx-tethys/icon';\nimport { NgClass, NgTemplateOutlet } from '@angular/common';\nimport { ThyBreadcrumbItem } from './breadcrumb-item.component';\nimport { SafeAny } from 'ngx-tethys/types';\nimport {\n ThyDropdownDirective,\n ThyDropdownMenuComponent,\n ThyDropdownMenuItemDirective,\n ThyDropdownMenuItemNameDirective\n} from 'ngx-tethys/dropdown';\nimport { ThyAction } from 'ngx-tethys/action';\nimport { coerceBooleanProperty } from 'ngx-tethys/util';\n\nconst THY_BREADCRUMB_ITEM_ELLIPSIS_ID = 'THY_BREADCRUMB_ITEM_ELLIPSIS_ID';\n\nconst ELLIPSIS_ITEM = { _id: THY_BREADCRUMB_ITEM_ELLIPSIS_ID };\n\n/**\n * 面包屑组件\n * @name thy-breadcrumb\n * @order 10\n */\n@Component({\n selector: 'thy-breadcrumb',\n templateUrl: './breadcrumb.component.html',\n exportAs: 'ThyBreadcrumb',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'thy-breadcrumb',\n '[class.thy-breadcrumb-separator]': '!!thySeparator',\n '[class.thy-breadcrumb-separator-slash]': 'thySeparator === \"slash\"',\n '[class.thy-breadcrumb-separator-backslash]': 'thySeparator === \"backslash\"',\n '[class.thy-breadcrumb-separator-vertical-line]': 'thySeparator === \"vertical-line\"'\n },\n standalone: true,\n imports: [\n ThyIcon,\n NgClass,\n ThyBreadcrumbItem,\n NgTemplateOutlet,\n ThyAction,\n ThyDropdownDirective,\n ThyDropdownMenuItemDirective,\n ThyDropdownMenuItemNameDirective,\n ThyDropdownMenuComponent,\n ThyIcon\n ]\n})\nexport class ThyBreadcrumb implements OnInit, OnChanges {\n private cdr = inject(ChangeDetectorRef);\n\n iconClasses: string[];\n svgIconName: string;\n\n /**\n * 面包屑的前缀 展示图标,如 folder-fill\n */\n @Input()\n set thyIcon(icon: string) {\n this.setIcon(icon);\n }\n\n /**\n * 面包屑的分隔符,不传值默认为 \">\"\n * @type slash | backslash | vertical-line\n */\n @Input() thySeparator: 'slash' | 'backslash' | 'vertical-line';\n\n /**\n * 面包屑的每一项数据\n */\n @Input({ alias: 'thyItems' }) items: SafeAny[];\n\n /**\n * 最大显示数量,超出此数量后,面包屑会被省略, 0 表示不省略(仅当传入 thyItems 时有效)\n */\n @Input({ transform: numberAttribute }) thyMaxCount = 4;\n\n /**\n * 是否可点击弹出已被省略的面包屑项(仅当传入 thyItems 时有效)\n */\n @Input({ transform: coerceBooleanProperty }) thyExpandable = true;\n\n /**\n * 面包屑的每一项模板(仅当传入 thyItems 时有效)\n */\n @ContentChild('item') itemTemplate: TemplateRef<SafeAny>;\n\n public ellipsisItemId = THY_BREADCRUMB_ITEM_ELLIPSIS_ID;\n\n public ellipsisItems: SafeAny[];\n\n public showItems: SafeAny[];\n\n ngOnInit() {\n this.resetItems();\n }\n\n ngOnChanges(changes: SimpleChanges) {\n if ((changes.items && !changes.items.firstChange) || (changes.thyMaxCount && !changes.thyMaxCount.firstChange)) {\n this.resetItems();\n }\n }\n\n private setIcon(icon: string) {\n if (icon) {\n if (icon.includes('wtf')) {\n const classes = icon.split(' ');\n if (classes.length === 1) {\n classes.unshift('wtf');\n }\n this.iconClasses = classes;\n } else {\n this.svgIconName = icon;\n }\n } else {\n this.iconClasses = null;\n this.svgIconName = null;\n }\n }\n\n private resetItems() {\n if (!this.items?.length) {\n return;\n }\n if (this.thyMaxCount && this.items.length > this.thyMaxCount) {\n const ellipsisIndex = this.items.length - this.thyMaxCount + 2;\n this.ellipsisItems = this.items.slice(1, ellipsisIndex);\n this.showItems = [this.items[0], ELLIPSIS_ITEM, ...this.items.slice(ellipsisIndex)];\n } else {\n this.showItems = [...this.items];\n this.ellipsisItems = [];\n }\n }\n}\n","@if (svgIconName || iconClasses) {\n <div class=\"thy-breadcrumb-icon\">\n @if (svgIconName) {\n <thy-icon [thyIconName]=\"svgIconName\"></thy-icon>\n } @else {\n <i [ngClass]=\"iconClasses\"></i>\n }\n </div>\n}\n\n@for (item of showItems; track $index) {\n <thy-breadcrumb-item class=\"thy-breadcrumb-item-ellipsis\">\n @if (item?._id !== ellipsisItemId) {\n <ng-container *ngTemplateOutlet=\"itemContentTpl; context: { $implicit: item }\"></ng-container>\n } @else {\n <a\n thyAction\n href=\"javascript:;\"\n thyActionIcon=\"more\"\n thyActiveClass=\"active\"\n [class.disabled]=\"!thyExpandable\"\n class=\"ellipsis-action ml-n1 mr-n1\"\n [thyDropdown]=\"ellipsisList\"></a>\n }\n </thy-breadcrumb-item>\n}\n\n<ng-template #ellipsisList>\n <thy-dropdown-menu thyImmediateRender>\n @for (item of ellipsisItems; track $index) {\n <a thyDropdownMenuItem href=\"javascript:;\">\n <ng-template *ngTemplateOutlet=\"itemContentTpl; context: { $implicit: item }\"></ng-template>\n </a>\n }\n </thy-dropdown-menu>\n</ng-template>\n\n<ng-template #itemContentTpl let-item>\n @if (itemTemplate) {\n <ng-template *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item }\"></ng-template>\n } @else {\n @if (item?.icon) {\n <thy-icon [thyIconName]=\"item.icon\" class=\"mr-2\"></thy-icon>\n }\n @if (item?.name) {\n <span>{{ item.name }}</span>\n }\n }\n</ng-template>\n\n<ng-content></ng-content>\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ThyBreadcrumb } from './breadcrumb.component';\nimport { ThyBreadcrumbItem } from './breadcrumb-item.component';\nimport { ThyIconModule } from 'ngx-tethys/icon';\nimport { ThyActionModule } from 'ngx-tethys/action';\nimport { ThyDropdownModule } from 'ngx-tethys/dropdown';\n\n@NgModule({\n imports: [CommonModule, ThyIconModule, ThyBreadcrumb, ThyBreadcrumbItem, ThyActionModule, ThyDropdownModule],\n exports: [ThyBreadcrumb, ThyBreadcrumbItem]\n})\nexport class ThyBreadcrumbModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAGA;;;;AAIG;MAYU,iBAAiB,CAAA;AAX9B,IAAA,WAAA,GAAA;AAYY,QAAA,IAAA,CAAA,QAAQ,GAAG,M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,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,iBAAiB,EAAE,eAAe,EAAE,iBAAiB,CAAC;AAC5G,oBAAA,OAAO,EAAE,CAAC,aAAa,EAAE,iBAAiB,CAAC;AAC9C,iBAAA,CAAA;;;ACXD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-tethys-breadcrumb.mjs","sources":["../../../src/breadcrumb/breadcrumb-item.component.ts","../../../src/breadcrumb/breadcrumb.component.ts","../../../src/breadcrumb/breadcrumb.component.html","../../../src/breadcrumb/module.ts","../../../src/breadcrumb/ngx-tethys-breadcrumb.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, AfterViewInit, ElementRef, Renderer2, inject } from '@angular/core';\nimport { ThyIcon } from 'ngx-tethys/icon';\n\n/**\n * 面包屑 Item 组件\n * @name thy-breadcrumb-item,[thyBreadcrumbItem]\n * @order 20\n */\n@Component({\n selector: 'thy-breadcrumb-item,[thyBreadcrumbItem]',\n template: '<ng-content></ng-content><thy-icon class=\"separator-icon\" thyIconName=\"angle-right\"></thy-icon>',\n exportAs: 'ThyBreadcrumbItem',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'thy-breadcrumb-item'\n },\n standalone: true,\n imports: [ThyIcon]\n})\nexport class ThyBreadcrumbItem implements AfterViewInit {\n private renderer = inject(Renderer2);\n private elementRef = inject(ElementRef);\n\n ngAfterViewInit() {\n this.wrapSpanForText(this.elementRef.nativeElement.childNodes);\n const link: HTMLElement = this.elementRef.nativeElement.querySelector('a');\n if (link && link.childNodes) {\n this.wrapSpanForText(link.childNodes);\n }\n }\n\n private wrapSpanForText(nodes: NodeList): void {\n nodes.forEach(node => {\n if (node.nodeName === '#text') {\n const span = this.renderer.createElement('span');\n const parent = this.renderer.parentNode(node);\n this.renderer.addClass(span, 'thy-wrap-span');\n this.renderer.insertBefore(parent, span, node);\n this.renderer.appendChild(span, node);\n }\n });\n }\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n Input,\n ContentChild,\n TemplateRef,\n numberAttribute,\n OnChanges,\n SimpleChanges,\n OnInit,\n ChangeDetectorRef,\n inject\n} from '@angular/core';\nimport { ThyIcon } from 'ngx-tethys/icon';\nimport { NgClass, NgTemplateOutlet } from '@angular/common';\nimport { ThyBreadcrumbItem } from './breadcrumb-item.component';\nimport { SafeAny } from 'ngx-tethys/types';\nimport {\n ThyDropdownDirective,\n ThyDropdownMenuComponent,\n ThyDropdownMenuItemDirective,\n ThyDropdownMenuItemNameDirective\n} from 'ngx-tethys/dropdown';\nimport { ThyAction } from 'ngx-tethys/action';\nimport { coerceBooleanProperty } from 'ngx-tethys/util';\n\nconst THY_BREADCRUMB_ITEM_ELLIPSIS_ID = 'THY_BREADCRUMB_ITEM_ELLIPSIS_ID';\n\nconst ELLIPSIS_ITEM = { _id: THY_BREADCRUMB_ITEM_ELLIPSIS_ID };\n\n/**\n * 面包屑组件\n * @name thy-breadcrumb\n * @order 10\n */\n@Component({\n selector: 'thy-breadcrumb',\n templateUrl: './breadcrumb.component.html',\n exportAs: 'ThyBreadcrumb',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'thy-breadcrumb',\n '[class.thy-breadcrumb-separator]': '!!thySeparator',\n '[class.thy-breadcrumb-separator-slash]': 'thySeparator === \"slash\"',\n '[class.thy-breadcrumb-separator-backslash]': 'thySeparator === \"backslash\"',\n '[class.thy-breadcrumb-separator-vertical-line]': 'thySeparator === \"vertical-line\"'\n },\n standalone: true,\n imports: [\n ThyIcon,\n NgClass,\n ThyBreadcrumbItem,\n NgTemplateOutlet,\n ThyAction,\n ThyDropdownDirective,\n ThyDropdownMenuItemDirective,\n ThyDropdownMenuItemNameDirective,\n ThyDropdownMenuComponent,\n ThyIcon\n ]\n})\nexport class ThyBreadcrumb implements OnInit, OnChanges {\n private cdr = inject(ChangeDetectorRef);\n\n iconClasses: string[];\n svgIconName: string;\n\n /**\n * 面包屑的前缀 展示图标,如 folder-fill\n */\n @Input()\n set thyIcon(icon: string) {\n this.setIcon(icon);\n }\n\n /**\n * 面包屑的分隔符,不传值默认为 \">\"\n * @type slash | backslash | vertical-line\n */\n @Input() thySeparator: 'slash' | 'backslash' | 'vertical-line';\n\n /**\n * 面包屑的每一项数据\n */\n @Input({ alias: 'thyItems' }) items: SafeAny[];\n\n /**\n * 最大显示数量,超出此数量后,面包屑会被省略, 0 表示不省略(仅当传入 thyItems 时有效)\n */\n @Input({ transform: numberAttribute }) thyMaxCount = 4;\n\n /**\n * 是否可点击弹出已被省略的面包屑项(仅当传入 thyItems 时有效)\n */\n @Input({ transform: coerceBooleanProperty }) thyExpandable = true;\n\n /**\n * 面包屑的每一项模板(仅当传入 thyItems 时有效)\n */\n @ContentChild('item') itemTemplate: TemplateRef<SafeAny>;\n\n public ellipsisItemId = THY_BREADCRUMB_ITEM_ELLIPSIS_ID;\n\n public ellipsisItems: SafeAny[];\n\n public showItems: SafeAny[];\n\n ngOnInit() {\n this.resetItems();\n }\n\n ngOnChanges(changes: SimpleChanges) {\n if ((changes.items && !changes.items.firstChange) || (changes.thyMaxCount && !changes.thyMaxCount.firstChange)) {\n this.resetItems();\n }\n }\n\n private setIcon(icon: string) {\n if (icon) {\n if (icon.includes('wtf')) {\n const classes = icon.split(' ');\n if (classes.length === 1) {\n classes.unshift('wtf');\n }\n this.iconClasses = classes;\n } else {\n this.svgIconName = icon;\n }\n } else {\n this.iconClasses = null;\n this.svgIconName = null;\n }\n }\n\n private resetItems() {\n if (!this.items?.length) {\n return;\n }\n if (this.thyMaxCount && this.items.length > this.thyMaxCount) {\n const ellipsisIndex = this.items.length - this.thyMaxCount + 2;\n this.ellipsisItems = this.items.slice(1, ellipsisIndex);\n this.showItems = [this.items[0], ELLIPSIS_ITEM, ...this.items.slice(ellipsisIndex)];\n } else {\n this.showItems = [...this.items];\n this.ellipsisItems = [];\n }\n }\n}\n","@if (svgIconName || iconClasses) {\n <div class=\"thy-breadcrumb-icon\">\n @if (svgIconName) {\n <thy-icon [thyIconName]=\"svgIconName\"></thy-icon>\n } @else {\n <i [ngClass]=\"iconClasses\"></i>\n }\n </div>\n}\n\n@for (item of showItems; track $index) {\n <thy-breadcrumb-item class=\"thy-breadcrumb-item-ellipsis\">\n @if (item?._id !== ellipsisItemId) {\n <ng-container *ngTemplateOutlet=\"itemContentTpl; context: { $implicit: item }\"></ng-container>\n } @else {\n <a\n thyAction\n href=\"javascript:;\"\n thyActionIcon=\"more\"\n thyActiveClass=\"active\"\n [class.disabled]=\"!thyExpandable\"\n class=\"ellipsis-action ml-n1 mr-n1\"\n [thyDropdown]=\"ellipsisList\"></a>\n }\n </thy-breadcrumb-item>\n}\n\n<ng-template #ellipsisList>\n <thy-dropdown-menu thyImmediateRender>\n @for (item of ellipsisItems; track $index) {\n <a thyDropdownMenuItem href=\"javascript:;\">\n <ng-template *ngTemplateOutlet=\"itemContentTpl; context: { $implicit: item }\"></ng-template>\n </a>\n }\n </thy-dropdown-menu>\n</ng-template>\n\n<ng-template #itemContentTpl let-item>\n @if (itemTemplate) {\n <ng-template *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item }\"></ng-template>\n } @else {\n @if (item?.icon) {\n <thy-icon [thyIconName]=\"item.icon\" class=\"mr-2\"></thy-icon>\n }\n @if (item?.name) {\n <span>{{ item.name }}</span>\n }\n }\n</ng-template>\n\n<ng-content></ng-content>\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ThyBreadcrumb } from './breadcrumb.component';\nimport { ThyBreadcrumbItem } from './breadcrumb-item.component';\nimport { ThyIconModule } from 'ngx-tethys/icon';\nimport { ThyActionModule } from 'ngx-tethys/action';\nimport { ThyDropdownModule } from 'ngx-tethys/dropdown';\n\n@NgModule({\n imports: [CommonModule, ThyIconModule, ThyBreadcrumb, ThyBreadcrumbItem, ThyActionModule, ThyDropdownModule],\n exports: [ThyBreadcrumb, ThyBreadcrumbItem]\n})\nexport class ThyBreadcrumbModule {}\n","/**\n * Gener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AAa,EAAE,iBAAiB,EAAE,eAAe,EAAE,iBAAiB,CAAA,EAAA,CAAA,CAAA,EAAA;;4FAGlG,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAJ/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,iBAAiB,EAAE,eAAe,EAAE,iBAAiB,CAAC;AAC5G,oBAAA,OAAO,EAAE,CAAC,aAAa,EAAE,iBAAiB,CAAC;AAC9C,iBAAA,CAAA;;;ACXD;;AAEG;;;;"}
@@ -67,10 +67,10 @@ class ThyButtonGroup {
67
67
  }
68
68
  this.hostRenderer.updateClass(classNames);
69
69
  }
70
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: ThyButtonGroup, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
71
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: ThyButtonGroup, isStandalone: true, selector: "thy-button-group", inputs: { thySize: "thySize", thyType: "thyType", thyClearMinWidth: "thyClearMinWidth" }, host: { properties: { "class.btn-group": "this._isButtonGroup", "class.btn-group-clear-min-width": "this.thyClearMinWidthClassName" } }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, encapsulation: i0.ViewEncapsulation.None }); }
70
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ThyButtonGroup, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
71
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: ThyButtonGroup, isStandalone: true, selector: "thy-button-group", inputs: { thySize: "thySize", thyType: "thyType", thyClearMinWidth: "thyClearMinWidth" }, host: { properties: { "class.btn-group": "this._isButtonGroup", "class.btn-group-clear-min-width": "this.thyClearMinWidthClassName" } }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, encapsulation: i0.ViewEncapsulation.None }); }
72
72
  }
73
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: ThyButtonGroup, decorators: [{
73
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ThyButtonGroup, decorators: [{
74
74
  type: Component,
75
75
  args: [{
76
76
  selector: 'thy-button-group',
@@ -214,10 +214,10 @@ class ThyButtonIcon {
214
214
  this.setClasses(true);
215
215
  this.initialized = true;
216
216
  }
217
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: ThyButtonIcon, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
218
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: ThyButtonIcon, isStandalone: true, selector: "thy-button-icon,[thy-button-icon],[thyButtonIcon]", inputs: { thySize: "thySize", thyIcon: "thyIcon", thyButtonIcon: "thyButtonIcon", thyShape: "thyShape", thyLight: ["thyLight", "thyLight", coerceBooleanProperty$1], thyActive: ["thyActive", "thyActive", coerceBooleanProperty$1], thyTheme: "thyTheme", thyColor: "thyColor" }, host: { properties: { "class.btn": "this._isBtn", "class.btn-icon": "this._isBtnIcon", "class.btn-icon-light": "this._isLighted", "class.btn-icon-active": "this._isActive" } }, ngImport: i0, template: "@if (svgIconName) {\n <thy-icon [thyIconName]=\"svgIconName\" [style.color]=\"thyColor\" [style.borderColor]=\"thyColor\"></thy-icon>\n} @else {\n @if (iconClasses) {\n <i [ngClass]=\"iconClasses\" [style.color]=\"thyColor\" [style.borderColor]=\"thyColor\"></i>\n }\n}\n<ng-content></ng-content>\n", dependencies: [{ kind: "component", type: ThyIcon, selector: "thy-icon, [thy-icon]", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
217
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ThyButtonIcon, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
218
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: ThyButtonIcon, isStandalone: true, selector: "thy-button-icon,[thy-button-icon],[thyButtonIcon]", inputs: { thySize: "thySize", thyIcon: "thyIcon", thyButtonIcon: "thyButtonIcon", thyShape: "thyShape", thyLight: ["thyLight", "thyLight", coerceBooleanProperty$1], thyActive: ["thyActive", "thyActive", coerceBooleanProperty$1], thyTheme: "thyTheme", thyColor: "thyColor" }, host: { properties: { "class.btn": "this._isBtn", "class.btn-icon": "this._isBtnIcon", "class.btn-icon-light": "this._isLighted", "class.btn-icon-active": "this._isActive" } }, ngImport: i0, template: "@if (svgIconName) {\n <thy-icon [thyIconName]=\"svgIconName\" [style.color]=\"thyColor\" [style.borderColor]=\"thyColor\"></thy-icon>\n} @else {\n @if (iconClasses) {\n <i [ngClass]=\"iconClasses\" [style.color]=\"thyColor\" [style.borderColor]=\"thyColor\"></i>\n }\n}\n<ng-content></ng-content>\n", dependencies: [{ kind: "component", type: ThyIcon, selector: "thy-icon, [thy-icon]", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
219
219
  }
220
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: ThyButtonIcon, decorators: [{
220
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ThyButtonIcon, decorators: [{
221
221
  type: Component,
222
222
  args: [{ selector: 'thy-button-icon,[thy-button-icon],[thyButtonIcon]', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [ThyIcon, NgClass], template: "@if (svgIconName) {\n <thy-icon [thyIconName]=\"svgIconName\" [style.color]=\"thyColor\" [style.borderColor]=\"thyColor\"></thy-icon>\n} @else {\n @if (iconClasses) {\n <i [ngClass]=\"iconClasses\" [style.color]=\"thyColor\" [style.borderColor]=\"thyColor\"></i>\n }\n}\n<ng-content></ng-content>\n" }]
223
223
  }], ctorParameters: () => [], propDecorators: { thySize: [{
@@ -433,10 +433,10 @@ class ThyButton {
433
433
  }
434
434
  });
435
435
  }
436
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: ThyButton, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
437
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: ThyButton, isStandalone: true, selector: "thy-button,[thy-button],[thyButton]", inputs: { thyButton: "thyButton", thyType: "thyType", thyLoading: ["thyLoading", "thyLoading", coerceBooleanProperty$1], thyLoadingText: "thyLoadingText", thySize: "thySize", thyIcon: "thyIcon", thyBlock: ["thyBlock", "thyBlock", coerceBooleanProperty$1] }, host: { properties: { "class.btn-block": "this.thyBlock" }, classAttribute: "thy-btn btn" }, ngImport: i0, template: "@if (svgIconName) {\n <thy-icon [thyIconName]=\"svgIconName\"></thy-icon>\n} @else {\n @if (iconClass) {\n <i [ngClass]=\"iconClass\"></i>\n }\n}\n<ng-content></ng-content>\n", dependencies: [{ kind: "component", type: ThyIcon, selector: "thy-icon, [thy-icon]", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
436
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ThyButton, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
437
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: ThyButton, isStandalone: true, selector: "thy-button,[thy-button],[thyButton]", inputs: { thyButton: "thyButton", thyType: "thyType", thyLoading: ["thyLoading", "thyLoading", coerceBooleanProperty$1], thyLoadingText: "thyLoadingText", thySize: "thySize", thyIcon: "thyIcon", thyBlock: ["thyBlock", "thyBlock", coerceBooleanProperty$1] }, host: { properties: { "class.btn-block": "this.thyBlock" }, classAttribute: "thy-btn btn" }, ngImport: i0, template: "@if (svgIconName) {\n <thy-icon [thyIconName]=\"svgIconName\"></thy-icon>\n} @else {\n @if (iconClass) {\n <i [ngClass]=\"iconClass\"></i>\n }\n}\n<ng-content></ng-content>\n", dependencies: [{ kind: "component", type: ThyIcon, selector: "thy-icon, [thy-icon]", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
438
438
  }
439
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: ThyButton, decorators: [{
439
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ThyButton, decorators: [{
440
440
  type: Component,
441
441
  args: [{ selector: 'thy-button,[thy-button],[thyButton]', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
442
442
  class: 'thy-btn btn'
@@ -463,11 +463,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
463
463
  }] } });
464
464
 
465
465
  class ThyButtonModule {
466
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: ThyButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
467
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.0", ngImport: i0, type: ThyButtonModule, imports: [CommonModule, ThyIconModule, ThyButton, ThyButtonIcon, ThyButtonGroup], exports: [ThyButton, ThyButtonIcon, ThyButtonGroup] }); }
468
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: ThyButtonModule, imports: [CommonModule, ThyIconModule, ThyButton, ThyButtonIcon] }); }
466
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ThyButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
467
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: ThyButtonModule, imports: [CommonModule, ThyIconModule, ThyButton, ThyButtonIcon, ThyButtonGroup], exports: [ThyButton, ThyButtonIcon, ThyButtonGroup] }); }
468
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ThyButtonModule, imports: [CommonModule, ThyIconModule, ThyButton, ThyButtonIcon] }); }
469
469
  }
470
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: ThyButtonModule, decorators: [{
470
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ThyButtonModule, decorators: [{
471
471
  type: NgModule,
472
472
  args: [{
473
473
  imports: [CommonModule, ThyIconModule, ThyButton, ThyButtonIcon, ThyButtonGroup],