@orchidui/core 1.6.1-3 → 1.6.1-4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/DataDisplay/CustomerCard/OcCustomerCard.js +1 -1
- package/dist/DataDisplay/FloatContent/OcFloatContent.js +1 -1
- package/dist/DataDisplay/InfoCard/OcInfoCard.js +1 -1
- package/dist/DataDisplay/ListDetail/OcListDetail.js +1 -1
- package/dist/DataDisplay/ListItem/OcListItem.js +1 -1
- package/dist/DataDisplay/OnboardingListItem/OcOnboardingListItem.js +1 -1
- package/dist/DataDisplay/Overview/OcOverview.js +1 -1
- package/dist/DataDisplay/Pagination/OcPagination.js +1 -1
- package/dist/DataDisplay/Table/OcTable.js +1 -1
- package/dist/DataDisplay/TransferSummary/OcTransferSummary.js +1 -1
- package/dist/Disclosure/Accordion/OcAccordion.js +1 -1
- package/dist/Disclosure/OnboardingAccordion/OnboardingAccordion.js +1 -1
- package/dist/Disclosure/Steps/OcSteps.js +1 -1
- package/dist/Disclosure/Tabs/Tabs.js +1 -1
- package/dist/Disclosure/Variants/OcVariants.js +1 -1
- package/dist/Elements/AdditionalContent/OcAdditionalContent.js +1 -1
- package/dist/Elements/AuthenticationOption/AuthenticationOption.js +1 -1
- package/dist/Elements/Box/OcBox.js +1 -1
- package/dist/Elements/EmptyPage/OcEmptyPage.js +1 -1
- package/dist/Elements/FeatureOverviewCard/OcFeatureOverviewCard.js +1 -1
- package/dist/Elements/Header/OcHeader.js +1 -1
- package/dist/Elements/PageTitle/OcPageTitle.js +1 -1
- package/dist/Elements/SandboxBanner/OcSandboxBanner.js +1 -1
- package/dist/Elements/Sidebar/OcSidebar.js +2 -2
- package/dist/Elements/SubSidebar/OcSubSidebar.js +1 -1
- package/dist/Elements/VerificationOption/OcVerificationOption.js +1 -1
- package/dist/Feedback/Banner/OcBanner.js +1 -1
- package/dist/Feedback/Chip/OcChip.js +1 -1
- package/dist/Feedback/ShareIcon/OcShareIcon.js +1 -1
- package/dist/Feedback/Snackbar/OcSnackbar.js +1 -1
- package/dist/Form/BaseInput/OcBaseInput.js +1 -1
- package/dist/Form/Button/OcButton.js +1 -1
- package/dist/Form/Calendar/OcCalendar.js +1 -1
- package/dist/Form/CardInput/OcCardInput.js +1 -1
- package/dist/Form/Checkbox/OcCheckbox.js +1 -1
- package/dist/Form/CheckboxesGroup/OcCheckboxesGroup.js +1 -1
- package/dist/Form/Criteria/OcCriteria.js +1 -1
- package/dist/Form/Cropper/OcCropper.js +1 -1
- package/dist/Form/DatePicker/OcDatePicker.js +1 -1
- package/dist/Form/EmojiPicker/OcEmojiPicker.js +1 -1
- package/dist/Form/Input/OcInput.js +1 -1
- package/dist/Form/LinkInput/OcLinkInput.js +1 -1
- package/dist/Form/MultipleUploadFile/OcMultipleUploadFile.js +1 -1
- package/dist/Form/NumberInput/OcNumberInput.js +1 -1
- package/dist/Form/PhoneInput/OcPhoneInput.js +1 -1
- package/dist/Form/Radio/OcRadio.js +1 -1
- package/dist/Form/RadioGroup/OcRadioGroup.js +1 -1
- package/dist/Form/RangeInput/OcRangeInput.js +1 -1
- package/dist/Form/SectionItem/OcSectionItem.js +1 -1
- package/dist/Form/Select/OcSelect.js +1 -1
- package/dist/Form/SelectOptions/OcSelectOptions.js +1 -1
- package/dist/Form/SingleFileUpload/OcSingleFileUpload.js +1 -1
- package/dist/Form/TextArea/OcTextArea.js +1 -1
- package/dist/Form/index.js +1 -1
- package/dist/FormBuilder/OcFormBuilder.js +1 -1
- package/dist/{OcAccountSetupProgress-Bi63Xlid.js → OcAccountSetupProgress-C4pJQ5PL.js} +1 -1
- package/dist/{OcComplexCalendar-BQeeNCdr.js → OcComplexCalendar-DOVR0-O1.js} +1 -1
- package/dist/{OcComplexDatePicker-B2lS6rZn.js → OcComplexDatePicker-CgEznrNi.js} +1 -1
- package/dist/{OcCropper-Cg5CDu2b.js → OcCropper-BfalkrS1.js} +1 -1
- package/dist/{OcDataTable-BVH2rcPK.js → OcDataTable-7r5w0cLc.js} +162 -157
- package/dist/{OcDraggableList-BbyZ0eST.js → OcDraggableList-DBA5OBBH.js} +1 -1
- package/dist/{OcEmojiPicker-CsbqhhEt.js → OcEmojiPicker-DDsm3tI7.js} +1 -1
- package/dist/{OcFilterForm-CT8YeiJr.js → OcFilterForm-P5VA76ih.js} +1 -1
- package/dist/{OcFilterSearch-XK2GhcoU.js → OcFilterSearch-CYYPfdHo.js} +1 -1
- package/dist/{OcFilterSearchFor-Cc5DpVY8.js → OcFilterSearchFor-wpsJk6ZQ.js} +1 -1
- package/dist/{OcModalCropper-CWCD6Ykf.js → OcModalCropper-BJEacTyd.js} +2 -2
- package/dist/{OcTimePicker-M7NAih2t.js → OcTimePicker-DkdFOomK.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-TkScY3DE.js → SubPlanCard-Bo9D4DCs.js} +1 -1
- package/dist/{ThumbnailSection-Cw-80LD5.js → ThumbnailSection-u9iOCyEn.js} +1 -1
- package/dist/{ThumbnailTheme-CgEQiEBF.js → ThumbnailTheme-BBpd-53P.js} +1 -1
- package/dist/{index-C1KCO1Bm.js → index-DwnlXOvO.js} +8 -8
- package/dist/index.js +1 -1
- package/package.json +1 -1
@@ -1,16 +1,16 @@
|
|
1
|
-
import { ref as P, onMounted as Ve, openBlock as i, createBlock as B, unref as y, withCtx as
|
2
|
-
import { ax as Ee, b as
|
1
|
+
import { ref as P, onMounted as Ve, openBlock as i, createBlock as B, unref as y, withCtx as E, createElementVNode as H, createElementBlock as $, createVNode as N, mergeProps as ge, Fragment as ee, renderList as ae, normalizeClass as te, toDisplayString as be, createCommentVNode as x, computed as L, watch as Qe, createSlots as Re, renderSlot as U, normalizeProps as ke, guardReactiveProps as xe } from "vue";
|
2
|
+
import { ax as Ee, b as Je, B as Fe, L as ze, Y as _e, aI as He, aJ as Ge, aK as We, I as Xe, J as he, k as Ze } from "./index-DwnlXOvO.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 el, setInLocalStorage as $e } from "./DataTable/utils/editColumnsUtils.js";
|
6
6
|
import { _ as Se } from "./OcIcon-CJgBICxh.js";
|
7
|
-
const
|
7
|
+
const ll = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, al = {
|
8
8
|
key: 0,
|
9
9
|
class: "gap-y-2 flex flex-col border-b pb-3 border-oc-gray-200"
|
10
|
-
},
|
10
|
+
}, tl = { class: "gap-y-2 flex flex-col" }, sl = {
|
11
11
|
key: 0,
|
12
12
|
class: "flex items-center bg-white justify-between h-[26px]"
|
13
|
-
},
|
13
|
+
}, ol = { class: "flex items-center w-full gap-x-3" }, ul = { 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(O, { emit: Z }) {
|
31
|
-
const v = Z, j = O, c = P([]), f = P([]), J = P(!1),
|
31
|
+
const v = Z, j = O, c = P([]), f = P([]), J = P(!1), F = (a = !1) => {
|
32
32
|
f.value = f.value.map((p) => ({
|
33
33
|
...p,
|
34
34
|
isActive: !0
|
@@ -44,33 +44,33 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
44
44
|
animation: 500,
|
45
45
|
forceFallback: !1,
|
46
46
|
move: (a) => a.to.dataset.activeHeaders ? !0 : !!a.draggedContext.futureIndex,
|
47
|
-
"onUpdate:modelValue": () =>
|
47
|
+
"onUpdate:modelValue": () => F()
|
48
48
|
};
|
49
49
|
return Ve(() => {
|
50
50
|
const a = se(j.localKey), { fixed: p, active: m } = Oe(a, j.headers, j.localKey);
|
51
51
|
f.value = p || j.headers.slice(0, 1), c.value = m || j.headers.slice(1).map((h) => {
|
52
|
-
var
|
52
|
+
var S, I, C;
|
53
53
|
return {
|
54
54
|
...h,
|
55
|
-
isActive: ((C = (I = (
|
55
|
+
isActive: ((C = (I = (S = j.options) == null ? void 0 : S.active) == null ? void 0 : I.find((X) => X.key === h.key)) == null ? void 0 : C.isActive) ?? !0
|
56
56
|
};
|
57
|
-
}),
|
57
|
+
}), F(!0);
|
58
58
|
}), (a, p) => (i(), B(y(Ee), {
|
59
59
|
modelValue: J.value,
|
60
60
|
"onUpdate:modelValue": p[3] || (p[3] = (m) => J.value = m),
|
61
61
|
class: "h-[36px]",
|
62
62
|
"is-attach-to-body": ""
|
63
63
|
}, {
|
64
|
-
menu:
|
65
|
-
H("div",
|
66
|
-
f.value.length ? (i(), $("div",
|
64
|
+
menu: E(() => [
|
65
|
+
H("div", ll, [
|
66
|
+
f.value.length ? (i(), $("div", al, [
|
67
67
|
p[4] || (p[4] = H("span", { class: "text-oc-text-400 font-medium" }, "Fixed columns", -1)),
|
68
68
|
N(y(we), ge({
|
69
69
|
key: "key",
|
70
70
|
modelValue: f.value,
|
71
71
|
"onUpdate:modelValue": p[0] || (p[0] = (m) => f.value = m)
|
72
72
|
}, W), {
|
73
|
-
default:
|
73
|
+
default: E(() => [
|
74
74
|
(i(!0), $(ee, null, ae(f.value, (m, h) => (i(), $("div", {
|
75
75
|
key: m.key,
|
76
76
|
class: te(["flex items-center justify-between h-[26px]", h ? "" : "is-disabled"])
|
@@ -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
|
])) : x("", !0),
|
91
|
-
H("div",
|
91
|
+
H("div", tl, [
|
92
92
|
p[5] || (p[5] = H("span", { class: "text-oc-text-400 font-medium" }, "Active columns", -1)),
|
93
93
|
N(y(we), ge({
|
94
94
|
key: "key",
|
95
95
|
modelValue: c.value,
|
96
96
|
"onUpdate:modelValue": p[2] || (p[2] = (m) => c.value = m)
|
97
97
|
}, W, { "data-active-headers": "true" }), {
|
98
|
-
default:
|
98
|
+
default: E(() => [
|
99
99
|
(i(!0), $(ee, null, ae(c.value, (m) => (i(), $(ee, {
|
100
100
|
key: m.key
|
101
101
|
}, [
|
102
|
-
m.key !== "actions" ? (i(), $("div",
|
103
|
-
H("div",
|
104
|
-
N(y(
|
102
|
+
m.key !== "actions" ? (i(), $("div", sl, [
|
103
|
+
H("div", ol, [
|
104
|
+
N(y(Je), {
|
105
105
|
modelValue: m.isActive,
|
106
106
|
"onUpdate:modelValue": [
|
107
107
|
(h) => m.isActive = h,
|
108
|
-
p[1] || (p[1] = (h) =>
|
108
|
+
p[1] || (p[1] = (h) => F())
|
109
109
|
],
|
110
110
|
class: "!w-fit"
|
111
111
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
112
|
-
H("div",
|
112
|
+
H("div", ul, be(m.label), 1)
|
113
113
|
]),
|
114
114
|
c.value.length > 1 ? (i(), B(y(Se), {
|
115
115
|
key: 0,
|
@@ -126,7 +126,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
126
126
|
])
|
127
127
|
])
|
128
128
|
]),
|
129
|
-
default:
|
129
|
+
default: E(() => [
|
130
130
|
N(y(Fe), {
|
131
131
|
label: "Edit Column",
|
132
132
|
"left-icon": "setting",
|
@@ -136,22 +136,22 @@ 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
|
+
}, il = { class: "flex flex-col gap-9 relative" }, nl = {
|
140
140
|
key: 0,
|
141
141
|
class: "flex items-center px-4 min-h-[52px]"
|
142
|
-
},
|
142
|
+
}, dl = {
|
143
143
|
key: 0,
|
144
144
|
class: "flex gap-5 items-center absolute left-5"
|
145
|
-
},
|
145
|
+
}, vl = {
|
146
146
|
key: 1,
|
147
147
|
class: "flex gap-3 absolute left-5"
|
148
|
-
},
|
148
|
+
}, cl = {
|
149
149
|
key: 1,
|
150
150
|
class: "flex w-full gap-5 md:justify-start justify-center"
|
151
|
-
},
|
151
|
+
}, fl = {
|
152
152
|
key: 2,
|
153
153
|
class: "hidden md:flex items-center"
|
154
|
-
},
|
154
|
+
}, xl = {
|
155
155
|
__name: "OcDataTable",
|
156
156
|
props: {
|
157
157
|
isLoading: Boolean,
|
@@ -191,35 +191,35 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
191
191
|
setup(O, { emit: Z }) {
|
192
192
|
var re, ie, ne, de, ve, ce, fe, pe, me;
|
193
193
|
const v = O, j = Z, c = L(() => {
|
194
|
-
var
|
195
|
-
return (
|
194
|
+
var e;
|
195
|
+
return (e = v.options) == null ? void 0 : e.pagination;
|
196
196
|
}), f = L(() => {
|
197
|
-
var
|
198
|
-
return (
|
199
|
-
}), J = P(),
|
200
|
-
var
|
201
|
-
return (
|
197
|
+
var e;
|
198
|
+
return (e = v.options) == null ? void 0 : e.cursor;
|
199
|
+
}), J = P(), F = L(() => {
|
200
|
+
var e;
|
201
|
+
return (e = v.options) == null ? void 0 : e.tableOptions;
|
202
202
|
}), W = L(() => {
|
203
|
-
var
|
203
|
+
var e;
|
204
204
|
return {
|
205
|
-
...
|
206
|
-
headers: J.value ? J.value.filter((
|
205
|
+
...F.value,
|
206
|
+
headers: J.value ? J.value.filter((l) => ue(l.key)) : (e = F.value) == null ? void 0 : e.headers.filter((l) => ue(l.key))
|
207
207
|
};
|
208
208
|
}), a = L(() => {
|
209
|
-
var
|
210
|
-
return (
|
209
|
+
var e;
|
210
|
+
return (e = v.options) == null ? void 0 : e.filterOptions;
|
211
211
|
}), p = L(() => {
|
212
|
-
var
|
213
|
-
return (
|
212
|
+
var e;
|
213
|
+
return (e = v.options) == null ? void 0 : e.hidePerPageDropdown;
|
214
214
|
}), m = L(() => {
|
215
|
-
var
|
216
|
-
return ((
|
217
|
-
}), h = P(!1),
|
215
|
+
var e;
|
216
|
+
return ((e = c.value) == null ? void 0 : e.last_page) === 1;
|
217
|
+
}), h = P(!1), S = P(v.filter[(ie = (re = a.value) == null ? void 0 : re.tabs) == null ? void 0 : ie.key]), I = P(v.filter.page), C = P(
|
218
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
219
|
), X = ((me = v.filter[(pe = (fe = a.value) == null ? void 0 : fe.search) == null ? void 0 : pe.key]) == null ? void 0 : me.trim()) ?? "", z = P(X ? X.split(",") : []), oe = P(!1), je = L(
|
220
220
|
() => {
|
221
|
-
var
|
222
|
-
return (
|
221
|
+
var e, l;
|
222
|
+
return (l = (e = v.options) == null ? void 0 : e.perPageOptions) == null ? void 0 : l.map(
|
223
223
|
(o) => ({
|
224
224
|
label: `${o}`,
|
225
225
|
value: o
|
@@ -227,7 +227,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
227
227
|
);
|
228
228
|
}
|
229
229
|
), Ae = L(() => {
|
230
|
-
let
|
230
|
+
let e = [
|
231
231
|
{
|
232
232
|
label: "10",
|
233
233
|
value: 10
|
@@ -260,117 +260,122 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
260
260
|
label: "99",
|
261
261
|
value: 99
|
262
262
|
}
|
263
|
-
],
|
263
|
+
], l = je.value ?? e;
|
264
264
|
if (c.value) {
|
265
265
|
const o = c.value.total < 100 ? c.value.total : 100;
|
266
|
-
o > 10 && (
|
266
|
+
o > 10 && (l = l.filter((u) => u.value <= o));
|
267
267
|
}
|
268
|
-
return [...new Set(
|
268
|
+
return [...new Set(l)];
|
269
269
|
}), De = L(() => {
|
270
|
-
var
|
271
|
-
return ((
|
272
|
-
}), Le = (
|
273
|
-
!
|
274
|
-
}, Pe = (
|
275
|
-
z.value = z.value.filter((
|
270
|
+
var e;
|
271
|
+
return ((e = v.selected) == null ? void 0 : e.length) > 0;
|
272
|
+
}), Le = (e) => {
|
273
|
+
!e.trim() || z.value.includes(e) || (z.value = [e], A(), j("search-query-changed", e));
|
274
|
+
}, Pe = (e) => {
|
275
|
+
z.value = z.value.filter((l) => l !== e), A();
|
276
276
|
}, _ = v.filter;
|
277
277
|
!_ && c ? _.page = 1 : !_ && f && (_.cursor = "");
|
278
278
|
const t = P(_), Ce = () => {
|
279
|
-
var
|
280
|
-
z.value = [],
|
281
|
-
const
|
282
|
-
a.value ? _.page = 1 : _.cursor = "", (o = (
|
279
|
+
var l, o, u, d, n, s, g, b, V, w, K, T, q, Q;
|
280
|
+
z.value = [], S.value = "";
|
281
|
+
const e = {};
|
282
|
+
a.value ? _.page = 1 : _.cursor = "", (o = (l = a.value) == null ? void 0 : l.per_page) != null && o.key ? e[(d = (u = a.value) == null ? void 0 : u.per_page) == null ? void 0 : d.key] = C.value : e.per_page = C.value, (s = (n = a.value) == null ? void 0 : n.tabs) != null && s.key ? e[(b = (g = a.value) == null ? void 0 : g.tabs) == null ? void 0 : b.key] = S.value : e.tabs = S.value, (w = (V = a.value) == null ? void 0 : V.columnEdit) != null && w.key && (e[(T = (K = a.value) == null ? void 0 : K.columnEdit) == null ? void 0 : T.key] = t.value[(Q = (q = a.value) == null ? void 0 : q.columnEdit) == null ? void 0 : Q.key]), t.value = e, A();
|
283
283
|
}, Ke = () => {
|
284
284
|
A(null, I.value);
|
285
285
|
}, Ye = () => {
|
286
286
|
v.id && $e(v.id, JSON.stringify(t.value));
|
287
|
-
}, Ue = () => v.id ? se(v.id) : null, A = (
|
287
|
+
}, Ue = () => v.id ? se(v.id) : null, A = (e = null, l = !1, o = "") => {
|
288
288
|
var u, d, n;
|
289
|
-
c.value && !
|
289
|
+
c.value && !l && (I.value = 1), c.value ? t.value.page = I.value : t.value.cursor = o, (u = a.value) != null && u.per_page ? t.value[a.value.per_page.key] = C.value : t.value.per_page = C.value, (d = a.value) != null && d.tabs && (t.value[a.value.tabs.key] = S.value), (n = a.value) != null && n.search && (t.value[a.value.search.key] = z.value.join()), e && (h.value = !1, t.value = { ...t.value, ...e }, Object.keys(t.value).forEach((s) => {
|
290
290
|
Array.isArray(t.value[s]) && t.value[s].length === 0 && delete t.value[s];
|
291
291
|
})), Ye(), j("update:filter", t.value);
|
292
|
-
}, Be = (
|
293
|
-
(
|
294
|
-
}, Ie = (
|
295
|
-
let
|
296
|
-
return
|
297
|
-
|
298
|
-
}),
|
292
|
+
}, Be = (e, l) => {
|
293
|
+
(l === a.value.tabs.key || l === "tabs") && (S.value = ""), A(e), j("filter-removed", l);
|
294
|
+
}, Ie = (e) => {
|
295
|
+
let l = [];
|
296
|
+
return e.forEach((o) => {
|
297
|
+
l.push(o.key);
|
298
|
+
}), l;
|
299
299
|
}, Me = L(() => {
|
300
300
|
if (t.value) {
|
301
|
-
let
|
302
|
-
return Object.keys(t.value).forEach((
|
303
|
-
var n, s, g, b,
|
301
|
+
let e = [];
|
302
|
+
return Object.keys(t.value).forEach((l) => {
|
303
|
+
var n, s, g, b, V, w, K, T, q, Q, G;
|
304
304
|
let o = (s = (n = a.value) == null ? void 0 : n.tabs) == null ? void 0 : s.key;
|
305
|
-
const u = (b = (g = a.value) == null ? void 0 : g.search) == null ? void 0 : b.key, d = ((w = (
|
305
|
+
const u = (b = (g = a.value) == null ? void 0 : g.search) == null ? void 0 : b.key, d = ((w = (V = a.value) == null ? void 0 : V.per_page) == null ? void 0 : w.key) ?? "per_page";
|
306
306
|
if ((K = a.value.form) == null || K.find((k) => {
|
307
307
|
k.name === o && (o = "");
|
308
|
-
}),
|
308
|
+
}), l !== "page" && l !== "cursor" && l !== d && l !== o && l !== u) {
|
309
309
|
let k = null, r = (T = a.value.form) == null ? void 0 : T.find((M) => {
|
310
310
|
if (typeof M.name == "object") {
|
311
311
|
let Y = !1;
|
312
312
|
return M.name.forEach((R) => {
|
313
|
-
R.key ===
|
313
|
+
R.key === l && (Y = !0, k = Ie(M.name));
|
314
314
|
}), Y;
|
315
315
|
} else
|
316
|
-
return M.name ===
|
316
|
+
return M.name === l;
|
317
317
|
}), D = "";
|
318
|
-
if (r && t.value[
|
318
|
+
if (r && t.value[l]) {
|
319
319
|
if (typeof r.name == "object" ? (q = r.name) == null || q.forEach((Y) => {
|
320
320
|
D && (D += " - "), D += t.value[Y.key];
|
321
|
-
}) : D = t.value[
|
321
|
+
}) : D = t.value[l], r.props.options && (D = (r.props.multiple ? t.value[l] : [t.value[l]]).map(
|
322
322
|
(R) => {
|
323
323
|
var ye;
|
324
324
|
return (ye = r.props.options.find(({ value: qe }) => qe === R)) == null ? void 0 : ye.label;
|
325
325
|
}
|
326
|
-
).join(", ")), r.type === "RangeInput" && Array.isArray(t.value[
|
326
|
+
).join(", ")), r.type === "RangeInput" && Array.isArray(t.value[l]) && (D = t.value[l][0].toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") + " - " + t.value[l][1].toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",")), r.type === "DatePicker")
|
327
327
|
if (((Q = r == null ? void 0 : r.props) == null ? void 0 : Q.type) === "range" && r.name && r.name[1]) {
|
328
328
|
const Y = le(t.value[r.name[0].key]).format("MM/DD/YYYY"), R = le(t.value[r.name[1].key]).format("MM/DD/YYYY");
|
329
329
|
D = Y === R ? Y : Y + " - " + R;
|
330
330
|
} else D = le(t.value[r.name]).format("MM/DD/YYYY");
|
331
331
|
let M = `${(G = r == null ? void 0 : r.props) == null ? void 0 : G.label} : ${D}`;
|
332
|
-
r && r.name && typeof r.name == "object" &&
|
332
|
+
r && r.name && typeof r.name == "object" && e.find((R) => R.name === k[0]) && (M = ""), e.push({
|
333
333
|
label: M,
|
334
|
-
name:
|
334
|
+
name: l,
|
335
335
|
multiNames: k
|
336
336
|
});
|
337
337
|
}
|
338
338
|
}
|
339
|
-
}),
|
339
|
+
}), e;
|
340
340
|
}
|
341
341
|
return [];
|
342
|
-
}), ue = (
|
343
|
-
var
|
344
|
-
return ((s = (n = (d = (u = t.value) == null ? void 0 : u[(o = (
|
345
|
-
}, Ne = ({ fixedHeaders:
|
346
|
-
var u, d, n, s, g, b,
|
347
|
-
if (t.value[(d = (u = a.value) == null ? void 0 : u.columnEdit) == null ? void 0 : d.key] || (t.value[(s = (n = a.value) == null ? void 0 : n.columnEdit) == null ? void 0 : s.key] = {}), t.value[(b = (g = a.value) == null ? void 0 : g.columnEdit) == null ? void 0 : b.key].fixed =
|
348
|
-
const K =
|
342
|
+
}), ue = (e) => {
|
343
|
+
var l, o, u, d, n, s;
|
344
|
+
return ((s = (n = (d = (u = t.value) == null ? void 0 : u[(o = (l = a.value) == null ? void 0 : l.columnEdit) == null ? void 0 : o.key]) == null ? void 0 : d.active) == null ? void 0 : n.find((g) => g.key === e)) == null ? void 0 : s.isActive) ?? !0;
|
345
|
+
}, Ne = ({ fixedHeaders: e, activeHeaders: l, isOnMount: o }) => {
|
346
|
+
var u, d, n, s, g, b, V, w;
|
347
|
+
if (t.value[(d = (u = a.value) == null ? void 0 : u.columnEdit) == null ? void 0 : d.key] || (t.value[(s = (n = a.value) == null ? void 0 : n.columnEdit) == null ? void 0 : s.key] = {}), t.value[(b = (g = a.value) == null ? void 0 : g.columnEdit) == null ? void 0 : b.key].fixed = e, t.value[(w = (V = a.value) == null ? void 0 : V.columnEdit) == null ? void 0 : w.key].active = l, J.value = [...e, ...l], !o) {
|
348
|
+
const K = el(e, l);
|
349
349
|
$e(a.value.columnEdit.localStorageKey, K);
|
350
350
|
}
|
351
351
|
}, Te = () => {
|
352
|
-
var
|
353
|
-
if ((
|
352
|
+
var e, l, o, u, d, n;
|
353
|
+
if ((l = (e = a.value) == null ? void 0 : e.columnEdit) != null && l.localStorageKey) {
|
354
354
|
const s = se(a.value.columnEdit.localStorageKey);
|
355
355
|
if (s) {
|
356
356
|
const { fixed: g, active: b } = Oe(
|
357
357
|
s,
|
358
|
-
|
358
|
+
F.value.headers,
|
359
359
|
a.value.columnEdit.localStorageKey
|
360
360
|
);
|
361
361
|
t.value[(u = (o = a.value) == null ? void 0 : o.columnEdit) == null ? void 0 : u.key].fixed = g, t.value[(n = (d = a.value) == null ? void 0 : d.columnEdit) == null ? void 0 : n.key].active = b, J.value = [...g, ...b];
|
362
362
|
}
|
363
363
|
}
|
364
364
|
};
|
365
|
-
return
|
366
|
-
|
365
|
+
return Qe(
|
366
|
+
() => v.filter,
|
367
|
+
(e) => {
|
368
|
+
e && e[a.value.tabs.key] && (S.value = e[a.value.tabs.key]);
|
369
|
+
}
|
370
|
+
), Ve(() => {
|
371
|
+
var l, o, u, d, n;
|
367
372
|
Te();
|
368
|
-
const
|
369
|
-
|
370
|
-
}), (
|
373
|
+
const e = Ue();
|
374
|
+
e && (t.value = JSON.parse(e), S.value = S.value || ((l = t.value) == null ? void 0 : l.tabs) || ((d = t.value) == null ? void 0 : d[(u = (o = a.value) == null ? void 0 : o.tabs) == null ? void 0 : u.key]), I.value = ((n = t.value) == null ? void 0 : n.page) || 1, A(null, !0, t.value.cursor));
|
375
|
+
}), (e, l) => {
|
371
376
|
var o, u, d, n;
|
372
|
-
return i(), $("div",
|
373
|
-
|
377
|
+
return i(), $("div", il, [
|
378
|
+
F.value ? (i(), B(y(ze), {
|
374
379
|
key: 0,
|
375
380
|
selected: O.selected,
|
376
381
|
"row-key": O.rowKey,
|
@@ -379,49 +384,49 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
379
384
|
"loading-rows": C.value,
|
380
385
|
"row-class": O.rowClass,
|
381
386
|
"row-link": O.rowLink,
|
382
|
-
"is-sticky":
|
383
|
-
"is-borderless":
|
384
|
-
"onUpdate:selected":
|
385
|
-
"onClick:row":
|
386
|
-
"onHover:cell":
|
387
|
-
},
|
388
|
-
after:
|
389
|
-
U(
|
387
|
+
"is-sticky": F.value.isSticky,
|
388
|
+
"is-borderless": F.value.isBorderless,
|
389
|
+
"onUpdate:selected": l[7] || (l[7] = (s) => e.$emit("update:selected", s)),
|
390
|
+
"onClick:row": l[8] || (l[8] = (s) => e.$emit("click:row", s)),
|
391
|
+
"onHover:cell": l[9] || (l[9] = (s) => e.$emit("hover:cell", s))
|
392
|
+
}, Re({
|
393
|
+
after: E(() => [
|
394
|
+
U(e.$slots, "after")
|
390
395
|
]),
|
391
|
-
empty:
|
392
|
-
U(
|
396
|
+
empty: E(() => [
|
397
|
+
U(e.$slots, "empty")
|
393
398
|
]),
|
394
|
-
"table-header":
|
395
|
-
U(
|
399
|
+
"table-header": E((s) => [
|
400
|
+
U(e.$slots, "table-header", ke(xe(s)))
|
396
401
|
]),
|
397
|
-
"table-body":
|
398
|
-
U(
|
402
|
+
"table-body": E((s) => [
|
403
|
+
U(e.$slots, "table-body", ke(xe(s)))
|
399
404
|
]),
|
400
405
|
_: 2
|
401
406
|
}, [
|
402
|
-
|
407
|
+
e.$slots.before || (o = a.value) != null && o.search || (u = a.value) != null && u.form || (d = a.value) != null && d.tabs ? {
|
403
408
|
name: "before",
|
404
|
-
fn:
|
405
|
-
var s, g, b,
|
409
|
+
fn: E(() => {
|
410
|
+
var s, g, b, V;
|
406
411
|
return [
|
407
|
-
U(
|
408
|
-
(s = a.value) != null && s.search || (g = a.value) != null && g.form || (b = a.value) != null && b.tabs ? (i(), $("div",
|
409
|
-
De.value ? (i(), $("div",
|
410
|
-
U(
|
411
|
-
])) : (i(), $("div",
|
412
|
-
(
|
412
|
+
U(e.$slots, "before"),
|
413
|
+
(s = a.value) != null && s.search || (g = a.value) != null && g.form || (b = a.value) != null && b.tabs ? (i(), $("div", nl, [
|
414
|
+
De.value ? (i(), $("div", dl, [
|
415
|
+
U(e.$slots, "bulk-actions", { selectedRows: O.selected })
|
416
|
+
])) : (i(), $("div", vl, [
|
417
|
+
(V = a.value) != null && V.tabs ? (i(), B(y(_e), {
|
413
418
|
key: 0,
|
414
|
-
modelValue:
|
419
|
+
modelValue: S.value,
|
415
420
|
"onUpdate:modelValue": [
|
416
|
-
|
417
|
-
|
421
|
+
l[0] || (l[0] = (w) => S.value = w),
|
422
|
+
l[1] || (l[1] = (w) => A(null))
|
418
423
|
],
|
419
424
|
"is-disabled": O.isLoading,
|
420
425
|
tabs: a.value.tabs.options,
|
421
426
|
variant: "pills"
|
422
427
|
}, null, 8, ["modelValue", "is-disabled", "tabs"])) : x("", !0)
|
423
428
|
])),
|
424
|
-
U(
|
429
|
+
U(e.$slots, "filter-options", {}, () => {
|
425
430
|
var w, K, T, q, Q, G;
|
426
431
|
return [
|
427
432
|
(w = a.value) != null && w.search || (K = a.value) != null && K.form || (T = a.value) != null && T.columnEdit ? (i(), $("div", {
|
@@ -431,34 +436,34 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
431
436
|
a.value ? oe.value ? "md:w-fit w-full" : "" : "w-full justify-end"
|
432
437
|
])
|
433
438
|
}, [
|
434
|
-
(q = a.value) != null && q.search ? (i(), B(y(
|
439
|
+
(q = a.value) != null && q.search ? (i(), B(y(He), {
|
435
440
|
key: 0,
|
436
441
|
"is-search-only": !a.value.tabs || a.value.isSearchOnly,
|
437
442
|
onAddQuery: Le,
|
438
|
-
onToggle:
|
443
|
+
onToggle: l[2] || (l[2] = (k) => oe.value = k)
|
439
444
|
}, null, 8, ["is-search-only"])) : x("", !0),
|
440
445
|
(Q = a.value) != null && Q.form ? (i(), B(y(Ee), {
|
441
446
|
key: 1,
|
442
447
|
modelValue: h.value,
|
443
|
-
"onUpdate:modelValue":
|
448
|
+
"onUpdate:modelValue": l[6] || (l[6] = (k) => h.value = k),
|
444
449
|
distance: 9,
|
445
450
|
placement: "bottom-end",
|
446
451
|
"is-attach-to-body": ""
|
447
452
|
}, {
|
448
|
-
menu:
|
449
|
-
h.value ? (i(), B(y(
|
453
|
+
menu: E(() => [
|
454
|
+
h.value ? (i(), B(y(Ge), {
|
450
455
|
key: 0,
|
451
456
|
id: O.id,
|
452
457
|
"json-form": a.value.form ?? [],
|
453
458
|
grid: a.value.grid ?? null,
|
454
459
|
values: v.filter,
|
455
460
|
actions: a.value.actions,
|
456
|
-
onApplyFilter:
|
457
|
-
onFilterFieldsChanged:
|
458
|
-
onCancel:
|
461
|
+
onApplyFilter: l[3] || (l[3] = (k) => A(k)),
|
462
|
+
onFilterFieldsChanged: l[4] || (l[4] = (k) => j("filter-fields-changed", k)),
|
463
|
+
onCancel: l[5] || (l[5] = (k) => h.value = !1)
|
459
464
|
}, {
|
460
|
-
default:
|
461
|
-
U(
|
465
|
+
default: E(({ errors: k, values: r, jsonForm: D, updateForm: M }) => [
|
466
|
+
U(e.$slots, "custom-filter-form", {
|
462
467
|
errors: k,
|
463
468
|
values: r,
|
464
469
|
jsonForm: D,
|
@@ -468,7 +473,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
468
473
|
_: 3
|
469
474
|
}, 8, ["id", "json-form", "grid", "values", "actions"])) : x("", !0)
|
470
475
|
]),
|
471
|
-
default:
|
476
|
+
default: E(() => [
|
472
477
|
N(y(Fe), {
|
473
478
|
"is-active": h.value,
|
474
479
|
variant: "secondary",
|
@@ -477,10 +482,10 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
477
482
|
]),
|
478
483
|
_: 3
|
479
484
|
}, 8, ["modelValue"])) : x("", !0),
|
480
|
-
a.value.columnEdit ? (i(), B(
|
485
|
+
a.value.columnEdit ? (i(), B(rl, {
|
481
486
|
key: 2,
|
482
487
|
options: t.value.columnEdit,
|
483
|
-
headers: ((G =
|
488
|
+
headers: ((G = F.value) == null ? void 0 : G.headers) || [],
|
484
489
|
"local-key": a.value.columnEdit.localStorageKey,
|
485
490
|
onUpdateOrder: Ne
|
486
491
|
}, null, 8, ["options", "headers", "local-key"])) : x("", !0)
|
@@ -488,7 +493,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
488
493
|
];
|
489
494
|
})
|
490
495
|
])) : x("", !0),
|
491
|
-
N(y(
|
496
|
+
N(y(We), {
|
492
497
|
filters: Me.value,
|
493
498
|
queries: z.value,
|
494
499
|
class: "border-t border-oc-gray-200",
|
@@ -500,26 +505,26 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
500
505
|
}),
|
501
506
|
key: "0"
|
502
507
|
} : void 0,
|
503
|
-
ae((n =
|
508
|
+
ae((n = F.value) == null ? void 0 : n.headers, (s, g) => ({
|
504
509
|
name: s.key,
|
505
|
-
fn:
|
506
|
-
U(
|
510
|
+
fn: E(({ data: b, item: V }) => [
|
511
|
+
U(e.$slots, s.key, {
|
507
512
|
data: b,
|
508
|
-
item:
|
513
|
+
item: V
|
509
514
|
})
|
510
515
|
])
|
511
516
|
}))
|
512
517
|
]), 1032, ["selected", "row-key", "options", "is-loading", "loading-rows", "row-class", "row-link", "is-sticky", "is-borderless"])) : x("", !0),
|
513
|
-
U(
|
518
|
+
U(e.$slots, "before-pagination"),
|
514
519
|
c.value || f.value ? (i(), $("div", {
|
515
520
|
key: 1,
|
516
521
|
class: te(["flex gap-3 items-center", c.value && c.value.last_page === 1 ? "justify-end" : ""])
|
517
522
|
}, [
|
518
|
-
c.value && !m.value ? (i(), B(y(
|
523
|
+
c.value && !m.value ? (i(), B(y(Xe), {
|
519
524
|
key: 0,
|
520
525
|
modelValue: I.value,
|
521
526
|
"onUpdate:modelValue": [
|
522
|
-
|
527
|
+
l[10] || (l[10] = (s) => I.value = s),
|
523
528
|
Ke
|
524
529
|
],
|
525
530
|
class: "justify-center",
|
@@ -527,23 +532,23 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
527
532
|
strategy: c.value.strategy,
|
528
533
|
"total-visible": "5"
|
529
534
|
}, null, 8, ["modelValue", "max-page", "strategy"])) : x("", !0),
|
530
|
-
f.value ? (i(), $("div",
|
535
|
+
f.value ? (i(), $("div", cl, [
|
531
536
|
N(y(he), {
|
532
537
|
disabled: !f.value.prev,
|
533
|
-
onClick:
|
538
|
+
onClick: l[11] || (l[11] = (s) => f.value.prev ? A(null, !1, f.value.prev) : null)
|
534
539
|
}, null, 8, ["disabled"]),
|
535
540
|
N(y(he), {
|
536
541
|
disabled: !f.value.next,
|
537
542
|
"is-next": "",
|
538
|
-
onClick:
|
543
|
+
onClick: l[12] || (l[12] = (s) => f.value.next ? A(null, !1, f.value.next) : null)
|
539
544
|
}, null, 8, ["disabled"])
|
540
545
|
])) : x("", !0),
|
541
|
-
p.value ? x("", !0) : (i(), $("div",
|
542
|
-
N(y(
|
546
|
+
p.value ? x("", !0) : (i(), $("div", fl, [
|
547
|
+
N(y(Ze), {
|
543
548
|
modelValue: C.value,
|
544
549
|
"onUpdate:modelValue": [
|
545
|
-
|
546
|
-
|
550
|
+
l[13] || (l[13] = (s) => C.value = s),
|
551
|
+
l[14] || (l[14] = (s) => A(null))
|
547
552
|
],
|
548
553
|
label: "Item per page",
|
549
554
|
"is-inline-label": "",
|
@@ -557,5 +562,5 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
557
562
|
}
|
558
563
|
};
|
559
564
|
export {
|
560
|
-
|
565
|
+
xl as default
|
561
566
|
};
|
@@ -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 C, renderList as K, normalizeClass as s, createElementVNode as o, createCommentVNode as b, renderSlot as u, toDisplayString as k, createVNode as f } from "vue";
|
2
|
-
import { aG as $, aC as M, ax as S } from "./index-
|
2
|
+
import { aG as $, aC as M, ax as S } from "./index-DwnlXOvO.js";
|
3
3
|
import { _ as h } from "./OcIcon-CJgBICxh.js";
|
4
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" }, O = ["href"], W = { class: "min-w-[120px]" }, j = { class: "truncate w-[200px]" }, z = { class: "flex items-center ml-4" }, A = { class: "flex w-full" }, T = {
|
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 { ax as U, e as J, B as b } from "./index-
|
2
|
+
import { ax as U, e as J, B as b } from "./index-DwnlXOvO.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 = {
|