@quadrel-enterprise-ui/framework 21.12.19 → 21.12.21
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.
|
@@ -11505,10 +11505,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
11505
11505
|
}], ctorParameters: () => [] });
|
|
11506
11506
|
|
|
11507
11507
|
class QdFormKeyboardService {
|
|
11508
|
+
_destroyRef = inject(DestroyRef);
|
|
11508
11509
|
_keyManager;
|
|
11509
11510
|
_components = [];
|
|
11511
|
+
_changesSubscription;
|
|
11512
|
+
ngOnDestroy() {
|
|
11513
|
+
this._keyManager?.destroy();
|
|
11514
|
+
}
|
|
11510
11515
|
init(components) {
|
|
11511
11516
|
const setupKeyManager = () => {
|
|
11517
|
+
this._keyManager?.destroy();
|
|
11512
11518
|
this._components = components.toArray();
|
|
11513
11519
|
this._keyManager = new ActiveDescendantKeyManager(components)
|
|
11514
11520
|
.withWrap()
|
|
@@ -11519,7 +11525,10 @@ class QdFormKeyboardService {
|
|
|
11519
11525
|
};
|
|
11520
11526
|
if (components.length)
|
|
11521
11527
|
setupKeyManager();
|
|
11522
|
-
|
|
11528
|
+
this._changesSubscription?.unsubscribe();
|
|
11529
|
+
this._changesSubscription = components.changes
|
|
11530
|
+
.pipe(takeUntilDestroyed(this._destroyRef))
|
|
11531
|
+
.subscribe(() => setupKeyManager());
|
|
11523
11532
|
}
|
|
11524
11533
|
handleKeydown(event) {
|
|
11525
11534
|
this._keyManager?.onKeydown(event);
|
|
@@ -11550,6 +11559,7 @@ class QdFormKeyboardService {
|
|
|
11550
11559
|
}
|
|
11551
11560
|
}
|
|
11552
11561
|
reset() {
|
|
11562
|
+
this._keyManager?.destroy();
|
|
11553
11563
|
this._keyManager = undefined;
|
|
11554
11564
|
}
|
|
11555
11565
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdFormKeyboardService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
@@ -15146,6 +15156,7 @@ class QdPinCodeComponent {
|
|
|
15146
15156
|
blurCurrent;
|
|
15147
15157
|
control;
|
|
15148
15158
|
_inputs = [];
|
|
15159
|
+
_isSubscribedToInputChanges = false;
|
|
15149
15160
|
_destroyRef = inject(DestroyRef);
|
|
15150
15161
|
_onChange = () => { };
|
|
15151
15162
|
_onTouch = () => { };
|
|
@@ -15291,7 +15302,10 @@ class QdPinCodeComponent {
|
|
|
15291
15302
|
return config.previousValue?.codeLength !== config.currentValue?.codeLength;
|
|
15292
15303
|
}
|
|
15293
15304
|
handleCodeLengthChange() {
|
|
15294
|
-
this.inputsList
|
|
15305
|
+
if (!this.inputsList || this._isSubscribedToInputChanges)
|
|
15306
|
+
return;
|
|
15307
|
+
this._isSubscribedToInputChanges = true;
|
|
15308
|
+
this.inputsList.changes.pipe(takeUntilDestroyed(this._destroyRef)).subscribe(() => {
|
|
15295
15309
|
this.control?.markAsPristine();
|
|
15296
15310
|
this.emptyAll();
|
|
15297
15311
|
this.pinCodeService.reset();
|
|
@@ -22870,7 +22884,7 @@ class QdFilterItemDateRangeComponent {
|
|
|
22870
22884
|
};
|
|
22871
22885
|
}
|
|
22872
22886
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdFilterItemDateRangeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
22873
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdFilterItemDateRangeComponent, isStandalone: false, selector: "qd-filter-item-date-range", inputs: { filterId: "filterId", categoryIndex: "categoryIndex", itemIndex: "itemIndex", timePickerConfig: "timePickerConfig", testId: ["data-test-id", "testId"] }, outputs: { clickTimePlaceholder: "clickTimePlaceholder" }, host: { properties: { "
|
|
22887
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdFilterItemDateRangeComponent, isStandalone: false, selector: "qd-filter-item-date-range", inputs: { filterId: "filterId", categoryIndex: "categoryIndex", itemIndex: "itemIndex", timePickerConfig: "timePickerConfig", testId: ["data-test-id", "testId"] }, outputs: { clickTimePlaceholder: "clickTimePlaceholder" }, host: { properties: { "class": "this.itemClassName", "attr.data-test-id": "this.dataTestId" } }, viewQueries: [{ propertyName: "datepicker", first: true, predicate: QdDatepickerComponent, descendants: true }], ngImport: i0, template: "<qd-datepicker\n [config]=\"config\"\n [(value)]=\"item\"\n (valueChange)=\"handleDateChange($event)\"\n (clickTimePlaceholder)=\"handleClickTimePlaceholder($event)\"\n [hasCalendarOnly]=\"true\"\n></qd-datepicker>\n", styles: [":host input{width:0!important;height:0!important;border:none!important}:host.qd-filter__item-date-range--0 ::ng-deep+.qd-chip{margin-right:.25rem;margin-left:.1875rem!important}:host.qd-filter__item-date-range--1 ::ng-deep+.qd-chip{margin-left:.1875rem!important}\n"], dependencies: [{ kind: "component", type: QdDatepickerComponent, selector: "qd-datepicker", inputs: ["config", "formControlName", "value", "hasCalendarOnly", "data-test-id"], outputs: ["valueChange", "clickTimePlaceholder", "clickHint", "clickReadonly", "clickViewonly"] }] });
|
|
22874
22888
|
}
|
|
22875
22889
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdFilterItemDateRangeComponent, decorators: [{
|
|
22876
22890
|
type: Component,
|
|
@@ -22890,7 +22904,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
22890
22904
|
type: Output
|
|
22891
22905
|
}], itemClassName: [{
|
|
22892
22906
|
type: HostBinding,
|
|
22893
|
-
args: ['
|
|
22907
|
+
args: ['class']
|
|
22894
22908
|
}], dataTestId: [{
|
|
22895
22909
|
type: HostBinding,
|
|
22896
22910
|
args: ['attr.data-test-id']
|
|
@@ -23597,7 +23611,7 @@ class QdFilterCategoryComponent {
|
|
|
23597
23611
|
}
|
|
23598
23612
|
}
|
|
23599
23613
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdFilterCategoryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
23600
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdFilterCategoryComponent, isStandalone: false, selector: "qd-filter-category", inputs: { filterId: "filterId", isInstantFiltering: "isInstantFiltering", categoryIndex: "categoryIndex", lastCategory: "lastCategory", testId: ["data-test-id", "testId"] }, host: { properties: { "attr.data-category-index": "this.categoryIndexAttribute", "
|
|
23614
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdFilterCategoryComponent, isStandalone: false, selector: "qd-filter-category", inputs: { filterId: "filterId", isInstantFiltering: "isInstantFiltering", categoryIndex: "categoryIndex", lastCategory: "lastCategory", testId: ["data-test-id", "testId"] }, host: { properties: { "attr.data-category-index": "this.categoryIndexAttribute", "class": "this.categoryNumberClassName", "attr.data-test-id": "this.dataTestId" } }, viewQueries: [{ propertyName: "itemFreeTextCategory", predicate: i0.forwardRef(() => QdFilterItemFreeTextCategoryComponent), descendants: true }], ngImport: i0, template: "@if (isBoolean) {\n<div [class]=\"buttonClassName\">\n <qd-filter-category-boolean\n [filterId]=\"filterId\"\n [categoryIndex]=\"categoryIndex\"\n [data-test-id]=\"testId + '-boolean'\"\n >\n </qd-filter-category-boolean>\n</div>\n} @if (isDate) {\n<div [class]=\"buttonClassName\">\n <qd-filter-category-date\n [filterId]=\"filterId\"\n [categoryIndex]=\"categoryIndex\"\n [data-test-id]=\"testId + '-date'\"\n ></qd-filter-category-date>\n</div>\n} @if (isDateTime) {\n<div [class]=\"buttonClassName\">\n <qd-filter-category-date\n [filterId]=\"filterId\"\n [categoryIndex]=\"categoryIndex\"\n [data-test-id]=\"testId + '-date'\"\n [timePickerConfig]=\"timePickerConfig\"\n ></qd-filter-category-date>\n</div>\n} @if (isDateRange) {\n<div [class]=\"buttonClassName\">\n <qd-filter-category-date-range\n [filterId]=\"filterId\"\n [categoryIndex]=\"categoryIndex\"\n [data-test-id]=\"testId + '-date-range-'\"\n ></qd-filter-category-date-range>\n</div>\n} @if (isDateTimeRange) {\n<div [class]=\"buttonClassName\">\n <qd-filter-category-date-range\n [filterId]=\"filterId\"\n [categoryIndex]=\"categoryIndex\"\n [data-test-id]=\"testId + '-date-range-'\"\n [timePickerConfig]=\"timePickerConfig\"\n ></qd-filter-category-date-range>\n</div>\n} @if (isFreeText) {\n<div [class]=\"buttonClassName\">\n <qd-filter-category-free-text\n [filterId]=\"filterId\"\n [isInstantFiltering]=\"isInstantFiltering\"\n [categoryIndex]=\"categoryIndex\"\n [data-test-id]=\"testId + '-item'\"\n ></qd-filter-category-free-text>\n</div>\n} @if (isSelect) {\n<qd-filter-category-select\n [filterId]=\"filterId\"\n [categoryIndex]=\"categoryIndex\"\n [data-test-id]=\"testId\"\n></qd-filter-category-select>\n}\n", styles: [":host{position:relative}:host ::ng-deep .qd-filter__category-button{position:relative;display:flex;align-items:center;justify-content:center;padding:0 .75rem 0 2rem;border:.0625rem solid rgb(213,213,213);margin:0 .75rem .75rem 0;background-color:#fff;color:#757575;cursor:pointer;font-size:.875rem;font-weight:400}:host ::ng-deep .qd-filter__category-button-caption{position:relative;display:flex;max-width:40ch;line-height:2.125rem}:host ::ng-deep .qd-filter__category-button-caption span{overflow:inherit;text-overflow:inherit;white-space:nowrap}:host ::ng-deep .qd-filter__category-button--type-boolean{padding:0}:host ::ng-deep .qd-filter__category-button--type-date,:host ::ng-deep .qd-filter__category-button--type-dateRange,:host ::ng-deep .qd-filter__category-button--type-freeText{display:flex;flex-direction:row;align-items:center;padding-right:0;padding-left:0}:host ::ng-deep .qd-filter__category-button--type-date qd-chip,:host ::ng-deep .qd-filter__category-button--type-dateRange qd-chip,:host ::ng-deep .qd-filter__category-button--type-freeText qd-chip{height:1.5rem}@media(max-width:599.98px){:host ::ng-deep .qd-filter__category-button--type-dateRange{width:100%;height:auto;flex-wrap:wrap;align-items:flex-start;line-height:2.125rem}}:host ::ng-deep .qd-filter__category-button--open,:host ::ng-deep .qd-filter__category-button:hover,:host ::ng-deep .qd-filter__category-button:focus{border-color:#979797!important;color:#171717}:host ::ng-deep .qd-filter__category-button:focus{outline:none}:host ::ng-deep .qd-filter__category-button:focus-visible{box-shadow:inset 0 0 0 .125rem #069}:host ::ng-deep .qd-filter__category-button .qd-filter__category-icon{position:absolute;left:0;display:inline-flex;padding:0 .4375rem 0 .3125rem;font-size:1.25rem;line-height:2.125rem;pointer-events:none}:host ::ng-deep .qd-filter__category-button .qd-chip{display:inline-flex;margin-left:.5rem}:host ::ng-deep .qd-filter__category-button .qd-chip ::ng-deep .qd-chip__label{overflow:hidden;max-width:10ch;text-overflow:ellipsis}:host ::ng-deep .qd-filter__category-button .qd-filter__item-date+.qd-chip ::ng-deep .qd-chip__label,:host ::ng-deep .qd-filter__category-button .qd-filter__item-date-range+.qd-chip ::ng-deep .qd-chip__label{max-width:20ch}:host ::ng-deep .qd-filter__category-button--open{z-index:20}:host ::ng-deep .qd-filter__category--last{margin-right:1rem}\n"], dependencies: [{ kind: "component", type: QdFilterCategoryBooleanComponent, selector: "qd-filter-category-boolean", inputs: ["filterId", "categoryIndex", "data-test-id"] }, { kind: "component", type: QdFilterItemDateCategoryComponent, selector: "qd-filter-category-date", inputs: ["filterId", "categoryIndex", "timePickerConfig", "data-test-id"] }, { kind: "component", type: QdFilterItemDateRangeCategoryComponent, selector: "qd-filter-category-date-range", inputs: ["filterId", "categoryIndex", "data-test-id", "timePickerConfig"] }, { kind: "component", type: QdFilterItemFreeTextCategoryComponent, selector: "qd-filter-category-free-text", inputs: ["filterId", "isInstantFiltering", "categoryIndex", "data-test-id"] }, { kind: "component", type: QdFilterItemSelectCategoryComponent, selector: "qd-filter-category-select", inputs: ["filterId", "categoryIndex", "data-test-id"] }] });
|
|
23601
23615
|
}
|
|
23602
23616
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdFilterCategoryComponent, decorators: [{
|
|
23603
23617
|
type: Component,
|
|
@@ -23621,7 +23635,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
23621
23635
|
args: ['attr.data-category-index']
|
|
23622
23636
|
}], categoryNumberClassName: [{
|
|
23623
23637
|
type: HostBinding,
|
|
23624
|
-
args: ['
|
|
23638
|
+
args: ['class']
|
|
23625
23639
|
}], dataTestId: [{
|
|
23626
23640
|
type: HostBinding,
|
|
23627
23641
|
args: ['attr.data-test-id']
|
|
@@ -35785,14 +35799,14 @@ class QdShellHeaderBannerComponent {
|
|
|
35785
35799
|
return this.bannerService.bannerText;
|
|
35786
35800
|
}
|
|
35787
35801
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdShellHeaderBannerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
35788
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdShellHeaderBannerComponent, isStandalone: false, selector: "qd-shell-header-banner", host: { properties: { "
|
|
35802
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdShellHeaderBannerComponent, isStandalone: false, selector: "qd-shell-header-banner", host: { properties: { "class": "this.colorClassName" } }, ngImport: i0, template: "@if (shouldRender) {\n{{ bannerText }}\n}\n", styles: [":host.qd-shell__banner{position:absolute;z-index:100;top:0;left:25%;display:block;width:3rem;height:2rem;padding-top:.6875rem;background:#c70023;color:#fff;cursor:grabbing;filter:drop-shadow(0 .1875rem .1875rem rgba(0,0,0,.25));font-size:.8125rem;font-weight:500;text-align:center;text-transform:uppercase}:host.qd-shell__banner:after{position:absolute;top:2rem;left:0;width:0;height:0;border-top:.5rem solid rgb(199,0,35);border-right:1.5rem solid transparent;border-left:1.5rem solid transparent;content:\"\"}:host.qd-shell__banner.qd-shell__banner--ref{background:#ff9b00}:host.qd-shell__banner.qd-shell__banner--ref:after{border-top-color:#ff9b00}:host.qd-shell__banner.qd-shell__banner--abn{background:#00813a}:host.qd-shell__banner.qd-shell__banner--abn:after{border-top-color:#00813a}\n"] });
|
|
35789
35803
|
}
|
|
35790
35804
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdShellHeaderBannerComponent, decorators: [{
|
|
35791
35805
|
type: Component,
|
|
35792
35806
|
args: [{ selector: 'qd-shell-header-banner', standalone: false, template: "@if (shouldRender) {\n{{ bannerText }}\n}\n", styles: [":host.qd-shell__banner{position:absolute;z-index:100;top:0;left:25%;display:block;width:3rem;height:2rem;padding-top:.6875rem;background:#c70023;color:#fff;cursor:grabbing;filter:drop-shadow(0 .1875rem .1875rem rgba(0,0,0,.25));font-size:.8125rem;font-weight:500;text-align:center;text-transform:uppercase}:host.qd-shell__banner:after{position:absolute;top:2rem;left:0;width:0;height:0;border-top:.5rem solid rgb(199,0,35);border-right:1.5rem solid transparent;border-left:1.5rem solid transparent;content:\"\"}:host.qd-shell__banner.qd-shell__banner--ref{background:#ff9b00}:host.qd-shell__banner.qd-shell__banner--ref:after{border-top-color:#ff9b00}:host.qd-shell__banner.qd-shell__banner--abn{background:#00813a}:host.qd-shell__banner.qd-shell__banner--abn:after{border-top-color:#00813a}\n"] }]
|
|
35793
35807
|
}], propDecorators: { colorClassName: [{
|
|
35794
35808
|
type: HostBinding,
|
|
35795
|
-
args: ['
|
|
35809
|
+
args: ['class']
|
|
35796
35810
|
}] } });
|
|
35797
35811
|
|
|
35798
35812
|
// @ts-strict-ignore
|