@taiga-ui/kit 3.60.0 → 3.61.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 (338) hide show
  1. package/bundles/taiga-ui-kit-abstract.umd.js +1 -1
  2. package/bundles/taiga-ui-kit-abstract.umd.js.map +1 -1
  3. package/bundles/taiga-ui-kit-components-accordion.umd.js +628 -774
  4. package/bundles/taiga-ui-kit-components-accordion.umd.js.map +1 -1
  5. package/bundles/taiga-ui-kit-components-action.umd.js +452 -598
  6. package/bundles/taiga-ui-kit-components-action.umd.js.map +1 -1
  7. package/bundles/taiga-ui-kit-components-arrow.umd.js +2 -2
  8. package/bundles/taiga-ui-kit-components-arrow.umd.js.map +1 -1
  9. package/bundles/taiga-ui-kit-components-avatar.umd.js +494 -640
  10. package/bundles/taiga-ui-kit-components-avatar.umd.js.map +1 -1
  11. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js +417 -563
  12. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js.map +1 -1
  13. package/bundles/taiga-ui-kit-components-calendar-month.umd.js +601 -747
  14. package/bundles/taiga-ui-kit-components-calendar-month.umd.js.map +1 -1
  15. package/bundles/taiga-ui-kit-components-calendar-range.umd.js +572 -718
  16. package/bundles/taiga-ui-kit-components-calendar-range.umd.js.map +1 -1
  17. package/bundles/taiga-ui-kit-components-carousel.umd.js +675 -821
  18. package/bundles/taiga-ui-kit-components-carousel.umd.js.map +1 -1
  19. package/bundles/taiga-ui-kit-components-checkbox-block.umd.js +499 -645
  20. package/bundles/taiga-ui-kit-components-checkbox-block.umd.js.map +1 -1
  21. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js +439 -585
  22. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js.map +1 -1
  23. package/bundles/taiga-ui-kit-components-checkbox.umd.js +462 -608
  24. package/bundles/taiga-ui-kit-components-checkbox.umd.js.map +1 -1
  25. package/bundles/taiga-ui-kit-components-combo-box.umd.js +688 -834
  26. package/bundles/taiga-ui-kit-components-combo-box.umd.js.map +1 -1
  27. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js +510 -656
  28. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js.map +1 -1
  29. package/bundles/taiga-ui-kit-components-elastic-container.umd.js +441 -587
  30. package/bundles/taiga-ui-kit-components-elastic-container.umd.js.map +1 -1
  31. package/bundles/taiga-ui-kit-components-files.umd.js +662 -808
  32. package/bundles/taiga-ui-kit-components-files.umd.js.map +1 -1
  33. package/bundles/taiga-ui-kit-components-filter.umd.js +461 -607
  34. package/bundles/taiga-ui-kit-components-filter.umd.js.map +1 -1
  35. package/bundles/taiga-ui-kit-components-input-copy.umd.js +554 -700
  36. package/bundles/taiga-ui-kit-components-input-copy.umd.js.map +1 -1
  37. package/bundles/taiga-ui-kit-components-input-count.umd.js +663 -809
  38. package/bundles/taiga-ui-kit-components-input-count.umd.js.map +1 -1
  39. package/bundles/taiga-ui-kit-components-input-date-multi.umd.js +703 -849
  40. package/bundles/taiga-ui-kit-components-input-date-multi.umd.js.map +1 -1
  41. package/bundles/taiga-ui-kit-components-input-date-range.umd.js +827 -973
  42. package/bundles/taiga-ui-kit-components-input-date-range.umd.js.map +1 -1
  43. package/bundles/taiga-ui-kit-components-input-date-time.umd.js +880 -1026
  44. package/bundles/taiga-ui-kit-components-input-date-time.umd.js.map +1 -1
  45. package/bundles/taiga-ui-kit-components-input-date.umd.js +830 -976
  46. package/bundles/taiga-ui-kit-components-input-date.umd.js.map +1 -1
  47. package/bundles/taiga-ui-kit-components-input-files.umd.js +829 -975
  48. package/bundles/taiga-ui-kit-components-input-files.umd.js.map +1 -1
  49. package/bundles/taiga-ui-kit-components-input-inline.umd.js +466 -612
  50. package/bundles/taiga-ui-kit-components-input-inline.umd.js.map +1 -1
  51. package/bundles/taiga-ui-kit-components-input-month-range.umd.js +609 -755
  52. package/bundles/taiga-ui-kit-components-input-month-range.umd.js.map +1 -1
  53. package/bundles/taiga-ui-kit-components-input-month.umd.js +642 -788
  54. package/bundles/taiga-ui-kit-components-input-month.umd.js.map +1 -1
  55. package/bundles/taiga-ui-kit-components-input-number.umd.js +795 -941
  56. package/bundles/taiga-ui-kit-components-input-number.umd.js.map +1 -1
  57. package/bundles/taiga-ui-kit-components-input-password.umd.js +574 -720
  58. package/bundles/taiga-ui-kit-components-input-password.umd.js.map +1 -1
  59. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js +665 -811
  60. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js.map +1 -1
  61. package/bundles/taiga-ui-kit-components-input-phone.umd.js +767 -913
  62. package/bundles/taiga-ui-kit-components-input-phone.umd.js.map +1 -1
  63. package/bundles/taiga-ui-kit-components-input-range.umd.js +650 -796
  64. package/bundles/taiga-ui-kit-components-input-range.umd.js.map +1 -1
  65. package/bundles/taiga-ui-kit-components-input-slider.umd.js +591 -737
  66. package/bundles/taiga-ui-kit-components-input-slider.umd.js.map +1 -1
  67. package/bundles/taiga-ui-kit-components-input-tag.umd.js +956 -1102
  68. package/bundles/taiga-ui-kit-components-input-tag.umd.js.map +1 -1
  69. package/bundles/taiga-ui-kit-components-input-time.umd.js +875 -1021
  70. package/bundles/taiga-ui-kit-components-input-time.umd.js.map +1 -1
  71. package/bundles/taiga-ui-kit-components-input-year.umd.js +560 -706
  72. package/bundles/taiga-ui-kit-components-input-year.umd.js.map +1 -1
  73. package/bundles/taiga-ui-kit-components-input.umd.js +515 -661
  74. package/bundles/taiga-ui-kit-components-input.umd.js.map +1 -1
  75. package/bundles/taiga-ui-kit-components-items-with-more.umd.js +543 -689
  76. package/bundles/taiga-ui-kit-components-items-with-more.umd.js.map +1 -1
  77. package/bundles/taiga-ui-kit-components-line-clamp.umd.js +596 -742
  78. package/bundles/taiga-ui-kit-components-line-clamp.umd.js.map +1 -1
  79. package/bundles/taiga-ui-kit-components-multi-select-option.umd.js +398 -544
  80. package/bundles/taiga-ui-kit-components-multi-select-option.umd.js.map +1 -1
  81. package/bundles/taiga-ui-kit-components-multi-select.umd.js +1191 -1337
  82. package/bundles/taiga-ui-kit-components-multi-select.umd.js.map +1 -1
  83. package/bundles/taiga-ui-kit-components-pagination.umd.js +664 -810
  84. package/bundles/taiga-ui-kit-components-pagination.umd.js.map +1 -1
  85. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js +10 -156
  86. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js.map +1 -1
  87. package/bundles/taiga-ui-kit-components-progress.umd.js +6 -152
  88. package/bundles/taiga-ui-kit-components-progress.umd.js.map +1 -1
  89. package/bundles/taiga-ui-kit-components-push.umd.js +14 -160
  90. package/bundles/taiga-ui-kit-components-push.umd.js.map +1 -1
  91. package/bundles/taiga-ui-kit-components-radio-block.umd.js +499 -645
  92. package/bundles/taiga-ui-kit-components-radio-block.umd.js.map +1 -1
  93. package/bundles/taiga-ui-kit-components-radio-labeled.umd.js +470 -616
  94. package/bundles/taiga-ui-kit-components-radio-labeled.umd.js.map +1 -1
  95. package/bundles/taiga-ui-kit-components-radio-list.umd.js +482 -628
  96. package/bundles/taiga-ui-kit-components-radio-list.umd.js.map +1 -1
  97. package/bundles/taiga-ui-kit-components-radio.umd.js +543 -689
  98. package/bundles/taiga-ui-kit-components-radio.umd.js.map +1 -1
  99. package/bundles/taiga-ui-kit-components-range.umd.js +665 -811
  100. package/bundles/taiga-ui-kit-components-range.umd.js.map +1 -1
  101. package/bundles/taiga-ui-kit-components-rating.umd.js +500 -646
  102. package/bundles/taiga-ui-kit-components-rating.umd.js.map +1 -1
  103. package/bundles/taiga-ui-kit-components-routable-dialog.umd.js +434 -580
  104. package/bundles/taiga-ui-kit-components-routable-dialog.umd.js.map +1 -1
  105. package/bundles/taiga-ui-kit-components-select.umd.js +787 -933
  106. package/bundles/taiga-ui-kit-components-select.umd.js.map +1 -1
  107. package/bundles/taiga-ui-kit-components-slider.umd.js +797 -943
  108. package/bundles/taiga-ui-kit-components-slider.umd.js.map +1 -1
  109. package/bundles/taiga-ui-kit-components-stepper.umd.js +623 -769
  110. package/bundles/taiga-ui-kit-components-stepper.umd.js.map +1 -1
  111. package/bundles/taiga-ui-kit-components-tabs.umd.js +12 -158
  112. package/bundles/taiga-ui-kit-components-tabs.umd.js.map +1 -1
  113. package/bundles/taiga-ui-kit-components-tag.umd.js +2 -2
  114. package/bundles/taiga-ui-kit-components-tag.umd.js.map +1 -1
  115. package/bundles/taiga-ui-kit-components-textarea.umd.js +820 -966
  116. package/bundles/taiga-ui-kit-components-textarea.umd.js.map +1 -1
  117. package/bundles/taiga-ui-kit-components-tiles.umd.js +693 -839
  118. package/bundles/taiga-ui-kit-components-tiles.umd.js.map +1 -1
  119. package/bundles/taiga-ui-kit-components-toggle.umd.js +565 -711
  120. package/bundles/taiga-ui-kit-components-toggle.umd.js.map +1 -1
  121. package/bundles/taiga-ui-kit-components-tree.umd.js +4 -4
  122. package/bundles/taiga-ui-kit-components-tree.umd.js.map +1 -1
  123. package/bundles/taiga-ui-kit-constants.umd.js +24 -170
  124. package/bundles/taiga-ui-kit-constants.umd.js.map +1 -1
  125. package/bundles/taiga-ui-kit-directives-data-list-dropdown-manager.umd.js +491 -637
  126. package/bundles/taiga-ui-kit-directives-data-list-dropdown-manager.umd.js.map +1 -1
  127. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js +459 -605
  128. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js.map +1 -1
  129. package/bundles/taiga-ui-kit-directives-unmask-handler.umd.js +394 -540
  130. package/bundles/taiga-ui-kit-directives-unmask-handler.umd.js.map +1 -1
  131. package/bundles/taiga-ui-kit-pipes-field-error.umd.js +547 -693
  132. package/bundles/taiga-ui-kit-pipes-field-error.umd.js.map +1 -1
  133. package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.js +470 -616
  134. package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.js.map +1 -1
  135. package/bundles/taiga-ui-kit-pipes-iso-to-country-code.umd.js +1 -1
  136. package/bundles/taiga-ui-kit-pipes-iso-to-country-code.umd.js.map +1 -1
  137. package/bundles/taiga-ui-kit-pipes-sort-countries.umd.js +378 -524
  138. package/bundles/taiga-ui-kit-pipes-sort-countries.umd.js.map +1 -1
  139. package/bundles/taiga-ui-kit-pipes-stringify-content.umd.js +1 -1
  140. package/bundles/taiga-ui-kit-pipes-stringify-content.umd.js.map +1 -1
  141. package/bundles/taiga-ui-kit-pipes-stringify.umd.js +2 -2
  142. package/bundles/taiga-ui-kit-pipes-stringify.umd.js.map +1 -1
  143. package/bundles/taiga-ui-kit-pipes-to-country-code.umd.js +2 -2
  144. package/bundles/taiga-ui-kit-pipes-to-country-code.umd.js.map +1 -1
  145. package/bundles/taiga-ui-kit-pipes-to-year.umd.js +1 -1
  146. package/bundles/taiga-ui-kit-pipes-to-year.umd.js.map +1 -1
  147. package/bundles/taiga-ui-kit-providers.umd.js +3 -3
  148. package/bundles/taiga-ui-kit-providers.umd.js.map +1 -1
  149. package/bundles/taiga-ui-kit-services.umd.js +1 -1
  150. package/bundles/taiga-ui-kit-services.umd.js.map +1 -1
  151. package/bundles/taiga-ui-kit-tokens.umd.js +243 -243
  152. package/bundles/taiga-ui-kit-tokens.umd.js.map +1 -1
  153. package/bundles/taiga-ui-kit-utils-files.umd.js +2 -2
  154. package/bundles/taiga-ui-kit-utils-files.umd.js.map +1 -1
  155. package/bundles/taiga-ui-kit-utils-format.umd.js +2 -2
  156. package/bundles/taiga-ui-kit-utils-format.umd.js.map +1 -1
  157. package/bundles/taiga-ui-kit-utils-mask.umd.js +17 -163
  158. package/bundles/taiga-ui-kit-utils-mask.umd.js.map +1 -1
  159. package/bundles/taiga-ui-kit-utils-math.umd.js +8 -154
  160. package/bundles/taiga-ui-kit-utils-math.umd.js.map +1 -1
  161. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js +13 -159
  162. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js.map +1 -1
  163. package/bundles/taiga-ui-kit-utils-phone.umd.js +2 -2
  164. package/bundles/taiga-ui-kit-utils-phone.umd.js.map +1 -1
  165. package/bundles/taiga-ui-kit-validators.umd.js +1 -1
  166. package/bundles/taiga-ui-kit-validators.umd.js.map +1 -1
  167. package/esm2015/abstract/abstract-native-select.js +2 -2
  168. package/esm2015/components/arrow/arrow.options.js +3 -3
  169. package/esm2015/components/avatar/avatar.options.js +2 -2
  170. package/esm2015/components/breadcrumbs/breadcrumbs.options.js +4 -4
  171. package/esm2015/components/combo-box/combo-box.component.js +2 -2
  172. package/esm2015/components/input-copy/input-copy.options.js +5 -5
  173. package/esm2015/components/input-count/input-count.options.js +5 -5
  174. package/esm2015/components/input-files/input-files.options.js +3 -3
  175. package/esm2015/components/input-files/max-size-rejection-error.pipe.js +2 -2
  176. package/esm2015/components/input-number/input-number.options.js +4 -4
  177. package/esm2015/components/input-password/input-password.options.js +3 -3
  178. package/esm2015/components/input-phone/input-phone.options.js +3 -3
  179. package/esm2015/components/input-phone/utils/complete-phone-insertion-preprocessor.js +6 -6
  180. package/esm2015/components/input-phone/utils/create-phone-mask-expression.js +6 -6
  181. package/esm2015/components/input-phone-international/utils/extract-value-from-event.js +3 -3
  182. package/esm2015/components/input-tag/input-tag.options.js +3 -3
  183. package/esm2015/components/input-time/input-time.options.js +5 -5
  184. package/esm2015/components/items-with-more/items-with-more.service.js +2 -2
  185. package/esm2015/components/multi-select/hide-selected.pipe.js +2 -2
  186. package/esm2015/components/multi-select/multi-select.options.js +2 -2
  187. package/esm2015/components/pdf-viewer/pdf-viewer.options.js +3 -3
  188. package/esm2015/components/pdf-viewer/pdf-viewer.service.js +3 -3
  189. package/esm2015/components/push/push.options.js +7 -7
  190. package/esm2015/components/push/push.service.js +3 -3
  191. package/esm2015/components/radio/radio.options.js +2 -2
  192. package/esm2015/components/rating/rating.options.js +3 -3
  193. package/esm2015/components/routable-dialog/generate-dialogable-route.js +6 -6
  194. package/esm2015/components/select/select.options.js +2 -2
  195. package/esm2015/components/slider/slider.options.js +3 -3
  196. package/esm2015/components/tabs/tab/tab.providers.js +5 -5
  197. package/esm2015/components/tabs/tabs-with-more/tabs-with-more.providers.js +3 -3
  198. package/esm2015/components/tag/tag.options.js +3 -3
  199. package/esm2015/components/textarea/deprecated.js +7 -7
  200. package/esm2015/components/tiles/tile.service.js +3 -3
  201. package/esm2015/components/toggle/toggle.options.js +4 -4
  202. package/esm2015/components/tree/misc/tree.tokens.js +5 -5
  203. package/esm2015/constants/date-mode-maskito-adapter.js +4 -4
  204. package/esm2015/constants/date-time-separator.js +2 -2
  205. package/esm2015/constants/group-class-names.js +10 -10
  206. package/esm2015/constants/masks.js +5 -5
  207. package/esm2015/constants/router-link-options.js +2 -2
  208. package/esm2015/pipes/field-error/field-error-content-pipe.js +4 -4
  209. package/esm2015/pipes/field-error/field-error-pipe.js +5 -5
  210. package/esm2015/pipes/filter-by-input/filter-by-input-with.pipe.js +2 -2
  211. package/esm2015/pipes/filter-by-input/filter-by-input.base.js +3 -3
  212. package/esm2015/pipes/filter-by-input/filter-by-input.pipe.js +2 -2
  213. package/esm2015/pipes/iso-to-country-code/iso-to-country-code.pipe.js +2 -2
  214. package/esm2015/pipes/sort-countries/sort-countries.pipe.js +2 -2
  215. package/esm2015/pipes/stringify/stringify.pipe.js +3 -3
  216. package/esm2015/pipes/stringify-content/stringify-content.pipe.js +2 -2
  217. package/esm2015/pipes/to-country-code/to-country-code.pipe.js +3 -3
  218. package/esm2015/pipes/to-year/to-year.pipe.js +2 -2
  219. package/esm2015/providers/month-formatter.provider.js +2 -2
  220. package/esm2015/providers/specific-dropdown-controllers.js +3 -3
  221. package/esm2015/services/dialog-form.service.js +2 -2
  222. package/esm2015/tokens/calendar-date-stream.js +2 -2
  223. package/esm2015/tokens/countries-masks.js +216 -216
  224. package/esm2015/tokens/date-inputs-value-transformers.js +4 -4
  225. package/esm2015/tokens/i18n.js +22 -22
  226. package/esm2015/tokens/input-date-options.js +2 -2
  227. package/esm2015/tokens/mobile-calendar.js +2 -2
  228. package/esm2015/tokens/month-formatter.js +2 -2
  229. package/esm2015/utils/files/format-size.js +2 -2
  230. package/esm2015/utils/files/get-accept-array.js +2 -2
  231. package/esm2015/utils/format/string-hash-to-hsl.js +3 -3
  232. package/esm2015/utils/mask/create-auto-corrected-time-pipe.js +6 -6
  233. package/esm2015/utils/mask/create-date-mask.js +5 -5
  234. package/esm2015/utils/mask/create-date-range-mask.js +2 -2
  235. package/esm2015/utils/mask/create-time-mask.js +4 -4
  236. package/esm2015/utils/math/horizontal-direction-to-number.js +3 -3
  237. package/esm2015/utils/miscellaneous/create-default-day-range-periods.js +7 -7
  238. package/esm2015/utils/miscellaneous/get-precision.js +2 -2
  239. package/esm2015/utils/phone/get-max-allowed-phone-length.js +2 -2
  240. package/esm2015/utils/phone/iso-to-country-code.js +2 -2
  241. package/esm2015/validators/unfinished.validator.js +2 -2
  242. package/fesm2015/taiga-ui-kit-abstract.js +1 -1
  243. package/fesm2015/taiga-ui-kit-abstract.js.map +1 -1
  244. package/fesm2015/taiga-ui-kit-components-arrow.js +2 -2
  245. package/fesm2015/taiga-ui-kit-components-arrow.js.map +1 -1
  246. package/fesm2015/taiga-ui-kit-components-avatar.js +1 -1
  247. package/fesm2015/taiga-ui-kit-components-avatar.js.map +1 -1
  248. package/fesm2015/taiga-ui-kit-components-breadcrumbs.js +3 -3
  249. package/fesm2015/taiga-ui-kit-components-breadcrumbs.js.map +1 -1
  250. package/fesm2015/taiga-ui-kit-components-combo-box.js +1 -1
  251. package/fesm2015/taiga-ui-kit-components-combo-box.js.map +1 -1
  252. package/fesm2015/taiga-ui-kit-components-input-copy.js +4 -4
  253. package/fesm2015/taiga-ui-kit-components-input-copy.js.map +1 -1
  254. package/fesm2015/taiga-ui-kit-components-input-count.js +4 -4
  255. package/fesm2015/taiga-ui-kit-components-input-count.js.map +1 -1
  256. package/fesm2015/taiga-ui-kit-components-input-files.js +3 -3
  257. package/fesm2015/taiga-ui-kit-components-input-files.js.map +1 -1
  258. package/fesm2015/taiga-ui-kit-components-input-number.js +3 -3
  259. package/fesm2015/taiga-ui-kit-components-input-number.js.map +1 -1
  260. package/fesm2015/taiga-ui-kit-components-input-password.js +2 -2
  261. package/fesm2015/taiga-ui-kit-components-input-password.js.map +1 -1
  262. package/fesm2015/taiga-ui-kit-components-input-phone-international.js +2 -2
  263. package/fesm2015/taiga-ui-kit-components-input-phone-international.js.map +1 -1
  264. package/fesm2015/taiga-ui-kit-components-input-phone.js +12 -12
  265. package/fesm2015/taiga-ui-kit-components-input-phone.js.map +1 -1
  266. package/fesm2015/taiga-ui-kit-components-input-tag.js +2 -2
  267. package/fesm2015/taiga-ui-kit-components-input-tag.js.map +1 -1
  268. package/fesm2015/taiga-ui-kit-components-input-time.js +4 -4
  269. package/fesm2015/taiga-ui-kit-components-input-time.js.map +1 -1
  270. package/fesm2015/taiga-ui-kit-components-items-with-more.js +1 -1
  271. package/fesm2015/taiga-ui-kit-components-items-with-more.js.map +1 -1
  272. package/fesm2015/taiga-ui-kit-components-multi-select.js +2 -2
  273. package/fesm2015/taiga-ui-kit-components-multi-select.js.map +1 -1
  274. package/fesm2015/taiga-ui-kit-components-pdf-viewer.js +4 -4
  275. package/fesm2015/taiga-ui-kit-components-pdf-viewer.js.map +1 -1
  276. package/fesm2015/taiga-ui-kit-components-push.js +8 -8
  277. package/fesm2015/taiga-ui-kit-components-push.js.map +1 -1
  278. package/fesm2015/taiga-ui-kit-components-radio.js +1 -1
  279. package/fesm2015/taiga-ui-kit-components-radio.js.map +1 -1
  280. package/fesm2015/taiga-ui-kit-components-rating.js +2 -2
  281. package/fesm2015/taiga-ui-kit-components-rating.js.map +1 -1
  282. package/fesm2015/taiga-ui-kit-components-routable-dialog.js +5 -5
  283. package/fesm2015/taiga-ui-kit-components-routable-dialog.js.map +1 -1
  284. package/fesm2015/taiga-ui-kit-components-select.js +1 -1
  285. package/fesm2015/taiga-ui-kit-components-select.js.map +1 -1
  286. package/fesm2015/taiga-ui-kit-components-slider.js +2 -2
  287. package/fesm2015/taiga-ui-kit-components-slider.js.map +1 -1
  288. package/fesm2015/taiga-ui-kit-components-tabs.js +6 -6
  289. package/fesm2015/taiga-ui-kit-components-tabs.js.map +1 -1
  290. package/fesm2015/taiga-ui-kit-components-tag.js +2 -2
  291. package/fesm2015/taiga-ui-kit-components-tag.js.map +1 -1
  292. package/fesm2015/taiga-ui-kit-components-textarea.js +6 -6
  293. package/fesm2015/taiga-ui-kit-components-textarea.js.map +1 -1
  294. package/fesm2015/taiga-ui-kit-components-tiles.js +2 -2
  295. package/fesm2015/taiga-ui-kit-components-tiles.js.map +1 -1
  296. package/fesm2015/taiga-ui-kit-components-toggle.js +3 -3
  297. package/fesm2015/taiga-ui-kit-components-toggle.js.map +1 -1
  298. package/fesm2015/taiga-ui-kit-components-tree.js +4 -4
  299. package/fesm2015/taiga-ui-kit-components-tree.js.map +1 -1
  300. package/fesm2015/taiga-ui-kit-constants.js +18 -18
  301. package/fesm2015/taiga-ui-kit-constants.js.map +1 -1
  302. package/fesm2015/taiga-ui-kit-pipes-field-error.js +7 -7
  303. package/fesm2015/taiga-ui-kit-pipes-field-error.js.map +1 -1
  304. package/fesm2015/taiga-ui-kit-pipes-filter-by-input.js +4 -4
  305. package/fesm2015/taiga-ui-kit-pipes-filter-by-input.js.map +1 -1
  306. package/fesm2015/taiga-ui-kit-pipes-iso-to-country-code.js +1 -1
  307. package/fesm2015/taiga-ui-kit-pipes-iso-to-country-code.js.map +1 -1
  308. package/fesm2015/taiga-ui-kit-pipes-sort-countries.js +1 -1
  309. package/fesm2015/taiga-ui-kit-pipes-sort-countries.js.map +1 -1
  310. package/fesm2015/taiga-ui-kit-pipes-stringify-content.js +1 -1
  311. package/fesm2015/taiga-ui-kit-pipes-stringify-content.js.map +1 -1
  312. package/fesm2015/taiga-ui-kit-pipes-stringify.js +2 -2
  313. package/fesm2015/taiga-ui-kit-pipes-stringify.js.map +1 -1
  314. package/fesm2015/taiga-ui-kit-pipes-to-country-code.js +2 -2
  315. package/fesm2015/taiga-ui-kit-pipes-to-country-code.js.map +1 -1
  316. package/fesm2015/taiga-ui-kit-pipes-to-year.js +1 -1
  317. package/fesm2015/taiga-ui-kit-pipes-to-year.js.map +1 -1
  318. package/fesm2015/taiga-ui-kit-providers.js +3 -3
  319. package/fesm2015/taiga-ui-kit-providers.js.map +1 -1
  320. package/fesm2015/taiga-ui-kit-services.js +1 -1
  321. package/fesm2015/taiga-ui-kit-services.js.map +1 -1
  322. package/fesm2015/taiga-ui-kit-tokens.js +243 -243
  323. package/fesm2015/taiga-ui-kit-tokens.js.map +1 -1
  324. package/fesm2015/taiga-ui-kit-utils-files.js +2 -2
  325. package/fesm2015/taiga-ui-kit-utils-files.js.map +1 -1
  326. package/fesm2015/taiga-ui-kit-utils-format.js +2 -2
  327. package/fesm2015/taiga-ui-kit-utils-format.js.map +1 -1
  328. package/fesm2015/taiga-ui-kit-utils-mask.js +13 -13
  329. package/fesm2015/taiga-ui-kit-utils-mask.js.map +1 -1
  330. package/fesm2015/taiga-ui-kit-utils-math.js +2 -2
  331. package/fesm2015/taiga-ui-kit-utils-math.js.map +1 -1
  332. package/fesm2015/taiga-ui-kit-utils-miscellaneous.js +7 -7
  333. package/fesm2015/taiga-ui-kit-utils-miscellaneous.js.map +1 -1
  334. package/fesm2015/taiga-ui-kit-utils-phone.js +2 -2
  335. package/fesm2015/taiga-ui-kit-utils-phone.js.map +1 -1
  336. package/fesm2015/taiga-ui-kit-validators.js +1 -1
  337. package/fesm2015/taiga-ui-kit-validators.js.map +1 -1
  338. package/package.json +4 -4
