@taiga-ui/addon-table 3.57.0 → 3.59.0-canary.1c24449
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/{esm2015/components/table/directives/direction-order.directive.js → esm2020/components/table/directives/direction-order.directive.mjs} +7 -7
- package/{esm2015/components/table/directives/head.directive.js → esm2020/components/table/directives/head.directive.mjs} +3 -3
- package/{esm2015/components/table/directives/resized.directive.js → esm2020/components/table/directives/resized.directive.mjs} +4 -4
- 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/{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 +47 -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 +59 -0
- package/{esm2015/directives/table-filters/table-filters.directive.js → esm2020/directives/table-filters/table-filters.directive.mjs} +3 -3
- 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 +771 -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 +181 -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} +83 -113
- 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} +19 -23
- 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/sort-by.directive.js +0 -48
- 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/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/stuck.provider.js → esm2020/components/table/providers/stuck.provider.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,21 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@taiga-ui/addon-table/directives/table-filters')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@taiga-ui/addon-table/directives', ['exports', '@taiga-ui/addon-table/directives/table-filters'], 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"].directives = {}), global["taiga-ui"]["addon-table"].directives["table-filters"]));
|
|
5
|
-
})(this, (function (exports, tableFilters) { 'use strict';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Generated bundle index. Do not edit.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
Object.keys(tableFilters).forEach(function (k) {
|
|
12
|
-
if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function () { return tableFilters[k]; }
|
|
15
|
-
});
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
19
|
-
|
|
20
|
-
}));
|
|
21
|
-
//# sourceMappingURL=taiga-ui-addon-table-directives.umd.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-addon-table-directives.umd.js","sources":["../../../projects/addon-table/directives/taiga-ui-addon-table-directives.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;CAAA;;CAEG;;;;;;;;;;;;;;;"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
(function (factory) {
|
|
2
|
-
typeof define === 'function' && define.amd ? define('@taiga-ui/addon-table/interfaces', factory) :
|
|
3
|
-
factory();
|
|
4
|
-
})((function () { 'use strict';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Generated bundle index. Do not edit.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
}));
|
|
11
|
-
//# sourceMappingURL=taiga-ui-addon-table-interfaces.umd.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-addon-table-interfaces.umd.js","sources":["../../../projects/addon-table/interfaces/taiga-ui-addon-table-interfaces.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;CAAA;;CAEG;;;;;;"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@taiga-ui/cdk'), require('@taiga-ui/i18n')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@taiga-ui/addon-table/tokens', ['exports', '@taiga-ui/cdk', '@taiga-ui/i18n'], 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"].tokens = {}), global.cdk, global.i18n));
|
|
5
|
-
})(this, (function (exports, cdk, i18n) { 'use strict';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* tui-reorder i18n button
|
|
9
|
-
*/
|
|
10
|
-
var TUI_TABLE_SHOW_HIDE_MESSAGE = cdk.tuiCreateTokenFromFactory(i18n.tuiExtractI18n("showHideText"));
|
|
11
|
-
/**
|
|
12
|
-
* tui-table-pagination i18n texts
|
|
13
|
-
*/
|
|
14
|
-
var TUI_TABLE_PAGINATION_TEXTS = cdk.tuiCreateTokenFromFactory(i18n.tuiExtractI18n("paginationTexts"));
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Generated bundle index. Do not edit.
|
|
18
|
-
*/
|
|
19
|
-
|
|
20
|
-
exports.TUI_TABLE_PAGINATION_TEXTS = TUI_TABLE_PAGINATION_TEXTS;
|
|
21
|
-
exports.TUI_TABLE_SHOW_HIDE_MESSAGE = TUI_TABLE_SHOW_HIDE_MESSAGE;
|
|
22
|
-
|
|
23
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
24
|
-
|
|
25
|
-
}));
|
|
26
|
-
//# sourceMappingURL=taiga-ui-addon-table-tokens.umd.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-addon-table-tokens.umd.js","sources":["../../../projects/addon-table/tokens/i18n.ts","../../../projects/addon-table/tokens/taiga-ui-addon-table-tokens.ts"],"sourcesContent":["import {tuiCreateTokenFromFactory} from '@taiga-ui/cdk';\nimport {tuiExtractI18n} from '@taiga-ui/i18n';\n\n/**\n * tui-reorder i18n button\n */\nexport const TUI_TABLE_SHOW_HIDE_MESSAGE = tuiCreateTokenFromFactory(\n tuiExtractI18n(`showHideText`),\n);\n\n/**\n * tui-table-pagination i18n texts\n */\nexport const TUI_TABLE_PAGINATION_TEXTS = tuiCreateTokenFromFactory(\n tuiExtractI18n(`paginationTexts`),\n);\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["tuiCreateTokenFromFactory","tuiExtractI18n"],"mappings":";;;;;;CAGA;;CAEG;AACU,KAAA,2BAA2B,GAAGA,6BAAyB,CAChEC,mBAAc,CAAC,cAAc,CAAC,EAChC;CAEF;;CAEG;AACU,KAAA,0BAA0B,GAAGD,6BAAyB,CAC/DC,mBAAc,CAAC,iBAAiB,CAAC;;CCdrC;;CAEG;;;;;;;;;;;"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
(function (factory) {
|
|
2
|
-
typeof define === 'function' && define.amd ? define('@taiga-ui/addon-table/types', factory) :
|
|
3
|
-
factory();
|
|
4
|
-
})((function () { 'use strict';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Generated bundle index. Do not edit.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
}));
|
|
11
|
-
//# sourceMappingURL=taiga-ui-addon-table-types.umd.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-addon-table-types.umd.js","sources":["../../../projects/addon-table/types/taiga-ui-addon-table-types.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;CAAA;;CAEG;;;;;;"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@taiga-ui/cdk')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@taiga-ui/addon-table/utils', ['exports', '@taiga-ui/cdk'], 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"].utils = {}), global.cdk));
|
|
5
|
-
})(this, (function (exports, cdk) { 'use strict';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* @deprecated: use {tuiDefaultSort} from `@taiga-ui/cdk`
|
|
9
|
-
* drop in v4.0
|
|
10
|
-
*/
|
|
11
|
-
var tuiDefaultSort = cdk.tuiDefaultSort;
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Generated bundle index. Do not edit.
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
exports.tuiDefaultSort = tuiDefaultSort;
|
|
18
|
-
|
|
19
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
20
|
-
|
|
21
|
-
}));
|
|
22
|
-
//# sourceMappingURL=taiga-ui-addon-table-utils.umd.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-addon-table-utils.umd.js","sources":["../../../projects/addon-table/utils/default-sort.ts","../../../projects/addon-table/utils/taiga-ui-addon-table-utils.ts"],"sourcesContent":["import {tuiDefaultSort as tuiDefaultSortFromCdk} from '@taiga-ui/cdk';\n\n/**\n * @deprecated: use {tuiDefaultSort} from `@taiga-ui/cdk`\n * drop in v4.0\n */\nexport const tuiDefaultSort = tuiDefaultSortFromCdk;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["tuiDefaultSortFromCdk"],"mappings":";;;;;;CAEA;;;CAGG;AACI,KAAM,cAAc,GAAGA;;CCN9B;;CAEG;;;;;;;;;;"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@taiga-ui/addon-table/components'), require('@taiga-ui/addon-table/directives'), require('@taiga-ui/addon-table/tokens'), require('@taiga-ui/addon-table/types'), require('@taiga-ui/addon-table/utils')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@taiga-ui/addon-table', ['exports', '@taiga-ui/addon-table/components', '@taiga-ui/addon-table/directives', '@taiga-ui/addon-table/tokens', '@taiga-ui/addon-table/types', '@taiga-ui/addon-table/utils'], 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"].components, global["taiga-ui"]["addon-table"].directives, global["taiga-ui"]["addon-table"].tokens, global["taiga-ui"]["addon-table"].types, global["taiga-ui"]["addon-table"].utils));
|
|
5
|
-
})(this, (function (exports, components, directives, tokens, types, utils) { 'use strict';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Generated bundle index. Do not edit.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
Object.keys(components).forEach(function (k) {
|
|
12
|
-
if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function () { return components[k]; }
|
|
15
|
-
});
|
|
16
|
-
});
|
|
17
|
-
Object.keys(directives).forEach(function (k) {
|
|
18
|
-
if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function () { return directives[k]; }
|
|
21
|
-
});
|
|
22
|
-
});
|
|
23
|
-
Object.keys(tokens).forEach(function (k) {
|
|
24
|
-
if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: function () { return tokens[k]; }
|
|
27
|
-
});
|
|
28
|
-
});
|
|
29
|
-
Object.keys(types).forEach(function (k) {
|
|
30
|
-
if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
get: function () { return types[k]; }
|
|
33
|
-
});
|
|
34
|
-
});
|
|
35
|
-
Object.keys(utils).forEach(function (k) {
|
|
36
|
-
if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
|
|
37
|
-
enumerable: true,
|
|
38
|
-
get: function () { return utils[k]; }
|
|
39
|
-
});
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
43
|
-
|
|
44
|
-
}));
|
|
45
|
-
//# sourceMappingURL=taiga-ui-addon-table.umd.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-addon-table.umd.js","sources":["../../../projects/addon-table/taiga-ui-addon-table.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;CAAA;;CAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/components/package.json
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"main": "../bundles/taiga-ui-addon-table-components.umd.js",
|
|
3
|
-
"module": "../fesm2015/taiga-ui-addon-table-components.js",
|
|
4
|
-
"es2015": "../fesm2015/taiga-ui-addon-table-components.js",
|
|
5
|
-
"esm2015": "../esm2015/components/taiga-ui-addon-table-components.js",
|
|
6
|
-
"fesm2015": "../fesm2015/taiga-ui-addon-table-components.js",
|
|
7
|
-
"typings": "taiga-ui-addon-table-components.d.ts",
|
|
8
|
-
"sideEffects": false,
|
|
9
|
-
"name": "@taiga-ui/addon-table/components"
|
|
10
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"main": "../../bundles/taiga-ui-addon-table-components-reorder.umd.js",
|
|
3
|
-
"module": "../../fesm2015/taiga-ui-addon-table-components-reorder.js",
|
|
4
|
-
"es2015": "../../fesm2015/taiga-ui-addon-table-components-reorder.js",
|
|
5
|
-
"esm2015": "../../esm2015/components/reorder/taiga-ui-addon-table-components-reorder.js",
|
|
6
|
-
"fesm2015": "../../fesm2015/taiga-ui-addon-table-components-reorder.js",
|
|
7
|
-
"typings": "taiga-ui-addon-table-components-reorder.d.ts",
|
|
8
|
-
"sideEffects": false,
|
|
9
|
-
"name": "@taiga-ui/addon-table/components/reorder"
|
|
10
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"main": "../../bundles/taiga-ui-addon-table-components-table.umd.js",
|
|
3
|
-
"module": "../../fesm2015/taiga-ui-addon-table-components-table.js",
|
|
4
|
-
"es2015": "../../fesm2015/taiga-ui-addon-table-components-table.js",
|
|
5
|
-
"esm2015": "../../esm2015/components/table/taiga-ui-addon-table-components-table.js",
|
|
6
|
-
"fesm2015": "../../fesm2015/taiga-ui-addon-table-components-table.js",
|
|
7
|
-
"typings": "taiga-ui-addon-table-components-table.d.ts",
|
|
8
|
-
"sideEffects": false,
|
|
9
|
-
"name": "@taiga-ui/addon-table/components/table"
|
|
10
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"main": "../../bundles/taiga-ui-addon-table-components-table-pagination.umd.js",
|
|
3
|
-
"module": "../../fesm2015/taiga-ui-addon-table-components-table-pagination.js",
|
|
4
|
-
"es2015": "../../fesm2015/taiga-ui-addon-table-components-table-pagination.js",
|
|
5
|
-
"esm2015": "../../esm2015/components/table-pagination/taiga-ui-addon-table-components-table-pagination.js",
|
|
6
|
-
"fesm2015": "../../fesm2015/taiga-ui-addon-table-components-table-pagination.js",
|
|
7
|
-
"typings": "taiga-ui-addon-table-components-table-pagination.d.ts",
|
|
8
|
-
"sideEffects": false,
|
|
9
|
-
"name": "@taiga-ui/addon-table/components/table-pagination"
|
|
10
|
-
}
|
package/directives/package.json
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"main": "../bundles/taiga-ui-addon-table-directives.umd.js",
|
|
3
|
-
"module": "../fesm2015/taiga-ui-addon-table-directives.js",
|
|
4
|
-
"es2015": "../fesm2015/taiga-ui-addon-table-directives.js",
|
|
5
|
-
"esm2015": "../esm2015/directives/taiga-ui-addon-table-directives.js",
|
|
6
|
-
"fesm2015": "../fesm2015/taiga-ui-addon-table-directives.js",
|
|
7
|
-
"typings": "taiga-ui-addon-table-directives.d.ts",
|
|
8
|
-
"sideEffects": false,
|
|
9
|
-
"name": "@taiga-ui/addon-table/directives"
|
|
10
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"main": "../../bundles/taiga-ui-addon-table-directives-table-filters.umd.js",
|
|
3
|
-
"module": "../../fesm2015/taiga-ui-addon-table-directives-table-filters.js",
|
|
4
|
-
"es2015": "../../fesm2015/taiga-ui-addon-table-directives-table-filters.js",
|
|
5
|
-
"esm2015": "../../esm2015/directives/table-filters/taiga-ui-addon-table-directives-table-filters.js",
|
|
6
|
-
"fesm2015": "../../fesm2015/taiga-ui-addon-table-directives-table-filters.js",
|
|
7
|
-
"typings": "taiga-ui-addon-table-directives-table-filters.d.ts",
|
|
8
|
-
"sideEffects": false,
|
|
9
|
-
"name": "@taiga-ui/addon-table/directives/table-filters"
|
|
10
|
-
}
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, EventEmitter, HostListener, Inject, Input, Output, } from '@angular/core';
|
|
2
|
-
import { TUI_TABLE_SHOW_HIDE_MESSAGE } from '@taiga-ui/addon-table/tokens';
|
|
3
|
-
import { TUI_REORDER_OPTIONS } from './reorder.options';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "@taiga-ui/kit";
|
|
6
|
-
import * as i2 from "@taiga-ui/core";
|
|
7
|
-
import * as i3 from "@angular/common";
|
|
8
|
-
import * as i4 from "rxjs";
|
|
9
|
-
export class TuiReorderComponent {
|
|
10
|
-
constructor(options, showHideText$) {
|
|
11
|
-
this.options = options;
|
|
12
|
-
this.showHideText$ = showHideText$;
|
|
13
|
-
this.dragging = false;
|
|
14
|
-
this.enabled = [];
|
|
15
|
-
this.itemsChange = new EventEmitter();
|
|
16
|
-
this.enabledChange = new EventEmitter();
|
|
17
|
-
this.order = new Map();
|
|
18
|
-
this.unsortedItems = [];
|
|
19
|
-
}
|
|
20
|
-
set items(items) {
|
|
21
|
-
if (items.length !== this.unsortedItems.length ||
|
|
22
|
-
!items.every(item => this.unsortedItems.includes(item))) {
|
|
23
|
-
this.unsortedItems = items;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
noop() { }
|
|
27
|
-
onDrag() {
|
|
28
|
-
this.dragging = true;
|
|
29
|
-
}
|
|
30
|
-
onDrop() {
|
|
31
|
-
if (!this.dragging) {
|
|
32
|
-
return;
|
|
33
|
-
}
|
|
34
|
-
this.dragging = false;
|
|
35
|
-
this.updateItems();
|
|
36
|
-
}
|
|
37
|
-
isEnabled(item) {
|
|
38
|
-
return this.enabled.includes(item);
|
|
39
|
-
}
|
|
40
|
-
getIcon(item) {
|
|
41
|
-
return this.isEnabled(item) ? this.options.icons.hide : this.options.icons.show;
|
|
42
|
-
}
|
|
43
|
-
toggle(toggled) {
|
|
44
|
-
this.enabled = this.isEnabled(toggled)
|
|
45
|
-
? this.enabled.filter(item => item !== toggled)
|
|
46
|
-
: this.enabled.concat(toggled);
|
|
47
|
-
this.updateEnabled();
|
|
48
|
-
}
|
|
49
|
-
move(index, direction) {
|
|
50
|
-
var _a;
|
|
51
|
-
const oldIndex = (_a = this.order.get(index)) !== null && _a !== void 0 ? _a : index;
|
|
52
|
-
if ((!oldIndex && direction < 0) ||
|
|
53
|
-
(oldIndex === this.unsortedItems.length - 1 && direction > 0)) {
|
|
54
|
-
return;
|
|
55
|
-
}
|
|
56
|
-
const newIndex = oldIndex + direction;
|
|
57
|
-
const oldItem = Array.from(this.order.values()).findIndex(item => item === newIndex);
|
|
58
|
-
this.order.set(index, newIndex);
|
|
59
|
-
this.order.set(oldItem, oldIndex);
|
|
60
|
-
this.order = new Map(this.order);
|
|
61
|
-
this.updateItems();
|
|
62
|
-
}
|
|
63
|
-
getSortedItems() {
|
|
64
|
-
const items = new Array(this.unsortedItems.length);
|
|
65
|
-
this.unsortedItems.forEach((item, index) => {
|
|
66
|
-
var _a;
|
|
67
|
-
items[(_a = this.order.get(index)) !== null && _a !== void 0 ? _a : index] = item;
|
|
68
|
-
});
|
|
69
|
-
return items;
|
|
70
|
-
}
|
|
71
|
-
updateItems() {
|
|
72
|
-
this.itemsChange.emit(this.getSortedItems());
|
|
73
|
-
this.updateEnabled();
|
|
74
|
-
}
|
|
75
|
-
updateEnabled() {
|
|
76
|
-
const enabled = this.getSortedItems().filter(item => this.isEnabled(item));
|
|
77
|
-
this.enabled = enabled;
|
|
78
|
-
this.enabledChange.emit(enabled);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
TuiReorderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiReorderComponent, deps: [{ token: TUI_REORDER_OPTIONS }, { token: TUI_TABLE_SHOW_HIDE_MESSAGE }], target: i0.ɵɵFactoryTarget.Component });
|
|
82
|
-
TuiReorderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiReorderComponent, selector: "tui-reorder", inputs: { items: "items", enabled: "enabled" }, outputs: { itemsChange: "itemsChange", enabledChange: "enabledChange" }, host: { listeners: { "focusout.stop": "noop()", "pointerdown.silent": "onDrag()", "document:pointerup.silent": "onDrop()" } }, ngImport: i0, template: "<tui-tiles\n class=\"t-wrapper\"\n [(order)]=\"order\"\n>\n <tui-tile\n *ngFor=\"let item of unsortedItems; let index = index\"\n tuiTileHandle\n [style.order]=\"order.get(index)\"\n >\n <div class=\"t-item\">\n <tui-svg\n class=\"t-icon\"\n [src]=\"options.icons.drag\"\n ></tui-svg>\n {{ item }}\n <button\n appearance=\"icon\"\n size=\"xs\"\n tuiIconButton\n type=\"button\"\n class=\"t-button\"\n [class.t-button_hidden]=\"!isEnabled(item)\"\n [icon]=\"getIcon(item)\"\n [title]=\"showHideText$ | async\"\n (click)=\"toggle(item)\"\n (keydown.arrowDown.prevent)=\"move(index, 1)\"\n (keydown.arrowUp.prevent)=\"move(index, -1)\"\n ></button>\n </div>\n </tui-tile>\n</tui-tiles>\n", styles: [":host{display:block;font:var(--tui-font-text-s);padding:.5rem 0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.t-wrapper{cursor:ns-resize;grid-auto-rows:2rem}.t-item{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:flex;height:2rem;align-items:center;padding:0 .75rem;background:var(--tui-base-01)}.t-item:hover{background:var(--tui-base-02)}.t-item:hover .t-button{opacity:1}.t-icon{margin-right:.5rem;color:var(--tui-base-05)}.t-button{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;margin-left:auto;opacity:0}.t-button_hidden,.t-button:focus{opacity:1}\n"], components: [{ type: i1.TuiTilesComponent, selector: "tui-tiles", inputs: ["debounce", "order"], outputs: ["orderChange"] }, { type: i1.TuiTileComponent, selector: "tui-tile", inputs: ["width", "height"] }, { type: i2.TuiSvgComponent, selector: "tui-svg", inputs: ["src"] }, { type: i2.TuiButtonComponent, selector: "button[tuiButton], button[tuiIconButton], a[tuiButton], a[tuiIconButton]", inputs: ["appearance", "disabled", "icon", "iconRight", "shape", "showLoader", "size"] }], directives: [{ type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.TuiTileHandleDirective, selector: "[tuiTileHandle]" }], pipes: { "async": i3.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
83
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiReorderComponent, decorators: [{
|
|
84
|
-
type: Component,
|
|
85
|
-
args: [{
|
|
86
|
-
selector: 'tui-reorder',
|
|
87
|
-
templateUrl: './reorder.template.html',
|
|
88
|
-
styleUrls: ['./reorder.style.less'],
|
|
89
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
90
|
-
}]
|
|
91
|
-
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
92
|
-
type: Inject,
|
|
93
|
-
args: [TUI_REORDER_OPTIONS]
|
|
94
|
-
}] }, { type: i4.Observable, decorators: [{
|
|
95
|
-
type: Inject,
|
|
96
|
-
args: [TUI_TABLE_SHOW_HIDE_MESSAGE]
|
|
97
|
-
}] }]; }, propDecorators: { items: [{
|
|
98
|
-
type: Input
|
|
99
|
-
}], enabled: [{
|
|
100
|
-
type: Input
|
|
101
|
-
}], itemsChange: [{
|
|
102
|
-
type: Output
|
|
103
|
-
}], enabledChange: [{
|
|
104
|
-
type: Output
|
|
105
|
-
}], noop: [{
|
|
106
|
-
type: HostListener,
|
|
107
|
-
args: ['focusout.stop']
|
|
108
|
-
}], onDrag: [{
|
|
109
|
-
type: HostListener,
|
|
110
|
-
args: ['pointerdown.silent']
|
|
111
|
-
}], onDrop: [{
|
|
112
|
-
type: HostListener,
|
|
113
|
-
args: ['document:pointerup.silent']
|
|
114
|
-
}] } });
|
|
115
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVvcmRlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hZGRvbi10YWJsZS9jb21wb25lbnRzL3Jlb3JkZXIvcmVvcmRlci5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hZGRvbi10YWJsZS9jb21wb25lbnRzL3Jlb3JkZXIvcmVvcmRlci50ZW1wbGF0ZS5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDSCx1QkFBdUIsRUFDdkIsU0FBUyxFQUNULFlBQVksRUFDWixZQUFZLEVBQ1osTUFBTSxFQUNOLEtBQUssRUFDTCxNQUFNLEdBQ1QsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUFDLDJCQUEyQixFQUFDLE1BQU0sOEJBQThCLENBQUM7QUFHekUsT0FBTyxFQUFDLG1CQUFtQixFQUFvQixNQUFNLG1CQUFtQixDQUFDOzs7Ozs7QUFRekUsTUFBTSxPQUFPLG1CQUFtQjtJQTBCNUIsWUFDMEMsT0FBMEIsRUFDbEIsYUFBaUM7UUFEekMsWUFBTyxHQUFQLE9BQU8sQ0FBbUI7UUFDbEIsa0JBQWEsR0FBYixhQUFhLENBQW9CO1FBM0IzRSxhQUFRLEdBQUcsS0FBSyxDQUFDO1FBYXpCLFlBQU8sR0FBaUIsRUFBRSxDQUFDO1FBR2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IHRoaXMub3B0aW9ucy5pY29ucy5oaWRlIDogdGhpcy5vcHRpb25zLmljb25zLnNob3c7XG4gICAgfVxuXG4gICAgdG9nZ2xlKHRvZ2dsZWQ6IFQpOiB2b2lkIHtcbiAgICAgICAgdGhpcy5lbmFibGVkID0gdGhpcy5pc0VuYWJsZWQodG9nZ2xlZClcbiAgICAgICAgICAgID8gdGhpcy5lbmFibGVkLmZpbHRlcihpdGVtID0+IGl0ZW0gIT09IHRvZ2dsZWQpXG4gICAgICAgICAgICA6IHRoaXMuZW5hYmxlZC5jb25jYXQodG9nZ2xlZCk7XG5cbiAgICAgICAgdGhpcy51cGRhdGVFbmFibGVkKCk7XG4gICAgfVxuXG4gICAgbW92ZShpbmRleDogbnVtYmVyLCBkaXJlY3Rpb246IG51bWJlcik6IHZvaWQge1xuICAgICAgICBjb25zdCBvbGRJbmRleCA9IHRoaXMub3JkZXIuZ2V0KGluZGV4KSA/PyBpbmRleDtcblxuICAgICAgICBpZiAoXG4gICAgICAgICAgICAoIW9sZEluZGV4ICYmIGRpcmVjdGlvbiA8IDApIHx8XG4gICAgICAgICAgICAob2xkSW5kZXggPT09IHRoaXMudW5zb3J0ZWRJdGVtcy5sZW5ndGggLSAxICYmIGRpcmVjdGlvbiA+IDApXG4gICAgICAgICkge1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG5cbiAgICAgICAgY29uc3QgbmV3SW5kZXggPSBvbGRJbmRleCArIGRpcmVjdGlvbjtcbiAgICAgICAgY29uc3Qgb2xkSXRlbSA9IEFycmF5LmZyb20odGhpcy5vcmRlci52YWx1ZXMoKSkuZmluZEluZGV4KFxuICAgICAgICAgICAgaXRlbSA9PiBpdGVtID09PSBuZXdJbmRleCxcbiAgICAgICAgKTtcblxuICAgICAgICB0aGlzLm9yZGVyLnNldChpbmRleCwgbmV3SW5kZXgpO1xuICAgICAgICB0aGlzLm9yZGVyLnNldChvbGRJdGVtLCBvbGRJbmRleCk7XG4gICAgICAgIHRoaXM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lxuICAgICAgICB0dWlUaWxlSGFuZGxlXG4gICAgICAgIFtzdHlsZS5vcmRlcl09XCJvcmRlci5nZXQoaW5kZXgpXCJcbiAgICA+XG4gICAgICAgIDxkaXYgY2xhc3M9XCJ0LWl0ZW1cIj5cbiAgICAgICAgICAgIDx0dWktc3ZnXG4gICAgICAgICAgICAgICAgY2xhc3M9XCJ0LWljb25cIlxuICAgICAgICAgICAgICAgIFtzcmNdPVwib3B0aW9ucy5pY29ucy5kcmFnXCJcbiAgICAgICAgICAgID48L3R1aS1zdmc+XG4gICAgICAgICAgICB7eyBpdGVtIH19XG4gICAgICAgICAgICA8YnV0dG9uXG4gICAgICAgICAgICAgICAgYXBwZWFyYW5jZT1cImljb25cIlxuICAgICAgICAgICAgICAgIHNpemU9XCJ4c1wiXG4gICAgICAgICAgICAgICAgdHVpSWNvbkJ1dHRvblxuICAgICAgICAgICAgICAgIHR5cGU9XCJidXR0b25cIlxuICAgICAgICAgICAgICAgIGNsYXNzPVwidC1idXR0b25cIlxuICAgICAgICAgICAgICAgIFtjbGFzcy50LWJ1dHRvbl9oaWRkZW5dPVwiIWlzRW5hYmxlZChpdGVtKVwiXG4gICAgICAgICAgICAgICAgW2ljb25dPVwiZ2V0SWNvbihpdGVtKVwiXG4gICAgICAgICAgICAgICAgW3RpdGxlXT1cInNob3dIaWRlVGV4dCQgfCBhc3luY1wiXG4gICAgICAgICAgICAgICAgKGNsaWNrKT1cInRvZ2dsZShpdGVtKVwiXG4gICAgICAgICAgICAgICAgKGtleWRvd24uYXJyb3dEb3duLnByZXZlbnQpPVwibW92ZShpbmRleCwgMSlcIlxuICAgICAgICAgICAgICAgIChrZXlkb3duLmFycm93VXAucHJldmVudCk9XCJtb3ZlKGluZGV4LCAtMSlcIlxuICAgICAgICAgICAgPjwvYnV0dG9uPlxuICAgICAgICA8L2Rpdj5cbiAgICA8L3R1aS10aWxlPlxuPC90dWktdGlsZXM+XG4iXX0=
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { ContentChildren, Directive, Inject, Input, Output, } from '@angular/core';
|
|
2
|
-
import { EMPTY_QUERY } from '@taiga-ui/cdk';
|
|
3
|
-
import { delay, filter, map } from 'rxjs/operators';
|
|
4
|
-
import { TuiSortableDirective } from './sortable.directive';
|
|
5
|
-
import { TuiTableDirective } from './table.directive';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
import * as i1 from "./table.directive";
|
|
8
|
-
export class TuiSortByDirective {
|
|
9
|
-
constructor(table) {
|
|
10
|
-
this.table = table;
|
|
11
|
-
this.sortables = EMPTY_QUERY;
|
|
12
|
-
this.tuiSortByChange = this.table.sorterChange.pipe(
|
|
13
|
-
// delay is for getting actual ContentChildren (sortables) https://github.com/angular/angular/issues/38976
|
|
14
|
-
delay(0), filter(() => !!this.sortables.length), map(sorter => this.getKey(sorter)));
|
|
15
|
-
this.tuiSortBy = null;
|
|
16
|
-
}
|
|
17
|
-
set sortBy(sortBy) {
|
|
18
|
-
this.tuiSortBy = sortBy;
|
|
19
|
-
this.checkSortables();
|
|
20
|
-
}
|
|
21
|
-
checkSortables() {
|
|
22
|
-
this.sortables.forEach(s => s.check());
|
|
23
|
-
}
|
|
24
|
-
getKey(sorter) {
|
|
25
|
-
var _a;
|
|
26
|
-
return ((_a = this.sortables.find(s => s.sorter === sorter)) === null || _a === void 0 ? void 0 : _a.key) || null;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
TuiSortByDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiSortByDirective, deps: [{ token: TuiTableDirective }], target: i0.ɵɵFactoryTarget.Directive });
|
|
30
|
-
TuiSortByDirective.ɵdir = i0.ɵɵ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 });
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiSortByDirective, decorators: [{
|
|
32
|
-
type: Directive,
|
|
33
|
-
args: [{
|
|
34
|
-
selector: 'table[tuiTable][tuiSortBy]',
|
|
35
|
-
}]
|
|
36
|
-
}], ctorParameters: function () { return [{ type: i1.TuiTableDirective, decorators: [{
|
|
37
|
-
type: Inject,
|
|
38
|
-
args: [TuiTableDirective]
|
|
39
|
-
}] }]; }, propDecorators: { sortables: [{
|
|
40
|
-
type: ContentChildren,
|
|
41
|
-
args: [TuiSortableDirective, { descendants: true }]
|
|
42
|
-
}], sortBy: [{
|
|
43
|
-
type: Input,
|
|
44
|
-
args: ['tuiSortBy']
|
|
45
|
-
}], tuiSortByChange: [{
|
|
46
|
-
type: Output
|
|
47
|
-
}] } });
|
|
48
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic29ydC1ieS5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hZGRvbi10YWJsZS9jb21wb25lbnRzL3RhYmxlL2RpcmVjdGl2ZXMvc29ydC1ieS5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNILGVBQWUsRUFDZixTQUFTLEVBQ1QsTUFBTSxFQUNOLEtBQUssRUFDTCxNQUFNLEdBRVQsTUFBTSxlQUFlLENBQUM7QUFFdkIsT0FBTyxFQUFDLFdBQVcsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUMxQyxPQUFPLEVBQUMsS0FBSyxFQUFFLE1BQU0sRUFBRSxHQUFHLEVBQUMsTUFBTSxnQkFBZ0IsQ0FBQztBQUVsRCxPQUFPLEVBQUMsb0JBQW9CLEVBQUMsTUFBTSxz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AgKSB7fVxuXG4gICAgY2hlY2tTb3J0YWJsZXMoKTogdm9pZCB7XG4gICAgICAgIHRoaXMuc29ydGFibGVzLmZvckVhY2gocyA9PiBzLmNoZWNrKCkpO1xuICAgIH1cblxuICAgIHByaXZhdGUgZ2V0S2V5KHNvcnRlcjogVHVpQ29tcGFyYXRvcjxUPiB8IG51bGwpOiBrZXlvZiBUIHwgbnVsbCB7XG4gICAgICAgIHJldHVybiB0aGlzLnNvcnRhYmxlcy5maW5kKHMgPT4gcy5zb3J0ZXIgPT09IHNvcnRlcik/LmtleSB8fCBudWxsO1xuICAgIH1cbn1cbiJdfQ==
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, ContentChild, ContentChildren, EventEmitter, forwardRef, Inject, Input, Output, } from '@angular/core';
|
|
2
|
-
import { EMPTY_QUERY } from '@taiga-ui/cdk';
|
|
3
|
-
import { TUI_ARROW_OPTIONS } from '@taiga-ui/kit';
|
|
4
|
-
import { TuiRowDirective } from '../directives/row.directive';
|
|
5
|
-
import { TuiTableDirective } from '../directives/table.directive';
|
|
6
|
-
import { TuiTableSortPipe } from '../pipes/table-sort.pipe';
|
|
7
|
-
import { TUI_TABLE_PROVIDER } from '../providers/table.provider';
|
|
8
|
-
import { TUI_TABLE_OPTIONS } from '../table.options';
|
|
9
|
-
import { TuiTrComponent } from '../tr/tr.component';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
import * as i1 from "@taiga-ui/core";
|
|
12
|
-
import * as i2 from "@angular/common";
|
|
13
|
-
import * as i3 from "@tinkoff/ng-polymorpheus";
|
|
14
|
-
import * as i4 from "@taiga-ui/cdk";
|
|
15
|
-
import * as i5 from "../pipes/table-sort.pipe";
|
|
16
|
-
import * as i6 from "../directives/table.directive";
|
|
17
|
-
export class TuiTbodyComponent {
|
|
18
|
-
constructor(pipe, options, arrowOptions, table) {
|
|
19
|
-
this.pipe = pipe;
|
|
20
|
-
this.options = options;
|
|
21
|
-
this.arrowOptions = arrowOptions;
|
|
22
|
-
this.table = table;
|
|
23
|
-
this.data = [];
|
|
24
|
-
this.open = this.options.open;
|
|
25
|
-
this.openChange = new EventEmitter();
|
|
26
|
-
this.rows = EMPTY_QUERY;
|
|
27
|
-
this.toContext = ($implicit, index) => ({ $implicit, index });
|
|
28
|
-
}
|
|
29
|
-
get sorted() {
|
|
30
|
-
return this.pipe.transform(this.data);
|
|
31
|
-
}
|
|
32
|
-
onClick() {
|
|
33
|
-
this.open = !this.open;
|
|
34
|
-
this.openChange.emit(this.open);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
TuiTbodyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiTbodyComponent, deps: [{ token: TuiTableSortPipe }, { token: TUI_TABLE_OPTIONS }, { token: TUI_ARROW_OPTIONS }, { token: forwardRef(() => TuiTableDirective) }], target: i0.ɵɵFactoryTarget.Component });
|
|
38
|
-
TuiTbodyComponent.ɵcmp = i0.ɵɵ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.forwardRef(function () { return TuiRowDirective; }), descendants: true }, { propertyName: "rows", predicate: i0.forwardRef(function () { return TuiTrComponent; }) }], ngImport: i0, 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.TuiSvgComponent, selector: "tui-svg", inputs: ["src"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "tuiMapper": i4.TuiMapperPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
39
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiTbodyComponent, decorators: [{
|
|
40
|
-
type: Component,
|
|
41
|
-
args: [{
|
|
42
|
-
selector: 'tbody[tuiTbody]',
|
|
43
|
-
templateUrl: './tbody.template.html',
|
|
44
|
-
styleUrls: ['./tbody.style.less'],
|
|
45
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
46
|
-
providers: TUI_TABLE_PROVIDER,
|
|
47
|
-
}]
|
|
48
|
-
}], ctorParameters: function () { return [{ type: i5.TuiTableSortPipe, decorators: [{
|
|
49
|
-
type: Inject,
|
|
50
|
-
args: [TuiTableSortPipe]
|
|
51
|
-
}] }, { type: undefined, decorators: [{
|
|
52
|
-
type: Inject,
|
|
53
|
-
args: [TUI_TABLE_OPTIONS]
|
|
54
|
-
}] }, { type: undefined, decorators: [{
|
|
55
|
-
type: Inject,
|
|
56
|
-
args: [TUI_ARROW_OPTIONS]
|
|
57
|
-
}] }, { type: i6.TuiTableDirective, decorators: [{
|
|
58
|
-
type: Inject,
|
|
59
|
-
args: [forwardRef(() => TuiTableDirective)]
|
|
60
|
-
}] }]; }, propDecorators: { data: [{
|
|
61
|
-
type: Input
|
|
62
|
-
}], heading: [{
|
|
63
|
-
type: Input
|
|
64
|
-
}], open: [{
|
|
65
|
-
type: Input
|
|
66
|
-
}], openChange: [{
|
|
67
|
-
type: Output
|
|
68
|
-
}], row: [{
|
|
69
|
-
type: ContentChild,
|
|
70
|
-
args: [forwardRef(() => TuiRowDirective)]
|
|
71
|
-
}], rows: [{
|
|
72
|
-
type: ContentChildren,
|
|
73
|
-
args: [forwardRef(() => TuiTrComponent)]
|
|
74
|
-
}] } });
|
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mV0dXJuIHRoaXMucGlwZS50cmFuc2Zvcm0odGhpcy5kYXRhKTtcbiAgICB9XG5cbiAgICByZWFkb25seSB0b0NvbnRleHQgPSAoXG4gICAgICAgICRpbXBsaWNpdDogVCxcbiAgICAgICAgaW5kZXg6IG51bWJlcixcbiAgICApOiB7JGltcGxpY2l0OiBUOyBpbmRleDogbnVtYmVyfSA9PiAoeyRpbXBsaWNpdCwgaW5kZXh9KTtcblxuICAgIG9uQ2xpY2soKTogdm9pZCB7XG4gICAgICAgIHRoaXMub3BlbiA9ICF0aGlzLm9wZW47XG4gICAgICAgIHRoaXMub3BlbkNoYW5nZS5lbWl0KHRoaXMub3Blbik7XG4gICAgfVxufVxuIiwiPHRyICpuZ0lmPVwiaGVhZGluZ1wiPlxuICAgIDx0aFxuICAgICAgICBjbGFzcz1cInQtaGVhZGluZ1wiXG4gICAgICAgIFtjb2xTcGFuXT1cInRhYmxlLmNvbHVtbnMubGVuZ3RoXCJcbiAgICA+XG4gICAgICAgIDxidXR0b25cbiAgICAgICAgICAgIHR5cGU9XCJidXR0b25cIlxuICAgICAgICAgICAgY2xhc3M9XCJ0LWV4cGFuZFwiXG4gICAgICAgICAgICAoY2xpY2spPVwib25DbGljaygpXCJcbiAgICAgICAgPlxuICAgICAgICAgICAgPHNwYW4gY2xhc3M9XCJ0LW5hbWVcIj5cbiAgICAgICAgICAgICAgICA8bmctY29udGFpbmVyICpwb2x5bW9ycGhldXNPdXRsZXQ9XCJoZWFkaW5nIGFzIHRleHRcIj5cbiAgICAgICAgICAgICAgICAgICAge3sgdGV4dCB9fVxuICAgICAgICAgICAgICAgIDwvbmctY29udGFpbmVyPlxuICAgICAgICAgICAgPC9zcGFuPlxuICAgICAgICAgICAgPHR1aS1zdmdcbiAgICAgICAgICAgICAgICBjbGFzcz1cInQtY2hldnJvblwiXG4gICAgICAgICAgICAgICAgW2NsYXNzLnQtY2hldnJvbl9yb3RhdGVkXT1cIm9wZW5cIlxuICAgICAgICAgICAgICAgIFtzcmNdPVwiYXJyb3dPcHRpb25zLmljb25MYXJnZVwiXG4gICAgICAgICAgICA+PC90dWktc3ZnPlxuICAgICAgICA8L2J1dHRvbj5cbiAgICA8L3RoPlxuPC90cj5cbjxuZy1jb250YWluZXIgKm5nSWY9XCJvcGVuXCI+XG4gICAgPG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50PlxuPC9uZy1jb250YWluZXI+XG48bmctY29udGFpbmVyICpuZ0lmPVwib3BlbiAmJiByb3dcIj5cbiAgICA8bmctY29udGFpbmVyXG4gICAgICAgICpuZ0Zvcj1cImxldCBpdGVtIG9mIHNvcnRlZDsgbGV0IGluZGV4ID0gaW5kZXhcIlxuICAgICAgICBbbmdUZW1wbGF0ZU91dGxldF09XCJyb3cudGVtcGxhdGVcIlxuICAgICAgICBbbmdUZW1wbGF0ZU91dGxldENvbnRleHRdPVwiaXRlbSB8IHR1aU1hcHBlcjogdG9Db250ZXh0IDogaW5kZXhcIlxuICAgID48L25nLWNvbnRhaW5lcj5cbjwvbmctY29udGFpbmVyPlxuIl19
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, ContentChild, HostBinding, } from '@angular/core';
|
|
2
|
-
import { NgControl } from '@angular/forms';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class TuiTdComponent {
|
|
5
|
-
}
|
|
6
|
-
TuiTdComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiTdComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
7
|
-
TuiTdComponent.ɵcmp = i0.ɵɵ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: NgControl, descendants: true }], ngImport: i0, template: `
|
|
8
|
-
<ng-content></ng-content>
|
|
9
|
-
`, 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.ChangeDetectionStrategy.OnPush });
|
|
10
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiTdComponent, decorators: [{
|
|
11
|
-
type: Component,
|
|
12
|
-
args: [{
|
|
13
|
-
selector: 'th[tuiTd], td[tuiTd]',
|
|
14
|
-
template: `
|
|
15
|
-
<ng-content></ng-content>
|
|
16
|
-
`,
|
|
17
|
-
styleUrls: ['./td.style.less'],
|
|
18
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
19
|
-
}]
|
|
20
|
-
}], propDecorators: { control: [{
|
|
21
|
-
type: HostBinding,
|
|
22
|
-
args: ['class._editable']
|
|
23
|
-
}, {
|
|
24
|
-
type: ContentChild,
|
|
25
|
-
args: [NgControl]
|
|
26
|
-
}] } });
|
|
27
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2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