@orchidui/core 0.5.0 → 0.7.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
@@ -1,71 +0,0 @@
|
|
1
|
-
import { openBlock as t, createElementBlock as i, createElementVNode as n, toDisplayString as s, createCommentVNode as a, Fragment as m, renderList as d, createBlock as p, unref as l, createVNode as u } from "vue";
|
2
|
-
import "dayjs";
|
3
|
-
import "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
|
4
|
-
import { _ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
5
|
-
import { _ as f } from "./OcIcon-CJgBICxh.js";
|
6
|
-
import { _ as v } from "./OcChip-B1hm2Qni.js";
|
7
|
-
/* empty css */
|
8
|
-
import "libphonenumber-js";
|
9
|
-
/* empty css */
|
10
|
-
import "v-calendar";
|
11
|
-
/* empty css */
|
12
|
-
import "./Cropper.js";
|
13
|
-
import "vue-draggable-next";
|
14
|
-
import "@popperjs/core";
|
15
|
-
const x = { class: "send-money-initial-state relative border rounded" }, h = { class: "z-10 p-7 flex flex-col relative" }, y = { class: "text-xl font-medium mb-4" }, g = {
|
16
|
-
key: 0,
|
17
|
-
class: "text-oc-text-400 mb-10"
|
18
|
-
}, k = {
|
19
|
-
key: 1,
|
20
|
-
class: "flex gap-4 flex-wrap"
|
21
|
-
}, b = { class: "text-sm font-medium" }, w = {
|
22
|
-
__name: "OcFeatureOverviewCard",
|
23
|
-
props: {
|
24
|
-
title: {
|
25
|
-
type: String,
|
26
|
-
required: !0
|
27
|
-
},
|
28
|
-
description: {
|
29
|
-
type: String,
|
30
|
-
default: ""
|
31
|
-
},
|
32
|
-
features: {
|
33
|
-
type: Array,
|
34
|
-
default: () => [],
|
35
|
-
validator: (e) => e.every((o) => "title" in o && "icon" in o)
|
36
|
-
}
|
37
|
-
},
|
38
|
-
setup(e) {
|
39
|
-
return (o, O) => {
|
40
|
-
var c;
|
41
|
-
return t(), i("div", x, [
|
42
|
-
n("div", h, [
|
43
|
-
n("h2", y, s(e.title), 1),
|
44
|
-
e.description ? (t(), i("p", g, s(e.description), 1)) : a("", !0),
|
45
|
-
(c = e.features) != null && c.length ? (t(), i("div", k, [
|
46
|
-
(t(!0), i(m, null, d(e.features, (r) => (t(), i("div", {
|
47
|
-
key: r.title,
|
48
|
-
class: "rounded bg-white flex flex-col gap-2 p-6 items-center justify-center relative"
|
49
|
-
}, [
|
50
|
-
r.comingSoon ? (t(), p(l(v), {
|
51
|
-
key: 0,
|
52
|
-
variant: "accent-2",
|
53
|
-
label: "Coming soon",
|
54
|
-
class: "absolute top-3 left-3"
|
55
|
-
})) : a("", !0),
|
56
|
-
u(l(f), {
|
57
|
-
name: r.icon,
|
58
|
-
height: "56",
|
59
|
-
width: "56"
|
60
|
-
}, null, 8, ["name"]),
|
61
|
-
n("span", b, s(r.title), 1)
|
62
|
-
]))), 128))
|
63
|
-
])) : a("", !0)
|
64
|
-
])
|
65
|
-
]);
|
66
|
-
};
|
67
|
-
}
|
68
|
-
}, L = /* @__PURE__ */ _(w, [["__scopeId", "data-v-d658d1d3"]]);
|
69
|
-
export {
|
70
|
-
L as O
|
71
|
-
};
|
@@ -1,142 +0,0 @@
|
|
1
|
-
import { ref as w, openBlock as e, createElementBlock as i, normalizeClass as V, createElementVNode as r, renderSlot as d, createTextVNode as k, toDisplayString as x, createCommentVNode as n, createVNode as m, unref as l, withCtx as u, createBlock as p, mergeProps as f, Fragment as y, renderList as v } from "vue";
|
2
|
-
import "dayjs";
|
3
|
-
import { D as O } from "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
|
4
|
-
import { _ as g } 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 { _ as b } from "./OcDropdownItem-DAElmzEu.js";
|
13
|
-
import "@popperjs/core";
|
14
|
-
import { _ as $ } from "./OcCopyTooltip.vue_vue_type_script_setup_true_lang-S2RAfV_g.js";
|
15
|
-
const C = { key: 0 }, S = { class: "flex border-oc-gray-200 gap-x-9 justify-between p-5 items-start border-b sticky bg-oc-bg-light top-0" }, B = { class: "flex flex-col gap-y-1 max-w-[300px]" }, N = { class: "text-lg font-medium truncate" }, j = { class: "flex gap-3 items-center" }, D = {
|
16
|
-
key: 0,
|
17
|
-
class: "text-sm text-oc-text-300 truncate"
|
18
|
-
}, P = { class: "flex items-center gap-3" }, z = { class: "p-[6px] rounded cursor-pointer text-oc-gray-500 hover:bg-gray-100 hover:text-oc-text" }, E = { class: "p-2 border-b border-gray-200" }, F = {
|
19
|
-
key: 0,
|
20
|
-
class: "p-2"
|
21
|
-
}, Y = {
|
22
|
-
__name: "OcFloatContent",
|
23
|
-
props: {
|
24
|
-
modelValue: {
|
25
|
-
type: Boolean,
|
26
|
-
default: !1
|
27
|
-
},
|
28
|
-
isClose: {
|
29
|
-
type: Boolean,
|
30
|
-
default: !0
|
31
|
-
},
|
32
|
-
title: String,
|
33
|
-
description: String,
|
34
|
-
dropdownOptions: {
|
35
|
-
type: Object
|
36
|
-
},
|
37
|
-
dropdownProps: {
|
38
|
-
type: Object,
|
39
|
-
default: () => ({})
|
40
|
-
},
|
41
|
-
position: {
|
42
|
-
type: String,
|
43
|
-
validator: (t) => ["left", "right"].includes(t),
|
44
|
-
default: "right"
|
45
|
-
}
|
46
|
-
},
|
47
|
-
emits: ["update:model-value"],
|
48
|
-
setup(t, { emit: L }) {
|
49
|
-
const h = w(!1);
|
50
|
-
return (s, a) => (e(), i("div", {
|
51
|
-
class: V(["fixed top-0 bottom-0 shadow-xl bg-oc-bg-light transition-all h-full z-50 overflow-y-auto", {
|
52
|
-
"right-0": t.modelValue && t.position === "right",
|
53
|
-
"right-[-999px] w-0": !t.modelValue && t.position === "right",
|
54
|
-
"left-0": t.modelValue && t.position === "left",
|
55
|
-
"left-[-999px] w-0": !t.modelValue && t.position === "left"
|
56
|
-
}])
|
57
|
-
}, [
|
58
|
-
t.modelValue ? (e(), i("div", C, [
|
59
|
-
r("div", S, [
|
60
|
-
d(s.$slots, "header", {}, () => [
|
61
|
-
r("div", B, [
|
62
|
-
r("span", N, [
|
63
|
-
d(s.$slots, "title", {}, () => [
|
64
|
-
k(x(t.title), 1)
|
65
|
-
])
|
66
|
-
]),
|
67
|
-
d(s.$slots, "description", {}, () => [
|
68
|
-
r("div", j, [
|
69
|
-
t.description ? (e(), i("span", D, x(t.description), 1)) : n("", !0),
|
70
|
-
m(l($), {
|
71
|
-
value: t.description,
|
72
|
-
"tooltip-options": { strategy: "fixed" }
|
73
|
-
}, {
|
74
|
-
default: u(({ isShow: o }) => [
|
75
|
-
m(l(g), {
|
76
|
-
width: "14",
|
77
|
-
height: "14",
|
78
|
-
class: "cursor-pointer text-oc-text-400",
|
79
|
-
name: "copy"
|
80
|
-
})
|
81
|
-
]),
|
82
|
-
_: 1
|
83
|
-
}, 8, ["value"])
|
84
|
-
])
|
85
|
-
])
|
86
|
-
]),
|
87
|
-
r("div", P, [
|
88
|
-
t.dropdownOptions ? (e(), p(l(O), f({
|
89
|
-
key: 0,
|
90
|
-
modelValue: h.value,
|
91
|
-
"onUpdate:modelValue": a[0] || (a[0] = (o) => h.value = o),
|
92
|
-
"popper-options": { strategy: "fixed" },
|
93
|
-
placement: "bottom",
|
94
|
-
class: "text-sm"
|
95
|
-
}, t.dropdownProps), {
|
96
|
-
menu: u(() => [
|
97
|
-
r("div", E, [
|
98
|
-
(e(!0), i(y, null, v(t.dropdownOptions.top, (o, c) => (e(), p(l(b), f({
|
99
|
-
key: c,
|
100
|
-
ref_for: !0
|
101
|
-
}, o), null, 16))), 128))
|
102
|
-
]),
|
103
|
-
t.dropdownOptions.bottom ? (e(), i("div", F, [
|
104
|
-
(e(!0), i(y, null, v(t.dropdownOptions.bottom, (o, c) => (e(), p(l(b), f({
|
105
|
-
key: c,
|
106
|
-
ref_for: !0
|
107
|
-
}, o), null, 16))), 128))
|
108
|
-
])) : n("", !0)
|
109
|
-
]),
|
110
|
-
default: u(() => [
|
111
|
-
r("div", z, [
|
112
|
-
m(l(g), {
|
113
|
-
name: "dots-vertical",
|
114
|
-
width: "20",
|
115
|
-
height: "20"
|
116
|
-
})
|
117
|
-
])
|
118
|
-
]),
|
119
|
-
_: 1
|
120
|
-
}, 16, ["modelValue"])) : n("", !0),
|
121
|
-
t.isClose ? (e(), i("div", {
|
122
|
-
key: 1,
|
123
|
-
class: "p-[6px] rounded cursor-pointer text-oc-gray-500 hover:bg-gray-100 hover:text-oc-text",
|
124
|
-
onClick: a[1] || (a[1] = (o) => s.$emit("update:model-value", !1))
|
125
|
-
}, [
|
126
|
-
m(l(g), {
|
127
|
-
name: "x",
|
128
|
-
width: "20",
|
129
|
-
height: "20"
|
130
|
-
})
|
131
|
-
])) : n("", !0)
|
132
|
-
])
|
133
|
-
])
|
134
|
-
]),
|
135
|
-
d(s.$slots, "bottom")
|
136
|
-
])) : n("", !0)
|
137
|
-
], 2));
|
138
|
-
}
|
139
|
-
};
|
140
|
-
export {
|
141
|
-
Y as _
|
142
|
-
};
|
@@ -1,177 +0,0 @@
|
|
1
|
-
import { computed as S, ref as m, watch as v, onMounted as U, openBlock as _, createElementBlock as y, normalizeClass as F, normalizeStyle as K, Fragment as V, renderList as x, createBlock as A, resolveDynamicComponent as D, mergeProps as N, renderSlot as P, createCommentVNode as G } from "vue";
|
2
|
-
import "dayjs";
|
3
|
-
import { a as q } from "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
|
4
|
-
/* empty css */
|
5
|
-
import { _ as z } from "./OcCardInput-BFE4Xu-S.js";
|
6
|
-
import { _ as L } from "./OcCheckboxesGroup-CLbquUO2.js";
|
7
|
-
import { _ as R } from "./OcInput-tcRxG3Y2.js";
|
8
|
-
import { _ as H } from "./OcPhoneInput-AC6BgQhN.js";
|
9
|
-
import { _ as J } from "./OcRadioGroup-DgfdWJos.js";
|
10
|
-
import { _ as Q } from "./OcRangeInput-C-hoHFhr.js";
|
11
|
-
import { _ as W } from "./OcOption-DK2FBGq7.js";
|
12
|
-
import { T as X } from "./OcToggle-C0wTjM_Y.js";
|
13
|
-
import { _ as Y } from "./OcLinkInput-C2ixk-gk.js";
|
14
|
-
import { _ as Z } from "./OcTextArea-BpV1Bnj_.js";
|
15
|
-
import { _ as ee } from "./DatePicker-BLK16hYl.js";
|
16
|
-
import { _ as ae } from "./OcTimePicker-B61MCi0D.js";
|
17
|
-
import { S as te } from "./OcSlider-Bsi-ckbP.js";
|
18
|
-
import { _ as se } from "./OcSectionItem-BFgxO3se.js";
|
19
|
-
import { _ as ne } from "./OcSelectOptions-BQlG_EUA.js";
|
20
|
-
import "./Cropper.js";
|
21
|
-
import "vue-draggable-next";
|
22
|
-
import { _ as ie } from "./OcNumberInput.vue_vue_type_script_setup_true_lang-C4EXUIUe.js";
|
23
|
-
import "@popperjs/core";
|
24
|
-
const Ke = {
|
25
|
-
__name: "OcFormBuilder",
|
26
|
-
props: {
|
27
|
-
id: {
|
28
|
-
type: String,
|
29
|
-
required: !0
|
30
|
-
},
|
31
|
-
jsonForm: {
|
32
|
-
type: Array
|
33
|
-
},
|
34
|
-
/**
|
35
|
-
* Grid needs to be defined in the following format:
|
36
|
-
* `{`
|
37
|
-
* `[Responsive size (xs, sm, md, lg, xl, xxl)]: {`
|
38
|
-
* `area: [Grid area definition (names of areas in order)],`
|
39
|
-
* `rows: [Count and size of rows i.e: 'auto' | '100%' | ...],`
|
40
|
-
* `columns: [Count and size of columns i.e: '33% 33% 33%'],`
|
41
|
-
* `}`
|
42
|
-
* `}`
|
43
|
-
*/
|
44
|
-
grid: {
|
45
|
-
type: Object,
|
46
|
-
default: null
|
47
|
-
},
|
48
|
-
class: String,
|
49
|
-
errors: {
|
50
|
-
type: Object
|
51
|
-
},
|
52
|
-
values: {
|
53
|
-
type: Object,
|
54
|
-
required: !0
|
55
|
-
},
|
56
|
-
previewMode: String
|
57
|
-
// only for store design
|
58
|
-
},
|
59
|
-
emits: ["onUpdate"],
|
60
|
-
setup(l, { emit: E }) {
|
61
|
-
const s = l, M = E, h = (e, t) => {
|
62
|
-
M("onUpdate", e, t);
|
63
|
-
}, f = {
|
64
|
-
CardInput: z,
|
65
|
-
CheckboxesGroup: L,
|
66
|
-
Input: R,
|
67
|
-
NumberInput: ie,
|
68
|
-
LinkInput: Y,
|
69
|
-
Select: W,
|
70
|
-
TextArea: Z,
|
71
|
-
Toggle: X,
|
72
|
-
RadioGroup: J,
|
73
|
-
TimePicker: ae,
|
74
|
-
DatePicker: ee,
|
75
|
-
Checkbox: q,
|
76
|
-
Slider: te,
|
77
|
-
RangeInput: Q,
|
78
|
-
PhoneInput: H,
|
79
|
-
SectionItem: se,
|
80
|
-
SelectOptions: ne
|
81
|
-
}, g = (e) => f[e] ? f[e] : null, O = S(() => {
|
82
|
-
const e = (a) => a.split(`
|
83
|
-
`).map((i) => i.trim()).filter(Boolean).map((i) => `"${i}"`).join(" "), t = {};
|
84
|
-
return Object.entries(s.grid).forEach(([a, i]) => {
|
85
|
-
Object.entries(i).forEach(([r, p]) => {
|
86
|
-
t[`--grid-${a}-${r}`] = r === "area" ? e(p) : p;
|
87
|
-
});
|
88
|
-
}), t;
|
89
|
-
}), w = (e) => typeof e == "object" ? e[0].key : e, T = (e) => `grid-area: ${w(e)}`, b = S(() => s.class), n = m({}), c = m({}), u = m({}), o = (e) => typeof e == "object" ? e[0].key : e, d = (e) => {
|
90
|
-
s.jsonForm.forEach((t) => {
|
91
|
-
var a;
|
92
|
-
if (typeof t.name == "object") {
|
93
|
-
let i = null;
|
94
|
-
t.name.forEach((r) => {
|
95
|
-
e[r.key] && (i ? i.push(e[r.key]) : i = [e[r.key]]);
|
96
|
-
}), n.value[o(t.name)] = i, $(t);
|
97
|
-
} else
|
98
|
-
(a = t.props) != null && a.parentKey ? (n.value[t.props.parentKey] = e[t.props.parentKey] ?? {}, n.value[t.props.parentKey][t.name] = e[t.props.parentKey][t.name] ?? "") : n.value[t.name] = e[t.name] ?? "", $(t);
|
99
|
-
});
|
100
|
-
}, j = () => {
|
101
|
-
s.jsonForm.forEach((e) => {
|
102
|
-
if (typeof e.name == "object") {
|
103
|
-
let t = [];
|
104
|
-
e.name.forEach((a) => {
|
105
|
-
s.errors[a.key] && t.push(s.errors[a.key]);
|
106
|
-
}), c.value[o(e.name)] = t.join(",");
|
107
|
-
} else
|
108
|
-
c.value[e.name] = s.errors[e.name] ?? "";
|
109
|
-
});
|
110
|
-
}, $ = (e) => {
|
111
|
-
if (e.show_if || e.show_if_preview) {
|
112
|
-
let t = e.class ? e.class : "";
|
113
|
-
e.show_if ? e.show_if_value !== void 0 ? e.show_if_value !== n.value[e.show_if] && (t = t + " hidden") : e.show_if_not !== void 0 ? e.show_if_not === n.value[e.show_if] && (t = t + " hidden") : e.show_if_min !== void 0 && (isNaN(parseInt(n.value[e.show_if])) ? 1 : parseInt(n.value[e.show_if])) < parseInt(e.show_if_min) && (t = t + " hidden") : e.show_if_preview && (e.show_if_preview_only !== void 0 ? e.show_if_preview_only !== s.previewMode && (t = t + " hidden") : e.show_if_preview_not !== void 0 && e.show_if_preview_not === s.previewMode && (t = t + " hidden")), typeof e.name == "object" ? u.value[o(e.name)] = t : u.value[e.name] = t;
|
114
|
-
} else
|
115
|
-
u.value[e.name] = e.class ? e.class : "";
|
116
|
-
};
|
117
|
-
return v(
|
118
|
-
() => s.values,
|
119
|
-
(e) => {
|
120
|
-
d(e);
|
121
|
-
},
|
122
|
-
{
|
123
|
-
deep: !0
|
124
|
-
}
|
125
|
-
), v(
|
126
|
-
() => s.errors,
|
127
|
-
(e) => {
|
128
|
-
j();
|
129
|
-
},
|
130
|
-
{
|
131
|
-
deep: !0
|
132
|
-
}
|
133
|
-
), v(
|
134
|
-
() => s.previewMode,
|
135
|
-
() => {
|
136
|
-
d(s.values);
|
137
|
-
}
|
138
|
-
), U(() => {
|
139
|
-
d(s.values), j(s.errors);
|
140
|
-
}), (e, t) => Object.values(n.value).length > 0 ? (_(), y("div", {
|
141
|
-
key: 0,
|
142
|
-
class: F(l.grid ? `responsive-smart-form-grid ${b.value}` : b.value),
|
143
|
-
style: K(l.grid ? O.value : "")
|
144
|
-
}, [
|
145
|
-
(_(!0), y(V, null, x(l.jsonForm, (a) => {
|
146
|
-
var i, r, p, k, C, I;
|
147
|
-
return _(), y("div", {
|
148
|
-
key: w(a.name),
|
149
|
-
style: K(l.grid ? T(a.name) : ""),
|
150
|
-
class: F([
|
151
|
-
a.type !== "Children" ? u.value[typeof a.name == "object" ? o(a.name) : a.name] : "",
|
152
|
-
a.class
|
153
|
-
])
|
154
|
-
}, [
|
155
|
-
g(a.type) ? (_(), A(D(g(a.type)), N({
|
156
|
-
key: 0,
|
157
|
-
ref_for: !0
|
158
|
-
}, a.props, {
|
159
|
-
"model-value": (i = a.props) != null && i.parentKey ? (p = (r = n.value) == null ? void 0 : r[a.props.parentKey]) == null ? void 0 : p[a.name] : n.value[typeof a.name == "object" ? o(a.name) : a.name],
|
160
|
-
"error-message": c.value[typeof a.name == "object" ? o(a.name) : a.name],
|
161
|
-
"onUpdate:modelValue": (B) => h(a, B)
|
162
|
-
}), null, 16, ["model-value", "error-message", "onUpdate:modelValue"])) : P(e.$slots, a.type, {
|
163
|
-
key: 1,
|
164
|
-
formId: l.id,
|
165
|
-
form: a,
|
166
|
-
value: (k = a.props) != null && k.parentKey ? (I = (C = n.value) == null ? void 0 : C[a.props.parentKey]) == null ? void 0 : I[a.name] : n.value[typeof a.name == "object" ? o(a.name) : a.name],
|
167
|
-
error: c.value[typeof a.name == "object" ? o(a.name) : a.name],
|
168
|
-
onUpdate: h
|
169
|
-
})
|
170
|
-
], 6);
|
171
|
-
}), 128))
|
172
|
-
], 6)) : G("", !0);
|
173
|
-
}
|
174
|
-
};
|
175
|
-
export {
|
176
|
-
Ke as _
|
177
|
-
};
|
@@ -1,16 +0,0 @@
|
|
1
|
-
import { openBlock as o, createElementBlock as r, createElementVNode as s, toDisplayString as l, renderSlot as c } from "vue";
|
2
|
-
const n = { class: "flex flex-col" }, p = { class: "px-3 pt-3 pb-2 border-y border-white text-oc-text uppercase text-xs font-medium" }, d = {
|
3
|
-
__name: "OcGroupOptions",
|
4
|
-
props: {
|
5
|
-
label: String
|
6
|
-
},
|
7
|
-
setup(e) {
|
8
|
-
return (t, a) => (o(), r("div", n, [
|
9
|
-
s("div", p, l(e.label), 1),
|
10
|
-
c(t.$slots, "default")
|
11
|
-
]));
|
12
|
-
}
|
13
|
-
};
|
14
|
-
export {
|
15
|
-
d as _
|
16
|
-
};
|
@@ -1,81 +0,0 @@
|
|
1
|
-
import { useSlots as x, openBlock as o, createElementBlock as i, normalizeClass as r, createElementVNode as a, toDisplayString as c, createBlock as u, unref as s, withCtx as m, createVNode as d, createCommentVNode as l, renderSlot as n } from "vue";
|
2
|
-
import "dayjs";
|
3
|
-
import { T as g } from "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
|
4
|
-
import { _ as p } 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 b = { class: "uppercase" }, v = { class: "flex flex-col px-3 py-2 text-[12px] text-oc-text-400 font-medium text-sm" }, w = { class: "mb-auto" }, B = {
|
14
|
-
key: 1,
|
15
|
-
class: "absolute top-2 right-2 left-2 bottom-2 bg-white flex items-center justify-center"
|
16
|
-
}, O = {
|
17
|
-
__name: "OcInfoCard",
|
18
|
-
props: {
|
19
|
-
isLoading: Boolean,
|
20
|
-
title: String,
|
21
|
-
titleIcon: String,
|
22
|
-
titleIconTooltip: String,
|
23
|
-
titleClass: Object,
|
24
|
-
transparent: Boolean,
|
25
|
-
hover: Boolean,
|
26
|
-
shadow: Boolean,
|
27
|
-
noData: Boolean,
|
28
|
-
noDataDescription: String
|
29
|
-
},
|
30
|
-
setup(t) {
|
31
|
-
const h = x(), f = (e) => !!h[e];
|
32
|
-
return (e, S) => (o(), i("div", {
|
33
|
-
class: r(["border border-gray-200 rounded p-5 flex flex-col grow transition relative", {
|
34
|
-
"border-transparent": t.transparent,
|
35
|
-
"hover:shadow": t.hover,
|
36
|
-
shadow: t.shadow
|
37
|
-
}])
|
38
|
-
}, [
|
39
|
-
t.title && !f("header") ? (o(), i("div", {
|
40
|
-
key: 0,
|
41
|
-
class: r(["flex items-start text-oc-text-400 font-medium text-[10px]", t.titleClass])
|
42
|
-
}, [
|
43
|
-
a("div", b, c(t.title), 1),
|
44
|
-
t.titleIconTooltip ? (o(), u(s(g), {
|
45
|
-
key: 0,
|
46
|
-
"popper-class": "w-max bg-oc-bg",
|
47
|
-
position: "top-start"
|
48
|
-
}, {
|
49
|
-
popper: m(() => [
|
50
|
-
a("div", v, c(t.titleIconTooltip), 1)
|
51
|
-
]),
|
52
|
-
default: m(() => [
|
53
|
-
d(s(p), {
|
54
|
-
class: "ml-[3px]",
|
55
|
-
name: t.titleIcon,
|
56
|
-
width: "16",
|
57
|
-
height: "16"
|
58
|
-
}, null, 8, ["name"])
|
59
|
-
]),
|
60
|
-
_: 1
|
61
|
-
})) : l("", !0)
|
62
|
-
], 2)) : l("", !0),
|
63
|
-
n(e.$slots, "header"),
|
64
|
-
a("div", w, [
|
65
|
-
n(e.$slots, "default")
|
66
|
-
]),
|
67
|
-
n(e.$slots, "footer"),
|
68
|
-
t.isLoading ? (o(), i("div", B, [
|
69
|
-
d(s(p), {
|
70
|
-
name: "loading-2",
|
71
|
-
width: "32",
|
72
|
-
height: "32",
|
73
|
-
class: "text-oc-text-400 motion-safe:animate-spin"
|
74
|
-
})
|
75
|
-
])) : l("", !0)
|
76
|
-
], 2));
|
77
|
-
}
|
78
|
-
};
|
79
|
-
export {
|
80
|
-
O as _
|
81
|
-
};
|