@taiga-ui/addon-table 3.57.0 → 3.59.0-canary.10da730

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 (194) hide show
  1. package/components/reorder/reorder.component.d.ts +1 -1
  2. package/components/table/directives/cell.directive.d.ts +1 -1
  3. package/components/table/directives/direction-order.directive.d.ts +1 -1
  4. package/components/table/directives/head.directive.d.ts +1 -1
  5. package/components/table/directives/resized.directive.d.ts +1 -1
  6. package/components/table/directives/row.directive.d.ts +1 -1
  7. package/components/table/directives/sort-by.directive.d.ts +1 -1
  8. package/components/table/directives/sortable.directive.d.ts +1 -1
  9. package/components/table/directives/table.directive.d.ts +1 -1
  10. package/components/table/directives/thead.directive.d.ts +1 -1
  11. package/components/table/pipes/table-sort.pipe.d.ts +1 -1
  12. package/components/table/tbody/tbody.component.d.ts +1 -1
  13. package/components/table/td/td.component.d.ts +1 -1
  14. package/components/table/th/th.component.d.ts +1 -1
  15. package/components/table/th-group/th-group.component.d.ts +1 -1
  16. package/components/table/tr/tr.component.d.ts +1 -1
  17. package/components/table-pagination/table-pagination.component.d.ts +1 -1
  18. package/directives/table-filters/generic-filter.directive.d.ts +1 -1
  19. package/directives/table-filters/table-filter.directive.d.ts +1 -1
  20. package/directives/table-filters/table-filters.directive.d.ts +1 -1
  21. package/directives/table-filters/table-filters.pipe.d.ts +1 -1
  22. package/esm2020/components/reorder/reorder.component.mjs +108 -0
  23. package/{esm2015/components/reorder/reorder.module.js → esm2020/components/reorder/reorder.module.mjs} +5 -5
  24. package/{esm2015/components/table/directives/cell.directive.js → esm2020/components/table/directives/cell.directive.mjs} +3 -3
  25. package/esm2020/components/table/directives/direction-order.directive.mjs +30 -0
  26. package/{esm2015/components/table/directives/head.directive.js → esm2020/components/table/directives/head.directive.mjs} +3 -3
  27. package/esm2020/components/table/directives/resized.directive.mjs +37 -0
  28. package/{esm2015/components/table/directives/row.directive.js → esm2020/components/table/directives/row.directive.mjs} +3 -3
  29. package/esm2020/components/table/directives/sort-by.directive.mjs +47 -0
  30. package/{esm2015/components/table/directives/sortable.directive.js → esm2020/components/table/directives/sortable.directive.mjs} +3 -3
  31. package/{esm2015/components/table/directives/table.directive.js → esm2020/components/table/directives/table.directive.mjs} +3 -3
  32. package/{esm2015/components/table/directives/thead.directive.js → esm2020/components/table/directives/thead.directive.mjs} +3 -3
  33. package/{esm2015/components/table/pipes/table-sort.pipe.js → esm2020/components/table/pipes/table-sort.pipe.mjs} +3 -3
  34. package/esm2020/components/table/providers/stuck.provider.mjs +17 -0
  35. package/{esm2015/components/table/providers/table.providers.js → esm2020/components/table/providers/table.providers.mjs} +5 -2
  36. package/{esm2015/components/table/table.module.js → esm2020/components/table/table.module.mjs} +5 -5
  37. package/esm2020/components/table/tbody/tbody.component.mjs +69 -0
  38. package/esm2020/components/table/td/td.component.mjs +22 -0
  39. package/{esm2015/components/table/th/th.component.js → esm2020/components/table/th/th.component.mjs} +12 -21
  40. package/esm2020/components/table/th-group/th-group.component.mjs +37 -0
  41. package/esm2020/components/table/tr/tr.component.mjs +46 -0
  42. package/esm2020/components/table-pagination/table-pagination.component.mjs +110 -0
  43. package/{esm2015/components/table-pagination/table-pagination.module.js → esm2020/components/table-pagination/table-pagination.module.mjs} +11 -13
  44. package/{esm2015/directives/table-filters/generic-filter.directive.js → esm2020/directives/table-filters/generic-filter.directive.mjs} +3 -3
  45. package/esm2020/directives/table-filters/table-filter.directive.mjs +58 -0
  46. package/esm2020/directives/table-filters/table-filters.directive.mjs +35 -0
  47. package/{esm2015/directives/table-filters/table-filters.module.js → esm2020/directives/table-filters/table-filters.module.mjs} +4 -4
  48. package/{esm2015/directives/table-filters/table-filters.pipe.js → esm2020/directives/table-filters/table-filters.pipe.mjs} +3 -3
  49. package/fesm2015/taiga-ui-addon-table-components-reorder.mjs +148 -0
  50. package/fesm2015/taiga-ui-addon-table-components-reorder.mjs.map +1 -0
  51. package/fesm2015/taiga-ui-addon-table-components-table-pagination.mjs +172 -0
  52. package/fesm2015/taiga-ui-addon-table-components-table-pagination.mjs.map +1 -0
  53. package/fesm2015/taiga-ui-addon-table-components-table.mjs +770 -0
  54. package/fesm2015/taiga-ui-addon-table-components-table.mjs.map +1 -0
  55. package/fesm2015/{taiga-ui-addon-table-components.js → taiga-ui-addon-table-components.mjs} +1 -1
  56. package/fesm2015/taiga-ui-addon-table-components.mjs.map +1 -0
  57. package/fesm2015/taiga-ui-addon-table-directives-table-filters.mjs +180 -0
  58. package/fesm2015/taiga-ui-addon-table-directives-table-filters.mjs.map +1 -0
  59. package/fesm2015/{taiga-ui-addon-table-directives.js → taiga-ui-addon-table-directives.mjs} +1 -1
  60. package/fesm2015/taiga-ui-addon-table-directives.mjs.map +1 -0
  61. package/fesm2015/taiga-ui-addon-table-interfaces.mjs +4 -0
  62. package/fesm2015/taiga-ui-addon-table-interfaces.mjs.map +1 -0
  63. package/fesm2015/{taiga-ui-addon-table-tokens.js → taiga-ui-addon-table-tokens.mjs} +1 -1
  64. package/fesm2015/taiga-ui-addon-table-tokens.mjs.map +1 -0
  65. package/fesm2015/taiga-ui-addon-table-types.mjs +4 -0
  66. package/fesm2015/taiga-ui-addon-table-types.mjs.map +1 -0
  67. package/fesm2015/{taiga-ui-addon-table-utils.js → taiga-ui-addon-table-utils.mjs} +1 -1
  68. package/fesm2015/taiga-ui-addon-table-utils.mjs.map +1 -0
  69. package/fesm2015/{taiga-ui-addon-table.js → taiga-ui-addon-table.mjs} +1 -1
  70. package/fesm2015/taiga-ui-addon-table.mjs.map +1 -0
  71. package/{fesm2015/taiga-ui-addon-table-components-reorder.js → fesm2020/taiga-ui-addon-table-components-reorder.mjs} +21 -28
  72. package/fesm2020/taiga-ui-addon-table-components-reorder.mjs.map +1 -0
  73. package/{fesm2015/taiga-ui-addon-table-components-table-pagination.js → fesm2020/taiga-ui-addon-table-components-table-pagination.mjs} +17 -24
  74. package/fesm2020/taiga-ui-addon-table-components-table-pagination.mjs.map +1 -0
  75. package/{fesm2015/taiga-ui-addon-table-components-table.js → fesm2020/taiga-ui-addon-table-components-table.mjs} +85 -116
  76. package/fesm2020/taiga-ui-addon-table-components-table.mjs.map +1 -0
  77. package/fesm2020/taiga-ui-addon-table-components.mjs +8 -0
  78. package/fesm2020/taiga-ui-addon-table-components.mjs.map +1 -0
  79. package/{fesm2015/taiga-ui-addon-table-directives-table-filters.js → fesm2020/taiga-ui-addon-table-directives-table-filters.mjs} +20 -25
  80. package/fesm2020/taiga-ui-addon-table-directives-table-filters.mjs.map +1 -0
  81. package/fesm2020/taiga-ui-addon-table-directives.mjs +6 -0
  82. package/fesm2020/taiga-ui-addon-table-directives.mjs.map +1 -0
  83. package/fesm2020/taiga-ui-addon-table-interfaces.mjs +4 -0
  84. package/fesm2020/taiga-ui-addon-table-interfaces.mjs.map +1 -0
  85. package/fesm2020/taiga-ui-addon-table-tokens.mjs +18 -0
  86. package/fesm2020/taiga-ui-addon-table-tokens.mjs.map +1 -0
  87. package/fesm2020/taiga-ui-addon-table-types.mjs +4 -0
  88. package/fesm2020/taiga-ui-addon-table-types.mjs.map +1 -0
  89. package/fesm2020/taiga-ui-addon-table-utils.mjs +14 -0
  90. package/fesm2020/taiga-ui-addon-table-utils.mjs.map +1 -0
  91. package/fesm2020/taiga-ui-addon-table.mjs +10 -0
  92. package/fesm2020/taiga-ui-addon-table.mjs.map +1 -0
  93. package/package.json +127 -34
  94. package/types/comparator.d.ts +1 -1
  95. package/bundles/taiga-ui-addon-table-components-reorder.umd.js +0 -190
  96. package/bundles/taiga-ui-addon-table-components-reorder.umd.js.map +0 -1
  97. package/bundles/taiga-ui-addon-table-components-table-pagination.umd.js +0 -234
  98. package/bundles/taiga-ui-addon-table-components-table-pagination.umd.js.map +0 -1
  99. package/bundles/taiga-ui-addon-table-components-table.umd.js +0 -1235
  100. package/bundles/taiga-ui-addon-table-components-table.umd.js.map +0 -1
  101. package/bundles/taiga-ui-addon-table-components.umd.js +0 -33
  102. package/bundles/taiga-ui-addon-table-components.umd.js.map +0 -1
  103. package/bundles/taiga-ui-addon-table-directives-table-filters.umd.js +0 -550
  104. package/bundles/taiga-ui-addon-table-directives-table-filters.umd.js.map +0 -1
  105. package/bundles/taiga-ui-addon-table-directives.umd.js +0 -21
  106. package/bundles/taiga-ui-addon-table-directives.umd.js.map +0 -1
  107. package/bundles/taiga-ui-addon-table-interfaces.umd.js +0 -11
  108. package/bundles/taiga-ui-addon-table-interfaces.umd.js.map +0 -1
  109. package/bundles/taiga-ui-addon-table-tokens.umd.js +0 -26
  110. package/bundles/taiga-ui-addon-table-tokens.umd.js.map +0 -1
  111. package/bundles/taiga-ui-addon-table-types.umd.js +0 -11
  112. package/bundles/taiga-ui-addon-table-types.umd.js.map +0 -1
  113. package/bundles/taiga-ui-addon-table-utils.umd.js +0 -22
  114. package/bundles/taiga-ui-addon-table-utils.umd.js.map +0 -1
  115. package/bundles/taiga-ui-addon-table.umd.js +0 -45
  116. package/bundles/taiga-ui-addon-table.umd.js.map +0 -1
  117. package/components/package.json +0 -10
  118. package/components/reorder/package.json +0 -10
  119. package/components/reorder/taiga-ui-addon-table-components-reorder.d.ts +0 -5
  120. package/components/table/package.json +0 -10
  121. package/components/table/taiga-ui-addon-table-components-table.d.ts +0 -5
  122. package/components/table-pagination/package.json +0 -10
  123. package/components/table-pagination/taiga-ui-addon-table-components-table-pagination.d.ts +0 -5
  124. package/components/taiga-ui-addon-table-components.d.ts +0 -5
  125. package/directives/package.json +0 -10
  126. package/directives/table-filters/package.json +0 -10
  127. package/directives/table-filters/taiga-ui-addon-table-directives-table-filters.d.ts +0 -5
  128. package/directives/taiga-ui-addon-table-directives.d.ts +0 -5
  129. package/esm2015/components/reorder/reorder.component.js +0 -115
  130. package/esm2015/components/table/directives/direction-order.directive.js +0 -30
  131. package/esm2015/components/table/directives/resized.directive.js +0 -37
  132. package/esm2015/components/table/directives/sort-by.directive.js +0 -48
  133. package/esm2015/components/table/providers/stuck.provider.js +0 -17
  134. package/esm2015/components/table/tbody/tbody.component.js +0 -75
  135. package/esm2015/components/table/td/td.component.js +0 -27
  136. package/esm2015/components/table/th-group/th-group.component.js +0 -42
  137. package/esm2015/components/table/tr/tr.component.js +0 -55
  138. package/esm2015/components/table-pagination/table-pagination.component.js +0 -115
  139. package/esm2015/directives/table-filters/table-filter.directive.js +0 -63
  140. package/esm2015/directives/table-filters/table-filters.directive.js +0 -36
  141. package/fesm2015/taiga-ui-addon-table-components-reorder.js.map +0 -1
  142. package/fesm2015/taiga-ui-addon-table-components-table-pagination.js.map +0 -1
  143. package/fesm2015/taiga-ui-addon-table-components-table.js.map +0 -1
  144. package/fesm2015/taiga-ui-addon-table-components.js.map +0 -1
  145. package/fesm2015/taiga-ui-addon-table-directives-table-filters.js.map +0 -1
  146. package/fesm2015/taiga-ui-addon-table-directives.js.map +0 -1
  147. package/fesm2015/taiga-ui-addon-table-interfaces.js +0 -4
  148. package/fesm2015/taiga-ui-addon-table-interfaces.js.map +0 -1
  149. package/fesm2015/taiga-ui-addon-table-tokens.js.map +0 -1
  150. package/fesm2015/taiga-ui-addon-table-types.js +0 -4
  151. package/fesm2015/taiga-ui-addon-table-types.js.map +0 -1
  152. package/fesm2015/taiga-ui-addon-table-utils.js.map +0 -1
  153. package/fesm2015/taiga-ui-addon-table.js.map +0 -1
  154. package/interfaces/package.json +0 -10
  155. package/interfaces/taiga-ui-addon-table-interfaces.d.ts +0 -5
  156. package/taiga-ui-addon-table.d.ts +0 -5
  157. package/tokens/package.json +0 -10
  158. package/tokens/taiga-ui-addon-table-tokens.d.ts +0 -5
  159. package/types/package.json +0 -10
  160. package/types/taiga-ui-addon-table-types.d.ts +0 -5
  161. package/utils/package.json +0 -10
  162. package/utils/taiga-ui-addon-table-utils.d.ts +0 -5
  163. /package/{esm2015/components/index.js → esm2020/components/index.mjs} +0 -0
  164. /package/{esm2015/components/reorder/index.js → esm2020/components/reorder/index.mjs} +0 -0
  165. /package/{esm2015/components/reorder/reorder.options.js → esm2020/components/reorder/reorder.options.mjs} +0 -0
  166. /package/{esm2015/components/reorder/taiga-ui-addon-table-components-reorder.js → esm2020/components/reorder/taiga-ui-addon-table-components-reorder.mjs} +0 -0
  167. /package/{esm2015/components/table/index.js → esm2020/components/table/index.mjs} +0 -0
  168. /package/{esm2015/components/table/providers/table.provider.js → esm2020/components/table/providers/table.provider.mjs} +0 -0
  169. /package/{esm2015/components/table/table.options.js → esm2020/components/table/table.options.mjs} +0 -0
  170. /package/{esm2015/components/table/taiga-ui-addon-table-components-table.js → esm2020/components/table/taiga-ui-addon-table-components-table.mjs} +0 -0
  171. /package/{esm2015/components/table-pagination/index.js → esm2020/components/table-pagination/index.mjs} +0 -0
  172. /package/{esm2015/components/table-pagination/table-pagination.options.js → esm2020/components/table-pagination/table-pagination.options.mjs} +0 -0
  173. /package/{esm2015/components/table-pagination/taiga-ui-addon-table-components-table-pagination.js → esm2020/components/table-pagination/taiga-ui-addon-table-components-table-pagination.mjs} +0 -0
  174. /package/{esm2015/components/taiga-ui-addon-table-components.js → esm2020/components/taiga-ui-addon-table-components.mjs} +0 -0
  175. /package/{esm2015/directives/index.js → esm2020/directives/index.mjs} +0 -0
  176. /package/{esm2015/directives/table-filters/abstract-table-filter.js → esm2020/directives/table-filters/abstract-table-filter.mjs} +0 -0
  177. /package/{esm2015/directives/table-filters/index.js → esm2020/directives/table-filters/index.mjs} +0 -0
  178. /package/{esm2015/directives/table-filters/table-filter.js → esm2020/directives/table-filters/table-filter.mjs} +0 -0
  179. /package/{esm2015/directives/table-filters/taiga-ui-addon-table-directives-table-filters.js → esm2020/directives/table-filters/taiga-ui-addon-table-directives-table-filters.mjs} +0 -0
  180. /package/{esm2015/directives/taiga-ui-addon-table-directives.js → esm2020/directives/taiga-ui-addon-table-directives.mjs} +0 -0
  181. /package/{esm2015/index.js → esm2020/index.mjs} +0 -0
  182. /package/{esm2015/interfaces/index.js → esm2020/interfaces/index.mjs} +0 -0
  183. /package/{esm2015/interfaces/row-context.js → esm2020/interfaces/row-context.mjs} +0 -0
  184. /package/{esm2015/interfaces/taiga-ui-addon-table-interfaces.js → esm2020/interfaces/taiga-ui-addon-table-interfaces.mjs} +0 -0
  185. /package/{esm2015/taiga-ui-addon-table.js → esm2020/taiga-ui-addon-table.mjs} +0 -0
  186. /package/{esm2015/tokens/i18n.js → esm2020/tokens/i18n.mjs} +0 -0
  187. /package/{esm2015/tokens/index.js → esm2020/tokens/index.mjs} +0 -0
  188. /package/{esm2015/tokens/taiga-ui-addon-table-tokens.js → esm2020/tokens/taiga-ui-addon-table-tokens.mjs} +0 -0
  189. /package/{esm2015/types/comparator.js → esm2020/types/comparator.mjs} +0 -0
  190. /package/{esm2015/types/index.js → esm2020/types/index.mjs} +0 -0
  191. /package/{esm2015/types/taiga-ui-addon-table-types.js → esm2020/types/taiga-ui-addon-table-types.mjs} +0 -0
  192. /package/{esm2015/utils/default-sort.js → esm2020/utils/default-sort.mjs} +0 -0
  193. /package/{esm2015/utils/index.js → esm2020/utils/index.mjs} +0 -0
  194. /package/{esm2015/utils/taiga-ui-addon-table-utils.js → esm2020/utils/taiga-ui-addon-table-utils.mjs} +0 -0
