@taiga-ui/addon-table 2.55.0 → 3.0.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (282) hide show
  1. package/bundles/taiga-ui-addon-table-components-reorder.umd.js +423 -298
  2. package/bundles/taiga-ui-addon-table-components-reorder.umd.js.map +1 -1
  3. package/bundles/taiga-ui-addon-table-components-table-pagination.umd.js +445 -313
  4. package/bundles/taiga-ui-addon-table-components-table-pagination.umd.js.map +1 -1
  5. package/bundles/taiga-ui-addon-table-components-table.umd.js +859 -646
  6. package/bundles/taiga-ui-addon-table-components-table.umd.js.map +1 -1
  7. package/bundles/taiga-ui-addon-table-components.umd.js +11 -25
  8. package/bundles/taiga-ui-addon-table-components.umd.js.map +1 -1
  9. package/bundles/taiga-ui-addon-table-directives-table-filters.umd.js +453 -320
  10. package/bundles/taiga-ui-addon-table-directives-table-filters.umd.js.map +1 -1
  11. package/bundles/taiga-ui-addon-table-directives.umd.js +5 -7
  12. package/bundles/taiga-ui-addon-table-directives.umd.js.map +1 -1
  13. package/bundles/taiga-ui-addon-table-interfaces.umd.js +2 -2
  14. package/bundles/taiga-ui-addon-table-interfaces.umd.js.map +1 -1
  15. package/bundles/taiga-ui-addon-table-tokens.umd.js +10 -6
  16. package/bundles/taiga-ui-addon-table-tokens.umd.js.map +1 -1
  17. package/bundles/taiga-ui-addon-table-types.umd.js +2 -2
  18. package/bundles/taiga-ui-addon-table-types.umd.js.map +1 -1
  19. package/bundles/taiga-ui-addon-table-utils.umd.js +8 -4
  20. package/bundles/taiga-ui-addon-table-utils.umd.js.map +1 -1
  21. package/bundles/taiga-ui-addon-table.umd.js +19 -21
  22. package/bundles/taiga-ui-addon-table.umd.js.map +1 -1
  23. package/components/index.d.ts +0 -1
  24. package/components/package.json +2 -5
  25. package/components/reorder/package.json +2 -5
  26. package/components/reorder/reorder.component.d.ts +3 -0
  27. package/components/reorder/reorder.module.d.ts +9 -0
  28. package/components/reorder/taiga-ui-addon-table-components-reorder.d.ts +1 -0
  29. package/components/table/directives/cell.directive.d.ts +3 -0
  30. package/components/table/directives/head.directive.d.ts +3 -0
  31. package/components/table/directives/resized.directive.d.ts +3 -0
  32. package/components/table/directives/row.directive.d.ts +3 -0
  33. package/components/table/directives/sort-by.directive.d.ts +3 -0
  34. package/components/table/directives/sortable.directive.d.ts +3 -0
  35. package/components/table/directives/table.directive.d.ts +5 -2
  36. package/components/table/directives/thead.directive.d.ts +3 -0
  37. package/components/table/package.json +2 -5
  38. package/components/table/pipes/table-sort.pipe.d.ts +3 -0
  39. package/components/table/providers/table.provider.d.ts +0 -2
  40. package/components/table/providers/table.providers.d.ts +0 -4
  41. package/components/table/table.module.d.ts +22 -0
  42. package/components/table/taiga-ui-addon-table-components-table.d.ts +1 -0
  43. package/components/table/tbody/tbody.component.d.ts +3 -0
  44. package/components/table/td/td.component.d.ts +3 -0
  45. package/components/table/th/th.component.d.ts +3 -0
  46. package/components/table/th-group/th-group.component.d.ts +3 -0
  47. package/components/table/tr/tr.component.d.ts +3 -0
  48. package/components/table-pagination/package.json +2 -5
  49. package/components/table-pagination/table-pagination.component.d.ts +3 -0
  50. package/components/table-pagination/table-pagination.module.d.ts +8 -0
  51. package/components/table-pagination/taiga-ui-addon-table-components-table-pagination.d.ts +1 -0
  52. package/components/taiga-ui-addon-table-components.d.ts +1 -0
  53. package/directives/package.json +2 -5
  54. package/directives/table-filters/generic-filter.directive.d.ts +3 -0
  55. package/directives/table-filters/package.json +2 -5
  56. package/directives/table-filters/table-filter.directive.d.ts +3 -0
  57. package/directives/table-filters/table-filters.directive.d.ts +3 -0
  58. package/directives/table-filters/table-filters.module.d.ts +8 -0
  59. package/directives/table-filters/table-filters.pipe.d.ts +3 -0
  60. package/directives/table-filters/taiga-ui-addon-table-directives-table-filters.d.ts +1 -0
  61. package/directives/taiga-ui-addon-table-directives.d.ts +1 -0
  62. package/esm2015/components/index.js +1 -2
  63. package/esm2015/components/reorder/index.js +1 -1
  64. package/esm2015/components/reorder/reorder.component.js +35 -29
  65. package/esm2015/components/reorder/reorder.module.js +26 -13
  66. package/esm2015/components/reorder/taiga-ui-addon-table-components-reorder.js +1 -1
  67. package/esm2015/components/table/directives/cell.directive.js +19 -16
  68. package/esm2015/components/table/directives/head.directive.js +17 -17
  69. package/esm2015/components/table/directives/resized.directive.js +25 -23
  70. package/esm2015/components/table/directives/row.directive.js +18 -15
  71. package/esm2015/components/table/directives/sort-by.directive.js +26 -23
  72. package/esm2015/components/table/directives/sortable.directive.js +24 -18
  73. package/esm2015/components/table/directives/table.directive.js +49 -40
  74. package/esm2015/components/table/directives/thead.directive.js +33 -25
  75. package/esm2015/components/table/index.js +1 -1
  76. package/esm2015/components/table/pipes/table-sort.pipe.js +18 -15
  77. package/esm2015/components/table/providers/stuck.provider.js +3 -3
  78. package/esm2015/components/table/providers/table.provider.js +3 -5
  79. package/esm2015/components/table/providers/table.providers.js +7 -11
  80. package/esm2015/components/table/table.module.js +69 -41
  81. package/esm2015/components/table/taiga-ui-addon-table-components-table.js +1 -1
  82. package/esm2015/components/table/tbody/tbody.component.js +44 -33
  83. package/esm2015/components/table/td/td.component.js +25 -17
  84. package/esm2015/components/table/th/th.component.js +55 -35
  85. package/esm2015/components/table/th-group/th-group.component.js +27 -23
  86. package/esm2015/components/table/tr/tr.component.js +28 -22
  87. package/esm2015/components/table-pagination/index.js +1 -1
  88. package/esm2015/components/table-pagination/table-pagination-options.js +2 -2
  89. package/esm2015/components/table-pagination/table-pagination.component.js +40 -31
  90. package/esm2015/components/table-pagination/table-pagination.module.js +30 -13
  91. package/esm2015/components/table-pagination/taiga-ui-addon-table-components-table-pagination.js +1 -1
  92. package/esm2015/components/taiga-ui-addon-table-components.js +1 -1
  93. package/esm2015/directives/index.js +1 -1
  94. package/esm2015/directives/table-filters/abstract-table-filter.js +1 -1
  95. package/esm2015/directives/table-filters/generic-filter.directive.js +25 -20
  96. package/esm2015/directives/table-filters/index.js +2 -1
  97. package/esm2015/directives/table-filters/table-filter.directive.js +32 -24
  98. package/esm2015/directives/table-filters/table-filter.js +2 -1
  99. package/esm2015/directives/table-filters/table-filters.directive.js +12 -10
  100. package/esm2015/directives/table-filters/table-filters.module.js +30 -21
  101. package/esm2015/directives/table-filters/table-filters.pipe.js +16 -14
  102. package/esm2015/directives/table-filters/taiga-ui-addon-table-directives-table-filters.js +1 -1
  103. package/esm2015/directives/taiga-ui-addon-table-directives.js +1 -1
  104. package/esm2015/index.js +2 -1
  105. package/esm2015/interfaces/index.js +2 -1
  106. package/esm2015/interfaces/row-context.js +2 -1
  107. package/esm2015/interfaces/taiga-ui-addon-table-interfaces.js +2 -1
  108. package/esm2015/taiga-ui-addon-table.js +1 -1
  109. package/esm2015/tokens/i18n.js +5 -5
  110. package/esm2015/tokens/index.js +1 -1
  111. package/esm2015/tokens/taiga-ui-addon-table-tokens.js +1 -1
  112. package/esm2015/types/comparator.js +2 -1
  113. package/esm2015/types/index.js +2 -1
  114. package/esm2015/types/taiga-ui-addon-table-types.js +2 -1
  115. package/esm2015/utils/default-sort.js +3 -3
  116. package/esm2015/utils/index.js +1 -1
  117. package/esm2015/utils/taiga-ui-addon-table-utils.js +1 -1
  118. package/fesm2015/taiga-ui-addon-table-components-reorder.js +60 -39
  119. package/fesm2015/taiga-ui-addon-table-components-reorder.js.map +1 -1
  120. package/fesm2015/taiga-ui-addon-table-components-table-pagination.js +69 -41
  121. package/fesm2015/taiga-ui-addon-table-components-table-pagination.js.map +1 -1
  122. package/fesm2015/taiga-ui-addon-table-components-table.js +435 -337
  123. package/fesm2015/taiga-ui-addon-table-components-table.js.map +1 -1
  124. package/fesm2015/taiga-ui-addon-table-components.js +0 -1
  125. package/fesm2015/taiga-ui-addon-table-components.js.map +1 -1
  126. package/fesm2015/taiga-ui-addon-table-directives-table-filters.js +104 -76
  127. package/fesm2015/taiga-ui-addon-table-directives-table-filters.js.map +1 -1
  128. package/fesm2015/taiga-ui-addon-table-directives.js.map +1 -1
  129. package/fesm2015/taiga-ui-addon-table-interfaces.js.map +1 -1
  130. package/fesm2015/taiga-ui-addon-table-tokens.js +4 -4
  131. package/fesm2015/taiga-ui-addon-table-tokens.js.map +1 -1
  132. package/fesm2015/taiga-ui-addon-table-types.js.map +1 -1
  133. package/fesm2015/taiga-ui-addon-table-utils.js +2 -2
  134. package/fesm2015/taiga-ui-addon-table-utils.js.map +1 -1
  135. package/fesm2015/taiga-ui-addon-table.js +1 -0
  136. package/fesm2015/taiga-ui-addon-table.js.map +1 -1
  137. package/interfaces/package.json +2 -5
  138. package/interfaces/taiga-ui-addon-table-interfaces.d.ts +1 -0
  139. package/package.json +12 -15
  140. package/taiga-ui-addon-table.d.ts +1 -0
  141. package/tokens/package.json +2 -5
  142. package/tokens/taiga-ui-addon-table-tokens.d.ts +1 -0
  143. package/types/package.json +2 -5
  144. package/types/taiga-ui-addon-table-types.d.ts +1 -0
  145. package/utils/package.json +2 -5
  146. package/utils/taiga-ui-addon-table-utils.d.ts +1 -0
  147. package/bundles/taiga-ui-addon-table-components-reorder.umd.min.js +0 -2
  148. package/bundles/taiga-ui-addon-table-components-reorder.umd.min.js.map +0 -1
  149. package/bundles/taiga-ui-addon-table-components-resizable-column.umd.js +0 -338
  150. package/bundles/taiga-ui-addon-table-components-resizable-column.umd.js.map +0 -1
  151. package/bundles/taiga-ui-addon-table-components-resizable-column.umd.min.js +0 -2
  152. package/bundles/taiga-ui-addon-table-components-resizable-column.umd.min.js.map +0 -1
  153. package/bundles/taiga-ui-addon-table-components-table-pagination.umd.min.js +0 -2
  154. package/bundles/taiga-ui-addon-table-components-table-pagination.umd.min.js.map +0 -1
  155. package/bundles/taiga-ui-addon-table-components-table.umd.min.js +0 -2
  156. package/bundles/taiga-ui-addon-table-components-table.umd.min.js.map +0 -1
  157. package/bundles/taiga-ui-addon-table-components.umd.min.js +0 -2
  158. package/bundles/taiga-ui-addon-table-components.umd.min.js.map +0 -1
  159. package/bundles/taiga-ui-addon-table-directives-table-filters.umd.min.js +0 -2
  160. package/bundles/taiga-ui-addon-table-directives-table-filters.umd.min.js.map +0 -1
  161. package/bundles/taiga-ui-addon-table-directives.umd.min.js +0 -2
  162. package/bundles/taiga-ui-addon-table-directives.umd.min.js.map +0 -1
  163. package/bundles/taiga-ui-addon-table-interfaces.umd.min.js +0 -2
  164. package/bundles/taiga-ui-addon-table-interfaces.umd.min.js.map +0 -1
  165. package/bundles/taiga-ui-addon-table-tokens.umd.min.js +0 -2
  166. package/bundles/taiga-ui-addon-table-tokens.umd.min.js.map +0 -1
  167. package/bundles/taiga-ui-addon-table-types.umd.min.js +0 -2
  168. package/bundles/taiga-ui-addon-table-types.umd.min.js.map +0 -1
  169. package/bundles/taiga-ui-addon-table-utils.umd.min.js +0 -2
  170. package/bundles/taiga-ui-addon-table-utils.umd.min.js.map +0 -1
  171. package/bundles/taiga-ui-addon-table.umd.min.js +0 -2
  172. package/bundles/taiga-ui-addon-table.umd.min.js.map +0 -1
  173. package/components/reorder/taiga-ui-addon-table-components-reorder.metadata.json +0 -1
  174. package/components/resizable-column/index.d.ts +0 -3
  175. package/components/resizable-column/package.json +0 -13
  176. package/components/resizable-column/resizable-column.component.d.ts +0 -5
  177. package/components/resizable-column/resizable-column.directive.d.ts +0 -9
  178. package/components/resizable-column/resizable-column.module.d.ts +0 -3
  179. package/components/resizable-column/taiga-ui-addon-table-components-resizable-column.d.ts +0 -4
  180. package/components/resizable-column/taiga-ui-addon-table-components-resizable-column.metadata.json +0 -1
  181. package/components/table/taiga-ui-addon-table-components-table.metadata.json +0 -1
  182. package/components/table-pagination/taiga-ui-addon-table-components-table-pagination.metadata.json +0 -1
  183. package/components/taiga-ui-addon-table-components.metadata.json +0 -1
  184. package/directives/table-filters/taiga-ui-addon-table-directives-table-filters.metadata.json +0 -1
  185. package/directives/taiga-ui-addon-table-directives.metadata.json +0 -1
  186. package/esm2015/components/resizable-column/index.js +0 -4
  187. package/esm2015/components/resizable-column/resizable-column.component.js +0 -30
  188. package/esm2015/components/resizable-column/resizable-column.directive.js +0 -37
  189. package/esm2015/components/resizable-column/resizable-column.module.js +0 -15
  190. package/esm2015/components/resizable-column/taiga-ui-addon-table-components-resizable-column.js +0 -5
  191. package/esm5/components/index.js +0 -5
  192. package/esm5/components/reorder/index.js +0 -3
  193. package/esm5/components/reorder/reorder.component.js +0 -72
  194. package/esm5/components/reorder/reorder.module.js +0 -27
  195. package/esm5/components/reorder/taiga-ui-addon-table-components-reorder.js +0 -5
  196. package/esm5/components/resizable-column/index.js +0 -4
  197. package/esm5/components/resizable-column/resizable-column.component.js +0 -31
  198. package/esm5/components/resizable-column/resizable-column.directive.js +0 -42
  199. package/esm5/components/resizable-column/resizable-column.module.js +0 -18
  200. package/esm5/components/resizable-column/taiga-ui-addon-table-components-resizable-column.js +0 -5
  201. package/esm5/components/table/directives/cell.directive.js +0 -25
  202. package/esm5/components/table/directives/head.directive.js +0 -22
  203. package/esm5/components/table/directives/resized.directive.js +0 -41
  204. package/esm5/components/table/directives/row.directive.js +0 -28
  205. package/esm5/components/table/directives/sort-by.directive.js +0 -41
  206. package/esm5/components/table/directives/sortable.directive.js +0 -52
  207. package/esm5/components/table/directives/table.directive.js +0 -88
  208. package/esm5/components/table/directives/thead.directive.js +0 -33
  209. package/esm5/components/table/index.js +0 -19
  210. package/esm5/components/table/pipes/table-sort.pipe.js +0 -31
  211. package/esm5/components/table/providers/stuck.provider.js +0 -21
  212. package/esm5/components/table/providers/table.provider.js +0 -17
  213. package/esm5/components/table/providers/table.providers.js +0 -48
  214. package/esm5/components/table/table.module.js +0 -63
  215. package/esm5/components/table/taiga-ui-addon-table-components-table.js +0 -5
  216. package/esm5/components/table/tbody/tbody.component.js +0 -70
  217. package/esm5/components/table/td/td.component.js +0 -22
  218. package/esm5/components/table/th/th.component.js +0 -88
  219. package/esm5/components/table/th-group/th-group.component.js +0 -42
  220. package/esm5/components/table/tr/tr.component.js +0 -45
  221. package/esm5/components/table-pagination/index.js +0 -4
  222. package/esm5/components/table-pagination/table-pagination-options.js +0 -17
  223. package/esm5/components/table-pagination/table-pagination.component.js +0 -113
  224. package/esm5/components/table-pagination/table-pagination.module.js +0 -28
  225. package/esm5/components/table-pagination/taiga-ui-addon-table-components-table-pagination.js +0 -5
  226. package/esm5/components/taiga-ui-addon-table-components.js +0 -5
  227. package/esm5/directives/index.js +0 -2
  228. package/esm5/directives/table-filters/abstract-table-filter.js +0 -7
  229. package/esm5/directives/table-filters/generic-filter.directive.js +0 -34
  230. package/esm5/directives/table-filters/index.js +0 -7
  231. package/esm5/directives/table-filters/table-filter.directive.js +0 -59
  232. package/esm5/directives/table-filters/table-filter.js +0 -1
  233. package/esm5/directives/table-filters/table-filters.directive.js +0 -39
  234. package/esm5/directives/table-filters/table-filters.module.js +0 -29
  235. package/esm5/directives/table-filters/table-filters.pipe.js +0 -23
  236. package/esm5/directives/table-filters/taiga-ui-addon-table-directives-table-filters.js +0 -5
  237. package/esm5/directives/taiga-ui-addon-table-directives.js +0 -5
  238. package/esm5/index.js +0 -5
  239. package/esm5/interfaces/index.js +0 -1
  240. package/esm5/interfaces/row-context.js +0 -1
  241. package/esm5/interfaces/taiga-ui-addon-table-interfaces.js +0 -4
  242. package/esm5/taiga-ui-addon-table.js +0 -5
  243. package/esm5/tokens/i18n.js +0 -9
  244. package/esm5/tokens/index.js +0 -2
  245. package/esm5/tokens/taiga-ui-addon-table-tokens.js +0 -5
  246. package/esm5/types/comparator.js +0 -1
  247. package/esm5/types/index.js +0 -1
  248. package/esm5/types/taiga-ui-addon-table-types.js +0 -4
  249. package/esm5/utils/default-sort.js +0 -18
  250. package/esm5/utils/index.js +0 -2
  251. package/esm5/utils/taiga-ui-addon-table-utils.js +0 -5
  252. package/fesm2015/taiga-ui-addon-table-components-resizable-column.js +0 -79
  253. package/fesm2015/taiga-ui-addon-table-components-resizable-column.js.map +0 -1
  254. package/fesm5/taiga-ui-addon-table-components-reorder.js +0 -99
  255. package/fesm5/taiga-ui-addon-table-components-reorder.js.map +0 -1
  256. package/fesm5/taiga-ui-addon-table-components-resizable-column.js +0 -88
  257. package/fesm5/taiga-ui-addon-table-components-resizable-column.js.map +0 -1
  258. package/fesm5/taiga-ui-addon-table-components-table-pagination.js +0 -156
  259. package/fesm5/taiga-ui-addon-table-components-table-pagination.js.map +0 -1
  260. package/fesm5/taiga-ui-addon-table-components-table.js +0 -669
  261. package/fesm5/taiga-ui-addon-table-components-table.js.map +0 -1
  262. package/fesm5/taiga-ui-addon-table-components.js +0 -9
  263. package/fesm5/taiga-ui-addon-table-components.js.map +0 -1
  264. package/fesm5/taiga-ui-addon-table-directives-table-filters.js +0 -174
  265. package/fesm5/taiga-ui-addon-table-directives-table-filters.js.map +0 -1
  266. package/fesm5/taiga-ui-addon-table-directives.js +0 -6
  267. package/fesm5/taiga-ui-addon-table-directives.js.map +0 -1
  268. package/fesm5/taiga-ui-addon-table-interfaces.js +0 -4
  269. package/fesm5/taiga-ui-addon-table-interfaces.js.map +0 -1
  270. package/fesm5/taiga-ui-addon-table-tokens.js +0 -16
  271. package/fesm5/taiga-ui-addon-table-tokens.js.map +0 -1
  272. package/fesm5/taiga-ui-addon-table-types.js +0 -4
  273. package/fesm5/taiga-ui-addon-table-types.js.map +0 -1
  274. package/fesm5/taiga-ui-addon-table-utils.js +0 -25
  275. package/fesm5/taiga-ui-addon-table-utils.js.map +0 -1
  276. package/fesm5/taiga-ui-addon-table.js +0 -9
  277. package/fesm5/taiga-ui-addon-table.js.map +0 -1
  278. package/interfaces/taiga-ui-addon-table-interfaces.metadata.json +0 -1
  279. package/taiga-ui-addon-table.metadata.json +0 -1
  280. package/tokens/taiga-ui-addon-table-tokens.metadata.json +0 -1
  281. package/types/taiga-ui-addon-table-types.metadata.json +0 -1
  282. package/utils/taiga-ui-addon-table-utils.metadata.json +0 -1
