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