@orchidui/core 1.8.1-117 → 1.8.1-119
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 +37 -38
- 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-DdwbNh_j.js → OcAccountSetupProgress-COKaTIbI.js} +1 -1
- package/dist/{OcComplexCalendar-NB-nixtt.js → OcComplexCalendar-FzZPh8Bm.js} +1 -1
- package/dist/{OcComplexDatePicker-CCZNKVjC.js → OcComplexDatePicker-oTIFi1nw.js} +1 -1
- package/dist/{OcCropper-D7GFhoWz.js → OcCropper-R_6_f4Me.js} +1 -1
- package/dist/{OcDataTable-YUm4ppk9.js → OcDataTable-D0vfaHVM.js} +105 -106
- package/dist/{OcDraggableList-BTxRKiVF.js → OcDraggableList-cx3rwDMf.js} +1 -1
- package/dist/{OcEmojiPicker-D6nfctf9.js → OcEmojiPicker-Bs2EBZNh.js} +1 -1
- package/dist/{OcFilterForm-MWslQjtt.js → OcFilterForm-D3z27wKr.js} +1 -1
- package/dist/{OcFilterSearch-BlMXCzOr.js → OcFilterSearch-ZS_wGRHR.js} +1 -1
- package/dist/{OcFilterSearchFor-C9-lxT4W.js → OcFilterSearchFor-bclZuZhK.js} +1 -1
- package/dist/{OcModalCropper-DKhsnxRF.js → OcModalCropper-0ZRH3sKu.js} +2 -2
- package/dist/{OcTimePicker-DDf4hJM7.js → OcTimePicker-DFO6M0nc.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-CvHxRfDv.js → SubPlanCard-urpIO9KQ.js} +1 -1
- package/dist/{ThumbnailSection-SmaP6Acx.js → ThumbnailSection-BDOE6sXb.js} +1 -1
- package/dist/{ThumbnailTheme-UBdrnl_Z.js → ThumbnailTheme-YYWNdD88.js} +1 -1
- package/dist/{index-BtrJ8Wk_.js → index-CXwMYjtl.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-CXwMYjtl.js";
|
2
2
|
export {
|
3
3
|
l as ExpandingHeaderRow,
|
4
4
|
n as ExpandingTable,
|
@@ -1,83 +1,82 @@
|
|
1
|
-
import { ref as
|
2
|
-
function
|
3
|
-
const {
|
1
|
+
import { ref as i } from "vue";
|
2
|
+
function F(m) {
|
3
|
+
const { name: L, localDb: w, options: p } = m, u = i(L), f = i(w), v = i([]), r = i([]), s = i({
|
4
4
|
page: 1,
|
5
5
|
per_page: 10
|
6
|
-
}),
|
6
|
+
}), y = i({
|
7
7
|
total: 0,
|
8
8
|
last_page: 0
|
9
|
-
}),
|
9
|
+
}), g = i(!1);
|
10
10
|
let b = null;
|
11
11
|
const D = () => {
|
12
|
-
let e =
|
13
|
-
const a =
|
12
|
+
let e = f.value.table(u.value);
|
13
|
+
const a = B();
|
14
14
|
return a.filter && Object.entries(a.filter).forEach(([t, l]) => {
|
15
15
|
l && (Array.isArray(l) ? e = e.filter((n) => {
|
16
|
-
const
|
17
|
-
return
|
16
|
+
const o = n[t];
|
17
|
+
return o == null ? !1 : l.some((d) => d == null ? !1 : typeof d == "string" && typeof o == "string" ? o.toLowerCase().includes(d.toLowerCase()) : o === d);
|
18
18
|
}) : typeof l == "string" ? e = e.filter((n) => {
|
19
|
-
const
|
20
|
-
return typeof
|
19
|
+
const o = n[t];
|
20
|
+
return typeof o != "string" ? !1 : o.toLowerCase().includes(l.toLowerCase());
|
21
21
|
}) : e = e.filter((n) => n[t] === l));
|
22
22
|
}), a.sortBy && a.sortBy.length > 0 && a.sortBy.forEach((t) => {
|
23
23
|
e = e.sortBy(t.column), t.direction === "desc" && (e = e.reverse());
|
24
24
|
}), e;
|
25
|
-
},
|
26
|
-
|
27
|
-
const e = D(), a = (parseInt(
|
25
|
+
}, c = async () => {
|
26
|
+
g.value = !0, b && clearTimeout(b), b = setTimeout(async () => {
|
27
|
+
const e = D(), a = (parseInt(s.value.page) - 1) * parseInt(s.value.per_page), t = await e.offset(a).limit(parseInt(s.value.per_page)).toArray();
|
28
28
|
v.value = t;
|
29
29
|
const n = await D().count();
|
30
|
-
|
30
|
+
y.value = {
|
31
31
|
total: n,
|
32
|
-
last_page: Math.ceil(parseInt(n) / parseInt(
|
33
|
-
},
|
32
|
+
last_page: Math.ceil(parseInt(n) / parseInt(s.value.per_page))
|
33
|
+
}, g.value = !1;
|
34
34
|
}, 500);
|
35
|
-
},
|
36
|
-
const e = {}, a = (
|
37
|
-
return Object.entries(
|
35
|
+
}, B = () => {
|
36
|
+
const e = {}, a = (p == null ? void 0 : p.filterable_fields) ?? [];
|
37
|
+
return Object.entries(s.value).forEach(([t, l]) => {
|
38
38
|
a.includes(t) && l !== void 0 && l !== null && l !== "" && (e[t] = l);
|
39
39
|
}), {
|
40
40
|
filter: e,
|
41
|
-
sortBy:
|
42
|
-
pagination:
|
41
|
+
sortBy: r.value,
|
42
|
+
pagination: y.value
|
43
43
|
};
|
44
44
|
};
|
45
45
|
return {
|
46
46
|
// State
|
47
|
-
sortBy: o,
|
48
47
|
localData: v,
|
49
|
-
|
50
|
-
|
51
|
-
paginationData:
|
52
|
-
isLoading:
|
48
|
+
sortBy: r,
|
49
|
+
filterData: s,
|
50
|
+
paginationData: y,
|
51
|
+
isLoading: g,
|
53
52
|
// Methods
|
54
53
|
toggleSort: (e) => {
|
55
|
-
const a =
|
56
|
-
a ? a.direction === "asc" ?
|
54
|
+
const a = r.value.find((t) => t.column === e);
|
55
|
+
a ? a.direction === "asc" ? r.value = r.value.map(
|
57
56
|
(t) => t.column === e ? { ...t, direction: "desc" } : t
|
58
|
-
) :
|
57
|
+
) : r.value = r.value.filter((t) => t.column !== e) : r.value = [...r.value, { column: e, direction: "asc" }], c();
|
59
58
|
},
|
60
59
|
bulkPutLocalData: async (e) => {
|
61
|
-
await
|
60
|
+
await f.value.table(u.value).bulkPut(e), await c();
|
62
61
|
},
|
63
62
|
bulkDeleteLocalData: async (e) => {
|
64
|
-
await
|
63
|
+
await f.value.table(u.value).bulkDelete(e), await c();
|
65
64
|
},
|
66
65
|
getLocalDataUpdatedAt: async () => {
|
67
|
-
const e = await
|
66
|
+
const e = await f.value.table(u.value).orderBy("updated_at").reverse().limit(1).first();
|
68
67
|
return e == null ? void 0 : e.updated_at;
|
69
68
|
},
|
70
|
-
getLocalDataIds: async () => await
|
71
|
-
syncLocalData:
|
69
|
+
getLocalDataIds: async () => await f.value.table(u.value).toCollection().primaryKeys(),
|
70
|
+
syncLocalData: c,
|
72
71
|
// Setters
|
73
72
|
setFilter: (e) => {
|
74
|
-
|
73
|
+
s.value = { ...e }, c();
|
75
74
|
},
|
76
75
|
setSortBy: (e) => {
|
77
|
-
|
76
|
+
r.value = { ...e }, c();
|
78
77
|
}
|
79
78
|
};
|
80
79
|
}
|
81
80
|
export {
|
82
|
-
|
81
|
+
F as useDataTable
|
83
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-CXwMYjtl.js";
|
2
|
+
import { default as n } from "../../OcAccountSetupProgress-COKaTIbI.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-CXwMYjtl.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-CXwMYjtl.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-CXwMYjtl.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-CXwMYjtl.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-CXwMYjtl.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 = {
|