@orchidui/core 1.8.1-40 → 1.8.1-42

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 (82) 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-CUEk_I0d.js → OcAccountSetupProgress-_DYL4l9R.js} +1 -1
  58. package/dist/{OcComplexCalendar-G7ath5xu.js → OcComplexCalendar-BbM3CByZ.js} +1 -1
  59. package/dist/{OcComplexDatePicker-C1q9JceR.js → OcComplexDatePicker-lsBGe8L_.js} +1 -1
  60. package/dist/{OcCropper-CkGNup0e.js → OcCropper-B-CVJmDW.js} +1 -1
  61. package/dist/OcDataTable-C5qiqDTx.js +586 -0
  62. package/dist/{OcDraggableList-bZDagsrE.js → OcDraggableList-CJM9FiOf.js} +1 -1
  63. package/dist/{OcEmojiPicker-DFw0HHxu.js → OcEmojiPicker-BHQg8c8K.js} +1 -1
  64. package/dist/{OcFilterForm-BEqvwKoc.js → OcFilterForm-DqjkZkSZ.js} +1 -1
  65. package/dist/{OcFilterSearch-ClhQrFuE.js → OcFilterSearch-CMGQPh2P.js} +1 -1
  66. package/dist/{OcFilterSearchFor-B6Tk8SMQ.js → OcFilterSearchFor-CrLlQJ6y.js} +1 -1
  67. package/dist/{OcModalCropper-BHb1-jAs.js → OcModalCropper-DfzmEjBb.js} +2 -2
  68. package/dist/{OcTimePicker-BpPm2EFl.js → OcTimePicker-DHpcpxod.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-DBlFPlzp.js → SubPlanCard-CRNxGk49.js} +1 -1
  77. package/dist/{ThumbnailSection-BY3ZLH_P.js → ThumbnailSection-DwSuY0Wy.js} +1 -1
  78. package/dist/{ThumbnailTheme-CZTg77cc.js → ThumbnailTheme-Bti6MA3z.js} +1 -1
  79. package/dist/{index-DmWvHxcZ.js → index-BXSABQPr.js} +8 -8
  80. package/dist/index.js +1 -1
  81. package/package.json +1 -1
  82. package/dist/OcDataTable-CR5HHnYI.js +0 -586