@@ -1,297 +1,408 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@taiga-ui/cdk'), require('@angular/common'), require('@taiga-ui/core'), require('rxjs/operators'), require('@taiga-ui/addon-table/utils'), require('@ng-web-apis/intersection-observer'), require('rxjs'), require('@taiga-ui/kit'), require('@tinkoff/ng-polymorpheus'), require('@angular/forms')) :
3
- typeof define === 'function' && define.amd ? define('@taiga-ui/addon-table/components/table', ['exports', '@angular/core', '@taiga-ui/cdk', '@angular/common', '@taiga-ui/core', 'rxjs/operators', '@taiga-ui/addon-table/utils', '@ng-web-apis/intersection-observer', 'rxjs', '@taiga-ui/kit', '@tinkoff/ng-polymorpheus', '@angular/forms'], factory) :
4
- (global = global || self, factory((global['taiga-ui'] = global['taiga-ui'] || {}, global['taiga-ui']['addon-table'] = global['taiga-ui']['addon-table'] || {}, global['taiga-ui']['addon-table'].components = global['taiga-ui']['addon-table'].components || {}, global['taiga-ui']['addon-table'].components.table = {}), global.ng.core, global.cdk, global.ng.common, global.core$1, global.rxjs.operators, global['taiga-ui']['addon-table'].utils, global.intersectionObserver, global.rxjs, global.kit, global.ngPolymorpheus, global.ng.forms));
5
- }(this, (function (exports, core, cdk, common, core$1, operators, utils, intersectionObserver, rxjs, kit, ngPolymorpheus, forms) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@taiga-ui/cdk'), require('@angular/common'), require('@taiga-ui/core'), require('rxjs/operators'), require('@taiga-ui/addon-table/utils'), require('@ng-web-apis/intersection-observer'), require('@taiga-ui/kit'), require('rxjs'), require('@tinkoff/ng-polymorpheus'), require('@angular/forms')) :
3
+ typeof define === 'function' && define.amd ? define('@taiga-ui/addon-table/components/table', ['exports', '@angular/core', '@taiga-ui/cdk', '@angular/common', '@taiga-ui/core', 'rxjs/operators', '@taiga-ui/addon-table/utils', '@ng-web-apis/intersection-observer', '@taiga-ui/kit', 'rxjs', '@tinkoff/ng-polymorpheus', '@angular/forms'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"]["addon-table"] = global["taiga-ui"]["addon-table"] || {}, global["taiga-ui"]["addon-table"].components = global["taiga-ui"]["addon-table"].components || {}, global["taiga-ui"]["addon-table"].components.table = {}), global.ng.core, global.i4, global.ng.common, global.i1, global.rxjs.operators, global["taiga-ui"]["addon-table"].utils, global.intersectionObserver, global.kit, global.rxjs, global.i3, global.ng.forms));
5
+ })(this, (function (exports, i0, i4, i2, i1, operators, utils, intersectionObserver, kit, i1$1, i3, forms) { 'use strict';
6
6
 
7
- /******************************************************************************
8
- Copyright (c) Microsoft Corporation.
9
-
10
- Permission to use, copy, modify, and/or distribute this software for any
11
- purpose with or without fee is hereby granted.
12
-
13
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
14
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
15
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
16
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
17
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
18
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19
- PERFORMANCE OF THIS SOFTWARE.
20
- ***************************************************************************** */
21
- /* global Reflect, Promise */
22
-
23
- var extendStatics = function(d, b) {
24
- extendStatics = Object.setPrototypeOf ||
25
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
26
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
27
- return extendStatics(d, b);
28
- };
29
-
30
- function __extends(d, b) {
31
- if (typeof b !== "function" && b !== null)
32
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
33
- extendStatics(d, b);
34
- function __() { this.constructor = d; }
35
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
36
- }
37
-
38
- var __assign = function() {
39
- __assign = Object.assign || function __assign(t) {
40
- for (var s, i = 1, n = arguments.length; i < n; i++) {
41
- s = arguments[i];
42
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
43
- }
44
- return t;
45
- };
46
- return __assign.apply(this, arguments);
47
- };
48
-
49
- function __rest(s, e) {
50
- var t = {};
51
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
52
- t[p] = s[p];
53
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
54
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
55
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
56
- t[p[i]] = s[p[i]];
57
- }
58
- return t;
59
- }
60
-
61
- function __decorate(decorators, target, key, desc) {
62
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
63
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
64
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
65
- return c > 3 && r && Object.defineProperty(target, key, r), r;
66
- }
67
-
68
- function __param(paramIndex, decorator) {
69
- return function (target, key) { decorator(target, key, paramIndex); }
70
- }
71
-
72
- function __metadata(metadataKey, metadataValue) {
73
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
74
- }
75
-
76
- function __awaiter(thisArg, _arguments, P, generator) {
77
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
78
- return new (P || (P = Promise))(function (resolve, reject) {
79
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
80
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
81
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
82
- step((generator = generator.apply(thisArg, _arguments || [])).next());
83
- });
84
- }
85
-
86
- function __generator(thisArg, body) {
87
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
88
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
89
- function verb(n) { return function (v) { return step([n, v]); }; }
90
- function step(op) {
91
- if (f) throw new TypeError("Generator is already executing.");
92
- while (_) try {
93
- 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) return t;
94
- if (y = 0, t) op = [op[0] & 2, t.value];
95
- switch (op[0]) {
96
- case 0: case 1: t = op; break;
97
- case 4: _.label++; return { value: op[1], done: false };
98
- case 5: _.label++; y = op[1]; op = [0]; continue;
99
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
100
- default:
101
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
102
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
103
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
104
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
105
- if (t[2]) _.ops.pop();
106
- _.trys.pop(); continue;
107
- }
108
- op = body.call(thisArg, _);
109
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
110
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
111
- }
112
- }
113
-
114
- var __createBinding = Object.create ? (function(o, m, k, k2) {
115
- if (k2 === undefined) k2 = k;
116
- var desc = Object.getOwnPropertyDescriptor(m, k);
117
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
118
- desc = { enumerable: true, get: function() { return m[k]; } };
119
- }
120
- Object.defineProperty(o, k2, desc);
121
- }) : (function(o, m, k, k2) {
122
- if (k2 === undefined) k2 = k;
123
- o[k2] = m[k];
124
- });
125
-
126
- function __exportStar(m, o) {
127
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
128
- }
129
-
130
- function __values(o) {
131
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
132
- if (m) return m.call(o);
133
- if (o && typeof o.length === "number") return {
134
- next: function () {
135
- if (o && i >= o.length) o = void 0;
136
- return { value: o && o[i++], done: !o };
137
- }
138
- };
139
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
140
- }
141
-
142
- function __read(o, n) {
143
- var m = typeof Symbol === "function" && o[Symbol.iterator];
144
- if (!m) return o;
145
- var i = m.call(o), r, ar = [], e;
146
- try {
147
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
148
- }
149
- catch (error) { e = { error: error }; }
150
- finally {
151
- try {
152
- if (r && !r.done && (m = i["return"])) m.call(i);
153
- }
154
- finally { if (e) throw e.error; }
155
- }
156
- return ar;
157
- }
158
-
159
- /** @deprecated */
160
- function __spread() {
161
- for (var ar = [], i = 0; i < arguments.length; i++)
162
- ar = ar.concat(__read(arguments[i]));
163
- return ar;
164
- }
165
-
166
- /** @deprecated */
167
- function __spreadArrays() {
168
- for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
169
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
170
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
171
- r[k] = a[j];
172
- return r;
173
- }
174
-
175
- function __spreadArray(to, from, pack) {
176
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
177
- if (ar || !(i in from)) {
178
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
179
- ar[i] = from[i];
180
- }
181
- }
182
- return to.concat(ar || Array.prototype.slice.call(from));
183
- }
184
-
185
- function __await(v) {
186
- return this instanceof __await ? (this.v = v, this) : new __await(v);
187
- }
188
-
189
- function __asyncGenerator(thisArg, _arguments, generator) {
190
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
191
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
192
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
193
- function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
194
- function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
195
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
196
- function fulfill(value) { resume("next", value); }
197
- function reject(value) { resume("throw", value); }
198
- function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
199
- }
200
-
201
- function __asyncDelegator(o) {
202
- var i, p;
203
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
204
- 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; }
205
- }
206
-
207
- function __asyncValues(o) {
208
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
209
- var m = o[Symbol.asyncIterator], i;
210
- 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);
211
- 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); }); }; }
212
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
213
- }
214
-
215
- function __makeTemplateObject(cooked, raw) {
216
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
217
- return cooked;
218
- };
219
-
220
- var __setModuleDefault = Object.create ? (function(o, v) {
221
- Object.defineProperty(o, "default", { enumerable: true, value: v });
222
- }) : function(o, v) {
223
- o["default"] = v;
224
- };
225
-
226
- function __importStar(mod) {
227
- if (mod && mod.__esModule) return mod;
228
- var result = {};
229
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
230
- __setModuleDefault(result, mod);
231
- return result;
232
- }
233
-
234
- function __importDefault(mod) {
235
- return (mod && mod.__esModule) ? mod : { default: mod };
236
- }
237
-
238
- function __classPrivateFieldGet(receiver, state, kind, f) {
239
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
240
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
241
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
242
- }
243
-
244
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
245
- if (kind === "m") throw new TypeError("Private method is not writable");
246
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
247
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
248
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
249
- }
250
-
251
- function __classPrivateFieldIn(state, receiver) {
252
- if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
253
- return typeof state === "function" ? receiver === state : state.has(receiver);
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 i4__namespace = /*#__PURE__*/_interopNamespace(i4);
27
+ var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
28
+ var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1);
29
+ var i1__namespace = /*#__PURE__*/_interopNamespace(i1$1);
30
+ var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
31
+
32
+ /******************************************************************************
33
+ Copyright (c) Microsoft Corporation.
34
+
35
+ Permission to use, copy, modify, and/or distribute this software for any
36
+ purpose with or without fee is hereby granted.
37
+
38
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
39
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
40
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
41
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
42
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
43
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
44
+ PERFORMANCE OF THIS SOFTWARE.
45
+ ***************************************************************************** */
46
+ /* global Reflect, Promise */
47
+ var extendStatics = function (d, b) {
48
+ extendStatics = Object.setPrototypeOf ||
49
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
50
+ function (d, b) { for (var p in b)
51
+ if (Object.prototype.hasOwnProperty.call(b, p))
52
+ d[p] = b[p]; };
53
+ return extendStatics(d, b);
54
+ };
55
+ function __extends(d, b) {
56
+ if (typeof b !== "function" && b !== null)
57
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
58
+ extendStatics(d, b);
59
+ function __() { this.constructor = d; }
60
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
61
+ }
62
+ var __assign = function () {
63
+ __assign = Object.assign || function __assign(t) {
64
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
65
+ s = arguments[i];
66
+ for (var p in s)
67
+ if (Object.prototype.hasOwnProperty.call(s, p))
68
+ t[p] = s[p];
69
+ }
70
+ return t;
71
+ };
72
+ return __assign.apply(this, arguments);
73
+ };
74
+ function __rest(s, e) {
75
+ var t = {};
76
+ for (var p in s)
77
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
78
+ t[p] = s[p];
79
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
80
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
81
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
82
+ t[p[i]] = s[p[i]];
83
+ }
84
+ return t;
85
+ }
86
+ function __decorate(decorators, target, key, desc) {
87
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
88
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
89
+ r = Reflect.decorate(decorators, target, key, desc);
90
+ else
91
+ for (var i = decorators.length - 1; i >= 0; i--)
92
+ if (d = decorators[i])
93
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
94
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
95
+ }
96
+ function __param(paramIndex, decorator) {
97
+ return function (target, key) { decorator(target, key, paramIndex); };
98
+ }
99
+ function __metadata(metadataKey, metadataValue) {
100
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
101
+ return Reflect.metadata(metadataKey, metadataValue);
102
+ }
103
+ function __awaiter(thisArg, _arguments, P, generator) {
104
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
105
+ return new (P || (P = Promise))(function (resolve, reject) {
106
+ function fulfilled(value) { try {
107
+ step(generator.next(value));
108
+ }
109
+ catch (e) {
110
+ reject(e);
111
+ } }
112
+ function rejected(value) { try {
113
+ step(generator["throw"](value));
114
+ }
115
+ catch (e) {
116
+ reject(e);
117
+ } }
118
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
119
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
120
+ });
121
+ }
122
+ function __generator(thisArg, body) {
123
+ var _ = { label: 0, sent: function () { if (t[0] & 1)
124
+ throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
125
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
126
+ function verb(n) { return function (v) { return step([n, v]); }; }
127
+ function step(op) {
128
+ if (f)
129
+ throw new TypeError("Generator is already executing.");
130
+ while (_)
131
+ try {
132
+ 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)
133
+ return t;
134
+ if (y = 0, t)
135
+ op = [op[0] & 2, t.value];
136
+ switch (op[0]) {
137
+ case 0:
138
+ case 1:
139
+ t = op;
140
+ break;
141
+ case 4:
142
+ _.label++;
143
+ return { value: op[1], done: false };
144
+ case 5:
145
+ _.label++;
146
+ y = op[1];
147
+ op = [0];
148
+ continue;
149
+ case 7:
150
+ op = _.ops.pop();
151
+ _.trys.pop();
152
+ continue;
153
+ default:
154
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
155
+ _ = 0;
156
+ continue;
157
+ }
158
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
159
+ _.label = op[1];
160
+ break;
161
+ }
162
+ if (op[0] === 6 && _.label < t[1]) {
163
+ _.label = t[1];
164
+ t = op;
165
+ break;
166
+ }
167
+ if (t && _.label < t[2]) {
168
+ _.label = t[2];
169
+ _.ops.push(op);
170
+ break;
171
+ }
172
+ if (t[2])
173
+ _.ops.pop();
174
+ _.trys.pop();
175
+ continue;
176
+ }
177
+ op = body.call(thisArg, _);
178
+ }
179
+ catch (e) {
180
+ op = [6, e];
181
+ y = 0;
182
+ }
183
+ finally {
184
+ f = t = 0;
185
+ }
186
+ if (op[0] & 5)
187
+ throw op[1];
188
+ return { value: op[0] ? op[1] : void 0, done: true };
189
+ }
190
+ }
191
+ var __createBinding = Object.create ? (function (o, m, k, k2) {
192
+ if (k2 === undefined)
193
+ k2 = k;
194
+ var desc = Object.getOwnPropertyDescriptor(m, k);
195
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
196
+ desc = { enumerable: true, get: function () { return m[k]; } };
197
+ }
198
+ Object.defineProperty(o, k2, desc);
199
+ }) : (function (o, m, k, k2) {
200
+ if (k2 === undefined)
201
+ k2 = k;
202
+ o[k2] = m[k];
203
+ });
204
+ function __exportStar(m, o) {
205
+ for (var p in m)
206
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
207
+ __createBinding(o, m, p);
208
+ }
209
+ function __values(o) {
210
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
211
+ if (m)
212
+ return m.call(o);
213
+ if (o && typeof o.length === "number")
214
+ return {
215
+ next: function () {
216
+ if (o && i >= o.length)
217
+ o = void 0;
218
+ return { value: o && o[i++], done: !o };
219
+ }
220
+ };
221
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
222
+ }
223
+ function __read(o, n) {
224
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
225
+ if (!m)
226
+ return o;
227
+ var i = m.call(o), r, ar = [], e;
228
+ try {
229
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
230
+ ar.push(r.value);
231
+ }
232
+ catch (error) {
233
+ e = { error: error };
234
+ }
235
+ finally {
236
+ try {
237
+ if (r && !r.done && (m = i["return"]))
238
+ m.call(i);
239
+ }
240
+ finally {
241
+ if (e)
242
+ throw e.error;
243
+ }
244
+ }
245
+ return ar;
246
+ }
247
+ /** @deprecated */
248
+ function __spread() {
249
+ for (var ar = [], i = 0; i < arguments.length; i++)
250
+ ar = ar.concat(__read(arguments[i]));
251
+ return ar;
252
+ }
253
+ /** @deprecated */
254
+ function __spreadArrays() {
255
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++)
256
+ s += arguments[i].length;
257
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
258
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
259
+ r[k] = a[j];
260
+ return r;
261
+ }
262
+ function __spreadArray(to, from, pack) {
263
+ if (pack || arguments.length === 2)
264
+ for (var i = 0, l = from.length, ar; i < l; i++) {
265
+ if (ar || !(i in from)) {
266
+ if (!ar)
267
+ ar = Array.prototype.slice.call(from, 0, i);
268
+ ar[i] = from[i];
269
+ }
270
+ }
271
+ return to.concat(ar || Array.prototype.slice.call(from));
272
+ }
273
+ function __await(v) {
274
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
275
+ }
276
+ function __asyncGenerator(thisArg, _arguments, generator) {
277
+ if (!Symbol.asyncIterator)
278
+ throw new TypeError("Symbol.asyncIterator is not defined.");
279
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
280
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
281
+ function verb(n) { if (g[n])
282
+ i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
283
+ function resume(n, v) { try {
284
+ step(g[n](v));
285
+ }
286
+ catch (e) {
287
+ settle(q[0][3], e);
288
+ } }
289
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
290
+ function fulfill(value) { resume("next", value); }
291
+ function reject(value) { resume("throw", value); }
292
+ function settle(f, v) { if (f(v), q.shift(), q.length)
293
+ resume(q[0][0], q[0][1]); }
294
+ }
295
+ function __asyncDelegator(o) {
296
+ var i, p;
297
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
298
+ 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; }
299
+ }
300
+ function __asyncValues(o) {
301
+ if (!Symbol.asyncIterator)
302
+ throw new TypeError("Symbol.asyncIterator is not defined.");
303
+ var m = o[Symbol.asyncIterator], i;
304
+ 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);
305
+ 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); }); }; }
306
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
307
+ }
308
+ function __makeTemplateObject(cooked, raw) {
309
+ if (Object.defineProperty) {
310
+ Object.defineProperty(cooked, "raw", { value: raw });
311
+ }
312
+ else {
313
+ cooked.raw = raw;
314
+ }
315
+ return cooked;
316
+ }
317
+ ;
318
+ var __setModuleDefault = Object.create ? (function (o, v) {
319
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
320
+ }) : function (o, v) {
321
+ o["default"] = v;
322
+ };
323
+ function __importStar(mod) {
324
+ if (mod && mod.__esModule)
325
+ return mod;
326
+ var result = {};
327
+ if (mod != null)
328
+ for (var k in mod)
329
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
330
+ __createBinding(result, mod, k);
331
+ __setModuleDefault(result, mod);
332
+ return result;
333
+ }
334
+ function __importDefault(mod) {
335
+ return (mod && mod.__esModule) ? mod : { default: mod };
336
+ }
337
+ function __classPrivateFieldGet(receiver, state, kind, f) {
338
+ if (kind === "a" && !f)
339
+ throw new TypeError("Private accessor was defined without a getter");
340
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
341
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
342
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
343
+ }
344
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
345
+ if (kind === "m")
346
+ throw new TypeError("Private method is not writable");
347
+ if (kind === "a" && !f)
348
+ throw new TypeError("Private accessor was defined without a setter");
349
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
350
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
351
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
352
+ }
353
+ function __classPrivateFieldIn(state, receiver) {
354
+ if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
355
+ throw new TypeError("Cannot use 'in' operator on non-object");
356
+ return typeof state === "function" ? receiver === state : state.has(receiver);
254
357
  }