@@ -1,859 +1,713 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@ng-web-apis/mutation-observer'), require('@taiga-ui/cdk'), require('rxjs'), require('rxjs/operators'), require('@tinkoff/ng-event-plugins')) :
3
- typeof define === 'function' && define.amd ? define('@taiga-ui/kit/components/tiles', ['exports', '@angular/core', '@ng-web-apis/mutation-observer', '@taiga-ui/cdk', 'rxjs', 'rxjs/operators', '@tinkoff/ng-event-plugins'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].kit = global["taiga-ui"].kit || {}, global["taiga-ui"].kit.components = global["taiga-ui"].kit.components || {}, global["taiga-ui"].kit.components.tiles = {}), global.ng.core, global.mutationObserver, global.cdk, global.rxjs, global.rxjs.operators, global.ngEventPlugins));
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@ng-web-apis/mutation-observer'), require('@taiga-ui/cdk'), require('rxjs'), require('rxjs/operators'), require('@tinkoff/ng-event-plugins')) :
3
+ typeof define === 'function' && define.amd ? define('@taiga-ui/kit/components/tiles', ['exports', '@angular/core', '@ng-web-apis/mutation-observer', '@taiga-ui/cdk', 'rxjs', 'rxjs/operators', '@tinkoff/ng-event-plugins'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].kit = global["taiga-ui"].kit || {}, global["taiga-ui"].kit.components = global["taiga-ui"].kit.components || {}, global["taiga-ui"].kit.components.tiles = {}), global.ng.core, global.mutationObserver, global.cdk, global.rxjs, global.rxjs.operators, global.ngEventPlugins));
5
5
  })(this, (function (exports, i0, mutationObserver, cdk, i2, operators, ngEventPlugins) { 'use strict';
6
6
 
7
- function _interopNamespace(e) {
8
- if (e && e.__esModule) return e;
9
- var n = Object.create(null);
10
- if (e) {
11
- Object.keys(e).forEach(function (k) {
12
- if (k !== 'default') {
13
- var d = Object.getOwnPropertyDescriptor(e, k);
14
- Object.defineProperty(n, k, d.get ? d : {
15
- enumerable: true,
16
- get: function () { return e[k]; }
17
- });
7
+ function _interopNamespace(e) {
8
+ if (e && e.__esModule) return e;
9
+ var n = Object.create(null);
10
+ if (e) {
11
+ Object.keys(e).forEach(function (k) {
12
+ if (k !== 'default') {
13
+ var d = Object.getOwnPropertyDescriptor(e, k);
14
+ Object.defineProperty(n, k, d.get ? d : {
15
+ enumerable: true,
16
+ get: function () { return e[k]; }
17
+ });
18
+ }
19
+ });
18
20
  }
19
- });
21
+ n["default"] = e;
22
+ return Object.freeze(n);
20
23
  }
21
- n["default"] = e;
22
- return Object.freeze(n);
23
- }
24
24
 
25
- var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
- var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
25
+ var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
+ var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
27
27
 
28
- /******************************************************************************
29
- Copyright (c) Microsoft Corporation.
28
+ /*! *****************************************************************************
29
+ Copyright (c) Microsoft Corporation.
30
30
 
31
- Permission to use, copy, modify, and/or distribute this software for any
32
- purpose with or without fee is hereby granted.
31
+ Permission to use, copy, modify, and/or distribute this software for any
32
+ purpose with or without fee is hereby granted.
33
33
 
34
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
35
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
36
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
37
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
38
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
39
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
40
- PERFORMANCE OF THIS SOFTWARE.
41
- ***************************************************************************** */
42
- /* global Reflect, Promise, SuppressedError, Symbol */
43
- var extendStatics = function (d, b) {
44
- extendStatics = Object.setPrototypeOf ||
45
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
46
- function (d, b) { for (var p in b)
47
- if (Object.prototype.hasOwnProperty.call(b, p))
48
- d[p] = b[p]; };
49
- return extendStatics(d, b);
50
- };
51
- function __extends(d, b) {
52
- if (typeof b !== "function" && b !== null)
53
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
54
- extendStatics(d, b);
55
- function __() { this.constructor = d; }
56
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
57
- }
58
- var __assign = function () {
59
- __assign = Object.assign || function __assign(t) {
60
- for (var s, i = 1, n = arguments.length; i < n; i++) {
61
- s = arguments[i];
62
- for (var p in s)
63
- if (Object.prototype.hasOwnProperty.call(s, p))
64
- t[p] = s[p];
65
- }
66
- return t;
67
- };
68
- return __assign.apply(this, arguments);
69
- };
70
- function __rest(s, e) {
71
- var t = {};
72
- for (var p in s)
73
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
74
- t[p] = s[p];
75
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
76
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
77
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
78
- t[p[i]] = s[p[i]];
79
- }
80
- return t;
81
- }
82
- function __decorate(decorators, target, key, desc) {
83
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
84
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
85
- r = Reflect.decorate(decorators, target, key, desc);
86
- else
87
- for (var i = decorators.length - 1; i >= 0; i--)
88
- if (d = decorators[i])
89
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
90
- return c > 3 && r && Object.defineProperty(target, key, r), r;
91
- }
92
- function __param(paramIndex, decorator) {
93
- return function (target, key) { decorator(target, key, paramIndex); };
94
- }
95
- function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
96
- function accept(f) { if (f !== void 0 && typeof f !== "function")
97
- throw new TypeError("Function expected"); return f; }
98
- var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
99
- var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
100
- var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
101
- var _, done = false;
102
- for (var i = decorators.length - 1; i >= 0; i--) {
103
- var context = {};
104
- for (var p in contextIn)
105
- context[p] = p === "access" ? {} : contextIn[p];
106
- for (var p in contextIn.access)
107
- context.access[p] = contextIn.access[p];
108
- context.addInitializer = function (f) { if (done)
109
- throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
110
- var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
111
- if (kind === "accessor") {
112
- if (result === void 0)
113
- continue;
114
- if (result === null || typeof result !== "object")
115
- throw new TypeError("Object expected");
116
- if (_ = accept(result.get))
117
- descriptor.get = _;
118
- if (_ = accept(result.set))
119
- descriptor.set = _;
120
- if (_ = accept(result.init))
121
- initializers.unshift(_);
122
- }
123
- else if (_ = accept(result)) {
124
- if (kind === "field")
125
- initializers.unshift(_);
126
- else
127
- descriptor[key] = _;
128
- }
129
- }
130
- if (target)
131
- Object.defineProperty(target, contextIn.name, descriptor);
132
- done = true;
133
- }
134
- ;
135
- function __runInitializers(thisArg, initializers, value) {
136
- var useValue = arguments.length > 2;
137
- for (var i = 0; i < initializers.length; i++) {
138
- value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
139
- }
140
- return useValue ? value : void 0;
141
- }
142
- ;
143
- function __propKey(x) {
144
- return typeof x === "symbol" ? x : "".concat(x);
145
- }
146
- ;
147
- function __setFunctionName(f, name, prefix) {
148
- if (typeof name === "symbol")
149
- name = name.description ? "[".concat(name.description, "]") : "";
150
- return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
151
- }
152
- ;
153
- function __metadata(metadataKey, metadataValue) {
154
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
155
- return Reflect.metadata(metadataKey, metadataValue);
156
- }
157
- function __awaiter(thisArg, _arguments, P, generator) {
158
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
159
- return new (P || (P = Promise))(function (resolve, reject) {
160
- function fulfilled(value) { try {
161
- step(generator.next(value));
162
- }
163
- catch (e) {
164
- reject(e);
165
- } }
166
- function rejected(value) { try {
167
- step(generator["throw"](value));
168
- }
169
- catch (e) {
170
- reject(e);
171
- } }
172
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
173
- step((generator = generator.apply(thisArg, _arguments || [])).next());
174
- });
175
- }
176
- function __generator(thisArg, body) {
177
- var _ = { label: 0, sent: function () { if (t[0] & 1)
178
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
179
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
180
- function verb(n) { return function (v) { return step([n, v]); }; }
181
- function step(op) {
182
- if (f)
183
- throw new TypeError("Generator is already executing.");
184
- while (g && (g = 0, op[0] && (_ = 0)), _)
185
- try {
186
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
187
- return t;
188
- if (y = 0, t)
189
- op = [op[0] & 2, t.value];
190
- switch (op[0]) {
191
- case 0:
192
- case 1:
193
- t = op;
194
- break;
195
- case 4:
196
- _.label++;
197
- return { value: op[1], done: false };
198
- case 5:
199
- _.label++;
200
- y = op[1];
201
- op = [0];
202
- continue;
203
- case 7:
204
- op = _.ops.pop();
205
- _.trys.pop();
206
- continue;
207
- default:
208
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
209
- _ = 0;
210
- continue;
211
- }
212
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
213
- _.label = op[1];
214
- break;
215
- }
216
- if (op[0] === 6 && _.label < t[1]) {
217
- _.label = t[1];
218
- t = op;
219
- break;
220
- }
221
- if (t && _.label < t[2]) {
222
- _.label = t[2];
223
- _.ops.push(op);
224
- break;
225
- }
226
- if (t[2])
227
- _.ops.pop();
228
- _.trys.pop();
229
- continue;
230
- }
231
- op = body.call(thisArg, _);
232
- }
233
- catch (e) {
234
- op = [6, e];
235
- y = 0;
236
- }
237
- finally {
238
- f = t = 0;
239
- }
240
- if (op[0] & 5)
241
- throw op[1];
242
- return { value: op[0] ? op[1] : void 0, done: true };
243
- }
244
- }
245
- var __createBinding = Object.create ? (function (o, m, k, k2) {
246
- if (k2 === undefined)
247
- k2 = k;
248
- var desc = Object.getOwnPropertyDescriptor(m, k);
249
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
250
- desc = { enumerable: true, get: function () { return m[k]; } };
251
- }
252
- Object.defineProperty(o, k2, desc);
253
- }) : (function (o, m, k, k2) {
254
- if (k2 === undefined)
255
- k2 = k;
256
- o[k2] = m[k];
257
- });
258
- function __exportStar(m, o) {
259
- for (var p in m)
260
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
261
- __createBinding(o, m, p);
262
- }
263
- function __values(o) {
264
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
265
- if (m)
266
- return m.call(o);
267
- if (o && typeof o.length === "number")
268
- return {
269
- next: function () {
270
- if (o && i >= o.length)
271
- o = void 0;
272
- return { value: o && o[i++], done: !o };
273
- }
274
- };
275
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
276
- }
277
- function __read(o, n) {
278
- var m = typeof Symbol === "function" && o[Symbol.iterator];
279
- if (!m)
280
- return o;
281
- var i = m.call(o), r, ar = [], e;
282
- try {
283
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
284
- ar.push(r.value);
285
- }
286
- catch (error) {
287
- e = { error: error };
288
- }
289
- finally {
290
- try {
291
- if (r && !r.done && (m = i["return"]))
292
- m.call(i);
293
- }
294
- finally {
295
- if (e)
296
- throw e.error;
297
- }
298
- }
299
- return ar;
300
- }
301
- /** @deprecated */
302
- function __spread() {
303
- for (var ar = [], i = 0; i < arguments.length; i++)
304
- ar = ar.concat(__read(arguments[i]));
305
- return ar;
306
- }
307
- /** @deprecated */
308
- function __spreadArrays() {
309
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
310
- s += arguments[i].length;
311
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
312
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
313
- r[k] = a[j];
314
- return r;
315
- }
316
- function __spreadArray(to, from, pack) {
317
- if (pack || arguments.length === 2)
318
- for (var i = 0, l = from.length, ar; i < l; i++) {
319
- if (ar || !(i in from)) {
320
- if (!ar)
321
- ar = Array.prototype.slice.call(from, 0, i);
322
- ar[i] = from[i];
323
- }
324
- }
325
- return to.concat(ar || Array.prototype.slice.call(from));
326
- }
327
- function __await(v) {
328
- return this instanceof __await ? (this.v = v, this) : new __await(v);
329
- }
330
- function __asyncGenerator(thisArg, _arguments, generator) {
331
- if (!Symbol.asyncIterator)
332
- throw new TypeError("Symbol.asyncIterator is not defined.");
333
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
334
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
335
- function verb(n) { if (g[n])
336
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
337
- function resume(n, v) { try {
338
- step(g[n](v));
339
- }
340
- catch (e) {
341
- settle(q[0][3], e);
342
- } }
343
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
344
- function fulfill(value) { resume("next", value); }
345
- function reject(value) { resume("throw", value); }
346
- function settle(f, v) { if (f(v), q.shift(), q.length)
347
- resume(q[0][0], q[0][1]); }
348
- }
349
- function __asyncDelegator(o) {
350
- var i, p;
351
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
352
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
353
- }
354
- function __asyncValues(o) {
355
- if (!Symbol.asyncIterator)
356
- throw new TypeError("Symbol.asyncIterator is not defined.");
357
- var m = o[Symbol.asyncIterator], i;
358
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
359
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
360
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
361
- }
362
- function __makeTemplateObject(cooked, raw) {
363
- if (Object.defineProperty) {
364
- Object.defineProperty(cooked, "raw", { value: raw });
365
- }
366
- else {
367
- cooked.raw = raw;
368
- }
369
- return cooked;
370
- }
371
- ;
372
- var __setModuleDefault = Object.create ? (function (o, v) {
373
- Object.defineProperty(o, "default", { enumerable: true, value: v });
374
- }) : function (o, v) {
375
- o["default"] = v;
376
- };
377
- function __importStar(mod) {
378
- if (mod && mod.__esModule)
379
- return mod;
380
- var result = {};
381
- if (mod != null)
382
- for (var k in mod)
383
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
384
- __createBinding(result, mod, k);
385
- __setModuleDefault(result, mod);
386
- return result;
387
- }
388
- function __importDefault(mod) {
389
- return (mod && mod.__esModule) ? mod : { default: mod };
390
- }
391
- function __classPrivateFieldGet(receiver, state, kind, f) {
392
- if (kind === "a" && !f)
393
- throw new TypeError("Private accessor was defined without a getter");
394
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
395
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
396
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
397
- }
398
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
399
- if (kind === "m")
400
- throw new TypeError("Private method is not writable");
401
- if (kind === "a" && !f)
402
- throw new TypeError("Private accessor was defined without a setter");
403
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
404
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
405
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
406
- }
407
- function __classPrivateFieldIn(state, receiver) {
408
- if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
409
- throw new TypeError("Cannot use 'in' operator on non-object");
410
- return typeof state === "function" ? receiver === state : state.has(receiver);
411
- }
412
- function __addDisposableResource(env, value, async) {
413
- if (value !== null && value !== void 0) {
414
- if (typeof value !== "object" && typeof value !== "function")
415
- throw new TypeError("Object expected.");
416
- var dispose;
417
- if (async) {
418
- if (!Symbol.asyncDispose)
419
- throw new TypeError("Symbol.asyncDispose is not defined.");
420
- dispose = value[Symbol.asyncDispose];
421
- }
422
- if (dispose === void 0) {
423
- if (!Symbol.dispose)
424
- throw new TypeError("Symbol.dispose is not defined.");
425
- dispose = value[Symbol.dispose];
426
- }
427
- if (typeof dispose !== "function")
428
- throw new TypeError("Object not disposable.");
429
- env.stack.push({ value: value, dispose: dispose, async: async });
430
- }
431
- else if (async) {
432
- env.stack.push({ async: true });
433
- }
434
- return value;
435
- }
436
- var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
437
- var e = new Error(message);
438
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
439
- };
440
- function __disposeResources(env) {
441
- function fail(e) {
442
- env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
443
- env.hasError = true;
444
- }
445
- function next() {
446
- while (env.stack.length) {
447
- var rec = env.stack.pop();
448
- try {
449
- var result = rec.dispose && rec.dispose.call(rec.value);
450
- if (rec.async)
451
- return Promise.resolve(result).then(next, function (e) { fail(e); return next(); });
452
- }
453
- catch (e) {
454
- fail(e);
455
- }
456
- }
457
- if (env.hasError)
458
- throw env.error;
459
- }
460
- return next();
461
- }
462
- var tslib_es6 = {
463
- __extends: __extends,
464
- __assign: __assign,
465
- __rest: __rest,
466
- __decorate: __decorate,
467
- __param: __param,
468
- __metadata: __metadata,
469
- __awaiter: __awaiter,
470
- __generator: __generator,
471
- __createBinding: __createBinding,
472
- __exportStar: __exportStar,
473
- __values: __values,
474
- __read: __read,
475
- __spread: __spread,
476
- __spreadArrays: __spreadArrays,
477
- __spreadArray: __spreadArray,
478
- __await: __await,
479
- __asyncGenerator: __asyncGenerator,
480
- __asyncDelegator: __asyncDelegator,
481
- __asyncValues: __asyncValues,
482
- __makeTemplateObject: __makeTemplateObject,
483
- __importStar: __importStar,
484
- __importDefault: __importDefault,
485
- __classPrivateFieldGet: __classPrivateFieldGet,
486
- __classPrivateFieldSet: __classPrivateFieldSet,
487
- __classPrivateFieldIn: __classPrivateFieldIn,
488
- __addDisposableResource: __addDisposableResource,
489
- __disposeResources: __disposeResources,
490
- };
34
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
35
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
36
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
37
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
38
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
39
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
40
+ PERFORMANCE OF THIS SOFTWARE.
41
+ ***************************************************************************** */
42
+ /* global Reflect, Promise */
43
+ var extendStatics = function (d, b) {
44
+ extendStatics = Object.setPrototypeOf ||
45
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
46
+ function (d, b) { for (var p in b)
47
+ if (Object.prototype.hasOwnProperty.call(b, p))
48
+ d[p] = b[p]; };
49
+ return extendStatics(d, b);
50
+ };
51
+ function __extends(d, b) {
52
+ if (typeof b !== "function" && b !== null)
53
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
54
+ extendStatics(d, b);
55
+ function __() { this.constructor = d; }
56
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
57
+ }
58
+ var __assign = function () {
59
+ __assign = Object.assign || function __assign(t) {
60
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
61
+ s = arguments[i];
62
+ for (var p in s)
63
+ if (Object.prototype.hasOwnProperty.call(s, p))
64
+ t[p] = s[p];
65
+ }
66
+ return t;
67
+ };
68
+ return __assign.apply(this, arguments);
69
+ };
70
+ function __rest(s, e) {
71
+ var t = {};
72
+ for (var p in s)
73
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
74
+ t[p] = s[p];
75
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
76
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
77
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
78
+ t[p[i]] = s[p[i]];
79
+ }
80
+ return t;
81
+ }
82
+ function __decorate(decorators, target, key, desc) {
83
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
84
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
85
+ r = Reflect.decorate(decorators, target, key, desc);
86
+ else
87
+ for (var i = decorators.length - 1; i >= 0; i--)
88
+ if (d = decorators[i])
89
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
90
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
91
+ }
92
+ function __param(paramIndex, decorator) {
93
+ return function (target, key) { decorator(target, key, paramIndex); };
94
+ }
95
+ function __metadata(metadataKey, metadataValue) {
96
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
97
+ return Reflect.metadata(metadataKey, metadataValue);
98
+ }
99
+ function __awaiter(thisArg, _arguments, P, generator) {
100
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
101
+ return new (P || (P = Promise))(function (resolve, reject) {
102
+ function fulfilled(value) { try {
103
+ step(generator.next(value));
104
+ }
105
+ catch (e) {
106
+ reject(e);
107
+ } }
108
+ function rejected(value) { try {
109
+ step(generator["throw"](value));
110
+ }
111
+ catch (e) {
112
+ reject(e);
113
+ } }
114
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
115
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
116
+ });
117
+ }
118
+ function __generator(thisArg, body) {
119
+ var _ = { label: 0, sent: function () { if (t[0] & 1)
120
+ throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
121
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
122
+ function verb(n) { return function (v) { return step([n, v]); }; }
123
+ function step(op) {
124
+ if (f)
125
+ throw new TypeError("Generator is already executing.");
126
+ while (_)
127
+ try {
128
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
129
+ return t;
130
+ if (y = 0, t)
131
+ op = [op[0] & 2, t.value];
132
+ switch (op[0]) {
133
+ case 0:
134
+ case 1:
135
+ t = op;
136
+ break;
137
+ case 4:
138
+ _.label++;
139
+ return { value: op[1], done: false };
140
+ case 5:
141
+ _.label++;
142
+ y = op[1];
143
+ op = [0];
144
+ continue;
145
+ case 7:
146
+ op = _.ops.pop();
147
+ _.trys.pop();
148
+ continue;
149
+ default:
150
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
151
+ _ = 0;
152
+ continue;
153
+ }
154
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
155
+ _.label = op[1];
156
+ break;
157
+ }
158
+ if (op[0] === 6 && _.label < t[1]) {
159
+ _.label = t[1];
160
+ t = op;
161
+ break;
162
+ }
163
+ if (t && _.label < t[2]) {
164
+ _.label = t[2];
165
+ _.ops.push(op);
166
+ break;
167
+ }
168
+ if (t[2])
169
+ _.ops.pop();
170
+ _.trys.pop();
171
+ continue;
172
+ }
173
+ op = body.call(thisArg, _);
174
+ }
175
+ catch (e) {
176
+ op = [6, e];
177
+ y = 0;
178
+ }
179
+ finally {
180
+ f = t = 0;
181
+ }
182
+ if (op[0] & 5)
183
+ throw op[1];
184
+ return { value: op[0] ? op[1] : void 0, done: true };
185
+ }
186
+ }
187
+ var __createBinding = Object.create ? (function (o, m, k, k2) {
188
+ if (k2 === undefined)
189
+ k2 = k;
190
+ Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
191
+ }) : (function (o, m, k, k2) {
192
+ if (k2 === undefined)
193
+ k2 = k;
194
+ o[k2] = m[k];
195
+ });
196
+ function __exportStar(m, o) {
197
+ for (var p in m)
198
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
199
+ __createBinding(o, m, p);
200
+ }
201
+ function __values(o) {
202
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
203
+ if (m)
204
+ return m.call(o);
205
+ if (o && typeof o.length === "number")
206
+ return {
207
+ next: function () {
208
+ if (o && i >= o.length)
209
+ o = void 0;
210
+ return { value: o && o[i++], done: !o };
211
+ }
212
+ };
213
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
214
+ }
215
+ function __read(o, n) {
216
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
217
+ if (!m)
218
+ return o;
219
+ var i = m.call(o), r, ar = [], e;
220
+ try {
221
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
222
+ ar.push(r.value);
223
+ }
224
+ catch (error) {
225
+ e = { error: error };
226
+ }
227
+ finally {
228
+ try {
229
+ if (r && !r.done && (m = i["return"]))
230
+ m.call(i);
231
+ }
232
+ finally {
233
+ if (e)
234
+ throw e.error;
235
+ }
236
+ }
237
+ return ar;
238
+ }
239
+ /** @deprecated */
240
+ function __spread() {
241
+ for (var ar = [], i = 0; i < arguments.length; i++)
242
+ ar = ar.concat(__read(arguments[i]));
243
+ return ar;
244
+ }
245
+ /** @deprecated */
246
+ function __spreadArrays() {
247
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++)
248
+ s += arguments[i].length;
249
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
250
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
251
+ r[k] = a[j];
252
+ return r;
253
+ }
254
+ function __spreadArray(to, from, pack) {
255
+ if (pack || arguments.length === 2)
256
+ for (var i = 0, l = from.length, ar; i < l; i++) {
257
+ if (ar || !(i in from)) {
258
+ if (!ar)
259
+ ar = Array.prototype.slice.call(from, 0, i);
260
+ ar[i] = from[i];
261
+ }
262
+ }
263
+ return to.concat(ar || from);
264
+ }
265
+ function __await(v) {
266
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
267
+ }
268
+ function __asyncGenerator(thisArg, _arguments, generator) {
269
+ if (!Symbol.asyncIterator)
270
+ throw new TypeError("Symbol.asyncIterator is not defined.");
271
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
272
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
273
+ function verb(n) { if (g[n])
274
+ i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
275
+ function resume(n, v) { try {
276
+ step(g[n](v));
277
+ }
278
+ catch (e) {
279
+ settle(q[0][3], e);
280
+ } }
281
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
282
+ function fulfill(value) { resume("next", value); }
283
+ function reject(value) { resume("throw", value); }
284
+ function settle(f, v) { if (f(v), q.shift(), q.length)
285
+ resume(q[0][0], q[0][1]); }
286
+ }
287
+ function __asyncDelegator(o) {
288
+ var i, p;
289
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
290
+ function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
291
+ }
292
+ function __asyncValues(o) {
293
+ if (!Symbol.asyncIterator)
294
+ throw new TypeError("Symbol.asyncIterator is not defined.");
295
+ var m = o[Symbol.asyncIterator], i;
296
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
297
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
298
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
299
+ }
300
+ function __makeTemplateObject(cooked, raw) {
301
+ if (Object.defineProperty) {
302
+ Object.defineProperty(cooked, "raw", { value: raw });
303
+ }
304
+ else {
305
+ cooked.raw = raw;
306
+ }
307
+ return cooked;
308
+ }
309
+ ;
310
+ var __setModuleDefault = Object.create ? (function (o, v) {
311
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
312
+ }) : function (o, v) {
313
+ o["default"] = v;
314
+ };
315
+ function __importStar(mod) {
316
+ if (mod && mod.__esModule)
317
+ return mod;
318
+ var result = {};
319
+ if (mod != null)
320
+ for (var k in mod)
321
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
322
+ __createBinding(result, mod, k);
323
+ __setModuleDefault(result, mod);
324
+ return result;
325
+ }
326
+ function __importDefault(mod) {
327
+ return (mod && mod.__esModule) ? mod : { default: mod };
328
+ }
329
+ function __classPrivateFieldGet(receiver, state, kind, f) {
330
+ if (kind === "a" && !f)
331
+ throw new TypeError("Private accessor was defined without a getter");
332
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
333
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
334
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
335
+ }
336
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
337
+ if (kind === "m")
338
+ throw new TypeError("Private method is not writable");
339
+ if (kind === "a" && !f)
340
+ throw new TypeError("Private accessor was defined without a setter");
341
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
342
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
343
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
344
+ }
491
345
 
