@orchidui/core 1.6.1-59 → 1.6.1-60

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 (81) 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 +2 -2
  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/Slider/OcSlider.js +1 -1
  54. package/dist/Form/TextArea/OcTextArea.js +1 -1
  55. package/dist/Form/index.js +1 -1
  56. package/dist/FormBuilder/OcFormBuilder.js +1 -1
  57. package/dist/{OcAccountSetupProgress-D6Vs97Rl.js → OcAccountSetupProgress-DLbgWtIl.js} +1 -1
  58. package/dist/{OcComplexCalendar-CrZb9VRA.js → OcComplexCalendar-DLOb9MOl.js} +1 -1
  59. package/dist/{OcComplexDatePicker-CPCqU996.js → OcComplexDatePicker-BWn9Iu8u.js} +1 -1
  60. package/dist/{OcCropper-DsUlwLc4.js → OcCropper-CG6sl3_a.js} +1 -1
  61. package/dist/{OcDataTable-C3lgJ36m.js → OcDataTable-BG2MtioN.js} +171 -171
  62. package/dist/{OcDraggableList-Avk_0-S9.js → OcDraggableList-DOQM8ech.js} +1 -1
  63. package/dist/{OcEmojiPicker-BNzfsUWr.js → OcEmojiPicker-C2sC0-ZJ.js} +1 -1
  64. package/dist/{OcFilterForm-UXyPMJSg.js → OcFilterForm-DNZxeiJw.js} +1 -1
  65. package/dist/{OcFilterSearch-CE3DKQoc.js → OcFilterSearch-CHowzC3G.js} +1 -1
  66. package/dist/{OcFilterSearchFor-CgPtEqWE.js → OcFilterSearchFor-a390BkgF.js} +1 -1
  67. package/dist/{OcModalCropper-HAWRGnKr.js → OcModalCropper-kceVfBZn.js} +2 -2
  68. package/dist/{OcTimePicker-fGaahns_.js → OcTimePicker-2SQgbo_4.js} +1 -1
  69. package/dist/Overlay/ConfirmationModal/OcConfirmationModal.js +1 -1
  70. package/dist/Overlay/CopyTooltip/OcCopyTooltip.js +1 -1
  71. package/dist/Overlay/Dropdown/OcDropdown.js +1 -1
  72. package/dist/Overlay/Modal/OcModal.js +1 -1
  73. package/dist/Overlay/SupportMenu/OcSupportMenu.js +1 -1
  74. package/dist/Overlay/Tooltip/OcTooltip.js +1 -1
  75. package/dist/Overlay/Whitelist/OcWhiteList.js +1 -1
  76. package/dist/{SubPlanCard-BMt1WwGQ.js → SubPlanCard-CoIJRiVu.js} +1 -1
  77. package/dist/{ThumbnailSection-oJNcQG6B.js → ThumbnailSection-CDnGDKDB.js} +1 -1
  78. package/dist/{ThumbnailTheme-D2mwEvnP.js → ThumbnailTheme-CV968vS7.js} +1 -1
  79. package/dist/{index-R3JX4eQm.js → index-Z96DJVU7.js} +8 -8
  80. package/dist/index.js +1 -1
  81. package/package.json +1 -1
@@ -1,16 +1,15 @@
1
- import { ref as P, onMounted as Te, openBlock as i, createBlock as Y, unref as m, withCtx as F, createElementVNode as z, createElementBlock as E, createVNode as M, mergeProps as ke, Fragment as ee, renderList as ae, normalizeClass as te, toDisplayString as he, createCommentVNode as w, computed as D, createSlots as qe, renderSlot as U, normalizeProps as xe, guardReactiveProps as we } from "vue";
2
- import { ay as Fe, b as Ie, B as Oe, L as Qe, Z as Re, aJ as ze, aK as Je, aL as _e, I as Ze, J as $e, k as Ge } from "./index-R3JX4eQm.js";
3
- import le from "dayjs";
1
+ import { ref as S, onMounted as Te, openBlock as i, createBlock as U, unref as m, withCtx as E, createElementVNode as z, createElementBlock as O, createVNode as B, mergeProps as ke, Fragment as H, renderList as le, normalizeClass as ae, toDisplayString as he, createCommentVNode as w, computed as D, createSlots as qe, renderSlot as C, normalizeProps as xe, guardReactiveProps as we } from "vue";
2
+ import { ay as Ee, b as Ie, B as je, L as Qe, Z as Re, aJ as ze, aK as Je, aL as _e, I as Ze, J as $e, k as Ge } from "./index-Z96DJVU7.js";
3
+ import ee from "dayjs";
4
4
  import { VueDraggableNext as Ve } from "vue-draggable-next";
