@orchidui/core 1.20.1-10 → 1.20.1-12
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 +51 -55
- 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-volIZxPE.js → OcAccountSetupProgress-DRnHwL3x.js} +1 -1
- package/dist/{OcComplexCalendar-rnP2VSsp.js → OcComplexCalendar-D_p1Jhzs.js} +1 -1
- package/dist/{OcComplexDatePicker-zEY4nVMT.js → OcComplexDatePicker-CvyaIwy7.js} +1 -1
- package/dist/{OcCropper-Cyss09X7.js → OcCropper-BPk7F8Gz.js} +1 -1
- package/dist/{OcDataTable-Br5xxpmF.js → OcDataTable-B_HR_QDO.js} +46 -46
- package/dist/{OcDraggableList-DiY8GBjy.js → OcDraggableList-DK6ME8Pr.js} +1 -1
- package/dist/{OcEmojiPicker-ChNCiWFy.js → OcEmojiPicker-CsO9v-gn.js} +1 -1
- package/dist/{OcFilterForm-3babUDzc.js → OcFilterForm-B8LvCJVv.js} +1 -1
- package/dist/OcFilterSearch-rAFitrzE.js +124 -0
- package/dist/{OcFilterSearchFor-BMaewwyQ.js → OcFilterSearchFor-BZfNXj1q.js} +1 -1
- package/dist/{OcModalCropper-BdONfm42.js → OcModalCropper-Cvt6b1RJ.js} +2 -2
- package/dist/{OcTimePicker-C818d_Uq.js → OcTimePicker-CTEvBSWp.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-Wf4QI_B5.js → SubPlanCard-U3ULYfLJ.js} +1 -1
- package/dist/{ThumbnailSection-CXuuRnOY.js → ThumbnailSection-BTRbp5Wg.js} +1 -1
- package/dist/{ThumbnailTheme-LyFY95ps.js → ThumbnailTheme-BjzxjcOP.js} +1 -1
- package/dist/{index-B6YvZe00.js → index-vD24o4LF.js} +2337 -2307
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/OcFilterSearch-s6SZ45pz.js +0 -117
@@ -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-vD24o4LF.js";
|
2
2
|
export {
|
3
3
|
l as ExpandingHeaderRow,
|
4
4
|
n as ExpandingTable,
|
@@ -1,90 +1,89 @@
|
|
1
1
|
import { ref as p, computed as v } from "vue";
|
2
|
-
function V(
|
3
|
-
const { name: k, db: c, filterableFields:
|
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
9
|
}), h = p(!1);
|
10
10
|
let D = null;
|
11
11
|
const m = v(() => {
|
12
|
-
const t = {};
|
13
|
-
|
14
|
-
|
15
|
-
o.includes(l) && e !== void 0 && e !== null && e !== "" && (t[l] = e);
|
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);
|
16
15
|
}), t;
|
17
|
-
}),
|
18
|
-
const t = {},
|
19
|
-
return Object.entries(y.value).forEach(([
|
20
|
-
|
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);
|
21
20
|
}), t;
|
22
|
-
}),
|
23
|
-
var
|
21
|
+
}), K = async () => {
|
22
|
+
var l;
|
24
23
|
let t = await c.table(g.value).toArray();
|
25
|
-
return m.value && Object.entries(m.value).forEach(([
|
24
|
+
return m.value && Object.entries(m.value).forEach(([s, e]) => {
|
26
25
|
if (Array.isArray(e))
|
27
26
|
t = t.filter((i) => {
|
28
|
-
var
|
29
|
-
const
|
30
|
-
return e.some((
|
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()));
|
31
30
|
});
|
32
31
|
else if (typeof e == "string")
|
33
|
-
if (
|
34
|
-
const i = e.trim().split(/\s+/).filter((
|
32
|
+
if (s === "keywords") {
|
33
|
+
const i = e.trim().split(/\s+/).filter((a) => a.length > 0);
|
35
34
|
if (i.length > 1)
|
36
|
-
t = t.map((
|
37
|
-
let
|
38
|
-
return i.forEach((
|
39
|
-
const
|
40
|
-
|
41
|
-
var
|
42
|
-
const
|
43
|
-
|
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));
|
44
43
|
});
|
45
|
-
}),
|
46
|
-
}).filter((
|
47
|
-
const { _searchScore:
|
48
|
-
return
|
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;
|
49
48
|
});
|
50
49
|
else {
|
51
|
-
const
|
52
|
-
t = t.filter((
|
53
|
-
var
|
54
|
-
return (((
|
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);
|
55
54
|
}));
|
56
55
|
}
|
57
56
|
} else
|
58
57
|
t = t.filter((i) => {
|
59
|
-
var
|
60
|
-
return (((
|
58
|
+
var o;
|
59
|
+
return (((o = i[s]) == null ? void 0 : o.toString()) ?? "").toLowerCase().includes(e.toString().toLowerCase());
|
61
60
|
});
|
62
61
|
else
|
63
62
|
t = t.filter((i) => {
|
64
|
-
var
|
65
|
-
return ((
|
63
|
+
var a;
|
64
|
+
return ((a = i[s]) == null ? void 0 : a.toString()) === e.toString();
|
66
65
|
});
|
67
|
-
}),
|
68
|
-
t = t.sort((
|
69
|
-
const
|
70
|
-
return typeof
|
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());
|
71
70
|
});
|
72
71
|
})), t;
|
73
72
|
}, w = async () => {
|
74
73
|
c && (h.value = !0, D && clearTimeout(D), D = setTimeout(async () => {
|
75
|
-
const t = await
|
76
|
-
|
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 = {
|
77
76
|
total: t.length,
|
78
|
-
last_page: Math.ceil(t.length /
|
77
|
+
last_page: Math.ceil(t.length / s)
|
79
78
|
}, h.value = !1;
|
80
79
|
}, 500));
|
81
80
|
};
|
82
81
|
return {
|
83
82
|
// State
|
84
|
-
localData:
|
83
|
+
localData: S,
|
85
84
|
sortByData: y,
|
86
85
|
filterData: d,
|
87
|
-
paginationData:
|
86
|
+
paginationData: C,
|
88
87
|
isLoading: h,
|
89
88
|
// Methods
|
90
89
|
bulkPutLocalData: async (t) => {
|
@@ -100,18 +99,15 @@ function V(A) {
|
|
100
99
|
const t = c.table(g.value);
|
101
100
|
if (!t)
|
102
101
|
return null;
|
103
|
-
const
|
104
|
-
return (
|
102
|
+
const l = await t.orderBy("updated_at").reverse().limit(1).first();
|
103
|
+
return (l == null ? void 0 : l.updated_at) || null;
|
105
104
|
} catch (t) {
|
106
105
|
return console.error("Error getting last updated timestamp:", t), null;
|
107
106
|
}
|
108
107
|
},
|
109
|
-
|
108
|
+
getLocalDataIds: async () => {
|
110
109
|
if (c)
|
111
|
-
return
|
112
|
-
id: o.id,
|
113
|
-
updated_at: o.updated_at
|
114
|
-
}));
|
110
|
+
return await c.table(g.value).toCollection().primaryKeys();
|
115
111
|
},
|
116
112
|
syncLocalData: w,
|
117
113
|
// Setters
|
@@ -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-vD24o4LF.js";
|
2
|
+
import { default as i } from "../../OcAccountSetupProgress-DRnHwL3x.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-vD24o4LF.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-vD24o4LF.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-vD24o4LF.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 { aH as c, _ as f, aA as b, d as p, aI as V } from "./index-
|
2
|
+
import { aH as c, _ as f, aA as b, d as p, aI as V } from "./index-vD24o4LF.js";
|
3
3
|
import r from "dayjs";
|
4
4
|
const x = {
|
5
5
|
__name: "OcComplexDatePicker",
|