@orchidui/core 1.8.1-4 → 1.8.1-41

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 (94) hide show
  1. package/dist/DataDisplay/CustomerCard/OcCustomerCard.js +2 -2
  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 +2 -2
  34. package/dist/Form/CardInput/OcCardInput.js +1 -1
  35. package/dist/Form/Checkbox/OcCheckbox.js +2 -2
  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 +2 -2
  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 +2 -2
  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 +2 -2
  50. package/dist/Form/Select/OcSelect.js +1 -1
  51. package/dist/Form/SelectOptions/OcSelectOptions.js +2 -2
  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 +2 -2
  55. package/dist/Form/Toggle/OcToggle.js +1 -1
  56. package/dist/Form/index.js +8 -8
  57. package/dist/FormBuilder/OcFormBuilder.js +1 -1
  58. package/dist/MediaAndIcons/Icon/OcIcon.js +1 -1
  59. package/dist/OcAccountSetupProgress-CfK4DhqI.js +54 -0
  60. package/dist/{OcComplexCalendar-Y18mvtov.js → OcComplexCalendar-D30GXpy2.js} +1 -1
  61. package/dist/{OcComplexDatePicker-AXgUP2Yn.js → OcComplexDatePicker-DD8DOHif.js} +1 -1
  62. package/dist/OcCropper-DhxFUxbJ.js +232 -0
  63. package/dist/OcDataTable-Cf6wmJW2.js +586 -0
  64. package/dist/{OcDraggable-CA_BCbpl.js → OcDraggable-CZT2mJvO.js} +5 -4
  65. package/dist/{OcDraggableList-BKKx-LWb.js → OcDraggableList-pK7klIYI.js} +2 -2
  66. package/dist/{OcEmojiPicker-dSwLWtCt.js → OcEmojiPicker-D886B8hz.js} +1 -1
  67. package/dist/{OcFilterForm-BcgGF4Uj.js → OcFilterForm-UrEVxZtW.js} +8 -8
  68. package/dist/OcFilterSearch-CKWJ4B9S.js +117 -0
  69. package/dist/{OcFilterSearchFor-DGhnvaok.js → OcFilterSearchFor-GT6XYg1R.js} +3 -3
  70. package/dist/{OcIcon-CJgBICxh.js → OcIcon-CSpRxnwd.js} +7 -7
  71. package/dist/{OcModalCropper-Bm4fmXhJ.js → OcModalCropper-CJmBDGca.js} +21 -18
  72. package/dist/{OcPopper-D0VfWOBI.js → OcPopper-Bc96YXbS.js} +16 -15
  73. package/dist/{OcTimePicker-Du4iiI66.js → OcTimePicker-DYD2uUuY.js} +1 -1
  74. package/dist/OcToggle-Cp5dJ5LN.js +58 -0
  75. package/dist/Overlay/ConfirmationModal/OcConfirmationModal.js +1 -1
  76. package/dist/Overlay/CopyTooltip/OcCopyTooltip.js +1 -1
  77. package/dist/Overlay/Dropdown/OcDropdown.js +1 -1
  78. package/dist/Overlay/Modal/OcModal.js +1 -1
  79. package/dist/Overlay/Popper/OcPopper.js +1 -1
  80. package/dist/Overlay/SupportMenu/OcSupportMenu.js +1 -1
  81. package/dist/Overlay/Tooltip/OcTooltip.js +1 -1
  82. package/dist/Overlay/Whitelist/OcWhiteList.js +1 -1
  83. package/dist/{SubPlanCard-DJL5EZAa.js → SubPlanCard-DCaPD4sV.js} +2 -2
  84. package/dist/{ThumbnailSection-Bvuf-W9X.js → ThumbnailSection-2wG4C9dw.js} +1 -1
  85. package/dist/{ThumbnailTheme-BXbzqG2B.js → ThumbnailTheme-GJ93fnL4.js} +2 -2
  86. package/dist/{index-BKeaxrj3.js → index-DbinnvEU.js} +2957 -2848
  87. package/dist/index.js +4 -4
  88. package/dist/style.css +1 -1
  89. package/package.json +1 -1
  90. package/dist/OcAccountSetupProgress-DKeGZqin.js +0 -46
  91. package/dist/OcCropper-DkzhigMd.js +0 -229
  92. package/dist/OcDataTable-BCeOgNHX.js +0 -578
  93. package/dist/OcFilterSearch-CkLiqUUj.js +0 -69
  94. package/dist/OcToggle-bIJaLDMZ.js +0 -53