255
358
 
256
359
  var TuiCellDirective = /** @class */ (function () {
257
360
  function TuiCellDirective(template) {
258
361
  this.template = template;
259
- this.tuiCell = '';
362
+ this.tuiCell = "";
260
363
  }
261
- TuiCellDirective.ctorParameters = function () { return [
262
- { type: core.TemplateRef, decorators: [{ type: core.Inject, args: [core.TemplateRef,] }] }
263
- ]; };
264
- __decorate([
265
- core.Input(),
266
- cdk.tuiDefaultProp()
267
- ], TuiCellDirective.prototype, "tuiCell", void 0);
268
- TuiCellDirective = __decorate([
269
- core.Directive({
270
- selector: '[tuiCell]',
271
- }),
272
- __param(0, core.Inject(core.TemplateRef))
273
- ], TuiCellDirective);
274
364
  return TuiCellDirective;
275
365
  }());
366
+ TuiCellDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiCellDirective, deps: [{ token: i0.TemplateRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
367
+ TuiCellDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiCellDirective, selector: "[tuiCell]", inputs: { tuiCell: "tuiCell" }, ngImport: i0__namespace });
368
+ __decorate([
369
+ i4.tuiDefaultProp()
370
+ ], TuiCellDirective.prototype, "tuiCell", void 0);
371
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiCellDirective, decorators: [{
372
+ type: i0.Directive,
373
+ args: [{
374
+ selector: "[tuiCell]",
375
+ }]
376
+ }], ctorParameters: function () {
377
+ return [{ type: i0__namespace.TemplateRef, decorators: [{
378
+ type: i0.Inject,
379
+ args: [i0.TemplateRef]
380
+ }] }];
381
+ }, propDecorators: { tuiCell: [{
382
+ type: i0.Input
383
+ }] } });
276
384
 