@@ -24,5 +24,5 @@ export declare class TuiReorderComponent<T> {
24
24
  private updateItems;
25
25
  private updateEnabled;
26
26
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiReorderComponent<any>, never>;
27
- static ɵcmp: i0.ɵɵComponentDeclaration<TuiReorderComponent<any>, "tui-reorder", never, { "items": "items"; "enabled": "enabled"; }, { "itemsChange": "itemsChange"; "enabledChange": "enabledChange"; }, never, never>;
27
+ static ɵcmp: i0.ɵɵComponentDeclaration<TuiReorderComponent<any>, "tui-reorder", never, { "items": "items"; "enabled": "enabled"; }, { "itemsChange": "itemsChange"; "enabledChange": "enabledChange"; }, never, never, false, never>;
28
28
  }
@@ -5,5 +5,5 @@ export declare class TuiCellDirective {
5
5
  tuiCell: string;
6
6
  constructor(template: TemplateRef<Record<string, unknown>>);
7
7
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiCellDirective, never>;
8
- static ɵdir: i0.ɵɵDirectiveDeclaration<TuiCellDirective, "[tuiCell]", never, { "tuiCell": "tuiCell"; }, {}, never>;
8
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TuiCellDirective, "[tuiCell]", never, { "tuiCell": "tuiCell"; }, {}, never, never, false, never>;
9
9
  }
