@orchidui/core 1.6.1-57 → 1.6.1-58

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