@taiga-ui/core 4.66.0 → 5.0.0-rc.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 (654) hide show
  1. package/README.md +1 -1
  2. package/classes/accessors.d.ts +2 -2
  3. package/classes/driver.d.ts +1 -1
  4. package/components/button/button.directive.d.ts +2 -3
  5. package/components/button/button.options.d.ts +1 -1
  6. package/components/calendar/calendar-sheet.component.d.ts +2 -7
  7. package/components/calendar/calendar-sheet.options.d.ts +1 -3
  8. package/{pipes/calendar-sheet → components/calendar}/calendar-sheet.pipe.d.ts +2 -2
  9. package/components/calendar/calendar-spin.component.d.ts +1 -0
  10. package/components/calendar/calendar-year.component.d.ts +1 -1
  11. package/components/calendar/calendar.options.d.ts +9 -0
  12. package/components/calendar/index.d.ts +3 -0
  13. package/{pipes/order-week-days → components/calendar}/order-week-days.pipe.d.ts +1 -1
  14. package/components/cell/cell.directive.d.ts +9 -0
  15. package/components/cell/cell.options.d.ts +6 -0
  16. package/components/cell/index.d.ts +2 -0
  17. package/components/data-list/data-list.component.d.ts +8 -12
  18. package/components/data-list/data-list.d.ts +3 -4
  19. package/components/data-list/data-list.tokens.d.ts +1 -20
  20. package/components/data-list/index.d.ts +3 -4
  21. package/components/data-list/opt-group.directive.d.ts +2 -2
  22. package/components/data-list/option-content.directive.d.ts +14 -0
  23. package/components/data-list/option-with-value.directive.d.ts +9 -0
  24. package/components/data-list/option.directive.d.ts +19 -0
  25. package/components/error/error.component.d.ts +6 -8
  26. package/components/error/error.d.ts +4 -0
  27. package/components/error/error.directive.d.ts +19 -0
  28. package/components/error/error.pipe.d.ts +10 -0
  29. package/components/error/index.d.ts +3 -0
  30. package/components/expand/expand.component.d.ts +9 -28
  31. package/components/expand/index.d.ts +0 -2
  32. package/components/icon/icon.component.d.ts +6 -11
  33. package/components/index.d.ts +3 -3
  34. package/components/input/index.d.ts +2 -0
  35. package/components/input/input.d.ts +5 -0
  36. package/components/input/input.directive.d.ts +29 -0
  37. package/components/label/label.directive.d.ts +1 -1
  38. package/components/link/index.d.ts +0 -1
  39. package/components/link/link.directive.d.ts +8 -6
  40. package/components/loader/loader.component.d.ts +7 -7
  41. package/components/loader/loader.options.d.ts +1 -3
  42. package/components/notification/index.d.ts +3 -0
  43. package/components/notification/notification.component.d.ts +14 -0
  44. package/components/notification/notification.d.ts +3 -0
  45. package/components/notification/notification.directive.d.ts +7 -12
  46. package/components/notification/notification.options.d.ts +10 -7
  47. package/components/notification/notification.service.d.ts +17 -0
  48. package/components/root/root.component.d.ts +4 -7
  49. package/components/scrollbar/scroll-into-view.directive.d.ts +3 -2
  50. package/components/scrollbar/scroll-ref.directive.d.ts +2 -0
  51. package/components/scrollbar/scrollbar.component.d.ts +1 -5
  52. package/components/scrollbar/scrollbar.directive.d.ts +2 -2
  53. package/components/scrollbar/scrollbar.options.d.ts +1 -1
  54. package/components/spin-button/spin-button.component.d.ts +9 -10
  55. package/components/textfield/index.d.ts +1 -4
  56. package/components/textfield/textfield-content.directive.d.ts +3 -2
  57. package/components/textfield/textfield-icon.d.ts +3 -3
  58. package/components/textfield/textfield-multi/textfield-item.component.d.ts +3 -2
  59. package/components/textfield/textfield-multi/textfield-multi.component.d.ts +9 -15
  60. package/components/textfield/textfield.component.d.ts +20 -35
  61. package/components/textfield/textfield.d.ts +2 -4
  62. package/components/textfield/textfield.options.d.ts +8 -11
  63. package/{directives → components}/title/title.directive.d.ts +2 -3
  64. package/directives/appearance/appearance.directive.d.ts +5 -13
  65. package/directives/appearance/appearance.options.d.ts +1 -2
  66. package/directives/button-x/button-x.directive.d.ts +6 -0
  67. package/directives/button-x/index.d.ts +1 -0
  68. package/directives/date-format/date-format.directive.d.ts +3 -7
  69. package/directives/group/group.directive.d.ts +7 -7
  70. package/directives/group/group.options.d.ts +1 -3
  71. package/directives/icons/icons.bindings.d.ts +5 -0
  72. package/directives/icons/icons.directive.d.ts +8 -16
  73. package/directives/icons/index.d.ts +1 -0
  74. package/directives/index.d.ts +1 -5
  75. package/directives/items-handlers/items-handlers.directive.d.ts +5 -9
  76. package/directives/items-handlers/items-handlers.tokens.d.ts +4 -4
  77. package/directives/number-format/number-format.directive.d.ts +3 -7
  78. package/fesm2022/taiga-ui-core-classes.mjs +9 -11
  79. package/fesm2022/taiga-ui-core-classes.mjs.map +1 -1
  80. package/fesm2022/taiga-ui-core-components-button.mjs +13 -21
  81. package/fesm2022/taiga-ui-core-components-button.mjs.map +1 -1
  82. package/fesm2022/taiga-ui-core-components-calendar.mjs +144 -47
  83. package/fesm2022/taiga-ui-core-components-calendar.mjs.map +1 -1
  84. package/fesm2022/taiga-ui-core-components-cell.mjs +45 -0
  85. package/fesm2022/taiga-ui-core-components-cell.mjs.map +1 -0
  86. package/fesm2022/taiga-ui-core-components-data-list.mjs +113 -284
  87. package/fesm2022/taiga-ui-core-components-data-list.mjs.map +1 -1
  88. package/fesm2022/taiga-ui-core-components-error.mjs +110 -26
  89. package/fesm2022/taiga-ui-core-components-error.mjs.map +1 -1
  90. package/fesm2022/taiga-ui-core-components-expand.mjs +34 -132
  91. package/fesm2022/taiga-ui-core-components-expand.mjs.map +1 -1
  92. package/fesm2022/taiga-ui-core-components-icon.mjs +22 -40
  93. package/fesm2022/taiga-ui-core-components-icon.mjs.map +1 -1
  94. package/fesm2022/taiga-ui-core-components-input.mjs +100 -0
  95. package/fesm2022/taiga-ui-core-components-input.mjs.map +1 -0
  96. package/fesm2022/taiga-ui-core-components-label.mjs +13 -18
  97. package/fesm2022/taiga-ui-core-components-label.mjs.map +1 -1
  98. package/fesm2022/taiga-ui-core-components-link.mjs +16 -36
  99. package/fesm2022/taiga-ui-core-components-link.mjs.map +1 -1
  100. package/fesm2022/taiga-ui-core-components-loader.mjs +20 -40
  101. package/fesm2022/taiga-ui-core-components-loader.mjs.map +1 -1
  102. package/fesm2022/taiga-ui-core-components-notification.mjs +107 -66
  103. package/fesm2022/taiga-ui-core-components-notification.mjs.map +1 -1
  104. package/fesm2022/taiga-ui-core-components-root.mjs +23 -60
  105. package/fesm2022/taiga-ui-core-components-root.mjs.map +1 -1
  106. package/fesm2022/taiga-ui-core-components-scrollbar.mjs +73 -87
  107. package/fesm2022/taiga-ui-core-components-scrollbar.mjs.map +1 -1
  108. package/fesm2022/taiga-ui-core-components-spin-button.mjs +18 -31
  109. package/fesm2022/taiga-ui-core-components-spin-button.mjs.map +1 -1
  110. package/fesm2022/taiga-ui-core-components-textfield.mjs +136 -435
  111. package/fesm2022/taiga-ui-core-components-textfield.mjs.map +1 -1
  112. package/fesm2022/taiga-ui-core-components-title.mjs +37 -0
  113. package/fesm2022/taiga-ui-core-components-title.mjs.map +1 -0
  114. package/fesm2022/taiga-ui-core-components.mjs +3 -3
  115. package/fesm2022/taiga-ui-core-directives-appearance.mjs +32 -69
  116. package/fesm2022/taiga-ui-core-directives-appearance.mjs.map +1 -1
  117. package/fesm2022/taiga-ui-core-directives-button-x.mjs +51 -0
  118. package/fesm2022/taiga-ui-core-directives-button-x.mjs.map +1 -0
  119. package/fesm2022/taiga-ui-core-directives-date-format.mjs +26 -20
  120. package/fesm2022/taiga-ui-core-directives-date-format.mjs.map +1 -1
  121. package/fesm2022/taiga-ui-core-directives-group.mjs +25 -40
  122. package/fesm2022/taiga-ui-core-directives-group.mjs.map +1 -1
  123. package/fesm2022/taiga-ui-core-directives-icons.mjs +35 -45
  124. package/fesm2022/taiga-ui-core-directives-icons.mjs.map +1 -1
  125. package/fesm2022/taiga-ui-core-directives-items-handlers.mjs +18 -42
  126. package/fesm2022/taiga-ui-core-directives-items-handlers.mjs.map +1 -1
  127. package/fesm2022/taiga-ui-core-directives-number-format.mjs +32 -20
  128. package/fesm2022/taiga-ui-core-directives-number-format.mjs.map +1 -1
  129. package/fesm2022/taiga-ui-core-directives.mjs +1 -5
  130. package/fesm2022/taiga-ui-core-directives.mjs.map +1 -1
  131. package/fesm2022/taiga-ui-core-pipes-format-number.mjs +21 -15
  132. package/fesm2022/taiga-ui-core-pipes-format-number.mjs.map +1 -1
  133. package/fesm2022/taiga-ui-core-pipes.mjs +0 -8
  134. package/fesm2022/taiga-ui-core-pipes.mjs.map +1 -1
  135. package/fesm2022/taiga-ui-core-portals-alert.mjs +73 -0
  136. package/fesm2022/taiga-ui-core-portals-alert.mjs.map +1 -0
  137. package/fesm2022/taiga-ui-core-portals-dialog.mjs +159 -0
  138. package/fesm2022/taiga-ui-core-portals-dialog.mjs.map +1 -0
  139. package/fesm2022/{taiga-ui-core-directives-dropdown.mjs → taiga-ui-core-portals-dropdown.mjs} +249 -414
  140. package/fesm2022/taiga-ui-core-portals-dropdown.mjs.map +1 -0
  141. package/fesm2022/taiga-ui-core-portals-hint.mjs +552 -0
  142. package/fesm2022/taiga-ui-core-portals-hint.mjs.map +1 -0
  143. package/fesm2022/taiga-ui-core-portals-modal.mjs +89 -0
  144. package/fesm2022/taiga-ui-core-portals-modal.mjs.map +1 -0
  145. package/fesm2022/taiga-ui-core-portals-popup.mjs +56 -0
  146. package/fesm2022/taiga-ui-core-portals-popup.mjs.map +1 -0
  147. package/fesm2022/taiga-ui-core-portals.mjs +11 -0
  148. package/fesm2022/taiga-ui-core-portals.mjs.map +1 -0
  149. package/fesm2022/taiga-ui-core-services.mjs +17 -81
  150. package/fesm2022/taiga-ui-core-services.mjs.map +1 -1
  151. package/fesm2022/taiga-ui-core-tokens.mjs +62 -81
  152. package/fesm2022/taiga-ui-core-tokens.mjs.map +1 -1
  153. package/fesm2022/taiga-ui-core-utils-dom.mjs.map +1 -1
  154. package/fesm2022/taiga-ui-core-utils-format.mjs +1 -22
  155. package/fesm2022/taiga-ui-core-utils-format.mjs.map +1 -1
  156. package/fesm2022/taiga-ui-core-utils-miscellaneous.mjs +55 -19
  157. package/fesm2022/taiga-ui-core-utils-miscellaneous.mjs.map +1 -1
  158. package/fesm2022/taiga-ui-core.mjs +1 -1
  159. package/index.d.ts +1 -1
  160. package/package.json +58 -179
  161. package/pipes/format-number/format-number.pipe.d.ts +6 -4
  162. package/pipes/index.d.ts +0 -8
  163. package/portals/alert/alert.directive.d.ts +11 -0
  164. package/portals/alert/alert.service.d.ts +12 -0
  165. package/portals/alert/index.d.ts +2 -0
  166. package/portals/dialog/dialog.component.d.ts +14 -0
  167. package/portals/dialog/dialog.directive.d.ts +8 -0
  168. package/{components → portals}/dialog/dialog.factory.d.ts +1 -1
  169. package/portals/dialog/dialog.options.d.ts +25 -0
  170. package/{components/dialog/dialog-close.service.d.ts → portals/dialog/dialog.providers.d.ts} +2 -0
  171. package/portals/dialog/dialog.service.d.ts +10 -0
  172. package/portals/dialog/index.d.ts +6 -0
  173. package/portals/dropdown/dropdown-close.directive.d.ts +15 -0
  174. package/portals/dropdown/dropdown-content.directive.d.ts +9 -0
  175. package/{directives → portals}/dropdown/dropdown-context.directive.d.ts +0 -1
  176. package/{directives → portals}/dropdown/dropdown-hover.directive.d.ts +5 -10
  177. package/{directives → portals}/dropdown/dropdown-hover.options.d.ts +1 -3
  178. package/{directives → portals}/dropdown/dropdown-manual.directive.d.ts +2 -2
  179. package/portals/dropdown/dropdown-open.directive.d.ts +29 -0
  180. package/{directives → portals}/dropdown/dropdown-options.directive.d.ts +1 -5
  181. package/{directives → portals}/dropdown/dropdown-position-sided.directive.d.ts +3 -3
  182. package/{directives → portals}/dropdown/dropdown-position.directive.d.ts +6 -6
  183. package/{directives → portals}/dropdown/dropdown-selection.directive.d.ts +4 -5
  184. package/{directives → portals}/dropdown/dropdown.bindings.d.ts +0 -1
  185. package/{directives → portals}/dropdown/dropdown.d.ts +2 -3
  186. package/{directives → portals}/dropdown/dropdown.directive.d.ts +6 -8
  187. package/{directives → portals}/dropdown/index.d.ts +2 -4
  188. package/{directives → portals}/hint/hint-describe.directive.d.ts +4 -6
  189. package/{directives → portals}/hint/hint-host.directive.d.ts +2 -2
  190. package/{directives → portals}/hint/hint-hover.directive.d.ts +3 -4
  191. package/{directives → portals}/hint/hint-manual.directive.d.ts +2 -2
  192. package/portals/hint/hint-options.directive.d.ts +17 -0
  193. package/{directives → portals}/hint/hint-overflow.directive.d.ts +2 -2
  194. package/{directives → portals}/hint/hint-position.directive.d.ts +7 -8
  195. package/{directives → portals}/hint/hint-unstyled.component.d.ts +2 -7
  196. package/portals/hint/hint.component.d.ts +29 -0
  197. package/{directives → portals}/hint/hint.d.ts +1 -2
  198. package/portals/hint/hint.directive.d.ts +24 -0
  199. package/{directives → portals}/hint/index.d.ts +0 -2
  200. package/portals/index.d.ts +6 -0
  201. package/portals/modal/index.d.ts +2 -0
  202. package/portals/modal/modal.component.d.ts +17 -0
  203. package/portals/modal/modal.service.d.ts +13 -0
  204. package/portals/popup/popup.directive.d.ts +12 -0
  205. package/{directives → portals}/popup/popup.service.d.ts +1 -1
  206. package/{directives → portals}/popup/popups.component.d.ts +2 -2
  207. package/services/index.d.ts +0 -3
  208. package/styles/components/appearance.less +5 -0
  209. package/styles/components/button.less +10 -22
  210. package/styles/components/icon.less +42 -21
  211. package/styles/components/icons.less +18 -13
  212. package/styles/components/label.less +3 -12
  213. package/styles/components/link.less +8 -27
  214. package/styles/components/notification.less +31 -65
  215. package/styles/components/textfield.less +128 -213
  216. package/styles/components/title.less +8 -8
  217. package/styles/mixins/appearance.less +11 -26
  218. package/styles/mixins/appearance.scss +9 -24
  219. package/styles/mixins/date-picker.less +1 -1
  220. package/styles/mixins/mixins.less +1 -7
  221. package/styles/mixins/mixins.scss +1 -7
  222. package/styles/mixins/picker.less +1 -1
  223. package/styles/mixins/picker.scss +1 -1
  224. package/styles/mixins/slider.less +28 -24
  225. package/styles/mixins/slider.scss +23 -22
  226. package/styles/taiga-ui-local.less +0 -1
  227. package/styles/taiga-ui-local.scss +0 -1
  228. package/styles/taiga-ui-theme.less +0 -1
  229. package/styles/theme/appearance/outline.less +9 -18
  230. package/styles/theme/appearance/primary.less +2 -4
  231. package/styles/theme/appearance/secondary.less +6 -14
  232. package/styles/theme/appearance/status.less +0 -4
  233. package/styles/theme/appearance/table.less +36 -35
  234. package/styles/theme/appearance/textfield.less +27 -28
  235. package/styles/theme/appearance.less +0 -1
  236. package/styles/theme/variables.less +16 -19
  237. package/styles/variables/media.less +13 -18
  238. package/styles/variables/media.scss +13 -13
  239. package/tokens/breakpoint.d.ts +4 -0
  240. package/tokens/common-icons.d.ts +3 -3
  241. package/tokens/date-format.d.ts +2 -3
  242. package/tokens/i18n.d.ts +7 -7
  243. package/tokens/icon-resolver.d.ts +1 -5
  244. package/tokens/icons.d.ts +0 -4
  245. package/tokens/index.d.ts +2 -4
  246. package/tokens/number-format.d.ts +2 -3
  247. package/tokens/validation-errors.d.ts +4 -0
  248. package/types/direction.d.ts +1 -1
  249. package/types/index.d.ts +0 -3
  250. package/types/point.d.ts +1 -1
  251. package/types/size.d.ts +0 -11
  252. package/utils/format/index.d.ts +0 -1
  253. package/utils/miscellaneous/get-duration.d.ts +2 -0
  254. package/utils/miscellaneous/index.d.ts +2 -1
  255. package/utils/miscellaneous/provide-taiga.d.ts +13 -0
  256. package/animations/animations.d.ts +0 -109
  257. package/animations/index.d.ts +0 -1
  258. package/components/alert/alert.component.d.ts +0 -15
  259. package/components/alert/alert.directive.d.ts +0 -7
  260. package/components/alert/alert.interfaces.d.ts +0 -12
  261. package/components/alert/alert.service.d.ts +0 -7
  262. package/components/alert/alert.tokens.d.ts +0 -12
  263. package/components/alert/alerts.component.d.ts +0 -12
  264. package/components/alert/index.d.ts +0 -6
  265. package/components/data-list/data-list.directive.d.ts +0 -7
  266. package/components/data-list/option/option-content.d.ts +0 -16
  267. package/components/data-list/option/option-legacy.component.d.ts +0 -24
  268. package/components/data-list/option/option.directive.d.ts +0 -27
  269. package/components/dialog/active-zone-adapter.directive.d.ts +0 -11
  270. package/components/dialog/dialog.component.d.ts +0 -20
  271. package/components/dialog/dialog.directive.d.ts +0 -7
  272. package/components/dialog/dialog.interfaces.d.ts +0 -34
  273. package/components/dialog/dialog.service.d.ts +0 -7
  274. package/components/dialog/dialog.tokens.d.ts +0 -15
  275. package/components/dialog/dialogs.component.d.ts +0 -8
  276. package/components/dialog/index.d.ts +0 -8
  277. package/components/expand/expand-content.directive.d.ts +0 -8
  278. package/components/expand/expand.d.ts +0 -6
  279. package/components/fullscreen/fullscreen.component.d.ts +0 -14
  280. package/components/fullscreen/index.d.ts +0 -1
  281. package/components/link/link.options.d.ts +0 -12
  282. package/components/textfield/select.directive.d.ts +0 -19
  283. package/components/textfield/textfield-dropdown.directive.d.ts +0 -16
  284. package/components/textfield/textfield.directive.d.ts +0 -38
  285. package/directives/dropdown/dropdown-open-legacy.directive.d.ts +0 -12
  286. package/directives/dropdown/dropdown-open.directive.d.ts +0 -33
  287. package/directives/dropdown/dropdown-portal.directive.d.ts +0 -14
  288. package/directives/dropdown/dropdown.service.d.ts +0 -6
  289. package/directives/dropdown/dropdowns.component.d.ts +0 -9
  290. package/directives/hint/hint-options.directive.d.ts +0 -36
  291. package/directives/hint/hint.component.d.ts +0 -30
  292. package/directives/hint/hint.directive.d.ts +0 -26
  293. package/directives/hint/hint.service.d.ts +0 -13
  294. package/directives/hint/hints.component.d.ts +0 -12
  295. package/directives/popup/popup.directive.d.ts +0 -11
  296. package/directives/surface/index.d.ts +0 -1
  297. package/directives/surface/surface.directive.d.ts +0 -8
  298. package/esm2022/animations/animations.mjs +0 -363
  299. package/esm2022/animations/index.mjs +0 -2
  300. package/esm2022/animations/taiga-ui-core-animations.mjs +0 -5
  301. package/esm2022/classes/accessors.mjs +0 -31
  302. package/esm2022/classes/driver.mjs +0 -36
  303. package/esm2022/classes/index.mjs +0 -4
  304. package/esm2022/classes/taiga-ui-core-classes.mjs +0 -5
  305. package/esm2022/classes/vehicle.mjs +0 -7
  306. package/esm2022/components/alert/alert.component.mjs +0 -43
  307. package/esm2022/components/alert/alert.directive.mjs +0 -21
  308. package/esm2022/components/alert/alert.interfaces.mjs +0 -2
  309. package/esm2022/components/alert/alert.service.mjs +0 -18
  310. package/esm2022/components/alert/alert.tokens.mjs +0 -51
  311. package/esm2022/components/alert/alerts.component.mjs +0 -33
  312. package/esm2022/components/alert/index.mjs +0 -6
  313. package/esm2022/components/alert/taiga-ui-core-components-alert.mjs +0 -5
  314. package/esm2022/components/button/button.directive.mjs +0 -43
  315. package/esm2022/components/button/button.options.mjs +0 -7
  316. package/esm2022/components/button/index.mjs +0 -3
  317. package/esm2022/components/button/taiga-ui-core-components-button.mjs +0 -5
  318. package/esm2022/components/calendar/calendar-sheet.component.mjs +0 -168
  319. package/esm2022/components/calendar/calendar-sheet.options.mjs +0 -12
  320. package/esm2022/components/calendar/calendar-spin.component.mjs +0 -53
  321. package/esm2022/components/calendar/calendar-year.component.mjs +0 -128
  322. package/esm2022/components/calendar/calendar.component.mjs +0 -147
  323. package/esm2022/components/calendar/index.mjs +0 -6
  324. package/esm2022/components/calendar/taiga-ui-core-components-calendar.mjs +0 -5
  325. package/esm2022/components/data-list/data-list.component.mjs +0 -139
  326. package/esm2022/components/data-list/data-list.directive.mjs +0 -19
  327. package/esm2022/components/data-list/data-list.mjs +0 -14
  328. package/esm2022/components/data-list/data-list.tokens.mjs +0 -18
  329. package/esm2022/components/data-list/index.mjs +0 -9
  330. package/esm2022/components/data-list/opt-group.directive.mjs +0 -21
  331. package/esm2022/components/data-list/option/option-content.mjs +0 -36
  332. package/esm2022/components/data-list/option/option-legacy.component.mjs +0 -90
  333. package/esm2022/components/data-list/option/option.directive.mjs +0 -109
  334. package/esm2022/components/data-list/taiga-ui-core-components-data-list.mjs +0 -5
  335. package/esm2022/components/dialog/active-zone-adapter.directive.mjs +0 -37
  336. package/esm2022/components/dialog/dialog-close.service.mjs +0 -41
  337. package/esm2022/components/dialog/dialog.component.mjs +0 -63
  338. package/esm2022/components/dialog/dialog.directive.mjs +0 -21
  339. package/esm2022/components/dialog/dialog.factory.mjs +0 -15
  340. package/esm2022/components/dialog/dialog.interfaces.mjs +0 -2
  341. package/esm2022/components/dialog/dialog.service.mjs +0 -18
  342. package/esm2022/components/dialog/dialog.tokens.mjs +0 -33
  343. package/esm2022/components/dialog/dialogs.component.mjs +0 -31
  344. package/esm2022/components/dialog/index.mjs +0 -8
  345. package/esm2022/components/dialog/taiga-ui-core-components-dialog.mjs +0 -5
  346. package/esm2022/components/error/error.component.mjs +0 -34
  347. package/esm2022/components/error/index.mjs +0 -2
  348. package/esm2022/components/error/taiga-ui-core-components-error.mjs +0 -5
  349. package/esm2022/components/expand/expand-content.directive.mjs +0 -18
  350. package/esm2022/components/expand/expand.component.mjs +0 -124
  351. package/esm2022/components/expand/expand.mjs +0 -7
  352. package/esm2022/components/expand/index.mjs +0 -4
  353. package/esm2022/components/expand/taiga-ui-core-components-expand.mjs +0 -5
  354. package/esm2022/components/fullscreen/fullscreen.component.mjs +0 -71
  355. package/esm2022/components/fullscreen/index.mjs +0 -2
  356. package/esm2022/components/fullscreen/taiga-ui-core-components-fullscreen.mjs +0 -5
  357. package/esm2022/components/icon/icon.component.mjs +0 -44
  358. package/esm2022/components/icon/icon.pipe.mjs +0 -19
  359. package/esm2022/components/icon/index.mjs +0 -3
  360. package/esm2022/components/icon/taiga-ui-core-components-icon.mjs +0 -5
  361. package/esm2022/components/index.mjs +0 -18
  362. package/esm2022/components/label/index.mjs +0 -2
  363. package/esm2022/components/label/label.directive.mjs +0 -41
  364. package/esm2022/components/label/taiga-ui-core-components-label.mjs +0 -5
  365. package/esm2022/components/link/index.mjs +0 -3
  366. package/esm2022/components/link/link.directive.mjs +0 -47
  367. package/esm2022/components/link/link.options.mjs +0 -13
  368. package/esm2022/components/link/taiga-ui-core-components-link.mjs +0 -5
  369. package/esm2022/components/loader/index.mjs +0 -3
  370. package/esm2022/components/loader/loader.component.mjs +0 -46
  371. package/esm2022/components/loader/loader.options.mjs +0 -18
  372. package/esm2022/components/loader/taiga-ui-core-components-loader.mjs +0 -5
  373. package/esm2022/components/notification/index.mjs +0 -3
  374. package/esm2022/components/notification/notification.directive.mjs +0 -81
  375. package/esm2022/components/notification/notification.options.mjs +0 -23
  376. package/esm2022/components/notification/taiga-ui-core-components-notification.mjs +0 -5
  377. package/esm2022/components/root/index.mjs +0 -2
  378. package/esm2022/components/root/root.component.mjs +0 -87
  379. package/esm2022/components/root/taiga-ui-core-components-root.mjs +0 -5
  380. package/esm2022/components/scrollbar/index.mjs +0 -9
  381. package/esm2022/components/scrollbar/scroll-controls.component.mjs +0 -32
  382. package/esm2022/components/scrollbar/scroll-into-view.directive.mjs +0 -43
  383. package/esm2022/components/scrollbar/scroll-ref.directive.mjs +0 -19
  384. package/esm2022/components/scrollbar/scrollable.directive.mjs +0 -26
  385. package/esm2022/components/scrollbar/scrollbar.component.mjs +0 -72
  386. package/esm2022/components/scrollbar/scrollbar.directive.mjs +0 -93
  387. package/esm2022/components/scrollbar/scrollbar.options.mjs +0 -6
  388. package/esm2022/components/scrollbar/scrollbar.service.mjs +0 -46
  389. package/esm2022/components/scrollbar/taiga-ui-core-components-scrollbar.mjs +0 -5
  390. package/esm2022/components/spin-button/index.mjs +0 -2
  391. package/esm2022/components/spin-button/spin-button.component.mjs +0 -51
  392. package/esm2022/components/spin-button/taiga-ui-core-components-spin-button.mjs +0 -5
  393. package/esm2022/components/taiga-ui-core-components.mjs +0 -5
  394. package/esm2022/components/textfield/index.mjs +0 -16
  395. package/esm2022/components/textfield/select-like.directive.mjs +0 -44
  396. package/esm2022/components/textfield/select.directive.mjs +0 -64
  397. package/esm2022/components/textfield/taiga-ui-core-components-textfield.mjs +0 -5
  398. package/esm2022/components/textfield/textfield-accessor.mjs +0 -7
  399. package/esm2022/components/textfield/textfield-auxiliary.mjs +0 -7
  400. package/esm2022/components/textfield/textfield-content.directive.mjs +0 -22
  401. package/esm2022/components/textfield/textfield-dropdown.directive.mjs +0 -43
  402. package/esm2022/components/textfield/textfield-icon.mjs +0 -10
  403. package/esm2022/components/textfield/textfield-multi/textfield-item.component.mjs +0 -34
  404. package/esm2022/components/textfield/textfield-multi/textfield-multi.component.mjs +0 -137
  405. package/esm2022/components/textfield/textfield.component.mjs +0 -183
  406. package/esm2022/components/textfield/textfield.directive.mjs +0 -134
  407. package/esm2022/components/textfield/textfield.mjs +0 -19
  408. package/esm2022/components/textfield/textfield.options.mjs +0 -63
  409. package/esm2022/components/textfield/with-native-picker.directive.mjs +0 -24
  410. package/esm2022/directives/appearance/appearance.bindings.mjs +0 -15
  411. package/esm2022/directives/appearance/appearance.directive.mjs +0 -79
  412. package/esm2022/directives/appearance/appearance.options.mjs +0 -12
  413. package/esm2022/directives/appearance/index.mjs +0 -5
  414. package/esm2022/directives/appearance/taiga-ui-core-directives-appearance.mjs +0 -5
  415. package/esm2022/directives/appearance/with-appearance.mjs +0 -27
  416. package/esm2022/directives/date-format/date-format.directive.mjs +0 -31
  417. package/esm2022/directives/date-format/index.mjs +0 -2
  418. package/esm2022/directives/date-format/taiga-ui-core-directives-date-format.mjs +0 -5
  419. package/esm2022/directives/dropdown/dropdown-context.directive.mjs +0 -76
  420. package/esm2022/directives/dropdown/dropdown-hover.directive.mjs +0 -70
  421. package/esm2022/directives/dropdown/dropdown-hover.options.mjs +0 -17
  422. package/esm2022/directives/dropdown/dropdown-limit-width.mjs +0 -37
  423. package/esm2022/directives/dropdown/dropdown-manual.directive.mjs +0 -27
  424. package/esm2022/directives/dropdown/dropdown-open-legacy.directive.mjs +0 -33
  425. package/esm2022/directives/dropdown/dropdown-open.directive.mjs +0 -169
  426. package/esm2022/directives/dropdown/dropdown-options.directive.mjs +0 -73
  427. package/esm2022/directives/dropdown/dropdown-portal.directive.mjs +0 -34
  428. package/esm2022/directives/dropdown/dropdown-position-sided.directive.mjs +0 -69
  429. package/esm2022/directives/dropdown/dropdown-position.directive.mjs +0 -88
  430. package/esm2022/directives/dropdown/dropdown-selection.directive.mjs +0 -159
  431. package/esm2022/directives/dropdown/dropdown.bindings.mjs +0 -19
  432. package/esm2022/directives/dropdown/dropdown.component.mjs +0 -92
  433. package/esm2022/directives/dropdown/dropdown.directive.mjs +0 -110
  434. package/esm2022/directives/dropdown/dropdown.driver.mjs +0 -32
  435. package/esm2022/directives/dropdown/dropdown.mjs +0 -29
  436. package/esm2022/directives/dropdown/dropdown.providers.mjs +0 -10
  437. package/esm2022/directives/dropdown/dropdown.service.mjs +0 -15
  438. package/esm2022/directives/dropdown/dropdowns.component.mjs +0 -24
  439. package/esm2022/directives/dropdown/index.mjs +0 -22
  440. package/esm2022/directives/dropdown/taiga-ui-core-directives-dropdown.mjs +0 -5
  441. package/esm2022/directives/dropdown/with-dropdown-open.directive.mjs +0 -23
  442. package/esm2022/directives/group/group.directive.mjs +0 -53
  443. package/esm2022/directives/group/group.options.mjs +0 -15
  444. package/esm2022/directives/group/index.mjs +0 -3
  445. package/esm2022/directives/group/taiga-ui-core-directives-group.mjs +0 -5
  446. package/esm2022/directives/hint/hint-describe.directive.mjs +0 -50
  447. package/esm2022/directives/hint/hint-driver.directive.mjs +0 -19
  448. package/esm2022/directives/hint/hint-host.directive.mjs +0 -27
  449. package/esm2022/directives/hint/hint-hover.directive.mjs +0 -59
  450. package/esm2022/directives/hint/hint-manual.directive.mjs +0 -33
  451. package/esm2022/directives/hint/hint-options.directive.mjs +0 -86
  452. package/esm2022/directives/hint/hint-overflow.directive.mjs +0 -38
  453. package/esm2022/directives/hint/hint-pointer.directive.mjs +0 -33
  454. package/esm2022/directives/hint/hint-position.directive.mjs +0 -115
  455. package/esm2022/directives/hint/hint-unstyled.component.mjs +0 -39
  456. package/esm2022/directives/hint/hint.component.mjs +0 -127
  457. package/esm2022/directives/hint/hint.directive.mjs +0 -99
  458. package/esm2022/directives/hint/hint.mjs +0 -27
  459. package/esm2022/directives/hint/hint.providers.mjs +0 -9
  460. package/esm2022/directives/hint/hint.service.mjs +0 -29
  461. package/esm2022/directives/hint/hints.component.mjs +0 -34
  462. package/esm2022/directives/hint/index.mjs +0 -17
  463. package/esm2022/directives/hint/taiga-ui-core-directives-hint.mjs +0 -5
  464. package/esm2022/directives/icons/icons.directive.mjs +0 -66
  465. package/esm2022/directives/icons/index.mjs +0 -3
  466. package/esm2022/directives/icons/taiga-ui-core-directives-icons.mjs +0 -5
  467. package/esm2022/directives/icons/with-icons.mjs +0 -22
  468. package/esm2022/directives/index.mjs +0 -12
  469. package/esm2022/directives/items-handlers/index.mjs +0 -4
  470. package/esm2022/directives/items-handlers/items-handlers.directive.mjs +0 -63
  471. package/esm2022/directives/items-handlers/items-handlers.tokens.mjs +0 -27
  472. package/esm2022/directives/items-handlers/items-handlers.validator.mjs +0 -32
  473. package/esm2022/directives/items-handlers/taiga-ui-core-directives-items-handlers.mjs +0 -5
  474. package/esm2022/directives/number-format/index.mjs +0 -2
  475. package/esm2022/directives/number-format/number-format.directive.mjs +0 -31
  476. package/esm2022/directives/number-format/taiga-ui-core-directives-number-format.mjs +0 -5
  477. package/esm2022/directives/popup/index.mjs +0 -4
  478. package/esm2022/directives/popup/popup.directive.mjs +0 -31
  479. package/esm2022/directives/popup/popup.service.mjs +0 -15
  480. package/esm2022/directives/popup/popups.component.mjs +0 -20
  481. package/esm2022/directives/popup/taiga-ui-core-directives-popup.mjs +0 -5
  482. package/esm2022/directives/surface/index.mjs +0 -2
  483. package/esm2022/directives/surface/surface.directive.mjs +0 -44
  484. package/esm2022/directives/surface/taiga-ui-core-directives-surface.mjs +0 -5
  485. package/esm2022/directives/taiga-ui-core-directives.mjs +0 -5
  486. package/esm2022/directives/title/index.mjs +0 -2
  487. package/esm2022/directives/title/taiga-ui-core-directives-title.mjs +0 -5
  488. package/esm2022/directives/title/title.directive.mjs +0 -37
  489. package/esm2022/index.mjs +0 -9
  490. package/esm2022/pipes/auto-color/auto-color.pipe.mjs +0 -19
  491. package/esm2022/pipes/auto-color/index.mjs +0 -2
  492. package/esm2022/pipes/auto-color/taiga-ui-core-pipes-auto-color.mjs +0 -5
  493. package/esm2022/pipes/calendar-sheet/calendar-sheet.pipe.mjs +0 -54
  494. package/esm2022/pipes/calendar-sheet/index.mjs +0 -2
  495. package/esm2022/pipes/calendar-sheet/taiga-ui-core-pipes-calendar-sheet.mjs +0 -5
  496. package/esm2022/pipes/calendar-sheet/utils.mjs +0 -36
  497. package/esm2022/pipes/fallback-src/fallback-src.pipe.mjs +0 -23
  498. package/esm2022/pipes/fallback-src/index.mjs +0 -2
  499. package/esm2022/pipes/fallback-src/taiga-ui-core-pipes-fallback-src.mjs +0 -5
  500. package/esm2022/pipes/flag/flag.pipe.mjs +0 -26
  501. package/esm2022/pipes/flag/index.mjs +0 -2
  502. package/esm2022/pipes/flag/taiga-ui-core-pipes-flag.mjs +0 -5
  503. package/esm2022/pipes/format-date/format-date.pipe.mjs +0 -22
  504. package/esm2022/pipes/format-date/index.mjs +0 -2
  505. package/esm2022/pipes/format-date/taiga-ui-core-pipes-format-date.mjs +0 -5
  506. package/esm2022/pipes/format-number/format-number.pipe.mjs +0 -36
  507. package/esm2022/pipes/format-number/index.mjs +0 -2
  508. package/esm2022/pipes/format-number/taiga-ui-core-pipes-format-number.mjs +0 -5
  509. package/esm2022/pipes/index.mjs +0 -10
  510. package/esm2022/pipes/initials/index.mjs +0 -2
  511. package/esm2022/pipes/initials/initials.pipe.mjs +0 -23
  512. package/esm2022/pipes/initials/taiga-ui-core-pipes-initials.mjs +0 -5
  513. package/esm2022/pipes/month/index.mjs +0 -2
  514. package/esm2022/pipes/month/month.pipe.mjs +0 -23
  515. package/esm2022/pipes/month/taiga-ui-core-pipes-month.mjs +0 -5
  516. package/esm2022/pipes/order-week-days/index.mjs +0 -2
  517. package/esm2022/pipes/order-week-days/order-week-days.pipe.mjs +0 -30
  518. package/esm2022/pipes/order-week-days/taiga-ui-core-pipes-order-week-days.mjs +0 -5
  519. package/esm2022/pipes/taiga-ui-core-pipes.mjs +0 -5
  520. package/esm2022/services/breakpoint.service.mjs +0 -31
  521. package/esm2022/services/dark-theme.service.mjs +0 -24
  522. package/esm2022/services/format-date.service.mjs +0 -24
  523. package/esm2022/services/index.mjs +0 -6
  524. package/esm2022/services/position.service.mjs +0 -26
  525. package/esm2022/services/taiga-ui-core-services.mjs +0 -5
  526. package/esm2022/services/visual-viewport.service.mjs +0 -29
  527. package/esm2022/taiga-ui-core.mjs +0 -5
  528. package/esm2022/tokens/animations-speed.mjs +0 -9
  529. package/esm2022/tokens/assets-path.mjs +0 -11
  530. package/esm2022/tokens/auxiliary.mjs +0 -9
  531. package/esm2022/tokens/common-icons.mjs +0 -18
  532. package/esm2022/tokens/dark-mode.mjs +0 -43
  533. package/esm2022/tokens/date-format.mjs +0 -20
  534. package/esm2022/tokens/day-type-handler.mjs +0 -8
  535. package/esm2022/tokens/first-day-of-week.mjs +0 -9
  536. package/esm2022/tokens/i18n.mjs +0 -45
  537. package/esm2022/tokens/icon-resolver.mjs +0 -44
  538. package/esm2022/tokens/icon.mjs +0 -8
  539. package/esm2022/tokens/icons.mjs +0 -21
  540. package/esm2022/tokens/index.mjs +0 -21
  541. package/esm2022/tokens/media.mjs +0 -12
  542. package/esm2022/tokens/number-format.mjs +0 -24
  543. package/esm2022/tokens/reduced-motion.mjs +0 -7
  544. package/esm2022/tokens/scroll-ref.mjs +0 -6
  545. package/esm2022/tokens/selection-stream.mjs +0 -14
  546. package/esm2022/tokens/spin-icons.mjs +0 -8
  547. package/esm2022/tokens/taiga-ui-core-tokens.mjs +0 -5
  548. package/esm2022/tokens/theme.mjs +0 -5
  549. package/esm2022/tokens/viewport.mjs +0 -35
  550. package/esm2022/types/direction.mjs +0 -2
  551. package/esm2022/types/index.mjs +0 -2
  552. package/esm2022/types/interactive-state.mjs +0 -2
  553. package/esm2022/types/orientation.mjs +0 -2
  554. package/esm2022/types/point.mjs +0 -2
  555. package/esm2022/types/portal-item.mjs +0 -2
  556. package/esm2022/types/range-state.mjs +0 -2
  557. package/esm2022/types/size.mjs +0 -13
  558. package/esm2022/types/taiga-ui-core-types.mjs +0 -5
  559. package/esm2022/types/value-content-context.mjs +0 -2
  560. package/esm2022/utils/dom/check-fixed-position.mjs +0 -9
  561. package/esm2022/utils/dom/get-viewport.mjs +0 -24
  562. package/esm2022/utils/dom/get-word-range.mjs +0 -51
  563. package/esm2022/utils/dom/index.mjs +0 -4
  564. package/esm2022/utils/dom/taiga-ui-core-utils-dom.mjs +0 -5
  565. package/esm2022/utils/format/format-number.mjs +0 -47
  566. package/esm2022/utils/format/get-fractional-part-padded.mjs +0 -16
  567. package/esm2022/utils/format/index.mjs +0 -5
  568. package/esm2022/utils/format/number-to-string-without-exp.mjs +0 -18
  569. package/esm2022/utils/format/string-hash-to-hsl.mjs +0 -21
  570. package/esm2022/utils/format/taiga-ui-core-utils-format.mjs +0 -5
  571. package/esm2022/utils/index.mjs +0 -4
  572. package/esm2022/utils/miscellaneous/font-scaling.mjs +0 -21
  573. package/esm2022/utils/miscellaneous/index.mjs +0 -7
  574. package/esm2022/utils/miscellaneous/is-editing-key.mjs +0 -18
  575. package/esm2022/utils/miscellaneous/is-obscured.mjs +0 -8
  576. package/esm2022/utils/miscellaneous/override-options.mjs +0 -11
  577. package/esm2022/utils/miscellaneous/size-bigger.mjs +0 -19
  578. package/esm2022/utils/miscellaneous/taiga-ui-core-utils-miscellaneous.mjs +0 -5
  579. package/esm2022/utils/miscellaneous/to-animation-options.mjs +0 -16
  580. package/esm2022/utils/taiga-ui-core-utils.mjs +0 -5
  581. package/fesm2022/taiga-ui-core-animations.mjs +0 -370
  582. package/fesm2022/taiga-ui-core-animations.mjs.map +0 -1
  583. package/fesm2022/taiga-ui-core-components-alert.mjs +0 -149
  584. package/fesm2022/taiga-ui-core-components-alert.mjs.map +0 -1
  585. package/fesm2022/taiga-ui-core-components-dialog.mjs +0 -230
  586. package/fesm2022/taiga-ui-core-components-dialog.mjs.map +0 -1
  587. package/fesm2022/taiga-ui-core-components-fullscreen.mjs +0 -77
  588. package/fesm2022/taiga-ui-core-components-fullscreen.mjs.map +0 -1
  589. package/fesm2022/taiga-ui-core-directives-dropdown.mjs.map +0 -1
  590. package/fesm2022/taiga-ui-core-directives-hint.mjs +0 -713
  591. package/fesm2022/taiga-ui-core-directives-hint.mjs.map +0 -1
  592. package/fesm2022/taiga-ui-core-directives-popup.mjs +0 -63
  593. package/fesm2022/taiga-ui-core-directives-popup.mjs.map +0 -1
  594. package/fesm2022/taiga-ui-core-directives-surface.mjs +0 -50
  595. package/fesm2022/taiga-ui-core-directives-surface.mjs.map +0 -1
  596. package/fesm2022/taiga-ui-core-directives-title.mjs +0 -43
  597. package/fesm2022/taiga-ui-core-directives-title.mjs.map +0 -1
  598. package/fesm2022/taiga-ui-core-pipes-auto-color.mjs +0 -25
  599. package/fesm2022/taiga-ui-core-pipes-auto-color.mjs.map +0 -1
  600. package/fesm2022/taiga-ui-core-pipes-calendar-sheet.mjs +0 -94
  601. package/fesm2022/taiga-ui-core-pipes-calendar-sheet.mjs.map +0 -1
  602. package/fesm2022/taiga-ui-core-pipes-fallback-src.mjs +0 -29
  603. package/fesm2022/taiga-ui-core-pipes-fallback-src.mjs.map +0 -1
  604. package/fesm2022/taiga-ui-core-pipes-flag.mjs +0 -32
  605. package/fesm2022/taiga-ui-core-pipes-flag.mjs.map +0 -1
  606. package/fesm2022/taiga-ui-core-pipes-format-date.mjs +0 -28
  607. package/fesm2022/taiga-ui-core-pipes-format-date.mjs.map +0 -1
  608. package/fesm2022/taiga-ui-core-pipes-initials.mjs +0 -29
  609. package/fesm2022/taiga-ui-core-pipes-initials.mjs.map +0 -1
  610. package/fesm2022/taiga-ui-core-pipes-month.mjs +0 -29
  611. package/fesm2022/taiga-ui-core-pipes-month.mjs.map +0 -1
  612. package/fesm2022/taiga-ui-core-pipes-order-week-days.mjs +0 -36
  613. package/fesm2022/taiga-ui-core-pipes-order-week-days.mjs.map +0 -1
  614. package/pipes/auto-color/auto-color.pipe.d.ts +0 -7
  615. package/pipes/auto-color/index.d.ts +0 -1
  616. package/pipes/calendar-sheet/index.d.ts +0 -1
  617. package/pipes/calendar-sheet/utils.d.ts +0 -20
  618. package/pipes/fallback-src/fallback-src.pipe.d.ts +0 -9
  619. package/pipes/fallback-src/index.d.ts +0 -1
  620. package/pipes/flag/flag.pipe.d.ts +0 -14
  621. package/pipes/flag/index.d.ts +0 -1
  622. package/pipes/format-date/format-date.pipe.d.ts +0 -9
  623. package/pipes/format-date/index.d.ts +0 -1
  624. package/pipes/initials/index.d.ts +0 -1
  625. package/pipes/initials/initials.pipe.d.ts +0 -7
  626. package/pipes/month/index.d.ts +0 -1
  627. package/pipes/month/month.pipe.d.ts +0 -10
  628. package/pipes/order-week-days/index.d.ts +0 -1
  629. package/services/breakpoint.service.d.ts +0 -16
  630. package/services/dark-theme.service.d.ts +0 -10
  631. package/services/format-date.service.d.ts +0 -8
  632. package/styles/mixins/wrapper.less +0 -64
  633. package/styles/mixins/wrapper.scss +0 -61
  634. package/styles/theme/appearance/opposite.less +0 -17
  635. package/styles/theme/wrapper.less +0 -211
  636. package/tokens/day-type-handler.d.ts +0 -7
  637. package/tokens/first-day-of-week.d.ts +0 -5
  638. package/tokens/scroll-ref.d.ts +0 -2
  639. package/tokens/spin-icons.d.ts +0 -6
  640. package/types/portal-item.d.ts +0 -9
  641. package/types/range-state.d.ts +0 -4
  642. package/types/value-content-context.d.ts +0 -4
  643. package/utils/format/string-hash-to-hsl.d.ts +0 -6
  644. package/utils/miscellaneous/to-animation-options.d.ts +0 -4
  645. /package/{directives → components}/title/index.d.ts +0 -0
  646. /package/{directives → portals}/dropdown/dropdown-limit-width.d.ts +0 -0
  647. /package/{directives → portals}/dropdown/dropdown.component.d.ts +0 -0
  648. /package/{directives → portals}/dropdown/dropdown.driver.d.ts +0 -0
  649. /package/{directives → portals}/dropdown/dropdown.providers.d.ts +0 -0
  650. /package/{directives → portals}/dropdown/with-dropdown-open.directive.d.ts +0 -0
  651. /package/{directives → portals}/hint/hint-driver.directive.d.ts +0 -0
  652. /package/{directives → portals}/hint/hint-pointer.directive.d.ts +0 -0
  653. /package/{directives → portals}/hint/hint.providers.d.ts +0 -0
  654. /package/{directives → portals}/popup/index.d.ts +0 -0