@@ -6,5 +6,5 @@ export declare class TuiDirectionOrderDirective<T> {
6
6
  readonly directionOrderChange: import("rxjs").Observable<"asc" | "desc">;
7
7
  constructor(table: TuiTableDirective<T>);
8
8
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiDirectionOrderDirective<any>, never>;
9
- static ɵdir: i0.ɵɵDirectiveDeclaration<TuiDirectionOrderDirective<any>, "table[tuiTable][tuiDirectionOrder]", never, { "directionOrder": "directionOrder"; }, { "directionOrderChange": "directionOrderChange"; }, never>;
9
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TuiDirectionOrderDirective<any>, "table[tuiTable][tuiDirectionOrder]", never, { "directionOrder": "directionOrder"; }, { "directionOrderChange": "directionOrderChange"; }, never, never, false, never>;
10
10
  }
@@ -5,5 +5,5 @@ export declare class TuiHeadDirective<T extends Partial<Record<keyof T, any>>> {
5
5
  tuiHead: keyof T;
6
6
  constructor(template: TemplateRef<Record<string, unknown>>);
7
7
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiHeadDirective<any>, never>;
8
- static ɵdir: i0.ɵɵDirectiveDeclaration<TuiHeadDirective<any>, "[tuiHead]", never, { "tuiHead": "tuiHead"; }, {}, never>;
8
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TuiHeadDirective<any>, "[tuiHead]", never, { "tuiHead": "tuiHead"; }, {}, never, never, false, never>;
9
9
  }
@@ -7,5 +7,5 @@ export declare class TuiResizedDirective {
7
7
  readonly tuiResized: import("rxjs").Observable<number>;
8
8
  constructor(doc: Document, el: ElementRef<HTMLElement>, parentRef: ElementRef<HTMLTableHeaderCellElement>);
9
9
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiResizedDirective, never>;
10
- static ɵdir: i0.ɵɵDirectiveDeclaration<TuiResizedDirective, "[tuiResized]", never, {}, { "tuiResized": "tuiResized"; }, never>;
10
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TuiResizedDirective, "[tuiResized]", never, {}, { "tuiResized": "tuiResized"; }, never, never, false, never>;
11
11
  }
@@ -13,5 +13,5 @@ export declare class TuiRowDirective<T extends Partial<Record<keyof T, any>>> {
13
13
  constructor(template: TemplateRef<TuiRowContext<T>>);
14
14
  static ngTemplateContextGuard<T>(_dir: TuiRowDirective<T>, _ctx: unknown): _ctx is TuiRowContext<T>;
15
15
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiRowDirective<any>, never>;
16
- static ɵdir: i0.ɵɵDirectiveDeclaration<TuiRowDirective<any>, "ng-template[tuiRow]", never, { "tuiRowOf": "tuiRowOf"; }, {}, never>;
16
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TuiRowDirective<any>, "ng-template[tuiRow]", never, { "tuiRowOf": "tuiRowOf"; }, {}, never, never, false, never>;
17
17
  }
@@ -10,5 +10,5 @@ export declare class TuiSortByDirective<T extends Partial<Record<keyof T, any>>>
10
10
  checkSortables(): void;
11
11
  private getKey;
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiSortByDirective<any>, never>;
13
- static ɵdir: i0.ɵɵDirectiveDeclaration<TuiSortByDirective<any>, "table[tuiTable][tuiSortBy]", never, { "sortBy": "tuiSortBy"; }, { "tuiSortByChange": "tuiSortByChange"; }, ["sortables"]>;
13
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TuiSortByDirective<any>, "table[tuiTable][tuiSortBy]", never, { "sortBy": "tuiSortBy"; }, { "tuiSortByChange": "tuiSortByChange"; }, ["sortables"], never, false, never>;
14
14
  }
@@ -15,5 +15,5 @@ export declare class TuiSortableDirective<T extends Partial<Record<keyof T, any>
15
15
  check(): void;
16
16
  private get match();
17
17
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiSortableDirective<any>, never>;
18
- static ɵdir: i0.ɵɵDirectiveDeclaration<TuiSortableDirective<any>, "th[tuiTh][tuiSortable]", never, {}, {}, never>;
18
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TuiSortableDirective<any>, "th[tuiTh][tuiSortable]", never, {}, {}, never, never, false, never>;
19
19
  }
@@ -23,5 +23,5 @@ export declare class TuiTableDirective<T extends Partial<Record<keyof T, any>>>
23
23
  updateSorter(sorter: TuiComparator<T> | null): void;
24
24
  private updateDirection;
25
25
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiTableDirective<any>, never>;
26
- static ɵdir: i0.ɵɵDirectiveDeclaration<TuiTableDirective<any>, "table[tuiTable]", never, { "columns": "columns"; "size": "size"; "direction": "direction"; "sorter": "sorter"; }, { "directionChange": "directionChange"; "sorterChange": "sorterChange"; }, never>;
26
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TuiTableDirective<any>, "table[tuiTable]", never, { "columns": "columns"; "size": "size"; "direction": "direction"; "sorter": "sorter"; }, { "directionChange": "directionChange"; "sorterChange": "sorterChange"; }, never, never, false, never>;
27
27
  }