@@ -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 be, Fragment as ae, renderList as se, normalizeClass as oe, toDisplayString as ke, createCommentVNode as $, computed as M, createSlots as Je, renderSlot as T, normalizeProps as he, guardReactiveProps as xe } from "vue";
2
+ import { ay as Oe, C as ze, B as Fe, K as He, Z as Ze, aJ as Ge, aK as We, aL as Xe, H as _e, I as we, j as el } from "./index-DbinnvEU.js";
3
+ import te from "dayjs";
4
+ import { VueDraggableNext as Se } from "vue-draggable-next";
5
+ import { getFromLocalStorage as ue, formatHeadersFromLocalStorage as je, formatHeadersToLocalStorage as ll, setInLocalStorage as $e } from "./DataTable/utils/editColumnsUtils.js";
6
+ import { _ as Ee } 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 f = ee, D = L, p = N([]), g = N([]), H = N(!1), j = (a = !1) => {
32
+ g.value = g.value.map((b) => ({
33
+ ...b,
34
+ isActive: !0
35
+ })), f("update-order", {
36
+ fixedHeaders: g.value,
37
+ activeHeaders: p.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 } = je(a, D.headers, D.localKey);
51
+ g.value = b || D.headers.slice(0, 1), p.value = k || D.headers.slice(1).map((E) => {
52
+ var O, Q, I;
53
+ return {
54
+ ...E,
55
+ isActive: ((I = (Q = (O = D.options) == null ? void 0 : O.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(Oe), {
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(Se), be({
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, ke(k.label), 1),
79
+ E ? (d(), q(x(Ee), {
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(Se), be({
94
+ key: "key",
95
+ modelValue: p.value,
96
+ "onUpdate:modelValue": b[2] || (b[2] = (k) => p.value = k)
97
+ }, W, { "data-active-headers": "true" }), {
98
+ default: C(() => [
99
+ (d(!0), F(ae, null, se(p.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, ke(k.label), 1)
113
+ ]),
114
+ p.value.length > 1 ? (d(), q(x(Ee), {
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(Fe), {
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 ne, de, ve, ce, fe, pe, me, ye, ge;
194
+ const f = L, D = ee, p = M(() => {
195
+ var l;
196
+ return (l = f.options) == null ? void 0 : l.pagination;
197
+ }), g = M(() => {
198
+ var l;
199
+ return (l = f.options) == null ? void 0 : l.cursor;
200
+ }), H = N(), j = M(() => {
201
+ var l;
202
+ return (l = f.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) => ie(e.key)) : (l = j.value) == null ? void 0 : l.headers.filter((e) => ie(e.key))
211
+ };
212
+ }), a = M(() => {
213
+ var l;
214
+ return (l = f.options) == null ? void 0 : l.filterOptions;
215
+ }), b = M(() => {
216
+ var l;
217
+ return (l = f.options) == null ? void 0 : l.hidePerPageDropdown;
218
+ }), k = M(() => {
219
+ var l;
220
+ return ((l = p.value) == null ? void 0 : l.last_page) === 1;
221
+ }), E = N(!1), O = N(f.filter[(de = (ne = a.value) == null ? void 0 : ne.tabs) == null ? void 0 : de.key]), Q = N(f.filter.page), I = N(
222
+ (ce = (ve = a.value) == null ? void 0 : ve.per_page) != null && ce.key ? f.filter[(pe = (fe = a.value) == null ? void 0 : fe.per_page) == null ? void 0 : pe.key] : f.filter.per_page
223
+ ), X = ((ge = f.filter[(ye = (me = a.value) == null ? void 0 : me.search) == null ? void 0 : ye.key]) == null ? void 0 : ge.trim()) ?? "", J = N(X ? X.split(",") : []), re = N(!1), Ae = M(
224
+ () => {
225
+ var l, e;
226
+ return (e = (l = f.options) == null ? void 0 : l.perPageOptions) == null ? void 0 : e.map(
227
+ (o) => ({
228
+ label: `${o}`,
229
+ value: o
230
+ })
231
+ );
232
+ }
233
+ ), Ce = 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 = Ae.value ?? l;
268
+ if (p.value) {
269
+ const o = p.value.total < 100 ? p.value.total : 100;
270
+ o > 10 && (e = e.filter((r) => r.value <= o));
271
+ }
272
+ return [...new Set(e)];
273
+ }), De = M(() => {
274
+ var l;
275
+ return ((l = f.selected) == null ? void 0 : l.length) > 0;
276
+ }), Ke = (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 = f.filter;
281
+ !Z && p ? Z.page = 1 : !Z && g && (Z.cursor = "");
282
+ const t = N(Z), Pe = () => {
283
+ var e, o, r, i, v, s, m, y, S, w, A, P, U, Y;
284
+ J.value = [], O.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 = (m = a.value) == null ? void 0 : m.tabs) == null ? void 0 : y.key] = O.value : l.tabs = O.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
+ f.id && $e(f.id, JSON.stringify(t.value));
291
+ }, Be = () => f.id ? ue(f.id) : null, K = (l = null, e = !1, o = "", r = !1) => {
292
+ var v, s, m, y, S, w, A, P, U, Y, z, B, u;
293
+ p.value && !e && (Q.value = 1), p.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] = O.value), (m = a.value) != null && m.search && ((S = (y = a.value.search) == null ? void 0 : y.options) != null && S.length ? (Object.keys(t.value).forEach((n) => {
294
+ var V;
295
+ (V = a.value.search.options) != null && V.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 && O.value !== t.value[i]) {
301
+ const n = (u = (B = a.value.tabs) == null ? void 0 : B.options) == null ? void 0 : u.find(
302
+ (V) => {
303
+ var h, c;
304
+ return ((h = V.value) == null ? void 0 : h.toString()) === ((c = t.value[i]) == null ? void 0 : c.toString());
305
+ }
306
+ );
307
+ if (n != null && n.value)
308
+ return O.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") && (O.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, m, 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 = (m = a.value) == null ? void 0 : m.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((V) => {
329
+ if (typeof V.name == "object") {
330
+ let h = !1;
331
+ return V.name.forEach((c) => {
332
+ c.key === e && (h = !0, B = Ne(V.name));
333
+ }), h;
334
+ } else
335
+ return V.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
+ (c) => {
342
+ var _;
343
+ return (_ = u.props.options.find(({ value: le }) => le === c)) == 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"), c = te(t.value[u.name[1].key]).format("MM/DD/YYYY");
348
+ n = h === c ? h : h + " - " + c;
349
+ } else n = te(t.value[u.name]).format("MM/DD/YYYY");
350
+ let V = `${(z = u == null ? void 0 : u.props) == null ? void 0 : z.label} : ${n}`;
351
+ u && u.name && typeof u.name == "object" && l.find((c) => c.name === B[0]) && (V = ""), l.push({
352
+ label: V,
353
+ name: e,
354
+ multiNames: B
355
+ });
356
+ }
357
+ }
358
+ }), l;
359
+ }
360
+ return [];
361
+ }), ie = (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((m) => m.key === l)) == null ? void 0 : s.isActive) ?? !0;
364
+ }, Te = ({ fixedHeaders: l, activeHeaders: e, isOnMount: o }) => {
365
+ var r, i, v, s, m, 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 = (m = a.value) == null ? void 0 : m.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
+ $e(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: m, active: y } = je(
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 = m, t.value[(v = (i = a.value) == null ? void 0 : i.columnEdit) == null ? void 0 : v.key].active = y, H.value = [...m, ...y];
382
+ }
383
+ }
384
+ }, Qe = (l) => {
385
+ t.value.selectedSearchOption = l;
386
+ };
387
+ return Ve(() => {
388
+ var e, o, r, i, v;
389
+ qe();
390
+ const l = Be();
391
+ l && (t.value = JSON.parse(l), O.value = O.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]), Q.value = ((v = t.value) == null ? void 0 : v.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", he(xe(s)))
418
+ ]),
419
+ "table-body": C((s) => [
420
+ T(l.$slots, "table-body", he(xe(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, m, y, S;
428
+ return [
429
+ T(l.$slots, "before"),
430
+ (s = a.value) != null && s.search || (m = a.value) != null && m.form || (y = a.value) != null && y.tabs ? (d(), F("div", dl, [
431
+ De.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: O.value,
437
+ "onUpdate:modelValue": [
438
+ e[0] || (e[0] = (w) => O.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, V, 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: Ke,
462
+ onToggle: e[2] || (e[2] = (c) => re.value = c),
463
+ onChangeSearchKey: Qe
464
+ }, null, 8, ["is-search-only", "search-options", "selected-option"])) : $("", !0),
465
+ (V = a.value) != null && V.form ? (d(), q(x(Oe), {
466
+ key: 1,
467
+ modelValue: E.value,
468
+ "onUpdate:modelValue": e[6] || (e[6] = (c) => E.value = c),
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: f.filter,
480
+ actions: a.value.actions,
481
+ onApplyFilter: e[3] || (e[3] = (c) => K(c)),
482
+ onFilterFieldsChanged: e[4] || (e[4] = (c) => D("filter-fields-changed", c)),
483
+ onCancel: e[5] || (e[5] = (c) => E.value = !1)
484
+ }, {
485
+ default: C(({ errors: c, values: _, jsonForm: le, updateForm: Re }) => [
486
+ T(l.$slots, "custom-filter-form", {
487
+ errors: c,
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(Fe), {
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, m) => ({
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
+ p.value || g.value ? (d(), F("div", {
540
+ key: 1,
541
+ class: oe(["flex items-center gap-3", p.value && p.value.last_page === 1 ? "justify-end" : ""])
542
+ }, [
543
+ p.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": p.value.last_page,
552
+ strategy: p.value.strategy,
553
+ "total-visible": "5"
554
+ }, null, 8, ["modelValue", "max-page", "strategy"])) : $("", !0),
555
+ g.value ? (d(), F("div", fl, [
556
+ R(x(we), {
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(we), {
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: Ce.value
577
+ }, null, 8, ["modelValue", "options"])
578
+ ]))
579
+ ], 2)) : $("", !0)
580
+ ]);
581
+ };
582
+ }
583
+ };
584
+ export {
585
+ xl as default
586
+ };
@@ -1,4 +1,4 @@
1
- import { computed as s, openBlock as c, createBlock as d, unref as m, withCtx as i, renderSlot as p } from "vue";
1
+ import { computed as c, openBlock as s, createBlock as d, unref as m, withCtx as i, renderSlot as p } from "vue";
2
2
  import { VueDraggableNext as f } from "vue-draggable-next";
3
3
  const h = {
4
4
  __name: "OcDraggable",
@@ -10,17 +10,18 @@ const h = {
10
10
  detectMove: null
11
11
  },
12
12
  setup(a, { emit: l }) {
13
- const n = a, o = l, t = s(() => n.modelValue), r = (e) => {
13
+ const r = a, o = l, t = c(() => r.modelValue), n = (e) => {
14
14
  o("update:modelValue", t.value, e);
15
15
  }, u = (e) => {
16
16
  o("detectMove", e);
17
17
  };
18
- return (e, g) => (c(), d(m(f), {
18
+ return (e, g) => (s(), d(m(f), {
19
19
  handle: ".drag-el",
20
20
  list: t.value,
21
21
  animation: 500,
22
+ "force-fallback": !0,
22
23
  move: u,
23
- onChange: r
24
+ onChange: n
24
25
  }, {
25
26
  default: i(() => [
26
27
  p(e.$slots, "default", { list: t.value })
@@ -1,6 +1,6 @@
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-BKeaxrj3.js";
3
- import { _ as g } from "./OcIcon-CJgBICxh.js";
2
+ import { aH as $, aD as S, ay as B } from "./index-DbinnvEU.js";
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",
6
6
  props: {
@@ -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, e as J, B as b } from "./index-BKeaxrj3.js";
2
+ import { ay as U, d as J, B as b } from "./index-DbinnvEU.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 = {