@orchidui/core 1.9.0 → 1.12.0
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 +2 -2
- 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 +2 -2
- package/dist/Form/CardInput/OcCardInput.js +1 -1
- package/dist/Form/Checkbox/OcCheckbox.js +2 -2
- 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 +2 -2
- package/dist/Form/MultipleUploadFile/OcMultipleUploadFile.js +1 -1
- package/dist/Form/NumberInput/OcNumberInput.js +1 -1
- package/dist/Form/PhoneInput/OcPhoneInput.js +2 -2
- 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 +2 -2
- package/dist/Form/Select/OcSelect.js +1 -1
- package/dist/Form/SelectOptions/OcSelectOptions.js +2 -2
- package/dist/Form/SingleFileUpload/OcSingleFileUpload.js +1 -1
- package/dist/Form/Slider/OcSlider.js +1 -1
- package/dist/Form/TextArea/OcTextArea.js +2 -2
- package/dist/Form/Toggle/OcToggle.js +1 -1
- package/dist/Form/index.js +8 -8
- package/dist/FormBuilder/OcFormBuilder.js +1 -1
- package/dist/{OcAccountSetupProgress-Dr_0hJll.js → OcAccountSetupProgress-MAI2WW05.js} +1 -1
- package/dist/{OcComplexCalendar-Dtm84iob.js → OcComplexCalendar-Be5nus0d.js} +1 -1
- package/dist/{OcComplexDatePicker-UwBiINWF.js → OcComplexDatePicker-B3GqIpKZ.js} +1 -1
- package/dist/{OcCropper-CpbwLT0e.js → OcCropper-DdK__CEa.js} +13 -13
- package/dist/{OcDataTable-CLTLwpzB.js → OcDataTable-C-RPPItG.js} +53 -53
- package/dist/{OcDraggable-CA_BCbpl.js → OcDraggable-CZT2mJvO.js} +5 -4
- package/dist/{OcDraggableList-AzYIrDsM.js → OcDraggableList-BFprNkhf.js} +1 -1
- package/dist/{OcEmojiPicker-BfXAsZzh.js → OcEmojiPicker-CqJbnrUb.js} +1 -1
- package/dist/{OcFilterForm-Dcze7x6x.js → OcFilterForm-B01LDEe0.js} +8 -8
- package/dist/{OcFilterSearch-us34Xf3F.js → OcFilterSearch-9FuOZOmQ.js} +1 -1
- package/dist/{OcFilterSearchFor-RccrGSpG.js → OcFilterSearchFor-Cp5A8V3q.js} +3 -3
- package/dist/{OcModalCropper-DogaW3Pf.js → OcModalCropper-DiCYfTmn.js} +2 -2
- package/dist/{OcPopper-D0VfWOBI.js → OcPopper-Bc96YXbS.js} +16 -15
- package/dist/{OcTimePicker-SSNb2Nxh.js → OcTimePicker-C9jC3YUX.js} +1 -1
- package/dist/OcToggle-Cp5dJ5LN.js +58 -0
- 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/Popper/OcPopper.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-P1SsLvzl.js → SubPlanCard-DWLm64NL.js} +1 -1
- package/dist/{ThumbnailSection-CKnTibRp.js → ThumbnailSection-C3R6IBMF.js} +1 -1
- package/dist/{ThumbnailTheme-3AhZ-r_a.js → ThumbnailTheme-zfUW5cmt.js} +1 -1
- package/dist/{index-Dq1RknPv.js → index-CyWu4Omf.js} +1752 -1708
- package/dist/index.js +3 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/OcToggle-bIJaLDMZ.js +0 -53
@@ -1,8 +1,8 @@
|
|
1
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,
|
2
|
+
import { ay as Ee, C as Re, B as Fe, K as Je, Z as ze, aJ as He, aK as Ze, aL as Ge, H as We, I as xe, j as Xe } from "./index-CyWu4Omf.js";
|
3
3
|
import le from "dayjs";
|
4
4
|
import { VueDraggableNext as we } from "vue-draggable-next";
|
5
|
-
import { getFromLocalStorage as se, formatHeadersFromLocalStorage as Oe, formatHeadersToLocalStorage as
|
5
|
+
import { getFromLocalStorage as se, formatHeadersFromLocalStorage as Oe, formatHeadersToLocalStorage as _e, setInLocalStorage as $e } from "./DataTable/utils/editColumnsUtils.js";
|
6
6
|
import { _ as Se } from "./OcIcon-CJgBICxh.js";
|
7
7
|
const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
8
8
|
key: 0,
|
@@ -27,8 +27,8 @@ 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 =
|
30
|
+
setup(C, { emit: _ }) {
|
31
|
+
const v = _, A = C, c = U([]), m = U([]), z = U(!1), F = (a = !1) => {
|
32
32
|
m.value = m.value.map((y) => ({
|
33
33
|
...y,
|
34
34
|
isActive: !0
|
@@ -37,7 +37,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
37
37
|
activeHeaders: c.value,
|
38
38
|
isOnMount: a
|
39
39
|
});
|
40
|
-
},
|
40
|
+
}, W = {
|
41
41
|
handle: ".drag-el",
|
42
42
|
filter: ".is-disabled",
|
43
43
|
group: "headers",
|
@@ -52,7 +52,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
52
52
|
var V, T, Y;
|
53
53
|
return {
|
54
54
|
...S,
|
55
|
-
isActive: ((Y = (T = (V = A.options) == null ? void 0 : V.active) == null ? void 0 : T.find((
|
55
|
+
isActive: ((Y = (T = (V = A.options) == null ? void 0 : V.active) == null ? void 0 : T.find((X) => X.key === S.key)) == null ? void 0 : Y.isActive) ?? !0
|
56
56
|
};
|
57
57
|
}), F(!0);
|
58
58
|
}), (a, y) => (n(), I(b(Ee), {
|
@@ -69,7 +69,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
69
69
|
key: "key",
|
70
70
|
modelValue: m.value,
|
71
71
|
"onUpdate:modelValue": y[0] || (y[0] = (g) => m.value = g)
|
72
|
-
},
|
72
|
+
}, W), {
|
73
73
|
default: j(() => [
|
74
74
|
(n(!0), E(ee, null, ae(m.value, (g, S) => (n(), E("div", {
|
75
75
|
key: g.key,
|
@@ -94,7 +94,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
94
94
|
key: "key",
|
95
95
|
modelValue: c.value,
|
96
96
|
"onUpdate:modelValue": y[2] || (y[2] = (g) => c.value = g)
|
97
|
-
},
|
97
|
+
}, W, { "data-active-headers": "true" }), {
|
98
98
|
default: j(() => [
|
99
99
|
(n(!0), E(ee, null, ae(c.value, (g) => (n(), E(ee, {
|
100
100
|
key: g.key
|
@@ -189,9 +189,9 @@ 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(C, { emit: _ }) {
|
193
193
|
var re, ie, ne, de, ve, ce, fe, pe, me;
|
194
|
-
const v =
|
194
|
+
const v = C, A = _, c = K(() => {
|
195
195
|
var l;
|
196
196
|
return (l = v.options) == null ? void 0 : l.pagination;
|
197
197
|
}), m = K(() => {
|
@@ -200,7 +200,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
200
200
|
}), z = U(), F = K(() => {
|
201
201
|
var l;
|
202
202
|
return (l = v.options) == null ? void 0 : l.tableOptions;
|
203
|
-
}),
|
203
|
+
}), W = K(() => {
|
204
204
|
var l;
|
205
205
|
return {
|
206
206
|
...F.value,
|
@@ -220,7 +220,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
220
220
|
return ((l = c.value) == null ? void 0 : l.last_page) === 1;
|
221
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
|
-
),
|
223
|
+
), X = ((me = v.filter[(pe = (fe = a.value) == null ? void 0 : fe.search) == null ? void 0 : pe.key]) == null ? void 0 : me.trim()) ?? "", H = U(X ? X.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(
|
@@ -273,32 +273,32 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
273
273
|
}), De = K(() => {
|
274
274
|
var l;
|
275
275
|
return ((l = v.selected) == null ? void 0 : l.length) > 0;
|
276
|
-
}),
|
277
|
-
!l.trim() ||
|
278
|
-
},
|
279
|
-
|
276
|
+
}), Ce = (l) => {
|
277
|
+
!l.trim() || H.value.includes(l) || (H.value = [l], D(), A("search-query-changed", l));
|
278
|
+
}, Le = (l) => {
|
279
|
+
H.value = H.value.filter((e) => e !== l), D();
|
280
280
|
}, Z = v.filter;
|
281
281
|
!Z && c ? Z.page = 1 : !Z && m && (Z.cursor = "");
|
282
|
-
const t = U(Z),
|
283
|
-
var e, o, u, r, d, s, f, p, x, k, O, h, B,
|
284
|
-
|
282
|
+
const t = U(Z), Pe = () => {
|
283
|
+
var e, o, u, r, d, s, f, p, x, k, O, h, B, L;
|
284
|
+
H.value = [], V.value = "";
|
285
285
|
const l = {};
|
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[(
|
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[(L = (B = a.value) == null ? void 0 : B.columnEdit) == null ? void 0 : L.key]), t.value = l, D();
|
287
287
|
}, Ke = () => {
|
288
288
|
D(null, T.value);
|
289
289
|
}, Ue = () => {
|
290
290
|
v.id && $e(v.id, JSON.stringify(t.value));
|
291
291
|
}, Ye = () => v.id ? se(v.id) : null, D = (l = null, e = !1, o = "", u = !1) => {
|
292
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] =
|
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] = H.value.join()), l && (S.value = !1, t.value = { ...t.value, ...l }, Object.keys(t.value).forEach((h) => {
|
294
294
|
Array.isArray(t.value[h]) && t.value[h].length === 0 && delete t.value[h];
|
295
295
|
}));
|
296
296
|
let r = (x = (p = a.value) == null ? void 0 : p.tabs) == null ? void 0 : x.key;
|
297
297
|
if (r && V.value !== t.value[r]) {
|
298
298
|
const h = (O = (k = a.value.tabs) == null ? void 0 : k.options) == null ? void 0 : O.find(
|
299
299
|
(B) => {
|
300
|
-
var
|
301
|
-
return ((
|
300
|
+
var L, R;
|
301
|
+
return ((L = B.value) == null ? void 0 : L.toString()) === ((R = t.value[r]) == null ? void 0 : R.toString());
|
302
302
|
}
|
303
303
|
);
|
304
304
|
if (h != null && h.value)
|
@@ -316,7 +316,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
316
316
|
if (t.value) {
|
317
317
|
let l = [];
|
318
318
|
return Object.keys(t.value).forEach((e) => {
|
319
|
-
var d, s, f, p, x, k, O, h, B,
|
319
|
+
var d, s, f, p, x, k, O, h, B, L, R;
|
320
320
|
let o = (s = (d = a.value) == null ? void 0 : d.tabs) == null ? void 0 : s.key;
|
321
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
322
|
if ((O = a.value.form) == null || O.find((w) => {
|
@@ -330,21 +330,21 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
330
330
|
}), M;
|
331
331
|
} else
|
332
332
|
return q.name === e;
|
333
|
-
}),
|
333
|
+
}), P = "";
|
334
334
|
if (i && t.value[e]) {
|
335
335
|
if (typeof i.name == "object" ? (B = i.name) == null || B.forEach((M) => {
|
336
|
-
|
337
|
-
}) :
|
336
|
+
P && (P += " - "), P += t.value[M.key];
|
337
|
+
}) : P = t.value[e], i.props.options && (P = (i.props.multiple ? t.value[e] : [t.value[e]]).map(
|
338
338
|
(J) => {
|
339
339
|
var ye;
|
340
340
|
return (ye = i.props.options.find(({ value: qe }) => qe === J)) == null ? void 0 : ye.label;
|
341
341
|
}
|
342
|
-
).join(", ")), i.type === "RangeInput" && Array.isArray(t.value[e]) && (
|
343
|
-
if (((
|
342
|
+
).join(", ")), i.type === "RangeInput" && Array.isArray(t.value[e]) && (P = 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 (((L = i == null ? void 0 : i.props) == null ? void 0 : L.type) === "range" && i.name && i.name[1]) {
|
344
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
|
-
|
346
|
-
} else
|
347
|
-
let q = `${(R = i == null ? void 0 : i.props) == null ? void 0 : R.label} : ${
|
345
|
+
P = M === J ? M : M + " - " + J;
|
346
|
+
} else P = le(t.value[i.name]).format("MM/DD/YYYY");
|
347
|
+
let q = `${(R = i == null ? void 0 : i.props) == null ? void 0 : R.label} : ${P}`;
|
348
348
|
i && i.name && typeof i.name == "object" && l.find((J) => J.name === w[0]) && (q = ""), l.push({
|
349
349
|
label: q,
|
350
350
|
name: e,
|
@@ -361,7 +361,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
361
361
|
}, Ie = ({ fixedHeaders: l, activeHeaders: e, isOnMount: o }) => {
|
362
362
|
var u, r, d, s, f, p, x, k;
|
363
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 =
|
364
|
+
const O = _e(l, e);
|
365
365
|
$e(a.value.columnEdit.localStorageKey, O);
|
366
366
|
}
|
367
367
|
A("columns-changed", e);
|
@@ -389,13 +389,13 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
389
389
|
return n(), E("div", rl, [
|
390
390
|
F.value ? (n(), I(b(Je), {
|
391
391
|
key: 0,
|
392
|
-
selected:
|
393
|
-
"row-key":
|
394
|
-
options:
|
395
|
-
"is-loading":
|
392
|
+
selected: C.selected,
|
393
|
+
"row-key": C.rowKey,
|
394
|
+
options: W.value,
|
395
|
+
"is-loading": C.isLoading,
|
396
396
|
"loading-rows": Y.value,
|
397
|
-
"row-class":
|
398
|
-
"row-link":
|
397
|
+
"row-class": C.rowClass,
|
398
|
+
"row-link": C.rowLink,
|
399
399
|
"is-sticky": F.value.isSticky,
|
400
400
|
"is-borderless": F.value.isBorderless,
|
401
401
|
"onUpdate:selected": e[7] || (e[7] = (s) => l.$emit("update:selected", s)),
|
@@ -424,7 +424,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
424
424
|
N(l.$slots, "before"),
|
425
425
|
(s = a.value) != null && s.search || (f = a.value) != null && f.form || (p = a.value) != null && p.tabs ? (n(), E("div", il, [
|
426
426
|
De.value ? (n(), E("div", nl, [
|
427
|
-
N(l.$slots, "bulk-actions", { selectedRows:
|
427
|
+
N(l.$slots, "bulk-actions", { selectedRows: C.selected })
|
428
428
|
])) : (n(), E("div", dl, [
|
429
429
|
(x = a.value) != null && x.tabs ? (n(), I(b(ze), {
|
430
430
|
key: 0,
|
@@ -433,13 +433,13 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
433
433
|
e[0] || (e[0] = (k) => V.value = k),
|
434
434
|
e[1] || (e[1] = (k) => D(null))
|
435
435
|
],
|
436
|
-
"is-disabled":
|
436
|
+
"is-disabled": C.isLoading,
|
437
437
|
tabs: a.value.tabs.options,
|
438
438
|
variant: "pills"
|
439
439
|
}, null, 8, ["modelValue", "is-disabled", "tabs"])) : $("", !0)
|
440
440
|
])),
|
441
441
|
N(l.$slots, "filter-options", {}, () => {
|
442
|
-
var k, O, h, B,
|
442
|
+
var k, O, h, B, L, R;
|
443
443
|
return [
|
444
444
|
(k = a.value) != null && k.search || (O = a.value) != null && O.form || (h = a.value) != null && h.columnEdit ? (n(), E("div", {
|
445
445
|
key: 0,
|
@@ -448,13 +448,13 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
448
448
|
a.value ? oe.value ? "md:w-fit w-full" : "" : "w-full justify-end"
|
449
449
|
])
|
450
450
|
}, [
|
451
|
-
(B = a.value) != null && B.search ? (n(), I(b(
|
451
|
+
(B = a.value) != null && B.search ? (n(), I(b(He), {
|
452
452
|
key: 0,
|
453
453
|
"is-search-only": !a.value.tabs || a.value.isSearchOnly,
|
454
|
-
onAddQuery:
|
454
|
+
onAddQuery: Ce,
|
455
455
|
onToggle: e[2] || (e[2] = (w) => oe.value = w)
|
456
456
|
}, null, 8, ["is-search-only"])) : $("", !0),
|
457
|
-
(
|
457
|
+
(L = a.value) != null && L.form ? (n(), I(b(Ee), {
|
458
458
|
key: 1,
|
459
459
|
modelValue: S.value,
|
460
460
|
"onUpdate:modelValue": e[6] || (e[6] = (w) => S.value = w),
|
@@ -465,7 +465,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
465
465
|
menu: j(() => [
|
466
466
|
S.value ? (n(), I(b(Ze), {
|
467
467
|
key: 0,
|
468
|
-
id:
|
468
|
+
id: C.id,
|
469
469
|
"json-form": a.value.form ?? [],
|
470
470
|
grid: a.value.grid ?? null,
|
471
471
|
values: v.filter,
|
@@ -474,11 +474,11 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
474
474
|
onFilterFieldsChanged: e[4] || (e[4] = (w) => A("filter-fields-changed", w)),
|
475
475
|
onCancel: e[5] || (e[5] = (w) => S.value = !1)
|
476
476
|
}, {
|
477
|
-
default: j(({ errors: w, values: i, jsonForm:
|
477
|
+
default: j(({ errors: w, values: i, jsonForm: P, updateForm: q }) => [
|
478
478
|
N(l.$slots, "custom-filter-form", {
|
479
479
|
errors: w,
|
480
480
|
values: i,
|
481
|
-
jsonForm:
|
481
|
+
jsonForm: P,
|
482
482
|
updateFilter: q
|
483
483
|
})
|
484
484
|
]),
|
@@ -507,10 +507,10 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
507
507
|
])) : $("", !0),
|
508
508
|
Q(b(Ge), {
|
509
509
|
filters: Ne.value,
|
510
|
-
queries:
|
510
|
+
queries: H.value,
|
511
511
|
class: "border-t border-oc-gray-200",
|
512
|
-
onRemoveQuery:
|
513
|
-
onRemoveAll:
|
512
|
+
onRemoveQuery: Le,
|
513
|
+
onRemoveAll: Pe,
|
514
514
|
onRemoveFilter: Be
|
515
515
|
}, null, 8, ["filters", "queries"])
|
516
516
|
];
|
@@ -532,7 +532,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
532
532
|
key: 1,
|
533
533
|
class: te(["flex items-center gap-3", c.value && c.value.last_page === 1 ? "justify-end" : ""])
|
534
534
|
}, [
|
535
|
-
c.value && !g.value ? (n(), I(b(
|
535
|
+
c.value && !g.value ? (n(), I(b(We), {
|
536
536
|
key: 0,
|
537
537
|
modelValue: T.value,
|
538
538
|
"onUpdate:modelValue": [
|
@@ -556,7 +556,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
556
556
|
}, null, 8, ["disabled"])
|
557
557
|
])) : $("", !0),
|
558
558
|
y.value ? $("", !0) : (n(), E("div", cl, [
|
559
|
-
Q(b(
|
559
|
+
Q(b(Xe), {
|
560
560
|
modelValue: Y.value,
|
561
561
|
"onUpdate:modelValue": [
|
562
562
|
e[13] || (e[13] = (s) => Y.value = s),
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { computed as
|
1
|
+
import { computed as c, openBlock as s, createBlock as d, unref as m, withCtx as i, renderSlot as p } from "vue";
|
2
2
|
import { VueDraggableNext as f } from "vue-draggable-next";
|
3
3
|
const h = {
|
4
4
|
__name: "OcDraggable",
|
@@ -10,17 +10,18 @@ const h = {
|
|
10
10
|
detectMove: null
|
11
11
|
},
|
12
12
|
setup(a, { emit: l }) {
|
13
|
-
const
|
13
|
+
const r = a, o = l, t = c(() => r.modelValue), n = (e) => {
|
14
14
|
o("update:modelValue", t.value, e);
|
15
15
|
}, u = (e) => {
|
16
16
|
o("detectMove", e);
|
17
17
|
};
|
18
|
-
return (e, g) => (
|
18
|
+
return (e, g) => (s(), d(m(f), {
|
19
19
|
handle: ".drag-el",
|
20
20
|
list: t.value,
|
21
21
|
animation: 500,
|
22
|
+
"force-fallback": !0,
|
22
23
|
move: u,
|
23
|
-
onChange:
|
24
|
+
onChange: n
|
24
25
|
}, {
|
25
26
|
default: i(() => [
|
26
27
|
p(e.$slots, "default", { list: t.value })
|
@@ -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-CyWu4Omf.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,
|
2
|
+
import { ay as U, d as J, B as b } from "./index-CyWu4Omf.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
|
-
import { ref as r, computed as
|
2
|
-
import {
|
1
|
+
import { ref as r, computed as u, onMounted as B, openBlock as O, createElementBlock as k, renderSlot as $, createElementVNode as f, createVNode as c, unref as i } from "vue";
|
2
|
+
import { u as w, B as m } from "./index-CyWu4Omf.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: {
|
@@ -29,10 +29,10 @@ const C = { class: "flex w-[326px] flex-col gap-y-5" }, A = { class: "max-h-[500
|
|
29
29
|
typeof e.name == "object" ? e.name.forEach((o, h) => {
|
30
30
|
a.value[o.key] = l[h];
|
31
31
|
}) : a.value[e.name] = l, b(e.name);
|
32
|
-
}, g =
|
32
|
+
}, g = u(() => Object.values(a.value).length > 0), F = u(() => {
|
33
33
|
var e, l;
|
34
34
|
return ((l = (e = s.actions) == null ? void 0 : e.applyButton) == null ? void 0 : l.label) || "Apply";
|
35
|
-
}), j =
|
35
|
+
}), j = u(() => {
|
36
36
|
var e, l;
|
37
37
|
return ((l = (e = s.actions) == null ? void 0 : e.cancelButton) == null ? void 0 : l.label) || "Cancel";
|
38
38
|
});
|
@@ -43,14 +43,14 @@ const C = { class: "flex w-[326px] flex-col gap-y-5" }, A = { class: "max-h-[500
|
|
43
43
|
d("applyFilter", a.value), d("filter-fields-changed", n.value), n.value = [];
|
44
44
|
};
|
45
45
|
return (e, l) => (O(), k("div", C, [
|
46
|
-
|
46
|
+
$(e.$slots, "default", {
|
47
47
|
errors: p.value,
|
48
48
|
values: a.value,
|
49
49
|
jsonForm: t.jsonForm,
|
50
50
|
updateForm: v
|
51
51
|
}, () => [
|
52
52
|
f("div", A, [
|
53
|
-
|
53
|
+
c(i(w), {
|
54
54
|
id: `filter-form-${t.id}`,
|
55
55
|
class: "grid gap-5",
|
56
56
|
errors: p.value,
|
@@ -62,13 +62,13 @@ const C = { class: "flex w-[326px] flex-col gap-y-5" }, A = { class: "max-h-[500
|
|
62
62
|
])
|
63
63
|
]),
|
64
64
|
f("div", E, [
|
65
|
-
|
65
|
+
c(i(m), {
|
66
66
|
class: "w-full",
|
67
67
|
variant: "secondary",
|
68
68
|
label: j.value,
|
69
69
|
onClick: l[0] || (l[0] = (o) => e.$emit("cancel"))
|
70
70
|
}, null, 8, ["label"]),
|
71
|
-
|
71
|
+
c(i(m), {
|
72
72
|
class: "w-full",
|
73
73
|
"is-disabled": !g.value,
|
74
74
|
label: F.value,
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as o, openBlock as t, createElementBlock as s, Fragment as g, createElementVNode as c, normalizeClass as m, createVNode as x, unref as i, withKeys as S, createBlock as d, createCommentVNode as v, nextTick as w } from "vue";
|
2
|
-
import {
|
2
|
+
import { d as O, B as f } from "./index-CyWu4Omf.js";
|
3
3
|
const B = { class: "flex gap-x-4" }, $ = {
|
4
4
|
__name: "OcFilterSearch",
|
5
5
|
props: {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { computed as k, openBlock as a, createBlock as m, unref as n, withCtx as x, createElementVNode as f, createElementBlock as v, Fragment as b, renderList as p, createVNode as F, createCommentVNode as $ } from "vue";
|
2
|
-
import {
|
3
|
-
const
|
2
|
+
import { M as y, at as i } from "./index-CyWu4Omf.js";
|
3
|
+
const C = { class: "flex gap-1 items-center normal-case flex-wrap" }, R = {
|
4
4
|
__name: "OcFilterSearchFor",
|
5
5
|
props: {
|
6
6
|
filters: Object,
|
@@ -34,7 +34,7 @@ const N = { class: "flex gap-1 items-center normal-case flex-wrap" }, R = {
|
|
34
34
|
class: "!w-full !justify-start !bg-oc-bg-light"
|
35
35
|
}, {
|
36
36
|
default: x(() => [
|
37
|
-
f("div",
|
37
|
+
f("div", C, [
|
38
38
|
l[1] || (l[1] = f("span", { class: "pr-2 text-sm font-medium text-oc-text" }, "Search for:", -1)),
|
39
39
|
(a(!0), v(b, null, p(s.queries, (e) => (a(), m(n(i), {
|
40
40
|
key: e,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ref as n, openBlock as r, createBlock as f, unref as p, withCtx as g, createVNode as v } from "vue";
|
2
|
-
import { aA as d } from "./index-
|
3
|
-
import x from "./OcCropper-
|
2
|
+
import { aA as d } from "./index-CyWu4Omf.js";
|
3
|
+
import x from "./OcCropper-DdK__CEa.js";
|
4
4
|
const S = {
|
5
5
|
__name: "OcModalCropper",
|
6
6
|
props: {
|
@@ -37,8 +37,8 @@ const S = { class: "flex w-[inherit]" }, P = {
|
|
37
37
|
default: !1
|
38
38
|
}
|
39
39
|
},
|
40
|
-
setup(
|
41
|
-
const a = n(),
|
40
|
+
setup(r, { expose: u }) {
|
41
|
+
const a = n(), s = n(), o = n(), e = r, l = () => ({
|
42
42
|
placement: e.placement,
|
43
43
|
modifiers: [
|
44
44
|
{
|
@@ -53,40 +53,41 @@ const S = { class: "flex w-[inherit]" }, P = {
|
|
53
53
|
}
|
54
54
|
],
|
55
55
|
...e.popperOptions || []
|
56
|
-
}), f = (
|
57
|
-
var
|
58
|
-
return
|
56
|
+
}), f = (t) => {
|
57
|
+
var p;
|
58
|
+
return t && ((p = s.value) == null ? void 0 : p.contains(t));
|
59
59
|
};
|
60
60
|
return m(() => {
|
61
|
-
|
61
|
+
o.value = B(a.value, s.value, l()), setTimeout(() => o.value.update(), 150);
|
62
62
|
}), y(
|
63
63
|
() => [e.popperOptions, e.placement, e.distance, e.skidding],
|
64
64
|
() => {
|
65
|
-
t
|
65
|
+
var t, p;
|
66
|
+
(t = o.value) == null || t.setOptions(l()), (p = o.value) == null || p.update();
|
66
67
|
},
|
67
68
|
{ deep: !0 }
|
68
69
|
), u({
|
69
|
-
popperInstance:
|
70
|
+
popperInstance: o,
|
70
71
|
checkElementIsInsidePopper: f
|
71
|
-
}), (
|
72
|
+
}), (t, p) => (i(), b("div", S, [
|
72
73
|
c("div", {
|
73
74
|
ref_key: "reference",
|
74
75
|
ref: a,
|
75
76
|
class: "w-[inherit] flex"
|
76
77
|
}, [
|
77
|
-
d(
|
78
|
+
d(t.$slots, "default")
|
78
79
|
], 512),
|
79
80
|
(i(), v(k, {
|
80
81
|
to: "body",
|
81
|
-
disabled: !
|
82
|
+
disabled: !r.isAttachToBody
|
82
83
|
}, [
|
83
84
|
c("div", {
|
84
85
|
ref_key: "popper",
|
85
|
-
ref:
|
86
|
-
class: O([
|
87
|
-
style: h(
|
86
|
+
ref: s,
|
87
|
+
class: O([r.popperClass, "z-[1007]"]),
|
88
|
+
style: h(r.popperStyle)
|
88
89
|
}, [
|
89
|
-
d(
|
90
|
+
d(t.$slots, "popper")
|
90
91
|
], 6)
|
91
92
|
], 8, ["disabled"]))
|
92
93
|
]));
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as n, watch as g, openBlock as m, createBlock as s, unref as o, withCtx as p, createCommentVNode as v, createVNode as y } from "vue";
|
2
|
-
import { ay as S, aI as h,
|
2
|
+
import { ay as S, aI as h, d as D } from "./index-CyWu4Omf.js";
|
3
3
|
import c from "dayjs";
|
4
4
|
const w = {
|
5
5
|
__name: "OcTimePicker",
|
@@ -0,0 +1,58 @@
|
|
1
|
+
import { computed as s, openBlock as i, createElementBlock as r, createElementVNode as l, normalizeClass as o, toDisplayString as b, createCommentVNode as f } from "vue";
|
2
|
+
import { _ as m } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
3
|
+
const g = { class: "inline-flex items-center gap-3 h-fit" }, h = ["value", "checked"], p = `absolute top-0 left-0 border border-transparent hover:bg-oc-primary-300 hover:border-oc-primary-500 bg-oc-primary-100 rounded-full cursor-pointer transition-all duration-300
|
4
|
+
before:transition-all before:duration-300 before:absolute before:rounded-full before:bg-oc-bg-light`, x = {
|
5
|
+
__name: "OcToggle",
|
6
|
+
props: {
|
7
|
+
modelValue: Boolean,
|
8
|
+
disabled: Boolean,
|
9
|
+
size: {
|
10
|
+
type: String,
|
11
|
+
default: "default"
|
12
|
+
},
|
13
|
+
label: String
|
14
|
+
},
|
15
|
+
emits: {
|
16
|
+
"update:modelValue": []
|
17
|
+
},
|
18
|
+
setup(e, { emit: c }) {
|
19
|
+
const t = e, d = c, a = () => {
|
20
|
+
t.disabled || d("update:modelValue", !t.modelValue);
|
21
|
+
}, n = s(() => ({
|
22
|
+
default: "w-[42px] h-7",
|
23
|
+
small: "w-[26px] h-[15px]"
|
24
|
+
})), u = s(() => ({
|
25
|
+
default: "before:w-6 before:h-6 before:top-px before:left-px",
|
26
|
+
small: " before:w-4 before:h-4 before:top-[0.5px] before:left-[0.5px]"
|
27
|
+
}));
|
28
|
+
return (v, V) => (i(), r("div", g, [
|
29
|
+
l("label", {
|
30
|
+
class: o(["toggle-switch relative inline-block", [n.value[e.size], e.size, e.disabled ? "pointer-events-none" : ""]])
|
31
|
+
}, [
|
32
|
+
l("input", {
|
33
|
+
class: o(["toggle-input hidden", {
|
34
|
+
"is-checked": e.modelValue
|
35
|
+
}]),
|
36
|
+
value: e.modelValue,
|
37
|
+
checked: e.modelValue,
|
38
|
+
type: "checkbox",
|
39
|
+
onChange: a
|
40
|
+
}, null, 42, h),
|
41
|
+
l("span", {
|
42
|
+
class: o(["toggle-label", [p, n.value[e.size], u.value[e.size], {
|
43
|
+
"toggle-on-focus": !e.disabled && !e.modelValue,
|
44
|
+
"!bg-oc-accent-1-100 before:bg-oc-accent-1-50": e.disabled
|
45
|
+
}]])
|
46
|
+
}, null, 2)
|
47
|
+
], 2),
|
48
|
+
e.label ? (i(), r("div", {
|
49
|
+
key: 0,
|
50
|
+
class: "text-sm cursor-pointer",
|
51
|
+
onClick: a
|
52
|
+
}, b(e.label), 1)) : f("", !0)
|
53
|
+
]));
|
54
|
+
}
|
55
|
+
}, z = /* @__PURE__ */ m(x, [["__scopeId", "data-v-23da89d0"]]);
|
56
|
+
export {
|
57
|
+
z as T
|
58
|
+
};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { computed as l, openBlock as a, createElementBlock as o, normalizeClass as d, createElementVNode as e, toDisplayString as r, createBlock as x, unref as u, createCommentVNode as m, createTextVNode as v, Fragment as T, renderList as k, createVNode as P } from "vue";
|
2
|
-
import { at as _, B as w } from "./index-
|
2
|
+
import { at as _, B as w } from "./index-CyWu4Omf.js";
|
3
3
|
import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
4
4
|
import { _ as F } from "./OcIcon-CJgBICxh.js";
|
5
5
|
const B = { class: "z-10 flex flex-col gap-4 p-9 relative" }, E = { class: "flex items-center gap-4" }, A = { class: "font-medium text-xl" }, N = { class: "flex gap-3 items-center mb-5" }, S = { class: "flex items-start gap-2" }, V = { class: "text-[24px] font-medium tracking-tighter" }, q = { class: "text-[40px] leading-none font-medium" }, z = { key: 0 }, $ = {
|