@@ -4,5 +4,5 @@ export declare class TuiTheadDirective {
4
4
  readonly stuck$: Observable<boolean>;
5
5
  constructor(stuck$: Observable<boolean>);
6
6
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiTheadDirective, never>;
7
- static ɵdir: i0.ɵɵDirectiveDeclaration<TuiTheadDirective, "thead[tuiThead]", never, {}, {}, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TuiTheadDirective, "thead[tuiThead]", never, {}, {}, never, never, false, never>;
8
8
  }
@@ -7,5 +7,5 @@ export declare class TuiTableSortPipe<K = Partial<Record<any, any>>> implements
7
7
  transform<T extends K>(data: readonly T[]): readonly T[];
8
8
  private sort;
9
9
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiTableSortPipe<any>, never>;
10
- static ɵpipe: i0.ɵɵPipeDeclaration<TuiTableSortPipe<any>, "tuiTableSort">;
10
+ static ɵpipe: i0.ɵɵPipeDeclaration<TuiTableSortPipe<any>, "tuiTableSort", false>;
11
11
  }
@@ -26,5 +26,5 @@ export declare class TuiTbodyComponent<T extends Partial<Record<keyof T, any>>>
26
26
  };
27
27
  onClick(): void;
28
28
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiTbodyComponent<any>, never>;
29
- static ɵcmp: i0.ɵɵComponentDeclaration<TuiTbodyComponent<any>, "tbody[tuiTbody]", never, { "data": "data"; "heading": "heading"; "open": "open"; }, { "openChange": "openChange"; }, ["row", "rows"], ["*"]>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<TuiTbodyComponent<any>, "tbody[tuiTbody]", never, { "data": "data"; "heading": "heading"; "open": "open"; }, { "openChange": "openChange"; }, ["row", "rows"], ["*"], false, never>;
30
30
  }
@@ -2,5 +2,5 @@ import * as i0 from "@angular/core";
2
2
  export declare class TuiTdComponent {
3
3
  readonly control: unknown;
4
4
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiTdComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<TuiTdComponent, "th[tuiTd], td[tuiTd]", never, {}, {}, ["control"], ["*"]>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<TuiTdComponent, "th[tuiTd], td[tuiTd]", never, {}, {}, ["control"], ["*"], false, never>;
6
6
  }
@@ -19,5 +19,5 @@ export declare class TuiThComponent<T extends Partial<Record<keyof T, any>>> {
19
19
  onResized(width: number): void;
20
20
  private get isCurrentAndAscDirection();
21
21
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiThComponent<any>, [null, { optional: true; }, { optional: true; }]>;
22
- static ɵcmp: i0.ɵɵComponentDeclaration<TuiThComponent<any>, "th[tuiTh]", never, { "sorter": "sorter"; "resizable": "resizable"; "sticky": "sticky"; }, {}, never, ["*"]>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<TuiThComponent<any>, "th[tuiTh]", never, { "sorter": "sorter"; "resizable": "resizable"; "sticky": "sticky"; }, {}, never, ["*"], false, never>;
23
23
  }
@@ -12,5 +12,5 @@ export declare class TuiThGroupComponent<T extends Partial<Record<keyof T, any>>
12
12
  constructor(table: TuiTableDirective<T>);
13
13
  ngAfterContentInit(): void;
14
14
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiThGroupComponent<any>, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<TuiThGroupComponent<any>, "tr[tuiThGroup]", never, {}, {}, ["th", "heads"], ["*"]>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<TuiThGroupComponent<any>, "tr[tuiThGroup]", never, {}, {}, ["th", "heads"], ["*"], false, never>;
16
16
  }
@@ -13,5 +13,5 @@ export declare class TuiTrComponent<T extends Partial<Record<keyof T, any>>> imp
13
13
  constructor(table: TuiTableDirective<T>, body: TuiTbodyComponent<T>);
14
14
  ngAfterContentInit(): Promise<void>;
15
15
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiTrComponent<any>, never>;
16
- static ɵcmp: i0.ɵɵComponentDeclaration<TuiTrComponent<any>, "tr[tuiTr]", never, {}, {}, ["cells"], never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<TuiTrComponent<any>, "tr[tuiTr]", never, {}, {}, ["cells"], never, false, never>;
17
17
  }
@@ -40,5 +40,5 @@ export declare class TuiTablePaginationComponent {
40
40
  back(): void;
41
41
  forth(): void;
42
42
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiTablePaginationComponent, never>;
43
- static ɵcmp: i0.ɵɵComponentDeclaration<TuiTablePaginationComponent, "tui-table-pagination", never, { "items": "items"; "total": "total"; "page": "page"; "size": "size"; }, { "pageChange": "pageChange"; "sizeChange": "sizeChange"; "paginationChange": "paginationChange"; }, never, never>;
43
+ static ɵcmp: i0.ɵɵComponentDeclaration<TuiTablePaginationComponent, "tui-table-pagination", never, { "items": "items"; "total": "total"; "page": "page"; "size": "size"; }, { "pageChange": "pageChange"; "sizeChange": "sizeChange"; "paginationChange": "paginationChange"; }, never, never, false, never>;
44
44
  }
@@ -3,5 +3,5 @@ import * as i0 from "@angular/core";
3
3
  export declare class TuiGenericFilterDirective<T, G> extends AbstractTuiTableFilter<T, G> {
4
4
  filter: (item: T, value: G) => boolean;
5
5
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiGenericFilterDirective<any, any>, never>;
6
- static ɵdir: i0.ɵɵDirectiveDeclaration<TuiGenericFilterDirective<any, any>, "[tuiGenericFilter]", never, { "filter": "tuiGenericFilter"; }, {}, never>;
6
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TuiGenericFilterDirective<any, any>, "[tuiGenericFilter]", never, { "filter": "tuiGenericFilter"; }, {}, never, never, false, never>;
7
7
  }
@@ -19,5 +19,5 @@ export declare class TuiTableFilterDirective<T> implements OnInit, OnDestroy, Tu
19
19
  filter(item: T): boolean;
20
20
  private get key();
21
21
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiTableFilterDirective<any>, [{ optional: true; }, null, null, null]>;
22
- static ɵdir: i0.ɵɵDirectiveDeclaration<TuiTableFilterDirective<any>, "[tuiTableFilter]", never, { "tuiTableFilter": "tuiTableFilter"; }, {}, never>;
22
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TuiTableFilterDirective<any>, "[tuiTableFilter]", never, { "tuiTableFilter": "tuiTableFilter"; }, {}, never, never, false, never>;
23
23
  }
@@ -10,5 +10,5 @@ export declare class TuiTableFiltersDirective<T> {
10
10
  private check;
11
11
  private update;
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiTableFiltersDirective<any>, never>;
13
- static ɵdir: i0.ɵɵDirectiveDeclaration<TuiTableFiltersDirective<any>, "[tuiTableFilters]", never, {}, {}, never>;
13
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TuiTableFiltersDirective<any>, "[tuiTableFilters]", never, {}, {}, never, never, false, never>;
14
14
  }
@@ -7,5 +7,5 @@ export declare class TuiTableFiltersPipe<T> implements PipeTransform {
7
7
  constructor(filters: TuiTableFiltersDirective<T>);
8
8
  transform(items: readonly T[]): Observable<readonly T[]>;
9
9
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiTableFiltersPipe<any>, never>;
10
- static ɵpipe: i0.ɵɵPipeDeclaration<TuiTableFiltersPipe<any>, "tuiTableFilters">;
10
+ static ɵpipe: i0.ɵɵPipeDeclaration<TuiTableFiltersPipe<any>, "tuiTableFilters", false>;
11
11
  }