492
- var TuiTilesComponent = /** @class */ (function () {
493
- function TuiTilesComponent(el) {
494
- var _this = this;
495
- this.el = el;
496
- this.el$ = new i2.Subject();
497
- this.debounce = 0;
498
- this.orderChange = this.el$.pipe(operators.debounce(function () { return i2.timer(_this.debounce); }), operators.filter(this.filter.bind(this)), operators.map(function (element) { return _this.reorder(element); }));
499
- this.element = null;
500
- this.order$ = new i2.BehaviorSubject(new Map());
501
- }
502
- Object.defineProperty(TuiTilesComponent.prototype, "order", {
503
- get: function () {
504
- return this.order$.value;
505
- },
506
- set: function (map) {
507
- this.order$.next(map);
508
- },
509
- enumerable: false,
510
- configurable: true
511
- });
512
- TuiTilesComponent.prototype.rearrange = function (element) {
513
- this.el$.next(element);
514
- };
515
- TuiTilesComponent.prototype.filter = function (element) {
516
- return !!this.element && !!element && this.element !== element;
517
- };
518
- TuiTilesComponent.prototype.reorder = function (element) {
519
- var _a, _b;
520
- var elements = Array.from(this.el.nativeElement.children);
521
- var currentIndex = elements.indexOf(this.element || element);
522
- var newIndex = elements.indexOf(element);
523
- var order = this.order.size
524
- ? new Map(this.order)
525
- : new Map(elements.map(function (_, index) { return [index, index]; }));
526
- var dragged = (_a = order.get(currentIndex)) !== null && _a !== void 0 ? _a : currentIndex;
527
- var placement = (_b = order.get(newIndex)) !== null && _b !== void 0 ? _b : newIndex;
528
- order.set(currentIndex, placement);
529
- order.set(newIndex, dragged);
530
- this.order$.next(order);
531
- return order;
532
- };
533
- return TuiTilesComponent;
534
- }());
535
- TuiTilesComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTilesComponent, deps: [{ token: i0.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
536
- TuiTilesComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiTilesComponent, selector: "tui-tiles", inputs: { debounce: "debounce", order: "order" }, outputs: { orderChange: "orderChange" }, host: { listeners: { "pointerleave.silent": "rearrange()" }, properties: { "class._dragged": "this.element" } }, providers: [
537
- cdk.TuiDestroyService,
538
- cdk.TuiResizeService,
539
- mutationObserver.MutationObserverService,
540
- {
541
- provide: mutationObserver.MUTATION_OBSERVER_INIT,
542
- useValue: { childList: true },
543
- },
544
- ], ngImport: i0__namespace, template: '<ng-content></ng-content>', isInline: true, styles: ["tui-tiles{position:relative;z-index:0;display:grid;grid-auto-flow:dense;justify-items:stretch}tui-tiles._dragged tui-tile>.t-wrapper{pointer-events:none}tui-tiles._dragged tui-tile:not(._dragged)>.t-wrapper{transition-property:all;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;transition-delay:1ms}tui-tiles:not(._dragged) tui-tile._dragged>.t-wrapper{transition-property:all;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;transition-delay:1ms}tui-tile>.t-wrapper{position:absolute;z-index:0;border-radius:inherit}tui-tile._dragged>.t-wrapper{z-index:1;transition:none}\n"], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
545
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTilesComponent, decorators: [{
546
- type: i0.Component,
547
- args: [{
548
- selector: 'tui-tiles',
549
- template: '<ng-content></ng-content>',
550
- styleUrls: ['./tiles.style.less'],
551
- encapsulation: i0.ViewEncapsulation.None,
552
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
553
- providers: [
554
- cdk.TuiDestroyService,
555
- cdk.TuiResizeService,
556
- mutationObserver.MutationObserverService,
557
- {
558
- provide: mutationObserver.MUTATION_OBSERVER_INIT,
559
- useValue: { childList: true },
560
- },
561
- ],
562
- }]
563
- }], ctorParameters: function () {
564
- return [{ type: i0__namespace.ElementRef, decorators: [{
565
- type: i0.Inject,
566
- args: [i0.ElementRef]
567
- }] }];
568
- }, propDecorators: { debounce: [{
569
- type: i0.Input
570
- }], order: [{
571
- type: i0.Input
572
- }], orderChange: [{
573
- type: i0.Output
574
- }], element: [{
575
- type: i0.HostBinding,
576
- args: ['class._dragged']
577
- }], rearrange: [{
578
- type: i0.HostListener,
579
- args: ['pointerleave.silent']
580
- }] } });
346
+ var TuiTilesComponent = /** @class */ (function () {
347
+ function TuiTilesComponent(el) {
348
+ var _this = this;
349
+ this.el = el;
350
+ this.el$ = new i2.Subject();
351
+ this.debounce = 0;
352
+ this.orderChange = this.el$.pipe(operators.debounce(function () { return i2.timer(_this.debounce); }), operators.filter(this.filter.bind(this)), operators.map(function (element) { return _this.reorder(element); }));
353
+ this.element = null;
354
+ this.order$ = new i2.BehaviorSubject(new Map());
355
+ }
356
+ Object.defineProperty(TuiTilesComponent.prototype, "order", {
357
+ get: function () {
358
+ return this.order$.value;
359
+ },
360
+ set: function (map) {
361
+ this.order$.next(map);
362
+ },
363
+ enumerable: false,
364
+ configurable: true
365
+ });
366
+ TuiTilesComponent.prototype.rearrange = function (element) {
367
+ this.el$.next(element);
368
+ };
369
+ TuiTilesComponent.prototype.filter = function (element) {
370
+ return !!this.element && !!element && this.element !== element;
371
+ };
372
+ TuiTilesComponent.prototype.reorder = function (element) {
373
+ var _a, _b;
374
+ var elements = Array.from(this.el.nativeElement.children);
375
+ var currentIndex = elements.indexOf(this.element || element);
376
+ var newIndex = elements.indexOf(element);
377
+ var order = this.order.size
378
+ ? new Map(this.order)
379
+ : new Map(elements.map(function (_, index) { return [index, index]; }));
380
+ var dragged = (_a = order.get(currentIndex)) !== null && _a !== void 0 ? _a : currentIndex;
381
+ var placement = (_b = order.get(newIndex)) !== null && _b !== void 0 ? _b : newIndex;
382
+ order.set(currentIndex, placement);
383
+ order.set(newIndex, dragged);
384
+ this.order$.next(order);
385
+ return order;
386
+ };
387
+ return TuiTilesComponent;
388
+ }());
389
+ TuiTilesComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTilesComponent, deps: [{ token: i0.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
390
+ TuiTilesComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiTilesComponent, selector: "tui-tiles", inputs: { debounce: "debounce", order: "order" }, outputs: { orderChange: "orderChange" }, host: { listeners: { "pointerleave.silent": "rearrange()" }, properties: { "class._dragged": "this.element" } }, providers: [
391
+ cdk.TuiDestroyService,
392
+ cdk.TuiResizeService,
393
+ mutationObserver.MutationObserverService,
394
+ {
395
+ provide: mutationObserver.MUTATION_OBSERVER_INIT,
396
+ useValue: { childList: true },
397
+ },
398
+ ], ngImport: i0__namespace, template: '<ng-content></ng-content>', isInline: true, styles: ["tui-tiles{position:relative;z-index:0;display:grid;grid-auto-flow:dense;justify-items:stretch}tui-tiles._dragged tui-tile>.t-wrapper{pointer-events:none}tui-tiles._dragged tui-tile:not(._dragged)>.t-wrapper{transition-property:all;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;transition-delay:1ms}tui-tiles:not(._dragged) tui-tile._dragged>.t-wrapper{transition-property:all;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;transition-delay:1ms}tui-tile>.t-wrapper{position:absolute;z-index:0;border-radius:inherit}tui-tile._dragged>.t-wrapper{z-index:1;transition:none}\n"], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
399
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTilesComponent, decorators: [{
400
+ type: i0.Component,
401
+ args: [{
402
+ selector: 'tui-tiles',
403
+ template: '<ng-content></ng-content>',
404
+ styleUrls: ['./tiles.style.less'],
405
+ encapsulation: i0.ViewEncapsulation.None,
406
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
407
+ providers: [
408
+ cdk.TuiDestroyService,
409
+ cdk.TuiResizeService,
410
+ mutationObserver.MutationObserverService,
411
+ {
412
+ provide: mutationObserver.MUTATION_OBSERVER_INIT,
413
+ useValue: { childList: true },
414
+ },
415
+ ],
416
+ }]
417
+ }], ctorParameters: function () {
418
+ return [{ type: i0__namespace.ElementRef, decorators: [{
419
+ type: i0.Inject,
420
+ args: [i0.ElementRef]
421
+ }] }];
422
+ }, propDecorators: { debounce: [{
423
+ type: i0.Input
424
+ }], order: [{
425
+ type: i0.Input
426
+ }], orderChange: [{
427
+ type: i0.Output
428
+ }], element: [{
429
+ type: i0.HostBinding,
430
+ args: ['class._dragged']
431
+ }], rearrange: [{
432
+ type: i0.HostListener,
433
+ args: ['pointerleave.silent']
434
+ }] } });
581
435
 
