@sbb-esta/lyne-elements-dev 4.11.0-dev.1776257936 → 4.11.0-dev.1776332009

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.
Files changed (30) hide show
  1. package/autocomplete/autocomplete-base-element.js +1 -1
  2. package/autocomplete/autocomplete.component.js +1 -1
  3. package/{autocomplete-base-element-DarHnnYC.js → autocomplete-base-element-BryH362a.js} +12 -7
  4. package/autocomplete.js +1 -1
  5. package/autocomplete.pure.js +1 -1
  6. package/custom-elements.json +8379 -8340
  7. package/development/autocomplete/autocomplete-base-element.d.ts +2 -1
  8. package/development/autocomplete/autocomplete-base-element.d.ts.map +1 -1
  9. package/development/autocomplete/autocomplete-base-element.js +1 -1
  10. package/development/autocomplete/autocomplete.component.js +1 -1
  11. package/development/{autocomplete-base-element-VKU7Lpr7.js → autocomplete-base-element-BNfirRyP.js} +15 -7
  12. package/development/autocomplete.js +1 -1
  13. package/development/autocomplete.pure.js +1 -1
  14. package/development/core/eventing/throttle.d.ts +1 -0
  15. package/development/core/eventing/throttle.d.ts.map +1 -1
  16. package/development/core/eventing/throttle.js +2 -1
  17. package/development/tab-group.component-DldBA45K.js +275 -0
  18. package/development/tabs/tab-group/tab-group.component.d.ts +1 -0
  19. package/development/tabs/tab-group/tab-group.component.d.ts.map +1 -1
  20. package/development/tabs/tab-group/tab-group.component.js +1 -1
  21. package/development/tabs/tab-group.js +1 -1
  22. package/development/tabs.js +1 -1
  23. package/development/tabs.pure.js +1 -1
  24. package/package.json +2 -2
  25. package/{tab-group.component-Doy39cEh.js → tab-group.component-CHQlrhUy.js} +36 -33
  26. package/tabs/tab-group/tab-group.component.js +1 -1
  27. package/tabs/tab-group.js +1 -1
  28. package/tabs.js +1 -1
  29. package/tabs.pure.js +1 -1
  30. package/development/tab-group.component-DRipdAyc.js +0 -272
@@ -1,2 +1,2 @@
1
- import { t as e } from "../autocomplete-base-element-DarHnnYC.js";
1
+ import { t as e } from "../autocomplete-base-element-BryH362a.js";
2
2
  export { e as SbbAutocompleteBaseElement };
@@ -1,4 +1,4 @@
1
- import { t as e } from "../autocomplete-base-element-DarHnnYC.js";
1
+ import { t as e } from "../autocomplete-base-element-BryH362a.js";
2
2
  import { isSafari as t } from "../core/dom.js";
3
3
  import { setAriaComboBoxAttributes as n } from "../core/overlay.js";
4
4
  import { getNextElementIndex as r } from "../core/a11y.js";
@@ -249,12 +249,15 @@ var S = ".sbb-gap-fix-wrapper{position:relative;overflow:hidden;width:var(--sbb-
249
249
  return this._triggerElement ?? null;
250
250
  }
