@quadrel-enterprise-ui/framework 21.3.0 → 21.4.1
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,24 +1,26 @@
|
|
|
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, 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, isDevMode, TemplateRef, CUSTOM_ELEMENTS_SCHEMA, provideAppInitializer } from '@angular/core';
|
|
3
3
|
import { Dialog, DialogRef, DIALOG_DATA, DialogModule } from '@angular/cdk/dialog';
|
|
4
|
-
import { BehaviorSubject, pairwise, map as map$1, Subject, throwError, of, ReplaySubject, merge,
|
|
5
|
-
import { map,
|
|
4
|
+
import { BehaviorSubject, pairwise, fromEvent, combineLatest, concat, map as map$1, Subject, throwError, of, ReplaySubject, merge, isObservable, NEVER, Observable, EMPTY, shareReplay, Subscription, distinctUntilChanged as distinctUntilChanged$1, debounce, timer, switchMap, asyncScheduler, startWith as startWith$1, debounceTime as debounceTime$1, takeUntil as takeUntil$1, firstValueFrom, take as take$1, tap as tap$1, from, delay, defer, queueScheduler, filter as filter$1, concatMap as concatMap$1, exhaustMap, finalize, forkJoin, delayWhen, combineLatestWith, withLatestFrom as withLatestFrom$1, async } from 'rxjs';
|
|
5
|
+
import { map, startWith, take, debounceTime, takeUntil, filter, catchError, distinctUntilChanged, concatMap, skip, throttleTime, tap, auditTime, withLatestFrom, observeOn, switchMap as switchMap$1, pairwise as pairwise$1, mergeMap } from 'rxjs/operators';
|
|
6
6
|
import { v4 } from 'uuid';
|
|
7
7
|
import * as i2 from '@ngx-translate/core';
|
|
8
8
|
import { TranslateService, TranslateModule } from '@ngx-translate/core';
|
|
9
|
-
import * as i1$
|
|
9
|
+
import * as i1$3 from '@angular/router';
|
|
10
10
|
import { Router, ActivationEnd, RouterModule, ActivatedRoute, NavigationEnd, NavigationCancel, NavigationError, NavigationStart } from '@angular/router';
|
|
11
|
+
import * as i1 from '@angular/cdk/drag-drop';
|
|
12
|
+
import { CdkDrag } from '@angular/cdk/drag-drop';
|
|
11
13
|
import { HttpStatusCode, HttpParams, HttpEventType, HttpClient, HTTP_INTERCEPTORS } from '@angular/common/http';
|
|
12
|
-
import * as i1 from '@angular/common';
|
|
14
|
+
import * as i1$1 from '@angular/common';
|
|
13
15
|
import { CommonModule, DOCUMENT, NgClass, NgTemplateOutlet, AsyncPipe, NgFor, NgIf } from '@angular/common';
|
|
14
|
-
import * as i1$
|
|
16
|
+
import * as i1$2 from '@angular/forms';
|
|
15
17
|
import { NG_VALUE_ACCESSOR, FormsModule, UntypedFormControl, UntypedFormArray, UntypedFormGroup, ControlContainer, FormControlDirective, AbstractControl, UntypedFormBuilder, Validators, FormControl, ReactiveFormsModule, NgForm, FormGroupDirective, FormArray, FormGroup, FormBuilder } from '@angular/forms';
|
|
16
18
|
import { ComponentPortal } from '@angular/cdk/portal';
|
|
17
19
|
import { OverlayPositionBuilder, Overlay } from '@angular/cdk/overlay';
|
|
18
20
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
19
21
|
import { EventSourcePolyfill } from 'event-source-polyfill';
|
|
20
22
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
21
|
-
import * as i1$
|
|
23
|
+
import * as i1$4 from '@angular/cdk/a11y';
|
|
22
24
|
import { ActiveDescendantKeyManager, A11yModule, FocusKeyManager } from '@angular/cdk/a11y';
|
|
23
25
|
import * as i2$1 from 'ngx-editor';
|
|
24
26
|
import { Editor, NgxEditorModule } from 'ngx-editor';
|
|
@@ -27,15 +29,13 @@ import 'moment/locale/de';
|
|
|
27
29
|
import 'moment/locale/fr';
|
|
28
30
|
import 'moment/locale/it';
|
|
29
31
|
import moment$1 from 'moment/moment';
|
|
30
|
-
import * as i1$
|
|
32
|
+
import * as i1$5 from '@ngrx/store';
|
|
31
33
|
import { createAction, props, createReducer, on, createSelector, createFeatureSelector, Store, StoreModule } from '@ngrx/store';
|
|
32
34
|
import { diff } from 'deep-object-diff';
|
|
33
|
-
import * as i1$
|
|
35
|
+
import * as i1$6 from '@angular/cdk/scrolling';
|
|
34
36
|
import { ScrollingModule } from '@angular/cdk/scrolling';
|
|
35
37
|
import { Directionality } from '@angular/cdk/bidi';
|
|
36
38
|
import { CdkStepHeader, STEP_STATE, CdkStepper, CdkStep, STEPPER_GLOBAL_OPTIONS, CdkStepperModule } from '@angular/cdk/stepper';
|
|
37
|
-
import * as i2$2 from '@angular/cdk/drag-drop';
|
|
38
|
-
import { CdkDrag } from '@angular/cdk/drag-drop';
|
|
39
39
|
|
|
40
40
|
/**
|
|
41
41
|
* The **QdButtonLink** can be used in combination with the **QdButton** component.
|
|
@@ -1108,6 +1108,59 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
1108
1108
|
args: [{ selector: 'qd-dialog-action', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<ng-content></ng-content>\n", styles: [":host{display:flex;column-gap:.625rem}\n"] }]
|
|
1109
1109
|
}] });
|
|
1110
1110
|
|
|
1111
|
+
var breakpoints$1 = {
|
|
1112
|
+
xs: 320,
|
|
1113
|
+
sm: 600,
|
|
1114
|
+
md: 960,
|
|
1115
|
+
lg: 1280,
|
|
1116
|
+
xl: 1600,
|
|
1117
|
+
xxl: 1800
|
|
1118
|
+
};
|
|
1119
|
+
var panel = {
|
|
1120
|
+
sm: 432,
|
|
1121
|
+
md: 588,
|
|
1122
|
+
lg: 720
|
|
1123
|
+
};
|
|
1124
|
+
var base = {
|
|
1125
|
+
fontsize: 16
|
|
1126
|
+
};
|
|
1127
|
+
var globalVars = {
|
|
1128
|
+
breakpoints: breakpoints$1,
|
|
1129
|
+
panel: panel,
|
|
1130
|
+
base: base
|
|
1131
|
+
};
|
|
1132
|
+
|
|
1133
|
+
const breakpoints = globalVars.breakpoints;
|
|
1134
|
+
|
|
1135
|
+
class QdBreakpointService {
|
|
1136
|
+
_breakpoints = breakpoints;
|
|
1137
|
+
get breakpoints() {
|
|
1138
|
+
return this._breakpoints;
|
|
1139
|
+
}
|
|
1140
|
+
getMatchingBreakpoint() {
|
|
1141
|
+
const queries = Object.values(this.breakpoints).map(bp => `(min-width: ${bp}px)`);
|
|
1142
|
+
const matches$ = queries.map(query => {
|
|
1143
|
+
const mql = window.matchMedia(query);
|
|
1144
|
+
return fromEvent(mql, 'change').pipe(map(event => event.matches), startWith(mql.matches));
|
|
1145
|
+
});
|
|
1146
|
+
const breakpoint = combineLatest(matches$).pipe(map(matches => (Object.keys(this.breakpoints)[matches.lastIndexOf(true)] || Object.keys(this.breakpoints)[0])));
|
|
1147
|
+
return concat(breakpoint.pipe(take(1)), breakpoint.pipe(debounceTime(100)));
|
|
1148
|
+
}
|
|
1149
|
+
isViewportBelow(breakpoint) {
|
|
1150
|
+
return this.getMatchingBreakpoint().pipe(map(currentBreakpoint => {
|
|
1151
|
+
return this.breakpoints[currentBreakpoint] < this.breakpoints[breakpoint];
|
|
1152
|
+
}));
|
|
1153
|
+
}
|
|
1154
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdBreakpointService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1155
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdBreakpointService, providedIn: 'root' });
|
|
1156
|
+
}
|
|
1157
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdBreakpointService, decorators: [{
|
|
1158
|
+
type: Injectable,
|
|
1159
|
+
args: [{
|
|
1160
|
+
providedIn: 'root'
|
|
1161
|
+
}]
|
|
1162
|
+
}] });
|
|
1163
|
+
|
|
1111
1164
|
/**
|
|
1112
1165
|
* Enum for different Dialog sizes.
|
|
1113
1166
|
*/
|
|
@@ -1430,7 +1483,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
1430
1483
|
* i18n: "i18.my.modal.title",
|
|
1431
1484
|
* },
|
|
1432
1485
|
* dialogSize: QdDialogSize.Default,
|
|
1433
|
-
* hideCloseHeaderButton: false
|
|
1486
|
+
* hideCloseHeaderButton: false,
|
|
1487
|
+
* isDraggable: true,
|
|
1434
1488
|
* data: myData // API to provide data to the dialog
|
|
1435
1489
|
* }
|
|
1436
1490
|
*
|
|
@@ -1466,6 +1520,7 @@ class QdDialogComponent {
|
|
|
1466
1520
|
changeDetectorRef = inject(ChangeDetectorRef);
|
|
1467
1521
|
dialogChangeGuard = inject(QdDialogChangeGuardService);
|
|
1468
1522
|
dialogService = inject(QdDialogService);
|
|
1523
|
+
breakpointService = inject(QdBreakpointService);
|
|
1469
1524
|
/**
|
|
1470
1525
|
* A static test ID for integration tests can be set. <br />
|
|
1471
1526
|
* The value for the HTML attribute [data-test-id].
|
|
@@ -1483,17 +1538,25 @@ class QdDialogComponent {
|
|
|
1483
1538
|
config;
|
|
1484
1539
|
hasSections;
|
|
1485
1540
|
hasInfoBanner;
|
|
1541
|
+
isMobile = false;
|
|
1486
1542
|
_destroyed$ = new Subject();
|
|
1487
1543
|
_pageDialogCanCloseFn = null;
|
|
1488
1544
|
_isConfirmingClose = false;
|
|
1489
1545
|
get isFullWidth() {
|
|
1490
1546
|
return this.config.dialogSize === QdDialogSize.FullWidth;
|
|
1491
1547
|
}
|
|
1548
|
+
get isDragEnabled() {
|
|
1549
|
+
return !!this.config?.isDraggable && !this.isFullWidth && !this.isMobile;
|
|
1550
|
+
}
|
|
1492
1551
|
ngOnInit() {
|
|
1493
1552
|
this.config = this.dialogRef.config;
|
|
1494
1553
|
this.dialogService.pageDialogCanClose$.pipe(takeUntil(this._destroyed$)).subscribe(entry => {
|
|
1495
1554
|
this._pageDialogCanCloseFn = entry?.owner === this.dialogRef ? entry.fn : null;
|
|
1496
1555
|
});
|
|
1556
|
+
this.breakpointService
|
|
1557
|
+
.isViewportBelow('md')
|
|
1558
|
+
.pipe(takeUntil(this._destroyed$))
|
|
1559
|
+
.subscribe(isMobile => (this.isMobile = isMobile));
|
|
1497
1560
|
this.bindEscToClose();
|
|
1498
1561
|
}
|
|
1499
1562
|
ngAfterContentChecked() {
|
|
@@ -1572,11 +1635,11 @@ class QdDialogComponent {
|
|
|
1572
1635
|
});
|
|
1573
1636
|
}
|
|
1574
1637
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1575
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdDialogComponent, isStandalone: false, selector: "qd-dialog", inputs: { testId: ["data-test-id", "testId"] }, host: { properties: { "class.full-width": "isFullWidth", "class.has-sections": "this.hasSectionsClass" } }, providers: [QdDialogComponent], viewQueries: [{ propertyName: "body", first: true, predicate: ["body"], descendants: true }, { propertyName: "infoBanners", first: true, predicate: ["banners"], descendants: true }], ngImport: i0, template: "@if (!isFullWidth) {\n<div
|
|
1638
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdDialogComponent, isStandalone: false, selector: "qd-dialog", inputs: { testId: ["data-test-id", "testId"] }, host: { properties: { "class.full-width": "isFullWidth", "class.has-sections": "this.hasSectionsClass" } }, providers: [QdDialogComponent], viewQueries: [{ propertyName: "body", first: true, predicate: ["body"], descendants: true }, { propertyName: "infoBanners", first: true, predicate: ["banners"], descendants: true }], ngImport: i0, template: "@if (!isFullWidth) {\n<div\n class=\"dialog-header\"\n cdkDrag\n cdkDragRootElement=\".cdk-overlay-pane\"\n cdkDragBoundary=\".cdk-overlay-container\"\n [cdkDragDisabled]=\"!isDragEnabled\"\n [attr.data-test-id]=\"testId + '-header'\"\n>\n <div class=\"title-container\">\n {{ config?.title?.i18n | translate }}\n </div>\n @if (!config?.hideCloseHeaderButton) {\n <button\n qdIconButton\n class=\"close\"\n color=\"secondary\"\n tabindex=\"-1\"\n (click)=\"close()\"\n [attr.aria-label]=\"'i18n.qd.dialog.action.close' | translate\"\n [data-test-id]=\"testId + '-close-button'\"\n >\n <qd-icon icon=\"timesLargeLight\"></qd-icon>\n </button>\n }\n</div>\n} @if (!config?.hideCloseHeaderButton && isFullWidth) {\n<button\n qdIconButton\n class=\"close\"\n color=\"secondary\"\n tabindex=\"-1\"\n (click)=\"close()\"\n [attr.aria-label]=\"'i18n.qd.dialog.action.close' | translate\"\n [data-test-id]=\"testId + '-close-button'\"\n>\n <qd-icon icon=\"timesLargeLight\"></qd-icon>\n</button>\n}\n\n<div class=\"wrapper-body\">\n <div [class.has-dialog-info-banners]=\"hasInfoBanner\" #banners>\n <ng-content select=\"qd-page-info-banner\"></ng-content>\n </div>\n <div class=\"body\" [class.full-width]=\"isFullWidth\" #body>\n <ng-content></ng-content>\n </div>\n</div>\n\n<div class=\"qd-dialog-actions\">\n @if (config.cancel) {\n <button qdButton qdButtonGhost color=\"secondary\" (click)=\"close()\" [data-test-id]=\"testId + '-cancel-button'\">\n {{ config?.cancel?.label?.i18n ?? \"i18n.qd.dialog.action.cancel\" | translate }}\n </button>\n } @if (config.primary) {\n <button qdButton (click)=\"primaryActionClicked()\" [data-test-id]=\"testId + '-primary-button'\">\n {{ config?.primary?.label?.i18n ?? \"i18n.qd.dialog.action.primary\" | translate }}\n </button>\n }\n <ng-content select=\"qd-dialog-action\"></ng-content>\n</div>\n", styles: ["qd-dialog{display:flex;width:100%;height:100%;flex-direction:column;background:#efefef}qd-dialog.full-width{position:relative;width:calc(100% - 3rem)!important;height:calc(100% - 3rem)!important;margin:1.5rem}qd-dialog.full-width .close{position:absolute;z-index:9999;top:1.25rem;right:1rem;color:#454545;cursor:pointer}.dialog-header{display:flex;height:3.125rem;flex-direction:row;align-items:center;justify-content:space-between;padding:.5rem 1.5rem;border-bottom:2px solid rgb(213,213,213);background:#fff}.dialog-header .title-container{display:block;color:#171717;font-weight:500}.dialog-header .close{cursor:pointer}.dialog-header.cdk-drag:not(.cdk-drag-disabled){cursor:move;-webkit-user-select:none;user-select:none}.wrapper-body{overflow:auto;flex:1;background:#efefef}.wrapper-body .has-dialog-info-banners{padding:1rem 1.25rem .5rem;border-bottom:rgb(213,213,213) solid .0625rem;background-color:#fff}.wrapper-body .has-dialog-info-banners qd-page-info-banner:last-child{margin-bottom:0}.wrapper-body .body.full-width{height:100%}.wrapper-body .body:not(.full-width){max-height:80vh;padding:1rem 1.5rem}.wrapper-body .body:not(.full-width) qd-section{padding-right:1.5rem;padding-left:1.5rem}.wrapper-body .body:not(.full-width) qd-text-section{margin-right:0;margin-left:0}qd-dialog.has-sections .wrapper-body .body:not(.full-width){padding:0}.qd-dialog-actions{display:flex;justify-content:flex-end;padding:.5rem 1.5rem;border-top:2px solid rgb(213,213,213);background:#efefef;column-gap:.625rem}\n"], dependencies: [{ kind: "directive", type: i1.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { 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: QdIconButtonComponent, selector: "button[qdIconButton], a[qdIconButton]", inputs: ["color", "data-test-id"] }, { kind: "component", type: QdIconComponent, selector: "qd-icon", inputs: ["icon", "status"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], encapsulation: i0.ViewEncapsulation.None });
|
|
1576
1639
|
}
|
|
1577
1640
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdDialogComponent, decorators: [{
|
|
1578
1641
|
type: Component,
|
|
1579
|
-
args: [{ selector: 'qd-dialog', host: { '[class.full-width]': 'isFullWidth' }, encapsulation: ViewEncapsulation.None, providers: [QdDialogComponent], standalone: false, template: "@if (!isFullWidth) {\n<div
|
|
1642
|
+
args: [{ selector: 'qd-dialog', host: { '[class.full-width]': 'isFullWidth' }, encapsulation: ViewEncapsulation.None, providers: [QdDialogComponent], standalone: false, template: "@if (!isFullWidth) {\n<div\n class=\"dialog-header\"\n cdkDrag\n cdkDragRootElement=\".cdk-overlay-pane\"\n cdkDragBoundary=\".cdk-overlay-container\"\n [cdkDragDisabled]=\"!isDragEnabled\"\n [attr.data-test-id]=\"testId + '-header'\"\n>\n <div class=\"title-container\">\n {{ config?.title?.i18n | translate }}\n </div>\n @if (!config?.hideCloseHeaderButton) {\n <button\n qdIconButton\n class=\"close\"\n color=\"secondary\"\n tabindex=\"-1\"\n (click)=\"close()\"\n [attr.aria-label]=\"'i18n.qd.dialog.action.close' | translate\"\n [data-test-id]=\"testId + '-close-button'\"\n >\n <qd-icon icon=\"timesLargeLight\"></qd-icon>\n </button>\n }\n</div>\n} @if (!config?.hideCloseHeaderButton && isFullWidth) {\n<button\n qdIconButton\n class=\"close\"\n color=\"secondary\"\n tabindex=\"-1\"\n (click)=\"close()\"\n [attr.aria-label]=\"'i18n.qd.dialog.action.close' | translate\"\n [data-test-id]=\"testId + '-close-button'\"\n>\n <qd-icon icon=\"timesLargeLight\"></qd-icon>\n</button>\n}\n\n<div class=\"wrapper-body\">\n <div [class.has-dialog-info-banners]=\"hasInfoBanner\" #banners>\n <ng-content select=\"qd-page-info-banner\"></ng-content>\n </div>\n <div class=\"body\" [class.full-width]=\"isFullWidth\" #body>\n <ng-content></ng-content>\n </div>\n</div>\n\n<div class=\"qd-dialog-actions\">\n @if (config.cancel) {\n <button qdButton qdButtonGhost color=\"secondary\" (click)=\"close()\" [data-test-id]=\"testId + '-cancel-button'\">\n {{ config?.cancel?.label?.i18n ?? \"i18n.qd.dialog.action.cancel\" | translate }}\n </button>\n } @if (config.primary) {\n <button qdButton (click)=\"primaryActionClicked()\" [data-test-id]=\"testId + '-primary-button'\">\n {{ config?.primary?.label?.i18n ?? \"i18n.qd.dialog.action.primary\" | translate }}\n </button>\n }\n <ng-content select=\"qd-dialog-action\"></ng-content>\n</div>\n", styles: ["qd-dialog{display:flex;width:100%;height:100%;flex-direction:column;background:#efefef}qd-dialog.full-width{position:relative;width:calc(100% - 3rem)!important;height:calc(100% - 3rem)!important;margin:1.5rem}qd-dialog.full-width .close{position:absolute;z-index:9999;top:1.25rem;right:1rem;color:#454545;cursor:pointer}.dialog-header{display:flex;height:3.125rem;flex-direction:row;align-items:center;justify-content:space-between;padding:.5rem 1.5rem;border-bottom:2px solid rgb(213,213,213);background:#fff}.dialog-header .title-container{display:block;color:#171717;font-weight:500}.dialog-header .close{cursor:pointer}.dialog-header.cdk-drag:not(.cdk-drag-disabled){cursor:move;-webkit-user-select:none;user-select:none}.wrapper-body{overflow:auto;flex:1;background:#efefef}.wrapper-body .has-dialog-info-banners{padding:1rem 1.25rem .5rem;border-bottom:rgb(213,213,213) solid .0625rem;background-color:#fff}.wrapper-body .has-dialog-info-banners qd-page-info-banner:last-child{margin-bottom:0}.wrapper-body .body.full-width{height:100%}.wrapper-body .body:not(.full-width){max-height:80vh;padding:1rem 1.5rem}.wrapper-body .body:not(.full-width) qd-section{padding-right:1.5rem;padding-left:1.5rem}.wrapper-body .body:not(.full-width) qd-text-section{margin-right:0;margin-left:0}qd-dialog.has-sections .wrapper-body .body:not(.full-width){padding:0}.qd-dialog-actions{display:flex;justify-content:flex-end;padding:.5rem 1.5rem;border-top:2px solid rgb(213,213,213);background:#efefef;column-gap:.625rem}\n"] }]
|
|
1580
1643
|
}], propDecorators: { testId: [{
|
|
1581
1644
|
type: Input,
|
|
1582
1645
|
args: ['data-test-id']
|
|
@@ -1823,7 +1886,7 @@ class QdMockButtonComponent {
|
|
|
1823
1886
|
additionalInfo;
|
|
1824
1887
|
testId = 'mocked';
|
|
1825
1888
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1826
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockButtonComponent, isStandalone: false, selector: "button[qdButton], a[qdButton], button[qd-button]", inputs: { disabled: "disabled", color: "color", icon: "icon", additionalInfo: "additionalInfo", testId: ["data-test-id", "testId"] }, host: { properties: { "attr.data-test-id": "testId" } }, ngImport: i0, template: 'disabled: {{disabled | json}}, color: {{color}}, icon: {{icon}}, testId: {{testId}} <ng-content></ng-content>', isInline: true, dependencies: [{ kind: "pipe", type: i1.JsonPipe, name: "json" }] });
|
|
1889
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockButtonComponent, isStandalone: false, selector: "button[qdButton], a[qdButton], button[qd-button]", inputs: { disabled: "disabled", color: "color", icon: "icon", additionalInfo: "additionalInfo", testId: ["data-test-id", "testId"] }, host: { properties: { "attr.data-test-id": "testId" } }, ngImport: i0, template: 'disabled: {{disabled | json}}, color: {{color}}, icon: {{icon}}, testId: {{testId}} <ng-content></ng-content>', isInline: true, dependencies: [{ kind: "pipe", type: i1$1.JsonPipe, name: "json" }] });
|
|
1827
1890
|
}
|
|
1828
1891
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockButtonComponent, decorators: [{
|
|
1829
1892
|
type: Component,
|
|
@@ -1994,7 +2057,7 @@ class QdMockChipComponent {
|
|
|
1994
2057
|
this.closeClickEmitter.emit(value);
|
|
1995
2058
|
}
|
|
1996
2059
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockChipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1997
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockChipComponent, isStandalone: false, selector: "qd-chip", inputs: { state: "state", close: "close", data: "data", testId: ["data-test-id", "testId"] }, outputs: { closeClickEmitter: "closeClickEmitter" }, host: { properties: { "attr.data-test-id": "this.dataTestId" } }, ngImport: i0, template: 'state: {{state}}, close: {{close | json}}, data: {{data}} <ng-content></ng-content>', isInline: true, dependencies: [{ kind: "pipe", type: i1.JsonPipe, name: "json" }] });
|
|
2060
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockChipComponent, isStandalone: false, selector: "qd-chip", inputs: { state: "state", close: "close", data: "data", testId: ["data-test-id", "testId"] }, outputs: { closeClickEmitter: "closeClickEmitter" }, host: { properties: { "attr.data-test-id": "this.dataTestId" } }, ngImport: i0, template: 'state: {{state}}, close: {{close | json}}, data: {{data}} <ng-content></ng-content>', isInline: true, dependencies: [{ kind: "pipe", type: i1$1.JsonPipe, name: "json" }] });
|
|
1998
2061
|
}
|
|
1999
2062
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockChipComponent, decorators: [{
|
|
2000
2063
|
type: Component,
|
|
@@ -2087,7 +2150,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
2087
2150
|
class QdMockContactCardComponent {
|
|
2088
2151
|
contactData;
|
|
2089
2152
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockContactCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2090
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockContactCardComponent, isStandalone: false, selector: "qd-contact-card", inputs: { contactData: "contactData" }, ngImport: i0, template: 'contactData: {{contactData | json}}', isInline: true, dependencies: [{ kind: "pipe", type: i1.JsonPipe, name: "json" }] });
|
|
2153
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockContactCardComponent, isStandalone: false, selector: "qd-contact-card", inputs: { contactData: "contactData" }, ngImport: i0, template: 'contactData: {{contactData | json}}', isInline: true, dependencies: [{ kind: "pipe", type: i1$1.JsonPipe, name: "json" }] });
|
|
2091
2154
|
}
|
|
2092
2155
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockContactCardComponent, decorators: [{
|
|
2093
2156
|
type: Component,
|
|
@@ -2338,7 +2401,7 @@ class QdMockFileCollectorItemComponent {
|
|
|
2338
2401
|
uploadTimestamp;
|
|
2339
2402
|
testId;
|
|
2340
2403
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockFileCollectorItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2341
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockFileCollectorItemComponent, isStandalone: false, selector: "qd-file-collector-item", inputs: { progress: "progress", newlyUploaded: "newlyUploaded", collectedFile: "collectedFile", error: "error", readonly: "readonly", viewonly: "viewonly", downloadFilesWithHttpClient: "downloadFilesWithHttpClient", uploadTimestamp: "uploadTimestamp", testId: ["data-test-id", "testId"] }, ngImport: i0, template: 'progress: {{ progress }}, newlyUploaded: {{ newlyUploaded ? "true" : "false" }}, collectedFile: {{ collectedFile | json }}, error: {{ error | json }}, readonly: {{ readonly ? "true" : "false" }}, viewonly: {{ viewonly ? "true" : "false" }}, downloadFilesWithHttpClient: {{ downloadFilesWithHttpClient ? "true" : "false" }}', isInline: true, dependencies: [{ kind: "pipe", type: i1.JsonPipe, name: "json" }] });
|
|
2404
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockFileCollectorItemComponent, isStandalone: false, selector: "qd-file-collector-item", inputs: { progress: "progress", newlyUploaded: "newlyUploaded", collectedFile: "collectedFile", error: "error", readonly: "readonly", viewonly: "viewonly", downloadFilesWithHttpClient: "downloadFilesWithHttpClient", uploadTimestamp: "uploadTimestamp", testId: ["data-test-id", "testId"] }, ngImport: i0, template: 'progress: {{ progress }}, newlyUploaded: {{ newlyUploaded ? "true" : "false" }}, collectedFile: {{ collectedFile | json }}, error: {{ error | json }}, readonly: {{ readonly ? "true" : "false" }}, viewonly: {{ viewonly ? "true" : "false" }}, downloadFilesWithHttpClient: {{ downloadFilesWithHttpClient ? "true" : "false" }}', isInline: true, dependencies: [{ kind: "pipe", type: i1$1.JsonPipe, name: "json" }] });
|
|
2342
2405
|
}
|
|
2343
2406
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockFileCollectorItemComponent, decorators: [{
|
|
2344
2407
|
type: Component,
|
|
@@ -2417,7 +2480,7 @@ class QdMockFileCollectorItemToolsComponent {
|
|
|
2417
2480
|
downloadFilesWithHttpClient = false;
|
|
2418
2481
|
testId;
|
|
2419
2482
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockFileCollectorItemToolsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2420
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockFileCollectorItemToolsComponent, isStandalone: false, selector: "qd-file-collector-item-tools", inputs: { progress: "progress", collectedFile: "collectedFile", error: "error", readonly: "readonly", viewonly: "viewonly", downloadFilesWithHttpClient: "downloadFilesWithHttpClient", testId: ["data-test-id", "testId"] }, ngImport: i0, template: 'progress: {{ progress }}, collectedFile: {{ collectedFile | json }}, error: {{ error | json }}, readonly: {{ readonly ? "true" : "false" }}, viewonly: {{ viewonly ? "true" : "false" }}, downloadFilesWithHttpClient: {{ downloadFilesWithHttpClient ? "true" : "false" }}', isInline: true, dependencies: [{ kind: "pipe", type: i1.JsonPipe, name: "json" }] });
|
|
2483
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockFileCollectorItemToolsComponent, isStandalone: false, selector: "qd-file-collector-item-tools", inputs: { progress: "progress", collectedFile: "collectedFile", error: "error", readonly: "readonly", viewonly: "viewonly", downloadFilesWithHttpClient: "downloadFilesWithHttpClient", testId: ["data-test-id", "testId"] }, ngImport: i0, template: 'progress: {{ progress }}, collectedFile: {{ collectedFile | json }}, error: {{ error | json }}, readonly: {{ readonly ? "true" : "false" }}, viewonly: {{ viewonly ? "true" : "false" }}, downloadFilesWithHttpClient: {{ downloadFilesWithHttpClient ? "true" : "false" }}', isInline: true, dependencies: [{ kind: "pipe", type: i1$1.JsonPipe, name: "json" }] });
|
|
2421
2484
|
}
|
|
2422
2485
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockFileCollectorItemToolsComponent, decorators: [{
|
|
2423
2486
|
type: Component,
|
|
@@ -2449,7 +2512,7 @@ class QdMockFileCollectorDialogItemComponent {
|
|
|
2449
2512
|
error;
|
|
2450
2513
|
testId;
|
|
2451
2514
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockFileCollectorDialogItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2452
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockFileCollectorDialogItemComponent, isStandalone: false, selector: "qd-file-collector-dialog-item", inputs: { progress: "progress", collectedFile: "collectedFile", error: "error", testId: ["data-test-id", "testId"] }, ngImport: i0, template: 'progress: {{ progress }}, collectedFile: {{ collectedFile | json }}, error: {{ error | json }}', isInline: true, dependencies: [{ kind: "pipe", type: i1.JsonPipe, name: "json" }] });
|
|
2515
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockFileCollectorDialogItemComponent, isStandalone: false, selector: "qd-file-collector-dialog-item", inputs: { progress: "progress", collectedFile: "collectedFile", error: "error", testId: ["data-test-id", "testId"] }, ngImport: i0, template: 'progress: {{ progress }}, collectedFile: {{ collectedFile | json }}, error: {{ error | json }}', isInline: true, dependencies: [{ kind: "pipe", type: i1$1.JsonPipe, name: "json" }] });
|
|
2453
2516
|
}
|
|
2454
2517
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockFileCollectorDialogItemComponent, decorators: [{
|
|
2455
2518
|
type: Component,
|
|
@@ -2473,7 +2536,7 @@ class QdMockFileCollectorDialogItemErrorComponent {
|
|
|
2473
2536
|
error;
|
|
2474
2537
|
testId;
|
|
2475
2538
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockFileCollectorDialogItemErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2476
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockFileCollectorDialogItemErrorComponent, isStandalone: false, selector: "qd-file-collector-dialog-item-error", inputs: { error: "error", testId: ["data-test-id", "testId"] }, ngImport: i0, template: 'error: {{ error | json }}', isInline: true, dependencies: [{ kind: "pipe", type: i1.JsonPipe, name: "json" }] });
|
|
2539
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockFileCollectorDialogItemErrorComponent, isStandalone: false, selector: "qd-file-collector-dialog-item-error", inputs: { error: "error", testId: ["data-test-id", "testId"] }, ngImport: i0, template: 'error: {{ error | json }}', isInline: true, dependencies: [{ kind: "pipe", type: i1$1.JsonPipe, name: "json" }] });
|
|
2477
2540
|
}
|
|
2478
2541
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockFileCollectorDialogItemErrorComponent, decorators: [{
|
|
2479
2542
|
type: Component,
|
|
@@ -2551,7 +2614,7 @@ class QdMockFilterComponent {
|
|
|
2551
2614
|
return this.testId;
|
|
2552
2615
|
}
|
|
2553
2616
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockFilterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2554
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockFilterComponent, isStandalone: false, selector: "qd-filter", inputs: { filterId: "filterId", filterData: "filterData", testId: ["data-test-id", "testId"] }, host: { properties: { "attr.data-test-id": "this.dataTestId" } }, ngImport: i0, template: 'filterId: {{filterId}}, filterData: {{filterData | json}}', isInline: true, dependencies: [{ kind: "pipe", type: i1.JsonPipe, name: "json" }] });
|
|
2617
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockFilterComponent, isStandalone: false, selector: "qd-filter", inputs: { filterId: "filterId", filterData: "filterData", testId: ["data-test-id", "testId"] }, host: { properties: { "attr.data-test-id": "this.dataTestId" } }, ngImport: i0, template: 'filterId: {{filterId}}, filterData: {{filterData | json}}', isInline: true, dependencies: [{ kind: "pipe", type: i1$1.JsonPipe, name: "json" }] });
|
|
2555
2618
|
}
|
|
2556
2619
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockFilterComponent, decorators: [{
|
|
2557
2620
|
type: Component,
|
|
@@ -2612,7 +2675,7 @@ class QdMockFilterCategoryComponent {
|
|
|
2612
2675
|
return this.testId;
|
|
2613
2676
|
}
|
|
2614
2677
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockFilterCategoryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2615
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockFilterCategoryComponent, isStandalone: false, selector: "qd-filter-category", inputs: { filterId: "filterId", categoryIndex: "categoryIndex", lastCategory: "lastCategory", testId: ["data-test-id", "testId"] }, host: { properties: { "attr.data-test-id": "this.dataTestId" } }, ngImport: i0, template: 'filterId: {{filterId}}, categoryIndex: {{categoryIndex}}, lastCategory {{lastCategory | json}}', isInline: true, dependencies: [{ kind: "pipe", type: i1.JsonPipe, name: "json" }] });
|
|
2678
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockFilterCategoryComponent, isStandalone: false, selector: "qd-filter-category", inputs: { filterId: "filterId", categoryIndex: "categoryIndex", lastCategory: "lastCategory", testId: ["data-test-id", "testId"] }, host: { properties: { "attr.data-test-id": "this.dataTestId" } }, ngImport: i0, template: 'filterId: {{filterId}}, categoryIndex: {{categoryIndex}}, lastCategory {{lastCategory | json}}', isInline: true, dependencies: [{ kind: "pipe", type: i1$1.JsonPipe, name: "json" }] });
|
|
2616
2679
|
}
|
|
2617
2680
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockFilterCategoryComponent, decorators: [{
|
|
2618
2681
|
type: Component,
|
|
@@ -2645,7 +2708,7 @@ class QdMockFilterCategoryDateComponent {
|
|
|
2645
2708
|
return this.testId;
|
|
2646
2709
|
}
|
|
2647
2710
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockFilterCategoryDateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2648
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockFilterCategoryDateComponent, isStandalone: false, selector: "qd-filter-category-date", inputs: { filterId: "filterId", categoryIndex: "categoryIndex", timePickerConfig: "timePickerConfig", testId: ["data-test-id", "testId"] }, host: { properties: { "attr.data-test-id": "this.dataTestId" } }, ngImport: i0, template: 'filterId: {{filterId}}, categoryIndex: {{categoryIndex}}, timePickerConfig: {{timePickerConfig | json}}', isInline: true, dependencies: [{ kind: "pipe", type: i1.JsonPipe, name: "json" }] });
|
|
2711
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockFilterCategoryDateComponent, isStandalone: false, selector: "qd-filter-category-date", inputs: { filterId: "filterId", categoryIndex: "categoryIndex", timePickerConfig: "timePickerConfig", testId: ["data-test-id", "testId"] }, host: { properties: { "attr.data-test-id": "this.dataTestId" } }, ngImport: i0, template: 'filterId: {{filterId}}, categoryIndex: {{categoryIndex}}, timePickerConfig: {{timePickerConfig | json}}', isInline: true, dependencies: [{ kind: "pipe", type: i1$1.JsonPipe, name: "json" }] });
|
|
2649
2712
|
}
|
|
2650
2713
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockFilterCategoryDateComponent, decorators: [{
|
|
2651
2714
|
type: Component,
|
|
@@ -2678,7 +2741,7 @@ class QdMockFilterCategoryDateRangeComponent {
|
|
|
2678
2741
|
return this.testId;
|
|
2679
2742
|
}
|
|
2680
2743
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockFilterCategoryDateRangeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2681
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockFilterCategoryDateRangeComponent, isStandalone: false, selector: "qd-filter-category-date-range", inputs: { filterId: "filterId", categoryIndex: "categoryIndex", timePickerConfig: "timePickerConfig", testId: ["data-test-id", "testId"] }, host: { properties: { "attr.data-test-id": "this.dataTestId" } }, ngImport: i0, template: 'filterId: {{filterId}}, categoryIndex: {{categoryIndex}}, timePickerConfig: {{timePickerConfig | json}}', isInline: true, dependencies: [{ kind: "pipe", type: i1.JsonPipe, name: "json" }] });
|
|
2744
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockFilterCategoryDateRangeComponent, isStandalone: false, selector: "qd-filter-category-date-range", inputs: { filterId: "filterId", categoryIndex: "categoryIndex", timePickerConfig: "timePickerConfig", testId: ["data-test-id", "testId"] }, host: { properties: { "attr.data-test-id": "this.dataTestId" } }, ngImport: i0, template: 'filterId: {{filterId}}, categoryIndex: {{categoryIndex}}, timePickerConfig: {{timePickerConfig | json}}', isInline: true, dependencies: [{ kind: "pipe", type: i1$1.JsonPipe, name: "json" }] });
|
|
2682
2745
|
}
|
|
2683
2746
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockFilterCategoryDateRangeComponent, decorators: [{
|
|
2684
2747
|
type: Component,
|
|
@@ -2811,7 +2874,7 @@ class QdMockFilterItemDateComponent {
|
|
|
2811
2874
|
return this.testId;
|
|
2812
2875
|
}
|
|
2813
2876
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockFilterItemDateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2814
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockFilterItemDateComponent, isStandalone: false, selector: "qd-filter-item-date", inputs: { filterId: "filterId", categoryIndex: "categoryIndex", itemIndex: "itemIndex", timePickerConfig: "timePickerConfig", testId: ["data-test-id", "testId"] }, host: { properties: { "attr.data-test-id": "this.dataTestId" } }, ngImport: i0, template: 'filterId: {{filterId}}, categoryIndex: {{categoryIndex}}, itemIndex: {{itemIndex}}, timePickerConfig: {{timePickerConfig | json}}', isInline: true, dependencies: [{ kind: "pipe", type: i1.JsonPipe, name: "json" }] });
|
|
2877
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockFilterItemDateComponent, isStandalone: false, selector: "qd-filter-item-date", inputs: { filterId: "filterId", categoryIndex: "categoryIndex", itemIndex: "itemIndex", timePickerConfig: "timePickerConfig", testId: ["data-test-id", "testId"] }, host: { properties: { "attr.data-test-id": "this.dataTestId" } }, ngImport: i0, template: 'filterId: {{filterId}}, categoryIndex: {{categoryIndex}}, itemIndex: {{itemIndex}}, timePickerConfig: {{timePickerConfig | json}}', isInline: true, dependencies: [{ kind: "pipe", type: i1$1.JsonPipe, name: "json" }] });
|
|
2815
2878
|
}
|
|
2816
2879
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockFilterItemDateComponent, decorators: [{
|
|
2817
2880
|
type: Component,
|
|
@@ -2848,7 +2911,7 @@ class QdMockFilterItemDateRangeComponent {
|
|
|
2848
2911
|
}
|
|
2849
2912
|
open() { }
|
|
2850
2913
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockFilterItemDateRangeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2851
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockFilterItemDateRangeComponent, isStandalone: false, selector: "qd-filter-item-date-range", inputs: { filterId: "filterId", categoryIndex: "categoryIndex", itemIndex: "itemIndex", timePickerConfig: "timePickerConfig", testId: ["data-test-id", "testId"] }, host: { properties: { "attr.data-test-id": "this.dataTestId" } }, ngImport: i0, template: 'filterId: {{filterId}}, categoryIndex: {{categoryIndex}}, itemIndex: {{itemIndex}}, timePickerConfig: {{timePickerConfig | json}}', isInline: true, dependencies: [{ kind: "pipe", type: i1.JsonPipe, name: "json" }] });
|
|
2914
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockFilterItemDateRangeComponent, isStandalone: false, selector: "qd-filter-item-date-range", inputs: { filterId: "filterId", categoryIndex: "categoryIndex", itemIndex: "itemIndex", timePickerConfig: "timePickerConfig", testId: ["data-test-id", "testId"] }, host: { properties: { "attr.data-test-id": "this.dataTestId" } }, ngImport: i0, template: 'filterId: {{filterId}}, categoryIndex: {{categoryIndex}}, itemIndex: {{itemIndex}}, timePickerConfig: {{timePickerConfig | json}}', isInline: true, dependencies: [{ kind: "pipe", type: i1$1.JsonPipe, name: "json" }] });
|
|
2852
2915
|
}
|
|
2853
2916
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockFilterItemDateRangeComponent, decorators: [{
|
|
2854
2917
|
type: Component,
|
|
@@ -3229,7 +3292,7 @@ class QdMockCheckboxChipsComponent {
|
|
|
3229
3292
|
return this.testId;
|
|
3230
3293
|
}
|
|
3231
3294
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockCheckboxChipsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3232
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockCheckboxChipsComponent, isStandalone: false, selector: "qd-checkbox-chips", inputs: { values: "values", config: "config", testId: ["data-test-id", "testId"] }, host: { properties: { "attr.data-test-id": "this.dataTestId" } }, ngImport: i0, template: 'config: {{config | json}}, values: {{values}}', isInline: true, dependencies: [{ kind: "pipe", type: i1.JsonPipe, name: "json" }] });
|
|
3295
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockCheckboxChipsComponent, isStandalone: false, selector: "qd-checkbox-chips", inputs: { values: "values", config: "config", testId: ["data-test-id", "testId"] }, host: { properties: { "attr.data-test-id": "this.dataTestId" } }, ngImport: i0, template: 'config: {{config | json}}, values: {{values}}', isInline: true, dependencies: [{ kind: "pipe", type: i1$1.JsonPipe, name: "json" }] });
|
|
3233
3296
|
}
|
|
3234
3297
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockCheckboxChipsComponent, decorators: [{
|
|
3235
3298
|
type: Component,
|
|
@@ -3255,7 +3318,7 @@ class QdMockCheckboxChipsItemComponent {
|
|
|
3255
3318
|
data;
|
|
3256
3319
|
testId = 'checkbox-chips-item';
|
|
3257
3320
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockCheckboxChipsItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3258
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockCheckboxChipsItemComponent, isStandalone: false, selector: "qd-checkbox-chips-item", inputs: { data: "data", testId: ["data-test-id", "testId"] }, ngImport: i0, template: 'data: {{ data | json }}', isInline: true, dependencies: [{ kind: "pipe", type: i1.JsonPipe, name: "json" }] });
|
|
3321
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockCheckboxChipsItemComponent, isStandalone: false, selector: "qd-checkbox-chips-item", inputs: { data: "data", testId: ["data-test-id", "testId"] }, ngImport: i0, template: 'data: {{ data | json }}', isInline: true, dependencies: [{ kind: "pipe", type: i1$1.JsonPipe, name: "json" }] });
|
|
3259
3322
|
}
|
|
3260
3323
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockCheckboxChipsItemComponent, decorators: [{
|
|
3261
3324
|
type: Component,
|
|
@@ -3287,7 +3350,7 @@ class QdMockCheckboxComponent {
|
|
|
3287
3350
|
this.valueChange.emit(this.value);
|
|
3288
3351
|
}
|
|
3289
3352
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockCheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3290
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockCheckboxComponent, isStandalone: false, selector: "qd-checkbox", inputs: { inputData: "inputData", value: "value", disabled: "disabled", hasAutofocus: "hasAutofocus", isAriaHidden: "isAriaHidden", testId: ["data-test-id", "testId"] }, outputs: { valueChange: "valueChange" }, host: { listeners: { "click": "handleClick()" }, properties: { "attr.data-test-id": "this.dataTestId" } }, ngImport: i0, template: 'inputData: {{inputData | json}}, value: {{value}}, disabled: {{disabled | json}}', isInline: true, dependencies: [{ kind: "pipe", type: i1.JsonPipe, name: "json" }] });
|
|
3353
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockCheckboxComponent, isStandalone: false, selector: "qd-checkbox", inputs: { inputData: "inputData", value: "value", disabled: "disabled", hasAutofocus: "hasAutofocus", isAriaHidden: "isAriaHidden", testId: ["data-test-id", "testId"] }, outputs: { valueChange: "valueChange" }, host: { listeners: { "click": "handleClick()" }, properties: { "attr.data-test-id": "this.dataTestId" } }, ngImport: i0, template: 'inputData: {{inputData | json}}, value: {{value}}, disabled: {{disabled | json}}', isInline: true, dependencies: [{ kind: "pipe", type: i1$1.JsonPipe, name: "json" }] });
|
|
3291
3354
|
}
|
|
3292
3355
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockCheckboxComponent, decorators: [{
|
|
3293
3356
|
type: Component,
|
|
@@ -3329,7 +3392,7 @@ class QdMockCheckboxesComponent {
|
|
|
3329
3392
|
return this.testId;
|
|
3330
3393
|
}
|
|
3331
3394
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockCheckboxesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3332
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockCheckboxesComponent, isStandalone: false, selector: "qd-checkboxes", inputs: { formControlName: "formControlName", values: "values", config: "config", testId: ["data-test-id", "testId"] }, host: { properties: { "attr.data-test-id": "this.dataTestId" } }, ngImport: i0, template: 'inputData: {{config | json}}, values: {{values}}', isInline: true, dependencies: [{ kind: "pipe", type: i1.JsonPipe, name: "json" }] });
|
|
3395
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockCheckboxesComponent, isStandalone: false, selector: "qd-checkboxes", inputs: { formControlName: "formControlName", values: "values", config: "config", testId: ["data-test-id", "testId"] }, host: { properties: { "attr.data-test-id": "this.dataTestId" } }, ngImport: i0, template: 'inputData: {{config | json}}, values: {{values}}', isInline: true, dependencies: [{ kind: "pipe", type: i1$1.JsonPipe, name: "json" }] });
|
|
3333
3396
|
}
|
|
3334
3397
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockCheckboxesComponent, decorators: [{
|
|
3335
3398
|
type: Component,
|
|
@@ -3363,7 +3426,7 @@ class QdMockDatepickerComponent {
|
|
|
3363
3426
|
this.valueChange.emit(value);
|
|
3364
3427
|
}
|
|
3365
3428
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockDatepickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3366
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockDatepickerComponent, isStandalone: false, selector: "qd-datepicker", inputs: { config: "config", formControlName: "formControlName", value: "value", hasCalendarOnly: "hasCalendarOnly" }, outputs: { valueChange: "valueChange" }, ngImport: i0, template: 'config: {{config | json}}, formControlName: {{formControlName}}, value: {{value}}, hasCalendarOnly: {{hasCalendarOnly | json}}', isInline: true, dependencies: [{ kind: "pipe", type: i1.JsonPipe, name: "json" }] });
|
|
3429
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockDatepickerComponent, isStandalone: false, selector: "qd-datepicker", inputs: { config: "config", formControlName: "formControlName", value: "value", hasCalendarOnly: "hasCalendarOnly" }, outputs: { valueChange: "valueChange" }, ngImport: i0, template: 'config: {{config | json}}, formControlName: {{formControlName}}, value: {{value}}, hasCalendarOnly: {{hasCalendarOnly | json}}', isInline: true, dependencies: [{ kind: "pipe", type: i1$1.JsonPipe, name: "json" }] });
|
|
3367
3430
|
}
|
|
3368
3431
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockDatepickerComponent, decorators: [{
|
|
3369
3432
|
type: Component,
|
|
@@ -3397,7 +3460,7 @@ class QdMockDropdownComponent {
|
|
|
3397
3460
|
return this.testId;
|
|
3398
3461
|
}
|
|
3399
3462
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockDropdownComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3400
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockDropdownComponent, isStandalone: false, selector: "qd-dropdown", inputs: { value: "value", id: "id", formControlName: "formControlName", config: "config", testId: ["data-test-id", "testId"], qdPopoverMaxHeight: "qdPopoverMaxHeight" }, outputs: { valueChange: "valueChange" }, host: { properties: { "attr.data-test-id": "this.dataTestId" } }, ngImport: i0, template: 'value: {{value}}, config: {{config | json}}, id: {{id}}, qdPopoverMaxHeight: {{qdPopoverMaxHeight}}', isInline: true, dependencies: [{ kind: "pipe", type: i1.JsonPipe, name: "json" }] });
|
|
3463
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockDropdownComponent, isStandalone: false, selector: "qd-dropdown", inputs: { value: "value", id: "id", formControlName: "formControlName", config: "config", testId: ["data-test-id", "testId"], qdPopoverMaxHeight: "qdPopoverMaxHeight" }, outputs: { valueChange: "valueChange" }, host: { properties: { "attr.data-test-id": "this.dataTestId" } }, ngImport: i0, template: 'value: {{value}}, config: {{config | json}}, id: {{id}}, qdPopoverMaxHeight: {{qdPopoverMaxHeight}}', isInline: true, dependencies: [{ kind: "pipe", type: i1$1.JsonPipe, name: "json" }] });
|
|
3401
3464
|
}
|
|
3402
3465
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockDropdownComponent, decorators: [{
|
|
3403
3466
|
type: Component,
|
|
@@ -3563,7 +3626,7 @@ class QdMockFormReadonlyComponent {
|
|
|
3563
3626
|
readonlyAction;
|
|
3564
3627
|
testId = '-readonly';
|
|
3565
3628
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockFormReadonlyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3566
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockFormReadonlyComponent, isStandalone: false, selector: "qd-form-readonly", inputs: { values: "values", readonlyAction: "readonlyAction", testId: ["data-test-id", "testId"] }, ngImport: i0, template: 'value: {{ values | json }}, readonlyAction: {{ readonlyAction | json }}, testId: {{ testId }}', isInline: true, dependencies: [{ kind: "pipe", type: i1.JsonPipe, name: "json" }] });
|
|
3629
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockFormReadonlyComponent, isStandalone: false, selector: "qd-form-readonly", inputs: { values: "values", readonlyAction: "readonlyAction", testId: ["data-test-id", "testId"] }, ngImport: i0, template: 'value: {{ values | json }}, readonlyAction: {{ readonlyAction | json }}, testId: {{ testId }}', isInline: true, dependencies: [{ kind: "pipe", type: i1$1.JsonPipe, name: "json" }] });
|
|
3567
3630
|
}
|
|
3568
3631
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockFormReadonlyComponent, decorators: [{
|
|
3569
3632
|
type: Component,
|
|
@@ -3588,7 +3651,7 @@ class QdMockFormViewonlyComponent {
|
|
|
3588
3651
|
status;
|
|
3589
3652
|
testId = '-viewonly';
|
|
3590
3653
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockFormViewonlyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3591
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockFormViewonlyComponent, isStandalone: false, selector: "qd-form-viewonly", inputs: { values: "values", viewonlyAction: "viewonlyAction", status: "status", testId: ["data-test-id", "testId"] }, ngImport: i0, template: 'value: {{ values | json }}, viewonlyAction: {{ viewonlyAction | json }}, status: {{ status | json }}, testId: {{ testId }}', isInline: true, dependencies: [{ kind: "pipe", type: i1.JsonPipe, name: "json" }] });
|
|
3654
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockFormViewonlyComponent, isStandalone: false, selector: "qd-form-viewonly", inputs: { values: "values", viewonlyAction: "viewonlyAction", status: "status", testId: ["data-test-id", "testId"] }, ngImport: i0, template: 'value: {{ values | json }}, viewonlyAction: {{ viewonlyAction | json }}, status: {{ status | json }}, testId: {{ testId }}', isInline: true, dependencies: [{ kind: "pipe", type: i1$1.JsonPipe, name: "json" }] });
|
|
3592
3655
|
}
|
|
3593
3656
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockFormViewonlyComponent, decorators: [{
|
|
3594
3657
|
type: Component,
|
|
@@ -3652,7 +3715,7 @@ class QdMockInputComponent {
|
|
|
3652
3715
|
<input [(ngModel)]="value" (ngModelChange)="modelChanged($event)" />
|
|
3653
3716
|
<button class="clear" (click)="clickClear.emit()"></button>
|
|
3654
3717
|
<ng-content></ng-content>
|
|
3655
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i1$
|
|
3718
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "pipe", type: i1$1.JsonPipe, name: "json" }] });
|
|
3656
3719
|
}
|
|
3657
3720
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockInputComponent, decorators: [{
|
|
3658
3721
|
type: Component,
|
|
@@ -3738,7 +3801,7 @@ class QdMockPinCodeComponent {
|
|
|
3738
3801
|
], ngImport: i0, template: `
|
|
3739
3802
|
formControlName: {{ formControlName }}, value: {{ value }}, config: {{ config | json }}, testId:
|
|
3740
3803
|
{{ testId | json }},
|
|
3741
|
-
`, isInline: true, dependencies: [{ kind: "pipe", type: i1.JsonPipe, name: "json" }] });
|
|
3804
|
+
`, isInline: true, dependencies: [{ kind: "pipe", type: i1$1.JsonPipe, name: "json" }] });
|
|
3742
3805
|
}
|
|
3743
3806
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockPinCodeComponent, decorators: [{
|
|
3744
3807
|
type: Component,
|
|
@@ -3786,7 +3849,7 @@ class QdMockRadioButtonsComponent {
|
|
|
3786
3849
|
return { value };
|
|
3787
3850
|
}
|
|
3788
3851
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockRadioButtonsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3789
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockRadioButtonsComponent, isStandalone: false, selector: "qd-radio-buttons", inputs: { value: "value", config: "config", formControlName: "formControlName", isAriaHidden: "isAriaHidden", testId: ["data-test-id", "testId"] }, host: { properties: { "attr.data-test-id": "this.dataTestId" } }, ngImport: i0, template: 'config: {{config | json}}, value: {{value}}', isInline: true, dependencies: [{ kind: "pipe", type: i1.JsonPipe, name: "json" }] });
|
|
3852
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockRadioButtonsComponent, isStandalone: false, selector: "qd-radio-buttons", inputs: { value: "value", config: "config", formControlName: "formControlName", isAriaHidden: "isAriaHidden", testId: ["data-test-id", "testId"] }, host: { properties: { "attr.data-test-id": "this.dataTestId" } }, ngImport: i0, template: 'config: {{config | json}}, value: {{value}}', isInline: true, dependencies: [{ kind: "pipe", type: i1$1.JsonPipe, name: "json" }] });
|
|
3790
3853
|
}
|
|
3791
3854
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockRadioButtonsComponent, decorators: [{
|
|
3792
3855
|
type: Component,
|
|
@@ -3838,7 +3901,7 @@ class QdMockSwitchComponent {
|
|
|
3838
3901
|
return;
|
|
3839
3902
|
}
|
|
3840
3903
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockSwitchComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3841
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockSwitchComponent, isStandalone: false, selector: "qd-switch", inputs: { inputData: "inputData", value: "value", id: "id", disabled: "disabled", testId: ["data-test-id", "testId"] }, outputs: { valueChange: "valueChange" }, host: { properties: { "attr.data-test-id": "this.dataTestId" } }, ngImport: i0, template: 'inputData: {{inputData | json}}, id: {{id}}, disabled: {{disabled | json}}, value: {{value}}', isInline: true, dependencies: [{ kind: "pipe", type: i1.JsonPipe, name: "json" }] });
|
|
3904
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockSwitchComponent, isStandalone: false, selector: "qd-switch", inputs: { inputData: "inputData", value: "value", id: "id", disabled: "disabled", testId: ["data-test-id", "testId"] }, outputs: { valueChange: "valueChange" }, host: { properties: { "attr.data-test-id": "this.dataTestId" } }, ngImport: i0, template: 'inputData: {{inputData | json}}, id: {{id}}, disabled: {{disabled | json}}, value: {{value}}', isInline: true, dependencies: [{ kind: "pipe", type: i1$1.JsonPipe, name: "json" }] });
|
|
3842
3905
|
}
|
|
3843
3906
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockSwitchComponent, decorators: [{
|
|
3844
3907
|
type: Component,
|
|
@@ -3892,7 +3955,7 @@ class QdMockSwitchesComponent {
|
|
|
3892
3955
|
return;
|
|
3893
3956
|
}
|
|
3894
3957
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockSwitchesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3895
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockSwitchesComponent, isStandalone: false, selector: "qd-switch", inputs: { formControlName: "formControlName", values: "values", config: "config", testId: ["data-test-id", "testId"] }, outputs: { valuesChange: "valuesChange" }, host: { properties: { "attr.data-test-id": "this.dataTestId" } }, ngImport: i0, template: 'config: {{config | json}}, id: {{id}}, values: {{values}}', isInline: true, dependencies: [{ kind: "pipe", type: i1.JsonPipe, name: "json" }] });
|
|
3958
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockSwitchesComponent, isStandalone: false, selector: "qd-switch", inputs: { formControlName: "formControlName", values: "values", config: "config", testId: ["data-test-id", "testId"] }, outputs: { valuesChange: "valuesChange" }, host: { properties: { "attr.data-test-id": "this.dataTestId" } }, ngImport: i0, template: 'config: {{config | json}}, id: {{id}}, values: {{values}}', isInline: true, dependencies: [{ kind: "pipe", type: i1$1.JsonPipe, name: "json" }] });
|
|
3896
3959
|
}
|
|
3897
3960
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockSwitchesComponent, decorators: [{
|
|
3898
3961
|
type: Component,
|
|
@@ -3940,7 +4003,7 @@ class QdMockTextareaComponent {
|
|
|
3940
4003
|
return;
|
|
3941
4004
|
}
|
|
3942
4005
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockTextareaComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3943
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockTextareaComponent, isStandalone: false, selector: "qd-textarea", inputs: { formControlName: "formControlName", value: "value", config: "config", testId: ["data-test-id", "testId"] }, outputs: { valueChange: "valueChange" }, host: { properties: { "attr.data-test-id": "this.dataTestId" } }, ngImport: i0, template: 'config: {{config | json}}, value: {{value}}', isInline: true, dependencies: [{ kind: "pipe", type: i1.JsonPipe, name: "json" }] });
|
|
4006
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockTextareaComponent, isStandalone: false, selector: "qd-textarea", inputs: { formControlName: "formControlName", value: "value", config: "config", testId: ["data-test-id", "testId"] }, outputs: { valueChange: "valueChange" }, host: { properties: { "attr.data-test-id": "this.dataTestId" } }, ngImport: i0, template: 'config: {{config | json}}, value: {{value}}', isInline: true, dependencies: [{ kind: "pipe", type: i1$1.JsonPipe, name: "json" }] });
|
|
3944
4007
|
}
|
|
3945
4008
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockTextareaComponent, decorators: [{
|
|
3946
4009
|
type: Component,
|
|
@@ -4391,7 +4454,7 @@ class QdMockNotificationComponent {
|
|
|
4391
4454
|
return;
|
|
4392
4455
|
}
|
|
4393
4456
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockNotificationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4394
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockNotificationComponent, isStandalone: false, selector: "qd-notification", inputs: { state: "state", notification: "notification" }, host: { classAttribute: "qd-mock-notification" }, ngImport: i0, template: 'state: {{state}}, notification: {{notification | json}} <ng-content></ng-content>', isInline: true, dependencies: [{ kind: "pipe", type: i1.JsonPipe, name: "json" }] });
|
|
4457
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockNotificationComponent, isStandalone: false, selector: "qd-notification", inputs: { state: "state", notification: "notification" }, host: { classAttribute: "qd-mock-notification" }, ngImport: i0, template: 'state: {{state}}, notification: {{notification | json}} <ng-content></ng-content>', isInline: true, dependencies: [{ kind: "pipe", type: i1$1.JsonPipe, name: "json" }] });
|
|
4395
4458
|
}
|
|
4396
4459
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockNotificationComponent, decorators: [{
|
|
4397
4460
|
type: Component,
|
|
@@ -4486,7 +4549,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
4486
4549
|
class QdMockPageComponent {
|
|
4487
4550
|
config;
|
|
4488
4551
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4489
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockPageComponent, isStandalone: false, selector: "qd-page", inputs: { config: "config" }, ngImport: i0, template: `config: {{ config | json }}`, isInline: true, dependencies: [{ kind: "pipe", type: i1.JsonPipe, name: "json" }] });
|
|
4552
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockPageComponent, isStandalone: false, selector: "qd-page", inputs: { config: "config" }, ngImport: i0, template: `config: {{ config | json }}`, isInline: true, dependencies: [{ kind: "pipe", type: i1$1.JsonPipe, name: "json" }] });
|
|
4490
4553
|
}
|
|
4491
4554
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockPageComponent, decorators: [{
|
|
4492
4555
|
type: Component,
|
|
@@ -4597,7 +4660,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
4597
4660
|
class QdMockSearchComponent {
|
|
4598
4661
|
configData;
|
|
4599
4662
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockSearchComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4600
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockSearchComponent, isStandalone: false, selector: "qd-search", inputs: { configData: "configData" }, ngImport: i0, template: 'configData: {{configData | json}}', isInline: true, dependencies: [{ kind: "pipe", type: i1.JsonPipe, name: "json" }] });
|
|
4663
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockSearchComponent, isStandalone: false, selector: "qd-search", inputs: { configData: "configData" }, ngImport: i0, template: 'configData: {{configData | json}}', isInline: true, dependencies: [{ kind: "pipe", type: i1$1.JsonPipe, name: "json" }] });
|
|
4601
4664
|
}
|
|
4602
4665
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockSearchComponent, decorators: [{
|
|
4603
4666
|
type: Component,
|
|
@@ -4628,7 +4691,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
4628
4691
|
class QdMockSectionComponent {
|
|
4629
4692
|
config;
|
|
4630
4693
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockSectionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4631
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockSectionComponent, isStandalone: false, selector: "qd-section", inputs: { config: "config" }, ngImport: i0, template: 'config: {{ config | json }}', isInline: true, dependencies: [{ kind: "pipe", type: i1.JsonPipe, name: "json" }] });
|
|
4694
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockSectionComponent, isStandalone: false, selector: "qd-section", inputs: { config: "config" }, ngImport: i0, template: 'config: {{ config | json }}', isInline: true, dependencies: [{ kind: "pipe", type: i1$1.JsonPipe, name: "json" }] });
|
|
4632
4695
|
}
|
|
4633
4696
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockSectionComponent, decorators: [{
|
|
4634
4697
|
type: Component,
|
|
@@ -4645,7 +4708,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
4645
4708
|
class QdMockSectionToolbarComponent {
|
|
4646
4709
|
config;
|
|
4647
4710
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockSectionToolbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4648
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockSectionToolbarComponent, isStandalone: false, selector: "qd-section-toolbar", inputs: { config: "config" }, ngImport: i0, template: 'config: {{ config | json }}', isInline: true, dependencies: [{ kind: "pipe", type: i1.JsonPipe, name: "json" }] });
|
|
4711
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockSectionToolbarComponent, isStandalone: false, selector: "qd-section-toolbar", inputs: { config: "config" }, ngImport: i0, template: 'config: {{ config | json }}', isInline: true, dependencies: [{ kind: "pipe", type: i1$1.JsonPipe, name: "json" }] });
|
|
4649
4712
|
}
|
|
4650
4713
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockSectionToolbarComponent, decorators: [{
|
|
4651
4714
|
type: Component,
|
|
@@ -4676,7 +4739,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
4676
4739
|
class QdMockShellComponent {
|
|
4677
4740
|
config;
|
|
4678
4741
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockShellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4679
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockShellComponent, isStandalone: false, selector: "qd-shell", inputs: { config: "config" }, ngImport: i0, template: 'config: {{ config | json }}', isInline: true, dependencies: [{ kind: "pipe", type: i1.JsonPipe, name: "json" }] });
|
|
4742
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockShellComponent, isStandalone: false, selector: "qd-shell", inputs: { config: "config" }, ngImport: i0, template: 'config: {{ config | json }}', isInline: true, dependencies: [{ kind: "pipe", type: i1$1.JsonPipe, name: "json" }] });
|
|
4680
4743
|
}
|
|
4681
4744
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockShellComponent, decorators: [{
|
|
4682
4745
|
type: Component,
|
|
@@ -4706,7 +4769,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
4706
4769
|
class QdMockShellHeaderComponent {
|
|
4707
4770
|
config;
|
|
4708
4771
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockShellHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4709
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockShellHeaderComponent, isStandalone: false, selector: "[qd-shell-header]", inputs: { config: "config" }, ngImport: i0, template: 'config: {{ config | json }}', isInline: true, dependencies: [{ kind: "pipe", type: i1.JsonPipe, name: "json" }] });
|
|
4772
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockShellHeaderComponent, isStandalone: false, selector: "[qd-shell-header]", inputs: { config: "config" }, ngImport: i0, template: 'config: {{ config | json }}', isInline: true, dependencies: [{ kind: "pipe", type: i1$1.JsonPipe, name: "json" }] });
|
|
4710
4773
|
}
|
|
4711
4774
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockShellHeaderComponent, decorators: [{
|
|
4712
4775
|
type: Component,
|
|
@@ -4762,7 +4825,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
4762
4825
|
class QdMockShellToolbarItemComponent {
|
|
4763
4826
|
item;
|
|
4764
4827
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockShellToolbarItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4765
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockShellToolbarItemComponent, isStandalone: false, selector: "button[qd-shell-toolbar-item]", inputs: { item: "item" }, ngImport: i0, template: 'item: {{ item | json}}', isInline: true, dependencies: [{ kind: "pipe", type: i1.JsonPipe, name: "json" }] });
|
|
4828
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockShellToolbarItemComponent, isStandalone: false, selector: "button[qd-shell-toolbar-item]", inputs: { item: "item" }, ngImport: i0, template: 'item: {{ item | json}}', isInline: true, dependencies: [{ kind: "pipe", type: i1$1.JsonPipe, name: "json" }] });
|
|
4766
4829
|
}
|
|
4767
4830
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockShellToolbarItemComponent, decorators: [{
|
|
4768
4831
|
type: Component,
|
|
@@ -4883,7 +4946,7 @@ class QdMockStatusIndicatorItemComponent {
|
|
|
4883
4946
|
active;
|
|
4884
4947
|
state = 'positive';
|
|
4885
4948
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockStatusIndicatorItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4886
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockStatusIndicatorItemComponent, isStandalone: false, selector: "qd-status-indicator-item", inputs: { active: "active", state: "state" }, ngImport: i0, template: 'active: {{active | json}}, state: {{state}}', isInline: true, dependencies: [{ kind: "pipe", type: i1.JsonPipe, name: "json" }] });
|
|
4949
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockStatusIndicatorItemComponent, isStandalone: false, selector: "qd-status-indicator-item", inputs: { active: "active", state: "state" }, ngImport: i0, template: 'active: {{active | json}}, state: {{state}}', isInline: true, dependencies: [{ kind: "pipe", type: i1$1.JsonPipe, name: "json" }] });
|
|
4887
4950
|
}
|
|
4888
4951
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockStatusIndicatorItemComponent, decorators: [{
|
|
4889
4952
|
type: Component,
|
|
@@ -4924,7 +4987,7 @@ class QdMockTableBodyComponent {
|
|
|
4924
4987
|
config;
|
|
4925
4988
|
testId;
|
|
4926
4989
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockTableBodyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4927
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockTableBodyComponent, isStandalone: false, selector: "[qd-table-body]", inputs: { data: "data", config: "config", testId: ["data-test-id", "testId"] }, host: { classAttribute: "mock-qd-table-body-plain" }, ngImport: i0, template: 'data: {{data | json}}, config: {{config | json}}', isInline: true, dependencies: [{ kind: "pipe", type: i1.JsonPipe, name: "json" }] });
|
|
4990
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockTableBodyComponent, isStandalone: false, selector: "[qd-table-body]", inputs: { data: "data", config: "config", testId: ["data-test-id", "testId"] }, host: { classAttribute: "mock-qd-table-body-plain" }, ngImport: i0, template: 'data: {{data | json}}, config: {{config | json}}', isInline: true, dependencies: [{ kind: "pipe", type: i1$1.JsonPipe, name: "json" }] });
|
|
4928
4991
|
}
|
|
4929
4992
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockTableBodyComponent, decorators: [{
|
|
4930
4993
|
type: Component,
|
|
@@ -4949,7 +5012,7 @@ class QdMockTableBodyTreeComponent {
|
|
|
4949
5012
|
data;
|
|
4950
5013
|
testId;
|
|
4951
5014
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockTableBodyTreeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4952
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockTableBodyTreeComponent, isStandalone: false, selector: "[qd-table-body-tree]", inputs: { config: "config", data: "data", testId: ["data-test-id", "testId"] }, host: { classAttribute: "mock-qd-table-body-tree" }, ngImport: i0, template: 'data: {{data | json}}, config: {{config | json}}', isInline: true, dependencies: [{ kind: "pipe", type: i1.JsonPipe, name: "json" }] });
|
|
5015
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockTableBodyTreeComponent, isStandalone: false, selector: "[qd-table-body-tree]", inputs: { config: "config", data: "data", testId: ["data-test-id", "testId"] }, host: { classAttribute: "mock-qd-table-body-tree" }, ngImport: i0, template: 'data: {{data | json}}, config: {{config | json}}', isInline: true, dependencies: [{ kind: "pipe", type: i1$1.JsonPipe, name: "json" }] });
|
|
4953
5016
|
}
|
|
4954
5017
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockTableBodyTreeComponent, decorators: [{
|
|
4955
5018
|
type: Component,
|
|
@@ -4976,7 +5039,7 @@ class QdMockTableComponent {
|
|
|
4976
5039
|
selectedRowsOutput = new EventEmitter();
|
|
4977
5040
|
emptyStateActionOutput = new EventEmitter();
|
|
4978
5041
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4979
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockTableComponent, isStandalone: false, selector: "qd-table", inputs: { config: "config", data: "data", testId: ["data-test-id", "testId"] }, outputs: { selectedRowsOutput: "selectedRowsOutput", emptyStateActionOutput: "emptyStateActionOutput" }, host: { classAttribute: "qd-table__mock-table" }, ngImport: i0, template: 'config: {{config | json}}', isInline: true, dependencies: [{ kind: "pipe", type: i1.JsonPipe, name: "json" }] });
|
|
5042
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockTableComponent, isStandalone: false, selector: "qd-table", inputs: { config: "config", data: "data", testId: ["data-test-id", "testId"] }, outputs: { selectedRowsOutput: "selectedRowsOutput", emptyStateActionOutput: "emptyStateActionOutput" }, host: { classAttribute: "qd-table__mock-table" }, ngImport: i0, template: 'config: {{config | json}}', isInline: true, dependencies: [{ kind: "pipe", type: i1$1.JsonPipe, name: "json" }] });
|
|
4980
5043
|
}
|
|
4981
5044
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockTableComponent, decorators: [{
|
|
4982
5045
|
type: Component,
|
|
@@ -5036,7 +5099,7 @@ class QdMockTableDataDateComponent {
|
|
|
5036
5099
|
columnOptions;
|
|
5037
5100
|
cellData;
|
|
5038
5101
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockTableDataDateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5039
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockTableDataDateComponent, isStandalone: false, selector: "[qd-table-data-date]", inputs: { columnOptions: "columnOptions", cellData: "cellData" }, host: { classAttribute: "mock-qd-table-data-date" }, ngImport: i0, template: 'cellData: {{cellData}}, columnOptions: {{columnOptions | json}}', isInline: true, dependencies: [{ kind: "pipe", type: i1.JsonPipe, name: "json" }] });
|
|
5102
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockTableDataDateComponent, isStandalone: false, selector: "[qd-table-data-date]", inputs: { columnOptions: "columnOptions", cellData: "cellData" }, host: { classAttribute: "mock-qd-table-data-date" }, ngImport: i0, template: 'cellData: {{cellData}}, columnOptions: {{columnOptions | json}}', isInline: true, dependencies: [{ kind: "pipe", type: i1$1.JsonPipe, name: "json" }] });
|
|
5040
5103
|
}
|
|
5041
5104
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockTableDataDateComponent, decorators: [{
|
|
5042
5105
|
type: Component,
|
|
@@ -5077,7 +5140,7 @@ class QdMockTableDataLinkComponent {
|
|
|
5077
5140
|
columnOptions;
|
|
5078
5141
|
rowData;
|
|
5079
5142
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockTableDataLinkComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5080
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockTableDataLinkComponent, isStandalone: false, selector: "[qd-table-data-link]", inputs: { cellData: "cellData", rowIndex: "rowIndex", columnOptions: "columnOptions", rowData: "rowData" }, host: { classAttribute: "mock-qd-table-data-link" }, ngImport: i0, template: 'cellData: {{cellData | json}}, rowIndex: {{rowIndex}}, columnOptions: {{columnOptions | json}}, rowData: {{rowData | json}}', isInline: true, dependencies: [{ kind: "pipe", type: i1.JsonPipe, name: "json" }] });
|
|
5143
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockTableDataLinkComponent, isStandalone: false, selector: "[qd-table-data-link]", inputs: { cellData: "cellData", rowIndex: "rowIndex", columnOptions: "columnOptions", rowData: "rowData" }, host: { classAttribute: "mock-qd-table-data-link" }, ngImport: i0, template: 'cellData: {{cellData | json}}, rowIndex: {{rowIndex}}, columnOptions: {{columnOptions | json}}, rowData: {{rowData | json}}', isInline: true, dependencies: [{ kind: "pipe", type: i1$1.JsonPipe, name: "json" }] });
|
|
5081
5144
|
}
|
|
5082
5145
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockTableDataLinkComponent, decorators: [{
|
|
5083
5146
|
type: Component,
|
|
@@ -5121,7 +5184,7 @@ class QdMockTableDataTextComponent {
|
|
|
5121
5184
|
cellData;
|
|
5122
5185
|
i18n;
|
|
5123
5186
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockTableDataTextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5124
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockTableDataTextComponent, isStandalone: false, selector: "[qd-table-data-text]", inputs: { columnOptions: "columnOptions", cellData: "cellData", i18n: "i18n" }, host: { classAttribute: "mock-qd-table-data-text" }, ngImport: i0, template: 'columnOptions: {{columnOptions | json}}, cellData: {{cellData}}, i18n: {{i18n}}', isInline: true, dependencies: [{ kind: "pipe", type: i1.JsonPipe, name: "json" }] });
|
|
5187
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockTableDataTextComponent, isStandalone: false, selector: "[qd-table-data-text]", inputs: { columnOptions: "columnOptions", cellData: "cellData", i18n: "i18n" }, host: { classAttribute: "mock-qd-table-data-text" }, ngImport: i0, template: 'columnOptions: {{columnOptions | json}}, cellData: {{cellData}}, i18n: {{i18n}}', isInline: true, dependencies: [{ kind: "pipe", type: i1$1.JsonPipe, name: "json" }] });
|
|
5125
5188
|
}
|
|
5126
5189
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockTableDataTextComponent, decorators: [{
|
|
5127
5190
|
type: Component,
|
|
@@ -5145,7 +5208,7 @@ class QdMockTableEmptyStateComponent {
|
|
|
5145
5208
|
getI18n = jest.fn(() => 'i18n.my.table');
|
|
5146
5209
|
handleClick = jest.fn();
|
|
5147
5210
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockTableEmptyStateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5148
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockTableEmptyStateComponent, isStandalone: false, selector: "qd-table-empty-state", inputs: { config: "config" }, host: { classAttribute: "mock-qd-table-empty-state" }, ngImport: i0, template: 'config: {{ config | json }}', isInline: true, dependencies: [{ kind: "pipe", type: i1.JsonPipe, name: "json" }] });
|
|
5211
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockTableEmptyStateComponent, isStandalone: false, selector: "qd-table-empty-state", inputs: { config: "config" }, host: { classAttribute: "mock-qd-table-empty-state" }, ngImport: i0, template: 'config: {{ config | json }}', isInline: true, dependencies: [{ kind: "pipe", type: i1$1.JsonPipe, name: "json" }] });
|
|
5149
5212
|
}
|
|
5150
5213
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockTableEmptyStateComponent, decorators: [{
|
|
5151
5214
|
type: Component,
|
|
@@ -5164,7 +5227,7 @@ class QdMockTableHeadComponent {
|
|
|
5164
5227
|
config;
|
|
5165
5228
|
testId;
|
|
5166
5229
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockTableHeadComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5167
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockTableHeadComponent, isStandalone: false, selector: "[qd-table-head]", inputs: { config: "config", testId: ["data-test-id", "testId"] }, host: { classAttribute: "mock-qd-table-head" }, ngImport: i0, template: 'config: {{config | json}}', isInline: true, dependencies: [{ kind: "pipe", type: i1.JsonPipe, name: "json" }] });
|
|
5230
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockTableHeadComponent, isStandalone: false, selector: "[qd-table-head]", inputs: { config: "config", testId: ["data-test-id", "testId"] }, host: { classAttribute: "mock-qd-table-head" }, ngImport: i0, template: 'config: {{config | json}}', isInline: true, dependencies: [{ kind: "pipe", type: i1$1.JsonPipe, name: "json" }] });
|
|
5168
5231
|
}
|
|
5169
5232
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockTableHeadComponent, decorators: [{
|
|
5170
5233
|
type: Component,
|
|
@@ -5186,7 +5249,7 @@ class QdMockTablePaginatorComponent {
|
|
|
5186
5249
|
config;
|
|
5187
5250
|
testId;
|
|
5188
5251
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockTablePaginatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5189
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockTablePaginatorComponent, isStandalone: false, selector: "qd-table-paginator", inputs: { config: "config", testId: ["data-test-id", "testId"] }, host: { classAttribute: "mock-qd-table-paginator" }, ngImport: i0, template: 'config: {{ config | json }}, testId: {{ testId }}', isInline: true, dependencies: [{ kind: "pipe", type: i1.JsonPipe, name: "json" }] });
|
|
5252
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockTablePaginatorComponent, isStandalone: false, selector: "qd-table-paginator", inputs: { config: "config", testId: ["data-test-id", "testId"] }, host: { classAttribute: "mock-qd-table-paginator" }, ngImport: i0, template: 'config: {{ config | json }}, testId: {{ testId }}', isInline: true, dependencies: [{ kind: "pipe", type: i1$1.JsonPipe, name: "json" }] });
|
|
5190
5253
|
}
|
|
5191
5254
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockTablePaginatorComponent, decorators: [{
|
|
5192
5255
|
type: Component,
|
|
@@ -5227,7 +5290,7 @@ class QdMockTableSortComponent {
|
|
|
5227
5290
|
column;
|
|
5228
5291
|
testId;
|
|
5229
5292
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockTableSortComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5230
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockTableSortComponent, isStandalone: false, selector: "qd-table-sort", inputs: { isSortable: "isSortable", config: "config", column: "column", testId: ["data-test-id", "testId"] }, ngImport: i0, template: 'isSortable: {{isSortable | json}}, config: {{config | json}}, column: {{column }}, column: {{column}} <ng-content></ng-content>', isInline: true, dependencies: [{ kind: "pipe", type: i1.JsonPipe, name: "json" }] });
|
|
5293
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockTableSortComponent, isStandalone: false, selector: "qd-table-sort", inputs: { isSortable: "isSortable", config: "config", column: "column", testId: ["data-test-id", "testId"] }, ngImport: i0, template: 'isSortable: {{isSortable | json}}, config: {{config | json}}, column: {{column }}, column: {{column}} <ng-content></ng-content>', isInline: true, dependencies: [{ kind: "pipe", type: i1$1.JsonPipe, name: "json" }] });
|
|
5231
5294
|
}
|
|
5232
5295
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockTableSortComponent, decorators: [{
|
|
5233
5296
|
type: Component,
|
|
@@ -5698,7 +5761,7 @@ class QdBreadcrumbsComponent {
|
|
|
5698
5761
|
return ['/', { outlets: { [this.outlet]: breadcrumb.url } }];
|
|
5699
5762
|
}
|
|
5700
5763
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdBreadcrumbsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5701
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdBreadcrumbsComponent, isStandalone: false, selector: "qd-breadcrumbs", ngImport: i0, template: "@if (breadcrumbs$ | async; as breadcrumbs) { @if (breadcrumbs.length > 0) {\n<nav class=\"breadcrumbs\">\n @for (breadcrumb of breadcrumbs; track breadcrumb; let index = $index; let last = $last) { @if (!last) {\n <a class=\"breadcrumb\" [routerLink]=\"getBreadcrumbRouterLink(breadcrumb)\">\n {{ breadcrumb.i18n | translate | placeholders : breadcrumb.parameters }}</a\n >\n / } @if (last) {\n {{ breadcrumb.i18n | translate | placeholders : breadcrumb.parameters }}\n } }\n</nav>\n} }\n", styles: [":host{background:#fff}:host .breadcrumbs{position:relative;z-index:1;overflow:visible;align-items:center;padding-top:.375rem;padding-left:1.4375rem;margin-top:.75rem;line-height:1.375rem}:host .breadcrumbs .breadcrumb{margin-right:.25rem;color:#069}:host .breadcrumbs .breadcrumb:hover,:host .breadcrumbs .breadcrumb:active{color:#14516f}:host .breadcrumbs .breadcrumb:not(:first-child){margin-left:.25rem}\n"], dependencies: [{ kind: "directive", type: i1$
|
|
5764
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdBreadcrumbsComponent, isStandalone: false, selector: "qd-breadcrumbs", ngImport: i0, template: "@if (breadcrumbs$ | async; as breadcrumbs) { @if (breadcrumbs.length > 0) {\n<nav class=\"breadcrumbs\">\n @for (breadcrumb of breadcrumbs; track breadcrumb; let index = $index; let last = $last) { @if (!last) {\n <a class=\"breadcrumb\" [routerLink]=\"getBreadcrumbRouterLink(breadcrumb)\">\n {{ breadcrumb.i18n | translate | placeholders : breadcrumb.parameters }}</a\n >\n / } @if (last) {\n {{ breadcrumb.i18n | translate | placeholders : breadcrumb.parameters }}\n } }\n</nav>\n} }\n", styles: [":host{background:#fff}:host .breadcrumbs{position:relative;z-index:1;overflow:visible;align-items:center;padding-top:.375rem;padding-left:1.4375rem;margin-top:.75rem;line-height:1.375rem}:host .breadcrumbs .breadcrumb{margin-right:.25rem;color:#069}:host .breadcrumbs .breadcrumb:hover,:host .breadcrumbs .breadcrumb:active{color:#14516f}:host .breadcrumbs .breadcrumb:not(:first-child){margin-left:.25rem}\n"], dependencies: [{ kind: "directive", type: i1$3.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }, { kind: "pipe", type: QdPlaceholdersPipe, name: "placeholders" }] });
|
|
5702
5765
|
}
|
|
5703
5766
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdBreadcrumbsComponent, decorators: [{
|
|
5704
5767
|
type: Component,
|
|
@@ -6098,7 +6161,7 @@ class QdDataFacetsChipComponent {
|
|
|
6098
6161
|
}));
|
|
6099
6162
|
}
|
|
6100
6163
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdDataFacetsChipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6101
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdDataFacetsChipComponent, isStandalone: false, selector: "qd-data-facets-chip", inputs: { config: "config", data: "data", i18n: "i18n", testId: "testId" }, host: { properties: { "attr.data-test-id": "testId" }, classAttribute: "qd-data-facets" }, usesOnChanges: true, ngImport: i0, template: "@for (chip of chips$ | async; track chip) {\n<qd-chip [state]=\"chip.state\">\n {{ config?.isTranslated ? (i18n + \".\" + chip.label | translate) : chip.label }}\n</qd-chip>\n} @if (truncatedChips$ | async; as truncatedChips) { @if (truncatedChips.length > 0) {\n<qd-data-facets-chip-truncated-indicator\n [truncatedChips]=\"truncatedChips\"\n [i18n]=\"i18n\"\n [columnOptions]=\"config\"\n></qd-data-facets-chip-truncated-indicator>\n} }\n", styles: [":host{line-height:normal}qd-chip{margin-right:.5625rem;margin-bottom:.125rem}qd-truncated-chips-indicator,qd-chip:last-child{margin-right:0;margin-bottom:.5625rem}span:host{display:flex;flex-wrap:wrap;align-items:baseline;gap:.5625rem}span:host qd-truncated-chips-indicator,span:host qd-chip{margin:0}span:host qd-truncated-chips-indicator:last-child,span:host qd-chip:last-child{margin-bottom:.5625rem}\n"], dependencies: [{ kind: "component", type: QdChipComponent, selector: "qd-chip", inputs: ["state", "close", "data", "data-test-id"], outputs: ["closeClickEmitter"] }, { kind: "component", type: QdDataFacetsChipTruncatedIndicatorComponent, selector: "qd-data-facets-chip-truncated-indicator", inputs: ["truncatedChips", "i18n", "columnOptions"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
6164
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdDataFacetsChipComponent, isStandalone: false, selector: "qd-data-facets-chip", inputs: { config: "config", data: "data", i18n: "i18n", testId: "testId" }, host: { properties: { "attr.data-test-id": "testId" }, classAttribute: "qd-data-facets" }, usesOnChanges: true, ngImport: i0, template: "@for (chip of chips$ | async; track chip) {\n<qd-chip [state]=\"chip.state\">\n {{ config?.isTranslated ? (i18n + \".\" + chip.label | translate) : chip.label }}\n</qd-chip>\n} @if (truncatedChips$ | async; as truncatedChips) { @if (truncatedChips.length > 0) {\n<qd-data-facets-chip-truncated-indicator\n [truncatedChips]=\"truncatedChips\"\n [i18n]=\"i18n\"\n [columnOptions]=\"config\"\n></qd-data-facets-chip-truncated-indicator>\n} }\n", styles: [":host{line-height:normal}qd-chip{margin-right:.5625rem;margin-bottom:.125rem}qd-truncated-chips-indicator,qd-chip:last-child{margin-right:0;margin-bottom:.5625rem}span:host{display:flex;flex-wrap:wrap;align-items:baseline;gap:.5625rem}span:host qd-truncated-chips-indicator,span:host qd-chip{margin:0}span:host qd-truncated-chips-indicator:last-child,span:host qd-chip:last-child{margin-bottom:.5625rem}\n"], dependencies: [{ kind: "component", type: QdChipComponent, selector: "qd-chip", inputs: ["state", "close", "data", "data-test-id"], outputs: ["closeClickEmitter"] }, { kind: "component", type: QdDataFacetsChipTruncatedIndicatorComponent, selector: "qd-data-facets-chip-truncated-indicator", inputs: ["truncatedChips", "i18n", "columnOptions"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
6102
6165
|
}
|
|
6103
6166
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdDataFacetsChipComponent, decorators: [{
|
|
6104
6167
|
type: Component,
|
|
@@ -6161,7 +6224,7 @@ class QdDataFacetsCurrencyComponent {
|
|
|
6161
6224
|
}).format(this.data);
|
|
6162
6225
|
}
|
|
6163
6226
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdDataFacetsCurrencyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6164
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdDataFacetsCurrencyComponent, isStandalone: false, selector: "qd-data-facets-currency", inputs: { config: "config", data: "data", testId: "testId" }, host: { properties: { "attr.data-test-id": "testId" }, classAttribute: "qd-data-facets" }, usesOnChanges: true, ngImport: i0, template: "{{ currency$ | async }}\n", styles: [":host{text-align:right}\n"], dependencies: [{ kind: "pipe", type: i1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
6227
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdDataFacetsCurrencyComponent, isStandalone: false, selector: "qd-data-facets-currency", inputs: { config: "config", data: "data", testId: "testId" }, host: { properties: { "attr.data-test-id": "testId" }, classAttribute: "qd-data-facets" }, usesOnChanges: true, ngImport: i0, template: "{{ currency$ | async }}\n", styles: [":host{text-align:right}\n"], dependencies: [{ kind: "pipe", type: i1$1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
6165
6228
|
}
|
|
6166
6229
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdDataFacetsCurrencyComponent, decorators: [{
|
|
6167
6230
|
type: Component,
|
|
@@ -6270,7 +6333,7 @@ class QdDataFacetsDateComponent {
|
|
|
6270
6333
|
: new Date(value);
|
|
6271
6334
|
}
|
|
6272
6335
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdDataFacetsDateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6273
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdDataFacetsDateComponent, isStandalone: false, selector: "qd-data-facets-date", inputs: { config: "config", data: "data", testId: "testId" }, host: { properties: { "attr.data-test-id": "testId" }, classAttribute: "qd-data-facets" }, usesOnChanges: true, ngImport: i0, template: "{{ displayedDate$ | async }}\n", styles: [""], dependencies: [{ kind: "pipe", type: i1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
6336
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdDataFacetsDateComponent, isStandalone: false, selector: "qd-data-facets-date", inputs: { config: "config", data: "data", testId: "testId" }, host: { properties: { "attr.data-test-id": "testId" }, classAttribute: "qd-data-facets" }, usesOnChanges: true, ngImport: i0, template: "{{ displayedDate$ | async }}\n", styles: [""], dependencies: [{ kind: "pipe", type: i1$1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
6274
6337
|
}
|
|
6275
6338
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdDataFacetsDateComponent, decorators: [{
|
|
6276
6339
|
type: Component,
|
|
@@ -7761,28 +7824,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
7761
7824
|
type: Injectable
|
|
7762
7825
|
}] });
|
|
7763
7826
|
|
|
7764
|
-
var breakpoints$1 = {
|
|
7765
|
-
xs: 320,
|
|
7766
|
-
sm: 600,
|
|
7767
|
-
md: 960,
|
|
7768
|
-
lg: 1280,
|
|
7769
|
-
xl: 1600,
|
|
7770
|
-
xxl: 1800
|
|
7771
|
-
};
|
|
7772
|
-
var panel = {
|
|
7773
|
-
sm: 432,
|
|
7774
|
-
md: 588,
|
|
7775
|
-
lg: 720
|
|
7776
|
-
};
|
|
7777
|
-
var base = {
|
|
7778
|
-
fontsize: 16
|
|
7779
|
-
};
|
|
7780
|
-
var globalVars = {
|
|
7781
|
-
breakpoints: breakpoints$1,
|
|
7782
|
-
panel: panel,
|
|
7783
|
-
base: base
|
|
7784
|
-
};
|
|
7785
|
-
|
|
7786
7827
|
const convertPxToRem = (pixel) => `${parseFloat((pixel / globalVars.base.fontsize).toFixed(3))}rem`;
|
|
7787
7828
|
|
|
7788
7829
|
/**
|
|
@@ -8040,7 +8081,7 @@ class QdPopoverComponent {
|
|
|
8040
8081
|
this.getHostElement().className = `${this.direction} ${this.backgroundColor}`;
|
|
8041
8082
|
}
|
|
8042
8083
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdPopoverComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
8043
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdPopoverComponent, isStandalone: false, selector: "qd-popover", inputs: { content: "content", backgroundColor: "backgroundColor" }, providers: [QdPopoverParentService], usesOnChanges: true, ngImport: i0, template: "<ng-container *ngTemplateOutlet=\"content; injector: injector\"></ng-container>\n", styles: [":host{display:block;width:100%;box-shadow:0 .625rem .625rem #979797;overflow-x:hidden;overflow-y:auto;text-overflow:ellipsis}:host.up{box-shadow:0 -.625rem .625rem #979797}:host.white{background-color:#fff}\n"], dependencies: [{ kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
8084
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdPopoverComponent, isStandalone: false, selector: "qd-popover", inputs: { content: "content", backgroundColor: "backgroundColor" }, providers: [QdPopoverParentService], usesOnChanges: true, ngImport: i0, template: "<ng-container *ngTemplateOutlet=\"content; injector: injector\"></ng-container>\n", styles: [":host{display:block;width:100%;box-shadow:0 .625rem .625rem #979797;overflow-x:hidden;overflow-y:auto;text-overflow:ellipsis}:host.up{box-shadow:0 -.625rem .625rem #979797}:host.white{background-color:#fff}\n"], dependencies: [{ kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
8044
8085
|
}
|
|
8045
8086
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdPopoverComponent, decorators: [{
|
|
8046
8087
|
type: Component,
|
|
@@ -9962,7 +10003,7 @@ class QdCheckboxComponent {
|
|
|
9962
10003
|
useExisting: QdCheckboxComponent,
|
|
9963
10004
|
multi: true
|
|
9964
10005
|
}
|
|
9965
|
-
], ngImport: i0, template: "<label\n [for]=\"inputData.value + id\"\n [attr.data-test-id]=\"testId + '-label'\"\n [ngClass]=\"\n 'qd-checkbox__label' +\n (inputData.disabled || disabled ? ' qd-checkbox__label--disabled' : '') +\n (checked ? ' qd-checkbox__label--checked' : '')\n \"\n>\n <input\n type=\"checkbox\"\n [attr.tabindex]=\"isAriaHidden ? -1 : 0\"\n [attr.aria-hidden]=\"isAriaHidden ? true : null\"\n qdVisuallyHidden\n [qdAutofocus]=\"hasAutofocus\"\n [id]=\"inputData.value + id\"\n [attr.data-test-id]=\"testId + '-input'\"\n [ngClass]=\"'qd-checkbox__checkbox'\"\n [name]=\"id\"\n [value]=\"inputData.value\"\n [disabled]=\"inputData.disabled || disabled\"\n (click)=\"handleClick(inputData.value, $event)\"\n [checked]=\"checked\"\n />\n\n @if (checked) {\n <qd-icon\n [ngClass]=\"'qd-checkbox__indicator'\"\n [icon]=\"'checkboxCheckedFilled'\"\n [attr.data-test-id]=\"testId + '-indicator-checked'\"\n ></qd-icon>\n } @if (!checked) {\n <qd-icon\n [ngClass]=\"'qd-checkbox__indicator'\"\n [icon]=\"'checkbox'\"\n [attr.data-test-id]=\"testId + '-indicator-unchecked'\"\n ></qd-icon>\n }\n\n <span [ngClass]=\"'qd-checkbox__caption qd-intersection-target'\">{{ inputData.i18n | translate }}</span>\n</label>\n", styles: [".qd-checkbox{display:flex;align-items:center;margin-right:1rem}@media(max-width:959.98px){.qd-checkbox:not(.qd-rwd-disabled){border:.0625rem solid rgb(180,180,180);margin-right:0;margin-bottom:.75rem;background:#fff}.qd-checkbox:not(.qd-rwd-disabled) .qd-checkbox__label{width:100%;padding-left:.75rem;line-height:2.25rem}.qd-checkbox:not(.qd-rwd-disabled) .qd-checkbox__label .qd-checkbox__indicator.qd-icon{margin-right:.75rem}.qd-checkbox:not(.qd-rwd-disabled) .qd-checkbox__label--disabled .qd-checkbox__caption{color:#d5d5d5}.qd-checkbox:not(.qd-rwd-disabled) .qd-checkbox__caption{margin-right:.75rem;color:#171717;transform:translateY(.0625rem)}}@media(max-width:959.98px)and (max-width:959.98px){.qd-checkbox:not(.qd-rwd-disabled) .qd-checkbox__caption{padding:.375rem 0;line-height:1.25rem}}@media(max-width:959.98px){.qd-checkbox:not(.qd-rwd-disabled):last-child{margin-bottom:0}}.qd-checkbox:last-child{margin-right:0}.qd-checkbox .qd-checkbox__label{position:relative;display:flex;max-width:100%;align-items:center;color:#454545;cursor:pointer;font-size:.875rem;font-weight:400}.qd-checkbox .qd-checkbox__label .qd-checkbox__indicator{position:relative;margin-right:.375rem;color:#b4b4b4;font-size:1.25rem}.qd-checkbox .qd-checkbox__label:not(.qd-checkbox__label--checked,.qd-checkbox__label--disabled):hover,.qd-checkbox .qd-checkbox__label:not(.qd-checkbox__label--checked,.qd-checkbox__label--disabled):focus{color:#171717}.qd-checkbox .qd-checkbox__label:not(.qd-checkbox__label--checked,.qd-checkbox__label--disabled):hover .qd-checkbox__indicator,.qd-checkbox .qd-checkbox__label:not(.qd-checkbox__label--checked,.qd-checkbox__label--disabled):focus .qd-checkbox__indicator{color:#171717}.qd-checkbox .qd-checkbox__label--checked{color:#171717}.qd-checkbox .qd-checkbox__label--checked .qd-checkbox__indicator{color:#069}.qd-checkbox .qd-checkbox__label--disabled{color:#d5d5d5;cursor:default}.qd-checkbox .qd-checkbox__label--disabled .qd-checkbox__indicator{color:#d5d5d5}.qd-keyboard-active .qd-checkbox__checkbox:focus~.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%)}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: QdAutofocusDirective, selector: "[qdAutofocus]", inputs: ["qdAutofocus"] }, { kind: "directive", type: QdVisuallyHiddenDirective, selector: "[qdVisuallyHidden]" }, { kind: "component", type: QdIconComponent, selector: "qd-icon", inputs: ["icon", "status"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], encapsulation: i0.ViewEncapsulation.None });
|
|
10006
|
+
], ngImport: i0, template: "<label\n [for]=\"inputData.value + id\"\n [attr.data-test-id]=\"testId + '-label'\"\n [ngClass]=\"\n 'qd-checkbox__label' +\n (inputData.disabled || disabled ? ' qd-checkbox__label--disabled' : '') +\n (checked ? ' qd-checkbox__label--checked' : '')\n \"\n>\n <input\n type=\"checkbox\"\n [attr.tabindex]=\"isAriaHidden ? -1 : 0\"\n [attr.aria-hidden]=\"isAriaHidden ? true : null\"\n qdVisuallyHidden\n [qdAutofocus]=\"hasAutofocus\"\n [id]=\"inputData.value + id\"\n [attr.data-test-id]=\"testId + '-input'\"\n [ngClass]=\"'qd-checkbox__checkbox'\"\n [name]=\"id\"\n [value]=\"inputData.value\"\n [disabled]=\"inputData.disabled || disabled\"\n (click)=\"handleClick(inputData.value, $event)\"\n [checked]=\"checked\"\n />\n\n @if (checked) {\n <qd-icon\n [ngClass]=\"'qd-checkbox__indicator'\"\n [icon]=\"'checkboxCheckedFilled'\"\n [attr.data-test-id]=\"testId + '-indicator-checked'\"\n ></qd-icon>\n } @if (!checked) {\n <qd-icon\n [ngClass]=\"'qd-checkbox__indicator'\"\n [icon]=\"'checkbox'\"\n [attr.data-test-id]=\"testId + '-indicator-unchecked'\"\n ></qd-icon>\n }\n\n <span [ngClass]=\"'qd-checkbox__caption qd-intersection-target'\">{{ inputData.i18n | translate }}</span>\n</label>\n", styles: [".qd-checkbox{display:flex;align-items:center;margin-right:1rem}@media(max-width:959.98px){.qd-checkbox:not(.qd-rwd-disabled){border:.0625rem solid rgb(180,180,180);margin-right:0;margin-bottom:.75rem;background:#fff}.qd-checkbox:not(.qd-rwd-disabled) .qd-checkbox__label{width:100%;padding-left:.75rem;line-height:2.25rem}.qd-checkbox:not(.qd-rwd-disabled) .qd-checkbox__label .qd-checkbox__indicator.qd-icon{margin-right:.75rem}.qd-checkbox:not(.qd-rwd-disabled) .qd-checkbox__label--disabled .qd-checkbox__caption{color:#d5d5d5}.qd-checkbox:not(.qd-rwd-disabled) .qd-checkbox__caption{margin-right:.75rem;color:#171717;transform:translateY(.0625rem)}}@media(max-width:959.98px)and (max-width:959.98px){.qd-checkbox:not(.qd-rwd-disabled) .qd-checkbox__caption{padding:.375rem 0;line-height:1.25rem}}@media(max-width:959.98px){.qd-checkbox:not(.qd-rwd-disabled):last-child{margin-bottom:0}}.qd-checkbox:last-child{margin-right:0}.qd-checkbox .qd-checkbox__label{position:relative;display:flex;max-width:100%;align-items:center;color:#454545;cursor:pointer;font-size:.875rem;font-weight:400}.qd-checkbox .qd-checkbox__label .qd-checkbox__indicator{position:relative;margin-right:.375rem;color:#b4b4b4;font-size:1.25rem}.qd-checkbox .qd-checkbox__label:not(.qd-checkbox__label--checked,.qd-checkbox__label--disabled):hover,.qd-checkbox .qd-checkbox__label:not(.qd-checkbox__label--checked,.qd-checkbox__label--disabled):focus{color:#171717}.qd-checkbox .qd-checkbox__label:not(.qd-checkbox__label--checked,.qd-checkbox__label--disabled):hover .qd-checkbox__indicator,.qd-checkbox .qd-checkbox__label:not(.qd-checkbox__label--checked,.qd-checkbox__label--disabled):focus .qd-checkbox__indicator{color:#171717}.qd-checkbox .qd-checkbox__label--checked{color:#171717}.qd-checkbox .qd-checkbox__label--checked .qd-checkbox__indicator{color:#069}.qd-checkbox .qd-checkbox__label--disabled{color:#d5d5d5;cursor:default}.qd-checkbox .qd-checkbox__label--disabled .qd-checkbox__indicator{color:#d5d5d5}.qd-keyboard-active .qd-checkbox__checkbox:focus~.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%)}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: QdAutofocusDirective, selector: "[qdAutofocus]", inputs: ["qdAutofocus"] }, { kind: "directive", type: QdVisuallyHiddenDirective, selector: "[qdVisuallyHidden]" }, { kind: "component", type: QdIconComponent, selector: "qd-icon", inputs: ["icon", "status"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], encapsulation: i0.ViewEncapsulation.None });
|
|
9966
10007
|
}
|
|
9967
10008
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdCheckboxComponent, decorators: [{
|
|
9968
10009
|
type: Component,
|
|
@@ -10126,7 +10167,7 @@ class QdFilterFormItemsComponent {
|
|
|
10126
10167
|
this.filterValueChange.emit($event);
|
|
10127
10168
|
}
|
|
10128
10169
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdFilterFormItemsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
10129
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdFilterFormItemsComponent, isStandalone: false, selector: "qd-filter-form-items", inputs: { inputFilterValue: "inputFilterValue", testId: ["data-test-id", "testId"] }, outputs: { filterValueChange: "filterValueChange" }, host: { classAttribute: "qd-filter-form-items" }, ngImport: i0, template: "<qd-icon [icon]=\"'filter'\" class=\"qd-filter-form-items__filter-magnifier\"></qd-icon>\n\n<input\n type=\"text\"\n class=\"qd-filter-form-items__filter\"\n [(ngModel)]=\"filterValue\"\n (ngModelChange)=\"changeValue($event)\"\n [attr.data-test-id]=\"testId + '-filter-items'\"\n [qdAutofocus]=\"true\"\n autocomplete=\"off\"\n/>\n", styles: [".qd-filter-form-items__filter{width:100%;height:2.25rem;padding:0 .75rem 0 2.375rem;border:none;border-bottom:.0625rem solid rgb(213,213,213);margin-bottom:.5rem;background:#fff;color:#171717}.qd-filter-form-items__filter:focus,.qd-filter-form-items__filter:hover,.qd-filter-form-items__filter:active{border:none;background:#f5f5f5;outline:none}.qd-filter-form-items__filter:hover,.qd-filter-form-items__filter:active{border-bottom:.125rem solid rgb(23,23,23)}.qd-filter-form-items__filter:focus{border-bottom:.125rem solid rgb(0,102,153)}.qd-filter-form-items__filter-magnifier{position:absolute;padding:.625rem 0 .625rem .9375rem}.qd-filter-form-items__filter-magnifier .qd-icon{color:#757575}\n"], dependencies: [{ kind: "directive", type: i1$
|
|
10170
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdFilterFormItemsComponent, isStandalone: false, selector: "qd-filter-form-items", inputs: { inputFilterValue: "inputFilterValue", testId: ["data-test-id", "testId"] }, outputs: { filterValueChange: "filterValueChange" }, host: { classAttribute: "qd-filter-form-items" }, ngImport: i0, template: "<qd-icon [icon]=\"'filter'\" class=\"qd-filter-form-items__filter-magnifier\"></qd-icon>\n\n<input\n type=\"text\"\n class=\"qd-filter-form-items__filter\"\n [(ngModel)]=\"filterValue\"\n (ngModelChange)=\"changeValue($event)\"\n [attr.data-test-id]=\"testId + '-filter-items'\"\n [qdAutofocus]=\"true\"\n autocomplete=\"off\"\n/>\n", styles: [".qd-filter-form-items__filter{width:100%;height:2.25rem;padding:0 .75rem 0 2.375rem;border:none;border-bottom:.0625rem solid rgb(213,213,213);margin-bottom:.5rem;background:#fff;color:#171717}.qd-filter-form-items__filter:focus,.qd-filter-form-items__filter:hover,.qd-filter-form-items__filter:active{border:none;background:#f5f5f5;outline:none}.qd-filter-form-items__filter:hover,.qd-filter-form-items__filter:active{border-bottom:.125rem solid rgb(23,23,23)}.qd-filter-form-items__filter:focus{border-bottom:.125rem solid rgb(0,102,153)}.qd-filter-form-items__filter-magnifier{position:absolute;padding:.625rem 0 .625rem .9375rem}.qd-filter-form-items__filter-magnifier .qd-icon{color:#757575}\n"], dependencies: [{ kind: "directive", type: i1$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: QdAutofocusDirective, selector: "[qdAutofocus]", inputs: ["qdAutofocus"] }, { kind: "component", type: QdIconComponent, selector: "qd-icon", inputs: ["icon", "status"] }] });
|
|
10130
10171
|
}
|
|
10131
10172
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdFilterFormItemsComponent, decorators: [{
|
|
10132
10173
|
type: Component,
|
|
@@ -10925,7 +10966,7 @@ class QdCalendarComponent {
|
|
|
10925
10966
|
this.weekdays = w.slice(1).concat(w[0]);
|
|
10926
10967
|
}
|
|
10927
10968
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdCalendarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
10928
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdCalendarComponent, isStandalone: false, selector: "qd-calendar", inputs: { selectedDate: "selectedDate", language: "language", disabledDates: "disabledDates" }, outputs: { selectedChange: "selectedChange", closeRequested: "closeRequested" }, viewQueries: [{ propertyName: "dayCells", predicate: ["dayCell"], descendants: true }, { propertyName: "pickerCells", predicate: ["pickerCell"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"nav\">\n <button type=\"button\" class=\"nav-prev\" (click)=\"prev()\" [attr.aria-label]=\"prevAriaKey | translate\">\n <qd-icon icon=\"arrowLeft\"></qd-icon>\n </button>\n\n <ng-container>\n @if (mode === QdCalendarMode.Default) {\n <button\n type=\"button\"\n class=\"header-toggle current-month-year\"\n [attr.aria-label]=\"'i18n.qd.datepicker.a11y.chooseMonthYear' | translate\"\n (click)=\"changeMode(QdCalendarMode.YearPicker)\"\n >\n {{ currentDate.locale(language).format(\"MMMM\") }} {{ currentDate?.format(\"YYYY\") }}\n </button>\n } @if (mode === QdCalendarMode.YearPicker) {\n <button\n type=\"button\"\n class=\"header-toggle current-years-list\"\n [attr.aria-label]=\"'i18n.qd.datepicker.a11y.chooseMonthYear' | translate\"\n (click)=\"changeMode(QdCalendarMode.MonthPicker)\"\n >\n {{ years[0] }} - {{ years[years.length - 1] }}\n </button>\n } @if (mode === QdCalendarMode.MonthPicker) {\n <button\n type=\"button\"\n class=\"header-toggle current-year\"\n [attr.aria-label]=\"'i18n.qd.datepicker.a11y.chooseMonthYear' | translate\"\n (click)=\"changeMode(QdCalendarMode.YearPicker)\"\n >\n {{ currentDate?.format(\"YYYY\") }}\n </button>\n }\n </ng-container>\n\n <button type=\"button\" class=\"nav-next\" (click)=\"next()\" [attr.aria-label]=\"nextAriaKey | translate\">\n <qd-icon icon=\"arrowRight\"></qd-icon>\n </button>\n</div>\n\n@if (mode === QdCalendarMode.Default) {\n<table\n role=\"grid\"\n [attr.aria-label]=\"currentDate.locale(language).format('MMMM YYYY')\"\n (keydown)=\"onGridKeydown($event)\"\n>\n <tbody>\n <tr role=\"row\">\n @for (name of weekdays; track $index) {\n <th scope=\"col\" class=\"weekday\">{{ name }}</th>\n }\n </tr>\n @for (week of weeks; track $index) {\n <tr role=\"row\">\n @for (day of week; track day.moment.valueOf()) {\n <td\n #dayCell\n role=\"gridcell\"\n class=\"day {{ day.moment.date() }}\"\n [attr.data-date]=\"day.moment.format('YYYY-MM-DD')\"\n [attr.tabindex]=\"isActive(day.moment) ? 0 : -1\"\n [attr.aria-label]=\"day.moment.locale(language).format('D. MMMM YYYY')\"\n [attr.aria-selected]=\"day.selected ? true : null\"\n [attr.aria-current]=\"day.today ? 'date' : null\"\n [attr.aria-disabled]=\"day.disabled ? true : null\"\n [attr.aria-hidden]=\"!isSameYearMonth(day.moment) ? true : null\"\n (click)=\"selectDate(day)\"\n [ngClass]=\"{\n today: day.today,\n selected: day.selected,\n hidden: !isSameYearMonth(day.moment),\n disabled: day.disabled\n }\"\n >\n {{ day.moment.date() }}\n </td>\n }\n </tr>\n }\n </tbody>\n</table>\n} @if (mode !== QdCalendarMode.Default) {\n<div class=\"calendar\">\n @if (mode === QdCalendarMode.YearPicker) {\n <div\n class=\"picker\"\n role=\"listbox\"\n [attr.aria-label]=\"'i18n.qd.datepicker.a11y.yearPicker' | translate\"\n (keydown)=\"onPickerKeydown($event)\"\n >\n @for (year of years; track year; let i = $index) {\n <div class=\"col {{ year }}\">\n <div\n #pickerCell\n role=\"option\"\n class=\"entry\"\n [attr.tabindex]=\"isActivePicker(i) ? 0 : -1\"\n [attr.aria-selected]=\"isSameYear(year) ? true : null\"\n (click)=\"selectYear(year)\"\n [ngClass]=\"{ selected: isSameYear(year) }\"\n >\n {{ year }}\n </div>\n </div>\n }\n </div>\n } @if (mode === QdCalendarMode.MonthPicker) {\n <div\n class=\"picker\"\n role=\"listbox\"\n [attr.aria-label]=\"'i18n.qd.datepicker.a11y.monthPicker' | translate\"\n (keydown)=\"onPickerKeydown($event)\"\n >\n @for (month of months; track month; let i = $index) {\n <div class=\"col {{ month }}\">\n <div\n #pickerCell\n role=\"option\"\n class=\"entry\"\n [attr.tabindex]=\"isActivePicker(i) ? 0 : -1\"\n [attr.aria-selected]=\"isSameMonth(i) ? true : null\"\n (click)=\"selectMonth(i)\"\n [ngClass]=\"{ selected: isSameMonth(i), month }\"\n >\n {{ month }}\n </div>\n </div>\n }\n </div>\n }\n</div>\n}\n", styles: [".nav{color:#171717;font-size:1rem;font-weight:700;line-height:1.5rem;display:grid;margin:.75rem;grid-template-columns:[next] 2rem [monthyear] auto [prev] 2rem [end];text-transform:capitalize}.nav span{line-height:2.5rem;text-align:center}.nav .header-toggle{padding:0;border:0;background:transparent;color:inherit;font:inherit;line-height:2.5rem;text-align:center;text-transform:inherit}.nav .current-month-year,.nav .current-years-list,.nav .current-year{cursor:pointer}tbody{display:inherit;margin:.75rem}td,th{color:#171717;font-size:.875rem;font-weight:400;line-height:1.3125rem;min-width:2.5625rem;padding:.4375rem;text-align:center;text-transform:capitalize}td.disabled,th.disabled{color:#d5d5d5;pointer-events:none}td.hidden,th.hidden{opacity:0;pointer-events:none}td.today,th.today{box-shadow:0 0 0 .125rem #d5d5d5 inset}td.selected,td.day:hover,th.selected,th.day:hover{background:#d5d5d5;cursor:pointer}.picker{display:flex;width:100%;flex-wrap:wrap;padding:.75rem}.picker .col{flex:0 0 33.33%;padding:.5rem .25rem}.picker .entry{padding:.4375rem;background:#d5d5d5;cursor:pointer;text-align:center}.picker .entry.selected,.picker .entry:hover{background:gray}td.day:focus,.nav button:focus,.picker .entry:focus{outline:none}:host-context(.qd-keyboard-active) td.day:focus,:host-context(.qd-keyboard-active) .nav button:focus,:host-context(.qd-keyboard-active) .picker .entry:focus{box-shadow:inset 0 0 0 .125rem #069}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: QdIconComponent, selector: "qd-icon", inputs: ["icon", "status"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
10969
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdCalendarComponent, isStandalone: false, selector: "qd-calendar", inputs: { selectedDate: "selectedDate", language: "language", disabledDates: "disabledDates" }, outputs: { selectedChange: "selectedChange", closeRequested: "closeRequested" }, viewQueries: [{ propertyName: "dayCells", predicate: ["dayCell"], descendants: true }, { propertyName: "pickerCells", predicate: ["pickerCell"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"nav\">\n <button type=\"button\" class=\"nav-prev\" (click)=\"prev()\" [attr.aria-label]=\"prevAriaKey | translate\">\n <qd-icon icon=\"arrowLeft\"></qd-icon>\n </button>\n\n <ng-container>\n @if (mode === QdCalendarMode.Default) {\n <button\n type=\"button\"\n class=\"header-toggle current-month-year\"\n [attr.aria-label]=\"'i18n.qd.datepicker.a11y.chooseMonthYear' | translate\"\n (click)=\"changeMode(QdCalendarMode.YearPicker)\"\n >\n {{ currentDate.locale(language).format(\"MMMM\") }} {{ currentDate?.format(\"YYYY\") }}\n </button>\n } @if (mode === QdCalendarMode.YearPicker) {\n <button\n type=\"button\"\n class=\"header-toggle current-years-list\"\n [attr.aria-label]=\"'i18n.qd.datepicker.a11y.chooseMonthYear' | translate\"\n (click)=\"changeMode(QdCalendarMode.MonthPicker)\"\n >\n {{ years[0] }} - {{ years[years.length - 1] }}\n </button>\n } @if (mode === QdCalendarMode.MonthPicker) {\n <button\n type=\"button\"\n class=\"header-toggle current-year\"\n [attr.aria-label]=\"'i18n.qd.datepicker.a11y.chooseMonthYear' | translate\"\n (click)=\"changeMode(QdCalendarMode.YearPicker)\"\n >\n {{ currentDate?.format(\"YYYY\") }}\n </button>\n }\n </ng-container>\n\n <button type=\"button\" class=\"nav-next\" (click)=\"next()\" [attr.aria-label]=\"nextAriaKey | translate\">\n <qd-icon icon=\"arrowRight\"></qd-icon>\n </button>\n</div>\n\n@if (mode === QdCalendarMode.Default) {\n<table\n role=\"grid\"\n [attr.aria-label]=\"currentDate.locale(language).format('MMMM YYYY')\"\n (keydown)=\"onGridKeydown($event)\"\n>\n <tbody>\n <tr role=\"row\">\n @for (name of weekdays; track $index) {\n <th scope=\"col\" class=\"weekday\">{{ name }}</th>\n }\n </tr>\n @for (week of weeks; track $index) {\n <tr role=\"row\">\n @for (day of week; track day.moment.valueOf()) {\n <td\n #dayCell\n role=\"gridcell\"\n class=\"day {{ day.moment.date() }}\"\n [attr.data-date]=\"day.moment.format('YYYY-MM-DD')\"\n [attr.tabindex]=\"isActive(day.moment) ? 0 : -1\"\n [attr.aria-label]=\"day.moment.locale(language).format('D. MMMM YYYY')\"\n [attr.aria-selected]=\"day.selected ? true : null\"\n [attr.aria-current]=\"day.today ? 'date' : null\"\n [attr.aria-disabled]=\"day.disabled ? true : null\"\n [attr.aria-hidden]=\"!isSameYearMonth(day.moment) ? true : null\"\n (click)=\"selectDate(day)\"\n [ngClass]=\"{\n today: day.today,\n selected: day.selected,\n hidden: !isSameYearMonth(day.moment),\n disabled: day.disabled\n }\"\n >\n {{ day.moment.date() }}\n </td>\n }\n </tr>\n }\n </tbody>\n</table>\n} @if (mode !== QdCalendarMode.Default) {\n<div class=\"calendar\">\n @if (mode === QdCalendarMode.YearPicker) {\n <div\n class=\"picker\"\n role=\"listbox\"\n [attr.aria-label]=\"'i18n.qd.datepicker.a11y.yearPicker' | translate\"\n (keydown)=\"onPickerKeydown($event)\"\n >\n @for (year of years; track year; let i = $index) {\n <div class=\"col {{ year }}\">\n <div\n #pickerCell\n role=\"option\"\n class=\"entry\"\n [attr.tabindex]=\"isActivePicker(i) ? 0 : -1\"\n [attr.aria-selected]=\"isSameYear(year) ? true : null\"\n (click)=\"selectYear(year)\"\n [ngClass]=\"{ selected: isSameYear(year) }\"\n >\n {{ year }}\n </div>\n </div>\n }\n </div>\n } @if (mode === QdCalendarMode.MonthPicker) {\n <div\n class=\"picker\"\n role=\"listbox\"\n [attr.aria-label]=\"'i18n.qd.datepicker.a11y.monthPicker' | translate\"\n (keydown)=\"onPickerKeydown($event)\"\n >\n @for (month of months; track month; let i = $index) {\n <div class=\"col {{ month }}\">\n <div\n #pickerCell\n role=\"option\"\n class=\"entry\"\n [attr.tabindex]=\"isActivePicker(i) ? 0 : -1\"\n [attr.aria-selected]=\"isSameMonth(i) ? true : null\"\n (click)=\"selectMonth(i)\"\n [ngClass]=\"{ selected: isSameMonth(i), month }\"\n >\n {{ month }}\n </div>\n </div>\n }\n </div>\n }\n</div>\n}\n", styles: [".nav{color:#171717;font-size:1rem;font-weight:700;line-height:1.5rem;display:grid;margin:.75rem;grid-template-columns:[next] 2rem [monthyear] auto [prev] 2rem [end];text-transform:capitalize}.nav span{line-height:2.5rem;text-align:center}.nav .header-toggle{padding:0;border:0;background:transparent;color:inherit;font:inherit;line-height:2.5rem;text-align:center;text-transform:inherit}.nav .current-month-year,.nav .current-years-list,.nav .current-year{cursor:pointer}tbody{display:inherit;margin:.75rem}td,th{color:#171717;font-size:.875rem;font-weight:400;line-height:1.3125rem;min-width:2.5625rem;padding:.4375rem;text-align:center;text-transform:capitalize}td.disabled,th.disabled{color:#d5d5d5;pointer-events:none}td.hidden,th.hidden{opacity:0;pointer-events:none}td.today,th.today{box-shadow:0 0 0 .125rem #d5d5d5 inset}td.selected,td.day:hover,th.selected,th.day:hover{background:#d5d5d5;cursor:pointer}.picker{display:flex;width:100%;flex-wrap:wrap;padding:.75rem}.picker .col{flex:0 0 33.33%;padding:.5rem .25rem}.picker .entry{padding:.4375rem;background:#d5d5d5;cursor:pointer;text-align:center}.picker .entry.selected,.picker .entry:hover{background:gray}td.day:focus,.nav button:focus,.picker .entry:focus{outline:none}:host-context(.qd-keyboard-active) td.day:focus,:host-context(.qd-keyboard-active) .nav button:focus,:host-context(.qd-keyboard-active) .picker .entry:focus{box-shadow:inset 0 0 0 .125rem #069}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: QdIconComponent, selector: "qd-icon", inputs: ["icon", "status"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
10929
10970
|
}
|
|
10930
10971
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdCalendarComponent, decorators: [{
|
|
10931
10972
|
type: Component,
|
|
@@ -11895,7 +11936,7 @@ class QdDropdownComponent {
|
|
|
11895
11936
|
provide: QD_FOCUSABLE_TOKEN,
|
|
11896
11937
|
useExisting: QdDropdownComponent
|
|
11897
11938
|
}
|
|
11898
|
-
], viewQueries: [{ propertyName: "filterInput", first: true, predicate: ["filterInput"], descendants: true }, { propertyName: "dropdownDirective", first: true, predicate: QdPopoverOnClickDirective, descendants: true }, { propertyName: "box", first: true, predicate: ["box"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<qd-form-label\n [label]=\"label\"\n [readonly]=\"readonly\"\n [viewonly]=\"viewonly\"\n [control]=\"control\"\n [tooltip]=\"config?.tooltip\"\n [data-test-id]=\"testId\"\n></qd-form-label>\n\n<div class=\"qd-dropdown__wrapper\">\n @if (!readonly && !viewonly && hasOptions) {\n <div\n class=\"qd-dropdown__box\"\n tabindex=\"0\"\n [attr.data-test-id]=\"testId + '-box'\"\n (keydown)=\"onListKeydown($event)\"\n [qdPopoverOnClick]=\"dropdownMenu\"\n [qdPopoverCloseStrategy]=\"'onOutsideClick'\"\n [qdPopoverStopPropagation]=\"true\"\n [qdPopoverDisabled]=\"disabled\"\n [qdPopoverMaxHeight]=\"qdPopoverMaxHeight\"\n [qdPopoverMinWidth]=\"160\"\n [qdPopoverAutoSize]=\"{ width: true }\"\n [qdPopoverEnableKeyControl]=\"true\"\n [qdPopoverRestoreFocus]=\"true\"\n [qdPopoverFlipIntoViewport]=\"true\"\n [qdPopoverOffsetY]=\"2\"\n (opened)=\"onOpenDropdown()\"\n (closed)=\"onDropdownClosed()\"\n qdPopoverPlacement=\"bottom-start\"\n >\n {{ (selectedOption?.i18n | translate) || placeholder }}\n <div class=\"qd-dropdown-suffix\">\n @if (hasError) {\n <qd-icon class=\"qd-error-icon\" icon=\"exclamationCircleSolid\"></qd-icon>\n }\n </div>\n </div>\n }\n</div>\n\n@if (!readonly && !viewonly && (hasHint || hasError)) {\n<qd-form-hint\n [hint]=\"hasHint ? config.hint.i18n : ''\"\n [control]=\"control\"\n [hasError]=\"hasError\"\n [hintAction]=\"hintAction\"\n [data-test-id]=\"testId\"\n></qd-form-hint>\n} @if (readonly) {\n<qd-form-readonly\n [values]=\"[selectedOption]\"\n [readonlyAction]=\"readonlyAction\"\n [data-test-id]=\"testId\"\n></qd-form-readonly>\n} @if (viewonly) {\n<qd-form-viewonly\n [values]=\"[selectedOption]\"\n [viewonlyAction]=\"viewonlyAction\"\n [status]=\"config?.viewonlyStatus\"\n [data-test-id]=\"testId\"\n></qd-form-viewonly>\n}\n\n<ng-template #dropdownMenu>\n <qd-form-options-list\n [options]=\"filteredOptions$ | async\"\n [id]=\"id\"\n [radioName]=\"testId + '-options'\"\n [data-test-id]=\"testId\"\n (optionSelected)=\"handleClick($event)\"\n >\n <div qdFormOptionsListHeader class=\"filter-wrapper\">\n @if (filter) {\n <input\n #filterInput\n type=\"text\"\n class=\"qd-dropdown__filter\"\n [(ngModel)]=\"filterText\"\n (ngModelChange)=\"handleFilterChange($event)\"\n (keydown)=\"onListKeydown($event)\"\n [attr.data-test-id]=\"testId + '-filter'\"\n autocomplete=\"off\"\n />\n\n <qd-icon [icon]=\"'filter'\" class=\"qd-dropdown__filter-magnifier\"></qd-icon>\n }\n </div>\n </qd-form-options-list>\n</ng-template>\n", styles: [".qd-dropdown__wrapper{position:relative;margin-bottom:.375rem}.qd-dropdown__wrapper.dense{margin-bottom:0}.qd-dropdown__wrapper .qd-dropdown__box{display:flex;overflow:hidden;width:100%;height:2.25rem;justify-content:space-between;padding:0 .75rem;border:.0625rem solid rgb(180,180,180);margin-bottom:.25rem;background:#fff;color:#fff;font-size:.875rem;font-weight:400;line-height:2.25rem;text-overflow:ellipsis;white-space:nowrap}.qd-dropdown__wrapper .qd-dropdown__box.dense{margin-bottom:0}.qd-dropdown-selected .qd-dropdown__wrapper .qd-dropdown__box{color:#171717}.qd-dropdown__wrapper .qd-dropdown__box:focus,.qd-dropdown__wrapper .qd-dropdown__box:active,.qd-dropdown__wrapper .qd-dropdown__box:hover{padding:0 .6875rem;border-width:.125rem;border-color:#171717;line-height:2.125rem;outline:0}.qd-dropdown__wrapper .qd-dropdown__box:active{color:#b4b4b4}.qd-dropdown__wrapper .qd-dropdown__box:hover:after{border-top-color:#b4b4b4}.qd-dropdown__wrapper .qd-dropdown__box:after{position:absolute;z-index:5;top:1rem;right:.75rem;width:0;height:0;border-top:.3125rem solid rgb(180,180,180);border-right:.3125rem solid rgba(255,255,255,0);border-left:.3125rem solid rgba(255,255,255,0);content:\"\";pointer-events:none}.qd-dropdown__wrapper .qd-dropdown__box .qd-dropdown-suffix{position:relative;z-index:8;margin-right:1rem;background:#fff}.qd-dropdown-disabled .qd-dropdown__wrapper .qd-dropdown__box{background:#f5f5f5;color:#979797}.qd-dropdown-disabled .qd-dropdown__wrapper .qd-dropdown__box:focus,.qd-dropdown-disabled .qd-dropdown__wrapper .qd-dropdown__box:hover,.qd-dropdown-disabled .qd-dropdown__wrapper .qd-dropdown__box:active{padding:0 .75rem;border:.0625rem solid rgb(180,180,180);line-height:2.25rem}.qd-dropdown-readonly .qd-dropdown__wrapper .qd-dropdown__box{height:inherit;padding:0;border:none;line-height:2.25rem}.qd-dropdown-readonly .qd-dropdown__wrapper .qd-dropdown__box:focus,.qd-dropdown-readonly .qd-dropdown__wrapper .qd-dropdown__box:hover,.qd-dropdown-readonly .qd-dropdown__wrapper .qd-dropdown__box:active{color:inherit}.qd-dropdown-readonly .qd-dropdown__wrapper .qd-dropdown__box:after{display:none}.qd-dropdown-viewonly .qd-dropdown__wrapper .qd-dropdown__box{height:inherit;padding:0;border:none;line-height:2.25rem}.qd-dropdown-viewonly .qd-dropdown__wrapper .qd-dropdown__box:focus,.qd-dropdown-viewonly .qd-dropdown__wrapper .qd-dropdown__box:hover,.qd-dropdown-viewonly .qd-dropdown__wrapper .qd-dropdown__box:active{color:inherit}.qd-dropdown-viewonly .qd-dropdown__wrapper .qd-dropdown__box:after{display:none}.qd-dropdown--readonly-action .qd-dropdown__box.qd-dropdown__box--readonly{color:#069;cursor:pointer}.qd-dropdown--readonly-action .qd-dropdown__box.qd-dropdown__box--readonly:hover,.qd-dropdown--readonly-action .qd-dropdown__box.qd-dropdown__box--readonly:active,.qd-dropdown--readonly-action .qd-dropdown__box.qd-dropdown__box--readonly:focus{color:#069;text-decoration:underline}.qd-dropdown--viewonly-action .qd-dropdown__box.qd-dropdown__box--viewonly{color:#069;cursor:pointer}.qd-dropdown--viewonly-action .qd-dropdown__box.qd-dropdown__box--viewonly:hover,.qd-dropdown--viewonly-action .qd-dropdown__box.qd-dropdown__box--viewonly:active,.qd-dropdown--viewonly-action .qd-dropdown__box.qd-dropdown__box--viewonly:focus{color:#069;text-decoration:underline}.qd-dropdown-error .qd-dropdown__box{padding:0 .75rem;border:.0625rem solid rgb(199,0,35);line-height:2.25rem}.qd-dropdown-error .qd-dropdown__box:focus,.qd-dropdown-error .qd-dropdown__box:hover,.qd-dropdown-error .qd-dropdown__box:active{padding:0 .6875rem;border:.125rem solid rgb(199,0,35);line-height:2.125rem}.qd-dropdown-error .qd-dropdown__box .qd-error-icon{color:#c70023}.qd-dropdown{display:block;height:4.5rem;margin-bottom:.75rem}.qd-dropdown.dense{width:100%;height:auto;margin-bottom:0}.qd-dropdown.dense .qd-dropdown__wrapper,.qd-dropdown.dense .qd-dropdown__box{margin-bottom:0}.qd-dropdown-open .qd-dropdown__wrapper .qd-dropdown__box{padding:0 .6875rem;border-width:.125rem;border-color:#069;line-height:2.125rem}.qd-dropdown-open .qd-dropdown__wrapper .qd-dropdown__box:after{border-top:none;border-bottom:.3125rem solid rgb(23,23,23)}.filter-wrapper{position:relative}.qd-dropdown__filter{width:100%;height:2.25rem;padding:0 .75rem 0 2.25rem;border:none;border-bottom:.0625rem solid rgb(213,213,213);background:#fff;color:#171717;overflow-y:auto;scroll-behavior:smooth}.qd-dropdown__filter:focus,.qd-dropdown__filter:hover,.qd-dropdown__filter:active{border:none;border-bottom:.125rem solid rgb(23,23,23);background:#f5f5f5;outline:none}.qd-dropdown-filter-focus .qd-dropdown__filter{border-bottom:.125rem solid rgb(0,102,153)}.qd-dropdown-filter-focus .qd-dropdown__filter:focus,.qd-dropdown-filter-focus .qd-dropdown__filter:hover,.qd-dropdown-filter-focus .qd-dropdown__filter:active{border-bottom:.125rem solid rgb(0,102,153)}.qd-dropdown__filter-magnifier{position:absolute;top:0;left:0;padding:.625rem 0 .625rem .75rem}.qd-dropdown__filter-magnifier .qd-icon{color:#757575}\n"], dependencies: [{ kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { 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: "component", type: QdFormHintComponent, selector: "qd-form-hint", inputs: ["hint", "control", "hasError", "hintAction", "data-test-id"] }, { kind: "component", type: QdFormLabelComponent, selector: "qd-form-label", inputs: ["label", "isDisabled", "readonly", "viewonly", "control", "tooltip", "data-test-id"] }, { kind: "component", type: QdFormReadonlyComponent, selector: "qd-form-readonly", inputs: ["values", "readonlyAction", "data-test-id"] }, { kind: "component", type: QdFormViewonlyComponent, selector: "qd-form-viewonly", inputs: ["values", "viewonlyAction", "status", "data-test-id"] }, { kind: "component", type: QdFormOptionsListComponent, selector: "qd-form-options-list", inputs: ["id", "options", "radioName", "data-test-id"], outputs: ["optionSelected"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], encapsulation: i0.ViewEncapsulation.None });
|
|
11939
|
+
], viewQueries: [{ propertyName: "filterInput", first: true, predicate: ["filterInput"], descendants: true }, { propertyName: "dropdownDirective", first: true, predicate: QdPopoverOnClickDirective, descendants: true }, { propertyName: "box", first: true, predicate: ["box"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<qd-form-label\n [label]=\"label\"\n [readonly]=\"readonly\"\n [viewonly]=\"viewonly\"\n [control]=\"control\"\n [tooltip]=\"config?.tooltip\"\n [data-test-id]=\"testId\"\n></qd-form-label>\n\n<div class=\"qd-dropdown__wrapper\">\n @if (!readonly && !viewonly && hasOptions) {\n <div\n class=\"qd-dropdown__box\"\n tabindex=\"0\"\n [attr.data-test-id]=\"testId + '-box'\"\n (keydown)=\"onListKeydown($event)\"\n [qdPopoverOnClick]=\"dropdownMenu\"\n [qdPopoverCloseStrategy]=\"'onOutsideClick'\"\n [qdPopoverStopPropagation]=\"true\"\n [qdPopoverDisabled]=\"disabled\"\n [qdPopoverMaxHeight]=\"qdPopoverMaxHeight\"\n [qdPopoverMinWidth]=\"160\"\n [qdPopoverAutoSize]=\"{ width: true }\"\n [qdPopoverEnableKeyControl]=\"true\"\n [qdPopoverRestoreFocus]=\"true\"\n [qdPopoverFlipIntoViewport]=\"true\"\n [qdPopoverOffsetY]=\"2\"\n (opened)=\"onOpenDropdown()\"\n (closed)=\"onDropdownClosed()\"\n qdPopoverPlacement=\"bottom-start\"\n >\n {{ (selectedOption?.i18n | translate) || placeholder }}\n <div class=\"qd-dropdown-suffix\">\n @if (hasError) {\n <qd-icon class=\"qd-error-icon\" icon=\"exclamationCircleSolid\"></qd-icon>\n }\n </div>\n </div>\n }\n</div>\n\n@if (!readonly && !viewonly && (hasHint || hasError)) {\n<qd-form-hint\n [hint]=\"hasHint ? config.hint.i18n : ''\"\n [control]=\"control\"\n [hasError]=\"hasError\"\n [hintAction]=\"hintAction\"\n [data-test-id]=\"testId\"\n></qd-form-hint>\n} @if (readonly) {\n<qd-form-readonly\n [values]=\"[selectedOption]\"\n [readonlyAction]=\"readonlyAction\"\n [data-test-id]=\"testId\"\n></qd-form-readonly>\n} @if (viewonly) {\n<qd-form-viewonly\n [values]=\"[selectedOption]\"\n [viewonlyAction]=\"viewonlyAction\"\n [status]=\"config?.viewonlyStatus\"\n [data-test-id]=\"testId\"\n></qd-form-viewonly>\n}\n\n<ng-template #dropdownMenu>\n <qd-form-options-list\n [options]=\"filteredOptions$ | async\"\n [id]=\"id\"\n [radioName]=\"testId + '-options'\"\n [data-test-id]=\"testId\"\n (optionSelected)=\"handleClick($event)\"\n >\n <div qdFormOptionsListHeader class=\"filter-wrapper\">\n @if (filter) {\n <input\n #filterInput\n type=\"text\"\n class=\"qd-dropdown__filter\"\n [(ngModel)]=\"filterText\"\n (ngModelChange)=\"handleFilterChange($event)\"\n (keydown)=\"onListKeydown($event)\"\n [attr.data-test-id]=\"testId + '-filter'\"\n autocomplete=\"off\"\n />\n\n <qd-icon [icon]=\"'filter'\" class=\"qd-dropdown__filter-magnifier\"></qd-icon>\n }\n </div>\n </qd-form-options-list>\n</ng-template>\n", styles: [".qd-dropdown__wrapper{position:relative;margin-bottom:.375rem}.qd-dropdown__wrapper.dense{margin-bottom:0}.qd-dropdown__wrapper .qd-dropdown__box{display:flex;overflow:hidden;width:100%;height:2.25rem;justify-content:space-between;padding:0 .75rem;border:.0625rem solid rgb(180,180,180);margin-bottom:.25rem;background:#fff;color:#fff;font-size:.875rem;font-weight:400;line-height:2.25rem;text-overflow:ellipsis;white-space:nowrap}.qd-dropdown__wrapper .qd-dropdown__box.dense{margin-bottom:0}.qd-dropdown-selected .qd-dropdown__wrapper .qd-dropdown__box{color:#171717}.qd-dropdown__wrapper .qd-dropdown__box:focus,.qd-dropdown__wrapper .qd-dropdown__box:active,.qd-dropdown__wrapper .qd-dropdown__box:hover{padding:0 .6875rem;border-width:.125rem;border-color:#171717;line-height:2.125rem;outline:0}.qd-dropdown__wrapper .qd-dropdown__box:active{color:#b4b4b4}.qd-dropdown__wrapper .qd-dropdown__box:hover:after{border-top-color:#b4b4b4}.qd-dropdown__wrapper .qd-dropdown__box:after{position:absolute;z-index:5;top:1rem;right:.75rem;width:0;height:0;border-top:.3125rem solid rgb(180,180,180);border-right:.3125rem solid rgba(255,255,255,0);border-left:.3125rem solid rgba(255,255,255,0);content:\"\";pointer-events:none}.qd-dropdown__wrapper .qd-dropdown__box .qd-dropdown-suffix{position:relative;z-index:8;margin-right:1rem;background:#fff}.qd-dropdown-disabled .qd-dropdown__wrapper .qd-dropdown__box{background:#f5f5f5;color:#979797}.qd-dropdown-disabled .qd-dropdown__wrapper .qd-dropdown__box:focus,.qd-dropdown-disabled .qd-dropdown__wrapper .qd-dropdown__box:hover,.qd-dropdown-disabled .qd-dropdown__wrapper .qd-dropdown__box:active{padding:0 .75rem;border:.0625rem solid rgb(180,180,180);line-height:2.25rem}.qd-dropdown-readonly .qd-dropdown__wrapper .qd-dropdown__box{height:inherit;padding:0;border:none;line-height:2.25rem}.qd-dropdown-readonly .qd-dropdown__wrapper .qd-dropdown__box:focus,.qd-dropdown-readonly .qd-dropdown__wrapper .qd-dropdown__box:hover,.qd-dropdown-readonly .qd-dropdown__wrapper .qd-dropdown__box:active{color:inherit}.qd-dropdown-readonly .qd-dropdown__wrapper .qd-dropdown__box:after{display:none}.qd-dropdown-viewonly .qd-dropdown__wrapper .qd-dropdown__box{height:inherit;padding:0;border:none;line-height:2.25rem}.qd-dropdown-viewonly .qd-dropdown__wrapper .qd-dropdown__box:focus,.qd-dropdown-viewonly .qd-dropdown__wrapper .qd-dropdown__box:hover,.qd-dropdown-viewonly .qd-dropdown__wrapper .qd-dropdown__box:active{color:inherit}.qd-dropdown-viewonly .qd-dropdown__wrapper .qd-dropdown__box:after{display:none}.qd-dropdown--readonly-action .qd-dropdown__box.qd-dropdown__box--readonly{color:#069;cursor:pointer}.qd-dropdown--readonly-action .qd-dropdown__box.qd-dropdown__box--readonly:hover,.qd-dropdown--readonly-action .qd-dropdown__box.qd-dropdown__box--readonly:active,.qd-dropdown--readonly-action .qd-dropdown__box.qd-dropdown__box--readonly:focus{color:#069;text-decoration:underline}.qd-dropdown--viewonly-action .qd-dropdown__box.qd-dropdown__box--viewonly{color:#069;cursor:pointer}.qd-dropdown--viewonly-action .qd-dropdown__box.qd-dropdown__box--viewonly:hover,.qd-dropdown--viewonly-action .qd-dropdown__box.qd-dropdown__box--viewonly:active,.qd-dropdown--viewonly-action .qd-dropdown__box.qd-dropdown__box--viewonly:focus{color:#069;text-decoration:underline}.qd-dropdown-error .qd-dropdown__box{padding:0 .75rem;border:.0625rem solid rgb(199,0,35);line-height:2.25rem}.qd-dropdown-error .qd-dropdown__box:focus,.qd-dropdown-error .qd-dropdown__box:hover,.qd-dropdown-error .qd-dropdown__box:active{padding:0 .6875rem;border:.125rem solid rgb(199,0,35);line-height:2.125rem}.qd-dropdown-error .qd-dropdown__box .qd-error-icon{color:#c70023}.qd-dropdown{display:block;height:4.5rem;margin-bottom:.75rem}.qd-dropdown.dense{width:100%;height:auto;margin-bottom:0}.qd-dropdown.dense .qd-dropdown__wrapper,.qd-dropdown.dense .qd-dropdown__box{margin-bottom:0}.qd-dropdown-open .qd-dropdown__wrapper .qd-dropdown__box{padding:0 .6875rem;border-width:.125rem;border-color:#069;line-height:2.125rem}.qd-dropdown-open .qd-dropdown__wrapper .qd-dropdown__box:after{border-top:none;border-bottom:.3125rem solid rgb(23,23,23)}.filter-wrapper{position:relative}.qd-dropdown__filter{width:100%;height:2.25rem;padding:0 .75rem 0 2.25rem;border:none;border-bottom:.0625rem solid rgb(213,213,213);background:#fff;color:#171717;overflow-y:auto;scroll-behavior:smooth}.qd-dropdown__filter:focus,.qd-dropdown__filter:hover,.qd-dropdown__filter:active{border:none;border-bottom:.125rem solid rgb(23,23,23);background:#f5f5f5;outline:none}.qd-dropdown-filter-focus .qd-dropdown__filter{border-bottom:.125rem solid rgb(0,102,153)}.qd-dropdown-filter-focus .qd-dropdown__filter:focus,.qd-dropdown-filter-focus .qd-dropdown__filter:hover,.qd-dropdown-filter-focus .qd-dropdown__filter:active{border-bottom:.125rem solid rgb(0,102,153)}.qd-dropdown__filter-magnifier{position:absolute;top:0;left:0;padding:.625rem 0 .625rem .75rem}.qd-dropdown__filter-magnifier .qd-icon{color:#757575}\n"], dependencies: [{ kind: "directive", type: i1$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { 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: "component", type: QdFormHintComponent, selector: "qd-form-hint", inputs: ["hint", "control", "hasError", "hintAction", "data-test-id"] }, { kind: "component", type: QdFormLabelComponent, selector: "qd-form-label", inputs: ["label", "isDisabled", "readonly", "viewonly", "control", "tooltip", "data-test-id"] }, { kind: "component", type: QdFormReadonlyComponent, selector: "qd-form-readonly", inputs: ["values", "readonlyAction", "data-test-id"] }, { kind: "component", type: QdFormViewonlyComponent, selector: "qd-form-viewonly", inputs: ["values", "viewonlyAction", "status", "data-test-id"] }, { kind: "component", type: QdFormOptionsListComponent, selector: "qd-form-options-list", inputs: ["id", "options", "radioName", "data-test-id"], outputs: ["optionSelected"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], encapsulation: i0.ViewEncapsulation.None });
|
|
11899
11940
|
}
|
|
11900
11941
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdDropdownComponent, decorators: [{
|
|
11901
11942
|
type: Component,
|
|
@@ -12053,7 +12094,7 @@ class QdInputUnitsComponent {
|
|
|
12053
12094
|
this.closed.emit();
|
|
12054
12095
|
}
|
|
12055
12096
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdInputUnitsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
12056
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdInputUnitsComponent, isStandalone: false, selector: "qd-input-units", inputs: { config: "config", unitValue: ["unit", "unitValue"] }, outputs: { unitChange: "unitChange", opened: "opened", closed: "closed" }, usesOnChanges: true, ngImport: i0, template: "@if (config.units.length > 1) {\n<button\n [qdPopoverOnClick]=\"units\"\n (opened)=\"handleOpened()\"\n (closed)=\"handleClosed()\"\n [qdPopoverAutoSize]=\"{ width: true }\"\n [qdPopoverMaxHeight]=\"500\"\n class=\"qd-input-unit\"\n [ngClass]=\"{ 'qd-input-unit--selected': _unit }\"\n>\n <qd-icon icon=\"ctrlDown\" class=\"qd-input-unit-icon\"></qd-icon>\n {{ _unit ? (_unit.i18n | translate) : (unitsPlaceholder | translate) }}\n</button>\n} @else { @if (!config.units[0].disabled) {\n<div class=\"qd-input-single-unit\">\n {{ config.units[0].i18n | translate }}\n</div>\n} }\n\n<ng-template #units>\n @for (unit of config.units; track unit) {\n <button\n class=\"qd-input-unit-option\"\n [ngClass]=\"{ 'qd-input-unit-option--disabled': unit.disabled }\"\n (click)=\"handleUnitSelection(unit)\"\n >\n {{ unit.i18n | translate }}\n </button>\n }\n</ng-template>\n", styles: [".qd-input-unit{height:2.25rem;padding:0 .5625rem 0 .25rem;border-left:.0625rem solid rgb(180,180,180);margin:0;background-color:#fff;color:#171717;font-size:.875rem;line-height:1.875rem;white-space:nowrap}.qd-input-unit-icon{color:#171717;font-size:1.125rem;font-weight:700;vertical-align:bottom}.qd-input-single-unit{height:2.25rem;padding:0 .4375rem 0 .5rem;border-left:.0625rem solid rgb(180,180,180);background-color:#fff;font-size:.875rem;line-height:2.25rem;white-space:nowrap}.qd-input-unit-option{display:block;width:100%;height:2.25rem;padding:0 .6875rem;background-color:#fff;color:#171717;font-size:.875rem;line-height:1.875rem;text-align:left;white-space:nowrap}.qd-input-unit-option--disabled{color:#b4b4b4;cursor:auto}.qd-input-unit-option:focus,.qd-input-unit-option:hover,.qd-input-unit-option:active{background:#f5f5f5}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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: "pipe", type: i2.TranslatePipe, name: "translate" }] });
|
|
12097
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdInputUnitsComponent, isStandalone: false, selector: "qd-input-units", inputs: { config: "config", unitValue: ["unit", "unitValue"] }, outputs: { unitChange: "unitChange", opened: "opened", closed: "closed" }, usesOnChanges: true, ngImport: i0, template: "@if (config.units.length > 1) {\n<button\n [qdPopoverOnClick]=\"units\"\n (opened)=\"handleOpened()\"\n (closed)=\"handleClosed()\"\n [qdPopoverAutoSize]=\"{ width: true }\"\n [qdPopoverMaxHeight]=\"500\"\n class=\"qd-input-unit\"\n [ngClass]=\"{ 'qd-input-unit--selected': _unit }\"\n>\n <qd-icon icon=\"ctrlDown\" class=\"qd-input-unit-icon\"></qd-icon>\n {{ _unit ? (_unit.i18n | translate) : (unitsPlaceholder | translate) }}\n</button>\n} @else { @if (!config.units[0].disabled) {\n<div class=\"qd-input-single-unit\">\n {{ config.units[0].i18n | translate }}\n</div>\n} }\n\n<ng-template #units>\n @for (unit of config.units; track unit) {\n <button\n class=\"qd-input-unit-option\"\n [ngClass]=\"{ 'qd-input-unit-option--disabled': unit.disabled }\"\n (click)=\"handleUnitSelection(unit)\"\n >\n {{ unit.i18n | translate }}\n </button>\n }\n</ng-template>\n", styles: [".qd-input-unit{height:2.25rem;padding:0 .5625rem 0 .25rem;border-left:.0625rem solid rgb(180,180,180);margin:0;background-color:#fff;color:#171717;font-size:.875rem;line-height:1.875rem;white-space:nowrap}.qd-input-unit-icon{color:#171717;font-size:1.125rem;font-weight:700;vertical-align:bottom}.qd-input-single-unit{height:2.25rem;padding:0 .4375rem 0 .5rem;border-left:.0625rem solid rgb(180,180,180);background-color:#fff;font-size:.875rem;line-height:2.25rem;white-space:nowrap}.qd-input-unit-option{display:block;width:100%;height:2.25rem;padding:0 .6875rem;background-color:#fff;color:#171717;font-size:.875rem;line-height:1.875rem;text-align:left;white-space:nowrap}.qd-input-unit-option--disabled{color:#b4b4b4;cursor:auto}.qd-input-unit-option:focus,.qd-input-unit-option:hover,.qd-input-unit-option:active{background:#f5f5f5}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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: "pipe", type: i2.TranslatePipe, name: "translate" }] });
|
|
12057
12098
|
}
|
|
12058
12099
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdInputUnitsComponent, decorators: [{
|
|
12059
12100
|
type: Component,
|
|
@@ -12730,7 +12771,7 @@ class QdInputComponent {
|
|
|
12730
12771
|
provide: QD_FOCUSABLE_TOKEN,
|
|
12731
12772
|
useExisting: QdInputComponent
|
|
12732
12773
|
}
|
|
12733
|
-
], viewQueries: [{ propertyName: "inputElement", first: true, predicate: ["input"], descendants: true }, { propertyName: "popover", first: true, predicate: QdPopoverOnClickDirective, descendants: true }], usesOnChanges: true, ngImport: i0, template: "<qd-form-label\n [label]=\"label\"\n [readonly]=\"readonly\"\n [viewonly]=\"viewonly\"\n [control]=\"control\"\n [tooltip]=\"config?.tooltip\"\n [data-test-id]=\"testId\"\n></qd-form-label>\n\n@if (!readonly && !viewonly && !hasOptions) {\n<div class=\"qd-input-input\" (keydown.enter)=\"emitEnterClick()\" [attr.data-test-id]=\"testId + '-box'\">\n <ng-container *ngTemplateOutlet=\"inputBox\"></ng-container>\n</div>\n@if (hasMaxLength) {\n<span class=\"qd-input-character-counter\">{{ numberOfCharacters }} / {{ maxLength }}</span>\n} @if (hint || hasError) {\n<qd-form-hint\n [hint]=\"hint\"\n [control]=\"control\"\n [hasError]=\"hasError\"\n [hintAction]=\"hintAction\"\n [data-test-id]=\"testId\"\n></qd-form-hint>\n} @if (isAmbiguousInput) {\n<qd-form-hint [hint]=\"ambiguityHintKey\" [data-test-id]=\"testId\"></qd-form-hint>\n} } @if (!readonly && !viewonly && hasOptions) {\n<div>\n <div\n class=\"qd-input-input\"\n [attr.data-test-id]=\"testId + '-box'\"\n [qdPopoverOnClick]=\"optionsMenu\"\n [qdPopoverMinWidth]=\"160\"\n [qdPopoverAutoSize]=\"{ width: true }\"\n [qdPopoverMaxHeight]=\"288\"\n [qdPopoverFlipIntoViewport]=\"true\"\n [qdPopoverOffsetY]=\"2\"\n qdPopoverPlacement=\"bottom-start\"\n [qdPopoverCloseStrategy]=\"'onOutsideClick'\"\n [qdPopoverStopPropagation]=\"false\"\n (opened)=\"onOptionsOpened()\"\n (closed)=\"onOptionsClosed()\"\n (keydown.enter)=\"emitEnterClick()\"\n >\n <ng-container *ngTemplateOutlet=\"inputBox\"></ng-container>\n </div>\n @if (hasMaxLength) {\n <span class=\"qd-input-character-counter\">{{ numberOfCharacters }} / {{ maxLength }}</span>\n } @if (hint || hasError) {\n <qd-form-hint\n [hint]=\"hint\"\n [control]=\"control\"\n [hasError]=\"hasError\"\n [hintAction]=\"hintAction\"\n [data-test-id]=\"testId\"\n ></qd-form-hint>\n } @if (isAmbiguousInput) {\n <qd-form-hint [hint]=\"ambiguityHintKey\" [data-test-id]=\"testId\"></qd-form-hint>\n }\n</div>\n} @if (readonly) {\n<qd-form-readonly [values]=\"valueAsList\" [readonlyAction]=\"readonlyAction\" [data-test-id]=\"testId\"></qd-form-readonly>\n} @if (viewonly) {\n<qd-form-viewonly\n [values]=\"valueAsList\"\n [viewonlyAction]=\"viewonlyAction\"\n [status]=\"config?.viewonlyStatus\"\n [data-test-id]=\"testId\"\n></qd-form-viewonly>\n}\n\n<ng-template #inputBox>\n <input\n #input\n [placeholder]=\"placeholder | translate\"\n [value]=\"hasOptions ? (_value.value.toString() | translate) : _displayValue\"\n (input)=\"handleInput($event)\"\n (focus)=\"handleInputFocus()\"\n (blur)=\"handleInputBlur()\"\n [disabled]=\"disabled || readonly\"\n [type]=\"htmlInputType\"\n [attr.inputmode]=\"inputMode\"\n [qdAutofocus]=\"hasAutofocus\"\n [attr.data-test-id]=\"testId + '-input'\"\n [step]=\"config?.step\"\n required\n autocomplete=\"off\"\n />\n <div class=\"qd-input-suffix\">\n @if (hasError && !hasOnlyUnitsError) {\n <qd-icon class=\"qd-input-error-icon\" icon=\"exclamationCircleSolid\"></qd-icon>\n } @if (isAmbiguousInput) {\n <qd-icon class=\"qd-input-ambiguous-icon\" icon=\"circleInfoSolid\"></qd-icon>\n } @if (clearable) {\n <qd-icon class=\"qd-input-clearable-icon\" icon=\"timesLarge\" (click)=\"clearInput()\"></qd-icon>\n }\n <ng-content select=\"[qdIconButton]\"></ng-content>\n </div>\n @if (hasUnits) {\n <qd-input-units\n [unit]=\"_value.unit\"\n [config]=\"config\"\n (unitChange)=\"handleUnitChange($event)\"\n (opened)=\"handleUnitsOpened()\"\n (closed)=\"handleUnitsClosed()\"\n ></qd-input-units>\n } @if (hasError && hasOnlyUnitsError) {\n <div class=\"qd-input-suffix\">\n <qd-icon class=\"qd-input-error-icon\" icon=\"exclamationCircleSolid\"></qd-icon>\n </div>\n }\n</ng-template>\n\n<ng-template #optionsMenu>\n @switch (optionsRequestState$ | async) { @case (QdFormOptionsRequestState.PENDING) {\n <div class=\"options-hint\" [attr.data-test-id]=\"testId + '-options-loading'\">\n {{ requestLoadingHintI18n | translate }}\n </div>\n } @case (QdFormOptionsRequestState.ERROR) {\n <div class=\"options-hint error\" [attr.data-test-id]=\"testId + '-options-error'\">\n {{ requestErrorHintI18n | translate }}\n </div>\n } @default {\n <qd-form-options-list\n [options]=\"filteredOptions$ | async\"\n [radioName]=\"testId + '-options'\"\n [data-test-id]=\"testId\"\n (optionSelected)=\"handleOptionSelected($event)\"\n ></qd-form-options-list>\n } }\n</ng-template>\n", styles: [":host{position:relative;display:block;width:100%;flex-direction:column;margin-bottom:.75rem}:host .qd-input-input{display:flex;overflow:hidden;height:2.25rem;align-items:center;padding:0 .0625rem 0 .5rem;border:.0625rem solid rgb(180,180,180);border-radius:0;margin-bottom:.375rem;background-color:#fff}:host .qd-input-input:hover,:host .qd-input-input:active{padding:.0625rem 0 .0625rem .4375rem;border:.125rem solid rgb(23,23,23);border-radius:0}:host .qd-input-input input{overflow:hidden;width:100%;flex-grow:1;border:none;background-color:#fff;color:#171717;font-size:.875rem;line-height:1.875rem}:host .qd-input-input input:hover,:host .qd-input-input input:focus,:host .qd-input-input input:active{border:none;outline:none}:host .qd-input-input input::placeholder{color:#b4b4b4}:host .qd-input-input input:focus::placeholder{display:block;color:#b4b4b4}:host .qd-input-input .qd-input-suffix{display:flex;align-items:center;margin-left:.75rem}:host .qd-input-input .qd-input-suffix ::ng-deep .qd-input-error-icon{padding-right:.5rem;color:#c70023}:host .qd-input-input .qd-input-suffix ::ng-deep .qd-input-error-icon+.qd-input-clearable-icon{margin-left:-.25rem}:host .qd-input-input .qd-input-suffix ::ng-deep .qd-input-clearable-icon{margin-right:.5625rem;color:#979797;cursor:pointer;font-size:1.25rem;line-height:2rem}:host .qd-input-input .qd-input-suffix ::ng-deep .qd-input-clearable-icon:hover,:host .qd-input-input .qd-input-suffix ::ng-deep .qd-input-clearable-icon:focus,:host .qd-input-input .qd-input-suffix ::ng-deep .qd-input-clearable-icon:active{color:#171717}:host .qd-input-input qd-input-units+.qd-input-suffix{margin:0 0 0 -.1875rem}:host .qd-input-input:has(.qd-icon-button){overflow:visible}:host .qd-input-character-counter{padding-left:.125rem;color:#757575;float:right;font-size:.75rem;font-weight:300;line-height:.75rem}:host:after{display:block;height:0;clear:both;content:\".\";visibility:hidden}:host.qd-input-focus .qd-input-input{padding:.0625rem 0 .0625rem .4375rem;border:.125rem solid rgb(0,102,153);border-radius:0;outline:none}:host.qd-input-readonly .qd-input-readonly{color:#171717;font-size:.875rem;line-height:2.25rem}:host.qd-input-viewonly .qd-input-viewonly{color:#171717;font-size:.875rem;line-height:2.25rem}:host.qd-input-disabled .qd-input-input{border:.0625rem solid rgb(151,151,151);background-color:#f5f5f5}:host.qd-input-disabled .qd-input-input input{background-color:#f5f5f5;color:#979797}:host.qd-input-disabled .qd-input-input input::placeholder{opacity:0}:host.qd-input-disabled .qd-input-input:hover,:host.qd-input-disabled .qd-input-input:active{padding:0 .0625rem 0 .5rem;border:.0625rem solid rgb(151,151,151);background-color:#f5f5f5}:host.qd-input-disabled.qd-input-focus{border-color:#ff9b00}:host.qd-input--readonly-action .qd-input-readonly{color:#069;cursor:pointer}:host.qd-input--readonly-action .qd-input-readonly:hover,:host.qd-input--readonly-action .qd-input-readonly:active,:host.qd-input--readonly-action .qd-input-readonly:focus{text-decoration:underline}:host.qd-input--viewonly-action .qd-input-viewonly{color:#069;cursor:pointer}:host.qd-input--viewonly-action .qd-input-viewonly:hover,:host.qd-input--viewonly-action .qd-input-viewonly:active,:host.qd-input--viewonly-action .qd-input-viewonly:focus{text-decoration:underline}:host.qd-input-ambiguous .qd-input-input{padding:0 .0625rem 0 .5rem;border:.0625rem solid rgb(0,102,153)}:host.qd-input-ambiguous .qd-input-input:hover,:host.qd-input-ambiguous .qd-input-input:active{padding:.0625rem 0 .0625rem .4375rem;border:.125rem solid rgb(0,102,153)}:host.qd-input-ambiguous.qd-input-focus .qd-input-input{border-color:#069}:host.qd-input-ambiguous .qd-input-suffix ::ng-deep .qd-input-ambiguous-icon{padding-right:.5rem;color:#069}:host.qd-input-error .qd-input-input,:host.qd-input-error-from-outside .qd-input-input{padding:0 .0625rem 0 .5rem;border:.0625rem solid rgb(199,0,35)}:host.qd-input-error .qd-input-input:hover,:host.qd-input-error .qd-input-input:active,:host.qd-input-error-from-outside .qd-input-input:hover,:host.qd-input-error-from-outside .qd-input-input:active{padding:.0625rem 0 .0625rem .4375rem;border:.125rem solid rgb(199,0,35)}:host.qd-input-error.qd-input-focus,:host.qd-input-error-from-outside.qd-input-focus{border-color:#c70023}.options-hint{color:#757575;font-size:.75rem;font-weight:500;line-height:1.125rem;padding-right:.75rem;padding-left:.75rem;line-height:2.25rem}.options-hint.error{color:#c70023}\n"], dependencies: [{ kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: QdAutofocusDirective, selector: "[qdAutofocus]", inputs: ["qdAutofocus"] }, { 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: "component", type: QdFormHintComponent, selector: "qd-form-hint", inputs: ["hint", "control", "hasError", "hintAction", "data-test-id"] }, { kind: "component", type: QdFormLabelComponent, selector: "qd-form-label", inputs: ["label", "isDisabled", "readonly", "viewonly", "control", "tooltip", "data-test-id"] }, { kind: "component", type: QdFormReadonlyComponent, selector: "qd-form-readonly", inputs: ["values", "readonlyAction", "data-test-id"] }, { kind: "component", type: QdFormViewonlyComponent, selector: "qd-form-viewonly", inputs: ["values", "viewonlyAction", "status", "data-test-id"] }, { kind: "component", type: QdInputUnitsComponent, selector: "qd-input-units", inputs: ["config", "unit"], outputs: ["unitChange", "opened", "closed"] }, { kind: "component", type: QdFormOptionsListComponent, selector: "qd-form-options-list", inputs: ["id", "options", "radioName", "data-test-id"], outputs: ["optionSelected"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] });
|
|
12774
|
+
], viewQueries: [{ propertyName: "inputElement", first: true, predicate: ["input"], descendants: true }, { propertyName: "popover", first: true, predicate: QdPopoverOnClickDirective, descendants: true }], usesOnChanges: true, ngImport: i0, template: "<qd-form-label\n [label]=\"label\"\n [readonly]=\"readonly\"\n [viewonly]=\"viewonly\"\n [control]=\"control\"\n [tooltip]=\"config?.tooltip\"\n [data-test-id]=\"testId\"\n></qd-form-label>\n\n@if (!readonly && !viewonly && !hasOptions) {\n<div class=\"qd-input-input\" (keydown.enter)=\"emitEnterClick()\" [attr.data-test-id]=\"testId + '-box'\">\n <ng-container *ngTemplateOutlet=\"inputBox\"></ng-container>\n</div>\n@if (hasMaxLength) {\n<span class=\"qd-input-character-counter\">{{ numberOfCharacters }} / {{ maxLength }}</span>\n} @if (hint || hasError) {\n<qd-form-hint\n [hint]=\"hint\"\n [control]=\"control\"\n [hasError]=\"hasError\"\n [hintAction]=\"hintAction\"\n [data-test-id]=\"testId\"\n></qd-form-hint>\n} @if (isAmbiguousInput) {\n<qd-form-hint [hint]=\"ambiguityHintKey\" [data-test-id]=\"testId\"></qd-form-hint>\n} } @if (!readonly && !viewonly && hasOptions) {\n<div>\n <div\n class=\"qd-input-input\"\n [attr.data-test-id]=\"testId + '-box'\"\n [qdPopoverOnClick]=\"optionsMenu\"\n [qdPopoverMinWidth]=\"160\"\n [qdPopoverAutoSize]=\"{ width: true }\"\n [qdPopoverMaxHeight]=\"288\"\n [qdPopoverFlipIntoViewport]=\"true\"\n [qdPopoverOffsetY]=\"2\"\n qdPopoverPlacement=\"bottom-start\"\n [qdPopoverCloseStrategy]=\"'onOutsideClick'\"\n [qdPopoverStopPropagation]=\"false\"\n (opened)=\"onOptionsOpened()\"\n (closed)=\"onOptionsClosed()\"\n (keydown.enter)=\"emitEnterClick()\"\n >\n <ng-container *ngTemplateOutlet=\"inputBox\"></ng-container>\n </div>\n @if (hasMaxLength) {\n <span class=\"qd-input-character-counter\">{{ numberOfCharacters }} / {{ maxLength }}</span>\n } @if (hint || hasError) {\n <qd-form-hint\n [hint]=\"hint\"\n [control]=\"control\"\n [hasError]=\"hasError\"\n [hintAction]=\"hintAction\"\n [data-test-id]=\"testId\"\n ></qd-form-hint>\n } @if (isAmbiguousInput) {\n <qd-form-hint [hint]=\"ambiguityHintKey\" [data-test-id]=\"testId\"></qd-form-hint>\n }\n</div>\n} @if (readonly) {\n<qd-form-readonly [values]=\"valueAsList\" [readonlyAction]=\"readonlyAction\" [data-test-id]=\"testId\"></qd-form-readonly>\n} @if (viewonly) {\n<qd-form-viewonly\n [values]=\"valueAsList\"\n [viewonlyAction]=\"viewonlyAction\"\n [status]=\"config?.viewonlyStatus\"\n [data-test-id]=\"testId\"\n></qd-form-viewonly>\n}\n\n<ng-template #inputBox>\n <input\n #input\n [placeholder]=\"placeholder | translate\"\n [value]=\"hasOptions ? (_value.value.toString() | translate) : _displayValue\"\n (input)=\"handleInput($event)\"\n (focus)=\"handleInputFocus()\"\n (blur)=\"handleInputBlur()\"\n [disabled]=\"disabled || readonly\"\n [type]=\"htmlInputType\"\n [attr.inputmode]=\"inputMode\"\n [qdAutofocus]=\"hasAutofocus\"\n [attr.data-test-id]=\"testId + '-input'\"\n [step]=\"config?.step\"\n required\n autocomplete=\"off\"\n />\n <div class=\"qd-input-suffix\">\n @if (hasError && !hasOnlyUnitsError) {\n <qd-icon class=\"qd-input-error-icon\" icon=\"exclamationCircleSolid\"></qd-icon>\n } @if (isAmbiguousInput) {\n <qd-icon class=\"qd-input-ambiguous-icon\" icon=\"circleInfoSolid\"></qd-icon>\n } @if (clearable) {\n <qd-icon class=\"qd-input-clearable-icon\" icon=\"timesLarge\" (click)=\"clearInput()\"></qd-icon>\n }\n <ng-content select=\"[qdIconButton]\"></ng-content>\n </div>\n @if (hasUnits) {\n <qd-input-units\n [unit]=\"_value.unit\"\n [config]=\"config\"\n (unitChange)=\"handleUnitChange($event)\"\n (opened)=\"handleUnitsOpened()\"\n (closed)=\"handleUnitsClosed()\"\n ></qd-input-units>\n } @if (hasError && hasOnlyUnitsError) {\n <div class=\"qd-input-suffix\">\n <qd-icon class=\"qd-input-error-icon\" icon=\"exclamationCircleSolid\"></qd-icon>\n </div>\n }\n</ng-template>\n\n<ng-template #optionsMenu>\n @switch (optionsRequestState$ | async) { @case (QdFormOptionsRequestState.PENDING) {\n <div class=\"options-hint\" [attr.data-test-id]=\"testId + '-options-loading'\">\n {{ requestLoadingHintI18n | translate }}\n </div>\n } @case (QdFormOptionsRequestState.ERROR) {\n <div class=\"options-hint error\" [attr.data-test-id]=\"testId + '-options-error'\">\n {{ requestErrorHintI18n | translate }}\n </div>\n } @default {\n <qd-form-options-list\n [options]=\"filteredOptions$ | async\"\n [radioName]=\"testId + '-options'\"\n [data-test-id]=\"testId\"\n (optionSelected)=\"handleOptionSelected($event)\"\n ></qd-form-options-list>\n } }\n</ng-template>\n", styles: [":host{position:relative;display:block;width:100%;flex-direction:column;margin-bottom:.75rem}:host .qd-input-input{display:flex;overflow:hidden;height:2.25rem;align-items:center;padding:0 .0625rem 0 .5rem;border:.0625rem solid rgb(180,180,180);border-radius:0;margin-bottom:.375rem;background-color:#fff}:host .qd-input-input:hover,:host .qd-input-input:active{padding:.0625rem 0 .0625rem .4375rem;border:.125rem solid rgb(23,23,23);border-radius:0}:host .qd-input-input input{overflow:hidden;width:100%;flex-grow:1;border:none;background-color:#fff;color:#171717;font-size:.875rem;line-height:1.875rem}:host .qd-input-input input:hover,:host .qd-input-input input:focus,:host .qd-input-input input:active{border:none;outline:none}:host .qd-input-input input::placeholder{color:#b4b4b4}:host .qd-input-input input:focus::placeholder{display:block;color:#b4b4b4}:host .qd-input-input .qd-input-suffix{display:flex;align-items:center;margin-left:.75rem}:host .qd-input-input .qd-input-suffix ::ng-deep .qd-input-error-icon{padding-right:.5rem;color:#c70023}:host .qd-input-input .qd-input-suffix ::ng-deep .qd-input-error-icon+.qd-input-clearable-icon{margin-left:-.25rem}:host .qd-input-input .qd-input-suffix ::ng-deep .qd-input-clearable-icon{margin-right:.5625rem;color:#979797;cursor:pointer;font-size:1.25rem;line-height:2rem}:host .qd-input-input .qd-input-suffix ::ng-deep .qd-input-clearable-icon:hover,:host .qd-input-input .qd-input-suffix ::ng-deep .qd-input-clearable-icon:focus,:host .qd-input-input .qd-input-suffix ::ng-deep .qd-input-clearable-icon:active{color:#171717}:host .qd-input-input qd-input-units+.qd-input-suffix{margin:0 0 0 -.1875rem}:host .qd-input-input:has(.qd-icon-button){overflow:visible}:host .qd-input-character-counter{padding-left:.125rem;color:#757575;float:right;font-size:.75rem;font-weight:300;line-height:.75rem}:host:after{display:block;height:0;clear:both;content:\".\";visibility:hidden}:host.qd-input-focus .qd-input-input{padding:.0625rem 0 .0625rem .4375rem;border:.125rem solid rgb(0,102,153);border-radius:0;outline:none}:host.qd-input-readonly .qd-input-readonly{color:#171717;font-size:.875rem;line-height:2.25rem}:host.qd-input-viewonly .qd-input-viewonly{color:#171717;font-size:.875rem;line-height:2.25rem}:host.qd-input-disabled .qd-input-input{border:.0625rem solid rgb(151,151,151);background-color:#f5f5f5}:host.qd-input-disabled .qd-input-input input{background-color:#f5f5f5;color:#979797}:host.qd-input-disabled .qd-input-input input::placeholder{opacity:0}:host.qd-input-disabled .qd-input-input:hover,:host.qd-input-disabled .qd-input-input:active{padding:0 .0625rem 0 .5rem;border:.0625rem solid rgb(151,151,151);background-color:#f5f5f5}:host.qd-input-disabled.qd-input-focus{border-color:#ff9b00}:host.qd-input--readonly-action .qd-input-readonly{color:#069;cursor:pointer}:host.qd-input--readonly-action .qd-input-readonly:hover,:host.qd-input--readonly-action .qd-input-readonly:active,:host.qd-input--readonly-action .qd-input-readonly:focus{text-decoration:underline}:host.qd-input--viewonly-action .qd-input-viewonly{color:#069;cursor:pointer}:host.qd-input--viewonly-action .qd-input-viewonly:hover,:host.qd-input--viewonly-action .qd-input-viewonly:active,:host.qd-input--viewonly-action .qd-input-viewonly:focus{text-decoration:underline}:host.qd-input-ambiguous .qd-input-input{padding:0 .0625rem 0 .5rem;border:.0625rem solid rgb(0,102,153)}:host.qd-input-ambiguous .qd-input-input:hover,:host.qd-input-ambiguous .qd-input-input:active{padding:.0625rem 0 .0625rem .4375rem;border:.125rem solid rgb(0,102,153)}:host.qd-input-ambiguous.qd-input-focus .qd-input-input{border-color:#069}:host.qd-input-ambiguous .qd-input-suffix ::ng-deep .qd-input-ambiguous-icon{padding-right:.5rem;color:#069}:host.qd-input-error .qd-input-input,:host.qd-input-error-from-outside .qd-input-input{padding:0 .0625rem 0 .5rem;border:.0625rem solid rgb(199,0,35)}:host.qd-input-error .qd-input-input:hover,:host.qd-input-error .qd-input-input:active,:host.qd-input-error-from-outside .qd-input-input:hover,:host.qd-input-error-from-outside .qd-input-input:active{padding:.0625rem 0 .0625rem .4375rem;border:.125rem solid rgb(199,0,35)}:host.qd-input-error.qd-input-focus,:host.qd-input-error-from-outside.qd-input-focus{border-color:#c70023}.options-hint{color:#757575;font-size:.75rem;font-weight:500;line-height:1.125rem;padding-right:.75rem;padding-left:.75rem;line-height:2.25rem}.options-hint.error{color:#c70023}\n"], dependencies: [{ kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: QdAutofocusDirective, selector: "[qdAutofocus]", inputs: ["qdAutofocus"] }, { 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: "component", type: QdFormHintComponent, selector: "qd-form-hint", inputs: ["hint", "control", "hasError", "hintAction", "data-test-id"] }, { kind: "component", type: QdFormLabelComponent, selector: "qd-form-label", inputs: ["label", "isDisabled", "readonly", "viewonly", "control", "tooltip", "data-test-id"] }, { kind: "component", type: QdFormReadonlyComponent, selector: "qd-form-readonly", inputs: ["values", "readonlyAction", "data-test-id"] }, { kind: "component", type: QdFormViewonlyComponent, selector: "qd-form-viewonly", inputs: ["values", "viewonlyAction", "status", "data-test-id"] }, { kind: "component", type: QdInputUnitsComponent, selector: "qd-input-units", inputs: ["config", "unit"], outputs: ["unitChange", "opened", "closed"] }, { kind: "component", type: QdFormOptionsListComponent, selector: "qd-form-options-list", inputs: ["id", "options", "radioName", "data-test-id"], outputs: ["optionSelected"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] });
|
|
12734
12775
|
}
|
|
12735
12776
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdInputComponent, decorators: [{
|
|
12736
12777
|
type: Component,
|
|
@@ -13256,7 +13297,7 @@ class QdDatepickerComponent {
|
|
|
13256
13297
|
useValue: true
|
|
13257
13298
|
},
|
|
13258
13299
|
QdFormsActionEmitterService
|
|
13259
|
-
], viewQueries: [{ propertyName: "popover", first: true, predicate: ["qdPopoverOnClick"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<qd-form-label\n [label]=\"label\"\n [readonly]=\"readonly\"\n [viewonly]=\"viewonly\"\n [control]=\"control\"\n [tooltip]=\"config?.tooltip\"\n [data-test-id]=\"testId\"\n></qd-form-label>\n\n@if (!readonly && !viewonly) {\n<qd-input\n [value]=\"config?.timePicker && displayedDateTime ? displayedDateTime : displayedDate\"\n (valueChange)=\"config?.timePicker ? handleUpdatedDateTime($event) : handleUpdatedDate($event)\"\n [config]=\"{\n disabled,\n readonly,\n viewonly,\n placeholder: config?.placeholder,\n hasAutofocus\n }\"\n [isError]=\"hasError\"\n>\n <button\n type=\"button\"\n class=\"datepicker-toggle\"\n qdIconButton\n [qdPopoverOnClick]=\"disabled ? null : calendar\"\n [qdPopoverMaxWidth]=\"332\"\n qdPopoverCloseStrategy=\"onOutsideClick\"\n #qdPopoverOnClick=\"qdPopoverOnClick\"\n >\n <qd-icon [icon]=\"'calendar'\"></qd-icon>\n </button>\n</qd-input>\n}\n\n<ng-template #calendar>\n <div\n role=\"dialog\"\n aria-modal=\"true\"\n [attr.aria-label]=\"'i18n.qd.datepicker.a11y.dialogLabel' | translate\"\n cdkTrapFocus\n (keydown.escape)=\"onCalendarCloseRequested()\"\n >\n <qd-calendar\n [selectedDate]=\"config?.timePicker && displayedDateTime ? displayedDateTime : displayedDate\"\n [language]=\"language\"\n [disabledDates]=\"config?.disabledDates\"\n (selectedChange)=\"handleUpdatedDate($event)\"\n (closeRequested)=\"onCalendarCloseRequested()\"\n ></qd-calendar>\n @if (timePicker) {\n <qd-dropdown\n class=\"timepicker-dropdown\"\n [value]=\"displayedTime\"\n (valueChange)=\"handleUpdatedTime($event)\"\n [config]=\"timePicker\"\n [qdPopoverMaxHeight]=\"300\"\n ></qd-dropdown>\n }\n </div>\n</ng-template>\n\n@if (!readonly && !viewonly && (hint || hasError)) {\n<qd-form-hint\n [hint]=\"hint\"\n [control]=\"control\"\n [hasError]=\"hasError\"\n [hintAction]=\"hintAction\"\n [data-test-id]=\"testId\"\n></qd-form-hint>\n} @if (readonly) {\n<qd-form-readonly\n [values]=\"[displayedDate]\"\n [readonlyAction]=\"readonlyAction\"\n [data-test-id]=\"testId\"\n></qd-form-readonly>\n} @if (viewonly) {\n<qd-form-viewonly\n [values]=\"[displayedDate]\"\n [viewonlyAction]=\"viewonlyAction\"\n [status]=\"config?.viewonlyStatus\"\n [data-test-id]=\"testId\"\n></qd-form-viewonly>\n}\n", styles: ["qd-datepicker{position:relative;display:block;width:100%;margin-bottom:.75rem}qd-datepicker .calendar{padding:1rem}qd-datepicker button.datepicker-toggle{width:1.75rem;height:1.75rem;justify-content:center;padding:.25rem;margin-right:.125rem}qd-datepicker button.datepicker-toggle .qd-icon{display:flex;align-items:center;justify-content:center;font-size:1.125rem;line-height:1}qd-datepicker button.datepicker-toggle:focus-visible{background:#fff0;box-shadow:inset 0 0 0 .125rem #069;outline:none}qd-datepicker:not(.qd-datepicker-calendar-only) qd-input{height:2.25rem;margin-bottom:.375rem!important}qd-datepicker:not(.qd-datepicker-calendar-only) qd-input .qd-form-label,qd-datepicker:not(.qd-datepicker-calendar-only) qd-input .qd-form-hint{display:none}qd-datepicker .qd-form-disabled .datepicker-toggle{color:#979797;cursor:default}qd-datepicker.qd-datepicker-calendar-only{margin-bottom:0}qd-datepicker.qd-datepicker-calendar-only qd-input{margin:0}qd-datepicker.qd-datepicker-calendar-only .qd-form-label,qd-datepicker.qd-datepicker-calendar-only .qd-form-hint,qd-datepicker.qd-datepicker-calendar-only .qd-input-input input{display:none}qd-datepicker.qd-datepicker-calendar-only .qd-input-input{height:initial!important;padding:0!important;border:none!important;margin:0!important}qd-datepicker.qd-datepicker-calendar-only .qd-input-suffix{margin-left:0!important}.timepicker-dropdown{margin:.75rem}\n"], dependencies: [{ kind: "directive", type: i1$
|
|
13300
|
+
], viewQueries: [{ propertyName: "popover", first: true, predicate: ["qdPopoverOnClick"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<qd-form-label\n [label]=\"label\"\n [readonly]=\"readonly\"\n [viewonly]=\"viewonly\"\n [control]=\"control\"\n [tooltip]=\"config?.tooltip\"\n [data-test-id]=\"testId\"\n></qd-form-label>\n\n@if (!readonly && !viewonly) {\n<qd-input\n [value]=\"config?.timePicker && displayedDateTime ? displayedDateTime : displayedDate\"\n (valueChange)=\"config?.timePicker ? handleUpdatedDateTime($event) : handleUpdatedDate($event)\"\n [config]=\"{\n disabled,\n readonly,\n viewonly,\n placeholder: config?.placeholder,\n hasAutofocus\n }\"\n [isError]=\"hasError\"\n>\n <button\n type=\"button\"\n class=\"datepicker-toggle\"\n qdIconButton\n [qdPopoverOnClick]=\"disabled ? null : calendar\"\n [qdPopoverMaxWidth]=\"332\"\n qdPopoverCloseStrategy=\"onOutsideClick\"\n #qdPopoverOnClick=\"qdPopoverOnClick\"\n >\n <qd-icon [icon]=\"'calendar'\"></qd-icon>\n </button>\n</qd-input>\n}\n\n<ng-template #calendar>\n <div\n role=\"dialog\"\n aria-modal=\"true\"\n [attr.aria-label]=\"'i18n.qd.datepicker.a11y.dialogLabel' | translate\"\n cdkTrapFocus\n (keydown.escape)=\"onCalendarCloseRequested()\"\n >\n <qd-calendar\n [selectedDate]=\"config?.timePicker && displayedDateTime ? displayedDateTime : displayedDate\"\n [language]=\"language\"\n [disabledDates]=\"config?.disabledDates\"\n (selectedChange)=\"handleUpdatedDate($event)\"\n (closeRequested)=\"onCalendarCloseRequested()\"\n ></qd-calendar>\n @if (timePicker) {\n <qd-dropdown\n class=\"timepicker-dropdown\"\n [value]=\"displayedTime\"\n (valueChange)=\"handleUpdatedTime($event)\"\n [config]=\"timePicker\"\n [qdPopoverMaxHeight]=\"300\"\n ></qd-dropdown>\n }\n </div>\n</ng-template>\n\n@if (!readonly && !viewonly && (hint || hasError)) {\n<qd-form-hint\n [hint]=\"hint\"\n [control]=\"control\"\n [hasError]=\"hasError\"\n [hintAction]=\"hintAction\"\n [data-test-id]=\"testId\"\n></qd-form-hint>\n} @if (readonly) {\n<qd-form-readonly\n [values]=\"[displayedDate]\"\n [readonlyAction]=\"readonlyAction\"\n [data-test-id]=\"testId\"\n></qd-form-readonly>\n} @if (viewonly) {\n<qd-form-viewonly\n [values]=\"[displayedDate]\"\n [viewonlyAction]=\"viewonlyAction\"\n [status]=\"config?.viewonlyStatus\"\n [data-test-id]=\"testId\"\n></qd-form-viewonly>\n}\n", styles: ["qd-datepicker{position:relative;display:block;width:100%;margin-bottom:.75rem}qd-datepicker .calendar{padding:1rem}qd-datepicker button.datepicker-toggle{width:1.75rem;height:1.75rem;justify-content:center;padding:.25rem;margin-right:.125rem}qd-datepicker button.datepicker-toggle .qd-icon{display:flex;align-items:center;justify-content:center;font-size:1.125rem;line-height:1}qd-datepicker button.datepicker-toggle:focus-visible{background:#fff0;box-shadow:inset 0 0 0 .125rem #069;outline:none}qd-datepicker:not(.qd-datepicker-calendar-only) qd-input{height:2.25rem;margin-bottom:.375rem!important}qd-datepicker:not(.qd-datepicker-calendar-only) qd-input .qd-form-label,qd-datepicker:not(.qd-datepicker-calendar-only) qd-input .qd-form-hint{display:none}qd-datepicker .qd-form-disabled .datepicker-toggle{color:#979797;cursor:default}qd-datepicker.qd-datepicker-calendar-only{margin-bottom:0}qd-datepicker.qd-datepicker-calendar-only qd-input{margin:0}qd-datepicker.qd-datepicker-calendar-only .qd-form-label,qd-datepicker.qd-datepicker-calendar-only .qd-form-hint,qd-datepicker.qd-datepicker-calendar-only .qd-input-input input{display:none}qd-datepicker.qd-datepicker-calendar-only .qd-input-input{height:initial!important;padding:0!important;border:none!important;margin:0!important}qd-datepicker.qd-datepicker-calendar-only .qd-input-suffix{margin-left:0!important}.timepicker-dropdown{margin:.75rem}\n"], dependencies: [{ kind: "directive", type: i1$4.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "component", type: QdIconButtonComponent, selector: "button[qdIconButton], a[qdIconButton]", inputs: ["color", "data-test-id"] }, { 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: "component", type: QdCalendarComponent, selector: "qd-calendar", inputs: ["selectedDate", "language", "disabledDates"], outputs: ["selectedChange", "closeRequested"] }, { kind: "component", type: QdDropdownComponent, selector: "qd-dropdown", inputs: ["value", "id", "formControlName", "config", "data-test-id", "qdPopoverMaxHeight", "dense"], outputs: ["valueChange", "enterClick", "dropdownOpened", "clickHint", "clickReadonly", "clickViewonly", "optionsResolved"] }, { kind: "component", type: QdFormHintComponent, selector: "qd-form-hint", inputs: ["hint", "control", "hasError", "hintAction", "data-test-id"] }, { kind: "component", type: QdFormLabelComponent, selector: "qd-form-label", inputs: ["label", "isDisabled", "readonly", "viewonly", "control", "tooltip", "data-test-id"] }, { kind: "component", type: QdFormReadonlyComponent, selector: "qd-form-readonly", inputs: ["values", "readonlyAction", "data-test-id"] }, { kind: "component", type: QdFormViewonlyComponent, selector: "qd-form-viewonly", inputs: ["values", "viewonlyAction", "status", "data-test-id"] }, { kind: "component", type: QdInputComponent, selector: "qd-input", inputs: ["formControlName", "value", "config", "isError", "data-test-id"], outputs: ["valueChange", "enterClick", "clickClear", "clickHint", "clickReadonly", "clickViewonly", "optionsResolved"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], encapsulation: i0.ViewEncapsulation.None });
|
|
13260
13301
|
}
|
|
13261
13302
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdDatepickerComponent, decorators: [{
|
|
13262
13303
|
type: Component,
|
|
@@ -13673,7 +13714,7 @@ class QdFileUploadComponent {
|
|
|
13673
13714
|
},
|
|
13674
13715
|
QdFormsActionEmitterService,
|
|
13675
13716
|
QdFileUploadService
|
|
13676
|
-
], ngImport: i0, template: "<qd-form-label\n [label]=\"config?.label?.i18n\"\n [readonly]=\"config.readonly\"\n [viewonly]=\"config.viewonly\"\n [control]=\"control\"\n [tooltip]=\"config?.tooltip\"\n [data-test-id]=\"testId\"\n></qd-form-label>\n\n@if (!isReadonly && !isViewonly) {\n<input #fileInput type=\"file\" hidden [disabled]=\"isDisabled\" (change)=\"onFileSelect($event)\" />\n<div class=\"upload-box\" (click)=\"fileInput.click()\">\n <div class=\"upload-content\">\n @if (!file) {\n <span class=\"placeholder\">\n {{ (config?.placeholder?.i18n | translate) || (\"i18n.qd.form.placeholder.selectFile\" | translate) }}\n </span>\n } @if (file) {\n <div class=\"file-row\">\n <span class=\"file-name\">{{ file.name }} </span>\n @if (isUploading) {\n <div class=\"progress-wrapper\">\n <div class=\"progress-bar\" [style.width.%]=\"uploadProgress$ | async\"></div>\n <span class=\"progress-label\">{{ uploadProgress$ | async }}%</span>\n </div>\n } @if (hasError) {\n <span class=\"upload-error\">\n {{ \"i18n.qd.form.error.uploadFailed\" | translate }}\n </span>\n } @if (!isUploading) {\n <span class=\"file-size\">{{ file.size | qdFileSize }}</span>\n }\n </div>\n }\n </div>\n</div>\n<div class=\"button-actions\">\n @if (file && isUploading) {\n <button type=\"button\" (click)=\"cancelUpload()\">\n <qd-icon icon=\"timesCircleSolid\"></qd-icon>\n </button>\n } @if ((file && isUploaded) || (file && hasValidationError)) {\n <button type=\"button\" (click)=\"removeFile()\">\n <qd-icon icon=\"trash\"></qd-icon>\n </button>\n }\n</div>\n@if (config?.hint || hasValidationError) {\n<qd-form-hint\n [hint]=\"config?.hint?.i18n\"\n [hasError]=\"hasValidationError\"\n [control]=\"control\"\n [hintAction]=\"config.hintAction\"\n [data-test-id]=\"testId\"\n></qd-form-hint>\n} } @if (isReadonly) {\n<qd-form-readonly\n [values]=\"[file?.name]\"\n [readonlyAction]=\"config.readonlyAction\"\n [data-test-id]=\"testId\"\n></qd-form-readonly>\n} @if (isViewonly) {\n<qd-form-viewonly\n [values]=\"[file?.name]\"\n [viewonlyAction]=\"config.viewonlyAction\"\n [status]=\"config?.viewonlyStatus\"\n [data-test-id]=\"testId\"\n></qd-form-viewonly>\n}\n", styles: [":host{position:relative;display:block;width:100%;margin-bottom:.75rem}:host .upload-box{position:relative;display:block;padding:.5rem;margin-bottom:.375rem;background-color:#fff;box-shadow:inset 0 0 0 .0625rem #069;cursor:pointer;-webkit-user-select:none;user-select:none}:host .upload-box .file-name{color:#069!important}:host .upload-box .placeholder{color:#069!important}:host .upload-box .qd-icon{color:#069!important}:host .upload-box .upload-content{display:flex;flex-direction:column;padding-right:2rem;padding-left:.5rem}:host .upload-box .upload-content .placeholder{color:#171717;font-size:.875rem;font-weight:500;line-height:1.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host .upload-box .upload-content .file-row{display:flex;flex-wrap:nowrap;align-items:center;gap:.5rem}:host .upload-box .upload-content .file-row .file-name{color:#171717;font-size:.875rem;font-weight:500;line-height:1.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host .upload-box .upload-content .file-row .progress-wrapper{position:relative;display:flex;overflow:hidden;min-width:6.25rem;height:1.25rem;flex:1 1 auto;border-radius:.625rem}:host .upload-box .upload-content .file-row .progress-wrapper .progress-bar{height:100%;border-radius:inherit;background-color:#fee3b5}:host .upload-box .upload-content .file-row .progress-wrapper .progress-label{color:#e97e00;font-size:.875rem;font-weight:500;line-height:1.25rem;position:absolute;z-index:1000;left:.75rem}:host .upload-box .upload-content .file-row .file-size{margin-left:auto;color:#171717;font-size:.875rem;font-weight:500;line-height:1.25rem}:host .button-actions{position:absolute;top:1.625rem;right:.875rem;display:flex}:host .button-actions button{padding:0;border:none;background:none;cursor:pointer}:host .button-actions qd-icon{color:#069}:host.qd-form-disabled .upload-box{cursor:not-allowed;opacity:.6}:host.qd-form-readonly .upload-box,:host.qd-form-viewonly .upload-box{cursor:default}:host(.qd-form-error) .upload-box{box-shadow:inset 0 0 0 .0625rem #c70023!important}:host(.qd-form-error) .upload-box .file-name,:host(.qd-form-error) .upload-box .placeholder,:host(.qd-form-error) .upload-box .file-size,:host(.qd-form-error) .upload-box+.button-actions .qd-icon{color:#c70023!important}:host(.qd-form-error) .upload-box:hover{box-shadow:inset 0 0 0 .0625rem #069!important}:host(.qd-form-error) .upload-box:hover .file-name,:host(.qd-form-error) .upload-box:hover .placeholder,:host(.qd-form-error) .upload-box:hover .file-size,:host(.qd-form-error) .upload-box:hover+.button-actions .qd-icon{color:#069!important}:host(.qd-form-uploaded) .upload-box{box-shadow:inset 0 0 0 .0625rem #b4b4b4!important}:host(.qd-form-uploaded) .upload-box .file-name,:host(.qd-form-uploaded) .upload-box .placeholder,:host(.qd-form-uploaded) .upload-box .file-size{color:#171717!important;font-weight:400!important}\n"], dependencies: [{ kind: "component", type: QdIconComponent, selector: "qd-icon", inputs: ["icon", "status"] }, { kind: "component", type: QdFormHintComponent, selector: "qd-form-hint", inputs: ["hint", "control", "hasError", "hintAction", "data-test-id"] }, { kind: "component", type: QdFormLabelComponent, selector: "qd-form-label", inputs: ["label", "isDisabled", "readonly", "viewonly", "control", "tooltip", "data-test-id"] }, { kind: "component", type: QdFormReadonlyComponent, selector: "qd-form-readonly", inputs: ["values", "readonlyAction", "data-test-id"] }, { kind: "component", type: QdFormViewonlyComponent, selector: "qd-form-viewonly", inputs: ["values", "viewonlyAction", "status", "data-test-id"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }, { kind: "pipe", type: QdFileSizePipe$1, name: "qdFileSize" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
13717
|
+
], ngImport: i0, template: "<qd-form-label\n [label]=\"config?.label?.i18n\"\n [readonly]=\"config.readonly\"\n [viewonly]=\"config.viewonly\"\n [control]=\"control\"\n [tooltip]=\"config?.tooltip\"\n [data-test-id]=\"testId\"\n></qd-form-label>\n\n@if (!isReadonly && !isViewonly) {\n<input #fileInput type=\"file\" hidden [disabled]=\"isDisabled\" (change)=\"onFileSelect($event)\" />\n<div class=\"upload-box\" (click)=\"fileInput.click()\">\n <div class=\"upload-content\">\n @if (!file) {\n <span class=\"placeholder\">\n {{ (config?.placeholder?.i18n | translate) || (\"i18n.qd.form.placeholder.selectFile\" | translate) }}\n </span>\n } @if (file) {\n <div class=\"file-row\">\n <span class=\"file-name\">{{ file.name }} </span>\n @if (isUploading) {\n <div class=\"progress-wrapper\">\n <div class=\"progress-bar\" [style.width.%]=\"uploadProgress$ | async\"></div>\n <span class=\"progress-label\">{{ uploadProgress$ | async }}%</span>\n </div>\n } @if (hasError) {\n <span class=\"upload-error\">\n {{ \"i18n.qd.form.error.uploadFailed\" | translate }}\n </span>\n } @if (!isUploading) {\n <span class=\"file-size\">{{ file.size | qdFileSize }}</span>\n }\n </div>\n }\n </div>\n</div>\n<div class=\"button-actions\">\n @if (file && isUploading) {\n <button type=\"button\" (click)=\"cancelUpload()\">\n <qd-icon icon=\"timesCircleSolid\"></qd-icon>\n </button>\n } @if ((file && isUploaded) || (file && hasValidationError)) {\n <button type=\"button\" (click)=\"removeFile()\">\n <qd-icon icon=\"trash\"></qd-icon>\n </button>\n }\n</div>\n@if (config?.hint || hasValidationError) {\n<qd-form-hint\n [hint]=\"config?.hint?.i18n\"\n [hasError]=\"hasValidationError\"\n [control]=\"control\"\n [hintAction]=\"config.hintAction\"\n [data-test-id]=\"testId\"\n></qd-form-hint>\n} } @if (isReadonly) {\n<qd-form-readonly\n [values]=\"[file?.name]\"\n [readonlyAction]=\"config.readonlyAction\"\n [data-test-id]=\"testId\"\n></qd-form-readonly>\n} @if (isViewonly) {\n<qd-form-viewonly\n [values]=\"[file?.name]\"\n [viewonlyAction]=\"config.viewonlyAction\"\n [status]=\"config?.viewonlyStatus\"\n [data-test-id]=\"testId\"\n></qd-form-viewonly>\n}\n", styles: [":host{position:relative;display:block;width:100%;margin-bottom:.75rem}:host .upload-box{position:relative;display:block;padding:.5rem;margin-bottom:.375rem;background-color:#fff;box-shadow:inset 0 0 0 .0625rem #069;cursor:pointer;-webkit-user-select:none;user-select:none}:host .upload-box .file-name{color:#069!important}:host .upload-box .placeholder{color:#069!important}:host .upload-box .qd-icon{color:#069!important}:host .upload-box .upload-content{display:flex;flex-direction:column;padding-right:2rem;padding-left:.5rem}:host .upload-box .upload-content .placeholder{color:#171717;font-size:.875rem;font-weight:500;line-height:1.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host .upload-box .upload-content .file-row{display:flex;flex-wrap:nowrap;align-items:center;gap:.5rem}:host .upload-box .upload-content .file-row .file-name{color:#171717;font-size:.875rem;font-weight:500;line-height:1.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host .upload-box .upload-content .file-row .progress-wrapper{position:relative;display:flex;overflow:hidden;min-width:6.25rem;height:1.25rem;flex:1 1 auto;border-radius:.625rem}:host .upload-box .upload-content .file-row .progress-wrapper .progress-bar{height:100%;border-radius:inherit;background-color:#fee3b5}:host .upload-box .upload-content .file-row .progress-wrapper .progress-label{color:#e97e00;font-size:.875rem;font-weight:500;line-height:1.25rem;position:absolute;z-index:1000;left:.75rem}:host .upload-box .upload-content .file-row .file-size{margin-left:auto;color:#171717;font-size:.875rem;font-weight:500;line-height:1.25rem}:host .button-actions{position:absolute;top:1.625rem;right:.875rem;display:flex}:host .button-actions button{padding:0;border:none;background:none;cursor:pointer}:host .button-actions qd-icon{color:#069}:host.qd-form-disabled .upload-box{cursor:not-allowed;opacity:.6}:host.qd-form-readonly .upload-box,:host.qd-form-viewonly .upload-box{cursor:default}:host(.qd-form-error) .upload-box{box-shadow:inset 0 0 0 .0625rem #c70023!important}:host(.qd-form-error) .upload-box .file-name,:host(.qd-form-error) .upload-box .placeholder,:host(.qd-form-error) .upload-box .file-size,:host(.qd-form-error) .upload-box+.button-actions .qd-icon{color:#c70023!important}:host(.qd-form-error) .upload-box:hover{box-shadow:inset 0 0 0 .0625rem #069!important}:host(.qd-form-error) .upload-box:hover .file-name,:host(.qd-form-error) .upload-box:hover .placeholder,:host(.qd-form-error) .upload-box:hover .file-size,:host(.qd-form-error) .upload-box:hover+.button-actions .qd-icon{color:#069!important}:host(.qd-form-uploaded) .upload-box{box-shadow:inset 0 0 0 .0625rem #b4b4b4!important}:host(.qd-form-uploaded) .upload-box .file-name,:host(.qd-form-uploaded) .upload-box .placeholder,:host(.qd-form-uploaded) .upload-box .file-size{color:#171717!important;font-weight:400!important}\n"], dependencies: [{ kind: "component", type: QdIconComponent, selector: "qd-icon", inputs: ["icon", "status"] }, { kind: "component", type: QdFormHintComponent, selector: "qd-form-hint", inputs: ["hint", "control", "hasError", "hintAction", "data-test-id"] }, { kind: "component", type: QdFormLabelComponent, selector: "qd-form-label", inputs: ["label", "isDisabled", "readonly", "viewonly", "control", "tooltip", "data-test-id"] }, { kind: "component", type: QdFormReadonlyComponent, selector: "qd-form-readonly", inputs: ["values", "readonlyAction", "data-test-id"] }, { kind: "component", type: QdFormViewonlyComponent, selector: "qd-form-viewonly", inputs: ["values", "viewonlyAction", "status", "data-test-id"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }, { kind: "pipe", type: QdFileSizePipe$1, name: "qdFileSize" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
13677
13718
|
}
|
|
13678
13719
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdFileUploadComponent, decorators: [{
|
|
13679
13720
|
type: Component,
|
|
@@ -14577,7 +14618,7 @@ class QdMultiInputComponent {
|
|
|
14577
14618
|
QdFormKeyboardService,
|
|
14578
14619
|
QdFormOptionsService,
|
|
14579
14620
|
QdFormOptionsResolverRegistry
|
|
14580
|
-
], viewQueries: [{ propertyName: "inputField", first: true, predicate: ["input"], descendants: true }, { propertyName: "popoverOnClickDirective", first: true, predicate: QdPopoverOnClickDirective, descendants: true }, { propertyName: "errorTooltips", predicate: ["errorTooltips"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<qd-form-label\n [label]=\"label\"\n [readonly]=\"readonly\"\n [viewonly]=\"viewonly\"\n [control]=\"formArray\"\n [tooltip]=\"config?.tooltip\"\n [data-test-id]=\"testId\"\n></qd-form-label>\n\n<!-- TODO: Replace the fixed qdPopoverMaxHeight with a dynamic height. The CDK overlay can size the option list to the free space in the viewport. -->\n@if (!readonly && !viewonly) {\n<div\n class=\"qd-multi-input__input-chip-box\"\n (click)=\"focus()\"\n (opened)=\"open = true\"\n (closed)=\"open = false\"\n [qdPopoverOnClick]=\"menu\"\n [qdPopoverCloseStrategy]=\"'onOutsideClick'\"\n [qdPopoverDisabled]=\"options.length === 0\"\n [qdPopoverMinWidth]=\"160\"\n [qdPopoverAutoSize]=\"{ width: true }\"\n [qdPopoverMaxHeight]=\"288\"\n [qdPopoverFlipIntoViewport]=\"true\"\n [qdPopoverOffsetY]=\"2\"\n qdPopoverPlacement=\"bottom-start\"\n>\n <div [ngClass]=\"hasItems() ? 'qd-multi-input__chip-margin' : ''\">\n @for (element of getIterableElements(); track element; let index = $index) {\n <qd-multi-input-chip\n [close]=\"!disabled && !readonly && !viewonly\"\n [itemControl]=\"formArray ? element : undefined\"\n [value]=\"formArray ? undefined : getTranslation(element)\"\n (closeClickEmitter)=\"close(index)\"\n (click)=\"handleChipClick($event)\"\n >\n </qd-multi-input-chip>\n }\n </div>\n <div class=\"qd-multi-input__wrapper\">\n @if (!readonly && !viewonly) {\n <input\n #input\n type=\"text\"\n class=\"qd-multi-input__box\"\n [disabled]=\"disabled\"\n [(ngModel)]=\"filterOptions\"\n (ngModelChange)=\"changeValue()\"\n (keydown)=\"onKeyDown($event)\"\n (focus)=\"hasFocus = true\"\n (blur)=\"handleBlur()\"\n [ngClass]=\"open ? 'qd-multi-input__box--open' : ''\"\n [attr.data-test-id]=\"testId + '-input'\"\n autocomplete=\"off\"\n />\n } @if (readonly && !hasItems()) {\n <div class=\"qd-multi-input__box qd-multi-input__box--readonly\"> </div>\n } @if (viewonly && !hasItems()) {\n <div class=\"qd-multi-input__box qd-multi-input__box--viewonly\"> </div>\n }\n <ng-template #menu>\n <div class=\"qd-multi-input__select\" [attr.data-test-id]=\"testId + '-select'\">\n <qd-form-options-list\n [options]=\"optionsListForView\"\n [id]=\"id\"\n [radioName]=\"testId + '-options'\"\n [data-test-id]=\"testId\"\n (optionSelected)=\"handleClick($event)\"\n >\n @if (optionsListForView?.length === 0) {\n <div qdFormOptionsListStatus class=\"qd-multi-input__no-results\" [attr.data-test-id]=\"testId + '-no-results'\">\n {{ \"i18n.qd.multiInput.noResults\" | translate }}\n </div>\n }\n </qd-form-options-list>\n </div>\n </ng-template>\n </div>\n</div>\n} @if (config && !readonly && !viewonly && (hasHint || hasError)) {\n<qd-form-hint\n [hint]=\"hasHint ? config.hint.i18n : ''\"\n [control]=\"formArray\"\n [hasError]=\"hasError\"\n [hintAction]=\"hintAction\"\n [data-test-id]=\"testId\"\n></qd-form-hint>\n} @if (readonly) {\n<qd-form-readonly [values]=\"getValues()\" [readonlyAction]=\"readonlyAction\" [data-test-id]=\"testId\"></qd-form-readonly>\n} @if (viewonly) {\n<qd-form-viewonly\n [values]=\"getValues()\"\n [viewonlyAction]=\"viewonlyAction\"\n [status]=\"config?.viewonlyStatus\"\n [data-test-id]=\"testId\"\n></qd-form-viewonly>\n}\n", styles: [":host{display:block;margin-bottom:.75rem}.qd-multi-input__no-results{padding:.75rem;border-top:none;background:#fff;color:#454545;font-size:.875rem;font-style:italic;font-weight:400}.qd-multi-input__input-chip-box{margin-bottom:.5rem;background-color:#fff;outline:solid .0625rem rgb(180,180,180)}:host.qd-multi-input-readonly .qd-multi-input__input-chip-box{background:none!important;color:#979797;outline:none!important}:host.qd-multi-input-viewonly .qd-multi-input__input-chip-box{background:none!important;color:#979797;outline:none!important}:host.qd-multi-input-disabled .qd-multi-input__input-chip-box{background:#f5f5f5;color:#979797;outline:.0625rem solid rgb(180,180,180)}:host.qd-multi-input-focus .qd-multi-input__input-chip-box{outline:.125rem solid rgb(0,102,153)}:host.qd-multi-input-focus .qd-multi-input__input-chip-box:hover,:host.qd-multi-input-focus .qd-multi-input__input-chip-box:active{outline:.125rem solid rgb(0,102,153)}.qd-multi-input__input-chip-box:active,.qd-multi-input__input-chip-box:hover{outline:.125rem solid rgb(23,23,23)}.qd-multi-input__chip-margin{padding:0 .3125rem .3125rem 0}:host.qd-multi-input-readonly .qd-multi-input__chip-margin{padding:0 0 .3125rem}:host.qd-multi-input-viewonly .qd-multi-input__chip-margin{padding:0 0 .3125rem}.qd-multi-input__wrapper{position:relative}.qd-multi-input__wrapper .qd-multi-input__box{display:flex;overflow:hidden;width:100%;height:2.25rem;justify-content:space-between;padding:0 .75rem;border:.0625rem solid rgb(255,255,255);background:#fff;font-size:.875rem;font-weight:400;line-height:2.25rem;text-overflow:ellipsis;white-space:nowrap}.qd-multi-input__wrapper .qd-multi-input__box:focus,.qd-multi-input__wrapper .qd-multi-input__box:active,.qd-multi-input__wrapper .qd-multi-input__box.qd-multi-input__box--open{padding:0 .8125rem;border:none;color:#171717;line-height:2.125rem;outline:none}.qd-multi-input__wrapper .qd-multi-input__box:hover:after{border-top-color:#b4b4b4}.qd-multi-input__wrapper .qd-multi-input__box.qd-multi-input__box--open{border-color:#069}:host.qd-multi-input-disabled .qd-multi-input__wrapper .qd-multi-input__box{border:none;background:#f5f5f5;color:#979797}:host.qd-multi-input-readonly .qd-multi-input__wrapper .qd-multi-input__box{height:inherit;padding:0;border:none;line-height:2.25rem}:host.qd-multi-input-readonly .qd-multi-input__wrapper .qd-multi-input__box:focus,:host.qd-multi-input-readonly .qd-multi-input__wrapper .qd-multi-input__box:hover,:host.qd-multi-input-readonly .qd-multi-input__wrapper .qd-multi-input__box:active{color:inherit}:host.qd-multi-input-readonly .qd-multi-input__wrapper .qd-multi-input__box:after{display:none}:host.qd-multi-input-viewonly .qd-multi-input__wrapper .qd-multi-input__box{height:inherit;padding:0;border:none;line-height:2.25rem}:host.qd-multi-input-viewonly .qd-multi-input__wrapper .qd-multi-input__box:focus,:host.qd-multi-input-viewonly .qd-multi-input__wrapper .qd-multi-input__box:hover,:host.qd-multi-input-viewonly .qd-multi-input__wrapper .qd-multi-input__box:active{color:inherit}:host.qd-multi-input-viewonly .qd-multi-input__wrapper .qd-multi-input__box:after{display:none}:host.qd-multi-input--readonly-action .qd-multi-input__box.qd-multi-input__box--readonly{color:#069;cursor:pointer}:host.qd-multi-input--readonly-action .qd-multi-input__box.qd-multi-input__box--readonly:hover,:host.qd-multi-input--readonly-action .qd-multi-input__box.qd-multi-input__box--readonly:active,:host.qd-multi-input--readonly-action .qd-multi-input__box.qd-multi-input__box--readonly:focus{color:#069;text-decoration:underline}:host.qd-multi-input--viewonly-action .qd-multi-input__box.qd-multi-input__box--viewonly{color:#069;cursor:pointer}:host.qd-multi-input--viewonly-action .qd-multi-input__box.qd-multi-input__box--viewonly:hover,:host.qd-multi-input--viewonly-action .qd-multi-input__box.qd-multi-input__box--viewonly:active,:host.qd-multi-input--viewonly-action .qd-multi-input__box.qd-multi-input__box--viewonly:focus{color:#069;text-decoration:underline}:host.qd-multi-input-error .qd-multi-input__input-chip-box{outline:.0625rem solid rgb(199,0,35)}:host.qd-multi-input-error .qd-multi-input__input-chip-box:focus,:host.qd-multi-input-error .qd-multi-input__input-chip-box:hover,:host.qd-multi-input-error .qd-multi-input__input-chip-box:active,:host.qd-multi-input-error .qd-multi-input__input-chip-box.qd-multi-input__box--open{outline:.125rem solid rgb(199,0,35)}:host.qd-multi-input-error .qd-multi-input__input-chip-box .qd-error-icon{color:#c70023}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { 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: "component", type: QdFormHintComponent, selector: "qd-form-hint", inputs: ["hint", "control", "hasError", "hintAction", "data-test-id"] }, { kind: "component", type: QdFormLabelComponent, selector: "qd-form-label", inputs: ["label", "isDisabled", "readonly", "viewonly", "control", "tooltip", "data-test-id"] }, { kind: "component", type: QdFormReadonlyComponent, selector: "qd-form-readonly", inputs: ["values", "readonlyAction", "data-test-id"] }, { kind: "component", type: QdFormViewonlyComponent, selector: "qd-form-viewonly", inputs: ["values", "viewonlyAction", "status", "data-test-id"] }, { kind: "component", type: QdMultiInputChipComponent, selector: "qd-multi-input-chip", inputs: ["itemControl", "value", "close", "data-test-id"], outputs: ["closeClickEmitter"] }, { kind: "component", type: QdFormOptionsListComponent, selector: "qd-form-options-list", inputs: ["id", "options", "radioName", "data-test-id"], outputs: ["optionSelected"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
14621
|
+
], viewQueries: [{ propertyName: "inputField", first: true, predicate: ["input"], descendants: true }, { propertyName: "popoverOnClickDirective", first: true, predicate: QdPopoverOnClickDirective, descendants: true }, { propertyName: "errorTooltips", predicate: ["errorTooltips"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<qd-form-label\n [label]=\"label\"\n [readonly]=\"readonly\"\n [viewonly]=\"viewonly\"\n [control]=\"formArray\"\n [tooltip]=\"config?.tooltip\"\n [data-test-id]=\"testId\"\n></qd-form-label>\n\n<!-- TODO: Replace the fixed qdPopoverMaxHeight with a dynamic height. The CDK overlay can size the option list to the free space in the viewport. -->\n@if (!readonly && !viewonly) {\n<div\n class=\"qd-multi-input__input-chip-box\"\n (click)=\"focus()\"\n (opened)=\"open = true\"\n (closed)=\"open = false\"\n [qdPopoverOnClick]=\"menu\"\n [qdPopoverCloseStrategy]=\"'onOutsideClick'\"\n [qdPopoverDisabled]=\"options.length === 0\"\n [qdPopoverMinWidth]=\"160\"\n [qdPopoverAutoSize]=\"{ width: true }\"\n [qdPopoverMaxHeight]=\"288\"\n [qdPopoverFlipIntoViewport]=\"true\"\n [qdPopoverOffsetY]=\"2\"\n qdPopoverPlacement=\"bottom-start\"\n>\n <div [ngClass]=\"hasItems() ? 'qd-multi-input__chip-margin' : ''\">\n @for (element of getIterableElements(); track element; let index = $index) {\n <qd-multi-input-chip\n [close]=\"!disabled && !readonly && !viewonly\"\n [itemControl]=\"formArray ? element : undefined\"\n [value]=\"formArray ? undefined : getTranslation(element)\"\n (closeClickEmitter)=\"close(index)\"\n (click)=\"handleChipClick($event)\"\n >\n </qd-multi-input-chip>\n }\n </div>\n <div class=\"qd-multi-input__wrapper\">\n @if (!readonly && !viewonly) {\n <input\n #input\n type=\"text\"\n class=\"qd-multi-input__box\"\n [disabled]=\"disabled\"\n [(ngModel)]=\"filterOptions\"\n (ngModelChange)=\"changeValue()\"\n (keydown)=\"onKeyDown($event)\"\n (focus)=\"hasFocus = true\"\n (blur)=\"handleBlur()\"\n [ngClass]=\"open ? 'qd-multi-input__box--open' : ''\"\n [attr.data-test-id]=\"testId + '-input'\"\n autocomplete=\"off\"\n />\n } @if (readonly && !hasItems()) {\n <div class=\"qd-multi-input__box qd-multi-input__box--readonly\"> </div>\n } @if (viewonly && !hasItems()) {\n <div class=\"qd-multi-input__box qd-multi-input__box--viewonly\"> </div>\n }\n <ng-template #menu>\n <div class=\"qd-multi-input__select\" [attr.data-test-id]=\"testId + '-select'\">\n <qd-form-options-list\n [options]=\"optionsListForView\"\n [id]=\"id\"\n [radioName]=\"testId + '-options'\"\n [data-test-id]=\"testId\"\n (optionSelected)=\"handleClick($event)\"\n >\n @if (optionsListForView?.length === 0) {\n <div qdFormOptionsListStatus class=\"qd-multi-input__no-results\" [attr.data-test-id]=\"testId + '-no-results'\">\n {{ \"i18n.qd.multiInput.noResults\" | translate }}\n </div>\n }\n </qd-form-options-list>\n </div>\n </ng-template>\n </div>\n</div>\n} @if (config && !readonly && !viewonly && (hasHint || hasError)) {\n<qd-form-hint\n [hint]=\"hasHint ? config.hint.i18n : ''\"\n [control]=\"formArray\"\n [hasError]=\"hasError\"\n [hintAction]=\"hintAction\"\n [data-test-id]=\"testId\"\n></qd-form-hint>\n} @if (readonly) {\n<qd-form-readonly [values]=\"getValues()\" [readonlyAction]=\"readonlyAction\" [data-test-id]=\"testId\"></qd-form-readonly>\n} @if (viewonly) {\n<qd-form-viewonly\n [values]=\"getValues()\"\n [viewonlyAction]=\"viewonlyAction\"\n [status]=\"config?.viewonlyStatus\"\n [data-test-id]=\"testId\"\n></qd-form-viewonly>\n}\n", styles: [":host{display:block;margin-bottom:.75rem}.qd-multi-input__no-results{padding:.75rem;border-top:none;background:#fff;color:#454545;font-size:.875rem;font-style:italic;font-weight:400}.qd-multi-input__input-chip-box{margin-bottom:.5rem;background-color:#fff;outline:solid .0625rem rgb(180,180,180)}:host.qd-multi-input-readonly .qd-multi-input__input-chip-box{background:none!important;color:#979797;outline:none!important}:host.qd-multi-input-viewonly .qd-multi-input__input-chip-box{background:none!important;color:#979797;outline:none!important}:host.qd-multi-input-disabled .qd-multi-input__input-chip-box{background:#f5f5f5;color:#979797;outline:.0625rem solid rgb(180,180,180)}:host.qd-multi-input-focus .qd-multi-input__input-chip-box{outline:.125rem solid rgb(0,102,153)}:host.qd-multi-input-focus .qd-multi-input__input-chip-box:hover,:host.qd-multi-input-focus .qd-multi-input__input-chip-box:active{outline:.125rem solid rgb(0,102,153)}.qd-multi-input__input-chip-box:active,.qd-multi-input__input-chip-box:hover{outline:.125rem solid rgb(23,23,23)}.qd-multi-input__chip-margin{padding:0 .3125rem .3125rem 0}:host.qd-multi-input-readonly .qd-multi-input__chip-margin{padding:0 0 .3125rem}:host.qd-multi-input-viewonly .qd-multi-input__chip-margin{padding:0 0 .3125rem}.qd-multi-input__wrapper{position:relative}.qd-multi-input__wrapper .qd-multi-input__box{display:flex;overflow:hidden;width:100%;height:2.25rem;justify-content:space-between;padding:0 .75rem;border:.0625rem solid rgb(255,255,255);background:#fff;font-size:.875rem;font-weight:400;line-height:2.25rem;text-overflow:ellipsis;white-space:nowrap}.qd-multi-input__wrapper .qd-multi-input__box:focus,.qd-multi-input__wrapper .qd-multi-input__box:active,.qd-multi-input__wrapper .qd-multi-input__box.qd-multi-input__box--open{padding:0 .8125rem;border:none;color:#171717;line-height:2.125rem;outline:none}.qd-multi-input__wrapper .qd-multi-input__box:hover:after{border-top-color:#b4b4b4}.qd-multi-input__wrapper .qd-multi-input__box.qd-multi-input__box--open{border-color:#069}:host.qd-multi-input-disabled .qd-multi-input__wrapper .qd-multi-input__box{border:none;background:#f5f5f5;color:#979797}:host.qd-multi-input-readonly .qd-multi-input__wrapper .qd-multi-input__box{height:inherit;padding:0;border:none;line-height:2.25rem}:host.qd-multi-input-readonly .qd-multi-input__wrapper .qd-multi-input__box:focus,:host.qd-multi-input-readonly .qd-multi-input__wrapper .qd-multi-input__box:hover,:host.qd-multi-input-readonly .qd-multi-input__wrapper .qd-multi-input__box:active{color:inherit}:host.qd-multi-input-readonly .qd-multi-input__wrapper .qd-multi-input__box:after{display:none}:host.qd-multi-input-viewonly .qd-multi-input__wrapper .qd-multi-input__box{height:inherit;padding:0;border:none;line-height:2.25rem}:host.qd-multi-input-viewonly .qd-multi-input__wrapper .qd-multi-input__box:focus,:host.qd-multi-input-viewonly .qd-multi-input__wrapper .qd-multi-input__box:hover,:host.qd-multi-input-viewonly .qd-multi-input__wrapper .qd-multi-input__box:active{color:inherit}:host.qd-multi-input-viewonly .qd-multi-input__wrapper .qd-multi-input__box:after{display:none}:host.qd-multi-input--readonly-action .qd-multi-input__box.qd-multi-input__box--readonly{color:#069;cursor:pointer}:host.qd-multi-input--readonly-action .qd-multi-input__box.qd-multi-input__box--readonly:hover,:host.qd-multi-input--readonly-action .qd-multi-input__box.qd-multi-input__box--readonly:active,:host.qd-multi-input--readonly-action .qd-multi-input__box.qd-multi-input__box--readonly:focus{color:#069;text-decoration:underline}:host.qd-multi-input--viewonly-action .qd-multi-input__box.qd-multi-input__box--viewonly{color:#069;cursor:pointer}:host.qd-multi-input--viewonly-action .qd-multi-input__box.qd-multi-input__box--viewonly:hover,:host.qd-multi-input--viewonly-action .qd-multi-input__box.qd-multi-input__box--viewonly:active,:host.qd-multi-input--viewonly-action .qd-multi-input__box.qd-multi-input__box--viewonly:focus{color:#069;text-decoration:underline}:host.qd-multi-input-error .qd-multi-input__input-chip-box{outline:.0625rem solid rgb(199,0,35)}:host.qd-multi-input-error .qd-multi-input__input-chip-box:focus,:host.qd-multi-input-error .qd-multi-input__input-chip-box:hover,:host.qd-multi-input-error .qd-multi-input__input-chip-box:active,:host.qd-multi-input-error .qd-multi-input__input-chip-box.qd-multi-input__box--open{outline:.125rem solid rgb(199,0,35)}:host.qd-multi-input-error .qd-multi-input__input-chip-box .qd-error-icon{color:#c70023}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { 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: "component", type: QdFormHintComponent, selector: "qd-form-hint", inputs: ["hint", "control", "hasError", "hintAction", "data-test-id"] }, { kind: "component", type: QdFormLabelComponent, selector: "qd-form-label", inputs: ["label", "isDisabled", "readonly", "viewonly", "control", "tooltip", "data-test-id"] }, { kind: "component", type: QdFormReadonlyComponent, selector: "qd-form-readonly", inputs: ["values", "readonlyAction", "data-test-id"] }, { kind: "component", type: QdFormViewonlyComponent, selector: "qd-form-viewonly", inputs: ["values", "viewonlyAction", "status", "data-test-id"] }, { kind: "component", type: QdMultiInputChipComponent, selector: "qd-multi-input-chip", inputs: ["itemControl", "value", "close", "data-test-id"], outputs: ["closeClickEmitter"] }, { kind: "component", type: QdFormOptionsListComponent, selector: "qd-form-options-list", inputs: ["id", "options", "radioName", "data-test-id"], outputs: ["optionSelected"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
14581
14622
|
}
|
|
14582
14623
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMultiInputComponent, decorators: [{
|
|
14583
14624
|
type: Component,
|
|
@@ -15121,7 +15162,7 @@ class QdPinCodeComponent {
|
|
|
15121
15162
|
},
|
|
15122
15163
|
QdPinCodeService,
|
|
15123
15164
|
QdFormsActionEmitterService
|
|
15124
|
-
], viewQueries: [{ propertyName: "inputsList", predicate: ["input"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<qd-form-label\n [label]=\"label\"\n [readonly]=\"readonly\"\n [viewonly]=\"viewonly\"\n [control]=\"control\"\n [tooltip]=\"config?.tooltip\"\n [data-test-id]=\"testId\"\n></qd-form-label>\n\n@for (i of iterable(codeLength); track $index; let index = $index; let last = $last) { @if (!readonly && !viewonly) {\n<input\n #input\n [ngClass]=\"'qd-pin-code__input qd-pin-code--input-' + index + (last ? ' qd-pin-code__input--last' : '')\"\n [attr.data-test-id]=\"testId + '-input-' + index\"\n [type]=\"codeHidden ? 'password' : inputType\"\n [tabindex]=\"firstEmptyIndex === index ? 0 : -1\"\n (click)=\"handleCLick($event)\"\n (keydown.backspace)=\"handleDelete($event)\"\n (keydown.delete)=\"handleDelete($event)\"\n (keydown.enter)=\"handleComplete()\"\n (keypress)=\"handleInput($event)\"\n (blur)=\"handleBlur(index)\"\n [disabled]=\"disabled\"\n autocomplete=\"off\"\n/>\n} } @if (!readonly && !viewonly && (hint || hasError)) {\n<qd-form-hint\n [hint]=\"hint\"\n [control]=\"control\"\n [hasError]=\"hasError\"\n [hintAction]=\"hintAction\"\n [data-test-id]=\"testId\"\n></qd-form-hint>\n} @if (readonly) {\n<qd-form-readonly\n [values]=\"[joinedValues]\"\n [readonlyAction]=\"readonlyAction\"\n [data-test-id]=\"testId\"\n></qd-form-readonly>\n} @if (viewonly) {\n<qd-form-viewonly\n [values]=\"[joinedValues]\"\n [viewonlyAction]=\"viewonlyAction\"\n [status]=\"config?.viewonlyStatus\"\n [data-test-id]=\"testId\"\n></qd-form-viewonly>\n}\n", styles: [":host{display:block;height:4.5rem;margin-bottom:.75rem}:host .qd-pin-code__input{width:1.875rem;height:2.25rem;border:.0625rem solid rgb(180,180,180);margin-right:.75rem;margin-bottom:.375rem;caret-color:#fff0;cursor:default;font-size:1.5rem;font-weight:500;text-align:center}:host .qd-pin-code__input--last{margin-right:0}:host .qd-pin-code__input:focus{border-width:.125rem;border-color:#069}:host .qd-pin-code__input:active{border-width:.0625rem;border-color:#b4b4b4}:host .qd-pin-code__input:focus-visible{outline:none}:host.qd-pin-code--error .qd-pin-code__input{border-color:#c70023}:host.qd-pin-code--error .qd-pin-code__input:focus{border-width:.125rem}:host.qd-pin-code--error .qd-pin-code__input:active{border-width:.0625rem}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: QdFormHintComponent, selector: "qd-form-hint", inputs: ["hint", "control", "hasError", "hintAction", "data-test-id"] }, { kind: "component", type: QdFormLabelComponent, selector: "qd-form-label", inputs: ["label", "isDisabled", "readonly", "viewonly", "control", "tooltip", "data-test-id"] }, { kind: "component", type: QdFormReadonlyComponent, selector: "qd-form-readonly", inputs: ["values", "readonlyAction", "data-test-id"] }, { kind: "component", type: QdFormViewonlyComponent, selector: "qd-form-viewonly", inputs: ["values", "viewonlyAction", "status", "data-test-id"] }] });
|
|
15165
|
+
], viewQueries: [{ propertyName: "inputsList", predicate: ["input"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<qd-form-label\n [label]=\"label\"\n [readonly]=\"readonly\"\n [viewonly]=\"viewonly\"\n [control]=\"control\"\n [tooltip]=\"config?.tooltip\"\n [data-test-id]=\"testId\"\n></qd-form-label>\n\n@for (i of iterable(codeLength); track $index; let index = $index; let last = $last) { @if (!readonly && !viewonly) {\n<input\n #input\n [ngClass]=\"'qd-pin-code__input qd-pin-code--input-' + index + (last ? ' qd-pin-code__input--last' : '')\"\n [attr.data-test-id]=\"testId + '-input-' + index\"\n [type]=\"codeHidden ? 'password' : inputType\"\n [tabindex]=\"firstEmptyIndex === index ? 0 : -1\"\n (click)=\"handleCLick($event)\"\n (keydown.backspace)=\"handleDelete($event)\"\n (keydown.delete)=\"handleDelete($event)\"\n (keydown.enter)=\"handleComplete()\"\n (keypress)=\"handleInput($event)\"\n (blur)=\"handleBlur(index)\"\n [disabled]=\"disabled\"\n autocomplete=\"off\"\n/>\n} } @if (!readonly && !viewonly && (hint || hasError)) {\n<qd-form-hint\n [hint]=\"hint\"\n [control]=\"control\"\n [hasError]=\"hasError\"\n [hintAction]=\"hintAction\"\n [data-test-id]=\"testId\"\n></qd-form-hint>\n} @if (readonly) {\n<qd-form-readonly\n [values]=\"[joinedValues]\"\n [readonlyAction]=\"readonlyAction\"\n [data-test-id]=\"testId\"\n></qd-form-readonly>\n} @if (viewonly) {\n<qd-form-viewonly\n [values]=\"[joinedValues]\"\n [viewonlyAction]=\"viewonlyAction\"\n [status]=\"config?.viewonlyStatus\"\n [data-test-id]=\"testId\"\n></qd-form-viewonly>\n}\n", styles: [":host{display:block;height:4.5rem;margin-bottom:.75rem}:host .qd-pin-code__input{width:1.875rem;height:2.25rem;border:.0625rem solid rgb(180,180,180);margin-right:.75rem;margin-bottom:.375rem;caret-color:#fff0;cursor:default;font-size:1.5rem;font-weight:500;text-align:center}:host .qd-pin-code__input--last{margin-right:0}:host .qd-pin-code__input:focus{border-width:.125rem;border-color:#069}:host .qd-pin-code__input:active{border-width:.0625rem;border-color:#b4b4b4}:host .qd-pin-code__input:focus-visible{outline:none}:host.qd-pin-code--error .qd-pin-code__input{border-color:#c70023}:host.qd-pin-code--error .qd-pin-code__input:focus{border-width:.125rem}:host.qd-pin-code--error .qd-pin-code__input:active{border-width:.0625rem}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: QdFormHintComponent, selector: "qd-form-hint", inputs: ["hint", "control", "hasError", "hintAction", "data-test-id"] }, { kind: "component", type: QdFormLabelComponent, selector: "qd-form-label", inputs: ["label", "isDisabled", "readonly", "viewonly", "control", "tooltip", "data-test-id"] }, { kind: "component", type: QdFormReadonlyComponent, selector: "qd-form-readonly", inputs: ["values", "readonlyAction", "data-test-id"] }, { kind: "component", type: QdFormViewonlyComponent, selector: "qd-form-viewonly", inputs: ["values", "viewonlyAction", "status", "data-test-id"] }] });
|
|
15125
15166
|
}
|
|
15126
15167
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdPinCodeComponent, decorators: [{
|
|
15127
15168
|
type: Component,
|
|
@@ -15452,7 +15493,7 @@ class QdRadioButtonsComponent {
|
|
|
15452
15493
|
},
|
|
15453
15494
|
QdRadioButtonsService,
|
|
15454
15495
|
QdFormsActionEmitterService
|
|
15455
|
-
], usesOnChanges: true, ngImport: i0, template: "<qd-form-label\n [label]=\"label\"\n [readonly]=\"readonly\"\n [viewonly]=\"viewonly\"\n [control]=\"control\"\n [tooltip]=\"config?.tooltip\"\n [data-test-id]=\"testId\"\n [isDisabled]=\"isLabelDisabled\"\n></qd-form-label>\n\n@if (filter) {\n<qd-filter-form-items\n (filterValueChange)=\"changeValue($event)\"\n [data-test-id]=\"testId + '-filter-form'\"\n></qd-filter-form-items>\n} @if (!readonly && !viewonly) {\n<div class=\"qd-radio-buttons__button-section\">\n @for (option of radioButtonsListForView; track getOptionId($index, option)) {\n <label\n [for]=\"option.value + id\"\n [ngClass]=\"\n 'qd-radio-buttons__label' +\n (option.disabled || disabled ? ' qd-radio-buttons__label--disabled' : '') +\n (option.value === value ? ' qd-radio-buttons__label--checked' : '')\n \"\n [attr.data-test-id]=\"testId + '-label'\"\n >\n <input\n type=\"radio\"\n qdVisuallyHidden\n [qdAutofocus]=\"hasAutofocus && $index === 0\"\n [id]=\"option.value + id\"\n [ngClass]=\"'qd-radio-buttons__radio-button'\"\n [attr.tabindex]=\"isAriaHidden ? -1 : option.value === tabStopValue ? 0 : -1\"\n [attr.aria-hidden]=\"isAriaHidden ? true : null\"\n [name]=\"id\"\n [value]=\"option.value\"\n [disabled]=\"option.disabled || disabled\"\n (change)=\"handleClick(option.value)\"\n [checked]=\"option.value === value\"\n [attr.data-test-id]=\"testId + '-input-' + option.i18n\"\n />\n @if (option.value === value) {\n <qd-icon\n class=\"qd-radio-buttons__indicator\"\n [icon]=\"'radioButtonChecked'\"\n [attr.data-test-id]=\"testId + '-indicator-checked'\"\n ></qd-icon>\n } @if (option.value !== value) {\n <qd-icon\n class=\"qd-radio-buttons__indicator\"\n [icon]=\"'circle'\"\n [attr.data-test-id]=\"testId + '-indicator-unchecked'\"\n ></qd-icon>\n }\n <span [ngClass]=\"'qd-radio-buttons__caption qd-intersection-target'\">{{ option.i18n | translate }}</span>\n </label>\n }\n</div>\n} @if (!readonly && !viewonly && (hasHint || hasError)) {\n<qd-form-hint\n [hint]=\"hasHint ? config.hint.i18n : ''\"\n [control]=\"control\"\n [hasError]=\"hasError\"\n [hintAction]=\"hintAction\"\n [data-test-id]=\"testId\"\n></qd-form-hint>\n} @if (readonly) {\n<qd-form-readonly\n [values]=\"activeOptionAsList\"\n [readonlyAction]=\"readonlyAction\"\n [data-test-id]=\"testId\"\n></qd-form-readonly>\n} @if (viewonly) {\n<qd-form-viewonly\n [values]=\"activeOptionAsList\"\n [viewonlyAction]=\"viewonlyAction\"\n [status]=\"config?.viewonlyStatus\"\n [data-test-id]=\"testId\"\n></qd-form-viewonly>\n}\n", styles: [".qd-radio-buttons{display:block;flex-direction:column;margin-bottom:.75rem}.qd-radio-buttons.qd-radio-align--horizontal .qd-radio-buttons__button-section{display:flex;min-height:2.25rem;flex-wrap:wrap;align-items:center;margin-bottom:.375rem}.qd-radio-buttons.qd-radio-align--horizontal .qd-radio-buttons__label:not(:last-child) .qd-radio-buttons__caption{padding-right:1rem}.qd-radio-buttons.qd-radio-align--vertical .qd-radio-buttons__button-section{display:flex;flex-direction:column;margin-bottom:.375rem}.qd-radio-buttons.qd-radio-align--vertical .qd-radio-buttons__button-section .qd-radio-buttons__caption{flex:auto}.qd-radio-buttons .qd-radio-buttons__label{display:flex;max-width:100%;padding:.625rem 0;color:#454545;cursor:pointer;font-size:.875rem;font-weight:400;line-height:1rem}.qd-radio-buttons .qd-radio-buttons__label .qd-radio-buttons__indicator{position:relative;margin:0 .375rem 0 0;color:#b4b4b4;font-size:1.25rem}.qd-radio-buttons .qd-radio-buttons__label:not(.qd-radio-buttons__label--checked,.qd-radio-buttons__label--disabled):hover,.qd-radio-buttons .qd-radio-buttons__label:not(.qd-radio-buttons__label--checked,.qd-radio-buttons__label--disabled):focus{color:#171717}.qd-radio-buttons .qd-radio-buttons__label:not(.qd-radio-buttons__label--checked,.qd-radio-buttons__label--disabled):hover .qd-radio-buttons__indicator,.qd-radio-buttons .qd-radio-buttons__label:not(.qd-radio-buttons__label--checked,.qd-radio-buttons__label--disabled):focus .qd-radio-buttons__indicator{color:#171717}.qd-radio-buttons .qd-radio-buttons__label--checked{color:#171717}.qd-radio-buttons .qd-radio-buttons__label--checked .qd-radio-buttons__indicator{color:#069}.qd-radio-buttons .qd-radio-buttons__label--disabled{color:#d5d5d5;cursor:default}.qd-radio-buttons .qd-radio-buttons__label--disabled .qd-radio-buttons__indicator{color:#d5d5d5}.qd-radio-buttons .qd-radio-buttons__label .qd-radio-buttons__caption{padding:0}.qd-radio-buttons__input-section{margin-bottom:.375rem}@media(max-width:959.98px){.qd-radio-buttons:not(.qd-rwd-disabled) .qd-radio-buttons__button-section{flex-direction:column}.qd-radio-buttons:not(.qd-rwd-disabled) .qd-radio-buttons__label{width:100%;padding-top:.0625rem;padding-bottom:.0625rem;padding-left:.75rem;border:.0625rem solid rgb(180,180,180);margin-bottom:.75rem;background:#fff}.qd-radio-buttons:not(.qd-rwd-disabled) .qd-radio-buttons__label .qd-radio-buttons__caption{padding-right:.75rem!important;transform:translateY(.0625rem)}}@media(max-width:959.98px)and (max-width:959.98px){.qd-radio-buttons:not(.qd-rwd-disabled) .qd-radio-buttons__label .qd-radio-buttons__caption{padding:.375rem .375rem .375rem 0!important;line-height:1.25rem}}@media(max-width:959.98px){.qd-radio-buttons:not(.qd-rwd-disabled) .qd-radio-buttons__label:last-child{margin-bottom:0}.qd-radio-buttons:not(.qd-rwd-disabled) .qd-radio-buttons__label .qd-radio-buttons__indicator{display:flex;align-items:center}}.qd-keyboard-active .qd-radio-buttons__radio-button:focus~.qd-radio-buttons__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%)}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: QdAutofocusDirective, selector: "[qdAutofocus]", inputs: ["qdAutofocus"] }, { kind: "directive", type: QdVisuallyHiddenDirective, selector: "[qdVisuallyHidden]" }, { kind: "component", type: QdIconComponent, selector: "qd-icon", inputs: ["icon", "status"] }, { kind: "component", type: QdFilterFormItemsComponent, selector: "qd-filter-form-items", inputs: ["inputFilterValue", "data-test-id"], outputs: ["filterValueChange"] }, { kind: "component", type: QdFormHintComponent, selector: "qd-form-hint", inputs: ["hint", "control", "hasError", "hintAction", "data-test-id"] }, { kind: "component", type: QdFormLabelComponent, selector: "qd-form-label", inputs: ["label", "isDisabled", "readonly", "viewonly", "control", "tooltip", "data-test-id"] }, { kind: "component", type: QdFormReadonlyComponent, selector: "qd-form-readonly", inputs: ["values", "readonlyAction", "data-test-id"] }, { kind: "component", type: QdFormViewonlyComponent, selector: "qd-form-viewonly", inputs: ["values", "viewonlyAction", "status", "data-test-id"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], encapsulation: i0.ViewEncapsulation.None });
|
|
15496
|
+
], usesOnChanges: true, ngImport: i0, template: "<qd-form-label\n [label]=\"label\"\n [readonly]=\"readonly\"\n [viewonly]=\"viewonly\"\n [control]=\"control\"\n [tooltip]=\"config?.tooltip\"\n [data-test-id]=\"testId\"\n [isDisabled]=\"isLabelDisabled\"\n></qd-form-label>\n\n@if (filter) {\n<qd-filter-form-items\n (filterValueChange)=\"changeValue($event)\"\n [data-test-id]=\"testId + '-filter-form'\"\n></qd-filter-form-items>\n} @if (!readonly && !viewonly) {\n<div class=\"qd-radio-buttons__button-section\">\n @for (option of radioButtonsListForView; track getOptionId($index, option)) {\n <label\n [for]=\"option.value + id\"\n [ngClass]=\"\n 'qd-radio-buttons__label' +\n (option.disabled || disabled ? ' qd-radio-buttons__label--disabled' : '') +\n (option.value === value ? ' qd-radio-buttons__label--checked' : '')\n \"\n [attr.data-test-id]=\"testId + '-label'\"\n >\n <input\n type=\"radio\"\n qdVisuallyHidden\n [qdAutofocus]=\"hasAutofocus && $index === 0\"\n [id]=\"option.value + id\"\n [ngClass]=\"'qd-radio-buttons__radio-button'\"\n [attr.tabindex]=\"isAriaHidden ? -1 : option.value === tabStopValue ? 0 : -1\"\n [attr.aria-hidden]=\"isAriaHidden ? true : null\"\n [name]=\"id\"\n [value]=\"option.value\"\n [disabled]=\"option.disabled || disabled\"\n (change)=\"handleClick(option.value)\"\n [checked]=\"option.value === value\"\n [attr.data-test-id]=\"testId + '-input-' + option.i18n\"\n />\n @if (option.value === value) {\n <qd-icon\n class=\"qd-radio-buttons__indicator\"\n [icon]=\"'radioButtonChecked'\"\n [attr.data-test-id]=\"testId + '-indicator-checked'\"\n ></qd-icon>\n } @if (option.value !== value) {\n <qd-icon\n class=\"qd-radio-buttons__indicator\"\n [icon]=\"'circle'\"\n [attr.data-test-id]=\"testId + '-indicator-unchecked'\"\n ></qd-icon>\n }\n <span [ngClass]=\"'qd-radio-buttons__caption qd-intersection-target'\">{{ option.i18n | translate }}</span>\n </label>\n }\n</div>\n} @if (!readonly && !viewonly && (hasHint || hasError)) {\n<qd-form-hint\n [hint]=\"hasHint ? config.hint.i18n : ''\"\n [control]=\"control\"\n [hasError]=\"hasError\"\n [hintAction]=\"hintAction\"\n [data-test-id]=\"testId\"\n></qd-form-hint>\n} @if (readonly) {\n<qd-form-readonly\n [values]=\"activeOptionAsList\"\n [readonlyAction]=\"readonlyAction\"\n [data-test-id]=\"testId\"\n></qd-form-readonly>\n} @if (viewonly) {\n<qd-form-viewonly\n [values]=\"activeOptionAsList\"\n [viewonlyAction]=\"viewonlyAction\"\n [status]=\"config?.viewonlyStatus\"\n [data-test-id]=\"testId\"\n></qd-form-viewonly>\n}\n", styles: [".qd-radio-buttons{display:block;flex-direction:column;margin-bottom:.75rem}.qd-radio-buttons.qd-radio-align--horizontal .qd-radio-buttons__button-section{display:flex;min-height:2.25rem;flex-wrap:wrap;align-items:center;margin-bottom:.375rem}.qd-radio-buttons.qd-radio-align--horizontal .qd-radio-buttons__label:not(:last-child) .qd-radio-buttons__caption{padding-right:1rem}.qd-radio-buttons.qd-radio-align--vertical .qd-radio-buttons__button-section{display:flex;flex-direction:column;margin-bottom:.375rem}.qd-radio-buttons.qd-radio-align--vertical .qd-radio-buttons__button-section .qd-radio-buttons__caption{flex:auto}.qd-radio-buttons .qd-radio-buttons__label{display:flex;max-width:100%;padding:.625rem 0;color:#454545;cursor:pointer;font-size:.875rem;font-weight:400;line-height:1rem}.qd-radio-buttons .qd-radio-buttons__label .qd-radio-buttons__indicator{position:relative;margin:0 .375rem 0 0;color:#b4b4b4;font-size:1.25rem}.qd-radio-buttons .qd-radio-buttons__label:not(.qd-radio-buttons__label--checked,.qd-radio-buttons__label--disabled):hover,.qd-radio-buttons .qd-radio-buttons__label:not(.qd-radio-buttons__label--checked,.qd-radio-buttons__label--disabled):focus{color:#171717}.qd-radio-buttons .qd-radio-buttons__label:not(.qd-radio-buttons__label--checked,.qd-radio-buttons__label--disabled):hover .qd-radio-buttons__indicator,.qd-radio-buttons .qd-radio-buttons__label:not(.qd-radio-buttons__label--checked,.qd-radio-buttons__label--disabled):focus .qd-radio-buttons__indicator{color:#171717}.qd-radio-buttons .qd-radio-buttons__label--checked{color:#171717}.qd-radio-buttons .qd-radio-buttons__label--checked .qd-radio-buttons__indicator{color:#069}.qd-radio-buttons .qd-radio-buttons__label--disabled{color:#d5d5d5;cursor:default}.qd-radio-buttons .qd-radio-buttons__label--disabled .qd-radio-buttons__indicator{color:#d5d5d5}.qd-radio-buttons .qd-radio-buttons__label .qd-radio-buttons__caption{padding:0}.qd-radio-buttons__input-section{margin-bottom:.375rem}@media(max-width:959.98px){.qd-radio-buttons:not(.qd-rwd-disabled) .qd-radio-buttons__button-section{flex-direction:column}.qd-radio-buttons:not(.qd-rwd-disabled) .qd-radio-buttons__label{width:100%;padding-top:.0625rem;padding-bottom:.0625rem;padding-left:.75rem;border:.0625rem solid rgb(180,180,180);margin-bottom:.75rem;background:#fff}.qd-radio-buttons:not(.qd-rwd-disabled) .qd-radio-buttons__label .qd-radio-buttons__caption{padding-right:.75rem!important;transform:translateY(.0625rem)}}@media(max-width:959.98px)and (max-width:959.98px){.qd-radio-buttons:not(.qd-rwd-disabled) .qd-radio-buttons__label .qd-radio-buttons__caption{padding:.375rem .375rem .375rem 0!important;line-height:1.25rem}}@media(max-width:959.98px){.qd-radio-buttons:not(.qd-rwd-disabled) .qd-radio-buttons__label:last-child{margin-bottom:0}.qd-radio-buttons:not(.qd-rwd-disabled) .qd-radio-buttons__label .qd-radio-buttons__indicator{display:flex;align-items:center}}.qd-keyboard-active .qd-radio-buttons__radio-button:focus~.qd-radio-buttons__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%)}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: QdAutofocusDirective, selector: "[qdAutofocus]", inputs: ["qdAutofocus"] }, { kind: "directive", type: QdVisuallyHiddenDirective, selector: "[qdVisuallyHidden]" }, { kind: "component", type: QdIconComponent, selector: "qd-icon", inputs: ["icon", "status"] }, { kind: "component", type: QdFilterFormItemsComponent, selector: "qd-filter-form-items", inputs: ["inputFilterValue", "data-test-id"], outputs: ["filterValueChange"] }, { kind: "component", type: QdFormHintComponent, selector: "qd-form-hint", inputs: ["hint", "control", "hasError", "hintAction", "data-test-id"] }, { kind: "component", type: QdFormLabelComponent, selector: "qd-form-label", inputs: ["label", "isDisabled", "readonly", "viewonly", "control", "tooltip", "data-test-id"] }, { kind: "component", type: QdFormReadonlyComponent, selector: "qd-form-readonly", inputs: ["values", "readonlyAction", "data-test-id"] }, { kind: "component", type: QdFormViewonlyComponent, selector: "qd-form-viewonly", inputs: ["values", "viewonlyAction", "status", "data-test-id"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], encapsulation: i0.ViewEncapsulation.None });
|
|
15456
15497
|
}
|
|
15457
15498
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdRadioButtonsComponent, decorators: [{
|
|
15458
15499
|
type: Component,
|
|
@@ -15871,7 +15912,7 @@ class QdRichtextComponent {
|
|
|
15871
15912
|
multi: true
|
|
15872
15913
|
},
|
|
15873
15914
|
QdFormsActionEmitterService
|
|
15874
|
-
], ngImport: i0, template: "<div class=\"label-counter-container\">\n @if (config?.label) {\n <qd-form-label\n [label]=\"config?.label?.i18n\"\n [readonly]=\"config?.readonly\"\n [viewonly]=\"config?.viewonly\"\n [control]=\"control\"\n [tooltip]=\"config?.tooltip\"\n [data-test-id]=\"testId\"\n ></qd-form-label>\n } @if (hasMaxLength) {\n <span class=\"character-counter\">{{ plainTextValue.length }} / {{ maxLength }}</span>\n }\n</div>\n\n@if (!config?.readonly && !config?.viewonly) {\n<div class=\"wrapper\">\n <ngx-editor-menu [editor]=\"editor\" [toolbar]=\"toolbar\"> </ngx-editor-menu>\n <ngx-editor\n [editor]=\"editor\"\n [ngModel]=\"value\"\n [disabled]=\"isDisabled\"\n [placeholder]=\"(config?.placeholder?.disabled ? '' : config?.placeholder?.i18n ?? '') | translate\"\n (ngModelChange)=\"change($event)\"\n [attr.data-test-id]=\"testId + '-input'\"\n ></ngx-editor>\n</div>\n@if (config?.hint || hasError) {\n<qd-form-hint\n [data-test-id]=\"testId\"\n [hintAction]=\"config?.hintAction\"\n [hint]=\"config?.hint?.i18n\"\n [control]=\"control\"\n [hasError]=\"hasError\"\n></qd-form-hint>\n} } @if (config?.readonly) {\n<ngx-editor\n class=\"richtext-readonly\"\n [class.readonly-action]=\"this.config?.readonlyAction\"\n [editor]=\"editor\"\n [ngModel]=\"value\"\n [disabled]=\"true\"\n [attr.data-test-id]=\"testId + '-input-readonly'\"\n (click)=\"handleReadonly()\"\n></ngx-editor>\n} @if (config?.viewonly) {\n<ngx-editor\n class=\"richtext-viewonly\"\n [class.viewonly-action]=\"this.config?.viewonlyAction\"\n [editor]=\"editor\"\n [ngModel]=\"value\"\n [disabled]=\"true\"\n [attr.data-test-id]=\"testId + '-input-viewonly'\"\n (click)=\"handleViewonly()\"\n></ngx-editor>\n}\n", styles: ["qd-richtext{display:block}qd-richtext .wrapper{border:.0625rem solid rgb(180,180,180);margin-bottom:.375rem;background-color:#fff}qd-richtext .NgxEditor{min-height:8.75rem;border-radius:0;border-right:0;border-bottom:0;border-left:0}qd-richtext.qd-form-disabled .NgxEditor__MenuBar{background-color:#f5f5f5;color:#979797}qd-richtext.qd-form-disabled .NgxEditor__MenuBar .NgxEditor__MenuItem--Active{background-color:#efefef;color:#979797}qd-richtext.qd-form-disabled .NgxEditor{background-color:#f5f5f5;color:#979797}.richtext-readonly .NgxEditor{border-top:0}.richtext-readonly.readonly-action .NgxEditor{color:#069;cursor:pointer}.richtext-readonly.readonly-action .NgxEditor:hover,.richtext-readonly.readonly-action .NgxEditor:active,.richtext-readonly.readonly-action .NgxEditor:focus{text-decoration:underline}.richtext-viewonly .NgxEditor{border-top:0}.richtext-viewonly.viewonly-action .NgxEditor{color:#069;cursor:pointer}.richtext-viewonly.viewonly-action .NgxEditor:hover,.richtext-viewonly.viewonly-action .NgxEditor:active,.richtext-viewonly.viewonly-action .NgxEditor:focus{text-decoration:underline}.character-counter{padding-left:.125rem;color:#757575;font-size:.75rem;font-weight:300;line-height:.75rem}.label-counter-container{display:flex;align-items:center;justify-content:space-between;padding:.25rem .125rem}\n"], dependencies: [{ kind: "directive", type: i1$
|
|
15915
|
+
], ngImport: i0, template: "<div class=\"label-counter-container\">\n @if (config?.label) {\n <qd-form-label\n [label]=\"config?.label?.i18n\"\n [readonly]=\"config?.readonly\"\n [viewonly]=\"config?.viewonly\"\n [control]=\"control\"\n [tooltip]=\"config?.tooltip\"\n [data-test-id]=\"testId\"\n ></qd-form-label>\n } @if (hasMaxLength) {\n <span class=\"character-counter\">{{ plainTextValue.length }} / {{ maxLength }}</span>\n }\n</div>\n\n@if (!config?.readonly && !config?.viewonly) {\n<div class=\"wrapper\">\n <ngx-editor-menu [editor]=\"editor\" [toolbar]=\"toolbar\"> </ngx-editor-menu>\n <ngx-editor\n [editor]=\"editor\"\n [ngModel]=\"value\"\n [disabled]=\"isDisabled\"\n [placeholder]=\"(config?.placeholder?.disabled ? '' : config?.placeholder?.i18n ?? '') | translate\"\n (ngModelChange)=\"change($event)\"\n [attr.data-test-id]=\"testId + '-input'\"\n ></ngx-editor>\n</div>\n@if (config?.hint || hasError) {\n<qd-form-hint\n [data-test-id]=\"testId\"\n [hintAction]=\"config?.hintAction\"\n [hint]=\"config?.hint?.i18n\"\n [control]=\"control\"\n [hasError]=\"hasError\"\n></qd-form-hint>\n} } @if (config?.readonly) {\n<ngx-editor\n class=\"richtext-readonly\"\n [class.readonly-action]=\"this.config?.readonlyAction\"\n [editor]=\"editor\"\n [ngModel]=\"value\"\n [disabled]=\"true\"\n [attr.data-test-id]=\"testId + '-input-readonly'\"\n (click)=\"handleReadonly()\"\n></ngx-editor>\n} @if (config?.viewonly) {\n<ngx-editor\n class=\"richtext-viewonly\"\n [class.viewonly-action]=\"this.config?.viewonlyAction\"\n [editor]=\"editor\"\n [ngModel]=\"value\"\n [disabled]=\"true\"\n [attr.data-test-id]=\"testId + '-input-viewonly'\"\n (click)=\"handleViewonly()\"\n></ngx-editor>\n}\n", styles: ["qd-richtext{display:block}qd-richtext .wrapper{border:.0625rem solid rgb(180,180,180);margin-bottom:.375rem;background-color:#fff}qd-richtext .NgxEditor{min-height:8.75rem;border-radius:0;border-right:0;border-bottom:0;border-left:0}qd-richtext.qd-form-disabled .NgxEditor__MenuBar{background-color:#f5f5f5;color:#979797}qd-richtext.qd-form-disabled .NgxEditor__MenuBar .NgxEditor__MenuItem--Active{background-color:#efefef;color:#979797}qd-richtext.qd-form-disabled .NgxEditor{background-color:#f5f5f5;color:#979797}.richtext-readonly .NgxEditor{border-top:0}.richtext-readonly.readonly-action .NgxEditor{color:#069;cursor:pointer}.richtext-readonly.readonly-action .NgxEditor:hover,.richtext-readonly.readonly-action .NgxEditor:active,.richtext-readonly.readonly-action .NgxEditor:focus{text-decoration:underline}.richtext-viewonly .NgxEditor{border-top:0}.richtext-viewonly.viewonly-action .NgxEditor{color:#069;cursor:pointer}.richtext-viewonly.viewonly-action .NgxEditor:hover,.richtext-viewonly.viewonly-action .NgxEditor:active,.richtext-viewonly.viewonly-action .NgxEditor:focus{text-decoration:underline}.character-counter{padding-left:.125rem;color:#757575;font-size:.75rem;font-weight:300;line-height:.75rem}.label-counter-container{display:flex;align-items:center;justify-content:space-between;padding:.25rem .125rem}\n"], dependencies: [{ kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i2$1.NgxEditorComponent, selector: "ngx-editor", inputs: ["editor", "outputFormat", "placeholder"], outputs: ["focusOut", "focusIn"] }, { kind: "component", type: i2$1.MenuComponent, selector: "ngx-editor-menu", inputs: ["toolbar", "colorPresets", "disabled", "editor", "customMenuRef", "dropdownPlacement"] }, { kind: "component", type: QdFormHintComponent, selector: "qd-form-hint", inputs: ["hint", "control", "hasError", "hintAction", "data-test-id"] }, { kind: "component", type: QdFormLabelComponent, selector: "qd-form-label", inputs: ["label", "isDisabled", "readonly", "viewonly", "control", "tooltip", "data-test-id"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], encapsulation: i0.ViewEncapsulation.None });
|
|
15875
15916
|
}
|
|
15876
15917
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdRichtextComponent, decorators: [{
|
|
15877
15918
|
type: Component,
|
|
@@ -17684,7 +17725,7 @@ class QdNotificationsSnackbarComponent {
|
|
|
17684
17725
|
*/
|
|
17685
17726
|
notifications$;
|
|
17686
17727
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdNotificationsSnackbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
17687
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdNotificationsSnackbarComponent, isStandalone: false, selector: "qd-snackbar", inputs: { notifications$: "notifications$" }, ngImport: i0, template: "@for (notification of notifications$ | async; track notification) {\n<qd-notification [notification]=\"notification\"> </qd-notification>\n}\n", dependencies: [{ kind: "component", type: QdNotificationComponent, selector: "qd-notification", inputs: ["state", "notification"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }] });
|
|
17728
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdNotificationsSnackbarComponent, isStandalone: false, selector: "qd-snackbar", inputs: { notifications$: "notifications$" }, ngImport: i0, template: "@for (notification of notifications$ | async; track notification) {\n<qd-notification [notification]=\"notification\"> </qd-notification>\n}\n", dependencies: [{ kind: "component", type: QdNotificationComponent, selector: "qd-notification", inputs: ["state", "notification"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }] });
|
|
17688
17729
|
}
|
|
17689
17730
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdNotificationsSnackbarComponent, decorators: [{
|
|
17690
17731
|
type: Component,
|
|
@@ -17980,7 +18021,7 @@ class QdMenuButtonComponent {
|
|
|
17980
18021
|
return this.config?.actions?.some(action => !action.isHidden) ?? false;
|
|
17981
18022
|
}
|
|
17982
18023
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMenuButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
17983
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdMenuButtonComponent, isStandalone: false, selector: "button[qdMenuButton], a[qdMenuButton]", inputs: { config: ["qdMenuButton", "config"], dataTestId: ["data-test-id", "dataTestId"], autoSize: "autoSize" }, host: { properties: { "attr.class": "classes" } }, ngImport: i0, template: "@if (qdButtonGhost) {\n<button\n qdButton\n qdButtonGhost\n [qdPopoverOnClick]=\"menu\"\n [qdPopoverAutoSize]=\"{ width: true }\"\n [qdPopoverMinWidth]=\"200\"\n [qdPopoverMaxWidth]=\"300\"\n [qdPopoverFlipIntoViewport]=\"true\"\n [qdPopoverEnableKeyControl]=\"true\"\n [qdPopoverRestoreFocus]=\"true\"\n [disabled]=\"config?.isDisabled || !hasUnhiddenActions()\"\n (opened)=\"isOpen = true\"\n (closed)=\"isOpen = false\"\n [class.open]=\"isOpen\"\n>\n <ng-container *ngTemplateOutlet=\"buttonContent\"></ng-container>\n</button>\n} @if (!qdButtonGhost) {\n<button\n qdButton\n [qdPopoverOnClick]=\"menu\"\n [qdPopoverAutoSize]=\"{ width: autoSize }\"\n [qdPopoverMinWidth]=\"200\"\n [qdPopoverMaxWidth]=\"300\"\n [qdPopoverFlipIntoViewport]=\"true\"\n [qdPopoverEnableKeyControl]=\"true\"\n [qdPopoverRestoreFocus]=\"true\"\n [disabled]=\"config?.isDisabled || !hasUnhiddenActions()\"\n (opened)=\"isOpen = true\"\n (closed)=\"isOpen = false\"\n [class.open]=\"isOpen\"\n>\n <ng-container *ngTemplateOutlet=\"buttonContent\"></ng-container>\n</button>\n}\n\n<ng-template #menu>\n @for (action of config?.actions; track action) { @if (!action.isHidden) {\n <button\n class=\"entry\"\n (click)=\"action.handler()\"\n [disabled]=\"action.isDisabled\"\n [attr.data-test-id]=\"dataTestId + 'menu-action'\"\n qdTruncatedText\n >\n {{ action.label.i18n | translate }}\n </button>\n } }\n</ng-template>\n\n<ng-template #buttonContent>\n <div class=\"content\">\n <ng-content></ng-content>\n </div>\n <qd-icon class=\"open-indicator\" [icon]=\"'ctrlDown'\"></qd-icon>\n</ng-template>\n", styles: [":host{padding:0}@media(max-width:959.98px){:host.only-icon-on-small-viewport button{padding:.875rem}:host.only-icon-on-small-viewport .qd-icon{margin:0;font-size:1.125rem;transform:translateY(.125rem)}:host.only-icon-on-small-viewport .content{display:none}}button[qd-button].open{background-color:#14516f}button.entry{display:block;overflow:hidden;width:100%;min-height:2.25rem;padding:0 1rem;background:#fff0;text-align:left;text-overflow:ellipsis;white-space:nowrap;color:inherit;font-size:.875rem;font-weight:400;line-height:1.3125rem}button.entry:hover{background-color:#f2f7fa}button.entry:hover[disabled]{background:#fff0;cursor:default}button.entry[disabled]{color:#b4b4b4;cursor:default}button.entry[disabled]:hover{background-color:#fff0}.open-indicator{margin-left:.5rem;transform:translateY(.0625rem)}qd-icon{font-size:.875rem}.content{display:inline-block}\n"], dependencies: [{ kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { 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: "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: "pipe", type: i2.TranslatePipe, name: "translate" }] });
|
|
18024
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdMenuButtonComponent, isStandalone: false, selector: "button[qdMenuButton], a[qdMenuButton]", inputs: { config: ["qdMenuButton", "config"], dataTestId: ["data-test-id", "dataTestId"], autoSize: "autoSize" }, host: { properties: { "attr.class": "classes" } }, ngImport: i0, template: "@if (qdButtonGhost) {\n<button\n qdButton\n qdButtonGhost\n [qdPopoverOnClick]=\"menu\"\n [qdPopoverAutoSize]=\"{ width: true }\"\n [qdPopoverMinWidth]=\"200\"\n [qdPopoverMaxWidth]=\"300\"\n [qdPopoverFlipIntoViewport]=\"true\"\n [qdPopoverEnableKeyControl]=\"true\"\n [qdPopoverRestoreFocus]=\"true\"\n [disabled]=\"config?.isDisabled || !hasUnhiddenActions()\"\n (opened)=\"isOpen = true\"\n (closed)=\"isOpen = false\"\n [class.open]=\"isOpen\"\n>\n <ng-container *ngTemplateOutlet=\"buttonContent\"></ng-container>\n</button>\n} @if (!qdButtonGhost) {\n<button\n qdButton\n [qdPopoverOnClick]=\"menu\"\n [qdPopoverAutoSize]=\"{ width: autoSize }\"\n [qdPopoverMinWidth]=\"200\"\n [qdPopoverMaxWidth]=\"300\"\n [qdPopoverFlipIntoViewport]=\"true\"\n [qdPopoverEnableKeyControl]=\"true\"\n [qdPopoverRestoreFocus]=\"true\"\n [disabled]=\"config?.isDisabled || !hasUnhiddenActions()\"\n (opened)=\"isOpen = true\"\n (closed)=\"isOpen = false\"\n [class.open]=\"isOpen\"\n>\n <ng-container *ngTemplateOutlet=\"buttonContent\"></ng-container>\n</button>\n}\n\n<ng-template #menu>\n @for (action of config?.actions; track action) { @if (!action.isHidden) {\n <button\n class=\"entry\"\n (click)=\"action.handler()\"\n [disabled]=\"action.isDisabled\"\n [attr.data-test-id]=\"dataTestId + 'menu-action'\"\n qdTruncatedText\n >\n {{ action.label.i18n | translate }}\n </button>\n } }\n</ng-template>\n\n<ng-template #buttonContent>\n <div class=\"content\">\n <ng-content></ng-content>\n </div>\n <qd-icon class=\"open-indicator\" [icon]=\"'ctrlDown'\"></qd-icon>\n</ng-template>\n", styles: [":host{padding:0}@media(max-width:959.98px){:host.only-icon-on-small-viewport button{padding:.875rem}:host.only-icon-on-small-viewport .qd-icon{margin:0;font-size:1.125rem;transform:translateY(.125rem)}:host.only-icon-on-small-viewport .content{display:none}}button[qd-button].open{background-color:#14516f}button.entry{display:block;overflow:hidden;width:100%;min-height:2.25rem;padding:0 1rem;background:#fff0;text-align:left;text-overflow:ellipsis;white-space:nowrap;color:inherit;font-size:.875rem;font-weight:400;line-height:1.3125rem}button.entry:hover{background-color:#f2f7fa}button.entry:hover[disabled]{background:#fff0;cursor:default}button.entry[disabled]{color:#b4b4b4;cursor:default}button.entry[disabled]:hover{background-color:#fff0}.open-indicator{margin-left:.5rem;transform:translateY(.0625rem)}qd-icon{font-size:.875rem}.content{display:inline-block}\n"], dependencies: [{ kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { 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: "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: "pipe", type: i2.TranslatePipe, name: "translate" }] });
|
|
17984
18025
|
}
|
|
17985
18026
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMenuButtonComponent, decorators: [{
|
|
17986
18027
|
type: Component,
|
|
@@ -18168,37 +18209,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
18168
18209
|
type: Input
|
|
18169
18210
|
}] } });
|
|
18170
18211
|
|
|
18171
|
-
const breakpoints = globalVars.breakpoints;
|
|
18172
|
-
|
|
18173
|
-
class QdBreakpointService {
|
|
18174
|
-
_breakpoints = breakpoints;
|
|
18175
|
-
get breakpoints() {
|
|
18176
|
-
return this._breakpoints;
|
|
18177
|
-
}
|
|
18178
|
-
getMatchingBreakpoint() {
|
|
18179
|
-
const queries = Object.values(this.breakpoints).map(bp => `(min-width: ${bp}px)`);
|
|
18180
|
-
const matches$ = queries.map(query => {
|
|
18181
|
-
const mql = window.matchMedia(query);
|
|
18182
|
-
return fromEvent(mql, 'change').pipe(map(event => event.matches), startWith(mql.matches));
|
|
18183
|
-
});
|
|
18184
|
-
const breakpoint = combineLatest(matches$).pipe(map(matches => (Object.keys(this.breakpoints)[matches.lastIndexOf(true)] || Object.keys(this.breakpoints)[0])));
|
|
18185
|
-
return concat(breakpoint.pipe(take(1)), breakpoint.pipe(debounceTime(100)));
|
|
18186
|
-
}
|
|
18187
|
-
isViewportBelow(breakpoint) {
|
|
18188
|
-
return this.getMatchingBreakpoint().pipe(map(currentBreakpoint => {
|
|
18189
|
-
return this.breakpoints[currentBreakpoint] < this.breakpoints[breakpoint];
|
|
18190
|
-
}));
|
|
18191
|
-
}
|
|
18192
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdBreakpointService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
18193
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdBreakpointService, providedIn: 'root' });
|
|
18194
|
-
}
|
|
18195
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdBreakpointService, decorators: [{
|
|
18196
|
-
type: Injectable,
|
|
18197
|
-
args: [{
|
|
18198
|
-
providedIn: 'root'
|
|
18199
|
-
}]
|
|
18200
|
-
}] });
|
|
18201
|
-
|
|
18202
18212
|
/**
|
|
18203
18213
|
* **qdColumnAutoFill** enables the grid auto fill feature for a single column if auto fill is disabled for the grid
|
|
18204
18214
|
* with the `disableAutoFill` config option. By default, the rows will be filled automatically and you don't
|
|
@@ -19127,7 +19137,7 @@ class QdContactCardMenuComponent {
|
|
|
19127
19137
|
});
|
|
19128
19138
|
}
|
|
19129
19139
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdContactCardMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
19130
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdContactCardMenuComponent, isStandalone: false, selector: "qd-contact-card-menu", inputs: { contactData: "contactData", actions: "actions", testId: ["data-test-id", "testId"] }, ngImport: i0, template: "@if (actions$ | async; as actions) { @if (actions.length > 0) {\n<qd-icon\n icon=\"overflowMenuVertical\"\n class=\"menu-opener\"\n [attr.data-test-id]=\"testId + '-opener'\"\n [qdPopoverOnClick]=\"menu\"\n [qdPopoverAutoSize]=\"{ width: true }\"\n [qdPopoverMinWidth]=\"200\"\n [qdPopoverMaxWidth]=\"300\"\n></qd-icon>\n}\n<ng-template #menu>\n @for (action of actions$ | async; track action) {\n <button\n class=\"menu-entry\"\n (click)=\"action.handler(contactData)\"\n [disabled]=\"action.isDisabled\"\n [attr.data-test-id]=\"testId + '-action'\"\n >\n {{ action.label.i18n | translate }}\n </button>\n }\n</ng-template>\n}\n", styles: [":host .menu-opener{position:absolute;top:1.5625rem;right:1.5rem;cursor:pointer;font-size:1.5rem;font-weight:700}button.menu-entry{display:block;overflow:hidden;width:100%;min-height:2.25rem;padding:0 1rem;background:#fff0;text-align:left;text-overflow:ellipsis;white-space:nowrap;color:inherit;font-size:.875rem;font-weight:400;line-height:1.3125rem}button.menu-entry:hover{background-color:#f2f7fa}button.menu-entry:hover[disabled]{background:#fff0;cursor:default}button.menu-entry[disabled]{color:#b4b4b4;cursor:default}button.menu-entry[disabled]:hover{background-color:#fff0}\n"], dependencies: [{ 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: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
19140
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdContactCardMenuComponent, isStandalone: false, selector: "qd-contact-card-menu", inputs: { contactData: "contactData", actions: "actions", testId: ["data-test-id", "testId"] }, ngImport: i0, template: "@if (actions$ | async; as actions) { @if (actions.length > 0) {\n<qd-icon\n icon=\"overflowMenuVertical\"\n class=\"menu-opener\"\n [attr.data-test-id]=\"testId + '-opener'\"\n [qdPopoverOnClick]=\"menu\"\n [qdPopoverAutoSize]=\"{ width: true }\"\n [qdPopoverMinWidth]=\"200\"\n [qdPopoverMaxWidth]=\"300\"\n></qd-icon>\n}\n<ng-template #menu>\n @for (action of actions$ | async; track action) {\n <button\n class=\"menu-entry\"\n (click)=\"action.handler(contactData)\"\n [disabled]=\"action.isDisabled\"\n [attr.data-test-id]=\"testId + '-action'\"\n >\n {{ action.label.i18n | translate }}\n </button>\n }\n</ng-template>\n}\n", styles: [":host .menu-opener{position:absolute;top:1.5625rem;right:1.5rem;cursor:pointer;font-size:1.5rem;font-weight:700}button.menu-entry{display:block;overflow:hidden;width:100%;min-height:2.25rem;padding:0 1rem;background:#fff0;text-align:left;text-overflow:ellipsis;white-space:nowrap;color:inherit;font-size:.875rem;font-weight:400;line-height:1.3125rem}button.menu-entry:hover{background-color:#f2f7fa}button.menu-entry:hover[disabled]{background:#fff0;cursor:default}button.menu-entry[disabled]{color:#b4b4b4;cursor:default}button.menu-entry[disabled]:hover{background-color:#fff0}\n"], dependencies: [{ 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: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
19131
19141
|
}
|
|
19132
19142
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdContactCardMenuComponent, decorators: [{
|
|
19133
19143
|
type: Component,
|
|
@@ -19405,7 +19415,7 @@ class QdContactCardComponent {
|
|
|
19405
19415
|
return !!this.contactData.emailAddress;
|
|
19406
19416
|
}
|
|
19407
19417
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdContactCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
19408
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdContactCardComponent, isStandalone: false, selector: "qd-contact-card", inputs: { contactData: "contactData", actions: "actions", hasPlaceholders: "hasPlaceholders", testId: ["data-test-id", "testId"] }, outputs: { emailAddressClicked: "emailAddressClicked" }, ngImport: i0, template: "@if (actions && actions.length > 0) {\n<qd-contact-card-menu\n [contactData]=\"contactData\"\n [actions]=\"actions\"\n [data-test-id]=\"testId + '-menu'\"\n></qd-contact-card-menu>\n}\n<p class=\"contact-function\">\n {{ contactFunction | translate }} @if (hasTag()) {\n <span class=\"tag\">{{ contactTag | translate }}</span>\n }\n</p>\n<p>\n <span class=\"title\" [class.placeholder]=\"!hasCompanyName()\">{{ companyName }}</span>\n <span class=\"subtitle\" [class.placeholder]=\"!hasBusinessPartnerId()\">{{ businessPartnerId }}</span>\n</p>\n<p>\n <span [class.placeholder]=\"!hasContactPerson()\">{{ firstName }} {{ lastName }}</span>\n <span [class.placeholder]=\"!hasCareOf()\">{{ careOf }}</span>\n <span [class.placeholder]=\"!hasStreet()\">{{ street }}</span>\n <span [class.placeholder]=\"!hasAddress()\">{{ countryCode }}{{ postalCode }} {{ city }}</span>\n</p>\n<p>\n <span [class.placeholder]=\"!hasPhoneNumber()\">\n @if (hasPhoneNumber() && hasPhoneUrl()) {\n <a [attr.href]=\"phoneUrl\">{{ phoneNumber }}</a>\n } @else if (hasPhoneNumber()) {\n <a [attr.href]=\"'tel:' + phoneNumber\">{{ phoneNumber }}</a>\n } @else {\n {{ phoneNumber }}\n }\n </span>\n <a\n [class.placeholder]=\"!hasEmailAddress()\"\n [attr.href]=\"hasEmailAddress() ? 'mailto:' + emailAddress : null\"\n (click)=\"hasEmailAddress() ? emailAddressClicked.emit($event) : null\"\n >\n {{ emailAddress }}\n </a>\n</p>\n@if (customFields && customFields.length > 0) {\n<p>\n @for (customField of customFields; track customField) {\n <span>\n @if (customField.label) {\n <label>\n <ng-container\n [ngTemplateOutlet]=\"translate\"\n [ngTemplateOutletContext]=\"{ translatableOrText: customField.label }\"\n ></ng-container>\n </label>\n }\n <ng-container\n [ngTemplateOutlet]=\"translate\"\n [ngTemplateOutletContext]=\"{ translatableOrText: customField.value }\"\n ></ng-container>\n </span>\n }\n</p>\n}\n\n<ng-template #translate let-translatableOrText=\"translatableOrText\">\n @if (translatableOrText.i18n) {\n {{ translatableOrText.i18n | translate }}\n } @else {\n {{ translatableOrText }}\n }\n</ng-template>\n", styles: [":host{position:relative;display:inline-block;width:23rem;min-height:15.5625rem;padding:.5625rem 1.4375rem;border:solid .0625rem rgb(213,213,213);margin:0 1.0625rem 1.0625rem 0;background-color:#fff;color:#171717;font-size:.875rem;line-height:1.3125rem;vertical-align:top}:host p{margin:.75rem 0}:host span,:host a{display:block;height:auto}:host span>label{margin-right:.21875rem;color:#757575}:host .contact-function{display:flex;align-items:center;margin:.8125rem 0 .875rem;font-weight:500;line-height:1.125rem}:host .tag{display:inline;padding:.125rem .375rem;border-radius:.625rem;margin-left:.5rem;background-color:#454545;color:#fff;font-size:.625rem;line-height:.8125rem}:host .title{font-size:1.0625rem;font-weight:600}:host .subtitle{font-size:1rem}:host .placeholder{color:#979797;cursor:default;font-style:italic;text-decoration:none}\n"], dependencies: [{ kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: QdContactCardMenuComponent, selector: "qd-contact-card-menu", inputs: ["contactData", "actions", "data-test-id"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
19418
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdContactCardComponent, isStandalone: false, selector: "qd-contact-card", inputs: { contactData: "contactData", actions: "actions", hasPlaceholders: "hasPlaceholders", testId: ["data-test-id", "testId"] }, outputs: { emailAddressClicked: "emailAddressClicked" }, ngImport: i0, template: "@if (actions && actions.length > 0) {\n<qd-contact-card-menu\n [contactData]=\"contactData\"\n [actions]=\"actions\"\n [data-test-id]=\"testId + '-menu'\"\n></qd-contact-card-menu>\n}\n<p class=\"contact-function\">\n {{ contactFunction | translate }} @if (hasTag()) {\n <span class=\"tag\">{{ contactTag | translate }}</span>\n }\n</p>\n<p>\n <span class=\"title\" [class.placeholder]=\"!hasCompanyName()\">{{ companyName }}</span>\n <span class=\"subtitle\" [class.placeholder]=\"!hasBusinessPartnerId()\">{{ businessPartnerId }}</span>\n</p>\n<p>\n <span [class.placeholder]=\"!hasContactPerson()\">{{ firstName }} {{ lastName }}</span>\n <span [class.placeholder]=\"!hasCareOf()\">{{ careOf }}</span>\n <span [class.placeholder]=\"!hasStreet()\">{{ street }}</span>\n <span [class.placeholder]=\"!hasAddress()\">{{ countryCode }}{{ postalCode }} {{ city }}</span>\n</p>\n<p>\n <span [class.placeholder]=\"!hasPhoneNumber()\">\n @if (hasPhoneNumber() && hasPhoneUrl()) {\n <a [attr.href]=\"phoneUrl\">{{ phoneNumber }}</a>\n } @else if (hasPhoneNumber()) {\n <a [attr.href]=\"'tel:' + phoneNumber\">{{ phoneNumber }}</a>\n } @else {\n {{ phoneNumber }}\n }\n </span>\n <a\n [class.placeholder]=\"!hasEmailAddress()\"\n [attr.href]=\"hasEmailAddress() ? 'mailto:' + emailAddress : null\"\n (click)=\"hasEmailAddress() ? emailAddressClicked.emit($event) : null\"\n >\n {{ emailAddress }}\n </a>\n</p>\n@if (customFields && customFields.length > 0) {\n<p>\n @for (customField of customFields; track customField) {\n <span>\n @if (customField.label) {\n <label>\n <ng-container\n [ngTemplateOutlet]=\"translate\"\n [ngTemplateOutletContext]=\"{ translatableOrText: customField.label }\"\n ></ng-container>\n </label>\n }\n <ng-container\n [ngTemplateOutlet]=\"translate\"\n [ngTemplateOutletContext]=\"{ translatableOrText: customField.value }\"\n ></ng-container>\n </span>\n }\n</p>\n}\n\n<ng-template #translate let-translatableOrText=\"translatableOrText\">\n @if (translatableOrText.i18n) {\n {{ translatableOrText.i18n | translate }}\n } @else {\n {{ translatableOrText }}\n }\n</ng-template>\n", styles: [":host{position:relative;display:inline-block;width:23rem;min-height:15.5625rem;padding:.5625rem 1.4375rem;border:solid .0625rem rgb(213,213,213);margin:0 1.0625rem 1.0625rem 0;background-color:#fff;color:#171717;font-size:.875rem;line-height:1.3125rem;vertical-align:top}:host p{margin:.75rem 0}:host span,:host a{display:block;height:auto}:host span>label{margin-right:.21875rem;color:#757575}:host .contact-function{display:flex;align-items:center;margin:.8125rem 0 .875rem;font-weight:500;line-height:1.125rem}:host .tag{display:inline;padding:.125rem .375rem;border-radius:.625rem;margin-left:.5rem;background-color:#454545;color:#fff;font-size:.625rem;line-height:.8125rem}:host .title{font-size:1.0625rem;font-weight:600}:host .subtitle{font-size:1rem}:host .placeholder{color:#979797;cursor:default;font-style:italic;text-decoration:none}\n"], dependencies: [{ kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: QdContactCardMenuComponent, selector: "qd-contact-card-menu", inputs: ["contactData", "actions", "data-test-id"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
19409
19419
|
}
|
|
19410
19420
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdContactCardComponent, decorators: [{
|
|
19411
19421
|
type: Component,
|
|
@@ -19756,7 +19766,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
19756
19766
|
|
|
19757
19767
|
class QdPageDialogWithBreadcrumbsComponent {
|
|
19758
19768
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdPageDialogWithBreadcrumbsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
19759
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdPageDialogWithBreadcrumbsComponent, isStandalone: false, selector: "ng-component", ngImport: i0, template: "<qd-dialog>\n <div class=\"wrapper\">\n <qd-breadcrumbs></qd-breadcrumbs>\n <div class=\"router-outlet-wrapper\">\n <router-outlet name=\"dialog\"></router-outlet>\n </div>\n </div>\n</qd-dialog>\n", styles: [".wrapper{display:flex;height:100%;flex-flow:column}qd-breadcrumbs{z-index:99;flex:0 1 auto;padding-right:2.25rem;padding-bottom:.75rem;margin-bottom:-.75rem}.router-outlet-wrapper{position:relative;height:100%;flex:1 1 auto}\n"], dependencies: [{ kind: "directive", type: i1$
|
|
19769
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdPageDialogWithBreadcrumbsComponent, isStandalone: false, selector: "ng-component", ngImport: i0, template: "<qd-dialog>\n <div class=\"wrapper\">\n <qd-breadcrumbs></qd-breadcrumbs>\n <div class=\"router-outlet-wrapper\">\n <router-outlet name=\"dialog\"></router-outlet>\n </div>\n </div>\n</qd-dialog>\n", styles: [".wrapper{display:flex;height:100%;flex-flow:column}qd-breadcrumbs{z-index:99;flex:0 1 auto;padding-right:2.25rem;padding-bottom:.75rem;margin-bottom:-.75rem}.router-outlet-wrapper{position:relative;height:100%;flex:1 1 auto}\n"], dependencies: [{ kind: "directive", type: i1$3.RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "component", type: QdBreadcrumbsComponent, selector: "qd-breadcrumbs" }, { kind: "component", type: QdDialogComponent, selector: "qd-dialog", inputs: ["data-test-id"] }] });
|
|
19760
19770
|
}
|
|
19761
19771
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdPageDialogWithBreadcrumbsComponent, decorators: [{
|
|
19762
19772
|
type: Component,
|
|
@@ -19858,6 +19868,7 @@ class QdDialogModule {
|
|
|
19858
19868
|
TranslateModule,
|
|
19859
19869
|
RouterModule,
|
|
19860
19870
|
DialogModule,
|
|
19871
|
+
CdkDrag,
|
|
19861
19872
|
QdButtonModule,
|
|
19862
19873
|
QdFormModule,
|
|
19863
19874
|
QdIconModule,
|
|
@@ -19903,6 +19914,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
19903
19914
|
TranslateModule,
|
|
19904
19915
|
RouterModule,
|
|
19905
19916
|
DialogModule,
|
|
19917
|
+
CdkDrag,
|
|
19906
19918
|
QdButtonModule,
|
|
19907
19919
|
QdFormModule,
|
|
19908
19920
|
QdIconModule,
|
|
@@ -20194,7 +20206,7 @@ class QdFileCollectorAllowedFilesDescriptionComponent {
|
|
|
20194
20206
|
return this.fileCollectorService.config;
|
|
20195
20207
|
}
|
|
20196
20208
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdFileCollectorAllowedFilesDescriptionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
20197
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdFileCollectorAllowedFilesDescriptionComponent, isStandalone: false, selector: "qd-file-collector-allowed-files-description", ngImport: i0, template: "@if (allowedFilesDescriptionI18n) {\n<span>{{\n allowedFilesDescriptionI18n\n | translate\n | placeholder : \"allowedFileTypes\" : allowedFileTypes.join(\", \")\n | placeholder : \"maxFileSize\" : (maxFileSizeInBytes | filesize | async)\n}}</span>\n} @if (allowedFilesDescriptionI18n === undefined) { @if (allowedFileTypes.length > 0) {\n<span>{{\n \"i18n.qd.fileCollector.allowedFilesDescription.allowedFileTypes\"\n | translate\n | placeholder : \"allowedFileTypes\" : allowedFileTypes.join(\", \")\n}}</span>\n} @if (maxFileSizeInBytes) {\n<span>{{\n \"i18n.qd.fileCollector.allowedFilesDescription.maxFileSize\"\n | translate\n | placeholder : \"maxFileSize\" : (maxFileSizeInBytes | filesize | async)\n}}</span>\n} }\n", styles: [":host span{color:#333;font-size:.875rem;font-weight:400;line-height:1.3125rem;display:block;white-space:pre-wrap}:host span:last-child{margin-bottom:1rem}\n"], dependencies: [{ kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }, { kind: "pipe", type: QdPlaceholderPipe, name: "placeholder" }, { kind: "pipe", type: QdFileSizePipe, name: "filesize" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
20209
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdFileCollectorAllowedFilesDescriptionComponent, isStandalone: false, selector: "qd-file-collector-allowed-files-description", ngImport: i0, template: "@if (allowedFilesDescriptionI18n) {\n<span>{{\n allowedFilesDescriptionI18n\n | translate\n | placeholder : \"allowedFileTypes\" : allowedFileTypes.join(\", \")\n | placeholder : \"maxFileSize\" : (maxFileSizeInBytes | filesize | async)\n}}</span>\n} @if (allowedFilesDescriptionI18n === undefined) { @if (allowedFileTypes.length > 0) {\n<span>{{\n \"i18n.qd.fileCollector.allowedFilesDescription.allowedFileTypes\"\n | translate\n | placeholder : \"allowedFileTypes\" : allowedFileTypes.join(\", \")\n}}</span>\n} @if (maxFileSizeInBytes) {\n<span>{{\n \"i18n.qd.fileCollector.allowedFilesDescription.maxFileSize\"\n | translate\n | placeholder : \"maxFileSize\" : (maxFileSizeInBytes | filesize | async)\n}}</span>\n} }\n", styles: [":host span{color:#333;font-size:.875rem;font-weight:400;line-height:1.3125rem;display:block;white-space:pre-wrap}:host span:last-child{margin-bottom:1rem}\n"], dependencies: [{ kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }, { kind: "pipe", type: QdPlaceholderPipe, name: "placeholder" }, { kind: "pipe", type: QdFileSizePipe, name: "filesize" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
20198
20210
|
}
|
|
20199
20211
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdFileCollectorAllowedFilesDescriptionComponent, decorators: [{
|
|
20200
20212
|
type: Component,
|
|
@@ -20262,7 +20274,7 @@ class QdFileCollectorDialogItemProgressComponent {
|
|
|
20262
20274
|
}
|
|
20263
20275
|
QdUploadState = QdUploadProgressState;
|
|
20264
20276
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdFileCollectorDialogItemProgressComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
20265
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdFileCollectorDialogItemProgressComponent, isStandalone: false, selector: "qd-file-collector-dialog-item-progress", inputs: { progress: "progress", error: "error", testId: ["data-test-id", "testId"] }, host: { properties: { "attr.data-test-id": "this.hostTestId" }, classAttribute: "qd-file-collector-dialog-item-progress" }, usesOnChanges: true, ngImport: i0, template: "@if (uploadState$ | async; as uploadState) { @if ( [QdUploadState.STARTING, QdUploadState.IN_PROGRESS,\nQdUploadState.FINISHING].includes(uploadState)) {\n<span [class]=\"'upload-progress-bar-container'\">\n <span\n [ngClass]=\"{\n 'upload-progress-bar-progress': true,\n filled: [QdUploadState.IN_PROGRESS, QdUploadState.FINISHING].includes(uploadState),\n success: QdUploadState.FINISHING === uploadState\n }\"\n [class]=\"'upload-progress-bar-progress'\"\n [ngStyle]=\"{ minWidth: progress + '%' }\"\n >\n {{ progress ? progress : 0 }}%\n </span>\n</span>\n} @else {\n<span [class]=\"'upload-state-chip ' + uploadState\">\n {{ \"i18n.qd.fileCollector.uploadState.\" + uploadState | translate }}\n</span>\n} }\n", styles: [":host{position:relative;display:flex;margin-top:.0625rem}:host .upload-progress-bar-container{width:12.5rem}:host .upload-progress-bar-progress,:host .upload-state-chip{color:#e97e00;font-size:.625rem;font-weight:500;line-height:1rem;display:inline-block;padding-right:.375rem;padding-left:.5rem;border:solid .0625rem rgb(233,126,0);border-radius:.5rem;background:#fff;transition:min-width 1s}:host .upload-progress-bar-progress.filled,:host .upload-state-chip.filled{border-color:#e97e00;background:#e97e00;color:#fff}:host .upload-progress-bar-progress.success,:host .upload-state-chip.success{border-color:#00813a;background:#fff;color:#00813a}:host .upload-progress-bar-progress.success.filled,:host .upload-state-chip.success.filled{border-color:#00813a;background:#00813a;color:#fff}:host .upload-progress-bar-progress.error,:host .upload-state-chip.error{border-color:#c70023;background:#fff;color:#c70023}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
20277
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdFileCollectorDialogItemProgressComponent, isStandalone: false, selector: "qd-file-collector-dialog-item-progress", inputs: { progress: "progress", error: "error", testId: ["data-test-id", "testId"] }, host: { properties: { "attr.data-test-id": "this.hostTestId" }, classAttribute: "qd-file-collector-dialog-item-progress" }, usesOnChanges: true, ngImport: i0, template: "@if (uploadState$ | async; as uploadState) { @if ( [QdUploadState.STARTING, QdUploadState.IN_PROGRESS,\nQdUploadState.FINISHING].includes(uploadState)) {\n<span [class]=\"'upload-progress-bar-container'\">\n <span\n [ngClass]=\"{\n 'upload-progress-bar-progress': true,\n filled: [QdUploadState.IN_PROGRESS, QdUploadState.FINISHING].includes(uploadState),\n success: QdUploadState.FINISHING === uploadState\n }\"\n [class]=\"'upload-progress-bar-progress'\"\n [ngStyle]=\"{ minWidth: progress + '%' }\"\n >\n {{ progress ? progress : 0 }}%\n </span>\n</span>\n} @else {\n<span [class]=\"'upload-state-chip ' + uploadState\">\n {{ \"i18n.qd.fileCollector.uploadState.\" + uploadState | translate }}\n</span>\n} }\n", styles: [":host{position:relative;display:flex;margin-top:.0625rem}:host .upload-progress-bar-container{width:12.5rem}:host .upload-progress-bar-progress,:host .upload-state-chip{color:#e97e00;font-size:.625rem;font-weight:500;line-height:1rem;display:inline-block;padding-right:.375rem;padding-left:.5rem;border:solid .0625rem rgb(233,126,0);border-radius:.5rem;background:#fff;transition:min-width 1s}:host .upload-progress-bar-progress.filled,:host .upload-state-chip.filled{border-color:#e97e00;background:#e97e00;color:#fff}:host .upload-progress-bar-progress.success,:host .upload-state-chip.success{border-color:#00813a;background:#fff;color:#00813a}:host .upload-progress-bar-progress.success.filled,:host .upload-state-chip.success.filled{border-color:#00813a;background:#00813a;color:#fff}:host .upload-progress-bar-progress.error,:host .upload-state-chip.error{border-color:#c70023;background:#fff;color:#c70023}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
20266
20278
|
}
|
|
20267
20279
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdFileCollectorDialogItemProgressComponent, decorators: [{
|
|
20268
20280
|
type: Component,
|
|
@@ -20300,7 +20312,7 @@ class QdFileCollectorDialogItemErrorComponent {
|
|
|
20300
20312
|
return this.fileCollectorService.config;
|
|
20301
20313
|
}
|
|
20302
20314
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdFileCollectorDialogItemErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
20303
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdFileCollectorDialogItemErrorComponent, isStandalone: false, selector: "qd-file-collector-dialog-item-error", inputs: { error: "error", testId: ["data-test-id", "testId"] }, host: { properties: { "attr.data-test-id": "this.hostTestId" } }, ngImport: i0, template: "@if (error.message) {\n<span>{{ error.message }}</span>\n} @else { @switch (error.type) { @case (QdUploadErrorType.INVALID_MIME_TYPE) {\n<span>{{ invalidMimeTypeErrorMessageI18n || \"i18n.qd.fileCollector.invalid.fileType\" | translate }}</span>\n} @case (QdUploadErrorType.INVALID_FILE_SIZE) {\n<span>{{\n \"i18n.qd.fileCollector.invalid.fileSize\"\n | translate\n | placeholder : \"maxFileSize\" : (maxFileSizeInBytes | filesize | async)\n}}</span>\n} @case (QdUploadErrorType.INVALID_FILE_NAME) {\n<span>{{ invalidFileNameErrorMessageI18n || \"i18n.qd.fileCollector.invalid.fileName\" | translate }}</span>\n} @case (QdUploadErrorType.UNKNOWN_ERROR) {\n<span>{{ \"i18n.qd.fileCollector.invalid.unknown\" | translate }}</span>\n} } }\n", styles: [":host{display:flex;width:100%;align-items:center}:host span{color:#c70023}\n"], dependencies: [{ kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }, { kind: "pipe", type: QdPlaceholderPipe, name: "placeholder" }, { kind: "pipe", type: QdFileSizePipe, name: "filesize" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
20315
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdFileCollectorDialogItemErrorComponent, isStandalone: false, selector: "qd-file-collector-dialog-item-error", inputs: { error: "error", testId: ["data-test-id", "testId"] }, host: { properties: { "attr.data-test-id": "this.hostTestId" } }, ngImport: i0, template: "@if (error.message) {\n<span>{{ error.message }}</span>\n} @else { @switch (error.type) { @case (QdUploadErrorType.INVALID_MIME_TYPE) {\n<span>{{ invalidMimeTypeErrorMessageI18n || \"i18n.qd.fileCollector.invalid.fileType\" | translate }}</span>\n} @case (QdUploadErrorType.INVALID_FILE_SIZE) {\n<span>{{\n \"i18n.qd.fileCollector.invalid.fileSize\"\n | translate\n | placeholder : \"maxFileSize\" : (maxFileSizeInBytes | filesize | async)\n}}</span>\n} @case (QdUploadErrorType.INVALID_FILE_NAME) {\n<span>{{ invalidFileNameErrorMessageI18n || \"i18n.qd.fileCollector.invalid.fileName\" | translate }}</span>\n} @case (QdUploadErrorType.UNKNOWN_ERROR) {\n<span>{{ \"i18n.qd.fileCollector.invalid.unknown\" | translate }}</span>\n} } }\n", styles: [":host{display:flex;width:100%;align-items:center}:host span{color:#c70023}\n"], dependencies: [{ kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }, { kind: "pipe", type: QdPlaceholderPipe, name: "placeholder" }, { kind: "pipe", type: QdFileSizePipe, name: "filesize" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
20304
20316
|
}
|
|
20305
20317
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdFileCollectorDialogItemErrorComponent, decorators: [{
|
|
20306
20318
|
type: Component,
|
|
@@ -20330,7 +20342,7 @@ class QdFileCollectorDialogItemComponent {
|
|
|
20330
20342
|
return !!this.error;
|
|
20331
20343
|
}
|
|
20332
20344
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdFileCollectorDialogItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
20333
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdFileCollectorDialogItemComponent, isStandalone: false, selector: "qd-file-collector-dialog-item", inputs: { progress: "progress", collectedFile: "collectedFile", error: "error", testId: ["data-test-id", "testId"] }, host: { properties: { "attr.data-test-id": "this.hostTestId", "class.success": "this.isSuccessful", "class.error": "this.hasError" } }, ngImport: i0, template: "<span class=\"name\" [attr.data-test-id]=\"testId + '-name'\">{{ this.collectedFile.name }}</span>\n<qd-file-collector-dialog-item-progress\n [progress]=\"this.progress\"\n [error]=\"this.error\"\n [data-test-id]=\"testId + '-progress'\"\n></qd-file-collector-dialog-item-progress>\n<span class=\"filesize\" [attr.data-test-id]=\"testId + '-size'\">{{ this.collectedFile.size | filesize | async }}</span>\n@if (!!this.error) {\n<qd-file-collector-dialog-item-error\n [error]=\"this.error\"\n [data-test-id]=\"testId + '-error'\"\n></qd-file-collector-dialog-item-error>\n}\n", styles: [":host{color:#333;font-size:.875rem;font-weight:400;line-height:1.3125rem;position:relative;display:grid;align-items:self-start;padding:.625rem 1rem .625rem 2.875rem;border-left:transparent .1875rem solid;margin-bottom:.75rem;background:#fff;gap:.25rem 1rem;grid-template-columns:30rem auto max-content;outline:rgb(151,151,151) .0625rem solid}:host qd-file-collector-dialog-item-error{grid-column:span 2}:host .filesize{text-align:right}@media(max-width:959.98px){:host{grid-template-columns:18.75rem auto max-content}:host .name{overflow:auto;overflow-wrap:break-word}}@media(max-width:599.98px){:host{grid-template-columns:auto auto auto}:host .name,:host qd-file-collector-dialog-item-progress{grid-column:span 2}:host qd-file-collector-dialog-item-progress,:host .filesize{order:-1}}:host:last-child{margin-bottom:0}:host.error{border-left-color:#c70023}:host.success{border-left-color:#00813a}:host:before{position:absolute;top:.5625rem;left:.875rem;content:\"\\e964\";font-family:Quadrel-Icon,sans-serif;font-size:1.25rem}:host .upload{color:#454545;cursor:pointer;font-size:1rem}:host .upload:hover,:host .upload:focus{color:#171717}\n"], dependencies: [{ kind: "component", type: QdFileCollectorDialogItemProgressComponent, selector: "qd-file-collector-dialog-item-progress", inputs: ["progress", "error", "data-test-id"] }, { kind: "component", type: QdFileCollectorDialogItemErrorComponent, selector: "qd-file-collector-dialog-item-error", inputs: ["error", "data-test-id"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: QdFileSizePipe, name: "filesize" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
20345
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdFileCollectorDialogItemComponent, isStandalone: false, selector: "qd-file-collector-dialog-item", inputs: { progress: "progress", collectedFile: "collectedFile", error: "error", testId: ["data-test-id", "testId"] }, host: { properties: { "attr.data-test-id": "this.hostTestId", "class.success": "this.isSuccessful", "class.error": "this.hasError" } }, ngImport: i0, template: "<span class=\"name\" [attr.data-test-id]=\"testId + '-name'\">{{ this.collectedFile.name }}</span>\n<qd-file-collector-dialog-item-progress\n [progress]=\"this.progress\"\n [error]=\"this.error\"\n [data-test-id]=\"testId + '-progress'\"\n></qd-file-collector-dialog-item-progress>\n<span class=\"filesize\" [attr.data-test-id]=\"testId + '-size'\">{{ this.collectedFile.size | filesize | async }}</span>\n@if (!!this.error) {\n<qd-file-collector-dialog-item-error\n [error]=\"this.error\"\n [data-test-id]=\"testId + '-error'\"\n></qd-file-collector-dialog-item-error>\n}\n", styles: [":host{color:#333;font-size:.875rem;font-weight:400;line-height:1.3125rem;position:relative;display:grid;align-items:self-start;padding:.625rem 1rem .625rem 2.875rem;border-left:transparent .1875rem solid;margin-bottom:.75rem;background:#fff;gap:.25rem 1rem;grid-template-columns:30rem auto max-content;outline:rgb(151,151,151) .0625rem solid}:host qd-file-collector-dialog-item-error{grid-column:span 2}:host .filesize{text-align:right}@media(max-width:959.98px){:host{grid-template-columns:18.75rem auto max-content}:host .name{overflow:auto;overflow-wrap:break-word}}@media(max-width:599.98px){:host{grid-template-columns:auto auto auto}:host .name,:host qd-file-collector-dialog-item-progress{grid-column:span 2}:host qd-file-collector-dialog-item-progress,:host .filesize{order:-1}}:host:last-child{margin-bottom:0}:host.error{border-left-color:#c70023}:host.success{border-left-color:#00813a}:host:before{position:absolute;top:.5625rem;left:.875rem;content:\"\\e964\";font-family:Quadrel-Icon,sans-serif;font-size:1.25rem}:host .upload{color:#454545;cursor:pointer;font-size:1rem}:host .upload:hover,:host .upload:focus{color:#171717}\n"], dependencies: [{ kind: "component", type: QdFileCollectorDialogItemProgressComponent, selector: "qd-file-collector-dialog-item-progress", inputs: ["progress", "error", "data-test-id"] }, { kind: "component", type: QdFileCollectorDialogItemErrorComponent, selector: "qd-file-collector-dialog-item-error", inputs: ["error", "data-test-id"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: QdFileSizePipe, name: "filesize" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
20334
20346
|
}
|
|
20335
20347
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdFileCollectorDialogItemComponent, decorators: [{
|
|
20336
20348
|
type: Component,
|
|
@@ -20552,7 +20564,7 @@ class QdFileCollectorItemSizeComponent {
|
|
|
20552
20564
|
return this.testId;
|
|
20553
20565
|
}
|
|
20554
20566
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdFileCollectorItemSizeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
20555
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdFileCollectorItemSizeComponent, isStandalone: false, selector: "qd-file-collector-item-size", inputs: { size: "size", testId: ["data-test-id", "testId"] }, host: { properties: { "attr.data-test-id": "this.dataTestId" } }, ngImport: i0, template: "<span>{{ size | filesize | async }}</span>\n", styles: [":host{display:flex;align-items:center}:host span{color:#333;font-size:.875rem;font-weight:400;line-height:1.3125rem}\n"], dependencies: [{ kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: QdFileSizePipe, name: "filesize" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
20567
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdFileCollectorItemSizeComponent, isStandalone: false, selector: "qd-file-collector-item-size", inputs: { size: "size", testId: ["data-test-id", "testId"] }, host: { properties: { "attr.data-test-id": "this.dataTestId" } }, ngImport: i0, template: "<span>{{ size | filesize | async }}</span>\n", styles: [":host{display:flex;align-items:center}:host span{color:#333;font-size:.875rem;font-weight:400;line-height:1.3125rem}\n"], dependencies: [{ kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: QdFileSizePipe, name: "filesize" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
20556
20568
|
}
|
|
20557
20569
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdFileCollectorItemSizeComponent, decorators: [{
|
|
20558
20570
|
type: Component,
|
|
@@ -20629,7 +20641,7 @@ class QdFileCollectorItemToolsComponent {
|
|
|
20629
20641
|
});
|
|
20630
20642
|
}
|
|
20631
20643
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdFileCollectorItemToolsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
20632
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdFileCollectorItemToolsComponent, isStandalone: false, selector: "qd-file-collector-item-tools", inputs: { progress: "progress", collectedFile: "collectedFile", error: "error", readonly: "readonly", viewonly: "viewonly", downloadFilesWithHttpClient: "downloadFilesWithHttpClient", testId: ["data-test-id", "testId"] }, host: { properties: { "attr.data-test-id": "this.dataTestId" } }, ngImport: i0, template: "<a\n (click)=\"downloadFile($event)\"\n [href]=\"collectedFile.downloadUrl\"\n target=\"_blank\"\n [ngClass]=\"{ hidden: !collectedFile.downloadUrl }\"\n [attr.data-test-id]=\"testId + '-download'\"\n>\n <qd-icon icon=\"dataDownload\"></qd-icon>\n</a>\n\n@if (!readonly && !viewonly) {\n<qd-icon icon=\"trash\" (click)=\"deleteFile()\" [attr.data-test-id]=\"testId + '-delete'\"></qd-icon>\n}\n", styles: [":host qd-icon{color:#454545;cursor:pointer;font-size:1rem}:host qd-icon:hover,:host qd-icon:focus{color:#171717}:host *+*{margin-left:.5rem}:host .hidden{cursor:none;pointer-events:none;visibility:hidden}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: QdIconComponent, selector: "qd-icon", inputs: ["icon", "status"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
20644
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdFileCollectorItemToolsComponent, isStandalone: false, selector: "qd-file-collector-item-tools", inputs: { progress: "progress", collectedFile: "collectedFile", error: "error", readonly: "readonly", viewonly: "viewonly", downloadFilesWithHttpClient: "downloadFilesWithHttpClient", testId: ["data-test-id", "testId"] }, host: { properties: { "attr.data-test-id": "this.dataTestId" } }, ngImport: i0, template: "<a\n (click)=\"downloadFile($event)\"\n [href]=\"collectedFile.downloadUrl\"\n target=\"_blank\"\n [ngClass]=\"{ hidden: !collectedFile.downloadUrl }\"\n [attr.data-test-id]=\"testId + '-download'\"\n>\n <qd-icon icon=\"dataDownload\"></qd-icon>\n</a>\n\n@if (!readonly && !viewonly) {\n<qd-icon icon=\"trash\" (click)=\"deleteFile()\" [attr.data-test-id]=\"testId + '-delete'\"></qd-icon>\n}\n", styles: [":host qd-icon{color:#454545;cursor:pointer;font-size:1rem}:host qd-icon:hover,:host qd-icon:focus{color:#171717}:host *+*{margin-left:.5rem}:host .hidden{cursor:none;pointer-events:none;visibility:hidden}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: QdIconComponent, selector: "qd-icon", inputs: ["icon", "status"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
20633
20645
|
}
|
|
20634
20646
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdFileCollectorItemToolsComponent, decorators: [{
|
|
20635
20647
|
type: Component,
|
|
@@ -22114,7 +22126,7 @@ class QdFilterItemDateCategoryComponent {
|
|
|
22114
22126
|
this.item$ = this.filterService.getItemById$(this.filterId, this.categoryIndex, this.itemIndex);
|
|
22115
22127
|
}
|
|
22116
22128
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdFilterItemDateCategoryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
22117
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdFilterItemDateCategoryComponent, isStandalone: false, selector: "qd-filter-category-date", inputs: { filterId: "filterId", categoryIndex: "categoryIndex", timePickerConfig: "timePickerConfig", testId: ["data-test-id", "testId"] }, host: { classAttribute: "qd-filter__category-date" }, ngImport: i0, template: "<span\n class=\"qd-filter__date-label\"\n (click)=\"dateItem.open(); $event.stopPropagation()\"\n [attr.data-test-id]=\"testId + '-label'\"\n>\n {{ this.i18n$ | async | translate }} {{ \"i18n.qd.filter.date.on\" | translate }}\n</span>\n\n<qd-filter-item-date\n #dateItem\n [filterId]=\"filterId\"\n [categoryIndex]=\"categoryIndex\"\n [itemIndex]=\"itemIndex\"\n [data-test-id]=\"testId + '-item'\"\n [timePickerConfig]=\"timePickerConfig\"\n (clickTimePlaceholder)=\"handleClickTimePlaceholder($event)\"\n></qd-filter-item-date>\n\n@if ((item$ | async)?.active && (item$ | async)?.item) {\n<qd-chip\n [close]=\"true\"\n (closeClickEmitter)=\"removeItem($event)\"\n [data]=\"itemIndex\"\n [data-test-id]=\"testId + '-selected-chip-' + (item$ | async).item\"\n>\n {{ (item$ | async).item | localeDate : !!timePickerConfig : timePlaceholderSelected | async }}\n</qd-chip>\n}\n", styles: [":host{display:flex;align-items:center;padding-right:.75rem;padding-left:.75rem;color:#757575;cursor:default;line-height:2.125rem}:host:hover{color:#171717}:host .qd-filter__date-label{cursor:pointer}\n"], dependencies: [{ kind: "component", type: QdChipComponent, selector: "qd-chip", inputs: ["state", "close", "data", "data-test-id"], outputs: ["closeClickEmitter"] }, { kind: "component", type: QdFilterItemDateComponent, selector: "qd-filter-item-date", inputs: ["filterId", "categoryIndex", "itemIndex", "timePickerConfig", "data-test-id"], outputs: ["clickTimePlaceholder"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }, { kind: "pipe", type: LocaleDatePipe, name: "localeDate" }] });
|
|
22129
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdFilterItemDateCategoryComponent, isStandalone: false, selector: "qd-filter-category-date", inputs: { filterId: "filterId", categoryIndex: "categoryIndex", timePickerConfig: "timePickerConfig", testId: ["data-test-id", "testId"] }, host: { classAttribute: "qd-filter__category-date" }, ngImport: i0, template: "<span\n class=\"qd-filter__date-label\"\n (click)=\"dateItem.open(); $event.stopPropagation()\"\n [attr.data-test-id]=\"testId + '-label'\"\n>\n {{ this.i18n$ | async | translate }} {{ \"i18n.qd.filter.date.on\" | translate }}\n</span>\n\n<qd-filter-item-date\n #dateItem\n [filterId]=\"filterId\"\n [categoryIndex]=\"categoryIndex\"\n [itemIndex]=\"itemIndex\"\n [data-test-id]=\"testId + '-item'\"\n [timePickerConfig]=\"timePickerConfig\"\n (clickTimePlaceholder)=\"handleClickTimePlaceholder($event)\"\n></qd-filter-item-date>\n\n@if ((item$ | async)?.active && (item$ | async)?.item) {\n<qd-chip\n [close]=\"true\"\n (closeClickEmitter)=\"removeItem($event)\"\n [data]=\"itemIndex\"\n [data-test-id]=\"testId + '-selected-chip-' + (item$ | async).item\"\n>\n {{ (item$ | async).item | localeDate : !!timePickerConfig : timePlaceholderSelected | async }}\n</qd-chip>\n}\n", styles: [":host{display:flex;align-items:center;padding-right:.75rem;padding-left:.75rem;color:#757575;cursor:default;line-height:2.125rem}:host:hover{color:#171717}:host .qd-filter__date-label{cursor:pointer}\n"], dependencies: [{ kind: "component", type: QdChipComponent, selector: "qd-chip", inputs: ["state", "close", "data", "data-test-id"], outputs: ["closeClickEmitter"] }, { kind: "component", type: QdFilterItemDateComponent, selector: "qd-filter-item-date", inputs: ["filterId", "categoryIndex", "itemIndex", "timePickerConfig", "data-test-id"], outputs: ["clickTimePlaceholder"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }, { kind: "pipe", type: LocaleDatePipe, name: "localeDate" }] });
|
|
22118
22130
|
}
|
|
22119
22131
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdFilterItemDateCategoryComponent, decorators: [{
|
|
22120
22132
|
type: Component,
|
|
@@ -22282,7 +22294,7 @@ class QdFilterItemDateRangeCategoryComponent {
|
|
|
22282
22294
|
this[targetMember] = this.filterService.getItemById$(this.filterId, this.categoryIndex, index);
|
|
22283
22295
|
}
|
|
22284
22296
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdFilterItemDateRangeCategoryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
22285
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdFilterItemDateRangeCategoryComponent, isStandalone: false, selector: "qd-filter-category-date-range", inputs: { filterId: "filterId", categoryIndex: "categoryIndex", testId: ["data-test-id", "testId"], timePickerConfig: "timePickerConfig" }, host: { classAttribute: "qd-filter__category-date-range" }, ngImport: i0, template: "{{ this.i18n$ | async | translate }}\n\n<span class=\"qd-filter__date-range__group\">\n <span class=\"qd-filter__item-date-range__label\" (click)=\"openItem(fromItemRef, $event)\">{{\n \"i18n.qd.filter.dateRange.from\" | translate\n }}</span>\n\n <qd-filter-item-date-range\n #fromItemRef\n [filterId]=\"filterId\"\n [categoryIndex]=\"categoryIndex\"\n [itemIndex]=\"fromItemIndex\"\n [data-test-id]=\"testId + '-item-date-from'\"\n [timePickerConfig]=\"fromItemTimePickerConfig\"\n (clickTimePlaceholder)=\"handleFromTimePlaceholderClicked($event)\"\n ></qd-filter-item-date-range>\n\n @if ((fromItem$ | async)?.active && (fromItem$ | async)?.item) {\n <qd-chip\n [close]=\"true\"\n (closeClickEmitter)=\"removeItem($event)\"\n [data]=\"fromItemIndex\"\n [data-test-id]=\"testId + '-selected-chip-' + (fromItem$ | async).item\"\n >\n {{ (fromItem$ | async).item | localeDate : !!timePickerConfig : fromItemTimePlaceholderClicked | async }}\n </qd-chip>\n }\n</span>\n\n<span class=\"qd-filter__date-range__group\">\n <span class=\"qd-filter__item-date-range__label\" (click)=\"openItem(untilItemRef, $event)\">{{\n \"i18n.qd.filter.dateRange.until\" | translate\n }}</span>\n\n <qd-filter-item-date-range\n #untilItemRef\n [filterId]=\"filterId\"\n [categoryIndex]=\"categoryIndex\"\n [itemIndex]=\"untilItemIndex\"\n [data-test-id]=\"testId + '-item-date-until'\"\n [timePickerConfig]=\"untilItemTimePickerConfig\"\n (clickTimePlaceholder)=\"handleUntilTimePlaceholderClicked($event)\"\n ></qd-filter-item-date-range>\n\n @if ((untilItem$ | async)?.active && (untilItem$ | async)?.item) {\n <qd-chip\n [close]=\"true\"\n (closeClickEmitter)=\"removeItem($event)\"\n [data]=\"untilItemIndex\"\n [data-test-id]=\"testId + '-selected-chip-' + (untilItem$ | async).item\"\n >\n {{ (untilItem$ | async).item | localeDate : !!timePickerConfig : untilItemTimePlaceholderClicked | async }}\n </qd-chip>\n }\n</span>\n", styles: [":host{display:flex;flex-wrap:wrap;align-items:center;padding-right:.75rem;padding-left:.75rem;color:#757575;cursor:default;line-height:2.125rem}:host:hover{color:#171717}:host .qd-filter__item-date-range__label{margin-left:.25rem;cursor:pointer}:host .qd-filter__date-range__group{display:flex;align-items:center}\n"], dependencies: [{ kind: "component", type: QdChipComponent, selector: "qd-chip", inputs: ["state", "close", "data", "data-test-id"], outputs: ["closeClickEmitter"] }, { kind: "component", type: QdFilterItemDateRangeComponent, selector: "qd-filter-item-date-range", inputs: ["filterId", "categoryIndex", "itemIndex", "timePickerConfig", "data-test-id"], outputs: ["clickTimePlaceholder"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }, { kind: "pipe", type: LocaleDatePipe, name: "localeDate" }] });
|
|
22297
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdFilterItemDateRangeCategoryComponent, isStandalone: false, selector: "qd-filter-category-date-range", inputs: { filterId: "filterId", categoryIndex: "categoryIndex", testId: ["data-test-id", "testId"], timePickerConfig: "timePickerConfig" }, host: { classAttribute: "qd-filter__category-date-range" }, ngImport: i0, template: "{{ this.i18n$ | async | translate }}\n\n<span class=\"qd-filter__date-range__group\">\n <span class=\"qd-filter__item-date-range__label\" (click)=\"openItem(fromItemRef, $event)\">{{\n \"i18n.qd.filter.dateRange.from\" | translate\n }}</span>\n\n <qd-filter-item-date-range\n #fromItemRef\n [filterId]=\"filterId\"\n [categoryIndex]=\"categoryIndex\"\n [itemIndex]=\"fromItemIndex\"\n [data-test-id]=\"testId + '-item-date-from'\"\n [timePickerConfig]=\"fromItemTimePickerConfig\"\n (clickTimePlaceholder)=\"handleFromTimePlaceholderClicked($event)\"\n ></qd-filter-item-date-range>\n\n @if ((fromItem$ | async)?.active && (fromItem$ | async)?.item) {\n <qd-chip\n [close]=\"true\"\n (closeClickEmitter)=\"removeItem($event)\"\n [data]=\"fromItemIndex\"\n [data-test-id]=\"testId + '-selected-chip-' + (fromItem$ | async).item\"\n >\n {{ (fromItem$ | async).item | localeDate : !!timePickerConfig : fromItemTimePlaceholderClicked | async }}\n </qd-chip>\n }\n</span>\n\n<span class=\"qd-filter__date-range__group\">\n <span class=\"qd-filter__item-date-range__label\" (click)=\"openItem(untilItemRef, $event)\">{{\n \"i18n.qd.filter.dateRange.until\" | translate\n }}</span>\n\n <qd-filter-item-date-range\n #untilItemRef\n [filterId]=\"filterId\"\n [categoryIndex]=\"categoryIndex\"\n [itemIndex]=\"untilItemIndex\"\n [data-test-id]=\"testId + '-item-date-until'\"\n [timePickerConfig]=\"untilItemTimePickerConfig\"\n (clickTimePlaceholder)=\"handleUntilTimePlaceholderClicked($event)\"\n ></qd-filter-item-date-range>\n\n @if ((untilItem$ | async)?.active && (untilItem$ | async)?.item) {\n <qd-chip\n [close]=\"true\"\n (closeClickEmitter)=\"removeItem($event)\"\n [data]=\"untilItemIndex\"\n [data-test-id]=\"testId + '-selected-chip-' + (untilItem$ | async).item\"\n >\n {{ (untilItem$ | async).item | localeDate : !!timePickerConfig : untilItemTimePlaceholderClicked | async }}\n </qd-chip>\n }\n</span>\n", styles: [":host{display:flex;flex-wrap:wrap;align-items:center;padding-right:.75rem;padding-left:.75rem;color:#757575;cursor:default;line-height:2.125rem}:host:hover{color:#171717}:host .qd-filter__item-date-range__label{margin-left:.25rem;cursor:pointer}:host .qd-filter__date-range__group{display:flex;align-items:center}\n"], dependencies: [{ kind: "component", type: QdChipComponent, selector: "qd-chip", inputs: ["state", "close", "data", "data-test-id"], outputs: ["closeClickEmitter"] }, { kind: "component", type: QdFilterItemDateRangeComponent, selector: "qd-filter-item-date-range", inputs: ["filterId", "categoryIndex", "itemIndex", "timePickerConfig", "data-test-id"], outputs: ["clickTimePlaceholder"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }, { kind: "pipe", type: LocaleDatePipe, name: "localeDate" }] });
|
|
22286
22298
|
}
|
|
22287
22299
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdFilterItemDateRangeCategoryComponent, decorators: [{
|
|
22288
22300
|
type: Component,
|
|
@@ -22838,7 +22850,7 @@ class QdFilterItemSelectCategoryComponent {
|
|
|
22838
22850
|
provide: QD_FILTER_LISTBOX_HOST,
|
|
22839
22851
|
useExisting: forwardRef(() => QdFilterItemSelectCategoryComponent)
|
|
22840
22852
|
}
|
|
22841
|
-
], 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.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.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
22853
|
+
], 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 });
|
|
22842
22854
|
}
|
|
22843
22855
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdFilterItemSelectCategoryComponent, decorators: [{
|
|
22844
22856
|
type: Component,
|
|
@@ -23471,7 +23483,7 @@ class QdFilterComponent {
|
|
|
23471
23483
|
});
|
|
23472
23484
|
}
|
|
23473
23485
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdFilterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
23474
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdFilterComponent, isStandalone: false, selector: "qd-filter", inputs: { filterData: "filterData", testId: ["data-test-id", "testId"] }, outputs: { queryStringOutput: "queryStringOutput", postBodyOutput: "postBodyOutput", valueChange: "valueChange" }, host: { properties: { "attr.data-test-id": "this.dataTestId" }, classAttribute: "qd-filter" }, providers: [QdDependentFiltersService, QdFilterRouterConnectorService], viewQueries: [{ propertyName: "filterCategory", predicate: i0.forwardRef(() => QdFilterCategoryComponent), descendants: true }], usesOnChanges: true, ngImport: i0, template: "@if ((categories$ | async)?.length > 0) { @for (category of categories$ | async; track category; let last = $last; let\nlength = $count; let categoryIndex = $index) {\n<qd-filter-category\n [filterId]=\"filterId\"\n [isInstantFiltering]=\"isInstantFiltering\"\n [categoryIndex]=\"categoryIndex\"\n [lastCategory]=\"last\"\n [data-test-id]=\"testId + '-category-' + categoryIndex + '-' + category\"\n></qd-filter-category>\n} @if (!isInstantFiltering) {\n<div [class]=\"'qd-filter__action-buttons'\">\n <button\n qdButton\n qdButtonLink\n [disabled]=\"disableFilterButton$ | async\"\n (click)=\"clickFilter()\"\n [color]=\"'primary'\"\n [data-test-id]=\"testId + '-submit-button'\"\n >\n {{ \"i18n.qd.container.toolbar.filter.filter\" | translate }}\n </button>\n <button\n qdButton\n qdButtonLink\n [disabled]=\"disableResetButton$ | async\"\n (click)=\"resetFilter()\"\n [color]=\"'secondary'\"\n [data-test-id]=\"testId + '-reset-button'\"\n >\n {{\n ((hasPreselection$ | async)\n ? \"i18n.qd.container.toolbar.filter.backToPreSelect\"\n : \"i18n.qd.container.toolbar.filter.reset\"\n ) | translate\n }}\n </button>\n</div>\n} }\n", styles: [":host{position:relative;display:flex;flex-wrap:wrap}:host .qd-filter__action-buttons{display:flex;flex-wrap:wrap-reverse}:host ::ng-deep .qd-button{position:relative;margin-bottom:1rem}:host ::ng-deep .qd-button:last-child{margin-left:1rem}\n"], dependencies: [{ kind: "component", type: QdButtonComponent, selector: "button[qdButton], a[qdButton]", inputs: ["disabled", "color", "icon", "data-test-id", "additionalInfo"] }, { kind: "directive", type: QdButtonLinkDirective, selector: "button[qdButtonLink], a[qdButtonLink]" }, { kind: "component", type: QdFilterCategoryComponent, selector: "qd-filter-category", inputs: ["filterId", "isInstantFiltering", "categoryIndex", "lastCategory", "data-test-id"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
23486
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdFilterComponent, isStandalone: false, selector: "qd-filter", inputs: { filterData: "filterData", testId: ["data-test-id", "testId"] }, outputs: { queryStringOutput: "queryStringOutput", postBodyOutput: "postBodyOutput", valueChange: "valueChange" }, host: { properties: { "attr.data-test-id": "this.dataTestId" }, classAttribute: "qd-filter" }, providers: [QdDependentFiltersService, QdFilterRouterConnectorService], viewQueries: [{ propertyName: "filterCategory", predicate: i0.forwardRef(() => QdFilterCategoryComponent), descendants: true }], usesOnChanges: true, ngImport: i0, template: "@if ((categories$ | async)?.length > 0) { @for (category of categories$ | async; track category; let last = $last; let\nlength = $count; let categoryIndex = $index) {\n<qd-filter-category\n [filterId]=\"filterId\"\n [isInstantFiltering]=\"isInstantFiltering\"\n [categoryIndex]=\"categoryIndex\"\n [lastCategory]=\"last\"\n [data-test-id]=\"testId + '-category-' + categoryIndex + '-' + category\"\n></qd-filter-category>\n} @if (!isInstantFiltering) {\n<div [class]=\"'qd-filter__action-buttons'\">\n <button\n qdButton\n qdButtonLink\n [disabled]=\"disableFilterButton$ | async\"\n (click)=\"clickFilter()\"\n [color]=\"'primary'\"\n [data-test-id]=\"testId + '-submit-button'\"\n >\n {{ \"i18n.qd.container.toolbar.filter.filter\" | translate }}\n </button>\n <button\n qdButton\n qdButtonLink\n [disabled]=\"disableResetButton$ | async\"\n (click)=\"resetFilter()\"\n [color]=\"'secondary'\"\n [data-test-id]=\"testId + '-reset-button'\"\n >\n {{\n ((hasPreselection$ | async)\n ? \"i18n.qd.container.toolbar.filter.backToPreSelect\"\n : \"i18n.qd.container.toolbar.filter.reset\"\n ) | translate\n }}\n </button>\n</div>\n} }\n", styles: [":host{position:relative;display:flex;flex-wrap:wrap}:host .qd-filter__action-buttons{display:flex;flex-wrap:wrap-reverse}:host ::ng-deep .qd-button{position:relative;margin-bottom:1rem}:host ::ng-deep .qd-button:last-child{margin-left:1rem}\n"], dependencies: [{ kind: "component", type: QdButtonComponent, selector: "button[qdButton], a[qdButton]", inputs: ["disabled", "color", "icon", "data-test-id", "additionalInfo"] }, { kind: "directive", type: QdButtonLinkDirective, selector: "button[qdButtonLink], a[qdButtonLink]" }, { kind: "component", type: QdFilterCategoryComponent, selector: "qd-filter-category", inputs: ["filterId", "isInstantFiltering", "categoryIndex", "lastCategory", "data-test-id"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
23475
23487
|
}
|
|
23476
23488
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdFilterComponent, decorators: [{
|
|
23477
23489
|
type: Component,
|
|
@@ -23590,7 +23602,7 @@ class QdFilterModule {
|
|
|
23590
23602
|
QdIconModule,
|
|
23591
23603
|
QdPopoverModule,
|
|
23592
23604
|
QdTooltipModule,
|
|
23593
|
-
QdAutofocusModule, i1$
|
|
23605
|
+
QdAutofocusModule, i1$5.StoreFeatureModule], exports: [QdFilterComponent] });
|
|
23594
23606
|
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdFilterModule, imports: [CommonModule,
|
|
23595
23607
|
FormsModule,
|
|
23596
23608
|
TranslateModule,
|
|
@@ -24635,7 +24647,7 @@ function normalizeSearchValue(value) {
|
|
|
24635
24647
|
class QdSearchModule {
|
|
24636
24648
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdSearchModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
24637
24649
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.17", ngImport: i0, type: QdSearchModule, declarations: [QdSearchComponent], imports: [CommonModule,
|
|
24638
|
-
TranslateModule, i1$
|
|
24650
|
+
TranslateModule, i1$5.StoreFeatureModule, QdButtonModule,
|
|
24639
24651
|
QdFormModule,
|
|
24640
24652
|
QdIconModule,
|
|
24641
24653
|
QdTooltipModule], exports: [QdSearchComponent] });
|
|
@@ -25144,64 +25156,96 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
25144
25156
|
type: Injectable
|
|
25145
25157
|
}] });
|
|
25146
25158
|
|
|
25147
|
-
// @ts-strict-ignore
|
|
25148
25159
|
const WHICH_COLUMN_FILLS_WIDTH_DEFAULT = 'main';
|
|
25149
|
-
const
|
|
25160
|
+
const DEBOUNCE_TIME = 10;
|
|
25161
|
+
const COLUMN_MUTATIONS = { childList: true, subtree: true };
|
|
25162
|
+
/**
|
|
25163
|
+
* Lets one table column take the width that the other columns leave over.
|
|
25164
|
+
*
|
|
25165
|
+
* It runs again whenever the table width, the rows or the number of columns
|
|
25166
|
+
* change.
|
|
25167
|
+
*/
|
|
25150
25168
|
class QdTableFillingWidthService {
|
|
25151
25169
|
tableStoreService = inject(QdTableStoreService);
|
|
25152
25170
|
zone = inject(NgZone);
|
|
25171
|
+
injector = inject(Injector);
|
|
25172
|
+
renderRef;
|
|
25153
25173
|
tableComponentElement;
|
|
25154
25174
|
tableConfig;
|
|
25155
|
-
fillingColumnHeadElement;
|
|
25156
|
-
fillingColumnInitialWidth;
|
|
25175
|
+
fillingColumnHeadElement = null;
|
|
25176
|
+
fillingColumnInitialWidth = 0;
|
|
25157
25177
|
fillingColumnCellElements;
|
|
25158
|
-
|
|
25159
|
-
|
|
25178
|
+
resizeObserver;
|
|
25179
|
+
mutationObserver;
|
|
25180
|
+
tableWidth$ = new BehaviorSubject(0);
|
|
25181
|
+
tableNumberOfColumns$ = new BehaviorSubject(0);
|
|
25182
|
+
appliedWidth;
|
|
25160
25183
|
destroyed$ = new Subject();
|
|
25161
25184
|
get whichColumnFillsWidth() {
|
|
25162
25185
|
return this.tableConfig?.whichColumnFillsWidth || WHICH_COLUMN_FILLS_WIDTH_DEFAULT;
|
|
25163
25186
|
}
|
|
25187
|
+
/**
|
|
25188
|
+
* Binds the service to one table and starts watching it.
|
|
25189
|
+
*/
|
|
25164
25190
|
initialize(tableComponentElement, tableConfig) {
|
|
25165
25191
|
this.tableComponentElement = tableComponentElement;
|
|
25166
25192
|
this.tableConfig = tableConfig;
|
|
25167
25193
|
if (this.whichColumnFillsWidth === 'none')
|
|
25168
25194
|
return;
|
|
25169
|
-
|
|
25170
|
-
|
|
25171
|
-
combineLatest([
|
|
25172
|
-
this.observeTableWidth(),
|
|
25173
|
-
// The previous method only detects changes of the widened table width that can be caused by window resizing or
|
|
25174
|
-
// opening of a side panel for example. After a change of the table data the remaining width is checked again
|
|
25175
|
-
// because it can cause a change of the shrunken table width even if the widened table width is unchanged.
|
|
25176
|
-
this.observeTableData(),
|
|
25177
|
-
// Check remaining width again when columns are merged by the responsive row service when breakpoints are exceeded
|
|
25178
|
-
// as specified in the columnMapping config.
|
|
25179
|
-
this.observeTableNumberOfColumns()
|
|
25180
|
-
])
|
|
25181
|
-
.pipe(debounceTime(10)) // handle consecutive emissions once together
|
|
25195
|
+
combineLatest([this.observeTableWidth(), this.observeTableData(), this.observeTableNumberOfColumns()])
|
|
25196
|
+
.pipe(debounceTime(DEBOUNCE_TIME), takeUntil(this.destroyed$))
|
|
25182
25197
|
.subscribe(() => this.fillRemainingWidth());
|
|
25183
25198
|
}
|
|
25199
|
+
/**
|
|
25200
|
+
* Applies a new table config and starts over.
|
|
25201
|
+
*/
|
|
25202
|
+
updateTableConfig(tableConfig) {
|
|
25203
|
+
this.tableConfig = tableConfig;
|
|
25204
|
+
this.reinitialize();
|
|
25205
|
+
}
|
|
25206
|
+
/**
|
|
25207
|
+
* Stops watching the table and drops the styles the service applied.
|
|
25208
|
+
*/
|
|
25209
|
+
destroy() {
|
|
25210
|
+
this.clearSubscriptions();
|
|
25211
|
+
}
|
|
25184
25212
|
fillRemainingWidth() {
|
|
25185
25213
|
this.fillingColumnHeadElement = this.getFillingColumnHeadElement();
|
|
25186
25214
|
if (!this.fillingColumnHeadElement)
|
|
25187
25215
|
return;
|
|
25216
|
+
this.pauseObservers();
|
|
25188
25217
|
this.fillingColumnInitialWidth = this.fillingColumnHeadElement.getBoundingClientRect().width;
|
|
25189
25218
|
this.resetStyles();
|
|
25190
25219
|
const tableRemainingWidth = this.getTableRemainingWidthAfterFilling();
|
|
25191
|
-
|
|
25192
|
-
|
|
25193
|
-
|
|
25194
|
-
|
|
25195
|
-
|
|
25196
|
-
|
|
25220
|
+
this.tableComponentElement.classList.toggle('table-has-remaining-width', tableRemainingWidth > 0);
|
|
25221
|
+
this.fillRightAlignedColumn(tableRemainingWidth);
|
|
25222
|
+
this.appliedWidth = this.getTableWidth();
|
|
25223
|
+
this.resumeObservers();
|
|
25224
|
+
}
|
|
25225
|
+
fillRightAlignedColumn(tableRemainingWidth) {
|
|
25197
25226
|
const fillingColumnCellElement = this.getFillingColumnCellElement();
|
|
25198
|
-
if (fillingColumnCellElement
|
|
25199
|
-
|
|
25200
|
-
|
|
25201
|
-
|
|
25202
|
-
|
|
25203
|
-
|
|
25204
|
-
|
|
25227
|
+
if (!fillingColumnCellElement)
|
|
25228
|
+
return;
|
|
25229
|
+
if (getComputedStyle(fillingColumnCellElement).textAlign !== 'right')
|
|
25230
|
+
return;
|
|
25231
|
+
this.tableComponentElement.classList.add('table-has-right-aligned-filling-column');
|
|
25232
|
+
this.fillRemainingWidthWithPaddingRight(tableRemainingWidth, fillingColumnCellElement);
|
|
25233
|
+
}
|
|
25234
|
+
pauseObservers() {
|
|
25235
|
+
this.resizeObserver?.disconnect();
|
|
25236
|
+
this.mutationObserver?.disconnect();
|
|
25237
|
+
}
|
|
25238
|
+
resumeObservers() {
|
|
25239
|
+
this.zone.runOutsideAngular(() => {
|
|
25240
|
+
requestAnimationFrame(() => {
|
|
25241
|
+
if (!this.tableComponentElement)
|
|
25242
|
+
return;
|
|
25243
|
+
this.resizeObserver?.observe(this.tableComponentElement);
|
|
25244
|
+
this.mutationObserver?.observe(this.tableComponentElement, COLUMN_MUTATIONS);
|
|
25245
|
+
this.reportTableWidth();
|
|
25246
|
+
this.reportNumberOfColumns();
|
|
25247
|
+
});
|
|
25248
|
+
});
|
|
25205
25249
|
}
|
|
25206
25250
|
getFillingColumnHeadElement() {
|
|
25207
25251
|
return this.tableComponentElement.querySelector(`tr:first-child > th.${this.whichColumnFillsWidth}-column`);
|
|
@@ -25212,16 +25256,15 @@ class QdTableFillingWidthService {
|
|
|
25212
25256
|
getFillingColumnCellElement() {
|
|
25213
25257
|
return this.getFillingColumnCellElements()[0];
|
|
25214
25258
|
}
|
|
25215
|
-
fillRemainingWidthWithPaddingRight(tableRemainingWidth) {
|
|
25259
|
+
fillRemainingWidthWithPaddingRight(tableRemainingWidth, referenceCell) {
|
|
25216
25260
|
this.fillingColumnCellElements = this.getFillingColumnCellElements();
|
|
25217
|
-
const
|
|
25218
|
-
const fillingColumnPaddingRightPercentage = ((parseInt(getComputedStyle(fillingColumnCellElement).paddingRight || '0px') + tableRemainingWidth) /
|
|
25261
|
+
const fillingColumnPaddingRightPercentage = ((parseInt(getComputedStyle(referenceCell).paddingRight || '0px', 10) + tableRemainingWidth) /
|
|
25219
25262
|
this.tableComponentElement.getBoundingClientRect().width) *
|
|
25220
25263
|
100;
|
|
25221
|
-
const fillingColumnWidth = this.fillingColumnInitialWidth + tableRemainingWidth;
|
|
25222
|
-
|
|
25223
|
-
|
|
25224
|
-
|
|
25264
|
+
const fillingColumnWidth = this.fillingColumnInitialWidth + tableRemainingWidth;
|
|
25265
|
+
this.fillingColumnCellElements.forEach(cell => {
|
|
25266
|
+
cell.style.width = `${fillingColumnWidth}px`;
|
|
25267
|
+
cell.style.paddingRight = `${fillingColumnPaddingRightPercentage}%`;
|
|
25225
25268
|
});
|
|
25226
25269
|
}
|
|
25227
25270
|
getTableRemainingWidthAfterFilling() {
|
|
@@ -25234,72 +25277,65 @@ class QdTableFillingWidthService {
|
|
|
25234
25277
|
this.tableComponentElement.classList.remove('table-has-remaining-width');
|
|
25235
25278
|
this.tableComponentElement.classList.remove('table-has-right-aligned-filling-column');
|
|
25236
25279
|
this.tableComponentElement.removeAttribute('style');
|
|
25237
|
-
|
|
25238
|
-
[].forEach.call(this.fillingColumnCellElements, fillingColumnCellElement => {
|
|
25239
|
-
fillingColumnCellElement.removeAttribute('style');
|
|
25240
|
-
});
|
|
25241
|
-
}
|
|
25280
|
+
this.fillingColumnCellElements?.forEach(cell => cell.removeAttribute('style'));
|
|
25242
25281
|
}
|
|
25243
25282
|
observeTableWidth() {
|
|
25244
|
-
|
|
25283
|
+
this.tableWidth$ = new BehaviorSubject(this.getTableWidth());
|
|
25245
25284
|
this.zone.runOutsideAngular(() => {
|
|
25246
|
-
this.
|
|
25247
|
-
|
|
25248
|
-
}, OBSERVE_INTERVAL_TIME);
|
|
25285
|
+
this.resizeObserver = new ResizeObserver(() => this.reportTableWidth());
|
|
25286
|
+
this.resizeObserver.observe(this.tableComponentElement);
|
|
25249
25287
|
});
|
|
25250
|
-
return tableWidth$.pipe(distinctUntilChanged());
|
|
25288
|
+
return this.tableWidth$.pipe(distinctUntilChanged());
|
|
25289
|
+
}
|
|
25290
|
+
reportTableWidth() {
|
|
25291
|
+
const tableWidth = this.getTableWidth();
|
|
25292
|
+
if (tableWidth === this.appliedWidth)
|
|
25293
|
+
return;
|
|
25294
|
+
this.tableWidth$.next(tableWidth);
|
|
25251
25295
|
}
|
|
25252
25296
|
getTableWidth() {
|
|
25253
25297
|
return this.tableComponentElement.getBoundingClientRect().width;
|
|
25254
25298
|
}
|
|
25255
25299
|
observeTableNumberOfColumns() {
|
|
25256
|
-
|
|
25300
|
+
this.tableNumberOfColumns$ = new BehaviorSubject(this.getNumberOfColumns());
|
|
25257
25301
|
this.zone.runOutsideAngular(() => {
|
|
25258
|
-
this.
|
|
25259
|
-
|
|
25260
|
-
}, OBSERVE_INTERVAL_TIME);
|
|
25302
|
+
this.mutationObserver = new MutationObserver(() => this.reportNumberOfColumns());
|
|
25303
|
+
this.mutationObserver.observe(this.tableComponentElement, COLUMN_MUTATIONS);
|
|
25261
25304
|
});
|
|
25262
|
-
return tableNumberOfColumns$.pipe(distinctUntilChanged());
|
|
25305
|
+
return this.tableNumberOfColumns$.pipe(distinctUntilChanged());
|
|
25306
|
+
}
|
|
25307
|
+
reportNumberOfColumns() {
|
|
25308
|
+
this.tableNumberOfColumns$.next(this.getNumberOfColumns());
|
|
25263
25309
|
}
|
|
25264
25310
|
getNumberOfColumns() {
|
|
25265
25311
|
return this.tableComponentElement.querySelectorAll('tr:first-child > th').length;
|
|
25266
25312
|
}
|
|
25267
25313
|
observeTableData() {
|
|
25268
25314
|
const tableData$ = new ReplaySubject(1);
|
|
25269
|
-
// emit current table data directly
|
|
25270
25315
|
this.tableStoreService
|
|
25271
25316
|
.tableDataEntries$()
|
|
25272
25317
|
.pipe(take(1), takeUntil(this.destroyed$))
|
|
25273
25318
|
.subscribe(data => tableData$.next(data));
|
|
25274
|
-
// emit table data changes multiple times delayed because we don't know when the DOM is updated
|
|
25275
25319
|
this.tableStoreService
|
|
25276
25320
|
.tableDataEntries$()
|
|
25277
25321
|
.pipe(skip(1), takeUntil(this.destroyed$))
|
|
25278
25322
|
.subscribe(data => {
|
|
25279
|
-
|
|
25280
|
-
|
|
25281
|
-
|
|
25323
|
+
this.renderRef?.destroy();
|
|
25324
|
+
this.renderRef = afterNextRender(() => this.zone.runOutsideAngular(() => tableData$.next(data)), {
|
|
25325
|
+
injector: this.injector
|
|
25326
|
+
});
|
|
25282
25327
|
});
|
|
25283
25328
|
return tableData$;
|
|
25284
25329
|
}
|
|
25285
|
-
updateTableConfig(tableConfig) {
|
|
25286
|
-
this.tableConfig = tableConfig;
|
|
25287
|
-
this.reinitialize();
|
|
25288
|
-
}
|
|
25289
25330
|
reinitialize() {
|
|
25290
25331
|
this.clearSubscriptions();
|
|
25291
25332
|
this.resetStyles();
|
|
25292
25333
|
this.initialize(this.tableComponentElement, this.tableConfig);
|
|
25293
25334
|
}
|
|
25294
25335
|
clearSubscriptions() {
|
|
25295
|
-
this.destroyed$.next(
|
|
25296
|
-
|
|
25297
|
-
|
|
25298
|
-
if (this.tableNumberOfColumnsInterval)
|
|
25299
|
-
clearInterval(this.tableNumberOfColumnsInterval);
|
|
25300
|
-
}
|
|
25301
|
-
destroy() {
|
|
25302
|
-
this.clearSubscriptions();
|
|
25336
|
+
this.destroyed$.next();
|
|
25337
|
+
this.renderRef?.destroy();
|
|
25338
|
+
this.pauseObservers();
|
|
25303
25339
|
}
|
|
25304
25340
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdTableFillingWidthService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
25305
25341
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdTableFillingWidthService });
|
|
@@ -25308,8 +25344,355 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
25308
25344
|
type: Injectable
|
|
25309
25345
|
}] });
|
|
25310
25346
|
|
|
25347
|
+
const MIN_TRAVEL_DURATION_MS = 180;
|
|
25348
|
+
const MAX_TRAVEL_DURATION_MS = 420;
|
|
25349
|
+
const FULL_SPEED_DISTANCE_PX = 1200;
|
|
25350
|
+
const EASE_MIDPOINT = 0.5;
|
|
25351
|
+
/**
|
|
25352
|
+
* Returns the height a table has to keep so the browser cannot clamp the scroll
|
|
25353
|
+
* position. Zero means there is nothing to keep.
|
|
25354
|
+
*/
|
|
25355
|
+
function qdCalculateScrollReserve(previousScrollTop, naturalScrollHeight, clientHeight) {
|
|
25356
|
+
return Math.max(0, previousScrollTop - Math.max(0, naturalScrollHeight - clientHeight));
|
|
25357
|
+
}
|
|
25358
|
+
/**
|
|
25359
|
+
* Returns the scroll position that puts the anchor flush with the lower border
|
|
25360
|
+
* of its container, never beyond what the container can actually scroll.
|
|
25361
|
+
*/
|
|
25362
|
+
function qdCalculateTravelTarget(currentScrollTop, anchorBottom, containerBottom, naturalMaxScrollTop) {
|
|
25363
|
+
const wanted = currentScrollTop + (anchorBottom - containerBottom);
|
|
25364
|
+
return Math.min(naturalMaxScrollTop, Math.max(0, wanted));
|
|
25365
|
+
}
|
|
25366
|
+
/**
|
|
25367
|
+
* Returns how long a travel over the given distance should take.
|
|
25368
|
+
*/
|
|
25369
|
+
function qdCalculateTravelDuration(distance) {
|
|
25370
|
+
const share = Math.min(1, Math.abs(distance) / FULL_SPEED_DISTANCE_PX);
|
|
25371
|
+
return MIN_TRAVEL_DURATION_MS + share * (MAX_TRAVEL_DURATION_MS - MIN_TRAVEL_DURATION_MS);
|
|
25372
|
+
}
|
|
25373
|
+
/**
|
|
25374
|
+
* Eases into the movement and out of it again.
|
|
25375
|
+
*/
|
|
25376
|
+
function qdEaseInOutCubic(progress) {
|
|
25377
|
+
if (progress < EASE_MIDPOINT)
|
|
25378
|
+
return 4 * progress * progress * progress;
|
|
25379
|
+
return 1 - Math.pow(-2 * progress + 2, 3) / 2;
|
|
25380
|
+
}
|
|
25381
|
+
|
|
25382
|
+
const SCROLLABLE_OVERFLOW = ['auto', 'scroll'];
|
|
25383
|
+
const REDUCED_MOTION_QUERY = '(prefers-reduced-motion: reduce)';
|
|
25384
|
+
const FOREIGN_SCROLL_TOLERANCE_PX = 2;
|
|
25385
|
+
const SETTLE_FRAMES = 2;
|
|
25386
|
+
const MAX_SETTLE_FRAMES = 120;
|
|
25387
|
+
const USER_SCROLL_EVENTS = ['wheel', 'touchmove'];
|
|
25388
|
+
/**
|
|
25389
|
+
* Keeps a table from jumping when a new page is shorter than the old one.
|
|
25390
|
+
*
|
|
25391
|
+
* The service holds back the height the new page is missing, so the browser
|
|
25392
|
+
* cannot pull the scroll position up. It gives that height back over a few
|
|
25393
|
+
* frames, and after a page change by the user the view rides along to the
|
|
25394
|
+
* pagination.
|
|
25395
|
+
*
|
|
25396
|
+
* #### Notes & Best Practices:
|
|
25397
|
+
* * The target is measured again in every frame. A table that is still settling
|
|
25398
|
+
* would otherwise leave the view short of the pagination.
|
|
25399
|
+
* * Any scroll the service did not write itself ends the movement at once.
|
|
25400
|
+
*/
|
|
25401
|
+
class QdTableScrollAnchorService {
|
|
25402
|
+
_zone = inject(NgZone);
|
|
25403
|
+
_tableStoreService = inject(QdTableStoreService);
|
|
25404
|
+
_destroyRef = inject(DestroyRef);
|
|
25405
|
+
_target;
|
|
25406
|
+
_anchorElement;
|
|
25407
|
+
_snapshotScrollTop = 0;
|
|
25408
|
+
_neededReserve = 0;
|
|
25409
|
+
_dataChangePending = false;
|
|
25410
|
+
_reserve = 0;
|
|
25411
|
+
_travelRequested = false;
|
|
25412
|
+
_heightAtRequest;
|
|
25413
|
+
_settleFrame;
|
|
25414
|
+
_travelFrame;
|
|
25415
|
+
_lastWrittenScrollTop = 0;
|
|
25416
|
+
_onUserScroll = () => this.stopForUser();
|
|
25417
|
+
_onContainerScroll = () => {
|
|
25418
|
+
this.checkForeignScroll();
|
|
25419
|
+
this.takeSnapshot();
|
|
25420
|
+
};
|
|
25421
|
+
/**
|
|
25422
|
+
* Binds the service to one table. Later calls are ignored.
|
|
25423
|
+
*/
|
|
25424
|
+
initialize(hostElement, tableElement) {
|
|
25425
|
+
if (this._target)
|
|
25426
|
+
return;
|
|
25427
|
+
this.bindTarget(hostElement, tableElement);
|
|
25428
|
+
this.listenForUserScroll();
|
|
25429
|
+
this._tableStoreService
|
|
25430
|
+
.tableDataEntries$()
|
|
25431
|
+
.pipe(takeUntilDestroyed(this._destroyRef))
|
|
25432
|
+
.subscribe(() => this.prepareForDataChange());
|
|
25433
|
+
}
|
|
25434
|
+
/**
|
|
25435
|
+
* Names the element the view should end up at. Without one the table itself is used.
|
|
25436
|
+
*/
|
|
25437
|
+
setAnchor(element) {
|
|
25438
|
+
this._anchorElement = element;
|
|
25439
|
+
}
|
|
25440
|
+
/**
|
|
25441
|
+
* Remembers where the view stands before the rows are exchanged.
|
|
25442
|
+
*/
|
|
25443
|
+
takeSnapshot() {
|
|
25444
|
+
if (this.isBusy())
|
|
25445
|
+
return;
|
|
25446
|
+
this._snapshotScrollTop = this.getContainerScrollTop();
|
|
25447
|
+
}
|
|
25448
|
+
/**
|
|
25449
|
+
* Announces that new rows are about to be rendered.
|
|
25450
|
+
*/
|
|
25451
|
+
prepareForDataChange() {
|
|
25452
|
+
this._dataChangePending = true;
|
|
25453
|
+
}
|
|
25454
|
+
/**
|
|
25455
|
+
* Announces that the user asked for a new page, so the view should follow.
|
|
25456
|
+
*/
|
|
25457
|
+
requestTravel() {
|
|
25458
|
+
this.stopTravel();
|
|
25459
|
+
this._travelRequested = true;
|
|
25460
|
+
this._heightAtRequest = this.getNaturalScrollHeight();
|
|
25461
|
+
this.takeSnapshot();
|
|
25462
|
+
this.startAfterLayoutSettled();
|
|
25463
|
+
}
|
|
25464
|
+
/**
|
|
25465
|
+
* Measures how much height the new page is missing.
|
|
25466
|
+
*
|
|
25467
|
+
* Call this from a render phase that may read from the DOM.
|
|
25468
|
+
*/
|
|
25469
|
+
measureLayoutChange() {
|
|
25470
|
+
if (!this._dataChangePending)
|
|
25471
|
+
return;
|
|
25472
|
+
this._neededReserve = this.calculateReserve();
|
|
25473
|
+
}
|
|
25474
|
+
/**
|
|
25475
|
+
* Applies the measured reserve and puts the view back where it was.
|
|
25476
|
+
*/
|
|
25477
|
+
catchLayoutChange() {
|
|
25478
|
+
if (!this._dataChangePending)
|
|
25479
|
+
return;
|
|
25480
|
+
this._dataChangePending = false;
|
|
25481
|
+
this.applyReserve(this._neededReserve);
|
|
25482
|
+
this.restoreSnapshot();
|
|
25483
|
+
this.startAfterLayoutSettled();
|
|
25484
|
+
}
|
|
25485
|
+
/**
|
|
25486
|
+
* Gives the held height back at once, without moving the view.
|
|
25487
|
+
*/
|
|
25488
|
+
release() {
|
|
25489
|
+
this.stopTravel();
|
|
25490
|
+
this._travelRequested = false;
|
|
25491
|
+
this.applyReserve(0);
|
|
25492
|
+
}
|
|
25493
|
+
/**
|
|
25494
|
+
* Releases the held height and stops listening.
|
|
25495
|
+
*/
|
|
25496
|
+
destroy() {
|
|
25497
|
+
this.release();
|
|
25498
|
+
this.stopListening();
|
|
25499
|
+
}
|
|
25500
|
+
bindTarget(hostElement, tableElement) {
|
|
25501
|
+
const container = this.findScrollContainer(hostElement);
|
|
25502
|
+
if (!container)
|
|
25503
|
+
return;
|
|
25504
|
+
this._target = { container, table: tableElement, host: hostElement };
|
|
25505
|
+
}
|
|
25506
|
+
isBusy() {
|
|
25507
|
+
return this._travelFrame !== undefined;
|
|
25508
|
+
}
|
|
25509
|
+
calculateReserve() {
|
|
25510
|
+
if (!this._target)
|
|
25511
|
+
return 0;
|
|
25512
|
+
return qdCalculateScrollReserve(this._snapshotScrollTop, this.getNaturalScrollHeight(), this._target.container.clientHeight);
|
|
25513
|
+
}
|
|
25514
|
+
restoreSnapshot() {
|
|
25515
|
+
if (!this._reserve)
|
|
25516
|
+
return;
|
|
25517
|
+
this.writeScrollTop(this._snapshotScrollTop);
|
|
25518
|
+
}
|
|
25519
|
+
startAfterLayoutSettled() {
|
|
25520
|
+
if (this.hasPendingFrame())
|
|
25521
|
+
return;
|
|
25522
|
+
this._settleFrame = requestAnimationFrame(this.createSettleStep());
|
|
25523
|
+
}
|
|
25524
|
+
hasPendingFrame() {
|
|
25525
|
+
return this._settleFrame !== undefined || this._travelFrame !== undefined;
|
|
25526
|
+
}
|
|
25527
|
+
createSettleStep() {
|
|
25528
|
+
let previousHeight = Number.NaN;
|
|
25529
|
+
let stableFrames = 0;
|
|
25530
|
+
let seenFrames = 0;
|
|
25531
|
+
const step = () => {
|
|
25532
|
+
const height = this.getNaturalScrollHeight();
|
|
25533
|
+
stableFrames = height === previousHeight ? stableFrames + 1 : 0;
|
|
25534
|
+
previousHeight = height;
|
|
25535
|
+
seenFrames++;
|
|
25536
|
+
if (this.hasSettled(height, stableFrames, seenFrames))
|
|
25537
|
+
return this.startTravel();
|
|
25538
|
+
this._settleFrame = requestAnimationFrame(step);
|
|
25539
|
+
};
|
|
25540
|
+
return step;
|
|
25541
|
+
}
|
|
25542
|
+
hasSettled(height, stableFrames, seenFrames) {
|
|
25543
|
+
if (seenFrames >= MAX_SETTLE_FRAMES)
|
|
25544
|
+
return true;
|
|
25545
|
+
return stableFrames >= SETTLE_FRAMES && this.hasHeightChanged(height);
|
|
25546
|
+
}
|
|
25547
|
+
hasHeightChanged(height) {
|
|
25548
|
+
return this._heightAtRequest === undefined || height !== this._heightAtRequest;
|
|
25549
|
+
}
|
|
25550
|
+
startTravel() {
|
|
25551
|
+
this._settleFrame = undefined;
|
|
25552
|
+
const run = this.planTravel();
|
|
25553
|
+
this._travelRequested = false;
|
|
25554
|
+
this._heightAtRequest = undefined;
|
|
25555
|
+
this._travelFrame = requestAnimationFrame(this.createTravelStep(run));
|
|
25556
|
+
}
|
|
25557
|
+
planTravel() {
|
|
25558
|
+
const start = this.getContainerScrollTop();
|
|
25559
|
+
const target = this.getTravelTarget(start);
|
|
25560
|
+
return {
|
|
25561
|
+
start,
|
|
25562
|
+
target,
|
|
25563
|
+
reserveStart: this._reserve,
|
|
25564
|
+
duration: this.isReducedMotion() ? 0 : qdCalculateTravelDuration(Math.abs(target - start)),
|
|
25565
|
+
followsAnchor: this._travelRequested
|
|
25566
|
+
};
|
|
25567
|
+
}
|
|
25568
|
+
getTravelTarget(start) {
|
|
25569
|
+
if (!this._travelRequested)
|
|
25570
|
+
return Math.min(start, this.getNaturalMaxScrollTop());
|
|
25571
|
+
return this.getAnchorTarget(start);
|
|
25572
|
+
}
|
|
25573
|
+
createTravelStep(run) {
|
|
25574
|
+
let startedAt;
|
|
25575
|
+
const step = (timestamp) => {
|
|
25576
|
+
startedAt = startedAt ?? timestamp;
|
|
25577
|
+
const eased = qdEaseInOutCubic(this.getProgress(run, timestamp - startedAt));
|
|
25578
|
+
this.applyReserve(Math.round(run.reserveStart * (1 - eased)));
|
|
25579
|
+
this.writeScrollTop(run.start + (this.getLiveTarget(run) - run.start) * eased);
|
|
25580
|
+
if (eased >= 1)
|
|
25581
|
+
return this.finishTravel();
|
|
25582
|
+
this._travelFrame = requestAnimationFrame(step);
|
|
25583
|
+
};
|
|
25584
|
+
return step;
|
|
25585
|
+
}
|
|
25586
|
+
getLiveTarget(run) {
|
|
25587
|
+
if (!run.followsAnchor)
|
|
25588
|
+
return run.target;
|
|
25589
|
+
return this.getAnchorTarget(this.getContainerScrollTop());
|
|
25590
|
+
}
|
|
25591
|
+
getProgress(run, elapsed) {
|
|
25592
|
+
if (!run.duration)
|
|
25593
|
+
return 1;
|
|
25594
|
+
return Math.min(1, elapsed / run.duration);
|
|
25595
|
+
}
|
|
25596
|
+
finishTravel() {
|
|
25597
|
+
this._travelFrame = undefined;
|
|
25598
|
+
this.applyReserve(0);
|
|
25599
|
+
}
|
|
25600
|
+
applyReserve(value) {
|
|
25601
|
+
this._reserve = value;
|
|
25602
|
+
if (!this._target)
|
|
25603
|
+
return;
|
|
25604
|
+
this._target.table.style.paddingBottom = value ? `${value}px` : '';
|
|
25605
|
+
}
|
|
25606
|
+
writeScrollTop(value) {
|
|
25607
|
+
if (!this._target)
|
|
25608
|
+
return;
|
|
25609
|
+
this._target.container.scrollTo({ top: Math.round(value), behavior: 'instant' });
|
|
25610
|
+
this._lastWrittenScrollTop = this._target.container.scrollTop;
|
|
25611
|
+
}
|
|
25612
|
+
getAnchorTarget(start) {
|
|
25613
|
+
if (!this._target)
|
|
25614
|
+
return start;
|
|
25615
|
+
const anchor = this._anchorElement ?? this._target.host;
|
|
25616
|
+
return qdCalculateTravelTarget(start, anchor.getBoundingClientRect().bottom, this._target.container.getBoundingClientRect().bottom, this.getNaturalMaxScrollTop());
|
|
25617
|
+
}
|
|
25618
|
+
getNaturalScrollHeight() {
|
|
25619
|
+
if (!this._target)
|
|
25620
|
+
return 0;
|
|
25621
|
+
return this._target.container.scrollHeight - this._reserve;
|
|
25622
|
+
}
|
|
25623
|
+
getNaturalMaxScrollTop() {
|
|
25624
|
+
if (!this._target)
|
|
25625
|
+
return 0;
|
|
25626
|
+
return Math.max(0, this.getNaturalScrollHeight() - this._target.container.clientHeight);
|
|
25627
|
+
}
|
|
25628
|
+
isReducedMotion() {
|
|
25629
|
+
return window.matchMedia(REDUCED_MOTION_QUERY).matches;
|
|
25630
|
+
}
|
|
25631
|
+
listenForUserScroll() {
|
|
25632
|
+
if (!this._target)
|
|
25633
|
+
return;
|
|
25634
|
+
const { container } = this._target;
|
|
25635
|
+
this._zone.runOutsideAngular(() => {
|
|
25636
|
+
USER_SCROLL_EVENTS.forEach(name => container.addEventListener(name, this._onUserScroll, { passive: true }));
|
|
25637
|
+
container.addEventListener('scroll', this._onContainerScroll, { passive: true });
|
|
25638
|
+
});
|
|
25639
|
+
}
|
|
25640
|
+
stopListening() {
|
|
25641
|
+
if (!this._target)
|
|
25642
|
+
return;
|
|
25643
|
+
const { container } = this._target;
|
|
25644
|
+
USER_SCROLL_EVENTS.forEach(name => container.removeEventListener(name, this._onUserScroll));
|
|
25645
|
+
container.removeEventListener('scroll', this._onContainerScroll);
|
|
25646
|
+
}
|
|
25647
|
+
checkForeignScroll() {
|
|
25648
|
+
if (!this.isBusy())
|
|
25649
|
+
return;
|
|
25650
|
+
if (this.getForeignDistance() > FOREIGN_SCROLL_TOLERANCE_PX)
|
|
25651
|
+
this.stopForUser();
|
|
25652
|
+
}
|
|
25653
|
+
getForeignDistance() {
|
|
25654
|
+
return Math.abs(this.getContainerScrollTop() - this._lastWrittenScrollTop);
|
|
25655
|
+
}
|
|
25656
|
+
getContainerScrollTop() {
|
|
25657
|
+
return this._target?.container.scrollTop ?? 0;
|
|
25658
|
+
}
|
|
25659
|
+
stopForUser() {
|
|
25660
|
+
if (!this.isBusy())
|
|
25661
|
+
return;
|
|
25662
|
+
this.stopTravel();
|
|
25663
|
+
this.applyReserve(0);
|
|
25664
|
+
}
|
|
25665
|
+
stopTravel() {
|
|
25666
|
+
this.cancelFrame(this._settleFrame);
|
|
25667
|
+
this.cancelFrame(this._travelFrame);
|
|
25668
|
+
this._settleFrame = undefined;
|
|
25669
|
+
this._travelFrame = undefined;
|
|
25670
|
+
}
|
|
25671
|
+
cancelFrame(handle) {
|
|
25672
|
+
if (handle !== undefined)
|
|
25673
|
+
cancelAnimationFrame(handle);
|
|
25674
|
+
}
|
|
25675
|
+
findScrollContainer(element) {
|
|
25676
|
+
for (let parent = element.parentElement; parent; parent = parent.parentElement) {
|
|
25677
|
+
if (this.scrollsVertically(parent))
|
|
25678
|
+
return parent;
|
|
25679
|
+
}
|
|
25680
|
+
return undefined;
|
|
25681
|
+
}
|
|
25682
|
+
scrollsVertically(element) {
|
|
25683
|
+
return SCROLLABLE_OVERFLOW.includes(getComputedStyle(element).overflowY);
|
|
25684
|
+
}
|
|
25685
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdTableScrollAnchorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
25686
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdTableScrollAnchorService });
|
|
25687
|
+
}
|
|
25688
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdTableScrollAnchorService, decorators: [{
|
|
25689
|
+
type: Injectable
|
|
25690
|
+
}] });
|
|
25691
|
+
|
|
25311
25692
|
/**
|
|
25312
25693
|
* Token for resolving table data in Angular applications.
|
|
25694
|
+
*
|
|
25695
|
+
* Bind it to a class implementing `QdTableDataResolver`.
|
|
25313
25696
|
*/
|
|
25314
25697
|
const QD_TABLE_DATA_RESOLVER_TOKEN = new InjectionToken('QD_TABLE_DATA_RESOLVER_TOKEN');
|
|
25315
25698
|
|
|
@@ -25752,103 +26135,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
25752
26135
|
type: Injectable
|
|
25753
26136
|
}], ctorParameters: () => [] });
|
|
25754
26137
|
|
|
25755
|
-
class QdScrollingService {
|
|
25756
|
-
scrollIntoViewIfNeeded(element, borderDirection = 'top', targetBorderDistance = 0) {
|
|
25757
|
-
this.scrollIntoView(element, borderDirection, targetBorderDistance, true);
|
|
25758
|
-
}
|
|
25759
|
-
scrollIntoView(element, borderDirection = 'top', targetBorderDistance = 0, onlyIfOutsideView = false) {
|
|
25760
|
-
const borderDistances = this.getBorderDistances(element);
|
|
25761
|
-
if (onlyIfOutsideView && this.isInViewport(borderDistances))
|
|
25762
|
-
return;
|
|
25763
|
-
switch (borderDirection) {
|
|
25764
|
-
case 'top':
|
|
25765
|
-
window.scrollBy({ behavior: 'smooth', top: -(targetBorderDistance - borderDistances.top) });
|
|
25766
|
-
break;
|
|
25767
|
-
case 'left':
|
|
25768
|
-
window.scrollBy({ behavior: 'smooth', left: -(targetBorderDistance - borderDistances.left) });
|
|
25769
|
-
break;
|
|
25770
|
-
case 'right':
|
|
25771
|
-
window.scrollBy({ behavior: 'smooth', left: targetBorderDistance - borderDistances.right });
|
|
25772
|
-
break;
|
|
25773
|
-
case 'bottom':
|
|
25774
|
-
window.scrollBy({ behavior: 'smooth', top: targetBorderDistance - borderDistances.bottom });
|
|
25775
|
-
break;
|
|
25776
|
-
}
|
|
25777
|
-
}
|
|
25778
|
-
getBorderDistances(element) {
|
|
25779
|
-
const boundingClientRect = element.getBoundingClientRect();
|
|
25780
|
-
return {
|
|
25781
|
-
top: boundingClientRect.top,
|
|
25782
|
-
left: boundingClientRect.left,
|
|
25783
|
-
right: (window.innerWidth || document.documentElement.clientWidth) - boundingClientRect.right,
|
|
25784
|
-
bottom: (window.innerHeight || document.documentElement.clientHeight) - boundingClientRect.bottom
|
|
25785
|
-
};
|
|
25786
|
-
}
|
|
25787
|
-
isInViewport(borderDistances) {
|
|
25788
|
-
return Object.values(borderDistances).every(distance => distance > 0);
|
|
25789
|
-
}
|
|
25790
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdScrollingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
25791
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdScrollingService, providedIn: 'root' });
|
|
25792
|
-
}
|
|
25793
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdScrollingService, decorators: [{
|
|
25794
|
-
type: Injectable,
|
|
25795
|
-
args: [{
|
|
25796
|
-
providedIn: 'root'
|
|
25797
|
-
}]
|
|
25798
|
-
}] });
|
|
25799
|
-
|
|
25800
26138
|
/**
|
|
25801
|
-
*
|
|
26139
|
+
* Marks the element the view should end up at after a page change.
|
|
25802
26140
|
*
|
|
25803
|
-
* Apply
|
|
26141
|
+
* Apply it to the pagination section of the table.
|
|
25804
26142
|
*/
|
|
25805
26143
|
class QdScrollToPaginationDirective {
|
|
25806
26144
|
elementRef = inject(ElementRef);
|
|
25807
|
-
|
|
25808
|
-
scrollingService = inject(QdScrollingService);
|
|
25809
|
-
_destroyed$ = new Subject();
|
|
25810
|
-
_bottom;
|
|
26145
|
+
scrollAnchorService = inject(QdTableScrollAnchorService, { optional: true });
|
|
25811
26146
|
ngOnInit() {
|
|
25812
|
-
this.
|
|
25813
|
-
this.tableStoreService
|
|
25814
|
-
.pageChangeInfo$()
|
|
25815
|
-
.pipe(takeUntil(this._destroyed$), filter(pageInfo => pageInfo !== undefined), scan((acc, curr) => this.handleScrollAnalysis(acc, curr)), tap(curr => this.performScrollIntoView(curr)))
|
|
25816
|
-
.subscribe();
|
|
26147
|
+
this.scrollAnchorService?.setAnchor(this.elementRef.nativeElement);
|
|
25817
26148
|
}
|
|
25818
26149
|
ngOnDestroy() {
|
|
25819
|
-
this.
|
|
25820
|
-
this._destroyed$.complete();
|
|
25821
|
-
}
|
|
25822
|
-
getScrollBottom() {
|
|
25823
|
-
return this.scrollingService.getBorderDistances(this.elementRef.nativeElement).bottom;
|
|
25824
|
-
}
|
|
25825
|
-
handleScrollAnalysis(acc, curr) {
|
|
25826
|
-
const result = { ...curr, shouldScroll: acc.shouldScroll, hasRequestSucceeded: acc.hasRequestSucceeded };
|
|
25827
|
-
if (!this.hasRequestBeenTriggered(acc, curr)) {
|
|
25828
|
-
result.shouldScroll = false;
|
|
25829
|
-
result.hasRequestSucceeded = false;
|
|
25830
|
-
}
|
|
25831
|
-
if (this.shouldScroll(acc, curr)) {
|
|
25832
|
-
this._bottom = this.getScrollBottom();
|
|
25833
|
-
result.shouldScroll = true;
|
|
25834
|
-
}
|
|
25835
|
-
if (this.hasRequestSucceeded(acc, curr))
|
|
25836
|
-
result.hasRequestSucceeded = true;
|
|
25837
|
-
return result;
|
|
25838
|
-
}
|
|
25839
|
-
hasRequestBeenTriggered(acc, curr) {
|
|
25840
|
-
return !(acc.requestState === QdTableRequestState.SUCCESS && curr.requestState === QdTableRequestState.SUCCESS);
|
|
25841
|
-
}
|
|
25842
|
-
hasRequestSucceeded(acc, curr) {
|
|
25843
|
-
return acc.requestState === QdTableRequestState.PENDING && curr.requestState === QdTableRequestState.SUCCESS;
|
|
25844
|
-
}
|
|
25845
|
-
shouldScroll(acc, curr) {
|
|
25846
|
-
return acc.pageIndex !== curr.pageIndex || acc.pageSize !== curr.pageSize;
|
|
25847
|
-
}
|
|
25848
|
-
performScrollIntoView(curr) {
|
|
25849
|
-
if (!curr.shouldScroll || !curr.hasRequestSucceeded)
|
|
25850
|
-
return;
|
|
25851
|
-
window.setTimeout(() => this.scrollingService.scrollIntoView(this.elementRef.nativeElement, 'bottom', this._bottom), 10);
|
|
26150
|
+
this.scrollAnchorService?.setAnchor();
|
|
25852
26151
|
}
|
|
25853
26152
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdScrollToPaginationDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
25854
26153
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.17", type: QdScrollToPaginationDirective, isStandalone: false, selector: "[qdScrollToPagination]", ngImport: i0 });
|
|
@@ -25861,6 +26160,38 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
25861
26160
|
}]
|
|
25862
26161
|
}] });
|
|
25863
26162
|
|
|
26163
|
+
/**
|
|
26164
|
+
* Measures how far an element sits from the borders of the viewport.
|
|
26165
|
+
*/
|
|
26166
|
+
class QdScrollingService {
|
|
26167
|
+
/**
|
|
26168
|
+
* Returns the distance of an element to each viewport border.
|
|
26169
|
+
*/
|
|
26170
|
+
getBorderDistances(element) {
|
|
26171
|
+
const boundingClientRect = element.getBoundingClientRect();
|
|
26172
|
+
return {
|
|
26173
|
+
top: boundingClientRect.top,
|
|
26174
|
+
left: boundingClientRect.left,
|
|
26175
|
+
right: this.getViewportWidth() - boundingClientRect.right,
|
|
26176
|
+
bottom: this.getViewportHeight() - boundingClientRect.bottom
|
|
26177
|
+
};
|
|
26178
|
+
}
|
|
26179
|
+
getViewportWidth() {
|
|
26180
|
+
return window.innerWidth || document.documentElement.clientWidth;
|
|
26181
|
+
}
|
|
26182
|
+
getViewportHeight() {
|
|
26183
|
+
return window.innerHeight || document.documentElement.clientHeight;
|
|
26184
|
+
}
|
|
26185
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdScrollingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
26186
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdScrollingService, providedIn: 'root' });
|
|
26187
|
+
}
|
|
26188
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdScrollingService, decorators: [{
|
|
26189
|
+
type: Injectable,
|
|
26190
|
+
args: [{
|
|
26191
|
+
providedIn: 'root'
|
|
26192
|
+
}]
|
|
26193
|
+
}] });
|
|
26194
|
+
|
|
25864
26195
|
/**
|
|
25865
26196
|
* A directive that allows the paginator to set the page size of a table paginator. Also writes the result to the store.
|
|
25866
26197
|
*
|
|
@@ -25958,7 +26289,7 @@ class QdTablePaginatorPageSizeComponent {
|
|
|
25958
26289
|
this.closeSelection();
|
|
25959
26290
|
}
|
|
25960
26291
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdTablePaginatorPageSizeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
25961
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdTablePaginatorPageSizeComponent, isStandalone: false, selector: "qd-table-paginator-page-size", inputs: { pageSizes: "pageSizes" }, host: { listeners: { "document:click": "clickedOutside($event)" } }, viewQueries: [{ propertyName: "selection", first: true, predicate: ["selection"], descendants: true }, { propertyName: "selectionList", first: true, predicate: ["selectionList"], descendants: true }], ngImport: i0, template: "@if (hasActivePageSizes$ | async) {\n<label>\n {{ \"i18n.qd.table.pagination.pageSize\" | translate }}\n</label>\n<div [ngClass]=\"{ selection: true, opened: selectionOpened }\" #selection>\n <span (click)=\"toggleSelection()\" data-test-id=\"page-size-selection\">\n {{ pageSize$ | async }}\n </span>\n <ul\n [ngClass]=\"{ 'selection-list': true, opened: selectionOpened }\"\n [class]=\"selectionDirection\"\n #selectionList\n data-test-id=\"page-size-selection-list\"\n >\n @for (pageSize of pageSizes$ | async; track pageSize.value) {\n <li\n [ngClass]=\"{ disabled: pageSize.disabled }\"\n [attr.data-test-id]=\"'page-size-selection-option-' + pageSize.value\"\n [qdTablePaginatorPageSize]=\"pageSize\"\n >\n {{ pageSize.value }}\n </li>\n }\n </ul>\n</div>\n}\n", styles: [":host{position:relative;display:flex;height:2.75rem;align-items:center;text-align:right;-webkit-user-select:none;user-select:none;white-space:nowrap}:host label{margin:0 .4375rem 0 1rem}@media(max-width:599.98px){:host label{display:none}}:host .selection{height:2.75rem;border-right:.0625rem solid rgb(229,229,229);cursor:pointer;white-space:nowrap}:host .selection span{display:inline-block;width:100%;padding:.75rem 1.625rem .6875rem .5625rem}:host .selection:hover,:host .selection.opened{border-right:.0625rem solid rgb(151,151,151);border-left:.0625rem solid rgb(151,151,151);color:#171717}:host .selection:hover span,:host .selection:hover li,:host .selection.opened span,:host .selection.opened li{padding-left:.5rem}:host .selection:after{position:absolute;top:50%;right:.4375rem;color:#454545;content:\"\\e042\";font-family:Quadrel-Icon,sans-serif;font-size:1rem;pointer-events:none;transform:translateY(-50%)}:host .selection:hover:after{color:#171717}:host .selection.opened:after{content:\"\\e040\"}:host .selection-list{position:relative;z-index:100;bottom:2.75rem;padding:0;border:.0625rem solid rgb(151,151,151);margin:0 -.0625rem;background-color:#fff;box-shadow:#d5d5d5 0 -.125rem .4375rem;list-style:none;transform:translateY(-100%);visibility:hidden}:host .selection-list.opened{visibility:visible}:host .selection-list.opened.down{bottom:0;box-shadow:#d5d5d5 .125rem .25rem .4375rem;transform:none}:host .selection-list li{width:100%;padding:.375rem 1.625rem .375rem .5625rem;white-space:nowrap}:host .selection-list li:hover{background-color:#f5f5f5}:host .selection-list li.disabled{background-color:#fff;color:#b4b4b4;cursor:default}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: QdTablePaginatorPageSizeDirective, selector: "[qdTablePaginatorPageSize]", inputs: ["qdTablePaginatorPageSize"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
26292
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdTablePaginatorPageSizeComponent, isStandalone: false, selector: "qd-table-paginator-page-size", inputs: { pageSizes: "pageSizes" }, host: { listeners: { "document:click": "clickedOutside($event)" } }, viewQueries: [{ propertyName: "selection", first: true, predicate: ["selection"], descendants: true }, { propertyName: "selectionList", first: true, predicate: ["selectionList"], descendants: true }], ngImport: i0, template: "@if (hasActivePageSizes$ | async) {\n<label>\n {{ \"i18n.qd.table.pagination.pageSize\" | translate }}\n</label>\n<div [ngClass]=\"{ selection: true, opened: selectionOpened }\" #selection>\n <span (click)=\"toggleSelection()\" data-test-id=\"page-size-selection\">\n {{ pageSize$ | async }}\n </span>\n <ul\n [ngClass]=\"{ 'selection-list': true, opened: selectionOpened }\"\n [class]=\"selectionDirection\"\n #selectionList\n data-test-id=\"page-size-selection-list\"\n >\n @for (pageSize of pageSizes$ | async; track pageSize.value) {\n <li\n [ngClass]=\"{ disabled: pageSize.disabled }\"\n [attr.data-test-id]=\"'page-size-selection-option-' + pageSize.value\"\n [qdTablePaginatorPageSize]=\"pageSize\"\n >\n {{ pageSize.value }}\n </li>\n }\n </ul>\n</div>\n}\n", styles: [":host{position:relative;display:flex;height:2.75rem;align-items:center;text-align:right;-webkit-user-select:none;user-select:none;white-space:nowrap}:host label{margin:0 .4375rem 0 1rem}@media(max-width:599.98px){:host label{display:none}}:host .selection{height:2.75rem;border-right:.0625rem solid rgb(229,229,229);cursor:pointer;white-space:nowrap}:host .selection span{display:inline-block;width:100%;padding:.75rem 1.625rem .6875rem .5625rem}:host .selection:hover,:host .selection.opened{border-right:.0625rem solid rgb(151,151,151);border-left:.0625rem solid rgb(151,151,151);color:#171717}:host .selection:hover span,:host .selection:hover li,:host .selection.opened span,:host .selection.opened li{padding-left:.5rem}:host .selection:after{position:absolute;top:50%;right:.4375rem;color:#454545;content:\"\\e042\";font-family:Quadrel-Icon,sans-serif;font-size:1rem;pointer-events:none;transform:translateY(-50%)}:host .selection:hover:after{color:#171717}:host .selection.opened:after{content:\"\\e040\"}:host .selection-list{position:relative;z-index:100;bottom:2.75rem;padding:0;border:.0625rem solid rgb(151,151,151);margin:0 -.0625rem;background-color:#fff;box-shadow:#d5d5d5 0 -.125rem .4375rem;list-style:none;transform:translateY(-100%);visibility:hidden}:host .selection-list.opened{visibility:visible}:host .selection-list.opened.down{bottom:0;box-shadow:#d5d5d5 .125rem .25rem .4375rem;transform:none}:host .selection-list li{width:100%;padding:.375rem 1.625rem .375rem .5625rem;white-space:nowrap}:host .selection-list li:hover{background-color:#f5f5f5}:host .selection-list li.disabled{background-color:#fff;color:#b4b4b4;cursor:default}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: QdTablePaginatorPageSizeDirective, selector: "[qdTablePaginatorPageSize]", inputs: ["qdTablePaginatorPageSize"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
25962
26293
|
}
|
|
25963
26294
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdTablePaginatorPageSizeComponent, decorators: [{
|
|
25964
26295
|
type: Component,
|
|
@@ -25977,10 +26308,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
25977
26308
|
}] } });
|
|
25978
26309
|
|
|
25979
26310
|
const PAGE_SIZE_DEFAULT = 25;
|
|
26311
|
+
const PAGE_NUMBER_CALCULATORS = {
|
|
26312
|
+
[QdPaginatorDirection.FirstPage]: () => 0,
|
|
26313
|
+
[QdPaginatorDirection.NextPage]: ({ currentPage }) => currentPage + 1,
|
|
26314
|
+
[QdPaginatorDirection.PreviousPage]: ({ currentPage }) => currentPage - 1,
|
|
26315
|
+
[QdPaginatorDirection.LastPage]: ({ totalCount, pageSize }) => Math.ceil(totalCount / pageSize) - 1
|
|
26316
|
+
};
|
|
26317
|
+
/**
|
|
26318
|
+
* Shows how many entries the current page holds and lets the user step through the pages.
|
|
26319
|
+
*
|
|
26320
|
+
* The table renders it on its own when the config carries a `pagination` section.
|
|
26321
|
+
*/
|
|
25980
26322
|
class QdTablePaginatorComponent {
|
|
25981
26323
|
tableDataResolver = inject(QD_TABLE_DATA_RESOLVER_TOKEN, { optional: true });
|
|
25982
26324
|
tableStoreService = inject(QdTableStoreService);
|
|
25983
26325
|
routerConnector = inject(QdTablePaginationRouterConnectorService);
|
|
26326
|
+
scrollAnchorService = inject(QdTableScrollAnchorService, { optional: true });
|
|
25984
26327
|
/**
|
|
25985
26328
|
* @description Configuration Model for Qd-Table.
|
|
25986
26329
|
*/
|
|
@@ -26045,20 +26388,39 @@ class QdTablePaginatorComponent {
|
|
|
26045
26388
|
getPageSizeDefault() {
|
|
26046
26389
|
if (typeof this.config?.pagination !== 'object')
|
|
26047
26390
|
return PAGE_SIZE_DEFAULT;
|
|
26048
|
-
|
|
26049
|
-
|
|
26050
|
-
|
|
26391
|
+
return this.config.pagination.pageSizeDefault || this.getFirstOfferedPageSize();
|
|
26392
|
+
}
|
|
26393
|
+
/**
|
|
26394
|
+
* Navigates to another page after the user asked for it.
|
|
26395
|
+
*
|
|
26396
|
+
* Unlike `navigateToPage`, this tells the table that the view may follow the
|
|
26397
|
+
* pagination. Programmatic page changes must not use it.
|
|
26398
|
+
*/
|
|
26399
|
+
navigateByUser(direction) {
|
|
26400
|
+
this.scrollAnchorService?.requestTravel();
|
|
26401
|
+
this.navigateToPage(direction);
|
|
26051
26402
|
}
|
|
26052
26403
|
navigateToPage(direction) {
|
|
26053
26404
|
if (!this.paginatorButtons)
|
|
26054
26405
|
return;
|
|
26055
26406
|
this.tableStoreService
|
|
26056
26407
|
.table$()
|
|
26057
|
-
.pipe(takeUntil(this._destroyed$), take$1(1), tap(table =>
|
|
26058
|
-
this.tableStoreService.setPageParams(this.calculatePageNumber(direction, table?.totalCount ?? 0, table?.pageSize ?? 0, table?.pageIndex ?? 0), table?.pageSize ?? 0, table?.totalCount ?? 0);
|
|
26059
|
-
}))
|
|
26408
|
+
.pipe(takeUntil(this._destroyed$), take$1(1), tap(table => this.applyPageParams(direction, table)))
|
|
26060
26409
|
.subscribe();
|
|
26061
26410
|
}
|
|
26411
|
+
applyPageParams(direction, table) {
|
|
26412
|
+
const pageSize = this.toCount(table?.pageSize);
|
|
26413
|
+
const totalCount = this.toCount(table?.totalCount);
|
|
26414
|
+
const pageNumber = this.calculatePageNumber(direction, totalCount, pageSize, this.toCount(table?.pageIndex));
|
|
26415
|
+
this.tableStoreService.setPageParams(pageNumber, pageSize, totalCount);
|
|
26416
|
+
}
|
|
26417
|
+
toCount(value) {
|
|
26418
|
+
return value ?? 0;
|
|
26419
|
+
}
|
|
26420
|
+
getFirstOfferedPageSize() {
|
|
26421
|
+
const pageSizes = typeof this.config?.pagination === 'object' ? this.config.pagination.pageSizes : undefined;
|
|
26422
|
+
return pageSizes?.length ? pageSizes[0] : PAGE_SIZE_DEFAULT;
|
|
26423
|
+
}
|
|
26062
26424
|
isConfigValid() {
|
|
26063
26425
|
if (!this.tableDataResolver) {
|
|
26064
26426
|
console.error('Quadrel Framework | QdTable Pagination - Provide a resolver for pagination. Please use the "QD_TABLE_DATA_RESOLVER_TOKEN" injection token.');
|
|
@@ -26083,28 +26445,15 @@ class QdTablePaginatorComponent {
|
|
|
26083
26445
|
this.tableStoreService.setupPagination(this.getPageSizeDefault());
|
|
26084
26446
|
}
|
|
26085
26447
|
calculatePageNumber(direction, totalCount, pageSize, currentPage) {
|
|
26086
|
-
|
|
26087
|
-
|
|
26088
|
-
return currentPage + 1;
|
|
26089
|
-
}
|
|
26090
|
-
case QdPaginatorDirection.PreviousPage: {
|
|
26091
|
-
return currentPage - 1;
|
|
26092
|
-
}
|
|
26093
|
-
case QdPaginatorDirection.LastPage: {
|
|
26094
|
-
return Math.ceil(totalCount / pageSize) - 1;
|
|
26095
|
-
}
|
|
26096
|
-
case QdPaginatorDirection.FirstPage:
|
|
26097
|
-
default: {
|
|
26098
|
-
return 0;
|
|
26099
|
-
}
|
|
26100
|
-
}
|
|
26448
|
+
const calculate = PAGE_NUMBER_CALCULATORS[direction] ?? PAGE_NUMBER_CALCULATORS[QdPaginatorDirection.FirstPage];
|
|
26449
|
+
return calculate({ totalCount, pageSize, currentPage });
|
|
26101
26450
|
}
|
|
26102
26451
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdTablePaginatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
26103
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdTablePaginatorComponent, isStandalone: false, selector: "qd-table-paginator", inputs: { config: "config", testId: ["data-test-id", "testId"] }, providers: [QdTablePaginationRouterConnectorService], viewQueries: [{ propertyName: "paginatorButtons", first: true, predicate: ["paginatorButtons"], descendants: true }], ngImport: i0, template: "@if (hasData$ | async) { @if (pageSizes.length > 0) {\n<qd-table-paginator-page-size [pageSizes]=\"pageSizes\"></qd-table-paginator-page-size>\n} @if (currentPage$ | async; as page) {\n<span class=\"paginator-current-page\">\n {{ page.start }}\u2014{{ page.end }}\n {{ \"i18n.qd.table.pagination.of\" | translate }}\n {{ page.totalCount }}\n {{\n page.totalCount === 1\n ? (\"i18n.qd.table.pagination.entry\" | translate)\n : (\"i18n.qd.table.pagination.entries\" | translate)\n }}\n</span>\n} @if ({ count: (selectedRowsCount$ | async) ?? 0 }; as ctx) {\n<span\n [hidden]=\"ctx.count === 0 || config?.selection?.type !== 'multiSelect'\"\n class=\"paginator-selection-count\"\n [attr.data-test-id]=\"testId + '-paginator-selection-count'\"\n>\n {{\n ctx.count === 1\n ? (\"i18n.qd.table.pagination.selectedSingular\" | translate)\n : (\"i18n.qd.table.pagination.selectedPlural\" | translate : { count: ctx.count })\n }}\n</span>\n}\n<span
|
|
26452
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdTablePaginatorComponent, isStandalone: false, selector: "qd-table-paginator", inputs: { config: "config", testId: ["data-test-id", "testId"] }, providers: [QdTablePaginationRouterConnectorService], viewQueries: [{ propertyName: "paginatorButtons", first: true, predicate: ["paginatorButtons"], descendants: true }], ngImport: i0, template: "@if (hasData$ | async) { @if (pageSizes.length > 0) {\n<qd-table-paginator-page-size [pageSizes]=\"pageSizes\"></qd-table-paginator-page-size>\n} @if (currentPage$ | async; as page) {\n<span class=\"paginator-current-page\" [attr.data-test-id]=\"testId + '-paginator-current-page'\">\n {{ page.start }}\u2014{{ page.end }}\n {{ \"i18n.qd.table.pagination.of\" | translate }}\n {{ page.totalCount }}\n {{\n page.totalCount === 1\n ? (\"i18n.qd.table.pagination.entry\" | translate)\n : (\"i18n.qd.table.pagination.entries\" | translate)\n }}\n</span>\n} @if ({ count: (selectedRowsCount$ | async) ?? 0 }; as ctx) {\n<span\n [hidden]=\"ctx.count === 0 || config?.selection?.type !== 'multiSelect'\"\n class=\"paginator-selection-count\"\n [attr.data-test-id]=\"testId + '-paginator-selection-count'\"\n>\n {{\n ctx.count === 1\n ? (\"i18n.qd.table.pagination.selectedSingular\" | translate)\n : (\"i18n.qd.table.pagination.selectedPlural\" | translate : { count: ctx.count })\n }}\n</span>\n}\n<span\n class=\"paginator-buttons\"\n data-test=\"paginator-buttons\"\n [attr.data-test-id]=\"testId + '-paginator-buttons'\"\n #paginatorButtons\n qdScrollToPagination\n>\n @if (config?.pagination['hasFirstLastPageNavigation']) {\n <button\n class=\"paginator-button\"\n [attr.data-test-id]=\"testId + '-paginator-first-page'\"\n (click)=\"navigateByUser(pageNav.FirstPage)\"\n [disabled]=\"(canPageBackward$ | async) === false\"\n >\n <qd-icon [icon]=\"'pageFirst1'\"></qd-icon>\n </button>\n }\n <button\n class=\"paginator-button\"\n [attr.data-test-id]=\"testId + '-paginator-backward'\"\n (click)=\"navigateByUser(pageNav.PreviousPage)\"\n [disabled]=\"(canPageBackward$ | async) === false\"\n >\n <qd-icon [icon]=\"'triangleLeftSolid'\"></qd-icon>\n </button>\n <button\n class=\"paginator-button forward\"\n [attr.data-test-id]=\"testId + '-paginator-forward'\"\n (click)=\"navigateByUser(pageNav.NextPage)\"\n [disabled]=\"(canPageForward$ | async) === false\"\n >\n <qd-icon [icon]=\"'triangleRightSolid'\"></qd-icon>\n </button>\n @if (config?.pagination['hasFirstLastPageNavigation']) {\n <button\n class=\"paginator-button\"\n [attr.data-test-id]=\"testId + '-paginator-last-page'\"\n (click)=\"navigateByUser(pageNav.LastPage)\"\n [disabled]=\"(canPageForward$ | async) === false\"\n >\n <qd-icon [icon]=\"'pageLast'\"></qd-icon>\n </button>\n }\n</span>\n}\n", styles: [":host{color:#454545;font-size:.875rem;font-weight:400;line-height:1.3125rem;display:flex;flex-direction:row;align-items:center;justify-content:space-between;background-color:#fff}.paginator-current-page{margin-left:1rem}.paginator-selection-count{margin-right:1rem;margin-left:1rem}.paginator-buttons{margin-left:auto;text-align:right;white-space:nowrap}button.paginator-button{width:2.75rem;height:2.75rem;border-left:.0625rem solid rgb(229,229,229);background-color:unset;color:#454545;font-size:1.5rem}button.paginator-button:disabled{color:#b4b4b4;cursor:default}button.paginator-button:not(:disabled):hover{background-color:#e5e5e5;color:#171717}\n"], dependencies: [{ kind: "component", type: QdIconComponent, selector: "qd-icon", inputs: ["icon", "status"] }, { kind: "directive", type: QdScrollToPaginationDirective, selector: "[qdScrollToPagination]" }, { kind: "component", type: QdTablePaginatorPageSizeComponent, selector: "qd-table-paginator-page-size", inputs: ["pageSizes"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
26104
26453
|
}
|
|
26105
26454
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdTablePaginatorComponent, decorators: [{
|
|
26106
26455
|
type: Component,
|
|
26107
|
-
args: [{ selector: 'qd-table-paginator', providers: [QdTablePaginationRouterConnectorService], changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "@if (hasData$ | async) { @if (pageSizes.length > 0) {\n<qd-table-paginator-page-size [pageSizes]=\"pageSizes\"></qd-table-paginator-page-size>\n} @if (currentPage$ | async; as page) {\n<span class=\"paginator-current-page\">\n {{ page.start }}\u2014{{ page.end }}\n {{ \"i18n.qd.table.pagination.of\" | translate }}\n {{ page.totalCount }}\n {{\n page.totalCount === 1\n ? (\"i18n.qd.table.pagination.entry\" | translate)\n : (\"i18n.qd.table.pagination.entries\" | translate)\n }}\n</span>\n} @if ({ count: (selectedRowsCount$ | async) ?? 0 }; as ctx) {\n<span\n [hidden]=\"ctx.count === 0 || config?.selection?.type !== 'multiSelect'\"\n class=\"paginator-selection-count\"\n [attr.data-test-id]=\"testId + '-paginator-selection-count'\"\n>\n {{\n ctx.count === 1\n ? (\"i18n.qd.table.pagination.selectedSingular\" | translate)\n : (\"i18n.qd.table.pagination.selectedPlural\" | translate : { count: ctx.count })\n }}\n</span>\n}\n<span
|
|
26456
|
+
args: [{ selector: 'qd-table-paginator', providers: [QdTablePaginationRouterConnectorService], changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "@if (hasData$ | async) { @if (pageSizes.length > 0) {\n<qd-table-paginator-page-size [pageSizes]=\"pageSizes\"></qd-table-paginator-page-size>\n} @if (currentPage$ | async; as page) {\n<span class=\"paginator-current-page\" [attr.data-test-id]=\"testId + '-paginator-current-page'\">\n {{ page.start }}\u2014{{ page.end }}\n {{ \"i18n.qd.table.pagination.of\" | translate }}\n {{ page.totalCount }}\n {{\n page.totalCount === 1\n ? (\"i18n.qd.table.pagination.entry\" | translate)\n : (\"i18n.qd.table.pagination.entries\" | translate)\n }}\n</span>\n} @if ({ count: (selectedRowsCount$ | async) ?? 0 }; as ctx) {\n<span\n [hidden]=\"ctx.count === 0 || config?.selection?.type !== 'multiSelect'\"\n class=\"paginator-selection-count\"\n [attr.data-test-id]=\"testId + '-paginator-selection-count'\"\n>\n {{\n ctx.count === 1\n ? (\"i18n.qd.table.pagination.selectedSingular\" | translate)\n : (\"i18n.qd.table.pagination.selectedPlural\" | translate : { count: ctx.count })\n }}\n</span>\n}\n<span\n class=\"paginator-buttons\"\n data-test=\"paginator-buttons\"\n [attr.data-test-id]=\"testId + '-paginator-buttons'\"\n #paginatorButtons\n qdScrollToPagination\n>\n @if (config?.pagination['hasFirstLastPageNavigation']) {\n <button\n class=\"paginator-button\"\n [attr.data-test-id]=\"testId + '-paginator-first-page'\"\n (click)=\"navigateByUser(pageNav.FirstPage)\"\n [disabled]=\"(canPageBackward$ | async) === false\"\n >\n <qd-icon [icon]=\"'pageFirst1'\"></qd-icon>\n </button>\n }\n <button\n class=\"paginator-button\"\n [attr.data-test-id]=\"testId + '-paginator-backward'\"\n (click)=\"navigateByUser(pageNav.PreviousPage)\"\n [disabled]=\"(canPageBackward$ | async) === false\"\n >\n <qd-icon [icon]=\"'triangleLeftSolid'\"></qd-icon>\n </button>\n <button\n class=\"paginator-button forward\"\n [attr.data-test-id]=\"testId + '-paginator-forward'\"\n (click)=\"navigateByUser(pageNav.NextPage)\"\n [disabled]=\"(canPageForward$ | async) === false\"\n >\n <qd-icon [icon]=\"'triangleRightSolid'\"></qd-icon>\n </button>\n @if (config?.pagination['hasFirstLastPageNavigation']) {\n <button\n class=\"paginator-button\"\n [attr.data-test-id]=\"testId + '-paginator-last-page'\"\n (click)=\"navigateByUser(pageNav.LastPage)\"\n [disabled]=\"(canPageForward$ | async) === false\"\n >\n <qd-icon [icon]=\"'pageLast'\"></qd-icon>\n </button>\n }\n</span>\n}\n", styles: [":host{color:#454545;font-size:.875rem;font-weight:400;line-height:1.3125rem;display:flex;flex-direction:row;align-items:center;justify-content:space-between;background-color:#fff}.paginator-current-page{margin-left:1rem}.paginator-selection-count{margin-right:1rem;margin-left:1rem}.paginator-buttons{margin-left:auto;text-align:right;white-space:nowrap}button.paginator-button{width:2.75rem;height:2.75rem;border-left:.0625rem solid rgb(229,229,229);background-color:unset;color:#454545;font-size:1.5rem}button.paginator-button:disabled{color:#b4b4b4;cursor:default}button.paginator-button:not(:disabled):hover{background-color:#e5e5e5;color:#171717}\n"] }]
|
|
26108
26457
|
}], propDecorators: { config: [{
|
|
26109
26458
|
type: Input
|
|
26110
26459
|
}], testId: [{
|
|
@@ -26314,7 +26663,7 @@ class QdTableRowActionsSecondaryMenuComponent {
|
|
|
26314
26663
|
};
|
|
26315
26664
|
}
|
|
26316
26665
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdTableRowActionsSecondaryMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
26317
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdTableRowActionsSecondaryMenuComponent, isStandalone: false, selector: "[qd-table-row-actions-secondary-menu]", inputs: { rowIndex: "rowIndex", rowData: "rowData", i18ns: "i18ns", testId: "testId", viewonly: "viewonly" }, ngImport: i0, template: "@if (actions$ | async; as actions) { @if (actions.length > 0) {\n<button\n type=\"button\"\n class=\"menu-button\"\n [qdPopoverOnClick]=\"menu\"\n [qdPopoverCloseStrategy]=\"'onEveryClick'\"\n [qdPopoverStopPropagation]=\"true\"\n [qdPopoverMinWidth]=\"160\"\n [attr.data-test-id]=\"testId + '-toggler'\"\n>\n <qd-icon icon=\"overflowMenuHorizontal\"></qd-icon>\n</button>\n}\n<ng-template #menu>\n @for (action of actions; track action; let i = $index) {\n <button\n class=\"action-button\"\n type=\"button\"\n [disabled]=\"action.isDisabled\"\n (click)=\"onActionClick(action.type)\"\n [attr.data-test-id]=\"testId + '-' + i\"\n >\n {{ action.i18n | translate }}\n </button>\n }\n</ng-template>\n}\n", styles: [".menu-button{display:flex;padding:.1875rem .625rem 0 .375rem;background:unset;color:#454545;font-size:2rem}.menu-button:hover,.menu-button:focus{color:#000}.action-button{display:block;width:100%;min-height:2rem;padding:0 1rem;background:#fff0;font-size:.75rem;text-align:left}.action-button:hover{background-color:#f2f7fa}.action-button.disabled{color:#b4b4b4;cursor:not-allowed}.action-button.disabled:hover{background-color:#fff0}\n"], dependencies: [{ 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: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
26666
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdTableRowActionsSecondaryMenuComponent, isStandalone: false, selector: "[qd-table-row-actions-secondary-menu]", inputs: { rowIndex: "rowIndex", rowData: "rowData", i18ns: "i18ns", testId: "testId", viewonly: "viewonly" }, ngImport: i0, template: "@if (actions$ | async; as actions) { @if (actions.length > 0) {\n<button\n type=\"button\"\n class=\"menu-button\"\n [qdPopoverOnClick]=\"menu\"\n [qdPopoverCloseStrategy]=\"'onEveryClick'\"\n [qdPopoverStopPropagation]=\"true\"\n [qdPopoverMinWidth]=\"160\"\n [attr.data-test-id]=\"testId + '-toggler'\"\n>\n <qd-icon icon=\"overflowMenuHorizontal\"></qd-icon>\n</button>\n}\n<ng-template #menu>\n @for (action of actions; track action; let i = $index) {\n <button\n class=\"action-button\"\n type=\"button\"\n [disabled]=\"action.isDisabled\"\n (click)=\"onActionClick(action.type)\"\n [attr.data-test-id]=\"testId + '-' + i\"\n >\n {{ action.i18n | translate }}\n </button>\n }\n</ng-template>\n}\n", styles: [".menu-button{display:flex;padding:.1875rem .625rem 0 .375rem;background:unset;color:#454545;font-size:2rem}.menu-button:hover,.menu-button:focus{color:#000}.action-button{display:block;width:100%;min-height:2rem;padding:0 1rem;background:#fff0;font-size:.75rem;text-align:left}.action-button:hover{background-color:#f2f7fa}.action-button.disabled{color:#b4b4b4;cursor:not-allowed}.action-button.disabled:hover{background-color:#fff0}\n"], dependencies: [{ 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: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
26318
26667
|
}
|
|
26319
26668
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdTableRowActionsSecondaryMenuComponent, decorators: [{
|
|
26320
26669
|
type: Component,
|
|
@@ -26365,7 +26714,7 @@ class QdTableRowSelectionComponent {
|
|
|
26365
26714
|
}
|
|
26366
26715
|
}
|
|
26367
26716
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdTableRowSelectionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
26368
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdTableRowSelectionComponent, isStandalone: false, selector: "[qd-table-row-selection]", inputs: { rowIndex: "rowIndex", rowData: "rowData", testId: ["data-test-id", "testId"] }, host: { properties: { "attr.data-test-id": "this.dataTestId" } }, ngImport: i0, template: "@switch (selectionType) { @case ('singleSelect') {\n<input\n type=\"radio\"\n [name]=\"'qd-table-selection__' + tableId\"\n [checked]=\"isRowSelected$() | async\"\n (click)=\"stopPropagation($event)\"\n (change)=\"handleChange($event)\"\n [attr.data-test-id]=\"testId + '-radio'\"\n/>\n} @case ('multiSelect') {\n<input\n type=\"checkbox\"\n [name]=\"'qd-table-selection__' + tableId\"\n [checked]=\"isRowSelected$() | async\"\n (click)=\"stopPropagation($event)\"\n (change)=\"handleChange($event)\"\n [attr.data-test-id]=\"testId + '-checkbox'\"\n/>\n} }\n", styles: ["input{cursor:pointer}\n"], dependencies: [{ kind: "pipe", type: i1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
26717
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdTableRowSelectionComponent, isStandalone: false, selector: "[qd-table-row-selection]", inputs: { rowIndex: "rowIndex", rowData: "rowData", testId: ["data-test-id", "testId"] }, host: { properties: { "attr.data-test-id": "this.dataTestId" } }, ngImport: i0, template: "@switch (selectionType) { @case ('singleSelect') {\n<input\n type=\"radio\"\n [name]=\"'qd-table-selection__' + tableId\"\n [checked]=\"isRowSelected$() | async\"\n (click)=\"stopPropagation($event)\"\n (change)=\"handleChange($event)\"\n [attr.data-test-id]=\"testId + '-radio'\"\n/>\n} @case ('multiSelect') {\n<input\n type=\"checkbox\"\n [name]=\"'qd-table-selection__' + tableId\"\n [checked]=\"isRowSelected$() | async\"\n (click)=\"stopPropagation($event)\"\n (change)=\"handleChange($event)\"\n [attr.data-test-id]=\"testId + '-checkbox'\"\n/>\n} }\n", styles: ["input{cursor:pointer}\n"], dependencies: [{ kind: "pipe", type: i1$1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
26369
26718
|
}
|
|
26370
26719
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdTableRowSelectionComponent, decorators: [{
|
|
26371
26720
|
type: Component,
|
|
@@ -26459,7 +26808,7 @@ class QdTableRowComponent {
|
|
|
26459
26808
|
return this.config.columns.find(column => column.column === item)?.tooltip;
|
|
26460
26809
|
}
|
|
26461
26810
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdTableRowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
26462
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdTableRowComponent, isStandalone: false, selector: "[qd-table-row]", inputs: { config: "config", rowData: "rowData", rowIndex: "rowIndex", testId: ["data-test-id", "testId"] }, host: { properties: { "attr.data-test-id": "this.hostTestId" } }, providers: [QdDataFacetsContextService], ngImport: i0, template: "@if (config.selection) {\n<td\n qd-table-row-selection\n class=\"qd-table__body-cell--selection\"\n [rowIndex]=\"rowIndex\"\n [rowData]=\"rowData\"\n [data-test-id]=\"testId + '-cell-selection'\"\n></td>\n} @for (item of columnsDefinitions$ | async; track $index) { @if (hasMergedColumns(item)) {\n<td [class]=\"'qd-table__body-cell--merged ' + getCellClass(item)\" [attr.data-test-id]=\"testId + '-cell-merged'\">\n @for (mergedColumn of item; track $index; let first = $first) {\n <div>\n <ng-container *ngTemplateOutlet=\"headings; context: { item: mergedColumn, translations, first }\"></ng-container>\n <span class=\"qd-table__body-cell\">\n <ng-container\n *ngComponentOutlet=\"getComponentType(mergedColumn); inputs: getComponentInputs(mergedColumn)\"\n ></ng-container>\n </span>\n </div>\n }\n</td>\n} @if (!hasMergedColumns(item)) {\n<td [class]=\"'qd-table__body-cell ' + getCellClass(item)\" [attr.data-test-id]=\"testId + '-cell-' + item\">\n <ng-container *ngComponentOutlet=\"getComponentType(item); inputs: getComponentInputs(item)\"></ng-container>\n</td>\n} } @if (config.secondaryActions?.length > 0) {\n<td\n qd-table-row-actions-secondary-menu\n class=\"qd-table__body-cell--actions-secondary-actions-menu\"\n [rowIndex]=\"rowIndex\"\n [rowData]=\"rowData\"\n [i18ns]=\"config.i18ns\"\n [testId]=\"testId + '-secondary-actions'\"\n [viewonly]=\"config.viewonly\"\n [attr.data-test-id]=\"testId + '-cell-secondary-actions'\"\n></td>\n}\n\n<ng-template #headings let-item=\"item\" let-translations=\"translations\" let-first=\"first\">\n @if (!first && findColumnType(item) !== 'blank') {\n <span class=\"qd-table__body-cell--merged-headings\">\n {{ translations ? (getI18n(item) | translate) : capitalize(item) }}\n <qd-tooltip-icon [tooltip]=\"getTooltip(item)\"></qd-tooltip-icon>\n </span>\n }\n</ng-template>\n", styles: ["[qd-table-row] .qd-table__body-cell--actions-secondary-actions-menu{vertical-align:top}[qd-table-row] .qd-data-facets{display:block}[qd-table-row] qd-data-facets-progress.qd-data-facets{transform:translateY(.1875rem)}[qd-table-row] qd-data-facets-chip.qd-data-facets{display:contents}[qd-table-row] .qd-table__body-cell qd-data-facets-text.qd-data-facets{margin:.625rem 0}[qd-table-row] .qd-table__body-cell--merged qd-data-facets-text.qd-data-facets{margin:0;line-height:inherit}\n"], dependencies: [{ kind: "directive", type: i1.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: QdTooltipIconComponent, selector: "qd-tooltip-icon", inputs: ["tooltip"] }, { kind: "component", type: QdTableRowActionsSecondaryMenuComponent, selector: "[qd-table-row-actions-secondary-menu]", inputs: ["rowIndex", "rowData", "i18ns", "testId", "viewonly"] }, { kind: "component", type: QdTableRowSelectionComponent, selector: "[qd-table-row-selection]", inputs: ["rowIndex", "rowData", "data-test-id"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
26811
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdTableRowComponent, isStandalone: false, selector: "[qd-table-row]", inputs: { config: "config", rowData: "rowData", rowIndex: "rowIndex", testId: ["data-test-id", "testId"] }, host: { properties: { "attr.data-test-id": "this.hostTestId" } }, providers: [QdDataFacetsContextService], ngImport: i0, template: "@if (config.selection) {\n<td\n qd-table-row-selection\n class=\"qd-table__body-cell--selection\"\n [rowIndex]=\"rowIndex\"\n [rowData]=\"rowData\"\n [data-test-id]=\"testId + '-cell-selection'\"\n></td>\n} @for (item of columnsDefinitions$ | async; track $index) { @if (hasMergedColumns(item)) {\n<td [class]=\"'qd-table__body-cell--merged ' + getCellClass(item)\" [attr.data-test-id]=\"testId + '-cell-merged'\">\n @for (mergedColumn of item; track $index; let first = $first) {\n <div>\n <ng-container *ngTemplateOutlet=\"headings; context: { item: mergedColumn, translations, first }\"></ng-container>\n <span class=\"qd-table__body-cell\">\n <ng-container\n *ngComponentOutlet=\"getComponentType(mergedColumn); inputs: getComponentInputs(mergedColumn)\"\n ></ng-container>\n </span>\n </div>\n }\n</td>\n} @if (!hasMergedColumns(item)) {\n<td [class]=\"'qd-table__body-cell ' + getCellClass(item)\" [attr.data-test-id]=\"testId + '-cell-' + item\">\n <ng-container *ngComponentOutlet=\"getComponentType(item); inputs: getComponentInputs(item)\"></ng-container>\n</td>\n} } @if (config.secondaryActions?.length > 0) {\n<td\n qd-table-row-actions-secondary-menu\n class=\"qd-table__body-cell--actions-secondary-actions-menu\"\n [rowIndex]=\"rowIndex\"\n [rowData]=\"rowData\"\n [i18ns]=\"config.i18ns\"\n [testId]=\"testId + '-secondary-actions'\"\n [viewonly]=\"config.viewonly\"\n [attr.data-test-id]=\"testId + '-cell-secondary-actions'\"\n></td>\n}\n\n<ng-template #headings let-item=\"item\" let-translations=\"translations\" let-first=\"first\">\n @if (!first && findColumnType(item) !== 'blank') {\n <span class=\"qd-table__body-cell--merged-headings\">\n {{ translations ? (getI18n(item) | translate) : capitalize(item) }}\n <qd-tooltip-icon [tooltip]=\"getTooltip(item)\"></qd-tooltip-icon>\n </span>\n }\n</ng-template>\n", styles: ["[qd-table-row] .qd-table__body-cell--actions-secondary-actions-menu{vertical-align:top}[qd-table-row] .qd-data-facets{display:block}[qd-table-row] qd-data-facets-progress.qd-data-facets{transform:translateY(.1875rem)}[qd-table-row] qd-data-facets-chip.qd-data-facets{display:contents}[qd-table-row] .qd-table__body-cell qd-data-facets-text.qd-data-facets{margin:.625rem 0}[qd-table-row] .qd-table__body-cell--merged qd-data-facets-text.qd-data-facets{margin:0;line-height:inherit}\n"], dependencies: [{ kind: "directive", type: i1$1.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: QdTooltipIconComponent, selector: "qd-tooltip-icon", inputs: ["tooltip"] }, { kind: "component", type: QdTableRowActionsSecondaryMenuComponent, selector: "[qd-table-row-actions-secondary-menu]", inputs: ["rowIndex", "rowData", "i18ns", "testId", "viewonly"] }, { kind: "component", type: QdTableRowSelectionComponent, selector: "[qd-table-row-selection]", inputs: ["rowIndex", "rowData", "data-test-id"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
26463
26812
|
}
|
|
26464
26813
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdTableRowComponent, decorators: [{
|
|
26465
26814
|
type: Component,
|
|
@@ -26540,7 +26889,7 @@ class QdTableBodyComponent {
|
|
|
26540
26889
|
this.resolverService.refresh(pageIndex !== undefined ? { pageIndex } : undefined);
|
|
26541
26890
|
}
|
|
26542
26891
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdTableBodyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
26543
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdTableBodyComponent, isStandalone: false, selector: "[qd-table-body]", inputs: { config: "config", data: "data", testId: ["data-test-id", "testId"] }, host: { classAttribute: "qd-table__body qd-table__body--plain" }, ngImport: i0, template: "@if (isLoading$ | async) {\n<div class=\"loading-overlay\" [attr.data-test-id]=\"testId + '-loading-overlay'\">\n <qd-spinner></qd-spinner>\n</div>\n} @for (rowData of data; track trackByRowIdentifier(rowIndex, rowData); let rowIndex = $index) {\n<tr\n qd-table-row\n [rowData]=\"rowData\"\n [rowIndex]=\"rowIndex\"\n [config]=\"config\"\n [class]=\"'qd-table__body-row'\"\n [data-test-id]=\"testId + '-row-' + rowIndex\"\n (click)=\"config.primaryAction && primaryAction(rowData, rowIndex)\"\n [class.hasAction]=\"config.primaryAction\"\n [class.qd-table__body-row--last-visited]=\"isLastVisitedRow(rowData, rowIndex)\"\n></tr>\n}\n", styles: [".qd-table__body--plain{position:relative}.qd-table__body--plain td{border-bottom:.0625rem solid rgb(213,213,213)}.qd-table__body--plain td.qd-table__body-cell--selection{padding-left:1rem;vertical-align:top}.qd-table__body--plain td>div{display:flex;align-items:stretch;line-height:1.5rem}.qd-table__body--plain td>div:first-child{font-weight:500;line-height:1.5rem}.qd-table__body--plain td>div:not(:first-child) .qd-table__body-cell{padding:0 .5rem}.qd-table__body--plain td.qd-table__body-cell--merged{padding:.5rem 0;vertical-align:top}.qd-table__body--plain td .qd-table__body-cell--merged-headings{width:33%;padding-left:1rem;color:#757575;overflow-wrap:break-word}.qd-table__body--plain td .qd-table__body-cell--merged-headings+.qd-table__body-cell{width:66%}.qd-table__body--plain td .qd-table__body-cell--merged-headings+.qd-table__body-cell>*{overflow-wrap:break-word;text-align:left}@media(max-width:959.98px){.qd-table__body--plain td.qd-table__body-cell--merged{display:grid;max-width:100%;grid-template-columns:fit-content(66%) 1fr}.qd-table__body--plain td.qd-table__body-cell--merged>div:first-child{display:block;font-weight:500;grid-column:1/-1;line-height:1.5rem}.qd-table__body--plain td.qd-table__body-cell--merged>div:first-child>span.qd-table__body-cell{display:block;width:auto;padding-left:1rem}.qd-table__body--plain td.qd-table__body-cell--merged>div:not(:first-child){display:grid;grid-column:1/-1;grid-template-columns:subgrid}.qd-table__body--plain td.qd-table__body-cell--merged>div:not(:first-child)>span.qd-table__body-cell--merged-headings{display:block;overflow:hidden;width:auto;min-width:0;padding-right:0;padding-left:1rem;color:#757575;-webkit-hyphens:auto;hyphens:auto;line-height:1.5rem;overflow-wrap:break-word;text-overflow:ellipsis}.qd-table__body--plain td.qd-table__body-cell--merged>div:not(:first-child)>span.qd-table__body-cell{display:block;overflow:hidden;width:auto;min-width:0;padding:0 .5rem;-webkit-hyphens:auto;hyphens:auto;line-height:1.5rem;overflow-wrap:break-word;text-align:left;text-overflow:ellipsis}.qd-table__body--plain td.qd-table__body-cell--merged>div:not(:first-child)>span.qd-table__body-cell>*{display:block;overflow:hidden;-webkit-hyphens:auto;hyphens:auto;overflow-wrap:break-word;text-align:left;text-overflow:ellipsis}}.qd-table__body--plain td span.qd-table__body-cell--boolean{display:flex;align-items:center}.qd-table__body--plain td span.qd-table__body-cell--progress{flex-grow:1;align-self:center;padding-top:0}.qd-table__body--plain td span.qd-table__body-cell--status{margin-top:-.5rem}.qd-table__body--plain td span.qd-table__body-cell--text .text{min-height:auto;padding-top:0;line-height:1.5rem}.qd-table__body--plain td span.qd-table__body-cell--text .text+.text{margin-top:.1875rem}.qd-table__body--plain tr:hover{background-color:#f5f5f5}.qd-table__body--plain tr.hasAction{cursor:pointer}.qd-table__body--plain tr.hasAction:hover{background-color:#f2f7fa}.qd-table__body--plain tr.qd-table__body-row--last-visited{animation:last-visited-fade 1.5s linear}@keyframes last-visited-fade{0%,33%{background-color:#c3e8cd}to{background-color:transparent}}.loading-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background-color:#0003}\n"], dependencies: [{ kind: "component", type: QdSpinnerComponent, selector: "qd-spinner" }, { kind: "component", type: QdTableRowComponent, selector: "[qd-table-row]", inputs: ["config", "rowData", "rowIndex", "data-test-id"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
26892
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdTableBodyComponent, isStandalone: false, selector: "[qd-table-body]", inputs: { config: "config", data: "data", testId: ["data-test-id", "testId"] }, host: { classAttribute: "qd-table__body qd-table__body--plain" }, ngImport: i0, template: "@if (isLoading$ | async) {\n<div class=\"loading-overlay\" [attr.data-test-id]=\"testId + '-loading-overlay'\">\n <qd-spinner></qd-spinner>\n</div>\n} @for (rowData of data; track trackByRowIdentifier(rowIndex, rowData); let rowIndex = $index) {\n<tr\n qd-table-row\n [rowData]=\"rowData\"\n [rowIndex]=\"rowIndex\"\n [config]=\"config\"\n [class]=\"'qd-table__body-row'\"\n [data-test-id]=\"testId + '-row-' + rowIndex\"\n (click)=\"config.primaryAction && primaryAction(rowData, rowIndex)\"\n [class.hasAction]=\"config.primaryAction\"\n [class.qd-table__body-row--last-visited]=\"isLastVisitedRow(rowData, rowIndex)\"\n></tr>\n}\n", styles: [".qd-table__body--plain{position:relative}.qd-table__body--plain td{border-bottom:.0625rem solid rgb(213,213,213)}.qd-table__body--plain td.qd-table__body-cell--selection{padding-left:1rem;vertical-align:top}.qd-table__body--plain td>div{display:flex;align-items:stretch;line-height:1.5rem}.qd-table__body--plain td>div:first-child{font-weight:500;line-height:1.5rem}.qd-table__body--plain td>div:not(:first-child) .qd-table__body-cell{padding:0 .5rem}.qd-table__body--plain td.qd-table__body-cell--merged{padding:.5rem 0;vertical-align:top}.qd-table__body--plain td .qd-table__body-cell--merged-headings{width:33%;padding-left:1rem;color:#757575;overflow-wrap:break-word}.qd-table__body--plain td .qd-table__body-cell--merged-headings+.qd-table__body-cell{width:66%}.qd-table__body--plain td .qd-table__body-cell--merged-headings+.qd-table__body-cell>*{overflow-wrap:break-word;text-align:left}@media(max-width:959.98px){.qd-table__body--plain td.qd-table__body-cell--merged{display:grid;max-width:100%;grid-template-columns:fit-content(66%) 1fr}.qd-table__body--plain td.qd-table__body-cell--merged>div:first-child{display:block;font-weight:500;grid-column:1/-1;line-height:1.5rem}.qd-table__body--plain td.qd-table__body-cell--merged>div:first-child>span.qd-table__body-cell{display:block;width:auto;padding-left:1rem}.qd-table__body--plain td.qd-table__body-cell--merged>div:not(:first-child){display:grid;grid-column:1/-1;grid-template-columns:subgrid}.qd-table__body--plain td.qd-table__body-cell--merged>div:not(:first-child)>span.qd-table__body-cell--merged-headings{display:block;overflow:hidden;width:auto;min-width:0;padding-right:0;padding-left:1rem;color:#757575;-webkit-hyphens:auto;hyphens:auto;line-height:1.5rem;overflow-wrap:break-word;text-overflow:ellipsis}.qd-table__body--plain td.qd-table__body-cell--merged>div:not(:first-child)>span.qd-table__body-cell{display:block;overflow:hidden;width:auto;min-width:0;padding:0 .5rem;-webkit-hyphens:auto;hyphens:auto;line-height:1.5rem;overflow-wrap:break-word;text-align:left;text-overflow:ellipsis}.qd-table__body--plain td.qd-table__body-cell--merged>div:not(:first-child)>span.qd-table__body-cell>*{display:block;overflow:hidden;-webkit-hyphens:auto;hyphens:auto;overflow-wrap:break-word;text-align:left;text-overflow:ellipsis}}.qd-table__body--plain td span.qd-table__body-cell--boolean{display:flex;align-items:center}.qd-table__body--plain td span.qd-table__body-cell--progress{flex-grow:1;align-self:center;padding-top:0}.qd-table__body--plain td span.qd-table__body-cell--status{margin-top:-.5rem}.qd-table__body--plain td span.qd-table__body-cell--text .text{min-height:auto;padding-top:0;line-height:1.5rem}.qd-table__body--plain td span.qd-table__body-cell--text .text+.text{margin-top:.1875rem}.qd-table__body--plain tr:hover{background-color:#f5f5f5}.qd-table__body--plain tr.hasAction{cursor:pointer}.qd-table__body--plain tr.hasAction:hover{background-color:#f2f7fa}.qd-table__body--plain tr.qd-table__body-row--last-visited{animation:last-visited-fade 1.5s linear}@keyframes last-visited-fade{0%,33%{background-color:#c3e8cd}to{background-color:transparent}}.loading-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background-color:#0003}\n"], dependencies: [{ kind: "component", type: QdSpinnerComponent, selector: "qd-spinner" }, { kind: "component", type: QdTableRowComponent, selector: "[qd-table-row]", inputs: ["config", "rowData", "rowIndex", "data-test-id"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
26544
26893
|
}
|
|
26545
26894
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdTableBodyComponent, decorators: [{
|
|
26546
26895
|
type: Component,
|
|
@@ -26680,7 +27029,7 @@ class QdTableSortComponent {
|
|
|
26680
27029
|
return (!this.isActive && direction !== targetDirection) || direction === targetDirection;
|
|
26681
27030
|
}
|
|
26682
27031
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdTableSortComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
26683
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdTableSortComponent, isStandalone: false, selector: "qd-table-sort", inputs: { isSortable: "isSortable", config: "config", column: "column", testId: ["data-test-id", "testId"] }, host: { listeners: { "mouseenter": "handleMouseEnter()", "mouseleave": "handleMouseLeave()", "click": "handleClick()" }, properties: { "class.sortable": "isSortable", "class.active": "isActive", "class.hovered": "isHovered" } }, ngImport: i0, template: "<div class=\"heading\">\n <ng-content></ng-content>\n</div>\n\n@if (isSortable) {\n<div class=\"buttons\" [style.opacity]=\"getOpacity()\" [attr.data-test-id]=\"testId + '-buttons'\">\n @if (showDesc$ | async) {\n <qd-icon icon=\"arrowDown\" [attr.data-test-id]=\"testId + '-button-arrow-down'\"></qd-icon>\n } @if (showAsc$ | async) {\n <qd-icon icon=\"arrowTop\" [attr.data-test-id]=\"testId + '-button-arrow-top'\"></qd-icon>\n }\n</div>\n}\n", styles: [":host.sortable{display:flex;width:100%;height:2.625rem;box-sizing:content-box;justify-content:flex-end;border:solid rgb(229,229,229);border-width:0 1rem;margin-top:-.125rem;margin-left:-1rem;cursor:pointer}:host.active,:host.hovered{border-color:#d5d5d5;background:#d5d5d5}:host.active .buttons,:host.hovered .buttons{opacity:1!important}:host .heading{flex-grow:1}:host .buttons{width:1.75rem;margin-left:-1.875rem;transform:translate(1.75rem)}.qd-icon{display:inline-flex;width:.5rem;font-size:1rem;font-weight:400;transform:translate(-.625rem)}\n"], dependencies: [{ kind: "component", type: QdIconComponent, selector: "qd-icon", inputs: ["icon", "status"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
27032
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdTableSortComponent, isStandalone: false, selector: "qd-table-sort", inputs: { isSortable: "isSortable", config: "config", column: "column", testId: ["data-test-id", "testId"] }, host: { listeners: { "mouseenter": "handleMouseEnter()", "mouseleave": "handleMouseLeave()", "click": "handleClick()" }, properties: { "class.sortable": "isSortable", "class.active": "isActive", "class.hovered": "isHovered" } }, ngImport: i0, template: "<div class=\"heading\">\n <ng-content></ng-content>\n</div>\n\n@if (isSortable) {\n<div class=\"buttons\" [style.opacity]=\"getOpacity()\" [attr.data-test-id]=\"testId + '-buttons'\">\n @if (showDesc$ | async) {\n <qd-icon icon=\"arrowDown\" [attr.data-test-id]=\"testId + '-button-arrow-down'\"></qd-icon>\n } @if (showAsc$ | async) {\n <qd-icon icon=\"arrowTop\" [attr.data-test-id]=\"testId + '-button-arrow-top'\"></qd-icon>\n }\n</div>\n}\n", styles: [":host.sortable{display:flex;width:100%;height:2.625rem;box-sizing:content-box;justify-content:flex-end;border:solid rgb(229,229,229);border-width:0 1rem;margin-top:-.125rem;margin-left:-1rem;cursor:pointer}:host.active,:host.hovered{border-color:#d5d5d5;background:#d5d5d5}:host.active .buttons,:host.hovered .buttons{opacity:1!important}:host .heading{flex-grow:1}:host .buttons{width:1.75rem;margin-left:-1.875rem;transform:translate(1.75rem)}.qd-icon{display:inline-flex;width:.5rem;font-size:1rem;font-weight:400;transform:translate(-.625rem)}\n"], dependencies: [{ kind: "component", type: QdIconComponent, selector: "qd-icon", inputs: ["icon", "status"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
26684
27033
|
}
|
|
26685
27034
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdTableSortComponent, decorators: [{
|
|
26686
27035
|
type: Component,
|
|
@@ -26748,7 +27097,7 @@ class QdTableHeadComponent {
|
|
|
26748
27097
|
return this.config.columns.find(column => column.column === columnName)?.tooltip;
|
|
26749
27098
|
}
|
|
26750
27099
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdTableHeadComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
26751
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdTableHeadComponent, isStandalone: false, selector: "[qd-table-head]", inputs: { config: "config", testId: ["data-test-id", "testId"] }, host: { properties: { "attr.data-test-id": "this.dataTestId" }, classAttribute: "qd-table__head" }, ngImport: i0, template: "@if (this.config.selection) {\n<th\n class=\"qd-table__head-cell qd-table__head-cell--selection\"\n scope=\"col\"\n [attr.data-test-id]=\"testId + '-header-selection'\"\n></th>\n} @for (head of headData; track head; let i = $index; let l = $last) { @if (isHeadRendered$(i) | async) {\n<th\n [ngClass]=\"{\n 'qd-table__head-cell': true,\n 'qd-right-aligned': isRightAligned(head),\n 'main-column': isMainColumn(head),\n 'last-column': isLastColumn(head)\n }\"\n scope=\"col\"\n [attr.data-test-id]=\"testId + '-header-' + head\"\n>\n <qd-table-sort\n [isSortable]=\"getSortableByColumn(head)\"\n [config]=\"getSortConfig(head)\"\n [column]=\"head\"\n [data-test-id]=\"testId + '-sort'\"\n >\n @if (translations) {\n {{ getI18n(head) | translate }}\n } @if (!translations) {\n {{ capitalize(head) }}\n }\n <qd-tooltip-icon [tooltip]=\"getTooltip(head)\"></qd-tooltip-icon>\n </qd-table-sort>\n</th>\n} } @if (config.secondaryActions?.length > 0) {\n<th\n class=\"qd-table__head-cell qd-table__head-cell--secondaryActions\"\n scope=\"col\"\n [attr.data-test-id]=\"testId + '-header-secondary-actions'\"\n></th>\n}\n", styles: [":host .qd-table__head-cell{white-space:nowrap}:host .qd-table__head-cell--filling-width{width:100%}:host .qd-right-aligned{text-align:right}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: QdTooltipIconComponent, selector: "qd-tooltip-icon", inputs: ["tooltip"] }, { kind: "component", type: QdTableSortComponent, selector: "qd-table-sort", inputs: ["isSortable", "config", "column", "data-test-id"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
27100
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdTableHeadComponent, isStandalone: false, selector: "[qd-table-head]", inputs: { config: "config", testId: ["data-test-id", "testId"] }, host: { properties: { "attr.data-test-id": "this.dataTestId" }, classAttribute: "qd-table__head" }, ngImport: i0, template: "@if (this.config.selection) {\n<th\n class=\"qd-table__head-cell qd-table__head-cell--selection\"\n scope=\"col\"\n [attr.data-test-id]=\"testId + '-header-selection'\"\n></th>\n} @for (head of headData; track head; let i = $index; let l = $last) { @if (isHeadRendered$(i) | async) {\n<th\n [ngClass]=\"{\n 'qd-table__head-cell': true,\n 'qd-right-aligned': isRightAligned(head),\n 'main-column': isMainColumn(head),\n 'last-column': isLastColumn(head)\n }\"\n scope=\"col\"\n [attr.data-test-id]=\"testId + '-header-' + head\"\n>\n <qd-table-sort\n [isSortable]=\"getSortableByColumn(head)\"\n [config]=\"getSortConfig(head)\"\n [column]=\"head\"\n [data-test-id]=\"testId + '-sort'\"\n >\n @if (translations) {\n {{ getI18n(head) | translate }}\n } @if (!translations) {\n {{ capitalize(head) }}\n }\n <qd-tooltip-icon [tooltip]=\"getTooltip(head)\"></qd-tooltip-icon>\n </qd-table-sort>\n</th>\n} } @if (config.secondaryActions?.length > 0) {\n<th\n class=\"qd-table__head-cell qd-table__head-cell--secondaryActions\"\n scope=\"col\"\n [attr.data-test-id]=\"testId + '-header-secondary-actions'\"\n></th>\n}\n", styles: [":host .qd-table__head-cell{white-space:nowrap}:host .qd-table__head-cell--filling-width{width:100%}:host .qd-right-aligned{text-align:right}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: QdTooltipIconComponent, selector: "qd-tooltip-icon", inputs: ["tooltip"] }, { kind: "component", type: QdTableSortComponent, selector: "qd-table-sort", inputs: ["isSortable", "config", "column", "data-test-id"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
26752
27101
|
}
|
|
26753
27102
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdTableHeadComponent, decorators: [{
|
|
26754
27103
|
type: Component,
|
|
@@ -26879,6 +27228,15 @@ class QdTableComponent {
|
|
|
26879
27228
|
emptyStateService = inject(QdTableEmptyStateService);
|
|
26880
27229
|
responsiveRowService = inject(QdTableResponsiveRowService);
|
|
26881
27230
|
fillingWidthService = inject(QdTableFillingWidthService);
|
|
27231
|
+
scrollAnchorService = inject(QdTableScrollAnchorService);
|
|
27232
|
+
scrollAnchorHook = afterEveryRender({
|
|
27233
|
+
earlyRead: () => {
|
|
27234
|
+
this.initializeScrollAnchorService();
|
|
27235
|
+
this.scrollAnchorService.measureLayoutChange();
|
|
27236
|
+
},
|
|
27237
|
+
write: () => this.scrollAnchorService.catchLayoutChange(),
|
|
27238
|
+
read: () => this.scrollAnchorService.takeSnapshot()
|
|
27239
|
+
});
|
|
26882
27240
|
breakpointService = inject(QdBreakpointService);
|
|
26883
27241
|
resolverService = inject(QdTableResolverService);
|
|
26884
27242
|
confirmationDialogService = inject(QdConfirmationDialogOpenerService);
|
|
@@ -27023,6 +27381,7 @@ class QdTableComponent {
|
|
|
27023
27381
|
this.tableStoreService.updateTableStateRecentSecondaryAction(undefined);
|
|
27024
27382
|
this.tableStoreService.resetConnectorStates();
|
|
27025
27383
|
this.fillingWidthService.destroy();
|
|
27384
|
+
this.scrollAnchorService.destroy();
|
|
27026
27385
|
this._recentSecondaryActionsSubscription?.unsubscribe();
|
|
27027
27386
|
this._rowSelectionServiceSubscription?.unsubscribe();
|
|
27028
27387
|
this._emptyStateActionServiceSubscription?.unsubscribe();
|
|
@@ -27059,6 +27418,12 @@ class QdTableComponent {
|
|
|
27059
27418
|
initializeFillingWidthService() {
|
|
27060
27419
|
this.fillingWidthService.initialize(this.element.nativeElement, this.config);
|
|
27061
27420
|
}
|
|
27421
|
+
initializeScrollAnchorService() {
|
|
27422
|
+
const host = this.element.nativeElement;
|
|
27423
|
+
const table = host.querySelector('table');
|
|
27424
|
+
if (table)
|
|
27425
|
+
this.scrollAnchorService.initialize(host, table);
|
|
27426
|
+
}
|
|
27062
27427
|
updateFillingWidthServiceTableConfig() {
|
|
27063
27428
|
this.fillingWidthService.updateTableConfig(this.config);
|
|
27064
27429
|
}
|
|
@@ -27175,10 +27540,11 @@ class QdTableComponent {
|
|
|
27175
27540
|
QdTableResponsiveRowService,
|
|
27176
27541
|
QdTableRowSelectionService,
|
|
27177
27542
|
QdTableFillingWidthService,
|
|
27543
|
+
QdTableScrollAnchorService,
|
|
27178
27544
|
QdTableResolverService,
|
|
27179
27545
|
QdTableExternalActionResultService,
|
|
27180
27546
|
QdTableSortRouterConnectorService
|
|
27181
|
-
], viewQueries: [{ propertyName: "paginator", first: true, predicate: QdTablePaginatorComponent, descendants: true }], usesOnChanges: true, ngImport: i0, template: "<table [class]=\"'qd-table__table'\">\n <tr qd-table-head [config]=\"config\" [data-test-id]=\"testId\"></tr>\n <tbody qd-table-body [config]=\"config\" [data]=\"(data$ | async) ?? []\" [data-test-id]=\"testId\"></tbody>\n</table>\n\n@if (hasPagination) {\n<qd-table-paginator [config]=\"config\" [data-test-id]=\"testId\"></qd-table-paginator>\n} @if (hasEmptyStateView$ | async) {\n<qd-table-empty-state [config]=\"config.emptyStateView\"></qd-table-empty-state>\n}\n", styles: [":host{display:inline-flex;flex-direction:column}:host .qd-table__table{background:#fff;border-spacing:0;color:#171717;font-size:.875rem;font-weight:400;line-height:2.5rem}:host .qd-table__head,:host .qd-table__body{vertical-align:center}:host .qd-table__head{background:#e5e5e5;text-align:left}:host .qd-table__head ::ng-deep .qd-table__head-cell{font-weight:600}:host .qd-table__body{color:#171717}:host ::ng-deep .qd-table__head-cell,:host ::ng-deep .qd-table__body-cell{padding:.125rem 1rem 0;vertical-align:top}:host ::ng-deep .qd-table__head-cell--selection,:host ::ng-deep .qd-table__body-cell--selection{width:1.875rem;padding-top:.1875rem;text-align:center}:host ::ng-deep .qd-table__head-cell--actions-inline-menu,:host ::ng-deep .qd-table__body-cell--actions-inline-menu{padding-top:.125rem;vertical-align:top}:host.main-column-fills-width.table-has-remaining-width:not(.table-has-right-aligned-filling-column) ::ng-deep th.main-column,:host.main-column-fills-width.table-has-remaining-width:not(.table-has-right-aligned-filling-column) ::ng-deep td.main-column{width:100%}:host.main-column-fills-width.table-has-remaining-width ::ng-deep th:not(.main-column),:host.main-column-fills-width.table-has-remaining-width ::ng-deep td:not(.main-column){white-space:nowrap}:host.last-column-fills-width.table-has-remaining-width:not(.table-has-right-aligned-filling-column) ::ng-deep th.last-column,:host.last-column-fills-width.table-has-remaining-width:not(.table-has-right-aligned-filling-column) ::ng-deep td.last-column{width:100%}:host.last-column-fills-width.table-has-remaining-width ::ng-deep th:not(.last-column),:host.last-column-fills-width.table-has-remaining-width ::ng-deep td:not(.last-column){white-space:nowrap}:host.harmonized{width:100%}\n"], dependencies: [{ kind: "component", type: QdTableBodyComponent, selector: "[qd-table-body]", inputs: ["config", "data", "data-test-id"] }, { kind: "component", type: QdTableEmptyStateComponent, selector: "qd-table-empty-state", inputs: ["config"] }, { kind: "component", type: QdTableHeadComponent, selector: "[qd-table-head]", inputs: ["config", "data-test-id"] }, { kind: "component", type: QdTablePaginatorComponent, selector: "qd-table-paginator", inputs: ["config", "data-test-id"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
27547
|
+
], viewQueries: [{ propertyName: "paginator", first: true, predicate: QdTablePaginatorComponent, descendants: true }], usesOnChanges: true, ngImport: i0, template: "<table [class]=\"'qd-table__table'\" [attr.data-test-id]=\"testId + '-element'\">\n <tr qd-table-head [config]=\"config\" [data-test-id]=\"testId\"></tr>\n <tbody qd-table-body [config]=\"config\" [data]=\"(data$ | async) ?? []\" [data-test-id]=\"testId\"></tbody>\n</table>\n\n@if (hasPagination) {\n<qd-table-paginator [config]=\"config\" [data-test-id]=\"testId\"></qd-table-paginator>\n} @if (hasEmptyStateView$ | async) {\n<qd-table-empty-state [config]=\"config.emptyStateView\"></qd-table-empty-state>\n}\n", styles: [":host{display:inline-flex;flex-direction:column}:host .qd-table__table{background:#fff;border-spacing:0;color:#171717;font-size:.875rem;font-weight:400;line-height:2.5rem}:host .qd-table__head,:host .qd-table__body{vertical-align:center}:host .qd-table__head{background:#e5e5e5;text-align:left}:host .qd-table__head ::ng-deep .qd-table__head-cell{font-weight:600}:host .qd-table__body{color:#171717}:host ::ng-deep .qd-table__head-cell,:host ::ng-deep .qd-table__body-cell{padding:.125rem 1rem 0;vertical-align:top}:host ::ng-deep .qd-table__head-cell--selection,:host ::ng-deep .qd-table__body-cell--selection{width:1.875rem;padding-top:.1875rem;text-align:center}:host ::ng-deep .qd-table__head-cell--actions-inline-menu,:host ::ng-deep .qd-table__body-cell--actions-inline-menu{padding-top:.125rem;vertical-align:top}:host.main-column-fills-width.table-has-remaining-width:not(.table-has-right-aligned-filling-column) ::ng-deep th.main-column,:host.main-column-fills-width.table-has-remaining-width:not(.table-has-right-aligned-filling-column) ::ng-deep td.main-column{width:100%}:host.main-column-fills-width.table-has-remaining-width ::ng-deep th:not(.main-column),:host.main-column-fills-width.table-has-remaining-width ::ng-deep td:not(.main-column){white-space:nowrap}:host.last-column-fills-width.table-has-remaining-width:not(.table-has-right-aligned-filling-column) ::ng-deep th.last-column,:host.last-column-fills-width.table-has-remaining-width:not(.table-has-right-aligned-filling-column) ::ng-deep td.last-column{width:100%}:host.last-column-fills-width.table-has-remaining-width ::ng-deep th:not(.last-column),:host.last-column-fills-width.table-has-remaining-width ::ng-deep td:not(.last-column){white-space:nowrap}:host.harmonized{width:100%}\n"], dependencies: [{ kind: "component", type: QdTableBodyComponent, selector: "[qd-table-body]", inputs: ["config", "data", "data-test-id"] }, { kind: "component", type: QdTableEmptyStateComponent, selector: "qd-table-empty-state", inputs: ["config"] }, { kind: "component", type: QdTableHeadComponent, selector: "[qd-table-head]", inputs: ["config", "data-test-id"] }, { kind: "component", type: QdTablePaginatorComponent, selector: "qd-table-paginator", inputs: ["config", "data-test-id"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
27182
27548
|
}
|
|
27183
27549
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdTableComponent, decorators: [{
|
|
27184
27550
|
type: Component,
|
|
@@ -27190,6 +27556,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
27190
27556
|
QdTableResponsiveRowService,
|
|
27191
27557
|
QdTableRowSelectionService,
|
|
27192
27558
|
QdTableFillingWidthService,
|
|
27559
|
+
QdTableScrollAnchorService,
|
|
27193
27560
|
QdTableResolverService,
|
|
27194
27561
|
QdTableExternalActionResultService,
|
|
27195
27562
|
QdTableSortRouterConnectorService
|
|
@@ -27199,7 +27566,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
27199
27566
|
'[class.last-column-fills-width]': 'whichColumnFillsWidth === "last"',
|
|
27200
27567
|
'[class.harmonized]': 'whichColumnFillsWidth === "harmonized"',
|
|
27201
27568
|
'[attr.data-qd-no-horizontal-padding-small]': 'true'
|
|
27202
|
-
}, standalone: false, template: "<table [class]=\"'qd-table__table'\">\n <tr qd-table-head [config]=\"config\" [data-test-id]=\"testId\"></tr>\n <tbody qd-table-body [config]=\"config\" [data]=\"(data$ | async) ?? []\" [data-test-id]=\"testId\"></tbody>\n</table>\n\n@if (hasPagination) {\n<qd-table-paginator [config]=\"config\" [data-test-id]=\"testId\"></qd-table-paginator>\n} @if (hasEmptyStateView$ | async) {\n<qd-table-empty-state [config]=\"config.emptyStateView\"></qd-table-empty-state>\n}\n", styles: [":host{display:inline-flex;flex-direction:column}:host .qd-table__table{background:#fff;border-spacing:0;color:#171717;font-size:.875rem;font-weight:400;line-height:2.5rem}:host .qd-table__head,:host .qd-table__body{vertical-align:center}:host .qd-table__head{background:#e5e5e5;text-align:left}:host .qd-table__head ::ng-deep .qd-table__head-cell{font-weight:600}:host .qd-table__body{color:#171717}:host ::ng-deep .qd-table__head-cell,:host ::ng-deep .qd-table__body-cell{padding:.125rem 1rem 0;vertical-align:top}:host ::ng-deep .qd-table__head-cell--selection,:host ::ng-deep .qd-table__body-cell--selection{width:1.875rem;padding-top:.1875rem;text-align:center}:host ::ng-deep .qd-table__head-cell--actions-inline-menu,:host ::ng-deep .qd-table__body-cell--actions-inline-menu{padding-top:.125rem;vertical-align:top}:host.main-column-fills-width.table-has-remaining-width:not(.table-has-right-aligned-filling-column) ::ng-deep th.main-column,:host.main-column-fills-width.table-has-remaining-width:not(.table-has-right-aligned-filling-column) ::ng-deep td.main-column{width:100%}:host.main-column-fills-width.table-has-remaining-width ::ng-deep th:not(.main-column),:host.main-column-fills-width.table-has-remaining-width ::ng-deep td:not(.main-column){white-space:nowrap}:host.last-column-fills-width.table-has-remaining-width:not(.table-has-right-aligned-filling-column) ::ng-deep th.last-column,:host.last-column-fills-width.table-has-remaining-width:not(.table-has-right-aligned-filling-column) ::ng-deep td.last-column{width:100%}:host.last-column-fills-width.table-has-remaining-width ::ng-deep th:not(.last-column),:host.last-column-fills-width.table-has-remaining-width ::ng-deep td:not(.last-column){white-space:nowrap}:host.harmonized{width:100%}\n"] }]
|
|
27569
|
+
}, standalone: false, template: "<table [class]=\"'qd-table__table'\" [attr.data-test-id]=\"testId + '-element'\">\n <tr qd-table-head [config]=\"config\" [data-test-id]=\"testId\"></tr>\n <tbody qd-table-body [config]=\"config\" [data]=\"(data$ | async) ?? []\" [data-test-id]=\"testId\"></tbody>\n</table>\n\n@if (hasPagination) {\n<qd-table-paginator [config]=\"config\" [data-test-id]=\"testId\"></qd-table-paginator>\n} @if (hasEmptyStateView$ | async) {\n<qd-table-empty-state [config]=\"config.emptyStateView\"></qd-table-empty-state>\n}\n", styles: [":host{display:inline-flex;flex-direction:column}:host .qd-table__table{background:#fff;border-spacing:0;color:#171717;font-size:.875rem;font-weight:400;line-height:2.5rem}:host .qd-table__head,:host .qd-table__body{vertical-align:center}:host .qd-table__head{background:#e5e5e5;text-align:left}:host .qd-table__head ::ng-deep .qd-table__head-cell{font-weight:600}:host .qd-table__body{color:#171717}:host ::ng-deep .qd-table__head-cell,:host ::ng-deep .qd-table__body-cell{padding:.125rem 1rem 0;vertical-align:top}:host ::ng-deep .qd-table__head-cell--selection,:host ::ng-deep .qd-table__body-cell--selection{width:1.875rem;padding-top:.1875rem;text-align:center}:host ::ng-deep .qd-table__head-cell--actions-inline-menu,:host ::ng-deep .qd-table__body-cell--actions-inline-menu{padding-top:.125rem;vertical-align:top}:host.main-column-fills-width.table-has-remaining-width:not(.table-has-right-aligned-filling-column) ::ng-deep th.main-column,:host.main-column-fills-width.table-has-remaining-width:not(.table-has-right-aligned-filling-column) ::ng-deep td.main-column{width:100%}:host.main-column-fills-width.table-has-remaining-width ::ng-deep th:not(.main-column),:host.main-column-fills-width.table-has-remaining-width ::ng-deep td:not(.main-column){white-space:nowrap}:host.last-column-fills-width.table-has-remaining-width:not(.table-has-right-aligned-filling-column) ::ng-deep th.last-column,:host.last-column-fills-width.table-has-remaining-width:not(.table-has-right-aligned-filling-column) ::ng-deep td.last-column{width:100%}:host.last-column-fills-width.table-has-remaining-width ::ng-deep th:not(.last-column),:host.last-column-fills-width.table-has-remaining-width ::ng-deep td:not(.last-column){white-space:nowrap}:host.harmonized{width:100%}\n"] }]
|
|
27203
27570
|
}], propDecorators: { config: [{
|
|
27204
27571
|
type: Input
|
|
27205
27572
|
}], data: [{
|
|
@@ -27740,7 +28107,7 @@ class QdSectionToolbarActionComponent {
|
|
|
27740
28107
|
}
|
|
27741
28108
|
}
|
|
27742
28109
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdSectionToolbarActionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
27743
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdSectionToolbarActionComponent, isStandalone: false, selector: "qd-section-toolbar-action", inputs: { config: "config" }, ngImport: i0, template: "@if (singleAction$ | async; as singleAction) {\n<button\n qdStopPropagation\n qdButton\n qdButtonGhost\n color=\"primary\"\n [icon]=\"singleAction.icon\"\n [disabled]=\"singleAction.isDisabled\"\n (click)=\"singleAction.handler()\"\n>\n {{ singleAction.label.i18n | translate }}\n</button>\n} @if (remainingSingleAction$ | async; as remainingSingleAction) {\n<button\n qdStopPropagation\n qdButton\n qdButtonGhost\n color=\"primary\"\n [icon]=\"remainingSingleAction.icon\"\n [disabled]=\"remainingSingleAction.isDisabled\"\n (click)=\"remainingSingleAction.handler()\"\n>\n {{ remainingSingleAction.label.i18n | translate }}\n</button>\n} @if (groupedActionsMenu$ | async; as groupedActionsMenu) {\n<button qdButtonGhost [qdMenuButton]=\"groupedActionsMenu\">\n {{ \"i18n.qd.section.actions.menuButton.label\" | translate }}\n</button>\n}\n", styles: [":host{margin-left:.75rem}:host:not(:has(button)){margin-left:0}\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: QdMenuButtonComponent, selector: "button[qdMenuButton], a[qdMenuButton]", inputs: ["qdMenuButton", "data-test-id", "autoSize"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
28110
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdSectionToolbarActionComponent, isStandalone: false, selector: "qd-section-toolbar-action", inputs: { config: "config" }, ngImport: i0, template: "@if (singleAction$ | async; as singleAction) {\n<button\n qdStopPropagation\n qdButton\n qdButtonGhost\n color=\"primary\"\n [icon]=\"singleAction.icon\"\n [disabled]=\"singleAction.isDisabled\"\n (click)=\"singleAction.handler()\"\n>\n {{ singleAction.label.i18n | translate }}\n</button>\n} @if (remainingSingleAction$ | async; as remainingSingleAction) {\n<button\n qdStopPropagation\n qdButton\n qdButtonGhost\n color=\"primary\"\n [icon]=\"remainingSingleAction.icon\"\n [disabled]=\"remainingSingleAction.isDisabled\"\n (click)=\"remainingSingleAction.handler()\"\n>\n {{ remainingSingleAction.label.i18n | translate }}\n</button>\n} @if (groupedActionsMenu$ | async; as groupedActionsMenu) {\n<button qdButtonGhost [qdMenuButton]=\"groupedActionsMenu\">\n {{ \"i18n.qd.section.actions.menuButton.label\" | translate }}\n</button>\n}\n", styles: [":host{margin-left:.75rem}:host:not(:has(button)){margin-left:0}\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: QdMenuButtonComponent, selector: "button[qdMenuButton], a[qdMenuButton]", inputs: ["qdMenuButton", "data-test-id", "autoSize"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
27744
28111
|
}
|
|
27745
28112
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdSectionToolbarActionComponent, decorators: [{
|
|
27746
28113
|
type: Component,
|
|
@@ -27788,7 +28155,7 @@ class QdSectionToolbarComponent {
|
|
|
27788
28155
|
this.isCollapsed = !this.isCollapsed;
|
|
27789
28156
|
}
|
|
27790
28157
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdSectionToolbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
27791
|
-
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\">{{ config.title.i18n | 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 <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}: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{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.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: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
28158
|
+
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\">{{ config.title.i18n | 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 <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}: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{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: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
27792
28159
|
}
|
|
27793
28160
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdSectionToolbarComponent, decorators: [{
|
|
27794
28161
|
type: Component,
|
|
@@ -28701,7 +29068,7 @@ class QdTreeRowActionsSecondaryMenuComponent {
|
|
|
28701
29068
|
.subscribe(({ payload }) => this._viewonly$.next(payload.isViewonly));
|
|
28702
29069
|
}
|
|
28703
29070
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdTreeRowActionsSecondaryMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
28704
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdTreeRowActionsSecondaryMenuComponent, isStandalone: false, selector: "[qd-tree-row-actions-secondary-menu]", inputs: { rowIndex: "rowIndex", rowData: "rowData", config: "config", testId: "testId" }, ngImport: i0, template: "@if (hasVisibleActions$ | async) {\n<button\n type=\"button\"\n [qdPopoverOnClick]=\"menu\"\n [qdPopoverCloseStrategy]=\"'onEveryClick'\"\n [qdPopoverStopPropagation]=\"true\"\n [qdPopoverMinWidth]=\"200\"\n class=\"menu-button\"\n [attr.data-test-id]=\"testId + '-toggler'\"\n>\n <qd-icon icon=\"overflowMenuHorizontal\"></qd-icon>\n</button>\n<ng-template #menu>\n @for (action of actions$ | async; track action; let i = $index) { @if (!action.isHidden) {\n <button\n class=\"action-button\"\n (click)=\"handleSecondaryAction(action.type, rowIndex, action.isHidden)\"\n [attr.data-test-id]=\"testId + '-' + i\"\n >\n {{ action.i18n | translate }}\n </button>\n } }\n</ng-template>\n}\n", styles: [".menu-button{display:flex;padding:0 .625rem 0 .375rem;background:unset;color:#454545;font-size:2rem;vertical-align:middle}.menu-button:hover,.menu-button:focus{color:#000}.action-button{display:block;width:100%;min-height:2rem;padding:0 1rem;background:#fff0;font-size:.75rem;text-align:left}.action-button:hover{background-color:#f2f7fa}\n"], dependencies: [{ 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: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
29071
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdTreeRowActionsSecondaryMenuComponent, isStandalone: false, selector: "[qd-tree-row-actions-secondary-menu]", inputs: { rowIndex: "rowIndex", rowData: "rowData", config: "config", testId: "testId" }, ngImport: i0, template: "@if (hasVisibleActions$ | async) {\n<button\n type=\"button\"\n [qdPopoverOnClick]=\"menu\"\n [qdPopoverCloseStrategy]=\"'onEveryClick'\"\n [qdPopoverStopPropagation]=\"true\"\n [qdPopoverMinWidth]=\"200\"\n class=\"menu-button\"\n [attr.data-test-id]=\"testId + '-toggler'\"\n>\n <qd-icon icon=\"overflowMenuHorizontal\"></qd-icon>\n</button>\n<ng-template #menu>\n @for (action of actions$ | async; track action; let i = $index) { @if (!action.isHidden) {\n <button\n class=\"action-button\"\n (click)=\"handleSecondaryAction(action.type, rowIndex, action.isHidden)\"\n [attr.data-test-id]=\"testId + '-' + i\"\n >\n {{ action.i18n | translate }}\n </button>\n } }\n</ng-template>\n}\n", styles: [".menu-button{display:flex;padding:0 .625rem 0 .375rem;background:unset;color:#454545;font-size:2rem;vertical-align:middle}.menu-button:hover,.menu-button:focus{color:#000}.action-button{display:block;width:100%;min-height:2rem;padding:0 1rem;background:#fff0;font-size:.75rem;text-align:left}.action-button:hover{background-color:#f2f7fa}\n"], dependencies: [{ 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: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
28705
29072
|
}
|
|
28706
29073
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdTreeRowActionsSecondaryMenuComponent, decorators: [{
|
|
28707
29074
|
type: Component,
|
|
@@ -28772,7 +29139,7 @@ class QdTreeRowComponent {
|
|
|
28772
29139
|
};
|
|
28773
29140
|
}
|
|
28774
29141
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdTreeRowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
28775
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdTreeRowComponent, isStandalone: false, selector: "[qd-tree-row]", inputs: { columnsDetails: "columnsDetails", indentation: "indentation", config: "config", testId: ["data-test-id", "testId"], rowData: "rowData", rowIndex: "rowIndex" }, host: { properties: { "attr.data-test-id": "this.testId" } }, providers: [QdDataFacetsContextService], ngImport: i0, template: "@for (column of columnsDetails; track column) { @if (column.type === 'group') {\n<td\n (click)=\"onExpanderClick()\"\n [class]=\"\n [\n 'qd-tree-body-cell',\n 'qd-tree-body-cell-group',\n 'qd-tree-body-cell-group-index-' + indentation,\n getCellClass(column),\n rowData?.nestedRows ? ' expandable' : ''\n ].join(' ')\n \"\n [attr.data-test-id]=\"testId + '-cell-' + indentation\"\n>\n @if (rowData?.nestedRows) { @if (!expanded) {\n <qd-icon class=\"expander\" [attr.data-test-id]=\"testId + '-opening-expander'\" [icon]=\"'ctrlRight'\"></qd-icon>\n } @if (expanded) {\n <qd-icon class=\"expander\" [icon]=\"'ctrlDown'\"></qd-icon>\n } } @for (groupedColumn of $any(column).groupedColumns; track groupedColumn) { @if (rowData[groupedColumn.column]) {\n <span>{{ rowData[groupedColumn.column] }}</span>\n } }\n</td>\n} @else {\n<td\n [class]=\"'qd-tree-body-cell ' + getCellClass(column)\"\n [attr.data-test-id]=\"testId + '-cell-' + (column.column || column.index)\"\n>\n <ng-container *ngComponentOutlet=\"getComponentType(column); inputs: getComponentInputs(column)\"></ng-container>\n</td>\n} } @if (config.secondaryActions?.length > 0) {\n<td\n class=\"qd-tree-body-cell\"\n [attr.data-test-id]=\"testId + '-cell-inline-actions'\"\n qd-tree-row-actions-secondary-menu\n [config]=\"config\"\n [rowIndex]=\"columnsDetails[0].index\"\n [rowData]=\"rowData\"\n [testId]=\"testId + '-secondary-actions'\"\n></td>\n}\n", styles: ["[qd-tree-row] .qd-data-facets{display:block}[qd-tree-row] qd-data-facets-progress.qd-data-facets{transform:translateY(.1875rem)}[qd-tree-row] qd-data-facets-chip.qd-data-facets{display:contents}[qd-tree-row] qd-data-facets-text.qd-data-facets{margin:.625rem 0}\n"], dependencies: [{ kind: "directive", type: i1.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }, { kind: "component", type: QdIconComponent, selector: "qd-icon", inputs: ["icon", "status"] }, { kind: "component", type: QdTreeRowActionsSecondaryMenuComponent, selector: "[qd-tree-row-actions-secondary-menu]", inputs: ["rowIndex", "rowData", "config", "testId"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
29142
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdTreeRowComponent, isStandalone: false, selector: "[qd-tree-row]", inputs: { columnsDetails: "columnsDetails", indentation: "indentation", config: "config", testId: ["data-test-id", "testId"], rowData: "rowData", rowIndex: "rowIndex" }, host: { properties: { "attr.data-test-id": "this.testId" } }, providers: [QdDataFacetsContextService], ngImport: i0, template: "@for (column of columnsDetails; track column) { @if (column.type === 'group') {\n<td\n (click)=\"onExpanderClick()\"\n [class]=\"\n [\n 'qd-tree-body-cell',\n 'qd-tree-body-cell-group',\n 'qd-tree-body-cell-group-index-' + indentation,\n getCellClass(column),\n rowData?.nestedRows ? ' expandable' : ''\n ].join(' ')\n \"\n [attr.data-test-id]=\"testId + '-cell-' + indentation\"\n>\n @if (rowData?.nestedRows) { @if (!expanded) {\n <qd-icon class=\"expander\" [attr.data-test-id]=\"testId + '-opening-expander'\" [icon]=\"'ctrlRight'\"></qd-icon>\n } @if (expanded) {\n <qd-icon class=\"expander\" [icon]=\"'ctrlDown'\"></qd-icon>\n } } @for (groupedColumn of $any(column).groupedColumns; track groupedColumn) { @if (rowData[groupedColumn.column]) {\n <span>{{ rowData[groupedColumn.column] }}</span>\n } }\n</td>\n} @else {\n<td\n [class]=\"'qd-tree-body-cell ' + getCellClass(column)\"\n [attr.data-test-id]=\"testId + '-cell-' + (column.column || column.index)\"\n>\n <ng-container *ngComponentOutlet=\"getComponentType(column); inputs: getComponentInputs(column)\"></ng-container>\n</td>\n} } @if (config.secondaryActions?.length > 0) {\n<td\n class=\"qd-tree-body-cell\"\n [attr.data-test-id]=\"testId + '-cell-inline-actions'\"\n qd-tree-row-actions-secondary-menu\n [config]=\"config\"\n [rowIndex]=\"columnsDetails[0].index\"\n [rowData]=\"rowData\"\n [testId]=\"testId + '-secondary-actions'\"\n></td>\n}\n", styles: ["[qd-tree-row] .qd-data-facets{display:block}[qd-tree-row] qd-data-facets-progress.qd-data-facets{transform:translateY(.1875rem)}[qd-tree-row] qd-data-facets-chip.qd-data-facets{display:contents}[qd-tree-row] qd-data-facets-text.qd-data-facets{margin:.625rem 0}\n"], dependencies: [{ kind: "directive", type: i1$1.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }, { kind: "component", type: QdIconComponent, selector: "qd-icon", inputs: ["icon", "status"] }, { kind: "component", type: QdTreeRowActionsSecondaryMenuComponent, selector: "[qd-tree-row-actions-secondary-menu]", inputs: ["rowIndex", "rowData", "config", "testId"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
28776
29143
|
}
|
|
28777
29144
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdTreeRowComponent, decorators: [{
|
|
28778
29145
|
type: Component,
|
|
@@ -28818,7 +29185,7 @@ class QdTreeBodyComponent {
|
|
|
28818
29185
|
this.treeRowsService.updateRows(this.data);
|
|
28819
29186
|
}
|
|
28820
29187
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdTreeBodyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
28821
|
-
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.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.AsyncPipe, name: "async" }], encapsulation: i0.ViewEncapsulation.None });
|
|
29188
|
+
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 });
|
|
28822
29189
|
}
|
|
28823
29190
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdTreeBodyComponent, decorators: [{
|
|
28824
29191
|
type: Component,
|
|
@@ -28891,7 +29258,7 @@ class QdTreeHeadComponent {
|
|
|
28891
29258
|
return head[0].toUpperCase() + head.slice(1);
|
|
28892
29259
|
}
|
|
28893
29260
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdTreeHeadComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
28894
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdTreeHeadComponent, isStandalone: false, selector: "[qd-tree-head]", inputs: { config: "config", testId: ["data-test-id", "testId"] }, host: { properties: { "attr.data-test-id": "this.dataTestId" }, classAttribute: "qd-tree-head" }, ngImport: i0, template: "@for (head of headData; track head; let i = $index; let l = $last) { @if (isHeadRendered$(i) | async) {\n<th\n [ngClass]=\"{\n 'qd-tree-head-cell': true,\n 'main-column': isMainColumn(head),\n 'last-column': isLastColumn(head)\n }\"\n scope=\"col\"\n [attr.data-test-id]=\"testId + '-header-' + head\"\n>\n @if (translations) {\n {{ getI18n(head) | translate }}\n } @if (!translations) {\n {{ capitalize(head) }}\n }\n</th>\n} } @if (config.secondaryActions?.length > 0) {\n<th\n class=\"qd-tree__head-cell qd-table__head-cell--secondaryActions\"\n scope=\"col\"\n [attr.data-test-id]=\"testId + '-header-secondary-actions'\"\n></th>\n}\n", styles: [":host .qd-tree-head-cell{white-space:nowrap}:host .qd-tree-head-cell--filling-width{width:100%}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
29261
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdTreeHeadComponent, isStandalone: false, selector: "[qd-tree-head]", inputs: { config: "config", testId: ["data-test-id", "testId"] }, host: { properties: { "attr.data-test-id": "this.dataTestId" }, classAttribute: "qd-tree-head" }, ngImport: i0, template: "@for (head of headData; track head; let i = $index; let l = $last) { @if (isHeadRendered$(i) | async) {\n<th\n [ngClass]=\"{\n 'qd-tree-head-cell': true,\n 'main-column': isMainColumn(head),\n 'last-column': isLastColumn(head)\n }\"\n scope=\"col\"\n [attr.data-test-id]=\"testId + '-header-' + head\"\n>\n @if (translations) {\n {{ getI18n(head) | translate }}\n } @if (!translations) {\n {{ capitalize(head) }}\n }\n</th>\n} } @if (config.secondaryActions?.length > 0) {\n<th\n class=\"qd-tree__head-cell qd-table__head-cell--secondaryActions\"\n scope=\"col\"\n [attr.data-test-id]=\"testId + '-header-secondary-actions'\"\n></th>\n}\n", styles: [":host .qd-tree-head-cell{white-space:nowrap}:host .qd-tree-head-cell--filling-width{width:100%}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
28895
29262
|
}
|
|
28896
29263
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdTreeHeadComponent, decorators: [{
|
|
28897
29264
|
type: Component,
|
|
@@ -29083,7 +29450,7 @@ class QdTreeComponent {
|
|
|
29083
29450
|
QdTreeRowsService,
|
|
29084
29451
|
QdTableResponsiveRowService,
|
|
29085
29452
|
QdTableFillingWidthService
|
|
29086
|
-
], usesOnChanges: true, ngImport: i0, template: "<table>\n <tr qd-tree-head [config]=\"config\" [data-test-id]=\"testId\"></tr>\n <tbody qd-tree-body [config]=\"config\" [data]=\"data$ | async\" [data-test-id]=\"testId\"></tbody>\n</table>\n@if (hasEmptyStateView$ | async) {\n<qd-tree-empty-state [config]=\"config.emptyStateView\"></qd-tree-empty-state>\n}\n", styles: [":host{display:inline-flex;flex-direction:column}:host table{background:#fff;border-spacing:0;color:#171717;font-size:.875rem;font-weight:400;line-height:2.5rem}:host .qd-tree-head,:host .qd-tree-body{vertical-align:middle}:host .qd-tree-head{background:#e5e5e5;text-align:left}:host .qd-tree-head ::ng-deep .qd-tree-head-cell{font-weight:600}:host .qd-tree-body{color:#171717}:host ::ng-deep .qd-tree-head-cell,:host ::ng-deep .qd-tree-body-cell{padding:.125rem 1rem 0;vertical-align:top}:host.main-column-fills-width.table-has-remaining-width:not(.table-has-right-aligned-filling-column) ::ng-deep th.main-column,:host.main-column-fills-width.table-has-remaining-width:not(.table-has-right-aligned-filling-column) ::ng-deep td.main-column{width:100%}:host.main-column-fills-width.table-has-remaining-width ::ng-deep th:not(.main-column),:host.main-column-fills-width.table-has-remaining-width ::ng-deep td:not(.main-column){white-space:nowrap}:host.last-column-fills-width.table-has-remaining-width:not(.table-has-right-aligned-filling-column) ::ng-deep th.last-column,:host.last-column-fills-width.table-has-remaining-width:not(.table-has-right-aligned-filling-column) ::ng-deep td.last-column{width:100%}:host.last-column-fills-width.table-has-remaining-width ::ng-deep th:not(.last-column),:host.last-column-fills-width.table-has-remaining-width ::ng-deep td:not(.last-column){white-space:nowrap}\n"], dependencies: [{ kind: "component", type: QdTreeHeadComponent, selector: "[qd-tree-head]", inputs: ["config", "data-test-id"] }, { kind: "component", type: QdTreeBodyComponent, selector: "[qd-tree-body]", inputs: ["config", "data", "data-test-id"] }, { kind: "component", type: QdTreeEmptyStateComponent, selector: "qd-tree-empty-state", inputs: ["config"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }] });
|
|
29453
|
+
], usesOnChanges: true, ngImport: i0, template: "<table>\n <tr qd-tree-head [config]=\"config\" [data-test-id]=\"testId\"></tr>\n <tbody qd-tree-body [config]=\"config\" [data]=\"data$ | async\" [data-test-id]=\"testId\"></tbody>\n</table>\n@if (hasEmptyStateView$ | async) {\n<qd-tree-empty-state [config]=\"config.emptyStateView\"></qd-tree-empty-state>\n}\n", styles: [":host{display:inline-flex;flex-direction:column}:host table{background:#fff;border-spacing:0;color:#171717;font-size:.875rem;font-weight:400;line-height:2.5rem}:host .qd-tree-head,:host .qd-tree-body{vertical-align:middle}:host .qd-tree-head{background:#e5e5e5;text-align:left}:host .qd-tree-head ::ng-deep .qd-tree-head-cell{font-weight:600}:host .qd-tree-body{color:#171717}:host ::ng-deep .qd-tree-head-cell,:host ::ng-deep .qd-tree-body-cell{padding:.125rem 1rem 0;vertical-align:top}:host.main-column-fills-width.table-has-remaining-width:not(.table-has-right-aligned-filling-column) ::ng-deep th.main-column,:host.main-column-fills-width.table-has-remaining-width:not(.table-has-right-aligned-filling-column) ::ng-deep td.main-column{width:100%}:host.main-column-fills-width.table-has-remaining-width ::ng-deep th:not(.main-column),:host.main-column-fills-width.table-has-remaining-width ::ng-deep td:not(.main-column){white-space:nowrap}:host.last-column-fills-width.table-has-remaining-width:not(.table-has-right-aligned-filling-column) ::ng-deep th.last-column,:host.last-column-fills-width.table-has-remaining-width:not(.table-has-right-aligned-filling-column) ::ng-deep td.last-column{width:100%}:host.last-column-fills-width.table-has-remaining-width ::ng-deep th:not(.last-column),:host.last-column-fills-width.table-has-remaining-width ::ng-deep td:not(.last-column){white-space:nowrap}\n"], dependencies: [{ kind: "component", type: QdTreeHeadComponent, selector: "[qd-tree-head]", inputs: ["config", "data-test-id"] }, { kind: "component", type: QdTreeBodyComponent, selector: "[qd-tree-body]", inputs: ["config", "data", "data-test-id"] }, { kind: "component", type: QdTreeEmptyStateComponent, selector: "qd-tree-empty-state", inputs: ["config"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }] });
|
|
29087
29454
|
}
|
|
29088
29455
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdTreeComponent, decorators: [{
|
|
29089
29456
|
type: Component,
|
|
@@ -29124,7 +29491,7 @@ class QdTreeModule {
|
|
|
29124
29491
|
QdTreeRowComponent,
|
|
29125
29492
|
QdTreeEmptyStateComponent,
|
|
29126
29493
|
QdTreeRowActionsSecondaryMenuComponent], imports: [CommonModule,
|
|
29127
|
-
TranslateModule, i1$
|
|
29494
|
+
TranslateModule, i1$5.StoreFeatureModule, QdButtonModule,
|
|
29128
29495
|
QdChipModule,
|
|
29129
29496
|
QdDataFacetsModule,
|
|
29130
29497
|
QdIconModule,
|
|
@@ -29187,7 +29554,7 @@ class QdTableModule {
|
|
|
29187
29554
|
QdTableRowComponent,
|
|
29188
29555
|
QdTableRowSelectionComponent,
|
|
29189
29556
|
QdTableSortComponent], imports: [CommonModule,
|
|
29190
|
-
TranslateModule, i1$
|
|
29557
|
+
TranslateModule, i1$5.StoreFeatureModule, QdButtonModule,
|
|
29191
29558
|
QdChipModule,
|
|
29192
29559
|
QdDataFacetsModule,
|
|
29193
29560
|
QdDialogModule,
|
|
@@ -29289,7 +29656,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
29289
29656
|
class QdPageControlPanelComponent {
|
|
29290
29657
|
config;
|
|
29291
29658
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdPageControlPanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
29292
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdPageControlPanelComponent, isStandalone: false, selector: "qd-page-control-panel", inputs: { config: "config" }, ngImport: i0, template: "<header>\n {{ config.title.i18n | translate }}\n</header>\n\n<main cdkScrollable>\n <ng-content select=\"qd-text-section\"></ng-content>\n <ng-content select=\"qd-panel-section\"></ng-content>\n <ng-content select=\"qd-section\"></ng-content>\n</main>\n", styles: ["qd-page-control-panel{position:relative;display:flex;height:100%;flex-direction:column;background:#fff}qd-page-control-panel header{padding:.75rem 1rem .5rem;border-bottom:.125rem solid rgb(213,213,213);color:#171717;font-size:.875rem;font-weight:700;line-height:1.25rem}qd-page-control-panel main{flex-grow:99;overflow-y:auto}qd-page-control-panel qd-panel-section:last-child{margin-bottom:.75rem}qd-page-control-panel qd-section{margin:0 1rem}qd-page-control-panel qd-section:first-child{margin-top:1rem}qd-page-control-panel qd-section:last-child{margin-bottom:1rem}\n"], dependencies: [{ kind: "directive", type: i1$
|
|
29659
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdPageControlPanelComponent, isStandalone: false, selector: "qd-page-control-panel", inputs: { config: "config" }, ngImport: i0, template: "<header>\n {{ config.title.i18n | translate }}\n</header>\n\n<main cdkScrollable>\n <ng-content select=\"qd-text-section\"></ng-content>\n <ng-content select=\"qd-panel-section\"></ng-content>\n <ng-content select=\"qd-section\"></ng-content>\n</main>\n", styles: ["qd-page-control-panel{position:relative;display:flex;height:100%;flex-direction:column;background:#fff}qd-page-control-panel header{padding:.75rem 1rem .5rem;border-bottom:.125rem solid rgb(213,213,213);color:#171717;font-size:.875rem;font-weight:700;line-height:1.25rem}qd-page-control-panel main{flex-grow:99;overflow-y:auto}qd-page-control-panel qd-panel-section:last-child{margin-bottom:.75rem}qd-page-control-panel qd-section{margin:0 1rem}qd-page-control-panel qd-section:first-child{margin-top:1rem}qd-page-control-panel qd-section:last-child{margin-bottom:1rem}\n"], dependencies: [{ kind: "directive", type: i1$6.CdkScrollable, selector: "[cdk-scrollable], [cdkScrollable]" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], encapsulation: i0.ViewEncapsulation.None });
|
|
29293
29660
|
}
|
|
29294
29661
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdPageControlPanelComponent, decorators: [{
|
|
29295
29662
|
type: Component,
|
|
@@ -29389,7 +29756,7 @@ class QdPageFooterComponent {
|
|
|
29389
29756
|
this.actions$ = this.footerService?.pageFooterActions$.pipe(map(actionsMap => Array.from(actionsMap.entries()).map(([key, action]) => ({ ...action, key }))));
|
|
29390
29757
|
}
|
|
29391
29758
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdPageFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
29392
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdPageFooterComponent, isStandalone: false, selector: "qd-page-footer", ngImport: i0, template: "<ng-content></ng-content>\n\n<div class=\"actions\">\n @for (action of actions$ | async; track action) { @if ((action.isVisible !== undefined ? action.isVisible : true) &&\n action.type === QdFooterActionType.Primary) {\n <button\n [disabled]=\"action.isDisabled\"\n (click)=\"action.handler()\"\n qdButton\n [data-test-id]=\"'footer-primary-button-' + action.key\"\n [additionalInfo]=\"action.additionalInfo\"\n >\n {{ action.titleI18n | translate }}\n </button>\n } @if ((action.isVisible !== undefined ? action.isVisible : true) && action.type === QdFooterActionType.Secondary) {\n <button\n (click)=\"action.handler()\"\n qdButton\n qdButtonGhost\n [data-test-id]=\"'footer-secondary-button-' + action.key\"\n [additionalInfo]=\"action.additionalInfo\"\n >\n {{ action.titleI18n | translate }}\n </button>\n } }\n</div>\n", styles: [":host{display:flex;min-height:4rem;align-items:center;justify-content:flex-end;padding:.8125rem 1.25rem;border-top:1px solid rgb(213,213,213);background:#fff}@media(max-width:599.98px){:host{padding:.8125rem .9375rem}}.actions{display:flex}.actions button{margin-left:.875rem}\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: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
29759
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdPageFooterComponent, isStandalone: false, selector: "qd-page-footer", ngImport: i0, template: "<ng-content></ng-content>\n\n<div class=\"actions\">\n @for (action of actions$ | async; track action) { @if ((action.isVisible !== undefined ? action.isVisible : true) &&\n action.type === QdFooterActionType.Primary) {\n <button\n [disabled]=\"action.isDisabled\"\n (click)=\"action.handler()\"\n qdButton\n [data-test-id]=\"'footer-primary-button-' + action.key\"\n [additionalInfo]=\"action.additionalInfo\"\n >\n {{ action.titleI18n | translate }}\n </button>\n } @if ((action.isVisible !== undefined ? action.isVisible : true) && action.type === QdFooterActionType.Secondary) {\n <button\n (click)=\"action.handler()\"\n qdButton\n qdButtonGhost\n [data-test-id]=\"'footer-secondary-button-' + action.key\"\n [additionalInfo]=\"action.additionalInfo\"\n >\n {{ action.titleI18n | translate }}\n </button>\n } }\n</div>\n", styles: [":host{display:flex;min-height:4rem;align-items:center;justify-content:flex-end;padding:.8125rem 1.25rem;border-top:1px solid rgb(213,213,213);background:#fff}@media(max-width:599.98px){:host{padding:.8125rem .9375rem}}.actions{display:flex}.actions button{margin-left:.875rem}\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: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
29393
29760
|
}
|
|
29394
29761
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdPageFooterComponent, decorators: [{
|
|
29395
29762
|
type: Component,
|
|
@@ -29670,7 +30037,7 @@ class QdDateFacetComponent {
|
|
|
29670
30037
|
return this.facet.options;
|
|
29671
30038
|
}
|
|
29672
30039
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdDateFacetComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
29673
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdDateFacetComponent, isStandalone: false, selector: "qd-date-facet", inputs: { facet: "facet", data: "data" }, ngImport: i0, template: "@if (options.showIcon) {\n<qd-icon [icon]=\"'calendar'\"></qd-icon>\n}\n{{ $any(data[facet.name]) | date }}\n", styles: [":host{display:block;margin-top:-.4375rem;font-weight:500}:host qd-icon{position:relative;top:.1875rem;font-size:1.3125rem}\n"], dependencies: [{ kind: "component", type: QdIconComponent, selector: "qd-icon", inputs: ["icon", "status"] }, { kind: "pipe", type: i1.DatePipe, name: "date" }] });
|
|
30040
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdDateFacetComponent, isStandalone: false, selector: "qd-date-facet", inputs: { facet: "facet", data: "data" }, ngImport: i0, template: "@if (options.showIcon) {\n<qd-icon [icon]=\"'calendar'\"></qd-icon>\n}\n{{ $any(data[facet.name]) | date }}\n", styles: [":host{display:block;margin-top:-.4375rem;font-weight:500}:host qd-icon{position:relative;top:.1875rem;font-size:1.3125rem}\n"], dependencies: [{ kind: "component", type: QdIconComponent, selector: "qd-icon", inputs: ["icon", "status"] }, { kind: "pipe", type: i1$1.DatePipe, name: "date" }] });
|
|
29674
30041
|
}
|
|
29675
30042
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdDateFacetComponent, decorators: [{
|
|
29676
30043
|
type: Component,
|
|
@@ -30879,7 +31246,7 @@ class QdPageObjectHeaderComponent {
|
|
|
30879
31246
|
});
|
|
30880
31247
|
}
|
|
30881
31248
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdPageObjectHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
30882
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdPageObjectHeaderComponent, isStandalone: false, selector: "qd-page-object-header", inputs: { config: "config", hasNavigation: "hasNavigation", testId: ["data-test-id", "testId"] }, host: { listeners: { "click": "toggleFacets()" }, properties: { "style.borderBottom": "borderBottomStyle", "class.in-dialog": "this.isInDialog" } }, usesOnChanges: true, ngImport: i0, template: "@if (isLoading$ | async) {\n<div class=\"loading-overlay\"><qd-spinner></qd-spinner></div>\n}\n\n<div class=\"object-header-top\">\n <header class=\"object-header-title\">{{ config.title.i18n | translate }}</header>\n <div class=\"object-header-toolbar\">\n <ng-content></ng-content>\n\n <button class=\"button-icon\" data-test-id=\"archive-button\">\n @if (showArchive$ | async) {\n <qd-icon (click)=\"archiveButton?.handler()\" class=\"header-action-icon\" [icon]=\"'resultNew'\"></qd-icon>\n }\n </button>\n\n <button class=\"button-icon\" data-test-id=\"delete-button\">\n @if (showDelete$ | async) {\n <qd-icon class=\"header-action-icon\" (click)=\"deleteButton?.handler()\" [icon]=\"'trash'\"></qd-icon>\n }\n </button>\n\n @if (showEdit$ | async) {\n <button qdButton (click)=\"edit()\" data-test-id=\"edit-button\">\n {{ editButton?.label?.i18n || \"i18n.qd.page.header.edit\" | translate }}\n </button>\n } @if (showCancel$ | async) {\n <button qdButton qdButtonGhost (click)=\"cancel()\" data-test-id=\"cancel-button\">\n {{ cancelButton.label?.i18n || \"i18n.qd.page.header.cancel\" | translate }}\n </button>\n } @if (showSave$ | async) {\n <button qdButton (click)=\"save()\" data-test-id=\"save-button\" [disabled]=\"($canSave | async) === false\">\n {{ saveButton.label?.i18n || \"i18n.qd.page.header.save\" | translate }}\n </button>\n } @if (customActions$ | async; as customActions) { @if (!adaptiveMode) { @if (customActions.actions.length > 1) {\n <button [qdMenuButton]=\"customActions\" [autoSize]=\"false\" [data-test-id]=\"'page-'\" data-test-id=\"custom-button\">\n {{ config?.customActionsLabel?.i18n || \"i18n.qd.page.header.actions\" | translate }}\n </button>\n } @else { @if ((customActions$ | async).actions[0]; as singleAction) { @if (singleAction.handler &&\n !singleAction.isHidden) {\n <button qdButton [disabled]=\"singleAction.isDisabled\" (click)=\"singleAction.handler()\" data-test-id=\"custom-button\">\n {{ singleAction.label?.i18n | translate }}\n </button>\n } } } } @else { @if ((customActions$ | async)?.actions.length >= 1) {\n <button\n type=\"button\"\n class=\"adaptive-menu-button\"\n [qdPopoverOnClick]=\"menu\"\n [qdPopoverCloseStrategy]=\"'onEveryClick'\"\n [qdPopoverStopPropagation]=\"true\"\n [qdPopoverMinWidth]=\"160\"\n >\n <qd-icon icon=\"overflowMenuVertical\"></qd-icon>\n </button>\n }\n <ng-template #menu>\n @for (action of customActions.actions; track action; let i = $index) {\n <button class=\"adaptive-menu-entry\" type=\"button\" [disabled]=\"action.isDisabled\" (click)=\"action.handler()\">\n {{ action.label.i18n | translate }}\n </button>\n }\n </ng-template>\n } }\n </div>\n</div>\n\n<div class=\"object-header-facets\" [ngClass]=\"{ amongThemselves: adaptiveMode && !facetsCollapsed }\">\n @if (pageObjectData$ | async; as data) { @for (facet of headerFacets | slice : 0 : (adaptiveMode && facetsCollapsed ?\n 2 : headerFacets?.length ?? 0); track facet) {\n <div class=\"object-header-facet\" [attr.data-test-id]=\"testId + '-facet-' + facet.name\">\n <div class=\"facet-label\">{{ facet.label.i18n | translate }}</div>\n <qd-dynamic-facet class=\"dynamic-facet\" [facet]=\"facet\" [data]=\"data\"></qd-dynamic-facet>\n </div>\n } } @if (!config.hideContexts && contexts$ | async; as contexts) { @for ( context of contexts | slice : 0 :\n (adaptiveMode && facetsCollapsed ? 2 - (headerFacets?.length ?? 0) : contexts?.length); track context; let index =\n $index; let first = $first) {\n <div\n class=\"object-header-facet\"\n [ngClass]=\"{ hasDivider: headerFacets && first, adaptiveFirst: headerFacets && adaptiveMode && first }\"\n [attr.data-test-id]=\"testId + '-context-facet-' + context.context.id\"\n >\n <div class=\"facet-label\">{{ context.label | translate }}</div>\n @if (context.value.length === 0) {\n <span class=\"no-selected-context\">{{ \"i18n.qd.page.context.noSelectionPlaceholder\" | translate }}</span>\n } @if (context.value.length !== 0) {\n <span>\n <qd-chip state=\"neutral\" [close]=\"isContextSelectable\" (closeClickEmitter)=\"clearContext(context.context)\">\n @for (val of context.value; track val; let last = $last) {\n {{ val.label.i18n | translate }}@if (!last) {\n <span>, </span>\n } }\n </qd-chip>\n </span>\n } @if (isContextSelectable && (!facetsCollapsed || !adaptiveMode)) {\n <span class=\"select-button\">\n <button\n qdButton\n qdButtonLink\n type=\"button\"\n (click)=\"changeContext(context.context, context.selection, $event)\"\n [data-test-id]=\"'object-header-select-context-' + context.context.id\"\n >\n {{\n context.value.length !== 0\n ? (\"i18n.qd.page.context.button.change\" | translate)\n : (\"i18n.qd.page.context.button.select\" | translate)\n }}\n </button>\n </span>\n }\n </div>\n } } @if (contexts$ | async; as togglerContexts) { @if (adaptiveMode && headerFacets?.length + togglerContexts.length >\n 2) {\n <span class=\"facets-toggler\" [attr.data-test-id]=\"testId + '-facets-toggler'\">\n @if (facetsCollapsed) {\n <span [attr.data-test-id]=\"testId + '-facets-toggler-count'\"\n >+{{ headerFacets.length + togglerContexts.length - 2 }}</span\n >\n }\n <button qdIconButton [data-test-id]=\"'toggle-button'\">\n <qd-icon [icon]=\"facetsCollapsed ? 'ctrlDown' : 'ctrlTop'\"></qd-icon>\n </button>\n </span>\n } }\n</div>\n", styles: [":host{display:flex;flex-direction:column;justify-content:space-between;padding:1.25rem;border-bottom:.125rem solid rgb(213,213,213);background:#fff;gap:1.25rem}@media(max-width:599.98px){:host{padding:1.25rem .9375rem}}:host .object-header-top{display:flex;align-items:flex-start;justify-content:space-between}:host .object-header-top .object-header-title{padding:2px;color:#171717;font-size:1.3125rem;font-weight:500}:host .object-header-top .object-header-toolbar{display:flex;align-items:center;column-gap:.5rem}:host .object-header-top .object-header-toolbar .button-icon{background:none}:host .object-header-top .object-header-toolbar .button-icon+.button-icon{margin-left:-.5rem}:host .object-header-top .object-header-toolbar .header-action-icon{color:#14516f;cursor:pointer;font-size:1.5rem}:host.in-dialog .object-header-toolbar{padding-right:2.5rem}:host .object-header-facets{position:relative;display:flex;flex-wrap:wrap;font-size:1.125rem;gap:1.25rem}:host .object-header-facets .object-header-facet{display:flex;min-width:3.75rem;flex-direction:column}:host .object-header-facets .object-header-facet.hasDivider{padding-left:1.25rem;border-left:.0625rem solid rgb(117,117,117)}:host .object-header-facets .object-header-facet.adaptiveFirst{padding-top:1.25rem}:host .object-header-facets .object-header-facet .facet-label{display:block;margin-bottom:0;color:#757575;font-size:.875rem;padding-bottom:.375rem;font-weight:500}:host .object-header-facets .facets-toggler{position:absolute;top:0;right:0;display:flex;align-items:center;padding-right:.3125rem;font-size:.625rem;line-height:.625rem}:host .object-header-facets.amongThemselves{display:grid}:host .object-header-facets.amongThemselves .object-header-facet.hasDivider{padding-left:0;border-top:.0625rem solid rgb(117,117,117);border-left:none}.loading-overlay{position:absolute;z-index:10000;inset:0;display:flex;align-items:center;justify-content:center;background-color:#0003}.no-selected-context{height:1.625rem;color:#979797;font-size:.875rem;line-height:1.625rem}.select-button{margin-top:.25rem}.adaptive-menu-button{display:flex;background:unset;color:#454545;font-size:2rem}.adaptive-menu-button:hover,.adaptive-menu-button:focus{color:#000}.adaptive-menu-entry{display:block;overflow:hidden;width:100%;min-height:2.25rem;padding:0 1rem;background:#fff0;text-align:left;text-overflow:ellipsis;white-space:nowrap}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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: "directive", type: QdButtonLinkDirective, selector: "button[qdButtonLink], a[qdButtonLink]" }, { kind: "component", type: QdIconButtonComponent, selector: "button[qdIconButton], a[qdIconButton]", inputs: ["color", "data-test-id"] }, { kind: "component", type: QdMenuButtonComponent, selector: "button[qdMenuButton], a[qdMenuButton]", inputs: ["qdMenuButton", "data-test-id", "autoSize"] }, { kind: "component", type: QdChipComponent, selector: "qd-chip", inputs: ["state", "close", "data", "data-test-id"], outputs: ["closeClickEmitter"] }, { kind: "component", type: QdIconComponent, selector: "qd-icon", inputs: ["icon", "status"] }, { kind: "component", type: QdSpinnerComponent, selector: "qd-spinner" }, { 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: "component", type: QdDynamicFacetComponent, selector: "qd-dynamic-facet", inputs: ["facet", "data"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i1.SlicePipe, name: "slice" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
31249
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdPageObjectHeaderComponent, isStandalone: false, selector: "qd-page-object-header", inputs: { config: "config", hasNavigation: "hasNavigation", testId: ["data-test-id", "testId"] }, host: { listeners: { "click": "toggleFacets()" }, properties: { "style.borderBottom": "borderBottomStyle", "class.in-dialog": "this.isInDialog" } }, usesOnChanges: true, ngImport: i0, template: "@if (isLoading$ | async) {\n<div class=\"loading-overlay\"><qd-spinner></qd-spinner></div>\n}\n\n<div class=\"object-header-top\">\n <header class=\"object-header-title\">{{ config.title.i18n | translate }}</header>\n <div class=\"object-header-toolbar\">\n <ng-content></ng-content>\n\n <button class=\"button-icon\" data-test-id=\"archive-button\">\n @if (showArchive$ | async) {\n <qd-icon (click)=\"archiveButton?.handler()\" class=\"header-action-icon\" [icon]=\"'resultNew'\"></qd-icon>\n }\n </button>\n\n <button class=\"button-icon\" data-test-id=\"delete-button\">\n @if (showDelete$ | async) {\n <qd-icon class=\"header-action-icon\" (click)=\"deleteButton?.handler()\" [icon]=\"'trash'\"></qd-icon>\n }\n </button>\n\n @if (showEdit$ | async) {\n <button qdButton (click)=\"edit()\" data-test-id=\"edit-button\">\n {{ editButton?.label?.i18n || \"i18n.qd.page.header.edit\" | translate }}\n </button>\n } @if (showCancel$ | async) {\n <button qdButton qdButtonGhost (click)=\"cancel()\" data-test-id=\"cancel-button\">\n {{ cancelButton.label?.i18n || \"i18n.qd.page.header.cancel\" | translate }}\n </button>\n } @if (showSave$ | async) {\n <button qdButton (click)=\"save()\" data-test-id=\"save-button\" [disabled]=\"($canSave | async) === false\">\n {{ saveButton.label?.i18n || \"i18n.qd.page.header.save\" | translate }}\n </button>\n } @if (customActions$ | async; as customActions) { @if (!adaptiveMode) { @if (customActions.actions.length > 1) {\n <button [qdMenuButton]=\"customActions\" [autoSize]=\"false\" [data-test-id]=\"'page-'\" data-test-id=\"custom-button\">\n {{ config?.customActionsLabel?.i18n || \"i18n.qd.page.header.actions\" | translate }}\n </button>\n } @else { @if ((customActions$ | async).actions[0]; as singleAction) { @if (singleAction.handler &&\n !singleAction.isHidden) {\n <button qdButton [disabled]=\"singleAction.isDisabled\" (click)=\"singleAction.handler()\" data-test-id=\"custom-button\">\n {{ singleAction.label?.i18n | translate }}\n </button>\n } } } } @else { @if ((customActions$ | async)?.actions.length >= 1) {\n <button\n type=\"button\"\n class=\"adaptive-menu-button\"\n [qdPopoverOnClick]=\"menu\"\n [qdPopoverCloseStrategy]=\"'onEveryClick'\"\n [qdPopoverStopPropagation]=\"true\"\n [qdPopoverMinWidth]=\"160\"\n >\n <qd-icon icon=\"overflowMenuVertical\"></qd-icon>\n </button>\n }\n <ng-template #menu>\n @for (action of customActions.actions; track action; let i = $index) {\n <button class=\"adaptive-menu-entry\" type=\"button\" [disabled]=\"action.isDisabled\" (click)=\"action.handler()\">\n {{ action.label.i18n | translate }}\n </button>\n }\n </ng-template>\n } }\n </div>\n</div>\n\n<div class=\"object-header-facets\" [ngClass]=\"{ amongThemselves: adaptiveMode && !facetsCollapsed }\">\n @if (pageObjectData$ | async; as data) { @for (facet of headerFacets | slice : 0 : (adaptiveMode && facetsCollapsed ?\n 2 : headerFacets?.length ?? 0); track facet) {\n <div class=\"object-header-facet\" [attr.data-test-id]=\"testId + '-facet-' + facet.name\">\n <div class=\"facet-label\">{{ facet.label.i18n | translate }}</div>\n <qd-dynamic-facet class=\"dynamic-facet\" [facet]=\"facet\" [data]=\"data\"></qd-dynamic-facet>\n </div>\n } } @if (!config.hideContexts && contexts$ | async; as contexts) { @for ( context of contexts | slice : 0 :\n (adaptiveMode && facetsCollapsed ? 2 - (headerFacets?.length ?? 0) : contexts?.length); track context; let index =\n $index; let first = $first) {\n <div\n class=\"object-header-facet\"\n [ngClass]=\"{ hasDivider: headerFacets && first, adaptiveFirst: headerFacets && adaptiveMode && first }\"\n [attr.data-test-id]=\"testId + '-context-facet-' + context.context.id\"\n >\n <div class=\"facet-label\">{{ context.label | translate }}</div>\n @if (context.value.length === 0) {\n <span class=\"no-selected-context\">{{ \"i18n.qd.page.context.noSelectionPlaceholder\" | translate }}</span>\n } @if (context.value.length !== 0) {\n <span>\n <qd-chip state=\"neutral\" [close]=\"isContextSelectable\" (closeClickEmitter)=\"clearContext(context.context)\">\n @for (val of context.value; track val; let last = $last) {\n {{ val.label.i18n | translate }}@if (!last) {\n <span>, </span>\n } }\n </qd-chip>\n </span>\n } @if (isContextSelectable && (!facetsCollapsed || !adaptiveMode)) {\n <span class=\"select-button\">\n <button\n qdButton\n qdButtonLink\n type=\"button\"\n (click)=\"changeContext(context.context, context.selection, $event)\"\n [data-test-id]=\"'object-header-select-context-' + context.context.id\"\n >\n {{\n context.value.length !== 0\n ? (\"i18n.qd.page.context.button.change\" | translate)\n : (\"i18n.qd.page.context.button.select\" | translate)\n }}\n </button>\n </span>\n }\n </div>\n } } @if (contexts$ | async; as togglerContexts) { @if (adaptiveMode && headerFacets?.length + togglerContexts.length >\n 2) {\n <span class=\"facets-toggler\" [attr.data-test-id]=\"testId + '-facets-toggler'\">\n @if (facetsCollapsed) {\n <span [attr.data-test-id]=\"testId + '-facets-toggler-count'\"\n >+{{ headerFacets.length + togglerContexts.length - 2 }}</span\n >\n }\n <button qdIconButton [data-test-id]=\"'toggle-button'\">\n <qd-icon [icon]=\"facetsCollapsed ? 'ctrlDown' : 'ctrlTop'\"></qd-icon>\n </button>\n </span>\n } }\n</div>\n", styles: [":host{display:flex;flex-direction:column;justify-content:space-between;padding:1.25rem;border-bottom:.125rem solid rgb(213,213,213);background:#fff;gap:1.25rem}@media(max-width:599.98px){:host{padding:1.25rem .9375rem}}:host .object-header-top{display:flex;align-items:flex-start;justify-content:space-between}:host .object-header-top .object-header-title{padding:2px;color:#171717;font-size:1.3125rem;font-weight:500}:host .object-header-top .object-header-toolbar{display:flex;align-items:center;column-gap:.5rem}:host .object-header-top .object-header-toolbar .button-icon{background:none}:host .object-header-top .object-header-toolbar .button-icon+.button-icon{margin-left:-.5rem}:host .object-header-top .object-header-toolbar .header-action-icon{color:#14516f;cursor:pointer;font-size:1.5rem}:host.in-dialog .object-header-toolbar{padding-right:2.5rem}:host .object-header-facets{position:relative;display:flex;flex-wrap:wrap;font-size:1.125rem;gap:1.25rem}:host .object-header-facets .object-header-facet{display:flex;min-width:3.75rem;flex-direction:column}:host .object-header-facets .object-header-facet.hasDivider{padding-left:1.25rem;border-left:.0625rem solid rgb(117,117,117)}:host .object-header-facets .object-header-facet.adaptiveFirst{padding-top:1.25rem}:host .object-header-facets .object-header-facet .facet-label{display:block;margin-bottom:0;color:#757575;font-size:.875rem;padding-bottom:.375rem;font-weight:500}:host .object-header-facets .facets-toggler{position:absolute;top:0;right:0;display:flex;align-items:center;padding-right:.3125rem;font-size:.625rem;line-height:.625rem}:host .object-header-facets.amongThemselves{display:grid}:host .object-header-facets.amongThemselves .object-header-facet.hasDivider{padding-left:0;border-top:.0625rem solid rgb(117,117,117);border-left:none}.loading-overlay{position:absolute;z-index:10000;inset:0;display:flex;align-items:center;justify-content:center;background-color:#0003}.no-selected-context{height:1.625rem;color:#979797;font-size:.875rem;line-height:1.625rem}.select-button{margin-top:.25rem}.adaptive-menu-button{display:flex;background:unset;color:#454545;font-size:2rem}.adaptive-menu-button:hover,.adaptive-menu-button:focus{color:#000}.adaptive-menu-entry{display:block;overflow:hidden;width:100%;min-height:2.25rem;padding:0 1rem;background:#fff0;text-align:left;text-overflow:ellipsis;white-space:nowrap}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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: "directive", type: QdButtonLinkDirective, selector: "button[qdButtonLink], a[qdButtonLink]" }, { kind: "component", type: QdIconButtonComponent, selector: "button[qdIconButton], a[qdIconButton]", inputs: ["color", "data-test-id"] }, { kind: "component", type: QdMenuButtonComponent, selector: "button[qdMenuButton], a[qdMenuButton]", inputs: ["qdMenuButton", "data-test-id", "autoSize"] }, { kind: "component", type: QdChipComponent, selector: "qd-chip", inputs: ["state", "close", "data", "data-test-id"], outputs: ["closeClickEmitter"] }, { kind: "component", type: QdIconComponent, selector: "qd-icon", inputs: ["icon", "status"] }, { kind: "component", type: QdSpinnerComponent, selector: "qd-spinner" }, { 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: "component", type: QdDynamicFacetComponent, selector: "qd-dynamic-facet", inputs: ["facet", "data"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i1$1.SlicePipe, name: "slice" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
30883
31250
|
}
|
|
30884
31251
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdPageObjectHeaderComponent, decorators: [{
|
|
30885
31252
|
type: Component,
|
|
@@ -32018,7 +32385,7 @@ class QdPageTabsComponent {
|
|
|
32018
32385
|
throw new Error(`Quadrel Framework | QdPageTabs - The use of the "${inputName}" attribute is not permitted. Please use QdPageTabsConfig instead.`);
|
|
32019
32386
|
}
|
|
32020
32387
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdPageTabsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
32021
|
-
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.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
32388
|
+
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 });
|
|
32022
32389
|
}
|
|
32023
32390
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdPageTabsComponent, decorators: [{
|
|
32024
32391
|
type: Component,
|
|
@@ -32782,7 +33149,7 @@ class QdPageComponent {
|
|
|
32782
33149
|
QdPageSubmitActionService,
|
|
32783
33150
|
QdResolverTriggerService,
|
|
32784
33151
|
QdPageNavigationInterceptorService
|
|
32785
|
-
], 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 }, { propertyName: "infoBanners", predicate: QdPageInfoBannerComponent }], usesOnChanges: true, ngImport: i0, template: "<main qdSnackbarListener cdkScrollable>\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.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$
|
|
33152
|
+
], 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 }, { propertyName: "infoBanners", predicate: QdPageInfoBannerComponent }], 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" }] });
|
|
32786
33153
|
}
|
|
32787
33154
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdPageComponent, decorators: [{
|
|
32788
33155
|
type: Component,
|
|
@@ -32792,7 +33159,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
32792
33159
|
QdPageSubmitActionService,
|
|
32793
33160
|
QdResolverTriggerService,
|
|
32794
33161
|
QdPageNavigationInterceptorService
|
|
32795
|
-
], host: { '[class.has-control-panel]': 'isControlPanelVisible', '[class.control-panel-broad]': 'isControlPanelBroad' }, standalone: false, template: "<main qdSnackbarListener cdkScrollable>\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"] }]
|
|
33162
|
+
], host: { '[class.has-control-panel]': 'isControlPanelVisible', '[class.control-panel-broad]': 'isControlPanelBroad' }, standalone: false, 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"] }]
|
|
32796
33163
|
}], ctorParameters: () => [], propDecorators: { config: [{
|
|
32797
33164
|
type: Input,
|
|
32798
33165
|
args: [{ required: true }]
|
|
@@ -33227,7 +33594,7 @@ class QdPanelSectionComponent {
|
|
|
33227
33594
|
});
|
|
33228
33595
|
}
|
|
33229
33596
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdPanelSectionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
33230
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdPanelSectionComponent, isStandalone: false, selector: "qd-panel-section", inputs: { config: "config" }, outputs: { actionOutput: "actionOutput" }, providers: [QdPanelSectionActionService], queries: [{ propertyName: "statusList", predicate: QdPanelSectionStatusComponent }, { propertyName: "statusPairsList", predicate: QdStatusPairsComponent }, { propertyName: "tableList", predicate: QdTableComponent }, { propertyName: "paragraphList", predicate: QdPanelSectionTextParagraphComponent }], ngImport: i0, template: "<section>\n @if (config.title || hasActions()) {\n <div class=\"toolbar\">\n @if (config.title) {\n <div class=\"title\">\n {{ config.title.i18n | translate }}\n </div>\n } @if (hasActions()) {\n <qd-panel-section-actions [config]=\"config\"></qd-panel-section-actions>\n }\n </div>\n }\n\n <div [ngClass]=\"{ content: true, empty: !hasContent() }\">\n <ng-content select=\"qd-panel-section-status\"></ng-content>\n <ng-content select=\"qd-status-pairs\"></ng-content>\n <ng-content select=\"qd-table\"></ng-content>\n <ng-content select=\"qd-panel-section-text-paragraph\"></ng-content>\n </div>\n</section>\n", styles: ["qd-panel-section{display:block;color:#171717;font-size:.875rem;font-weight:300;line-height:1.375rem}qd-panel-section+qd-panel-section{border-top:.0625rem solid rgb(213,213,213)}qd-panel-section section{display:flex;flex-wrap:wrap}qd-panel-section .toolbar{display:flex;width:100%}qd-panel-section .title,qd-panel-section .content{padding:1rem 1rem 0}qd-panel-section .title{flex-grow:99;font-weight:500}qd-panel-section .content{width:100%;margin-bottom:.75rem}qd-panel-section .content.empty{padding:0;margin:0}qd-panel-section .toolbar+qd-panel-section-status{border-top:rgb(213,213,213) .125rem solid!important;margin-top:1rem}qd-panel-section qd-panel-section-actions{padding-top:.5rem;padding-right:1rem;margin-left:auto}qd-panel-section qd-panel-section-actions .content{padding-bottom:1rem;margin-bottom:0}qd-panel-section qd-panel-section-text-paragraph+qd-panel-section-text-paragraph{padding-top:1.5rem}qd-panel-section qd-status-pairs{display:flex;flex-wrap:wrap;column-gap:1rem}qd-panel-section qd-status-pairs qd-status-pairs-item{flex:1 1 0;margin-right:0!important;margin-bottom:.75rem!important}qd-panel-section qd-status-pairs+qd-panel-section-text-paragraph{margin-top:.5rem}qd-panel-section qd-table+qd-panel-section-text-paragraph{margin-top:1rem}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: QdPanelSectionActionsComponent, selector: "qd-panel-section-actions", inputs: ["config"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], encapsulation: i0.ViewEncapsulation.None });
|
|
33597
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdPanelSectionComponent, isStandalone: false, selector: "qd-panel-section", inputs: { config: "config" }, outputs: { actionOutput: "actionOutput" }, providers: [QdPanelSectionActionService], queries: [{ propertyName: "statusList", predicate: QdPanelSectionStatusComponent }, { propertyName: "statusPairsList", predicate: QdStatusPairsComponent }, { propertyName: "tableList", predicate: QdTableComponent }, { propertyName: "paragraphList", predicate: QdPanelSectionTextParagraphComponent }], ngImport: i0, template: "<section>\n @if (config.title || hasActions()) {\n <div class=\"toolbar\">\n @if (config.title) {\n <div class=\"title\">\n {{ config.title.i18n | translate }}\n </div>\n } @if (hasActions()) {\n <qd-panel-section-actions [config]=\"config\"></qd-panel-section-actions>\n }\n </div>\n }\n\n <div [ngClass]=\"{ content: true, empty: !hasContent() }\">\n <ng-content select=\"qd-panel-section-status\"></ng-content>\n <ng-content select=\"qd-status-pairs\"></ng-content>\n <ng-content select=\"qd-table\"></ng-content>\n <ng-content select=\"qd-panel-section-text-paragraph\"></ng-content>\n </div>\n</section>\n", styles: ["qd-panel-section{display:block;color:#171717;font-size:.875rem;font-weight:300;line-height:1.375rem}qd-panel-section+qd-panel-section{border-top:.0625rem solid rgb(213,213,213)}qd-panel-section section{display:flex;flex-wrap:wrap}qd-panel-section .toolbar{display:flex;width:100%}qd-panel-section .title,qd-panel-section .content{padding:1rem 1rem 0}qd-panel-section .title{flex-grow:99;font-weight:500}qd-panel-section .content{width:100%;margin-bottom:.75rem}qd-panel-section .content.empty{padding:0;margin:0}qd-panel-section .toolbar+qd-panel-section-status{border-top:rgb(213,213,213) .125rem solid!important;margin-top:1rem}qd-panel-section qd-panel-section-actions{padding-top:.5rem;padding-right:1rem;margin-left:auto}qd-panel-section qd-panel-section-actions .content{padding-bottom:1rem;margin-bottom:0}qd-panel-section qd-panel-section-text-paragraph+qd-panel-section-text-paragraph{padding-top:1.5rem}qd-panel-section qd-status-pairs{display:flex;flex-wrap:wrap;column-gap:1rem}qd-panel-section qd-status-pairs qd-status-pairs-item{flex:1 1 0;margin-right:0!important;margin-bottom:.75rem!important}qd-panel-section qd-status-pairs+qd-panel-section-text-paragraph{margin-top:.5rem}qd-panel-section qd-table+qd-panel-section-text-paragraph{margin-top:1rem}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: QdPanelSectionActionsComponent, selector: "qd-panel-section-actions", inputs: ["config"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], encapsulation: i0.ViewEncapsulation.None });
|
|
33231
33598
|
}
|
|
33232
33599
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdPanelSectionComponent, decorators: [{
|
|
33233
33600
|
type: Component,
|
|
@@ -34135,7 +34502,7 @@ class QdShellHeaderComponent {
|
|
|
34135
34502
|
}
|
|
34136
34503
|
async = async;
|
|
34137
34504
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdShellHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
34138
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdShellHeaderComponent, isStandalone: false, selector: "[qd-shell-header]", inputs: { config: "config", isMinimized: "isMinimized", isCommentsUsed: "isCommentsUsed", hasComments: "hasComments" }, outputs: { menuIconChange: "menuIconChange" }, host: { properties: { "class.minimized": "this.minimized", "class.sticky": "this.sticky", "class.expanded": "this.expanded" }, classAttribute: "qd-shell-header" }, ngImport: i0, template: "<qd-shell-header-banner cdkDrag cdkDragLockAxis=\"x\" cdkDragBoundary=\"header\"></qd-shell-header-banner>\n\n@if (hasNavigation$ | async) {\n<qd-icon\n [icon]=\"(isNavigationPinned$ | async) ? 'timesLarge' : 'menu'\"\n class=\"toggle-navigation\"\n data-test-id=\"navigation-toggle\"\n (click)=\"togglePinnedNavigation()\"\n></qd-icon>\n} @if (backLinkDisplayed$ | async) {\n<button class=\"back-link\" (click)=\"handleBackClick()\" tabindex=\"0\">\n <qd-icon class=\"back-link-icon\" icon=\"arrowLeft\"></qd-icon>\n</button>\n} @if (logoIconDisplayed$ | async) {\n<qd-icon class=\"logo-icon\" [icon]=\"isMinimized ? 'coatCh' : 'logo'\"></qd-icon>\n} @if (config?.illustration) {\n<span class=\"illustration\" [class.minimized]=\"isMinimized\">\n <img [src]=\"config.illustration.url\" />\n</span>\n} @if (config.title) {\n<span class=\"title\">\n {{ config.title.i18n | translate }}\n</span>\n} @if (config.hasSearch) {\n<qd-shell-header-search></qd-shell-header-search>\n} @if (config.toolbar) {\n<qd-shell-toolbar [config]=\"config.toolbar\"></qd-shell-toolbar>\n} @if (!config.serviceNavigation?.isDisabled && config.serviceNavigation) {\n<qd-icon\n [icon]=\"isServiceNavigationOpened ? 'timesLarge' : 'menu'\"\n data-test-id=\"service-navigation-toggle\"\n [ngClass]=\"{\n 'toggle-service-navigation': true,\n expanded: true\n }\"\n (click)=\"toggleServiceNavigation()\"\n></qd-icon>\n} @if (!config.serviceNavigation?.isDisabled && config.serviceNavigation) {\n<qd-shell-service-navigation\n [config]=\"config.serviceNavigation\"\n [ngClass]=\"{ expanded: !isServiceNavigationOpened }\"\n></qd-shell-service-navigation>\n} @if (isCommentsUsed) {\n<qd-icon\n icon=\"chat\"\n data-test-id=\"comments-toggle\"\n [ngClass]=\"{\n 'toggle-comments': true,\n 'has-comments': hasComments,\n 'is-opened': isCommentsOpened$ | async\n }\"\n (click)=\"toggleComments()\"\n></qd-icon>\n} @if (hasNotificationsToggle$ | async) {\n<qd-icon\n icon=\"notification\"\n data-test-id=\"notification-toggle\"\n [ngClass]=\"{\n 'toggle-notification': true,\n 'has-notifications': hasNotifications$ | async,\n 'is-opened': isNotificationsOpened$ | async\n }\"\n (click)=\"toggleNotifications()\"\n></qd-icon>\n}\n", styles: [":host{display:flex;flex-wrap:wrap;align-content:center;align-items:center;align-self:start;justify-content:space-between;padding:.5rem 1rem .5rem 0;border-bottom:.3125rem solid rgb(220,0,24);background-color:#fff;grid-area:header}:host.sticky{position:sticky;z-index:998;top:0}@media(max-width:599.98px){:host{height:3.75rem;align-content:flex-start}:host.expanded{height:auto}}@media(min-width:960px){:host{height:5.9375rem;padding:0 .75rem 0 0}:host.minimized{height:4.0625rem}}:host .toggle-navigation{padding:1.9375rem .625rem 1.9375rem .8125rem;margin-right:0;cursor:pointer;font-size:1.5rem}@media(min-width:960px){:host .toggle-navigation{border-right:.0625rem solid rgb(213,213,213)}}:host.minimized .toggle-navigation{padding:1rem .625rem 1rem .8125rem}@media(min-width:960px){:host .logo-icon{border-right:.0625rem solid rgb(213,213,213)}}:host .logo-icon.qd-icon-logo{padding-right:1.5rem;margin:1rem 1.5rem 1rem 0}@media(min-width:960px){:host .logo-icon.qd-icon-logo{padding:.9375rem .8125rem;margin-right:1.5rem}}:host .logo-icon.qd-icon-logo svg{overflow:visible}:host .logo-icon.qd-icon-ch-logo{margin-left:1rem;font-size:2rem}@media(min-width:960px){:host .logo-icon.qd-icon-ch-logo{padding:.75rem .8125rem;margin-right:1.5rem;margin-left:0}}:host .logo-icon:not(.qd-icon-logo) svg{display:none}:host .back-link{padding:0;border-right:.0625rem solid rgb(213,213,213);background-color:transparent;color:#979797;font-size:1.625rem}@media(min-width:960px){:host .back-link{padding:.875rem .8125rem;margin-right:1.5rem}}:host .back-link-icon{width:2rem;opacity:.8}:host .back-link:hover{color:#757575;opacity:1}:host .back-link:hover .back-link-icon{opacity:1}:host .illustration{width:4rem;height:4rem;margin-right:.625rem}:host .illustration img{max-width:100%}:host .illustration.minimized{width:2rem;height:2rem;margin-right:.3125rem}:host .title{overflow:hidden;flex-grow:1;font-size:1.25rem;font-weight:500;text-align:center;text-overflow:ellipsis;white-space:nowrap}@media(min-width:960px){:host .title{text-align:start}}:host .toggle-notification,:host .toggle-comments,:host .toggle-service-navigation{position:relative;margin-left:.625rem;cursor:pointer;font-size:1.25rem}:host .toggle-notification.has-notifications:after,:host .toggle-notification.has-comments:after,:host .toggle-comments.has-notifications:after,:host .toggle-comments.has-comments:after,:host .toggle-service-navigation.has-notifications:after,:host .toggle-service-navigation.has-comments:after{position:absolute;top:.125rem;right:0;display:inline-block;width:.5625rem;height:.5625rem;border:rgb(255,255,255) .125rem solid;border-radius:100%;background-color:red;content:\"\"}:host .toggle-notification.is-opened:before,:host .toggle-comments.is-opened:before,:host .toggle-service-navigation.is-opened:before{position:absolute;z-index:-10;display:block;width:2rem;height:2rem;border-radius:50%;background:#e5e5e5;content:\"\";transform:translate(-.4375rem,-.3125rem)}:host .toggle-notification.expanded,:host .toggle-comments.expanded,:host .toggle-service-navigation.expanded{visibility:collapse}@media(max-width:599.98px){:host .toggle-notification.expanded,:host .toggle-comments.expanded,:host .toggle-service-navigation.expanded{visibility:visible}}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type:
|
|
34505
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdShellHeaderComponent, isStandalone: false, selector: "[qd-shell-header]", inputs: { config: "config", isMinimized: "isMinimized", isCommentsUsed: "isCommentsUsed", hasComments: "hasComments" }, outputs: { menuIconChange: "menuIconChange" }, host: { properties: { "class.minimized": "this.minimized", "class.sticky": "this.sticky", "class.expanded": "this.expanded" }, classAttribute: "qd-shell-header" }, ngImport: i0, template: "<qd-shell-header-banner cdkDrag cdkDragLockAxis=\"x\" cdkDragBoundary=\"header\"></qd-shell-header-banner>\n\n@if (hasNavigation$ | async) {\n<qd-icon\n [icon]=\"(isNavigationPinned$ | async) ? 'timesLarge' : 'menu'\"\n class=\"toggle-navigation\"\n data-test-id=\"navigation-toggle\"\n (click)=\"togglePinnedNavigation()\"\n></qd-icon>\n} @if (backLinkDisplayed$ | async) {\n<button class=\"back-link\" (click)=\"handleBackClick()\" tabindex=\"0\">\n <qd-icon class=\"back-link-icon\" icon=\"arrowLeft\"></qd-icon>\n</button>\n} @if (logoIconDisplayed$ | async) {\n<qd-icon class=\"logo-icon\" [icon]=\"isMinimized ? 'coatCh' : 'logo'\"></qd-icon>\n} @if (config?.illustration) {\n<span class=\"illustration\" [class.minimized]=\"isMinimized\">\n <img [src]=\"config.illustration.url\" />\n</span>\n} @if (config.title) {\n<span class=\"title\">\n {{ config.title.i18n | translate }}\n</span>\n} @if (config.hasSearch) {\n<qd-shell-header-search></qd-shell-header-search>\n} @if (config.toolbar) {\n<qd-shell-toolbar [config]=\"config.toolbar\"></qd-shell-toolbar>\n} @if (!config.serviceNavigation?.isDisabled && config.serviceNavigation) {\n<qd-icon\n [icon]=\"isServiceNavigationOpened ? 'timesLarge' : 'menu'\"\n data-test-id=\"service-navigation-toggle\"\n [ngClass]=\"{\n 'toggle-service-navigation': true,\n expanded: true\n }\"\n (click)=\"toggleServiceNavigation()\"\n></qd-icon>\n} @if (!config.serviceNavigation?.isDisabled && config.serviceNavigation) {\n<qd-shell-service-navigation\n [config]=\"config.serviceNavigation\"\n [ngClass]=\"{ expanded: !isServiceNavigationOpened }\"\n></qd-shell-service-navigation>\n} @if (isCommentsUsed) {\n<qd-icon\n icon=\"chat\"\n data-test-id=\"comments-toggle\"\n [ngClass]=\"{\n 'toggle-comments': true,\n 'has-comments': hasComments,\n 'is-opened': isCommentsOpened$ | async\n }\"\n (click)=\"toggleComments()\"\n></qd-icon>\n} @if (hasNotificationsToggle$ | async) {\n<qd-icon\n icon=\"notification\"\n data-test-id=\"notification-toggle\"\n [ngClass]=\"{\n 'toggle-notification': true,\n 'has-notifications': hasNotifications$ | async,\n 'is-opened': isNotificationsOpened$ | async\n }\"\n (click)=\"toggleNotifications()\"\n></qd-icon>\n}\n", styles: [":host{display:flex;flex-wrap:wrap;align-content:center;align-items:center;align-self:start;justify-content:space-between;padding:.5rem 1rem .5rem 0;border-bottom:.3125rem solid rgb(220,0,24);background-color:#fff;grid-area:header}:host.sticky{position:sticky;z-index:998;top:0}@media(max-width:599.98px){:host{height:3.75rem;align-content:flex-start}:host.expanded{height:auto}}@media(min-width:960px){:host{height:5.9375rem;padding:0 .75rem 0 0}:host.minimized{height:4.0625rem}}:host .toggle-navigation{padding:1.9375rem .625rem 1.9375rem .8125rem;margin-right:0;cursor:pointer;font-size:1.5rem}@media(min-width:960px){:host .toggle-navigation{border-right:.0625rem solid rgb(213,213,213)}}:host.minimized .toggle-navigation{padding:1rem .625rem 1rem .8125rem}@media(min-width:960px){:host .logo-icon{border-right:.0625rem solid rgb(213,213,213)}}:host .logo-icon.qd-icon-logo{padding-right:1.5rem;margin:1rem 1.5rem 1rem 0}@media(min-width:960px){:host .logo-icon.qd-icon-logo{padding:.9375rem .8125rem;margin-right:1.5rem}}:host .logo-icon.qd-icon-logo svg{overflow:visible}:host .logo-icon.qd-icon-ch-logo{margin-left:1rem;font-size:2rem}@media(min-width:960px){:host .logo-icon.qd-icon-ch-logo{padding:.75rem .8125rem;margin-right:1.5rem;margin-left:0}}:host .logo-icon:not(.qd-icon-logo) svg{display:none}:host .back-link{padding:0;border-right:.0625rem solid rgb(213,213,213);background-color:transparent;color:#979797;font-size:1.625rem}@media(min-width:960px){:host .back-link{padding:.875rem .8125rem;margin-right:1.5rem}}:host .back-link-icon{width:2rem;opacity:.8}:host .back-link:hover{color:#757575;opacity:1}:host .back-link:hover .back-link-icon{opacity:1}:host .illustration{width:4rem;height:4rem;margin-right:.625rem}:host .illustration img{max-width:100%}:host .illustration.minimized{width:2rem;height:2rem;margin-right:.3125rem}:host .title{overflow:hidden;flex-grow:1;font-size:1.25rem;font-weight:500;text-align:center;text-overflow:ellipsis;white-space:nowrap}@media(min-width:960px){:host .title{text-align:start}}:host .toggle-notification,:host .toggle-comments,:host .toggle-service-navigation{position:relative;margin-left:.625rem;cursor:pointer;font-size:1.25rem}:host .toggle-notification.has-notifications:after,:host .toggle-notification.has-comments:after,:host .toggle-comments.has-notifications:after,:host .toggle-comments.has-comments:after,:host .toggle-service-navigation.has-notifications:after,:host .toggle-service-navigation.has-comments:after{position:absolute;top:.125rem;right:0;display:inline-block;width:.5625rem;height:.5625rem;border:rgb(255,255,255) .125rem solid;border-radius:100%;background-color:red;content:\"\"}:host .toggle-notification.is-opened:before,:host .toggle-comments.is-opened:before,:host .toggle-service-navigation.is-opened:before{position:absolute;z-index:-10;display:block;width:2rem;height:2rem;border-radius:50%;background:#e5e5e5;content:\"\";transform:translate(-.4375rem,-.3125rem)}:host .toggle-notification.expanded,:host .toggle-comments.expanded,:host .toggle-service-navigation.expanded{visibility:collapse}@media(max-width:599.98px){:host .toggle-notification.expanded,:host .toggle-comments.expanded,:host .toggle-service-navigation.expanded{visibility:visible}}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "component", type: QdIconComponent, selector: "qd-icon", inputs: ["icon", "status"] }, { kind: "component", type: QdShellServiceNavigationComponent, selector: "qd-shell-service-navigation", inputs: ["config"] }, { kind: "component", type: QdShellHeaderBannerComponent, selector: "qd-shell-header-banner" }, { kind: "component", type: QdShellHeaderSearchComponent, selector: "qd-shell-header-search" }, { kind: "component", type: QdShellToolbarComponent, selector: "qd-shell-toolbar", inputs: ["config"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] });
|
|
34139
34506
|
}
|
|
34140
34507
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdShellHeaderComponent, decorators: [{
|
|
34141
34508
|
type: Component,
|
|
@@ -34312,7 +34679,7 @@ class QdShellNotificationsComponent {
|
|
|
34312
34679
|
this.notifications$ = this.notificationService.getNotificationsForContext('shell');
|
|
34313
34680
|
}
|
|
34314
34681
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdShellNotificationsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
34315
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdShellNotificationsComponent, isStandalone: false, selector: "qd-shell-notifications", ngImport: i0, template: "@for (notification of notifications$ | async; track notification) {\n<qd-shell-notification [notification]=\"notification\"></qd-shell-notification>\n} @if ((notifications$ | async).length === 0) {\n<span class=\"no-notifications-hint\">{{ \"i18n.qd.notification.noNotificationsAvailable\" | translate }}</span>\n}\n", styles: [":host .no-notifications-hint{display:block;color:#757575;font-size:.875rem;font-style:italic;text-align:center}\n"], dependencies: [{ kind: "component", type: QdShellNotificationComponent, selector: "qd-shell-notification", inputs: ["notification"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] });
|
|
34682
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdShellNotificationsComponent, isStandalone: false, selector: "qd-shell-notifications", ngImport: i0, template: "@for (notification of notifications$ | async; track notification) {\n<qd-shell-notification [notification]=\"notification\"></qd-shell-notification>\n} @if ((notifications$ | async).length === 0) {\n<span class=\"no-notifications-hint\">{{ \"i18n.qd.notification.noNotificationsAvailable\" | translate }}</span>\n}\n", styles: [":host .no-notifications-hint{display:block;color:#757575;font-size:.875rem;font-style:italic;text-align:center}\n"], dependencies: [{ kind: "component", type: QdShellNotificationComponent, selector: "qd-shell-notification", inputs: ["notification"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] });
|
|
34316
34683
|
}
|
|
34317
34684
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdShellNotificationsComponent, decorators: [{
|
|
34318
34685
|
type: Component,
|
|
@@ -34488,7 +34855,7 @@ class AddCommentDialogComponent {
|
|
|
34488
34855
|
};
|
|
34489
34856
|
}
|
|
34490
34857
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: AddCommentDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
34491
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: AddCommentDialogComponent, isStandalone: false, selector: "qd-comment-dialog", ngImport: i0, template: "<qd-dialog>\n <form [formGroup]=\"form\">\n <qd-input [config]=\"authorInputConfig\"></qd-input>\n @if (customInputConfig) {\n <qd-dropdown\n [config]=\"customInputConfig\"\n [formControlName]=\"'custom'\"\n [attr.data-test-id]=\"'comment-custom'\"\n ></qd-dropdown>\n }\n\n <qd-richtext [config]=\"richtextConfig\" #commentText [formControlName]=\"'comment'\"> </qd-richtext>\n </form>\n <qd-dialog-action>\n <button qdButton qdButtonGhost color=\"secondary\" (click)=\"close()\" [data-test-id]=\"'button-cancel'\">\n {{ \"i18n.qd.comments.add.dialog.cancel\" | translate }}\n </button>\n <button\n [disabled]=\"!commentText.value || commentText.hasError\"\n qdButton\n (click)=\"close('Yes')\"\n [data-test-id]=\"'button-submit'\"\n >\n {{ \"i18n.qd.comments.add.dialog.submit\" | translate }}\n </button>\n </qd-dialog-action>\n</qd-dialog>\n", styles: [".validation-message{margin-top:4px;color:red;font-size:.875em}\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: QdDropdownComponent, selector: "qd-dropdown", inputs: ["value", "id", "formControlName", "config", "data-test-id", "qdPopoverMaxHeight", "dense"], outputs: ["valueChange", "enterClick", "dropdownOpened", "clickHint", "clickReadonly", "clickViewonly", "optionsResolved"] }, { kind: "component", type: QdInputComponent, selector: "qd-input", inputs: ["formControlName", "value", "config", "isError", "data-test-id"], outputs: ["valueChange", "enterClick", "clickClear", "clickHint", "clickReadonly", "clickViewonly", "optionsResolved"] }, { kind: "component", type: QdRichtextComponent, selector: "qd-richtext", inputs: ["formControlName", "value", "config", "data-test-id"], outputs: ["valueChange", "clickHint", "clickReadonly", "clickViewonly"] }, { kind: "component", type: QdDialogActionComponent, selector: "qd-dialog-action" }, { kind: "component", type: QdDialogComponent, selector: "qd-dialog", inputs: ["data-test-id"] }, { kind: "directive", type: i1$
|
|
34858
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: AddCommentDialogComponent, isStandalone: false, selector: "qd-comment-dialog", ngImport: i0, template: "<qd-dialog>\n <form [formGroup]=\"form\">\n <qd-input [config]=\"authorInputConfig\"></qd-input>\n @if (customInputConfig) {\n <qd-dropdown\n [config]=\"customInputConfig\"\n [formControlName]=\"'custom'\"\n [attr.data-test-id]=\"'comment-custom'\"\n ></qd-dropdown>\n }\n\n <qd-richtext [config]=\"richtextConfig\" #commentText [formControlName]=\"'comment'\"> </qd-richtext>\n </form>\n <qd-dialog-action>\n <button qdButton qdButtonGhost color=\"secondary\" (click)=\"close()\" [data-test-id]=\"'button-cancel'\">\n {{ \"i18n.qd.comments.add.dialog.cancel\" | translate }}\n </button>\n <button\n [disabled]=\"!commentText.value || commentText.hasError\"\n qdButton\n (click)=\"close('Yes')\"\n [data-test-id]=\"'button-submit'\"\n >\n {{ \"i18n.qd.comments.add.dialog.submit\" | translate }}\n </button>\n </qd-dialog-action>\n</qd-dialog>\n", styles: [".validation-message{margin-top:4px;color:red;font-size:.875em}\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: QdDropdownComponent, selector: "qd-dropdown", inputs: ["value", "id", "formControlName", "config", "data-test-id", "qdPopoverMaxHeight", "dense"], outputs: ["valueChange", "enterClick", "dropdownOpened", "clickHint", "clickReadonly", "clickViewonly", "optionsResolved"] }, { kind: "component", type: QdInputComponent, selector: "qd-input", inputs: ["formControlName", "value", "config", "isError", "data-test-id"], outputs: ["valueChange", "enterClick", "clickClear", "clickHint", "clickReadonly", "clickViewonly", "optionsResolved"] }, { kind: "component", type: QdRichtextComponent, selector: "qd-richtext", inputs: ["formControlName", "value", "config", "data-test-id"], outputs: ["valueChange", "clickHint", "clickReadonly", "clickViewonly"] }, { kind: "component", type: QdDialogActionComponent, selector: "qd-dialog-action" }, { kind: "component", type: QdDialogComponent, selector: "qd-dialog", inputs: ["data-test-id"] }, { kind: "directive", type: i1$2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
34492
34859
|
}
|
|
34493
34860
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: AddCommentDialogComponent, decorators: [{
|
|
34494
34861
|
type: Component,
|
|
@@ -34715,7 +35082,7 @@ class QdShellComponent {
|
|
|
34715
35082
|
QdShellLeftService,
|
|
34716
35083
|
QdShellRightService,
|
|
34717
35084
|
{ provide: 'rwdLayout', useValue: { hasLegacyLayout: false } }
|
|
34718
|
-
], queries: [{ propertyName: "commentsComponent", predicate: QdCommentsComponent }], viewQueries: [{ propertyName: "shellHeaderComponent", first: true, predicate: QdShellHeaderComponent, descendants: true }], ngImport: i0, template: "<div\n [ngClass]=\"{\n 'qd-shell': true,\n 'has-navigation': hasNavigation$ | async,\n 'left-pinned': isNavigationPinned$ | async,\n 'left-rolled-over': isNavigationRolledOver$ | async,\n 'shell-right-open': isShellRightOpen$ | async,\n 'shell-right-pinned': isShellRightPinned$ | async\n }\"\n>\n <header\n qd-shell-header\n [config]=\"config\"\n [isMinimized]=\"(isMinimized$ | async) ?? true\"\n [isCommentsUsed]=\"commentsComponent.length > 0\"\n [hasComments]=\"commentsComponent.get(0)?.hasComments$ | async\"\n ></header>\n\n @if (hasNavigation$ | async) {\n <aside\n qd-shell-left\n [ngClass]=\"{ pinned: isNavigationPinned$ | async, 'rolled-over': isNavigationRolledOver$ | async }\"\n >\n <qd-shell-navigation [config]=\"config.navigation\"></qd-shell-navigation>\n </aside>\n }\n\n <main [ngClass]=\"{ faded: isFaded$ | async }\">\n <router-outlet (activate)=\"handleRouterOutletActivation($event)\"></router-outlet>\n </main>\n\n @if (isShellRightOpen$ | async) {\n <aside\n qd-shell-right\n [config]=\"config\"\n [ngClass]=\"{\n pinned: isShellRightPinned$ | async\n }\"\n >\n @if (commentsComponent.length > 0 && isCommentsDisplayed) {\n <ng-content select=\"qd-comments\"></ng-content>\n } @if (!isCommentsDisplayed) {\n <qd-shell-notifications></qd-shell-notifications>\n }\n </aside>\n } @if (isHome$ | async) {\n <footer qd-shell-footer [copyrightInfo]=\"config.copyrightInfo\" [isSticky]=\"config.isFooterSticky\"></footer>\n }\n</div>\n", styles: [":host{display:block}:host .qd-shell{display:grid;min-height:100vh;background-color:#efefef;grid-template-areas:\"header\" \"main\" \"footer\";grid-template-rows:auto 1fr auto}:host .qd-shell.has-navigation{grid-template-areas:\"header header\" \"aside-left main\" \"footer footer\";grid-template-columns:3rem 1fr;transition:grid-template-columns .3s linear}:host .qd-shell.has-navigation.shell-right-open{grid-template-areas:\"header header header\" \"aside-left main aside-right\" \"footer footer footer\";grid-template-columns:3rem 1fr 0}:host .qd-shell.has-navigation.shell-right-open.shell-right-pinned{grid-template-columns:3rem 1fr 0}:host .qd-shell.has-navigation.shell-right-open.shell-right-pinned main{margin-right:18.75rem}:host .qd-shell.has-navigation.left-pinned{grid-template-columns:18.75rem 1fr}:host .qd-shell.has-navigation.left-pinned.shell-right-open{grid-template-columns:18.75rem 1fr 0}:host .qd-shell.has-navigation.left-pinned.shell-right-open.shell-right-pinned{grid-template-columns:18.75rem 1fr 0}:host .qd-shell.has-navigation.left-pinned.shell-right-open.shell-right-pinned main{margin-right:18.75rem}:host .qd-shell:not(.has-navigation).shell-right-open{grid-template-areas:\"header header\" \"main aside-right\" \"footer footer\";grid-template-columns:1fr 0}:host .qd-shell:not(.has-navigation).shell-right-open.shell-right-pinned{grid-template-columns:1fr 0}:host .qd-shell:not(.has-navigation).shell-right-open.shell-right-pinned main{margin-right:18.75rem}:host .qd-shell ::ng-deep qd-container:not(:last-of-type){border-bottom:rgb(213,213,213) solid .0625rem}:host main{position:relative}:host main.faded:after{position:absolute;z-index:1400;background:#000;content:\"\";inset:0;opacity:.5}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$
|
|
35085
|
+
], queries: [{ propertyName: "commentsComponent", predicate: QdCommentsComponent }], viewQueries: [{ propertyName: "shellHeaderComponent", first: true, predicate: QdShellHeaderComponent, descendants: true }], ngImport: i0, template: "<div\n [ngClass]=\"{\n 'qd-shell': true,\n 'has-navigation': hasNavigation$ | async,\n 'left-pinned': isNavigationPinned$ | async,\n 'left-rolled-over': isNavigationRolledOver$ | async,\n 'shell-right-open': isShellRightOpen$ | async,\n 'shell-right-pinned': isShellRightPinned$ | async\n }\"\n>\n <header\n qd-shell-header\n [config]=\"config\"\n [isMinimized]=\"(isMinimized$ | async) ?? true\"\n [isCommentsUsed]=\"commentsComponent.length > 0\"\n [hasComments]=\"commentsComponent.get(0)?.hasComments$ | async\"\n ></header>\n\n @if (hasNavigation$ | async) {\n <aside\n qd-shell-left\n [ngClass]=\"{ pinned: isNavigationPinned$ | async, 'rolled-over': isNavigationRolledOver$ | async }\"\n >\n <qd-shell-navigation [config]=\"config.navigation\"></qd-shell-navigation>\n </aside>\n }\n\n <main [ngClass]=\"{ faded: isFaded$ | async }\">\n <router-outlet (activate)=\"handleRouterOutletActivation($event)\"></router-outlet>\n </main>\n\n @if (isShellRightOpen$ | async) {\n <aside\n qd-shell-right\n [config]=\"config\"\n [ngClass]=\"{\n pinned: isShellRightPinned$ | async\n }\"\n >\n @if (commentsComponent.length > 0 && isCommentsDisplayed) {\n <ng-content select=\"qd-comments\"></ng-content>\n } @if (!isCommentsDisplayed) {\n <qd-shell-notifications></qd-shell-notifications>\n }\n </aside>\n } @if (isHome$ | async) {\n <footer qd-shell-footer [copyrightInfo]=\"config.copyrightInfo\" [isSticky]=\"config.isFooterSticky\"></footer>\n }\n</div>\n", styles: [":host{display:block}:host .qd-shell{display:grid;min-height:100vh;background-color:#efefef;grid-template-areas:\"header\" \"main\" \"footer\";grid-template-rows:auto 1fr auto}:host .qd-shell.has-navigation{grid-template-areas:\"header header\" \"aside-left main\" \"footer footer\";grid-template-columns:3rem 1fr;transition:grid-template-columns .3s linear}:host .qd-shell.has-navigation.shell-right-open{grid-template-areas:\"header header header\" \"aside-left main aside-right\" \"footer footer footer\";grid-template-columns:3rem 1fr 0}:host .qd-shell.has-navigation.shell-right-open.shell-right-pinned{grid-template-columns:3rem 1fr 0}:host .qd-shell.has-navigation.shell-right-open.shell-right-pinned main{margin-right:18.75rem}:host .qd-shell.has-navigation.left-pinned{grid-template-columns:18.75rem 1fr}:host .qd-shell.has-navigation.left-pinned.shell-right-open{grid-template-columns:18.75rem 1fr 0}:host .qd-shell.has-navigation.left-pinned.shell-right-open.shell-right-pinned{grid-template-columns:18.75rem 1fr 0}:host .qd-shell.has-navigation.left-pinned.shell-right-open.shell-right-pinned main{margin-right:18.75rem}:host .qd-shell:not(.has-navigation).shell-right-open{grid-template-areas:\"header header\" \"main aside-right\" \"footer footer\";grid-template-columns:1fr 0}:host .qd-shell:not(.has-navigation).shell-right-open.shell-right-pinned{grid-template-columns:1fr 0}:host .qd-shell:not(.has-navigation).shell-right-open.shell-right-pinned main{margin-right:18.75rem}:host .qd-shell ::ng-deep qd-container:not(:last-of-type){border-bottom:rgb(213,213,213) solid .0625rem}:host main{position:relative}:host main.faded:after{position:absolute;z-index:1400;background:#000;content:\"\";inset:0;opacity:.5}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$3.RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "component", type: QdShellFooterComponent, selector: "[qd-shell-footer]", inputs: ["copyrightInfo", "isSticky"] }, { kind: "component", type: QdShellHeaderComponent, selector: "[qd-shell-header]", inputs: ["config", "isMinimized", "isCommentsUsed", "hasComments"], outputs: ["menuIconChange"] }, { kind: "component", type: QdShellLeftComponent, selector: "[qd-shell-left]", inputs: ["navigationTemplateRef"] }, { kind: "component", type: QdShellRightComponent, selector: "[qd-shell-right]", inputs: ["config"] }, { kind: "component", type: QdShellNotificationsComponent, selector: "qd-shell-notifications" }, { kind: "component", type: QdShellNavigationComponent, selector: "qd-shell-navigation", inputs: ["config"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }] });
|
|
34719
35086
|
}
|
|
34720
35087
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdShellComponent, decorators: [{
|
|
34721
35088
|
type: Component,
|
|
@@ -35707,7 +36074,7 @@ class QdQuickEditComponent {
|
|
|
35707
36074
|
this.controlContainer.control.valueChanges.pipe(tap(() => this.changeDetectorRef.detectChanges())).subscribe();
|
|
35708
36075
|
}
|
|
35709
36076
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdQuickEditComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
35710
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdQuickEditComponent, isStandalone: false, selector: "qd-quick-edit", inputs: { config: "config", data: "data", testId: ["data-test-id", "testId"] }, outputs: { formGroupChange: "formGroupChange", addNewClicked: "addNewClicked" }, viewQueries: [{ propertyName: "customForDirective", first: true, predicate: QdCustomForDirective, descendants: true }, { propertyName: "focusables", predicate: QdFocusableDirective, descendants: true }], usesOnChanges: true, ngImport: i0, template: "@if (showStandaloneCreate) {\n<div class=\"editable-actions\">\n <button\n qdButton\n qdButtonGhost\n icon=\"plus\"\n (click)=\"createRow()\"\n [data-test-id]=\"testId + '-button-add-new'\"\n class=\"create-button-standalone\"\n >\n {{ config.standaloneCreateLabel?.i18n ?? \"i18n.qd.quick.edit.createButtonLabel\" | translate }}\n </button>\n</div>\n}\n\n<div class=\"table\" [formGroup]=\"control\">\n @if (!config.canAdd || templateData.length > 0 || config.emptyStateView) {\n <div class=\"table-header\">\n <div class=\"table-row\">\n @for (header of visibleColumns; track header) {\n <div class=\"table-cell\">\n {{ header?.i18n | translate }}\n <qd-tooltip-icon [tooltip]=\"header?.tooltip\"></qd-tooltip-icon>\n </div>\n } @if (hasVisibleActions$ | async) {\n <div class=\"table-cell actions-column\">\n <button class=\"menu-button\">\n <qd-icon icon=\"overflowMenuHorizontal\"></qd-icon>\n </button>\n </div>\n }\n </div>\n </div>\n }\n <div class=\"table-body\">\n <div\n class=\"table-row\"\n *qdCustomFor=\"let row of templateData; let rowIndex = index; toggler: togglerDrawing\"\n [formGroupName]=\"rowIndex\"\n [attr.data-test-id]=\"testId + '-row-' + rowIndex\"\n >\n @for (column of visibleColumns; track trackByColumnName($index, column)) {\n <div class=\"table-cell\">\n @if (column.type === 'enum') {\n <qd-dropdown\n [config]=\"{\n filter: column.filter,\n options: column.options,\n placeholder: column.placeholder,\n placeholderPrefix: column.placeholderPrefix,\n viewonly: (viewonly$ | async) === true || !column.isEditable(row, column.name)\n }\"\n [data-test-id]=\"column.name + rowIndex\"\n [dense]=\"true\"\n [formControl]=\"$any(control.controls[rowIndex])?.controls[column.name]\"\n qdFocusable\n class=\"dropdown\"\n >\n </qd-dropdown>\n } @else { @if ($any(control.controls[rowIndex])?.controls[column.name]) {\n <qd-input\n [data-test-id]=\"column.name + rowIndex\"\n [formControlName]=\"column.name\"\n [config]=\"{\n inputType: column.type === 'integer' ? 'number' : 'text',\n viewonly: (viewonly$ | async) === true || !column.isEditable(row, column.name)\n }\"\n qdFocusable\n ></qd-input>\n } }\n </div>\n } @if (hasVisibleActions$ | async) {\n <td class=\"table-cell actions\" [attr.data-test-id]=\"testId + '-cell-inline-actions'\">\n <button\n type=\"button\"\n [qdPopoverOnClick]=\"menu\"\n [qdPopoverCloseStrategy]=\"'onEveryClick'\"\n [qdPopoverStopPropagation]=\"true\"\n class=\"menu-button\"\n data-test=\"secondary-actions-toggler\"\n >\n <qd-icon icon=\"overflowMenuHorizontal\"></qd-icon>\n </button>\n <ng-template #menu>\n @for (secondaryAction of actions$ | async; track secondaryAction) {\n <button\n class=\"secondary-actions\"\n [ngClass]=\"{ disabled: isActionDisabled(secondaryAction, row) }\"\n [attr.disabled]=\"isActionDisabled(secondaryAction, row) || null\"\n (click)=\"handleSecondaryAction(secondaryAction, rowIndex)\"\n >\n {{ secondaryAction.label.i18n | translate }}\n </button>\n } @if (canAdd && (viewonly$ | async) === false) {\n <button class=\"secondary-actions\" (click)=\"removeRow(rowIndex)\">\n {{ \"i18n.qd.quick.edit.removeButtonLabel\" | translate }}\n </button>\n }\n </ng-template>\n </td>\n }\n </div>\n </div>\n @if (config.emptyStateView && !config.emptyStateView.disabled && templateData.length === 0) {\n <div class=\"empty-body\">\n <p>{{ config.emptyStateView.i18n | translate }}</p>\n </div>\n }\n</div>\n", styles: [".table{display:flex;width:100%;flex-direction:column;margin:1.25rem auto;background-color:#fff;font-size:.875rem}.table ::ng-deep .qd-input-input{margin-bottom:0!important}.table-header .table-row{padding-top:.125rem;padding-bottom:.125rem;background-color:#e5e5e5;font-weight:700}.table-header .table-row .actions-column{border-right:none;visibility:hidden}.table-header,.table-body{display:flex;flex-direction:column}.table-row{display:flex;flex-direction:row;padding:.25rem 1rem;border-bottom:.0625rem solid rgb(213,213,213);gap:1rem}.table-row ::ng-deep qd-form-label{display:none!important}.table-row ::ng-deep qd-input{min-width:0;margin-bottom:0!important}.table-body .table-row:hover{background-color:#f5f5f5}.table-cell{display:flex;min-width:0;height:37px;flex:1;align-items:center;text-align:left}.table-cell:has(.qd-input-error),.table-cell:has(.qd-dropdown-error){height:auto;align-items:flex-start}.table-cell:has(.qd-input-character-counter){height:auto;align-items:flex-start}.table-cell:has(.qd-input-character-counter) ::ng-deep qd-input{position:relative}.table-cell:has(.qd-input-character-counter) ::ng-deep qd-input .qd-input-character-counter{position:absolute;right:.25rem;bottom:.125rem;font-size:.625rem;line-height:1;pointer-events:none}.table-cell.actions,.table-cell.actions-column{min-width:auto;flex:0 0 auto}.table-row:last-child{border-bottom:none}.table-cell:last-child{border-right:none}.editable-actions{display:flex;justify-content:flex-end;margin-right:.625rem;gap:.625rem}.menu-button{display:flex;padding:0 .625rem 0 .375rem;background:unset;color:#454545;font-size:2rem;vertical-align:middle}.menu-button:hover,.menu-button:focus{color:#000;outline:0!important}.secondary-actions{display:block;width:100%;min-height:2rem;padding:0 1rem;background:#fff0;font-size:.75rem;text-align:left}.secondary-actions:hover{background-color:#f2f7fa}.secondary-actions.disabled{color:#b4b4b4;cursor:not-allowed}.secondary-actions.disabled:hover{background-color:#fff0}.dropdown{width:100%;min-width:0}.empty-body{padding:1.5rem;background:#fff}.empty-body p{margin:0 0 .5rem}\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: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: QdDropdownComponent, selector: "qd-dropdown", inputs: ["value", "id", "formControlName", "config", "data-test-id", "qdPopoverMaxHeight", "dense"], outputs: ["valueChange", "enterClick", "dropdownOpened", "clickHint", "clickReadonly", "clickViewonly", "optionsResolved"] }, { kind: "component", type: QdInputComponent, selector: "qd-input", inputs: ["formControlName", "value", "config", "isError", "data-test-id"], outputs: ["valueChange", "enterClick", "clickClear", "clickHint", "clickReadonly", "clickViewonly", "optionsResolved"] }, { kind: "directive", type: i1$
|
|
36077
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdQuickEditComponent, isStandalone: false, selector: "qd-quick-edit", inputs: { config: "config", data: "data", testId: ["data-test-id", "testId"] }, outputs: { formGroupChange: "formGroupChange", addNewClicked: "addNewClicked" }, viewQueries: [{ propertyName: "customForDirective", first: true, predicate: QdCustomForDirective, descendants: true }, { propertyName: "focusables", predicate: QdFocusableDirective, descendants: true }], usesOnChanges: true, ngImport: i0, template: "@if (showStandaloneCreate) {\n<div class=\"editable-actions\">\n <button\n qdButton\n qdButtonGhost\n icon=\"plus\"\n (click)=\"createRow()\"\n [data-test-id]=\"testId + '-button-add-new'\"\n class=\"create-button-standalone\"\n >\n {{ config.standaloneCreateLabel?.i18n ?? \"i18n.qd.quick.edit.createButtonLabel\" | translate }}\n </button>\n</div>\n}\n\n<div class=\"table\" [formGroup]=\"control\">\n @if (!config.canAdd || templateData.length > 0 || config.emptyStateView) {\n <div class=\"table-header\">\n <div class=\"table-row\">\n @for (header of visibleColumns; track header) {\n <div class=\"table-cell\">\n {{ header?.i18n | translate }}\n <qd-tooltip-icon [tooltip]=\"header?.tooltip\"></qd-tooltip-icon>\n </div>\n } @if (hasVisibleActions$ | async) {\n <div class=\"table-cell actions-column\">\n <button class=\"menu-button\">\n <qd-icon icon=\"overflowMenuHorizontal\"></qd-icon>\n </button>\n </div>\n }\n </div>\n </div>\n }\n <div class=\"table-body\">\n <div\n class=\"table-row\"\n *qdCustomFor=\"let row of templateData; let rowIndex = index; toggler: togglerDrawing\"\n [formGroupName]=\"rowIndex\"\n [attr.data-test-id]=\"testId + '-row-' + rowIndex\"\n >\n @for (column of visibleColumns; track trackByColumnName($index, column)) {\n <div class=\"table-cell\">\n @if (column.type === 'enum') {\n <qd-dropdown\n [config]=\"{\n filter: column.filter,\n options: column.options,\n placeholder: column.placeholder,\n placeholderPrefix: column.placeholderPrefix,\n viewonly: (viewonly$ | async) === true || !column.isEditable(row, column.name)\n }\"\n [data-test-id]=\"column.name + rowIndex\"\n [dense]=\"true\"\n [formControl]=\"$any(control.controls[rowIndex])?.controls[column.name]\"\n qdFocusable\n class=\"dropdown\"\n >\n </qd-dropdown>\n } @else { @if ($any(control.controls[rowIndex])?.controls[column.name]) {\n <qd-input\n [data-test-id]=\"column.name + rowIndex\"\n [formControlName]=\"column.name\"\n [config]=\"{\n inputType: column.type === 'integer' ? 'number' : 'text',\n viewonly: (viewonly$ | async) === true || !column.isEditable(row, column.name)\n }\"\n qdFocusable\n ></qd-input>\n } }\n </div>\n } @if (hasVisibleActions$ | async) {\n <td class=\"table-cell actions\" [attr.data-test-id]=\"testId + '-cell-inline-actions'\">\n <button\n type=\"button\"\n [qdPopoverOnClick]=\"menu\"\n [qdPopoverCloseStrategy]=\"'onEveryClick'\"\n [qdPopoverStopPropagation]=\"true\"\n class=\"menu-button\"\n data-test=\"secondary-actions-toggler\"\n >\n <qd-icon icon=\"overflowMenuHorizontal\"></qd-icon>\n </button>\n <ng-template #menu>\n @for (secondaryAction of actions$ | async; track secondaryAction) {\n <button\n class=\"secondary-actions\"\n [ngClass]=\"{ disabled: isActionDisabled(secondaryAction, row) }\"\n [attr.disabled]=\"isActionDisabled(secondaryAction, row) || null\"\n (click)=\"handleSecondaryAction(secondaryAction, rowIndex)\"\n >\n {{ secondaryAction.label.i18n | translate }}\n </button>\n } @if (canAdd && (viewonly$ | async) === false) {\n <button class=\"secondary-actions\" (click)=\"removeRow(rowIndex)\">\n {{ \"i18n.qd.quick.edit.removeButtonLabel\" | translate }}\n </button>\n }\n </ng-template>\n </td>\n }\n </div>\n </div>\n @if (config.emptyStateView && !config.emptyStateView.disabled && templateData.length === 0) {\n <div class=\"empty-body\">\n <p>{{ config.emptyStateView.i18n | translate }}</p>\n </div>\n }\n</div>\n", styles: [".table{display:flex;width:100%;flex-direction:column;margin:1.25rem auto;background-color:#fff;font-size:.875rem}.table ::ng-deep .qd-input-input{margin-bottom:0!important}.table-header .table-row{padding-top:.125rem;padding-bottom:.125rem;background-color:#e5e5e5;font-weight:700}.table-header .table-row .actions-column{border-right:none;visibility:hidden}.table-header,.table-body{display:flex;flex-direction:column}.table-row{display:flex;flex-direction:row;padding:.25rem 1rem;border-bottom:.0625rem solid rgb(213,213,213);gap:1rem}.table-row ::ng-deep qd-form-label{display:none!important}.table-row ::ng-deep qd-input{min-width:0;margin-bottom:0!important}.table-body .table-row:hover{background-color:#f5f5f5}.table-cell{display:flex;min-width:0;height:37px;flex:1;align-items:center;text-align:left}.table-cell:has(.qd-input-error),.table-cell:has(.qd-dropdown-error){height:auto;align-items:flex-start}.table-cell:has(.qd-input-character-counter){height:auto;align-items:flex-start}.table-cell:has(.qd-input-character-counter) ::ng-deep qd-input{position:relative}.table-cell:has(.qd-input-character-counter) ::ng-deep qd-input .qd-input-character-counter{position:absolute;right:.25rem;bottom:.125rem;font-size:.625rem;line-height:1;pointer-events:none}.table-cell.actions,.table-cell.actions-column{min-width:auto;flex:0 0 auto}.table-row:last-child{border-bottom:none}.table-cell:last-child{border-right:none}.editable-actions{display:flex;justify-content:flex-end;margin-right:.625rem;gap:.625rem}.menu-button{display:flex;padding:0 .625rem 0 .375rem;background:unset;color:#454545;font-size:2rem;vertical-align:middle}.menu-button:hover,.menu-button:focus{color:#000;outline:0!important}.secondary-actions{display:block;width:100%;min-height:2rem;padding:0 1rem;background:#fff0;font-size:.75rem;text-align:left}.secondary-actions:hover{background-color:#f2f7fa}.secondary-actions.disabled{color:#b4b4b4;cursor:not-allowed}.secondary-actions.disabled:hover{background-color:#fff0}.dropdown{width:100%;min-width:0}.empty-body{padding:1.5rem;background:#fff}.empty-body p{margin:0 0 .5rem}\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: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: QdDropdownComponent, selector: "qd-dropdown", inputs: ["value", "id", "formControlName", "config", "data-test-id", "qdPopoverMaxHeight", "dense"], outputs: ["valueChange", "enterClick", "dropdownOpened", "clickHint", "clickReadonly", "clickViewonly", "optionsResolved"] }, { kind: "component", type: QdInputComponent, selector: "qd-input", inputs: ["formControlName", "value", "config", "isError", "data-test-id"], outputs: ["valueChange", "enterClick", "clickClear", "clickHint", "clickReadonly", "clickViewonly", "optionsResolved"] }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i1$2.FormGroupName, selector: "[formGroupName]", inputs: ["formGroupName"] }, { 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: QdFocusableDirective, selector: "[qdFocusable]" }, { kind: "component", type: QdTooltipIconComponent, selector: "qd-tooltip-icon", inputs: ["tooltip"] }, { kind: "directive", type: QdCustomForDirective, selector: "[qdCustomFor]", inputs: ["qdCustomForOf", "qdCustomForToggler"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
35711
36078
|
}
|
|
35712
36079
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdQuickEditComponent, decorators: [{
|
|
35713
36080
|
type: Component,
|