@milaboratories/uikit 2.2.72 → 2.2.74

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 (38) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/pl-uikit.js +107 -103
  3. package/dist/pl-uikit.js.map +1 -1
  4. package/dist/pl-uikit.umd.cjs +8 -8
  5. package/dist/pl-uikit.umd.cjs.map +1 -1
  6. package/dist/src/components/PlAutocomplete/PlAutocomplete.vue.d.ts.map +1 -1
  7. package/dist/src/components/PlCheckbox/PlCheckbox.vue.d.ts +8 -0
  8. package/dist/src/components/PlCheckbox/PlCheckbox.vue.d.ts.map +1 -1
  9. package/dist/src/components/PlCheckbox/PlCheckboxBase.vue.d.ts +1 -0
  10. package/dist/src/components/PlCheckbox/PlCheckboxBase.vue.d.ts.map +1 -1
  11. package/dist/style.css +1 -1
  12. package/dist/tsconfig.lib.tsbuildinfo +1 -1
  13. package/package.json +2 -2
  14. package/src/assets/dropdown-list-item.scss +2 -2
  15. package/src/assets/images/24_checkbox-dark-disabled-checked.svg +4 -0
  16. package/src/assets/images/24_checkbox-dark-disabled-indeterminate.svg +4 -0
  17. package/src/assets/images/{24_checkbox-base-dark.svg → 24_checkbox-dark-disabled-unchecked.svg} +1 -1
  18. package/src/assets/images/24_checkbox-dark-enabled-checked.svg +4 -0
  19. package/src/assets/images/24_checkbox-dark-enabled-indeterminate.svg +4 -0
  20. package/src/assets/images/24_checkbox-dark-enabled-unchecked.svg +3 -0
  21. package/src/assets/images/24_checkbox-light-disabled-checked.svg +4 -0
  22. package/src/assets/images/24_checkbox-light-disabled-indeterminate.svg +4 -0
  23. package/src/assets/images/24_checkbox-light-disabled-unchecked.svg +3 -0
  24. package/src/assets/images/24_checkbox-light-enabled-checked.svg +4 -0
  25. package/src/assets/images/24_checkbox-light-enabled-indeterminate.svg +4 -0
  26. package/src/components/DropdownListItem.vue +2 -2
  27. package/src/components/PlAutocomplete/PlAutocomplete.vue +6 -18
  28. package/src/components/PlCheckbox/PlCheckbox.vue +4 -0
  29. package/src/components/PlCheckbox/PlCheckboxBase.vue +8 -5
  30. package/src/components/PlCheckbox/pl-checkbox-base.scss +25 -12
  31. package/src/components/PlCheckbox/pl-checkbox.scss +0 -38
  32. package/src/components/PlDropdownMulti/pl-dropdown-multi.scss +4 -4
  33. package/src/assets/images/24_checkbox-checked-dark.svg +0 -4
  34. package/src/assets/images/24_checkbox-checked.svg +0 -4
  35. package/src/assets/images/24_checkbox-disabled-checked.svg +0 -6
  36. package/src/assets/images/24_checkbox-disabled-dark.svg +0 -3
  37. package/src/assets/images/24_checkbox-disabled.svg +0 -4
  38. /package/src/assets/images/{24_checkbox-base.svg → 24_checkbox-light-enabled-unchecked.svg} +0 -0
package/dist/pl-uikit.js CHANGED
@@ -1,7 +1,7 @@
1
1
  var Ui = Object.defineProperty;
2
2
  var qi = (t, e, n) => e in t ? Ui(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
3
  var Tr = (t, e, n) => qi(t, typeof e != "symbol" ? e + "" : e, n);
4
- import { defineComponent as N, openBlock as f, createElementBlock as h, Fragment as ae, renderList as fe, withModifiers as se, createElementVNode as y, toDisplayString as P, h as Ko, render as Vr, inject as en, reactive as ce, computed as b, ref as H, normalizeClass as F, unref as w, createBlock as q, resolveDynamicComponent as ks, createTextVNode as v, renderSlot as Y, createCommentVNode as A, normalizeStyle as ne, nextTick as St, onMounted as ke, onUnmounted as Qe, watchEffect as Xo, watch as oe, provide as Tt, watchPostEffect as kn, createVNode as Q, withCtx as J, useSlots as ve, withDirectives as $e, mergeModels as Ie, useModel as We, withKeys as Ne, Teleport as Lt, mergeProps as he, toRef as xn, Transition as oo, vModelText as Ze, normalizeProps as Wi, guardReactiveProps as Yi, onUpdated as Ki, onBeforeUnmount as Xi, vModelDynamic as Gi, useCssVars as Ji, useTemplateRef as ro, createSlots as so, vShow as Mr, useAttrs as Qi, getCurrentScope as el, onScopeDispose as tl, readonly as nl, toValue as Bo, createPropsRestProxy as ol, isRef as rl, vModelRadio as sl } from "vue";
4
+ import { defineComponent as N, openBlock as f, createElementBlock as h, Fragment as ae, renderList as fe, withModifiers as re, createElementVNode as y, toDisplayString as P, h as Ko, render as Vr, inject as en, reactive as ce, computed as b, ref as H, normalizeClass as F, unref as w, createBlock as q, resolveDynamicComponent as ks, createTextVNode as v, renderSlot as Y, createCommentVNode as A, normalizeStyle as ne, nextTick as St, onMounted as ke, onUnmounted as Qe, watchEffect as Xo, watch as oe, provide as Tt, watchPostEffect as kn, createVNode as Q, withCtx as J, useSlots as ve, withDirectives as $e, mergeModels as Ie, useModel as We, withKeys as Ne, Teleport as Lt, mergeProps as he, toRef as xn, Transition as oo, vModelText as Ze, normalizeProps as Wi, guardReactiveProps as Yi, onUpdated as Ki, onBeforeUnmount as Xi, vModelDynamic as Gi, useCssVars as Ji, useTemplateRef as ro, createSlots as so, vShow as Mr, useAttrs as Qi, getCurrentScope as el, onScopeDispose as tl, readonly as nl, toValue as Bo, createPropsRestProxy as ol, isRef as rl, vModelRadio as sl } from "vue";
5
5
  function Vt(t, e) {
6
6
  if (t == null)
7
7
  throw Error(e ?? "Empty (null | undefined) value");
@@ -274,7 +274,7 @@ const Ml = { class: "context-menu" }, Bl = ["onClick"], Fl = /* @__PURE__ */ N({
274
274
  return (o, s) => (f(), h("div", Ml, [
275
275
  (f(!0), h(ae, null, fe(o.options, (i, l) => (f(), h("div", {
276
276
  key: l,
277
- onClick: se((a) => r(i), ["stop"])
277
+ onClick: re((a) => r(i), ["stop"])
278
278
  }, [
279
279
  y("span", null, P(i.text), 1)
280
280
  ], 8, Bl))), 128))
@@ -484,7 +484,7 @@ const Kl = ["^data-col-id"], Xl = /* @__PURE__ */ N({
484
484
  s.col.sort ? (f(), h("div", {
485
485
  key: 1,
486
486
  class: F(["sort", s.col.sort.direction]),
487
- onClick: i[0] || (i[0] = se(() => o(s.col), ["stop"]))
487
+ onClick: i[0] || (i[0] = re(() => o(s.col), ["stop"]))
488
488
  }, null, 2)) : A("", !0)
489
489
  ], 42, Kl));
490
490
  }
@@ -649,7 +649,7 @@ const aa = {
649
649
  (f(!0), h(ae, null, fe(s.value, (a, u) => (f(), h("span", {
650
650
  key: u,
651
651
  class: "command",
652
- onClick: se(a.cb, ["stop"])
652
+ onClick: re(a.cb, ["stop"])
653
653
  }, P(a.label), 9, da))), 128))
654
654
  ])) : A("", !0);
655
655
  }
@@ -678,7 +678,7 @@ const aa = {
678
678
  (f(!0), h(ae, null, fe(s.value, (a, u) => (f(), h("span", {
679
679
  key: u,
680
680
  class: "command",
681
- onClick: se(a.cb, ["stop"])
681
+ onClick: re(a.cb, ["stop"])
682
682
  }, P(a.label), 9, ma))), 128))
683
683
  ])) : A("", !0);