277
385
  var TuiHeadDirective = /** @class */ (function () {
278
386
  function TuiHeadDirective(template) {
279
387
  this.template = template;
280
388
  }
281
- TuiHeadDirective.ctorParameters = function () { return [
282
- { type: core.TemplateRef, decorators: [{ type: core.Inject, args: [core.TemplateRef,] }] }
283
- ]; };
284
- __decorate([
285
- core.Input()
286
- ], TuiHeadDirective.prototype, "tuiHead", void 0);
287
- TuiHeadDirective = __decorate([
288
- core.Directive({
289
- selector: '[tuiHead]',
290
- }),
291
- __param(0, core.Inject(core.TemplateRef))
292
- ], TuiHeadDirective);
293
389
  return TuiHeadDirective;
294
390
  }());
391
+ TuiHeadDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHeadDirective, deps: [{ token: i0.TemplateRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
392
+ TuiHeadDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiHeadDirective, selector: "[tuiHead]", inputs: { tuiHead: "tuiHead" }, ngImport: i0__namespace });
393
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHeadDirective, decorators: [{
394
+ type: i0.Directive,
395
+ args: [{
396
+ selector: "[tuiHead]",
397
+ }]
398
+ }], ctorParameters: function () {
399
+ return [{ type: i0__namespace.TemplateRef, decorators: [{
400
+ type: i0.Inject,
401
+ args: [i0.TemplateRef]
402
+ }] }];
403
+ }, propDecorators: { tuiHead: [{
404
+ type: i0.Input
405
+ }] } });
295
406
 
296
407
  // @dynamic
297
408
  var TuiResizedDirective = /** @class */ (function () {
@@ -300,32 +411,37 @@
300
411
  this.documentRef = documentRef;
301
412
  this.elementRef = elementRef;
302
413
  this.parentRef = parentRef;
303
- this.tuiResized = cdk.typedFromEvent(this.elementRef.nativeElement, 'mousedown').pipe(cdk.preventDefault(), operators.switchMap(function () {
414
+ this.tuiResized = i4.typedFromEvent(this.elementRef.nativeElement, "mousedown").pipe(i4.preventDefault(), operators.switchMap(function () {
304
415
  var _a = _this.parentRef.nativeElement.getBoundingClientRect(), width = _a.width, right = _a.right;
305
- return cdk.typedFromEvent(_this.documentRef, 'mousemove').pipe(operators.distinctUntilChanged(), operators.map(function (_a) {
416
+ return i4.typedFromEvent(_this.documentRef, "mousemove").pipe(operators.distinctUntilChanged(), operators.map(function (_a) {
306
417
  var clientX = _a.clientX;
307
418
  return width + clientX - right;
308
- }), operators.takeUntil(cdk.typedFromEvent(_this.documentRef, 'mouseup')));
419
+ }), operators.takeUntil(i4.typedFromEvent(_this.documentRef, "mouseup")));
309
420
  }));
310
421
  }
311
- TuiResizedDirective.ctorParameters = function () { return [
312
- { type: Document, decorators: [{ type: core.Inject, args: [common.DOCUMENT,] }] },
313
- { type: core.ElementRef, decorators: [{ type: core.Inject, args: [core.ElementRef,] }] },
314
- { type: core.ElementRef, decorators: [{ type: core.Inject, args: [core$1.TUI_ELEMENT_REF,] }] }
315
- ]; };
316
- __decorate([
317
- core.Output()
318
- ], TuiResizedDirective.prototype, "tuiResized", void 0);
319
- TuiResizedDirective = __decorate([
320
- core.Directive({
321
- selector: '[tuiResized]',
322
- }),
323
- __param(0, core.Inject(common.DOCUMENT)),
324
- __param(1, core.Inject(core.ElementRef)),
325
- __param(2, core.Inject(core$1.TUI_ELEMENT_REF))
326
- ], TuiResizedDirective);
327
422
  return TuiResizedDirective;
328
423
  }());
424
+ TuiResizedDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiResizedDirective, deps: [{ token: i2.DOCUMENT }, { token: i0.ElementRef }, { token: i1.TUI_ELEMENT_REF }], target: i0__namespace.ɵɵFactoryTarget.Directive });
425
+ TuiResizedDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiResizedDirective, selector: "[tuiResized]", outputs: { tuiResized: "tuiResized" }, ngImport: i0__namespace });
426
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiResizedDirective, decorators: [{
427
+ type: i0.Directive,
428
+ args: [{
429
+ selector: "[tuiResized]",
430
+ }]
431
+ }], ctorParameters: function () {
432
+ return [{ type: Document, decorators: [{
433
+ type: i0.Inject,
434
+ args: [i2.DOCUMENT]
435
+ }] }, { type: i0__namespace.ElementRef, decorators: [{
436
+ type: i0.Inject,
437
+ args: [i0.ElementRef]
438
+ }] }, { type: i0__namespace.ElementRef, decorators: [{
439
+ type: i0.Inject,
440
+ args: [i1.TUI_ELEMENT_REF]
441
+ }] }];
442
+ }, propDecorators: { tuiResized: [{
443
+ type: i0.Output
444
+ }] } });
329
445
 
330
446
  var TuiRowDirective = /** @class */ (function () {
331
447
  function TuiRowDirective(template) {
@@ -335,21 +451,26 @@
335
451
  TuiRowDirective.ngTemplateContextGuard = function (_dir, _ctx) {
336
452
  return true;
337
453
  };
338
- TuiRowDirective.ctorParameters = function () { return [
339
- { type: core.TemplateRef, decorators: [{ type: core.Inject, args: [core.TemplateRef,] }] }
340
- ]; };
341
- __decorate([
342
- core.Input(),
343
- cdk.tuiDefaultProp()
344
- ], TuiRowDirective.prototype, "tuiRowOf", void 0);
345
- TuiRowDirective = __decorate([
346
- core.Directive({
347
- selector: 'ng-template[tuiRow]',
348
- }),
349
- __param(0, core.Inject(core.TemplateRef))
350
- ], TuiRowDirective);
351
454
  return TuiRowDirective;
352
455
  }());
456
+ TuiRowDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiRowDirective, deps: [{ token: i0.TemplateRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
457
+ TuiRowDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiRowDirective, selector: "ng-template[tuiRow]", inputs: { tuiRowOf: "tuiRowOf" }, ngImport: i0__namespace });
458
+ __decorate([
459
+ i4.tuiDefaultProp()
460
+ ], TuiRowDirective.prototype, "tuiRowOf", void 0);
461
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiRowDirective, decorators: [{
462
+ type: i0.Directive,
463
+ args: [{
464
+ selector: "ng-template[tuiRow]",
465
+ }]
466
+ }], ctorParameters: function () {
467
+ return [{ type: i0__namespace.TemplateRef, decorators: [{
468
+ type: i0.Inject,
469
+ args: [i0.TemplateRef]
470
+ }] }];
471
+ }, propDecorators: { tuiRowOf: [{
472
+ type: i0.Input
473
+ }] } });
353
474
 
354
475
  // eslint-disable-next-line @typescript-eslint/naming-convention
355
476
  function stuckFactory(_a, entries$) {
@@ -358,54 +479,50 @@
358
479
  var _b = __read(_a, 1), intersectionRatio = _b[0].intersectionRatio;
359
480
  return intersectionRatio < 1;
360
481
  }));
361
- nativeElement['$.class._stuck'] = stream$;
482
+ nativeElement["$.class._stuck"] = stream$;
362
483
  return stream$;
363
484
  }
364
- var TUI_STUCK = new core.InjectionToken('Stream of sticky stuck events');
485
+ var TUI_STUCK = new i0.InjectionToken("Stream of sticky stuck events");
365
486
  var TUI_STUCK_PROVIDER = {
366
487
  provide: TUI_STUCK,
367
- deps: [core.ElementRef, intersectionObserver.IntersectionObserverService],
488
+ deps: [i0.ElementRef, intersectionObserver.IntersectionObserverService],
368
489
  useFactory: stuckFactory,
369
490
  };
370
491
 
371
- // TODO: 3.0 remove in ivy compilation
372
- var TABLE_THRESHOLD = [0, 1];
373
- var TABLE_LABEL = {
374
- labelOutside: true,
375
- };
376
492
  // eslint-disable-next-line @typescript-eslint/naming-convention
377
493
  function inputCountOptionsFactory(options) {
378
- return __assign(__assign({}, options), { hideButtons: true });
494
+ return Object.assign(Object.assign({}, options), { hideButtons: true });
379
495
  }
380
496
  var TUI_TABLE_PROVIDERS = [
381
497
  {
382
498
  provide: intersectionObserver.INTERSECTION_ROOT_MARGIN,
383
- useValue: '10000px 10000px 10000px 0px',
499
+ useValue: "10000px 10000px 10000px 0px",
384
500
  },
385
501
  {
386
502
  provide: intersectionObserver.INTERSECTION_THRESHOLD,
387
- useValue: TABLE_THRESHOLD,
503
+ useValue: [0, 1],
388
504
  },
389
505
  {
390
- provide: core$1.TUI_TEXTFIELD_APPEARANCE,
391
- // TODO: 3.0 remove in ivy compilation
392
- useValue: 'table',
506
+ provide: i1.TUI_TEXTFIELD_APPEARANCE,
507
+ useValue: "table" /* Table */,
393
508
  },
394
509
  {
395
- provide: core$1.TUI_TEXTFIELD_LABEL_OUTSIDE,
396
- useValue: TABLE_LABEL,
510
+ provide: i1.TUI_TEXTFIELD_LABEL_OUTSIDE,
511
+ useValue: {
512
+ labelOutside: true,
513
+ },
397
514
  },
398
515
  {
399
516
  provide: kit.TUI_INPUT_COUNT_OPTIONS,
400
- deps: [[new core.SkipSelf(), kit.TUI_INPUT_COUNT_OPTIONS]],
517
+ deps: [[new i0.SkipSelf(), kit.TUI_INPUT_COUNT_OPTIONS]],
401
518
  useFactory: inputCountOptionsFactory,
402
519
  },
403
520
  {
404
- provide: core$1.TUI_TEXTFIELD_SIZE,
405
- useExisting: core.forwardRef(function () { return TuiTableDirective; }),
521
+ provide: i1.TUI_TEXTFIELD_SIZE,
522
+ useExisting: i0.forwardRef(function () { return TuiTableDirective; }),
406
523
  },
407
524
  intersectionObserver.IntersectionObserverService,
408
- core$1.MODE_PROVIDER,
525
+ i1.MODE_PROVIDER,
409
526
  TUI_STUCK_PROVIDER,
410
527
  ];
411
528
 
@@ -418,10 +535,10 @@
418
535
  _this.stuck$ = stuck$;
419
536
  _this.changeDetectorRef = changeDetectorRef;
420
537
  _this.columns = [];
421
- _this.size = 'm';
538
+ _this.size = "m";
422
539
  _this.direction = 1;
423
- _this.directionChange = new core.EventEmitter();
424
- _this.sorterChange = new core.EventEmitter();
540
+ _this.directionChange = new i0.EventEmitter();
541
+ _this.sorterChange = new i0.EventEmitter();
425
542
  _this.sorter = function () { return 0; };
426
543
  return _this;
427
544
  }
@@ -441,52 +558,63 @@
441
558
  TuiTableDirective.prototype.ngAfterViewInit = function () {
442
559
  this.changeDetectorRef.detectChanges();
443
560
  };
444
- TuiTableDirective.ctorParameters = function () { return [
445
- { type: rxjs.Observable, decorators: [{ type: core.Inject, args: [intersectionObserver.IntersectionObserverService,] }] },
446
- { type: rxjs.Observable, decorators: [{ type: core.Inject, args: [core$1.TUI_MODE,] }] },
447
- { type: rxjs.Observable, decorators: [{ type: core.Inject, args: [TUI_STUCK,] }] },
448
- { type: core.ChangeDetectorRef, decorators: [{ type: core.Inject, args: [core.ChangeDetectorRef,] }] }
449
- ]; };
450
- __decorate([
451
- core.Input(),
452
- cdk.tuiDefaultProp()
453
- ], TuiTableDirective.prototype, "columns", void 0);
454
- __decorate([
455
- core.Input(),
456
- core.HostBinding('attr.data-size'),
457
- cdk.tuiDefaultProp()
458
- ], TuiTableDirective.prototype, "size", void 0);
459
- __decorate([
460
- core.Input(),
461
- cdk.tuiDefaultProp()
462
- ], TuiTableDirective.prototype, "direction", void 0);
463
- __decorate([
464
- core.Output()
465
- ], TuiTableDirective.prototype, "directionChange", void 0);
466
- __decorate([
467
- core.Output()
468
- ], TuiTableDirective.prototype, "sorterChange", void 0);
469
- __decorate([
470
- core.Input(),
471
- cdk.tuiDefaultProp()
472
- ], TuiTableDirective.prototype, "sorter", void 0);
473
- TuiTableDirective = __decorate([
474
- core.Directive({
475
- selector: 'table[tuiTable]',
476
- providers: TUI_TABLE_PROVIDERS,
477
- host: {
478
- '($.data-mode.attr)': 'mode$',
479
- '($.class._stuck)': 'stuck$',
480
- style: 'border-collapse: separate',
481
- },
482
- }),
483
- __param(0, core.Inject(intersectionObserver.IntersectionObserverService)),
484
- __param(1, core.Inject(core$1.TUI_MODE)),
485
- __param(2, core.Inject(TUI_STUCK)),
486
- __param(3, core.Inject(core.ChangeDetectorRef))
487
- ], TuiTableDirective);
488
561
  return TuiTableDirective;
