@taiga-ui/addon-table 2.54.0 → 3.0.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/taiga-ui-addon-table-components-reorder.umd.js +423 -298
- package/bundles/taiga-ui-addon-table-components-reorder.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-table-components-table-pagination.umd.js +445 -313
- package/bundles/taiga-ui-addon-table-components-table-pagination.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-table-components-table.umd.js +859 -646
- package/bundles/taiga-ui-addon-table-components-table.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-table-components.umd.js +11 -25
- package/bundles/taiga-ui-addon-table-components.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-table-directives-table-filters.umd.js +559 -0
- package/bundles/taiga-ui-addon-table-directives-table-filters.umd.js.map +1 -0
- package/bundles/taiga-ui-addon-table-directives.umd.js +21 -0
- package/bundles/taiga-ui-addon-table-directives.umd.js.map +1 -0
- package/bundles/taiga-ui-addon-table-interfaces.umd.js +2 -2
- package/bundles/taiga-ui-addon-table-interfaces.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-table-tokens.umd.js +10 -6
- package/bundles/taiga-ui-addon-table-tokens.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-table-types.umd.js +2 -2
- package/bundles/taiga-ui-addon-table-types.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-table-utils.umd.js +8 -4
- package/bundles/taiga-ui-addon-table-utils.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-table.umd.js +23 -17
- package/bundles/taiga-ui-addon-table.umd.js.map +1 -1
- package/components/index.d.ts +0 -1
- package/components/package.json +2 -5
- package/components/reorder/package.json +2 -5
- package/components/reorder/reorder.component.d.ts +3 -0
- package/components/reorder/reorder.module.d.ts +9 -0
- package/components/reorder/taiga-ui-addon-table-components-reorder.d.ts +1 -0
- package/components/table/directives/cell.directive.d.ts +3 -0
- package/components/table/directives/head.directive.d.ts +3 -0
- package/components/table/directives/resized.directive.d.ts +3 -0
- package/components/table/directives/row.directive.d.ts +3 -0
- package/components/table/directives/sort-by.directive.d.ts +3 -0
- package/components/table/directives/sortable.directive.d.ts +3 -0
- package/components/table/directives/table.directive.d.ts +5 -2
- package/components/table/directives/thead.directive.d.ts +3 -0
- package/components/table/package.json +2 -5
- package/components/table/pipes/table-sort.pipe.d.ts +3 -0
- package/components/table/providers/table.provider.d.ts +0 -2
- package/components/table/providers/table.providers.d.ts +0 -4
- package/components/table/table.module.d.ts +22 -0
- package/components/table/taiga-ui-addon-table-components-table.d.ts +1 -0
- package/components/table/tbody/tbody.component.d.ts +3 -0
- package/components/table/td/td.component.d.ts +3 -0
- package/components/table/th/th.component.d.ts +3 -0
- package/components/table/th-group/th-group.component.d.ts +3 -0
- package/components/table/tr/tr.component.d.ts +3 -0
- package/components/table-pagination/package.json +2 -5
- package/components/table-pagination/table-pagination.component.d.ts +3 -0
- package/components/table-pagination/table-pagination.module.d.ts +8 -0
- package/components/table-pagination/taiga-ui-addon-table-components-table-pagination.d.ts +1 -0
- package/components/taiga-ui-addon-table-components.d.ts +1 -0
- package/directives/index.d.ts +1 -0
- package/directives/package.json +10 -0
- package/directives/table-filters/abstract-table-filter.d.ts +3 -0
- package/directives/table-filters/generic-filter.directive.d.ts +8 -0
- package/directives/table-filters/index.d.ts +7 -0
- package/directives/table-filters/package.json +10 -0
- package/directives/table-filters/table-filter.d.ts +5 -0
- package/directives/table-filters/table-filter.directive.d.ts +21 -0
- package/directives/table-filters/table-filters.directive.d.ts +14 -0
- package/directives/table-filters/table-filters.module.d.ts +10 -0
- package/directives/table-filters/table-filters.pipe.d.ts +11 -0
- package/directives/table-filters/taiga-ui-addon-table-directives-table-filters.d.ts +5 -0
- package/{components/resizable-column/taiga-ui-addon-table-components-resizable-column.d.ts → directives/taiga-ui-addon-table-directives.d.ts} +1 -0
- package/esm2015/components/index.js +1 -2
- package/esm2015/components/reorder/index.js +1 -1
- package/esm2015/components/reorder/reorder.component.js +35 -29
- package/esm2015/components/reorder/reorder.module.js +26 -13
- package/esm2015/components/reorder/taiga-ui-addon-table-components-reorder.js +1 -1
- package/esm2015/components/table/directives/cell.directive.js +19 -16
- package/esm2015/components/table/directives/head.directive.js +17 -17
- package/esm2015/components/table/directives/resized.directive.js +25 -23
- package/esm2015/components/table/directives/row.directive.js +18 -15
- package/esm2015/components/table/directives/sort-by.directive.js +26 -23
- package/esm2015/components/table/directives/sortable.directive.js +24 -18
- package/esm2015/components/table/directives/table.directive.js +49 -40
- package/esm2015/components/table/directives/thead.directive.js +33 -25
- package/esm2015/components/table/index.js +1 -1
- package/esm2015/components/table/pipes/table-sort.pipe.js +18 -15
- package/esm2015/components/table/providers/stuck.provider.js +3 -3
- package/esm2015/components/table/providers/table.provider.js +3 -5
- package/esm2015/components/table/providers/table.providers.js +7 -11
- package/esm2015/components/table/table.module.js +69 -41
- package/esm2015/components/table/taiga-ui-addon-table-components-table.js +1 -1
- package/esm2015/components/table/tbody/tbody.component.js +44 -33
- package/esm2015/components/table/td/td.component.js +25 -17
- package/esm2015/components/table/th/th.component.js +55 -35
- package/esm2015/components/table/th-group/th-group.component.js +27 -23
- package/esm2015/components/table/tr/tr.component.js +28 -22
- package/esm2015/components/table-pagination/index.js +1 -1
- package/esm2015/components/table-pagination/table-pagination-options.js +2 -2
- package/esm2015/components/table-pagination/table-pagination.component.js +40 -31
- package/esm2015/components/table-pagination/table-pagination.module.js +30 -13
- package/esm2015/components/table-pagination/taiga-ui-addon-table-components-table-pagination.js +1 -1
- package/esm2015/components/taiga-ui-addon-table-components.js +1 -1
- package/esm2015/directives/index.js +2 -0
- package/esm2015/directives/table-filters/abstract-table-filter.js +3 -0
- package/esm2015/directives/table-filters/generic-filter.directive.js +35 -0
- package/esm2015/directives/table-filters/index.js +8 -0
- package/esm2015/directives/table-filters/table-filter.directive.js +61 -0
- package/esm2015/directives/table-filters/table-filter.js +2 -0
- package/esm2015/directives/table-filters/table-filters.directive.js +36 -0
- package/esm2015/directives/table-filters/table-filters.module.js +35 -0
- package/esm2015/directives/table-filters/table-filters.pipe.js +24 -0
- package/esm2015/directives/table-filters/taiga-ui-addon-table-directives-table-filters.js +5 -0
- package/esm2015/directives/taiga-ui-addon-table-directives.js +5 -0
- package/esm2015/index.js +3 -1
- package/esm2015/interfaces/index.js +2 -1
- package/esm2015/interfaces/row-context.js +2 -1
- package/esm2015/interfaces/taiga-ui-addon-table-interfaces.js +2 -1
- package/esm2015/taiga-ui-addon-table.js +1 -1
- package/esm2015/tokens/i18n.js +5 -5
- package/esm2015/tokens/index.js +1 -1
- package/esm2015/tokens/taiga-ui-addon-table-tokens.js +1 -1
- package/esm2015/types/comparator.js +2 -1
- package/esm2015/types/index.js +2 -1
- package/esm2015/types/taiga-ui-addon-table-types.js +2 -1
- package/esm2015/utils/default-sort.js +3 -3
- package/esm2015/utils/index.js +1 -1
- package/esm2015/utils/taiga-ui-addon-table-utils.js +1 -1
- package/fesm2015/taiga-ui-addon-table-components-reorder.js +60 -39
- package/fesm2015/taiga-ui-addon-table-components-reorder.js.map +1 -1
- package/fesm2015/taiga-ui-addon-table-components-table-pagination.js +69 -41
- package/fesm2015/taiga-ui-addon-table-components-table-pagination.js.map +1 -1
- package/fesm2015/taiga-ui-addon-table-components-table.js +435 -337
- package/fesm2015/taiga-ui-addon-table-components-table.js.map +1 -1
- package/fesm2015/taiga-ui-addon-table-components.js +0 -1
- package/fesm2015/taiga-ui-addon-table-components.js.map +1 -1
- package/fesm2015/taiga-ui-addon-table-directives-table-filters.js +180 -0
- package/fesm2015/taiga-ui-addon-table-directives-table-filters.js.map +1 -0
- package/fesm2015/taiga-ui-addon-table-directives.js +6 -0
- package/fesm2015/taiga-ui-addon-table-directives.js.map +1 -0
- package/fesm2015/taiga-ui-addon-table-interfaces.js.map +1 -1
- package/fesm2015/taiga-ui-addon-table-tokens.js +4 -4
- package/fesm2015/taiga-ui-addon-table-tokens.js.map +1 -1
- package/fesm2015/taiga-ui-addon-table-types.js.map +1 -1
- package/fesm2015/taiga-ui-addon-table-utils.js +2 -2
- package/fesm2015/taiga-ui-addon-table-utils.js.map +1 -1
- package/fesm2015/taiga-ui-addon-table.js +2 -0
- package/fesm2015/taiga-ui-addon-table.js.map +1 -1
- package/index.d.ts +1 -0
- package/interfaces/package.json +2 -5
- package/interfaces/taiga-ui-addon-table-interfaces.d.ts +1 -0
- package/package.json +12 -15
- package/taiga-ui-addon-table.d.ts +1 -0
- package/tokens/package.json +2 -5
- package/tokens/taiga-ui-addon-table-tokens.d.ts +1 -0
- package/types/package.json +2 -5
- package/types/taiga-ui-addon-table-types.d.ts +1 -0
- package/utils/package.json +2 -5
- package/utils/taiga-ui-addon-table-utils.d.ts +1 -0
- package/bundles/taiga-ui-addon-table-components-reorder.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-table-components-reorder.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-table-components-resizable-column.umd.js +0 -338
- package/bundles/taiga-ui-addon-table-components-resizable-column.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-table-components-resizable-column.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-table-components-resizable-column.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-table-components-table-pagination.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-table-components-table-pagination.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-table-components-table.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-table-components-table.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-table-components.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-table-components.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-table-interfaces.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-table-interfaces.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-table-tokens.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-table-tokens.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-table-types.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-table-types.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-table-utils.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-table-utils.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-table.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-table.umd.min.js.map +0 -1
- package/components/reorder/taiga-ui-addon-table-components-reorder.metadata.json +0 -1
- package/components/resizable-column/index.d.ts +0 -3
- package/components/resizable-column/package.json +0 -13
- package/components/resizable-column/resizable-column.component.d.ts +0 -5
- package/components/resizable-column/resizable-column.directive.d.ts +0 -9
- package/components/resizable-column/resizable-column.module.d.ts +0 -3
- package/components/resizable-column/taiga-ui-addon-table-components-resizable-column.metadata.json +0 -1
- package/components/table/taiga-ui-addon-table-components-table.metadata.json +0 -1
- package/components/table-pagination/taiga-ui-addon-table-components-table-pagination.metadata.json +0 -1
- package/components/taiga-ui-addon-table-components.metadata.json +0 -1
- package/esm2015/components/resizable-column/index.js +0 -4
- package/esm2015/components/resizable-column/resizable-column.component.js +0 -30
- package/esm2015/components/resizable-column/resizable-column.directive.js +0 -37
- package/esm2015/components/resizable-column/resizable-column.module.js +0 -15
- package/esm2015/components/resizable-column/taiga-ui-addon-table-components-resizable-column.js +0 -5
- package/esm5/components/index.js +0 -5
- package/esm5/components/reorder/index.js +0 -3
- package/esm5/components/reorder/reorder.component.js +0 -72
- package/esm5/components/reorder/reorder.module.js +0 -27
- package/esm5/components/reorder/taiga-ui-addon-table-components-reorder.js +0 -5
- package/esm5/components/resizable-column/index.js +0 -4
- package/esm5/components/resizable-column/resizable-column.component.js +0 -31
- package/esm5/components/resizable-column/resizable-column.directive.js +0 -42
- package/esm5/components/resizable-column/resizable-column.module.js +0 -18
- package/esm5/components/resizable-column/taiga-ui-addon-table-components-resizable-column.js +0 -5
- package/esm5/components/table/directives/cell.directive.js +0 -25
- package/esm5/components/table/directives/head.directive.js +0 -22
- package/esm5/components/table/directives/resized.directive.js +0 -41
- package/esm5/components/table/directives/row.directive.js +0 -28
- package/esm5/components/table/directives/sort-by.directive.js +0 -41
- package/esm5/components/table/directives/sortable.directive.js +0 -52
- package/esm5/components/table/directives/table.directive.js +0 -88
- package/esm5/components/table/directives/thead.directive.js +0 -33
- package/esm5/components/table/index.js +0 -19
- package/esm5/components/table/pipes/table-sort.pipe.js +0 -31
- package/esm5/components/table/providers/stuck.provider.js +0 -21
- package/esm5/components/table/providers/table.provider.js +0 -17
- package/esm5/components/table/providers/table.providers.js +0 -48
- package/esm5/components/table/table.module.js +0 -63
- package/esm5/components/table/taiga-ui-addon-table-components-table.js +0 -5
- package/esm5/components/table/tbody/tbody.component.js +0 -70
- package/esm5/components/table/td/td.component.js +0 -22
- package/esm5/components/table/th/th.component.js +0 -88
- package/esm5/components/table/th-group/th-group.component.js +0 -42
- package/esm5/components/table/tr/tr.component.js +0 -45
- package/esm5/components/table-pagination/index.js +0 -4
- package/esm5/components/table-pagination/table-pagination-options.js +0 -17
- package/esm5/components/table-pagination/table-pagination.component.js +0 -113
- package/esm5/components/table-pagination/table-pagination.module.js +0 -28
- package/esm5/components/table-pagination/taiga-ui-addon-table-components-table-pagination.js +0 -5
- package/esm5/components/taiga-ui-addon-table-components.js +0 -5
- package/esm5/index.js +0 -4
- package/esm5/interfaces/index.js +0 -1
- package/esm5/interfaces/row-context.js +0 -1
- package/esm5/interfaces/taiga-ui-addon-table-interfaces.js +0 -4
- package/esm5/taiga-ui-addon-table.js +0 -5
- package/esm5/tokens/i18n.js +0 -9
- package/esm5/tokens/index.js +0 -2
- package/esm5/tokens/taiga-ui-addon-table-tokens.js +0 -5
- package/esm5/types/comparator.js +0 -1
- package/esm5/types/index.js +0 -1
- package/esm5/types/taiga-ui-addon-table-types.js +0 -4
- package/esm5/utils/default-sort.js +0 -18
- package/esm5/utils/index.js +0 -2
- package/esm5/utils/taiga-ui-addon-table-utils.js +0 -5
- package/fesm2015/taiga-ui-addon-table-components-resizable-column.js +0 -79
- package/fesm2015/taiga-ui-addon-table-components-resizable-column.js.map +0 -1
- package/fesm5/taiga-ui-addon-table-components-reorder.js +0 -99
- package/fesm5/taiga-ui-addon-table-components-reorder.js.map +0 -1
- package/fesm5/taiga-ui-addon-table-components-resizable-column.js +0 -88
- package/fesm5/taiga-ui-addon-table-components-resizable-column.js.map +0 -1
- package/fesm5/taiga-ui-addon-table-components-table-pagination.js +0 -156
- package/fesm5/taiga-ui-addon-table-components-table-pagination.js.map +0 -1
- package/fesm5/taiga-ui-addon-table-components-table.js +0 -669
- package/fesm5/taiga-ui-addon-table-components-table.js.map +0 -1
- package/fesm5/taiga-ui-addon-table-components.js +0 -9
- package/fesm5/taiga-ui-addon-table-components.js.map +0 -1
- package/fesm5/taiga-ui-addon-table-interfaces.js +0 -4
- package/fesm5/taiga-ui-addon-table-interfaces.js.map +0 -1
- package/fesm5/taiga-ui-addon-table-tokens.js +0 -16
- package/fesm5/taiga-ui-addon-table-tokens.js.map +0 -1
- package/fesm5/taiga-ui-addon-table-types.js +0 -4
- package/fesm5/taiga-ui-addon-table-types.js.map +0 -1
- package/fesm5/taiga-ui-addon-table-utils.js +0 -25
- package/fesm5/taiga-ui-addon-table-utils.js.map +0 -1
- package/fesm5/taiga-ui-addon-table.js +0 -8
- package/fesm5/taiga-ui-addon-table.js.map +0 -1
- package/interfaces/taiga-ui-addon-table-interfaces.metadata.json +0 -1
- package/taiga-ui-addon-table.metadata.json +0 -1
- package/tokens/taiga-ui-addon-table-tokens.metadata.json +0 -1
- package/types/taiga-ui-addon-table-types.metadata.json +0 -1
- package/utils/taiga-ui-addon-table-utils.metadata.json +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@taiga-ui/addon-table/directives/table-filters';
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AbstractTuiTableFilter } from './abstract-table-filter';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class TuiGenericFilterDirective<T, G> extends AbstractTuiTableFilter<T, G> {
|
|
4
|
+
tuiGenericFilter: (item: T, value: G) => boolean;
|
|
5
|
+
filter(item: T, value: G): boolean;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TuiGenericFilterDirective<any, any>, never>;
|
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiGenericFilterDirective<any, any>, "[tuiGenericFilter]", never, { "tuiGenericFilter": "tuiGenericFilter"; }, {}, never>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './abstract-table-filter';
|
|
2
|
+
export * from './generic-filter.directive';
|
|
3
|
+
export * from './table-filter';
|
|
4
|
+
export * from './table-filter.directive';
|
|
5
|
+
export * from './table-filters.directive';
|
|
6
|
+
export * from './table-filters.module';
|
|
7
|
+
export * from './table-filters.pipe';
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
2
|
+
import { NgControl } from '@angular/forms';
|
|
3
|
+
import { TuiHeadDirective } from '@taiga-ui/addon-table/components';
|
|
4
|
+
import { AbstractTuiTableFilter } from './abstract-table-filter';
|
|
5
|
+
import { TuiTableFilter } from './table-filter';
|
|
6
|
+
import { TuiTableFiltersDirective } from './table-filters.directive';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class TuiTableFilterDirective<T> implements OnDestroy, TuiTableFilter<T> {
|
|
9
|
+
private readonly head;
|
|
10
|
+
private readonly delegate;
|
|
11
|
+
private readonly control;
|
|
12
|
+
readonly filters: TuiTableFiltersDirective<T>;
|
|
13
|
+
tuiTableFilter?: keyof T;
|
|
14
|
+
readonly refresh$: import("rxjs").Observable<any>;
|
|
15
|
+
constructor(head: TuiHeadDirective<T> | null, delegate: AbstractTuiTableFilter<T[keyof T], any>, control: NgControl, filters: TuiTableFiltersDirective<T>);
|
|
16
|
+
ngOnDestroy(): void;
|
|
17
|
+
filter(item: T): boolean;
|
|
18
|
+
private get key();
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TuiTableFilterDirective<any>, [{ optional: true; }, null, null, null]>;
|
|
20
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiTableFilterDirective<any>, "[tuiTableFilter]", never, { "tuiTableFilter": "tuiTableFilter"; }, {}, never>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { TuiTableFilter } from './table-filter';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class TuiTableFiltersDirective<T> {
|
|
5
|
+
private readonly refresh$;
|
|
6
|
+
private filters;
|
|
7
|
+
register(filter: TuiTableFilter<T>): void;
|
|
8
|
+
unregister(filter: TuiTableFilter<T>): void;
|
|
9
|
+
filter(items: readonly T[]): Observable<readonly T[]>;
|
|
10
|
+
private check;
|
|
11
|
+
private update;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TuiTableFiltersDirective<any>, never>;
|
|
13
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiTableFiltersDirective<any>, "[tuiTableFilters]", never, {}, {}, never>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./table-filters.directive";
|
|
3
|
+
import * as i2 from "./table-filter.directive";
|
|
4
|
+
import * as i3 from "./table-filters.pipe";
|
|
5
|
+
import * as i4 from "./generic-filter.directive";
|
|
6
|
+
export declare class TuiTableFiltersModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TuiTableFiltersModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TuiTableFiltersModule, [typeof i1.TuiTableFiltersDirective, typeof i2.TuiTableFilterDirective, typeof i3.TuiTableFiltersPipe, typeof i4.TuiGenericFilterDirective], never, [typeof i1.TuiTableFiltersDirective, typeof i2.TuiTableFilterDirective, typeof i3.TuiTableFiltersPipe, typeof i4.TuiGenericFilterDirective]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<TuiTableFiltersModule>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { TuiTableFiltersDirective } from './table-filters.directive';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class TuiTableFiltersPipe<T> implements PipeTransform {
|
|
6
|
+
private readonly filters;
|
|
7
|
+
constructor(filters: TuiTableFiltersDirective<T>);
|
|
8
|
+
transform(items: readonly T[]): Observable<readonly T[]>;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TuiTableFiltersPipe<any>, never>;
|
|
10
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<TuiTableFiltersPipe<any>, "tuiTableFilters">;
|
|
11
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export * from '@taiga-ui/addon-table/components/reorder';
|
|
2
|
-
export * from '@taiga-ui/addon-table/components/resizable-column';
|
|
3
2
|
export * from '@taiga-ui/addon-table/components/table';
|
|
4
3
|
export * from '@taiga-ui/addon-table/components/table-pagination';
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9hZGRvbi10YWJsZS9jb21wb25lbnRzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsMENBQTBDLENBQUM7QUFDekQsY0FBYyx3Q0FBd0MsQ0FBQztBQUN2RCxjQUFjLG1EQUFtRCxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnQHRhaWdhLXVpL2FkZG9uLXRhYmxlL2NvbXBvbmVudHMvcmVvcmRlcic7XG5leHBvcnQgKiBmcm9tICdAdGFpZ2EtdWkvYWRkb24tdGFibGUvY29tcG9uZW50cy90YWJsZSc7XG5leHBvcnQgKiBmcm9tICdAdGFpZ2EtdWkvYWRkb24tdGFibGUvY29tcG9uZW50cy90YWJsZS1wYWdpbmF0aW9uJztcbiJdfQ==
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export * from './reorder.component';
|
|
2
2
|
export * from './reorder.module';
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hZGRvbi10YWJsZS9jb21wb25lbnRzL3Jlb3JkZXIvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxxQkFBcUIsQ0FBQztBQUNwQyxjQUFjLGtCQUFrQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9yZW9yZGVyLmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL3Jlb3JkZXIubW9kdWxlJztcbiJdfQ==
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
import { __decorate
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
2
|
import { moveItemInArray } from '@angular/cdk/drag-drop';
|
|
3
3
|
import { Component, EventEmitter, HostListener, Inject, Input, Output, } from '@angular/core';
|
|
4
4
|
import { TUI_TABLE_SHOW_HIDE_MESSAGE } from '@taiga-ui/addon-table/tokens';
|
|
5
5
|
import { tuiDefaultProp } from '@taiga-ui/cdk';
|
|
6
|
-
import
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
import * as i1 from "@taiga-ui/core";
|
|
8
|
+
import * as i2 from "@angular/cdk/drag-drop";
|
|
9
|
+
import * as i3 from "@angular/common";
|
|
10
|
+
import * as i4 from "@taiga-ui/cdk";
|
|
11
|
+
import * as i5 from "rxjs";
|
|
7
12
|
// @bad TODO: a11y
|
|
8
|
-
|
|
13
|
+
export class TuiReorderComponent {
|
|
9
14
|
constructor(showHideText$) {
|
|
10
15
|
this.showHideText$ = showHideText$;
|
|
11
16
|
this.items = [];
|
|
@@ -18,7 +23,7 @@ let TuiReorderComponent = class TuiReorderComponent {
|
|
|
18
23
|
return this.enabled.includes(item);
|
|
19
24
|
}
|
|
20
25
|
getIcon(item) {
|
|
21
|
-
return this.isEnabled(item) ?
|
|
26
|
+
return this.isEnabled(item) ? `tuiIconEyeOpen` : `tuiIconEyeClosed`;
|
|
22
27
|
}
|
|
23
28
|
toggle(toggled) {
|
|
24
29
|
const enabled = this.isEnabled(toggled)
|
|
@@ -37,34 +42,35 @@ let TuiReorderComponent = class TuiReorderComponent {
|
|
|
37
42
|
this.enabled = enabled;
|
|
38
43
|
this.enabledChange.emit(enabled);
|
|
39
44
|
}
|
|
40
|
-
}
|
|
41
|
-
TuiReorderComponent
|
|
42
|
-
{ type:
|
|
43
|
-
];
|
|
45
|
+
}
|
|
46
|
+
TuiReorderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiReorderComponent, deps: [{ token: TUI_TABLE_SHOW_HIDE_MESSAGE }], target: i0.ɵɵFactoryTarget.Component });
|
|
47
|
+
TuiReorderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TuiReorderComponent, selector: "tui-reorder", inputs: { items: "items", enabled: "enabled" }, outputs: { itemsChange: "itemsChange", enabledChange: "enabledChange" }, host: { listeners: { "focusout.stop": "noop()" } }, ngImport: i0, template: "<div\n cdkDropList\n class=\"wrapper\"\n (cdkDropListDropped)=\"drop($event)\"\n>\n <div\n *ngFor=\"let item of items\"\n tabindex=\"-1\"\n cdkDrag\n class=\"item\"\n >\n <tui-svg\n src=\"tuiIconDrag\"\n class=\"icon\"\n ></tui-svg>\n {{ item }}\n <button\n type=\"button\"\n tuiIconButton\n appearance=\"icon\"\n size=\"xs\"\n tuiPreventDefault=\"mousedown\"\n class=\"button\"\n [class.button_hidden]=\"!isEnabled(item)\"\n [title]=\"showHideText$ | async\"\n [icon]=\"getIcon(item)\"\n (click)=\"toggle(item)\"\n ></button>\n </div>\n</div>\n", styles: [":host{display:block;font:var(--tui-font-text-s);padding:.5rem 0}.item{transition-property:background;transition-duration:.3s;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:flex;height:2rem;align-items:center;padding:0 .75rem;cursor:ns-resize;background:var(--tui-base-01);outline:none}.item:hover{background:var(--tui-base-02)}.item:hover .button{opacity:1}.icon{margin-right:.5rem;color:var(--tui-base-05)}.button{transition-property:opacity;transition-duration:.3s;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;margin-left:auto;opacity:0}.button_hidden{opacity:1}.cdk-drag-placeholder{opacity:0}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.wrapper.cdk-drop-list-dragging .item:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.wrapper.cdk-drop-list-dragging .item:not(.cdk-drag-placeholder):hover{background:var(--tui-base-01)}.wrapper.cdk-drop-list-dragging .item:not(.cdk-drag-placeholder) .button{display:none}\n"], components: [{ type: i1.TuiSvgComponent, selector: "tui-svg", inputs: ["src"] }, { type: i1.TuiButtonComponent, selector: "button[tuiButton], button[tuiIconButton], a[tuiButton], a[tuiIconButton]", inputs: ["appearance", "disabled", "icon", "iconRight", "shape", "showLoader", "size"] }], directives: [{ type: i2.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "id", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListAutoScrollDisabled", "cdkDropListOrientation", "cdkDropListLockAxis", "cdkDropListData", "cdkDropListAutoScrollStep"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragDisabled", "cdkDragStartDelay", "cdkDragLockAxis", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragBoundary", "cdkDragRootElement", "cdkDragPreviewContainer", "cdkDragData", "cdkDragFreeDragPosition"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { type: i4.TuiPreventDefaultDirective, selector: "[tuiPreventDefault]" }], pipes: { "async": i3.AsyncPipe } });
|
|
44
48
|
__decorate([
|
|
45
|
-
Input(),
|
|
46
49
|
tuiDefaultProp()
|
|
47
50
|
], TuiReorderComponent.prototype, "items", void 0);
|
|
48
51
|
__decorate([
|
|
49
|
-
Input(),
|
|
50
52
|
tuiDefaultProp()
|
|
51
53
|
], TuiReorderComponent.prototype, "enabled", void 0);
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
],
|
|
69
|
-
|
|
70
|
-
|
|
54
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiReorderComponent, decorators: [{
|
|
55
|
+
type: Component,
|
|
56
|
+
args: [{
|
|
57
|
+
selector: `tui-reorder`,
|
|
58
|
+
templateUrl: `./reorder.template.html`,
|
|
59
|
+
styleUrls: [`./reorder.style.less`],
|
|
60
|
+
}]
|
|
61
|
+
}], ctorParameters: function () { return [{ type: i5.Observable, decorators: [{
|
|
62
|
+
type: Inject,
|
|
63
|
+
args: [TUI_TABLE_SHOW_HIDE_MESSAGE]
|
|
64
|
+
}] }]; }, propDecorators: { items: [{
|
|
65
|
+
type: Input
|
|
66
|
+
}], enabled: [{
|
|
67
|
+
type: Input
|
|
68
|
+
}], itemsChange: [{
|
|
69
|
+
type: Output
|
|
70
|
+
}], enabledChange: [{
|
|
71
|
+
type: Output
|
|
72
|
+
}], noop: [{
|
|
73
|
+
type: HostListener,
|
|
74
|
+
args: [`focusout.stop`]
|
|
75
|
+
}] } });
|
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7XG4gICAgICAgIHRoaXMuZW5hYmxlZENoYW5nZS5lbWl0KGVuYWJsZWQpO1xuICAgIH1cbn1cbiIsIjxkaXZcbiAgICBjZGtEcm9wTGlzdFxuICAgIGNsYXNzPVwid3JhcHBlclwiXG4gICAgKGNka0Ryb3BMaXN0RHJvcHBlZCk9XCJkcm9wKCRldmVudClcIlxuPlxuICAgIDxkaXZcbiAgICAgICAgKm5nRm9yPVwibGV0IGl0ZW0gb2YgaXRlbXNcIlxuICAgICAgICB0YWJpbmRleD1cIi0xXCJcbiAgICAgICAgY2RrRHJhZ1xuICAgICAgICBjbGFzcz1cIml0ZW1cIlxuICAgID5cbiAgICAgICAgPHR1aS1zdmdcbiAgICAgICAgICAgIHNyYz1cInR1aUljb25EcmFnXCJcbiAgICAgICAgICAgIGNsYXNzPVwiaWNvblwiXG4gICAgICAgID48L3R1aS1zdmc+XG4gICAgICAgIHt7IGl0ZW0gfX1cbiAgICAgICAgPGJ1dHRvblxuICAgICAgICAgICAgdHlwZT1cImJ1dHRvblwiXG4gICAgICAgICAgICB0dWlJY29uQnV0dG9uXG4gICAgICAgICAgICBhcHBlYXJhbmNlPVwiaWNvblwiXG4gICAgICAgICAgICBzaXplPVwieHNcIlxuICAgICAgICAgICAgdHVpUHJldmVudERlZmF1bHQ9XCJtb3VzZWRvd25cIlxuICAgICAgICAgICAgY2xhc3M9XCJidXR0b25cIlxuICAgICAgICAgICAgW2NsYXNzLmJ1dHRvbl9oaWRkZW5dPVwiIWlzRW5hYmxlZChpdGVtKVwiXG4gICAgICAgICAgICBbdGl0bGVdPVwic2hvd0hpZGVUZXh0JCB8IGFzeW5jXCJcbiAgICAgICAgICAgIFtpY29uXT1cImdldEljb24oaXRlbSlcIlxuICAgICAgICAgICAgKGNsaWNrKT1cInRvZ2dsZShpdGVtKVwiXG4gICAgICAgID48L2J1dHRvbj5cbiAgICA8L2Rpdj5cbjwvZGl2PlxuIl19
|
|
@@ -1,24 +1,37 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
1
|
import { DragDropModule } from '@angular/cdk/drag-drop';
|
|
3
2
|
import { CommonModule } from '@angular/common';
|
|
4
3
|
import { NgModule } from '@angular/core';
|
|
5
4
|
import { TuiPreventDefaultModule } from '@taiga-ui/cdk';
|
|
6
5
|
import { TuiButtonModule, TuiSvgModule } from '@taiga-ui/core';
|
|
7
6
|
import { TuiReorderComponent } from './reorder.component';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export class TuiReorderModule {
|
|
9
|
+
}
|
|
10
|
+
TuiReorderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiReorderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
11
|
+
TuiReorderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiReorderModule, declarations: [TuiReorderComponent], imports: [CommonModule,
|
|
12
|
+
DragDropModule,
|
|
13
|
+
TuiSvgModule,
|
|
14
|
+
TuiButtonModule,
|
|
15
|
+
TuiPreventDefaultModule], exports: [TuiReorderComponent] });
|
|
16
|
+
TuiReorderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiReorderModule, imports: [[
|
|
13
17
|
CommonModule,
|
|
14
18
|
DragDropModule,
|
|
15
19
|
TuiSvgModule,
|
|
16
20
|
TuiButtonModule,
|
|
17
21
|
TuiPreventDefaultModule,
|
|
18
|
-
]
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
]] });
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiReorderModule, decorators: [{
|
|
24
|
+
type: NgModule,
|
|
25
|
+
args: [{
|
|
26
|
+
imports: [
|
|
27
|
+
CommonModule,
|
|
28
|
+
DragDropModule,
|
|
29
|
+
TuiSvgModule,
|
|
30
|
+
TuiButtonModule,
|
|
31
|
+
TuiPreventDefaultModule,
|
|
32
|
+
],
|
|
33
|
+
declarations: [TuiReorderComponent],
|
|
34
|
+
exports: [TuiReorderComponent],
|
|
35
|
+
}]
|
|
36
|
+
}] });
|
|
37
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVvcmRlci5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hZGRvbi10YWJsZS9jb21wb25lbnRzL3Jlb3JkZXIvcmVvcmRlci5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLGNBQWMsRUFBQyxNQUFNLHdCQUF3QixDQUFDO0FBQ3RELE9BQU8sRUFBQyxZQUFZLEVBQUMsTUFBTSxpQkFBaUIsQ0FBQztBQUM3QyxPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ3ZDLE9BQU8sRUFBQyx1QkFBdUIsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUN0RCxPQUFPLEVBQUMsZUFBZSxFQUFFLFlBQVksRUFBQyxNQUFNLGdCQUFnQixDQUFDO0FBRTdELE9BQU8sRUFBQyxtQkFBbUIsRUFBQyxNQUFNLHFCQUFxQixDQUFDOztBQWF4RCxNQUFNLE9BQU8sZ0JBQWdCOzs4R0FBaEIsZ0JBQWdCOytHQUFoQixnQkFBZ0IsaUJBSFYsbUJBQW1CLGFBTjlCLFlBQVk7UUFDWixjQUFjO1FBQ2QsWUFBWTtRQUNaLGVBQWU7UUFDZix1QkFBdUIsYUFHakIsbUJBQW1COytHQUVwQixnQkFBZ0IsWUFWaEI7WUFDTCxZQUFZO1lBQ1osY0FBYztZ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uZW50XSxcbn0pXG5leHBvcnQgY2xhc3MgVHVpUmVvcmRlck1vZHVsZSB7fVxuIl19
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Generated bundle index. Do not edit.
|
|
3
3
|
*/
|
|
4
4
|
export * from './index';
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFpZ2EtdWktYWRkb24tdGFibGUtY29tcG9uZW50cy1yZW9yZGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYWRkb24tdGFibGUvY29tcG9uZW50cy9yZW9yZGVyL3RhaWdhLXVpLWFkZG9uLXRhYmxlLWNvbXBvbmVudHMtcmVvcmRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcbiJdfQ==
|
|
@@ -1,24 +1,27 @@
|
|
|
1
|
-
import { __decorate
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
2
|
import { Directive, Inject, Input, TemplateRef } from '@angular/core';
|
|
3
3
|
import { tuiDefaultProp } from '@taiga-ui/cdk';
|
|
4
|
-
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export class TuiCellDirective {
|
|
5
6
|
constructor(template) {
|
|
6
7
|
this.template = template;
|
|
7
|
-
this.tuiCell =
|
|
8
|
+
this.tuiCell = ``;
|
|
8
9
|
}
|
|
9
|
-
}
|
|
10
|
-
TuiCellDirective
|
|
11
|
-
|
|
12
|
-
];
|
|
10
|
+
}
|
|
11
|
+
TuiCellDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiCellDirective, deps: [{ token: TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
12
|
+
TuiCellDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiCellDirective, selector: "[tuiCell]", inputs: { tuiCell: "tuiCell" }, ngImport: i0 });
|
|
13
13
|
__decorate([
|
|
14
|
-
Input(),
|
|
15
14
|
tuiDefaultProp()
|
|
16
15
|
], TuiCellDirective.prototype, "tuiCell", void 0);
|
|
17
|
-
TuiCellDirective
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
],
|
|
23
|
-
|
|
24
|
-
|
|
16
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiCellDirective, decorators: [{
|
|
17
|
+
type: Directive,
|
|
18
|
+
args: [{
|
|
19
|
+
selector: `[tuiCell]`,
|
|
20
|
+
}]
|
|
21
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
|
|
22
|
+
type: Inject,
|
|
23
|
+
args: [TemplateRef]
|
|
24
|
+
}] }]; }, propDecorators: { tuiCell: [{
|
|
25
|
+
type: Input
|
|
26
|
+
}] } });
|
|
27
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2VsbC5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hZGRvbi10YWJsZS9jb21wb25lbnRzL3RhYmxlL2RpcmVjdGl2ZXMvY2VsbC5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsTUFBTSxFQUFFLEtBQUssRUFBRSxXQUFXLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDcEUsT0FBTyxFQUFDLGNBQWMsRUFBQyxNQUFNLGVBQWUsQ0FBQzs7QUFLN0MsTUFBTSxPQUFPLGdCQUFnQjtJQUt6QixZQUNrQyxRQUE4QztRQUE5QyxhQUFRLEdBQVIsUUFBUSxDQUFzQztRQUhoRixZQUFPLEdBQUcsRUFBRSxDQUFDO0lBSVYsQ0FBQzs7OEdBUEssZ0JBQWdCLGtCQU1iLFdBQVc7a0dBTmQsZ0JBQWdCO0FBR3pCO0lBREMsY0FBYyxFQUFFO2lEQUNKOzRGQUhKLGdCQUFnQjtrQkFINUIsU0FBUzttQkFBQztvQkFDUCxRQUFRLEVBQUUsV0FBVztpQkFDeEI7OzBCQU9RLE1BQU07MkJBQUMsV0FBVzs0Q0FIdkIsT0FBTztzQkFGTixLQUFLIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtEaXJlY3RpdmUsIEluamVjdCwgSW5wdXQsIFRlbXBsYXRlUmVmfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7dHVpRGVmYXVsdFByb3B9IGZyb20gJ0B0YWlnYS11aS9jZGsnO1xuXG5ARGlyZWN0aXZlKHtcbiAgICBzZWxlY3RvcjogYFt0dWlDZWxsXWAsXG59KVxuZXhwb3J0IGNsYXNzIFR1aUNlbGxEaXJlY3RpdmUge1xuICAgIEBJbnB1dCgpXG4gICAgQHR1aURlZmF1bHRQcm9wKClcbiAgICB0dWlDZWxsID0gYGA7XG5cbiAgICBjb25zdHJ1Y3RvcihcbiAgICAgICAgQEluamVjdChUZW1wbGF0ZVJlZikgcmVhZG9ubHkgdGVtcGxhdGU6IFRlbXBsYXRlUmVmPFJlY29yZDxzdHJpbmcsIHVua25vd24+PixcbiAgICApIHt9XG59XG4iXX0=
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { __decorate, __param } from "tslib";
|
|
2
1
|
import { Directive, Inject, Input, TemplateRef } from '@angular/core';
|
|
3
|
-
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export class TuiHeadDirective {
|
|
4
4
|
constructor(template) {
|
|
5
5
|
this.template = template;
|
|
6
6
|
}
|
|
7
|
-
}
|
|
8
|
-
TuiHeadDirective
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
7
|
+
}
|
|
8
|
+
TuiHeadDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiHeadDirective, deps: [{ token: TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
9
|
+
TuiHeadDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiHeadDirective, selector: "[tuiHead]", inputs: { tuiHead: "tuiHead" }, ngImport: i0 });
|
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiHeadDirective, decorators: [{
|
|
11
|
+
type: Directive,
|
|
12
|
+
args: [{
|
|
13
|
+
selector: `[tuiHead]`,
|
|
14
|
+
}]
|
|
15
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
|
|
16
|
+
type: Inject,
|
|
17
|
+
args: [TemplateRef]
|
|
18
|
+
}] }]; }, propDecorators: { tuiHead: [{
|
|
19
|
+
type: Input
|
|
20
|
+
}] } });
|
|
21
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGVhZC5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hZGRvbi10YWJsZS9jb21wb25lbnRzL3RhYmxlL2RpcmVjdGl2ZXMvaGVhZC5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFNBQVMsRUFBRSxNQUFNLEVBQUUsS0FBSyxFQUFFLFdBQVcsRUFBQyxNQUFNLGVBQWUsQ0FBQzs7QUFLcEUsTUFBTSxPQUFPLGdCQUFnQjtJQUl6QixZQUNrQyxRQUE4QztRQUE5QyxhQUFRLEdBQVIsUUFBUSxDQUFzQztJQUM3RSxDQUFDOzs4R0FOSyxnQkFBZ0Isa0JBS2IsV0FBVztrR0FMZCxnQkFBZ0I7NEZBQWhCLGdCQUFnQjtrQkFINUIsU0FBUzttQkFBQztvQkFDUCxRQUFRLEVBQUUsV0FBVztpQkFDeEI7OzBCQU1RLE1BQU07MkJBQUMsV0FBVzs0Q0FIdkIsT0FBTztzQkFETixLQUFLIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtEaXJlY3RpdmUsIEluamVjdCwgSW5wdXQsIFRlbXBsYXRlUmVmfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuQERpcmVjdGl2ZSh7XG4gICAgc2VsZWN0b3I6IGBbdHVpSGVhZF1gLFxufSlcbmV4cG9ydCBjbGFzcyBUdWlIZWFkRGlyZWN0aXZlPFQgZXh0ZW5kcyBSZWNvcmQ8YW55LCBhbnk+PiB7XG4gICAgQElucHV0KClcbiAgICB0dWlIZWFkIToga2V5b2YgVDtcblxuICAgIGNvbnN0cnVjdG9yKFxuICAgICAgICBASW5qZWN0KFRlbXBsYXRlUmVmKSByZWFkb25seSB0ZW1wbGF0ZTogVGVtcGxhdGVSZWY8UmVjb3JkPHN0cmluZywgdW5rbm93bj4+LFxuICAgICkge31cbn1cbiJdfQ==
|
|
@@ -1,36 +1,38 @@
|
|
|
1
|
-
import { __decorate, __param } from "tslib";
|
|
2
1
|
import { DOCUMENT } from '@angular/common';
|
|
3
2
|
import { Directive, ElementRef, Inject, Output } from '@angular/core';
|
|
4
3
|
import { preventDefault, typedFromEvent } from '@taiga-ui/cdk';
|
|
5
4
|
import { TUI_ELEMENT_REF } from '@taiga-ui/core';
|
|
6
5
|
import { distinctUntilChanged, map, switchMap, takeUntil } from 'rxjs/operators';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
7
|
// @dynamic
|
|
8
|
-
|
|
8
|
+
export class TuiResizedDirective {
|
|
9
9
|
constructor(documentRef, elementRef, parentRef) {
|
|
10
10
|
this.documentRef = documentRef;
|
|
11
11
|
this.elementRef = elementRef;
|
|
12
12
|
this.parentRef = parentRef;
|
|
13
|
-
this.tuiResized = typedFromEvent(this.elementRef.nativeElement,
|
|
13
|
+
this.tuiResized = typedFromEvent(this.elementRef.nativeElement, `mousedown`).pipe(preventDefault(), switchMap(() => {
|
|
14
14
|
const { width, right } = this.parentRef.nativeElement.getBoundingClientRect();
|
|
15
|
-
return typedFromEvent(this.documentRef,
|
|
15
|
+
return typedFromEvent(this.documentRef, `mousemove`).pipe(distinctUntilChanged(), map(({ clientX }) => width + clientX - right), takeUntil(typedFromEvent(this.documentRef, `mouseup`)));
|
|
16
16
|
}));
|
|
17
17
|
}
|
|
18
|
-
}
|
|
19
|
-
TuiResizedDirective
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
],
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
]
|
|
35
|
-
|
|
36
|
-
|
|
18
|
+
}
|
|
19
|
+
TuiResizedDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiResizedDirective, deps: [{ token: DOCUMENT }, { token: ElementRef }, { token: TUI_ELEMENT_REF }], target: i0.ɵɵFactoryTarget.Directive });
|
|
20
|
+
TuiResizedDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiResizedDirective, selector: "[tuiResized]", outputs: { tuiResized: "tuiResized" }, ngImport: i0 });
|
|
21
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiResizedDirective, decorators: [{
|
|
22
|
+
type: Directive,
|
|
23
|
+
args: [{
|
|
24
|
+
selector: `[tuiResized]`,
|
|
25
|
+
}]
|
|
26
|
+
}], ctorParameters: function () { return [{ type: Document, decorators: [{
|
|
27
|
+
type: Inject,
|
|
28
|
+
args: [DOCUMENT]
|
|
29
|
+
}] }, { type: i0.ElementRef, decorators: [{
|
|
30
|
+
type: Inject,
|
|
31
|
+
args: [ElementRef]
|
|
32
|
+
}] }, { type: i0.ElementRef, decorators: [{
|
|
33
|
+
type: Inject,
|
|
34
|
+
args: [TUI_ELEMENT_REF]
|
|
35
|
+
}] }]; }, propDecorators: { tuiResized: [{
|
|
36
|
+
type: Output
|
|
37
|
+
}] } });
|
|
38
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzaXplZC5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hZGRvbi10YWJsZS9jb21wb25lbnRzL3RhYmxlL2RpcmVjdGl2ZXMvcmVzaXplZC5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFFBQVEsRUFBQyxNQUFNLGlCQUFpQixDQUFDO0FBQ3pDLE9BQU8sRUFBQyxTQUFTLEVBQUUsVUFBVSxFQUFFLE1BQU0sRUFBRSxNQUFNLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDcEUsT0FBTyxFQUFDLGNBQWMsRUFBRSxjQUFjLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDN0QsT0FBTyxFQUFDLGVBQWUsRUFBQyxNQUFNLGdCQUFnQixDQUFDO0FBQy9DLE9BQU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pZW50UmVjdCgpO1xuXG4gICAgICAgICAgICByZXR1cm4gdHlwZWRGcm9tRXZlbnQodGhpcy5kb2N1bWVudFJlZiwgYG1vdXNlbW92ZWApLnBpcGUoXG4gICAgICAgICAgICAgICAgZGlzdGluY3RVbnRpbENoYW5nZWQoKSxcbiAgICAgICAgICAgICAgICBtYXAoKHtjbGllbnRYfSkgPT4gd2lkdGggKyBjbGllbnRYIC0gcmlnaHQpLFxuICAgICAgICAgICAgICAgIHRha2VVbnRpbCh0eXBlZEZyb21FdmVudCh0aGlzLmRvY3VtZW50UmVmLCBgbW91c2V1cGApKSxcbiAgICAgICAgICAgICk7XG4gICAgICAgIH0pLFxuICAgICk7XG5cbiAgICBjb25zdHJ1Y3RvcihcbiAgICAgICAgQEluamVjdChET0NVTUVOVCkgcHJpdmF0ZSByZWFkb25seSBkb2N1bWVudFJlZjogRG9jdW1lbnQsXG4gICAgICAgIEBJbmplY3QoRWxlbWVudFJlZilcbiAgICAgICAgcHJpdmF0ZSByZWFkb25seSBlbGVtZW50UmVmOiBFbGVtZW50UmVmPEhUTUxFbGVtZW50PixcbiAgICAgICAgQEluamVjdChUVUlfRUxFTUVOVF9SRUYpXG4gICAgICAgIHByaXZhdGUgcmVhZG9ubHkgcGFyZW50UmVmOiBFbGVtZW50UmVmPEhUTUxUYWJsZUhlYWRlckNlbGxFbGVtZW50PixcbiAgICApIHt9XG59XG4iXX0=
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { __decorate
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
2
|
import { Directive, Inject, Input, TemplateRef } from '@angular/core';
|
|
3
3
|
import { tuiDefaultProp } from '@taiga-ui/cdk';
|
|
4
|
-
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export class TuiRowDirective {
|
|
5
6
|
constructor(template) {
|
|
6
7
|
this.template = template;
|
|
7
8
|
this.tuiRowOf = [];
|
|
@@ -9,19 +10,21 @@ let TuiRowDirective = class TuiRowDirective {
|
|
|
9
10
|
static ngTemplateContextGuard(_dir, _ctx) {
|
|
10
11
|
return true;
|
|
11
12
|
}
|
|
12
|
-
}
|
|
13
|
-
TuiRowDirective
|
|
14
|
-
|
|
15
|
-
];
|
|
13
|
+
}
|
|
14
|
+
TuiRowDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiRowDirective, deps: [{ token: TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
15
|
+
TuiRowDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiRowDirective, selector: "ng-template[tuiRow]", inputs: { tuiRowOf: "tuiRowOf" }, ngImport: i0 });
|
|
16
16
|
__decorate([
|
|
17
|
-
Input(),
|
|
18
17
|
tuiDefaultProp()
|
|
19
18
|
], TuiRowDirective.prototype, "tuiRowOf", void 0);
|
|
20
|
-
TuiRowDirective
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
],
|
|
26
|
-
|
|
27
|
-
|
|
19
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiRowDirective, decorators: [{
|
|
20
|
+
type: Directive,
|
|
21
|
+
args: [{
|
|
22
|
+
selector: `ng-template[tuiRow]`,
|
|
23
|
+
}]
|
|
24
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
|
|
25
|
+
type: Inject,
|
|
26
|
+
args: [TemplateRef]
|
|
27
|
+
}] }]; }, propDecorators: { tuiRowOf: [{
|
|
28
|
+
type: Input
|
|
29
|
+
}] } });
|
|
30
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm93LmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FkZG9uLXRhYmxlL2Nv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