@orchidui/core 1.1.31-4 → 1.1.31-6
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-CsieDc13.js → OcComplexCalendar-B7tvBNj0.js} +1 -1
- package/dist/{OcComplexDatePicker-C1rftM9e.js → OcComplexDatePicker-BHzYsfo9.js} +1 -1
- package/dist/{OcCropper-DEMCCdNv.js → OcCropper-CZvllEpx.js} +1 -1
- package/dist/{OcDataTable-ChQoZYkz.js → OcDataTable-DY-Skv_l.js} +139 -141
- package/dist/{OcDraggableList-CNJ0UX7A.js → OcDraggableList-D5a0IxOC.js} +1 -1
- package/dist/{OcEmojiPicker-BzgpAvzA.js → OcEmojiPicker-D2Dd9RHf.js} +1 -1
- package/dist/{OcFilterForm-C6bbxMQz.js → OcFilterForm-DrAUAqQk.js} +1 -1
- package/dist/{OcFilterSearch-VrsqR8K3.js → OcFilterSearch-CPBQ9MRj.js} +1 -1
- package/dist/{OcFilterSearchFor-pYQS37xa.js → OcFilterSearchFor-BkPKJYXL.js} +1 -1
- package/dist/{OcModalCropper-BSkm1o9d.js → OcModalCropper-B5PBQd4u.js} +2 -2
- package/dist/{OcTimePicker-CEePomr_.js → OcTimePicker-DCwGnd0S.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-okV5TfUX.js → SubPlanCard-M0r9pGEg.js} +1 -1
- package/dist/{ThumbnailSection-ByWHvtKc.js → ThumbnailSection-BsLQKgIQ.js} +1 -1
- package/dist/{ThumbnailTheme-DDuGf9g2.js → ThumbnailTheme-B2hIlpxt.js} +1 -1
- package/dist/{index-DvOKqQeL.js → index-taGoaSDg.js} +413 -423
- package/dist/index.js +1 -1
- package/package.json +1 -1
@@ -1,7 +1,7 @@
|
|
1
|
-
import { ref as A, onMounted as Ve, openBlock as i, createBlock as K, unref as y, withCtx as $, createElementVNode as R, createElementBlock as
|
2
|
-
import { as as Fe, b as Re, B as Ee, L 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 B, 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-taGoaSDg.js";
|
3
3
|
import le from "dayjs";
|
4
|
-
import { VueDraggableNext as
|
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";
|
6
6
|
import { _ as Se } from "./OcIcon-CJgBICxh.js";
|
7
7
|
const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
@@ -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]" }, ul = {
|
14
14
|
__name: "ColumnEdit",
|
15
15
|
props: {
|
16
16
|
options: {
|
@@ -28,13 +28,13 @@ 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
|
31
|
+
const v = Z, F = D, c = A([]), f = A([]), I = A(!1), S = (a = !1) => {
|
32
32
|
f.value = f.value.map((p) => ({
|
33
33
|
...p,
|
34
34
|
isActive: !0
|
35
|
-
})),
|
35
|
+
})), v("update-order", {
|
36
36
|
fixedHeaders: f.value,
|
37
|
-
activeHeaders:
|
37
|
+
activeHeaders: c.value,
|
38
38
|
isOnMount: a
|
39
39
|
});
|
40
40
|
}, W = {
|
@@ -48,11 +48,11 @@ 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),
|
52
|
-
var V,
|
51
|
+
f.value = p || F.headers.slice(0, 1), c.value = m || F.headers.slice(1).map((x) => {
|
52
|
+
var V, Y, P;
|
53
53
|
return {
|
54
54
|
...x,
|
55
|
-
isActive: ((P = (
|
55
|
+
isActive: ((P = (Y = (V = F.options) == null ? void 0 : V.active) == null ? void 0 : Y.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), {
|
@@ -63,15 +63,15 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
63
63
|
}, {
|
64
64
|
menu: $(() => [
|
65
65
|
R("div", el, [
|
66
|
-
f.value.length ? (i(),
|
66
|
+
f.value.length ? (i(), h("div", ll, [
|
67
67
|
p[4] || (p[4] = R("span", { class: "text-oc-text-400 font-medium" }, "Fixed columns", -1)),
|
68
|
-
|
68
|
+
B(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
76
|
class: te(["flex items-center justify-between h-[26px]", x ? "" : "is-disabled"])
|
77
77
|
}, [
|
@@ -90,18 +90,18 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
90
90
|
])) : k("", !0),
|
91
91
|
R("div", al, [
|
92
92
|
p[5] || (p[5] = R("span", { class: "text-oc-text-400 font-medium" }, "Active columns", -1)),
|
93
|
-
|
93
|
+
B(y(we), ge({
|
94
94
|
key: "key",
|
95
|
-
modelValue:
|
96
|
-
"onUpdate:modelValue": p[2] || (p[2] = (m) =>
|
95
|
+
modelValue: c.value,
|
96
|
+
"onUpdate:modelValue": p[2] || (p[2] = (m) => c.value = m)
|
97
97
|
}, W, { "data-active-headers": "true" }), {
|
98
98
|
default: $(() => [
|
99
|
-
(i(!0),
|
99
|
+
(i(!0), h(ee, null, ae(c.value, (m) => (i(), h(ee, {
|
100
100
|
key: m.key
|
101
101
|
}, [
|
102
|
-
m.key !== "actions" ? (i(),
|
102
|
+
m.key !== "actions" ? (i(), h("div", tl, [
|
103
103
|
R("div", sl, [
|
104
|
-
|
104
|
+
B(y(Re), {
|
105
105
|
modelValue: m.isActive,
|
106
106
|
"onUpdate:modelValue": [
|
107
107
|
(x) => m.isActive = x,
|
@@ -111,7 +111,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
111
111
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
112
112
|
R("div", ol, be(m.label), 1)
|
113
113
|
]),
|
114
|
-
|
114
|
+
c.value.length > 1 ? (i(), K(y(Se), {
|
115
115
|
key: 0,
|
116
116
|
width: "18",
|
117
117
|
height: "18",
|
@@ -127,7 +127,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
127
127
|
])
|
128
128
|
]),
|
129
129
|
default: $(() => [
|
130
|
-
|
130
|
+
B(y(Ee), {
|
131
131
|
label: "Edit Column",
|
132
132
|
"left-icon": "setting",
|
133
133
|
variant: "secondary"
|
@@ -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
|
+
}, rl = { 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 = {
|
@@ -186,41 +186,40 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
186
186
|
"filter-fields-changed": [],
|
187
187
|
"filter-removed": [],
|
188
188
|
"search-query-changed": [],
|
189
|
-
"hover:cell": []
|
190
|
-
"click:row-meta": []
|
189
|
+
"hover:cell": []
|
191
190
|
},
|
192
191
|
setup(D, { emit: Z }) {
|
193
|
-
var
|
194
|
-
const
|
192
|
+
var re, ie, ne, de, ve, ce, fe, pe, me;
|
193
|
+
const v = D, F = Z, c = j(() => {
|
195
194
|
var l;
|
196
|
-
return (l =
|
195
|
+
return (l = v.options) == null ? void 0 : l.pagination;
|
197
196
|
}), f = j(() => {
|
198
197
|
var l;
|
199
|
-
return (l =
|
198
|
+
return (l = v.options) == null ? void 0 : l.cursor;
|
200
199
|
}), I = A(), S = j(() => {
|
201
200
|
var l;
|
202
|
-
return (l =
|
201
|
+
return (l = v.options) == null ? void 0 : l.tableOptions;
|
203
202
|
}), W = j(() => {
|
204
203
|
var l;
|
205
204
|
return {
|
206
205
|
...S.value,
|
207
|
-
headers: I.value ? I.value.filter((e) =>
|
206
|
+
headers: I.value ? I.value.filter((e) => ue(e.key)) : (l = S.value) == null ? void 0 : l.headers.filter((e) => ue(e.key))
|
208
207
|
};
|
209
208
|
}), a = j(() => {
|
210
209
|
var l;
|
211
|
-
return (l =
|
210
|
+
return (l = v.options) == null ? void 0 : l.filterOptions;
|
212
211
|
}), p = j(() => {
|
213
212
|
var l;
|
214
|
-
return (l =
|
213
|
+
return (l = v.options) == null ? void 0 : l.hidePerPageDropdown;
|
215
214
|
}), m = j(() => {
|
216
215
|
var l;
|
217
|
-
return ((l =
|
218
|
-
}), x = A(!1), V = A(
|
219
|
-
(de = (ne = a.value) == null ? void 0 : ne.per_page) != null && de.key ?
|
220
|
-
), X = ((me =
|
216
|
+
return ((l = c.value) == null ? void 0 : l.last_page) === 1;
|
217
|
+
}), x = A(!1), V = A(v.filter[(ie = (re = a.value) == null ? void 0 : re.tabs) == null ? void 0 : ie.key]), Y = A(v.filter.page), P = A(
|
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()) ?? "", T = A(X ? X.split(",") : []), oe = A(!1), je = j(
|
221
220
|
() => {
|
222
221
|
var l, e;
|
223
|
-
return (e = (l =
|
222
|
+
return (e = (l = v.options) == null ? void 0 : l.perPageOptions) == null ? void 0 : e.map(
|
224
223
|
(o) => ({
|
225
224
|
label: `${o}`,
|
226
225
|
value: o
|
@@ -262,32 +261,32 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
262
261
|
value: 99
|
263
262
|
}
|
264
263
|
], e = je.value ?? l;
|
265
|
-
if (
|
266
|
-
const o =
|
267
|
-
o > 10 && (e = e.filter((
|
264
|
+
if (c.value) {
|
265
|
+
const o = c.value.total < 100 ? c.value.total : 100;
|
266
|
+
o > 10 && (e = e.filter((u) => u.value <= o));
|
268
267
|
}
|
269
268
|
return [...new Set(e)];
|
270
269
|
}), De = j(() => {
|
271
270
|
var l;
|
272
|
-
return ((l =
|
271
|
+
return ((l = v.selected) == null ? void 0 : l.length) > 0;
|
273
272
|
}), Pe = (l) => {
|
274
273
|
!l.trim() || T.value.includes(l) || (T.value = [l], E(), F("search-query-changed", l));
|
275
|
-
},
|
274
|
+
}, Le = (l) => {
|
276
275
|
T.value = T.value.filter((e) => e !== l), E();
|
277
|
-
}, q =
|
278
|
-
!q &&
|
279
|
-
const s = A(q),
|
280
|
-
var e, o,
|
276
|
+
}, q = v.filter;
|
277
|
+
!q && c ? q.page = 1 : !q && f && (q.cursor = "");
|
278
|
+
const s = A(q), Ce = () => {
|
279
|
+
var e, o, u, d, n, t, g, w;
|
281
280
|
T.value = [], V.value = "";
|
282
281
|
const l = {};
|
283
|
-
a.value ? q.page = 1 : q.cursor = "", (o = (e = a.value) == null ? void 0 : e.per_page) != null && o.key ? l[(
|
282
|
+
a.value ? q.page = 1 : q.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] = P.value : l.per_page = P.value, (t = (n = a.value) == null ? void 0 : n.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();
|
284
283
|
}, Ke = () => {
|
285
|
-
E(null,
|
284
|
+
E(null, Y.value);
|
286
285
|
}, Ye = () => {
|
287
|
-
|
288
|
-
}, Ue = () =>
|
289
|
-
var
|
290
|
-
|
286
|
+
v.id && $e(v.id, JSON.stringify(s.value));
|
287
|
+
}, Ue = () => v.id ? se(v.id) : null, E = (l = null, e = !1, o = "") => {
|
288
|
+
var u, d, n;
|
289
|
+
c.value && !e && (Y.value = 1), c.value ? s.value.page = Y.value : s.value.cursor = o, (u = a.value) != null && u.per_page ? s.value[a.value.per_page.key] = P.value : s.value.per_page = P.value, (d = a.value) != null && d.tabs && (s.value[a.value.tabs.key] = V.value), (n = a.value) != null && n.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) => {
|
291
290
|
Array.isArray(s.value[t]) && s.value[t].length === 0 && delete s.value[t];
|
292
291
|
})), Ye(), F("update:filter", s.value);
|
293
292
|
}, Be = (l, e) => {
|
@@ -301,37 +300,37 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
301
300
|
if (s.value) {
|
302
301
|
let l = [];
|
303
302
|
return Object.keys(s.value).forEach((e) => {
|
304
|
-
var
|
305
|
-
let o = (t = (
|
306
|
-
const
|
307
|
-
if ((
|
303
|
+
var n, t, g, w, Q, M, _, J, z, H, G;
|
304
|
+
let o = (t = (n = a.value) == null ? void 0 : n.tabs) == null ? void 0 : t.key;
|
305
|
+
const u = (w = (g = a.value) == null ? void 0 : g.search) == null ? void 0 : w.key, d = ((M = (Q = a.value) == null ? void 0 : Q.per_page) == null ? void 0 : M.key) ?? "per_page";
|
306
|
+
if ((_ = a.value.form) == null || _.find((b) => {
|
308
307
|
b.name === o && (o = "");
|
309
|
-
}), e !== "page" && e !== "cursor" && e !==
|
310
|
-
let b = null,
|
311
|
-
if (typeof
|
312
|
-
let
|
313
|
-
return
|
314
|
-
N.key === e && (
|
315
|
-
}),
|
308
|
+
}), e !== "page" && e !== "cursor" && e !== d && e !== o && e !== u) {
|
309
|
+
let b = null, r = (J = a.value.form) == null ? void 0 : J.find((U) => {
|
310
|
+
if (typeof U.name == "object") {
|
311
|
+
let L = !1;
|
312
|
+
return U.name.forEach((N) => {
|
313
|
+
N.key === e && (L = !0, b = Me(U.name));
|
314
|
+
}), L;
|
316
315
|
} else
|
317
|
-
return
|
316
|
+
return U.name === e;
|
318
317
|
}), O = "";
|
319
|
-
if (
|
320
|
-
if (typeof
|
321
|
-
O && (O += " - "), O += s.value[
|
322
|
-
}) : O = s.value[e],
|
318
|
+
if (r && s.value[e]) {
|
319
|
+
if (typeof r.name == "object" ? (z = r.name) == null || z.forEach((L) => {
|
320
|
+
O && (O += " - "), O += s.value[L.key];
|
321
|
+
}) : O = s.value[e], r.props.options && (O = (r.props.multiple ? s.value[e] : [s.value[e]]).map(
|
323
322
|
(N) => {
|
324
323
|
var ye;
|
325
|
-
return (ye =
|
324
|
+
return (ye = r.props.options.find(({ value: qe }) => qe === N)) == null ? void 0 : ye.label;
|
326
325
|
}
|
327
|
-
).join(", ")),
|
328
|
-
if (((
|
329
|
-
const
|
330
|
-
O =
|
331
|
-
} else O = le(s.value[
|
332
|
-
let
|
333
|
-
|
334
|
-
label:
|
326
|
+
).join(", ")), r.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, ",")), r.type === "DatePicker")
|
327
|
+
if (((H = r == null ? void 0 : r.props) == null ? void 0 : H.type) === "range" && r.name && r.name[1]) {
|
328
|
+
const L = le(s.value[r.name[0].key]).format("MM/DD/YYYY"), N = le(s.value[r.name[1].key]).format("MM/DD/YYYY");
|
329
|
+
O = L === N ? L : L + " - " + N;
|
330
|
+
} else O = le(s.value[r.name]).format("MM/DD/YYYY");
|
331
|
+
let U = `${(G = r == null ? void 0 : r.props) == null ? void 0 : G.label} : ${O}`;
|
332
|
+
r && r.name && typeof r.name == "object" && l.find((N) => N.name === b[0]) && (U = ""), l.push({
|
333
|
+
label: U,
|
335
334
|
name: e,
|
336
335
|
multiNames: b
|
337
336
|
});
|
@@ -340,38 +339,38 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
340
339
|
}), l;
|
341
340
|
}
|
342
341
|
return [];
|
343
|
-
}),
|
344
|
-
var e, o,
|
345
|
-
return ((t = (
|
342
|
+
}), ue = (l) => {
|
343
|
+
var e, o, u, d, n, t;
|
344
|
+
return ((t = (n = (d = (u = s.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 : t.isActive) ?? !0;
|
346
345
|
}, Ie = ({ fixedHeaders: l, activeHeaders: e, isOnMount: o }) => {
|
347
|
-
var
|
348
|
-
if (s.value[(
|
346
|
+
var u, d, n, t;
|
347
|
+
if (s.value[(d = (u = a.value) == null ? void 0 : u.columnEdit) == null ? void 0 : d.key].fixed = l, s.value[(t = (n = a.value) == null ? void 0 : n.columnEdit) == null ? void 0 : t.key].active = e, I.value = [...l, ...e], !o) {
|
349
348
|
const g = Ze(l, e);
|
350
349
|
$e(a.value.columnEdit.localStorageKey, g);
|
351
350
|
}
|
352
351
|
}, Te = () => {
|
353
|
-
var l, e, o,
|
352
|
+
var l, e, o, u, d, n;
|
354
353
|
if ((e = (l = a.value) == null ? void 0 : l.columnEdit) != null && e.localStorageKey) {
|
355
354
|
const t = se(a.value.columnEdit.localStorageKey);
|
356
355
|
if (t) {
|
357
|
-
const { fixed: g, active:
|
356
|
+
const { fixed: g, active: w } = Oe(
|
358
357
|
t,
|
359
358
|
S.value.headers,
|
360
359
|
a.value.columnEdit.localStorageKey
|
361
360
|
);
|
362
|
-
s.value[(
|
361
|
+
s.value[(u = (o = a.value) == null ? void 0 : o.columnEdit) == null ? void 0 : u.key].fixed = g, s.value[(n = (d = a.value) == null ? void 0 : d.columnEdit) == null ? void 0 : n.key].active = w, I.value = [...g, ...w];
|
363
362
|
}
|
364
363
|
}
|
365
364
|
};
|
366
365
|
return Ve(() => {
|
367
|
-
var e, o,
|
366
|
+
var e, o, u, d, n;
|
368
367
|
Te();
|
369
368
|
const l = Ue();
|
370
|
-
l && (s.value = JSON.parse(l), V.value = V.value || ((e = s.value) == null ? void 0 : e.tabs) || ((
|
369
|
+
l && (s.value = JSON.parse(l), V.value = V.value || ((e = s.value) == null ? void 0 : e.tabs) || ((d = s.value) == null ? void 0 : d[(u = (o = a.value) == null ? void 0 : o.tabs) == null ? void 0 : u.key]), Y.value = ((n = s.value) == null ? void 0 : n.page) || 1, E(null, !0, s.value.cursor));
|
371
370
|
}), (l, e) => {
|
372
|
-
var o,
|
373
|
-
return i(),
|
374
|
-
S.value ? (i(), K(y(
|
371
|
+
var o, u, d, n;
|
372
|
+
return i(), h("div", rl, [
|
373
|
+
S.value ? (i(), K(y(_e), {
|
375
374
|
key: 0,
|
376
375
|
selected: D.selected,
|
377
376
|
"row-key": D.rowKey,
|
@@ -384,34 +383,33 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
384
383
|
"is-borderless": S.value.isBorderless,
|
385
384
|
"onUpdate:selected": e[7] || (e[7] = (t) => l.$emit("update:selected", t)),
|
386
385
|
"onClick:row": e[8] || (e[8] = (t) => l.$emit("click:row", t)),
|
387
|
-
"
|
388
|
-
"onHover:cell": e[10] || (e[10] = (t) => l.$emit("hover:cell", t))
|
386
|
+
"onHover:cell": e[9] || (e[9] = (t) => l.$emit("hover:cell", t))
|
389
387
|
}, Qe({
|
390
388
|
after: $(() => [
|
391
|
-
|
389
|
+
C(l.$slots, "after")
|
392
390
|
]),
|
393
391
|
empty: $(() => [
|
394
|
-
|
392
|
+
C(l.$slots, "empty")
|
395
393
|
]),
|
396
394
|
"table-header": $((t) => [
|
397
|
-
|
395
|
+
C(l.$slots, "table-header", ke(xe(t)))
|
398
396
|
]),
|
399
397
|
"table-body": $((t) => [
|
400
|
-
|
398
|
+
C(l.$slots, "table-body", ke(xe(t)))
|
401
399
|
]),
|
402
400
|
_: 2
|
403
401
|
}, [
|
404
|
-
l.$slots.before || (o = a.value) != null && o.search || (
|
402
|
+
l.$slots.before || (o = a.value) != null && o.search || (u = a.value) != null && u.form || (d = a.value) != null && d.tabs ? {
|
405
403
|
name: "before",
|
406
404
|
fn: $(() => {
|
407
|
-
var t, g,
|
405
|
+
var t, g, w, Q;
|
408
406
|
return [
|
409
|
-
|
410
|
-
(t = a.value) != null && t.search || (g = a.value) != null && g.form || (
|
411
|
-
De.value ? (i(),
|
412
|
-
|
413
|
-
])) : (i(),
|
414
|
-
(Q = a.value) != null && Q.tabs ? (i(), K(y(
|
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(), h("div", il, [
|
409
|
+
De.value ? (i(), h("div", nl, [
|
410
|
+
C(l.$slots, "bulk-actions", { selectedRows: D.selected })
|
411
|
+
])) : (i(), h("div", dl, [
|
412
|
+
(Q = a.value) != null && Q.tabs ? (i(), K(y(Je), {
|
415
413
|
key: 0,
|
416
414
|
modelValue: V.value,
|
417
415
|
"onUpdate:modelValue": [
|
@@ -422,23 +420,23 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
422
420
|
variant: "pills"
|
423
421
|
}, null, 8, ["modelValue", "tabs"])) : k("", !0)
|
424
422
|
])),
|
425
|
-
|
426
|
-
var M, J, z, H,
|
423
|
+
C(l.$slots, "filter-options", {}, () => {
|
424
|
+
var M, _, J, z, H, G;
|
427
425
|
return [
|
428
|
-
(M = a.value) != null && M.search || (
|
426
|
+
(M = a.value) != null && M.search || (_ = a.value) != null && _.form || (J = a.value) != null && J.columnEdit ? (i(), h("div", {
|
429
427
|
key: 0,
|
430
428
|
class: te([
|
431
429
|
"flex gap-3 absolute ml-auto bg-oc-bg-light right-4 max-w-[calc(100%-24px)]",
|
432
430
|
a.value ? oe.value ? "md:w-fit w-full" : "" : "w-full justify-end"
|
433
431
|
])
|
434
432
|
}, [
|
435
|
-
(
|
433
|
+
(z = a.value) != null && z.search ? (i(), K(y(ze), {
|
436
434
|
key: 0,
|
437
435
|
"is-search-only": !a.value.tabs || a.value.isSearchOnly,
|
438
436
|
onAddQuery: Pe,
|
439
437
|
onToggle: e[2] || (e[2] = (b) => oe.value = b)
|
440
438
|
}, null, 8, ["is-search-only"])) : k("", !0),
|
441
|
-
(
|
439
|
+
(H = a.value) != null && H.form ? (i(), K(y(Fe), {
|
442
440
|
key: 1,
|
443
441
|
modelValue: x.value,
|
444
442
|
"onUpdate:modelValue": e[6] || (e[6] = (b) => x.value = b),
|
@@ -447,30 +445,30 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
447
445
|
"is-attach-to-body": ""
|
448
446
|
}, {
|
449
447
|
menu: $(() => [
|
450
|
-
x.value ? (i(), K(y(
|
448
|
+
x.value ? (i(), K(y(He), {
|
451
449
|
key: 0,
|
452
450
|
id: D.id,
|
453
451
|
"json-form": a.value.form ?? [],
|
454
452
|
grid: a.value.grid ?? null,
|
455
|
-
values:
|
453
|
+
values: v.filter,
|
456
454
|
actions: a.value.actions,
|
457
455
|
onApplyFilter: e[3] || (e[3] = (b) => E(b)),
|
458
456
|
onFilterFieldsChanged: e[4] || (e[4] = (b) => F("filter-fields-changed", b)),
|
459
457
|
onCancel: e[5] || (e[5] = (b) => x.value = !1)
|
460
458
|
}, {
|
461
|
-
default: $(({ errors: b, values:
|
462
|
-
|
459
|
+
default: $(({ errors: b, values: r, jsonForm: O, updateForm: U }) => [
|
460
|
+
C(l.$slots, "custom-filter-form", {
|
463
461
|
errors: b,
|
464
|
-
values:
|
462
|
+
values: r,
|
465
463
|
jsonForm: O,
|
466
|
-
updateFilter:
|
464
|
+
updateFilter: U
|
467
465
|
})
|
468
466
|
]),
|
469
467
|
_: 3
|
470
468
|
}, 8, ["id", "json-form", "grid", "values", "actions"])) : k("", !0)
|
471
469
|
]),
|
472
470
|
default: $(() => [
|
473
|
-
|
471
|
+
B(y(Ee), {
|
474
472
|
"is-active": x.value,
|
475
473
|
variant: "secondary",
|
476
474
|
"left-icon": "filter"
|
@@ -478,7 +476,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
478
476
|
]),
|
479
477
|
_: 3
|
480
478
|
}, 8, ["modelValue"])) : k("", !0),
|
481
|
-
a.value.columnEdit ? (i(), K(
|
479
|
+
a.value.columnEdit ? (i(), K(ul, {
|
482
480
|
key: 2,
|
483
481
|
options: s.value.columnEdit,
|
484
482
|
headers: ((G = S.value) == null ? void 0 : G.headers) || [],
|
@@ -489,62 +487,62 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
489
487
|
];
|
490
488
|
})
|
491
489
|
])) : k("", !0),
|
492
|
-
|
490
|
+
B(y(Ge), {
|
493
491
|
filters: Ne.value,
|
494
492
|
queries: T.value,
|
495
493
|
class: "border-t border-oc-gray-200",
|
496
|
-
onRemoveQuery:
|
497
|
-
onRemoveAll:
|
494
|
+
onRemoveQuery: Le,
|
495
|
+
onRemoveAll: Ce,
|
498
496
|
onRemoveFilter: Be
|
499
497
|
}, null, 8, ["filters", "queries"])
|
500
498
|
];
|
501
499
|
}),
|
502
500
|
key: "0"
|
503
501
|
} : void 0,
|
504
|
-
ae((
|
502
|
+
ae((n = S.value) == null ? void 0 : n.headers, (t, g) => ({
|
505
503
|
name: t.key,
|
506
|
-
fn: $(({ data:
|
507
|
-
|
508
|
-
data:
|
504
|
+
fn: $(({ data: w, item: Q }) => [
|
505
|
+
C(l.$slots, t.key, {
|
506
|
+
data: w,
|
509
507
|
item: Q
|
510
508
|
})
|
511
509
|
])
|
512
510
|
}))
|
513
511
|
]), 1032, ["selected", "row-key", "options", "is-loading", "loading-rows", "row-class", "row-link", "is-sticky", "is-borderless"])) : k("", !0),
|
514
|
-
|
515
|
-
|
512
|
+
C(l.$slots, "before-pagination"),
|
513
|
+
c.value || f.value ? (i(), h("div", {
|
516
514
|
key: 1,
|
517
|
-
class: te(["flex gap-3 items-center",
|
515
|
+
class: te(["flex gap-3 items-center", c.value && c.value.last_page === 1 ? "justify-end" : ""])
|
518
516
|
}, [
|
519
|
-
|
517
|
+
c.value && !m.value ? (i(), K(y(We), {
|
520
518
|
key: 0,
|
521
|
-
modelValue:
|
519
|
+
modelValue: Y.value,
|
522
520
|
"onUpdate:modelValue": [
|
523
|
-
e[
|
521
|
+
e[10] || (e[10] = (t) => Y.value = t),
|
524
522
|
Ke
|
525
523
|
],
|
526
524
|
class: "justify-center",
|
527
|
-
"max-page":
|
528
|
-
strategy:
|
525
|
+
"max-page": c.value.last_page,
|
526
|
+
strategy: c.value.strategy,
|
529
527
|
"total-visible": "5"
|
530
528
|
}, null, 8, ["modelValue", "max-page", "strategy"])) : k("", !0),
|
531
|
-
f.value ? (i(),
|
532
|
-
|
529
|
+
f.value ? (i(), h("div", vl, [
|
530
|
+
B(y(he), {
|
533
531
|
disabled: !f.value.prev,
|
534
|
-
onClick: e[
|
532
|
+
onClick: e[11] || (e[11] = (t) => f.value.prev ? E(null, !1, f.value.prev) : null)
|
535
533
|
}, null, 8, ["disabled"]),
|
536
|
-
|
534
|
+
B(y(he), {
|
537
535
|
disabled: !f.value.next,
|
538
536
|
"is-next": "",
|
539
|
-
onClick: e[
|
537
|
+
onClick: e[12] || (e[12] = (t) => f.value.next ? E(null, !1, f.value.next) : null)
|
540
538
|
}, null, 8, ["disabled"])
|
541
539
|
])) : k("", !0),
|
542
|
-
p.value ? k("", !0) : (i(),
|
543
|
-
|
540
|
+
p.value ? k("", !0) : (i(), h("div", cl, [
|
541
|
+
B(y(Xe), {
|
544
542
|
modelValue: P.value,
|
545
543
|
"onUpdate:modelValue": [
|
546
|
-
e[
|
547
|
-
e[
|
544
|
+
e[13] || (e[13] = (t) => P.value = t),
|
545
|
+
e[14] || (e[14] = (t) => E(null))
|
548
546
|
],
|
549
547
|
label: "Item per page",
|
550
548
|
"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 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-taGoaSDg.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-taGoaSDg.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-taGoaSDg.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-taGoaSDg.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 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-taGoaSDg.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-taGoaSDg.js";
|
3
|
+
import x from "./OcCropper-CZvllEpx.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-taGoaSDg.js";
|
3
3
|
import c from "dayjs";
|
4
4
|
const w = {
|
5
5
|
__name: "OcTimePicker",
|