@@ -0,0 +1,108 @@
1
+ import { ChangeDetectionStrategy, Component, EventEmitter, HostListener, Inject, Input, Output, } from '@angular/core';
2
+ import { TUI_TABLE_SHOW_HIDE_MESSAGE } from '@taiga-ui/addon-table/tokens';
3
+ import { TUI_REORDER_OPTIONS } from './reorder.options';
4
+ import * as i0 from "@angular/core";
5
+ import * as i1 from "@angular/common";
6
+ import * as i2 from "@taiga-ui/core";
7
+ import * as i3 from "@taiga-ui/kit";
8
+ import * as i4 from "rxjs";
9
+ export class TuiReorderComponent {
10
+ set items(items) {
11
+ if (items.length !== this.unsortedItems.length ||
12
+ !items.every(item => this.unsortedItems.includes(item))) {
13
+ this.unsortedItems = items;
14
+ }
15
+ }
16
+ constructor(options, showHideText$) {
17
+ this.options = options;
18
+ this.showHideText$ = showHideText$;
19
+ this.dragging = false;
20
+ this.enabled = [];
21
+ this.itemsChange = new EventEmitter();
22
+ this.enabledChange = new EventEmitter();
23
+ this.order = new Map();
24
+ this.unsortedItems = [];
25
+ }
26
+ noop() { }
27
+ onDrag() {
28
+ this.dragging = true;
29
+ }
30
+ onDrop() {
31
+ if (!this.dragging) {
32
+ return;
33
+ }
34
+ this.dragging = false;
35
+ this.updateItems();
36
+ }
37
+ isEnabled(item) {
38
+ return this.enabled.includes(item);
39
+ }
40
+ getIcon(item) {
41
+ return this.isEnabled(item) ? this.options.icons.hide : this.options.icons.show;
42
+ }
43
+ toggle(toggled) {
44
+ this.enabled = this.isEnabled(toggled)
45
+ ? this.enabled.filter(item => item !== toggled)
46
+ : this.enabled.concat(toggled);
47
+ this.updateEnabled();
48
+ }
49
+ move(index, direction) {
50
+ const oldIndex = this.order.get(index) ?? index;
51
+ if ((!oldIndex && direction < 0) ||
52
+ (oldIndex === this.unsortedItems.length - 1 && direction > 0)) {
53
+ return;
54
+ }
55
+ const newIndex = oldIndex + direction;
56
+ const oldItem = Array.from(this.order.values()).findIndex(item => item === newIndex);
57
+ this.order.set(index, newIndex);
58
+ this.order.set(oldItem, oldIndex);
59
+ this.order = new Map(this.order);
60
+ this.updateItems();
61
+ }
62
+ getSortedItems() {
63
+ const items = new Array(this.unsortedItems.length);
64
+ this.unsortedItems.forEach((item, index) => {
65
+ items[this.order.get(index) ?? index] = item;
66
+ });
67
+ return items;
68
+ }
69
+ updateItems() {
70
+ this.itemsChange.emit(this.getSortedItems());
71
+ this.updateEnabled();
72
+ }
73
+ updateEnabled() {
74
+ const enabled = this.getSortedItems().filter(item => this.isEnabled(item));
75
+ this.enabled = enabled;
76
+ this.enabledChange.emit(enabled);
77
+ }
78
+ }
79
+ TuiReorderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiReorderComponent, deps: [{ token: TUI_REORDER_OPTIONS }, { token: TUI_TABLE_SHOW_HIDE_MESSAGE }], target: i0.ɵɵFactoryTarget.Component });
80
+ TuiReorderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TuiReorderComponent, selector: "tui-reorder", inputs: { items: "items", enabled: "enabled" }, outputs: { itemsChange: "itemsChange", enabledChange: "enabledChange" }, host: { listeners: { "focusout.stop": "noop()", "pointerdown.silent": "onDrag()", "document:pointerup.silent": "onDrop()" } }, ngImport: i0, template: "<tui-tiles\n class=\"t-wrapper\"\n [(order)]=\"order\"\n>\n <tui-tile\n *ngFor=\"let item of unsortedItems; let index = index\"\n tuiTileHandle\n [style.order]=\"order.get(index)\"\n >\n <div class=\"t-item\">\n <tui-svg\n class=\"t-icon\"\n [src]=\"options.icons.drag\"\n ></tui-svg>\n {{ item }}\n <button\n appearance=\"icon\"\n size=\"xs\"\n tuiIconButton\n type=\"button\"\n class=\"t-button\"\n [class.t-button_hidden]=\"!isEnabled(item)\"\n [icon]=\"getIcon(item)\"\n [title]=\"showHideText$ | async\"\n (click)=\"toggle(item)\"\n (keydown.arrowDown.prevent)=\"move(index, 1)\"\n (keydown.arrowUp.prevent)=\"move(index, -1)\"\n ></button>\n </div>\n </tui-tile>\n</tui-tiles>\n", styles: [":host{display:block;font:var(--tui-font-text-s);padding:.5rem 0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.t-wrapper{cursor:ns-resize;grid-auto-rows:2rem}.t-item{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:flex;height:2rem;align-items:center;padding:0 .75rem;background:var(--tui-base-01)}.t-item:hover{background:var(--tui-base-02)}.t-item:hover .t-button{opacity:1}.t-icon{margin-right:.5rem;color:var(--tui-base-05)}.t-button{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;margin-left:auto;opacity:0}.t-button_hidden,.t-button:focus{opacity:1}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i2.TuiSvgComponent, selector: "tui-svg", inputs: ["src"] }, { kind: "component", type: i2.TuiButtonComponent, selector: "button[tuiButton], button[tuiIconButton], a[tuiButton], a[tuiIconButton]", inputs: ["appearance", "disabled", "icon", "iconRight", "shape", "showLoader", "size"] }, { kind: "component", type: i3.TuiTilesComponent, selector: "tui-tiles", inputs: ["debounce", "order"], outputs: ["orderChange"] }, { kind: "component", type: i3.TuiTileComponent, selector: "tui-tile", inputs: ["width", "height"] }, { kind: "directive", type: i3.TuiTileHandleDirective, selector: "[tuiTileHandle]" }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
81
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiReorderComponent, decorators: [{
82
+ type: Component,
83
+ args: [{ selector: 'tui-reorder', changeDetection: ChangeDetectionStrategy.OnPush, template: "<tui-tiles\n class=\"t-wrapper\"\n [(order)]=\"order\"\n>\n <tui-tile\n *ngFor=\"let item of unsortedItems; let index = index\"\n tuiTileHandle\n [style.order]=\"order.get(index)\"\n >\n <div class=\"t-item\">\n <tui-svg\n class=\"t-icon\"\n [src]=\"options.icons.drag\"\n ></tui-svg>\n {{ item }}\n <button\n appearance=\"icon\"\n size=\"xs\"\n tuiIconButton\n type=\"button\"\n class=\"t-button\"\n [class.t-button_hidden]=\"!isEnabled(item)\"\n [icon]=\"getIcon(item)\"\n [title]=\"showHideText$ | async\"\n (click)=\"toggle(item)\"\n (keydown.arrowDown.prevent)=\"move(index, 1)\"\n (keydown.arrowUp.prevent)=\"move(index, -1)\"\n ></button>\n </div>\n </tui-tile>\n</tui-tiles>\n", styles: [":host{display:block;font:var(--tui-font-text-s);padding:.5rem 0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.t-wrapper{cursor:ns-resize;grid-auto-rows:2rem}.t-item{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:flex;height:2rem;align-items:center;padding:0 .75rem;background:var(--tui-base-01)}.t-item:hover{background:var(--tui-base-02)}.t-item:hover .t-button{opacity:1}.t-icon{margin-right:.5rem;color:var(--tui-base-05)}.t-button{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;margin-left:auto;opacity:0}.t-button_hidden,.t-button:focus{opacity:1}\n"] }]
84
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
85
+ type: Inject,
86
+ args: [TUI_REORDER_OPTIONS]
87
+ }] }, { type: i4.Observable, decorators: [{
88
+ type: Inject,
89
+ args: [TUI_TABLE_SHOW_HIDE_MESSAGE]
90
+ }] }]; }, propDecorators: { items: [{
91
+ type: Input
92
+ }], enabled: [{
93
+ type: Input
94
+ }], itemsChange: [{
95
+ type: Output
96
+ }], enabledChange: [{
97
+ type: Output
98
+ }], noop: [{
99
+ type: HostListener,
100
+ args: ['focusout.stop']
101
+ }], onDrag: [{
102
+ type: HostListener,
103
+ args: ['pointerdown.silent']
104
+ }], onDrop: [{
105
+ type: HostListener,
106
+ args: ['document:pointerup.silent']
107
+ }] } });
108
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVvcmRlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hZGRvbi10YWJsZS9jb21wb25lbnRzL3Jlb3JkZXIvcmVvcmRlci5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hZGRvbi10YWJsZS9jb21wb25lbnRzL3Jlb3JkZXIvcmVvcmRlci50ZW1wbGF0ZS5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDSCx1QkFBdUIsRUFDdkIsU0FBUyxFQUNULFlBQVksRUFDWixZQUFZLEVBQ1osTUFBTSxFQUNOLEtBQUssRUFDTCxNQUFNLEdBQ1QsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUFDLDJCQUEyQixFQUFDLE1BQU0sOEJBQThCLENBQUM7QUFHekUsT0FBTyxFQUFDLG1CQUFtQixFQUFvQixNQUFNLG1CQUFtQixDQUFDOzs7Ozs7QUFRekUsTUFBTSxPQUFPLG1CQUFtQjtJQUc1QixJQUNJLEtBQUssQ0FBQyxLQUFtQjtRQUN6QixJQUNJLEtBQUssQ0FBQyxNQUFNLEtBQUssSUFBSSxDQUFDLGFBQWEsQ0FBQyxNQUFNO1lBQzFDLENBQUMsS0FBSyxDQUFDLEtBQUssQ0FBQyxJQUFJLENBQUMsRUFBRSxDQUFDLElBQUksQ0FBQyxhQUFhLENBQUMsUUFBUSxDQUFDLElBQUksQ0FBQ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hpcy5lbmFibGVkLmZpbHRlcihpdGVtID0+IGl0ZW0gIT09IHRvZ2dsZWQpXG4gICAgICAgICAgICA6IHRoaXMuZW5hYmxlZC5jb25jYXQodG9nZ2xlZCk7XG5cbiAgICAgICAgdGhpcy51cGRhdGVFbmFibGVkKCk7XG4gICAgfVxuXG4gICAgbW92ZShpbmRleDogbnVtYmVyLCBkaXJlY3Rpb246IG51bWJlcik6IHZvaWQge1xuICAgICAgICBjb25zdCBvbGRJbmRleCA9IHRoaXMub3JkZXIuZ2V0KGluZGV4KSA/PyBpbmRleDtcblxuICAgICAgICBpZiAoXG4gICAgICAgICAgICAoIW9sZEluZGV4ICYmIGRpcmVjdGlvbiA8IDApIHx8XG4gICAgICAgICAgICAob2xkSW5kZXggPT09IHRoaXMudW5zb3J0ZWRJdGVtcy5sZW5ndGggLSAxICYmIGRpcmVjdGlvbiA+IDApXG4gICAgICAgICkge1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG5cbiAgICAgICAgY29uc3QgbmV3SW5kZXggPSBvbGRJbmRleCArIGRpcmVjdGlvbjtcbiAgICAgICAgY29uc3Qgb2xkSXRlbSA9IEFycmF5LmZyb20odGhpcy5vcmRlci52YWx1ZXMoKSkuZmluZEluZGV4KFxuICAgICAgICAgICAgaXRlbSA9PiBpdGVtID09PSBuZXdJbmRleCxcbiAgICAgICAgKTtcblxuICAgICAgICB0aGlzLm9yZGVyLnNldChpbmRleCwgbmV3SW5kZXgpO1xuICAgICAgICB0aGlzLm9yZGVyLnNldChvbGRJdGVtLCBvbGRJbmRleCk7XG4gICAgICAgIHRoaXMub3JkZXIgPSBuZXcgTWFwKHRoaXMub3JkZXIpO1xuXG4gICAgICAgIHRoaXMudXBkYXRlSXRlbXMoKTtcbiAgICB9XG5cbiAgICBwcml2YXRlIGdldFNvcnRlZEl0ZW1zKCk6IFRbXSB7XG4gICAgICAgIGNvbnN0IGl0ZW1zID0gbmV3IEFycmF5KHRoaXMudW5zb3J0ZWRJd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b25cIlxuICAgICAgICAgICAgICAgIFtzcmNdPVwib3B0aW9ucy5pY29ucy5kcmFnXCJcbiAgICAgICAgICAgID48L3R1aS1zdmc+XG4gICAgICAgICAgICB7eyBpdGVtIH19XG4gICAgICAgICAgICA8YnV0dG9uXG4gICAgICAgICAgICAgICAgYXBwZWFyYW5jZT1cImljb25cIlxuICAgICAgICAgICAgICAgIHNpemU9XCJ4c1wiXG4gICAgICAgICAgICAgICAgdHVpSWNvbkJ1dHRvblxuICAgICAgICAgICAgICAgIHR5cGU9XCJidXR0b25cIlxuICAgICAgICAgICAgICAgIGNsYXNzPVwidC1idXR0b25cIlxuICAgICAgICAgICAgICAgIFtjbGFzcy50LWJ1dHRvbl9oaWRkZW5dPVwiIWlzRW5hYmxlZChpdGVtKVwiXG4gICAgICAgICAgICAgICAgW2ljb25dPVwiZ2V0SWNvbihpdGVtKVwiXG4gICAgICAgICAgICAgICAgW3RpdGxlXT1cInNob3dIaWRlVGV4dCQgfCBhc3luY1wiXG4gICAgICAgICAgICAgICAgKGNsaWNrKT1cInRvZ2dsZShpdGVtKVwiXG4gICAgICAgICAgICAgICAgKGtleWRvd24uYXJyb3dEb3duLnByZXZlbnQpPVwibW92ZShpbmRleCwgMSlcIlxuICAgICAgICAgICAgICAgIChrZXlkb3duLmFycm93VXAucHJldmVudCk9XCJtb3ZlKGluZGV4LCAtMSlcIlxuICAgICAgICAgICAgPjwvYnV0dG9uPlxuICAgICAgICA8L2Rpdj5cbiAgICA8L3R1aS10aWxlPlxuPC90dWktdGlsZXM+XG4iXX0=
@@ -6,10 +6,10 @@ import { TuiReorderComponent } from './reorder.component';
6
6
  import * as i0 from "@angular/core";
