@orchidui/core 1.6.1-31 → 1.6.1-33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/DataDisplay/CustomerCard/OcCustomerCard.js +1 -1
- package/dist/DataDisplay/FloatContent/OcFloatContent.js +1 -1
- package/dist/DataDisplay/InfoCard/OcInfoCard.js +1 -1
- package/dist/DataDisplay/ListDetail/OcListDetail.js +1 -1
- package/dist/DataDisplay/ListItem/OcListItem.js +1 -1
- package/dist/DataDisplay/OnboardingListItem/OcOnboardingListItem.js +1 -1
- package/dist/DataDisplay/Overview/OcOverview.js +1 -1
- package/dist/DataDisplay/Pagination/OcPagination.js +1 -1
- package/dist/DataDisplay/Table/OcTable.js +1 -1
- package/dist/DataDisplay/TransferSummary/OcTransferSummary.js +1 -1
- package/dist/Disclosure/Accordion/OcAccordion.js +1 -1
- package/dist/Disclosure/OnboardingAccordion/OnboardingAccordion.js +1 -1
- package/dist/Disclosure/Steps/OcSteps.js +1 -1
- package/dist/Disclosure/Tabs/Tabs.js +1 -1
- package/dist/Disclosure/Variants/OcVariants.js +1 -1
- package/dist/Elements/AdditionalContent/OcAdditionalContent.js +1 -1
- package/dist/Elements/AuthenticationOption/AuthenticationOption.js +1 -1
- package/dist/Elements/Box/OcBox.js +1 -1
- package/dist/Elements/EmptyPage/OcEmptyPage.js +1 -1
- package/dist/Elements/FeatureOverviewCard/OcFeatureOverviewCard.js +1 -1
- package/dist/Elements/Header/OcHeader.js +1 -1
- package/dist/Elements/PageTitle/OcPageTitle.js +1 -1
- package/dist/Elements/SandboxBanner/OcSandboxBanner.js +1 -1
- package/dist/Elements/Sidebar/OcSidebar.js +2 -2
- package/dist/Elements/SubSidebar/OcSubSidebar.js +1 -1
- package/dist/Elements/VerificationOption/OcVerificationOption.js +1 -1
- package/dist/Feedback/Banner/OcBanner.js +1 -1
- package/dist/Feedback/Chip/OcChip.js +1 -1
- package/dist/Feedback/ShareIcon/OcShareIcon.js +1 -1
- package/dist/Feedback/Snackbar/OcSnackbar.js +1 -1
- package/dist/Form/BaseInput/OcBaseInput.js +1 -1
- package/dist/Form/Button/OcButton.js +1 -1
- package/dist/Form/Calendar/OcCalendar.js +1 -1
- package/dist/Form/CardInput/OcCardInput.js +1 -1
- package/dist/Form/Checkbox/OcCheckbox.js +1 -1
- package/dist/Form/CheckboxesGroup/OcCheckboxesGroup.js +1 -1
- package/dist/Form/Criteria/OcCriteria.js +1 -1
- package/dist/Form/Cropper/OcCropper.js +1 -1
- package/dist/Form/DatePicker/OcDatePicker.js +1 -1
- package/dist/Form/EmojiPicker/OcEmojiPicker.js +1 -1
- package/dist/Form/Input/OcInput.js +1 -1
- package/dist/Form/LinkInput/OcLinkInput.js +1 -1
- package/dist/Form/MultipleUploadFile/OcMultipleUploadFile.js +1 -1
- package/dist/Form/NumberInput/OcNumberInput.js +1 -1
- package/dist/Form/PhoneInput/OcPhoneInput.js +1 -1
- package/dist/Form/Radio/OcRadio.js +1 -1
- package/dist/Form/RadioGroup/OcRadioGroup.js +1 -1
- package/dist/Form/RangeInput/OcRangeInput.js +1 -1
- package/dist/Form/SectionItem/OcSectionItem.js +1 -1
- package/dist/Form/Select/OcSelect.js +1 -1
- package/dist/Form/SelectOptions/OcSelectOptions.js +1 -1
- package/dist/Form/SingleFileUpload/OcSingleFileUpload.js +1 -1
- package/dist/Form/Slider/OcSlider.js +1 -1
- package/dist/Form/TextArea/OcTextArea.js +1 -1
- package/dist/Form/index.js +1 -1
- package/dist/FormBuilder/OcFormBuilder.js +1 -1
- package/dist/{OcAccountSetupProgress-E7rvYQw9.js → OcAccountSetupProgress-Ddl426XN.js} +1 -1
- package/dist/{OcComplexCalendar-C7nYKHmQ.js → OcComplexCalendar-CcfPlfbW.js} +1 -1
- package/dist/{OcComplexDatePicker-DwZl9uts.js → OcComplexDatePicker-BMRN5eyC.js} +1 -1
- package/dist/{OcCropper-D9xPdxe3.js → OcCropper-RQhwPW9G.js} +1 -1
- package/dist/{OcDataTable-BVaS2NrG.js → OcDataTable-BBMV4jei.js} +207 -198
- package/dist/{OcDraggableList-DQEB3qsa.js → OcDraggableList-CJWaq7kB.js} +1 -1
- package/dist/{OcEmojiPicker-XBZS1Q1n.js → OcEmojiPicker-DBNLN4dQ.js} +1 -1
- package/dist/{OcFilterForm-dBRzwJr3.js → OcFilterForm-F1ZnyQ_Y.js} +1 -1
- package/dist/{OcFilterSearch-BPX5E4ZQ.js → OcFilterSearch-DaZSHW8z.js} +1 -1
- package/dist/{OcFilterSearchFor-DB4LtDXD.js → OcFilterSearchFor-9uG8aPLG.js} +1 -1
- package/dist/{OcModalCropper-nx5nt2c_.js → OcModalCropper-QqWKOUJU.js} +2 -2
- package/dist/{OcTimePicker-DXP6TcqX.js → OcTimePicker-BGUwtskQ.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-B3RjmTNv.js → SubPlanCard-C8TEItdq.js} +1 -1
- package/dist/{ThumbnailSection-CfXabZDR.js → ThumbnailSection-Dh5MnRT_.js} +1 -1
- package/dist/{ThumbnailTheme-DCiHVRDo.js → ThumbnailTheme-qb0vNoAH.js} +1 -1
- package/dist/{index-C-2DjoHy.js → index-DOKEy-am.js} +8 -8
- package/dist/index.js +1 -1
- package/package.json +1 -1
@@ -1,5 +1,5 @@
|
|
1
|
-
import { ref as
|
2
|
-
import { ay as Ee, b as Re, B as Fe, L as Je, Z as ze, aJ as _e, aK as Ze, aL as Ge, I as He, J as xe, k as We } from "./index-
|
1
|
+
import { ref as C, onMounted as Ve, openBlock as n, createBlock as M, unref as k, withCtx as O, createElementVNode as Z, createElementBlock as E, createVNode as T, mergeProps as ge, Fragment as ee, renderList as ae, normalizeClass as te, toDisplayString as be, createCommentVNode as $, computed as P, createSlots as Qe, renderSlot as B, normalizeProps as ke, guardReactiveProps as he } from "vue";
|
2
|
+
import { ay as Ee, b as Re, B as Fe, L as Je, Z as ze, aJ as _e, aK as Ze, aL as Ge, I as He, J as xe, k as We } from "./index-DOKEy-am.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 Xe, setInLocalStorage as $e } from "./DataTable/utils/editColumnsUtils.js";
|
@@ -27,13 +27,13 @@ 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 = X,
|
32
|
-
|
33
|
-
...
|
30
|
+
setup(A, { emit: X }) {
|
31
|
+
const v = X, j = A, c = C([]), y = C([]), J = C(!1), F = (a = !1) => {
|
32
|
+
y.value = y.value.map((g) => ({
|
33
|
+
...g,
|
34
34
|
isActive: !0
|
35
35
|
})), v("update-order", {
|
36
|
-
fixedHeaders:
|
36
|
+
fixedHeaders: y.value,
|
37
37
|
activeHeaders: c.value,
|
38
38
|
isOnMount: a
|
39
39
|
});
|
@@ -44,81 +44,81 @@ 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": () => F()
|
48
48
|
};
|
49
49
|
return Ve(() => {
|
50
|
-
const a = se(
|
51
|
-
|
52
|
-
var
|
50
|
+
const a = se(j.localKey), { fixed: g, active: b } = Oe(a, j.headers, j.localKey);
|
51
|
+
y.value = g || j.headers.slice(0, 1), c.value = b || j.headers.slice(1).map((S) => {
|
52
|
+
var V, N, K;
|
53
53
|
return {
|
54
|
-
...
|
55
|
-
isActive: ((
|
54
|
+
...S,
|
55
|
+
isActive: ((K = (N = (V = j.options) == null ? void 0 : V.active) == null ? void 0 : N.find((W) => W.key === S.key)) == null ? void 0 : K.isActive) ?? !0
|
56
56
|
};
|
57
|
-
}),
|
58
|
-
}), (a,
|
57
|
+
}), F(!0);
|
58
|
+
}), (a, g) => (n(), M(k(Ee), {
|
59
59
|
modelValue: J.value,
|
60
|
-
"onUpdate:modelValue":
|
60
|
+
"onUpdate:modelValue": g[3] || (g[3] = (b) => J.value = b),
|
61
61
|
class: "h-[36px]",
|
62
62
|
"is-attach-to-body": ""
|
63
63
|
}, {
|
64
|
-
menu:
|
64
|
+
menu: O(() => [
|
65
65
|
Z("div", el, [
|
66
|
-
|
67
|
-
|
68
|
-
|
66
|
+
y.value.length ? (n(), E("div", ll, [
|
67
|
+
g[4] || (g[4] = Z("span", { class: "text-oc-text-400 font-medium" }, "Fixed columns", -1)),
|
68
|
+
T(k(we), ge({
|
69
69
|
key: "key",
|
70
|
-
modelValue:
|
71
|
-
"onUpdate:modelValue":
|
70
|
+
modelValue: y.value,
|
71
|
+
"onUpdate:modelValue": g[0] || (g[0] = (b) => y.value = b)
|
72
72
|
}, H), {
|
73
|
-
default:
|
74
|
-
(n(!0),
|
75
|
-
key:
|
76
|
-
class: te(["flex items-center justify-between h-[26px]",
|
73
|
+
default: O(() => [
|
74
|
+
(n(!0), E(ee, null, ae(y.value, (b, S) => (n(), E("div", {
|
75
|
+
key: b.key,
|
76
|
+
class: te(["flex items-center justify-between h-[26px]", S ? "" : "is-disabled"])
|
77
77
|
}, [
|
78
|
-
Z("span", null, be(
|
79
|
-
|
78
|
+
Z("span", null, be(b.label), 1),
|
79
|
+
S ? (n(), M(k(Se), {
|
80
80
|
key: 0,
|
81
81
|
width: "18",
|
82
82
|
height: "18",
|
83
83
|
class: "text-oc-text-400 drag-el cursor-move",
|
84
84
|
name: "draggable"
|
85
|
-
})) :
|
85
|
+
})) : $("", !0)
|
86
86
|
], 2))), 128))
|
87
87
|
]),
|
88
88
|
_: 1
|
89
89
|
}, 16, ["modelValue"])
|
90
|
-
])) :
|
90
|
+
])) : $("", !0),
|
91
91
|
Z("div", al, [
|
92
|
-
|
93
|
-
|
92
|
+
g[5] || (g[5] = Z("span", { class: "text-oc-text-400 font-medium" }, "Active columns", -1)),
|
93
|
+
T(k(we), ge({
|
94
94
|
key: "key",
|
95
95
|
modelValue: c.value,
|
96
|
-
"onUpdate:modelValue":
|
96
|
+
"onUpdate:modelValue": g[2] || (g[2] = (b) => c.value = b)
|
97
97
|
}, H, { "data-active-headers": "true" }), {
|
98
|
-
default:
|
99
|
-
(n(!0),
|
100
|
-
key:
|
98
|
+
default: O(() => [
|
99
|
+
(n(!0), E(ee, null, ae(c.value, (b) => (n(), E(ee, {
|
100
|
+
key: b.key
|
101
101
|
}, [
|
102
|
-
|
102
|
+
b.key !== "actions" ? (n(), E("div", tl, [
|
103
103
|
Z("div", sl, [
|
104
|
-
|
105
|
-
modelValue:
|
104
|
+
T(k(Re), {
|
105
|
+
modelValue: b.isActive,
|
106
106
|
"onUpdate:modelValue": [
|
107
|
-
(
|
108
|
-
|
107
|
+
(S) => b.isActive = S,
|
108
|
+
g[1] || (g[1] = (S) => F())
|
109
109
|
],
|
110
110
|
class: "!w-fit"
|
111
111
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
112
|
-
Z("div", ol, be(
|
112
|
+
Z("div", ol, be(b.label), 1)
|
113
113
|
]),
|
114
|
-
c.value.length > 1 ? (n(),
|
114
|
+
c.value.length > 1 ? (n(), M(k(Se), {
|
115
115
|
key: 0,
|
116
116
|
width: "18",
|
117
117
|
height: "18",
|
118
118
|
class: "text-oc-text-400 drag-el cursor-move",
|
119
119
|
name: "draggable"
|
120
|
-
})) :
|
121
|
-
])) :
|
120
|
+
})) : $("", !0)
|
121
|
+
])) : $("", !0)
|
122
122
|
], 64))), 128))
|
123
123
|
]),
|
124
124
|
_: 1
|
@@ -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: O(() => [
|
130
|
+
T(k(Fe), {
|
131
131
|
label: "Edit Column",
|
132
132
|
"left-icon": "setting",
|
133
133
|
variant: "secondary"
|
@@ -189,38 +189,38 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
189
189
|
"hover:cell": [],
|
190
190
|
"columns-changed": []
|
191
191
|
},
|
192
|
-
setup(
|
192
|
+
setup(A, { emit: X }) {
|
193
193
|
var re, ie, ne, de, ve, ce, fe, pe, me;
|
194
|
-
const v =
|
194
|
+
const v = A, j = X, c = P(() => {
|
195
195
|
var l;
|
196
196
|
return (l = v.options) == null ? void 0 : l.pagination;
|
197
|
-
}),
|
197
|
+
}), y = P(() => {
|
198
198
|
var l;
|
199
199
|
return (l = v.options) == null ? void 0 : l.cursor;
|
200
|
-
}), J =
|
200
|
+
}), J = C(), F = P(() => {
|
201
201
|
var l;
|
202
202
|
return (l = v.options) == null ? void 0 : l.tableOptions;
|
203
|
-
}), H =
|
203
|
+
}), H = P(() => {
|
204
204
|
var l;
|
205
205
|
return {
|
206
|
-
...
|
206
|
+
...F.value,
|
207
207
|
headers: J.value ? J.value.map((e) => {
|
208
208
|
var o, u;
|
209
|
-
return e.class = ((u = (o =
|
210
|
-
}).filter((e) => ue(e.key)) : (l =
|
209
|
+
return e.class = ((u = (o = F.value) == null ? void 0 : o.headers.find((r) => r.key === e.key)) == null ? void 0 : u.class) ?? "", e;
|
210
|
+
}).filter((e) => ue(e.key)) : (l = F.value) == null ? void 0 : l.headers.filter((e) => ue(e.key))
|
211
211
|
};
|
212
|
-
}), a =
|
212
|
+
}), a = P(() => {
|
213
213
|
var l;
|
214
214
|
return (l = v.options) == null ? void 0 : l.filterOptions;
|
215
|
-
}),
|
215
|
+
}), g = P(() => {
|
216
216
|
var l;
|
217
217
|
return (l = v.options) == null ? void 0 : l.hidePerPageDropdown;
|
218
|
-
}),
|
218
|
+
}), b = P(() => {
|
219
219
|
var l;
|
220
220
|
return ((l = c.value) == null ? void 0 : l.last_page) === 1;
|
221
|
-
}),
|
221
|
+
}), S = C(!1), V = C(v.filter[(ie = (re = a.value) == null ? void 0 : re.tabs) == null ? void 0 : ie.key]), N = C(v.filter.page), K = C(
|
222
222
|
(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
|
223
|
-
), W = ((me = v.filter[(pe = (fe = a.value) == null ? void 0 : fe.search) == null ? void 0 : pe.key]) == null ? void 0 : me.trim()) ?? "", z =
|
223
|
+
), W = ((me = v.filter[(pe = (fe = a.value) == null ? void 0 : fe.search) == null ? void 0 : pe.key]) == null ? void 0 : me.trim()) ?? "", z = C(W ? W.split(",") : []), oe = C(!1), je = P(
|
224
224
|
() => {
|
225
225
|
var l, e;
|
226
226
|
return (e = (l = v.options) == null ? void 0 : l.perPageOptions) == null ? void 0 : e.map(
|
@@ -230,7 +230,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
230
230
|
})
|
231
231
|
);
|
232
232
|
}
|
233
|
-
), Ae =
|
233
|
+
), Ae = P(() => {
|
234
234
|
let l = [
|
235
235
|
{
|
236
236
|
label: "10",
|
@@ -270,73 +270,82 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
270
270
|
o > 10 && (e = e.filter((u) => u.value <= o));
|
271
271
|
}
|
272
272
|
return [...new Set(e)];
|
273
|
-
}), De =
|
273
|
+
}), De = P(() => {
|
274
274
|
var l;
|
275
275
|
return ((l = v.selected) == null ? void 0 : l.length) > 0;
|
276
276
|
}), Le = (l) => {
|
277
|
-
!l.trim() || z.value.includes(l) || (z.value = [l],
|
277
|
+
!l.trim() || z.value.includes(l) || (z.value = [l], D(), j("search-query-changed", l));
|
278
278
|
}, Pe = (l) => {
|
279
|
-
z.value = z.value.filter((e) => e !== l),
|
279
|
+
z.value = z.value.filter((e) => e !== l), D();
|
280
280
|
}, _ = v.filter;
|
281
|
-
!_ && c ? _.page = 1 : !_ &&
|
282
|
-
const t =
|
283
|
-
var e, o, u, r, d, s,
|
284
|
-
z.value = [],
|
281
|
+
!_ && c ? _.page = 1 : !_ && y && (_.cursor = "");
|
282
|
+
const t = C(_), Ce = () => {
|
283
|
+
var e, o, u, r, d, s, f, p, x, h, m, U, q, Q;
|
284
|
+
z.value = [], V.value = "";
|
285
285
|
const l = {};
|
286
|
-
a.value ? _.page = 1 : _.cursor = "", (o = (e = a.value) == null ? void 0 : e.per_page) != null && o.key ? l[(r = (u = a.value) == null ? void 0 : u.per_page) == null ? void 0 : r.key] =
|
286
|
+
a.value ? _.page = 1 : _.cursor = "", (o = (e = a.value) == null ? void 0 : e.per_page) != null && o.key ? l[(r = (u = a.value) == null ? void 0 : u.per_page) == null ? void 0 : r.key] = K.value : l.per_page = K.value, (s = (d = a.value) == null ? void 0 : d.tabs) != null && s.key ? l[(p = (f = a.value) == null ? void 0 : f.tabs) == null ? void 0 : p.key] = V.value : l.tabs = V.value, (h = (x = a.value) == null ? void 0 : x.columnEdit) != null && h.key && (l[(U = (m = a.value) == null ? void 0 : m.columnEdit) == null ? void 0 : U.key] = t.value[(Q = (q = a.value) == null ? void 0 : q.columnEdit) == null ? void 0 : Q.key]), t.value = l, D();
|
287
287
|
}, Ke = () => {
|
288
|
-
|
288
|
+
D(null, N.value);
|
289
289
|
}, Ue = () => {
|
290
290
|
v.id && $e(v.id, JSON.stringify(t.value));
|
291
|
-
}, Ye = () => v.id ? se(v.id) : null,
|
292
|
-
var
|
293
|
-
c.value && !e && (
|
294
|
-
Array.isArray(t.value[
|
295
|
-
}))
|
291
|
+
}, Ye = () => v.id ? se(v.id) : null, D = (l = null, e = !1, o = "") => {
|
292
|
+
var r, d, s, f, p, x, h;
|
293
|
+
c.value && !e && (N.value = 1), c.value ? t.value.page = N.value : t.value.cursor = o, (r = a.value) != null && r.per_page ? t.value[a.value.per_page.key] = K.value : t.value.per_page = K.value, (d = a.value) != null && d.tabs && (t.value[a.value.tabs.key] = V.value), (s = a.value) != null && s.search && (t.value[a.value.search.key] = z.value.join()), l && (S.value = !1, t.value = { ...t.value, ...l }, Object.keys(t.value).forEach((m) => {
|
294
|
+
Array.isArray(t.value[m]) && t.value[m].length === 0 && delete t.value[m];
|
295
|
+
}));
|
296
|
+
let u = (p = (f = a.value) == null ? void 0 : f.tabs) == null ? void 0 : p.key;
|
297
|
+
if (u && V.value !== t.value[u]) {
|
298
|
+
const m = (h = (x = a.value.tabs) == null ? void 0 : x.options) == null ? void 0 : h.find(
|
299
|
+
(U) => U.value === t.value[u]
|
300
|
+
);
|
301
|
+
if (m != null && m.value)
|
302
|
+
return V.value = m.value, !1;
|
303
|
+
}
|
304
|
+
Ue(), j("update:filter", t.value);
|
296
305
|
}, Be = (l, e) => {
|
297
|
-
(e === a.value.tabs.key || e === "tabs") && (
|
306
|
+
(e === a.value.tabs.key || e === "tabs") && (V.value = ""), D(l), j("filter-removed", e);
|
298
307
|
}, Me = (l) => {
|
299
308
|
let e = [];
|
300
309
|
return l.forEach((o) => {
|
301
310
|
e.push(o.key);
|
302
311
|
}), e;
|
303
|
-
}, Ne =
|
312
|
+
}, Ne = P(() => {
|
304
313
|
if (t.value) {
|
305
314
|
let l = [];
|
306
315
|
return Object.keys(t.value).forEach((e) => {
|
307
|
-
var d, s,
|
316
|
+
var d, s, f, p, x, h, m, U, q, Q, G;
|
308
317
|
let o = (s = (d = a.value) == null ? void 0 : d.tabs) == null ? void 0 : s.key;
|
309
|
-
const u = (
|
310
|
-
if ((
|
311
|
-
|
318
|
+
const u = (p = (f = a.value) == null ? void 0 : f.search) == null ? void 0 : p.key, r = ((h = (x = a.value) == null ? void 0 : x.per_page) == null ? void 0 : h.key) ?? "per_page";
|
319
|
+
if ((m = a.value.form) == null || m.find((w) => {
|
320
|
+
w.name === o && (o = "");
|
312
321
|
}), e !== "page" && e !== "cursor" && e !== r && e !== o && e !== u) {
|
313
|
-
let
|
314
|
-
if (typeof
|
315
|
-
let
|
316
|
-
return
|
317
|
-
R.key === e && (
|
318
|
-
}),
|
322
|
+
let w = null, i = (U = a.value.form) == null ? void 0 : U.find((I) => {
|
323
|
+
if (typeof I.name == "object") {
|
324
|
+
let Y = !1;
|
325
|
+
return I.name.forEach((R) => {
|
326
|
+
R.key === e && (Y = !0, w = Me(I.name));
|
327
|
+
}), Y;
|
319
328
|
} else
|
320
|
-
return
|
321
|
-
}),
|
329
|
+
return I.name === e;
|
330
|
+
}), L = "";
|
322
331
|
if (i && t.value[e]) {
|
323
|
-
if (typeof i.name == "object" ? (q = i.name) == null || q.forEach((
|
324
|
-
|
325
|
-
}) :
|
332
|
+
if (typeof i.name == "object" ? (q = i.name) == null || q.forEach((Y) => {
|
333
|
+
L && (L += " - "), L += t.value[Y.key];
|
334
|
+
}) : L = t.value[e], i.props.options && (L = (i.props.multiple ? t.value[e] : [t.value[e]]).map(
|
326
335
|
(R) => {
|
327
336
|
var ye;
|
328
337
|
return (ye = i.props.options.find(({ value: qe }) => qe === R)) == null ? void 0 : ye.label;
|
329
338
|
}
|
330
|
-
).join(", ")), i.type === "RangeInput" && Array.isArray(t.value[e]) && (
|
339
|
+
).join(", ")), i.type === "RangeInput" && Array.isArray(t.value[e]) && (L = t.value[e][0].toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") + " - " + t.value[e][1].toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",")), i.type === "DatePicker")
|
331
340
|
if (((Q = i == null ? void 0 : i.props) == null ? void 0 : Q.type) === "range" && i.name && i.name[1]) {
|
332
|
-
const
|
333
|
-
|
334
|
-
} else
|
335
|
-
let
|
336
|
-
i && i.name && typeof i.name == "object" && l.find((R) => R.name ===
|
337
|
-
label:
|
341
|
+
const Y = le(t.value[i.name[0].key]).format("MM/DD/YYYY"), R = le(t.value[i.name[1].key]).format("MM/DD/YYYY");
|
342
|
+
L = Y === R ? Y : Y + " - " + R;
|
343
|
+
} else L = le(t.value[i.name]).format("MM/DD/YYYY");
|
344
|
+
let I = `${(G = i == null ? void 0 : i.props) == null ? void 0 : G.label} : ${L}`;
|
345
|
+
i && i.name && typeof i.name == "object" && l.find((R) => R.name === w[0]) && (I = ""), l.push({
|
346
|
+
label: I,
|
338
347
|
name: e,
|
339
|
-
multiNames:
|
348
|
+
multiNames: w
|
340
349
|
});
|
341
350
|
}
|
342
351
|
}
|
@@ -345,25 +354,25 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
345
354
|
return [];
|
346
355
|
}), ue = (l) => {
|
347
356
|
var e, o, u, r, d, s;
|
348
|
-
return ((s = (d = (r = (u = t.value) == null ? void 0 : u[(o = (e = a.value) == null ? void 0 : e.columnEdit) == null ? void 0 : o.key]) == null ? void 0 : r.active) == null ? void 0 : d.find((
|
357
|
+
return ((s = (d = (r = (u = t.value) == null ? void 0 : u[(o = (e = a.value) == null ? void 0 : e.columnEdit) == null ? void 0 : o.key]) == null ? void 0 : r.active) == null ? void 0 : d.find((f) => f.key === l)) == null ? void 0 : s.isActive) ?? !0;
|
349
358
|
}, Ie = ({ fixedHeaders: l, activeHeaders: e, isOnMount: o }) => {
|
350
|
-
var u, r, d, s,
|
351
|
-
if (t.value[(r = (u = a.value) == null ? void 0 : u.columnEdit) == null ? void 0 : r.key] || (t.value[(s = (d = a.value) == null ? void 0 : d.columnEdit) == null ? void 0 : s.key] = {}), t.value[(
|
352
|
-
const
|
353
|
-
$e(a.value.columnEdit.localStorageKey,
|
359
|
+
var u, r, d, s, f, p, x, h;
|
360
|
+
if (t.value[(r = (u = a.value) == null ? void 0 : u.columnEdit) == null ? void 0 : r.key] || (t.value[(s = (d = a.value) == null ? void 0 : d.columnEdit) == null ? void 0 : s.key] = {}), t.value[(p = (f = a.value) == null ? void 0 : f.columnEdit) == null ? void 0 : p.key].fixed = l, t.value[(h = (x = a.value) == null ? void 0 : x.columnEdit) == null ? void 0 : h.key].active = e, J.value = [...l, ...e], !o) {
|
361
|
+
const m = Xe(l, e);
|
362
|
+
$e(a.value.columnEdit.localStorageKey, m);
|
354
363
|
}
|
355
|
-
|
364
|
+
j("columns-changed", e);
|
356
365
|
}, Te = () => {
|
357
366
|
var l, e, o, u, r, d;
|
358
367
|
if ((e = (l = a.value) == null ? void 0 : l.columnEdit) != null && e.localStorageKey) {
|
359
368
|
const s = se(a.value.columnEdit.localStorageKey);
|
360
369
|
if (s) {
|
361
|
-
const { fixed:
|
370
|
+
const { fixed: f, active: p } = Oe(
|
362
371
|
s,
|
363
|
-
|
372
|
+
F.value.headers,
|
364
373
|
a.value.columnEdit.localStorageKey
|
365
374
|
);
|
366
|
-
t.value[(u = (o = a.value) == null ? void 0 : o.columnEdit) == null ? void 0 : u.key].fixed =
|
375
|
+
t.value[(u = (o = a.value) == null ? void 0 : o.columnEdit) == null ? void 0 : u.key].fixed = f, t.value[(d = (r = a.value) == null ? void 0 : r.columnEdit) == null ? void 0 : d.key].active = p, J.value = [...f, ...p];
|
367
376
|
}
|
368
377
|
}
|
369
378
|
};
|
@@ -371,129 +380,129 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
371
380
|
var e, o, u, r, d;
|
372
381
|
Te();
|
373
382
|
const l = Ye();
|
374
|
-
l && (t.value = JSON.parse(l),
|
383
|
+
l && (t.value = JSON.parse(l), V.value = V.value || ((e = t.value) == null ? void 0 : e.tabs) || ((r = t.value) == null ? void 0 : r[(u = (o = a.value) == null ? void 0 : o.tabs) == null ? void 0 : u.key]), N.value = ((d = t.value) == null ? void 0 : d.page) || 1, D(null, !0, t.value.cursor));
|
375
384
|
}), (l, e) => {
|
376
385
|
var o, u, r, d;
|
377
|
-
return n(),
|
378
|
-
|
386
|
+
return n(), E("div", rl, [
|
387
|
+
F.value ? (n(), M(k(Je), {
|
379
388
|
key: 0,
|
380
|
-
selected:
|
381
|
-
"row-key":
|
389
|
+
selected: A.selected,
|
390
|
+
"row-key": A.rowKey,
|
382
391
|
options: H.value,
|
383
|
-
"is-loading":
|
384
|
-
"loading-rows":
|
385
|
-
"row-class":
|
386
|
-
"row-link":
|
387
|
-
"is-sticky":
|
388
|
-
"is-borderless":
|
392
|
+
"is-loading": A.isLoading,
|
393
|
+
"loading-rows": K.value,
|
394
|
+
"row-class": A.rowClass,
|
395
|
+
"row-link": A.rowLink,
|
396
|
+
"is-sticky": F.value.isSticky,
|
397
|
+
"is-borderless": F.value.isBorderless,
|
389
398
|
"onUpdate:selected": e[7] || (e[7] = (s) => l.$emit("update:selected", s)),
|
390
399
|
"onClick:row": e[8] || (e[8] = (s) => l.$emit("click:row", s)),
|
391
400
|
"onHover:cell": e[9] || (e[9] = (s) => l.$emit("hover:cell", s))
|
392
401
|
}, Qe({
|
393
|
-
after:
|
394
|
-
|
402
|
+
after: O(() => [
|
403
|
+
B(l.$slots, "after")
|
395
404
|
]),
|
396
|
-
empty:
|
397
|
-
|
405
|
+
empty: O(() => [
|
406
|
+
B(l.$slots, "empty")
|
398
407
|
]),
|
399
|
-
"table-header":
|
400
|
-
|
408
|
+
"table-header": O((s) => [
|
409
|
+
B(l.$slots, "table-header", ke(he(s)))
|
401
410
|
]),
|
402
|
-
"table-body":
|
403
|
-
|
411
|
+
"table-body": O((s) => [
|
412
|
+
B(l.$slots, "table-body", ke(he(s)))
|
404
413
|
]),
|
405
414
|
_: 2
|
406
415
|
}, [
|
407
416
|
l.$slots.before || (o = a.value) != null && o.search || (u = a.value) != null && u.form || (r = a.value) != null && r.tabs ? {
|
408
417
|
name: "before",
|
409
|
-
fn:
|
410
|
-
var s,
|
418
|
+
fn: O(() => {
|
419
|
+
var s, f, p, x;
|
411
420
|
return [
|
412
|
-
|
413
|
-
(s = a.value) != null && s.search || (
|
414
|
-
De.value ? (n(),
|
415
|
-
|
416
|
-
])) : (n(),
|
417
|
-
(
|
421
|
+
B(l.$slots, "before"),
|
422
|
+
(s = a.value) != null && s.search || (f = a.value) != null && f.form || (p = a.value) != null && p.tabs ? (n(), E("div", il, [
|
423
|
+
De.value ? (n(), E("div", nl, [
|
424
|
+
B(l.$slots, "bulk-actions", { selectedRows: A.selected })
|
425
|
+
])) : (n(), E("div", dl, [
|
426
|
+
(x = a.value) != null && x.tabs ? (n(), M(k(ze), {
|
418
427
|
key: 0,
|
419
|
-
modelValue:
|
428
|
+
modelValue: V.value,
|
420
429
|
"onUpdate:modelValue": [
|
421
|
-
e[0] || (e[0] = (
|
422
|
-
e[1] || (e[1] = (
|
430
|
+
e[0] || (e[0] = (h) => V.value = h),
|
431
|
+
e[1] || (e[1] = (h) => D(null))
|
423
432
|
],
|
424
|
-
"is-disabled":
|
433
|
+
"is-disabled": A.isLoading,
|
425
434
|
tabs: a.value.tabs.options,
|
426
435
|
variant: "pills"
|
427
|
-
}, null, 8, ["modelValue", "is-disabled", "tabs"])) :
|
436
|
+
}, null, 8, ["modelValue", "is-disabled", "tabs"])) : $("", !0)
|
428
437
|
])),
|
429
|
-
|
430
|
-
var
|
438
|
+
B(l.$slots, "filter-options", {}, () => {
|
439
|
+
var h, m, U, q, Q, G;
|
431
440
|
return [
|
432
|
-
(
|
441
|
+
(h = a.value) != null && h.search || (m = a.value) != null && m.form || (U = a.value) != null && U.columnEdit ? (n(), E("div", {
|
433
442
|
key: 0,
|
434
443
|
class: te([
|
435
444
|
"flex gap-3 absolute ml-auto bg-oc-bg-light right-4 max-w-[calc(100%-24px)]",
|
436
445
|
a.value ? oe.value ? "md:w-fit w-full" : "" : "w-full justify-end"
|
437
446
|
])
|
438
447
|
}, [
|
439
|
-
(q = a.value) != null && q.search ? (n(),
|
448
|
+
(q = a.value) != null && q.search ? (n(), M(k(_e), {
|
440
449
|
key: 0,
|
441
450
|
"is-search-only": !a.value.tabs || a.value.isSearchOnly,
|
442
451
|
onAddQuery: Le,
|
443
|
-
onToggle: e[2] || (e[2] = (
|
444
|
-
}, null, 8, ["is-search-only"])) :
|
445
|
-
(Q = a.value) != null && Q.form ? (n(),
|
452
|
+
onToggle: e[2] || (e[2] = (w) => oe.value = w)
|
453
|
+
}, null, 8, ["is-search-only"])) : $("", !0),
|
454
|
+
(Q = a.value) != null && Q.form ? (n(), M(k(Ee), {
|
446
455
|
key: 1,
|
447
|
-
modelValue:
|
448
|
-
"onUpdate:modelValue": e[6] || (e[6] = (
|
456
|
+
modelValue: S.value,
|
457
|
+
"onUpdate:modelValue": e[6] || (e[6] = (w) => S.value = w),
|
449
458
|
distance: 9,
|
450
459
|
placement: "bottom-end",
|
451
460
|
"is-attach-to-body": ""
|
452
461
|
}, {
|
453
|
-
menu:
|
454
|
-
|
462
|
+
menu: O(() => [
|
463
|
+
S.value ? (n(), M(k(Ze), {
|
455
464
|
key: 0,
|
456
|
-
id:
|
465
|
+
id: A.id,
|
457
466
|
"json-form": a.value.form ?? [],
|
458
467
|
grid: a.value.grid ?? null,
|
459
468
|
values: v.filter,
|
460
469
|
actions: a.value.actions,
|
461
|
-
onApplyFilter: e[3] || (e[3] = (
|
462
|
-
onFilterFieldsChanged: e[4] || (e[4] = (
|
463
|
-
onCancel: e[5] || (e[5] = (
|
470
|
+
onApplyFilter: e[3] || (e[3] = (w) => D(w)),
|
471
|
+
onFilterFieldsChanged: e[4] || (e[4] = (w) => j("filter-fields-changed", w)),
|
472
|
+
onCancel: e[5] || (e[5] = (w) => S.value = !1)
|
464
473
|
}, {
|
465
|
-
default:
|
466
|
-
|
467
|
-
errors:
|
474
|
+
default: O(({ errors: w, values: i, jsonForm: L, updateForm: I }) => [
|
475
|
+
B(l.$slots, "custom-filter-form", {
|
476
|
+
errors: w,
|
468
477
|
values: i,
|
469
|
-
jsonForm:
|
470
|
-
updateFilter:
|
478
|
+
jsonForm: L,
|
479
|
+
updateFilter: I
|
471
480
|
})
|
472
481
|
]),
|
473
482
|
_: 3
|
474
|
-
}, 8, ["id", "json-form", "grid", "values", "actions"])) :
|
483
|
+
}, 8, ["id", "json-form", "grid", "values", "actions"])) : $("", !0)
|
475
484
|
]),
|
476
|
-
default:
|
477
|
-
|
478
|
-
"is-active":
|
485
|
+
default: O(() => [
|
486
|
+
T(k(Fe), {
|
487
|
+
"is-active": S.value,
|
479
488
|
variant: "secondary",
|
480
489
|
"left-icon": "filter"
|
481
490
|
}, null, 8, ["is-active"])
|
482
491
|
]),
|
483
492
|
_: 3
|
484
|
-
}, 8, ["modelValue"])) :
|
485
|
-
a.value.columnEdit ? (n(),
|
493
|
+
}, 8, ["modelValue"])) : $("", !0),
|
494
|
+
a.value.columnEdit ? (n(), M(ul, {
|
486
495
|
key: 2,
|
487
496
|
options: t.value.columnEdit,
|
488
|
-
headers: ((G =
|
497
|
+
headers: ((G = F.value) == null ? void 0 : G.headers) || [],
|
489
498
|
"local-key": a.value.columnEdit.localStorageKey,
|
490
499
|
onUpdateOrder: Ie
|
491
|
-
}, null, 8, ["options", "headers", "local-key"])) :
|
492
|
-
], 2)) :
|
500
|
+
}, null, 8, ["options", "headers", "local-key"])) : $("", !0)
|
501
|
+
], 2)) : $("", !0)
|
493
502
|
];
|
494
503
|
})
|
495
|
-
])) :
|
496
|
-
|
504
|
+
])) : $("", !0),
|
505
|
+
T(k(Ge), {
|
497
506
|
filters: Ne.value,
|
498
507
|
queries: z.value,
|
499
508
|
class: "border-t border-oc-gray-200",
|
@@ -505,50 +514,50 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
505
514
|
}),
|
506
515
|
key: "0"
|
507
516
|
} : void 0,
|
508
|
-
ae((d =
|
517
|
+
ae((d = F.value) == null ? void 0 : d.headers, (s, f) => ({
|
509
518
|
name: s.key,
|
510
|
-
fn:
|
511
|
-
|
512
|
-
data:
|
513
|
-
item:
|
519
|
+
fn: O(({ data: p, item: x }) => [
|
520
|
+
B(l.$slots, s.key, {
|
521
|
+
data: p,
|
522
|
+
item: x
|
514
523
|
})
|
515
524
|
])
|
516
525
|
}))
|
517
|
-
]), 1032, ["selected", "row-key", "options", "is-loading", "loading-rows", "row-class", "row-link", "is-sticky", "is-borderless"])) :
|
518
|
-
|
519
|
-
c.value ||
|
526
|
+
]), 1032, ["selected", "row-key", "options", "is-loading", "loading-rows", "row-class", "row-link", "is-sticky", "is-borderless"])) : $("", !0),
|
527
|
+
B(l.$slots, "before-pagination"),
|
528
|
+
c.value || y.value ? (n(), E("div", {
|
520
529
|
key: 1,
|
521
530
|
class: te(["flex items-center gap-3", c.value && c.value.last_page === 1 ? "justify-end" : ""])
|
522
531
|
}, [
|
523
|
-
c.value && !
|
532
|
+
c.value && !b.value ? (n(), M(k(He), {
|
524
533
|
key: 0,
|
525
|
-
modelValue:
|
534
|
+
modelValue: N.value,
|
526
535
|
"onUpdate:modelValue": [
|
527
|
-
e[10] || (e[10] = (s) =>
|
536
|
+
e[10] || (e[10] = (s) => N.value = s),
|
528
537
|
Ke
|
529
538
|
],
|
530
539
|
class: "justify-center",
|
531
540
|
"max-page": c.value.last_page,
|
532
541
|
strategy: c.value.strategy,
|
533
542
|
"total-visible": "5"
|
534
|
-
}, null, 8, ["modelValue", "max-page", "strategy"])) :
|
535
|
-
|
536
|
-
|
537
|
-
disabled: !
|
538
|
-
onClick: e[11] || (e[11] = (s) =>
|
543
|
+
}, null, 8, ["modelValue", "max-page", "strategy"])) : $("", !0),
|
544
|
+
y.value ? (n(), E("div", vl, [
|
545
|
+
T(k(xe), {
|
546
|
+
disabled: !y.value.prev,
|
547
|
+
onClick: e[11] || (e[11] = (s) => y.value.prev ? D(null, !1, y.value.prev) : null)
|
539
548
|
}, null, 8, ["disabled"]),
|
540
|
-
|
541
|
-
disabled: !
|
549
|
+
T(k(xe), {
|
550
|
+
disabled: !y.value.next,
|
542
551
|
"is-next": "",
|
543
|
-
onClick: e[12] || (e[12] = (s) =>
|
552
|
+
onClick: e[12] || (e[12] = (s) => y.value.next ? D(null, !1, y.value.next) : null)
|
544
553
|
}, null, 8, ["disabled"])
|
545
|
-
])) :
|
546
|
-
|
547
|
-
|
548
|
-
modelValue:
|
554
|
+
])) : $("", !0),
|
555
|
+
g.value ? $("", !0) : (n(), E("div", cl, [
|
556
|
+
T(k(We), {
|
557
|
+
modelValue: K.value,
|
549
558
|
"onUpdate:modelValue": [
|
550
|
-
e[13] || (e[13] = (s) =>
|
551
|
-
e[14] || (e[14] = (s) =>
|
559
|
+
e[13] || (e[13] = (s) => K.value = s),
|
560
|
+
e[14] || (e[14] = (s) => D(null))
|
552
561
|
],
|
553
562
|
label: "Item per page",
|
554
563
|
"is-inline-label": "",
|
@@ -556,7 +565,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
556
565
|
options: Ae.value
|
557
566
|
}, null, 8, ["modelValue", "options"])
|
558
567
|
]))
|
559
|
-
], 2)) :
|
568
|
+
], 2)) : $("", !0)
|
560
569
|
]);
|
561
570
|
};
|
562
571
|
}
|