489
- }(cdk.TuiController));
562
+ }(i4.AbstractTuiController));
563
+ TuiTableDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTableDirective, deps: [{ token: intersectionObserver.IntersectionObserverService }, { token: i1.TUI_MODE }, { token: TUI_STUCK }, { token: i0.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
564
+ TuiTableDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiTableDirective, selector: "table[tuiTable]", inputs: { columns: "columns", size: "size", direction: "direction", sorter: "sorter" }, outputs: { directionChange: "directionChange", sorterChange: "sorterChange" }, host: { listeners: { "$.data-mode.attr": "mode$", "$.class._stuck": "stuck$" }, properties: { "attr.data-size": "this.size" }, styleAttribute: "border-collapse: separate" }, providers: TUI_TABLE_PROVIDERS, usesInheritance: true, ngImport: i0__namespace });
565
+ __decorate([
566
+ i4.tuiDefaultProp()
567
+ ], TuiTableDirective.prototype, "columns", void 0);
568
+ __decorate([
569
+ i4.tuiDefaultProp()
570
+ ], TuiTableDirective.prototype, "size", void 0);
571
+ __decorate([
572
+ i4.tuiDefaultProp()
573
+ ], TuiTableDirective.prototype, "direction", void 0);
574
+ __decorate([
575
+ i4.tuiDefaultProp()
576
+ ], TuiTableDirective.prototype, "sorter", void 0);
577
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTableDirective, decorators: [{
578
+ type: i0.Directive,
579
+ args: [{
580
+ selector: "table[tuiTable]",
581
+ providers: TUI_TABLE_PROVIDERS,
582
+ host: {
583
+ '($.data-mode.attr)': "mode$",
584
+ '($.class._stuck)': "stuck$",
585
+ style: "border-collapse: separate",
586
+ },
587
+ }]
588
+ }], ctorParameters: function () {
589
+ return [{ type: i1__namespace.Observable, decorators: [{
590
+ type: i0.Inject,
591
+ args: [intersectionObserver.IntersectionObserverService]
592
+ }] }, { type: i1__namespace.Observable, decorators: [{
593
+ type: i0.Inject,
594
+ args: [i1.TUI_MODE]
595
+ }] }, { type: i1__namespace.Observable, decorators: [{
596
+ type: i0.Inject,
597
+ args: [TUI_STUCK]
598
+ }] }, { type: i0__namespace.ChangeDetectorRef, decorators: [{
599
+ type: i0.Inject,
600
+ args: [i0.ChangeDetectorRef]
601
+ }] }];
602
+ }, propDecorators: { columns: [{
603
+ type: i0.Input
604
+ }], size: [{
605
+ type: i0.Input
606
+ }, {
607
+ type: i0.HostBinding,
608
+ args: ["attr.data-size"]
609
+ }], direction: [{
610
+ type: i0.Input
611
+ }], directionChange: [{
612
+ type: i0.Output
613
+ }], sorterChange: [{
614
+ type: i0.Output
615
+ }], sorter: [{
616
+ type: i0.Input
617
+ }] } });
490
618
 
491
619
  var TuiThComponent = /** @class */ (function () {
492
620
  function TuiThComponent(head, table) {
@@ -503,70 +631,87 @@
503
631
  Object.defineProperty(TuiThComponent.prototype, "key", {
504
632
  get: function () {
505
633
  if (!this.head) {
506
- throw new cdk.TuiTableSortKeyException();
634
+ throw new i4.TuiTableSortKeyException();
507
635
  }
508
636
  return this.head.tuiHead;
509
637
  },
510
- enumerable: true,
638
+ enumerable: false,
511
639
  configurable: true
512
640
  });
513
641
  Object.defineProperty(TuiThComponent.prototype, "isCurrent", {
514
642
  get: function () {
515
643
  return !!this.sorter && !!this.table && this.sorter === this.table.sorter;
516
644
  },
517
- enumerable: true,
645
+ enumerable: false,
518
646
  configurable: true
519
647
  });
520
648
  Object.defineProperty(TuiThComponent.prototype, "icon", {
521
649
  get: function () {
522
- return this.isCurrent ? 'tuiIconSortDown' : 'tuiIconSortOff';
650
+ return this.isCurrent ? "tuiIconSortDown" : "tuiIconSortOff";
523
651
  },
524
- enumerable: true,
652
+ enumerable: false,
525
653
  configurable: true
526
654
  });
527
655
  TuiThComponent.prototype.onResized = function (width) {
528
656
  this.width = width;
529
657
  };
530
- TuiThComponent.ctorParameters = function () { return [
531
- { type: TuiHeadDirective, decorators: [{ type: core.Optional }, { type: core.Inject, args: [TuiHeadDirective,] }] },
532
- { type: TuiTableDirective, decorators: [{ type: core.Optional }, { type: core.Inject, args: [core.forwardRef(function () { return TuiTableDirective; }),] }] }
533
- ]; };
534
- __decorate([
535
- core.Input(),
536
- cdk.tuiDefaultProp()
537
- ], TuiThComponent.prototype, "sorter", void 0);
538
- __decorate([
539
- core.Input(),
540
- cdk.tuiDefaultProp()
541
- ], TuiThComponent.prototype, "resizable", void 0);
542
- __decorate([
543
- core.Input(),
544
- core.HostBinding('class._sticky'),
545
- cdk.tuiDefaultProp()
546
- ], TuiThComponent.prototype, "sticky", void 0);
547
- __decorate([
548
- core.HostBinding('style.width.px')
549
- ], TuiThComponent.prototype, "width", void 0);
550
- TuiThComponent = __decorate([
551
- core.Component({
552
- selector: 'th[tuiTh]',
553
- template: "<button\n *ngIf=\"sorter && table; else content\"\n type=\"button\"\n class=\"t-sort\"\n [class.t-sort_sorted]=\"isCurrent\"\n (click)=\"table.updateSorter(sorter)\"\n>\n <ng-container [ngTemplateOutlet]=\"content\"></ng-container>\n {{ table.change$ | async }}\n <tui-svg\n class=\"t-sort-icon\"\n [src]=\"icon\"\n [class.t-sort-icon_rotated]=\"isCurrent && table.direction === -1\"\n ></tui-svg>\n</button>\n<ng-template #content><ng-content></ng-content></ng-template>\n<div\n *ngIf=\"resizable\"\n class=\"t-bar\"\n (tuiResized)=\"onResized($event)\"\n></div>\n",
554
- changeDetection: core.ChangeDetectionStrategy.OnPush,
555
- providers: [
556
- {
557
- provide: core$1.TUI_ELEMENT_REF,
558
- useExisting: core.ElementRef,
559
- },
560
- ],
561
- styles: [":host{transition-property:box-shadow;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;position:relative;top:0;z-index:20;height:var(--tui-height-m);font:var(--tui-font-text-s);text-align:left;font-weight:700;color:var(--tui-text-02);background:var(--tui-base-01);cursor:default;padding:0 .75rem;box-sizing:border-box;box-shadow:0 .3125rem rgba(237,237,237,0);border:1px solid var(--tui-base-04)}:host:not(:first-child){border-left:none}:host._sticky{position:-webkit-sticky;position:sticky;z-index:30}:host._sticky:first-child{left:0}:host._sticky:after{transition-property:opacity;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;content:'';position:absolute;top:0;left:100%;bottom:0;width:.3125rem;pointer-events:none;background:rgba(237,237,237,.7);opacity:0}:host-context(tr:not(:first-child)){border-top:none}:host-context(table[data-size='l']){height:var(--tui-height-l);font:var(--tui-font-text-m);font-weight:700;padding:0 1rem}:host-context(thead[tuiThead]){position:-webkit-sticky;position:sticky}:host-context(table._stuck)._sticky:after{opacity:1}:host-context(thead[tuiThead]._stuck){box-shadow:0 .3125rem rgba(237,237,237,.7)}:host-context(table[data-mode=onDark]):after{background:rgba(60,60,60,.9)}:host-context(table[data-mode=onDark]thead[tuiThead]._stuck){box-shadow:0 .3125rem rgba(60,60,60,.9)}:host-context(table[data-mode=onDark]thead[tuiThead]._stuck):first-child{box-shadow:.0625rem .3125rem rgba(60,60,60,.9)}:host-context(table[data-size='l']thead[tuiThead]tr:nth-child(2)){top:var(--tui-height-l)}:host-context(table[data-size='m']thead[tuiThead]tr:nth-child(2)){top:var(--tui-height-m)}:host-context(table[data-size='s']thead[tuiThead]tr:nth-child(2)){top:var(--tui-height-s)}.t-sort{transition-property:color;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:0;background:0 0;font-size:inherit;line-height:inherit;display:inline-flex;flex-direction:inherit;align-items:center;outline:0;font-weight:700;cursor:pointer}.t-sort_sorted{color:var(--tui-text-01)}.t-sort_sorted .t-sort-icon_rotated{transform:scaleY(-1)}.t-sort:focus-visible{background:var(--tui-selection)}.t-sort:hover{color:var(--tui-text-01)}.t-bar{transition-property:opacity;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;position:absolute;top:0;bottom:0;right:-1px;width:3px;justify-self:flex-end;border-left:2px solid transparent;background:var(--tui-support-12);background-clip:content-box;cursor:ew-resize;opacity:0}.t-bar:active,.t-bar:hover{opacity:1}"]
562
- }),
563
- __param(0, core.Optional()),
564
- __param(0, core.Inject(TuiHeadDirective)),
565
- __param(1, core.Optional()),
566
- __param(1, core.Inject(core.forwardRef(function () { return TuiTableDirective; })))
567
- ], TuiThComponent);
568
658
  return TuiThComponent;
569
659
  }());
660
+ TuiThComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiThComponent, deps: [{ token: TuiHeadDirective, optional: true }, { token: i0.forwardRef(function () { return TuiTableDirective; }), optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
661
+ TuiThComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TuiThComponent, selector: "th[tuiTh]", inputs: { sorter: "sorter", resizable: "resizable", sticky: "sticky" }, host: { properties: { "class._sticky": "this.sticky", "style.width.px": "this.width" } }, providers: [
662
+ {
663
+ provide: i1.TUI_ELEMENT_REF,
664
+ useExisting: i0.ElementRef,
665
+ },
666
+ ], ngImport: i0__namespace, template: "<button\n *ngIf=\"sorter && table; else content\"\n type=\"button\"\n class=\"t-sort\"\n [class.t-sort_sorted]=\"isCurrent\"\n (click)=\"table.updateSorter(sorter)\"\n>\n <ng-container [ngTemplateOutlet]=\"content\"></ng-container>\n {{ table.change$ | async }}\n <tui-svg\n class=\"t-sort-icon\"\n [src]=\"icon\"\n [class.t-sort-icon_rotated]=\"isCurrent && table.direction === -1\"\n ></tui-svg>\n</button>\n<ng-template #content><ng-content></ng-content></ng-template>\n<div\n *ngIf=\"resizable\"\n class=\"t-bar\"\n (tuiResized)=\"onResized($event)\"\n></div>\n", styles: [":host{transition-property:box-shadow;transition-duration:.3s;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:relative;top:0;z-index:20;height:var(--tui-height-m);font:var(--tui-font-text-s);text-align:left;font-weight:bold;color:var(--tui-text-02);background:var(--tui-base-01);cursor:default;padding:0 .75rem;box-sizing:border-box;box-shadow:0 .3125rem rgba(237,237,237,0);border:1px solid var(--tui-base-04)}:host:not(:first-child){border-left:none}:host._sticky{position:-webkit-sticky;position:sticky;z-index:30}:host._sticky:first-child{left:0}:host._sticky:after{transition-property:opacity;transition-duration:.3s;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:\"\";position:absolute;top:0;left:100%;bottom:0;width:.3125rem;pointer-events:none;background:rgba(237,237,237,.7);opacity:0}:host-context(tr:not(:first-child)){border-top:none}:host-context(table[data-size=\"l\"]){height:var(--tui-height-l);font:var(--tui-font-text-m);font-weight:bold;padding:0 1rem}:host-context(thead[tuiThead]){position:-webkit-sticky;position:sticky}:host-context(table._stuck)._sticky:after{opacity:1}:host-context(thead[tuiThead]._stuck){box-shadow:0 .3125rem rgba(237,237,237,.7)}:host-context(table[data-mode=\"onDark\"]):after{background:rgba(60,60,60,.9)}:host-context(table[data-mode=\"onDark\"] thead[tuiThead]._stuck){box-shadow:0 .3125rem rgba(60,60,60,.9)}:host-context(table[data-mode=\"onDark\"] thead[tuiThead]._stuck):first-child{box-shadow:.0625rem .3125rem rgba(60,60,60,.9)}:host-context(table[data-size=\"l\"] thead[tuiThead] tr:nth-child(2)){top:var(--tui-height-l)}:host-context(table[data-size=\"m\"] thead[tuiThead] tr:nth-child(2)){top:var(--tui-height-m)}:host-context(table[data-size=\"s\"] thead[tuiThead] tr:nth-child(2)){top:var(--tui-height-s)}.t-sort{transition-property:color;transition-duration:.3s;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;display:inline-flex;flex-direction:inherit;align-items:center;outline:none;font-weight:bold;cursor:pointer}.t-sort_sorted{color:var(--tui-text-01)}.t-sort_sorted .t-sort-icon_rotated{transform:scaleY(-1)}.t-sort:focus-visible{background:var(--tui-selection)}.t-sort:hover{color:var(--tui-text-01)}.t-bar{transition-property:opacity;transition-duration:.3s;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:0;bottom:0;right:-1px;width:3px;justify-self:flex-end;border-left:2px solid transparent;background:var(--tui-support-12);background-clip:content-box;cursor:ew-resize;opacity:0}.t-bar:hover,.t-bar:active{opacity:1}\n"], components: [{ type: i1__namespace$1.TuiSvgComponent, selector: "tui-svg", inputs: ["src"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: TuiResizedDirective, selector: "[tuiResized]", outputs: ["tuiResized"] }], pipes: { "async": i2__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
667
+ __decorate([
668
+ i4.tuiDefaultProp()
669
+ ], TuiThComponent.prototype, "sorter", void 0);
670
+ __decorate([
671
+ i4.tuiDefaultProp()
672
+ ], TuiThComponent.prototype, "resizable", void 0);
673
+ __decorate([
674
+ i4.tuiDefaultProp()
675
+ ], TuiThComponent.prototype, "sticky", void 0);
676
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiThComponent, decorators: [{
677
+ type: i0.Component,
678
+ args: [{
679
+ selector: "th[tuiTh]",
680
+ templateUrl: "./th.template.html",
681
+ styleUrls: ["./th.style.less"],
682
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
683
+ providers: [
684
+ {
685
+ provide: i1.TUI_ELEMENT_REF,
686
+ useExisting: i0.ElementRef,
687
+ },
688
+ ],
689
+ }]
690
+ }], ctorParameters: function () {
691
+ return [{ type: TuiHeadDirective, decorators: [{
692
+ type: i0.Optional
693
+ }, {
694
+ type: i0.Inject,
695
+ args: [TuiHeadDirective]
696
+ }] }, { type: TuiTableDirective, decorators: [{
697
+ type: i0.Optional
698
+ }, {
699
+ type: i0.Inject,
700
+ args: [i0.forwardRef(function () { return TuiTableDirective; })]
701
+ }] }];
702
+ }, propDecorators: { sorter: [{
703
+ type: i0.Input
704
+ }], resizable: [{
705
+ type: i0.Input
706
+ }], sticky: [{
707
+ type: i0.Input
708
+ }, {
709
+ type: i0.HostBinding,
710
+ args: ["class._sticky"]
711
+ }], width: [{
712
+ type: i0.HostBinding,
713
+ args: ["style.width.px"]
714
+ }] } });
570
715
 
571
716
  var TuiSortableDirective = /** @class */ (function () {
572
717
  function TuiSortableDirective(sortBy, table, th) {
@@ -579,7 +724,7 @@
579
724
  get: function () {
580
725
  return this.th.key;
581
726
  },
582
- enumerable: true,
727
+ enumerable: false,
583
728
  configurable: true
584
729
  });
585
730
  TuiSortableDirective.prototype.ngOnInit = function () {
@@ -595,85 +740,106 @@
595
740
  get: function () {
596
741
  return this.sortBy.tuiSortBy === this.key;
597
742
  },
598
- enumerable: true,
743
+ enumerable: false,
599
744
  configurable: true
600
745
  });
601
- TuiSortableDirective.ctorParameters = function () { return [
602
- { type: TuiSortByDirective, decorators: [{ type: core.Inject, args: [core.forwardRef(function () { return TuiSortByDirective; }),] }] },
603
- { type: TuiTableDirective, decorators: [{ type: core.Inject, args: [TuiTableDirective,] }] },
604
- { type: TuiThComponent, decorators: [{ type: core.Inject, args: [TuiThComponent,] }] }
605
- ]; };
606
- TuiSortableDirective = __decorate([
607
- core.Directive({
608
- selector: 'th[tuiTh][tuiSortable]',
609
- }),
610
- __param(0, core.Inject(core.forwardRef(function () { return TuiSortByDirective; }))),
611
- __param(1, core.Inject(TuiTableDirective)),
612
- __param(2, core.Inject(TuiThComponent))
613
- ], TuiSortableDirective);
614
746
  return TuiSortableDirective;
615
747
  }());
748
+ TuiSortableDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSortableDirective, deps: [{ token: i0.forwardRef(function () { return TuiSortByDirective; }) }, { token: TuiTableDirective }, { token: TuiThComponent }], target: i0__namespace.ɵɵFactoryTarget.Directive });
749
+ TuiSortableDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiSortableDirective, selector: "th[tuiTh][tuiSortable]", ngImport: i0__namespace });
750
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSortableDirective, decorators: [{
751
+ type: i0.Directive,
752
+ args: [{
753
+ selector: "th[tuiTh][tuiSortable]",
754
+ }]
755
+ }], ctorParameters: function () {
756
+ return [{ type: TuiSortByDirective, decorators: [{
757
+ type: i0.Inject,
758
+ args: [i0.forwardRef(function () { return TuiSortByDirective; })]
759
+ }] }, { type: TuiTableDirective, decorators: [{
760
+ type: i0.Inject,
761
+ args: [TuiTableDirective]
762
+ }] }, { type: TuiThComponent, decorators: [{
763
+ type: i0.Inject,
764
+ args: [TuiThComponent]
765
+ }] }];
766
+ } });
616
767
 