7
7
  export class TuiReorderModule {
8
8
  }
9
- TuiReorderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiReorderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
10
- TuiReorderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiReorderModule, declarations: [TuiReorderComponent], imports: [CommonModule, TuiSvgModule, TuiButtonModule, TuiTilesModule], exports: [TuiReorderComponent] });
11
- TuiReorderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiReorderModule, imports: [[CommonModule, TuiSvgModule, TuiButtonModule, TuiTilesModule]] });
12
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiReorderModule, decorators: [{
9
+ TuiReorderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiReorderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
10
+ TuiReorderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: TuiReorderModule, declarations: [TuiReorderComponent], imports: [CommonModule, TuiSvgModule, TuiButtonModule, TuiTilesModule], exports: [TuiReorderComponent] });
11
+ TuiReorderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiReorderModule, imports: [CommonModule, TuiSvgModule, TuiButtonModule, TuiTilesModule] });
12
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiReorderModule, decorators: [{
13
13
  type: NgModule,
14
14
  args: [{
15
15
  imports: [CommonModule, TuiSvgModule, TuiButtonModule, TuiTilesModule],
@@ -17,4 +17,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
17
17
  exports: [TuiReorderComponent],
18
18
  }]
19
19
  }] });
20
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVvcmRlci5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8u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GVyTW9kdWxlIHt9XG4iXX0=
@@ -6,9 +6,9 @@ export class TuiCellDirective {
6
6
  this.tuiCell = '';
7
7
  }
8
8
  }
