@recursyve/nice-data-filter-kit 15.1.1 → 15.2.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/esm2020/lib/components/nice-filter-view/components/advanced-filters/advanced-filters.component.mjs +24 -1
- package/esm2020/lib/components/nice-filter-view/components/advanced-filters/button/advanced-filters-button.component.mjs +5 -5
- package/esm2020/lib/components/nice-filter-view/components/export-buttons/export-buttons.component.mjs +6 -7
- package/esm2020/lib/components/nice-filter-view/directives/mat-paginator.mjs +13 -24
- package/esm2020/lib/components/nice-filter-view/directives/mat-sort.mjs +15 -28
- package/esm2020/lib/components/nice-filter-view/nice-base-filter-view.component.mjs +43 -2
- package/esm2020/lib/components/nice-filter-view/nice-nested-filter-view.mjs +46 -0
- package/esm2020/lib/components/nice-filter-view/public-api.mjs +2 -1
- package/esm2020/lib/components/nice-filter-view/store/nice-filter-view.service.mjs +29 -2
- package/esm2020/lib/components/nice-filter-view/store/nice-filter-view.store.mjs +9 -1
- package/esm2020/lib/models/filter.model.mjs +1 -1
- package/fesm2015/recursyve-nice-data-filter-kit.mjs +264 -131
- package/fesm2015/recursyve-nice-data-filter-kit.mjs.map +1 -1
- package/fesm2020/recursyve-nice-data-filter-kit.mjs +262 -140
- package/fesm2020/recursyve-nice-data-filter-kit.mjs.map +1 -1
- package/lib/components/nice-filter-view/components/advanced-filters/advanced-filters.component.d.ts +1 -0
- package/lib/components/nice-filter-view/components/export-buttons/export-buttons.component.d.ts +1 -2
- package/lib/components/nice-filter-view/directives/mat-paginator.d.ts +4 -9
- package/lib/components/nice-filter-view/directives/mat-sort.d.ts +4 -9
- package/lib/components/nice-filter-view/nice-base-filter-view.component.d.ts +19 -0
- package/lib/components/nice-filter-view/nice-nested-filter-view.d.ts +23 -0
- package/lib/components/nice-filter-view/public-api.d.ts +1 -0
- package/lib/components/nice-filter-view/store/nice-filter-view.service.d.ts +4 -0
- package/lib/components/nice-filter-view/store/nice-filter-view.store.d.ts +1 -0
- package/lib/models/filter.model.d.ts +11 -11
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { plainToInstance } from 'class-transformer';
|
|
2
|
-
import { map, takeUntil, debounceTime, switchMap, distinctUntilChanged,
|
|
2
|
+
import { map, takeUntil, debounceTime, switchMap, distinctUntilChanged, combineLatestWith } from 'rxjs/operators';
|
|
3
3
|
import { HttpParams } from '@angular/common/http';
|
|
4
4
|
import * as i5$1 from '@recursyve/nice-ui-kit.v2';
|
|
5
5
|
import { isNullOrUndefined, ObjectUtils, FileUtils, ArrayUtils, ExportBottomSheetComponent, NiceLoadingSpinnerModule, NiceTypeaheadModule, NiceExportBottomSheetModule, NiceAsyncTypeaheadProvider, NICE_ASYNC_TYPEAHEAD_PROVIDER, NiceAsyncTypeaheadModule } from '@recursyve/nice-ui-kit.v2';
|
|
6
6
|
import * as i0 from '@angular/core';
|
|
7
|
-
import { Directive, Input, NgModule, Injectable, Inject, InjectionToken, Optional, Pipe, EventEmitter, Component, ViewEncapsulation, ChangeDetectionStrategy, Output, HostListener, forwardRef, TemplateRef, ContentChild, ContentChildren, QueryList, ViewChild } from '@angular/core';
|
|
7
|
+
import { Directive, Input, NgModule, Injectable, Inject, InjectionToken, Optional, Pipe, EventEmitter, Component, ViewEncapsulation, ChangeDetectionStrategy, Output, HostListener, forwardRef, TemplateRef, ContentChild, ContentChildren, inject, QueryList, ViewChild } from '@angular/core';
|
|
8
8
|
import { Store, StoreConfig, Query, arrayAdd, arrayUpsert, arrayRemove, EntityStore, transaction, QueryEntity, EntityActions } from '@datorama/akita';
|
|
9
9
|
import { combineLatest, Subject, firstValueFrom, of, lastValueFrom, startWith, tap, distinct, take } from 'rxjs';
|
|
10
|
-
import { __decorate, __metadata, __awaiter
|
|
10
|
+
import { __decorate, __metadata, __awaiter } from 'tslib';
|
|
11
11
|
import * as i2 from '@angular/router';
|
|
12
12
|
import { RouterModule } from '@angular/router';
|
|
13
13
|
import * as i4$1 from '@angular/material/bottom-sheet';
|
|
@@ -2852,6 +2852,11 @@ class NiceFilterViewStore extends EntityStore {
|
|
|
2852
2852
|
setParameters(filterParameters) {
|
|
2853
2853
|
this.update({ filterParameters });
|
|
2854
2854
|
}
|
|
2855
|
+
patchParameters(filterParameters) {
|
|
2856
|
+
this.update(({ filterParameters: currentFilterParameters }) => ({
|
|
2857
|
+
filterParameters: Object.assign(Object.assign({}, currentFilterParameters), filterParameters)
|
|
2858
|
+
}));
|
|
2859
|
+
}
|
|
2855
2860
|
setResult(filterResult) {
|
|
2856
2861
|
const { mode, resetResult, initialLoadCompleted } = this.getValue();
|
|
2857
2862
|
if (mode === "accumulated") {
|
|
@@ -3181,6 +3186,9 @@ class NiceFilterViewService {
|
|
|
3181
3186
|
this.filter();
|
|
3182
3187
|
}
|
|
3183
3188
|
}
|
|
3189
|
+
patchParameters(filterParameters) {
|
|
3190
|
+
this.store.patchParameters(filterParameters);
|
|
3191
|
+
}
|
|
3184
3192
|
resetPaging() {
|
|
3185
3193
|
const { filterParameters } = this.store.getValue();
|
|
3186
3194
|
this.setParameters(Object.assign(Object.assign({}, filterParameters), { start: 0 }));
|
|
@@ -3197,6 +3205,30 @@ class NiceFilterViewService {
|
|
|
3197
3205
|
this.filter();
|
|
3198
3206
|
}
|
|
3199
3207
|
}
|
|
3208
|
+
addBaseRule(rule, reload) {
|
|
3209
|
+
this.store.update(({ baseRules }) => ({
|
|
3210
|
+
baseRules: arrayAdd(baseRules !== null && baseRules !== void 0 ? baseRules : [], rule)
|
|
3211
|
+
}));
|
|
3212
|
+
if (reload) {
|
|
3213
|
+
this.filter();
|
|
3214
|
+
}
|
|
3215
|
+
}
|
|
3216
|
+
upsertBaseRules(rule, reload) {
|
|
3217
|
+
this.store.update(({ baseRules }) => ({
|
|
3218
|
+
baseRules: arrayUpsert(baseRules !== null && baseRules !== void 0 ? baseRules : [], rule.id, rule)
|
|
3219
|
+
}));
|
|
3220
|
+
if (reload) {
|
|
3221
|
+
this.filter();
|
|
3222
|
+
}
|
|
3223
|
+
}
|
|
3224
|
+
removeBaseRules(key, reload) {
|
|
3225
|
+
this.store.update(({ baseRules }) => ({
|
|
3226
|
+
baseRules: arrayRemove(baseRules !== null && baseRules !== void 0 ? baseRules : [], key)
|
|
3227
|
+
}));
|
|
3228
|
+
if (reload) {
|
|
3229
|
+
this.filter();
|
|
3230
|
+
}
|
|
3231
|
+
}
|
|
3200
3232
|
setRules(rules) {
|
|
3201
3233
|
if (!Array.isArray(rules)) {
|
|
3202
3234
|
rules = [rules];
|
|
@@ -3453,7 +3485,7 @@ class NiceAdvancedFiltersButtonComponent {
|
|
|
3453
3485
|
this.query = query;
|
|
3454
3486
|
this.service = service;
|
|
3455
3487
|
this.shouldShowAdvancedFilters$ = this.query.selectSubState("showAdvancedFilters");
|
|
3456
|
-
this.hasParameters$ = this.query.selectFilterParameters().pipe(
|
|
3488
|
+
this.hasParameters$ = this.query.selectFilterParameters().pipe(combineLatestWith(this.query.selectFilterConfig()), map(([parameter, config]) => {
|
|
3457
3489
|
var _a, _b;
|
|
3458
3490
|
return !!((_b = (_a = parameter
|
|
3459
3491
|
.rules) === null || _a === void 0 ? void 0 : _a.filter((rule) => config.some((conf) => { var _a; return (conf === null || conf === void 0 ? void 0 : conf.id) === ((_a = rule.rules[0]) === null || _a === void 0 ? void 0 : _a.id); }))) === null || _b === void 0 ? void 0 : _b.length);
|
|
@@ -3469,10 +3501,10 @@ class NiceAdvancedFiltersButtonComponent {
|
|
|
3469
3501
|
}
|
|
3470
3502
|
}
|
|
3471
3503
|
NiceAdvancedFiltersButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NiceAdvancedFiltersButtonComponent, deps: [{ token: ADVANCED_FILTER_ICONS, optional: true }, { token: NiceFilterViewQuery }, { token: NiceFilterViewService }], target: i0.ɵɵFactoryTarget.Component });
|
|
3472
|
-
NiceAdvancedFiltersButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: NiceAdvancedFiltersButtonComponent, selector: "nice-advanced-filters-button", ngImport: i0, template: "<div class=\"relative\">\n <ng-container *ngIf=\"(hasParameters$ | async) && (shouldShowAdvancedFilters$ | async) !== true\">\n <div class=\"absolute top-
|
|
3504
|
+
NiceAdvancedFiltersButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: NiceAdvancedFiltersButtonComponent, selector: "nice-advanced-filters-button", ngImport: i0, template: "<div class=\"relative\">\n <ng-container *ngIf=\"(hasParameters$ | async) && (shouldShowAdvancedFilters$ | async) !== true\">\n <div class=\"absolute top-1 right-1 w-2 h-2 z-10 rounded bg-accent\"></div>\n\n <button mat-icon-button (click)=\"clickToggleShowAdvancedFilters()\">\n <mat-icon [svgIcon]=\"icons.queryBuilder.svgIcon\">{{ icons.queryBuilder.matIcon }}</mat-icon>\n </button>\n </ng-container>\n\n <ng-container *ngIf=\"shouldShowAdvancedFilters$ | async\">\n <button mat-icon-button (click)=\"clickToggleShowAdvancedFilters()\">\n <mat-icon [svgIcon]=\"icons.close.svgIcon\">{{ icons.close.matIcon }}</mat-icon>\n </button>\n </ng-container>\n\n <ng-container *ngIf=\"(hasParameters$ | async) !== true && (shouldShowAdvancedFilters$ | async) !== true\">\n <button mat-icon-button niceAdvancedFiltersTrigger (advancedFilterSelected)=\"onSelectedFilter($event)\">\n <mat-icon [svgIcon]=\"icons.queryBuilder.svgIcon\">{{ icons.queryBuilder.matIcon }}</mat-icon>\n </button>\n </ng-container>\n</div>\n", styles: ["nice-advanced-filters-button{width:40px;height:40px}\n"], dependencies: [{ kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i8.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: AdvancedFiltersTriggerDirective, selector: "[niceAdvancedFiltersTrigger]", inputs: ["position"], outputs: ["advancedFilterSelected"], exportAs: ["niceAdvancedFiltersTrigger"] }, { kind: "pipe", type: i2$1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
3473
3505
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NiceAdvancedFiltersButtonComponent, decorators: [{
|
|
3474
3506
|
type: Component,
|
|
3475
|
-
args: [{ selector: "nice-advanced-filters-button", encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"relative\">\n <ng-container *ngIf=\"(hasParameters$ | async) && (shouldShowAdvancedFilters$ | async) !== true\">\n <div class=\"absolute top-
|
|
3507
|
+
args: [{ selector: "nice-advanced-filters-button", encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"relative\">\n <ng-container *ngIf=\"(hasParameters$ | async) && (shouldShowAdvancedFilters$ | async) !== true\">\n <div class=\"absolute top-1 right-1 w-2 h-2 z-10 rounded bg-accent\"></div>\n\n <button mat-icon-button (click)=\"clickToggleShowAdvancedFilters()\">\n <mat-icon [svgIcon]=\"icons.queryBuilder.svgIcon\">{{ icons.queryBuilder.matIcon }}</mat-icon>\n </button>\n </ng-container>\n\n <ng-container *ngIf=\"shouldShowAdvancedFilters$ | async\">\n <button mat-icon-button (click)=\"clickToggleShowAdvancedFilters()\">\n <mat-icon [svgIcon]=\"icons.close.svgIcon\">{{ icons.close.matIcon }}</mat-icon>\n </button>\n </ng-container>\n\n <ng-container *ngIf=\"(hasParameters$ | async) !== true && (shouldShowAdvancedFilters$ | async) !== true\">\n <button mat-icon-button niceAdvancedFiltersTrigger (advancedFilterSelected)=\"onSelectedFilter($event)\">\n <mat-icon [svgIcon]=\"icons.queryBuilder.svgIcon\">{{ icons.queryBuilder.matIcon }}</mat-icon>\n </button>\n </ng-container>\n</div>\n", styles: ["nice-advanced-filters-button{width:40px;height:40px}\n"] }]
|
|
3476
3508
|
}], ctorParameters: function () {
|
|
3477
3509
|
return [{ type: undefined, decorators: [{
|
|
3478
3510
|
type: Optional
|
|
@@ -3885,6 +3917,7 @@ class NiceAdvancedFiltersComponent {
|
|
|
3885
3917
|
}
|
|
3886
3918
|
}
|
|
3887
3919
|
onClose() {
|
|
3920
|
+
this.removeEmptyRules();
|
|
3888
3921
|
this.service.updateSubState("showAdvancedFilters", false);
|
|
3889
3922
|
}
|
|
3890
3923
|
onRefresh() {
|
|
@@ -3892,6 +3925,28 @@ class NiceAdvancedFiltersComponent {
|
|
|
3892
3925
|
this.service.resetResult(true);
|
|
3893
3926
|
this.service.filter();
|
|
3894
3927
|
}
|
|
3928
|
+
removeEmptyRules() {
|
|
3929
|
+
if (this.rulesFormArray.length !== 1) {
|
|
3930
|
+
return;
|
|
3931
|
+
}
|
|
3932
|
+
const values = this.rulesFormArray.get([0, "values"]).getRawValue();
|
|
3933
|
+
if (values.length !== 1) {
|
|
3934
|
+
return;
|
|
3935
|
+
}
|
|
3936
|
+
const value = values[0];
|
|
3937
|
+
if (value.value || value.value === false || value.secondValue || value.secondValue === true) {
|
|
3938
|
+
return;
|
|
3939
|
+
}
|
|
3940
|
+
this.rulesFormArray.removeAt(0);
|
|
3941
|
+
const { filterParameters } = this.query.getValue();
|
|
3942
|
+
if (!filterParameters.rules.length || !filterParameters.rules[0].rules.length) {
|
|
3943
|
+
return;
|
|
3944
|
+
}
|
|
3945
|
+
this.service.setRules([]);
|
|
3946
|
+
if (filterParameters.rules[0].rules[0].value) {
|
|
3947
|
+
this.service.filter();
|
|
3948
|
+
}
|
|
3949
|
+
}
|
|
3895
3950
|
}
|
|
3896
3951
|
NiceAdvancedFiltersComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NiceAdvancedFiltersComponent, deps: [{ token: ADVANCED_FILTER_ICONS, optional: true }, { token: i1$3.GeneratedFormGroup }, { token: NiceFilterViewQuery }, { token: NiceFilterViewService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
3897
3952
|
NiceAdvancedFiltersComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: NiceAdvancedFiltersComponent, selector: "nice-advanced-filters", providers: [
|
|
@@ -4406,11 +4461,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
4406
4461
|
} });
|
|
4407
4462
|
|
|
4408
4463
|
class NiceFilterExportButtonsComponent {
|
|
4409
|
-
constructor(icons, exportsSettings, niceFilterViewQuery,
|
|
4464
|
+
constructor(icons, exportsSettings, niceFilterViewQuery, selectableListService, query, service, bottomSheet) {
|
|
4410
4465
|
this.icons = icons;
|
|
4411
4466
|
this.exportsSettings = exportsSettings;
|
|
4412
4467
|
this.niceFilterViewQuery = niceFilterViewQuery;
|
|
4413
|
-
this.niceFilterViewService = niceFilterViewService;
|
|
4414
4468
|
this.selectableListService = selectableListService;
|
|
4415
4469
|
this.query = query;
|
|
4416
4470
|
this.service = service;
|
|
@@ -4485,7 +4539,7 @@ class NiceFilterExportButtonsComponent {
|
|
|
4485
4539
|
this.service.downloadData("pdf", this.downloadFileName, ids);
|
|
4486
4540
|
}
|
|
4487
4541
|
}
|
|
4488
|
-
NiceFilterExportButtonsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NiceFilterExportButtonsComponent, deps: [{ token: FILTER_VIEW_ICONS }, { token: EXPORTS_SETTINGS }, { token: NiceFilterViewQuery }, { token:
|
|
4542
|
+
NiceFilterExportButtonsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NiceFilterExportButtonsComponent, deps: [{ token: FILTER_VIEW_ICONS }, { token: EXPORTS_SETTINGS }, { token: NiceFilterViewQuery }, { token: NiceSelectableListService }, { token: NiceFilterViewQuery }, { token: NiceFilterViewService }, { token: i4$1.MatBottomSheet }], target: i0.ɵɵFactoryTarget.Component });
|
|
4489
4543
|
NiceFilterExportButtonsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: NiceFilterExportButtonsComponent, selector: "nice-filter-export-buttons, div[nice-filter-export-buttons]", inputs: { customExport: "customExport", downloadFileName: "downloadFileName", canPrint: "canPrint" }, ngImport: i0, template: "<button\n *ngIf=\"canPrint\"\n (click)=\"clickPrint()\"\n [disabled]=\"loading$ | async\"\n [matTooltip]=\"'general.print' | translate\"\n class=\"export-button\"\n mat-mini-fab\n>\n <mat-icon [svgIcon]=\"icons.print.svgIcon\">{{ icons.print.matIcon }}</mat-icon>\n</button>\n\n<button\n (click)=\"clickExport()\"\n [disabled]=\"loading$ | async\"\n [matTooltip]=\"'general.export' | translate\"\n class=\"export-button\"\n mat-mini-fab\n>\n <mat-icon [svgIcon]=\"icons.download.svgIcon\">{{ icons.download.matIcon }}</mat-icon>\n</button>\n", styles: [""], dependencies: [{ kind: "component", type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i10.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "component", type: i8.MatMiniFabButton, selector: "button[mat-mini-fab]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "pipe", type: i1$2.TranslatePipe, name: "translate" }, { kind: "pipe", type: i2$1.AsyncPipe, name: "async" }], encapsulation: i0.ViewEncapsulation.None });
|
|
4490
4544
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NiceFilterExportButtonsComponent, decorators: [{
|
|
4491
4545
|
type: Component,
|
|
@@ -4497,7 +4551,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
4497
4551
|
}] }, { type: undefined, decorators: [{
|
|
4498
4552
|
type: Inject,
|
|
4499
4553
|
args: [EXPORTS_SETTINGS]
|
|
4500
|
-
}] }, { type: NiceFilterViewQuery }, { type:
|
|
4554
|
+
}] }, { type: NiceFilterViewQuery }, { type: NiceSelectableListService }, { type: NiceFilterViewQuery }, { type: NiceFilterViewService }, { type: i4$1.MatBottomSheet }];
|
|
4501
4555
|
}, propDecorators: { customExport: [{
|
|
4502
4556
|
type: Input
|
|
4503
4557
|
}], downloadFileName: [{
|
|
@@ -4602,103 +4656,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
4602
4656
|
type: Input
|
|
4603
4657
|
}] } });
|
|
4604
4658
|
|
|
4605
|
-
class NiceFilterMatPaginatorPaginationDirective {
|
|
4606
|
-
constructor(query, service, paginator) {
|
|
4607
|
-
this.query = query;
|
|
4608
|
-
this.service = service;
|
|
4609
|
-
this.paginator = paginator;
|
|
4610
|
-
this.unsubscribeAll$ = new Subject();
|
|
4611
|
-
}
|
|
4612
|
-
ngOnInit() {
|
|
4613
|
-
this.query.selectFilterResult().pipe(takeUntil(this.unsubscribeAll$)).subscribe((res) => {
|
|
4614
|
-
if (!res) {
|
|
4615
|
-
return;
|
|
4616
|
-
}
|
|
4617
|
-
const { page, total } = res;
|
|
4618
|
-
this.paginator.pageIndex = page.number;
|
|
4619
|
-
this.paginator.pageSize = page.size;
|
|
4620
|
-
this.paginator.length = total;
|
|
4621
|
-
});
|
|
4622
|
-
this.paginator.page.pipe(takeUntil(this.unsubscribeAll$)).subscribe((page) => {
|
|
4623
|
-
const { filterParameters } = this.query.getValue();
|
|
4624
|
-
this.service.setParameters(Object.assign(Object.assign({}, filterParameters), { start: page.pageIndex * page.pageSize, length: page.pageSize }));
|
|
4625
|
-
this.service.filter();
|
|
4626
|
-
});
|
|
4627
|
-
}
|
|
4628
|
-
ngOnDestroy() {
|
|
4629
|
-
this.unsubscribeAll$.next();
|
|
4630
|
-
this.unsubscribeAll$.complete();
|
|
4631
|
-
}
|
|
4632
|
-
}
|
|
4633
|
-
NiceFilterMatPaginatorPaginationDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NiceFilterMatPaginatorPaginationDirective, deps: [{ token: NiceFilterViewQuery }, { token: NiceFilterViewService }, { token: i12.MatPaginator }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4634
|
-
NiceFilterMatPaginatorPaginationDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: NiceFilterMatPaginatorPaginationDirective, selector: "mat-paginator[niceFilterPagination]", ngImport: i0 });
|
|
4635
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NiceFilterMatPaginatorPaginationDirective, decorators: [{
|
|
4636
|
-
type: Directive,
|
|
4637
|
-
args: [{ selector: "mat-paginator[niceFilterPagination]" }]
|
|
4638
|
-
}], ctorParameters: function () { return [{ type: NiceFilterViewQuery }, { type: NiceFilterViewService }, { type: i12.MatPaginator }]; } });
|
|
4639
|
-
|
|
4640
|
-
class NiceFilterMatSortSortingDirective {
|
|
4641
|
-
constructor(query, service, sort) {
|
|
4642
|
-
this.query = query;
|
|
4643
|
-
this.service = service;
|
|
4644
|
-
this.sort = sort;
|
|
4645
|
-
this.unsubscribeAll$ = new Subject();
|
|
4646
|
-
}
|
|
4647
|
-
ngOnInit() {
|
|
4648
|
-
this.query.selectFilterParameters().pipe(takeUntil(this.unsubscribeAll$)).subscribe((res) => {
|
|
4649
|
-
if (!res) {
|
|
4650
|
-
return;
|
|
4651
|
-
}
|
|
4652
|
-
const { order } = res;
|
|
4653
|
-
if (!order) {
|
|
4654
|
-
return;
|
|
4655
|
-
}
|
|
4656
|
-
this.sort.direction = order.direction;
|
|
4657
|
-
this.sort.active = order.column;
|
|
4658
|
-
});
|
|
4659
|
-
this.sort.sortChange.pipe(takeUntil(this.unsubscribeAll$)).subscribe((sort) => {
|
|
4660
|
-
const { filterParameters } = this.query.getValue();
|
|
4661
|
-
if (!sort.direction) {
|
|
4662
|
-
const { order } = filterParameters, values = __rest(filterParameters, ["order"]);
|
|
4663
|
-
this.service.setParameters(Object.assign(Object.assign({}, values), { order: {} }));
|
|
4664
|
-
}
|
|
4665
|
-
else {
|
|
4666
|
-
this.service.setParameters(Object.assign(Object.assign({}, filterParameters), { order: {
|
|
4667
|
-
column: sort.active,
|
|
4668
|
-
direction: sort.direction
|
|
4669
|
-
} }));
|
|
4670
|
-
}
|
|
4671
|
-
this.service.filter();
|
|
4672
|
-
});
|
|
4673
|
-
}
|
|
4674
|
-
ngOnDestroy() {
|
|
4675
|
-
this.unsubscribeAll$.next();
|
|
4676
|
-
this.unsubscribeAll$.complete();
|
|
4677
|
-
}
|
|
4678
|
-
}
|
|
4679
|
-
NiceFilterMatSortSortingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NiceFilterMatSortSortingDirective, deps: [{ token: NiceFilterViewQuery }, { token: NiceFilterViewService }, { token: i14.MatSort }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4680
|
-
NiceFilterMatSortSortingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: NiceFilterMatSortSortingDirective, selector: "mat-table[matSort][niceFilterSorting]", ngImport: i0 });
|
|
4681
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NiceFilterMatSortSortingDirective, decorators: [{
|
|
4682
|
-
type: Directive,
|
|
4683
|
-
args: [{ selector: "mat-table[matSort][niceFilterSorting]" }]
|
|
4684
|
-
}], ctorParameters: function () { return [{ type: NiceFilterViewQuery }, { type: NiceFilterViewService }, { type: i14.MatSort }]; } });
|
|
4685
|
-
|
|
4686
|
-
class NiceFilterMatTableViewDirective {
|
|
4687
|
-
constructor(query, table) {
|
|
4688
|
-
this.query = query;
|
|
4689
|
-
this.table = table;
|
|
4690
|
-
}
|
|
4691
|
-
ngOnInit() {
|
|
4692
|
-
this.table.dataSource = this.query.selectAll();
|
|
4693
|
-
}
|
|
4694
|
-
}
|
|
4695
|
-
NiceFilterMatTableViewDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NiceFilterMatTableViewDirective, deps: [{ token: NiceFilterViewQuery }, { token: i13.MatTable }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4696
|
-
NiceFilterMatTableViewDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: NiceFilterMatTableViewDirective, selector: "mat-table[niceFilterDataView]", ngImport: i0 });
|
|
4697
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NiceFilterMatTableViewDirective, decorators: [{
|
|
4698
|
-
type: Directive,
|
|
4699
|
-
args: [{ selector: "mat-table[niceFilterDataView]" }]
|
|
4700
|
-
}], ctorParameters: function () { return [{ type: NiceFilterViewQuery }, { type: i13.MatTable }]; } });
|
|
4701
|
-
|
|
4702
4659
|
class NiceFilterQueryParamsDirective {
|
|
4703
4660
|
get initialized() {
|
|
4704
4661
|
return this._initialized;
|
|
@@ -4775,33 +4732,138 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
4775
4732
|
type: Output
|
|
4776
4733
|
}] } });
|
|
4777
4734
|
|
|
4778
|
-
class
|
|
4779
|
-
constructor(
|
|
4780
|
-
this.
|
|
4781
|
-
this.
|
|
4735
|
+
class NiceNestedFilterView {
|
|
4736
|
+
constructor() {
|
|
4737
|
+
this._afterQueryParamHooks = new Set();
|
|
4738
|
+
this.unsubscribeAll$ = new Subject();
|
|
4739
|
+
this.filterViewService = inject(NiceFilterViewService);
|
|
4740
|
+
this.filterViewQuery = inject(NiceFilterViewQuery);
|
|
4741
|
+
this.queryParams = inject(NiceFilterQueryParamsDirective, { optional: true });
|
|
4782
4742
|
}
|
|
4783
|
-
|
|
4784
|
-
|
|
4785
|
-
|
|
4743
|
+
ngOnInit() {
|
|
4744
|
+
var _a;
|
|
4745
|
+
this.filterViewLoading$ = this.filterViewQuery.selectLoading();
|
|
4746
|
+
this.filterViewCount$ = this.filterViewQuery.selectCount();
|
|
4747
|
+
if (!this.queryParams || ((_a = this.queryParams) === null || _a === void 0 ? void 0 : _a.initialized)) {
|
|
4748
|
+
this.onInit();
|
|
4749
|
+
return;
|
|
4750
|
+
}
|
|
4751
|
+
this.queryParams.init.pipe(take(1)).subscribe(() => this.onInit());
|
|
4752
|
+
}
|
|
4753
|
+
ngOnDestroy() {
|
|
4754
|
+
this.unsubscribeAll$.next();
|
|
4755
|
+
this.unsubscribeAll$.complete();
|
|
4756
|
+
}
|
|
4757
|
+
afterInit(fn) {
|
|
4758
|
+
var _a;
|
|
4759
|
+
if (!this.queryParams || ((_a = this.queryParams) === null || _a === void 0 ? void 0 : _a.initialized)) {
|
|
4760
|
+
fn.bind(this)();
|
|
4761
|
+
return;
|
|
4762
|
+
}
|
|
4763
|
+
this._afterQueryParamHooks.add(fn);
|
|
4764
|
+
}
|
|
4765
|
+
onInit() {
|
|
4766
|
+
for (const hook of this._afterQueryParamHooks) {
|
|
4767
|
+
hook.bind(this)();
|
|
4786
4768
|
}
|
|
4787
4769
|
}
|
|
4788
4770
|
}
|
|
4789
|
-
|
|
4790
|
-
|
|
4791
|
-
|
|
4792
|
-
|
|
4793
|
-
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
|
|
4797
|
-
|
|
4798
|
-
|
|
4799
|
-
|
|
4800
|
-
|
|
4801
|
-
|
|
4802
|
-
|
|
4803
|
-
|
|
4804
|
-
|
|
4771
|
+
NiceNestedFilterView.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NiceNestedFilterView, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
4772
|
+
NiceNestedFilterView.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: NiceNestedFilterView, ngImport: i0 });
|
|
4773
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NiceNestedFilterView, decorators: [{
|
|
4774
|
+
type: Directive
|
|
4775
|
+
}] });
|
|
4776
|
+
|
|
4777
|
+
class NiceFilterMatPaginatorPaginationDirective extends NiceNestedFilterView {
|
|
4778
|
+
constructor(paginator) {
|
|
4779
|
+
super();
|
|
4780
|
+
this.paginator = paginator;
|
|
4781
|
+
}
|
|
4782
|
+
ngOnInit() {
|
|
4783
|
+
super.ngOnInit();
|
|
4784
|
+
this.filterViewQuery.selectFilterResult().pipe(takeUntil(this.unsubscribeAll$)).subscribe((res) => {
|
|
4785
|
+
if (!res) {
|
|
4786
|
+
return;
|
|
4787
|
+
}
|
|
4788
|
+
const { page, total } = res;
|
|
4789
|
+
this.paginator.pageIndex = page.number;
|
|
4790
|
+
this.paginator.pageSize = page.size;
|
|
4791
|
+
this.paginator.length = total;
|
|
4792
|
+
});
|
|
4793
|
+
this.paginator.page.pipe(takeUntil(this.unsubscribeAll$)).subscribe((page) => {
|
|
4794
|
+
this.filterViewService.patchParameters({
|
|
4795
|
+
start: page.pageIndex * page.pageSize,
|
|
4796
|
+
length: page.pageSize
|
|
4797
|
+
});
|
|
4798
|
+
this.filterViewService.filter();
|
|
4799
|
+
});
|
|
4800
|
+
}
|
|
4801
|
+
}
|
|
4802
|
+
NiceFilterMatPaginatorPaginationDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NiceFilterMatPaginatorPaginationDirective, deps: [{ token: i12.MatPaginator }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4803
|
+
NiceFilterMatPaginatorPaginationDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: NiceFilterMatPaginatorPaginationDirective, selector: "mat-paginator[niceFilterPagination]", usesInheritance: true, ngImport: i0 });
|
|
4804
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NiceFilterMatPaginatorPaginationDirective, decorators: [{
|
|
4805
|
+
type: Directive,
|
|
4806
|
+
args: [{ selector: "mat-paginator[niceFilterPagination]" }]
|
|
4807
|
+
}], ctorParameters: function () { return [{ type: i12.MatPaginator }]; } });
|
|
4808
|
+
|
|
4809
|
+
class NiceFilterMatSortSortingDirective extends NiceNestedFilterView {
|
|
4810
|
+
constructor(sort) {
|
|
4811
|
+
super();
|
|
4812
|
+
this.sort = sort;
|
|
4813
|
+
}
|
|
4814
|
+
ngOnInit() {
|
|
4815
|
+
super.ngOnInit();
|
|
4816
|
+
this.filterViewQuery.selectFilterParameters().pipe(takeUntil(this.unsubscribeAll$)).subscribe((res) => {
|
|
4817
|
+
if (!res) {
|
|
4818
|
+
return;
|
|
4819
|
+
}
|
|
4820
|
+
const { order } = res;
|
|
4821
|
+
if (!order) {
|
|
4822
|
+
return;
|
|
4823
|
+
}
|
|
4824
|
+
this.sort.direction = order.direction;
|
|
4825
|
+
this.sort.active = order.column;
|
|
4826
|
+
});
|
|
4827
|
+
this.sort.sortChange.pipe(takeUntil(this.unsubscribeAll$)).subscribe((sort) => {
|
|
4828
|
+
if (!sort.direction) {
|
|
4829
|
+
this.filterViewService.patchParameters({
|
|
4830
|
+
order: null
|
|
4831
|
+
});
|
|
4832
|
+
}
|
|
4833
|
+
else {
|
|
4834
|
+
this.filterViewService.patchParameters({
|
|
4835
|
+
order: {
|
|
4836
|
+
column: sort.active,
|
|
4837
|
+
direction: sort.direction
|
|
4838
|
+
}
|
|
4839
|
+
});
|
|
4840
|
+
}
|
|
4841
|
+
this.filterViewService.filter();
|
|
4842
|
+
});
|
|
4843
|
+
}
|
|
4844
|
+
}
|
|
4845
|
+
NiceFilterMatSortSortingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NiceFilterMatSortSortingDirective, deps: [{ token: i14.MatSort }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4846
|
+
NiceFilterMatSortSortingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: NiceFilterMatSortSortingDirective, selector: "mat-table[matSort][niceFilterSorting]", usesInheritance: true, ngImport: i0 });
|
|
4847
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NiceFilterMatSortSortingDirective, decorators: [{
|
|
4848
|
+
type: Directive,
|
|
4849
|
+
args: [{ selector: "mat-table[matSort][niceFilterSorting]" }]
|
|
4850
|
+
}], ctorParameters: function () { return [{ type: i14.MatSort }]; } });
|
|
4851
|
+
|
|
4852
|
+
class NiceFilterMatTableViewDirective {
|
|
4853
|
+
constructor(query, table) {
|
|
4854
|
+
this.query = query;
|
|
4855
|
+
this.table = table;
|
|
4856
|
+
}
|
|
4857
|
+
ngOnInit() {
|
|
4858
|
+
this.table.dataSource = this.query.selectAll();
|
|
4859
|
+
}
|
|
4860
|
+
}
|
|
4861
|
+
NiceFilterMatTableViewDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NiceFilterMatTableViewDirective, deps: [{ token: NiceFilterViewQuery }, { token: i13.MatTable }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4862
|
+
NiceFilterMatTableViewDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: NiceFilterMatTableViewDirective, selector: "mat-table[niceFilterDataView]", ngImport: i0 });
|
|
4863
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NiceFilterMatTableViewDirective, decorators: [{
|
|
4864
|
+
type: Directive,
|
|
4865
|
+
args: [{ selector: "mat-table[niceFilterDataView]" }]
|
|
4866
|
+
}], ctorParameters: function () { return [{ type: NiceFilterViewQuery }, { type: i13.MatTable }]; } });
|
|
4805
4867
|
|
|
4806
4868
|
class NiceSelectableListContentService {
|
|
4807
4869
|
constructor() {
|
|
@@ -5044,8 +5106,40 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
5044
5106
|
args: [NiceSelectableListCheckboxDirective, { descendants: true }]
|
|
5045
5107
|
}] } });
|
|
5046
5108
|
|
|
5109
|
+
class NiceFilterViewComponent {
|
|
5110
|
+
constructor(service) {
|
|
5111
|
+
this.service = service;
|
|
5112
|
+
this.queryParams = {};
|
|
5113
|
+
}
|
|
5114
|
+
ngOnChanges(changes) {
|
|
5115
|
+
if ("queryParams" in changes) {
|
|
5116
|
+
this.service.setQueryParams(this.queryParams);
|
|
5117
|
+
}
|
|
5118
|
+
}
|
|
5119
|
+
}
|
|
5120
|
+
NiceFilterViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NiceFilterViewComponent, deps: [{ token: NiceFilterViewService }], target: i0.ɵɵFactoryTarget.Component });
|
|
5121
|
+
NiceFilterViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: NiceFilterViewComponent, selector: "nice-filter-view", inputs: { queryParams: "queryParams" }, providers: [
|
|
5122
|
+
NiceFilterViewQuery,
|
|
5123
|
+
NiceFilterViewService,
|
|
5124
|
+
NiceFilterViewStore
|
|
5125
|
+
], usesOnChanges: true, ngImport: i0, template: "<ng-content></ng-content>\n", styles: [""], encapsulation: i0.ViewEncapsulation.None });
|
|
5126
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NiceFilterViewComponent, decorators: [{
|
|
5127
|
+
type: Component,
|
|
5128
|
+
args: [{ selector: "nice-filter-view", encapsulation: ViewEncapsulation.None, providers: [
|
|
5129
|
+
NiceFilterViewQuery,
|
|
5130
|
+
NiceFilterViewService,
|
|
5131
|
+
NiceFilterViewStore
|
|
5132
|
+
], template: "<ng-content></ng-content>\n" }]
|
|
5133
|
+
}], ctorParameters: function () { return [{ type: NiceFilterViewService }]; }, propDecorators: { queryParams: [{
|
|
5134
|
+
type: Input
|
|
5135
|
+
}] } });
|
|
5136
|
+
|
|
5047
5137
|
class NiceBaseFilterViewComponent {
|
|
5138
|
+
constructor() {
|
|
5139
|
+
this._afterQueryParamHooks = new Set();
|
|
5140
|
+
}
|
|
5048
5141
|
ngOnInit(autoLoad = true, { mode, loadConfig, configQueryParams } = {}) {
|
|
5142
|
+
var _a;
|
|
5049
5143
|
if (mode) {
|
|
5050
5144
|
this.filterViewService.setMode(mode);
|
|
5051
5145
|
}
|
|
@@ -5056,6 +5150,11 @@ class NiceBaseFilterViewComponent {
|
|
|
5056
5150
|
if (this.selectableListDirective) {
|
|
5057
5151
|
this.filterViewService.updateSubState("selectable", { stateName: this.selectableListDirective.state });
|
|
5058
5152
|
}
|
|
5153
|
+
if (!this.queryParams || ((_a = this.queryParams) === null || _a === void 0 ? void 0 : _a.initialized)) {
|
|
5154
|
+
this.onInit();
|
|
5155
|
+
return;
|
|
5156
|
+
}
|
|
5157
|
+
this.queryParams.init.pipe(take(1)).subscribe(() => this.onInit());
|
|
5059
5158
|
}
|
|
5060
5159
|
/**
|
|
5061
5160
|
* Call the filter endpoint with the current filter parameters.
|
|
@@ -5088,6 +5187,27 @@ class NiceBaseFilterViewComponent {
|
|
|
5088
5187
|
setBaseRules(rule, reload = true) {
|
|
5089
5188
|
this.filterViewService.setBaseRules(rule, reload);
|
|
5090
5189
|
}
|
|
5190
|
+
/**
|
|
5191
|
+
* Add a rule to the set of rules that won't be saved in the current filterParameters config.
|
|
5192
|
+
* NOTE: These rules will be injected in each filter request.
|
|
5193
|
+
*/
|
|
5194
|
+
addBaseRule(rule, reload = true) {
|
|
5195
|
+
this.filterViewService.addBaseRule(rule, reload);
|
|
5196
|
+
}
|
|
5197
|
+
/**
|
|
5198
|
+
* Add a rule to the set of rules that won't be saved in the current filterParameters config.
|
|
5199
|
+
* NOTE: These rules will be injected in each filter request.
|
|
5200
|
+
*/
|
|
5201
|
+
upsertBaseRule(rule, reload = true) {
|
|
5202
|
+
this.filterViewService.upsertBaseRules(rule, reload);
|
|
5203
|
+
}
|
|
5204
|
+
/**
|
|
5205
|
+
* Remove a rule to the set of rules that won't be saved in the current filterParameters config.
|
|
5206
|
+
* NOTE: These rules will be injected in each filter request.
|
|
5207
|
+
*/
|
|
5208
|
+
removeBaseRule(id, reload = true) {
|
|
5209
|
+
this.filterViewService.removeBaseRules(id, reload);
|
|
5210
|
+
}
|
|
5091
5211
|
/**
|
|
5092
5212
|
* Reset all rules with a new set of rules.
|
|
5093
5213
|
*/
|
|
@@ -5117,6 +5237,14 @@ class NiceBaseFilterViewComponent {
|
|
|
5117
5237
|
this.filterViewService.filter();
|
|
5118
5238
|
}
|
|
5119
5239
|
}
|
|
5240
|
+
afterInit(fn) {
|
|
5241
|
+
var _a;
|
|
5242
|
+
if (!this.queryParams || ((_a = this.queryParams) === null || _a === void 0 ? void 0 : _a.initialized)) {
|
|
5243
|
+
fn.bind(this)();
|
|
5244
|
+
return;
|
|
5245
|
+
}
|
|
5246
|
+
this._afterQueryParamHooks.add(fn);
|
|
5247
|
+
}
|
|
5120
5248
|
autoLoad(autoLoad) {
|
|
5121
5249
|
const { autoLoad: defaultAutoLoad } = this.filterViewQuery.getValue();
|
|
5122
5250
|
if (!this.queryParams) {
|
|
@@ -5146,6 +5274,11 @@ class NiceBaseFilterViewComponent {
|
|
|
5146
5274
|
this.filterViewService.loadConfig(configQueryParams);
|
|
5147
5275
|
}
|
|
5148
5276
|
}
|
|
5277
|
+
onInit() {
|
|
5278
|
+
for (const hook of this._afterQueryParamHooks) {
|
|
5279
|
+
hook.bind(this)();
|
|
5280
|
+
}
|
|
5281
|
+
}
|
|
5149
5282
|
}
|
|
5150
5283
|
NiceBaseFilterViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NiceBaseFilterViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5151
5284
|
NiceBaseFilterViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: NiceBaseFilterViewComponent, selector: "ng-component", viewQueries: [{ propertyName: "filterViewService", first: true, predicate: NiceFilterViewComponent, descendants: true, read: NiceFilterViewService, static: true }, { propertyName: "filterViewQuery", first: true, predicate: NiceFilterViewComponent, descendants: true, read: NiceFilterViewQuery, static: true }, { propertyName: "queryParams", first: true, predicate: NiceFilterQueryParamsDirective, descendants: true, static: true }, { propertyName: "advancedFiltersButton", first: true, predicate: NiceAdvancedFiltersButtonComponent, descendants: true, static: true }, { propertyName: "advancedFilters", first: true, predicate: NiceAdvancedFiltersComponent, descendants: true, static: true }, { propertyName: "selectableListDirective", first: true, predicate: NiceSelectableListDirective, descendants: true, static: true }], ngImport: i0, template: ``, isInline: true });
|
|
@@ -5428,5 +5561,5 @@ String.prototype.toTableColumn = function (sortableOrOptions, nullLast) {
|
|
|
5428
5561
|
* Generated bundle index. Do not edit.
|
|
5429
5562
|
*/
|
|
5430
5563
|
|
|
5431
|
-
export { AdvancedFiltersForm, AdvancedFiltersTriggerDirective, DateFilterComponent, FilterComponent$1 as FilterComponent, FilterForm, FilterFormValues, FilterGroupIconPipe, FilterOperatorTypes, FilterSelectionComponent, FilterType, FilterUtils, LayoutContent, NiceAdvancedFiltersButtonComponent, NiceAdvancedFiltersComponent, NiceAdvancedFiltersModule, NiceBaseFilterViewComponent, NiceBaseListButtonsDirective, NiceBaseListCardsDirective, NiceBaseListComponent, NiceBaseListCustomContentDirective, NiceBaseListDirectiveModule, NiceBaseListEmptySearchResultStateDirective, NiceBaseListEmptyStateDirective, NiceBaseListFiltersDirective, NiceBaseListModule, NiceBaseListQuery, NiceBaseListService, NiceBaseListStore, NiceBaseListTableDirective, NiceBaseListTitleDirective, NiceCustomDateAdapter, NiceFilterApi, NiceFilterCustomDataViewComponent, NiceFilterDataDirective, NiceFilterExportButtonsComponent, NiceFilterExportDirective, NiceFilterGroupService, NiceFilterInfiniteScrollDataViewComponent, NiceFilterMatPaginatorPaginationDirective, NiceFilterMatSortSortingDirective, NiceFilterMatTableViewDirective, NiceFilterQueryParamsDirective, NiceFilterSearchComponent, NiceFilterService, NiceFilterViewComponent, NiceFilterViewModule, NiceFilterViewQuery, NiceFilterViewService, NiceListState, NiceMultiStateFilterService, NiceMultiStateListComponent, NiceMultiStateListModule, NiceMultiStateListQuery, NiceMultiStateListService, NiceMultiStateListStore, NicePreloadSelectedEntitiesProvider, NiceQueryBuilderComponent, NiceQueryBuilderModule, NiceSavedReportService, NiceSelectableListCheckboxDirective, NiceSelectableListDirective, NiceSelectableListIsEmptyDirective, NiceSelectableListModule, NiceSelectableListSelectAllDirective, NiceSelectableListService, NiceSelectableListStateQuery, NiceSelectableListStateService, NumberFilterComponent, OrderUtils, QBFilterUtils, QueryBuilderTriggerDirective, RadioFilterComponent, RuleComponent, SelectFilterComponent, StringUtils, TableColumns, TextFilterComponent, defaultLayout, initialBaseListState, initialValue$1 as initialValue, mixinNiceFilterApi };
|
|
5564
|
+
export { AdvancedFiltersForm, AdvancedFiltersTriggerDirective, DateFilterComponent, FilterComponent$1 as FilterComponent, FilterForm, FilterFormValues, FilterGroupIconPipe, FilterOperatorTypes, FilterSelectionComponent, FilterType, FilterUtils, LayoutContent, NiceAdvancedFiltersButtonComponent, NiceAdvancedFiltersComponent, NiceAdvancedFiltersModule, NiceBaseFilterViewComponent, NiceBaseListButtonsDirective, NiceBaseListCardsDirective, NiceBaseListComponent, NiceBaseListCustomContentDirective, NiceBaseListDirectiveModule, NiceBaseListEmptySearchResultStateDirective, NiceBaseListEmptyStateDirective, NiceBaseListFiltersDirective, NiceBaseListModule, NiceBaseListQuery, NiceBaseListService, NiceBaseListStore, NiceBaseListTableDirective, NiceBaseListTitleDirective, NiceCustomDateAdapter, NiceFilterApi, NiceFilterCustomDataViewComponent, NiceFilterDataDirective, NiceFilterExportButtonsComponent, NiceFilterExportDirective, NiceFilterGroupService, NiceFilterInfiniteScrollDataViewComponent, NiceFilterMatPaginatorPaginationDirective, NiceFilterMatSortSortingDirective, NiceFilterMatTableViewDirective, NiceFilterQueryParamsDirective, NiceFilterSearchComponent, NiceFilterService, NiceFilterViewComponent, NiceFilterViewModule, NiceFilterViewQuery, NiceFilterViewService, NiceListState, NiceMultiStateFilterService, NiceMultiStateListComponent, NiceMultiStateListModule, NiceMultiStateListQuery, NiceMultiStateListService, NiceMultiStateListStore, NiceNestedFilterView, NicePreloadSelectedEntitiesProvider, NiceQueryBuilderComponent, NiceQueryBuilderModule, NiceSavedReportService, NiceSelectableListCheckboxDirective, NiceSelectableListDirective, NiceSelectableListIsEmptyDirective, NiceSelectableListModule, NiceSelectableListSelectAllDirective, NiceSelectableListService, NiceSelectableListStateQuery, NiceSelectableListStateService, NumberFilterComponent, OrderUtils, QBFilterUtils, QueryBuilderTriggerDirective, RadioFilterComponent, RuleComponent, SelectFilterComponent, StringUtils, TableColumns, TextFilterComponent, defaultLayout, initialBaseListState, initialValue$1 as initialValue, mixinNiceFilterApi };
|
|
5432
5565
|
//# sourceMappingURL=recursyve-nice-data-filter-kit.mjs.map
|