@orchidui/core 1.6.1-34 → 1.6.1-36
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-CB11TtHB.js → OcAccountSetupProgress-CENQkjCB.js} +1 -1
- package/dist/{OcComplexCalendar-BNLPwdws.js → OcComplexCalendar-Bfpu70YX.js} +1 -1
- package/dist/{OcComplexDatePicker-Ds3dq164.js → OcComplexDatePicker-CBWNcYnv.js} +1 -1
- package/dist/{OcCropper-ml7xGyMs.js → OcCropper-E5QlR_e7.js} +1 -1
- package/dist/{OcDataTable-DrB99ZuD.js → OcDataTable-DBM6wo9j.js} +197 -202
- package/dist/{OcDraggableList-T0fzjEOE.js → OcDraggableList-EWnQuFTY.js} +1 -1
- package/dist/{OcEmojiPicker-Drt9T3l8.js → OcEmojiPicker-BuHRpvJu.js} +1 -1
- package/dist/{OcFilterForm-BEufgGEo.js → OcFilterForm-B0_p_2It.js} +1 -1
- package/dist/{OcFilterSearch-D8UATbD2.js → OcFilterSearch-6cqGNw4E.js} +1 -1
- package/dist/{OcFilterSearchFor-DRZxGpM4.js → OcFilterSearchFor-B5ANqs7L.js} +1 -1
- package/dist/{OcModalCropper-7bmN0c8X.js → OcModalCropper-B1Exien6.js} +2 -2
- package/dist/{OcTimePicker-Bmb-2hc7.js → OcTimePicker-CER0EO7A.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-34zRlOcW.js → SubPlanCard-B6gQZ2a1.js} +1 -1
- package/dist/{ThumbnailSection-DRztKSGC.js → ThumbnailSection-Cm8QV8JQ.js} +1 -1
- package/dist/{ThumbnailTheme-jbBIyIpC.js → ThumbnailTheme-C96vrQ1m.js} +1 -1
- package/dist/{index-C2sh2ECJ.js → index-jzdHM1Of.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 P, onMounted as Ve, openBlock as n, createBlock as B, unref as b, withCtx as F, createElementVNode as Z, createElementBlock as V, createVNode as I, 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 Y, 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-jzdHM1Of.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(j, { emit: X }) {
|
31
|
+
const v = X, O = j, c = P([]), m = P([]), J = P(!1), E = (a = !1) => {
|
32
|
+
m.value = m.value.map((y) => ({
|
33
|
+
...y,
|
34
34
|
isActive: !0
|
35
35
|
})), v("update-order", {
|
36
|
-
fixedHeaders:
|
36
|
+
fixedHeaders: m.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": () => E()
|
48
48
|
};
|
49
49
|
return Ve(() => {
|
50
|
-
const a = se(
|
51
|
-
|
52
|
-
var
|
50
|
+
const a = se(O.localKey), { fixed: y, active: g } = Oe(a, O.headers, O.localKey);
|
51
|
+
m.value = y || O.headers.slice(0, 1), c.value = g || O.headers.slice(1).map((w) => {
|
52
|
+
var $, M, C;
|
53
53
|
return {
|
54
|
-
...
|
55
|
-
isActive: ((
|
54
|
+
...w,
|
55
|
+
isActive: ((C = (M = ($ = O.options) == null ? void 0 : $.active) == null ? void 0 : M.find((W) => W.key === w.key)) == null ? void 0 : C.isActive) ?? !0
|
56
56
|
};
|
57
|
-
}),
|
58
|
-
}), (a,
|
57
|
+
}), E(!0);
|
58
|
+
}), (a, y) => (n(), B(b(Ee), {
|
59
59
|
modelValue: J.value,
|
60
|
-
"onUpdate:modelValue":
|
60
|
+
"onUpdate:modelValue": y[3] || (y[3] = (g) => J.value = g),
|
61
61
|
class: "h-[36px]",
|
62
62
|
"is-attach-to-body": ""
|
63
63
|
}, {
|
64
|
-
menu:
|
64
|
+
menu: F(() => [
|
65
65
|
Z("div", el, [
|
66
|
-
|
67
|
-
|
68
|
-
|
66
|
+
m.value.length ? (n(), V("div", ll, [
|
67
|
+
y[4] || (y[4] = Z("span", { class: "text-oc-text-400 font-medium" }, "Fixed columns", -1)),
|
68
|
+
I(b(we), ge({
|
69
69
|
key: "key",
|
70
|
-
modelValue:
|
71
|
-
"onUpdate:modelValue":
|
70
|
+
modelValue: m.value,
|
71
|
+
"onUpdate:modelValue": y[0] || (y[0] = (g) => m.value = g)
|
72
72
|
}, H), {
|
73
|
-
default:
|
74
|
-
(n(!0),
|
75
|
-
key:
|
76
|
-
class: te(["flex items-center justify-between h-[26px]",
|
73
|
+
default: F(() => [
|
74
|
+
(n(!0), V(ee, null, ae(m.value, (g, w) => (n(), V("div", {
|
75
|
+
key: g.key,
|
76
|
+
class: te(["flex items-center justify-between h-[26px]", w ? "" : "is-disabled"])
|
77
77
|
}, [
|
78
|
-
Z("span", null, be(
|
79
|
-
|
78
|
+
Z("span", null, be(g.label), 1),
|
79
|
+
w ? (n(), B(b(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
|
+
})) : x("", !0)
|
86
86
|
], 2))), 128))
|
87
87
|
]),
|
88
88
|
_: 1
|
89
89
|
}, 16, ["modelValue"])
|
90
|
-
])) :
|
90
|
+
])) : x("", !0),
|
91
91
|
Z("div", al, [
|
92
|
-
|
93
|
-
|
92
|
+
y[5] || (y[5] = Z("span", { class: "text-oc-text-400 font-medium" }, "Active columns", -1)),
|
93
|
+
I(b(we), ge({
|
94
94
|
key: "key",
|
95
95
|
modelValue: c.value,
|
96
|
-
"onUpdate:modelValue":
|
96
|
+
"onUpdate:modelValue": y[2] || (y[2] = (g) => c.value = g)
|
97
97
|
}, H, { "data-active-headers": "true" }), {
|
98
|
-
default:
|
99
|
-
(n(!0),
|
100
|
-
key:
|
98
|
+
default: F(() => [
|
99
|
+
(n(!0), V(ee, null, ae(c.value, (g) => (n(), V(ee, {
|
100
|
+
key: g.key
|
101
101
|
}, [
|
102
|
-
|
102
|
+
g.key !== "actions" ? (n(), V("div", tl, [
|
103
103
|
Z("div", sl, [
|
104
|
-
|
105
|
-
modelValue:
|
104
|
+
I(b(Re), {
|
105
|
+
modelValue: g.isActive,
|
106
106
|
"onUpdate:modelValue": [
|
107
|
-
(
|
108
|
-
|
107
|
+
(w) => g.isActive = w,
|
108
|
+
y[1] || (y[1] = (w) => E())
|
109
109
|
],
|
110
110
|
class: "!w-fit"
|
111
111
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
112
|
-
Z("div", ol, be(
|
112
|
+
Z("div", ol, be(g.label), 1)
|
113
113
|
]),
|
114
|
-
c.value.length > 1 ? (n(),
|
114
|
+
c.value.length > 1 ? (n(), B(b(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
|
+
})) : x("", !0)
|
121
|
+
])) : x("", !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: F(() => [
|
130
|
+
I(b(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(j, { emit: X }) {
|
193
193
|
var re, ie, ne, de, ve, ce, fe, pe, me;
|
194
|
-
const v =
|
194
|
+
const v = j, O = X, c = L(() => {
|
195
195
|
var l;
|
196
196
|
return (l = v.options) == null ? void 0 : l.pagination;
|
197
|
-
}),
|
197
|
+
}), m = L(() => {
|
198
198
|
var l;
|
199
199
|
return (l = v.options) == null ? void 0 : l.cursor;
|
200
|
-
}), J =
|
200
|
+
}), J = P(), E = L(() => {
|
201
201
|
var l;
|
202
202
|
return (l = v.options) == null ? void 0 : l.tableOptions;
|
203
|
-
}), H =
|
203
|
+
}), H = L(() => {
|
204
204
|
var l;
|
205
205
|
return {
|
206
|
-
...
|
206
|
+
...E.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 = E.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 = E.value) == null ? void 0 : l.headers.filter((e) => ue(e.key))
|
211
211
|
};
|
212
|
-
}), a =
|
212
|
+
}), a = L(() => {
|
213
213
|
var l;
|
214
214
|
return (l = v.options) == null ? void 0 : l.filterOptions;
|
215
|
-
}),
|
215
|
+
}), y = L(() => {
|
216
216
|
var l;
|
217
217
|
return (l = v.options) == null ? void 0 : l.hidePerPageDropdown;
|
218
|
-
}),
|
218
|
+
}), g = L(() => {
|
219
219
|
var l;
|
220
220
|
return ((l = c.value) == null ? void 0 : l.last_page) === 1;
|
221
|
-
}),
|
221
|
+
}), w = P(!1), $ = P(v.filter[(ie = (re = a.value) == null ? void 0 : re.tabs) == null ? void 0 : ie.key]), M = P(v.filter.page), C = P(
|
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 = P(W ? W.split(",") : []), oe = P(!1), je = L(
|
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 = L(() => {
|
234
234
|
let l = [
|
235
235
|
{
|
236
236
|
label: "10",
|
@@ -270,82 +270,77 @@ 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 = L(() => {
|
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], A(), O("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), A();
|
280
280
|
}, _ = v.filter;
|
281
|
-
!_ && c ? _.page = 1 : !_ &&
|
282
|
-
const t =
|
283
|
-
var e, o, u, r, d, s, f, p,
|
284
|
-
z.value = [],
|
281
|
+
!_ && c ? _.page = 1 : !_ && m && (_.cursor = "");
|
282
|
+
const t = P(_), Ce = () => {
|
283
|
+
var e, o, u, r, d, s, f, p, k, S, K, T, q, Q;
|
284
|
+
z.value = [], $.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] = C.value : l.per_page = C.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] = $.value : l.tabs = $.value, (S = (k = a.value) == null ? void 0 : k.columnEdit) != null && S.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();
|
287
287
|
}, Ke = () => {
|
288
|
-
|
288
|
+
A(null, M.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 r, d, s, f, p
|
293
|
-
c.value && !e && (
|
294
|
-
Array.isArray(t.value[
|
291
|
+
}, Ye = () => v.id ? se(v.id) : null, A = (l = null, e = !1, o = "") => {
|
292
|
+
var r, d, s, f, p;
|
293
|
+
c.value && !e && (M.value = 1), c.value ? t.value.page = M.value : t.value.cursor = o, (r = a.value) != null && r.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] = $.value), (s = a.value) != null && s.search && (t.value[a.value.search.key] = z.value.join()), l && (w.value = !1, t.value = { ...t.value, ...l }, Object.keys(t.value).forEach((k) => {
|
294
|
+
Array.isArray(t.value[k]) && t.value[k].length === 0 && delete t.value[k];
|
295
295
|
}));
|
296
|
-
let u = (
|
297
|
-
if (u &&
|
298
|
-
|
299
|
-
|
300
|
-
);
|
301
|
-
if (m != null && m.value)
|
302
|
-
return V.value = m.value, !1;
|
303
|
-
}
|
304
|
-
(h = a.value) != null && h.tabs && (t.value[a.value.tabs.key] = V.value), Ue(), j("update:filter", t.value);
|
296
|
+
let u = (p = (f = a.value) == null ? void 0 : f.tabs) == null ? void 0 : p.key;
|
297
|
+
if (u && $.value !== t.value[u])
|
298
|
+
return $.value = t.value[u], !1;
|
299
|
+
Ue(), O("update:filter", t.value);
|
305
300
|
}, Be = (l, e) => {
|
306
|
-
(e === a.value.tabs.key || e === "tabs") && (
|
301
|
+
(e === a.value.tabs.key || e === "tabs") && ($.value = ""), A(l), O("filter-removed", e);
|
307
302
|
}, Me = (l) => {
|
308
303
|
let e = [];
|
309
304
|
return l.forEach((o) => {
|
310
305
|
e.push(o.key);
|
311
306
|
}), e;
|
312
|
-
}, Ne =
|
307
|
+
}, Ne = L(() => {
|
313
308
|
if (t.value) {
|
314
309
|
let l = [];
|
315
310
|
return Object.keys(t.value).forEach((e) => {
|
316
|
-
var d, s, f, p,
|
311
|
+
var d, s, f, p, k, S, K, T, q, Q, G;
|
317
312
|
let o = (s = (d = a.value) == null ? void 0 : d.tabs) == null ? void 0 : s.key;
|
318
|
-
const u = (p = (f = a.value) == null ? void 0 : f.search) == null ? void 0 : p.key, r = ((
|
319
|
-
if ((
|
320
|
-
|
313
|
+
const u = (p = (f = a.value) == null ? void 0 : f.search) == null ? void 0 : p.key, r = ((S = (k = a.value) == null ? void 0 : k.per_page) == null ? void 0 : S.key) ?? "per_page";
|
314
|
+
if ((K = a.value.form) == null || K.find((h) => {
|
315
|
+
h.name === o && (o = "");
|
321
316
|
}), e !== "page" && e !== "cursor" && e !== r && e !== o && e !== u) {
|
322
|
-
let
|
323
|
-
if (typeof
|
324
|
-
let
|
325
|
-
return
|
326
|
-
R.key === e && (
|
327
|
-
}),
|
317
|
+
let h = null, i = (T = a.value.form) == null ? void 0 : T.find((N) => {
|
318
|
+
if (typeof N.name == "object") {
|
319
|
+
let U = !1;
|
320
|
+
return N.name.forEach((R) => {
|
321
|
+
R.key === e && (U = !0, h = Me(N.name));
|
322
|
+
}), U;
|
328
323
|
} else
|
329
|
-
return
|
330
|
-
}),
|
324
|
+
return N.name === e;
|
325
|
+
}), D = "";
|
331
326
|
if (i && t.value[e]) {
|
332
|
-
if (typeof i.name == "object" ? (q = i.name) == null || q.forEach((
|
333
|
-
|
334
|
-
}) :
|
327
|
+
if (typeof i.name == "object" ? (q = i.name) == null || q.forEach((U) => {
|
328
|
+
D && (D += " - "), D += t.value[U.key];
|
329
|
+
}) : D = t.value[e], i.props.options && (D = (i.props.multiple ? t.value[e] : [t.value[e]]).map(
|
335
330
|
(R) => {
|
336
331
|
var ye;
|
337
332
|
return (ye = i.props.options.find(({ value: qe }) => qe === R)) == null ? void 0 : ye.label;
|
338
333
|
}
|
339
|
-
).join(", ")), i.type === "RangeInput" && Array.isArray(t.value[e]) && (
|
334
|
+
).join(", ")), i.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, ",")), i.type === "DatePicker")
|
340
335
|
if (((Q = i == null ? void 0 : i.props) == null ? void 0 : Q.type) === "range" && i.name && i.name[1]) {
|
341
|
-
const
|
342
|
-
|
343
|
-
} else
|
344
|
-
let
|
345
|
-
i && i.name && typeof i.name == "object" && l.find((R) => R.name ===
|
346
|
-
label:
|
336
|
+
const U = le(t.value[i.name[0].key]).format("MM/DD/YYYY"), R = le(t.value[i.name[1].key]).format("MM/DD/YYYY");
|
337
|
+
D = U === R ? U : U + " - " + R;
|
338
|
+
} else D = le(t.value[i.name]).format("MM/DD/YYYY");
|
339
|
+
let N = `${(G = i == null ? void 0 : i.props) == null ? void 0 : G.label} : ${D}`;
|
340
|
+
i && i.name && typeof i.name == "object" && l.find((R) => R.name === h[0]) && (N = ""), l.push({
|
341
|
+
label: N,
|
347
342
|
name: e,
|
348
|
-
multiNames:
|
343
|
+
multiNames: h
|
349
344
|
});
|
350
345
|
}
|
351
346
|
}
|
@@ -356,12 +351,12 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
356
351
|
var e, o, u, r, d, s;
|
357
352
|
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;
|
358
353
|
}, Ie = ({ fixedHeaders: l, activeHeaders: e, isOnMount: o }) => {
|
359
|
-
var u, r, d, s, f, p,
|
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[(
|
361
|
-
const
|
362
|
-
$e(a.value.columnEdit.localStorageKey,
|
354
|
+
var u, r, d, s, f, p, k, S;
|
355
|
+
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[(S = (k = a.value) == null ? void 0 : k.columnEdit) == null ? void 0 : S.key].active = e, J.value = [...l, ...e], !o) {
|
356
|
+
const K = Xe(l, e);
|
357
|
+
$e(a.value.columnEdit.localStorageKey, K);
|
363
358
|
}
|
364
|
-
|
359
|
+
O("columns-changed", e);
|
365
360
|
}, Te = () => {
|
366
361
|
var l, e, o, u, r, d;
|
367
362
|
if ((e = (l = a.value) == null ? void 0 : l.columnEdit) != null && e.localStorageKey) {
|
@@ -369,7 +364,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
369
364
|
if (s) {
|
370
365
|
const { fixed: f, active: p } = Oe(
|
371
366
|
s,
|
372
|
-
|
367
|
+
E.value.headers,
|
373
368
|
a.value.columnEdit.localStorageKey
|
374
369
|
);
|
375
370
|
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];
|
@@ -380,129 +375,129 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
380
375
|
var e, o, u, r, d;
|
381
376
|
Te();
|
382
377
|
const l = Ye();
|
383
|
-
l && (t.value = JSON.parse(l),
|
378
|
+
l && (t.value = JSON.parse(l), $.value = $.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]), M.value = ((d = t.value) == null ? void 0 : d.page) || 1, A(null, !0, t.value.cursor));
|
384
379
|
}), (l, e) => {
|
385
380
|
var o, u, r, d;
|
386
|
-
return n(),
|
387
|
-
|
381
|
+
return n(), V("div", rl, [
|
382
|
+
E.value ? (n(), B(b(Je), {
|
388
383
|
key: 0,
|
389
|
-
selected:
|
390
|
-
"row-key":
|
384
|
+
selected: j.selected,
|
385
|
+
"row-key": j.rowKey,
|
391
386
|
options: H.value,
|
392
|
-
"is-loading":
|
393
|
-
"loading-rows":
|
394
|
-
"row-class":
|
395
|
-
"row-link":
|
396
|
-
"is-sticky":
|
397
|
-
"is-borderless":
|
387
|
+
"is-loading": j.isLoading,
|
388
|
+
"loading-rows": C.value,
|
389
|
+
"row-class": j.rowClass,
|
390
|
+
"row-link": j.rowLink,
|
391
|
+
"is-sticky": E.value.isSticky,
|
392
|
+
"is-borderless": E.value.isBorderless,
|
398
393
|
"onUpdate:selected": e[7] || (e[7] = (s) => l.$emit("update:selected", s)),
|
399
394
|
"onClick:row": e[8] || (e[8] = (s) => l.$emit("click:row", s)),
|
400
395
|
"onHover:cell": e[9] || (e[9] = (s) => l.$emit("hover:cell", s))
|
401
396
|
}, Qe({
|
402
|
-
after:
|
403
|
-
|
397
|
+
after: F(() => [
|
398
|
+
Y(l.$slots, "after")
|
404
399
|
]),
|
405
|
-
empty:
|
406
|
-
|
400
|
+
empty: F(() => [
|
401
|
+
Y(l.$slots, "empty")
|
407
402
|
]),
|
408
|
-
"table-header":
|
409
|
-
|
403
|
+
"table-header": F((s) => [
|
404
|
+
Y(l.$slots, "table-header", ke(he(s)))
|
410
405
|
]),
|
411
|
-
"table-body":
|
412
|
-
|
406
|
+
"table-body": F((s) => [
|
407
|
+
Y(l.$slots, "table-body", ke(he(s)))
|
413
408
|
]),
|
414
409
|
_: 2
|
415
410
|
}, [
|
416
411
|
l.$slots.before || (o = a.value) != null && o.search || (u = a.value) != null && u.form || (r = a.value) != null && r.tabs ? {
|
417
412
|
name: "before",
|
418
|
-
fn:
|
419
|
-
var s, f, p,
|
413
|
+
fn: F(() => {
|
414
|
+
var s, f, p, k;
|
420
415
|
return [
|
421
|
-
|
422
|
-
(s = a.value) != null && s.search || (f = a.value) != null && f.form || (p = a.value) != null && p.tabs ? (n(),
|
423
|
-
De.value ? (n(),
|
424
|
-
|
425
|
-
])) : (n(),
|
426
|
-
(
|
416
|
+
Y(l.$slots, "before"),
|
417
|
+
(s = a.value) != null && s.search || (f = a.value) != null && f.form || (p = a.value) != null && p.tabs ? (n(), V("div", il, [
|
418
|
+
De.value ? (n(), V("div", nl, [
|
419
|
+
Y(l.$slots, "bulk-actions", { selectedRows: j.selected })
|
420
|
+
])) : (n(), V("div", dl, [
|
421
|
+
(k = a.value) != null && k.tabs ? (n(), B(b(ze), {
|
427
422
|
key: 0,
|
428
|
-
modelValue:
|
423
|
+
modelValue: $.value,
|
429
424
|
"onUpdate:modelValue": [
|
430
|
-
e[0] || (e[0] = (
|
431
|
-
e[1] || (e[1] = (
|
425
|
+
e[0] || (e[0] = (S) => $.value = S),
|
426
|
+
e[1] || (e[1] = (S) => A(null))
|
432
427
|
],
|
433
|
-
"is-disabled":
|
428
|
+
"is-disabled": j.isLoading,
|
434
429
|
tabs: a.value.tabs.options,
|
435
430
|
variant: "pills"
|
436
|
-
}, null, 8, ["modelValue", "is-disabled", "tabs"])) :
|
431
|
+
}, null, 8, ["modelValue", "is-disabled", "tabs"])) : x("", !0)
|
437
432
|
])),
|
438
|
-
|
439
|
-
var
|
433
|
+
Y(l.$slots, "filter-options", {}, () => {
|
434
|
+
var S, K, T, q, Q, G;
|
440
435
|
return [
|
441
|
-
(
|
436
|
+
(S = a.value) != null && S.search || (K = a.value) != null && K.form || (T = a.value) != null && T.columnEdit ? (n(), V("div", {
|
442
437
|
key: 0,
|
443
438
|
class: te([
|
444
439
|
"flex gap-3 absolute ml-auto bg-oc-bg-light right-4 max-w-[calc(100%-24px)]",
|
445
440
|
a.value ? oe.value ? "md:w-fit w-full" : "" : "w-full justify-end"
|
446
441
|
])
|
447
442
|
}, [
|
448
|
-
(q = a.value) != null && q.search ? (n(),
|
443
|
+
(q = a.value) != null && q.search ? (n(), B(b(_e), {
|
449
444
|
key: 0,
|
450
445
|
"is-search-only": !a.value.tabs || a.value.isSearchOnly,
|
451
446
|
onAddQuery: Le,
|
452
|
-
onToggle: e[2] || (e[2] = (
|
453
|
-
}, null, 8, ["is-search-only"])) :
|
454
|
-
(Q = a.value) != null && Q.form ? (n(),
|
447
|
+
onToggle: e[2] || (e[2] = (h) => oe.value = h)
|
448
|
+
}, null, 8, ["is-search-only"])) : x("", !0),
|
449
|
+
(Q = a.value) != null && Q.form ? (n(), B(b(Ee), {
|
455
450
|
key: 1,
|
456
|
-
modelValue:
|
457
|
-
"onUpdate:modelValue": e[6] || (e[6] = (
|
451
|
+
modelValue: w.value,
|
452
|
+
"onUpdate:modelValue": e[6] || (e[6] = (h) => w.value = h),
|
458
453
|
distance: 9,
|
459
454
|
placement: "bottom-end",
|
460
455
|
"is-attach-to-body": ""
|
461
456
|
}, {
|
462
|
-
menu:
|
463
|
-
|
457
|
+
menu: F(() => [
|
458
|
+
w.value ? (n(), B(b(Ze), {
|
464
459
|
key: 0,
|
465
|
-
id:
|
460
|
+
id: j.id,
|
466
461
|
"json-form": a.value.form ?? [],
|
467
462
|
grid: a.value.grid ?? null,
|
468
463
|
values: v.filter,
|
469
464
|
actions: a.value.actions,
|
470
|
-
onApplyFilter: e[3] || (e[3] = (
|
471
|
-
onFilterFieldsChanged: e[4] || (e[4] = (
|
472
|
-
onCancel: e[5] || (e[5] = (
|
465
|
+
onApplyFilter: e[3] || (e[3] = (h) => A(h)),
|
466
|
+
onFilterFieldsChanged: e[4] || (e[4] = (h) => O("filter-fields-changed", h)),
|
467
|
+
onCancel: e[5] || (e[5] = (h) => w.value = !1)
|
473
468
|
}, {
|
474
|
-
default:
|
475
|
-
|
476
|
-
errors:
|
469
|
+
default: F(({ errors: h, values: i, jsonForm: D, updateForm: N }) => [
|
470
|
+
Y(l.$slots, "custom-filter-form", {
|
471
|
+
errors: h,
|
477
472
|
values: i,
|
478
|
-
jsonForm:
|
479
|
-
updateFilter:
|
473
|
+
jsonForm: D,
|
474
|
+
updateFilter: N
|
480
475
|
})
|
481
476
|
]),
|
482
477
|
_: 3
|
483
|
-
}, 8, ["id", "json-form", "grid", "values", "actions"])) :
|
478
|
+
}, 8, ["id", "json-form", "grid", "values", "actions"])) : x("", !0)
|
484
479
|
]),
|
485
|
-
default:
|
486
|
-
|
487
|
-
"is-active":
|
480
|
+
default: F(() => [
|
481
|
+
I(b(Fe), {
|
482
|
+
"is-active": w.value,
|
488
483
|
variant: "secondary",
|
489
484
|
"left-icon": "filter"
|
490
485
|
}, null, 8, ["is-active"])
|
491
486
|
]),
|
492
487
|
_: 3
|
493
|
-
}, 8, ["modelValue"])) :
|
494
|
-
a.value.columnEdit ? (n(),
|
488
|
+
}, 8, ["modelValue"])) : x("", !0),
|
489
|
+
a.value.columnEdit ? (n(), B(ul, {
|
495
490
|
key: 2,
|
496
491
|
options: t.value.columnEdit,
|
497
|
-
headers: ((G =
|
492
|
+
headers: ((G = E.value) == null ? void 0 : G.headers) || [],
|
498
493
|
"local-key": a.value.columnEdit.localStorageKey,
|
499
494
|
onUpdateOrder: Ie
|
500
|
-
}, null, 8, ["options", "headers", "local-key"])) :
|
501
|
-
], 2)) :
|
495
|
+
}, null, 8, ["options", "headers", "local-key"])) : x("", !0)
|
496
|
+
], 2)) : x("", !0)
|
502
497
|
];
|
503
498
|
})
|
504
|
-
])) :
|
505
|
-
|
499
|
+
])) : x("", !0),
|
500
|
+
I(b(Ge), {
|
506
501
|
filters: Ne.value,
|
507
502
|
queries: z.value,
|
508
503
|
class: "border-t border-oc-gray-200",
|
@@ -514,50 +509,50 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
514
509
|
}),
|
515
510
|
key: "0"
|
516
511
|
} : void 0,
|
517
|
-
ae((d =
|
512
|
+
ae((d = E.value) == null ? void 0 : d.headers, (s, f) => ({
|
518
513
|
name: s.key,
|
519
|
-
fn:
|
520
|
-
|
514
|
+
fn: F(({ data: p, item: k }) => [
|
515
|
+
Y(l.$slots, s.key, {
|
521
516
|
data: p,
|
522
|
-
item:
|
517
|
+
item: k
|
523
518
|
})
|
524
519
|
])
|
525
520
|
}))
|
526
|
-
]), 1032, ["selected", "row-key", "options", "is-loading", "loading-rows", "row-class", "row-link", "is-sticky", "is-borderless"])) :
|
527
|
-
|
528
|
-
c.value ||
|
521
|
+
]), 1032, ["selected", "row-key", "options", "is-loading", "loading-rows", "row-class", "row-link", "is-sticky", "is-borderless"])) : x("", !0),
|
522
|
+
Y(l.$slots, "before-pagination"),
|
523
|
+
c.value || m.value ? (n(), V("div", {
|
529
524
|
key: 1,
|
530
525
|
class: te(["flex items-center gap-3", c.value && c.value.last_page === 1 ? "justify-end" : ""])
|
531
526
|
}, [
|
532
|
-
c.value && !
|
527
|
+
c.value && !g.value ? (n(), B(b(He), {
|
533
528
|
key: 0,
|
534
|
-
modelValue:
|
529
|
+
modelValue: M.value,
|
535
530
|
"onUpdate:modelValue": [
|
536
|
-
e[10] || (e[10] = (s) =>
|
531
|
+
e[10] || (e[10] = (s) => M.value = s),
|
537
532
|
Ke
|
538
533
|
],
|
539
534
|
class: "justify-center",
|
540
535
|
"max-page": c.value.last_page,
|
541
536
|
strategy: c.value.strategy,
|
542
537
|
"total-visible": "5"
|
543
|
-
}, null, 8, ["modelValue", "max-page", "strategy"])) :
|
544
|
-
|
545
|
-
|
546
|
-
disabled: !
|
547
|
-
onClick: e[11] || (e[11] = (s) =>
|
538
|
+
}, null, 8, ["modelValue", "max-page", "strategy"])) : x("", !0),
|
539
|
+
m.value ? (n(), V("div", vl, [
|
540
|
+
I(b(xe), {
|
541
|
+
disabled: !m.value.prev,
|
542
|
+
onClick: e[11] || (e[11] = (s) => m.value.prev ? A(null, !1, m.value.prev) : null)
|
548
543
|
}, null, 8, ["disabled"]),
|
549
|
-
|
550
|
-
disabled: !
|
544
|
+
I(b(xe), {
|
545
|
+
disabled: !m.value.next,
|
551
546
|
"is-next": "",
|
552
|
-
onClick: e[12] || (e[12] = (s) =>
|
547
|
+
onClick: e[12] || (e[12] = (s) => m.value.next ? A(null, !1, m.value.next) : null)
|
553
548
|
}, null, 8, ["disabled"])
|
554
|
-
])) :
|
555
|
-
|
556
|
-
|
557
|
-
modelValue:
|
549
|
+
])) : x("", !0),
|
550
|
+
y.value ? x("", !0) : (n(), V("div", cl, [
|
551
|
+
I(b(We), {
|
552
|
+
modelValue: C.value,
|
558
553
|
"onUpdate:modelValue": [
|
559
|
-
e[13] || (e[13] = (s) =>
|
560
|
-
e[14] || (e[14] = (s) =>
|
554
|
+
e[13] || (e[13] = (s) => C.value = s),
|
555
|
+
e[14] || (e[14] = (s) => A(null))
|
561
556
|
],
|
562
557
|
label: "Item per page",
|
563
558
|
"is-inline-label": "",
|
@@ -565,7 +560,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
565
560
|
options: Ae.value
|
566
561
|
}, null, 8, ["modelValue", "options"])
|
567
562
|
]))
|
568
|
-
], 2)) :
|
563
|
+
], 2)) : x("", !0)
|
569
564
|
]);
|
570
565
|
};
|
571
566
|
}
|