@quadrel-enterprise-ui/framework 21.12.22 → 21.12.24
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);
|
|
@@ -15302,16 +15305,18 @@ class QdPinCodeComponent {
|
|
|
15302
15305
|
return config.previousValue?.codeLength !== config.currentValue?.codeLength;
|
|
15303
15306
|
}
|
|
15304
15307
|
handleCodeLengthChange() {
|
|
15305
|
-
if (!this.inputsList
|
|
15308
|
+
if (!this.inputsList)
|
|
15309
|
+
return;
|
|
15310
|
+
this.control?.markAsPristine();
|
|
15311
|
+
this.pinCodeService.reset();
|
|
15312
|
+
this.controlContainer?.reset();
|
|
15313
|
+
this.pinCodeService.codeLength = this.codeLength;
|
|
15314
|
+
if (this._isSubscribedToInputChanges)
|
|
15306
15315
|
return;
|
|
15307
15316
|
this._isSubscribedToInputChanges = true;
|
|
15308
15317
|
this.inputsList.changes.pipe(takeUntilDestroyed(this._destroyRef)).subscribe(() => {
|
|
15309
|
-
this.control?.markAsPristine();
|
|
15310
|
-
this.emptyAll();
|
|
15311
|
-
this.pinCodeService.reset();
|
|
15312
|
-
this.controlContainer?.reset();
|
|
15313
|
-
this.pinCodeService.codeLength = this.codeLength;
|
|
15314
15318
|
this.getInputs();
|
|
15319
|
+
this.emptyAll();
|
|
15315
15320
|
this.focusFirstOnInit();
|
|
15316
15321
|
});
|
|
15317
15322
|
}
|
|
@@ -22555,13 +22560,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
22555
22560
|
// @ts-strict-ignore
|
|
22556
22561
|
class QdFilterCategoryBooleanComponent {
|
|
22557
22562
|
filterService = inject(QdFilterService);
|
|
22563
|
+
_destroyRef = inject(DestroyRef);
|
|
22558
22564
|
filterId;
|
|
22559
22565
|
categoryIndex;
|
|
22560
22566
|
testId;
|
|
22561
22567
|
itemIndex = 0;
|
|
22562
22568
|
i18n;
|
|
22563
22569
|
ngOnInit() {
|
|
22564
|
-
this.filterService
|
|
22570
|
+
this.filterService
|
|
22571
|
+
.getCategoryById$(this.filterId, this.categoryIndex)
|
|
22572
|
+
.pipe(takeUntilDestroyed(this._destroyRef))
|
|
22573
|
+
.subscribe(item => {
|
|
22565
22574
|
this.i18n = item.i18n;
|
|
22566
22575
|
});
|
|
22567
22576
|
}
|
|
@@ -23258,7 +23267,7 @@ class QdFilterItemSelectCategoryComponent {
|
|
|
23258
23267
|
`;
|
|
23259
23268
|
}
|
|
23260
23269
|
get layerContentClassName() {
|
|
23261
|
-
return `qd-filter__category-layer qd-filter__category-layer--${this.type}
|
|
23270
|
+
return `qd-filter__category-layer qd-filter__category-layer--${this.type}`;
|
|
23262
23271
|
}
|
|
23263
23272
|
get filterCategoryValue$() {
|
|
23264
23273
|
return this.filterService.getFilterCategoryValue$(this.filterId, this.categoryIndex);
|
|
@@ -23552,6 +23561,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
23552
23561
|
class QdFilterCategoryComponent {
|
|
23553
23562
|
filterService = inject(QdFilterService);
|
|
23554
23563
|
translateService = inject(TranslateService);
|
|
23564
|
+
_destroyRef = inject(DestroyRef);
|
|
23555
23565
|
filterId;
|
|
23556
23566
|
isInstantFiltering;
|
|
23557
23567
|
categoryIndex;
|
|
@@ -23572,7 +23582,10 @@ class QdFilterCategoryComponent {
|
|
|
23572
23582
|
return this.testId;
|
|
23573
23583
|
}
|
|
23574
23584
|
ngOnInit() {
|
|
23575
|
-
this.filterService
|
|
23585
|
+
this.filterService
|
|
23586
|
+
.getCategoryById$(this.filterId, this.categoryIndex)
|
|
23587
|
+
.pipe(takeUntilDestroyed(this._destroyRef))
|
|
23588
|
+
.subscribe(category => {
|
|
23576
23589
|
this.type = category.type;
|
|
23577
23590
|
});
|
|
23578
23591
|
}
|
|
@@ -33553,6 +33566,8 @@ class QdPageStepperComponent extends CdkStepper {
|
|
|
33553
33566
|
}
|
|
33554
33567
|
resolve$
|
|
33555
33568
|
.pipe(tap(() => {
|
|
33569
|
+
if (this._destroyRef.destroyed)
|
|
33570
|
+
return;
|
|
33556
33571
|
this.next();
|
|
33557
33572
|
this.isGoingToNextStep = false;
|
|
33558
33573
|
}), catchError(() => {
|
|
@@ -33624,7 +33639,10 @@ class QdPageStepperComponent extends CdkStepper {
|
|
|
33624
33639
|
// TODO: Remove this with Angular 18 as the amazing Angular team finally brings a fix for this issue
|
|
33625
33640
|
// see also https://github.com/angular/angular/issues/41519
|
|
33626
33641
|
if (status === 'PENDING')
|
|
33627
|
-
setTimeout(() =>
|
|
33642
|
+
setTimeout(() => {
|
|
33643
|
+
if (!this._destroyRef.destroyed)
|
|
33644
|
+
this.selected?.stepControl?.updateValueAndValidity();
|
|
33645
|
+
}, 500);
|
|
33628
33646
|
}), map(status => status === 'VALID'));
|
|
33629
33647
|
}
|
|
33630
33648
|
areAllStepsValid$() {
|