@firestitch/list 18.0.82 → 18.0.83
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/components/list/list.component.d.ts +7 -0
- package/esm2022/app/classes/index.mjs +1 -1
- package/esm2022/app/components/body/row/cell/cell.component.mjs +3 -3
- package/esm2022/app/components/footer/footer-row/footer-cell/footer-cell.component.mjs +3 -3
- package/esm2022/app/components/head/head-cell/head-cell.component.mjs +1 -1
- package/esm2022/app/components/list/list.component.mjs +27 -6
- package/esm2022/app/components/loader/loader.component.mjs +1 -1
- package/esm2022/app/directives/empty-state/empty-state.directive.mjs +1 -1
- package/esm2022/app/directives/footer/footer.directive.mjs +1 -1
- package/esm2022/app/directives/group-expand-trigger/group-expand-trigger.directive.mjs +1 -1
- package/esm2022/app/directives/header/header.directive.mjs +1 -1
- package/esm2022/app/directives/heading/heading.directive.mjs +1 -1
- package/esm2022/app/directives/index.mjs +1 -1
- package/esm2022/app/enums/page-change-type.enum.mjs +1 -1
- package/esm2022/app/enums/pagination-strategy.enum.mjs +1 -1
- package/esm2022/app/enums/state.enum.mjs +1 -1
- package/esm2022/app/interfaces/cellconfig.interface.mjs +1 -1
- package/esm2022/app/interfaces/draggable-list.interface.mjs +1 -1
- package/esm2022/app/interfaces/external-params.interface.mjs +1 -1
- package/esm2022/app/interfaces/sorting-change-event.interface.mjs +1 -1
- package/fesm2022/firestitch-list.mjs +30 -9
- package/fesm2022/firestitch-list.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -3,4 +3,4 @@ export var PageChangeType;
|
|
|
3
3
|
PageChangeType[PageChangeType["Default"] = 0] = "Default";
|
|
4
4
|
PageChangeType[PageChangeType["LimitChanged"] = 1] = "LimitChanged";
|
|
5
5
|
})(PageChangeType || (PageChangeType = {}));
|
|
6
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFnZS1jaGFuZ2UtdHlwZS5lbnVtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2FwcC9lbnVtcy9wYWdlLWNoYW5nZS10eXBlLmVudW0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFOLElBQVksY0FHWDtBQUhELFdBQVksY0FBYztJQUN4Qix5REFBVyxDQUFBO0lBQ1gsbUVBQWdCLENBQUE7QUFDbEIsQ0FBQyxFQUhXLGNBQWMsS0FBZCxjQUFjLFFBR3pCIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGVudW0gUGFnZUNoYW5nZVR5cGUge1xuICBEZWZhdWx0ID0gMCxcbiAgTGltaXRDaGFuZ2VkID0gMVxufVxuIl19
|
|
@@ -5,4 +5,4 @@ export var PaginationStrategy;
|
|
|
5
5
|
PaginationStrategy["Many"] = "many";
|
|
6
6
|
PaginationStrategy["None"] = "none";
|
|
7
7
|
})(PaginationStrategy || (PaginationStrategy = {}));
|
|
8
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
8
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFnaW5hdGlvbi1zdHJhdGVneS5lbnVtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2FwcC9lbnVtcy9wYWdpbmF0aW9uLXN0cmF0ZWd5LmVudW0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFOLElBQVksa0JBS1g7QUFMRCxXQUFZLGtCQUFrQjtJQUM1QixtQ0FBYSxDQUFBO0lBQ2IsdUNBQWlCLENBQUE7SUFDakIsbUNBQWEsQ0FBQTtJQUNiLG1DQUFhLENBQUE7QUFDZixDQUFDLEVBTFcsa0JBQWtCLEtBQWxCLGtCQUFrQixRQUs3QiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBlbnVtIFBhZ2luYXRpb25TdHJhdGVneSB7XG4gIFBhZ2UgPSAncGFnZScsXG4gIE9mZnNldCA9ICdvZmZzZXQnLFxuICBNYW55ID0gJ21hbnknLFxuICBOb25lID0gJ25vbmUnLFxufVxuIl19
|
|
@@ -8,4 +8,4 @@ export var FsListState;
|
|
|
8
8
|
FsListState[FsListState["PageChange"] = 5] = "PageChange";
|
|
9
9
|
FsListState[FsListState["LoadMore"] = 6] = "LoadMore";
|
|
10
10
|
})(FsListState || (FsListState = {}));
|
|
11
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
11
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RhdGUuZW51bS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9hcHAvZW51bXMvc3RhdGUuZW51bS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQU4sSUFBWSxXQVFYO0FBUkQsV0FBWSxXQUFXO0lBQ3JCLDZDQUFJLENBQUE7SUFDSiw2Q0FBSSxDQUFBO0lBQ0osaURBQU0sQ0FBQTtJQUNOLGlEQUFNLENBQUE7SUFDTiw2Q0FBSSxDQUFBO0lBQ0oseURBQVUsQ0FBQTtJQUNWLHFEQUFRLENBQUE7QUFDVixDQUFDLEVBUlcsV0FBVyxLQUFYLFdBQVcsUUFRdEIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZW51bSBGc0xpc3RTdGF0ZSB7XG4gIElkbGUsXG4gIExvYWQsXG4gIFJlbG9hZCxcbiAgRmlsdGVyLFxuICBTb3J0LFxuICBQYWdlQ2hhbmdlLFxuICBMb2FkTW9yZSxcbn1cbiJdfQ==
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2VsbGNvbmZpZy5pbnRlcmZhY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvYXBwL2ludGVyZmFjZXMvY2VsbGNvbmZpZy5pbnRlcmZhY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgQ2VsbENvbmZpZyB7XG4gIGNvbHNwYW4/OiBzdHJpbmc7XG4gIGFsaWduPzogc3RyaW5nO1xuICBzdHlsZUNsYXNzPzogc3RyaW5nIHwgc3RyaW5nW107XG59XG4iXX0=
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHJhZ2dhYmxlLWxpc3QuaW50ZXJmYWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2FwcC9pbnRlcmZhY2VzL2RyYWdnYWJsZS1saXN0LmludGVyZmFjZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBGc0xpc3REcmFnQ2hpbGRSb3dFbGVtZW50IHtcbiAgdGFyZ2V0OiBIVE1MRWxlbWVudDtcbiAgYWN0aXZlOiBib29sZWFuO1xuICBjZW50ZXI6IG51bWJlcjtcbiAgaGVpZ2h0OiBudW1iZXI7XG4gIGluZGV4OiBudW1iZXI7XG59XG4iXX0=
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXh0ZXJuYWwtcGFyYW1zLmludGVyZmFjZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9hcHAvaW50ZXJmYWNlcy9leHRlcm5hbC1wYXJhbXMuaW50ZXJmYWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBTb3J0aW5nRGlyZWN0aW9uIH0gZnJvbSAnLi4vbW9kZWxzL2NvbHVtbi5tb2RlbCc7XG5cbmV4cG9ydCB0eXBlIEV4dGVybmFsUGFyYW1zID0gSUV4dGVybmFsUGFnaW5hdGlvblBhcmFtcyAmIElFeHRlcm5hbFNvcnRpbmdQYXJhbXM7XG5cbmV4cG9ydCB0eXBlIEV4dGVybmFsUXVlcnlQYWdpbmF0aW9uID0gUmVjb3JkPGtleW9mIElFeHRlcm5hbFBhZ2luYXRpb25QYXJhbXMsIHN0cmluZz47XG5leHBvcnQgdHlwZSBFeHRlcm5hbFF1ZXJ5U29ydGluZyA9IElFeHRlcm5hbFNvcnRpbmdQYXJhbXM7XG5cbmludGVyZmFjZSBJRXh0ZXJuYWxQYWdpbmF0aW9uUGFyYW1zIHtcbiAgcGFnZTogbnVtYmVyO1xuICBsaW1pdDogbnVtYmVyO1xufVxuXG5pbnRlcmZhY2UgSUV4dGVybmFsU29ydGluZ1BhcmFtcyB7XG4gIHNvcnROYW1lOiBzdHJpbmc7XG4gIHNvcnREaXJlY3Rpb246IFNvcnRpbmdEaXJlY3Rpb247XG59XG4iXX0=
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic29ydGluZy1jaGFuZ2UtZXZlbnQuaW50ZXJmYWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2FwcC9pbnRlcmZhY2VzL3NvcnRpbmctY2hhbmdlLWV2ZW50LmludGVyZmFjZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBTb3J0aW5nQ2hhbmdlRXZlbnQge1xuICBzb3J0Qnk6IHN0cmluZztcbiAgc29ydERpcmVjdGlvbjogc3RyaW5nO1xufVxuIl19
|
|
@@ -2586,11 +2586,11 @@ class FsCellComponent {
|
|
|
2586
2586
|
}
|
|
2587
2587
|
}
|
|
2588
2588
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2589
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.7", type: FsCellComponent, isStandalone: true, selector: "[fs-cell]", inputs: { column: { classPropertyName: "column", publicName: "column", isSignal: false, isRequired: false, transformFunction: null }, rowIndex: { classPropertyName: "rowIndex", publicName: "rowIndex", isSignal: false, isRequired: false, transformFunction: null }, row: { classPropertyName: "row", publicName: "row", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.fs-list-col": "this.isColl", "attr.role": "this.role" } }, usesOnChanges: true, ngImport: i0, template: "<ng-template [ngTemplateOutlet]=\"cellTemplate || defaultCellTemplate\" [ngTemplateOutletContext]=\"cellContext\"></ng-template>\
|
|
2589
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.7", type: FsCellComponent, isStandalone: true, selector: "[fs-cell]", inputs: { column: { classPropertyName: "column", publicName: "column", isSignal: false, isRequired: false, transformFunction: null }, rowIndex: { classPropertyName: "rowIndex", publicName: "rowIndex", isSignal: false, isRequired: false, transformFunction: null }, row: { classPropertyName: "row", publicName: "row", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.fs-list-col": "this.isColl", "attr.role": "this.role" } }, usesOnChanges: true, ngImport: i0, template: "<ng-template [ngTemplateOutlet]=\"cellTemplate || defaultCellTemplate\" [ngTemplateOutletContext]=\"cellContext\"></ng-template>\n\n<ng-template #defaultCellTemplate let-value=\"value\">\n {{value}}\n</ng-template>\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2590
2590
|
}
|
|
2591
2591
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsCellComponent, decorators: [{
|
|
2592
2592
|
type: Component,
|
|
2593
|
-
args: [{ selector: '[fs-cell]', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [NgTemplateOutlet], template: "<ng-template [ngTemplateOutlet]=\"cellTemplate || defaultCellTemplate\" [ngTemplateOutletContext]=\"cellContext\"></ng-template>\
|
|
2593
|
+
args: [{ selector: '[fs-cell]', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [NgTemplateOutlet], template: "<ng-template [ngTemplateOutlet]=\"cellTemplate || defaultCellTemplate\" [ngTemplateOutletContext]=\"cellContext\"></ng-template>\n\n<ng-template #defaultCellTemplate let-value=\"value\">\n {{value}}\n</ng-template>\n" }]
|
|
2594
2594
|
}], ctorParameters: () => [], propDecorators: { isColl: [{
|
|
2595
2595
|
type: HostBinding,
|
|
2596
2596
|
args: ['class.fs-list-col']
|
|
@@ -3187,11 +3187,11 @@ class FsFooterCellComponent extends FsCellComponent {
|
|
|
3187
3187
|
super();
|
|
3188
3188
|
}
|
|
3189
3189
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsFooterCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3190
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.7", type: FsFooterCellComponent, isStandalone: true, selector: "[fs-list-footer-cell]", usesInheritance: true, ngImport: i0, template: "<ng-template [ngTemplateOutlet]=\"column.footerTemplate || cell\" [ngTemplateOutletContext]=\"cellContext\"></ng-template>\
|
|
3190
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.7", type: FsFooterCellComponent, isStandalone: true, selector: "[fs-list-footer-cell]", usesInheritance: true, ngImport: i0, template: "<ng-template [ngTemplateOutlet]=\"column.footerTemplate || cell\" [ngTemplateOutletContext]=\"cellContext\"></ng-template>\n\n<ng-template #cell let-value=\"value\">\n {{value}}\n</ng-template>\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3191
3191
|
}
|
|
3192
3192
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsFooterCellComponent, decorators: [{
|
|
3193
3193
|
type: Component,
|
|
3194
|
-
args: [{ selector: '[fs-list-footer-cell]', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [NgTemplateOutlet], template: "<ng-template [ngTemplateOutlet]=\"column.footerTemplate || cell\" [ngTemplateOutletContext]=\"cellContext\"></ng-template>\
|
|
3194
|
+
args: [{ selector: '[fs-list-footer-cell]', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [NgTemplateOutlet], template: "<ng-template [ngTemplateOutlet]=\"column.footerTemplate || cell\" [ngTemplateOutletContext]=\"cellContext\"></ng-template>\n\n<ng-template #cell let-value=\"value\">\n {{value}}\n</ng-template>\n" }]
|
|
3195
3195
|
}], ctorParameters: () => [] });
|
|
3196
3196
|
|
|
3197
3197
|
class FsFooterRowComponent extends FsRowComponent {
|
|
@@ -6329,6 +6329,7 @@ class FsListComponent {
|
|
|
6329
6329
|
_mergedListConfig;
|
|
6330
6330
|
_filterRef;
|
|
6331
6331
|
_filterParamsReady = false;
|
|
6332
|
+
_filtersReadyEmitted = false;
|
|
6332
6333
|
_destroy = new Subject();
|
|
6333
6334
|
_injector = inject(Injector);
|
|
6334
6335
|
_config = inject(FS_LIST_CONFIG, { optional: true });
|
|
@@ -6492,8 +6493,6 @@ class FsListComponent {
|
|
|
6492
6493
|
}
|
|
6493
6494
|
filterReady() {
|
|
6494
6495
|
this.list.filtersReady();
|
|
6495
|
-
this._filterParamsReady = true;
|
|
6496
|
-
this._emitFiltersReadyEvent();
|
|
6497
6496
|
}
|
|
6498
6497
|
/**
|
|
6499
6498
|
* Update visibility for specific column
|
|
@@ -6554,10 +6553,15 @@ class FsListComponent {
|
|
|
6554
6553
|
return this.list.columns.hasHeader;
|
|
6555
6554
|
}
|
|
6556
6555
|
_emitFiltersReadyEvent() {
|
|
6557
|
-
if
|
|
6558
|
-
|
|
6559
|
-
|
|
6556
|
+
// The `filterReference` view query re-runs when the surrounding @if re-evaluates, so this
|
|
6557
|
+
// is reached more than once with both conditions already met. Consumers treat the event as
|
|
6558
|
+
// "here is the filter, set yourself up" -- emitting it repeatedly would re-run that setup.
|
|
6559
|
+
if (this._filtersReadyEmitted || !this.filterRef || !this._filterParamsReady) {
|
|
6560
|
+
return;
|
|
6560
6561
|
}
|
|
6562
|
+
this._filtersReadyEmitted = true;
|
|
6563
|
+
this.filtersReady.emit();
|
|
6564
|
+
this._cdRef.markForCheck();
|
|
6561
6565
|
}
|
|
6562
6566
|
get inDialog() {
|
|
6563
6567
|
return !!this._dialogRef || !!this._drawerRef;
|
|
@@ -6596,7 +6600,11 @@ class FsListComponent {
|
|
|
6596
6600
|
this._breakpoints.observe(this._el.nativeElement);
|
|
6597
6601
|
this.list = new List(this._el, listConfig, this._selectionDialog, this._route, this._persistance, this.inDialog, this._breakpoints);
|
|
6598
6602
|
this.rowHoverHighlight = this.list.rowHoverHighlight;
|
|
6603
|
+
// A new List brings a new filter, so the previous readiness must not carry over.
|
|
6604
|
+
this._filterParamsReady = false;
|
|
6605
|
+
this._filtersReadyEmitted = false;
|
|
6599
6606
|
this._waitFirstLoad();
|
|
6607
|
+
this._subscribeToFiltersReady();
|
|
6600
6608
|
this.reorderController.initWithConfig(config.reorder, this.list.dataController, this.list.actions, this.list.selection);
|
|
6601
6609
|
this._rebuildColumns();
|
|
6602
6610
|
this._listenSortingChange();
|
|
@@ -6667,6 +6675,19 @@ class FsListComponent {
|
|
|
6667
6675
|
.forEach((item) => item.updateActions());
|
|
6668
6676
|
});
|
|
6669
6677
|
}
|
|
6678
|
+
/**
|
|
6679
|
+
* The filter announces readiness through the `init` callback installed on its config, which
|
|
6680
|
+
* lands in `List._filterInit`. Forwarding it here is what arms `(filtersReady)` -- without it
|
|
6681
|
+
* `_filterParamsReady` never flips and the event cannot fire.
|
|
6682
|
+
*/
|
|
6683
|
+
_subscribeToFiltersReady() {
|
|
6684
|
+
this.list.filtersReady$
|
|
6685
|
+
.pipe(takeUntil(this.list.destroy$), takeUntil(this._destroy))
|
|
6686
|
+
.subscribe(() => {
|
|
6687
|
+
this._filterParamsReady = true;
|
|
6688
|
+
this._emitFiltersReadyEvent();
|
|
6689
|
+
});
|
|
6690
|
+
}
|
|
6670
6691
|
_subscribeToGroupExpandStatusChange() {
|
|
6671
6692
|
if (this.list.dataController.hasGroups) {
|
|
6672
6693
|
this._groupExpandNotifier.expandStatusChange$
|