@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,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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVvcmRlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hZGRvbi10YWJsZS9jb21wb25lbnRzL3Jlb3JkZXIvcmVvcmRlci5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hZGRvbi10YWJsZS9jb21wb25lbnRzL3Jlb3JkZXIvcmVvcmRlci50ZW1wbGF0ZS5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDSCx1QkFBdUIsRUFDdkIsU0FBUyxFQUNULFlBQVksRUFDWixZQUFZLEVBQ1osTUFBTSxFQUNOLEtBQUssRUFDTCxNQUFNLEdBQ1QsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUFDLDJCQUEyQixFQUFDLE1BQU0sOEJBQThCLENBQUM7QUFHekUsT0FBTyxFQUFDLG1CQUFtQixFQUFvQixNQUFNLG1CQUFtQixDQUFDOzs7Ozs7QUFRekUsTUFBTSxPQUFPLG1CQUFtQjtJQTBCNUIsWUFDMEMsT0FBMEIsRUFDbEIsYUFBaUM7UUFEekMsWUFBTyxHQUFQLE9BQU8sQ0FBbUI7UUFDbEIsa0JBQWEsR0FBYixhQUFhLENBQW9CO1FBM0IzRSxhQUFRLEdBQUcsS0FBSyxDQUFDO1FBYXpCLFlBQU8sR0FB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mlzRW5hYmxlZChpdGVtKSA/IHRoaXMub3B0aW9ucy5pY29ucy5oaWRlIDogdGhpcy5vcHRpb25zLmljb25zLnNob3c7XG4gICAgfVxuXG4gICAgdG9nZ2xlKHRvZ2dsZWQ6IFQpOiB2b2lkIHtcbiAgICAgICAgdGhpcy5lbmFibGVkID0gdGhpcy5pc0VuYWJsZWQodG9nZ2xlZClcbiAgICAgICAgICAgID8gdGhpcy5lbmFibGVkLmZpbHRlcihpdGVtID0+IGl0ZW0gIT09IHRvZ2dsZWQpXG4gICAgICAgICAgICA6IHRoaXMuZW5hYmxlZC5jb25jYXQodG9nZ2xlZCk7XG5cbiAgICAgICAgdGhpcy51cGRhdGVFbmFibGVkKCk7XG4gICAgfVxuXG4gICAgbW92ZShpbmRleDogbnVtYmVyLCBkaXJlY3Rpb246IG51bWJlcik6IHZvaWQge1xuICAgICAgICBjb25zdCBvbGRJbmRleCA9IHRoaXMub3JkZXIuZ2V0KGluZGV4KSA/PyBpbmRleDtcblxuICAgICAgICBpZiAoXG4gICAgICAgICAgICAoIW9sZEluZGV4ICYmIGRpcmVjdGlvbiA8IDApIHx8XG4gICAgICAgICAgICAob2xkSW5kZXggPT09IHRoaXMudW5zb3J0ZWRJdGVtcy5sZW5ndGggLSAxICYmIGRpcmVjdGlvbiA+IDApXG4gICAgICAgICkge1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG5cbiAgICAgICAgY29uc3QgbmV3SW5kZXggPSBvbGRJbmRleCArIGRpcmVjdGlvbjtcbiAgICAgICAgY29uc3Qgb2xkSXRlbSA9IEFycmF5LmZyb20odGhpcy5vcmRlci52YWx1ZXMoKSkuZmluZEluZGV4KFxuICAgICAgICAgICAgaXRlbSA9PiBpdGVtID09PSBuZXdJbmRleCxcbiAgICAgICAgKTtcblxuICAgICAgICB0aGlzLm9yZGVyLnNldChpbmRleCwgbmV3SW5kZXgpO1xuICAgICAgICB0aGlzLm9yZGVyLnNldChvbGRJdGVtLCBvbGRJbm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V0IGluZGV4ID0gaW5kZXhcIlxuICAgICAgICB0dWlUaWxlSGFuZGxlXG4gICAgICAgIFtzdHlsZS5vcmRlcl09XCJvcmRlci5nZXQoaW5kZXgpXCJcbiAgICA+XG4gICAgICAgIDxkaXYgY2xhc3M9XCJ0LWl0ZW1cIj5cbiAgICAgICAgICAgIDx0dWktc3ZnXG4gICAgICAgICAgICAgICAgY2xhc3M9XCJ0LWljb25cIlxuICAgICAgICAgICAgICAgIFtzcmNdPVwib3B0aW9ucy5pY29ucy5kcmFnXCJcbiAgICAgICAgICAgID48L3R1aS1zdmc+XG4gICAgICAgICAgICB7eyBpdGVtIH19XG4gICAgICAgICAgICA8YnV0dG9uXG4gICAgICAgICAgICAgICAgYXBwZWFyYW5jZT1cImljb25cIlxuICAgICAgICAgICAgICAgIHNpemU9XCJ4c1wiXG4gICAgICAgICAgICAgICAgdHVpSWNvbkJ1dHRvblxuICAgICAgICAgICAgICAgIHR5cGU9XCJidXR0b25cIlxuICAgICAgICAgICAgICAgIGNsYXNzPVwidC1idXR0b25cIlxuICAgICAgICAgICAgICAgIFtjbGFzcy50LWJ1dHRvbl9oaWRkZW5dPVwiIWlzRW5hYmxlZChpdGVtKVwiXG4gICAgICAgICAgICAgICAgW2ljb25dPVwiZ2V0SWNvbihpdGVtKVwiXG4gICAgICAgICAgICAgICAgW3RpdGxlXT1cInNob3dIaWRlVGV4dCQgfCBhc3luY1wiXG4gICAgICAgICAgICAgICAgKGNsaWNrKT1cInRvZ2dsZShpdGVtKVwiXG4gICAgICAgICAgICAgICAgKGtleWRvd24uYXJyb3dEb3duLnByZXZlbnQpPVwibW92ZShpbmRleCwgMSlcIlxuICAgICAgICAgICAgICAgIChrZXlkb3duLmFycm93VXAucHJldmVudCk9XCJtb3ZlKGluZGV4LCAtMSlcIlxuICAgICAgICAgICAgPjwvYnV0dG9uPlxuICAgICAgICA8L2Rpdj5cbiAgICA8L3R1aS10aWxlPlxuPC90dWktdGlsZXM+XG4iXX0=
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { Directive, Inject, Input, Output } from '@angular/core';
|
|
2
|
-
import { map } from 'rxjs/operators';
|
|
3
|
-
import { TuiTableDirective } from './table.directive';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "./table.directive";
|
|
6
|
-
export class TuiDirectionOrderDirective {
|
|
7
|
-
constructor(table) {
|
|
8
|
-
this.table = table;
|
|
9
|
-
this.directionOrderChange = this.table.directionChange.pipe(map(dir => (dir === 1 ? 'asc' : 'desc')));
|
|
10
|
-
}
|
|
11
|
-
set directionOrder(order) {
|
|
12
|
-
this.table.direction = order === 'asc' ? 1 : -1;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
TuiDirectionOrderDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiDirectionOrderDirective, deps: [{ token: TuiTableDirective }], target: i0.ɵɵFactoryTarget.Directive });
|
|
16
|
-
TuiDirectionOrderDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiDirectionOrderDirective, selector: "table[tuiTable][tuiDirectionOrder]", inputs: { directionOrder: "directionOrder" }, outputs: { directionOrderChange: "directionOrderChange" }, ngImport: i0 });
|
|
17
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiDirectionOrderDirective, decorators: [{
|
|
18
|
-
type: Directive,
|
|
19
|
-
args: [{
|
|
20
|
-
selector: 'table[tuiTable][tuiDirectionOrder]',
|
|
21
|
-
}]
|
|
22
|
-
}], ctorParameters: function () { return [{ type: i1.TuiTableDirective, decorators: [{
|
|
23
|
-
type: Inject,
|
|
24
|
-
args: [TuiTableDirective]
|
|
25
|
-
}] }]; }, propDecorators: { directionOrder: [{
|
|
26
|
-
type: Input
|
|
27
|
-
}], directionOrderChange: [{
|
|
28
|
-
type: Output
|
|
29
|
-
}] } });
|
|
30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HRhYmxlOiBUdWlUYWJsZURpcmVjdGl2ZTxUPixcbiAgICApIHt9XG59XG4iXX0=
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { DOCUMENT } from '@angular/common';
|
|
2
|
-
import { Directive, ElementRef, Inject, Output } from '@angular/core';
|
|
3
|
-
import { tuiPreventDefault, tuiTypedFromEvent } from '@taiga-ui/cdk';
|
|
4
|
-
import { TUI_ELEMENT_REF } from '@taiga-ui/core';
|
|
5
|
-
import { distinctUntilChanged, map, switchMap, takeUntil } from 'rxjs/operators';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export class TuiResizedDirective {
|
|
8
|
-
constructor(doc, el, parentRef) {
|
|
9
|
-
this.doc = doc;
|
|
10
|
-
this.el = el;
|
|
11
|
-
this.parentRef = parentRef;
|
|
12
|
-
this.tuiResized = tuiTypedFromEvent(this.el.nativeElement, 'mousedown').pipe(tuiPreventDefault(), switchMap(() => {
|
|
13
|
-
const { width, right } = this.parentRef.nativeElement.getBoundingClientRect();
|
|
14
|
-
return tuiTypedFromEvent(this.doc, 'mousemove').pipe(distinctUntilChanged(), map(({ clientX }) => width + clientX - right), takeUntil(tuiTypedFromEvent(this.doc, 'mouseup')));
|
|
15
|
-
}));
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
TuiResizedDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiResizedDirective, deps: [{ token: DOCUMENT }, { token: ElementRef }, { token: TUI_ELEMENT_REF }], target: i0.ɵɵFactoryTarget.Directive });
|
|
19
|
-
TuiResizedDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiResizedDirective, selector: "[tuiResized]", outputs: { tuiResized: "tuiResized" }, ngImport: i0 });
|
|
20
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiResizedDirective, decorators: [{
|
|
21
|
-
type: Directive,
|
|
22
|
-
args: [{
|
|
23
|
-
selector: '[tuiResized]',
|
|
24
|
-
}]
|
|
25
|
-
}], ctorParameters: function () { return [{ type: Document, decorators: [{
|
|
26
|
-
type: Inject,
|
|
27
|
-
args: [DOCUMENT]
|
|
28
|
-
}] }, { type: i0.ElementRef, decorators: [{
|
|
29
|
-
type: Inject,
|
|
30
|
-
args: [ElementRef]
|
|
31
|
-
}] }, { type: i0.ElementRef, decorators: [{
|
|
32
|
-
type: Inject,
|
|
33
|
-
args: [TUI_ELEMENT_REF]
|
|
34
|
-
}] }]; }, propDecorators: { tuiResized: [{
|
|
35
|
-
type: Output
|
|
36
|
-
}] } });
|
|
37
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzaXplZC5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hZGRvbi10YWJsZS9jb21wb25lbnRzL3RhYmxlL2RpcmVjdGl2ZXMvcmVzaXplZC5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFFBQVEsRUFBQyxNQUFNLGlCQUFpQixDQUFDO0FBQ3pDLE9BQU8sRUFBQyxTQUFTLEVBQUUsVUFBVSxFQUFFLE1BQU0sRUFBRSxNQUFNLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDcEUsT0FBTyxFQUFDLGlCQUFpQixFQUFFLGlCQUFpQixFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ25FLE9BQU8sRUFBQyxlQUFlLEVBQUMsTUFBTSxnQkFBZ0IsQ0FBQztBQUMvQyxPQUFPLEVBQUMsb0JBQW9CLEVBQUUsR0FBRyxFQUFFLFNBQVMsRUFBRSxTQUFTLEVBQUMsTUFBTSxnQkFBZ0IsQ0FBQzs7QUFLL0UsTUFBTSxPQUFPLG1CQUFtQj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WxDaGFuZ2VkKCksXG4gICAgICAgICAgICAgICAgbWFwKCh7Y2xpZW50WH0pID0+IHdpZHRoICsgY2xpZW50WCAtIHJpZ2h0KSxcbiAgICAgICAgICAgICAgICB0YWtlVW50aWwodHVpVHlwZWRGcm9tRXZlbnQodGhpcy5kb2MsICdtb3VzZXVwJykpLFxuICAgICAgICAgICAgKTtcbiAgICAgICAgfSksXG4gICAgKTtcblxuICAgIGNvbnN0cnVjdG9yKFxuICAgICAgICBASW5qZWN0KERPQ1VNRU5UKSBwcml2YXRlIHJlYWRvbmx5IGRvYzogRG9jdW1lbnQsXG4gICAgICAgIEBJbmplY3QoRWxlbWVudFJlZilcbiAgICAgICAgcHJpdmF0ZSByZWFkb25seSBlbDogRWxlbWVudFJlZjxIVE1MRWxlbWVudD4sXG4gICAgICAgIEBJbmplY3QoVFVJX0VMRU1FTlRfUkVGKVxuICAgICAgICBwcml2YXRlIHJlYWRvbmx5IHBhcmVudFJlZjogRWxlbWVudFJlZjxIVE1MVGFibGVIZWFkZXJDZWxsRWxlbWVudD4sXG4gICAgKSB7fVxufVxuIl19
|
|
@@ -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
|
-
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G4gICAgfVxuXG4gICAgQE91dHB1dCgpXG4gICAgcmVhZG9ubHkgdHVpU29ydEJ5Q2hhbmdlID0gdGhpcy50YWJsZS5zb3J0ZXJDaGFuZ2UucGlwZShcbiAgICAgICAgLy8gZGVsYXkgaXMgZm9yIGdldHRpbmcgYWN0dWFsIENvbnRlbnRDaGlsZHJlbiAoc29ydGFibGVzKSBodHRwczovL2dpdGh1Yi5jb20vYW5ndWxhci9hbmd1bGFyL2lzc3Vlcy8zODk3NlxuICAgICAgICBkZWxheSgwKSxcbiAgICAgICAgZmlsdGVyKCgpID0+ICEhdGhpcy5zb3J0YWJsZXMubGVuZ3RoKSxcbiAgICAgICAgbWFwKHNvcnRlciA9PiB0aGlzLmdldEtleShzb3J0ZXIpKSxcbiAgICApO1xuXG4gICAgdHVpU29ydEJ5OiBzdHJpbmcgfCBrZXlvZiBUIHwgbnVsbCA9IG51bGw7XG5cbiAgICBjb25zdHJ1Y3RvcihcbiAgICAgICAgQEluamVjdChUdWlUYWJsZURpcmVjdGl2ZSkgcHJpdmF0ZSByZWFkb25seSB0YWJsZTogVHVpVGFibGVEaXJlY3RpdmU8VD4sXG4gICAgKSB7fVxuXG4gICAgY2hlY2tTb3J0YWJsZXMoKTogdm9pZCB7XG4gICAgICAgIHRoaXMuc29ydGFibGVzLmZvckVhY2gocyA9PiBzLmNoZWNrKCkpO1xuICAgIH1cblxuICAgIHByaXZhdGUgZ2V0S2V5KHNvcnRlcjogVHVpQ29tcGFyYXRvcjxUPiB8IG51bGwpOiBrZXlvZiBUIHwgbnVsbCB7XG4gICAgICAgIHJldHVybiB0aGlzLnNvcnRhYmxlcy5maW5kKHMgPT4gcy5zb3J0ZXIgPT09IHNvcnRlcik/LmtleSB8fCBudWxsO1xuICAgIH1cbn1cbiJdfQ==
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ElementRef, InjectionToken } from '@angular/core';
|
|
2
|
-
import { IntersectionObserverService } from '@ng-web-apis/intersection-observer';
|
|
3
|
-
import { map } from 'rxjs/operators';
|
|
4
|
-
/**
|
|
5
|
-
* Stream of sticky stuck events
|
|
6
|
-
*/
|
|
7
|
-
export const TUI_STUCK = new InjectionToken(`[TUI_STUCK]`);
|
|
8
|
-
export const TUI_STUCK_PROVIDER = {
|
|
9
|
-
provide: TUI_STUCK,
|
|
10
|
-
deps: [ElementRef, IntersectionObserverService],
|
|
11
|
-
useFactory: ({ nativeElement }, entries$) => {
|
|
12
|
-
const stream$ = entries$.pipe(map(([{ intersectionRatio }]) => intersectionRatio < 1));
|
|
13
|
-
nativeElement[`$.class._stuck`] = stream$;
|
|
14
|
-
return stream$;
|
|
15
|
-
},
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3R1Y2sucHJvdmlkZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hZGRvbi10YWJsZS9jb21wb25lbnRzL3RhYmxlL3Byb3ZpZGVycy9zdHVjay5wcm92aWRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsVUFBVSxFQUFFLGNBQWMsRUFBVyxNQUFNLGVBQWUsQ0FBQztBQUNuRSxPQUFPLEVBQUMsMkJBQTJCLEVBQUMsTUFBTSxvQ0FBb0MsQ0FBQztBQUUvRSxPQUFPLEVBQUMsR0FBRyxFQUFDLE1BQU0sZ0JBQWdCLENBQUM7QUFFbkM7O0dBRUc7QUFDSCxNQUFNLENBQUMsTUFBTSxTQUFTLEdBQUcsSUFBSSxjQUFjLENBQVUsYUFBYSxDQUFDLENBQUM7QUFFcEUsTUFBTSxDQUFDLE1BQU0sa0JBQWtCLEdBQWE7SUFDeEMsT0FBTyxFQUFFLFNBQVM7SUFDbEIsSUFBSSxFQUFFLENBQUMsVUFBVSxFQUFFLDJCQUEyQixDQUFDO0lBQy9DLFVBQVUsR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