251
251
  constructor() {
252
- super(), this.#e = t(this, T, null), this.#t = (t(this, E), t(this, O, null)), this.#n = (t(this, k), t(this, j, !1)), this.#r = (t(this, M), t(this, P, !1)), this.#i = (t(this, F), t(this, L, null)), this.#a = (t(this, R), t(this, B, u() ? "s" : "m")), this.#o = (t(this, V), t(this, U, !1)), this.#s = (t(this, W), t(this, K, !1)), this.#c = (t(this, q), t(this, Y, !1)), this.#l = (t(this, X), t(this, Q, "auto")), this._triggerElement = t(this, $), this.activeOption = null, this.pendingAutoSelectedOption = null, this._originResizeObserver = new g(this, {
252
+ super(), this.#e = t(this, T, null), this.#t = (t(this, E), t(this, O, null)), this.#n = (t(this, k), t(this, j, !1)), this.#r = (t(this, M), t(this, P, !1)), this.#i = (t(this, F), t(this, L, null)), this.#a = (t(this, R), t(this, B, u() ? "s" : "m")), this.#o = (t(this, V), t(this, U, !1)), this.#s = (t(this, W), t(this, K, !1)), this.#c = (t(this, q), t(this, Y, !1)), this.#l = (t(this, X), t(this, Q, "auto")), this._triggerElement = t(this, $), this.activeOption = null, this.pendingAutoSelectedOption = null, this._resizeObserver = new g(this, {
253
253
  target: null,
254
254
  skipInitial: !0,
255
- callback: () => {
256
- this.state === "opened" && this._setOverlayPosition();
257
- }
255
+ callback: (() => {
256
+ let e;
257
+ return () => {
258
+ clearTimeout(e), e = setTimeout(() => this._setOverlayPosition(), 10);
259
+ };
260
+ })()
258
261
  }), this._triggerAttributeObserver = r ? null : new MutationObserver((e) => {
259
262
  let t = e[0].target;
260
263
  (t.hasAttribute("disabled") || t.hasAttribute("readonly")) && this.close();
@@ -277,7 +280,7 @@ var S = ".sbb-gap-fix-wrapper{position:relative;overflow:hidden;width:var(--sbb-
277
280
  this._setOverlayPosition(e), this._setNextActiveOptionIfAutoActiveFirstOption(), this._attachOpenPanelEvents(), this._escapableOverlayController.connect(), this._isZeroAnimationDuration() && this._handleOpening();
278
281
  }
279
282
  close() {
280
- this.state === "closing" || this.state === "closed" || !this.dispatchBeforeCloseEvent() || (this.pendingAutoSelectedOption && (this.pendingAutoSelectedOption.selected = !0, this._setValueAndDispatchEvents(this.pendingAutoSelectedOption, !0)), this.state = "closing", this.triggerElement?.removeAttribute("data-expanded"), this._openPanelEventsController.abort(), this.originElement && this._originResizeObserver.unobserve(this.originElement), this._isZeroAnimationDuration() && this._handleClosing());
283
+ this.state === "closing" || this.state === "closed" || !this.dispatchBeforeCloseEvent() || (this.pendingAutoSelectedOption && (this.pendingAutoSelectedOption.selected = !0, this._setValueAndDispatchEvents(this.pendingAutoSelectedOption, !0)), this.state = "closing", this.triggerElement?.removeAttribute("data-expanded"), this._openPanelEventsController.abort(), this.originElement && this._resizeObserver.unobserve(this.originElement), this._isZeroAnimationDuration() && this._handleClosing());
281
284
  }
282
285
  _isZeroAnimationDuration() {
283
286
  return ee(this, "--sbb-options-panel-animation-duration");
@@ -317,7 +320,9 @@ var S = ".sbb-gap-fix-wrapper{position:relative;overflow:hidden;width:var(--sbb-
317
320
  Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, "value").set.call(this.triggerElement, t);
318
321
  }
319
322
  _handleSlotchange() {
320
- this._highlightOptions(this.triggerElement?.value), this.isOpen ? (this._setOverlayPosition(), this._setNextActiveOptionIfAutoActiveFirstOption(), this._optionsCount > 0 && this.options.length === 0 && this.close()) : document?.activeElement === this.triggerElement && this._optionsCount === 0 && this.options.length > 0 && this.open(), this._optionsCount = this.options.length;
323
+ this._highlightOptions(this.triggerElement?.value);
324
+ let e = Array.from(this.querySelectorAll("*"));
325
+ this._previousElements?.forEach((e) => this._resizeObserver.unobserve(e)), this._previousElements = e, this._previousElements.forEach((e) => this._resizeObserver.observe(e)), this.isOpen ? (this._setOverlayPosition(), this._setNextActiveOptionIfAutoActiveFirstOption(), this._optionsCount > 0 && this.options.length === 0 && this.close()) : document?.activeElement === this.triggerElement && this._optionsCount === 0 && this.options.length > 0 && this.open(), this._optionsCount = this.options.length;
321
326
  }
322
327
  _setNextActiveOptionIfAutoActiveFirstOption() {
323
328
  this.autoActiveFirstOption && (this.resetActiveElement(), this.setNextActiveOption());
@@ -363,7 +368,7 @@ var S = ".sbb-gap-fix-wrapper{position:relative;overflow:hidden;width:var(--sbb-
363
368
  e.animationName === "open" && this.state === "opening" ? this._handleOpening() : e.animationName === "close" && this.state === "closing" && this._handleClosing();
364
369
  }
365
370
  _handleOpening() {
366
- this.state = "opened", this.originElement && this._originResizeObserver.observe(this.originElement), this.triggerElement?.setAttribute("aria-expanded", "true"), this.dispatchOpenEvent();
371
+ this.state = "opened", this.originElement && this._resizeObserver.observe(this.originElement), this.triggerElement?.setAttribute("aria-expanded", "true"), this.dispatchOpenEvent();
367
372
  }
368
373
  _handleClosing() {
369
374
  this.state = "closed", this.hidePopover?.(), this.triggerElement?.setAttribute("aria-expanded", "false"), this.resetActiveElement(), this._optionContainer.scrollTop = 0, this._escapableOverlayController.disconnect(), this.dispatchCloseEvent();
package/autocomplete.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as e } from "./autocomplete-base-element-DarHnnYC.js";
1
+ import { t as e } from "./autocomplete-base-element-BryH362a.js";
2
2
  import { SbbAutocompleteElement as t } from "./autocomplete/autocomplete.component.js";
3
3
  import "./autocomplete.pure.js";
4
4
  //#region src/elements/autocomplete.ts
@@ -1,3 +1,3 @@
1
- import { t as e } from "./autocomplete-base-element-DarHnnYC.js";
1
+ import { t as e } from "./autocomplete-base-element-BryH362a.js";
2
2
  import { SbbAutocompleteElement as t } from "./autocomplete/autocomplete.component.js";
3
3
  export { e as SbbAutocompleteBaseElement, t as SbbAutocompleteElement };