@orchidui/core 1.8.1-100 → 1.8.1-103
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 +34 -33
- 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-BZrI2z-C.js → OcAccountSetupProgress-BeowOIMh.js} +1 -1
- package/dist/{OcComplexCalendar-CrhHAVnT.js → OcComplexCalendar-D4s8G5YU.js} +1 -1
- package/dist/{OcComplexDatePicker-Cr_6CjYB.js → OcComplexDatePicker-IBeip5hE.js} +1 -1
- package/dist/{OcCropper-BMMZRsnp.js → OcCropper-Bgu0Vygr.js} +1 -1
- package/dist/{OcDataTable-B5QRaoES.js → OcDataTable-MsODXwsj.js} +109 -109
- package/dist/{OcDraggableList-Bka23Zj_.js → OcDraggableList-CU1RKnDp.js} +1 -1
- package/dist/{OcEmojiPicker-CjL4Ap4z.js → OcEmojiPicker-BSIj846S.js} +1 -1
- package/dist/{OcFilterForm-IZtn5Vdc.js → OcFilterForm-CWtnljsU.js} +1 -1
- package/dist/{OcFilterSearch-Bn7BjQMO.js → OcFilterSearch-BzPLJVN6.js} +1 -1
- package/dist/{OcFilterSearchFor-B0Cyh-PP.js → OcFilterSearchFor-ByVEggJ2.js} +1 -1
- package/dist/{OcModalCropper-KoaOw5ug.js → OcModalCropper-B2stfV7m.js} +2 -2
- package/dist/{OcTimePicker-i88_uGmT.js → OcTimePicker-llwFgHps.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-CmQpq6Jd.js → SubPlanCard-CJ8yWifV.js} +1 -1
- package/dist/{ThumbnailSection-VGh-BSav.js → ThumbnailSection-WmXCmJS6.js} +1 -1
- package/dist/{ThumbnailTheme-OomrH2df.js → ThumbnailTheme-MfGJS3Cq.js} +1 -1
- package/dist/{index-DeDsEdk8.js → index-Ov9629Pn.js} +8 -8
- package/dist/index.js +1 -1
- package/package.json +1 -1
@@ -1,5 +1,5 @@
|
|
1
|
-
import { ref as x, onMounted as Ae, createBlock as j, openBlock as
|
2
|
-
import { az as Ke, B as Te, C as tl, K as ol, Z as sl, aK as
|
1
|
+
import { ref as x, onMounted as Ae, createBlock as j, openBlock as u, unref as i, withCtx as w, createVNode as T, createElementVNode as N, createElementBlock as h, createCommentVNode as b, mergeProps as Ve, Fragment as ie, renderList as ue, normalizeClass as re, toDisplayString as Ee, computed as E, watch as te, renderSlot as P, createSlots as al, normalizeProps as De, guardReactiveProps as Le } from "vue";
|
2
|
+
import { az as Ke, B as Te, C as tl, K as ol, Z as sl, aK as il, aL as ul, aM as rl, H as nl, I as Ce, j as dl } from "./index-Ov9629Pn.js";
|
3
3
|
import { VueDraggableNext as Pe } from "vue-draggable-next";
|
4
4
|
import { getFromLocalStorage as Ue, formatHeadersFromLocalStorage as Be, formatHeadersToLocalStorage as vl, setInLocalStorage as cl } from "./DataTable/utils/editColumnsUtils.js";
|
5
5
|
import { _ as je } from "./OcIcon-CBf___w1.js";
|
@@ -36,7 +36,7 @@ const hl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, Sl = {
|
|
36
36
|
"update-order"
|
37
37
|
],
|
38
38
|
setup(A, { emit: oe }) {
|
39
|
-
const s = oe, O = A, n = x([]),
|
39
|
+
const s = oe, O = A, n = x([]), p = x([]), B = x(!1), $ = {
|
40
40
|
handle: ".drag-el",
|
41
41
|
filter: ".is-disabled",
|
42
42
|
group: "headers",
|
@@ -45,46 +45,46 @@ const hl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, Sl = {
|
|
45
45
|
move: (K) => K.to.dataset.activeHeaders ? !0 : !!K.draggedContext.futureIndex,
|
46
46
|
"onUpdate:modelValue": () => I()
|
47
47
|
}, I = (K = !1) => {
|
48
|
-
|
49
|
-
...
|
48
|
+
p.value = p.value.map((m) => ({
|
49
|
+
...m,
|
50
50
|
isActive: !0
|
51
51
|
})), s("update-order", {
|
52
|
-
fixedHeaders:
|
52
|
+
fixedHeaders: p.value,
|
53
53
|
activeHeaders: n.value,
|
54
54
|
isOnMount: K
|
55
55
|
});
|
56
56
|
};
|
57
57
|
return Ae(() => {
|
58
|
-
const K = Ue(O.localKey), { fixed:
|
59
|
-
|
58
|
+
const K = Ue(O.localKey), { fixed: m, active: f } = Be(K, O.headers, O.localKey);
|
59
|
+
p.value = m || O.headers.slice(0, 1), n.value = f || O.headers.slice(1).map((F) => {
|
60
60
|
var ee, le, l;
|
61
61
|
return {
|
62
|
-
...
|
63
|
-
isActive: ((l = (le = (ee = O.options) == null ? void 0 : ee.active) == null ? void 0 : le.find((se) => se.key ===
|
62
|
+
...F,
|
63
|
+
isActive: ((l = (le = (ee = O.options) == null ? void 0 : ee.active) == null ? void 0 : le.find((se) => se.key === F.key)) == null ? void 0 : l.isActive) ?? !0
|
64
64
|
};
|
65
65
|
}), I(!0);
|
66
|
-
}), (K,
|
66
|
+
}), (K, m) => (u(), j(i(Ke), {
|
67
67
|
modelValue: B.value,
|
68
|
-
"onUpdate:modelValue":
|
68
|
+
"onUpdate:modelValue": m[3] || (m[3] = (f) => B.value = f),
|
69
69
|
class: "h-[36px]",
|
70
70
|
"is-attach-to-body": ""
|
71
71
|
}, {
|
72
72
|
menu: w(() => [
|
73
73
|
N("div", hl, [
|
74
|
-
|
75
|
-
|
76
|
-
T(
|
74
|
+
p.value.length ? (u(), h("div", Sl, [
|
75
|
+
m[4] || (m[4] = N("span", { class: "text-oc-text-400 font-medium" }, "Fixed columns", -1)),
|
76
|
+
T(i(Pe), Ve({
|
77
77
|
key: "key",
|
78
|
-
modelValue:
|
79
|
-
"onUpdate:modelValue":
|
78
|
+
modelValue: p.value,
|
79
|
+
"onUpdate:modelValue": m[0] || (m[0] = (f) => p.value = f)
|
80
80
|
}, $), {
|
81
81
|
default: w(() => [
|
82
|
-
(
|
83
|
-
key:
|
84
|
-
class: re(["flex items-center justify-between h-[26px]",
|
82
|
+
(u(!0), h(ie, null, ue(p.value, (f, F) => (u(), h("div", {
|
83
|
+
key: f.key,
|
84
|
+
class: re(["flex items-center justify-between h-[26px]", F ? "" : "is-disabled"])
|
85
85
|
}, [
|
86
|
-
N("span", null, Ee(
|
87
|
-
|
86
|
+
N("span", null, Ee(f.label), 1),
|
87
|
+
F ? (u(), j(i(je), {
|
88
88
|
key: 0,
|
89
89
|
width: "18",
|
90
90
|
height: "18",
|
@@ -97,29 +97,29 @@ const hl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, Sl = {
|
|
97
97
|
}, 16, ["modelValue"])
|
98
98
|
])) : b("", !0),
|
99
99
|
N("div", xl, [
|
100
|
-
|
101
|
-
T(
|
100
|
+
m[5] || (m[5] = N("span", { class: "text-oc-text-400 font-medium" }, "Active columns", -1)),
|
101
|
+
T(i(Pe), Ve({
|
102
102
|
key: "key",
|
103
103
|
modelValue: n.value,
|
104
|
-
"onUpdate:modelValue":
|
104
|
+
"onUpdate:modelValue": m[2] || (m[2] = (f) => n.value = f)
|
105
105
|
}, $, { "data-active-headers": "true" }), {
|
106
106
|
default: w(() => [
|
107
|
-
(
|
108
|
-
key:
|
107
|
+
(u(!0), h(ie, null, ue(n.value, (f) => (u(), h(ie, {
|
108
|
+
key: f.key
|
109
109
|
}, [
|
110
|
-
|
110
|
+
f.key !== "actions" ? (u(), h("div", wl, [
|
111
111
|
N("div", Ol, [
|
112
|
-
T(
|
113
|
-
modelValue:
|
112
|
+
T(i(tl), {
|
113
|
+
modelValue: f.isActive,
|
114
114
|
"onUpdate:modelValue": [
|
115
|
-
(
|
116
|
-
|
115
|
+
(F) => f.isActive = F,
|
116
|
+
m[1] || (m[1] = (F) => I())
|
117
117
|
],
|
118
118
|
class: "!w-fit"
|
119
119
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
120
|
-
N("div", $l, Ee(
|
120
|
+
N("div", $l, Ee(f.label), 1)
|
121
121
|
]),
|
122
|
-
n.value.length > 1 ? (
|
122
|
+
n.value.length > 1 ? (u(), j(i(je), {
|
123
123
|
key: 0,
|
124
124
|
width: "18",
|
125
125
|
height: "18",
|
@@ -135,7 +135,7 @@ const hl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, Sl = {
|
|
135
135
|
])
|
136
136
|
]),
|
137
137
|
default: w(() => [
|
138
|
-
T(
|
138
|
+
T(i(Te), {
|
139
139
|
label: "Edit Column",
|
140
140
|
"left-icon": "setting",
|
141
141
|
variant: "secondary"
|
@@ -209,17 +209,17 @@ const hl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, Sl = {
|
|
209
209
|
var me, fe, ge, ye, be, ke, he, Se, xe, we, Oe, $e, Fe;
|
210
210
|
const s = A, O = oe;
|
211
211
|
let n = x((me = s.options) == null ? void 0 : me.pagination);
|
212
|
-
const
|
212
|
+
const p = E(() => {
|
213
213
|
var e;
|
214
214
|
return (e = s.options) == null ? void 0 : e.cursor;
|
215
|
-
}), B = x(), $ =
|
215
|
+
}), B = x(), $ = E(() => {
|
216
216
|
var e;
|
217
217
|
return (e = s.options) == null ? void 0 : e.tableOptions;
|
218
|
-
}), I =
|
218
|
+
}), I = E(() => s.isLocalData && s.localDataOptions), {
|
219
219
|
localData: K,
|
220
|
-
setFilter:
|
221
|
-
setSortBy:
|
222
|
-
paginationData:
|
220
|
+
setFilter: m,
|
221
|
+
setSortBy: f,
|
222
|
+
paginationData: F,
|
223
223
|
isLoading: ee
|
224
224
|
// sortBy,
|
225
225
|
// toggleSort,
|
@@ -230,65 +230,65 @@ const hl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, Sl = {
|
|
230
230
|
localDb: (ge = s.localDataOptions) == null ? void 0 : ge.db,
|
231
231
|
options: (ye = s.localDataOptions) == null ? void 0 : ye.options
|
232
232
|
});
|
233
|
-
I.value && (n.value =
|
234
|
-
|
235
|
-
}, { deep: !0 }), te(() => s.sortBy, (
|
236
|
-
|
237
|
-
}, { deep: !0 }), te(() =>
|
238
|
-
n.value =
|
239
|
-
}, { deep: !0
|
233
|
+
I.value && (n.value = F.value, te(() => s.filter, () => {
|
234
|
+
m(s.filter);
|
235
|
+
}, { deep: !0 }), te(() => s.sortBy, () => {
|
236
|
+
f(s.sortBy);
|
237
|
+
}, { deep: !0, immediate: !0 }), te(() => F.value, () => {
|
238
|
+
n.value = F.value;
|
239
|
+
}, { deep: !0, immediate: !0 })), te(() => {
|
240
240
|
var e;
|
241
241
|
return (e = s.options) == null ? void 0 : e.pagination;
|
242
242
|
}, (e) => {
|
243
243
|
I.value || (n.value = e);
|
244
244
|
}, { deep: !0 });
|
245
|
-
const le =
|
245
|
+
const le = E(() => {
|
246
246
|
var a;
|
247
247
|
const e = {
|
248
248
|
...$.value,
|
249
249
|
headers: B.value ? B.value.map((r) => {
|
250
|
-
var
|
251
|
-
return r.class = ((
|
250
|
+
var v, c;
|
251
|
+
return r.class = ((c = (v = $.value) == null ? void 0 : v.headers.find((d) => d.key === r.key)) == null ? void 0 : c.class) ?? "", r;
|
252
252
|
}).filter((r) => r.isActive) : (a = $.value) == null ? void 0 : a.headers.filter((r) => Me(r.key))
|
253
253
|
};
|
254
254
|
return I.value && (e.fields = K.value), e;
|
255
|
-
}), l =
|
255
|
+
}), l = E(() => {
|
256
256
|
var e;
|
257
257
|
return (e = s.options) == null ? void 0 : e.filterOptions;
|
258
|
-
}), se =
|
258
|
+
}), se = E(() => {
|
259
259
|
var e;
|
260
260
|
return (e = s.options) == null ? void 0 : e.hidePerPageDropdown;
|
261
|
-
}), Ie =
|
261
|
+
}), Ie = E(() => {
|
262
262
|
var e;
|
263
263
|
return ((e = n.value) == null ? void 0 : e.last_page) === 1;
|
264
264
|
}), R = x(!1), L = x(s.filter[(ke = (be = l.value) == null ? void 0 : be.tabs) == null ? void 0 : ke.key]), z = x(s.filter.page), M = x(
|
265
265
|
(Se = (he = l.value) == null ? void 0 : he.per_page) != null && Se.key ? s.filter[(we = (xe = l.value) == null ? void 0 : xe.per_page) == null ? void 0 : we.key] : s.filter.per_page
|
266
|
-
), ne = ((Fe = s.filter[($e = (Oe = l.value) == null ? void 0 : Oe.search) == null ? void 0 : $e.key]) == null ? void 0 : Fe.trim()) ?? "", U = x(ne ? ne.split(",") : []), de = x(!1), qe =
|
266
|
+
), ne = ((Fe = s.filter[($e = (Oe = l.value) == null ? void 0 : Oe.search) == null ? void 0 : $e.key]) == null ? void 0 : Fe.trim()) ?? "", U = x(ne ? ne.split(",") : []), de = x(!1), qe = E(
|
267
267
|
() => {
|
268
268
|
var e;
|
269
269
|
return fl((e = s.options) == null ? void 0 : e.perPageOptions);
|
270
270
|
}
|
271
|
-
), Qe =
|
271
|
+
), Qe = E(() => gl(qe.value, n.value)), Ne = E(() => {
|
272
272
|
var e;
|
273
273
|
return ((e = s.selected) == null ? void 0 : e.length) > 0;
|
274
274
|
}), ve = (e) => {
|
275
|
-
!e.trim() || !t.value.selectedSearchOption && U.value.includes(e) || (U.value = [e],
|
275
|
+
!e.trim() || !t.value.selectedSearchOption && U.value.includes(e) || (U.value = [e], V(), O("search-query-changed", e));
|
276
276
|
}, Re = (e) => {
|
277
|
-
U.value = U.value.filter((a) => a !== e),
|
277
|
+
U.value = U.value.filter((a) => a !== e), V();
|
278
278
|
}, J = s.filter;
|
279
|
-
!J && n.value ? J.page = 1 : !J &&
|
280
|
-
const t = x(J), ze =
|
281
|
-
var a, r,
|
282
|
-
return ((o = (d = (
|
279
|
+
!J && n.value ? J.page = 1 : !J && p && (J.cursor = "");
|
280
|
+
const t = x(J), ze = E(() => pl(t.value, l.value)), Me = (e) => {
|
281
|
+
var a, r, v, c, d, o;
|
282
|
+
return ((o = (d = (c = (v = t.value) == null ? void 0 : v[(r = (a = l.value) == null ? void 0 : a.columnEdit) == null ? void 0 : r.key]) == null ? void 0 : c.active) == null ? void 0 : d.find((g) => g.key === e)) == null ? void 0 : o.isActive) ?? !0;
|
283
283
|
}, Je = ({ fixedHeaders: e, activeHeaders: a, isOnMount: r }) => {
|
284
|
-
var
|
285
|
-
if (t.value[(
|
284
|
+
var v, c, d, o, g, S, C, D;
|
285
|
+
if (t.value[(c = (v = l.value) == null ? void 0 : v.columnEdit) == null ? void 0 : c.key] || (t.value[(o = (d = l.value) == null ? void 0 : d.columnEdit) == null ? void 0 : o.key] = {}), t.value[(S = (g = l.value) == null ? void 0 : g.columnEdit) == null ? void 0 : S.key].fixed = e, t.value[(D = (C = l.value) == null ? void 0 : C.columnEdit) == null ? void 0 : D.key].active = a, B.value = [...e, ...a], !r) {
|
286
286
|
const q = vl(e, a);
|
287
287
|
cl(l.value.columnEdit.localStorageKey, q);
|
288
288
|
}
|
289
289
|
O("columns-changed", a);
|
290
290
|
}, Ze = () => {
|
291
|
-
var e, a, r,
|
291
|
+
var e, a, r, v, c, d;
|
292
292
|
if ((a = (e = l.value) == null ? void 0 : e.columnEdit) != null && a.localStorageKey) {
|
293
293
|
const o = Ue(l.value.columnEdit.localStorageKey);
|
294
294
|
if (o) {
|
@@ -297,20 +297,20 @@ const hl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, Sl = {
|
|
297
297
|
$.value.headers,
|
298
298
|
l.value.columnEdit.localStorageKey
|
299
299
|
);
|
300
|
-
t.value[(
|
300
|
+
t.value[(v = (r = l.value) == null ? void 0 : r.columnEdit) == null ? void 0 : v.key].fixed = g, t.value[(d = (c = l.value) == null ? void 0 : c.columnEdit) == null ? void 0 : d.key].active = S, B.value = [...g, ...S];
|
301
301
|
}
|
302
302
|
}
|
303
303
|
}, Ge = (e) => {
|
304
304
|
t.value.selectedSearchOption = e;
|
305
305
|
}, He = () => {
|
306
|
-
U.value = [], L.value = "", t.value = ml(t.value, l.value, M.value, L.value),
|
306
|
+
U.value = [], L.value = "", t.value = ml(t.value, l.value, M.value, L.value), V();
|
307
307
|
}, We = () => {
|
308
|
-
|
308
|
+
V(null, z.value);
|
309
309
|
}, Xe = () => {
|
310
310
|
bl(s.id, t.value);
|
311
|
-
}, Ye = () => yl(s.id), ce = x(null),
|
311
|
+
}, Ye = () => yl(s.id), ce = x(null), V = (e = null, a = !1, r = "", v = !1, c = !1) => {
|
312
312
|
var o, g, S, C, D, q, Z, G, H, W, X, Y, _;
|
313
|
-
n.value && !a && (z.value = 1), n.value ? t.value.page = z.value : t.value.cursor = r, (o = l.value) != null && o.per_page ? t.value[l.value.per_page.key] = M.value : t.value.per_page = M.value, (g = l.value) != null && g.tabs &&
|
313
|
+
n.value && !a && (z.value = 1), n.value ? t.value.page = z.value : t.value.cursor = r, (o = l.value) != null && o.per_page ? t.value[l.value.per_page.key] = M.value : t.value.per_page = M.value, (g = l.value) != null && g.tabs && c && (t.value[l.value.tabs.key] = L.value), (S = l.value) != null && S.search && ((D = (C = l.value.search) == null ? void 0 : C.options) != null && D.length ? (Object.keys(t.value).forEach((k) => {
|
314
314
|
var Q;
|
315
315
|
(Q = l.value.search.options) != null && Q.map((y) => y.value).includes(k) && delete t.value[k];
|
316
316
|
}), t.value[((q = t.value) == null ? void 0 : q.selectedSearchOption) || ((H = (G = (Z = l.value.search) == null ? void 0 : Z.options) == null ? void 0 : G[0]) == null ? void 0 : H.value) || l.value.search.key] = U.value.join()) : t.value[l.value.search.key] = U.value.join()), e && (R.value = !1, t.value = { ...t.value, ...e }, Object.keys(t.value).forEach((k) => {
|
@@ -325,25 +325,25 @@ const hl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, Sl = {
|
|
325
325
|
}
|
326
326
|
);
|
327
327
|
if (k != null && k.value)
|
328
|
-
return L.value = k.value,
|
328
|
+
return L.value = k.value, V(), !1;
|
329
329
|
}
|
330
330
|
Xe(), clearTimeout(ce.value), ce.value = setTimeout(() => {
|
331
|
-
O("update:filter", t.value,
|
331
|
+
O("update:filter", t.value, v);
|
332
332
|
}, 100);
|
333
333
|
}, _e = (e, a) => {
|
334
|
-
(a === l.value.tabs.key || a === "tabs") && (L.value = ""),
|
334
|
+
(a === l.value.tabs.key || a === "tabs") && (L.value = ""), V(e), O("filter-removed", a);
|
335
335
|
};
|
336
336
|
Ae(() => {
|
337
|
-
var a, r,
|
337
|
+
var a, r, v, c, d, o, g;
|
338
338
|
Ze();
|
339
339
|
const e = Ye();
|
340
|
-
e && (t.value = JSON.parse(e), L.value = L.value || ((a = t.value) == null ? void 0 : a.tabs) || ((
|
340
|
+
e && (t.value = JSON.parse(e), L.value = L.value || ((a = t.value) == null ? void 0 : a.tabs) || ((c = t.value) == null ? void 0 : c[(v = (r = l.value) == null ? void 0 : r.tabs) == null ? void 0 : v.key]), (d = t.value) != null && d.selectedSearchOption && ve(t.value[(o = t.value) == null ? void 0 : o.selectedSearchOption]), z.value = ((g = t.value) == null ? void 0 : g.page) || 1, V(null, !0, t.value.cursor, !0));
|
341
341
|
});
|
342
|
-
const pe =
|
342
|
+
const pe = E(() => s.isLoading || ee.value);
|
343
343
|
return (e, a) => {
|
344
|
-
var r,
|
345
|
-
return
|
346
|
-
$.value ? (
|
344
|
+
var r, v, c, d;
|
345
|
+
return u(), h("div", Vl, [
|
346
|
+
$.value ? (u(), j(i(ol), {
|
347
347
|
key: 0,
|
348
348
|
selected: A.selected,
|
349
349
|
"row-key": A.rowKey,
|
@@ -372,22 +372,22 @@ const hl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, Sl = {
|
|
372
372
|
]),
|
373
373
|
_: 2
|
374
374
|
}, [
|
375
|
-
e.$slots.before || (r = l.value) != null && r.search || (
|
375
|
+
e.$slots.before || (r = l.value) != null && r.search || (v = l.value) != null && v.form || (c = l.value) != null && c.tabs ? {
|
376
376
|
name: "before",
|
377
377
|
fn: w(() => {
|
378
378
|
var o, g, S, C;
|
379
379
|
return [
|
380
380
|
P(e.$slots, "before"),
|
381
|
-
(o = l.value) != null && o.search || (g = l.value) != null && g.form || (S = l.value) != null && S.tabs ? (
|
382
|
-
Ne.value ? (
|
381
|
+
(o = l.value) != null && o.search || (g = l.value) != null && g.form || (S = l.value) != null && S.tabs ? (u(), h("div", El, [
|
382
|
+
Ne.value ? (u(), h("div", Dl, [
|
383
383
|
P(e.$slots, "bulk-actions", { selectedRows: A.selected })
|
384
|
-
])) : (
|
385
|
-
(C = l.value) != null && C.tabs ? (
|
384
|
+
])) : (u(), h("div", Ll, [
|
385
|
+
(C = l.value) != null && C.tabs ? (u(), j(i(sl), {
|
386
386
|
key: 0,
|
387
387
|
modelValue: L.value,
|
388
388
|
"onUpdate:modelValue": [
|
389
389
|
a[0] || (a[0] = (D) => L.value = D),
|
390
|
-
a[1] || (a[1] = (D) =>
|
390
|
+
a[1] || (a[1] = (D) => V(null, !1, "", !1, !0))
|
391
391
|
],
|
392
392
|
"is-disabled": pe.value,
|
393
393
|
tabs: l.value.tabs.options,
|
@@ -397,14 +397,14 @@ const hl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, Sl = {
|
|
397
397
|
P(e.$slots, "filter-options", {}, () => {
|
398
398
|
var D, q, Z, G, H, W, X, Y, _, k, Q;
|
399
399
|
return [
|
400
|
-
(D = l.value) != null && D.search || (q = l.value) != null && q.form || (Z = l.value) != null && Z.columnEdit ? (
|
400
|
+
(D = l.value) != null && D.search || (q = l.value) != null && q.form || (Z = l.value) != null && Z.columnEdit ? (u(), h("div", {
|
401
401
|
key: 0,
|
402
402
|
class: re([
|
403
403
|
"flex gap-3 absolute ml-auto bg-oc-bg-light right-4 max-w-[calc(100%-24px)]",
|
404
404
|
l.value ? de.value ? "md:w-fit w-full" : "" : "w-full justify-end"
|
405
405
|
])
|
406
406
|
}, [
|
407
|
-
(G = l.value) != null && G.search ? (
|
407
|
+
(G = l.value) != null && G.search ? (u(), j(i(il), {
|
408
408
|
key: 0,
|
409
409
|
"is-search-only": !l.value.tabs || l.value.isSearchOnly,
|
410
410
|
"search-options": ((H = l.value.search) == null ? void 0 : H.options) ?? [],
|
@@ -413,7 +413,7 @@ const hl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, Sl = {
|
|
413
413
|
onToggle: a[2] || (a[2] = (y) => de.value = y),
|
414
414
|
onChangeSearchKey: Ge
|
415
415
|
}, null, 8, ["is-search-only", "search-options", "selected-option"])) : b("", !0),
|
416
|
-
(k = l.value) != null && k.form ? (
|
416
|
+
(k = l.value) != null && k.form ? (u(), j(i(Ke), {
|
417
417
|
key: 1,
|
418
418
|
modelValue: R.value,
|
419
419
|
"onUpdate:modelValue": [
|
@@ -425,14 +425,14 @@ const hl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, Sl = {
|
|
425
425
|
"is-attach-to-body": ""
|
426
426
|
}, {
|
427
427
|
menu: w(() => [
|
428
|
-
R.value ? (
|
428
|
+
R.value ? (u(), j(i(ul), {
|
429
429
|
key: 0,
|
430
430
|
id: A.id,
|
431
431
|
"json-form": l.value.form ?? [],
|
432
432
|
grid: l.value.grid ?? null,
|
433
433
|
values: s.filter,
|
434
434
|
actions: l.value.actions,
|
435
|
-
onApplyFilter: a[3] || (a[3] = (y) =>
|
435
|
+
onApplyFilter: a[3] || (a[3] = (y) => V(y)),
|
436
436
|
onFilterFieldsChanged: a[4] || (a[4] = (y) => O("filter-fields-changed", y)),
|
437
437
|
onCancel: a[5] || (a[5] = (y) => R.value = !1)
|
438
438
|
}, {
|
@@ -448,7 +448,7 @@ const hl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, Sl = {
|
|
448
448
|
}, 8, ["id", "json-form", "grid", "values", "actions"])) : b("", !0)
|
449
449
|
]),
|
450
450
|
default: w(() => [
|
451
|
-
T(
|
451
|
+
T(i(Te), {
|
452
452
|
"is-active": R.value,
|
453
453
|
variant: "secondary",
|
454
454
|
"left-icon": "filter"
|
@@ -456,7 +456,7 @@ const hl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, Sl = {
|
|
456
456
|
]),
|
457
457
|
_: 3
|
458
458
|
}, 8, ["modelValue"])) : b("", !0),
|
459
|
-
l.value.columnEdit ? (
|
459
|
+
l.value.columnEdit ? (u(), j(Fl, {
|
460
460
|
key: 2,
|
461
461
|
options: t.value.columnEdit,
|
462
462
|
headers: ((Q = $.value) == null ? void 0 : Q.headers) || [],
|
@@ -467,7 +467,7 @@ const hl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, Sl = {
|
|
467
467
|
];
|
468
468
|
})
|
469
469
|
])) : b("", !0),
|
470
|
-
T(
|
470
|
+
T(i(rl), {
|
471
471
|
filters: ze.value,
|
472
472
|
queries: U.value,
|
473
473
|
class: "border-t border-oc-gray-200",
|
@@ -479,7 +479,7 @@ const hl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, Sl = {
|
|
479
479
|
}),
|
480
480
|
key: "0"
|
481
481
|
} : void 0,
|
482
|
-
|
482
|
+
ue((d = $.value) == null ? void 0 : d.headers, (o, g) => ({
|
483
483
|
name: o.key,
|
484
484
|
fn: w(({ data: S, item: C }) => [
|
485
485
|
P(e.$slots, o.key, {
|
@@ -490,11 +490,11 @@ const hl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, Sl = {
|
|
490
490
|
}))
|
491
491
|
]), 1032, ["selected", "row-key", "options", "is-loading", "loading-rows", "row-class", "row-link", "is-sticky", "is-borderless"])) : b("", !0),
|
492
492
|
P(e.$slots, "before-pagination"),
|
493
|
-
|
493
|
+
i(n) || p.value ? (u(), h("div", {
|
494
494
|
key: 1,
|
495
|
-
class: re(["flex items-center gap-3",
|
495
|
+
class: re(["flex items-center gap-3", i(n) && i(n).last_page === 1 ? "justify-end" : ""])
|
496
496
|
}, [
|
497
|
-
|
497
|
+
i(n) && !Ie.value ? (u(), j(i(nl), {
|
498
498
|
key: 0,
|
499
499
|
modelValue: z.value,
|
500
500
|
"onUpdate:modelValue": [
|
@@ -502,27 +502,27 @@ const hl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, Sl = {
|
|
502
502
|
We
|
503
503
|
],
|
504
504
|
class: "justify-center",
|
505
|
-
"max-page":
|
506
|
-
strategy:
|
505
|
+
"max-page": i(n).last_page,
|
506
|
+
strategy: i(n).strategy,
|
507
507
|
"total-visible": "5"
|
508
508
|
}, null, 8, ["modelValue", "max-page", "strategy"])) : b("", !0),
|
509
|
-
|
510
|
-
T(
|
511
|
-
disabled: !
|
512
|
-
onClick: a[12] || (a[12] = (o) =>
|
509
|
+
p.value ? (u(), h("div", Cl, [
|
510
|
+
T(i(Ce), {
|
511
|
+
disabled: !p.value.prev,
|
512
|
+
onClick: a[12] || (a[12] = (o) => p.value.prev ? V(null, !1, p.value.prev) : null)
|
513
513
|
}, null, 8, ["disabled"]),
|
514
|
-
T(
|
515
|
-
disabled: !
|
514
|
+
T(i(Ce), {
|
515
|
+
disabled: !p.value.next,
|
516
516
|
"is-next": "",
|
517
|
-
onClick: a[13] || (a[13] = (o) =>
|
517
|
+
onClick: a[13] || (a[13] = (o) => p.value.next ? V(null, !1, p.value.next) : null)
|
518
518
|
}, null, 8, ["disabled"])
|
519
519
|
])) : b("", !0),
|
520
|
-
se.value ? b("", !0) : (
|
521
|
-
T(
|
520
|
+
se.value ? b("", !0) : (u(), h("div", Pl, [
|
521
|
+
T(i(dl), {
|
522
522
|
modelValue: M.value,
|
523
523
|
"onUpdate:modelValue": [
|
524
524
|
a[14] || (a[14] = (o) => M.value = o),
|
525
|
-
a[15] || (a[15] = (o) =>
|
525
|
+
a[15] || (a[15] = (o) => V(null))
|
526
526
|
],
|
527
527
|
label: "Item per page",
|
528
528
|
"is-inline-label": "",
|
@@ -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-Ov9629Pn.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-Ov9629Pn.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-Ov9629Pn.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-Ov9629Pn.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-Ov9629Pn.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-Ov9629Pn.js";
|
3
|
+
import k from "./OcCropper-Bgu0Vygr.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-Ov9629Pn.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-Ov9629Pn.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-Ov9629Pn.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-Ov9629Pn.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,
|