@orchidui/core 1.6.1-57 → 1.6.1-59

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