617
768
  var TuiSortByDirective = /** @class */ (function () {
618
769
  function TuiSortByDirective(table) {
619
770
  var _this = this;
620
771
  this.table = table;
621
- this.sortables = cdk.EMPTY_QUERY;
772
+ this.sortables = i4.EMPTY_QUERY;
622
773
  this.tuiSortBy = null;
623
774
  this.tuiSortByChange = this.table.sorterChange.pipe(operators.filter(function () { return !!_this.sortables.length; }), operators.map(function (sorter) { return _this.getKey(sorter); }));
624
775
  }
625
776
  TuiSortByDirective.prototype.getKey = function (sorter) {
626
- var _a, _b;
627
- return (_b = (_a = this.sortables.find(function (s) { return s.sorter === sorter; })) === null || _a === void 0 ? void 0 : _a.key) !== null && _b !== void 0 ? _b : null;
777
+ var _a;
778
+ return ((_a = this.sortables.find(function (s) { return s.sorter === sorter; })) === null || _a === void 0 ? void 0 : _a.key) || null;
628
779
  };
629
- TuiSortByDirective.ctorParameters = function () { return [
630
- { type: TuiTableDirective, decorators: [{ type: core.Inject, args: [TuiTableDirective,] }] }
631
- ]; };
632
- __decorate([
633
- core.ContentChildren(TuiSortableDirective, { descendants: true })
634
- ], TuiSortByDirective.prototype, "sortables", void 0);
635
- __decorate([
636
- core.Input(),
637
- cdk.tuiDefaultProp()
638
- ], TuiSortByDirective.prototype, "tuiSortBy", void 0);
639
- __decorate([
640
- core.Output()
641
- ], TuiSortByDirective.prototype, "tuiSortByChange", void 0);
642
- TuiSortByDirective = __decorate([
643
- core.Directive({
644
- selector: 'table[tuiTable][tuiSortBy]',
645
- }),
646
- __param(0, core.Inject(TuiTableDirective))
647
- ], TuiSortByDirective);
648
780
  return TuiSortByDirective;
649
781
  }());
782
+ TuiSortByDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSortByDirective, deps: [{ token: TuiTableDirective }], target: i0__namespace.ɵɵFactoryTarget.Directive });
783
+ TuiSortByDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiSortByDirective, selector: "table[tuiTable][tuiSortBy]", inputs: { tuiSortBy: "tuiSortBy" }, outputs: { tuiSortByChange: "tuiSortByChange" }, queries: [{ propertyName: "sortables", predicate: TuiSortableDirective, descendants: true }], ngImport: i0__namespace });
784
+ __decorate([
785
+ i4.tuiDefaultProp()
786
+ ], TuiSortByDirective.prototype, "tuiSortBy", void 0);
787
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSortByDirective, decorators: [{
788
+ type: i0.Directive,
789
+ args: [{
790
+ selector: "table[tuiTable][tuiSortBy]",
791
+ }]
792
+ }], ctorParameters: function () {
793
+ return [{ type: TuiTableDirective, decorators: [{
794
+ type: i0.Inject,
795
+ args: [TuiTableDirective]
796
+ }] }];
797
+ }, propDecorators: { sortables: [{
798
+ type: i0.ContentChildren,
799
+ args: [TuiSortableDirective, { descendants: true }]
800
+ }], tuiSortBy: [{
801
+ type: i0.Input
802
+ }], tuiSortByChange: [{
803
+ type: i0.Output
804
+ }] } });
650
805
 
651
806
  var TuiTheadDirective = /** @class */ (function () {
652
807
  function TuiTheadDirective(stuck$) {
653
808
  this.stuck$ = stuck$;
654
809
  }
655
- TuiTheadDirective.ctorParameters = function () { return [
656
- { type: rxjs.Observable, decorators: [{ type: core.Inject, args: [TUI_STUCK,] }] }
657
- ]; };
658
- TuiTheadDirective = __decorate([
659
- core.Directive({
660
- selector: 'thead[tuiThead]',
661
- providers: [
662
- TUI_STUCK_PROVIDER,
663
- intersectionObserver.IntersectionObserverService,
664
- {
665
- provide: intersectionObserver.INTERSECTION_ROOT_MARGIN,
666
- useValue: '0px 10000px 10000px 10000px',
667
- },
668
- ],
669
- host: {
670
- '($.class._stuck)': 'stuck$',
671
- },
672
- }),
673
- __param(0, core.Inject(TUI_STUCK))
674
- ], TuiTheadDirective);
675
810
  return TuiTheadDirective;
676
811
  }());
812
+ TuiTheadDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTheadDirective, deps: [{ token: TUI_STUCK }], target: i0__namespace.ɵɵFactoryTarget.Directive });
813
+ TuiTheadDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiTheadDirective, selector: "thead[tuiThead]", host: { listeners: { "$.class._stuck": "stuck$" } }, providers: [
814
+ TUI_STUCK_PROVIDER,
815
+ intersectionObserver.IntersectionObserverService,
816
+ {
817
+ provide: intersectionObserver.INTERSECTION_ROOT_MARGIN,
818
+ useValue: "0px 10000px 10000px 10000px",
819
+ },
820
+ ], ngImport: i0__namespace });
821
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTheadDirective, decorators: [{
822
+ type: i0.Directive,
823
+ args: [{
824
+ selector: "thead[tuiThead]",
825
+ providers: [
826
+ TUI_STUCK_PROVIDER,
827
+ intersectionObserver.IntersectionObserverService,
828
+ {
829
+ provide: intersectionObserver.INTERSECTION_ROOT_MARGIN,
830
+ useValue: "0px 10000px 10000px 10000px",
831
+ },
832
+ ],
833
+ host: {
834
+ '($.class._stuck)': "stuck$",
835
+ },
836
+ }]
837
+ }], ctorParameters: function () {
838
+ return [{ type: i1__namespace.Observable, decorators: [{
839
+ type: i0.Inject,
840
+ args: [TUI_STUCK]
841
+ }] }];
842
+ } });
677
843
 
678
844
  var TuiTableSortPipe = /** @class */ (function () {
679
845
  function TuiTableSortPipe(table) {
@@ -683,229 +849,276 @@
683
849
  return this.sort(data, this.table.sorter, this.table.direction);
684
850
  };
685
851
  TuiTableSortPipe.prototype.sort = function (data, sorter, direction) {
686
- return __spread(data).sort(function (a, b) { return direction * sorter(a, b); });
852
+ return __spreadArray([], __read(data)).sort(function (a, b) { return direction * sorter(a, b); });
687
853
  };
688
- TuiTableSortPipe.ctorParameters = function () { return [
689
- { type: TuiTableDirective, decorators: [{ type: core.Inject, args: [TuiTableDirective,] }] }
690
- ]; };
691
- __decorate([
692
- cdk.tuiPure
693
- ], TuiTableSortPipe.prototype, "sort", null);
694
- TuiTableSortPipe = __decorate([
695
- core.Pipe({
696
- name: 'tuiTableSort',
697
- pure: false,
698
- }),
699
- __param(0, core.Inject(TuiTableDirective))
700
- ], TuiTableSortPipe);
701
854
  return TuiTableSortPipe;
702
855
  }());
856
+ TuiTableSortPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTableSortPipe, deps: [{ token: TuiTableDirective }], target: i0__namespace.ɵɵFactoryTarget.Pipe });
857
+ TuiTableSortPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTableSortPipe, name: "tuiTableSort", pure: false });
858
+ __decorate([
859
+ i4.tuiPure
860
+ ], TuiTableSortPipe.prototype, "sort", null);
861
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTableSortPipe, decorators: [{
862
+ type: i0.Pipe,
863
+ args: [{
864
+ name: "tuiTableSort",
865
+ pure: false,
866
+ }]
867
+ }], ctorParameters: function () {
868
+ return [{ type: TuiTableDirective, decorators: [{
869
+ type: i0.Inject,
870
+ args: [TuiTableDirective]
871
+ }] }];
872
+ }, propDecorators: { sort: [] } });
703
873
 
704
- // TODO: 3.0 remove in ivy compilation
705
- var TABLE_FACTORY = core$1.watchedControllerFactory;
706
874
  var TUI_TABLE_PROVIDER = [
707
- cdk.TuiDestroyService,
875
+ i4.TuiDestroyService,
708
876
  TuiTableSortPipe,
709
877
  {
710
878
  provide: TuiTableDirective,
711
- deps: [[new core.SkipSelf(), TuiTableDirective], core.ChangeDetectorRef, cdk.TuiDestroyService],
712
- useFactory: TABLE_FACTORY,
879
+ deps: [[new i0.SkipSelf(), TuiTableDirective], i0.ChangeDetectorRef, i4.TuiDestroyService],
880
+ useFactory: i1.tuiWatchedControllerFactory,
713
881
  },
714
882
  ];
715
883
 
