@orchidui/core 1.6.1-25 → 1.6.1-27
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 +3 -3
- package/dist/DataDisplay/TransferSummary/OcTransferSummary.js +1 -1
- 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 +3 -3
- package/dist/Elements/PageTitle/OcPageTitle.js +2 -2
- 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/VerificationOption/OcVerificationOption.js +2 -2
- 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 +15 -16
- package/dist/FormBuilder/OcFormBuilder.js +1 -1
- package/dist/{OcAccountSetupProgress-Cgc5r0Rn.js → OcAccountSetupProgress-mbOD8RXs.js} +1 -1
- package/dist/{OcComplexCalendar-tRWtK9nc.js → OcComplexCalendar-bqJLQ_f1.js} +1 -1
- package/dist/{OcComplexDatePicker-BWMenBEU.js → OcComplexDatePicker-7xsHnif7.js} +3 -3
- package/dist/{OcCropper-Bp1AMrh-.js → OcCropper-BIQBBDMg.js} +1 -1
- package/dist/{OcDataTable-xfjFIMZa.js → OcDataTable-BJ53ze6V.js} +77 -77
- package/dist/{OcDraggableList-DmZhohY_.js → OcDraggableList-CIRr2L7q.js} +13 -13
- package/dist/{OcEmojiPicker-CyaGc3Qr.js → OcEmojiPicker-CAzh4Nr7.js} +1 -1
- package/dist/{OcFilterForm-DBAy2BtT.js → OcFilterForm-otcALXty.js} +1 -1
- package/dist/{OcFilterSearch-C4meT-CR.js → OcFilterSearch-4UTFikfn.js} +1 -1
- package/dist/{OcFilterSearchFor-CvL28U3F.js → OcFilterSearchFor-CdgbO1mM.js} +1 -1
- package/dist/{OcModalCropper-BeJvZjdl.js → OcModalCropper-B3f3Xbz_.js} +4 -4
- package/dist/{OcTimePicker-B-CW199E.js → OcTimePicker-B-mv-DaH.js} +2 -2
- 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-BsYuygj-.js → SubPlanCard-CqxfYrT7.js} +1 -1
- package/dist/{ThumbnailSection-DFIqLoCf.js → ThumbnailSection-jZKVmIw3.js} +1 -1
- package/dist/{ThumbnailTheme-96dKuGSz.js → ThumbnailTheme-NyJTZwPz.js} +14 -14
- package/dist/{index-CzdK2gWz.js → index-CsbHjN84.js} +1928 -1799
- package/dist/index.js +54 -55
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/OcSlider-DW9x8eas.js +0 -123
@@ -1,5 +1,5 @@
|
|
1
|
-
import { ref as P, onMounted as Ve, openBlock as n, createBlock as B, unref as y, withCtx as F, createElementVNode as
|
2
|
-
import {
|
1
|
+
import { ref as P, onMounted as Ve, openBlock as n, createBlock as B, unref as y, withCtx as F, createElementVNode as Z, createElementBlock as $, createVNode as I, mergeProps as ge, Fragment as ee, renderList as ae, normalizeClass as te, toDisplayString as be, createCommentVNode as h, computed as L, watch as Qe, createSlots as Re, renderSlot as Y, normalizeProps as ke, guardReactiveProps as he } from "vue";
|
2
|
+
import { ay as Ee, b as Je, B as Fe, L as ze, Z as _e, aJ as Ze, aK as Ge, aL as He, I as We, J as xe, k as Xe } from "./index-CsbHjN84.js";
|
3
3
|
import le from "dayjs";
|
4
4
|
import { VueDraggableNext as we } from "vue-draggable-next";
|
5
5
|
import { getFromLocalStorage as se, formatHeadersFromLocalStorage as Oe, formatHeadersToLocalStorage as el, setInLocalStorage as $e } from "./DataTable/utils/editColumnsUtils.js";
|
@@ -27,8 +27,8 @@ const ll = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, al = {
|
|
27
27
|
}
|
28
28
|
},
|
29
29
|
emits: ["change-active", "onMoved", "update-order"],
|
30
|
-
setup(j, { emit:
|
31
|
-
const v =
|
30
|
+
setup(j, { emit: X }) {
|
31
|
+
const v = X, O = j, c = P([]), f = P([]), J = P(!1), S = (a = !1) => {
|
32
32
|
f.value = f.value.map((p) => ({
|
33
33
|
...p,
|
34
34
|
isActive: !0
|
@@ -37,7 +37,7 @@ const ll = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, al = {
|
|
37
37
|
activeHeaders: c.value,
|
38
38
|
isOnMount: a
|
39
39
|
});
|
40
|
-
},
|
40
|
+
}, H = {
|
41
41
|
handle: ".drag-el",
|
42
42
|
filter: ".is-disabled",
|
43
43
|
group: "headers",
|
@@ -49,10 +49,10 @@ const ll = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, al = {
|
|
49
49
|
return Ve(() => {
|
50
50
|
const a = se(O.localKey), { fixed: p, active: m } = Oe(a, O.headers, O.localKey);
|
51
51
|
f.value = p || O.headers.slice(0, 1), c.value = m || O.headers.slice(1).map((x) => {
|
52
|
-
var V,
|
52
|
+
var V, M, C;
|
53
53
|
return {
|
54
54
|
...x,
|
55
|
-
isActive: ((C = (
|
55
|
+
isActive: ((C = (M = (V = O.options) == null ? void 0 : V.active) == null ? void 0 : M.find((W) => W.key === x.key)) == null ? void 0 : C.isActive) ?? !0
|
56
56
|
};
|
57
57
|
}), S(!0);
|
58
58
|
}), (a, p) => (n(), B(y(Ee), {
|
@@ -62,20 +62,20 @@ const ll = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, al = {
|
|
62
62
|
"is-attach-to-body": ""
|
63
63
|
}, {
|
64
64
|
menu: F(() => [
|
65
|
-
|
65
|
+
Z("div", ll, [
|
66
66
|
f.value.length ? (n(), $("div", al, [
|
67
|
-
p[4] || (p[4] =
|
68
|
-
|
67
|
+
p[4] || (p[4] = Z("span", { class: "text-oc-text-400 font-medium" }, "Fixed columns", -1)),
|
68
|
+
I(y(we), ge({
|
69
69
|
key: "key",
|
70
70
|
modelValue: f.value,
|
71
71
|
"onUpdate:modelValue": p[0] || (p[0] = (m) => f.value = m)
|
72
|
-
},
|
72
|
+
}, H), {
|
73
73
|
default: F(() => [
|
74
74
|
(n(!0), $(ee, null, ae(f.value, (m, x) => (n(), $("div", {
|
75
75
|
key: m.key,
|
76
76
|
class: te(["flex items-center justify-between h-[26px]", x ? "" : "is-disabled"])
|
77
77
|
}, [
|
78
|
-
|
78
|
+
Z("span", null, be(m.label), 1),
|
79
79
|
x ? (n(), B(y(Se), {
|
80
80
|
key: 0,
|
81
81
|
width: "18",
|
@@ -88,20 +88,20 @@ const ll = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, al = {
|
|
88
88
|
_: 1
|
89
89
|
}, 16, ["modelValue"])
|
90
90
|
])) : h("", !0),
|
91
|
-
|
92
|
-
p[5] || (p[5] =
|
93
|
-
|
91
|
+
Z("div", tl, [
|
92
|
+
p[5] || (p[5] = Z("span", { class: "text-oc-text-400 font-medium" }, "Active columns", -1)),
|
93
|
+
I(y(we), ge({
|
94
94
|
key: "key",
|
95
95
|
modelValue: c.value,
|
96
96
|
"onUpdate:modelValue": p[2] || (p[2] = (m) => c.value = m)
|
97
|
-
},
|
97
|
+
}, H, { "data-active-headers": "true" }), {
|
98
98
|
default: F(() => [
|
99
99
|
(n(!0), $(ee, null, ae(c.value, (m) => (n(), $(ee, {
|
100
100
|
key: m.key
|
101
101
|
}, [
|
102
102
|
m.key !== "actions" ? (n(), $("div", sl, [
|
103
|
-
|
104
|
-
|
103
|
+
Z("div", ol, [
|
104
|
+
I(y(Je), {
|
105
105
|
modelValue: m.isActive,
|
106
106
|
"onUpdate:modelValue": [
|
107
107
|
(x) => m.isActive = x,
|
@@ -109,7 +109,7 @@ const ll = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, al = {
|
|
109
109
|
],
|
110
110
|
class: "!w-fit"
|
111
111
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
112
|
-
|
112
|
+
Z("div", ul, be(m.label), 1)
|
113
113
|
]),
|
114
114
|
c.value.length > 1 ? (n(), B(y(Se), {
|
115
115
|
key: 0,
|
@@ -127,7 +127,7 @@ const ll = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, al = {
|
|
127
127
|
])
|
128
128
|
]),
|
129
129
|
default: F(() => [
|
130
|
-
|
130
|
+
I(y(Fe), {
|
131
131
|
label: "Edit Column",
|
132
132
|
"left-icon": "setting",
|
133
133
|
variant: "secondary"
|
@@ -189,9 +189,9 @@ const ll = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, al = {
|
|
189
189
|
"hover:cell": [],
|
190
190
|
"columns-changed": []
|
191
191
|
},
|
192
|
-
setup(j, { emit:
|
192
|
+
setup(j, { emit: X }) {
|
193
193
|
var re, ie, ne, de, ve, ce, fe, pe, me;
|
194
|
-
const v = j, O =
|
194
|
+
const v = j, O = X, c = L(() => {
|
195
195
|
var l;
|
196
196
|
return (l = v.options) == null ? void 0 : l.pagination;
|
197
197
|
}), f = L(() => {
|
@@ -200,7 +200,7 @@ const ll = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, al = {
|
|
200
200
|
}), J = P(), S = L(() => {
|
201
201
|
var l;
|
202
202
|
return (l = v.options) == null ? void 0 : l.tableOptions;
|
203
|
-
}),
|
203
|
+
}), H = L(() => {
|
204
204
|
var l;
|
205
205
|
return {
|
206
206
|
...S.value,
|
@@ -218,9 +218,9 @@ const ll = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, al = {
|
|
218
218
|
}), m = L(() => {
|
219
219
|
var l;
|
220
220
|
return ((l = c.value) == null ? void 0 : l.last_page) === 1;
|
221
|
-
}), x = P(!1), V = P(v.filter[(ie = (re = a.value) == null ? void 0 : re.tabs) == null ? void 0 : ie.key]),
|
221
|
+
}), x = P(!1), V = P(v.filter[(ie = (re = a.value) == null ? void 0 : re.tabs) == null ? void 0 : ie.key]), M = P(v.filter.page), C = P(
|
222
222
|
(de = (ne = a.value) == null ? void 0 : ne.per_page) != null && de.key ? v.filter[(ce = (ve = a.value) == null ? void 0 : ve.per_page) == null ? void 0 : ce.key] : v.filter.per_page
|
223
|
-
),
|
223
|
+
), W = ((me = v.filter[(pe = (fe = a.value) == null ? void 0 : fe.search) == null ? void 0 : pe.key]) == null ? void 0 : me.trim()) ?? "", z = P(W ? W.split(",") : []), oe = P(!1), je = L(
|
224
224
|
() => {
|
225
225
|
var l, e;
|
226
226
|
return (e = (l = v.options) == null ? void 0 : l.perPageOptions) == null ? void 0 : e.map(
|
@@ -285,43 +285,43 @@ const ll = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, al = {
|
|
285
285
|
const l = {};
|
286
286
|
a.value ? _.page = 1 : _.cursor = "", (o = (e = a.value) == null ? void 0 : e.per_page) != null && o.key ? l[(r = (u = a.value) == null ? void 0 : u.per_page) == null ? void 0 : r.key] = C.value : l.per_page = C.value, (s = (d = a.value) == null ? void 0 : d.tabs) != null && s.key ? l[(b = (g = a.value) == null ? void 0 : g.tabs) == null ? void 0 : b.key] = V.value : l.tabs = V.value, (w = (E = a.value) == null ? void 0 : E.columnEdit) != null && w.key && (l[(T = (K = a.value) == null ? void 0 : K.columnEdit) == null ? void 0 : T.key] = t.value[(Q = (q = a.value) == null ? void 0 : q.columnEdit) == null ? void 0 : Q.key]), t.value = l, A();
|
287
287
|
}, Ke = () => {
|
288
|
-
A(null,
|
289
|
-
},
|
288
|
+
A(null, M.value);
|
289
|
+
}, Ue = () => {
|
290
290
|
v.id && $e(v.id, JSON.stringify(t.value));
|
291
|
-
},
|
291
|
+
}, Ye = () => v.id ? se(v.id) : null, A = (l = null, e = !1, o = "") => {
|
292
292
|
var u, r, d;
|
293
|
-
c.value && !e && (
|
293
|
+
c.value && !e && (M.value = 1), c.value ? t.value.page = M.value : t.value.cursor = o, (u = a.value) != null && u.per_page ? t.value[a.value.per_page.key] = C.value : t.value.per_page = C.value, (r = a.value) != null && r.tabs && (t.value[a.value.tabs.key] = V.value), (d = a.value) != null && d.search && (t.value[a.value.search.key] = z.value.join()), l && (x.value = !1, t.value = { ...t.value, ...l }, Object.keys(t.value).forEach((s) => {
|
294
294
|
Array.isArray(t.value[s]) && t.value[s].length === 0 && delete t.value[s];
|
295
|
-
})),
|
295
|
+
})), Ue(), O("update:filter", t.value);
|
296
296
|
}, Be = (l, e) => {
|
297
297
|
(e === a.value.tabs.key || e === "tabs") && (V.value = ""), A(l), O("filter-removed", e);
|
298
|
-
},
|
298
|
+
}, Me = (l) => {
|
299
299
|
let e = [];
|
300
300
|
return l.forEach((o) => {
|
301
301
|
e.push(o.key);
|
302
302
|
}), e;
|
303
|
-
},
|
303
|
+
}, Ne = L(() => {
|
304
304
|
if (t.value) {
|
305
305
|
let l = [];
|
306
306
|
return Object.keys(t.value).forEach((e) => {
|
307
|
-
var d, s, g, b, E, w, K, T, q, Q,
|
307
|
+
var d, s, g, b, E, w, K, T, q, Q, G;
|
308
308
|
let o = (s = (d = a.value) == null ? void 0 : d.tabs) == null ? void 0 : s.key;
|
309
309
|
const u = (b = (g = a.value) == null ? void 0 : g.search) == null ? void 0 : b.key, r = ((w = (E = a.value) == null ? void 0 : E.per_page) == null ? void 0 : w.key) ?? "per_page";
|
310
310
|
if ((K = a.value.form) == null || K.find((k) => {
|
311
311
|
k.name === o && (o = "");
|
312
312
|
}), e !== "page" && e !== "cursor" && e !== r && e !== o && e !== u) {
|
313
|
-
let k = null, i = (T = a.value.form) == null ? void 0 : T.find((
|
314
|
-
if (typeof
|
315
|
-
let
|
316
|
-
return
|
317
|
-
R.key === e && (
|
318
|
-
}),
|
313
|
+
let k = null, i = (T = a.value.form) == null ? void 0 : T.find((N) => {
|
314
|
+
if (typeof N.name == "object") {
|
315
|
+
let U = !1;
|
316
|
+
return N.name.forEach((R) => {
|
317
|
+
R.key === e && (U = !0, k = Me(N.name));
|
318
|
+
}), U;
|
319
319
|
} else
|
320
|
-
return
|
320
|
+
return N.name === e;
|
321
321
|
}), D = "";
|
322
322
|
if (i && t.value[e]) {
|
323
|
-
if (typeof i.name == "object" ? (q = i.name) == null || q.forEach((
|
324
|
-
D && (D += " - "), D += t.value[
|
323
|
+
if (typeof i.name == "object" ? (q = i.name) == null || q.forEach((U) => {
|
324
|
+
D && (D += " - "), D += t.value[U.key];
|
325
325
|
}) : D = t.value[e], i.props.options && (D = (i.props.multiple ? t.value[e] : [t.value[e]]).map(
|
326
326
|
(R) => {
|
327
327
|
var ye;
|
@@ -329,12 +329,12 @@ const ll = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, al = {
|
|
329
329
|
}
|
330
330
|
).join(", ")), i.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, ",")), i.type === "DatePicker")
|
331
331
|
if (((Q = i == null ? void 0 : i.props) == null ? void 0 : Q.type) === "range" && i.name && i.name[1]) {
|
332
|
-
const
|
333
|
-
D =
|
332
|
+
const U = le(t.value[i.name[0].key]).format("MM/DD/YYYY"), R = le(t.value[i.name[1].key]).format("MM/DD/YYYY");
|
333
|
+
D = U === R ? U : U + " - " + R;
|
334
334
|
} else D = le(t.value[i.name]).format("MM/DD/YYYY");
|
335
|
-
let
|
336
|
-
i && i.name && typeof i.name == "object" && l.find((R) => R.name === k[0]) && (
|
337
|
-
label:
|
335
|
+
let N = `${(G = i == null ? void 0 : i.props) == null ? void 0 : G.label} : ${D}`;
|
336
|
+
i && i.name && typeof i.name == "object" && l.find((R) => R.name === k[0]) && (N = ""), l.push({
|
337
|
+
label: N,
|
338
338
|
name: e,
|
339
339
|
multiNames: k
|
340
340
|
});
|
@@ -346,7 +346,7 @@ const ll = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, al = {
|
|
346
346
|
}), ue = (l) => {
|
347
347
|
var e, o, u, r, d, s;
|
348
348
|
return ((s = (d = (r = (u = t.value) == null ? void 0 : u[(o = (e = a.value) == null ? void 0 : e.columnEdit) == null ? void 0 : o.key]) == null ? void 0 : r.active) == null ? void 0 : d.find((g) => g.key === l)) == null ? void 0 : s.isActive) ?? !0;
|
349
|
-
},
|
349
|
+
}, Ie = ({ fixedHeaders: l, activeHeaders: e, isOnMount: o }) => {
|
350
350
|
var u, r, d, s, g, b, E, w;
|
351
351
|
if (t.value[(r = (u = a.value) == null ? void 0 : u.columnEdit) == null ? void 0 : r.key] || (t.value[(s = (d = a.value) == null ? void 0 : d.columnEdit) == null ? void 0 : s.key] = {}), t.value[(b = (g = a.value) == null ? void 0 : g.columnEdit) == null ? void 0 : b.key].fixed = l, t.value[(w = (E = a.value) == null ? void 0 : E.columnEdit) == null ? void 0 : w.key].active = e, J.value = [...l, ...e], !o) {
|
352
352
|
const K = el(l, e);
|
@@ -376,8 +376,8 @@ const ll = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, al = {
|
|
376
376
|
), Ve(() => {
|
377
377
|
var e, o, u, r, d;
|
378
378
|
Te();
|
379
|
-
const l =
|
380
|
-
l && (t.value = JSON.parse(l), V.value = V.value || ((e = t.value) == null ? void 0 : e.tabs) || ((r = t.value) == null ? void 0 : r[(u = (o = a.value) == null ? void 0 : o.tabs) == null ? void 0 : u.key]),
|
379
|
+
const l = Ye();
|
380
|
+
l && (t.value = JSON.parse(l), V.value = V.value || ((e = t.value) == null ? void 0 : e.tabs) || ((r = t.value) == null ? void 0 : r[(u = (o = a.value) == null ? void 0 : o.tabs) == null ? void 0 : u.key]), M.value = ((d = t.value) == null ? void 0 : d.page) || 1, A(null, !0, t.value.cursor));
|
381
381
|
}), (l, e) => {
|
382
382
|
var o, u, r, d;
|
383
383
|
return n(), $("div", il, [
|
@@ -385,7 +385,7 @@ const ll = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, al = {
|
|
385
385
|
key: 0,
|
386
386
|
selected: j.selected,
|
387
387
|
"row-key": j.rowKey,
|
388
|
-
options:
|
388
|
+
options: H.value,
|
389
389
|
"is-loading": j.isLoading,
|
390
390
|
"loading-rows": C.value,
|
391
391
|
"row-class": j.rowClass,
|
@@ -397,16 +397,16 @@ const ll = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, al = {
|
|
397
397
|
"onHover:cell": e[9] || (e[9] = (s) => l.$emit("hover:cell", s))
|
398
398
|
}, Re({
|
399
399
|
after: F(() => [
|
400
|
-
|
400
|
+
Y(l.$slots, "after")
|
401
401
|
]),
|
402
402
|
empty: F(() => [
|
403
|
-
|
403
|
+
Y(l.$slots, "empty")
|
404
404
|
]),
|
405
405
|
"table-header": F((s) => [
|
406
|
-
|
406
|
+
Y(l.$slots, "table-header", ke(he(s)))
|
407
407
|
]),
|
408
408
|
"table-body": F((s) => [
|
409
|
-
|
409
|
+
Y(l.$slots, "table-body", ke(he(s)))
|
410
410
|
]),
|
411
411
|
_: 2
|
412
412
|
}, [
|
@@ -415,10 +415,10 @@ const ll = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, al = {
|
|
415
415
|
fn: F(() => {
|
416
416
|
var s, g, b, E;
|
417
417
|
return [
|
418
|
-
|
418
|
+
Y(l.$slots, "before"),
|
419
419
|
(s = a.value) != null && s.search || (g = a.value) != null && g.form || (b = a.value) != null && b.tabs ? (n(), $("div", nl, [
|
420
420
|
De.value ? (n(), $("div", dl, [
|
421
|
-
|
421
|
+
Y(l.$slots, "bulk-actions", { selectedRows: j.selected })
|
422
422
|
])) : (n(), $("div", vl, [
|
423
423
|
(E = a.value) != null && E.tabs ? (n(), B(y(_e), {
|
424
424
|
key: 0,
|
@@ -432,8 +432,8 @@ const ll = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, al = {
|
|
432
432
|
variant: "pills"
|
433
433
|
}, null, 8, ["modelValue", "is-disabled", "tabs"])) : h("", !0)
|
434
434
|
])),
|
435
|
-
|
436
|
-
var w, K, T, q, Q,
|
435
|
+
Y(l.$slots, "filter-options", {}, () => {
|
436
|
+
var w, K, T, q, Q, G;
|
437
437
|
return [
|
438
438
|
(w = a.value) != null && w.search || (K = a.value) != null && K.form || (T = a.value) != null && T.columnEdit ? (n(), $("div", {
|
439
439
|
key: 0,
|
@@ -442,7 +442,7 @@ const ll = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, al = {
|
|
442
442
|
a.value ? oe.value ? "md:w-fit w-full" : "" : "w-full justify-end"
|
443
443
|
])
|
444
444
|
}, [
|
445
|
-
(q = a.value) != null && q.search ? (n(), B(y(
|
445
|
+
(q = a.value) != null && q.search ? (n(), B(y(Ze), {
|
446
446
|
key: 0,
|
447
447
|
"is-search-only": !a.value.tabs || a.value.isSearchOnly,
|
448
448
|
onAddQuery: Le,
|
@@ -457,7 +457,7 @@ const ll = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, al = {
|
|
457
457
|
"is-attach-to-body": ""
|
458
458
|
}, {
|
459
459
|
menu: F(() => [
|
460
|
-
x.value ? (n(), B(y(
|
460
|
+
x.value ? (n(), B(y(Ge), {
|
461
461
|
key: 0,
|
462
462
|
id: j.id,
|
463
463
|
"json-form": a.value.form ?? [],
|
@@ -468,19 +468,19 @@ const ll = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, al = {
|
|
468
468
|
onFilterFieldsChanged: e[4] || (e[4] = (k) => O("filter-fields-changed", k)),
|
469
469
|
onCancel: e[5] || (e[5] = (k) => x.value = !1)
|
470
470
|
}, {
|
471
|
-
default: F(({ errors: k, values: i, jsonForm: D, updateForm:
|
472
|
-
|
471
|
+
default: F(({ errors: k, values: i, jsonForm: D, updateForm: N }) => [
|
472
|
+
Y(l.$slots, "custom-filter-form", {
|
473
473
|
errors: k,
|
474
474
|
values: i,
|
475
475
|
jsonForm: D,
|
476
|
-
updateFilter:
|
476
|
+
updateFilter: N
|
477
477
|
})
|
478
478
|
]),
|
479
479
|
_: 3
|
480
480
|
}, 8, ["id", "json-form", "grid", "values", "actions"])) : h("", !0)
|
481
481
|
]),
|
482
482
|
default: F(() => [
|
483
|
-
|
483
|
+
I(y(Fe), {
|
484
484
|
"is-active": x.value,
|
485
485
|
variant: "secondary",
|
486
486
|
"left-icon": "filter"
|
@@ -491,16 +491,16 @@ const ll = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, al = {
|
|
491
491
|
a.value.columnEdit ? (n(), B(rl, {
|
492
492
|
key: 2,
|
493
493
|
options: t.value.columnEdit,
|
494
|
-
headers: ((
|
494
|
+
headers: ((G = S.value) == null ? void 0 : G.headers) || [],
|
495
495
|
"local-key": a.value.columnEdit.localStorageKey,
|
496
|
-
onUpdateOrder:
|
496
|
+
onUpdateOrder: Ie
|
497
497
|
}, null, 8, ["options", "headers", "local-key"])) : h("", !0)
|
498
498
|
], 2)) : h("", !0)
|
499
499
|
];
|
500
500
|
})
|
501
501
|
])) : h("", !0),
|
502
|
-
|
503
|
-
filters:
|
502
|
+
I(y(He), {
|
503
|
+
filters: Ne.value,
|
504
504
|
queries: z.value,
|
505
505
|
class: "border-t border-oc-gray-200",
|
506
506
|
onRemoveQuery: Pe,
|
@@ -514,23 +514,23 @@ const ll = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, al = {
|
|
514
514
|
ae((d = S.value) == null ? void 0 : d.headers, (s, g) => ({
|
515
515
|
name: s.key,
|
516
516
|
fn: F(({ data: b, item: E }) => [
|
517
|
-
|
517
|
+
Y(l.$slots, s.key, {
|
518
518
|
data: b,
|
519
519
|
item: E
|
520
520
|
})
|
521
521
|
])
|
522
522
|
}))
|
523
523
|
]), 1032, ["selected", "row-key", "options", "is-loading", "loading-rows", "row-class", "row-link", "is-sticky", "is-borderless"])) : h("", !0),
|
524
|
-
|
524
|
+
Y(l.$slots, "before-pagination"),
|
525
525
|
c.value || f.value ? (n(), $("div", {
|
526
526
|
key: 1,
|
527
527
|
class: te(["flex gap-3 items-center", c.value && c.value.last_page === 1 ? "justify-end" : ""])
|
528
528
|
}, [
|
529
|
-
c.value && !m.value ? (n(), B(y(
|
529
|
+
c.value && !m.value ? (n(), B(y(We), {
|
530
530
|
key: 0,
|
531
|
-
modelValue:
|
531
|
+
modelValue: M.value,
|
532
532
|
"onUpdate:modelValue": [
|
533
|
-
e[10] || (e[10] = (s) =>
|
533
|
+
e[10] || (e[10] = (s) => M.value = s),
|
534
534
|
Ke
|
535
535
|
],
|
536
536
|
class: "justify-center",
|
@@ -539,18 +539,18 @@ const ll = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, al = {
|
|
539
539
|
"total-visible": "5"
|
540
540
|
}, null, 8, ["modelValue", "max-page", "strategy"])) : h("", !0),
|
541
541
|
f.value ? (n(), $("div", cl, [
|
542
|
-
|
542
|
+
I(y(xe), {
|
543
543
|
disabled: !f.value.prev,
|
544
544
|
onClick: e[11] || (e[11] = (s) => f.value.prev ? A(null, !1, f.value.prev) : null)
|
545
545
|
}, null, 8, ["disabled"]),
|
546
|
-
|
546
|
+
I(y(xe), {
|
547
547
|
disabled: !f.value.next,
|
548
548
|
"is-next": "",
|
549
549
|
onClick: e[12] || (e[12] = (s) => f.value.next ? A(null, !1, f.value.next) : null)
|
550
550
|
}, null, 8, ["disabled"])
|
551
551
|
])) : h("", !0),
|
552
552
|
p.value ? h("", !0) : (n(), $("div", fl, [
|
553
|
-
|
553
|
+
I(y(Xe), {
|
554
554
|
modelValue: C.value,
|
555
555
|
"onUpdate:modelValue": [
|
556
556
|
e[13] || (e[13] = (s) => C.value = s),
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { ref as w, openBlock as n, createBlock as y, unref as l, withCtx as r, createElementBlock as b, Fragment as
|
2
|
-
import {
|
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-CsbHjN84.js";
|
3
3
|
import { _ as g } from "./OcIcon-CJgBICxh.js";
|
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" },
|
4
|
+
const M = ["onMouseleave", "onMouseover", "onClick"], L = { class: "flex justify-evenly w-full" }, N = { class: "flex w-full" }, U = { class: "ml-4 flex w-full" }, E = { class: "flex items-center flex-wrap w-full" }, H = ["href"], O = { class: "min-w-[120px]" }, W = { class: "truncate w-[200px]" }, j = { class: "flex items-center ml-4" }, z = { class: "flex w-full" }, q = {
|
5
5
|
__name: "OcDraggableList",
|
6
6
|
props: {
|
7
7
|
modelValue: Array,
|
@@ -34,17 +34,17 @@ const M = ["onMouseleave", "onMouseover", "onClick"], L = { class: "flex justify
|
|
34
34
|
detectMove: null
|
35
35
|
},
|
36
36
|
setup(a, { emit: p }) {
|
37
|
-
const V = p, t = w([]), v = w([]),
|
37
|
+
const V = p, t = w([]), v = w([]), K = (i, d) => {
|
38
38
|
V("update:modelValue", i, d);
|
39
39
|
};
|
40
|
-
return (i, d) => (n(), y(l(
|
40
|
+
return (i, d) => (n(), y(l($), {
|
41
41
|
"model-value": a.modelValue,
|
42
42
|
class: "grid gap-3",
|
43
|
-
"onUpdate:modelValue": d[0] || (d[0] = (c, e) =>
|
43
|
+
"onUpdate:modelValue": d[0] || (d[0] = (c, e) => K(c, e)),
|
44
44
|
onDetectMove: d[1] || (d[1] = (c) => i.$emit("detectMove", c))
|
45
45
|
}, {
|
46
46
|
default: r(({ list: c }) => [
|
47
|
-
(n(!0), b(
|
47
|
+
(n(!0), b(C, null, D(c, (e, x) => (n(), b("div", {
|
48
48
|
key: e.id,
|
49
49
|
class: s(["group text-oc-text-500 p-4 flex flex-col w-full rounded border border-gray-200 cursor-pointer", [
|
50
50
|
e[a.childrenKey] ? "hover:shadow bg-oc-gray-50" : a.isChildren && !t.value[e.id] ? "bg-oc-accent-1-50" : a.classes ? a.classes : "hover:shadow bg-oc-accent-1-50 hover:bg-oc-gray-50",
|
@@ -101,7 +101,7 @@ const M = ["onMouseleave", "onMouseover", "onClick"], L = { class: "flex justify
|
|
101
101
|
"popper-class": "bg-oc-bg-light text-oc-text-500 p-4 rounded"
|
102
102
|
}, {
|
103
103
|
popper: r(() => [
|
104
|
-
o("div",
|
104
|
+
o("div", O, k(e[a.linkKey]), 1)
|
105
105
|
]),
|
106
106
|
default: r(() => [
|
107
107
|
f(l(g), {
|
@@ -113,12 +113,12 @@ const M = ["onMouseleave", "onMouseover", "onClick"], L = { class: "flex justify
|
|
113
113
|
]),
|
114
114
|
_: 2
|
115
115
|
}, 1024),
|
116
|
-
o("span",
|
117
|
-
], 8,
|
116
|
+
o("span", W, k(e[a.linkKey]), 1)
|
117
|
+
], 8, H)) : m("", !0)
|
118
118
|
])
|
119
119
|
])
|
120
120
|
]),
|
121
|
-
o("div",
|
121
|
+
o("div", j, [
|
122
122
|
u(i.$slots, "before-action", { item: e }),
|
123
123
|
u(i.$slots, "action", { item: e }, () => [
|
124
124
|
f(l(B), {
|
@@ -148,7 +148,7 @@ const M = ["onMouseleave", "onMouseover", "onClick"], L = { class: "flex justify
|
|
148
148
|
])
|
149
149
|
])
|
150
150
|
]),
|
151
|
-
o("div",
|
151
|
+
o("div", z, [
|
152
152
|
u(i.$slots, "content", {
|
153
153
|
item: e,
|
154
154
|
index: x
|
@@ -161,5 +161,5 @@ const M = ["onMouseleave", "onMouseover", "onClick"], L = { class: "flex justify
|
|
161
161
|
}
|
162
162
|
};
|
163
163
|
export {
|
164
|
-
|
164
|
+
q as default
|
165
165
|
};
|
@@ -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 {
|
2
|
+
import { ay as U, e as J, B as b } from "./index-CsbHjN84.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-
|
2
|
+
import { w as $, B as m } from "./index-CsbHjN84.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-
|
2
|
+
import { e as O, B as f } from "./index-CsbHjN84.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,
|
2
|
+
import { N as y, at as i } from "./index-CsbHjN84.js";
|
3
3
|
const N = { class: "flex gap-1 items-center normal-case flex-wrap" }, R = {
|
4
4
|
__name: "OcFilterSearchFor",
|
5
5
|
props: {
|
@@ -1,7 +1,7 @@
|
|
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 {
|
3
|
-
import x from "./OcCropper-
|
4
|
-
const
|
2
|
+
import { aA as d } from "./index-CsbHjN84.js";
|
3
|
+
import x from "./OcCropper-BIQBBDMg.js";
|
4
|
+
const S = {
|
5
5
|
__name: "OcModalCropper",
|
6
6
|
props: {
|
7
7
|
inputOptions: Array,
|
@@ -42,5 +42,5 @@ const C = {
|
|
42
42
|
}
|
43
43
|
};
|
44
44
|
export {
|
45
|
-
|
45
|
+
S as default
|
46
46
|
};
|
@@ -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 {
|
2
|
+
import { ay as S, aI as h, e as D } from "./index-CsbHjN84.js";
|
3
3
|
import c from "dayjs";
|
4
4
|
const w = {
|
5
5
|
__name: "OcTimePicker",
|
@@ -74,7 +74,7 @@ const w = {
|
|
74
74
|
}, null, 8, ["modelValue"])) : v("", !0)
|
75
75
|
]),
|
76
76
|
default: p(() => [
|
77
|
-
y(o(
|
77
|
+
y(o(D), {
|
78
78
|
icon: e.icon,
|
79
79
|
"error-message": e.errorMessage,
|
80
80
|
label: e.label,
|
@@ -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 {
|
2
|
+
import { at as _, B as w } from "./index-CsbHjN84.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 }, $ = {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { openBlock as a, createElementBlock 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-CsbHjN84.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: {
|