ngx-tethys 18.2.6 → 19.0.0-next.0

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 (950) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/badge/badge.component.d.ts +21 -3
  3. package/cascader/cascader-search-option.component.d.ts +6 -3
  4. package/core/store/store.d.ts +1 -1
  5. package/date-picker/abstract-picker.component.d.ts +1 -1
  6. package/date-picker/abstract-picker.directive.d.ts +1 -1
  7. package/date-picker/lib/calendar/calendar-header.component.d.ts +1 -1
  8. package/date-picker/lib/calendar/calendar-table.component.d.ts +1 -1
  9. package/date-range/date-range.component.d.ts +12 -2
  10. package/divider/divider.component.d.ts +2 -8
  11. package/dropdown/dropdown-menu.component.d.ts +1 -1
  12. package/empty/empty.component.d.ts +1 -4
  13. package/fesm2022/ngx-tethys-action.mjs +12 -12
  14. package/fesm2022/ngx-tethys-action.mjs.map +1 -1
  15. package/fesm2022/ngx-tethys-affix.mjs +8 -8
  16. package/fesm2022/ngx-tethys-affix.mjs.map +1 -1
  17. package/fesm2022/ngx-tethys-alert.mjs +12 -12
  18. package/fesm2022/ngx-tethys-alert.mjs.map +1 -1
  19. package/fesm2022/ngx-tethys-anchor.mjs +11 -13
  20. package/fesm2022/ngx-tethys-anchor.mjs.map +1 -1
  21. package/fesm2022/ngx-tethys-arrow-switcher.mjs +9 -9
  22. package/fesm2022/ngx-tethys-arrow-switcher.mjs.map +1 -1
  23. package/fesm2022/ngx-tethys-autocomplete.mjs +20 -20
  24. package/fesm2022/ngx-tethys-autocomplete.mjs.map +1 -1
  25. package/fesm2022/ngx-tethys-avatar.mjs +26 -26
  26. package/fesm2022/ngx-tethys-avatar.mjs.map +1 -1
  27. package/fesm2022/ngx-tethys-back-top.mjs +10 -10
  28. package/fesm2022/ngx-tethys-back-top.mjs.map +1 -1
  29. package/fesm2022/ngx-tethys-badge.mjs +9 -9
  30. package/fesm2022/ngx-tethys-badge.mjs.map +1 -1
  31. package/fesm2022/ngx-tethys-breadcrumb.mjs +13 -15
  32. package/fesm2022/ngx-tethys-breadcrumb.mjs.map +1 -1
  33. package/fesm2022/ngx-tethys-button.mjs +16 -16
  34. package/fesm2022/ngx-tethys-button.mjs.map +1 -1
  35. package/fesm2022/ngx-tethys-calendar.mjs +20 -20
  36. package/fesm2022/ngx-tethys-calendar.mjs.map +1 -1
  37. package/fesm2022/ngx-tethys-card.mjs +15 -15
  38. package/fesm2022/ngx-tethys-card.mjs.map +1 -1
  39. package/fesm2022/ngx-tethys-carousel.mjs +15 -15
  40. package/fesm2022/ngx-tethys-carousel.mjs.map +1 -1
  41. package/fesm2022/ngx-tethys-cascader.mjs +23 -24
  42. package/fesm2022/ngx-tethys-cascader.mjs.map +1 -1
  43. package/fesm2022/ngx-tethys-checkbox.mjs +9 -9
  44. package/fesm2022/ngx-tethys-checkbox.mjs.map +1 -1
  45. package/fesm2022/ngx-tethys-collapse.mjs +12 -12
  46. package/fesm2022/ngx-tethys-collapse.mjs.map +1 -1
  47. package/fesm2022/ngx-tethys-color-picker.mjs +38 -38
  48. package/fesm2022/ngx-tethys-color-picker.mjs.map +1 -1
  49. package/fesm2022/ngx-tethys-comment.mjs +15 -15
  50. package/fesm2022/ngx-tethys-comment.mjs.map +1 -1
  51. package/fesm2022/ngx-tethys-copy.mjs +8 -8
  52. package/fesm2022/ngx-tethys-copy.mjs.map +1 -1
  53. package/fesm2022/ngx-tethys-core.mjs +21 -21
  54. package/fesm2022/ngx-tethys-core.mjs.map +1 -1
  55. package/fesm2022/ngx-tethys-date-picker.mjs +141 -141
  56. package/fesm2022/ngx-tethys-date-picker.mjs.map +1 -1
  57. package/fesm2022/ngx-tethys-date-range.mjs +14 -14
  58. package/fesm2022/ngx-tethys-date-range.mjs.map +1 -1
  59. package/fesm2022/ngx-tethys-dialog.mjs +27 -28
  60. package/fesm2022/ngx-tethys-dialog.mjs.map +1 -1
  61. package/fesm2022/ngx-tethys-divider.mjs +8 -9
  62. package/fesm2022/ngx-tethys-divider.mjs.map +1 -1
  63. package/fesm2022/ngx-tethys-dot.mjs +8 -8
  64. package/fesm2022/ngx-tethys-dot.mjs.map +1 -1
  65. package/fesm2022/ngx-tethys-drag-drop.mjs +20 -20
  66. package/fesm2022/ngx-tethys-drag-drop.mjs.map +1 -1
  67. package/fesm2022/ngx-tethys-dropdown.mjs +47 -48
  68. package/fesm2022/ngx-tethys-dropdown.mjs.map +1 -1
  69. package/fesm2022/ngx-tethys-empty.mjs +12 -12
  70. package/fesm2022/ngx-tethys-empty.mjs.map +1 -1
  71. package/fesm2022/ngx-tethys-flexible-text.mjs +8 -8
  72. package/fesm2022/ngx-tethys-flexible-text.mjs.map +1 -1
  73. package/fesm2022/ngx-tethys-form.mjs +44 -44
  74. package/fesm2022/ngx-tethys-form.mjs.map +1 -1
  75. package/fesm2022/ngx-tethys-fullscreen.mjs +14 -14
  76. package/fesm2022/ngx-tethys-fullscreen.mjs.map +1 -1
  77. package/fesm2022/ngx-tethys-grid.mjs +35 -38
  78. package/fesm2022/ngx-tethys-grid.mjs.map +1 -1
  79. package/fesm2022/ngx-tethys-guider.mjs +18 -18
  80. package/fesm2022/ngx-tethys-guider.mjs.map +1 -1
  81. package/fesm2022/ngx-tethys-i18n.mjs +23 -3
  82. package/fesm2022/ngx-tethys-i18n.mjs.map +1 -1
  83. package/fesm2022/ngx-tethys-icon.mjs +11 -11
  84. package/fesm2022/ngx-tethys-icon.mjs.map +1 -1
  85. package/fesm2022/ngx-tethys-image.mjs +19 -19
  86. package/fesm2022/ngx-tethys-image.mjs.map +1 -1
  87. package/fesm2022/ngx-tethys-input-number.mjs +11 -11
  88. package/fesm2022/ngx-tethys-input-number.mjs.map +1 -1
  89. package/fesm2022/ngx-tethys-input.mjs +23 -23
  90. package/fesm2022/ngx-tethys-input.mjs.map +1 -1
  91. package/fesm2022/ngx-tethys-layout.mjs +66 -65
  92. package/fesm2022/ngx-tethys-layout.mjs.map +1 -1
  93. package/fesm2022/ngx-tethys-list.mjs +19 -19
  94. package/fesm2022/ngx-tethys-list.mjs.map +1 -1
  95. package/fesm2022/ngx-tethys-loading.mjs +9 -9
  96. package/fesm2022/ngx-tethys-loading.mjs.map +1 -1
  97. package/fesm2022/ngx-tethys-mention.mjs +12 -12
  98. package/fesm2022/ngx-tethys-mention.mjs.map +1 -1
  99. package/fesm2022/ngx-tethys-menu.mjs +29 -29
  100. package/fesm2022/ngx-tethys-menu.mjs.map +1 -1
  101. package/fesm2022/ngx-tethys-message.mjs +25 -26
  102. package/fesm2022/ngx-tethys-message.mjs.map +1 -1
  103. package/fesm2022/ngx-tethys-nav.mjs +24 -25
  104. package/fesm2022/ngx-tethys-nav.mjs.map +1 -1
  105. package/fesm2022/ngx-tethys-notify.mjs +20 -20
  106. package/fesm2022/ngx-tethys-notify.mjs.map +1 -1
  107. package/fesm2022/ngx-tethys-pagination.mjs +15 -15
  108. package/fesm2022/ngx-tethys-pagination.mjs.map +1 -1
  109. package/fesm2022/ngx-tethys-popover.mjs +23 -23
  110. package/fesm2022/ngx-tethys-popover.mjs.map +1 -1
  111. package/fesm2022/ngx-tethys-progress.mjs +17 -17
  112. package/fesm2022/ngx-tethys-progress.mjs.map +1 -1
  113. package/fesm2022/ngx-tethys-property-operation.mjs +12 -12
  114. package/fesm2022/ngx-tethys-property-operation.mjs.map +1 -1
  115. package/fesm2022/ngx-tethys-property.mjs +12 -12
  116. package/fesm2022/ngx-tethys-property.mjs.map +1 -1
  117. package/fesm2022/ngx-tethys-radio.mjs +15 -15
  118. package/fesm2022/ngx-tethys-radio.mjs.map +1 -1
  119. package/fesm2022/ngx-tethys-rate.mjs +12 -13
  120. package/fesm2022/ngx-tethys-rate.mjs.map +1 -1
  121. package/fesm2022/ngx-tethys-resizable.mjs +17 -19
  122. package/fesm2022/ngx-tethys-resizable.mjs.map +1 -1
  123. package/fesm2022/ngx-tethys-result.mjs +9 -9
  124. package/fesm2022/ngx-tethys-result.mjs.map +1 -1
  125. package/fesm2022/ngx-tethys-segment.mjs +13 -13
  126. package/fesm2022/ngx-tethys-segment.mjs.map +1 -1
  127. package/fesm2022/ngx-tethys-select.mjs +16 -16
  128. package/fesm2022/ngx-tethys-select.mjs.map +1 -1
  129. package/fesm2022/ngx-tethys-shared.mjs +70 -70
  130. package/fesm2022/ngx-tethys-shared.mjs.map +1 -1
  131. package/fesm2022/ngx-tethys-skeleton.mjs +23 -28
  132. package/fesm2022/ngx-tethys-skeleton.mjs.map +1 -1
  133. package/fesm2022/ngx-tethys-slide.mjs +34 -35
  134. package/fesm2022/ngx-tethys-slide.mjs.map +1 -1
  135. package/fesm2022/ngx-tethys-slider.mjs +9 -9
  136. package/fesm2022/ngx-tethys-slider.mjs.map +1 -1
  137. package/fesm2022/ngx-tethys-space.mjs +12 -12
  138. package/fesm2022/ngx-tethys-space.mjs.map +1 -1
  139. package/fesm2022/ngx-tethys-statistic.mjs +9 -9
  140. package/fesm2022/ngx-tethys-statistic.mjs.map +1 -1
  141. package/fesm2022/ngx-tethys-stepper.mjs +22 -22
  142. package/fesm2022/ngx-tethys-stepper.mjs.map +1 -1
  143. package/fesm2022/ngx-tethys-strength.mjs +8 -8
  144. package/fesm2022/ngx-tethys-strength.mjs.map +1 -1
  145. package/fesm2022/ngx-tethys-switch.mjs +9 -9
  146. package/fesm2022/ngx-tethys-switch.mjs.map +1 -1
  147. package/fesm2022/ngx-tethys-table.mjs +23 -23
  148. package/fesm2022/ngx-tethys-table.mjs.map +1 -1
  149. package/fesm2022/ngx-tethys-tabs.mjs +15 -16
  150. package/fesm2022/ngx-tethys-tabs.mjs.map +1 -1
  151. package/fesm2022/ngx-tethys-tag.mjs +11 -11
  152. package/fesm2022/ngx-tethys-tag.mjs.map +1 -1
  153. package/fesm2022/ngx-tethys-testing.mjs.map +1 -1
  154. package/fesm2022/ngx-tethys-time-picker.mjs +24 -24
  155. package/fesm2022/ngx-tethys-time-picker.mjs.map +1 -1
  156. package/fesm2022/ngx-tethys-timeline.mjs +15 -16
  157. package/fesm2022/ngx-tethys-timeline.mjs.map +1 -1
  158. package/fesm2022/ngx-tethys-tooltip.mjs +16 -16
  159. package/fesm2022/ngx-tethys-tooltip.mjs.map +1 -1
  160. package/fesm2022/ngx-tethys-transfer.mjs +13 -13
  161. package/fesm2022/ngx-tethys-transfer.mjs.map +1 -1
  162. package/fesm2022/ngx-tethys-tree-select.mjs +13 -13
  163. package/fesm2022/ngx-tethys-tree-select.mjs.map +1 -1
  164. package/fesm2022/ngx-tethys-tree.mjs +19 -19
  165. package/fesm2022/ngx-tethys-tree.mjs.map +1 -1
  166. package/fesm2022/ngx-tethys-typography.mjs +15 -15
  167. package/fesm2022/ngx-tethys-typography.mjs.map +1 -1
  168. package/fesm2022/ngx-tethys-upload.mjs +17 -17
  169. package/fesm2022/ngx-tethys-upload.mjs.map +1 -1
  170. package/fesm2022/ngx-tethys-util.mjs +2 -18
  171. package/fesm2022/ngx-tethys-util.mjs.map +1 -1
  172. package/fesm2022/ngx-tethys-vote.mjs +9 -9
  173. package/fesm2022/ngx-tethys-vote.mjs.map +1 -1
  174. package/fesm2022/ngx-tethys-watermark.mjs +8 -8
  175. package/fesm2022/ngx-tethys-watermark.mjs.map +1 -1
  176. package/fesm2022/ngx-tethys.mjs +1 -1
  177. package/fesm2022/ngx-tethys.mjs.map +1 -1
  178. package/i18n/i18n.d.ts +6 -1
  179. package/i18n/locales/de-de.d.ts +4 -0
  180. package/i18n/locales/en-us.d.ts +4 -0
  181. package/i18n/locales/ja-jp.d.ts +4 -0
  182. package/i18n/locales/zh-hans.d.ts +4 -0
  183. package/i18n/locales/zh-hant.d.ts +4 -0
  184. package/input/input.component.d.ts +1 -1
  185. package/layout/header.component.d.ts +21 -3
  186. package/layout/sidebar.component.d.ts +8 -42
  187. package/menu/group/menu-group.component.d.ts +6 -30
  188. package/message/abstract/abstract-message-container.component.d.ts +1 -1
  189. package/message/abstract/abstract-message.component.d.ts +1 -1
  190. package/nav/nav.component.d.ts +2 -2
  191. package/package.json +1 -169
  192. package/pagination/pagination.component.d.ts +45 -5
  193. package/property/property-item.component.d.ts +4 -2
  194. package/schematics/dependencies.js +3 -3
  195. package/schematics/ng-add/index.js +7 -3
  196. package/schematics/ng-update/core/complete.js +1 -2
  197. package/schematics/ng-update/migration-collection.json +4 -4
  198. package/schematics/ng-update/{update-18 → update-19}/index.js +4 -5
  199. package/schematics/ng-update/{update-18 → update-19}/index.spec.js +4 -4
  200. package/schematics/testing/get-json-content.js +1 -2
  201. package/schematics/testing/test-app.js +1 -2
  202. package/schematics/testing/test-project.js +1 -2
  203. package/schematics/testing/test-workspace.d.ts +0 -2
  204. package/schematics/testing/test-workspace.js +2 -2
  205. package/schematics/utils/create-tree-compiler-host.js +1 -2
  206. package/schematics/utils/create-tree-ts-parse-config-host.js +2 -2
  207. package/schematics/utils/get-angular-json.js +1 -2
  208. package/schematics/utils/get-project.js +1 -2
  209. package/schematics/utils/get-workspace-tsconfig.js +1 -2
  210. package/schematics/utils/package-config.js +2 -3
  211. package/schematics/utils/update-file.service.js +2 -2
  212. package/schematics/version.d.ts +1 -1
  213. package/schematics/version.js +1 -1
  214. package/shared/base-form-check.component.d.ts +1 -1
  215. package/shared/option/list-option/list-option.component.d.ts +1 -4
  216. package/shared/select/styles/select.mixin.scss +2 -1
  217. package/skeleton/skeleton-rectangle.component.d.ts +1 -4
  218. package/skeleton/stylized/bullet-list.component.d.ts +1 -9
  219. package/styles/bootstrap/utilities/_background.scss +2 -1
  220. package/styles/bootstrap/utilities/_text.scss +1 -1
  221. package/table/table.component.d.ts +1 -1
  222. package/upload/file-select-base.d.ts +1 -1
  223. package/esm2022/action/action.component.mjs +0 -174
  224. package/esm2022/action/action.module.mjs +0 -19
  225. package/esm2022/action/actions.component.mjs +0 -57
  226. package/esm2022/action/index.mjs +0 -4
  227. package/esm2022/action/ngx-tethys-action.mjs +0 -5
  228. package/esm2022/affix/affix.component.mjs +0 -243
  229. package/esm2022/affix/affix.module.mjs +0 -18
  230. package/esm2022/affix/index.mjs +0 -3
  231. package/esm2022/affix/ngx-tethys-affix.mjs +0 -5
  232. package/esm2022/affix/respond-events.mjs +0 -11
  233. package/esm2022/alert/alert.component.mjs +0 -98
  234. package/esm2022/alert/alert.directive.mjs +0 -25
  235. package/esm2022/alert/alert.module.mjs +0 -19
  236. package/esm2022/alert/index.mjs +0 -4
  237. package/esm2022/alert/ngx-tethys-alert.mjs +0 -5
  238. package/esm2022/anchor/anchor-link.component.mjs +0 -106
  239. package/esm2022/anchor/anchor.component.mjs +0 -266
  240. package/esm2022/anchor/anchor.module.mjs +0 -20
  241. package/esm2022/anchor/index.mjs +0 -4
  242. package/esm2022/anchor/ngx-tethys-anchor.mjs +0 -5
  243. package/esm2022/arrow-switcher/arrow-switcher.component.mjs +0 -130
  244. package/esm2022/arrow-switcher/index.mjs +0 -3
  245. package/esm2022/arrow-switcher/module.mjs +0 -21
  246. package/esm2022/arrow-switcher/ngx-tethys-arrow-switcher.mjs +0 -5
  247. package/esm2022/autocomplete/autocomplete.component.mjs +0 -182
  248. package/esm2022/autocomplete/autocomplete.trigger.directive.mjs +0 -275
  249. package/esm2022/autocomplete/index.mjs +0 -8
  250. package/esm2022/autocomplete/module.mjs +0 -67
  251. package/esm2022/autocomplete/ngx-tethys-autocomplete.mjs +0 -5
  252. package/esm2022/autocomplete/overlay/autocomplete-animations.mjs +0 -10
  253. package/esm2022/autocomplete/overlay/autocomplete-container.component.mjs +0 -64
  254. package/esm2022/autocomplete/overlay/autocomplete-ref.mjs +0 -18
  255. package/esm2022/autocomplete/overlay/autocomplete.config.mjs +0 -18
  256. package/esm2022/autocomplete/overlay/autocomplete.options.mjs +0 -6
  257. package/esm2022/autocomplete/overlay/autocomplete.service.mjs +0 -127
  258. package/esm2022/avatar/avatar-list/avatar-list.component.mjs +0 -76
  259. package/esm2022/avatar/avatar.component.mjs +0 -179
  260. package/esm2022/avatar/avatar.module.mjs +0 -33
  261. package/esm2022/avatar/avatar.pipe.mjs +0 -91
  262. package/esm2022/avatar/avatar.service.mjs +0 -27
  263. package/esm2022/avatar/index.mjs +0 -6
  264. package/esm2022/avatar/ngx-tethys-avatar.mjs +0 -5
  265. package/esm2022/back-top/back-top.component.mjs +0 -126
  266. package/esm2022/back-top/back-top.module.mjs +0 -18
  267. package/esm2022/back-top/index.mjs +0 -3
  268. package/esm2022/back-top/ngx-tethys-back-top.mjs +0 -5
  269. package/esm2022/badge/badge.component.mjs +0 -238
  270. package/esm2022/badge/badge.module.mjs +0 -18
  271. package/esm2022/badge/index.mjs +0 -3
  272. package/esm2022/badge/ngx-tethys-badge.mjs +0 -5
  273. package/esm2022/breadcrumb/breadcrumb-item.component.mjs +0 -49
  274. package/esm2022/breadcrumb/breadcrumb.component.mjs +0 -115
  275. package/esm2022/breadcrumb/index.mjs +0 -4
  276. package/esm2022/breadcrumb/module.mjs +0 -21
  277. package/esm2022/breadcrumb/ngx-tethys-breadcrumb.mjs +0 -5
  278. package/esm2022/button/button-group.component.mjs +0 -90
  279. package/esm2022/button/button-icon.component.mjs +0 -166
  280. package/esm2022/button/button.component.mjs +0 -216
  281. package/esm2022/button/button.module.mjs +0 -20
  282. package/esm2022/button/index.mjs +0 -5
  283. package/esm2022/button/ngx-tethys-button.mjs +0 -5
  284. package/esm2022/calendar/calendar-cells.mjs +0 -35
  285. package/esm2022/calendar/calendar-header.component.mjs +0 -117
  286. package/esm2022/calendar/calendar.component.mjs +0 -122
  287. package/esm2022/calendar/index.mjs +0 -5
  288. package/esm2022/calendar/module.mjs +0 -63
  289. package/esm2022/calendar/ngx-tethys-calendar.mjs +0 -5
  290. package/esm2022/card/card.component.mjs +0 -48
  291. package/esm2022/card/card.module.mjs +0 -19
  292. package/esm2022/card/content.component.mjs +0 -58
  293. package/esm2022/card/header.component.mjs +0 -42
  294. package/esm2022/card/index.mjs +0 -5
  295. package/esm2022/card/ngx-tethys-card.mjs +0 -5
  296. package/esm2022/carousel/carousel-item.directive.mjs +0 -37
  297. package/esm2022/carousel/carousel.component.mjs +0 -290
  298. package/esm2022/carousel/carousel.service.mjs +0 -74
  299. package/esm2022/carousel/engine/carousel-base.mjs +0 -43
  300. package/esm2022/carousel/engine/carousel-fade.mjs +0 -46
  301. package/esm2022/carousel/engine/carousel-noop.mjs +0 -28
  302. package/esm2022/carousel/engine/carousel-slide.mjs +0 -62
  303. package/esm2022/carousel/engine/index.mjs +0 -5
  304. package/esm2022/carousel/index.mjs +0 -5
  305. package/esm2022/carousel/module.mjs +0 -21
  306. package/esm2022/carousel/ngx-tethys-carousel.mjs +0 -5
  307. package/esm2022/carousel/typings.mjs +0 -2
  308. package/esm2022/cascader/cascader-li.component.mjs +0 -81
  309. package/esm2022/cascader/cascader-search-option.component.mjs +0 -73
  310. package/esm2022/cascader/cascader.component.mjs +0 -768
  311. package/esm2022/cascader/cascader.service.mjs +0 -558
  312. package/esm2022/cascader/index.mjs +0 -5
  313. package/esm2022/cascader/module.mjs +0 -62
  314. package/esm2022/cascader/ngx-tethys-cascader.mjs +0 -5
  315. package/esm2022/cascader/types.mjs +0 -2
  316. package/esm2022/checkbox/checkbox.component.mjs +0 -51
  317. package/esm2022/checkbox/index.mjs +0 -4
  318. package/esm2022/checkbox/module.mjs +0 -18
  319. package/esm2022/checkbox/ngx-tethys-checkbox.mjs +0 -5
  320. package/esm2022/collapse/collapse-item.component.mjs +0 -88
  321. package/esm2022/collapse/collapse.component.mjs +0 -79
  322. package/esm2022/collapse/index.mjs +0 -4
  323. package/esm2022/collapse/module.mjs +0 -22
  324. package/esm2022/collapse/ngx-tethys-collapse.mjs +0 -5
  325. package/esm2022/color-picker/color-picker-custom-panel.component.mjs +0 -38
  326. package/esm2022/color-picker/color-picker-panel.component.mjs +0 -100
  327. package/esm2022/color-picker/color-picker.component.mjs +0 -289
  328. package/esm2022/color-picker/constant.mjs +0 -73
  329. package/esm2022/color-picker/coordinates.directive.mjs +0 -73
  330. package/esm2022/color-picker/helpers/color.class.mjs +0 -281
  331. package/esm2022/color-picker/helpers/colors-table.class.mjs +0 -155
  332. package/esm2022/color-picker/helpers/rgba.class.mjs +0 -34
  333. package/esm2022/color-picker/index.mjs +0 -14
  334. package/esm2022/color-picker/module.mjs +0 -72
  335. package/esm2022/color-picker/ngx-tethys-color-picker.mjs +0 -5
  336. package/esm2022/color-picker/parts/alpha/alpha.component.mjs +0 -64
  337. package/esm2022/color-picker/parts/hue/hue.component.mjs +0 -54
  338. package/esm2022/color-picker/parts/indicator/indicator.component.mjs +0 -26
  339. package/esm2022/color-picker/parts/inputs/inputs.component.mjs +0 -61
  340. package/esm2022/color-picker/parts/saturation/saturation.component.mjs +0 -68
  341. package/esm2022/comment/comment-actions.directive.mjs +0 -19
  342. package/esm2022/comment/comment-content.directive.mjs +0 -19
  343. package/esm2022/comment/comment.component.mjs +0 -30
  344. package/esm2022/comment/comment.module.mjs +0 -41
  345. package/esm2022/comment/index.mjs +0 -5
  346. package/esm2022/comment/ngx-tethys-comment.mjs +0 -5
  347. package/esm2022/copy/copy.directive.mjs +0 -101
  348. package/esm2022/copy/index.mjs +0 -3
  349. package/esm2022/copy/module.mjs +0 -18
  350. package/esm2022/copy/ngx-tethys-copy.mjs +0 -5
  351. package/esm2022/core/animation/animation-consts.mjs +0 -23
  352. package/esm2022/core/animation/collapse.mjs +0 -12
  353. package/esm2022/core/animation/fade.mjs +0 -7
  354. package/esm2022/core/animation/index.mjs +0 -2
  355. package/esm2022/core/animation/public-api.mjs +0 -6
  356. package/esm2022/core/animation/thumb.mjs +0 -12
  357. package/esm2022/core/animation/zoom.mjs +0 -66
  358. package/esm2022/core/behaviors/constructor.mjs +0 -5
  359. package/esm2022/core/behaviors/control-value-accessor.mjs +0 -17
  360. package/esm2022/core/behaviors/decorators.mjs +0 -47
  361. package/esm2022/core/behaviors/disabled.mjs +0 -17
  362. package/esm2022/core/behaviors/focus-control.mjs +0 -31
  363. package/esm2022/core/behaviors/index.mjs +0 -11
  364. package/esm2022/core/behaviors/initialized.mjs +0 -12
  365. package/esm2022/core/behaviors/loading-done.mjs +0 -12
  366. package/esm2022/core/behaviors/mixin.mjs +0 -5
  367. package/esm2022/core/behaviors/tabindex.mjs +0 -21
  368. package/esm2022/core/behaviors/unsubscribe.mjs +0 -23
  369. package/esm2022/core/click-positioner.mjs +0 -36
  370. package/esm2022/core/color/color.mjs +0 -13
  371. package/esm2022/core/color/index.mjs +0 -2
  372. package/esm2022/core/debounce-time.mjs +0 -11
  373. package/esm2022/core/event-dispatchers/index.mjs +0 -2
  374. package/esm2022/core/index.mjs +0 -16
  375. package/esm2022/core/ngx-tethys-core.mjs +0 -5
  376. package/esm2022/core/overlay/abstract-overlay-container.mjs +0 -53
  377. package/esm2022/core/overlay/abstract-overlay-ref.mjs +0 -160
  378. package/esm2022/core/overlay/abstract-overlay.config.mjs +0 -70
  379. package/esm2022/core/overlay/abstract-overlay.service.mjs +0 -158
  380. package/esm2022/core/overlay/index.mjs +0 -10
  381. package/esm2022/core/overlay/interface.mjs +0 -2
  382. package/esm2022/core/overlay/overlay-position-map.mjs +0 -88
  383. package/esm2022/core/overlay/overlay.directive.mjs +0 -175
  384. package/esm2022/core/overlay/portal-directives.mjs +0 -47
  385. package/esm2022/core/overlay/utils.mjs +0 -69
  386. package/esm2022/core/request-animation.mjs +0 -41
  387. package/esm2022/core/scroll-to.service.mjs +0 -33
  388. package/esm2022/core/scroll.mjs +0 -83
  389. package/esm2022/core/spacing/index.mjs +0 -2
  390. package/esm2022/core/spacing/spacing.mjs +0 -17
  391. package/esm2022/core/store/action-state.mjs +0 -11
  392. package/esm2022/core/store/action.mjs +0 -48
  393. package/esm2022/core/store/actions-stream.mjs +0 -2
  394. package/esm2022/core/store/index.mjs +0 -4
  395. package/esm2022/core/store/store.mjs +0 -125
  396. package/esm2022/core/store/types.mjs +0 -6
  397. package/esm2022/core/store/utils.mjs +0 -14
  398. package/esm2022/core/theme/index.mjs +0 -3
  399. package/esm2022/core/theme/store.mjs +0 -42
  400. package/esm2022/core/theme/theme.mjs +0 -9
  401. package/esm2022/core/translate.mjs +0 -22
  402. package/esm2022/core/update-host-class.service.mjs +0 -60
  403. package/esm2022/date-picker/abstract-picker.component.mjs +0 -318
  404. package/esm2022/date-picker/abstract-picker.directive.mjs +0 -218
  405. package/esm2022/date-picker/base-picker.component.mjs +0 -249
  406. package/esm2022/date-picker/date-helper.service.mjs +0 -37
  407. package/esm2022/date-picker/date-picker.component.mjs +0 -41
  408. package/esm2022/date-picker/date-picker.config.mjs +0 -103
  409. package/esm2022/date-picker/date-picker.directive.mjs +0 -39
  410. package/esm2022/date-picker/date-picker.module.mjs +0 -117
  411. package/esm2022/date-picker/date-picker.service.mjs +0 -31
  412. package/esm2022/date-picker/index.mjs +0 -37
  413. package/esm2022/date-picker/inner-types.mjs +0 -2
  414. package/esm2022/date-picker/lib/calendar/calendar-footer.component.mjs +0 -98
  415. package/esm2022/date-picker/lib/calendar/calendar-header.component.mjs +0 -92
  416. package/esm2022/date-picker/lib/calendar/calendar-table.component.mjs +0 -105
  417. package/esm2022/date-picker/lib/date/date-header.component.mjs +0 -35
  418. package/esm2022/date-picker/lib/date/date-table-cell.component.mjs +0 -24
  419. package/esm2022/date-picker/lib/date/date-table.component.mjs +0 -149
  420. package/esm2022/date-picker/lib/date/types.mjs +0 -2
  421. package/esm2022/date-picker/lib/date-carousel/date-carousel.component.mjs +0 -388
  422. package/esm2022/date-picker/lib/decade/decade-header.component.mjs +0 -42
  423. package/esm2022/date-picker/lib/decade/decade-table.component.mjs +0 -81
  424. package/esm2022/date-picker/lib/lib-packer.module.mjs +0 -123
  425. package/esm2022/date-picker/lib/month/month-header.component.mjs +0 -27
  426. package/esm2022/date-picker/lib/month/month-table.component.mjs +0 -97
  427. package/esm2022/date-picker/lib/popups/date-popup.component.mjs +0 -566
  428. package/esm2022/date-picker/lib/popups/inner-popup.component.mjs +0 -196
  429. package/esm2022/date-picker/lib/quarter/quarter-table.component.mjs +0 -98
  430. package/esm2022/date-picker/lib/year/year-header.component.mjs +0 -39
  431. package/esm2022/date-picker/lib/year/year-table.component.mjs +0 -100
  432. package/esm2022/date-picker/month-picker.component.mjs +0 -45
  433. package/esm2022/date-picker/ngx-tethys-date-picker.mjs +0 -5
  434. package/esm2022/date-picker/picker.component.mjs +0 -273
  435. package/esm2022/date-picker/picker.pipes.mjs +0 -112
  436. package/esm2022/date-picker/picker.util.mjs +0 -220
  437. package/esm2022/date-picker/picker.validators.mjs +0 -79
  438. package/esm2022/date-picker/quarter-picker.component.mjs +0 -48
  439. package/esm2022/date-picker/range-picker.component.mjs +0 -39
  440. package/esm2022/date-picker/range-picker.directive.mjs +0 -39
  441. package/esm2022/date-picker/standard-types.mjs +0 -2
  442. package/esm2022/date-picker/week-picker.component.mjs +0 -40
  443. package/esm2022/date-picker/year-picker.component.mjs +0 -48
  444. package/esm2022/date-range/date-range.class.mjs +0 -6
  445. package/esm2022/date-range/date-range.component.mjs +0 -255
  446. package/esm2022/date-range/index.mjs +0 -5
  447. package/esm2022/date-range/module.mjs +0 -50
  448. package/esm2022/date-range/ngx-tethys-date-range.mjs +0 -5
  449. package/esm2022/date-range/optional-dates/optional-dates.component.mjs +0 -50
  450. package/esm2022/dialog/body/dialog-body.component.mjs +0 -49
  451. package/esm2022/dialog/confirm/confirm.component.mjs +0 -77
  452. package/esm2022/dialog/confirm/token.mjs +0 -3
  453. package/esm2022/dialog/confirm.config.mjs +0 -29
  454. package/esm2022/dialog/dialog-animations.mjs +0 -19
  455. package/esm2022/dialog/dialog-container.component.mjs +0 -169
  456. package/esm2022/dialog/dialog-ref.mjs +0 -35
  457. package/esm2022/dialog/dialog.config.mjs +0 -62
  458. package/esm2022/dialog/dialog.module.mjs +0 -91
  459. package/esm2022/dialog/dialog.options.mjs +0 -6
  460. package/esm2022/dialog/dialog.service.mjs +0 -145
  461. package/esm2022/dialog/footer/dialog-footer.component.mjs +0 -51
  462. package/esm2022/dialog/header/dialog-header.component.mjs +0 -87
  463. package/esm2022/dialog/index.mjs +0 -12
  464. package/esm2022/dialog/ngx-tethys-dialog.mjs +0 -5
  465. package/esm2022/divider/divider.component.mjs +0 -117
  466. package/esm2022/divider/divider.module.mjs +0 -20
  467. package/esm2022/divider/index.mjs +0 -3
  468. package/esm2022/divider/ngx-tethys-divider.mjs +0 -5
  469. package/esm2022/dot/dot.component.mjs +0 -111
  470. package/esm2022/dot/dot.module.mjs +0 -17
  471. package/esm2022/dot/index.mjs +0 -3
  472. package/esm2022/dot/ngx-tethys-dot.mjs +0 -5
  473. package/esm2022/drag-drop/drag-content.directive.mjs +0 -32
  474. package/esm2022/drag-drop/drag-drop.class.mjs +0 -7
  475. package/esm2022/drag-drop/drag-drop.service.mjs +0 -23
  476. package/esm2022/drag-drop/drag-handle.directive.mjs +0 -43
  477. package/esm2022/drag-drop/drag-ref.mjs +0 -225
  478. package/esm2022/drag-drop/drag.directive.mjs +0 -71
  479. package/esm2022/drag-drop/drop-container.class.mjs +0 -6
  480. package/esm2022/drag-drop/drop-container.directive.mjs +0 -129
  481. package/esm2022/drag-drop/index.mjs +0 -10
  482. package/esm2022/drag-drop/module.mjs +0 -27
  483. package/esm2022/drag-drop/ngx-tethys-drag-drop.mjs +0 -5
  484. package/esm2022/dropdown/dropdown-active.directive.mjs +0 -66
  485. package/esm2022/dropdown/dropdown-menu-item.directive.mjs +0 -210
  486. package/esm2022/dropdown/dropdown-menu.component.mjs +0 -156
  487. package/esm2022/dropdown/dropdown-submenu.component.mjs +0 -83
  488. package/esm2022/dropdown/dropdown.directive.mjs +0 -189
  489. package/esm2022/dropdown/index.mjs +0 -7
  490. package/esm2022/dropdown/module.mjs +0 -79
  491. package/esm2022/dropdown/ngx-tethys-dropdown.mjs +0 -5
  492. package/esm2022/empty/empty.component.mjs +0 -183
  493. package/esm2022/empty/empty.config.mjs +0 -17
  494. package/esm2022/empty/empty.module.mjs +0 -21
  495. package/esm2022/empty/index.mjs +0 -4
  496. package/esm2022/empty/ngx-tethys-empty.mjs +0 -5
  497. package/esm2022/empty/svgs.mjs +0 -207
  498. package/esm2022/flexible-text/flexible-text.component.mjs +0 -157
  499. package/esm2022/flexible-text/flexible-text.module.mjs +0 -19
  500. package/esm2022/flexible-text/index.mjs +0 -3
  501. package/esm2022/flexible-text/ngx-tethys-flexible-text.mjs +0 -5
  502. package/esm2022/form/form-group-error/form-group-error.component.mjs +0 -53
  503. package/esm2022/form/form-group-label.directive.mjs +0 -49
  504. package/esm2022/form/form-group.component.mjs +0 -145
  505. package/esm2022/form/form-submit.directive.mjs +0 -40
  506. package/esm2022/form/form-validator-loader.mjs +0 -134
  507. package/esm2022/form/form-validator.service.mjs +0 -252
  508. package/esm2022/form/form.class.mjs +0 -8
  509. package/esm2022/form/form.directive.mjs +0 -158
  510. package/esm2022/form/from-group-footer/form-group-footer.component.mjs +0 -53
  511. package/esm2022/form/index.mjs +0 -12
  512. package/esm2022/form/module.mjs +0 -104
  513. package/esm2022/form/ngx-tethys-form.mjs +0 -5
  514. package/esm2022/form/validator/confirm-validator.directive.mjs +0 -33
  515. package/esm2022/form/validator/index.mjs +0 -5
  516. package/esm2022/form/validator/max-validator.directive.mjs +0 -41
  517. package/esm2022/form/validator/min-validator.directive.mjs +0 -41
  518. package/esm2022/form/validator/unique-validator.directive.mjs +0 -52
  519. package/esm2022/fullscreen/fullscreen-launch.directive.mjs +0 -18
  520. package/esm2022/fullscreen/fullscreen-ref.mjs +0 -151
  521. package/esm2022/fullscreen/fullscreen.component.mjs +0 -78
  522. package/esm2022/fullscreen/fullscreen.config.mjs +0 -6
  523. package/esm2022/fullscreen/fullscreen.module.mjs +0 -17
  524. package/esm2022/fullscreen/fullscreen.service.mjs +0 -47
  525. package/esm2022/fullscreen/index.mjs +0 -7
  526. package/esm2022/fullscreen/ngx-tethys-fullscreen.mjs +0 -5
  527. package/esm2022/grid/flex.mjs +0 -179
  528. package/esm2022/grid/grid.token.mjs +0 -5
  529. package/esm2022/grid/index.mjs +0 -7
  530. package/esm2022/grid/module.mjs +0 -56
  531. package/esm2022/grid/ngx-tethys-grid.mjs +0 -5
  532. package/esm2022/grid/thy-col.directive.mjs +0 -66
  533. package/esm2022/grid/thy-grid-item.component.mjs +0 -60
  534. package/esm2022/grid/thy-grid.component.mjs +0 -256
  535. package/esm2022/grid/thy-row.directive.mjs +0 -59
  536. package/esm2022/guider/guider-hint/guider-hint.component.mjs +0 -52
  537. package/esm2022/guider/guider-manager.mjs +0 -39
  538. package/esm2022/guider/guider-ref.mjs +0 -133
  539. package/esm2022/guider/guider-step-ref.mjs +0 -242
  540. package/esm2022/guider/guider.class.mjs +0 -15
  541. package/esm2022/guider/guider.directive.mjs +0 -50
  542. package/esm2022/guider/guider.module.mjs +0 -24
  543. package/esm2022/guider/guider.service.mjs +0 -76
  544. package/esm2022/guider/index.mjs +0 -9
  545. package/esm2022/guider/ngx-tethys-guider.mjs +0 -5
  546. package/esm2022/guider/utils.mjs +0 -10
  547. package/esm2022/i18n/i18n.mjs +0 -9
  548. package/esm2022/i18n/i18n.service.mjs +0 -45
  549. package/esm2022/i18n/i18n.token.mjs +0 -10
  550. package/esm2022/i18n/index.mjs +0 -10
  551. package/esm2022/i18n/locale.mjs +0 -13
  552. package/esm2022/i18n/locales/de-de.mjs +0 -130
  553. package/esm2022/i18n/locales/en-us.mjs +0 -151
  554. package/esm2022/i18n/locales/ja-jp.mjs +0 -130
  555. package/esm2022/i18n/locales/zh-hans.mjs +0 -130
  556. package/esm2022/i18n/locales/zh-hant.mjs +0 -130
  557. package/esm2022/i18n/ngx-tethys-i18n.mjs +0 -5
  558. package/esm2022/icon/config.mjs +0 -8
  559. package/esm2022/icon/icon-registry.mjs +0 -340
  560. package/esm2022/icon/icon.component.mjs +0 -198
  561. package/esm2022/icon/icon.module.mjs +0 -20
  562. package/esm2022/icon/index.mjs +0 -5
  563. package/esm2022/icon/ngx-tethys-icon.mjs +0 -5
  564. package/esm2022/image/image-group.component.mjs +0 -32
  565. package/esm2022/image/image.class.mjs +0 -2
  566. package/esm2022/image/image.config.mjs +0 -21
  567. package/esm2022/image/image.directive.mjs +0 -130
  568. package/esm2022/image/image.service.mjs +0 -58
  569. package/esm2022/image/index.mjs +0 -9
  570. package/esm2022/image/module.mjs +0 -67
  571. package/esm2022/image/ngx-tethys-image.mjs +0 -5
  572. package/esm2022/image/preview/image-preview-ref.mjs +0 -32
  573. package/esm2022/image/preview/image-preview.component.mjs +0 -413
  574. package/esm2022/image/utils.mjs +0 -13
  575. package/esm2022/input/index.mjs +0 -7
  576. package/esm2022/input/input-count.component.mjs +0 -68
  577. package/esm2022/input/input-group.component.mjs +0 -161
  578. package/esm2022/input/input-search.component.mjs +0 -152
  579. package/esm2022/input/input.component.mjs +0 -142
  580. package/esm2022/input/input.directive.mjs +0 -63
  581. package/esm2022/input/module.mjs +0 -51
  582. package/esm2022/input/ngx-tethys-input.mjs +0 -5
  583. package/esm2022/input-number/index.mjs +0 -3
  584. package/esm2022/input-number/input-number.component.mjs +0 -362
  585. package/esm2022/input-number/module.mjs +0 -22
  586. package/esm2022/input-number/ngx-tethys-input-number.mjs +0 -5
  587. package/esm2022/layout/content-main.component.mjs +0 -42
  588. package/esm2022/layout/content-section.component.mjs +0 -42
  589. package/esm2022/layout/content.component.mjs +0 -42
  590. package/esm2022/layout/header.component.mjs +0 -125
  591. package/esm2022/layout/index.mjs +0 -11
  592. package/esm2022/layout/layout.component.mjs +0 -47
  593. package/esm2022/layout/layout.module.mjs +0 -121
  594. package/esm2022/layout/ngx-tethys-layout.mjs +0 -5
  595. package/esm2022/layout/sidebar-content.component.mjs +0 -41
  596. package/esm2022/layout/sidebar-footer.component.mjs +0 -41
  597. package/esm2022/layout/sidebar-header.component.mjs +0 -54
  598. package/esm2022/layout/sidebar.component.mjs +0 -403
  599. package/esm2022/list/index.mjs +0 -7
  600. package/esm2022/list/list-item-meta.component.mjs +0 -38
  601. package/esm2022/list/list-item.component.mjs +0 -25
  602. package/esm2022/list/list.component.mjs +0 -41
  603. package/esm2022/list/list.module.mjs +0 -22
  604. package/esm2022/list/ngx-tethys-list.mjs +0 -5
  605. package/esm2022/list/selection/selection-list.mjs +0 -393
  606. package/esm2022/list/selection/selection.interface.mjs +0 -2
  607. package/esm2022/loading/index.mjs +0 -3
  608. package/esm2022/loading/loading.component.mjs +0 -54
  609. package/esm2022/loading/loading.module.mjs +0 -17
  610. package/esm2022/loading/ngx-tethys-loading.mjs +0 -5
  611. package/esm2022/mention/adapter/adapter.mjs +0 -20
  612. package/esm2022/mention/adapter/editable.adapter.mjs +0 -48
  613. package/esm2022/mention/adapter/index.mjs +0 -16
  614. package/esm2022/mention/adapter/textarea.adapter.mjs +0 -58
  615. package/esm2022/mention/caret-positioner.mjs +0 -194
  616. package/esm2022/mention/index.mjs +0 -5
  617. package/esm2022/mention/interfaces.mjs +0 -2
  618. package/esm2022/mention/mention.directive.mjs +0 -160
  619. package/esm2022/mention/mention.module.mjs +0 -23
  620. package/esm2022/mention/ngx-tethys-mention.mjs +0 -5
  621. package/esm2022/mention/suggestions/suggestions.component.mjs +0 -80
  622. package/esm2022/menu/divider/menu-divider.component.mjs +0 -21
  623. package/esm2022/menu/group/menu-group.component.mjs +0 -187
  624. package/esm2022/menu/index.mjs +0 -9
  625. package/esm2022/menu/item/action/menu-item-action.component.mjs +0 -75
  626. package/esm2022/menu/item/icon/menu-item-icon.component.mjs +0 -33
  627. package/esm2022/menu/item/menu-item.component.mjs +0 -42
  628. package/esm2022/menu/item/name/menu-item-name.component.mjs +0 -32
  629. package/esm2022/menu/menu.component.mjs +0 -39
  630. package/esm2022/menu/menu.module.mjs +0 -49
  631. package/esm2022/menu/ngx-tethys-menu.mjs +0 -5
  632. package/esm2022/message/abstract/abstract-message-container.component.mjs +0 -26
  633. package/esm2022/message/abstract/abstract-message-queue.service.mjs +0 -34
  634. package/esm2022/message/abstract/abstract-message-ref.mjs +0 -22
  635. package/esm2022/message/abstract/abstract-message.component.mjs +0 -76
  636. package/esm2022/message/abstract/abstract-message.service.mjs +0 -29
  637. package/esm2022/message/abstract/index.mjs +0 -6
  638. package/esm2022/message/index.mjs +0 -9
  639. package/esm2022/message/message-container.component.mjs +0 -45
  640. package/esm2022/message/message-queue.service.mjs +0 -25
  641. package/esm2022/message/message-ref.mjs +0 -4
  642. package/esm2022/message/message.component.mjs +0 -61
  643. package/esm2022/message/message.config.mjs +0 -14
  644. package/esm2022/message/message.service.mjs +0 -92
  645. package/esm2022/message/module.mjs +0 -24
  646. package/esm2022/message/ngx-tethys-message.mjs +0 -5
  647. package/esm2022/nav/icon-nav/icon-nav-link.directive.mjs +0 -43
  648. package/esm2022/nav/icon-nav/icon-nav.component.mjs +0 -45
  649. package/esm2022/nav/index.mjs +0 -7
  650. package/esm2022/nav/nav-ink-bar.directive.mjs +0 -79
  651. package/esm2022/nav/nav-item.directive.mjs +0 -98
  652. package/esm2022/nav/nav.component.mjs +0 -410
  653. package/esm2022/nav/nav.module.mjs +0 -54
  654. package/esm2022/nav/nav.pipe.mjs +0 -24
  655. package/esm2022/nav/ngx-tethys-nav.mjs +0 -5
  656. package/esm2022/ngx-tethys.mjs +0 -5
  657. package/esm2022/notify/index.mjs +0 -8
  658. package/esm2022/notify/module.mjs +0 -24
  659. package/esm2022/notify/ngx-tethys-notify.mjs +0 -5
  660. package/esm2022/notify/notify-container.component.mjs +0 -31
  661. package/esm2022/notify/notify-queue.service.mjs +0 -30
  662. package/esm2022/notify/notify-ref.mjs +0 -4
  663. package/esm2022/notify/notify.component.mjs +0 -99
  664. package/esm2022/notify/notify.config.mjs +0 -14
  665. package/esm2022/notify/notify.service.mjs +0 -97
  666. package/esm2022/pagination/index.mjs +0 -6
  667. package/esm2022/pagination/ngx-tethys-pagination.mjs +0 -5
  668. package/esm2022/pagination/pagination.class.mjs +0 -2
  669. package/esm2022/pagination/pagination.component.mjs +0 -366
  670. package/esm2022/pagination/pagination.config.mjs +0 -30
  671. package/esm2022/pagination/pagination.module.mjs +0 -43
  672. package/esm2022/pagination/pagination.pipe.mjs +0 -53
  673. package/esm2022/popover/body/popover-body.component.mjs +0 -25
  674. package/esm2022/popover/header/popover-header.component.mjs +0 -54
  675. package/esm2022/popover/index.mjs +0 -10
  676. package/esm2022/popover/module.mjs +0 -47
  677. package/esm2022/popover/ngx-tethys-popover.mjs +0 -5
  678. package/esm2022/popover/popover-animations.mjs +0 -22
  679. package/esm2022/popover/popover-container.component.mjs +0 -125
  680. package/esm2022/popover/popover-ref.mjs +0 -25
  681. package/esm2022/popover/popover.config.mjs +0 -38
  682. package/esm2022/popover/popover.directive.mjs +0 -157
  683. package/esm2022/popover/popover.options.mjs +0 -6
  684. package/esm2022/popover/popover.service.mjs +0 -201
  685. package/esm2022/progress/index.mjs +0 -6
  686. package/esm2022/progress/interfaces.mjs +0 -2
  687. package/esm2022/progress/ngx-tethys-progress.mjs +0 -5
  688. package/esm2022/progress/progress-circle.component.mjs +0 -136
  689. package/esm2022/progress/progress-strip.component.mjs +0 -54
  690. package/esm2022/progress/progress.component.mjs +0 -142
  691. package/esm2022/progress/progress.module.mjs +0 -20
  692. package/esm2022/property/index.mjs +0 -4
  693. package/esm2022/property/module.mjs +0 -20
  694. package/esm2022/property/ngx-tethys-property.mjs +0 -5
  695. package/esm2022/property/properties.component.mjs +0 -59
  696. package/esm2022/property/property-item.component.mjs +0 -175
  697. package/esm2022/property-operation/group/property-operation-group.component.mjs +0 -20
  698. package/esm2022/property-operation/index.mjs +0 -4
  699. package/esm2022/property-operation/module.mjs +0 -21
  700. package/esm2022/property-operation/ngx-tethys-property-operation.mjs +0 -5
  701. package/esm2022/property-operation/property-operation.component.mjs +0 -183
  702. package/esm2022/public-api.mjs +0 -2
  703. package/esm2022/radio/button/radio-button.component.mjs +0 -56
  704. package/esm2022/radio/group/radio-group.component.mjs +0 -138
  705. package/esm2022/radio/index.mjs +0 -5
  706. package/esm2022/radio/module.mjs +0 -20
  707. package/esm2022/radio/ngx-tethys-radio.mjs +0 -5
  708. package/esm2022/radio/radio.component.mjs +0 -58
  709. package/esm2022/rate/index.mjs +0 -4
  710. package/esm2022/rate/module.mjs +0 -23
  711. package/esm2022/rate/ngx-tethys-rate.mjs +0 -5
  712. package/esm2022/rate/rate-item.component.mjs +0 -76
  713. package/esm2022/rate/rate.component.mjs +0 -244
  714. package/esm2022/resizable/index.mjs +0 -8
  715. package/esm2022/resizable/interface.mjs +0 -2
  716. package/esm2022/resizable/module.mjs +0 -19
  717. package/esm2022/resizable/ngx-tethys-resizable.mjs +0 -5
  718. package/esm2022/resizable/resizable.directive.mjs +0 -363
  719. package/esm2022/resizable/resizable.service.mjs +0 -69
  720. package/esm2022/resizable/resize-handle.component.mjs +0 -104
  721. package/esm2022/resizable/resize-handles.component.mjs +0 -64
  722. package/esm2022/resizable/utils.mjs +0 -14
  723. package/esm2022/result/index.mjs +0 -3
  724. package/esm2022/result/ngx-tethys-result.mjs +0 -5
  725. package/esm2022/result/result.component.mjs +0 -43
  726. package/esm2022/result/result.module.mjs +0 -17
  727. package/esm2022/segment/index.mjs +0 -5
  728. package/esm2022/segment/ngx-tethys-segment.mjs +0 -5
  729. package/esm2022/segment/segment-item.component.mjs +0 -87
  730. package/esm2022/segment/segment.component.mjs +0 -143
  731. package/esm2022/segment/segment.module.mjs +0 -20
  732. package/esm2022/segment/segment.token.mjs +0 -3
  733. package/esm2022/segment/types.mjs +0 -2
  734. package/esm2022/select/custom-select/custom-select.component.mjs +0 -904
  735. package/esm2022/select/index.mjs +0 -5
  736. package/esm2022/select/module.mjs +0 -62
  737. package/esm2022/select/native-select/native-select.component.mjs +0 -98
  738. package/esm2022/select/ngx-tethys-select.mjs +0 -5
  739. package/esm2022/select/select.config.mjs +0 -21
  740. package/esm2022/shared/base-form-check.component.mjs +0 -120
  741. package/esm2022/shared/directives/string-or-template-outlet.directive.mjs +0 -57
  742. package/esm2022/shared/directives/thy-autofocus.directive.mjs +0 -60
  743. package/esm2022/shared/directives/thy-contextmenu.directive.mjs +0 -39
  744. package/esm2022/shared/directives/thy-ctrl-enter.directive.mjs +0 -43
  745. package/esm2022/shared/directives/thy-drag-drop.directive.mjs +0 -51
  746. package/esm2022/shared/directives/thy-enter.directive.mjs +0 -43
  747. package/esm2022/shared/directives/thy-scroll.directive.mjs +0 -84
  748. package/esm2022/shared/directives/thy-show.mjs +0 -59
  749. package/esm2022/shared/directives/thy-stop-propagation.directive.mjs +0 -57
  750. package/esm2022/shared/directives/view-outlet.directive.mjs +0 -85
  751. package/esm2022/shared/index.mjs +0 -16
  752. package/esm2022/shared/ng-transclude.directive.mjs +0 -32
  753. package/esm2022/shared/ngx-tethys-shared.mjs +0 -5
  754. package/esm2022/shared/option/group/option-group.component.mjs +0 -92
  755. package/esm2022/shared/option/index.mjs +0 -9
  756. package/esm2022/shared/option/list-option/list-option.component.mjs +0 -96
  757. package/esm2022/shared/option/module.mjs +0 -29
  758. package/esm2022/shared/option/option-group.component.mjs +0 -25
  759. package/esm2022/shared/option/option.component.mjs +0 -181
  760. package/esm2022/shared/option/option.token.mjs +0 -14
  761. package/esm2022/shared/option/options-container.component.mjs +0 -29
  762. package/esm2022/shared/option/select-option-base.mjs +0 -3
  763. package/esm2022/shared/select/index.mjs +0 -3
  764. package/esm2022/shared/select/module.mjs +0 -27
  765. package/esm2022/shared/select/select-control/select-control.component.mjs +0 -280
  766. package/esm2022/shared/shared.module.mjs +0 -71
  767. package/esm2022/skeleton/index.mjs +0 -9
  768. package/esm2022/skeleton/module.mjs +0 -27
  769. package/esm2022/skeleton/ngx-tethys-skeleton.mjs +0 -5
  770. package/esm2022/skeleton/skeleton-circle.component.mjs +0 -92
  771. package/esm2022/skeleton/skeleton-rectangle.component.mjs +0 -100
  772. package/esm2022/skeleton/skeleton.component.mjs +0 -32
  773. package/esm2022/skeleton/skeleton.config.mjs +0 -8
  774. package/esm2022/skeleton/stylized/bullet-list.component.mjs +0 -124
  775. package/esm2022/skeleton/stylized/list.component.mjs +0 -95
  776. package/esm2022/skeleton/stylized/paragraph.component.mjs +0 -107
  777. package/esm2022/slide/drawer/drawer-container.directive.mjs +0 -21
  778. package/esm2022/slide/index.mjs +0 -13
  779. package/esm2022/slide/ngx-tethys-slide.mjs +0 -5
  780. package/esm2022/slide/slide-animations.mjs +0 -24
  781. package/esm2022/slide/slide-body/slide-body-section.component.mjs +0 -41
  782. package/esm2022/slide/slide-body/slide-body.component.mjs +0 -25
  783. package/esm2022/slide/slide-container.component.mjs +0 -192
  784. package/esm2022/slide/slide-footer/slide-footer.component.mjs +0 -26
  785. package/esm2022/slide/slide-header/slide-header.component.mjs +0 -59
  786. package/esm2022/slide/slide-layout/slide-layout.component.mjs +0 -27
  787. package/esm2022/slide/slide-ref.service.mjs +0 -32
  788. package/esm2022/slide/slide.config.mjs +0 -38
  789. package/esm2022/slide/slide.module.mjs +0 -65
  790. package/esm2022/slide/slide.service.mjs +0 -104
  791. package/esm2022/slider/index.mjs +0 -3
  792. package/esm2022/slider/ngx-tethys-slider.mjs +0 -5
  793. package/esm2022/slider/slider.component.mjs +0 -346
  794. package/esm2022/slider/slider.module.mjs +0 -19
  795. package/esm2022/space/index.mjs +0 -3
  796. package/esm2022/space/ngx-tethys-space.mjs +0 -5
  797. package/esm2022/space/space.component.mjs +0 -88
  798. package/esm2022/space/space.module.mjs +0 -17
  799. package/esm2022/statistic/index.mjs +0 -3
  800. package/esm2022/statistic/ngx-tethys-statistic.mjs +0 -5
  801. package/esm2022/statistic/statistic.component.mjs +0 -184
  802. package/esm2022/statistic/statistic.module.mjs +0 -20
  803. package/esm2022/stepper/index.mjs +0 -6
  804. package/esm2022/stepper/ngx-tethys-stepper.mjs +0 -5
  805. package/esm2022/stepper/step-header.component.mjs +0 -40
  806. package/esm2022/stepper/step.component.mjs +0 -32
  807. package/esm2022/stepper/stepper-button.directive.mjs +0 -56
  808. package/esm2022/stepper/stepper.component.mjs +0 -105
  809. package/esm2022/stepper/stepper.module.mjs +0 -21
  810. package/esm2022/strength/index.mjs +0 -3
  811. package/esm2022/strength/ngx-tethys-strength.mjs +0 -5
  812. package/esm2022/strength/strength.component.mjs +0 -122
  813. package/esm2022/strength/strength.module.mjs +0 -17
  814. package/esm2022/switch/index.mjs +0 -3
  815. package/esm2022/switch/ngx-tethys-switch.mjs +0 -5
  816. package/esm2022/switch/switch.component.mjs +0 -181
  817. package/esm2022/switch/switch.module.mjs +0 -17
  818. package/esm2022/table/enums/column-skeleton-type.mjs +0 -8
  819. package/esm2022/table/enums/index.mjs +0 -2
  820. package/esm2022/table/index.mjs +0 -9
  821. package/esm2022/table/ngx-tethys-table.mjs +0 -5
  822. package/esm2022/table/pipes/drag.pipe.mjs +0 -20
  823. package/esm2022/table/pipes/table.pipe.mjs +0 -20
  824. package/esm2022/table/table-column.component.mjs +0 -200
  825. package/esm2022/table/table-skeleton.component.mjs +0 -165
  826. package/esm2022/table/table.component.mjs +0 -966
  827. package/esm2022/table/table.interface.mjs +0 -7
  828. package/esm2022/table/table.module.mjs +0 -75
  829. package/esm2022/tabs/index.mjs +0 -5
  830. package/esm2022/tabs/ngx-tethys-tabs.mjs +0 -5
  831. package/esm2022/tabs/tab-content.component.mjs +0 -52
  832. package/esm2022/tabs/tab.component.mjs +0 -36
  833. package/esm2022/tabs/tabs.component.mjs +0 -139
  834. package/esm2022/tabs/tabs.module.mjs +0 -21
  835. package/esm2022/tabs/types.mjs +0 -2
  836. package/esm2022/tag/index.mjs +0 -4
  837. package/esm2022/tag/ngx-tethys-tag.mjs +0 -5
  838. package/esm2022/tag/tag.component.mjs +0 -109
  839. package/esm2022/tag/tag.module.mjs +0 -19
  840. package/esm2022/tag/tags.component.mjs +0 -24
  841. package/esm2022/testing/data-transfer.mjs +0 -55
  842. package/esm2022/testing/dispatcher-events.mjs +0 -46
  843. package/esm2022/testing/element-focus.mjs +0 -18
  844. package/esm2022/testing/events.mjs +0 -145
  845. package/esm2022/testing/index.mjs +0 -8
  846. package/esm2022/testing/ngx-tethys-testing.mjs +0 -5
  847. package/esm2022/testing/thy-icon.mjs +0 -50
  848. package/esm2022/testing/type-in-element.mjs +0 -20
  849. package/esm2022/testing/xhr-mock.mjs +0 -100
  850. package/esm2022/time-picker/index.mjs +0 -8
  851. package/esm2022/time-picker/inner/inner-time-picker.class.mjs +0 -2
  852. package/esm2022/time-picker/inner/inner-time-picker.component.mjs +0 -239
  853. package/esm2022/time-picker/inner/inner-time-picker.config.mjs +0 -45
  854. package/esm2022/time-picker/inner/inner-time-picker.store.mjs +0 -134
  855. package/esm2022/time-picker/ngx-tethys-time-picker.mjs +0 -5
  856. package/esm2022/time-picker/time-picker-controls.util.mjs +0 -118
  857. package/esm2022/time-picker/time-picker-panel.component.mjs +0 -265
  858. package/esm2022/time-picker/time-picker.component.mjs +0 -363
  859. package/esm2022/time-picker/time-picker.module.mjs +0 -54
  860. package/esm2022/time-picker/time-picker.utils.mjs +0 -131
  861. package/esm2022/timeline/index.mjs +0 -5
  862. package/esm2022/timeline/ngx-tethys-timeline.mjs +0 -5
  863. package/esm2022/timeline/timeline-item.component.mjs +0 -59
  864. package/esm2022/timeline/timeline.component.mjs +0 -156
  865. package/esm2022/timeline/timeline.module.mjs +0 -21
  866. package/esm2022/timeline/timeline.service.mjs +0 -17
  867. package/esm2022/tooltip/index.mjs +0 -9
  868. package/esm2022/tooltip/interface.mjs +0 -2
  869. package/esm2022/tooltip/ngx-tethys-tooltip.mjs +0 -5
  870. package/esm2022/tooltip/tooltip-animations.mjs +0 -23
  871. package/esm2022/tooltip/tooltip-ref.mjs +0 -147
  872. package/esm2022/tooltip/tooltip.component.mjs +0 -103
  873. package/esm2022/tooltip/tooltip.config.mjs +0 -17
  874. package/esm2022/tooltip/tooltip.directive.mjs +0 -150
  875. package/esm2022/tooltip/tooltip.module.mjs +0 -22
  876. package/esm2022/tooltip/tooltip.service.mjs +0 -28
  877. package/esm2022/transfer/index.mjs +0 -5
  878. package/esm2022/transfer/ngx-tethys-transfer.mjs +0 -5
  879. package/esm2022/transfer/transfer-list.component.mjs +0 -154
  880. package/esm2022/transfer/transfer.component.mjs +0 -180
  881. package/esm2022/transfer/transfer.interface.mjs +0 -6
  882. package/esm2022/transfer/transfer.module.mjs +0 -50
  883. package/esm2022/tree/index.mjs +0 -7
  884. package/esm2022/tree/ngx-tethys-tree.mjs +0 -5
  885. package/esm2022/tree/tree-abstract.mjs +0 -3
  886. package/esm2022/tree/tree-node.class.mjs +0 -93
  887. package/esm2022/tree/tree-node.component.mjs +0 -212
  888. package/esm2022/tree/tree.class.mjs +0 -15
  889. package/esm2022/tree/tree.component.mjs +0 -648
  890. package/esm2022/tree/tree.module.mjs +0 -74
  891. package/esm2022/tree/tree.pipe.mjs +0 -26
  892. package/esm2022/tree/tree.service.mjs +0 -187
  893. package/esm2022/tree-select/index.mjs +0 -4
  894. package/esm2022/tree-select/module.mjs +0 -52
  895. package/esm2022/tree-select/ngx-tethys-tree-select.mjs +0 -5
  896. package/esm2022/tree-select/tree-select.class.mjs +0 -2
  897. package/esm2022/tree-select/tree-select.component.mjs +0 -653
  898. package/esm2022/types/common.mjs +0 -2
  899. package/esm2022/types/dictionary.mjs +0 -2
  900. package/esm2022/types/index.mjs +0 -4
  901. package/esm2022/types/ngx-tethys-types.mjs +0 -5
  902. package/esm2022/types/pagination.mjs +0 -2
  903. package/esm2022/typography/bg-color.directive.mjs +0 -51
  904. package/esm2022/typography/index.mjs +0 -5
  905. package/esm2022/typography/module.mjs +0 -21
  906. package/esm2022/typography/ngx-tethys-typography.mjs +0 -5
  907. package/esm2022/typography/text/text.component.mjs +0 -23
  908. package/esm2022/typography/text-color.directive.mjs +0 -52
  909. package/esm2022/upload/constant.mjs +0 -75
  910. package/esm2022/upload/file-drop.directive.mjs +0 -166
  911. package/esm2022/upload/file-select-base.mjs +0 -75
  912. package/esm2022/upload/file-select.component.mjs +0 -98
  913. package/esm2022/upload/index.mjs +0 -7
  914. package/esm2022/upload/module.mjs +0 -22
  915. package/esm2022/upload/ngx-tethys-upload.mjs +0 -5
  916. package/esm2022/upload/types.mjs +0 -2
  917. package/esm2022/upload/upload.config.mjs +0 -21
  918. package/esm2022/upload/upload.service.mjs +0 -169
  919. package/esm2022/upload/util.mjs +0 -27
  920. package/esm2022/util/date/functions.mjs +0 -84
  921. package/esm2022/util/date/tiny-date.mjs +0 -362
  922. package/esm2022/util/dom.mjs +0 -247
  923. package/esm2022/util/helpers/helpers.mjs +0 -293
  924. package/esm2022/util/helpers/index.mjs +0 -2
  925. package/esm2022/util/immutable.mjs +0 -108
  926. package/esm2022/util/index.mjs +0 -16
  927. package/esm2022/util/keycodes.mjs +0 -2
  928. package/esm2022/util/logger/index.mjs +0 -2
  929. package/esm2022/util/logger/logger.mjs +0 -42
  930. package/esm2022/util/ng.mjs +0 -7
  931. package/esm2022/util/ngx-tethys-util.mjs +0 -5
  932. package/esm2022/util/references.mjs +0 -84
  933. package/esm2022/version.mjs +0 -3
  934. package/esm2022/vote/index.mjs +0 -3
  935. package/esm2022/vote/ngx-tethys-vote.mjs +0 -5
  936. package/esm2022/vote/vote.component.mjs +0 -130
  937. package/esm2022/vote/vote.module.mjs +0 -20
  938. package/esm2022/watermark/config.mjs +0 -20
  939. package/esm2022/watermark/index.mjs +0 -3
  940. package/esm2022/watermark/ngx-tethys-watermark.mjs +0 -5
  941. package/esm2022/watermark/watermark.directive.mjs +0 -178
  942. package/esm2022/watermark/watermark.module.mjs +0 -19
  943. package/schematics/ng-update/update-18/complete.d.ts +0 -3
  944. package/schematics/ng-update/update-18/complete.js +0 -13
  945. /package/schematics/ng-update/{update-18 → update-19}/class-name-migration.d.ts +0 -0
  946. /package/schematics/ng-update/{update-18 → update-19}/class-name-migration.js +0 -0
  947. /package/schematics/ng-update/{update-18 → update-19}/index.d.ts +0 -0
  948. /package/schematics/ng-update/{update-18 → update-19}/index.spec.d.ts +0 -0
  949. /package/schematics/ng-update/{update-18 → update-19}/update-data.d.ts +0 -0
  950. /package/schematics/ng-update/{update-18 → update-19}/update-data.js +0 -0
