@orchidui/core 1.8.1-41 → 1.8.1-42
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/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/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-CfK4DhqI.js → OcAccountSetupProgress-_DYL4l9R.js} +1 -1
- package/dist/{OcComplexCalendar-D30GXpy2.js → OcComplexCalendar-BbM3CByZ.js} +1 -1
- package/dist/{OcComplexDatePicker-DD8DOHif.js → OcComplexDatePicker-lsBGe8L_.js} +1 -1
- package/dist/{OcCropper-DhxFUxbJ.js → OcCropper-B-CVJmDW.js} +1 -1
- package/dist/{OcDataTable-Cf6wmJW2.js → OcDataTable-C5qiqDTx.js} +111 -111
- package/dist/{OcDraggableList-pK7klIYI.js → OcDraggableList-CJM9FiOf.js} +1 -1
- package/dist/{OcEmojiPicker-D886B8hz.js → OcEmojiPicker-BHQg8c8K.js} +1 -1
- package/dist/{OcFilterForm-UrEVxZtW.js → OcFilterForm-DqjkZkSZ.js} +1 -1
- package/dist/{OcFilterSearch-CKWJ4B9S.js → OcFilterSearch-CMGQPh2P.js} +1 -1
- package/dist/{OcFilterSearchFor-GT6XYg1R.js → OcFilterSearchFor-CrLlQJ6y.js} +1 -1
- package/dist/{OcModalCropper-CJmBDGca.js → OcModalCropper-DfzmEjBb.js} +2 -2
- package/dist/{OcTimePicker-DYD2uUuY.js → OcTimePicker-DHpcpxod.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-DCaPD4sV.js → SubPlanCard-CRNxGk49.js} +1 -1
- package/dist/{ThumbnailSection-2wG4C9dw.js → ThumbnailSection-DwSuY0Wy.js} +1 -1
- package/dist/{ThumbnailTheme-GJ93fnL4.js → ThumbnailTheme-Bti6MA3z.js} +1 -1
- package/dist/{index-DbinnvEU.js → index-BXSABQPr.js} +8 -8
- package/dist/index.js +1 -1
- package/package.json +1 -1
@@ -1,9 +1,9 @@
|
|
1
|
-
import { ref as N, onMounted as Ve, openBlock as d, createBlock as q, unref as x, withCtx as C, createElementVNode as G, createElementBlock as F, createVNode as R, mergeProps as
|
2
|
-
import { ay as
|
1
|
+
import { ref as N, onMounted as Ve, openBlock as d, createBlock as q, unref as x, withCtx as C, createElementVNode as G, createElementBlock as F, createVNode as R, mergeProps as ke, Fragment as ae, renderList as se, normalizeClass as oe, toDisplayString as he, createCommentVNode as $, computed as M, createSlots as Je, renderSlot as T, normalizeProps as xe, guardReactiveProps as we } from "vue";
|
2
|
+
import { ay as Fe, C as ze, B as je, K as He, Z as Ze, aJ as Ge, aK as We, aL as Xe, H as _e, I as Se, j as el } from "./index-BXSABQPr.js";
|
3
3
|
import te from "dayjs";
|
4
|
-
import { VueDraggableNext as
|
5
|
-
import { getFromLocalStorage as ue, formatHeadersFromLocalStorage as
|
6
|
-
import { _ as
|
4
|
+
import { VueDraggableNext as $e } from "vue-draggable-next";
|
5
|
+
import { getFromLocalStorage as ue, formatHeadersFromLocalStorage as Ae, formatHeadersToLocalStorage as ll, setInLocalStorage as Ee } from "./DataTable/utils/editColumnsUtils.js";
|
6
|
+
import { _ as Oe } from "./OcIcon-CSpRxnwd.js";
|
7
7
|
const al = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, tl = {
|
8
8
|
key: 0,
|
9
9
|
class: "gap-y-2 flex flex-col border-b pb-3 border-oc-gray-200"
|
@@ -28,13 +28,13 @@ const al = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, tl = {
|
|
28
28
|
},
|
29
29
|
emits: ["change-active", "onMoved", "update-order"],
|
30
30
|
setup(L, { emit: ee }) {
|
31
|
-
const
|
31
|
+
const p = ee, D = L, m = N([]), g = N([]), H = N(!1), j = (a = !1) => {
|
32
32
|
g.value = g.value.map((b) => ({
|
33
33
|
...b,
|
34
34
|
isActive: !0
|
35
|
-
})),
|
35
|
+
})), p("update-order", {
|
36
36
|
fixedHeaders: g.value,
|
37
|
-
activeHeaders:
|
37
|
+
activeHeaders: m.value,
|
38
38
|
isOnMount: a
|
39
39
|
});
|
40
40
|
}, W = {
|
@@ -47,15 +47,15 @@ const al = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, tl = {
|
|
47
47
|
"onUpdate:modelValue": () => j()
|
48
48
|
};
|
49
49
|
return Ve(() => {
|
50
|
-
const a = ue(D.localKey), { fixed: b, active: k } =
|
51
|
-
g.value = b || D.headers.slice(0, 1),
|
52
|
-
var
|
50
|
+
const a = ue(D.localKey), { fixed: b, active: k } = Ae(a, D.headers, D.localKey);
|
51
|
+
g.value = b || D.headers.slice(0, 1), m.value = k || D.headers.slice(1).map((E) => {
|
52
|
+
var V, Q, I;
|
53
53
|
return {
|
54
54
|
...E,
|
55
|
-
isActive: ((I = (Q = (
|
55
|
+
isActive: ((I = (Q = (V = D.options) == null ? void 0 : V.active) == null ? void 0 : Q.find((X) => X.key === E.key)) == null ? void 0 : I.isActive) ?? !0
|
56
56
|
};
|
57
57
|
}), j(!0);
|
58
|
-
}), (a, b) => (d(), q(x(
|
58
|
+
}), (a, b) => (d(), q(x(Fe), {
|
59
59
|
modelValue: H.value,
|
60
60
|
"onUpdate:modelValue": b[3] || (b[3] = (k) => H.value = k),
|
61
61
|
class: "h-[36px]",
|
@@ -65,7 +65,7 @@ const al = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, tl = {
|
|
65
65
|
G("div", al, [
|
66
66
|
g.value.length ? (d(), F("div", tl, [
|
67
67
|
b[4] || (b[4] = G("span", { class: "text-oc-text-400 font-medium" }, "Fixed columns", -1)),
|
68
|
-
R(x(
|
68
|
+
R(x($e), ke({
|
69
69
|
key: "key",
|
70
70
|
modelValue: g.value,
|
71
71
|
"onUpdate:modelValue": b[0] || (b[0] = (k) => g.value = k)
|
@@ -75,8 +75,8 @@ const al = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, tl = {
|
|
75
75
|
key: k.key,
|
76
76
|
class: oe(["flex items-center justify-between h-[26px]", E ? "" : "is-disabled"])
|
77
77
|
}, [
|
78
|
-
G("span", null,
|
79
|
-
E ? (d(), q(x(
|
78
|
+
G("span", null, he(k.label), 1),
|
79
|
+
E ? (d(), q(x(Oe), {
|
80
80
|
key: 0,
|
81
81
|
width: "18",
|
82
82
|
height: "18",
|
@@ -90,13 +90,13 @@ const al = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, tl = {
|
|
90
90
|
])) : $("", !0),
|
91
91
|
G("div", sl, [
|
92
92
|
b[5] || (b[5] = G("span", { class: "text-oc-text-400 font-medium" }, "Active columns", -1)),
|
93
|
-
R(x(
|
93
|
+
R(x($e), ke({
|
94
94
|
key: "key",
|
95
|
-
modelValue:
|
96
|
-
"onUpdate:modelValue": b[2] || (b[2] = (k) =>
|
95
|
+
modelValue: m.value,
|
96
|
+
"onUpdate:modelValue": b[2] || (b[2] = (k) => m.value = k)
|
97
97
|
}, W, { "data-active-headers": "true" }), {
|
98
98
|
default: C(() => [
|
99
|
-
(d(!0), F(ae, null, se(
|
99
|
+
(d(!0), F(ae, null, se(m.value, (k) => (d(), F(ae, {
|
100
100
|
key: k.key
|
101
101
|
}, [
|
102
102
|
k.key !== "actions" ? (d(), F("div", ol, [
|
@@ -109,9 +109,9 @@ const al = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, tl = {
|
|
109
109
|
],
|
110
110
|
class: "!w-fit"
|
111
111
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
112
|
-
G("div", rl,
|
112
|
+
G("div", rl, he(k.label), 1)
|
113
113
|
]),
|
114
|
-
|
114
|
+
m.value.length > 1 ? (d(), q(x(Oe), {
|
115
115
|
key: 0,
|
116
116
|
width: "18",
|
117
117
|
height: "18",
|
@@ -127,7 +127,7 @@ const al = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, tl = {
|
|
127
127
|
])
|
128
128
|
]),
|
129
129
|
default: C(() => [
|
130
|
-
R(x(
|
130
|
+
R(x(je), {
|
131
131
|
label: "Edit Column",
|
132
132
|
"left-icon": "setting",
|
133
133
|
variant: "secondary"
|
@@ -190,16 +190,16 @@ const al = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, tl = {
|
|
190
190
|
"columns-changed": []
|
191
191
|
},
|
192
192
|
setup(L, { emit: ee }) {
|
193
|
-
var
|
194
|
-
const
|
193
|
+
var de, ve, ce, fe, pe, me, ye, ge, be;
|
194
|
+
const p = L, D = ee, m = M(() => {
|
195
195
|
var l;
|
196
|
-
return (l =
|
196
|
+
return (l = p.options) == null ? void 0 : l.pagination;
|
197
197
|
}), g = M(() => {
|
198
198
|
var l;
|
199
|
-
return (l =
|
199
|
+
return (l = p.options) == null ? void 0 : l.cursor;
|
200
200
|
}), H = N(), j = M(() => {
|
201
201
|
var l;
|
202
|
-
return (l =
|
202
|
+
return (l = p.options) == null ? void 0 : l.tableOptions;
|
203
203
|
}), W = M(() => {
|
204
204
|
var l;
|
205
205
|
return {
|
@@ -207,30 +207,30 @@ const al = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, tl = {
|
|
207
207
|
headers: H.value ? H.value.map((e) => {
|
208
208
|
var o, r;
|
209
209
|
return e.class = ((r = (o = j.value) == null ? void 0 : o.headers.find((i) => i.key === e.key)) == null ? void 0 : r.class) ?? "", e;
|
210
|
-
}).filter((e) =>
|
210
|
+
}).filter((e) => ne(e.key)) : (l = j.value) == null ? void 0 : l.headers.filter((e) => ne(e.key))
|
211
211
|
};
|
212
212
|
}), a = M(() => {
|
213
213
|
var l;
|
214
|
-
return (l =
|
214
|
+
return (l = p.options) == null ? void 0 : l.filterOptions;
|
215
215
|
}), b = M(() => {
|
216
216
|
var l;
|
217
|
-
return (l =
|
217
|
+
return (l = p.options) == null ? void 0 : l.hidePerPageDropdown;
|
218
218
|
}), k = M(() => {
|
219
219
|
var l;
|
220
|
-
return ((l =
|
221
|
-
}), E = N(!1),
|
222
|
-
(
|
223
|
-
), X = ((
|
220
|
+
return ((l = m.value) == null ? void 0 : l.last_page) === 1;
|
221
|
+
}), E = N(!1), V = N(p.filter[(ve = (de = a.value) == null ? void 0 : de.tabs) == null ? void 0 : ve.key]), Q = N(p.filter.page), I = N(
|
222
|
+
(fe = (ce = a.value) == null ? void 0 : ce.per_page) != null && fe.key ? p.filter[(me = (pe = a.value) == null ? void 0 : pe.per_page) == null ? void 0 : me.key] : p.filter.per_page
|
223
|
+
), X = ((be = p.filter[(ge = (ye = a.value) == null ? void 0 : ye.search) == null ? void 0 : ge.key]) == null ? void 0 : be.trim()) ?? "", J = N(X ? X.split(",") : []), re = N(!1), Ce = M(
|
224
224
|
() => {
|
225
225
|
var l, e;
|
226
|
-
return (e = (l =
|
226
|
+
return (e = (l = p.options) == null ? void 0 : l.perPageOptions) == null ? void 0 : e.map(
|
227
227
|
(o) => ({
|
228
228
|
label: `${o}`,
|
229
229
|
value: o
|
230
230
|
})
|
231
231
|
);
|
232
232
|
}
|
233
|
-
),
|
233
|
+
), De = M(() => {
|
234
234
|
let l = [
|
235
235
|
{
|
236
236
|
label: "10",
|
@@ -264,52 +264,52 @@ const al = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, tl = {
|
|
264
264
|
label: "99",
|
265
265
|
value: 99
|
266
266
|
}
|
267
|
-
], e =
|
268
|
-
if (
|
269
|
-
const o =
|
267
|
+
], e = Ce.value ?? l;
|
268
|
+
if (m.value) {
|
269
|
+
const o = m.value.total < 100 ? m.value.total : 100;
|
270
270
|
o > 10 && (e = e.filter((r) => r.value <= o));
|
271
271
|
}
|
272
272
|
return [...new Set(e)];
|
273
|
-
}),
|
273
|
+
}), Ke = M(() => {
|
274
274
|
var l;
|
275
|
-
return ((l =
|
276
|
-
}),
|
275
|
+
return ((l = p.selected) == null ? void 0 : l.length) > 0;
|
276
|
+
}), ie = (l) => {
|
277
277
|
!l.trim() || J.value.includes(l) || (J.value = [l], K(), D("search-query-changed", l));
|
278
278
|
}, Le = (l) => {
|
279
279
|
J.value = J.value.filter((e) => e !== l), K();
|
280
|
-
}, Z =
|
281
|
-
!Z &&
|
280
|
+
}, Z = p.filter;
|
281
|
+
!Z && m ? Z.page = 1 : !Z && g && (Z.cursor = "");
|
282
282
|
const t = N(Z), Pe = () => {
|
283
|
-
var e, o, r, i, v, s,
|
284
|
-
J.value = [],
|
283
|
+
var e, o, r, i, v, s, c, y, S, w, A, P, U, Y;
|
284
|
+
J.value = [], V.value = "";
|
285
285
|
const l = {};
|
286
|
-
a.value ? Z.page = 1 : Z.cursor = "", (o = (e = a.value) == null ? void 0 : e.per_page) != null && o.key ? l[(i = (r = a.value) == null ? void 0 : r.per_page) == null ? void 0 : i.key] = I.value : l.per_page = I.value, (s = (v = a.value) == null ? void 0 : v.tabs) != null && s.key ? l[(y = (
|
286
|
+
a.value ? Z.page = 1 : Z.cursor = "", (o = (e = a.value) == null ? void 0 : e.per_page) != null && o.key ? l[(i = (r = a.value) == null ? void 0 : r.per_page) == null ? void 0 : i.key] = I.value : l.per_page = I.value, (s = (v = a.value) == null ? void 0 : v.tabs) != null && s.key ? l[(y = (c = a.value) == null ? void 0 : c.tabs) == null ? void 0 : y.key] = V.value : l.tabs = V.value, (w = (S = a.value) == null ? void 0 : S.columnEdit) != null && w.key && (l[(P = (A = a.value) == null ? void 0 : A.columnEdit) == null ? void 0 : P.key] = t.value[(Y = (U = a.value) == null ? void 0 : U.columnEdit) == null ? void 0 : Y.key]), t.value = l, K();
|
287
287
|
}, Ue = () => {
|
288
288
|
K(null, Q.value);
|
289
289
|
}, Ye = () => {
|
290
|
-
|
291
|
-
}, Be = () =>
|
292
|
-
var v, s,
|
293
|
-
|
294
|
-
var
|
295
|
-
(
|
290
|
+
p.id && Ee(p.id, JSON.stringify(t.value));
|
291
|
+
}, Be = () => p.id ? ue(p.id) : null, K = (l = null, e = !1, o = "", r = !1) => {
|
292
|
+
var v, s, c, y, S, w, A, P, U, Y, z, B, u;
|
293
|
+
m.value && !e && (Q.value = 1), m.value ? t.value.page = Q.value : t.value.cursor = o, (v = a.value) != null && v.per_page ? t.value[a.value.per_page.key] = I.value : t.value.per_page = I.value, (s = a.value) != null && s.tabs && (t.value[a.value.tabs.key] = V.value), (c = a.value) != null && c.search && ((S = (y = a.value.search) == null ? void 0 : y.options) != null && S.length ? (Object.keys(t.value).forEach((n) => {
|
294
|
+
var O;
|
295
|
+
(O = a.value.search.options) != null && O.map((h) => h.value).includes(n) && delete t.value[n];
|
296
296
|
}), t.value[((w = t.value) == null ? void 0 : w.selectedSearchOption) || ((U = (P = (A = a.value.search) == null ? void 0 : A.options) == null ? void 0 : P[0]) == null ? void 0 : U.value) || a.value.search.key] = J.value.join()) : t.value[a.value.search.key] = J.value.join()), l && (E.value = !1, t.value = { ...t.value, ...l }, Object.keys(t.value).forEach((n) => {
|
297
297
|
Array.isArray(t.value[n]) && t.value[n].length === 0 && delete t.value[n];
|
298
298
|
}));
|
299
299
|
let i = (z = (Y = a.value) == null ? void 0 : Y.tabs) == null ? void 0 : z.key;
|
300
|
-
if (i &&
|
300
|
+
if (i && V.value !== t.value[i]) {
|
301
301
|
const n = (u = (B = a.value.tabs) == null ? void 0 : B.options) == null ? void 0 : u.find(
|
302
|
-
(
|
303
|
-
var h,
|
304
|
-
return ((h =
|
302
|
+
(O) => {
|
303
|
+
var h, f;
|
304
|
+
return ((h = O.value) == null ? void 0 : h.toString()) === ((f = t.value[i]) == null ? void 0 : f.toString());
|
305
305
|
}
|
306
306
|
);
|
307
307
|
if (n != null && n.value)
|
308
|
-
return
|
308
|
+
return V.value = n.value, K(), !1;
|
309
309
|
}
|
310
310
|
Ye(), D("update:filter", t.value, r);
|
311
311
|
}, Me = (l, e) => {
|
312
|
-
(e === a.value.tabs.key || e === "tabs") && (
|
312
|
+
(e === a.value.tabs.key || e === "tabs") && (V.value = ""), K(l), D("filter-removed", e);
|
313
313
|
}, Ne = (l) => {
|
314
314
|
let e = [];
|
315
315
|
return l.forEach((o) => {
|
@@ -319,37 +319,37 @@ const al = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, tl = {
|
|
319
319
|
if (t.value) {
|
320
320
|
let l = [];
|
321
321
|
return Object.keys(t.value).forEach((e) => {
|
322
|
-
var v, s,
|
322
|
+
var v, s, c, y, S, w, A, P, U, Y, z;
|
323
323
|
let o = (s = (v = a.value) == null ? void 0 : v.tabs) == null ? void 0 : s.key;
|
324
|
-
const r = (y = (
|
324
|
+
const r = (y = (c = a.value) == null ? void 0 : c.search) == null ? void 0 : y.key, i = ((w = (S = a.value) == null ? void 0 : S.per_page) == null ? void 0 : w.key) ?? "per_page";
|
325
325
|
if ((A = a.value.form) == null || A.find((B) => {
|
326
326
|
B.name === o && (o = "");
|
327
327
|
}), e !== "page" && e !== "cursor" && e !== i && e !== o && e !== r) {
|
328
|
-
let B = null, u = (P = a.value.form) == null ? void 0 : P.find((
|
329
|
-
if (typeof
|
328
|
+
let B = null, u = (P = a.value.form) == null ? void 0 : P.find((O) => {
|
329
|
+
if (typeof O.name == "object") {
|
330
330
|
let h = !1;
|
331
|
-
return
|
332
|
-
|
331
|
+
return O.name.forEach((f) => {
|
332
|
+
f.key === e && (h = !0, B = Ne(O.name));
|
333
333
|
}), h;
|
334
334
|
} else
|
335
|
-
return
|
335
|
+
return O.name === e;
|
336
336
|
}), n = "";
|
337
337
|
if (u && t.value[e]) {
|
338
338
|
if (typeof u.name == "object" ? (U = u.name) == null || U.forEach((h) => {
|
339
339
|
n && (n += " - "), n += t.value[h.key];
|
340
340
|
}) : n = t.value[e], u.props.options && (n = (u.props.multiple ? t.value[e] : [t.value[e]]).map(
|
341
|
-
(
|
341
|
+
(f) => {
|
342
342
|
var _;
|
343
|
-
return (_ = u.props.options.find(({ value: le }) => le ===
|
343
|
+
return (_ = u.props.options.find(({ value: le }) => le === f)) == null ? void 0 : _.label;
|
344
344
|
}
|
345
345
|
).join(", ")), u.type === "RangeInput" && Array.isArray(t.value[e]) && (n = t.value[e][0].toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") + " - " + t.value[e][1].toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",")), u.type === "DatePicker")
|
346
346
|
if (((Y = u == null ? void 0 : u.props) == null ? void 0 : Y.type) === "range" && u.name && u.name[1]) {
|
347
|
-
const h = te(t.value[u.name[0].key]).format("MM/DD/YYYY"),
|
348
|
-
n = h ===
|
347
|
+
const h = te(t.value[u.name[0].key]).format("MM/DD/YYYY"), f = te(t.value[u.name[1].key]).format("MM/DD/YYYY");
|
348
|
+
n = h === f ? h : h + " - " + f;
|
349
349
|
} else n = te(t.value[u.name]).format("MM/DD/YYYY");
|
350
|
-
let
|
351
|
-
u && u.name && typeof u.name == "object" && l.find((
|
352
|
-
label:
|
350
|
+
let O = `${(z = u == null ? void 0 : u.props) == null ? void 0 : z.label} : ${n}`;
|
351
|
+
u && u.name && typeof u.name == "object" && l.find((f) => f.name === B[0]) && (O = ""), l.push({
|
352
|
+
label: O,
|
353
353
|
name: e,
|
354
354
|
multiNames: B
|
355
355
|
});
|
@@ -358,14 +358,14 @@ const al = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, tl = {
|
|
358
358
|
}), l;
|
359
359
|
}
|
360
360
|
return [];
|
361
|
-
}),
|
361
|
+
}), ne = (l) => {
|
362
362
|
var e, o, r, i, v, s;
|
363
|
-
return ((s = (v = (i = (r = t.value) == null ? void 0 : r[(o = (e = a.value) == null ? void 0 : e.columnEdit) == null ? void 0 : o.key]) == null ? void 0 : i.active) == null ? void 0 : v.find((
|
363
|
+
return ((s = (v = (i = (r = t.value) == null ? void 0 : r[(o = (e = a.value) == null ? void 0 : e.columnEdit) == null ? void 0 : o.key]) == null ? void 0 : i.active) == null ? void 0 : v.find((c) => c.key === l)) == null ? void 0 : s.isActive) ?? !0;
|
364
364
|
}, Te = ({ fixedHeaders: l, activeHeaders: e, isOnMount: o }) => {
|
365
|
-
var r, i, v, s,
|
366
|
-
if (t.value[(i = (r = a.value) == null ? void 0 : r.columnEdit) == null ? void 0 : i.key] || (t.value[(s = (v = a.value) == null ? void 0 : v.columnEdit) == null ? void 0 : s.key] = {}), t.value[(y = (
|
365
|
+
var r, i, v, s, c, y, S, w;
|
366
|
+
if (t.value[(i = (r = a.value) == null ? void 0 : r.columnEdit) == null ? void 0 : i.key] || (t.value[(s = (v = a.value) == null ? void 0 : v.columnEdit) == null ? void 0 : s.key] = {}), t.value[(y = (c = a.value) == null ? void 0 : c.columnEdit) == null ? void 0 : y.key].fixed = l, t.value[(w = (S = a.value) == null ? void 0 : S.columnEdit) == null ? void 0 : w.key].active = e, H.value = [...l, ...e], !o) {
|
367
367
|
const A = ll(l, e);
|
368
|
-
|
368
|
+
Ee(a.value.columnEdit.localStorageKey, A);
|
369
369
|
}
|
370
370
|
D("columns-changed", e);
|
371
371
|
}, qe = () => {
|
@@ -373,22 +373,22 @@ const al = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, tl = {
|
|
373
373
|
if ((e = (l = a.value) == null ? void 0 : l.columnEdit) != null && e.localStorageKey) {
|
374
374
|
const s = ue(a.value.columnEdit.localStorageKey);
|
375
375
|
if (s) {
|
376
|
-
const { fixed:
|
376
|
+
const { fixed: c, active: y } = Ae(
|
377
377
|
s,
|
378
378
|
j.value.headers,
|
379
379
|
a.value.columnEdit.localStorageKey
|
380
380
|
);
|
381
|
-
t.value[(r = (o = a.value) == null ? void 0 : o.columnEdit) == null ? void 0 : r.key].fixed =
|
381
|
+
t.value[(r = (o = a.value) == null ? void 0 : o.columnEdit) == null ? void 0 : r.key].fixed = c, t.value[(v = (i = a.value) == null ? void 0 : i.columnEdit) == null ? void 0 : v.key].active = y, H.value = [...c, ...y];
|
382
382
|
}
|
383
383
|
}
|
384
384
|
}, Qe = (l) => {
|
385
385
|
t.value.selectedSearchOption = l;
|
386
386
|
};
|
387
387
|
return Ve(() => {
|
388
|
-
var e, o, r, i, v;
|
388
|
+
var e, o, r, i, v, s, c;
|
389
389
|
qe();
|
390
390
|
const l = Be();
|
391
|
-
l && (t.value = JSON.parse(l),
|
391
|
+
l && (t.value = JSON.parse(l), V.value = V.value || ((e = t.value) == null ? void 0 : e.tabs) || ((i = t.value) == null ? void 0 : i[(r = (o = a.value) == null ? void 0 : o.tabs) == null ? void 0 : r.key]), (v = t.value) != null && v.selectedSearchOption && ie(t.value[(s = t.value) == null ? void 0 : s.selectedSearchOption]), Q.value = ((c = t.value) == null ? void 0 : c.page) || 1, K(null, !0, t.value.cursor, !0));
|
392
392
|
}), (l, e) => {
|
393
393
|
var o, r, i, v;
|
394
394
|
return d(), F("div", nl, [
|
@@ -414,28 +414,28 @@ const al = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, tl = {
|
|
414
414
|
T(l.$slots, "empty")
|
415
415
|
]),
|
416
416
|
"table-header": C((s) => [
|
417
|
-
T(l.$slots, "table-header",
|
417
|
+
T(l.$slots, "table-header", xe(we(s)))
|
418
418
|
]),
|
419
419
|
"table-body": C((s) => [
|
420
|
-
T(l.$slots, "table-body",
|
420
|
+
T(l.$slots, "table-body", xe(we(s)))
|
421
421
|
]),
|
422
422
|
_: 2
|
423
423
|
}, [
|
424
424
|
l.$slots.before || (o = a.value) != null && o.search || (r = a.value) != null && r.form || (i = a.value) != null && i.tabs ? {
|
425
425
|
name: "before",
|
426
426
|
fn: C(() => {
|
427
|
-
var s,
|
427
|
+
var s, c, y, S;
|
428
428
|
return [
|
429
429
|
T(l.$slots, "before"),
|
430
|
-
(s = a.value) != null && s.search || (
|
431
|
-
|
430
|
+
(s = a.value) != null && s.search || (c = a.value) != null && c.form || (y = a.value) != null && y.tabs ? (d(), F("div", dl, [
|
431
|
+
Ke.value ? (d(), F("div", vl, [
|
432
432
|
T(l.$slots, "bulk-actions", { selectedRows: L.selected })
|
433
433
|
])) : (d(), F("div", cl, [
|
434
434
|
(S = a.value) != null && S.tabs ? (d(), q(x(Ze), {
|
435
435
|
key: 0,
|
436
|
-
modelValue:
|
436
|
+
modelValue: V.value,
|
437
437
|
"onUpdate:modelValue": [
|
438
|
-
e[0] || (e[0] = (w) =>
|
438
|
+
e[0] || (e[0] = (w) => V.value = w),
|
439
439
|
e[1] || (e[1] = (w) => K(null))
|
440
440
|
],
|
441
441
|
"is-disabled": L.isLoading,
|
@@ -444,7 +444,7 @@ const al = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, tl = {
|
|
444
444
|
}, null, 8, ["modelValue", "is-disabled", "tabs"])) : $("", !0)
|
445
445
|
])),
|
446
446
|
T(l.$slots, "filter-options", {}, () => {
|
447
|
-
var w, A, P, U, Y, z, B, u, n,
|
447
|
+
var w, A, P, U, Y, z, B, u, n, O, h;
|
448
448
|
return [
|
449
449
|
(w = a.value) != null && w.search || (A = a.value) != null && A.form || (P = a.value) != null && P.columnEdit ? (d(), F("div", {
|
450
450
|
key: 0,
|
@@ -458,14 +458,14 @@ const al = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, tl = {
|
|
458
458
|
"is-search-only": !a.value.tabs || a.value.isSearchOnly,
|
459
459
|
"search-options": ((Y = a.value.search) == null ? void 0 : Y.options) ?? [],
|
460
460
|
"selected-option": (((z = t.value) == null ? void 0 : z.selectedSearchOption) || ((n = (u = (B = a.value.search) == null ? void 0 : B.options) == null ? void 0 : u[0]) == null ? void 0 : n.value)) ?? "keywords",
|
461
|
-
onAddQuery:
|
462
|
-
onToggle: e[2] || (e[2] = (
|
461
|
+
onAddQuery: ie,
|
462
|
+
onToggle: e[2] || (e[2] = (f) => re.value = f),
|
463
463
|
onChangeSearchKey: Qe
|
464
464
|
}, null, 8, ["is-search-only", "search-options", "selected-option"])) : $("", !0),
|
465
|
-
(
|
465
|
+
(O = a.value) != null && O.form ? (d(), q(x(Fe), {
|
466
466
|
key: 1,
|
467
467
|
modelValue: E.value,
|
468
|
-
"onUpdate:modelValue": e[6] || (e[6] = (
|
468
|
+
"onUpdate:modelValue": e[6] || (e[6] = (f) => E.value = f),
|
469
469
|
distance: 9,
|
470
470
|
placement: "bottom-end",
|
471
471
|
"is-attach-to-body": ""
|
@@ -476,15 +476,15 @@ const al = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, tl = {
|
|
476
476
|
id: L.id,
|
477
477
|
"json-form": a.value.form ?? [],
|
478
478
|
grid: a.value.grid ?? null,
|
479
|
-
values:
|
479
|
+
values: p.filter,
|
480
480
|
actions: a.value.actions,
|
481
|
-
onApplyFilter: e[3] || (e[3] = (
|
482
|
-
onFilterFieldsChanged: e[4] || (e[4] = (
|
483
|
-
onCancel: e[5] || (e[5] = (
|
481
|
+
onApplyFilter: e[3] || (e[3] = (f) => K(f)),
|
482
|
+
onFilterFieldsChanged: e[4] || (e[4] = (f) => D("filter-fields-changed", f)),
|
483
|
+
onCancel: e[5] || (e[5] = (f) => E.value = !1)
|
484
484
|
}, {
|
485
|
-
default: C(({ errors:
|
485
|
+
default: C(({ errors: f, values: _, jsonForm: le, updateForm: Re }) => [
|
486
486
|
T(l.$slots, "custom-filter-form", {
|
487
|
-
errors:
|
487
|
+
errors: f,
|
488
488
|
values: _,
|
489
489
|
jsonForm: le,
|
490
490
|
updateFilter: Re
|
@@ -494,7 +494,7 @@ const al = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, tl = {
|
|
494
494
|
}, 8, ["id", "json-form", "grid", "values", "actions"])) : $("", !0)
|
495
495
|
]),
|
496
496
|
default: C(() => [
|
497
|
-
R(x(
|
497
|
+
R(x(je), {
|
498
498
|
"is-active": E.value,
|
499
499
|
variant: "secondary",
|
500
500
|
"left-icon": "filter"
|
@@ -525,7 +525,7 @@ const al = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, tl = {
|
|
525
525
|
}),
|
526
526
|
key: "0"
|
527
527
|
} : void 0,
|
528
|
-
se((v = j.value) == null ? void 0 : v.headers, (s,
|
528
|
+
se((v = j.value) == null ? void 0 : v.headers, (s, c) => ({
|
529
529
|
name: s.key,
|
530
530
|
fn: C(({ data: y, item: S }) => [
|
531
531
|
T(l.$slots, s.key, {
|
@@ -536,11 +536,11 @@ const al = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, tl = {
|
|
536
536
|
}))
|
537
537
|
]), 1032, ["selected", "row-key", "options", "is-loading", "loading-rows", "row-class", "row-link", "is-sticky", "is-borderless"])) : $("", !0),
|
538
538
|
T(l.$slots, "before-pagination"),
|
539
|
-
|
539
|
+
m.value || g.value ? (d(), F("div", {
|
540
540
|
key: 1,
|
541
|
-
class: oe(["flex items-center gap-3",
|
541
|
+
class: oe(["flex items-center gap-3", m.value && m.value.last_page === 1 ? "justify-end" : ""])
|
542
542
|
}, [
|
543
|
-
|
543
|
+
m.value && !k.value ? (d(), q(x(_e), {
|
544
544
|
key: 0,
|
545
545
|
modelValue: Q.value,
|
546
546
|
"onUpdate:modelValue": [
|
@@ -548,16 +548,16 @@ const al = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, tl = {
|
|
548
548
|
Ue
|
549
549
|
],
|
550
550
|
class: "justify-center",
|
551
|
-
"max-page":
|
552
|
-
strategy:
|
551
|
+
"max-page": m.value.last_page,
|
552
|
+
strategy: m.value.strategy,
|
553
553
|
"total-visible": "5"
|
554
554
|
}, null, 8, ["modelValue", "max-page", "strategy"])) : $("", !0),
|
555
555
|
g.value ? (d(), F("div", fl, [
|
556
|
-
R(x(
|
556
|
+
R(x(Se), {
|
557
557
|
disabled: !g.value.prev,
|
558
558
|
onClick: e[11] || (e[11] = (s) => g.value.prev ? K(null, !1, g.value.prev) : null)
|
559
559
|
}, null, 8, ["disabled"]),
|
560
|
-
R(x(
|
560
|
+
R(x(Se), {
|
561
561
|
disabled: !g.value.next,
|
562
562
|
"is-next": "",
|
563
563
|
onClick: e[12] || (e[12] = (s) => g.value.next ? K(null, !1, g.value.next) : null)
|
@@ -573,7 +573,7 @@ const al = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, tl = {
|
|
573
573
|
label: "Item per page",
|
574
574
|
"is-inline-label": "",
|
575
575
|
"popper-options": { placement: "auto" },
|
576
|
-
options:
|
576
|
+
options: De.value
|
577
577
|
}, null, 8, ["modelValue", "options"])
|
578
578
|
]))
|
579
579
|
], 2)) : $("", !0)
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as w, openBlock as n, createBlock as y, unref as l, withCtx as r, createElementBlock as b, Fragment as C, renderList as D, normalizeClass as s, createElementVNode as o, createCommentVNode as m, renderSlot as u, toDisplayString as k, createVNode as f } from "vue";
|
2
|
-
import { aH as $, aD as S, ay as B } from "./index-
|
2
|
+
import { aH as $, aD as S, ay as B } from "./index-BXSABQPr.js";
|
3
3
|
import { _ as g } from "./OcIcon-CSpRxnwd.js";
|
4
4
|
const M = ["onMouseleave", "onMouseover", "onClick"], L = { class: "flex justify-evenly w-full" }, N = { class: "flex w-full" }, U = { class: "ml-4 flex w-full" }, E = { class: "flex items-center flex-wrap w-full" }, H = ["href"], O = { class: "min-w-[120px]" }, W = { class: "truncate w-[200px]" }, j = { class: "flex items-center ml-4" }, z = { class: "flex w-full" }, q = {
|
5
5
|
__name: "OcDraggableList",
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as m, computed as p, openBlock as s, createElementBlock as l, createVNode as f, unref as c, withCtx as v, createElementVNode as n, Fragment as T, renderList as V, normalizeClass as k, createTextVNode as C, createBlock as N, createCommentVNode as z } from "vue";
|
2
|
-
import { ay as U, d as J, B as b } from "./index-
|
2
|
+
import { ay as U, d as J, B as b } from "./index-BXSABQPr.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, openBlock as O, createElementBlock 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-BXSABQPr.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, openBlock as s, createElementBlock as u, Fragment as x, createElementVNode as i, normalizeClass as O, createVNode as m, unref as r, withKeys as K, createSlots as N, withCtx as v, renderList as Q, createBlock as f, toDisplayString as z, createCommentVNode as S, nextTick as D } from "vue";
|
2
|
-
import { d as E, ay as F, az as I, B as w } from "./index-
|
2
|
+
import { d as E, ay as F, az as I, B as w } from "./index-BXSABQPr.js";
|
3
3
|
import { _ as U } from "./OcIcon-CSpRxnwd.js";
|
4
4
|
const j = { class: "flex gap-x-4" }, q = { class: "flex gap-x-2 items-center pl-2 text-oc-text-400 font-medium text-sm" }, A = { class: "p-2 flex flex-col" }, J = {
|
5
5
|
__name: "OcFilterSearch",
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { computed as k, openBlock as a, createBlock as m, unref as n, withCtx as x, createElementVNode as f, createElementBlock as v, Fragment as b, renderList as p, createVNode as F, createCommentVNode as $ } from "vue";
|
2
|
-
import { M as y, at as i } from "./index-
|
2
|
+
import { M as y, at as i } from "./index-BXSABQPr.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 e, openBlock as v, createBlock as d, unref as l, withCtx as x, createVNode as O } from "vue";
|
2
|
-
import { aA as b } from "./index-
|
3
|
-
import k from "./OcCropper-
|
2
|
+
import { aA as b } from "./index-BXSABQPr.js";
|
3
|
+
import k from "./OcCropper-B-CVJmDW.js";
|
4
4
|
const h = {
|
5
5
|
__name: "OcModalCropper",
|
6
6
|
props: {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as n, watch as g, openBlock as m, createBlock as s, unref as o, withCtx as p, createCommentVNode as v, createVNode as y } from "vue";
|
2
|
-
import { ay as S, aI as h, d as D } from "./index-
|
2
|
+
import { ay as S, aI as h, d as D } from "./index-BXSABQPr.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, openBlock as a, createElementBlock as o, normalizeClass as d, createElementVNode as e, toDisplayString as r, createBlock as x, unref as u, createCommentVNode as m, createTextVNode as v, Fragment as T, renderList as k, createVNode as P } from "vue";
|
2
|
-
import { at as _, B as w } from "./index-
|
2
|
+
import { at as _, B as w } from "./index-BXSABQPr.js";
|
3
3
|
import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
4
4
|
import { _ as F } from "./OcIcon-CSpRxnwd.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 }, $ = {
|