582
- var TuiTileService = /** @class */ (function () {
583
- function TuiTileService(el, tiles, resize$, mutation$) {
584
- this.el = el;
585
- this.tiles = tiles;
586
- this.resize$ = resize$;
587
- this.mutation$ = mutation$;
588
- this.sub = new i2.Subscription();
589
- this.offset$ = new i2.BehaviorSubject([NaN, NaN]);
590
- this.position$ = i2.combineLatest([
591
- this.offset$.pipe(operators.distinctUntilChanged(cdk.tuiArrayShallowEquals)),
592
- this.resize$.pipe(operators.startWith(null)),
593
- this.mutation$.pipe(operators.startWith(null)),
594
- this.tiles.order$.pipe(operators.debounceTime(0)),
595
- ]).pipe(operators.map(function (_a) {
596
- var _b = __read(_a, 1), offset = _b[0];
597
- return offset;
598
- }));
599
- }
600
- TuiTileService.prototype.init = function (element) {
601
- var _this = this;
602
- this.sub.add(this.position$.subscribe(function (offset) {
603
- _this.setPosition(element, offset);
604
- _this.setRect(element, offset);
605
- }));
606
- };
607
- TuiTileService.prototype.setOffset = function (offset) {
608
- this.offset$.next(offset);
609
- };
610
- TuiTileService.prototype.ngOnDestroy = function () {
611
- this.sub.unsubscribe();
612
- };
613
- TuiTileService.prototype.getRect = function (_a) {
614
- var _b = __read(_a, 2), left = _b[0], top = _b[1];
615
- return {
616
- top: Number.isNaN(top) ? this.el.nativeElement.offsetTop : top,
617
- left: Number.isNaN(left) ? this.el.nativeElement.offsetLeft : left,
618
- width: this.el.nativeElement.clientWidth,
619
- height: this.el.nativeElement.clientHeight,
620
- right: NaN,
621
- bottom: NaN,
622
- };
623
- };
624
- TuiTileService.prototype.setRect = function (_a, offset) {
625
- var style = _a.style;
626
- var _b = this.getRect(offset), top = _b.top, left = _b.left, width = _b.width, height = _b.height;
627
- style.top = cdk.tuiPx(top);
628
- style.left = cdk.tuiPx(left);
629
- style.width = cdk.tuiPx(width);
630
- style.height = cdk.tuiPx(height);
631
- };
632
- TuiTileService.prototype.setPosition = function (element, _a) {
633
- var _b = __read(_a, 1), left = _b[0];
634
- if (!Number.isNaN(left)) {
635
- element.style.setProperty("position", "fixed");
636
- return;
637
- }
638
- var style = element.style;
639
- var rect = element.getBoundingClientRect();
640
- var host = this.el.nativeElement.getBoundingClientRect();
641
- style.removeProperty("position");
642
- style.top = cdk.tuiPx(rect.top - host.top + this.el.nativeElement.offsetTop);
643
- style.left = cdk.tuiPx(rect.left - host.left + this.el.nativeElement.offsetLeft);
644
- };
645
- return TuiTileService;
646
- }());
647
- TuiTileService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTileService, deps: [{ token: i0.ElementRef }, { token: TuiTilesComponent }, { token: cdk.TuiResizeService }, { token: mutationObserver.MutationObserverService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
648
- TuiTileService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTileService });
649
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTileService, decorators: [{
650
- type: i0.Injectable
651
- }], ctorParameters: function () {
652
- return [{ type: i0__namespace.ElementRef, decorators: [{
653
- type: i0.Inject,
654
- args: [i0.ElementRef]
655
- }] }, { type: TuiTilesComponent, decorators: [{
656
- type: i0.Inject,
657
- args: [TuiTilesComponent]
658
- }] }, { type: i2__namespace.Observable, decorators: [{
659
- type: i0.Inject,
660
- args: [cdk.TuiResizeService]
661
- }] }, { type: i2__namespace.Observable, decorators: [{
662
- type: i0.Inject,
663
- args: [mutationObserver.MutationObserverService]
664
- }] }];
665
- } });
436
+ var TuiTileService = /** @class */ (function () {
437
+ function TuiTileService(el, tiles, resize$, mutation$) {
438
+ this.el = el;
439
+ this.tiles = tiles;
440
+ this.resize$ = resize$;
441
+ this.mutation$ = mutation$;
442
+ this.sub = new i2.Subscription();
443
+ this.offset$ = new i2.BehaviorSubject([NaN, NaN]);
444
+ this.position$ = i2.combineLatest([
445
+ this.offset$.pipe(operators.distinctUntilChanged(cdk.tuiArrayShallowEquals)),
446
+ this.resize$.pipe(operators.startWith(null)),
447
+ this.mutation$.pipe(operators.startWith(null)),
448
+ this.tiles.order$.pipe(operators.debounceTime(0)),
449
+ ]).pipe(operators.map(function (_a) {
450
+ var _b = __read(_a, 1), offset = _b[0];
451
+ return offset;
452
+ }));
453
+ }
454
+ TuiTileService.prototype.init = function (element) {
455
+ var _this = this;
456
+ this.sub.add(this.position$.subscribe(function (offset) {
457
+ _this.setPosition(element, offset);
458
+ _this.setRect(element, offset);
459
+ }));
460
+ };
461
+ TuiTileService.prototype.setOffset = function (offset) {
462
+ this.offset$.next(offset);
463
+ };
464
+ TuiTileService.prototype.ngOnDestroy = function () {
465
+ this.sub.unsubscribe();
466
+ };
467
+ TuiTileService.prototype.getRect = function (_a) {
468
+ var _b = __read(_a, 2), left = _b[0], top = _b[1];
469
+ return {
470
+ top: Number.isNaN(top) ? this.el.nativeElement.offsetTop : top,
471
+ left: Number.isNaN(left) ? this.el.nativeElement.offsetLeft : left,
472
+ width: this.el.nativeElement.clientWidth,
473
+ height: this.el.nativeElement.clientHeight,
474
+ right: NaN,
475
+ bottom: NaN,
476
+ };
477
+ };
478
+ TuiTileService.prototype.setRect = function (_a, offset) {
479
+ var style = _a.style;
480
+ var _b = this.getRect(offset), top = _b.top, left = _b.left, width = _b.width, height = _b.height;
481
+ style.top = cdk.tuiPx(top);
482
+ style.left = cdk.tuiPx(left);
483
+ style.width = cdk.tuiPx(width);
484
+ style.height = cdk.tuiPx(height);
485
+ };
486
+ TuiTileService.prototype.setPosition = function (element, _a) {
487
+ var _b = __read(_a, 1), left = _b[0];
488
+ if (!Number.isNaN(left)) {
489
+ element.style.setProperty('position', 'fixed');
490
+ return;
491
+ }
492
+ var style = element.style;
493
+ var rect = element.getBoundingClientRect();
494
+ var host = this.el.nativeElement.getBoundingClientRect();
495
+ style.removeProperty('position');
496
+ style.top = cdk.tuiPx(rect.top - host.top + this.el.nativeElement.offsetTop);
497
+ style.left = cdk.tuiPx(rect.left - host.left + this.el.nativeElement.offsetLeft);
498
+ };
499
+ return TuiTileService;
500
+ }());
501
+ TuiTileService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTileService, deps: [{ token: i0.ElementRef }, { token: TuiTilesComponent }, { token: cdk.TuiResizeService }, { token: mutationObserver.MutationObserverService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
502
+ TuiTileService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTileService });
503
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTileService, decorators: [{
504
+ type: i0.Injectable
505
+ }], ctorParameters: function () {
506
+ return [{ type: i0__namespace.ElementRef, decorators: [{
507
+ type: i0.Inject,
508
+ args: [i0.ElementRef]
509
+ }] }, { type: TuiTilesComponent, decorators: [{
510
+ type: i0.Inject,
511
+ args: [TuiTilesComponent]
512
+ }] }, { type: i2__namespace.Observable, decorators: [{
513
+ type: i0.Inject,
514
+ args: [cdk.TuiResizeService]
515
+ }] }, { type: i2__namespace.Observable, decorators: [{
516
+ type: i0.Inject,
517
+ args: [mutationObserver.MutationObserverService]
518
+ }] }];
519
+ } });
666
520
 