684
684
  }
@@ -1384,7 +1384,7 @@ const Xw = /* @__PURE__ */ N({
1384
1384
  </svg>
1385
1385
  `, au = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
1386
1386
  <rect x="3" y="3" width="18" height="18" rx="2" fill="#110529"/>
1387
- <path fill-rule="evenodd" clip-rule="evenodd" d="M17.5431 8.51724L10.3333 16.0875L6.45691 12.0172L7.54312 10.9828L10.3333 13.9125L16.4569 7.48276L17.5431 8.51724Z" fill="white"/>
1387
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M17.5431 8.51739L10.3333 16.0877L6.45691 12.0174L7.54312 10.9829L10.3333 13.9127L16.4569 7.48291L17.5431 8.51739Z" fill="white"/>
1388
1388
  </svg>
1389
1389
  `, uu = ["innerHTML"], du = { class: "dropdown-list-item__title-container" }, cu = { class: "dropdown-list-item__title text-s" }, fu = {
1390
1390
  key: 0,
@@ -1655,7 +1655,7 @@ const wu = /* @__PURE__ */ N({
1655
1655
  class: "pl-btn-split__title flex-grow-1 d-flex align-center text-s-btn",
1656
1656
  tabindex: "0",
1657
1657
  onClick: U,
1658
- onKeyup: Ne(se(U, ["stop"]), ["enter"])
1658
+ onKeyup: Ne(re(U, ["stop"]), ["enter"])
1659
1659
  }, P(S.value), 41, Cu),
1660
1660
  g[1] || (g[1] = v()),
1661
1661
  y("div", {
@@ -1691,7 +1691,7 @@ const wu = /* @__PURE__ */ N({
1691
1691
  "is-selected": C.isSelected,
1692
1692
  "is-hovered": C.isActive,
1693
1693
  size: "medium",
1694
- onClick: se((L) => O(C.value), ["stop"])
1694
+ onClick: re((L) => O(C.value), ["stop"])
1695
1695
  }, null, 8, ["option", "is-selected", "is-hovered", "onClick"]))), 128))
1696
1696
  ], 4)
1697
1697
  ])) : A("", !0)
@@ -2422,14 +2422,14 @@ const hd = /* @__PURE__ */ N({
2422
2422
  key: 0,
2423
2423
  class: "pl-text-field__clearable",
2424
2424
  name: "delete-clear",
2425
- onClick: se(c, ["stop"])
2425
+ onClick: re(c, ["stop"])
2426
2426
  })) : A("", !0),
2427
2427
  g[3] || (g[3] = v()),
2428
2428
  _.type === "password" ? (f(), q(w(Te), {
2429
2429
  key: 1,
2430
2430
  name: d.value,
2431
2431
  style: { cursor: "pointer" },
2432
- onClick: se(U, ["stop"])
2432
+ onClick: re(U, ["stop"])
2433
2433
  }, null, 8, ["name"])) : A("", !0),
2434
2434
  g[4] || (g[4] = v()),
2435
2435
  Y(_.$slots, "append")
@@ -2498,7 +2498,7 @@ const hd = /* @__PURE__ */ N({
2498
2498
  key: 0,
2499
2499
  class: F(u.$style.clear),
2500
2500
  name: "delete-clear",
2501
- onClick: se(a, ["stop"])
2501
+ onClick: re(a, ["stop"])
2502
2502
  }, null, 8, ["class"])) : A("", !0)
2503
2503
  ], 2));
2504
2504
  }
