@taiga-ui/addon-table 2.54.0 → 3.0.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/taiga-ui-addon-table-components-reorder.umd.js +423 -298
- 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 -313
- package/bundles/taiga-ui-addon-table-components-table-pagination.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-table-components-table.umd.js +859 -646
- 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 +559 -0
- package/bundles/taiga-ui-addon-table-directives-table-filters.umd.js.map +1 -0
- package/bundles/taiga-ui-addon-table-directives.umd.js +21 -0
- package/bundles/taiga-ui-addon-table-directives.umd.js.map +1 -0
- 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 +10 -6
- 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 +8 -4
- package/bundles/taiga-ui-addon-table-utils.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-table.umd.js +23 -17
- 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/table.provider.d.ts +0 -2
- package/components/table/providers/table.providers.d.ts +0 -4
- 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/index.d.ts +1 -0
- package/directives/package.json +10 -0
- package/directives/table-filters/abstract-table-filter.d.ts +3 -0
- package/directives/table-filters/generic-filter.directive.d.ts +8 -0
- package/directives/table-filters/index.d.ts +7 -0
- package/directives/table-filters/package.json +10 -0
- package/directives/table-filters/table-filter.d.ts +5 -0
- package/directives/table-filters/table-filter.directive.d.ts +21 -0
- package/directives/table-filters/table-filters.directive.d.ts +14 -0
- package/directives/table-filters/table-filters.module.d.ts +10 -0
- package/directives/table-filters/table-filters.pipe.d.ts +11 -0
- package/directives/table-filters/taiga-ui-addon-table-directives-table-filters.d.ts +5 -0
- package/{components/resizable-column/taiga-ui-addon-table-components-resizable-column.d.ts → 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 +35 -29
- 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 +19 -16
- package/esm2015/components/table/directives/head.directive.js +17 -17
- package/esm2015/components/table/directives/resized.directive.js +25 -23
- 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 +49 -40
- 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 +3 -3
- package/esm2015/components/table/providers/table.provider.js +3 -5
- package/esm2015/components/table/providers/table.providers.js +7 -11
- 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 +44 -33
- package/esm2015/components/table/td/td.component.js +25 -17
- package/esm2015/components/table/th/th.component.js +55 -35
- 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 +2 -2
- package/esm2015/components/table-pagination/table-pagination.component.js +40 -31
- 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 +2 -0
- package/esm2015/directives/table-filters/abstract-table-filter.js +3 -0
- package/esm2015/directives/table-filters/generic-filter.directive.js +35 -0
- package/esm2015/directives/table-filters/index.js +8 -0
- package/esm2015/directives/table-filters/table-filter.directive.js +61 -0
- package/esm2015/directives/table-filters/table-filter.js +2 -0
- package/esm2015/directives/table-filters/table-filters.directive.js +36 -0
- package/esm2015/directives/table-filters/table-filters.module.js +35 -0
- package/esm2015/directives/table-filters/table-filters.pipe.js +24 -0
- package/esm2015/directives/table-filters/taiga-ui-addon-table-directives-table-filters.js +5 -0
- package/esm2015/directives/taiga-ui-addon-table-directives.js +5 -0
- package/esm2015/index.js +3 -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 +5 -5
- 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 +3 -3
- 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 +60 -39
- package/fesm2015/taiga-ui-addon-table-components-reorder.js.map +1 -1
- package/fesm2015/taiga-ui-addon-table-components-table-pagination.js +69 -41
- package/fesm2015/taiga-ui-addon-table-components-table-pagination.js.map +1 -1
- package/fesm2015/taiga-ui-addon-table-components-table.js +435 -337
- 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 +180 -0
- package/fesm2015/taiga-ui-addon-table-directives-table-filters.js.map +1 -0
- package/fesm2015/taiga-ui-addon-table-directives.js +6 -0
- package/fesm2015/taiga-ui-addon-table-directives.js.map +1 -0
- package/fesm2015/taiga-ui-addon-table-interfaces.js.map +1 -1
- package/fesm2015/taiga-ui-addon-table-tokens.js +4 -4
- 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 +2 -2
- package/fesm2015/taiga-ui-addon-table-utils.js.map +1 -1
- package/fesm2015/taiga-ui-addon-table.js +2 -0
- package/fesm2015/taiga-ui-addon-table.js.map +1 -1
- package/index.d.ts +1 -0
- 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/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-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.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/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/index.js +0 -4
- 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-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 -8
- 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,358 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@taiga-ui/addon-table/tokens'), require('@taiga-ui/cdk'), require('@taiga-ui/core'), require('
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@taiga-ui/addon-table/components/table-pagination', ['exports', '@angular/core', '@taiga-ui/addon-table/tokens', '@taiga-ui/cdk', '@taiga-ui/core', '
|
|
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/addon-table/tokens'), require('@taiga-ui/cdk'), require('@taiga-ui/core'), require('@angular/common'), require('@tinkoff/ng-polymorpheus'), require('rxjs')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@taiga-ui/addon-table/components/table-pagination', ['exports', '@angular/core', '@taiga-ui/addon-table/tokens', '@taiga-ui/cdk', '@taiga-ui/core', '@angular/common', '@tinkoff/ng-polymorpheus', 'rxjs'], 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-pagination"] = {}), global.ng.core, global["taiga-ui"]["addon-table"].tokens, global.cdk, global.i1, global.ng.common, global.i3, global.rxjs));
|
|
5
|
+
})(this, (function (exports, i0, tokens, cdk, i1, i2, i3, i4) { '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
|
-
|
|
87
|
-
|
|
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
|
-
var m = o[
|
|
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 i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
27
|
+
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
28
|
+
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
29
|
+
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
|
30
|
+
|
|
31
|
+
/******************************************************************************
|
|
32
|
+
Copyright (c) Microsoft Corporation.
|
|
33
|
+
|
|
34
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
35
|
+
purpose with or without fee is hereby granted.
|
|
36
|
+
|
|
37
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
38
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
39
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
40
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
41
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
42
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
43
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
44
|
+
***************************************************************************** */
|
|
45
|
+
/* global Reflect, Promise */
|
|
46
|
+
var extendStatics = function (d, b) {
|
|
47
|
+
extendStatics = Object.setPrototypeOf ||
|
|
48
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
49
|
+
function (d, b) { for (var p in b)
|
|
50
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
51
|
+
d[p] = b[p]; };
|
|
52
|
+
return extendStatics(d, b);
|
|
53
|
+
};
|
|
54
|
+
function __extends(d, b) {
|
|
55
|
+
if (typeof b !== "function" && b !== null)
|
|
56
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
57
|
+
extendStatics(d, b);
|
|
58
|
+
function __() { this.constructor = d; }
|
|
59
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
60
|
+
}
|
|
61
|
+
var __assign = function () {
|
|
62
|
+
__assign = Object.assign || function __assign(t) {
|
|
63
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
64
|
+
s = arguments[i];
|
|
65
|
+
for (var p in s)
|
|
66
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
67
|
+
t[p] = s[p];
|
|
68
|
+
}
|
|
69
|
+
return t;
|
|
70
|
+
};
|
|
71
|
+
return __assign.apply(this, arguments);
|
|
72
|
+
};
|
|
73
|
+
function __rest(s, e) {
|
|
74
|
+
var t = {};
|
|
75
|
+
for (var p in s)
|
|
76
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
77
|
+
t[p] = s[p];
|
|
78
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
79
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
80
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
81
|
+
t[p[i]] = s[p[i]];
|
|
82
|
+
}
|
|
83
|
+
return t;
|
|
84
|
+
}
|
|
85
|
+
function __decorate(decorators, target, key, desc) {
|
|
86
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
87
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
88
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
89
|
+
else
|
|
90
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
91
|
+
if (d = decorators[i])
|
|
92
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
93
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
94
|
+
}
|
|
95
|
+
function __param(paramIndex, decorator) {
|
|
96
|
+
return function (target, key) { decorator(target, key, paramIndex); };
|
|
97
|
+
}
|
|
98
|
+
function __metadata(metadataKey, metadataValue) {
|
|
99
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
100
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
101
|
+
}
|
|
102
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
103
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
104
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
105
|
+
function fulfilled(value) { try {
|
|
106
|
+
step(generator.next(value));
|
|
107
|
+
}
|
|
108
|
+
catch (e) {
|
|
109
|
+
reject(e);
|
|
110
|
+
} }
|
|
111
|
+
function rejected(value) { try {
|
|
112
|
+
step(generator["throw"](value));
|
|
113
|
+
}
|
|
114
|
+
catch (e) {
|
|
115
|
+
reject(e);
|
|
116
|
+
} }
|
|
117
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
118
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
function __generator(thisArg, body) {
|
|
122
|
+
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
123
|
+
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
124
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
125
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
126
|
+
function step(op) {
|
|
127
|
+
if (f)
|
|
128
|
+
throw new TypeError("Generator is already executing.");
|
|
129
|
+
while (_)
|
|
130
|
+
try {
|
|
131
|
+
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)
|
|
132
|
+
return t;
|
|
133
|
+
if (y = 0, t)
|
|
134
|
+
op = [op[0] & 2, t.value];
|
|
135
|
+
switch (op[0]) {
|
|
136
|
+
case 0:
|
|
137
|
+
case 1:
|
|
138
|
+
t = op;
|
|
139
|
+
break;
|
|
140
|
+
case 4:
|
|
141
|
+
_.label++;
|
|
142
|
+
return { value: op[1], done: false };
|
|
143
|
+
case 5:
|
|
144
|
+
_.label++;
|
|
145
|
+
y = op[1];
|
|
146
|
+
op = [0];
|
|
147
|
+
continue;
|
|
148
|
+
case 7:
|
|
149
|
+
op = _.ops.pop();
|
|
150
|
+
_.trys.pop();
|
|
151
|
+
continue;
|
|
152
|
+
default:
|
|
153
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
154
|
+
_ = 0;
|
|
155
|
+
continue;
|
|
156
|
+
}
|
|
157
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
158
|
+
_.label = op[1];
|
|
159
|
+
break;
|
|
160
|
+
}
|
|
161
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
162
|
+
_.label = t[1];
|
|
163
|
+
t = op;
|
|
164
|
+
break;
|
|
165
|
+
}
|
|
166
|
+
if (t && _.label < t[2]) {
|
|
167
|
+
_.label = t[2];
|
|
168
|
+
_.ops.push(op);
|
|
169
|
+
break;
|
|
170
|
+
}
|
|
171
|
+
if (t[2])
|
|
172
|
+
_.ops.pop();
|
|
173
|
+
_.trys.pop();
|
|
174
|
+
continue;
|
|
175
|
+
}
|
|
176
|
+
op = body.call(thisArg, _);
|
|
177
|
+
}
|
|
178
|
+
catch (e) {
|
|
179
|
+
op = [6, e];
|
|
180
|
+
y = 0;
|
|
181
|
+
}
|
|
182
|
+
finally {
|
|
183
|
+
f = t = 0;
|
|
184
|
+
}
|
|
185
|
+
if (op[0] & 5)
|
|
186
|
+
throw op[1];
|
|
187
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
191
|
+
if (k2 === undefined)
|
|
192
|
+
k2 = k;
|
|
193
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
194
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
195
|
+
desc = { enumerable: true, get: function () { return m[k]; } };
|
|
196
|
+
}
|
|
197
|
+
Object.defineProperty(o, k2, desc);
|
|
198
|
+
}) : (function (o, m, k, k2) {
|
|
199
|
+
if (k2 === undefined)
|
|
200
|
+
k2 = k;
|
|
201
|
+
o[k2] = m[k];
|
|
202
|
+
});
|
|
203
|
+
function __exportStar(m, o) {
|
|
204
|
+
for (var p in m)
|
|
205
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
206
|
+
__createBinding(o, m, p);
|
|
207
|
+
}
|
|
208
|
+
function __values(o) {
|
|
209
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
210
|
+
if (m)
|
|
211
|
+
return m.call(o);
|
|
212
|
+
if (o && typeof o.length === "number")
|
|
213
|
+
return {
|
|
214
|
+
next: function () {
|
|
215
|
+
if (o && i >= o.length)
|
|
216
|
+
o = void 0;
|
|
217
|
+
return { value: o && o[i++], done: !o };
|
|
218
|
+
}
|
|
219
|
+
};
|
|
220
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
221
|
+
}
|
|
222
|
+
function __read(o, n) {
|
|
223
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
224
|
+
if (!m)
|
|
225
|
+
return o;
|
|
226
|
+
var i = m.call(o), r, ar = [], e;
|
|
227
|
+
try {
|
|
228
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
229
|
+
ar.push(r.value);
|
|
230
|
+
}
|
|
231
|
+
catch (error) {
|
|
232
|
+
e = { error: error };
|
|
233
|
+
}
|
|
234
|
+
finally {
|
|
235
|
+
try {
|
|
236
|
+
if (r && !r.done && (m = i["return"]))
|
|
237
|
+
m.call(i);
|
|
238
|
+
}
|
|
239
|
+
finally {
|
|
240
|
+
if (e)
|
|
241
|
+
throw e.error;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
return ar;
|
|
245
|
+
}
|
|
246
|
+
/** @deprecated */
|
|
247
|
+
function __spread() {
|
|
248
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
249
|
+
ar = ar.concat(__read(arguments[i]));
|
|
250
|
+
return ar;
|
|
251
|
+
}
|
|
252
|
+
/** @deprecated */
|
|
253
|
+
function __spreadArrays() {
|
|
254
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
255
|
+
s += arguments[i].length;
|
|
256
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
257
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
258
|
+
r[k] = a[j];
|
|
259
|
+
return r;
|
|
260
|
+
}
|
|
261
|
+
function __spreadArray(to, from, pack) {
|
|
262
|
+
if (pack || arguments.length === 2)
|
|
263
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
264
|
+
if (ar || !(i in from)) {
|
|
265
|
+
if (!ar)
|
|
266
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
267
|
+
ar[i] = from[i];
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
271
|
+
}
|
|
272
|
+
function __await(v) {
|
|
273
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
274
|
+
}
|
|
275
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
276
|
+
if (!Symbol.asyncIterator)
|
|
277
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
278
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
279
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
280
|
+
function verb(n) { if (g[n])
|
|
281
|
+
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
282
|
+
function resume(n, v) { try {
|
|
283
|
+
step(g[n](v));
|
|
284
|
+
}
|
|
285
|
+
catch (e) {
|
|
286
|
+
settle(q[0][3], e);
|
|
287
|
+
} }
|
|
288
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
289
|
+
function fulfill(value) { resume("next", value); }
|
|
290
|
+
function reject(value) { resume("throw", value); }
|
|
291
|
+
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
292
|
+
resume(q[0][0], q[0][1]); }
|
|
293
|
+
}
|
|
294
|
+
function __asyncDelegator(o) {
|
|
295
|
+
var i, p;
|
|
296
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
297
|
+
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; }
|
|
298
|
+
}
|
|
299
|
+
function __asyncValues(o) {
|
|
300
|
+
if (!Symbol.asyncIterator)
|
|
301
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
302
|
+
var m = o[Symbol.asyncIterator], i;
|
|
303
|
+
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);
|
|
304
|
+
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); }); }; }
|
|
305
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
306
|
+
}
|
|
307
|
+
function __makeTemplateObject(cooked, raw) {
|
|
308
|
+
if (Object.defineProperty) {
|
|
309
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
|
310
|
+
}
|
|
311
|
+
else {
|
|
312
|
+
cooked.raw = raw;
|
|
313
|
+
}
|
|
314
|
+
return cooked;
|
|
315
|
+
}
|
|
316
|
+
;
|
|
317
|
+
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
318
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
319
|
+
}) : function (o, v) {
|
|
320
|
+
o["default"] = v;
|
|
321
|
+
};
|
|
322
|
+
function __importStar(mod) {
|
|
323
|
+
if (mod && mod.__esModule)
|
|
324
|
+
return mod;
|
|
325
|
+
var result = {};
|
|
326
|
+
if (mod != null)
|
|
327
|
+
for (var k in mod)
|
|
328
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
329
|
+
__createBinding(result, mod, k);
|
|
330
|
+
__setModuleDefault(result, mod);
|
|
331
|
+
return result;
|
|
332
|
+
}
|
|
333
|
+
function __importDefault(mod) {
|
|
334
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
335
|
+
}
|
|
336
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
337
|
+
if (kind === "a" && !f)
|
|
338
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
339
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
340
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
341
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
342
|
+
}
|
|
343
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
344
|
+
if (kind === "m")
|
|
345
|
+
throw new TypeError("Private method is not writable");
|
|
346
|
+
if (kind === "a" && !f)
|
|
347
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
348
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
349
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
350
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
351
|
+
}
|
|
352
|
+
function __classPrivateFieldIn(state, receiver) {
|
|
353
|
+
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
|
|
354
|
+
throw new TypeError("Cannot use 'in' operator on non-object");
|
|
355
|
+
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
254
356
|
}
|
|
255
357
|
|
|
256
358
|
function defaultSizeOptionContent(_a) {
|
|
@@ -260,11 +362,11 @@
|
|
|
260
362
|
var TUI_TABLE_PAGINATION_DEFAULT_OPTIONS = {
|
|
261
363
|
sizeOptionContent: defaultSizeOptionContent,
|
|
262
364
|
};
|
|
263
|
-
var TUI_TABLE_PAGINATION_OPTIONS = new
|
|
365
|
+
var TUI_TABLE_PAGINATION_OPTIONS = new i0.InjectionToken("Default parameters for TablePagination component", { factory: function () { return TUI_TABLE_PAGINATION_DEFAULT_OPTIONS; } });
|
|
264
366
|
function tuiTablePaginationOptionsProvider(options) {
|
|
265
367
|
return {
|
|
266
368
|
provide: TUI_TABLE_PAGINATION_OPTIONS,
|
|
267
|
-
useValue:
|
|
369
|
+
useValue: Object.assign(Object.assign({}, TUI_TABLE_PAGINATION_DEFAULT_OPTIONS), options),
|
|
268
370
|
};
|
|
269
371
|
}
|
|
270
372
|
|
|
@@ -278,43 +380,43 @@
|
|
|
278
380
|
this.total = 0;
|
|
279
381
|
this.page = 0;
|
|
280
382
|
this.size = this.items[0];
|
|
281
|
-
this.pageChange = new
|
|
282
|
-
this.sizeChange = new
|
|
383
|
+
this.pageChange = new i0.EventEmitter();
|
|
384
|
+
this.sizeChange = new i0.EventEmitter();
|
|
283
385
|
this.open = false;
|
|
284
386
|
}
|
|
285
387
|
Object.defineProperty(TuiTablePaginationComponent.prototype, "pages", {
|
|
286
388
|
get: function () {
|
|
287
389
|
return Math.ceil(this.total / this.size);
|
|
288
390
|
},
|
|
289
|
-
enumerable:
|
|
391
|
+
enumerable: false,
|
|
290
392
|
configurable: true
|
|
291
393
|
});
|
|
292
394
|
Object.defineProperty(TuiTablePaginationComponent.prototype, "start", {
|
|
293
395
|
get: function () {
|
|
294
396
|
return this.page * this.size;
|
|
295
397
|
},
|
|
296
|
-
enumerable:
|
|
398
|
+
enumerable: false,
|
|
297
399
|
configurable: true
|
|
298
400
|
});
|
|
299
401
|
Object.defineProperty(TuiTablePaginationComponent.prototype, "end", {
|
|
300
402
|
get: function () {
|
|
301
403
|
return Math.min(this.start + this.size, this.total);
|
|
302
404
|
},
|
|
303
|
-
enumerable:
|
|
405
|
+
enumerable: false,
|
|
304
406
|
configurable: true
|
|
305
407
|
});
|
|
306
408
|
Object.defineProperty(TuiTablePaginationComponent.prototype, "leftDisabled", {
|
|
307
409
|
get: function () {
|
|
308
410
|
return !this.start;
|
|
309
411
|
},
|
|
310
|
-
enumerable:
|
|
412
|
+
enumerable: false,
|
|
311
413
|
configurable: true
|
|
312
414
|
});
|
|
313
415
|
Object.defineProperty(TuiTablePaginationComponent.prototype, "rightDisabled", {
|
|
314
416
|
get: function () {
|
|
315
417
|
return this.end === this.total;
|
|
316
418
|
},
|
|
317
|
-
enumerable:
|
|
419
|
+
enumerable: false,
|
|
318
420
|
configurable: true
|
|
319
421
|
});
|
|
320
422
|
TuiTablePaginationComponent.prototype.onItem = function (size) {
|
|
@@ -333,66 +435,96 @@
|
|
|
333
435
|
this.page++;
|
|
334
436
|
this.pageChange.emit(this.page);
|
|
335
437
|
};
|
|
336
|
-
TuiTablePaginationComponent.ctorParameters = function () { return [
|
|
337
|
-
{ type: rxjs.Observable, decorators: [{ type: core.Inject, args: [core$1.TUI_SPIN_TEXTS,] }] },
|
|
338
|
-
{ type: rxjs.Observable, decorators: [{ type: core.Inject, args: [tokens.TUI_TABLE_PAGINATION_TEXTS,] }] },
|
|
339
|
-
{ type: undefined, decorators: [{ type: core.Inject, args: [TUI_TABLE_PAGINATION_OPTIONS,] }] }
|
|
340
|
-
]; };
|
|
341
|
-
__decorate([
|
|
342
|
-
core.Input(),
|
|
343
|
-
cdk.tuiDefaultProp()
|
|
344
|
-
], TuiTablePaginationComponent.prototype, "items", void 0);
|
|
345
|
-
__decorate([
|
|
346
|
-
core.Input(),
|
|
347
|
-
cdk.tuiDefaultProp()
|
|
348
|
-
], TuiTablePaginationComponent.prototype, "total", void 0);
|
|
349
|
-
__decorate([
|
|
350
|
-
core.Input(),
|
|
351
|
-
cdk.tuiDefaultProp()
|
|
352
|
-
], TuiTablePaginationComponent.prototype, "page", void 0);
|
|
353
|
-
__decorate([
|
|
354
|
-
core.Input(),
|
|
355
|
-
cdk.tuiDefaultProp()
|
|
356
|
-
], TuiTablePaginationComponent.prototype, "size", void 0);
|
|
357
|
-
__decorate([
|
|
358
|
-
core.Output()
|
|
359
|
-
], TuiTablePaginationComponent.prototype, "pageChange", void 0);
|
|
360
|
-
__decorate([
|
|
361
|
-
core.Output()
|
|
362
|
-
], TuiTablePaginationComponent.prototype, "sizeChange", void 0);
|
|
363
|
-
TuiTablePaginationComponent = __decorate([
|
|
364
|
-
core.Component({
|
|
365
|
-
selector: 'tui-table-pagination',
|
|
366
|
-
template: "<ng-container *ngIf=\"texts$ | async as texts\">\n <span class=\"t-pages\">\n {{ texts.pages }}\n <strong class=\"t-strong\">{{ pages }}</strong>\n </span>\n <span automation-id=\"tui-table-pagination__lines-per-page-wrapper\">\n {{ texts.linesPerPage }}\n <tui-hosted-dropdown\n [content]=\"content\"\n [(open)]=\"open\"\n >\n <button tuiLink>\n <strong>{{ start + 1 }}\u2013{{ end }}</strong>\n </button>\n <ng-template #content>\n <tui-data-list>\n <ng-container *ngFor=\"let item of items\">\n <button\n tuiOption\n size=\"s\"\n class=\"t-item\"\n (click)=\"onItem(item)\"\n >\n <span\n polymorpheus-outlet\n [content]=\"options.sizeOptionContent\"\n [context]=\"{$implicit: item, total: total}\"\n ></span>\n <tui-svg\n *ngIf=\"item === size; else fakeIcon\"\n src=\"tuiIconCheckLarge\"\n class=\"t-checkmark\"\n ></tui-svg>\n\n <ng-template #fakeIcon>\n <span class=\"t-checkmark\"></span>\n </ng-template>\n </button>\n </ng-container>\n </tui-data-list>\n </ng-template>\n </tui-hosted-dropdown>\n {{ texts.of }}\n <strong class=\"t-strong\">{{ total }}</strong>\n </span>\n <ng-container *ngIf=\"spinTexts$ | async as spinTexts\">\n <button\n tuiIconButton\n type=\"button\"\n size=\"xs\"\n appearance=\"icon\"\n icon=\"tuiIconChevronLeft\"\n class=\"t-back\"\n [disabled]=\"leftDisabled\"\n [title]=\"spinTexts[0]\"\n (click)=\"back()\"\n ></button>\n <button\n tuiIconButton\n type=\"button\"\n size=\"xs\"\n appearance=\"icon\"\n icon=\"tuiIconChevronRight\"\n [disabled]=\"rightDisabled\"\n [title]=\"spinTexts[1]\"\n (click)=\"forth()\"\n ></button>\n </ng-container>\n</ng-container>\n",
|
|
367
|
-
styles: [":host{display:flex;font:var(--tui-font-text-s);align-items:center;color:var(--tui-text-03)}.t-strong{color:var(--tui-text-01)}.t-pages{margin-right:auto}.t-item{min-width:5.5rem;box-sizing:border-box}.t-checkmark{min-width:1.5rem;border-left:5px solid transparent}.t-back{margin:0 .25rem 0 1.5rem}"]
|
|
368
|
-
}),
|
|
369
|
-
__param(0, core.Inject(core$1.TUI_SPIN_TEXTS)),
|
|
370
|
-
__param(1, core.Inject(tokens.TUI_TABLE_PAGINATION_TEXTS)),
|
|
371
|
-
__param(2, core.Inject(TUI_TABLE_PAGINATION_OPTIONS))
|
|
372
|
-
], TuiTablePaginationComponent);
|
|
373
438
|
return TuiTablePaginationComponent;
|
|
374
439
|
}());
|
|
440
|
+
TuiTablePaginationComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTablePaginationComponent, deps: [{ token: i1.TUI_SPIN_TEXTS }, { token: tokens.TUI_TABLE_PAGINATION_TEXTS }, { token: TUI_TABLE_PAGINATION_OPTIONS }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
441
|
+
TuiTablePaginationComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TuiTablePaginationComponent, selector: "tui-table-pagination", inputs: { items: "items", total: "total", page: "page", size: "size" }, outputs: { pageChange: "pageChange", sizeChange: "sizeChange" }, ngImport: i0__namespace, template: "<ng-container *ngIf=\"texts$ | async as texts\">\n <span class=\"t-pages\">\n {{ texts.pages }}\n <strong class=\"t-strong\">{{ pages }}</strong>\n </span>\n <span automation-id=\"tui-table-pagination__lines-per-page-wrapper\">\n {{ texts.linesPerPage }}\n <tui-hosted-dropdown\n [content]=\"content\"\n [(open)]=\"open\"\n >\n <button tuiLink>\n <strong>{{ start + 1 }}\u2013{{ end }}</strong>\n </button>\n <ng-template #content>\n <tui-data-list>\n <ng-container *ngFor=\"let item of items\">\n <button\n tuiOption\n size=\"s\"\n class=\"t-item\"\n (click)=\"onItem(item)\"\n >\n <ng-container\n *polymorpheusOutlet=\"\n options.sizeOptionContent as text;\n context: {$implicit: item, total: total}\n \"\n >\n {{ text }}\n </ng-container>\n <tui-svg\n *ngIf=\"item === size; else fakeIcon\"\n src=\"tuiIconCheckLarge\"\n class=\"t-checkmark\"\n ></tui-svg>\n\n <ng-template #fakeIcon>\n <span class=\"t-checkmark\"></span>\n </ng-template>\n </button>\n </ng-container>\n </tui-data-list>\n </ng-template>\n </tui-hosted-dropdown>\n {{ texts.of }}\n <strong class=\"t-strong\">{{ total }}</strong>\n </span>\n <ng-container *ngIf=\"spinTexts$ | async as spinTexts\">\n <button\n tuiIconButton\n type=\"button\"\n size=\"xs\"\n appearance=\"icon\"\n icon=\"tuiIconChevronLeft\"\n class=\"t-back\"\n [disabled]=\"leftDisabled\"\n [title]=\"spinTexts[0]\"\n (click)=\"back()\"\n ></button>\n <button\n tuiIconButton\n type=\"button\"\n size=\"xs\"\n appearance=\"icon\"\n icon=\"tuiIconChevronRight\"\n [disabled]=\"rightDisabled\"\n [title]=\"spinTexts[1]\"\n (click)=\"forth()\"\n ></button>\n </ng-container>\n</ng-container>\n", styles: [":host{display:flex;font:var(--tui-font-text-s);align-items:center;color:var(--tui-text-03)}.t-strong{color:var(--tui-text-01)}.t-pages{margin-right:auto}.t-item{min-width:5.5rem;box-sizing:border-box}.t-checkmark{min-width:1.5rem;border-left:5px solid transparent}.t-back{margin:0 .25rem 0 1.5rem}\n"], components: [{ type: i1__namespace.TuiHostedDropdownComponent, selector: "tui-hosted-dropdown", inputs: ["content", "canOpen", "open"], outputs: ["openChange", "focusedChange"] }, { type: i1__namespace.TuiLinkComponent, selector: "a[tuiLink], button[tuiLink]", inputs: ["pseudo", "icon", "iconAlign", "iconRotated", "mode"], exportAs: ["tuiLink"] }, { type: i1__namespace.TuiDataListComponent, selector: "tui-data-list", inputs: ["role", "emptyContent"] }, { type: i1__namespace.TuiOptionComponent, selector: "button[tuiOption], a[tuiOption]", inputs: ["size", "role", "disabled", "value"] }, { type: i1__namespace.TuiSvgComponent, selector: "tui-svg", inputs: ["src"] }, { type: i1__namespace.TuiButtonComponent, selector: "button[tuiButton], button[tuiIconButton], a[tuiButton], a[tuiIconButton]", inputs: ["appearance", "disabled", "icon", "iconRight", "shape", "showLoader", "size"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3__namespace.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }], pipes: { "async": i2__namespace.AsyncPipe } });
|
|
442
|
+
__decorate([
|
|
443
|
+
cdk.tuiDefaultProp()
|
|
444
|
+
], TuiTablePaginationComponent.prototype, "items", void 0);
|
|
445
|
+
__decorate([
|
|
446
|
+
cdk.tuiDefaultProp()
|
|
447
|
+
], TuiTablePaginationComponent.prototype, "total", void 0);
|
|
448
|
+
__decorate([
|
|
449
|
+
cdk.tuiDefaultProp()
|
|
450
|
+
], TuiTablePaginationComponent.prototype, "page", void 0);
|
|
451
|
+
__decorate([
|
|
452
|
+
cdk.tuiDefaultProp()
|
|
453
|
+
], TuiTablePaginationComponent.prototype, "size", void 0);
|
|
454
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTablePaginationComponent, decorators: [{
|
|
455
|
+
type: i0.Component,
|
|
456
|
+
args: [{
|
|
457
|
+
selector: "tui-table-pagination",
|
|
458
|
+
templateUrl: "./table-pagination.template.html",
|
|
459
|
+
styleUrls: ["./table-pagination.style.less"],
|
|
460
|
+
}]
|
|
461
|
+
}], ctorParameters: function () {
|
|
462
|
+
return [{ type: i4__namespace.Observable, decorators: [{
|
|
463
|
+
type: i0.Inject,
|
|
464
|
+
args: [i1.TUI_SPIN_TEXTS]
|
|
465
|
+
}] }, { type: i4__namespace.Observable, decorators: [{
|
|
466
|
+
type: i0.Inject,
|
|
467
|
+
args: [tokens.TUI_TABLE_PAGINATION_TEXTS]
|
|
468
|
+
}] }, { type: undefined, decorators: [{
|
|
469
|
+
type: i0.Inject,
|
|
470
|
+
args: [TUI_TABLE_PAGINATION_OPTIONS]
|
|
471
|
+
}] }];
|
|
472
|
+
}, propDecorators: { items: [{
|
|
473
|
+
type: i0.Input
|
|
474
|
+
}], total: [{
|
|
475
|
+
type: i0.Input
|
|
476
|
+
}], page: [{
|
|
477
|
+
type: i0.Input
|
|
478
|
+
}], size: [{
|
|
479
|
+
type: i0.Input
|
|
480
|
+
}], pageChange: [{
|
|
481
|
+
type: i0.Output
|
|
482
|
+
}], sizeChange: [{
|
|
483
|
+
type: i0.Output
|
|
484
|
+
}] } });
|
|
375
485
|
|
|
376
486
|
var TuiTablePaginationModule = /** @class */ (function () {
|
|
377
487
|
function TuiTablePaginationModule() {
|
|
378
488
|
}
|
|
379
|
-
TuiTablePaginationModule = __decorate([
|
|
380
|
-
core.NgModule({
|
|
381
|
-
imports: [
|
|
382
|
-
common.CommonModule,
|
|
383
|
-
core$1.TuiButtonModule,
|
|
384
|
-
core$1.TuiLinkModule,
|
|
385
|
-
core$1.TuiHostedDropdownModule,
|
|
386
|
-
core$1.TuiDataListModule,
|
|
387
|
-
core$1.TuiSvgModule,
|
|
388
|
-
ngPolymorpheus.PolymorpheusModule,
|
|
389
|
-
],
|
|
390
|
-
declarations: [TuiTablePaginationComponent],
|
|
391
|
-
exports: [TuiTablePaginationComponent],
|
|
392
|
-
})
|
|
393
|
-
], TuiTablePaginationModule);
|
|
394
489
|
return TuiTablePaginationModule;
|
|
395
490
|
}());
|
|
491
|
+
TuiTablePaginationModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTablePaginationModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
492
|
+
TuiTablePaginationModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTablePaginationModule, declarations: [TuiTablePaginationComponent], imports: [i2.CommonModule,
|
|
493
|
+
i1.TuiButtonModule,
|
|
494
|
+
i1.TuiLinkModule,
|
|
495
|
+
i1.TuiHostedDropdownModule,
|
|
496
|
+
i1.TuiDataListModule,
|
|
497
|
+
i1.TuiSvgModule,
|
|
498
|
+
i3.PolymorpheusModule], exports: [TuiTablePaginationComponent] });
|
|
499
|
+
TuiTablePaginationModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTablePaginationModule, imports: [[
|
|
500
|
+
i2.CommonModule,
|
|
501
|
+
i1.TuiButtonModule,
|
|
502
|
+
i1.TuiLinkModule,
|
|
503
|
+
i1.TuiHostedDropdownModule,
|
|
504
|
+
i1.TuiDataListModule,
|
|
505
|
+
i1.TuiSvgModule,
|
|
506
|
+
i3.PolymorpheusModule,
|
|
507
|
+
]] });
|
|
508
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTablePaginationModule, decorators: [{
|
|
509
|
+
type: i0.NgModule,
|
|
510
|
+
args: [{
|
|
511
|
+
imports: [
|
|
512
|
+
i2.CommonModule,
|
|
513
|
+
i1.TuiButtonModule,
|
|
514
|
+
i1.TuiLinkModule,
|
|
515
|
+
i1.TuiHostedDropdownModule,
|
|
516
|
+
i1.TuiDataListModule,
|
|
517
|
+
i1.TuiSvgModule,
|
|
518
|
+
i3.PolymorpheusModule,
|
|
519
|
+
],
|
|
520
|
+
declarations: [TuiTablePaginationComponent],
|
|
521
|
+
exports: [TuiTablePaginationComponent],
|
|
522
|
+
}]
|
|
523
|
+
}] });
|
|
524
|
+
|
|
525
|
+
/**
|
|
526
|
+
* Generated bundle index. Do not edit.
|
|
527
|
+
*/
|
|
396
528
|
|
|
397
529
|
exports.TUI_TABLE_PAGINATION_DEFAULT_OPTIONS = TUI_TABLE_PAGINATION_DEFAULT_OPTIONS;
|
|
398
530
|
exports.TUI_TABLE_PAGINATION_OPTIONS = TUI_TABLE_PAGINATION_OPTIONS;
|
|
@@ -402,5 +534,5 @@
|
|
|
402
534
|
|
|
403
535
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
404
536
|
|
|
405
|
-
}))
|
|
537
|
+
}));
|
|
406
538
|
//# sourceMappingURL=taiga-ui-addon-table-components-table-pagination.umd.js.map
|