@orchidui/core 1.20.1-14 → 1.20.1-2
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 +58 -87
- 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 +3 -3
- package/dist/Elements/SubSidebar/OcSubSidebar.js +1 -1
- package/dist/Elements/TopBanner/OcTopBanner.js +2 -2
- package/dist/Elements/VerificationOption/OcVerificationOption.js +2 -2
- 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-BOfQYDFo.js → OcAccountSetupProgress-Cy0dpeEz.js} +1 -1
- package/dist/{OcComplexCalendar-p6KngVZF.js → OcComplexCalendar-CW9ywC79.js} +1 -1
- package/dist/{OcComplexDatePicker-Da_hy-YB.js → OcComplexDatePicker-Bv6fG7uw.js} +1 -1
- package/dist/{OcCropper-VwDuRfPC.js → OcCropper-DEqlnQVR.js} +5 -5
- package/dist/OcDataTable-DpHmrZU-.js +557 -0
- package/dist/{OcDraggableList-Bqb02lon.js → OcDraggableList-CqzHfHcZ.js} +10 -10
- package/dist/{OcEmojiPicker-eSMZCQ2w.js → OcEmojiPicker-BPiTdT1O.js} +6 -6
- package/dist/{OcFilterForm-t7wGkU2m.js → OcFilterForm-BUebYAhw.js} +1 -1
- package/dist/OcFilterSearch-DKB_oDjH.js +112 -0
- package/dist/{OcFilterSearchFor-gI9i6Duz.js → OcFilterSearchFor-DcoOZGLK.js} +3 -3
- package/dist/{OcModalCropper-1V2kW_3R.js → OcModalCropper-BW20zCxs.js} +7 -7
- package/dist/{OcTimePicker-CPnpPbo-.js → OcTimePicker-DufQzTw5.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-BGhWldbE.js → SubPlanCard-CWkFdNd1.js} +1 -1
- package/dist/{ThumbnailSection-EDoXUj2D.js → ThumbnailSection-CvaV4-wQ.js} +1 -1
- package/dist/{ThumbnailTheme-DUUyB1sl.js → ThumbnailTheme-97EtbMwJ.js} +1 -1
- package/dist/core.css +1 -1
- package/dist/{index-CJryai7d.js → index-DfqmGpE8.js} +2961 -3239
- package/dist/index.js +86 -87
- package/package.json +1 -1
- package/dist/DataDisplay/NewTable/OcNewTable.js +0 -4
- package/dist/OcDataTable-BCecOUzn.js +0 -584
- package/dist/OcFilterSearch-B4cHliYQ.js +0 -124
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
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-DfqmGpE8.js";
|
2
2
|
export {
|
3
3
|
l as ExpandingHeaderRow,
|
4
4
|
n as ExpandingTable,
|
@@ -1,124 +1,95 @@
|
|
1
|
-
import { ref as
|
2
|
-
function
|
3
|
-
const { name:
|
1
|
+
import { ref as c, computed as w } from "vue";
|
2
|
+
function N(L) {
|
3
|
+
const { name: v, db: s, filterable_fields: S, sortable_fields: h } = L, u = c(v), D = c([]), d = c({}), i = c({
|
4
4
|
page: 1,
|
5
5
|
per_page: 10
|
6
|
-
}),
|
6
|
+
}), m = c({
|
7
7
|
total: 0,
|
8
8
|
last_page: 1
|
9
|
-
}),
|
10
|
-
let
|
11
|
-
const
|
12
|
-
const t = {},
|
13
|
-
return Object.entries(
|
14
|
-
|
9
|
+
}), p = c(!1);
|
10
|
+
let g = null;
|
11
|
+
const y = w(() => {
|
12
|
+
const t = {}, r = S ?? [];
|
13
|
+
return Object.entries(i.value).forEach(([a, e]) => {
|
14
|
+
r.includes(a) && e !== void 0 && e !== null && e !== "" && (t[a] = e);
|
15
15
|
}), t;
|
16
|
-
}), b =
|
17
|
-
const t = {},
|
18
|
-
return Object.entries(
|
19
|
-
|
16
|
+
}), b = w(() => {
|
17
|
+
const t = {}, r = h ?? [];
|
18
|
+
return Object.entries(d.value).forEach(([a, e]) => {
|
19
|
+
r.includes(a) && e !== void 0 && e !== null && e !== "" && (t[a] = e);
|
20
20
|
}), t;
|
21
|
-
}),
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
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());
|
21
|
+
}), C = async () => {
|
22
|
+
let t = await s.table(u.value).toArray();
|
23
|
+
return y.value && Object.entries(y.value).forEach(([r, a]) => {
|
24
|
+
Array.isArray(a) ? t = t.filter((e) => {
|
25
|
+
var n;
|
26
|
+
const l = ((n = e[r]) == null ? void 0 : n.toString()) ?? "";
|
27
|
+
return a.some(
|
28
|
+
(o) => l.toLowerCase().includes(o.toString().toLowerCase())
|
29
|
+
);
|
30
|
+
}) : typeof a == "string" ? t = t.filter((e) => {
|
31
|
+
var n;
|
32
|
+
return (((n = e[r]) == null ? void 0 : n.toString()) ?? "").toLowerCase().includes(a.toString().toLowerCase());
|
33
|
+
}) : t = t.filter((e) => {
|
34
|
+
var l;
|
35
|
+
return ((l = e[r]) == null ? void 0 : l.toString()) === a.toString();
|
70
36
|
});
|
71
|
-
})),
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
37
|
+
}), b.value && Object.keys(b.value).length > 0 && Object.entries(b.value).forEach(([r, a]) => {
|
38
|
+
t = t.sort((e, l) => {
|
39
|
+
const n = e[r], o = l[r], _ = !isNaN(Date.parse(n)) && !isNaN(Date.parse(o));
|
40
|
+
return typeof n == "number" && typeof o == "number" ? a === "desc" ? o - n : n - o : _ ? a === "desc" ? new Date(o) - new Date(n) : new Date(n) - new Date(o) : a === "desc" ? o == null ? void 0 : o.toString().localeCompare(n == null ? void 0 : n.toString()) : n == null ? void 0 : n.toString().localeCompare(o == null ? void 0 : o.toString());
|
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 = {
|
76
47
|
total: t.length,
|
77
|
-
last_page: Math.ceil(t.length /
|
78
|
-
},
|
48
|
+
last_page: Math.ceil(t.length / a)
|
49
|
+
}, p.value = !1;
|
79
50
|
}, 500));
|
80
51
|
};
|
81
52
|
return {
|
82
53
|
// State
|
83
|
-
localData:
|
84
|
-
sortByData:
|
85
|
-
filterData:
|
86
|
-
paginationData:
|
87
|
-
isLoading:
|
54
|
+
localData: D,
|
55
|
+
sortByData: d,
|
56
|
+
filterData: i,
|
57
|
+
paginationData: m,
|
58
|
+
isLoading: p,
|
88
59
|
// Methods
|
89
60
|
bulkPutLocalData: async (t) => {
|
90
|
-
|
61
|
+
s && await s.table(u.value).bulkPut(t), await f();
|
91
62
|
},
|
92
63
|
bulkDeleteLocalData: async (t) => {
|
93
|
-
|
64
|
+
s && await s.table(u.value).bulkDelete(t), await f();
|
94
65
|
},
|
95
66
|
getLocalDataUpdatedAt: async () => {
|
96
|
-
if (!
|
67
|
+
if (!s || typeof s.table != "function")
|
97
68
|
return null;
|
98
69
|
try {
|
99
|
-
const t =
|
70
|
+
const t = s.table(u.value);
|
100
71
|
if (!t)
|
101
72
|
return null;
|
102
|
-
const
|
103
|
-
return (
|
73
|
+
const r = await t.orderBy("updated_at").reverse().limit(1).first();
|
74
|
+
return (r == null ? void 0 : r.updated_at) || null;
|
104
75
|
} catch (t) {
|
105
76
|
return console.error("Error getting last updated timestamp:", t), null;
|
106
77
|
}
|
107
78
|
},
|
108
79
|
getLocalDataIds: async () => {
|
109
|
-
if (
|
110
|
-
return await
|
80
|
+
if (s)
|
81
|
+
return await s.table(u.value).toCollection().primaryKeys();
|
111
82
|
},
|
112
|
-
syncLocalData:
|
83
|
+
syncLocalData: f,
|
113
84
|
// Setters
|
114
85
|
setFilter: (t) => {
|
115
|
-
|
86
|
+
i.value = { ...t }, f();
|
116
87
|
},
|
117
88
|
setSortBy: (t) => {
|
118
|
-
|
89
|
+
d.value = { ...t }, f();
|
119
90
|
}
|
120
91
|
};
|
121
92
|
}
|
122
93
|
export {
|
123
|
-
|
94
|
+
N as useDataTable
|
124
95
|
};
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import {
|
2
|
-
import { default as
|
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-DfqmGpE8.js";
|
2
|
+
import { default as n } from "../../OcAccountSetupProgress-Cy0dpeEz.js";
|
3
3
|
export {
|
4
4
|
r as AccountSetup,
|
5
|
-
|
5
|
+
n as AccountSetupProgress,
|
6
6
|
s as SideBarMenu,
|
7
7
|
u as Sidebar,
|
8
8
|
S as SidebarFeatureBanners,
|
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-DfqmGpE8.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-DfqmGpE8.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",
|