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