@quadrel-enterprise-ui/framework 21.20.0 → 21.20.2

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quadrel-enterprise-ui/framework",
3
- "version": "21.20.0",
3
+ "version": "21.20.2",
4
4
  "exports": {
5
5
  "./jest-preset": "./jest-preset.js",
6
6
  "./package.json": {
@@ -3,4 +3,5 @@
3
3
  @use "generic.layout" as generic3;
4
4
  @use "generic.resetButton" as generic4;
5
5
  @use "generic.checkbox" as generic5;
6
+ @use "generic.focus" as generic6;
6
7
  @import "@angular/cdk/overlay-prebuilt.css";
@@ -0,0 +1,6 @@
1
+ @use "../tools/tools.mixins";
2
+
3
+ button:focus-visible,
4
+ a:focus-visible {
5
+ @include tools.focus-ring;
6
+ }
@@ -1,6 +1,5 @@
1
1
  button {
2
2
  border: none;
3
3
  cursor: pointer;
4
- outline: none;
5
4
  user-select: none;
6
5
  }
@@ -126,4 +126,5 @@
126
126
 
127
127
  @mixin focus-ring-inset {
128
128
  box-shadow: inset 0 0 0 tokens.$focus-ring-width tokens.$focus-ring-color;
129
+ outline: none;
129
130
  }
@@ -13096,6 +13096,7 @@ declare class QdFilterItemSelectCategoryComponent implements OnInit, AfterViewIn
13096
13096
  ngOnInit(): void;
13097
13097
  ngAfterViewInit(): void;
13098
13098
  private get isRadioGroup();
13099
+ private get isOpenListboxWithoutItemFilter();
13099
13100
  private createKeyManager;
13100
13101
  private onActiveOptionChanged;
13101
13102
  private moveTabStopToActiveOption;
@@ -13106,7 +13107,7 @@ declare class QdFilterItemSelectCategoryComponent implements OnInit, AfterViewIn
13106
13107
  private displayOrder;
13107
13108
  private updateListboxAriaState;
13108
13109
  onLayerOpened(): void;
13109
- private activateOptionIfListboxFocused;
13110
+ private activateInitialOption;
13110
13111
  onLayerClosed(): void;
13111
13112
  closeLayer(): void;
13112
13113
  onListboxKeydown(event: KeyboardEvent): void;
@@ -13115,6 +13116,7 @@ declare class QdFilterItemSelectCategoryComponent implements OnInit, AfterViewIn
13115
13116
  onListboxBlur(): void;
13116
13117
  onFlyoutFocusout(event: FocusEvent): void;
13117
13118
  private ensureActiveOption;
13119
+ private ensureActiveOptionIfOpen;
13118
13120
  private initialActiveOption;
13119
13121
  private selectActiveOption;
13120
13122
  private applySingleSelection;
@@ -19087,6 +19089,11 @@ declare class QdCommentsComponent {
19087
19089
  private translateService;
19088
19090
  private dialogService;
19089
19091
  config: QdCommentsConfig;
19092
+ /**
19093
+ * Root of the test ids. The add button gets `-add`, each comment `-comment-<index>`,
19094
+ * its menu opener `-menu-opener-<index>` and the menu entries `-menu-<index>-action`.
19095
+ */
19096
+ testId: string;
19090
19097
  set comments(value: QdComment[]);
19091
19098
  private _hasComments$;
19092
19099
  private readonly _locale;
@@ -19097,7 +19104,7 @@ declare class QdCommentsComponent {
19097
19104
  clickComment(comment: QdComment): void;
19098
19105
  addNew(): void;
19099
19106
  static ɵfac: i0.ɵɵFactoryDeclaration<QdCommentsComponent, never>;
19100
- static ɵcmp: i0.ɵɵComponentDeclaration<QdCommentsComponent, "qd-comments", never, { "config": { "alias": "config"; "required": true; }; "comments": { "alias": "comments"; "required": false; }; }, {}, never, never, false, never>;
19107
+ static ɵcmp: i0.ɵɵComponentDeclaration<QdCommentsComponent, "qd-comments", never, { "config": { "alias": "config"; "required": true; }; "testId": { "alias": "data-test-id"; "required": false; }; "comments": { "alias": "comments"; "required": false; }; }, {}, never, never, false, never>;
19101
19108
  }
19102
19109
 
19103
19110
  /**
@@ -19665,8 +19672,12 @@ declare class QdMockFrameworkModule {
19665
19672
  declare class QdCommentMenuComponent {
19666
19673
  menuActions?: QdCommentSecondaryActionConfig[];
19667
19674
  comment: QdComment;
19675
+ /**
19676
+ * Root of the test ids. Every menu entry gets `-action`.
19677
+ */
19678
+ testId: string;
19668
19679
  static ɵfac: i0.ɵɵFactoryDeclaration<QdCommentMenuComponent, never>;
19669
- static ɵcmp: i0.ɵɵComponentDeclaration<QdCommentMenuComponent, "qd-comment-menu", never, { "menuActions": { "alias": "menuActions"; "required": false; }; "comment": { "alias": "comment"; "required": false; }; }, {}, never, never, false, never>;
19680
+ static ɵcmp: i0.ɵɵComponentDeclaration<QdCommentMenuComponent, "qd-comment-menu", never, { "menuActions": { "alias": "menuActions"; "required": false; }; "comment": { "alias": "comment"; "required": true; }; "testId": { "alias": "data-test-id"; "required": false; }; }, {}, never, never, false, never>;
19670
19681
  }
19671
19682
 
19672
19683
  declare class AddCommentDialogComponent {