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