@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,21 +1,14 @@
|
|
1
|
-
import { ref as x, openBlock as o, createElementBlock as n, createElementVNode as
|
1
|
+
import { ref as x, openBlock as o, createElementBlock as n, createElementVNode as b, Fragment as V, renderList as v, normalizeClass as k, unref as a, toDisplayString as p, createCommentVNode as i, createVNode as d, 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 "./
|
5
|
-
/* empty css */
|
6
|
-
import "libphonenumber-js";
|
7
|
-
/* empty css */
|
8
|
-
/* empty css */
|
9
|
-
import "./Cropper.js";
|
10
|
-
import "vue-draggable-next";
|
11
|
-
import "@popperjs/core";
|
4
|
+
import { B as f } from "./index-DyVteXE3.js";
|
12
5
|
const C = { class: "flex flex-col p-6 gap-y-7 w-fit shadow-normal rounded" }, h = { class: "flex gap-x-7" }, M = {
|
13
6
|
key: 0,
|
14
7
|
class: "flex flex-col py-2 gap-y-4"
|
15
8
|
}, w = ["onClick"], P = {
|
16
9
|
key: 0,
|
17
10
|
class: "flex justify-end gap-x-3"
|
18
|
-
},
|
11
|
+
}, F = {
|
19
12
|
__name: "OcComplexCalendar",
|
20
13
|
props: {
|
21
14
|
shortcuts: Array,
|
@@ -51,26 +44,26 @@ const C = { class: "flex flex-col p-6 gap-y-7 w-fit shadow-normal rounded" }, h
|
|
51
44
|
"update:modelValue": []
|
52
45
|
},
|
53
46
|
setup(e, { emit: y }) {
|
54
|
-
const D = y,
|
55
|
-
D("update:modelValue", l),
|
47
|
+
const D = y, s = x(), g = (l) => {
|
48
|
+
D("update:modelValue", l), s.value.calendarRef.focusDate(r(l.start).toDate());
|
56
49
|
};
|
57
|
-
return (l,
|
50
|
+
return (l, u) => {
|
58
51
|
var c;
|
59
52
|
return o(), n("div", C, [
|
60
|
-
|
53
|
+
b("div", h, [
|
61
54
|
(c = e.shortcuts) != null && c.length ? (o(), n("div", M, [
|
62
|
-
(o(!0), n(
|
55
|
+
(o(!0), n(V, null, v(e.shortcuts, (t) => (o(), n("div", {
|
63
56
|
key: t,
|
64
|
-
class:
|
57
|
+
class: k([
|
65
58
|
"rounded text-center px-4 font-medium py-2 cursor-pointer",
|
66
59
|
a(r)(t.value.start).format("YY-MM-DD") === a(r)(e.modelValue.start).format("YY-MM-DD") && a(r)(t.value.end).format("YY-MM-DD") === a(r)(e.modelValue.end).format("YY-MM-DD") && e.modelValue.end && e.modelValue.start ? "bg-oc-primary-50" : "hover:bg-oc-accent-1-50"
|
67
60
|
]),
|
68
61
|
onClick: (Y) => g(t.value)
|
69
|
-
},
|
70
|
-
])) :
|
71
|
-
|
62
|
+
}, p(t.label), 11, w))), 128))
|
63
|
+
])) : i("", !0),
|
64
|
+
d(a(B), m({
|
72
65
|
ref_key: "datePicker",
|
73
|
-
ref:
|
66
|
+
ref: s,
|
74
67
|
"model-value": e.modelValue,
|
75
68
|
"model-modifiers": {
|
76
69
|
range: e.isRange
|
@@ -85,24 +78,24 @@ const C = { class: "flex flex-col p-6 gap-y-7 w-fit shadow-normal rounded" }, h
|
|
85
78
|
}, l.$attrs, {
|
86
79
|
"min-date": e.minDate,
|
87
80
|
"max-date": e.maxDate,
|
88
|
-
"onUpdate:modelValue":
|
81
|
+
"onUpdate:modelValue": u[0] || (u[0] = (t) => l.$emit("update:modelValue", t))
|
89
82
|
}), null, 16, ["model-value", "model-modifiers", "class", "columns", "min-date", "max-date"])
|
90
83
|
]),
|
91
84
|
e.withFooter ? (o(), n("div", P, [
|
92
|
-
|
85
|
+
d(a(f), m({
|
93
86
|
class: "min-w-[72px]",
|
94
87
|
label: "Clear",
|
95
88
|
variant: "secondary"
|
96
89
|
}, e.cancelButtonProps), null, 16),
|
97
|
-
|
90
|
+
d(a(f), m({
|
98
91
|
class: "min-w-[72px]",
|
99
92
|
label: "Done"
|
100
93
|
}, e.submitButtonProps), null, 16)
|
101
|
-
])) :
|
94
|
+
])) : i("", !0)
|
102
95
|
]);
|
103
96
|
};
|
104
97
|
}
|
105
98
|
};
|
106
99
|
export {
|
107
|
-
|
100
|
+
F as default
|
108
101
|
};
|
@@ -0,0 +1,93 @@
|
|
1
|
+
import { ref as s, openBlock as d, createBlock as m, unref as t, withCtx as l, createVNode as n } from "vue";
|
2
|
+
import { az as c, _ as f, as as b, aA as p, e as V } from "./index-DyVteXE3.js";
|
3
|
+
import r from "dayjs";
|
4
|
+
const x = {
|
5
|
+
__name: "OcComplexDatePicker",
|
6
|
+
props: {
|
7
|
+
shortcuts: Array,
|
8
|
+
cancelButtonProps: Object,
|
9
|
+
submitButtonProps: Object,
|
10
|
+
/**
|
11
|
+
* Props to pass to the calendar component from https://vcalendar.io/
|
12
|
+
*/
|
13
|
+
calendarProps: Object,
|
14
|
+
modelValue: {
|
15
|
+
type: Object,
|
16
|
+
default: () => ({
|
17
|
+
start: /* @__PURE__ */ new Date(),
|
18
|
+
end: /* @__PURE__ */ new Date()
|
19
|
+
})
|
20
|
+
},
|
21
|
+
formatDate: {
|
22
|
+
type: String,
|
23
|
+
default: "DD/MM/YYYY"
|
24
|
+
},
|
25
|
+
countCalendars: {
|
26
|
+
type: Number,
|
27
|
+
default: 2
|
28
|
+
},
|
29
|
+
withFooter: {
|
30
|
+
type: Boolean,
|
31
|
+
default: !0
|
32
|
+
},
|
33
|
+
label: String,
|
34
|
+
hint: String,
|
35
|
+
isRequired: Boolean,
|
36
|
+
errorMessage: String,
|
37
|
+
labelIcon: String,
|
38
|
+
tooltipText: String,
|
39
|
+
tooltipOptions: Object
|
40
|
+
},
|
41
|
+
emits: {
|
42
|
+
"update:modelValue": []
|
43
|
+
},
|
44
|
+
setup(e) {
|
45
|
+
r.extend(c);
|
46
|
+
const u = s(!1);
|
47
|
+
return (i, o) => (d(), m(t(f), {
|
48
|
+
label: e.label,
|
49
|
+
hint: e.hint,
|
50
|
+
"error-message": e.errorMessage,
|
51
|
+
"is-required": e.isRequired,
|
52
|
+
"tooltip-options": e.tooltipOptions,
|
53
|
+
"label-icon": e.labelIcon,
|
54
|
+
"tooltip-text": e.tooltipText
|
55
|
+
}, {
|
56
|
+
default: l(() => [
|
57
|
+
n(t(b), {
|
58
|
+
modelValue: u.value,
|
59
|
+
"onUpdate:modelValue": o[1] || (o[1] = (a) => u.value = a),
|
60
|
+
position: "bottom",
|
61
|
+
class: "w-full"
|
62
|
+
}, {
|
63
|
+
menu: l(() => [
|
64
|
+
n(t(p), {
|
65
|
+
"model-value": e.modelValue,
|
66
|
+
shortcuts: e.shortcuts,
|
67
|
+
"cancel-button-props": e.cancelButtonProps,
|
68
|
+
"submit-button-props": e.submitButtonProps,
|
69
|
+
"calendar-props": e.calendarProps,
|
70
|
+
"count-calendars": e.countCalendars,
|
71
|
+
"with-footer": e.withFooter,
|
72
|
+
"onUpdate:modelValue": o[0] || (o[0] = (a) => i.$emit("update:modelValue", a))
|
73
|
+
}, null, 8, ["model-value", "shortcuts", "cancel-button-props", "submit-button-props", "calendar-props", "count-calendars", "with-footer"])
|
74
|
+
]),
|
75
|
+
default: l(() => [
|
76
|
+
n(t(V), {
|
77
|
+
"model-value": `${t(r)(e.modelValue.start).format(e.formatDate)} - ${t(r)(
|
78
|
+
e.modelValue.end
|
79
|
+
).format(e.formatDate)}`,
|
80
|
+
icon: "calendar",
|
81
|
+
readonly: ""
|
82
|
+
}, null, 8, ["model-value"])
|
83
|
+
]),
|
84
|
+
_: 1
|
85
|
+
}, 8, ["modelValue"])
|
86
|
+
]),
|
87
|
+
_: 1
|
88
|
+
}, 8, ["label", "hint", "error-message", "is-required", "tooltip-options", "label-icon", "tooltip-text"]));
|
89
|
+
}
|
90
|
+
};
|
91
|
+
export {
|
92
|
+
x as default
|
93
|
+
};
|
@@ -1,19 +1,8 @@
|
|
1
|
-
import { ref as p, watch as S, nextTick as F, openBlock as
|
2
|
-
import "
|
3
|
-
import {
|
4
|
-
import { _ as
|
5
|
-
|
6
|
-
import { _ as x } from "./OcInput-tcRxG3Y2.js";
|
7
|
-
import "libphonenumber-js";
|
8
|
-
import { _ as J } from "./OcRadioGroup-DgfdWJos.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
|
-
import { Cropper as K } from "vue-advanced-cropper";
|
16
|
-
const M = { class: "flex flex-col gap-y-5" }, P = ["src"], Q = { class: "flex gap-x-1 justify-center relative" }, W = { class: "grid grid-cols-2 gap-4" }, me = {
|
1
|
+
import { ref as p, watch as S, nextTick as F, openBlock as n, createElementBlock as x, createElementVNode as c, createBlock as u, unref as o, Fragment as A, createVNode as m, createCommentVNode as r, withCtx as y } from "vue";
|
2
|
+
import { B as g, e as V, b as D, i as G, ax as H } from "./index-DyVteXE3.js";
|
3
|
+
import { Cropper as J } from "vue-advanced-cropper";
|
4
|
+
import { _ as K } from "./OcIcon-CJgBICxh.js";
|
5
|
+
const M = { class: "flex flex-col gap-y-5" }, P = ["src"], Q = { class: "flex gap-x-1 justify-center relative" }, W = { class: "grid grid-cols-2 gap-4" }, ee = {
|
17
6
|
__name: "OcCropper",
|
18
7
|
props: {
|
19
8
|
inputOptions: Array,
|
@@ -26,8 +15,8 @@ const M = { class: "flex flex-col gap-y-5" }, P = ["src"], Q = { class: "flex ga
|
|
26
15
|
}
|
27
16
|
},
|
28
17
|
emits: ["changeImage", "update:input-options"],
|
29
|
-
setup(
|
30
|
-
const v =
|
18
|
+
setup(i, { emit: E }) {
|
19
|
+
const v = i, h = E, k = p(), w = p(), s = p(""), C = p(!1), a = p(v.inputOptionValues ?? {});
|
31
20
|
S(
|
32
21
|
() => v.inputOptionValues,
|
33
22
|
() => {
|
@@ -72,13 +61,13 @@ const M = { class: "flex flex-col gap-y-5" }, P = ["src"], Q = { class: "flex ga
|
|
72
61
|
width: (e || l).width,
|
73
62
|
height: (e || l).height
|
74
63
|
}), f = (l, e) => {
|
75
|
-
let
|
76
|
-
|
64
|
+
let d = a.value;
|
65
|
+
d[l] = e, h("update:input-options", d);
|
77
66
|
}, b = p(!!a.value.caption), U = p(!!a.value.lightbox);
|
78
67
|
return (l, e) => {
|
79
|
-
var
|
80
|
-
return
|
81
|
-
|
68
|
+
var d, $, L, I, R, B;
|
69
|
+
return n(), x("div", M, [
|
70
|
+
c("input", {
|
82
71
|
id: "cropper-file-input",
|
83
72
|
ref_key: "fileUploadEl",
|
84
73
|
ref: w,
|
@@ -87,7 +76,7 @@ const M = { class: "flex flex-col gap-y-5" }, P = ["src"], Q = { class: "flex ga
|
|
87
76
|
class: "hidden",
|
88
77
|
onChange: T
|
89
78
|
}, null, 544),
|
90
|
-
s.value ? (
|
79
|
+
s.value ? (n(), u(o(J), {
|
91
80
|
key: 0,
|
92
81
|
ref_key: "cropper",
|
93
82
|
ref: k,
|
@@ -97,39 +86,39 @@ const M = { class: "flex flex-col gap-y-5" }, P = ["src"], Q = { class: "flex ga
|
|
97
86
|
"background-class": "cropper-background",
|
98
87
|
"default-size": q,
|
99
88
|
onChange: N
|
100
|
-
}, null, 8, ["src"])) : (
|
89
|
+
}, null, 8, ["src"])) : (n(), x("img", {
|
101
90
|
key: 1,
|
102
91
|
class: "w-full",
|
103
|
-
src:
|
92
|
+
src: i.img
|
104
93
|
}, null, 8, P)),
|
105
|
-
|
106
|
-
s.value ? (
|
107
|
-
|
94
|
+
c("div", Q, [
|
95
|
+
s.value ? (n(), x(A, { key: 0 }, [
|
96
|
+
m(o(g), {
|
108
97
|
variant: "secondary",
|
109
98
|
size: "small",
|
110
99
|
"left-icon": "backward",
|
111
100
|
onClick: e[0] || (e[0] = (t) => O(-90))
|
112
101
|
}),
|
113
|
-
|
102
|
+
m(o(g), {
|
114
103
|
variant: "secondary",
|
115
104
|
size: "small",
|
116
105
|
"left-icon": "zoom-out",
|
117
106
|
onClick: e[1] || (e[1] = (t) => z(0.8))
|
118
107
|
}),
|
119
|
-
|
108
|
+
m(o(g), {
|
120
109
|
variant: "secondary",
|
121
110
|
size: "small",
|
122
111
|
"left-icon": "zoom-in",
|
123
112
|
onClick: e[2] || (e[2] = (t) => z(1.2))
|
124
113
|
}),
|
125
|
-
|
114
|
+
m(o(g), {
|
126
115
|
variant: "secondary",
|
127
116
|
size: "small",
|
128
117
|
"left-icon": "forward",
|
129
118
|
onClick: e[3] || (e[3] = (t) => O(90))
|
130
119
|
})
|
131
120
|
], 64)) : r("", !0),
|
132
|
-
|
121
|
+
i.isReplaceImage ? (n(), u(o(g), {
|
133
122
|
key: 1,
|
134
123
|
class: "absolute right-0",
|
135
124
|
variant: "secondary",
|
@@ -139,8 +128,8 @@ const M = { class: "flex flex-col gap-y-5" }, P = ["src"], Q = { class: "flex ga
|
|
139
128
|
onClick: j
|
140
129
|
})) : r("", !0)
|
141
130
|
]),
|
142
|
-
|
143
|
-
(
|
131
|
+
c("div", W, [
|
132
|
+
(d = i.inputOptions) != null && d.includes("description") ? (n(), u(o(V), {
|
144
133
|
key: 0,
|
145
134
|
modelValue: a.value.description,
|
146
135
|
"onUpdate:modelValue": [
|
@@ -150,7 +139,7 @@ const M = { class: "flex flex-col gap-y-5" }, P = ["src"], Q = { class: "flex ga
|
|
150
139
|
label: "Describe Image",
|
151
140
|
placeholder: ""
|
152
141
|
}, null, 8, ["modelValue"])) : r("", !0),
|
153
|
-
($ =
|
142
|
+
($ = i.inputOptions) != null && $.includes("link") ? (n(), u(o(V), {
|
154
143
|
key: 1,
|
155
144
|
modelValue: a.value.link,
|
156
145
|
"onUpdate:modelValue": [
|
@@ -160,15 +149,15 @@ const M = { class: "flex flex-col gap-y-5" }, P = ["src"], Q = { class: "flex ga
|
|
160
149
|
placeholder: "https://hitpayapp.com",
|
161
150
|
label: "Link to"
|
162
151
|
}, null, 8, ["modelValue"])) : r("", !0),
|
163
|
-
|
164
|
-
(L =
|
152
|
+
c("div", null, [
|
153
|
+
(L = i.inputOptions) != null && L.includes("caption") ? (n(), u(o(D), {
|
165
154
|
key: 0,
|
166
155
|
modelValue: b.value,
|
167
156
|
"onUpdate:modelValue": e[8] || (e[8] = (t) => b.value = t),
|
168
157
|
label: "Caption",
|
169
158
|
class: "mb-4"
|
170
159
|
}, null, 8, ["modelValue"])) : r("", !0),
|
171
|
-
(I =
|
160
|
+
(I = i.inputOptions) != null && I.includes("caption") && b.value ? (n(), u(o(V), {
|
172
161
|
key: 1,
|
173
162
|
modelValue: a.value.caption,
|
174
163
|
"onUpdate:modelValue": [
|
@@ -178,7 +167,7 @@ const M = { class: "flex flex-col gap-y-5" }, P = ["src"], Q = { class: "flex ga
|
|
178
167
|
class: "mb-4",
|
179
168
|
placeholder: ""
|
180
169
|
}, null, 8, ["modelValue"])) : r("", !0),
|
181
|
-
(R =
|
170
|
+
(R = i.inputOptions) != null && R.includes("caption") && b.value ? (n(), u(o(G), {
|
182
171
|
key: 2,
|
183
172
|
"model-value": a.value.caption_variant,
|
184
173
|
"group-name": "caption_variant",
|
@@ -197,8 +186,8 @@ const M = { class: "flex flex-col gap-y-5" }, P = ["src"], Q = { class: "flex ga
|
|
197
186
|
"onUpdate:modelValue": e[11] || (e[11] = (t) => f("caption_variant", t))
|
198
187
|
}, null, 8, ["model-value"])) : r("", !0)
|
199
188
|
]),
|
200
|
-
|
201
|
-
(B =
|
189
|
+
c("div", null, [
|
190
|
+
(B = i.inputOptions) != null && B.includes("lightbox") ? (n(), u(o(D), {
|
202
191
|
key: 0,
|
203
192
|
modelValue: U.value,
|
204
193
|
"onUpdate:modelValue": [
|
@@ -207,17 +196,17 @@ const M = { class: "flex flex-col gap-y-5" }, P = ["src"], Q = { class: "flex ga
|
|
207
196
|
],
|
208
197
|
label: "Lightbox"
|
209
198
|
}, {
|
210
|
-
after:
|
211
|
-
|
199
|
+
after: y(() => [
|
200
|
+
m(o(H), {
|
212
201
|
position: "bottom",
|
213
202
|
distance: 10,
|
214
203
|
"popper-class": "bg-oc-bg-light min-w-[125px]"
|
215
204
|
}, {
|
216
|
-
popper:
|
217
|
-
|
205
|
+
popper: y(() => e[14] || (e[14] = [
|
206
|
+
c("div", { class: "text-oc-text-400 text-sm px-3 py-2 font-medium text-center" }, " Show lightbox when click the image ", -1)
|
218
207
|
])),
|
219
|
-
default:
|
220
|
-
|
208
|
+
default: y(() => [
|
209
|
+
m(o(K), {
|
221
210
|
name: "question-mark",
|
222
211
|
width: "16",
|
223
212
|
height: "16",
|
@@ -236,5 +225,5 @@ const M = { class: "flex flex-col gap-y-5" }, P = ["src"], Q = { class: "flex ga
|
|
236
225
|
}
|
237
226
|
};
|
238
227
|
export {
|
239
|
-
|
228
|
+
ee as default
|
240
229
|
};
|