@orchidui/core 0.0.1 → 0.3.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/LICENSE +21 -0
- package/README.md +1 -0
- package/dist/Calendar.js +103 -0
- package/dist/Cropper.js +6 -0
- package/dist/DataDisplay/CustomerCard/OcCustomerCard.js +4 -0
- package/dist/DataDisplay/FloatContent/OcFloatContent.js +4 -0
- package/dist/DataDisplay/HorizontalProgressbar/OcHorizontalProgressbar.js +4 -0
- package/dist/DataDisplay/InfoCard/OcInfoCard.js +4 -0
- package/dist/DataDisplay/ListDetail/OcListDetail.js +4 -0
- package/dist/DataDisplay/ListItem/OcListItem.js +5 -0
- package/dist/DataDisplay/OnboardingListItem/OcOnboardingListItem.js +4 -0
- package/dist/DataDisplay/Overview/OcOverview.js +7 -0
- package/dist/DataDisplay/Pagination/OcPagination.js +6 -0
- package/dist/DataDisplay/ProgressBar/OcProgressBar.js +4 -0
- package/dist/DataDisplay/Table/OcTable.js +11 -0
- package/dist/DataDisplay/TransferSummary/OcTransferSummary.js +4 -0
- package/dist/DatePicker-D3w435Ml.js +263 -0
- package/dist/Disclosure/Accordion/OcAccordion.js +4 -0
- package/dist/Disclosure/OnboardingAccordion/OnboardingAccordion.js +4 -0
- package/dist/Disclosure/Steps/OcSteps.js +5 -0
- package/dist/Disclosure/SwitchTabs/OcSwitchTabs.js +4 -0
- package/dist/Disclosure/Tabs/Tabs.js +5 -0
- package/dist/Disclosure/Variants/OcVariants.js +5 -0
- package/dist/Draggable.js +168 -0
- package/dist/Elements/AdditionalContent/OcAdditionalContent.js +5 -0
- package/dist/Elements/AuthenticationOption/AuthenticationOption.js +4 -0
- package/dist/Elements/Box/OcBox.js +4 -0
- package/dist/Elements/EmptyPage/OcEmptyPage.js +4 -0
- package/dist/Elements/FeatureOverviewCard/OcFeatureOverviewCard.js +4 -0
- package/dist/Elements/Header/OcHeader.js +9 -0
- package/dist/Elements/PageTitle/OcPageTitle.js +7 -0
- package/dist/Elements/SandboxBanner/OcSandboxBanner.js +4 -0
- package/dist/Elements/Sidebar/OcSidebar.js +6 -0
- package/dist/Elements/Skeleton/OcSkeleton.js +4 -0
- package/dist/Elements/SubSidebar/OcSubSidebar.js +4 -0
- package/dist/Elements/VerificationOption/OcVerificationOption.js +4 -0
- package/dist/EmojiPicker.js +4 -0
- package/dist/Feedback/Banner/OcBanner.js +4 -0
- package/dist/Feedback/Chip/OcChip.js +4 -0
- package/dist/Feedback/ShareIcon/OcShareIcon.js +4 -0
- package/dist/Feedback/Snackbar/OcSnackbar.js +4 -0
- package/dist/Feedback/Tag/OcTag.js +4 -0
- package/dist/Form/BaseInput/OcBaseInput.js +4 -0
- package/dist/Form/Button/OcButton.js +4 -0
- package/dist/Form/Calendar/OcCalendar.js +5 -0
- package/dist/Form/CardInput/OcCardInput.js +4 -0
- package/dist/Form/Checkbox/OcCheckbox.js +4 -0
- package/dist/Form/CheckboxesGroup/OcCheckboxesGroup.js +4 -0
- package/dist/Form/Criteria/OcCriteria.js +4 -0
- package/dist/Form/Cropper/OcCropper.js +4 -0
- package/dist/Form/DatePicker/OcDatePicker.js +4 -0
- package/dist/Form/EmojiPicker/OcEmojiPicker.js +4 -0
- package/dist/Form/EmojiPicker/conts/emoji.js +1030 -0
- package/dist/Form/Input/OcInput.js +6 -0
- package/dist/Form/LinkInput/OcLinkInput.js +4 -0
- package/dist/Form/MultipleUploadFile/OcMultipleUploadFile.js +4 -0
- package/dist/Form/NumberInput/OcNumberInput.js +4 -0
- package/dist/Form/PhoneInput/OcPhoneInput.js +4 -0
- package/dist/Form/Radio/OcRadio.js +4 -0
- package/dist/Form/RadioGroup/OcRadioGroup.js +4 -0
- package/dist/Form/RangeInput/OcRangeInput.js +4 -0
- package/dist/Form/SectionItem/OcSectionItem.js +4 -0
- package/dist/Form/Select/OcSelect.js +7 -0
- package/dist/Form/SelectOptions/OcSelectOptions.js +4 -0
- package/dist/Form/SingleFileUpload/OcSingleFileUpload.js +4 -0
- package/dist/Form/Slider/OcSlider.js +4 -0
- package/dist/Form/TextArea/OcTextArea.js +4 -0
- package/dist/Form/TimePicker/OcTimePicker.js +6 -0
- package/dist/Form/Toggle/OcToggle.js +4 -0
- package/dist/Form/index.js +54 -0
- package/dist/FormBuilder/OcFormBuilder.js +4 -0
- package/dist/MediaAndIcons/Avatar/OcAvatar.js +4 -0
- package/dist/MediaAndIcons/Icon/OcIcon.js +4 -0
- package/dist/OcAccordion-DdkNsXvN.js +101 -0
- package/dist/OcAccountSetup-BXDjf48o.js +324 -0
- package/dist/OcAdditionalContent-BMSysCXu.js +612 -0
- package/dist/OcAuthenticationOption.vue_vue_type_script_setup_true_lang-w5Y0ymGN.js +43 -0
- package/dist/OcAvatar-NDXQiZvz.js +41 -0
- package/dist/OcBanner-Cg2WJV6e.js +108 -0
- package/dist/OcBox.vue_vue_type_script_setup_true_lang-aB397QRg.js +43 -0
- package/dist/OcCardInput-BFE4Xu-S.js +75 -0
- package/dist/OcCheckboxesGroup-CLbquUO2.js +94 -0
- package/dist/OcChip-B1hm2Qni.js +144 -0
- package/dist/OcComplexCalendar-x-_kg9Yk.js +108 -0
- package/dist/OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js +1006 -0
- package/dist/OcConfirmationModal-BfCrRV9r.js +179 -0
- package/dist/OcCopyTooltip.vue_vue_type_script_setup_true_lang-S2RAfV_g.js +65 -0
- package/dist/OcCriteria-CpIohheZ.js +42 -0
- package/dist/OcCropper-31Y_S1Ne.js +240 -0
- package/dist/OcCustomerCard-DbDOBO03.js +160 -0
- package/dist/OcDraggable-BjhGJmpM.js +35 -0
- package/dist/OcDropdownItem-DAElmzEu.js +57 -0
- package/dist/OcEmojiPicker-BXm-_OGK.js +157 -0
- package/dist/OcEmptyPage-CTwgMzRp.js +155 -0
- package/dist/OcExpadingTable.vue_vue_type_script_setup_true_lang-B4HOMDBK.js +815 -0
- package/dist/OcFeatureOverviewCard-RVyrWLVW.js +71 -0
- package/dist/OcFloatContent-BIKQOxSw.js +142 -0
- package/dist/OcFormBuilder-CRXWtt8I.js +177 -0
- package/dist/OcGroupOptions-ChGJvTXl.js +16 -0
- package/dist/OcHorizontalProgressbar.vue_vue_type_script_setup_true_lang-4eVgPDi5.js +32 -0
- package/dist/OcIcon-CJgBICxh.js +63 -0
- package/dist/OcInfoCard-DpYUZOMZ.js +81 -0
- package/dist/OcInput-tcRxG3Y2.js +227 -0
- package/dist/OcInputOption-CncASfNt.js +160 -0
- package/dist/OcLinkInput-C2ixk-gk.js +143 -0
- package/dist/OcListDetail-6XeME6ko.js +76 -0
- package/dist/OcListUrl.vue_vue_type_script_setup_true_lang-BEJafLuT.js +749 -0
- package/dist/OcModal-DdD5VFEN.js +187 -0
- package/dist/OcModalCropper-D2OI2iun.js +56 -0
- package/dist/OcModalPage-BLVa-kcB.js +86 -0
- package/dist/OcMultipleUploadFile-B8Wl9Fuq.js +446 -0
- package/dist/OcNumberInput.vue_vue_type_script_setup_true_lang-C4EXUIUe.js +90 -0
- package/dist/OcOnboardingListItem.vue_vue_type_script_setup_true_lang-Cr80xmnz.js +81 -0
- package/dist/OcOption-DK2FBGq7.js +485 -0
- package/dist/OcOverviewIcon-D702Ujka.js +55 -0
- package/dist/OcOverviewItem-DNr5tWnt.js +186 -0
- package/dist/OcPageTitleRight-DMtJ1qmZ.js +243 -0
- package/dist/OcPaginationNumber-IKPorX26.js +172 -0
- package/dist/OcPaymentTab-Cna1IAhO.js +170 -0
- package/dist/OcPhoneInput-AC6BgQhN.js +432 -0
- package/dist/OcPopper-C11OgQAj.js +97 -0
- package/dist/OcPrimaryActions-D5IprKsQ.js +222 -0
- package/dist/OcProgressBar-hiyC5XSc.js +33 -0
- package/dist/OcRadio-CRYfNwV9.js +107 -0
- package/dist/OcRadioGroup-DgfdWJos.js +76 -0
- package/dist/OcRangeInput-C-hoHFhr.js +103 -0
- package/dist/OcSandboxBanner.vue_vue_type_script_setup_true_lang-BD0k_8xa.js +37 -0
- package/dist/OcSectionItem-BFgxO3se.js +84 -0
- package/dist/OcSelectOptions-BQlG_EUA.js +148 -0
- package/dist/OcShareIcon-BB-NPq0r.js +53 -0
- package/dist/OcSingleFileUpload-B8-e1H5t.js +464 -0
- package/dist/OcSkeleton-BdPTmGh0.js +13 -0
- package/dist/OcSlider-Bsi-ckbP.js +124 -0
- package/dist/OcSnackbar-CKxY1-ej.js +196 -0
- package/dist/OcSteps.vue_vue_type_script_setup_true_lang-CXGy8ma_.js +87 -0
- package/dist/OcSubSidebar.vue_vue_type_script_setup_true_lang-CNxgU07N.js +60 -0
- package/dist/OcSupportMenu.vue_vue_type_script_setup_true_lang-DrjZsWti.js +114 -0
- package/dist/OcSwitchTabs-CYp676bj.js +31 -0
- package/dist/OcTabToSelect-BHAz1Niv.js +183 -0
- package/dist/OcTag.vue_vue_type_script_setup_true_lang-D19lw-8Y.js +26 -0
- package/dist/OcTextArea-BpV1Bnj_.js +78 -0
- package/dist/OcTheme-CWgrJh5Q.js +25 -0
- package/dist/OcTimePicker-B61MCi0D.js +110 -0
- package/dist/OcTimePopup-zQFKCZLk.js +131 -0
- package/dist/OcToggle-C0wTjM_Y.js +54 -0
- package/dist/OcTransferSummary-Bk2GXhrT.js +67 -0
- package/dist/OcVariant.vue_vue_type_script_setup_true_lang-CY_82DLc.js +99 -0
- package/dist/OcVerificationOption.vue_vue_type_script_setup_true_lang-ChqvNoDe.js +59 -0
- package/dist/OcWhiteList.vue_vue_type_script_setup_true_lang-DI9pYU3w.js +64 -0
- package/dist/OnboardingAccordion.vue_vue_type_script_setup_true_lang-B0Z7ETmj.js +113 -0
- package/dist/Overlay/ConfirmationModal/OcConfirmationModal.js +4 -0
- package/dist/Overlay/CopyTooltip/OcCopyTooltip.js +4 -0
- package/dist/Overlay/Dropdown/OcDropdown.js +6 -0
- package/dist/Overlay/Modal/OcModal.js +6 -0
- package/dist/Overlay/Popper/OcPopper.js +4 -0
- package/dist/Overlay/SupportMenu/OcSupportMenu.js +4 -0
- package/dist/Overlay/Tooltip/OcTooltip.js +4 -0
- package/dist/Overlay/Whitelist/OcWhiteList.js +4 -0
- package/dist/StoreDesign.js +240 -0
- package/dist/Theme/OcTheme.js +4 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/composables/helpers.js +48 -0
- package/dist/composables/uploadFileProgress.js +62 -0
- package/dist/composables/useWindowWidth.js +10 -0
- package/dist/data/Validator.js +5 -0
- package/dist/directives/clickOutside.js +13 -0
- package/dist/index.js +177 -1
- package/dist/style.css +1 -0
- package/package.json +23 -5
@@ -0,0 +1,187 @@
|
|
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
|
+
};
|
@@ -0,0 +1,56 @@
|
|
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
|
+
};
|
@@ -0,0 +1,86 @@
|
|
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
|
+
};
|