@@ -0,0 +1,586 @@
1
+ import { ref as N, onMounted as Ve, openBlock as d, createBlock as q, unref as x, withCtx as C, createElementVNode as G, createElementBlock as F, createVNode as R, mergeProps as ke, Fragment as ae, renderList as se, normalizeClass as oe, toDisplayString as he, createCommentVNode as $, computed as M, createSlots as Je, renderSlot as T, normalizeProps as xe, guardReactiveProps as we } from "vue";
2
+ import { ay as Fe, C as ze, B as je, K as He, Z as Ze, aJ as Ge, aK as We, aL as Xe, H as _e, I as Se, j as el } from "./index-BXSABQPr.js";
3
+ import te from "dayjs";
4
+ import { VueDraggableNext as $e } from "vue-draggable-next";
5
+ import { getFromLocalStorage as ue, formatHeadersFromLocalStorage as Ae, formatHeadersToLocalStorage as ll, setInLocalStorage as Ee } from "./DataTable/utils/editColumnsUtils.js";
6
+ import { _ as Oe } from "./OcIcon-CSpRxnwd.js";
7
+ const al = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, tl = {
8
+ key: 0,
9
+ class: "gap-y-2 flex flex-col border-b pb-3 border-oc-gray-200"
10
+ }, sl = { class: "gap-y-2 flex flex-col" }, ol = {
11
+ key: 0,
12
+ class: "flex items-center bg-white justify-between h-[26px]"
13
+ }, ul = { class: "flex items-center w-full gap-x-3" }, rl = { class: "truncate w-full max-w-[160px]" }, il = {
14
+ __name: "ColumnEdit",
15
+ props: {
16
+ options: {
17
+ type: Object,
18
+ default: () => ({})
19
+ },
20
+ headers: {
21
+ type: Array,
22
+ default: () => []
23
+ },
24
+ localKey: {
25
+ type: String,
26
+ default: ""
27
+ }
28
+ },
29
+ emits: ["change-active", "onMoved", "update-order"],
30
+ setup(L, { emit: ee }) {
31
+ const p = ee, D = L, m = N([]), g = N([]), H = N(!1), j = (a = !1) => {
32
+ g.value = g.value.map((b) => ({
33
+ ...b,
34
+ isActive: !0
35
+ })), p("update-order", {
36
+ fixedHeaders: g.value,
37
+ activeHeaders: m.value,
38
+ isOnMount: a
39
+ });
40
+ }, W = {
41
+ handle: ".drag-el",
42
+ filter: ".is-disabled",
43
+ group: "headers",
44
+ animation: 500,
45
+ forceFallback: !1,
46
+ move: (a) => a.to.dataset.activeHeaders ? !0 : !!a.draggedContext.futureIndex,
47
+ "onUpdate:modelValue": () => j()
48
+ };
49
+ return Ve(() => {
50
+ const a = ue(D.localKey), { fixed: b, active: k } = Ae(a, D.headers, D.localKey);
51
+ g.value = b || D.headers.slice(0, 1), m.value = k || D.headers.slice(1).map((E) => {
52
+ var V, Q, I;
53
+ return {
54
+ ...E,
55
+ isActive: ((I = (Q = (V = D.options) == null ? void 0 : V.active) == null ? void 0 : Q.find((X) => X.key === E.key)) == null ? void 0 : I.isActive) ?? !0
56
+ };
57
+ }), j(!0);
58
+ }), (a, b) => (d(), q(x(Fe), {
59
+ modelValue: H.value,
60
+ "onUpdate:modelValue": b[3] || (b[3] = (k) => H.value = k),
61
+ class: "h-[36px]",
62
+ "is-attach-to-body": ""
63
+ }, {
64
+ menu: C(() => [
65
+ G("div", al, [
66
+ g.value.length ? (d(), F("div", tl, [
67
+ b[4] || (b[4] = G("span", { class: "text-oc-text-400 font-medium" }, "Fixed columns", -1)),
68
+ R(x($e), ke({
69
+ key: "key",
70
+ modelValue: g.value,
71
+ "onUpdate:modelValue": b[0] || (b[0] = (k) => g.value = k)
72
+ }, W), {
73
+ default: C(() => [
74
+ (d(!0), F(ae, null, se(g.value, (k, E) => (d(), F("div", {
75
+ key: k.key,
76
+ class: oe(["flex items-center justify-between h-[26px]", E ? "" : "is-disabled"])
77
+ }, [
78
+ G("span", null, he(k.label), 1),
79
+ E ? (d(), q(x(Oe), {
80
+ key: 0,
81
+ width: "18",
82
+ height: "18",
83
+ class: "text-oc-text-400 drag-el cursor-move",
84
+ name: "draggable"
85
+ })) : $("", !0)
86
+ ], 2))), 128))
87
+ ]),
88
+ _: 1
89
+ }, 16, ["modelValue"])
90
+ ])) : $("", !0),
91
+ G("div", sl, [
92
+ b[5] || (b[5] = G("span", { class: "text-oc-text-400 font-medium" }, "Active columns", -1)),
93
+ R(x($e), ke({
94
+ key: "key",
95
+ modelValue: m.value,
96
+ "onUpdate:modelValue": b[2] || (b[2] = (k) => m.value = k)
97
+ }, W, { "data-active-headers": "true" }), {
98
+ default: C(() => [
99
+ (d(!0), F(ae, null, se(m.value, (k) => (d(), F(ae, {
100
+ key: k.key
101
+ }, [
102
+ k.key !== "actions" ? (d(), F("div", ol, [
103
+ G("div", ul, [
104
+ R(x(ze), {
105
+ modelValue: k.isActive,
106
+ "onUpdate:modelValue": [
107
+ (E) => k.isActive = E,
108
+ b[1] || (b[1] = (E) => j())
109
+ ],
110
+ class: "!w-fit"
111
+ }, null, 8, ["modelValue", "onUpdate:modelValue"]),
112
+ G("div", rl, he(k.label), 1)
113
+ ]),
114
+ m.value.length > 1 ? (d(), q(x(Oe), {
115
+ key: 0,
116
+ width: "18",
117
+ height: "18",
118
+ class: "text-oc-text-400 drag-el cursor-move",
119
+ name: "draggable"
120
+ })) : $("", !0)
121
+ ])) : $("", !0)
122
+ ], 64))), 128))
123
+ ]),
124
+ _: 1
125
+ }, 16, ["modelValue"])
126
+ ])
127
+ ])
128
+ ]),
129
+ default: C(() => [
130
+ R(x(je), {
131
+ label: "Edit Column",
132
+ "left-icon": "setting",
133
+ variant: "secondary"
134
+ })
135
+ ]),
136
+ _: 1
137
+ }, 8, ["modelValue"]));
138
+ }
139
+ }, nl = { class: "relative flex flex-col gap-9" }, dl = {
140
+ key: 0,
141
+ class: "flex items-center px-4 min-h-[52px]"
142
+ }, vl = {
143
+ key: 0,
144
+ class: "absolute flex items-center gap-5 left-5"
145
+ }, cl = {
146
+ key: 1,
147
+ class: "absolute flex gap-3 left-5"
148
+ }, fl = {
149
+ key: 1,
150
+ class: "flex justify-center w-full gap-5 md:justify-start"
151
+ }, pl = {
152
+ key: 2,
153
+ class: "items-center hidden md:flex"
154
+ }, xl = {
155
+ __name: "OcDataTable",
156
+ props: {
157
+ isLoading: Boolean,
158
+ id: {
159
+ type: String,
160
+ required: !0
161
+ },
162
+ options: {
163
+ type: Object,
164
+ required: !0
165
+ },
166
+ filter: {
167
+ type: Object,
168
+ required: !0
169
+ },
170
+ selected: {
171
+ type: Array,
172
+ required: !1
173
+ },
174
+ rowClass: String,
175
+ rowKey: {
176
+ type: String,
177
+ Function,
178
+ default: "id"
179
+ },
180
+ rowLink: String
181
+ },
182
+ emits: {
183
+ "update:selected": [],
184
+ "update:filter": [],
185
+ "click:row": [],
186
+ "filter-fields-changed": [],
187
+ "filter-removed": [],
188
+ "search-query-changed": [],
189
+ "hover:cell": [],
190
+ "columns-changed": []
191
+ },
192
+ setup(L, { emit: ee }) {
193
+ var de, ve, ce, fe, pe, me, ye, ge, be;
194
+ const p = L, D = ee, m = M(() => {
195
+ var l;
196
+ return (l = p.options) == null ? void 0 : l.pagination;
197
+ }), g = M(() => {
198
+ var l;
199
+ return (l = p.options) == null ? void 0 : l.cursor;
200
+ }), H = N(), j = M(() => {
201
+ var l;
202
+ return (l = p.options) == null ? void 0 : l.tableOptions;
203
+ }), W = M(() => {
204
+ var l;
205
+ return {
206
+ ...j.value,
207
+ headers: H.value ? H.value.map((e) => {
208
+ var o, r;
209
+ return e.class = ((r = (o = j.value) == null ? void 0 : o.headers.find((i) => i.key === e.key)) == null ? void 0 : r.class) ?? "", e;
210
+ }).filter((e) => ne(e.key)) : (l = j.value) == null ? void 0 : l.headers.filter((e) => ne(e.key))
211
+ };
212
+ }), a = M(() => {
213
+ var l;
214
+ return (l = p.options) == null ? void 0 : l.filterOptions;
215
+ }), b = M(() => {
216
+ var l;
217
+ return (l = p.options) == null ? void 0 : l.hidePerPageDropdown;
218
+ }), k = M(() => {
219
+ var l;
220
+ return ((l = m.value) == null ? void 0 : l.last_page) === 1;
221
+ }), E = N(!1), V = N(p.filter[(ve = (de = a.value) == null ? void 0 : de.tabs) == null ? void 0 : ve.key]), Q = N(p.filter.page), I = N(
222
+ (fe = (ce = a.value) == null ? void 0 : ce.per_page) != null && fe.key ? p.filter[(me = (pe = a.value) == null ? void 0 : pe.per_page) == null ? void 0 : me.key] : p.filter.per_page
223
+ ), X = ((be = p.filter[(ge = (ye = a.value) == null ? void 0 : ye.search) == null ? void 0 : ge.key]) == null ? void 0 : be.trim()) ?? "", J = N(X ? X.split(",") : []), re = N(!1), Ce = M(
224
+ () => {
225
+ var l, e;
226
+ return (e = (l = p.options) == null ? void 0 : l.perPageOptions) == null ? void 0 : e.map(
227
+ (o) => ({
228
+ label: `${o}`,
229
+ value: o
230
+ })
231
+ );
232
+ }
233
+ ), De = M(() => {
234
+ let l = [
235
+ {
236
+ label: "10",
237
+ value: 10
238
+ },
239
+ {
240
+ label: "15",
241
+ value: 15
242
+ },
243
+ {
244
+ label: "20",
245
+ value: 20
246
+ },
247
+ {
248
+ label: "25",
249
+ value: 25
250
+ },
251
+ {
252
+ label: "40",
253
+ value: 40
254
+ },
255
+ {
256
+ label: "50",
257
+ value: 50
258
+ },
259
+ {
260
+ label: "75",
261
+ value: 75
262
+ },
263
+ {
264
+ label: "99",
265
+ value: 99
266
+ }
267
+ ], e = Ce.value ?? l;
268
+ if (m.value) {
269
+ const o = m.value.total < 100 ? m.value.total : 100;
270
+ o > 10 && (e = e.filter((r) => r.value <= o));
271
+ }
272
+ return [...new Set(e)];
273
+ }), Ke = M(() => {
274
+ var l;
275
+ return ((l = p.selected) == null ? void 0 : l.length) > 0;
276
+ }), ie = (l) => {
277
+ !l.trim() || J.value.includes(l) || (J.value = [l], K(), D("search-query-changed", l));
278
+ }, Le = (l) => {
279
+ J.value = J.value.filter((e) => e !== l), K();
280
+ }, Z = p.filter;
281
+ !Z && m ? Z.page = 1 : !Z && g && (Z.cursor = "");
282
+ const t = N(Z), Pe = () => {
283
+ var e, o, r, i, v, s, c, y, S, w, A, P, U, Y;
284
+ J.value = [], V.value = "";
285
+ const l = {};
286
+ a.value ? Z.page = 1 : Z.cursor = "", (o = (e = a.value) == null ? void 0 : e.per_page) != null && o.key ? l[(i = (r = a.value) == null ? void 0 : r.per_page) == null ? void 0 : i.key] = I.value : l.per_page = I.value, (s = (v = a.value) == null ? void 0 : v.tabs) != null && s.key ? l[(y = (c = a.value) == null ? void 0 : c.tabs) == null ? void 0 : y.key] = V.value : l.tabs = V.value, (w = (S = a.value) == null ? void 0 : S.columnEdit) != null && w.key && (l[(P = (A = a.value) == null ? void 0 : A.columnEdit) == null ? void 0 : P.key] = t.value[(Y = (U = a.value) == null ? void 0 : U.columnEdit) == null ? void 0 : Y.key]), t.value = l, K();
287
+ }, Ue = () => {
288
+ K(null, Q.value);
289
+ }, Ye = () => {
290
+ p.id && Ee(p.id, JSON.stringify(t.value));
291
+ }, Be = () => p.id ? ue(p.id) : null, K = (l = null, e = !1, o = "", r = !1) => {
292
+ var v, s, c, y, S, w, A, P, U, Y, z, B, u;
293
+ m.value && !e && (Q.value = 1), m.value ? t.value.page = Q.value : t.value.cursor = o, (v = a.value) != null && v.per_page ? t.value[a.value.per_page.key] = I.value : t.value.per_page = I.value, (s = a.value) != null && s.tabs && (t.value[a.value.tabs.key] = V.value), (c = a.value) != null && c.search && ((S = (y = a.value.search) == null ? void 0 : y.options) != null && S.length ? (Object.keys(t.value).forEach((n) => {
294
+ var O;
295
+ (O = a.value.search.options) != null && O.map((h) => h.value).includes(n) && delete t.value[n];
296
+ }), t.value[((w = t.value) == null ? void 0 : w.selectedSearchOption) || ((U = (P = (A = a.value.search) == null ? void 0 : A.options) == null ? void 0 : P[0]) == null ? void 0 : U.value) || a.value.search.key] = J.value.join()) : t.value[a.value.search.key] = J.value.join()), l && (E.value = !1, t.value = { ...t.value, ...l }, Object.keys(t.value).forEach((n) => {
297
+ Array.isArray(t.value[n]) && t.value[n].length === 0 && delete t.value[n];
298
+ }));
299
+ let i = (z = (Y = a.value) == null ? void 0 : Y.tabs) == null ? void 0 : z.key;
300
+ if (i && V.value !== t.value[i]) {
301
+ const n = (u = (B = a.value.tabs) == null ? void 0 : B.options) == null ? void 0 : u.find(
302
+ (O) => {
303
+ var h, f;
304
+ return ((h = O.value) == null ? void 0 : h.toString()) === ((f = t.value[i]) == null ? void 0 : f.toString());
305
+ }
306
+ );
307
+ if (n != null && n.value)
308
+ return V.value = n.value, K(), !1;
309
+ }
310
+ Ye(), D("update:filter", t.value, r);
311
+ }, Me = (l, e) => {
312
+ (e === a.value.tabs.key || e === "tabs") && (V.value = ""), K(l), D("filter-removed", e);
313
+ }, Ne = (l) => {
314
+ let e = [];
315
+ return l.forEach((o) => {
316
+ e.push(o.key);
317
+ }), e;
318
+ }, Ie = M(() => {
319
+ if (t.value) {
320
+ let l = [];
321
+ return Object.keys(t.value).forEach((e) => {
322
+ var v, s, c, y, S, w, A, P, U, Y, z;
323
+ let o = (s = (v = a.value) == null ? void 0 : v.tabs) == null ? void 0 : s.key;
324
+ const r = (y = (c = a.value) == null ? void 0 : c.search) == null ? void 0 : y.key, i = ((w = (S = a.value) == null ? void 0 : S.per_page) == null ? void 0 : w.key) ?? "per_page";
325
+ if ((A = a.value.form) == null || A.find((B) => {
326
+ B.name === o && (o = "");
327
+ }), e !== "page" && e !== "cursor" && e !== i && e !== o && e !== r) {
328
+ let B = null, u = (P = a.value.form) == null ? void 0 : P.find((O) => {
329
+ if (typeof O.name == "object") {
330
+ let h = !1;
331
+ return O.name.forEach((f) => {
332
+ f.key === e && (h = !0, B = Ne(O.name));
333
+ }), h;
334
+ } else
335
+ return O.name === e;
336
+ }), n = "";
337
+ if (u && t.value[e]) {
338
+ if (typeof u.name == "object" ? (U = u.name) == null || U.forEach((h) => {
339
+ n && (n += " - "), n += t.value[h.key];
340
+ }) : n = t.value[e], u.props.options && (n = (u.props.multiple ? t.value[e] : [t.value[e]]).map(
341
+ (f) => {
342
+ var _;
343
+ return (_ = u.props.options.find(({ value: le }) => le === f)) == null ? void 0 : _.label;
344
+ }
345
+ ).join(", ")), u.type === "RangeInput" && Array.isArray(t.value[e]) && (n = t.value[e][0].toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") + " - " + t.value[e][1].toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",")), u.type === "DatePicker")
346
+ if (((Y = u == null ? void 0 : u.props) == null ? void 0 : Y.type) === "range" && u.name && u.name[1]) {
347
+ const h = te(t.value[u.name[0].key]).format("MM/DD/YYYY"), f = te(t.value[u.name[1].key]).format("MM/DD/YYYY");
348
+ n = h === f ? h : h + " - " + f;
349
+ } else n = te(t.value[u.name]).format("MM/DD/YYYY");
350
+ let O = `${(z = u == null ? void 0 : u.props) == null ? void 0 : z.label} : ${n}`;
351
+ u && u.name && typeof u.name == "object" && l.find((f) => f.name === B[0]) && (O = ""), l.push({
352
+ label: O,
353
+ name: e,
354
+ multiNames: B
355
+ });
356
+ }
357
+ }
358
+ }), l;
359
+ }
360
+ return [];
361
+ }), ne = (l) => {
362
+ var e, o, r, i, v, s;
363
+ return ((s = (v = (i = (r = t.value) == null ? void 0 : r[(o = (e = a.value) == null ? void 0 : e.columnEdit) == null ? void 0 : o.key]) == null ? void 0 : i.active) == null ? void 0 : v.find((c) => c.key === l)) == null ? void 0 : s.isActive) ?? !0;
364
+ }, Te = ({ fixedHeaders: l, activeHeaders: e, isOnMount: o }) => {
365
+ var r, i, v, s, c, y, S, w;
366
+ if (t.value[(i = (r = a.value) == null ? void 0 : r.columnEdit) == null ? void 0 : i.key] || (t.value[(s = (v = a.value) == null ? void 0 : v.columnEdit) == null ? void 0 : s.key] = {}), t.value[(y = (c = a.value) == null ? void 0 : c.columnEdit) == null ? void 0 : y.key].fixed = l, t.value[(w = (S = a.value) == null ? void 0 : S.columnEdit) == null ? void 0 : w.key].active = e, H.value = [...l, ...e], !o) {
367
+ const A = ll(l, e);
368
+ Ee(a.value.columnEdit.localStorageKey, A);
369
+ }
370
+ D("columns-changed", e);
371
+ }, qe = () => {
372
+ var l, e, o, r, i, v;
373
+ if ((e = (l = a.value) == null ? void 0 : l.columnEdit) != null && e.localStorageKey) {
374
+ const s = ue(a.value.columnEdit.localStorageKey);
375
+ if (s) {
376
+ const { fixed: c, active: y } = Ae(
377
+ s,
378
+ j.value.headers,
379
+ a.value.columnEdit.localStorageKey
380
+ );
381
+ t.value[(r = (o = a.value) == null ? void 0 : o.columnEdit) == null ? void 0 : r.key].fixed = c, t.value[(v = (i = a.value) == null ? void 0 : i.columnEdit) == null ? void 0 : v.key].active = y, H.value = [...c, ...y];
382
+ }
383
+ }
384
+ }, Qe = (l) => {
385
+ t.value.selectedSearchOption = l;
386
+ };
387
+ return Ve(() => {
388
+ var e, o, r, i, v, s, c;
389
+ qe();
390
+ const l = Be();
391
+ l && (t.value = JSON.parse(l), V.value = V.value || ((e = t.value) == null ? void 0 : e.tabs) || ((i = t.value) == null ? void 0 : i[(r = (o = a.value) == null ? void 0 : o.tabs) == null ? void 0 : r.key]), (v = t.value) != null && v.selectedSearchOption && ie(t.value[(s = t.value) == null ? void 0 : s.selectedSearchOption]), Q.value = ((c = t.value) == null ? void 0 : c.page) || 1, K(null, !0, t.value.cursor, !0));
392
+ }), (l, e) => {
393
+ var o, r, i, v;
394
+ return d(), F("div", nl, [
395
+ j.value ? (d(), q(x(He), {
396
+ key: 0,
397
+ selected: L.selected,
398
+ "row-key": L.rowKey,
399
+ options: W.value,
400
+ "is-loading": L.isLoading,
401
+ "loading-rows": I.value,
402
+ "row-class": L.rowClass,
403
+ "row-link": L.rowLink,
404
+ "is-sticky": j.value.isSticky,
405
+ "is-borderless": j.value.isBorderless,
406
+ "onUpdate:selected": e[7] || (e[7] = (s) => l.$emit("update:selected", s)),
407
+ "onClick:row": e[8] || (e[8] = (s) => l.$emit("click:row", s)),
408
+ "onHover:cell": e[9] || (e[9] = (s) => l.$emit("hover:cell", s))
409
+ }, Je({
410
+ after: C(() => [
411
+ T(l.$slots, "after")
412
+ ]),
413
+ empty: C(() => [
414
+ T(l.$slots, "empty")
415
+ ]),
416
+ "table-header": C((s) => [
417
+ T(l.$slots, "table-header", xe(we(s)))
418
+ ]),
419
+ "table-body": C((s) => [
420
+ T(l.$slots, "table-body", xe(we(s)))
421
+ ]),
422
+ _: 2
423
+ }, [
424
+ l.$slots.before || (o = a.value) != null && o.search || (r = a.value) != null && r.form || (i = a.value) != null && i.tabs ? {
425
+ name: "before",
426
+ fn: C(() => {
427
+ var s, c, y, S;
428
+ return [
429
+ T(l.$slots, "before"),
430
+ (s = a.value) != null && s.search || (c = a.value) != null && c.form || (y = a.value) != null && y.tabs ? (d(), F("div", dl, [
431
+ Ke.value ? (d(), F("div", vl, [
432
+ T(l.$slots, "bulk-actions", { selectedRows: L.selected })
433
+ ])) : (d(), F("div", cl, [
434
+ (S = a.value) != null && S.tabs ? (d(), q(x(Ze), {
435
+ key: 0,
436
+ modelValue: V.value,
437
+ "onUpdate:modelValue": [
438
+ e[0] || (e[0] = (w) => V.value = w),
439
+ e[1] || (e[1] = (w) => K(null))
440
+ ],
441
+ "is-disabled": L.isLoading,
442
+ tabs: a.value.tabs.options,
443
+ variant: "pills"
444
+ }, null, 8, ["modelValue", "is-disabled", "tabs"])) : $("", !0)
445
+ ])),
446
+ T(l.$slots, "filter-options", {}, () => {
447
+ var w, A, P, U, Y, z, B, u, n, O, h;
448
+ return [
449
+ (w = a.value) != null && w.search || (A = a.value) != null && A.form || (P = a.value) != null && P.columnEdit ? (d(), F("div", {
450
+ key: 0,
451
+ class: oe([
452
+ "flex gap-3 absolute ml-auto bg-oc-bg-light right-4 max-w-[calc(100%-24px)]",
453
+ a.value ? re.value ? "md:w-fit w-full" : "" : "w-full justify-end"
454
+ ])
455
+ }, [
456
+ (U = a.value) != null && U.search ? (d(), q(x(Ge), {
457
+ key: 0,
458
+ "is-search-only": !a.value.tabs || a.value.isSearchOnly,
459
+ "search-options": ((Y = a.value.search) == null ? void 0 : Y.options) ?? [],
460
+ "selected-option": (((z = t.value) == null ? void 0 : z.selectedSearchOption) || ((n = (u = (B = a.value.search) == null ? void 0 : B.options) == null ? void 0 : u[0]) == null ? void 0 : n.value)) ?? "keywords",
461
+ onAddQuery: ie,
462
+ onToggle: e[2] || (e[2] = (f) => re.value = f),
463
+ onChangeSearchKey: Qe
464
+ }, null, 8, ["is-search-only", "search-options", "selected-option"])) : $("", !0),
465
+ (O = a.value) != null && O.form ? (d(), q(x(Fe), {
466
+ key: 1,
467
+ modelValue: E.value,
468
+ "onUpdate:modelValue": e[6] || (e[6] = (f) => E.value = f),
469
+ distance: 9,
470
+ placement: "bottom-end",
471
+ "is-attach-to-body": ""
472
+ }, {
473
+ menu: C(() => [
474
+ E.value ? (d(), q(x(We), {
475
+ key: 0,
476
+ id: L.id,
477
+ "json-form": a.value.form ?? [],
478
+ grid: a.value.grid ?? null,
479
+ values: p.filter,
480
+ actions: a.value.actions,
481
+ onApplyFilter: e[3] || (e[3] = (f) => K(f)),
482
+ onFilterFieldsChanged: e[4] || (e[4] = (f) => D("filter-fields-changed", f)),
483
+ onCancel: e[5] || (e[5] = (f) => E.value = !1)
484
+ }, {
485
+ default: C(({ errors: f, values: _, jsonForm: le, updateForm: Re }) => [
486
+ T(l.$slots, "custom-filter-form", {
487
+ errors: f,
488
+ values: _,
489
+ jsonForm: le,
490
+ updateFilter: Re
491
+ })
492
+ ]),
493
+ _: 3
494
+ }, 8, ["id", "json-form", "grid", "values", "actions"])) : $("", !0)
495
+ ]),
496
+ default: C(() => [
497
+ R(x(je), {
498
+ "is-active": E.value,
499
+ variant: "secondary",
500
+ "left-icon": "filter"
501
+ }, null, 8, ["is-active"])
502
+ ]),
503
+ _: 3
504
+ }, 8, ["modelValue"])) : $("", !0),
505
+ a.value.columnEdit ? (d(), q(il, {
506
+ key: 2,
507
+ options: t.value.columnEdit,
508
+ headers: ((h = j.value) == null ? void 0 : h.headers) || [],
509
+ "local-key": a.value.columnEdit.localStorageKey,
510
+ onUpdateOrder: Te
511
+ }, null, 8, ["options", "headers", "local-key"])) : $("", !0)
512
+ ], 2)) : $("", !0)
513
+ ];
514
+ })
515
+ ])) : $("", !0),
516
+ R(x(Xe), {
517
+ filters: Ie.value,
518
+ queries: J.value,
519
+ class: "border-t border-oc-gray-200",
520
+ onRemoveQuery: Le,
521
+ onRemoveAll: Pe,
522
+ onRemoveFilter: Me
523
+ }, null, 8, ["filters", "queries"])
524
+ ];
525
+ }),
526
+ key: "0"
527
+ } : void 0,
528
+ se((v = j.value) == null ? void 0 : v.headers, (s, c) => ({
529
+ name: s.key,
530
+ fn: C(({ data: y, item: S }) => [
531
+ T(l.$slots, s.key, {
532
+ data: y,
533
+ item: S
534
+ })
535
+ ])
536
+ }))
537
+ ]), 1032, ["selected", "row-key", "options", "is-loading", "loading-rows", "row-class", "row-link", "is-sticky", "is-borderless"])) : $("", !0),
538
+ T(l.$slots, "before-pagination"),
539
+ m.value || g.value ? (d(), F("div", {
540
+ key: 1,
541
+ class: oe(["flex items-center gap-3", m.value && m.value.last_page === 1 ? "justify-end" : ""])
542
+ }, [
543
+ m.value && !k.value ? (d(), q(x(_e), {
544
+ key: 0,
545
+ modelValue: Q.value,
546
+ "onUpdate:modelValue": [
547
+ e[10] || (e[10] = (s) => Q.value = s),
548
+ Ue
549
+ ],
550
+ class: "justify-center",
551
+ "max-page": m.value.last_page,
552
+ strategy: m.value.strategy,
553
+ "total-visible": "5"
554
+ }, null, 8, ["modelValue", "max-page", "strategy"])) : $("", !0),
555
+ g.value ? (d(), F("div", fl, [
556
+ R(x(Se), {
557
+ disabled: !g.value.prev,
558
+ onClick: e[11] || (e[11] = (s) => g.value.prev ? K(null, !1, g.value.prev) : null)
559
+ }, null, 8, ["disabled"]),
560
+ R(x(Se), {
561
+ disabled: !g.value.next,
562
+ "is-next": "",
563
+ onClick: e[12] || (e[12] = (s) => g.value.next ? K(null, !1, g.value.next) : null)
564
+ }, null, 8, ["disabled"])
565
+ ])) : $("", !0),
566
+ b.value ? $("", !0) : (d(), F("div", pl, [
567
+ R(x(el), {
568
+ modelValue: I.value,
569
+ "onUpdate:modelValue": [
570
+ e[13] || (e[13] = (s) => I.value = s),
571
+ e[14] || (e[14] = (s) => K(null))
572
+ ],
573
+ label: "Item per page",
574
+ "is-inline-label": "",
575
+ "popper-options": { placement: "auto" },
576
+ options: De.value
577
+ }, null, 8, ["modelValue", "options"])
578
+ ]))
579
+ ], 2)) : $("", !0)
580
+ ]);
581
+ };
582
+ }
583
+ };
584
+ export {
585
+ xl as default
586
+ };
@@ -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-DmWvHxcZ.js";
2
+ import { aH as $, aD as S, ay as B } from "./index-BXSABQPr.js";
3
3
  import { _ as g } from "./OcIcon-CSpRxnwd.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",
@@ -1,5 +1,5 @@
1
1
  import { ref as m, computed as p, openBlock as s, createElementBlock as l, createVNode as f, unref as c, withCtx as v, createElementVNode as n, Fragment as T, renderList as V, normalizeClass as k, createTextVNode as C, createBlock as N, createCommentVNode as z } from "vue";
2
- import { ay as U, d as J, B as b } from "./index-DmWvHxcZ.js";
2
+ import { ay as U, d as J, B as b } from "./index-BXSABQPr.js";
3
3
  import { EMOJI_LIST as a, EMOJI_CATEGORIES as P } from "./Form/EmojiPicker/conts/emoji.js";
4
4
  import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const F = { class: "flex items-center justify-center rounded bg-oc-bg-dark h-[140px] relative w-full z-50" }, G = ["innerHTML"], R = { class: "p-4 w-[340px]" }, q = { class: "bg-oc-bg-dark p-4 rounded flex items-center justify-center" }, K = ["innerHTML"], Q = { class: "pt-3 pb-4" }, W = ["id", "innerHTML", "onClick"], X = {
@@ -1,5 +1,5 @@
1
1
  import { ref as r, computed as u, onMounted as B, openBlock as O, createElementBlock as k, renderSlot as $, createElementVNode as f, createVNode as c, unref as i } from "vue";
2
- import { u as w, B as m } from "./index-DmWvHxcZ.js";
2
+ import { u as w, B as m } from "./index-BXSABQPr.js";
3
3
  const C = { class: "flex w-[326px] flex-col gap-y-5" }, A = { class: "max-h-[500px] overflow-y-auto p-5" }, E = { class: "flex gap-x-5 px-5 pb-5" }, N = {
4
4
  __name: "OcFilterForm",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { ref as c, computed as B, openBlock as s, createElementBlock as u, Fragment as x, createElementVNode as i, normalizeClass as O, createVNode as m, unref as r, withKeys as K, createSlots as N, withCtx as v, renderList as Q, createBlock as f, toDisplayString as z, createCommentVNode as S, nextTick as D } from "vue";
2
- import { d as E, ay as F, az as I, B as w } from "./index-DmWvHxcZ.js";
2
+ import { d as E, ay as F, az as I, B as w } from "./index-BXSABQPr.js";
3
3
  import { _ as U } from "./OcIcon-CSpRxnwd.js";
4
4
  const j = { class: "flex gap-x-4" }, q = { class: "flex gap-x-2 items-center pl-2 text-oc-text-400 font-medium text-sm" }, A = { class: "p-2 flex flex-col" }, J = {
5
5
  __name: "OcFilterSearch",
@@ -1,5 +1,5 @@
1
1
  import { computed as k, openBlock as a, createBlock as m, unref as n, withCtx as x, createElementVNode as f, createElementBlock as v, Fragment as b, renderList as p, createVNode as F, createCommentVNode as $ } from "vue";
2
- import { M as y, at as i } from "./index-DmWvHxcZ.js";
2
+ import { M as y, at as i } from "./index-BXSABQPr.js";
3
3
  const C = { class: "flex gap-1 items-center normal-case flex-wrap" }, R = {
4
4
  __name: "OcFilterSearchFor",
5
5
  props: {
@@ -1,6 +1,6 @@
1
1
  import { ref as e, openBlock as v, createBlock as d, unref as l, withCtx as x, createVNode as O } from "vue";
2
- import { aA as b } from "./index-DmWvHxcZ.js";
3
- import k from "./OcCropper-CkGNup0e.js";
2
+ import { aA as b } from "./index-BXSABQPr.js";
3
+ import k from "./OcCropper-B-CVJmDW.js";
4
4
  const h = {
5
5
  __name: "OcModalCropper",
6
6
  props: {
@@ -1,5 +1,5 @@
1
1
  import { ref as n, watch as g, openBlock as m, createBlock as s, unref as o, withCtx as p, createCommentVNode as v, createVNode as y } from "vue";
2
- import { ay as S, aI as h, d as D } from "./index-DmWvHxcZ.js";
2
+ import { ay as S, aI as h, d as D } from "./index-BXSABQPr.js";
3
3
  import c from "dayjs";
4
4
  const w = {
5
5
  __name: "OcTimePicker",
@@ -1,4 +1,4 @@
1
- import { aw as r } from "../../index-DmWvHxcZ.js";
1
+ import { aw as r } from "../../index-BXSABQPr.js";
2
2
  export {
3
3
  r as ConfirmationModal
4
4
  };
@@ -1,4 +1,4 @@
1
- import { ax as a } from "../../index-DmWvHxcZ.js";
1
+ import { ax as a } from "../../index-BXSABQPr.js";
2
2
  export {
3
3
  a as CopyTooltip
4
4
  };
@@ -1,4 +1,4 @@
1
- import { ay as r, az as p } from "../../index-DmWvHxcZ.js";
1
+ import { ay as r, az as p } from "../../index-BXSABQPr.js";
2
2
  export {
3
3
  r as Dropdown,
4
4
  p as DropdownItem