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