@taiga-ui/kit 3.10.0 → 3.12.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 (271) hide show
  1. package/bundles/taiga-ui-kit-components-accordion.umd.js +3 -1
  2. package/bundles/taiga-ui-kit-components-accordion.umd.js.map +1 -1
  3. package/bundles/taiga-ui-kit-components-arrow.umd.js.map +1 -1
  4. package/bundles/taiga-ui-kit-components-avatar.umd.js +9 -2
  5. package/bundles/taiga-ui-kit-components-avatar.umd.js.map +1 -1
  6. package/bundles/taiga-ui-kit-components-badge.umd.js.map +1 -1
  7. package/bundles/taiga-ui-kit-components-badged-content.umd.js.map +1 -1
  8. package/bundles/taiga-ui-kit-components-calendar-month.umd.js.map +1 -1
  9. package/bundles/taiga-ui-kit-components-calendar-range.umd.js +3 -1
  10. package/bundles/taiga-ui-kit-components-calendar-range.umd.js.map +1 -1
  11. package/bundles/taiga-ui-kit-components-checkbox-block.umd.js.map +1 -1
  12. package/bundles/taiga-ui-kit-components-combo-box.umd.js.map +1 -1
  13. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js.map +1 -1
  14. package/bundles/taiga-ui-kit-components-filter.umd.js.map +1 -1
  15. package/bundles/taiga-ui-kit-components-input-date-range.umd.js.map +1 -1
  16. package/bundles/taiga-ui-kit-components-input-date-time.umd.js +3 -1
  17. package/bundles/taiga-ui-kit-components-input-date-time.umd.js.map +1 -1
  18. package/bundles/taiga-ui-kit-components-input-date.umd.js +3 -1
  19. package/bundles/taiga-ui-kit-components-input-date.umd.js.map +1 -1
  20. package/bundles/taiga-ui-kit-components-input-files.umd.js +246 -69
  21. package/bundles/taiga-ui-kit-components-input-files.umd.js.map +1 -1
  22. package/bundles/taiga-ui-kit-components-input-inline.umd.js.map +1 -1
  23. package/bundles/taiga-ui-kit-components-input-month-range.umd.js +16 -2
  24. package/bundles/taiga-ui-kit-components-input-month-range.umd.js.map +1 -1
  25. package/bundles/taiga-ui-kit-components-input-month.umd.js +17 -3
  26. package/bundles/taiga-ui-kit-components-input-month.umd.js.map +1 -1
  27. package/bundles/taiga-ui-kit-components-input-password.umd.js.map +1 -1
  28. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js +20 -2
  29. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js.map +1 -1
  30. package/bundles/taiga-ui-kit-components-input-phone.umd.js +6 -2
  31. package/bundles/taiga-ui-kit-components-input-phone.umd.js.map +1 -1
  32. package/bundles/taiga-ui-kit-components-input-range.umd.js.map +1 -1
  33. package/bundles/taiga-ui-kit-components-input-tag.umd.js.map +1 -1
  34. package/bundles/taiga-ui-kit-components-input-time.umd.js.map +1 -1
  35. package/bundles/taiga-ui-kit-components-island.umd.js.map +1 -1
  36. package/bundles/taiga-ui-kit-components-marker-icon.umd.js.map +1 -1
  37. package/bundles/taiga-ui-kit-components-multi-select.umd.js.map +1 -1
  38. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js.map +1 -1
  39. package/bundles/taiga-ui-kit-components-push.umd.js +3 -1
  40. package/bundles/taiga-ui-kit-components-push.umd.js.map +1 -1
  41. package/bundles/taiga-ui-kit-components-radio-block.umd.js.map +1 -1
  42. package/bundles/taiga-ui-kit-components-range.umd.js +4 -2
  43. package/bundles/taiga-ui-kit-components-range.umd.js.map +1 -1
  44. package/bundles/taiga-ui-kit-components-select.umd.js.map +1 -1
  45. package/bundles/taiga-ui-kit-components-slider.umd.js +3 -1
  46. package/bundles/taiga-ui-kit-components-slider.umd.js.map +1 -1
  47. package/bundles/taiga-ui-kit-components-stepper.umd.js +20 -13
  48. package/bundles/taiga-ui-kit-components-stepper.umd.js.map +1 -1
  49. package/bundles/taiga-ui-kit-components-tag.umd.js.map +1 -1
  50. package/bundles/taiga-ui-kit-components-tiles.umd.js +645 -0
  51. package/bundles/taiga-ui-kit-components-tiles.umd.js.map +1 -0
  52. package/bundles/taiga-ui-kit-components.umd.js +10 -4
  53. package/bundles/taiga-ui-kit-components.umd.js.map +1 -1
  54. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js +3 -1
  55. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js.map +1 -1
  56. package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.js +3 -1
  57. package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.js.map +1 -1
  58. package/bundles/taiga-ui-kit-pipes-field-error.umd.js.map +1 -1
  59. package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.js.map +1 -1
  60. package/bundles/taiga-ui-kit-pipes-stringify.umd.js.map +1 -1
  61. package/bundles/taiga-ui-kit-tokens.umd.js.map +1 -1
  62. package/bundles/taiga-ui-kit-utils-mask.umd.js.map +1 -1
  63. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js.map +1 -1
  64. package/components/accordion/accordion.component.d.ts +1 -1
  65. package/components/arrow/arrow-options.d.ts +2 -2
  66. package/components/avatar/avatar-options.d.ts +1 -1
  67. package/components/avatar/avatar.component.d.ts +5 -3
  68. package/components/badge/badge.component.d.ts +1 -1
  69. package/components/badged-content/badged-content.component.d.ts +1 -1
  70. package/components/calendar-month/calendar-month.component.d.ts +1 -1
  71. package/components/calendar-range/calendar-range.component.d.ts +3 -3
  72. package/components/checkbox-block/checkbox-block.component.d.ts +1 -1
  73. package/components/combo-box/combo-box.component.d.ts +1 -1
  74. package/components/data-list-wrapper/data-list-wrapper.d.ts +3 -3
  75. package/components/filter/filter.component.d.ts +1 -1
  76. package/components/index.d.ts +1 -0
  77. package/components/input-date-range/input-date-range.component.d.ts +1 -1
  78. package/components/input-files/index.d.ts +2 -0
  79. package/components/input-files/input-files.component.d.ts +20 -6
  80. package/components/input-files/input-files.directive.d.ts +20 -0
  81. package/components/input-files/input-files.module.d.ts +8 -7
  82. package/components/input-files/input-files.options.d.ts +17 -0
  83. package/components/input-inline/input-inline.component.d.ts +1 -1
  84. package/components/input-month/input-month.component.d.ts +4 -2
  85. package/components/input-month-range/input-month-range.component.d.ts +4 -2
  86. package/components/input-password/input-password-options.d.ts +2 -2
  87. package/components/input-password/input-password.component.d.ts +3 -3
  88. package/components/input-phone/input-phone.component.d.ts +1 -1
  89. package/components/input-phone-international/input-phone-international.component.d.ts +1 -1
  90. package/components/input-phone-international/utils/extract-value-from-event.d.ts +1 -1
  91. package/components/input-range/input-range.component.d.ts +1 -1
  92. package/components/input-tag/input-tag-options.d.ts +1 -1
  93. package/components/input-tag/input-tag.component.d.ts +4 -4
  94. package/components/input-time/input-time-options.d.ts +2 -2
  95. package/components/island/island.component.d.ts +1 -1
  96. package/components/marker-icon/marker-icon.component.d.ts +1 -1
  97. package/components/multi-select/multi-select-group/multi-select-group.component.d.ts +1 -1
  98. package/components/multi-select/multi-select.component.d.ts +2 -2
  99. package/components/pdf-viewer/pdf-viewer.service.d.ts +1 -1
  100. package/components/push/push-alert.directive.d.ts +1 -1
  101. package/components/radio-block/radio-block.component.d.ts +1 -1
  102. package/components/range/range-change.directive.d.ts +2 -2
  103. package/components/range/range.component.d.ts +1 -1
  104. package/components/select/select.component.d.ts +1 -1
  105. package/components/slider/helpers/slider-readonly.directive.d.ts +2 -2
  106. package/components/stepper/step/step.component.d.ts +1 -1
  107. package/components/stepper/stepper.component.d.ts +3 -2
  108. package/components/tag/tag-options.d.ts +1 -1
  109. package/components/tag/tag.component.d.ts +2 -2
  110. package/components/tiles/index.d.ts +4 -0
  111. package/components/tiles/package.json +10 -0
  112. package/components/tiles/taiga-ui-kit-components-tiles.d.ts +5 -0
  113. package/components/tiles/tile-handle.directive.d.ts +13 -0
  114. package/components/tiles/tile.component.d.ts +30 -0
  115. package/components/tiles/tiles.component.d.ts +19 -0
  116. package/components/tiles/tiles.module.d.ts +10 -0
  117. package/directives/lazy-loading/lazy-loading.directive.d.ts +3 -2
  118. package/directives/lazy-loading/lazy-loading.service.d.ts +4 -3
  119. package/esm2015/components/accordion/accordion.component.js +5 -3
  120. package/esm2015/components/arrow/arrow-options.js +1 -1
  121. package/esm2015/components/avatar/avatar-options.js +1 -1
  122. package/esm2015/components/avatar/avatar.component.js +6 -3
  123. package/esm2015/components/badge/badge.component.js +1 -1
  124. package/esm2015/components/badged-content/badged-content.component.js +1 -1
  125. package/esm2015/components/calendar-month/calendar-month.component.js +1 -1
  126. package/esm2015/components/calendar-range/calendar-range.component.js +5 -3
  127. package/esm2015/components/checkbox-block/checkbox-block.component.js +1 -1
  128. package/esm2015/components/combo-box/combo-box.component.js +1 -1
  129. package/esm2015/components/data-list-wrapper/data-list-wrapper.js +1 -1
  130. package/esm2015/components/filter/filter.component.js +1 -1
  131. package/esm2015/components/index.js +2 -1
  132. package/esm2015/components/input-date/input-date.component.js +5 -3
  133. package/esm2015/components/input-date-range/input-date-range.component.js +1 -1
  134. package/esm2015/components/input-date-time/input-date-time.component.js +5 -3
  135. package/esm2015/components/input-files/index.js +3 -1
  136. package/esm2015/components/input-files/input-files.component.js +75 -26
  137. package/esm2015/components/input-files/input-files.directive.js +77 -0
  138. package/esm2015/components/input-files/input-files.module.js +12 -3
  139. package/esm2015/components/input-files/input-files.options.js +16 -0
  140. package/esm2015/components/input-inline/input-inline.component.js +1 -1
  141. package/esm2015/components/input-month/input-month.component.js +15 -5
  142. package/esm2015/components/input-month-range/input-month-range.component.js +14 -4
  143. package/esm2015/components/input-password/input-password-options.js +1 -1
  144. package/esm2015/components/input-password/input-password.component.js +1 -1
  145. package/esm2015/components/input-phone/input-phone.component.js +7 -3
  146. package/esm2015/components/input-phone-international/input-phone-international.component.js +13 -2
  147. package/esm2015/components/input-phone-international/tokens/countries-masks.js +9 -2
  148. package/esm2015/components/input-phone-international/utils/extract-value-from-event.js +1 -1
  149. package/esm2015/components/input-range/input-range.component.js +1 -1
  150. package/esm2015/components/input-tag/input-tag-options.js +1 -1
  151. package/esm2015/components/input-tag/input-tag.component.js +1 -1
  152. package/esm2015/components/input-time/input-time-options.js +1 -1
  153. package/esm2015/components/island/island.component.js +1 -1
  154. package/esm2015/components/marker-icon/marker-icon.component.js +1 -1
  155. package/esm2015/components/multi-select/hide-selected.pipe.js +1 -1
  156. package/esm2015/components/multi-select/multi-select-group/multi-select-group.component.js +1 -1
  157. package/esm2015/components/multi-select/multi-select.component.js +1 -1
  158. package/esm2015/components/pdf-viewer/pdf-viewer.service.js +1 -1
  159. package/esm2015/components/push/push-alert.directive.js +5 -3
  160. package/esm2015/components/radio-block/radio-block.component.js +1 -1
  161. package/esm2015/components/range/range-change.directive.js +5 -3
  162. package/esm2015/components/range/range.component.js +2 -2
  163. package/esm2015/components/select/select.component.js +1 -1
  164. package/esm2015/components/slider/helpers/slider-readonly.directive.js +5 -3
  165. package/esm2015/components/stepper/step/step.component.js +2 -2
  166. package/esm2015/components/stepper/stepper.component.js +12 -9
  167. package/esm2015/components/tag/tag-options.js +1 -1
  168. package/esm2015/components/tag/tag.component.js +1 -1
  169. package/esm2015/components/tiles/index.js +5 -0
  170. package/esm2015/components/tiles/taiga-ui-kit-components-tiles.js +5 -0
  171. package/esm2015/components/tiles/tile-handle.directive.js +53 -0
  172. package/esm2015/components/tiles/tile.component.js +102 -0
  173. package/esm2015/components/tiles/tiles.component.js +99 -0
  174. package/esm2015/components/tiles/tiles.module.js +20 -0
  175. package/esm2015/directives/lazy-loading/lazy-loading.directive.js +1 -1
  176. package/esm2015/directives/lazy-loading/lazy-loading.service.js +5 -3
  177. package/esm2015/internal/primitive-calendar-range/primitive-calendar-range.component.js +5 -3
  178. package/esm2015/pipes/field-error/field-error-pipe.js +1 -1
  179. package/esm2015/pipes/filter-by-input/filter-by-input-with.pipe.js +1 -1
  180. package/esm2015/pipes/filter-by-input/filter-by-input.base.js +1 -1
  181. package/esm2015/pipes/filter-by-input/filter-by-input.pipe.js +1 -1
  182. package/esm2015/pipes/stringify/stringify.pipe.js +1 -1
  183. package/esm2015/tokens/input-date-options.js +1 -1
  184. package/esm2015/tokens/validation-errors.js +1 -1
  185. package/esm2015/types/dropdown-position.js +1 -1
  186. package/esm2015/types/file-state.js +1 -1
  187. package/esm2015/types/marker-icon-mode.js +1 -1
  188. package/esm2015/types/status.js +1 -1
  189. package/esm2015/types/step-state.js +1 -1
  190. package/esm2015/types/time-format-parts.js +1 -1
  191. package/esm2015/utils/mask/create-auto-corrected-date-time-pipe.js +1 -1
  192. package/esm2015/utils/mask/create-time-mask.js +1 -1
  193. package/esm2015/utils/miscellaneous/is-flat.js +1 -1
  194. package/esm2015/utils/miscellaneous/replay-control-value-changes-factory.js +1 -1
  195. package/fesm2015/taiga-ui-kit-components-accordion.js +3 -1
  196. package/fesm2015/taiga-ui-kit-components-accordion.js.map +1 -1
  197. package/fesm2015/taiga-ui-kit-components-arrow.js.map +1 -1
  198. package/fesm2015/taiga-ui-kit-components-avatar.js +5 -2
  199. package/fesm2015/taiga-ui-kit-components-avatar.js.map +1 -1
  200. package/fesm2015/taiga-ui-kit-components-badge.js.map +1 -1
  201. package/fesm2015/taiga-ui-kit-components-badged-content.js.map +1 -1
  202. package/fesm2015/taiga-ui-kit-components-calendar-month.js.map +1 -1
  203. package/fesm2015/taiga-ui-kit-components-calendar-range.js +4 -2
  204. package/fesm2015/taiga-ui-kit-components-calendar-range.js.map +1 -1
  205. package/fesm2015/taiga-ui-kit-components-checkbox-block.js.map +1 -1
  206. package/fesm2015/taiga-ui-kit-components-combo-box.js.map +1 -1
  207. package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
  208. package/fesm2015/taiga-ui-kit-components-filter.js.map +1 -1
  209. package/fesm2015/taiga-ui-kit-components-input-date-range.js.map +1 -1
  210. package/fesm2015/taiga-ui-kit-components-input-date-time.js +4 -2
  211. package/fesm2015/taiga-ui-kit-components-input-date-time.js.map +1 -1
  212. package/fesm2015/taiga-ui-kit-components-input-date.js +4 -2
  213. package/fesm2015/taiga-ui-kit-components-input-date.js.map +1 -1
  214. package/fesm2015/taiga-ui-kit-components-input-files.js +167 -29
  215. package/fesm2015/taiga-ui-kit-components-input-files.js.map +1 -1
  216. package/fesm2015/taiga-ui-kit-components-input-inline.js.map +1 -1
  217. package/fesm2015/taiga-ui-kit-components-input-month-range.js +13 -3
  218. package/fesm2015/taiga-ui-kit-components-input-month-range.js.map +1 -1
  219. package/fesm2015/taiga-ui-kit-components-input-month.js +14 -4
  220. package/fesm2015/taiga-ui-kit-components-input-month.js.map +1 -1
  221. package/fesm2015/taiga-ui-kit-components-input-password.js.map +1 -1
  222. package/fesm2015/taiga-ui-kit-components-input-phone-international.js +20 -2
  223. package/fesm2015/taiga-ui-kit-components-input-phone-international.js.map +1 -1
  224. package/fesm2015/taiga-ui-kit-components-input-phone.js +6 -2
  225. package/fesm2015/taiga-ui-kit-components-input-phone.js.map +1 -1
  226. package/fesm2015/taiga-ui-kit-components-input-range.js.map +1 -1
  227. package/fesm2015/taiga-ui-kit-components-input-tag.js.map +1 -1
  228. package/fesm2015/taiga-ui-kit-components-input-time.js.map +1 -1
  229. package/fesm2015/taiga-ui-kit-components-island.js.map +1 -1
  230. package/fesm2015/taiga-ui-kit-components-marker-icon.js.map +1 -1
  231. package/fesm2015/taiga-ui-kit-components-multi-select.js.map +1 -1
  232. package/fesm2015/taiga-ui-kit-components-pdf-viewer.js.map +1 -1
  233. package/fesm2015/taiga-ui-kit-components-push.js +4 -2
  234. package/fesm2015/taiga-ui-kit-components-push.js.map +1 -1
  235. package/fesm2015/taiga-ui-kit-components-radio-block.js.map +1 -1
  236. package/fesm2015/taiga-ui-kit-components-range.js +4 -2
  237. package/fesm2015/taiga-ui-kit-components-range.js.map +1 -1
  238. package/fesm2015/taiga-ui-kit-components-select.js.map +1 -1
  239. package/fesm2015/taiga-ui-kit-components-slider.js +3 -1
  240. package/fesm2015/taiga-ui-kit-components-slider.js.map +1 -1
  241. package/fesm2015/taiga-ui-kit-components-stepper.js +12 -9
  242. package/fesm2015/taiga-ui-kit-components-stepper.js.map +1 -1
  243. package/fesm2015/taiga-ui-kit-components-tag.js.map +1 -1
  244. package/fesm2015/taiga-ui-kit-components-tiles.js +262 -0
  245. package/fesm2015/taiga-ui-kit-components-tiles.js.map +1 -0
  246. package/fesm2015/taiga-ui-kit-components.js +1 -0
  247. package/fesm2015/taiga-ui-kit-components.js.map +1 -1
  248. package/fesm2015/taiga-ui-kit-directives-lazy-loading.js +4 -2
  249. package/fesm2015/taiga-ui-kit-directives-lazy-loading.js.map +1 -1
  250. package/fesm2015/taiga-ui-kit-internal-primitive-calendar-range.js +4 -2
  251. package/fesm2015/taiga-ui-kit-internal-primitive-calendar-range.js.map +1 -1
  252. package/fesm2015/taiga-ui-kit-pipes-field-error.js.map +1 -1
  253. package/fesm2015/taiga-ui-kit-pipes-filter-by-input.js.map +1 -1
  254. package/fesm2015/taiga-ui-kit-pipes-stringify.js.map +1 -1
  255. package/fesm2015/taiga-ui-kit-tokens.js.map +1 -1
  256. package/fesm2015/taiga-ui-kit-utils-mask.js.map +1 -1
  257. package/fesm2015/taiga-ui-kit-utils-miscellaneous.js.map +1 -1
  258. package/internal/primitive-calendar-range/primitive-calendar-range.component.d.ts +1 -1
  259. package/package.json +8 -8
  260. package/pipes/field-error/field-error-pipe.d.ts +1 -1
  261. package/pipes/filter-by-input/filter-by-input.base.d.ts +1 -1
  262. package/pipes/stringify/stringify.pipe.d.ts +1 -1
  263. package/tokens/input-date-options.d.ts +1 -1
  264. package/types/dropdown-position.d.ts +1 -1
  265. package/types/file-state.d.ts +1 -1
  266. package/types/marker-icon-mode.d.ts +1 -1
  267. package/types/status.d.ts +1 -1
  268. package/types/step-state.d.ts +1 -1
  269. package/types/time-format-parts.d.ts +1 -1
  270. package/utils/miscellaneous/is-flat.d.ts +1 -1
  271. package/utils/miscellaneous/replay-control-value-changes-factory.d.ts +1 -1