667
- var TuiTileComponent = /** @class */ (function () {
668
- function TuiTileComponent(service, el, tiles) {
669
- this.service = service;
670
- this.el = el;
671
- this.tiles = tiles;
672
- this.width = 1;
673
- this.height = 1;
674
- this.dragged = false;
675
- }
676
- Object.defineProperty(TuiTileComponent.prototype, "column", {
677
- get: function () {
678
- return "span var(--tui-width, " + this.width + ")";
679
- },
680
- enumerable: false,
681
- configurable: true
682
- });
683
- Object.defineProperty(TuiTileComponent.prototype, "row", {
684
- get: function () {
685
- return "span var(--tui-height, " + this.height + ")";
686
- },
687
- enumerable: false,
688
- configurable: true
689
- });
690
- Object.defineProperty(TuiTileComponent.prototype, "element", {
691
- get: function () {
692
- return this.el.nativeElement;
693
- },
694
- enumerable: false,
695
- configurable: true
696
- });
697
- TuiTileComponent.prototype.onEnter = function () {
698
- this.tiles.rearrange(this.element);
699
- };
700
- TuiTileComponent.prototype.onDrag = function (offset) {
701
- var dragged = !Number.isNaN(offset[0]);
702
- this.dragged = this.dragged || dragged;
703
- this.tiles.element = dragged ? this.element : null;
704
- this.service.setOffset(offset);
705
- };
706
- TuiTileComponent.prototype.onTransitionEnd = function () {
707
- this.dragged = false;
708
- };
709
- TuiTileComponent.prototype.ngAfterViewInit = function () {
710
- if (this.wrapper) {
711
- this.service.init(this.wrapper.nativeElement);
712
- }
713
- };
714
- TuiTileComponent.prototype.ngOnDestroy = function () {
715
- if (this.tiles.element === this.element) {
716
- this.tiles.element = null;
717
- }
718
- };
719
- return TuiTileComponent;
720
- }());
721
- TuiTileComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTileComponent, deps: [{ token: TuiTileService }, { token: i0.ElementRef }, { token: TuiTilesComponent }], target: i0__namespace.ɵɵFactoryTarget.Component });
722
- TuiTileComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiTileComponent, selector: "tui-tile", inputs: { width: "width", height: "height" }, host: { listeners: { "pointerenter": "onEnter()" }, properties: { "class._dragged": "this.dragged", "style.gridColumn": "this.column", "style.gridRow": "this.row" } }, providers: [TuiTileService], viewQueries: [{ propertyName: "wrapper", first: true, predicate: ["wrapper"], descendants: true }], ngImport: i0__namespace, template: "<div\n #wrapper\n class=\"t-wrapper\"\n (transitionend.self)=\"onTransitionEnd()\"\n>\n <ng-content></ng-content>\n</div>\n", changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
723
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTileComponent, decorators: [{
724
- type: i0.Component,
725
- args: [{
726
- selector: 'tui-tile',
727
- templateUrl: './tile.template.html',
728
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
729
- providers: [TuiTileService],
730
- }]
731
- }], ctorParameters: function () {
732
- return [{ type: TuiTileService, decorators: [{
733
- type: i0.Inject,
734
- args: [TuiTileService]
735
- }] }, { type: i0__namespace.ElementRef, decorators: [{
736
- type: i0.Inject,
737
- args: [i0.ElementRef]
738
- }] }, { type: TuiTilesComponent, decorators: [{
739
- type: i0.Inject,
740
- args: [TuiTilesComponent]
741
- }] }];
742
- }, propDecorators: { wrapper: [{
743
- type: i0.ViewChild,
744
- args: ['wrapper']
745
- }], width: [{
746
- type: i0.Input
747
- }], height: [{
748
- type: i0.Input
749
- }], dragged: [{
750
- type: i0.HostBinding,
751
- args: ['class._dragged']
752
- }], column: [{
753
- type: i0.HostBinding,
754
- args: ['style.gridColumn']
755
- }], row: [{
756
- type: i0.HostBinding,
757
- args: ['style.gridRow']
758
- }], onEnter: [{
759
- type: i0.HostListener,
760
- args: ['pointerenter']
761
- }] } });
521
+ var TuiTileComponent = /** @class */ (function () {
522
+ function TuiTileComponent(service, el, tiles) {
523
+ this.service = service;
524
+ this.el = el;
525
+ this.tiles = tiles;
526
+ this.width = 1;
527
+ this.height = 1;
528
+ this.dragged = false;
529
+ }
530
+ Object.defineProperty(TuiTileComponent.prototype, "column", {
531
+ get: function () {
532
+ return "span var(--tui-width, " + this.width + ")";
533
+ },
534
+ enumerable: false,
535
+ configurable: true
536
+ });
537
+ Object.defineProperty(TuiTileComponent.prototype, "row", {
538
+ get: function () {
539
+ return "span var(--tui-height, " + this.height + ")";
540
+ },
541
+ enumerable: false,
542
+ configurable: true
543
+ });
544
+ Object.defineProperty(TuiTileComponent.prototype, "element", {
545
+ get: function () {
546
+ return this.el.nativeElement;
547
+ },
548
+ enumerable: false,
549
+ configurable: true
550
+ });
551
+ TuiTileComponent.prototype.onEnter = function () {
552
+ this.tiles.rearrange(this.element);
553
+ };
554
+ TuiTileComponent.prototype.onDrag = function (offset) {
555
+ var dragged = !Number.isNaN(offset[0]);
556
+ this.dragged = this.dragged || dragged;
557
+ this.tiles.element = dragged ? this.element : null;
558
+ this.service.setOffset(offset);
559
+ };
560
+ TuiTileComponent.prototype.onTransitionEnd = function () {
561
+ this.dragged = false;
562
+ };
563
+ TuiTileComponent.prototype.ngAfterViewInit = function () {
564
+ if (this.wrapper) {
565
+ this.service.init(this.wrapper.nativeElement);
566
+ }
567
+ };
568
+ TuiTileComponent.prototype.ngOnDestroy = function () {
569
+ if (this.tiles.element === this.element) {
570
+ this.tiles.element = null;
571
+ }
572
+ };
573
+ return TuiTileComponent;
574
+ }());
575
+ TuiTileComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTileComponent, deps: [{ token: TuiTileService }, { token: i0.ElementRef }, { token: TuiTilesComponent }], target: i0__namespace.ɵɵFactoryTarget.Component });
576
+ TuiTileComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiTileComponent, selector: "tui-tile", inputs: { width: "width", height: "height" }, host: { listeners: { "pointerenter": "onEnter()" }, properties: { "class._dragged": "this.dragged", "style.gridColumn": "this.column", "style.gridRow": "this.row" } }, providers: [TuiTileService], viewQueries: [{ propertyName: "wrapper", first: true, predicate: ["wrapper"], descendants: true }], ngImport: i0__namespace, template: "<div\n #wrapper\n class=\"t-wrapper\"\n (transitionend.self)=\"onTransitionEnd()\"\n>\n <ng-content></ng-content>\n</div>\n", changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
577
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTileComponent, decorators: [{
578
+ type: i0.Component,
579
+ args: [{
580
+ selector: 'tui-tile',
581
+ templateUrl: './tile.template.html',
582
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
583
+ providers: [TuiTileService],
584
+ }]
585
+ }], ctorParameters: function () {
586
+ return [{ type: TuiTileService, decorators: [{
587
+ type: i0.Inject,
588
+ args: [TuiTileService]
589
+ }] }, { type: i0__namespace.ElementRef, decorators: [{
590
+ type: i0.Inject,
591
+ args: [i0.ElementRef]
592
+ }] }, { type: TuiTilesComponent, decorators: [{
593
+ type: i0.Inject,
594
+ args: [TuiTilesComponent]
595
+ }] }];
596
+ }, propDecorators: { wrapper: [{
597
+ type: i0.ViewChild,
598
+ args: ['wrapper']
599
+ }], width: [{
600
+ type: i0.Input
601
+ }], height: [{
602
+ type: i0.Input
603
+ }], dragged: [{
604
+ type: i0.HostBinding,
605
+ args: ['class._dragged']
606
+ }], column: [{
607
+ type: i0.HostBinding,
608
+ args: ['style.gridColumn']
609
+ }], row: [{
610
+ type: i0.HostBinding,
611
+ args: ['style.gridRow']
612
+ }], onEnter: [{
613
+ type: i0.HostListener,
614
+ args: ['pointerenter']
615
+ }] } });
762
616
 