884
+ var TuiTdComponent = /** @class */ (function () {
885
+ function TuiTdComponent() {
886
+ }
887
+ return TuiTdComponent;
888
+ }());
889
+ TuiTdComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTdComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
890
+ TuiTdComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TuiTdComponent, selector: "th[tuiTd], td[tuiTd]", host: { properties: { "class._editable": "this.control" } }, queries: [{ propertyName: "control", first: true, predicate: forms.NgControl, descendants: true }], ngImport: i0__namespace, template: "\n <ng-content></ng-content>\n ", isInline: true, styles: [":host{position:relative;height:var(--tui-height-m);font:var(--tui-font-text-s);text-align:left;padding:0 .75rem;background:var(--tui-base-01);border:1px solid var(--tui-base-04);border-top:none;box-sizing:border-box;transform:translate(0)}:host:first-child{left:0}:host:not(:first-child){border-left:none}:host._editable:focus-within{z-index:1}:host._editable{padding:0;vertical-align:top}:host(th){position:-webkit-sticky;position:sticky;z-index:1}:host(th):after{transition-property:opacity;transition-duration:.3s;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:\"\";position:absolute;top:0;bottom:0;left:100%;width:.3125rem;pointer-events:none;background:rgba(237,237,237,.7);opacity:0}:host(th):focus-within:not(:disabled){z-index:11}:host-context(table[data-mode=\"onDark\"]):after{background:rgba(60,60,60,.9)}:host-context(table._stuck){z-index:10}:host-context(table._stuck):last-of-type:after{opacity:1}:host-context(table[data-size=\"l\"]){font:var(--tui-font-text-m);height:var(--tui-height-l);padding-left:1rem;padding-right:1rem}:host-context(table[data-size=\"l\"])._editable{padding:0}:host(td):focus-within{z-index:1}:host(td):not(:focus-within){z-index:0}\n"], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
891
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTdComponent, decorators: [{
892
+ type: i0.Component,
893
+ args: [{
894
+ selector: "th[tuiTd], td[tuiTd]",
895
+ template: "\n <ng-content></ng-content>\n ",
896
+ styleUrls: ["./td.style.less"],
897
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
898
+ }]
899
+ }], propDecorators: { control: [{
900
+ type: i0.HostBinding,
901
+ args: ["class._editable"]
902
+ }, {
903
+ type: i0.ContentChild,
904
+ args: [forms.NgControl]
905
+ }] } });
906
+
716
907
  var TuiTrComponent = /** @class */ (function () {
717
908
  function TuiTrComponent(table, body) {
718
909
  var _this = this;
719
910
  this.table = table;
720
911
  this.body = body;
721
- this.cells = cdk.EMPTY_QUERY;
722
- this.cells$ = this.cells.changes.pipe(operators.startWith(null), operators.map(function () {
723
- return _this.cells.reduce(function (record, item) {
724
- var _a;
725
- return (__assign(__assign({}, record), (_a = {}, _a[item.tuiCell] = item, _a)));
726
- }, {});
727
- }));
728
- this.item$ = this.body.rows.changes.pipe(operators.startWith(null), operators.map(function () {
729
- return _this.body.sorted[_this.body.rows.toArray().findIndex(function (row) { return row === _this; })];
730
- }));
912
+ this.cells = i4.EMPTY_QUERY;
913
+ this.cells$ = this.cells.changes.pipe(operators.startWith(null), operators.map(function () { return _this.cells.reduce(function (record, item) {
914
+ var _a;
915
+ return (Object.assign(Object.assign({}, record), (_a = {}, _a[item.tuiCell] = item, _a)));
916
+ }, {}); }));
917
+ this.item$ = this.body.rows.changes.pipe(operators.startWith(null), operators.map(function () { return _this.body.sorted[_this.body.rows.toArray().findIndex(function (row) { return row === _this; })]; }));
731
918
  }
732
- TuiTrComponent.ctorParameters = function () { return [
733
- { type: TuiTableDirective, decorators: [{ type: core.Inject, args: [core.forwardRef(function () { return TuiTableDirective; }),] }] },
734
- { type: TuiTbodyComponent, decorators: [{ type: core.Inject, args: [core.forwardRef(function () { return TuiTbodyComponent; }),] }] }
735
- ]; };
736
- __decorate([
737
- core.ContentChildren(core.forwardRef(function () { return TuiCellDirective; }))
738
- ], TuiTrComponent.prototype, "cells", void 0);
739
- TuiTrComponent = __decorate([
740
- core.Component({
741
- selector: 'tr[tuiTr]',
742
- template: "<ng-container *ngIf=\"cells$ | async as items\">\n <ng-container\n *ngFor=\"let key of table.columns\"\n [ngTemplateOutlet]=\"items[key.toString()]?.template || plain\"\n >\n <ng-template #plain>\n <td\n *ngIf=\"item$ | async as item\"\n tuiTd\n >\n {{ item[key.toString()] }}\n </td>\n </ng-template>\n </ng-container>\n</ng-container>\n",
743
- changeDetection: core.ChangeDetectionStrategy.OnPush,
744
- providers: [TUI_TABLE_PROVIDER]
745
- }),
746
- __param(0, core.Inject(core.forwardRef(function () { return TuiTableDirective; }))),
747
- __param(1, core.Inject(core.forwardRef(function () { return TuiTbodyComponent; })))
748
- ], TuiTrComponent);
749
919
  return TuiTrComponent;
750
920
  }());
921
+ TuiTrComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTrComponent, deps: [{ token: i0.forwardRef(function () { return TuiTableDirective; }) }, { token: i0.forwardRef(function () { return TuiTbodyComponent; }) }], target: i0__namespace.ɵɵFactoryTarget.Component });
922
+ TuiTrComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TuiTrComponent, selector: "tr[tuiTr]", providers: [TUI_TABLE_PROVIDER], queries: [{ propertyName: "cells", predicate: i0__namespace.forwardRef(function () { return TuiCellDirective; }) }], ngImport: i0__namespace, template: "<ng-container *ngIf=\"cells$ | async as items\">\n <ng-container\n *ngFor=\"let key of table.columns\"\n [ngTemplateOutlet]=\"items[key.toString()]?.template || plain\"\n >\n <ng-template #plain>\n <td\n *ngIf=\"item$ | async as item\"\n tuiTd\n >\n {{ item[key.toString()] }}\n </td>\n </ng-template>\n </ng-container>\n</ng-container>\n", components: [{ type: TuiTdComponent, selector: "th[tuiTd], td[tuiTd]" }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "async": i2__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
923
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTrComponent, decorators: [{
924
+ type: i0.Component,
925
+ args: [{
926
+ selector: "tr[tuiTr]",
927
+ templateUrl: "./tr.template.html",
928
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
929
+ providers: [TUI_TABLE_PROVIDER],
930
+ }]
931
+ }], ctorParameters: function () {
932
+ return [{ type: TuiTableDirective, decorators: [{
933
+ type: i0.Inject,
934
+ args: [i0.forwardRef(function () { return TuiTableDirective; })]
935
+ }] }, { type: TuiTbodyComponent, decorators: [{
936
+ type: i0.Inject,
937
+ args: [i0.forwardRef(function () { return TuiTbodyComponent; })]
938
+ }] }];
939
+ }, propDecorators: { cells: [{
940
+ type: i0.ContentChildren,
941
+ args: [i0.forwardRef(function () { return TuiCellDirective; })]
942
+ }] } });
751
943
 
752
944
  var TuiTbodyComponent = /** @class */ (function () {
753
945
  function TuiTbodyComponent(pipe, table) {
754
946
  this.pipe = pipe;
755
947
  this.table = table;
756
948
  this.data = [];
757
- this.heading = '';
949
+ this.heading = "";
758
950
  this.open = true;
759
- this.openChange = new core.EventEmitter();
760
- this.rows = cdk.EMPTY_QUERY;
951
+ this.openChange = new i0.EventEmitter();
952
+ this.rows = i4.EMPTY_QUERY;
761
953
  this.toContext = function ($implicit, index) { return ({ $implicit: $implicit, index: index }); };
762
954
  }
763
955
  Object.defineProperty(TuiTbodyComponent.prototype, "sorted", {
764
956
  get: function () {
765
957
  return this.pipe.transform(this.data);
766
958
  },
767
- enumerable: true,
959
+ enumerable: false,
768
960
  configurable: true
769
961
  });
770
962
  TuiTbodyComponent.prototype.onClick = function () {
771
963
  this.open = !this.open;
772
964
  this.openChange.emit(this.open);
773
965
  };
774
- TuiTbodyComponent.ctorParameters = function () { return [
775
- { type: TuiTableSortPipe, decorators: [{ type: core.Inject, args: [TuiTableSortPipe,] }] },
776
- { type: TuiTableDirective, decorators: [{ type: core.Inject, args: [core.forwardRef(function () { return TuiTableDirective; }),] }] }
777
- ]; };
778
- __decorate([
779
- core.Input(),
780
- cdk.tuiDefaultProp()
781
- ], TuiTbodyComponent.prototype, "data", void 0);
782
- __decorate([
783
- core.Input(),
784
- cdk.tuiDefaultProp()
785
- ], TuiTbodyComponent.prototype, "heading", void 0);
786
- __decorate([
787
- core.Input(),
788
- cdk.tuiDefaultProp()
789
- ], TuiTbodyComponent.prototype, "open", void 0);
790
- __decorate([
791
- core.Output()
792
- ], TuiTbodyComponent.prototype, "openChange", void 0);
793
- __decorate([
794
- core.ContentChild(core.forwardRef(function () { return TuiRowDirective; }))
795
- ], TuiTbodyComponent.prototype, "row", void 0);
796
- __decorate([
797
- core.ContentChildren(core.forwardRef(function () { return TuiTrComponent; }))
798
- ], TuiTbodyComponent.prototype, "rows", void 0);
799
- TuiTbodyComponent = __decorate([
800
- core.Component({
801
- selector: 'tbody[tuiTbody]',
802
- template: "<ng-content></ng-content>\n<tr *ngIf=\"heading\">\n <th\n class=\"heading\"\n [colSpan]=\"table.columns.length\"\n >\n <button\n type=\"button\"\n class=\"expand\"\n (click)=\"onClick()\"\n >\n <span\n polymorpheus-outlet\n class=\"name\"\n [content]=\"heading\"\n ></span>\n <tui-svg\n src=\"tuiIconChevronDownLarge\"\n class=\"chevron\"\n [class.chevron_rotated]=\"open\"\n ></tui-svg>\n </button>\n </th>\n</tr>\n<ng-container *ngIf=\"open && row\">\n <ng-container\n *ngFor=\"let item of sorted; let index = index\"\n [ngTemplateOutlet]=\"row.template\"\n [ngTemplateOutletContext]=\"item | tuiMapper: toContext:index\"\n ></ng-container>\n</ng-container>\n",
803
- changeDetection: core.ChangeDetectionStrategy.OnPush,
804
- providers: TUI_TABLE_PROVIDER,
805
- styles: [":host{border-color:var(--tui-base-04)}:host tr{border-color:inherit}.expand{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:0;background:0 0;font-size:inherit;line-height:inherit;display:flex;width:100%;height:100%;align-items:center;box-sizing:border-box;outline:0;font-weight:700;cursor:pointer;border-color:inherit}.expand:focus-visible .name{background:var(--tui-selection)}.expand:after,.expand:before{content:'';position:-webkit-sticky;position:sticky;height:100%;border-left:1px solid;border-color:inherit}.expand:before{left:0}.expand:after{right:0}.heading{height:var(--tui-height-m);font:var(--tui-font-text-s);padding:0;background:var(--tui-base-02);border-bottom:1px solid var(--tui-base-04);border-color:inherit}:host-context(table[data-size='l']) .heading{font:var(--tui-font-text-m);height:var(--tui-height-l)}.name{position:-webkit-sticky;position:sticky;left:.75rem;display:inline-block}:host-context(table[data-size='l']) .name{left:1rem}.chevron{transition-property:transform;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;position:-webkit-sticky;position:sticky;right:.75rem;margin:0 .6875rem 0 auto}.chevron_rotated{transform:rotate(180deg)}"]
806
- }),
807
- __param(0, core.Inject(TuiTableSortPipe)),
808
- __param(1, core.Inject(core.forwardRef(function () { return TuiTableDirective; })))
809
- ], TuiTbodyComponent);
810
966
  return TuiTbodyComponent;
811
967
  }());
