@taiga-ui/addon-table 2.55.0 → 2.58.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 (110) hide show
  1. package/bundles/taiga-ui-addon-table-components-reorder.umd.js +5 -5
  2. package/bundles/taiga-ui-addon-table-components-reorder.umd.js.map +1 -1
  3. package/bundles/taiga-ui-addon-table-components-reorder.umd.min.js +1 -1
  4. package/bundles/taiga-ui-addon-table-components-reorder.umd.min.js.map +1 -1
  5. package/bundles/taiga-ui-addon-table-components-resizable-column.umd.js +8 -8
  6. package/bundles/taiga-ui-addon-table-components-resizable-column.umd.js.map +1 -1
  7. package/bundles/taiga-ui-addon-table-components-resizable-column.umd.min.js +1 -1
  8. package/bundles/taiga-ui-addon-table-components-resizable-column.umd.min.js.map +1 -1
  9. package/bundles/taiga-ui-addon-table-components-table-pagination.umd.js +2 -2
  10. package/bundles/taiga-ui-addon-table-components-table-pagination.umd.js.map +1 -1
  11. package/bundles/taiga-ui-addon-table-components-table-pagination.umd.min.js.map +1 -1
  12. package/bundles/taiga-ui-addon-table-components-table.umd.js +37 -37
  13. package/bundles/taiga-ui-addon-table-components-table.umd.js.map +1 -1
  14. package/bundles/taiga-ui-addon-table-components-table.umd.min.js +1 -1
  15. package/bundles/taiga-ui-addon-table-components-table.umd.min.js.map +1 -1
  16. package/bundles/taiga-ui-addon-table-directives-table-filters.umd.js +4 -4
  17. package/bundles/taiga-ui-addon-table-directives-table-filters.umd.js.map +1 -1
  18. package/bundles/taiga-ui-addon-table-directives-table-filters.umd.min.js.map +1 -1
  19. package/bundles/taiga-ui-addon-table-tokens.umd.js +3 -3
  20. package/bundles/taiga-ui-addon-table-tokens.umd.js.map +1 -1
  21. package/bundles/taiga-ui-addon-table-tokens.umd.min.js.map +1 -1
  22. package/bundles/taiga-ui-addon-table-utils.umd.js +1 -1
  23. package/bundles/taiga-ui-addon-table-utils.umd.js.map +1 -1
  24. package/bundles/taiga-ui-addon-table-utils.umd.min.js.map +1 -1
  25. package/components/reorder/taiga-ui-addon-table-components-reorder.metadata.json +1 -1
  26. package/components/resizable-column/taiga-ui-addon-table-components-resizable-column.metadata.json +1 -1
  27. package/components/table/taiga-ui-addon-table-components-table.metadata.json +1 -1
  28. package/esm2015/components/reorder/reorder.component.js +6 -6
  29. package/esm2015/components/resizable-column/resizable-column.component.js +5 -5
  30. package/esm2015/components/resizable-column/resizable-column.directive.js +4 -4
  31. package/esm2015/components/table/directives/cell.directive.js +3 -3
  32. package/esm2015/components/table/directives/head.directive.js +2 -2
  33. package/esm2015/components/table/directives/resized.directive.js +4 -4
  34. package/esm2015/components/table/directives/row.directive.js +2 -2
  35. package/esm2015/components/table/directives/sort-by.directive.js +2 -2
  36. package/esm2015/components/table/directives/sortable.directive.js +2 -2
  37. package/esm2015/components/table/directives/table.directive.js +7 -7
  38. package/esm2015/components/table/directives/thead.directive.js +4 -4
  39. package/esm2015/components/table/pipes/table-sort.pipe.js +2 -2
  40. package/esm2015/components/table/providers/stuck.provider.js +3 -3
  41. package/esm2015/components/table/providers/table.providers.js +3 -3
  42. package/esm2015/components/table/tbody/tbody.component.js +5 -5
  43. package/esm2015/components/table/td/td.component.js +6 -4
  44. package/esm2015/components/table/th/th.component.js +5 -5
  45. package/esm2015/components/table/th-group/th-group.component.js +2 -2
  46. package/esm2015/components/table/tr/tr.component.js +2 -2
  47. package/esm2015/components/table-pagination/table-pagination-options.js +2 -2
  48. package/esm2015/components/table-pagination/table-pagination.component.js +2 -2
  49. package/esm2015/directives/table-filters/generic-filter.directive.js +2 -2
  50. package/esm2015/directives/table-filters/table-filter.directive.js +2 -2
  51. package/esm2015/directives/table-filters/table-filters.directive.js +2 -2
  52. package/esm2015/directives/table-filters/table-filters.pipe.js +2 -2
  53. package/esm2015/tokens/i18n.js +4 -4
  54. package/esm2015/utils/default-sort.js +2 -2
  55. package/esm5/components/reorder/reorder.component.js +6 -6
  56. package/esm5/components/resizable-column/resizable-column.component.js +5 -5
  57. package/esm5/components/resizable-column/resizable-column.directive.js +5 -5
  58. package/esm5/components/table/directives/cell.directive.js +3 -3
  59. package/esm5/components/table/directives/head.directive.js +2 -2
  60. package/esm5/components/table/directives/resized.directive.js +5 -5
  61. package/esm5/components/table/directives/row.directive.js +2 -2
  62. package/esm5/components/table/directives/sort-by.directive.js +2 -2
  63. package/esm5/components/table/directives/sortable.directive.js +2 -2
  64. package/esm5/components/table/directives/table.directive.js +7 -7
  65. package/esm5/components/table/directives/thead.directive.js +4 -4
  66. package/esm5/components/table/pipes/table-sort.pipe.js +2 -2
  67. package/esm5/components/table/providers/stuck.provider.js +3 -3
  68. package/esm5/components/table/providers/table.providers.js +3 -3
  69. package/esm5/components/table/tbody/tbody.component.js +5 -5
  70. package/esm5/components/table/td/td.component.js +4 -4
  71. package/esm5/components/table/th/th.component.js +5 -5
  72. package/esm5/components/table/th-group/th-group.component.js +2 -2
  73. package/esm5/components/table/tr/tr.component.js +2 -2
  74. package/esm5/components/table-pagination/table-pagination-options.js +2 -2
  75. package/esm5/components/table-pagination/table-pagination.component.js +2 -2
  76. package/esm5/directives/table-filters/generic-filter.directive.js +2 -2
  77. package/esm5/directives/table-filters/table-filter.directive.js +2 -2
  78. package/esm5/directives/table-filters/table-filters.directive.js +2 -2
  79. package/esm5/directives/table-filters/table-filters.pipe.js +2 -2
  80. package/esm5/tokens/i18n.js +4 -4
  81. package/esm5/utils/default-sort.js +2 -2
  82. package/fesm2015/taiga-ui-addon-table-components-reorder.js +5 -5
  83. package/fesm2015/taiga-ui-addon-table-components-reorder.js.map +1 -1
  84. package/fesm2015/taiga-ui-addon-table-components-resizable-column.js +7 -7
  85. package/fesm2015/taiga-ui-addon-table-components-resizable-column.js.map +1 -1
  86. package/fesm2015/taiga-ui-addon-table-components-table-pagination.js +2 -2
  87. package/fesm2015/taiga-ui-addon-table-components-table-pagination.js.map +1 -1
  88. package/fesm2015/taiga-ui-addon-table-components-table.js +38 -36
  89. package/fesm2015/taiga-ui-addon-table-components-table.js.map +1 -1
  90. package/fesm2015/taiga-ui-addon-table-directives-table-filters.js +4 -4
  91. package/fesm2015/taiga-ui-addon-table-directives-table-filters.js.map +1 -1
  92. package/fesm2015/taiga-ui-addon-table-tokens.js +3 -3
  93. package/fesm2015/taiga-ui-addon-table-tokens.js.map +1 -1
  94. package/fesm2015/taiga-ui-addon-table-utils.js +1 -1
  95. package/fesm2015/taiga-ui-addon-table-utils.js.map +1 -1
  96. package/fesm5/taiga-ui-addon-table-components-reorder.js +5 -5
  97. package/fesm5/taiga-ui-addon-table-components-reorder.js.map +1 -1
  98. package/fesm5/taiga-ui-addon-table-components-resizable-column.js +8 -8
  99. package/fesm5/taiga-ui-addon-table-components-resizable-column.js.map +1 -1
  100. package/fesm5/taiga-ui-addon-table-components-table-pagination.js +2 -2
  101. package/fesm5/taiga-ui-addon-table-components-table-pagination.js.map +1 -1
  102. package/fesm5/taiga-ui-addon-table-components-table.js +37 -37
  103. package/fesm5/taiga-ui-addon-table-components-table.js.map +1 -1
  104. package/fesm5/taiga-ui-addon-table-directives-table-filters.js +4 -4
  105. package/fesm5/taiga-ui-addon-table-directives-table-filters.js.map +1 -1
  106. package/fesm5/taiga-ui-addon-table-tokens.js +3 -3
  107. package/fesm5/taiga-ui-addon-table-tokens.js.map +1 -1
  108. package/fesm5/taiga-ui-addon-table-utils.js +1 -1
  109. package/fesm5/taiga-ui-addon-table-utils.js.map +1 -1
  110. package/package.json +4 -4
