@orchidui/core 1.1.31-1 → 1.1.31-2
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 +1 -1
- 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/TextArea/OcTextArea.js +1 -1
- package/dist/Form/index.js +1 -1
- package/dist/FormBuilder/OcFormBuilder.js +1 -1
- package/dist/{OcComplexCalendar-CRxZRgXL.js → OcComplexCalendar-D1rWf4we.js} +1 -1
- package/dist/{OcComplexDatePicker-ygWCP_HO.js → OcComplexDatePicker-IY65Yb3W.js} +1 -1
- package/dist/{OcCropper-C7I3eum0.js → OcCropper-Ozcbc9oS.js} +1 -1
- package/dist/{OcDataTable-f95yna1x.js → OcDataTable-qsYLnYTP.js} +100 -100
- package/dist/{OcDraggableList-DJYSUMpk.js → OcDraggableList-BMMa_l-x.js} +1 -1
- package/dist/{OcEmojiPicker-BTyUDcdI.js → OcEmojiPicker-BJPcCdTO.js} +1 -1
- package/dist/{OcFilterForm-elPkLKgv.js → OcFilterForm-BJJiBrBO.js} +1 -1
- package/dist/{OcFilterSearch-CuMVMktV.js → OcFilterSearch-DSZHDIEK.js} +9 -9
- package/dist/{OcFilterSearchFor-DZG90Ocr.js → OcFilterSearchFor-DHlpy8VY.js} +1 -1
- package/dist/{OcModalCropper-CKawRd2-.js → OcModalCropper-C8ZOsHYG.js} +2 -2
- package/dist/{OcTimePicker-ChYX2WuT.js → OcTimePicker-D6NMTvxZ.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-55Xf4T-i.js → SubPlanCard-B8Wrl2Om.js} +1 -1
- package/dist/{ThumbnailSection-BsyAk_SY.js → ThumbnailSection-CYESszhq.js} +1 -1
- package/dist/{ThumbnailTheme-D7ExOrMp.js → ThumbnailTheme-DxB6mbrd.js} +1 -1
- package/dist/{index-CKnlrI6g.js → index-CLrhZuPR.js} +7 -7
- package/dist/index.js +1 -1
- package/package.json +1 -1
@@ -1,5 +1,5 @@
|
|
1
|
-
import { ref as A, onMounted as Ve, openBlock as i, createBlock as K, unref as y, withCtx as $, createElementVNode as
|
2
|
-
import { as as Fe, b as
|
1
|
+
import { ref as A, onMounted as Ve, openBlock as i, createBlock as K, unref as y, withCtx as $, createElementVNode as R, createElementBlock as h, createVNode as U, mergeProps as ge, Fragment as ee, renderList as ae, normalizeClass as te, toDisplayString as be, createCommentVNode as k, computed as j, createSlots as Qe, renderSlot as C, normalizeProps as ke, guardReactiveProps as xe } from "vue";
|
2
|
+
import { as as Fe, b as Re, B as Ee, L as _e, Y as Je, aD as ze, aE as He, aF as Ge, I as We, J as he, k as Xe } from "./index-CLrhZuPR.js";
|
3
3
|
import le from "dayjs";
|
4
4
|
import { VueDraggableNext as we } from "vue-draggable-next";
|
5
5
|
import { getFromLocalStorage as se, formatHeadersFromLocalStorage as Oe, formatHeadersToLocalStorage as Ze, setInLocalStorage as $e } from "./DataTable/utils/editColumnsUtils.js";
|
@@ -10,7 +10,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
10
10
|
}, al = { class: "gap-y-2 flex flex-col" }, tl = {
|
11
11
|
key: 0,
|
12
12
|
class: "flex items-center bg-white justify-between h-[26px]"
|
13
|
-
}, sl = { class: "flex items-center w-full gap-x-3" }, ol = { class: "truncate w-full max-w-[160px]" },
|
13
|
+
}, sl = { class: "flex items-center w-full gap-x-3" }, ol = { class: "truncate w-full max-w-[160px]" }, rl = {
|
14
14
|
__name: "ColumnEdit",
|
15
15
|
props: {
|
16
16
|
options: {
|
@@ -28,7 +28,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
28
28
|
},
|
29
29
|
emits: ["change-active", "onMoved", "update-order"],
|
30
30
|
setup(D, { emit: Z }) {
|
31
|
-
const d = Z, F = D, v = A([]), f = A([]),
|
31
|
+
const d = Z, F = D, v = A([]), f = A([]), I = A(!1), S = (a = !1) => {
|
32
32
|
f.value = f.value.map((p) => ({
|
33
33
|
...p,
|
34
34
|
isActive: !0
|
@@ -48,35 +48,35 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
48
48
|
};
|
49
49
|
return Ve(() => {
|
50
50
|
const a = se(F.localKey), { fixed: p, active: m } = Oe(a, F.headers, F.localKey);
|
51
|
-
f.value = p || F.headers.slice(0, 1), v.value = m || F.headers.slice(1).map((
|
51
|
+
f.value = p || F.headers.slice(0, 1), v.value = m || F.headers.slice(1).map((x) => {
|
52
52
|
var V, B, P;
|
53
53
|
return {
|
54
|
-
...
|
55
|
-
isActive: ((P = (B = (V = F.options) == null ? void 0 : V.active) == null ? void 0 : B.find((X) => X.key ===
|
54
|
+
...x,
|
55
|
+
isActive: ((P = (B = (V = F.options) == null ? void 0 : V.active) == null ? void 0 : B.find((X) => X.key === x.key)) == null ? void 0 : P.isActive) ?? !0
|
56
56
|
};
|
57
57
|
}), S(!0);
|
58
58
|
}), (a, p) => (i(), K(y(Fe), {
|
59
|
-
modelValue:
|
60
|
-
"onUpdate:modelValue": p[3] || (p[3] = (m) =>
|
59
|
+
modelValue: I.value,
|
60
|
+
"onUpdate:modelValue": p[3] || (p[3] = (m) => I.value = m),
|
61
61
|
class: "h-[36px]",
|
62
62
|
"is-attach-to-body": ""
|
63
63
|
}, {
|
64
64
|
menu: $(() => [
|
65
|
-
|
66
|
-
f.value.length ? (i(),
|
67
|
-
p[4] || (p[4] =
|
65
|
+
R("div", el, [
|
66
|
+
f.value.length ? (i(), h("div", ll, [
|
67
|
+
p[4] || (p[4] = R("span", { class: "text-oc-text-400 font-medium" }, "Fixed columns", -1)),
|
68
68
|
U(y(we), ge({
|
69
69
|
key: "key",
|
70
70
|
modelValue: f.value,
|
71
71
|
"onUpdate:modelValue": p[0] || (p[0] = (m) => f.value = m)
|
72
72
|
}, W), {
|
73
73
|
default: $(() => [
|
74
|
-
(i(!0),
|
74
|
+
(i(!0), h(ee, null, ae(f.value, (m, x) => (i(), h("div", {
|
75
75
|
key: m.key,
|
76
|
-
class: te(["flex items-center justify-between h-[26px]",
|
76
|
+
class: te(["flex items-center justify-between h-[26px]", x ? "" : "is-disabled"])
|
77
77
|
}, [
|
78
|
-
|
79
|
-
|
78
|
+
R("span", null, be(m.label), 1),
|
79
|
+
x ? (i(), K(y(Se), {
|
80
80
|
key: 0,
|
81
81
|
width: "18",
|
82
82
|
height: "18",
|
@@ -88,28 +88,28 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
88
88
|
_: 1
|
89
89
|
}, 16, ["modelValue"])
|
90
90
|
])) : k("", !0),
|
91
|
-
|
92
|
-
p[5] || (p[5] =
|
91
|
+
R("div", al, [
|
92
|
+
p[5] || (p[5] = R("span", { class: "text-oc-text-400 font-medium" }, "Active columns", -1)),
|
93
93
|
U(y(we), ge({
|
94
94
|
key: "key",
|
95
95
|
modelValue: v.value,
|
96
96
|
"onUpdate:modelValue": p[2] || (p[2] = (m) => v.value = m)
|
97
97
|
}, W, { "data-active-headers": "true" }), {
|
98
98
|
default: $(() => [
|
99
|
-
(i(!0),
|
99
|
+
(i(!0), h(ee, null, ae(v.value, (m) => (i(), h(ee, {
|
100
100
|
key: m.key
|
101
101
|
}, [
|
102
|
-
m.key !== "actions" ? (i(),
|
103
|
-
|
104
|
-
U(y(
|
102
|
+
m.key !== "actions" ? (i(), h("div", tl, [
|
103
|
+
R("div", sl, [
|
104
|
+
U(y(Re), {
|
105
105
|
modelValue: m.isActive,
|
106
106
|
"onUpdate:modelValue": [
|
107
|
-
(
|
108
|
-
p[1] || (p[1] = (
|
107
|
+
(x) => m.isActive = x,
|
108
|
+
p[1] || (p[1] = (x) => S())
|
109
109
|
],
|
110
110
|
class: "!w-fit"
|
111
111
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
112
|
-
|
112
|
+
R("div", ol, be(m.label), 1)
|
113
113
|
]),
|
114
114
|
v.value.length > 1 ? (i(), K(y(Se), {
|
115
115
|
key: 0,
|
@@ -136,7 +136,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
136
136
|
_: 1
|
137
137
|
}, 8, ["modelValue"]));
|
138
138
|
}
|
139
|
-
},
|
139
|
+
}, ul = { class: "flex flex-col gap-9 relative" }, il = {
|
140
140
|
key: 0,
|
141
141
|
class: "flex items-center px-4 min-h-[52px]"
|
142
142
|
}, nl = {
|
@@ -189,21 +189,21 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
189
189
|
"hover:cell": []
|
190
190
|
},
|
191
191
|
setup(D, { emit: Z }) {
|
192
|
-
var
|
192
|
+
var ue, ie, ne, de, ve, ce, fe, pe, me;
|
193
193
|
const d = D, F = Z, v = j(() => {
|
194
194
|
var l;
|
195
195
|
return (l = d.options) == null ? void 0 : l.pagination;
|
196
196
|
}), f = j(() => {
|
197
197
|
var l;
|
198
198
|
return (l = d.options) == null ? void 0 : l.cursor;
|
199
|
-
}),
|
199
|
+
}), I = A(), S = j(() => {
|
200
200
|
var l;
|
201
201
|
return (l = d.options) == null ? void 0 : l.tableOptions;
|
202
202
|
}), W = j(() => {
|
203
203
|
var l;
|
204
204
|
return {
|
205
205
|
...S.value,
|
206
|
-
headers:
|
206
|
+
headers: I.value ? I.value.filter((e) => re(e.key)) : (l = S.value) == null ? void 0 : l.headers.filter((e) => re(e.key))
|
207
207
|
};
|
208
208
|
}), a = j(() => {
|
209
209
|
var l;
|
@@ -214,9 +214,9 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
214
214
|
}), m = j(() => {
|
215
215
|
var l;
|
216
216
|
return ((l = v.value) == null ? void 0 : l.last_page) === 1;
|
217
|
-
}),
|
217
|
+
}), x = A(!1), V = A(d.filter[(ie = (ue = a.value) == null ? void 0 : ue.tabs) == null ? void 0 : ie.key]), B = A(d.filter.page), P = A(
|
218
218
|
(de = (ne = a.value) == null ? void 0 : ne.per_page) != null && de.key ? d.filter[(ce = (ve = a.value) == null ? void 0 : ve.per_page) == null ? void 0 : ce.key] : d.filter.per_page
|
219
|
-
), X = ((me = d.filter[(pe = (fe = a.value) == null ? void 0 : fe.search) == null ? void 0 : pe.key]) == null ? void 0 : me.trim()) ?? "",
|
219
|
+
), X = ((me = d.filter[(pe = (fe = a.value) == null ? void 0 : fe.search) == null ? void 0 : pe.key]) == null ? void 0 : me.trim()) ?? "", T = A(X ? X.split(",") : []), oe = A(!1), je = j(
|
220
220
|
() => {
|
221
221
|
var l, e;
|
222
222
|
return (e = (l = d.options) == null ? void 0 : l.perPageOptions) == null ? void 0 : e.map(
|
@@ -263,30 +263,30 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
263
263
|
], e = je.value ?? l;
|
264
264
|
if (v.value) {
|
265
265
|
const o = v.value.total < 100 ? v.value.total : 100;
|
266
|
-
o > 10 && (e = e.filter((
|
266
|
+
o > 10 && (e = e.filter((r) => r.value <= o));
|
267
267
|
}
|
268
268
|
return [...new Set(e)];
|
269
269
|
}), De = j(() => {
|
270
270
|
var l;
|
271
271
|
return ((l = d.selected) == null ? void 0 : l.length) > 0;
|
272
272
|
}), Pe = (l) => {
|
273
|
-
!l.trim() ||
|
273
|
+
!l.trim() || T.value.includes(l) || (T.value = [l], E(), F("search-query-changed", l));
|
274
274
|
}, Le = (l) => {
|
275
|
-
|
276
|
-
},
|
277
|
-
!
|
278
|
-
const s = A(
|
279
|
-
var e, o,
|
280
|
-
|
275
|
+
T.value = T.value.filter((e) => e !== l), E();
|
276
|
+
}, q = d.filter;
|
277
|
+
!q && v ? q.page = 1 : !q && f && (q.cursor = "");
|
278
|
+
const s = A(q), Ce = () => {
|
279
|
+
var e, o, r, n, c, t, g, w;
|
280
|
+
T.value = [], V.value = "";
|
281
281
|
const l = {};
|
282
|
-
a.value ?
|
282
|
+
a.value ? q.page = 1 : q.cursor = "", (o = (e = a.value) == null ? void 0 : e.per_page) != null && o.key ? l[(n = (r = a.value) == null ? void 0 : r.per_page) == null ? void 0 : n.key] = P.value : l.per_page = P.value, (t = (c = a.value) == null ? void 0 : c.tabs) != null && t.key ? l[(w = (g = a.value) == null ? void 0 : g.tabs) == null ? void 0 : w.key] = V.value : l.tabs = V.value, s.value = l, E();
|
283
283
|
}, Ke = () => {
|
284
284
|
E(null, B.value);
|
285
285
|
}, Ye = () => {
|
286
286
|
d.id && $e(d.id, JSON.stringify(s.value));
|
287
287
|
}, Ue = () => d.id ? se(d.id) : null, E = (l = null, e = !1, o = "") => {
|
288
|
-
var
|
289
|
-
v.value && !e && (B.value = 1), v.value ? s.value.page = B.value : s.value.cursor = o, (
|
288
|
+
var r, n, c;
|
289
|
+
v.value && !e && (B.value = 1), v.value ? s.value.page = B.value : s.value.cursor = o, (r = a.value) != null && r.per_page ? s.value[a.value.per_page.key] = P.value : s.value.per_page = P.value, (n = a.value) != null && n.tabs && (s.value[a.value.tabs.key] = V.value), (c = a.value) != null && c.search && (s.value[a.value.search.key] = T.value.join()), l && (x.value = !1, s.value = { ...s.value, ...l }, Object.keys(s.value).forEach((t) => {
|
290
290
|
Array.isArray(s.value[t]) && s.value[t].length === 0 && delete s.value[t];
|
291
291
|
})), Ye(), F("update:filter", s.value);
|
292
292
|
}, Be = (l, e) => {
|
@@ -300,36 +300,36 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
300
300
|
if (s.value) {
|
301
301
|
let l = [];
|
302
302
|
return Object.keys(s.value).forEach((e) => {
|
303
|
-
var c, t, g, w,
|
303
|
+
var c, t, g, w, Q, M, _, J, z, H, G;
|
304
304
|
let o = (t = (c = a.value) == null ? void 0 : c.tabs) == null ? void 0 : t.key;
|
305
|
-
const
|
305
|
+
const r = (w = (g = a.value) == null ? void 0 : g.search) == null ? void 0 : w.key, n = ((M = (Q = a.value) == null ? void 0 : Q.per_page) == null ? void 0 : M.key) ?? "per_page";
|
306
306
|
if ((_ = a.value.form) == null || _.find((b) => {
|
307
307
|
b.name === o && (o = "");
|
308
|
-
}), e !== "page" && e !== "cursor" && e !== n && e !== o && e !==
|
309
|
-
let b = null,
|
308
|
+
}), e !== "page" && e !== "cursor" && e !== n && e !== o && e !== r) {
|
309
|
+
let b = null, u = (J = a.value.form) == null ? void 0 : J.find((Y) => {
|
310
310
|
if (typeof Y.name == "object") {
|
311
311
|
let L = !1;
|
312
|
-
return Y.name.forEach((
|
313
|
-
|
312
|
+
return Y.name.forEach((N) => {
|
313
|
+
N.key === e && (L = !0, b = Me(Y.name));
|
314
314
|
}), L;
|
315
315
|
} else
|
316
316
|
return Y.name === e;
|
317
317
|
}), O = "";
|
318
|
-
if (
|
319
|
-
if (typeof
|
318
|
+
if (u && s.value[e]) {
|
319
|
+
if (typeof u.name == "object" ? (z = u.name) == null || z.forEach((L) => {
|
320
320
|
O && (O += " - "), O += s.value[L.key];
|
321
|
-
}) : O = s.value[e],
|
322
|
-
(
|
321
|
+
}) : O = s.value[e], u.props.options && (O = (u.props.multiple ? s.value[e] : [s.value[e]]).map(
|
322
|
+
(N) => {
|
323
323
|
var ye;
|
324
|
-
return (ye =
|
324
|
+
return (ye = u.props.options.find(({ value: qe }) => qe === N)) == null ? void 0 : ye.label;
|
325
325
|
}
|
326
|
-
).join(", ")),
|
327
|
-
if (((H =
|
328
|
-
const L = le(s.value[
|
329
|
-
O = L ===
|
330
|
-
} else O = le(s.value[
|
331
|
-
let Y = `${(G =
|
332
|
-
|
326
|
+
).join(", ")), u.type === "RangeInput" && Array.isArray(s.value[e]) && (O = s.value[e][0].toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") + " - " + s.value[e][1].toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",")), u.type === "DatePicker")
|
327
|
+
if (((H = u == null ? void 0 : u.props) == null ? void 0 : H.type) === "range" && u.name && u.name[1]) {
|
328
|
+
const L = le(s.value[u.name[0].key]).format("MM/DD/YYYY"), N = le(s.value[u.name[1].key]).format("MM/DD/YYYY");
|
329
|
+
O = L === N ? L : L + " - " + N;
|
330
|
+
} else O = le(s.value[u.name]).format("MM/DD/YYYY");
|
331
|
+
let Y = `${(G = u == null ? void 0 : u.props) == null ? void 0 : G.label} : ${O}`;
|
332
|
+
u && u.name && typeof u.name == "object" && l.find((N) => N.name === b[0]) && (Y = ""), l.push({
|
333
333
|
label: Y,
|
334
334
|
name: e,
|
335
335
|
multiNames: b
|
@@ -339,17 +339,17 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
339
339
|
}), l;
|
340
340
|
}
|
341
341
|
return [];
|
342
|
-
}),
|
343
|
-
var e, o,
|
344
|
-
return ((t = (c = (n = (
|
342
|
+
}), re = (l) => {
|
343
|
+
var e, o, r, n, c, t;
|
344
|
+
return ((t = (c = (n = (r = s.value) == null ? void 0 : r[(o = (e = a.value) == null ? void 0 : e.columnEdit) == null ? void 0 : o.key]) == null ? void 0 : n.active) == null ? void 0 : c.find((g) => g.key === l)) == null ? void 0 : t.isActive) ?? !0;
|
345
345
|
}, Ie = ({ fixedHeaders: l, activeHeaders: e, isOnMount: o }) => {
|
346
|
-
var
|
347
|
-
if (s.value[(n = (
|
346
|
+
var r, n, c, t;
|
347
|
+
if (s.value[(n = (r = a.value) == null ? void 0 : r.columnEdit) == null ? void 0 : n.key].fixed = l, s.value[(t = (c = a.value) == null ? void 0 : c.columnEdit) == null ? void 0 : t.key].active = e, I.value = [...l, ...e], !o) {
|
348
348
|
const g = Ze(l, e);
|
349
349
|
$e(a.value.columnEdit.localStorageKey, g);
|
350
350
|
}
|
351
351
|
}, Te = () => {
|
352
|
-
var l, e, o,
|
352
|
+
var l, e, o, r, n, c;
|
353
353
|
if ((e = (l = a.value) == null ? void 0 : l.columnEdit) != null && e.localStorageKey) {
|
354
354
|
const t = se(a.value.columnEdit.localStorageKey);
|
355
355
|
if (t) {
|
@@ -358,18 +358,18 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
358
358
|
S.value.headers,
|
359
359
|
a.value.columnEdit.localStorageKey
|
360
360
|
);
|
361
|
-
s.value[(
|
361
|
+
s.value[(r = (o = a.value) == null ? void 0 : o.columnEdit) == null ? void 0 : r.key].fixed = g, s.value[(c = (n = a.value) == null ? void 0 : n.columnEdit) == null ? void 0 : c.key].active = w, I.value = [...g, ...w];
|
362
362
|
}
|
363
363
|
}
|
364
364
|
};
|
365
365
|
return Ve(() => {
|
366
|
-
var e, o,
|
366
|
+
var e, o, r, n;
|
367
367
|
Te();
|
368
368
|
const l = Ue();
|
369
|
-
l && (s.value = JSON.parse(l), V.value = V.value || ((e = s.value) == null ? void 0 : e.tabs) || ((n = s.value) == null ? void 0 : n[(
|
369
|
+
l && (s.value = JSON.parse(l), V.value = V.value || ((e = s.value) == null ? void 0 : e.tabs) || ((n = s.value) == null ? void 0 : n[(r = (o = a.value) == null ? void 0 : o.tabs) == null ? void 0 : r.key]), E());
|
370
370
|
}), (l, e) => {
|
371
|
-
var o,
|
372
|
-
return i(),
|
371
|
+
var o, r, n, c;
|
372
|
+
return i(), h("div", ul, [
|
373
373
|
S.value ? (i(), K(y(_e), {
|
374
374
|
key: 0,
|
375
375
|
selected: D.selected,
|
@@ -384,7 +384,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
384
384
|
"onUpdate:selected": e[7] || (e[7] = (t) => l.$emit("update:selected", t)),
|
385
385
|
"onClick:row": e[8] || (e[8] = (t) => l.$emit("click:row", t)),
|
386
386
|
"onHover:cell": e[9] || (e[9] = (t) => l.$emit("hover:cell", t))
|
387
|
-
},
|
387
|
+
}, Qe({
|
388
388
|
after: $(() => [
|
389
389
|
C(l.$slots, "after")
|
390
390
|
]),
|
@@ -392,38 +392,38 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
392
392
|
C(l.$slots, "empty")
|
393
393
|
]),
|
394
394
|
"table-header": $((t) => [
|
395
|
-
C(l.$slots, "table-header", ke(
|
395
|
+
C(l.$slots, "table-header", ke(xe(t)))
|
396
396
|
]),
|
397
397
|
"table-body": $((t) => [
|
398
|
-
C(l.$slots, "table-body", ke(
|
398
|
+
C(l.$slots, "table-body", ke(xe(t)))
|
399
399
|
]),
|
400
400
|
_: 2
|
401
401
|
}, [
|
402
|
-
l.$slots.before || (o = a.value) != null && o.search || (
|
402
|
+
l.$slots.before || (o = a.value) != null && o.search || (r = a.value) != null && r.form || (n = a.value) != null && n.tabs ? {
|
403
403
|
name: "before",
|
404
404
|
fn: $(() => {
|
405
|
-
var t, g, w,
|
405
|
+
var t, g, w, Q;
|
406
406
|
return [
|
407
407
|
C(l.$slots, "before"),
|
408
|
-
(t = a.value) != null && t.search || (g = a.value) != null && g.form || (w = a.value) != null && w.tabs ? (i(),
|
409
|
-
De.value ? (i(),
|
408
|
+
(t = a.value) != null && t.search || (g = a.value) != null && g.form || (w = a.value) != null && w.tabs ? (i(), h("div", il, [
|
409
|
+
De.value ? (i(), h("div", nl, [
|
410
410
|
C(l.$slots, "bulk-actions", { selectedRows: D.selected })
|
411
|
-
])) : (i(),
|
412
|
-
(
|
411
|
+
])) : (i(), h("div", dl, [
|
412
|
+
(Q = a.value) != null && Q.tabs ? (i(), K(y(Je), {
|
413
413
|
key: 0,
|
414
414
|
modelValue: V.value,
|
415
415
|
"onUpdate:modelValue": [
|
416
|
-
e[0] || (e[0] = (
|
417
|
-
e[1] || (e[1] = (
|
416
|
+
e[0] || (e[0] = (M) => V.value = M),
|
417
|
+
e[1] || (e[1] = (M) => E(null))
|
418
418
|
],
|
419
419
|
tabs: a.value.tabs.options,
|
420
420
|
variant: "pills"
|
421
421
|
}, null, 8, ["modelValue", "tabs"])) : k("", !0)
|
422
422
|
])),
|
423
423
|
C(l.$slots, "filter-options", {}, () => {
|
424
|
-
var
|
424
|
+
var M, _, J, z, H, G;
|
425
425
|
return [
|
426
|
-
(
|
426
|
+
(M = a.value) != null && M.search || (_ = a.value) != null && _.form || (J = a.value) != null && J.columnEdit ? (i(), h("div", {
|
427
427
|
key: 0,
|
428
428
|
class: te([
|
429
429
|
"flex gap-3 absolute ml-auto bg-oc-bg-light right-4 max-w-[calc(100%-24px)]",
|
@@ -438,14 +438,14 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
438
438
|
}, null, 8, ["is-search-only"])) : k("", !0),
|
439
439
|
(H = a.value) != null && H.form ? (i(), K(y(Fe), {
|
440
440
|
key: 1,
|
441
|
-
modelValue:
|
442
|
-
"onUpdate:modelValue": e[6] || (e[6] = (b) =>
|
441
|
+
modelValue: x.value,
|
442
|
+
"onUpdate:modelValue": e[6] || (e[6] = (b) => x.value = b),
|
443
443
|
distance: 9,
|
444
444
|
placement: "bottom-end",
|
445
445
|
"is-attach-to-body": ""
|
446
446
|
}, {
|
447
447
|
menu: $(() => [
|
448
|
-
|
448
|
+
x.value ? (i(), K(y(He), {
|
449
449
|
key: 0,
|
450
450
|
id: D.id,
|
451
451
|
"json-form": a.value.form ?? [],
|
@@ -454,12 +454,12 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
454
454
|
actions: a.value.actions,
|
455
455
|
onApplyFilter: e[3] || (e[3] = (b) => E(b)),
|
456
456
|
onFilterFieldsChanged: e[4] || (e[4] = (b) => F("filter-fields-changed", b)),
|
457
|
-
onCancel: e[5] || (e[5] = (b) =>
|
457
|
+
onCancel: e[5] || (e[5] = (b) => x.value = !1)
|
458
458
|
}, {
|
459
|
-
default: $(({ errors: b, values:
|
459
|
+
default: $(({ errors: b, values: u, jsonForm: O, updateForm: Y }) => [
|
460
460
|
C(l.$slots, "custom-filter-form", {
|
461
461
|
errors: b,
|
462
|
-
values:
|
462
|
+
values: u,
|
463
463
|
jsonForm: O,
|
464
464
|
updateFilter: Y
|
465
465
|
})
|
@@ -469,14 +469,14 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
469
469
|
]),
|
470
470
|
default: $(() => [
|
471
471
|
U(y(Ee), {
|
472
|
-
"is-active":
|
472
|
+
"is-active": x.value,
|
473
473
|
variant: "secondary",
|
474
474
|
"left-icon": "filter"
|
475
475
|
}, null, 8, ["is-active"])
|
476
476
|
]),
|
477
477
|
_: 3
|
478
478
|
}, 8, ["modelValue"])) : k("", !0),
|
479
|
-
a.value.columnEdit ? (i(), K(
|
479
|
+
a.value.columnEdit ? (i(), K(rl, {
|
480
480
|
key: 2,
|
481
481
|
options: s.value.columnEdit,
|
482
482
|
headers: ((G = S.value) == null ? void 0 : G.headers) || [],
|
@@ -489,7 +489,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
489
489
|
])) : k("", !0),
|
490
490
|
U(y(Ge), {
|
491
491
|
filters: Ne.value,
|
492
|
-
queries:
|
492
|
+
queries: T.value,
|
493
493
|
class: "border-t border-oc-gray-200",
|
494
494
|
onRemoveQuery: Le,
|
495
495
|
onRemoveAll: Ce,
|
@@ -501,16 +501,16 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
501
501
|
} : void 0,
|
502
502
|
ae((c = S.value) == null ? void 0 : c.headers, (t, g) => ({
|
503
503
|
name: t.key,
|
504
|
-
fn: $(({ data: w, item:
|
504
|
+
fn: $(({ data: w, item: Q }) => [
|
505
505
|
C(l.$slots, t.key, {
|
506
506
|
data: w,
|
507
|
-
item:
|
507
|
+
item: Q
|
508
508
|
})
|
509
509
|
])
|
510
510
|
}))
|
511
511
|
]), 1032, ["selected", "row-key", "options", "is-loading", "loading-rows", "row-class", "row-link", "is-sticky", "is-borderless"])) : k("", !0),
|
512
512
|
C(l.$slots, "before-pagination"),
|
513
|
-
v.value || f.value ? (i(),
|
513
|
+
v.value || f.value ? (i(), h("div", {
|
514
514
|
key: 1,
|
515
515
|
class: te(["flex gap-3 items-center", v.value && v.value.last_page === 1 ? "justify-end" : ""])
|
516
516
|
}, [
|
@@ -526,18 +526,18 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
526
526
|
strategy: v.value.strategy,
|
527
527
|
"total-visible": "5"
|
528
528
|
}, null, 8, ["modelValue", "max-page", "strategy"])) : k("", !0),
|
529
|
-
f.value ? (i(),
|
530
|
-
U(y(
|
529
|
+
f.value ? (i(), h("div", vl, [
|
530
|
+
U(y(he), {
|
531
531
|
disabled: !f.value.prev,
|
532
532
|
onClick: e[11] || (e[11] = (t) => f.value.prev ? E(null, !1, f.value.prev) : null)
|
533
533
|
}, null, 8, ["disabled"]),
|
534
|
-
U(y(
|
534
|
+
U(y(he), {
|
535
535
|
disabled: !f.value.next,
|
536
536
|
"is-next": "",
|
537
537
|
onClick: e[12] || (e[12] = (t) => f.value.next ? E(null, !1, f.value.next) : null)
|
538
538
|
}, null, 8, ["disabled"])
|
539
539
|
])) : k("", !0),
|
540
|
-
p.value ? k("", !0) : (i(),
|
540
|
+
p.value ? k("", !0) : (i(), h("div", cl, [
|
541
541
|
U(y(Xe), {
|
542
542
|
modelValue: P.value,
|
543
543
|
"onUpdate:modelValue": [
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as p, openBlock as c, createBlock as y, unref as t, withCtx as n, createElementBlock as m, Fragment as K, renderList as C, normalizeClass as s, createElementVNode as o, createCommentVNode as b, renderSlot as u, toDisplayString as k, createVNode as f } from "vue";
|
2
|
-
import { aB as $, ax as B, as as M } from "./index-
|
2
|
+
import { aB as $, ax as B, as as M } from "./index-CLrhZuPR.js";
|
3
3
|
import { _ as h } from "./OcIcon-CJgBICxh.js";
|
4
4
|
const S = ["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" }, O = ["href"], W = { class: "min-w-[120px]" }, j = { class: "truncate w-[200px]" }, z = { class: "flex items-center ml-4" }, A = { 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 { as as U, e as J, B as b } from "./index-
|
2
|
+
import { as as U, e as J, B as b } from "./index-CLrhZuPR.js";
|
3
3
|
import { EMOJI_LIST as a, EMOJI_CATEGORIES as P } from "./Form/EmojiPicker/conts/emoji.js";
|
4
4
|
import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
5
5
|
const F = { class: "flex items-center justify-center rounded bg-oc-bg-dark h-[140px] relative w-full z-50" }, G = ["innerHTML"], R = { class: "p-4 w-[340px]" }, q = { class: "bg-oc-bg-dark p-4 rounded flex items-center justify-center" }, K = ["innerHTML"], Q = { class: "pt-3 pb-4" }, W = ["id", "innerHTML", "onClick"], X = {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as r, computed as c, onMounted as B, openBlock as O, createElementBlock as k, renderSlot as w, createElementVNode as f, createVNode as u, unref as i } from "vue";
|
2
|
-
import { w as $, B as m } from "./index-
|
2
|
+
import { w as $, B as m } from "./index-CLrhZuPR.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
|
-
import { ref as o, openBlock as t, createElementBlock as s, Fragment as g, createElementVNode as c, normalizeClass as m, createVNode as x, unref as
|
2
|
-
import { e as O, B as f } from "./index-
|
1
|
+
import { ref as o, openBlock as t, createElementBlock as s, Fragment as g, createElementVNode as c, normalizeClass as m, createVNode as x, unref as i, withKeys as S, createBlock as d, createCommentVNode as v, nextTick as w } from "vue";
|
2
|
+
import { e as O, B as f } from "./index-CLrhZuPR.js";
|
3
3
|
const B = { class: "flex gap-x-4" }, $ = {
|
4
4
|
__name: "OcFilterSearch",
|
5
5
|
props: {
|
@@ -10,17 +10,17 @@ const B = { class: "flex gap-x-4" }, $ = {
|
|
10
10
|
toggle: []
|
11
11
|
},
|
12
12
|
setup(n, { emit: y }) {
|
13
|
-
const p = y, a = o(!1), l = o(""),
|
14
|
-
a.value = !0, p("toggle", a), await w(),
|
13
|
+
const p = y, a = o(!1), l = o(""), u = o(), h = async () => {
|
14
|
+
a.value = !0, p("toggle", a), await w(), u.value.focus();
|
15
15
|
};
|
16
16
|
return (r, e) => (t(), s(g, null, [
|
17
17
|
c("div", {
|
18
18
|
class: m(["w-full", a.value || n.isSearchOnly ? "" : "absolute max-w-0 overflow-hidden"])
|
19
19
|
}, [
|
20
20
|
c("div", B, [
|
21
|
-
x(
|
21
|
+
x(i(O), {
|
22
22
|
ref_key: "searchInput",
|
23
|
-
ref:
|
23
|
+
ref: u,
|
24
24
|
modelValue: l.value,
|
25
25
|
"onUpdate:modelValue": e[0] || (e[0] = (k) => l.value = k),
|
26
26
|
placeholder: "Search something here",
|
@@ -28,12 +28,12 @@ const B = { class: "flex gap-x-4" }, $ = {
|
|
28
28
|
icon: "search",
|
29
29
|
onKeyup: e[1] || (e[1] = S(
|
30
30
|
() => {
|
31
|
-
r.$emit("addQuery", l.value)
|
31
|
+
r.$emit("addQuery", l.value);
|
32
32
|
},
|
33
33
|
["enter"]
|
34
34
|
))
|
35
35
|
}, null, 8, ["modelValue"]),
|
36
|
-
n.isSearchOnly ? (t(), d(
|
36
|
+
n.isSearchOnly ? (t(), d(i(f), {
|
37
37
|
key: 0,
|
38
38
|
label: "Search",
|
39
39
|
variant: "secondary",
|
@@ -54,7 +54,7 @@ const B = { class: "flex gap-x-4" }, $ = {
|
|
54
54
|
key: 0,
|
55
55
|
class: m(a.value ? "max-w-0 overflow-hidden" : "")
|
56
56
|
}, [
|
57
|
-
a.value ? v("", !0) : (t(), d(
|
57
|
+
a.value ? v("", !0) : (t(), d(i(f), {
|
58
58
|
key: 0,
|
59
59
|
variant: "secondary",
|
60
60
|
"left-icon": "search",
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { computed as k, openBlock as a, createBlock as m, unref as o, withCtx as x, createElementVNode as f, createElementBlock as v, Fragment as b, renderList as p, createVNode as F, createCommentVNode as $ } from "vue";
|
2
|
-
import { N as y, an as i } from "./index-
|
2
|
+
import { N as y, an as i } from "./index-CLrhZuPR.js";
|
3
3
|
const N = { 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 n, openBlock as r, createBlock as f, unref as p, withCtx as g, createVNode as v } from "vue";
|
2
|
-
import { au as d } from "./index-
|
3
|
-
import x from "./OcCropper-
|
2
|
+
import { au as d } from "./index-CLrhZuPR.js";
|
3
|
+
import x from "./OcCropper-Ozcbc9oS.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, openBlock as m, createBlock as s, unref as o, withCtx as p, createCommentVNode as v, createVNode as y } from "vue";
|
2
|
-
import { as as S, aC as h, e as D } from "./index-
|
2
|
+
import { as as S, aC as h, e as D } from "./index-CLrhZuPR.js";
|
3
3
|
import c from "dayjs";
|
4
4
|
const w = {
|
5
5
|
__name: "OcTimePicker",
|