@@ -2885,14 +2885,14 @@ const or = /* @__PURE__ */ N({
2885
2885
  B.clearable && U.value ? (f(), q(w(gt), {
2886
2886
  key: 1,
2887
2887
  name: "delete-clear",
2888
- onClick: se(g, ["stop"])
2888
+ onClick: re(g, ["stop"])
2889
2889
  })) : A("", !0),
2890
2890
  x[2] || (x[2] = v()),
2891
2891
  Y(B.$slots, "append"),
2892
2892
  x[3] || (x[3] = v()),
2893
2893
  y("div", {
2894
2894
  class: "pl-dropdown__arrow-wrapper",
2895
- onClick: se(W, ["stop"])
2895
+ onClick: re(W, ["stop"])
2896
2896
  }, [
2897
2897
  B.arrowIconLarge ? (f(), h("div", {
2898
2898
  key: 0,
@@ -2937,7 +2937,7 @@ const or = /* @__PURE__ */ N({
2937
2937
  "is-selected": T.isSelected,
2938
2938
  "is-hovered": T.isActive,
2939
2939
  size: B.optionSize,
2940
- onClick: se((j) => _(T.value), ["stop"])
2940
+ onClick: re((j) => _(T.value), ["stop"])
2941
2941
  }, null, 8, ["option", "is-selected", "is-hovered", "size", "onClick"]))), 128)),
2942
2942
  x[8] || (x[8] = v()),
2943
2943
  M.value.length ? A("", !0) : (f(), h("div", oc, "Nothing found"))
@@ -3229,7 +3229,7 @@ const dc = { class: "resizable-input" }, cc = ["placeholder", "value", "disabled
3229
3229
  textItem: "text",
3230
3230
  isSelected: R(B),
3231
3231
  isHovered: o.activeOption == x,
3232
- onClick: se((T) => M(B), ["stop"])
3232
+ onClick: re((T) => M(B), ["stop"])
3233
3233
  }, () => [
3234
3234
  Q(zt, {
3235
3235
  option: B,
@@ -3237,7 +3237,7 @@ const dc = { class: "resizable-input" }, cc = ["placeholder", "value", "disabled
3237
3237
  "is-selected": R(B),
3238
3238
  "is-hovered": o.activeOption == x,
3239
3239
  size: "medium",
3240
- onClick: se((T) => M(B), ["stop"])
3240
+ onClick: re((T) => M(B), ["stop"])
3241
3241
  }, null, 8, ["option", "is-selected", "is-hovered", "onClick"])
3242
3242
  ])), 128)),
3243
3243
  E[3] || (E[3] = v()),
@@ -3258,13 +3258,13 @@ const dc = { class: "resizable-input" }, cc = ["placeholder", "value", "disabled
3258
3258
  item: B,
3259
3259
  isSelected: R(B),
3260
3260
  isHovered: o.activeOption == x,
3261
- onClick: se((T) => M(B), ["stop"])
3261
+ onClick: re((T) => M(B), ["stop"])
3262
3262
  }, () => [
3263
3263
  Q(mc, {
3264
3264
  option: B,
3265
3265
  "is-selected": R(B),
3266
3266
  "is-hovered": o.activeOption == x,
3267
- onClick: se((T) => M(B), ["stop"])
3267
+ onClick: re((T) => M(B), ["stop"])
3268
3268
  }, null, 8, ["option", "is-selected", "is-hovered", "onClick"])
3269
3269
  ])), 128)),
3270
3270
  E[5] || (E[5] = v()),
@@ -3429,7 +3429,7 @@ const dc = { class: "resizable-input" }, cc = ["placeholder", "value", "disabled
3429
3429
  x.clearable && U.value ? (f(), q(w(gt), {
3430
3430
  key: 1,
3431
3431
  name: "delete-clear",
3432
- onClick: se(g, ["stop"])
3432
+ onClick: re(g, ["stop"])
3433
3433
  })) : A("", !0),
3434
3434
  T[2] || (T[2] = v()),
3435
3435
  Y(x.$slots, "append"),
@@ -3437,15 +3437,15 @@ const dc = { class: "resizable-input" }, cc = ["placeholder", "value", "disabled
3437
3437
  x.arrowIconLarge ? (f(), h("div", {
3438
3438
  key: 2,
3439
3439
  class: F(["arrow-icon", [`icon-24 ${x.arrowIconLarge}`]]),
3440
- onClick: se(W, ["stop"])
3440
+ onClick: re(W, ["stop"])
3441
3441
  }, null, 2)) : x.arrowIcon ? (f(), h("div", {
3442
3442
  key: 3,
3443
3443
  class: F(["arrow-icon", [`icon-16 ${x.arrowIcon}`]]),
3444
- onClick: se(W, ["stop"])
3444
+ onClick: re(W, ["stop"])
3445
3445
  }, null, 2)) : (f(), h("div", {
3446
3446
  key: 4,
3447
3447
  class: "arrow-icon arrow-icon-default",
3448
- onClick: se(W, ["stop"])
3448
+ onClick: re(W, ["stop"])
3449
3449
  }))
3450
3450
  ])
3451
3451
  ]),
@@ -3479,7 +3479,7 @@ const dc = { class: "resizable-input" }, cc = ["placeholder", "value", "disabled
3479
3479
  "is-selected": z.isSelected,
3480
3480
  "is-hovered": z.isActive,
3481
3481
  size: x.optionSize,
3482
- onClick: se((D) => _(z.value), ["stop"])
3482
+ onClick: re((D) => _(z.value), ["stop"])
3483
3483
  }, null, 8, ["option", "is-selected", "is-hovered", "size", "onClick"]))), 128)),
3484
3484
  T[8] || (T[8] = v()),
3485
3485
  M.value.length ? A("", !0) : (f(), h("div", Ec, "Nothing found"))
@@ -3743,7 +3743,7 @@ const dc = { class: "resizable-input" }, cc = ["placeholder", "value", "disabled
3743
3743
  tabindex: "0",
3744
3744
  class: "pl-chip__close",
3745
3745
  onKeydown: o[0] || (o[0] = Ne((s) => r.$emit("close"), ["enter"])),
3746
- onClick: o[1] || (o[1] = se((s) => r.$emit("close"), ["stop"]))
3746
+ onClick: o[1] || (o[1] = re((s) => r.$emit("close"), ["stop"]))
3747
3747
  }, o[2] || (o[2] = [
3748
3748
  y("div", { class: "pl-chip__close--icon" }, null, -1)
3749
3749
  ]), 32)) : A("", !0)