@@ -10,7 +10,7 @@ function defaultSort(x, y) {
10
10
  if (a === b) {
11
11
  return 0;
12
12
  }
13
- if (typeof a === 'string' && typeof b === 'string') {
13
+ if (typeof a === `string` && typeof b === `string`) {
14
14
  return a.localeCompare(b);
15
15
  }
16
16
  return a > b ? 1 : -1;
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-addon-table-utils.js","sources":["ng://@taiga-ui/addon-table/utils/default-sort.ts","ng://@taiga-ui/addon-table/utils/taiga-ui-addon-table-utils.ts"],"sourcesContent":["import {TuiDay} from '@taiga-ui/cdk';\n\n/**\n * @deprecated: use {@link tuiDefaultSort} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function defaultSort<T>(x: T, y: T): number {\n const a = x instanceof TuiDay ? Number(x.toUtcNativeDate()) : x;\n const b = y instanceof TuiDay ? Number(y.toUtcNativeDate()) : y;\n\n if (a === b) {\n return 0;\n }\n\n if (typeof a === 'string' && typeof b === 'string') {\n return a.localeCompare(b);\n }\n\n return a > b ? 1 : -1;\n}\n\nexport const tuiDefaultSort = defaultSort;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAEA;;;AAGA;SACgB,WAAW,CAAI,CAAI,EAAE,CAAI;IACrC,MAAM,CAAC,GAAG,CAAC,YAAY,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,eAAe,EAAE,CAAC,GAAG,CAAC,CAAC;IAChE,MAAM,CAAC,GAAG,CAAC,YAAY,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,eAAe,EAAE,CAAC,GAAG,CAAC,CAAC;IAEhE,IAAI,CAAC,KAAK,CAAC,EAAE;QACT,OAAO,CAAC,CAAC;KACZ;IAED,IAAI,OAAO,CAAC,KAAK,QAAQ,IAAI,OAAO,CAAC,KAAK,QAAQ,EAAE;QAChD,OAAO,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;KAC7B;IAED,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;AAC1B,CAAC;MAEY,cAAc,GAAG;;ACrB9B;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-addon-table-utils.js","sources":["ng://@taiga-ui/addon-table/utils/default-sort.ts","ng://@taiga-ui/addon-table/utils/taiga-ui-addon-table-utils.ts"],"sourcesContent":["import {TuiDay} from '@taiga-ui/cdk';\n\n/**\n * @deprecated: use {@link tuiDefaultSort} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function defaultSort<T>(x: T, y: T): number {\n const a = x instanceof TuiDay ? Number(x.toUtcNativeDate()) : x;\n const b = y instanceof TuiDay ? Number(y.toUtcNativeDate()) : y;\n\n if (a === b) {\n return 0;\n }\n\n if (typeof a === `string` && typeof b === `string`) {\n return a.localeCompare(b);\n }\n\n return a > b ? 1 : -1;\n}\n\nexport const tuiDefaultSort = defaultSort;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAEA;;;AAGA;SACgB,WAAW,CAAI,CAAI,EAAE,CAAI;IACrC,MAAM,CAAC,GAAG,CAAC,YAAY,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,eAAe,EAAE,CAAC,GAAG,CAAC,CAAC;IAChE,MAAM,CAAC,GAAG,CAAC,YAAY,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,eAAe,EAAE,CAAC,GAAG,CAAC,CAAC;IAEhE,IAAI,CAAC,KAAK,CAAC,EAAE;QACT,OAAO,CAAC,CAAC;KACZ;IAED,IAAI,OAAO,CAAC,KAAK,QAAQ,IAAI,OAAO,CAAC,KAAK,QAAQ,EAAE;QAChD,OAAO,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;KAC7B;IAED,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;AAC1B,CAAC;MAEY,cAAc,GAAG;;ACrB9B;;;;;;"}
@@ -21,7 +21,7 @@ var TuiReorderComponent = /** @class */ (function () {
21
21
  return this.enabled.includes(item);
22
22
  };
23
23
  TuiReorderComponent.prototype.getIcon = function (item) {
24
- return this.isEnabled(item) ? 'tuiIconEyeOpen' : 'tuiIconEyeClosed';
24
+ return this.isEnabled(item) ? "tuiIconEyeOpen" : "tuiIconEyeClosed";
25
25
  };
26
26
  TuiReorderComponent.prototype.toggle = function (toggled) {
27
27
  var enabled = this.isEnabled(toggled)
@@ -59,13 +59,13 @@ var TuiReorderComponent = /** @class */ (function () {
59
59
  Output()
60
60
  ], TuiReorderComponent.prototype, "enabledChange", void 0);
61
61
  __decorate([
62
- HostListener('focusout.stop')
62
+ HostListener("focusout.stop")
63
63
  ], TuiReorderComponent.prototype, "noop", null);
64
64
  TuiReorderComponent = __decorate([
65
65
  Component({
66
- selector: 'tui-reorder',
67
- template: "<div\n cdkDropList\n class=\"wrapper\"\n (cdkDropListDropped)=\"drop($event)\"\n>\n <div\n *ngFor=\"let item of items\"\n tabindex=\"-1\"\n cdkDrag\n class=\"item\"\n >\n <tui-svg\n src=\"tuiIconDrag\"\n class=\"icon\"\n ></tui-svg>\n {{ item }}\n <button\n type=\"button\"\n tuiIconButton\n appearance=\"icon\"\n size=\"xs\"\n tuiPreventDefault=\"mousedown\"\n class=\"button\"\n [class.button_hidden]=\"!isEnabled(item)\"\n [title]=\"showHideText$ | async\"\n [icon]=\"getIcon(item)\"\n (click)=\"toggle(item)\"\n ></button>\n </div>\n</div>\n",
68
- styles: [":host{display:block;font:var(--tui-font-text-s);padding:.5rem 0}.item{transition-property:background;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;display:flex;height:2rem;align-items:center;padding:0 .75rem;cursor:ns-resize;background:var(--tui-base-01);outline:0}.item:hover{background:var(--tui-base-02)}.item:hover .button{opacity:1}.icon{margin-right:.5rem;color:var(--tui-base-05)}.button{transition-property:opacity;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;margin-left:auto;opacity:0}.button_hidden{opacity:1}.cdk-drag-placeholder{opacity:0}.cdk-drag-animating,.wrapper.cdk-drop-list-dragging .item:not(.cdk-drag-placeholder){transition:transform 250ms cubic-bezier(0,0,.2,1)}.wrapper.cdk-drop-list-dragging .item:not(.cdk-drag-placeholder):hover{background:var(--tui-base-01)}.wrapper.cdk-drop-list-dragging .item:not(.cdk-drag-placeholder) .button{display:none}"]
66
+ selector: "tui-reorder",
67
+ template: "<div\n cdkDropList\n class=\"t-wrapper\"\n (cdkDropListDropped)=\"drop($event)\"\n>\n <div\n *ngFor=\"let item of items\"\n tabindex=\"-1\"\n cdkDrag\n class=\"t-item\"\n >\n <tui-svg\n src=\"tuiIconDrag\"\n class=\"t-icon\"\n ></tui-svg>\n {{ item }}\n <button\n type=\"button\"\n tuiIconButton\n appearance=\"icon\"\n size=\"xs\"\n tuiPreventDefault=\"mousedown\"\n class=\"t-button\"\n [class.t-button_hidden]=\"!isEnabled(item)\"\n [title]=\"showHideText$ | async\"\n [icon]=\"getIcon(item)\"\n (click)=\"toggle(item)\"\n ></button>\n </div>\n</div>\n",
68
+ styles: [":host{display:block;font:var(--tui-font-text-s);padding:.5rem 0}.t-item{transition-property:background;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;display:flex;height:2rem;align-items:center;padding:0 .75rem;cursor:ns-resize;background:var(--tui-base-01);outline:0}.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,300ms);transition-timing-function:ease-in-out;margin-left:auto;opacity:0}.t-button_hidden{opacity:1}.cdk-drag-placeholder{opacity:0}.cdk-drag-animating,.t-wrapper.cdk-drop-list-dragging .t-item:not(.cdk-drag-placeholder){transition:transform 250ms cubic-bezier(0,0,.2,1)}.t-wrapper.cdk-drop-list-dragging .t-item:not(.cdk-drag-placeholder):hover{background:var(--tui-base-01)}.t-wrapper.cdk-drop-list-dragging .t-item:not(.cdk-drag-placeholder) .t-button{display:none}"]
69
69
  }),
70
70
  __param(0, Inject(TUI_TABLE_SHOW_HIDE_MESSAGE))
71
71
  ], TuiReorderComponent);
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-addon-table-components-reorder.js","sources":["ng://@taiga-ui/addon-table/components/reorder/reorder.component.ts","ng://@taiga-ui/addon-table/components/reorder/reorder.module.ts","ng://@taiga-ui/addon-table/components/reorder/taiga-ui-addon-table-components-reorder.ts"],"sourcesContent":["import {CdkDragDrop, moveItemInArray} from '@angular/cdk/drag-drop';\nimport {\n Component,\n EventEmitter,\n HostListener,\n Inject,\n Input,\n Output,\n} from '@angular/core';\nimport {TUI_TABLE_SHOW_HIDE_MESSAGE} from '@taiga-ui/addon-table/tokens';\nimport {tuiDefaultProp} from '@taiga-ui/cdk';\nimport {Observable} from 'rxjs';\n\n// @bad TODO: a11y\n@Component({\n selector: 'tui-reorder',\n templateUrl: './reorder.template.html',\n styleUrls: ['./reorder.style.less'],\n})\nexport class TuiReorderComponent<T> {\n @Input()\n @tuiDefaultProp()\n items: readonly T[] = [];\n\n @Input()\n @tuiDefaultProp()\n enabled: readonly T[] = [];\n\n @Output()\n readonly itemsChange = new EventEmitter<readonly T[]>();\n\n @Output()\n readonly enabledChange = new EventEmitter<readonly T[]>();\n\n constructor(\n @Inject(TUI_TABLE_SHOW_HIDE_MESSAGE) readonly showHideText$: Observable<string>,\n ) {}\n\n @HostListener('focusout.stop')\n noop(): void {}\n\n isEnabled(item: T): boolean {\n return this.enabled.includes(item);\n }\n\n getIcon(item: T): string {\n return this.isEnabled(item) ? 'tuiIconEyeOpen' : 'tuiIconEyeClosed';\n }\n\n toggle(toggled: T): void {\n const enabled = this.isEnabled(toggled)\n ? this.enabled.filter(item => item !== toggled)\n : this.enabled.concat(toggled);\n\n this.updateEnabled(enabled);\n }\n\n drop(event: CdkDragDrop<T>): void {\n const items = [...this.items];\n\n moveItemInArray(items, event.previousIndex, event.currentIndex);\n this.items = items;\n this.itemsChange.emit(items);\n this.updateEnabled(items.filter(item => this.enabled.includes(item)));\n }\n\n private updateEnabled(enabled: readonly T[]): void {\n this.enabled = enabled;\n this.enabledChange.emit(enabled);\n }\n}\n","import {DragDropModule} from '@angular/cdk/drag-drop';\nimport {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiPreventDefaultModule} from '@taiga-ui/cdk';\nimport {TuiButtonModule, TuiSvgModule} from '@taiga-ui/core';\n\nimport {TuiReorderComponent} from './reorder.component';\n\n@NgModule({\n imports: [\n CommonModule,\n DragDropModule,\n TuiSvgModule,\n TuiButtonModule,\n TuiPreventDefaultModule,\n ],\n declarations: [TuiReorderComponent],\n exports: [TuiReorderComponent],\n})\nexport class TuiReorderModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAaA;;IAqBI,6BACkD,aAAiC;QAAjC,kBAAa,GAAb,aAAa,CAAoB;QAbnF,UAAK,GAAiB,EAAE,CAAC;QAIzB,YAAO,GAAiB,EAAE,CAAC;QAGlB,gBAAW,GAAG,IAAI,YAAY,EAAgB,CAAC;QAG/C,kBAAa,GAAG,IAAI,YAAY,EAAgB,CAAC;KAItD;IAGJ,kCAAI,GAAJ,eAAe;IAEf,uCAAS,GAAT,UAAU,IAAO;QACb,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;KACtC;IAED,qCAAO,GAAP,UAAQ,IAAO;QACX,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,gBAAgB,GAAG,kBAAkB,CAAC;KACvE;IAED,oCAAM,GAAN,UAAO,OAAU;QACb,IAAM,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC;cACjC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,UAAA,IAAI,IAAI,OAAA,IAAI,KAAK,OAAO,GAAA,CAAC;cAC7C,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAEnC,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;KAC/B;IAED,kCAAI,GAAJ,UAAK,KAAqB;QAA1B,iBAOC;QANG,IAAM,KAAK,YAAO,IAAI,CAAC,KAAK,CAAC,CAAC;QAE9B,eAAe,CAAC,KAAK,EAAE,KAAK,CAAC,aAAa,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;QAChE,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC7B,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC,UAAA,IAAI,IAAI,OAAA,KAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAA,CAAC,CAAC,CAAC;KACzE;IAEO,2CAAa,GAArB,UAAsB,OAAqB;QACvC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;KACpC;;gBAlCgE,UAAU,uBAAtE,MAAM,SAAC,2BAA2B;;IAbvC;QAFC,KAAK,EAAE;QACP,cAAc,EAAE;sDACQ;IAIzB;QAFC,KAAK,EAAE;QACP,cAAc,EAAE;wDACU;IAG3B;QADC,MAAM,EAAE;4DAC+C;IAGxD;QADC,MAAM,EAAE;8DACiD;IAO1D;QADC,YAAY,CAAC,eAAe,CAAC;mDACf;IApBN,mBAAmB;QAL/B,SAAS,CAAC;YACP,QAAQ,EAAE,aAAa;YACvB,kwBAAsC;;SAEzC,CAAC;QAiBO,WAAA,MAAM,CAAC,2BAA2B,CAAC,CAAA;OAhB/B,mBAAmB,CAmD/B;IAAD,0BAAC;CAnDD;;;ICAA;KAAgC;IAAnB,gBAAgB;QAX5B,QAAQ,CAAC;YACN,OAAO,EAAE;gBACL,YAAY;gBACZ,cAAc;gBACd,YAAY;gBACZ,eAAe;gBACf,uBAAuB;aAC1B;YACD,YAAY,EAAE,CAAC,mBAAmB,CAAC;YACnC,OAAO,EAAE,CAAC,mBAAmB,CAAC;SACjC,CAAC;OACW,gBAAgB,CAAG;IAAD,uBAAC;CAAhC;;ACnBA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-addon-table-components-reorder.js","sources":["ng://@taiga-ui/addon-table/components/reorder/reorder.component.ts","ng://@taiga-ui/addon-table/components/reorder/reorder.module.ts","ng://@taiga-ui/addon-table/components/reorder/taiga-ui-addon-table-components-reorder.ts"],"sourcesContent":["import {CdkDragDrop, moveItemInArray} from '@angular/cdk/drag-drop';\nimport {\n Component,\n EventEmitter,\n HostListener,\n Inject,\n Input,\n Output,\n} from '@angular/core';\nimport {TUI_TABLE_SHOW_HIDE_MESSAGE} from '@taiga-ui/addon-table/tokens';\nimport {tuiDefaultProp} from '@taiga-ui/cdk';\nimport {Observable} from 'rxjs';\n\n// @bad TODO: a11y\n@Component({\n selector: `tui-reorder`,\n templateUrl: `./reorder.template.html`,\n styleUrls: [`./reorder.style.less`],\n})\nexport class TuiReorderComponent<T> {\n @Input()\n @tuiDefaultProp()\n items: readonly T[] = [];\n\n @Input()\n @tuiDefaultProp()\n enabled: readonly T[] = [];\n\n @Output()\n readonly itemsChange = new EventEmitter<readonly T[]>();\n\n @Output()\n readonly enabledChange = new EventEmitter<readonly T[]>();\n\n constructor(\n @Inject(TUI_TABLE_SHOW_HIDE_MESSAGE) readonly showHideText$: Observable<string>,\n ) {}\n\n @HostListener(`focusout.stop`)\n noop(): void {}\n\n isEnabled(item: T): boolean {\n return this.enabled.includes(item);\n }\n\n getIcon(item: T): string {\n return this.isEnabled(item) ? `tuiIconEyeOpen` : `tuiIconEyeClosed`;\n }\n\n toggle(toggled: T): void {\n const enabled = this.isEnabled(toggled)\n ? this.enabled.filter(item => item !== toggled)\n : this.enabled.concat(toggled);\n\n this.updateEnabled(enabled);\n }\n\n drop(event: CdkDragDrop<T>): void {\n const items = [...this.items];\n\n moveItemInArray(items, event.previousIndex, event.currentIndex);\n this.items = items;\n this.itemsChange.emit(items);\n this.updateEnabled(items.filter(item => this.enabled.includes(item)));\n }\n\n private updateEnabled(enabled: readonly T[]): void {\n this.enabled = enabled;\n this.enabledChange.emit(enabled);\n }\n}\n","import {DragDropModule} from '@angular/cdk/drag-drop';\nimport {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiPreventDefaultModule} from '@taiga-ui/cdk';\nimport {TuiButtonModule, TuiSvgModule} from '@taiga-ui/core';\n\nimport {TuiReorderComponent} from './reorder.component';\n\n@NgModule({\n imports: [\n CommonModule,\n DragDropModule,\n TuiSvgModule,\n TuiButtonModule,\n TuiPreventDefaultModule,\n ],\n declarations: [TuiReorderComponent],\n exports: [TuiReorderComponent],\n})\nexport class TuiReorderModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAaA;;IAqBI,6BACkD,aAAiC;QAAjC,kBAAa,GAAb,aAAa,CAAoB;QAbnF,UAAK,GAAiB,EAAE,CAAC;QAIzB,YAAO,GAAiB,EAAE,CAAC;QAGlB,gBAAW,GAAG,IAAI,YAAY,EAAgB,CAAC;QAG/C,kBAAa,GAAG,IAAI,YAAY,EAAgB,CAAC;KAItD;IAGJ,kCAAI,GAAJ,eAAe;IAEf,uCAAS,GAAT,UAAU,IAAO;QACb,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;KACtC;IAED,qCAAO,GAAP,UAAQ,IAAO;QACX,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,gBAAgB,GAAG,kBAAkB,CAAC;KACvE;IAED,oCAAM,GAAN,UAAO,OAAU;QACb,IAAM,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC;cACjC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,UAAA,IAAI,IAAI,OAAA,IAAI,KAAK,OAAO,GAAA,CAAC;cAC7C,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAEnC,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;KAC/B;IAED,kCAAI,GAAJ,UAAK,KAAqB;QAA1B,iBAOC;QANG,IAAM,KAAK,YAAO,IAAI,CAAC,KAAK,CAAC,CAAC;QAE9B,eAAe,CAAC,KAAK,EAAE,KAAK,CAAC,aAAa,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;QAChE,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC7B,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC,UAAA,IAAI,IAAI,OAAA,KAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAA,CAAC,CAAC,CAAC;KACzE;IAEO,2CAAa,GAArB,UAAsB,OAAqB;QACvC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;KACpC;;gBAlCgE,UAAU,uBAAtE,MAAM,SAAC,2BAA2B;;IAbvC;QAFC,KAAK,EAAE;QACP,cAAc,EAAE;sDACQ;IAIzB;QAFC,KAAK,EAAE;QACP,cAAc,EAAE;wDACU;IAG3B;QADC,MAAM,EAAE;4DAC+C;IAGxD;QADC,MAAM,EAAE;8DACiD;IAO1D;QADC,YAAY,CAAC,eAAe,CAAC;mDACf;IApBN,mBAAmB;QAL/B,SAAS,CAAC;YACP,QAAQ,EAAE,aAAa;YACvB,4wBAAsC;;SAEzC,CAAC;QAiBO,WAAA,MAAM,CAAC,2BAA2B,CAAC,CAAA;OAhB/B,mBAAmB,CAmD/B;IAAD,0BAAC;CAnDD;;;ICAA;KAAgC;IAAnB,gBAAgB;QAX5B,QAAQ,CAAC;YACN,OAAO,EAAE;gBACL,YAAY;gBACZ,cAAc;gBACd,YAAY;gBACZ,eAAe;gBACf,uBAAuB;aAC1B;YACD,YAAY,EAAE,CAAC,mBAAmB,CAAC;YACnC,OAAO,EAAE,CAAC,mBAAmB,CAAC;SACjC,CAAC;OACW,gBAAgB,CAAG;IAAD,uBAAC;CAAhC;;ACnBA;;;;;;"}
@@ -14,19 +14,19 @@ var TuiResizableColumnComponent = /** @class */ (function () {
14
14
  this.width = width;
15
15
  };
16
16
  __decorate([
17
- HostBinding('style.width.px')
17
+ HostBinding("style.width.px")
18
18
  ], TuiResizableColumnComponent.prototype, "width", void 0);
19
19
  TuiResizableColumnComponent = __decorate([
20
20
  Component({
21
- selector: 'th[tuiResizableColumn]',
22
- template: "<ng-content></ng-content>\n<div\n class=\"bar\"\n (tuiResizableColumn)=\"onResize($event)\"\n></div>\n",
21
+ selector: "th[tuiResizableColumn]",
22
+ template: "<ng-content></ng-content>\n<div\n class=\"t-bar\"\n (tuiResizableColumn)=\"onResize($event)\"\n></div>\n",
23
23
  providers: [
24
24
  {
25
25
  provide: TUI_ELEMENT_REF,
26
26
  useExisting: ElementRef,
27
27
  },
28
28
  ],
29
- styles: [":host{position:relative}:host:last-child .bar{display:none}.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}.bar:active,.bar:hover{opacity:1}"]
29
+ styles: [":host{position:relative}:host:last-child .t-bar{display:none}.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}"]
30
30
  })
31
31
  ], TuiResizableColumnComponent);
32
32
  return TuiResizableColumnComponent;
@@ -40,12 +40,12 @@ var TuiResizableColumnDirective = /** @class */ (function () {
40
40
  this.documentRef = documentRef;
41
41
  this.elementRef = elementRef;
42
42
  this.parentRef = parentRef;
43
- this.tuiResizableColumn = typedFromEvent(this.elementRef.nativeElement, 'mousedown').pipe(preventDefault(), switchMap(function () {
43
+ this.tuiResizableColumn = typedFromEvent(this.elementRef.nativeElement, "mousedown").pipe(preventDefault(), switchMap(function () {
44
44
  var _a = _this.parentRef.nativeElement.getBoundingClientRect(), width = _a.width, right = _a.right;
45
- return typedFromEvent(_this.documentRef, 'mousemove').pipe(distinctUntilChanged(), map(function (_a) {
45
+ return typedFromEvent(_this.documentRef, "mousemove").pipe(distinctUntilChanged(), map(function (_a) {
46
46
  var clientX = _a.clientX;
47
47
  return width + clientX - right;
48
- }), takeUntil(typedFromEvent(_this.documentRef, 'mouseup')));
48
+ }), takeUntil(typedFromEvent(_this.documentRef, "mouseup")));
49
49
  }));
50
50
  }
51
51
  TuiResizableColumnDirective.ctorParameters = function () { return [
@@ -58,7 +58,7 @@ var TuiResizableColumnDirective = /** @class */ (function () {
58
58
  ], TuiResizableColumnDirective.prototype, "tuiResizableColumn", void 0);
59
59
  TuiResizableColumnDirective = __decorate([
60
60
  Directive({
61
- selector: '[tuiResizableColumn]',
61
+ selector: "[tuiResizableColumn]",
62
62
  }),
63
63
  __param(0, Inject(DOCUMENT)),
64
64
  __param(1, Inject(ElementRef)),
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-addon-table-components-resizable-column.js","sources":["ng://@taiga-ui/addon-table/components/resizable-column/resizable-column.component.ts","ng://@taiga-ui/addon-table/components/resizable-column/resizable-column.directive.ts","ng://@taiga-ui/addon-table/components/resizable-column/resizable-column.module.ts","ng://@taiga-ui/addon-table/components/resizable-column/taiga-ui-addon-table-components-resizable-column.ts"],"sourcesContent":["import {Component, ElementRef, HostBinding} from '@angular/core';\nimport {TUI_ELEMENT_REF} from '@taiga-ui/core';\n\n/** @deprecated use `<th tuiTh [resizable]=\"true\">` from {@link TuiTableModule} */\n@Component({\n selector: 'th[tuiResizableColumn]',\n templateUrl: './resizable-column.template.html',\n styleUrls: ['./resizable-column.style.less'],\n providers: [\n {\n provide: TUI_ELEMENT_REF,\n useExisting: ElementRef,\n },\n ],\n})\nexport class TuiResizableColumnComponent {\n @HostBinding('style.width.px')\n width: number | null = null;\n\n onResize(width: number): void {\n this.width = width;\n }\n}\n","import {DOCUMENT} from '@angular/common';\nimport {Directive, ElementRef, Inject, Output} from '@angular/core';\nimport {preventDefault, typedFromEvent} from '@taiga-ui/cdk';\nimport {TUI_ELEMENT_REF} from '@taiga-ui/core';\nimport {distinctUntilChanged, map, switchMap, takeUntil} from 'rxjs/operators';\n\n/** @deprecated use `<th tuiTh [resizable]=\"true\">` from {@link TuiTableModule} */\n// @dynamic\n@Directive({\n selector: '[tuiResizableColumn]',\n})\nexport class TuiResizableColumnDirective {\n @Output()\n readonly tuiResizableColumn = typedFromEvent(\n this.elementRef.nativeElement,\n 'mousedown',\n ).pipe(\n preventDefault(),\n switchMap(() => {\n const {width, right} = this.parentRef.nativeElement.getBoundingClientRect();\n\n return typedFromEvent(this.documentRef, 'mousemove').pipe(\n distinctUntilChanged(),\n map(({clientX}) => width + clientX - right),\n takeUntil(typedFromEvent(this.documentRef, 'mouseup')),\n );\n }),\n );\n\n constructor(\n @Inject(DOCUMENT) private readonly documentRef: Document,\n @Inject(ElementRef)\n private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(TUI_ELEMENT_REF)\n private readonly parentRef: ElementRef<HTMLTableHeaderCellElement>,\n ) {}\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiResizableColumnComponent} from './resizable-column.component';\nimport {TuiResizableColumnDirective} from './resizable-column.directive';\n\n/** @deprecated use `<th tuiTh [resizable]=\"true\">` from {@link TuiTableModule} */\n@NgModule({\n declarations: [TuiResizableColumnComponent, TuiResizableColumnDirective],\n exports: [TuiResizableColumnComponent, TuiResizableColumnDirective],\n})\nexport class TuiResizableColumnModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAGA;;IAYA;QAEI,UAAK,GAAkB,IAAI,CAAC;KAK/B;IAHG,8CAAQ,GAAR,UAAS,KAAa;QAClB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;KACtB;IAJD;QADC,WAAW,CAAC,gBAAgB,CAAC;8DACF;IAFnB,2BAA2B;QAXvC,SAAS,CAAC;YACP,QAAQ,EAAE,wBAAwB;YAClC,wHAA+C;YAE/C,SAAS,EAAE;gBACP;oBACI,OAAO,EAAE,eAAe;oBACxB,W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2B,EAAE,2BAA2B,CAAC;YACxE,OAAO,EAAE,CAAC,2BAA2B,EAAE,2BAA2B,CAAC;SACtE,CAAC;OACW,wBAAwB,CAAG;IAAD,+BAAC;CAAxC;;ACVA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-addon-table-components-resizable-column.js","sources":["ng://@taiga-ui/addon-table/components/resizable-column/resizable-column.component.ts","ng://@taiga-ui/addon-table/components/resizable-column/resizable-column.directive.ts","ng://@taiga-ui/addon-table/components/resizable-column/resizable-column.module.ts","ng://@taiga-ui/addon-table/components/resizable-column/taiga-ui-addon-table-components-resizable-column.ts"],"sourcesContent":["import {Component, ElementRef, HostBinding} from '@angular/core';\nimport {TUI_ELEMENT_REF} from '@taiga-ui/core';\n\n/** @deprecated use `<th tuiTh [resizable]=\"true\">` from {@link TuiTableModule} */\n@Component({\n selector: `th[tuiResizableColumn]`,\n templateUrl: `./resizable-column.template.html`,\n styleUrls: [`./resizable-column.style.less`],\n providers: [\n {\n provide: TUI_ELEMENT_REF,\n useExisting: ElementRef,\n },\n ],\n})\nexport class TuiResizableColumnComponent {\n @HostBinding(`style.width.px`)\n width: number | null = null;\n\n onResize(width: number): void {\n this.width = width;\n }\n}\n","import {DOCUMENT} from '@angular/common';\nimport {Directive, ElementRef, Inject, Output} from '@angular/core';\nimport {preventDefault, typedFromEvent} from '@taiga-ui/cdk';\nimport {TUI_ELEMENT_REF} from '@taiga-ui/core';\nimport {distinctUntilChanged, map, switchMap, takeUntil} from 'rxjs/operators';\n\n/** @deprecated use `<th tuiTh [resizable]=\"true\">` from {@link TuiTableModule} */\n// @dynamic\n@Directive({\n selector: `[tuiResizableColumn]`,\n})\nexport class TuiResizableColumnDirective {\n @Output()\n readonly tuiResizableColumn = typedFromEvent(\n this.elementRef.nativeElement,\n `mousedown`,\n ).pipe(\n preventDefault(),\n switchMap(() => {\n const {width, right} = this.parentRef.nativeElement.getBoundingClientRect();\n\n return typedFromEvent(this.documentRef, `mousemove`).pipe(\n distinctUntilChanged(),\n map(({clientX}) => width + clientX - right),\n takeUntil(typedFromEvent(this.documentRef, `mouseup`)),\n );\n }),\n );\n\n constructor(\n @Inject(DOCUMENT) private readonly documentRef: Document,\n @Inject(ElementRef)\n private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(TUI_ELEMENT_REF)\n private readonly parentRef: ElementRef<HTMLTableHeaderCellElement>,\n ) {}\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiResizableColumnComponent} from './resizable-column.component';\nimport {TuiResizableColumnDirective} from './resizable-column.directive';\n\n/** @deprecated use `<th tuiTh [resizable]=\"true\">` from {@link TuiTableModule} */\n@NgModule({\n declarations: [TuiResizableColumnComponent, TuiResizableColumnDirective],\n exports: [TuiResizableColumnComponent, TuiResizableColumnDirective],\n})\nexport class TuiResizableColumnModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAGA;;IAYA;QAEI,UAAK,GAAkB,IAAI,CAAC;KAK/B;IAHG,8CAAQ,GAAR,UAAS,KAAa;QAClB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;KACtB;IAJD;QADC,WAAW,CAAC,gBAAgB,CAAC;8DACF;IAFnB,2BAA2B;QAXvC,SAAS,CAAC;YACP,QAAQ,EAAE,wBAAwB;YAClC,0HAA+C;YAE/C,SAAS,EAAE;gBACP;oBACI,OAAO,EAAE,eAAe;oBACxB,WAAW,EAAE,UAAU;iBAC1B;aACJ;;SACJ,CAAC;OACW,2BAA2B,CAOvC;IAAD,kCAAC;CAPD;;ACTA;AACA;;IAsBI,qCACuC,WAAqB,EAEvC,UAAmC,EAEnC,SAAiD;QALtE,iBAMI;QALmC,gBAAW,GAAX,WAAW,CAAU;QAEvC,eAAU,GAAV,UAAU,CAAyB;QAEnC,cAAS,GAAT,SAAS,CAAwC;QArB7D,uBAAkB,GAAG,cAAc,CACxC,IAAI,CAAC,UAAU,CAAC,aAAa,EAC7B,WAAW,CACd,CAAC,IAAI,CACF,cAAc,EAAE,EAChB,SAAS,CAAC;YACA,IAAA,0DAAqE,EAApE,gBAAK,EAAE,gBAA6D,CAAC;YAE5E,OAAO,cAAc,CAAC,KAAI,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC,IAAI,CACrD,oBAAoB,EAAE,EACtB,GAAG,CAAC,UAAC,EAAS;oBAAR,oBAAO;gBAAM,OAAA,KAAK,GAAG,OAAO,GAAG,KAAK;aAAA,CAAC,EAC3C,SAAS,CAAC,cAAc,CAAC,KAAI,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC,CACzD,CAAC;SACL,CAAC,CACL,CAAC;KAQE;;gBALgD,QAAQ,uBAAvD,MAAM,SAAC,QAAQ;gBAEa,UAAU,uBADtC,MAAM,SAAC,UAAU;gBAGU,UAAU,uBADrC,MAAM,SAAC,eAAe;;IApB3B;QADC,MAAM,EAAE;2EAeP;IAhBO,2BAA2B;QAHvC,SAAS,CAAC;YACP,QAAQ,EAAE,sBAAsB;SACnC,CAAC;QAoBO,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;QAChB,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;QAElB,WAAA,MAAM,CAAC,eAAe,CAAC,CAAA;OAtBnB,2BAA2B,CAyBvC;IAAD,kCAAC;CAzBD;;ACNA;;IAKA;KAAwC;IAA3B,wBAAwB;QAJpC,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,2BAA2B,EAAE,2BAA2B,CAAC;YACxE,OAAO,EAAE,CAAC,2BAA2B,EAAE,2BAA2B,CAAC;SACtE,CAAC;OACW,wBAAwB,CAAG;IAAD,+BAAC;CAAxC;;ACVA;;;;;;"}
@@ -14,7 +14,7 @@ function defaultSizeOptionContent(_a) {
14
14
  var TUI_TABLE_PAGINATION_DEFAULT_OPTIONS = {
15
15
  sizeOptionContent: defaultSizeOptionContent,
16
16
  };
17
- var TUI_TABLE_PAGINATION_OPTIONS = new InjectionToken('Default parameters for TablePagination component', { factory: function () { return TUI_TABLE_PAGINATION_DEFAULT_OPTIONS; } });
17
+ var TUI_TABLE_PAGINATION_OPTIONS = new InjectionToken("Default parameters for TablePagination component", { factory: function () { return TUI_TABLE_PAGINATION_DEFAULT_OPTIONS; } });
18
18
  function tuiTablePaginationOptionsProvider(options) {
19
19
  return {
20
20
  provide: TUI_TABLE_PAGINATION_OPTIONS,
@@ -116,7 +116,7 @@ var TuiTablePaginationComponent = /** @class */ (function () {
116
116
  ], TuiTablePaginationComponent.prototype, "sizeChange", void 0);
117
117
  TuiTablePaginationComponent = __decorate([
118
118
  Component({
119
- selector: 'tui-table-pagination',
119
+ selector: "tui-table-pagination",
120
120
  template: "<ng-container *ngIf=\"texts$ | async as texts\">\n <span class=\"t-pages\">\n {{ texts.pages }}\n <strong class=\"t-strong\">{{ pages }}</strong>\n </span>\n <span automation-id=\"tui-table-pagination__lines-per-page-wrapper\">\n {{ texts.linesPerPage }}\n <tui-hosted-dropdown\n [content]=\"content\"\n [(open)]=\"open\"\n >\n <button tuiLink>\n <strong>{{ start + 1 }}\u2013{{ end }}</strong>\n </button>\n <ng-template #content>\n <tui-data-list>\n <ng-container *ngFor=\"let item of items\">\n <button\n tuiOption\n size=\"s\"\n class=\"t-item\"\n (click)=\"onItem(item)\"\n >\n <span\n polymorpheus-outlet\n [content]=\"options.sizeOptionContent\"\n [context]=\"{$implicit: item, total: total}\"\n ></span>\n <tui-svg\n *ngIf=\"item === size; else fakeIcon\"\n src=\"tuiIconCheckLarge\"\n class=\"t-checkmark\"\n ></tui-svg>\n\n <ng-template #fakeIcon>\n <span class=\"t-checkmark\"></span>\n </ng-template>\n </button>\n </ng-container>\n </tui-data-list>\n </ng-template>\n </tui-hosted-dropdown>\n {{ texts.of }}\n <strong class=\"t-strong\">{{ total }}</strong>\n </span>\n <ng-container *ngIf=\"spinTexts$ | async as spinTexts\">\n <button\n tuiIconButton\n type=\"button\"\n size=\"xs\"\n appearance=\"icon\"\n icon=\"tuiIconChevronLeft\"\n class=\"t-back\"\n [disabled]=\"leftDisabled\"\n [title]=\"spinTexts[0]\"\n (click)=\"back()\"\n ></button>\n <button\n tuiIconButton\n type=\"button\"\n size=\"xs\"\n appearance=\"icon\"\n icon=\"tuiIconChevronRight\"\n [disabled]=\"rightDisabled\"\n [title]=\"spinTexts[1]\"\n (click)=\"forth()\"\n ></button>\n </ng-container>\n</ng-container>\n",
121
121
  styles: [":host{display:flex;font:var(--tui-font-text-s);align-items:center;color:var(--tui-text-03)}.t-strong{color:var(--tui-text-01)}.t-pages{margin-right:auto}.t-item{min-width:5.5rem;box-sizing:border-box}.t-checkmark{min-width:1.5rem;border-left:5px solid transparent}.t-back{margin:0 .25rem 0 1.5rem}"]
122
122
  }),
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-addon-table-components-table-pagination.js","sources":["ng://@taiga-ui/addon-table/components/table-pagination/table-pagination-options.ts","ng://@taiga-ui/addon-table/components/table-pagination/table-pagination.component.ts","ng://@taiga-ui/addon-table/components/table-pagination/table-pagination.module.ts","ng://@taiga-ui/addon-table/components/table-pagination/taiga-ui-addon-table-components-table-pagination.ts"],"sourcesContent":["import {InjectionToken, ValueProvider} from '@angular/core';\nimport {TuiContextWithImplicit} from '@taiga-ui/cdk';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nexport interface TuiTablePaginationOptions {\n readonly sizeOptionContent: PolymorpheusContent<\n TuiContextWithImplicit<number> & {total: number}\n >;\n}\n\nfunction defaultSizeOptionContent({$implicit}: TuiContextWithImplicit<number>): string {\n return `${$implicit}`;\n}\n\nexport const TUI_TABLE_PAGINATION_DEFAULT_OPTIONS: TuiTablePaginationOptions = {\n sizeOptionContent: defaultSizeOptionContent,\n};\n\nexport const TUI_TABLE_PAGINATION_OPTIONS = new InjectionToken(\n 'Default parameters for TablePagination component',\n {factory: () => TUI_TABLE_PAGINATION_DEFAULT_OPTIONS},\n);\n\nexport function tuiTablePaginationOptionsProvider(\n options: Partial<TuiTablePaginationOptions>,\n): ValueProvider {\n return {\n provide: TUI_TABLE_PAGINATION_OPTIONS,\n useValue: {...TUI_TABLE_PAGINATION_DEFAULT_OPTIONS, ...options},\n };\n}\n","import {Component, EventEmitter, Inject, Input, Output} from '@angular/core';\nimport {TUI_TABLE_PAGINATION_TEXTS} from '@taiga-ui/addon-table/tokens';\nimport {tuiDefaultProp} from '@taiga-ui/cdk';\nimport {TUI_SPIN_TEXTS} from '@taiga-ui/core';\nimport {Observable} from 'rxjs';\n\nimport {\n TUI_TABLE_PAGINATION_OPTIONS,\n TuiTablePaginationOptions,\n} from './table-pagination-options';\n\n// @dynamic\n@Component({\n selector: 'tui-table-pagination',\n templateUrl: './table-pagination.template.html',\n styleUrls: ['./table-pagination.style.less'],\n})\nexport class TuiTablePaginationComponent {\n @Input()\n @tuiDefaultProp()\n items: readonly number[] = [10, 20, 50, 100];\n\n @Input()\n @tuiDefaultProp()\n total = 0;\n\n @Input()\n @tuiDefaultProp()\n page = 0;\n\n @Input()\n @tuiDefaultProp()\n size = this.items[0];\n\n @Output()\n readonly pageChange = new EventEmitter<number>();\n\n @Output()\n readonly sizeChange = new EventEmitter<number>();\n\n open = false;\n\n constructor(\n @Inject(TUI_SPIN_TEXTS) readonly spinTexts$: Observable<[string, string]>,\n @Inject(TUI_TABLE_PAGINATION_TEXTS)\n readonly texts$: Observable<Record<'pages' | 'linesPerPage' | 'of', string>>,\n @Inject(TUI_TABLE_PAGINATION_OPTIONS) readonly options: TuiTablePaginationOptions,\n ) {}\n\n get pages(): number {\n return Math.ceil(this.total / this.size);\n }\n\n get start(): number {\n return this.page * this.size;\n }\n\n get end(): number {\n return Math.min(this.start + this.size, this.total);\n }\n\n get leftDisabled(): boolean {\n return !this.start;\n }\n\n get rightDisabled(): boolean {\n return this.end === this.total;\n }\n\n onItem(size: number): void {\n const {start} = this;\n\n this.size = size;\n this.sizeChange.emit(size);\n this.open = false;\n this.page = Math.floor(start / this.size);\n this.pageChange.emit(this.page);\n }\n\n back(): void {\n this.page--;\n this.pageChange.emit(this.page);\n }\n\n forth(): void {\n this.page++;\n this.pageChange.emit(this.page);\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {\n TuiButtonModule,\n TuiDataListModule,\n TuiHostedDropdownModule,\n TuiLinkModule,\n TuiSvgModule,\n} from '@taiga-ui/core';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiTablePaginationComponent} from './table-pagination.component';\n\n@NgModule({\n imports: [\n CommonModule,\n TuiButtonModule,\n TuiLinkModule,\n TuiHostedDropdownModule,\n TuiDataListModule,\n TuiSvgModule,\n PolymorpheusModule,\n ],\n declarations: [TuiTablePaginationComponent],\n exports: [TuiTablePaginationComponent],\n})\nexport class TuiTablePaginationModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAUA,SAAS,wBAAwB,CAAC,EAA2C;QAA1C,wBAAS;IACxC,OAAO,KAAG,SAAW,CAAC;AAC1B,CAAC;IAEY,oCAAoC,GAA8B;IAC3E,iBAAiB,EAAE,wBAAwB;EAC7C;IAEW,4BAA4B,GAAG,IAAI,cAAc,CAC1D,kDAAkD,EAClD,EAAC,OAAO,EAAE,cAAM,OAAA,oCAAoC,GAAA,EAAC,EACvD;SAEc,iCAAiC,CAC7C,OAA2C;IAE3C,OAAO;QACH,OAAO,EAAE,4BAA4B;QACrC,QAAQ,wBAAM,oCAAoC,GAAK,OAAO,CAAC;KAClE,CAAC;AACN;;ACnBA;;IA+BI,qCACqC,UAAwC,EAEhE,MAAmE,EAC7B,OAAkC;QAHhD,eAAU,GAAV,UAAU,CAA8B;QAEhE,WAAM,GAAN,MAAM,CAA6D;QAC7B,YAAO,GAAP,OAAO,CAA2B;QA1BrF,UAAK,GAAsB,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,CAAC;QAI7C,UAAK,GAAG,CAAC,CAAC;QAIV,SAAI,GAAG,CAAC,CAAC;QAIT,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,CAAC,CAAC;KACnC;IAED,2CAAK,GAAL;QACI,IAAI,CAAC,IAAI,EAAE,CAAC;QACZ,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KACnC;;gBA5CgD,UAAU,uBAAtD,MAAM,SAAC,cAAc;gBAEL,UAAU,uBAD1B,MAAM,SAAC,0BAA0B;gDAEjC,MAAM,SAAC,4BAA4B;;IA1BxC;QAFC,KAAK,EAAE;QACP,cAAc,EAAE;8DAC4B;IAI7C;QAFC,KAAK,EAAE;QACP,cAAc,EAAE;8DACP;IAIV;QAFC,KAAK,EAAE;QACP,cAAc,EAAE;6DACR;IAIT;QAFC,KAAK,EAAE;QACP,cAAc,EAAE;6DACI;IAGrB;QADC,MAAM,EAAE;mEACwC;IAGjD;QADC,MAAM,EAAE;mEACwC;IArBxC,2BAA2B;QALvC,SAAS,CAAC;YACP,QAAQ,EAAE,sBAAsB;YAChC,8iFAA+C;;SAElD,CAAC;QA2BO,WAAA,MAAM,CAAC,cAAc,CAAC,CAAA;QACtB,WAAA,MAAM,CAAC,0BAA0B,CAAC,CAAA;QAElC,WAAA,MAAM,CAAC,4BAA4B,CAAC,CAAA;OA7BhC,2BAA2B,CAuEvC;IAAD,kCAAC;CAvED;;;ICSA;KAAwC;IAA3B,wBAAwB;QAbpC,QAAQ,CAAC;YACN,OAAO,EAAE;gBACL,YAAY;gBACZ,eAAe;gBACf,aAAa;gBACb,uBAAuB;gBACvB,iBAAiB;gBACjB,YAAY;gBACZ,kBAAkB;aACrB;YACD,YAAY,EAAE,CAAC,2BAA2B,CAAC;YAC3C,OAAO,EAAE,CAAC,2BAA2B,CAAC;SACzC,CAAC;OACW,wBAAwB,CAAG;IAAD,+BAAC;CAAxC;;AC1BA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-addon-table-components-table-pagination.js","sources":["ng://@taiga-ui/addon-table/components/table-pagination/table-pagination-options.ts","ng://@taiga-ui/addon-table/components/table-pagination/table-pagination.component.ts","ng://@taiga-ui/addon-table/components/table-pagination/table-pagination.module.ts","ng://@taiga-ui/addon-table/components/table-pagination/taiga-ui-addon-table-components-table-pagination.ts"],"sourcesContent":["import {InjectionToken, ValueProvider} from '@angular/core';\nimport {TuiContextWithImplicit} from '@taiga-ui/cdk';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nexport interface TuiTablePaginationOptions {\n readonly sizeOptionContent: PolymorpheusContent<\n TuiContextWithImplicit<number> & {total: number}\n >;\n}\n\nfunction defaultSizeOptionContent({$implicit}: TuiContextWithImplicit<number>): string {\n return `${$implicit}`;\n}\n\nexport const TUI_TABLE_PAGINATION_DEFAULT_OPTIONS: TuiTablePaginationOptions = {\n sizeOptionContent: defaultSizeOptionContent,\n};\n\nexport const TUI_TABLE_PAGINATION_OPTIONS = new InjectionToken(\n `Default parameters for TablePagination component`,\n {factory: () => TUI_TABLE_PAGINATION_DEFAULT_OPTIONS},\n);\n\nexport function tuiTablePaginationOptionsProvider(\n options: Partial<TuiTablePaginationOptions>,\n): ValueProvider {\n return {\n provide: TUI_TABLE_PAGINATION_OPTIONS,\n useValue: {...TUI_TABLE_PAGINATION_DEFAULT_OPTIONS, ...options},\n };\n}\n","import {Component, EventEmitter, Inject, Input, Output} from '@angular/core';\nimport {TUI_TABLE_PAGINATION_TEXTS} from '@taiga-ui/addon-table/tokens';\nimport {tuiDefaultProp} from '@taiga-ui/cdk';\nimport {TUI_SPIN_TEXTS} from '@taiga-ui/core';\nimport {Observable} from 'rxjs';\n\nimport {\n TUI_TABLE_PAGINATION_OPTIONS,\n TuiTablePaginationOptions,\n} from './table-pagination-options';\n\n// @dynamic\n@Component({\n selector: `tui-table-pagination`,\n templateUrl: `./table-pagination.template.html`,\n styleUrls: [`./table-pagination.style.less`],\n})\nexport class TuiTablePaginationComponent {\n @Input()\n @tuiDefaultProp()\n items: readonly number[] = [10, 20, 50, 100];\n\n @Input()\n @tuiDefaultProp()\n total = 0;\n\n @Input()\n @tuiDefaultProp()\n page = 0;\n\n @Input()\n @tuiDefaultProp()\n size = this.items[0];\n\n @Output()\n readonly pageChange = new EventEmitter<number>();\n\n @Output()\n readonly sizeChange = new EventEmitter<number>();\n\n open = false;\n\n constructor(\n @Inject(TUI_SPIN_TEXTS) readonly spinTexts$: Observable<[string, string]>,\n @Inject(TUI_TABLE_PAGINATION_TEXTS)\n readonly texts$: Observable<Record<'pages' | 'linesPerPage' | 'of', string>>,\n @Inject(TUI_TABLE_PAGINATION_OPTIONS) readonly options: TuiTablePaginationOptions,\n ) {}\n\n get pages(): number {\n return Math.ceil(this.total / this.size);\n }\n\n get start(): number {\n return this.page * this.size;\n }\n\n get end(): number {\n return Math.min(this.start + this.size, this.total);\n }\n\n get leftDisabled(): boolean {\n return !this.start;\n }\n\n get rightDisabled(): boolean {\n return this.end === this.total;\n }\n\n onItem(size: number): void {\n const {start} = this;\n\n this.size = size;\n this.sizeChange.emit(size);\n this.open = false;\n this.page = Math.floor(start / this.size);\n this.pageChange.emit(this.page);\n }\n\n back(): void {\n this.page--;\n this.pageChange.emit(this.page);\n }\n\n forth(): void {\n this.page++;\n this.pageChange.emit(this.page);\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {\n TuiButtonModule,\n TuiDataListModule,\n TuiHostedDropdownModule,\n TuiLinkModule,\n TuiSvgModule,\n} from '@taiga-ui/core';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiTablePaginationComponent} from './table-pagination.component';\n\n@NgModule({\n imports: [\n CommonModule,\n TuiButtonModule,\n TuiLinkModule,\n TuiHostedDropdownModule,\n TuiDataListModule,\n TuiSvgModule,\n PolymorpheusModule,\n ],\n declarations: [TuiTablePaginationComponent],\n exports: [TuiTablePaginationComponent],\n})\nexport class TuiTablePaginationModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAUA,SAAS,wBAAwB,CAAC,EAA2C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,EAAE,sBAAsB;YAChC,8iFAA+C;;SAElD,CAAC;QA2BO,WAAA,MAAM,CAAC,cAAc,CAAC,CAAA;QACtB,WAAA,MAAM,CAAC,0BAA0B,CAAC,CAAA;QAElC,WAAA,MAAM,CAAC,4BAA4B,CAAC,CAAA;OA7BhC,2BAA2B,CAuEvC;IAAD,kCAAC;CAvED;;;ICSA;KAAwC;IAA3B,wBAAwB;QAbpC,QAAQ,CAAC;YACN,OAAO,EAAE;gBACL,YAAY;gBACZ,eAAe;gBACf,aAAa;gBACb,uBAAuB;gBACvB,iBAAiB;gBACjB,YAAY;gBACZ,kBAAkB;aACrB;YACD,YAAY,EAAE,CAAC,2BAA2B,CAAC;YAC3C,OAAO,EAAE,CAAC,2BAA2B,CAAC;SACzC,CAAC;OACW,wBAAwB,CAAG;IAAD,+BAAC;CAAxC;;AC1BA;;;;;;"}
@@ -14,7 +14,7 @@ import { NgControl } from '@angular/forms';
14
14
  var TuiCellDirective = /** @class */ (function () {
15
15
  function TuiCellDirective(template) {
16
16
  this.template = template;
17
- this.tuiCell = '';
17
+ this.tuiCell = "";
18
18
  }
19
19
  TuiCellDirective.ctorParameters = function () { return [
20
20
  { type: TemplateRef, decorators: [{ type: Inject, args: [TemplateRef,] }] }
@@ -25,7 +25,7 @@ var TuiCellDirective = /** @class */ (function () {
25
25
  ], TuiCellDirective.prototype, "tuiCell", void 0);
26
26
  TuiCellDirective = __decorate([
27
27
  Directive({
28
- selector: '[tuiCell]',
28
+ selector: "[tuiCell]",
29
29
  }),
30
30
  __param(0, Inject(TemplateRef))
31
31
  ], TuiCellDirective);
@@ -44,7 +44,7 @@ var TuiHeadDirective = /** @class */ (function () {
44
44
  ], TuiHeadDirective.prototype, "tuiHead", void 0);
45
45
  TuiHeadDirective = __decorate([
46
46
  Directive({
47
- selector: '[tuiHead]',
47
+ selector: "[tuiHead]",
48
48
  }),
49
49
  __param(0, Inject(TemplateRef))
50
50
  ], TuiHeadDirective);
@@ -58,12 +58,12 @@ var TuiResizedDirective = /** @class */ (function () {
58
58
  this.documentRef = documentRef;
59
59
  this.elementRef = elementRef;
60
60
  this.parentRef = parentRef;
61
- this.tuiResized = typedFromEvent(this.elementRef.nativeElement, 'mousedown').pipe(preventDefault(), switchMap(function () {
61
+ this.tuiResized = typedFromEvent(this.elementRef.nativeElement, "mousedown").pipe(preventDefault(), switchMap(function () {
62
62
  var _a = _this.parentRef.nativeElement.getBoundingClientRect(), width = _a.width, right = _a.right;
63
- return typedFromEvent(_this.documentRef, 'mousemove').pipe(distinctUntilChanged(), map(function (_a) {
63
+ return typedFromEvent(_this.documentRef, "mousemove").pipe(distinctUntilChanged(), map(function (_a) {
64
64
  var clientX = _a.clientX;
65
65
  return width + clientX - right;
66
- }), takeUntil(typedFromEvent(_this.documentRef, 'mouseup')));
66
+ }), takeUntil(typedFromEvent(_this.documentRef, "mouseup")));
67
67
  }));
68
68
  }
69
69
  TuiResizedDirective.ctorParameters = function () { return [
@@ -76,7 +76,7 @@ var TuiResizedDirective = /** @class */ (function () {
76
76
  ], TuiResizedDirective.prototype, "tuiResized", void 0);
77
77
  TuiResizedDirective = __decorate([
78
78
  Directive({
79
- selector: '[tuiResized]',
79
+ selector: "[tuiResized]",
80
80
  }),
81
81
  __param(0, Inject(DOCUMENT)),
82
82
  __param(1, Inject(ElementRef)),
@@ -102,7 +102,7 @@ var TuiRowDirective = /** @class */ (function () {
102
102
  ], TuiRowDirective.prototype, "tuiRowOf", void 0);
103
103
  TuiRowDirective = __decorate([
104
104
  Directive({
105
- selector: 'ng-template[tuiRow]',
105
+ selector: "ng-template[tuiRow]",
106
106
  }),
107
107
  __param(0, Inject(TemplateRef))
108
108
  ], TuiRowDirective);
@@ -116,10 +116,10 @@ function stuckFactory(_a, entries$) {
116
116
  var _b = __read(_a, 1), intersectionRatio = _b[0].intersectionRatio;
117
117
  return intersectionRatio < 1;
118
118
  }));
119
- nativeElement['$.class._stuck'] = stream$;
119
+ nativeElement["$.class._stuck"] = stream$;
120
120
  return stream$;
121
121
  }
122
- var TUI_STUCK = new InjectionToken('Stream of sticky stuck events');
122
+ var TUI_STUCK = new InjectionToken("Stream of sticky stuck events");
123
123
  var TUI_STUCK_PROVIDER = {
124
124
  provide: TUI_STUCK,
125
125
  deps: [ElementRef, IntersectionObserverService],
@@ -138,7 +138,7 @@ function inputCountOptionsFactory(options) {
138
138
  var TUI_TABLE_PROVIDERS = [
139
139
  {
140
140
  provide: INTERSECTION_ROOT_MARGIN,
141
- useValue: '10000px 10000px 10000px 0px',
141
+ useValue: "10000px 10000px 10000px 0px",
142
142
  },
143
143
  {
144
144
  provide: INTERSECTION_THRESHOLD,
@@ -147,7 +147,7 @@ var TUI_TABLE_PROVIDERS = [
147
147
  {
148
148
  provide: TUI_TEXTFIELD_APPEARANCE,
149
149
  // TODO: 3.0 remove in ivy compilation
150
- useValue: 'table',
150
+ useValue: "table",
151
151
  },
152
152
  {
153
153
  provide: TUI_TEXTFIELD_LABEL_OUTSIDE,
@@ -176,7 +176,7 @@ var TuiTableDirective = /** @class */ (function (_super) {
176
176
  _this.stuck$ = stuck$;
177
177
  _this.changeDetectorRef = changeDetectorRef;
178
178
  _this.columns = [];
179
- _this.size = 'm';
179
+ _this.size = "m";
180
180
  _this.direction = 1;
181
181
  _this.directionChange = new EventEmitter();
182
182
  _this.sorterChange = new EventEmitter();
@@ -211,7 +211,7 @@ var TuiTableDirective = /** @class */ (function (_super) {
211
211
  ], TuiTableDirective.prototype, "columns", void 0);
212
212
  __decorate([
213
213
  Input(),
214
- HostBinding('attr.data-size'),
214
+ HostBinding("attr.data-size"),
215
215
  tuiDefaultProp()
216
216
  ], TuiTableDirective.prototype, "size", void 0);
217
217
  __decorate([
@@ -230,12 +230,12 @@ var TuiTableDirective = /** @class */ (function (_super) {
230
230
  ], TuiTableDirective.prototype, "sorter", void 0);
231
231
  TuiTableDirective = __decorate([
232
232
  Directive({
233
- selector: 'table[tuiTable]',
233
+ selector: "table[tuiTable]",
234
234
  providers: TUI_TABLE_PROVIDERS,
235
235
  host: {
236
- '($.data-mode.attr)': 'mode$',
237
- '($.class._stuck)': 'stuck$',
238
- style: 'border-collapse: separate',
236
+ '($.data-mode.attr)': "mode$",
237
+ '($.class._stuck)': "stuck$",
238
+ style: "border-collapse: separate",
239
239
  },
240
240
  }),
241
241
  __param(0, Inject(IntersectionObserverService)),
@@ -277,7 +277,7 @@ var TuiThComponent = /** @class */ (function () {
277
277
  });
278
278
  Object.defineProperty(TuiThComponent.prototype, "icon", {
279
279
  get: function () {
280
- return this.isCurrent ? 'tuiIconSortDown' : 'tuiIconSortOff';
280
+ return this.isCurrent ? "tuiIconSortDown" : "tuiIconSortOff";
281
281
  },
282
282
  enumerable: true,
283
283
  configurable: true
@@ -299,15 +299,15 @@ var TuiThComponent = /** @class */ (function () {
299
299
  ], TuiThComponent.prototype, "resizable", void 0);
300
300
  __decorate([
301
301
  Input(),
302
- HostBinding('class._sticky'),
302
+ HostBinding("class._sticky"),
303
303
  tuiDefaultProp()
304
304
  ], TuiThComponent.prototype, "sticky", void 0);
305
305
  __decorate([
306
- HostBinding('style.width.px')
306
+ HostBinding("style.width.px")
307
307
  ], TuiThComponent.prototype, "width", void 0);
308
308
  TuiThComponent = __decorate([
309
309
  Component({
310
- selector: 'th[tuiTh]',
310
+ selector: "th[tuiTh]",
311
311
  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",
312
312
  changeDetection: ChangeDetectionStrategy.OnPush,
313
313
  providers: [
@@ -363,7 +363,7 @@ var TuiSortableDirective = /** @class */ (function () {
363
363
  ]; };
364
364
  TuiSortableDirective = __decorate([
365
365
  Directive({
366
- selector: 'th[tuiTh][tuiSortable]',
366
+ selector: "th[tuiTh][tuiSortable]",
367
367
  }),
368
368
  __param(0, Inject(forwardRef(function () { return TuiSortByDirective; }))),
369
369
  __param(1, Inject(TuiTableDirective)),
@@ -399,7 +399,7 @@ var TuiSortByDirective = /** @class */ (function () {
399
399
  ], TuiSortByDirective.prototype, "tuiSortByChange", void 0);
400
400
  TuiSortByDirective = __decorate([
401
401
  Directive({
402
- selector: 'table[tuiTable][tuiSortBy]',
402
+ selector: "table[tuiTable][tuiSortBy]",
403
403
  }),
404
404
  __param(0, Inject(TuiTableDirective))
405
405
  ], TuiSortByDirective);
@@ -415,17 +415,17 @@ var TuiTheadDirective = /** @class */ (function () {
415
415
  ]; };
416
416
  TuiTheadDirective = __decorate([
417
417
  Directive({
418
- selector: 'thead[tuiThead]',
418
+ selector: "thead[tuiThead]",
419
419
  providers: [
420
420
  TUI_STUCK_PROVIDER,
421
421
  IntersectionObserverService,
422
422
  {
423
423
  provide: INTERSECTION_ROOT_MARGIN,
424
- useValue: '0px 10000px 10000px 10000px',
424
+ useValue: "0px 10000px 10000px 10000px",
425
425
  },
426
426
  ],
427
427
  host: {
428
- '($.class._stuck)': 'stuck$',
428
+ '($.class._stuck)': "stuck$",
429
429
  },
430
430
  }),
431
431
  __param(0, Inject(TUI_STUCK))
@@ -451,7 +451,7 @@ var TuiTableSortPipe = /** @class */ (function () {
451
451
  ], TuiTableSortPipe.prototype, "sort", null);
452
452
  TuiTableSortPipe = __decorate([
453
453
  Pipe({
454
- name: 'tuiTableSort',
454
+ name: "tuiTableSort",
455
455
  pure: false,
456
456
  }),
457
457
  __param(0, Inject(TuiTableDirective))
@@ -496,7 +496,7 @@ var TuiTrComponent = /** @class */ (function () {
496
496
  ], TuiTrComponent.prototype, "cells", void 0);
497
497
  TuiTrComponent = __decorate([
498
498
  Component({
499
- selector: 'tr[tuiTr]',
499
+ selector: "tr[tuiTr]",
500
500
  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",
501
501
  changeDetection: ChangeDetectionStrategy.OnPush,
502
502
  providers: [TUI_TABLE_PROVIDER]
@@ -512,7 +512,7 @@ var TuiTbodyComponent = /** @class */ (function () {
512
512
  this.pipe = pipe;
513
513
  this.table = table;
514
514
  this.data = [];
515
- this.heading = '';
515
+ this.heading = "";
516
516
  this.open = true;
517
517
  this.openChange = new EventEmitter();
518
518
  this.rows = EMPTY_QUERY;
@@ -556,11 +556,11 @@ var TuiTbodyComponent = /** @class */ (function () {
556
556
  ], TuiTbodyComponent.prototype, "rows", void 0);
557
557
  TuiTbodyComponent = __decorate([
558
558
  Component({
559
- selector: 'tbody[tuiTbody]',
560
- 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",
559
+ selector: "tbody[tuiTbody]",
560
+ template: "<ng-content></ng-content>\n<tr *ngIf=\"heading\">\n <th\n class=\"t-heading\"\n [colSpan]=\"table.columns.length\"\n >\n <button\n type=\"button\"\n class=\"t-expand\"\n (click)=\"onClick()\"\n >\n <span\n polymorpheus-outlet\n class=\"t-name\"\n [content]=\"heading\"\n ></span>\n <tui-svg\n src=\"tuiIconChevronDownLarge\"\n class=\"t-chevron\"\n [class.t-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",
561
561
  changeDetection: ChangeDetectionStrategy.OnPush,
562
562
  providers: TUI_TABLE_PROVIDER,
563
- 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)}"]
563
+ styles: [":host{border-color:var(--tui-base-04)}:host tr{border-color:inherit}.t-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}.t-expand:focus-visible .t-name{background:var(--tui-selection)}.t-expand:after,.t-expand:before{content:'';position:-webkit-sticky;position:sticky;height:100%;border-left:1px solid;border-color:inherit}.t-expand:before{left:0}.t-expand:after{right:0}.t-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']) .t-heading{font:var(--tui-font-text-m);height:var(--tui-height-l)}.t-name{position:-webkit-sticky;position:sticky;left:.75rem;display:inline-block}:host-context(table[data-size='l']) .t-name{left:1rem}.t-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}.t-chevron_rotated{transform:rotate(180deg)}"]
564
564
  }),
565
565
  __param(0, Inject(TuiTableSortPipe)),
566
566
  __param(1, Inject(forwardRef(function () { return TuiTableDirective; })))
@@ -572,13 +572,13 @@ var TuiTdComponent = /** @class */ (function () {
572
572
  function TuiTdComponent() {
573
573
  }
574
574
  __decorate([
575
- HostBinding('class._editable'),
575
+ HostBinding("class._editable"),
576
576
  ContentChild(NgControl)
577
577
  ], TuiTdComponent.prototype, "control", void 0);
578
578
  TuiTdComponent = __decorate([
579
579
  Component({
580
- selector: 'th[tuiTd], td[tuiTd]',
581
- template: '<ng-content></ng-content>',
580
+ selector: "th[tuiTd], td[tuiTd]",
581
+ template: "\n <ng-content></ng-content>\n ",
582
582
  changeDetection: ChangeDetectionStrategy.OnPush,
583
583
  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}"]
584
584
  })
@@ -609,7 +609,7 @@ var TuiThGroupComponent = /** @class */ (function () {
609
609
  ], TuiThGroupComponent.prototype, "heads", void 0);
610
610
  TuiThGroupComponent = __decorate([
611
611
  Component({
612
- selector: 'tr[tuiThGroup]',
612
+ selector: "tr[tuiThGroup]",
613
613
  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",
614
614
  changeDetection: ChangeDetectionStrategy.OnPush,
615
615
  providers: [TUI_TABLE_PROVIDER]