763
- function isInteracting(x) {
764
- if (x === void 0) { x = NaN; }
765
- return !Number.isNaN(x) || !Number.isNaN(this['x']);
766
- }
767
- function isDragging() {
768
- return !Number.isNaN(this['x']);
769
- }
770
- var TuiTileHandleDirective = /** @class */ (function () {
771
- function TuiTileHandleDirective(tile) {
772
- this.tile = tile;
773
- this.x = NaN;
774
- this.y = NaN;
775
- }
776
- TuiTileHandleDirective.prototype.onStart = function (event) {
777
- var target = cdk.tuiGetActualTarget(event);
778
- var x = event.x, y = event.y, pointerId = event.pointerId;
779
- if (cdk.tuiIsElement(target)) {
780
- target.releasePointerCapture(pointerId);
781
- }
782
- this.onPointer(x, y);
783
- };
784
- TuiTileHandleDirective.prototype.onPointer = function (x, y) {
785
- if (x === void 0) { x = NaN; }
786
- if (y === void 0) { y = NaN; }
787
- var _a = this.tile.element.getBoundingClientRect(), left = _a.left, top = _a.top;
788
- this.x = x - left;
789
- this.y = y - top;
790
- this.tile.onDrag([NaN, NaN]);
791
- };
792
- TuiTileHandleDirective.prototype.onMove = function (x, y) {
793
- this.tile.onDrag([x - this.x, y - this.y]);
794
- };
795
- return TuiTileHandleDirective;
796
- }());
797
- TuiTileHandleDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTileHandleDirective, deps: [{ token: TuiTileComponent }], target: i0__namespace.ɵɵFactoryTarget.Directive });
798
- TuiTileHandleDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiTileHandleDirective, selector: "[tuiTileHandle]", host: { listeners: { "pointerdown.silent": "onStart($event)", "document:pointerup.silent": "onPointer()", "document:pointermove.silent": "onMove($event.x,$event.y)" }, properties: { "style.touchAction": "\"none\"", "style.userSelect": "\"none\"" } }, ngImport: i0__namespace });
799
- __decorate([
800
- ngEventPlugins.shouldCall(isInteracting)
801
- ], TuiTileHandleDirective.prototype, "onPointer", null);
802
- __decorate([
803
- ngEventPlugins.shouldCall(isDragging)
804
- ], TuiTileHandleDirective.prototype, "onMove", null);
805
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTileHandleDirective, decorators: [{
806
- type: i0.Directive,
807
- args: [{
808
- selector: '[tuiTileHandle]',
809
- host: {
810
- '[style.touchAction]': '"none"',
811
- '[style.userSelect]': '"none"',
812
- },
813
- }]
814
- }], ctorParameters: function () {
815
- return [{ type: TuiTileComponent, decorators: [{
816
- type: i0.Inject,
817
- args: [TuiTileComponent]
818
- }] }];
819
- }, propDecorators: { onStart: [{
820
- type: i0.HostListener,
821
- args: ['pointerdown.silent', ['$event']]
822
- }], onPointer: [{
823
- type: i0.HostListener,
824
- args: ['document:pointerup.silent']
825
- }], onMove: [{
826
- type: i0.HostListener,
827
- args: ['document:pointermove.silent', ['$event.x', '$event.y']]
828
- }] } });
617
+ function isInteracting(x) {
618
+ if (x === void 0) { x = NaN; }
619
+ return !Number.isNaN(x) || !Number.isNaN(this['x']);
620
+ }
621
+ function isDragging() {
622
+ return !Number.isNaN(this['x']);
623
+ }
624
+ var TuiTileHandleDirective = /** @class */ (function () {
625
+ function TuiTileHandleDirective(tile) {
626
+ this.tile = tile;
627
+ this.x = NaN;
628
+ this.y = NaN;
629
+ }
630
+ TuiTileHandleDirective.prototype.onStart = function (event) {
631
+ var target = cdk.tuiGetActualTarget(event);
632
+ var x = event.x, y = event.y, pointerId = event.pointerId;
633
+ if (cdk.tuiIsElement(target)) {
634
+ target.releasePointerCapture(pointerId);
635
+ }
636
+ this.onPointer(x, y);
637
+ };
638
+ TuiTileHandleDirective.prototype.onPointer = function (x, y) {
639
+ if (x === void 0) { x = NaN; }
640
+ if (y === void 0) { y = NaN; }
641
+ var _a = this.tile.element.getBoundingClientRect(), left = _a.left, top = _a.top;
642
+ this.x = x - left;
643
+ this.y = y - top;
644
+ this.tile.onDrag([NaN, NaN]);
645
+ };
646
+ TuiTileHandleDirective.prototype.onMove = function (x, y) {
647
+ this.tile.onDrag([x - this.x, y - this.y]);
648
+ };
649
+ return TuiTileHandleDirective;
650
+ }());
651
+ TuiTileHandleDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTileHandleDirective, deps: [{ token: TuiTileComponent }], target: i0__namespace.ɵɵFactoryTarget.Directive });
652
+ TuiTileHandleDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiTileHandleDirective, selector: "[tuiTileHandle]", host: { listeners: { "pointerdown.silent": "onStart($event)", "document:pointerup.silent": "onPointer()", "document:pointermove.silent": "onMove($event.x,$event.y)" }, properties: { "style.touchAction": "\"none\"", "style.userSelect": "\"none\"" } }, ngImport: i0__namespace });
653
+ __decorate([
654
+ ngEventPlugins.shouldCall(isInteracting)
655
+ ], TuiTileHandleDirective.prototype, "onPointer", null);
656
+ __decorate([
657
+ ngEventPlugins.shouldCall(isDragging)
658
+ ], TuiTileHandleDirective.prototype, "onMove", null);
659
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTileHandleDirective, decorators: [{
660
+ type: i0.Directive,
661
+ args: [{
662
+ selector: '[tuiTileHandle]',
663
+ host: {
664
+ '[style.touchAction]': '"none"',
665
+ '[style.userSelect]': '"none"',
666
+ },
667
+ }]
668
+ }], ctorParameters: function () {
669
+ return [{ type: TuiTileComponent, decorators: [{
670
+ type: i0.Inject,
671
+ args: [TuiTileComponent]
672
+ }] }];
673
+ }, propDecorators: { onStart: [{
674
+ type: i0.HostListener,
675
+ args: ['pointerdown.silent', ['$event']]
676
+ }], onPointer: [{
677
+ type: i0.HostListener,
678
+ args: ['document:pointerup.silent']
679
+ }], onMove: [{
680
+ type: i0.HostListener,
681
+ args: ['document:pointermove.silent', ['$event.x', '$event.y']]
682
+ }] } });
829
683
 