@@ -1,53 +0,0 @@
1
- import { AsyncPipe, NgIf } from '@angular/common';
2
- import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output, } from '@angular/core';
3
- import { TUI_FIRST_DAY, TUI_LAST_DAY, TuiMonth, } from '@taiga-ui/cdk/date-time';
4
- import { TuiLink } from '@taiga-ui/core/components/link';
5
- import { TuiSpinButton } from '@taiga-ui/core/components/spin-button';
6
- import { TuiMonthPipe } from '@taiga-ui/core/pipes';
7
- import * as i0 from "@angular/core";
8
- class TuiCalendarSpin {
9
- constructor() {
10
- this.value = TuiMonth.currentLocal();
11
- this.min = TUI_FIRST_DAY;
12
- this.max = TUI_LAST_DAY;
13
- this.valueChange = new EventEmitter();
14
- this.yearClick = new EventEmitter();
15
- }
16
- onYearClick() {
17
- this.yearClick.next(this.value);
18
- }
19
- append(date) {
20
- const value = this.value.append(date);
21
- if (this.min.monthSameOrAfter(value)) {
22
- this.updateValue(this.min);
23
- }
24
- else {
25
- this.updateValue(this.max.monthSameOrBefore(value) ? this.max : value);
26
- }
27
- }
28
- updateValue(value) {
29
- if (this.value.monthSame(value)) {
30
- return;
31
- }
32
- this.value = value;
33
- this.valueChange.emit(value);
34
- }
35
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiCalendarSpin, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
36
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiCalendarSpin, isStandalone: true, selector: "tui-calendar-spin", inputs: { value: "value", min: "min", max: "max" }, outputs: { valueChange: "valueChange", yearClick: "yearClick" }, ngImport: i0, template: "<tui-spin-button\n [focusable]=\"false\"\n [leftDisabled]=\"value.monthSameOrBefore(min)\"\n [rightDisabled]=\"value.monthSameOrAfter(max)\"\n (leftClick)=\"append({month: -1})\"\n (rightClick)=\"append({month: 1})\"\n>\n {{ value | tuiMonth | async }}\n <ng-container *ngIf=\"min.year === max.year; else button\">\n {{ value.formattedYear }}\n </ng-container>\n <ng-template #button>\n <button\n id=\"year-btn\"\n automation-id=\"tui-primitive-year-month-pagination__year-button\"\n tabIndex=\"-1\"\n tuiLink\n type=\"button\"\n (click)=\"onYearClick()\"\n >\n {{ value.formattedYear }}\n </button>\n </ng-template>\n</tui-spin-button>\n", styles: [":host{display:block}\n"], dependencies: [{ kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: TuiLink, selector: "a[tuiLink], button[tuiLink]", inputs: ["pseudo"] }, { kind: "pipe", type: TuiMonthPipe, name: "tuiMonth" }, { kind: "component", type: TuiSpinButton, selector: "tui-spin-button", inputs: ["focusable", "disabled", "leftDisabled", "rightDisabled"], outputs: ["leftClick", "rightClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
37
- }
38
- export { TuiCalendarSpin };
39
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiCalendarSpin, decorators: [{
40
- type: Component,
41
- args: [{ standalone: true, selector: 'tui-calendar-spin', imports: [AsyncPipe, NgIf, TuiLink, TuiMonthPipe, TuiSpinButton], changeDetection: ChangeDetectionStrategy.OnPush, template: "<tui-spin-button\n [focusable]=\"false\"\n [leftDisabled]=\"value.monthSameOrBefore(min)\"\n [rightDisabled]=\"value.monthSameOrAfter(max)\"\n (leftClick)=\"append({month: -1})\"\n (rightClick)=\"append({month: 1})\"\n>\n {{ value | tuiMonth | async }}\n <ng-container *ngIf=\"min.year === max.year; else button\">\n {{ value.formattedYear }}\n </ng-container>\n <ng-template #button>\n <button\n id=\"year-btn\"\n automation-id=\"tui-primitive-year-month-pagination__year-button\"\n tabIndex=\"-1\"\n tuiLink\n type=\"button\"\n (click)=\"onYearClick()\"\n >\n {{ value.formattedYear }}\n </button>\n </ng-template>\n</tui-spin-button>\n", styles: [":host{display:block}\n"] }]
42
- }], propDecorators: { value: [{
43
- type: Input
44
- }], min: [{
45
- type: Input
46
- }], max: [{
47
- type: Input
48
- }], valueChange: [{
49
- type: Output
50
- }], yearClick: [{
51
- type: Output
52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JcbiAgICAgICAgICAgIGF1dG9tYXRpb24taWQ9XCJ0dWktcHJpbWl0aXZlLXllYXItbW9udGgtcGFnaW5hdGlvbl9feWVhci1idXR0b25cIlxuICAgICAgICAgICAgdGFiSW5kZXg9XCItMVwiXG4gICAgICAgICAgICB0dWlMaW5rXG4gICAgICAgICAgICB0eXBlPVwiYnV0dG9uXCJcbiAgICAgICAgICAgIChjbGljayk9XCJvblllYXJDbGljaygpXCJcbiAgICAgICAgPlxuICAgICAgICAgICAge3sgdmFsdWUuZm9ybWF0dGVkWWVhciB9fVxuICAgICAgICA8L2J1dHRvbj5cbiAgICA8L25nLXRlbXBsYXRlPlxuPC90dWktc3Bpbi1idXR0b24+XG4iXX0=
@@ -1,128 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, computed, EventEmitter, inject, Input, Output, signal, } from '@angular/core';
2
- import { MAX_YEAR, MIN_YEAR, TuiDay, TuiMonth, TuiMonthRange, TuiYear, } from '@taiga-ui/cdk/date-time';
3
- import { TuiHovered } from '@taiga-ui/cdk/directives/hovered';
4
- import { TuiLet } from '@taiga-ui/cdk/directives/let';
5
- import { TuiRepeatTimes } from '@taiga-ui/cdk/directives/repeat-times';
6
- import { tuiIsNumber } from '@taiga-ui/cdk/utils/miscellaneous';
7
- import { TuiScrollIntoView } from '@taiga-ui/core/components/scrollbar';
8
- import { TUI_ITEMS_HANDLERS } from '@taiga-ui/core/directives';
9
- import { tuiAsAuxiliary } from '@taiga-ui/core/tokens';
10
- import * as i0 from "@angular/core";
11
- const LIMIT = 100;
12
- const ITEMS_IN_ROW = 4;
13
- const CURRENT_YEAR = TuiMonth.currentLocal().year;
14
- class TuiCalendarYear {
15
- constructor() {
16
- this.hoveredItem = signal(null);
17
- this.isRangePicking = computed((x = this.value()) => this.rangeMode && (x instanceof TuiDay || x instanceof TuiMonth));
18
- this.rangeMode = false;
19
- this.disabledItemHandler = inject(TUI_ITEMS_HANDLERS).disabledItemHandler();
20
- this.yearClick = new EventEmitter();
21
- this.initialItem = signal(CURRENT_YEAR);
22
- this.min = signal(MIN_YEAR);
23
- this.max = signal(MAX_YEAR);
24
- this.value = signal(null);
25
- }
26
- // TODO(v5): use signal inputs
27
- set initialItemSetter(x) {
28
- this.initialItem.set(x ?? CURRENT_YEAR);
29
- }
30
- // TODO(v5): use signal inputs
31
- set minSetter(x) {
32
- this.min.set(x);
33
- }
34
- // TODO(v5): use signal inputs
35
- set maxSetter(x) {
36
- this.max.set(x);
37
- }
38
- // TODO(v5): use signal inputs
39
- set valueSetter(x) {
40
- this.value.set(x);
41
- }
42
- isDisabled(item) {
43
- return ((this.max() && this.max() < item) ||
44
- (this.min() && this.min() > item) ||
45
- this.disabledItemHandler(item));
46
- }
47
- getItemRange(item) {
48
- const value = this.value();
49
- const hoveredItem = this.hoveredItem();
50
- if (value instanceof TuiYear && value.year === item) {
51
- return 'active';
52
- }
53
- if (tuiIsNumber(value)) {
54
- return value === item ? 'active' : null;
55
- }
56
- if (!(value instanceof TuiMonthRange) && !(value instanceof TuiYear)) {
57
- return value?.find((day) => day.year === item) ? 'active' : null;
58
- }
59
- const hovered = this.isRangePicking() ? hoveredItem : null;
60
- const from = 'from' in value ? value.from?.year : value.year;
61
- const to = 'from' in value ? value.to.year : value.year;
62
- const min = Math.min(from, hovered ?? to);
63
- const max = Math.max(from, hovered ?? to);
64
- if (min === max && from === to && from === item) {
65
- return 'active';
66
- }
67
- if (min === item) {
68
- return 'start';
69
- }
70
- if (max === item) {
71
- return 'end';
72
- }
73
- return min < item && item < max ? 'middle' : null;
74
- }
75
- onItemHovered(hovered, item) {
76
- this.hoveredItem.set(hovered ? item : null);
77
- }
78
- get rows() {
79
- return Math.ceil((this.calculatedMax - this.calculatedMin) / ITEMS_IN_ROW);
80
- }
81
- scrollItemIntoView(item) {
82
- return this.initialItem() === item;
83
- }
84
- getItem(rowIndex, colIndex) {
85
- return rowIndex * ITEMS_IN_ROW + colIndex + this.calculatedMin;
86
- }
87
- itemIsToday(item) {
88
- return CURRENT_YEAR === item;
89
- }
90
- get calculatedMin() {
91
- const initial = this.initialItem() - LIMIT;
92
- const min = this.min() ?? MIN_YEAR;
93
- return min > initial ? min : initial;
94
- }
95
- get calculatedMax() {
96
- const initial = this.initialItem() + LIMIT;
97
- const max = this.max() ?? MAX_YEAR;
98
- return max < initial ? max + 1 : initial;
99
- }
100
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiCalendarYear, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
101
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "16.2.12", type: TuiCalendarYear, isStandalone: true, selector: "tui-calendar-year", inputs: { rangeMode: "rangeMode", disabledItemHandler: "disabledItemHandler", initialItemSetter: ["initialItem", "initialItemSetter", (x) => x ?? CURRENT_YEAR], minSetter: ["min", "minSetter", (x) => x ?? MIN_YEAR], maxSetter: ["max", "maxSetter", (x) => x ?? MAX_YEAR], valueSetter: ["value", "valueSetter"] }, outputs: { yearClick: "yearClick" }, host: { properties: { "class._picking": "isRangePicking()" } }, providers: [tuiAsAuxiliary(TuiCalendarYear)], ngImport: i0, template: "<div\n *tuiRepeatTimes=\"let rowIndex of rows\"\n automation-id=\"tui-calendar-year__row\"\n class=\"t-row\"\n>\n <ng-container *tuiRepeatTimes=\"let colIndex of 4\">\n <div\n *tuiLet=\"getItem(rowIndex, colIndex) as item\"\n automation-id=\"tui-calendar-year__cell\"\n class=\"t-cell\"\n [attr.data-range]=\"getItemRange(item)\"\n [class.t-cell_disabled]=\"isDisabled(item)\"\n [class.t-cell_today]=\"itemIsToday(item)\"\n [tuiScrollIntoView]=\"scrollItemIntoView(item)\"\n (click)=\"yearClick.emit(item)\"\n (tuiHoveredChange)=\"onItemHovered($event, item)\"\n >\n {{ item }}\n </div>\n </ng-container>\n</div>\n", styles: [".t-row{display:flex;justify-content:flex-start;font:var(--tui-font-text-m)}.t-row:first-child{justify-content:flex-end}.t-row:last-child{justify-content:flex-start}.t-cell{position:relative;display:flex;align-items:center;justify-content:center;line-height:2rem;isolation:isolate;cursor:pointer;overflow:hidden;border:.125rem solid transparent;box-sizing:border-box;-webkit-mask:linear-gradient(transparent calc(50% - 1rem),#000 calc(50% - 1rem),#000 calc(50% + 1rem),transparent calc(50% + 1rem));mask:linear-gradient(transparent calc(50% - 1rem),#000 calc(50% - 1rem),#000 calc(50% + 1rem),transparent calc(50% + 1rem))}.t-cell:first-child{border-inline-start-color:transparent!important}.t-cell:last-child{border-inline-end-color:transparent!important}.t-cell:before,.t-cell:after{position:absolute;top:0;left:0;bottom:0;right:0;content:\"\";z-index:-1;border-radius:var(--tui-radius-m)}.t-cell:after{-webkit-mask:url('data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 12 32\"><path d=\"M0.2856 0L0.6763 0C2.9265 0 4.9876 1.259 6.0147 3.2611L10.2442 11.5048C11.5301 14.0113 11.5683 16.9754 10.3472 19.5141L5.9766 28.6007C4.9772 30.6786 2.8754 32 0.5696 32H0.285645V0Z\"></path></svg>') right / .75rem 100% no-repeat,linear-gradient(#000,#000) left / calc(100% - .7rem) 100% no-repeat;mask:url('data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 12 32\"><path d=\"M0.2856 0L0.6763 0C2.9265 0 4.9876 1.259 6.0147 3.2611L10.2442 11.5048C11.5301 14.0113 11.5683 16.9754 10.3472 19.5141L5.9766 28.6007C4.9772 30.6786 2.8754 32 0.5696 32H0.285645V0Z\"></path></svg>') right / .75rem 100% no-repeat,linear-gradient(#000,#000) left / calc(100% - .7rem) 100% no-repeat}.t-cell[data-range]:before{background:var(--tui-background-neutral-1)}:host._picking .t-cell[data-range]:before{background:var(--tui-background-neutral-1-hover)}.t-cell[data-range=middle]{border-color:var(--tui-background-neutral-1)}:host._picking .t-cell[data-range=middle]{border-color:var(--tui-background-neutral-1-hover)}.t-cell[data-range=middle]:not(:first-child):before{border-top-left-radius:0;border-bottom-left-radius:0}.t-cell[data-range=middle]:not(:last-child):before{border-top-right-radius:0;border-bottom-right-radius:0}.t-cell[data-range=start]{border-inline-end-color:var(--tui-background-neutral-1);color:var(--tui-text-primary-on-accent-1)}:host._picking .t-cell[data-range=start]{border-inline-end-color:var(--tui-background-neutral-1-hover)}.t-cell[data-range=start]:not(:last-child):before{right:-1rem}.t-cell[data-range=start]:after{background:var(--tui-background-accent-1)}.t-cell[data-range=end]{border-inline-start-color:var(--tui-background-neutral-1);color:var(--tui-text-primary-on-accent-1)}:host._picking .t-cell[data-range=end]{border-inline-start-color:var(--tui-background-neutral-1-hover)}.t-cell[data-range=end]:not(:first-child):before{left:-1rem}.t-cell[data-range=end]:after{background:var(--tui-background-accent-1);transform:scaleX(-1)}.t-cell[data-range=active]{color:var(--tui-text-primary-on-accent-1)}.t-cell[data-range=active]:after{background:var(--tui-background-accent-1);-webkit-mask:none;mask:none}.t-cell_disabled{opacity:var(--tui-disabled-opacity);pointer-events:none}.t-cell_today{text-decoration:underline;text-underline-offset:.25rem}@media (hover: hover) and (pointer: fine){.t-cell:hover:not([data-range=start]):not([data-range=end]):before{background:var(--tui-background-neutral-1-hover)}.t-cell[data-range=start]:hover:after,.t-cell[data-range=end]:hover:after,.t-cell[data-range=active]:hover:after{background:var(--tui-background-accent-1-hover)}}:host{display:block;padding-inline-end:1rem;inline-size:15.75rem;padding:0 1.125rem}.t-cell{flex:1;border-block-start-width:.5rem;border-block-end-width:.5rem}\n"], dependencies: [{ kind: "directive", type: TuiHovered, selector: "[tuiHoveredChange]", outputs: ["tuiHoveredChange"] }, { kind: "directive", type: TuiLet, selector: "[tuiLet]", inputs: ["tuiLet"] }, { kind: "directive", type: TuiRepeatTimes, selector: "[tuiRepeatTimes][tuiRepeatTimesOf]", inputs: ["tuiRepeatTimesOf"] }, { kind: "directive", type: TuiScrollIntoView, selector: "[tuiScrollIntoView]", inputs: ["tuiScrollIntoView"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
102
- }
103
- export { TuiCalendarYear };
104
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiCalendarYear, decorators: [{
105
- type: Component,
106
- args: [{ standalone: true, selector: 'tui-calendar-year', imports: [TuiHovered, TuiLet, TuiRepeatTimes, TuiScrollIntoView], changeDetection: ChangeDetectionStrategy.OnPush, providers: [tuiAsAuxiliary(TuiCalendarYear)], host: {
107
- '[class._picking]': 'isRangePicking()',
108
- }, template: "<div\n *tuiRepeatTimes=\"let rowIndex of rows\"\n automation-id=\"tui-calendar-year__row\"\n class=\"t-row\"\n>\n <ng-container *tuiRepeatTimes=\"let colIndex of 4\">\n <div\n *tuiLet=\"getItem(rowIndex, colIndex) as item\"\n automation-id=\"tui-calendar-year__cell\"\n class=\"t-cell\"\n [attr.data-range]=\"getItemRange(item)\"\n [class.t-cell_disabled]=\"isDisabled(item)\"\n [class.t-cell_today]=\"itemIsToday(item)\"\n [tuiScrollIntoView]=\"scrollItemIntoView(item)\"\n (click)=\"yearClick.emit(item)\"\n (tuiHoveredChange)=\"onItemHovered($event, item)\"\n >\n {{ item }}\n </div>\n </ng-container>\n</div>\n", styles: [".t-row{display:flex;justify-content:flex-start;font:var(--tui-font-text-m)}.t-row:first-child{justify-content:flex-end}.t-row:last-child{justify-content:flex-start}.t-cell{position:relative;display:flex;align-items:center;justify-content:center;line-height:2rem;isolation:isolate;cursor:pointer;overflow:hidden;border:.125rem solid transparent;box-sizing:border-box;-webkit-mask:linear-gradient(transparent calc(50% - 1rem),#000 calc(50% - 1rem),#000 calc(50% + 1rem),transparent calc(50% + 1rem));mask:linear-gradient(transparent calc(50% - 1rem),#000 calc(50% - 1rem),#000 calc(50% + 1rem),transparent calc(50% + 1rem))}.t-cell:first-child{border-inline-start-color:transparent!important}.t-cell:last-child{border-inline-end-color:transparent!important}.t-cell:before,.t-cell:after{position:absolute;top:0;left:0;bottom:0;right:0;content:\"\";z-index:-1;border-radius:var(--tui-radius-m)}.t-cell:after{-webkit-mask:url('data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 12 32\"><path d=\"M0.2856 0L0.6763 0C2.9265 0 4.9876 1.259 6.0147 3.2611L10.2442 11.5048C11.5301 14.0113 11.5683 16.9754 10.3472 19.5141L5.9766 28.6007C4.9772 30.6786 2.8754 32 0.5696 32H0.285645V0Z\"></path></svg>') right / .75rem 100% no-repeat,linear-gradient(#000,#000) left / calc(100% - .7rem) 100% no-repeat;mask:url('data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 12 32\"><path d=\"M0.2856 0L0.6763 0C2.9265 0 4.9876 1.259 6.0147 3.2611L10.2442 11.5048C11.5301 14.0113 11.5683 16.9754 10.3472 19.5141L5.9766 28.6007C4.9772 30.6786 2.8754 32 0.5696 32H0.285645V0Z\"></path></svg>') right / .75rem 100% no-repeat,linear-gradient(#000,#000) left / calc(100% - .7rem) 100% no-repeat}.t-cell[data-range]:before{background:var(--tui-background-neutral-1)}:host._picking .t-cell[data-range]:before{background:var(--tui-background-neutral-1-hover)}.t-cell[data-range=middle]{border-color:var(--tui-background-neutral-1)}:host._picking .t-cell[data-range=middle]{border-color:var(--tui-background-neutral-1-hover)}.t-cell[data-range=middle]:not(:first-child):before{border-top-left-radius:0;border-bottom-left-radius:0}.t-cell[data-range=middle]:not(:last-child):before{border-top-right-radius:0;border-bottom-right-radius:0}.t-cell[data-range=start]{border-inline-end-color:var(--tui-background-neutral-1);color:var(--tui-text-primary-on-accent-1)}:host._picking .t-cell[data-range=start]{border-inline-end-color:var(--tui-background-neutral-1-hover)}.t-cell[data-range=start]:not(:last-child):before{right:-1rem}.t-cell[data-range=start]:after{background:var(--tui-background-accent-1)}.t-cell[data-range=end]{border-inline-start-color:var(--tui-background-neutral-1);color:var(--tui-text-primary-on-accent-1)}:host._picking .t-cell[data-range=end]{border-inline-start-color:var(--tui-background-neutral-1-hover)}.t-cell[data-range=end]:not(:first-child):before{left:-1rem}.t-cell[data-range=end]:after{background:var(--tui-background-accent-1);transform:scaleX(-1)}.t-cell[data-range=active]{color:var(--tui-text-primary-on-accent-1)}.t-cell[data-range=active]:after{background:var(--tui-background-accent-1);-webkit-mask:none;mask:none}.t-cell_disabled{opacity:var(--tui-disabled-opacity);pointer-events:none}.t-cell_today{text-decoration:underline;text-underline-offset:.25rem}@media (hover: hover) and (pointer: fine){.t-cell:hover:not([data-range=start]):not([data-range=end]):before{background:var(--tui-background-neutral-1-hover)}.t-cell[data-range=start]:hover:after,.t-cell[data-range=end]:hover:after,.t-cell[data-range=active]:hover:after{background:var(--tui-background-accent-1-hover)}}:host{display:block;padding-inline-end:1rem;inline-size:15.75rem;padding:0 1.125rem}.t-cell{flex:1;border-block-start-width:.5rem;border-block-end-width:.5rem}\n"] }]
109
- }], propDecorators: { rangeMode: [{
110
- type: Input
111
- }], disabledItemHandler: [{
112
- type: Input
113
- }], yearClick: [{
114
- type: Output
115
- }], initialItemSetter: [{
116
- type: Input,
117
- args: [{ alias: 'initialItem', transform: (x) => x ?? CURRENT_YEAR }]
118
- }], minSetter: [{
119
- type: Input,
120
- args: [{ alias: 'min', transform: (x) => x ?? MIN_YEAR }]
121
- }], maxSetter: [{
122
- type: Input,
123
- args: [{ alias: 'max', transform: (x) => x ?? MAX_YEAR }]
124
- }], valueSetter: [{
125
- type: Input,
126
- args: ['value']
127
- }] } });
128
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FsZW5kYXIteWVhci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL2NvbXBvbmVudHMvY2FsZW5kYXIvY2FsZW5kYXIteWVhci5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL2NvbXBvbmVudHMvY2FsZW5kYXIvY2FsZW5kYX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Jvd0luZGV4IG9mIHJvd3NcIlxuICAgIGF1dG9tYXRpb24taWQ9XCJ0dWktY2FsZW5kYXIteWVhcl9fcm93XCJcbiAgICBjbGFzcz1cInQtcm93XCJcbj5cbiAgICA8bmctY29udGFpbmVyICp0dWlSZXBlYXRUaW1lcz1cImxldCBjb2xJbmRleCBvZiA0XCI+XG4gICAgICAgIDxkaXZcbiAgICAgICAgICAgICp0dWlMZXQ9XCJnZXRJdGVtKHJvd0luZGV4LCBjb2xJbmRleCkgYXMgaXRlbVwiXG4gICAgICAgICAgICBhdXRvbWF0aW9uLWlkPVwidHVpLWNhbGVuZGFyLXllYXJfX2NlbGxcIlxuICAgICAgICAgICAgY2xhc3M9XCJ0LWNlbGxcIlxuICAgICAgICAgICAgW2F0dHIuZGF0YS1yYW5nZV09XCJnZXRJdGVtUmFuZ2UoaXRlbSlcIlxuICAgICAgICAgICAgW2NsYXNzLnQtY2VsbF9kaXNhYmxlZF09XCJpc0Rpc2FibGVkKGl0ZW0pXCJcbiAgICAgICAgICAgIFtjbGFzcy50LWNlbGxfdG9kYXldPVwiaXRlbUlzVG9kYXkoaXRlbSlcIlxuICAgICAgICAgICAgW3R1aVNjcm9sbEludG9WaWV3XT1cInNjcm9sbEl0ZW1JbnRvVmlldyhpdGVtKVwiXG4gICAgICAgICAgICAoY2xpY2spPVwieWVhckNsaWNrLmVtaXQoaXRlbSlcIlxuICAgICAgICAgICAgKHR1aUhvdmVyZWRDaGFuZ2UpPVwib25JdGVtSG92ZXJlZCgkZXZlbnQsIGl0ZW0pXCJcbiAgICAgICAgPlxuICAgICAgICAgICAge3sgaXRlbSB9fVxuICAgICAgICA8L2Rpdj5cbiAgICA8L25nLWNvbnRhaW5lcj5cbjwvZGl2PlxuIl19
@@ -1,147 +0,0 @@
1
- import { NgIf } from '@angular/common';
2
- import { ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, inject, Input, Output, } from '@angular/core';
3
- import { TUI_FIRST_DAY, TUI_LAST_DAY, TUI_LAST_DISPLAYED_DAY, TuiDay, TuiMonth, } from '@taiga-ui/cdk/date-time';
4
- import { TuiMapperPipe } from '@taiga-ui/cdk/pipes/mapper';
5
- import { tuiNullableSame } from '@taiga-ui/cdk/utils/miscellaneous';
6
- import { TuiScrollbar } from '@taiga-ui/core/components/scrollbar';
7
- import { TUI_ITEMS_HANDLERS } from '@taiga-ui/core/directives';
8
- import { tuiAsAuxiliary } from '@taiga-ui/core/tokens';
9
- import { Subject } from 'rxjs';
10
- import { TuiCalendarSheet } from './calendar-sheet.component';
11
- import { TUI_CALENDAR_SHEET_OPTIONS } from './calendar-sheet.options';
12
- import { TuiCalendarSpin } from './calendar-spin.component';
13
- import { TuiCalendarYear } from './calendar-year.component';
14
- import * as i0 from "@angular/core";
15
- class TuiCalendar {
16
- constructor() {
17
- this.cdr = inject(ChangeDetectorRef);
18
- this.day = null;
19
- this.view = 'month';
20
- this.options = inject(TUI_CALENDAR_SHEET_OPTIONS);
21
- this.month = TuiMonth.currentLocal();
22
- this.disabledItemHandler = inject(TUI_ITEMS_HANDLERS).disabledItemHandler();
23
- this.min = TUI_FIRST_DAY;
24
- this.max = TUI_LAST_DAY;
25
- this.minViewedMonth = TUI_FIRST_DAY;
26
- this.maxViewedMonth = TUI_LAST_DAY;
27
- this.hoveredItem = null;
28
- this.showAdjacent = true;
29
- this.markerHandler = null;
30
- this.dayClick = new EventEmitter();
31
- this.monthChange = new EventEmitter();
32
- this.hoveredItemChange = new EventEmitter();
33
- /** @deprecated for private use only until Calendars are refactored */
34
- this.valueChange = new Subject();
35
- this.disabledItemHandlerMapper = (disabledItemHandler, min, max) => (item) => item.dayBefore(min) || item.dayAfter(max) || disabledItemHandler(item);
36
- }
37
- set value(value) {
38
- this.cdr.markForCheck();
39
- this.day = value;
40
- if (this.showAdjacent &&
41
- value instanceof TuiDay &&
42
- value.daySameOrBefore(TUI_LAST_DISPLAYED_DAY)) {
43
- this.month = value;
44
- }
45
- }
46
- set initialView(view) {
47
- this.view = view;
48
- }
49
- get value() {
50
- return this.day;
51
- }
52
- onPaginationValueChange(month) {
53
- this.updateViewedMonth(month);
54
- }
55
- onDayClick(day) {
56
- this.dayClick.emit(day);
57
- this.valueChange.next(day);
58
- }
59
- onHoveredItemChange(day) {
60
- this.updateHoveredDay(day);
61
- }
62
- get computedMin() {
63
- return this.min ?? TUI_FIRST_DAY;
64
- }
65
- get computedMax() {
66
- return this.max ?? TUI_LAST_DAY;
67
- }
68
- get computedMinViewedMonth() {
69
- const min = this.computedMin;
70
- const minViewed = this.minViewedMonth ?? TUI_FIRST_DAY;
71
- return minViewed.monthSameOrAfter(min) ? minViewed : min;
72
- }
73
- get computedMaxViewedMonth() {
74
- const max = this.computedMax;
75
- const maxViewed = this.maxViewedMonth ?? TUI_LAST_DAY;
76
- return maxViewed.monthSameOrBefore(max) ? maxViewed : max;
77
- }
78
- get isInYearView() {
79
- return this.view === 'year';
80
- }
81
- onPaginationYearClick() {
82
- this.view = 'year';
83
- }
84
- onPickerYearClick(year) {
85
- this.view = 'month';
86
- this.updateViewedMonth(new TuiMonth(year, this.month.month));
87
- }
88
- updateViewedMonth(month) {
89
- if (this.month.monthSame(month)) {
90
- return;
91
- }
92
- this.month = month;
93
- this.monthChange.emit(month);
94
- }
95
- updateHoveredDay(day) {
96
- if (tuiNullableSame(this.hoveredItem, day, (a, b) => a.daySame(b))) {
97
- return;
98
- }
99
- this.hoveredItem = day;
100
- this.hoveredItemChange.emit(day);
101
- }
102
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiCalendar, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
103
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiCalendar, isStandalone: true, selector: "tui-calendar", inputs: { month: "month", disabledItemHandler: "disabledItemHandler", min: "min", max: "max", minViewedMonth: "minViewedMonth", maxViewedMonth: "maxViewedMonth", hoveredItem: "hoveredItem", showAdjacent: "showAdjacent", markerHandler: "markerHandler", value: "value", initialView: "initialView" }, outputs: { dayClick: "dayClick", monthChange: "monthChange", hoveredItemChange: "hoveredItemChange" }, host: { listeners: { "pointerdown.prevent.zoneless": "0" } }, providers: [tuiAsAuxiliary(TuiCalendar)], ngImport: i0, template: "<tui-scrollbar\n *ngIf=\"isInYearView; else calendar\"\n automation-id=\"tui-calendar__scrollbar\"\n class=\"t-scrollbar\"\n>\n <tui-calendar-year\n automation-id=\"tui-calendar__year\"\n [initialItem]=\"month.year\"\n [max]=\"computedMax.year\"\n [min]=\"computedMin.year\"\n [rangeMode]=\"options.rangeMode\"\n [value]=\"value\"\n (yearClick)=\"onPickerYearClick($event)\"\n />\n</tui-scrollbar>\n<ng-template #calendar>\n <tui-calendar-spin\n automation-id=\"tui-calendar__pagination\"\n class=\"t-pagination\"\n [max]=\"computedMaxViewedMonth\"\n [min]=\"computedMinViewedMonth\"\n [value]=\"month\"\n (valueChange)=\"onPaginationValueChange($event)\"\n (yearClick)=\"onPaginationYearClick()\"\n />\n <tui-calendar-sheet\n automation-id=\"tui-calendar__calendar\"\n [disabledItemHandler]=\"disabledItemHandler | tuiMapper: disabledItemHandlerMapper : computedMin : computedMax\"\n [hoveredItem]=\"hoveredItem\"\n [markerHandler]=\"markerHandler\"\n [month]=\"month\"\n [showAdjacent]=\"showAdjacent\"\n [value]=\"value\"\n (dayClick)=\"onDayClick($event)\"\n (hoveredItemChange)=\"onHoveredItemChange($event)\"\n />\n</ng-template>\n", styles: [":host{display:block;min-block-size:20.25rem;inline-size:18rem;padding:1rem 1.125rem;box-sizing:border-box;flex-shrink:0}:host-context(tui-dropdown-mobile){inline-size:100%}tui-calendar-year{padding:0}.t-scrollbar{block-size:18.25rem;inline-size:calc(100% + 1rem)}.t-pagination{margin-block-end:1rem}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: TuiCalendarSheet, selector: "tui-calendar-sheet", inputs: ["month", "disabledItemHandler", "markerHandler", "value", "hoveredItem", "showAdjacent", "single"], outputs: ["hoveredItemChange", "dayClick"] }, { kind: "component", type: TuiCalendarSpin, selector: "tui-calendar-spin", inputs: ["value", "min", "max"], outputs: ["valueChange", "yearClick"] }, { kind: "component", type: TuiCalendarYear, selector: "tui-calendar-year", inputs: ["rangeMode", "disabledItemHandler", "initialItem", "min", "max", "value"], outputs: ["yearClick"] }, { kind: "pipe", type: TuiMapperPipe, name: "tuiMapper" }, { kind: "component", type: TuiScrollbar, selector: "tui-scrollbar", inputs: ["hidden"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
104
- }
105
- export { TuiCalendar };
106
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiCalendar, decorators: [{
107
- type: Component,
108
- args: [{ standalone: true, selector: 'tui-calendar', imports: [
109
- NgIf,
110
- TuiCalendarSheet,
111
- TuiCalendarSpin,
112
- TuiCalendarYear,
113
- TuiMapperPipe,
114
- TuiScrollbar,
115
- ], changeDetection: ChangeDetectionStrategy.OnPush, providers: [tuiAsAuxiliary(TuiCalendar)], host: {
116
- '(pointerdown.prevent.zoneless)': '0',
117
- }, template: "<tui-scrollbar\n *ngIf=\"isInYearView; else calendar\"\n automation-id=\"tui-calendar__scrollbar\"\n class=\"t-scrollbar\"\n>\n <tui-calendar-year\n automation-id=\"tui-calendar__year\"\n [initialItem]=\"month.year\"\n [max]=\"computedMax.year\"\n [min]=\"computedMin.year\"\n [rangeMode]=\"options.rangeMode\"\n [value]=\"value\"\n (yearClick)=\"onPickerYearClick($event)\"\n />\n</tui-scrollbar>\n<ng-template #calendar>\n <tui-calendar-spin\n automation-id=\"tui-calendar__pagination\"\n class=\"t-pagination\"\n [max]=\"computedMaxViewedMonth\"\n [min]=\"computedMinViewedMonth\"\n [value]=\"month\"\n (valueChange)=\"onPaginationValueChange($event)\"\n (yearClick)=\"onPaginationYearClick()\"\n />\n <tui-calendar-sheet\n automation-id=\"tui-calendar__calendar\"\n [disabledItemHandler]=\"disabledItemHandler | tuiMapper: disabledItemHandlerMapper : computedMin : computedMax\"\n [hoveredItem]=\"hoveredItem\"\n [markerHandler]=\"markerHandler\"\n [month]=\"month\"\n [showAdjacent]=\"showAdjacent\"\n [value]=\"value\"\n (dayClick)=\"onDayClick($event)\"\n (hoveredItemChange)=\"onHoveredItemChange($event)\"\n />\n</ng-template>\n", styles: [":host{display:block;min-block-size:20.25rem;inline-size:18rem;padding:1rem 1.125rem;box-sizing:border-box;flex-shrink:0}:host-context(tui-dropdown-mobile){inline-size:100%}tui-calendar-year{padding:0}.t-scrollbar{block-size:18.25rem;inline-size:calc(100% + 1rem)}.t-pagination{margin-block-end:1rem}\n"] }]
118
- }], propDecorators: { month: [{
119
- type: Input
120
- }], disabledItemHandler: [{
121
- type: Input
122
- }], min: [{
123
- type: Input
124
- }], max: [{
125
- type: Input
126
- }], minViewedMonth: [{
127
- type: Input
128
- }], maxViewedMonth: [{
129
- type: Input
130
- }], hoveredItem: [{
131
- type: Input
132
- }], showAdjacent: [{
133
- type: Input
134
- }], markerHandler: [{
135
- type: Input
136
- }], dayClick: [{
137
- type: Output
138
- }], monthChange: [{
139
- type: Output
140
- }], hoveredItemChange: [{
141
- type: Output
142
- }], value: [{
143
- type: Input
144
- }], initialView: [{
145
- type: Input
146
- }] } });
147
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FsZW5kYXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29yZS9jb21wb25lbnRzL2NhbGVuZGFyL2NhbGVuZGFyLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmUvY29tcG9uZW50cy9jYWxlbmRhci9jYWxlbmRhci50ZW1wbGF0ZS5odG1sIl0sIm5hb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2xpY2spPVwib25QYWdpbmF0aW9uWWVhckNsaWNrKClcIlxuICAgIC8+XG4gICAgPHR1aS1jYWxlbmRhci1zaGVldFxuICAgICAgICBhdXRvbWF0aW9uLWlkPVwidHVpLWNhbGVuZGFyX19jYWxlbmRhclwiXG4gICAgICAgIFtkaXNhYmxlZEl0ZW1IYW5kbGVyXT1cImRpc2FibGVkSXRlbUhhbmRsZXIgfCB0dWlNYXBwZXI6IGRpc2FibGVkSXRlbUhhbmRsZXJNYXBwZXIgOiBjb21wdXRlZE1pbiA6IGNvbXB1dGVkTWF4XCJcbiAgICAgICAgW2hvdmVyZWRJdGVtXT1cImhvdmVyZWRJdGVtXCJcbiAgICAgICAgW21hcmtlckhhbmRsZXJdPVwibWFya2VySGFuZGxlclwiXG4gICAgICAgIFttb250aF09XCJtb250aFwiXG4gICAgICAgIFtzaG93QWRqYWNlbnRdPVwic2hvd0FkamFjZW50XCJcbiAgICAgICAgW3ZhbHVlXT1cInZhbHVlXCJcbiAgICAgICAgKGRheUNsaWNrKT1cIm9uRGF5Q2xpY2soJGV2ZW50KVwiXG4gICAgICAgIChob3ZlcmVkSXRlbUNoYW5nZSk9XCJvbkhvdmVyZWRJdGVtQ2hhbmdlKCRldmVudClcIlxuICAgIC8+XG48L25nLXRlbXBsYXRlPlxuIl19
@@ -1,6 +0,0 @@
1
- export * from './calendar.component';
2
- export * from './calendar-sheet.component';
3
- export * from './calendar-sheet.options';
4
- export * from './calendar-spin.component';
5
- export * from './calendar-year.component';
6
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL2NvbXBvbmVudHMvY2FsZW5kYXIvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxzQkFBc0IsQ0FBQztBQUNyQyxjQUFjLDRCQUE0QixDQUFDO0FBQzNDLGNBQWMsMEJBQTBCLENBQUM7QUFDekMsY0FBYywyQkFBMkIsQ0FBQztBQUMxQyxjQUFjLDJCQUEyQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9jYWxlbmRhci5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9jYWxlbmRhci1zaGVldC5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9jYWxlbmRhci1zaGVldC5vcHRpb25zJztcbmV4cG9ydCAqIGZyb20gJy4vY2FsZW5kYXItc3Bpbi5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9jYWxlbmRhci15ZWFyLmNvbXBvbmVudCc7XG4iXX0=
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './index';
5
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFpZ2EtdWktY29yZS1jb21wb25lbnRzLWNhbGVuZGFyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29yZS9jb21wb25lbnRzL2NhbGVuZGFyL3RhaWdhLXVpLWNvcmUtY29tcG9uZW50cy1jYWxlbmRhci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcbiJdfQ==