@orchidui/core 1.8.1-100 → 1.8.1-103
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 +34 -33
- 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-BZrI2z-C.js → OcAccountSetupProgress-BeowOIMh.js} +1 -1
- package/dist/{OcComplexCalendar-CrhHAVnT.js → OcComplexCalendar-D4s8G5YU.js} +1 -1
- package/dist/{OcComplexDatePicker-Cr_6CjYB.js → OcComplexDatePicker-IBeip5hE.js} +1 -1
- package/dist/{OcCropper-BMMZRsnp.js → OcCropper-Bgu0Vygr.js} +1 -1
- package/dist/{OcDataTable-B5QRaoES.js → OcDataTable-MsODXwsj.js} +109 -109
- package/dist/{OcDraggableList-Bka23Zj_.js → OcDraggableList-CU1RKnDp.js} +1 -1
- package/dist/{OcEmojiPicker-CjL4Ap4z.js → OcEmojiPicker-BSIj846S.js} +1 -1
- package/dist/{OcFilterForm-IZtn5Vdc.js → OcFilterForm-CWtnljsU.js} +1 -1
- package/dist/{OcFilterSearch-Bn7BjQMO.js → OcFilterSearch-BzPLJVN6.js} +1 -1
- package/dist/{OcFilterSearchFor-B0Cyh-PP.js → OcFilterSearchFor-ByVEggJ2.js} +1 -1
- package/dist/{OcModalCropper-KoaOw5ug.js → OcModalCropper-B2stfV7m.js} +2 -2
- package/dist/{OcTimePicker-i88_uGmT.js → OcTimePicker-llwFgHps.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-CmQpq6Jd.js → SubPlanCard-CJ8yWifV.js} +1 -1
- package/dist/{ThumbnailSection-VGh-BSav.js → ThumbnailSection-WmXCmJS6.js} +1 -1
- package/dist/{ThumbnailTheme-OomrH2df.js → ThumbnailTheme-MfGJS3Cq.js} +1 -1
- package/dist/{index-DeDsEdk8.js → index-Ov9629Pn.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-Ov9629Pn.js";
|
2
2
|
export {
|
3
3
|
l as ExpandingHeaderRow,
|
4
4
|
n as ExpandingTable,
|
@@ -1,54 +1,55 @@
|
|
1
1
|
import { ref as s } from "vue";
|
2
2
|
function I(m) {
|
3
|
-
const { id: L, name: w, localDb:
|
3
|
+
const { id: L, name: w, localDb: B } = m, _ = s(L), n = s(w), i = s(B), D = s([]), l = s([]), d = s({}), g = s({
|
4
4
|
total: 0,
|
5
5
|
last_page: 0
|
6
|
-
}),
|
7
|
-
let
|
6
|
+
}), y = s(!1);
|
7
|
+
let b = null;
|
8
8
|
const p = async () => {
|
9
|
-
|
10
|
-
let e = i.value.table(
|
9
|
+
y.value = !0, b && clearTimeout(b), b = setTimeout(async () => {
|
10
|
+
let e = i.value.table(n.value);
|
11
11
|
const t = C();
|
12
|
-
t.filter && Object.entries(t.filter).forEach(([c, o]) => {
|
13
|
-
o && Array.isArray(o) ? e = e.filter((
|
14
|
-
const u =
|
15
|
-
return o.some((
|
16
|
-
}) : o && typeof o == "string" ? e = e.filter((
|
17
|
-
const u =
|
12
|
+
console.log("local filter options :", t), t.filter && Object.entries(t.filter).forEach(([c, o]) => {
|
13
|
+
o && Array.isArray(o) ? e = e.filter((f) => {
|
14
|
+
const u = f[c];
|
15
|
+
return o.some((v) => typeof v == "string" && typeof u == "string" ? u.toLowerCase().includes(v.toLowerCase()) : u === v);
|
16
|
+
}) : o && typeof o == "string" ? e = e.filter((f) => {
|
17
|
+
const u = f[c];
|
18
18
|
return typeof u == "string" && u.toLowerCase().includes(o.toLowerCase());
|
19
|
-
}) : o != null && (e = e.filter((
|
19
|
+
}) : o != null && (e = e.filter((f) => f[c] === o));
|
20
20
|
}), t.sortBy && t.sortBy.length > 0 && t.sortBy.forEach((c) => {
|
21
21
|
e = e.sortBy(c.column), c.direction === "desc" && (e = e.reverse());
|
22
22
|
});
|
23
23
|
const a = await e.toArray();
|
24
|
-
|
25
|
-
const
|
26
|
-
|
27
|
-
total:
|
24
|
+
D.value = a;
|
25
|
+
const r = await i.value.table(n.value).count();
|
26
|
+
g.value = {
|
27
|
+
total: r,
|
28
28
|
page: t.page,
|
29
29
|
per_page: t.per_page,
|
30
|
-
last_page: Math.ceil(
|
31
|
-
},
|
30
|
+
last_page: Math.ceil(r / t.per_page)
|
31
|
+
}, y.value = !1;
|
32
32
|
}, 300);
|
33
33
|
}, C = () => {
|
34
34
|
const e = {}, t = ["columnEdit", "page", "per_page"];
|
35
|
-
return Object.entries(
|
36
|
-
!t.includes(a) &&
|
35
|
+
return Object.entries(d.value).forEach(([a, r]) => {
|
36
|
+
!t.includes(a) && r !== void 0 && r !== null && r !== "" && (e[a] = r);
|
37
37
|
}), {
|
38
38
|
filter: e,
|
39
39
|
sortBy: l.value,
|
40
|
-
page:
|
41
|
-
per_page:
|
40
|
+
page: d.value.page,
|
41
|
+
per_page: d.value.per_page,
|
42
|
+
pagination: g.value
|
42
43
|
};
|
43
44
|
};
|
44
45
|
return {
|
45
46
|
// State
|
46
47
|
sortBy: l,
|
47
|
-
localData:
|
48
|
-
dataTableId:
|
49
|
-
dbTablename:
|
50
|
-
paginationData:
|
51
|
-
isLoading:
|
48
|
+
localData: D,
|
49
|
+
dataTableId: _,
|
50
|
+
dbTablename: n,
|
51
|
+
paginationData: g,
|
52
|
+
isLoading: y,
|
52
53
|
// Methods
|
53
54
|
toggleSort: (e) => {
|
54
55
|
const t = l.value.find((a) => a.column === e);
|
@@ -57,23 +58,23 @@ function I(m) {
|
|
57
58
|
) : l.value = l.value.filter((a) => a.column !== e) : l.value = [...l.value, { column: e, direction: "asc" }], p();
|
58
59
|
},
|
59
60
|
bulkPutLocalData: async (e) => {
|
60
|
-
await i.value.table(
|
61
|
+
await i.value.table(n.value).bulkPut(e);
|
61
62
|
},
|
62
63
|
bulkDeleteLocalData: async (e) => {
|
63
|
-
await i.value.table(
|
64
|
+
await i.value.table(n.value).bulkDelete(e);
|
64
65
|
},
|
65
66
|
getLocalDataUpdatedAt: async () => {
|
66
|
-
const e = await i.value.table(
|
67
|
+
const e = await i.value.table(n.value).orderBy("updated_at").reverse().limit(1).first();
|
67
68
|
return e == null ? void 0 : e.updated_at;
|
68
69
|
},
|
69
|
-
getLocalDataIds: async () => await i.value.table(
|
70
|
+
getLocalDataIds: async () => await i.value.table(n.value).toCollection().primaryKeys(),
|
70
71
|
syncLocalData: p,
|
71
72
|
// Setters
|
72
73
|
setFilter: (e) => {
|
73
|
-
|
74
|
+
d.value = { ...e }, console.log("setFilter", d.value), p();
|
74
75
|
},
|
75
76
|
setSortBy: (e) => {
|
76
|
-
l.value = { ...e }, p();
|
77
|
+
l.value = { ...e }, console.log("setSortBy", l.value), p();
|
77
78
|
}
|
78
79
|
};
|
79
80
|
}
|
@@ -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-Ov9629Pn.js";
|
2
|
+
import { default as n } from "../../OcAccountSetupProgress-BeowOIMh.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-Ov9629Pn.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-Ov9629Pn.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-Ov9629Pn.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-Ov9629Pn.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-Ov9629Pn.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 = {
|