@orchidui/core 1.1.31-23 → 1.1.31-24

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 (79) hide show
  1. package/dist/DataDisplay/CustomerCard/OcCustomerCard.js +1 -1
  2. package/dist/DataDisplay/FloatContent/OcFloatContent.js +1 -1
  3. package/dist/DataDisplay/InfoCard/OcInfoCard.js +1 -1
  4. package/dist/DataDisplay/ListDetail/OcListDetail.js +1 -1
  5. package/dist/DataDisplay/ListItem/OcListItem.js +1 -1
  6. package/dist/DataDisplay/OnboardingListItem/OcOnboardingListItem.js +1 -1
  7. package/dist/DataDisplay/Overview/OcOverview.js +1 -1
  8. package/dist/DataDisplay/Pagination/OcPagination.js +1 -1
  9. package/dist/DataDisplay/Table/OcTable.js +1 -1
  10. package/dist/DataDisplay/TransferSummary/OcTransferSummary.js +1 -1
  11. package/dist/Disclosure/Accordion/OcAccordion.js +1 -1
  12. package/dist/Disclosure/OnboardingAccordion/OnboardingAccordion.js +1 -1
  13. package/dist/Disclosure/Steps/OcSteps.js +1 -1
  14. package/dist/Disclosure/Tabs/Tabs.js +1 -1
  15. package/dist/Disclosure/Variants/OcVariants.js +1 -1
  16. package/dist/Elements/AdditionalContent/OcAdditionalContent.js +1 -1
  17. package/dist/Elements/AuthenticationOption/AuthenticationOption.js +1 -1
  18. package/dist/Elements/Box/OcBox.js +1 -1
  19. package/dist/Elements/EmptyPage/OcEmptyPage.js +1 -1
  20. package/dist/Elements/FeatureOverviewCard/OcFeatureOverviewCard.js +1 -1
  21. package/dist/Elements/Header/OcHeader.js +1 -1
  22. package/dist/Elements/PageTitle/OcPageTitle.js +1 -1
  23. package/dist/Elements/SandboxBanner/OcSandboxBanner.js +1 -1
  24. package/dist/Elements/Sidebar/OcSidebar.js +1 -1
  25. package/dist/Elements/SubSidebar/OcSubSidebar.js +1 -1
  26. package/dist/Elements/VerificationOption/OcVerificationOption.js +1 -1
  27. package/dist/Feedback/Banner/OcBanner.js +1 -1
  28. package/dist/Feedback/Chip/OcChip.js +1 -1
  29. package/dist/Feedback/ShareIcon/OcShareIcon.js +1 -1
  30. package/dist/Feedback/Snackbar/OcSnackbar.js +1 -1
  31. package/dist/Form/BaseInput/OcBaseInput.js +1 -1
  32. package/dist/Form/Button/OcButton.js +1 -1
  33. package/dist/Form/Calendar/OcCalendar.js +1 -1
  34. package/dist/Form/CardInput/OcCardInput.js +1 -1
  35. package/dist/Form/Checkbox/OcCheckbox.js +1 -1
  36. package/dist/Form/CheckboxesGroup/OcCheckboxesGroup.js +1 -1
  37. package/dist/Form/Criteria/OcCriteria.js +1 -1
  38. package/dist/Form/Cropper/OcCropper.js +1 -1
  39. package/dist/Form/DatePicker/OcDatePicker.js +1 -1
  40. package/dist/Form/EmojiPicker/OcEmojiPicker.js +1 -1
  41. package/dist/Form/Input/OcInput.js +1 -1
  42. package/dist/Form/LinkInput/OcLinkInput.js +1 -1
  43. package/dist/Form/MultipleUploadFile/OcMultipleUploadFile.js +1 -1
  44. package/dist/Form/NumberInput/OcNumberInput.js +1 -1
  45. package/dist/Form/PhoneInput/OcPhoneInput.js +1 -1
  46. package/dist/Form/Radio/OcRadio.js +1 -1
  47. package/dist/Form/RadioGroup/OcRadioGroup.js +1 -1
  48. package/dist/Form/RangeInput/OcRangeInput.js +1 -1
  49. package/dist/Form/SectionItem/OcSectionItem.js +1 -1
  50. package/dist/Form/Select/OcSelect.js +1 -1
  51. package/dist/Form/SelectOptions/OcSelectOptions.js +1 -1
  52. package/dist/Form/SingleFileUpload/OcSingleFileUpload.js +1 -1
  53. package/dist/Form/TextArea/OcTextArea.js +1 -1
  54. package/dist/Form/index.js +1 -1
  55. package/dist/FormBuilder/OcFormBuilder.js +1 -1
  56. package/dist/{OcComplexCalendar-B6zBb0u7.js → OcComplexCalendar-BmXBOajF.js} +1 -1
  57. package/dist/{OcComplexDatePicker-D1kycG_l.js → OcComplexDatePicker-B92vX1at.js} +1 -1
  58. package/dist/{OcCropper-z-aG20eS.js → OcCropper-YRfG71vR.js} +1 -1
  59. package/dist/{OcDataTable-DWJQOAYa.js → OcDataTable-BqLofyQy.js} +188 -188
  60. package/dist/{OcDraggableList-LqF2hDS-.js → OcDraggableList-DQcvwsey.js} +1 -1
  61. package/dist/{OcEmojiPicker-BoGb4Ef7.js → OcEmojiPicker-BIlk8xNS.js} +1 -1
  62. package/dist/{OcFilterForm-Fxpc7EhQ.js → OcFilterForm-BX2mwTWc.js} +1 -1
  63. package/dist/{OcFilterSearch-Bfd3H07r.js → OcFilterSearch-DCAiNi_i.js} +1 -1
  64. package/dist/{OcFilterSearchFor-pMMtethY.js → OcFilterSearchFor-CY01Kxje.js} +1 -1
  65. package/dist/{OcModalCropper-C1qS-fCn.js → OcModalCropper-wUqNo8p8.js} +2 -2
  66. package/dist/{OcTimePicker-9rdpsy1C.js → OcTimePicker-qBmNuCA7.js} +1 -1
  67. package/dist/Overlay/ConfirmationModal/OcConfirmationModal.js +1 -1
  68. package/dist/Overlay/CopyTooltip/OcCopyTooltip.js +1 -1
  69. package/dist/Overlay/Dropdown/OcDropdown.js +1 -1
  70. package/dist/Overlay/Modal/OcModal.js +1 -1
  71. package/dist/Overlay/SupportMenu/OcSupportMenu.js +1 -1
  72. package/dist/Overlay/Tooltip/OcTooltip.js +1 -1
  73. package/dist/Overlay/Whitelist/OcWhiteList.js +1 -1
  74. package/dist/{SubPlanCard-BAJid5Nc.js → SubPlanCard-dDlFKnW_.js} +1 -1
  75. package/dist/{ThumbnailSection-BRmwwEcY.js → ThumbnailSection-BYwqQMVp.js} +1 -1
  76. package/dist/{ThumbnailTheme-CL-Y-2u3.js → ThumbnailTheme-H0yUnZ6T.js} +1 -1
  77. package/dist/{index-CyCaCeTM.js → index-BgxWMARS.js} +7 -7
  78. package/dist/index.js +1 -1
  79. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import { ref as D, onMounted as Ve, openBlock as i, createBlock as K, unref as y, withCtx as $, createElementVNode as R, createElementBlock as h, createVNode as B, mergeProps as ge, Fragment as ee, renderList as ae, normalizeClass as te, toDisplayString as be, createCommentVNode as k, computed as A, createSlots as Qe, renderSlot as C, normalizeProps as ke, guardReactiveProps as xe } from "vue";
