@orchidui/core 1.16.0 → 1.18.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 +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/TopBanner/OcTopBanner.js +4 -0
- package/dist/Elements/VerificationOption/OcVerificationOption.js +2 -2
- package/dist/Feedback/Banner/OcBanner.js +1 -1
- package/dist/Feedback/Chip/OcChip.js +1 -1
- package/dist/Feedback/ShareIcon/OcShareIcon.js +1 -1
- package/dist/Feedback/Snackbar/OcSnackbar.js +1 -1
- package/dist/Form/BaseInput/OcBaseInput.js +1 -1
- package/dist/Form/Button/OcButton.js +1 -1
- package/dist/Form/Calendar/OcCalendar.js +1 -1
- package/dist/Form/CardInput/OcCardInput.js +1 -1
- package/dist/Form/Checkbox/OcCheckbox.js +1 -1
- package/dist/Form/CheckboxesGroup/OcCheckboxesGroup.js +1 -1
- package/dist/Form/Criteria/OcCriteria.js +1 -1
- package/dist/Form/Cropper/OcCropper.js +1 -1
- package/dist/Form/DatePicker/OcDatePicker.js +1 -1
- package/dist/Form/EmojiPicker/OcEmojiPicker.js +1 -1
- package/dist/Form/Input/OcInput.js +1 -1
- package/dist/Form/LinkInput/OcLinkInput.js +1 -1
- package/dist/Form/MultipleUploadFile/OcMultipleUploadFile.js +1 -1
- package/dist/Form/NumberInput/OcNumberInput.js +1 -1
- package/dist/Form/PhoneInput/OcPhoneInput.js +1 -1
- package/dist/Form/Radio/OcRadio.js +1 -1
- package/dist/Form/RadioGroup/OcRadioGroup.js +1 -1
- package/dist/Form/RangeInput/OcRangeInput.js +1 -1
- package/dist/Form/SectionItem/OcSectionItem.js +1 -1
- package/dist/Form/Select/OcSelect.js +1 -1
- package/dist/Form/SelectOptions/OcSelectOptions.js +1 -1
- package/dist/Form/SingleFileUpload/OcSingleFileUpload.js +1 -1
- package/dist/Form/Slider/OcSlider.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-CV9uNxeg.js → OcAccountSetupProgress-g7V1kvOf.js} +1 -1
- package/dist/{OcComplexCalendar-D54oHLwu.js → OcComplexCalendar-CWPFV545.js} +1 -1
- package/dist/{OcComplexDatePicker-DaSJ4HtT.js → OcComplexDatePicker-DXg8PEZz.js} +1 -1
- package/dist/{OcCropper-DGEl7bPQ.js → OcCropper-BfXmon8i.js} +8 -8
- package/dist/{OcDataTable-F7QH2Pc0.js → OcDataTable-CsQHegQT.js} +100 -100
- package/dist/{OcDraggableList-CBZak5bV.js → OcDraggableList-BMlc5DDP.js} +11 -11
- package/dist/{OcEmojiPicker-DPJdrLIh.js → OcEmojiPicker-vNLeufFJ.js} +1 -1
- package/dist/{OcFilterForm-Nkw7WcfL.js → OcFilterForm-DxNgWEC9.js} +1 -1
- package/dist/{OcFilterSearch-BnvEtimd.js → OcFilterSearch-D1gAk_Ea.js} +12 -12
- package/dist/{OcFilterSearchFor-D6xP7uQz.js → OcFilterSearchFor-CKrNeOon.js} +1 -1
- package/dist/{OcModalCropper-B2bB8RzF.js → OcModalCropper-DOSQE3NJ.js} +4 -4
- package/dist/{OcPopper-Bc96YXbS.js → OcPopper-CYcXF-OR.js} +17 -14
- package/dist/{OcTimePicker-BO33VUwx.js → OcTimePicker-Cjo8eKGB.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/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-CpBVIWpL.js → SubPlanCard-BTqSr2AX.js} +1 -1
- package/dist/{ThumbnailSection-2snZiwzc.js → ThumbnailSection-DvanWXUV.js} +1 -1
- package/dist/{ThumbnailTheme-2Ow4cKYH.js → ThumbnailTheme-Cb9Ya2ZK.js} +1 -1
- package/dist/{index-PN9RLc1R.js → index-DkumyhAj.js} +844 -788
- package/dist/index.js +45 -44
- package/dist/style.css +1 -1
- package/package.json +1 -1
@@ -1,9 +1,9 @@
|
|
1
|
-
import { ref as N, onMounted as
|
2
|
-
import {
|
1
|
+
import { ref as N, onMounted as Ee, openBlock as v, createBlock as q, unref as x, withCtx as C, createElementVNode as W, createElementBlock as F, createVNode as R, mergeProps as be, Fragment as ae, renderList as se, normalizeClass as oe, toDisplayString as ke, createCommentVNode as $, computed as M, createSlots as ze, renderSlot as T, normalizeProps as he, guardReactiveProps as xe } from "vue";
|
2
|
+
import { az as Ve, C as Je, B as Fe, K as He, Z as Ze, aK as Ge, aL as We, aM as Xe, H as _e, I as Se, j as el } from "./index-DkumyhAj.js";
|
3
3
|
import te from "dayjs";
|
4
|
-
import { VueDraggableNext as
|
5
|
-
import { getFromLocalStorage as ue, formatHeadersFromLocalStorage as
|
6
|
-
import { _ as
|
4
|
+
import { VueDraggableNext as we } from "vue-draggable-next";
|
5
|
+
import { getFromLocalStorage as ue, formatHeadersFromLocalStorage as je, formatHeadersToLocalStorage as ll, setInLocalStorage as $e } from "./DataTable/utils/editColumnsUtils.js";
|
6
|
+
import { _ as Oe } from "./OcIcon-CSpRxnwd.js";
|
7
7
|
const al = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, tl = {
|
8
8
|
key: 0,
|
9
9
|
class: "gap-y-2 flex flex-col border-b pb-3 border-oc-gray-200"
|
@@ -46,8 +46,8 @@ const al = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, tl = {
|
|
46
46
|
move: (a) => a.to.dataset.activeHeaders ? !0 : !!a.draggedContext.futureIndex,
|
47
47
|
"onUpdate:modelValue": () => j()
|
48
48
|
};
|
49
|
-
return
|
50
|
-
const a = ue(D.localKey), { fixed: b, active: k } =
|
49
|
+
return Ee(() => {
|
50
|
+
const a = ue(D.localKey), { fixed: b, active: k } = je(a, D.headers, D.localKey);
|
51
51
|
g.value = b || D.headers.slice(0, 1), m.value = k || D.headers.slice(1).map((O) => {
|
52
52
|
var V, Q, I;
|
53
53
|
return {
|
@@ -55,7 +55,7 @@ const al = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, tl = {
|
|
55
55
|
isActive: ((I = (Q = (V = D.options) == null ? void 0 : V.active) == null ? void 0 : Q.find((_) => _.key === O.key)) == null ? void 0 : I.isActive) ?? !0
|
56
56
|
};
|
57
57
|
}), j(!0);
|
58
|
-
}), (a, b) => (
|
58
|
+
}), (a, b) => (v(), q(x(Ve), {
|
59
59
|
modelValue: H.value,
|
60
60
|
"onUpdate:modelValue": b[3] || (b[3] = (k) => H.value = k),
|
61
61
|
class: "h-[36px]",
|
@@ -63,20 +63,20 @@ const al = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, tl = {
|
|
63
63
|
}, {
|
64
64
|
menu: C(() => [
|
65
65
|
W("div", al, [
|
66
|
-
g.value.length ? (
|
66
|
+
g.value.length ? (v(), F("div", tl, [
|
67
67
|
b[4] || (b[4] = W("span", { class: "text-oc-text-400 font-medium" }, "Fixed columns", -1)),
|
68
|
-
R(x(
|
68
|
+
R(x(we), be({
|
69
69
|
key: "key",
|
70
70
|
modelValue: g.value,
|
71
71
|
"onUpdate:modelValue": b[0] || (b[0] = (k) => g.value = k)
|
72
72
|
}, X), {
|
73
73
|
default: C(() => [
|
74
|
-
(
|
74
|
+
(v(!0), F(ae, null, se(g.value, (k, O) => (v(), F("div", {
|
75
75
|
key: k.key,
|
76
76
|
class: oe(["flex items-center justify-between h-[26px]", O ? "" : "is-disabled"])
|
77
77
|
}, [
|
78
|
-
W("span", null,
|
79
|
-
O ? (
|
78
|
+
W("span", null, ke(k.label), 1),
|
79
|
+
O ? (v(), q(x(Oe), {
|
80
80
|
key: 0,
|
81
81
|
width: "18",
|
82
82
|
height: "18",
|
@@ -90,18 +90,18 @@ const al = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, tl = {
|
|
90
90
|
])) : $("", !0),
|
91
91
|
W("div", sl, [
|
92
92
|
b[5] || (b[5] = W("span", { class: "text-oc-text-400 font-medium" }, "Active columns", -1)),
|
93
|
-
R(x(
|
93
|
+
R(x(we), be({
|
94
94
|
key: "key",
|
95
95
|
modelValue: m.value,
|
96
96
|
"onUpdate:modelValue": b[2] || (b[2] = (k) => m.value = k)
|
97
97
|
}, X, { "data-active-headers": "true" }), {
|
98
98
|
default: C(() => [
|
99
|
-
(
|
99
|
+
(v(!0), F(ae, null, se(m.value, (k) => (v(), F(ae, {
|
100
100
|
key: k.key
|
101
101
|
}, [
|
102
|
-
k.key !== "actions" ? (
|
102
|
+
k.key !== "actions" ? (v(), F("div", ol, [
|
103
103
|
W("div", ul, [
|
104
|
-
R(x(
|
104
|
+
R(x(Je), {
|
105
105
|
modelValue: k.isActive,
|
106
106
|
"onUpdate:modelValue": [
|
107
107
|
(O) => k.isActive = O,
|
@@ -109,9 +109,9 @@ const al = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, tl = {
|
|
109
109
|
],
|
110
110
|
class: "!w-fit"
|
111
111
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
112
|
-
W("div", rl,
|
112
|
+
W("div", rl, ke(k.label), 1)
|
113
113
|
]),
|
114
|
-
m.value.length > 1 ? (
|
114
|
+
m.value.length > 1 ? (v(), q(x(Oe), {
|
115
115
|
key: 0,
|
116
116
|
width: "18",
|
117
117
|
height: "18",
|
@@ -127,7 +127,7 @@ const al = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, tl = {
|
|
127
127
|
])
|
128
128
|
]),
|
129
129
|
default: C(() => [
|
130
|
-
R(x(
|
130
|
+
R(x(Fe), {
|
131
131
|
label: "Edit Column",
|
132
132
|
"left-icon": "setting",
|
133
133
|
variant: "secondary"
|
@@ -136,10 +136,10 @@ const al = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, tl = {
|
|
136
136
|
_: 1
|
137
137
|
}, 8, ["modelValue"]));
|
138
138
|
}
|
139
|
-
}, nl = { class: "relative flex flex-col gap-9" },
|
139
|
+
}, nl = { class: "relative flex flex-col gap-9" }, vl = {
|
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: "absolute flex items-center gap-5 left-5"
|
145
145
|
}, cl = {
|
@@ -191,7 +191,7 @@ const al = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, tl = {
|
|
191
191
|
"columns-changed": []
|
192
192
|
},
|
193
193
|
setup(L, { emit: ee }) {
|
194
|
-
var
|
194
|
+
var ne, ve, de, ce, fe, pe, me, ye, ge;
|
195
195
|
const p = L, D = ee, m = M(() => {
|
196
196
|
var l;
|
197
197
|
return (l = p.options) == null ? void 0 : l.pagination;
|
@@ -207,8 +207,8 @@ const al = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, tl = {
|
|
207
207
|
...j.value,
|
208
208
|
headers: H.value ? H.value.map((e) => {
|
209
209
|
var o, r;
|
210
|
-
return e.class = ((r = (o = j.value) == null ? void 0 : o.headers.find((
|
211
|
-
}).filter((e) =>
|
210
|
+
return e.class = ((r = (o = j.value) == null ? void 0 : o.headers.find((d) => d.key === e.key)) == null ? void 0 : r.class) ?? "", e;
|
211
|
+
}).filter((e) => e.isActive) : (l = j.value) == null ? void 0 : l.headers.filter((e) => Ie(e.key))
|
212
212
|
};
|
213
213
|
}), a = M(() => {
|
214
214
|
var l;
|
@@ -219,9 +219,9 @@ const al = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, tl = {
|
|
219
219
|
}), k = M(() => {
|
220
220
|
var l;
|
221
221
|
return ((l = m.value) == null ? void 0 : l.last_page) === 1;
|
222
|
-
}), O = N(!1), V = N(p.filter[(ve = (
|
223
|
-
(
|
224
|
-
), _ = ((
|
222
|
+
}), O = N(!1), V = N(p.filter[(ve = (ne = a.value) == null ? void 0 : ne.tabs) == null ? void 0 : ve.key]), Q = N(p.filter.page), I = N(
|
223
|
+
(ce = (de = a.value) == null ? void 0 : de.per_page) != null && ce.key ? p.filter[(pe = (fe = a.value) == null ? void 0 : fe.per_page) == null ? void 0 : pe.key] : p.filter.per_page
|
224
|
+
), _ = ((ge = p.filter[(ye = (me = a.value) == null ? void 0 : me.search) == null ? void 0 : ye.key]) == null ? void 0 : ge.trim()) ?? "", z = N(_ ? _.split(",") : []), re = N(!1), Ae = M(
|
225
225
|
() => {
|
226
226
|
var l, e;
|
227
227
|
return (e = (l = p.options) == null ? void 0 : l.perPageOptions) == null ? void 0 : e.map(
|
@@ -231,7 +231,7 @@ const al = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, tl = {
|
|
231
231
|
})
|
232
232
|
);
|
233
233
|
}
|
234
|
-
),
|
234
|
+
), Ce = M(() => {
|
235
235
|
let l = [
|
236
236
|
{
|
237
237
|
label: "10",
|
@@ -265,39 +265,39 @@ const al = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, tl = {
|
|
265
265
|
label: "99",
|
266
266
|
value: 99
|
267
267
|
}
|
268
|
-
], e =
|
268
|
+
], e = Ae.value ?? l;
|
269
269
|
if (m.value) {
|
270
270
|
const o = m.value.total < 100 ? m.value.total : 100;
|
271
271
|
o > 10 && (e = e.filter((r) => r.value <= o));
|
272
272
|
}
|
273
273
|
return [...new Set(e)];
|
274
|
-
}),
|
274
|
+
}), De = M(() => {
|
275
275
|
var l;
|
276
276
|
return ((l = p.selected) == null ? void 0 : l.length) > 0;
|
277
277
|
}), ie = (l) => {
|
278
|
-
!l.trim() || !t.value.selectedSearchOption &&
|
279
|
-
},
|
280
|
-
|
278
|
+
!l.trim() || !t.value.selectedSearchOption && z.value.includes(l) || (z.value = [l], K(), D("search-query-changed", l));
|
279
|
+
}, Ke = (l) => {
|
280
|
+
z.value = z.value.filter((e) => e !== l), K();
|
281
281
|
}, Z = p.filter;
|
282
282
|
!Z && m ? Z.page = 1 : !Z && g && (Z.cursor = "");
|
283
|
-
const t = N(Z),
|
284
|
-
var e, o, r,
|
285
|
-
|
283
|
+
const t = N(Z), Le = () => {
|
284
|
+
var e, o, r, d, n, s, c, y, w, S, A, P, U, Y;
|
285
|
+
z.value = [], V.value = "";
|
286
286
|
const l = {};
|
287
|
-
a.value ? Z.page = 1 : Z.cursor = "", (o = (e = a.value) == null ? void 0 : e.per_page) != null && o.key ? l[(
|
288
|
-
},
|
287
|
+
a.value ? Z.page = 1 : Z.cursor = "", (o = (e = a.value) == null ? void 0 : e.per_page) != null && o.key ? l[(d = (r = a.value) == null ? void 0 : r.per_page) == null ? void 0 : d.key] = I.value : l.per_page = I.value, (s = (n = a.value) == null ? void 0 : n.tabs) != null && s.key ? l[(y = (c = a.value) == null ? void 0 : c.tabs) == null ? void 0 : y.key] = V.value : l.tabs = V.value, (S = (w = a.value) == null ? void 0 : w.columnEdit) != null && S.key && (l[(P = (A = a.value) == null ? void 0 : A.columnEdit) == null ? void 0 : P.key] = t.value[(Y = (U = a.value) == null ? void 0 : U.columnEdit) == null ? void 0 : Y.key]), t.value = l, K();
|
288
|
+
}, Pe = () => {
|
289
289
|
K(null, Q.value);
|
290
|
-
},
|
291
|
-
p.id &&
|
292
|
-
},
|
293
|
-
var s, c, y, w, S, A, P, U, Y,
|
294
|
-
m.value && !e && (Q.value = 1), m.value ? t.value.page = Q.value : t.value.cursor = o, (s = a.value) != null && s.per_page ? t.value[a.value.per_page.key] = I.value : t.value.per_page = I.value, (c = a.value) != null && c.tabs &&
|
290
|
+
}, Ue = () => {
|
291
|
+
p.id && $e(p.id, JSON.stringify(t.value));
|
292
|
+
}, Ye = () => p.id ? ue(p.id) : null, K = (l = null, e = !1, o = "", r = !1, d = !1) => {
|
293
|
+
var s, c, y, w, S, A, P, U, Y, J, B, u, E;
|
294
|
+
m.value && !e && (Q.value = 1), m.value ? t.value.page = Q.value : t.value.cursor = o, (s = a.value) != null && s.per_page ? t.value[a.value.per_page.key] = I.value : t.value.per_page = I.value, (c = a.value) != null && c.tabs && d && (t.value[a.value.tabs.key] = V.value), (y = a.value) != null && y.search && ((S = (w = a.value.search) == null ? void 0 : w.options) != null && S.length ? (Object.keys(t.value).forEach((f) => {
|
295
295
|
var h;
|
296
296
|
(h = a.value.search.options) != null && h.map((i) => i.value).includes(f) && delete t.value[f];
|
297
|
-
}), t.value[((A = t.value) == null ? void 0 : A.selectedSearchOption) || ((Y = (U = (P = a.value.search) == null ? void 0 : P.options) == null ? void 0 : U[0]) == null ? void 0 : Y.value) || a.value.search.key] =
|
297
|
+
}), t.value[((A = t.value) == null ? void 0 : A.selectedSearchOption) || ((Y = (U = (P = a.value.search) == null ? void 0 : P.options) == null ? void 0 : U[0]) == null ? void 0 : Y.value) || a.value.search.key] = z.value.join()) : t.value[a.value.search.key] = z.value.join()), l && (O.value = !1, t.value = { ...t.value, ...l }, Object.keys(t.value).forEach((f) => {
|
298
298
|
Array.isArray(t.value[f]) && t.value[f].length === 0 && delete t.value[f];
|
299
299
|
}));
|
300
|
-
let n = (B = (
|
300
|
+
let n = (B = (J = a.value) == null ? void 0 : J.tabs) == null ? void 0 : B.key;
|
301
301
|
if (n && V.value !== t.value[n]) {
|
302
302
|
const f = (E = (u = a.value.tabs) == null ? void 0 : u.options) == null ? void 0 : E.find(
|
303
303
|
(h) => {
|
@@ -308,29 +308,29 @@ const al = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, tl = {
|
|
308
308
|
if (f != null && f.value)
|
309
309
|
return V.value = f.value, K(), !1;
|
310
310
|
}
|
311
|
-
|
312
|
-
},
|
311
|
+
Ue(), D("update:filter", t.value, r);
|
312
|
+
}, Be = (l, e) => {
|
313
313
|
(e === a.value.tabs.key || e === "tabs") && (V.value = ""), K(l), D("filter-removed", e);
|
314
|
-
},
|
314
|
+
}, Me = (l) => {
|
315
315
|
let e = [];
|
316
316
|
return l.forEach((o) => {
|
317
317
|
e.push(o.key);
|
318
318
|
}), e;
|
319
|
-
},
|
319
|
+
}, Ne = M(() => {
|
320
320
|
if (t.value) {
|
321
321
|
let l = [];
|
322
322
|
return Object.keys(t.value).forEach((e) => {
|
323
|
-
var n, s, c, y, w, S, A, P, U, Y,
|
323
|
+
var n, s, c, y, w, S, A, P, U, Y, J;
|
324
324
|
let o = (s = (n = a.value) == null ? void 0 : n.tabs) == null ? void 0 : s.key;
|
325
|
-
const r = (y = (c = a.value) == null ? void 0 : c.search) == null ? void 0 : y.key,
|
325
|
+
const r = (y = (c = a.value) == null ? void 0 : c.search) == null ? void 0 : y.key, d = ((S = (w = a.value) == null ? void 0 : w.per_page) == null ? void 0 : S.key) ?? "per_page";
|
326
326
|
if ((A = a.value.form) == null || A.find((B) => {
|
327
327
|
B.name === o && (o = "");
|
328
|
-
}), e !== "page" && e !== "cursor" && e !==
|
328
|
+
}), e !== "page" && e !== "cursor" && e !== d && e !== o && e !== r) {
|
329
329
|
let B = null, u = (P = a.value.form) == null ? void 0 : P.find((f) => {
|
330
330
|
if (typeof f.name == "object") {
|
331
331
|
let h = !1;
|
332
332
|
return f.name.forEach((i) => {
|
333
|
-
i.key === e && (h = !0, B =
|
333
|
+
i.key === e && (h = !0, B = Me(f.name));
|
334
334
|
}), h;
|
335
335
|
} else
|
336
336
|
return f.name === e;
|
@@ -348,7 +348,7 @@ const al = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, tl = {
|
|
348
348
|
const h = te(t.value[u.name[0].key]).format("MM/DD/YYYY"), i = te(t.value[u.name[1].key]).format("MM/DD/YYYY");
|
349
349
|
E = h === i ? h : h + " - " + i;
|
350
350
|
} else E = te(t.value[u.name]).format("MM/DD/YYYY");
|
351
|
-
let f = `${(
|
351
|
+
let f = `${(J = u == null ? void 0 : u.props) == null ? void 0 : J.label} : ${E}`;
|
352
352
|
u && u.name && typeof u.name == "object" && l.find((i) => i.name === B[0]) && (f = ""), l.push({
|
353
353
|
label: f,
|
354
354
|
name: e,
|
@@ -359,41 +359,41 @@ const al = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, tl = {
|
|
359
359
|
}), l;
|
360
360
|
}
|
361
361
|
return [];
|
362
|
-
}),
|
363
|
-
var e, o, r,
|
364
|
-
return ((s = (n = (
|
362
|
+
}), Ie = (l) => {
|
363
|
+
var e, o, r, d, n, s;
|
364
|
+
return ((s = (n = (d = (r = t.value) == null ? void 0 : r[(o = (e = a.value) == null ? void 0 : e.columnEdit) == null ? void 0 : o.key]) == null ? void 0 : d.active) == null ? void 0 : n.find((c) => c.key === l)) == null ? void 0 : s.isActive) ?? !0;
|
365
365
|
}, Te = ({ fixedHeaders: l, activeHeaders: e, isOnMount: o }) => {
|
366
|
-
var r,
|
367
|
-
if (t.value[(
|
366
|
+
var r, d, n, s, c, y, w, S;
|
367
|
+
if (t.value[(d = (r = a.value) == null ? void 0 : r.columnEdit) == null ? void 0 : d.key] || (t.value[(s = (n = a.value) == null ? void 0 : n.columnEdit) == null ? void 0 : s.key] = {}), t.value[(y = (c = a.value) == null ? void 0 : c.columnEdit) == null ? void 0 : y.key].fixed = l, t.value[(S = (w = a.value) == null ? void 0 : w.columnEdit) == null ? void 0 : S.key].active = e, H.value = [...l, ...e], !o) {
|
368
368
|
const A = ll(l, e);
|
369
|
-
|
369
|
+
$e(a.value.columnEdit.localStorageKey, A);
|
370
370
|
}
|
371
371
|
D("columns-changed", e);
|
372
372
|
}, qe = () => {
|
373
|
-
var l, e, o, r,
|
373
|
+
var l, e, o, r, d, n;
|
374
374
|
if ((e = (l = a.value) == null ? void 0 : l.columnEdit) != null && e.localStorageKey) {
|
375
375
|
const s = ue(a.value.columnEdit.localStorageKey);
|
376
376
|
if (s) {
|
377
|
-
const { fixed: c, active: y } =
|
377
|
+
const { fixed: c, active: y } = je(
|
378
378
|
s,
|
379
379
|
j.value.headers,
|
380
380
|
a.value.columnEdit.localStorageKey
|
381
381
|
);
|
382
|
-
t.value[(r = (o = a.value) == null ? void 0 : o.columnEdit) == null ? void 0 : r.key].fixed = c, t.value[(n = (
|
382
|
+
t.value[(r = (o = a.value) == null ? void 0 : o.columnEdit) == null ? void 0 : r.key].fixed = c, t.value[(n = (d = a.value) == null ? void 0 : d.columnEdit) == null ? void 0 : n.key].active = y, H.value = [...c, ...y];
|
383
383
|
}
|
384
384
|
}
|
385
385
|
}, Qe = (l) => {
|
386
386
|
t.value.selectedSearchOption = l;
|
387
387
|
};
|
388
|
-
return
|
389
|
-
var e, o, r,
|
388
|
+
return Ee(() => {
|
389
|
+
var e, o, r, d, n, s, c;
|
390
390
|
qe();
|
391
|
-
const l =
|
392
|
-
l && (t.value = JSON.parse(l), V.value = V.value || ((e = t.value) == null ? void 0 : e.tabs) || ((
|
391
|
+
const l = Ye();
|
392
|
+
l && (t.value = JSON.parse(l), V.value = V.value || ((e = t.value) == null ? void 0 : e.tabs) || ((d = t.value) == null ? void 0 : d[(r = (o = a.value) == null ? void 0 : o.tabs) == null ? void 0 : r.key]), (n = t.value) != null && n.selectedSearchOption && ie(t.value[(s = t.value) == null ? void 0 : s.selectedSearchOption]), Q.value = ((c = t.value) == null ? void 0 : c.page) || 1, K(null, !0, t.value.cursor, !0));
|
393
393
|
}), (l, e) => {
|
394
|
-
var o, r,
|
395
|
-
return
|
396
|
-
j.value ? (
|
394
|
+
var o, r, d, n;
|
395
|
+
return v(), F("div", nl, [
|
396
|
+
j.value ? (v(), q(x(He), {
|
397
397
|
key: 0,
|
398
398
|
selected: L.selected,
|
399
399
|
"row-key": L.rowKey,
|
@@ -407,7 +407,7 @@ const al = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, tl = {
|
|
407
407
|
"onUpdate:selected": e[8] || (e[8] = (s) => l.$emit("update:selected", s)),
|
408
408
|
"onClick:row": e[9] || (e[9] = (s) => l.$emit("click:row", s)),
|
409
409
|
"onHover:cell": e[10] || (e[10] = (s) => l.$emit("hover:cell", s))
|
410
|
-
},
|
410
|
+
}, ze({
|
411
411
|
after: C(() => [
|
412
412
|
T(l.$slots, "after")
|
413
413
|
]),
|
@@ -415,24 +415,24 @@ const al = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, tl = {
|
|
415
415
|
T(l.$slots, "empty")
|
416
416
|
]),
|
417
417
|
"table-header": C((s) => [
|
418
|
-
T(l.$slots, "table-header", xe(
|
418
|
+
T(l.$slots, "table-header", he(xe(s)))
|
419
419
|
]),
|
420
420
|
"table-body": C((s) => [
|
421
|
-
T(l.$slots, "table-body", xe(
|
421
|
+
T(l.$slots, "table-body", he(xe(s)))
|
422
422
|
]),
|
423
423
|
_: 2
|
424
424
|
}, [
|
425
|
-
l.$slots.before || (o = a.value) != null && o.search || (r = a.value) != null && r.form || (
|
425
|
+
l.$slots.before || (o = a.value) != null && o.search || (r = a.value) != null && r.form || (d = a.value) != null && d.tabs ? {
|
426
426
|
name: "before",
|
427
427
|
fn: C(() => {
|
428
428
|
var s, c, y, w;
|
429
429
|
return [
|
430
430
|
T(l.$slots, "before"),
|
431
|
-
(s = a.value) != null && s.search || (c = a.value) != null && c.form || (y = a.value) != null && y.tabs ? (
|
432
|
-
|
431
|
+
(s = a.value) != null && s.search || (c = a.value) != null && c.form || (y = a.value) != null && y.tabs ? (v(), F("div", vl, [
|
432
|
+
De.value ? (v(), F("div", dl, [
|
433
433
|
T(l.$slots, "bulk-actions", { selectedRows: L.selected })
|
434
|
-
])) : (
|
435
|
-
(w = a.value) != null && w.tabs ? (
|
434
|
+
])) : (v(), F("div", cl, [
|
435
|
+
(w = a.value) != null && w.tabs ? (v(), q(x(Ze), {
|
436
436
|
key: 0,
|
437
437
|
modelValue: V.value,
|
438
438
|
"onUpdate:modelValue": [
|
@@ -445,25 +445,25 @@ const al = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, tl = {
|
|
445
445
|
}, null, 8, ["modelValue", "is-disabled", "tabs"])) : $("", !0)
|
446
446
|
])),
|
447
447
|
T(l.$slots, "filter-options", {}, () => {
|
448
|
-
var S, A, P, U, Y,
|
448
|
+
var S, A, P, U, Y, J, B, u, E, f, h;
|
449
449
|
return [
|
450
|
-
(S = a.value) != null && S.search || (A = a.value) != null && A.form || (P = a.value) != null && P.columnEdit ? (
|
450
|
+
(S = a.value) != null && S.search || (A = a.value) != null && A.form || (P = a.value) != null && P.columnEdit ? (v(), F("div", {
|
451
451
|
key: 0,
|
452
452
|
class: oe([
|
453
453
|
"flex gap-3 absolute ml-auto bg-oc-bg-light right-4 max-w-[calc(100%-24px)]",
|
454
454
|
a.value ? re.value ? "md:w-fit w-full" : "" : "w-full justify-end"
|
455
455
|
])
|
456
456
|
}, [
|
457
|
-
(U = a.value) != null && U.search ? (
|
457
|
+
(U = a.value) != null && U.search ? (v(), q(x(Ge), {
|
458
458
|
key: 0,
|
459
459
|
"is-search-only": !a.value.tabs || a.value.isSearchOnly,
|
460
460
|
"search-options": ((Y = a.value.search) == null ? void 0 : Y.options) ?? [],
|
461
|
-
"selected-option": (((
|
461
|
+
"selected-option": (((J = t.value) == null ? void 0 : J.selectedSearchOption) || ((E = (u = (B = a.value.search) == null ? void 0 : B.options) == null ? void 0 : u[0]) == null ? void 0 : E.value)) ?? "keywords",
|
462
462
|
onAddQuery: ie,
|
463
463
|
onToggle: e[2] || (e[2] = (i) => re.value = i),
|
464
464
|
onChangeSearchKey: Qe
|
465
465
|
}, null, 8, ["is-search-only", "search-options", "selected-option"])) : $("", !0),
|
466
|
-
(f = a.value) != null && f.form ? (
|
466
|
+
(f = a.value) != null && f.form ? (v(), q(x(Ve), {
|
467
467
|
key: 1,
|
468
468
|
modelValue: O.value,
|
469
469
|
"onUpdate:modelValue": [
|
@@ -475,7 +475,7 @@ const al = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, tl = {
|
|
475
475
|
"is-attach-to-body": ""
|
476
476
|
}, {
|
477
477
|
menu: C(() => [
|
478
|
-
O.value ? (
|
478
|
+
O.value ? (v(), q(x(We), {
|
479
479
|
key: 0,
|
480
480
|
id: L.id,
|
481
481
|
"json-form": a.value.form ?? [],
|
@@ -498,7 +498,7 @@ const al = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, tl = {
|
|
498
498
|
}, 8, ["id", "json-form", "grid", "values", "actions"])) : $("", !0)
|
499
499
|
]),
|
500
500
|
default: C(() => [
|
501
|
-
R(x(
|
501
|
+
R(x(Fe), {
|
502
502
|
"is-active": O.value,
|
503
503
|
variant: "secondary",
|
504
504
|
"left-icon": "filter"
|
@@ -506,7 +506,7 @@ const al = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, tl = {
|
|
506
506
|
]),
|
507
507
|
_: 3
|
508
508
|
}, 8, ["modelValue"])) : $("", !0),
|
509
|
-
a.value.columnEdit ? (
|
509
|
+
a.value.columnEdit ? (v(), q(il, {
|
510
510
|
key: 2,
|
511
511
|
options: t.value.columnEdit,
|
512
512
|
headers: ((h = j.value) == null ? void 0 : h.headers) || [],
|
@@ -518,12 +518,12 @@ const al = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, tl = {
|
|
518
518
|
})
|
519
519
|
])) : $("", !0),
|
520
520
|
R(x(Xe), {
|
521
|
-
filters:
|
522
|
-
queries:
|
521
|
+
filters: Ne.value,
|
522
|
+
queries: z.value,
|
523
523
|
class: "border-t border-oc-gray-200",
|
524
|
-
onRemoveQuery:
|
525
|
-
onRemoveAll:
|
526
|
-
onRemoveFilter:
|
524
|
+
onRemoveQuery: Ke,
|
525
|
+
onRemoveAll: Le,
|
526
|
+
onRemoveFilter: Be
|
527
527
|
}, null, 8, ["filters", "queries"])
|
528
528
|
];
|
529
529
|
}),
|
@@ -540,34 +540,34 @@ const al = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, tl = {
|
|
540
540
|
}))
|
541
541
|
]), 1032, ["selected", "row-key", "options", "is-loading", "loading-rows", "row-class", "row-link", "is-sticky", "is-borderless"])) : $("", !0),
|
542
542
|
T(l.$slots, "before-pagination"),
|
543
|
-
m.value || g.value ? (
|
543
|
+
m.value || g.value ? (v(), F("div", {
|
544
544
|
key: 1,
|
545
545
|
class: oe(["flex items-center gap-3", m.value && m.value.last_page === 1 ? "justify-end" : ""])
|
546
546
|
}, [
|
547
|
-
m.value && !k.value ? (
|
547
|
+
m.value && !k.value ? (v(), q(x(_e), {
|
548
548
|
key: 0,
|
549
549
|
modelValue: Q.value,
|
550
550
|
"onUpdate:modelValue": [
|
551
551
|
e[11] || (e[11] = (s) => Q.value = s),
|
552
|
-
|
552
|
+
Pe
|
553
553
|
],
|
554
554
|
class: "justify-center",
|
555
555
|
"max-page": m.value.last_page,
|
556
556
|
strategy: m.value.strategy,
|
557
557
|
"total-visible": "5"
|
558
558
|
}, null, 8, ["modelValue", "max-page", "strategy"])) : $("", !0),
|
559
|
-
g.value ? (
|
560
|
-
R(x(
|
559
|
+
g.value ? (v(), F("div", fl, [
|
560
|
+
R(x(Se), {
|
561
561
|
disabled: !g.value.prev,
|
562
562
|
onClick: e[12] || (e[12] = (s) => g.value.prev ? K(null, !1, g.value.prev) : null)
|
563
563
|
}, null, 8, ["disabled"]),
|
564
|
-
R(x(
|
564
|
+
R(x(Se), {
|
565
565
|
disabled: !g.value.next,
|
566
566
|
"is-next": "",
|
567
567
|
onClick: e[13] || (e[13] = (s) => g.value.next ? K(null, !1, g.value.next) : null)
|
568
568
|
}, null, 8, ["disabled"])
|
569
569
|
])) : $("", !0),
|
570
|
-
b.value ? $("", !0) : (
|
570
|
+
b.value ? $("", !0) : (v(), F("div", pl, [
|
571
571
|
R(x(el), {
|
572
572
|
modelValue: I.value,
|
573
573
|
"onUpdate:modelValue": [
|
@@ -577,7 +577,7 @@ const al = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, tl = {
|
|
577
577
|
label: "Item per page",
|
578
578
|
"is-inline-label": "",
|
579
579
|
"popper-options": { placement: "auto" },
|
580
|
-
options:
|
580
|
+
options: Ce.value
|
581
581
|
}, null, 8, ["modelValue", "options"])
|
582
582
|
]))
|
583
583
|
], 2)) : $("", !0)
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { ref as w, openBlock as c, createBlock as y, unref as l, withCtx as r, createElementBlock as b, Fragment as C, renderList as
|
2
|
-
import {
|
1
|
+
import { ref as w, openBlock as c, createBlock as y, unref as l, withCtx as r, createElementBlock as b, Fragment as C, renderList as $, normalizeClass as s, createElementVNode as o, createCommentVNode as m, renderSlot as u, toDisplayString as x, createVNode as f } from "vue";
|
2
|
+
import { aI as D, aE as S, az as B } from "./index-DkumyhAj.js";
|
3
3
|
import { _ as g } from "./OcIcon-CSpRxnwd.js";
|
4
|
-
const M = ["onMouseleave", "onMouseover", "onClick"], L = { class: "flex justify-evenly w-full" },
|
4
|
+
const M = ["onMouseleave", "onMouseover", "onClick"], L = { class: "flex justify-evenly w-full" }, E = { class: "flex w-full" }, N = { class: "ml-4 flex w-full" }, U = { class: "flex items-center flex-wrap w-full" }, z = ["href"], O = { class: "min-w-[120px]" }, W = { class: "truncate w-[200px]" }, j = { class: "flex items-center ml-4" }, A = { class: "flex w-full" }, T = {
|
5
5
|
__name: "OcDraggableList",
|
6
6
|
props: {
|
7
7
|
modelValue: Array,
|
@@ -37,14 +37,14 @@ const M = ["onMouseleave", "onMouseover", "onClick"], L = { class: "flex justify
|
|
37
37
|
const V = p, i = w([]), v = w([]), K = (a, d) => {
|
38
38
|
V("update:modelValue", a, d);
|
39
39
|
};
|
40
|
-
return (a, d) => (c(), y(l(
|
40
|
+
return (a, d) => (c(), y(l(D), {
|
41
41
|
"model-value": t.modelValue,
|
42
42
|
class: "grid gap-3",
|
43
43
|
"onUpdate:modelValue": d[0] || (d[0] = (n, e) => K(n, e)),
|
44
44
|
onDetectMove: d[1] || (d[1] = (n) => a.$emit("detectMove", n))
|
45
45
|
}, {
|
46
46
|
default: r(({ list: n }) => [
|
47
|
-
(c(!0), b(C, null,
|
47
|
+
(c(!0), b(C, null, $(n, (e, k) => (c(), b("div", {
|
48
48
|
key: e.id,
|
49
49
|
class: s(["group text-oc-text-500 p-4 flex flex-col w-full rounded border border-gray-200 cursor-pointer", [
|
50
50
|
e[t.childrenKey] ? "hover:shadow bg-oc-gray-50" : t.isChildren && !i.value[e.id] ? "bg-oc-accent-1-50" : t.classes ? t.classes : "hover:shadow bg-oc-accent-1-50 hover:bg-oc-gray-50",
|
@@ -59,7 +59,7 @@ const M = ["onMouseleave", "onMouseover", "onClick"], L = { class: "flex justify
|
|
59
59
|
onClick: (h) => a.$emit("click:element", e)
|
60
60
|
}, [
|
61
61
|
o("div", L, [
|
62
|
-
o("div",
|
62
|
+
o("div", E, [
|
63
63
|
o("div", {
|
64
64
|
class: s([
|
65
65
|
"px-2 flex items-center text-oc-text-400",
|
@@ -81,8 +81,8 @@ const M = ["onMouseleave", "onMouseover", "onClick"], L = { class: "flex justify
|
|
81
81
|
)
|
82
82
|
}, null, 8, ["name", "class"])) : m("", !0)
|
83
83
|
], 2),
|
84
|
-
o("div",
|
85
|
-
o("div",
|
84
|
+
o("div", N, [
|
85
|
+
o("div", U, [
|
86
86
|
u(a.$slots, "title", { item: e }, () => [
|
87
87
|
o("div", {
|
88
88
|
class: s(["truncate", t.titleWidth])
|
@@ -114,7 +114,7 @@ const M = ["onMouseleave", "onMouseover", "onClick"], L = { class: "flex justify
|
|
114
114
|
_: 2
|
115
115
|
}, 1024),
|
116
116
|
o("span", W, x(e[t.linkKey]), 1)
|
117
|
-
], 8,
|
117
|
+
], 8, z)) : m("", !0)
|
118
118
|
])
|
119
119
|
])
|
120
120
|
]),
|
@@ -151,7 +151,7 @@ const M = ["onMouseleave", "onMouseover", "onClick"], L = { class: "flex justify
|
|
151
151
|
])
|
152
152
|
])
|
153
153
|
]),
|
154
|
-
o("div",
|
154
|
+
o("div", A, [
|
155
155
|
u(a.$slots, "content", {
|
156
156
|
item: e,
|
157
157
|
index: k
|
@@ -164,5 +164,5 @@ const M = ["onMouseleave", "onMouseover", "onClick"], L = { class: "flex justify
|
|
164
164
|
}
|
165
165
|
};
|
166
166
|
export {
|
167
|
-
|
167
|
+
T as default
|
168
168
|
};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as m, computed as p, openBlock as s, createElementBlock as l, createVNode as f, unref as c, withCtx as v, createElementVNode as n, Fragment as T, renderList as V, normalizeClass as k, createTextVNode as C, createBlock as N, createCommentVNode as z } from "vue";
|
2
|
-
import {
|
2
|
+
import { az as U, d as J, B as b } from "./index-DkumyhAj.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 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-
|
2
|
+
import { u as w, B as m } from "./index-DkumyhAj.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: {
|