pgo-ui 1.1.154 → 1.1.155

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.
@@ -0,0 +1,4 @@
1
+ import { _ as f } from "./index-BBKH2mVF.js";
2
+ export {
3
+ f as default
4
+ };
@@ -13132,7 +13132,7 @@ function iy() {
13132
13132
  );
13133
13133
  }
13134
13134
  const oy = /* @__PURE__ */ Symbol("ContextKey"), LT = (n, e) => {
13135
- const { setTimeModelValue: t } = cs(), s = CD(n), a = B(null), r = $t({
13135
+ const { setTimeModelValue: t } = ds(), s = CD(n), a = B(null), r = $t({
13136
13136
  menuFocused: !1,
13137
13137
  shiftKeyInMenu: !1,
13138
13138
  isInputFocused: !1,
@@ -13275,7 +13275,7 @@ const BT = () => {
13275
13275
  n.arrowNavigation && document.removeEventListener("keydown", c);
13276
13276
  });
13277
13277
  }, RT = () => {
13278
- const { checkPartialRangeValue: n, checkRangeEnabled: e, isValidDate: t } = rn(), { convertType: s, errorMapper: a } = cs(), {
13278
+ const { checkPartialRangeValue: n, checkRangeEnabled: e, isValidDate: t } = rn(), { convertType: s, errorMapper: a } = ds(), {
13279
13279
  getDate: r,
13280
13280
  rootEmit: i,
13281
13281
  state: o,
@@ -13385,7 +13385,7 @@ const BT = () => {
13385
13385
  time: t,
13386
13386
  modelValue: s,
13387
13387
  defaults: { range: a }
13388
- } = yt(), { setTimeModelValue: r } = cs();
13388
+ } = yt(), { setTimeModelValue: r } = ds();
13389
13389
  Ie(
13390
13390
  a,
13391
13391
  (i, o) => {
@@ -13404,7 +13404,7 @@ const BT = () => {
13404
13404
  defaults: { safeDates: n, range: e, multiDates: t, filters: s, timeConfig: a },
13405
13405
  rootProps: r,
13406
13406
  getDate: i
13407
- } = yt(), { getMapKeyType: o, getMapDate: l, errorMapper: d, convertType: c } = cs(), { isDateBefore: u, isDateAfter: f, isDateEqual: h, resetDate: g, getDaysInBetween: p, setTimeValue: m, getTimeObj: y, setTime: v } = Ts(), w = (Y) => n.value.disabledDates ? typeof n.value.disabledDates == "function" ? n.value.disabledDates(i(Y)) : !!l(Y, n.value.disabledDates) : !1, x = (Y) => n.value.maxDate ? r.yearPicker ? ct(Y) > ct(n.value.maxDate) : f(Y, n.value.maxDate) : !1, k = (Y) => n.value.minDate ? r.yearPicker ? ct(Y) < ct(n.value.minDate) : u(Y, n.value.minDate) : !1, C = (Y) => {
13407
+ } = yt(), { getMapKeyType: o, getMapDate: l, errorMapper: d, convertType: c } = ds(), { isDateBefore: u, isDateAfter: f, isDateEqual: h, resetDate: g, getDaysInBetween: p, setTimeValue: m, getTimeObj: y, setTime: v } = Ts(), w = (Y) => n.value.disabledDates ? typeof n.value.disabledDates == "function" ? n.value.disabledDates(i(Y)) : !!l(Y, n.value.disabledDates) : !1, x = (Y) => n.value.maxDate ? r.yearPicker ? ct(Y) > ct(n.value.maxDate) : f(Y, n.value.maxDate) : !1, k = (Y) => n.value.minDate ? r.yearPicker ? ct(Y) < ct(n.value.minDate) : u(Y, n.value.minDate) : !1, C = (Y) => {
13408
13408
  if (!Y) return !1;
13409
13409
  const re = x(Y), ce = k(Y), ne = w(Y), me = s.value.months.map((K) => +K).includes(vt(Y)), j = s.value.weekDays?.length ? s.value.weekDays.some((K) => +K === kk(Y)) : !1, he = H(Y), z = ct(Y), J = z < +r.yearRange[0] || z > +r.yearRange[1];
13410
13410
  return !(re || ce || ne || me || J || j || he);
@@ -14156,7 +14156,7 @@ const HT = {
14156
14156
  hideOnOffsetDates: !1,
14157
14157
  label: "W"
14158
14158
  }, CD = (n) => {
14159
- const { getMapKey: e, getMapKeyType: t, getTimeObjFromCurrent: s } = cs();
14159
+ const { getMapKey: e, getMapKeyType: t, getTimeObjFromCurrent: s } = ds();
14160
14160
  function a(N, Q) {
14161
14161
  let _;
14162
14162
  return n.timezone ? _ = new Br(N ?? /* @__PURE__ */ new Date(), n.timezone) : _ = N ? new Date(N) : /* @__PURE__ */ new Date(), Q ? gt(_, { hours: 0, minutes: 0, seconds: 0, milliseconds: 0 }) : _;
@@ -14278,7 +14278,7 @@ const HT = {
14278
14278
  floatingConfig: V,
14279
14279
  getDate: a
14280
14280
  };
14281
- }, cs = () => {
14281
+ }, ds = () => {
14282
14282
  const n = (v, w) => Hs(v, w ?? Rr.DATE), e = (v, w) => v ? Rr.MONTH_AND_YEAR : w ? Rr.YEAR : Rr.DATE, t = (v, w, x) => w.get(n(v, x)), s = (v) => v, a = (v) => v === 0 ? v : !v || Number.isNaN(+v) ? null : +v, r = () => [
14283
14283
  "a[href]",
14284
14284
  "area[href]",
@@ -14358,7 +14358,7 @@ const HT = {
14358
14358
  errorMapper: m
14359
14359
  };
14360
14360
  }, Ts = () => {
14361
- const { getDate: n } = yt(), { getMapDate: e, getGroupedList: t } = cs(), s = (y, v) => {
14361
+ const { getDate: n } = yt(), { getMapDate: e, getGroupedList: t } = ds(), s = (y, v) => {
14362
14362
  if (!y) return n();
14363
14363
  const w = n(y), x = gt(w, { hours: 0, minutes: 0, seconds: 0, milliseconds: 0 });
14364
14364
  return v ? P1(x) : x;
@@ -14523,7 +14523,7 @@ const HT = {
14523
14523
  getDate: n,
14524
14524
  rootProps: e,
14525
14525
  defaults: { textInput: t, startTime: s, timeConfig: a }
14526
- } = yt(), { getTimeObjFromCurrent: r } = cs(), i = B(!1), o = I(
14526
+ } = yt(), { getTimeObjFromCurrent: r } = ds(), i = B(!1), o = I(
14527
14527
  () => Array.isArray(s.value) ? s.value[0] : s.value ?? r(n(), {}, a.value.enableSeconds)
14528
14528
  ), l = (c, u) => {
14529
14529
  const f = /[^a-zA-Z]+/g, h = /\D+/g, g = u.split(h), p = c.split(f), m = c.match(f) || [], y = u.match(h) || [];
@@ -14891,7 +14891,7 @@ const Cr = [
14891
14891
  inputValue: i,
14892
14892
  rootProps: o,
14893
14893
  defaults: { textInput: l, ariaLabels: d, inline: c, config: u, range: f, multiDates: h, ui: g, inputAttrs: p }
14894
- } = yt(), { checkMinMaxRange: m, isValidDate: y } = rn(), { parseFreeInput: v, textPasted: w, createMaskedValue: x, applyMaxValues: k } = TD(), { checkKeyDown: C, checkStopPropagation: S } = cs(), { boolHtmlAttribute: T } = ni(), E = It("dp-input"), M = B(null), H = B(!1), O = I(
14894
+ } = yt(), { checkMinMaxRange: m, isValidDate: y } = rn(), { parseFreeInput: v, textPasted: w, createMaskedValue: x, applyMaxValues: k } = TD(), { checkKeyDown: C, checkStopPropagation: S } = ds(), { boolHtmlAttribute: T } = ni(), E = It("dp-input"), M = B(null), H = B(!1), O = I(
14895
14895
  () => ({
14896
14896
  dp__pointer: !o.disabled && !o.readonly && !l.value.enabled,
14897
14897
  dp__disabled: o.disabled,
@@ -15073,7 +15073,7 @@ const Cr = [
15073
15073
  rootProps: r,
15074
15074
  modelValue: i,
15075
15075
  defaults: { actionRow: o, multiCalendars: l, inline: d, range: c, multiDates: u, formats: f }
15076
- } = yt(), { isTimeValid: h, isMonthValid: g } = rn(), { formatPreview: p } = Da(), { checkKeyDown: m, convertType: y } = cs(), { boolHtmlAttribute: v } = ni(), w = It("action-buttons-container"), x = It("action-row"), k = B(!1), C = B({});
15076
+ } = yt(), { isTimeValid: h, isMonthValid: g } = rn(), { formatPreview: p } = Da(), { checkKeyDown: m, convertType: y } = ds(), { boolHtmlAttribute: v } = ni(), w = It("action-buttons-container"), x = It("action-row"), k = B(!1), C = B({});
15077
15077
  Ke(() => {
15078
15078
  S(), globalThis.addEventListener("resize", S);
15079
15079
  }), Aa(() => {
@@ -15182,7 +15182,7 @@ const Cr = [
15182
15182
  const t = e, s = n, {
15183
15183
  setState: a,
15184
15184
  defaults: { ariaLabels: r, config: i }
15185
- } = yt(), { hideNavigationButtons: o } = Dc(), { handleEventPropagation: l, checkKeyDown: d } = cs(), c = It("toggle-button"), u = It("overlay-container"), f = It("grid-wrap"), h = B(!1), g = B(null), p = B(), m = B(0);
15185
+ } = yt(), { hideNavigationButtons: o } = Dc(), { handleEventPropagation: l, checkKeyDown: d } = ds(), c = It("toggle-button"), u = It("overlay-container"), f = It("grid-wrap"), h = B(!1), g = B(null), p = B(), m = B(0);
15186
15186
  yx(() => {
15187
15187
  g.value = null;
15188
15188
  }), Ke(async () => {
@@ -15340,7 +15340,7 @@ const Cr = [
15340
15340
  },
15341
15341
  emits: ["activate", "set-ref"],
15342
15342
  setup(n, { emit: e }) {
15343
- const { checkKeyDown: t } = cs(), s = e;
15343
+ const { checkKeyDown: t } = ds(), s = e;
15344
15344
  return (a, r) => (A(), D("button", {
15345
15345
  ref: "arrow-btn",
15346
15346
  type: "button",
@@ -15595,7 +15595,7 @@ const Cr = [
15595
15595
  yo(() => {
15596
15596
  a.isTextInputDate && N(ct(t(l.startDate)), 0);
15597
15597
  });
15598
- const { checkMinMaxRange: g, checkMinMaxValue: p } = rn(), { isDateBetween: m, resetDateTime: y, resetDate: v, getMinMonth: w, getMaxMonth: x, checkHighlightMonth: k, groupListAndMap: C } = Ts(), { checkRangeAutoApply: S, getRangeWithFixedDate: T, handleMultiDatesSelect: E, setMonthOrYearRange: M, setPresetDate: H } = Mc(), { padZero: O } = cs(), { getMonths: X, isOutOfYearRange: L } = Tc(), F = I(() => X()), V = B(null), {
15598
+ const { checkMinMaxRange: g, checkMinMaxValue: p } = rn(), { isDateBetween: m, resetDateTime: y, resetDate: v, getMinMonth: w, getMaxMonth: x, checkHighlightMonth: k, groupListAndMap: C } = Ts(), { checkRangeAutoApply: S, getRangeWithFixedDate: T, handleMultiDatesSelect: E, setMonthOrYearRange: M, setPresetDate: H } = Mc(), { padZero: O } = ds(), { getMonths: X, isOutOfYearRange: L } = Tc(), F = I(() => X()), V = B(null), {
15599
15599
  selectYear: N,
15600
15600
  groupedYears: Q,
15601
15601
  showYearPicker: _,
@@ -15905,7 +15905,7 @@ const Cr = [
15905
15905
  rootEmit: i,
15906
15906
  rootProps: o,
15907
15907
  defaults: { ariaLabels: l, filters: d, config: c, range: u, multiCalendars: f, timeConfig: h }
15908
- } = yt(), { checkKeyDown: g, hoursToAmPmHours: p } = cs(), { boolHtmlAttribute: m } = ni(), { sanitizeTime: y, groupListAndMap: v } = Ts(), { transitionName: w, showTransition: x } = mo(), k = $t({
15908
+ } = yt(), { checkKeyDown: g, hoursToAmPmHours: p } = ds(), { boolHtmlAttribute: m } = ni(), { sanitizeTime: y, groupListAndMap: v } = Ts(), { transitionName: w, showTransition: x } = mo(), k = $t({
15909
15909
  hours: !1,
15910
15910
  minutes: !1,
15911
15911
  seconds: !1
@@ -16170,7 +16170,7 @@ const Cr = [
16170
16170
  modelValue: o,
16171
16171
  rootProps: l,
16172
16172
  defaults: { ariaLabels: d, textInput: c, config: u, range: f, timeConfig: h }
16173
- } = yt(), { isModelAuto: g } = Ts(), { checkKeyDown: p, findFocusableEl: m } = cs(), { transitionName: y, showTransition: v } = mo(), { hideNavigationButtons: w } = Dc(), { isMobile: x } = Ac(), k = Vn(), C = It("overlay"), S = It("close-tp-btn"), T = It("tp-input"), E = B(!1);
16173
+ } = yt(), { isModelAuto: g } = Ts(), { checkKeyDown: p, findFocusableEl: m } = ds(), { transitionName: y, showTransition: v } = mo(), { hideNavigationButtons: w } = Dc(), { isMobile: x } = Ac(), k = Vn(), C = It("overlay"), S = It("close-tp-btn"), T = It("tp-input"), E = B(!1);
16174
16174
  Ke(() => {
16175
16175
  s("mount");
16176
16176
  });
@@ -16545,7 +16545,7 @@ const Cr = [
16545
16545
  rootProps: i,
16546
16546
  modelValue: o,
16547
16547
  defaults: { ariaLabels: l, filters: d, config: c, highlight: u, safeDates: f, ui: h }
16548
- } = yt(), { transitionName: g, showTransition: p } = mo(), { showLeftIcon: m, showRightIcon: y } = Dc(), { handleMonthYearChange: v, isDisabled: w, updateMonthYear: x } = lE(a, s), { getMaxMonth: k, getMinMonth: C, getYearFromDate: S, groupListAndMap: T, checkHighlightYear: E, checkHighlightMonth: M } = Ts(), { checkKeyDown: H } = cs(), { formatYear: O } = Da(), { checkMinMaxValue: X } = rn(), { boolHtmlAttribute: L } = ni(), F = B(!1), V = B(!1), N = B(!1);
16548
+ } = yt(), { transitionName: g, showTransition: p } = mo(), { showLeftIcon: m, showRightIcon: y } = Dc(), { handleMonthYearChange: v, isDisabled: w, updateMonthYear: x } = lE(a, s), { getMaxMonth: k, getMinMonth: C, getYearFromDate: S, groupListAndMap: T, checkHighlightYear: E, checkHighlightMonth: M } = Ts(), { checkKeyDown: H } = ds(), { formatYear: O } = Da(), { checkMinMaxValue: X } = rn(), { boolHtmlAttribute: L } = ni(), F = B(!1), V = B(!1), N = B(!1);
16549
16549
  Ke(() => {
16550
16550
  s("mount");
16551
16551
  });
@@ -16787,7 +16787,7 @@ const Cr = [
16787
16787
  rootEmit: i,
16788
16788
  rootProps: o,
16789
16789
  defaults: { transitions: l, config: d, ariaLabels: c, multiCalendars: u, weekNumbers: f, multiDates: h, ui: g }
16790
- } = yt(), { isDateAfter: p, isDateEqual: m, resetDateTime: y, getCellId: v } = Ts(), { checkKeyDown: w, checkStopPropagation: x, isTouchDevice: k } = cs(), { formatWeekDay: C } = Da(), S = It("calendar-wrap"), T = It("active-tooltip"), E = B([]), M = B(null), H = B(!0), O = B(!1), X = B(""), L = B({
16790
+ } = yt(), { isDateAfter: p, isDateEqual: m, resetDateTime: y, getCellId: v } = Ts(), { checkKeyDown: w, checkStopPropagation: x, isTouchDevice: k } = ds(), { formatWeekDay: C } = Da(), S = It("calendar-wrap"), T = It("active-tooltip"), E = B([]), M = B(null), H = B(!0), O = B(!1), X = B(""), L = B({
16791
16791
  bottom: "",
16792
16792
  left: "",
16793
16793
  transform: ""
@@ -17013,7 +17013,7 @@ const Cr = [
17013
17013
  today: p,
17014
17014
  state: m,
17015
17015
  defaults: { multiCalendars: y, startTime: v, range: w, config: x, safeDates: k, multiDates: C, timeConfig: S, flow: T }
17016
- } = yt(), { validateMonthYearInRange: E, isDisabled: M, isDateRangeAllowed: H, checkMinMaxRange: O } = rn(), { updateTimeValues: X, getSetDateTime: L, assignTime: F, assignStartTime: V, validateTime: N, disabledTimesConfig: Q } = py(s), { formatDay: _ } = Da(), { resetDateTime: ee, setTime: ae, isDateBefore: U, isDateEqual: le, getDaysInBetween: be } = Ts(), { checkRangeAutoApply: Ae, getRangeWithFixedDate: Ce, handleMultiDatesSelect: de, setPresetDate: oe } = Mc(), { getMapDate: xe } = cs();
17016
+ } = yt(), { validateMonthYearInRange: E, isDisabled: M, isDateRangeAllowed: H, checkMinMaxRange: O } = rn(), { updateTimeValues: X, getSetDateTime: L, assignTime: F, assignStartTime: V, validateTime: N, disabledTimesConfig: Q } = py(s), { formatDay: _ } = Da(), { resetDateTime: ee, setTime: ae, isDateBefore: U, isDateEqual: le, getDaysInBetween: be } = Ts(), { checkRangeAutoApply: Ae, getRangeWithFixedDate: Ce, handleMultiDatesSelect: de, setPresetDate: oe } = Mc(), { getMapDate: xe } = ds();
17017
17017
  yo(() => ne(m.isTextInputDate));
17018
17018
  const W = (ge) => !x.value.keepViewOnOffsetClick || ge ? !0 : !i.value, se = (ge, Be, et, pt = !1) => {
17019
17019
  W(pt) && (d.value[ge] ??= d.value[ge] = { month: 0, year: 0 }, d.value[ge].month = Be ?? d.value[ge]?.month, d.value[ge].year = et ?? d.value[ge]?.year);
@@ -17023,7 +17023,7 @@ const Cr = [
17023
17023
  v.value && V(v.value);
17024
17024
  };
17025
17025
  Ke(() => {
17026
- h.value || (ds(), Y()), ne(!0), g.focusStartDate && g.startDate && ds();
17026
+ h.value || (ls(), Y()), ne(!0), g.focusStartDate && g.startDate && ls();
17027
17027
  });
17028
17028
  const re = I(() => T.value?.steps?.length && !T.value?.partial ? n.flowStep === T.value.steps.length : !0), ce = () => {
17029
17029
  g.autoApply && re.value && e("auto-apply", T.value?.partial ? n.flowStep !== T.value?.steps?.length : !1);
@@ -17084,7 +17084,7 @@ const Cr = [
17084
17084
  const ge = o(o(h.value[1] ?? pn(h.value[0], 1))), [Be, et] = [vt(h.value[0]), ct(h.value[0])], [pt, Wt] = [vt(h.value[1]), ct(h.value[1])];
17085
17085
  (Be !== pt || Be === pt && et !== Wt) && y.value.solo && se(1, vt(ge), ct(ge));
17086
17086
  } else h.value && !Array.isArray(h.value) && (se(0, vt(h.value), ct(h.value)), he(o()));
17087
- }, ds = () => {
17087
+ }, ls = () => {
17088
17088
  g.startDate && (se(0, vt(o(g.startDate)), ct(o(g.startDate))), y.value.count && Ye(0));
17089
17089
  }, gs = (ge, Be) => {
17090
17090
  if (x.value.monthChangeOnScroll) {
@@ -17798,7 +17798,7 @@ const Cr = [
17798
17798
  rootProps: i,
17799
17799
  defaults: { textInput: o, inline: l, config: d, ui: c, ariaLabels: u },
17800
17800
  setState: f
17801
- } = yt(), { isMobile: h } = Ac(), { handleEventPropagation: g, getElWithin: p, checkStopPropagation: m, checkKeyDown: y } = cs();
17801
+ } = yt(), { isMobile: h } = Ac(), { handleEventPropagation: g, getElWithin: p, checkStopPropagation: m, checkKeyDown: y } = ds();
17802
17802
  BT();
17803
17803
  const v = It("inner-menu"), w = It("dp-menu"), x = It("dyn-cmp"), k = B(0), C = B(!1), S = B(!1), { flowStep: T, updateFlowStep: E, childMount: M, resetFlow: H, handleFlow: O } = IT(x), X = (ne) => {
17804
17804
  S.value = !0, d.value.allowPreventDefault && ne.preventDefault(), m(ne, d.value, !0);
@@ -18000,7 +18000,7 @@ const Cr = [
18000
18000
  modelValue: r,
18001
18001
  rootProps: i,
18002
18002
  defaults: { inline: o, config: l, textInput: d, range: c, multiDates: u, teleport: f, floatingConfig: h }
18003
- } = yt(), { validateDate: g, isValidTime: p } = rn(), { menuTransition: m, showTransition: y } = mo(), { isMobile: v } = Ac(), { findNextFocusableElement: w, getNumVal: x } = cs(), k = Vn(), C = B(!1), S = B(o.value.enabled || i.centered), T = zd(i, "modelValue"), E = zd(i, "timezone"), M = It("dp-menu-wrap"), H = It("dp-menu"), O = It("input-cmp"), X = It("picker-wrapper"), L = It("menu-arrow"), F = B(!1), V = B(!1), N = B(!1), Q = B(!0), _ = (Ve) => (h.value.arrow && Ve.push(
18003
+ } = yt(), { validateDate: g, isValidTime: p } = rn(), { menuTransition: m, showTransition: y } = mo(), { isMobile: v } = Ac(), { findNextFocusableElement: w, getNumVal: x } = ds(), k = Vn(), C = B(!1), S = B(o.value.enabled || i.centered), T = zd(i, "modelValue"), E = zd(i, "timezone"), M = It("dp-menu-wrap"), H = It("dp-menu"), O = It("input-cmp"), X = It("picker-wrapper"), L = It("menu-arrow"), F = B(!1), V = B(!1), N = B(!1), Q = B(!0), _ = (Ve) => (h.value.arrow && Ve.push(
18004
18004
  CT({ element: h.value.arrow === !0 ? L : h.value.arrow })
18005
18005
  ), h.value.flip && Ve.push(xT(typeof h.value.flip == "object" ? h.value.flip : {})), h.value.shift && Ve.push(bT(typeof h.value.shift == "object" ? h.value.shift : {})), Ve), { floatingStyles: ee, middlewareData: ae, placement: U, y: le } = AT(
18006
18006
  O,
@@ -18077,7 +18077,7 @@ const Cr = [
18077
18077
  We && je ? (s("isTextInputDate", !0), r.value = Ve, ye ? (F.value = Se, J(), t("text-submit")) : i.autoApply && Me(!0), ot().then(() => {
18078
18078
  s("isTextInputDate", !1);
18079
18079
  })) : t("invalid-date", Ve);
18080
- }, ds = () => {
18080
+ }, ls = () => {
18081
18081
  i.autoApply && p(r.value) && de(), pe();
18082
18082
  }, gs = () => C.value ? Ye() : j(), on = (Ve) => {
18083
18083
  r.value = Ve;
@@ -18177,7 +18177,7 @@ const Cr = [
18177
18177
  onClosePicker: Ye,
18178
18178
  onSelectDate: J,
18179
18179
  onAutoApply: Me,
18180
- onTimeUpdate: ds,
18180
+ onTimeUpdate: ls,
18181
18181
  onMenuBlur: ye[1] || (ye[1] = (Se) => P(t)("blur"))
18182
18182
  }, Xt({ _: 2 }, [
18183
18183
  De(P(be), (Se, We) => ({
@@ -19071,7 +19071,7 @@ const Cr = [
19071
19071
  return Array.isArray(J) && J.length > 0;
19072
19072
  })), xe = I(() => {
19073
19073
  const z = {}, J = new Set(p.form.fields.map((K) => K.inputType?.toLowerCase()));
19074
- return (J.has("search") || J.has("inputsearch")) && (z.search = tt(() => Promise.resolve().then(() => dp)), z.inputsearch = tt(() => Promise.resolve().then(() => dp))), J.has("select") && (z.select = tt(() => Promise.resolve().then(() => df))), J.has("textarea") && (z.textarea = tt(() => Promise.resolve().then(() => my))), (J.has("textfield") || J.has("text") || J.has("string")) && (z.textfield = tt(() => Promise.resolve().then(() => Ka)), z.text = tt(() => Promise.resolve().then(() => Ka)), z.string = tt(() => Promise.resolve().then(() => Ka))), (J.has("datepicker") || J.has("date")) && (z.datepicker = tt(() => Promise.resolve().then(() => $r)), z.date = tt(() => Promise.resolve().then(() => $r))), J.has("chipgroup") && (z.chipgroup = tt(() => Promise.resolve().then(() => Wm))), J.has("checkbox") && (z.checkbox = tt(() => Promise.resolve().then(() => jC))), J.has("radio") && (z.radio = tt(() => import("./Radio-lv5ErzIB.js"))), (J.has("numberfield") || J.has("number")) && (z.numberfield = tt(() => Promise.resolve().then(() => Qr)), z.number = tt(() => Promise.resolve().then(() => Qr))), (J.has("file") || J.has("filefield")) && (z.file = tt(() => Promise.resolve().then(() => ap)), z.filefield = tt(() => Promise.resolve().then(() => ap))), (J.has("label") || J.has("labelfield")) && (z.label = tt(() => Promise.resolve().then(() => ip)), z.labelfield = tt(() => Promise.resolve().then(() => ip))), z;
19074
+ return (J.has("search") || J.has("inputsearch")) && (z.search = tt(() => Promise.resolve().then(() => dp)), z.inputsearch = tt(() => Promise.resolve().then(() => dp))), J.has("select") && (z.select = tt(() => Promise.resolve().then(() => df))), J.has("textarea") && (z.textarea = tt(() => Promise.resolve().then(() => my))), (J.has("textfield") || J.has("text") || J.has("string")) && (z.textfield = tt(() => Promise.resolve().then(() => Ka)), z.text = tt(() => Promise.resolve().then(() => Ka)), z.string = tt(() => Promise.resolve().then(() => Ka))), (J.has("datepicker") || J.has("date")) && (z.datepicker = tt(() => Promise.resolve().then(() => $r)), z.date = tt(() => Promise.resolve().then(() => $r))), J.has("chipgroup") && (z.chipgroup = tt(() => Promise.resolve().then(() => Wm))), J.has("checkbox") && (z.checkbox = tt(() => Promise.resolve().then(() => jC))), J.has("radio") && (z.radio = tt(() => import("./Radio-CMYLN48E.js"))), (J.has("numberfield") || J.has("number")) && (z.numberfield = tt(() => Promise.resolve().then(() => Qr)), z.number = tt(() => Promise.resolve().then(() => Qr))), (J.has("file") || J.has("filefield")) && (z.file = tt(() => Promise.resolve().then(() => ap)), z.filefield = tt(() => Promise.resolve().then(() => ap))), (J.has("label") || J.has("labelfield")) && (z.label = tt(() => Promise.resolve().then(() => ip)), z.labelfield = tt(() => Promise.resolve().then(() => ip))), z;
19075
19075
  }), W = (z) => {
19076
19076
  const J = z?.toLowerCase() || "textfield";
19077
19077
  return xe.value[J] || xe.value.textfield;
@@ -19094,7 +19094,7 @@ const Cr = [
19094
19094
  columnSpan: Oe,
19095
19095
  rules: Ye,
19096
19096
  condition: St,
19097
- group: ds,
19097
+ group: ls,
19098
19098
  events: gs,
19099
19099
  hidden: on,
19100
19100
  sendAs: Fs,
@@ -19189,8 +19189,8 @@ const Cr = [
19189
19189
  Me = `${Me}?${Ye}`;
19190
19190
  else {
19191
19191
  const St = {};
19192
- for (const [ds, gs] of Object.entries(Ye))
19193
- St[ds] = typeof gs == "object" && gs !== null ? JSON.stringify(gs) : gs;
19192
+ for (const [ls, gs] of Object.entries(Ye))
19193
+ St[ls] = typeof gs == "object" && gs !== null ? JSON.stringify(gs) : gs;
19194
19194
  Me = `${Me}?payload=${encodeURIComponent(JSON.stringify(Ye))}`;
19195
19195
  }
19196
19196
  }
@@ -19199,15 +19199,15 @@ const Cr = [
19199
19199
  const Ye = Oe;
19200
19200
  if (w.value = Oe || Oe.data || {}, v.id = Oe?.data?.id || Oe?.id, d.value = Oe?.data?.id || Oe?.id, p.form.fields.forEach((St) => {
19201
19201
  if (!St || !St.key) return;
19202
- const ds = St.key;
19203
- if (ds.includes(".")) {
19204
- const gs = be(Ye, ds);
19202
+ const ls = St.key;
19203
+ if (ls.includes(".")) {
19204
+ const gs = be(Ye, ls);
19205
19205
  if (gs !== void 0) {
19206
19206
  v[St.key] = gs;
19207
19207
  return;
19208
19208
  }
19209
19209
  }
19210
- Ye[ds] !== void 0 && (v[St.key] = Ye[ds]);
19210
+ Ye[ls] !== void 0 && (v[St.key] = Ye[ls]);
19211
19211
  }), await ot(), o.value?.validate) {
19212
19212
  const St = await o.value.validate();
19213
19213
  a.value = St?.valid ?? !1;
@@ -20859,7 +20859,7 @@ const SM = /* @__PURE__ */ xt(mM, [["render", kM]]), CM = ["aria-disabled", "onK
20859
20859
  }), vx(() => {
20860
20860
  X();
20861
20861
  }), Vt(() => {
20862
- document.removeEventListener("keydown", Ce), document.removeEventListener("click", ae), window.removeEventListener("resize", ds);
20862
+ document.removeEventListener("keydown", Ce), document.removeEventListener("click", ae), window.removeEventListener("resize", ls);
20863
20863
  });
20864
20864
  let de = null;
20865
20865
  function oe(Pe) {
@@ -20928,15 +20928,15 @@ const SM = /* @__PURE__ */ xt(mM, [["render", kM]]), CM = ["aria-disabled", "onK
20928
20928
  };
20929
20929
  Ye();
20930
20930
  let St;
20931
- const ds = () => {
20931
+ const ls = () => {
20932
20932
  St && window.clearTimeout(St), St = window.setTimeout(() => {
20933
20933
  Ye();
20934
20934
  }, 100);
20935
20935
  };
20936
20936
  Ke(() => {
20937
- window.addEventListener("resize", ds);
20937
+ window.addEventListener("resize", ls);
20938
20938
  }), Vt(() => {
20939
- window.removeEventListener("resize", ds);
20939
+ window.removeEventListener("resize", ls);
20940
20940
  });
20941
20941
  const gs = I(() => f.zIndex !== void 0 && typeof f.zIndex == "number" ? "" : f.overlayAppBar ? "z-40" : "z-0"), on = Fe("layout", null), Fs = B(null), Sn = B(0);
20942
20942
  function ln() {
@@ -48341,7 +48341,7 @@ const Bo = {
48341
48341
  o.push({ path: We });
48342
48342
  } else
48343
48343
  ne(d.items?.componentSettings?.record), x.value = !0, k.value = ye?.uuid ?? ye?.id ?? null;
48344
- }, ds = (ye) => {
48344
+ }, ls = (ye) => {
48345
48345
  console.log("selected item log", ye), me(d.items?.componentSettings?.form), w.value = !0, T.value = ye ?? null, S.value = null, C.value = "create";
48346
48346
  }, gs = (ye) => {
48347
48347
  me(d.items?.componentSettings?.form), w.value = !0, S.value = ye?.uuid ?? ye?.id ?? null, C.value = "edit";
@@ -48491,7 +48491,8 @@ const Bo = {
48491
48491
  }),
48492
48492
  ue(ye.$slots, "table", {
48493
48493
  table: M.value,
48494
- tableData: p.value?.data
48494
+ tableData: p.value?.data,
48495
+ handleAdd: ls
48495
48496
  }, () => [
48496
48497
  n.items.componentSettings?.table ? (A(), we(Pt(be.value), {
48497
48498
  key: 0,
@@ -48510,7 +48511,7 @@ const Bo = {
48510
48511
  "show-delete": M.value?.actions?.showDelete ?? !0,
48511
48512
  "inline-edit": M.value?.showInlineEdit ?? !1,
48512
48513
  onInlineUpdate: J,
48513
- onAdd: ds,
48514
+ onAdd: ls,
48514
48515
  onView: St,
48515
48516
  onEdit: gs,
48516
48517
  onDelete: on,
@@ -56800,7 +56801,7 @@ var FI = () => ({ editor: n, view: e }) => (requestAnimationFrame(() => {
56800
56801
  }
56801
56802
  return !1;
56802
56803
  };
56803
- function ls(n, e) {
56804
+ function cs(n, e) {
56804
56805
  if (typeof n == "string") {
56805
56806
  if (!e.nodes[n])
56806
56807
  throw Error(`There is no node type named '${n}'. Maybe you forgot to add the extension?`);
@@ -56809,7 +56810,7 @@ function ls(n, e) {
56809
56810
  return n;
56810
56811
  }
56811
56812
  var UI = (n) => ({ tr: e, state: t, dispatch: s }) => {
56812
- const a = ls(n, t.schema), r = e.selection.$anchor;
56813
+ const a = cs(n, t.schema), r = e.selection.$anchor;
56813
56814
  for (let i = r.depth; i > 0; i -= 1)
56814
56815
  if (r.node(i).type === a) {
56815
56816
  if (s) {
@@ -57136,7 +57137,7 @@ var mz = (n) => ({ editor: e, view: t, tr: s, dispatch: a }) => {
57136
57137
  }), !0;
57137
57138
  };
57138
57139
  function _r(n, e, t = {}) {
57139
- const { from: s, to: a, empty: r } = n.selection, i = e ? ls(e, n.schema) : null, o = [];
57140
+ const { from: s, to: a, empty: r } = n.selection, i = e ? cs(e, n.schema) : null, o = [];
57140
57141
  n.doc.nodesBetween(s, a, (u, f) => {
57141
57142
  if (u.isText)
57142
57143
  return;
@@ -57151,10 +57152,10 @@ function _r(n, e, t = {}) {
57151
57152
  return r ? !!d.length : d.reduce((u, f) => u + f.to - f.from, 0) >= l;
57152
57153
  }
57153
57154
  var yz = (n, e = {}) => ({ state: t, dispatch: s }) => {
57154
- const a = ls(n, t.schema);
57155
+ const a = cs(n, t.schema);
57155
57156
  return _r(t, a, e) ? T3(t, s) : !1;
57156
57157
  }, vz = () => ({ state: n, dispatch: e }) => Ev(n, e), bz = (n) => ({ state: e, dispatch: t }) => {
57157
- const s = ls(n, e.schema);
57158
+ const s = cs(n, e.schema);
57158
57159
  return F3(s)(e, t);
57159
57160
  }, xz = () => ({ state: n, dispatch: e }) => Tv(n, e);
57160
57161
  function Xf(n, e) {
@@ -57172,7 +57173,7 @@ var wz = (n, e) => ({ tr: t, state: s, dispatch: a }) => {
57172
57173
  );
57173
57174
  if (!o)
57174
57175
  return !1;
57175
- o === "node" && (r = ls(n, s.schema)), o === "mark" && (i = Pa(n, s.schema));
57176
+ o === "node" && (r = cs(n, s.schema)), o === "mark" && (i = Pa(n, s.schema));
57176
57177
  let l = !1;
57177
57178
  return t.selection.ranges.forEach((d) => {
57178
57179
  s.doc.nodesBetween(d.$from.pos, d.$to.pos, (c, u) => {
@@ -57369,7 +57370,7 @@ function Nz(n) {
57369
57370
  );
57370
57371
  }
57371
57372
  function Fz(n, e) {
57372
- const t = ls(e, n.schema), { from: s, to: a } = n.selection, r = [];
57373
+ const t = cs(e, n.schema), { from: s, to: a } = n.selection, r = [];
57373
57374
  n.doc.nodesBetween(s, a, (o) => {
57374
57375
  r.push(o);
57375
57376
  });
@@ -57590,7 +57591,7 @@ var qz = (n, e = {}) => ({ tr: t, state: s, dispatch: a }) => {
57590
57591
  });
57591
57592
  return Gz(s, t, l);
57592
57593
  }, $z = (n, e) => ({ tr: t }) => (t.setMeta(n, e), !0), Qz = (n, e = {}) => ({ state: t, dispatch: s, chain: a }) => {
57593
- const r = ls(n, t.schema);
57594
+ const r = cs(n, t.schema);
57594
57595
  let i;
57595
57596
  return t.selection.$anchor.sameParent(t.selection.$head) && (i = t.selection.$anchor.parent.attrs), r.isTextblock ? a().command(({ commands: o }) => Gp(r, { ...i, ...e })(t) ? !0 : o.clearNodes()).command(({ state: o }) => Gp(r, { ...i, ...e })(o, s)).run() : (console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1);
57596
57597
  }, Kz = (n) => ({ tr: e, dispatch: t }) => {
@@ -57615,7 +57616,7 @@ var qz = (n, e = {}) => ({ tr: t, state: s, dispatch: a }) => {
57615
57616
  }
57616
57617
  return !0;
57617
57618
  }, _z = (n) => ({ state: e, dispatch: t }) => {
57618
- const s = ls(n, e.schema);
57619
+ const s = cs(n, e.schema);
57619
57620
  return X3(s)(e, t);
57620
57621
  };
57621
57622
  function ug(n, e) {
@@ -57653,7 +57654,7 @@ var eN = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: s, editor
57653
57654
  return g;
57654
57655
  }, tN = (n, e = {}) => ({ tr: t, state: s, dispatch: a, editor: r }) => {
57655
57656
  var i;
57656
- const o = ls(n, s.schema), { $from: l, $to: d } = s.selection, c = s.selection.node;
57657
+ const o = cs(n, s.schema), { $from: l, $to: d } = s.selection, c = s.selection.node;
57657
57658
  if (c && c.isBlock || l.depth < 2 || !l.sameParent(d))
57658
57659
  return !1;
57659
57660
  const u = l.node(-1);
@@ -57736,7 +57737,7 @@ function sN(n) {
57736
57737
  return _e.between(s, a);
57737
57738
  }
57738
57739
  var nN = (n, e, t, s = {}) => ({ editor: a, tr: r, state: i, dispatch: o, chain: l, commands: d, can: c }) => {
57739
- const { extensions: u, splittableMarks: f } = a.extensionManager, h = ls(n, i.schema), g = ls(e, i.schema), { selection: p, storedMarks: m } = i, { $from: y, $to: v } = p, w = y.blockRange(v), x = m || p.$to.parentOffset && p.$from.marks();
57740
+ const { extensions: u, splittableMarks: f } = a.extensionManager, h = cs(n, i.schema), g = cs(e, i.schema), { selection: p, storedMarks: m } = i, { $from: y, $to: v } = p, w = y.blockRange(v), x = m || p.$to.parentOffset && p.$from.marks();
57740
57741
  if (!w)
57741
57742
  return !1;
57742
57743
  const k = Fc((X) => wd(X.type.name, u))(p), C = p.from === 0 && p.to === i.doc.content.size, S = i.doc.content.content, T = S.length === 1 ? S[0] : null, E = C && T && wd(T.type.name, u) ? {
@@ -57760,11 +57761,11 @@ var nN = (n, e, t, s = {}) => ({ editor: a, tr: r, state: i, dispatch: o, chain:
57760
57761
  const { extendEmptyMarkRange: r = !1 } = t, i = Pa(n, s.schema);
57761
57762
  return Wz(s, i, e) ? a.unsetMark(i, { extendEmptyMarkRange: r }) : a.setMark(i, e);
57762
57763
  }, rN = (n, e, t = {}) => ({ state: s, commands: a }) => {
57763
- const r = ls(n, s.schema), i = ls(e, s.schema), o = _r(s, r, t);
57764
+ const r = cs(n, s.schema), i = cs(e, s.schema), o = _r(s, r, t);
57764
57765
  let l;
57765
57766
  return s.selection.$anchor.sameParent(s.selection.$head) && (l = s.selection.$anchor.parent.attrs), o ? a.setNode(i, l) : a.setNode(r, { ...l, ...t });
57766
57767
  }, iN = (n, e = {}) => ({ state: t, commands: s }) => {
57767
- const a = ls(n, t.schema);
57768
+ const a = cs(n, t.schema);
57768
57769
  return _r(t, a, e) ? s.lift(a) : s.wrapIn(a, e);
57769
57770
  }, oN = () => ({ state: n, dispatch: e }) => {
57770
57771
  const t = n.plugins;
@@ -57822,7 +57823,7 @@ var nN = (n, e, t, s = {}) => ({ editor: a, tr: r, state: i, dispatch: o, chain:
57822
57823
  );
57823
57824
  if (!o)
57824
57825
  return !1;
57825
- o === "node" && (r = ls(n, s.schema)), o === "mark" && (i = Pa(n, s.schema));
57826
+ o === "node" && (r = cs(n, s.schema)), o === "mark" && (i = Pa(n, s.schema));
57826
57827
  let l = !1;
57827
57828
  return t.selection.ranges.forEach((d) => {
57828
57829
  const c = d.$from.pos, u = d.$to.pos;
@@ -57861,10 +57862,10 @@ var nN = (n, e, t, s = {}) => ({ editor: a, tr: r, state: i, dispatch: o, chain:
57861
57862
  }));
57862
57863
  }), l;
57863
57864
  }, fN = (n, e = {}) => ({ state: t, dispatch: s }) => {
57864
- const a = ls(n, t.schema);
57865
+ const a = cs(n, t.schema);
57865
57866
  return R3(a, e)(t, s);
57866
57867
  }, hN = (n, e = {}) => ({ state: t, dispatch: s }) => {
57867
- const a = ls(n, t.schema);
57868
+ const a = cs(n, t.schema);
57868
57869
  return I3(a, e)(t, s);
57869
57870
  }, Hc = class {
57870
57871
  constructor(n) {
@@ -60571,7 +60572,7 @@ P4(R4, {
60571
60572
  nextListIsHigher: () => Ib
60572
60573
  });
60573
60574
  var Co = (n, e) => {
60574
- const { $from: t } = e.selection, s = ls(n, e.schema);
60575
+ const { $from: t } = e.selection, s = cs(n, e.schema);
60575
60576
  let a = null, r = t.depth, i = t.pos, o = null;
60576
60577
  for (; r > 0 && o === null; )
60577
60578
  a = t.node(r), a.type === s ? o = r : (r -= 1, i -= 1);
@@ -60592,7 +60593,7 @@ var Co = (n, e) => {
60592
60593
  }, Bb = (n, e, t) => {
60593
60594
  if (!t)
60594
60595
  return !1;
60595
- const s = ls(n, e.schema);
60596
+ const s = cs(n, e.schema);
60596
60597
  let a = !1;
60597
60598
  return t.descendants((r) => {
60598
60599
  r.type === s && (a = !0);
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as o, A as t, B as i, b as r, c as n, d as l, e as c, f as p, g as d, C as m, h as u, i as S, j as h, k as C, l as F, m as T, D as g, n as b, o as w, p as D, q as x, r as B, s as M, t as P, E as R, u as v, v as f, w as y, x as z, y as I, z as A, F as E, L, G as V, H as k, I as N, M as G, J as O, N as Y, K as j, O as q, P as H, Q as K, R as U, S as _, T as J, U as Q, V as W, W as X, X as Z, Y as $, Z as aa, $ as sa, a0 as ea, a1 as oa, a2 as ta, a3 as ia, a4 as ra, a5 as na, a6 as la, a7 as ca, a8 as pa, a9 as da, aa as ma, ab as ua, ac as Sa, ad as ha, ae as Ca, af as Fa, ag as Ta, ah as ga, ai as ba, aj as wa, ak as Da, al as xa, am as Ba, an as Ma, ao as Pa, ap as Ra, aq as va, ar as fa, as as ya, at as za, au as Ia, av as Aa, aw as Ea, ax as La, ay as Va, az as ka, aA as Na, aB as Ga, aC as Oa } from "./index-BH1IpQDS.js";
1
+ import { a as o, A as t, B as i, b as r, c as n, d as l, e as c, f as p, g as d, C as m, h as u, i as S, j as h, k as C, l as F, m as T, D as g, n as b, o as w, p as D, q as x, r as B, s as M, t as P, E as R, u as v, v as f, w as y, x as z, y as I, z as A, F as E, L, G as V, H as k, I as N, M as G, J as O, N as Y, K as j, O as q, P as H, Q as K, R as U, S as _, T as J, U as Q, V as W, W as X, X as Z, Y as $, Z as aa, $ as sa, a0 as ea, a1 as oa, a2 as ta, a3 as ia, a4 as ra, a5 as na, a6 as la, a7 as ca, a8 as pa, a9 as da, aa as ma, ab as ua, ac as Sa, ad as ha, ae as Ca, af as Fa, ag as Ta, ah as ga, ai as ba, aj as wa, ak as Da, al as xa, am as Ba, an as Ma, ao as Pa, ap as Ra, aq as va, ar as fa, as as ya, at as za, au as Ia, av as Aa, aw as Ea, ax as La, ay as Va, az as ka, aA as Na, aB as Ga, aC as Oa } from "./index-BBKH2mVF.js";
2
2
  import "vue";
3
3
  export {
4
4
  o as AppBar,