5
- import { getFromLocalStorage as He, formatHeadersFromLocalStorage as We } from "./DataTable/utils/editColumnsUtils.js";
6
- import { _ as Ee } from "./OcIcon-CJgBICxh.js";
7
- const Xe = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, el = {
5
+ import { _ as Oe } from "./OcIcon-CJgBICxh.js";
6
+ const We = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, Xe = {
8
7
  key: 0,
9
8
  class: "gap-y-2 flex flex-col border-b pb-3 border-oc-gray-200"
10
- }, ll = { class: "gap-y-2 flex flex-col" }, al = {
9
+ }, He = { class: "gap-y-2 flex flex-col" }, el = {
11
10
  key: 0,
12
11
  class: "flex items-center bg-white justify-between h-[26px]"
13
- }, tl = { class: "flex items-center w-full gap-x-3" }, sl = { class: "truncate w-full max-w-[160px]" }, ol = {
12
+ }, ll = { class: "flex items-center w-full gap-x-3" }, al = { class: "truncate w-full max-w-[160px]" }, tl = {
14
13
  __name: "ColumnEdit",
15
14
  props: {
16
15
  options: {
@@ -27,17 +26,17 @@ const Xe = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, el = {
27
26
  }
28
27
  },
29
28
  emits: ["change-active", "onMoved", "update-order"],
30
- setup(A, { emit: W }) {
31
- const f = W, O = A, v = P([]), p = P([]), a = P(!1), J = ($ = !1) => {
32
- p.value = p.value.map((o) => ({
33
- ...o,
29
+ setup(F, { emit: W }) {
30
+ const f = W, Y = F, v = S([]), p = S([]), a = S(!1), J = () => {
31
+ p.value = p.value.map(($) => ({
32
+ ...$,
34
33
  isActive: !0
35
34
  })), f("update-order", {
36
35
  fixedHeaders: p.value,
37
- activeHeaders: v.value,
38
- isOnMount: $
36
+ activeHeaders: v.value
37
+ // isOnMount
39
38
  });
40
- }, H = {
39
+ }, Z = {
41
40
  handle: ".drag-el",
42
41
  filter: ".is-disabled",
43
42
  group: "headers",
@@ -47,36 +46,35 @@ const Xe = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, el = {
47
46
  "onUpdate:modelValue": () => J()
48
47
  };
49
48
  return Te(() => {
50
- const $ = He(O.localKey), { fixed: o, active: n } = We($, O.headers, O.localKey);
51
- p.value = o || O.headers.slice(0, 1), v.value = n || O.headers.slice(1).map((k) => {
52
- var _, C, Z;
49
+ p.value = Y.headers.slice(0, 1), v.value = Y.headers.slice(1).map(($) => {
50
+ var o, n, k;
53
51
  return {
54
- ...k,
55
- isActive: ((Z = (C = (_ = O.options) == null ? void 0 : _.active) == null ? void 0 : C.find((K) => K.key === k.key)) == null ? void 0 : Z.isActive) ?? !0
52
+ ...$,
53
+ isActive: ((k = (n = (o = Y.options) == null ? void 0 : o.active) == null ? void 0 : n.find((G) => G.key === $.key)) == null ? void 0 : k.isActive) ?? !0
56
54
  };
57
- }), J(!0);
58
- }), ($, o) => (i(), Y(m(Fe), {
55
+ }), J();
56
+ }), ($, o) => (i(), U(m(Ee), {
59
57
  modelValue: a.value,
60
58
  "onUpdate:modelValue": o[3] || (o[3] = (n) => a.value = n),
61
59
  class: "h-[36px]",
62
60
  "is-attach-to-body": ""
63
61
  }, {
64
- menu: F(() => [
65
- z("div", Xe, [
66
- p.value.length ? (i(), E("div", el, [
62
+ menu: E(() => [
63
+ z("div", We, [
64
+ p.value.length ? (i(), O("div", Xe, [
67
65
  o[4] || (o[4] = z("span", { class: "text-oc-text-400 font-medium" }, "Fixed columns", -1)),
68
- M(m(Ve), ke({
66
+ B(m(Ve), ke({
69
67
  key: "key",
70
68
  modelValue: p.value,
71
69
  "onUpdate:modelValue": o[0] || (o[0] = (n) => p.value = n)
72
- }, H), {
73
- default: F(() => [
74
- (i(!0), E(ee, null, ae(p.value, (n, k) => (i(), E("div", {
70
+ }, Z), {
71
+ default: E(() => [
72
+ (i(!0), O(H, null, le(p.value, (n, k) => (i(), O("div", {
75
73
  key: n.key,
76
- class: te(["flex items-center justify-between h-[26px]", k ? "" : "is-disabled"])
74
+ class: ae(["flex items-center justify-between h-[26px]", k ? "" : "is-disabled"])
77
75
  }, [
78
76
  z("span", null, he(n.label), 1),
79
- k ? (i(), Y(m(Ee), {
77
+ k ? (i(), U(m(Oe), {
80
78
  key: 0,
81
79
  width: "18",
82
80
  height: "18",
@@ -88,20 +86,20 @@ const Xe = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, el = {
88
86
  _: 1
89
87
  }, 16, ["modelValue"])
90
88
  ])) : w("", !0),
91
- z("div", ll, [
89
+ z("div", He, [
92
90
  o[5] || (o[5] = z("span", { class: "text-oc-text-400 font-medium" }, "Active columns", -1)),
93
- M(m(Ve), ke({
91
+ B(m(Ve), ke({
94
92
  key: "key",
95
93
  modelValue: v.value,
96
94
  "onUpdate:modelValue": o[2] || (o[2] = (n) => v.value = n)
97
- }, H, { "data-active-headers": "true" }), {
98
- default: F(() => [
99
- (i(!0), E(ee, null, ae(v.value, (n) => (i(), E(ee, {
95
+ }, Z, { "data-active-headers": "true" }), {
96
+ default: E(() => [
97
+ (i(!0), O(H, null, le(v.value, (n) => (i(), O(H, {
100
98
  key: n.key
101
99
  }, [
102
- n.key !== "actions" ? (i(), E("div", al, [
103
- z("div", tl, [
104
- M(m(Ie), {
100
+ n.key !== "actions" ? (i(), O("div", el, [
101
+ z("div", ll, [
102
+ B(m(Ie), {
105
103
  modelValue: n.isActive,
106
104
  "onUpdate:modelValue": [
107
105
  (k) => n.isActive = k,
@@ -109,9 +107,9 @@ const Xe = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, el = {
109
107
  ],
110
108
  class: "!w-fit"
111
109
  }, null, 8, ["modelValue", "onUpdate:modelValue"]),
112
- z("div", sl, he(n.label), 1)
110
+ z("div", al, he(n.label), 1)
113
111
  ]),
114
- v.value.length > 1 ? (i(), Y(m(Ee), {
112
+ v.value.length > 1 ? (i(), U(m(Oe), {
115
113
  key: 0,
116
114
  width: "18",
117
115
  height: "18",
@@ -126,8 +124,8 @@ const Xe = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, el = {
126
124
  ])
127
125
  ])
128
126
  ]),
129
- default: F(() => [
130
- M(m(Oe), {
127
+ default: E(() => [
128
+ B(m(je), {
131
129
  label: "Edit Column",
132
130
  "left-icon": "setting",
133
131
  variant: "secondary"
@@ -136,22 +134,22 @@ const Xe = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, el = {
136
134
  _: 1
137
135
  }, 8, ["modelValue"]));
138
136
  }
139
- }, ul = { class: "relative flex flex-col gap-9" }, rl = {
137
+ }, sl = { class: "relative flex flex-col gap-9" }, ul = {
140
138
  key: 0,
141
139
  class: "flex items-center px-4 min-h-[52px]"
142
- }, il = {
140
+ }, ol = {
143
141
  key: 0,
144
142
  class: "absolute flex items-center gap-5 left-5"
145
- }, nl = {
143
+ }, rl = {
146
144
  key: 1,
147
145
  class: "absolute flex gap-3 left-5"
148
- }, dl = {
146
+ }, il = {
149
147
  key: 1,
150
148
  class: "flex justify-center w-full gap-5 md:justify-start"
151
- }, vl = {
149
+ }, nl = {
152
150
  key: 2,
153
151
  class: "items-center hidden md:flex"
154
- }, bl = {
152
+ }, ml = {
155
153
  __name: "OcDataTable",
156
154
  props: {
157
155
  isLoading: Boolean,
@@ -167,6 +165,9 @@ const Xe = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, el = {
167
165
  type: Object,
168
166
  required: !0
169
167
  },
168
+ columns: {
169
+ type: Object
170
+ },
170
171
  selected: {
171
172
  type: Array,
172
173
  required: !1
@@ -189,9 +190,9 @@ const Xe = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, el = {
189
190
  "hover:cell": [],
190
191
  "columns-changed": []
191
192
  },
192
- setup(A, { emit: W }) {
193
- var oe, ue, re, ie, ne, de, ve, fe, pe, ce, me, ye, ge;
194
- const f = A, O = W, v = D(() => {
193
+ setup(F, { emit: W }) {
194
+ var ue, oe, re, ie, ne, de, ve, fe, pe, ce, me, ye, ge;
195
+ const f = F, Y = W, v = D(() => {
195
196
  var l;
196
197
  return (l = f.options) == null ? void 0 : l.pagination;
197
198
  }), p = D(() => {
@@ -203,27 +204,27 @@ const Xe = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, el = {
203
204
  }), J = D(() => {
204
205
  var l;
205
206
  return (l = f.options) == null ? void 0 : l.hidePerPageDropdown;
206
- }), H = D(() => {
207
+ }), Z = D(() => {
207
208
  var l;
208
209
  return ((l = v.value) == null ? void 0 : l.last_page) === 1;
209
- }), $ = P(!1), o = P(f.filter[(ue = (oe = a.value) == null ? void 0 : oe.tabs) == null ? void 0 : ue.key]), n = P(f.filter.page), k = P(
210
+ }), $ = S(!1), o = S(f.filter[(oe = (ue = a.value) == null ? void 0 : ue.tabs) == null ? void 0 : oe.key]), n = S(f.filter.page), k = S(
210
211
  (ie = (re = a.value) == null ? void 0 : re.per_page) != null && ie.key ? f.filter[(de = (ne = a.value) == null ? void 0 : ne.per_page) == null ? void 0 : de.key] : f.filter.per_page
211
- ), _ = ((pe = f.filter[(fe = (ve = a.value) == null ? void 0 : ve.search) == null ? void 0 : fe.key]) == null ? void 0 : pe.trim()) ?? "", C = P(_ ? _.split(",") : []), Z = P(!1), K = f.filter;
212
- !K && v ? K.page = f.filter.page ?? 1 : !K && p && (K.cursor = f.filter.cursor ?? "");
213
- const t = P(K), X = P([
212
+ ), G = ((pe = f.filter[(fe = (ve = a.value) == null ? void 0 : ve.search) == null ? void 0 : fe.key]) == null ? void 0 : pe.trim()) ?? "", Q = S(G ? G.split(",") : []), te = S(!1), R = f.filter;
213
+ !R && v ? R.page = f.filter.page ?? 1 : !R && p && (R.cursor = f.filter.cursor ?? "");
214
+ const t = S(R), X = S([
214
215
  ...t.value[(me = (ce = a.value) == null ? void 0 : ce.columnEdit) == null ? void 0 : me.key].fixed,
215
216
  ...t.value[(ge = (ye = a.value) == null ? void 0 : ye.columnEdit) == null ? void 0 : ge.key].active
216
- ]), N = D(() => {
217
+ ]), M = D(() => {
217
218
  var l;
218
219
  return (l = f.options) == null ? void 0 : l.tableOptions;
219
- }), je = D(() => {
220
+ }), Fe = D(() => {
220
221
  var l;
221
222
  return {
222
- ...N.value,
223
+ ...M.value,
223
224
  headers: X.value ? X.value.map((e) => {
224
225
  var u, d;
225
- return e.class = ((d = (u = N.value) == null ? void 0 : u.headers.find((c) => c.key === e.key)) == null ? void 0 : d.class) ?? "", e;
226
- }).filter((e) => se(e.key)) : (l = N.value) == null ? void 0 : l.headers.filter((e) => se(e.key))
226
+ return e.class = ((d = (u = M.value) == null ? void 0 : u.headers.find((c) => c.key === e.key)) == null ? void 0 : d.class) ?? "", e;
227
+ }).filter((e) => se(e.key)) : (l = M.value) == null ? void 0 : l.headers.filter((e) => se(e.key))
227
228
  };
228
229
  }), Ae = D(
229
230
  () => {
@@ -235,7 +236,7 @@ const Xe = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, el = {
235
236
  })
236
237
  );
237
238
  }
238
- ), Se = D(() => {
239
+ ), De = D(() => {
239
240
  let l = [
240
241
  {
241
242
  label: "10",
@@ -275,71 +276,71 @@ const Xe = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, el = {
275
276
  u > 10 && (e = e.filter((d) => d.value <= u));
276
277
  }
277
278
  return [...new Set(e)];
278
- }), De = D(() => {
279
+ }), Se = D(() => {
279
280
  var l;
280
281
  return ((l = f.selected) == null ? void 0 : l.length) > 0;
281
282
  }), Pe = (l) => {
282
- !l.trim() || C.value.includes(l) || (C.value = [l], j(), O("search-query-changed", l));
283
+ !l.trim() || Q.value.includes(l) || (Q.value = [l], j(), Y("search-query-changed", l));
283
284
  }, Ce = (l) => {
284
- C.value = C.value.filter((e) => e !== l), j();
285
- }, Le = () => {
286
- var e, u, d, c, y, s, g, h, b, V, T, q, I, Q;
287
- C.value = [], o.value = "";
288
- const l = {};
289
- a.value ? K.page = 1 : K.cursor = "", (u = (e = a.value) == null ? void 0 : e.per_page) != null && u.key ? l[(c = (d = a.value) == null ? void 0 : d.per_page) == null ? void 0 : c.key] = k.value : l.per_page = k.value, (s = (y = a.value) == null ? void 0 : y.tabs) != null && s.key ? l[(h = (g = a.value) == null ? void 0 : g.tabs) == null ? void 0 : h.key] = o.value : l.tabs = o.value, (V = (b = a.value) == null ? void 0 : b.columnEdit) != null && V.key && (l[(q = (T = a.value) == null ? void 0 : T.columnEdit) == null ? void 0 : q.key] = t.value[(Q = (I = a.value) == null ? void 0 : I.columnEdit) == null ? void 0 : Q.key]), t.value = l, j();
285
+ Q.value = Q.value.filter((e) => e !== l), j();
290
286
  }, Ue = () => {
287
+ var e, u, d, c, y, s, g, h, b, V, K, N, T, q;
288
+ Q.value = [], o.value = "";
289
+ const l = {};
290
+ a.value ? R.page = 1 : R.cursor = "", (u = (e = a.value) == null ? void 0 : e.per_page) != null && u.key ? l[(c = (d = a.value) == null ? void 0 : d.per_page) == null ? void 0 : c.key] = k.value : l.per_page = k.value, (s = (y = a.value) == null ? void 0 : y.tabs) != null && s.key ? l[(h = (g = a.value) == null ? void 0 : g.tabs) == null ? void 0 : h.key] = o.value : l.tabs = o.value, (V = (b = a.value) == null ? void 0 : b.columnEdit) != null && V.key && (l[(N = (K = a.value) == null ? void 0 : K.columnEdit) == null ? void 0 : N.key] = t.value[(q = (T = a.value) == null ? void 0 : T.columnEdit) == null ? void 0 : q.key]), t.value = l, j();
291
+ }, Ye = () => {
291
292
  j(null, n.value);
292
293
  }, j = (l = null, e = !1, u = "") => {
293
294
  var c, y, s, g, h;
294
- v.value && !e && (n.value = 1), v.value ? t.value.page = n.value : t.value.cursor = u, (c = a.value) != null && c.per_page ? t.value[a.value.per_page.key] = k.value : t.value.per_page = k.value, (y = a.value) != null && y.tabs && (t.value[a.value.tabs.key] = o.value), (s = a.value) != null && s.search && (t.value[a.value.search.key] = C.value.join()), l && ($.value = !1, t.value = { ...t.value, ...l }, Object.keys(t.value).forEach((b) => {
295
+ v.value && !e && (n.value = 1), v.value ? t.value.page = n.value : t.value.cursor = u, (c = a.value) != null && c.per_page ? t.value[a.value.per_page.key] = k.value : t.value.per_page = k.value, (y = a.value) != null && y.tabs && (t.value[a.value.tabs.key] = o.value), (s = a.value) != null && s.search && (t.value[a.value.search.key] = Q.value.join()), l && ($.value = !1, t.value = { ...t.value, ...l }, Object.keys(t.value).forEach((b) => {
295
296
  Array.isArray(t.value[b]) && t.value[b].length === 0 && delete t.value[b];
296
297
  }));
297
298
  let d = (h = (g = a.value) == null ? void 0 : g.tabs) == null ? void 0 : h.key;
298
299
  if (d && o.value !== t.value[d])
299
300
  return o.value = t.value[d], j(t.value), !1;
300
- O("update:filter", t.value);
301
- }, Ye = (l, e) => {
302
- (e === a.value.tabs.key || e === "tabs") && (o.value = ""), j(l), O("filter-removed", e);
303
- }, Ke = (l) => {
301
+ Y("update:filter", t.value);
302
+ }, Le = (l, e) => {
303
+ (e === a.value.tabs.key || e === "tabs") && (o.value = ""), j(l), Y("filter-removed", e);
304
+ }, Be = (l) => {
304
305
  let e = [];
305
306
  return l.forEach((u) => {
306
307
  e.push(u.key);
307
308
  }), e;
308
- }, Be = D(() => {
309
+ }, Me = D(() => {
309
310
  if (t.value) {
310
311
  let l = [];
311
312
  return Object.keys(t.value).forEach((e) => {
312
- var y, s, g, h, b, V, T, q, I, Q, G;
313
+ var y, s, g, h, b, V, K, N, T, q, _;
313
314
  let u = (s = (y = a.value) == null ? void 0 : y.tabs) == null ? void 0 : s.key;
314
315
  const d = (h = (g = a.value) == null ? void 0 : g.search) == null ? void 0 : h.key, c = ((V = (b = a.value) == null ? void 0 : b.per_page) == null ? void 0 : V.key) ?? "per_page";
315
- if ((T = a.value.form) == null || T.find((x) => {
316
+ if ((K = a.value.form) == null || K.find((x) => {
316
317
  x.name === u && (u = "");
317
318
  }), e !== "page" && e !== "cursor" && e !== c && e !== u && e !== d) {
318
- let x = null, r = (q = a.value.form) == null ? void 0 : q.find((B) => {
319
- if (typeof B.name == "object") {
320
- let L = !1;
321
- return B.name.forEach((R) => {
322
- R.key === e && (L = !0, x = Ke(B.name));
323
- }), L;
319
+ let x = null, r = (N = a.value.form) == null ? void 0 : N.find((L) => {
320
+ if (typeof L.name == "object") {
321
+ let P = !1;
322
+ return L.name.forEach((I) => {
323
+ I.key === e && (P = !0, x = Be(L.name));
324
+ }), P;
324
325
  } else
325
- return B.name === e;
326
- }), S = "";
326
+ return L.name === e;
327
+ }), A = "";
327
328
  if (r && t.value[e]) {
328
- if (typeof r.name == "object" ? (I = r.name) == null || I.forEach((L) => {
329
- S && (S += " - "), S += t.value[L.key];
330
- }) : S = t.value[e], r.props.options && (S = (r.props.multiple ? t.value[e] : [t.value[e]]).map(
331
- (R) => {
329
+ if (typeof r.name == "object" ? (T = r.name) == null || T.forEach((P) => {
330
+ A && (A += " - "), A += t.value[P.key];
331
+ }) : A = t.value[e], r.props.options && (A = (r.props.multiple ? t.value[e] : [t.value[e]]).map(
332
+ (I) => {
332
333
  var be;
333
- return (be = r.props.options.find(({ value: Ne }) => Ne === R)) == null ? void 0 : be.label;
334
+ return (be = r.props.options.find(({ value: Ne }) => Ne === I)) == null ? void 0 : be.label;
334
335
  }
335
- ).join(", ")), r.type === "RangeInput" && Array.isArray(t.value[e]) && (S = 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")
336
- if (((Q = r == null ? void 0 : r.props) == null ? void 0 : Q.type) === "range" && r.name && r.name[1]) {
337
- const L = le(t.value[r.name[0].key]).format("MM/DD/YYYY"), R = le(t.value[r.name[1].key]).format("MM/DD/YYYY");
338
- S = L === R ? L : L + " - " + R;
339
- } else S = le(t.value[r.name]).format("MM/DD/YYYY");
340
- let B = `${(G = r == null ? void 0 : r.props) == null ? void 0 : G.label} : ${S}`;
341
- r && r.name && typeof r.name == "object" && l.find((R) => R.name === x[0]) && (B = ""), l.push({
342
- label: B,
336
+ ).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")
337
+ if (((q = r == null ? void 0 : r.props) == null ? void 0 : q.type) === "range" && r.name && r.name[1]) {
338
+ const P = ee(t.value[r.name[0].key]).format("MM/DD/YYYY"), I = ee(t.value[r.name[1].key]).format("MM/DD/YYYY");
339
+ A = P === I ? P : P + " - " + I;
340
+ } else A = ee(t.value[r.name]).format("MM/DD/YYYY");
341
+ let L = `${(_ = r == null ? void 0 : r.props) == null ? void 0 : _.label} : ${A}`;
342
+ r && r.name && typeof r.name == "object" && l.find((I) => I.name === x[0]) && (L = ""), l.push({
343
+ label: L,
343
344
  name: e,
344
345
  multiNames: x
345
346
  });
@@ -351,81 +352,81 @@ const Xe = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, el = {
351
352
  }), se = (l) => {
352
353
  var e, u, d, c, y, s;
353
354
  return ((s = (y = (c = (d = t.value) == null ? void 0 : d[(u = (e = a.value) == null ? void 0 : e.columnEdit) == null ? void 0 : u.key]) == null ? void 0 : c.active) == null ? void 0 : y.find((g) => g.key === l)) == null ? void 0 : s.isActive) ?? !0;
354
- }, Me = ({ fixedHeaders: l, activeHeaders: e, isOnMount: u }) => {
355
+ }, Ke = ({ fixedHeaders: l, activeHeaders: e, isOnMount: u }) => {
355
356
  var d, c, y, s, g, h, b, V;
356
- t.value[(c = (d = a.value) == null ? void 0 : d.columnEdit) == null ? void 0 : c.key] || (t.value[(s = (y = a.value) == null ? void 0 : y.columnEdit) == null ? void 0 : s.key] = {}), t.value[(h = (g = a.value) == null ? void 0 : g.columnEdit) == null ? void 0 : h.key].fixed = l, t.value[(V = (b = a.value) == null ? void 0 : b.columnEdit) == null ? void 0 : V.key].active = e, X.value = [...l, ...e], j(), O("columns-changed", e);
357
+ t.value[(c = (d = a.value) == null ? void 0 : d.columnEdit) == null ? void 0 : c.key] || (t.value[(s = (y = a.value) == null ? void 0 : y.columnEdit) == null ? void 0 : s.key] = {}), t.value[(h = (g = a.value) == null ? void 0 : g.columnEdit) == null ? void 0 : h.key].fixed = l, t.value[(V = (b = a.value) == null ? void 0 : b.columnEdit) == null ? void 0 : V.key].active = e, X.value = [...l, ...e], j(), Y("columns-changed", e);
357
358
  };
358
359
  return (l, e) => {
359
360
  var u, d, c, y;
360
- return i(), E("div", ul, [
361
- N.value ? (i(), Y(m(Qe), {
361
+ return i(), O("div", sl, [
362
+ M.value ? (i(), U(m(Qe), {
362
363
  key: 0,
363
- selected: A.selected,
364
- "row-key": A.rowKey,
365
- options: je.value,
366
- "is-loading": A.isLoading,
364
+ selected: F.selected,
365
+ "row-key": F.rowKey,
366
+ options: Fe.value,
367
+ "is-loading": F.isLoading,
367
368
  "loading-rows": k.value,
368
- "row-class": A.rowClass,
369
- "row-link": A.rowLink,
370
- "is-sticky": N.value.isSticky,
371
- "is-borderless": N.value.isBorderless,
369
+ "row-class": F.rowClass,
370
+ "row-link": F.rowLink,
371
+ "is-sticky": M.value.isSticky,
372
+ "is-borderless": M.value.isBorderless,
372
373
  "onUpdate:selected": e[7] || (e[7] = (s) => l.$emit("update:selected", s)),
373
374
  "onClick:row": e[8] || (e[8] = (s) => l.$emit("click:row", s)),
374
375
  "onHover:cell": e[9] || (e[9] = (s) => l.$emit("hover:cell", s))
375
376
  }, qe({
376
- after: F(() => [
377
- U(l.$slots, "after")
377
+ after: E(() => [
378
+ C(l.$slots, "after")
378
379
  ]),
379
- empty: F(() => [
380
- U(l.$slots, "empty")
380
+ empty: E(() => [
381
+ C(l.$slots, "empty")
381
382
  ]),
382
- "table-header": F((s) => [
383
- U(l.$slots, "table-header", xe(we(s)))
383
+ "table-header": E((s) => [
384
+ C(l.$slots, "table-header", xe(we(s)))
384
385
  ]),
385
- "table-body": F((s) => [
386
- U(l.$slots, "table-body", xe(we(s)))
386
+ "table-body": E((s) => [
387
+ C(l.$slots, "table-body", xe(we(s)))
387
388
  ]),
388
389
  _: 2
389
390
  }, [
390
391
  l.$slots.before || (u = a.value) != null && u.search || (d = a.value) != null && d.form || (c = a.value) != null && c.tabs ? {
391
392
  name: "before",
392
- fn: F(() => {
393
+ fn: E(() => {
393
394
  var s, g, h, b;
394
395
  return [
395
- U(l.$slots, "before"),
396
- (s = a.value) != null && s.search || (g = a.value) != null && g.form || (h = a.value) != null && h.tabs ? (i(), E("div", rl, [
397
- De.value ? (i(), E("div", il, [
398
- U(l.$slots, "bulk-actions", { selectedRows: A.selected })
399
- ])) : (i(), E("div", nl, [
400
- (b = a.value) != null && b.tabs ? (i(), Y(m(Re), {
396
+ C(l.$slots, "before"),
397
+ (s = a.value) != null && s.search || (g = a.value) != null && g.form || (h = a.value) != null && h.tabs ? (i(), O("div", ul, [
398
+ Se.value ? (i(), O("div", ol, [
399
+ C(l.$slots, "bulk-actions", { selectedRows: F.selected })
400
+ ])) : (i(), O("div", rl, [
401
+ (b = a.value) != null && b.tabs ? (i(), U(m(Re), {
401
402
  key: 0,
402
403
  modelValue: o.value,
403
404
  "onUpdate:modelValue": [
404
405
  e[0] || (e[0] = (V) => o.value = V),
405
406
  e[1] || (e[1] = (V) => j(null))
406
407
  ],
407
- "is-disabled": A.isLoading,
408
+ "is-disabled": F.isLoading,
408
409
  tabs: a.value.tabs.options,
409
410
  variant: "pills"
410
411
  }, null, 8, ["modelValue", "is-disabled", "tabs"])) : w("", !0)
411
412
  ])),
412
- U(l.$slots, "filter-options", {}, () => {
413
- var V, T, q, I, Q, G;
413
+ C(l.$slots, "filter-options", {}, () => {
414
+ var V, K, N, T, q, _;
414
415
  return [
415
- (V = a.value) != null && V.search || (T = a.value) != null && T.form || (q = a.value) != null && q.columnEdit ? (i(), E("div", {
416
+ (V = a.value) != null && V.search || (K = a.value) != null && K.form || (N = a.value) != null && N.columnEdit ? (i(), O("div", {
416
417
  key: 0,
417
- class: te([
418
+ class: ae([
418
419
  "flex gap-3 absolute ml-auto bg-oc-bg-light right-4 max-w-[calc(100%-24px)]",
419
- a.value ? Z.value ? "md:w-fit w-full" : "" : "w-full justify-end"
420
+ a.value ? te.value ? "md:w-fit w-full" : "" : "w-full justify-end"
420
421
  ])
421
422
  }, [
422
- (I = a.value) != null && I.search ? (i(), Y(m(ze), {
423
+ (T = a.value) != null && T.search ? (i(), U(m(ze), {
423
424
  key: 0,
424
425
  "is-search-only": !a.value.tabs || a.value.isSearchOnly,
425
426
  onAddQuery: Pe,
426
- onToggle: e[2] || (e[2] = (x) => Z.value = x)
427
+ onToggle: e[2] || (e[2] = (x) => te.value = x)
427
428
  }, null, 8, ["is-search-only"])) : w("", !0),
428
- (Q = a.value) != null && Q.form ? (i(), Y(m(Fe), {
429
+ (q = a.value) != null && q.form ? (i(), U(m(Ee), {
429
430
  key: 1,
430
431
  modelValue: $.value,
431
432
  "onUpdate:modelValue": e[6] || (e[6] = (x) => $.value = x),
@@ -433,31 +434,31 @@ const Xe = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, el = {
433
434
  placement: "bottom-end",
434
435
  "is-attach-to-body": ""
435
436
  }, {
436
- menu: F(() => [
437
- $.value ? (i(), Y(m(Je), {
437
+ menu: E(() => [
438
+ $.value ? (i(), U(m(Je), {
438
439
  key: 0,
439
- id: A.id,
440
+ id: F.id,
440
441
  "json-form": a.value.form ?? [],
441
442
  grid: a.value.grid ?? null,
442
443
  values: f.filter,
443
444
  actions: a.value.actions,
444
445
  onApplyFilter: e[3] || (e[3] = (x) => j(x)),
445
- onFilterFieldsChanged: e[4] || (e[4] = (x) => O("filter-fields-changed", x)),
446
+ onFilterFieldsChanged: e[4] || (e[4] = (x) => Y("filter-fields-changed", x)),
446
447
  onCancel: e[5] || (e[5] = (x) => $.value = !1)
447
448
  }, {
448
- default: F(({ errors: x, values: r, jsonForm: S, updateForm: B }) => [
449
- U(l.$slots, "custom-filter-form", {
449
+ default: E(({ errors: x, values: r, jsonForm: A, updateForm: L }) => [
450
+ C(l.$slots, "custom-filter-form", {
450
451
  errors: x,
451
452
  values: r,
452
- jsonForm: S,
453
- updateFilter: B
453
+ jsonForm: A,
454
+ updateFilter: L
454
455
  })
455
456
  ]),
456
457
  _: 3
457
458
  }, 8, ["id", "json-form", "grid", "values", "actions"])) : w("", !0)
458
459
  ]),
459
- default: F(() => [
460
- M(m(Oe), {
460
+ default: E(() => [
461
+ B(m(je), {
461
462
  "is-active": $.value,
462
463
  variant: "secondary",
463
464
  "left-icon": "filter"
@@ -465,69 +466,68 @@ const Xe = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, el = {
465
466
  ]),
466
467
  _: 3
467
468
  }, 8, ["modelValue"])) : w("", !0),
468
- a.value.columnEdit ? (i(), Y(ol, {
469
+ a.value.columnEdit ? (i(), U(tl, {
469
470
  key: 2,
470
471
  options: t.value.columnEdit,
471
- headers: ((G = N.value) == null ? void 0 : G.headers) || [],
472
- "local-key": a.value.columnEdit.localStorageKey,
473
- onUpdateOrder: Me
474
- }, null, 8, ["options", "headers", "local-key"])) : w("", !0)
472
+ headers: ((_ = M.value) == null ? void 0 : _.headers) || [],
473
+ onUpdateOrder: Ke
474
+ }, null, 8, ["options", "headers"])) : w("", !0)
475
475
  ], 2)) : w("", !0)
476
476
  ];
477
477
  })
478
478
  ])) : w("", !0),
479
- M(m(_e), {
480
- filters: Be.value,
481
- queries: C.value,
479
+ B(m(_e), {
480
+ filters: Me.value,
481
+ queries: Q.value,
482
482
  class: "border-t border-oc-gray-200",
483
483
  onRemoveQuery: Ce,
484
- onRemoveAll: Le,
485
- onRemoveFilter: Ye
484
+ onRemoveAll: Ue,
485
+ onRemoveFilter: Le
486
486
  }, null, 8, ["filters", "queries"])
487
487
  ];
488
488
  }),
489
489
  key: "0"
490
490
  } : void 0,
491
- ae((y = N.value) == null ? void 0 : y.headers, (s, g) => ({
491
+ le((y = M.value) == null ? void 0 : y.headers, (s, g) => ({
492
492
  name: s.key,
493
- fn: F(({ data: h, item: b }) => [
494
- U(l.$slots, s.key, {
493
+ fn: E(({ data: h, item: b }) => [
494
+ C(l.$slots, s.key, {
495
495
  data: h,
496
496
  item: b
497
497
  })
498
498
  ])
499
499
  }))
500
500
  ]), 1032, ["selected", "row-key", "options", "is-loading", "loading-rows", "row-class", "row-link", "is-sticky", "is-borderless"])) : w("", !0),
501
- U(l.$slots, "before-pagination"),
502
- v.value || p.value ? (i(), E("div", {
501
+ C(l.$slots, "before-pagination"),
502
+ v.value || p.value ? (i(), O("div", {
503
503
  key: 1,
504
- class: te(["flex items-center gap-3", v.value && v.value.last_page === 1 ? "justify-end" : ""])
504
+ class: ae(["flex items-center gap-3", v.value && v.value.last_page === 1 ? "justify-end" : ""])
505
505
  }, [
506
- v.value && !H.value ? (i(), Y(m(Ze), {
506
+ v.value && !Z.value ? (i(), U(m(Ze), {
507
507
  key: 0,
508
508
  modelValue: n.value,
509
509
  "onUpdate:modelValue": [
510
510
  e[10] || (e[10] = (s) => n.value = s),
511
- Ue
511
+ Ye
512
512
  ],
513
513
  class: "justify-center",
514
514
  "max-page": v.value.last_page,
515
515
  strategy: v.value.strategy,
516
516
  "total-visible": "5"
517
517
  }, null, 8, ["modelValue", "max-page", "strategy"])) : w("", !0),
518
- p.value ? (i(), E("div", dl, [
519
- M(m($e), {
518
+ p.value ? (i(), O("div", il, [
519
+ B(m($e), {
520
520
  disabled: !p.value.prev,
521
521
  onClick: e[11] || (e[11] = (s) => p.value.prev ? j(null, !1, p.value.prev) : null)
522
522
  }, null, 8, ["disabled"]),
523
- M(m($e), {
523
+ B(m($e), {
524
524
  disabled: !p.value.next,
525
525
  "is-next": "",
526
526
  onClick: e[12] || (e[12] = (s) => p.value.next ? j(null, !1, p.value.next) : null)
527
527
  }, null, 8, ["disabled"])
528
528
  ])) : w("", !0),
529
- J.value ? w("", !0) : (i(), E("div", vl, [
530
- M(m(Ge), {
529
+ J.value ? w("", !0) : (i(), O("div", nl, [
530
+ B(m(Ge), {
531
531
  modelValue: k.value,
532
532
  "onUpdate:modelValue": [
533
533
  e[13] || (e[13] = (s) => k.value = s),
@@ -536,7 +536,7 @@ const Xe = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, el = {
536
536
  label: "Item per page",
537
537
  "is-inline-label": "",
538
538
  "popper-options": { placement: "auto" },
539
- options: Se.value
539
+ options: De.value
540
540
  }, null, 8, ["modelValue", "options"])
541
541
  ]))
542
542
  ], 2)) : w("", !0)
@@ -545,5 +545,5 @@ const Xe = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, el = {
545
545
  }
546
546
  };
547
547
  export {
548
- bl as default
548
+ ml as default
549
549
  };
@@ -1,5 +1,5 @@
1
1
  import { ref as w, openBlock as n, createBlock as y, unref as l, withCtx as r, createElementBlock as b, Fragment as C, renderList as D, normalizeClass as s, createElementVNode as o, createCommentVNode as m, renderSlot as u, toDisplayString as k, createVNode as f } from "vue";
2
- import { aH as $, aD as S, ay as B } from "./index-R3JX4eQm.js";
2
+ import { aH as $, aD as S, ay as B } from "./index-Z96DJVU7.js";
3
3
  import { _ as g } from "./OcIcon-CJgBICxh.js";
4
4
  const M = ["onMouseleave", "onMouseover", "onClick"], L = { class: "flex justify-evenly w-full" }, N = { class: "flex w-full" }, U = { class: "ml-4 flex w-full" }, E = { class: "flex items-center flex-wrap w-full" }, H = ["href"], O = { class: "min-w-[120px]" }, W = { class: "truncate w-[200px]" }, j = { class: "flex items-center ml-4" }, z = { class: "flex w-full" }, q = {
5
5
  __name: "OcDraggableList",