@orchidui/core 1.0.0 → 1.0.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-Boa7mNFU.js → OcComplexCalendar-D0q5_qtH.js} +1 -1
- package/dist/{OcComplexDatePicker-BydI4VSR.js → OcComplexDatePicker-BgMNZypo.js} +1 -1
- package/dist/{OcCropper-7E2i6ayU.js → OcCropper-D0VpBPc7.js} +1 -1
- package/dist/{OcDataTable-CsCGrRx7.js → OcDataTable-NNFjLPRE.js} +73 -74
- package/dist/{OcDraggableList-BUu5SgoA.js → OcDraggableList-Ce7w7Hj2.js} +1 -1
- package/dist/{OcEmojiPicker-DYYK7OB3.js → OcEmojiPicker-C33yKvB3.js} +1 -1
- package/dist/{OcFilterForm-7ehuJUMp.js → OcFilterForm-CuMyxMDR.js} +1 -1
- package/dist/{OcFilterSearch-B4AZsLBn.js → OcFilterSearch-Dr0sLmxm.js} +1 -1
- package/dist/{OcFilterSearchFor-DfwJG-5N.js → OcFilterSearchFor-CYXRLpZ7.js} +1 -1
- package/dist/{OcModalCropper-Z4jlnFc5.js → OcModalCropper-CfhIQIfv.js} +2 -2
- package/dist/{OcTimePicker-D9fPU8_m.js → OcTimePicker-CnmyZhtc.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-DHj4RHJZ.js → SubPlanCard-BVkUJeiv.js} +1 -1
- package/dist/{ThumbnailSection-CJBS0QXp.js → ThumbnailSection-DgqGSe0M.js} +1 -1
- package/dist/{ThumbnailTheme-hey6se0g.js → ThumbnailTheme-ClOM3MUu.js} +1 -1
- package/dist/{index-DyVteXE3.js → index-BJ6R2jLm.js} +7 -7
- package/dist/index.js +1 -1
- package/package.json +1 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
import { S as l, M as n, R as s, L as b, O as T, P as d, N as o, Q as i } from "../../index-
|
1
|
+
import { S as l, M as n, R as s, L as b, O as T, P as d, N as o, Q as i } from "../../index-BJ6R2jLm.js";
|
2
2
|
export {
|
3
3
|
l as ExpandingHeaderRow,
|
4
4
|
n as ExpandingTable,
|
package/dist/Form/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as e, B as t, p as o, a as p, b as n, c as r, d as i, q as u, m as l, e as I, f as d, n as c, u as m, v as x, l as S, g, h as k, i as C, j as b, r as f, k as h, s as O, t as B, o as G } from "../index-
|
1
|
+
import { _ as e, B as t, p as o, a as p, b as n, c as r, d as i, q as u, m as l, e as I, f as d, n as c, u as m, v as x, l as S, g, h as k, i as C, j as b, r as f, k as h, s as O, t as B, o as G } from "../index-BJ6R2jLm.js";
|
2
2
|
import { T } from "../OcToggle-bIJaLDMZ.js";
|
3
3
|
import { S as P } from "../OcSlider-DW9x8eas.js";
|
4
4
|
export {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { ref as x, openBlock as o, createElementBlock as n, createElementVNode as b, Fragment as V, renderList as v, normalizeClass as k, unref as a, toDisplayString as p, createCommentVNode as i, createVNode as d, mergeProps as m } from "vue";
|
2
2
|
import { DatePicker as B } from "v-calendar";
|
3
3
|
import r from "dayjs";
|
4
|
-
import { B as f } from "./index-
|
4
|
+
import { B as f } from "./index-BJ6R2jLm.js";
|
5
5
|
const C = { class: "flex flex-col p-6 gap-y-7 w-fit shadow-normal rounded" }, h = { class: "flex gap-x-7" }, M = {
|
6
6
|
key: 0,
|
7
7
|
class: "flex flex-col py-2 gap-y-4"
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as s, openBlock as d, createBlock as m, unref as t, withCtx as l, createVNode as n } from "vue";
|
2
|
-
import { az as c, _ as f, as as b, aA as p, e as V } from "./index-
|
2
|
+
import { az as c, _ as f, as as b, aA as p, e as V } from "./index-BJ6R2jLm.js";
|
3
3
|
import r from "dayjs";
|
4
4
|
const x = {
|
5
5
|
__name: "OcComplexDatePicker",
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as p, watch as S, nextTick as F, openBlock as n, createElementBlock as x, createElementVNode as c, createBlock as u, unref as o, Fragment as A, createVNode as m, createCommentVNode as r, withCtx as y } from "vue";
|
2
|
-
import { B as g, e as V, b as D, i as G, ax as H } from "./index-
|
2
|
+
import { B as g, e as V, b as D, i as G, ax as H } from "./index-BJ6R2jLm.js";
|
3
3
|
import { Cropper as J } from "vue-advanced-cropper";
|
4
4
|
import { _ as K } from "./OcIcon-CJgBICxh.js";
|
5
5
|
const M = { class: "flex flex-col gap-y-5" }, P = ["src"], Q = { class: "flex gap-x-1 justify-center relative" }, W = { class: "grid grid-cols-2 gap-4" }, ee = {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as A, onMounted as Ve, openBlock as i, createBlock as K, unref as y, withCtx as $, createElementVNode as q, createElementBlock as x, 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 Re, renderSlot as C, normalizeProps as ke, guardReactiveProps as he } from "vue";
|
2
|
-
import { as as Fe, b as qe, B as Ee, L as _e, Y as Je, aD as ze, aE as He, aF as Ge, I as We, J as xe, k as Xe } from "./index-
|
2
|
+
import { as as Fe, b as qe, B as Ee, L as _e, Y as Je, aD as ze, aE as He, aF as Ge, I as We, J as xe, k as Xe } from "./index-BJ6R2jLm.js";
|
3
3
|
import le from "dayjs";
|
4
4
|
import { VueDraggableNext as we } from "vue-draggable-next";
|
5
5
|
import { getFromLocalStorage as se, formatHeadersFromLocalStorage as Oe, formatHeadersToLocalStorage as Ze, setInLocalStorage as $e } from "./DataTable/utils/editColumnsUtils.js";
|
@@ -10,7 +10,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
10
10
|
}, al = { class: "gap-y-2 flex flex-col" }, tl = {
|
11
11
|
key: 0,
|
12
12
|
class: "flex items-center bg-white justify-between h-[26px]"
|
13
|
-
}, sl = { class: "flex items-center w-full gap-x-3" }, ol = { class: "truncate w-full max-w-[160px]" },
|
13
|
+
}, sl = { class: "flex items-center w-full gap-x-3" }, ol = { class: "truncate w-full max-w-[160px]" }, rl = {
|
14
14
|
__name: "ColumnEdit",
|
15
15
|
props: {
|
16
16
|
options: {
|
@@ -28,13 +28,13 @@ 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
|
31
|
+
const d = Z, V = D, v = A([]), f = A([]), T = A(!1), S = (a = !1) => {
|
32
32
|
f.value = f.value.map((p) => ({
|
33
33
|
...p,
|
34
34
|
isActive: !0
|
35
|
-
})),
|
35
|
+
})), d("update-order", {
|
36
36
|
fixedHeaders: f.value,
|
37
|
-
activeHeaders:
|
37
|
+
activeHeaders: v.value,
|
38
38
|
isOnMount: a
|
39
39
|
});
|
40
40
|
}, W = {
|
@@ -48,7 +48,7 @@ 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(V.localKey), { fixed: p, active: m } = Oe(a, V.headers, V.localKey);
|
51
|
-
f.value = p || V.headers.slice(0, 1),
|
51
|
+
f.value = p || V.headers.slice(0, 1), v.value = m || V.headers.slice(1).map((h) => {
|
52
52
|
var F, B, P;
|
53
53
|
return {
|
54
54
|
...h,
|
@@ -92,11 +92,11 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
92
92
|
p[5] || (p[5] = q("span", { class: "text-oc-text-400 font-medium" }, "Active columns", -1)),
|
93
93
|
U(y(we), ge({
|
94
94
|
key: "key",
|
95
|
-
modelValue:
|
96
|
-
"onUpdate:modelValue": p[2] || (p[2] = (m) =>
|
95
|
+
modelValue: v.value,
|
96
|
+
"onUpdate:modelValue": p[2] || (p[2] = (m) => v.value = m)
|
97
97
|
}, W, { "data-active-headers": "true" }), {
|
98
98
|
default: $(() => [
|
99
|
-
(i(!0), x(ee, null, ae(
|
99
|
+
(i(!0), x(ee, null, ae(v.value, (m) => (i(), x(ee, {
|
100
100
|
key: m.key
|
101
101
|
}, [
|
102
102
|
m.key !== "actions" ? (i(), x("div", tl, [
|
@@ -111,7 +111,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
111
111
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
112
112
|
q("div", ol, be(m.label), 1)
|
113
113
|
]),
|
114
|
-
|
114
|
+
v.value.length > 1 ? (i(), K(y(Se), {
|
115
115
|
key: 0,
|
116
116
|
width: "18",
|
117
117
|
height: "18",
|
@@ -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 = {
|
@@ -189,37 +189,37 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
189
189
|
"hover:cell": []
|
190
190
|
},
|
191
191
|
setup(D, { emit: Z }) {
|
192
|
-
var
|
193
|
-
const
|
192
|
+
var ue, ie, ne, de, ve, ce, fe, pe, me;
|
193
|
+
const d = D, V = Z, v = j(() => {
|
194
194
|
var l;
|
195
|
-
return (l =
|
195
|
+
return (l = d.options) == null ? void 0 : l.pagination;
|
196
196
|
}), f = j(() => {
|
197
197
|
var l;
|
198
|
-
return (l =
|
198
|
+
return (l = d.options) == null ? void 0 : l.cursor;
|
199
199
|
}), T = A(), S = j(() => {
|
200
200
|
var l;
|
201
|
-
return (l =
|
201
|
+
return (l = d.options) == null ? void 0 : l.tableOptions;
|
202
202
|
}), W = j(() => {
|
203
203
|
var l;
|
204
204
|
return {
|
205
205
|
...S.value,
|
206
|
-
headers: T.value ? T.value.filter((e) =>
|
206
|
+
headers: T.value ? T.value.filter((e) => re(e.key)) : (l = S.value) == null ? void 0 : l.headers.filter((e) => re(e.key))
|
207
207
|
};
|
208
208
|
}), a = j(() => {
|
209
209
|
var l;
|
210
|
-
return (l =
|
210
|
+
return (l = d.options) == null ? void 0 : l.filterOptions;
|
211
211
|
}), p = j(() => {
|
212
212
|
var l;
|
213
|
-
return (l =
|
213
|
+
return (l = d.options) == null ? void 0 : l.hidePerPageDropdown;
|
214
214
|
}), m = j(() => {
|
215
215
|
var l;
|
216
|
-
return ((l =
|
217
|
-
}), h = A(!1), F = A(
|
218
|
-
(de = (ne = a.value) == null ? void 0 : ne.per_page) != null && de.key ?
|
219
|
-
), X = ((me =
|
216
|
+
return ((l = v.value) == null ? void 0 : l.last_page) === 1;
|
217
|
+
}), h = A(!1), F = 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
|
+
(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()) ?? "", M = A(X ? X.split(",") : []), oe = A(!1), je = j(
|
220
220
|
() => {
|
221
221
|
var l, e;
|
222
|
-
return (e = (l =
|
222
|
+
return (e = (l = d.options) == null ? void 0 : l.perPageOptions) == null ? void 0 : e.map(
|
223
223
|
(o) => ({
|
224
224
|
label: `${o}`,
|
225
225
|
value: o
|
@@ -261,33 +261,32 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
261
261
|
value: 99
|
262
262
|
}
|
263
263
|
], e = je.value ?? l;
|
264
|
-
if (
|
265
|
-
const o =
|
266
|
-
o > 10 && (e = e.filter((
|
264
|
+
if (v.value) {
|
265
|
+
const o = v.value.total < 100 ? v.value.total : 100;
|
266
|
+
o > 10 && (e = e.filter((r) => r.value <= o));
|
267
267
|
}
|
268
268
|
return [...new Set(e)];
|
269
269
|
}), De = j(() => {
|
270
270
|
var l;
|
271
|
-
return ((l =
|
271
|
+
return ((l = d.selected) == null ? void 0 : l.length) > 0;
|
272
272
|
}), Pe = (l) => {
|
273
273
|
!l.trim() || M.value.includes(l) || (a.value ? M.value.push(l) : M.value = [l], E(), V("search-query-changed", l));
|
274
274
|
}, Le = (l) => {
|
275
275
|
M.value = M.value.filter((e) => e !== l), E();
|
276
|
-
}, Q =
|
277
|
-
!Q &&
|
276
|
+
}, Q = d.filter;
|
277
|
+
!Q && v ? Q.page = 1 : !Q && f && (Q.cursor = "");
|
278
278
|
const s = A(Q), Ce = () => {
|
279
|
-
var e, o,
|
279
|
+
var e, o, r, n, c, t, g, w;
|
280
280
|
M.value = [], F.value = "";
|
281
281
|
const l = {};
|
282
|
-
a.value ? Q.page = 1 : Q.cursor = "", (o = (e = a.value) == null ? void 0 : e.per_page) != null && o.key ? l[(n = (
|
282
|
+
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[(w = (g = a.value) == null ? void 0 : g.tabs) == null ? void 0 : w.key] = F.value : l.tabs = F.value, s.value = l, E();
|
283
283
|
}, Ke = () => {
|
284
284
|
E(null, B.value);
|
285
285
|
}, Ye = () => {
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
d.value && !e && (B.value = 1), d.value ? s.value.page = B.value : s.value.cursor = o, (u = a.value) != null && u.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] = F.value), (v = a.value) != null && v.search && (s.value[a.value.search.key] = M.value.join()), l && (h.value = !1, s.value = { ...s.value, ...l }, Object.keys(s.value).forEach((t) => {
|
286
|
+
d.id && $e(d.id, JSON.stringify(s.value));
|
287
|
+
}, Ue = () => d.id ? se(d.id) : null, E = (l = null, e = !1, o = "") => {
|
288
|
+
var r, n, c;
|
289
|
+
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] = F.value), (c = a.value) != null && c.search && (s.value[a.value.search.key] = M.value.join()), l && (h.value = !1, s.value = { ...s.value, ...l }, Object.keys(s.value).forEach((t) => {
|
291
290
|
Array.isArray(s.value[t]) && s.value[t].length === 0 && delete s.value[t];
|
292
291
|
})), Ye(), V("update:filter", s.value);
|
293
292
|
}, Be = (l, e) => {
|
@@ -301,13 +300,13 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
301
300
|
if (s.value) {
|
302
301
|
let l = [];
|
303
302
|
return Object.keys(s.value).forEach((e) => {
|
304
|
-
var
|
305
|
-
let o = (t = (
|
306
|
-
const
|
303
|
+
var c, t, g, w, R, N, _, J, z, H, G;
|
304
|
+
let o = (t = (c = a.value) == null ? void 0 : c.tabs) == null ? void 0 : t.key;
|
305
|
+
const r = (w = (g = a.value) == null ? void 0 : g.search) == null ? void 0 : w.key, n = ((N = (R = a.value) == null ? void 0 : R.per_page) == null ? void 0 : N.key) ?? "per_page";
|
307
306
|
if ((_ = a.value.form) == null || _.find((b) => {
|
308
307
|
b.name === o && (o = "");
|
309
|
-
}), e !== "page" && e !== "cursor" && e !== n && e !== o && e !==
|
310
|
-
let b = null,
|
308
|
+
}), e !== "page" && e !== "cursor" && e !== n && e !== o && e !== r) {
|
309
|
+
let b = null, u = (J = a.value.form) == null ? void 0 : J.find((Y) => {
|
311
310
|
if (typeof Y.name == "object") {
|
312
311
|
let L = !1;
|
313
312
|
return Y.name.forEach((I) => {
|
@@ -316,21 +315,21 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
316
315
|
} else
|
317
316
|
return Y.name === e;
|
318
317
|
}), O = "";
|
319
|
-
if (
|
320
|
-
if (typeof
|
318
|
+
if (u && s.value[e]) {
|
319
|
+
if (typeof u.name == "object" ? (z = u.name) == null || z.forEach((L) => {
|
321
320
|
O && (O += " - "), O += s.value[L.key];
|
322
|
-
}) : O = s.value[e],
|
321
|
+
}) : O = s.value[e], u.props.options && (O = (u.props.multiple ? s.value[e] : [s.value[e]]).map(
|
323
322
|
(I) => {
|
324
323
|
var ye;
|
325
|
-
return (ye =
|
324
|
+
return (ye = u.props.options.find(({ value: Qe }) => Qe === I)) == null ? void 0 : ye.label;
|
326
325
|
}
|
327
|
-
).join(", ")),
|
328
|
-
if (((H =
|
329
|
-
const L = le(s.value[
|
326
|
+
).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")
|
327
|
+
if (((H = u == null ? void 0 : u.props) == null ? void 0 : H.type) === "range" && u.name && u.name[1]) {
|
328
|
+
const L = le(s.value[u.name[0].key]).format("MM/DD/YYYY"), I = le(s.value[u.name[1].key]).format("MM/DD/YYYY");
|
330
329
|
O = L === I ? L : L + " - " + I;
|
331
|
-
} else O = le(s.value[
|
332
|
-
let Y = `${(G =
|
333
|
-
|
330
|
+
} else O = le(s.value[u.name]).format("MM/DD/YYYY");
|
331
|
+
let Y = `${(G = u == null ? void 0 : u.props) == null ? void 0 : G.label} : ${O}`;
|
332
|
+
u && u.name && typeof u.name == "object" && l.find((I) => I.name === b[0]) && (Y = ""), l.push({
|
334
333
|
label: Y,
|
335
334
|
name: e,
|
336
335
|
multiNames: b
|
@@ -340,17 +339,17 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
340
339
|
}), l;
|
341
340
|
}
|
342
341
|
return [];
|
343
|
-
}),
|
344
|
-
var e, o,
|
345
|
-
return ((t = (
|
342
|
+
}), re = (l) => {
|
343
|
+
var e, o, r, n, c, t;
|
344
|
+
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;
|
346
345
|
}, Ie = ({ fixedHeaders: l, activeHeaders: e, isOnMount: o }) => {
|
347
|
-
var
|
348
|
-
if (s.value[(n = (
|
346
|
+
var r, n, c, t;
|
347
|
+
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, T.value = [...l, ...e], !o) {
|
349
348
|
const g = Ze(l, e);
|
350
349
|
$e(a.value.columnEdit.localStorageKey, g);
|
351
350
|
}
|
352
351
|
}, Te = () => {
|
353
|
-
var l, e, o,
|
352
|
+
var l, e, o, r, n, c;
|
354
353
|
if ((e = (l = a.value) == null ? void 0 : l.columnEdit) != null && e.localStorageKey) {
|
355
354
|
const t = se(a.value.columnEdit.localStorageKey);
|
356
355
|
if (t) {
|
@@ -359,18 +358,18 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
359
358
|
S.value.headers,
|
360
359
|
a.value.columnEdit.localStorageKey
|
361
360
|
);
|
362
|
-
s.value[(
|
361
|
+
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 = w, T.value = [...g, ...w];
|
363
362
|
}
|
364
363
|
}
|
365
364
|
};
|
366
365
|
return Ve(() => {
|
367
|
-
var e, o,
|
366
|
+
var e, o, r, n;
|
368
367
|
Te();
|
369
368
|
const l = Ue();
|
370
|
-
l && (s.value = JSON.parse(l), F.value = F.value || ((e = s.value) == null ? void 0 : e.tabs) || ((n = s.value) == null ? void 0 : n[(
|
369
|
+
l && (s.value = JSON.parse(l), F.value = F.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());
|
371
370
|
}), (l, e) => {
|
372
|
-
var o,
|
373
|
-
return i(), x("div",
|
371
|
+
var o, r, n, c;
|
372
|
+
return i(), x("div", ul, [
|
374
373
|
S.value ? (i(), K(y(_e), {
|
375
374
|
key: 0,
|
376
375
|
selected: D.selected,
|
@@ -400,7 +399,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
400
399
|
]),
|
401
400
|
_: 2
|
402
401
|
}, [
|
403
|
-
l.$slots.before || (o = a.value) != null && o.search || (
|
402
|
+
l.$slots.before || (o = a.value) != null && o.search || (r = a.value) != null && r.form || (n = a.value) != null && n.tabs ? {
|
404
403
|
name: "before",
|
405
404
|
fn: $(() => {
|
406
405
|
var t, g, w, R;
|
@@ -451,16 +450,16 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
451
450
|
id: D.id,
|
452
451
|
"json-form": a.value.form ?? [],
|
453
452
|
grid: a.value.grid ?? null,
|
454
|
-
values:
|
453
|
+
values: d.filter,
|
455
454
|
actions: a.value.actions,
|
456
455
|
onApplyFilter: e[3] || (e[3] = (b) => E(b)),
|
457
456
|
onFilterFieldsChanged: e[4] || (e[4] = (b) => V("filter-fields-changed", b)),
|
458
457
|
onCancel: e[5] || (e[5] = (b) => h.value = !1)
|
459
458
|
}, {
|
460
|
-
default: $(({ errors: b, values:
|
459
|
+
default: $(({ errors: b, values: u, jsonForm: O, updateForm: Y }) => [
|
461
460
|
C(l.$slots, "custom-filter-form", {
|
462
461
|
errors: b,
|
463
|
-
values:
|
462
|
+
values: u,
|
464
463
|
jsonForm: O,
|
465
464
|
updateFilter: Y
|
466
465
|
})
|
@@ -477,7 +476,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
477
476
|
]),
|
478
477
|
_: 3
|
479
478
|
}, 8, ["modelValue"])) : k("", !0),
|
480
|
-
a.value.columnEdit ? (i(), K(
|
479
|
+
a.value.columnEdit ? (i(), K(rl, {
|
481
480
|
key: 2,
|
482
481
|
options: s.value.columnEdit,
|
483
482
|
headers: ((G = S.value) == null ? void 0 : G.headers) || [],
|
@@ -500,7 +499,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
500
499
|
}),
|
501
500
|
key: "0"
|
502
501
|
} : void 0,
|
503
|
-
ae((
|
502
|
+
ae((c = S.value) == null ? void 0 : c.headers, (t, g) => ({
|
504
503
|
name: t.key,
|
505
504
|
fn: $(({ data: w, item: R }) => [
|
506
505
|
C(l.$slots, t.key, {
|
@@ -511,11 +510,11 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
511
510
|
}))
|
512
511
|
]), 1032, ["selected", "row-key", "options", "is-loading", "loading-rows", "row-class", "row-link", "is-sticky", "is-borderless"])) : k("", !0),
|
513
512
|
C(l.$slots, "before-pagination"),
|
514
|
-
|
513
|
+
v.value || f.value ? (i(), x("div", {
|
515
514
|
key: 1,
|
516
|
-
class: te(["flex gap-3 items-center",
|
515
|
+
class: te(["flex gap-3 items-center", v.value && v.value.last_page === 1 ? "justify-end" : ""])
|
517
516
|
}, [
|
518
|
-
|
517
|
+
v.value && !m.value ? (i(), K(y(We), {
|
519
518
|
key: 0,
|
520
519
|
modelValue: B.value,
|
521
520
|
"onUpdate:modelValue": [
|
@@ -523,8 +522,8 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
|
|
523
522
|
Ke
|
524
523
|
],
|
525
524
|
class: "justify-center",
|
526
|
-
"max-page":
|
527
|
-
strategy:
|
525
|
+
"max-page": v.value.last_page,
|
526
|
+
strategy: v.value.strategy,
|
528
527
|
"total-visible": "5"
|
529
528
|
}, null, 8, ["modelValue", "max-page", "strategy"])) : k("", !0),
|
530
529
|
f.value ? (i(), x("div", vl, [
|
@@ -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-BJ6R2jLm.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-BJ6R2jLm.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-BJ6R2jLm.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
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 u, withKeys as S, createBlock as d, createCommentVNode as v, nextTick as w } from "vue";
|
2
|
-
import { e as O, B as f } from "./index-
|
2
|
+
import { e as O, B as f } from "./index-BJ6R2jLm.js";
|
3
3
|
const B = { class: "flex gap-x-4" }, $ = {
|
4
4
|
__name: "OcFilterSearch",
|
5
5
|
props: {
|
@@ -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-BJ6R2jLm.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-BJ6R2jLm.js";
|
3
|
+
import x from "./OcCropper-D0VpBPc7.js";
|
4
4
|
const S = {
|
5
5
|
__name: "OcModalCropper",
|
6
6
|
props: {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as n, watch as g, openBlock as m, createBlock as s, unref as o, withCtx as p, createCommentVNode as v, createVNode as y } from "vue";
|
2
|
-
import { as as S, aC as h, e as D } from "./index-
|
2
|
+
import { as as S, aC as h, e as D } from "./index-BJ6R2jLm.js";
|
3
3
|
import c from "dayjs";
|
4
4
|
const w = {
|
5
5
|
__name: "OcTimePicker",
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { computed as l, openBlock as a, createElementBlock as o, normalizeClass as d, createElementVNode as e, toDisplayString as r, createBlock as x, unref as u, createCommentVNode as m, createTextVNode as v, Fragment as T, renderList as k, createVNode as P } from "vue";
|
2
|
-
import { an as _, B as w } from "./index-
|
2
|
+
import { an as _, B as w } from "./index-BJ6R2jLm.js";
|
3
3
|
import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
4
4
|
import { _ as F } from "./OcIcon-CJgBICxh.js";
|
5
5
|
const B = { class: "z-10 flex flex-col gap-4 p-9 relative" }, E = { class: "flex items-center gap-4" }, A = { class: "font-medium text-xl" }, N = { class: "flex gap-3 items-center mb-5" }, S = { class: "flex items-start gap-2" }, V = { class: "text-[24px] font-medium tracking-tighter" }, q = { class: "text-[40px] leading-none font-medium" }, z = { key: 0 }, $ = {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { openBlock as a, createElementBlock as d, createElementVNode as t, createVNode as o, unref as i, toDisplayString as r } from "vue";
|
2
|
-
import { B as n } from "./index-
|
2
|
+
import { B as n } from "./index-BJ6R2jLm.js";
|
3
3
|
const m = { class: "flex flex-col" }, u = { class: "w-full relative group" }, f = { class: "w-full h-full bg-black/25 absolute top-0 left-0 hidden group-hover:flex rounded-lg" }, v = { class: "w-full px-6 gap-3 m-auto flex" }, b = ["src", "alt"], g = { class: "mt-4 text-md text-center" }, x = {
|
4
4
|
__name: "ThumbnailSection",
|
5
5
|
props: {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { openBlock as i, createElementBlock as s, normalizeClass as f, createElementVNode as l, Fragment as g, createVNode as n, unref as a, createTextVNode as r, toDisplayString as h, createBlock as u, withCtx as c, createCommentVNode as b } from "vue";
|
2
|
-
import { B as d, an as v } from "./index-
|
2
|
+
import { B as d, an as v } from "./index-BJ6R2jLm.js";
|
3
3
|
import { _ as k } from "./OcIcon-CJgBICxh.js";
|
4
4
|
const x = { class: "w-full relative group" }, y = {
|
5
5
|
key: 0,
|
@@ -9909,15 +9909,15 @@ const wd = { class: "flex flex-col gap-y-2 w-full" }, $d = { class: "flex w-full
|
|
9909
9909
|
}), 128))
|
9910
9910
|
], 6)) : m("", !0);
|
9911
9911
|
}
|
9912
|
-
}, Tm = de(() => import("./OcDataTable-
|
9913
|
-
() => import("./OcComplexCalendar-
|
9912
|
+
}, Tm = de(() => import("./OcDataTable-NNFjLPRE.js")), Dm = de(() => import("./OcFilterSearch-Dr0sLmxm.js")), Am = de(() => import("./OcFilterSearchFor-CYXRLpZ7.js")), jm = de(() => import("./OcFilterForm-CuMyxMDR.js")), xu = de(
|
9913
|
+
() => import("./OcComplexCalendar-D0q5_qtH.js")
|
9914
9914
|
), Mm = de(
|
9915
|
-
() => import("./OcComplexDatePicker-
|
9916
|
-
), ot = de(() => import("./OcModalCropper-
|
9917
|
-
() => import("./ThumbnailTheme-
|
9915
|
+
() => import("./OcComplexDatePicker-BgMNZypo.js")
|
9916
|
+
), ot = de(() => import("./OcModalCropper-CfhIQIfv.js")), Lm = de(() => import("./OcCropper-D0VpBPc7.js")), hu = de(() => import("./OcDraggable-CA_BCbpl.js")), Pm = de(() => import("./OcDraggableList-Ce7w7Hj2.js")), Em = de(() => import("./OcEmojiPicker-C33yKvB3.js")), zm = de(
|
9917
|
+
() => import("./ThumbnailTheme-ClOM3MUu.js")
|
9918
9918
|
), Nm = de(
|
9919
|
-
() => import("./ThumbnailSection-
|
9920
|
-
), Rm = de(() => import("./SubPlanCard-
|
9919
|
+
() => import("./ThumbnailSection-DgqGSe0M.js")
|
9920
|
+
), Rm = de(() => import("./SubPlanCard-BVkUJeiv.js")), Fm = de(() => import("./OcTimePopup-CXGhaOev.js")), bu = de(() => import("./OcTimePicker-CnmyZhtc.js"));
|
9921
9921
|
export {
|
9922
9922
|
em as $,
|
9923
9923
|
Yu as A,
|
package/dist/index.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import "vue";
|
2
|
-
import { U as r, aj as o, a1 as t, a3 as i, am as n, _ as p, a4 as l, B as d, p as m, a as u, b, c, an as S, aA as T, aH as C, aq as g, ar as x, d as P, aJ as f, C as I, aG as h, q as O, aB as k, aK as v, as as F, at as w, aL as L, a5 as A, S as B, M as D, R as H, a6 as _, aE as M, aD as R, aF as y, x as E, w as G, m as N, a7 as U, aa as V, a9 as j, ab as q, y as z, a2 as J, e as K, f as W, n as Q, z as X, A as Y, D as Z, au as $, aI as aa, u as ea, v as sa, av as ra, E as oa, V as ta, l as ia, F as na, G as pa, H as la, ad as da, ae as ma, I as ua, K as ba, Z as ca, g as Sa, J as Ta, af as Ca, h as ga, i as xa, j as Pa, ag as fa, r as Ia, k as ha, s as Oa, ao as ka, ah as va, ai as Fa, t as wa, ap as La, X as Aa, W as Ba, a8 as Da, aO as Ha, ak as _a, aw as Ma, ac as Ra, L as ya, O as Ea, P as Ga, N as Na, Q as Ua, Y as Va, o as ja, aN as qa, aM as za, aP as Ja, aC as Ka, ax as Wa, T as Qa, a0 as Xa, $ as Ya, al as Za, ay as $a } from "./index-
|
2
|
+
import { U as r, aj as o, a1 as t, a3 as i, am as n, _ as p, a4 as l, B as d, p as m, a as u, b, c, an as S, aA as T, aH as C, aq as g, ar as x, d as P, aJ as f, C as I, aG as h, q as O, aB as k, aK as v, as as F, at as w, aL as L, a5 as A, S as B, M as D, R as H, a6 as _, aE as M, aD as R, aF as y, x as E, w as G, m as N, a7 as U, aa as V, a9 as j, ab as q, y as z, a2 as J, e as K, f as W, n as Q, z as X, A as Y, D as Z, au as $, aI as aa, u as ea, v as sa, av as ra, E as oa, V as ta, l as ia, F as na, G as pa, H as la, ad as da, ae as ma, I as ua, K as ba, Z as ca, g as Sa, J as Ta, af as Ca, h as ga, i as xa, j as Pa, ag as fa, r as Ia, k as ha, s as Oa, ao as ka, ah as va, ai as Fa, t as wa, ap as La, X as Aa, W as Ba, a8 as Da, aO as Ha, ak as _a, aw as Ma, ac as Ra, L as ya, O as Ea, P as Ga, N as Na, Q as Ua, Y as Va, o as ja, aN as qa, aM as za, aP as Ja, aC as Ka, ax as Wa, T as Qa, a0 as Xa, $ as Ya, al as Za, ay as $a } from "./index-BJ6R2jLm.js";
|
3
3
|
import { _ as ee } from "./OcProgressBar-hiyC5XSc.js";
|
4
4
|
import { _ as re } from "./OcHorizontalProgressbar.vue_vue_type_script_setup_true_lang-4eVgPDi5.js";
|
5
5
|
import { _ as te } from "./OcSwitchTabs-CYp676bj.js";
|