@quadrel-enterprise-ui/framework 21.12.22 → 21.12.23
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.
|
@@ -6260,6 +6260,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
6260
6260
|
class QdDataFacetsLinkComponent {
|
|
6261
6261
|
contextService = inject(QdDataFacetsContextService, { optional: true });
|
|
6262
6262
|
actionService = inject(QdTableExternalActionResultService, { optional: true });
|
|
6263
|
+
_destroyRef = inject(DestroyRef);
|
|
6263
6264
|
config;
|
|
6264
6265
|
data;
|
|
6265
6266
|
testId;
|
|
@@ -6286,6 +6287,8 @@ class QdDataFacetsLinkComponent {
|
|
|
6286
6287
|
if (!isObservable(result))
|
|
6287
6288
|
return;
|
|
6288
6289
|
result.subscribe(success => {
|
|
6290
|
+
if (this._destroyRef.destroyed)
|
|
6291
|
+
return;
|
|
6289
6292
|
const shouldRefresh = success === true && this.config.refresh?.isEnabled;
|
|
6290
6293
|
if (shouldRefresh)
|
|
6291
6294
|
this.actionService?.notifyActionSuccess(this.config.refresh?.page ?? 0);
|
|
@@ -22555,13 +22558,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
22555
22558
|
// @ts-strict-ignore
|
|
22556
22559
|
class QdFilterCategoryBooleanComponent {
|
|
22557
22560
|
filterService = inject(QdFilterService);
|
|
22561
|
+
_destroyRef = inject(DestroyRef);
|
|
22558
22562
|
filterId;
|
|
22559
22563
|
categoryIndex;
|
|
22560
22564
|
testId;
|
|
22561
22565
|
itemIndex = 0;
|
|
22562
22566
|
i18n;
|
|
22563
22567
|
ngOnInit() {
|
|
22564
|
-
this.filterService
|
|
22568
|
+
this.filterService
|
|
22569
|
+
.getCategoryById$(this.filterId, this.categoryIndex)
|
|
22570
|
+
.pipe(takeUntilDestroyed(this._destroyRef))
|
|
22571
|
+
.subscribe(item => {
|
|
22565
22572
|
this.i18n = item.i18n;
|
|
22566
22573
|
});
|
|
22567
22574
|
}
|
|
@@ -23552,6 +23559,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
23552
23559
|
class QdFilterCategoryComponent {
|
|
23553
23560
|
filterService = inject(QdFilterService);
|
|
23554
23561
|
translateService = inject(TranslateService);
|
|
23562
|
+
_destroyRef = inject(DestroyRef);
|
|
23555
23563
|
filterId;
|
|
23556
23564
|
isInstantFiltering;
|
|
23557
23565
|
categoryIndex;
|
|
@@ -23572,7 +23580,10 @@ class QdFilterCategoryComponent {
|
|
|
23572
23580
|
return this.testId;
|
|
23573
23581
|
}
|
|
23574
23582
|
ngOnInit() {
|
|
23575
|
-
this.filterService
|
|
23583
|
+
this.filterService
|
|
23584
|
+
.getCategoryById$(this.filterId, this.categoryIndex)
|
|
23585
|
+
.pipe(takeUntilDestroyed(this._destroyRef))
|
|
23586
|
+
.subscribe(category => {
|
|
23576
23587
|
this.type = category.type;
|
|
23577
23588
|
});
|
|
23578
23589
|
}
|
|
@@ -33553,6 +33564,8 @@ class QdPageStepperComponent extends CdkStepper {
|
|
|
33553
33564
|
}
|
|
33554
33565
|
resolve$
|
|
33555
33566
|
.pipe(tap(() => {
|
|
33567
|
+
if (this._destroyRef.destroyed)
|
|
33568
|
+
return;
|
|
33556
33569
|
this.next();
|
|
33557
33570
|
this.isGoingToNextStep = false;
|
|
33558
33571
|
}), catchError(() => {
|
|
@@ -33624,7 +33637,10 @@ class QdPageStepperComponent extends CdkStepper {
|
|
|
33624
33637
|
// TODO: Remove this with Angular 18 as the amazing Angular team finally brings a fix for this issue
|
|
33625
33638
|
// see also https://github.com/angular/angular/issues/41519
|
|
33626
33639
|
if (status === 'PENDING')
|
|
33627
|
-
setTimeout(() =>
|
|
33640
|
+
setTimeout(() => {
|
|
33641
|
+
if (!this._destroyRef.destroyed)
|
|
33642
|
+
this.selected?.stepControl?.updateValueAndValidity();
|
|
33643
|
+
}, 500);
|
|
33628
33644
|
}), map(status => status === 'VALID'));
|
|
33629
33645
|
}
|
|
33630
33646
|
areAllStepsValid$() {
|