@orchidui/core 1.6.1-1 → 1.6.1-3
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/TextArea/OcTextArea.js +1 -1
- package/dist/Form/index.js +1 -1
- package/dist/FormBuilder/OcFormBuilder.js +1 -1
- package/dist/{OcAccountSetupProgress-gqRg58IF.js → OcAccountSetupProgress-Bi63Xlid.js} +1 -1
- package/dist/{OcComplexCalendar-wUfD-rjH.js → OcComplexCalendar-BQeeNCdr.js} +1 -1
- package/dist/{OcComplexDatePicker-CN5P5UAb.js → OcComplexDatePicker-B2lS6rZn.js} +1 -1
- package/dist/{OcCropper-C2G9bMGn.js → OcCropper-Cg5CDu2b.js} +1 -1
- package/dist/{OcDataTable-CUfaDV_D.js → OcDataTable-BVH2rcPK.js} +163 -163
- package/dist/{OcDraggableList-DO6FTc72.js → OcDraggableList-BbyZ0eST.js} +1 -1
- package/dist/{OcEmojiPicker-C0M7uAji.js → OcEmojiPicker-CsbqhhEt.js} +1 -1
- package/dist/{OcFilterForm-CL1RXUTm.js → OcFilterForm-CT8YeiJr.js} +1 -1
- package/dist/{OcFilterSearch-TPHX4NCL.js → OcFilterSearch-XK2GhcoU.js} +1 -1
- package/dist/{OcFilterSearchFor-Dff-v6cU.js → OcFilterSearchFor-Cc5DpVY8.js} +1 -1
- package/dist/{OcModalCropper-CXUxP0pM.js → OcModalCropper-CWCD6Ykf.js} +2 -2
- package/dist/{OcTimePicker-BTaVEXku.js → OcTimePicker-M7NAih2t.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-DfZmDLFG.js → SubPlanCard-TkScY3DE.js} +1 -1
- package/dist/{ThumbnailSection-BSbhWzDC.js → ThumbnailSection-Cw-80LD5.js} +1 -1
- package/dist/{ThumbnailTheme-CX6k7Fi4.js → ThumbnailTheme-CgEQiEBF.js} +1 -1
- package/dist/{index-Cp_g4d58.js → index-C1KCO1Bm.js} +8 -8
- package/dist/index.js +1 -1
- package/package.json +1 -1
@@ -1,5 +1,5 @@
|
|
1
|
-
import { ref as
|
2
|
-
import { ax as Ee, b as Re, B as Fe, L as Je, Y as ze, aI as _e, aJ as He, aK as Ge, I as We, J as he, k as Xe } from "./index-
|
1
|
+
import { ref as P, onMounted as Ve, openBlock as i, createBlock as B, unref as y, withCtx as V, createElementVNode as H, createElementBlock as $, createVNode as N, mergeProps as ge, Fragment as ee, renderList as ae, normalizeClass as te, toDisplayString as be, createCommentVNode as x, computed as L, createSlots as Qe, renderSlot as U, normalizeProps as ke, guardReactiveProps as xe } from "vue";
|
2
|
+
import { ax as Ee, b as Re, B as Fe, L as Je, Y as ze, aI as _e, aJ as He, aK as Ge, I as We, J as he, k as Xe } from "./index-C1KCO1Bm.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";
|
@@ -27,8 +27,8 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
27
27
|
}
|
28
28
|
},
|
29
29
|
emits: ["change-active", "onMoved", "update-order"],
|
30
|
-
setup(
|
31
|
-
const v = Z,
|
30
|
+
setup(O, { emit: Z }) {
|
31
|
+
const v = Z, j = O, c = P([]), f = P([]), J = P(!1), E = (a = !1) => {
|
32
32
|
f.value = f.value.map((p) => ({
|
33
33
|
...p,
|
34
34
|
isActive: !0
|
@@ -44,39 +44,39 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
44
44
|
animation: 500,
|
45
45
|
forceFallback: !1,
|
46
46
|
move: (a) => a.to.dataset.activeHeaders ? !0 : !!a.draggedContext.futureIndex,
|
47
|
-
"onUpdate:modelValue": () =>
|
47
|
+
"onUpdate:modelValue": () => E()
|
48
48
|
};
|
49
49
|
return Ve(() => {
|
50
|
-
const a = se(
|
51
|
-
f.value = p ||
|
52
|
-
var
|
50
|
+
const a = se(j.localKey), { fixed: p, active: m } = Oe(a, j.headers, j.localKey);
|
51
|
+
f.value = p || j.headers.slice(0, 1), c.value = m || j.headers.slice(1).map((h) => {
|
52
|
+
var F, I, C;
|
53
53
|
return {
|
54
54
|
...h,
|
55
|
-
isActive: ((
|
55
|
+
isActive: ((C = (I = (F = j.options) == null ? void 0 : F.active) == null ? void 0 : I.find((X) => X.key === h.key)) == null ? void 0 : C.isActive) ?? !0
|
56
56
|
};
|
57
|
-
}),
|
58
|
-
}), (a, p) => (i(),
|
59
|
-
modelValue:
|
60
|
-
"onUpdate:modelValue": p[3] || (p[3] = (m) =>
|
57
|
+
}), E(!0);
|
58
|
+
}), (a, p) => (i(), B(y(Ee), {
|
59
|
+
modelValue: J.value,
|
60
|
+
"onUpdate:modelValue": p[3] || (p[3] = (m) => J.value = m),
|
61
61
|
class: "h-[36px]",
|
62
62
|
"is-attach-to-body": ""
|
63
63
|
}, {
|
64
|
-
menu:
|
65
|
-
|
66
|
-
f.value.length ? (i(),
|
67
|
-
p[4] || (p[4] =
|
68
|
-
|
64
|
+
menu: V(() => [
|
65
|
+
H("div", el, [
|
66
|
+
f.value.length ? (i(), $("div", ll, [
|
67
|
+
p[4] || (p[4] = H("span", { class: "text-oc-text-400 font-medium" }, "Fixed columns", -1)),
|
68
|
+
N(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
|
-
default:
|
74
|
-
(i(!0),
|
73
|
+
default: V(() => [
|
74
|
+
(i(!0), $(ee, null, ae(f.value, (m, h) => (i(), $("div", {
|
75
75
|
key: m.key,
|
76
76
|
class: te(["flex items-center justify-between h-[26px]", h ? "" : "is-disabled"])
|
77
77
|
}, [
|
78
|
-
|
79
|
-
h ? (i(),
|
78
|
+
H("span", null, be(m.label), 1),
|
79
|
+
h ? (i(), B(y(Se), {
|
80
80
|
key: 0,
|
81
81
|
width: "18",
|
82
82
|
height: "18",
|
@@ -88,30 +88,30 @@ 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
|
])) : x("", !0),
|
91
|
-
|
92
|
-
p[5] || (p[5] =
|
93
|
-
|
91
|
+
H("div", al, [
|
92
|
+
p[5] || (p[5] = H("span", { class: "text-oc-text-400 font-medium" }, "Active columns", -1)),
|
93
|
+
N(y(we), ge({
|
94
94
|
key: "key",
|
95
95
|
modelValue: c.value,
|
96
96
|
"onUpdate:modelValue": p[2] || (p[2] = (m) => c.value = m)
|
97
97
|
}, W, { "data-active-headers": "true" }), {
|
98
|
-
default:
|
99
|
-
(i(!0),
|
98
|
+
default: V(() => [
|
99
|
+
(i(!0), $(ee, null, ae(c.value, (m) => (i(), $(ee, {
|
100
100
|
key: m.key
|
101
101
|
}, [
|
102
|
-
m.key !== "actions" ? (i(),
|
103
|
-
|
104
|
-
|
102
|
+
m.key !== "actions" ? (i(), $("div", tl, [
|
103
|
+
H("div", sl, [
|
104
|
+
N(y(Re), {
|
105
105
|
modelValue: m.isActive,
|
106
106
|
"onUpdate:modelValue": [
|
107
107
|
(h) => m.isActive = h,
|
108
|
-
p[1] || (p[1] = (h) =>
|
108
|
+
p[1] || (p[1] = (h) => E())
|
109
109
|
],
|
110
110
|
class: "!w-fit"
|
111
111
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
112
|
-
|
112
|
+
H("div", ol, be(m.label), 1)
|
113
113
|
]),
|
114
|
-
c.value.length > 1 ? (i(),
|
114
|
+
c.value.length > 1 ? (i(), B(y(Se), {
|
115
115
|
key: 0,
|
116
116
|
width: "18",
|
117
117
|
height: "18",
|
@@ -126,8 +126,8 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
126
126
|
])
|
127
127
|
])
|
128
128
|
]),
|
129
|
-
default:
|
130
|
-
|
129
|
+
default: V(() => [
|
130
|
+
N(y(Fe), {
|
131
131
|
label: "Edit Column",
|
132
132
|
"left-icon": "setting",
|
133
133
|
variant: "secondary"
|
@@ -188,35 +188,35 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
188
188
|
"search-query-changed": [],
|
189
189
|
"hover:cell": []
|
190
190
|
},
|
191
|
-
setup(
|
191
|
+
setup(O, { emit: Z }) {
|
192
192
|
var re, ie, ne, de, ve, ce, fe, pe, me;
|
193
|
-
const v =
|
193
|
+
const v = O, j = Z, c = L(() => {
|
194
194
|
var l;
|
195
195
|
return (l = v.options) == null ? void 0 : l.pagination;
|
196
|
-
}), f =
|
196
|
+
}), f = L(() => {
|
197
197
|
var l;
|
198
198
|
return (l = v.options) == null ? void 0 : l.cursor;
|
199
|
-
}),
|
199
|
+
}), J = P(), E = L(() => {
|
200
200
|
var l;
|
201
201
|
return (l = v.options) == null ? void 0 : l.tableOptions;
|
202
|
-
}), W =
|
202
|
+
}), W = L(() => {
|
203
203
|
var l;
|
204
204
|
return {
|
205
|
-
...
|
206
|
-
headers:
|
205
|
+
...E.value,
|
206
|
+
headers: J.value ? J.value.filter((e) => ue(e.key)) : (l = E.value) == null ? void 0 : l.headers.filter((e) => ue(e.key))
|
207
207
|
};
|
208
|
-
}), a =
|
208
|
+
}), a = L(() => {
|
209
209
|
var l;
|
210
210
|
return (l = v.options) == null ? void 0 : l.filterOptions;
|
211
|
-
}), p =
|
211
|
+
}), p = L(() => {
|
212
212
|
var l;
|
213
213
|
return (l = v.options) == null ? void 0 : l.hidePerPageDropdown;
|
214
|
-
}), m =
|
214
|
+
}), m = L(() => {
|
215
215
|
var l;
|
216
216
|
return ((l = c.value) == null ? void 0 : l.last_page) === 1;
|
217
|
-
}), h =
|
217
|
+
}), h = P(!1), F = P(v.filter[(ie = (re = a.value) == null ? void 0 : re.tabs) == null ? void 0 : ie.key]), I = P(v.filter.page), C = P(
|
218
218
|
(de = (ne = a.value) == null ? void 0 : ne.per_page) != null && de.key ? v.filter[(ce = (ve = a.value) == null ? void 0 : ve.per_page) == null ? void 0 : ce.key] : v.filter.per_page
|
219
|
-
), X = ((me = v.filter[(pe = (fe = a.value) == null ? void 0 : fe.search) == null ? void 0 : pe.key]) == null ? void 0 : me.trim()) ?? "",
|
219
|
+
), X = ((me = v.filter[(pe = (fe = a.value) == null ? void 0 : fe.search) == null ? void 0 : pe.key]) == null ? void 0 : me.trim()) ?? "", z = P(X ? X.split(",") : []), oe = P(!1), je = L(
|
220
220
|
() => {
|
221
221
|
var l, e;
|
222
222
|
return (e = (l = v.options) == null ? void 0 : l.perPageOptions) == null ? void 0 : e.map(
|
@@ -226,7 +226,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
226
226
|
})
|
227
227
|
);
|
228
228
|
}
|
229
|
-
), Ae =
|
229
|
+
), Ae = L(() => {
|
230
230
|
let l = [
|
231
231
|
{
|
232
232
|
label: "10",
|
@@ -266,71 +266,71 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
266
266
|
o > 10 && (e = e.filter((u) => u.value <= o));
|
267
267
|
}
|
268
268
|
return [...new Set(e)];
|
269
|
-
}), De =
|
269
|
+
}), De = L(() => {
|
270
270
|
var l;
|
271
271
|
return ((l = v.selected) == null ? void 0 : l.length) > 0;
|
272
272
|
}), Le = (l) => {
|
273
|
-
!l.trim() ||
|
273
|
+
!l.trim() || z.value.includes(l) || (z.value = [l], A(), j("search-query-changed", l));
|
274
274
|
}, Pe = (l) => {
|
275
|
-
|
276
|
-
},
|
277
|
-
!
|
278
|
-
const t =
|
279
|
-
var e, o, u, d, n, s, g, b;
|
280
|
-
|
275
|
+
z.value = z.value.filter((e) => e !== l), A();
|
276
|
+
}, _ = v.filter;
|
277
|
+
!_ && c ? _.page = 1 : !_ && f && (_.cursor = "");
|
278
|
+
const t = P(_), Ce = () => {
|
279
|
+
var e, o, u, d, n, s, g, b, S, w, K, T, q, Q;
|
280
|
+
z.value = [], F.value = "";
|
281
281
|
const l = {};
|
282
|
-
a.value ?
|
282
|
+
a.value ? _.page = 1 : _.cursor = "", (o = (e = a.value) == null ? void 0 : e.per_page) != null && o.key ? l[(d = (u = a.value) == null ? void 0 : u.per_page) == null ? void 0 : d.key] = C.value : l.per_page = C.value, (s = (n = a.value) == null ? void 0 : n.tabs) != null && s.key ? l[(b = (g = a.value) == null ? void 0 : g.tabs) == null ? void 0 : b.key] = F.value : l.tabs = F.value, (w = (S = a.value) == null ? void 0 : S.columnEdit) != null && w.key && (l[(T = (K = a.value) == null ? void 0 : K.columnEdit) == null ? void 0 : T.key] = t.value[(Q = (q = a.value) == null ? void 0 : q.columnEdit) == null ? void 0 : Q.key]), t.value = l, A();
|
283
283
|
}, Ke = () => {
|
284
|
-
|
284
|
+
A(null, I.value);
|
285
285
|
}, Ye = () => {
|
286
286
|
v.id && $e(v.id, JSON.stringify(t.value));
|
287
|
-
}, Ue = () => v.id ? se(v.id) : null,
|
287
|
+
}, Ue = () => v.id ? se(v.id) : null, A = (l = null, e = !1, o = "") => {
|
288
288
|
var u, d, n;
|
289
|
-
c.value && !e && (
|
289
|
+
c.value && !e && (I.value = 1), c.value ? t.value.page = I.value : t.value.cursor = o, (u = a.value) != null && u.per_page ? t.value[a.value.per_page.key] = C.value : t.value.per_page = C.value, (d = a.value) != null && d.tabs && (t.value[a.value.tabs.key] = F.value), (n = a.value) != null && n.search && (t.value[a.value.search.key] = z.value.join()), l && (h.value = !1, t.value = { ...t.value, ...l }, Object.keys(t.value).forEach((s) => {
|
290
290
|
Array.isArray(t.value[s]) && t.value[s].length === 0 && delete t.value[s];
|
291
|
-
})), Ye(),
|
291
|
+
})), Ye(), j("update:filter", t.value);
|
292
292
|
}, Be = (l, e) => {
|
293
|
-
(e === a.value.tabs.key || e === "tabs") && (
|
293
|
+
(e === a.value.tabs.key || e === "tabs") && (F.value = ""), A(l), j("filter-removed", e);
|
294
294
|
}, Ie = (l) => {
|
295
295
|
let e = [];
|
296
296
|
return l.forEach((o) => {
|
297
297
|
e.push(o.key);
|
298
298
|
}), e;
|
299
|
-
}, Me =
|
299
|
+
}, Me = L(() => {
|
300
300
|
if (t.value) {
|
301
301
|
let l = [];
|
302
302
|
return Object.keys(t.value).forEach((e) => {
|
303
|
-
var n, s, g, b,
|
303
|
+
var n, s, g, b, S, w, K, T, q, Q, G;
|
304
304
|
let o = (s = (n = a.value) == null ? void 0 : n.tabs) == null ? void 0 : s.key;
|
305
|
-
const u = (b = (g = a.value) == null ? void 0 : g.search) == null ? void 0 : b.key, d = ((
|
306
|
-
if ((
|
305
|
+
const u = (b = (g = a.value) == null ? void 0 : g.search) == null ? void 0 : b.key, d = ((w = (S = a.value) == null ? void 0 : S.per_page) == null ? void 0 : w.key) ?? "per_page";
|
306
|
+
if ((K = a.value.form) == null || K.find((k) => {
|
307
307
|
k.name === o && (o = "");
|
308
308
|
}), e !== "page" && e !== "cursor" && e !== d && e !== o && e !== u) {
|
309
|
-
let k = null, r = (
|
310
|
-
if (typeof
|
311
|
-
let
|
312
|
-
return
|
313
|
-
|
314
|
-
}),
|
309
|
+
let k = null, r = (T = a.value.form) == null ? void 0 : T.find((M) => {
|
310
|
+
if (typeof M.name == "object") {
|
311
|
+
let Y = !1;
|
312
|
+
return M.name.forEach((R) => {
|
313
|
+
R.key === e && (Y = !0, k = Ie(M.name));
|
314
|
+
}), Y;
|
315
315
|
} else
|
316
|
-
return
|
317
|
-
}),
|
316
|
+
return M.name === e;
|
317
|
+
}), D = "";
|
318
318
|
if (r && t.value[e]) {
|
319
|
-
if (typeof r.name == "object" ? (
|
320
|
-
|
321
|
-
}) :
|
322
|
-
(
|
319
|
+
if (typeof r.name == "object" ? (q = r.name) == null || q.forEach((Y) => {
|
320
|
+
D && (D += " - "), D += t.value[Y.key];
|
321
|
+
}) : D = t.value[e], r.props.options && (D = (r.props.multiple ? t.value[e] : [t.value[e]]).map(
|
322
|
+
(R) => {
|
323
323
|
var ye;
|
324
|
-
return (ye = r.props.options.find(({ value: qe }) => qe ===
|
324
|
+
return (ye = r.props.options.find(({ value: qe }) => qe === R)) == null ? void 0 : ye.label;
|
325
325
|
}
|
326
|
-
).join(", ")), r.type === "RangeInput" && Array.isArray(t.value[e]) && (
|
327
|
-
if (((
|
328
|
-
const
|
329
|
-
|
330
|
-
} else
|
331
|
-
let
|
332
|
-
r && r.name && typeof r.name == "object" && l.find((
|
333
|
-
label:
|
326
|
+
).join(", ")), r.type === "RangeInput" && Array.isArray(t.value[e]) && (D = t.value[e][0].toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") + " - " + t.value[e][1].toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",")), r.type === "DatePicker")
|
327
|
+
if (((Q = r == null ? void 0 : r.props) == null ? void 0 : Q.type) === "range" && r.name && r.name[1]) {
|
328
|
+
const Y = le(t.value[r.name[0].key]).format("MM/DD/YYYY"), R = le(t.value[r.name[1].key]).format("MM/DD/YYYY");
|
329
|
+
D = Y === R ? Y : Y + " - " + R;
|
330
|
+
} else D = le(t.value[r.name]).format("MM/DD/YYYY");
|
331
|
+
let M = `${(G = r == null ? void 0 : r.props) == null ? void 0 : G.label} : ${D}`;
|
332
|
+
r && r.name && typeof r.name == "object" && l.find((R) => R.name === k[0]) && (M = ""), l.push({
|
333
|
+
label: M,
|
334
334
|
name: e,
|
335
335
|
multiNames: k
|
336
336
|
});
|
@@ -343,10 +343,10 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
343
343
|
var e, o, u, d, n, s;
|
344
344
|
return ((s = (n = (d = (u = t.value) == null ? void 0 : u[(o = (e = a.value) == null ? void 0 : e.columnEdit) == null ? void 0 : o.key]) == null ? void 0 : d.active) == null ? void 0 : n.find((g) => g.key === l)) == null ? void 0 : s.isActive) ?? !0;
|
345
345
|
}, Ne = ({ fixedHeaders: l, activeHeaders: e, isOnMount: o }) => {
|
346
|
-
var u, d, n, s, g, b,
|
347
|
-
if (t.value[(d = (u = a.value) == null ? void 0 : u.columnEdit) == null ? void 0 : d.key] || (t.value[(s = (n = a.value) == null ? void 0 : n.columnEdit) == null ? void 0 : s.key] = {}), t.value[(b = (g = a.value) == null ? void 0 : g.columnEdit) == null ? void 0 : b.key].fixed = l, t.value[(
|
348
|
-
const
|
349
|
-
$e(a.value.columnEdit.localStorageKey,
|
346
|
+
var u, d, n, s, g, b, S, w;
|
347
|
+
if (t.value[(d = (u = a.value) == null ? void 0 : u.columnEdit) == null ? void 0 : d.key] || (t.value[(s = (n = a.value) == null ? void 0 : n.columnEdit) == null ? void 0 : s.key] = {}), t.value[(b = (g = a.value) == null ? void 0 : g.columnEdit) == null ? void 0 : b.key].fixed = l, t.value[(w = (S = a.value) == null ? void 0 : S.columnEdit) == null ? void 0 : w.key].active = e, J.value = [...l, ...e], !o) {
|
348
|
+
const K = Ze(l, e);
|
349
|
+
$e(a.value.columnEdit.localStorageKey, K);
|
350
350
|
}
|
351
351
|
}, Te = () => {
|
352
352
|
var l, e, o, u, d, n;
|
@@ -355,10 +355,10 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
355
355
|
if (s) {
|
356
356
|
const { fixed: g, active: b } = Oe(
|
357
357
|
s,
|
358
|
-
|
358
|
+
E.value.headers,
|
359
359
|
a.value.columnEdit.localStorageKey
|
360
360
|
);
|
361
|
-
t.value[(u = (o = a.value) == null ? void 0 : o.columnEdit) == null ? void 0 : u.key].fixed = g, t.value[(n = (d = a.value) == null ? void 0 : d.columnEdit) == null ? void 0 : n.key].active = b,
|
361
|
+
t.value[(u = (o = a.value) == null ? void 0 : o.columnEdit) == null ? void 0 : u.key].fixed = g, t.value[(n = (d = a.value) == null ? void 0 : d.columnEdit) == null ? void 0 : n.key].active = b, J.value = [...g, ...b];
|
362
362
|
}
|
363
363
|
}
|
364
364
|
};
|
@@ -366,78 +366,78 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
366
366
|
var e, o, u, d, n;
|
367
367
|
Te();
|
368
368
|
const l = Ue();
|
369
|
-
l && (t.value = JSON.parse(l),
|
369
|
+
l && (t.value = JSON.parse(l), F.value = F.value || ((e = t.value) == null ? void 0 : e.tabs) || ((d = t.value) == null ? void 0 : d[(u = (o = a.value) == null ? void 0 : o.tabs) == null ? void 0 : u.key]), I.value = ((n = t.value) == null ? void 0 : n.page) || 1, A(null, !0, t.value.cursor));
|
370
370
|
}), (l, e) => {
|
371
371
|
var o, u, d, n;
|
372
|
-
return i(),
|
373
|
-
|
372
|
+
return i(), $("div", rl, [
|
373
|
+
E.value ? (i(), B(y(Je), {
|
374
374
|
key: 0,
|
375
|
-
selected:
|
376
|
-
"row-key":
|
375
|
+
selected: O.selected,
|
376
|
+
"row-key": O.rowKey,
|
377
377
|
options: W.value,
|
378
|
-
"is-loading":
|
379
|
-
"loading-rows":
|
380
|
-
"row-class":
|
381
|
-
"row-link":
|
382
|
-
"is-sticky":
|
383
|
-
"is-borderless":
|
378
|
+
"is-loading": O.isLoading,
|
379
|
+
"loading-rows": C.value,
|
380
|
+
"row-class": O.rowClass,
|
381
|
+
"row-link": O.rowLink,
|
382
|
+
"is-sticky": E.value.isSticky,
|
383
|
+
"is-borderless": E.value.isBorderless,
|
384
384
|
"onUpdate:selected": e[7] || (e[7] = (s) => l.$emit("update:selected", s)),
|
385
385
|
"onClick:row": e[8] || (e[8] = (s) => l.$emit("click:row", s)),
|
386
386
|
"onHover:cell": e[9] || (e[9] = (s) => l.$emit("hover:cell", s))
|
387
387
|
}, Qe({
|
388
|
-
after:
|
389
|
-
|
388
|
+
after: V(() => [
|
389
|
+
U(l.$slots, "after")
|
390
390
|
]),
|
391
|
-
empty:
|
392
|
-
|
391
|
+
empty: V(() => [
|
392
|
+
U(l.$slots, "empty")
|
393
393
|
]),
|
394
|
-
"table-header":
|
395
|
-
|
394
|
+
"table-header": V((s) => [
|
395
|
+
U(l.$slots, "table-header", ke(xe(s)))
|
396
396
|
]),
|
397
|
-
"table-body":
|
398
|
-
|
397
|
+
"table-body": V((s) => [
|
398
|
+
U(l.$slots, "table-body", ke(xe(s)))
|
399
399
|
]),
|
400
400
|
_: 2
|
401
401
|
}, [
|
402
402
|
l.$slots.before || (o = a.value) != null && o.search || (u = a.value) != null && u.form || (d = a.value) != null && d.tabs ? {
|
403
403
|
name: "before",
|
404
|
-
fn:
|
405
|
-
var s, g, b,
|
404
|
+
fn: V(() => {
|
405
|
+
var s, g, b, S;
|
406
406
|
return [
|
407
|
-
|
408
|
-
(s = a.value) != null && s.search || (g = a.value) != null && g.form || (b = a.value) != null && b.tabs ? (i(),
|
409
|
-
De.value ? (i(),
|
410
|
-
|
411
|
-
])) : (i(),
|
412
|
-
(
|
407
|
+
U(l.$slots, "before"),
|
408
|
+
(s = a.value) != null && s.search || (g = a.value) != null && g.form || (b = a.value) != null && b.tabs ? (i(), $("div", il, [
|
409
|
+
De.value ? (i(), $("div", nl, [
|
410
|
+
U(l.$slots, "bulk-actions", { selectedRows: O.selected })
|
411
|
+
])) : (i(), $("div", dl, [
|
412
|
+
(S = a.value) != null && S.tabs ? (i(), B(y(ze), {
|
413
413
|
key: 0,
|
414
|
-
modelValue:
|
414
|
+
modelValue: F.value,
|
415
415
|
"onUpdate:modelValue": [
|
416
|
-
e[0] || (e[0] = (
|
417
|
-
e[1] || (e[1] = (
|
416
|
+
e[0] || (e[0] = (w) => F.value = w),
|
417
|
+
e[1] || (e[1] = (w) => A(null))
|
418
418
|
],
|
419
|
-
"is-disabled":
|
419
|
+
"is-disabled": O.isLoading,
|
420
420
|
tabs: a.value.tabs.options,
|
421
421
|
variant: "pills"
|
422
422
|
}, null, 8, ["modelValue", "is-disabled", "tabs"])) : x("", !0)
|
423
423
|
])),
|
424
|
-
|
425
|
-
var
|
424
|
+
U(l.$slots, "filter-options", {}, () => {
|
425
|
+
var w, K, T, q, Q, G;
|
426
426
|
return [
|
427
|
-
(
|
427
|
+
(w = a.value) != null && w.search || (K = a.value) != null && K.form || (T = a.value) != null && T.columnEdit ? (i(), $("div", {
|
428
428
|
key: 0,
|
429
429
|
class: te([
|
430
430
|
"flex gap-3 absolute ml-auto bg-oc-bg-light right-4 max-w-[calc(100%-24px)]",
|
431
431
|
a.value ? oe.value ? "md:w-fit w-full" : "" : "w-full justify-end"
|
432
432
|
])
|
433
433
|
}, [
|
434
|
-
(
|
434
|
+
(q = a.value) != null && q.search ? (i(), B(y(_e), {
|
435
435
|
key: 0,
|
436
436
|
"is-search-only": !a.value.tabs || a.value.isSearchOnly,
|
437
437
|
onAddQuery: Le,
|
438
438
|
onToggle: e[2] || (e[2] = (k) => oe.value = k)
|
439
439
|
}, null, 8, ["is-search-only"])) : x("", !0),
|
440
|
-
(
|
440
|
+
(Q = a.value) != null && Q.form ? (i(), B(y(Ee), {
|
441
441
|
key: 1,
|
442
442
|
modelValue: h.value,
|
443
443
|
"onUpdate:modelValue": e[6] || (e[6] = (k) => h.value = k),
|
@@ -445,31 +445,31 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
445
445
|
placement: "bottom-end",
|
446
446
|
"is-attach-to-body": ""
|
447
447
|
}, {
|
448
|
-
menu:
|
449
|
-
h.value ? (i(),
|
448
|
+
menu: V(() => [
|
449
|
+
h.value ? (i(), B(y(He), {
|
450
450
|
key: 0,
|
451
|
-
id:
|
451
|
+
id: O.id,
|
452
452
|
"json-form": a.value.form ?? [],
|
453
453
|
grid: a.value.grid ?? null,
|
454
454
|
values: v.filter,
|
455
455
|
actions: a.value.actions,
|
456
|
-
onApplyFilter: e[3] || (e[3] = (k) =>
|
457
|
-
onFilterFieldsChanged: e[4] || (e[4] = (k) =>
|
456
|
+
onApplyFilter: e[3] || (e[3] = (k) => A(k)),
|
457
|
+
onFilterFieldsChanged: e[4] || (e[4] = (k) => j("filter-fields-changed", k)),
|
458
458
|
onCancel: e[5] || (e[5] = (k) => h.value = !1)
|
459
459
|
}, {
|
460
|
-
default:
|
461
|
-
|
460
|
+
default: V(({ errors: k, values: r, jsonForm: D, updateForm: M }) => [
|
461
|
+
U(l.$slots, "custom-filter-form", {
|
462
462
|
errors: k,
|
463
463
|
values: r,
|
464
|
-
jsonForm:
|
465
|
-
updateFilter:
|
464
|
+
jsonForm: D,
|
465
|
+
updateFilter: M
|
466
466
|
})
|
467
467
|
]),
|
468
468
|
_: 3
|
469
469
|
}, 8, ["id", "json-form", "grid", "values", "actions"])) : x("", !0)
|
470
470
|
]),
|
471
|
-
default:
|
472
|
-
|
471
|
+
default: V(() => [
|
472
|
+
N(y(Fe), {
|
473
473
|
"is-active": h.value,
|
474
474
|
variant: "secondary",
|
475
475
|
"left-icon": "filter"
|
@@ -477,10 +477,10 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
477
477
|
]),
|
478
478
|
_: 3
|
479
479
|
}, 8, ["modelValue"])) : x("", !0),
|
480
|
-
a.value.columnEdit ? (i(),
|
480
|
+
a.value.columnEdit ? (i(), B(ul, {
|
481
481
|
key: 2,
|
482
482
|
options: t.value.columnEdit,
|
483
|
-
headers: ((G =
|
483
|
+
headers: ((G = E.value) == null ? void 0 : G.headers) || [],
|
484
484
|
"local-key": a.value.columnEdit.localStorageKey,
|
485
485
|
onUpdateOrder: Ne
|
486
486
|
}, null, 8, ["options", "headers", "local-key"])) : x("", !0)
|
@@ -488,9 +488,9 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
488
488
|
];
|
489
489
|
})
|
490
490
|
])) : x("", !0),
|
491
|
-
|
491
|
+
N(y(Ge), {
|
492
492
|
filters: Me.value,
|
493
|
-
queries:
|
493
|
+
queries: z.value,
|
494
494
|
class: "border-t border-oc-gray-200",
|
495
495
|
onRemoveQuery: Pe,
|
496
496
|
onRemoveAll: Ce,
|
@@ -500,26 +500,26 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
500
500
|
}),
|
501
501
|
key: "0"
|
502
502
|
} : void 0,
|
503
|
-
ae((n =
|
503
|
+
ae((n = E.value) == null ? void 0 : n.headers, (s, g) => ({
|
504
504
|
name: s.key,
|
505
|
-
fn:
|
506
|
-
|
505
|
+
fn: V(({ data: b, item: S }) => [
|
506
|
+
U(l.$slots, s.key, {
|
507
507
|
data: b,
|
508
|
-
item:
|
508
|
+
item: S
|
509
509
|
})
|
510
510
|
])
|
511
511
|
}))
|
512
512
|
]), 1032, ["selected", "row-key", "options", "is-loading", "loading-rows", "row-class", "row-link", "is-sticky", "is-borderless"])) : x("", !0),
|
513
|
-
|
514
|
-
c.value || f.value ? (i(),
|
513
|
+
U(l.$slots, "before-pagination"),
|
514
|
+
c.value || f.value ? (i(), $("div", {
|
515
515
|
key: 1,
|
516
516
|
class: te(["flex gap-3 items-center", c.value && c.value.last_page === 1 ? "justify-end" : ""])
|
517
517
|
}, [
|
518
|
-
c.value && !m.value ? (i(),
|
518
|
+
c.value && !m.value ? (i(), B(y(We), {
|
519
519
|
key: 0,
|
520
|
-
modelValue:
|
520
|
+
modelValue: I.value,
|
521
521
|
"onUpdate:modelValue": [
|
522
|
-
e[10] || (e[10] = (s) =>
|
522
|
+
e[10] || (e[10] = (s) => I.value = s),
|
523
523
|
Ke
|
524
524
|
],
|
525
525
|
class: "justify-center",
|
@@ -527,23 +527,23 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
527
527
|
strategy: c.value.strategy,
|
528
528
|
"total-visible": "5"
|
529
529
|
}, null, 8, ["modelValue", "max-page", "strategy"])) : x("", !0),
|
530
|
-
f.value ? (i(),
|
531
|
-
|
530
|
+
f.value ? (i(), $("div", vl, [
|
531
|
+
N(y(he), {
|
532
532
|
disabled: !f.value.prev,
|
533
|
-
onClick: e[11] || (e[11] = (s) => f.value.prev ?
|
533
|
+
onClick: e[11] || (e[11] = (s) => f.value.prev ? A(null, !1, f.value.prev) : null)
|
534
534
|
}, null, 8, ["disabled"]),
|
535
|
-
|
535
|
+
N(y(he), {
|
536
536
|
disabled: !f.value.next,
|
537
537
|
"is-next": "",
|
538
|
-
onClick: e[12] || (e[12] = (s) => f.value.next ?
|
538
|
+
onClick: e[12] || (e[12] = (s) => f.value.next ? A(null, !1, f.value.next) : null)
|
539
539
|
}, null, 8, ["disabled"])
|
540
540
|
])) : x("", !0),
|
541
|
-
p.value ? x("", !0) : (i(),
|
542
|
-
|
543
|
-
modelValue:
|
541
|
+
p.value ? x("", !0) : (i(), $("div", cl, [
|
542
|
+
N(y(Xe), {
|
543
|
+
modelValue: C.value,
|
544
544
|
"onUpdate:modelValue": [
|
545
|
-
e[13] || (e[13] = (s) =>
|
546
|
-
e[14] || (e[14] = (s) =>
|
545
|
+
e[13] || (e[13] = (s) => C.value = s),
|
546
|
+
e[14] || (e[14] = (s) => A(null))
|
547
547
|
],
|
548
548
|
label: "Item per page",
|
549
549
|
"is-inline-label": "",
|
@@ -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 C, renderList as K, normalizeClass as s, createElementVNode as o, createCommentVNode as b, renderSlot as u, toDisplayString as k, createVNode as f } from "vue";
|
2
|
-
import { aG as $, aC as M, ax as S } from "./index-
|
2
|
+
import { aG as $, aC as M, ax as S } from "./index-C1KCO1Bm.js";
|
3
3
|
import { _ as h } from "./OcIcon-CJgBICxh.js";
|
4
4
|
const B = ["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" }, T = {
|
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 { ax as U, e as J, B as b } from "./index-
|
2
|
+
import { ax as U, e as J, B as b } from "./index-C1KCO1Bm.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-C1KCO1Bm.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 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-
|
2
|
+
import { e as O, B as f } from "./index-C1KCO1Bm.js";
|
3
3
|
const B = { class: "flex gap-x-4" }, $ = {
|
4
4
|
__name: "OcFilterSearch",
|
5
5
|
props: {
|
@@ -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 { N as y, as as i } from "./index-
|
2
|
+
import { N as y, as as i } from "./index-C1KCO1Bm.js";
|
3
3
|
const N = { class: "flex gap-1 items-center normal-case flex-wrap" }, R = {
|
4
4
|
__name: "OcFilterSearchFor",
|
5
5
|
props: {
|