package/CHANGELOG.md CHANGED
@@ -2,6 +2,25 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
4
4
 
5
+ # [19.0.0-next.0](https://github.com/atinc/ngx-tethys/compare/18.2.7...19.0.0-next.0) (2025-03-17)
6
+
7
+
8
+ ### Features
9
+
10
+ * upgrade ng to 19 ([5ec421d](https://github.com/atinc/ngx-tethys/commit/5ec421dc6a2972983114d8c5092b6249b4dddc86))
11
+ * upgrade ng to 19.2.x #TINFR-1676 ([675f754](https://github.com/atinc/ngx-tethys/commit/675f7547f389e9f8e5f605be3905f3de9c199844)), closes [#TINFR-1676](https://github.com/atinc/ngx-tethys/issues/TINFR-1676)
12
+
13
+
14
+
15
+ ## [18.2.7](https://github.com/atinc/ngx-tethys/compare/18.2.6...18.2.7) (2025-03-11)
16
+
17
+
18
+ ### Features
19
+
20
+ * **layout:** layout support i18n #TINFR-1616 ([#3301](https://github.com/atinc/ngx-tethys/issues/3301)) ([263c10c](https://github.com/atinc/ngx-tethys/commit/263c10c57b3a792eda7cde325723f43e1773b2d9)), closes [#TINFR-1616](https://github.com/atinc/ngx-tethys/issues/TINFR-1616)
21
+
22
+
23
+
5
24
  ## [18.2.6](https://github.com/atinc/ngx-tethys/compare/18.2.5...18.2.6) (2025-02-14)
6
25
 
7
26
 
@@ -91,7 +91,25 @@ export declare class ThyBadge implements OnInit {
91
91
  static ɵcmp: i0.ɵɵComponentDeclaration<ThyBadge, "thy-badge,[thyBadge]", never, { "thyType": { "alias": "thyType"; "required": false; }; "thyCount": { "alias": "thyCount"; "required": false; }; "thyContent": { "alias": "thyContent"; "required": false; }; "thyContext": { "alias": "thyContext"; "required": false; }; "thyMaxCount": { "alias": "thyMaxCount"; "required": false; }; "thySize": { "alias": "thySize"; "required": false; }; "thyIsDot": { "alias": "thyIsDot"; "required": false; }; "thyIsHollow": { "alias": "thyIsHollow"; "required": false; }; "thyKeepShow": { "alias": "thyKeepShow"; "required": false; }; "thyTextColor": { "alias": "thyTextColor"; "required": false; }; "thyBackgroundColor": { "alias": "thyBackgroundColor"; "required": false; }; }, {}, never, ["*"], true, never>;
92
92
  static ngAcceptInputType_thyCount: unknown;
93
93
  static ngAcceptInputType_thyMaxCount: unknown;
94
- static ngAcceptInputType_thyIsDot: boolean | string | number;
95
- static ngAcceptInputType_thyIsHollow: boolean | string | number;
96
- static ngAcceptInputType_thyKeepShow: boolean | string | number;
94
+ static ngAcceptInputType_thyIsDot: boolean | string /**
95
+ * 徽标内容文本
96
+ * @type string
97
+ */ | /**
98
+ * 徽标内容文本
99
+ * @type string
100
+ */ number;
101
+ static ngAcceptInputType_thyIsHollow: boolean | string /**
102
+ * 徽标内容文本
103
+ * @type string
104
+ */ | /**
105
+ * 徽标内容文本
106
+ * @type string
107
+ */ number;
108
+ static ngAcceptInputType_thyKeepShow: boolean | string /**
109
+ * 徽标内容文本
110
+ * @type string
111
+ */ | /**
112
+ * 徽标内容文本
113
+ * @type string
114
+ */ number;
97
115
  }
@@ -20,7 +20,10 @@ export declare class ThyCascaderSearchOptionComponent implements OnInit {
20
20
  toggleOption(value: boolean): void;
21
21
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyCascaderSearchOptionComponent, never>;
22
22
  static ɵcmp: i0.ɵɵComponentDeclaration<ThyCascaderSearchOptionComponent, "[thy-cascader-search-option]", never, { "option": { "alias": "option"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "isOnlySelectLeaf": { "alias": "isOnlySelectLeaf"; "required": false; }; "active": { "alias": "active"; "required": false; }; "optionRender": { "alias": "optionRender"; "required": false; }; }, { "toggleSelectChange": "toggleSelectChange"; }, never, never, true, never>;
23
- static ngAcceptInputType_multiple: boolean | string | number;
24
- static ngAcceptInputType_isOnlySelectLeaf: boolean | string | number;
25
- static ngAcceptInputType_active: boolean | string | number;
23
+ static ngAcceptInputType_multiple: // 已选中的在搜索情况下不能取消选择
24
+ boolean | string | number;
25
+ static ngAcceptInputType_isOnlySelectLeaf: // 已选中的在搜索情况下不能取消选择
26
+ boolean | string | number;
27
+ static ngAcceptInputType_active: // 已选中的在搜索情况下不能取消选择
28
+ boolean | string | number;
26
29
  }
@@ -39,5 +39,5 @@ export declare class MiniStore<T = unknown> implements Observer<T>, OnDestroy {
39
39
  getStoreInstanceId(): string;
40
40
  private _getClassName;
41
41
  static ɵfac: i0.ɵɵFactoryDeclaration<MiniStore<any>, never>;
42
- static ɵdir: i0.ɵɵDirectiveDeclaration<MiniStore<any>, never, never, {}, {}, never, never, false, never>;
42
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MiniStore<any>, never, never, {}, {}, never, never, true, never>;
43
43
  }
@@ -155,7 +155,7 @@ export declare abstract class AbstractPickerComponent extends TabIndexDisabledCo
155
155
  setValue(value: CompatibleDate): void;
156
156
  private setValueByPrecision;
157
157
  static ɵfac: i0.ɵɵFactoryDeclaration<AbstractPickerComponent, never>;
158
- static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractPickerComponent, never, never, { "thyMode": { "alias": "thyMode"; "required": false; }; "thyAllowClear": { "alias": "thyAllowClear"; "required": false; }; "thyAutoFocus": { "alias": "thyAutoFocus"; "required": false; }; "thyOpen": { "alias": "thyOpen"; "required": false; }; "thyDisabledDate": { "alias": "thyDisabledDate"; "required": false; }; "thyMinDate": { "alias": "thyMinDate"; "required": false; }; "thyMaxDate": { "alias": "thyMaxDate"; "required": false; }; "thyPlaceHolder": { "alias": "thyPlaceHolder"; "required": false; }; "thyReadonly": { "alias": "thyReadonly"; "required": false; }; "thyOriginClassName": { "alias": "thyOriginClassName"; "required": false; }; "thyPanelClassName": { "alias": "thyPanelClassName"; "required": false; }; "thySize": { "alias": "thySize"; "required": false; }; "thyTimestampPrecision": { "alias": "thyTimestampPrecision"; "required": false; }; "thyFormat": { "alias": "thyFormat"; "required": false; }; "thyAutoStartAndEnd": { "alias": "thyAutoStartAndEnd"; "required": false; }; "thyDefaultPickerValue": { "alias": "thyDefaultPickerValue"; "required": false; }; "thySuffixIcon": { "alias": "thySuffixIcon"; "required": false; }; "thyShowShortcut": { "alias": "thyShowShortcut"; "required": false; }; "thyShortcutPosition": { "alias": "thyShortcutPosition"; "required": false; }; "thyShortcutPresets": { "alias": "thyShortcutPresets"; "required": false; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; }; }, { "thyDateChange": "thyDateChange"; "thyOpenChange": "thyOpenChange"; }, never, never, false, never>;
158
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractPickerComponent, never, never, { "thyMode": { "alias": "thyMode"; "required": false; }; "thyAllowClear": { "alias": "thyAllowClear"; "required": false; }; "thyAutoFocus": { "alias": "thyAutoFocus"; "required": false; }; "thyOpen": { "alias": "thyOpen"; "required": false; }; "thyDisabledDate": { "alias": "thyDisabledDate"; "required": false; }; "thyMinDate": { "alias": "thyMinDate"; "required": false; }; "thyMaxDate": { "alias": "thyMaxDate"; "required": false; }; "thyPlaceHolder": { "alias": "thyPlaceHolder"; "required": false; }; "thyReadonly": { "alias": "thyReadonly"; "required": false; }; "thyOriginClassName": { "alias": "thyOriginClassName"; "required": false; }; "thyPanelClassName": { "alias": "thyPanelClassName"; "required": false; }; "thySize": { "alias": "thySize"; "required": false; }; "thyTimestampPrecision": { "alias": "thyTimestampPrecision"; "required": false; }; "thyFormat": { "alias": "thyFormat"; "required": false; }; "thyAutoStartAndEnd": { "alias": "thyAutoStartAndEnd"; "required": false; }; "thyDefaultPickerValue": { "alias": "thyDefaultPickerValue"; "required": false; }; "thySuffixIcon": { "alias": "thySuffixIcon"; "required": false; }; "thyShowShortcut": { "alias": "thyShowShortcut"; "required": false; }; "thyShortcutPosition": { "alias": "thyShortcutPosition"; "required": false; }; "thyShortcutPresets": { "alias": "thyShortcutPresets"; "required": false; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; }; }, { "thyDateChange": "thyDateChange"; "thyOpenChange": "thyOpenChange"; }, never, never, true, never>;
159
159
  static ngAcceptInputType_thyAllowClear: boolean | string | number;
160
160
  static ngAcceptInputType_thyAutoFocus: boolean | string | number;
161
161
  static ngAcceptInputType_thyOpen: boolean | string | number;
@@ -74,7 +74,7 @@ export declare abstract class PickerDirective extends AbstractPickerComponent im
74
74
  restoreTimePickerState(value: CompatibleValue | null): void;
75
75
  onShowTimePickerChange(show: boolean): void;
76
76
  static ɵfac: i0.ɵɵFactoryDeclaration<PickerDirective, never>;
77
- static ɵdir: i0.ɵɵDirectiveDeclaration<PickerDirective, never, never, { "thyDateRender": { "alias": "thyDateRender"; "required": false; }; "thyShowTime": { "alias": "thyShowTime"; "required": false; }; "thyMustShowTime": { "alias": "thyMustShowTime"; "required": false; }; "thyPlacement": { "alias": "thyPlacement"; "required": false; }; "thyOffset": { "alias": "thyOffset"; "required": false; }; "thyHasBackdrop": { "alias": "thyHasBackdrop"; "required": false; }; "thyPopoverOptions": { "alias": "thyPopoverOptions"; "required": false; }; "thyStopPropagation": { "alias": "thyStopPropagation"; "required": false; }; }, { "thyOnPanelChange": "thyOnPanelChange"; "thyOnCalendarChange": "thyOnCalendarChange"; }, never, never, false, never>;
77
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PickerDirective, never, never, { "thyDateRender": { "alias": "thyDateRender"; "required": false; }; "thyShowTime": { "alias": "thyShowTime"; "required": false; }; "thyMustShowTime": { "alias": "thyMustShowTime"; "required": false; }; "thyPlacement": { "alias": "thyPlacement"; "required": false; }; "thyOffset": { "alias": "thyOffset"; "required": false; }; "thyHasBackdrop": { "alias": "thyHasBackdrop"; "required": false; }; "thyPopoverOptions": { "alias": "thyPopoverOptions"; "required": false; }; "thyStopPropagation": { "alias": "thyStopPropagation"; "required": false; }; }, { "thyOnPanelChange": "thyOnPanelChange"; "thyOnCalendarChange": "thyOnCalendarChange"; }, never, never, true, never>;
78
78
  static ngAcceptInputType_thyMustShowTime: any;
79
79
  static ngAcceptInputType_thyOffset: unknown;
80
80
  static ngAcceptInputType_thyHasBackdrop: any;
@@ -40,5 +40,5 @@ export declare abstract class CalendarHeader implements OnInit, OnChanges {
40
40
  changeValue(value: TinyDate): void;
41
41
  formatDateTime(format: string): string;
42
42
  static ɵfac: i0.ɵɵFactoryDeclaration<CalendarHeader, never>;
43
- static ɵdir: i0.ɵɵDirectiveDeclaration<CalendarHeader, never, never, { "showSuperPreBtn": { "alias": "showSuperPreBtn"; "required": false; }; "showSuperNextBtn": { "alias": "showSuperNextBtn"; "required": false; }; "showPreBtn": { "alias": "showPreBtn"; "required": false; }; "showNextBtn": { "alias": "showNextBtn"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; "panelModeChange": "panelModeChange"; }, never, never, false, never>;
43
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CalendarHeader, never, never, { "showSuperPreBtn": { "alias": "showSuperPreBtn"; "required": false; }; "showSuperNextBtn": { "alias": "showSuperNextBtn"; "required": false; }; "showPreBtn": { "alias": "showPreBtn"; "required": false; }; "showNextBtn": { "alias": "showNextBtn"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; "panelModeChange": "panelModeChange"; }, never, never, true, never>;
44
44
  }
@@ -37,5 +37,5 @@ export declare abstract class CalendarTable implements OnInit, OnChanges {
37
37
  private isDateRealChange;
38
38
  private isSameDate;
39
39
  static ɵfac: i0.ɵɵFactoryDeclaration<CalendarTable, never>;
40
- static ɵdir: i0.ɵɵDirectiveDeclaration<CalendarTable, never, never, { "prefixCls": { "alias": "prefixCls"; "required": false; }; "value": { "alias": "value"; "required": false; }; "activeDate": { "alias": "activeDate"; "required": false; }; "showWeek": { "alias": "showWeek"; "required": false; }; "selectedValue": { "alias": "selectedValue"; "required": false; }; "hoverValue": { "alias": "hoverValue"; "required": false; }; "disabledDate": { "alias": "disabledDate"; "required": false; }; "cellRender": { "alias": "cellRender"; "required": false; }; "fullCellRender": { "alias": "fullCellRender"; "required": false; }; }, { "valueChange": "valueChange"; "cellHover": "cellHover"; }, never, never, false, never>;
40
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CalendarTable, never, never, { "prefixCls": { "alias": "prefixCls"; "required": false; }; "value": { "alias": "value"; "required": false; }; "activeDate": { "alias": "activeDate"; "required": false; }; "showWeek": { "alias": "showWeek"; "required": false; }; "selectedValue": { "alias": "selectedValue"; "required": false; }; "hoverValue": { "alias": "hoverValue"; "required": false; }; "disabledDate": { "alias": "disabledDate"; "required": false; }; "cellRender": { "alias": "cellRender"; "required": false; }; "fullCellRender": { "alias": "fullCellRender"; "required": false; }; }, { "valueChange": "valueChange"; "cellHover": "cellHover"; }, never, never, true, never>;
41
41
  }
@@ -80,6 +80,16 @@ export declare class ThyDateRange implements OnInit, ControlValueAccessor {
80
80
  openOptionalDateRangesMenu(event: Event): void;
81
81
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyDateRange, never>;
82
82
  static ɵcmp: i0.ɵɵComponentDeclaration<ThyDateRange, "thy-date-range", never, { "thyOptionalDateRanges": { "alias": "thyOptionalDateRanges"; "required": false; }; "thyHiddenMenu": { "alias": "thyHiddenMenu"; "required": false; }; "thyDisabledSwitch": { "alias": "thyDisabledSwitch"; "required": false; }; "thyCustomTextValue": { "alias": "thyCustomTextValue"; "required": false; }; "thyMinDate": { "alias": "thyMinDate"; "required": false; }; "thyMaxDate": { "alias": "thyMaxDate"; "required": false; }; "thyCustomKey": { "alias": "thyCustomKey"; "required": false; }; "thyPickerFormat": { "alias": "thyPickerFormat"; "required": false; }; "thyDisabledDate": { "alias": "thyDisabledDate"; "required": false; }; }, { "thyOnCalendarChange": "thyOnCalendarChange"; }, never, never, true, never>;
83
- static ngAcceptInputType_thyHiddenMenu: boolean | string | number;
84
- static ngAcceptInputType_thyDisabledSwitch: boolean | string | number;
83
+ static ngAcceptInputType_thyHiddenMenu: boolean | string |
84
+ /**
85
+ * 自定义日期选择的展示文字
86
+ * @default 自定义
87
+ */
88
+ number;
89
+ static ngAcceptInputType_thyDisabledSwitch: boolean | string |
90
+ /**
91
+ * 自定义日期选择的展示文字
92
+ * @default 自定义
93
+ */
94
+ number;
85
95
  }
@@ -46,12 +46,6 @@ export declare class ThyDivider implements OnChanges, OnInit {
46
46
  setColor(color: ThyDividerColor): void;
47
47
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyDivider, never>;
48
48
  static ɵcmp: i0.ɵɵComponentDeclaration<ThyDivider, "thy-divider", never, { "thyVertical": { "alias": "thyVertical"; "required": false; }; "thyStyle": { "alias": "thyStyle"; "required": false; }; "thyColor": { "alias": "thyColor"; "required": false; }; "thyText": { "alias": "thyText"; "required": false; }; "thyTextDirection": { "alias": "thyTextDirection"; "required": false; }; "thyDeeper": { "alias": "thyDeeper"; "required": false; }; }, {}, never, never, true, never>;
49
- static ngAcceptInputType_thyVertical: boolean /**
50
- * 是否垂直方向
51
- * @default false
52
- */ | string | number;
53
- static ngAcceptInputType_thyDeeper: boolean /**
54
- * 是否垂直方向
55
- * @default false
56
- */ | string | number;
49
+ static ngAcceptInputType_thyVertical: boolean | string | number;
50
+ static ngAcceptInputType_thyDeeper: boolean | string | number;
57
51
  }
@@ -9,7 +9,7 @@ export declare const THY_DROPDOWN_DEFAULT_WIDTH = "240px";
9
9
  export declare class ThyDropdownAbstractMenu {
10
10
  addDropdownMenuClass: boolean;
11
11
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyDropdownAbstractMenu, never>;
12
- static ɵdir: i0.ɵɵDirectiveDeclaration<ThyDropdownAbstractMenu, never, never, {}, {}, never, never, false, never>;
12
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ThyDropdownAbstractMenu, never, never, {}, {}, never, never, true, never>;
13
13
  }
14
14
  /**
15
15
  * 下拉菜单组件
@@ -93,8 +93,5 @@ export declare class ThyEmpty implements OnInit, AfterViewInit, OnChanges {
93
93
  setPresetSvg(icon: string): void;
94
94
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyEmpty, never>;
95
95
  static ɵcmp: i0.ɵɵComponentDeclaration<ThyEmpty, "thy-empty", never, { "thyMessage": { "alias": "thyMessage"; "required": false; }; "thyTranslationKey": { "alias": "thyTranslationKey"; "required": false; }; "thyTranslationValues": { "alias": "thyTranslationValues"; "required": false; }; "thyEntityName": { "alias": "thyEntityName"; "required": false; }; "thyEntityNameTranslateKey": { "alias": "thyEntityNameTranslateKey"; "required": false; }; "thyIconName": { "alias": "thyIconName"; "required": false; }; "thySize": { "alias": "thySize"; "required": false; }; "thyMarginTop": { "alias": "thyMarginTop"; "required": false; }; "thyTopAuto": { "alias": "thyTopAuto"; "required": false; }; "thyContainer": { "alias": "thyContainer"; "required": false; }; "thyImageUrl": { "alias": "thyImageUrl"; "required": false; }; "thyImageLoading": { "alias": "thyImageLoading"; "required": false; }; "thyImageFetchPriority": { "alias": "thyImageFetchPriority"; "required": false; }; "thyDescription": { "alias": "thyDescription"; "required": false; }; }, {}, ["extraTemplateRef"], never, true, never>;
96
- static ngAcceptInputType_thyTopAuto: /**
97
- * 显示文本提示信息。同时传入 thyMessage,thyTranslationKey,thyEntityName,thyEntityNameTranslateKey 时优先级最高
98
- * @default 暂无数据
99
- */ boolean | string | number;
96
+ static ngAcceptInputType_thyTopAuto: boolean | string | number;
100
97
  }
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { inject, ElementRef, Renderer2, ChangeDetectorRef, Component, ChangeDetectionStrategy, Input, ContentChildren, NgModule } from '@angular/core';
2
+ import { inject, ElementRef, Renderer2, ChangeDetectorRef, Input, ChangeDetectionStrategy, Component, ContentChildren, NgModule } from '@angular/core';
3
3
  import { useHostRenderer } from '@tethys/cdk/dom';
4
4
  import { ThyIcon, ThyIconModule } from 'ngx-tethys/icon';
5
5
  import { timer } from 'rxjs';
@@ -142,10 +142,10 @@ class ThyAction {
142
142
  ngOnDestroy() {
143
143
  this.feedbackTimer?.unsubscribe();
144
144
  }
145
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ThyAction, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
146
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: ThyAction, isStandalone: true, selector: "thy-action, [thyAction]", inputs: { thyType: "thyType", thyIcon: "thyIcon", thyActionIcon: "thyActionIcon", thyActive: ["thyActive", "thyActive", coerceBooleanProperty], thyActionActive: ["thyActionActive", "thyActionActive", coerceBooleanProperty], thyTheme: "thyTheme", thyHoverIcon: "thyHoverIcon", thyDisabled: ["thyDisabled", "thyDisabled", coerceBooleanProperty] }, host: { properties: { "class.active": "active", "class.thy-action-hover-icon": "thyHoverIcon", "class.thy-action-has-feedback": "!!feedback", "class.disabled": "thyDisabled" }, classAttribute: "thy-action" }, usesOnChanges: true, ngImport: i0, template: "@if (icon && !feedback) {\n <thy-icon [thyIconName]=\"icon\"></thy-icon>\n}\n@if (feedbackOptions?.icon) {\n <thy-icon [class]=\"feedbackOptions.class\" [thyIconName]=\"feedbackOptions.icon\"></thy-icon>\n}\n@if (thyHoverIcon) {\n <thy-icon class=\"hover-icon\" [thyIconName]=\"thyHoverIcon\"></thy-icon>\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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
145
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: ThyAction, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
146
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.2", type: ThyAction, isStandalone: true, selector: "thy-action, [thyAction]", inputs: { thyType: "thyType", thyIcon: "thyIcon", thyActionIcon: "thyActionIcon", thyActive: ["thyActive", "thyActive", coerceBooleanProperty], thyActionActive: ["thyActionActive", "thyActionActive", coerceBooleanProperty], thyTheme: "thyTheme", thyHoverIcon: "thyHoverIcon", thyDisabled: ["thyDisabled", "thyDisabled", coerceBooleanProperty] }, host: { properties: { "class.active": "active", "class.thy-action-hover-icon": "thyHoverIcon", "class.thy-action-has-feedback": "!!feedback", "class.disabled": "thyDisabled" }, classAttribute: "thy-action" }, usesOnChanges: true, ngImport: i0, template: "@if (icon && !feedback) {\n <thy-icon [thyIconName]=\"icon\"></thy-icon>\n}\n@if (feedbackOptions?.icon) {\n <thy-icon [class]=\"feedbackOptions.class\" [thyIconName]=\"feedbackOptions.icon\"></thy-icon>\n}\n@if (thyHoverIcon) {\n <thy-icon class=\"hover-icon\" [thyIconName]=\"thyHoverIcon\"></thy-icon>\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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
147
147
  }
148
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ThyAction, decorators: [{
148
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: ThyAction, decorators: [{
149
149
  type: Component,
150
150
  args: [{ selector: 'thy-action, [thyAction]', changeDetection: ChangeDetectionStrategy.OnPush, host: {
151
151
  class: 'thy-action',
@@ -153,7 +153,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
153
153
  '[class.thy-action-hover-icon]': 'thyHoverIcon',
154
154
  '[class.thy-action-has-feedback]': '!!feedback',
155
155
  '[class.disabled]': 'thyDisabled'
156
- }, standalone: true, imports: [ThyIcon], template: "@if (icon && !feedback) {\n <thy-icon [thyIconName]=\"icon\"></thy-icon>\n}\n@if (feedbackOptions?.icon) {\n <thy-icon [class]=\"feedbackOptions.class\" [thyIconName]=\"feedbackOptions.icon\"></thy-icon>\n}\n@if (thyHoverIcon) {\n <thy-icon class=\"hover-icon\" [thyIconName]=\"thyHoverIcon\"></thy-icon>\n}\n<ng-content></ng-content>\n" }]
156
+ }, imports: [ThyIcon], template: "@if (icon && !feedback) {\n <thy-icon [thyIconName]=\"icon\"></thy-icon>\n}\n@if (feedbackOptions?.icon) {\n <thy-icon [class]=\"feedbackOptions.class\" [thyIconName]=\"feedbackOptions.icon\"></thy-icon>\n}\n@if (thyHoverIcon) {\n <thy-icon class=\"hover-icon\" [thyIconName]=\"thyHoverIcon\"></thy-icon>\n}\n<ng-content></ng-content>\n" }]
157
157
  }], propDecorators: { thyType: [{
158
158
  type: Input
159
159
  }], thyIcon: [{
@@ -207,10 +207,10 @@ class ThyActions {
207
207
  }
208
208
  });
209
209
  }
210
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ThyActions, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
211
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: ThyActions, isStandalone: true, selector: "thy-actions", inputs: { thySize: "thySize" }, host: { classAttribute: "thy-actions" }, queries: [{ propertyName: "actions", predicate: ThyAction }], usesOnChanges: true, ngImport: i0, template: ` <ng-content></ng-content> `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
210
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: ThyActions, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
211
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.2", type: ThyActions, isStandalone: true, selector: "thy-actions", inputs: { thySize: "thySize" }, host: { classAttribute: "thy-actions" }, queries: [{ propertyName: "actions", predicate: ThyAction }], usesOnChanges: true, ngImport: i0, template: ` <ng-content></ng-content> `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
212
212
  }
213
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ThyActions, decorators: [{
213
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: ThyActions, decorators: [{
214
214
  type: Component,
215
215
  args: [{
216
216
  selector: 'thy-actions',
@@ -229,11 +229,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
229
229
  }] } });
230
230
 
231
231
  class ThyActionModule {
232
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ThyActionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
233
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: ThyActionModule, imports: [CommonModule, ThyIconModule, ThyAction, ThyActions], exports: [ThyAction, ThyActions] }); }
234
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ThyActionModule, imports: [CommonModule, ThyIconModule, ThyAction] }); }
232
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: ThyActionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
233
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.2", ngImport: i0, type: ThyActionModule, imports: [CommonModule, ThyIconModule, ThyAction, ThyActions], exports: [ThyAction, ThyActions] }); }
234
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: ThyActionModule, imports: [CommonModule, ThyIconModule, ThyAction] }); }
235
235
  }
