@orchidui/core 1.1.31-1 → 1.1.31-3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/DataDisplay/CustomerCard/OcCustomerCard.js +1 -1
- package/dist/DataDisplay/FloatContent/OcFloatContent.js +1 -1
- package/dist/DataDisplay/InfoCard/OcInfoCard.js +1 -1
- package/dist/DataDisplay/ListDetail/OcListDetail.js +1 -1
- package/dist/DataDisplay/ListItem/OcListItem.js +1 -1
- package/dist/DataDisplay/OnboardingListItem/OcOnboardingListItem.js +1 -1
- package/dist/DataDisplay/Overview/OcOverview.js +1 -1
- package/dist/DataDisplay/Pagination/OcPagination.js +1 -1
- package/dist/DataDisplay/Table/OcTable.js +1 -1
- package/dist/DataDisplay/TransferSummary/OcTransferSummary.js +1 -1
- package/dist/Disclosure/Accordion/OcAccordion.js +1 -1
- package/dist/Disclosure/OnboardingAccordion/OnboardingAccordion.js +1 -1
- package/dist/Disclosure/Steps/OcSteps.js +1 -1
- package/dist/Disclosure/Tabs/Tabs.js +1 -1
- package/dist/Disclosure/Variants/OcVariants.js +1 -1
- package/dist/Elements/AdditionalContent/OcAdditionalContent.js +1 -1
- package/dist/Elements/AuthenticationOption/AuthenticationOption.js +1 -1
- package/dist/Elements/Box/OcBox.js +1 -1
- package/dist/Elements/EmptyPage/OcEmptyPage.js +1 -1
- package/dist/Elements/FeatureOverviewCard/OcFeatureOverviewCard.js +1 -1
- package/dist/Elements/Header/OcHeader.js +1 -1
- package/dist/Elements/PageTitle/OcPageTitle.js +1 -1
- package/dist/Elements/SandboxBanner/OcSandboxBanner.js +1 -1
- package/dist/Elements/Sidebar/OcSidebar.js +1 -1
- package/dist/Elements/SubSidebar/OcSubSidebar.js +1 -1
- package/dist/Elements/VerificationOption/OcVerificationOption.js +1 -1
- package/dist/Feedback/Banner/OcBanner.js +1 -1
- package/dist/Feedback/Chip/OcChip.js +1 -1
- package/dist/Feedback/ShareIcon/OcShareIcon.js +1 -1
- package/dist/Feedback/Snackbar/OcSnackbar.js +1 -1
- package/dist/Form/BaseInput/OcBaseInput.js +1 -1
- package/dist/Form/Button/OcButton.js +1 -1
- package/dist/Form/Calendar/OcCalendar.js +1 -1
- package/dist/Form/CardInput/OcCardInput.js +1 -1
- package/dist/Form/Checkbox/OcCheckbox.js +1 -1
- package/dist/Form/CheckboxesGroup/OcCheckboxesGroup.js +1 -1
- package/dist/Form/Criteria/OcCriteria.js +1 -1
- package/dist/Form/Cropper/OcCropper.js +1 -1
- package/dist/Form/DatePicker/OcDatePicker.js +1 -1
- package/dist/Form/EmojiPicker/OcEmojiPicker.js +1 -1
- package/dist/Form/Input/OcInput.js +1 -1
- package/dist/Form/LinkInput/OcLinkInput.js +1 -1
- package/dist/Form/MultipleUploadFile/OcMultipleUploadFile.js +1 -1
- package/dist/Form/NumberInput/OcNumberInput.js +1 -1
- package/dist/Form/PhoneInput/OcPhoneInput.js +1 -1
- package/dist/Form/Radio/OcRadio.js +1 -1
- package/dist/Form/RadioGroup/OcRadioGroup.js +1 -1
- package/dist/Form/RangeInput/OcRangeInput.js +1 -1
- package/dist/Form/SectionItem/OcSectionItem.js +1 -1
- package/dist/Form/Select/OcSelect.js +1 -1
- package/dist/Form/SelectOptions/OcSelectOptions.js +1 -1
- package/dist/Form/SingleFileUpload/OcSingleFileUpload.js +1 -1
- package/dist/Form/TextArea/OcTextArea.js +1 -1
- package/dist/Form/index.js +1 -1
- package/dist/FormBuilder/OcFormBuilder.js +1 -1
- package/dist/{OcComplexCalendar-CRxZRgXL.js → OcComplexCalendar-BB7GpfiX.js} +1 -1
- package/dist/{OcComplexDatePicker-ygWCP_HO.js → OcComplexDatePicker-DmYFHm61.js} +1 -1
- package/dist/{OcCropper-C7I3eum0.js → OcCropper-CB-8nb_4.js} +1 -1
- package/dist/{OcDataTable-f95yna1x.js → OcDataTable-BOhp_gGx.js} +132 -130
- package/dist/{OcDraggableList-DJYSUMpk.js → OcDraggableList-DXEDzUvy.js} +1 -1
- package/dist/{OcEmojiPicker-BTyUDcdI.js → OcEmojiPicker-eE4zw9WX.js} +1 -1
- package/dist/{OcFilterForm-elPkLKgv.js → OcFilterForm-DGWgsa18.js} +1 -1
- package/dist/{OcFilterSearch-CuMVMktV.js → OcFilterSearch-DqRBXV_y.js} +9 -9
- package/dist/{OcFilterSearchFor-DZG90Ocr.js → OcFilterSearchFor-B_0feYgG.js} +1 -1
- package/dist/{OcModalCropper-CKawRd2-.js → OcModalCropper-NsZGPntf.js} +2 -2
- package/dist/{OcTimePicker-ChYX2WuT.js → OcTimePicker-Tm_9i-2W.js} +1 -1
- package/dist/Overlay/ConfirmationModal/OcConfirmationModal.js +1 -1
- package/dist/Overlay/CopyTooltip/OcCopyTooltip.js +1 -1
- package/dist/Overlay/Dropdown/OcDropdown.js +1 -1
- package/dist/Overlay/Modal/OcModal.js +1 -1
- package/dist/Overlay/SupportMenu/OcSupportMenu.js +1 -1
- package/dist/Overlay/Tooltip/OcTooltip.js +1 -1
- package/dist/Overlay/Whitelist/OcWhiteList.js +1 -1
- package/dist/{SubPlanCard-55Xf4T-i.js → SubPlanCard-oTDApkWU.js} +1 -1
- package/dist/{ThumbnailSection-BsyAk_SY.js → ThumbnailSection-DHhr5qIC.js} +1 -1
- package/dist/{ThumbnailTheme-D7ExOrMp.js → ThumbnailTheme-CD1sBsiG.js} +1 -1
- package/dist/{index-CKnlrI6g.js → index-x2_0E7ER.js} +235 -225
- package/dist/index.js +1 -1
- package/package.json +1 -1
@@ -1,7 +1,7 @@
|
|
1
|
-
import { ref as A, onMounted as Ve, openBlock as i, createBlock as K, unref as y, withCtx as $, createElementVNode as
|
2
|
-
import { as as Fe, b as
|
1
|
+
import { ref as A, onMounted as Ve, openBlock as i, createBlock as K, unref as y, withCtx as $, createElementVNode as R, createElementBlock as w, createVNode as U, 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 L, normalizeProps as ke, guardReactiveProps as xe } from "vue";
|
2
|
+
import { as as Fe, b as Re, B as Ee, L as Je, Y as ze, aD as He, aE as _e, aF as Ge, I as We, J as we, k as Xe } from "./index-x2_0E7ER.js";
|
3
3
|
import le from "dayjs";
|
4
|
-
import { VueDraggableNext as
|
4
|
+
import { VueDraggableNext as he } from "vue-draggable-next";
|
5
5
|
import { getFromLocalStorage as se, formatHeadersFromLocalStorage as Oe, formatHeadersToLocalStorage as Ze, 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 = {
|
@@ -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]" }, rl = {
|
14
14
|
__name: "ColumnEdit",
|
15
15
|
props: {
|
16
16
|
options: {
|
@@ -28,7 +28,7 @@ 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 d = Z, F = D, v = A([]), f = A([]),
|
31
|
+
const d = Z, F = D, v = A([]), f = A([]), I = A(!1), S = (a = !1) => {
|
32
32
|
f.value = f.value.map((p) => ({
|
33
33
|
...p,
|
34
34
|
isActive: !0
|
@@ -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), v.value = m || F.headers.slice(1).map((
|
51
|
+
f.value = p || F.headers.slice(0, 1), v.value = m || F.headers.slice(1).map((x) => {
|
52
52
|
var V, B, P;
|
53
53
|
return {
|
54
|
-
...
|
55
|
-
isActive: ((P = (B = (V = F.options) == null ? void 0 : V.active) == null ? void 0 : B.find((X) => X.key ===
|
54
|
+
...x,
|
55
|
+
isActive: ((P = (B = (V = F.options) == null ? void 0 : V.active) == null ? void 0 : B.find((X) => X.key === x.key)) == null ? void 0 : P.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
|
-
U(y(
|
65
|
+
R("div", el, [
|
66
|
+
f.value.length ? (i(), w("div", ll, [
|
67
|
+
p[4] || (p[4] = R("span", { class: "text-oc-text-400 font-medium" }, "Fixed columns", -1)),
|
68
|
+
U(y(he), 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), w(ee, null, ae(f.value, (m, x) => (i(), w("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,28 +88,28 @@ 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
|
-
U(y(
|
91
|
+
R("div", al, [
|
92
|
+
p[5] || (p[5] = R("span", { class: "text-oc-text-400 font-medium" }, "Active columns", -1)),
|
93
|
+
U(y(he), ge({
|
94
94
|
key: "key",
|
95
95
|
modelValue: v.value,
|
96
96
|
"onUpdate:modelValue": p[2] || (p[2] = (m) => v.value = m)
|
97
97
|
}, W, { "data-active-headers": "true" }), {
|
98
98
|
default: $(() => [
|
99
|
-
(i(!0),
|
99
|
+
(i(!0), w(ee, null, ae(v.value, (m) => (i(), w(ee, {
|
100
100
|
key: m.key
|
101
101
|
}, [
|
102
|
-
m.key !== "actions" ? (i(),
|
103
|
-
|
104
|
-
U(y(
|
102
|
+
m.key !== "actions" ? (i(), w("div", tl, [
|
103
|
+
R("div", sl, [
|
104
|
+
U(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
|
v.value.length > 1 ? (i(), K(y(Se), {
|
115
115
|
key: 0,
|
@@ -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
|
+
}, ul = { 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 = {
|
@@ -186,24 +186,25 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
186
186
|
"filter-fields-changed": [],
|
187
187
|
"filter-removed": [],
|
188
188
|
"search-query-changed": [],
|
189
|
-
"hover:cell": []
|
189
|
+
"hover:cell": [],
|
190
|
+
"click:row-meta": []
|
190
191
|
},
|
191
192
|
setup(D, { emit: Z }) {
|
192
|
-
var
|
193
|
+
var ue, ie, ne, de, ve, ce, fe, pe, me;
|
193
194
|
const d = D, F = Z, v = j(() => {
|
194
195
|
var l;
|
195
196
|
return (l = d.options) == null ? void 0 : l.pagination;
|
196
197
|
}), f = j(() => {
|
197
198
|
var l;
|
198
199
|
return (l = d.options) == null ? void 0 : l.cursor;
|
199
|
-
}),
|
200
|
+
}), I = A(), S = j(() => {
|
200
201
|
var l;
|
201
202
|
return (l = d.options) == null ? void 0 : l.tableOptions;
|
202
203
|
}), W = j(() => {
|
203
204
|
var l;
|
204
205
|
return {
|
205
206
|
...S.value,
|
206
|
-
headers:
|
207
|
+
headers: I.value ? I.value.filter((e) => re(e.key)) : (l = S.value) == null ? void 0 : l.headers.filter((e) => re(e.key))
|
207
208
|
};
|
208
209
|
}), a = j(() => {
|
209
210
|
var l;
|
@@ -214,9 +215,9 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
214
215
|
}), m = j(() => {
|
215
216
|
var l;
|
216
217
|
return ((l = v.value) == null ? void 0 : l.last_page) === 1;
|
217
|
-
}),
|
218
|
+
}), x = A(!1), V = A(d.filter[(ie = (ue = a.value) == null ? void 0 : ue.tabs) == null ? void 0 : ie.key]), B = A(d.filter.page), P = A(
|
218
219
|
(de = (ne = a.value) == null ? void 0 : ne.per_page) != null && de.key ? d.filter[(ce = (ve = a.value) == null ? void 0 : ve.per_page) == null ? void 0 : ce.key] : d.filter.per_page
|
219
|
-
), X = ((me = d.filter[(pe = (fe = a.value) == null ? void 0 : fe.search) == null ? void 0 : pe.key]) == null ? void 0 : me.trim()) ?? "",
|
220
|
+
), X = ((me = d.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
221
|
() => {
|
221
222
|
var l, e;
|
222
223
|
return (e = (l = d.options) == null ? void 0 : l.perPageOptions) == null ? void 0 : e.map(
|
@@ -263,30 +264,30 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
263
264
|
], e = je.value ?? l;
|
264
265
|
if (v.value) {
|
265
266
|
const o = v.value.total < 100 ? v.value.total : 100;
|
266
|
-
o > 10 && (e = e.filter((
|
267
|
+
o > 10 && (e = e.filter((r) => r.value <= o));
|
267
268
|
}
|
268
269
|
return [...new Set(e)];
|
269
270
|
}), De = j(() => {
|
270
271
|
var l;
|
271
272
|
return ((l = d.selected) == null ? void 0 : l.length) > 0;
|
272
273
|
}), Pe = (l) => {
|
273
|
-
!l.trim() ||
|
274
|
-
},
|
275
|
-
|
276
|
-
},
|
277
|
-
!
|
278
|
-
const s = A(
|
279
|
-
var e, o,
|
280
|
-
|
274
|
+
!l.trim() || T.value.includes(l) || (T.value = [l], E(), F("search-query-changed", l));
|
275
|
+
}, Ce = (l) => {
|
276
|
+
T.value = T.value.filter((e) => e !== l), E();
|
277
|
+
}, q = d.filter;
|
278
|
+
!q && v ? q.page = 1 : !q && f && (q.cursor = "");
|
279
|
+
const s = A(q), Le = () => {
|
280
|
+
var e, o, r, n, c, t, g, h;
|
281
|
+
T.value = [], V.value = "";
|
281
282
|
const l = {};
|
282
|
-
a.value ?
|
283
|
+
a.value ? q.page = 1 : q.cursor = "", (o = (e = a.value) == null ? void 0 : e.per_page) != null && o.key ? l[(n = (r = a.value) == null ? void 0 : r.per_page) == null ? void 0 : n.key] = P.value : l.per_page = P.value, (t = (c = a.value) == null ? void 0 : c.tabs) != null && t.key ? l[(h = (g = a.value) == null ? void 0 : g.tabs) == null ? void 0 : h.key] = V.value : l.tabs = V.value, s.value = l, E();
|
283
284
|
}, Ke = () => {
|
284
285
|
E(null, B.value);
|
285
286
|
}, Ye = () => {
|
286
287
|
d.id && $e(d.id, JSON.stringify(s.value));
|
287
288
|
}, Ue = () => d.id ? se(d.id) : null, E = (l = null, e = !1, o = "") => {
|
288
|
-
var
|
289
|
-
v.value && !e && (B.value = 1), v.value ? s.value.page = B.value : s.value.cursor = o, (
|
289
|
+
var r, n, c;
|
290
|
+
v.value && !e && (B.value = 1), v.value ? s.value.page = B.value : s.value.cursor = o, (r = a.value) != null && r.per_page ? s.value[a.value.per_page.key] = P.value : s.value.per_page = P.value, (n = a.value) != null && n.tabs && (s.value[a.value.tabs.key] = V.value), (c = a.value) != null && c.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
291
|
Array.isArray(s.value[t]) && s.value[t].length === 0 && delete s.value[t];
|
291
292
|
})), Ye(), F("update:filter", s.value);
|
292
293
|
}, Be = (l, e) => {
|
@@ -300,36 +301,36 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
300
301
|
if (s.value) {
|
301
302
|
let l = [];
|
302
303
|
return Object.keys(s.value).forEach((e) => {
|
303
|
-
var c, t, g,
|
304
|
+
var c, t, g, h, Q, M, J, z, H, _, G;
|
304
305
|
let o = (t = (c = a.value) == null ? void 0 : c.tabs) == null ? void 0 : t.key;
|
305
|
-
const
|
306
|
-
if ((
|
306
|
+
const r = (h = (g = a.value) == null ? void 0 : g.search) == null ? void 0 : h.key, n = ((M = (Q = a.value) == null ? void 0 : Q.per_page) == null ? void 0 : M.key) ?? "per_page";
|
307
|
+
if ((J = a.value.form) == null || J.find((b) => {
|
307
308
|
b.name === o && (o = "");
|
308
|
-
}), e !== "page" && e !== "cursor" && e !== n && e !== o && e !==
|
309
|
-
let b = null,
|
309
|
+
}), e !== "page" && e !== "cursor" && e !== n && e !== o && e !== r) {
|
310
|
+
let b = null, u = (z = a.value.form) == null ? void 0 : z.find((Y) => {
|
310
311
|
if (typeof Y.name == "object") {
|
311
|
-
let
|
312
|
-
return Y.name.forEach((
|
313
|
-
|
314
|
-
}),
|
312
|
+
let C = !1;
|
313
|
+
return Y.name.forEach((N) => {
|
314
|
+
N.key === e && (C = !0, b = Me(Y.name));
|
315
|
+
}), C;
|
315
316
|
} else
|
316
317
|
return Y.name === e;
|
317
318
|
}), O = "";
|
318
|
-
if (
|
319
|
-
if (typeof
|
320
|
-
O && (O += " - "), O += s.value[
|
321
|
-
}) : O = s.value[e],
|
322
|
-
(
|
319
|
+
if (u && s.value[e]) {
|
320
|
+
if (typeof u.name == "object" ? (H = u.name) == null || H.forEach((C) => {
|
321
|
+
O && (O += " - "), O += s.value[C.key];
|
322
|
+
}) : O = s.value[e], u.props.options && (O = (u.props.multiple ? s.value[e] : [s.value[e]]).map(
|
323
|
+
(N) => {
|
323
324
|
var ye;
|
324
|
-
return (ye =
|
325
|
+
return (ye = u.props.options.find(({ value: qe }) => qe === N)) == null ? void 0 : ye.label;
|
325
326
|
}
|
326
|
-
).join(", ")),
|
327
|
-
if (((
|
328
|
-
const
|
329
|
-
O =
|
330
|
-
} else O = le(s.value[
|
331
|
-
let Y = `${(G =
|
332
|
-
|
327
|
+
).join(", ")), u.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, ",")), u.type === "DatePicker")
|
328
|
+
if (((_ = u == null ? void 0 : u.props) == null ? void 0 : _.type) === "range" && u.name && u.name[1]) {
|
329
|
+
const C = le(s.value[u.name[0].key]).format("MM/DD/YYYY"), N = le(s.value[u.name[1].key]).format("MM/DD/YYYY");
|
330
|
+
O = C === N ? C : C + " - " + N;
|
331
|
+
} else O = le(s.value[u.name]).format("MM/DD/YYYY");
|
332
|
+
let Y = `${(G = u == null ? void 0 : u.props) == null ? void 0 : G.label} : ${O}`;
|
333
|
+
u && u.name && typeof u.name == "object" && l.find((N) => N.name === b[0]) && (Y = ""), l.push({
|
333
334
|
label: Y,
|
334
335
|
name: e,
|
335
336
|
multiNames: b
|
@@ -339,38 +340,38 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
339
340
|
}), l;
|
340
341
|
}
|
341
342
|
return [];
|
342
|
-
}),
|
343
|
-
var e, o,
|
344
|
-
return ((t = (c = (n = (
|
343
|
+
}), re = (l) => {
|
344
|
+
var e, o, r, n, c, t;
|
345
|
+
return ((t = (c = (n = (r = s.value) == null ? void 0 : r[(o = (e = a.value) == null ? void 0 : e.columnEdit) == null ? void 0 : o.key]) == null ? void 0 : n.active) == null ? void 0 : c.find((g) => g.key === l)) == null ? void 0 : t.isActive) ?? !0;
|
345
346
|
}, Ie = ({ fixedHeaders: l, activeHeaders: e, isOnMount: o }) => {
|
346
|
-
var
|
347
|
-
if (s.value[(n = (
|
347
|
+
var r, n, c, t;
|
348
|
+
if (s.value[(n = (r = a.value) == null ? void 0 : r.columnEdit) == null ? void 0 : n.key].fixed = l, s.value[(t = (c = a.value) == null ? void 0 : c.columnEdit) == null ? void 0 : t.key].active = e, I.value = [...l, ...e], !o) {
|
348
349
|
const g = Ze(l, e);
|
349
350
|
$e(a.value.columnEdit.localStorageKey, g);
|
350
351
|
}
|
351
352
|
}, Te = () => {
|
352
|
-
var l, e, o,
|
353
|
+
var l, e, o, r, n, c;
|
353
354
|
if ((e = (l = a.value) == null ? void 0 : l.columnEdit) != null && e.localStorageKey) {
|
354
355
|
const t = se(a.value.columnEdit.localStorageKey);
|
355
356
|
if (t) {
|
356
|
-
const { fixed: g, active:
|
357
|
+
const { fixed: g, active: h } = Oe(
|
357
358
|
t,
|
358
359
|
S.value.headers,
|
359
360
|
a.value.columnEdit.localStorageKey
|
360
361
|
);
|
361
|
-
s.value[(
|
362
|
+
s.value[(r = (o = a.value) == null ? void 0 : o.columnEdit) == null ? void 0 : r.key].fixed = g, s.value[(c = (n = a.value) == null ? void 0 : n.columnEdit) == null ? void 0 : c.key].active = h, I.value = [...g, ...h];
|
362
363
|
}
|
363
364
|
}
|
364
365
|
};
|
365
366
|
return Ve(() => {
|
366
|
-
var e, o,
|
367
|
+
var e, o, r, n;
|
367
368
|
Te();
|
368
369
|
const l = Ue();
|
369
|
-
l && (s.value = JSON.parse(l), V.value = V.value || ((e = s.value) == null ? void 0 : e.tabs) || ((n = s.value) == null ? void 0 : n[(
|
370
|
+
l && (s.value = JSON.parse(l), V.value = V.value || ((e = s.value) == null ? void 0 : e.tabs) || ((n = s.value) == null ? void 0 : n[(r = (o = a.value) == null ? void 0 : o.tabs) == null ? void 0 : r.key]), E());
|
370
371
|
}), (l, e) => {
|
371
|
-
var o,
|
372
|
-
return i(),
|
373
|
-
S.value ? (i(), K(y(
|
372
|
+
var o, r, n, c;
|
373
|
+
return i(), w("div", ul, [
|
374
|
+
S.value ? (i(), K(y(Je), {
|
374
375
|
key: 0,
|
375
376
|
selected: D.selected,
|
376
377
|
"row-key": D.rowKey,
|
@@ -383,69 +384,70 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
383
384
|
"is-borderless": S.value.isBorderless,
|
384
385
|
"onUpdate:selected": e[7] || (e[7] = (t) => l.$emit("update:selected", t)),
|
385
386
|
"onClick:row": e[8] || (e[8] = (t) => l.$emit("click:row", t)),
|
386
|
-
"
|
387
|
-
|
387
|
+
"onClick:rowMeta": e[9] || (e[9] = (t) => l.$emit("click:row-meta", t)),
|
388
|
+
"onHover:cell": e[10] || (e[10] = (t) => l.$emit("hover:cell", t))
|
389
|
+
}, Qe({
|
388
390
|
after: $(() => [
|
389
|
-
|
391
|
+
L(l.$slots, "after")
|
390
392
|
]),
|
391
393
|
empty: $(() => [
|
392
|
-
|
394
|
+
L(l.$slots, "empty")
|
393
395
|
]),
|
394
396
|
"table-header": $((t) => [
|
395
|
-
|
397
|
+
L(l.$slots, "table-header", ke(xe(t)))
|
396
398
|
]),
|
397
399
|
"table-body": $((t) => [
|
398
|
-
|
400
|
+
L(l.$slots, "table-body", ke(xe(t)))
|
399
401
|
]),
|
400
402
|
_: 2
|
401
403
|
}, [
|
402
|
-
l.$slots.before || (o = a.value) != null && o.search || (
|
404
|
+
l.$slots.before || (o = a.value) != null && o.search || (r = a.value) != null && r.form || (n = a.value) != null && n.tabs ? {
|
403
405
|
name: "before",
|
404
406
|
fn: $(() => {
|
405
|
-
var t, g,
|
407
|
+
var t, g, h, Q;
|
406
408
|
return [
|
407
|
-
|
408
|
-
(t = a.value) != null && t.search || (g = a.value) != null && g.form || (
|
409
|
-
De.value ? (i(),
|
410
|
-
|
411
|
-
])) : (i(),
|
412
|
-
(
|
409
|
+
L(l.$slots, "before"),
|
410
|
+
(t = a.value) != null && t.search || (g = a.value) != null && g.form || (h = a.value) != null && h.tabs ? (i(), w("div", il, [
|
411
|
+
De.value ? (i(), w("div", nl, [
|
412
|
+
L(l.$slots, "bulk-actions", { selectedRows: D.selected })
|
413
|
+
])) : (i(), w("div", dl, [
|
414
|
+
(Q = a.value) != null && Q.tabs ? (i(), K(y(ze), {
|
413
415
|
key: 0,
|
414
416
|
modelValue: V.value,
|
415
417
|
"onUpdate:modelValue": [
|
416
|
-
e[0] || (e[0] = (
|
417
|
-
e[1] || (e[1] = (
|
418
|
+
e[0] || (e[0] = (M) => V.value = M),
|
419
|
+
e[1] || (e[1] = (M) => E(null))
|
418
420
|
],
|
419
421
|
tabs: a.value.tabs.options,
|
420
422
|
variant: "pills"
|
421
423
|
}, null, 8, ["modelValue", "tabs"])) : k("", !0)
|
422
424
|
])),
|
423
|
-
|
424
|
-
var
|
425
|
+
L(l.$slots, "filter-options", {}, () => {
|
426
|
+
var M, J, z, H, _, G;
|
425
427
|
return [
|
426
|
-
(
|
428
|
+
(M = a.value) != null && M.search || (J = a.value) != null && J.form || (z = a.value) != null && z.columnEdit ? (i(), w("div", {
|
427
429
|
key: 0,
|
428
430
|
class: te([
|
429
431
|
"flex gap-3 absolute ml-auto bg-oc-bg-light right-4 max-w-[calc(100%-24px)]",
|
430
432
|
a.value ? oe.value ? "md:w-fit w-full" : "" : "w-full justify-end"
|
431
433
|
])
|
432
434
|
}, [
|
433
|
-
(
|
435
|
+
(H = a.value) != null && H.search ? (i(), K(y(He), {
|
434
436
|
key: 0,
|
435
437
|
"is-search-only": !a.value.tabs || a.value.isSearchOnly,
|
436
438
|
onAddQuery: Pe,
|
437
439
|
onToggle: e[2] || (e[2] = (b) => oe.value = b)
|
438
440
|
}, null, 8, ["is-search-only"])) : k("", !0),
|
439
|
-
(
|
441
|
+
(_ = a.value) != null && _.form ? (i(), K(y(Fe), {
|
440
442
|
key: 1,
|
441
|
-
modelValue:
|
442
|
-
"onUpdate:modelValue": e[6] || (e[6] = (b) =>
|
443
|
+
modelValue: x.value,
|
444
|
+
"onUpdate:modelValue": e[6] || (e[6] = (b) => x.value = b),
|
443
445
|
distance: 9,
|
444
446
|
placement: "bottom-end",
|
445
447
|
"is-attach-to-body": ""
|
446
448
|
}, {
|
447
449
|
menu: $(() => [
|
448
|
-
|
450
|
+
x.value ? (i(), K(y(_e), {
|
449
451
|
key: 0,
|
450
452
|
id: D.id,
|
451
453
|
"json-form": a.value.form ?? [],
|
@@ -454,12 +456,12 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
454
456
|
actions: a.value.actions,
|
455
457
|
onApplyFilter: e[3] || (e[3] = (b) => E(b)),
|
456
458
|
onFilterFieldsChanged: e[4] || (e[4] = (b) => F("filter-fields-changed", b)),
|
457
|
-
onCancel: e[5] || (e[5] = (b) =>
|
459
|
+
onCancel: e[5] || (e[5] = (b) => x.value = !1)
|
458
460
|
}, {
|
459
|
-
default: $(({ errors: b, values:
|
460
|
-
|
461
|
+
default: $(({ errors: b, values: u, jsonForm: O, updateForm: Y }) => [
|
462
|
+
L(l.$slots, "custom-filter-form", {
|
461
463
|
errors: b,
|
462
|
-
values:
|
464
|
+
values: u,
|
463
465
|
jsonForm: O,
|
464
466
|
updateFilter: Y
|
465
467
|
})
|
@@ -469,14 +471,14 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
469
471
|
]),
|
470
472
|
default: $(() => [
|
471
473
|
U(y(Ee), {
|
472
|
-
"is-active":
|
474
|
+
"is-active": x.value,
|
473
475
|
variant: "secondary",
|
474
476
|
"left-icon": "filter"
|
475
477
|
}, null, 8, ["is-active"])
|
476
478
|
]),
|
477
479
|
_: 3
|
478
480
|
}, 8, ["modelValue"])) : k("", !0),
|
479
|
-
a.value.columnEdit ? (i(), K(
|
481
|
+
a.value.columnEdit ? (i(), K(rl, {
|
480
482
|
key: 2,
|
481
483
|
options: s.value.columnEdit,
|
482
484
|
headers: ((G = S.value) == null ? void 0 : G.headers) || [],
|
@@ -489,10 +491,10 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
489
491
|
])) : k("", !0),
|
490
492
|
U(y(Ge), {
|
491
493
|
filters: Ne.value,
|
492
|
-
queries:
|
494
|
+
queries: T.value,
|
493
495
|
class: "border-t border-oc-gray-200",
|
494
|
-
onRemoveQuery:
|
495
|
-
onRemoveAll:
|
496
|
+
onRemoveQuery: Ce,
|
497
|
+
onRemoveAll: Le,
|
496
498
|
onRemoveFilter: Be
|
497
499
|
}, null, 8, ["filters", "queries"])
|
498
500
|
];
|
@@ -501,16 +503,16 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
501
503
|
} : void 0,
|
502
504
|
ae((c = S.value) == null ? void 0 : c.headers, (t, g) => ({
|
503
505
|
name: t.key,
|
504
|
-
fn: $(({ data:
|
505
|
-
|
506
|
-
data:
|
507
|
-
item:
|
506
|
+
fn: $(({ data: h, item: Q }) => [
|
507
|
+
L(l.$slots, t.key, {
|
508
|
+
data: h,
|
509
|
+
item: Q
|
508
510
|
})
|
509
511
|
])
|
510
512
|
}))
|
511
513
|
]), 1032, ["selected", "row-key", "options", "is-loading", "loading-rows", "row-class", "row-link", "is-sticky", "is-borderless"])) : k("", !0),
|
512
|
-
|
513
|
-
v.value || f.value ? (i(),
|
514
|
+
L(l.$slots, "before-pagination"),
|
515
|
+
v.value || f.value ? (i(), w("div", {
|
514
516
|
key: 1,
|
515
517
|
class: te(["flex gap-3 items-center", v.value && v.value.last_page === 1 ? "justify-end" : ""])
|
516
518
|
}, [
|
@@ -518,7 +520,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
518
520
|
key: 0,
|
519
521
|
modelValue: B.value,
|
520
522
|
"onUpdate:modelValue": [
|
521
|
-
e[
|
523
|
+
e[11] || (e[11] = (t) => B.value = t),
|
522
524
|
Ke
|
523
525
|
],
|
524
526
|
class: "justify-center",
|
@@ -526,23 +528,23 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
526
528
|
strategy: v.value.strategy,
|
527
529
|
"total-visible": "5"
|
528
530
|
}, null, 8, ["modelValue", "max-page", "strategy"])) : k("", !0),
|
529
|
-
f.value ? (i(),
|
530
|
-
U(y(
|
531
|
+
f.value ? (i(), w("div", vl, [
|
532
|
+
U(y(we), {
|
531
533
|
disabled: !f.value.prev,
|
532
|
-
onClick: e[
|
534
|
+
onClick: e[12] || (e[12] = (t) => f.value.prev ? E(null, !1, f.value.prev) : null)
|
533
535
|
}, null, 8, ["disabled"]),
|
534
|
-
U(y(
|
536
|
+
U(y(we), {
|
535
537
|
disabled: !f.value.next,
|
536
538
|
"is-next": "",
|
537
|
-
onClick: e[
|
539
|
+
onClick: e[13] || (e[13] = (t) => f.value.next ? E(null, !1, f.value.next) : null)
|
538
540
|
}, null, 8, ["disabled"])
|
539
541
|
])) : k("", !0),
|
540
|
-
p.value ? k("", !0) : (i(),
|
542
|
+
p.value ? k("", !0) : (i(), w("div", cl, [
|
541
543
|
U(y(Xe), {
|
542
544
|
modelValue: P.value,
|
543
545
|
"onUpdate:modelValue": [
|
544
|
-
e[
|
545
|
-
e[
|
546
|
+
e[14] || (e[14] = (t) => P.value = t),
|
547
|
+
e[15] || (e[15] = (t) => E(null))
|
546
548
|
],
|
547
549
|
label: "Item per page",
|
548
550
|
"is-inline-label": "",
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as p, openBlock as c, createBlock as y, unref as t, withCtx as n, createElementBlock as m, Fragment as 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 { aB as $, ax as B, as as M } from "./index-
|
2
|
+
import { aB as $, ax as B, as as M } from "./index-x2_0E7ER.js";
|
3
3
|
import { _ as h } from "./OcIcon-CJgBICxh.js";
|
4
4
|
const S = ["onMouseleave", "onMouseover", "onClick"], L = { class: "flex justify-evenly w-full" }, N = { class: "flex w-full" }, U = { class: "ml-4 flex w-full" }, E = { class: "flex items-center flex-wrap w-full" }, O = ["href"], W = { class: "min-w-[120px]" }, j = { class: "truncate w-[200px]" }, z = { class: "flex items-center ml-4" }, A = { class: "flex w-full" }, 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 { as as U, e as J, B as b } from "./index-
|
2
|
+
import { as as U, e as J, B as b } from "./index-x2_0E7ER.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-x2_0E7ER.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: {
|
@@ -1,5 +1,5 @@
|
|
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
|
2
|
-
import { e as O, B as f } from "./index-
|
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 { e as O, B as f } from "./index-x2_0E7ER.js";
|
3
3
|
const B = { class: "flex gap-x-4" }, $ = {
|
4
4
|
__name: "OcFilterSearch",
|
5
5
|
props: {
|
@@ -10,17 +10,17 @@ const B = { class: "flex gap-x-4" }, $ = {
|
|
10
10
|
toggle: []
|
11
11
|
},
|
12
12
|
setup(n, { emit: y }) {
|
13
|
-
const p = y, a = o(!1), l = o(""),
|
14
|
-
a.value = !0, p("toggle", a), await w(),
|
13
|
+
const p = y, a = o(!1), l = o(""), u = o(), h = async () => {
|
14
|
+
a.value = !0, p("toggle", a), await w(), u.value.focus();
|
15
15
|
};
|
16
16
|
return (r, e) => (t(), s(g, null, [
|
17
17
|
c("div", {
|
18
18
|
class: m(["w-full", a.value || n.isSearchOnly ? "" : "absolute max-w-0 overflow-hidden"])
|
19
19
|
}, [
|
20
20
|
c("div", B, [
|
21
|
-
x(
|
21
|
+
x(i(O), {
|
22
22
|
ref_key: "searchInput",
|
23
|
-
ref:
|
23
|
+
ref: u,
|
24
24
|
modelValue: l.value,
|
25
25
|
"onUpdate:modelValue": e[0] || (e[0] = (k) => l.value = k),
|
26
26
|
placeholder: "Search something here",
|
@@ -28,12 +28,12 @@ const B = { class: "flex gap-x-4" }, $ = {
|
|
28
28
|
icon: "search",
|
29
29
|
onKeyup: e[1] || (e[1] = S(
|
30
30
|
() => {
|
31
|
-
r.$emit("addQuery", l.value)
|
31
|
+
r.$emit("addQuery", l.value);
|
32
32
|
},
|
33
33
|
["enter"]
|
34
34
|
))
|
35
35
|
}, null, 8, ["modelValue"]),
|
36
|
-
n.isSearchOnly ? (t(), d(
|
36
|
+
n.isSearchOnly ? (t(), d(i(f), {
|
37
37
|
key: 0,
|
38
38
|
label: "Search",
|
39
39
|
variant: "secondary",
|
@@ -54,7 +54,7 @@ const B = { class: "flex gap-x-4" }, $ = {
|
|
54
54
|
key: 0,
|
55
55
|
class: m(a.value ? "max-w-0 overflow-hidden" : "")
|
56
56
|
}, [
|
57
|
-
a.value ? v("", !0) : (t(), d(
|
57
|
+
a.value ? v("", !0) : (t(), d(i(f), {
|
58
58
|
key: 0,
|
59
59
|
variant: "secondary",
|
60
60
|
"left-icon": "search",
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { computed as k, openBlock as a, createBlock as m, unref as o, withCtx as x, createElementVNode as f, createElementBlock as v, Fragment as b, renderList as p, createVNode as F, createCommentVNode as $ } from "vue";
|
2
|
-
import { N as y, an as i } from "./index-
|
2
|
+
import { N as y, an as i } from "./index-x2_0E7ER.js";
|
3
3
|
const N = { class: "flex gap-1 items-center normal-case flex-wrap" }, R = {
|
4
4
|
__name: "OcFilterSearchFor",
|
5
5
|
props: {
|
@@ -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 { au as d } from "./index-
|
3
|
-
import x from "./OcCropper-
|
2
|
+
import { au as d } from "./index-x2_0E7ER.js";
|
3
|
+
import x from "./OcCropper-CB-8nb_4.js";
|
4
4
|
const S = {
|
5
5
|
__name: "OcModalCropper",
|
6
6
|
props: {
|