@orchidui/core 1.8.1-126 → 1.8.1-129
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 +53 -48
- 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-B8tR1mDq.js → OcAccountSetupProgress-jDd1UsyX.js} +1 -1
- package/dist/{OcComplexCalendar-DBx25a5-.js → OcComplexCalendar-BaoIYMnJ.js} +1 -1
- package/dist/{OcComplexDatePicker-CRf6MxOX.js → OcComplexDatePicker-DJ0Ct4F8.js} +1 -1
- package/dist/{OcCropper-D1hXuCbl.js → OcCropper-D0-Ud4Dn.js} +1 -1
- package/dist/OcDataTable-CVtLdwmM.js +555 -0
- package/dist/{OcDraggableList-Bri7Yu2u.js → OcDraggableList-DRSZjKR2.js} +1 -1
- package/dist/{OcEmojiPicker-BgTqBYCH.js → OcEmojiPicker-BRNkuGDF.js} +1 -1
- package/dist/{OcFilterForm-DlHESBlu.js → OcFilterForm-BuUihX79.js} +1 -1
- package/dist/{OcFilterSearch-B02WMHub.js → OcFilterSearch-DjVS7Hfo.js} +1 -1
- package/dist/{OcFilterSearchFor-B1Pil-K3.js → OcFilterSearchFor-oo9Xji4I.js} +1 -1
- package/dist/{OcModalCropper-B8cE2SqY.js → OcModalCropper-CV2FJ5te.js} +2 -2
- package/dist/{OcTimePicker-CvHr6hRx.js → OcTimePicker-CJ9mBAxz.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-vq-CzZj9.js → SubPlanCard-widCLtfc.js} +1 -1
- package/dist/{ThumbnailSection-O8OoYcHD.js → ThumbnailSection-GklOkizl.js} +1 -1
- package/dist/{ThumbnailTheme-DlrWURkb.js → ThumbnailTheme-CRjhKPMK.js} +1 -1
- package/dist/{index-BuPthmbI.js → index-CbMhrjCQ.js} +857 -824
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/OcDataTable-Ba2vClWe.js +0 -545
@@ -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-CbMhrjCQ.js";
|
2
2
|
export {
|
3
3
|
l as ExpandingHeaderRow,
|
4
4
|
n as ExpandingTable,
|
@@ -1,82 +1,87 @@
|
|
1
|
-
import { ref as
|
2
|
-
function
|
3
|
-
const { name:
|
4
|
-
updated_at: "desc"
|
5
|
-
}), n = o({
|
1
|
+
import { ref as i, computed as m } from "vue";
|
2
|
+
function P(w) {
|
3
|
+
const { name: S, localDb: L, filterable_fields: C, sortable_fields: _ } = w, f = i(S), d = i(L), b = i([]), l = i({}), c = i({
|
6
4
|
page: 1,
|
7
5
|
per_page: 10
|
8
|
-
}), v =
|
6
|
+
}), v = i({
|
9
7
|
total: 0,
|
10
8
|
last_page: 1
|
11
|
-
}),
|
12
|
-
let
|
13
|
-
const
|
14
|
-
const e = {},
|
15
|
-
return Object.entries(
|
16
|
-
|
9
|
+
}), g = i(!1);
|
10
|
+
let p = null;
|
11
|
+
const y = m(() => {
|
12
|
+
const e = {}, n = C ?? [];
|
13
|
+
return Object.entries(c.value).forEach(([t, a]) => {
|
14
|
+
n.includes(t) && a !== void 0 && a !== null && a !== "" && (e[t] = a);
|
17
15
|
}), e;
|
18
|
-
}),
|
19
|
-
const e = {},
|
20
|
-
return Object.entries(
|
21
|
-
|
16
|
+
}), D = m(() => {
|
17
|
+
const e = {}, n = _ ?? [];
|
18
|
+
return Object.entries(l.value).forEach(([t, a]) => {
|
19
|
+
n.includes(t) && a !== void 0 && a !== null && a !== "" && (e[t] = a);
|
22
20
|
}), e;
|
23
|
-
}),
|
24
|
-
let e =
|
25
|
-
return
|
26
|
-
t
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
21
|
+
}), h = async () => {
|
22
|
+
let e = await d.value.table(f.value).toArray();
|
23
|
+
return y.value && Object.entries(y.value).forEach(([n, t]) => {
|
24
|
+
Array.isArray(t) ? e = e.filter((a) => {
|
25
|
+
var s;
|
26
|
+
const r = ((s = a[n]) == null ? void 0 : s.toString()) ?? "";
|
27
|
+
return t.some(
|
28
|
+
(o) => r.toLowerCase().includes(o.toString().toLowerCase())
|
29
|
+
);
|
31
30
|
}) : typeof t == "string" ? e = e.filter((a) => {
|
32
|
-
|
33
|
-
return
|
34
|
-
}) : e = e.filter((a) =>
|
31
|
+
var s;
|
32
|
+
return (((s = a[n]) == null ? void 0 : s.toString()) ?? "").toLowerCase().includes(t.toString().toLowerCase());
|
33
|
+
}) : e = e.filter((a) => {
|
34
|
+
var r;
|
35
|
+
return ((r = a[n]) == null ? void 0 : r.toString()) === t.toString();
|
36
|
+
});
|
37
|
+
}), D.value && Object.keys(D.value).length > 0 && Object.entries(D.value).forEach(([n, t]) => {
|
38
|
+
e = e.sort((a, r) => {
|
39
|
+
const s = a[n], o = r[n], O = !isNaN(Date.parse(s)) && !isNaN(Date.parse(o));
|
40
|
+
return typeof s == "number" && typeof o == "number" ? t === "desc" ? o - s : s - o : O ? t === "desc" ? new Date(o) - new Date(s) : new Date(s) - new Date(o) : t === "desc" ? o == null ? void 0 : o.toString().localeCompare(s == null ? void 0 : s.toString()) : s == null ? void 0 : s.toString().localeCompare(o == null ? void 0 : o.toString());
|
41
|
+
});
|
35
42
|
}), e;
|
36
43
|
}, u = async () => {
|
37
|
-
|
38
|
-
const e =
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
last_page: Math.ceil(parseInt(s) / parseInt(n.value.per_page))
|
44
|
-
}, p.value = !1;
|
44
|
+
g.value = !0, p && clearTimeout(p), p = setTimeout(async () => {
|
45
|
+
const e = await h(), n = (parseInt(c.value.page) - 1) * parseInt(c.value.per_page), t = parseInt(c.value.per_page), a = e.slice(n, n + t);
|
46
|
+
b.value = a, v.value = {
|
47
|
+
total: e.length,
|
48
|
+
last_page: Math.ceil(e.length / t)
|
49
|
+
}, g.value = !1;
|
45
50
|
}, 500);
|
46
51
|
};
|
47
52
|
return {
|
48
53
|
// State
|
49
|
-
localData:
|
50
|
-
sortByData:
|
51
|
-
filterData:
|
54
|
+
localData: b,
|
55
|
+
sortByData: l,
|
56
|
+
filterData: c,
|
52
57
|
paginationData: v,
|
53
|
-
isLoading:
|
58
|
+
isLoading: g,
|
54
59
|
// Methods
|
55
60
|
toggleSort: (e) => {
|
56
|
-
const
|
57
|
-
|
61
|
+
const n = l.value.find((t) => t.column === e);
|
62
|
+
n ? n.direction === "asc" ? l.value = { ...l.value, [e]: "desc" } : delete l.value[e] : l.value = { ...l.value, [e]: "asc" }, u();
|
58
63
|
},
|
59
64
|
bulkPutLocalData: async (e) => {
|
60
|
-
await
|
65
|
+
await d.value.table(f.value).bulkPut(e), await u();
|
61
66
|
},
|
62
67
|
bulkDeleteLocalData: async (e) => {
|
63
|
-
await
|
68
|
+
await d.value.table(f.value).bulkDelete(e), await u();
|
64
69
|
},
|
65
70
|
getLocalDataUpdatedAt: async () => {
|
66
|
-
const e = await
|
71
|
+
const e = await d.value.table(f.value).orderBy("updated_at").reverse().limit(1).first();
|
67
72
|
return e == null ? void 0 : e.updated_at;
|
68
73
|
},
|
69
|
-
getLocalDataIds: async () => await
|
74
|
+
getLocalDataIds: async () => await d.value.table(f.value).toCollection().primaryKeys(),
|
70
75
|
syncLocalData: u,
|
71
76
|
// Setters
|
72
77
|
setFilter: (e) => {
|
73
|
-
|
78
|
+
c.value = { ...e }, u();
|
74
79
|
},
|
75
80
|
setSortBy: (e) => {
|
76
|
-
|
81
|
+
l.value = { ...e }, u();
|
77
82
|
}
|
78
83
|
};
|
79
84
|
}
|
80
85
|
export {
|
81
|
-
|
86
|
+
P as useDataTable
|
82
87
|
};
|
@@ -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-CbMhrjCQ.js";
|
2
|
+
import { default as n } from "../../OcAccountSetupProgress-jDd1UsyX.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-CbMhrjCQ.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-CbMhrjCQ.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-CbMhrjCQ.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-CbMhrjCQ.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-CbMhrjCQ.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 = {
|