@orchidui/core 1.8.1-116 → 1.8.1-119
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.
- package/dist/DataDisplay/CustomerCard/OcCustomerCard.js +1 -1
- package/dist/DataDisplay/FloatContent/OcFloatContent.js +1 -1
- package/dist/DataDisplay/InfoCard/OcInfoCard.js +1 -1
- package/dist/DataDisplay/ListDetail/OcListDetail.js +1 -1
- package/dist/DataDisplay/ListItem/OcListItem.js +1 -1
- package/dist/DataDisplay/OnboardingListItem/OcOnboardingListItem.js +1 -1
- package/dist/DataDisplay/Overview/OcOverview.js +1 -1
- package/dist/DataDisplay/Pagination/OcPagination.js +1 -1
- package/dist/DataDisplay/Table/OcTable.js +1 -1
- package/dist/DataDisplay/TransferSummary/OcTransferSummary.js +1 -1
- package/dist/DataTable/useDataTable.js +51 -51
- package/dist/Disclosure/Accordion/OcAccordion.js +1 -1
- package/dist/Disclosure/OnboardingAccordion/OnboardingAccordion.js +1 -1
- package/dist/Disclosure/Steps/OcSteps.js +1 -1
- package/dist/Disclosure/Tabs/Tabs.js +1 -1
- package/dist/Disclosure/Variants/OcVariants.js +1 -1
- package/dist/Elements/AdditionalContent/OcAdditionalContent.js +1 -1
- package/dist/Elements/AuthenticationOption/AuthenticationOption.js +1 -1
- package/dist/Elements/Box/OcBox.js +1 -1
- package/dist/Elements/EmptyPage/OcEmptyPage.js +1 -1
- package/dist/Elements/FeatureOverviewCard/OcFeatureOverviewCard.js +1 -1
- package/dist/Elements/Header/OcHeader.js +1 -1
- package/dist/Elements/PageTitle/OcPageTitle.js +1 -1
- package/dist/Elements/SandboxBanner/OcSandboxBanner.js +1 -1
- package/dist/Elements/Sidebar/OcSidebar.js +2 -2
- package/dist/Elements/SubSidebar/OcSubSidebar.js +1 -1
- package/dist/Elements/TopBanner/OcTopBanner.js +1 -1
- package/dist/Elements/VerificationOption/OcVerificationOption.js +1 -1
- package/dist/Feedback/Banner/OcBanner.js +1 -1
- package/dist/Feedback/Chip/OcChip.js +1 -1
- package/dist/Feedback/ShareIcon/OcShareIcon.js +1 -1
- package/dist/Feedback/Snackbar/OcSnackbar.js +1 -1
- package/dist/Form/BaseInput/OcBaseInput.js +1 -1
- package/dist/Form/Button/OcButton.js +1 -1
- package/dist/Form/Calendar/OcCalendar.js +1 -1
- package/dist/Form/CardInput/OcCardInput.js +1 -1
- package/dist/Form/Checkbox/OcCheckbox.js +1 -1
- package/dist/Form/CheckboxesGroup/OcCheckboxesGroup.js +1 -1
- package/dist/Form/Criteria/OcCriteria.js +1 -1
- package/dist/Form/Cropper/OcCropper.js +1 -1
- package/dist/Form/DatePicker/OcDatePicker.js +1 -1
- package/dist/Form/EmojiPicker/OcEmojiPicker.js +1 -1
- package/dist/Form/Input/OcInput.js +1 -1
- package/dist/Form/LinkInput/OcLinkInput.js +1 -1
- package/dist/Form/MultipleUploadFile/OcMultipleUploadFile.js +1 -1
- package/dist/Form/NumberInput/OcNumberInput.js +1 -1
- package/dist/Form/PhoneInput/OcPhoneInput.js +1 -1
- package/dist/Form/Radio/OcRadio.js +1 -1
- package/dist/Form/RadioGroup/OcRadioGroup.js +1 -1
- package/dist/Form/RangeInput/OcRangeInput.js +1 -1
- package/dist/Form/SectionItem/OcSectionItem.js +1 -1
- package/dist/Form/Select/OcSelect.js +1 -1
- package/dist/Form/SelectOptions/OcSelectOptions.js +1 -1
- package/dist/Form/SingleFileUpload/OcSingleFileUpload.js +1 -1
- package/dist/Form/Slider/OcSlider.js +1 -1
- package/dist/Form/TextArea/OcTextArea.js +1 -1
- package/dist/Form/index.js +1 -1
- package/dist/FormBuilder/OcFormBuilder.js +1 -1
- package/dist/{OcAccountSetupProgress-DdwbNh_j.js → OcAccountSetupProgress-COKaTIbI.js} +1 -1
- package/dist/{OcComplexCalendar-NB-nixtt.js → OcComplexCalendar-FzZPh8Bm.js} +1 -1
- package/dist/{OcComplexDatePicker-CCZNKVjC.js → OcComplexDatePicker-oTIFi1nw.js} +1 -1
- package/dist/{OcCropper-D7GFhoWz.js → OcCropper-R_6_f4Me.js} +1 -1
- package/dist/{OcDataTable-YUm4ppk9.js → OcDataTable-D0vfaHVM.js} +105 -106
- package/dist/{OcDraggableList-BTxRKiVF.js → OcDraggableList-cx3rwDMf.js} +1 -1
- package/dist/{OcEmojiPicker-D6nfctf9.js → OcEmojiPicker-Bs2EBZNh.js} +1 -1
- package/dist/{OcFilterForm-MWslQjtt.js → OcFilterForm-D3z27wKr.js} +1 -1
- package/dist/{OcFilterSearch-BlMXCzOr.js → OcFilterSearch-ZS_wGRHR.js} +1 -1
- package/dist/{OcFilterSearchFor-C9-lxT4W.js → OcFilterSearchFor-bclZuZhK.js} +1 -1
- package/dist/{OcModalCropper-DKhsnxRF.js → OcModalCropper-0ZRH3sKu.js} +2 -2
- package/dist/{OcTimePicker-DDf4hJM7.js → OcTimePicker-DFO6M0nc.js} +1 -1
- package/dist/Overlay/ConfirmationModal/OcConfirmationModal.js +1 -1
- package/dist/Overlay/CopyTooltip/OcCopyTooltip.js +1 -1
- package/dist/Overlay/Dropdown/OcDropdown.js +1 -1
- package/dist/Overlay/Modal/OcModal.js +1 -1
- package/dist/Overlay/SupportMenu/OcSupportMenu.js +1 -1
- package/dist/Overlay/Tooltip/OcTooltip.js +1 -1
- package/dist/Overlay/Whitelist/OcWhiteList.js +1 -1
- package/dist/{SubPlanCard-CvHxRfDv.js → SubPlanCard-urpIO9KQ.js} +1 -1
- package/dist/{ThumbnailSection-SmaP6Acx.js → ThumbnailSection-BDOE6sXb.js} +1 -1
- package/dist/{ThumbnailTheme-UBdrnl_Z.js → ThumbnailTheme-YYWNdD88.js} +1 -1
- package/dist/{index-BtrJ8Wk_.js → index-CXwMYjtl.js} +8 -8
- package/dist/index.js +1 -1
- package/package.json +1 -1
@@ -1,12 +1,12 @@
|
|
1
|
-
import { ref as
|
2
|
-
import { az as Ae, B as Ke, C as ll, K as al, Z as tl, aK as ol, aL as sl, aM as ul, H as rl, I as De, j as il } from "./index-
|
1
|
+
import { ref as O, onMounted as je, createBlock as j, openBlock as i, unref as r, withCtx as x, createVNode as T, createElementVNode as q, createElementBlock as k, createCommentVNode as g, mergeProps as Oe, Fragment as se, renderList as re, normalizeClass as ie, toDisplayString as Ve, computed as F, watch as ue, renderSlot as P, createSlots as el, normalizeProps as Ee, guardReactiveProps as Ce } from "vue";
|
2
|
+
import { az as Ae, B as Ke, C as ll, K as al, Z as tl, aK as ol, aL as sl, aM as ul, H as rl, I as De, j as il } from "./index-CXwMYjtl.js";
|
3
3
|
import { VueDraggableNext as Le } from "vue-draggable-next";
|
4
4
|
import { getFromLocalStorage as Te, formatHeadersFromLocalStorage as Ue, formatHeadersToLocalStorage as nl, setInLocalStorage as dl } from "./DataTable/utils/editColumnsUtils.js";
|
5
5
|
import { _ as Pe } from "./OcIcon-CBf___w1.js";
|
6
6
|
import { formatFilterDisplay as vl, clearAllFilters as cl } from "./DataTable/utils/filterUtils.js";
|
7
7
|
import { formatCustomItemsPerPageOptions as ml, getItemsPerPageOptions as pl } from "./DataTable/utils/paginationUtils.js";
|
8
|
-
import { getFilterFromLocalStorage as fl, saveFilterToLocalStorage as
|
9
|
-
import { useDataTable as
|
8
|
+
import { getFilterFromLocalStorage as fl, saveFilterToLocalStorage as yl } from "./DataTable/utils/storageUtils.js";
|
9
|
+
import { useDataTable as gl } from "./DataTable/useDataTable.js";
|
10
10
|
import "dayjs";
|
11
11
|
const bl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, kl = {
|
12
12
|
key: 0,
|
@@ -36,36 +36,36 @@ const bl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, kl = {
|
|
36
36
|
"update-order"
|
37
37
|
],
|
38
38
|
setup(A, { emit: te }) {
|
39
|
-
const u = te, w = A,
|
39
|
+
const u = te, w = A, y = O([]), h = O([]), V = O(!1), z = {
|
40
40
|
handle: ".drag-el",
|
41
41
|
filter: ".is-disabled",
|
42
42
|
group: "headers",
|
43
43
|
animation: 500,
|
44
44
|
forceFallback: !1,
|
45
45
|
move: (K) => K.to.dataset.activeHeaders ? !0 : !!K.draggedContext.futureIndex,
|
46
|
-
"onUpdate:modelValue": () =>
|
47
|
-
},
|
46
|
+
"onUpdate:modelValue": () => M()
|
47
|
+
}, M = (K = !1) => {
|
48
48
|
h.value = h.value.map((m) => ({
|
49
49
|
...m,
|
50
50
|
isActive: !0
|
51
51
|
})), u("update-order", {
|
52
52
|
fixedHeaders: h.value,
|
53
|
-
activeHeaders:
|
53
|
+
activeHeaders: y.value,
|
54
54
|
isOnMount: K
|
55
55
|
});
|
56
56
|
};
|
57
57
|
return je(() => {
|
58
58
|
const K = Te(w.localKey), { fixed: m, active: s } = Ue(K, w.headers, w.localKey);
|
59
|
-
h.value = m || w.headers.slice(0, 1),
|
60
|
-
var
|
59
|
+
h.value = m || w.headers.slice(0, 1), y.value = s || w.headers.slice(1).map((C) => {
|
60
|
+
var J, l, le;
|
61
61
|
return {
|
62
62
|
...C,
|
63
|
-
isActive: ((le = (l = (
|
63
|
+
isActive: ((le = (l = (J = w.options) == null ? void 0 : J.active) == null ? void 0 : l.find((oe) => oe.key === C.key)) == null ? void 0 : le.isActive) ?? !0
|
64
64
|
};
|
65
|
-
}),
|
65
|
+
}), M(!0);
|
66
66
|
}), (K, m) => (i(), j(r(Ae), {
|
67
|
-
modelValue:
|
68
|
-
"onUpdate:modelValue": m[3] || (m[3] = (s) =>
|
67
|
+
modelValue: V.value,
|
68
|
+
"onUpdate:modelValue": m[3] || (m[3] = (s) => V.value = s),
|
69
69
|
class: "h-[36px]",
|
70
70
|
"is-attach-to-body": ""
|
71
71
|
}, {
|
@@ -77,7 +77,7 @@ const bl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, kl = {
|
|
77
77
|
key: "key",
|
78
78
|
modelValue: h.value,
|
79
79
|
"onUpdate:modelValue": m[0] || (m[0] = (s) => h.value = s)
|
80
|
-
},
|
80
|
+
}, z), {
|
81
81
|
default: x(() => [
|
82
82
|
(i(!0), k(se, null, re(h.value, (s, C) => (i(), k("div", {
|
83
83
|
key: s.key,
|
@@ -90,21 +90,21 @@ const bl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, kl = {
|
|
90
90
|
height: "18",
|
91
91
|
class: "text-oc-text-400 drag-el cursor-move",
|
92
92
|
name: "draggable"
|
93
|
-
})) :
|
93
|
+
})) : g("", !0)
|
94
94
|
], 2))), 128))
|
95
95
|
]),
|
96
96
|
_: 1
|
97
97
|
}, 16, ["modelValue"])
|
98
|
-
])) :
|
98
|
+
])) : g("", !0),
|
99
99
|
q("div", hl, [
|
100
100
|
m[5] || (m[5] = q("span", { class: "text-oc-text-400 font-medium" }, "Active columns", -1)),
|
101
101
|
T(r(Le), Oe({
|
102
102
|
key: "key",
|
103
|
-
modelValue:
|
104
|
-
"onUpdate:modelValue": m[2] || (m[2] = (s) =>
|
105
|
-
},
|
103
|
+
modelValue: y.value,
|
104
|
+
"onUpdate:modelValue": m[2] || (m[2] = (s) => y.value = s)
|
105
|
+
}, z, { "data-active-headers": "true" }), {
|
106
106
|
default: x(() => [
|
107
|
-
(i(!0), k(se, null, re(
|
107
|
+
(i(!0), k(se, null, re(y.value, (s) => (i(), k(se, {
|
108
108
|
key: s.key
|
109
109
|
}, [
|
110
110
|
s.key !== "actions" ? (i(), k("div", Sl, [
|
@@ -113,20 +113,20 @@ const bl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, kl = {
|
|
113
113
|
modelValue: s.isActive,
|
114
114
|
"onUpdate:modelValue": [
|
115
115
|
(C) => s.isActive = C,
|
116
|
-
m[1] || (m[1] = (C) =>
|
116
|
+
m[1] || (m[1] = (C) => M())
|
117
117
|
],
|
118
118
|
class: "!w-fit"
|
119
119
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
120
120
|
q("div", wl, Ve(s.label), 1)
|
121
121
|
]),
|
122
|
-
|
122
|
+
y.value.length > 1 ? (i(), j(r(Pe), {
|
123
123
|
key: 0,
|
124
124
|
width: "18",
|
125
125
|
height: "18",
|
126
126
|
class: "text-oc-text-400 drag-el cursor-move",
|
127
127
|
name: "draggable"
|
128
|
-
})) :
|
129
|
-
])) :
|
128
|
+
})) : g("", !0)
|
129
|
+
])) : g("", !0)
|
130
130
|
], 64))), 128))
|
131
131
|
]),
|
132
132
|
_: 1
|
@@ -202,15 +202,15 @@ const bl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, kl = {
|
|
202
202
|
"columns-changed": []
|
203
203
|
},
|
204
204
|
setup(A, { emit: te }) {
|
205
|
-
var pe, fe,
|
206
|
-
const u = A, w = te,
|
205
|
+
var pe, fe, ye, ge, be, ke, he, Se, xe, we, $e, Fe;
|
206
|
+
const u = A, w = te, y = F(() => {
|
207
207
|
var e;
|
208
208
|
return (e = u.options) == null ? void 0 : e.cursor;
|
209
|
-
}), h =
|
209
|
+
}), h = O(), V = F(() => {
|
210
210
|
var e;
|
211
211
|
return (e = u.options) == null ? void 0 : e.tableOptions;
|
212
|
-
}),
|
213
|
-
localData:
|
212
|
+
}), z = F(() => u.localDb !== void 0), {
|
213
|
+
localData: M,
|
214
214
|
setFilter: K,
|
215
215
|
setSortBy: m,
|
216
216
|
paginationData: s,
|
@@ -218,58 +218,57 @@ const bl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, kl = {
|
|
218
218
|
// sortBy,
|
219
219
|
// toggleSort,
|
220
220
|
// updateOrAddLocalData,
|
221
|
-
} =
|
222
|
-
id: u.id,
|
221
|
+
} = gl({
|
223
222
|
name: (pe = u.localDb) == null ? void 0 : pe.table_name,
|
224
223
|
localDb: (fe = u.localDb) == null ? void 0 : fe.db,
|
225
|
-
options: (
|
224
|
+
options: (ye = u.localDb) == null ? void 0 : ye.options
|
226
225
|
});
|
227
226
|
ue(() => {
|
228
227
|
var e;
|
229
228
|
return (e = u.options) == null ? void 0 : e.pagination;
|
230
229
|
}, (e) => {
|
231
230
|
s.value = e;
|
232
|
-
}, { deep: !0, immediate: !0 }),
|
231
|
+
}, { deep: !0, immediate: !0 }), z.value && (ue(() => u.filter, () => {
|
233
232
|
K(u.filter);
|
234
233
|
}, { deep: !0, immediate: !0 }), ue(() => u.sortBy, () => {
|
235
234
|
m(u.sortBy);
|
236
235
|
}, { deep: !0, immediate: !0 }));
|
237
|
-
const
|
236
|
+
const J = F(() => {
|
238
237
|
var a;
|
239
238
|
const e = {
|
240
|
-
|
239
|
+
...V.value,
|
241
240
|
headers: h.value ? h.value.map((n) => {
|
242
241
|
var v, c;
|
243
|
-
return n.class = ((c = (v =
|
244
|
-
}).filter((n) => n.isActive) : (a =
|
242
|
+
return n.class = ((c = (v = V.value) == null ? void 0 : v.headers.find((d) => d.key === n.key)) == null ? void 0 : c.class) ?? "", n;
|
243
|
+
}).filter((n) => n.isActive) : (a = V.value) == null ? void 0 : a.headers.filter((n) => Re(n.key))
|
245
244
|
};
|
246
|
-
return
|
247
|
-
}), l =
|
245
|
+
return z.value && (e.fields = M.value), e;
|
246
|
+
}), l = F(() => {
|
248
247
|
var e;
|
249
248
|
return (e = u.options) == null ? void 0 : e.filterOptions;
|
250
|
-
}), le =
|
249
|
+
}), le = F(() => {
|
251
250
|
var e;
|
252
251
|
return (e = u.options) == null ? void 0 : e.hidePerPageDropdown;
|
253
|
-
}), oe =
|
252
|
+
}), oe = F(() => {
|
254
253
|
var e;
|
255
254
|
return ((e = s.value) == null ? void 0 : e.last_page) === 1;
|
256
|
-
}),
|
255
|
+
}), Q = O(!1), D = O(u.filter[(be = (ge = l.value) == null ? void 0 : ge.tabs) == null ? void 0 : be.key]), N = O(u.filter.page), R = O(
|
257
256
|
(he = (ke = l.value) == null ? void 0 : ke.per_page) != null && he.key ? u.filter[(xe = (Se = l.value) == null ? void 0 : Se.per_page) == null ? void 0 : xe.key] : u.filter.per_page
|
258
|
-
), ne = ((Fe = u.filter[($e = (we = l.value) == null ? void 0 : we.search) == null ? void 0 : $e.key]) == null ? void 0 : Fe.trim()) ?? "", U =
|
257
|
+
), ne = ((Fe = u.filter[($e = (we = l.value) == null ? void 0 : we.search) == null ? void 0 : $e.key]) == null ? void 0 : Fe.trim()) ?? "", U = O(ne ? ne.split(",") : []), de = O(!1), Be = F(
|
259
258
|
() => {
|
260
259
|
var e;
|
261
260
|
return ml((e = u.options) == null ? void 0 : e.perPageOptions);
|
262
261
|
}
|
263
|
-
), Ie =
|
262
|
+
), Ie = F(() => pl(Be.value, s.value)), qe = F(() => {
|
264
263
|
var e;
|
265
264
|
return ((e = u.selected) == null ? void 0 : e.length) > 0;
|
266
265
|
}), ve = (e) => {
|
267
|
-
!e.trim() || !t.value.selectedSearchOption && U.value.includes(e) || (U.value = [e],
|
266
|
+
!e.trim() || !t.value.selectedSearchOption && U.value.includes(e) || (U.value = [e], $(), w("search-query-changed", e));
|
268
267
|
}, Qe = (e) => {
|
269
|
-
U.value = U.value.filter((a) => a !== e),
|
270
|
-
},
|
271
|
-
!
|
272
|
-
const t =
|
268
|
+
U.value = U.value.filter((a) => a !== e), $();
|
269
|
+
}, Z = u.filter;
|
270
|
+
!Z && s.value ? Z.page = 1 : !Z && y && (Z.cursor = "");
|
271
|
+
const t = O(Z), Ne = F(() => vl(t.value, l.value)), Re = (e) => {
|
273
272
|
var a, n, v, c, d, o;
|
274
273
|
return ((o = (d = (c = (v = t.value) == null ? void 0 : v[(n = (a = l.value) == null ? void 0 : a.columnEdit) == null ? void 0 : n.key]) == null ? void 0 : c.active) == null ? void 0 : d.find((p) => p.key === e)) == null ? void 0 : o.isActive) ?? !0;
|
275
274
|
}, ze = ({ fixedHeaders: e, activeHeaders: a, isOnMount: n }) => {
|
@@ -286,7 +285,7 @@ const bl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, kl = {
|
|
286
285
|
if (o) {
|
287
286
|
const { fixed: p, active: S } = Ue(
|
288
287
|
o,
|
289
|
-
|
288
|
+
V.value.headers,
|
290
289
|
l.value.columnEdit.localStorageKey
|
291
290
|
);
|
292
291
|
t.value[(v = (n = l.value) == null ? void 0 : n.columnEdit) == null ? void 0 : v.key].fixed = p, t.value[(d = (c = l.value) == null ? void 0 : c.columnEdit) == null ? void 0 : d.key].active = S, h.value = [...p, ...S];
|
@@ -295,57 +294,57 @@ const bl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, kl = {
|
|
295
294
|
}, Je = (e) => {
|
296
295
|
t.value.selectedSearchOption = e;
|
297
296
|
}, Ze = () => {
|
298
|
-
U.value = [], D.value = "", t.value = cl(t.value, l.value,
|
297
|
+
U.value = [], D.value = "", t.value = cl(t.value, l.value, R.value, D.value), $();
|
299
298
|
}, Ge = () => {
|
300
|
-
|
299
|
+
$(null, N.value);
|
301
300
|
}, He = () => {
|
302
|
-
|
303
|
-
}, We = () => fl(u.id), ce =
|
304
|
-
var o, p, S, L, E, B,
|
305
|
-
s.value && !a && (
|
301
|
+
yl(u.id, t.value);
|
302
|
+
}, We = () => fl(u.id), ce = O(null), $ = (e = null, a = !1, n = "", v = !1, c = !1) => {
|
303
|
+
var o, p, S, L, E, B, G, H, W, X, Y, _, ee;
|
304
|
+
s.value && !a && (N.value = 1), s.value ? t.value.page = N.value : t.value.cursor = n, (o = l.value) != null && o.per_page ? t.value[l.value.per_page.key] = R.value : t.value.per_page = R.value, (p = l.value) != null && p.tabs && c && (t.value[l.value.tabs.key] = D.value), (S = l.value) != null && S.search && ((E = (L = l.value.search) == null ? void 0 : L.options) != null && E.length ? (Object.keys(t.value).forEach((b) => {
|
306
305
|
var I;
|
307
306
|
(I = l.value.search.options) != null && I.map((f) => f.value).includes(b) && delete t.value[b];
|
308
|
-
}), t.value[((B = t.value) == null ? void 0 : B.selectedSearchOption) || ((
|
307
|
+
}), t.value[((B = t.value) == null ? void 0 : B.selectedSearchOption) || ((W = (H = (G = l.value.search) == null ? void 0 : G.options) == null ? void 0 : H[0]) == null ? void 0 : W.value) || l.value.search.key] = U.value.join()) : t.value[l.value.search.key] = U.value.join()), e && (Q.value = !1, t.value = { ...t.value, ...e }, Object.keys(t.value).forEach((b) => {
|
309
308
|
Array.isArray(t.value[b]) && t.value[b].length === 0 && delete t.value[b];
|
310
309
|
}));
|
311
|
-
let d = (
|
310
|
+
let d = (Y = (X = l.value) == null ? void 0 : X.tabs) == null ? void 0 : Y.key;
|
312
311
|
if (d && D.value !== t.value[d]) {
|
313
|
-
const b = (
|
312
|
+
const b = (ee = (_ = l.value.tabs) == null ? void 0 : _.options) == null ? void 0 : ee.find(
|
314
313
|
(I) => {
|
315
314
|
var f, ae;
|
316
315
|
return ((f = I.value) == null ? void 0 : f.toString()) === ((ae = t.value[d]) == null ? void 0 : ae.toString());
|
317
316
|
}
|
318
317
|
);
|
319
318
|
if (b != null && b.value)
|
320
|
-
return D.value = b.value,
|
319
|
+
return D.value = b.value, $(), !1;
|
321
320
|
}
|
322
321
|
He(), clearTimeout(ce.value), ce.value = setTimeout(() => {
|
323
322
|
w("update:filter", t.value, v);
|
324
323
|
}, 100);
|
325
324
|
}, Xe = (e, a) => {
|
326
|
-
(a === l.value.tabs.key || a === "tabs") && (D.value = ""),
|
325
|
+
(a === l.value.tabs.key || a === "tabs") && (D.value = ""), $(e), w("filter-removed", a);
|
327
326
|
};
|
328
327
|
je(() => {
|
329
328
|
var a, n, v, c, d, o, p;
|
330
329
|
Me();
|
331
330
|
const e = We();
|
332
|
-
e && (t.value = JSON.parse(e), D.value = D.value || ((a = t.value) == null ? void 0 : a.tabs) || ((c = t.value) == null ? void 0 : c[(v = (n = l.value) == null ? void 0 : n.tabs) == null ? void 0 : v.key]), (d = t.value) != null && d.selectedSearchOption && ve(t.value[(o = t.value) == null ? void 0 : o.selectedSearchOption]),
|
331
|
+
e && (t.value = JSON.parse(e), D.value = D.value || ((a = t.value) == null ? void 0 : a.tabs) || ((c = t.value) == null ? void 0 : c[(v = (n = l.value) == null ? void 0 : n.tabs) == null ? void 0 : v.key]), (d = t.value) != null && d.selectedSearchOption && ve(t.value[(o = t.value) == null ? void 0 : o.selectedSearchOption]), N.value = ((p = t.value) == null ? void 0 : p.page) || 1, $(null, !0, t.value.cursor, !0));
|
333
332
|
});
|
334
|
-
const me =
|
333
|
+
const me = F(() => u.isLoading || C.value);
|
335
334
|
return (e, a) => {
|
336
335
|
var n, v, c, d;
|
337
336
|
return i(), k("div", Fl, [
|
338
|
-
|
337
|
+
J.value ? (i(), j(r(al), {
|
339
338
|
key: 0,
|
340
339
|
selected: A.selected,
|
341
340
|
"row-key": A.rowKey,
|
342
|
-
options:
|
341
|
+
options: J.value,
|
343
342
|
"is-loading": me.value,
|
344
|
-
"loading-rows":
|
343
|
+
"loading-rows": R.value,
|
345
344
|
"row-class": A.rowClass,
|
346
345
|
"row-link": A.rowLink,
|
347
|
-
"is-sticky":
|
348
|
-
"is-borderless":
|
346
|
+
"is-sticky": V.value.isSticky,
|
347
|
+
"is-borderless": V.value.isBorderless,
|
349
348
|
"onUpdate:selected": a[8] || (a[8] = (o) => e.$emit("update:selected", o)),
|
350
349
|
"onClick:row": a[9] || (a[9] = (o) => e.$emit("click:row", o)),
|
351
350
|
"onHover:cell": a[10] || (a[10] = (o) => e.$emit("hover:cell", o))
|
@@ -379,37 +378,37 @@ const bl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, kl = {
|
|
379
378
|
modelValue: D.value,
|
380
379
|
"onUpdate:modelValue": [
|
381
380
|
a[0] || (a[0] = (E) => D.value = E),
|
382
|
-
a[1] || (a[1] = (E) =>
|
381
|
+
a[1] || (a[1] = (E) => $(null, !1, "", !1, !0))
|
383
382
|
],
|
384
383
|
"is-disabled": me.value,
|
385
384
|
tabs: l.value.tabs.options,
|
386
385
|
variant: "pills"
|
387
|
-
}, null, 8, ["modelValue", "is-disabled", "tabs"])) :
|
386
|
+
}, null, 8, ["modelValue", "is-disabled", "tabs"])) : g("", !0)
|
388
387
|
])),
|
389
388
|
P(e.$slots, "filter-options", {}, () => {
|
390
|
-
var E, B,
|
389
|
+
var E, B, G, H, W, X, Y, _, ee, b, I;
|
391
390
|
return [
|
392
|
-
(E = l.value) != null && E.search || (B = l.value) != null && B.form || (
|
391
|
+
(E = l.value) != null && E.search || (B = l.value) != null && B.form || (G = l.value) != null && G.columnEdit ? (i(), k("div", {
|
393
392
|
key: 0,
|
394
393
|
class: ie([
|
395
394
|
"flex gap-3 absolute ml-auto bg-oc-bg-light right-4 max-w-[calc(100%-24px)]",
|
396
395
|
l.value ? de.value ? "md:w-fit w-full" : "" : "w-full justify-end"
|
397
396
|
])
|
398
397
|
}, [
|
399
|
-
(
|
398
|
+
(H = l.value) != null && H.search ? (i(), j(r(ol), {
|
400
399
|
key: 0,
|
401
400
|
"is-search-only": !l.value.tabs || l.value.isSearchOnly,
|
402
|
-
"search-options": ((
|
403
|
-
"selected-option": (((
|
401
|
+
"search-options": ((W = l.value.search) == null ? void 0 : W.options) ?? [],
|
402
|
+
"selected-option": (((X = t.value) == null ? void 0 : X.selectedSearchOption) || ((ee = (_ = (Y = l.value.search) == null ? void 0 : Y.options) == null ? void 0 : _[0]) == null ? void 0 : ee.value)) ?? "keywords",
|
404
403
|
onAddQuery: ve,
|
405
404
|
onToggle: a[2] || (a[2] = (f) => de.value = f),
|
406
405
|
onChangeSearchKey: Je
|
407
|
-
}, null, 8, ["is-search-only", "search-options", "selected-option"])) :
|
406
|
+
}, null, 8, ["is-search-only", "search-options", "selected-option"])) : g("", !0),
|
408
407
|
(b = l.value) != null && b.form ? (i(), j(r(Ae), {
|
409
408
|
key: 1,
|
410
|
-
modelValue:
|
409
|
+
modelValue: Q.value,
|
411
410
|
"onUpdate:modelValue": [
|
412
|
-
a[6] || (a[6] = (f) =>
|
411
|
+
a[6] || (a[6] = (f) => Q.value = f),
|
413
412
|
a[7] || (a[7] = (f) => e.$emit("filter-open", f))
|
414
413
|
],
|
415
414
|
distance: 9,
|
@@ -417,16 +416,16 @@ const bl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, kl = {
|
|
417
416
|
"is-attach-to-body": ""
|
418
417
|
}, {
|
419
418
|
menu: x(() => [
|
420
|
-
|
419
|
+
Q.value ? (i(), j(r(sl), {
|
421
420
|
key: 0,
|
422
421
|
id: A.id,
|
423
422
|
"json-form": l.value.form ?? [],
|
424
423
|
grid: l.value.grid ?? null,
|
425
424
|
values: u.filter,
|
426
425
|
actions: l.value.actions,
|
427
|
-
onApplyFilter: a[3] || (a[3] = (f) =>
|
426
|
+
onApplyFilter: a[3] || (a[3] = (f) => $(f)),
|
428
427
|
onFilterFieldsChanged: a[4] || (a[4] = (f) => w("filter-fields-changed", f)),
|
429
|
-
onCancel: a[5] || (a[5] = (f) =>
|
428
|
+
onCancel: a[5] || (a[5] = (f) => Q.value = !1)
|
430
429
|
}, {
|
431
430
|
default: x(({ errors: f, values: ae, jsonForm: Ye, updateForm: _e }) => [
|
432
431
|
P(e.$slots, "custom-filter-form", {
|
@@ -437,28 +436,28 @@ const bl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, kl = {
|
|
437
436
|
})
|
438
437
|
]),
|
439
438
|
_: 3
|
440
|
-
}, 8, ["id", "json-form", "grid", "values", "actions"])) :
|
439
|
+
}, 8, ["id", "json-form", "grid", "values", "actions"])) : g("", !0)
|
441
440
|
]),
|
442
441
|
default: x(() => [
|
443
442
|
T(r(Ke), {
|
444
|
-
"is-active":
|
443
|
+
"is-active": Q.value,
|
445
444
|
variant: "secondary",
|
446
445
|
"left-icon": "filter"
|
447
446
|
}, null, 8, ["is-active"])
|
448
447
|
]),
|
449
448
|
_: 3
|
450
|
-
}, 8, ["modelValue"])) :
|
449
|
+
}, 8, ["modelValue"])) : g("", !0),
|
451
450
|
l.value.columnEdit ? (i(), j($l, {
|
452
451
|
key: 2,
|
453
452
|
options: t.value.columnEdit,
|
454
|
-
headers: ((I =
|
453
|
+
headers: ((I = V.value) == null ? void 0 : I.headers) || [],
|
455
454
|
"local-key": l.value.columnEdit.localStorageKey,
|
456
455
|
onUpdateOrder: ze
|
457
|
-
}, null, 8, ["options", "headers", "local-key"])) :
|
458
|
-
], 2)) :
|
456
|
+
}, null, 8, ["options", "headers", "local-key"])) : g("", !0)
|
457
|
+
], 2)) : g("", !0)
|
459
458
|
];
|
460
459
|
})
|
461
|
-
])) :
|
460
|
+
])) : g("", !0),
|
462
461
|
T(r(ul), {
|
463
462
|
filters: Ne.value,
|
464
463
|
queries: U.value,
|
@@ -471,7 +470,7 @@ const bl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, kl = {
|
|
471
470
|
}),
|
472
471
|
key: "0"
|
473
472
|
} : void 0,
|
474
|
-
re((d =
|
473
|
+
re((d = V.value) == null ? void 0 : d.headers, (o, p) => ({
|
475
474
|
name: o.key,
|
476
475
|
fn: x(({ data: S, item: L }) => [
|
477
476
|
P(e.$slots, o.key, {
|
@@ -480,41 +479,41 @@ const bl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, kl = {
|
|
480
479
|
})
|
481
480
|
])
|
482
481
|
}))
|
483
|
-
]), 1032, ["selected", "row-key", "options", "is-loading", "loading-rows", "row-class", "row-link", "is-sticky", "is-borderless"])) :
|
482
|
+
]), 1032, ["selected", "row-key", "options", "is-loading", "loading-rows", "row-class", "row-link", "is-sticky", "is-borderless"])) : g("", !0),
|
484
483
|
P(e.$slots, "before-pagination"),
|
485
|
-
r(s) ||
|
484
|
+
r(s) || y.value ? (i(), k("div", {
|
486
485
|
key: 1,
|
487
486
|
class: ie(["flex items-center gap-3", r(s) && r(s).last_page === 1 ? "justify-end" : ""])
|
488
487
|
}, [
|
489
488
|
r(s) && !oe.value ? (i(), j(r(rl), {
|
490
489
|
key: 0,
|
491
|
-
modelValue:
|
490
|
+
modelValue: N.value,
|
492
491
|
"onUpdate:modelValue": [
|
493
|
-
a[11] || (a[11] = (o) =>
|
492
|
+
a[11] || (a[11] = (o) => N.value = o),
|
494
493
|
Ge
|
495
494
|
],
|
496
495
|
class: "justify-center",
|
497
496
|
"max-page": r(s).last_page,
|
498
497
|
strategy: r(s).strategy,
|
499
498
|
"total-visible": "5"
|
500
|
-
}, null, 8, ["modelValue", "max-page", "strategy"])) :
|
501
|
-
|
499
|
+
}, null, 8, ["modelValue", "max-page", "strategy"])) : g("", !0),
|
500
|
+
y.value ? (i(), k("div", Cl, [
|
502
501
|
T(r(De), {
|
503
|
-
disabled: !
|
504
|
-
onClick: a[12] || (a[12] = (o) =>
|
502
|
+
disabled: !y.value.prev,
|
503
|
+
onClick: a[12] || (a[12] = (o) => y.value.prev ? $(null, !1, y.value.prev) : null)
|
505
504
|
}, null, 8, ["disabled"]),
|
506
505
|
T(r(De), {
|
507
|
-
disabled: !
|
506
|
+
disabled: !y.value.next,
|
508
507
|
"is-next": "",
|
509
|
-
onClick: a[13] || (a[13] = (o) =>
|
508
|
+
onClick: a[13] || (a[13] = (o) => y.value.next ? $(null, !1, y.value.next) : null)
|
510
509
|
}, null, 8, ["disabled"])
|
511
|
-
])) :
|
512
|
-
le.value ?
|
510
|
+
])) : g("", !0),
|
511
|
+
le.value ? g("", !0) : (i(), k("div", Dl, [
|
513
512
|
T(r(il), {
|
514
|
-
modelValue:
|
513
|
+
modelValue: R.value,
|
515
514
|
"onUpdate:modelValue": [
|
516
|
-
a[14] || (a[14] = (o) =>
|
517
|
-
a[15] || (a[15] = (o) =>
|
515
|
+
a[14] || (a[14] = (o) => R.value = o),
|
516
|
+
a[15] || (a[15] = (o) => $(null))
|
518
517
|
],
|
519
518
|
label: "Item per page",
|
520
519
|
"is-inline-label": "",
|
@@ -522,7 +521,7 @@ const bl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, kl = {
|
|
522
521
|
options: Ie.value
|
523
522
|
}, null, 8, ["modelValue", "options"])
|
524
523
|
]))
|
525
|
-
], 2)) :
|
524
|
+
], 2)) : g("", !0)
|
526
525
|
]);
|
527
526
|
};
|
528
527
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as w, createBlock as y, openBlock as c, unref as l, withCtx as r, createElementBlock as b, Fragment as C, renderList as $, normalizeClass as s, createElementVNode as o, createCommentVNode as m, renderSlot as u, toDisplayString as x, createVNode as f } from "vue";
|
2
|
-
import { aI as D, aE as S, az as B } from "./index-
|
2
|
+
import { aI as D, aE as S, az as B } from "./index-CXwMYjtl.js";
|
3
3
|
import { _ as g } from "./OcIcon-CBf___w1.js";
|
4
4
|
const M = ["onMouseleave", "onMouseover", "onClick"], L = { class: "flex justify-evenly w-full" }, E = { class: "flex w-full" }, N = { class: "ml-4 flex w-full" }, U = { class: "flex items-center flex-wrap w-full" }, z = ["href"], O = { class: "min-w-[120px]" }, W = { class: "truncate w-[200px]" }, j = { class: "flex items-center ml-4" }, A = { class: "flex w-full" }, T = {
|
5
5
|
__name: "OcDraggableList",
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as m, computed as p, createElementBlock as l, openBlock as s, createVNode as f, createBlock as N, createCommentVNode as z, unref as c, withCtx as v, createElementVNode as n, normalizeClass as T, Fragment as V, renderList as k, createTextVNode as C } from "vue";
|
2
|
-
import { az as U, d as J, B as _ } from "./index-
|
2
|
+
import { az as U, d as J, B as _ } from "./index-CXwMYjtl.js";
|
3
3
|
import { EMOJI_LIST as a, EMOJI_CATEGORIES as P } from "./Form/EmojiPicker/conts/emoji.js";
|
4
4
|
import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
5
5
|
const F = { class: "flex items-center justify-center rounded bg-oc-bg-dark h-[140px] relative w-full z-50" }, G = ["innerHTML"], R = { class: "p-4 w-[340px]" }, q = { class: "bg-oc-bg-dark p-4 rounded flex items-center justify-center" }, K = ["innerHTML"], Q = { class: "pt-3 pb-4" }, W = ["id", "innerHTML", "onClick"], X = {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as r, computed as u, onMounted as B, createElementBlock as O, openBlock as k, renderSlot as $, createElementVNode as f, createVNode as c, unref as i } from "vue";
|
2
|
-
import { u as w, B as m } from "./index-
|
2
|
+
import { u as w, B as m } from "./index-CXwMYjtl.js";
|
3
3
|
const C = { class: "flex w-[326px] flex-col gap-y-5" }, A = { class: "max-h-[500px] overflow-y-auto p-5" }, E = { class: "flex gap-x-5 px-5 pb-5" }, N = {
|
4
4
|
__name: "OcFilterForm",
|
5
5
|
props: {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as c, computed as B, createElementBlock as u, openBlock as s, Fragment as x, createElementVNode as i, createCommentVNode as O, normalizeClass as S, createVNode as m, createBlock as v, unref as r, withKeys as K, createSlots as N, withCtx as f, toDisplayString as Q, renderList as z, nextTick as A } from "vue";
|
2
|
-
import { d as D, az as E, aA as F, B as w } from "./index-
|
2
|
+
import { d as D, az as E, aA as F, B as w } from "./index-CXwMYjtl.js";
|
3
3
|
import { _ as I } from "./OcIcon-CBf___w1.js";
|
4
4
|
const U = { class: "flex gap-x-4" }, j = { class: "flex gap-x-2 items-center pl-2 text-oc-text-400 font-medium text-sm" }, q = { class: "p-2 flex flex-col" }, J = {
|
5
5
|
__name: "OcFilterSearch",
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { computed as k, createBlock as m, createCommentVNode as x, openBlock as a, unref as o, withCtx as y, createElementVNode as f, createElementBlock as v, createVNode as F, Fragment as b, renderList as p } from "vue";
|
2
|
-
import { M as $, au as c } from "./index-
|
2
|
+
import { M as $, au as c } from "./index-CXwMYjtl.js";
|
3
3
|
const C = { class: "flex gap-1 items-center normal-case flex-wrap" }, R = {
|
4
4
|
__name: "OcFilterSearchFor",
|
5
5
|
props: {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ref as o, createBlock as v, openBlock as d, unref as r, withCtx as x, createVNode as O } from "vue";
|
2
|
-
import { aB as b } from "./index-
|
3
|
-
import k from "./OcCropper-
|
2
|
+
import { aB as b } from "./index-CXwMYjtl.js";
|
3
|
+
import k from "./OcCropper-R_6_f4Me.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, createBlock as m, openBlock as s, unref as o, withCtx as p, createVNode as v, createCommentVNode as y } from "vue";
|
2
|
-
import { az as S, d as h, aJ as D } from "./index-
|
2
|
+
import { az as S, d as h, aJ as D } from "./index-CXwMYjtl.js";
|
3
3
|
import c from "dayjs";
|
4
4
|
const w = {
|
5
5
|
__name: "OcTimePicker",
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { computed as l, createElementBlock as o, openBlock as a, normalizeClass as d, createElementVNode as e, createBlock as x, createCommentVNode as u, toDisplayString as r, unref as m, createTextVNode as v, Fragment as T, renderList as k, createVNode as P } from "vue";
|
2
|
-
import { au as _, B as w } from "./index-
|
2
|
+
import { au as _, B as w } from "./index-CXwMYjtl.js";
|
3
3
|
import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
4
4
|
import { _ as F } from "./OcIcon-CBf___w1.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 }, $ = {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { createElementBlock as a, openBlock as d, createElementVNode as t, createVNode as o, unref as i, toDisplayString as r } from "vue";
|
2
|
-
import { B as n } from "./index-
|
2
|
+
import { B as n } from "./index-CXwMYjtl.js";
|
3
3
|
const m = { class: "flex flex-col" }, u = { class: "w-full relative group" }, f = { class: "w-full h-full bg-black/25 absolute top-0 left-0 hidden group-hover:flex rounded-lg" }, v = { class: "w-full px-6 gap-3 m-auto flex" }, b = ["src", "alt"], g = { class: "mt-4 text-md text-center" }, x = {
|
4
4
|
__name: "ThumbnailSection",
|
5
5
|
props: {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { createElementBlock as s, openBlock as i, normalizeClass as f, createElementVNode as l, Fragment as g, createVNode as n, unref as a, createTextVNode as r, toDisplayString as h, createBlock as u, createCommentVNode as b, withCtx as c } from "vue";
|
2
|
-
import { B as d, au as v } from "./index-
|
2
|
+
import { B as d, au as v } from "./index-CXwMYjtl.js";
|
3
3
|
import { _ as k } from "./OcIcon-CBf___w1.js";
|
4
4
|
const x = { class: "w-full relative group" }, y = {
|
5
5
|
key: 0,
|