@orchidui/core 1.10.0 → 1.14.0
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 +2 -2
- 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/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/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 +2 -2
- package/dist/Form/CardInput/OcCardInput.js +1 -1
- package/dist/Form/Checkbox/OcCheckbox.js +2 -2
- 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 +2 -2
- package/dist/Form/MultipleUploadFile/OcMultipleUploadFile.js +1 -1
- package/dist/Form/NumberInput/OcNumberInput.js +1 -1
- package/dist/Form/PhoneInput/OcPhoneInput.js +2 -2
- 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 +2 -2
- package/dist/Form/Select/OcSelect.js +1 -1
- package/dist/Form/SelectOptions/OcSelectOptions.js +2 -2
- package/dist/Form/SingleFileUpload/OcSingleFileUpload.js +1 -1
- package/dist/Form/Slider/OcSlider.js +1 -1
- package/dist/Form/TextArea/OcTextArea.js +2 -2
- package/dist/Form/Toggle/OcToggle.js +1 -1
- package/dist/Form/index.js +8 -8
- package/dist/FormBuilder/OcFormBuilder.js +1 -1
- package/dist/MediaAndIcons/Icon/OcIcon.js +1 -1
- package/dist/{OcAccountSetupProgress-CaPZ5qXP.js → OcAccountSetupProgress-CdEgdgcY.js} +2 -2
- package/dist/{OcComplexCalendar-B4lQwiPh.js → OcComplexCalendar-DBMEhTXr.js} +1 -1
- package/dist/{OcComplexDatePicker-BQGEjDww.js → OcComplexDatePicker-YsBpr0Jw.js} +1 -1
- package/dist/OcCropper-CvxnbkVg.js +253 -0
- package/dist/OcDataTable-DNQHTV5u.js +590 -0
- package/dist/{OcDraggable-CA_BCbpl.js → OcDraggable-CZT2mJvO.js} +5 -4
- package/dist/{OcDraggableList-DfcT9cdf.js → OcDraggableList-ChywEbvI.js} +2 -2
- package/dist/{OcEmojiPicker-C-S5vG0c.js → OcEmojiPicker-B4pvBfIx.js} +1 -1
- package/dist/{OcFilterForm-nlTSe35v.js → OcFilterForm-CNG0JY1X.js} +8 -8
- package/dist/OcFilterSearch-zfIRpntJ.js +117 -0
- package/dist/{OcFilterSearchFor-DHkl2S2H.js → OcFilterSearchFor-Ce2cg7uw.js} +3 -3
- package/dist/{OcIcon-CJgBICxh.js → OcIcon-CSpRxnwd.js} +7 -7
- package/dist/OcModalCropper-CwFH7lyA.js +52 -0
- package/dist/{OcPopper-BgjdqRiw.js → OcPopper-Bc96YXbS.js} +19 -21
- package/dist/{OcTimePicker-CP3DKZnI.js → OcTimePicker-Dxqp4zue.js} +1 -1
- package/dist/OcToggle-Cp5dJ5LN.js +58 -0
- 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/Popper/OcPopper.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-B_xqfv9l.js → SubPlanCard-B296VqWh.js} +2 -2
- package/dist/{ThumbnailSection-BwPHSKTb.js → ThumbnailSection-Cl94yarQ.js} +1 -1
- package/dist/{ThumbnailTheme-CEcfUgY7.js → ThumbnailTheme-CnXoXfVt.js} +2 -2
- package/dist/{index-C1jzdcW-.js → index-D8xMbiHG.js} +1847 -1784
- package/dist/index.js +4 -4
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/OcCropper-B2XYrklz.js +0 -229
- package/dist/OcDataTable-DVRY1jeJ.js +0 -578
- package/dist/OcFilterSearch-DqQV0yEz.js +0 -69
- package/dist/OcModalCropper-DyOgFLXP.js +0 -46
- package/dist/OcToggle-bIJaLDMZ.js +0 -53
@@ -1,5 +1,5 @@
|
|
1
|
-
import { ref as r, computed as
|
2
|
-
import {
|
1
|
+
import { ref as r, computed as u, onMounted as B, openBlock as O, createElementBlock as k, renderSlot as $, createElementVNode as f, createVNode as c, unref as i } from "vue";
|
2
|
+
import { u as w, B as m } from "./index-D8xMbiHG.js";
|
3
3
|
const C = { class: "flex w-[326px] flex-col gap-y-5" }, A = { class: "max-h-[500px] overflow-y-auto p-5" }, E = { class: "flex gap-x-5 px-5 pb-5" }, N = {
|
4
4
|
__name: "OcFilterForm",
|
5
5
|
props: {
|
@@ -29,10 +29,10 @@ const C = { class: "flex w-[326px] flex-col gap-y-5" }, A = { class: "max-h-[500
|
|
29
29
|
typeof e.name == "object" ? e.name.forEach((o, h) => {
|
30
30
|
a.value[o.key] = l[h];
|
31
31
|
}) : a.value[e.name] = l, b(e.name);
|
32
|
-
}, g =
|
32
|
+
}, g = u(() => Object.values(a.value).length > 0), F = u(() => {
|
33
33
|
var e, l;
|
34
34
|
return ((l = (e = s.actions) == null ? void 0 : e.applyButton) == null ? void 0 : l.label) || "Apply";
|
35
|
-
}), j =
|
35
|
+
}), j = u(() => {
|
36
36
|
var e, l;
|
37
37
|
return ((l = (e = s.actions) == null ? void 0 : e.cancelButton) == null ? void 0 : l.label) || "Cancel";
|
38
38
|
});
|
@@ -43,14 +43,14 @@ const C = { class: "flex w-[326px] flex-col gap-y-5" }, A = { class: "max-h-[500
|
|
43
43
|
d("applyFilter", a.value), d("filter-fields-changed", n.value), n.value = [];
|
44
44
|
};
|
45
45
|
return (e, l) => (O(), k("div", C, [
|
46
|
-
|
46
|
+
$(e.$slots, "default", {
|
47
47
|
errors: p.value,
|
48
48
|
values: a.value,
|
49
49
|
jsonForm: t.jsonForm,
|
50
50
|
updateForm: v
|
51
51
|
}, () => [
|
52
52
|
f("div", A, [
|
53
|
-
|
53
|
+
c(i(w), {
|
54
54
|
id: `filter-form-${t.id}`,
|
55
55
|
class: "grid gap-5",
|
56
56
|
errors: p.value,
|
@@ -62,13 +62,13 @@ const C = { class: "flex w-[326px] flex-col gap-y-5" }, A = { class: "max-h-[500
|
|
62
62
|
])
|
63
63
|
]),
|
64
64
|
f("div", E, [
|
65
|
-
|
65
|
+
c(i(m), {
|
66
66
|
class: "w-full",
|
67
67
|
variant: "secondary",
|
68
68
|
label: j.value,
|
69
69
|
onClick: l[0] || (l[0] = (o) => e.$emit("cancel"))
|
70
70
|
}, null, 8, ["label"]),
|
71
|
-
|
71
|
+
c(i(m), {
|
72
72
|
class: "w-full",
|
73
73
|
"is-disabled": !g.value,
|
74
74
|
label: F.value,
|
@@ -0,0 +1,117 @@
|
|
1
|
+
import { ref as c, computed as B, openBlock as s, createElementBlock as u, Fragment as x, createElementVNode as i, normalizeClass as O, createVNode as m, unref as r, withKeys as K, createSlots as N, withCtx as v, renderList as Q, createBlock as f, toDisplayString as z, createCommentVNode as S, nextTick as D } from "vue";
|
2
|
+
import { d as E, ay as F, az as I, B as w } from "./index-D8xMbiHG.js";
|
3
|
+
import { _ as U } from "./OcIcon-CSpRxnwd.js";
|
4
|
+
const j = { class: "flex gap-x-4" }, q = { class: "flex gap-x-2 items-center pl-2 text-oc-text-400 font-medium text-sm" }, A = { class: "p-2 flex flex-col" }, J = {
|
5
|
+
__name: "OcFilterSearch",
|
6
|
+
props: {
|
7
|
+
isSearchOnly: Boolean,
|
8
|
+
searchOptions: Array,
|
9
|
+
selectedOption: String
|
10
|
+
},
|
11
|
+
emits: {
|
12
|
+
addQuery: [],
|
13
|
+
toggle: [],
|
14
|
+
"change-search-key": []
|
15
|
+
},
|
16
|
+
setup(t, { emit: C }) {
|
17
|
+
const h = C, y = t, l = c(!1), o = c(""), d = c(!1), p = c(), V = async () => {
|
18
|
+
l.value = !0, h("toggle", l), await D(), p.value.focus();
|
19
|
+
}, $ = B(() => y.searchOptions.find((n) => n.value === y.selectedOption)), b = (n) => {
|
20
|
+
h("change-search-key", n), d.value = !1;
|
21
|
+
};
|
22
|
+
return (n, a) => {
|
23
|
+
var g, k;
|
24
|
+
return s(), u(x, null, [
|
25
|
+
i("div", {
|
26
|
+
class: O(["w-full", l.value || t.isSearchOnly ? "" : "absolute max-w-0 overflow-hidden"])
|
27
|
+
}, [
|
28
|
+
i("div", j, [
|
29
|
+
m(r(E), {
|
30
|
+
ref_key: "searchInput",
|
31
|
+
ref: p,
|
32
|
+
modelValue: o.value,
|
33
|
+
"onUpdate:modelValue": a[1] || (a[1] = (e) => o.value = e),
|
34
|
+
placeholder: "Search something here",
|
35
|
+
class: "md:min-w-[310px]",
|
36
|
+
icon: (g = t.searchOptions) != null && g.length ? "" : "search",
|
37
|
+
onKeyup: a[2] || (a[2] = K(
|
38
|
+
() => {
|
39
|
+
n.$emit("addQuery", o.value);
|
40
|
+
},
|
41
|
+
["enter"]
|
42
|
+
))
|
43
|
+
}, N({ _: 2 }, [
|
44
|
+
(k = t.searchOptions) != null && k.length ? {
|
45
|
+
name: "trailing",
|
46
|
+
fn: v(() => [
|
47
|
+
m(r(F), {
|
48
|
+
modelValue: d.value,
|
49
|
+
"onUpdate:modelValue": a[0] || (a[0] = (e) => d.value = e),
|
50
|
+
distance: 12,
|
51
|
+
skidding: -8
|
52
|
+
}, {
|
53
|
+
menu: v(() => [
|
54
|
+
i("div", A, [
|
55
|
+
(s(!0), u(x, null, Q(t.searchOptions, (e) => (s(), f(r(I), {
|
56
|
+
key: e.value,
|
57
|
+
class: "text-sm",
|
58
|
+
text: e.label,
|
59
|
+
active: e.value === t.selectedOption,
|
60
|
+
onClick: (L) => b(e.value)
|
61
|
+
}, null, 8, ["text", "active", "onClick"]))), 128))
|
62
|
+
])
|
63
|
+
]),
|
64
|
+
default: v(() => {
|
65
|
+
var e;
|
66
|
+
return [
|
67
|
+
i("div", q, [
|
68
|
+
i("span", null, z((e = $.value) == null ? void 0 : e.label), 1),
|
69
|
+
m(r(U), {
|
70
|
+
name: "chevron-down",
|
71
|
+
width: "14",
|
72
|
+
height: "14"
|
73
|
+
})
|
74
|
+
])
|
75
|
+
];
|
76
|
+
}),
|
77
|
+
_: 1
|
78
|
+
}, 8, ["modelValue"])
|
79
|
+
]),
|
80
|
+
key: "0"
|
81
|
+
} : void 0
|
82
|
+
]), 1032, ["modelValue", "icon"]),
|
83
|
+
t.isSearchOnly ? (s(), f(r(w), {
|
84
|
+
key: 0,
|
85
|
+
label: "Search",
|
86
|
+
variant: "secondary",
|
87
|
+
class: "shrink-0",
|
88
|
+
onClick: a[3] || (a[3] = () => {
|
89
|
+
n.$emit("addQuery", o.value), o.value = "";
|
90
|
+
})
|
91
|
+
})) : (s(), u("span", {
|
92
|
+
key: 1,
|
93
|
+
class: "py-3 text-base cursor-pointer flex normal-case items-center font-medium text-oc-text-400",
|
94
|
+
onClick: a[4] || (a[4] = () => {
|
95
|
+
l.value = !1, n.$emit("toggle", l.value), o.value = "";
|
96
|
+
})
|
97
|
+
}, " Clear "))
|
98
|
+
])
|
99
|
+
], 2),
|
100
|
+
t.isSearchOnly ? S("", !0) : (s(), u("div", {
|
101
|
+
key: 0,
|
102
|
+
class: O(l.value ? "max-w-0 overflow-hidden" : "")
|
103
|
+
}, [
|
104
|
+
l.value ? S("", !0) : (s(), f(r(w), {
|
105
|
+
key: 0,
|
106
|
+
variant: "secondary",
|
107
|
+
"left-icon": "search",
|
108
|
+
onClick: V
|
109
|
+
}))
|
110
|
+
], 2))
|
111
|
+
], 64);
|
112
|
+
};
|
113
|
+
}
|
114
|
+
};
|
115
|
+
export {
|
116
|
+
J as default
|
117
|
+
};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { computed as k, openBlock as a, createBlock as m, unref as n, withCtx as x, createElementVNode as f, createElementBlock as v, Fragment as b, renderList as p, createVNode as F, createCommentVNode as $ } from "vue";
|
2
|
-
import {
|
3
|
-
const
|
2
|
+
import { M as y, at as i } from "./index-D8xMbiHG.js";
|
3
|
+
const C = { class: "flex gap-1 items-center normal-case flex-wrap" }, R = {
|
4
4
|
__name: "OcFilterSearchFor",
|
5
5
|
props: {
|
6
6
|
filters: Object,
|
@@ -34,7 +34,7 @@ const N = { class: "flex gap-1 items-center normal-case flex-wrap" }, R = {
|
|
34
34
|
class: "!w-full !justify-start !bg-oc-bg-light"
|
35
35
|
}, {
|
36
36
|
default: x(() => [
|
37
|
-
f("div",
|
37
|
+
f("div", C, [
|
38
38
|
l[1] || (l[1] = f("span", { class: "pr-2 text-sm font-medium text-oc-text" }, "Search for:", -1)),
|
39
39
|
(a(!0), v(b, null, p(s.queries, (e) => (a(), m(n(i), {
|
40
40
|
key: e,
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { ref as w, onMounted as h, watch as a, openBlock as d, createElementBlock as
|
2
|
-
const
|
1
|
+
import { ref as w, onMounted as h, watch as a, openBlock as d, createElementBlock as u } from "vue";
|
2
|
+
const l = ["width", "height", "viewBox"], f = {
|
3
3
|
__name: "OcIcon",
|
4
4
|
props: {
|
5
5
|
path: {
|
@@ -11,11 +11,11 @@ const u = ["width", "height", "viewBox"], g = {
|
|
11
11
|
required: !0
|
12
12
|
},
|
13
13
|
width: {
|
14
|
-
type: String,
|
14
|
+
type: [String, Number],
|
15
15
|
default: "24"
|
16
16
|
},
|
17
17
|
height: {
|
18
|
-
type: String,
|
18
|
+
type: [String, Number],
|
19
19
|
default: "24"
|
20
20
|
}
|
21
21
|
},
|
@@ -48,16 +48,16 @@ const u = ["width", "height", "viewBox"], g = {
|
|
48
48
|
() => {
|
49
49
|
r();
|
50
50
|
}
|
51
|
-
), (n, e) => (d(),
|
51
|
+
), (n, e) => (d(), u("svg", {
|
52
52
|
ref_key: "iconRef",
|
53
53
|
ref: o,
|
54
54
|
width: `${t.width}px`,
|
55
55
|
height: `${t.height}px`,
|
56
56
|
viewBox: `0 0 ${t.width} ${t.height}`,
|
57
57
|
xmlns: "http://www.w3.org/2000/svg"
|
58
|
-
}, null, 8,
|
58
|
+
}, null, 8, l));
|
59
59
|
}
|
60
60
|
};
|
61
61
|
export {
|
62
|
-
|
62
|
+
f as _
|
63
63
|
};
|
@@ -0,0 +1,52 @@
|
|
1
|
+
import { ref as o, openBlock as v, createBlock as d, unref as r, withCtx as x, createVNode as O } from "vue";
|
2
|
+
import { aA as b } from "./index-D8xMbiHG.js";
|
3
|
+
import k from "./OcCropper-CvxnbkVg.js";
|
4
|
+
const h = {
|
5
|
+
__name: "OcModalCropper",
|
6
|
+
props: {
|
7
|
+
inputOptions: Array,
|
8
|
+
inputOptionValues: Object,
|
9
|
+
img: String,
|
10
|
+
maxSize: [String, Number]
|
11
|
+
},
|
12
|
+
emits: ["changeImage", "close", "update:input-options"],
|
13
|
+
setup(e, { emit: l }) {
|
14
|
+
const c = e, t = l, p = o();
|
15
|
+
o();
|
16
|
+
const s = {
|
17
|
+
onClick: () => t("close")
|
18
|
+
}, n = o(), i = o(c.link), m = o({
|
19
|
+
label: "Save",
|
20
|
+
onClick: () => {
|
21
|
+
i.value && t("update:input-options", i.value), n.value ? t("changeImage", {
|
22
|
+
url: n.value,
|
23
|
+
cropper: p.value
|
24
|
+
}) : t("close");
|
25
|
+
}
|
26
|
+
}), g = (a) => {
|
27
|
+
n.value = a.url, p.value = a.cropper;
|
28
|
+
};
|
29
|
+
return (a, u) => (v(), d(r(b), {
|
30
|
+
id: "modal-cropper-overlay-wrapper",
|
31
|
+
title: "Edit Image",
|
32
|
+
"is-close-icon": "",
|
33
|
+
"cancel-button-props": s,
|
34
|
+
"confirm-button-props": m.value
|
35
|
+
}, {
|
36
|
+
default: x(() => [
|
37
|
+
O(r(k), {
|
38
|
+
"input-options": e.inputOptions,
|
39
|
+
"input-option-values": e.inputOptionValues,
|
40
|
+
img: e.img,
|
41
|
+
"max-size": e.maxSize,
|
42
|
+
onChangeImage: g,
|
43
|
+
"onUpdate:inputOptions": u[0] || (u[0] = (f) => i.value = f)
|
44
|
+
}, null, 8, ["input-options", "input-option-values", "img", "max-size"])
|
45
|
+
]),
|
46
|
+
_: 1
|
47
|
+
}, 8, ["confirm-button-props"]));
|
48
|
+
}
|
49
|
+
};
|
50
|
+
export {
|
51
|
+
h as default
|
52
|
+
};
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { ref as
|
1
|
+
import { ref as n, onMounted as m, watch as y, openBlock as i, createElementBlock as b, createElementVNode as c, renderSlot as d, createBlock as v, Teleport as k, normalizeClass as O, normalizeStyle as h } from "vue";
|
2
2
|
import { createPopper as B } from "@popperjs/core";
|
3
|
-
const S = { class: "flex w-[inherit]" },
|
3
|
+
const S = { class: "flex w-[inherit]" }, P = {
|
4
4
|
__name: "OcPopper",
|
5
5
|
props: {
|
6
6
|
placement: {
|
@@ -37,16 +37,13 @@ const S = { class: "flex w-[inherit]" }, w = {
|
|
37
37
|
default: !1
|
38
38
|
}
|
39
39
|
},
|
40
|
-
setup(
|
41
|
-
const a =
|
40
|
+
setup(r, { expose: u }) {
|
41
|
+
const a = n(), s = n(), o = n(), e = r, l = () => ({
|
42
42
|
placement: e.placement,
|
43
43
|
modifiers: [
|
44
44
|
{
|
45
45
|
name: "flip",
|
46
|
-
enabled: e.isFlipEnabled
|
47
|
-
options: {
|
48
|
-
allowedAutoPlacements: ["top", "bottom"]
|
49
|
-
}
|
46
|
+
enabled: e.isFlipEnabled
|
50
47
|
},
|
51
48
|
{
|
52
49
|
name: "offset",
|
@@ -56,45 +53,46 @@ const S = { class: "flex w-[inherit]" }, w = {
|
|
56
53
|
}
|
57
54
|
],
|
58
55
|
...e.popperOptions || []
|
59
|
-
}), f = (
|
60
|
-
var
|
61
|
-
return
|
56
|
+
}), f = (t) => {
|
57
|
+
var p;
|
58
|
+
return t && ((p = s.value) == null ? void 0 : p.contains(t));
|
62
59
|
};
|
63
60
|
return m(() => {
|
64
|
-
|
61
|
+
o.value = B(a.value, s.value, l()), setTimeout(() => o.value.update(), 150);
|
65
62
|
}), y(
|
66
63
|
() => [e.popperOptions, e.placement, e.distance, e.skidding],
|
67
64
|
() => {
|
68
|
-
t
|
65
|
+
var t, p;
|
66
|
+
(t = o.value) == null || t.setOptions(l()), (p = o.value) == null || p.update();
|
69
67
|
},
|
70
68
|
{ deep: !0 }
|
71
69
|
), u({
|
72
|
-
popperInstance:
|
70
|
+
popperInstance: o,
|
73
71
|
checkElementIsInsidePopper: f
|
74
|
-
}), (
|
72
|
+
}), (t, p) => (i(), b("div", S, [
|
75
73
|
c("div", {
|
76
74
|
ref_key: "reference",
|
77
75
|
ref: a,
|
78
76
|
class: "w-[inherit] flex"
|
79
77
|
}, [
|
80
|
-
d(
|
78
|
+
d(t.$slots, "default")
|
81
79
|
], 512),
|
82
80
|
(i(), v(k, {
|
83
81
|
to: "body",
|
84
|
-
disabled: !
|
82
|
+
disabled: !r.isAttachToBody
|
85
83
|
}, [
|
86
84
|
c("div", {
|
87
85
|
ref_key: "popper",
|
88
86
|
ref: s,
|
89
|
-
class: O([
|
90
|
-
style: h(
|
87
|
+
class: O([r.popperClass, "z-[1007]"]),
|
88
|
+
style: h(r.popperStyle)
|
91
89
|
}, [
|
92
|
-
d(
|
90
|
+
d(t.$slots, "popper")
|
93
91
|
], 6)
|
94
92
|
], 8, ["disabled"]))
|
95
93
|
]));
|
96
94
|
}
|
97
95
|
};
|
98
96
|
export {
|
99
|
-
|
97
|
+
P as _
|
100
98
|
};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as n, watch as g, openBlock as m, createBlock as s, unref as o, withCtx as p, createCommentVNode as v, createVNode as y } from "vue";
|
2
|
-
import { ay as S, aI as h,
|
2
|
+
import { ay as S, aI as h, d as D } from "./index-D8xMbiHG.js";
|
3
3
|
import c from "dayjs";
|
4
4
|
const w = {
|
5
5
|
__name: "OcTimePicker",
|
@@ -0,0 +1,58 @@
|
|
1
|
+
import { computed as s, openBlock as i, createElementBlock as r, createElementVNode as l, normalizeClass as o, toDisplayString as b, createCommentVNode as f } from "vue";
|
2
|
+
import { _ as m } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
3
|
+
const g = { class: "inline-flex items-center gap-3 h-fit" }, h = ["value", "checked"], p = `absolute top-0 left-0 border border-transparent hover:bg-oc-primary-300 hover:border-oc-primary-500 bg-oc-primary-100 rounded-full cursor-pointer transition-all duration-300
|
4
|
+
before:transition-all before:duration-300 before:absolute before:rounded-full before:bg-oc-bg-light`, x = {
|
5
|
+
__name: "OcToggle",
|
6
|
+
props: {
|
7
|
+
modelValue: Boolean,
|
8
|
+
disabled: Boolean,
|
9
|
+
size: {
|
10
|
+
type: String,
|
11
|
+
default: "default"
|
12
|
+
},
|
13
|
+
label: String
|
14
|
+
},
|
15
|
+
emits: {
|
16
|
+
"update:modelValue": []
|
17
|
+
},
|
18
|
+
setup(e, { emit: c }) {
|
19
|
+
const t = e, d = c, a = () => {
|
20
|
+
t.disabled || d("update:modelValue", !t.modelValue);
|
21
|
+
}, n = s(() => ({
|
22
|
+
default: "w-[42px] h-7",
|
23
|
+
small: "w-[26px] h-[15px]"
|
24
|
+
})), u = s(() => ({
|
25
|
+
default: "before:w-6 before:h-6 before:top-px before:left-px",
|
26
|
+
small: " before:w-4 before:h-4 before:top-[0.5px] before:left-[0.5px]"
|
27
|
+
}));
|
28
|
+
return (v, V) => (i(), r("div", g, [
|
29
|
+
l("label", {
|
30
|
+
class: o(["toggle-switch relative inline-block", [n.value[e.size], e.size, e.disabled ? "pointer-events-none" : ""]])
|
31
|
+
}, [
|
32
|
+
l("input", {
|
33
|
+
class: o(["toggle-input hidden", {
|
34
|
+
"is-checked": e.modelValue
|
35
|
+
}]),
|
36
|
+
value: e.modelValue,
|
37
|
+
checked: e.modelValue,
|
38
|
+
type: "checkbox",
|
39
|
+
onChange: a
|
40
|
+
}, null, 42, h),
|
41
|
+
l("span", {
|
42
|
+
class: o(["toggle-label", [p, n.value[e.size], u.value[e.size], {
|
43
|
+
"toggle-on-focus": !e.disabled && !e.modelValue,
|
44
|
+
"!bg-oc-accent-1-100 before:bg-oc-accent-1-50": e.disabled
|
45
|
+
}]])
|
46
|
+
}, null, 2)
|
47
|
+
], 2),
|
48
|
+
e.label ? (i(), r("div", {
|
49
|
+
key: 0,
|
50
|
+
class: "text-sm cursor-pointer",
|
51
|
+
onClick: a
|
52
|
+
}, b(e.label), 1)) : f("", !0)
|
53
|
+
]));
|
54
|
+
}
|
55
|
+
}, z = /* @__PURE__ */ m(x, [["__scopeId", "data-v-23da89d0"]]);
|
56
|
+
export {
|
57
|
+
z as T
|
58
|
+
};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { computed as l, openBlock as a, createElementBlock as o, normalizeClass as d, createElementVNode as e, toDisplayString as r, createBlock as x, unref as u, createCommentVNode as m, createTextVNode as v, Fragment as T, renderList as k, createVNode as P } from "vue";
|
2
|
-
import { at as _, B as w } from "./index-
|
2
|
+
import { at as _, B as w } from "./index-D8xMbiHG.js";
|
3
3
|
import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
4
|
-
import { _ as F } from "./OcIcon-
|
4
|
+
import { _ as F } from "./OcIcon-CSpRxnwd.js";
|
5
5
|
const B = { class: "z-10 flex flex-col gap-4 p-9 relative" }, E = { class: "flex items-center gap-4" }, A = { class: "font-medium text-xl" }, N = { class: "flex gap-3 items-center mb-5" }, S = { class: "flex items-start gap-2" }, V = { class: "text-[24px] font-medium tracking-tighter" }, q = { class: "text-[40px] leading-none font-medium" }, z = { key: 0 }, $ = {
|
6
6
|
__name: "SubPlanCard",
|
7
7
|
props: {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { openBlock as a, createElementBlock as d, createElementVNode as t, createVNode as o, unref as i, toDisplayString as r } from "vue";
|
2
|
-
import { B as n } from "./index-
|
2
|
+
import { B as n } from "./index-D8xMbiHG.js";
|
3
3
|
const m = { class: "flex flex-col" }, u = { class: "w-full relative group" }, f = { class: "w-full h-full bg-black/25 absolute top-0 left-0 hidden group-hover:flex rounded-lg" }, v = { class: "w-full px-6 gap-3 m-auto flex" }, b = ["src", "alt"], g = { class: "mt-4 text-md text-center" }, x = {
|
4
4
|
__name: "ThumbnailSection",
|
5
5
|
props: {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { openBlock as i, createElementBlock as s, normalizeClass as f, createElementVNode as l, Fragment as g, createVNode as n, unref as a, createTextVNode as r, toDisplayString as h, createBlock as u, withCtx as c, createCommentVNode as b } from "vue";
|
2
|
-
import { B as d, at as v } from "./index-
|
3
|
-
import { _ as k } from "./OcIcon-
|
2
|
+
import { B as d, at as v } from "./index-D8xMbiHG.js";
|
3
|
+
import { _ as k } from "./OcIcon-CSpRxnwd.js";
|
4
4
|
const x = { class: "w-full relative group" }, y = {
|
5
5
|
key: 0,
|
6
6
|
class: "m-auto"
|