@orchidui/core 0.5.0 → 0.6.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 +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 +3 -3
- package/dist/DataDisplay/OnboardingListItem/OcOnboardingListItem.js +1 -1
- package/dist/DataDisplay/Overview/OcOverview.js +4 -5
- package/dist/DataDisplay/Pagination/OcPagination.js +1 -1
- package/dist/DataDisplay/Table/OcTable.js +4 -4
- 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 +3 -3
- package/dist/Disclosure/Tabs/Tabs.js +1 -1
- package/dist/Disclosure/Variants/OcVariants.js +1 -1
- package/dist/Elements/AdditionalContent/OcAdditionalContent.js +2 -2
- package/dist/Elements/AuthenticationOption/AuthenticationOption.js +2 -2
- package/dist/Elements/Box/OcBox.js +2 -2
- package/dist/Elements/EmptyPage/OcEmptyPage.js +1 -1
- package/dist/Elements/FeatureOverviewCard/OcFeatureOverviewCard.js +1 -1
- package/dist/Elements/Header/OcHeader.js +3 -3
- package/dist/Elements/PageTitle/OcPageTitle.js +3 -4
- package/dist/Elements/SandboxBanner/OcSandboxBanner.js +1 -1
- package/dist/Elements/Sidebar/OcSidebar.js +1 -1
- package/dist/Elements/Skeleton/OcSkeleton.js +1 -1
- package/dist/Elements/SubSidebar/OcSubSidebar.js +1 -1
- package/dist/Elements/VerificationOption/OcVerificationOption.js +2 -2
- package/dist/Feedback/Banner/OcBanner.js +1 -1
- package/dist/Feedback/Chip/OcChip.js +2 -2
- package/dist/Feedback/ShareIcon/OcShareIcon.js +2 -2
- 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 +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 +2 -2
- package/dist/Form/Input/OcInput.js +3 -4
- 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 +2 -2
- package/dist/Form/Select/OcSelect.js +4 -5
- 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 +24 -47
- package/dist/FormBuilder/OcFormBuilder.js +1 -1
- package/dist/{OcComplexCalendar-DXl0ecZ-.js → OcComplexCalendar-Boa7mNFU.js} +18 -25
- package/dist/OcComplexDatePicker-BydI4VSR.js +93 -0
- package/dist/{OcCropper-31Y_S1Ne.js → OcCropper-7E2i6ayU.js} +38 -49
- package/dist/OcDataTable-CsCGrRx7.js +561 -0
- package/dist/{OcDraggable-BjhGJmpM.js → OcDraggable-CA_BCbpl.js} +7 -8
- package/dist/{Draggable.js → OcDraggableList-BUu5SgoA.js} +39 -50
- package/dist/{OcEmojiPicker-BXm-_OGK.js → OcEmojiPicker-DYYK7OB3.js} +28 -38
- package/dist/OcFilterForm-7ehuJUMp.js +83 -0
- package/dist/OcFilterSearch-B4AZsLBn.js +69 -0
- package/dist/OcFilterSearchFor-DfwJG-5N.js +67 -0
- package/dist/OcModalCropper-Z4jlnFc5.js +46 -0
- package/dist/{OcSkeleton-BdPTmGh0.js → OcSkeleton-CvdpGSQR.js} +2 -3
- package/dist/{OcSlider-Bsi-ckbP.js → OcSlider-DW9x8eas.js} +10 -11
- package/dist/{OcTimePicker-B61MCi0D.js → OcTimePicker-D9fPU8_m.js} +22 -33
- package/dist/{OcTimePopup-zQFKCZLk.js → OcTimePopup-CXGhaOev.js} +2 -3
- package/dist/{OcToggle-C0wTjM_Y.js → OcToggle-bIJaLDMZ.js} +5 -6
- package/dist/Overlay/ConfirmationModal/OcConfirmationModal.js +1 -1
- package/dist/Overlay/CopyTooltip/OcCopyTooltip.js +1 -1
- package/dist/Overlay/Dropdown/OcDropdown.js +3 -4
- package/dist/Overlay/Modal/OcModal.js +3 -4
- package/dist/Overlay/SupportMenu/OcSupportMenu.js +1 -1
- package/dist/Overlay/Tooltip/OcTooltip.js +2 -2
- package/dist/Overlay/Whitelist/OcWhiteList.js +2 -2
- package/dist/SubPlanCard-DHj4RHJZ.js +81 -0
- package/dist/ThumbnailSection-CJBS0QXp.js +41 -0
- package/dist/ThumbnailTheme-hey6se0g.js +119 -0
- package/dist/index-DyVteXE3.js +10028 -0
- package/dist/index.js +129 -948
- package/dist/style.css +1 -1
- package/package.json +1 -16
- package/dist/Calendar.js +0 -103
- package/dist/Cropper.js +0 -6
- package/dist/DatePicker-BLK16hYl.js +0 -263
- package/dist/EmojiPicker.js +0 -4
- package/dist/Form/TimePicker/OcTimePicker.js +0 -6
- package/dist/OcAccordion-DdkNsXvN.js +0 -101
- package/dist/OcAccountSetup-BXDjf48o.js +0 -324
- package/dist/OcAdditionalContent-BMSysCXu.js +0 -612
- package/dist/OcAuthenticationOption.vue_vue_type_script_setup_true_lang-w5Y0ymGN.js +0 -43
- package/dist/OcBanner-Cg2WJV6e.js +0 -108
- package/dist/OcBox.vue_vue_type_script_setup_true_lang-aB397QRg.js +0 -43
- package/dist/OcCardInput-BFE4Xu-S.js +0 -75
- package/dist/OcCheckboxesGroup-CLbquUO2.js +0 -94
- package/dist/OcChip-B1hm2Qni.js +0 -144
- package/dist/OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js +0 -1006
- package/dist/OcConfirmationModal-BfCrRV9r.js +0 -179
- package/dist/OcCopyTooltip.vue_vue_type_script_setup_true_lang-S2RAfV_g.js +0 -65
- package/dist/OcCriteria-CpIohheZ.js +0 -42
- package/dist/OcCustomerCard-DbDOBO03.js +0 -160
- package/dist/OcDropdownItem-DAElmzEu.js +0 -57
- package/dist/OcEmptyPage-CTwgMzRp.js +0 -155
- package/dist/OcExpadingTable.vue_vue_type_script_setup_true_lang-B4HOMDBK.js +0 -815
- package/dist/OcFeatureOverviewCard-RVyrWLVW.js +0 -71
- package/dist/OcFloatContent-BIKQOxSw.js +0 -142
- package/dist/OcFormBuilder-BUpEpDsU.js +0 -177
- package/dist/OcGroupOptions-ChGJvTXl.js +0 -16
- package/dist/OcInfoCard-DpYUZOMZ.js +0 -81
- package/dist/OcInput-tcRxG3Y2.js +0 -227
- package/dist/OcInputOption-CncASfNt.js +0 -160
- package/dist/OcLinkInput-C2ixk-gk.js +0 -143
- package/dist/OcListDetail-6XeME6ko.js +0 -76
- package/dist/OcListUrl.vue_vue_type_script_setup_true_lang-7zZdFM8K.js +0 -750
- package/dist/OcModal-DdD5VFEN.js +0 -187
- package/dist/OcModalCropper-D2OI2iun.js +0 -56
- package/dist/OcModalPage-BLVa-kcB.js +0 -86
- package/dist/OcMultipleUploadFile-BAmQHshA.js +0 -447
- package/dist/OcNumberInput.vue_vue_type_script_setup_true_lang-C4EXUIUe.js +0 -90
- package/dist/OcOnboardingListItem.vue_vue_type_script_setup_true_lang-Cr80xmnz.js +0 -81
- package/dist/OcOption-DK2FBGq7.js +0 -485
- package/dist/OcOverviewIcon-D702Ujka.js +0 -55
- package/dist/OcOverviewItem-DNr5tWnt.js +0 -186
- package/dist/OcPageTitleRight-DMtJ1qmZ.js +0 -243
- package/dist/OcPaginationNumber-IKPorX26.js +0 -172
- package/dist/OcPaymentTab-Cna1IAhO.js +0 -170
- package/dist/OcPhoneInput-AC6BgQhN.js +0 -432
- package/dist/OcPrimaryActions-D5IprKsQ.js +0 -222
- package/dist/OcRadio-CRYfNwV9.js +0 -107
- package/dist/OcRadioGroup-DgfdWJos.js +0 -76
- package/dist/OcRangeInput-C-hoHFhr.js +0 -103
- package/dist/OcSandboxBanner.vue_vue_type_script_setup_true_lang-BD0k_8xa.js +0 -37
- package/dist/OcSectionItem-BFgxO3se.js +0 -84
- package/dist/OcSelectOptions-BQlG_EUA.js +0 -148
- package/dist/OcShareIcon-BB-NPq0r.js +0 -53
- package/dist/OcSingleFileUpload-B8-e1H5t.js +0 -464
- package/dist/OcSnackbar-CKxY1-ej.js +0 -196
- package/dist/OcSteps.vue_vue_type_script_setup_true_lang-CXGy8ma_.js +0 -87
- package/dist/OcSubSidebar.vue_vue_type_script_setup_true_lang-CNxgU07N.js +0 -60
- package/dist/OcSupportMenu.vue_vue_type_script_setup_true_lang-DrjZsWti.js +0 -114
- package/dist/OcTabToSelect-BHAz1Niv.js +0 -183
- package/dist/OcTextArea-BpV1Bnj_.js +0 -78
- package/dist/OcTransferSummary-Bk2GXhrT.js +0 -67
- package/dist/OcVariant.vue_vue_type_script_setup_true_lang-CY_82DLc.js +0 -99
- package/dist/OcVerificationOption.vue_vue_type_script_setup_true_lang-ChqvNoDe.js +0 -59
- package/dist/OcWhiteList.vue_vue_type_script_setup_true_lang-DI9pYU3w.js +0 -64
- package/dist/OnboardingAccordion.vue_vue_type_script_setup_true_lang-B0Z7ETmj.js +0 -113
- package/dist/StoreDesign.js +0 -240
package/dist/OcModal-DdD5VFEN.js
DELETED
@@ -1,187 +0,0 @@
|
|
1
|
-
import { computed as C, ref as V, watch as S, onUnmounted as $, openBlock as o, createElementBlock as s, createElementVNode as a, normalizeClass as c, renderSlot as u, toDisplayString as v, createCommentVNode as i, createVNode as f, unref as p, mergeProps as b } from "vue";
|
2
|
-
import "dayjs";
|
3
|
-
import { B as g } from "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
|
4
|
-
import { _ as z } from "./OcIcon-CJgBICxh.js";
|
5
|
-
/* empty css */
|
6
|
-
import "libphonenumber-js";
|
7
|
-
/* empty css */
|
8
|
-
import "v-calendar";
|
9
|
-
/* empty css */
|
10
|
-
import "./Cropper.js";
|
11
|
-
import "vue-draggable-next";
|
12
|
-
import "@popperjs/core";
|
13
|
-
const O = {
|
14
|
-
key: 0,
|
15
|
-
id: "modal-overlay-wrapper",
|
16
|
-
class: "fixed w-screen z-[1007] top-0 left-0 h-full min-h-screen bg-black/[.45] flex items-center justify-center"
|
17
|
-
}, j = { class: "flex flex-col gap-y-1 overflow-hidden" }, P = { class: "text-lg font-medium text-ellipsis overflow-hidden whitespace-nowrap" }, E = {
|
18
|
-
key: 0,
|
19
|
-
class: "text-sm text-oc-text-300 text-ellipsis overflow-hidden whitespace-nowrap"
|
20
|
-
}, I = ["id"], J = {
|
21
|
-
__name: "OcModal",
|
22
|
-
props: {
|
23
|
-
isBorderless: Boolean,
|
24
|
-
footerClass: {
|
25
|
-
type: String,
|
26
|
-
default: "justify-end"
|
27
|
-
},
|
28
|
-
modelValue: {
|
29
|
-
type: Boolean,
|
30
|
-
default: !1
|
31
|
-
},
|
32
|
-
title: {
|
33
|
-
type: String,
|
34
|
-
default: ""
|
35
|
-
},
|
36
|
-
description: {
|
37
|
-
type: String,
|
38
|
-
default: ""
|
39
|
-
},
|
40
|
-
persistent: {
|
41
|
-
type: Boolean,
|
42
|
-
default: !1
|
43
|
-
},
|
44
|
-
isCloseIcon: {
|
45
|
-
type: Boolean,
|
46
|
-
default: !0
|
47
|
-
},
|
48
|
-
cancelButtonProps: {
|
49
|
-
type: Object,
|
50
|
-
default: () => ({
|
51
|
-
label: "Cancel",
|
52
|
-
variant: "secondary"
|
53
|
-
})
|
54
|
-
},
|
55
|
-
preventClose: {
|
56
|
-
type: Boolean,
|
57
|
-
default: !1
|
58
|
-
},
|
59
|
-
isHeaderVisible: {
|
60
|
-
type: Boolean,
|
61
|
-
default: !0
|
62
|
-
},
|
63
|
-
isFooterVisible: {
|
64
|
-
type: Boolean,
|
65
|
-
default: !0
|
66
|
-
},
|
67
|
-
modalId: {
|
68
|
-
type: String,
|
69
|
-
default: ""
|
70
|
-
},
|
71
|
-
confirmButtonProps: {
|
72
|
-
type: Object,
|
73
|
-
default: () => ({
|
74
|
-
label: "OK",
|
75
|
-
class: "min-w-[112px]"
|
76
|
-
})
|
77
|
-
},
|
78
|
-
size: {
|
79
|
-
type: String,
|
80
|
-
default: "default",
|
81
|
-
validator: (e) => ["default", "medium", "small"].includes(e)
|
82
|
-
}
|
83
|
-
},
|
84
|
-
emits: [
|
85
|
-
"update:modelValue",
|
86
|
-
"confirm",
|
87
|
-
"cancel",
|
88
|
-
"click:outside",
|
89
|
-
"content-scroll"
|
90
|
-
],
|
91
|
-
setup(e, { emit: w }) {
|
92
|
-
const r = e, n = w, y = () => {
|
93
|
-
r.preventClose || n("update:modelValue", !1);
|
94
|
-
}, h = async () => {
|
95
|
-
n("click:outside"), !r.persistent && r.modelValue && y();
|
96
|
-
}, B = () => {
|
97
|
-
n("cancel"), y();
|
98
|
-
}, k = C(() => ({
|
99
|
-
default: "max-w-[640px]",
|
100
|
-
medium: "max-w-[480px]",
|
101
|
-
small: "max-w-[320px]"
|
102
|
-
})), d = V(), x = (t) => {
|
103
|
-
var l;
|
104
|
-
(l = d.value) == null || l.click();
|
105
|
-
};
|
106
|
-
return S(
|
107
|
-
() => r.modelValue,
|
108
|
-
() => {
|
109
|
-
setTimeout(() => {
|
110
|
-
var t;
|
111
|
-
(t = d.value) == null || t.addEventListener("scroll", x);
|
112
|
-
}, 100);
|
113
|
-
}
|
114
|
-
), $(() => {
|
115
|
-
var t;
|
116
|
-
(t = d.value) == null || t.removeEventListener("scroll", x);
|
117
|
-
}), (t, l) => e.modelValue ? (o(), s("div", O, [
|
118
|
-
a("div", {
|
119
|
-
class: "w-full h-full absolute top-0 left-0 z-[1007]",
|
120
|
-
onClick: h
|
121
|
-
}),
|
122
|
-
a("div", {
|
123
|
-
class: c(["z-[1008] shadow-normal w-[calc(100%-40px)] max-h-[96vh] bg-oc-bg-light rounded-xl flex flex-col", k.value[e.size]])
|
124
|
-
}, [
|
125
|
-
e.isHeaderVisible ? (o(), s("div", {
|
126
|
-
key: 0,
|
127
|
-
class: c(["flex bg-inherit border-oc-gray-200 gap-x-9 justify-between p-5 items-start rounded-t-xl", e.isBorderless ? "" : "border-b"])
|
128
|
-
}, [
|
129
|
-
u(t.$slots, "header", {}, () => [
|
130
|
-
a("div", j, [
|
131
|
-
a("span", P, v(e.title), 1),
|
132
|
-
u(t.$slots, "description", {}, () => [
|
133
|
-
e.description ? (o(), s("span", E, v(e.description), 1)) : i("", !0)
|
134
|
-
])
|
135
|
-
]),
|
136
|
-
e.isCloseIcon ? (o(), s("div", {
|
137
|
-
key: 0,
|
138
|
-
class: "p-[6px] rounded cursor-pointer text-oc-gray-500 hover:bg-gray-100 hover:text-oc-text",
|
139
|
-
onClick: l[0] || (l[0] = (m) => t.$emit("update:modelValue", !1))
|
140
|
-
}, [
|
141
|
-
f(p(z), {
|
142
|
-
name: "x",
|
143
|
-
width: "20",
|
144
|
-
height: "20"
|
145
|
-
})
|
146
|
-
])) : i("", !0)
|
147
|
-
])
|
148
|
-
], 2)) : i("", !0),
|
149
|
-
a("div", {
|
150
|
-
id: e.modalId,
|
151
|
-
ref_key: "scrollArea",
|
152
|
-
ref: d,
|
153
|
-
class: c(["overflow-y-auto", [e.size === "small" ? "p-5" : "p-7", e.isBorderless ? "py-0" : ""]]),
|
154
|
-
onScroll: l[1] || (l[1] = (m) => n("content-scroll", m))
|
155
|
-
}, [
|
156
|
-
u(t.$slots, "default")
|
157
|
-
], 42, I),
|
158
|
-
e.isFooterVisible ? (o(), s("div", {
|
159
|
-
key: 1,
|
160
|
-
class: c(["px-5 py-6 border-oc-gray-200 flex gap-x-4", [
|
161
|
-
e.footerClass,
|
162
|
-
{
|
163
|
-
"border-t": !e.isBorderless
|
164
|
-
}
|
165
|
-
]])
|
166
|
-
}, [
|
167
|
-
u(t.$slots, "footer", {}, () => [
|
168
|
-
f(p(g), b({
|
169
|
-
label: "Cancel",
|
170
|
-
variant: "secondary",
|
171
|
-
class: "min-w-[112px]"
|
172
|
-
}, e.cancelButtonProps, { onClick: B }), null, 16),
|
173
|
-
f(p(g), b({
|
174
|
-
label: "OK",
|
175
|
-
class: "min-w-[112px]"
|
176
|
-
}, e.confirmButtonProps, {
|
177
|
-
onClick: l[2] || (l[2] = (m) => t.$emit("confirm"))
|
178
|
-
}), null, 16)
|
179
|
-
])
|
180
|
-
], 2)) : i("", !0)
|
181
|
-
], 2)
|
182
|
-
])) : i("", !0);
|
183
|
-
}
|
184
|
-
};
|
185
|
-
export {
|
186
|
-
J as _
|
187
|
-
};
|
@@ -1,56 +0,0 @@
|
|
1
|
-
import { ref as o, openBlock as c, createBlock as f, unref as m, withCtx as g, createVNode as v } from "vue";
|
2
|
-
import "dayjs";
|
3
|
-
import "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
|
4
|
-
/* empty css */
|
5
|
-
import "libphonenumber-js";
|
6
|
-
/* empty css */
|
7
|
-
import "v-calendar";
|
8
|
-
/* empty css */
|
9
|
-
import "./Cropper.js";
|
10
|
-
import "vue-draggable-next";
|
11
|
-
import { _ as d } from "./OcModal-DdD5VFEN.js";
|
12
|
-
import "@popperjs/core";
|
13
|
-
import x from "./OcCropper-31Y_S1Ne.js";
|
14
|
-
const w = {
|
15
|
-
__name: "OcModalCropper",
|
16
|
-
props: {
|
17
|
-
inputOptions: Array,
|
18
|
-
inputOptionValues: Object,
|
19
|
-
img: String,
|
20
|
-
maxSize: [String, Number]
|
21
|
-
},
|
22
|
-
emits: ["changeImage", "close", "update:input-options"],
|
23
|
-
setup(t, { emit: r }) {
|
24
|
-
const u = t, i = r;
|
25
|
-
o(), o();
|
26
|
-
const s = {
|
27
|
-
onClick: () => i("close")
|
28
|
-
}, e = o(), p = o(u.link), l = o({
|
29
|
-
label: "Save",
|
30
|
-
onClick: () => {
|
31
|
-
p.value && i("update:input-options", p.value), e.value ? i("changeImage", e.value) : i("close");
|
32
|
-
}
|
33
|
-
});
|
34
|
-
return (O, n) => (c(), f(m(d), {
|
35
|
-
title: "Edit Image",
|
36
|
-
"is-close-icon": "",
|
37
|
-
"cancel-button-props": s,
|
38
|
-
"confirm-button-props": l.value
|
39
|
-
}, {
|
40
|
-
default: g(() => [
|
41
|
-
v(m(x), {
|
42
|
-
"input-options": t.inputOptions,
|
43
|
-
"input-option-values": t.inputOptionValues,
|
44
|
-
img: t.img,
|
45
|
-
"max-size": t.maxSize,
|
46
|
-
onChangeImage: n[0] || (n[0] = (a) => e.value = a),
|
47
|
-
"onUpdate:inputOptions": n[1] || (n[1] = (a) => p.value = a)
|
48
|
-
}, null, 8, ["input-options", "input-option-values", "img", "max-size"])
|
49
|
-
]),
|
50
|
-
_: 1
|
51
|
-
}, 8, ["confirm-button-props"]));
|
52
|
-
}
|
53
|
-
};
|
54
|
-
export {
|
55
|
-
w as default
|
56
|
-
};
|
@@ -1,86 +0,0 @@
|
|
1
|
-
import { openBlock as r, createElementBlock as s, createElementVNode as t, renderSlot as n, normalizeClass as u, createVNode as i, unref as d, createCommentVNode as c } from "vue";
|
2
|
-
import "dayjs";
|
3
|
-
import { B as f } from "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
|
4
|
-
import { _ as x } from "./OcIcon-CJgBICxh.js";
|
5
|
-
/* empty css */
|
6
|
-
import "libphonenumber-js";
|
7
|
-
/* empty css */
|
8
|
-
import "v-calendar";
|
9
|
-
/* empty css */
|
10
|
-
import "./Cropper.js";
|
11
|
-
import "vue-draggable-next";
|
12
|
-
import "@popperjs/core";
|
13
|
-
const g = {
|
14
|
-
key: 0,
|
15
|
-
class: "fixed w-screen z-[1007] bg-white top-0 left-0 h-full min-h-screen bg-black/[.45] flex items-center justify-center"
|
16
|
-
}, v = { class: "w-[calc(100%-40px)] h-[calc(100%-40px)]" }, y = { class: "modal-body p-9" }, S = {
|
17
|
-
__name: "OcModalPage",
|
18
|
-
props: {
|
19
|
-
modelValue: {
|
20
|
-
type: Boolean,
|
21
|
-
default: !1
|
22
|
-
},
|
23
|
-
persistent: {
|
24
|
-
type: Boolean,
|
25
|
-
default: !1
|
26
|
-
},
|
27
|
-
isCloseIconVisible: {
|
28
|
-
type: Boolean,
|
29
|
-
default: !0
|
30
|
-
},
|
31
|
-
isBackButtonVisible: {
|
32
|
-
type: Boolean,
|
33
|
-
default: !1
|
34
|
-
},
|
35
|
-
preventClose: {
|
36
|
-
type: Boolean,
|
37
|
-
default: !1
|
38
|
-
},
|
39
|
-
contentClass: {
|
40
|
-
type: String,
|
41
|
-
default: ""
|
42
|
-
}
|
43
|
-
},
|
44
|
-
emits: ["update:modelValue", "back", "click:outside"],
|
45
|
-
setup(o, { emit: p }) {
|
46
|
-
const l = p;
|
47
|
-
return (a, e) => o.modelValue ? (r(), s("div", g, [
|
48
|
-
t("div", v, [
|
49
|
-
n(a.$slots, "top"),
|
50
|
-
t("div", {
|
51
|
-
class: u(["relative z-[1008] shadow-normal max-w-[1440px] bg-[linear-gradient(180deg,_rgba(229,_238,_255,_0.5)_0%,_rgba(229,_238,_255,_0)_77.75%)] rounded-xl flex flex-col overflow-y-auto mx-auto", o.contentClass])
|
52
|
-
}, [
|
53
|
-
o.isBackButtonVisible ? (r(), s("div", {
|
54
|
-
key: 0,
|
55
|
-
class: "py-3 px-4 rounded cursor-pointer text-oc-gray-400 hover:bg-gray-100 hover:text-oc-text absolute top-5 left-5",
|
56
|
-
onClick: e[0] || (e[0] = (m) => l("back"))
|
57
|
-
}, [
|
58
|
-
i(d(f), {
|
59
|
-
variant: "secondary",
|
60
|
-
"is-transparent": "",
|
61
|
-
label: "Back",
|
62
|
-
"left-icon": "chevron-left"
|
63
|
-
})
|
64
|
-
])) : c("", !0),
|
65
|
-
t("div", {
|
66
|
-
class: "flex gap-3 py-3 px-4 rounded cursor-pointer text-oc-gray-400 hover:bg-gray-100 hover:text-oc-text absolute top-5 right-5",
|
67
|
-
onClick: e[1] || (e[1] = (m) => l("update:model-value", !1))
|
68
|
-
}, [
|
69
|
-
i(d(x), {
|
70
|
-
name: "x",
|
71
|
-
width: "18",
|
72
|
-
height: "18"
|
73
|
-
}),
|
74
|
-
e[2] || (e[2] = t("span", null, "Close", -1))
|
75
|
-
]),
|
76
|
-
t("div", y, [
|
77
|
-
n(a.$slots, "default")
|
78
|
-
])
|
79
|
-
], 2)
|
80
|
-
])
|
81
|
-
])) : c("", !0);
|
82
|
-
}
|
83
|
-
};
|
84
|
-
export {
|
85
|
-
S as _
|
86
|
-
};
|