@orchidui/core 1.8.1-129 → 1.8.1-130
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 +62 -56
- 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-jDd1UsyX.js → OcAccountSetupProgress-zCG-DdjY.js} +1 -1
- package/dist/{OcComplexCalendar-BaoIYMnJ.js → OcComplexCalendar-C6koM5tD.js} +1 -1
- package/dist/{OcComplexDatePicker-DJ0Ct4F8.js → OcComplexDatePicker-BShwu8Lo.js} +1 -1
- package/dist/{OcCropper-D0-Ud4Dn.js → OcCropper-CV7rNbNa.js} +1 -1
- package/dist/{OcDataTable-CVtLdwmM.js → OcDataTable-CVpVKWnH.js} +96 -96
- package/dist/{OcDraggableList-DRSZjKR2.js → OcDraggableList-BUUu6bu2.js} +1 -1
- package/dist/{OcEmojiPicker-BRNkuGDF.js → OcEmojiPicker-ffb1UkOi.js} +1 -1
- package/dist/{OcFilterForm-BuUihX79.js → OcFilterForm-D_Yfxq9s.js} +1 -1
- package/dist/{OcFilterSearch-DjVS7Hfo.js → OcFilterSearch-DAOnCwDT.js} +1 -1
- package/dist/{OcFilterSearchFor-oo9Xji4I.js → OcFilterSearchFor-exHdYEaz.js} +1 -1
- package/dist/{OcModalCropper-CV2FJ5te.js → OcModalCropper-mUIjId6c.js} +2 -2
- package/dist/{OcTimePicker-CJ9mBAxz.js → OcTimePicker-BnHQuIIE.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-widCLtfc.js → SubPlanCard-CQhm3Ffe.js} +1 -1
- package/dist/{ThumbnailSection-GklOkizl.js → ThumbnailSection-C4_YnAkH.js} +1 -1
- package/dist/{ThumbnailTheme-CRjhKPMK.js → ThumbnailTheme-BiofGRB1.js} +1 -1
- package/dist/{index-CbMhrjCQ.js → index-sshOSmGz.js} +8 -8
- package/dist/index.js +1 -1
- package/package.json +1 -1
@@ -1,5 +1,5 @@
|
|
1
|
-
import { ref as $, onMounted as Ue, createBlock as j, openBlock as r, unref as
|
2
|
-
import { az as Ke, B as Ie, C as rl, K as nl, Z as dl, aK as vl, aL as cl, aM as ml, H as fl, I as Le, j as pl } from "./index-
|
1
|
+
import { ref as $, onMounted as Ue, createBlock as j, openBlock as r, unref as i, withCtx as w, createVNode as A, createElementVNode as Q, createElementBlock as h, createCommentVNode as y, mergeProps as Ee, Fragment as re, renderList as de, normalizeClass as ve, toDisplayString as Ce, computed as S, watch as ne, renderSlot as P, createSlots as il, normalizeProps as Pe, guardReactiveProps as je } from "vue";
|
2
|
+
import { az as Ke, B as Ie, C as rl, K as nl, Z as dl, aK as vl, aL as cl, aM as ml, H as fl, I as Le, j as pl } from "./index-sshOSmGz.js";
|
3
3
|
import { useDataTable as yl } from "./DataTable/useDataTable.js";
|
4
4
|
import { VueDraggableNext as Ae } from "vue-draggable-next";
|
5
5
|
import { getFromLocalStorage as Te, formatHeadersFromLocalStorage as qe, formatHeadersToLocalStorage as gl, setInLocalStorage as bl } from "./DataTable/utils/editColumnsUtils.js";
|
@@ -34,8 +34,8 @@ const Sl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, $l = {
|
|
34
34
|
"onMoved",
|
35
35
|
"update-order"
|
36
36
|
],
|
37
|
-
setup(D, { emit:
|
38
|
-
const
|
37
|
+
setup(D, { emit: se }) {
|
38
|
+
const oe = se, s = D, g = $([]), d = $([]), K = $(!1), O = {
|
39
39
|
handle: ".drag-el",
|
40
40
|
filter: ".is-disabled",
|
41
41
|
group: "headers",
|
@@ -44,38 +44,38 @@ const Sl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, $l = {
|
|
44
44
|
move: (L) => L.to.dataset.activeHeaders ? !0 : !!L.draggedContext.futureIndex,
|
45
45
|
"onUpdate:modelValue": () => I()
|
46
46
|
}, I = (L = !1) => {
|
47
|
-
d.value = d.value.map((
|
48
|
-
...
|
47
|
+
d.value = d.value.map((u) => ({
|
48
|
+
...u,
|
49
49
|
isActive: !0
|
50
|
-
})),
|
50
|
+
})), oe("update-order", {
|
51
51
|
fixedHeaders: d.value,
|
52
52
|
activeHeaders: g.value,
|
53
53
|
isOnMount: L
|
54
54
|
});
|
55
55
|
};
|
56
56
|
return Ue(() => {
|
57
|
-
const L = Te(
|
58
|
-
d.value =
|
57
|
+
const L = Te(s.localKey), { fixed: u, active: v } = qe(L, s.headers, s.localKey);
|
58
|
+
d.value = u || s.headers.slice(0, 1), g.value = v || s.headers.slice(1).map((E) => {
|
59
59
|
var ee, le, ae;
|
60
60
|
return {
|
61
61
|
...E,
|
62
|
-
isActive: ((ae = (le = (ee =
|
62
|
+
isActive: ((ae = (le = (ee = s.options) == null ? void 0 : ee.active) == null ? void 0 : le.find((ue) => ue.key === E.key)) == null ? void 0 : ae.isActive) ?? !0
|
63
63
|
};
|
64
64
|
}), I(!0);
|
65
|
-
}), (L,
|
65
|
+
}), (L, u) => (r(), j(i(Ke), {
|
66
66
|
modelValue: K.value,
|
67
|
-
"onUpdate:modelValue":
|
67
|
+
"onUpdate:modelValue": u[3] || (u[3] = (v) => K.value = v),
|
68
68
|
class: "h-[36px]",
|
69
69
|
"is-attach-to-body": ""
|
70
70
|
}, {
|
71
71
|
menu: w(() => [
|
72
72
|
Q("div", Sl, [
|
73
73
|
d.value.length ? (r(), h("div", $l, [
|
74
|
-
|
75
|
-
A(
|
74
|
+
u[4] || (u[4] = Q("span", { class: "text-oc-text-400 font-medium" }, "Fixed columns", -1)),
|
75
|
+
A(i(Ae), Ee({
|
76
76
|
key: "key",
|
77
77
|
modelValue: d.value,
|
78
|
-
"onUpdate:modelValue":
|
78
|
+
"onUpdate:modelValue": u[0] || (u[0] = (v) => d.value = v)
|
79
79
|
}, O), {
|
80
80
|
default: w(() => [
|
81
81
|
(r(!0), h(re, null, de(d.value, (v, E) => (r(), h("div", {
|
@@ -83,7 +83,7 @@ const Sl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, $l = {
|
|
83
83
|
class: ve(["flex items-center justify-between h-[26px]", E ? "" : "is-disabled"])
|
84
84
|
}, [
|
85
85
|
Q("span", null, Ce(v.label), 1),
|
86
|
-
E ? (r(), j(
|
86
|
+
E ? (r(), j(i(Be), {
|
87
87
|
key: 0,
|
88
88
|
width: "18",
|
89
89
|
height: "18",
|
@@ -96,11 +96,11 @@ const Sl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, $l = {
|
|
96
96
|
}, 16, ["modelValue"])
|
97
97
|
])) : y("", !0),
|
98
98
|
Q("div", Ol, [
|
99
|
-
|
100
|
-
A(
|
99
|
+
u[5] || (u[5] = Q("span", { class: "text-oc-text-400 font-medium" }, "Active columns", -1)),
|
100
|
+
A(i(Ae), Ee({
|
101
101
|
key: "key",
|
102
102
|
modelValue: g.value,
|
103
|
-
"onUpdate:modelValue":
|
103
|
+
"onUpdate:modelValue": u[2] || (u[2] = (v) => g.value = v)
|
104
104
|
}, O, { "data-active-headers": "true" }), {
|
105
105
|
default: w(() => [
|
106
106
|
(r(!0), h(re, null, de(g.value, (v) => (r(), h(re, {
|
@@ -108,17 +108,17 @@ const Sl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, $l = {
|
|
108
108
|
}, [
|
109
109
|
v.key !== "actions" ? (r(), h("div", Vl, [
|
110
110
|
Q("div", Fl, [
|
111
|
-
A(
|
111
|
+
A(i(rl), {
|
112
112
|
modelValue: v.isActive,
|
113
113
|
"onUpdate:modelValue": [
|
114
114
|
(E) => v.isActive = E,
|
115
|
-
|
115
|
+
u[1] || (u[1] = (E) => I())
|
116
116
|
],
|
117
117
|
class: "!w-fit"
|
118
118
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
119
119
|
Q("div", Dl, Ce(v.label), 1)
|
120
120
|
]),
|
121
|
-
g.value.length > 1 ? (r(), j(
|
121
|
+
g.value.length > 1 ? (r(), j(i(Be), {
|
122
122
|
key: 0,
|
123
123
|
width: "18",
|
124
124
|
height: "18",
|
@@ -134,7 +134,7 @@ const Sl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, $l = {
|
|
134
134
|
])
|
135
135
|
]),
|
136
136
|
default: w(() => [
|
137
|
-
A(
|
137
|
+
A(i(Ie), {
|
138
138
|
label: "Edit Column",
|
139
139
|
"left-icon": "setting",
|
140
140
|
variant: "secondary"
|
@@ -206,44 +206,44 @@ const Sl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, $l = {
|
|
206
206
|
"on-table-ready": [],
|
207
207
|
"update:sort-by": []
|
208
208
|
},
|
209
|
-
setup(D, { expose:
|
209
|
+
setup(D, { expose: se, emit: oe }) {
|
210
210
|
var ye, ge, be, ke, he, xe, we, Se, $e, Oe, Ve, Fe, De;
|
211
|
-
const
|
211
|
+
const s = D, g = oe, d = S(() => {
|
212
212
|
var e;
|
213
|
-
return (e =
|
213
|
+
return (e = s.options) == null ? void 0 : e.cursor;
|
214
214
|
}), K = $(), O = S(() => {
|
215
215
|
var e;
|
216
|
-
return (e =
|
217
|
-
}), I = S(() =>
|
216
|
+
return (e = s.options) == null ? void 0 : e.tableOptions;
|
217
|
+
}), I = S(() => s.localDb !== void 0), {
|
218
218
|
localData: L,
|
219
|
-
paginationData:
|
219
|
+
paginationData: u,
|
220
220
|
isLoading: v,
|
221
221
|
// Methods
|
222
222
|
bulkPutLocalData: E,
|
223
223
|
bulkDeleteLocalData: ee,
|
224
224
|
getLocalDataUpdatedAt: le,
|
225
225
|
getLocalDataIds: ae,
|
226
|
-
syncLocalData:
|
226
|
+
syncLocalData: ue,
|
227
227
|
sortByData: N,
|
228
228
|
// toggleSort,
|
229
229
|
// Setters
|
230
230
|
setFilter: Qe,
|
231
231
|
setSortBy: Re
|
232
232
|
} = yl({
|
233
|
-
name: (ye =
|
234
|
-
|
235
|
-
filterable_fields: (be =
|
236
|
-
sortable_fields: (ke =
|
233
|
+
name: ((ye = s.localDb) == null ? void 0 : ye.table_name) ?? null,
|
234
|
+
db: ((ge = s.localDb) == null ? void 0 : ge.db) ?? null,
|
235
|
+
filterable_fields: (be = s.options) == null ? void 0 : be.filterable_fields,
|
236
|
+
sortable_fields: (ke = s.options) == null ? void 0 : ke.sortable_fields
|
237
237
|
});
|
238
238
|
ne(() => {
|
239
239
|
var e;
|
240
|
-
return (e =
|
240
|
+
return (e = s.options) == null ? void 0 : e.pagination;
|
241
241
|
}, (e) => {
|
242
|
-
I.value || (
|
243
|
-
}, { deep: !0, immediate: !0 }), I.value && (ne(() =>
|
244
|
-
|
245
|
-
}, { deep: !0, immediate: !0 }), ne(() =>
|
246
|
-
|
242
|
+
I.value || (u.value = e);
|
243
|
+
}, { deep: !0, immediate: !0 }), I.value && (ne(() => s.filter, () => {
|
244
|
+
s.filter && Qe(s.filter);
|
245
|
+
}, { deep: !0, immediate: !0 }), ne(() => s.sortBy, () => {
|
246
|
+
s.sortBy && Re(s.sortBy);
|
247
247
|
}, { deep: !0, immediate: !0 }));
|
248
248
|
const ce = S(() => {
|
249
249
|
var l;
|
@@ -257,35 +257,35 @@ const Sl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, $l = {
|
|
257
257
|
return I.value && (e.fields = L.value), e;
|
258
258
|
}), a = S(() => {
|
259
259
|
var e;
|
260
|
-
return (e =
|
260
|
+
return (e = s.options) == null ? void 0 : e.filterOptions;
|
261
261
|
}), ze = S(() => {
|
262
262
|
var e;
|
263
|
-
return (e =
|
263
|
+
return (e = s.options) == null ? void 0 : e.hidePerPageDropdown;
|
264
264
|
}), Ne = S(() => {
|
265
265
|
var e;
|
266
|
-
return ((e =
|
267
|
-
}), R = $(!1), B = $(
|
268
|
-
(Se = (we = a.value) == null ? void 0 : we.per_page) != null && Se.key ?
|
269
|
-
), me = ((De =
|
266
|
+
return ((e = u.value) == null ? void 0 : e.last_page) === 1;
|
267
|
+
}), R = $(!1), B = $(s.filter[(xe = (he = a.value) == null ? void 0 : he.tabs) == null ? void 0 : xe.key]), M = $(s.filter.page), z = $(
|
268
|
+
(Se = (we = a.value) == null ? void 0 : we.per_page) != null && Se.key ? s.filter[(Oe = ($e = a.value) == null ? void 0 : $e.per_page) == null ? void 0 : Oe.key] : s.filter.per_page
|
269
|
+
), me = ((De = s.filter[(Fe = (Ve = a.value) == null ? void 0 : Ve.search) == null ? void 0 : Fe.key]) == null ? void 0 : De.trim()) ?? "", U = $(me ? me.split(",") : []), fe = $(!1), Me = S(
|
270
270
|
() => {
|
271
271
|
var e;
|
272
|
-
return xl((e =
|
272
|
+
return xl((e = s.options) == null ? void 0 : e.perPageOptions);
|
273
273
|
}
|
274
|
-
), Ze = S(() => wl(Me.value,
|
274
|
+
), Ze = S(() => wl(Me.value, u.value)), Ge = S(() => {
|
275
275
|
var e;
|
276
|
-
return ((e =
|
276
|
+
return ((e = s.selected) == null ? void 0 : e.length) > 0;
|
277
277
|
}), He = (e) => {
|
278
|
-
!e.trim() || !
|
278
|
+
!e.trim() || !o.value.selectedSearchOption && U.value.includes(e) || (U.value = [e], V(), g("search-query-changed", e));
|
279
279
|
}, Je = (e) => {
|
280
280
|
U.value = U.value.filter((l) => l !== e), V();
|
281
|
-
}, Z =
|
282
|
-
!Z &&
|
283
|
-
const
|
281
|
+
}, Z = s.filter;
|
282
|
+
!Z && u.value ? Z.page = 1 : !Z && d && (Z.cursor = "");
|
283
|
+
const o = $(Z), We = S(() => kl(o.value, a.value)), Xe = (e) => {
|
284
284
|
var l, n, f, p, c, t;
|
285
|
-
return ((t = (c = (p = (f =
|
285
|
+
return ((t = (c = (p = (f = o.value) == null ? void 0 : f[(n = (l = a.value) == null ? void 0 : l.columnEdit) == null ? void 0 : n.key]) == null ? void 0 : p.active) == null ? void 0 : c.find((b) => b.key === e)) == null ? void 0 : t.isActive) ?? !0;
|
286
286
|
}, Ye = ({ fixedHeaders: e, activeHeaders: l, isOnMount: n }) => {
|
287
287
|
var f, p, c, t, b, x, C, F;
|
288
|
-
if (
|
288
|
+
if (o.value[(p = (f = a.value) == null ? void 0 : f.columnEdit) == null ? void 0 : p.key] || (o.value[(t = (c = a.value) == null ? void 0 : c.columnEdit) == null ? void 0 : t.key] = {}), o.value[(x = (b = a.value) == null ? void 0 : b.columnEdit) == null ? void 0 : x.key].fixed = e, o.value[(F = (C = a.value) == null ? void 0 : C.columnEdit) == null ? void 0 : F.key].active = l, K.value = [...e, ...l], !n) {
|
289
289
|
const T = gl(e, l);
|
290
290
|
bl(a.value.columnEdit.localStorageKey, T);
|
291
291
|
}
|
@@ -300,36 +300,36 @@ const Sl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, $l = {
|
|
300
300
|
O.value.headers,
|
301
301
|
a.value.columnEdit.localStorageKey
|
302
302
|
);
|
303
|
-
|
303
|
+
o.value[(f = (n = a.value) == null ? void 0 : n.columnEdit) == null ? void 0 : f.key].fixed = b, o.value[(c = (p = a.value) == null ? void 0 : p.columnEdit) == null ? void 0 : c.key].active = x, K.value = [...b, ...x];
|
304
304
|
}
|
305
305
|
}
|
306
306
|
}, el = (e) => {
|
307
|
-
|
307
|
+
o.value.selectedSearchOption = e;
|
308
308
|
}, ll = () => {
|
309
|
-
U.value = [], B.value = "",
|
309
|
+
U.value = [], B.value = "", o.value = hl(o.value, a.value, z.value, B.value), V();
|
310
310
|
}, al = () => {
|
311
311
|
V(null, M.value);
|
312
312
|
}, pe = $(null), V = (e = null, l = !1, n = "", f = !1, p = !1) => {
|
313
313
|
var t, b, x, C, F, T, G, H, J, W, X, Y, _;
|
314
|
-
|
314
|
+
u.value && !l && (M.value = 1), u.value ? o.value.page = M.value : o.value.cursor = n, (t = a.value) != null && t.per_page ? o.value[a.value.per_page.key] = z.value : o.value.per_page = z.value, (b = a.value) != null && b.tabs && p && (o.value[a.value.tabs.key] = B.value), (x = a.value) != null && x.search && ((F = (C = a.value.search) == null ? void 0 : C.options) != null && F.length ? (Object.keys(o.value).forEach((k) => {
|
315
315
|
var q;
|
316
|
-
(q = a.value.search.options) != null && q.map((m) => m.value).includes(k) && delete
|
317
|
-
}),
|
318
|
-
Array.isArray(
|
316
|
+
(q = a.value.search.options) != null && q.map((m) => m.value).includes(k) && delete o.value[k];
|
317
|
+
}), o.value[((T = o.value) == null ? void 0 : T.selectedSearchOption) || ((J = (H = (G = a.value.search) == null ? void 0 : G.options) == null ? void 0 : H[0]) == null ? void 0 : J.value) || a.value.search.key] = U.value.join()) : o.value[a.value.search.key] = U.value.join()), e && (R.value = !1, o.value = { ...o.value, ...e }, Object.keys(o.value).forEach((k) => {
|
318
|
+
Array.isArray(o.value[k]) && o.value[k].length === 0 && delete o.value[k];
|
319
319
|
}));
|
320
320
|
let c = (X = (W = a.value) == null ? void 0 : W.tabs) == null ? void 0 : X.key;
|
321
|
-
if (c && B.value !==
|
321
|
+
if (c && B.value !== o.value[c]) {
|
322
322
|
const k = (_ = (Y = a.value.tabs) == null ? void 0 : Y.options) == null ? void 0 : _.find(
|
323
323
|
(q) => {
|
324
324
|
var m, te;
|
325
|
-
return ((m = q.value) == null ? void 0 : m.toString()) === ((te =
|
325
|
+
return ((m = q.value) == null ? void 0 : m.toString()) === ((te = o.value[c]) == null ? void 0 : te.toString());
|
326
326
|
}
|
327
327
|
);
|
328
328
|
if (k != null && k.value)
|
329
329
|
return B.value = k.value, V(), !1;
|
330
330
|
}
|
331
331
|
clearTimeout(pe.value), pe.value = setTimeout(() => {
|
332
|
-
g("update:filter",
|
332
|
+
g("update:filter", o.value, f);
|
333
333
|
}, 100);
|
334
334
|
}, tl = (e, l) => {
|
335
335
|
(l === a.value.tabs.key || l === "tabs") && (B.value = ""), V(e), g("filter-removed", l);
|
@@ -337,18 +337,18 @@ const Sl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, $l = {
|
|
337
337
|
Ue(() => {
|
338
338
|
_e(), g("on-table-ready");
|
339
339
|
});
|
340
|
-
const
|
341
|
-
|
342
|
-
paginationData:
|
343
|
-
tableIsLoading:
|
340
|
+
const ie = S(() => s.isLoading || v.value);
|
341
|
+
se({
|
342
|
+
paginationData: u,
|
343
|
+
tableIsLoading: ie,
|
344
344
|
bulkPutLocalData: E,
|
345
345
|
bulkDeleteLocalData: ee,
|
346
346
|
getLocalDataUpdatedAt: le,
|
347
347
|
getLocalDataIds: ae,
|
348
|
-
syncLocalData:
|
348
|
+
syncLocalData: ue,
|
349
349
|
sortByData: N
|
350
350
|
});
|
351
|
-
const
|
351
|
+
const sl = ({ key: e, value: l }) => {
|
352
352
|
Object.keys(N.value).forEach((n) => {
|
353
353
|
n !== e && (N.value[n] = null);
|
354
354
|
}), N.value[e] = l, g("update:sort-by", N.value);
|
@@ -356,12 +356,12 @@ const Sl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, $l = {
|
|
356
356
|
return (e, l) => {
|
357
357
|
var n, f, p, c;
|
358
358
|
return r(), h("div", Cl, [
|
359
|
-
ce.value ? (r(), j(
|
359
|
+
ce.value ? (r(), j(i(nl), {
|
360
360
|
key: 0,
|
361
361
|
selected: D.selected,
|
362
362
|
"row-key": D.rowKey,
|
363
363
|
options: ce.value,
|
364
|
-
"is-loading":
|
364
|
+
"is-loading": ie.value,
|
365
365
|
"loading-rows": z.value,
|
366
366
|
"row-class": D.rowClass,
|
367
367
|
"row-link": D.rowLink,
|
@@ -369,10 +369,10 @@ const Sl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, $l = {
|
|
369
369
|
"is-borderless": O.value.isBorderless,
|
370
370
|
"sort-by": D.sortBy,
|
371
371
|
"onUpdate:selected": l[8] || (l[8] = (t) => e.$emit("update:selected", t)),
|
372
|
-
"onUpdate:sortBy":
|
372
|
+
"onUpdate:sortBy": sl,
|
373
373
|
"onClick:row": l[9] || (l[9] = (t) => e.$emit("click:row", t)),
|
374
374
|
"onHover:cell": l[10] || (l[10] = (t) => e.$emit("hover:cell", t))
|
375
|
-
},
|
375
|
+
}, il({
|
376
376
|
after: w(() => [
|
377
377
|
P(e.$slots, "after")
|
378
378
|
]),
|
@@ -397,14 +397,14 @@ const Sl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, $l = {
|
|
397
397
|
Ge.value ? (r(), h("div", jl, [
|
398
398
|
P(e.$slots, "bulk-actions", { selectedRows: D.selected })
|
399
399
|
])) : (r(), h("div", Ll, [
|
400
|
-
(C = a.value) != null && C.tabs ? (r(), j(
|
400
|
+
(C = a.value) != null && C.tabs ? (r(), j(i(dl), {
|
401
401
|
key: 0,
|
402
402
|
modelValue: B.value,
|
403
403
|
"onUpdate:modelValue": [
|
404
404
|
l[0] || (l[0] = (F) => B.value = F),
|
405
405
|
l[1] || (l[1] = (F) => V(null, !1, "", !1, !0))
|
406
406
|
],
|
407
|
-
"is-disabled":
|
407
|
+
"is-disabled": ie.value,
|
408
408
|
tabs: a.value.tabs.options,
|
409
409
|
variant: "pills"
|
410
410
|
}, null, 8, ["modelValue", "is-disabled", "tabs"])) : y("", !0)
|
@@ -419,16 +419,16 @@ const Sl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, $l = {
|
|
419
419
|
a.value ? fe.value ? "md:w-fit w-full" : "" : "w-full justify-end"
|
420
420
|
])
|
421
421
|
}, [
|
422
|
-
(H = a.value) != null && H.search ? (r(), j(
|
422
|
+
(H = a.value) != null && H.search ? (r(), j(i(vl), {
|
423
423
|
key: 0,
|
424
424
|
"is-search-only": !a.value.tabs || a.value.isSearchOnly,
|
425
425
|
"search-options": ((J = a.value.search) == null ? void 0 : J.options) ?? [],
|
426
|
-
"selected-option": (((W =
|
426
|
+
"selected-option": (((W = o.value) == null ? void 0 : W.selectedSearchOption) || ((_ = (Y = (X = a.value.search) == null ? void 0 : X.options) == null ? void 0 : Y[0]) == null ? void 0 : _.value)) ?? "keywords",
|
427
427
|
onAddQuery: He,
|
428
428
|
onToggle: l[2] || (l[2] = (m) => fe.value = m),
|
429
429
|
onChangeSearchKey: el
|
430
430
|
}, null, 8, ["is-search-only", "search-options", "selected-option"])) : y("", !0),
|
431
|
-
(k = a.value) != null && k.form ? (r(), j(
|
431
|
+
(k = a.value) != null && k.form ? (r(), j(i(Ke), {
|
432
432
|
key: 1,
|
433
433
|
modelValue: R.value,
|
434
434
|
"onUpdate:modelValue": [
|
@@ -440,30 +440,30 @@ const Sl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, $l = {
|
|
440
440
|
"is-attach-to-body": ""
|
441
441
|
}, {
|
442
442
|
menu: w(() => [
|
443
|
-
R.value ? (r(), j(
|
443
|
+
R.value ? (r(), j(i(cl), {
|
444
444
|
key: 0,
|
445
445
|
id: D.id,
|
446
446
|
"json-form": a.value.form ?? [],
|
447
447
|
grid: a.value.grid ?? null,
|
448
|
-
values:
|
448
|
+
values: s.filter,
|
449
449
|
actions: a.value.actions,
|
450
450
|
onApplyFilter: l[3] || (l[3] = (m) => V(m)),
|
451
451
|
onFilterFieldsChanged: l[4] || (l[4] = (m) => g("filter-fields-changed", m)),
|
452
452
|
onCancel: l[5] || (l[5] = (m) => R.value = !1)
|
453
453
|
}, {
|
454
|
-
default: w(({ errors: m, values: te, jsonForm:
|
454
|
+
default: w(({ errors: m, values: te, jsonForm: ol, updateForm: ul }) => [
|
455
455
|
P(e.$slots, "custom-filter-form", {
|
456
456
|
errors: m,
|
457
457
|
values: te,
|
458
|
-
jsonForm:
|
459
|
-
updateFilter:
|
458
|
+
jsonForm: ol,
|
459
|
+
updateFilter: ul
|
460
460
|
})
|
461
461
|
]),
|
462
462
|
_: 3
|
463
463
|
}, 8, ["id", "json-form", "grid", "values", "actions"])) : y("", !0)
|
464
464
|
]),
|
465
465
|
default: w(() => [
|
466
|
-
A(
|
466
|
+
A(i(Ie), {
|
467
467
|
"is-active": R.value,
|
468
468
|
variant: "secondary",
|
469
469
|
"left-icon": "filter"
|
@@ -473,7 +473,7 @@ const Sl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, $l = {
|
|
473
473
|
}, 8, ["modelValue"])) : y("", !0),
|
474
474
|
a.value.columnEdit ? (r(), j(El, {
|
475
475
|
key: 2,
|
476
|
-
options:
|
476
|
+
options: o.value.columnEdit,
|
477
477
|
headers: ((q = O.value) == null ? void 0 : q.headers) || [],
|
478
478
|
"local-key": a.value.columnEdit.localStorageKey,
|
479
479
|
onUpdateOrder: Ye
|
@@ -482,7 +482,7 @@ const Sl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, $l = {
|
|
482
482
|
];
|
483
483
|
})
|
484
484
|
])) : y("", !0),
|
485
|
-
A(
|
485
|
+
A(i(ml), {
|
486
486
|
filters: We.value,
|
487
487
|
queries: U.value,
|
488
488
|
class: "border-t border-oc-gray-200",
|
@@ -505,11 +505,11 @@ const Sl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, $l = {
|
|
505
505
|
}))
|
506
506
|
]), 1032, ["selected", "row-key", "options", "is-loading", "loading-rows", "row-class", "row-link", "is-sticky", "is-borderless", "sort-by"])) : y("", !0),
|
507
507
|
P(e.$slots, "before-pagination"),
|
508
|
-
u
|
508
|
+
i(u) || d.value ? (r(), h("div", {
|
509
509
|
key: 1,
|
510
|
-
class: ve(["flex items-center gap-3", u
|
510
|
+
class: ve(["flex items-center gap-3", i(u) && i(u).last_page === 1 ? "justify-end" : ""])
|
511
511
|
}, [
|
512
|
-
u
|
512
|
+
i(u) && !Ne.value ? (r(), j(i(fl), {
|
513
513
|
key: 0,
|
514
514
|
modelValue: M.value,
|
515
515
|
"onUpdate:modelValue": [
|
@@ -517,23 +517,23 @@ const Sl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, $l = {
|
|
517
517
|
al
|
518
518
|
],
|
519
519
|
class: "justify-center",
|
520
|
-
"max-page": u
|
521
|
-
strategy: u
|
520
|
+
"max-page": i(u).last_page,
|
521
|
+
strategy: i(u).strategy,
|
522
522
|
"total-visible": "5"
|
523
523
|
}, null, 8, ["modelValue", "max-page", "strategy"])) : y("", !0),
|
524
524
|
d.value ? (r(), h("div", Al, [
|
525
|
-
A(
|
525
|
+
A(i(Le), {
|
526
526
|
disabled: !d.value.prev,
|
527
527
|
onClick: l[12] || (l[12] = (t) => d.value.prev ? V(null, !1, d.value.prev) : null)
|
528
528
|
}, null, 8, ["disabled"]),
|
529
|
-
A(
|
529
|
+
A(i(Le), {
|
530
530
|
disabled: !d.value.next,
|
531
531
|
"is-next": "",
|
532
532
|
onClick: l[13] || (l[13] = (t) => d.value.next ? V(null, !1, d.value.next) : null)
|
533
533
|
}, null, 8, ["disabled"])
|
534
534
|
])) : y("", !0),
|
535
535
|
ze.value ? y("", !0) : (r(), h("div", Bl, [
|
536
|
-
A(
|
536
|
+
A(i(pl), {
|
537
537
|
modelValue: z.value,
|
538
538
|
"onUpdate:modelValue": [
|
539
539
|
l[14] || (l[14] = (t) => z.value = t),
|
@@ -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-sshOSmGz.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-sshOSmGz.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-sshOSmGz.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-sshOSmGz.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-sshOSmGz.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-sshOSmGz.js";
|
3
|
+
import k from "./OcCropper-CV7rNbNa.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-sshOSmGz.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-sshOSmGz.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-sshOSmGz.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-sshOSmGz.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,
|