@quadrel-enterprise-ui/framework 21.12.15 → 21.12.16

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.12.15",
3
+ "version": "21.12.16",
4
4
  "exports": {
5
5
  "./jest-preset": "./jest-preset.js",
6
6
  "./package.json": {
@@ -9662,6 +9662,12 @@ declare class QdFormOptionLabelPipe implements PipeTransform {
9662
9662
  * view; the guard is released once the focused element blurs, so a newly opened view can
9663
9663
  * autofocus again. Using it on more than one active element at a time logs a warning and is
9664
9664
  * ignored for the surplus elements.
9665
+ *
9666
+ * An element that is not in the document does not take part, e.g. a field on a page tab that is
9667
+ * not shown. So every tab can have its own autofocus field, and the shown tab gets the focus.
9668
+ * This happens only when the view opens. A tab that the user opens later does not take the focus.
9669
+ *
9670
+ * An element that cannot take the focus, e.g. because it is hidden, frees the guard again.
9665
9671
  */
9666
9672
  declare class QdAutofocusDirective implements AfterViewInit, OnDestroy {
9667
9673
  private readonly autofocusService;
@@ -9669,8 +9675,12 @@ declare class QdAutofocusDirective implements AfterViewInit, OnDestroy {
9669
9675
  qdAutofocus: boolean;
9670
9676
  private _timeoutId?;
9671
9677
  private _blurHandler?;
9678
+ private _hasClaimedAutofocus;
9672
9679
  ngAfterViewInit(): void;
9673
9680
  ngOnDestroy(): void;
9681
+ private claimAutofocus;
9682
+ private releaseAutofocus;
9683
+ private focusIfShown;
9674
9684
  static ɵfac: i0.ɵɵFactoryDeclaration<QdAutofocusDirective, never>;
9675
9685
  static ɵdir: i0.ɵɵDirectiveDeclaration<QdAutofocusDirective, "[qdAutofocus]", never, { "qdAutofocus": { "alias": "qdAutofocus"; "required": false; }; }, {}, never, never, false, never>;
9676
9686
  }