@recursyve/nice-data-filter-kit 13.1.3 → 13.1.4
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/esm2020/lib/components/base-list/base-list.component.mjs +17 -3
- package/esm2020/lib/components/multi-state-list/multi-state-list.component.mjs +2 -2
- package/fesm2015/recursyve-nice-data-filter-kit.mjs +17 -3
- package/fesm2015/recursyve-nice-data-filter-kit.mjs.map +1 -1
- package/fesm2020/recursyve-nice-data-filter-kit.mjs +17 -3
- package/fesm2020/recursyve-nice-data-filter-kit.mjs.map +1 -1
- package/lib/components/base-list/base-list.component.d.ts +2 -1
- package/package.json +1 -1
|
@@ -1802,7 +1802,7 @@ class NiceBaseListComponent {
|
|
|
1802
1802
|
|| xl && !this.listLayout.xl;
|
|
1803
1803
|
}));
|
|
1804
1804
|
this.searchText$ = new Subject();
|
|
1805
|
-
this.
|
|
1805
|
+
this.setColumns(columns);
|
|
1806
1806
|
}
|
|
1807
1807
|
get prefixButtons() {
|
|
1808
1808
|
return this.buttons?.find(x => x.position === "prefix")?.template;
|
|
@@ -1937,10 +1937,24 @@ class NiceBaseListComponent {
|
|
|
1937
1937
|
clickPdf() {
|
|
1938
1938
|
this.service.downloadData("pdf");
|
|
1939
1939
|
}
|
|
1940
|
-
|
|
1940
|
+
setColumns(columns) {
|
|
1941
1941
|
this.columns = columns;
|
|
1942
1942
|
this.columnNames = columns.map(x => x.id);
|
|
1943
1943
|
}
|
|
1944
|
+
addColumns(columns, prepend = false) {
|
|
1945
|
+
if (prepend) {
|
|
1946
|
+
this.setColumns([
|
|
1947
|
+
...columns,
|
|
1948
|
+
...this.columns
|
|
1949
|
+
]);
|
|
1950
|
+
}
|
|
1951
|
+
else {
|
|
1952
|
+
this.setColumns([
|
|
1953
|
+
...this.columns,
|
|
1954
|
+
...columns
|
|
1955
|
+
]);
|
|
1956
|
+
}
|
|
1957
|
+
}
|
|
1944
1958
|
}
|
|
1945
1959
|
NiceBaseListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: NiceBaseListComponent, deps: [{ token: ENABLE_QUERY_BUILDER, optional: true }, { token: BASE_LIST_ICONS }, { token: BASE_LIST_LAYOUT }, { token: TABLE_COLUMNS }, { token: EXPORTS_SETTINGS }, { token: NiceBaseListQuery }, { token: NiceBaseListService }, { token: i2.ActivatedRoute }, { token: i4$1.MatBottomSheet }, { token: i2.Router }, { token: i5.NiceMediaWatcherService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1946
1960
|
NiceBaseListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", type: NiceBaseListComponent, selector: "nice-base-list", inputs: { mode: "mode", layout: "layout", layoutContent: "layoutContent", autoChangeLayout: "autoChangeLayout", baseRoute: "baseRoute", routeFn: "routeFn", navigateFn: "navigateFn", autoLoad: "autoLoad", pageTitle: "pageTitle", canExport: "canExport", disableRouting: "disableRouting", customExport: "customExport" }, outputs: { newPage: "newPage" }, providers: [
|
|
@@ -2403,7 +2417,7 @@ class NiceMultiStateListComponent extends NiceBaseListComponent {
|
|
|
2403
2417
|
}
|
|
2404
2418
|
switchState(state) {
|
|
2405
2419
|
const columns = this.multiStateListService.switchState(state);
|
|
2406
|
-
this.
|
|
2420
|
+
this.setColumns(columns);
|
|
2407
2421
|
}
|
|
2408
2422
|
}
|
|
2409
2423
|
NiceMultiStateListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: NiceMultiStateListComponent, deps: [{ token: ENABLE_QUERY_BUILDER, optional: true }, { token: BASE_LIST_ICONS }, { token: BASE_LIST_LAYOUT }, { token: EXPORTS_SETTINGS }, { token: NiceMultiStateListQuery }, { token: i2.ActivatedRoute }, { token: i4$1.MatBottomSheet }, { token: i2.Router }, { token: i5.NiceMediaWatcherService }, { token: NiceMultiStateListService }], target: i0.ɵɵFactoryTarget.Component });
|