830
- var TuiTilesModule = /** @class */ (function () {
831
- function TuiTilesModule() {
832
- }
833
- return TuiTilesModule;
834
- }());
835
- TuiTilesModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTilesModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
836
- TuiTilesModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTilesModule, declarations: [TuiTilesComponent, TuiTileComponent, TuiTileHandleDirective], exports: [TuiTilesComponent, TuiTileComponent, TuiTileHandleDirective] });
837
- TuiTilesModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTilesModule });
838
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTilesModule, decorators: [{
839
- type: i0.NgModule,
840
- args: [{
841
- declarations: [TuiTilesComponent, TuiTileComponent, TuiTileHandleDirective],
842
- exports: [TuiTilesComponent, TuiTileComponent, TuiTileHandleDirective],
843
- }]
844
- }] });
684
+ var TuiTilesModule = /** @class */ (function () {
685
+ function TuiTilesModule() {
686
+ }
687
+ return TuiTilesModule;
688
+ }());
689
+ TuiTilesModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTilesModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
690
+ TuiTilesModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTilesModule, declarations: [TuiTilesComponent, TuiTileComponent, TuiTileHandleDirective], exports: [TuiTilesComponent, TuiTileComponent, TuiTileHandleDirective] });
691
+ TuiTilesModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTilesModule });
692
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiTilesModule, decorators: [{
693
+ type: i0.NgModule,
694
+ args: [{
695
+ declarations: [TuiTilesComponent, TuiTileComponent, TuiTileHandleDirective],
696
+ exports: [TuiTilesComponent, TuiTileComponent, TuiTileHandleDirective],
697
+ }]
698
+ }] });
845
699
 
846
- /**
847
- * Generated bundle index. Do not edit.
848
- */
700
+ /**
701
+ * Generated bundle index. Do not edit.
702
+ */
849
703
 
850
- exports.TuiTileComponent = TuiTileComponent;
851
- exports.TuiTileHandleDirective = TuiTileHandleDirective;
852
- exports.TuiTileService = TuiTileService;
853
- exports.TuiTilesComponent = TuiTilesComponent;
854
- exports.TuiTilesModule = TuiTilesModule;
704
+ exports.TuiTileComponent = TuiTileComponent;
705
+ exports.TuiTileHandleDirective = TuiTileHandleDirective;
706
+ exports.TuiTileService = TuiTileService;
707
+ exports.TuiTilesComponent = TuiTilesComponent;
708
+ exports.TuiTilesModule = TuiTilesModule;
855
709
 
856
- Object.defineProperty(exports, '__esModule', { value: true });
710
+ Object.defineProperty(exports, '__esModule', { value: true });
857
711
 
858
712
  }));
859
713
  //# sourceMappingURL=taiga-ui-kit-components-tiles.umd.js.map