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