812
-
813
- var TuiTdComponent = /** @class */ (function () {
814
- function TuiTdComponent() {
815
- }
816
- __decorate([
817
- core.HostBinding('class._editable'),
818
- core.ContentChild(forms.NgControl)
819
- ], TuiTdComponent.prototype, "control", void 0);
820
- TuiTdComponent = __decorate([
821
- core.Component({
822
- selector: 'th[tuiTd], td[tuiTd]',
823
- template: '<ng-content></ng-content>',
824
- changeDetection: core.ChangeDetectionStrategy.OnPush,
825
- styles: [":host{position:relative;height:var(--tui-height-m);font:var(--tui-font-text-s);text-align:left;padding:0 .75rem;background:var(--tui-base-01);border:1px solid var(--tui-base-04);border-top:none;box-sizing:border-box;transform:translate3d(0,0,0)}:host:first-child{left:0}:host:not(:first-child){border-left:none}:host._editable:focus-within{z-index:1}:host._editable{padding:0;vertical-align:top}:host(th){position:-webkit-sticky;position:sticky;z-index:1}:host(th):after{transition-property:opacity;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;content:'';position:absolute;top:0;bottom:0;left:100%;width:.3125rem;pointer-events:none;background:rgba(237,237,237,.7);opacity:0}:host(th):focus-within:not(:disabled){z-index:11}:host-context(table[data-mode=onDark]):after{background:rgba(60,60,60,.9)}:host-context(table._stuck){z-index:10}:host-context(table._stuck):last-of-type:after{opacity:1}:host-context(table[data-size='l']){font:var(--tui-font-text-m);height:var(--tui-height-l);padding-left:1rem;padding-right:1rem}:host-context(table[data-size='l'])._editable{padding:0}:host(td):focus-within{z-index:1}:host(td):not(:focus-within){z-index:0}"]
826
- })
827
- ], TuiTdComponent);
828
- return TuiTdComponent;
829
- }());
968
+ TuiTbodyComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTbodyComponent, deps: [{ token: TuiTableSortPipe }, { token: i0.forwardRef(function () { return TuiTableDirective; }) }], target: i0__namespace.ɵɵFactoryTarget.Component });
969
+ TuiTbodyComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TuiTbodyComponent, selector: "tbody[tuiTbody]", inputs: { data: "data", heading: "heading", open: "open" }, outputs: { openChange: "openChange" }, providers: TUI_TABLE_PROVIDER, queries: [{ propertyName: "row", first: true, predicate: i0__namespace.forwardRef(function () { return TuiRowDirective; }), descendants: true }, { propertyName: "rows", predicate: i0__namespace.forwardRef(function () { return TuiTrComponent; }) }], ngImport: i0__namespace, template: "<ng-content></ng-content>\n<tr *ngIf=\"heading\">\n <th\n class=\"heading\"\n [colSpan]=\"table.columns.length\"\n >\n <button\n type=\"button\"\n class=\"expand\"\n (click)=\"onClick()\"\n >\n <span class=\"name\">\n <ng-container *polymorpheusOutlet=\"heading as text\">\n {{ text }}\n </ng-container>\n </span>\n <tui-svg\n src=\"tuiIconChevronDownLarge\"\n class=\"chevron\"\n [class.chevron_rotated]=\"open\"\n ></tui-svg>\n </button>\n </th>\n</tr>\n<ng-container *ngIf=\"open && row\">\n <ng-container\n *ngFor=\"let item of sorted; let index = index\"\n [ngTemplateOutlet]=\"row.template\"\n [ngTemplateOutletContext]=\"item | tuiMapper: toContext:index\"\n ></ng-container>\n</ng-container>\n", styles: [":host{border-color:var(--tui-base-04)}:host tr{border-color:inherit}.expand{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;display:flex;width:100%;height:100%;align-items:center;box-sizing:border-box;outline:none;font-weight:bold;cursor:pointer;border-color:inherit}.expand:focus-visible .name{background:var(--tui-selection)}.expand:before,.expand:after{content:\"\";position:-webkit-sticky;position:sticky;height:100%;border-left:1px solid;border-color:inherit}.expand:before{left:0}.expand:after{right:0}.heading{height:var(--tui-height-m);font:var(--tui-font-text-s);padding:0;background:var(--tui-base-02);border-bottom:1px solid var(--tui-base-04);border-color:inherit}:host-context(table[data-size=\"l\"]) .heading{font:var(--tui-font-text-m);height:var(--tui-height-l)}.name{position:-webkit-sticky;position:sticky;left:.75rem;display:inline-block}:host-context(table[data-size=\"l\"]) .name{left:1rem}.chevron{transition-property:transform;transition-duration:.3s;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:-webkit-sticky;position:sticky;right:.75rem;margin:0 .6875rem 0 auto}.chevron_rotated{transform:rotate(180deg)}\n"], components: [{ type: i1__namespace$1.TuiSvgComponent, selector: "tui-svg", inputs: ["src"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "tuiMapper": i4__namespace.TuiMapperPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
970
+ __decorate([
971
+ i4.tuiDefaultProp()
972
+ ], TuiTbodyComponent.prototype, "data", void 0);
973
+ __decorate([
974
+ i4.tuiDefaultProp()
975
+ ], TuiTbodyComponent.prototype, "heading", void 0);
976
+ __decorate([
977
+ i4.tuiDefaultProp()
978
+ ], TuiTbodyComponent.prototype, "open", void 0);
979
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTbodyComponent, decorators: [{
980
+ type: i0.Component,
981
+ args: [{
982
+ selector: "tbody[tuiTbody]",
983
+ templateUrl: "./tbody.template.html",
984
+ styleUrls: ["./tbody.style.less"],
985
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
986
+ providers: TUI_TABLE_PROVIDER,
987
+ }]
988
+ }], ctorParameters: function () {
989
+ return [{ type: TuiTableSortPipe, decorators: [{
990
+ type: i0.Inject,
991
+ args: [TuiTableSortPipe]
992
+ }] }, { type: TuiTableDirective, decorators: [{
993
+ type: i0.Inject,
994
+ args: [i0.forwardRef(function () { return TuiTableDirective; })]
995
+ }] }];
996
+ }, propDecorators: { data: [{
997
+ type: i0.Input
998
+ }], heading: [{
999
+ type: i0.Input
1000
+ }], open: [{
1001
+ type: i0.Input
1002
+ }], openChange: [{
1003
+ type: i0.Output
1004
+ }], row: [{
1005
+ type: i0.ContentChild,
1006
+ args: [i0.forwardRef(function () { return TuiRowDirective; })]
1007
+ }], rows: [{
1008
+ type: i0.ContentChildren,
1009
+ args: [i0.forwardRef(function () { return TuiTrComponent; })]
1010
+ }] } });
830
1011
 
831
1012
  var TuiThGroupComponent = /** @class */ (function () {
832
1013
  function TuiThGroupComponent(table) {
833
1014
  var _this = this;
834
1015
  this.table = table;
835
- this.heads = cdk.EMPTY_QUERY;
836
- this.heads$ = this.heads.changes.pipe(operators.startWith(null), operators.map(function () {
837
- return _this.heads.reduce(function (record, item) {
838
- var _a;
839
- return (__assign(__assign({}, record), (_a = {}, _a[item.tuiHead] = item, _a)));
840
- }, {});
841
- }));
1016
+ this.heads = i4.EMPTY_QUERY;
1017
+ this.heads$ = this.heads.changes.pipe(operators.startWith(null), operators.map(function () { return _this.heads.reduce(function (record, item) {
1018
+ var _a;
1019
+ return (Object.assign(Object.assign({}, record), (_a = {}, _a[item.tuiHead] = item, _a)));
1020
+ }, {}); }));
842
1021
  }
843
- TuiThGroupComponent.ctorParameters = function () { return [
844
- { type: TuiTableDirective, decorators: [{ type: core.Inject, args: [core.forwardRef(function () { return TuiTableDirective; }),] }] }
845
- ]; };
846
- __decorate([
847
- core.ContentChild(core.forwardRef(function () { return TuiThComponent; }))
848
- ], TuiThGroupComponent.prototype, "th", void 0);
849
- __decorate([
850
- core.ContentChildren(core.forwardRef(function () { return TuiHeadDirective; }))
851
- ], TuiThGroupComponent.prototype, "heads", void 0);
852
- TuiThGroupComponent = __decorate([
853
- core.Component({
854
- selector: 'tr[tuiThGroup]',
855
- template: "<ng-content></ng-content>\n<ng-container *ngIf=\"heads$ | async as headings\">\n <ng-container\n *ngFor=\"let key of table.columns\"\n [ngTemplateOutlet]=\"headings[key.toString()]?.template || plain\"\n >\n <ng-template #plain>\n <th\n *ngIf=\"!th && !heads.length\"\n tuiTh\n >\n {{ key.toString() }}\n </th>\n </ng-template>\n </ng-container>\n</ng-container>\n",
856
- changeDetection: core.ChangeDetectionStrategy.OnPush,
857
- providers: [TUI_TABLE_PROVIDER]
858
- }),
859
- __param(0, core.Inject(core.forwardRef(function () { return TuiTableDirective; })))
860
- ], TuiThGroupComponent);
861
1022
  return TuiThGroupComponent;
862
1023
  }());
1024
+ TuiThGroupComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiThGroupComponent, deps: [{ token: i0.forwardRef(function () { return TuiTableDirective; }) }], target: i0__namespace.ɵɵFactoryTarget.Component });
1025
+ TuiThGroupComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TuiThGroupComponent, selector: "tr[tuiThGroup]", providers: [TUI_TABLE_PROVIDER], queries: [{ propertyName: "th", first: true, predicate: i0__namespace.forwardRef(function () { return TuiThComponent; }), descendants: true }, { propertyName: "heads", predicate: i0__namespace.forwardRef(function () { return TuiHeadDirective; }) }], ngImport: i0__namespace, template: "<ng-content></ng-content>\n<ng-container *ngIf=\"heads$ | async as headings\">\n <ng-container\n *ngFor=\"let key of table.columns\"\n [ngTemplateOutlet]=\"headings[key.toString()]?.template || plain\"\n >\n <ng-template #plain>\n <th\n *ngIf=\"!th && !heads.length\"\n tuiTh\n >\n {{ key.toString() }}\n </th>\n </ng-template>\n </ng-container>\n</ng-container>\n", components: [{ type: TuiThComponent, selector: "th[tuiTh]", inputs: ["sorter", "resizable", "sticky"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "async": i2__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
1026
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiThGroupComponent, decorators: [{
1027
+ type: i0.Component,
1028
+ args: [{
1029
+ selector: "tr[tuiThGroup]",
1030
+ templateUrl: "./th-group.template.html",
1031
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
1032
+ providers: [TUI_TABLE_PROVIDER],
1033
+ }]
1034
+ }], ctorParameters: function () {
1035
+ return [{ type: TuiTableDirective, decorators: [{
1036
+ type: i0.Inject,
1037
+ args: [i0.forwardRef(function () { return TuiTableDirective; })]
1038
+ }] }];
1039
+ }, propDecorators: { th: [{
1040
+ type: i0.ContentChild,
1041
+ args: [i0.forwardRef(function () { return TuiThComponent; })]
1042
+ }], heads: [{
1043
+ type: i0.ContentChildren,
1044
+ args: [i0.forwardRef(function () { return TuiHeadDirective; })]
1045
+ }] } });
863
1046
 
864
1047
  var TuiTableModule = /** @class */ (function () {
865
1048
  function TuiTableModule() {
866
1049
  }
867
- TuiTableModule = __decorate([
868
- core.NgModule({
869
- imports: [common.CommonModule, ngPolymorpheus.PolymorpheusModule, cdk.TuiMapperPipeModule, core$1.TuiSvgModule],
870
- declarations: [
871
- TuiTableDirective,
872
- TuiTbodyComponent,
873
- TuiThGroupComponent,
874
- TuiThComponent,
875
- TuiTdComponent,
876
- TuiTrComponent,
877
- TuiCellDirective,
878
- TuiHeadDirective,
879
- TuiRowDirective,
880
- TuiSortByDirective,
881
- TuiSortableDirective,
882
- TuiTheadDirective,
883
- TuiResizedDirective,
884
- TuiTableSortPipe,
885
- ],
886
- exports: [
887
- TuiTableDirective,
888
- TuiTbodyComponent,
889
- TuiThGroupComponent,
890
- TuiThComponent,
891
- TuiTdComponent,
892
- TuiTrComponent,
893
- TuiCellDirective,
894
- TuiHeadDirective,
895
- TuiRowDirective,
896
- TuiSortByDirective,
897
- TuiSortableDirective,
898
- TuiTheadDirective,
899
- TuiTableSortPipe,
900
- ],
901
- })
902
- ], TuiTableModule);
903
1050
  return TuiTableModule;
904
1051
  }());
1052
+ TuiTableModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTableModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1053
+ TuiTableModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTableModule, declarations: [TuiTableDirective,
1054
+ TuiTbodyComponent,
1055
+ TuiThGroupComponent,
1056
+ TuiThComponent,
1057
+ TuiTdComponent,
1058
+ TuiTrComponent,
1059
+ TuiCellDirective,
1060
+ TuiHeadDirective,
1061
+ TuiRowDirective,
1062
+ TuiSortByDirective,
1063
+ TuiSortableDirective,
1064
+ TuiTheadDirective,
1065
+ TuiResizedDirective,
1066
+ TuiTableSortPipe], imports: [i2.CommonModule, i3.PolymorpheusModule, i4.TuiMapperPipeModule, i1.TuiSvgModule], exports: [TuiTableDirective,
1067
+ TuiTbodyComponent,
1068
+ TuiThGroupComponent,
1069
+ TuiThComponent,
1070
+ TuiTdComponent,
1071
+ TuiTrComponent,
1072
+ TuiCellDirective,
1073
+ TuiHeadDirective,
1074
+ TuiRowDirective,
1075
+ TuiSortByDirective,
1076
+ TuiSortableDirective,
1077
+ TuiTheadDirective,
1078
+ TuiTableSortPipe] });
1079
+ TuiTableModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTableModule, imports: [[i2.CommonModule, i3.PolymorpheusModule, i4.TuiMapperPipeModule, i1.TuiSvgModule]] });
1080
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTableModule, decorators: [{
1081
+ type: i0.NgModule,
1082
+ args: [{
1083
+ imports: [i2.CommonModule, i3.PolymorpheusModule, i4.TuiMapperPipeModule, i1.TuiSvgModule],
1084
+ declarations: [
1085
+ TuiTableDirective,
1086
+ TuiTbodyComponent,
1087
+ TuiThGroupComponent,
1088
+ TuiThComponent,
1089
+ TuiTdComponent,
1090
+ TuiTrComponent,
1091
+ TuiCellDirective,
1092
+ TuiHeadDirective,
1093
+ TuiRowDirective,
1094
+ TuiSortByDirective,
1095
+ TuiSortableDirective,
1096
+ TuiTheadDirective,
1097
+ TuiResizedDirective,
1098
+ TuiTableSortPipe,
1099
+ ],
1100
+ exports: [
1101
+ TuiTableDirective,
1102
+ TuiTbodyComponent,
1103
+ TuiThGroupComponent,
1104
+ TuiThComponent,
1105
+ TuiTdComponent,
1106
+ TuiTrComponent,
1107
+ TuiCellDirective,
1108
+ TuiHeadDirective,
1109
+ TuiRowDirective,
1110
+ TuiSortByDirective,
1111
+ TuiSortableDirective,
1112
+ TuiTheadDirective,
1113
+ TuiTableSortPipe,
1114
+ ],
1115
+ }]
1116
+ }] });
1117
+
1118
+ /**
1119
+ * Generated bundle index. Do not edit.
1120
+ */
905
1121
 
906
- exports.TABLE_FACTORY = TABLE_FACTORY;
907
- exports.TABLE_LABEL = TABLE_LABEL;
908
- exports.TABLE_THRESHOLD = TABLE_THRESHOLD;
909
1122
  exports.TUI_STUCK = TUI_STUCK;
910
1123
  exports.TUI_STUCK_PROVIDER = TUI_STUCK_PROVIDER;
911
1124
  exports.TUI_TABLE_PROVIDER = TUI_TABLE_PROVIDER;
@@ -930,5 +1143,5 @@
930
1143
 
931
1144
  Object.defineProperty(exports, '__esModule', { value: true });
932
1145
 
933
- })));
1146
+ }));
934
1147
  //# sourceMappingURL=taiga-ui-addon-table-components-table.umd.js.map