@sinequa/galactik 2.16.1 → 2.16.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.
@@ -12201,17 +12201,22 @@ i0.ɵɵngDeclareClassMetadata({
12201
12201
  }
12202
12202
  });
12203
12203
  let _idCounter$2 = 0;
12204
+ let _triggerIdCounter = 0;
12204
12205
  var MenuTriggerDirective = class MenuTriggerDirective {
12205
12206
  menu = input.required({
12206
12207
  ...ngDevMode ? { debugName: "menu" } : /* istanbul ignore next */ {},
12207
12208
  alias: "menuTrigger"
12208
12209
  });
12209
12210
  _targetId = signal(null, ...ngDevMode ? [{ debugName: "_targetId" }] : /* istanbul ignore next */ []);
12211
+ trigger = inject(ElementRef).nativeElement;
12210
12212
  constructor() {
12211
12213
  afterNextRender(() => {
12212
12214
  const el = this.menu().popover.elementRef.nativeElement;
12213
12215
  if (!el.id) el.id = `menu-trigger-${++_idCounter$2}`;
12214
12216
  this._targetId.set(el.id);
12217
+ if (el.hasAttribute("aria-label") || el.hasAttribute("aria-labelledby")) return;
12218
+ if (!this.trigger.id) this.trigger.id = `menu-trigger-button-${++_triggerIdCounter}`;
12219
+ el.setAttribute("aria-labelledby", this.trigger.id);
12215
12220
  });
12216
12221
  }
12217
12222
  _expanded = computed(() => {