@firestitch/list 13.2.3 → 14.0.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/app/classes/actions-controller.d.ts +20 -20
- package/app/classes/columns-controller.d.ts +71 -71
- package/app/classes/data-controller.d.ts +88 -90
- package/app/classes/external-params-controller.d.ts +32 -32
- package/app/classes/index.d.ts +2 -2
- package/app/classes/list-controller.d.ts +188 -194
- package/app/classes/pagination-controller.d.ts +197 -199
- package/app/classes/persistance-controller.d.ts +10 -10
- package/app/classes/reorder-controller.d.ts +67 -67
- package/app/classes/selection-controller.d.ts +155 -155
- package/app/classes/sorting-controller.d.ts +70 -70
- package/app/components/body/body.component.d.ts +28 -28
- package/app/components/body/row/actions/actions.component.d.ts +36 -36
- package/app/components/body/row/cell/cell.component.d.ts +22 -22
- package/app/components/body/row/inline-action/inline-action.component.d.ts +13 -13
- package/app/components/body/row/menu-action/menu-action.component.d.ts +20 -20
- package/app/components/body/row/row.component.d.ts +85 -85
- package/app/components/customize-cols/customize-cols.component.d.ts +17 -17
- package/app/components/footer/footer-row/footer-cell/footer-cell.component.d.ts +7 -7
- package/app/components/footer/footer-row/footer-row.component.d.ts +14 -14
- package/app/components/footer/footer.component.d.ts +15 -15
- package/app/components/head/head-cell/head-cell.component.d.ts +14 -14
- package/app/components/head/head.component.d.ts +49 -49
- package/app/components/list/list.component.d.ts +127 -128
- package/app/components/loader/loader.component.d.ts +14 -14
- package/app/components/manage-saved-filters/manage-saved-filters.component.d.ts +13 -13
- package/app/components/pagination/pagination.component.d.ts +14 -14
- package/app/components/saved-filters/saved-filters.component.d.ts +15 -15
- package/app/components/status/status.component.d.ts +20 -21
- package/app/directives/cell/cell.directive.d.ts +8 -8
- package/app/directives/column/column.directive.d.ts +37 -37
- package/app/directives/content/content.directive.d.ts +5 -5
- package/app/directives/content-init/content-init.directive.d.ts +9 -9
- package/app/directives/draggable-list/draggable-list.directive.d.ts +95 -95
- package/app/directives/draggable-row/draggable-row.directive.d.ts +23 -23
- package/app/directives/empty-state/empty-state.directive.d.ts +5 -5
- package/app/directives/footer/footer.directive.d.ts +8 -8
- package/app/directives/group-expand-trigger/group-expand-trigger.directive.d.ts +10 -10
- package/app/directives/group-footer/group-footer.directive.d.ts +6 -6
- package/app/directives/group-header/group-header.directive.d.ts +6 -6
- package/app/directives/header/header.directive.d.ts +8 -8
- package/app/directives/heading/heading.directive.d.ts +5 -5
- package/app/directives/heading-container/heading-container.directive.d.ts +5 -5
- package/app/directives/index.d.ts +3 -3
- package/app/directives/subheading/subheading.directive.d.ts +5 -5
- package/app/enums/action-type.enum.d.ts +7 -7
- package/app/enums/page-change-type.enum.d.ts +4 -4
- package/app/enums/pagination-strategy.enum.d.ts +5 -5
- package/app/enums/row-type.enum.d.ts +6 -6
- package/app/enums/state.enum.d.ts +9 -9
- package/app/fs-list.module.d.ts +60 -60
- package/app/fs-list.providers.d.ts +3 -3
- package/app/interfaces/cellconfig.interface.d.ts +5 -5
- package/app/interfaces/column-config.interface.d.ts +2 -2
- package/app/interfaces/draggable-list.interface.d.ts +7 -7
- package/app/interfaces/external-params.interface.d.ts +13 -13
- package/app/interfaces/index.d.ts +4 -4
- package/app/interfaces/listconfig.interface.d.ts +245 -252
- package/app/interfaces/pagination-state.interface.d.ts +9 -9
- package/app/interfaces/pagination.interface.d.ts +13 -13
- package/app/interfaces/sorting-change-event.interface.d.ts +4 -4
- package/app/models/column-async-attribute.d.ts +5 -5
- package/app/models/column-attributes.d.ts +39 -39
- package/app/models/column.model.d.ts +61 -61
- package/app/models/row/base-row.d.ts +13 -13
- package/app/models/row/child-row.d.ts +12 -12
- package/app/models/row/group-footer-row.d.ts +10 -10
- package/app/models/row/group-row.d.ts +16 -16
- package/app/models/row/simple-row.d.ts +5 -5
- package/app/models/row-action.model.d.ts +29 -29
- package/app/models/row.d.ts +34 -34
- package/app/models/styleConfig.model.d.ts +31 -31
- package/app/pipes/action-label.d.ts +8 -8
- package/app/pipes/index.d.ts +1 -1
- package/app/services/group-expand-notifier.service.d.ts +11 -11
- package/esm2020/app/classes/actions-controller.mjs +55 -55
- package/esm2020/app/classes/columns-controller.mjs +205 -205
- package/esm2020/app/classes/data-controller.mjs +345 -363
- package/esm2020/app/classes/external-params-controller.mjs +147 -147
- package/esm2020/app/classes/index.mjs +3 -3
- package/esm2020/app/classes/list-controller.mjs +674 -745
- package/esm2020/app/classes/pagination-controller.mjs +491 -496
- package/esm2020/app/classes/persistance-controller.mjs +19 -19
- package/esm2020/app/classes/reorder-controller.mjs +181 -181
- package/esm2020/app/classes/selection-controller.mjs +466 -468
- package/esm2020/app/classes/sorting-controller.mjs +201 -201
- package/esm2020/app/components/body/body.component.mjs +63 -63
- package/esm2020/app/components/body/row/actions/actions.component.mjs +96 -96
- package/esm2020/app/components/body/row/cell/cell.component.mjs +107 -107
- package/esm2020/app/components/body/row/inline-action/inline-action.component.mjs +32 -32
- package/esm2020/app/components/body/row/menu-action/menu-action.component.mjs +45 -45
- package/esm2020/app/components/body/row/row.component.mjs +321 -321
- package/esm2020/app/components/customize-cols/customize-cols.component.mjs +68 -68
- package/esm2020/app/components/footer/footer-row/footer-cell/footer-cell.component.mjs +16 -16
- package/esm2020/app/components/footer/footer-row/footer-row.component.mjs +27 -27
- package/esm2020/app/components/footer/footer.component.mjs +30 -30
- package/esm2020/app/components/head/head-cell/head-cell.component.mjs +29 -29
- package/esm2020/app/components/head/head.component.mjs +102 -102
- package/esm2020/app/components/list/list.component.mjs +385 -392
- package/esm2020/app/components/loader/loader.component.mjs +40 -40
- package/esm2020/app/components/manage-saved-filters/manage-saved-filters.component.mjs +76 -76
- package/esm2020/app/components/pagination/pagination.component.mjs +37 -37
- package/esm2020/app/components/saved-filters/saved-filters.component.mjs +29 -29
- package/esm2020/app/components/status/status.component.mjs +64 -66
- package/esm2020/app/directives/cell/cell.directive.mjs +18 -18
- package/esm2020/app/directives/column/column.directive.mjs +120 -120
- package/esm2020/app/directives/content/content.directive.mjs +12 -12
- package/esm2020/app/directives/content-init/content-init.directive.mjs +21 -21
- package/esm2020/app/directives/draggable-list/draggable-list.directive.mjs +327 -327
- package/esm2020/app/directives/draggable-row/draggable-row.directive.mjs +77 -77
- package/esm2020/app/directives/empty-state/empty-state.directive.mjs +13 -13
- package/esm2020/app/directives/footer/footer.directive.mjs +18 -18
- package/esm2020/app/directives/group-expand-trigger/group-expand-trigger.directive.mjs +26 -26
- package/esm2020/app/directives/group-footer/group-footer.directive.mjs +13 -13
- package/esm2020/app/directives/group-header/group-header.directive.mjs +13 -13
- package/esm2020/app/directives/header/header.directive.mjs +18 -18
- package/esm2020/app/directives/heading/heading.directive.mjs +13 -13
- package/esm2020/app/directives/heading-container/heading-container.directive.mjs +13 -13
- package/esm2020/app/directives/index.mjs +4 -4
- package/esm2020/app/directives/subheading/subheading.directive.mjs +13 -13
- package/esm2020/app/enums/action-type.enum.mjs +8 -8
- package/esm2020/app/enums/page-change-type.enum.mjs +6 -6
- package/esm2020/app/enums/pagination-strategy.enum.mjs +7 -7
- package/esm2020/app/enums/row-type.enum.mjs +7 -7
- package/esm2020/app/enums/state.enum.mjs +11 -11
- package/esm2020/app/fs-list.module.mjs +244 -246
- package/esm2020/app/fs-list.providers.mjs +4 -4
- package/esm2020/app/interfaces/cellconfig.interface.mjs +2 -2
- package/esm2020/app/interfaces/column-config.interface.mjs +1 -1
- package/esm2020/app/interfaces/draggable-list.interface.mjs +2 -2
- package/esm2020/app/interfaces/external-params.interface.mjs +2 -2
- package/esm2020/app/interfaces/index.mjs +5 -5
- package/esm2020/app/interfaces/listconfig.interface.mjs +2 -2
- package/esm2020/app/interfaces/pagination-state.interface.mjs +1 -1
- package/esm2020/app/interfaces/pagination.interface.mjs +2 -2
- package/esm2020/app/interfaces/sorting-change-event.interface.mjs +2 -2
- package/esm2020/app/models/column-async-attribute.mjs +13 -13
- package/esm2020/app/models/column-attributes.mjs +131 -131
- package/esm2020/app/models/column.model.mjs +163 -163
- package/esm2020/app/models/row/base-row.mjs +23 -23
- package/esm2020/app/models/row/child-row.mjs +28 -28
- package/esm2020/app/models/row/group-footer-row.mjs +20 -20
- package/esm2020/app/models/row/group-row.mjs +44 -44
- package/esm2020/app/models/row/simple-row.mjs +10 -10
- package/esm2020/app/models/row-action.model.mjs +89 -89
- package/esm2020/app/models/row.mjs +88 -88
- package/esm2020/app/models/styleConfig.model.mjs +75 -75
- package/esm2020/app/pipes/action-label.mjs +16 -16
- package/esm2020/app/pipes/index.mjs +1 -1
- package/esm2020/app/services/group-expand-notifier.service.mjs +26 -26
- package/esm2020/firestitch-list.mjs +4 -4
- package/esm2020/public_api.mjs +46 -46
- package/fesm2015/firestitch-list.mjs +5643 -5749
- package/fesm2015/firestitch-list.mjs.map +1 -1
- package/fesm2020/firestitch-list.mjs +5636 -5742
- package/fesm2020/firestitch-list.mjs.map +1 -1
- package/{firestitch-list.d.ts → index.d.ts} +5 -5
- package/package.json +3 -3
- package/public_api.d.ts +41 -41
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, Input, } from '@angular/core';
|
|
2
|
-
import { random } from 'lodash-es';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "@angular/common";
|
|
5
|
-
export class FsListLoaderComponent {
|
|
6
|
-
constructor() {
|
|
7
|
-
this.placeholderWidths = [[], [], []];
|
|
8
|
-
this.widths = [];
|
|
9
|
-
this.cols = [];
|
|
10
|
-
this.rows = [];
|
|
11
|
-
}
|
|
12
|
-
ngOnInit() {
|
|
13
|
-
this.cols = this.columns > 5 ? this.columns.splice(0, 5) : this.columns;
|
|
14
|
-
const length = this.cols.length;
|
|
15
|
-
for (let w = length; w >= 0; w--) {
|
|
16
|
-
this.widths[w] = w ? random(15, 100 / length, false) : 0;
|
|
17
|
-
}
|
|
18
|
-
for (let r = 0; r < 3; r++) {
|
|
19
|
-
for (let c = 0; c < length; c++) {
|
|
20
|
-
this.placeholderWidths[r].push(random(50, 90));
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
ngOnChanges(changes) {
|
|
25
|
-
if (changes.loaderLines) {
|
|
26
|
-
this.rows = new Array(this.loaderLines);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
FsListLoaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
31
|
-
FsListLoaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
32
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
33
|
-
type: Component,
|
|
34
|
-
args: [{ selector: 'fs-list-loader', changeDetection: ChangeDetectionStrategy.OnPush, template: "<table>\
|
|
35
|
-
}], propDecorators: { columns: [{
|
|
36
|
-
type: Input
|
|
37
|
-
}], loaderLines: [{
|
|
38
|
-
type: Input
|
|
39
|
-
}] } });
|
|
40
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { ChangeDetectionStrategy, Component, Input, } from '@angular/core';
|
|
2
|
+
import { random } from 'lodash-es';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@angular/common";
|
|
5
|
+
export class FsListLoaderComponent {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.placeholderWidths = [[], [], []];
|
|
8
|
+
this.widths = [];
|
|
9
|
+
this.cols = [];
|
|
10
|
+
this.rows = [];
|
|
11
|
+
}
|
|
12
|
+
ngOnInit() {
|
|
13
|
+
this.cols = this.columns > 5 ? this.columns.splice(0, 5) : this.columns;
|
|
14
|
+
const length = this.cols.length;
|
|
15
|
+
for (let w = length; w >= 0; w--) {
|
|
16
|
+
this.widths[w] = w ? random(15, 100 / length, false) : 0;
|
|
17
|
+
}
|
|
18
|
+
for (let r = 0; r < 3; r++) {
|
|
19
|
+
for (let c = 0; c < length; c++) {
|
|
20
|
+
this.placeholderWidths[r].push(random(50, 90));
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
ngOnChanges(changes) {
|
|
25
|
+
if (changes.loaderLines) {
|
|
26
|
+
this.rows = new Array(this.loaderLines);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
FsListLoaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FsListLoaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
31
|
+
FsListLoaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: FsListLoaderComponent, selector: "fs-list-loader", inputs: { columns: "columns", loaderLines: "loaderLines" }, usesOnChanges: true, ngImport: i0, template: "<table>\n <thead>\n <tr>\n <th *ngFor=\"let col of cols; let column = index\" [width]=\"widths[column] + '%'\">\n <div class=\"fs-skeleton-placeholder\" [style.width]=\"(placeholderWidths[0][column]/2) + '%'\"></div>\n </th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let row of rows; let index=index\">\n <td *ngFor=\"let col of cols; let column = index\">\n <div class=\"fs-skeleton-placeholder\" [style.width]=\"placeholderWidths[index][column] + '%'\"></div>\n </td>\n </tr>\n </tbody>\n</table>\n", styles: ["table{width:100%;border-spacing:0}.fs-skeleton-placeholder{opacity:.5}:host ::ng-deep tbody tr:hover td{background:transparent}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
32
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FsListLoaderComponent, decorators: [{
|
|
33
|
+
type: Component,
|
|
34
|
+
args: [{ selector: 'fs-list-loader', changeDetection: ChangeDetectionStrategy.OnPush, template: "<table>\n <thead>\n <tr>\n <th *ngFor=\"let col of cols; let column = index\" [width]=\"widths[column] + '%'\">\n <div class=\"fs-skeleton-placeholder\" [style.width]=\"(placeholderWidths[0][column]/2) + '%'\"></div>\n </th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let row of rows; let index=index\">\n <td *ngFor=\"let col of cols; let column = index\">\n <div class=\"fs-skeleton-placeholder\" [style.width]=\"placeholderWidths[index][column] + '%'\"></div>\n </td>\n </tr>\n </tbody>\n</table>\n", styles: ["table{width:100%;border-spacing:0}.fs-skeleton-placeholder{opacity:.5}:host ::ng-deep tbody tr:hover td{background:transparent}\n"] }]
|
|
35
|
+
}], propDecorators: { columns: [{
|
|
36
|
+
type: Input
|
|
37
|
+
}], loaderLines: [{
|
|
38
|
+
type: Input
|
|
39
|
+
}] } });
|
|
40
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9hZGVyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9hcHAvY29tcG9uZW50cy9sb2FkZXIvbG9hZGVyLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL3NyYy9hcHAvY29tcG9uZW50cy9sb2FkZXIvbG9hZGVyLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCx1QkFBdUIsRUFDdkIsU0FBUyxFQUNULEtBQUssR0FJTixNQUFNLGVBQWUsQ0FBQztBQUV2QixPQUFPLEVBQUUsTUFBTSxFQUFFLE1BQU0sV0FBVyxDQUFDOzs7QUFTbkMsTUFBTSxPQUFPLHFCQUFxQjtJQU5sQztRQVFTLHNCQUFpQixHQUFHLENBQUMsRUFBRSxFQUFFLEVBQUUsRUFBRSxFQUFFLENBQUMsQ0FBQztRQUNqQyxXQUFNLEdBQUcsRUFBRSxDQUFDO1FBT1osU0FBSSxHQUFHLEVBQUUsQ0FBQztRQUNWLFNBQUksR0FBRyxFQUFFLENBQUM7S0FzQmxCO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xuICAgICAgPC90aD5cbiAgICA8L3RyPlxuICA8L3RoZWFkPlxuICA8dGJvZHk+XG4gICAgPHRyICpuZ0Zvcj1cImxldCByb3cgb2Ygcm93czsgbGV0IGluZGV4PWluZGV4XCI+XG4gICAgICA8dGQgKm5nRm9yPVwibGV0IGNvbCBvZiBjb2xzOyBsZXQgY29sdW1uID0gaW5kZXhcIj5cbiAgICAgICAgPGRpdiBjbGFzcz1cImZzLXNrZWxldG9uLXBsYWNlaG9sZGVyXCIgW3N0eWxlLndpZHRoXT1cInBsYWNlaG9sZGVyV2lkdGhzW2luZGV4XVtjb2x1bW5dICsgJyUnXCI+PC9kaXY+XG4gICAgICA8L3RkPlxuICAgIDwvdHI+XG4gIDwvdGJvZHk+XG48L3RhYmxlPlxuIl19
|
|
@@ -1,76 +1,76 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
2
|
-
import { ExternalParamsController, } from '@firestitch/filter';
|
|
3
|
-
import { map, tap } from 'rxjs/operators';
|
|
4
|
-
import { ReorderPosition } from '../../classes/reorder-controller';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "@firestitch/filter";
|
|
7
|
-
import * as i2 from "
|
|
8
|
-
import * as i3 from "@angular/material/
|
|
9
|
-
import * as i4 from "
|
|
10
|
-
import * as i5 from "../../directives/column/column.directive";
|
|
11
|
-
import * as i6 from "../../directives/cell/cell.directive";
|
|
12
|
-
export class FsListManageSavedFiltersComponent {
|
|
13
|
-
constructor(_externalParams) {
|
|
14
|
-
this._externalParams = _externalParams;
|
|
15
|
-
this._reorderReady = true;
|
|
16
|
-
this._initList();
|
|
17
|
-
}
|
|
18
|
-
get savedFiltersController() {
|
|
19
|
-
return this._externalParams.savedFiltersController;
|
|
20
|
-
}
|
|
21
|
-
_initList() {
|
|
22
|
-
this.config = {
|
|
23
|
-
status: false,
|
|
24
|
-
filterInput: false,
|
|
25
|
-
queryParam: false,
|
|
26
|
-
persist: false,
|
|
27
|
-
paging: false,
|
|
28
|
-
reorder: {
|
|
29
|
-
position: ReorderPosition.Left,
|
|
30
|
-
moveDrop: () => {
|
|
31
|
-
return this._reorderReady;
|
|
32
|
-
},
|
|
33
|
-
done: (reorderData) => {
|
|
34
|
-
this._reorderReady = false;
|
|
35
|
-
const filterData = reorderData.map((data) => data.data);
|
|
36
|
-
this.savedFiltersController.order(filterData)
|
|
37
|
-
.pipe(tap(() => {
|
|
38
|
-
this._reorderReady = true;
|
|
39
|
-
}))
|
|
40
|
-
.subscribe(() => { });
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
rowActions: [
|
|
44
|
-
{
|
|
45
|
-
label: 'Apply',
|
|
46
|
-
click: (filter) => {
|
|
47
|
-
this._externalParams.setActiveSavedFilter(filter);
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
label: 'Delete',
|
|
52
|
-
remove: {
|
|
53
|
-
title: 'Confirm',
|
|
54
|
-
template: 'Are you sure you want to delete this filter?',
|
|
55
|
-
},
|
|
56
|
-
click: (savedFilter) => {
|
|
57
|
-
return this.savedFiltersController.delete(savedFilter);
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
],
|
|
61
|
-
fetch: (query) => {
|
|
62
|
-
return this.savedFiltersController.load()
|
|
63
|
-
.pipe(map((response) => {
|
|
64
|
-
return { data: response };
|
|
65
|
-
}));
|
|
66
|
-
},
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
FsListManageSavedFiltersComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
71
|
-
FsListManageSavedFiltersComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
72
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
73
|
-
type: Component,
|
|
74
|
-
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, template: "<h1 mat-dialog-title>\
|
|
75
|
-
}], ctorParameters: function () { return [{ type: i1.ExternalParamsController }]; } });
|
|
76
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
2
|
+
import { ExternalParamsController, } from '@firestitch/filter';
|
|
3
|
+
import { map, tap } from 'rxjs/operators';
|
|
4
|
+
import { ReorderPosition } from '../../classes/reorder-controller';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "@firestitch/filter";
|
|
7
|
+
import * as i2 from "@angular/material/button";
|
|
8
|
+
import * as i3 from "@angular/material/dialog";
|
|
9
|
+
import * as i4 from "../list/list.component";
|
|
10
|
+
import * as i5 from "../../directives/column/column.directive";
|
|
11
|
+
import * as i6 from "../../directives/cell/cell.directive";
|
|
12
|
+
export class FsListManageSavedFiltersComponent {
|
|
13
|
+
constructor(_externalParams) {
|
|
14
|
+
this._externalParams = _externalParams;
|
|
15
|
+
this._reorderReady = true;
|
|
16
|
+
this._initList();
|
|
17
|
+
}
|
|
18
|
+
get savedFiltersController() {
|
|
19
|
+
return this._externalParams.savedFiltersController;
|
|
20
|
+
}
|
|
21
|
+
_initList() {
|
|
22
|
+
this.config = {
|
|
23
|
+
status: false,
|
|
24
|
+
filterInput: false,
|
|
25
|
+
queryParam: false,
|
|
26
|
+
persist: false,
|
|
27
|
+
paging: false,
|
|
28
|
+
reorder: {
|
|
29
|
+
position: ReorderPosition.Left,
|
|
30
|
+
moveDrop: () => {
|
|
31
|
+
return this._reorderReady;
|
|
32
|
+
},
|
|
33
|
+
done: (reorderData) => {
|
|
34
|
+
this._reorderReady = false;
|
|
35
|
+
const filterData = reorderData.map((data) => data.data);
|
|
36
|
+
this.savedFiltersController.order(filterData)
|
|
37
|
+
.pipe(tap(() => {
|
|
38
|
+
this._reorderReady = true;
|
|
39
|
+
}))
|
|
40
|
+
.subscribe(() => { });
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
rowActions: [
|
|
44
|
+
{
|
|
45
|
+
label: 'Apply',
|
|
46
|
+
click: (filter) => {
|
|
47
|
+
this._externalParams.setActiveSavedFilter(filter);
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
label: 'Delete',
|
|
52
|
+
remove: {
|
|
53
|
+
title: 'Confirm',
|
|
54
|
+
template: 'Are you sure you want to delete this filter?',
|
|
55
|
+
},
|
|
56
|
+
click: (savedFilter) => {
|
|
57
|
+
return this.savedFiltersController.delete(savedFilter);
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
fetch: (query) => {
|
|
62
|
+
return this.savedFiltersController.load()
|
|
63
|
+
.pipe(map((response) => {
|
|
64
|
+
return { data: response };
|
|
65
|
+
}));
|
|
66
|
+
},
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
FsListManageSavedFiltersComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FsListManageSavedFiltersComponent, deps: [{ token: i1.ExternalParamsController }], target: i0.ɵɵFactoryTarget.Component });
|
|
71
|
+
FsListManageSavedFiltersComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: FsListManageSavedFiltersComponent, selector: "ng-component", ngImport: i0, template: "<h1 mat-dialog-title>\n Manage Saved Filters\n</h1>\n<div mat-dialog-content>\n <fs-list [config]=\"config\">\n <fs-list-column name=\"name\" title=\"Name\">\n <ng-template fs-list-cell let-row=\"row\">\n {{ row.name }}\n </ng-template>\n </fs-list-column>\n </fs-list>\n</div>\n<div mat-dialog-actions>\n <button mat-button\n [mat-dialog-close]=\"null\"\n type=\"button\"\n color=\"primary\">\n Done\n </button>\n</div>\n", dependencies: [{ kind: "component", type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i3.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "directive", type: i3.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i3.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "directive", type: i3.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "component", type: i4.FsListComponent, selector: "fs-list", inputs: ["config", "loaderLines"], outputs: ["filtersReady"] }, { kind: "directive", type: i5.FsListColumnDirective, selector: "fs-list-column", inputs: ["show", "title", "name", "customize", "sortable", "sortableDefault", "sortableDirection", "direction", "align", "width", "class"] }, { kind: "directive", type: i6.FsListCellDirective, selector: "[fs-list-cell]", inputs: ["colspan", "align", "class"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
72
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FsListManageSavedFiltersComponent, decorators: [{
|
|
73
|
+
type: Component,
|
|
74
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, template: "<h1 mat-dialog-title>\n Manage Saved Filters\n</h1>\n<div mat-dialog-content>\n <fs-list [config]=\"config\">\n <fs-list-column name=\"name\" title=\"Name\">\n <ng-template fs-list-cell let-row=\"row\">\n {{ row.name }}\n </ng-template>\n </fs-list-column>\n </fs-list>\n</div>\n<div mat-dialog-actions>\n <button mat-button\n [mat-dialog-close]=\"null\"\n type=\"button\"\n color=\"primary\">\n Done\n </button>\n</div>\n" }]
|
|
75
|
+
}], ctorParameters: function () { return [{ type: i1.ExternalParamsController }]; } });
|
|
76
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFuYWdlLXNhdmVkLWZpbHR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25lOiAocmVvcmRlckRhdGEpID0+IHtcbiAgICAgICAgICB0aGlzLl9yZW9yZGVyUmVhZHkgPSBmYWxzZTtcblxuICAgICAgICAgIGNvbnN0IGZpbHRlckRhdGEgPSByZW9yZGVyRGF0YS5tYXAoKGRhdGEpID0+IGRhdGEuZGF0YSk7XG4gICAgICAgICAgdGhpcy5zYXZlZEZpbHRlcnNDb250cm9sbGVyLm9yZGVyKGZpbHRlckRhdGEpXG4gICAgICAgICAgICAucGlwZShcbiAgICAgICAgICAgICAgdGFwKCgpID0+IHtcbiAgICAgICAgICAgICAgICB0aGlzLl9yZW9yZGVyUmVhZHkgPSB0cnVlO1xuICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgIClcbiAgICAgICAgICAgIC5zdWJzY3JpYmUoKCkgPT4geyB9KTtcbiAgICAgICAgfSxcbiAgICAgIH0sXG4gICAgICByb3dBY3Rpb25zOiBbXG4gICAgICAgIHtcbiAgICAgICAgICBsYWJlbDogJ0FwcGx5JyxcbiAgICAgICAgICBjbGljazogKGZpbHRlcjogSUZpbHRlclNhdmVkRmlsdGVyKSA9PiB7XG4gICAgICAgICAgICB0aGlzLl9leHRlcm5hbFBhcmFtcy5zZXRBY3RpdmVTYXZlZEZpbHRlcihmaWx0ZXIpO1xuICAgICAgICAgIH0sXG4gICAgICAgIH0sXG4gICAgICAgIHtcbiAgICAgICAgICBsYWJlbDogJ0RlbGV0ZScsXG4gICAgICAgICAgcmVtb3ZlOiB7XG4gICAgICAgICAgICB0aXRsZTogJ0NvbmZpcm0nLFxuICAgICAgICAgICAgdGVtcGxhdGU6ICdBcmUgeW91IHN1cmUgeW91IHdhbnQgdG8gZGVsZXRlIHRoaXMgZmlsdGVyPycsXG4gICAgICAgICAgfSxcbiAgICAgICAgICBjbGljazogKHNhdmVkRmlsdGVyKSA9PiB7XG4gICAgICAgICAgICByZXR1cm4gdGhpcy5zYXZlZEZpbHRlcnNDb250cm9sbGVyLmRlbGV0ZShzYXZlZEZpbHRlcik7XG4gICAgICAgICAgfSxcbiAgICAgICAgfSxcbiAgICAgIF0sXG4gICAgICBmZXRjaDogKHF1ZXJ5KSA9PiB7XG4gICAgICAgIHJldHVybiB0aGlzLnNhdmVkRmlsdGVyc0NvbnRyb2xsZXIubG9hZCgpXG4gICAgICAgICAgLnBpcGUoXG4gICAgICAgICAgICBtYXAoKHJlc3BvbnNlKSA9PiB7XG4gICAgICAgICAgICAgIHJldHVybiB7IGRhdGE6IHJlc3BvbnNlIH07XG4gICAgICAgICAgICB9KSxcbiAgICAgICAgICApO1xuICAgICAgfSxcblxuICAgIH07XG4gIH1cbn1cbiIsIjxoMSBtYXQtZGlhbG9nLXRpdGxlPlxuICBNYW5hZ2UgU2F2ZWQgRmlsdGVyc1xuPC9oMT5cbjxkaXYgbWF0LWRpYWxvZy1jb250ZW50PlxuICA8ZnMtbGlzdCBbY29uZmlnXT1cImNvbmZpZ1wiPlxuICAgIDxmcy1saXN0LWNvbHVtbiBuYW1lPVwibmFtZVwiIHRpdGxlPVwiTmFtZVwiPlxuICAgICAgPG5nLXRlbXBsYXRlIGZzLWxpc3QtY2VsbCBsZXQtcm93PVwicm93XCI+XG4gICAgICAgIHt7IHJvdy5uYW1lIH19XG4gICAgICA8L25nLXRlbXBsYXRlPlxuICAgIDwvZnMtbGlzdC1jb2x1bW4+XG4gIDwvZnMtbGlzdD5cbjwvZGl2PlxuPGRpdiBtYXQtZGlhbG9nLWFjdGlvbnM+XG4gIDxidXR0b24gbWF0LWJ1dHRvblxuICAgICAgICAgIFttYXQtZGlhbG9nLWNsb3NlXT1cIm51bGxcIlxuICAgICAgICAgIHR5cGU9XCJidXR0b25cIlxuICAgICAgICAgIGNvbG9yPVwicHJpbWFyeVwiPlxuICAgIERvbmVcbiAgPC9idXR0b24+XG48L2Rpdj5cbiJdfQ==
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, } from '@angular/core';
|
|
2
|
-
import { merge, Subject } from 'rxjs';
|
|
3
|
-
import { takeUntil } from 'rxjs/operators';
|
|
4
|
-
import { PaginationController } from '../../classes/pagination-controller';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "@angular/
|
|
7
|
-
import * as i2 from "@angular/
|
|
8
|
-
import * as i3 from "@angular/material/core";
|
|
9
|
-
import * as i4 from "@firestitch/common";
|
|
10
|
-
export class FsPaginationComponent {
|
|
11
|
-
constructor(_cdRef) {
|
|
12
|
-
this._cdRef = _cdRef;
|
|
13
|
-
this._destroy$ = new Subject();
|
|
14
|
-
}
|
|
15
|
-
ngOnInit() {
|
|
16
|
-
merge(this.pagination.pageChanged$, this.pagination.pages$)
|
|
17
|
-
.pipe(takeUntil(this._destroy$))
|
|
18
|
-
.subscribe(() => {
|
|
19
|
-
this._cdRef.markForCheck();
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
ngOnDestroy() {
|
|
23
|
-
this._destroy$.next();
|
|
24
|
-
this._destroy$.complete();
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
FsPaginationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
28
|
-
FsPaginationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
29
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
30
|
-
type: Component,
|
|
31
|
-
args: [{ selector: 'fs-list-pagination', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"!pagination.loadMoreEnabled; else loadMoreButton\">\n <ng-container *ngIf=\"pagination?.pages\">\n <a matRipple [matRippleRadius]=\"15\" [matRippleCentered]=\"true\" class=\"first\" [class.disabled]=\"!pagination.hasPrevPage\" (click)=\"pagination.goFirst()\">\n <i class=\"material-icons\">first_page</i>\n </a>\n\n <a matRipple [matRippleRadius]=\"15\" [matRippleCentered]=\"true\" class=\"previous\" [class.disabled]=\"!pagination.hasPrevPage\" (click)=\"pagination.goPrev()\">\n <i class=\"material-icons\">keyboard_arrow_left</i>\n </a>\n\n <div class=\"number\">\n {{ pagination.page | fsFormatNumber }} of {{ pagination.pages | fsFormatNumber }}\n </div>\n\n <a matRipple [matRippleRadius]=\"15\" [matRippleCentered]=\"true\" class=\"next\" [class.disabled]=\"!pagination.hasNextPage\" (click)=\"pagination.goNext()\">\n <i class=\"material-icons\">keyboard_arrow_right</i>\n </a>\n\n <a matRipple [matRippleRadius]=\"15\" [matRippleCentered]=\"true\" class=\"last\" [class.disabled]=\"!pagination.hasNextPage\" (click)=\"pagination.goLast()\">\n <i class=\"material-icons\">last_page</i>\n </a>\n </ng-container>\n</ng-container>\n\n<ng-template #loadMoreButton>\n <div class=\"fs-list-load-more\" *ngIf=\"pagination.hasNextPage\">\n <button \n mat-button\n type=\"button\"\n [class]=\"pagination.loadMoreButtonClass\"\n [color]=\"pagination.loadMoreButtonColor\"\n (click)=\"pagination.goNext()\">\n {{ pagination.loadMoreLabel }}\n </button>\n </div>\n</ng-template>\n", styles: [":host{display:flex;justify-content:center;align-items:center;-webkit-user-select:none;user-select:none;width:100%}a{text-align:center;color:#000000de;text-decoration:none;font-size:15px;cursor:pointer;display:flex}a:not(.page){padding:10px}a.disabled{pointer-events:none;cursor:default;color:#d8d8d8}.number{font-size:90%}.fs-list-load-more button{width:100%;margin-top:10px}\n"] }]
|
|
32
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { pagination: [{
|
|
33
|
-
type: Input
|
|
34
|
-
}], rows: [{
|
|
35
|
-
type: Input
|
|
36
|
-
}] } });
|
|
37
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, } from '@angular/core';
|
|
2
|
+
import { merge, Subject } from 'rxjs';
|
|
3
|
+
import { takeUntil } from 'rxjs/operators';
|
|
4
|
+
import { PaginationController } from '../../classes/pagination-controller';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "@angular/common";
|
|
7
|
+
import * as i2 from "@angular/material/button";
|
|
8
|
+
import * as i3 from "@angular/material/core";
|
|
9
|
+
import * as i4 from "@firestitch/common";
|
|
10
|
+
export class FsPaginationComponent {
|
|
11
|
+
constructor(_cdRef) {
|
|
12
|
+
this._cdRef = _cdRef;
|
|
13
|
+
this._destroy$ = new Subject();
|
|
14
|
+
}
|
|
15
|
+
ngOnInit() {
|
|
16
|
+
merge(this.pagination.pageChanged$, this.pagination.pages$)
|
|
17
|
+
.pipe(takeUntil(this._destroy$))
|
|
18
|
+
.subscribe(() => {
|
|
19
|
+
this._cdRef.markForCheck();
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
ngOnDestroy() {
|
|
23
|
+
this._destroy$.next();
|
|
24
|
+
this._destroy$.complete();
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
FsPaginationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FsPaginationComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
28
|
+
FsPaginationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: FsPaginationComponent, selector: "fs-list-pagination", inputs: { pagination: "pagination", rows: "rows" }, ngImport: i0, template: "<ng-container *ngIf=\"!pagination.loadMoreEnabled; else loadMoreButton\">\n <ng-container *ngIf=\"pagination?.pages\">\n <a matRipple [matRippleRadius]=\"15\" [matRippleCentered]=\"true\" class=\"first\" [class.disabled]=\"!pagination.hasPrevPage\" (click)=\"pagination.goFirst()\">\n <i class=\"material-icons\">first_page</i>\n </a>\n\n <a matRipple [matRippleRadius]=\"15\" [matRippleCentered]=\"true\" class=\"previous\" [class.disabled]=\"!pagination.hasPrevPage\" (click)=\"pagination.goPrev()\">\n <i class=\"material-icons\">keyboard_arrow_left</i>\n </a>\n\n <div class=\"number\">\n {{ pagination.page | fsFormatNumber }} of {{ pagination.pages | fsFormatNumber }}\n </div>\n\n <a matRipple [matRippleRadius]=\"15\" [matRippleCentered]=\"true\" class=\"next\" [class.disabled]=\"!pagination.hasNextPage\" (click)=\"pagination.goNext()\">\n <i class=\"material-icons\">keyboard_arrow_right</i>\n </a>\n\n <a matRipple [matRippleRadius]=\"15\" [matRippleCentered]=\"true\" class=\"last\" [class.disabled]=\"!pagination.hasNextPage\" (click)=\"pagination.goLast()\">\n <i class=\"material-icons\">last_page</i>\n </a>\n </ng-container>\n</ng-container>\n\n<ng-template #loadMoreButton>\n <div class=\"fs-list-load-more\" *ngIf=\"pagination.hasNextPage\">\n <button \n mat-button\n type=\"button\"\n [class]=\"pagination.loadMoreButtonClass\"\n [color]=\"pagination.loadMoreButtonColor\"\n (click)=\"pagination.goNext()\">\n {{ pagination.loadMoreLabel }}\n </button>\n </div>\n</ng-template>\n", styles: [":host{display:flex;justify-content:center;align-items:center;-webkit-user-select:none;user-select:none;width:100%}a{text-align:center;color:#000000de;text-decoration:none;font-size:15px;cursor:pointer;display:flex}a:not(.page){padding:10px}a.disabled{pointer-events:none;cursor:default;color:#d8d8d8}.number{font-size:90%}.fs-list-load-more button{width:100%;margin-top:10px}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i3.MatRipple, selector: "[mat-ripple], [matRipple]", inputs: ["matRippleColor", "matRippleUnbounded", "matRippleCentered", "matRippleRadius", "matRippleAnimation", "matRippleDisabled", "matRippleTrigger"], exportAs: ["matRipple"] }, { kind: "pipe", type: i4.FsFormatNumberPipe, name: "fsFormatNumber" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FsPaginationComponent, decorators: [{
|
|
30
|
+
type: Component,
|
|
31
|
+
args: [{ selector: 'fs-list-pagination', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"!pagination.loadMoreEnabled; else loadMoreButton\">\n <ng-container *ngIf=\"pagination?.pages\">\n <a matRipple [matRippleRadius]=\"15\" [matRippleCentered]=\"true\" class=\"first\" [class.disabled]=\"!pagination.hasPrevPage\" (click)=\"pagination.goFirst()\">\n <i class=\"material-icons\">first_page</i>\n </a>\n\n <a matRipple [matRippleRadius]=\"15\" [matRippleCentered]=\"true\" class=\"previous\" [class.disabled]=\"!pagination.hasPrevPage\" (click)=\"pagination.goPrev()\">\n <i class=\"material-icons\">keyboard_arrow_left</i>\n </a>\n\n <div class=\"number\">\n {{ pagination.page | fsFormatNumber }} of {{ pagination.pages | fsFormatNumber }}\n </div>\n\n <a matRipple [matRippleRadius]=\"15\" [matRippleCentered]=\"true\" class=\"next\" [class.disabled]=\"!pagination.hasNextPage\" (click)=\"pagination.goNext()\">\n <i class=\"material-icons\">keyboard_arrow_right</i>\n </a>\n\n <a matRipple [matRippleRadius]=\"15\" [matRippleCentered]=\"true\" class=\"last\" [class.disabled]=\"!pagination.hasNextPage\" (click)=\"pagination.goLast()\">\n <i class=\"material-icons\">last_page</i>\n </a>\n </ng-container>\n</ng-container>\n\n<ng-template #loadMoreButton>\n <div class=\"fs-list-load-more\" *ngIf=\"pagination.hasNextPage\">\n <button \n mat-button\n type=\"button\"\n [class]=\"pagination.loadMoreButtonClass\"\n [color]=\"pagination.loadMoreButtonColor\"\n (click)=\"pagination.goNext()\">\n {{ pagination.loadMoreLabel }}\n </button>\n </div>\n</ng-template>\n", styles: [":host{display:flex;justify-content:center;align-items:center;-webkit-user-select:none;user-select:none;width:100%}a{text-align:center;color:#000000de;text-decoration:none;font-size:15px;cursor:pointer;display:flex}a:not(.page){padding:10px}a.disabled{pointer-events:none;cursor:default;color:#d8d8d8}.number{font-size:90%}.fs-list-load-more button{width:100%;margin-top:10px}\n"] }]
|
|
32
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { pagination: [{
|
|
33
|
+
type: Input
|
|
34
|
+
}], rows: [{
|
|
35
|
+
type: Input
|
|
36
|
+
}] } });
|
|
37
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFnaW5hdGlvbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvYXBwL2NvbXBvbmVudHMvcGFnaW5hdGlvbi9wYWdpbmF0aW9uLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL3NyYy9hcHAvY29tcG9uZW50cy9wYWdpbmF0aW9uL3BhZ2luYXRpb24uY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLHVCQUF1QixFQUN2QixpQkFBaUIsRUFDakIsU0FBUyxFQUNULEtBQUssR0FHTixNQUFNLGVBQWUsQ0FBQztBQUV2QixPQUFPLEVBQUUsS0FBSyxFQUFFLE9BQU8sRUFBRSxNQUFNLE1BQU0sQ0FBQztBQUN0QyxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFFM0MsT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1BQU0scUNBQXFDLENBQUM7Ozs7OztBQVEzRSxNQUFNLE9BQU8scUJBQXFCO0lBT2hDLFlBQ1UsTUFBeUI7UUFBekIsV0FBTSxHQUFOLE1BQU0sQ0FBbUI7UUFIM0IsY0FBUyxHQUFHLElBQUksT0FBTyxFQUFFLENBQUM7SUFJOUIsQ0FBQztJQUVFLFFBQVE7UUFDYixLQUFLLENBQ0gsSUFBSSxDQUFDLFVBQVUsQ0FB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
|
-
import { Component, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
-
import { ExternalParamsController } from '@firestitch/filter';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "@angular/material/dialog";
|
|
6
|
-
import * as i2 from "@firestitch/filter";
|
|
7
|
-
import * as i3 from "@angular/common";
|
|
8
|
-
export class FsListSavedFiltersComponent {
|
|
9
|
-
constructor(_dialog, _externalParams, _vcRef) {
|
|
10
|
-
this._dialog = _dialog;
|
|
11
|
-
this._externalParams = _externalParams;
|
|
12
|
-
this._vcRef = _vcRef;
|
|
13
|
-
}
|
|
14
|
-
get savedFiltersEnabled$() {
|
|
15
|
-
return this._externalParams.savedFiltersController.enabled$;
|
|
16
|
-
}
|
|
17
|
-
showManageDialog() {
|
|
18
|
-
// this._dialog.open(FsListManageSavedFiltersComponent, {
|
|
19
|
-
// viewContainerRef: this._vcRef,
|
|
20
|
-
// });
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
FsListSavedFiltersComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
24
|
-
FsListSavedFiltersComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
25
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
26
|
-
type: Component,
|
|
27
|
-
args: [{ selector: 'fs-list-saved-filters', template: "<ng-container *ngIf=\"savedFiltersEnabled$ | async\"><!--\
|
|
28
|
-
}], ctorParameters: function () { return [{ type: i1.MatDialog }, { type: i2.ExternalParamsController }, { type: i0.ViewContainerRef }]; } });
|
|
29
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Component, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
+
import { ExternalParamsController } from '@firestitch/filter';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "@angular/material/dialog";
|
|
6
|
+
import * as i2 from "@firestitch/filter";
|
|
7
|
+
import * as i3 from "@angular/common";
|
|
8
|
+
export class FsListSavedFiltersComponent {
|
|
9
|
+
constructor(_dialog, _externalParams, _vcRef) {
|
|
10
|
+
this._dialog = _dialog;
|
|
11
|
+
this._externalParams = _externalParams;
|
|
12
|
+
this._vcRef = _vcRef;
|
|
13
|
+
}
|
|
14
|
+
get savedFiltersEnabled$() {
|
|
15
|
+
return this._externalParams.savedFiltersController.enabled$;
|
|
16
|
+
}
|
|
17
|
+
showManageDialog() {
|
|
18
|
+
// this._dialog.open(FsListManageSavedFiltersComponent, {
|
|
19
|
+
// viewContainerRef: this._vcRef,
|
|
20
|
+
// });
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
FsListSavedFiltersComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FsListSavedFiltersComponent, deps: [{ token: i1.MatDialog }, { token: i2.ExternalParamsController }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
24
|
+
FsListSavedFiltersComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: FsListSavedFiltersComponent, selector: "fs-list-saved-filters", ngImport: i0, template: "<ng-container *ngIf=\"savedFiltersEnabled$ | async\"><!--\n -->, saved filter\n <fs-filter-saved-filters-menu (manage)=\"showManageDialog()\"></fs-filter-saved-filters-menu>\n</ng-container>\n", dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.FsSavedFiltersMenuComponent, selector: "fs-filter-saved-filters-menu", outputs: ["clear"] }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }] });
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FsListSavedFiltersComponent, decorators: [{
|
|
26
|
+
type: Component,
|
|
27
|
+
args: [{ selector: 'fs-list-saved-filters', template: "<ng-container *ngIf=\"savedFiltersEnabled$ | async\"><!--\n -->, saved filter\n <fs-filter-saved-filters-menu (manage)=\"showManageDialog()\"></fs-filter-saved-filters-menu>\n</ng-container>\n" }]
|
|
28
|
+
}], ctorParameters: function () { return [{ type: i1.MatDialog }, { type: i2.ExternalParamsController }, { type: i0.ViewContainerRef }]; } });
|
|
29
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2F2ZWQtZmlsdGVycy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvYXBwL2NvbXBvbmVudHMvc2F2ZWQtZmlsdGVycy9zYXZlZC1maWx0ZXJzLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL3NyYy9hcHAvY29tcG9uZW50cy9zYXZlZC1maWx0ZXJzL3NhdmVkLWZpbHRlcnMuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUU1RCxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sMEJBQTBCLENBQUM7QUFFckQsT0FBTyxFQUFFLHdCQUF3QixFQUFFLE1BQU0sb0JBQW9CLENBQUM7Ozs7O0FBUzlELE1BQU0sT0FBTywyQkFBMkI7SUFDdEMsWUFDVSxPQUFrQixFQUNsQixlQUF5QyxFQUN6QyxNQUF3QjtRQUZ4QixZQUFPLEdBQVAsT0FBTyxDQUFXO1FBQ2xCLG9CQUFlLEdBQWYsZUFBZSxDQUEwQjtRQUN6QyxXQUFNLEdBQU4sTUFBTSxDQUFrQjtJQUM5QixDQUFDO0lBRUwsSUFBVyxvQkFBb0I7UUFDN0IsT0FBTyxJQUFJLENBQUMsZUFBZSx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