@quadrel-enterprise-ui/framework 21.0.0-beta.278.1 → 21.0.0

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,33 +1,27 @@
1
1
  import * as i0 from '@angular/core';
2
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';
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, fromEvent, isObservable, NEVER, Observable, EMPTY, shareReplay, Subscription, distinctUntilChanged as distinctUntilChanged$1, debounce, timer, switchMap, startWith as startWith$1, debounceTime as debounceTime$1, takeUntil as takeUntil$1, firstValueFrom, combineLatest, concat, take as take$1, tap as tap$1, from, delay, defer, scan, queueScheduler, filter as filter$1, concatMap as concatMap$1, exhaustMap, finalize, forkJoin, delayWhen, combineLatestWith, withLatestFrom as withLatestFrom$1, async } from 'rxjs';
5
- import { map, takeUntil, take, filter, catchError, debounceTime, startWith, distinctUntilChanged, concatMap, skip, tap, auditTime, withLatestFrom, observeOn, switchMap as switchMap$1, pairwise as pairwise$1, mergeMap } from 'rxjs/operators';
4
+ import { BehaviorSubject, pairwise, map as map$1, Subject, throwError, of, ReplaySubject, merge, fromEvent, 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, combineLatest, concat, take as take$1, tap as tap$1, from, delay, defer, scan, queueScheduler, filter as filter$1, concatMap as concatMap$1, exhaustMap, finalize, forkJoin, delayWhen, combineLatestWith, withLatestFrom as withLatestFrom$1, async } from 'rxjs';
5
+ import { map, takeUntil, take, filter, catchError, debounceTime, startWith, 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
9
  import * as i1$2 from '@angular/router';
10
10
  import { Router, ActivationEnd, RouterModule, ActivatedRoute, NavigationEnd, NavigationCancel, NavigationError, NavigationStart } from '@angular/router';
11
11
  import { HttpStatusCode, HttpParams, HttpEventType, HttpClient, HTTP_INTERCEPTORS } from '@angular/common/http';
12
- import * as _ from 'lodash';
13
- import { upperCase, lowerFirst, isEqual, range, get as get$1, cloneDeep, union, isNumber as isNumber$1 } from 'lodash';
14
12
  import * as i1 from '@angular/common';
15
13
  import { CommonModule, DOCUMENT, NgClass, NgTemplateOutlet, AsyncPipe, NgFor, NgIf } from '@angular/common';
16
14
  import * as i1$1 from '@angular/forms';
17
15
  import { NG_VALUE_ACCESSOR, FormsModule, UntypedFormControl, UntypedFormArray, UntypedFormGroup, ControlContainer, FormControlDirective, AbstractControl, UntypedFormBuilder, Validators, FormControl, ReactiveFormsModule, NgForm, FormGroupDirective, FormArray, FormGroup, FormBuilder } from '@angular/forms';
18
16
  import { ComponentPortal } from '@angular/cdk/portal';
19
17
  import { OverlayPositionBuilder, Overlay } from '@angular/cdk/overlay';
20
- import isNumber from 'lodash/isNumber';
21
18
  import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
22
19
  import { EventSourcePolyfill } from 'event-source-polyfill';
23
20
  import { DomSanitizer } from '@angular/platform-browser';
24
21
  import * as i1$3 from '@angular/cdk/a11y';
25
- import { ActiveDescendantKeyManager, A11yModule } from '@angular/cdk/a11y';
22
+ import { ActiveDescendantKeyManager, A11yModule, FocusKeyManager } from '@angular/cdk/a11y';
26
23
  import * as i2$1 from 'ngx-editor';
27
24
  import { Editor, NgxEditorModule } from 'ngx-editor';
28
- import _defaultTo from 'lodash/defaultTo';
29
- import _get from 'lodash/get';
30
- import isEqual$1 from 'lodash/isEqual';
31
25
  import moment from 'moment';
32
26
  import 'moment/locale/de';
33
27
  import 'moment/locale/fr';
@@ -38,8 +32,6 @@ import { createAction, props, createReducer, on, createSelector, createFeatureSe
38
32
  import { diff } from 'deep-object-diff';
39
33
  import * as i1$5 from '@angular/cdk/scrolling';
40
34
  import { ScrollingModule } from '@angular/cdk/scrolling';
41
- import isObject from 'lodash/isObject';
42
- import omit from 'lodash/omit';
43
35
  import { Directionality } from '@angular/cdk/bidi';
44
36
  import { CdkStepHeader, STEP_STATE, CdkStepper, CdkStep, STEPPER_GLOBAL_OPTIONS, CdkStepperModule } from '@angular/cdk/stepper';
45
37
  import * as i2$2 from '@angular/cdk/drag-drop';
@@ -903,7 +895,7 @@ class QdNotificationsService {
903
895
  this._notificationsSubject.next(this.notifications);
904
896
  }
905
897
  removeNotificationAfterTimeOut(notification) {
906
- if (!['success', 'info'].includes(notification.type))
898
+ if (!['positive', 'info'].includes(notification.state))
907
899
  return;
908
900
  if (notification.lifeTime !== 0) {
909
901
  setTimeout(() => this.remove(notification.context, notification.uuid), this.getNotificationLifeTime(notification) * 1000);
@@ -966,7 +958,7 @@ class QdButtonAdditionalInfoComponent {
966
958
  }
967
959
  showMessage() {
968
960
  this.notificationsService.add('page', {
969
- type: this.infoType,
961
+ state: this.infoType,
970
962
  i18n: this.buttonAdditionalInfo.message.i18n,
971
963
  showAsSnackbar: true
972
964
  });
@@ -1673,10 +1665,78 @@ const determineLocale = (serviceNavLanguage, browserLocales, isIOS = false) => {
1673
1665
  return SERVICE_NAV_LOCALE_DEFAULTS[serviceNavLangUpper] ?? browserLocale;
1674
1666
  };
1675
1667
 
1676
- const constantCase = (str) => upperCase(str).replace(/ /g, '_');
1668
+ /**
1669
+ * Turns a text into an upper case constant name, with the words joined by underscores.
1670
+ *
1671
+ * It is used where a value has to become a stable key, for example the i18n key of an HTTP
1672
+ * error. The same input always gives the same key, no matter how the text was written.
1673
+ *
1674
+ * #### Features:
1675
+ *
1676
+ * - Splits on case changes and on symbols, so `myValue`, `MyValue` and `my value` all become
1677
+ * `MY_VALUE`.
1678
+ * - Keeps digit groups together and treats an ordinal as one word, so `1st` becomes `1ST`.
1679
+ * - Removes accents and rewrites letters that have no plain form, `ß` to `ss` and `ø` to `o`.
1680
+ * - Drops punctuation and spaces, because only letters and digits count as words.
1681
+ *
1682
+ * #### Notes & Best Practices:
1683
+ *
1684
+ * - A text without letters or digits returns an empty string.
1685
+ * - Letters outside the Latin alphabet are kept as they are. They have no sensible plain form,
1686
+ * and dropping them would silently merge two different keys into one.
1687
+ */
1688
+ const qdConstantCase = (text) => toWords(toAsciiLetters(text)).join('_').toUpperCase();
1689
+ const LATIN_REPLACEMENTS = {
1690
+ ß: 'ss',
1691
+ æ: 'ae',
1692
+ Æ: 'Ae',
1693
+ œ: 'oe',
1694
+ Œ: 'Oe',
1695
+ ø: 'o',
1696
+ Ø: 'O',
1697
+ ð: 'd',
1698
+ Ð: 'D',
1699
+ đ: 'd',
1700
+ Đ: 'D',
1701
+ þ: 'th',
1702
+ Þ: 'Th',
1703
+ ħ: 'h',
1704
+ Ħ: 'H',
1705
+ ı: 'i',
1706
+ ł: 'l',
1707
+ Ł: 'L',
1708
+ ŀ: 'l',
1709
+ Ŀ: 'L',
1710
+ ŋ: 'n',
1711
+ Ŋ: 'N',
1712
+ ŧ: 't',
1713
+ Ŧ: 'T',
1714
+ ſ: 's',
1715
+ ƒ: 'f'
1716
+ };
1717
+ const COMBINING_MARKS = /\p{Diacritic}/gu;
1718
+ const NON_ASCII = /\P{ASCII}/gu;
1719
+ const ORDINAL_LOWER = String.raw `\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])`;
1720
+ const ORDINAL_UPPER = String.raw `\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])`;
1721
+ const LETTERS = String.raw `\p{Lu}+(?=\p{Lu}\p{Ll})|\p{Lu}?\p{Ll}+|\p{Lu}+|\p{Lo}+`;
1722
+ const WORDS = new RegExp(`${LETTERS}|${ORDINAL_UPPER}|${ORDINAL_LOWER}|\\p{N}+`, 'gu');
1723
+ const replaceLatin = (character) => {
1724
+ const replacement = LATIN_REPLACEMENTS[character];
1725
+ if (replacement === undefined)
1726
+ return character;
1727
+ return replacement;
1728
+ };
1729
+ const toAsciiLetters = (text) => text.normalize('NFD').replace(COMBINING_MARKS, '').normalize('NFC').replace(NON_ASCII, replaceLatin);
1730
+ const toWords = (text) => {
1731
+ const found = text.match(WORDS);
1732
+ if (found === null)
1733
+ return [];
1734
+ return found;
1735
+ };
1677
1736
 
1678
1737
  const APP_ENVIRONMENT = new InjectionToken('APP_ENVIRONMENT');
1679
1738
 
1739
+ const lowerFirst = (value) => value.charAt(0).toLowerCase() + value.slice(1);
1680
1740
  const BACKEND_ERROR_CODES = new InjectionToken('BACKEND_ERROR_CODES');
1681
1741
  const WHITELIST_ERROR_CODES = new InjectionToken('WHITELIST_ERROR_CODES');
1682
1742
  /**
@@ -1717,15 +1777,15 @@ class QdNotificationsHttpInterceptorService {
1717
1777
  if (error.error?.errorCode && error.error.errorCode in this.backendErrorCodes) {
1718
1778
  i18n = 'ERROR.' + error.error.errorCode;
1719
1779
  }
1720
- this.notificationService.add('qdPanel', { type: 'critical', i18n, showAsSnackbar: true });
1780
+ this.notificationService.add('qdPanel', { state: 'critical', i18n, showAsSnackbar: true });
1721
1781
  }
1722
1782
  return throwError(() => error);
1723
1783
  }));
1724
1784
  }
1725
1785
  getErrorTranslationKeyForHttpStatus(httpStatusCode) {
1726
1786
  const httpErrorName = this.getHttpErrorName(httpStatusCode);
1727
- return this.backendErrorCodes[`HTTP_${constantCase(httpErrorName)}`]
1728
- ? `Error.HTTP_${constantCase(httpErrorName)}`
1787
+ return this.backendErrorCodes[`HTTP_${qdConstantCase(httpErrorName)}`]
1788
+ ? `Error.HTTP_${qdConstantCase(httpErrorName)}`
1729
1789
  : `i18n.qd.notification.error.${lowerFirst(httpErrorName).replace('Error', '')}`;
1730
1790
  }
1731
1791
  getHttpErrorName(httpStatusCode) {
@@ -2894,6 +2954,7 @@ class QdMockFilterItemSingleSelectComponent {
2894
2954
  testId;
2895
2955
  active = false;
2896
2956
  isActive = false;
2957
+ isTabbable = false;
2897
2958
  get dataTestId() {
2898
2959
  return this.testId;
2899
2960
  }
@@ -2913,6 +2974,10 @@ class QdMockFilterItemSingleSelectComponent {
2913
2974
  return '';
2914
2975
  }
2915
2976
  scrollIntoView() { }
2977
+ setTabbable(isTabbable) {
2978
+ this.isTabbable = isTabbable;
2979
+ }
2980
+ focus() { }
2916
2981
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockFilterItemSingleSelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2917
2982
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockFilterItemSingleSelectComponent, isStandalone: false, selector: "qd-filter-item-single-select", inputs: { filterId: "filterId", categoryIndex: "categoryIndex", itemIndex: "itemIndex", optionElementId: "optionElementId", testId: ["data-test-id", "testId"] }, host: { properties: { "attr.data-test-id": "this.dataTestId" } }, ngImport: i0, template: 'filterId: {{filterId}}, categoryIndex: {{categoryIndex}}, itemIndex: {{itemIndex}}', isInline: true });
2918
2983
  }
@@ -4314,7 +4379,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
4314
4379
 
4315
4380
  // @ts-strict-ignore
4316
4381
  class QdMockNotificationComponent {
4317
- type = 'critical';
4382
+ state = 'critical';
4318
4383
  notification;
4319
4384
  get isCloseable() {
4320
4385
  return 'isCloseable';
@@ -4323,17 +4388,17 @@ class QdMockNotificationComponent {
4323
4388
  return;
4324
4389
  }
4325
4390
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockNotificationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
4326
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockNotificationComponent, isStandalone: false, selector: "qd-notification", inputs: { type: "type", notification: "notification" }, host: { classAttribute: "qd-mock-notification" }, ngImport: i0, template: 'type: {{type}}, notification: {{notification | json}} <ng-content></ng-content>', isInline: true, dependencies: [{ kind: "pipe", type: i1.JsonPipe, name: "json" }] });
4391
+ 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" }] });
4327
4392
  }
4328
4393
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockNotificationComponent, decorators: [{
4329
4394
  type: Component,
4330
4395
  args: [{
4331
4396
  selector: 'qd-notification',
4332
- template: 'type: {{type}}, notification: {{notification | json}} <ng-content></ng-content>',
4397
+ template: 'state: {{state}}, notification: {{notification | json}} <ng-content></ng-content>',
4333
4398
  host: { class: 'qd-mock-notification' },
4334
4399
  standalone: false
4335
4400
  }]
4336
- }], propDecorators: { type: [{
4401
+ }], propDecorators: { state: [{
4337
4402
  type: Input
4338
4403
  }], notification: [{
4339
4404
  type: Input
@@ -4767,7 +4832,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
4767
4832
  }] });
4768
4833
 
4769
4834
  class QdMockStatusIndicatorComponent {
4770
- type = 'success';
4835
+ state = 'positive';
4771
4836
  level = 1;
4772
4837
  caption;
4773
4838
  testId = 'status-indicator';
@@ -4775,16 +4840,16 @@ class QdMockStatusIndicatorComponent {
4775
4840
  return this.testId;
4776
4841
  }
4777
4842
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockStatusIndicatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
4778
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockStatusIndicatorComponent, isStandalone: false, selector: "qd-status-indicator", inputs: { type: "type", level: "level", caption: "caption", testId: ["data-test-id", "testId"] }, host: { properties: { "attr.data-test-id": "this.dataTestId" } }, ngImport: i0, template: 'type: {{type}}, level: {{level}}, caption: {{caption}}', isInline: true });
4843
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockStatusIndicatorComponent, isStandalone: false, selector: "qd-status-indicator", inputs: { state: "state", level: "level", caption: "caption", testId: ["data-test-id", "testId"] }, host: { properties: { "attr.data-test-id": "this.dataTestId" } }, ngImport: i0, template: 'state: {{state}}, level: {{level}}, caption: {{caption}}', isInline: true });
4779
4844
  }
4780
4845
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockStatusIndicatorComponent, decorators: [{
4781
4846
  type: Component,
4782
4847
  args: [{
4783
4848
  selector: 'qd-status-indicator',
4784
- template: 'type: {{type}}, level: {{level}}, caption: {{caption}}',
4849
+ template: 'state: {{state}}, level: {{level}}, caption: {{caption}}',
4785
4850
  standalone: false
4786
4851
  }]
4787
- }], propDecorators: { type: [{
4852
+ }], propDecorators: { state: [{
4788
4853
  type: Input
4789
4854
  }], level: [{
4790
4855
  type: Input
@@ -4811,23 +4876,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
4811
4876
  }]
4812
4877
  }] });
4813
4878
 
4814
- // @ts-strict-ignore
4815
4879
  class QdMockStatusIndicatorItemComponent {
4816
4880
  active;
4817
- type = 'success';
4881
+ state = 'positive';
4818
4882
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockStatusIndicatorItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
4819
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdMockStatusIndicatorItemComponent, isStandalone: false, selector: "qd-status-indicator-item", inputs: { active: "active", type: "type" }, ngImport: i0, template: 'active: {{active | json}}, type: {{type}}', isInline: true, dependencies: [{ kind: "pipe", type: i1.JsonPipe, name: "json" }] });
4883
+ 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" }] });
4820
4884
  }
4821
4885
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMockStatusIndicatorItemComponent, decorators: [{
4822
4886
  type: Component,
4823
4887
  args: [{
4824
4888
  selector: 'qd-status-indicator-item',
4825
- template: 'active: {{active | json}}, type: {{type}}',
4889
+ template: 'active: {{active | json}}, state: {{state}}',
4826
4890
  standalone: false
4827
4891
  }]
4828
4892
  }], propDecorators: { active: [{
4829
4893
  type: Input
4830
- }], type: [{
4894
+ }], state: [{
4831
4895
  type: Input
4832
4896
  }] } });
4833
4897
 
@@ -5842,7 +5906,7 @@ class QdDataFacetsChipTruncatedTooltipComponent {
5842
5906
  }
5843
5907
  adjustWidthToFitInViewport() {
5844
5908
  const viewportWidth = document.documentElement.clientWidth;
5845
- if (!isNumber(viewportWidth))
5909
+ if (typeof viewportWidth !== 'number')
5846
5910
  return;
5847
5911
  /* The tooltip has a max width. If the tooltip overlaps the viewport this max width
5848
5912
  * will be increased so that the tooltip fits into the viewport.
@@ -6393,36 +6457,42 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
6393
6457
  * **QdStatusIndicatorItem** is an element of the**QdStatusIndicator** component.
6394
6458
  */
6395
6459
  class QdStatusIndicatorItemComponent {
6460
+ _state = 'positive';
6396
6461
  /**
6397
6462
  * Specifies whether a single item (point) is active or not.
6398
6463
  */
6399
6464
  active;
6400
6465
  /**
6401
- * Type of a single indicator.
6466
+ * State of a single indicator.
6402
6467
  */
6403
- type = 'success';
6404
- get isSuccess() {
6405
- return this.active && this.type === 'success';
6468
+ set state(value) {
6469
+ this._state = value ?? 'positive';
6470
+ }
6471
+ get state() {
6472
+ return this._state;
6473
+ }
6474
+ get isPositive() {
6475
+ return this.active && this._state === 'positive';
6406
6476
  }
6407
6477
  get isWarning() {
6408
- return this.active && this.type === 'warning';
6478
+ return this.active && this._state === 'warning';
6409
6479
  }
6410
6480
  get isCritical() {
6411
- return this.active && this.type === 'critical';
6481
+ return this.active && this._state === 'critical';
6412
6482
  }
6413
6483
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdStatusIndicatorItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6414
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdStatusIndicatorItemComponent, isStandalone: false, selector: "qd-status-indicator-item", inputs: { active: "active", type: "type" }, host: { properties: { "class.qd-status-indicator__item--success": "this.isSuccess", "class.qd-status-indicator__item--warning": "this.isWarning", "class.qd-status-indicator__item--critical": "this.isCritical" }, classAttribute: "qd-status-indicator__item" }, ngImport: i0, template: '', isInline: true, styles: [".qd-status-indicator__item{display:block;width:.75rem;height:.75rem;border-radius:50%;margin-right:.25rem;background:#b4b4b4}.qd-status-indicator__item--success{background:#00813a}.qd-status-indicator__item--warning{background:#ff9b00}.qd-status-indicator__item--critical{background:#c70023}.qd-status-indicator__item:last-child{margin:0}\n"], encapsulation: i0.ViewEncapsulation.None });
6484
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdStatusIndicatorItemComponent, isStandalone: false, selector: "qd-status-indicator-item", inputs: { active: "active", state: "state" }, host: { properties: { "class.qd-status-indicator__item--positive": "this.isPositive", "class.qd-status-indicator__item--warning": "this.isWarning", "class.qd-status-indicator__item--critical": "this.isCritical" }, classAttribute: "qd-status-indicator__item" }, ngImport: i0, template: '', isInline: true, styles: [".qd-status-indicator__item{display:block;width:.75rem;height:.75rem;border-radius:50%;margin-right:.25rem;background:#b4b4b4}.qd-status-indicator__item--positive,.qd-status-indicator__item--success{background:#00813a}.qd-status-indicator__item--warning{background:#ff9b00}.qd-status-indicator__item--critical{background:#c70023}.qd-status-indicator__item:last-child{margin:0}\n"], encapsulation: i0.ViewEncapsulation.None });
6415
6485
  }
6416
6486
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdStatusIndicatorItemComponent, decorators: [{
6417
6487
  type: Component,
6418
- args: [{ selector: 'qd-status-indicator-item', template: '', encapsulation: ViewEncapsulation.None, host: { class: 'qd-status-indicator__item' }, standalone: false, styles: [".qd-status-indicator__item{display:block;width:.75rem;height:.75rem;border-radius:50%;margin-right:.25rem;background:#b4b4b4}.qd-status-indicator__item--success{background:#00813a}.qd-status-indicator__item--warning{background:#ff9b00}.qd-status-indicator__item--critical{background:#c70023}.qd-status-indicator__item:last-child{margin:0}\n"] }]
6488
+ args: [{ selector: 'qd-status-indicator-item', template: '', encapsulation: ViewEncapsulation.None, host: { class: 'qd-status-indicator__item' }, standalone: false, styles: [".qd-status-indicator__item{display:block;width:.75rem;height:.75rem;border-radius:50%;margin-right:.25rem;background:#b4b4b4}.qd-status-indicator__item--positive,.qd-status-indicator__item--success{background:#00813a}.qd-status-indicator__item--warning{background:#ff9b00}.qd-status-indicator__item--critical{background:#c70023}.qd-status-indicator__item:last-child{margin:0}\n"] }]
6419
6489
  }], propDecorators: { active: [{
6420
6490
  type: Input
6421
- }], type: [{
6491
+ }], state: [{
6422
6492
  type: Input
6423
- }], isSuccess: [{
6493
+ }], isPositive: [{
6424
6494
  type: HostBinding,
6425
- args: ['class.qd-status-indicator__item--success']
6495
+ args: ['class.qd-status-indicator__item--positive']
6426
6496
  }], isWarning: [{
6427
6497
  type: HostBinding,
6428
6498
  args: ['class.qd-status-indicator__item--warning']
@@ -6450,10 +6520,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
6450
6520
  class QdStatusIndicatorComponent {
6451
6521
  indicatorCount = 5;
6452
6522
  items;
6523
+ _state = 'positive';
6453
6524
  /**
6454
- * Type of the indicator.
6525
+ * State of the indicator.
6455
6526
  */
6456
- type = 'success';
6527
+ set state(value) {
6528
+ this._state = value ?? 'positive';
6529
+ }
6530
+ get state() {
6531
+ return this._state;
6532
+ }
6457
6533
  /**
6458
6534
  * Level of the indicator.
6459
6535
  */
@@ -6470,12 +6546,12 @@ class QdStatusIndicatorComponent {
6470
6546
  this.setLevel();
6471
6547
  }
6472
6548
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdStatusIndicatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6473
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdStatusIndicatorComponent, isStandalone: false, selector: "qd-status-indicator", inputs: { type: "type", level: "level", caption: "caption", testId: ["data-test-id", "testId"] }, host: { classAttribute: "qd-status-indicator" }, ngImport: i0, template: "@if (caption !== undefined) {\n<qd-status-indicator-caption [attr.data-test-id]=\"testId + '-caption'\">\n {{ caption }}\n</qd-status-indicator-caption>\n}\n\n<div class=\"qd-status-indicator__items\" [attr.data-test-id]=\"testId + '-items'\">\n @for (item of items; track $index) {\n <qd-status-indicator-item [type]=\"type\" [active]=\"item\"></qd-status-indicator-item>\n }\n</div>\n", styles: [":host{display:inline-flex;flex-direction:column}:host .qd-status-indicator__items{display:flex}\n"], dependencies: [{ kind: "component", type: QdStatusIndicatorItemComponent, selector: "qd-status-indicator-item", inputs: ["active", "type"] }, { kind: "component", type: QdStatusIndicatorCaptionComponent, selector: "qd-status-indicator-caption" }] });
6549
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdStatusIndicatorComponent, isStandalone: false, selector: "qd-status-indicator", inputs: { state: "state", level: "level", caption: "caption", testId: ["data-test-id", "testId"] }, host: { classAttribute: "qd-status-indicator" }, ngImport: i0, template: "@if (caption !== undefined) {\n<qd-status-indicator-caption [attr.data-test-id]=\"testId + '-caption'\">\n {{ caption }}\n</qd-status-indicator-caption>\n}\n\n<div class=\"qd-status-indicator__items\" [attr.data-test-id]=\"testId + '-items'\">\n @for (item of items; track $index) {\n <qd-status-indicator-item [state]=\"state\" [active]=\"item\"></qd-status-indicator-item>\n }\n</div>\n", styles: [":host{display:inline-flex;flex-direction:column}:host .qd-status-indicator__items{display:flex}\n"], dependencies: [{ kind: "component", type: QdStatusIndicatorItemComponent, selector: "qd-status-indicator-item", inputs: ["active", "state"] }, { kind: "component", type: QdStatusIndicatorCaptionComponent, selector: "qd-status-indicator-caption" }] });
6474
6550
  }
6475
6551
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdStatusIndicatorComponent, decorators: [{
6476
6552
  type: Component,
6477
- args: [{ selector: 'qd-status-indicator', host: { class: 'qd-status-indicator' }, standalone: false, template: "@if (caption !== undefined) {\n<qd-status-indicator-caption [attr.data-test-id]=\"testId + '-caption'\">\n {{ caption }}\n</qd-status-indicator-caption>\n}\n\n<div class=\"qd-status-indicator__items\" [attr.data-test-id]=\"testId + '-items'\">\n @for (item of items; track $index) {\n <qd-status-indicator-item [type]=\"type\" [active]=\"item\"></qd-status-indicator-item>\n }\n</div>\n", styles: [":host{display:inline-flex;flex-direction:column}:host .qd-status-indicator__items{display:flex}\n"] }]
6478
- }], propDecorators: { type: [{
6553
+ args: [{ selector: 'qd-status-indicator', host: { class: 'qd-status-indicator' }, standalone: false, template: "@if (caption !== undefined) {\n<qd-status-indicator-caption [attr.data-test-id]=\"testId + '-caption'\">\n {{ caption }}\n</qd-status-indicator-caption>\n}\n\n<div class=\"qd-status-indicator__items\" [attr.data-test-id]=\"testId + '-items'\">\n @for (item of items; track $index) {\n <qd-status-indicator-item [state]=\"state\" [active]=\"item\"></qd-status-indicator-item>\n }\n</div>\n", styles: [":host{display:inline-flex;flex-direction:column}:host .qd-status-indicator__items{display:flex}\n"] }]
6554
+ }], propDecorators: { state: [{
6479
6555
  type: Input
6480
6556
  }], level: [{
6481
6557
  type: Input
@@ -6494,12 +6570,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
6494
6570
  class QdDataFacetsStatusComponent {
6495
6571
  data;
6496
6572
  testId;
6573
+ state = 'positive';
6574
+ ngOnChanges() {
6575
+ this.state = this.data?.state ?? 'positive';
6576
+ }
6497
6577
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdDataFacetsStatusComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6498
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdDataFacetsStatusComponent, isStandalone: false, selector: "qd-data-facets-status", inputs: { data: "data", testId: "testId" }, host: { properties: { "attr.data-test-id": "testId" }, classAttribute: "qd-data-facets" }, ngImport: i0, template: "@if (data) {\n<qd-status-indicator [level]=\"data.level\" [type]=\"data.type\"></qd-status-indicator>\n}\n", styles: [""], dependencies: [{ kind: "component", type: QdStatusIndicatorComponent, selector: "qd-status-indicator", inputs: ["type", "level", "caption", "data-test-id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
6578
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdDataFacetsStatusComponent, isStandalone: false, selector: "qd-data-facets-status", inputs: { data: "data", testId: "testId" }, host: { properties: { "attr.data-test-id": "testId" }, classAttribute: "qd-data-facets" }, usesOnChanges: true, ngImport: i0, template: "@if (data) {\n<qd-status-indicator [level]=\"data.level\" [state]=\"state\"></qd-status-indicator>\n}\n", styles: [""], dependencies: [{ kind: "component", type: QdStatusIndicatorComponent, selector: "qd-status-indicator", inputs: ["state", "level", "caption", "data-test-id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
6499
6579
  }
6500
6580
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdDataFacetsStatusComponent, decorators: [{
6501
6581
  type: Component,
6502
- args: [{ selector: 'qd-data-facets-status', host: { class: 'qd-data-facets', '[attr.data-test-id]': 'testId' }, changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "@if (data) {\n<qd-status-indicator [level]=\"data.level\" [type]=\"data.type\"></qd-status-indicator>\n}\n" }]
6582
+ args: [{ selector: 'qd-data-facets-status', host: { class: 'qd-data-facets', '[attr.data-test-id]': 'testId' }, changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "@if (data) {\n<qd-status-indicator [level]=\"data.level\" [state]=\"state\"></qd-status-indicator>\n}\n" }]
6503
6583
  }], propDecorators: { data: [{
6504
6584
  type: Input
6505
6585
  }], testId: [{
@@ -7727,6 +7807,16 @@ const convertPxToRem = (pixel) => `${parseFloat((pixel / globalVars.base.fontsiz
7727
7807
  * - Even if autosize is turned off, the minimum and maximum width or height constraints are always enforced as hard limits.
7728
7808
  * - This means the popover can never be smaller or larger than the values you set, no matter what content it contains.
7729
7809
  * - The width is also capped to the current screen width, so the popover never reaches past the screen edge — even if a larger maxWidth is set.
7810
+ * - The height is capped the same way. A popover never grows taller than the screen, even if a larger maxHeight is
7811
+ * set. Content that does not fit scrolls inside the popover.
7812
+ * - Sizing only writes to the overlay when the resulting values really change. The observer watches the popover, so
7813
+ * every write would wake it again. Skipping equal writes ends that cycle after one pass.
7814
+ * - `disconnect()` clears the remembered values. Without that, a reopened popover would keep the old values and stay unsized.
7815
+ * - The overlay position is refreshed on every resize, also when the size stays the same. Moving an overlay does not
7816
+ * change its size, so it cannot restart the cycle. A host that only grows taller still keeps the popover attached.
7817
+ * - An open popover follows a window resize, so it keeps fitting the screen while the user rotates the device or
7818
+ * drags the window. Several resize events in the same frame are collapsed into one sizing pass, and the listener
7819
+ * only exists while a popover is open.
7730
7820
  *
7731
7821
  * #### For the hidden-content measuring
7732
7822
  * @see https://stackoverflow.com/questions/1841124/find-the-potential-width-of-a-hidden-element
@@ -7741,6 +7831,9 @@ class QdPopoverSizingService {
7741
7831
  _ready$;
7742
7832
  _contentWidth = 0;
7743
7833
  _contentHeight = 0;
7834
+ _lastApplied = '';
7835
+ _viewportResizeListener;
7836
+ _pendingSizingFrame;
7744
7837
  get contentWidth() {
7745
7838
  return this._contentWidth;
7746
7839
  }
@@ -7758,6 +7851,8 @@ class QdPopoverSizingService {
7758
7851
  this._overlayRef = overlayRef;
7759
7852
  this._ready$ = new ReplaySubject(1);
7760
7853
  this.hideOverlay();
7854
+ this._viewportResizeListener = () => this.scheduleSizing();
7855
+ window.addEventListener('resize', this._viewportResizeListener);
7761
7856
  if (!autoSize.width && !autoSize.height) {
7762
7857
  this.applySize();
7763
7858
  this.showOverlay();
@@ -7777,12 +7872,22 @@ class QdPopoverSizingService {
7777
7872
  return this._ready$.asObservable();
7778
7873
  }
7779
7874
  showOverlay() {
7780
- if (this._overlayRef)
7781
- this._overlayRef.overlayElement.style.opacity = '1';
7875
+ this.setOverlayOpacity('1');
7782
7876
  }
7783
7877
  hideOverlay() {
7878
+ this.setOverlayOpacity('0');
7879
+ }
7880
+ setOverlayOpacity(opacity) {
7784
7881
  if (this._overlayRef)
7785
- this._overlayRef.overlayElement.style.opacity = '0';
7882
+ this._overlayRef.overlayElement.style.opacity = opacity;
7883
+ }
7884
+ scheduleSizing() {
7885
+ if (this._pendingSizingFrame !== undefined)
7886
+ return;
7887
+ this._pendingSizingFrame = requestAnimationFrame(() => {
7888
+ this._pendingSizingFrame = undefined;
7889
+ this.applySize();
7890
+ });
7786
7891
  }
7787
7892
  resolveWidthLimits() {
7788
7893
  const clientWidth = document.documentElement.clientWidth;
@@ -7796,11 +7901,19 @@ class QdPopoverSizingService {
7796
7901
  const maxWidth = widthLimits.length > 0 ? Math.min(...widthLimits) : undefined;
7797
7902
  return { minWidth, maxWidth };
7798
7903
  }
7904
+ resolveHeightLimits() {
7905
+ const clientHeight = document.documentElement.clientHeight;
7906
+ const viewportMaxHeight = clientHeight > 0 ? clientHeight : undefined;
7907
+ const constraintMaxHeight = this._constraints?.maxHeight !== 'none' ? this._constraints?.maxHeight : undefined;
7908
+ const heightLimits = [constraintMaxHeight, viewportMaxHeight].filter((limit) => limit !== undefined);
7909
+ const maxHeight = heightLimits.length > 0 ? Math.min(...heightLimits) : undefined;
7910
+ return { maxHeight };
7911
+ }
7799
7912
  applySize() {
7800
7913
  if (!this._overlayRef || !this._host || !this._popover || !this._autoSize || !this._constraints)
7801
7914
  return;
7802
7915
  const { minWidth, maxWidth } = this.resolveWidthLimits();
7803
- const maxHeight = this._constraints.maxHeight !== 'none' ? this._constraints.maxHeight : undefined;
7916
+ const { maxHeight } = this.resolveHeightLimits();
7804
7917
  this.measureContentSize(this._popover);
7805
7918
  const contentWidth = this._contentWidth;
7806
7919
  const contentHeight = this._contentHeight;
@@ -7812,22 +7925,23 @@ class QdPopoverSizingService {
7812
7925
  width = this.clamp(Math.max(hostWidth, contentWidth), minWidth, maxWidth);
7813
7926
  if (this._autoSize.height)
7814
7927
  height = this.clamp(Math.max(hostHeight, contentHeight), undefined, maxHeight);
7815
- const el = this._overlayRef.overlayElement;
7816
- el.style.width = '';
7817
- el.style.minWidth = '';
7818
- el.style.maxWidth = '';
7819
- el.style.height = '';
7820
- el.style.maxHeight = '';
7821
- if (this._autoSize.width && width !== undefined)
7822
- el.style.width = convertPxToRem(width);
7823
- if (minWidth !== undefined)
7824
- el.style.minWidth = convertPxToRem(minWidth);
7825
- if (maxWidth !== undefined)
7826
- el.style.maxWidth = convertPxToRem(maxWidth);
7827
- if (this._autoSize.height && height !== undefined)
7828
- el.style.height = convertPxToRem(height);
7829
- if (maxHeight !== undefined)
7830
- el.style.maxHeight = convertPxToRem(maxHeight);
7928
+ const target = {
7929
+ width: this._autoSize.width && width !== undefined ? convertPxToRem(width) : '',
7930
+ minWidth: minWidth !== undefined ? convertPxToRem(minWidth) : '',
7931
+ maxWidth: maxWidth !== undefined ? convertPxToRem(maxWidth) : '',
7932
+ height: this._autoSize.height && height !== undefined ? convertPxToRem(height) : '',
7933
+ maxHeight: maxHeight !== undefined ? convertPxToRem(maxHeight) : ''
7934
+ };
7935
+ const signature = Object.values(target).join('|');
7936
+ if (signature !== this._lastApplied) {
7937
+ this._lastApplied = signature;
7938
+ const el = this._overlayRef.overlayElement;
7939
+ el.style.width = target.width;
7940
+ el.style.minWidth = target.minWidth;
7941
+ el.style.maxWidth = target.maxWidth;
7942
+ el.style.height = target.height;
7943
+ el.style.maxHeight = target.maxHeight;
7944
+ }
7831
7945
  this._overlayRef.updatePosition();
7832
7946
  }
7833
7947
  measureContentSize(element) {
@@ -7849,6 +7963,12 @@ class QdPopoverSizingService {
7849
7963
  document.body.removeChild(clone);
7850
7964
  }
7851
7965
  disconnect() {
7966
+ if (this._viewportResizeListener)
7967
+ window.removeEventListener('resize', this._viewportResizeListener);
7968
+ if (this._pendingSizingFrame !== undefined)
7969
+ cancelAnimationFrame(this._pendingSizingFrame);
7970
+ this._viewportResizeListener = undefined;
7971
+ this._pendingSizingFrame = undefined;
7852
7972
  this._resizeObserver?.disconnect();
7853
7973
  this._resizeObserver = undefined;
7854
7974
  this._host = undefined;
@@ -7859,6 +7979,7 @@ class QdPopoverSizingService {
7859
7979
  this._ready$ = undefined;
7860
7980
  this._contentWidth = 0;
7861
7981
  this._contentHeight = 0;
7982
+ this._lastApplied = '';
7862
7983
  }
7863
7984
  clamp(value, min, max) {
7864
7985
  if (min !== undefined)
@@ -7956,6 +8077,7 @@ const VERTICAL_OPPOSITE = {
7956
8077
  * #### Features:
7957
8078
  * - Opens the popover on click and closes it on the next click or an outside click.
7958
8079
  * - With `qdPopoverEnableKeyControl`, Enter and Space open it, Escape and Tab close it.
8080
+ * - With `qdPopoverRestoreFocus`, the focus returns to the trigger when the popover closes while the focus sits inside it.
7959
8081
  * - Sizes the popover to its host or content within the min/max limits, and never wider than the screen.
7960
8082
  * - Places it with the Angular CDK; with `qdPopoverFlipIntoViewport` it opens to the side that has room instead of off the screen edge.
7961
8083
  * - Keeps only one popover open: opening one closes the others, but a nested popover keeps its parents open.
@@ -8060,6 +8182,16 @@ class QdPopoverOnClickDirective {
8060
8182
  * While `true`, Enter and Space open the popover and Escape and Tab close it.
8061
8183
  */
8062
8184
  qdPopoverEnableKeyControl = false;
8185
+ /**
8186
+ * Returns the focus to the trigger when the popover closes.
8187
+ *
8188
+ * While `true`, the focus moves back to the host as soon as the popover closes
8189
+ * while the focus sits inside it. A focus outside the popover stays where it is.
8190
+ *
8191
+ * The focus is not returned while the directive is being destroyed: the trigger
8192
+ * disappears along with the popover, so there is nothing left to focus.
8193
+ */
8194
+ qdPopoverRestoreFocus = false;
8063
8195
  /**
8064
8196
  * Lets the popover flip to the side that has room.
8065
8197
  *
@@ -8107,6 +8239,7 @@ class QdPopoverOnClickDirective {
8107
8239
  _positionStrategyInstance;
8108
8240
  _resolvedPositions = [DEFAULT_POSITION];
8109
8241
  _subscriptions = [];
8242
+ _destroying = false;
8110
8243
  constructor() {
8111
8244
  const hostRef = this.hostRef;
8112
8245
  this._host = hostRef.nativeElement;
@@ -8116,6 +8249,7 @@ class QdPopoverOnClickDirective {
8116
8249
  this.createOverlay();
8117
8250
  }
8118
8251
  ngOnDestroy() {
8252
+ this._destroying = true;
8119
8253
  this.close();
8120
8254
  this.cleanup();
8121
8255
  }
@@ -8154,12 +8288,21 @@ class QdPopoverOnClickDirective {
8154
8288
  close() {
8155
8289
  if (!this.overlayRef?.hasAttached())
8156
8290
  return;
8291
+ const restoreFocus = this.shouldRestoreFocus();
8157
8292
  this.overlayRef.detach();
8158
8293
  this._popoverRef?.destroy();
8159
8294
  this._popoverRef = null;
8160
8295
  this.unsubscribeAll();
8161
8296
  this.closed.emit();
8162
8297
  this.sizingService.disconnect();
8298
+ if (restoreFocus)
8299
+ this._host.focus();
8300
+ }
8301
+ shouldRestoreFocus() {
8302
+ if (!this.qdPopoverRestoreFocus || this._destroying)
8303
+ return false;
8304
+ const active = document.activeElement;
8305
+ return !!active && this.overlayRef.overlayElement.contains(active);
8163
8306
  }
8164
8307
  popoverInstance() {
8165
8308
  return this._popoverRef?.instance ?? null;
@@ -8218,6 +8361,7 @@ class QdPopoverOnClickDirective {
8218
8361
  if (ready) {
8219
8362
  this.subscribeToPopoverClose();
8220
8363
  this.subscribeToPositionChange();
8364
+ this.subscribeToEscapeKey();
8221
8365
  this.opened.emit();
8222
8366
  requestAnimationFrame(() => {
8223
8367
  this.overlayRef.updatePosition();
@@ -8253,6 +8397,12 @@ class QdPopoverOnClickDirective {
8253
8397
  .pipe(map(c => c.connectionPair.overlayY), startWith(this._resolvedPositions[0]?.overlayY ?? 'top'), distinctUntilChanged())
8254
8398
  .subscribe(overlayY => popover.setDirection(overlayY === 'top' ? 'down' : 'up')));
8255
8399
  }
8400
+ subscribeToEscapeKey() {
8401
+ this._subscriptions.push(this.overlayRef.keydownEvents().subscribe(event => {
8402
+ if (this.qdPopoverEnableKeyControl && event.key === 'Escape')
8403
+ this.close();
8404
+ }));
8405
+ }
8256
8406
  shouldClosePopover(event) {
8257
8407
  if (event.target === this._host)
8258
8408
  return false;
@@ -8280,7 +8430,7 @@ class QdPopoverOnClickDirective {
8280
8430
  this.unsubscribeAll();
8281
8431
  }
8282
8432
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdPopoverOnClickDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8283
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.17", type: QdPopoverOnClickDirective, isStandalone: false, selector: "[qdPopoverOnClick]", inputs: { qdPopoverOnClick: "qdPopoverOnClick", qdPopoverPlacement: "qdPopoverPlacement", qdPopoverOffsetX: "qdPopoverOffsetX", qdPopoverOffsetY: "qdPopoverOffsetY", qdPopoverCloseStrategy: "qdPopoverCloseStrategy", qdPopoverDisabled: "qdPopoverDisabled", qdPopoverStopPropagation: "qdPopoverStopPropagation", qdPopoverBackgroundColor: "qdPopoverBackgroundColor", qdPopoverMaxHeight: "qdPopoverMaxHeight", qdPopoverMinWidth: "qdPopoverMinWidth", qdPopoverMaxWidth: "qdPopoverMaxWidth", qdPopoverAutoSize: "qdPopoverAutoSize", qdPopoverEnableKeyControl: "qdPopoverEnableKeyControl", qdPopoverFlipIntoViewport: "qdPopoverFlipIntoViewport" }, outputs: { opened: "opened", closed: "closed" }, host: { listeners: { "click": "handleClick($event)", "document:click": "handleDocumentClick($event)", "keydown.escape": "handleCloseKeys()", "keydown.tab": "handleCloseKeys()", "keydown.enter": "handleOpenKey($event)", "keydown.space": "handleOpenKey($event)" } }, providers: [QdPopoverSizingService], exportAs: ["qdPopoverOnClick"], ngImport: i0 });
8433
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.17", type: QdPopoverOnClickDirective, isStandalone: false, selector: "[qdPopoverOnClick]", inputs: { qdPopoverOnClick: "qdPopoverOnClick", qdPopoverPlacement: "qdPopoverPlacement", qdPopoverOffsetX: "qdPopoverOffsetX", qdPopoverOffsetY: "qdPopoverOffsetY", qdPopoverCloseStrategy: "qdPopoverCloseStrategy", qdPopoverDisabled: "qdPopoverDisabled", qdPopoverStopPropagation: "qdPopoverStopPropagation", qdPopoverBackgroundColor: "qdPopoverBackgroundColor", qdPopoverMaxHeight: "qdPopoverMaxHeight", qdPopoverMinWidth: "qdPopoverMinWidth", qdPopoverMaxWidth: "qdPopoverMaxWidth", qdPopoverAutoSize: "qdPopoverAutoSize", qdPopoverEnableKeyControl: "qdPopoverEnableKeyControl", qdPopoverRestoreFocus: "qdPopoverRestoreFocus", qdPopoverFlipIntoViewport: "qdPopoverFlipIntoViewport" }, outputs: { opened: "opened", closed: "closed" }, host: { listeners: { "click": "handleClick($event)", "document:click": "handleDocumentClick($event)", "keydown.escape": "handleCloseKeys()", "keydown.tab": "handleCloseKeys()", "keydown.enter": "handleOpenKey($event)", "keydown.space": "handleOpenKey($event)" } }, providers: [QdPopoverSizingService], exportAs: ["qdPopoverOnClick"], ngImport: i0 });
8284
8434
  }
8285
8435
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdPopoverOnClickDirective, decorators: [{
8286
8436
  type: Directive,
@@ -8316,6 +8466,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
8316
8466
  type: Input
8317
8467
  }], qdPopoverEnableKeyControl: [{
8318
8468
  type: Input
8469
+ }], qdPopoverRestoreFocus: [{
8470
+ type: Input
8319
8471
  }], qdPopoverFlipIntoViewport: [{
8320
8472
  type: Input
8321
8473
  }], opened: [{
@@ -8544,9 +8696,9 @@ function isOptionsObj$1(validatorOrOpts) {
8544
8696
  return validatorOrOpts != null && !Array.isArray(validatorOrOpts) && typeof validatorOrOpts === 'object';
8545
8697
  }
8546
8698
 
8547
- // @ts-strict-ignore
8548
8699
  function get(object, path, defaultValue) {
8549
- return _defaultTo(_get(object, path, defaultValue), defaultValue);
8700
+ const value = path.split('.').reduce((current, key) => current?.[key], object);
8701
+ return value === null || value === undefined || Number.isNaN(value) ? defaultValue : value;
8550
8702
  }
8551
8703
  /**
8552
8704
  * Base form properties
@@ -8695,6 +8847,424 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
8695
8847
  type: Injectable
8696
8848
  }] });
8697
8849
 
8850
+ /**
8851
+ * Compares two values by their content instead of by reference.
8852
+ *
8853
+ * This is the one place in the framework that answers "did this change?" for the
8854
+ * value shapes it deals with: component configurations, form values and lists of
8855
+ * options. A wrong answer here is silent, so the helper errs on the side of
8856
+ * reporting a change.
8857
+ *
8858
+ * #### Features:
8859
+ *
8860
+ * - Walks arrays, plain objects, `Map`, `Set`, `Date`, `RegExp`, errors, typed
8861
+ * arrays, buffers and boxed primitives.
8862
+ * - Treats `NaN` as equal to `NaN` and `0` as equal to `-0`, so two invalid dates
8863
+ * count as equal.
8864
+ * - Reads types and values through internal slots, so an object cannot disguise
8865
+ * itself with `Symbol.toStringTag` or a custom `valueOf`.
8866
+ * - Requires the same prototype on both sides, which keeps instances of different
8867
+ * classes apart even when their fields match.
8868
+ * - Compares own enumerable properties on every value, including the extra ones
8869
+ * attached to a `Date`, a `Map` or an array.
8870
+ * - Matches `Map` and `Set` members independently of insertion order, and never
8871
+ * reports a difference that only a matching order would explain.
8872
+ * - Survives cyclic and shared structures, and tells cycles of different lengths
8873
+ * apart.
8874
+ *
8875
+ * #### Notes & Best Practices:
8876
+ *
8877
+ * - A missing key and a key holding `undefined` count as different, as do an
8878
+ * array hole and an explicit `undefined`.
8879
+ * - Non-enumerable properties and getters on the prototype chain are ignored, so
8880
+ * two errors with the same name and message stay equal despite different stacks.
8881
+ * - `WeakMap` and `WeakSet` have no readable content and are only equal to
8882
+ * themselves.
8883
+ * - Structures deeper than 1200 levels report a difference instead of exhausting
8884
+ * the call stack.
8885
+ */
8886
+ const qdIsDeepEqual = (left, right) => compare(left, right, {
8887
+ positions: new Map(),
8888
+ partners: new Map(),
8889
+ results: new Map(),
8890
+ assumptions: 0,
8891
+ depth: 0,
8892
+ nextPosition: 0
8893
+ });
8894
+ const MAX_DEPTH = 1200;
8895
+ const getterOf = (target, key) => Object.getOwnPropertyDescriptor(target, key)?.get;
8896
+ const TYPED_ARRAY_PROTOTYPE = Object.getPrototypeOf(Int8Array.prototype);
8897
+ const readMapSize = getterOf(Map.prototype, 'size');
8898
+ const readSetSize = getterOf(Set.prototype, 'size');
8899
+ const readRegExpSource = getterOf(RegExp.prototype, 'source');
8900
+ const readBufferLength = getterOf(ArrayBuffer.prototype, 'byteLength');
8901
+ const readSharedLength = getterOf(typeof SharedArrayBuffer === 'undefined' ? ArrayBuffer.prototype : SharedArrayBuffer.prototype, 'byteLength');
8902
+ const readViewLength = getterOf(DataView.prototype, 'byteLength');
8903
+ const readViewOffset = getterOf(DataView.prototype, 'byteOffset');
8904
+ const readTypedLength = getterOf(TYPED_ARRAY_PROTOTYPE, 'length');
8905
+ const REGEXP_FLAG_GETTERS = ['dotAll', 'global', 'hasIndices', 'ignoreCase', 'multiline', 'sticky', 'unicode', 'unicodeSets']
8906
+ .filter(flag => flag in RegExp.prototype)
8907
+ .map(flag => getterOf(RegExp.prototype, flag));
8908
+ const readNumberValue = Number.prototype.valueOf;
8909
+ const readStringValue = String.prototype.valueOf;
8910
+ const readBooleanValue = Boolean.prototype.valueOf;
8911
+ const readSymbolValue = Symbol.prototype.valueOf;
8912
+ const readBigIntValue = BigInt.prototype.valueOf;
8913
+ const readDateValue = Date.prototype.getTime;
8914
+ const survives = (probe) => {
8915
+ try {
8916
+ probe();
8917
+ return true;
8918
+ }
8919
+ catch {
8920
+ return false;
8921
+ }
8922
+ };
8923
+ const callable = (reader, value) => survives(() => reader.call(value));
8924
+ const isSameValueZero = (left, right) => left === right || (left !== left && right !== right);
8925
+ const hasErrorAncestor = (value) => {
8926
+ let current = Object.getPrototypeOf(value);
8927
+ while (current !== null) {
8928
+ if (current === Error.prototype)
8929
+ return true;
8930
+ current = Object.getPrototypeOf(current);
8931
+ }
8932
+ return false;
8933
+ };
8934
+ const probedKind = (value) => {
8935
+ if (callable(readMapSize, value))
8936
+ return 'map';
8937
+ if (callable(readSetSize, value))
8938
+ return 'set';
8939
+ if (survives(() => readDateValue.call(value)))
8940
+ return 'date';
8941
+ if (callable(readRegExpSource, value))
8942
+ return 'regExp';
8943
+ if (callable(readBufferLength, value) || callable(readSharedLength, value))
8944
+ return 'arrayBuffer';
8945
+ if (survives(() => readNumberValue.call(value)))
8946
+ return 'boxedNumber';
8947
+ if (survives(() => readStringValue.call(value)))
8948
+ return 'boxedString';
8949
+ if (survives(() => readBooleanValue.call(value)))
8950
+ return 'boxedBoolean';
8951
+ if (survives(() => readSymbolValue.call(value)))
8952
+ return 'boxedSymbol';
8953
+ if (survives(() => readBigIntValue.call(value)))
8954
+ return 'boxedBigInt';
8955
+ return undefined;
8956
+ };
8957
+ const isWeakCollection = (value) => survives(() => WeakMap.prototype.has.call(value, Object.prototype)) ||
8958
+ survives(() => WeakSet.prototype.has.call(value, Object.prototype));
8959
+ const readUrlHref = getterOf(URL.prototype, 'href');
8960
+ const prototypeOfMaybe = (holder) => {
8961
+ if (typeof holder !== 'function')
8962
+ return undefined;
8963
+ const prototype = holder.prototype;
8964
+ return typeof prototype === 'object' && prototype !== null ? prototype : undefined;
8965
+ };
8966
+ const OPAQUE_PROTOTYPES = [
8967
+ typeof Promise === 'undefined' ? undefined : Promise,
8968
+ typeof WeakRef === 'undefined' ? undefined : WeakRef,
8969
+ typeof URLSearchParams === 'undefined' ? undefined : URLSearchParams,
8970
+ typeof Intl === 'undefined' ? undefined : Intl.NumberFormat,
8971
+ typeof Intl === 'undefined' ? undefined : Intl.DateTimeFormat,
8972
+ typeof Intl === 'undefined' ? undefined : Intl.Collator
8973
+ ]
8974
+ .map(prototypeOfMaybe)
8975
+ .filter((prototype) => prototype !== undefined);
8976
+ const inheritsFromAny = (value, prototypes) => {
8977
+ let current = Object.getPrototypeOf(value);
8978
+ while (current !== null) {
8979
+ if (prototypes.includes(current))
8980
+ return true;
8981
+ current = Object.getPrototypeOf(current);
8982
+ }
8983
+ return false;
8984
+ };
8985
+ const hidesStateBehindSlots = (value) => {
8986
+ if (inheritsFromAny(value, OPAQUE_PROTOTYPES))
8987
+ return true;
8988
+ const prototype = Object.getPrototypeOf(value);
8989
+ if (prototype === null || prototype === Object.prototype)
8990
+ return false;
8991
+ if (!(Symbol.toStringTag in prototype))
8992
+ return false;
8993
+ return ownEnumerableKeys(value).length === 0;
8994
+ };
8995
+ const kindOf = (value) => {
8996
+ if (Array.isArray(value))
8997
+ return 'array';
8998
+ if (ArrayBuffer.isView(value))
8999
+ return callable(readViewLength, value) ? 'dataView' : 'typedArray';
9000
+ const probed = probedKind(value);
9001
+ if (probed !== undefined)
9002
+ return probed;
9003
+ if (callable(readUrlHref, value))
9004
+ return 'url';
9005
+ if (isWeakCollection(value))
9006
+ return 'opaque';
9007
+ if (hasErrorAncestor(value))
9008
+ return 'error';
9009
+ if (hidesStateBehindSlots(value))
9010
+ return 'opaque';
9011
+ return 'plain';
9012
+ };
9013
+ const ownEnumerableKeys = (value) => [
9014
+ ...Object.keys(value),
9015
+ ...Object.getOwnPropertySymbols(value).filter(symbol => Object.prototype.propertyIsEnumerable.call(value, symbol))
9016
+ ];
9017
+ const readKey = (value, key) => value[key];
9018
+ const compareOwnKeys = (left, right, state, skipIndices) => {
9019
+ const isIndex = (key) => typeof key === 'string' && /^(0|[1-9]\d*)$/.test(key);
9020
+ const leftKeys = ownEnumerableKeys(left).filter(key => !skipIndices || !isIndex(key));
9021
+ const rightKeys = ownEnumerableKeys(right).filter(key => !skipIndices || !isIndex(key));
9022
+ if (leftKeys.length !== rightKeys.length)
9023
+ return false;
9024
+ for (const key of leftKeys) {
9025
+ if (!Object.prototype.propertyIsEnumerable.call(right, key))
9026
+ return false;
9027
+ if (!compare(readKey(left, key), readKey(right, key), state))
9028
+ return false;
9029
+ }
9030
+ return true;
9031
+ };
9032
+ const compareDates = (left, right) => {
9033
+ const leftTime = Date.prototype.getTime.call(left);
9034
+ const rightTime = Date.prototype.getTime.call(right);
9035
+ return isSameValueZero(leftTime, rightTime);
9036
+ };
9037
+ const compareRegExps = (left, right) => {
9038
+ if (readRegExpSource.call(left) !== readRegExpSource.call(right))
9039
+ return false;
9040
+ return REGEXP_FLAG_GETTERS.every(reader => reader.call(left) === reader.call(right));
9041
+ };
9042
+ const byteLengthOf = (value) => {
9043
+ if (callable(readBufferLength, value))
9044
+ return readBufferLength.call(value);
9045
+ if (callable(readSharedLength, value))
9046
+ return readSharedLength.call(value);
9047
+ return -1;
9048
+ };
9049
+ const bytesOf = (buffer, offset, length) => {
9050
+ try {
9051
+ return new Uint8Array(buffer, offset, length);
9052
+ }
9053
+ catch {
9054
+ return undefined;
9055
+ }
9056
+ };
9057
+ const sameBytes = (left, right) => {
9058
+ if (left === undefined || right === undefined)
9059
+ return left === right;
9060
+ return left.every((byte, index) => byte === right[index]);
9061
+ };
9062
+ const compareArrayBuffers = (left, right) => {
9063
+ const leftLength = byteLengthOf(left);
9064
+ const rightLength = byteLengthOf(right);
9065
+ if (leftLength !== rightLength)
9066
+ return false;
9067
+ return sameBytes(bytesOf(left, 0, leftLength), bytesOf(right, 0, rightLength));
9068
+ };
9069
+ const compareDataViews = (left, right) => {
9070
+ const leftLength = readViewLength.call(left);
9071
+ if (leftLength !== readViewLength.call(right))
9072
+ return false;
9073
+ const leftView = left;
9074
+ const rightView = right;
9075
+ return sameBytes(bytesOf(leftView.buffer, readViewOffset.call(left), leftLength), bytesOf(rightView.buffer, readViewOffset.call(right), leftLength));
9076
+ };
9077
+ const compareTypedArrays = (left, right) => {
9078
+ const length = readTypedLength.call(left);
9079
+ if (length !== readTypedLength.call(right))
9080
+ return false;
9081
+ const leftView = left;
9082
+ const rightView = right;
9083
+ return Array.prototype.every.call(leftView, (entry, index) => isSameValueZero(entry, rightView[index]));
9084
+ };
9085
+ const compareErrors = (left, right, state) => {
9086
+ const leftError = left;
9087
+ const rightError = right;
9088
+ if (leftError.name !== rightError.name)
9089
+ return false;
9090
+ if (leftError.message !== rightError.message)
9091
+ return false;
9092
+ return compare(leftError.cause, rightError.cause, state);
9093
+ };
9094
+ const compareArrays = (left, right, state) => {
9095
+ const leftArray = left;
9096
+ const rightArray = right;
9097
+ if (leftArray.length !== rightArray.length)
9098
+ return false;
9099
+ for (let index = 0; index !== leftArray.length; index++) {
9100
+ const inLeft = Object.prototype.hasOwnProperty.call(leftArray, index);
9101
+ if (inLeft !== Object.prototype.hasOwnProperty.call(rightArray, index))
9102
+ return false;
9103
+ if (inLeft && !compare(leftArray[index], rightArray[index], state))
9104
+ return false;
9105
+ }
9106
+ return true;
9107
+ };
9108
+ const matchesAll = (leftItems, rightItems, isPair) => {
9109
+ const assigned = new Array(rightItems.length).fill(-1);
9110
+ const augment = (leftIndex, visited) => {
9111
+ for (let rightIndex = 0; rightIndex !== rightItems.length; rightIndex++) {
9112
+ if (visited[rightIndex] || !isPair(leftIndex, rightIndex))
9113
+ continue;
9114
+ visited[rightIndex] = true;
9115
+ if (assigned[rightIndex] === -1 || augment(assigned[rightIndex], visited)) {
9116
+ assigned[rightIndex] = leftIndex;
9117
+ return true;
9118
+ }
9119
+ }
9120
+ return false;
9121
+ };
9122
+ return leftItems.every((_, leftIndex) => augment(leftIndex, new Array(rightItems.length).fill(false)));
9123
+ };
9124
+ const pairMatcher = (leftItems, rightItems, state, matches) => {
9125
+ const cache = new Map();
9126
+ return matchesAll(leftItems, rightItems, (leftIndex, rightIndex) => {
9127
+ const slot = `${leftIndex}:${rightIndex}`;
9128
+ const known = cache.get(slot);
9129
+ if (known !== undefined)
9130
+ return known;
9131
+ const verdict = matches(leftItems[leftIndex], rightItems[rightIndex]);
9132
+ cache.set(slot, verdict);
9133
+ return verdict;
9134
+ });
9135
+ };
9136
+ const setEntriesOf = (value) => {
9137
+ const entries = [];
9138
+ Set.prototype.forEach.call(value, entry => entries.push(entry));
9139
+ return entries;
9140
+ };
9141
+ const mapEntriesOf = (value) => {
9142
+ const entries = [];
9143
+ Map.prototype.forEach.call(value, (entryValue, entryKey) => entries.push([entryKey, entryValue]));
9144
+ return entries;
9145
+ };
9146
+ const compareSets = (left, right, state) => {
9147
+ if (readSetSize.call(left) !== readSetSize.call(right))
9148
+ return false;
9149
+ const rightHas = (entry) => Set.prototype.has.call(right, entry);
9150
+ const leftRest = [];
9151
+ const matchedInRight = new Set();
9152
+ for (const entry of setEntriesOf(left)) {
9153
+ if (rightHas(entry)) {
9154
+ matchedInRight.add(entry);
9155
+ continue;
9156
+ }
9157
+ leftRest.push(entry);
9158
+ }
9159
+ if (leftRest.length === 0)
9160
+ return true;
9161
+ const rightRest = setEntriesOf(right).filter(entry => !matchedInRight.has(entry));
9162
+ return pairMatcher(leftRest, rightRest, state, (leftEntry, rightEntry) => compare(leftEntry, rightEntry, state));
9163
+ };
9164
+ const splitMapEntries = (left, rightMap, state) => {
9165
+ const rest = [];
9166
+ const matched = new Set();
9167
+ for (const entry of mapEntriesOf(left)) {
9168
+ const [key, value] = entry;
9169
+ const foundByIdentity = Map.prototype.has.call(rightMap, key) && compare(value, Map.prototype.get.call(rightMap, key), state);
9170
+ if (foundByIdentity) {
9171
+ matched.add(key);
9172
+ continue;
9173
+ }
9174
+ rest.push(entry);
9175
+ }
9176
+ return { rest, matched };
9177
+ };
9178
+ const compareMaps = (left, right, state) => {
9179
+ if (readMapSize.call(left) !== readMapSize.call(right))
9180
+ return false;
9181
+ const rightMap = right;
9182
+ const { rest: leftRest, matched: matchedKeys } = splitMapEntries(left, rightMap, state);
9183
+ if (leftRest.length === 0)
9184
+ return true;
9185
+ const rightRest = mapEntriesOf(right).filter(([key]) => !matchedKeys.has(key));
9186
+ return pairMatcher(leftRest, rightRest, state, (leftEntry, rightEntry) => compare(leftEntry[0], rightEntry[0], state) &&
9187
+ compare(leftEntry[1], rightEntry[1], state));
9188
+ };
9189
+ const compareUrls = (left, right) => {
9190
+ return readUrlHref.call(left) === readUrlHref.call(right);
9191
+ };
9192
+ const CONTENT_COMPARATORS = {
9193
+ array: compareArrays,
9194
+ arrayBuffer: compareArrayBuffers,
9195
+ boxedBigInt: (left, right) => readBigIntValue.call(left) === readBigIntValue.call(right),
9196
+ boxedBoolean: (left, right) => readBooleanValue.call(left) === readBooleanValue.call(right),
9197
+ boxedNumber: (left, right) => isSameValueZero(readNumberValue.call(left), readNumberValue.call(right)),
9198
+ boxedString: (left, right) => readStringValue.call(left) === readStringValue.call(right),
9199
+ boxedSymbol: (left, right) => readSymbolValue.call(left) === readSymbolValue.call(right),
9200
+ dataView: compareDataViews,
9201
+ date: compareDates,
9202
+ error: compareErrors,
9203
+ map: compareMaps,
9204
+ opaque: () => false,
9205
+ plain: () => true,
9206
+ regExp: compareRegExps,
9207
+ set: compareSets,
9208
+ typedArray: compareTypedArrays,
9209
+ url: compareUrls
9210
+ };
9211
+ const KINDS_INDEXED_BY_KEY = new Set(['array', 'typedArray', 'boxedString']);
9212
+ const compareByKind = (kind, left, right, state) => {
9213
+ if (!CONTENT_COMPARATORS[kind](left, right, state))
9214
+ return false;
9215
+ return compareOwnKeys(left, right, state, KINDS_INDEXED_BY_KEY.has(kind));
9216
+ };
9217
+ const rememberResult = (left, right, state, verdict) => {
9218
+ const known = state.results.get(left);
9219
+ if (known === undefined) {
9220
+ state.results.set(left, new Map([[right, verdict]]));
9221
+ return;
9222
+ }
9223
+ known.set(right, verdict);
9224
+ };
9225
+ const compareObjects = (left, right, state) => {
9226
+ if (Object.getPrototypeOf(left) !== Object.getPrototypeOf(right))
9227
+ return false;
9228
+ const kind = kindOf(left);
9229
+ if (kind !== kindOf(right))
9230
+ return false;
9231
+ const knownPosition = state.positions.get(left);
9232
+ if (knownPosition !== undefined) {
9233
+ const partnerPosition = state.partners.get(right);
9234
+ if (partnerPosition !== undefined) {
9235
+ state.assumptions += 1;
9236
+ return knownPosition === partnerPosition;
9237
+ }
9238
+ }
9239
+ const memo = state.results.get(left)?.get(right);
9240
+ if (memo !== undefined)
9241
+ return memo;
9242
+ if (state.depth >= MAX_DEPTH)
9243
+ return false;
9244
+ state.nextPosition += 1;
9245
+ const position = state.nextPosition;
9246
+ state.positions.set(left, position);
9247
+ state.partners.set(right, position);
9248
+ state.depth += 1;
9249
+ const assumptionsBefore = state.assumptions;
9250
+ const verdict = compareByKind(kind, left, right, state);
9251
+ state.depth -= 1;
9252
+ state.positions.delete(left);
9253
+ state.partners.delete(right);
9254
+ if (state.assumptions === assumptionsBefore)
9255
+ rememberResult(left, right, state, verdict);
9256
+ return verdict;
9257
+ };
9258
+ const compare = (left, right, state) => {
9259
+ if (isSameValueZero(left, right))
9260
+ return true;
9261
+ if (left === null || right === null)
9262
+ return false;
9263
+ if (typeof left !== 'object' || typeof right !== 'object')
9264
+ return false;
9265
+ return compareObjects(left, right, state);
9266
+ };
9267
+
8698
9268
  /**
8699
9269
  * Inspired by Kafka's message broker architecture, the QdEventBrokerService provides a lightweight, event-driven
8700
9270
  * communication layer within the Quadrel framework.
@@ -8747,7 +9317,7 @@ class QdEventBrokerService {
8747
9317
  console.warn(`Quadrel Framework | QdEventBroker - Topic "${topic}" does not exist.`);
8748
9318
  return EMPTY;
8749
9319
  }
8750
- return this._topics.get(topic).pipe(filter(event => event.payload != null), distinctUntilChanged((prev, curr) => isEqual(prev, curr)), shareReplay(1));
9320
+ return this._topics.get(topic).pipe(filter(event => event.payload != null), distinctUntilChanged((prev, curr) => qdIsDeepEqual(prev, curr)), shareReplay(1));
8751
9321
  }
8752
9322
  unsubscribeFrom(topic) {
8753
9323
  const subject = this._topics.get(topic);
@@ -9733,7 +10303,7 @@ class QdCheckboxesComponent {
9733
10303
  }
9734
10304
  haveOptionsChanged(changes) {
9735
10305
  return (!changes.config.firstChange &&
9736
- !isEqual$1(changes.config.previousValue?.options, changes.config.currentValue?.options));
10306
+ !qdIsDeepEqual(changes.config.previousValue?.options, changes.config.currentValue?.options));
9737
10307
  }
9738
10308
  updateConfiguration() {
9739
10309
  this.label = getLabel(this.config);
@@ -10285,8 +10855,9 @@ class QdCalendarComponent {
10285
10855
  const firstDayOfGrid = moment(momentObj).locale(this.language).startOf('month').startOf('isoWeek');
10286
10856
  const lastDayOfGrid = moment(momentObj).endOf('month').endOf('isoWeek').add(1, 'day');
10287
10857
  const startCalendar = firstDayOfGrid.date();
10288
- return range(startCalendar, startCalendar + lastDayOfGrid.diff(firstDayOfGrid, 'days')).map(date => {
10289
- const newDate = moment(firstDayOfGrid).date(date);
10858
+ const dayCount = lastDayOfGrid.diff(firstDayOfGrid, 'days');
10859
+ return Array.from({ length: Math.max(dayCount, 0) }, (_, offset) => {
10860
+ const newDate = moment(firstDayOfGrid).date(startCalendar + offset);
10290
10861
  return {
10291
10862
  formatted: QdDateAdapter.formatToLocalizedDateString(newDate),
10292
10863
  moment: newDate,
@@ -10434,14 +11005,21 @@ const QD_FOCUSABLE_TOKEN = new InjectionToken('QD_FOCUSABLE_TOKEN');
10434
11005
  */
10435
11006
  const QD_FORM_OPTIONS_RESOLVER = new InjectionToken('QD_FORM_OPTIONS_RESOLVER');
10436
11007
  /**
10437
- * Represents the request state for a form options request using QdFormOptionsResolver.
10438
- * Additional states can be added as needed.
11008
+ * State of an options request handled by a QdFormOptionsResolver.
11009
+ * Framework internal: the form elements use it to drive the loading and error hints.
10439
11010
  */
10440
11011
  var QdFormOptionsRequestState;
10441
11012
  (function (QdFormOptionsRequestState) {
11013
+ /** No request is running. Set before every new load and after a reset. */
10442
11014
  QdFormOptionsRequestState[QdFormOptionsRequestState["IDLE"] = 0] = "IDLE";
11015
+ /**
11016
+ * A request is on its way. Set as soon as the trigger arrives, not when the
11017
+ * call goes out, so the loading hint also shows while a throttled trigger waits.
11018
+ */
10443
11019
  QdFormOptionsRequestState[QdFormOptionsRequestState["PENDING"] = 1] = "PENDING";
11020
+ /** The resolver returned options. Also set after filtering static options. */
10444
11021
  QdFormOptionsRequestState[QdFormOptionsRequestState["SUCCESS"] = 2] = "SUCCESS";
11022
+ /** The resolver failed. The previously shown options stay cleared. */
10445
11023
  QdFormOptionsRequestState[QdFormOptionsRequestState["ERROR"] = 3] = "ERROR";
10446
11024
  })(QdFormOptionsRequestState || (QdFormOptionsRequestState = {}));
10447
11025
 
@@ -10582,6 +11160,7 @@ function qdCollectOptionsDependencies(container, dependsOn) {
10582
11160
  return Object.fromEntries(dependsOn.map(name => [name, container.get(name)?.value]));
10583
11161
  }
10584
11162
 
11163
+ const RESOLVER_THROTTLE_MS = 300;
10585
11164
  /**
10586
11165
  * Manages static and resolver-based options for form elements such as QdDropdown.
10587
11166
  * The resolver trigger rules are defined on {@link QdFormOptionsResolver};
@@ -10589,6 +11168,11 @@ function qdCollectOptionsDependencies(container, dependsOn) {
10589
11168
  * Labels resolve through QdTranslateService, so options may carry an i18n key
10590
11169
  * or a backend translation map. Values set via `setExcludedValues` are hidden
10591
11170
  * before the text filter runs and stay hidden until they are replaced.
11171
+ *
11172
+ * Resolver calls are rate limited. The first trigger reaches the resolver at once,
11173
+ * further triggers within the window are collected and the last one is sent when the
11174
+ * window closes. Only the initial load bypasses the limit. The request state turns
11175
+ * PENDING on the trigger, not on the call, so the loading hint appears right away.
10592
11176
  */
10593
11177
  class QdFormOptionsService {
10594
11178
  resolverRegistry = inject(QdFormOptionsResolverRegistry);
@@ -10603,7 +11187,8 @@ class QdFormOptionsService {
10603
11187
  _excludedValues = new Set();
10604
11188
  _config = null;
10605
11189
  _dependsOnSubscription = null;
10606
- _resolveRequests$ = new Subject();
11190
+ _immediateRequests$ = new Subject();
11191
+ _throttledRequests$ = new Subject();
10607
11192
  filteredOptions$ = this._options.asObservable();
10608
11193
  requestState$ = this._requestState.asObservable();
10609
11194
  optionsResolved$ = this._optionsResolved.asObservable();
@@ -10621,7 +11206,7 @@ class QdFormOptionsService {
10621
11206
  this._resolver = this.resolverRegistry.findResolver();
10622
11207
  this.reloadWhenDependsOnControlsChange(config.optionsDependsOn);
10623
11208
  this.logWarningIfDependsOnWithoutFormGroup();
10624
- this.load('');
11209
+ this.loadWithoutThrottle('');
10625
11210
  }
10626
11211
  updateStaticOptions(options) {
10627
11212
  if (!this._config)
@@ -10654,16 +11239,7 @@ class QdFormOptionsService {
10654
11239
  console.warn(`Quadrel Framework | ${componentName} - Config key "options" ignored because QD_FORM_OPTIONS_RESOLVER is configured.`);
10655
11240
  }
10656
11241
  load(value) {
10657
- if (value === this._lastLoadedValue)
10658
- return;
10659
- this._lastLoadedValue = value;
10660
- this.reset();
10661
- if (this._resolver) {
10662
- this.loadFromResolver(value);
10663
- }
10664
- else {
10665
- this.filterStaticOptions(value, this._config?.options || []);
10666
- }
11242
+ this.startLoad(value, this._throttledRequests$);
10667
11243
  }
10668
11244
  reset() {
10669
11245
  this._options.next([]);
@@ -10675,7 +11251,7 @@ class QdFormOptionsService {
10675
11251
  const dependsOnControls = qdGetDependsOnControls(this.controlContainer?.control, dependsOn);
10676
11252
  if (dependsOnControls.length === 0)
10677
11253
  return;
10678
- this._dependsOnSubscription = merge(...dependsOnControls.map(control => control.valueChanges.pipe(startWith(control.value), distinctUntilChanged(isEqual$1), skip(1))))
11254
+ this._dependsOnSubscription = merge(...dependsOnControls.map(control => control.valueChanges.pipe(startWith(control.value), distinctUntilChanged(qdIsDeepEqual), skip(1))))
10679
11255
  .pipe(takeUntil(this._destroyed$))
10680
11256
  .subscribe(() => this.reloadAfterDependencyChange());
10681
11257
  }
@@ -10690,12 +11266,24 @@ class QdFormOptionsService {
10690
11266
  this._lastLoadedValue = null;
10691
11267
  this.load(lastValue);
10692
11268
  }
10693
- loadFromResolver(value) {
10694
- this._resolveRequests$.next(value);
11269
+ loadWithoutThrottle(value) {
11270
+ this.startLoad(value, this._immediateRequests$);
11271
+ }
11272
+ startLoad(value, requests$) {
11273
+ if (value === this._lastLoadedValue)
11274
+ return;
11275
+ this._lastLoadedValue = value;
11276
+ this.reset();
11277
+ if (!this._resolver) {
11278
+ this.filterStaticOptions(value, this._config?.options || []);
11279
+ return;
11280
+ }
11281
+ this._requestState.next(QdFormOptionsRequestState.PENDING);
11282
+ requests$.next(value);
10695
11283
  }
10696
11284
  publishLatestResolvedOptions() {
10697
- this._resolveRequests$
10698
- .pipe(tap(() => this._requestState.next(QdFormOptionsRequestState.PENDING)), map(value => ({
11285
+ merge(this._immediateRequests$, this._throttledRequests$.pipe(throttleTime(RESOLVER_THROTTLE_MS, asyncScheduler, { leading: true, trailing: true })))
11286
+ .pipe(map(value => ({
10699
11287
  value: value.toString(),
10700
11288
  dependencies: qdCollectOptionsDependencies(this.controlContainer?.control, this._config?.optionsDependsOn)
10701
11289
  })), switchMap(({ value, dependencies }) => this._resolver.resolve(value, dependencies).pipe(take(1), map((options) => ({ options, dependencies })), catchError(() => {
@@ -11250,7 +11838,7 @@ class QdDropdownComponent {
11250
11838
  this.options = getOptions(this.config);
11251
11839
  }
11252
11840
  haveOptionsChanged(changes) {
11253
- return !isEqual$1(changes.config.previousValue?.options, changes.config.currentValue?.options);
11841
+ return !qdIsDeepEqual(changes.config.previousValue?.options, changes.config.currentValue?.options);
11254
11842
  }
11255
11843
  handleOptionsChange() {
11256
11844
  if (this.value && !this.options.find(option => option.value === this.value)) {
@@ -11290,7 +11878,7 @@ class QdDropdownComponent {
11290
11878
  provide: QD_FOCUSABLE_TOKEN,
11291
11879
  useExisting: QdDropdownComponent
11292
11880
  }
11293
- ], 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 [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 [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", "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", "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 });
11881
+ ], 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 [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", "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 });
11294
11882
  }
11295
11883
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdDropdownComponent, decorators: [{
11296
11884
  type: Component,
@@ -11308,7 +11896,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
11308
11896
  provide: QD_FOCUSABLE_TOKEN,
11309
11897
  useExisting: QdDropdownComponent
11310
11898
  }
11311
- ], encapsulation: ViewEncapsulation.None, host: { class: 'qd-dropdown' }, standalone: false, 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 [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 [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"] }]
11899
+ ], encapsulation: ViewEncapsulation.None, host: { class: 'qd-dropdown' }, standalone: false, 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 [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"] }]
11312
11900
  }], ctorParameters: () => [], propDecorators: { value: [{
11313
11901
  type: Input
11314
11902
  }], id: [{
@@ -11448,7 +12036,7 @@ class QdInputUnitsComponent {
11448
12036
  this.closed.emit();
11449
12037
  }
11450
12038
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdInputUnitsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
11451
- 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", "qdPopoverFlipIntoViewport"], outputs: ["opened", "closed"], exportAs: ["qdPopoverOnClick"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] });
12039
+ 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" }] });
11452
12040
  }
11453
12041
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdInputUnitsComponent, decorators: [{
11454
12042
  type: Component,
@@ -11816,7 +12404,7 @@ class QdInputComponent {
11816
12404
  _onChange = () => { };
11817
12405
  _onTouch = () => { };
11818
12406
  get hasOnlyUnitsError() {
11819
- return isEqual(Object.keys(this.control.errors), ['required']) && this._value.value !== '';
12407
+ return qdIsDeepEqual(Object.keys(this.control.errors), ['required']) && this._value.value !== '';
11820
12408
  }
11821
12409
  get requestLoadingHintI18n() {
11822
12410
  return this._optionsResolver?.requestLoadingHint?.i18n || 'i18n.qd.input.options.loading';
@@ -12098,7 +12686,7 @@ class QdInputComponent {
12098
12686
  }
12099
12687
  const normalized = getValueWithUnit(modelValue, this.config);
12100
12688
  const target = this.hasUnits ? normalized : normalized.value;
12101
- if (!isEqual(modelValue, target))
12689
+ if (!qdIsDeepEqual(modelValue, target))
12102
12690
  this.control.setValue(target, { emitEvent: false });
12103
12691
  this._value = normalized;
12104
12692
  this.applyDisplayFormat();
@@ -12125,7 +12713,7 @@ class QdInputComponent {
12125
12713
  provide: QD_FOCUSABLE_TOKEN,
12126
12714
  useExisting: QdInputComponent
12127
12715
  }
12128
- ], 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 [values]=\"valueAsList\" [viewonlyAction]=\"viewonlyAction\" [data-test-id]=\"testId\"></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", "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", "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" }] });
12716
+ ], 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 [values]=\"valueAsList\" [viewonlyAction]=\"viewonlyAction\" [data-test-id]=\"testId\"></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", "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" }] });
12129
12717
  }
12130
12718
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdInputComponent, decorators: [{
12131
12719
  type: Component,
@@ -12651,7 +13239,7 @@ class QdDatepickerComponent {
12651
13239
  useValue: true
12652
13240
  },
12653
13241
  QdFormsActionEmitterService
12654
- ], 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 [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$3.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", "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", "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 });
13242
+ ], 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 [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$3.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", "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 });
12655
13243
  }
12656
13244
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdDatepickerComponent, decorators: [{
12657
13245
  type: Component,
@@ -13943,7 +14531,7 @@ class QdMultiInputComponent {
13943
14531
  this.writeValue(this.multiInputService.getItemValues());
13944
14532
  }
13945
14533
  haveOptionsChanged(changes) {
13946
- return !isEqual$1(changes['config'].previousValue?.options, changes['config'].currentValue?.options);
14534
+ return !qdIsDeepEqual(changes['config'].previousValue?.options, changes['config'].currentValue?.options);
13947
14535
  }
13948
14536
  blur() {
13949
14537
  this.inputField?.nativeElement.blur();
@@ -13972,7 +14560,7 @@ class QdMultiInputComponent {
13972
14560
  QdFormKeyboardService,
13973
14561
  QdFormOptionsService,
13974
14562
  QdFormOptionsResolverRegistry
13975
- ], 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\">&nbsp;</div>\n } @if (viewonly && !hasItems()) {\n <div class=\"qd-multi-input__box qd-multi-input__box--viewonly\">&nbsp;</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 [values]=\"getValues()\" [viewonlyAction]=\"viewonlyAction\" [data-test-id]=\"testId\"></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", "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", "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 });
14563
+ ], 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\">&nbsp;</div>\n } @if (viewonly && !hasItems()) {\n <div class=\"qd-multi-input__box qd-multi-input__box--viewonly\">&nbsp;</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 [values]=\"getValues()\" [viewonlyAction]=\"viewonlyAction\" [data-test-id]=\"testId\"></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", "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 });
13976
14564
  }
13977
14565
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMultiInputComponent, decorators: [{
13978
14566
  type: Component,
@@ -16648,7 +17236,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
16648
17236
  * interface QdNotification {
16649
17237
  * uuid?: string;
16650
17238
  * context?: string;
16651
- * type: QdNotificationType;
17239
+ * state: QdNotificationState;
16652
17240
  * i18n: QdNotificationTranslation;
16653
17241
  * title?: QdNotificationTitle;
16654
17242
  * date?: Date;
@@ -16661,7 +17249,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
16661
17249
  * osNotificationOptions?: QdOsNotificationOptions;
16662
17250
  * }
16663
17251
  *
16664
- * type QdNotificationType = 'info' | 'warning' | 'critical' | 'success' | 'urgent';
17252
+ * type QdNotificationState = 'positive' | 'info' | 'warning' | 'critical' | 'urgent';
16665
17253
  *
16666
17254
  * type QdNotificationTranslation = string;
16667
17255
  * type QdNotificationTitle = { i18n: string };
@@ -16702,7 +17290,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
16702
17290
  * interface QdNotification {
16703
17291
  * ...
16704
17292
  *
16705
- * type: QdNotificationType;
17293
+ * state: QdNotificationState;
16706
17294
  * i18n: string;
16707
17295
  * lifeTime?: number;
16708
17296
  * }
@@ -16710,16 +17298,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
16710
17298
  * type QdNotifications = QdNotification[];
16711
17299
  * ```
16712
17300
  *
16713
- * ### Type QdNotificationType
17301
+ * ### Type QdNotificationState
16714
17302
  *
16715
17303
  * ```typescript
16716
- * type QdNotificationType = 'info' | 'warning' | 'critical' | 'success' | 'urgent';
17304
+ * type QdNotificationState = 'positive' | 'info' | 'warning' | 'critical' | 'urgent';
16717
17305
  * ```
16718
17306
  *
16719
17307
  * ### Template
16720
17308
  *
16721
17309
  * ```html
16722
- * <button (click)="add('qdPanel', { type: 'critical', i18n: 'i18n.error.critical' })">Add Notification</button>
17310
+ * <button (click)="add('qdPanel', { state: 'critical', i18n: 'i18n.error.critical' })">Add Notification</button>
16723
17311
  * ```
16724
17312
  *
16725
17313
  * ### Template for displaying notifications - for instance in the Info Panel
@@ -16737,7 +17325,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
16737
17325
  * ```html
16738
17326
  * <qd-section qdSnackbarListener> My Container Content </qd-section>
16739
17327
  *
16740
- * <button (click)="addNotification('qdPanel', { type: 'critical', i18n: 'i18n.error.critical', showAsSnackbar: true })">
17328
+ * <button (click)="addNotification('qdPanel', { state: 'critical', i18n: 'i18n.error.critical', showAsSnackbar: true })">
16741
17329
  * Add Notification
16742
17330
  * </button>
16743
17331
  * ```
@@ -16763,7 +17351,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
16763
17351
  * ### Example
16764
17352
  *
16765
17353
  * ```html
16766
- * <button (click)="addNotification('qdPanel', { type: 'critical', i18n: 'i18n.error.critical', showAsOsNotification: true })">
17354
+ * <button (click)="addNotification('qdPanel', { state: 'critical', i18n: 'i18n.error.critical', showAsOsNotification: true })">
16767
17355
  * Add Notification
16768
17356
  * </button>
16769
17357
  * ```
@@ -16792,11 +17380,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
16792
17380
  * ```typescript
16793
17381
  * const BULK: QdNotifications = [
16794
17382
  * {
16795
- * type: 'critical',
17383
+ * state: 'critical',
16796
17384
  * i18n: 'i18n.error.1'
16797
17385
  * },
16798
17386
  * {
16799
- * type: 'critical',
17387
+ * state: 'critical',
16800
17388
  * i18n: 'i18n.error.2'
16801
17389
  * }
16802
17390
  * ];
@@ -16849,7 +17437,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
16849
17437
  * this.notificationsService.add(
16850
17438
  * 'qdPanel',
16851
17439
  * {
16852
- * type: 'critical',
17440
+ * state: 'critical',
16853
17441
  * i18n: 'i18n.error.critical',
16854
17442
  * onClose: () => console.log('Notification closed.'),
16855
17443
  * showAsSnackbar: true,
@@ -16873,7 +17461,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
16873
17461
  * this.notificationsService.add(
16874
17462
  * 'qdPanel',
16875
17463
  * {
16876
- * type: 'critical',
17464
+ * state: 'critical',
16877
17465
  * i18n: 'i18n.error.critical',
16878
17466
  * showAsOsNotification: true,
16879
17467
  * osNotificationOptions: {
@@ -16891,18 +17479,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
16891
17479
  * Notifications can also be inserted directly into the template.
16892
17480
  *
16893
17481
  * ```html
16894
- * <qd-notification [type]="type" [notification]="notification">
17482
+ * <qd-notification [state]="state" [notification]="notification">
16895
17483
  * <qd-notification-content> test notification content </qd-notification-content>
16896
17484
  * </qd-notification>
16897
17485
  * ```
16898
17486
  *
16899
17487
  * ```typescript
16900
- * // The type can be defined with the type input
16901
- * type = 'critical';
17488
+ * // The state can be defined with the state input
17489
+ * state = 'critical';
16902
17490
  *
16903
17491
  * // ... or in the notification config
16904
17492
  * notification: QdNotification = {
16905
- * type: 'critical'
17493
+ * state: 'critical'
16906
17494
  * }
16907
17495
  * ```
16908
17496
  *
@@ -16915,7 +17503,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
16915
17503
  *
16916
17504
  * ```typescript
16917
17505
  * notification: QdNotification = {
16918
- * type: 'critical',
17506
+ * state: 'critical',
16919
17507
  * i18n: 'i18n.error.critical'
16920
17508
  * }
16921
17509
  * ```
@@ -16930,7 +17518,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
16930
17518
  *
16931
17519
  * ```typescript
16932
17520
  * notification: QdNotification = {
16933
- * type: 'warning',
17521
+ * state: 'warning',
16934
17522
  * i18n: 'i18n.ncts.declaration.detailInventoryResult.notification.transitDeadlineExpired'
16935
17523
  * }
16936
17524
  * ```
@@ -16958,26 +17546,36 @@ class QdNotificationComponent {
16958
17546
  notificationService = inject(QdNotificationsService);
16959
17547
  snackbarService = inject(QdSnackbarService);
16960
17548
  element = inject(ElementRef);
17549
+ _state = 'positive';
17550
+ _effectiveState = 'positive';
16961
17551
  /**
16962
- * Defines the type of this notification.
17552
+ * Defines the state of this notification.
16963
17553
  */
16964
- type = 'critical';
17554
+ set state(value) {
17555
+ this._state = value ?? 'positive';
17556
+ }
17557
+ get state() {
17558
+ return this._state;
17559
+ }
16965
17560
  /**
16966
17561
  * Configuration of a notification.
16967
17562
  */
16968
17563
  notification;
16969
17564
  get typeClassName() {
16970
- return `qd-notification qd-notification-${this.getType()}`;
17565
+ return `qd-notification qd-notification-${this.getState()}`;
16971
17566
  }
16972
17567
  get closeable() {
16973
17568
  return this.notification ? !this.notification.disableClose : true;
16974
17569
  }
16975
- getType() {
16976
- return this.notification?.type || this.type;
17570
+ ngOnChanges() {
17571
+ this._effectiveState = this.notification?.state ?? this._state;
17572
+ }
17573
+ getState() {
17574
+ return this._effectiveState;
16977
17575
  }
16978
17576
  getIcon() {
16979
- switch (this.getType()) {
16980
- case 'success':
17577
+ switch (this.getState()) {
17578
+ case 'positive':
16981
17579
  return 'checkCircleSolid';
16982
17580
  case 'info':
16983
17581
  return 'checkCircleSolid';
@@ -17004,12 +17602,12 @@ class QdNotificationComponent {
17004
17602
  return !!this.element.nativeElement.closest('qd-snackbar');
17005
17603
  }
17006
17604
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdNotificationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
17007
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdNotificationComponent, isStandalone: false, selector: "qd-notification", inputs: { type: "type", notification: "notification" }, host: { properties: { "attr.class": "this.typeClassName" }, classAttribute: "qd-notification" }, ngImport: i0, template: "@if (closeable) {\n<qd-icon [icon]=\"'timesLarge'\" class=\"closer\" (click)=\"remove()\"></qd-icon>\n}\n<qd-icon [icon]=\"this.getIcon()\" class=\"icon\"></qd-icon>\n\n<ng-content select=\"qd-notification-content\"></ng-content>\n\n@if (notification?.title) {\n<div class=\"title\">{{ notification.title.i18n | translate }}</div>\n}\n<div class=\"message\">\n <span>{{ notification?.i18n | translate }}</span>\n @if (notification?.link) {\n <a class=\"link\" (click)=\"handleLinkClick()\">{{ notification.link.i18n | translate }}</a>\n }\n</div>\n", styles: [":host{position:relative;display:block;width:100%;padding:1rem 2rem .5rem 2.75rem;border-width:.0625rem;border-style:solid;border-left-width:.25rem;margin-bottom:.5rem;background:#fff;box-shadow:0 0 .625rem #979797;font-size:.875rem;gap:.5rem;line-height:1rem}:host.qd-notification-info{border-color:#069}:host.qd-notification-info .icon,:host.qd-notification-info .title{color:#069}:host.qd-notification-warning{border-color:#ff9b00}:host.qd-notification-warning .icon,:host.qd-notification-warning .title{color:#ff9b00}:host.qd-notification-urgent{border-color:#c70023}:host.qd-notification-urgent .icon,:host.qd-notification-urgent .title{color:#c70023}:host.qd-notification-critical{border-color:#c70023}:host.qd-notification-critical .icon,:host.qd-notification-critical .title{color:#c70023}:host.qd-notification-success{border-color:#00813a}:host.qd-notification-success .icon,:host.qd-notification-success .title{color:#00813a}:host .icon{position:absolute;top:.9375rem;left:1rem;font-size:1.25rem}:host .closer{position:absolute;top:1rem;right:.75rem;color:#171717;cursor:pointer;font-size:.8125rem;font-weight:600}:host .title{margin-bottom:.375rem;font-weight:500}:host .message{margin-bottom:.25rem;white-space:pre-wrap}:host .link{margin-bottom:.375rem;margin-left:.375rem;color:#069;cursor:pointer}:host .link:hover{text-decoration:underline}:host:host-context(qd-snackbar){z-index:9999!important}:host:host-context(qd-snackbar) .link{display:block;margin-top:.375rem;margin-left:0}\n"], dependencies: [{ kind: "component", type: QdIconComponent, selector: "qd-icon", inputs: ["icon", "status"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] });
17605
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdNotificationComponent, isStandalone: false, selector: "qd-notification", inputs: { state: "state", notification: "notification" }, host: { properties: { "attr.class": "this.typeClassName" }, classAttribute: "qd-notification" }, usesOnChanges: true, ngImport: i0, template: "@if (closeable) {\n<qd-icon [icon]=\"'timesLarge'\" class=\"closer\" (click)=\"remove()\"></qd-icon>\n}\n<qd-icon [icon]=\"this.getIcon()\" class=\"icon\"></qd-icon>\n\n<ng-content select=\"qd-notification-content\"></ng-content>\n\n@if (notification?.title) {\n<div class=\"title\">{{ notification.title.i18n | translate }}</div>\n}\n<div class=\"message\">\n <span>{{ notification?.i18n | translate }}</span>\n @if (notification?.link) {\n <a class=\"link\" (click)=\"handleLinkClick()\">{{ notification.link.i18n | translate }}</a>\n }\n</div>\n", styles: [":host{position:relative;display:block;width:100%;padding:1rem 2rem .5rem 2.75rem;border-width:.0625rem;border-style:solid;border-left-width:.25rem;margin-bottom:.5rem;background:#fff;box-shadow:0 0 .625rem #979797;font-size:.875rem;gap:.5rem;line-height:1rem}:host.qd-notification-info{border-color:#069}:host.qd-notification-info .icon,:host.qd-notification-info .title{color:#069}:host.qd-notification-warning{border-color:#ff9b00}:host.qd-notification-warning .icon,:host.qd-notification-warning .title{color:#ff9b00}:host.qd-notification-urgent{border-color:#c70023}:host.qd-notification-urgent .icon,:host.qd-notification-urgent .title{color:#c70023}:host.qd-notification-critical{border-color:#c70023}:host.qd-notification-critical .icon,:host.qd-notification-critical .title{color:#c70023}:host.qd-notification-positive,:host.qd-notification-success{border-color:#00813a}:host.qd-notification-positive .icon,:host.qd-notification-positive .title,:host.qd-notification-success .icon,:host.qd-notification-success .title{color:#00813a}:host .icon{position:absolute;top:.9375rem;left:1rem;font-size:1.25rem}:host .closer{position:absolute;top:1rem;right:.75rem;color:#171717;cursor:pointer;font-size:.8125rem;font-weight:600}:host .title{margin-bottom:.375rem;font-weight:500}:host .message{margin-bottom:.25rem;white-space:pre-wrap}:host .link{margin-bottom:.375rem;margin-left:.375rem;color:#069;cursor:pointer}:host .link:hover{text-decoration:underline}:host:host-context(qd-snackbar){z-index:9999!important}:host:host-context(qd-snackbar) .link{display:block;margin-top:.375rem;margin-left:0}\n"], dependencies: [{ kind: "component", type: QdIconComponent, selector: "qd-icon", inputs: ["icon", "status"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] });
17008
17606
  }
17009
17607
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdNotificationComponent, decorators: [{
17010
17608
  type: Component,
17011
- args: [{ selector: 'qd-notification', host: { class: 'qd-notification' }, standalone: false, template: "@if (closeable) {\n<qd-icon [icon]=\"'timesLarge'\" class=\"closer\" (click)=\"remove()\"></qd-icon>\n}\n<qd-icon [icon]=\"this.getIcon()\" class=\"icon\"></qd-icon>\n\n<ng-content select=\"qd-notification-content\"></ng-content>\n\n@if (notification?.title) {\n<div class=\"title\">{{ notification.title.i18n | translate }}</div>\n}\n<div class=\"message\">\n <span>{{ notification?.i18n | translate }}</span>\n @if (notification?.link) {\n <a class=\"link\" (click)=\"handleLinkClick()\">{{ notification.link.i18n | translate }}</a>\n }\n</div>\n", styles: [":host{position:relative;display:block;width:100%;padding:1rem 2rem .5rem 2.75rem;border-width:.0625rem;border-style:solid;border-left-width:.25rem;margin-bottom:.5rem;background:#fff;box-shadow:0 0 .625rem #979797;font-size:.875rem;gap:.5rem;line-height:1rem}:host.qd-notification-info{border-color:#069}:host.qd-notification-info .icon,:host.qd-notification-info .title{color:#069}:host.qd-notification-warning{border-color:#ff9b00}:host.qd-notification-warning .icon,:host.qd-notification-warning .title{color:#ff9b00}:host.qd-notification-urgent{border-color:#c70023}:host.qd-notification-urgent .icon,:host.qd-notification-urgent .title{color:#c70023}:host.qd-notification-critical{border-color:#c70023}:host.qd-notification-critical .icon,:host.qd-notification-critical .title{color:#c70023}:host.qd-notification-success{border-color:#00813a}:host.qd-notification-success .icon,:host.qd-notification-success .title{color:#00813a}:host .icon{position:absolute;top:.9375rem;left:1rem;font-size:1.25rem}:host .closer{position:absolute;top:1rem;right:.75rem;color:#171717;cursor:pointer;font-size:.8125rem;font-weight:600}:host .title{margin-bottom:.375rem;font-weight:500}:host .message{margin-bottom:.25rem;white-space:pre-wrap}:host .link{margin-bottom:.375rem;margin-left:.375rem;color:#069;cursor:pointer}:host .link:hover{text-decoration:underline}:host:host-context(qd-snackbar){z-index:9999!important}:host:host-context(qd-snackbar) .link{display:block;margin-top:.375rem;margin-left:0}\n"] }]
17012
- }], propDecorators: { type: [{
17609
+ args: [{ selector: 'qd-notification', host: { class: 'qd-notification' }, standalone: false, template: "@if (closeable) {\n<qd-icon [icon]=\"'timesLarge'\" class=\"closer\" (click)=\"remove()\"></qd-icon>\n}\n<qd-icon [icon]=\"this.getIcon()\" class=\"icon\"></qd-icon>\n\n<ng-content select=\"qd-notification-content\"></ng-content>\n\n@if (notification?.title) {\n<div class=\"title\">{{ notification.title.i18n | translate }}</div>\n}\n<div class=\"message\">\n <span>{{ notification?.i18n | translate }}</span>\n @if (notification?.link) {\n <a class=\"link\" (click)=\"handleLinkClick()\">{{ notification.link.i18n | translate }}</a>\n }\n</div>\n", styles: [":host{position:relative;display:block;width:100%;padding:1rem 2rem .5rem 2.75rem;border-width:.0625rem;border-style:solid;border-left-width:.25rem;margin-bottom:.5rem;background:#fff;box-shadow:0 0 .625rem #979797;font-size:.875rem;gap:.5rem;line-height:1rem}:host.qd-notification-info{border-color:#069}:host.qd-notification-info .icon,:host.qd-notification-info .title{color:#069}:host.qd-notification-warning{border-color:#ff9b00}:host.qd-notification-warning .icon,:host.qd-notification-warning .title{color:#ff9b00}:host.qd-notification-urgent{border-color:#c70023}:host.qd-notification-urgent .icon,:host.qd-notification-urgent .title{color:#c70023}:host.qd-notification-critical{border-color:#c70023}:host.qd-notification-critical .icon,:host.qd-notification-critical .title{color:#c70023}:host.qd-notification-positive,:host.qd-notification-success{border-color:#00813a}:host.qd-notification-positive .icon,:host.qd-notification-positive .title,:host.qd-notification-success .icon,:host.qd-notification-success .title{color:#00813a}:host .icon{position:absolute;top:.9375rem;left:1rem;font-size:1.25rem}:host .closer{position:absolute;top:1rem;right:.75rem;color:#171717;cursor:pointer;font-size:.8125rem;font-weight:600}:host .title{margin-bottom:.375rem;font-weight:500}:host .message{margin-bottom:.25rem;white-space:pre-wrap}:host .link{margin-bottom:.375rem;margin-left:.375rem;color:#069;cursor:pointer}:host .link:hover{text-decoration:underline}:host:host-context(qd-snackbar){z-index:9999!important}:host:host-context(qd-snackbar) .link{display:block;margin-top:.375rem;margin-left:0}\n"] }]
17610
+ }], propDecorators: { state: [{
17013
17611
  type: Input
17014
17612
  }], notification: [{
17015
17613
  type: Input
@@ -17047,7 +17645,7 @@ class QdNotificationsComponent {
17047
17645
  .subscribe(notifications => (this.notifications = notifications));
17048
17646
  }
17049
17647
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdNotificationsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
17050
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdNotificationsComponent, isStandalone: false, selector: "qd-notifications", inputs: { context: "context" }, ngImport: i0, template: "@for (notification of notifications; track notification) {\n<qd-notification [notification]=\"notification\"></qd-notification>\n}\n", styles: [".panel-type-control qd-notifications{display:block;width:100%;padding:1rem 1.5rem}.panel-type-info qd-notifications .qd-notification{background:#fff}qd-notifications qd-notification+qd-notification{margin-top:1rem}\n"], dependencies: [{ kind: "component", type: QdNotificationComponent, selector: "qd-notification", inputs: ["type", "notification"] }], encapsulation: i0.ViewEncapsulation.None });
17648
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdNotificationsComponent, isStandalone: false, selector: "qd-notifications", inputs: { context: "context" }, ngImport: i0, template: "@for (notification of notifications; track notification) {\n<qd-notification [notification]=\"notification\"></qd-notification>\n}\n", styles: [".panel-type-control qd-notifications{display:block;width:100%;padding:1rem 1.5rem}.panel-type-info qd-notifications .qd-notification{background:#fff}qd-notifications qd-notification+qd-notification{margin-top:1rem}\n"], dependencies: [{ kind: "component", type: QdNotificationComponent, selector: "qd-notification", inputs: ["state", "notification"] }], encapsulation: i0.ViewEncapsulation.None });
17051
17649
  }
17052
17650
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdNotificationsComponent, decorators: [{
17053
17651
  type: Component,
@@ -17067,7 +17665,7 @@ class QdNotificationsSnackbarComponent {
17067
17665
  */
17068
17666
  notifications$;
17069
17667
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdNotificationsSnackbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
17070
- 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: ["type", "notification"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }] });
17668
+ 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" }] });
17071
17669
  }
17072
17670
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdNotificationsSnackbarComponent, decorators: [{
17073
17671
  type: Component,
@@ -17363,11 +17961,11 @@ class QdMenuButtonComponent {
17363
17961
  return this.config?.actions?.some(action => !action.isHidden) ?? false;
17364
17962
  }
17365
17963
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMenuButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
17366
- 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 [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 [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", "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" }] });
17964
+ 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" }] });
17367
17965
  }
17368
17966
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdMenuButtonComponent, decorators: [{
17369
17967
  type: Component,
17370
- args: [{ selector: 'button[qdMenuButton], a[qdMenuButton]', host: { '[attr.class]': 'classes' }, standalone: false, 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 [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 [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"] }]
17968
+ args: [{ selector: 'button[qdMenuButton], a[qdMenuButton]', host: { '[attr.class]': 'classes' }, standalone: false, 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"] }]
17371
17969
  }], ctorParameters: () => [], propDecorators: { config: [{
17372
17970
  type: Input,
17373
17971
  args: ['qdMenuButton']
@@ -18510,7 +19108,7 @@ class QdContactCardMenuComponent {
18510
19108
  });
18511
19109
  }
18512
19110
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdContactCardMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
18513
- 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", "qdPopoverFlipIntoViewport"], outputs: ["opened", "closed"], exportAs: ["qdPopoverOnClick"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
19111
+ 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 });
18514
19112
  }
18515
19113
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdContactCardMenuComponent, decorators: [{
18516
19114
  type: Component,
@@ -19118,7 +19716,7 @@ class QdDialogConfirmationComponent {
19118
19716
  }
19119
19717
  addErrorNotification(key) {
19120
19718
  this.qdNotificationService.add(this.notificationContext, {
19121
- type: 'critical',
19719
+ state: 'critical',
19122
19720
  i18n: key,
19123
19721
  disableClose: true
19124
19722
  });
@@ -19201,7 +19799,7 @@ class QdPendingChangesGuardDirective {
19201
19799
  updateStatus() {
19202
19800
  if (!this.formGroup)
19203
19801
  return;
19204
- const isPristine = isEqual(this.formGroup.value, this.initialValue);
19802
+ const isPristine = qdIsDeepEqual(this.formGroup.value, this.initialValue);
19205
19803
  this.reportPendingChanges(!isPristine);
19206
19804
  if (isPristine && this.formGroup.dirty) {
19207
19805
  this.formGroup.markAsPristine();
@@ -20373,8 +20971,8 @@ class QdFileCollectorComponent {
20373
20971
  .subscribe(({ payload }) => this._viewonly$.next(payload.isViewonly)));
20374
20972
  }
20375
20973
  isConfigConsistentWithAllowedFileTypes(config) {
20376
- return (isEqual$1(config.allowedMimeTypes, this.fileTypeService.getMimeTypes(config.allowedFileTypes)) &&
20377
- isEqual$1(config.allowedFileNamePattern, this.fileTypeService.getFileNamePattern(config.allowedFileTypes)));
20974
+ return (qdIsDeepEqual(config.allowedMimeTypes, this.fileTypeService.getMimeTypes(config.allowedFileTypes)) &&
20975
+ qdIsDeepEqual(config.allowedFileNamePattern, this.fileTypeService.getFileNamePattern(config.allowedFileTypes)));
20378
20976
  }
20379
20977
  logError(message) {
20380
20978
  console.error(`Quadrel Framework | QdFileCollector - ${message}`);
@@ -20517,14 +21115,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
20517
21115
  }]
20518
21116
  }], ctorParameters: () => [] });
20519
21117
 
20520
- const getFilter = (state, filterId) => get$1(state, filterId, {});
20521
- const getNewFilter = (state, filterId) => cloneDeep(getFilter(state, filterId));
20522
- const getCategories = (state, filterId) => get$1(state, `${filterId}.categories`, []);
20523
- const getCategory = (state, filterId, categoryIndex) => get$1(state, `${filterId}.categories.${categoryIndex}`, {});
20524
- const getNewCategory = (state, filterId, categoryIndex) => cloneDeep(getCategory(state, filterId, categoryIndex));
20525
- const getItems = (state, filterId, categoryIndex) => get$1(state, `${filterId}.categories.${categoryIndex}.items`, []);
20526
- const getItem = (state, filterId, categoryIndex, itemIndex) => get$1(state, `${filterId}.categories.${categoryIndex}.items.${itemIndex}`, {});
20527
- const getNewItem = (state, filterId, categoryIndex, itemIndex) => cloneDeep(getItem(state, filterId, categoryIndex, itemIndex));
21118
+ const getFilter = (state, filterId) => state?.[filterId] ?? {};
21119
+ const getNewFilter = (state, filterId) => structuredClone(getFilter(state, filterId));
21120
+ const getCategories = (state, filterId) => state?.[filterId]?.categories ?? [];
21121
+ const getCategory = (state, filterId, categoryIndex) => state?.[filterId]?.categories?.[categoryIndex] ?? {};
21122
+ const getNewCategory = (state, filterId, categoryIndex) => structuredClone(getCategory(state, filterId, categoryIndex));
21123
+ const getItems = (state, filterId, categoryIndex) => state?.[filterId]?.categories?.[categoryIndex]?.items ?? [];
21124
+ const getItem = (state, filterId, categoryIndex, itemIndex) => state?.[filterId]?.categories?.[categoryIndex]?.items?.[itemIndex] ?? {};
21125
+ const getNewItem = (state, filterId, categoryIndex, itemIndex) => structuredClone(getItem(state, filterId, categoryIndex, itemIndex));
20528
21126
  const getFilterCategoryValue = (state, filterId, categoryIndex) => {
20529
21127
  const categories = state[filterId]?.categories ?? [];
20530
21128
  const category = categories[categoryIndex];
@@ -20816,7 +21414,7 @@ const _filterReducer = createReducer(initialState$2, on(QdFilterActions.initFilt
20816
21414
  return updateStateWithNewFilter(state, filterId, newFilter);
20817
21415
  }), on(QdFilterActions.setFilterSelection, (state, { filterId, filterSelection }) => {
20818
21416
  const newFilter = getNewFilter(state, filterId);
20819
- const newFilterSelection = cloneDeep(filterSelection);
21417
+ const newFilterSelection = structuredClone(filterSelection);
20820
21418
  validateFilterSelection(newFilterSelection, newFilter.categories, 'filter query parameter');
20821
21419
  newFilter.categories.forEach(category => {
20822
21420
  switch (category.type) {
@@ -21741,6 +22339,10 @@ class QdFilterItemMultiSelectComponent {
21741
22339
  scrollIntoView() {
21742
22340
  this.elementRef.nativeElement.scrollIntoView({ block: 'nearest' });
21743
22341
  }
22342
+ setTabbable() { }
22343
+ focus() {
22344
+ this.elementRef.nativeElement.focus();
22345
+ }
21744
22346
  clickToggle($event) {
21745
22347
  this.filterService.setItemIsActive(this.filterId, this.categoryIndex, this.itemIndex, !!$event);
21746
22348
  }
@@ -21797,11 +22399,9 @@ class QdFilterItemSingleSelectComponent {
21797
22399
  i18n;
21798
22400
  active;
21799
22401
  isActive = false;
21800
- role = 'option';
21801
- get idAttr() {
21802
- return this.optionElementId;
21803
- }
21804
- get ariaSelected() {
22402
+ isTabbable = false;
22403
+ role = 'radio';
22404
+ get ariaChecked() {
21805
22405
  return !!this.active;
21806
22406
  }
21807
22407
  get activeClass() {
@@ -21810,8 +22410,13 @@ class QdFilterItemSingleSelectComponent {
21810
22410
  get dataTestId() {
21811
22411
  return this.testId;
21812
22412
  }
22413
+ onMousedown(event) {
22414
+ event.preventDefault();
22415
+ this.focus();
22416
+ }
21813
22417
  _destroyed$ = new Subject();
21814
22418
  ngOnInit() {
22419
+ this.setTabbable(false);
21815
22420
  this.filterService
21816
22421
  .getItemById$(this.filterId, this.categoryIndex, this.itemIndex)
21817
22422
  .pipe(takeUntil$1(this._destroyed$), filter(item => !!item))
@@ -21833,6 +22438,13 @@ class QdFilterItemSingleSelectComponent {
21833
22438
  setInactiveStyles() {
21834
22439
  this.isActive = false;
21835
22440
  }
22441
+ setTabbable(isTabbable) {
22442
+ this.isTabbable = isTabbable;
22443
+ this.elementRef.nativeElement.setAttribute('tabindex', isTabbable ? '0' : '-1');
22444
+ }
22445
+ focus() {
22446
+ this.elementRef.nativeElement.focus();
22447
+ }
21836
22448
  getLabel() {
21837
22449
  return this.i18n ? this.translateService.instant(this.i18n) : '';
21838
22450
  }
@@ -21841,7 +22453,6 @@ class QdFilterItemSingleSelectComponent {
21841
22453
  }
21842
22454
  handleActive() {
21843
22455
  this.setItems();
21844
- this.close();
21845
22456
  }
21846
22457
  setItems() {
21847
22458
  this.filterService.setItemsStateSingleSelect(this.filterId, this.categoryIndex, this.itemIndex);
@@ -21850,7 +22461,7 @@ class QdFilterItemSingleSelectComponent {
21850
22461
  this.closeEventEmitter.emit();
21851
22462
  }
21852
22463
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdFilterItemSingleSelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
21853
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdFilterItemSingleSelectComponent, isStandalone: false, selector: "qd-filter-item-single-select", inputs: { filterId: "filterId", categoryIndex: "categoryIndex", itemIndex: "itemIndex", optionElementId: "optionElementId", testId: ["data-test-id", "testId"] }, outputs: { closeEventEmitter: "closeEventEmitter" }, host: { properties: { "attr.role": "this.role", "attr.id": "this.idAttr", "attr.aria-selected": "this.ariaSelected", "class.qd-filter__category-option--active": "this.activeClass", "attr.data-test-id": "this.dataTestId" }, classAttribute: "qd-filter__item-single-select" }, ngImport: i0, template: "<qd-radio-buttons\n [config]=\"{ options: [{ value: item, i18n: i18n }], viewonly: false }\"\n [value]=\"active ? item : null\"\n [isAriaHidden]=\"true\"\n (valueChange)=\"handleActive()\"\n [data-test-id]=\"testId\"\n qdRwdDisabled\n>\n</qd-radio-buttons>\n", styles: [":host{position:relative;display:flex;padding:0 .5rem;line-height:2.5rem}:host:hover,:host:focus,:host:active{background:#f5f5f5}:host ::ng-deep .qd-form-label,:host ::ng-deep qd-form-hint{display:none}:host ::ng-deep .qd-radio-buttons{overflow:clip;flex:1;margin-bottom:0;overflow-clip-margin:4px}:host ::ng-deep .qd-radio-buttons__button-section{height:1.6875rem!important;flex:auto;margin-bottom:0!important}:host ::ng-deep .qd-radio-buttons__label-section,:host ::ng-deep .qd-radio-buttons__hint-section{display:none}:host ::ng-deep .qd-radio-buttons__caption{display:block;flex:1;cursor:pointer!important;white-space:nowrap}\n"], dependencies: [{ kind: "directive", type: QdRwdDisabledDirective, selector: "[qdRwdDisabled]" }, { kind: "component", type: QdRadioButtonsComponent, selector: "qd-radio-buttons", inputs: ["value", "config", "formControlName", "data-test-id", "isAriaHidden"], outputs: ["valueChange", "clickHint", "clickReadonly", "clickViewonly"] }] });
22464
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdFilterItemSingleSelectComponent, isStandalone: false, selector: "qd-filter-item-single-select", inputs: { filterId: "filterId", categoryIndex: "categoryIndex", itemIndex: "itemIndex", optionElementId: "optionElementId", testId: ["data-test-id", "testId"] }, outputs: { closeEventEmitter: "closeEventEmitter" }, host: { listeners: { "mousedown": "onMousedown($event)" }, properties: { "attr.role": "this.role", "attr.aria-checked": "this.ariaChecked", "class.qd-filter__category-option--active": "this.activeClass", "attr.data-test-id": "this.dataTestId" }, classAttribute: "qd-filter__item-single-select" }, ngImport: i0, template: "<qd-radio-buttons\n [config]=\"{ options: [{ value: item, i18n: i18n }], viewonly: false }\"\n [value]=\"active ? item : null\"\n [isAriaHidden]=\"true\"\n (valueChange)=\"handleActive()\"\n [data-test-id]=\"testId\"\n qdRwdDisabled\n>\n</qd-radio-buttons>\n", styles: [":host{position:relative;display:flex;padding:0 .5rem;line-height:2.5rem}:host:hover,:host:focus,:host:active{background:#f5f5f5}:host ::ng-deep .qd-form-label,:host ::ng-deep qd-form-hint{display:none}:host ::ng-deep .qd-radio-buttons{overflow:clip;flex:1;margin-bottom:0;overflow-clip-margin:4px}:host ::ng-deep .qd-radio-buttons__button-section{height:1.6875rem!important;flex:auto;margin-bottom:0!important}:host ::ng-deep .qd-radio-buttons__label-section,:host ::ng-deep .qd-radio-buttons__hint-section{display:none}:host ::ng-deep .qd-radio-buttons__caption{display:block;flex:1;cursor:pointer!important;white-space:nowrap}\n"], dependencies: [{ kind: "directive", type: QdRwdDisabledDirective, selector: "[qdRwdDisabled]" }, { kind: "component", type: QdRadioButtonsComponent, selector: "qd-radio-buttons", inputs: ["value", "config", "formControlName", "data-test-id", "isAriaHidden"], outputs: ["valueChange", "clickHint", "clickReadonly", "clickViewonly"] }] });
21854
22465
  }
21855
22466
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdFilterItemSingleSelectComponent, decorators: [{
21856
22467
  type: Component,
@@ -21871,18 +22482,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
21871
22482
  }], role: [{
21872
22483
  type: HostBinding,
21873
22484
  args: ['attr.role']
21874
- }], idAttr: [{
22485
+ }], ariaChecked: [{
21875
22486
  type: HostBinding,
21876
- args: ['attr.id']
21877
- }], ariaSelected: [{
21878
- type: HostBinding,
21879
- args: ['attr.aria-selected']
22487
+ args: ['attr.aria-checked']
21880
22488
  }], activeClass: [{
21881
22489
  type: HostBinding,
21882
22490
  args: ['class.qd-filter__category-option--active']
21883
22491
  }], dataTestId: [{
21884
22492
  type: HostBinding,
21885
22493
  args: ['attr.data-test-id']
22494
+ }], onMousedown: [{
22495
+ type: HostListener,
22496
+ args: ['mousedown', ['$event']]
21886
22497
  }] } });
21887
22498
 
21888
22499
  const NAVIGATION_KEYS = new Set(['ArrowDown', 'ArrowUp', 'Home', 'End']);
@@ -21956,19 +22567,37 @@ class QdFilterItemSelectCategoryComponent {
21956
22567
  this.updateListboxAriaState();
21957
22568
  }
21958
22569
  ngAfterViewInit() {
21959
- this.keyManager = new ActiveDescendantKeyManager(this.options)
21960
- .withWrap()
21961
- .withHomeAndEnd()
21962
- .withTypeAhead();
21963
- this.keyManager.change.pipe(takeUntilDestroyed(this._destroyRef)).subscribe(() => this.updateListboxAriaState());
22570
+ this.keyManager = this.createKeyManager();
22571
+ this.keyManager.change.pipe(takeUntilDestroyed(this._destroyRef)).subscribe(() => this.onActiveOptionChanged());
21964
22572
  this._destroyRef.onDestroy(() => this.options.destroy());
21965
22573
  }
22574
+ get isRadioGroup() {
22575
+ return this.type === 'singleSelect';
22576
+ }
22577
+ createKeyManager() {
22578
+ const manager = this.isRadioGroup
22579
+ ? new FocusKeyManager(this.options)
22580
+ : new ActiveDescendantKeyManager(this.options);
22581
+ return manager.withWrap().withHomeAndEnd().withTypeAhead();
22582
+ }
22583
+ onActiveOptionChanged() {
22584
+ this.updateListboxAriaState();
22585
+ if (!this.isRadioGroup)
22586
+ return;
22587
+ this.moveTabStopToActiveOption();
22588
+ }
22589
+ moveTabStopToActiveOption() {
22590
+ const active = this.keyManager?.activeItem;
22591
+ this.registeredOptions.forEach(option => option.setTabbable(option === active));
22592
+ }
21966
22593
  registerOption(option) {
21967
22594
  if (this.registeredOptions.includes(option))
21968
22595
  return;
21969
22596
  this.registeredOptions.push(option);
21970
22597
  this.registeredOptions.sort((a, b) => this.displayOrder(a) - this.displayOrder(b));
21971
22598
  this.publishOptions();
22599
+ if (this.isRadioGroup)
22600
+ this.ensureTabStop();
21972
22601
  }
21973
22602
  unregisterOption(option) {
21974
22603
  const index = this.registeredOptions.indexOf(option);
@@ -21976,8 +22605,16 @@ class QdFilterItemSelectCategoryComponent {
21976
22605
  return;
21977
22606
  this.registeredOptions.splice(index, 1);
21978
22607
  if (this.keyManager?.activeItem === option)
21979
- this.keyManager.setActiveItem(-1);
22608
+ this.keyManager.updateActiveItem(-1);
21980
22609
  this.publishOptions();
22610
+ if (this.isRadioGroup)
22611
+ this.ensureTabStop();
22612
+ }
22613
+ ensureTabStop() {
22614
+ if (this.keyManager?.activeItem || !this.options.length)
22615
+ return;
22616
+ this.keyManager?.updateActiveItem(this.initialActiveOption());
22617
+ this.moveTabStopToActiveOption();
21981
22618
  }
21982
22619
  publishOptions() {
21983
22620
  this.options.reset(this.registeredOptions);
@@ -22003,11 +22640,10 @@ class QdFilterItemSelectCategoryComponent {
22003
22640
  this.updateListboxAriaState();
22004
22641
  }
22005
22642
  activateOptionIfListboxFocused() {
22006
- if (this.type !== 'singleSelect')
22643
+ if (!this.isRadioGroup || !this.options.length)
22007
22644
  return;
22008
- const focusedElement = this.triggerRef?.nativeElement.ownerDocument.activeElement;
22009
- if (focusedElement?.id === this.listboxId)
22010
- this.ensureActiveOption();
22645
+ this.keyManager?.updateActiveItem(this.initialActiveOption());
22646
+ this.moveTabStopToActiveOption();
22011
22647
  }
22012
22648
  onLayerClosed() {
22013
22649
  this.open = false;
@@ -22022,6 +22658,7 @@ class QdFilterItemSelectCategoryComponent {
22022
22658
  return;
22023
22659
  if (event.key === 'Escape') {
22024
22660
  event.preventDefault();
22661
+ event.stopPropagation();
22025
22662
  this.closeAndRefocus();
22026
22663
  return;
22027
22664
  }
@@ -22036,14 +22673,23 @@ class QdFilterItemSelectCategoryComponent {
22036
22673
  this.ensureActiveOption();
22037
22674
  this.keyManager?.onKeydown(event);
22038
22675
  this.keyManager?.activeItem?.scrollIntoView();
22676
+ if (this.isRadioGroup)
22677
+ this.applySingleSelection();
22039
22678
  }
22040
22679
  }
22680
+ onFlyoutEscape() {
22681
+ if (!this.open)
22682
+ return;
22683
+ this.closeAndRefocus();
22684
+ }
22041
22685
  onListboxFocus() {
22042
22686
  if (!this.open)
22043
22687
  return;
22044
22688
  this.ensureActiveOption();
22045
22689
  }
22046
22690
  onListboxBlur() {
22691
+ if (this.isRadioGroup)
22692
+ return;
22047
22693
  this.keyManager?.setActiveItem(-1);
22048
22694
  }
22049
22695
  onFlyoutFocusout(event) {
@@ -22075,8 +22721,13 @@ class QdFilterItemSelectCategoryComponent {
22075
22721
  this.filterService.setItemIsActive(this.filterId, this.categoryIndex, active.itemIndex, !item.active);
22076
22722
  return;
22077
22723
  }
22724
+ this.applySingleSelection();
22725
+ }
22726
+ applySingleSelection() {
22727
+ const active = this.keyManager?.activeItem;
22728
+ if (!active || active.active)
22729
+ return;
22078
22730
  this.filterService.setItemsStateSingleSelect(this.filterId, this.categoryIndex, active.itemIndex);
22079
- this.closeAndRefocus();
22080
22731
  }
22081
22732
  closeAndRefocus() {
22082
22733
  this.closeLayer();
@@ -22168,7 +22819,7 @@ class QdFilterItemSelectCategoryComponent {
22168
22819
  provide: QD_FILTER_LISTBOX_HOST,
22169
22820
  useExisting: forwardRef(() => QdFilterItemSelectCategoryComponent)
22170
22821
  }
22171
- ], 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 aria-haspopup=\"listbox\"\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 [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\n [state]=\"'filter'\"\n [close]=\"true\"\n (closeClickEmitter)=\"clearAll()\"\n [data-test-id]=\"testId + '-selected-chip-count'\"\n >{{ activeItemCount }}</qd-chip\n >\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)\">\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-listbox\"\n role=\"listbox\"\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 (item of items; track item; let itemIndex = $index) { @if (!item.hidden) {\n <qd-filter-item-single-select\n [categoryIndex]=\"categoryIndex\"\n [itemIndex]=\"itemIndex\"\n [optionElementId]=\"optionIds[itemIndex]\"\n (closeEventEmitter)=\"closeLayer()\"\n [filterId]=\"filterId\"\n [data-test-id]=\"testId + '-item-' + itemIndex + '-' + item.item\"\n >\n </qd-filter-item-single-select>\n } } @if (hasNoVisibleItems) {\n <ng-container [ngTemplateOutlet]=\"emptyState\"></ng-container>\n }\n </ul>\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 [state]=\"'filter'\"\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{padding:0;margin:0;list-style:none}::ng-deep .qd-filter__category-listbox:focus,::ng-deep .qd-filter__category-listbox:focus-visible{outline:none}::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", "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 });
22822
+ ], 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\n [state]=\"'filter'\"\n [close]=\"true\"\n (closeClickEmitter)=\"clearAll()\"\n [data-test-id]=\"testId + '-selected-chip-count'\"\n >{{ activeItemCount }}</qd-chip\n >\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 [state]=\"'filter'\"\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 });
22172
22823
  }
22173
22824
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdFilterItemSelectCategoryComponent, decorators: [{
22174
22825
  type: Component,
@@ -22177,7 +22828,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
22177
22828
  provide: QD_FILTER_LISTBOX_HOST,
22178
22829
  useExisting: forwardRef(() => QdFilterItemSelectCategoryComponent)
22179
22830
  }
22180
- ], standalone: false, template: "@if (showSelectButton$ | async) {\n<div\n #triggerRef\n [class]=\"buttonClassName\"\n tabindex=\"0\"\n role=\"button\"\n aria-haspopup=\"listbox\"\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 [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\n [state]=\"'filter'\"\n [close]=\"true\"\n (closeClickEmitter)=\"clearAll()\"\n [data-test-id]=\"testId + '-selected-chip-count'\"\n >{{ activeItemCount }}</qd-chip\n >\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)\">\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-listbox\"\n role=\"listbox\"\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 (item of items; track item; let itemIndex = $index) { @if (!item.hidden) {\n <qd-filter-item-single-select\n [categoryIndex]=\"categoryIndex\"\n [itemIndex]=\"itemIndex\"\n [optionElementId]=\"optionIds[itemIndex]\"\n (closeEventEmitter)=\"closeLayer()\"\n [filterId]=\"filterId\"\n [data-test-id]=\"testId + '-item-' + itemIndex + '-' + item.item\"\n >\n </qd-filter-item-single-select>\n } } @if (hasNoVisibleItems) {\n <ng-container [ngTemplateOutlet]=\"emptyState\"></ng-container>\n }\n </ul>\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 [state]=\"'filter'\"\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{padding:0;margin:0;list-style:none}::ng-deep .qd-filter__category-listbox:focus,::ng-deep .qd-filter__category-listbox:focus-visible{outline:none}::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"] }]
22831
+ ], standalone: false, template: "@if (showSelectButton$ | async) {\n<div\n #triggerRef\n [class]=\"buttonClassName\"\n tabindex=\"0\"\n role=\"button\"\n [attr.aria-haspopup]=\"type === 'multiSelect' ? 'listbox' : null\"\n [attr.aria-expanded]=\"open\"\n [attr.aria-label]=\"i18n | translate\"\n [attr.aria-controls]=\"triggerAriaControls\"\n [qdPopoverOnClick]=\"filterLayer\"\n [qdPopoverCloseStrategy]=\"'onOutsideClick'\"\n [qdPopoverStopPropagation]=\"true\"\n [qdPopoverEnableKeyControl]=\"true\"\n [qdPopoverRestoreFocus]=\"true\"\n [qdPopoverMaxHeight]=\"maxFlyoutHeight\"\n qdPopoverPlacement=\"bottom-start\"\n [qdPopoverOffsetY]=\"-1\"\n (opened)=\"onLayerOpened()\"\n (closed)=\"onLayerClosed()\"\n [attr.data-test-id]=\"testId + '-select-button'\"\n>\n @if (!open) {\n <qd-icon\n [icon]=\"'ctrlDown'\"\n [class]=\"'qd-filter__category-icon qd-filter__category-icon--closed'\"\n [attr.data-test-id]=\"testId + '-closed'\"\n ></qd-icon>\n } @if (open) {\n <qd-icon\n [icon]=\"'ctrlTop'\"\n [class]=\"'qd-filter__category-icon qd-filter__category-icon--open'\"\n [attr.data-test-id]=\"testId + '-opened'\"\n ></qd-icon>\n }\n\n <div class=\"qd-filter__category-button-caption\">\n <span>\n {{ i18n | translate }}\n </span>\n </div>\n\n @if ((isMobile$ | async) && type === 'multiSelect') { @if (activeItemCount > 0) {\n <qd-chip\n [state]=\"'filter'\"\n [close]=\"true\"\n (closeClickEmitter)=\"clearAll()\"\n [data-test-id]=\"testId + '-selected-chip-count'\"\n >{{ activeItemCount }}</qd-chip\n >\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 [state]=\"'filter'\"\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"] }]
22181
22832
  }], propDecorators: { filterId: [{
22182
22833
  type: Input
22183
22834
  }], categoryIndex: [{
@@ -22384,7 +23035,7 @@ class QdFilterRouterConnectorService {
22384
23035
  const target = filterUrlParameter || undefined;
22385
23036
  if (this._hub.snapshotQueryParam(FILTER_PARAM_NAME) === target)
22386
23037
  return;
22387
- this._hub.write({ [FILTER_PARAM_NAME]: target }, { replaceUrl: false });
23038
+ this._hub.write({ [FILTER_PARAM_NAME]: target }, { replaceUrl: true });
22388
23039
  });
22389
23040
  }
22390
23041
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdFilterRouterConnectorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
@@ -22432,7 +23083,7 @@ class QdDependentFiltersService {
22432
23083
  }
22433
23084
  resolveItemsWhenDependsOnCategoriesChange(dependentCategory) {
22434
23085
  const dependentCategoryIndex = this.categories.indexOf(dependentCategory);
22435
- return combineLatest(dependentCategory.dependsOn.map(dependsOnCategory => this.filterService.getCategoryById$(this.filterId, this.categories.findIndex(({ category }) => category === dependsOnCategory)))).pipe(distinctUntilChanged(isEqual), switchMap(parentCategories => {
23086
+ return combineLatest(dependentCategory.dependsOn.map(dependsOnCategory => this.filterService.getCategoryById$(this.filterId, this.categories.findIndex(({ category }) => category === dependsOnCategory)))).pipe(distinctUntilChanged(qdIsDeepEqual), switchMap(parentCategories => {
22436
23087
  const allParentsActive = parentCategories.every((parent) => Array.isArray(parent.items) && parent.items.some(item => item.active));
22437
23088
  if (!allParentsActive) {
22438
23089
  this.filterService.setItemsLoading(this.filterId, dependentCategoryIndex, false);
@@ -22729,7 +23380,7 @@ class QdFilterComponent {
22729
23380
  });
22730
23381
  this._filterValueSubscription = this.filterService
22731
23382
  .getCurrentPostBody(this.filterId)
22732
- .pipe(distinctUntilChanged(_.isEqual), tap$1(() => {
23383
+ .pipe(distinctUntilChanged(qdIsDeepEqual), tap$1(() => {
22733
23384
  if (this.isInstantFiltering)
22734
23385
  this.emitOutputs();
22735
23386
  }))
@@ -22745,18 +23396,30 @@ class QdFilterComponent {
22745
23396
  initResetButtonActivation() {
22746
23397
  this.disableResetButton$ = combineLatest([
22747
23398
  this.filterService.selectHasActiveCategory$(this.filterId),
22748
- this.filterService
22749
- .selectFilterDataById$(this.filterId)
22750
- .pipe(map(data => data.map(entry => entry.items).map(items => items.map(item => item).map(item => _.omit(item, ['hidden']))))),
23399
+ this.filterService.selectFilterDataById$(this.filterId).pipe(map(data => this.comparableItemsOf(data))),
22751
23400
  this.hasPreselection$
22752
23401
  ]).pipe(map(([hasActiveCategory, items, hasPreselection]) => {
22753
- if (hasPreselection) {
22754
- const categories = _.flatten(this.filterData.categories.map(category => category.items.map(item => ({ active: false, ...item })))).filter(category => category.item);
22755
- return _.isEqual(_.flatten(items).filter(item => item.item), categories);
22756
- }
22757
- return !hasActiveCategory;
23402
+ if (!hasPreselection)
23403
+ return !hasActiveCategory;
23404
+ return qdIsDeepEqual(items, this.preselectedItems);
22758
23405
  }));
22759
23406
  }
23407
+ comparableItemsOf(categories) {
23408
+ return categories
23409
+ .flatMap(category => category.items)
23410
+ .filter(item => item.item)
23411
+ .map(item => {
23412
+ const comparableItem = { ...item };
23413
+ delete comparableItem.hidden;
23414
+ return comparableItem;
23415
+ });
23416
+ }
23417
+ get preselectedItems() {
23418
+ return this.filterData.categories
23419
+ .flatMap(category => category.items)
23420
+ .map(item => ({ active: false, ...item }))
23421
+ .filter(item => item.item);
23422
+ }
22760
23423
  get hasPreselectionAfterRouterConnection$() {
22761
23424
  return this.filterRouterConnectorService.connectFilterWithRouter(this).pipe(tap$1(() => this._filterConnectedWithRouterSubject.next()), switchMap(() => this.filterService.selectHasActiveCategory$(this.filterId)), take(1));
22762
23425
  }
@@ -23895,10 +24558,10 @@ class QdSearchComponent {
23895
24558
  return from(this.waitForConfigData()).pipe(switchMap(() => this._searchConnectedWithRouter$), delay(1), switchMap(() => merge(this.searchStoreService.selectSearchDataById$(this.searchId).pipe(take(1), delay(1)), this.searchService.searchPostBody$)));
23896
24559
  }
23897
24560
  hasPhraseChanged(changes) {
23898
- return !isEqual$1(changes['configData'].previousValue?.phrase, changes['configData'].currentValue?.phrase);
24561
+ return !qdIsDeepEqual(changes['configData'].previousValue?.phrase, changes['configData'].currentValue?.phrase);
23899
24562
  }
23900
24563
  hasPreselectOptionsListChanged(changes) {
23901
- return !isEqual$1(changes['configData'].previousValue?.preSelect?.optionsList, changes['configData'].currentValue?.preSelect?.optionsList);
24564
+ return !qdIsDeepEqual(changes['configData'].previousValue?.preSelect?.optionsList, changes['configData'].currentValue?.preSelect?.optionsList);
23902
24565
  }
23903
24566
  handleClear() {
23904
24567
  this.search = '';
@@ -24656,7 +25319,7 @@ class QdTableResolverService {
24656
25319
  this.subscribeToLangChanges();
24657
25320
  this.tableStoreService
24658
25321
  .selectDataResolutionCriteria$()
24659
- .pipe(takeUntil(this._destroyed$), distinctUntilChanged(isEqual$1), filter((resolutionCriteria) => !!resolutionCriteria && this.shouldDataBeResolved(resolutionCriteria)), map(resolutionCriteria => this.buildCriteriaParams(resolutionCriteria)), switchMap(resolutionParams => this.resolveAndApply(resolver, resolutionParams)))
25322
+ .pipe(takeUntil(this._destroyed$), distinctUntilChanged(qdIsDeepEqual), filter((resolutionCriteria) => !!resolutionCriteria && this.shouldDataBeResolved(resolutionCriteria)), map(resolutionCriteria => this.buildCriteriaParams(resolutionCriteria)), switchMap(resolutionParams => this.resolveAndApply(resolver, resolutionParams)))
24660
25323
  .subscribe();
24661
25324
  }
24662
25325
  refresh(resolverOptions = {}) {
@@ -24777,12 +25440,12 @@ class QdTableResponsiveRowService {
24777
25440
  }), {});
24778
25441
  }
24779
25442
  isMainColumn(column) {
24780
- return this.mainColumn === column || isObject(column);
25443
+ return this.mainColumn === column || (typeof column === 'object' && column !== null);
24781
25444
  }
24782
25445
  isLastColumn(column) {
24783
25446
  const columnsDefinitions = this._columnsDefinitions;
24784
25447
  const lastColumnDefinition = columnsDefinitions[columnsDefinitions.length - 1];
24785
- return isEqual$1(lastColumnDefinition, column) || lastColumnDefinition.includes?.(column) || false;
25448
+ return qdIsDeepEqual(lastColumnDefinition, column) || lastColumnDefinition.includes?.(column) || false;
24786
25449
  }
24787
25450
  updateDefinitions() {
24788
25451
  this._headCellDefinitionsSubject.next(this.getHeadCellDefinitions());
@@ -25644,7 +26307,7 @@ class QdTableRowActionsSecondaryMenuComponent {
25644
26307
  };
25645
26308
  }
25646
26309
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdTableRowActionsSecondaryMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
25647
- 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", "qdPopoverFlipIntoViewport"], outputs: ["opened", "closed"], exportAs: ["qdPopoverOnClick"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
26310
+ 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 });
25648
26311
  }
25649
26312
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdTableRowActionsSecondaryMenuComponent, decorators: [{
25650
26313
  type: Component,
@@ -26056,6 +26719,9 @@ class QdTableHeadComponent {
26056
26719
  isLastColumn(column) {
26057
26720
  return this.responsiveRowService.isLastColumn(column);
26058
26721
  }
26722
+ isRightAligned(columnName) {
26723
+ return this.config.columns.find(column => column.column === columnName)?.type === 'integer';
26724
+ }
26059
26725
  isHeadRendered$(i) {
26060
26726
  return this.responsiveRowService.headCellDefinitions$.pipe(map$1(headCellDefinitions => !headCellDefinitions.includes(i)));
26061
26727
  }
@@ -26075,11 +26741,11 @@ class QdTableHeadComponent {
26075
26741
  return this.config.columns.find(column => column.column === columnName)?.tooltip;
26076
26742
  }
26077
26743
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdTableHeadComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
26078
- 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 '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%}\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 });
26744
+ 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 });
26079
26745
  }
26080
26746
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdTableHeadComponent, decorators: [{
26081
26747
  type: Component,
26082
- args: [{ selector: '[qd-table-head]', host: { class: 'qd-table__head' }, changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, 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 '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%}\n"] }]
26748
+ args: [{ selector: '[qd-table-head]', host: { class: 'qd-table__head' }, changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, 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"] }]
26083
26749
  }], propDecorators: { config: [{
26084
26750
  type: Input
26085
26751
  }], testId: [{
@@ -27466,6 +28132,11 @@ function qdTableQueryParameterize(props) {
27466
28132
  ]);
27467
28133
  }
27468
28134
 
28135
+ const omitKey = (source, key) => {
28136
+ const copy = { ...source };
28137
+ delete copy[key];
28138
+ return copy;
28139
+ };
27469
28140
  const updateStateWithNewTable = (state, tableId, newTable) => ({
27470
28141
  ...state,
27471
28142
  [tableId]: newTable
@@ -27492,7 +28163,7 @@ const unselectRow = (state, tableId, rowIdentifier) => {
27492
28163
  return updateStateWithNewTable(state, tableId, {
27493
28164
  ...tableState,
27494
28165
  selectedRows: (tableState.selectedRows ?? []).filter(id => id !== rowIdentifier),
27495
- selectedRowsData: omit(tableState.selectedRowsData ?? {}, String(rowIdentifier))
28166
+ selectedRowsData: omitKey(tableState.selectedRowsData ?? {}, String(rowIdentifier))
27496
28167
  });
27497
28168
  };
27498
28169
  const clearAllSelectedRows = (state, tableId) => updateStateWithNewTable(state, tableId, {
@@ -27618,7 +28289,7 @@ const _tableReducer = createReducer(initialState, on(QdTableActions.initTableSta
27618
28289
  return updateTableStateSelectedRows(state, tableId, selectedRows);
27619
28290
  }),
27620
28291
  // TODO: Remove QdTreeData references from table — Tree has been extracted into its own component
27621
- on(QdTableActions.updateTableStateData, (state, { tableId, data }) => updateTableStateData(state, tableId, data)), on(QdTableActions.selectRow, (state, { tableId, rowIdentifier, rowData }) => selectRow(state, tableId, rowIdentifier, rowData)), on(QdTableActions.selectSingleRow, (state, { tableId, rowIdentifier, rowData }) => selectSingleRow(state, tableId, rowIdentifier, rowData)), on(QdTableActions.unselectRow, (state, { tableId, rowIdentifier }) => unselectRow(state, tableId, rowIdentifier)), on(QdTableActions.clearAllSelectedRows, (state, { tableId }) => clearAllSelectedRows(state, tableId)), on(QdTableActions.refreshSelectedRowsData, (state, { tableId, visibleRowsData }) => refreshSelectedRowsData(state, tableId, visibleRowsData)), on(QdTableActions.updateTableStateRecentSecondaryAction, (state, { tableId, recentSecondaryAction: recentSecondaryAction }) => updateTableStateRecentSecondaryAction(state, tableId, recentSecondaryAction)), on(QdTableActions.setupPagination, (state, { tableId, pageSize }) => setupPagination(state, tableId, pageSize)), on(QdTableActions.setPage, (state, { tableId, pageIndex, pageSize, totalCount, data }) => setPage(state, tableId, pageIndex, pageSize, totalCount, data)), on(QdTableActions.setPageSize, (state, { tableId, pageSize }) => setPageSize(state, tableId, pageSize)), on(QdTableActions.setPageParams, (state, { tableId, pageIndex, pageSize, totalCount }) => setPageParams(state, tableId, pageIndex, pageSize, totalCount)), on(QdTableActions.setupSort, (state, { tableId, columns }) => setupSort(state, tableId, columns)), on(QdTableActions.setSort, (state, { tableId, column, direction }) => setSort(state, tableId, column, direction)), on(QdTableActions.updateSort, (state, { tableId, column, direction }) => updateSort(state, tableId, column, direction)), on(QdTableActions.setRequestState, (state, { tableId, requestState }) => setRequestState(state, tableId, requestState)), on(QdTableActions.connect, (state, { tableId, connectorName, connectorCriteria, connectorState }) => connect(state, tableId, connectorCriteria, connectorName, connectorState)), on(QdTableActions.resetConnectorStates, (state, { tableId }) => resetConnectorStates(state, tableId)), on(QdTableActions.setLastVisitedRow, (state, { tableId, rowIdentifier }) => setLastVisitedRow(state, tableId, rowIdentifier)), on(QdTableActions.clearLastVisitedRow, (state, { tableId }) => clearLastVisitedRow(state, tableId)), on(QdTableActions.deleteTableState, (state, { tableId }) => omit({ ...state }, tableId)));
28292
+ on(QdTableActions.updateTableStateData, (state, { tableId, data }) => updateTableStateData(state, tableId, data)), on(QdTableActions.selectRow, (state, { tableId, rowIdentifier, rowData }) => selectRow(state, tableId, rowIdentifier, rowData)), on(QdTableActions.selectSingleRow, (state, { tableId, rowIdentifier, rowData }) => selectSingleRow(state, tableId, rowIdentifier, rowData)), on(QdTableActions.unselectRow, (state, { tableId, rowIdentifier }) => unselectRow(state, tableId, rowIdentifier)), on(QdTableActions.clearAllSelectedRows, (state, { tableId }) => clearAllSelectedRows(state, tableId)), on(QdTableActions.refreshSelectedRowsData, (state, { tableId, visibleRowsData }) => refreshSelectedRowsData(state, tableId, visibleRowsData)), on(QdTableActions.updateTableStateRecentSecondaryAction, (state, { tableId, recentSecondaryAction: recentSecondaryAction }) => updateTableStateRecentSecondaryAction(state, tableId, recentSecondaryAction)), on(QdTableActions.setupPagination, (state, { tableId, pageSize }) => setupPagination(state, tableId, pageSize)), on(QdTableActions.setPage, (state, { tableId, pageIndex, pageSize, totalCount, data }) => setPage(state, tableId, pageIndex, pageSize, totalCount, data)), on(QdTableActions.setPageSize, (state, { tableId, pageSize }) => setPageSize(state, tableId, pageSize)), on(QdTableActions.setPageParams, (state, { tableId, pageIndex, pageSize, totalCount }) => setPageParams(state, tableId, pageIndex, pageSize, totalCount)), on(QdTableActions.setupSort, (state, { tableId, columns }) => setupSort(state, tableId, columns)), on(QdTableActions.setSort, (state, { tableId, column, direction }) => setSort(state, tableId, column, direction)), on(QdTableActions.updateSort, (state, { tableId, column, direction }) => updateSort(state, tableId, column, direction)), on(QdTableActions.setRequestState, (state, { tableId, requestState }) => setRequestState(state, tableId, requestState)), on(QdTableActions.connect, (state, { tableId, connectorName, connectorCriteria, connectorState }) => connect(state, tableId, connectorCriteria, connectorName, connectorState)), on(QdTableActions.resetConnectorStates, (state, { tableId }) => resetConnectorStates(state, tableId)), on(QdTableActions.setLastVisitedRow, (state, { tableId, rowIdentifier }) => setLastVisitedRow(state, tableId, rowIdentifier)), on(QdTableActions.clearLastVisitedRow, (state, { tableId }) => clearLastVisitedRow(state, tableId)), on(QdTableActions.deleteTableState, (state, { tableId }) => omitKey(state, tableId)));
27622
28293
  function tableReducer(state, action) {
27623
28294
  return _tableReducer(state, action);
27624
28295
  }
@@ -27839,7 +28510,7 @@ class QdTreeRowsService {
27839
28510
  return this.groupService.groupColumn;
27840
28511
  }
27841
28512
  initializeRows(data) {
27842
- const rows = cloneDeep(data);
28513
+ const rows = structuredClone(data);
27843
28514
  let treeRows = this.splitRowsByTree(rows);
27844
28515
  if (this.config?.group?.aggregation) {
27845
28516
  treeRows = this.aggregateRows(treeRows);
@@ -27900,7 +28571,7 @@ class QdTreeRowsService {
27900
28571
  return rows[0];
27901
28572
  }
27902
28573
  aggregateRows(data) {
27903
- const rows = cloneDeep(data);
28574
+ const rows = structuredClone(data);
27904
28575
  const sameRowsGroups = this.groupArray(rows, this.areRowsEqual.bind(this));
27905
28576
  return sameRowsGroups.map(sameRows => {
27906
28577
  const firstSameRow = sameRows[0];
@@ -27942,10 +28613,10 @@ class QdTreeRowsService {
27942
28613
  return sameItemsGroups;
27943
28614
  }
27944
28615
  areRowsEqual(row, comparedRow) {
27945
- return this.getRowsProperties([row, comparedRow]).every(property => isEqual(row[property], comparedRow[property]));
28616
+ return this.getRowsProperties([row, comparedRow]).every(property => qdIsDeepEqual(row[property], comparedRow[property]));
27946
28617
  }
27947
28618
  getRowsProperties(rows) {
27948
- return union(rows.map(row => Object.keys(row)).flat()).filter(property => property !== 'nestedRows' && property !== 'full');
28619
+ return [...new Set(rows.map(row => Object.keys(row)).flat())].filter(property => property !== 'nestedRows' && property !== 'full');
27949
28620
  }
27950
28621
  sortRowsByNumbers(rows) {
27951
28622
  rows.forEach(row => {
@@ -27954,7 +28625,7 @@ class QdTreeRowsService {
27954
28625
  }
27955
28626
  });
27956
28627
  const properties = this.getRowsProperties(rows);
27957
- if (properties.length === 1 && rows.every(row => isNumber$1(row[properties[0]]))) {
28628
+ if (properties.length === 1 && rows.every(row => typeof row[properties[0]] === 'number')) {
27958
28629
  rows.sort((rowA, rowB) => rowA[properties[0]] - rowB[properties[0]]);
27959
28630
  }
27960
28631
  }
@@ -28023,7 +28694,7 @@ class QdTreeRowActionsSecondaryMenuComponent {
28023
28694
  .subscribe(({ payload }) => this._viewonly$.next(payload.isViewonly));
28024
28695
  }
28025
28696
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdTreeRowActionsSecondaryMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
28026
- 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", "qdPopoverFlipIntoViewport"], outputs: ["opened", "closed"], exportAs: ["qdPopoverOnClick"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
28697
+ 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 });
28027
28698
  }
28028
28699
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdTreeRowActionsSecondaryMenuComponent, decorators: [{
28029
28700
  type: Component,
@@ -28959,22 +29630,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
28959
29630
  class QdCriticalityFacetComponent {
28960
29631
  facet;
28961
29632
  data;
28962
- get level() {
28963
- if (!this.data[this.facet.name])
28964
- return 1;
28965
- return this.data[this.facet.name].level;
29633
+ level = 1;
29634
+ state = 'positive';
29635
+ ngOnChanges() {
29636
+ this.level = this.resolveLevel();
29637
+ this.state = this.resolveState();
29638
+ }
29639
+ resolveLevel() {
29640
+ const value = this.facet && this.data ? this.data[this.facet.name] : undefined;
29641
+ return value?.level ?? 1;
28966
29642
  }
28967
- get type() {
28968
- if (!this.data[this.facet.name])
28969
- return 'success';
28970
- return this.data[this.facet.name].type;
29643
+ resolveState() {
29644
+ const value = this.facet && this.data ? this.data[this.facet.name] : undefined;
29645
+ return value?.state ?? 'positive';
28971
29646
  }
28972
29647
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdCriticalityFacetComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
28973
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdCriticalityFacetComponent, isStandalone: false, selector: "qd-criticality-facet", inputs: { facet: "facet", data: "data" }, ngImport: i0, template: "@if (this.data[this.facet.name]) {\n<qd-status-indicator [level]=\"level\" [type]=\"type\"></qd-status-indicator>\n}\n", styles: [":host{position:relative;top:-.1875rem}\n"], dependencies: [{ kind: "component", type: QdStatusIndicatorComponent, selector: "qd-status-indicator", inputs: ["type", "level", "caption", "data-test-id"] }] });
29648
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdCriticalityFacetComponent, isStandalone: false, selector: "qd-criticality-facet", inputs: { facet: "facet", data: "data" }, usesOnChanges: true, ngImport: i0, template: "@if (this.data[this.facet.name]) {\n<qd-status-indicator [level]=\"level\" [state]=\"state\"></qd-status-indicator>\n}\n", styles: [":host{position:relative;top:-.1875rem}\n"], dependencies: [{ kind: "component", type: QdStatusIndicatorComponent, selector: "qd-status-indicator", inputs: ["state", "level", "caption", "data-test-id"] }] });
28974
29649
  }
28975
29650
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdCriticalityFacetComponent, decorators: [{
28976
29651
  type: Component,
28977
- args: [{ selector: 'qd-criticality-facet', standalone: false, template: "@if (this.data[this.facet.name]) {\n<qd-status-indicator [level]=\"level\" [type]=\"type\"></qd-status-indicator>\n}\n", styles: [":host{position:relative;top:-.1875rem}\n"] }]
29652
+ args: [{ selector: 'qd-criticality-facet', standalone: false, template: "@if (this.data[this.facet.name]) {\n<qd-status-indicator [level]=\"level\" [state]=\"state\"></qd-status-indicator>\n}\n", styles: [":host{position:relative;top:-.1875rem}\n"] }]
28978
29653
  }], propDecorators: { facet: [{
28979
29654
  type: Input
28980
29655
  }], data: [{
@@ -29588,7 +30263,7 @@ class QdFormGroupManagerService {
29588
30263
  const snapshot = this._formGroupsSnapshot.get(key);
29589
30264
  if (snapshot)
29590
30265
  this.adoptRebuildInGroup(key, fg, snapshot);
29591
- return snapshot ? !isEqual$1(fg.getRawValue(), snapshot) : true;
30266
+ return snapshot ? !qdIsDeepEqual(fg.getRawValue(), snapshot) : true;
29592
30267
  }
29593
30268
  adoptFrameworkRebuild() {
29594
30269
  this._formGroups.forEach((fg, key) => {
@@ -29624,7 +30299,7 @@ class QdFormGroupManagerService {
29624
30299
  return;
29625
30300
  const snapshotArray = snapshot[name];
29626
30301
  const currentArray = control.getRawValue();
29627
- if (currentArray.length === snapshotArray.length && !isEqual$1(currentArray, snapshotArray))
30302
+ if (currentArray.length === snapshotArray.length && !qdIsDeepEqual(currentArray, snapshotArray))
29628
30303
  snapshot[name] = currentArray;
29629
30304
  }
29630
30305
  adoptRebuiltGroup(group, snapshot, name, isNewKey, tracked, path) {
@@ -30197,7 +30872,7 @@ class QdPageObjectHeaderComponent {
30197
30872
  });
30198
30873
  }
30199
30874
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdPageObjectHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
30200
- 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=\"none\" [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", "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 });
30875
+ 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=\"none\" [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 });
30201
30876
  }
30202
30877
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdPageObjectHeaderComponent, decorators: [{
30203
30878
  type: Component,
@@ -30755,7 +31430,7 @@ class QdPageTabHeaderComponent {
30755
31430
  */
30756
31431
  testId;
30757
31432
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdPageTabHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
30758
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdPageTabHeaderComponent, isStandalone: true, selector: "qd-page-tab-header", inputs: { state: "state", label: "label", counters: "counters", index: "index", isSelected: "isSelected", isDisabled: "isDisabled", testId: ["data-test-id", "testId"] }, host: { attributes: { "role": "tab" }, properties: { "attr.data-test-id": "testId", "class.qd-tab-current": "isSelected && !isDisabled", "class.qd-tab-disabled": "isDisabled", "class.qd-tab-done": "state === 'done'", "class.qd-tab-edit": "state === 'edit'", "class.qd-tab-error": "state === 'error'" } }, ngImport: i0, template: "<span class=\"qd-tab-caption\">\n {{ label }}\n <qd-page-tab-header-counters [counters]=\"counters\" [data-test-id]=\"testId + '-counters'\" />\n</span>\n", styles: [":host{position:relative;display:inline-flex;height:2.5rem;padding:.625rem 0;cursor:pointer;color:#757575;font-size:14px;font-weight:400;line-height:18px}:host .qd-tab-caption{font-weight:500;white-space:nowrap}:host:hover,:host.qd-tab-current{color:#069}:host.qd-tab-current .qd-tab-caption{position:relative}:host.qd-tab-current .qd-tab-caption:after{position:absolute;bottom:-.6875rem;left:0;display:inline-block;width:100%;height:.25rem;background-color:#069;content:\"\"}:host.qd-tab-done,:host.qd-tab-edit{color:#171717}:host.qd-tab-error{color:#c70023}:host.qd-tab-disabled{color:#b4b4b4;cursor:default}:host.qd-tab-disabled:hover{color:#b4b4b4}\n"], dependencies: [{ kind: "component", type: QdPageTabHeaderCountersComponent, selector: "qd-page-tab-header-counters", inputs: ["counters", "data-test-id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
31433
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdPageTabHeaderComponent, isStandalone: true, selector: "qd-page-tab-header", inputs: { state: "state", label: "label", counters: "counters", index: "index", isSelected: "isSelected", isDisabled: "isDisabled", testId: ["data-test-id", "testId"] }, host: { attributes: { "role": "tab" }, properties: { "attr.data-test-id": "testId", "class.qd-tab-current": "isSelected && !isDisabled", "class.qd-tab-disabled": "isDisabled", "class.qd-tab-done": "state === 'done'", "class.qd-tab-edit": "state === 'edit'", "class.qd-tab-error": "state === 'error'" } }, ngImport: i0, template: "<span class=\"qd-tab-caption\">\n {{ label }}\n <qd-page-tab-header-counters [counters]=\"counters\" [data-test-id]=\"testId + '-counters'\" />\n</span>\n", styles: [":host{position:relative;display:inline-flex;height:2.5rem;padding:.625rem 0;cursor:pointer;color:#171717;font-size:14px;font-weight:400;line-height:18px}:host .qd-tab-caption{font-weight:500;white-space:nowrap}:host:hover,:host.qd-tab-current{color:#069}:host.qd-tab-current .qd-tab-caption{position:relative}:host.qd-tab-current .qd-tab-caption:after{position:absolute;bottom:-.6875rem;left:0;display:inline-block;width:100%;height:.25rem;background-color:#069;content:\"\"}:host.qd-tab-done,:host.qd-tab-edit{color:#171717}:host.qd-tab-error{color:#c70023}:host.qd-tab-disabled{color:#b4b4b4;cursor:default}:host.qd-tab-disabled:hover{color:#b4b4b4}\n"], dependencies: [{ kind: "component", type: QdPageTabHeaderCountersComponent, selector: "qd-page-tab-header-counters", inputs: ["counters", "data-test-id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
30759
31434
  }
30760
31435
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdPageTabHeaderComponent, decorators: [{
30761
31436
  type: Component,
@@ -30767,7 +31442,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
30767
31442
  '[class.qd-tab-done]': "state === 'done'",
30768
31443
  '[class.qd-tab-edit]': "state === 'edit'",
30769
31444
  '[class.qd-tab-error]': "state === 'error'"
30770
- }, standalone: true, imports: [QdPageTabHeaderCountersComponent], template: "<span class=\"qd-tab-caption\">\n {{ label }}\n <qd-page-tab-header-counters [counters]=\"counters\" [data-test-id]=\"testId + '-counters'\" />\n</span>\n", styles: [":host{position:relative;display:inline-flex;height:2.5rem;padding:.625rem 0;cursor:pointer;color:#757575;font-size:14px;font-weight:400;line-height:18px}:host .qd-tab-caption{font-weight:500;white-space:nowrap}:host:hover,:host.qd-tab-current{color:#069}:host.qd-tab-current .qd-tab-caption{position:relative}:host.qd-tab-current .qd-tab-caption:after{position:absolute;bottom:-.6875rem;left:0;display:inline-block;width:100%;height:.25rem;background-color:#069;content:\"\"}:host.qd-tab-done,:host.qd-tab-edit{color:#171717}:host.qd-tab-error{color:#c70023}:host.qd-tab-disabled{color:#b4b4b4;cursor:default}:host.qd-tab-disabled:hover{color:#b4b4b4}\n"] }]
31445
+ }, standalone: true, imports: [QdPageTabHeaderCountersComponent], template: "<span class=\"qd-tab-caption\">\n {{ label }}\n <qd-page-tab-header-counters [counters]=\"counters\" [data-test-id]=\"testId + '-counters'\" />\n</span>\n", styles: [":host{position:relative;display:inline-flex;height:2.5rem;padding:.625rem 0;cursor:pointer;color:#171717;font-size:14px;font-weight:400;line-height:18px}:host .qd-tab-caption{font-weight:500;white-space:nowrap}:host:hover,:host.qd-tab-current{color:#069}:host.qd-tab-current .qd-tab-caption{position:relative}:host.qd-tab-current .qd-tab-caption:after{position:absolute;bottom:-.6875rem;left:0;display:inline-block;width:100%;height:.25rem;background-color:#069;content:\"\"}:host.qd-tab-done,:host.qd-tab-edit{color:#171717}:host.qd-tab-error{color:#c70023}:host.qd-tab-disabled{color:#b4b4b4;cursor:default}:host.qd-tab-disabled:hover{color:#b4b4b4}\n"] }]
30771
31446
  }], propDecorators: { state: [{
30772
31447
  type: Input
30773
31448
  }], label: [{
@@ -30791,7 +31466,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
30791
31466
  */
30792
31467
  class QdPageTabComponent {
30793
31468
  _pageTabs = inject(forwardRef(() => QdPageTabsComponent));
30794
- translate = inject(TranslateService);
30795
31469
  /**
30796
31470
  * Configuration of QdPageTabComponent.
30797
31471
  *
@@ -32410,17 +33084,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
32410
33084
  type: Input
32411
33085
  }] } });
32412
33086
 
33087
+ const STATUS_ICONS = {
33088
+ positive: 'checkCircleSolid',
33089
+ warning: 'warningHexFilled',
33090
+ critical: 'exclamationCircleSolid',
33091
+ info: 'circleInfoSolid'
33092
+ };
32413
33093
  class QdPanelSectionStatusComponent {
32414
33094
  config;
33095
+ _state = 'positive';
33096
+ statusIcon = STATUS_ICONS.positive;
32415
33097
  get getStatusClass() {
32416
- return this.config.status;
33098
+ return this._state;
33099
+ }
33100
+ ngOnChanges() {
33101
+ this._state = this.config?.state ?? 'positive';
33102
+ this.statusIcon = STATUS_ICONS[this._state];
32417
33103
  }
32418
33104
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdPanelSectionStatusComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
32419
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdPanelSectionStatusComponent, isStandalone: false, selector: "qd-panel-section-status", inputs: { config: "config" }, host: { properties: { "attr.class": "this.getStatusClass" } }, ngImport: i0, template: "<qd-icon icon=\"circleSolid\"></qd-icon>\n<h3>{{ config.title.i18n | translate }}</h3>\n", styles: [":host{display:flex;width:100%;align-items:flex-start;padding:1rem .75rem;border:rgb(213,213,213) .125rem solid;margin-bottom:1rem;font-size:.875rem}:host:last-child{margin-bottom:0rem}:host qd-icon{margin-right:.3125rem;font-size:1.625rem}:host h3{margin:0!important;font-size:.875rem}:host.positive{border-left:rgb(0,129,58) .25rem solid;color:#00813a}:host.warning{border-left:rgb(255,155,0) .25rem solid;color:#ff9b00}:host.info{border-left:rgb(0,102,153) .25rem solid;color:#069}:host.critical{border-left:rgb(199,0,35) .25rem solid;color:#c70023}\n"], dependencies: [{ kind: "component", type: QdIconComponent, selector: "qd-icon", inputs: ["icon", "status"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] });
33105
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: QdPanelSectionStatusComponent, isStandalone: false, selector: "qd-panel-section-status", inputs: { config: "config" }, host: { properties: { "attr.class": "this.getStatusClass" } }, usesOnChanges: true, ngImport: i0, template: "<qd-icon [icon]=\"statusIcon\"></qd-icon>\n<h3>{{ config.title.i18n | translate }}</h3>\n", styles: [":host{display:flex;width:100%;min-height:4.625rem;align-items:center;padding:1rem;border:rgb(213,213,213) .0625rem solid;border-radius:.3125rem;margin-bottom:1rem;color:#fff;gap:1rem}:host:last-child{margin-bottom:0rem}:host qd-icon{font-size:2rem}:host h3{margin:0!important;font-size:1.5rem;letter-spacing:.009375rem}:host.positive{background-color:#00813a}:host.warning{background-color:#ff9b00}:host.critical{background-color:#c70023}:host.info{background-color:#069}:host.neutral{background-color:#757575}:host.inactive{background-color:#b4b4b4}\n"], dependencies: [{ kind: "component", type: QdIconComponent, selector: "qd-icon", inputs: ["icon", "status"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] });
32420
33106
  }
32421
33107
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdPanelSectionStatusComponent, decorators: [{
32422
33108
  type: Component,
32423
- args: [{ selector: 'qd-panel-section-status', standalone: false, template: "<qd-icon icon=\"circleSolid\"></qd-icon>\n<h3>{{ config.title.i18n | translate }}</h3>\n", styles: [":host{display:flex;width:100%;align-items:flex-start;padding:1rem .75rem;border:rgb(213,213,213) .125rem solid;margin-bottom:1rem;font-size:.875rem}:host:last-child{margin-bottom:0rem}:host qd-icon{margin-right:.3125rem;font-size:1.625rem}:host h3{margin:0!important;font-size:.875rem}:host.positive{border-left:rgb(0,129,58) .25rem solid;color:#00813a}:host.warning{border-left:rgb(255,155,0) .25rem solid;color:#ff9b00}:host.info{border-left:rgb(0,102,153) .25rem solid;color:#069}:host.critical{border-left:rgb(199,0,35) .25rem solid;color:#c70023}\n"] }]
33109
+ args: [{ selector: 'qd-panel-section-status', standalone: false, template: "<qd-icon [icon]=\"statusIcon\"></qd-icon>\n<h3>{{ config.title.i18n | translate }}</h3>\n", styles: [":host{display:flex;width:100%;min-height:4.625rem;align-items:center;padding:1rem;border:rgb(213,213,213) .0625rem solid;border-radius:.3125rem;margin-bottom:1rem;color:#fff;gap:1rem}:host:last-child{margin-bottom:0rem}:host qd-icon{font-size:2rem}:host h3{margin:0!important;font-size:1.5rem;letter-spacing:.009375rem}:host.positive{background-color:#00813a}:host.warning{background-color:#ff9b00}:host.critical{background-color:#c70023}:host.info{background-color:#069}:host.neutral{background-color:#757575}:host.inactive{background-color:#b4b4b4}\n"] }]
32424
33110
  }], propDecorators: { config: [{
32425
33111
  type: Input,
32426
33112
  args: [{ required: true }]
@@ -32796,7 +33482,7 @@ const DEFAULT_LANGUAGE_LIST = ['de', 'fr', 'it', 'en'];
32796
33482
  * Service for mapping the `serviceNavigation` property as part of the shell configuration to the Oblique Service Navigation Web Component,
32797
33483
  * including translations, attributes, links, and more.
32798
33484
  *
32799
- * The example below shows the Oblique Service Navigation web component and its attributes. Verified against web component version 15.0.3.
33485
+ * The example below shows the Oblique Service Navigation web component and its attributes. Verified against web component version 15.4.3.
32800
33486
  * ```html
32801
33487
  * <ob-service-navigation-web-component
32802
33488
  * environment="TEST"
@@ -32994,7 +33680,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
32994
33680
  type: Injectable
32995
33681
  }] });
32996
33682
 
32997
- const DEFAULT_JAVASCRIPT_ASSET_PATH = 'assets/service-navigation-web-component.js?version=15.0.3';
33683
+ const DEFAULT_JAVASCRIPT_ASSET_PATH = 'assets/service-navigation-web-component.js?version=15.4.3';
32998
33684
  class QdShellServiceNavigationComponent {
32999
33685
  serviceNavigationService = inject(QdShellServiceNavigationService);
33000
33686
  translateService = inject(TranslateService);
@@ -33544,8 +34230,9 @@ class QdShellNotificationComponent {
33544
34230
  notification;
33545
34231
  displayedDate;
33546
34232
  _destroyed$ = new Subject();
34233
+ _effectiveState = 'critical';
33547
34234
  get typeClassName() {
33548
- return `qd-notification qd-notification-${this.getType()}`;
34235
+ return `qd-notification qd-notification-${this.getState()}`;
33549
34236
  }
33550
34237
  get closeable() {
33551
34238
  return !this.notification?.disableClose;
@@ -33559,6 +34246,7 @@ class QdShellNotificationComponent {
33559
34246
  this.setDisplayedDate();
33560
34247
  }
33561
34248
  ngOnChanges(changes) {
34249
+ this._effectiveState = this.notification?.state ?? 'critical';
33562
34250
  if (changes['notification'] &&
33563
34251
  !changes['notification'].firstChange &&
33564
34252
  changes['notification'].currentValue.date !== changes['notification'].previousValue.date) {
@@ -33581,12 +34269,12 @@ class QdShellNotificationComponent {
33581
34269
  ngOnDestroy() {
33582
34270
  this._destroyed$.complete();
33583
34271
  }
33584
- getType() {
33585
- return this.notification?.type;
34272
+ getState() {
34273
+ return this._effectiveState;
33586
34274
  }
33587
34275
  getIcon() {
33588
- switch (this.getType()) {
33589
- case 'success':
34276
+ switch (this.getState()) {
34277
+ case 'positive':
33590
34278
  return 'checkCircleSolid';
33591
34279
  case 'info':
33592
34280
  return 'circleInfoSolid';
@@ -33602,11 +34290,11 @@ class QdShellNotificationComponent {
33602
34290
  this.notificationService.remove('shell', this.notification.uuid);
33603
34291
  }
33604
34292
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdShellNotificationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
33605
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdShellNotificationComponent, isStandalone: false, selector: "qd-shell-notification", inputs: { notification: "notification" }, host: { properties: { "attr.class": "this.typeClassName" }, classAttribute: "qd-shell-notification" }, usesOnChanges: true, ngImport: i0, template: "@if (closeable) {\n<qd-icon [icon]=\"'timesLarge'\" class=\"closer\" (click)=\"remove()\"></qd-icon>\n}\n<qd-icon [icon]=\"this.getIcon()\" class=\"icon\"></qd-icon>\n\n@if (notification?.title) {\n<h3 class=\"title\">{{ notification.title.i18n | translate }}</h3>\n}\n<span class=\"message\">{{ notification?.i18n | translate }}</span>\n\n@if (displayedDate) {\n<span class=\"date\">{{ displayedDate }}</span>\n}\n", styles: [":host{position:relative;display:grid;width:100%;padding:.5rem 1.5rem .5rem .75rem;border:rgb(213,213,213) solid .0625rem;margin-bottom:.75rem;background:#fff;font-size:.875rem;gap:.125rem .625rem;grid-template-columns:23px 1fr;line-height:1rem}:host .icon{font-size:1.5rem;grid-row:1/span 3;line-height:1.5rem}:host .title{margin:0!important;color:#171717;font-size:.875rem}:host .message{margin-top:.1875rem;color:#333;font-size:.875rem;white-space:pre-wrap}:host .title+.message{margin-top:0}:host .date{margin-top:.875rem;color:#333;font-size:.875rem}:host.qd-notification-info{border-left:.25rem solid rgb(0,102,153)}:host.qd-notification-info .icon{color:#069}:host.qd-notification-warning{border-left:.25rem solid rgb(255,155,0)}:host.qd-notification-warning .icon{color:#ff9b00}:host.qd-notification-urgent{border-left:.25rem solid rgb(199,0,35)}:host.qd-notification-urgent .icon{color:#c70023}:host.qd-notification-critical{border-left:.25rem solid rgb(199,0,35)}:host.qd-notification-critical .icon{color:#c70023}:host.qd-notification-success{border-left:.25rem solid rgb(0,129,58)}:host.qd-notification-success .icon{color:#00813a}:host .closer{position:absolute;top:.5rem;right:.75rem;color:#333;cursor:pointer;font-size:.75rem}\n"], dependencies: [{ kind: "component", type: QdIconComponent, selector: "qd-icon", inputs: ["icon", "status"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] });
34293
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdShellNotificationComponent, isStandalone: false, selector: "qd-shell-notification", inputs: { notification: "notification" }, host: { properties: { "attr.class": "this.typeClassName" }, classAttribute: "qd-shell-notification" }, usesOnChanges: true, ngImport: i0, template: "@if (closeable) {\n<qd-icon [icon]=\"'timesLarge'\" class=\"closer\" (click)=\"remove()\"></qd-icon>\n}\n<qd-icon [icon]=\"this.getIcon()\" class=\"icon\"></qd-icon>\n\n@if (notification?.title) {\n<h3 class=\"title\">{{ notification.title.i18n | translate }}</h3>\n}\n<span class=\"message\">{{ notification?.i18n | translate }}</span>\n\n@if (displayedDate) {\n<span class=\"date\">{{ displayedDate }}</span>\n}\n", styles: [":host{position:relative;display:grid;width:100%;padding:.5rem 1.5rem .5rem .75rem;border:rgb(213,213,213) solid .0625rem;margin-bottom:.75rem;background:#fff;font-size:.875rem;gap:.125rem .625rem;grid-template-columns:23px 1fr;line-height:1rem}:host .icon{font-size:1.5rem;grid-row:1/span 3;line-height:1.5rem}:host .title{margin:0!important;color:#171717;font-size:.875rem}:host .message{margin-top:.1875rem;color:#333;font-size:.875rem;white-space:pre-wrap}:host .title+.message{margin-top:0}:host .date{margin-top:.875rem;color:#333;font-size:.875rem}:host.qd-notification-info{border-left:.25rem solid rgb(0,102,153)}:host.qd-notification-info .icon{color:#069}:host.qd-notification-warning{border-left:.25rem solid rgb(255,155,0)}:host.qd-notification-warning .icon{color:#ff9b00}:host.qd-notification-urgent{border-left:.25rem solid rgb(199,0,35)}:host.qd-notification-urgent .icon{color:#c70023}:host.qd-notification-critical{border-left:.25rem solid rgb(199,0,35)}:host.qd-notification-critical .icon{color:#c70023}:host.qd-notification-positive,:host.qd-notification-success{border-left:.25rem solid rgb(0,129,58)}:host.qd-notification-positive .icon,:host.qd-notification-success .icon{color:#00813a}:host .closer{position:absolute;top:.5rem;right:.75rem;color:#333;cursor:pointer;font-size:.75rem}\n"], dependencies: [{ kind: "component", type: QdIconComponent, selector: "qd-icon", inputs: ["icon", "status"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] });
33606
34294
  }
33607
34295
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdShellNotificationComponent, decorators: [{
33608
34296
  type: Component,
33609
- args: [{ selector: 'qd-shell-notification', host: { class: 'qd-shell-notification' }, standalone: false, template: "@if (closeable) {\n<qd-icon [icon]=\"'timesLarge'\" class=\"closer\" (click)=\"remove()\"></qd-icon>\n}\n<qd-icon [icon]=\"this.getIcon()\" class=\"icon\"></qd-icon>\n\n@if (notification?.title) {\n<h3 class=\"title\">{{ notification.title.i18n | translate }}</h3>\n}\n<span class=\"message\">{{ notification?.i18n | translate }}</span>\n\n@if (displayedDate) {\n<span class=\"date\">{{ displayedDate }}</span>\n}\n", styles: [":host{position:relative;display:grid;width:100%;padding:.5rem 1.5rem .5rem .75rem;border:rgb(213,213,213) solid .0625rem;margin-bottom:.75rem;background:#fff;font-size:.875rem;gap:.125rem .625rem;grid-template-columns:23px 1fr;line-height:1rem}:host .icon{font-size:1.5rem;grid-row:1/span 3;line-height:1.5rem}:host .title{margin:0!important;color:#171717;font-size:.875rem}:host .message{margin-top:.1875rem;color:#333;font-size:.875rem;white-space:pre-wrap}:host .title+.message{margin-top:0}:host .date{margin-top:.875rem;color:#333;font-size:.875rem}:host.qd-notification-info{border-left:.25rem solid rgb(0,102,153)}:host.qd-notification-info .icon{color:#069}:host.qd-notification-warning{border-left:.25rem solid rgb(255,155,0)}:host.qd-notification-warning .icon{color:#ff9b00}:host.qd-notification-urgent{border-left:.25rem solid rgb(199,0,35)}:host.qd-notification-urgent .icon{color:#c70023}:host.qd-notification-critical{border-left:.25rem solid rgb(199,0,35)}:host.qd-notification-critical .icon{color:#c70023}:host.qd-notification-success{border-left:.25rem solid rgb(0,129,58)}:host.qd-notification-success .icon{color:#00813a}:host .closer{position:absolute;top:.5rem;right:.75rem;color:#333;cursor:pointer;font-size:.75rem}\n"] }]
34297
+ args: [{ selector: 'qd-shell-notification', host: { class: 'qd-shell-notification' }, standalone: false, template: "@if (closeable) {\n<qd-icon [icon]=\"'timesLarge'\" class=\"closer\" (click)=\"remove()\"></qd-icon>\n}\n<qd-icon [icon]=\"this.getIcon()\" class=\"icon\"></qd-icon>\n\n@if (notification?.title) {\n<h3 class=\"title\">{{ notification.title.i18n | translate }}</h3>\n}\n<span class=\"message\">{{ notification?.i18n | translate }}</span>\n\n@if (displayedDate) {\n<span class=\"date\">{{ displayedDate }}</span>\n}\n", styles: [":host{position:relative;display:grid;width:100%;padding:.5rem 1.5rem .5rem .75rem;border:rgb(213,213,213) solid .0625rem;margin-bottom:.75rem;background:#fff;font-size:.875rem;gap:.125rem .625rem;grid-template-columns:23px 1fr;line-height:1rem}:host .icon{font-size:1.5rem;grid-row:1/span 3;line-height:1.5rem}:host .title{margin:0!important;color:#171717;font-size:.875rem}:host .message{margin-top:.1875rem;color:#333;font-size:.875rem;white-space:pre-wrap}:host .title+.message{margin-top:0}:host .date{margin-top:.875rem;color:#333;font-size:.875rem}:host.qd-notification-info{border-left:.25rem solid rgb(0,102,153)}:host.qd-notification-info .icon{color:#069}:host.qd-notification-warning{border-left:.25rem solid rgb(255,155,0)}:host.qd-notification-warning .icon{color:#ff9b00}:host.qd-notification-urgent{border-left:.25rem solid rgb(199,0,35)}:host.qd-notification-urgent .icon{color:#c70023}:host.qd-notification-critical{border-left:.25rem solid rgb(199,0,35)}:host.qd-notification-critical .icon{color:#c70023}:host.qd-notification-positive,:host.qd-notification-success{border-left:.25rem solid rgb(0,129,58)}:host.qd-notification-positive .icon,:host.qd-notification-success .icon{color:#00813a}:host .closer{position:absolute;top:.5rem;right:.75rem;color:#333;cursor:pointer;font-size:.75rem}\n"] }]
33610
34298
  }], ctorParameters: () => [], propDecorators: { notification: [{
33611
34299
  type: Input
33612
34300
  }], typeClassName: [{
@@ -33863,7 +34551,7 @@ class QdCommentsComponent {
33863
34551
  });
33864
34552
  }
33865
34553
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdCommentsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
33866
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdCommentsComponent, isStandalone: false, selector: "qd-comments", inputs: { config: "config", comments: "comments" }, ngImport: i0, template: "<div class=\"comments-list\">\n <div class=\"add-button-area\">\n <button\n qdButton\n qdButtonGhost\n color=\"primary\"\n (click)=\"addNew()\"\n [disabled]=\"config.addConfig?.addButton?.disabled ?? false\"\n >\n <qd-icon icon=\"plusLarge\" class=\"plus-icon\"></qd-icon>\n {{ config.addConfig?.addButton?.i18n | translate }}\n </button>\n </div>\n\n @for (comment of commentList; track comment) {\n <div\n class=\"comment\"\n (click)=\"clickComment(comment)\"\n [class.hasAction]=\"this.config.primaryActionHandler !== undefined\"\n >\n <div class=\"comment-header\">\n <div>\n <span class=\"comment-author\"\n ><b> {{ comment.author }} </b></span\n >\n <span class=\"comment-custom\">\n {{ comment.custom?.listDisplayName?.i18n ? \" - \" + (comment.custom.listDisplayName.i18n | translate) : \"\" }}\n </span>\n <span class=\"comment-date\"> {{ \" - \" + formatDate(comment.date) }} </span>\n </div>\n @if (config.secondaryActions?.length > 0) {\n <button\n type=\"button\"\n [qdPopoverOnClick]=\"menu\"\n [qdPopoverCloseStrategy]=\"'onEveryClick'\"\n [qdPopoverStopPropagation]=\"true\"\n class=\"menu-button\"\n >\n <qd-icon icon=\"overflowMenuVertical\"></qd-icon>\n </button>\n }\n </div>\n @if (comment?.deletedMeta) {\n <div class=\"deleted-meta\">\n <b>{{ comment.deletedMeta.deletedBy }}</b> -\n {{\n comment.deletedMeta.custom?.listDisplayName.i18n\n ? (comment.deletedMeta.custom.listDisplayName.i18n | translate) + \" -\"\n : \"\"\n }}\n {{\n \"i18n.qd.comments.delete.deleted\"\n | translate\n | placeholder : \"deleteDate\" : formatDate(comment.deletedMeta.date)\n }}\n </div>\n }\n <div\n class=\"comment-content\"\n [style.text-decoration]=\"comment.deletedMeta ? 'line-through' : ''\"\n [style.-webkit-line-clamp]=\"config.numberOfDisplayedRows || 10\"\n >\n <span [innerHTML]=\"comment.comment\"></span>\n </div>\n </div>\n <ng-template #menu>\n <qd-comment-menu [menuActions]=\"config.secondaryActions\" [comment]=\"comment\"></qd-comment-menu>\n </ng-template>\n }\n</div>\n", styles: [".comments-list{font-size:.875rem}.comments-list .add-button-area{display:flex;justify-content:flex-end;padding:.5rem 1rem;border-bottom:.0625rem solid rgb(213,213,213);margin-bottom:.5rem}.comments-list .add-button-area .qd-button-primary{padding:0 .5625rem;white-space:nowrap}.comments-list .add-button-area .qd-button-primary .plus-icon{padding-right:.5rem}.comments-list .comment{padding:.5rem .4375rem .5rem 1rem}.comments-list .comment.hasAction{cursor:pointer}.comments-list .comment.hasAction:hover{background-color:#f2f7fa}.comments-list .comment .comment-header{display:flex;justify-content:space-between;padding-bottom:.1875rem}.comments-list .comment .comment-header div{align-self:center}.comments-list .comment .comment-header .menu-button{background:unset;color:#454545;font-size:1rem}.comments-list .comment .comment-header .menu-button:hover,.comments-list .comment .comment-header .menu-button:focus{color:#000}.comments-list .comment .deleted-meta{margin-bottom:.5rem;color:#c70023}.comments-list .comment .comment-content{display:-webkit-box;overflow:hidden;padding-right:.5rem;-webkit-box-orient:vertical;color:#757575;-webkit-line-clamp:10}\n"], dependencies: [{ kind: "directive", type: QdPopoverOnClickDirective, selector: "[qdPopoverOnClick]", inputs: ["qdPopoverOnClick", "qdPopoverPlacement", "qdPopoverOffsetX", "qdPopoverOffsetY", "qdPopoverCloseStrategy", "qdPopoverDisabled", "qdPopoverStopPropagation", "qdPopoverBackgroundColor", "qdPopoverMaxHeight", "qdPopoverMinWidth", "qdPopoverMaxWidth", "qdPopoverAutoSize", "qdPopoverEnableKeyControl", "qdPopoverFlipIntoViewport"], outputs: ["opened", "closed"], exportAs: ["qdPopoverOnClick"] }, { kind: "component", type: QdIconComponent, selector: "qd-icon", inputs: ["icon", "status"] }, { 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: QdCommentMenuComponent, selector: "qd-comment-menu", inputs: ["menuActions", "comment"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }, { kind: "pipe", type: QdPlaceholderPipe, name: "placeholder" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
34554
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: QdCommentsComponent, isStandalone: false, selector: "qd-comments", inputs: { config: "config", comments: "comments" }, ngImport: i0, template: "<div class=\"comments-list\">\n <div class=\"add-button-area\">\n <button\n qdButton\n qdButtonGhost\n color=\"primary\"\n (click)=\"addNew()\"\n [disabled]=\"config.addConfig?.addButton?.disabled ?? false\"\n >\n <qd-icon icon=\"plusLarge\" class=\"plus-icon\"></qd-icon>\n {{ config.addConfig?.addButton?.i18n | translate }}\n </button>\n </div>\n\n @for (comment of commentList; track comment) {\n <div\n class=\"comment\"\n (click)=\"clickComment(comment)\"\n [class.hasAction]=\"this.config.primaryActionHandler !== undefined\"\n >\n <div class=\"comment-header\">\n <div>\n <span class=\"comment-author\"\n ><b> {{ comment.author }} </b></span\n >\n <span class=\"comment-custom\">\n {{ comment.custom?.listDisplayName?.i18n ? \" - \" + (comment.custom.listDisplayName.i18n | translate) : \"\" }}\n </span>\n <span class=\"comment-date\"> {{ \" - \" + formatDate(comment.date) }} </span>\n </div>\n @if (config.secondaryActions?.length > 0) {\n <button\n type=\"button\"\n [qdPopoverOnClick]=\"menu\"\n [qdPopoverCloseStrategy]=\"'onEveryClick'\"\n [qdPopoverStopPropagation]=\"true\"\n class=\"menu-button\"\n >\n <qd-icon icon=\"overflowMenuVertical\"></qd-icon>\n </button>\n }\n </div>\n @if (comment?.deletedMeta) {\n <div class=\"deleted-meta\">\n <b>{{ comment.deletedMeta.deletedBy }}</b> -\n {{\n comment.deletedMeta.custom?.listDisplayName.i18n\n ? (comment.deletedMeta.custom.listDisplayName.i18n | translate) + \" -\"\n : \"\"\n }}\n {{\n \"i18n.qd.comments.delete.deleted\"\n | translate\n | placeholder : \"deleteDate\" : formatDate(comment.deletedMeta.date)\n }}\n </div>\n }\n <div\n class=\"comment-content\"\n [style.text-decoration]=\"comment.deletedMeta ? 'line-through' : ''\"\n [style.-webkit-line-clamp]=\"config.numberOfDisplayedRows || 10\"\n >\n <span [innerHTML]=\"comment.comment\"></span>\n </div>\n </div>\n <ng-template #menu>\n <qd-comment-menu [menuActions]=\"config.secondaryActions\" [comment]=\"comment\"></qd-comment-menu>\n </ng-template>\n }\n</div>\n", styles: [".comments-list{font-size:.875rem}.comments-list .add-button-area{display:flex;justify-content:flex-end;padding:.5rem 1rem;border-bottom:.0625rem solid rgb(213,213,213);margin-bottom:.5rem}.comments-list .add-button-area .qd-button-primary{padding:0 .5625rem;white-space:nowrap}.comments-list .add-button-area .qd-button-primary .plus-icon{padding-right:.5rem}.comments-list .comment{padding:.5rem .4375rem .5rem 1rem}.comments-list .comment.hasAction{cursor:pointer}.comments-list .comment.hasAction:hover{background-color:#f2f7fa}.comments-list .comment .comment-header{display:flex;justify-content:space-between;padding-bottom:.1875rem}.comments-list .comment .comment-header div{align-self:center}.comments-list .comment .comment-header .menu-button{background:unset;color:#454545;font-size:1rem}.comments-list .comment .comment-header .menu-button:hover,.comments-list .comment .comment-header .menu-button:focus{color:#000}.comments-list .comment .deleted-meta{margin-bottom:.5rem;color:#c70023}.comments-list .comment .comment-content{display:-webkit-box;overflow:hidden;padding-right:.5rem;-webkit-box-orient:vertical;color:#757575;-webkit-line-clamp:10}\n"], dependencies: [{ 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: QdIconComponent, selector: "qd-icon", inputs: ["icon", "status"] }, { 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: QdCommentMenuComponent, selector: "qd-comment-menu", inputs: ["menuActions", "comment"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }, { kind: "pipe", type: QdPlaceholderPipe, name: "placeholder" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
33867
34555
  }
33868
34556
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdCommentsComponent, decorators: [{
33869
34557
  type: Component,
@@ -35017,7 +35705,7 @@ class QdQuickEditComponent {
35017
35705
  this.controlContainer.control.valueChanges.pipe(tap(() => this.changeDetectorRef.detectChanges())).subscribe();
35018
35706
  }
35019
35707
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdQuickEditComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
35020
- 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$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i1$1.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", "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.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
35708
+ 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$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i1$1.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.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
35021
35709
  }
35022
35710
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdQuickEditComponent, decorators: [{
35023
35711
  type: Component,