@@ -3882,7 +3882,7 @@ const dc = { class: "resizable-input" }, cc = ["placeholder", "value", "disabled
3882
3882
  key: B,
3883
3883
  closeable: "",
3884
3884
  small: "",
3885
- onClick: V[2] || (V[2] = se((x) => u.open = !0, ["stop"])),
3885
+ onClick: V[2] || (V[2] = re((x) => u.open = !0, ["stop"])),
3886
3886
  onClose: (x) => R(E.value)
3887
3887
  }, {
3888
3888
  default: J(() => [
@@ -3902,7 +3902,7 @@ const dc = { class: "resizable-input" }, cc = ["placeholder", "value", "disabled
3902
3902
  V[5] || (V[5] = v()),
3903
3903
  y("div", {
3904
3904
  class: "pl-dropdown-multi__arrow-wrapper",
3905
- onClick: se(g, ["stop"])
3905
+ onClick: re(g, ["stop"])
3906
3906
  }, V[3] || (V[3] = [
3907
3907
  y("div", { class: "arrow-icon arrow-icon-default" }, null, -1)
3908
3908
  ]))
@@ -3959,7 +3959,7 @@ const dc = { class: "resizable-input" }, cc = ["placeholder", "value", "disabled
3959
3959
  "is-hovered": u.activeOption == B,
3960
3960
  size: "medium",
3961
3961
  "use-checkbox": "",
3962
- onClick: se((x) => M(E.value), ["stop"])
3962
+ onClick: re((x) => M(E.value), ["stop"])
3963
3963
  }, null, 8, ["option", "is-selected", "is-hovered", "onClick"]))), 128)),
3964
3964
  V[11] || (V[11] = v()),
3965
3965
  k.value.length ? A("", !0) : (f(), h("div", Gc, "Nothing found"))
@@ -4014,16 +4014,20 @@ const dc = { class: "resizable-input" }, cc = ["placeholder", "value", "disabled
4014
4014
  __name: "PlCheckboxBase",
4015
4015
  props: {
4016
4016
  modelValue: { type: Boolean },
4017
- disabled: { type: Boolean }
4017
+ disabled: { type: Boolean },
4018
+ indeterminate: { type: Boolean }
4018
4019
  },
4019
4020
  emits: ["update:modelValue"],
4020
4021
  setup(t) {
4021
- const e = t, n = b(() => e.modelValue);
4022
- return (r, o) => (f(), h("div", {
4022
+ const e = t;
4023
+ return (n, r) => (f(), h("div", {
4023
4024
  tabindex: "0",
4024
- class: F(["pl-checkbox-base", { checked: n.value, disabled: r.disabled }]),
4025
- onClick: o[0] || (o[0] = (s) => r.$emit("update:modelValue", !r.modelValue)),
4026
- onKeydown: o[1] || (o[1] = Ne((s) => r.$emit("update:modelValue", !r.modelValue), ["enter"]))
4025
+ class: F(["pl-checkbox-base", {
4026
+ ...e.indeterminate ? { indeterminate: !0 } : { checked: e.modelValue },
4027
+ disabled: n.disabled
4028
+ }]),
4029
+ onClick: r[0] || (r[0] = (o) => n.$emit("update:modelValue", !n.modelValue)),
4030
+ onKeydown: r[1] || (r[1] = Ne(re((o) => n.$emit("update:modelValue", !n.modelValue), ["prevent"]), ["space"]))
4027
4031
  }, null, 34));
4028
4032
  }
4029
4033
  }), nf = {
@@ -4032,7 +4036,8 @@ const dc = { class: "resizable-input" }, cc = ["placeholder", "value", "disabled
4032
4036
  ...nf,
4033
4037
  props: {
4034
4038
  modelValue: { type: Boolean },
4035
- disabled: { type: Boolean }
4039
+ disabled: { type: Boolean },
4040
+ indeterminate: { type: Boolean }
4036
4041
  },
4037
4042
  emits: ["update:modelValue"],
4038
4043
  setup(t) {
@@ -4097,7 +4102,7 @@ const dc = { class: "resizable-input" }, cc = ["placeholder", "value", "disabled
4097
4102
  }, null, 8, ["disabled", "label", "model-value", "onUpdate:modelValue"]),
4098
4103
  a[1] || (a[1] = v()),
4099
4104
  y("label", {
4100
- onClick: se(() => i(u.value), ["stop"])
4105
+ onClick: re(() => i(u.value), ["stop"])
4101
4106
  }, P(u.label), 9, rf)
4102
4107
  ]))), 128))
4103
4108
  ], 2));