2
- import { ay as Fe, b as Re, B as Ee, L as Je, Y as ze, aJ as _e, aK as He, aL as Ge, I as We, J as he, k as Xe } from "./index-CyCaCeTM.js";
1
+ import { ref as L, onMounted as Ve, openBlock as i, createBlock as U, unref as y, withCtx as $, createElementVNode as J, createElementBlock as w, createVNode as N, mergeProps as ge, Fragment as ee, renderList as ae, normalizeClass as te, toDisplayString as be, createCommentVNode as x, computed as D, createSlots as Qe, renderSlot as Y, normalizeProps as ke, guardReactiveProps as xe } from "vue";
2
+ import { ay as Ee, b as Re, B as Fe, L as Je, Y as ze, aJ as _e, aK as He, aL as Ge, I as We, J as he, k as Xe } from "./index-BgxWMARS.js";
3
3
  import le from "dayjs";
4
4
  import { VueDraggableNext as we } from "vue-draggable-next";
5
5
  import { getFromLocalStorage as se, formatHeadersFromLocalStorage as Oe, formatHeadersToLocalStorage as Ze, setInLocalStorage as $e } from "./DataTable/utils/editColumnsUtils.js";
@@ -27,8 +27,8 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
27
27
  }
28
28
  },
29
29
  emits: ["change-active", "onMoved", "update-order"],
