@orchidui/core 1.20.1-7 → 1.20.1-9
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/NewTable/OcNewTable.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 +87 -58
- 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-Cu1vsQ2k.js → OcAccountSetupProgress-tS3D-vBm.js} +1 -1
- package/dist/{OcComplexCalendar-EToaQBQl.js → OcComplexCalendar-BPNLfQYt.js} +1 -1
- package/dist/{OcComplexDatePicker-CtjFmBlS.js → OcComplexDatePicker-CZVC9kjP.js} +1 -1
- package/dist/{OcCropper-BcfbJ-A3.js → OcCropper-_RyQY_Y_.js} +1 -1
- package/dist/{OcDataTable-p-3NpYok.js → OcDataTable-CfDnHQIP.js} +210 -192
- package/dist/{OcDraggableList-CQKflLJD.js → OcDraggableList-aPtOGU2L.js} +1 -1
- package/dist/{OcEmojiPicker-BRUut7_G.js → OcEmojiPicker-C10NCDCI.js} +1 -1
- package/dist/{OcFilterForm-DTKfoNMl.js → OcFilterForm-D00LEbJE.js} +1 -1
- package/dist/{OcFilterSearch-Ay4GinmA.js → OcFilterSearch-DYB78L8n.js} +1 -1
- package/dist/{OcFilterSearchFor-CMp1QwaN.js → OcFilterSearchFor-0pYC5dbG.js} +1 -1
- package/dist/{OcModalCropper-CniWWCFx.js → OcModalCropper-BlghUN-X.js} +2 -2
- package/dist/{OcTimePicker-Cc33dIqa.js → OcTimePicker-Dhtj3pfE.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-C0G5yvHP.js → SubPlanCard-G0t6i5TX.js} +1 -1
- package/dist/{ThumbnailSection-ehJx5wSv.js → ThumbnailSection-BzfA22PW.js} +1 -1
- package/dist/{ThumbnailTheme-DjaGUJmj.js → ThumbnailTheme-DyP_LlZ6.js} +1 -1
- package/dist/{index-ChLY3ObM.js → index-85znXgNN.js} +9 -9
- package/dist/index.js +1 -1
- package/package.json +1 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
import { U as l, M as n, T as s, L as T, P as b, Q as d, O as o, R as i } from "../../index-
|
1
|
+
import { U as l, M as n, T as s, L as T, P as b, Q as d, O as o, R as i } from "../../index-85znXgNN.js";
|
2
2
|
export {
|
3
3
|
l as ExpandingHeaderRow,
|
4
4
|
n as ExpandingTable,
|
@@ -1,95 +1,124 @@
|
|
1
|
-
import { ref as
|
2
|
-
function
|
3
|
-
const { name:
|
1
|
+
import { ref as p, computed as v } from "vue";
|
2
|
+
function V(E) {
|
3
|
+
const { name: k, db: c, filterableFields: O, sortableFields: I, searchableFields: f } = E, g = p(k), S = p([]), y = p({}), d = p({
|
4
4
|
page: 1,
|
5
5
|
per_page: 10
|
6
|
-
}),
|
6
|
+
}), C = p({
|
7
7
|
total: 0,
|
8
8
|
last_page: 1
|
9
|
-
}),
|
10
|
-
let
|
11
|
-
const
|
12
|
-
const t = {},
|
13
|
-
return Object.entries(
|
14
|
-
|
9
|
+
}), h = p(!1);
|
10
|
+
let D = null;
|
11
|
+
const m = v(() => {
|
12
|
+
const t = {}, l = O ?? [];
|
13
|
+
return Object.entries(d.value).forEach(([s, e]) => {
|
14
|
+
l.includes(s) && e !== void 0 && e !== null && e !== "" && (t[s] = e);
|
15
15
|
}), t;
|
16
|
-
}), b =
|
17
|
-
const t = {},
|
18
|
-
return Object.entries(
|
19
|
-
|
16
|
+
}), b = v(() => {
|
17
|
+
const t = {}, l = I ?? [];
|
18
|
+
return Object.entries(y.value).forEach(([s, e]) => {
|
19
|
+
l.includes(s) && e !== void 0 && e !== null && e !== "" && (t[s] = e);
|
20
20
|
}), t;
|
21
|
-
}),
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
(o)
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
21
|
+
}), K = async () => {
|
22
|
+
var l;
|
23
|
+
let t = await c.table(g.value).toArray();
|
24
|
+
return m.value && Object.entries(m.value).forEach(([s, e]) => {
|
25
|
+
if (Array.isArray(e))
|
26
|
+
t = t.filter((i) => {
|
27
|
+
var o;
|
28
|
+
const a = ((o = i[s]) == null ? void 0 : o.toString()) ?? "";
|
29
|
+
return e.some((r) => a.toLowerCase().includes(r.toString().toLowerCase()));
|
30
|
+
});
|
31
|
+
else if (typeof e == "string")
|
32
|
+
if (s === "keywords") {
|
33
|
+
const i = e.trim().split(/\s+/).filter((a) => a.length > 0);
|
34
|
+
if (i.length > 1)
|
35
|
+
t = t.map((a) => {
|
36
|
+
let o = 0, r = 0;
|
37
|
+
return i.forEach((n) => {
|
38
|
+
const u = n.toLowerCase();
|
39
|
+
f == null || f.forEach((j) => {
|
40
|
+
var _;
|
41
|
+
const L = (((_ = a[j]) == null ? void 0 : _.toString()) ?? "").toLowerCase();
|
42
|
+
L.includes(u) && (o += 1, r += 1, L === u ? o += 2 : new RegExp(`\\b${u}\\b`).test(L) && (o += 1));
|
43
|
+
});
|
44
|
+
}), r > 0 ? { ...a, _searchScore: o, _matchCount: r } : null;
|
45
|
+
}).filter((a) => a !== null), t.sort((a, o) => o._searchScore !== a._searchScore ? o._searchScore - a._searchScore : o._matchCount - a._matchCount), t = t.map((a) => {
|
46
|
+
const { _searchScore: o, _matchCount: r, ...n } = a;
|
47
|
+
return n;
|
48
|
+
});
|
49
|
+
else {
|
50
|
+
const a = e.toLowerCase();
|
51
|
+
t = t.filter((o) => f == null ? void 0 : f.some((r) => {
|
52
|
+
var u;
|
53
|
+
return (((u = o[r]) == null ? void 0 : u.toString()) ?? "").toLowerCase().includes(a);
|
54
|
+
}));
|
55
|
+
}
|
56
|
+
} else
|
57
|
+
t = t.filter((i) => {
|
58
|
+
var o;
|
59
|
+
return (((o = i[s]) == null ? void 0 : o.toString()) ?? "").toLowerCase().includes(e.toString().toLowerCase());
|
60
|
+
});
|
61
|
+
else
|
62
|
+
t = t.filter((i) => {
|
63
|
+
var a;
|
64
|
+
return ((a = i[s]) == null ? void 0 : a.toString()) === e.toString();
|
65
|
+
});
|
66
|
+
}), b.value && Object.keys(b.value).length > 0 && ((l = m.value) != null && l.keywords && typeof m.value.keywords == "string" && m.value.keywords.trim().split(/\s+/).filter((e) => e.length > 0).length > 1 || Object.entries(b.value).forEach(([e, i]) => {
|
67
|
+
t = t.sort((a, o) => {
|
68
|
+
const r = a[e], n = o[e], u = !isNaN(Date.parse(r)) && !isNaN(Date.parse(n));
|
69
|
+
return typeof r == "number" && typeof n == "number" ? i === "desc" ? n - r : r - n : u ? i === "desc" ? new Date(n) - new Date(r) : new Date(r) - new Date(n) : i === "desc" ? n == null ? void 0 : n.toString().localeCompare(r == null ? void 0 : r.toString()) : r == null ? void 0 : r.toString().localeCompare(n == null ? void 0 : n.toString());
|
36
70
|
});
|
37
|
-
})
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
}), t;
|
43
|
-
}, f = async () => {
|
44
|
-
s && (p.value = !0, g && clearTimeout(g), g = setTimeout(async () => {
|
45
|
-
const t = await C(), r = (parseInt(i.value.page) - 1) * parseInt(i.value.per_page), a = parseInt(i.value.per_page), e = t.slice(r, r + a);
|
46
|
-
D.value = e, m.value = {
|
71
|
+
})), t;
|
72
|
+
}, w = async () => {
|
73
|
+
c && (h.value = !0, D && clearTimeout(D), D = setTimeout(async () => {
|
74
|
+
const t = await K(), l = (parseInt(d.value.page) - 1) * parseInt(d.value.per_page), s = parseInt(d.value.per_page), e = t.slice(l, l + s);
|
75
|
+
S.value = e, C.value = {
|
47
76
|
total: t.length,
|
48
|
-
last_page: Math.ceil(t.length /
|
49
|
-
},
|
77
|
+
last_page: Math.ceil(t.length / s)
|
78
|
+
}, h.value = !1;
|
50
79
|
}, 500));
|
51
80
|
};
|
52
81
|
return {
|
53
82
|
// State
|
54
|
-
localData:
|
55
|
-
sortByData:
|
56
|
-
filterData:
|
57
|
-
paginationData:
|
58
|
-
isLoading:
|
83
|
+
localData: S,
|
84
|
+
sortByData: y,
|
85
|
+
filterData: d,
|
86
|
+
paginationData: C,
|
87
|
+
isLoading: h,
|
59
88
|
// Methods
|
60
89
|
bulkPutLocalData: async (t) => {
|
61
|
-
|
90
|
+
c && await c.table(g.value).bulkPut(t), await w();
|
62
91
|
},
|
63
92
|
bulkDeleteLocalData: async (t) => {
|
64
|
-
|
93
|
+
c && await c.table(g.value).bulkDelete(t), await w();
|
65
94
|
},
|
66
95
|
getLocalDataUpdatedAt: async () => {
|
67
|
-
if (!
|
96
|
+
if (!c || typeof c.table != "function")
|
68
97
|
return null;
|
69
98
|
try {
|
70
|
-
const t =
|
99
|
+
const t = c.table(g.value);
|
71
100
|
if (!t)
|
72
101
|
return null;
|
73
|
-
const
|
74
|
-
return (
|
102
|
+
const l = await t.orderBy("updated_at").reverse().limit(1).first();
|
103
|
+
return (l == null ? void 0 : l.updated_at) || null;
|
75
104
|
} catch (t) {
|
76
105
|
return console.error("Error getting last updated timestamp:", t), null;
|
77
106
|
}
|
78
107
|
},
|
79
108
|
getLocalDataIds: async () => {
|
80
|
-
if (
|
81
|
-
return await
|
109
|
+
if (c)
|
110
|
+
return await c.table(g.value).toCollection().primaryKeys();
|
82
111
|
},
|
83
|
-
syncLocalData:
|
112
|
+
syncLocalData: w,
|
84
113
|
// Setters
|
85
114
|
setFilter: (t) => {
|
86
|
-
|
115
|
+
d.value = { ...t }, w();
|
87
116
|
},
|
88
117
|
setSortBy: (t) => {
|
89
|
-
|
118
|
+
y.value = { ...t }, w();
|
90
119
|
}
|
91
120
|
};
|
92
121
|
}
|
93
122
|
export {
|
94
|
-
|
123
|
+
V as useDataTable
|
95
124
|
};
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { al as r, an as s, aj as u, aq as S, ap as o, am as t, ao as d, ak as b } from "../../index-
|
2
|
-
import { default as i } from "../../OcAccountSetupProgress-
|
1
|
+
import { al as r, an as s, aj as u, aq as S, ap as o, am as t, ao as d, ak as b } from "../../index-85znXgNN.js";
|
2
|
+
import { default as i } from "../../OcAccountSetupProgress-tS3D-vBm.js";
|
3
3
|
export {
|
4
4
|
r as AccountSetup,
|
5
5
|
i 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-85znXgNN.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-85znXgNN.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",
|