@@ -4178,7 +4183,7 @@ const cf = {
4178
4183
  a.closable ? (f(), q(ff, {
4179
4184
  key: 0,
4180
4185
  class: "close-modal-btn",
4181
- onClick: u[0] || (u[0] = se((d) => r("update:modelValue", !1), ["stop"]))
4186
+ onClick: u[0] || (u[0] = re((d) => r("update:modelValue", !1), ["stop"]))
4182
4187
  })) : A("", !0),
4183
4188
  u[1] || (u[1] = v()),
4184
4189
  w(n).title ? (f(), h("div", pf, [
@@ -4756,7 +4761,7 @@ const jr = (t, e) => {
4756
4761
  }
4757
4762
  };
4758
4763
  };
4759
- function re(t) {
4764
+ function se(t) {
4760
4765
  if (!t)
4761
4766
  return {};
4762
4767
  const { errorMap: e, invalid_type_error: n, required_error: r, description: o } = t;
@@ -4900,7 +4905,7 @@ class ie {
4900
4905
  }
4901
4906
  transform(e) {
4902
4907
  return new Le({
4903
- ...re(this._def),
4908
+ ...se(this._def),
4904
4909
  schema: this,
4905
4910
  typeName: ee.ZodEffects,
4906
4911
  effect: { type: "transform", transform: e }
@@ -4909,7 +4914,7 @@ class ie {
4909
4914
  default(e) {
4910
4915
  const n = typeof e == "function" ? e : () => e;
4911
4916
  return new vn({
4912
- ...re(this._def),
4917
+ ...se(this._def),
4913
4918
  innerType: this,
4914
4919
  defaultValue: n,
4915
4920
  typeName: ee.ZodDefault
@@ -4919,13 +4924,13 @@ class ie {
4919
4924
  return new rr({
4920
4925
  typeName: ee.ZodBranded,
4921
4926
  type: this,
4922
- ...re(this._def)
4927
+ ...se(this._def)
4923
4928
  });
4924
4929
  }
4925
4930
  catch(e) {
4926
4931
  const n = typeof e == "function" ? e : () => e;
4927
4932
  return new gn({
4928
- ...re(this._def),
4933
+ ...se(this._def),
4929
4934
  innerType: this,
4930
4935
  catchValue: n,
4931
4936
  typeName: ee.ZodCatch
@@ -5324,7 +5329,7 @@ Oe.create = (t) => {
5324
5329
  checks: [],
5325
5330
  typeName: ee.ZodString,
5326
5331
  coerce: (e = t == null ? void 0 : t.coerce) !== null && e !== void 0 ? e : !1,
5327
- ...re(t)
5332
+ ...se(t)
5328
5333
  });
5329
5334
  };
5330
5335
  function Yf(t, e) {
@@ -5501,7 +5506,7 @@ at.create = (t) => new at({
5501
5506
  checks: [],
5502
5507
  typeName: ee.ZodNumber,
5503
5508
  coerce: (t == null ? void 0 : t.coerce) || !1,
5504
- ...re(t)
5509
+ ...se(t)
5505
5510
  });
5506
5511
  class ut extends ie {
5507
5512
  constructor() {
@@ -5628,7 +5633,7 @@ ut.create = (t) => {
5628
5633
  checks: [],
5629
5634
  typeName: ee.ZodBigInt,
5630
5635
  coerce: (e = t == null ? void 0 : t.coerce) !== null && e !== void 0 ? e : !1,
5631
- ...re(t)
5636
+ ...se(t)
5632
5637
  });
5633
5638
  };
5634
5639
  class ln extends ie {
@@ -5647,7 +5652,7 @@ class ln extends ie {
5647
5652
  ln.create = (t) => new ln({
5648
5653
  typeName: ee.ZodBoolean,
5649
5654
  coerce: (t == null ? void 0 : t.coerce) || !1,
5650
- ...re(t)
5655
+ ...se(t)
5651
5656
  });
5652
5657
  class yt extends ie {
5653
5658
  _parse(e) {
@@ -5725,7 +5730,7 @@ yt.create = (t) => new yt({
5725
5730
  checks: [],
5726
5731
  coerce: (t == null ? void 0 : t.coerce) || !1,
5727
5732
  typeName: ee.ZodDate,
5728
- ...re(t)
5733
+ ...se(t)
5729
5734
  });
5730
5735
  class Hn extends ie {
5731
5736
  _parse(e) {
@@ -5742,7 +5747,7 @@ class Hn extends ie {
5742
5747
  }
5743
5748
  Hn.create = (t) => new Hn({
5744
5749
  typeName: ee.ZodSymbol,
5745
- ...re(t)
5750
+ ...se(t)
5746
5751
  });
5747
5752
  class an extends ie {
5748
5753
  _parse(e) {
@@ -5759,7 +5764,7 @@ class an extends ie {
5759
5764
  }
5760
5765
  an.create = (t) => new an({
5761
5766
  typeName: ee.ZodUndefined,
5762
- ...re(t)
5767
+ ...se(t)
5763
5768
  });
5764
5769
  class un extends ie {
5765
5770
  _parse(e) {
@@ -5776,7 +5781,7 @@ class un extends ie {
5776
5781
  }
5777
5782
  un.create = (t) => new un({
5778
5783
  typeName: ee.ZodNull,
5779
- ...re(t)
5784
+ ...se(t)
5780
5785
  });
5781
5786
  class Dt extends ie {
5782
5787
  constructor() {
@@ -5788,7 +5793,7 @@ class Dt extends ie {
5788
5793
  }
5789
5794
  Dt.create = (t) => new Dt({
5790
5795
  typeName: ee.ZodAny,
5791
- ...re(t)
5796
+ ...se(t)
5792
5797
  });
5793
5798
  class ht extends ie {
5794
5799
  constructor() {
@@ -5800,7 +5805,7 @@ class ht extends ie {
5800
5805
  }
5801
5806
  ht.create = (t) => new ht({
5802
5807
  typeName: ee.ZodUnknown,
5803
- ...re(t)
5808
+ ...se(t)
5804
5809
  });
5805
5810
  class Ge extends ie {
5806
5811
  _parse(e) {
@@ -5814,7 +5819,7 @@ class Ge extends ie {
5814
5819
  }
5815
5820
  Ge.create = (t) => new Ge({
5816
5821
  typeName: ee.ZodNever,
5817
- ...re(t)
5822
+ ...se(t)
5818
5823
  });
5819
5824
  class jn extends ie {
5820
5825
  _parse(e) {
@@ -5831,7 +5836,7 @@ class jn extends ie {
5831
5836
  }
5832
5837
  jn.create = (t) => new jn({
5833
5838
  typeName: ee.ZodVoid,
5834
- ...re(t)
5839
+ ...se(t)
5835
5840
  });
5836
5841
  class Pe extends ie {
5837
5842
  _parse(e) {
@@ -5904,7 +5909,7 @@ Pe.create = (t, e) => new Pe({
5904
5909
  maxLength: null,
5905
5910
  exactLength: null,
5906
5911
  typeName: ee.ZodArray,
5907
- ...re(e)
5912
+ ...se(e)
5908
5913
  });
5909
5914
  function xt(t) {
5910
5915
  if (t instanceof pe) {
@@ -6193,21 +6198,21 @@ pe.create = (t, e) => new pe({
6193
6198
  unknownKeys: "strip",
6194
6199
  catchall: Ge.create(),
6195
6200
  typeName: ee.ZodObject,
6196
- ...re(e)
6201
+ ...se(e)
6197
6202
  });
6198
6203
  pe.strictCreate = (t, e) => new pe({
6199
6204
  shape: () => t,
6200
6205
  unknownKeys: "strict",
6201
6206
  catchall: Ge.create(),
6202
6207
  typeName: ee.ZodObject,
6203
- ...re(e)
6208
+ ...se(e)
6204
6209
  });
6205
6210
  pe.lazycreate = (t, e) => new pe({
6206
6211
  shape: t,
6207
6212
  unknownKeys: "strip",
6208
6213
  catchall: Ge.create(),
6209
6214
  typeName: ee.ZodObject,
6210
- ...re(e)
6215
+ ...se(e)
6211
6216
  });
6212
6217
  class dn extends ie {
6213
6218
  _parse(e) {
@@ -6280,7 +6285,7 @@ class dn extends ie {
6280
6285
  dn.create = (t, e) => new dn({
6281
6286
  options: t,
6282
6287
  typeName: ee.ZodUnion,
6283
- ...re(e)
6288
+ ...se(e)
6284
6289
  });
6285
6290
  const Xe = (t) => t instanceof pn ? Xe(t.schema) : t instanceof Le ? Xe(t.innerType()) : t instanceof mn ? [t.value] : t instanceof dt ? t.options : t instanceof hn ? de.objectValues(t.enum) : t instanceof vn ? Xe(t._def.innerType) : t instanceof an ? [void 0] : t instanceof un ? [null] : t instanceof He ? [void 0, ...Xe(t.unwrap())] : t instanceof ct ? [null, ...Xe(t.unwrap())] : t instanceof rr || t instanceof yn ? Xe(t.unwrap()) : t instanceof gn ? Xe(t._def.innerType) : [];
6286
6291
  class uo extends ie {
@@ -6341,7 +6346,7 @@ class uo extends ie {
6341
6346
  discriminator: e,
6342
6347
  options: n,
6343
6348
  optionsMap: o,
6344
- ...re(r)
6349
+ ...se(r)
6345
6350
  });
6346
6351
  }
6347
6352
  }
@@ -6407,7 +6412,7 @@ cn.create = (t, e, n) => new cn({
6407
6412
  left: t,
6408
6413
  right: e,
6409
6414
  typeName: ee.ZodIntersection,
6410
- ...re(n)
6415
+ ...se(n)
6411
6416
  });
6412
6417
  class qe extends ie {
6413
6418
  _parse(e) {
@@ -6456,7 +6461,7 @@ qe.create = (t, e) => {
6456
6461
  items: t,
6457
6462
  typeName: ee.ZodTuple,
6458
6463
  rest: null,
6459
- ...re(e)
6464
+ ...se(e)
6460
6465
  });
6461
6466
  };
6462
6467
  class fn extends ie {
@@ -6491,12 +6496,12 @@ class fn extends ie {
6491
6496
  keyType: e,
6492
6497
  valueType: n,
6493
6498
  typeName: ee.ZodRecord,
6494
- ...re(r)
6499
+ ...se(r)
6495
6500
  }) : new fn({
6496
6501
  keyType: Oe.create(),
6497
6502
  valueType: e,
6498
6503
  typeName: ee.ZodRecord,
6499
- ...re(n)
6504
+ ...se(n)
6500
6505
  });
6501
6506
  }
6502
6507
  }
@@ -6546,7 +6551,7 @@ Zn.create = (t, e, n) => new Zn({
6546
6551
  valueType: e,
6547
6552
  keyType: t,
6548
6553
  typeName: ee.ZodMap,
6549
- ...re(n)
6554
+ ...se(n)
6550
6555
  });
6551
6556
  class _t extends ie {
6552
6557
  _parse(e) {
@@ -6610,7 +6615,7 @@ _t.create = (t, e) => new _t({
6610
6615
  minSize: null,
6611
6616
  maxSize: null,
6612
6617
  typeName: ee.ZodSet,
6613
- ...re(e)
6618
+ ...se(e)
6614
6619
  });
6615
6620
  class At extends ie {
6616
6621
  constructor() {
@@ -6709,7 +6714,7 @@ class At extends ie {
6709
6714
  args: e || qe.create([]).rest(ht.create()),
6710
6715
  returns: n || ht.create(),
6711
6716
  typeName: ee.ZodFunction,
6712
- ...re(r)
6717
+ ...se(r)
6713
6718
  });
6714
6719
  }
6715
6720
  }
@@ -6725,7 +6730,7 @@ class pn extends ie {
6725
6730
  pn.create = (t, e) => new pn({
6726
6731
  getter: t,
6727
6732
  typeName: ee.ZodLazy,
6728
- ...re(e)
6733
+ ...se(e)
6729
6734
  });
6730
6735
  class mn extends ie {
6731
6736
  _parse(e) {
@@ -6746,13 +6751,13 @@ class mn extends ie {
6746
6751
  mn.create = (t, e) => new mn({
6747
6752
  value: t,
6748
6753
  typeName: ee.ZodLiteral,
6749
- ...re(e)
6754
+ ...se(e)
6750
6755
  });
6751
6756
  function Ws(t, e) {
6752
6757
  return new dt({
6753
6758
  values: t,
6754
6759
  typeName: ee.ZodEnum,
6755
- ...re(e)
6760
+ ...se(e)
6756
6761
  });
6757
6762
  }
6758
6763
  class dt extends ie {
@@ -6846,7 +6851,7 @@ Kt = /* @__PURE__ */ new WeakMap();
6846
6851
  hn.create = (t, e) => new hn({
6847
6852
  values: t,
6848
6853
  typeName: ee.ZodNativeEnum,
6849
- ...re(e)
6854
+ ...se(e)
6850
6855
  });
6851
6856
  class Rt extends ie {
6852
6857
  unwrap() {
@@ -6870,7 +6875,7 @@ class Rt extends ie {
6870
6875
  Rt.create = (t, e) => new Rt({
6871
6876
  type: t,
6872
6877
  typeName: ee.ZodPromise,
6873
- ...re(e)
6878
+ ...se(e)
6874
6879
  });
6875
6880
  class Le extends ie {
6876
6881
  innerType() {
@@ -6953,13 +6958,13 @@ Le.create = (t, e, n) => new Le({
6953
6958
  schema: t,
6954
6959
  typeName: ee.ZodEffects,
6955
6960
  effect: e,
6956
- ...re(n)
6961
+ ...se(n)
6957
6962
  });
6958
6963
  Le.createWithPreprocess = (t, e, n) => new Le({
6959
6964
  schema: e,
6960
6965
  effect: { type: "preprocess", transform: t },
6961
6966
  typeName: ee.ZodEffects,
6962
- ...re(n)
6967
+ ...se(n)
6963
6968
  });
6964
6969
  class He extends ie {
6965
6970
  _parse(e) {
@@ -6972,7 +6977,7 @@ class He extends ie {
6972
6977
  He.create = (t, e) => new He({
6973
6978
  innerType: t,
6974
6979
  typeName: ee.ZodOptional,
6975
- ...re(e)
6980
+ ...se(e)
6976
6981
  });
6977
6982
  class ct extends ie {
6978
6983
  _parse(e) {
@@ -6985,7 +6990,7 @@ class ct extends ie {
6985
6990
  ct.create = (t, e) => new ct({
6986
6991
  innerType: t,
6987
6992
  typeName: ee.ZodNullable,
6988
- ...re(e)
6993
+ ...se(e)
6989
6994
  });
6990
6995
  class vn extends ie {
6991
6996
  _parse(e) {
@@ -7005,7 +7010,7 @@ vn.create = (t, e) => new vn({
7005
7010
  innerType: t,
7006
7011
  typeName: ee.ZodDefault,
7007
7012
  defaultValue: typeof e.default == "function" ? e.default : () => e.default,
7008
- ...re(e)
7013
+ ...se(e)
7009
7014
  });
7010
7015
  class gn extends ie {
7011
7016
  _parse(e) {
@@ -7048,7 +7053,7 @@ gn.create = (t, e) => new gn({
7048
7053
  innerType: t,
7049
7054
  typeName: ee.ZodCatch,
7050
7055
  catchValue: typeof e.catch == "function" ? e.catch : () => e.catch,
7051
- ...re(e)
7056
+ ...se(e)
7052
7057
  });
7053
7058
  class Un extends ie {
7054
7059
  _parse(e) {
@@ -7065,7 +7070,7 @@ class Un extends ie {
7065
7070
  }
7066
7071
  Un.create = (t) => new Un({
7067
7072
  typeName: ee.ZodNaN,
7068
- ...re(t)
7073
+ ...se(t)
7069
7074
  });
7070
7075
  const Kf = Symbol("zod_brand");
7071
7076
  class rr extends ie {
@@ -7133,7 +7138,7 @@ class yn extends ie {
7133
7138
  yn.create = (t, e) => new yn({
7134
7139
  innerType: t,
7135
7140
  typeName: ee.ZodReadonly,
7136
- ...re(e)
7141
+ ...se(e)
7137
7142
  });
7138
7143
  function Ys(t, e = {}, n) {
7139
7144
  return t ? Dt.create().superRefine((r, o) => {
@@ -7374,7 +7379,7 @@ const Up = ue.object({
7374
7379
  label: ue.string()
7375
7380
  });
7376
7381
  ue.array(Up);
7377
- const qp = "1.30.3";
7382
+ const qp = "1.30.11";
7378
7383
  function it() {
7379
7384
  return Zp({ sdkVersion: qp });
7380
7385
  }
@@ -7861,12 +7866,7 @@ const Sm = ["tabindex"], Am = { class: "pl-autocomplete__container" }, Em = { cl
7861
7866
  }), u = () => Ht(
7862
7867
  m.value.findIndex((D) => _e(D.value, e.value)),
7863
7868
  (D) => D < 0 ? 0 : D
7864
- ), d = () => a.activeIndex = u(), c = H([]), p = H(), m = b(() => e.value && !l.value ? p.value ? [{
7865
- ...p.value,
7866
- index: 0,
7867
- isSelected: !0,
7868
- isActive: !0
7869
- }] : [] : lt(c.value).map((D, Z) => ({
7869
+ ), d = () => a.activeIndex = u(), c = H([]), p = H(), m = b(() => lt(c.value).map((D, Z) => ({
7870
7870
  ...D,
7871
7871
  index: Z,
7872
7872
  isSelected: Z === O.value,
@@ -7890,8 +7890,12 @@ const Sm = ["tabindex"], Am = { class: "pl-autocomplete__container" }, Em = { cl
7890
7890
  var D;
7891
7891
  return (D = s.value) == null ? void 0 : D.focus();
7892
7892
  }, V = () => {
7893
- a.open = !a.open, a.open || (l.value = null), a.open && (l.value = "");
7894
- }, E = () => {
7893
+ a.open = !a.open;
7894
+ };
7895
+ oe(() => a.open, (D) => {
7896
+ l.value = D ? "" : null;
7897
+ });
7898
+ const E = () => {
7895
7899
  a.open = !0;
7896
7900
  }, B = (D) => {
7897
7901
  var le, be, Me;
@@ -7926,7 +7930,7 @@ const Sm = ["tabindex"], Am = { class: "pl-autocomplete__container" }, Em = { cl
7926
7930
  var D;
7927
7931
  l.value, a.activeIndex >= 0 && a.open && ((D = i.value) == null || D.scrollIntoActive());
7928
7932
  });
7929
- const T = Af(l, 500, { maxWait: 1e3 }), z = Wr(() => T.value, async (D) => D !== null && !(D === "" && e.value) ? n.optionsSearch(D) : []), j = Wr(() => e.value, async (D) => {
7933
+ const T = Af(l, 300, { maxWait: 1e3 }), z = Wr(() => T.value, async (D) => D !== null ? n.optionsSearch(D) : []), j = Wr(() => e.value, async (D) => {
7930
7934
  var Z, le;
7931
7935
  return D && !_e((Z = p.value) == null ? void 0 : Z.value, D) ? n.modelSearch ? n.modelSearch(D) : (le = await n.optionsSearch(String(D))) == null ? void 0 : le[0] : p.value;
7932
7936
  });
@@ -7940,7 +7944,7 @@ const Sm = ["tabindex"], Am = { class: "pl-autocomplete__container" }, Em = { cl
7940
7944
  k.value = D;
7941
7945
  }), (D, Z) => (f(), h("div", {
7942
7946
  class: "pl-autocomplete__envelope",
7943
- onClick: se(L, ["stop"])
7947
+ onClick: re(L, ["stop"])
7944
7948
  }, [
7945
7949
  y("div", {
7946
7950
  ref_key: "rootRef",
@@ -7985,14 +7989,14 @@ const Sm = ["tabindex"], Am = { class: "pl-autocomplete__container" }, Em = { cl
7985
7989
  D.clearable && _.value ? (f(), q(w(gt), {
7986
7990
  key: 1,
7987
7991
  name: "delete-clear",
7988
- onClick: se(W, ["stop"])
7992
+ onClick: re(W, ["stop"])
7989
7993
  })) : A("", !0),
7990
7994
  Z[2] || (Z[2] = v()),
7991
7995
  Y(D.$slots, "append"),
7992
7996
  Z[3] || (Z[3] = v()),
7993
7997
  y("div", {
7994
7998
  class: "pl-autocomplete__arrow-wrapper",
7995
- onClick: se(V, ["stop"])
7999
+ onClick: re(V, ["stop"])
7996
8000
  }, [
7997
8001
  D.arrowIconLarge ? (f(), h("div", {
7998
8002
  key: 0,
@@ -8037,7 +8041,7 @@ const Sm = ["tabindex"], Am = { class: "pl-autocomplete__container" }, Em = { cl
8037
8041
  "is-selected": le.isSelected,
8038
8042
  "is-hovered": le.isActive,
8039
8043
  size: D.optionSize,
8040
- onClick: se((Me) => C(le), ["stop"])
8044
+ onClick: re((Me) => C(le), ["stop"])
8041
8045
  }, null, 8, ["option", "is-selected", "is-hovered", "size", "onClick"]))), 128)),
8042
8046
  Z[8] || (Z[8] = v()),
8043
8047
  m.value.length ? A("", !0) : (f(), h("div", Rm, "Nothing found"))
@@ -8294,7 +8298,7 @@ const uh = ["title", "onClick"], dh = {
8294
8298
  getFilesToImport: k
8295
8299
  }), ke(R), (_, g) => (f(), h("div", {
8296
8300
  class: F(w(ye).remote),
8297
- onClick: se(M, ["stop"])
8301
+ onClick: re(M, ["stop"])
8298
8302
  }, [
8299
8303
  y("div", {
8300
8304
  class: F(w(ye).search)
@@ -8386,7 +8390,7 @@ const uh = ["title", "onClick"], dh = {
8386
8390
  ], 10, ch)) : (f(), h("div", {
8387
8391
  key: 1,
8388
8392
  class: F({ [w(ye).canBeSelected]: C.canBeSelected, [w(ye).selected]: C.selected }),
8389
- onClick: se((W) => S(W, C), ["stop"])
8393
+ onClick: re((W) => S(W, C), ["stop"])
8390
8394
  }, [
8391
8395
  Q(w(on), {
8392
8396
  name: "box",
@@ -8468,7 +8472,7 @@ const uh = ["title", "onClick"], dh = {
8468
8472
  return (i, l) => (f(), h("div", {
8469
8473
  class: F(w(ye).local),
8470
8474
  onDrop: o,
8471
- onDragover: l[0] || (l[0] = se(() => {
8475
+ onDragover: l[0] || (l[0] = re(() => {
8472
8476
  }, ["prevent"])),
8473
8477
  onClick: s
8474
8478
  }, [
@@ -8554,7 +8558,7 @@ const uh = ["title", "onClick"], dh = {
8554
8558
  Q(w(Tu), {
8555
8559
  style: { "min-width": "160px" },
8556
8560
  disabled: !((m = w(a)) != null && m.isReady),
8557
- onClick: se(u, ["stop"])
8561
+ onClick: re(u, ["stop"])
8558
8562
  }, {
8559
8563
  default: J(() => p[1] || (p[1] = [
8560
8564
  v("Import")
@@ -8564,7 +8568,7 @@ const uh = ["title", "onClick"], dh = {
8564
8568
  p[3] || (p[3] = v()),
8565
8569
  Q(w(Bs), {
8566
8570
  "justify-center": !1,
8567
- onClick: se(l, ["stop"])
8571
+ onClick: re(l, ["stop"])
8568
8572
  }, {
8569
8573
  default: J(() => p[2] || (p[2] = [
8570
8574
  v("Cancel")
@@ -8652,7 +8656,7 @@ const uh = ["title", "onClick"], dh = {
8652
8656
  class: F(["pl-file-input", { dashed: M.dashed, error: p.value }]),
8653
8657
  tabindex: "0",
8654
8658
  onKeyup: Ne($, ["enter"]),
8655
- onClick: se($, ["stop"])
8659
+ onClick: re($, ["stop"])
8656
8660
  }, [
8657
8661
  y("div", {
8658
8662
  class: "pl-file-input__progress",
@@ -8702,7 +8706,7 @@ const uh = ["title", "onClick"], dh = {
8702
8706
  M.modelValue ? (f(), q(w(Te), {
8703
8707
  key: 6,
8704
8708
  name: "close",
8705
- onClick: se(O, ["stop"])
8709
+ onClick: re(O, ["stop"])
8706
8710
  })) : A("", !0),
8707
8711
  R[8] || (R[8] = v()),
8708
8712
  Q(et, { class: "pl-file-input__contour" })
@@ -8756,7 +8760,7 @@ const uh = ["title", "onClick"], dh = {
8756
8760
  o.closable ? (f(), h("div", Eh, [
8757
8761
  Q(w(Bs), {
8758
8762
  icon: "close",
8759
- onClick: se(r, ["stop"])
8763
+ onClick: re(r, ["stop"])
8760
8764
  })
8761
8765
  ])) : A("", !0)
8762
8766
  ]),
@@ -12867,7 +12871,7 @@ const f1 = { class: "ui-slider__wrapper" }, p1 = { class: "ui-slider__label-sect
12867
12871
  "scroll-top": n.scrollTop,
12868
12872
  "client-height": n.clientHeight,
12869
12873
  "scroll-height": n.scrollHeight,
12870
- onWheel: a[0] || (a[0] = se(() => {
12874
+ onWheel: a[0] || (a[0] = re(() => {
12871
12875
  }, ["stop"])),
12872
12876
  "onUpdate:scrollTop": s
12873
12877
  }, null, 8, ["scroll-top", "client-height", "scroll-height"]),
@@ -12876,7 +12880,7 @@ const f1 = { class: "ui-slider__wrapper" }, p1 = { class: "ui-slider__label-sect
12876
12880
  "scroll-left": n.scrollLeft,
12877
12881
  "client-width": n.clientWidth,
12878
12882
  "scroll-width": n.scrollWidth,
12879
- onWheel: a[1] || (a[1] = se(() => {
12883
+ onWheel: a[1] || (a[1] = re(() => {
12880
12884
  }, ["stop"])),
12881
12885
  "onUpdate:scrollLeft": i
12882
12886
  }, null, 8, ["scroll-left", "client-width", "scroll-width"])