30
- setup(F, { emit: Z }) {
31
- const v = Z, E = F, c = D([]), f = D([]), I = D(!1), S = (a = !1) => {
30
+ setup(E, { emit: Z }) {
31
+ const v = Z, F = E, c = L([]), f = L([]), T = L(!1), S = (a = !1) => {
32
32
  f.value = f.value.map((p) => ({
33
33
  ...p,
34
34
  isActive: !0
@@ -47,78 +47,78 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
47
47
  "onUpdate:modelValue": () => S()
48
48
  };
49
49
  return Ve(() => {
50
- const a = se(E.localKey), { fixed: p, active: m } = Oe(a, E.headers, E.localKey);
51
- f.value = p || E.headers.slice(0, 1), c.value = m || E.headers.slice(1).map((x) => {
52
- var V, Y, L;
50
+ const a = se(F.localKey), { fixed: p, active: m } = Oe(a, F.headers, F.localKey);
51
+ f.value = p || F.headers.slice(0, 1), c.value = m || F.headers.slice(1).map((h) => {
52
+ var V, B, P;
53
53
  return {
54
- ...x,
55
- isActive: ((L = (Y = (V = E.options) == null ? void 0 : V.active) == null ? void 0 : Y.find((X) => X.key === x.key)) == null ? void 0 : L.isActive) ?? !0
54
+ ...h,
55
+ isActive: ((P = (B = (V = F.options) == null ? void 0 : V.active) == null ? void 0 : B.find((X) => X.key === h.key)) == null ? void 0 : P.isActive) ?? !0
56
56
  };
57
57
  }), S(!0);
58
- }), (a, p) => (i(), K(y(Fe), {
59
- modelValue: I.value,
60
- "onUpdate:modelValue": p[3] || (p[3] = (m) => I.value = m),
58
+ }), (a, p) => (i(), U(y(Ee), {
59
+ modelValue: T.value,
60
+ "onUpdate:modelValue": p[3] || (p[3] = (m) => T.value = m),
61
61
  class: "h-[36px]",
62
62
  "is-attach-to-body": ""
63
63
  }, {
64
64
  menu: $(() => [
65
- R("div", el, [
66
- f.value.length ? (i(), h("div", ll, [
67
- p[4] || (p[4] = R("span", { class: "text-oc-text-400 font-medium" }, "Fixed columns", -1)),
68
- B(y(we), ge({
65
+ J("div", el, [
66
+ f.value.length ? (i(), w("div", ll, [
67
+ p[4] || (p[4] = J("span", { class: "text-oc-text-400 font-medium" }, "Fixed columns", -1)),
68
+ N(y(we), ge({
69
69
  key: "key",
70
70
  modelValue: f.value,
71
71
  "onUpdate:modelValue": p[0] || (p[0] = (m) => f.value = m)
72
72
  }, W), {
73
73
  default: $(() => [
74
- (i(!0), h(ee, null, ae(f.value, (m, x) => (i(), h("div", {
74
+ (i(!0), w(ee, null, ae(f.value, (m, h) => (i(), w("div", {
75
75
  key: m.key,
76
- class: te(["flex items-center justify-between h-[26px]", x ? "" : "is-disabled"])
76
+ class: te(["flex items-center justify-between h-[26px]", h ? "" : "is-disabled"])
77
77
  }, [
78
- R("span", null, be(m.label), 1),
79
- x ? (i(), K(y(Se), {
78
+ J("span", null, be(m.label), 1),
79
+ h ? (i(), U(y(Se), {
80
80
  key: 0,
81
81
  width: "18",
82
82
  height: "18",
83
83
  class: "text-oc-text-400 drag-el cursor-move",
84
84
  name: "draggable"
85
- })) : k("", !0)
85
+ })) : x("", !0)
86
86
  ], 2))), 128))
87
87
  ]),
88
88
  _: 1
89
89
  }, 16, ["modelValue"])
90
- ])) : k("", !0),
91
- R("div", al, [
92
- p[5] || (p[5] = R("span", { class: "text-oc-text-400 font-medium" }, "Active columns", -1)),
93
- B(y(we), ge({
90
+ ])) : x("", !0),
91
+ J("div", al, [
92
+ p[5] || (p[5] = J("span", { class: "text-oc-text-400 font-medium" }, "Active columns", -1)),
93
+ N(y(we), ge({
94
94
  key: "key",
95
95
  modelValue: c.value,
96
96
  "onUpdate:modelValue": p[2] || (p[2] = (m) => c.value = m)
97
97
  }, W, { "data-active-headers": "true" }), {
98
98
  default: $(() => [
99
- (i(!0), h(ee, null, ae(c.value, (m) => (i(), h(ee, {
99
+ (i(!0), w(ee, null, ae(c.value, (m) => (i(), w(ee, {
100
100
  key: m.key
101
101
  }, [
102
- m.key !== "actions" ? (i(), h("div", tl, [
103
- R("div", sl, [
104
- B(y(Re), {
102
+ m.key !== "actions" ? (i(), w("div", tl, [
103
+ J("div", sl, [
104
+ N(y(Re), {
105
105
  modelValue: m.isActive,
106
106
  "onUpdate:modelValue": [
107
- (x) => m.isActive = x,
108
- p[1] || (p[1] = (x) => S())
107
+ (h) => m.isActive = h,
108
+ p[1] || (p[1] = (h) => S())
109
109
  ],
110
110
  class: "!w-fit"
111
111
  }, null, 8, ["modelValue", "onUpdate:modelValue"]),
112
- R("div", ol, be(m.label), 1)
112
+ J("div", ol, be(m.label), 1)
113
113
  ]),
114
- c.value.length > 1 ? (i(), K(y(Se), {
114
+ c.value.length > 1 ? (i(), U(y(Se), {
115
115
  key: 0,
116
116
  width: "18",
117
117
  height: "18",
118
118
  class: "text-oc-text-400 drag-el cursor-move",
119
119
  name: "draggable"
120
- })) : k("", !0)
121
- ])) : k("", !0)
120
+ })) : x("", !0)
121
+ ])) : x("", !0)
122
122
  ], 64))), 128))
123
123
  ]),
124
124
  _: 1
@@ -127,7 +127,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
127
127
  ])
128
128
  ]),
129
129
  default: $(() => [
130
- B(y(Ee), {
130
+ N(y(Fe), {
131
131
  label: "Edit Column",
132
132
  "left-icon": "setting",
133
133
  variant: "secondary"
@@ -188,35 +188,35 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
188
188
  "search-query-changed": [],
189
189
  "hover:cell": []
190
190
  },
191
- setup(F, { emit: Z }) {
191
+ setup(E, { emit: Z }) {
192
192
  var re, ie, ne, de, ve, ce, fe, pe, me;
193
- const v = F, E = Z, c = A(() => {
193
+ const v = E, F = Z, c = D(() => {
194
194
  var l;
195
195
  return (l = v.options) == null ? void 0 : l.pagination;
196
- }), f = A(() => {
196
+ }), f = D(() => {
197
197
  var l;
198
198
  return (l = v.options) == null ? void 0 : l.cursor;
199
- }), I = D(), S = A(() => {
199
+ }), T = L(), S = D(() => {
200
200
  var l;
201
201
  return (l = v.options) == null ? void 0 : l.tableOptions;
202
- }), W = A(() => {
202
+ }), W = D(() => {
203
203
  var l;
204
204
  return {
205
205
  ...S.value,
206
- headers: I.value ? I.value.filter((e) => ue(e.key)) : (l = S.value) == null ? void 0 : l.headers.filter((e) => ue(e.key))
206
+ headers: T.value ? T.value.filter((e) => ue(e.key)) : (l = S.value) == null ? void 0 : l.headers.filter((e) => ue(e.key))
207
207
  };
208
- }), a = A(() => {
208
+ }), a = D(() => {
209
209
  var l;
210
210
  return (l = v.options) == null ? void 0 : l.filterOptions;
211
- }), p = A(() => {
211
+ }), p = D(() => {
212
212
  var l;
213
213
  return (l = v.options) == null ? void 0 : l.hidePerPageDropdown;
214
- }), m = A(() => {
214
+ }), m = D(() => {
215
215
  var l;
216
216
  return ((l = c.value) == null ? void 0 : l.last_page) === 1;
217
- }), x = D(!1), V = D(v.filter[(ie = (re = a.value) == null ? void 0 : re.tabs) == null ? void 0 : ie.key]), Y = D(v.filter.page), L = D(
217
+ }), h = L(!1), V = L(v.filter[(ie = (re = a.value) == null ? void 0 : re.tabs) == null ? void 0 : ie.key]), B = L(v.filter.page), P = L(
218
218
  (de = (ne = a.value) == null ? void 0 : ne.per_page) != null && de.key ? v.filter[(ce = (ve = a.value) == null ? void 0 : ve.per_page) == null ? void 0 : ce.key] : v.filter.per_page
219
- ), X = ((me = v.filter[(pe = (fe = a.value) == null ? void 0 : fe.search) == null ? void 0 : pe.key]) == null ? void 0 : me.trim()) ?? "", T = D(X ? X.split(",") : []), oe = D(!1), je = A(
219
+ ), X = ((me = v.filter[(pe = (fe = a.value) == null ? void 0 : fe.search) == null ? void 0 : pe.key]) == null ? void 0 : me.trim()) ?? "", q = L(X ? X.split(",") : []), oe = L(!1), je = D(
220
220
  () => {
221
221
  var l, e;
222
222
  return (e = (l = v.options) == null ? void 0 : l.perPageOptions) == null ? void 0 : e.map(
@@ -226,7 +226,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
226
226
  })
227
227
  );
228
228
  }
229
- ), Ae = A(() => {
229
+ ), Ae = D(() => {
230
230
  let l = [
231
231
  {
232
232
  label: "10",
@@ -266,73 +266,73 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
266
266
  o > 10 && (e = e.filter((u) => u.value <= o));
267
267
  }
268
268
  return [...new Set(e)];
269
- }), De = A(() => {
269
+ }), De = D(() => {
270
270
  var l;
271
271
  return ((l = v.selected) == null ? void 0 : l.length) > 0;
272
272
  }), Le = (l) => {
273
- !l.trim() || T.value.includes(l) || (T.value = [l], O(), E("search-query-changed", l));
273
+ !l.trim() || q.value.includes(l) || (q.value = [l], O(), F("search-query-changed", l));
274
274
  }, Pe = (l) => {
275
- T.value = T.value.filter((e) => e !== l), O();
276
- }, q = v.filter;
277
- !q && c ? q.page = 1 : !q && f && (q.cursor = "");
278
- const s = D(q), Ce = () => {
279
- var e, o, u, d, n, t, g, w;
280
- T.value = [], V.value = "";
275
+ q.value = q.value.filter((e) => e !== l), O();
276
+ }, Q = v.filter;
277
+ !Q && c ? Q.page = 1 : !Q && f && (Q.cursor = "");
278
+ const t = L(Q), Ce = () => {
279
+ var e, o, u, d, n, s, g, b;
280
+ q.value = [], V.value = "";
281
281
  const l = {};
282
- a.value ? q.page = 1 : q.cursor = "", (o = (e = a.value) == null ? void 0 : e.per_page) != null && o.key ? l[(d = (u = a.value) == null ? void 0 : u.per_page) == null ? void 0 : d.key] = L.value : l.per_page = L.value, (t = (n = a.value) == null ? void 0 : n.tabs) != null && t.key ? l[(w = (g = a.value) == null ? void 0 : g.tabs) == null ? void 0 : w.key] = V.value : l.tabs = V.value, s.value = l, O();
282
+ a.value ? Q.page = 1 : Q.cursor = "", (o = (e = a.value) == null ? void 0 : e.per_page) != null && o.key ? l[(d = (u = a.value) == null ? void 0 : u.per_page) == null ? void 0 : d.key] = P.value : l.per_page = P.value, (s = (n = a.value) == null ? void 0 : n.tabs) != null && s.key ? l[(b = (g = a.value) == null ? void 0 : g.tabs) == null ? void 0 : b.key] = V.value : l.tabs = V.value, t.value = l, O();
283
283
  }, Ke = () => {
284
- O(null, Y.value);
284
+ O(null, B.value);
285
285
  }, Ye = () => {
286
- v.id && $e(v.id, JSON.stringify(s.value));
286
+ v.id && $e(v.id, JSON.stringify(t.value));
287
287
  }, Ue = () => v.id ? se(v.id) : null, O = (l = null, e = !1, o = "") => {
288
288
  var u, d, n;
289
- c.value && !e && (Y.value = 1), c.value ? s.value.page = Y.value : s.value.cursor = o, (u = a.value) != null && u.per_page ? s.value[a.value.per_page.key] = L.value : s.value.per_page = L.value, (d = a.value) != null && d.tabs && (s.value[a.value.tabs.key] = V.value), (n = a.value) != null && n.search && (s.value[a.value.search.key] = T.value.join()), l && (x.value = !1, s.value = { ...s.value, ...l }, Object.keys(s.value).forEach((t) => {
290
- Array.isArray(s.value[t]) && s.value[t].length === 0 && delete s.value[t];
291
- })), Ye(), E("update:filter", s.value);
289
+ c.value && !e && (B.value = 1), c.value ? t.value.page = B.value : t.value.cursor = o, (u = a.value) != null && u.per_page ? t.value[a.value.per_page.key] = P.value : t.value.per_page = P.value, (d = a.value) != null && d.tabs && (t.value[a.value.tabs.key] = V.value), (n = a.value) != null && n.search && (t.value[a.value.search.key] = q.value.join()), l && (h.value = !1, t.value = { ...t.value, ...l }, Object.keys(t.value).forEach((s) => {
290
+ Array.isArray(t.value[s]) && t.value[s].length === 0 && delete t.value[s];
291
+ })), Ye(), F("update:filter", t.value);
292
292
  }, Be = (l, e) => {
293
- (e === a.value.tabs.key || e === "tabs") && (V.value = ""), O(l), E("filter-removed", e);
293
+ (e === a.value.tabs.key || e === "tabs") && (V.value = ""), O(l), F("filter-removed", e);
294
294
  }, Me = (l) => {
295
295
  let e = [];
296
296
  return l.forEach((o) => {
297
297
  e.push(o.key);
298
298
  }), e;
299
- }, Ne = A(() => {
300
- if (s.value) {
299
+ }, Ne = D(() => {
300
+ if (t.value) {
301
301
  let l = [];
302
- return Object.keys(s.value).forEach((e) => {
303
- var n, t, g, w, Q, M, J, z, _, H, G;
304
- let o = (t = (n = a.value) == null ? void 0 : n.tabs) == null ? void 0 : t.key;
305
- const u = (w = (g = a.value) == null ? void 0 : g.search) == null ? void 0 : w.key, d = ((M = (Q = a.value) == null ? void 0 : Q.per_page) == null ? void 0 : M.key) ?? "per_page";
306
- if ((J = a.value.form) == null || J.find((b) => {
307
- b.name === o && (o = "");
302
+ return Object.keys(t.value).forEach((e) => {
303
+ var n, s, g, b, C, j, R, z, _, H, G;
304
+ let o = (s = (n = a.value) == null ? void 0 : n.tabs) == null ? void 0 : s.key;
305
+ const u = (b = (g = a.value) == null ? void 0 : g.search) == null ? void 0 : b.key, d = ((j = (C = a.value) == null ? void 0 : C.per_page) == null ? void 0 : j.key) ?? "per_page";
306
+ if ((R = a.value.form) == null || R.find((k) => {
307
+ k.name === o && (o = "");
308
308
  }), e !== "page" && e !== "cursor" && e !== d && e !== o && e !== u) {
309
- let b = null, r = (z = a.value.form) == null ? void 0 : z.find((U) => {
310
- if (typeof U.name == "object") {
311
- let P = !1;
312
- return U.name.forEach((N) => {
313
- N.key === e && (P = !0, b = Me(U.name));
314
- }), P;
309
+ let k = null, r = (z = a.value.form) == null ? void 0 : z.find((M) => {
310
+ if (typeof M.name == "object") {
311
+ let K = !1;
312
+ return M.name.forEach((I) => {
313
+ I.key === e && (K = !0, k = Me(M.name));
314
+ }), K;
315
315
  } else
316
- return U.name === e;
317
- }), j = "";
318
- if (r && s.value[e]) {
319
- if (typeof r.name == "object" ? (_ = r.name) == null || _.forEach((P) => {
320
- j && (j += " - "), j += s.value[P.key];
321
- }) : j = s.value[e], r.props.options && (j = (r.props.multiple ? s.value[e] : [s.value[e]]).map(
322
- (N) => {
316
+ return M.name === e;
317
+ }), A = "";
318
+ if (r && t.value[e]) {
319
+ if (typeof r.name == "object" ? (_ = r.name) == null || _.forEach((K) => {
320
+ A && (A += " - "), A += t.value[K.key];
321
+ }) : A = t.value[e], r.props.options && (A = (r.props.multiple ? t.value[e] : [t.value[e]]).map(
322
+ (I) => {
323
323
  var ye;
324
- return (ye = r.props.options.find(({ value: qe }) => qe === N)) == null ? void 0 : ye.label;
324
+ return (ye = r.props.options.find(({ value: qe }) => qe === I)) == null ? void 0 : ye.label;
325
325
  }
326
- ).join(", ")), r.type === "RangeInput" && Array.isArray(s.value[e]) && (j = s.value[e][0].toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") + " - " + s.value[e][1].toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",")), r.type === "DatePicker")
326
+ ).join(", ")), r.type === "RangeInput" && Array.isArray(t.value[e]) && (A = t.value[e][0].toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") + " - " + t.value[e][1].toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",")), r.type === "DatePicker")
327
327
  if (((H = r == null ? void 0 : r.props) == null ? void 0 : H.type) === "range" && r.name && r.name[1]) {
328
- const P = le(s.value[r.name[0].key]).format("MM/DD/YYYY"), N = le(s.value[r.name[1].key]).format("MM/DD/YYYY");
329
- j = P === N ? P : P + " - " + N;
330
- } else j = le(s.value[r.name]).format("MM/DD/YYYY");
331
- let U = `${(G = r == null ? void 0 : r.props) == null ? void 0 : G.label} : ${j}`;
332
- r && r.name && typeof r.name == "object" && l.find((N) => N.name === b[0]) && (U = ""), l.push({
333
- label: U,
328
+ const K = le(t.value[r.name[0].key]).format("MM/DD/YYYY"), I = le(t.value[r.name[1].key]).format("MM/DD/YYYY");
329
+ A = K === I ? K : K + " - " + I;
330
+ } else A = le(t.value[r.name]).format("MM/DD/YYYY");
331
+ let M = `${(G = r == null ? void 0 : r.props) == null ? void 0 : G.label} : ${A}`;
332
+ r && r.name && typeof r.name == "object" && l.find((I) => I.name === k[0]) && (M = ""), l.push({
333
+ label: M,
334
334
  name: e,
335
- multiNames: b
335
+ multiNames: k
336
336
  });
337
337
  }
338
338
  }
@@ -340,25 +340,25 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
340
340
  }
341
341
  return [];
342
342
  }), ue = (l) => {
343
- var e, o, u, d, n, t;
344
- return ((t = (n = (d = (u = s.value) == null ? void 0 : u[(o = (e = a.value) == null ? void 0 : e.columnEdit) == null ? void 0 : o.key]) == null ? void 0 : d.active) == null ? void 0 : n.find((g) => g.key === l)) == null ? void 0 : t.isActive) ?? !0;
343
+ var e, o, u, d, n, s;
344
+ return ((s = (n = (d = (u = t.value) == null ? void 0 : u[(o = (e = a.value) == null ? void 0 : e.columnEdit) == null ? void 0 : o.key]) == null ? void 0 : d.active) == null ? void 0 : n.find((g) => g.key === l)) == null ? void 0 : s.isActive) ?? !0;
345
345
  }, Ie = ({ fixedHeaders: l, activeHeaders: e, isOnMount: o }) => {
346
- var u, d, n, t;
347
- if (s.value[(d = (u = a.value) == null ? void 0 : u.columnEdit) == null ? void 0 : d.key].fixed = l, s.value[(t = (n = a.value) == null ? void 0 : n.columnEdit) == null ? void 0 : t.key].active = e, I.value = [...l, ...e], !o) {
348
- const g = Ze(l, e);
349
- $e(a.value.columnEdit.localStorageKey, g);
346
+ var u, d, n, s, g, b, C, j;
347
+ if (t.value[(d = (u = a.value) == null ? void 0 : u.columnEdit) == null ? void 0 : d.key] || (t.value[(s = (n = a.value) == null ? void 0 : n.columnEdit) == null ? void 0 : s.key] = {}), t.value[(b = (g = a.value) == null ? void 0 : g.columnEdit) == null ? void 0 : b.key].fixed = l, t.value[(j = (C = a.value) == null ? void 0 : C.columnEdit) == null ? void 0 : j.key].active = e, T.value = [...l, ...e], !o) {
348
+ const R = Ze(l, e);
349
+ $e(a.value.columnEdit.localStorageKey, R);
350
350
  }
351
351
  }, Te = () => {
352
352
  var l, e, o, u, d, n;
353
353
  if ((e = (l = a.value) == null ? void 0 : l.columnEdit) != null && e.localStorageKey) {
354
- const t = se(a.value.columnEdit.localStorageKey);
355
- if (t) {
356
- const { fixed: g, active: w } = Oe(
357
- t,
354
+ const s = se(a.value.columnEdit.localStorageKey);
355
+ if (s) {
356
+ const { fixed: g, active: b } = Oe(
357
+ s,
358
358
  S.value.headers,
359
359
  a.value.columnEdit.localStorageKey
360
360
  );
361
- s.value[(u = (o = a.value) == null ? void 0 : o.columnEdit) == null ? void 0 : u.key].fixed = g, s.value[(n = (d = a.value) == null ? void 0 : d.columnEdit) == null ? void 0 : n.key].active = w, I.value = [...g, ...w];
361
+ t.value[(u = (o = a.value) == null ? void 0 : o.columnEdit) == null ? void 0 : u.key].fixed = g, t.value[(n = (d = a.value) == null ? void 0 : d.columnEdit) == null ? void 0 : n.key].active = b, T.value = [...g, ...b];
362
362
  }
363
363
  }
364
364
  };
@@ -366,131 +366,131 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
366
366
  var e, o, u, d, n;
367
367
  Te();
368
368
  const l = Ue();
369
- l && (s.value = JSON.parse(l), V.value = V.value || ((e = s.value) == null ? void 0 : e.tabs) || ((d = s.value) == null ? void 0 : d[(u = (o = a.value) == null ? void 0 : o.tabs) == null ? void 0 : u.key]), Y.value = ((n = s.value) == null ? void 0 : n.page) || 1, O(null, !0, s.value.cursor));
369
+ l && (t.value = JSON.parse(l), V.value = V.value || ((e = t.value) == null ? void 0 : e.tabs) || ((d = t.value) == null ? void 0 : d[(u = (o = a.value) == null ? void 0 : o.tabs) == null ? void 0 : u.key]), B.value = ((n = t.value) == null ? void 0 : n.page) || 1, O(null, !0, t.value.cursor));
370
370
  }), (l, e) => {
371
371
  var o, u, d, n;
372
- return i(), h("div", rl, [
373
- S.value ? (i(), K(y(Je), {
372
+ return i(), w("div", rl, [
373
+ S.value ? (i(), U(y(Je), {
374
374
  key: 0,
375
- selected: F.selected,
376
- "row-key": F.rowKey,
375
+ selected: E.selected,
376
+ "row-key": E.rowKey,
377
377
  options: W.value,
378
- "is-loading": F.isLoading,
379
- "loading-rows": L.value,
380
- "row-class": F.rowClass,
381
- "row-link": F.rowLink,
378
+ "is-loading": E.isLoading,
379
+ "loading-rows": P.value,
380
+ "row-class": E.rowClass,
381
+ "row-link": E.rowLink,
382
382
  "is-sticky": S.value.isSticky,
383
383
  "is-borderless": S.value.isBorderless,
384
- "onUpdate:selected": e[7] || (e[7] = (t) => l.$emit("update:selected", t)),
385
- "onClick:row": e[8] || (e[8] = (t) => l.$emit("click:row", t)),
386
- "onHover:cell": e[9] || (e[9] = (t) => l.$emit("hover:cell", t))
384
+ "onUpdate:selected": e[7] || (e[7] = (s) => l.$emit("update:selected", s)),
385
+ "onClick:row": e[8] || (e[8] = (s) => l.$emit("click:row", s)),
386
+ "onHover:cell": e[9] || (e[9] = (s) => l.$emit("hover:cell", s))
387
387
  }, Qe({
388
388
  after: $(() => [
389
- C(l.$slots, "after")
389
+ Y(l.$slots, "after")
390
390
  ]),
391
391
  empty: $(() => [
392
- C(l.$slots, "empty")
392
+ Y(l.$slots, "empty")
393
393
  ]),
394
- "table-header": $((t) => [
395
- C(l.$slots, "table-header", ke(xe(t)))
394
+ "table-header": $((s) => [
395
+ Y(l.$slots, "table-header", ke(xe(s)))
396
396
  ]),
397
- "table-body": $((t) => [
398
- C(l.$slots, "table-body", ke(xe(t)))
397
+ "table-body": $((s) => [
398
+ Y(l.$slots, "table-body", ke(xe(s)))
399
399
  ]),
400
400
  _: 2
401
401
  }, [
402
402
  l.$slots.before || (o = a.value) != null && o.search || (u = a.value) != null && u.form || (d = a.value) != null && d.tabs ? {
403
403
  name: "before",
404
404
  fn: $(() => {
405
- var t, g, w, Q;
405
+ var s, g, b, C;
406
406
  return [
407
- C(l.$slots, "before"),
408
- (t = a.value) != null && t.search || (g = a.value) != null && g.form || (w = a.value) != null && w.tabs ? (i(), h("div", il, [
409
- De.value ? (i(), h("div", nl, [
410
- C(l.$slots, "bulk-actions", { selectedRows: F.selected })
411
- ])) : (i(), h("div", dl, [
412
- (Q = a.value) != null && Q.tabs ? (i(), K(y(ze), {
407
+ Y(l.$slots, "before"),
408
+ (s = a.value) != null && s.search || (g = a.value) != null && g.form || (b = a.value) != null && b.tabs ? (i(), w("div", il, [
409
+ De.value ? (i(), w("div", nl, [
410
+ Y(l.$slots, "bulk-actions", { selectedRows: E.selected })
411
+ ])) : (i(), w("div", dl, [
412
+ (C = a.value) != null && C.tabs ? (i(), U(y(ze), {
413
413
  key: 0,
414
414
  modelValue: V.value,
415
415
  "onUpdate:modelValue": [
416
- e[0] || (e[0] = (M) => V.value = M),
417
- e[1] || (e[1] = (M) => O(null))
416
+ e[0] || (e[0] = (j) => V.value = j),
417
+ e[1] || (e[1] = (j) => O(null))
418
418
  ],
419
- "is-disabled": F.isLoading,
419
+ "is-disabled": E.isLoading,
420
420
  tabs: a.value.tabs.options,
421
421
  variant: "pills"
422
- }, null, 8, ["modelValue", "is-disabled", "tabs"])) : k("", !0)
422
+ }, null, 8, ["modelValue", "is-disabled", "tabs"])) : x("", !0)
423
423
  ])),
424
- C(l.$slots, "filter-options", {}, () => {
425
- var M, J, z, _, H, G;
424
+ Y(l.$slots, "filter-options", {}, () => {
425
+ var j, R, z, _, H, G;
426
426
  return [
427
- (M = a.value) != null && M.search || (J = a.value) != null && J.form || (z = a.value) != null && z.columnEdit ? (i(), h("div", {
427
+ (j = a.value) != null && j.search || (R = a.value) != null && R.form || (z = a.value) != null && z.columnEdit ? (i(), w("div", {
428
428
  key: 0,
429
429
  class: te([
430
430
  "flex gap-3 absolute ml-auto bg-oc-bg-light right-4 max-w-[calc(100%-24px)]",
431
431
  a.value ? oe.value ? "md:w-fit w-full" : "" : "w-full justify-end"
432
432
  ])
433
433
  }, [
434
- (_ = a.value) != null && _.search ? (i(), K(y(_e), {
434
+ (_ = a.value) != null && _.search ? (i(), U(y(_e), {
435
435
  key: 0,
436
436
  "is-search-only": !a.value.tabs || a.value.isSearchOnly,
437
437
  onAddQuery: Le,
438
- onToggle: e[2] || (e[2] = (b) => oe.value = b)
439
- }, null, 8, ["is-search-only"])) : k("", !0),
440
- (H = a.value) != null && H.form ? (i(), K(y(Fe), {
438
+ onToggle: e[2] || (e[2] = (k) => oe.value = k)
439
+ }, null, 8, ["is-search-only"])) : x("", !0),
440
+ (H = a.value) != null && H.form ? (i(), U(y(Ee), {
441
441
  key: 1,
442
- modelValue: x.value,
443
- "onUpdate:modelValue": e[6] || (e[6] = (b) => x.value = b),
442
+ modelValue: h.value,
443
+ "onUpdate:modelValue": e[6] || (e[6] = (k) => h.value = k),
444
444
  distance: 9,
445
445
  placement: "bottom-end",
446
446
  "is-attach-to-body": ""
447
447
  }, {
448
448
  menu: $(() => [
449
- x.value ? (i(), K(y(He), {
449
+ h.value ? (i(), U(y(He), {
450
450
  key: 0,
451
- id: F.id,
451
+ id: E.id,
452
452
  "json-form": a.value.form ?? [],
453
453
  grid: a.value.grid ?? null,
454
454
  values: v.filter,
455
455
  actions: a.value.actions,
456
- onApplyFilter: e[3] || (e[3] = (b) => O(b)),
457
- onFilterFieldsChanged: e[4] || (e[4] = (b) => E("filter-fields-changed", b)),
458
- onCancel: e[5] || (e[5] = (b) => x.value = !1)
456
+ onApplyFilter: e[3] || (e[3] = (k) => O(k)),
457
+ onFilterFieldsChanged: e[4] || (e[4] = (k) => F("filter-fields-changed", k)),
458
+ onCancel: e[5] || (e[5] = (k) => h.value = !1)
459
459
  }, {
460
- default: $(({ errors: b, values: r, jsonForm: j, updateForm: U }) => [
461
- C(l.$slots, "custom-filter-form", {
462
- errors: b,
460
+ default: $(({ errors: k, values: r, jsonForm: A, updateForm: M }) => [
461
+ Y(l.$slots, "custom-filter-form", {
462
+ errors: k,
463
463
  values: r,
464
- jsonForm: j,
465
- updateFilter: U
464
+ jsonForm: A,
465
+ updateFilter: M
466
466
  })
467
467
  ]),
468
468
  _: 3
469
- }, 8, ["id", "json-form", "grid", "values", "actions"])) : k("", !0)
469
+ }, 8, ["id", "json-form", "grid", "values", "actions"])) : x("", !0)
470
470
  ]),
471
471
  default: $(() => [
472
- B(y(Ee), {
473
- "is-active": x.value,
472
+ N(y(Fe), {
473
+ "is-active": h.value,
474
474
  variant: "secondary",
475
475
  "left-icon": "filter"
476
476
  }, null, 8, ["is-active"])
477
477
  ]),
478
478
  _: 3
479
- }, 8, ["modelValue"])) : k("", !0),
480
- a.value.columnEdit ? (i(), K(ul, {
479
+ }, 8, ["modelValue"])) : x("", !0),
480
+ a.value.columnEdit ? (i(), U(ul, {
481
481
  key: 2,
482
- options: s.value.columnEdit,
482
+ options: t.value.columnEdit,
483
483
  headers: ((G = S.value) == null ? void 0 : G.headers) || [],
484
484
  "local-key": a.value.columnEdit.localStorageKey,
485
485
  onUpdateOrder: Ie
486
- }, null, 8, ["options", "headers", "local-key"])) : k("", !0)
487
- ], 2)) : k("", !0)
486
+ }, null, 8, ["options", "headers", "local-key"])) : x("", !0)
487
+ ], 2)) : x("", !0)
488
488
  ];
489
489
  })
490
- ])) : k("", !0),
491
- B(y(Ge), {
490
+ ])) : x("", !0),
491
+ N(y(Ge), {
492
492
  filters: Ne.value,
493
- queries: T.value,
493
+ queries: q.value,
494
494
  class: "border-t border-oc-gray-200",
495
495
  onRemoveQuery: Pe,
496
496
  onRemoveAll: Ce,
@@ -500,50 +500,50 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
500
500
  }),
501
501
  key: "0"
502
502
  } : void 0,
503
- ae((n = S.value) == null ? void 0 : n.headers, (t, g) => ({
504
- name: t.key,
505
- fn: $(({ data: w, item: Q }) => [
506
- C(l.$slots, t.key, {
507
- data: w,
508
- item: Q
503
+ ae((n = S.value) == null ? void 0 : n.headers, (s, g) => ({
504
+ name: s.key,
505
+ fn: $(({ data: b, item: C }) => [
506
+ Y(l.$slots, s.key, {
507
+ data: b,
508
+ item: C
509
509
  })
510
510
  ])
511
511
  }))
512
- ]), 1032, ["selected", "row-key", "options", "is-loading", "loading-rows", "row-class", "row-link", "is-sticky", "is-borderless"])) : k("", !0),
513
- C(l.$slots, "before-pagination"),
514
- c.value || f.value ? (i(), h("div", {
512
+ ]), 1032, ["selected", "row-key", "options", "is-loading", "loading-rows", "row-class", "row-link", "is-sticky", "is-borderless"])) : x("", !0),
513
+ Y(l.$slots, "before-pagination"),
514
+ c.value || f.value ? (i(), w("div", {
515
515
  key: 1,
516
516
  class: te(["flex gap-3 items-center", c.value && c.value.last_page === 1 ? "justify-end" : ""])
517
517
  }, [
518
- c.value && !m.value ? (i(), K(y(We), {
518
+ c.value && !m.value ? (i(), U(y(We), {
519
519
  key: 0,
520
- modelValue: Y.value,
520
+ modelValue: B.value,
521
521
  "onUpdate:modelValue": [
522
- e[10] || (e[10] = (t) => Y.value = t),
522
+ e[10] || (e[10] = (s) => B.value = s),
523
523
  Ke
524
524
  ],
525
525
  class: "justify-center",
526
526
  "max-page": c.value.last_page,
527
527
  strategy: c.value.strategy,
528
528
  "total-visible": "5"
529
- }, null, 8, ["modelValue", "max-page", "strategy"])) : k("", !0),
530
- f.value ? (i(), h("div", vl, [
531
- B(y(he), {
529
+ }, null, 8, ["modelValue", "max-page", "strategy"])) : x("", !0),
530
+ f.value ? (i(), w("div", vl, [
531
+ N(y(he), {
532
532
  disabled: !f.value.prev,
533
- onClick: e[11] || (e[11] = (t) => f.value.prev ? O(null, !1, f.value.prev) : null)
533
+ onClick: e[11] || (e[11] = (s) => f.value.prev ? O(null, !1, f.value.prev) : null)
534
534
  }, null, 8, ["disabled"]),
535
- B(y(he), {
535
+ N(y(he), {
536
536
  disabled: !f.value.next,
537
537
  "is-next": "",
538
- onClick: e[12] || (e[12] = (t) => f.value.next ? O(null, !1, f.value.next) : null)
538
+ onClick: e[12] || (e[12] = (s) => f.value.next ? O(null, !1, f.value.next) : null)
539
539
  }, null, 8, ["disabled"])
540
- ])) : k("", !0),
541
- p.value ? k("", !0) : (i(), h("div", cl, [
542
- B(y(Xe), {
543
- modelValue: L.value,
540
+ ])) : x("", !0),
541
+ p.value ? x("", !0) : (i(), w("div", cl, [
542
+ N(y(Xe), {
543
+ modelValue: P.value,
544
544
  "onUpdate:modelValue": [
545
- e[13] || (e[13] = (t) => L.value = t),
546
- e[14] || (e[14] = (t) => O(null))
545
+ e[13] || (e[13] = (s) => P.value = s),
546
+ e[14] || (e[14] = (s) => O(null))
547
547
  ],
548
548
  label: "Item per page",
549
549
  "is-inline-label": "",
@@ -551,7 +551,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
551
551
  options: Ae.value
552
552
  }, null, 8, ["modelValue", "options"])
553
553
  ]))
554
- ], 2)) : k("", !0)
554
+ ], 2)) : x("", !0)
555
555
  ]);
556
556
  };
557
557
  }