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