@orchidui/core 1.8.1-113 → 1.8.1-114
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 +49 -49
- 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-BHZKRi83.js → OcAccountSetupProgress-DM8ma1-Q.js} +1 -1
- package/dist/{OcComplexCalendar-DpEmr9kN.js → OcComplexCalendar-BKzxnfd8.js} +1 -1
- package/dist/{OcComplexDatePicker-BaA7wDaR.js → OcComplexDatePicker-nzSRyYwS.js} +1 -1
- package/dist/{OcCropper-DI9cu89P.js → OcCropper-CxYTcM_O.js} +1 -1
- package/dist/{OcDataTable-DB7Q2Frw.js → OcDataTable-DD1_0iU4.js} +108 -107
- package/dist/{OcDraggableList-D6Q9aZI0.js → OcDraggableList-DvxSdQVR.js} +1 -1
- package/dist/{OcEmojiPicker-B9K3pg5W.js → OcEmojiPicker-DUybwecE.js} +1 -1
- package/dist/{OcFilterForm-B4ASDeTk.js → OcFilterForm-D261m2a0.js} +1 -1
- package/dist/{OcFilterSearch-SHFmbTuq.js → OcFilterSearch-CPN0R2ki.js} +1 -1
- package/dist/{OcFilterSearchFor-B1so0yiO.js → OcFilterSearchFor-CmRoRksh.js} +1 -1
- package/dist/{OcModalCropper-C5wArpL9.js → OcModalCropper-DMKCGtyY.js} +2 -2
- package/dist/{OcTimePicker-BFCYWz49.js → OcTimePicker-D31XwrhJ.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-CP56AtvN.js → SubPlanCard-Bi4rYdMr.js} +1 -1
- package/dist/{ThumbnailSection-Ba03sZNp.js → ThumbnailSection-NqOv1ZiW.js} +1 -1
- package/dist/{ThumbnailTheme-ChifSN57.js → ThumbnailTheme-4I9x2lXj.js} +1 -1
- package/dist/{index-SvoT4d-2.js → index-Cxz3IHE2.js} +8 -8
- package/dist/index.js +1 -1
- package/package.json +1 -1
@@ -1,20 +1,20 @@
|
|
1
|
-
import { ref as x, onMounted as
|
2
|
-
import { az as
|
1
|
+
import { ref as x, onMounted as Ae, createBlock as A, openBlock as i, unref as u, withCtx as w, createVNode as T, createElementVNode as N, createElementBlock as h, createCommentVNode as b, mergeProps as Ve, Fragment as ue, renderList as ie, normalizeClass as re, toDisplayString as Ee, computed as E, watch as te, renderSlot as j, createSlots as al, normalizeProps as Ce, guardReactiveProps as De } from "vue";
|
2
|
+
import { az as Ke, B as Te, C as tl, K as ol, Z as sl, aK as ul, aL as il, aM as rl, H as nl, I as Le, j as dl } from "./index-Cxz3IHE2.js";
|
3
3
|
import { VueDraggableNext as Pe } from "vue-draggable-next";
|
4
|
-
import { getFromLocalStorage as
|
5
|
-
import { _ as
|
6
|
-
import { formatFilterDisplay as
|
7
|
-
import { formatCustomItemsPerPageOptions as
|
8
|
-
import { getFilterFromLocalStorage as
|
9
|
-
import { useDataTable as
|
4
|
+
import { getFromLocalStorage as Ue, formatHeadersFromLocalStorage as Be, formatHeadersToLocalStorage as vl, setInLocalStorage as cl } from "./DataTable/utils/editColumnsUtils.js";
|
5
|
+
import { _ as je } from "./OcIcon-CBf___w1.js";
|
6
|
+
import { formatFilterDisplay as ml, clearAllFilters as pl } from "./DataTable/utils/filterUtils.js";
|
7
|
+
import { formatCustomItemsPerPageOptions as fl, getItemsPerPageOptions as gl } from "./DataTable/utils/paginationUtils.js";
|
8
|
+
import { getFilterFromLocalStorage as yl, saveFilterToLocalStorage as bl } from "./DataTable/utils/storageUtils.js";
|
9
|
+
import { useDataTable as kl } from "./DataTable/useDataTable.js";
|
10
10
|
import "dayjs";
|
11
|
-
const
|
11
|
+
const hl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, Sl = {
|
12
12
|
key: 0,
|
13
13
|
class: "gap-y-2 flex flex-col border-b pb-3 border-oc-gray-200"
|
14
|
-
},
|
14
|
+
}, xl = { class: "gap-y-2 flex flex-col" }, wl = {
|
15
15
|
key: 0,
|
16
16
|
class: "flex items-center bg-white justify-between h-[26px]"
|
17
|
-
},
|
17
|
+
}, $l = { class: "flex items-center w-full gap-x-3" }, Fl = { class: "truncate w-full max-w-[160px]" }, Ol = {
|
18
18
|
__name: "ColumnEdit",
|
19
19
|
props: {
|
20
20
|
options: {
|
@@ -42,20 +42,20 @@ const kl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, hl = {
|
|
42
42
|
group: "headers",
|
43
43
|
animation: 500,
|
44
44
|
forceFallback: !1,
|
45
|
-
move: (
|
45
|
+
move: (D) => D.to.dataset.activeHeaders ? !0 : !!D.draggedContext.futureIndex,
|
46
46
|
"onUpdate:modelValue": () => I()
|
47
|
-
}, I = (
|
47
|
+
}, I = (D = !1) => {
|
48
48
|
m.value = m.value.map((p) => ({
|
49
49
|
...p,
|
50
50
|
isActive: !0
|
51
51
|
})), s("update-order", {
|
52
52
|
fixedHeaders: m.value,
|
53
53
|
activeHeaders: n.value,
|
54
|
-
isOnMount:
|
54
|
+
isOnMount: D
|
55
55
|
});
|
56
56
|
};
|
57
|
-
return
|
58
|
-
const
|
57
|
+
return Ae(() => {
|
58
|
+
const D = Ue($.localKey), { fixed: p, active: f } = Be(D, $.headers, $.localKey);
|
59
59
|
m.value = p || $.headers.slice(0, 1), n.value = f || $.headers.slice(1).map((O) => {
|
60
60
|
var ee, le, l;
|
61
61
|
return {
|
@@ -63,17 +63,17 @@ const kl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, hl = {
|
|
63
63
|
isActive: ((l = (le = (ee = $.options) == null ? void 0 : ee.active) == null ? void 0 : le.find((se) => se.key === O.key)) == null ? void 0 : l.isActive) ?? !0
|
64
64
|
};
|
65
65
|
}), I(!0);
|
66
|
-
}), (
|
66
|
+
}), (D, p) => (i(), A(u(Ke), {
|
67
67
|
modelValue: B.value,
|
68
68
|
"onUpdate:modelValue": p[3] || (p[3] = (f) => B.value = f),
|
69
69
|
class: "h-[36px]",
|
70
70
|
"is-attach-to-body": ""
|
71
71
|
}, {
|
72
72
|
menu: w(() => [
|
73
|
-
N("div",
|
74
|
-
m.value.length ? (i(), h("div",
|
73
|
+
N("div", hl, [
|
74
|
+
m.value.length ? (i(), h("div", Sl, [
|
75
75
|
p[4] || (p[4] = N("span", { class: "text-oc-text-400 font-medium" }, "Fixed columns", -1)),
|
76
|
-
T(u(Pe),
|
76
|
+
T(u(Pe), Ve({
|
77
77
|
key: "key",
|
78
78
|
modelValue: m.value,
|
79
79
|
"onUpdate:modelValue": p[0] || (p[0] = (f) => m.value = f)
|
@@ -83,8 +83,8 @@ const kl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, hl = {
|
|
83
83
|
key: f.key,
|
84
84
|
class: re(["flex items-center justify-between h-[26px]", O ? "" : "is-disabled"])
|
85
85
|
}, [
|
86
|
-
N("span", null,
|
87
|
-
O ? (i(), A(u(
|
86
|
+
N("span", null, Ee(f.label), 1),
|
87
|
+
O ? (i(), A(u(je), {
|
88
88
|
key: 0,
|
89
89
|
width: "18",
|
90
90
|
height: "18",
|
@@ -96,9 +96,9 @@ const kl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, hl = {
|
|
96
96
|
_: 1
|
97
97
|
}, 16, ["modelValue"])
|
98
98
|
])) : b("", !0),
|
99
|
-
N("div",
|
99
|
+
N("div", xl, [
|
100
100
|
p[5] || (p[5] = N("span", { class: "text-oc-text-400 font-medium" }, "Active columns", -1)),
|
101
|
-
T(u(Pe),
|
101
|
+
T(u(Pe), Ve({
|
102
102
|
key: "key",
|
103
103
|
modelValue: n.value,
|
104
104
|
"onUpdate:modelValue": p[2] || (p[2] = (f) => n.value = f)
|
@@ -107,9 +107,9 @@ const kl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, hl = {
|
|
107
107
|
(i(!0), h(ue, null, ie(n.value, (f) => (i(), h(ue, {
|
108
108
|
key: f.key
|
109
109
|
}, [
|
110
|
-
f.key !== "actions" ? (i(), h("div",
|
111
|
-
N("div",
|
112
|
-
T(u(
|
110
|
+
f.key !== "actions" ? (i(), h("div", wl, [
|
111
|
+
N("div", $l, [
|
112
|
+
T(u(tl), {
|
113
113
|
modelValue: f.isActive,
|
114
114
|
"onUpdate:modelValue": [
|
115
115
|
(O) => f.isActive = O,
|
@@ -117,9 +117,9 @@ const kl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, hl = {
|
|
117
117
|
],
|
118
118
|
class: "!w-fit"
|
119
119
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
120
|
-
N("div",
|
120
|
+
N("div", Fl, Ee(f.label), 1)
|
121
121
|
]),
|
122
|
-
n.value.length > 1 ? (i(), A(u(
|
122
|
+
n.value.length > 1 ? (i(), A(u(je), {
|
123
123
|
key: 0,
|
124
124
|
width: "18",
|
125
125
|
height: "18",
|
@@ -135,7 +135,7 @@ const kl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, hl = {
|
|
135
135
|
])
|
136
136
|
]),
|
137
137
|
default: w(() => [
|
138
|
-
T(u(
|
138
|
+
T(u(Te), {
|
139
139
|
label: "Edit Column",
|
140
140
|
"left-icon": "setting",
|
141
141
|
variant: "secondary"
|
@@ -144,13 +144,13 @@ const kl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, hl = {
|
|
144
144
|
_: 1
|
145
145
|
}, 8, ["modelValue"]));
|
146
146
|
}
|
147
|
-
},
|
147
|
+
}, Vl = { class: "relative flex flex-col gap-9" }, El = {
|
148
148
|
key: 0,
|
149
149
|
class: "flex items-center px-4 min-h-[52px]"
|
150
|
-
},
|
150
|
+
}, Cl = {
|
151
151
|
key: 0,
|
152
152
|
class: "absolute flex items-center gap-5 left-5"
|
153
|
-
},
|
153
|
+
}, Dl = {
|
154
154
|
key: 1,
|
155
155
|
class: "absolute flex gap-3 left-5"
|
156
156
|
}, Ll = {
|
@@ -159,7 +159,7 @@ const kl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, hl = {
|
|
159
159
|
}, Pl = {
|
160
160
|
key: 2,
|
161
161
|
class: "items-center hidden md:flex"
|
162
|
-
},
|
162
|
+
}, Rl = {
|
163
163
|
__name: "OcDataTable",
|
164
164
|
props: {
|
165
165
|
isLoading: Boolean,
|
@@ -202,7 +202,7 @@ const kl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, hl = {
|
|
202
202
|
"columns-changed": []
|
203
203
|
},
|
204
204
|
setup(K, { emit: oe }) {
|
205
|
-
var pe, fe, ge, ye, be, ke, he, Se, xe, we, $e, Fe;
|
205
|
+
var pe, fe, ge, ye, be, ke, he, Se, xe, we, $e, Fe, Oe;
|
206
206
|
const s = K, $ = oe;
|
207
207
|
let n = x((pe = s.options) == null ? void 0 : pe.pagination);
|
208
208
|
const m = E(() => {
|
@@ -212,7 +212,7 @@ const kl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, hl = {
|
|
212
212
|
var e;
|
213
213
|
return (e = s.options) == null ? void 0 : e.tableOptions;
|
214
214
|
}), I = E(() => s.localDb !== void 0), {
|
215
|
-
localData:
|
215
|
+
localData: D,
|
216
216
|
setFilter: p,
|
217
217
|
setSortBy: f,
|
218
218
|
paginationData: O,
|
@@ -220,10 +220,11 @@ const kl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, hl = {
|
|
220
220
|
// sortBy,
|
221
221
|
// toggleSort,
|
222
222
|
// updateOrAddLocalData,
|
223
|
-
} =
|
223
|
+
} = kl({
|
224
224
|
id: s.id,
|
225
225
|
name: (fe = s.localDb) == null ? void 0 : fe.table_name,
|
226
|
-
localDb: (ge = s.localDb) == null ? void 0 : ge.db
|
226
|
+
localDb: (ge = s.localDb) == null ? void 0 : ge.db,
|
227
|
+
options: (ye = s.localDb) == null ? void 0 : ye.options
|
227
228
|
});
|
228
229
|
I.value && (n.value = O.value, te(() => s.filter, () => {
|
229
230
|
p(s.filter);
|
@@ -244,50 +245,50 @@ const kl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, hl = {
|
|
244
245
|
headers: B.value ? B.value.map((r) => {
|
245
246
|
var v, c;
|
246
247
|
return r.class = ((c = (v = F.value) == null ? void 0 : v.headers.find((d) => d.key === r.key)) == null ? void 0 : c.class) ?? "", r;
|
247
|
-
}).filter((r) => r.isActive) : (a = F.value) == null ? void 0 : a.headers.filter((r) =>
|
248
|
+
}).filter((r) => r.isActive) : (a = F.value) == null ? void 0 : a.headers.filter((r) => Me(r.key))
|
248
249
|
};
|
249
|
-
return (I.value ||
|
250
|
+
return (I.value || D.value.length > 0) && (e.fields = D.value), e;
|
250
251
|
}), l = E(() => {
|
251
252
|
var e;
|
252
253
|
return (e = s.options) == null ? void 0 : e.filterOptions;
|
253
254
|
}), se = E(() => {
|
254
255
|
var e;
|
255
256
|
return (e = s.options) == null ? void 0 : e.hidePerPageDropdown;
|
256
|
-
}),
|
257
|
+
}), Ie = E(() => {
|
257
258
|
var e;
|
258
259
|
return ((e = n.value) == null ? void 0 : e.last_page) === 1;
|
259
|
-
}), R = x(!1),
|
260
|
-
(
|
261
|
-
), ne = ((
|
260
|
+
}), 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(
|
261
|
+
(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
|
262
|
+
), ne = ((Oe = s.filter[(Fe = ($e = l.value) == null ? void 0 : $e.search) == null ? void 0 : Fe.key]) == null ? void 0 : Oe.trim()) ?? "", U = x(ne ? ne.split(",") : []), de = x(!1), qe = E(
|
262
263
|
() => {
|
263
264
|
var e;
|
264
|
-
return
|
265
|
+
return fl((e = s.options) == null ? void 0 : e.perPageOptions);
|
265
266
|
}
|
266
|
-
),
|
267
|
+
), Qe = E(() => gl(qe.value, n.value)), Ne = E(() => {
|
267
268
|
var e;
|
268
269
|
return ((e = s.selected) == null ? void 0 : e.length) > 0;
|
269
270
|
}), ve = (e) => {
|
270
271
|
!e.trim() || !t.value.selectedSearchOption && U.value.includes(e) || (U.value = [e], V(), $("search-query-changed", e));
|
271
|
-
},
|
272
|
+
}, Re = (e) => {
|
272
273
|
U.value = U.value.filter((a) => a !== e), V();
|
273
274
|
}, J = s.filter;
|
274
275
|
!J && n.value ? J.page = 1 : !J && m && (J.cursor = "");
|
275
|
-
const t = x(J),
|
276
|
+
const t = x(J), ze = E(() => ml(t.value, l.value)), Me = (e) => {
|
276
277
|
var a, r, v, c, d, o;
|
277
278
|
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;
|
278
|
-
},
|
279
|
-
var v, c, d, o, g, S,
|
280
|
-
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[(C = (
|
281
|
-
const q =
|
282
|
-
|
279
|
+
}, Je = ({ fixedHeaders: e, activeHeaders: a, isOnMount: r }) => {
|
280
|
+
var v, c, d, o, g, S, P, C;
|
281
|
+
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[(C = (P = l.value) == null ? void 0 : P.columnEdit) == null ? void 0 : C.key].active = a, B.value = [...e, ...a], !r) {
|
282
|
+
const q = vl(e, a);
|
283
|
+
cl(l.value.columnEdit.localStorageKey, q);
|
283
284
|
}
|
284
285
|
$("columns-changed", a);
|
285
|
-
},
|
286
|
+
}, Ze = () => {
|
286
287
|
var e, a, r, v, c, d;
|
287
288
|
if ((a = (e = l.value) == null ? void 0 : e.columnEdit) != null && a.localStorageKey) {
|
288
|
-
const o =
|
289
|
+
const o = Ue(l.value.columnEdit.localStorageKey);
|
289
290
|
if (o) {
|
290
|
-
const { fixed: g, active: S } =
|
291
|
+
const { fixed: g, active: S } = Be(
|
291
292
|
o,
|
292
293
|
F.value.headers,
|
293
294
|
l.value.columnEdit.localStorageKey
|
@@ -295,24 +296,24 @@ const kl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, hl = {
|
|
295
296
|
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];
|
296
297
|
}
|
297
298
|
}
|
298
|
-
},
|
299
|
+
}, Ge = (e) => {
|
299
300
|
t.value.selectedSearchOption = e;
|
300
|
-
}, Ge = () => {
|
301
|
-
U.value = [], P.value = "", t.value = ml(t.value, l.value, M.value, P.value), V();
|
302
301
|
}, He = () => {
|
303
|
-
|
302
|
+
U.value = [], L.value = "", t.value = pl(t.value, l.value, M.value, L.value), V();
|
304
303
|
}, We = () => {
|
305
|
-
|
306
|
-
}, Xe = () =>
|
307
|
-
|
308
|
-
|
304
|
+
V(null, z.value);
|
305
|
+
}, Xe = () => {
|
306
|
+
bl(s.id, t.value);
|
307
|
+
}, Ye = () => yl(s.id), ce = x(null), V = (e = null, a = !1, r = "", v = !1, c = !1) => {
|
308
|
+
var o, g, S, P, C, q, Z, G, H, W, X, Y, _;
|
309
|
+
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 && ((C = (P = l.value.search) == null ? void 0 : P.options) != null && C.length ? (Object.keys(t.value).forEach((k) => {
|
309
310
|
var Q;
|
310
311
|
(Q = l.value.search.options) != null && Q.map((y) => y.value).includes(k) && delete t.value[k];
|
311
312
|
}), 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) => {
|
312
313
|
Array.isArray(t.value[k]) && t.value[k].length === 0 && delete t.value[k];
|
313
314
|
}));
|
314
315
|
let d = (X = (W = l.value) == null ? void 0 : W.tabs) == null ? void 0 : X.key;
|
315
|
-
if (d &&
|
316
|
+
if (d && L.value !== t.value[d]) {
|
316
317
|
const k = (_ = (Y = l.value.tabs) == null ? void 0 : Y.options) == null ? void 0 : _.find(
|
317
318
|
(Q) => {
|
318
319
|
var y, ae;
|
@@ -320,25 +321,25 @@ const kl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, hl = {
|
|
320
321
|
}
|
321
322
|
);
|
322
323
|
if (k != null && k.value)
|
323
|
-
return
|
324
|
+
return L.value = k.value, V(), !1;
|
324
325
|
}
|
325
|
-
|
326
|
+
Xe(), clearTimeout(ce.value), ce.value = setTimeout(() => {
|
326
327
|
$("update:filter", t.value, v);
|
327
328
|
}, 100);
|
328
|
-
},
|
329
|
-
(a === l.value.tabs.key || a === "tabs") && (
|
329
|
+
}, _e = (e, a) => {
|
330
|
+
(a === l.value.tabs.key || a === "tabs") && (L.value = ""), V(e), $("filter-removed", a);
|
330
331
|
};
|
331
|
-
|
332
|
+
Ae(() => {
|
332
333
|
var a, r, v, c, d, o, g;
|
333
|
-
|
334
|
-
const e =
|
335
|
-
e && (t.value = JSON.parse(e),
|
334
|
+
Ze();
|
335
|
+
const e = Ye();
|
336
|
+
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));
|
336
337
|
});
|
337
338
|
const me = E(() => s.isLoading || ee.value);
|
338
339
|
return (e, a) => {
|
339
340
|
var r, v, c, d;
|
340
|
-
return i(), h("div",
|
341
|
-
F.value ? (i(), A(u(
|
341
|
+
return i(), h("div", Vl, [
|
342
|
+
F.value ? (i(), A(u(ol), {
|
342
343
|
key: 0,
|
343
344
|
selected: K.selected,
|
344
345
|
"row-key": K.rowKey,
|
@@ -352,7 +353,7 @@ const kl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, hl = {
|
|
352
353
|
"onUpdate:selected": a[8] || (a[8] = (o) => e.$emit("update:selected", o)),
|
353
354
|
"onClick:row": a[9] || (a[9] = (o) => e.$emit("click:row", o)),
|
354
355
|
"onHover:cell": a[10] || (a[10] = (o) => e.$emit("hover:cell", o))
|
355
|
-
},
|
356
|
+
}, al({
|
356
357
|
after: w(() => [
|
357
358
|
j(e.$slots, "after")
|
358
359
|
]),
|
@@ -360,28 +361,28 @@ const kl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, hl = {
|
|
360
361
|
j(e.$slots, "empty")
|
361
362
|
]),
|
362
363
|
"table-header": w((o) => [
|
363
|
-
j(e.$slots, "table-header",
|
364
|
+
j(e.$slots, "table-header", Ce(De(o)))
|
364
365
|
]),
|
365
366
|
"table-body": w((o) => [
|
366
|
-
j(e.$slots, "table-body",
|
367
|
+
j(e.$slots, "table-body", Ce(De(o)))
|
367
368
|
]),
|
368
369
|
_: 2
|
369
370
|
}, [
|
370
371
|
e.$slots.before || (r = l.value) != null && r.search || (v = l.value) != null && v.form || (c = l.value) != null && c.tabs ? {
|
371
372
|
name: "before",
|
372
373
|
fn: w(() => {
|
373
|
-
var o, g, S,
|
374
|
+
var o, g, S, P;
|
374
375
|
return [
|
375
376
|
j(e.$slots, "before"),
|
376
|
-
(o = l.value) != null && o.search || (g = l.value) != null && g.form || (S = l.value) != null && S.tabs ? (i(), h("div",
|
377
|
-
|
377
|
+
(o = l.value) != null && o.search || (g = l.value) != null && g.form || (S = l.value) != null && S.tabs ? (i(), h("div", El, [
|
378
|
+
Ne.value ? (i(), h("div", Cl, [
|
378
379
|
j(e.$slots, "bulk-actions", { selectedRows: K.selected })
|
379
|
-
])) : (i(), h("div",
|
380
|
-
(
|
380
|
+
])) : (i(), h("div", Dl, [
|
381
|
+
(P = l.value) != null && P.tabs ? (i(), A(u(sl), {
|
381
382
|
key: 0,
|
382
|
-
modelValue:
|
383
|
+
modelValue: L.value,
|
383
384
|
"onUpdate:modelValue": [
|
384
|
-
a[0] || (a[0] = (C) =>
|
385
|
+
a[0] || (a[0] = (C) => L.value = C),
|
385
386
|
a[1] || (a[1] = (C) => V(null, !1, "", !1, !0))
|
386
387
|
],
|
387
388
|
"is-disabled": me.value,
|
@@ -399,16 +400,16 @@ const kl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, hl = {
|
|
399
400
|
l.value ? de.value ? "md:w-fit w-full" : "" : "w-full justify-end"
|
400
401
|
])
|
401
402
|
}, [
|
402
|
-
(G = l.value) != null && G.search ? (i(), A(u(
|
403
|
+
(G = l.value) != null && G.search ? (i(), A(u(ul), {
|
403
404
|
key: 0,
|
404
405
|
"is-search-only": !l.value.tabs || l.value.isSearchOnly,
|
405
406
|
"search-options": ((H = l.value.search) == null ? void 0 : H.options) ?? [],
|
406
407
|
"selected-option": (((W = t.value) == null ? void 0 : W.selectedSearchOption) || ((_ = (Y = (X = l.value.search) == null ? void 0 : X.options) == null ? void 0 : Y[0]) == null ? void 0 : _.value)) ?? "keywords",
|
407
408
|
onAddQuery: ve,
|
408
409
|
onToggle: a[2] || (a[2] = (y) => de.value = y),
|
409
|
-
onChangeSearchKey:
|
410
|
+
onChangeSearchKey: Ge
|
410
411
|
}, null, 8, ["is-search-only", "search-options", "selected-option"])) : b("", !0),
|
411
|
-
(k = l.value) != null && k.form ? (i(), A(u(
|
412
|
+
(k = l.value) != null && k.form ? (i(), A(u(Ke), {
|
412
413
|
key: 1,
|
413
414
|
modelValue: R.value,
|
414
415
|
"onUpdate:modelValue": [
|
@@ -420,7 +421,7 @@ const kl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, hl = {
|
|
420
421
|
"is-attach-to-body": ""
|
421
422
|
}, {
|
422
423
|
menu: w(() => [
|
423
|
-
R.value ? (i(), A(u(
|
424
|
+
R.value ? (i(), A(u(il), {
|
424
425
|
key: 0,
|
425
426
|
id: K.id,
|
426
427
|
"json-form": l.value.form ?? [],
|
@@ -431,19 +432,19 @@ const kl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, hl = {
|
|
431
432
|
onFilterFieldsChanged: a[4] || (a[4] = (y) => $("filter-fields-changed", y)),
|
432
433
|
onCancel: a[5] || (a[5] = (y) => R.value = !1)
|
433
434
|
}, {
|
434
|
-
default: w(({ errors: y, values: ae, jsonForm:
|
435
|
+
default: w(({ errors: y, values: ae, jsonForm: el, updateForm: ll }) => [
|
435
436
|
j(e.$slots, "custom-filter-form", {
|
436
437
|
errors: y,
|
437
438
|
values: ae,
|
438
|
-
jsonForm:
|
439
|
-
updateFilter:
|
439
|
+
jsonForm: el,
|
440
|
+
updateFilter: ll
|
440
441
|
})
|
441
442
|
]),
|
442
443
|
_: 3
|
443
444
|
}, 8, ["id", "json-form", "grid", "values", "actions"])) : b("", !0)
|
444
445
|
]),
|
445
446
|
default: w(() => [
|
446
|
-
T(u(
|
447
|
+
T(u(Te), {
|
447
448
|
"is-active": R.value,
|
448
449
|
variant: "secondary",
|
449
450
|
"left-icon": "filter"
|
@@ -451,24 +452,24 @@ const kl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, hl = {
|
|
451
452
|
]),
|
452
453
|
_: 3
|
453
454
|
}, 8, ["modelValue"])) : b("", !0),
|
454
|
-
l.value.columnEdit ? (i(), A(
|
455
|
+
l.value.columnEdit ? (i(), A(Ol, {
|
455
456
|
key: 2,
|
456
457
|
options: t.value.columnEdit,
|
457
458
|
headers: ((Q = F.value) == null ? void 0 : Q.headers) || [],
|
458
459
|
"local-key": l.value.columnEdit.localStorageKey,
|
459
|
-
onUpdateOrder:
|
460
|
+
onUpdateOrder: Je
|
460
461
|
}, null, 8, ["options", "headers", "local-key"])) : b("", !0)
|
461
462
|
], 2)) : b("", !0)
|
462
463
|
];
|
463
464
|
})
|
464
465
|
])) : b("", !0),
|
465
|
-
T(u(
|
466
|
-
filters:
|
466
|
+
T(u(rl), {
|
467
|
+
filters: ze.value,
|
467
468
|
queries: U.value,
|
468
469
|
class: "border-t border-oc-gray-200",
|
469
|
-
onRemoveQuery:
|
470
|
-
onRemoveAll:
|
471
|
-
onRemoveFilter:
|
470
|
+
onRemoveQuery: Re,
|
471
|
+
onRemoveAll: He,
|
472
|
+
onRemoveFilter: _e
|
472
473
|
}, null, 8, ["filters", "queries"])
|
473
474
|
];
|
474
475
|
}),
|
@@ -476,10 +477,10 @@ const kl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, hl = {
|
|
476
477
|
} : void 0,
|
477
478
|
ie((d = F.value) == null ? void 0 : d.headers, (o, g) => ({
|
478
479
|
name: o.key,
|
479
|
-
fn: w(({ data: S, item:
|
480
|
+
fn: w(({ data: S, item: P }) => [
|
480
481
|
j(e.$slots, o.key, {
|
481
482
|
data: S,
|
482
|
-
item:
|
483
|
+
item: P
|
483
484
|
})
|
484
485
|
])
|
485
486
|
}))
|
@@ -489,12 +490,12 @@ const kl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, hl = {
|
|
489
490
|
key: 1,
|
490
491
|
class: re(["flex items-center gap-3", u(n) && u(n).last_page === 1 ? "justify-end" : ""])
|
491
492
|
}, [
|
492
|
-
u(n) && !
|
493
|
+
u(n) && !Ie.value ? (i(), A(u(nl), {
|
493
494
|
key: 0,
|
494
495
|
modelValue: z.value,
|
495
496
|
"onUpdate:modelValue": [
|
496
497
|
a[11] || (a[11] = (o) => z.value = o),
|
497
|
-
|
498
|
+
We
|
498
499
|
],
|
499
500
|
class: "justify-center",
|
500
501
|
"max-page": u(n).last_page,
|
@@ -513,7 +514,7 @@ const kl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, hl = {
|
|
513
514
|
}, null, 8, ["disabled"])
|
514
515
|
])) : b("", !0),
|
515
516
|
se.value ? b("", !0) : (i(), h("div", Pl, [
|
516
|
-
T(u(
|
517
|
+
T(u(dl), {
|
517
518
|
modelValue: M.value,
|
518
519
|
"onUpdate:modelValue": [
|
519
520
|
a[14] || (a[14] = (o) => M.value = o),
|
@@ -522,7 +523,7 @@ const kl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, hl = {
|
|
522
523
|
label: "Item per page",
|
523
524
|
"is-inline-label": "",
|
524
525
|
"popper-options": { placement: "auto" },
|
525
|
-
options:
|
526
|
+
options: Qe.value
|
526
527
|
}, null, 8, ["modelValue", "options"])
|
527
528
|
]))
|
528
529
|
], 2)) : b("", !0)
|
@@ -531,5 +532,5 @@ const kl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, hl = {
|
|
531
532
|
}
|
532
533
|
};
|
533
534
|
export {
|
534
|
-
|
535
|
+
Rl as default
|
535
536
|
};
|
@@ -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-Cxz3IHE2.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-Cxz3IHE2.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-Cxz3IHE2.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-Cxz3IHE2.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-Cxz3IHE2.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-Cxz3IHE2.js";
|
3
|
+
import k from "./OcCropper-CxYTcM_O.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-Cxz3IHE2.js";
|
3
3
|
import c from "dayjs";
|
4
4
|
const w = {
|
5
5
|
__name: "OcTimePicker",
|