@@ -0,0 +1,645 @@
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('@angular/common')) :
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', '@angular/common'], 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.ng.common));
5
+ })(this, (function (exports, i0, mutationObserver, cdk, i3, operators, i1) { 'use strict';
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
+ });
18
+ }
19
+ });
20
+ }
21
+ n["default"] = e;
22
+ return Object.freeze(n);
23
+ }
24
+
25
+ var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
+ var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
27
+ var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
28
+
29
+ /******************************************************************************
30
+ Copyright (c) Microsoft Corporation.
31
+
32
+ Permission to use, copy, modify, and/or distribute this software for any
33
+ purpose with or without fee is hereby granted.
34
+
35
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
36
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
37
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
38
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
39
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
40
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
41
+ PERFORMANCE OF THIS SOFTWARE.
42
+ ***************************************************************************** */
43
+ /* global Reflect, Promise */
44
+ var extendStatics = function (d, b) {
45
+ extendStatics = Object.setPrototypeOf ||
46
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
47
+ function (d, b) { for (var p in b)
48
+ if (Object.prototype.hasOwnProperty.call(b, p))
49
+ d[p] = b[p]; };
50
+ return extendStatics(d, b);
51
+ };
52
+ function __extends(d, b) {
53
+ if (typeof b !== "function" && b !== null)
54
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
55
+ extendStatics(d, b);
56
+ function __() { this.constructor = d; }
57
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
58
+ }
59
+ var __assign = function () {
60
+ __assign = Object.assign || function __assign(t) {
61
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
62
+ s = arguments[i];
63
+ for (var p in s)
64
+ if (Object.prototype.hasOwnProperty.call(s, p))
65
+ t[p] = s[p];
66
+ }
67
+ return t;
68
+ };
69
+ return __assign.apply(this, arguments);
70
+ };
71
+ function __rest(s, e) {
72
+ var t = {};
73
+ for (var p in s)
74
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
75
+ t[p] = s[p];
76
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
77
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
78
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
79
+ t[p[i]] = s[p[i]];
80
+ }
81
+ return t;
82
+ }
83
+ function __decorate(decorators, target, key, desc) {
84
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
85
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
86
+ r = Reflect.decorate(decorators, target, key, desc);
87
+ else
88
+ for (var i = decorators.length - 1; i >= 0; i--)
89
+ if (d = decorators[i])
90
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
91
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
92
+ }
93
+ function __param(paramIndex, decorator) {
94
+ return function (target, key) { decorator(target, key, paramIndex); };
95
+ }
96
+ function __metadata(metadataKey, metadataValue) {
97
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
98
+ return Reflect.metadata(metadataKey, metadataValue);
99
+ }
100
+ function __awaiter(thisArg, _arguments, P, generator) {
101
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
102
+ return new (P || (P = Promise))(function (resolve, reject) {
103
+ function fulfilled(value) { try {
104
+ step(generator.next(value));
105
+ }
106
+ catch (e) {
107
+ reject(e);
108
+ } }
109
+ function rejected(value) { try {
110
+ step(generator["throw"](value));
111
+ }
112
+ catch (e) {
113
+ reject(e);
114
+ } }
115
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
116
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
117
+ });
118
+ }
119
+ function __generator(thisArg, body) {
120
+ var _ = { label: 0, sent: function () { if (t[0] & 1)
121
+ throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
122
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
123
+ function verb(n) { return function (v) { return step([n, v]); }; }
124
+ function step(op) {
125
+ if (f)
126
+ throw new TypeError("Generator is already executing.");
127
+ while (g && (g = 0, op[0] && (_ = 0)), _)
128
+ try {
129
+ 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)
130
+ return t;
131
+ if (y = 0, t)
132
+ op = [op[0] & 2, t.value];
133
+ switch (op[0]) {
134
+ case 0:
135
+ case 1:
136
+ t = op;
137
+ break;
138
+ case 4:
139
+ _.label++;
140
+ return { value: op[1], done: false };
141
+ case 5:
142
+ _.label++;
143
+ y = op[1];
144
+ op = [0];
145
+ continue;
146
+ case 7:
147
+ op = _.ops.pop();
148
+ _.trys.pop();
149
+ continue;
150
+ default:
151
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
152
+ _ = 0;
153
+ continue;
154
+ }
155
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
156
+ _.label = op[1];
157
+ break;
158
+ }
159
+ if (op[0] === 6 && _.label < t[1]) {
160
+ _.label = t[1];
161
+ t = op;
162
+ break;
163
+ }
164
+ if (t && _.label < t[2]) {
165
+ _.label = t[2];
166
+ _.ops.push(op);
167
+ break;
168
+ }
169
+ if (t[2])
170
+ _.ops.pop();
171
+ _.trys.pop();
172
+ continue;
173
+ }
174
+ op = body.call(thisArg, _);
175
+ }
176
+ catch (e) {
177
+ op = [6, e];
178
+ y = 0;
179
+ }
180
+ finally {
181
+ f = t = 0;
182
+ }
183
+ if (op[0] & 5)
184
+ throw op[1];
185
+ return { value: op[0] ? op[1] : void 0, done: true };
186
+ }
187
+ }
188
+ var __createBinding = Object.create ? (function (o, m, k, k2) {
189
+ if (k2 === undefined)
190
+ k2 = k;
191
+ var desc = Object.getOwnPropertyDescriptor(m, k);
192
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
193
+ desc = { enumerable: true, get: function () { return m[k]; } };
194
+ }
195
+ Object.defineProperty(o, k2, desc);
196
+ }) : (function (o, m, k, k2) {
197
+ if (k2 === undefined)
198
+ k2 = k;
199
+ o[k2] = m[k];
200
+ });
201
+ function __exportStar(m, o) {
202
+ for (var p in m)
203
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
204
+ __createBinding(o, m, p);
205
+ }
206
+ function __values(o) {
207
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
208
+ if (m)
209
+ return m.call(o);
210
+ if (o && typeof o.length === "number")
211
+ return {
212
+ next: function () {
213
+ if (o && i >= o.length)
214
+ o = void 0;
215
+ return { value: o && o[i++], done: !o };
216
+ }
217
+ };
218
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
219
+ }
220
+ function __read(o, n) {
221
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
222
+ if (!m)
223
+ return o;
224
+ var i = m.call(o), r, ar = [], e;
225
+ try {
226
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
227
+ ar.push(r.value);
228
+ }
229
+ catch (error) {
230
+ e = { error: error };
231
+ }
232
+ finally {
233
+ try {
234
+ if (r && !r.done && (m = i["return"]))
235
+ m.call(i);
236
+ }
237
+ finally {
238
+ if (e)
239
+ throw e.error;
240
+ }
241
+ }
242
+ return ar;
243
+ }
244
+ /** @deprecated */
245
+ function __spread() {
246
+ for (var ar = [], i = 0; i < arguments.length; i++)
247
+ ar = ar.concat(__read(arguments[i]));
248
+ return ar;
249
+ }
250
+ /** @deprecated */
251
+ function __spreadArrays() {
252
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++)
253
+ s += arguments[i].length;
254
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
255
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
256
+ r[k] = a[j];
257
+ return r;
258
+ }
259
+ function __spreadArray(to, from, pack) {
260
+ if (pack || arguments.length === 2)
261
+ for (var i = 0, l = from.length, ar; i < l; i++) {
262
+ if (ar || !(i in from)) {
263
+ if (!ar)
264
+ ar = Array.prototype.slice.call(from, 0, i);
265
+ ar[i] = from[i];
266
+ }
267
+ }
268
+ return to.concat(ar || Array.prototype.slice.call(from));
269
+ }
270
+ function __await(v) {
271
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
272
+ }
273
+ function __asyncGenerator(thisArg, _arguments, generator) {
274
+ if (!Symbol.asyncIterator)
275
+ throw new TypeError("Symbol.asyncIterator is not defined.");
276
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
277
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
278
+ function verb(n) { if (g[n])
279
+ i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
280
+ function resume(n, v) { try {
281
+ step(g[n](v));
282
+ }
283
+ catch (e) {
284
+ settle(q[0][3], e);
285
+ } }
286
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
287
+ function fulfill(value) { resume("next", value); }
288
+ function reject(value) { resume("throw", value); }
289
+ function settle(f, v) { if (f(v), q.shift(), q.length)
290
+ resume(q[0][0], q[0][1]); }
291
+ }
292
+ function __asyncDelegator(o) {
293
+ var i, p;
294
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
295
+ 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; }
296
+ }
297
+ function __asyncValues(o) {
298
+ if (!Symbol.asyncIterator)
299
+ throw new TypeError("Symbol.asyncIterator is not defined.");
300
+ var m = o[Symbol.asyncIterator], i;
301
+ 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);
302
+ 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); }); }; }
303
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
304
+ }
305
+ function __makeTemplateObject(cooked, raw) {
306
+ if (Object.defineProperty) {
307
+ Object.defineProperty(cooked, "raw", { value: raw });
308
+ }
309
+ else {
310
+ cooked.raw = raw;
311
+ }
312
+ return cooked;
313
+ }
314
+ ;
315
+ var __setModuleDefault = Object.create ? (function (o, v) {
316
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
317
+ }) : function (o, v) {
318
+ o["default"] = v;
319
+ };
320
+ function __importStar(mod) {
321
+ if (mod && mod.__esModule)
322
+ return mod;
323
+ var result = {};
324
+ if (mod != null)
325
+ for (var k in mod)
326
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
327
+ __createBinding(result, mod, k);
328
+ __setModuleDefault(result, mod);
329
+ return result;
330
+ }
331
+ function __importDefault(mod) {
332
+ return (mod && mod.__esModule) ? mod : { default: mod };
333
+ }
334
+ function __classPrivateFieldGet(receiver, state, kind, f) {
335
+ if (kind === "a" && !f)
336
+ throw new TypeError("Private accessor was defined without a getter");
337
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
338
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
339
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
340
+ }
341
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
342
+ if (kind === "m")
343
+ throw new TypeError("Private method is not writable");
344
+ if (kind === "a" && !f)
345
+ throw new TypeError("Private accessor was defined without a setter");
346
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
347
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
348
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
349
+ }
350
+ function __classPrivateFieldIn(state, receiver) {
351
+ if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
352
+ throw new TypeError("Cannot use 'in' operator on non-object");
353
+ return typeof state === "function" ? receiver === state : state.has(receiver);
354
+ }
355
+
356
+ var TuiTilesComponent = /** @class */ (function () {
357
+ function TuiTilesComponent(elementRef) {
358
+ var _this = this;
359
+ this.elementRef = elementRef;
360
+ this.element$ = new i3.Subject();
361
+ this.debounce = 0;
362
+ this.orderChange = this.element$.pipe(operators.debounce(function () { return i3.timer(_this.debounce); }), operators.filter(this.filter.bind(this)), operators.map(function (element) { return _this.reorder(element); }));
363
+ this.element = null;
364
+ this.order$ = new i3.BehaviorSubject(new Map());
365
+ }
366
+ Object.defineProperty(TuiTilesComponent.prototype, "order", {
367
+ get: function () {
368
+ return this.order$.value;
369
+ },
370
+ set: function (map) {
371
+ this.order$.next(map);
372
+ },
373
+ enumerable: false,
374
+ configurable: true
375
+ });
376
+ TuiTilesComponent.prototype.rearrange = function (element) {
377
+ this.element$.next(element);
378
+ };
379
+ TuiTilesComponent.prototype.filter = function (element) {
380
+ return !!this.element && !!element && this.element !== element;
381
+ };
382
+ TuiTilesComponent.prototype.reorder = function (element) {
383
+ var _a, _b;
384
+ var elements = Array.from(this.elementRef.nativeElement.children);
385
+ var currentIndex = elements.indexOf(this.element || element);
386
+ var newIndex = elements.indexOf(element);
387
+ var order = this.order.size
388
+ ? new Map(this.order)
389
+ : new Map(elements.map(function (_, index) { return [index, index]; }));
390
+ var dragged = (_a = order.get(currentIndex)) !== null && _a !== void 0 ? _a : currentIndex;
391
+ var placement = (_b = order.get(newIndex)) !== null && _b !== void 0 ? _b : newIndex;
392
+ order.set(currentIndex, placement);
393
+ order.set(newIndex, dragged);
394
+ this.order$.next(order);
395
+ return order;
396
+ };
397
+ return TuiTilesComponent;
398
+ }());
399
+ TuiTilesComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTilesComponent, deps: [{ token: i0.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
400
+ TuiTilesComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TuiTilesComponent, selector: "tui-tiles", inputs: { debounce: "debounce", order: "order" }, outputs: { orderChange: "orderChange" }, host: { listeners: { "pointerleave.silent": "rearrange()" }, properties: { "class._dragged": "this.element" } }, providers: [
401
+ cdk.TuiDestroyService,
402
+ cdk.TuiResizeService,
403
+ mutationObserver.MutationObserverService,
404
+ {
405
+ provide: mutationObserver.MUTATION_OBSERVER_INIT,
406
+ useValue: { childList: true },
407
+ },
408
+ ], ngImport: i0__namespace, template: "\n <ng-content></ng-content>\n ", 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}tui-tiles:not(._dragged) tui-tile._dragged>.t-wrapper{transition-property:all;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}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 });
409
+ __decorate([
410
+ cdk.tuiDefaultProp()
411
+ ], TuiTilesComponent.prototype, "debounce", void 0);
412
+ __decorate([
413
+ cdk.tuiDefaultProp()
414
+ ], TuiTilesComponent.prototype, "order", null);
415
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTilesComponent, decorators: [{
416
+ type: i0.Component,
417
+ args: [{
418
+ selector: "tui-tiles",
419
+ template: "\n <ng-content></ng-content>\n ",
420
+ styleUrls: ["tiles.style.less"],
421
+ encapsulation: i0.ViewEncapsulation.None,
422
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
423
+ providers: [
424
+ cdk.TuiDestroyService,
425
+ cdk.TuiResizeService,
426
+ mutationObserver.MutationObserverService,
427
+ {
428
+ provide: mutationObserver.MUTATION_OBSERVER_INIT,
429
+ useValue: { childList: true },
430
+ },
431
+ ],
432
+ }]
433
+ }], ctorParameters: function () {
434
+ return [{ type: i0__namespace.ElementRef, decorators: [{
435
+ type: i0.Inject,
436
+ args: [i0.ElementRef]
437
+ }] }];
438
+ }, propDecorators: { debounce: [{
439
+ type: i0.Input
440
+ }], order: [{
441
+ type: i0.Input
442
+ }], orderChange: [{
443
+ type: i0.Output
444
+ }], element: [{
445
+ type: i0.HostBinding,
446
+ args: ["class._dragged"]
447
+ }], rearrange: [{
448
+ type: i0.HostListener,
449
+ args: ["pointerleave.silent"]
450
+ }] } });
451
+
452
+ var TuiTileComponent = /** @class */ (function () {
453
+ function TuiTileComponent(ngZone, elementRef, tiles, resize$, mutation$) {
454
+ var _this = this;
455
+ this.ngZone = ngZone;
456
+ this.elementRef = elementRef;
457
+ this.tiles = tiles;
458
+ this.resize$ = resize$;
459
+ this.mutation$ = mutation$;
460
+ this.width = 1;
461
+ this.height = 1;
462
+ this.dragged = false;
463
+ this.offset$ = new i3.BehaviorSubject([0, 0]);
464
+ this.position$ = i3.combineLatest([
465
+ this.offset$.pipe(operators.distinctUntilChanged(cdk.tuiArrayShallowEquals)),
466
+ this.resize$.pipe(operators.startWith(null)),
467
+ this.mutation$.pipe(operators.startWith(null)),
468
+ this.tiles.order$.pipe(operators.debounceTime(0)),
469
+ ]).pipe(operators.map(function (_a) {
470
+ var _b = __read(_a, 1), _c = __read(_b[0], 2), left = _c[0], top = _c[1];
471
+ return ({
472
+ top: top || _this.element.offsetTop,
473
+ left: left || _this.element.offsetLeft,
474
+ width: _this.element.clientWidth,
475
+ height: _this.element.clientHeight,
476
+ });
477
+ }), cdk.tuiZonefull(this.ngZone));
478
+ }
479
+ Object.defineProperty(TuiTileComponent.prototype, "column", {
480
+ get: function () {
481
+ return "span var(--tui-width, " + this.width + ")";
482
+ },
483
+ enumerable: false,
484
+ configurable: true
485
+ });
486
+ Object.defineProperty(TuiTileComponent.prototype, "row", {
487
+ get: function () {
488
+ return "span var(--tui-height, " + this.height + ")";
489
+ },
490
+ enumerable: false,
491
+ configurable: true
492
+ });
493
+ Object.defineProperty(TuiTileComponent.prototype, "element", {
494
+ get: function () {
495
+ return this.elementRef.nativeElement;
496
+ },
497
+ enumerable: false,
498
+ configurable: true
499
+ });
500
+ TuiTileComponent.prototype.onEnter = function () {
501
+ this.tiles.rearrange(this.element);
502
+ };
503
+ TuiTileComponent.prototype.onDrag = function (dragged) {
504
+ this.dragged = this.dragged || dragged;
505
+ this.tiles.element = dragged ? this.element : null;
506
+ };
507
+ TuiTileComponent.prototype.onTransitionEnd = function () {
508
+ this.dragged = false;
509
+ };
510
+ return TuiTileComponent;
511
+ }());
512
+ TuiTileComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTileComponent, deps: [{ token: i0.NgZone }, { token: i0.ElementRef }, { token: TuiTilesComponent }, { token: cdk.TuiResizeService }, { token: mutationObserver.MutationObserverService }], target: i0__namespace.ɵɵFactoryTarget.Component });
513
+ TuiTileComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", 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" } }, ngImport: i0__namespace, template: "<div\n *ngIf=\"position$ | async as position\"\n class=\"t-wrapper\"\n [style.top.px]=\"position.top\"\n [style.left.px]=\"position.left\"\n [style.width.px]=\"position.width\"\n [style.height.px]=\"position.height\"\n (transitionend.self)=\"onTransitionEnd()\"\n>\n <ng-content></ng-content>\n</div>\n", directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i1__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
514
+ __decorate([
515
+ cdk.tuiDefaultProp()
516
+ ], TuiTileComponent.prototype, "width", void 0);
517
+ __decorate([
518
+ cdk.tuiDefaultProp()
519
+ ], TuiTileComponent.prototype, "height", void 0);
520
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTileComponent, decorators: [{
521
+ type: i0.Component,
522
+ args: [{
523
+ selector: "tui-tile",
524
+ templateUrl: "tile.template.html",
525
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
526
+ }]
527
+ }], ctorParameters: function () {
528
+ return [{ type: i0__namespace.NgZone, decorators: [{
529
+ type: i0.Inject,
530
+ args: [i0.NgZone]
531
+ }] }, { type: i0__namespace.ElementRef, decorators: [{
532
+ type: i0.Inject,
533
+ args: [i0.ElementRef]
534
+ }] }, { type: TuiTilesComponent, decorators: [{
535
+ type: i0.Inject,
536
+ args: [TuiTilesComponent]
537
+ }] }, { type: i3__namespace.Observable, decorators: [{
538
+ type: i0.Inject,
539
+ args: [cdk.TuiResizeService]
540
+ }] }, { type: i3__namespace.Observable, decorators: [{
541
+ type: i0.Inject,
542
+ args: [mutationObserver.MutationObserverService]
543
+ }] }];
544
+ }, propDecorators: { width: [{
545
+ type: i0.Input
546
+ }], height: [{
547
+ type: i0.Input
548
+ }], dragged: [{
549
+ type: i0.HostBinding,
550
+ args: ["class._dragged"]
551
+ }], column: [{
552
+ type: i0.HostBinding,
553
+ args: ["style.gridColumn"]
554
+ }], row: [{
555
+ type: i0.HostBinding,
556
+ args: ["style.gridRow"]
557
+ }], onEnter: [{
558
+ type: i0.HostListener,
559
+ args: ["pointerenter"]
560
+ }] } });
561
+
562
+ var TuiTileHandleDirective = /** @class */ (function () {
563
+ function TuiTileHandleDirective(tile) {
564
+ this.tile = tile;
565
+ this.x = NaN;
566
+ this.y = NaN;
567
+ }
568
+ TuiTileHandleDirective.prototype.onStart = function (_a) {
569
+ var x = _a.x, y = _a.y, pointerId = _a.pointerId, target = _a.target;
570
+ if (cdk.tuiIsElement(target)) {
571
+ target.releasePointerCapture(pointerId);
572
+ }
573
+ this.onPointer(x, y);
574
+ };
575
+ TuiTileHandleDirective.prototype.onPointer = function (x, y) {
576
+ if (x === void 0) { x = NaN; }
577
+ if (y === void 0) { y = NaN; }
578
+ this.x = x - this.tile.element.offsetLeft;
579
+ this.y = y - this.tile.element.offsetTop;
580
+ this.tile.onDrag(!Number.isNaN(x));
581
+ this.tile.offset$.next([0, 0]);
582
+ };
583
+ TuiTileHandleDirective.prototype.onMove = function (x, y) {
584
+ if (!Number.isNaN(this.x)) {
585
+ this.tile.offset$.next([x - this.x, y - this.y]);
586
+ }
587
+ };
588
+ return TuiTileHandleDirective;
589
+ }());
590
+ TuiTileHandleDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTileHandleDirective, deps: [{ token: TuiTileComponent }], target: i0__namespace.ɵɵFactoryTarget.Directive });
591
+ TuiTileHandleDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiTileHandleDirective, selector: "[tuiTileHandle]", host: { listeners: { "pointerdown.silent.prevent": "onStart($event)", "document:pointerup.silent": "onPointer()", "document:pointermove.silent": "onMove($event.x,$event.y)" }, properties: { "style.touchAction": "\"none\"" } }, ngImport: i0__namespace });
592
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTileHandleDirective, decorators: [{
593
+ type: i0.Directive,
594
+ args: [{
595
+ selector: "[tuiTileHandle]",
596
+ host: {
597
+ '[style.touchAction]': "\"none\"",
598
+ },
599
+ }]
600
+ }], ctorParameters: function () {
601
+ return [{ type: TuiTileComponent, decorators: [{
602
+ type: i0.Inject,
603
+ args: [TuiTileComponent]
604
+ }] }];
605
+ }, propDecorators: { onStart: [{
606
+ type: i0.HostListener,
607
+ args: ["pointerdown.silent.prevent", ["$event"]]
608
+ }], onPointer: [{
609
+ type: i0.HostListener,
610
+ args: ["document:pointerup.silent"]
611
+ }], onMove: [{
612
+ type: i0.HostListener,
613
+ args: ["document:pointermove.silent", ["$event.x", "$event.y"]]
614
+ }] } });
615
+
616
+ var TuiTilesModule = /** @class */ (function () {
617
+ function TuiTilesModule() {
618
+ }
619
+ return TuiTilesModule;
620
+ }());
621
+ TuiTilesModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTilesModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
622
+ TuiTilesModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTilesModule, declarations: [TuiTilesComponent, TuiTileComponent, TuiTileHandleDirective], imports: [i1.CommonModule], exports: [TuiTilesComponent, TuiTileComponent, TuiTileHandleDirective] });
623
+ TuiTilesModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTilesModule, imports: [[i1.CommonModule]] });
624
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTilesModule, decorators: [{
625
+ type: i0.NgModule,
626
+ args: [{
627
+ imports: [i1.CommonModule],
628
+ declarations: [TuiTilesComponent, TuiTileComponent, TuiTileHandleDirective],
629
+ exports: [TuiTilesComponent, TuiTileComponent, TuiTileHandleDirective],
630
+ }]
631
+ }] });
632
+
633
+ /**
634
+ * Generated bundle index. Do not edit.
635
+ */
636
+
637
+ exports.TuiTileComponent = TuiTileComponent;
638
+ exports.TuiTileHandleDirective = TuiTileHandleDirective;
639
+ exports.TuiTilesComponent = TuiTilesComponent;
640
+ exports.TuiTilesModule = TuiTilesModule;
641
+
642
+ Object.defineProperty(exports, '__esModule', { value: true });
643
+
644
+ }));
645
+ //# sourceMappingURL=taiga-ui-kit-components-tiles.umd.js.map