236
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ThyActionModule, decorators: [{
236
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: ThyActionModule, decorators: [{
237
237
  type: NgModule,
238
238
  args: [{
239
239
  imports: [CommonModule, ThyIconModule, ThyAction, ThyActions],
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-tethys-action.mjs","sources":["../../../src/action/action.component.ts","../../../src/action/action.component.html","../../../src/action/actions.component.ts","../../../src/action/action.module.ts","../../../src/action/ngx-tethys-action.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n Input,\n OnInit,\n AfterViewInit,\n OnChanges,\n ElementRef,\n Renderer2,\n SimpleChanges,\n ChangeDetectorRef,\n OnDestroy,\n inject\n} from '@angular/core';\nimport { useHostRenderer } from '@tethys/cdk/dom';\nimport { ThyIcon } from 'ngx-tethys/icon';\n\nimport { Subscription, timer } from 'rxjs';\nimport { coerceBooleanProperty } from 'ngx-tethys/util';\n\nexport type ThyActionType = 'primary' | 'success' | 'danger' | 'warning';\n\nexport type ThyActionFeedback = 'success' | 'error';\n\nexport interface ThyActionFeedbackOptions {\n icon?: string;\n class?: string;\n duration?: number;\n}\n\nconst defaultFeedbackOptions: Record<ThyActionFeedback, ThyActionFeedbackOptions> = {\n success: {\n icon: 'check-circle-fill',\n class: 'text-success',\n duration: 3000\n },\n error: {\n icon: 'close-circle-fill',\n class: 'text-danger',\n duration: 3000\n }\n};\n/**\n * 立即操作组件\n * @name thy-action,[thyAction]\n */\n@Component({\n selector: 'thy-action, [thyAction]',\n templateUrl: './action.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'thy-action',\n '[class.active]': 'active',\n '[class.thy-action-hover-icon]': 'thyHoverIcon',\n '[class.thy-action-has-feedback]': '!!feedback',\n '[class.disabled]': 'thyDisabled'\n },\n standalone: true,\n imports: [ThyIcon]\n})\nexport class ThyAction implements OnInit, AfterViewInit, OnChanges, OnDestroy {\n private elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n private renderer = inject(Renderer2);\n private cdr = inject(ChangeDetectorRef);\n\n icon: string;\n\n feedback: ThyActionFeedback = null;\n\n feedbackOptions: ThyActionFeedbackOptions;\n\n active = false;\n\n private type: string = 'primary';\n\n private hostRenderer = useHostRenderer();\n\n private feedbackTimer: Subscription;\n\n /**\n * 操作图标的类型\n * @type primary | success | danger | warning\n * @default primary\n */\n @Input()\n set thyType(value: ThyActionType) {\n this.setActionType(value || 'primary');\n }\n\n /**\n * 操作图标,支持传参同时也支持在投影中写 thy-icon 组件\n */\n @Input()\n set thyIcon(icon: string) {\n this.icon = icon;\n }\n\n /**\n * 操作图标,当 thyIcon 和其他指令参数名有冲突时使用 thyActionIcon\n */\n @Input()\n set thyActionIcon(icon: string) {\n this.icon = icon;\n }\n\n /**\n * 操作的图标 Active 状态,设置为 true 时会在 Item 上添加 active class\n * @default false\n */\n @Input({ transform: coerceBooleanProperty })\n set thyActive(value: boolean) {\n this.active = value;\n }\n\n /**\n * 操作的图标 Active 状态,当 thyActive 和其他指令参数名有冲突时使用 thyActionActive\n * @default false\n */\n @Input({ transform: coerceBooleanProperty })\n set thyActionActive(value: boolean) {\n this.active = value;\n }\n\n /**\n * 操作图标的主题\n * @type fill(背景色填充) | lite(简单文本颜色变化)\n */\n @Input() thyTheme: 'fill' | 'lite' = 'fill';\n\n /**\n * Hover 展示的图标\n */\n @Input() thyHoverIcon: string;\n\n /**\n * 是否处于禁用状态\n * @default false\n */\n @Input({ transform: coerceBooleanProperty })\n thyDisabled: boolean;\n\n ngOnInit(): void {\n this.updateClasses();\n }\n\n ngAfterViewInit() {\n this.wrapSpanForText(this.elementRef.nativeElement.childNodes);\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n if ((changes.thyType && !changes.thyType.firstChange) || (changes.thyTheme && !changes.thyTheme.firstChange)) {\n this.updateClasses();\n }\n }\n\n setMarginRight(marginRight: string) {\n this.elementRef.nativeElement.style.marginRight = marginRight;\n }\n\n /**\n * 触发成功反馈操作\n */\n success(options?: ThyActionFeedbackOptions) {\n this.setFeedback('success', options);\n }\n\n /**\n * 触发失败反馈操作\n */\n error(options?: ThyActionFeedbackOptions) {\n this.setFeedback('error', options);\n }\n\n private setFeedback(feedback: ThyActionFeedback, options: ThyActionFeedbackOptions) {\n if (this.thyDisabled) {\n return;\n }\n options = Object.assign({}, defaultFeedbackOptions[feedback], options);\n this.feedback = feedback;\n this.feedbackOptions = options;\n this.cdr.markForCheck();\n if (options.duration) {\n if (this.feedbackTimer) {\n this.feedbackTimer.unsubscribe();\n }\n this.feedbackTimer = timer(options.duration).subscribe(() => {\n this.feedback = null;\n this.feedbackOptions = null;\n this.cdr.markForCheck();\n });\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-action-wrap-span');\n this.renderer.insertBefore(parent, span, node);\n this.renderer.appendChild(span, node);\n }\n });\n }\n\n private setActionType(value: ThyActionType) {\n this.type = value;\n }\n\n private updateClasses() {\n let classNames: string[] = [];\n classNames.push(`action-${this.type}`);\n if (this.thyTheme === 'lite') {\n classNames.push('thy-action-lite');\n }\n this.hostRenderer.updateClass(classNames);\n }\n\n ngOnDestroy(): void {\n this.feedbackTimer?.unsubscribe();\n }\n}\n","@if (icon && !feedback) {\n <thy-icon [thyIconName]=\"icon\"></thy-icon>\n}\n@if (feedbackOptions?.icon) {\n <thy-icon [class]=\"feedbackOptions.class\" [thyIconName]=\"feedbackOptions.icon\"></thy-icon>\n}\n@if (thyHoverIcon) {\n <thy-icon class=\"hover-icon\" [thyIconName]=\"thyHoverIcon\"></thy-icon>\n}\n<ng-content></ng-content>\n","import {\n Component,\n OnInit,\n OnChanges,\n ChangeDetectionStrategy,\n Input,\n ContentChildren,\n QueryList,\n AfterContentInit,\n SimpleChanges\n} from '@angular/core';\nimport { ThySpacingSize, getNumericSize } from 'ngx-tethys/core';\nimport { ThyAction } from './action.component';\n\n/**\n * Actions 组件\n * @name thy-actions\n */\n@Component({\n selector: 'thy-actions',\n template: ` <ng-content></ng-content> `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'thy-actions'\n },\n standalone: true\n})\nexport class ThyActions implements OnInit, AfterContentInit, OnChanges {\n @ContentChildren(ThyAction) actions: QueryList<ThyAction>;\n\n /**\n * 大小,支持 `zero` | `xxs` | `xs` | `sm` | `md` | `lg` | `xlg` 和自定义数字大小\n * @type string | number\n */\n @Input() thySize: ThySpacingSize = 'md';\n\n constructor() {}\n\n ngOnInit(): void {}\n\n ngOnChanges(changes: SimpleChanges): void {\n if (changes.thySize && !changes.thySize.firstChange && this.actions) {\n this.setActionsSize(this.actions.toArray());\n }\n }\n\n ngAfterContentInit(): void {\n this.actions.changes.subscribe((actions: ThyAction[]) => {\n this.setActionsSize(actions);\n });\n this.setActionsSize(this.actions.toArray());\n }\n\n private setActionsSize(actions: ThyAction[]) {\n actions.forEach((action: ThyAction, index) => {\n // can't set marginRight value for last item\n if (index !== actions.length - 1) {\n action.setMarginRight(getNumericSize(this.thySize, 'md') + 'px');\n }\n });\n }\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { ThyIconModule } from 'ngx-tethys/icon';\nimport { ThyAction } from './action.component';\nimport { ThyActions } from './actions.component';\n\n@NgModule({\n imports: [CommonModule, ThyIconModule, ThyAction, ThyActions],\n exports: [ThyAction, ThyActions]\n})\nexport class ThyActionModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AA8BA,MAAM,sBAAsB,GAAwD;AAChF,IAAA,OAAO,EAAE;AACL,QAAA,IAAI,EAAE,mBAAmB;AACzB,QAAA,KAAK,EAAE,cAAc;AACrB,QAAA,QAAQ,EAAE,IAAI;AACjB,KAAA;AACD,IAAA,KAAK,EAAE;AACH,QAAA,IAAI,EAAE,mBAAmB;AACzB,QAAA,KAAK,EAAE,aAAa;AACpB,QAAA,QAAQ,EAAE,IAAI;AACjB,KAAA;CACJ,CAAC;AACF;;;AAGG;MAeU,SAAS,CAAA;AAdtB,IAAA,WAAA,GAAA;AAeY,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAA0B,UAAU,CAAC,CAAC;AACzD,QAAA,IAAA,CAAA,QAAQ,GAAG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AAY,EAAE,aAAa,EAAE,SAAS,EAAE,UAAU,CAAA,EAAA,OAAA,EAAA,CAClD,SAAS,EAAE,UAAU,CAAA,EAAA,CAAA,CAAA,EAAA;AAEtB,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,eAAe,EAHd,OAAA,EAAA,CAAA,YAAY,EAAE,aAAa,EAAE,SAAS,CAAA,EAAA,CAAA,CAAA,EAAA;;4FAGvC,eAAe,EAAA,UAAA,EAAA,CAAA;kBAJ3B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,OAAO,EAAE,CAAC,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,UAAU,CAAC;AAC7D,oBAAA,OAAO,EAAE,CAAC,SAAS,EAAE,UAAU,CAAC;AACnC,iBAAA,CAAA;;;ACVD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-tethys-action.mjs","sources":["../../../src/action/action.component.ts","../../../src/action/action.component.html","../../../src/action/actions.component.ts","../../../src/action/action.module.ts","../../../src/action/ngx-tethys-action.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n Input,\n OnInit,\n AfterViewInit,\n OnChanges,\n ElementRef,\n Renderer2,\n SimpleChanges,\n ChangeDetectorRef,\n OnDestroy,\n inject\n} from '@angular/core';\nimport { useHostRenderer } from '@tethys/cdk/dom';\nimport { ThyIcon } from 'ngx-tethys/icon';\n\nimport { Subscription, timer } from 'rxjs';\nimport { coerceBooleanProperty } from 'ngx-tethys/util';\n\nexport type ThyActionType = 'primary' | 'success' | 'danger' | 'warning';\n\nexport type ThyActionFeedback = 'success' | 'error';\n\nexport interface ThyActionFeedbackOptions {\n icon?: string;\n class?: string;\n duration?: number;\n}\n\nconst defaultFeedbackOptions: Record<ThyActionFeedback, ThyActionFeedbackOptions> = {\n success: {\n icon: 'check-circle-fill',\n class: 'text-success',\n duration: 3000\n },\n error: {\n icon: 'close-circle-fill',\n class: 'text-danger',\n duration: 3000\n }\n};\n/**\n * 立即操作组件\n * @name thy-action,[thyAction]\n */\n@Component({\n selector: 'thy-action, [thyAction]',\n templateUrl: './action.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'thy-action',\n '[class.active]': 'active',\n '[class.thy-action-hover-icon]': 'thyHoverIcon',\n '[class.thy-action-has-feedback]': '!!feedback',\n '[class.disabled]': 'thyDisabled'\n },\n imports: [ThyIcon]\n})\nexport class ThyAction implements OnInit, AfterViewInit, OnChanges, OnDestroy {\n private elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n private renderer = inject(Renderer2);\n private cdr = inject(ChangeDetectorRef);\n\n icon: string;\n\n feedback: ThyActionFeedback = null;\n\n feedbackOptions: ThyActionFeedbackOptions;\n\n active = false;\n\n private type: string = 'primary';\n\n private hostRenderer = useHostRenderer();\n\n private feedbackTimer: Subscription;\n\n /**\n * 操作图标的类型\n * @type primary | success | danger | warning\n * @default primary\n */\n @Input()\n set thyType(value: ThyActionType) {\n this.setActionType(value || 'primary');\n }\n\n /**\n * 操作图标,支持传参同时也支持在投影中写 thy-icon 组件\n */\n @Input()\n set thyIcon(icon: string) {\n this.icon = icon;\n }\n\n /**\n * 操作图标,当 thyIcon 和其他指令参数名有冲突时使用 thyActionIcon\n */\n @Input()\n set thyActionIcon(icon: string) {\n this.icon = icon;\n }\n\n /**\n * 操作的图标 Active 状态,设置为 true 时会在 Item 上添加 active class\n * @default false\n */\n @Input({ transform: coerceBooleanProperty })\n set thyActive(value: boolean) {\n this.active = value;\n }\n\n /**\n * 操作的图标 Active 状态,当 thyActive 和其他指令参数名有冲突时使用 thyActionActive\n * @default false\n */\n @Input({ transform: coerceBooleanProperty })\n set thyActionActive(value: boolean) {\n this.active = value;\n }\n\n /**\n * 操作图标的主题\n * @type fill(背景色填充) | lite(简单文本颜色变化)\n */\n @Input() thyTheme: 'fill' | 'lite' = 'fill';\n\n /**\n * Hover 展示的图标\n */\n @Input() thyHoverIcon: string;\n\n /**\n * 是否处于禁用状态\n * @default false\n */\n @Input({ transform: coerceBooleanProperty })\n thyDisabled: boolean;\n\n ngOnInit(): void {\n this.updateClasses();\n }\n\n ngAfterViewInit() {\n this.wrapSpanForText(this.elementRef.nativeElement.childNodes);\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n if ((changes.thyType && !changes.thyType.firstChange) || (changes.thyTheme && !changes.thyTheme.firstChange)) {\n this.updateClasses();\n }\n }\n\n setMarginRight(marginRight: string) {\n this.elementRef.nativeElement.style.marginRight = marginRight;\n }\n\n /**\n * 触发成功反馈操作\n */\n success(options?: ThyActionFeedbackOptions) {\n this.setFeedback('success', options);\n }\n\n /**\n * 触发失败反馈操作\n */\n error(options?: ThyActionFeedbackOptions) {\n this.setFeedback('error', options);\n }\n\n private setFeedback(feedback: ThyActionFeedback, options: ThyActionFeedbackOptions) {\n if (this.thyDisabled) {\n return;\n }\n options = Object.assign({}, defaultFeedbackOptions[feedback], options);\n this.feedback = feedback;\n this.feedbackOptions = options;\n this.cdr.markForCheck();\n if (options.duration) {\n if (this.feedbackTimer) {\n this.feedbackTimer.unsubscribe();\n }\n this.feedbackTimer = timer(options.duration).subscribe(() => {\n this.feedback = null;\n this.feedbackOptions = null;\n this.cdr.markForCheck();\n });\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-action-wrap-span');\n this.renderer.insertBefore(parent, span, node);\n this.renderer.appendChild(span, node);\n }\n });\n }\n\n private setActionType(value: ThyActionType) {\n this.type = value;\n }\n\n private updateClasses() {\n let classNames: string[] = [];\n classNames.push(`action-${this.type}`);\n if (this.thyTheme === 'lite') {\n classNames.push('thy-action-lite');\n }\n this.hostRenderer.updateClass(classNames);\n }\n\n ngOnDestroy(): void {\n this.feedbackTimer?.unsubscribe();\n }\n}\n","@if (icon && !feedback) {\n <thy-icon [thyIconName]=\"icon\"></thy-icon>\n}\n@if (feedbackOptions?.icon) {\n <thy-icon [class]=\"feedbackOptions.class\" [thyIconName]=\"feedbackOptions.icon\"></thy-icon>\n}\n@if (thyHoverIcon) {\n <thy-icon class=\"hover-icon\" [thyIconName]=\"thyHoverIcon\"></thy-icon>\n}\n<ng-content></ng-content>\n","import {\n Component,\n OnInit,\n OnChanges,\n ChangeDetectionStrategy,\n Input,\n ContentChildren,\n QueryList,\n AfterContentInit,\n SimpleChanges\n} from '@angular/core';\nimport { ThySpacingSize, getNumericSize } from 'ngx-tethys/core';\nimport { ThyAction } from './action.component';\n\n/**\n * Actions 组件\n * @name thy-actions\n */\n@Component({\n selector: 'thy-actions',\n template: ` <ng-content></ng-content> `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'thy-actions'\n },\n standalone: true\n})\nexport class ThyActions implements OnInit, AfterContentInit, OnChanges {\n @ContentChildren(ThyAction) actions: QueryList<ThyAction>;\n\n /**\n * 大小,支持 `zero` | `xxs` | `xs` | `sm` | `md` | `lg` | `xlg` 和自定义数字大小\n * @type string | number\n */\n @Input() thySize: ThySpacingSize = 'md';\n\n constructor() {}\n\n ngOnInit(): void {}\n\n ngOnChanges(changes: SimpleChanges): void {\n if (changes.thySize && !changes.thySize.firstChange && this.actions) {\n this.setActionsSize(this.actions.toArray());\n }\n }\n\n ngAfterContentInit(): void {\n this.actions.changes.subscribe((actions: ThyAction[]) => {\n this.setActionsSize(actions);\n });\n this.setActionsSize(this.actions.toArray());\n }\n\n private setActionsSize(actions: ThyAction[]) {\n actions.forEach((action: ThyAction, index) => {\n // can't set marginRight value for last item\n if (index !== actions.length - 1) {\n action.setMarginRight(getNumericSize(this.thySize, 'md') + 'px');\n }\n });\n }\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { ThyIconModule } from 'ngx-tethys/icon';\nimport { ThyAction } from './action.component';\nimport { ThyActions } from './actions.component';\n\n@NgModule({\n imports: [CommonModule, ThyIconModule, ThyAction, ThyActions],\n exports: [ThyAction, ThyActions]\n})\nexport class ThyActionModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AA8BA,MAAM,sBAAsB,GAAwD;AAChF,IAAA,OAAO,EAAE;AACL,QAAA,IAAI,EAAE,mBAAmB;AACzB,QAAA,KAAK,EAAE,cAAc;AACrB,QAAA,QAAQ,EAAE;AACb,KAAA;AACD,IAAA,KAAK,EAAE;AACH,QAAA,IAAI,EAAE,mBAAmB;AACzB,QAAA,KAAK,EAAE,aAAa;AACpB,QAAA,QAAQ,EAAE;AACb;CACJ;AACD;;;AAGG;MAcU,SAAS,CAAA;AAbtB,IAAA,WAAA,GAAA;AAcY,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAA0B,UAAU,CAAC;AACxD,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,SAAS,CAAC;AAC5B,QAAA,IAAA,CAAA,GAAG,GAAG,MAAM,CAAC,iBAAiB,CAAC;QAIvC,IAAQ,CAAA,QAAA,GAAsB,IAAI;QAIlC,IAAM,CAAA,MAAA,GAAG,KAAK;QAEN,IAAI,CAAA,IAAA,GAAW,SAAS;QAExB,IAAY,CAAA,YAAA,GAAG,eAAe,EAAE;AAgDxC;;;AAGG;QACM,IAAQ,CAAA,QAAA,GAAoB,MAAM;AA8F9C;AA9IG;;;;AAIG;IACH,IACI,OAAO,CAAC,KAAoB,EAAA;AAC5B,QAAA,IAAI,CAAC,aAAa,CAAC,KAAK,IAAI,SAAS,CAAC;;AAG1C;;AAEG;IACH,IACI,OAAO,CAAC,IAAY,EAAA;AACpB,QAAA,IAAI,CAAC,IAAI,GAAG,IAAI;;AAGpB;;AAEG;IACH,IACI,aAAa,CAAC,IAAY,EAAA;AAC1B,QAAA,IAAI,CAAC,IAAI,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A,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;+GAAf,eAAe,EAAA,OAAA,EAAA,CAHd,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,UAAU,CAAA,EAAA,OAAA,EAAA,CAClD,SAAS,EAAE,UAAU,CAAA,EAAA,CAAA,CAAA;AAEtB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,eAAe,EAHd,OAAA,EAAA,CAAA,YAAY,EAAE,aAAa,EAAE,SAAS,CAAA,EAAA,CAAA,CAAA;;2FAGvC,eAAe,EAAA,UAAA,EAAA,CAAA;kBAJ3B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,OAAO,EAAE,CAAC,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,UAAU,CAAC;AAC7D,oBAAA,OAAO,EAAE,CAAC,SAAS,EAAE,UAAU;AAClC,iBAAA;;;ACVD;;AAEG;;;;"}
@@ -1,7 +1,7 @@
1
1
  import { Platform, PlatformModule } from '@angular/cdk/platform';
2
2
  import { DOCUMENT, CommonModule } from '@angular/common';
3
3
  import * as i0 from '@angular/core';
4
- import { inject, NgZone, Renderer2, EventEmitter, ElementRef, numberAttribute, Component, ChangeDetectionStrategy, ViewEncapsulation, ViewChild, Input, Output, NgModule } from '@angular/core';
4
+ import { inject, NgZone, Renderer2, EventEmitter, ElementRef, numberAttribute, Output, Input, ViewChild, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
5
5
  import { ThyScrollService } from 'ngx-tethys/core';
6
6
  import { dom, shallowEqual } from 'ngx-tethys/util';
7
7
  import { Subscription, ReplaySubject, Subject, merge, fromEvent } from 'rxjs';
@@ -216,14 +216,14 @@ class ThyAffix {
216
216
  this.syncPlaceholderStyle(e);
217
217
  }
218
218
  }
219
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ThyAffix, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
220
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "18.2.13", type: ThyAffix, isStandalone: true, selector: "thy-affix", inputs: { thyContainer: "thyContainer", thyOffsetTop: ["thyOffsetTop", "thyOffsetTop", numberAttribute], thyOffsetBottom: ["thyOffsetBottom", "thyOffsetBottom", numberAttribute] }, outputs: { thyChange: "thyChange" }, viewQueries: [{ propertyName: "fixedElement", first: true, predicate: ["fixedElement"], descendants: true, static: true }], exportAs: ["thyAffix"], usesOnChanges: true, ngImport: i0, template: `
219
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: ThyAffix, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
220
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "19.2.2", type: ThyAffix, isStandalone: true, selector: "thy-affix", inputs: { thyContainer: "thyContainer", thyOffsetTop: ["thyOffsetTop", "thyOffsetTop", numberAttribute], thyOffsetBottom: ["thyOffsetBottom", "thyOffsetBottom", numberAttribute] }, outputs: { thyChange: "thyChange" }, viewQueries: [{ propertyName: "fixedElement", first: true, predicate: ["fixedElement"], descendants: true, static: true }], exportAs: ["thyAffix"], usesOnChanges: true, ngImport: i0, template: `
221
221
  <div #fixedElement>
222
222
  <ng-content></ng-content>
223
223
  </div>
224
224
  `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
225
225
  }
226
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ThyAffix, decorators: [{
226
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: ThyAffix, decorators: [{
227
227
  type: Component,
228
228
  args: [{
229
229
  selector: 'thy-affix',
@@ -253,11 +253,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
253
253
  }] } });
254
254
 
255
255
  class ThyAffixModule {
256
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ThyAffixModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
257
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: ThyAffixModule, imports: [CommonModule, PlatformModule, ThyAffix], exports: [ThyAffix] }); }
258
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ThyAffixModule, imports: [CommonModule, PlatformModule] }); }
256
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: ThyAffixModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
257
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.2", ngImport: i0, type: ThyAffixModule, imports: [CommonModule, PlatformModule, ThyAffix], exports: [ThyAffix] }); }
258
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: ThyAffixModule, imports: [CommonModule, PlatformModule] }); }
259
259
  }
260
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ThyAffixModule, decorators: [{
260
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: ThyAffixModule, decorators: [{
261
261
  type: NgModule,
262
262
  args: [{
263
263
  exports: [ThyAffix],
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-tethys-affix.mjs","sources":["../../../src/affix/respond-events.ts","../../../src/affix/affix.component.ts","../../../src/affix/affix.module.ts","../../../src/affix/ngx-tethys-affix.ts"],"sourcesContent":["export enum AffixRespondEvents {\n resize = 'resize',\n scroll = 'scroll',\n touchstart = 'touchstart',\n touchmove = 'touchmove',\n touchend = 'touchend',\n pageshow = 'pageshow',\n load = 'LOAD'\n}\n","import { ThyScrollService } from 'ngx-tethys/core';\nimport { dom, shallowEqual, SimpleRect } from 'ngx-tethys/util';\nimport { fromEvent, merge, ReplaySubject, Subject, Subscription } from 'rxjs';\nimport { auditTime, map, takeUntil } from 'rxjs/operators';\n\nimport { Platform } from '@angular/cdk/platform';\nimport { DOCUMENT } from '@angular/common';\nimport {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n EventEmitter,\n Input,\n NgZone,\n numberAttribute,\n OnChanges,\n OnDestroy,\n Output,\n Renderer2,\n SimpleChanges,\n ViewChild,\n ViewEncapsulation,\n inject\n} from '@angular/core';\n\nimport { AffixRespondEvents } from './respond-events';\n\nconst THY_AFFIX_CLS_PREFIX = 'thy-affix';\nconst THY_AFFIX_DEFAULT_SCROLL_TIME = 20;\n\n/**\n * 固钉组件\n * @name thy-affix\n * @order 10\n */\n@Component({\n selector: 'thy-affix',\n exportAs: 'thyAffix',\n template: `\n <div #fixedElement>\n <ng-content></ng-content>\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n standalone: true\n})\nexport class ThyAffix implements AfterViewInit, OnChanges, OnDestroy {\n private scrollService = inject(ThyScrollService);\n private ngZone = inject(NgZone);\n private platform = inject(Platform);\n private renderer = inject(Renderer2);\n\n @ViewChild('fixedElement', { static: true }) private fixedElement!: ElementRef<HTMLDivElement>;\n\n /**\n * 设置 thy-affix 需要监听其滚动事件的元素,值为一个返回对应 DOM 元素的函数\n * @default window\n * @type string | Element | Window\n */\n @Input() thyContainer?: string | Element | Window;\n\n /**\n * 距离窗口顶部缓冲的偏移量阈值\n * @default 0\n */\n @Input({ transform: numberAttribute })\n thyOffsetTop?: null | number;\n\n /**\n * 距离窗口底部缓冲的偏移量阈值\n */\n @Input({ transform: numberAttribute })\n thyOffsetBottom?: null | number;\n\n /**\n * 固定状态改变时触发的回调函数\n */\n @Output() readonly thyChange = new EventEmitter<boolean>();\n\n private readonly placeholderNode: HTMLElement;\n\n private affixStyle?: any;\n private placeholderStyle?: any;\n private positionChangeSubscription: Subscription = Subscription.EMPTY;\n private offsetChanged$ = new ReplaySubject(1);\n private destroy$ = new Subject<void>();\n private timeout?: any;\n private document: any;\n\n private get container(): Element | Window {\n const el = this.thyContainer;\n return (typeof el === 'string' ? this.document.querySelector(el) : el) || window;\n }\n\n constructor() {\n const el = inject(ElementRef);\n const document = inject(DOCUMENT);\n\n // The wrapper would stay at the original position as a placeholder.\n this.placeholderNode = el.nativeElement;\n this.document = document;\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n const { thyOffsetBottom, thyOffsetTop, thyContainer } = changes;\n\n if (thyOffsetBottom || thyOffsetTop) {\n this.offsetChanged$.next(undefined);\n }\n if (thyContainer) {\n this.registerListeners();\n }\n }\n\n ngAfterViewInit(): void {\n this.registerListeners();\n }\n\n ngOnDestroy(): void {\n this.removeListeners();\n }\n\n private registerListeners(): void {\n this.removeListeners();\n this.positionChangeSubscription = this.ngZone.runOutsideAngular(() => {\n return merge(\n ...Object.keys(AffixRespondEvents).map(evName => fromEvent(this.container, evName)),\n this.offsetChanged$.pipe(\n takeUntil(this.destroy$),\n map(() => ({}))\n )\n )\n .pipe(auditTime(THY_AFFIX_DEFAULT_SCROLL_TIME))\n .subscribe(e => this.updatePosition(e as Event));\n });\n this.timeout = setTimeout(() => this.updatePosition({} as Event));\n }\n\n private removeListeners(): void {\n clearTimeout(this.timeout);\n this.positionChangeSubscription.unsubscribe();\n this.destroy$.next();\n this.destroy$.complete();\n }\n\n getOffset(element: Element, target: Element | Window | undefined): SimpleRect {\n const elemRect = element.getBoundingClientRect();\n const containerRect = dom.getContainerRect(target);\n\n const scrollTop = this.scrollService.getScroll(target, true);\n const scrollLeft = this.scrollService.getScroll(target, false);\n\n const docElem = this.document.body;\n const clientTop = docElem.clientTop || 0;\n const clientLeft = docElem.clientLeft || 0;\n\n return {\n top: elemRect.top - containerRect.top + scrollTop - clientTop,\n left: elemRect.left - containerRect.left + scrollLeft - clientLeft,\n width: elemRect.width,\n height: elemRect.height\n };\n }\n\n private setAffixStyle(e: Event, affixStyle?: any): void {\n const originalAffixStyle = this.affixStyle;\n const isWindow = this.container === window;\n if (e.type === 'scroll' && originalAffixStyle && affixStyle && isWindow) {\n return;\n }\n if (shallowEqual(originalAffixStyle, affixStyle)) {\n return;\n }\n\n const fixed = !!affixStyle;\n const wrapElement = this.fixedElement.nativeElement;\n this.renderer.setStyle(wrapElement, 'cssText', dom.getStyleAsText(affixStyle));\n this.affixStyle = affixStyle;\n if (fixed) {\n wrapElement.classList.add(THY_AFFIX_CLS_PREFIX);\n } else {\n wrapElement.classList.remove(THY_AFFIX_CLS_PREFIX);\n }\n\n if ((affixStyle && !originalAffixStyle) || (!affixStyle && originalAffixStyle)) {\n this.thyChange.emit(fixed);\n }\n }\n\n private setPlaceholderStyle(placeholderStyle?: any): void {\n const originalPlaceholderStyle = this.placeholderStyle;\n if (shallowEqual(placeholderStyle, originalPlaceholderStyle)) {\n return;\n }\n this.renderer.setStyle(this.placeholderNode, 'cssText', dom.getStyleAsText(placeholderStyle));\n this.placeholderStyle = placeholderStyle;\n }\n\n private syncPlaceholderStyle(e: Event): void {\n if (!this.affixStyle) {\n return;\n }\n this.renderer.setStyle(this.placeholderNode, 'cssText', '');\n this.placeholderStyle = undefined;\n const styleObj = {\n width: this.placeholderNode.offsetWidth,\n height: this.fixedElement.nativeElement.offsetHeight\n };\n this.setAffixStyle(e, {\n ...this.affixStyle,\n ...styleObj\n });\n this.setPlaceholderStyle(styleObj);\n }\n\n updatePosition(e: Event): void {\n if (!this.platform.isBrowser) {\n return;\n }\n\n const containerNode = this.container;\n let offsetTop = this.thyOffsetTop;\n const scrollTop = this.scrollService.getScroll(containerNode, true);\n const elementOffset = this.getOffset(this.placeholderNode, containerNode);\n const fixedNode = this.fixedElement.nativeElement;\n const elemSize = {\n width: fixedNode.offsetWidth,\n height: fixedNode.offsetHeight\n };\n const offsetMode = {\n top: false,\n bottom: false\n };\n // Default to `offsetTop=0`.\n if (typeof offsetTop !== 'number' && typeof this.thyOffsetBottom !== 'number') {\n offsetMode.top = true;\n offsetTop = 0;\n } else {\n offsetMode.top = typeof offsetTop === 'number';\n offsetMode.bottom = typeof this.thyOffsetBottom === 'number';\n }\n const containerRect = dom.getContainerRect(containerNode as Window);\n const targetInnerHeight = (containerNode as Window).innerHeight || (containerNode as HTMLElement).clientHeight;\n if (scrollTop >= elementOffset.top - (offsetTop as number) && offsetMode.top) {\n const width = elementOffset.width;\n const top = containerRect.top + (offsetTop as number);\n this.setAffixStyle(e, {\n position: 'fixed',\n top,\n left: containerRect.left + elementOffset.left,\n width\n });\n this.setPlaceholderStyle({\n width,\n height: elemSize.height\n });\n } else if (\n scrollTop <= elementOffset.top + elemSize.height + (this.thyOffsetBottom as number) - targetInnerHeight &&\n offsetMode.bottom\n ) {\n const targetBottomOffset = containerNode === window ? 0 : window.innerHeight - containerRect.bottom;\n const width = elementOffset.width;\n this.setAffixStyle(e, {\n position: 'fixed',\n bottom: targetBottomOffset + (this.thyOffsetBottom as number),\n left: containerRect.left + elementOffset.left,\n width\n });\n this.setPlaceholderStyle({\n width,\n height: elementOffset.height\n });\n } else {\n if (\n e.type === AffixRespondEvents.resize &&\n this.affixStyle &&\n this.affixStyle.position === 'fixed' &&\n this.placeholderNode.offsetWidth\n ) {\n this.setAffixStyle(e, {\n ...this.affixStyle,\n width: this.placeholderNode.offsetWidth\n });\n } else {\n this.setAffixStyle(e);\n }\n this.setPlaceholderStyle();\n }\n\n if (e.type === 'resize') {\n this.syncPlaceholderStyle(e);\n }\n }\n}\n","import { PlatformModule } from '@angular/cdk/platform';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { ThyAffix } from './affix.component';\n\n@NgModule({\n exports: [ThyAffix],\n imports: [CommonModule, PlatformModule, ThyAffix]\n})\nexport class ThyAffixModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAAA,IAAY,kBAQX,CAAA;AARD,CAAA,UAAY,kBAAkB,EAAA;AAC1B,IAAA,kBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB,CAAA;AACjB,IAAA,kBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB,CAAA;AACjB,IAAA,kBAAA,CAAA,YAAA,CAAA,GAAA,YAAyB,CAAA;AACzB,IAAA,kBAAA,CAAA,WAAA,CAAA,GAAA,WAAuB,CAAA;AACvB,IAAA,kBAAA,CAAA,UAAA,CAAA,GAAA,UAAqB,CAAA;AACrB,IAAA,kBAAA,CAAA,UAAA,CAAA,GAAA,UAAqB,CAAA;AACrB,IAAA,kBAAA,CAAA,MAAA,CAAA,GAAA,MAAa,CAAA;AACjB,CAAC,EARW,kBAAkB,KAAlB,kBAAkB,GAQ7B,EAAA,CAAA,CAAA;;ACoBD,MAAM,oBAAoB,GAAG,WAAW,CAAC;AACzC,MAAM,6BAA6B,GAAG,EAAE,CAAC;AAEzC;;;;AAIG;MAaU,QAAQ,CAAA;AA2CjB,IAAA,IAAY,SAAS,GAAA;AACjB,QAAA,MAAM,EAAE,GAAG,IAAI,CAAC,YAAY,CAAC;QAC7B,OAAO,CAAC,OAAO,EAAE,KAAK,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,MAAM,CAAC;KACpF;AAED,IAAA,WAAA,GAAA;AA/CQ,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAC;AACzC,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;AACxB,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,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OAAA,EAAA,CAFb,YAAY,EAAE,cAAc,CAAA,EAAA,CAAA,CAAA,EAAA;;4FAE7B,cAAc,EAAA,UAAA,EAAA,CAAA;kBAJ1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,OAAO,EAAE,CAAC,QAAQ,CAAC;AACnB,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,cAAc,EAAE,QAAQ,CAAC;AACpD,iBAAA,CAAA;;;ACTD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-tethys-affix.mjs","sources":["../../../src/affix/respond-events.ts","../../../src/affix/affix.component.ts","../../../src/affix/affix.module.ts","../../../src/affix/ngx-tethys-affix.ts"],"sourcesContent":["export enum AffixRespondEvents {\n resize = 'resize',\n scroll = 'scroll',\n touchstart = 'touchstart',\n touchmove = 'touchmove',\n touchend = 'touchend',\n pageshow = 'pageshow',\n load = 'LOAD'\n}\n","import { ThyScrollService } from 'ngx-tethys/core';\nimport { dom, shallowEqual, SimpleRect } from 'ngx-tethys/util';\nimport { fromEvent, merge, ReplaySubject, Subject, Subscription } from 'rxjs';\nimport { auditTime, map, takeUntil } from 'rxjs/operators';\n\nimport { Platform } from '@angular/cdk/platform';\nimport { DOCUMENT } from '@angular/common';\nimport {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n EventEmitter,\n Input,\n NgZone,\n numberAttribute,\n OnChanges,\n OnDestroy,\n Output,\n Renderer2,\n SimpleChanges,\n ViewChild,\n ViewEncapsulation,\n inject\n} from '@angular/core';\n\nimport { AffixRespondEvents } from './respond-events';\n\nconst THY_AFFIX_CLS_PREFIX = 'thy-affix';\nconst THY_AFFIX_DEFAULT_SCROLL_TIME = 20;\n\n/**\n * 固钉组件\n * @name thy-affix\n * @order 10\n */\n@Component({\n selector: 'thy-affix',\n exportAs: 'thyAffix',\n template: `\n <div #fixedElement>\n <ng-content></ng-content>\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n standalone: true\n})\nexport class ThyAffix implements AfterViewInit, OnChanges, OnDestroy {\n private scrollService = inject(ThyScrollService);\n private ngZone = inject(NgZone);\n private platform = inject(Platform);\n private renderer = inject(Renderer2);\n\n @ViewChild('fixedElement', { static: true }) private fixedElement!: ElementRef<HTMLDivElement>;\n\n /**\n * 设置 thy-affix 需要监听其滚动事件的元素,值为一个返回对应 DOM 元素的函数\n * @default window\n * @type string | Element | Window\n */\n @Input() thyContainer?: string | Element | Window;\n\n /**\n * 距离窗口顶部缓冲的偏移量阈值\n * @default 0\n */\n @Input({ transform: numberAttribute })\n thyOffsetTop?: null | number;\n\n /**\n * 距离窗口底部缓冲的偏移量阈值\n */\n @Input({ transform: numberAttribute })\n thyOffsetBottom?: null | number;\n\n /**\n * 固定状态改变时触发的回调函数\n */\n @Output() readonly thyChange = new EventEmitter<boolean>();\n\n private readonly placeholderNode: HTMLElement;\n\n private affixStyle?: any;\n private placeholderStyle?: any;\n private positionChangeSubscription: Subscription = Subscription.EMPTY;\n private offsetChanged$ = new ReplaySubject(1);\n private destroy$ = new Subject<void>();\n private timeout?: any;\n private document: any;\n\n private get container(): Element | Window {\n const el = this.thyContainer;\n return (typeof el === 'string' ? this.document.querySelector(el) : el) || window;\n }\n\n constructor() {\n const el = inject(ElementRef);\n const document = inject(DOCUMENT);\n\n // The wrapper would stay at the original position as a placeholder.\n this.placeholderNode = el.nativeElement;\n this.document = document;\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n const { thyOffsetBottom, thyOffsetTop, thyContainer } = changes;\n\n if (thyOffsetBottom || thyOffsetTop) {\n this.offsetChanged$.next(undefined);\n }\n if (thyContainer) {\n this.registerListeners();\n }\n }\n\n ngAfterViewInit(): void {\n this.registerListeners();\n }\n\n ngOnDestroy(): void {\n this.removeListeners();\n }\n\n private registerListeners(): void {\n this.removeListeners();\n this.positionChangeSubscription = this.ngZone.runOutsideAngular(() => {\n return merge(\n ...Object.keys(AffixRespondEvents).map(evName => fromEvent(this.container, evName)),\n this.offsetChanged$.pipe(\n takeUntil(this.destroy$),\n map(() => ({}))\n )\n )\n .pipe(auditTime(THY_AFFIX_DEFAULT_SCROLL_TIME))\n .subscribe(e => this.updatePosition(e as Event));\n });\n this.timeout = setTimeout(() => this.updatePosition({} as Event));\n }\n\n private removeListeners(): void {\n clearTimeout(this.timeout);\n this.positionChangeSubscription.unsubscribe();\n this.destroy$.next();\n this.destroy$.complete();\n }\n\n getOffset(element: Element, target: Element | Window | undefined): SimpleRect {\n const elemRect = element.getBoundingClientRect();\n const containerRect = dom.getContainerRect(target);\n\n const scrollTop = this.scrollService.getScroll(target, true);\n const scrollLeft = this.scrollService.getScroll(target, false);\n\n const docElem = this.document.body;\n const clientTop = docElem.clientTop || 0;\n const clientLeft = docElem.clientLeft || 0;\n\n return {\n top: elemRect.top - containerRect.top + scrollTop - clientTop,\n left: elemRect.left - containerRect.left + scrollLeft - clientLeft,\n width: elemRect.width,\n height: elemRect.height\n };\n }\n\n private setAffixStyle(e: Event, affixStyle?: any): void {\n const originalAffixStyle = this.affixStyle;\n const isWindow = this.container === window;\n if (e.type === 'scroll' && originalAffixStyle && affixStyle && isWindow) {\n return;\n }\n if (shallowEqual(originalAffixStyle, affixStyle)) {\n return;\n }\n\n const fixed = !!affixStyle;\n const wrapElement = this.fixedElement.nativeElement;\n this.renderer.setStyle(wrapElement, 'cssText', dom.getStyleAsText(affixStyle));\n this.affixStyle = affixStyle;\n if (fixed) {\n wrapElement.classList.add(THY_AFFIX_CLS_PREFIX);\n } else {\n wrapElement.classList.remove(THY_AFFIX_CLS_PREFIX);\n }\n\n if ((affixStyle && !originalAffixStyle) || (!affixStyle && originalAffixStyle)) {\n this.thyChange.emit(fixed);\n }\n }\n\n private setPlaceholderStyle(placeholderStyle?: any): void {\n const originalPlaceholderStyle = this.placeholderStyle;\n if (shallowEqual(placeholderStyle, originalPlaceholderStyle)) {\n return;\n }\n this.renderer.setStyle(this.placeholderNode, 'cssText', dom.getStyleAsText(placeholderStyle));\n this.placeholderStyle = placeholderStyle;\n }\n\n private syncPlaceholderStyle(e: Event): void {\n if (!this.affixStyle) {\n return;\n }\n this.renderer.setStyle(this.placeholderNode, 'cssText', '');\n this.placeholderStyle = undefined;\n const styleObj = {\n width: this.placeholderNode.offsetWidth,\n height: this.fixedElement.nativeElement.offsetHeight\n };\n this.setAffixStyle(e, {\n ...this.affixStyle,\n ...styleObj\n });\n this.setPlaceholderStyle(styleObj);\n }\n\n updatePosition(e: Event): void {\n if (!this.platform.isBrowser) {\n return;\n }\n\n const containerNode = this.container;\n let offsetTop = this.thyOffsetTop;\n const scrollTop = this.scrollService.getScroll(containerNode, true);\n const elementOffset = this.getOffset(this.placeholderNode, containerNode);\n const fixedNode = this.fixedElement.nativeElement;\n const elemSize = {\n width: fixedNode.offsetWidth,\n height: fixedNode.offsetHeight\n };\n const offsetMode = {\n top: false,\n bottom: false\n };\n // Default to `offsetTop=0`.\n if (typeof offsetTop !== 'number' && typeof this.thyOffsetBottom !== 'number') {\n offsetMode.top = true;\n offsetTop = 0;\n } else {\n offsetMode.top = typeof offsetTop === 'number';\n offsetMode.bottom = typeof this.thyOffsetBottom === 'number';\n }\n const containerRect = dom.getContainerRect(containerNode as Window);\n const targetInnerHeight = (containerNode as Window).innerHeight || (containerNode as HTMLElement).clientHeight;\n if (scrollTop >= elementOffset.top - (offsetTop as number) && offsetMode.top) {\n const width = elementOffset.width;\n const top = containerRect.top + (offsetTop as number);\n this.setAffixStyle(e, {\n position: 'fixed',\n top,\n left: containerRect.left + elementOffset.left,\n width\n });\n this.setPlaceholderStyle({\n width,\n height: elemSize.height\n });\n } else if (\n scrollTop <= elementOffset.top + elemSize.height + (this.thyOffsetBottom as number) - targetInnerHeight &&\n offsetMode.bottom\n ) {\n const targetBottomOffset = containerNode === window ? 0 : window.innerHeight - containerRect.bottom;\n const width = elementOffset.width;\n this.setAffixStyle(e, {\n position: 'fixed',\n bottom: targetBottomOffset + (this.thyOffsetBottom as number),\n left: containerRect.left + elementOffset.left,\n width\n });\n this.setPlaceholderStyle({\n width,\n height: elementOffset.height\n });\n } else {\n if (\n e.type === AffixRespondEvents.resize &&\n this.affixStyle &&\n this.affixStyle.position === 'fixed' &&\n this.placeholderNode.offsetWidth\n ) {\n this.setAffixStyle(e, {\n ...this.affixStyle,\n width: this.placeholderNode.offsetWidth\n });\n } else {\n this.setAffixStyle(e);\n }\n this.setPlaceholderStyle();\n }\n\n if (e.type === 'resize') {\n this.syncPlaceholderStyle(e);\n }\n }\n}\n","import { PlatformModule } from '@angular/cdk/platform';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { ThyAffix } from './affix.component';\n\n@NgModule({\n exports: [ThyAffix],\n imports: [CommonModule, PlatformModule, ThyAffix]\n})\nexport class ThyAffixModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAAA,IAAY,kBAQX;AARD,CAAA,UAAY,kBAAkB,EAAA;AAC1B,IAAA,kBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AACjB,IAAA,kBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AACjB,IAAA,kBAAA,CAAA,YAAA,CAAA,GAAA,YAAyB;AACzB,IAAA,kBAAA,CAAA,WAAA,CAAA,GAAA,WAAuB;AACvB,IAAA,kBAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AACrB,IAAA,kBAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AACrB,IAAA,kBAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACjB,CAAC,EARW,kBAAkB,KAAlB,kBAAkB,GAQ7B,EAAA,CAAA,CAAA;;ACoBD,MAAM,oBAAoB,GAAG,WAAW;AACxC,MAAM,6BAA6B,GAAG,EAAE;AAExC;;;;AAIG;MAaU,QAAQ,CAAA;AA2CjB,IAAA,IAAY,SAAS,GAAA;AACjB,QAAA,MAAM,EAAE,GAAG,IAAI,CAAC,YAAY;QAC5B,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uBAAuB,CAAC,MAAM;oBAC/C,aAAa,EAAE,iBAAiB,CAAC,IAAI;AACrC,oBAAA,UAAU,EAAE;AACf,iBAAA;wDAOwD,YAAY,EAAA,CAAA;sBAAhE,SAAS;AAAC,gBAAA,IAAA,EAAA,CAAA,cAAc,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;gBAOlC,YAAY,EAAA,CAAA;sBAApB;gBAOD,YAAY,EAAA,CAAA;sBADX,KAAK;uBAAC,EAAE,SAAS,EAAE,eAAe,EAAE;gBAOrC,eAAe,EAAA,CAAA;sBADd,KAAK;uBAAC,EAAE,SAAS,EAAE,eAAe,EAAE;gBAMlB,SAAS,EAAA,CAAA;sBAA3B;;;MCrEQ,cAAc,CAAA;8GAAd,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAd,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,YAFb,YAAY,EAAE,cAAc,EAAE,QAAQ,aADtC,QAAQ,CAAA,EAAA,CAAA,CAAA;+GAGT,cAAc,EAAA,OAAA,EAAA,CAFb,YAAY,EAAE,cAAc,CAAA,EAAA,CAAA,CAAA;;2FAE7B,cAAc,EAAA,UAAA,EAAA,CAAA;kBAJ1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,OAAO,EAAE,CAAC,QAAQ,CAAC;AACnB,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,cAAc,EAAE,QAAQ;AACnD,iBAAA;;;ACTD;;AAEG;;;;"}
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { computed, TemplateRef, input, contentChild, effect, Component, ChangeDetectionStrategy, Directive, HostBinding, NgModule } from '@angular/core';
2
+ import { computed, TemplateRef, input, contentChild, effect, ChangeDetectionStrategy, Component, HostBinding, Directive, NgModule } from '@angular/core';
3
3
  import { NgTemplateOutlet, CommonModule } from '@angular/common';
4
4
  import { isString, coerceBooleanProperty } from 'ngx-tethys/util';
5
5
  import { useHostRenderer } from '@tethys/cdk/dom';
@@ -86,15 +86,15 @@ class ThyAlert {
86
86
  }
87
87
  this.hostRenderer.updateClass([`thy-alert-${theme}`, `thy-alert-${theme}-${type}`]);
88
88
  }
89
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ThyAlert, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
90
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: ThyAlert, isStandalone: true, selector: "thy-alert", inputs: { thyType: { classPropertyName: "thyType", publicName: "thyType", isSignal: true, isRequired: false, transformFunction: null }, thyTheme: { classPropertyName: "thyTheme", publicName: "thyTheme", isSignal: true, isRequired: false, transformFunction: null }, thyMessage: { classPropertyName: "thyMessage", publicName: "thyMessage", isSignal: true, isRequired: false, transformFunction: null }, thyIcon: { classPropertyName: "thyIcon", publicName: "thyIcon", isSignal: true, isRequired: false, transformFunction: null }, thyCloseable: { classPropertyName: "thyCloseable", publicName: "thyCloseable", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.thy-alert-hidden": "hidden" }, classAttribute: "thy-alert" }, queries: [{ propertyName: "alertOperation", first: true, predicate: ["operation"], descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"thy-alert-content\">\n @if (icon()) {\n <thy-icon class=\"thy-alert-icon\" [thyIconName]=\"icon()\"></thy-icon>\n }\n @if (thyTheme() === 'naked') {\n <span class=\"thy-alert-tips\">Tips\uFF1A </span>\n }\n @if (messageIsTemplate()) {\n <ng-template *ngTemplateOutlet=\"thyMessage()\"></ng-template>\n } @else if (thyMessage()) {\n <span>{{ thyMessage() }}</span>\n }\n @if (alertOperation()) {\n <div class=\"thy-alert-operation\">\n <ng-container [ngTemplateOutlet]=\"alertOperation()\"></ng-container>\n </div>\n }\n</div>\n@if (thyCloseable()) {\n <a href=\"javascript:;\" class=\"thy-alert-close\" (click)=\"closeAlert()\">\n <thy-icon thyIconName=\"close\"></thy-icon>\n </a>\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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
89
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: ThyAlert, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
90
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.2", type: ThyAlert, isStandalone: true, selector: "thy-alert", inputs: { thyType: { classPropertyName: "thyType", publicName: "thyType", isSignal: true, isRequired: false, transformFunction: null }, thyTheme: { classPropertyName: "thyTheme", publicName: "thyTheme", isSignal: true, isRequired: false, transformFunction: null }, thyMessage: { classPropertyName: "thyMessage", publicName: "thyMessage", isSignal: true, isRequired: false, transformFunction: null }, thyIcon: { classPropertyName: "thyIcon", publicName: "thyIcon", isSignal: true, isRequired: false, transformFunction: null }, thyCloseable: { classPropertyName: "thyCloseable", publicName: "thyCloseable", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.thy-alert-hidden": "hidden" }, classAttribute: "thy-alert" }, queries: [{ propertyName: "alertOperation", first: true, predicate: ["operation"], descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"thy-alert-content\">\n @if (icon()) {\n <thy-icon class=\"thy-alert-icon\" [thyIconName]=\"icon()\"></thy-icon>\n }\n @if (thyTheme() === 'naked') {\n <span class=\"thy-alert-tips\">Tips\uFF1A </span>\n }\n @if (messageIsTemplate()) {\n <ng-template *ngTemplateOutlet=\"thyMessage()\"></ng-template>\n } @else if (thyMessage()) {\n <span>{{ thyMessage() }}</span>\n }\n @if (alertOperation()) {\n <div class=\"thy-alert-operation\">\n <ng-container [ngTemplateOutlet]=\"alertOperation()\"></ng-container>\n </div>\n }\n</div>\n@if (thyCloseable()) {\n <a href=\"javascript:;\" class=\"thy-alert-close\" (click)=\"closeAlert()\">\n <thy-icon thyIconName=\"close\"></thy-icon>\n </a>\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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
91
91
  }
92
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ThyAlert, decorators: [{
92
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: ThyAlert, decorators: [{
93
93
  type: Component,
94
94
  args: [{ selector: 'thy-alert', changeDetection: ChangeDetectionStrategy.OnPush, host: {
95
95
  class: 'thy-alert',
96
96
  '[class.thy-alert-hidden]': 'hidden'
97
- }, standalone: true, imports: [ThyIcon, NgTemplateOutlet], template: "<div class=\"thy-alert-content\">\n @if (icon()) {\n <thy-icon class=\"thy-alert-icon\" [thyIconName]=\"icon()\"></thy-icon>\n }\n @if (thyTheme() === 'naked') {\n <span class=\"thy-alert-tips\">Tips\uFF1A </span>\n }\n @if (messageIsTemplate()) {\n <ng-template *ngTemplateOutlet=\"thyMessage()\"></ng-template>\n } @else if (thyMessage()) {\n <span>{{ thyMessage() }}</span>\n }\n @if (alertOperation()) {\n <div class=\"thy-alert-operation\">\n <ng-container [ngTemplateOutlet]=\"alertOperation()\"></ng-container>\n </div>\n }\n</div>\n@if (thyCloseable()) {\n <a href=\"javascript:;\" class=\"thy-alert-close\" (click)=\"closeAlert()\">\n <thy-icon thyIconName=\"close\"></thy-icon>\n </a>\n}\n" }]
97
+ }, imports: [ThyIcon, NgTemplateOutlet], template: "<div class=\"thy-alert-content\">\n @if (icon()) {\n <thy-icon class=\"thy-alert-icon\" [thyIconName]=\"icon()\"></thy-icon>\n }\n @if (thyTheme() === 'naked') {\n <span class=\"thy-alert-tips\">Tips\uFF1A </span>\n }\n @if (messageIsTemplate()) {\n <ng-template *ngTemplateOutlet=\"thyMessage()\"></ng-template>\n } @else if (thyMessage()) {\n <span>{{ thyMessage() }}</span>\n }\n @if (alertOperation()) {\n <div class=\"thy-alert-operation\">\n <ng-container [ngTemplateOutlet]=\"alertOperation()\"></ng-container>\n </div>\n }\n</div>\n@if (thyCloseable()) {\n <a href=\"javascript:;\" class=\"thy-alert-close\" (click)=\"closeAlert()\">\n <thy-icon thyIconName=\"close\"></thy-icon>\n </a>\n}\n" }]
98
98
  }], ctorParameters: () => [] });
