@orchidui/core 1.1.31-1 → 1.1.31-11
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/Section/OcSection.js +4 -0
- package/dist/Elements/Sidebar/OcSidebar.js +8 -2
- package/dist/Elements/SubSidebar/OcSubSidebar.js +1 -1
- package/dist/Elements/VerificationOption/OcVerificationOption.js +2 -2
- package/dist/Feedback/Banner/OcBanner.js +1 -1
- package/dist/Feedback/Chip/OcChip.js +1 -1
- package/dist/Feedback/ShareIcon/OcShareIcon.js +1 -1
- package/dist/Feedback/Snackbar/OcSnackbar.js +1 -1
- package/dist/Form/BaseInput/OcBaseInput.js +1 -1
- package/dist/Form/Button/OcButton.js +1 -1
- package/dist/Form/Calendar/OcCalendar.js +1 -1
- package/dist/Form/CardInput/OcCardInput.js +1 -1
- package/dist/Form/Checkbox/OcCheckbox.js +1 -1
- package/dist/Form/CheckboxesGroup/OcCheckboxesGroup.js +1 -1
- package/dist/Form/Criteria/OcCriteria.js +1 -1
- package/dist/Form/Cropper/OcCropper.js +1 -1
- package/dist/Form/DatePicker/OcDatePicker.js +1 -1
- package/dist/Form/EmojiPicker/OcEmojiPicker.js +1 -1
- package/dist/Form/Input/OcInput.js +1 -1
- package/dist/Form/LinkInput/OcLinkInput.js +1 -1
- package/dist/Form/MultipleUploadFile/OcMultipleUploadFile.js +1 -1
- package/dist/Form/NumberInput/OcNumberInput.js +1 -1
- package/dist/Form/PhoneInput/OcPhoneInput.js +1 -1
- package/dist/Form/Radio/OcRadio.js +1 -1
- package/dist/Form/RadioGroup/OcRadioGroup.js +1 -1
- package/dist/Form/RangeInput/OcRangeInput.js +1 -1
- package/dist/Form/SectionItem/OcSectionItem.js +1 -1
- package/dist/Form/Select/OcSelect.js +1 -1
- package/dist/Form/SelectOptions/OcSelectOptions.js +1 -1
- package/dist/Form/SingleFileUpload/OcSingleFileUpload.js +1 -1
- package/dist/Form/TextArea/OcTextArea.js +1 -1
- package/dist/Form/index.js +1 -1
- package/dist/FormBuilder/OcFormBuilder.js +1 -1
- package/dist/{OcComplexCalendar-CRxZRgXL.js → OcComplexCalendar-D-f2cVHd.js} +1 -1
- package/dist/{OcComplexDatePicker-ygWCP_HO.js → OcComplexDatePicker-wGLnp95B.js} +1 -1
- package/dist/{OcCropper-C7I3eum0.js → OcCropper-C6dkCJjQ.js} +11 -11
- package/dist/{OcDataTable-f95yna1x.js → OcDataTable-B1vTfdW6.js} +140 -140
- package/dist/{OcDraggableList-DJYSUMpk.js → OcDraggableList-CH-sbKza.js} +10 -10
- package/dist/{OcEmojiPicker-BTyUDcdI.js → OcEmojiPicker-CX4eHkbo.js} +1 -1
- package/dist/{OcFilterForm-elPkLKgv.js → OcFilterForm-CrIujdBm.js} +1 -1
- package/dist/{OcFilterSearch-CuMVMktV.js → OcFilterSearch-DjU-gZ9c.js} +9 -9
- package/dist/{OcFilterSearchFor-DZG90Ocr.js → OcFilterSearchFor-CeG30AA1.js} +9 -9
- package/dist/{OcModalCropper-CKawRd2-.js → OcModalCropper-CnruV2iZ.js} +2 -2
- package/dist/OcSection-D_vO-DAP.js +26 -0
- package/dist/{OcTimePicker-ChYX2WuT.js → OcTimePicker-CVV9nBuL.js} +1 -1
- package/dist/Overlay/ConfirmationModal/OcConfirmationModal.js +1 -1
- package/dist/Overlay/CopyTooltip/OcCopyTooltip.js +2 -2
- 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-55Xf4T-i.js → SubPlanCard-DgUEigSH.js} +1 -1
- package/dist/{ThumbnailSection-BsyAk_SY.js → ThumbnailSection-DNM_UlaJ.js} +1 -1
- package/dist/{ThumbnailTheme-D7ExOrMp.js → ThumbnailTheme-B_PgB9RJ.js} +1 -1
- package/dist/{index-CKnlrI6g.js → index-XisW1rcl.js} +3297 -3067
- package/dist/index.js +122 -114
- package/dist/style.css +1 -1
- package/package.json +1 -1
@@ -1,5 +1,5 @@
|
|
1
|
-
import { ref as A, onMounted as Ve, openBlock as i, createBlock as K, unref as y, withCtx as $, createElementVNode as
|
2
|
-
import {
|
1
|
+
import { ref as A, onMounted as Ve, openBlock as i, createBlock as K, unref as y, withCtx as $, createElementVNode as R, createElementBlock as h, createVNode as B, mergeProps as ge, Fragment as ee, renderList as ae, normalizeClass as te, toDisplayString as be, createCommentVNode as k, computed as j, createSlots as Qe, renderSlot as C, normalizeProps as ke, guardReactiveProps as xe } from "vue";
|
2
|
+
import { ay as Fe, b as Re, B as Ee, L as Je, Y as _e, aJ as ze, aK as He, aL as Ge, I as We, J as he, k as Xe } from "./index-XisW1rcl.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 Ze, setInLocalStorage as $e } from "./DataTable/utils/editColumnsUtils.js";
|
@@ -28,13 +28,13 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
28
28
|
},
|
29
29
|
emits: ["change-active", "onMoved", "update-order"],
|
30
30
|
setup(D, { emit: Z }) {
|
31
|
-
const
|
31
|
+
const v = Z, F = D, c = A([]), f = A([]), I = A(!1), S = (a = !1) => {
|
32
32
|
f.value = f.value.map((p) => ({
|
33
33
|
...p,
|
34
34
|
isActive: !0
|
35
|
-
})),
|
35
|
+
})), v("update-order", {
|
36
36
|
fixedHeaders: f.value,
|
37
|
-
activeHeaders:
|
37
|
+
activeHeaders: c.value,
|
38
38
|
isOnMount: a
|
39
39
|
});
|
40
40
|
}, W = {
|
@@ -48,35 +48,35 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
48
48
|
};
|
49
49
|
return Ve(() => {
|
50
50
|
const a = se(F.localKey), { fixed: p, active: m } = Oe(a, F.headers, F.localKey);
|
51
|
-
f.value = p || F.headers.slice(0, 1),
|
52
|
-
var V,
|
51
|
+
f.value = p || F.headers.slice(0, 1), c.value = m || F.headers.slice(1).map((x) => {
|
52
|
+
var V, Y, L;
|
53
53
|
return {
|
54
|
-
...
|
55
|
-
isActive: ((
|
54
|
+
...x,
|
55
|
+
isActive: ((L = (Y = (V = F.options) == null ? void 0 : V.active) == null ? void 0 : Y.find((X) => X.key === x.key)) == null ? void 0 : L.isActive) ?? !0
|
56
56
|
};
|
57
57
|
}), S(!0);
|
58
58
|
}), (a, p) => (i(), K(y(Fe), {
|
59
|
-
modelValue:
|
60
|
-
"onUpdate:modelValue": p[3] || (p[3] = (m) =>
|
59
|
+
modelValue: I.value,
|
60
|
+
"onUpdate:modelValue": p[3] || (p[3] = (m) => I.value = m),
|
61
61
|
class: "h-[36px]",
|
62
62
|
"is-attach-to-body": ""
|
63
63
|
}, {
|
64
64
|
menu: $(() => [
|
65
|
-
|
66
|
-
f.value.length ? (i(),
|
67
|
-
p[4] || (p[4] =
|
68
|
-
|
65
|
+
R("div", el, [
|
66
|
+
f.value.length ? (i(), h("div", ll, [
|
67
|
+
p[4] || (p[4] = R("span", { class: "text-oc-text-400 font-medium" }, "Fixed columns", -1)),
|
68
|
+
B(y(we), ge({
|
69
69
|
key: "key",
|
70
70
|
modelValue: f.value,
|
71
71
|
"onUpdate:modelValue": p[0] || (p[0] = (m) => f.value = m)
|
72
72
|
}, W), {
|
73
73
|
default: $(() => [
|
74
|
-
(i(!0),
|
74
|
+
(i(!0), h(ee, null, ae(f.value, (m, x) => (i(), h("div", {
|
75
75
|
key: m.key,
|
76
|
-
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
|
+
R("span", null, be(m.label), 1),
|
79
|
+
x ? (i(), K(y(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
|
])) : k("", !0),
|
91
|
-
|
92
|
-
p[5] || (p[5] =
|
93
|
-
|
91
|
+
R("div", al, [
|
92
|
+
p[5] || (p[5] = R("span", { class: "text-oc-text-400 font-medium" }, "Active columns", -1)),
|
93
|
+
B(y(we), ge({
|
94
94
|
key: "key",
|
95
|
-
modelValue:
|
96
|
-
"onUpdate:modelValue": p[2] || (p[2] = (m) =>
|
95
|
+
modelValue: c.value,
|
96
|
+
"onUpdate:modelValue": p[2] || (p[2] = (m) => c.value = m)
|
97
97
|
}, W, { "data-active-headers": "true" }), {
|
98
98
|
default: $(() => [
|
99
|
-
(i(!0),
|
99
|
+
(i(!0), h(ee, null, ae(c.value, (m) => (i(), h(ee, {
|
100
100
|
key: m.key
|
101
101
|
}, [
|
102
|
-
m.key !== "actions" ? (i(),
|
103
|
-
|
104
|
-
|
102
|
+
m.key !== "actions" ? (i(), h("div", tl, [
|
103
|
+
R("div", sl, [
|
104
|
+
B(y(Re), {
|
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) => S())
|
109
109
|
],
|
110
110
|
class: "!w-fit"
|
111
111
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
112
|
-
|
112
|
+
R("div", ol, be(m.label), 1)
|
113
113
|
]),
|
114
|
-
|
114
|
+
c.value.length > 1 ? (i(), K(y(Se), {
|
115
115
|
key: 0,
|
116
116
|
width: "18",
|
117
117
|
height: "18",
|
@@ -127,7 +127,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
127
127
|
])
|
128
128
|
]),
|
129
129
|
default: $(() => [
|
130
|
-
|
130
|
+
B(y(Ee), {
|
131
131
|
label: "Edit Column",
|
132
132
|
"left-icon": "setting",
|
133
133
|
variant: "secondary"
|
@@ -190,36 +190,36 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
190
190
|
},
|
191
191
|
setup(D, { emit: Z }) {
|
192
192
|
var re, ie, ne, de, ve, ce, fe, pe, me;
|
193
|
-
const
|
193
|
+
const v = D, F = Z, c = j(() => {
|
194
194
|
var l;
|
195
|
-
return (l =
|
195
|
+
return (l = v.options) == null ? void 0 : l.pagination;
|
196
196
|
}), f = j(() => {
|
197
197
|
var l;
|
198
|
-
return (l =
|
199
|
-
}),
|
198
|
+
return (l = v.options) == null ? void 0 : l.cursor;
|
199
|
+
}), I = A(), S = j(() => {
|
200
200
|
var l;
|
201
|
-
return (l =
|
201
|
+
return (l = v.options) == null ? void 0 : l.tableOptions;
|
202
202
|
}), W = j(() => {
|
203
203
|
var l;
|
204
204
|
return {
|
205
205
|
...S.value,
|
206
|
-
headers:
|
206
|
+
headers: I.value ? I.value.filter((e) => ue(e.key)) : (l = S.value) == null ? void 0 : l.headers.filter((e) => ue(e.key))
|
207
207
|
};
|
208
208
|
}), a = j(() => {
|
209
209
|
var l;
|
210
|
-
return (l =
|
210
|
+
return (l = v.options) == null ? void 0 : l.filterOptions;
|
211
211
|
}), p = j(() => {
|
212
212
|
var l;
|
213
|
-
return (l =
|
213
|
+
return (l = v.options) == null ? void 0 : l.hidePerPageDropdown;
|
214
214
|
}), m = j(() => {
|
215
215
|
var l;
|
216
|
-
return ((l =
|
217
|
-
}),
|
218
|
-
(de = (ne = a.value) == null ? void 0 : ne.per_page) != null && de.key ?
|
219
|
-
), X = ((me =
|
216
|
+
return ((l = c.value) == null ? void 0 : l.last_page) === 1;
|
217
|
+
}), x = A(!1), V = A(v.filter[(ie = (re = a.value) == null ? void 0 : re.tabs) == null ? void 0 : ie.key]), Y = A(v.filter.page), L = A(
|
218
|
+
(de = (ne = a.value) == null ? void 0 : ne.per_page) != null && de.key ? v.filter[(ce = (ve = a.value) == null ? void 0 : ve.per_page) == null ? void 0 : ce.key] : v.filter.per_page
|
219
|
+
), X = ((me = v.filter[(pe = (fe = a.value) == null ? void 0 : fe.search) == null ? void 0 : pe.key]) == null ? void 0 : me.trim()) ?? "", T = A(X ? X.split(",") : []), oe = A(!1), je = j(
|
220
220
|
() => {
|
221
221
|
var l, e;
|
222
|
-
return (e = (l =
|
222
|
+
return (e = (l = v.options) == null ? void 0 : l.perPageOptions) == null ? void 0 : e.map(
|
223
223
|
(o) => ({
|
224
224
|
label: `${o}`,
|
225
225
|
value: o
|
@@ -261,32 +261,32 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
261
261
|
value: 99
|
262
262
|
}
|
263
263
|
], e = je.value ?? l;
|
264
|
-
if (
|
265
|
-
const o =
|
264
|
+
if (c.value) {
|
265
|
+
const o = c.value.total < 100 ? c.value.total : 100;
|
266
266
|
o > 10 && (e = e.filter((u) => u.value <= o));
|
267
267
|
}
|
268
268
|
return [...new Set(e)];
|
269
269
|
}), De = j(() => {
|
270
270
|
var l;
|
271
|
-
return ((l =
|
272
|
-
}),
|
273
|
-
!l.trim() ||
|
274
|
-
},
|
275
|
-
|
276
|
-
},
|
277
|
-
!
|
278
|
-
const s = A(
|
279
|
-
var e, o, u,
|
280
|
-
|
271
|
+
return ((l = v.selected) == null ? void 0 : l.length) > 0;
|
272
|
+
}), Le = (l) => {
|
273
|
+
!l.trim() || T.value.includes(l) || (T.value = [l], E(), F("search-query-changed", l));
|
274
|
+
}, Pe = (l) => {
|
275
|
+
T.value = T.value.filter((e) => e !== l), E();
|
276
|
+
}, q = v.filter;
|
277
|
+
!q && c ? q.page = 1 : !q && f && (q.cursor = "");
|
278
|
+
const s = A(q), Ce = () => {
|
279
|
+
var e, o, u, d, n, t, g, w;
|
280
|
+
T.value = [], V.value = "";
|
281
281
|
const l = {};
|
282
|
-
a.value ?
|
282
|
+
a.value ? q.page = 1 : q.cursor = "", (o = (e = a.value) == null ? void 0 : e.per_page) != null && o.key ? l[(d = (u = a.value) == null ? void 0 : u.per_page) == null ? void 0 : d.key] = L.value : l.per_page = L.value, (t = (n = a.value) == null ? void 0 : n.tabs) != null && t.key ? l[(w = (g = a.value) == null ? void 0 : g.tabs) == null ? void 0 : w.key] = V.value : l.tabs = V.value, s.value = l, E();
|
283
283
|
}, Ke = () => {
|
284
|
-
E(null,
|
284
|
+
E(null, Y.value);
|
285
285
|
}, Ye = () => {
|
286
|
-
|
287
|
-
}, Ue = () =>
|
288
|
-
var u,
|
289
|
-
|
286
|
+
v.id && $e(v.id, JSON.stringify(s.value));
|
287
|
+
}, Ue = () => v.id ? se(v.id) : null, E = (l = null, e = !1, o = "") => {
|
288
|
+
var u, d, n;
|
289
|
+
c.value && !e && (Y.value = 1), c.value ? s.value.page = Y.value : s.value.cursor = o, (u = a.value) != null && u.per_page ? s.value[a.value.per_page.key] = L.value : s.value.per_page = L.value, (d = a.value) != null && d.tabs && (s.value[a.value.tabs.key] = V.value), (n = a.value) != null && n.search && (s.value[a.value.search.key] = T.value.join()), l && (x.value = !1, s.value = { ...s.value, ...l }, Object.keys(s.value).forEach((t) => {
|
290
290
|
Array.isArray(s.value[t]) && s.value[t].length === 0 && delete s.value[t];
|
291
291
|
})), Ye(), F("update:filter", s.value);
|
292
292
|
}, Be = (l, e) => {
|
@@ -300,37 +300,37 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
300
300
|
if (s.value) {
|
301
301
|
let l = [];
|
302
302
|
return Object.keys(s.value).forEach((e) => {
|
303
|
-
var
|
304
|
-
let o = (t = (
|
305
|
-
const u = (w = (g = a.value) == null ? void 0 : g.search) == null ? void 0 : w.key,
|
306
|
-
if ((
|
303
|
+
var n, t, g, w, Q, M, J, _, z, H, G;
|
304
|
+
let o = (t = (n = a.value) == null ? void 0 : n.tabs) == null ? void 0 : t.key;
|
305
|
+
const u = (w = (g = a.value) == null ? void 0 : g.search) == null ? void 0 : w.key, d = ((M = (Q = a.value) == null ? void 0 : Q.per_page) == null ? void 0 : M.key) ?? "per_page";
|
306
|
+
if ((J = a.value.form) == null || J.find((b) => {
|
307
307
|
b.name === o && (o = "");
|
308
|
-
}), e !== "page" && e !== "cursor" && e !==
|
309
|
-
let b = null, r = (
|
310
|
-
if (typeof
|
311
|
-
let
|
312
|
-
return
|
313
|
-
|
314
|
-
}),
|
308
|
+
}), e !== "page" && e !== "cursor" && e !== d && e !== o && e !== u) {
|
309
|
+
let b = null, r = (_ = a.value.form) == null ? void 0 : _.find((U) => {
|
310
|
+
if (typeof U.name == "object") {
|
311
|
+
let P = !1;
|
312
|
+
return U.name.forEach((N) => {
|
313
|
+
N.key === e && (P = !0, b = Me(U.name));
|
314
|
+
}), P;
|
315
315
|
} else
|
316
|
-
return
|
316
|
+
return U.name === e;
|
317
317
|
}), O = "";
|
318
318
|
if (r && s.value[e]) {
|
319
|
-
if (typeof r.name == "object" ? (z = r.name) == null || z.forEach((
|
320
|
-
O && (O += " - "), O += s.value[
|
319
|
+
if (typeof r.name == "object" ? (z = r.name) == null || z.forEach((P) => {
|
320
|
+
O && (O += " - "), O += s.value[P.key];
|
321
321
|
}) : O = s.value[e], r.props.options && (O = (r.props.multiple ? s.value[e] : [s.value[e]]).map(
|
322
|
-
(
|
322
|
+
(N) => {
|
323
323
|
var ye;
|
324
|
-
return (ye = r.props.options.find(({ value:
|
324
|
+
return (ye = r.props.options.find(({ value: qe }) => qe === N)) == null ? void 0 : ye.label;
|
325
325
|
}
|
326
326
|
).join(", ")), r.type === "RangeInput" && Array.isArray(s.value[e]) && (O = s.value[e][0].toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") + " - " + s.value[e][1].toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",")), r.type === "DatePicker")
|
327
327
|
if (((H = r == null ? void 0 : r.props) == null ? void 0 : H.type) === "range" && r.name && r.name[1]) {
|
328
|
-
const
|
329
|
-
O =
|
328
|
+
const P = le(s.value[r.name[0].key]).format("MM/DD/YYYY"), N = le(s.value[r.name[1].key]).format("MM/DD/YYYY");
|
329
|
+
O = P === N ? P : P + " - " + N;
|
330
330
|
} else O = le(s.value[r.name]).format("MM/DD/YYYY");
|
331
|
-
let
|
332
|
-
r && r.name && typeof r.name == "object" && l.find((
|
333
|
-
label:
|
331
|
+
let U = `${(G = r == null ? void 0 : r.props) == null ? void 0 : G.label} : ${O}`;
|
332
|
+
r && r.name && typeof r.name == "object" && l.find((N) => N.name === b[0]) && (U = ""), l.push({
|
333
|
+
label: U,
|
334
334
|
name: e,
|
335
335
|
multiNames: b
|
336
336
|
});
|
@@ -340,16 +340,16 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
340
340
|
}
|
341
341
|
return [];
|
342
342
|
}), ue = (l) => {
|
343
|
-
var e, o, u,
|
344
|
-
return ((t = (
|
343
|
+
var e, o, u, d, n, t;
|
344
|
+
return ((t = (n = (d = (u = s.value) == null ? void 0 : u[(o = (e = a.value) == null ? void 0 : e.columnEdit) == null ? void 0 : o.key]) == null ? void 0 : d.active) == null ? void 0 : n.find((g) => g.key === l)) == null ? void 0 : t.isActive) ?? !0;
|
345
345
|
}, Ie = ({ fixedHeaders: l, activeHeaders: e, isOnMount: o }) => {
|
346
|
-
var u,
|
347
|
-
if (s.value[(
|
346
|
+
var u, d, n, t;
|
347
|
+
if (s.value[(d = (u = a.value) == null ? void 0 : u.columnEdit) == null ? void 0 : d.key].fixed = l, s.value[(t = (n = a.value) == null ? void 0 : n.columnEdit) == null ? void 0 : t.key].active = e, I.value = [...l, ...e], !o) {
|
348
348
|
const g = Ze(l, e);
|
349
349
|
$e(a.value.columnEdit.localStorageKey, g);
|
350
350
|
}
|
351
351
|
}, Te = () => {
|
352
|
-
var l, e, o, u,
|
352
|
+
var l, e, o, u, d, n;
|
353
353
|
if ((e = (l = a.value) == null ? void 0 : l.columnEdit) != null && e.localStorageKey) {
|
354
354
|
const t = se(a.value.columnEdit.localStorageKey);
|
355
355
|
if (t) {
|
@@ -358,25 +358,25 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
358
358
|
S.value.headers,
|
359
359
|
a.value.columnEdit.localStorageKey
|
360
360
|
);
|
361
|
-
s.value[(u = (o = a.value) == null ? void 0 : o.columnEdit) == null ? void 0 : u.key].fixed = g, s.value[(
|
361
|
+
s.value[(u = (o = a.value) == null ? void 0 : o.columnEdit) == null ? void 0 : u.key].fixed = g, s.value[(n = (d = a.value) == null ? void 0 : d.columnEdit) == null ? void 0 : n.key].active = w, I.value = [...g, ...w];
|
362
362
|
}
|
363
363
|
}
|
364
364
|
};
|
365
365
|
return Ve(() => {
|
366
|
-
var e, o, u, n;
|
366
|
+
var e, o, u, d, n;
|
367
367
|
Te();
|
368
368
|
const l = Ue();
|
369
|
-
l && (s.value = JSON.parse(l), V.value = V.value || ((e = s.value) == null ? void 0 : e.tabs) || ((
|
369
|
+
l && (s.value = JSON.parse(l), V.value = V.value || ((e = s.value) == null ? void 0 : e.tabs) || ((d = s.value) == null ? void 0 : d[(u = (o = a.value) == null ? void 0 : o.tabs) == null ? void 0 : u.key]), Y.value = ((n = s.value) == null ? void 0 : n.page) || 1, E(null, !0, s.value.cursor));
|
370
370
|
}), (l, e) => {
|
371
|
-
var o, u,
|
372
|
-
return i(),
|
373
|
-
S.value ? (i(), K(y(
|
371
|
+
var o, u, d, n;
|
372
|
+
return i(), h("div", rl, [
|
373
|
+
S.value ? (i(), K(y(Je), {
|
374
374
|
key: 0,
|
375
375
|
selected: D.selected,
|
376
376
|
"row-key": D.rowKey,
|
377
377
|
options: W.value,
|
378
378
|
"is-loading": D.isLoading,
|
379
|
-
"loading-rows":
|
379
|
+
"loading-rows": L.value,
|
380
380
|
"row-class": D.rowClass,
|
381
381
|
"row-link": D.rowLink,
|
382
382
|
"is-sticky": S.value.isSticky,
|
@@ -384,7 +384,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
384
384
|
"onUpdate:selected": e[7] || (e[7] = (t) => l.$emit("update:selected", t)),
|
385
385
|
"onClick:row": e[8] || (e[8] = (t) => l.$emit("click:row", t)),
|
386
386
|
"onHover:cell": e[9] || (e[9] = (t) => l.$emit("hover:cell", t))
|
387
|
-
},
|
387
|
+
}, Qe({
|
388
388
|
after: $(() => [
|
389
389
|
C(l.$slots, "after")
|
390
390
|
]),
|
@@ -392,38 +392,38 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
392
392
|
C(l.$slots, "empty")
|
393
393
|
]),
|
394
394
|
"table-header": $((t) => [
|
395
|
-
C(l.$slots, "table-header", ke(
|
395
|
+
C(l.$slots, "table-header", ke(xe(t)))
|
396
396
|
]),
|
397
397
|
"table-body": $((t) => [
|
398
|
-
C(l.$slots, "table-body", ke(
|
398
|
+
C(l.$slots, "table-body", ke(xe(t)))
|
399
399
|
]),
|
400
400
|
_: 2
|
401
401
|
}, [
|
402
|
-
l.$slots.before || (o = a.value) != null && o.search || (u = a.value) != null && u.form || (
|
402
|
+
l.$slots.before || (o = a.value) != null && o.search || (u = a.value) != null && u.form || (d = a.value) != null && d.tabs ? {
|
403
403
|
name: "before",
|
404
404
|
fn: $(() => {
|
405
|
-
var t, g, w,
|
405
|
+
var t, g, w, Q;
|
406
406
|
return [
|
407
407
|
C(l.$slots, "before"),
|
408
|
-
(t = a.value) != null && t.search || (g = a.value) != null && g.form || (w = a.value) != null && w.tabs ? (i(),
|
409
|
-
De.value ? (i(),
|
408
|
+
(t = a.value) != null && t.search || (g = a.value) != null && g.form || (w = a.value) != null && w.tabs ? (i(), h("div", il, [
|
409
|
+
De.value ? (i(), h("div", nl, [
|
410
410
|
C(l.$slots, "bulk-actions", { selectedRows: D.selected })
|
411
|
-
])) : (i(),
|
412
|
-
(
|
411
|
+
])) : (i(), h("div", dl, [
|
412
|
+
(Q = a.value) != null && Q.tabs ? (i(), K(y(_e), {
|
413
413
|
key: 0,
|
414
414
|
modelValue: V.value,
|
415
415
|
"onUpdate:modelValue": [
|
416
|
-
e[0] || (e[0] = (
|
417
|
-
e[1] || (e[1] = (
|
416
|
+
e[0] || (e[0] = (M) => V.value = M),
|
417
|
+
e[1] || (e[1] = (M) => E(null))
|
418
418
|
],
|
419
419
|
tabs: a.value.tabs.options,
|
420
420
|
variant: "pills"
|
421
421
|
}, null, 8, ["modelValue", "tabs"])) : k("", !0)
|
422
422
|
])),
|
423
423
|
C(l.$slots, "filter-options", {}, () => {
|
424
|
-
var
|
424
|
+
var M, J, _, z, H, G;
|
425
425
|
return [
|
426
|
-
(
|
426
|
+
(M = a.value) != null && M.search || (J = a.value) != null && J.form || (_ = a.value) != null && _.columnEdit ? (i(), h("div", {
|
427
427
|
key: 0,
|
428
428
|
class: te([
|
429
429
|
"flex gap-3 absolute ml-auto bg-oc-bg-light right-4 max-w-[calc(100%-24px)]",
|
@@ -433,43 +433,43 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
433
433
|
(z = a.value) != null && z.search ? (i(), K(y(ze), {
|
434
434
|
key: 0,
|
435
435
|
"is-search-only": !a.value.tabs || a.value.isSearchOnly,
|
436
|
-
onAddQuery:
|
436
|
+
onAddQuery: Le,
|
437
437
|
onToggle: e[2] || (e[2] = (b) => oe.value = b)
|
438
438
|
}, null, 8, ["is-search-only"])) : k("", !0),
|
439
439
|
(H = a.value) != null && H.form ? (i(), K(y(Fe), {
|
440
440
|
key: 1,
|
441
|
-
modelValue:
|
442
|
-
"onUpdate:modelValue": e[6] || (e[6] = (b) =>
|
441
|
+
modelValue: x.value,
|
442
|
+
"onUpdate:modelValue": e[6] || (e[6] = (b) => x.value = b),
|
443
443
|
distance: 9,
|
444
444
|
placement: "bottom-end",
|
445
445
|
"is-attach-to-body": ""
|
446
446
|
}, {
|
447
447
|
menu: $(() => [
|
448
|
-
|
448
|
+
x.value ? (i(), K(y(He), {
|
449
449
|
key: 0,
|
450
450
|
id: D.id,
|
451
451
|
"json-form": a.value.form ?? [],
|
452
452
|
grid: a.value.grid ?? null,
|
453
|
-
values:
|
453
|
+
values: v.filter,
|
454
454
|
actions: a.value.actions,
|
455
455
|
onApplyFilter: e[3] || (e[3] = (b) => E(b)),
|
456
456
|
onFilterFieldsChanged: e[4] || (e[4] = (b) => F("filter-fields-changed", b)),
|
457
|
-
onCancel: e[5] || (e[5] = (b) =>
|
457
|
+
onCancel: e[5] || (e[5] = (b) => x.value = !1)
|
458
458
|
}, {
|
459
|
-
default: $(({ errors: b, values: r, jsonForm: O, updateForm:
|
459
|
+
default: $(({ errors: b, values: r, jsonForm: O, updateForm: U }) => [
|
460
460
|
C(l.$slots, "custom-filter-form", {
|
461
461
|
errors: b,
|
462
462
|
values: r,
|
463
463
|
jsonForm: O,
|
464
|
-
updateFilter:
|
464
|
+
updateFilter: U
|
465
465
|
})
|
466
466
|
]),
|
467
467
|
_: 3
|
468
468
|
}, 8, ["id", "json-form", "grid", "values", "actions"])) : k("", !0)
|
469
469
|
]),
|
470
470
|
default: $(() => [
|
471
|
-
|
472
|
-
"is-active":
|
471
|
+
B(y(Ee), {
|
472
|
+
"is-active": x.value,
|
473
473
|
variant: "secondary",
|
474
474
|
"left-icon": "filter"
|
475
475
|
}, null, 8, ["is-active"])
|
@@ -487,11 +487,11 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
487
487
|
];
|
488
488
|
})
|
489
489
|
])) : k("", !0),
|
490
|
-
|
490
|
+
B(y(Ge), {
|
491
491
|
filters: Ne.value,
|
492
|
-
queries:
|
492
|
+
queries: T.value,
|
493
493
|
class: "border-t border-oc-gray-200",
|
494
|
-
onRemoveQuery:
|
494
|
+
onRemoveQuery: Pe,
|
495
495
|
onRemoveAll: Ce,
|
496
496
|
onRemoveFilter: Be
|
497
497
|
}, null, 8, ["filters", "queries"])
|
@@ -499,49 +499,49 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
499
499
|
}),
|
500
500
|
key: "0"
|
501
501
|
} : void 0,
|
502
|
-
ae((
|
502
|
+
ae((n = S.value) == null ? void 0 : n.headers, (t, g) => ({
|
503
503
|
name: t.key,
|
504
|
-
fn: $(({ data: w, item:
|
504
|
+
fn: $(({ data: w, item: Q }) => [
|
505
505
|
C(l.$slots, t.key, {
|
506
506
|
data: w,
|
507
|
-
item:
|
507
|
+
item: Q
|
508
508
|
})
|
509
509
|
])
|
510
510
|
}))
|
511
511
|
]), 1032, ["selected", "row-key", "options", "is-loading", "loading-rows", "row-class", "row-link", "is-sticky", "is-borderless"])) : k("", !0),
|
512
512
|
C(l.$slots, "before-pagination"),
|
513
|
-
|
513
|
+
c.value || f.value ? (i(), h("div", {
|
514
514
|
key: 1,
|
515
|
-
class: te(["flex gap-3 items-center",
|
515
|
+
class: te(["flex gap-3 items-center", c.value && c.value.last_page === 1 ? "justify-end" : ""])
|
516
516
|
}, [
|
517
|
-
|
517
|
+
c.value && !m.value ? (i(), K(y(We), {
|
518
518
|
key: 0,
|
519
|
-
modelValue:
|
519
|
+
modelValue: Y.value,
|
520
520
|
"onUpdate:modelValue": [
|
521
|
-
e[10] || (e[10] = (t) =>
|
521
|
+
e[10] || (e[10] = (t) => Y.value = t),
|
522
522
|
Ke
|
523
523
|
],
|
524
524
|
class: "justify-center",
|
525
|
-
"max-page":
|
526
|
-
strategy:
|
525
|
+
"max-page": c.value.last_page,
|
526
|
+
strategy: c.value.strategy,
|
527
527
|
"total-visible": "5"
|
528
528
|
}, null, 8, ["modelValue", "max-page", "strategy"])) : k("", !0),
|
529
|
-
f.value ? (i(),
|
530
|
-
|
529
|
+
f.value ? (i(), h("div", vl, [
|
530
|
+
B(y(he), {
|
531
531
|
disabled: !f.value.prev,
|
532
532
|
onClick: e[11] || (e[11] = (t) => f.value.prev ? E(null, !1, f.value.prev) : null)
|
533
533
|
}, null, 8, ["disabled"]),
|
534
|
-
|
534
|
+
B(y(he), {
|
535
535
|
disabled: !f.value.next,
|
536
536
|
"is-next": "",
|
537
537
|
onClick: e[12] || (e[12] = (t) => f.value.next ? E(null, !1, f.value.next) : null)
|
538
538
|
}, null, 8, ["disabled"])
|
539
539
|
])) : k("", !0),
|
540
|
-
p.value ? k("", !0) : (i(),
|
541
|
-
|
542
|
-
modelValue:
|
540
|
+
p.value ? k("", !0) : (i(), h("div", cl, [
|
541
|
+
B(y(Xe), {
|
542
|
+
modelValue: L.value,
|
543
543
|
"onUpdate:modelValue": [
|
544
|
-
e[13] || (e[13] = (t) =>
|
544
|
+
e[13] || (e[13] = (t) => L.value = t),
|
545
545
|
e[14] || (e[14] = (t) => E(null))
|
546
546
|
],
|
547
547
|
label: "Item per page",
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { ref as p, openBlock as c, createBlock as y, unref as t, withCtx as n, createElementBlock as m, Fragment as K, renderList as C, normalizeClass as s, createElementVNode as o, createCommentVNode as b, renderSlot as u, toDisplayString as k, createVNode as f } from "vue";
|
2
|
-
import {
|
2
|
+
import { aH as $, aD as M, ay as S } from "./index-XisW1rcl.js";
|
3
3
|
import { _ as h } from "./OcIcon-CJgBICxh.js";
|
4
|
-
const
|
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" }, 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",
|
6
6
|
props: {
|
7
7
|
modelValue: Array,
|
@@ -88,13 +88,13 @@ const S = ["onMouseleave", "onMouseover", "onClick"], L = { class: "flex justify
|
|
88
88
|
rel: "noopener noreferrer",
|
89
89
|
class: "w-full flex items-center text-oc-text-300 mt-2"
|
90
90
|
}, [
|
91
|
-
f(t(
|
91
|
+
f(t(M), {
|
92
92
|
distance: "2",
|
93
93
|
position: "bottom-start",
|
94
94
|
"popper-class": "bg-oc-bg-light text-oc-text-500 p-4 rounded"
|
95
95
|
}, {
|
96
96
|
popper: n(() => [
|
97
|
-
o("div",
|
97
|
+
o("div", O, k(e[i.linkKey]), 1)
|
98
98
|
]),
|
99
99
|
default: n(() => [
|
100
100
|
f(t(h), {
|
@@ -106,15 +106,15 @@ const S = ["onMouseleave", "onMouseover", "onClick"], L = { class: "flex justify
|
|
106
106
|
]),
|
107
107
|
_: 2
|
108
108
|
}, 1024),
|
109
|
-
o("span",
|
110
|
-
], 8,
|
109
|
+
o("span", W, k(e[i.linkKey]), 1)
|
110
|
+
], 8, H)) : b("", !0)
|
111
111
|
])
|
112
112
|
])
|
113
113
|
]),
|
114
|
-
o("div",
|
114
|
+
o("div", j, [
|
115
115
|
u(l.$slots, "before-action", { item: e }),
|
116
116
|
u(l.$slots, "action", { item: e }, () => [
|
117
|
-
f(t(
|
117
|
+
f(t(S), {
|
118
118
|
modelValue: v.value[e.id],
|
119
119
|
"onUpdate:modelValue": (g) => v.value[e.id] = g,
|
120
120
|
placement: "bottom-end",
|
@@ -141,13 +141,13 @@ const S = ["onMouseleave", "onMouseover", "onClick"], L = { class: "flex justify
|
|
141
141
|
])
|
142
142
|
])
|
143
143
|
]),
|
144
|
-
o("div",
|
144
|
+
o("div", z, [
|
145
145
|
u(l.$slots, "content", {
|
146
146
|
item: e,
|
147
147
|
index: x
|
148
148
|
})
|
149
149
|
])
|
150
|
-
], 42,
|
150
|
+
], 42, B))), 128))
|
151
151
|
]),
|
152
152
|
_: 3
|
153
153
|
}, 8, ["model-value"]));
|
@@ -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 {
|
2
|
+
import { ay as U, e as J, B as b } from "./index-XisW1rcl.js";
|
3
3
|
import { EMOJI_LIST as a, EMOJI_CATEGORIES as P } from "./Form/EmojiPicker/conts/emoji.js";
|
4
4
|
import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
5
5
|
const F = { class: "flex items-center justify-center rounded bg-oc-bg-dark h-[140px] relative w-full z-50" }, G = ["innerHTML"], R = { class: "p-4 w-[340px]" }, q = { class: "bg-oc-bg-dark p-4 rounded flex items-center justify-center" }, K = ["innerHTML"], Q = { class: "pt-3 pb-4" }, W = ["id", "innerHTML", "onClick"], X = {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as r, computed as c, onMounted as B, openBlock as O, createElementBlock as k, renderSlot as w, createElementVNode as f, createVNode as u, unref as i } from "vue";
|
2
|
-
import { w as $, B as m } from "./index-
|
2
|
+
import { w as $, B as m } from "./index-XisW1rcl.js";
|
3
3
|
const C = { class: "flex w-[326px] flex-col gap-y-5" }, A = { class: "max-h-[500px] overflow-y-auto p-5" }, E = { class: "flex gap-x-5 px-5 pb-5" }, N = {
|
4
4
|
__name: "OcFilterForm",
|
5
5
|
props: {
|