9
- TuiCellDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiCellDirective, deps: [{ token: TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
10
- TuiCellDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiCellDirective, selector: "[tuiCell]", inputs: { tuiCell: "tuiCell" }, ngImport: i0 });
11
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiCellDirective, decorators: [{
9
+ TuiCellDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiCellDirective, deps: [{ token: TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
10
+ TuiCellDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: TuiCellDirective, selector: "[tuiCell]", inputs: { tuiCell: "tuiCell" }, ngImport: i0 });
11
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiCellDirective, decorators: [{
12
12
  type: Directive,
13
13
  args: [{
14
14
  selector: '[tuiCell]',
@@ -0,0 +1,30 @@
1
+ import { Directive, Inject, Input, Output } from '@angular/core';
2
+ import { map } from 'rxjs';
3
+ import { TuiTableDirective } from './table.directive';
4
+ import * as i0 from "@angular/core";
5
+ import * as i1 from "./table.directive";
6
+ export class TuiDirectionOrderDirective {
7
+ set directionOrder(order) {
8
+ this.table.direction = order === 'asc' ? 1 : -1;
9
+ }
10
+ constructor(table) {
11
+ this.table = table;
12
+ this.directionOrderChange = this.table.directionChange.pipe(map(dir => (dir === 1 ? 'asc' : 'desc')));
13
+ }
14
+ }
15
+ TuiDirectionOrderDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDirectionOrderDirective, deps: [{ token: TuiTableDirective }], target: i0.ɵɵFactoryTarget.Directive });
16
+ TuiDirectionOrderDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: TuiDirectionOrderDirective, selector: "table[tuiTable][tuiDirectionOrder]", inputs: { directionOrder: "directionOrder" }, outputs: { directionOrderChange: "directionOrderChange" }, ngImport: i0 });
17
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDirectionOrderDirective, decorators: [{
18
+ type: Directive,
19
+ args: [{
20
+ selector: 'table[tuiTable][tuiDirectionOrder]',
21
+ }]
22
+ }], ctorParameters: function () { return [{ type: i1.TuiTableDirective, decorators: [{
23
+ type: Inject,
24
+ args: [TuiTableDirective]
25
+ }] }]; }, propDecorators: { directionOrder: [{
26
+ type: Input
27
+ }], directionOrderChange: [{
28
+ type: Output
29
+ }] } });
30
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGlyZWN0aW9uLW9yZGVyLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FkZG9uLXRhYmxlL2NvbXBvbmVudHMvdGFibGUvZGlyZWN0aXZlcy9kaXJlY3Rpb24tb3JkZXIuZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsTUFBTSxFQUFFLEtBQUssRUFBRSxNQUFNLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDL0QsT0FBTyxFQUFDLEdBQUcsRUFBQyxNQUFNLE1BQU0sQ0FBQztBQUV6QixPQUFPLEVBQUMsaUJBQWlCLEVBQUMsTUFBTSxtQkFBbUIsQ0F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GlyZWN0aW9uT3JkZXJdJyxcbn0pXG5leHBvcnQgY2xhc3MgVHVpRGlyZWN0aW9uT3JkZXJEaXJlY3RpdmU8VD4ge1xuICAgIEBJbnB1dCgpXG4gICAgc2V0IGRpcmVjdGlvbk9yZGVyKG9yZGVyOiAnYXNjJyB8ICdkZXNjJykge1xuICAgICAgICB0aGlzLnRhYmxlLmRpcmVjdGlvbiA9IG9yZGVyID09PSAnYXNjJyA/IDEgOiAtMTtcbiAgICB9XG5cbiAgICBAT3V0cHV0KClcbiAgICByZWFkb25seSBkaXJlY3Rpb25PcmRlckNoYW5nZSA9IHRoaXMudGFibGUuZGlyZWN0aW9uQ2hhbmdlLnBpcGUoXG4gICAgICAgIG1hcChkaXIgPT4gKGRpciA9PT0gMSA/ICdhc2MnIDogJ2Rlc2MnKSksXG4gICAgKTtcblxuICAgIGNvbnN0cnVjdG9yKFxuICAgICAgICBASW5qZWN0KFR1aVRhYmxlRGlyZWN0aXZlKSBwcml2YXRlIHJlYWRvbmx5IHRhYmxlOiBUdWlUYWJsZURpcmVjdGl2ZTxUPixcbiAgICApIHt9XG59XG4iXX0=
@@ -5,9 +5,9 @@ export class TuiHeadDirective {
5
5
  this.template = template;
6
6
  }
7
7
  }
8
- TuiHeadDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiHeadDirective, deps: [{ token: TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
9
- TuiHeadDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHeadDirective, selector: "[tuiHead]", inputs: { tuiHead: "tuiHead" }, ngImport: i0 });
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiHeadDirective, decorators: [{
8
+ TuiHeadDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiHeadDirective, deps: [{ token: TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
9
+ TuiHeadDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: TuiHeadDirective, selector: "[tuiHead]", inputs: { tuiHead: "tuiHead" }, ngImport: i0 });
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiHeadDirective, decorators: [{
11
11
  type: Directive,
12
12
  args: [{
13
13
  selector: '[tuiHead]',
@@ -0,0 +1,37 @@
1
+ import { DOCUMENT } from '@angular/common';
2
+ import { Directive, ElementRef, Inject, Output } from '@angular/core';
3
+ import { tuiPreventDefault, tuiTypedFromEvent } from '@taiga-ui/cdk';
4
+ import { TUI_ELEMENT_REF } from '@taiga-ui/core';
5
+ import { distinctUntilChanged, map, switchMap, takeUntil } from 'rxjs';
6
+ import * as i0 from "@angular/core";
7
+ export class TuiResizedDirective {
8
+ constructor(doc, el, parentRef) {
9
+ this.doc = doc;
10
+ this.el = el;
11
+ this.parentRef = parentRef;
12
+ this.tuiResized = tuiTypedFromEvent(this.el.nativeElement, 'mousedown').pipe(tuiPreventDefault(), switchMap(() => {
13
+ const { width, right } = this.parentRef.nativeElement.getBoundingClientRect();
14
+ return tuiTypedFromEvent(this.doc, 'mousemove').pipe(distinctUntilChanged(), map(({ clientX }) => width + clientX - right), takeUntil(tuiTypedFromEvent(this.doc, 'mouseup')));
15
+ }));
16
+ }
17
+ }
18
+ TuiResizedDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiResizedDirective, deps: [{ token: DOCUMENT }, { token: ElementRef }, { token: TUI_ELEMENT_REF }], target: i0.ɵɵFactoryTarget.Directive });
19
+ TuiResizedDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: TuiResizedDirective, selector: "[tuiResized]", outputs: { tuiResized: "tuiResized" }, ngImport: i0 });
20
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiResizedDirective, decorators: [{
21
+ type: Directive,
22
+ args: [{
23
+ selector: '[tuiResized]',
24
+ }]
25
+ }], ctorParameters: function () { return [{ type: Document, decorators: [{
26
+ type: Inject,
27
+ args: [DOCUMENT]
28
+ }] }, { type: i0.ElementRef, decorators: [{
29
+ type: Inject,
30
+ args: [ElementRef]
31
+ }] }, { type: i0.ElementRef, decorators: [{
32
+ type: Inject,
33
+ args: [TUI_ELEMENT_REF]
34
+ }] }]; }, propDecorators: { tuiResized: [{
35
+ type: Output
36
+ }] } });
37
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzaXplZC5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hZGRvbi10YWJsZS9jb21wb25lbnRzL3RhYmxlL2RpcmVjdGl2ZXMvcmVzaXplZC5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFFBQVEsRUFBQyxNQUFNLGlCQUFpQixDQUFDO0FBQ3pDLE9BQU8sRUFBQyxTQUFTLEVBQUUsVUFBVSxFQUFFLE1BQU0sRUFBRSxNQUFNLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDcEUsT0FBTyxFQUFDLGlCQUFpQixFQUFFLGlCQUFpQixFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ25FLE9BQU8sRUFBQyxlQUFlLEVBQUMsTUFBTSxnQkFBZ0IsQ0FBQztBQUMvQyxPQUFPLEVBQUMsb0JBQW9CLEVBQUUsR0FBRyxFQUFFLFNBQVMsRUFBRSxTQUFTLEVBQUMsTUFBTSxNQUFNLENBQUM7O0FBS3JFLE1BQU0sT0FBTyxtQkFBbUI7SUFlNUIsWUFDdUMsR0FBYSxFQUUvQixFQUEyQixFQ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HdpZHRoICsgY2xpZW50WCAtIHJpZ2h0KSxcbiAgICAgICAgICAgICAgICB0YWtlVW50aWwodHVpVHlwZWRGcm9tRXZlbnQodGhpcy5kb2MsICdtb3VzZXVwJykpLFxuICAgICAgICAgICAgKTtcbiAgICAgICAgfSksXG4gICAgKTtcblxuICAgIGNvbnN0cnVjdG9yKFxuICAgICAgICBASW5qZWN0KERPQ1VNRU5UKSBwcml2YXRlIHJlYWRvbmx5IGRvYzogRG9jdW1lbnQsXG4gICAgICAgIEBJbmplY3QoRWxlbWVudFJlZilcbiAgICAgICAgcHJpdmF0ZSByZWFkb25seSBlbDogRWxlbWVudFJlZjxIVE1MRWxlbWVudD4sXG4gICAgICAgIEBJbmplY3QoVFVJX0VMRU1FTlRfUkVGKVxuICAgICAgICBwcml2YXRlIHJlYWRvbmx5IHBhcmVudFJlZjogRWxlbWVudFJlZjxIVE1MVGFibGVIZWFkZXJDZWxsRWxlbWVudD4sXG4gICAgKSB7fVxufVxuIl19
@@ -15,9 +15,9 @@ export class TuiRowDirective {
15
15
  return true;
16
16
  }
