@point-hub/papp 0.0.33 → 0.0.34

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/index.js CHANGED
@@ -1105,7 +1105,7 @@ var It = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.
1105
1105
  let Tt = H({ name: "Hidden", props: { as: { type: [Object, String], default: "div" }, features: { type: Number, default: 1 } }, setup(e, { slots: t, attrs: n }) {
1106
1106
  return () => {
1107
1107
  var r;
1108
- let { features: a, ...i } = e, o = { "aria-hidden": (a & 2) === 2 ? !0 : (r = i["aria-hidden"]) != null ? r : 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", ...(a & 4) === 4 && (a & 2) !== 2 && { display: "none" } } };
1108
+ let { features: a, ...i } = e, o = { "aria-hidden": (a & 2) === 2 ? !0 : (r = i["aria-hidden"]) != null ? r : void 0, hidden: (a & 4) === 4 ? !0 : 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", ...(a & 4) === 4 && (a & 2) !== 2 && { display: "none" } } };
1109
1109
  return pe({ ourProps: o, theirProps: i, slot: {}, attrs: n, slots: t, name: "Hidden" });
1110
1110
  };
1111
1111
  } }), So = Symbol("Context");
@@ -1437,7 +1437,7 @@ let Eo = Symbol("VirtualContext"), Ss = H({ name: "VirtualProvider", setup(e, {
1437
1437
  }), () => {
1438
1438
  var E, I, j;
1439
1439
  let { name: V, disabled: _, form: P, ...B } = e, F = { open: a.value === 0, disabled: _, activeIndex: x.activeOptionIndex.value, activeOption: x.activeOptionIndex.value === null ? null : x.virtual.value ? x.virtual.value.options[(E = x.activeOptionIndex.value) != null ? E : 0] : (j = (I = x.options.value[x.activeOptionIndex.value]) == null ? void 0 : I.dataRef.value) != null ? j : null, value: w.value };
1440
- return fe(Ce, [...V != null && w.value != null ? ur({ [V]: w.value }).map(([M, U]) => fe(Tt, ea({ features: It.Hidden, key: M, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: P, name: M, value: U }))) : [], pe({ theirProps: { ...n, ...Bt(B, ["by", "defaultValue", "immediate", "modelValue", "multiple", "nullable", "onUpdate:modelValue", "virtual"]) }, ourProps: {}, slot: F, slots: t, attrs: n, name: "Combobox" })]);
1440
+ return fe(Ce, [...V != null && w.value != null ? ur({ [V]: w.value }).map(([M, U]) => fe(Tt, ea({ features: It.Hidden, key: M, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: P, disabled: _, name: M, value: U }))) : [], pe({ theirProps: { ...n, ...Bt(B, ["by", "defaultValue", "immediate", "modelValue", "multiple", "nullable", "onUpdate:modelValue", "virtual"]) }, ourProps: {}, slot: F, slots: t, attrs: n, name: "Combobox" })]);
1441
1441
  };
1442
1442
  } });
1443
1443
  H({ name: "ComboboxLabel", props: { as: { type: [Object, String], default: "label" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n }) {
@@ -2138,7 +2138,7 @@ let jn = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Ks = H({ name: "Dialog", inheri
2138
2138
  Me(_r, F);
2139
2139
  let M = D(() => !(!b.value || A.value));
2140
2140
  or(y, (W, Q) => {
2141
- F.close(), xe(() => Q == null ? void 0 : Q.focus());
2141
+ W.preventDefault(), F.close(), xe(() => Q == null ? void 0 : Q.focus());
2142
2142
  }, M);
2143
2143
  let U = D(() => !(A.value || g.value !== 0));
2144
2144
  Do((o = f.value) == null ? void 0 : o.defaultView, "keydown", (W) => {
@@ -2339,7 +2339,7 @@ let au = H({ name: "Listbox", emits: { "update:modelValue": (e) => !0 }, props:
2339
2339
  }, { immediate: !0 });
2340
2340
  }), () => {
2341
2341
  let { name: w, modelValue: c, disabled: S, form: y, ...O } = e, x = { open: a.value === 0, disabled: S, value: g.value };
2342
- return fe(Ce, [...w != null && g.value != null ? ur({ [w]: g.value }).map(([N, E]) => fe(Tt, ea({ features: It.Hidden, key: N, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: y, name: N, value: E }))) : [], pe({ ourProps: {}, theirProps: { ...n, ...Bt(O, ["defaultValue", "onUpdate:modelValue", "horizontal", "multiple", "by"]) }, slot: x, slots: t, attrs: n, name: "Listbox" })]);
2342
+ return fe(Ce, [...w != null && g.value != null ? ur({ [w]: g.value }).map(([N, E]) => fe(Tt, ea({ features: It.Hidden, key: N, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: y, disabled: S, name: N, value: E }))) : [], pe({ ourProps: {}, theirProps: { ...n, ...Bt(O, ["defaultValue", "onUpdate:modelValue", "horizontal", "multiple", "by"]) }, slot: x, slots: t, attrs: n, name: "Listbox" })]);
2343
2343
  };
2344
2344
  } });
2345
2345
  H({ name: "ListboxLabel", props: { as: { type: [Object, String], default: "label" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n }) {
@@ -2684,8 +2684,8 @@ let cu = H({ name: "Menu", props: { as: { type: [Object, String], default: "temp
2684
2684
  h.wasMoved(b) && (e.disabled || s.value && o.goToItem(oe.Nothing));
2685
2685
  }
2686
2686
  return () => {
2687
- let { disabled: b } = e, A = { active: s.value, disabled: b, close: o.closeMenu }, { ...w } = e;
2688
- return pe({ ourProps: { id: i, ref: l, role: "menuitem", tabIndex: b === !0 ? void 0 : -1, "aria-disabled": b === !0 ? !0 : void 0, disabled: void 0, onClick: p, onFocus: v, onPointerenter: m, onMouseenter: m, onPointermove: f, onMousemove: f, onPointerleave: g, onMouseleave: g }, theirProps: { ...n, ...w }, slot: A, attrs: n, slots: t, name: "MenuItem" });
2687
+ let { disabled: b, ...A } = e, w = { active: s.value, disabled: b, close: o.closeMenu };
2688
+ return pe({ ourProps: { id: i, ref: l, role: "menuitem", tabIndex: b === !0 ? void 0 : -1, "aria-disabled": b === !0 ? !0 : void 0, onClick: p, onFocus: v, onPointerenter: m, onMouseenter: m, onPointermove: f, onMousemove: f, onPointerleave: g, onMouseleave: g }, theirProps: { ...n, ...A }, slot: w, attrs: n, slots: t, name: "MenuItem" });
2689
2689
  };
2690
2690
  } }), No = Symbol("LabelContext");
2691
2691
  function jo() {
@@ -2811,7 +2811,7 @@ let hu = H({ name: "RadioGroup", emits: { "update:modelValue": (e) => !0 }, prop
2811
2811
  }, { immediate: !0 });
2812
2812
  }), () => {
2813
2813
  let { disabled: g, name: b, form: A, ...w } = e, c = { ref: l, id: o, role: "radiogroup", "aria-labelledby": d.value, "aria-describedby": u.value, onKeydown: m };
2814
- return fe(Ce, [...b != null && p.value != null ? ur({ [b]: p.value }).map(([S, y]) => fe(Tt, ea({ features: It.Hidden, key: S, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: A, name: S, value: y }))) : [], pe({ ourProps: c, theirProps: { ...n, ...Bt(w, ["modelValue", "defaultValue", "by"]) }, slot: {}, attrs: n, slots: r, name: "RadioGroup" })]);
2814
+ return fe(Ce, [...b != null && p.value != null ? ur({ [b]: p.value }).map(([S, y]) => fe(Tt, ea({ features: It.Hidden, key: S, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: A, disabled: g, name: S, value: y }))) : [], pe({ ourProps: c, theirProps: { ...n, ...Bt(w, ["modelValue", "defaultValue", "by"]) }, slot: {}, attrs: n, slots: r, name: "RadioGroup" })]);
2815
2815
  };
2816
2816
  } });
2817
2817
  var gu = ((e) => (e[e.Empty = 1] = "Empty", e[e.Active = 2] = "Active", e))(gu || {});
@@ -2899,9 +2899,10 @@ let na = Symbol("TabsSSRContext"), xu = H({ name: "TabGroup", emits: { change: (
2899
2899
  if (o.value.includes(f))
2900
2900
  return;
2901
2901
  let b = o.value[i.value];
2902
- o.value.push(f), o.value = pt(o.value, L);
2903
- let A = (g = o.value.indexOf(b)) != null ? g : i.value;
2904
- A !== -1 && (i.value = A);
2902
+ if (o.value.push(f), o.value = pt(o.value, L), !s.value) {
2903
+ let A = (g = o.value.indexOf(b)) != null ? g : i.value;
2904
+ A !== -1 && (i.value = A);
2905
+ }
2905
2906
  }, unregisterTab(f) {
2906
2907
  let g = o.value.indexOf(f);
2907
2908
  g !== -1 && o.value.splice(g, 1);
@@ -3000,9 +3001,9 @@ let na = Symbol("TabsSSRContext"), xu = H({ name: "TabGroup", emits: { change: (
3000
3001
  }
3001
3002
  let b = ir(D(() => ({ as: e.as, type: t.type })), l);
3002
3003
  return () => {
3003
- var A;
3004
- let w = { selected: p.value }, { ...c } = e, S = { ref: l, onKeydown: h, onMousedown: g, onClick: f, id: i, role: "tab", type: b.value, "aria-controls": (A = L(o.panels.value[u.value])) == null ? void 0 : A.id, "aria-selected": p.value, tabIndex: p.value ? 0 : -1, disabled: e.disabled ? !0 : void 0 };
3005
- return pe({ ourProps: S, theirProps: c, slot: w, attrs: t, slots: n, name: "Tab" });
3004
+ var A, w;
3005
+ let c = { selected: p.value, disabled: (A = e.disabled) != null ? A : !1 }, { ...S } = e, y = { ref: l, onKeydown: h, onMousedown: g, onClick: f, id: i, role: "tab", type: b.value, "aria-controls": (w = L(o.panels.value[u.value])) == null ? void 0 : w.id, "aria-selected": p.value, tabIndex: p.value ? 0 : -1, disabled: e.disabled ? !0 : void 0 };
3006
+ return pe({ ourProps: y, theirProps: S, slot: c, attrs: t, slots: n, name: "Tab" });
3006
3007
  };
3007
3008
  } }), ku = H({ name: "TabPanels", props: { as: { type: [Object, String], default: "div" } }, setup(e, { slots: t, attrs: n }) {
3008
3009
  let r = In("TabPanels");
@@ -4997,12 +4998,9 @@ const Uc = { class: "toast-container" }, zc = { class: "self-start mt-0.5" }, qc
4997
4998
  id: l,
4998
4999
  message: i,
4999
5000
  color: (o == null ? void 0 : o.color) ?? "primary"
5000
- }), ((o == null ? void 0 : o.autoClose) ?? !0) && setTimeout(
5001
- () => {
5002
- a(l);
5003
- },
5004
- (o == null ? void 0 : o.timer) ?? 3e3
5005
- );
5001
+ }), ((o == null ? void 0 : o.autoClose) ?? !0) && setTimeout(() => {
5002
+ a(l);
5003
+ }, (o == null ? void 0 : o.timer) ?? 3e3);
5006
5004
  }, a = (i) => {
5007
5005
  const o = n.value.findIndex((l) => l.id === i);
5008
5006
  o > -1 && n.value.splice(o, 1);
@@ -5051,7 +5049,7 @@ const Uc = { class: "toast-container" }, zc = { class: "self-start mt-0.5" }, qc
5051
5049
  ]);
5052
5050
  };
5053
5051
  }
5054
- }), Jc = /* @__PURE__ */ ce(Gc, [["__scopeId", "data-v-7407f639"]]);
5052
+ }), Jc = /* @__PURE__ */ ce(Gc, [["__scopeId", "data-v-93cb6d85"]]);
5055
5053
  /*!
5056
5054
  * vue-tippy v6.4.1
5057
5055
  * (c) 2023