@quadrel-enterprise-ui/framework 20.26.0 → 20.26.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -8952,10 +8952,25 @@ declare class QdMultiInputMenuComponent implements AfterViewInit {
8952
8952
  static ɵcmp: i0.ɵɵComponentDeclaration<QdMultiInputMenuComponent, "qd-multi-input-menu", never, { "id": { "alias": "id"; "required": false; }; "optionsListForView": { "alias": "optionsListForView"; "required": false; }; "testId": { "alias": "data-test-id"; "required": false; }; }, { "itemClick": "itemClick"; }, never, never, false, never>;
8953
8953
  }
8954
8954
 
8955
+ /**
8956
+ * Focuses its host element once, after the initial view init, when `qdAutofocus` is `true`.
8957
+ *
8958
+ * Init-only by design: the input is read in `ngAfterViewInit` only. A later `false -> true`
8959
+ * change on an already-rendered element is intentionally ignored to avoid stealing focus
8960
+ * mid-interaction (this mirrors the native `autofocus` attribute). An element that appears
8961
+ * later (e.g. via `*ngIf`) still autofocuses, because `ngAfterViewInit` runs when it is created.
8962
+ *
8963
+ * Coordinated app-wide through {@link QdAutofocusService}: only one element may autofocus per
8964
+ * view; the guard is released once the focused element blurs, so a newly opened view can
8965
+ * autofocus again. Using it on more than one active element at a time logs a warning and is
8966
+ * ignored for the surplus elements.
8967
+ */
8955
8968
  declare class QdAutofocusDirective implements AfterViewInit, OnDestroy {
8956
8969
  private readonly autofocusService;
8957
8970
  private readonly elementRef;
8958
8971
  qdAutofocus: boolean;
8972
+ private _timeoutId?;
8973
+ private _blurHandler?;
8959
8974
  ngAfterViewInit(): void;
8960
8975
  ngOnDestroy(): void;
8961
8976
  static ɵfac: i0.ɵɵFactoryDeclaration<QdAutofocusDirective, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quadrel-enterprise-ui/framework",
3
- "version": "20.26.0",
3
+ "version": "20.26.1",
4
4
  "exports": {
5
5
  "./jest-preset": "./jest-preset.js",
6
6
  "./package.json": {