@quadrel-enterprise-ui/framework 21.12.23 → 21.12.25
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.
|
@@ -15305,16 +15305,18 @@ class QdPinCodeComponent {
|
|
|
15305
15305
|
return config.previousValue?.codeLength !== config.currentValue?.codeLength;
|
|
15306
15306
|
}
|
|
15307
15307
|
handleCodeLengthChange() {
|
|
15308
|
-
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)
|
|
15309
15315
|
return;
|
|
15310
15316
|
this._isSubscribedToInputChanges = true;
|
|
15311
15317
|
this.inputsList.changes.pipe(takeUntilDestroyed(this._destroyRef)).subscribe(() => {
|
|
15312
|
-
this.control?.markAsPristine();
|
|
15313
|
-
this.emptyAll();
|
|
15314
|
-
this.pinCodeService.reset();
|
|
15315
|
-
this.controlContainer?.reset();
|
|
15316
|
-
this.pinCodeService.codeLength = this.codeLength;
|
|
15317
15318
|
this.getInputs();
|
|
15319
|
+
this.emptyAll();
|
|
15318
15320
|
this.focusFirstOnInit();
|
|
15319
15321
|
});
|
|
15320
15322
|
}
|
|
@@ -19992,6 +19994,7 @@ class QdDialogRecordStepperComponent {
|
|
|
19992
19994
|
dialogService = inject(QdDialogService);
|
|
19993
19995
|
/**
|
|
19994
19996
|
* The data processed by this component.
|
|
19997
|
+
* Its `initialPaginationIndex` sets the first view. Without it, the index of the dialog service is used.
|
|
19995
19998
|
*/
|
|
19996
19999
|
data = { navigation: false, initialPaginationIndex: 0, views: [] };
|
|
19997
20000
|
/**
|
|
@@ -20007,7 +20010,7 @@ class QdDialogRecordStepperComponent {
|
|
|
20007
20010
|
currentIndex;
|
|
20008
20011
|
itemsCount = 0;
|
|
20009
20012
|
ngOnInit() {
|
|
20010
|
-
this.currentIndex = this.
|
|
20013
|
+
this.currentIndex = this.getInitialIndex();
|
|
20011
20014
|
}
|
|
20012
20015
|
ngAfterContentInit() {
|
|
20013
20016
|
this.setItemsCount();
|
|
@@ -20037,6 +20040,13 @@ class QdDialogRecordStepperComponent {
|
|
|
20037
20040
|
setItemsCount() {
|
|
20038
20041
|
this.itemsCount = this.data.views?.length || 0;
|
|
20039
20042
|
}
|
|
20043
|
+
getInitialIndex() {
|
|
20044
|
+
const index = this.data?.initialPaginationIndex;
|
|
20045
|
+
if (index === undefined || index === null)
|
|
20046
|
+
return this.dialogService.dialogData.initialPaginationIndex || 0;
|
|
20047
|
+
const lastIndex = (this.data.views?.length ?? 0) - 1;
|
|
20048
|
+
return Math.max(0, Math.min(index, lastIndex));
|
|
20049
|
+
}
|
|
20040
20050
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdDialogRecordStepperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
20041
20051
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdDialogRecordStepperComponent, isStandalone: false, selector: "qd-dialog-record-stepper", inputs: { data: "data" }, outputs: { changeStep: "changeStep" }, host: { properties: { "class.first-item": "this.firstItem", "class.last-item": "this.lastItem" }, classAttribute: "qd-dialog-record-stepper " }, ngImport: i0, template: "<qd-icon icon=\"arrowLeft\" class=\"previous\" (click)=\"previous()\"></qd-icon>\n<span class=\"range\">{{ currentIndex + 1 }}/{{ itemsCount }}</span>\n<qd-icon icon=\"arrowRight\" class=\"next\" (click)=\"next()\"></qd-icon>\n", styles: [".qd-dialog-record-stepper{display:flex}.qd-dialog-record-stepper .previous,.qd-dialog-record-stepper .next{display:flex;align-items:center;margin-right:.75rem;color:#757575;font-size:1.125rem}.qd-dialog-record-stepper .previous:hover,.qd-dialog-record-stepper .next:hover{color:#171717;cursor:pointer}.qd-dialog-record-stepper .previous .qd-icon,.qd-dialog-record-stepper .next .qd-icon{font-size:1.4rem}.qd-dialog-record-stepper.last-item .next,.qd-dialog-record-stepper.first-item .previous{color:#d5d5d5;cursor:default}.qd-dialog-record-stepper .range{display:flex;align-items:center;margin-right:.75rem;cursor:default}\n"], dependencies: [{ kind: "component", type: QdIconComponent, selector: "qd-icon", inputs: ["icon", "status"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
20042
20052
|
}
|
|
@@ -23265,7 +23275,7 @@ class QdFilterItemSelectCategoryComponent {
|
|
|
23265
23275
|
`;
|
|
23266
23276
|
}
|
|
23267
23277
|
get layerContentClassName() {
|
|
23268
|
-
return `qd-filter__category-layer qd-filter__category-layer--${this.type}
|
|
23278
|
+
return `qd-filter__category-layer qd-filter__category-layer--${this.type}`;
|
|
23269
23279
|
}
|
|
23270
23280
|
get filterCategoryValue$() {
|
|
23271
23281
|
return this.filterService.getFilterCategoryValue$(this.filterId, this.categoryIndex);
|