@taiga-ui/addon-table 2.61.0 → 3.0.0-rc.2
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 +422 -297
- 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 -314
- package/bundles/taiga-ui-addon-table-components-table-pagination.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-table-components-table.umd.js +863 -659
- 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 +453 -320
- package/bundles/taiga-ui-addon-table-directives-table-filters.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-table-directives.umd.js +5 -7
- package/bundles/taiga-ui-addon-table-directives.umd.js.map +1 -1
- 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 +9 -5
- 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 +9 -11
- package/bundles/taiga-ui-addon-table-utils.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-table.umd.js +19 -21
- 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/stuck.provider.d.ts +1 -3
- package/components/table/providers/table.provider.d.ts +0 -2
- package/components/table/providers/table.providers.d.ts +0 -6
- 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/package.json +2 -5
- package/directives/table-filters/generic-filter.directive.d.ts +3 -0
- package/directives/table-filters/package.json +2 -5
- package/directives/table-filters/table-filter.directive.d.ts +3 -0
- package/directives/table-filters/table-filters.directive.d.ts +3 -0
- package/directives/table-filters/table-filters.module.d.ts +8 -0
- package/directives/table-filters/table-filters.pipe.d.ts +3 -0
- package/directives/table-filters/taiga-ui-addon-table-directives-table-filters.d.ts +1 -0
- package/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 +34 -28
- 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 +18 -15
- package/esm2015/components/table/directives/head.directive.js +17 -17
- package/esm2015/components/table/directives/resized.directive.js +26 -25
- 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 +48 -39
- 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 +6 -8
- package/esm2015/components/table/providers/table.provider.js +3 -5
- package/esm2015/components/table/providers/table.providers.js +7 -15
- 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 +43 -32
- package/esm2015/components/table/td/td.component.js +23 -17
- package/esm2015/components/table/th/th.component.js +56 -36
- 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 +1 -1
- package/esm2015/components/table-pagination/table-pagination.component.js +40 -32
- 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 +1 -1
- package/esm2015/directives/table-filters/abstract-table-filter.js +1 -1
- package/esm2015/directives/table-filters/generic-filter.directive.js +25 -20
- package/esm2015/directives/table-filters/index.js +2 -1
- package/esm2015/directives/table-filters/table-filter.directive.js +32 -24
- package/esm2015/directives/table-filters/table-filter.js +2 -1
- package/esm2015/directives/table-filters/table-filters.directive.js +12 -10
- package/esm2015/directives/table-filters/table-filters.module.js +30 -21
- package/esm2015/directives/table-filters/table-filters.pipe.js +16 -14
- package/esm2015/directives/table-filters/taiga-ui-addon-table-directives-table-filters.js +1 -1
- package/esm2015/directives/taiga-ui-addon-table-directives.js +1 -1
- package/esm2015/index.js +2 -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 +4 -4
- 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 +4 -9
- 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 +59 -38
- package/fesm2015/taiga-ui-addon-table-components-reorder.js.map +1 -1
- package/fesm2015/taiga-ui-addon-table-components-table-pagination.js +68 -41
- package/fesm2015/taiga-ui-addon-table-components-table-pagination.js.map +1 -1
- package/fesm2015/taiga-ui-addon-table-components-table.js +436 -347
- 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 +104 -76
- package/fesm2015/taiga-ui-addon-table-directives-table-filters.js.map +1 -1
- package/fesm2015/taiga-ui-addon-table-directives.js.map +1 -1
- package/fesm2015/taiga-ui-addon-table-interfaces.js.map +1 -1
- package/fesm2015/taiga-ui-addon-table-tokens.js +3 -3
- 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 +4 -9
- package/fesm2015/taiga-ui-addon-table-utils.js.map +1 -1
- package/fesm2015/taiga-ui-addon-table.js +1 -0
- package/fesm2015/taiga-ui-addon-table.js.map +1 -1
- 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/default-sort.d.ts +1 -5
- 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-directives-table-filters.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-table-directives-table-filters.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-table-directives.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-table-directives.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.d.ts +0 -4
- 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/directives/table-filters/taiga-ui-addon-table-directives-table-filters.metadata.json +0 -1
- package/directives/taiga-ui-addon-table-directives.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/directives/index.js +0 -2
- package/esm5/directives/table-filters/abstract-table-filter.js +0 -7
- package/esm5/directives/table-filters/generic-filter.directive.js +0 -34
- package/esm5/directives/table-filters/index.js +0 -7
- package/esm5/directives/table-filters/table-filter.directive.js +0 -59
- package/esm5/directives/table-filters/table-filter.js +0 -1
- package/esm5/directives/table-filters/table-filters.directive.js +0 -39
- package/esm5/directives/table-filters/table-filters.module.js +0 -29
- package/esm5/directives/table-filters/table-filters.pipe.js +0 -23
- package/esm5/directives/table-filters/taiga-ui-addon-table-directives-table-filters.js +0 -5
- package/esm5/directives/taiga-ui-addon-table-directives.js +0 -5
- package/esm5/index.js +0 -5
- 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-directives-table-filters.js +0 -174
- package/fesm5/taiga-ui-addon-table-directives-table-filters.js.map +0 -1
- package/fesm5/taiga-ui-addon-table-directives.js +0 -6
- package/fesm5/taiga-ui-addon-table-directives.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 -9
- package/fesm5/taiga-ui-addon-table.js.map +0 -1
- package/interfaces/taiga-ui-addon-table-interfaces.metadata.json +0 -1
- package/taiga-ui-addon-table.metadata.json +0 -1
- package/tokens/taiga-ui-addon-table-tokens.metadata.json +0 -1
- package/types/taiga-ui-addon-table-types.metadata.json +0 -1
- package/utils/taiga-ui-addon-table-utils.metadata.json +0 -1
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { __decorate, __param } from 'tslib';
|
|
2
|
-
import { HostBinding, Component, ElementRef, Inject, Output, Directive, NgModule } from '@angular/core';
|
|
3
|
-
import { TUI_ELEMENT_REF } from '@taiga-ui/core';
|
|
4
|
-
import { DOCUMENT } from '@angular/common';
|
|
5
|
-
import { typedFromEvent, preventDefault } from '@taiga-ui/cdk';
|
|
6
|
-
import { switchMap, distinctUntilChanged, map, takeUntil } from 'rxjs/operators';
|
|
7
|
-
|
|
8
|
-
/** @deprecated use `<th tuiTh [resizable]="true">` from {@link TuiTableModule} */
|
|
9
|
-
var TuiResizableColumnComponent = /** @class */ (function () {
|
|
10
|
-
function TuiResizableColumnComponent() {
|
|
11
|
-
this.width = null;
|
|
12
|
-
}
|
|
13
|
-
TuiResizableColumnComponent.prototype.onResize = function (width) {
|
|
14
|
-
this.width = width;
|
|
15
|
-
};
|
|
16
|
-
__decorate([
|
|
17
|
-
HostBinding("style.width.px")
|
|
18
|
-
], TuiResizableColumnComponent.prototype, "width", void 0);
|
|
19
|
-
TuiResizableColumnComponent = __decorate([
|
|
20
|
-
Component({
|
|
21
|
-
selector: "th[tuiResizableColumn]",
|
|
22
|
-
template: "<ng-content></ng-content>\n<div\n class=\"t-bar\"\n (tuiResizableColumn)=\"onResize($event)\"\n></div>\n",
|
|
23
|
-
providers: [
|
|
24
|
-
{
|
|
25
|
-
provide: TUI_ELEMENT_REF,
|
|
26
|
-
useExisting: ElementRef,
|
|
27
|
-
},
|
|
28
|
-
],
|
|
29
|
-
styles: [":host{position:relative}:host:last-child .t-bar{display:none}.t-bar{transition-property:opacity;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;position:absolute;top:0;bottom:0;right:-1px;width:3px;justify-self:flex-end;border-left:2px solid transparent;background:var(--tui-support-12);background-clip:content-box;cursor:ew-resize;opacity:0}.t-bar:active,.t-bar:hover{opacity:1}"]
|
|
30
|
-
})
|
|
31
|
-
], TuiResizableColumnComponent);
|
|
32
|
-
return TuiResizableColumnComponent;
|
|
33
|
-
}());
|
|
34
|
-
|
|
35
|
-
/** @deprecated use `<th tuiTh [resizable]="true">` from {@link TuiTableModule} */
|
|
36
|
-
// @dynamic
|
|
37
|
-
var TuiResizableColumnDirective = /** @class */ (function () {
|
|
38
|
-
function TuiResizableColumnDirective(documentRef, elementRef, parentRef) {
|
|
39
|
-
var _this = this;
|
|
40
|
-
this.documentRef = documentRef;
|
|
41
|
-
this.elementRef = elementRef;
|
|
42
|
-
this.parentRef = parentRef;
|
|
43
|
-
this.tuiResizableColumn = typedFromEvent(this.elementRef.nativeElement, "mousedown").pipe(preventDefault(), switchMap(function () {
|
|
44
|
-
var _a = _this.parentRef.nativeElement.getBoundingClientRect(), width = _a.width, right = _a.right;
|
|
45
|
-
return typedFromEvent(_this.documentRef, "mousemove").pipe(distinctUntilChanged(), map(function (_a) {
|
|
46
|
-
var clientX = _a.clientX;
|
|
47
|
-
return width + clientX - right;
|
|
48
|
-
}), takeUntil(typedFromEvent(_this.documentRef, "mouseup")));
|
|
49
|
-
}));
|
|
50
|
-
}
|
|
51
|
-
TuiResizableColumnDirective.ctorParameters = function () { return [
|
|
52
|
-
{ type: Document, decorators: [{ type: Inject, args: [DOCUMENT,] }] },
|
|
53
|
-
{ type: ElementRef, decorators: [{ type: Inject, args: [ElementRef,] }] },
|
|
54
|
-
{ type: ElementRef, decorators: [{ type: Inject, args: [TUI_ELEMENT_REF,] }] }
|
|
55
|
-
]; };
|
|
56
|
-
__decorate([
|
|
57
|
-
Output()
|
|
58
|
-
], TuiResizableColumnDirective.prototype, "tuiResizableColumn", void 0);
|
|
59
|
-
TuiResizableColumnDirective = __decorate([
|
|
60
|
-
Directive({
|
|
61
|
-
selector: "[tuiResizableColumn]",
|
|
62
|
-
}),
|
|
63
|
-
__param(0, Inject(DOCUMENT)),
|
|
64
|
-
__param(1, Inject(ElementRef)),
|
|
65
|
-
__param(2, Inject(TUI_ELEMENT_REF))
|
|
66
|
-
], TuiResizableColumnDirective);
|
|
67
|
-
return TuiResizableColumnDirective;
|
|
68
|
-
}());
|
|
69
|
-
|
|
70
|
-
/** @deprecated use `<th tuiTh [resizable]="true">` from {@link TuiTableModule} */
|
|
71
|
-
var TuiResizableColumnModule = /** @class */ (function () {
|
|
72
|
-
function TuiResizableColumnModule() {
|
|
73
|
-
}
|
|
74
|
-
TuiResizableColumnModule = __decorate([
|
|
75
|
-
NgModule({
|
|
76
|
-
declarations: [TuiResizableColumnComponent, TuiResizableColumnDirective],
|
|
77
|
-
exports: [TuiResizableColumnComponent, TuiResizableColumnDirective],
|
|
78
|
-
})
|
|
79
|
-
], TuiResizableColumnModule);
|
|
80
|
-
return TuiResizableColumnModule;
|
|
81
|
-
}());
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* Generated bundle index. Do not edit.
|
|
85
|
-
*/
|
|
86
|
-
|
|
87
|
-
export { TuiResizableColumnComponent, TuiResizableColumnDirective, TuiResizableColumnModule };
|
|
88
|
-
//# sourceMappingURL=taiga-ui-addon-table-components-resizable-column.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-addon-table-components-resizable-column.js","sources":["ng://@taiga-ui/addon-table/components/resizable-column/resizable-column.component.ts","ng://@taiga-ui/addon-table/components/resizable-column/resizable-column.directive.ts","ng://@taiga-ui/addon-table/components/resizable-column/resizable-column.module.ts","ng://@taiga-ui/addon-table/components/resizable-column/taiga-ui-addon-table-components-resizable-column.ts"],"sourcesContent":["import {Component, ElementRef, HostBinding} from '@angular/core';\nimport {TUI_ELEMENT_REF} from '@taiga-ui/core';\n\n/** @deprecated use `<th tuiTh [resizable]=\"true\">` from {@link TuiTableModule} */\n@Component({\n selector: `th[tuiResizableColumn]`,\n templateUrl: `./resizable-column.template.html`,\n styleUrls: [`./resizable-column.style.less`],\n providers: [\n {\n provide: TUI_ELEMENT_REF,\n useExisting: ElementRef,\n },\n ],\n})\nexport class TuiResizableColumnComponent {\n @HostBinding(`style.width.px`)\n width: number | null = null;\n\n onResize(width: number): void {\n this.width = width;\n }\n}\n","import {DOCUMENT} from '@angular/common';\nimport {Directive, ElementRef, Inject, Output} from '@angular/core';\nimport {preventDefault, typedFromEvent} from '@taiga-ui/cdk';\nimport {TUI_ELEMENT_REF} from '@taiga-ui/core';\nimport {distinctUntilChanged, map, switchMap, takeUntil} from 'rxjs/operators';\n\n/** @deprecated use `<th tuiTh [resizable]=\"true\">` from {@link TuiTableModule} */\n// @dynamic\n@Directive({\n selector: `[tuiResizableColumn]`,\n})\nexport class TuiResizableColumnDirective {\n @Output()\n readonly tuiResizableColumn = typedFromEvent(\n this.elementRef.nativeElement,\n `mousedown`,\n ).pipe(\n preventDefault(),\n switchMap(() => {\n const {width, right} = this.parentRef.nativeElement.getBoundingClientRect();\n\n return typedFromEvent(this.documentRef, `mousemove`).pipe(\n distinctUntilChanged(),\n map(({clientX}) => width + clientX - right),\n takeUntil(typedFromEvent(this.documentRef, `mouseup`)),\n );\n }),\n );\n\n constructor(\n @Inject(DOCUMENT) private readonly documentRef: Document,\n @Inject(ElementRef)\n private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(TUI_ELEMENT_REF)\n private readonly parentRef: ElementRef<HTMLTableHeaderCellElement>,\n ) {}\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiResizableColumnComponent} from './resizable-column.component';\nimport {TuiResizableColumnDirective} from './resizable-column.directive';\n\n/** @deprecated use `<th tuiTh [resizable]=\"true\">` from {@link TuiTableModule} */\n@NgModule({\n declarations: [TuiResizableColumnComponent, TuiResizableColumnDirective],\n exports: [TuiResizableColumnComponent, TuiResizableColumnDirective],\n})\nexport class TuiResizableColumnModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAGA;;IAYA;QAEI,UAAK,GAAkB,IAAI,CAAC;KAK/B;IAHG,8CAAQ,GAAR,UAAS,KAAa;QAClB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;KACtB;IAJD;QADC,WAAW,CAAC,gBAAgB,CAAC;8DACF;IAFnB,2BAA2B;QAXvC,SAAS,CAAC;YACP,QAAQ,EAAE,wBAAwB;YAClC,0HAA+C;YAE/C,SAAS,EAAE;gBACP;oBACI,OAAO,EAAE,eAAe;oBACxB,WAAW,EAAE,UAAU;iBAC1B;aACJ;;SACJ,CAAC;OACW,2BAA2B,CAOvC;IAAD,kCAAC;CAPD;;ACTA;AACA;;IAsBI,qCACuC,WAAqB,EAEvC,UAAmC,EAEnC,SAAiD;QALtE,iBAMI;QALmC,gBAAW,GAAX,WAAW,CAAU;QAEvC,eAAU,GAAV,UAAU,CAAyB;QAEnC,cAAS,GAAT,SAAS,CAAwC;QArB7D,uBAAkB,GAAG,cAAc,CACxC,IAAI,CAAC,UAAU,CAAC,aAAa,EAC7B,WAAW,CACd,CAAC,IAAI,CACF,cAAc,EAAE,EAChB,SAAS,CAAC;YACA,IAAA,0DAAqE,EAApE,gBAAK,EAAE,gBAA6D,CAAC;YAE5E,OAAO,cAAc,CAAC,KAAI,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC,IAAI,CACrD,oBAAoB,EAAE,EACtB,GAAG,CAAC,UAAC,EAAS;oBAAR,oBAAO;gBAAM,OAAA,KAAK,GAAG,OAAO,GAAG,KAAK;aAAA,CAAC,EAC3C,SAAS,CAAC,cAAc,CAAC,KAAI,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC,CACzD,CAAC;SACL,CAAC,CACL,CAAC;KAQE;;gBALgD,QAAQ,uBAAvD,MAAM,SAAC,QAAQ;gBAEa,UAAU,uBADtC,MAAM,SAAC,UAAU;gBAGU,UAAU,uBADrC,MAAM,SAAC,eAAe;;IApB3B;QADC,MAAM,EAAE;2EAeP;IAhBO,2BAA2B;QAHvC,SAAS,CAAC;YACP,QAAQ,EAAE,sBAAsB;SACnC,CAAC;QAoBO,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;QAChB,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;QAElB,WAAA,MAAM,CAAC,eAAe,CAAC,CAAA;OAtBnB,2BAA2B,CAyBvC;IAAD,kCAAC;CAzBD;;ACNA;;IAKA;KAAwC;IAA3B,wBAAwB;QAJpC,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,2BAA2B,EAAE,2BAA2B,CAAC;YACxE,OAAO,EAAE,CAAC,2BAA2B,EAAE,2BAA2B,CAAC;SACtE,CAAC;OACW,wBAAwB,CAAG;IAAD,+BAAC;CAAxC;;ACVA;;;;;;"}
|
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
import { __assign, __decorate, __param } from 'tslib';
|
|
2
|
-
import { InjectionToken, EventEmitter, Inject, Input, Output, Component, NgModule } from '@angular/core';
|
|
3
|
-
import { TUI_TABLE_PAGINATION_TEXTS } from '@taiga-ui/addon-table/tokens';
|
|
4
|
-
import { tuiDefaultProp } from '@taiga-ui/cdk';
|
|
5
|
-
import { TUI_SPIN_TEXTS, TuiButtonModule, TuiLinkModule, TuiHostedDropdownModule, TuiDataListModule, TuiSvgModule } from '@taiga-ui/core';
|
|
6
|
-
import { Observable } from 'rxjs';
|
|
7
|
-
import { CommonModule } from '@angular/common';
|
|
8
|
-
import { PolymorpheusModule } from '@tinkoff/ng-polymorpheus';
|
|
9
|
-
|
|
10
|
-
function defaultSizeOptionContent(_a) {
|
|
11
|
-
var $implicit = _a.$implicit;
|
|
12
|
-
return "" + $implicit;
|
|
13
|
-
}
|
|
14
|
-
var TUI_TABLE_PAGINATION_DEFAULT_OPTIONS = {
|
|
15
|
-
sizeOptionContent: defaultSizeOptionContent,
|
|
16
|
-
};
|
|
17
|
-
var TUI_TABLE_PAGINATION_OPTIONS = new InjectionToken("Default parameters for TablePagination component", { factory: function () { return TUI_TABLE_PAGINATION_DEFAULT_OPTIONS; } });
|
|
18
|
-
function tuiTablePaginationOptionsProvider(options) {
|
|
19
|
-
return {
|
|
20
|
-
provide: TUI_TABLE_PAGINATION_OPTIONS,
|
|
21
|
-
useValue: __assign(__assign({}, TUI_TABLE_PAGINATION_DEFAULT_OPTIONS), options),
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
// @dynamic
|
|
26
|
-
var TuiTablePaginationComponent = /** @class */ (function () {
|
|
27
|
-
function TuiTablePaginationComponent(spinTexts$, texts$, options) {
|
|
28
|
-
this.spinTexts$ = spinTexts$;
|
|
29
|
-
this.texts$ = texts$;
|
|
30
|
-
this.options = options;
|
|
31
|
-
this.items = [10, 20, 50, 100];
|
|
32
|
-
this.total = 0;
|
|
33
|
-
this.page = 0;
|
|
34
|
-
this.size = this.items[0];
|
|
35
|
-
this.pageChange = new EventEmitter();
|
|
36
|
-
this.sizeChange = new EventEmitter();
|
|
37
|
-
this.open = false;
|
|
38
|
-
}
|
|
39
|
-
Object.defineProperty(TuiTablePaginationComponent.prototype, "pages", {
|
|
40
|
-
get: function () {
|
|
41
|
-
return Math.ceil(this.total / this.size);
|
|
42
|
-
},
|
|
43
|
-
enumerable: true,
|
|
44
|
-
configurable: true
|
|
45
|
-
});
|
|
46
|
-
Object.defineProperty(TuiTablePaginationComponent.prototype, "start", {
|
|
47
|
-
get: function () {
|
|
48
|
-
return this.page * this.size;
|
|
49
|
-
},
|
|
50
|
-
enumerable: true,
|
|
51
|
-
configurable: true
|
|
52
|
-
});
|
|
53
|
-
Object.defineProperty(TuiTablePaginationComponent.prototype, "end", {
|
|
54
|
-
get: function () {
|
|
55
|
-
return Math.min(this.start + this.size, this.total);
|
|
56
|
-
},
|
|
57
|
-
enumerable: true,
|
|
58
|
-
configurable: true
|
|
59
|
-
});
|
|
60
|
-
Object.defineProperty(TuiTablePaginationComponent.prototype, "leftDisabled", {
|
|
61
|
-
get: function () {
|
|
62
|
-
return !this.start;
|
|
63
|
-
},
|
|
64
|
-
enumerable: true,
|
|
65
|
-
configurable: true
|
|
66
|
-
});
|
|
67
|
-
Object.defineProperty(TuiTablePaginationComponent.prototype, "rightDisabled", {
|
|
68
|
-
get: function () {
|
|
69
|
-
return this.end === this.total;
|
|
70
|
-
},
|
|
71
|
-
enumerable: true,
|
|
72
|
-
configurable: true
|
|
73
|
-
});
|
|
74
|
-
TuiTablePaginationComponent.prototype.onItem = function (size) {
|
|
75
|
-
var start = this.start;
|
|
76
|
-
this.size = size;
|
|
77
|
-
this.sizeChange.emit(size);
|
|
78
|
-
this.open = false;
|
|
79
|
-
this.page = Math.floor(start / this.size);
|
|
80
|
-
this.pageChange.emit(this.page);
|
|
81
|
-
};
|
|
82
|
-
TuiTablePaginationComponent.prototype.back = function () {
|
|
83
|
-
this.page--;
|
|
84
|
-
this.pageChange.emit(this.page);
|
|
85
|
-
};
|
|
86
|
-
TuiTablePaginationComponent.prototype.forth = function () {
|
|
87
|
-
this.page++;
|
|
88
|
-
this.pageChange.emit(this.page);
|
|
89
|
-
};
|
|
90
|
-
TuiTablePaginationComponent.ctorParameters = function () { return [
|
|
91
|
-
{ type: Observable, decorators: [{ type: Inject, args: [TUI_SPIN_TEXTS,] }] },
|
|
92
|
-
{ type: Observable, decorators: [{ type: Inject, args: [TUI_TABLE_PAGINATION_TEXTS,] }] },
|
|
93
|
-
{ type: undefined, decorators: [{ type: Inject, args: [TUI_TABLE_PAGINATION_OPTIONS,] }] }
|
|
94
|
-
]; };
|
|
95
|
-
__decorate([
|
|
96
|
-
Input(),
|
|
97
|
-
tuiDefaultProp()
|
|
98
|
-
], TuiTablePaginationComponent.prototype, "items", void 0);
|
|
99
|
-
__decorate([
|
|
100
|
-
Input(),
|
|
101
|
-
tuiDefaultProp()
|
|
102
|
-
], TuiTablePaginationComponent.prototype, "total", void 0);
|
|
103
|
-
__decorate([
|
|
104
|
-
Input(),
|
|
105
|
-
tuiDefaultProp()
|
|
106
|
-
], TuiTablePaginationComponent.prototype, "page", void 0);
|
|
107
|
-
__decorate([
|
|
108
|
-
Input(),
|
|
109
|
-
tuiDefaultProp()
|
|
110
|
-
], TuiTablePaginationComponent.prototype, "size", void 0);
|
|
111
|
-
__decorate([
|
|
112
|
-
Output()
|
|
113
|
-
], TuiTablePaginationComponent.prototype, "pageChange", void 0);
|
|
114
|
-
__decorate([
|
|
115
|
-
Output()
|
|
116
|
-
], TuiTablePaginationComponent.prototype, "sizeChange", void 0);
|
|
117
|
-
TuiTablePaginationComponent = __decorate([
|
|
118
|
-
Component({
|
|
119
|
-
selector: "tui-table-pagination",
|
|
120
|
-
template: "<ng-container *ngIf=\"texts$ | async as texts\">\n <span class=\"t-pages\">\n {{ texts.pages }}\n <strong class=\"t-strong\">{{ pages }}</strong>\n </span>\n <span automation-id=\"tui-table-pagination__lines-per-page-wrapper\">\n {{ texts.linesPerPage }}\n <tui-hosted-dropdown\n [content]=\"content\"\n [(open)]=\"open\"\n >\n <button tuiLink>\n <strong>{{ start + 1 }}\u2013{{ end }}</strong>\n </button>\n <ng-template #content>\n <tui-data-list>\n <ng-container *ngFor=\"let item of items\">\n <button\n tuiOption\n size=\"s\"\n class=\"t-item\"\n (click)=\"onItem(item)\"\n >\n <span\n polymorpheus-outlet\n [content]=\"options.sizeOptionContent\"\n [context]=\"{$implicit: item, total: total}\"\n ></span>\n <tui-svg\n *ngIf=\"item === size; else fakeIcon\"\n src=\"tuiIconCheckLarge\"\n class=\"t-checkmark\"\n ></tui-svg>\n\n <ng-template #fakeIcon>\n <span class=\"t-checkmark\"></span>\n </ng-template>\n </button>\n </ng-container>\n </tui-data-list>\n </ng-template>\n </tui-hosted-dropdown>\n {{ texts.of }}\n <strong class=\"t-strong\">{{ total }}</strong>\n </span>\n <ng-container *ngIf=\"spinTexts$ | async as spinTexts\">\n <button\n tuiIconButton\n type=\"button\"\n size=\"xs\"\n appearance=\"icon\"\n icon=\"tuiIconChevronLeft\"\n class=\"t-back\"\n [disabled]=\"leftDisabled\"\n [title]=\"spinTexts[0]\"\n (click)=\"back()\"\n ></button>\n <button\n tuiIconButton\n type=\"button\"\n size=\"xs\"\n appearance=\"icon\"\n icon=\"tuiIconChevronRight\"\n [disabled]=\"rightDisabled\"\n [title]=\"spinTexts[1]\"\n (click)=\"forth()\"\n ></button>\n </ng-container>\n</ng-container>\n",
|
|
121
|
-
styles: [":host{display:flex;font:var(--tui-font-text-s);align-items:center;color:var(--tui-text-03)}.t-strong{color:var(--tui-text-01)}.t-pages{margin-right:auto}.t-item{min-width:5.5rem;box-sizing:border-box}.t-checkmark{min-width:1.5rem;border-left:5px solid transparent}.t-back{margin:0 .25rem 0 1.5rem}"]
|
|
122
|
-
}),
|
|
123
|
-
__param(0, Inject(TUI_SPIN_TEXTS)),
|
|
124
|
-
__param(1, Inject(TUI_TABLE_PAGINATION_TEXTS)),
|
|
125
|
-
__param(2, Inject(TUI_TABLE_PAGINATION_OPTIONS))
|
|
126
|
-
], TuiTablePaginationComponent);
|
|
127
|
-
return TuiTablePaginationComponent;
|
|
128
|
-
}());
|
|
129
|
-
|
|
130
|
-
var TuiTablePaginationModule = /** @class */ (function () {
|
|
131
|
-
function TuiTablePaginationModule() {
|
|
132
|
-
}
|
|
133
|
-
TuiTablePaginationModule = __decorate([
|
|
134
|
-
NgModule({
|
|
135
|
-
imports: [
|
|
136
|
-
CommonModule,
|
|
137
|
-
TuiButtonModule,
|
|
138
|
-
TuiLinkModule,
|
|
139
|
-
TuiHostedDropdownModule,
|
|
140
|
-
TuiDataListModule,
|
|
141
|
-
TuiSvgModule,
|
|
142
|
-
PolymorpheusModule,
|
|
143
|
-
],
|
|
144
|
-
declarations: [TuiTablePaginationComponent],
|
|
145
|
-
exports: [TuiTablePaginationComponent],
|
|
146
|
-
})
|
|
147
|
-
], TuiTablePaginationModule);
|
|
148
|
-
return TuiTablePaginationModule;
|
|
149
|
-
}());
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* Generated bundle index. Do not edit.
|
|
153
|
-
*/
|
|
154
|
-
|
|
155
|
-
export { TUI_TABLE_PAGINATION_DEFAULT_OPTIONS, TUI_TABLE_PAGINATION_OPTIONS, TuiTablePaginationComponent, TuiTablePaginationModule, tuiTablePaginationOptionsProvider };
|
|
156
|
-
//# sourceMappingURL=taiga-ui-addon-table-components-table-pagination.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-addon-table-components-table-pagination.js","sources":["ng://@taiga-ui/addon-table/components/table-pagination/table-pagination-options.ts","ng://@taiga-ui/addon-table/components/table-pagination/table-pagination.component.ts","ng://@taiga-ui/addon-table/components/table-pagination/table-pagination.module.ts","ng://@taiga-ui/addon-table/components/table-pagination/taiga-ui-addon-table-components-table-pagination.ts"],"sourcesContent":["import {InjectionToken, ValueProvider} from '@angular/core';\nimport {TuiContextWithImplicit} from '@taiga-ui/cdk';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nexport interface TuiTablePaginationOptions {\n readonly sizeOptionContent: PolymorpheusContent<\n TuiContextWithImplicit<number> & {total: number}\n >;\n}\n\nfunction defaultSizeOptionContent({$implicit}: TuiContextWithImplicit<number>): string {\n return `${$implicit}`;\n}\n\nexport const TUI_TABLE_PAGINATION_DEFAULT_OPTIONS: TuiTablePaginationOptions = {\n sizeOptionContent: defaultSizeOptionContent,\n};\n\nexport const TUI_TABLE_PAGINATION_OPTIONS = new InjectionToken(\n `Default parameters for TablePagination component`,\n {factory: () => TUI_TABLE_PAGINATION_DEFAULT_OPTIONS},\n);\n\nexport function tuiTablePaginationOptionsProvider(\n options: Partial<TuiTablePaginationOptions>,\n): ValueProvider {\n return {\n provide: TUI_TABLE_PAGINATION_OPTIONS,\n useValue: {...TUI_TABLE_PAGINATION_DEFAULT_OPTIONS, ...options},\n };\n}\n","import {Component, EventEmitter, Inject, Input, Output} from '@angular/core';\nimport {TUI_TABLE_PAGINATION_TEXTS} from '@taiga-ui/addon-table/tokens';\nimport {tuiDefaultProp} from '@taiga-ui/cdk';\nimport {TUI_SPIN_TEXTS} from '@taiga-ui/core';\nimport {Observable} from 'rxjs';\n\nimport {\n TUI_TABLE_PAGINATION_OPTIONS,\n TuiTablePaginationOptions,\n} from './table-pagination-options';\n\n// @dynamic\n@Component({\n selector: `tui-table-pagination`,\n templateUrl: `./table-pagination.template.html`,\n styleUrls: [`./table-pagination.style.less`],\n})\nexport class TuiTablePaginationComponent {\n @Input()\n @tuiDefaultProp()\n items: readonly number[] = [10, 20, 50, 100];\n\n @Input()\n @tuiDefaultProp()\n total = 0;\n\n @Input()\n @tuiDefaultProp()\n page = 0;\n\n @Input()\n @tuiDefaultProp()\n size = this.items[0];\n\n @Output()\n readonly pageChange = new EventEmitter<number>();\n\n @Output()\n readonly sizeChange = new EventEmitter<number>();\n\n open = false;\n\n constructor(\n @Inject(TUI_SPIN_TEXTS) readonly spinTexts$: Observable<[string, string]>,\n @Inject(TUI_TABLE_PAGINATION_TEXTS)\n readonly texts$: Observable<Record<'pages' | 'linesPerPage' | 'of', string>>,\n @Inject(TUI_TABLE_PAGINATION_OPTIONS) readonly options: TuiTablePaginationOptions,\n ) {}\n\n get pages(): number {\n return Math.ceil(this.total / this.size);\n }\n\n get start(): number {\n return this.page * this.size;\n }\n\n get end(): number {\n return Math.min(this.start + this.size, this.total);\n }\n\n get leftDisabled(): boolean {\n return !this.start;\n }\n\n get rightDisabled(): boolean {\n return this.end === this.total;\n }\n\n onItem(size: number): void {\n const {start} = this;\n\n this.size = size;\n this.sizeChange.emit(size);\n this.open = false;\n this.page = Math.floor(start / this.size);\n this.pageChange.emit(this.page);\n }\n\n back(): void {\n this.page--;\n this.pageChange.emit(this.page);\n }\n\n forth(): void {\n this.page++;\n this.pageChange.emit(this.page);\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {\n TuiButtonModule,\n TuiDataListModule,\n TuiHostedDropdownModule,\n TuiLinkModule,\n TuiSvgModule,\n} from '@taiga-ui/core';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiTablePaginationComponent} from './table-pagination.component';\n\n@NgModule({\n imports: [\n CommonModule,\n TuiButtonModule,\n TuiLinkModule,\n TuiHostedDropdownModule,\n TuiDataListModule,\n TuiSvgModule,\n PolymorpheusModule,\n ],\n declarations: [TuiTablePaginationComponent],\n exports: [TuiTablePaginationComponent],\n})\nexport class TuiTablePaginationModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"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"}
|