@orchidui/core 1.8.1-104 → 1.8.1-106
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 +43 -42
- 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-nx4JMMY1.js → OcAccountSetupProgress-BHZKRi83.js} +1 -1
- package/dist/{OcComplexCalendar-S2P-eRjh.js → OcComplexCalendar-DpEmr9kN.js} +1 -1
- package/dist/{OcComplexDatePicker-BvSA4Gc1.js → OcComplexDatePicker-BaA7wDaR.js} +1 -1
- package/dist/{OcCropper-D_9n7ZnV.js → OcCropper-DI9cu89P.js} +1 -1
- package/dist/{OcDataTable-CLQOCfZ9.js → OcDataTable-DB7Q2Frw.js} +186 -191
- package/dist/{OcDraggableList-C79_2OiC.js → OcDraggableList-D6Q9aZI0.js} +1 -1
- package/dist/{OcEmojiPicker-4377A0OM.js → OcEmojiPicker-B9K3pg5W.js} +1 -1
- package/dist/{OcFilterForm-CwWaEOhk.js → OcFilterForm-B4ASDeTk.js} +1 -1
- package/dist/{OcFilterSearch-B-6FRP1_.js → OcFilterSearch-SHFmbTuq.js} +1 -1
- package/dist/{OcFilterSearchFor-BjVUnvoD.js → OcFilterSearchFor-B1so0yiO.js} +1 -1
- package/dist/{OcModalCropper-RtpAQBCF.js → OcModalCropper-C5wArpL9.js} +2 -2
- package/dist/{OcTimePicker-CMHEOyc9.js → OcTimePicker-BFCYWz49.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-CVir0jVK.js → SubPlanCard-CP56AtvN.js} +1 -1
- package/dist/{ThumbnailSection-DTGEYJUX.js → ThumbnailSection-Ba03sZNp.js} +1 -1
- package/dist/{ThumbnailTheme-CX1nXVCH.js → ThumbnailTheme-ChifSN57.js} +1 -1
- package/dist/{index-DkNZ3JXO.js → index-SvoT4d-2.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-SvoT4d-2.js";
|
2
2
|
export {
|
3
3
|
l as ExpandingHeaderRow,
|
4
4
|
n as ExpandingTable,
|
@@ -1,83 +1,84 @@
|
|
1
1
|
import { ref as s } from "vue";
|
2
|
-
function
|
3
|
-
const { id:
|
2
|
+
function O(L) {
|
3
|
+
const { id: w, name: B, localDb: _ } = L, C = s(w), n = s(B), r = s(_), m = s([]), a = s([]), i = s({
|
4
|
+
page: 1,
|
5
|
+
per_page: 10
|
6
|
+
}), g = s({
|
4
7
|
total: 0,
|
5
8
|
last_page: 0
|
6
9
|
}), y = s(!1);
|
7
10
|
let b = null;
|
8
11
|
const p = async () => {
|
9
12
|
y.value = !0, b && clearTimeout(b), b = setTimeout(async () => {
|
10
|
-
let e =
|
11
|
-
const
|
12
|
-
|
13
|
-
o && Array.isArray(o) ? e = e.filter((
|
14
|
-
const
|
15
|
-
return o.some((v) => typeof v == "string" && typeof
|
16
|
-
}) : o && typeof o == "string" ? e = e.filter((
|
17
|
-
const
|
18
|
-
return typeof
|
19
|
-
}) : o != null && (e = e.filter((
|
20
|
-
}),
|
21
|
-
e = e.sortBy(
|
13
|
+
let e = r.value.table(n.value);
|
14
|
+
const l = I();
|
15
|
+
l.filter && Object.entries(l.filter).forEach(([u, o]) => {
|
16
|
+
o && Array.isArray(o) ? e = e.filter((d) => {
|
17
|
+
const f = d[u];
|
18
|
+
return o.some((v) => typeof v == "string" && typeof f == "string" ? f.toLowerCase().includes(v.toLowerCase()) : f === v);
|
19
|
+
}) : o && typeof o == "string" ? e = e.filter((d) => {
|
20
|
+
const f = d[u];
|
21
|
+
return typeof f == "string" && f.toLowerCase().includes(o.toLowerCase());
|
22
|
+
}) : o != null && (e = e.filter((d) => d[u] === o));
|
23
|
+
}), l.sortBy && l.sortBy.length > 0 && l.sortBy.forEach((u) => {
|
24
|
+
e = e.sortBy(u.column), u.direction === "desc" && (e = e.reverse());
|
22
25
|
});
|
23
|
-
const
|
24
|
-
|
25
|
-
const
|
26
|
+
const t = (parseInt(i.value.page) - 1) * parseInt(i.value.per_page);
|
27
|
+
e = e.offset(t).limit(parseInt(i.value.per_page));
|
28
|
+
const c = await e.toArray();
|
29
|
+
m.value = c;
|
30
|
+
const D = await r.value.table(n.value).count();
|
26
31
|
g.value = {
|
27
|
-
total:
|
28
|
-
|
29
|
-
per_page: t.per_page,
|
30
|
-
last_page: Math.ceil(r / t.per_page)
|
32
|
+
total: D,
|
33
|
+
last_page: Math.ceil(D / i.value.per_page)
|
31
34
|
}, y.value = !1;
|
32
35
|
}, 300);
|
33
|
-
},
|
34
|
-
const e = {},
|
35
|
-
return Object.entries(
|
36
|
-
!
|
36
|
+
}, I = () => {
|
37
|
+
const e = {}, l = ["columnEdit", "page", "per_page"];
|
38
|
+
return Object.entries(i.value).forEach(([t, c]) => {
|
39
|
+
!l.includes(t) && c !== void 0 && c !== null && c !== "" && (e[t] = c);
|
37
40
|
}), {
|
38
41
|
filter: e,
|
39
|
-
sortBy:
|
40
|
-
page: d.value.page,
|
41
|
-
per_page: d.value.per_page,
|
42
|
+
sortBy: a.value,
|
42
43
|
pagination: g.value
|
43
44
|
};
|
44
45
|
};
|
45
46
|
return {
|
46
47
|
// State
|
47
|
-
sortBy:
|
48
|
-
localData:
|
49
|
-
dataTableId:
|
48
|
+
sortBy: a,
|
49
|
+
localData: m,
|
50
|
+
dataTableId: C,
|
50
51
|
dbTablename: n,
|
51
52
|
paginationData: g,
|
52
53
|
isLoading: y,
|
53
54
|
// Methods
|
54
55
|
toggleSort: (e) => {
|
55
|
-
const
|
56
|
-
|
57
|
-
(
|
58
|
-
) :
|
56
|
+
const l = a.value.find((t) => t.column === e);
|
57
|
+
l ? l.direction === "asc" ? a.value = a.value.map(
|
58
|
+
(t) => t.column === e ? { ...t, direction: "desc" } : t
|
59
|
+
) : a.value = a.value.filter((t) => t.column !== e) : a.value = [...a.value, { column: e, direction: "asc" }], p();
|
59
60
|
},
|
60
61
|
bulkPutLocalData: async (e) => {
|
61
|
-
await
|
62
|
+
await r.value.table(n.value).bulkPut(e);
|
62
63
|
},
|
63
64
|
bulkDeleteLocalData: async (e) => {
|
64
|
-
await
|
65
|
+
await r.value.table(n.value).bulkDelete(e);
|
65
66
|
},
|
66
67
|
getLocalDataUpdatedAt: async () => {
|
67
|
-
const e = await
|
68
|
+
const e = await r.value.table(n.value).orderBy("updated_at").reverse().limit(1).first();
|
68
69
|
return e == null ? void 0 : e.updated_at;
|
69
70
|
},
|
70
|
-
getLocalDataIds: async () => await
|
71
|
+
getLocalDataIds: async () => await r.value.table(n.value).toCollection().primaryKeys(),
|
71
72
|
syncLocalData: p,
|
72
73
|
// Setters
|
73
74
|
setFilter: (e) => {
|
74
|
-
|
75
|
+
i.value = { ...e }, p();
|
75
76
|
},
|
76
77
|
setSortBy: (e) => {
|
77
|
-
|
78
|
+
a.value = { ...e }, p();
|
78
79
|
}
|
79
80
|
};
|
80
81
|
}
|
81
82
|
export {
|
82
|
-
|
83
|
+
O as useDataTable
|
83
84
|
};
|
@@ -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-SvoT4d-2.js";
|
2
|
+
import { default as n } from "../../OcAccountSetupProgress-BHZKRi83.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-SvoT4d-2.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-SvoT4d-2.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-SvoT4d-2.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-SvoT4d-2.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-SvoT4d-2.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 = {
|