@orchidui/core 1.8.1-121 → 1.8.1-122
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/DataTable/useDataTable.js +50 -50
- 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 +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/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-DYhvsDxL.js → OcAccountSetupProgress-D48JsFoN.js} +1 -1
- package/dist/{OcComplexCalendar-d6naQZTs.js → OcComplexCalendar-Bpz_E3x5.js} +1 -1
- package/dist/{OcComplexDatePicker-LI5hiyvV.js → OcComplexDatePicker-VrfzzlYs.js} +1 -1
- package/dist/{OcCropper-YFTz01Vk.js → OcCropper-CCf97Pam.js} +1 -1
- package/dist/{OcDataTable-CggFfla8.js → OcDataTable-BOOcW2gH.js} +80 -76
- package/dist/{OcDraggableList-Cek-0KDt.js → OcDraggableList-BC7Fe18o.js} +1 -1
- package/dist/{OcEmojiPicker-D8D7uW5N.js → OcEmojiPicker-C0k4r440.js} +1 -1
- package/dist/{OcFilterForm-Bo_O-7yh.js → OcFilterForm-Btc9rP4W.js} +1 -1
- package/dist/{OcFilterSearch-4Ra6PJji.js → OcFilterSearch-D6Oh4Vbd.js} +1 -1
- package/dist/{OcFilterSearchFor-B6d6z79P.js → OcFilterSearchFor-CknteDrO.js} +1 -1
- package/dist/{OcModalCropper-yzTi3OwR.js → OcModalCropper-BRNZvi4Y.js} +2 -2
- package/dist/{OcTimePicker-R3zI86PW.js → OcTimePicker-DECsVh0p.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-DVyHMof3.js → SubPlanCard-JktUvdQq.js} +1 -1
- package/dist/{ThumbnailSection-WikG4mUl.js → ThumbnailSection-Z9lFGL_L.js} +1 -1
- package/dist/{ThumbnailTheme-BzIpkHxZ.js → ThumbnailTheme-CH0h_y_S.js} +1 -1
- package/dist/{index-BgkXygOb.js → index-yXxch8P2.js} +8 -8
- package/dist/index.js +1 -1
- package/package.json +1 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
import { T as l, L as n, R as s, K as T, O as b, P as d, M as o, Q as i } from "../../index-
|
1
|
+
import { T as l, L as n, R as s, K as T, O as b, P as d, M as o, Q as i } from "../../index-yXxch8P2.js";
|
2
2
|
export {
|
3
3
|
l as ExpandingHeaderRow,
|
4
4
|
n as ExpandingTable,
|
@@ -1,82 +1,82 @@
|
|
1
|
-
import { ref as
|
2
|
-
function
|
3
|
-
const { name:
|
1
|
+
import { ref as o, computed as m } from "vue";
|
2
|
+
function E(L) {
|
3
|
+
const { name: w, localDb: _, options: c } = L, u = o(w), f = o(_), y = o([]), s = o({
|
4
|
+
updated_at: "desc"
|
5
|
+
}), n = o({
|
4
6
|
page: 1,
|
5
7
|
per_page: 10
|
6
|
-
}),
|
8
|
+
}), v = o({
|
7
9
|
total: 0,
|
8
10
|
last_page: 1
|
9
|
-
}),
|
11
|
+
}), p = o(!1);
|
10
12
|
let b = null;
|
11
|
-
const D = () => {
|
13
|
+
const D = m(() => {
|
14
|
+
const e = {}, l = (c == null ? void 0 : c.filterable_fields) ?? [];
|
15
|
+
return Object.entries(n.value).forEach(([t, a]) => {
|
16
|
+
l.includes(t) && a !== void 0 && a !== null && a !== "" && (e[t] = a);
|
17
|
+
}), e;
|
18
|
+
}), g = m(() => {
|
19
|
+
const e = {}, l = (c == null ? void 0 : c.sortable_fields) ?? [];
|
20
|
+
return Object.entries(s.value).forEach(([t, a]) => {
|
21
|
+
l.includes(t) && a !== void 0 && a !== null && a !== "" && (e[t] = a);
|
22
|
+
}), e;
|
23
|
+
}), C = () => {
|
12
24
|
let e = f.value.table(u.value);
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
e = e.sortBy(t.column), t.direction === "desc" && (e = e.reverse());
|
25
|
+
return g.value && Object.keys(g.value).length > 0 && Object.entries(g.value).forEach(([l, t]) => {
|
26
|
+
t === "desc" ? e = e.orderBy(l).reverse() : e = e.orderBy(l);
|
27
|
+
}), D.value && Object.entries(D.value).forEach(([l, t]) => {
|
28
|
+
t && (Array.isArray(t) ? e = e.filter((a) => {
|
29
|
+
const r = a[l];
|
30
|
+
return r == null ? !1 : t.some((d) => d == null ? !1 : typeof d == "string" && typeof r == "string" ? r.toLowerCase().includes(d.toLowerCase()) : r === d);
|
31
|
+
}) : typeof t == "string" ? e = e.filter((a) => {
|
32
|
+
const r = a[l];
|
33
|
+
return typeof r != "string" ? !1 : r.toLowerCase().includes(t.toLowerCase());
|
34
|
+
}) : e = e.filter((a) => a[l] === t));
|
24
35
|
}), e;
|
25
|
-
},
|
26
|
-
|
27
|
-
const e =
|
28
|
-
|
29
|
-
const
|
30
|
-
|
31
|
-
total:
|
32
|
-
last_page: Math.ceil(parseInt(
|
33
|
-
},
|
36
|
+
}, i = async () => {
|
37
|
+
p.value = !0, b && clearTimeout(b), b = setTimeout(async () => {
|
38
|
+
const e = C(), l = (parseInt(n.value.page) - 1) * parseInt(n.value.per_page), t = await e.offset(l).limit(parseInt(n.value.per_page)).toArray();
|
39
|
+
y.value = t;
|
40
|
+
const a = await e.count();
|
41
|
+
v.value = {
|
42
|
+
total: a,
|
43
|
+
last_page: Math.ceil(parseInt(a) / parseInt(n.value.per_page))
|
44
|
+
}, p.value = !1;
|
34
45
|
}, 500);
|
35
|
-
}, B = () => {
|
36
|
-
const e = {}, a = (p == null ? void 0 : p.filterable_fields) ?? [];
|
37
|
-
return Object.entries(s.value).forEach(([t, l]) => {
|
38
|
-
a.includes(t) && l !== void 0 && l !== null && l !== "" && (e[t] = l);
|
39
|
-
}), {
|
40
|
-
filter: e,
|
41
|
-
sortBy: r.value,
|
42
|
-
pagination: y.value
|
43
|
-
};
|
44
46
|
};
|
45
47
|
return {
|
46
48
|
// State
|
47
|
-
localData:
|
48
|
-
sortByData:
|
49
|
-
filterData:
|
50
|
-
paginationData:
|
51
|
-
isLoading:
|
49
|
+
localData: y,
|
50
|
+
sortByData: s,
|
51
|
+
filterData: n,
|
52
|
+
paginationData: v,
|
53
|
+
isLoading: p,
|
52
54
|
// Methods
|
53
55
|
toggleSort: (e) => {
|
54
|
-
const
|
55
|
-
|
56
|
-
(t) => t.column === e ? { ...t, direction: "desc" } : t
|
57
|
-
) : r.value = r.value.filter((t) => t.column !== e) : r.value = [...r.value, { column: e, direction: "asc" }], c();
|
56
|
+
const l = s.value.find((t) => t.column === e);
|
57
|
+
l ? l.direction === "asc" ? s.value = { ...s.value, [e]: "desc" } : delete s.value[e] : s.value = { ...s.value, [e]: "asc" }, i();
|
58
58
|
},
|
59
59
|
bulkPutLocalData: async (e) => {
|
60
|
-
await f.value.table(u.value).bulkPut(e), await
|
60
|
+
await f.value.table(u.value).bulkPut(e), await i();
|
61
61
|
},
|
62
62
|
bulkDeleteLocalData: async (e) => {
|
63
|
-
await f.value.table(u.value).bulkDelete(e), await
|
63
|
+
await f.value.table(u.value).bulkDelete(e), await i();
|
64
64
|
},
|
65
65
|
getLocalDataUpdatedAt: async () => {
|
66
66
|
const e = await f.value.table(u.value).orderBy("updated_at").reverse().limit(1).first();
|
67
67
|
return e == null ? void 0 : e.updated_at;
|
68
68
|
},
|
69
69
|
getLocalDataIds: async () => await f.value.table(u.value).toCollection().primaryKeys(),
|
70
|
-
syncLocalData:
|
70
|
+
syncLocalData: i,
|
71
71
|
// Setters
|
72
72
|
setFilter: (e) => {
|
73
|
-
|
73
|
+
n.value = { ...e }, i();
|
74
74
|
},
|
75
75
|
setSortBy: (e) => {
|
76
|
-
|
76
|
+
s.value = { ...e }, i();
|
77
77
|
}
|
78
78
|
};
|
79
79
|
}
|
80
80
|
export {
|
81
|
-
|
81
|
+
E as useDataTable
|
82
82
|
};
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { ak as r, am as s, ai as u, ap as S, ao as o, al as t, an as d, aj as b } from "../../index-
|
2
|
-
import { default as n } from "../../OcAccountSetupProgress-
|
1
|
+
import { ak as r, am as s, ai as u, ap as S, ao as o, al as t, an as d, aj as b } from "../../index-yXxch8P2.js";
|
2
|
+
import { default as n } from "../../OcAccountSetupProgress-D48JsFoN.js";
|
3
3
|
export {
|
4
4
|
r as AccountSetup,
|
5
5
|
n as AccountSetupProgress,
|
package/dist/Form/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as e, B as t, o, a as p, C as n, b as i, c as r, p as u, l, d as I, e as d, m as c, t as C, N as S, k as g, f as k, g as m, h as x, i as b, q as h, j as O, r as f, s as B, S as G, n as R } from "../index-
|
1
|
+
import { _ as e, B as t, o, a as p, C as n, b as i, c as r, p as u, l, d as I, e as d, m as c, t as C, N as S, k as g, f as k, g as m, h as x, i as b, q as h, j as O, r as f, s as B, S as G, n as R } from "../index-yXxch8P2.js";
|
2
2
|
import { T as F } from "../OcToggle-DOfA-DZ8.js";
|
3
3
|
export {
|
4
4
|
e as BaseInput,
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { createElementBlock as r, openBlock as n, createElementVNode as e, createVNode as o, createTextVNode as d, unref as l, toDisplayString as a, normalizeStyle as u } from "vue";
|
2
|
-
import "./index-
|
2
|
+
import "./index-yXxch8P2.js";
|
3
3
|
import { _ as c } from "./OcIcon-CBf___w1.js";
|
4
4
|
const x = { class: "border relative z-10 border-oc-gray-200 shadow-normal bg-white rounded p-2 flex flex-col gap-y-2" }, p = { class: "py-2 px-3 gap-x-3 flex items-center" }, f = { class: "text-base flex-1 font-medium flex items-center gap-x-2" }, m = { class: "px-3 pb-3 flex flex-col gap-y-3" }, h = { class: "relative bg-oc-accent-1-50 rounded-full h-2" }, _ = { class: "flex items-center gap-x-3" }, g = { class: "text-sm text-oc-text-400" }, N = {
|
5
5
|
__name: "OcAccountSetupProgress",
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { ref as x, createElementBlock as o, openBlock as n, createElementVNode as b, createCommentVNode as i, createVNode as d, Fragment as V, renderList as v, normalizeClass as k, unref as a, toDisplayString as p, 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-yXxch8P2.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, createBlock as d, openBlock as m, unref as t, withCtx as l, createVNode as n } from "vue";
|
2
|
-
import { aG as c, _ as f, az as b, d as p, aH as V } from "./index-
|
2
|
+
import { aG as c, _ as f, az as b, d as p, aH as V } from "./index-yXxch8P2.js";
|
3
3
|
import r from "dayjs";
|
4
4
|
const x = {
|
5
5
|
__name: "OcComplexDatePicker",
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as u, watch as D, nextTick as J, createElementBlock as h, openBlock as o, createElementVNode as m, createBlock as r, unref as a, createCommentVNode as s, Fragment as K, createVNode as g, withCtx as T } from "vue";
|
2
|
-
import { B as k, d as x, C as y, h as M, aE as P } from "./index-
|
2
|
+
import { B as k, d as x, C as y, h as M, aE as P } from "./index-yXxch8P2.js";
|
3
3
|
import { Cropper as Q } from "vue-advanced-cropper";
|
4
4
|
import { _ as W } from "./OcIcon-CBf___w1.js";
|
5
5
|
const X = { class: "flex flex-col gap-y-5" }, Y = ["src"], Z = { class: "flex gap-x-1 justify-center relative" }, _ = { class: "grid grid-cols-2 gap-4" }, ee = {
|