17
17
  }
18
- TuiRowDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiRowDirective, deps: [{ token: TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
19
- TuiRowDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiRowDirective, selector: "ng-template[tuiRow]", inputs: { tuiRowOf: "tuiRowOf" }, ngImport: i0 });
20
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiRowDirective, decorators: [{
18
+ TuiRowDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiRowDirective, deps: [{ token: TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
19
+ TuiRowDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: TuiRowDirective, selector: "ng-template[tuiRow]", inputs: { tuiRowOf: "tuiRowOf" }, ngImport: i0 });
20
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiRowDirective, decorators: [{
21
21
  type: Directive,
22
22
  args: [{
23
23
  selector: 'ng-template[tuiRow]',
@@ -0,0 +1,47 @@
1
+ import { ContentChildren, Directive, Inject, Input, Output, } from '@angular/core';
2
+ import { EMPTY_QUERY } from '@taiga-ui/cdk';
3
+ import { delay, filter, map } from 'rxjs';
4
+ import { TuiSortableDirective } from './sortable.directive';
5
+ import { TuiTableDirective } from './table.directive';
6
+ import * as i0 from "@angular/core";
7
+ import * as i1 from "./table.directive";
8
+ export class TuiSortByDirective {
9
+ set sortBy(sortBy) {
10
+ this.tuiSortBy = sortBy;
11
+ this.checkSortables();
12
+ }
13
+ constructor(table) {
14
+ this.table = table;
15
+ this.sortables = EMPTY_QUERY;
16
+ this.tuiSortByChange = this.table.sorterChange.pipe(
17
+ // delay is for getting actual ContentChildren (sortables) https://github.com/angular/angular/issues/38976
18
+ delay(0), filter(() => !!this.sortables.length), map(sorter => this.getKey(sorter)));
19
+ this.tuiSortBy = null;
20
+ }
21
+ checkSortables() {
22
+ this.sortables.forEach(s => s.check());
23
+ }
24
+ getKey(sorter) {
25
+ return this.sortables.find(s => s.sorter === sorter)?.key || null;
26
+ }
27
+ }
28
+ TuiSortByDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiSortByDirective, deps: [{ token: TuiTableDirective }], target: i0.ɵɵFactoryTarget.Directive });
29
+ TuiSortByDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: TuiSortByDirective, selector: "table[tuiTable][tuiSortBy]", inputs: { sortBy: ["tuiSortBy", "sortBy"] }, outputs: { tuiSortByChange: "tuiSortByChange" }, queries: [{ propertyName: "sortables", predicate: TuiSortableDirective, descendants: true }], ngImport: i0 });
30
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiSortByDirective, decorators: [{
31
+ type: Directive,
32
+ args: [{
33
+ selector: 'table[tuiTable][tuiSortBy]',
34
+ }]
35
+ }], ctorParameters: function () { return [{ type: i1.TuiTableDirective, decorators: [{
36
+ type: Inject,
37
+ args: [TuiTableDirective]
38
+ }] }]; }, propDecorators: { sortables: [{
39
+ type: ContentChildren,
40
+ args: [TuiSortableDirective, { descendants: true }]
41
+ }], sortBy: [{
42
+ type: Input,
43
+ args: ['tuiSortBy']
44
+ }], tuiSortByChange: [{
45
+ type: Output
46
+ }] } });
47
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic29ydC1ieS5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hZGRvbi10YWJsZS9jb21wb25lbnRzL3RhYmxlL2RpcmVjdGl2ZXMvc29ydC1ieS5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNILGVBQWUsRUFDZixTQUFTLEVBQ1QsTUFBTSxFQUNOLEtBQUssRUFDTCxNQUFNLEdBRVQsTUFBTSxlQUFlLENBQUM7QUFFdkIsT0FBTyxFQUFDLFdBQVcsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUMxQyxPQUFPLEVBQUMsS0FBSyxFQUFFLE1BQU0sRUFBRSxHQUFHLEVBQUMsTUFBTSxNQUFNLENBQUM7QUFFeEMsT0FBTyxFQUFDLG9CQUFvQixFQUFDLE1BQU0sc0JBQXNCLENBQUM7QUFDMUQsT0FBTyxFQUFDLGlCQUFpQixFQUFDLE1BQU0sbUJBQW1CLENBQUM7OztBQUtwRCxNQUFNLE9BQU8sa0JBQWtCO0lBSTNCLElBQ0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2V5KHNvcnRlcjogVHVpQ29tcGFyYXRvcjxUPiB8IG51bGwpOiBrZXlvZiBUIHwgbnVsbCB7XG4gICAgICAgIHJldHVybiB0aGlzLnNvcnRhYmxlcy5maW5kKHMgPT4gcy5zb3J0ZXIgPT09IHNvcnRlcik/LmtleSB8fCBudWxsO1xuICAgIH1cbn1cbiJdfQ==
@@ -29,9 +29,9 @@ export class TuiSortableDirective {
29
29
  return this.sortBy.tuiSortBy === this.key;
30
30
  }
31
31
  }
32
- TuiSortableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiSortableDirective, deps: [{ token: forwardRef(() => TuiSortByDirective) }, { token: TuiTableDirective }, { token: TuiThComponent }], target: i0.ɵɵFactoryTarget.Directive });
33
- TuiSortableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiSortableDirective, selector: "th[tuiTh][tuiSortable]", ngImport: i0 });
34
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiSortableDirective, decorators: [{
32
+ TuiSortableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiSortableDirective, deps: [{ token: forwardRef(() => TuiSortByDirective) }, { token: TuiTableDirective }, { token: TuiThComponent }], target: i0.ɵɵFactoryTarget.Directive });
33
+ TuiSortableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: TuiSortableDirective, selector: "th[tuiTh][tuiSortable]", ngImport: i0 });
34
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiSortableDirective, decorators: [{
35
35
  type: Directive,
36
36
  args: [{
37
37
  selector: 'th[tuiTh][tuiSortable]',
@@ -45,9 +45,9 @@ export class TuiTableDirective extends AbstractTuiController {
45
45
  this.change$.next();
46
46
  }
47
47
  }
48
- TuiTableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiTableDirective, deps: [{ token: IntersectionObserverService }, { token: TUI_MODE }, { token: TUI_STUCK }, { token: TUI_TABLE_OPTIONS }, { token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
49
- TuiTableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", 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 });
50
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiTableDirective, decorators: [{
48
+ TuiTableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiTableDirective, deps: [{ token: IntersectionObserverService }, { token: TUI_MODE }, { token: TUI_STUCK }, { token: TUI_TABLE_OPTIONS }, { token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
49
+ TuiTableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", 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 });
50
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiTableDirective, decorators: [{
51
51
  type: Directive,
52
52
  args: [{
53
53
  selector: 'table[tuiTable]',
@@ -8,8 +8,8 @@ export class TuiTheadDirective {
8
8
  this.stuck$ = stuck$;
9
9
  }
10
10
  }
11
- TuiTheadDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiTheadDirective, deps: [{ token: TUI_STUCK }], target: i0.ɵɵFactoryTarget.Directive });
12
- TuiTheadDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiTheadDirective, selector: "thead[tuiThead]", host: { listeners: { "$.class._stuck": "stuck$" } }, providers: [
11
+ TuiTheadDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiTheadDirective, deps: [{ token: TUI_STUCK }], target: i0.ɵɵFactoryTarget.Directive });
12
+ TuiTheadDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: TuiTheadDirective, selector: "thead[tuiThead]", host: { listeners: { "$.class._stuck": "stuck$" } }, providers: [
13
13
  TUI_STUCK_PROVIDER,
14
14
  IntersectionObserverService,
15
15
  {
@@ -17,7 +17,7 @@ TuiTheadDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", vers
17
17
  useValue: '0px 10000px 10000px 10000px',
18
18
  },
19
19
  ], ngImport: i0 });
20
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiTheadDirective, decorators: [{
20
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiTheadDirective, decorators: [{
21
21
  type: Directive,
22
22
  args: [{
23
23
  selector: 'thead[tuiThead]',