@quadrel-enterprise-ui/framework 21.12.18 → 21.12.20
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();
|
|
@@ -18038,7 +18052,7 @@ class QdNotificationComponent {
|
|
|
18038
18052
|
return !!this.element.nativeElement.closest('qd-snackbar');
|
|
18039
18053
|
}
|
|
18040
18054
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdNotificationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
18041
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdNotificationComponent, isStandalone: false, selector: "qd-notification", inputs: { state: "state", notification: "notification" }, host: { properties: { "
|
|
18055
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdNotificationComponent, isStandalone: false, selector: "qd-notification", inputs: { state: "state", notification: "notification" }, host: { properties: { "class": "this.typeClassName" }, classAttribute: "qd-notification" }, usesOnChanges: true, ngImport: i0, template: "@if (closeable) {\n<qd-icon [icon]=\"'timesLarge'\" class=\"closer\" (click)=\"remove()\"></qd-icon>\n}\n<qd-icon [icon]=\"this.getIcon()\" class=\"icon\"></qd-icon>\n\n<ng-content select=\"qd-notification-content\"></ng-content>\n\n@if (notification?.title) {\n<div class=\"title\">{{ notification.title.i18n | translate }}</div>\n}\n<div class=\"message\">\n <span>{{ notification?.i18n | translate }}</span>\n @if (notification?.link) {\n <a class=\"link\" (click)=\"handleLinkClick()\">{{ notification.link.i18n | translate }}</a>\n }\n</div>\n", styles: [":host{position:relative;display:block;width:100%;padding:1rem 2rem .5rem 2.75rem;border-width:.0625rem;border-style:solid;border-left-width:.25rem;margin-bottom:.5rem;background:#fff;box-shadow:0 0 .625rem #979797;font-size:.875rem;line-height:1rem}:host.qd-notification-info{border-color:#069}:host.qd-notification-info .icon,:host.qd-notification-info .title{color:#069}:host.qd-notification-warning{border-color:#ff9b00}:host.qd-notification-warning .icon,:host.qd-notification-warning .title{color:#ff9b00}:host.qd-notification-urgent{border-color:#c70023}:host.qd-notification-urgent .icon,:host.qd-notification-urgent .title{color:#c70023}:host.qd-notification-critical{border-color:#c70023}:host.qd-notification-critical .icon,:host.qd-notification-critical .title{color:#c70023}:host.qd-notification-positive{border-color:#00813a}:host.qd-notification-positive .icon,:host.qd-notification-positive .title{color:#00813a}:host .icon{position:absolute;top:.9375rem;left:1rem;font-size:1.25rem}:host .closer{position:absolute;top:1rem;right:.75rem;color:#171717;cursor:pointer;font-size:.8125rem;font-weight:600}:host .title{margin-bottom:.375rem;font-weight:500}:host .message{margin-bottom:.25rem;white-space:pre-wrap}:host .link{margin-bottom:.375rem;margin-left:.375rem;color:#069;cursor:pointer}:host .link:hover{text-decoration:underline}:host:host-context(qd-snackbar){z-index:9999!important}:host:host-context(qd-snackbar) .link{display:block;margin-top:.375rem;margin-left:0}\n"], dependencies: [{ kind: "component", type: QdIconComponent, selector: "qd-icon", inputs: ["icon", "status"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] });
|
|
18042
18056
|
}
|
|
18043
18057
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdNotificationComponent, decorators: [{
|
|
18044
18058
|
type: Component,
|
|
@@ -18049,7 +18063,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
18049
18063
|
type: Input
|
|
18050
18064
|
}], typeClassName: [{
|
|
18051
18065
|
type: HostBinding,
|
|
18052
|
-
args: ['
|
|
18066
|
+
args: ['class']
|
|
18053
18067
|
}] } });
|
|
18054
18068
|
|
|
18055
18069
|
/**
|
|
@@ -31790,7 +31804,7 @@ class QdPageInfoBannerComponent {
|
|
|
31790
31804
|
this.config?.link?.handler();
|
|
31791
31805
|
}
|
|
31792
31806
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdPageInfoBannerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
31793
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdPageInfoBannerComponent, isStandalone: false, selector: "qd-page-info-banner", inputs: { config: "config" }, host: { properties: { "
|
|
31807
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdPageInfoBannerComponent, isStandalone: false, selector: "qd-page-info-banner", inputs: { config: "config" }, host: { properties: { "class": "this.stateClassName" } }, ngImport: i0, template: "<qd-icon [icon]=\"this.getIcon()\" class=\"icon\"></qd-icon>\n\n@if (config?.title) {\n<div class=\"title\">{{ config.title.i18n | translate }}</div>\n}\n<div class=\"message\">\n <span>{{ config?.i18n | translate }}</span>\n @if (config?.link) {\n <a class=\"link\" (click)=\"handleLinkClick()\">{{ config.link.i18n | translate }}</a>\n }\n</div>\n", styles: [":host{position:relative;display:block;width:100%;padding:1rem 2rem .5rem 2.75rem;border-width:.0625rem;border-style:solid;border-left-width:.25rem;margin-bottom:.5rem;background:#fff;box-shadow:0 0 .625rem #979797;font-size:.875rem;line-height:1rem}:host.qd-page-info-banner-info{border-color:#069}:host.qd-page-info-banner-info .icon,:host.qd-page-info-banner-info .title{color:#069}:host.qd-page-info-banner-warning{border-color:#ff9b00}:host.qd-page-info-banner-warning .icon,:host.qd-page-info-banner-warning .title{color:#ff9b00}:host.qd-page-info-banner-critical{border-color:#c70023}:host.qd-page-info-banner-critical .icon,:host.qd-page-info-banner-critical .title{color:#c70023}:host.qd-page-info-banner-positive{border-color:#00813a}:host.qd-page-info-banner-positive .icon,:host.qd-page-info-banner-positive .title{color:#00813a}:host.qd-page-info-banner-empty{display:none}:host .icon{position:absolute;top:.9375rem;left:1rem;font-size:1.25rem}:host .title{margin-bottom:.375rem;font-weight:500}:host .message{margin-bottom:.25rem;white-space:pre-wrap}:host .link{margin-bottom:.375rem;margin-left:.375rem;color:#069;cursor:pointer}:host .link:hover{text-decoration:underline}\n"], dependencies: [{ kind: "component", type: QdIconComponent, selector: "qd-icon", inputs: ["icon", "status"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] });
|
|
31794
31808
|
}
|
|
31795
31809
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdPageInfoBannerComponent, decorators: [{
|
|
31796
31810
|
type: Component,
|
|
@@ -31800,7 +31814,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
31800
31814
|
args: [{ required: true }]
|
|
31801
31815
|
}], stateClassName: [{
|
|
31802
31816
|
type: HostBinding,
|
|
31803
|
-
args: ['
|
|
31817
|
+
args: ['class']
|
|
31804
31818
|
}] } });
|
|
31805
31819
|
|
|
31806
31820
|
/**
|