@orchidui/core 1.1.31-2 → 1.1.31-21
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-D1rWf4we.js → OcComplexCalendar-IZxSZaJE.js} +1 -1
- package/dist/{OcComplexDatePicker-IY65Yb3W.js → OcComplexDatePicker-BqNJOntk.js} +1 -1
- package/dist/{OcCropper-Ozcbc9oS.js → OcCropper-NQFviRZ9.js} +11 -11
- package/dist/{OcDataTable-qsYLnYTP.js → OcDataTable-BhVihRqt.js} +145 -144
- package/dist/{OcDraggableList-BMMa_l-x.js → OcDraggableList-B4G4Du8y.js} +10 -10
- package/dist/{OcEmojiPicker-BJPcCdTO.js → OcEmojiPicker-COccMmO7.js} +1 -1
- package/dist/{OcFilterForm-BJJiBrBO.js → OcFilterForm-DUo-zrCQ.js} +1 -1
- package/dist/{OcFilterSearch-DSZHDIEK.js → OcFilterSearch-DT8EChx2.js} +1 -1
- package/dist/{OcFilterSearchFor-DHlpy8VY.js → OcFilterSearchFor-mpenxCnC.js} +9 -9
- package/dist/{OcModalCropper-C8ZOsHYG.js → OcModalCropper-ZCnkS6Up.js} +2 -2
- package/dist/OcSection-D_vO-DAP.js +26 -0
- package/dist/{OcTimePicker-D6NMTvxZ.js → OcTimePicker-BT2FAZMX.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-B8Wrl2Om.js → SubPlanCard-UYHBKfSo.js} +1 -1
- package/dist/{ThumbnailSection-CYESszhq.js → ThumbnailSection-Mme7E6Vl.js} +1 -1
- package/dist/{ThumbnailTheme-DxB6mbrd.js → ThumbnailTheme-CjhBY7kR.js} +1 -1
- package/dist/{index-CLrhZuPR.js → index-7vVFF8K-.js} +3283 -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
|
2
|
-
import {
|
1
|
+
import { ref as D, 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 A, 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 ze, aJ as _e, aK as He, aL as Ge, I as We, J as he, k as Xe } from "./index-7vVFF8K-.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";
|
@@ -10,7 +10,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
10
10
|
}, al = { class: "gap-y-2 flex flex-col" }, tl = {
|
11
11
|
key: 0,
|
12
12
|
class: "flex items-center bg-white justify-between h-[26px]"
|
13
|
-
}, sl = { class: "flex items-center w-full gap-x-3" }, ol = { class: "truncate w-full max-w-[160px]" },
|
13
|
+
}, sl = { class: "flex items-center w-full gap-x-3" }, ol = { class: "truncate w-full max-w-[160px]" }, ul = {
|
14
14
|
__name: "ColumnEdit",
|
15
15
|
props: {
|
16
16
|
options: {
|
@@ -27,14 +27,14 @@ 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
|
30
|
+
setup(F, { emit: Z }) {
|
31
|
+
const v = Z, E = F, c = D([]), f = D([]), I = D(!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 = {
|
@@ -47,12 +47,12 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
47
47
|
"onUpdate:modelValue": () => S()
|
48
48
|
};
|
49
49
|
return Ve(() => {
|
50
|
-
const a = se(
|
51
|
-
f.value = p ||
|
52
|
-
var V,
|
50
|
+
const a = se(E.localKey), { fixed: p, active: m } = Oe(a, E.headers, E.localKey);
|
51
|
+
f.value = p || E.headers.slice(0, 1), c.value = m || E.headers.slice(1).map((x) => {
|
52
|
+
var V, Y, L;
|
53
53
|
return {
|
54
54
|
...x,
|
55
|
-
isActive: ((
|
55
|
+
isActive: ((L = (Y = (V = E.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), {
|
@@ -65,7 +65,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
65
65
|
R("div", el, [
|
66
66
|
f.value.length ? (i(), h("div", ll, [
|
67
67
|
p[4] || (p[4] = R("span", { class: "text-oc-text-400 font-medium" }, "Fixed columns", -1)),
|
68
|
-
|
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)
|
@@ -90,18 +90,18 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
90
90
|
])) : k("", !0),
|
91
91
|
R("div", al, [
|
92
92
|
p[5] || (p[5] = R("span", { class: "text-oc-text-400 font-medium" }, "Active columns", -1)),
|
93
|
-
|
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), h(ee, null, ae(
|
99
|
+
(i(!0), h(ee, null, ae(c.value, (m) => (i(), h(ee, {
|
100
100
|
key: m.key
|
101
101
|
}, [
|
102
102
|
m.key !== "actions" ? (i(), h("div", tl, [
|
103
103
|
R("div", sl, [
|
104
|
-
|
104
|
+
B(y(Re), {
|
105
105
|
modelValue: m.isActive,
|
106
106
|
"onUpdate:modelValue": [
|
107
107
|
(x) => m.isActive = x,
|
@@ -111,7 +111,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
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"
|
@@ -136,7 +136,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
136
136
|
_: 1
|
137
137
|
}, 8, ["modelValue"]));
|
138
138
|
}
|
139
|
-
},
|
139
|
+
}, rl = { class: "flex flex-col gap-9 relative" }, il = {
|
140
140
|
key: 0,
|
141
141
|
class: "flex items-center px-4 min-h-[52px]"
|
142
142
|
}, nl = {
|
@@ -188,45 +188,45 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
188
188
|
"search-query-changed": [],
|
189
189
|
"hover:cell": []
|
190
190
|
},
|
191
|
-
setup(
|
192
|
-
var
|
193
|
-
const
|
191
|
+
setup(F, { emit: Z }) {
|
192
|
+
var re, ie, ne, de, ve, ce, fe, pe, me;
|
193
|
+
const v = F, E = Z, c = A(() => {
|
194
194
|
var l;
|
195
|
-
return (l =
|
196
|
-
}), f =
|
195
|
+
return (l = v.options) == null ? void 0 : l.pagination;
|
196
|
+
}), f = A(() => {
|
197
197
|
var l;
|
198
|
-
return (l =
|
199
|
-
}), I =
|
198
|
+
return (l = v.options) == null ? void 0 : l.cursor;
|
199
|
+
}), I = D(), S = A(() => {
|
200
200
|
var l;
|
201
|
-
return (l =
|
202
|
-
}), W =
|
201
|
+
return (l = v.options) == null ? void 0 : l.tableOptions;
|
202
|
+
}), W = A(() => {
|
203
203
|
var l;
|
204
204
|
return {
|
205
205
|
...S.value,
|
206
|
-
headers: I.value ? I.value.filter((e) =>
|
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
|
-
}), a =
|
208
|
+
}), a = A(() => {
|
209
209
|
var l;
|
210
|
-
return (l =
|
211
|
-
}), p =
|
210
|
+
return (l = v.options) == null ? void 0 : l.filterOptions;
|
211
|
+
}), p = A(() => {
|
212
212
|
var l;
|
213
|
-
return (l =
|
214
|
-
}), m =
|
213
|
+
return (l = v.options) == null ? void 0 : l.hidePerPageDropdown;
|
214
|
+
}), m = A(() => {
|
215
215
|
var l;
|
216
|
-
return ((l =
|
217
|
-
}), x =
|
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 = D(!1), V = D(v.filter[(ie = (re = a.value) == null ? void 0 : re.tabs) == null ? void 0 : ie.key]), Y = D(v.filter.page), L = D(
|
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 = D(X ? X.split(",") : []), oe = D(!1), je = A(
|
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
|
226
226
|
})
|
227
227
|
);
|
228
228
|
}
|
229
|
-
), Ae =
|
229
|
+
), Ae = A(() => {
|
230
230
|
let l = [
|
231
231
|
{
|
232
232
|
label: "10",
|
@@ -261,76 +261,76 @@ 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 =
|
266
|
-
o > 10 && (e = e.filter((
|
264
|
+
if (c.value) {
|
265
|
+
const o = c.value.total < 100 ? c.value.total : 100;
|
266
|
+
o > 10 && (e = e.filter((u) => u.value <= o));
|
267
267
|
}
|
268
268
|
return [...new Set(e)];
|
269
|
-
}), De =
|
269
|
+
}), De = A(() => {
|
270
270
|
var l;
|
271
|
-
return ((l =
|
272
|
-
}),
|
273
|
-
!l.trim() || T.value.includes(l) || (T.value = [l],
|
274
|
-
},
|
275
|
-
T.value = T.value.filter((e) => e !== l),
|
276
|
-
}, q =
|
277
|
-
!q &&
|
278
|
-
const s =
|
279
|
-
var e, o,
|
271
|
+
return ((l = v.selected) == null ? void 0 : l.length) > 0;
|
272
|
+
}), Le = (l) => {
|
273
|
+
!l.trim() || T.value.includes(l) || (T.value = [l], O(), E("search-query-changed", l));
|
274
|
+
}, Pe = (l) => {
|
275
|
+
T.value = T.value.filter((e) => e !== l), O();
|
276
|
+
}, q = v.filter;
|
277
|
+
!q && c ? q.page = 1 : !q && f && (q.cursor = "");
|
278
|
+
const s = D(q), Ce = () => {
|
279
|
+
var e, o, u, d, n, t, g, w;
|
280
280
|
T.value = [], V.value = "";
|
281
281
|
const l = {};
|
282
|
-
a.value ? q.page = 1 : q.cursor = "", (o = (e = a.value) == null ? void 0 : e.per_page) != null && o.key ? l[(
|
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, O();
|
283
283
|
}, Ke = () => {
|
284
|
-
|
284
|
+
O(null, Y.value);
|
285
285
|
}, Ye = () => {
|
286
|
-
|
287
|
-
}, Ue = () =>
|
288
|
-
var
|
289
|
-
|
286
|
+
v.id && $e(v.id, JSON.stringify(s.value));
|
287
|
+
}, Ue = () => v.id ? se(v.id) : null, O = (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
|
-
})), Ye(),
|
291
|
+
})), Ye(), E("update:filter", s.value);
|
292
292
|
}, Be = (l, e) => {
|
293
|
-
(e === a.value.tabs.key || e === "tabs") && (V.value = ""),
|
293
|
+
(e === a.value.tabs.key || e === "tabs") && (V.value = ""), O(l), E("filter-removed", e);
|
294
294
|
}, Me = (l) => {
|
295
295
|
let e = [];
|
296
296
|
return l.forEach((o) => {
|
297
297
|
e.push(o.key);
|
298
298
|
}), e;
|
299
|
-
}, Ne =
|
299
|
+
}, Ne = A(() => {
|
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
|
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,
|
310
|
-
if (typeof
|
311
|
-
let
|
312
|
-
return
|
313
|
-
N.key === e && (
|
314
|
-
}),
|
308
|
+
}), e !== "page" && e !== "cursor" && e !== d && e !== o && e !== u) {
|
309
|
+
let b = null, r = (z = a.value.form) == null ? void 0 : z.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
|
317
|
-
}),
|
318
|
-
if (
|
319
|
-
if (typeof
|
320
|
-
|
321
|
-
}) :
|
316
|
+
return U.name === e;
|
317
|
+
}), j = "";
|
318
|
+
if (r && s.value[e]) {
|
319
|
+
if (typeof r.name == "object" ? (_ = r.name) == null || _.forEach((P) => {
|
320
|
+
j && (j += " - "), j += s.value[P.key];
|
321
|
+
}) : j = s.value[e], r.props.options && (j = (r.props.multiple ? s.value[e] : [s.value[e]]).map(
|
322
322
|
(N) => {
|
323
323
|
var ye;
|
324
|
-
return (ye =
|
324
|
+
return (ye = r.props.options.find(({ value: qe }) => qe === N)) == null ? void 0 : ye.label;
|
325
325
|
}
|
326
|
-
).join(", ")),
|
327
|
-
if (((H =
|
328
|
-
const
|
329
|
-
|
330
|
-
} else
|
331
|
-
let
|
332
|
-
|
333
|
-
label:
|
326
|
+
).join(", ")), r.type === "RangeInput" && Array.isArray(s.value[e]) && (j = 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
|
+
if (((H = r == null ? void 0 : r.props) == null ? void 0 : H.type) === "range" && r.name && r.name[1]) {
|
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
|
+
j = P === N ? P : P + " - " + N;
|
330
|
+
} else j = le(s.value[r.name]).format("MM/DD/YYYY");
|
331
|
+
let U = `${(G = r == null ? void 0 : r.props) == null ? void 0 : G.label} : ${j}`;
|
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
|
});
|
@@ -339,17 +339,17 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
339
339
|
}), l;
|
340
340
|
}
|
341
341
|
return [];
|
342
|
-
}),
|
343
|
-
var e, o,
|
344
|
-
return ((t = (
|
342
|
+
}), ue = (l) => {
|
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
|
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,
|
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,27 +358,27 @@ 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[(
|
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,
|
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, O(null, !0, s.value.cursor));
|
370
370
|
}), (l, e) => {
|
371
|
-
var o,
|
372
|
-
return i(), h("div",
|
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
|
-
selected:
|
376
|
-
"row-key":
|
375
|
+
selected: F.selected,
|
376
|
+
"row-key": F.rowKey,
|
377
377
|
options: W.value,
|
378
|
-
"is-loading":
|
379
|
-
"loading-rows":
|
380
|
-
"row-class":
|
381
|
-
"row-link":
|
378
|
+
"is-loading": F.isLoading,
|
379
|
+
"loading-rows": L.value,
|
380
|
+
"row-class": F.rowClass,
|
381
|
+
"row-link": F.rowLink,
|
382
382
|
"is-sticky": S.value.isSticky,
|
383
383
|
"is-borderless": S.value.isBorderless,
|
384
384
|
"onUpdate:selected": e[7] || (e[7] = (t) => l.$emit("update:selected", t)),
|
@@ -399,7 +399,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
399
399
|
]),
|
400
400
|
_: 2
|
401
401
|
}, [
|
402
|
-
l.$slots.before || (o = a.value) != null && o.search || (
|
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
405
|
var t, g, w, Q;
|
@@ -407,33 +407,34 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
407
407
|
C(l.$slots, "before"),
|
408
408
|
(t = a.value) != null && t.search || (g = a.value) != null && g.form || (w = a.value) != null && w.tabs ? (i(), h("div", il, [
|
409
409
|
De.value ? (i(), h("div", nl, [
|
410
|
-
C(l.$slots, "bulk-actions", { selectedRows:
|
410
|
+
C(l.$slots, "bulk-actions", { selectedRows: F.selected })
|
411
411
|
])) : (i(), h("div", dl, [
|
412
|
-
(Q = a.value) != null && Q.tabs ? (i(), K(y(
|
412
|
+
(Q = a.value) != null && Q.tabs ? (i(), K(y(ze), {
|
413
413
|
key: 0,
|
414
414
|
modelValue: V.value,
|
415
415
|
"onUpdate:modelValue": [
|
416
416
|
e[0] || (e[0] = (M) => V.value = M),
|
417
|
-
e[1] || (e[1] = (M) =>
|
417
|
+
e[1] || (e[1] = (M) => O(null))
|
418
418
|
],
|
419
|
+
"is-disabled": F.isLoading,
|
419
420
|
tabs: a.value.tabs.options,
|
420
421
|
variant: "pills"
|
421
|
-
}, null, 8, ["modelValue", "tabs"])) : k("", !0)
|
422
|
+
}, null, 8, ["modelValue", "is-disabled", "tabs"])) : k("", !0)
|
422
423
|
])),
|
423
424
|
C(l.$slots, "filter-options", {}, () => {
|
424
|
-
var M,
|
425
|
+
var M, J, z, _, H, G;
|
425
426
|
return [
|
426
|
-
(M = a.value) != null && M.search || (
|
427
|
+
(M = a.value) != null && M.search || (J = a.value) != null && J.form || (z = a.value) != null && z.columnEdit ? (i(), h("div", {
|
427
428
|
key: 0,
|
428
429
|
class: te([
|
429
430
|
"flex gap-3 absolute ml-auto bg-oc-bg-light right-4 max-w-[calc(100%-24px)]",
|
430
431
|
a.value ? oe.value ? "md:w-fit w-full" : "" : "w-full justify-end"
|
431
432
|
])
|
432
433
|
}, [
|
433
|
-
(
|
434
|
+
(_ = a.value) != null && _.search ? (i(), K(y(_e), {
|
434
435
|
key: 0,
|
435
436
|
"is-search-only": !a.value.tabs || a.value.isSearchOnly,
|
436
|
-
onAddQuery:
|
437
|
+
onAddQuery: Le,
|
437
438
|
onToggle: e[2] || (e[2] = (b) => oe.value = b)
|
438
439
|
}, null, 8, ["is-search-only"])) : k("", !0),
|
439
440
|
(H = a.value) != null && H.form ? (i(), K(y(Fe), {
|
@@ -447,28 +448,28 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
447
448
|
menu: $(() => [
|
448
449
|
x.value ? (i(), K(y(He), {
|
449
450
|
key: 0,
|
450
|
-
id:
|
451
|
+
id: F.id,
|
451
452
|
"json-form": a.value.form ?? [],
|
452
453
|
grid: a.value.grid ?? null,
|
453
|
-
values:
|
454
|
+
values: v.filter,
|
454
455
|
actions: a.value.actions,
|
455
|
-
onApplyFilter: e[3] || (e[3] = (b) =>
|
456
|
-
onFilterFieldsChanged: e[4] || (e[4] = (b) =>
|
456
|
+
onApplyFilter: e[3] || (e[3] = (b) => O(b)),
|
457
|
+
onFilterFieldsChanged: e[4] || (e[4] = (b) => E("filter-fields-changed", b)),
|
457
458
|
onCancel: e[5] || (e[5] = (b) => x.value = !1)
|
458
459
|
}, {
|
459
|
-
default: $(({ errors: b, values:
|
460
|
+
default: $(({ errors: b, values: r, jsonForm: j, updateForm: U }) => [
|
460
461
|
C(l.$slots, "custom-filter-form", {
|
461
462
|
errors: b,
|
462
|
-
values:
|
463
|
-
jsonForm:
|
464
|
-
updateFilter:
|
463
|
+
values: r,
|
464
|
+
jsonForm: j,
|
465
|
+
updateFilter: U
|
465
466
|
})
|
466
467
|
]),
|
467
468
|
_: 3
|
468
469
|
}, 8, ["id", "json-form", "grid", "values", "actions"])) : k("", !0)
|
469
470
|
]),
|
470
471
|
default: $(() => [
|
471
|
-
|
472
|
+
B(y(Ee), {
|
472
473
|
"is-active": x.value,
|
473
474
|
variant: "secondary",
|
474
475
|
"left-icon": "filter"
|
@@ -476,7 +477,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
476
477
|
]),
|
477
478
|
_: 3
|
478
479
|
}, 8, ["modelValue"])) : k("", !0),
|
479
|
-
a.value.columnEdit ? (i(), K(
|
480
|
+
a.value.columnEdit ? (i(), K(ul, {
|
480
481
|
key: 2,
|
481
482
|
options: s.value.columnEdit,
|
482
483
|
headers: ((G = S.value) == null ? void 0 : G.headers) || [],
|
@@ -487,11 +488,11 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
487
488
|
];
|
488
489
|
})
|
489
490
|
])) : k("", !0),
|
490
|
-
|
491
|
+
B(y(Ge), {
|
491
492
|
filters: Ne.value,
|
492
493
|
queries: T.value,
|
493
494
|
class: "border-t border-oc-gray-200",
|
494
|
-
onRemoveQuery:
|
495
|
+
onRemoveQuery: Pe,
|
495
496
|
onRemoveAll: Ce,
|
496
497
|
onRemoveFilter: Be
|
497
498
|
}, null, 8, ["filters", "queries"])
|
@@ -499,7 +500,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
499
500
|
}),
|
500
501
|
key: "0"
|
501
502
|
} : void 0,
|
502
|
-
ae((
|
503
|
+
ae((n = S.value) == null ? void 0 : n.headers, (t, g) => ({
|
503
504
|
name: t.key,
|
504
505
|
fn: $(({ data: w, item: Q }) => [
|
505
506
|
C(l.$slots, t.key, {
|
@@ -510,39 +511,39 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
510
511
|
}))
|
511
512
|
]), 1032, ["selected", "row-key", "options", "is-loading", "loading-rows", "row-class", "row-link", "is-sticky", "is-borderless"])) : k("", !0),
|
512
513
|
C(l.$slots, "before-pagination"),
|
513
|
-
|
514
|
+
c.value || f.value ? (i(), h("div", {
|
514
515
|
key: 1,
|
515
|
-
class: te(["flex gap-3 items-center",
|
516
|
+
class: te(["flex gap-3 items-center", c.value && c.value.last_page === 1 ? "justify-end" : ""])
|
516
517
|
}, [
|
517
|
-
|
518
|
+
c.value && !m.value ? (i(), K(y(We), {
|
518
519
|
key: 0,
|
519
|
-
modelValue:
|
520
|
+
modelValue: Y.value,
|
520
521
|
"onUpdate:modelValue": [
|
521
|
-
e[10] || (e[10] = (t) =>
|
522
|
+
e[10] || (e[10] = (t) => Y.value = t),
|
522
523
|
Ke
|
523
524
|
],
|
524
525
|
class: "justify-center",
|
525
|
-
"max-page":
|
526
|
-
strategy:
|
526
|
+
"max-page": c.value.last_page,
|
527
|
+
strategy: c.value.strategy,
|
527
528
|
"total-visible": "5"
|
528
529
|
}, null, 8, ["modelValue", "max-page", "strategy"])) : k("", !0),
|
529
530
|
f.value ? (i(), h("div", vl, [
|
530
|
-
|
531
|
+
B(y(he), {
|
531
532
|
disabled: !f.value.prev,
|
532
|
-
onClick: e[11] || (e[11] = (t) => f.value.prev ?
|
533
|
+
onClick: e[11] || (e[11] = (t) => f.value.prev ? O(null, !1, f.value.prev) : null)
|
533
534
|
}, null, 8, ["disabled"]),
|
534
|
-
|
535
|
+
B(y(he), {
|
535
536
|
disabled: !f.value.next,
|
536
537
|
"is-next": "",
|
537
|
-
onClick: e[12] || (e[12] = (t) => f.value.next ?
|
538
|
+
onClick: e[12] || (e[12] = (t) => f.value.next ? O(null, !1, f.value.next) : null)
|
538
539
|
}, null, 8, ["disabled"])
|
539
540
|
])) : k("", !0),
|
540
541
|
p.value ? k("", !0) : (i(), h("div", cl, [
|
541
|
-
|
542
|
-
modelValue:
|
542
|
+
B(y(Xe), {
|
543
|
+
modelValue: L.value,
|
543
544
|
"onUpdate:modelValue": [
|
544
|
-
e[13] || (e[13] = (t) =>
|
545
|
-
e[14] || (e[14] = (t) =>
|
545
|
+
e[13] || (e[13] = (t) => L.value = t),
|
546
|
+
e[14] || (e[14] = (t) => O(null))
|
546
547
|
],
|
547
548
|
label: "Item per page",
|
548
549
|
"is-inline-label": "",
|
@@ -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-7vVFF8K-.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-7vVFF8K-.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-7vVFF8K-.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: {
|