@quadrel-enterprise-ui/framework 21.12.8 → 21.12.10
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Directive, InjectionToken, inject, ElementRef, HostBinding, Input, ViewEncapsulation, Component, Injectable, Injector, HostListener, ChangeDetectionStrategy, ChangeDetectorRef, ViewChild, NgModule, EventEmitter, Output, Renderer2, Pipe, ViewContainerRef, NO_ERRORS_SCHEMA, DestroyRef, SecurityContext, NgZone, ViewChildren, afterNextRender, forwardRef, QueryList, ContentChildren, ContentChild, afterEveryRender, isDevMode, TemplateRef, CUSTOM_ELEMENTS_SCHEMA, provideAppInitializer } from '@angular/core';
|
|
2
|
+
import { Directive, InjectionToken, inject, ElementRef, HostBinding, Input, ViewEncapsulation, Component, Injectable, Injector, HostListener, ChangeDetectionStrategy, ChangeDetectorRef, ViewChild, NgModule, EventEmitter, Output, Renderer2, Pipe, ViewContainerRef, NO_ERRORS_SCHEMA, DestroyRef, SecurityContext, NgZone, ViewChildren, afterNextRender, forwardRef, QueryList, ContentChildren, ContentChild, afterEveryRender, reflectComponentType, isDevMode, TemplateRef, CUSTOM_ELEMENTS_SCHEMA, provideAppInitializer } from '@angular/core';
|
|
3
3
|
import { Dialog, DialogRef, DIALOG_DATA, DialogModule } from '@angular/cdk/dialog';
|
|
4
4
|
import { quadrelIcons } from '@quadrel-enterprise-ui/icons';
|
|
5
5
|
export { quadrelIconNames } from '@quadrel-enterprise-ui/icons';
|
|
@@ -819,8 +819,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
819
819
|
* description: The panel names the text section in a slot and renders it above the panel sections.
|
|
820
820
|
*
|
|
821
821
|
* @parent qd-dialog-confirmation {supported}
|
|
822
|
-
* description: Marked with
|
|
823
|
-
* text the confirmation dialog shows in that state.
|
|
822
|
+
* description: Marked with qdDialogConfirmationInfo, qdDialogConfirmationSuccess or qdDialogConfirmationError,
|
|
823
|
+
* it is the text the confirmation dialog shows in that state. The short attributes
|
|
824
|
+
* qdDialogConfirmInfo, qdDialogConfirmSuccess and qdDialogConfirmError do the same.
|
|
824
825
|
*/
|
|
825
826
|
class QdTextSectionComponent {
|
|
826
827
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdTextSectionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -17963,11 +17964,11 @@ class QdNotificationComponent {
|
|
|
17963
17964
|
return !!this.element.nativeElement.closest('qd-snackbar');
|
|
17964
17965
|
}
|
|
17965
17966
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdNotificationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
17966
|
-
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: { "attr.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;
|
|
17967
|
+
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: { "attr.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" }] });
|
|
17967
17968
|
}
|
|
17968
17969
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdNotificationComponent, decorators: [{
|
|
17969
17970
|
type: Component,
|
|
17970
|
-
args: [{ selector: 'qd-notification', host: { class: 'qd-notification' }, standalone: false, 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;
|
|
17971
|
+
args: [{ selector: 'qd-notification', host: { class: 'qd-notification' }, standalone: false, 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"] }]
|
|
17971
17972
|
}], propDecorators: { state: [{
|
|
17972
17973
|
type: Input
|
|
17973
17974
|
}], notification: [{
|
|
@@ -19986,36 +19987,48 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
19986
19987
|
*/
|
|
19987
19988
|
const QD_DIALOG_CONFIRMATION_RESOLVER_TOKEN = new InjectionToken('QD_DIALOG_CONFIRMATION_RESOLVER_TOKEN');
|
|
19988
19989
|
|
|
19990
|
+
/**
|
|
19991
|
+
* Marks the content that the confirmation dialog shows while it asks for confirmation.
|
|
19992
|
+
* The short attribute qdDialogConfirmInfo does the same.
|
|
19993
|
+
*/
|
|
19989
19994
|
class QdDialogConfirmationInfoDirective {
|
|
19990
19995
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdDialogConfirmationInfoDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
19991
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.17", type: QdDialogConfirmationInfoDirective, isStandalone: false, selector: "[qdDialogConfirmationInfo]", ngImport: i0 });
|
|
19996
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.17", type: QdDialogConfirmationInfoDirective, isStandalone: false, selector: "[qdDialogConfirmationInfo], [qdDialogConfirmInfo]", ngImport: i0 });
|
|
19992
19997
|
}
|
|
19993
19998
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdDialogConfirmationInfoDirective, decorators: [{
|
|
19994
19999
|
type: Directive,
|
|
19995
20000
|
args: [{
|
|
19996
|
-
selector: '[qdDialogConfirmationInfo]',
|
|
20001
|
+
selector: '[qdDialogConfirmationInfo], [qdDialogConfirmInfo]',
|
|
19997
20002
|
standalone: false
|
|
19998
20003
|
}]
|
|
19999
20004
|
}] });
|
|
20005
|
+
/**
|
|
20006
|
+
* Marks the content that the confirmation dialog shows after the confirmation succeeded.
|
|
20007
|
+
* The short attribute qdDialogConfirmSuccess does the same.
|
|
20008
|
+
*/
|
|
20000
20009
|
class QdDialogConfirmationSuccessDirective {
|
|
20001
20010
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdDialogConfirmationSuccessDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
20002
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.17", type: QdDialogConfirmationSuccessDirective, isStandalone: false, selector: "[qdDialogConfirmationSuccess]", ngImport: i0 });
|
|
20011
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.17", type: QdDialogConfirmationSuccessDirective, isStandalone: false, selector: "[qdDialogConfirmationSuccess], [qdDialogConfirmSuccess]", ngImport: i0 });
|
|
20003
20012
|
}
|
|
20004
20013
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdDialogConfirmationSuccessDirective, decorators: [{
|
|
20005
20014
|
type: Directive,
|
|
20006
20015
|
args: [{
|
|
20007
|
-
selector: '[qdDialogConfirmationSuccess]',
|
|
20016
|
+
selector: '[qdDialogConfirmationSuccess], [qdDialogConfirmSuccess]',
|
|
20008
20017
|
standalone: false
|
|
20009
20018
|
}]
|
|
20010
20019
|
}] });
|
|
20020
|
+
/**
|
|
20021
|
+
* Marks the content that the confirmation dialog shows after the confirmation failed.
|
|
20022
|
+
* The short attribute qdDialogConfirmError does the same.
|
|
20023
|
+
*/
|
|
20011
20024
|
class QdDialogConfirmationErrorDirective {
|
|
20012
20025
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdDialogConfirmationErrorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
20013
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.17", type: QdDialogConfirmationErrorDirective, isStandalone: false, selector: "[qdDialogConfirmationError]", ngImport: i0 });
|
|
20026
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.17", type: QdDialogConfirmationErrorDirective, isStandalone: false, selector: "[qdDialogConfirmationError], [qdDialogConfirmError]", ngImport: i0 });
|
|
20014
20027
|
}
|
|
20015
20028
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdDialogConfirmationErrorDirective, decorators: [{
|
|
20016
20029
|
type: Directive,
|
|
20017
20030
|
args: [{
|
|
20018
|
-
selector: '[qdDialogConfirmationError]',
|
|
20031
|
+
selector: '[qdDialogConfirmationError], [qdDialogConfirmError]',
|
|
20019
20032
|
standalone: false
|
|
20020
20033
|
}]
|
|
20021
20034
|
}] });
|
|
@@ -20086,23 +20099,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
20086
20099
|
* @slot [qdDialogConfirmInfo] {custom-markup}
|
|
20087
20100
|
* description: Holds the content the dialog shows while it asks for confirmation.
|
|
20088
20101
|
* enforcedBy: ng-content-select
|
|
20089
|
-
*
|
|
20090
|
-
*
|
|
20091
|
-
*
|
|
20102
|
+
*
|
|
20103
|
+
* @slot [qdDialogConfirmationInfo] {custom-markup}
|
|
20104
|
+
* description: Holds the content marked with the qdDialogConfirmationInfo directive, which the dialog
|
|
20105
|
+
* shows while it asks for confirmation.
|
|
20106
|
+
* enforcedBy: ng-content-select
|
|
20092
20107
|
*
|
|
20093
20108
|
* @slot [qdDialogConfirmSuccess] {custom-markup}
|
|
20094
20109
|
* description: Holds the content the dialog shows after the confirmation succeeded.
|
|
20095
20110
|
* enforcedBy: ng-content-select
|
|
20096
|
-
*
|
|
20097
|
-
*
|
|
20098
|
-
*
|
|
20111
|
+
*
|
|
20112
|
+
* @slot [qdDialogConfirmationSuccess] {custom-markup}
|
|
20113
|
+
* description: Holds the content marked with the qdDialogConfirmationSuccess directive, which the dialog
|
|
20114
|
+
* shows after the confirmation succeeded.
|
|
20115
|
+
* enforcedBy: ng-content-select
|
|
20099
20116
|
*
|
|
20100
20117
|
* @slot [qdDialogConfirmError] {custom-markup}
|
|
20101
20118
|
* description: Holds the content the dialog shows after the confirmation failed.
|
|
20102
20119
|
* enforcedBy: ng-content-select
|
|
20103
|
-
*
|
|
20104
|
-
*
|
|
20105
|
-
*
|
|
20120
|
+
*
|
|
20121
|
+
* @slot [qdDialogConfirmationError] {custom-markup}
|
|
20122
|
+
* description: Holds the content marked with the qdDialogConfirmationError directive, which the dialog
|
|
20123
|
+
* shows after the confirmation failed.
|
|
20124
|
+
* enforcedBy: ng-content-select
|
|
20106
20125
|
*/
|
|
20107
20126
|
class QdDialogConfirmationComponent {
|
|
20108
20127
|
confirmationResolver = inject(QD_DIALOG_CONFIRMATION_RESOLVER_TOKEN, {
|
|
@@ -20196,11 +20215,11 @@ class QdDialogConfirmationComponent {
|
|
|
20196
20215
|
});
|
|
20197
20216
|
}
|
|
20198
20217
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdDialogConfirmationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
20199
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdDialogConfirmationComponent, isStandalone: false, selector: "qd-dialog-confirmation", inputs: { config: "config", testId: ["data-test-id", "testId"] }, ngImport: i0, template: "<qd-dialog [attr.data-test-id]=\"testId\">\n @if (isLoading) {\n <div class=\"loading-overlay\">\n <qd-spinner></qd-spinner>\n </div>\n } @if (isInfoState) {\n <div class=\"headline\">{{ config.info.headline.i18n | translate }}</div>\n } @if (isPositiveState) {\n <div class=\"headline\">\n {{ (config.success
|
|
20218
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdDialogConfirmationComponent, isStandalone: false, selector: "qd-dialog-confirmation", inputs: { config: "config", testId: ["data-test-id", "testId"] }, ngImport: i0, template: "<qd-dialog [attr.data-test-id]=\"testId\">\n @if (isLoading) {\n <div class=\"loading-overlay\">\n <qd-spinner></qd-spinner>\n </div>\n } @if (isInfoState) {\n <div class=\"headline\">{{ config.info.headline.i18n | translate }}</div>\n } @if (isPositiveState) {\n <div class=\"headline\">\n {{ (config.success?.headline?.i18n | translate) || (config.info.headline.i18n | translate) }}\n </div>\n } @if (isCriticalState && config.error?.headline?.i18n) {\n <div class=\"headline\">\n {{ config.error?.headline?.i18n | translate }}\n </div>\n }\n\n <div class=\"info\">\n @if (isInfoState) {\n {{ config.info.info.i18n | translate }}\n } @if (isPositiveState) {\n <qd-icon class=\"success\" [icon]=\"'checkCircleSolid'\"></qd-icon>\n <span>{{ (config.success?.info?.i18n | translate) || (config.info.info.i18n | translate) }} </span>\n } @if (isCriticalState && config.error?.info?.i18n) {\n <qd-icon class=\"error\" [icon]=\"'timesCircleSolid'\"></qd-icon>\n <span>{{ config.error?.info?.i18n | translate }}</span>\n }\n </div>\n\n <div class=\"confirm-content\">\n @if (isInfoState) {\n <ng-content select=\"[qdDialogConfirmInfo]\"></ng-content>\n <ng-content select=\"[qdDialogConfirmationInfo]\"></ng-content>\n @if (useCheckbox) {\n <qd-checkboxes\n [attr.data-test-id]=\"testId + '-checkbox'\"\n [config]=\"checkboxConfig\"\n [(values)]=\"confirmChecked\"\n ></qd-checkboxes>\n } } @if (isPositiveState) {\n <ng-content select=\"[qdDialogConfirmSuccess]\"></ng-content>\n <ng-content select=\"[qdDialogConfirmationSuccess]\"></ng-content>\n } @if (isCriticalState) {\n <ng-content select=\"[qdDialogConfirmError]\"></ng-content>\n <ng-content select=\"[qdDialogConfirmationError]\"></ng-content>\n }\n\n <qd-notifications [context]=\"notificationContext\"></qd-notifications>\n </div>\n\n <qd-dialog-action>\n @if (isInfoState) {\n <button qdButton qdButtonGhost (click)=\"close()\" [disabled]=\"isLoading\">\n {{ config.buttons.cancel.i18n | translate }}\n </button>\n <button qdButton color=\"primary\" (click)=\"confirm()\" [disabled]=\"(useCheckbox && !isConfirmed) || isLoading\">\n {{ config.buttons.next.i18n | translate }}\n </button>\n } @if (isPositiveState) {\n <button qdButton color=\"primary\" (click)=\"submit()\">\n {{ (config.buttons.success?.i18n | translate) || (config.buttons.next.i18n | translate) }}\n </button>\n } @if (isCriticalState) {\n <button qdButton color=\"primary\" (click)=\"submit()\">\n {{ (config.buttons.error?.i18n | translate) || (config.buttons.next.i18n | translate) }}\n </button>\n }\n </qd-dialog-action>\n</qd-dialog>\n", styles: [":host .headline{color:#171717;font-size:1rem;font-weight:700;line-height:1.5rem;margin-bottom:.75rem}:host .info{color:#171717;font-size:1rem;font-weight:400;line-height:1.5rem;display:flex}:host .info ::ng-deep .qd-icon{width:.875rem;margin-right:.75rem;font-size:1.25rem;font-weight:300}:host .info ::ng-deep .qd-icon.success{color:#00813a}:host .info ::ng-deep .qd-icon.error{color:#c70023}:host .loading-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background-color:#0003}\n"], dependencies: [{ kind: "component", type: QdButtonComponent, selector: "button[qdButton], a[qdButton]", inputs: ["disabled", "color", "icon", "data-test-id", "additionalInfo"] }, { kind: "directive", type: QdButtonGhostDirective, selector: "button[qdButtonGhost], a[qdButtonGhost]" }, { kind: "component", type: QdCheckboxesComponent, selector: "qd-checkboxes", inputs: ["formControlName", "values", "config", "data-test-id"], outputs: ["valuesChange", "clickHint", "clickReadonly", "clickViewonly"] }, { kind: "component", type: QdIconComponent, selector: "qd-icon", inputs: ["icon", "status"] }, { kind: "component", type: QdNotificationsComponent, selector: "qd-notifications", inputs: ["context"] }, { kind: "component", type: QdSpinnerComponent, selector: "qd-spinner" }, { kind: "component", type: QdDialogActionComponent, selector: "qd-dialog-action" }, { kind: "component", type: QdDialogComponent, selector: "qd-dialog", inputs: ["data-test-id"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] });
|
|
20200
20219
|
}
|
|
20201
20220
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdDialogConfirmationComponent, decorators: [{
|
|
20202
20221
|
type: Component,
|
|
20203
|
-
args: [{ selector: 'qd-dialog-confirmation', standalone: false, template: "<qd-dialog [attr.data-test-id]=\"testId\">\n @if (isLoading) {\n <div class=\"loading-overlay\">\n <qd-spinner></qd-spinner>\n </div>\n } @if (isInfoState) {\n <div class=\"headline\">{{ config.info.headline.i18n | translate }}</div>\n } @if (isPositiveState) {\n <div class=\"headline\">\n {{ (config.success
|
|
20222
|
+
args: [{ selector: 'qd-dialog-confirmation', standalone: false, template: "<qd-dialog [attr.data-test-id]=\"testId\">\n @if (isLoading) {\n <div class=\"loading-overlay\">\n <qd-spinner></qd-spinner>\n </div>\n } @if (isInfoState) {\n <div class=\"headline\">{{ config.info.headline.i18n | translate }}</div>\n } @if (isPositiveState) {\n <div class=\"headline\">\n {{ (config.success?.headline?.i18n | translate) || (config.info.headline.i18n | translate) }}\n </div>\n } @if (isCriticalState && config.error?.headline?.i18n) {\n <div class=\"headline\">\n {{ config.error?.headline?.i18n | translate }}\n </div>\n }\n\n <div class=\"info\">\n @if (isInfoState) {\n {{ config.info.info.i18n | translate }}\n } @if (isPositiveState) {\n <qd-icon class=\"success\" [icon]=\"'checkCircleSolid'\"></qd-icon>\n <span>{{ (config.success?.info?.i18n | translate) || (config.info.info.i18n | translate) }} </span>\n } @if (isCriticalState && config.error?.info?.i18n) {\n <qd-icon class=\"error\" [icon]=\"'timesCircleSolid'\"></qd-icon>\n <span>{{ config.error?.info?.i18n | translate }}</span>\n }\n </div>\n\n <div class=\"confirm-content\">\n @if (isInfoState) {\n <ng-content select=\"[qdDialogConfirmInfo]\"></ng-content>\n <ng-content select=\"[qdDialogConfirmationInfo]\"></ng-content>\n @if (useCheckbox) {\n <qd-checkboxes\n [attr.data-test-id]=\"testId + '-checkbox'\"\n [config]=\"checkboxConfig\"\n [(values)]=\"confirmChecked\"\n ></qd-checkboxes>\n } } @if (isPositiveState) {\n <ng-content select=\"[qdDialogConfirmSuccess]\"></ng-content>\n <ng-content select=\"[qdDialogConfirmationSuccess]\"></ng-content>\n } @if (isCriticalState) {\n <ng-content select=\"[qdDialogConfirmError]\"></ng-content>\n <ng-content select=\"[qdDialogConfirmationError]\"></ng-content>\n }\n\n <qd-notifications [context]=\"notificationContext\"></qd-notifications>\n </div>\n\n <qd-dialog-action>\n @if (isInfoState) {\n <button qdButton qdButtonGhost (click)=\"close()\" [disabled]=\"isLoading\">\n {{ config.buttons.cancel.i18n | translate }}\n </button>\n <button qdButton color=\"primary\" (click)=\"confirm()\" [disabled]=\"(useCheckbox && !isConfirmed) || isLoading\">\n {{ config.buttons.next.i18n | translate }}\n </button>\n } @if (isPositiveState) {\n <button qdButton color=\"primary\" (click)=\"submit()\">\n {{ (config.buttons.success?.i18n | translate) || (config.buttons.next.i18n | translate) }}\n </button>\n } @if (isCriticalState) {\n <button qdButton color=\"primary\" (click)=\"submit()\">\n {{ (config.buttons.error?.i18n | translate) || (config.buttons.next.i18n | translate) }}\n </button>\n }\n </qd-dialog-action>\n</qd-dialog>\n", styles: [":host .headline{color:#171717;font-size:1rem;font-weight:700;line-height:1.5rem;margin-bottom:.75rem}:host .info{color:#171717;font-size:1rem;font-weight:400;line-height:1.5rem;display:flex}:host .info ::ng-deep .qd-icon{width:.875rem;margin-right:.75rem;font-size:1.25rem;font-weight:300}:host .info ::ng-deep .qd-icon.success{color:#00813a}:host .info ::ng-deep .qd-icon.error{color:#c70023}:host .loading-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background-color:#0003}\n"] }]
|
|
20204
20223
|
}], propDecorators: { config: [{
|
|
20205
20224
|
type: Input,
|
|
20206
20225
|
args: [{ required: true }]
|
|
@@ -20326,6 +20345,7 @@ class QdDialogModule {
|
|
|
20326
20345
|
QdDialogComponent,
|
|
20327
20346
|
QdDialogConfirmationComponent,
|
|
20328
20347
|
QdDialogConfirmationErrorDirective,
|
|
20348
|
+
QdDialogConfirmationInfoDirective,
|
|
20329
20349
|
QdDialogConfirmationSuccessDirective,
|
|
20330
20350
|
QdDialogRecordStepperComponent,
|
|
20331
20351
|
QdPendingChangesGuardDirective] });
|
|
@@ -20388,6 +20408,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
20388
20408
|
QdDialogComponent,
|
|
20389
20409
|
QdDialogConfirmationComponent,
|
|
20390
20410
|
QdDialogConfirmationErrorDirective,
|
|
20411
|
+
QdDialogConfirmationInfoDirective,
|
|
20391
20412
|
QdDialogConfirmationSuccessDirective,
|
|
20392
20413
|
QdDialogRecordStepperComponent,
|
|
20393
20414
|
QdPendingChangesGuardDirective
|
|
@@ -23128,6 +23149,7 @@ const NAVIGATION_KEYS = new Set(['ArrowDown', 'ArrowUp', 'Home', 'End']);
|
|
|
23128
23149
|
class QdFilterItemSelectCategoryComponent {
|
|
23129
23150
|
filterService = inject(QdFilterService);
|
|
23130
23151
|
breakpointService = inject(QdBreakpointService);
|
|
23152
|
+
changeDetectorRef = inject(ChangeDetectorRef);
|
|
23131
23153
|
isMobile$ = this.breakpointService.isViewportBelow('md');
|
|
23132
23154
|
filterId;
|
|
23133
23155
|
categoryIndex;
|
|
@@ -23160,6 +23182,13 @@ class QdFilterItemSelectCategoryComponent {
|
|
|
23160
23182
|
get activeItemCount() {
|
|
23161
23183
|
return this.items?.filter(item => item.active).length ?? 0;
|
|
23162
23184
|
}
|
|
23185
|
+
isInitialFocusOption(itemIndex) {
|
|
23186
|
+
if (this.filter)
|
|
23187
|
+
return false;
|
|
23188
|
+
if (this.activeItemCount > 0)
|
|
23189
|
+
return !!this.items[itemIndex]?.active;
|
|
23190
|
+
return itemIndex === this.items.findIndex(item => !item.hidden);
|
|
23191
|
+
}
|
|
23163
23192
|
get selectedDropdownEntries() {
|
|
23164
23193
|
return this.toEntries(this.frozenSelectedKeys);
|
|
23165
23194
|
}
|
|
@@ -23210,6 +23239,7 @@ class QdFilterItemSelectCategoryComponent {
|
|
|
23210
23239
|
}
|
|
23211
23240
|
onActiveOptionChanged() {
|
|
23212
23241
|
this.updateListboxAriaState();
|
|
23242
|
+
this.changeDetectorRef.markForCheck();
|
|
23213
23243
|
if (!this.isRadioGroup)
|
|
23214
23244
|
return;
|
|
23215
23245
|
this.moveTabStopToActiveOption();
|
|
@@ -23446,7 +23476,7 @@ class QdFilterItemSelectCategoryComponent {
|
|
|
23446
23476
|
provide: QD_FILTER_LISTBOX_HOST,
|
|
23447
23477
|
useExisting: forwardRef(() => QdFilterItemSelectCategoryComponent)
|
|
23448
23478
|
}
|
|
23449
|
-
], viewQueries: [{ propertyName: "popoverDirective", first: true, predicate: QdPopoverOnClickDirective, descendants: true }, { propertyName: "triggerRef", first: true, predicate: ["triggerRef"], descendants: true }], ngImport: i0, template: "@if (showSelectButton$ | async) {\n<div\n #triggerRef\n [class]=\"buttonClassName\"\n tabindex=\"0\"\n role=\"button\"\n [attr.aria-haspopup]=\"type === 'multiSelect' ? 'listbox' : null\"\n [attr.aria-expanded]=\"open\"\n [attr.aria-label]=\"i18n | translate\"\n [attr.aria-controls]=\"triggerAriaControls\"\n [qdPopoverOnClick]=\"filterLayer\"\n [qdPopoverCloseStrategy]=\"'onOutsideClick'\"\n [qdPopoverStopPropagation]=\"true\"\n [qdPopoverEnableKeyControl]=\"true\"\n [qdPopoverRestoreFocus]=\"true\"\n [qdPopoverMaxHeight]=\"maxFlyoutHeight\"\n qdPopoverPlacement=\"bottom-start\"\n [qdPopoverOffsetY]=\"-1\"\n (opened)=\"onLayerOpened()\"\n (closed)=\"onLayerClosed()\"\n [attr.data-test-id]=\"testId + '-select-button'\"\n>\n @if (!open) {\n <qd-icon\n [icon]=\"'ctrlDown'\"\n [class]=\"'qd-filter__category-icon qd-filter__category-icon--closed'\"\n [attr.data-test-id]=\"testId + '-closed'\"\n ></qd-icon>\n } @if (open) {\n <qd-icon\n [icon]=\"'ctrlTop'\"\n [class]=\"'qd-filter__category-icon qd-filter__category-icon--open'\"\n [attr.data-test-id]=\"testId + '-opened'\"\n ></qd-icon>\n }\n\n <div class=\"qd-filter__category-button-caption\">\n <span>\n {{ i18n | translate }}\n </span>\n </div>\n\n @if ((isMobile$ | async) && type === 'multiSelect') { @if (activeItemCount > 0) {\n <qd-chip [close]=\"true\" (closeClickEmitter)=\"clearAll()\" [data-test-id]=\"testId + '-selected-chip-count'\">{{\n activeItemCount\n }}</qd-chip>\n } } @else {\n <ng-container *ngTemplateOutlet=\"SelectedChip\"></ng-container>\n }\n</div>\n}\n\n<ng-template #filterLayer>\n <div [class]=\"layerContentClassName\" (focusout)=\"onFlyoutFocusout($event)\" (keydown.escape)=\"onFlyoutEscape()\">\n @if (closeButton) {\n <qd-icon\n [class]=\"'qd-filter__category-layer-close'\"\n (click)=\"closeLayer()\"\n [icon]=\"'ctrlTop'\"\n [attr.data-test-id]=\"testId + '-layer-close'\"\n ></qd-icon>\n } @if (itemsLoading$ | async) {\n <ng-container [ngTemplateOutlet]=\"loadingState\"></ng-container>\n } @else { @switch (type) { @case ('multiSelect') { @if (filter) {\n <qd-filter-form-items\n [inputFilterValue]=\"filterCategoryValue$ | async\"\n (filterValueChange)=\"changeValue($event)\"\n [data-test-id]=\"testId\"\n ></qd-filter-form-items>\n }\n <ul\n class=\"qd-filter__category-layer-items qd-filter__category-listbox\"\n role=\"listbox\"\n aria-multiselectable=\"true\"\n [id]=\"listboxId\"\n tabindex=\"0\"\n [qdAutofocus]=\"!filter\"\n [attr.aria-label]=\"i18n | translate\"\n [attr.aria-activedescendant]=\"activeOptionId\"\n (keydown)=\"onListboxKeydown($event)\"\n (focus)=\"onListboxFocus()\"\n (blur)=\"onListboxBlur()\"\n >\n @for (entry of selectedDropdownEntries; track trackByItem($index, entry)) {\n <ng-container\n [ngTemplateOutlet]=\"multiSelectItem\"\n [ngTemplateOutletContext]=\"{ item: entry.item, itemIndex: entry.itemIndex }\"\n ></ng-container>\n } @if (showSelectedSeparator) {\n <div\n class=\"qd-filter__category-layer-separator\"\n aria-hidden=\"true\"\n [attr.data-test-id]=\"testId + '-selected-separator'\"\n ></div>\n } @for (entry of unselectedDropdownEntries; track trackByItem($index, entry)) {\n <ng-container\n [ngTemplateOutlet]=\"multiSelectItem\"\n [ngTemplateOutletContext]=\"{ item: entry.item, itemIndex: entry.itemIndex }\"\n ></ng-container>\n } @if (hasNoVisibleItems) {\n <ng-container [ngTemplateOutlet]=\"emptyState\"></ng-container>\n }\n </ul>\n } @case ('singleSelect') { @if (filter) {\n <qd-filter-form-items\n [inputFilterValue]=\"filterCategoryValue$ | async\"\n (filterValueChange)=\"changeValue($event)\"\n [data-test-id]=\"testId\"\n ></qd-filter-form-items>\n }\n <ul\n class=\"qd-filter__category-layer-items qd-filter__category-radiogroup\"\n role=\"radiogroup\"\n [id]=\"listboxId\"\n [attr.aria-label]=\"i18n | translate\"\n (keydown)=\"onListboxKeydown($event)\"\n >\n @for (item of items; track item.item; let itemIndex = $index) { @if (!item.hidden) {\n <qd-filter-item-single-select\n [categoryIndex]=\"categoryIndex\"\n [itemIndex]=\"itemIndex\"\n [qdAutofocus]=\"!filter && item.active\"\n [filterId]=\"filterId\"\n [data-test-id]=\"testId + '-item-' + itemIndex + '-' + item.item\"\n >\n </qd-filter-item-single-select>\n } }\n </ul>\n @if (hasNoVisibleItems) {\n <ng-container [ngTemplateOutlet]=\"emptyState\"></ng-container>\n } } } }\n </div>\n</ng-template>\n\n<ng-template #emptyState>\n <p class=\"qd-filter__category-layer-empty\" [attr.data-test-id]=\"testId + '-no-results'\">\n {{ \"i18n.qd.filter.noResults\" | translate }}\n </p>\n</ng-template>\n\n<ng-template #loadingState>\n <p class=\"qd-filter__category-layer-loading\" [attr.data-test-id]=\"testId + '-items-loading'\">\n {{ \"i18n.qd.filter.loading\" | translate }}\n </p>\n</ng-template>\n\n<ng-template #multiSelectItem let-item=\"item\" let-itemIndex=\"itemIndex\">\n @if (!item.hidden) {\n <qd-filter-item-multi-select\n [categoryIndex]=\"categoryIndex\"\n [itemIndex]=\"itemIndex\"\n [optionElementId]=\"optionIds[itemIndex]\"\n [filterId]=\"filterId\"\n [data-test-id]=\"testId + '-item-' + itemIndex + '-' + item.item\"\n ></qd-filter-item-multi-select>\n }\n</ng-template>\n\n<ng-template #SelectedChip>\n @for (item of items; track item; let itemIndex = $index) {\n <!-- TODO: Add tooltip-->\n @if (item.active) {\n <qd-chip\n [close]=\"true\"\n (closeClickEmitter)=\"close($event)\"\n [data]=\"itemIndex\"\n [data-test-id]=\"testId + '-selected-chip-' + item.item\"\n >{{ item.i18n | translate }}</qd-chip\n >\n } }\n</ng-template>\n", styles: ["::ng-deep .qd-filter__category-layer{position:relative;display:flex;overflow:hidden;min-width:16.25rem;max-width:56.25rem;height:100%;flex-direction:column;padding:0;border:.0625rem solid rgb(151,151,151);background:#fff;box-shadow:#d5d5d5 .125rem .25rem .4375rem}::ng-deep .qd-filter__category-layer .qd-filter-form-items__filter{flex-shrink:0;margin-bottom:0}::ng-deep .qd-filter__category-layer .qd-checkbox__label{display:flex;height:2.5rem}::ng-deep .qd-filter__category-layer .qd-checkbox__indicator,::ng-deep .qd-filter__category-layer .qd-radio-buttons__indicator{transform:translateY(-.0625rem)}::ng-deep .qd-filter__category-layer-items{flex:1;overflow-y:auto}::ng-deep .qd-filter__category-listbox,::ng-deep .qd-filter__category-radiogroup{padding:0;margin:0;list-style:none}::ng-deep .qd-filter__category-listbox:focus,::ng-deep .qd-filter__category-listbox:focus-visible,::ng-deep .qd-filter__category-radiogroup:focus,::ng-deep .qd-filter__category-radiogroup:focus-visible{outline:none}::ng-deep .qd-filter__item-single-select:focus,::ng-deep .qd-filter__item-single-select:focus-visible{outline:none}::ng-deep .qd-keyboard-active .qd-filter__item-single-select:focus .qd-radio-buttons__indicator:after,::ng-deep .qd-keyboard-active .qd-filter__category-option--active .qd-radio-buttons__indicator:after,::ng-deep .qd-keyboard-active .qd-filter__category-option--active .qd-checkbox__indicator:after{position:absolute;top:50%;left:50%;width:1.25rem;height:1.25rem;content:\"\";outline:.125rem solid rgb(0,102,153);outline-offset:0;transform:translate(-50%,-50%)}::ng-deep .qd-filter__category-layer-separator{height:.0625rem;flex-shrink:0;background:#d5d5d5}::ng-deep .qd-filter__category-layer-empty,::ng-deep .qd-filter__category-layer-loading{padding:0 .9375rem;margin:0;color:#757575;font-size:.875rem;line-height:2.5rem}::ng-deep .qd-filter__category-layer-container{position:relative}::ng-deep .qd-filter__category-layer-close{position:absolute;z-index:1;top:.5rem;right:1rem;color:#757575;cursor:pointer}::ng-deep .qd-filter__category-layer-close:before{position:absolute;content:\"\";inset:-.5rem}::ng-deep .qd-filter__category-layer-close:hover,::ng-deep .qd-filter__category-layer-close:focus{color:#171717}\n"], dependencies: [{ kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: QdChipComponent, selector: "qd-chip", inputs: ["state", "close", "data", "data-test-id"], outputs: ["closeClickEmitter"] }, { kind: "component", type: QdFilterFormItemsComponent, selector: "qd-filter-form-items", inputs: ["inputFilterValue", "data-test-id"], outputs: ["filterValueChange"] }, { kind: "component", type: QdIconComponent, selector: "qd-icon", inputs: ["icon", "status"] }, { kind: "directive", type: QdPopoverOnClickDirective, selector: "[qdPopoverOnClick]", inputs: ["qdPopoverOnClick", "qdPopoverPlacement", "qdPopoverOffsetX", "qdPopoverOffsetY", "qdPopoverCloseStrategy", "qdPopoverDisabled", "qdPopoverStopPropagation", "qdPopoverBackgroundColor", "qdPopoverMaxHeight", "qdPopoverMinWidth", "qdPopoverMaxWidth", "qdPopoverAutoSize", "qdPopoverEnableKeyControl", "qdPopoverRestoreFocus", "qdPopoverFlipIntoViewport"], outputs: ["opened", "closed"], exportAs: ["qdPopoverOnClick"] }, { kind: "directive", type: QdAutofocusDirective, selector: "[qdAutofocus]", inputs: ["qdAutofocus"] }, { kind: "component", type: QdFilterItemMultiSelectComponent, selector: "qd-filter-item-multi-select", inputs: ["filterId", "categoryIndex", "itemIndex", "optionElementId", "data-test-id"] }, { kind: "component", type: QdFilterItemSingleSelectComponent, selector: "qd-filter-item-single-select", inputs: ["filterId", "categoryIndex", "itemIndex", "optionElementId", "data-test-id"], outputs: ["closeEventEmitter"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
23479
|
+
], viewQueries: [{ propertyName: "popoverDirective", first: true, predicate: QdPopoverOnClickDirective, descendants: true }, { propertyName: "triggerRef", first: true, predicate: ["triggerRef"], descendants: true }], ngImport: i0, template: "@if (showSelectButton$ | async) {\n<div\n #triggerRef\n [class]=\"buttonClassName\"\n tabindex=\"0\"\n role=\"button\"\n [attr.aria-haspopup]=\"type === 'multiSelect' ? 'listbox' : null\"\n [attr.aria-expanded]=\"open\"\n [attr.aria-label]=\"i18n | translate\"\n [attr.aria-controls]=\"triggerAriaControls\"\n [qdPopoverOnClick]=\"filterLayer\"\n [qdPopoverCloseStrategy]=\"'onOutsideClick'\"\n [qdPopoverStopPropagation]=\"true\"\n [qdPopoverEnableKeyControl]=\"true\"\n [qdPopoverRestoreFocus]=\"true\"\n [qdPopoverMaxHeight]=\"maxFlyoutHeight\"\n qdPopoverPlacement=\"bottom-start\"\n [qdPopoverOffsetY]=\"-1\"\n (opened)=\"onLayerOpened()\"\n (closed)=\"onLayerClosed()\"\n [attr.data-test-id]=\"testId + '-select-button'\"\n>\n @if (!open) {\n <qd-icon\n [icon]=\"'ctrlDown'\"\n [class]=\"'qd-filter__category-icon qd-filter__category-icon--closed'\"\n [attr.data-test-id]=\"testId + '-closed'\"\n ></qd-icon>\n } @if (open) {\n <qd-icon\n [icon]=\"'ctrlTop'\"\n [class]=\"'qd-filter__category-icon qd-filter__category-icon--open'\"\n [attr.data-test-id]=\"testId + '-opened'\"\n ></qd-icon>\n }\n\n <div class=\"qd-filter__category-button-caption\">\n <span>\n {{ i18n | translate }}\n </span>\n </div>\n\n @if ((isMobile$ | async) && type === 'multiSelect') { @if (activeItemCount > 0) {\n <qd-chip [close]=\"true\" (closeClickEmitter)=\"clearAll()\" [data-test-id]=\"testId + '-selected-chip-count'\">{{\n activeItemCount\n }}</qd-chip>\n } } @else {\n <ng-container *ngTemplateOutlet=\"SelectedChip\"></ng-container>\n }\n</div>\n}\n\n<ng-template #filterLayer>\n <div [class]=\"layerContentClassName\" (focusout)=\"onFlyoutFocusout($event)\" (keydown.escape)=\"onFlyoutEscape()\">\n @if (closeButton) {\n <qd-icon\n [class]=\"'qd-filter__category-layer-close'\"\n (click)=\"closeLayer()\"\n [icon]=\"'ctrlTop'\"\n [attr.data-test-id]=\"testId + '-layer-close'\"\n ></qd-icon>\n } @if (itemsLoading$ | async) {\n <ng-container [ngTemplateOutlet]=\"loadingState\"></ng-container>\n } @else { @switch (type) { @case ('multiSelect') { @if (filter) {\n <qd-filter-form-items\n [inputFilterValue]=\"filterCategoryValue$ | async\"\n (filterValueChange)=\"changeValue($event)\"\n [data-test-id]=\"testId\"\n ></qd-filter-form-items>\n }\n <ul\n class=\"qd-filter__category-layer-items qd-filter__category-listbox\"\n role=\"listbox\"\n aria-multiselectable=\"true\"\n [id]=\"listboxId\"\n tabindex=\"0\"\n [qdAutofocus]=\"!filter\"\n [attr.aria-label]=\"i18n | translate\"\n [attr.aria-activedescendant]=\"activeOptionId\"\n (keydown)=\"onListboxKeydown($event)\"\n (focus)=\"onListboxFocus()\"\n (blur)=\"onListboxBlur()\"\n >\n @for (entry of selectedDropdownEntries; track trackByItem($index, entry)) {\n <ng-container\n [ngTemplateOutlet]=\"multiSelectItem\"\n [ngTemplateOutletContext]=\"{ item: entry.item, itemIndex: entry.itemIndex }\"\n ></ng-container>\n } @if (showSelectedSeparator) {\n <div\n class=\"qd-filter__category-layer-separator\"\n aria-hidden=\"true\"\n [attr.data-test-id]=\"testId + '-selected-separator'\"\n ></div>\n } @for (entry of unselectedDropdownEntries; track trackByItem($index, entry)) {\n <ng-container\n [ngTemplateOutlet]=\"multiSelectItem\"\n [ngTemplateOutletContext]=\"{ item: entry.item, itemIndex: entry.itemIndex }\"\n ></ng-container>\n } @if (hasNoVisibleItems) {\n <ng-container [ngTemplateOutlet]=\"emptyState\"></ng-container>\n }\n </ul>\n } @case ('singleSelect') { @if (filter) {\n <qd-filter-form-items\n [inputFilterValue]=\"filterCategoryValue$ | async\"\n (filterValueChange)=\"changeValue($event)\"\n [data-test-id]=\"testId\"\n ></qd-filter-form-items>\n }\n <ul\n class=\"qd-filter__category-layer-items qd-filter__category-radiogroup\"\n role=\"radiogroup\"\n [id]=\"listboxId\"\n [attr.aria-label]=\"i18n | translate\"\n (keydown)=\"onListboxKeydown($event)\"\n >\n @for (item of items; track item.item; let itemIndex = $index) { @if (!item.hidden) {\n <qd-filter-item-single-select\n [categoryIndex]=\"categoryIndex\"\n [itemIndex]=\"itemIndex\"\n [qdAutofocus]=\"isInitialFocusOption(itemIndex)\"\n [filterId]=\"filterId\"\n [data-test-id]=\"testId + '-item-' + itemIndex + '-' + item.item\"\n >\n </qd-filter-item-single-select>\n } }\n </ul>\n @if (hasNoVisibleItems) {\n <ng-container [ngTemplateOutlet]=\"emptyState\"></ng-container>\n } } } }\n </div>\n</ng-template>\n\n<ng-template #emptyState>\n <p class=\"qd-filter__category-layer-empty\" [attr.data-test-id]=\"testId + '-no-results'\">\n {{ \"i18n.qd.filter.noResults\" | translate }}\n </p>\n</ng-template>\n\n<ng-template #loadingState>\n <p class=\"qd-filter__category-layer-loading\" [attr.data-test-id]=\"testId + '-items-loading'\">\n {{ \"i18n.qd.filter.loading\" | translate }}\n </p>\n</ng-template>\n\n<ng-template #multiSelectItem let-item=\"item\" let-itemIndex=\"itemIndex\">\n @if (!item.hidden) {\n <qd-filter-item-multi-select\n [categoryIndex]=\"categoryIndex\"\n [itemIndex]=\"itemIndex\"\n [optionElementId]=\"optionIds[itemIndex]\"\n [filterId]=\"filterId\"\n [data-test-id]=\"testId + '-item-' + itemIndex + '-' + item.item\"\n ></qd-filter-item-multi-select>\n }\n</ng-template>\n\n<ng-template #SelectedChip>\n @for (item of items; track item; let itemIndex = $index) {\n <!-- TODO: Add tooltip-->\n @if (item.active) {\n <qd-chip\n [close]=\"true\"\n (closeClickEmitter)=\"close($event)\"\n [data]=\"itemIndex\"\n [data-test-id]=\"testId + '-selected-chip-' + item.item\"\n >{{ item.i18n | translate }}</qd-chip\n >\n } }\n</ng-template>\n", styles: ["::ng-deep .qd-filter__category-layer{position:relative;display:flex;overflow:hidden;min-width:16.25rem;max-width:56.25rem;height:100%;flex-direction:column;padding:0;border:.0625rem solid rgb(151,151,151);background:#fff;box-shadow:#d5d5d5 .125rem .25rem .4375rem}::ng-deep .qd-filter__category-layer .qd-filter-form-items__filter{flex-shrink:0;margin-bottom:0}::ng-deep .qd-filter__category-layer .qd-checkbox__label{display:flex;height:2.5rem}::ng-deep .qd-filter__category-layer .qd-checkbox__indicator,::ng-deep .qd-filter__category-layer .qd-radio-buttons__indicator{transform:translateY(-.0625rem)}::ng-deep .qd-filter__category-layer-items{flex:1;overflow-y:auto}::ng-deep .qd-filter__category-listbox,::ng-deep .qd-filter__category-radiogroup{padding:0;margin:0;list-style:none}::ng-deep .qd-filter__category-listbox:focus,::ng-deep .qd-filter__category-listbox:focus-visible,::ng-deep .qd-filter__category-radiogroup:focus,::ng-deep .qd-filter__category-radiogroup:focus-visible{outline:none}::ng-deep .qd-filter__item-single-select:focus,::ng-deep .qd-filter__item-single-select:focus-visible{outline:none}::ng-deep .qd-keyboard-active .qd-filter__item-single-select:focus .qd-radio-buttons__indicator:after,::ng-deep .qd-keyboard-active .qd-filter__category-option--active .qd-radio-buttons__indicator:after,::ng-deep .qd-keyboard-active .qd-filter__category-option--active .qd-checkbox__indicator:after{position:absolute;top:50%;left:50%;width:1.25rem;height:1.25rem;content:\"\";outline:.125rem solid rgb(0,102,153);outline-offset:0;transform:translate(-50%,-50%)}::ng-deep .qd-filter__category-layer-separator{height:.0625rem;flex-shrink:0;background:#d5d5d5}::ng-deep .qd-filter__category-layer-empty,::ng-deep .qd-filter__category-layer-loading{padding:0 .9375rem;margin:0;color:#757575;font-size:.875rem;line-height:2.5rem}::ng-deep .qd-filter__category-layer-container{position:relative}::ng-deep .qd-filter__category-layer-close{position:absolute;z-index:1;top:.5rem;right:1rem;color:#757575;cursor:pointer}::ng-deep .qd-filter__category-layer-close:before{position:absolute;content:\"\";inset:-.5rem}::ng-deep .qd-filter__category-layer-close:hover,::ng-deep .qd-filter__category-layer-close:focus{color:#171717}\n"], dependencies: [{ kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: QdChipComponent, selector: "qd-chip", inputs: ["state", "close", "data", "data-test-id"], outputs: ["closeClickEmitter"] }, { kind: "component", type: QdFilterFormItemsComponent, selector: "qd-filter-form-items", inputs: ["inputFilterValue", "data-test-id"], outputs: ["filterValueChange"] }, { kind: "component", type: QdIconComponent, selector: "qd-icon", inputs: ["icon", "status"] }, { kind: "directive", type: QdPopoverOnClickDirective, selector: "[qdPopoverOnClick]", inputs: ["qdPopoverOnClick", "qdPopoverPlacement", "qdPopoverOffsetX", "qdPopoverOffsetY", "qdPopoverCloseStrategy", "qdPopoverDisabled", "qdPopoverStopPropagation", "qdPopoverBackgroundColor", "qdPopoverMaxHeight", "qdPopoverMinWidth", "qdPopoverMaxWidth", "qdPopoverAutoSize", "qdPopoverEnableKeyControl", "qdPopoverRestoreFocus", "qdPopoverFlipIntoViewport"], outputs: ["opened", "closed"], exportAs: ["qdPopoverOnClick"] }, { kind: "directive", type: QdAutofocusDirective, selector: "[qdAutofocus]", inputs: ["qdAutofocus"] }, { kind: "component", type: QdFilterItemMultiSelectComponent, selector: "qd-filter-item-multi-select", inputs: ["filterId", "categoryIndex", "itemIndex", "optionElementId", "data-test-id"] }, { kind: "component", type: QdFilterItemSingleSelectComponent, selector: "qd-filter-item-single-select", inputs: ["filterId", "categoryIndex", "itemIndex", "optionElementId", "data-test-id"], outputs: ["closeEventEmitter"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
23450
23480
|
}
|
|
23451
23481
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdFilterItemSelectCategoryComponent, decorators: [{
|
|
23452
23482
|
type: Component,
|
|
@@ -23455,7 +23485,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
23455
23485
|
provide: QD_FILTER_LISTBOX_HOST,
|
|
23456
23486
|
useExisting: forwardRef(() => QdFilterItemSelectCategoryComponent)
|
|
23457
23487
|
}
|
|
23458
|
-
], standalone: false, template: "@if (showSelectButton$ | async) {\n<div\n #triggerRef\n [class]=\"buttonClassName\"\n tabindex=\"0\"\n role=\"button\"\n [attr.aria-haspopup]=\"type === 'multiSelect' ? 'listbox' : null\"\n [attr.aria-expanded]=\"open\"\n [attr.aria-label]=\"i18n | translate\"\n [attr.aria-controls]=\"triggerAriaControls\"\n [qdPopoverOnClick]=\"filterLayer\"\n [qdPopoverCloseStrategy]=\"'onOutsideClick'\"\n [qdPopoverStopPropagation]=\"true\"\n [qdPopoverEnableKeyControl]=\"true\"\n [qdPopoverRestoreFocus]=\"true\"\n [qdPopoverMaxHeight]=\"maxFlyoutHeight\"\n qdPopoverPlacement=\"bottom-start\"\n [qdPopoverOffsetY]=\"-1\"\n (opened)=\"onLayerOpened()\"\n (closed)=\"onLayerClosed()\"\n [attr.data-test-id]=\"testId + '-select-button'\"\n>\n @if (!open) {\n <qd-icon\n [icon]=\"'ctrlDown'\"\n [class]=\"'qd-filter__category-icon qd-filter__category-icon--closed'\"\n [attr.data-test-id]=\"testId + '-closed'\"\n ></qd-icon>\n } @if (open) {\n <qd-icon\n [icon]=\"'ctrlTop'\"\n [class]=\"'qd-filter__category-icon qd-filter__category-icon--open'\"\n [attr.data-test-id]=\"testId + '-opened'\"\n ></qd-icon>\n }\n\n <div class=\"qd-filter__category-button-caption\">\n <span>\n {{ i18n | translate }}\n </span>\n </div>\n\n @if ((isMobile$ | async) && type === 'multiSelect') { @if (activeItemCount > 0) {\n <qd-chip [close]=\"true\" (closeClickEmitter)=\"clearAll()\" [data-test-id]=\"testId + '-selected-chip-count'\">{{\n activeItemCount\n }}</qd-chip>\n } } @else {\n <ng-container *ngTemplateOutlet=\"SelectedChip\"></ng-container>\n }\n</div>\n}\n\n<ng-template #filterLayer>\n <div [class]=\"layerContentClassName\" (focusout)=\"onFlyoutFocusout($event)\" (keydown.escape)=\"onFlyoutEscape()\">\n @if (closeButton) {\n <qd-icon\n [class]=\"'qd-filter__category-layer-close'\"\n (click)=\"closeLayer()\"\n [icon]=\"'ctrlTop'\"\n [attr.data-test-id]=\"testId + '-layer-close'\"\n ></qd-icon>\n } @if (itemsLoading$ | async) {\n <ng-container [ngTemplateOutlet]=\"loadingState\"></ng-container>\n } @else { @switch (type) { @case ('multiSelect') { @if (filter) {\n <qd-filter-form-items\n [inputFilterValue]=\"filterCategoryValue$ | async\"\n (filterValueChange)=\"changeValue($event)\"\n [data-test-id]=\"testId\"\n ></qd-filter-form-items>\n }\n <ul\n class=\"qd-filter__category-layer-items qd-filter__category-listbox\"\n role=\"listbox\"\n aria-multiselectable=\"true\"\n [id]=\"listboxId\"\n tabindex=\"0\"\n [qdAutofocus]=\"!filter\"\n [attr.aria-label]=\"i18n | translate\"\n [attr.aria-activedescendant]=\"activeOptionId\"\n (keydown)=\"onListboxKeydown($event)\"\n (focus)=\"onListboxFocus()\"\n (blur)=\"onListboxBlur()\"\n >\n @for (entry of selectedDropdownEntries; track trackByItem($index, entry)) {\n <ng-container\n [ngTemplateOutlet]=\"multiSelectItem\"\n [ngTemplateOutletContext]=\"{ item: entry.item, itemIndex: entry.itemIndex }\"\n ></ng-container>\n } @if (showSelectedSeparator) {\n <div\n class=\"qd-filter__category-layer-separator\"\n aria-hidden=\"true\"\n [attr.data-test-id]=\"testId + '-selected-separator'\"\n ></div>\n } @for (entry of unselectedDropdownEntries; track trackByItem($index, entry)) {\n <ng-container\n [ngTemplateOutlet]=\"multiSelectItem\"\n [ngTemplateOutletContext]=\"{ item: entry.item, itemIndex: entry.itemIndex }\"\n ></ng-container>\n } @if (hasNoVisibleItems) {\n <ng-container [ngTemplateOutlet]=\"emptyState\"></ng-container>\n }\n </ul>\n } @case ('singleSelect') { @if (filter) {\n <qd-filter-form-items\n [inputFilterValue]=\"filterCategoryValue$ | async\"\n (filterValueChange)=\"changeValue($event)\"\n [data-test-id]=\"testId\"\n ></qd-filter-form-items>\n }\n <ul\n class=\"qd-filter__category-layer-items qd-filter__category-radiogroup\"\n role=\"radiogroup\"\n [id]=\"listboxId\"\n [attr.aria-label]=\"i18n | translate\"\n (keydown)=\"onListboxKeydown($event)\"\n >\n @for (item of items; track item.item; let itemIndex = $index) { @if (!item.hidden) {\n <qd-filter-item-single-select\n [categoryIndex]=\"categoryIndex\"\n [itemIndex]=\"itemIndex\"\n [qdAutofocus]=\"
|
|
23488
|
+
], standalone: false, template: "@if (showSelectButton$ | async) {\n<div\n #triggerRef\n [class]=\"buttonClassName\"\n tabindex=\"0\"\n role=\"button\"\n [attr.aria-haspopup]=\"type === 'multiSelect' ? 'listbox' : null\"\n [attr.aria-expanded]=\"open\"\n [attr.aria-label]=\"i18n | translate\"\n [attr.aria-controls]=\"triggerAriaControls\"\n [qdPopoverOnClick]=\"filterLayer\"\n [qdPopoverCloseStrategy]=\"'onOutsideClick'\"\n [qdPopoverStopPropagation]=\"true\"\n [qdPopoverEnableKeyControl]=\"true\"\n [qdPopoverRestoreFocus]=\"true\"\n [qdPopoverMaxHeight]=\"maxFlyoutHeight\"\n qdPopoverPlacement=\"bottom-start\"\n [qdPopoverOffsetY]=\"-1\"\n (opened)=\"onLayerOpened()\"\n (closed)=\"onLayerClosed()\"\n [attr.data-test-id]=\"testId + '-select-button'\"\n>\n @if (!open) {\n <qd-icon\n [icon]=\"'ctrlDown'\"\n [class]=\"'qd-filter__category-icon qd-filter__category-icon--closed'\"\n [attr.data-test-id]=\"testId + '-closed'\"\n ></qd-icon>\n } @if (open) {\n <qd-icon\n [icon]=\"'ctrlTop'\"\n [class]=\"'qd-filter__category-icon qd-filter__category-icon--open'\"\n [attr.data-test-id]=\"testId + '-opened'\"\n ></qd-icon>\n }\n\n <div class=\"qd-filter__category-button-caption\">\n <span>\n {{ i18n | translate }}\n </span>\n </div>\n\n @if ((isMobile$ | async) && type === 'multiSelect') { @if (activeItemCount > 0) {\n <qd-chip [close]=\"true\" (closeClickEmitter)=\"clearAll()\" [data-test-id]=\"testId + '-selected-chip-count'\">{{\n activeItemCount\n }}</qd-chip>\n } } @else {\n <ng-container *ngTemplateOutlet=\"SelectedChip\"></ng-container>\n }\n</div>\n}\n\n<ng-template #filterLayer>\n <div [class]=\"layerContentClassName\" (focusout)=\"onFlyoutFocusout($event)\" (keydown.escape)=\"onFlyoutEscape()\">\n @if (closeButton) {\n <qd-icon\n [class]=\"'qd-filter__category-layer-close'\"\n (click)=\"closeLayer()\"\n [icon]=\"'ctrlTop'\"\n [attr.data-test-id]=\"testId + '-layer-close'\"\n ></qd-icon>\n } @if (itemsLoading$ | async) {\n <ng-container [ngTemplateOutlet]=\"loadingState\"></ng-container>\n } @else { @switch (type) { @case ('multiSelect') { @if (filter) {\n <qd-filter-form-items\n [inputFilterValue]=\"filterCategoryValue$ | async\"\n (filterValueChange)=\"changeValue($event)\"\n [data-test-id]=\"testId\"\n ></qd-filter-form-items>\n }\n <ul\n class=\"qd-filter__category-layer-items qd-filter__category-listbox\"\n role=\"listbox\"\n aria-multiselectable=\"true\"\n [id]=\"listboxId\"\n tabindex=\"0\"\n [qdAutofocus]=\"!filter\"\n [attr.aria-label]=\"i18n | translate\"\n [attr.aria-activedescendant]=\"activeOptionId\"\n (keydown)=\"onListboxKeydown($event)\"\n (focus)=\"onListboxFocus()\"\n (blur)=\"onListboxBlur()\"\n >\n @for (entry of selectedDropdownEntries; track trackByItem($index, entry)) {\n <ng-container\n [ngTemplateOutlet]=\"multiSelectItem\"\n [ngTemplateOutletContext]=\"{ item: entry.item, itemIndex: entry.itemIndex }\"\n ></ng-container>\n } @if (showSelectedSeparator) {\n <div\n class=\"qd-filter__category-layer-separator\"\n aria-hidden=\"true\"\n [attr.data-test-id]=\"testId + '-selected-separator'\"\n ></div>\n } @for (entry of unselectedDropdownEntries; track trackByItem($index, entry)) {\n <ng-container\n [ngTemplateOutlet]=\"multiSelectItem\"\n [ngTemplateOutletContext]=\"{ item: entry.item, itemIndex: entry.itemIndex }\"\n ></ng-container>\n } @if (hasNoVisibleItems) {\n <ng-container [ngTemplateOutlet]=\"emptyState\"></ng-container>\n }\n </ul>\n } @case ('singleSelect') { @if (filter) {\n <qd-filter-form-items\n [inputFilterValue]=\"filterCategoryValue$ | async\"\n (filterValueChange)=\"changeValue($event)\"\n [data-test-id]=\"testId\"\n ></qd-filter-form-items>\n }\n <ul\n class=\"qd-filter__category-layer-items qd-filter__category-radiogroup\"\n role=\"radiogroup\"\n [id]=\"listboxId\"\n [attr.aria-label]=\"i18n | translate\"\n (keydown)=\"onListboxKeydown($event)\"\n >\n @for (item of items; track item.item; let itemIndex = $index) { @if (!item.hidden) {\n <qd-filter-item-single-select\n [categoryIndex]=\"categoryIndex\"\n [itemIndex]=\"itemIndex\"\n [qdAutofocus]=\"isInitialFocusOption(itemIndex)\"\n [filterId]=\"filterId\"\n [data-test-id]=\"testId + '-item-' + itemIndex + '-' + item.item\"\n >\n </qd-filter-item-single-select>\n } }\n </ul>\n @if (hasNoVisibleItems) {\n <ng-container [ngTemplateOutlet]=\"emptyState\"></ng-container>\n } } } }\n </div>\n</ng-template>\n\n<ng-template #emptyState>\n <p class=\"qd-filter__category-layer-empty\" [attr.data-test-id]=\"testId + '-no-results'\">\n {{ \"i18n.qd.filter.noResults\" | translate }}\n </p>\n</ng-template>\n\n<ng-template #loadingState>\n <p class=\"qd-filter__category-layer-loading\" [attr.data-test-id]=\"testId + '-items-loading'\">\n {{ \"i18n.qd.filter.loading\" | translate }}\n </p>\n</ng-template>\n\n<ng-template #multiSelectItem let-item=\"item\" let-itemIndex=\"itemIndex\">\n @if (!item.hidden) {\n <qd-filter-item-multi-select\n [categoryIndex]=\"categoryIndex\"\n [itemIndex]=\"itemIndex\"\n [optionElementId]=\"optionIds[itemIndex]\"\n [filterId]=\"filterId\"\n [data-test-id]=\"testId + '-item-' + itemIndex + '-' + item.item\"\n ></qd-filter-item-multi-select>\n }\n</ng-template>\n\n<ng-template #SelectedChip>\n @for (item of items; track item; let itemIndex = $index) {\n <!-- TODO: Add tooltip-->\n @if (item.active) {\n <qd-chip\n [close]=\"true\"\n (closeClickEmitter)=\"close($event)\"\n [data]=\"itemIndex\"\n [data-test-id]=\"testId + '-selected-chip-' + item.item\"\n >{{ item.i18n | translate }}</qd-chip\n >\n } }\n</ng-template>\n", styles: ["::ng-deep .qd-filter__category-layer{position:relative;display:flex;overflow:hidden;min-width:16.25rem;max-width:56.25rem;height:100%;flex-direction:column;padding:0;border:.0625rem solid rgb(151,151,151);background:#fff;box-shadow:#d5d5d5 .125rem .25rem .4375rem}::ng-deep .qd-filter__category-layer .qd-filter-form-items__filter{flex-shrink:0;margin-bottom:0}::ng-deep .qd-filter__category-layer .qd-checkbox__label{display:flex;height:2.5rem}::ng-deep .qd-filter__category-layer .qd-checkbox__indicator,::ng-deep .qd-filter__category-layer .qd-radio-buttons__indicator{transform:translateY(-.0625rem)}::ng-deep .qd-filter__category-layer-items{flex:1;overflow-y:auto}::ng-deep .qd-filter__category-listbox,::ng-deep .qd-filter__category-radiogroup{padding:0;margin:0;list-style:none}::ng-deep .qd-filter__category-listbox:focus,::ng-deep .qd-filter__category-listbox:focus-visible,::ng-deep .qd-filter__category-radiogroup:focus,::ng-deep .qd-filter__category-radiogroup:focus-visible{outline:none}::ng-deep .qd-filter__item-single-select:focus,::ng-deep .qd-filter__item-single-select:focus-visible{outline:none}::ng-deep .qd-keyboard-active .qd-filter__item-single-select:focus .qd-radio-buttons__indicator:after,::ng-deep .qd-keyboard-active .qd-filter__category-option--active .qd-radio-buttons__indicator:after,::ng-deep .qd-keyboard-active .qd-filter__category-option--active .qd-checkbox__indicator:after{position:absolute;top:50%;left:50%;width:1.25rem;height:1.25rem;content:\"\";outline:.125rem solid rgb(0,102,153);outline-offset:0;transform:translate(-50%,-50%)}::ng-deep .qd-filter__category-layer-separator{height:.0625rem;flex-shrink:0;background:#d5d5d5}::ng-deep .qd-filter__category-layer-empty,::ng-deep .qd-filter__category-layer-loading{padding:0 .9375rem;margin:0;color:#757575;font-size:.875rem;line-height:2.5rem}::ng-deep .qd-filter__category-layer-container{position:relative}::ng-deep .qd-filter__category-layer-close{position:absolute;z-index:1;top:.5rem;right:1rem;color:#757575;cursor:pointer}::ng-deep .qd-filter__category-layer-close:before{position:absolute;content:\"\";inset:-.5rem}::ng-deep .qd-filter__category-layer-close:hover,::ng-deep .qd-filter__category-layer-close:focus{color:#171717}\n"] }]
|
|
23459
23489
|
}], propDecorators: { filterId: [{
|
|
23460
23490
|
type: Input
|
|
23461
23491
|
}], categoryIndex: [{
|
|
@@ -29270,7 +29300,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
29270
29300
|
* **Context**
|
|
29271
29301
|
*
|
|
29272
29302
|
* To configure the context you can inject the QdContextService at any time and initialize it. The context then will automatically be shown depending on the current page types.
|
|
29273
|
-
* On pages of type overview and custom, the context is also changeable for the user. If you don't want the contexts to be shown on any page, use the `
|
|
29303
|
+
* On pages of type overview and custom, the context is also changeable for the user. If you don't want the contexts to be shown on any page, use the `hideContexts` property
|
|
29274
29304
|
* in the page's configuration to fully hide the context on any page.
|
|
29275
29305
|
*
|
|
29276
29306
|
* **Initialize the context**
|
|
@@ -29977,11 +30007,11 @@ class QdSectionToolbarComponent {
|
|
|
29977
30007
|
this.isCollapsed = !this.isCollapsed;
|
|
29978
30008
|
}
|
|
29979
30009
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdSectionToolbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
29980
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdSectionToolbarComponent, isStandalone: false, selector: "qd-section-toolbar", inputs: { config: "config" }, viewQueries: [{ propertyName: "toolbarComponents", predicate: ["filter, search"], descendants: true }], ngImport: i0, template: "<div [ngClass]=\"{ toolbarHeader: true, collapsible: config.collapse?.isEnabled }\" (click)=\"toggleCollapse()\">\n @if (config.collapse?.isEnabled) {\n <qd-icon class=\"collapseIcon\" [icon]=\"isCollapsed ? 'ctrlRight' : 'ctrlDown'\"> </qd-icon>\n } @if (config.title) {\n <span class=\"toolbarTitle\" data-test-id=\"section-title\">{{
|
|
30010
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdSectionToolbarComponent, isStandalone: false, selector: "qd-section-toolbar", inputs: { config: "config" }, viewQueries: [{ propertyName: "toolbarComponents", predicate: ["filter, search"], descendants: true }], ngImport: i0, template: "<div [ngClass]=\"{ toolbarHeader: true, collapsible: config.collapse?.isEnabled }\" (click)=\"toggleCollapse()\">\n @if (config.collapse?.isEnabled) {\n <qd-icon class=\"collapseIcon\" [icon]=\"isCollapsed ? 'ctrlRight' : 'ctrlDown'\"> </qd-icon>\n } @if (config.title?.i18n; as titleKey) {\n <span class=\"toolbarTitle\" data-test-id=\"section-title\">{{ titleKey | translate }}</span>\n } @if (isTooltipVisible) {\n <qd-icon class=\"additionalInfo\" icon=\"circleInfo\" qdTooltipOnClick [qdTooltipContent]=\"tooltipContent\"></qd-icon>\n }\n</div>\n\n@if (!isCollapsed) {\n<div class=\"toolbarRight\">\n <qd-search #search [configData]=\"searchConfigData\"></qd-search>\n @if (isManualRefreshEnabled$ | async) {\n <qd-section-toolbar-manual-refresh></qd-section-toolbar-manual-refresh>\n }\n <qd-section-toolbar-action qdViewportAdaptive class=\"toolbarAction\" [config]=\"config\"></qd-section-toolbar-action>\n</div>\n<qd-filter class=\"toolbarFilter\" #filter [filterData]=\"filterData\"></qd-filter>\n}\n", styles: [":host{position:relative;display:flex;flex-wrap:wrap;margin-bottom:.625rem;column-gap:.75rem}@media(max-width:959.98px){:host{column-gap:0}}:host .toolbarHeader{color:#333;font-size:1rem;font-weight:700;line-height:1.5rem;margin-bottom:.625rem}@media(max-width:599.98px){:host .toolbarHeader{margin-bottom:.3125rem}}:host .collapsible{cursor:pointer}:host .collapsible .toolbarTitle{margin-left:1.5rem}:host .collapseIcon{position:absolute;top:-.09375rem;font-size:1.375rem;font-weight:500}:host .additionalInfo{position:absolute;margin-left:.25rem;color:#069;cursor:pointer;font-size:1rem;font-weight:500}:host .additionalInfo:hover,:host .additionalInfo:focus,:host .additionalInfo:active{color:#14516f}:host .toolbarRight{display:inline-flex;margin-bottom:.625rem;margin-left:auto}@media(max-width:959.98px){:host .toolbarRight{display:flex;width:100%;flex-basis:100%;margin-left:auto}:host .toolbarRight qd-search{min-width:0;flex-basis:0;flex-grow:1;flex-shrink:1}:host .toolbarRight qd-section-toolbar-action{flex-basis:auto;flex-grow:0;flex-shrink:0}:host .toolbarRight qd-search.hidden+qd-section-toolbar-action,:host .toolbarRight qd-search.hidden+qd-section-toolbar-manual-refresh{margin-left:0}}:host .toolbarAction{display:flex;align-items:center}@media(max-width:959.98px){:host .toolbarAction{gap:.75rem}}:host .toolbarFilter{flex-basis:100%}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: QdIconComponent, selector: "qd-icon", inputs: ["icon", "status"] }, { kind: "component", type: QdFilterComponent, selector: "qd-filter", inputs: ["filterData", "data-test-id"], outputs: ["queryStringOutput", "postBodyOutput", "valueChange"] }, { kind: "component", type: QdSearchComponent, selector: "qd-search", inputs: ["configData"] }, { kind: "directive", type: QdViewportAdaptiveDirective, selector: "[qdViewportAdaptive]" }, { kind: "directive", type: QdTooltipOnClickDirective, selector: "[qdTooltipOnClick]", inputs: ["qdTooltipContent"] }, { kind: "component", type: QdSectionToolbarActionComponent, selector: "qd-section-toolbar-action", inputs: ["config"] }, { kind: "component", type: QdSectionToolbarManualRefreshComponent, selector: "qd-section-toolbar-manual-refresh" }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
29981
30011
|
}
|
|
29982
30012
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdSectionToolbarComponent, decorators: [{
|
|
29983
30013
|
type: Component,
|
|
29984
|
-
args: [{ selector: 'qd-section-toolbar', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div [ngClass]=\"{ toolbarHeader: true, collapsible: config.collapse?.isEnabled }\" (click)=\"toggleCollapse()\">\n @if (config.collapse?.isEnabled) {\n <qd-icon class=\"collapseIcon\" [icon]=\"isCollapsed ? 'ctrlRight' : 'ctrlDown'\"> </qd-icon>\n } @if (config.title) {\n <span class=\"toolbarTitle\" data-test-id=\"section-title\">{{
|
|
30014
|
+
args: [{ selector: 'qd-section-toolbar', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div [ngClass]=\"{ toolbarHeader: true, collapsible: config.collapse?.isEnabled }\" (click)=\"toggleCollapse()\">\n @if (config.collapse?.isEnabled) {\n <qd-icon class=\"collapseIcon\" [icon]=\"isCollapsed ? 'ctrlRight' : 'ctrlDown'\"> </qd-icon>\n } @if (config.title?.i18n; as titleKey) {\n <span class=\"toolbarTitle\" data-test-id=\"section-title\">{{ titleKey | translate }}</span>\n } @if (isTooltipVisible) {\n <qd-icon class=\"additionalInfo\" icon=\"circleInfo\" qdTooltipOnClick [qdTooltipContent]=\"tooltipContent\"></qd-icon>\n }\n</div>\n\n@if (!isCollapsed) {\n<div class=\"toolbarRight\">\n <qd-search #search [configData]=\"searchConfigData\"></qd-search>\n @if (isManualRefreshEnabled$ | async) {\n <qd-section-toolbar-manual-refresh></qd-section-toolbar-manual-refresh>\n }\n <qd-section-toolbar-action qdViewportAdaptive class=\"toolbarAction\" [config]=\"config\"></qd-section-toolbar-action>\n</div>\n<qd-filter class=\"toolbarFilter\" #filter [filterData]=\"filterData\"></qd-filter>\n}\n", styles: [":host{position:relative;display:flex;flex-wrap:wrap;margin-bottom:.625rem;column-gap:.75rem}@media(max-width:959.98px){:host{column-gap:0}}:host .toolbarHeader{color:#333;font-size:1rem;font-weight:700;line-height:1.5rem;margin-bottom:.625rem}@media(max-width:599.98px){:host .toolbarHeader{margin-bottom:.3125rem}}:host .collapsible{cursor:pointer}:host .collapsible .toolbarTitle{margin-left:1.5rem}:host .collapseIcon{position:absolute;top:-.09375rem;font-size:1.375rem;font-weight:500}:host .additionalInfo{position:absolute;margin-left:.25rem;color:#069;cursor:pointer;font-size:1rem;font-weight:500}:host .additionalInfo:hover,:host .additionalInfo:focus,:host .additionalInfo:active{color:#14516f}:host .toolbarRight{display:inline-flex;margin-bottom:.625rem;margin-left:auto}@media(max-width:959.98px){:host .toolbarRight{display:flex;width:100%;flex-basis:100%;margin-left:auto}:host .toolbarRight qd-search{min-width:0;flex-basis:0;flex-grow:1;flex-shrink:1}:host .toolbarRight qd-section-toolbar-action{flex-basis:auto;flex-grow:0;flex-shrink:0}:host .toolbarRight qd-search.hidden+qd-section-toolbar-action,:host .toolbarRight qd-search.hidden+qd-section-toolbar-manual-refresh{margin-left:0}}:host .toolbarAction{display:flex;align-items:center}@media(max-width:959.98px){:host .toolbarAction{gap:.75rem}}:host .toolbarFilter{flex-basis:100%}\n"] }]
|
|
29985
30015
|
}], propDecorators: { config: [{
|
|
29986
30016
|
type: Input
|
|
29987
30017
|
}], toolbarComponents: [{
|
|
@@ -31050,11 +31080,11 @@ class QdTreeBodyComponent {
|
|
|
31050
31080
|
this.treeRowsService.updateRows(this.data);
|
|
31051
31081
|
}
|
|
31052
31082
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdTreeBodyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
31053
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdTreeBodyComponent, isStandalone: false, selector: "[qd-tree-body]", inputs: { config: "config", data: "data", testId: ["data-test-id", "testId"] }, host: { classAttribute: "qd-tree-body" }, usesOnChanges: true, ngImport: i0, template: "@for (rowData of tree$ | async; track rowData; let rowIndex = $index) {\n<ng-container\n [ngTemplateOutlet]=\"rowTemplate\"\n [ngTemplateOutletContext]=\"{ rowData, rowIndex, indentation: 0 }\"\n></ng-container>\n}\n\n<ng-template #rowTemplate let-rowData=\"rowData\" let-rowIndex=\"rowIndex\" let-indentation=\"indentation\">\n <tr\n #row\n qd-tree-row\n [class]=\"'qd-tree-body-row'\"\n [columnsDetails]=\"columnsDetails\"\n [rowData]=\"rowData\"\n [rowIndex]=\"rowIndex\"\n [config]=\"config\"\n [indentation]=\"indentation\"\n [data-test-id]=\"testId + '-row-' + rowIndex\"\n ></tr>\n @if (row.expanded && rowData.nestedRows) { @for (rowData of rowData.nestedRows; track rowData; let rowIndex = $index)\n {\n <ng-container\n [ngTemplateOutlet]=\"rowTemplate\"\n [ngTemplateOutletContext]=\"{ rowData, rowIndex, indentation: indentation + 1 }\"\n ></ng-container>\n } }\n</ng-template>\n", styles: [".qd-tree-body .qd-tree-body-row{border:0 solid rgb(229,229,229);border-left-width:.0625rem}.qd-tree-body .qd-tree-body-row:hover{background-color:#f5f5f5}.qd-tree-body .qd-tree-body-cell{border:0 solid rgb(229,229,229);border-right-width:.0625rem;border-bottom-width:.0625rem}.qd-tree-body .qd-tree-body-cell:first-child{border-left-width:.0625rem}.qd-tree-body .qd-tree-body-cell-group span{margin-left:.25rem}.qd-tree-body .qd-tree-body-cell-group span+span:before{content:\"\\e002\";font-family:Quadrel-Icon,sans-serif}.qd-tree-body .qd-tree-body-cell-group.expandable{cursor:pointer}.qd-tree-body .qd-tree-body-cell-group-index-0{padding-left:1rem!important}.qd-tree-body .qd-tree-body-cell-group-index-1{padding-left:2rem!important}.qd-tree-body .qd-tree-body-cell-group-index-2{padding-left:3rem!important}.qd-tree-body .qd-tree-body-cell-group-index-3{padding-left:4rem!important}.qd-tree-body .qd-tree-body-cell-group-index-4{padding-left:5rem!important}.qd-tree-body .qd-tree-body-cell-group-index-5{padding-left:6rem!important}.qd-tree-body .qd-tree-body-cell-group-index-6{padding-left:7rem!important}.qd-tree-body .qd-tree-body-cell-group-index-7{padding-left:8rem!important}.qd-tree-body .qd-tree-body-cell-group-index-8{padding-left:9rem!important}.qd-tree-body .qd-tree-body-cell-group-index-9{padding-left:10rem!important}.qd-tree-body .expander{width:0;cursor:pointer;transform:translate(-.75rem)}\n"], dependencies: [{ kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: QdTreeRowComponent, selector: "[qd-tree-row]", inputs: ["columnsDetails", "indentation", "config", "data-test-id", "rowData", "rowIndex"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }], encapsulation: i0.ViewEncapsulation.None });
|
|
31083
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdTreeBodyComponent, isStandalone: false, selector: "[qd-tree-body]", inputs: { config: "config", data: "data", testId: ["data-test-id", "testId"] }, host: { classAttribute: "qd-tree-body" }, usesOnChanges: true, ngImport: i0, template: "@for (rowData of tree$ | async; track rowData; let rowIndex = $index) {\n<ng-container\n [ngTemplateOutlet]=\"rowTemplate\"\n [ngTemplateOutletContext]=\"{ rowData, rowIndex, indentation: 0 }\"\n></ng-container>\n}\n\n<ng-template #rowTemplate let-rowData=\"rowData\" let-rowIndex=\"rowIndex\" let-indentation=\"indentation\">\n <tr\n #row\n qd-tree-row\n [class]=\"'qd-tree-body-row'\"\n [columnsDetails]=\"columnsDetails\"\n [rowData]=\"rowData\"\n [rowIndex]=\"rowIndex\"\n [config]=\"config\"\n [indentation]=\"indentation\"\n [data-test-id]=\"testId + '-row-' + rowIndex\"\n ></tr>\n @if (row.expanded && rowData.nestedRows) { @for (rowData of rowData.nestedRows; track rowData; let rowIndex = $index)\n {\n <ng-container\n [ngTemplateOutlet]=\"rowTemplate\"\n [ngTemplateOutletContext]=\"{ rowData, rowIndex, indentation: indentation + 1 }\"\n ></ng-container>\n } }\n</ng-template>\n", styles: [".qd-tree-body .qd-tree-body-row{border:0 solid rgb(229,229,229);border-left-width:.0625rem}.qd-tree-body .qd-tree-body-row:hover{background-color:#f5f5f5}.qd-tree-body .qd-tree-body-cell{border:0 solid rgb(229,229,229);border-right-width:.0625rem;border-bottom-width:.0625rem}.qd-tree-body .qd-tree-body-cell:first-child{border-left-width:.0625rem}.qd-tree-body .qd-tree-body-cell-group span{margin-left:.25rem}.qd-tree-body .qd-tree-body-cell-group span+span:before{content:\"\\e002\";font-family:Quadrel-Icon,sans-serif}.qd-tree-body .qd-tree-body-cell-group.expandable{cursor:pointer}.qd-tree-body .qd-tree-body-cell-group-index-0{padding-left:1rem!important}.qd-tree-body .qd-tree-body-cell-group-index-1{padding-left:2rem!important}.qd-tree-body .qd-tree-body-cell-group-index-2{padding-left:3rem!important}.qd-tree-body .qd-tree-body-cell-group-index-3{padding-left:4rem!important}.qd-tree-body .qd-tree-body-cell-group-index-4{padding-left:5rem!important}.qd-tree-body .qd-tree-body-cell-group-index-5{padding-left:6rem!important}.qd-tree-body .qd-tree-body-cell-group-index-6{padding-left:7rem!important}.qd-tree-body .qd-tree-body-cell-group-index-7{padding-left:8rem!important}.qd-tree-body .qd-tree-body-cell-group-index-8{padding-left:9rem!important}.qd-tree-body .qd-tree-body-cell-group-index-9{padding-left:10rem!important}.qd-tree-body .qd-tree-body-cell-group-index-10{padding-left:11rem!important}.qd-tree-body .qd-tree-body-cell-group-index-11{padding-left:12rem!important}.qd-tree-body .qd-tree-body-cell-group-index-12{padding-left:13rem!important}.qd-tree-body .qd-tree-body-cell-group-index-13{padding-left:14rem!important}.qd-tree-body .qd-tree-body-cell-group-index-14{padding-left:15rem!important}.qd-tree-body .qd-tree-body-cell-group-index-15{padding-left:16rem!important}.qd-tree-body .qd-tree-body-cell-group-index-16{padding-left:17rem!important}.qd-tree-body .qd-tree-body-cell-group-index-17{padding-left:18rem!important}.qd-tree-body .qd-tree-body-cell-group-index-18{padding-left:19rem!important}.qd-tree-body .qd-tree-body-cell-group-index-19{padding-left:20rem!important}.qd-tree-body .qd-tree-body-cell-group-index-20{padding-left:21rem!important}.qd-tree-body .expander{width:0;cursor:pointer;transform:translate(-.75rem)}\n"], dependencies: [{ kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: QdTreeRowComponent, selector: "[qd-tree-row]", inputs: ["columnsDetails", "indentation", "config", "data-test-id", "rowData", "rowIndex"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }], encapsulation: i0.ViewEncapsulation.None });
|
|
31054
31084
|
}
|
|
31055
31085
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdTreeBodyComponent, decorators: [{
|
|
31056
31086
|
type: Component,
|
|
31057
|
-
args: [{ selector: '[qd-tree-body]', encapsulation: ViewEncapsulation.None, host: { class: 'qd-tree-body' }, standalone: false, template: "@for (rowData of tree$ | async; track rowData; let rowIndex = $index) {\n<ng-container\n [ngTemplateOutlet]=\"rowTemplate\"\n [ngTemplateOutletContext]=\"{ rowData, rowIndex, indentation: 0 }\"\n></ng-container>\n}\n\n<ng-template #rowTemplate let-rowData=\"rowData\" let-rowIndex=\"rowIndex\" let-indentation=\"indentation\">\n <tr\n #row\n qd-tree-row\n [class]=\"'qd-tree-body-row'\"\n [columnsDetails]=\"columnsDetails\"\n [rowData]=\"rowData\"\n [rowIndex]=\"rowIndex\"\n [config]=\"config\"\n [indentation]=\"indentation\"\n [data-test-id]=\"testId + '-row-' + rowIndex\"\n ></tr>\n @if (row.expanded && rowData.nestedRows) { @for (rowData of rowData.nestedRows; track rowData; let rowIndex = $index)\n {\n <ng-container\n [ngTemplateOutlet]=\"rowTemplate\"\n [ngTemplateOutletContext]=\"{ rowData, rowIndex, indentation: indentation + 1 }\"\n ></ng-container>\n } }\n</ng-template>\n", styles: [".qd-tree-body .qd-tree-body-row{border:0 solid rgb(229,229,229);border-left-width:.0625rem}.qd-tree-body .qd-tree-body-row:hover{background-color:#f5f5f5}.qd-tree-body .qd-tree-body-cell{border:0 solid rgb(229,229,229);border-right-width:.0625rem;border-bottom-width:.0625rem}.qd-tree-body .qd-tree-body-cell:first-child{border-left-width:.0625rem}.qd-tree-body .qd-tree-body-cell-group span{margin-left:.25rem}.qd-tree-body .qd-tree-body-cell-group span+span:before{content:\"\\e002\";font-family:Quadrel-Icon,sans-serif}.qd-tree-body .qd-tree-body-cell-group.expandable{cursor:pointer}.qd-tree-body .qd-tree-body-cell-group-index-0{padding-left:1rem!important}.qd-tree-body .qd-tree-body-cell-group-index-1{padding-left:2rem!important}.qd-tree-body .qd-tree-body-cell-group-index-2{padding-left:3rem!important}.qd-tree-body .qd-tree-body-cell-group-index-3{padding-left:4rem!important}.qd-tree-body .qd-tree-body-cell-group-index-4{padding-left:5rem!important}.qd-tree-body .qd-tree-body-cell-group-index-5{padding-left:6rem!important}.qd-tree-body .qd-tree-body-cell-group-index-6{padding-left:7rem!important}.qd-tree-body .qd-tree-body-cell-group-index-7{padding-left:8rem!important}.qd-tree-body .qd-tree-body-cell-group-index-8{padding-left:9rem!important}.qd-tree-body .qd-tree-body-cell-group-index-9{padding-left:10rem!important}.qd-tree-body .expander{width:0;cursor:pointer;transform:translate(-.75rem)}\n"] }]
|
|
31087
|
+
args: [{ selector: '[qd-tree-body]', encapsulation: ViewEncapsulation.None, host: { class: 'qd-tree-body' }, standalone: false, template: "@for (rowData of tree$ | async; track rowData; let rowIndex = $index) {\n<ng-container\n [ngTemplateOutlet]=\"rowTemplate\"\n [ngTemplateOutletContext]=\"{ rowData, rowIndex, indentation: 0 }\"\n></ng-container>\n}\n\n<ng-template #rowTemplate let-rowData=\"rowData\" let-rowIndex=\"rowIndex\" let-indentation=\"indentation\">\n <tr\n #row\n qd-tree-row\n [class]=\"'qd-tree-body-row'\"\n [columnsDetails]=\"columnsDetails\"\n [rowData]=\"rowData\"\n [rowIndex]=\"rowIndex\"\n [config]=\"config\"\n [indentation]=\"indentation\"\n [data-test-id]=\"testId + '-row-' + rowIndex\"\n ></tr>\n @if (row.expanded && rowData.nestedRows) { @for (rowData of rowData.nestedRows; track rowData; let rowIndex = $index)\n {\n <ng-container\n [ngTemplateOutlet]=\"rowTemplate\"\n [ngTemplateOutletContext]=\"{ rowData, rowIndex, indentation: indentation + 1 }\"\n ></ng-container>\n } }\n</ng-template>\n", styles: [".qd-tree-body .qd-tree-body-row{border:0 solid rgb(229,229,229);border-left-width:.0625rem}.qd-tree-body .qd-tree-body-row:hover{background-color:#f5f5f5}.qd-tree-body .qd-tree-body-cell{border:0 solid rgb(229,229,229);border-right-width:.0625rem;border-bottom-width:.0625rem}.qd-tree-body .qd-tree-body-cell:first-child{border-left-width:.0625rem}.qd-tree-body .qd-tree-body-cell-group span{margin-left:.25rem}.qd-tree-body .qd-tree-body-cell-group span+span:before{content:\"\\e002\";font-family:Quadrel-Icon,sans-serif}.qd-tree-body .qd-tree-body-cell-group.expandable{cursor:pointer}.qd-tree-body .qd-tree-body-cell-group-index-0{padding-left:1rem!important}.qd-tree-body .qd-tree-body-cell-group-index-1{padding-left:2rem!important}.qd-tree-body .qd-tree-body-cell-group-index-2{padding-left:3rem!important}.qd-tree-body .qd-tree-body-cell-group-index-3{padding-left:4rem!important}.qd-tree-body .qd-tree-body-cell-group-index-4{padding-left:5rem!important}.qd-tree-body .qd-tree-body-cell-group-index-5{padding-left:6rem!important}.qd-tree-body .qd-tree-body-cell-group-index-6{padding-left:7rem!important}.qd-tree-body .qd-tree-body-cell-group-index-7{padding-left:8rem!important}.qd-tree-body .qd-tree-body-cell-group-index-8{padding-left:9rem!important}.qd-tree-body .qd-tree-body-cell-group-index-9{padding-left:10rem!important}.qd-tree-body .qd-tree-body-cell-group-index-10{padding-left:11rem!important}.qd-tree-body .qd-tree-body-cell-group-index-11{padding-left:12rem!important}.qd-tree-body .qd-tree-body-cell-group-index-12{padding-left:13rem!important}.qd-tree-body .qd-tree-body-cell-group-index-13{padding-left:14rem!important}.qd-tree-body .qd-tree-body-cell-group-index-14{padding-left:15rem!important}.qd-tree-body .qd-tree-body-cell-group-index-15{padding-left:16rem!important}.qd-tree-body .qd-tree-body-cell-group-index-16{padding-left:17rem!important}.qd-tree-body .qd-tree-body-cell-group-index-17{padding-left:18rem!important}.qd-tree-body .qd-tree-body-cell-group-index-18{padding-left:19rem!important}.qd-tree-body .qd-tree-body-cell-group-index-19{padding-left:20rem!important}.qd-tree-body .qd-tree-body-cell-group-index-20{padding-left:21rem!important}.qd-tree-body .expander{width:0;cursor:pointer;transform:translate(-.75rem)}\n"] }]
|
|
31058
31088
|
}], ctorParameters: () => [], propDecorators: { config: [{
|
|
31059
31089
|
type: Input
|
|
31060
31090
|
}], data: [{
|
|
@@ -32196,6 +32226,7 @@ class QdDynamicFacetComponent {
|
|
|
32196
32226
|
data;
|
|
32197
32227
|
testId;
|
|
32198
32228
|
ref;
|
|
32229
|
+
inputNames = new Set();
|
|
32199
32230
|
get component() {
|
|
32200
32231
|
return this.ref?.instance;
|
|
32201
32232
|
}
|
|
@@ -32208,19 +32239,27 @@ class QdDynamicFacetComponent {
|
|
|
32208
32239
|
const viewContainerRef = this.dynamicFacet.viewContainerRef;
|
|
32209
32240
|
viewContainerRef.clear();
|
|
32210
32241
|
this.ref = viewContainerRef.createComponent(facet);
|
|
32211
|
-
this.
|
|
32212
|
-
this.
|
|
32213
|
-
this.
|
|
32242
|
+
this.inputNames = new Set(reflectComponentType(facet)?.inputs.map(input => input.templateName) ?? []);
|
|
32243
|
+
this.setFacetValue('facet', this.facet);
|
|
32244
|
+
this.setFacetValue('data', this.data);
|
|
32245
|
+
this.setFacetValue('testId', this.testId);
|
|
32214
32246
|
}
|
|
32215
32247
|
ngOnChanges(changes) {
|
|
32216
32248
|
if (!this.component)
|
|
32217
32249
|
return;
|
|
32218
32250
|
if (changes['facet'])
|
|
32219
|
-
this.
|
|
32251
|
+
this.setFacetValue('facet', changes['facet'].currentValue);
|
|
32220
32252
|
if (changes['data'])
|
|
32221
|
-
this.
|
|
32253
|
+
this.setFacetValue('data', changes['data'].currentValue);
|
|
32222
32254
|
if (changes['testId'])
|
|
32223
|
-
this.
|
|
32255
|
+
this.setFacetValue('testId', changes['testId'].currentValue);
|
|
32256
|
+
}
|
|
32257
|
+
setFacetValue(name, value) {
|
|
32258
|
+
if (this.inputNames.has(name)) {
|
|
32259
|
+
this.ref.setInput(name, value);
|
|
32260
|
+
return;
|
|
32261
|
+
}
|
|
32262
|
+
this.ref.instance[name] = value;
|
|
32224
32263
|
}
|
|
32225
32264
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdDynamicFacetComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
32226
32265
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdDynamicFacetComponent, isStandalone: false, selector: "qd-dynamic-facet", inputs: { facet: "facet", data: "data", testId: "testId" }, viewQueries: [{ propertyName: "dynamicFacet", first: true, predicate: QdDynamicFacetDirective, descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<ng-template [qdDynamicFacet]></ng-template>\n", dependencies: [{ kind: "directive", type: QdDynamicFacetDirective, selector: "[qdDynamicFacet]" }] });
|
|
@@ -33842,11 +33881,6 @@ class QdPageTabComponent {
|
|
|
33842
33881
|
set tabControl(tabControl) {
|
|
33843
33882
|
this._control = tabControl;
|
|
33844
33883
|
}
|
|
33845
|
-
/**
|
|
33846
|
-
* The `qd-page-info-banner` elements projected into this tab.
|
|
33847
|
-
* They render above the tab content while the tab is selected.
|
|
33848
|
-
*/
|
|
33849
|
-
infoBanners;
|
|
33850
33884
|
/**
|
|
33851
33885
|
* Template with the projected tab content. QdPageTabs renders it for the selected tab.
|
|
33852
33886
|
*/
|
|
@@ -33905,7 +33939,7 @@ class QdPageTabComponent {
|
|
|
33905
33939
|
return false;
|
|
33906
33940
|
}
|
|
33907
33941
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdPageTabComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
33908
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdPageTabComponent, isStandalone: true, selector: "qd-page-tab", inputs: { config: "config", tabControl: "tabControl" },
|
|
33942
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdPageTabComponent, isStandalone: true, selector: "qd-page-tab", inputs: { config: "config", tabControl: "tabControl" }, viewQueries: [{ propertyName: "content", first: true, predicate: TemplateRef, descendants: true, static: true }], ngImport: i0, template: "<ng-template>\n <div class=\"page-info-banners\">\n <ng-content select=\"qd-page-info-banner\"></ng-content>\n </div>\n\n <ng-content></ng-content>\n</ng-template>\n", styles: [".page-info-banners:has(>qd-page-info-banner:not(.qd-page-info-banner-empty)){padding:1rem 1.25rem .5rem;border-bottom:rgb(213,213,213) solid .0625rem;background-color:#fff}.page-info-banners>qd-page-info-banner:last-child{margin-bottom:0}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
33909
33943
|
}
|
|
33910
33944
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdPageTabComponent, decorators: [{
|
|
33911
33945
|
type: Component,
|
|
@@ -33914,9 +33948,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
33914
33948
|
type: Input
|
|
33915
33949
|
}], tabControl: [{
|
|
33916
33950
|
type: Input
|
|
33917
|
-
}], infoBanners: [{
|
|
33918
|
-
type: ContentChildren,
|
|
33919
|
-
args: [QdPageInfoBannerComponent]
|
|
33920
33951
|
}], content: [{
|
|
33921
33952
|
type: ViewChild,
|
|
33922
33953
|
args: [TemplateRef, { static: true }]
|
|
@@ -34382,11 +34413,11 @@ class QdPageTabsComponent {
|
|
|
34382
34413
|
throw new Error(`Quadrel Framework | QdPageTabs - The use of the "${inputName}" attribute is not permitted. Please use QdPageTabsConfig instead.`);
|
|
34383
34414
|
}
|
|
34384
34415
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdPageTabsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
34385
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdPageTabsComponent, isStandalone: true, selector: "qd-page-tabs", inputs: { config: "config", testId: ["data-test-id", "testId"] }, outputs: { tabSelection: "tabSelection" }, host: { properties: { "class.standalone": "!footerService" }, classAttribute: "qd-tabs" }, providers: [QdPageTabsRouterConnectorService], queries: [{ propertyName: "_tabs", predicate: i0.forwardRef(() => QdPageTabComponent) }], usesOnChanges: true, ngImport: i0, template: "<div class=\"qd-tabs-items-container\" [ngClass]=\"{ scrollable: config?.scrollabe }\">\n @for (tab of tabs; track tab; let i = $index) {\n <qd-page-tab-header\n (click)=\"selectTab(tab)\"\n [id]=\"_getTabLabelId(i)\"\n [index]=\"i\"\n [state]=\"_getIndicatorType(i)\"\n [label]=\"tab.config.label.i18n | translate\"\n [counters]=\"tab.config.counters\"\n [isSelected]=\"selectedIndex === i\"\n [isDisabled]=\"tab.config?.isDisabled\"\n [data-test-id]=\"testId + '-header' + '-' + i\"\n >\n </qd-page-tab-header>\n }\n</div>\n\n<div class=\"tabs-content\">\n @if (!selected?.config?.isDisabled) {\n <ng-container [ngTemplateOutlet]=\"selected?.content\"></ng-container>\n }\n</div>\n\n@if (isSubmitButtonShown()) {\n<div class=\"qd-tabs-action-area\">\n <button qdButton (click)=\"save()\" [disabled]=\"isSubmitButtonDisabled()\" [data-test-id]=\"testId + '-submit'\">\n {{ config?.submitButton?.i18n || \"i18n.qd.tabs.button.submit\" | translate }}\n </button>\n</div>\n}\n", styles: [":host{display:flex;flex-direction:column}:host.standalone{height:calc(100% - 50px)}:host .qd-tabs-items-container{display:flex;width:100%;flex-direction:row;flex-wrap:wrap;padding:0 1.25rem;border-bottom:.125rem solid rgb(213,213,213);background-color:#fff;gap:0 .9375rem}@media(max-width:599.98px){:host .qd-tabs-items-container{padding:0 .9375rem}}@media(max-width:1279.98px){:host .qd-tabs-items-container.scrollable{flex-wrap:nowrap;overflow-x:scroll;overflow-y:hidden;scrollbar-width:none}}:host .tabs-content{flex:1 1 auto}:host .qd-tabs-action-area{display:flex;width:100%;height:50px;justify-content:flex-end}:host .qd-tabs-action-area button{margin-right:1.25rem}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: QdPageTabHeaderComponent, selector: "qd-page-tab-header", inputs: ["state", "label", "counters", "index", "isSelected", "isDisabled", "data-test-id"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "ngmodule", type: QdButtonModule }, { kind: "component", type: QdButtonComponent, selector: "button[qdButton], a[qdButton]", inputs: ["disabled", "color", "icon", "data-test-id", "additionalInfo"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
34416
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdPageTabsComponent, isStandalone: true, selector: "qd-page-tabs", inputs: { config: "config", testId: ["data-test-id", "testId"] }, outputs: { tabSelection: "tabSelection" }, host: { properties: { "class.standalone": "!footerService" }, classAttribute: "qd-tabs" }, providers: [QdPageTabsRouterConnectorService], queries: [{ propertyName: "_tabs", predicate: i0.forwardRef(() => QdPageTabComponent) }], usesOnChanges: true, ngImport: i0, template: "<div class=\"qd-tabs-items-container\" [ngClass]=\"{ scrollable: config?.scrollable ?? config?.scrollabe }\">\n @for (tab of tabs; track tab; let i = $index) {\n <qd-page-tab-header\n (click)=\"selectTab(tab)\"\n [id]=\"_getTabLabelId(i)\"\n [index]=\"i\"\n [state]=\"_getIndicatorType(i)\"\n [label]=\"tab.config.label.i18n | translate\"\n [counters]=\"tab.config.counters\"\n [isSelected]=\"selectedIndex === i\"\n [isDisabled]=\"tab.config?.isDisabled\"\n [data-test-id]=\"testId + '-header' + '-' + i\"\n >\n </qd-page-tab-header>\n }\n</div>\n\n<div class=\"tabs-content\">\n @if (!selected?.config?.isDisabled) {\n <ng-container [ngTemplateOutlet]=\"selected?.content\"></ng-container>\n }\n</div>\n\n@if (isSubmitButtonShown()) {\n<div class=\"qd-tabs-action-area\">\n <button qdButton (click)=\"save()\" [disabled]=\"isSubmitButtonDisabled()\" [data-test-id]=\"testId + '-submit'\">\n {{ config?.submitButton?.i18n || \"i18n.qd.tabs.button.submit\" | translate }}\n </button>\n</div>\n}\n", styles: [":host{display:flex;flex-direction:column}:host.standalone{height:calc(100% - 50px)}:host .qd-tabs-items-container{display:flex;width:100%;flex-direction:row;flex-wrap:wrap;padding:0 1.25rem;border-bottom:.125rem solid rgb(213,213,213);background-color:#fff;gap:0 .9375rem}@media(max-width:599.98px){:host .qd-tabs-items-container{padding:0 .9375rem}}@media(max-width:1279.98px){:host .qd-tabs-items-container.scrollable{flex-wrap:nowrap;overflow-x:scroll;overflow-y:hidden;scrollbar-width:none}}:host .tabs-content{flex:1 1 auto}:host .qd-tabs-action-area{display:flex;width:100%;height:50px;justify-content:flex-end}:host .qd-tabs-action-area button{margin-right:1.25rem}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: QdPageTabHeaderComponent, selector: "qd-page-tab-header", inputs: ["state", "label", "counters", "index", "isSelected", "isDisabled", "data-test-id"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "ngmodule", type: QdButtonModule }, { kind: "component", type: QdButtonComponent, selector: "button[qdButton], a[qdButton]", inputs: ["disabled", "color", "icon", "data-test-id", "additionalInfo"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
34386
34417
|
}
|
|
34387
34418
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdPageTabsComponent, decorators: [{
|
|
34388
34419
|
type: Component,
|
|
34389
|
-
args: [{ selector: 'qd-page-tabs', providers: [QdPageTabsRouterConnectorService], changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'qd-tabs', '[class.standalone]': '!footerService' }, standalone: true, imports: [NgFor, NgIf, NgTemplateOutlet, QdPageTabHeaderComponent, TranslateModule, QdButtonModule, CommonModule], template: "<div class=\"qd-tabs-items-container\" [ngClass]=\"{ scrollable: config?.scrollabe }\">\n @for (tab of tabs; track tab; let i = $index) {\n <qd-page-tab-header\n (click)=\"selectTab(tab)\"\n [id]=\"_getTabLabelId(i)\"\n [index]=\"i\"\n [state]=\"_getIndicatorType(i)\"\n [label]=\"tab.config.label.i18n | translate\"\n [counters]=\"tab.config.counters\"\n [isSelected]=\"selectedIndex === i\"\n [isDisabled]=\"tab.config?.isDisabled\"\n [data-test-id]=\"testId + '-header' + '-' + i\"\n >\n </qd-page-tab-header>\n }\n</div>\n\n<div class=\"tabs-content\">\n @if (!selected?.config?.isDisabled) {\n <ng-container [ngTemplateOutlet]=\"selected?.content\"></ng-container>\n }\n</div>\n\n@if (isSubmitButtonShown()) {\n<div class=\"qd-tabs-action-area\">\n <button qdButton (click)=\"save()\" [disabled]=\"isSubmitButtonDisabled()\" [data-test-id]=\"testId + '-submit'\">\n {{ config?.submitButton?.i18n || \"i18n.qd.tabs.button.submit\" | translate }}\n </button>\n</div>\n}\n", styles: [":host{display:flex;flex-direction:column}:host.standalone{height:calc(100% - 50px)}:host .qd-tabs-items-container{display:flex;width:100%;flex-direction:row;flex-wrap:wrap;padding:0 1.25rem;border-bottom:.125rem solid rgb(213,213,213);background-color:#fff;gap:0 .9375rem}@media(max-width:599.98px){:host .qd-tabs-items-container{padding:0 .9375rem}}@media(max-width:1279.98px){:host .qd-tabs-items-container.scrollable{flex-wrap:nowrap;overflow-x:scroll;overflow-y:hidden;scrollbar-width:none}}:host .tabs-content{flex:1 1 auto}:host .qd-tabs-action-area{display:flex;width:100%;height:50px;justify-content:flex-end}:host .qd-tabs-action-area button{margin-right:1.25rem}\n"] }]
|
|
34420
|
+
args: [{ selector: 'qd-page-tabs', providers: [QdPageTabsRouterConnectorService], changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'qd-tabs', '[class.standalone]': '!footerService' }, standalone: true, imports: [NgFor, NgIf, NgTemplateOutlet, QdPageTabHeaderComponent, TranslateModule, QdButtonModule, CommonModule], template: "<div class=\"qd-tabs-items-container\" [ngClass]=\"{ scrollable: config?.scrollable ?? config?.scrollabe }\">\n @for (tab of tabs; track tab; let i = $index) {\n <qd-page-tab-header\n (click)=\"selectTab(tab)\"\n [id]=\"_getTabLabelId(i)\"\n [index]=\"i\"\n [state]=\"_getIndicatorType(i)\"\n [label]=\"tab.config.label.i18n | translate\"\n [counters]=\"tab.config.counters\"\n [isSelected]=\"selectedIndex === i\"\n [isDisabled]=\"tab.config?.isDisabled\"\n [data-test-id]=\"testId + '-header' + '-' + i\"\n >\n </qd-page-tab-header>\n }\n</div>\n\n<div class=\"tabs-content\">\n @if (!selected?.config?.isDisabled) {\n <ng-container [ngTemplateOutlet]=\"selected?.content\"></ng-container>\n }\n</div>\n\n@if (isSubmitButtonShown()) {\n<div class=\"qd-tabs-action-area\">\n <button qdButton (click)=\"save()\" [disabled]=\"isSubmitButtonDisabled()\" [data-test-id]=\"testId + '-submit'\">\n {{ config?.submitButton?.i18n || \"i18n.qd.tabs.button.submit\" | translate }}\n </button>\n</div>\n}\n", styles: [":host{display:flex;flex-direction:column}:host.standalone{height:calc(100% - 50px)}:host .qd-tabs-items-container{display:flex;width:100%;flex-direction:row;flex-wrap:wrap;padding:0 1.25rem;border-bottom:.125rem solid rgb(213,213,213);background-color:#fff;gap:0 .9375rem}@media(max-width:599.98px){:host .qd-tabs-items-container{padding:0 .9375rem}}@media(max-width:1279.98px){:host .qd-tabs-items-container.scrollable{flex-wrap:nowrap;overflow-x:scroll;overflow-y:hidden;scrollbar-width:none}}:host .tabs-content{flex:1 1 auto}:host .qd-tabs-action-area{display:flex;width:100%;height:50px;justify-content:flex-end}:host .qd-tabs-action-area button{margin-right:1.25rem}\n"] }]
|
|
34390
34421
|
}], propDecorators: { config: [{
|
|
34391
34422
|
type: Input
|
|
34392
34423
|
}], testId: [{
|
|
@@ -34963,7 +34994,6 @@ class QdPageComponent {
|
|
|
34963
34994
|
tabsComponent;
|
|
34964
34995
|
stepperAdapterDirective;
|
|
34965
34996
|
tabsAdapterDirective;
|
|
34966
|
-
infoBanners;
|
|
34967
34997
|
footerHasContent$;
|
|
34968
34998
|
isFooterVisible;
|
|
34969
34999
|
projectionGuardMessage = 'Quadrel Framework | QdPage - This content is not supported. Please use the [qdSectionAdapter] directive for custom content projection.';
|
|
@@ -35171,7 +35201,7 @@ class QdPageComponent {
|
|
|
35171
35201
|
QdPageSubmitActionService,
|
|
35172
35202
|
QdResolverTriggerService,
|
|
35173
35203
|
QdPageNavigationInterceptorService
|
|
35174
|
-
], queries: [{ propertyName: "controlPanel", first: true, predicate: QdPageControlPanelComponent, descendants: true }, { propertyName: "stepperComponent", first: true, predicate: QdPageStepperComponent, descendants: true }, { propertyName: "tabsComponent", first: true, predicate: QdPageTabsComponent, descendants: true }, { propertyName: "stepperAdapterDirective", first: true, predicate: QdPageStepperAdapterDirective, descendants: true }, { propertyName: "tabsAdapterDirective", first: true, predicate: QdPageTabsAdapterDirective, descendants: true }, { propertyName: "sections", predicate: QdSectionComponent }
|
|
35204
|
+
], queries: [{ propertyName: "controlPanel", first: true, predicate: QdPageControlPanelComponent, descendants: true }, { propertyName: "stepperComponent", first: true, predicate: QdPageStepperComponent, descendants: true }, { propertyName: "tabsComponent", first: true, predicate: QdPageTabsComponent, descendants: true }, { propertyName: "stepperAdapterDirective", first: true, predicate: QdPageStepperAdapterDirective, descendants: true }, { propertyName: "tabsAdapterDirective", first: true, predicate: QdPageTabsAdapterDirective, descendants: true }, { propertyName: "sections", predicate: QdSectionComponent }], usesOnChanges: true, ngImport: i0, template: "<main qdSnackbarListener cdkScrollable [attr.data-test-id]=\"testId + '-main'\">\n <qd-page-object-header\n [data-test-id]=\"testId\"\n [attr.data-test-id]=\"testId + 'object-header'\"\n [config]=\"config\"\n [hasNavigation]=\"hasNavigation\"\n >\n <ng-content select=\"[qdPageHeaderExtension]\"></ng-content>\n </qd-page-object-header>\n\n <div class=\"page-info-banners\">\n <ng-content select=\"qd-page-info-banner\"></ng-content>\n </div>\n\n @if (config.pageType === 'create' || config.pageType === 'custom') {\n <ng-content select=\"qd-page-stepper\"></ng-content>\n <ng-content select=\"[qdPageStepperAdapter]\"></ng-content>\n } @if (config.pageType === 'overview' || config.pageType === 'inspect' || config.pageType === 'custom') {\n <ng-content select=\"qd-page-tabs\"></ng-content>\n <ng-content select=\"[qdPageTabsAdapter]\"></ng-content>\n <ng-content select=\"qd-section\"></ng-content>\n <ng-content select=\"[qdSectionAdapter]\"></ng-content>\n } @if (config.pageType === 'custom') {\n <ng-container *ngTemplateOutlet=\"projectedContent\"></ng-container>\n }\n</main>\n\n@if (footerHasContent$ | async) {\n<footer>\n <qd-page-footer [attr.data-test-id]=\"testId + '-footer'\">\n <ng-content select=\"[qdPageFooter]\"></ng-content>\n </qd-page-footer>\n</footer>\n} @if (isControlPanelVisible) {\n<aside>\n <ng-content select=\"qd-page-control-panel\"></ng-content>\n</aside>\n} @if (config.pageType !== 'custom') {\n<qd-projection-guard [warningMessage]=\"projectionGuardMessage\">\n <ng-container *ngTemplateOutlet=\"projectedContent\"></ng-container>\n</qd-projection-guard>\n}\n\n<ng-template #projectedContent>\n <ng-content></ng-content>\n</ng-template>\n", styles: [":host{position:absolute;display:grid;overflow:hidden;width:100%;height:100%;background:#efefef;grid-template-areas:\"main\";grid-template-columns:1fr;grid-template-rows:1fr}:host.has-control-panel{grid-template-areas:\"main aside\";grid-template-columns:1fr 18.75rem}:host.control-panel-broad{grid-template-columns:1fr 27rem}:host .page-info-banners:has(>qd-page-info-banner:not(.qd-page-info-banner-empty)){padding:1rem 1.25rem .5rem;border-bottom:rgb(213,213,213) solid .0625rem;background-color:#fff}@media(max-width:599.98px){:host .page-info-banners:has(>qd-page-info-banner:not(.qd-page-info-banner-empty)){padding-right:.9375rem;padding-left:.9375rem}}:host .page-info-banners>qd-page-info-banner:last-child{margin-bottom:0}:host.has-footer{grid-template-areas:\"main\" \"footer\";grid-template-rows:calc(100% - 4rem) 4rem}:host.has-control-panel.has-footer{grid-template-areas:\"main aside\" \"footer aside\"}:host main{position:relative;grid-area:main;overflow-y:auto}:host aside{border-left:rgb(213,213,213) solid .0625rem;background:#fff;grid-area:aside}:host footer{grid-area:footer}:host ::ng-deep .qd-page-info-banner-info+.qd-page-info-banner-info,:host ::ng-deep .qd-page-info-banner-warning+.qd-page-info-banner-warning,:host ::ng-deep .qd-page-info-banner-critical+.qd-page-info-banner-critical,:host ::ng-deep .qd-page-info-banner-positive+.qd-page-info-banner-positive{position:relative;top:-.5rem;padding-top:0rem;padding-bottom:0rem;border-top-width:0;margin-bottom:0rem}:host ::ng-deep .qd-page-info-banner-info+.qd-page-info-banner-info .icon,:host ::ng-deep .qd-page-info-banner-warning+.qd-page-info-banner-warning .icon,:host ::ng-deep .qd-page-info-banner-critical+.qd-page-info-banner-critical .icon,:host ::ng-deep .qd-page-info-banner-positive+.qd-page-info-banner-positive .icon{display:none}:host ::ng-deep .qd-page-info-banner-info+.qd-page-info-banner-info .title,:host ::ng-deep .qd-page-info-banner-info+.qd-page-info-banner-info .message,:host ::ng-deep .qd-page-info-banner-warning+.qd-page-info-banner-warning .title,:host ::ng-deep .qd-page-info-banner-warning+.qd-page-info-banner-warning .message,:host ::ng-deep .qd-page-info-banner-critical+.qd-page-info-banner-critical .title,:host ::ng-deep .qd-page-info-banner-critical+.qd-page-info-banner-critical .message,:host ::ng-deep .qd-page-info-banner-positive+.qd-page-info-banner-positive .title,:host ::ng-deep .qd-page-info-banner-positive+.qd-page-info-banner-positive .message{position:relative;top:-.625rem}:host ::ng-deep .qd-page-info-banner-info+.qd-page-info-banner-info:before,:host ::ng-deep .qd-page-info-banner-warning+.qd-page-info-banner-warning:before,:host ::ng-deep .qd-page-info-banner-critical+.qd-page-info-banner-critical:before,:host ::ng-deep .qd-page-info-banner-positive+.qd-page-info-banner-positive:before{position:relative;top:-.625rem;left:-2.75rem;display:block;width:calc(100% + 4.75rem);height:.625rem;background-color:#fff;content:\"\"}\n"], dependencies: [{ kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$6.CdkScrollable, selector: "[cdk-scrollable], [cdkScrollable]" }, { kind: "component", type: QdProjectionGuardComponent, selector: "qd-projection-guard", inputs: ["isDisabled", "warningMessage"] }, { kind: "component", type: QdPageFooterComponent, selector: "qd-page-footer" }, { kind: "component", type: QdPageObjectHeaderComponent, selector: "qd-page-object-header", inputs: ["config", "hasNavigation", "data-test-id"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }] });
|
|
35175
35205
|
}
|
|
35176
35206
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdPageComponent, decorators: [{
|
|
35177
35207
|
type: Component,
|
|
@@ -35208,9 +35238,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
35208
35238
|
}], tabsAdapterDirective: [{
|
|
35209
35239
|
type: ContentChild,
|
|
35210
35240
|
args: [QdPageTabsAdapterDirective, { descendants: true }]
|
|
35211
|
-
}], infoBanners: [{
|
|
35212
|
-
type: ContentChildren,
|
|
35213
|
-
args: [QdPageInfoBannerComponent]
|
|
35214
35241
|
}], footerVisible: [{
|
|
35215
35242
|
type: HostBinding,
|
|
35216
35243
|
args: ['class.has-footer']
|
|
@@ -36681,7 +36708,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
36681
36708
|
|
|
36682
36709
|
// @ts-strict-ignore
|
|
36683
36710
|
/**
|
|
36684
|
-
* **
|
|
36711
|
+
* **QdShellNotificationComponent** displays a single notification item within a **qd-shell-notifications** container.
|
|
36685
36712
|
*/
|
|
36686
36713
|
class QdShellNotificationComponent {
|
|
36687
36714
|
notificationService = inject(QdNotificationsService);
|
|
@@ -37724,7 +37751,6 @@ class QdPageStepComponent extends CdkStep {
|
|
|
37724
37751
|
* The stepper only moves on to the next step when this form is valid. Optional steps skip this check.
|
|
37725
37752
|
*/
|
|
37726
37753
|
stepControl;
|
|
37727
|
-
infoBanners;
|
|
37728
37754
|
_destroyed$ = new Subject();
|
|
37729
37755
|
constructor() {
|
|
37730
37756
|
const stepper = inject(QdPageStepperComponent);
|
|
@@ -37756,7 +37782,7 @@ class QdPageStepComponent extends CdkStep {
|
|
|
37756
37782
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdPageStepComponent, isStandalone: true, selector: "qd-page-step", inputs: { config: "config", stepControl: "stepControl" }, host: { classAttribute: "qd-stepper" }, providers: [
|
|
37757
37783
|
{ provide: CdkStep, useExisting: QdPageStepComponent },
|
|
37758
37784
|
{ provide: STEPPER_GLOBAL_OPTIONS, useValue: { showError: true } }
|
|
37759
|
-
],
|
|
37785
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<ng-template>\n <div class=\"page-info-banners\">\n <ng-content select=\"qd-page-info-banner\"></ng-content>\n </div>\n\n <ng-content></ng-content>\n</ng-template>\n", styles: [".page-info-banners:has(>qd-page-info-banner:not(.qd-page-info-banner-empty)){padding:1rem 1.25rem .5rem;border-bottom:rgb(213,213,213) solid .0625rem;background-color:#fff}.page-info-banners>qd-page-info-banner:last-child{margin-bottom:0}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
37760
37786
|
}
|
|
37761
37787
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdPageStepComponent, decorators: [{
|
|
37762
37788
|
type: Component,
|
|
@@ -37768,9 +37794,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
37768
37794
|
type: Input
|
|
37769
37795
|
}], stepControl: [{
|
|
37770
37796
|
type: Input
|
|
37771
|
-
}], infoBanners: [{
|
|
37772
|
-
type: ContentChildren,
|
|
37773
|
-
args: [QdPageInfoBannerComponent]
|
|
37774
37797
|
}] } });
|
|
37775
37798
|
|
|
37776
37799
|
class QdPageStepperModule {
|