99
99
 
100
100
  /**
@@ -106,10 +106,10 @@ class ThyAlertActionItemDirective {
106
106
  constructor() {
107
107
  this.class = true;
108
108
  }
109
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ThyAlertActionItemDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
110
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.13", type: ThyAlertActionItemDirective, isStandalone: true, selector: "[thyAlertActionItem]", host: { properties: { "class.thy-alert-action": "this.class" } }, ngImport: i0 }); }
109
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: ThyAlertActionItemDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
110
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.2", type: ThyAlertActionItemDirective, isStandalone: true, selector: "[thyAlertActionItem]", host: { properties: { "class.thy-alert-action": "this.class" } }, ngImport: i0 }); }
111
111
  }
112
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ThyAlertActionItemDirective, decorators: [{
112
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: ThyAlertActionItemDirective, decorators: [{
113
113
  type: Directive,
114
114
  args: [{
115
115
  selector: '[thyAlertActionItem]',
@@ -121,11 +121,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
121
121
  }] } });
122
122
 
123
123
  class ThyAlertModule {
124
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ThyAlertModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
125
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: ThyAlertModule, imports: [CommonModule, ThyIconModule, ThyAlert, ThyAlertActionItemDirective], exports: [ThyAlert, ThyAlertActionItemDirective] }); }
126
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ThyAlertModule, imports: [CommonModule, ThyIconModule, ThyAlert] }); }
124
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: ThyAlertModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
125
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.2", ngImport: i0, type: ThyAlertModule, imports: [CommonModule, ThyIconModule, ThyAlert, ThyAlertActionItemDirective], exports: [ThyAlert, ThyAlertActionItemDirective] }); }
126
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: ThyAlertModule, imports: [CommonModule, ThyIconModule, ThyAlert] }); }
127
127
  }
128
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ThyAlertModule, decorators: [{
128
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: ThyAlertModule, decorators: [{
129
129
  type: NgModule,
130
130
  args: [{
131
131
  imports: [CommonModule, ThyIconModule, ThyAlert, ThyAlertActionItemDirective],