@hotelinking/ui 4.34.4 → 4.34.6

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/dist/ui.es.js CHANGED
@@ -91,7 +91,7 @@ const ce = (e2) => e2, pe = (e2) => {
91
91
  };
92
92
  class he {
93
93
  constructor(e2) {
94
- this.unsubs = [], this.scrollElement = null, this.isScrolling = false, this.isScrollingTimeoutId = null, this.scrollToIndexTimeoutId = null, this.measurementsCache = [], this.itemSizeCache = /* @__PURE__ */ new Map(), this.pendingMeasuredCacheIndexes = [], this.scrollDirection = null, this.scrollAdjustments = 0, this.measureElementCache = /* @__PURE__ */ new Map(), this.observer = (() => {
94
+ this.unsubs = [], this.scrollElement = null, this.isScrolling = false, this.isScrollingTimeoutId = null, this.scrollToIndexTimeoutId = null, this.measurementsCache = [], this.itemSizeCache = /* @__PURE__ */ new Map(), this.pendingMeasuredCacheIndexes = [], this.scrollDirection = null, this.scrollAdjustments = 0, this.measureElementCache = /* @__PURE__ */ new Map(), this.observer = /* @__PURE__ */ (() => {
95
95
  let e3 = null;
96
96
  const t2 = () => e3 || ("undefined" != typeof ResizeObserver ? e3 = new ResizeObserver((e4) => {
97
97
  e4.forEach((e5) => {
@@ -569,7 +569,7 @@ var it = ((e2) => (e2[e2.None = 1] = "None", e2[e2.Focusable = 2] = "Focusable",
569
569
  let st = k({ name: "Hidden", props: { as: { type: [Object, String], default: "div" }, features: { type: Number, default: 1 } }, setup: (e2, { slots: t2, attrs: l2 }) => () => {
570
570
  var n2;
571
571
  let { features: a2, ...o2 } = e2;
572
- return tt({ ourProps: { "aria-hidden": 2 == (2 & a2) || (null != (n2 = o2["aria-hidden"]) ? n2 : void 0), style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...4 == (4 & a2) && 2 != (2 & a2) && { display: "none" } } }, theirProps: o2, slot: {}, attrs: l2, slots: t2, name: "Hidden" });
572
+ return tt({ ourProps: { "aria-hidden": !(2 & ~a2) || (null != (n2 = o2["aria-hidden"]) ? n2 : void 0), style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...!(4 & ~a2) && !!(2 & ~a2) && { display: "none" } } }, theirProps: o2, slot: {}, attrs: l2, slots: t2, name: "Hidden" });
573
573
  } }), ut = Symbol("Context");
574
574
  var dt = ((e2) => (e2[e2.Open = 1] = "Open", e2[e2.Closed = 2] = "Closed", e2[e2.Closing = 4] = "Closing", e2[e2.Opening = 8] = "Opening", e2))(dt || {});
575
575
  function ct() {
@@ -745,7 +745,7 @@ let Tt = Symbol("VirtualContext"), Dt = k({ name: "VirtualProvider", setup(e2, {
745
745
  let n3 = e2.by;
746
746
  return (null == t3 ? void 0 : t3[n3]) === (null == l3 ? void 0 : l3[n3]);
747
747
  }
748
- return null === e2.by ? function(e3, t4) {
748
+ return null === e2.by ? /* @__PURE__ */ function(e3, t4) {
749
749
  return e3 === t4;
750
750
  }(t3, l3) : e2.by(t3, l3);
751
751
  }, calculateIndex: (t3) => j2.virtual.value ? null === e2.by ? j2.virtual.value.options.indexOf(t3) : j2.virtual.value.options.findIndex((e3) => j2.compare(e3, t3)) : g2.value.findIndex((e3) => j2.compare(e3.dataRef.value, t3)), defaultValue: u(() => e2.defaultValue), nullable: k2, immediate: u(() => false), virtual: u(() => null), inputRef: r2, labelRef: o2, buttonRef: i2, optionsRef: d2, disabled: u(() => e2.disabled), options: g2, change(e3) {
@@ -1956,7 +1956,7 @@ function Nl(e2, ...t2) {
1956
1956
  }
1957
1957
  var zl = ((e2) => (e2.Finished = "finished", e2.Cancelled = "cancelled", e2))(zl || {});
1958
1958
  function $l(e2, t2, l2, n2, a2, o2) {
1959
- let r2 = yt(), i2 = void 0 !== o2 ? function(e3) {
1959
+ let r2 = yt(), i2 = void 0 !== o2 ? /* @__PURE__ */ function(e3) {
1960
1960
  let t3 = { called: false };
1961
1961
  return (...l3) => {
1962
1962
  if (!t3.called)