@firestitch/list 12.2.0 → 12.3.1
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/list-controller.d.ts +4 -7
- package/app/fs-list.module.d.ts +2 -1
- package/app/interfaces/listconfig.interface.d.ts +1 -1
- package/app/models/row-action.model.d.ts +2 -3
- package/app/models/styleConfig.model.d.ts +2 -2
- package/bundles/firestitch-list.umd.js +102 -204
- package/bundles/firestitch-list.umd.js.map +1 -1
- package/esm2015/app/classes/list-controller.js +21 -84
- package/esm2015/app/components/body/row/row.component.js +2 -2
- package/esm2015/app/components/pagination/pagination.component.js +3 -2
- package/esm2015/app/fs-list.module.js +6 -2
- package/esm2015/app/interfaces/listconfig.interface.js +1 -1
- package/esm2015/app/models/row-action.model.js +13 -46
- package/esm2015/app/models/styleConfig.model.js +8 -18
- package/fesm2015/firestitch-list.js +47 -145
- package/fesm2015/firestitch-list.js.map +1 -1
- package/package.json +5 -5
|
@@ -3,9 +3,8 @@ import { ActivatedRoute, Router } from '@angular/router';
|
|
|
3
3
|
import { ChangeFn, FilterConfig, IFilterSavedFiltersConfig } from '@firestitch/filter';
|
|
4
4
|
import { FsScrollInstance, FsScrollService } from '@firestitch/scroll';
|
|
5
5
|
import { SelectionDialog } from '@firestitch/selection';
|
|
6
|
-
import { Model } from 'tsmodels';
|
|
7
6
|
import { BehaviorSubject, Observable, Subject } from 'rxjs';
|
|
8
|
-
import { FsListAfterContentInitFn, FsListAfterFetchFn, FsListConfig, FsListEmptyStateConfig, FsListFetchFn, FsListFetchSubscription, FsListNoResultsConfig, FsListRestoreConfig, FsListScrollableConfig, FsListTrackByFn } from '../interfaces';
|
|
7
|
+
import { FsListAfterContentInitFn, FsListAfterFetchFn, FsListConfig, FsListEmptyStateConfig, FsListFetchFn, FsListFetchSubscription, FsListNoResultsConfig, FsListPersitance, FsListRestoreConfig, FsListScrollableConfig, FsListTrackByFn } from '../interfaces';
|
|
9
8
|
import { ColumnsController } from './columns-controller';
|
|
10
9
|
import { ActionsController } from './index';
|
|
11
10
|
import { DataController } from './data-controller';
|
|
@@ -14,7 +13,7 @@ import { SelectionController } from './selection-controller';
|
|
|
14
13
|
import { SortingController } from './sorting-controller';
|
|
15
14
|
import { PersistanceController } from './persistance-controller';
|
|
16
15
|
import { ExternalParamsController } from './external-params-controller';
|
|
17
|
-
export declare class List
|
|
16
|
+
export declare class List {
|
|
18
17
|
private el;
|
|
19
18
|
private config;
|
|
20
19
|
private fsScroll;
|
|
@@ -26,19 +25,17 @@ export declare class List extends Model {
|
|
|
26
25
|
heading: string;
|
|
27
26
|
trackBy: string;
|
|
28
27
|
subheading: string;
|
|
29
|
-
inlineFilters: any;
|
|
30
28
|
rowActionsRaw: any[];
|
|
31
29
|
groupActionsRaw: any[];
|
|
32
30
|
rowClass: any;
|
|
33
31
|
rowEvents: any;
|
|
34
32
|
restore: FsListRestoreConfig;
|
|
35
|
-
|
|
36
|
-
persist: boolean;
|
|
33
|
+
persist: FsListPersitance;
|
|
37
34
|
filters: any[];
|
|
38
35
|
filterInitCb: ChangeFn;
|
|
39
36
|
filterChangeCb: ChangeFn;
|
|
40
37
|
savedFilters: IFilterSavedFiltersConfig;
|
|
41
|
-
scrollable: FsListScrollableConfig
|
|
38
|
+
scrollable: FsListScrollableConfig;
|
|
42
39
|
noResults: FsListNoResultsConfig;
|
|
43
40
|
emptyState: FsListEmptyStateConfig;
|
|
44
41
|
fetchFn: FsListFetchFn;
|
package/app/fs-list.module.d.ts
CHANGED
|
@@ -47,10 +47,11 @@ import * as i43 from "@firestitch/prompt";
|
|
|
47
47
|
import * as i44 from "@angular/material/dialog";
|
|
48
48
|
import * as i45 from "@angular/material/tooltip";
|
|
49
49
|
import * as i46 from "@firestitch/file";
|
|
50
|
+
import * as i47 from "@firestitch/common";
|
|
50
51
|
export declare class FsListModule {
|
|
51
52
|
static forRoot(config?: FsListConfig): ModuleWithProviders<FsListModule>;
|
|
52
53
|
static ɵfac: i0.ɵɵFactoryDeclaration<FsListModule, never>;
|
|
53
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FsListModule, [typeof i1.FsListComponent, typeof i2.FsRowComponent, typeof i3.FsRowActionsComponent, typeof i4.FsRowInlineActionComponent, typeof i5.FsRowMenuActionComponent, typeof i6.FsCellComponent, typeof i7.FsFooterRowComponent, typeof i8.FsFooterCellComponent, typeof i9.FsStatusComponent, typeof i10.FsListLoaderComponent, typeof i11.FsListSavedFiltersComponent, typeof i12.FsListManageSavedFiltersComponent, typeof i13.FsHeadComponent, typeof i14.FsHeadCellComponent, typeof i15.FsBodyComponent, typeof i16.FsFooterComponent, typeof i17.FsPaginationComponent, typeof i18.FsListColumnDirective, typeof i19.FsListCellDirective, typeof i20.FsListHeaderDirective, typeof i21.FsListFooterDirective, typeof i22.FsListGroupHeaderDirective, typeof i23.FsListGroupFooterDirective, typeof i24.FsListGroupExpandTriggerDirective, typeof i25.FsListDraggableListDirective, typeof i26.FsListDraggableRowDirective, typeof i27.FsListEmptyStateDirective, typeof i28.FsListContentDirective, typeof i29.FsListContentInitDirective, typeof i30.CustomizeColsDialogComponent], [typeof i31.CommonModule, typeof i32.RouterModule, typeof i33.MatButtonModule, typeof i34.MatIconModule, typeof i35.MatMenuModule, typeof i36.MatProgressSpinnerModule, typeof i37.MatCheckboxModule, typeof i38.MatRippleModule, typeof i39.FsFilterModule, typeof i40.FsMenuModule, typeof i41.FlexLayoutModule, typeof i42.FsScrollModule, typeof i43.FsPromptModule, typeof i44.MatDialogModule, typeof i45.MatTooltipModule, typeof i46.FsFileModule], [typeof i1.FsListComponent, typeof i2.FsRowComponent, typeof i6.FsCellComponent, typeof i10.FsListLoaderComponent, typeof i18.FsListColumnDirective, typeof i19.FsListCellDirective, typeof i20.FsListHeaderDirective, typeof i21.FsListFooterDirective, typeof i22.FsListGroupHeaderDirective, typeof i23.FsListGroupFooterDirective, typeof i24.FsListGroupExpandTriggerDirective, typeof i27.FsListEmptyStateDirective, typeof i28.FsListContentDirective]>;
|
|
54
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FsListModule, [typeof i1.FsListComponent, typeof i2.FsRowComponent, typeof i3.FsRowActionsComponent, typeof i4.FsRowInlineActionComponent, typeof i5.FsRowMenuActionComponent, typeof i6.FsCellComponent, typeof i7.FsFooterRowComponent, typeof i8.FsFooterCellComponent, typeof i9.FsStatusComponent, typeof i10.FsListLoaderComponent, typeof i11.FsListSavedFiltersComponent, typeof i12.FsListManageSavedFiltersComponent, typeof i13.FsHeadComponent, typeof i14.FsHeadCellComponent, typeof i15.FsBodyComponent, typeof i16.FsFooterComponent, typeof i17.FsPaginationComponent, typeof i18.FsListColumnDirective, typeof i19.FsListCellDirective, typeof i20.FsListHeaderDirective, typeof i21.FsListFooterDirective, typeof i22.FsListGroupHeaderDirective, typeof i23.FsListGroupFooterDirective, typeof i24.FsListGroupExpandTriggerDirective, typeof i25.FsListDraggableListDirective, typeof i26.FsListDraggableRowDirective, typeof i27.FsListEmptyStateDirective, typeof i28.FsListContentDirective, typeof i29.FsListContentInitDirective, typeof i30.CustomizeColsDialogComponent], [typeof i31.CommonModule, typeof i32.RouterModule, typeof i33.MatButtonModule, typeof i34.MatIconModule, typeof i35.MatMenuModule, typeof i36.MatProgressSpinnerModule, typeof i37.MatCheckboxModule, typeof i38.MatRippleModule, typeof i39.FsFilterModule, typeof i40.FsMenuModule, typeof i41.FlexLayoutModule, typeof i42.FsScrollModule, typeof i43.FsPromptModule, typeof i44.MatDialogModule, typeof i45.MatTooltipModule, typeof i46.FsFileModule, typeof i47.FsCommonModule], [typeof i1.FsListComponent, typeof i2.FsRowComponent, typeof i6.FsCellComponent, typeof i10.FsListLoaderComponent, typeof i18.FsListColumnDirective, typeof i19.FsListCellDirective, typeof i20.FsListHeaderDirective, typeof i21.FsListFooterDirective, typeof i22.FsListGroupHeaderDirective, typeof i23.FsListGroupFooterDirective, typeof i24.FsListGroupExpandTriggerDirective, typeof i27.FsListEmptyStateDirective, typeof i28.FsListContentDirective]>;
|
|
54
55
|
static ɵinj: i0.ɵɵInjectorDeclaration<FsListModule>;
|
|
55
56
|
}
|
|
56
57
|
export declare function FsListConfigFactory(config: FsListConfig): any;
|
|
@@ -36,7 +36,7 @@ export interface FsListConfig {
|
|
|
36
36
|
fetch?: FsListFetchFn;
|
|
37
37
|
afterFetch?: FsListAfterFetchFn;
|
|
38
38
|
afterContentInit?: FsListAfterContentInitFn;
|
|
39
|
-
scrollable?: FsListScrollableConfig
|
|
39
|
+
scrollable?: FsListScrollableConfig;
|
|
40
40
|
selection?: FsListSelectionConfig;
|
|
41
41
|
initialFetch?: boolean;
|
|
42
42
|
rowEvents?: {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { Model } from 'tsmodels';
|
|
2
1
|
import { ActionType } from '../enums/button-type.enum';
|
|
3
2
|
import { FsListRowActionFile, FsListRowActionLink } from '../interfaces';
|
|
4
|
-
export declare class RowAction
|
|
3
|
+
export declare class RowAction {
|
|
5
4
|
icon: string;
|
|
6
5
|
menu: boolean;
|
|
7
6
|
remove: {
|
|
@@ -24,7 +23,7 @@ export declare class RowAction extends Model {
|
|
|
24
23
|
private readonly _isGroup;
|
|
25
24
|
constructor(config?: any);
|
|
26
25
|
get isGroup(): boolean;
|
|
27
|
-
|
|
26
|
+
_init(value: any): void;
|
|
28
27
|
checkShowStatus(row: any, index: any): void;
|
|
29
28
|
updateLink(row: any): void;
|
|
30
29
|
updateLabel(row: any): void;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export declare class StyleConfig extends Model {
|
|
1
|
+
export declare class StyleConfig {
|
|
3
2
|
colspan: any;
|
|
4
3
|
align: string;
|
|
5
4
|
className: string | string[];
|
|
@@ -22,6 +21,7 @@ export declare class StyleConfig extends Model {
|
|
|
22
21
|
* @param prior2
|
|
23
22
|
*/
|
|
24
23
|
mergeClassByPriority(prior1: StyleConfig, prior2: StyleConfig): void;
|
|
24
|
+
private _init;
|
|
25
25
|
/**
|
|
26
26
|
* Merge params into array
|
|
27
27
|
* @param to
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/router'), require('@angular/material/button'), require('@angular/material/checkbox'), require('@angular/material/core'), require('@angular/material/dialog'), require('@angular/material/icon'), require('@angular/material/menu'), require('@angular/material/tooltip'), require('@angular/material/progress-spinner'), require('@angular/flex-layout'), require('@firestitch/filter'), require('@firestitch/scroll'), require('@firestitch/menu'), require('@firestitch/prompt'), require('@firestitch/file'), require('
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@firestitch/list', ['exports', '@angular/core', '@angular/common', '@angular/router', '@angular/material/button', '@angular/material/checkbox', '@angular/material/core', '@angular/material/dialog', '@angular/material/icon', '@angular/material/menu', '@angular/material/tooltip', '@angular/material/progress-spinner', '@angular/flex-layout', '@firestitch/filter', '@firestitch/scroll', '@firestitch/menu', '@firestitch/prompt', '@firestitch/file', 'lodash-es', 'rxjs', 'rxjs/operators', '@firestitch/
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.firestitch = global.firestitch || {}, global.firestitch.list = {}), global.ng.core, global.ng.common, global.ng.router, global.ng.material.button, global.ng.material.checkbox, global.ng.material.core, global.ng.material.dialog, global.ng.material.icon, global.ng.material.menu, global.ng.material.tooltip, global.ng.material.progressSpinner, global.ng.flexLayout, global.i2, global.i2$4, global.i2$3, global.i1$1, global.i4$1, global.
|
|
5
|
-
})(this, (function (exports, i0, i3$1, i6$1, i2$2, i2$1, i4$2, i4, i3, menu, i6, progressSpinner, flexLayout, i2, i2$4, i2$3, i1$1, i4$1, lodashEs, rxjs, operators,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/router'), require('@angular/material/button'), require('@angular/material/checkbox'), require('@angular/material/core'), require('@angular/material/dialog'), require('@angular/material/icon'), require('@angular/material/menu'), require('@angular/material/tooltip'), require('@angular/material/progress-spinner'), require('@angular/flex-layout'), require('@firestitch/filter'), require('@firestitch/scroll'), require('@firestitch/menu'), require('@firestitch/prompt'), require('@firestitch/file'), require('@firestitch/common'), require('lodash-es'), require('rxjs'), require('rxjs/operators'), require('@firestitch/store'), require('@firestitch/selection'), require('@firestitch/drawer'), require('@angular/flex-layout/extended'), require('@angular/flex-layout/flex')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@firestitch/list', ['exports', '@angular/core', '@angular/common', '@angular/router', '@angular/material/button', '@angular/material/checkbox', '@angular/material/core', '@angular/material/dialog', '@angular/material/icon', '@angular/material/menu', '@angular/material/tooltip', '@angular/material/progress-spinner', '@angular/flex-layout', '@firestitch/filter', '@firestitch/scroll', '@firestitch/menu', '@firestitch/prompt', '@firestitch/file', '@firestitch/common', 'lodash-es', 'rxjs', 'rxjs/operators', '@firestitch/store', '@firestitch/selection', '@firestitch/drawer', '@angular/flex-layout/extended', '@angular/flex-layout/flex'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.firestitch = global.firestitch || {}, global.firestitch.list = {}), global.ng.core, global.ng.common, global.ng.router, global.ng.material.button, global.ng.material.checkbox, global.ng.material.core, global.ng.material.dialog, global.ng.material.icon, global.ng.material.menu, global.ng.material.tooltip, global.ng.material.progressSpinner, global.ng.flexLayout, global.i2, global.i2$4, global.i2$3, global.i1$1, global.i4$1, global.i5$1, global.lodashEs, global.rxjs, global.rxjs.operators, global.i1, global.i3$3, global.i9, global.ng.flexLayout.extended, global.ng.flexLayout.flex));
|
|
5
|
+
})(this, (function (exports, i0, i3$1, i6$1, i2$2, i2$1, i4$2, i4, i3, menu, i6, progressSpinner, flexLayout, i2, i2$4, i2$3, i1$1, i4$1, i5$1, lodashEs, rxjs, operators, i1, i3$3, i9, i5, i3$2) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespace(e) {
|
|
8
8
|
if (e && e.__esModule) return e;
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
var i2__namespace$3 = /*#__PURE__*/_interopNamespace(i2$3);
|
|
37
37
|
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
|
|
38
38
|
var i4__namespace$1 = /*#__PURE__*/_interopNamespace(i4$1);
|
|
39
|
+
var i5__namespace$1 = /*#__PURE__*/_interopNamespace(i5$1);
|
|
39
40
|
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
40
41
|
var i3__namespace$3 = /*#__PURE__*/_interopNamespace(i3$3);
|
|
41
42
|
var i9__namespace = /*#__PURE__*/_interopNamespace(i9);
|
|
@@ -360,16 +361,13 @@
|
|
|
360
361
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
361
362
|
}
|
|
362
363
|
|
|
363
|
-
var StyleConfig = /** @class */ (function (
|
|
364
|
-
__extends(StyleConfig, _super);
|
|
364
|
+
var StyleConfig = /** @class */ (function () {
|
|
365
365
|
function StyleConfig(config) {
|
|
366
366
|
if (config === void 0) { config = {}; }
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
_this._fromJSON(config);
|
|
372
|
-
return _this;
|
|
367
|
+
this.className = []; // Can't be used in tempaltes!
|
|
368
|
+
this.classesArray = []; // Can be used in tempaltes
|
|
369
|
+
this.classesString = '';
|
|
370
|
+
this._init(config);
|
|
373
371
|
}
|
|
374
372
|
/**
|
|
375
373
|
* Create static array of styles for using in templates
|
|
@@ -419,6 +417,11 @@
|
|
|
419
417
|
}
|
|
420
418
|
this.className = targetValue;
|
|
421
419
|
};
|
|
420
|
+
StyleConfig.prototype._init = function (config) {
|
|
421
|
+
this.colspan = config.colspan;
|
|
422
|
+
this.align = config.align;
|
|
423
|
+
this.className = config.className;
|
|
424
|
+
};
|
|
422
425
|
/**
|
|
423
426
|
* Merge params into array
|
|
424
427
|
* @param to
|
|
@@ -433,19 +436,7 @@
|
|
|
433
436
|
}
|
|
434
437
|
};
|
|
435
438
|
return StyleConfig;
|
|
436
|
-
}(
|
|
437
|
-
__decorate([
|
|
438
|
-
tsmodels.Alias(),
|
|
439
|
-
__metadata("design:type", Object)
|
|
440
|
-
], StyleConfig.prototype, "colspan", void 0);
|
|
441
|
-
__decorate([
|
|
442
|
-
tsmodels.Alias(),
|
|
443
|
-
__metadata("design:type", String)
|
|
444
|
-
], StyleConfig.prototype, "align", void 0);
|
|
445
|
-
__decorate([
|
|
446
|
-
tsmodels.Alias(),
|
|
447
|
-
__metadata("design:type", Object)
|
|
448
|
-
], StyleConfig.prototype, "className", void 0);
|
|
439
|
+
}());
|
|
449
440
|
|
|
450
441
|
exports.SortingDirection = void 0;
|
|
451
442
|
(function (SortingDirection) {
|
|
@@ -676,20 +667,17 @@
|
|
|
676
667
|
ActionType["MiniFab"] = "mini-fab";
|
|
677
668
|
})(exports.ActionType || (exports.ActionType = {}));
|
|
678
669
|
|
|
679
|
-
var RowAction = /** @class */ (function (
|
|
680
|
-
__extends(RowAction, _super);
|
|
670
|
+
var RowAction = /** @class */ (function () {
|
|
681
671
|
function RowAction(config) {
|
|
682
672
|
if (config === void 0) { config = {}; }
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
_this._isGroup = true;
|
|
673
|
+
this.label = '';
|
|
674
|
+
this.classArray = [];
|
|
675
|
+
this.isShown = true;
|
|
676
|
+
this._isGroup = false;
|
|
677
|
+
this._init(config);
|
|
678
|
+
if (Array.isArray(this.rowActions)) {
|
|
679
|
+
this._isGroup = true;
|
|
691
680
|
}
|
|
692
|
-
return _this;
|
|
693
681
|
}
|
|
694
682
|
Object.defineProperty(RowAction.prototype, "isGroup", {
|
|
695
683
|
get: function () {
|
|
@@ -698,15 +686,17 @@
|
|
|
698
686
|
enumerable: false,
|
|
699
687
|
configurable: true
|
|
700
688
|
});
|
|
701
|
-
RowAction.prototype.
|
|
689
|
+
RowAction.prototype._init = function (value) {
|
|
702
690
|
var _this = this;
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
691
|
+
var _a, _b, _c;
|
|
692
|
+
this.icon = value.icon;
|
|
693
|
+
this.menu = (_a = value.menu) !== null && _a !== void 0 ? _a : true;
|
|
694
|
+
this.remove = value.remove;
|
|
695
|
+
this.className = value.className;
|
|
696
|
+
this.type = (_b = value.type) !== null && _b !== void 0 ? _b : exports.ActionType.Basic;
|
|
697
|
+
this.show = value.show;
|
|
698
|
+
this.restore = value.restore;
|
|
699
|
+
this.rowActions = (_c = value.rowActions) === null || _c === void 0 ? void 0 : _c.map(function (action) { return new RowAction(action); });
|
|
710
700
|
// Re-assign click function
|
|
711
701
|
var clickFn = value.click;
|
|
712
702
|
this.click = function (row, event, index, rowActionsRef) {
|
|
@@ -791,39 +781,7 @@
|
|
|
791
781
|
}
|
|
792
782
|
};
|
|
793
783
|
return RowAction;
|
|
794
|
-
}(
|
|
795
|
-
__decorate([
|
|
796
|
-
tsmodels.Alias(),
|
|
797
|
-
__metadata("design:type", String)
|
|
798
|
-
], RowAction.prototype, "icon", void 0);
|
|
799
|
-
__decorate([
|
|
800
|
-
tsmodels.Alias(),
|
|
801
|
-
__metadata("design:type", Boolean)
|
|
802
|
-
], RowAction.prototype, "menu", void 0);
|
|
803
|
-
__decorate([
|
|
804
|
-
tsmodels.Alias(),
|
|
805
|
-
__metadata("design:type", Object)
|
|
806
|
-
], RowAction.prototype, "remove", void 0);
|
|
807
|
-
__decorate([
|
|
808
|
-
tsmodels.Alias(),
|
|
809
|
-
__metadata("design:type", String)
|
|
810
|
-
], RowAction.prototype, "className", void 0);
|
|
811
|
-
__decorate([
|
|
812
|
-
tsmodels.Alias(),
|
|
813
|
-
__metadata("design:type", String)
|
|
814
|
-
], RowAction.prototype, "type", void 0);
|
|
815
|
-
__decorate([
|
|
816
|
-
tsmodels.Alias(),
|
|
817
|
-
__metadata("design:type", Function)
|
|
818
|
-
], RowAction.prototype, "show", void 0);
|
|
819
|
-
__decorate([
|
|
820
|
-
tsmodels.Alias(),
|
|
821
|
-
__metadata("design:type", Boolean)
|
|
822
|
-
], RowAction.prototype, "restore", void 0);
|
|
823
|
-
__decorate([
|
|
824
|
-
tsmodels.Alias('rowActions', RowAction),
|
|
825
|
-
__metadata("design:type", Array)
|
|
826
|
-
], RowAction.prototype, "rowActions", void 0);
|
|
784
|
+
}());
|
|
827
785
|
|
|
828
786
|
var ColumnsController = /** @class */ (function () {
|
|
829
787
|
function ColumnsController() {
|
|
@@ -3478,56 +3436,51 @@
|
|
|
3478
3436
|
}());
|
|
3479
3437
|
|
|
3480
3438
|
var SHOW_DELETED_FILTERS_KEY = '$$_show_deleted_$$';
|
|
3481
|
-
var List = /** @class */ (function (
|
|
3482
|
-
__extends(List, _super);
|
|
3439
|
+
var List = /** @class */ (function () {
|
|
3483
3440
|
function List(el, config, fsScroll, selectionDialog, router, route, persistance, inDialog) {
|
|
3484
3441
|
if (config === void 0) { config = {}; }
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
_this.filters = [];
|
|
3495
|
-
_this.scrollable = false;
|
|
3442
|
+
this.el = el;
|
|
3443
|
+
this.config = config;
|
|
3444
|
+
this.fsScroll = fsScroll;
|
|
3445
|
+
this.selectionDialog = selectionDialog;
|
|
3446
|
+
this.router = router;
|
|
3447
|
+
this.route = route;
|
|
3448
|
+
this.persistance = persistance;
|
|
3449
|
+
this.inDialog = inDialog;
|
|
3450
|
+
this.filters = [];
|
|
3496
3451
|
// @Alias('rows') private _rows: any;
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3452
|
+
this.initialized$ = new rxjs.BehaviorSubject(false);
|
|
3453
|
+
this.loading$ = new rxjs.BehaviorSubject(false);
|
|
3454
|
+
this.paging = new PaginationController();
|
|
3455
|
+
this.columns = new ColumnsController();
|
|
3456
|
+
this.actions = new ActionsController();
|
|
3457
|
+
this.dataController = new DataController();
|
|
3458
|
+
this.sorting = new SortingController();
|
|
3459
|
+
this.filterConfig = null;
|
|
3460
|
+
this.fetch$ = new rxjs.Subject();
|
|
3461
|
+
this.fetchComplete$ = new rxjs.Subject();
|
|
3462
|
+
this.filtersReady$ = new rxjs.Subject();
|
|
3463
|
+
this.status = true;
|
|
3464
|
+
this.chips = false;
|
|
3465
|
+
this.filterInput = true;
|
|
3466
|
+
this.queryParam = false;
|
|
3467
|
+
this.restoreMode = false;
|
|
3468
|
+
this.initialFetch = true;
|
|
3514
3469
|
// Empty state
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
_this.fetch$.next();
|
|
3470
|
+
this.emptyStateEnabled = false;
|
|
3471
|
+
this.onDestroy$ = new rxjs.Subject();
|
|
3472
|
+
this._filtersQuery = new rxjs.BehaviorSubject(null);
|
|
3473
|
+
this.initialize(config);
|
|
3474
|
+
this._headerConfig = new StyleConfig(config.header);
|
|
3475
|
+
this._groupCellConfig = new StyleConfig(config.cell);
|
|
3476
|
+
this._cellConfig = new StyleConfig(config.cell);
|
|
3477
|
+
this._footerConfig = new StyleConfig(config.footer);
|
|
3478
|
+
this.initialized$.next(true);
|
|
3479
|
+
this.subscribe();
|
|
3480
|
+
if (this.initialFetch) {
|
|
3481
|
+
this.dataController.setOperation(exports.FsListState.Load);
|
|
3482
|
+
this.fetch$.next();
|
|
3529
3483
|
}
|
|
3530
|
-
return _this;
|
|
3531
3484
|
}
|
|
3532
3485
|
Object.defineProperty(List.prototype, "hasSavedFilters", {
|
|
3533
3486
|
get: function () {
|
|
@@ -3720,6 +3673,24 @@
|
|
|
3720
3673
|
* @param config
|
|
3721
3674
|
*/
|
|
3722
3675
|
List.prototype.initialize = function (config) {
|
|
3676
|
+
var _a;
|
|
3677
|
+
this.heading = config.heading;
|
|
3678
|
+
this.trackBy = config.trackBy;
|
|
3679
|
+
this.subheading = config.subheading;
|
|
3680
|
+
this.rowActionsRaw = config.rowActions;
|
|
3681
|
+
this.rowClass = config.rowClass;
|
|
3682
|
+
this.rowEvents = config.rowEvents;
|
|
3683
|
+
this.restore = config.restore;
|
|
3684
|
+
this.persist = config.persist;
|
|
3685
|
+
this.filters = (_a = config.filters) !== null && _a !== void 0 ? _a : [];
|
|
3686
|
+
this.filterInitCb = config.filterInit;
|
|
3687
|
+
this.filterChangeCb = config.filterChange;
|
|
3688
|
+
this.savedFilters = config.savedFilters;
|
|
3689
|
+
this.scrollable = config.scrollable;
|
|
3690
|
+
this.noResults = config.noResults;
|
|
3691
|
+
this.emptyState = config.emptyState;
|
|
3692
|
+
this.fetchFn = config.fetch;
|
|
3693
|
+
this.afterFetchFn = config.afterFetch;
|
|
3723
3694
|
this.columns.initConfig(config.column);
|
|
3724
3695
|
this.initDefaultOptions(config);
|
|
3725
3696
|
this.initRestore();
|
|
@@ -4011,7 +3982,7 @@
|
|
|
4011
3982
|
persist: this.persist,
|
|
4012
3983
|
items: this.filters || [],
|
|
4013
3984
|
savedFilters: this.savedFilters,
|
|
4014
|
-
inline: this.inlineFilters,
|
|
3985
|
+
// inline: this.inlineFilters,
|
|
4015
3986
|
actions: this.actions.actions,
|
|
4016
3987
|
queryParam: this.queryParam,
|
|
4017
3988
|
sorts: sortValues,
|
|
@@ -4169,83 +4140,7 @@
|
|
|
4169
4140
|
}
|
|
4170
4141
|
};
|
|
4171
4142
|
return List;
|
|
4172
|
-
}(
|
|
4173
|
-
__decorate([
|
|
4174
|
-
tsmodels.Alias(),
|
|
4175
|
-
__metadata("design:type", String)
|
|
4176
|
-
], List.prototype, "heading", void 0);
|
|
4177
|
-
__decorate([
|
|
4178
|
-
tsmodels.Alias(),
|
|
4179
|
-
__metadata("design:type", String)
|
|
4180
|
-
], List.prototype, "trackBy", void 0);
|
|
4181
|
-
__decorate([
|
|
4182
|
-
tsmodels.Alias(),
|
|
4183
|
-
__metadata("design:type", String)
|
|
4184
|
-
], List.prototype, "subheading", void 0);
|
|
4185
|
-
__decorate([
|
|
4186
|
-
tsmodels.Alias(),
|
|
4187
|
-
__metadata("design:type", Object)
|
|
4188
|
-
], List.prototype, "inlineFilters", void 0);
|
|
4189
|
-
__decorate([
|
|
4190
|
-
tsmodels.Alias('rowActions'),
|
|
4191
|
-
__metadata("design:type", Array)
|
|
4192
|
-
], List.prototype, "rowActionsRaw", void 0);
|
|
4193
|
-
__decorate([
|
|
4194
|
-
tsmodels.Alias('rowClass'),
|
|
4195
|
-
__metadata("design:type", Object)
|
|
4196
|
-
], List.prototype, "rowClass", void 0);
|
|
4197
|
-
__decorate([
|
|
4198
|
-
tsmodels.Alias(),
|
|
4199
|
-
__metadata("design:type", Object)
|
|
4200
|
-
], List.prototype, "rowEvents", void 0);
|
|
4201
|
-
__decorate([
|
|
4202
|
-
tsmodels.Alias(),
|
|
4203
|
-
__metadata("design:type", Object)
|
|
4204
|
-
], List.prototype, "restore", void 0);
|
|
4205
|
-
__decorate([
|
|
4206
|
-
tsmodels.Alias(),
|
|
4207
|
-
__metadata("design:type", Object)
|
|
4208
|
-
], List.prototype, "columnTemplates", void 0);
|
|
4209
|
-
__decorate([
|
|
4210
|
-
tsmodels.Alias(),
|
|
4211
|
-
__metadata("design:type", Boolean)
|
|
4212
|
-
], List.prototype, "persist", void 0);
|
|
4213
|
-
__decorate([
|
|
4214
|
-
tsmodels.Alias(),
|
|
4215
|
-
__metadata("design:type", Object)
|
|
4216
|
-
], List.prototype, "filters", void 0);
|
|
4217
|
-
__decorate([
|
|
4218
|
-
tsmodels.Alias('filterInit'),
|
|
4219
|
-
__metadata("design:type", Function)
|
|
4220
|
-
], List.prototype, "filterInitCb", void 0);
|
|
4221
|
-
__decorate([
|
|
4222
|
-
tsmodels.Alias('filterChange'),
|
|
4223
|
-
__metadata("design:type", Function)
|
|
4224
|
-
], List.prototype, "filterChangeCb", void 0);
|
|
4225
|
-
__decorate([
|
|
4226
|
-
tsmodels.Alias(),
|
|
4227
|
-
__metadata("design:type", Object)
|
|
4228
|
-
], List.prototype, "savedFilters", void 0);
|
|
4229
|
-
__decorate([
|
|
4230
|
-
tsmodels.Alias(),
|
|
4231
|
-
__metadata("design:type", Object)
|
|
4232
|
-
], List.prototype, "scrollable", void 0);
|
|
4233
|
-
__decorate([
|
|
4234
|
-
tsmodels.Alias(),
|
|
4235
|
-
__metadata("design:type", Object)
|
|
4236
|
-
], List.prototype, "noResults", void 0);
|
|
4237
|
-
__decorate([
|
|
4238
|
-
tsmodels.Alias(),
|
|
4239
|
-
__metadata("design:type", Object)
|
|
4240
|
-
], List.prototype, "emptyState", void 0);
|
|
4241
|
-
__decorate([
|
|
4242
|
-
tsmodels.Alias('fetch'),
|
|
4243
|
-
__metadata("design:type", Function)
|
|
4244
|
-
], List.prototype, "fetchFn", void 0);
|
|
4245
|
-
__decorate([
|
|
4246
|
-
tsmodels.Alias('afterFetch'),
|
|
4247
|
-
__metadata("design:type", Function)
|
|
4248
|
-
], List.prototype, "afterFetchFn", void 0);
|
|
4143
|
+
}());
|
|
4249
4144
|
|
|
4250
4145
|
exports.ReorderPosition = void 0;
|
|
4251
4146
|
(function (ReorderPosition) {
|
|
@@ -5786,7 +5681,7 @@
|
|
|
5786
5681
|
return FsRowComponent;
|
|
5787
5682
|
}());
|
|
5788
5683
|
FsRowComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsRowComponent, deps: [{ token: i0__namespace.ElementRef }, { token: ReorderController }, { token: i0__namespace.ChangeDetectorRef }, { token: i0__namespace.KeyValueDiffers }, { token: i0__namespace.Renderer2 }, { token: FsListDraggableListDirective }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
5789
|
-
FsRowComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FsRowComponent, selector: "[fs-list-row]", inputs: { row: "row", rowActionsRaw: "rowActionsRaw", groupActionsRaw: "groupActionsRaw", hasRowActions: "hasRowActions", rowEvents: "rowEvents", rowClass: "rowClass", restoreMode: "restoreMode", rowIndex: "rowIndex", columns: "columns", selection: "selection", rowRemoved: "rowRemoved" }, host: { properties: { "attr.role": "this.role", "class": "this.rowCssClass" } }, viewQueries: [{ propertyName: "cellRefs", predicate: ["td"], descendants: true }], ngImport: i0__namespace, template: "<!-- Drag -->\n<ng-container *ngIf=\"reorderController.leftReorderActivated$ | async\">\n <ng-container *ngTemplateOutlet=\"dragCell\"></ng-container>\n</ng-container>\n\n<!-- Selection -->\n<ng-container *ngIf=\"selection\">\n <td class=\"fs-list-col fs-list-col-selection\">\n <ng-container *ngIf=\"!row.isFooter\">\n <mat-checkbox (change)=\"selectRow($event)\"\n [checked]=\"selected\"\n [indeterminate]=\"indeterminateSelected\">\n </mat-checkbox>\n </ng-container>\n </td>\n</ng-container>\n\n<!-- Content -->\n<ng-container *ngFor=\"let column of columns; trackBy: trackByFn; let isFirst = first\">\n <td fs-cell\n *ngIf=\"(isGroupRow && !column.groupHeaderColspanned)\n || (isGroupFooterRow && !column.groupFooterColspanned)\n || (!isGroupRow && !isGroupFooterRow && !column.cellColspanned)\"\n [column]=\"column\"\n [row]=\"row\"\n [rowIndex]=\"rowIndex\"\n [class]=\"column.cellConfigs.classesString\"\n [ngClass]=\"{ 'primary-col': isFirst }\"\n [attr.colspan]=\"(isGroupRow && column.groupHeaderConfigs.colspan)\n || (isGroupFooterRow && column.groupFooterConfigs.colspan)\n || column.cellConfigs.colspan\"\n [attr.width]=\"column.width\"\n >\n </td>\n</ng-container>\n\n<!-- Drag -->\n<ng-container *ngIf=\"reorderController.rightReorderActivated$ | async\">\n <ng-container *ngTemplateOutlet=\"dragCell\"></ng-container>\n</ng-container>\n\n<!-- Row Actions -->\n<td *ngIf=\"hasRowActions && !(reorderController.manualReorderActivated$ | async)\" class=\"fs-list-col row-actions\">\n <ng-container *ngIf=\"!isGroupFooterRow\">\n <fs-list-row-actions [row]=\"row\"\n [index]=\"rowIndex\"\n [rowActions]=\"rowActions\"\n [menuRowActions]=\"menuRowActions\"\n [inlineRowActions]=\"inlineRowActions\"\n [restoreAction]=\"restoreAction\"\n [restoreMode]=\"restoreMode\"\n [rowRemoved]=\"rowRemoved\"\n ></fs-list-row-actions>\n </ng-container>\n</td>\n\n<ng-template #dragCell>\n <ng-container *ngIf=\"dragCellVisible && !isGroupFooterRow; else emptyCell\">\n <td class=\"fs-list-col drag-col\"\n (mousedown)=\"dragStart($event)\"\n (touchstart)=\"dragStart($event)\"\n >\n <mat-icon>drag_handle</mat-icon>\n </td>\n </ng-container>\n <ng-template #emptyCell>\n <td class=\"fs-list-col drag-col\"></td>\n </ng-template>\n</ng-template>\n", components: [{ type: i2__namespace.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex", "aria-label", "aria-labelledby", "id", "labelPosition", "name", "required", "checked", "disabled", "indeterminate", "aria-describedby", "value"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { type: FsCellComponent, selector: "[fs-cell]", inputs: ["column", "row", "rowIndex"] }, { type: FsRowActionsComponent, selector: "fs-list-row-actions", inputs: ["row", "index", "restoreMode", "rowActions", "rowRemoved", "menuRowActions", "inlineRowActions", "restoreAction"] }, { type: i3__namespace.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i3__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i3__namespace$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3__namespace$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i5__namespace.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }], pipes: { "async": i3__namespace$1.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
5684
|
+
FsRowComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FsRowComponent, selector: "[fs-list-row]", inputs: { row: "row", rowActionsRaw: "rowActionsRaw", groupActionsRaw: "groupActionsRaw", hasRowActions: "hasRowActions", rowEvents: "rowEvents", rowClass: "rowClass", restoreMode: "restoreMode", rowIndex: "rowIndex", columns: "columns", selection: "selection", rowRemoved: "rowRemoved" }, host: { properties: { "attr.role": "this.role", "class": "this.rowCssClass" } }, viewQueries: [{ propertyName: "cellRefs", predicate: ["td"], descendants: true }], ngImport: i0__namespace, template: "<!-- Drag -->\n<ng-container *ngIf=\"reorderController.leftReorderActivated$ | async\">\n <ng-container *ngTemplateOutlet=\"dragCell\"></ng-container>\n</ng-container>\n\n<!-- Selection -->\n<ng-container *ngIf=\"selection\">\n <td class=\"fs-list-col fs-list-col-selection\">\n <ng-container *ngIf=\"!row.isFooter\">\n <mat-checkbox (change)=\"selectRow($event)\"\n [checked]=\"selected\"\n [indeterminate]=\"indeterminateSelected\">\n </mat-checkbox>\n </ng-container>\n </td>\n</ng-container>\n\n<!-- Content -->\n<ng-container *ngFor=\"let column of columns; trackBy: trackByFn; let isFirst = first\">\n <td fs-cell\n *ngIf=\"(isGroupRow && !column.groupHeaderColspanned)\n || (isGroupFooterRow && !column.groupFooterColspanned)\n || (!isGroupRow && !isGroupFooterRow && !column.cellColspanned)\"\n [column]=\"column\"\n [row]=\"row\"\n [rowIndex]=\"rowIndex\"\n [class]=\"(isGroupRow && column.groupHeaderConfigs.classesString)\n || (isGroupFooterRow && column.groupFooterConfigs.classesString)\n || (!isGroupFooterRow && column.cellConfigs.classesString)\"\n [ngClass]=\"{ 'primary-col': isFirst }\"\n [attr.colspan]=\"(isGroupRow && column.groupHeaderConfigs.colspan)\n || (isGroupFooterRow && column.groupFooterConfigs.colspan)\n || column.cellConfigs.colspan\"\n [attr.width]=\"column.width\"\n >\n </td>\n</ng-container>\n\n<!-- Drag -->\n<ng-container *ngIf=\"reorderController.rightReorderActivated$ | async\">\n <ng-container *ngTemplateOutlet=\"dragCell\"></ng-container>\n</ng-container>\n\n<!-- Row Actions -->\n<td *ngIf=\"hasRowActions && !(reorderController.manualReorderActivated$ | async)\" class=\"fs-list-col row-actions\">\n <ng-container *ngIf=\"!isGroupFooterRow\">\n <fs-list-row-actions [row]=\"row\"\n [index]=\"rowIndex\"\n [rowActions]=\"rowActions\"\n [menuRowActions]=\"menuRowActions\"\n [inlineRowActions]=\"inlineRowActions\"\n [restoreAction]=\"restoreAction\"\n [restoreMode]=\"restoreMode\"\n [rowRemoved]=\"rowRemoved\"\n ></fs-list-row-actions>\n </ng-container>\n</td>\n\n<ng-template #dragCell>\n <ng-container *ngIf=\"dragCellVisible && !isGroupFooterRow; else emptyCell\">\n <td class=\"fs-list-col drag-col\"\n (mousedown)=\"dragStart($event)\"\n (touchstart)=\"dragStart($event)\"\n >\n <mat-icon>drag_handle</mat-icon>\n </td>\n </ng-container>\n <ng-template #emptyCell>\n <td class=\"fs-list-col drag-col\"></td>\n </ng-template>\n</ng-template>\n", components: [{ type: i2__namespace.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex", "aria-label", "aria-labelledby", "id", "labelPosition", "name", "required", "checked", "disabled", "indeterminate", "aria-describedby", "value"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { type: FsCellComponent, selector: "[fs-cell]", inputs: ["column", "row", "rowIndex"] }, { type: FsRowActionsComponent, selector: "fs-list-row-actions", inputs: ["row", "index", "restoreMode", "rowActions", "rowRemoved", "menuRowActions", "inlineRowActions", "restoreAction"] }, { type: i3__namespace.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i3__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i3__namespace$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3__namespace$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i5__namespace.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }], pipes: { "async": i3__namespace$1.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
5790
5685
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsRowComponent, decorators: [{
|
|
5791
5686
|
type: i0.Component,
|
|
5792
5687
|
args: [{
|
|
@@ -6086,7 +5981,7 @@
|
|
|
6086
5981
|
return FsPaginationComponent;
|
|
6087
5982
|
}());
|
|
6088
5983
|
FsPaginationComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsPaginationComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
6089
|
-
FsPaginationComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FsPaginationComponent, selector: "fs-list-pagination", inputs: { pagination: "pagination", rows: "rows" }, ngImport: i0__namespace, template: "<ng-container *ngIf=\"!pagination.loadMoreEnabled; else loadMoreButton\">\n <div class=\"paging\" *ngIf=\"pagination?.pages\">\n <div class=\"records\"></div>\n <div fxFlex>\n <div class=\"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 }} of {{ pagination.pages }}\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\n </div>\n </div>\n </div>\n</ng-container>\n\n<ng-template #loadMoreButton>\n <div class=\"fs-list-load-more\" *ngIf=\"pagination.hasNextPage\">\n <button mat-button (click)=\"pagination.goNext()\">{{ pagination.loadMoreText }}</button>\n </div>\n</ng-template>\n", styles: [":host{display:block}.paging{display:flex}.paging .pages{display:flex;justify-content:center;align-items:center;-webkit-user-select:none;user-select:none}.paging .pages a{text-align:center;color:#000000de;text-decoration:none;font-size:15px;cursor:pointer;display:flex}.paging .pages a:not(.page){padding:10px}.paging .pages a.disabled{pointer-events:none;cursor:default;color:#d8d8d8}.paging .pages .number{font-size:90%}.fs-list-load-more button{width:100%;margin-top:10px}\n"], components: [{ type: i2__namespace$1.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"] }], directives: [{ type: i3__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace$2.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { type: i4__namespace$2.MatRipple, selector: "[mat-ripple], [matRipple]", inputs: ["matRippleRadius", "matRippleDisabled", "matRippleTrigger", "matRippleColor", "matRippleUnbounded", "matRippleCentered", "matRippleAnimation"], exportAs: ["matRipple"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
5984
|
+
FsPaginationComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FsPaginationComponent, selector: "fs-list-pagination", inputs: { pagination: "pagination", rows: "rows" }, ngImport: i0__namespace, template: "<ng-container *ngIf=\"!pagination.loadMoreEnabled; else loadMoreButton\">\n <div class=\"paging\" *ngIf=\"pagination?.pages\">\n <div class=\"records\"></div>\n <div fxFlex>\n <div class=\"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\n </div>\n </div>\n </div>\n</ng-container>\n\n<ng-template #loadMoreButton>\n <div class=\"fs-list-load-more\" *ngIf=\"pagination.hasNextPage\">\n <button mat-button (click)=\"pagination.goNext()\">{{ pagination.loadMoreText }}</button>\n </div>\n</ng-template>\n", styles: [":host{display:block}.paging{display:flex}.paging .pages{display:flex;justify-content:center;align-items:center;-webkit-user-select:none;user-select:none}.paging .pages a{text-align:center;color:#000000de;text-decoration:none;font-size:15px;cursor:pointer;display:flex}.paging .pages a:not(.page){padding:10px}.paging .pages a.disabled{pointer-events:none;cursor:default;color:#d8d8d8}.paging .pages .number{font-size:90%}.fs-list-load-more button{width:100%;margin-top:10px}\n"], components: [{ type: i2__namespace$1.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"] }], directives: [{ type: i3__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace$2.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { type: i4__namespace$2.MatRipple, selector: "[mat-ripple], [matRipple]", inputs: ["matRippleRadius", "matRippleDisabled", "matRippleTrigger", "matRippleColor", "matRippleUnbounded", "matRippleCentered", "matRippleAnimation"], exportAs: ["matRipple"] }], pipes: { "fsFormatNumber": i5__namespace$1.FsFormatNumberPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
6090
5985
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsPaginationComponent, decorators: [{
|
|
6091
5986
|
type: i0.Component,
|
|
6092
5987
|
args: [{
|
|
@@ -6422,7 +6317,7 @@
|
|
|
6422
6317
|
}
|
|
6423
6318
|
};
|
|
6424
6319
|
FsListComponent.prototype._restorePersistance = function (persistConfig) {
|
|
6425
|
-
var namespace =
|
|
6320
|
+
var namespace = i5$1.getNormalizedPath(this._location);
|
|
6426
6321
|
this._persistance.setConfig(persistConfig, namespace, this._inDialog);
|
|
6427
6322
|
};
|
|
6428
6323
|
return FsListComponent;
|
|
@@ -6640,7 +6535,8 @@
|
|
|
6640
6535
|
i1$1.FsPromptModule,
|
|
6641
6536
|
i4.MatDialogModule,
|
|
6642
6537
|
i6.MatTooltipModule,
|
|
6643
|
-
i4$1.FsFileModule
|
|
6538
|
+
i4$1.FsFileModule,
|
|
6539
|
+
i5$1.FsCommonModule], exports: [FsListComponent,
|
|
6644
6540
|
FsRowComponent,
|
|
6645
6541
|
FsCellComponent,
|
|
6646
6542
|
FsListLoaderComponent,
|
|
@@ -6670,6 +6566,7 @@
|
|
|
6670
6566
|
i4.MatDialogModule,
|
|
6671
6567
|
i6.MatTooltipModule,
|
|
6672
6568
|
i4$1.FsFileModule,
|
|
6569
|
+
i5$1.FsCommonModule,
|
|
6673
6570
|
]] });
|
|
6674
6571
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsListModule, decorators: [{
|
|
6675
6572
|
type: i0.NgModule,
|
|
@@ -6691,6 +6588,7 @@
|
|
|
6691
6588
|
i4.MatDialogModule,
|
|
6692
6589
|
i6.MatTooltipModule,
|
|
6693
6590
|
i4$1.FsFileModule,
|
|
6591
|
+
i5$1.FsCommonModule,
|
|
6694
6592
|
],
|
|
6695
6593
|
declarations: [
|
|
6696
6594
|
// Components
|