@orchidui/core 1.39.0 → 1.41.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 +1 -1
- package/dist/DataDisplay/NewTable/OcNewTable.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/DataTable/utils/filterUtils.js +16 -16
- 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/TopBanner/OcTopBanner.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 +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 +1 -1
- package/dist/Form/Input/OcInput.js +1 -1
- 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 +1 -1
- package/dist/Form/Select/OcSelect.js +1 -1
- package/dist/Form/SelectOptions/OcSelectOptions.js +1 -1
- package/dist/Form/SingleFileUpload/OcSingleFileUpload.js +1 -1
- package/dist/Form/Slider/OcSlider.js +1 -1
- package/dist/Form/TextArea/OcTextArea.js +1 -1
- package/dist/Form/index.js +1 -1
- package/dist/FormBuilder/OcFormBuilder.js +1 -1
- package/dist/{OcAccountSetupProgress-CAsTFLzD.js → OcAccountSetupProgress-BGk3Vvbq.js} +1 -1
- package/dist/OcComplexCalendar-CQ1P3lYK.js +5863 -0
- package/dist/{OcComplexDatePicker-CST3cyMh.js → OcComplexDatePicker-m_8Uf5Of.js} +2 -2
- package/dist/OcCropper-Bu91R5Et.js +1644 -0
- package/dist/{OcDataTable-D1Lmh1Lj.js → OcDataTable-Biq6U1Dl.js} +3 -3
- package/dist/{OcDraggable-DRsp4j4e.js → OcDraggable-C-RjArcr.js} +7 -7
- package/dist/{OcDraggableList-CwGfz1m1.js → OcDraggableList-lr-sYgCF.js} +1 -1
- package/dist/{OcEmojiPicker-B5v0dgDQ.js → OcEmojiPicker-oCBcfwyU.js} +1 -1
- package/dist/{OcFilterForm-BfRaaBNx.js → OcFilterForm-CfX0YXPm.js} +1 -1
- package/dist/{OcFilterSearch-eV23JjoR.js → OcFilterSearch-DK-0OYgr.js} +1 -1
- package/dist/{OcFilterSearchFor-FKrmN6gd.js → OcFilterSearchFor-uDEPTHYM.js} +1 -1
- package/dist/{OcModalCropper-BG0rGXgt.js → OcModalCropper-kYvlF6dF.js} +2 -2
- package/dist/OcPopper-DAh56I2b.js +1002 -0
- package/dist/{OcTimePicker-C_OHCpVq.js → OcTimePicker-X6dFf9sD.js} +10 -10
- 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-DKX_tiqc.js → SubPlanCard-CbbBLUQE.js} +1 -1
- package/dist/{ThumbnailSection-B7Vmk_YO.js → ThumbnailSection-Bm1GLPM1.js} +1 -1
- package/dist/{ThumbnailTheme-B645KTkE.js → ThumbnailTheme-DJE4H-1K.js} +1 -1
- package/dist/core.css +1 -1
- package/dist/dayjs.min-7xVZzECu.js +287 -0
- package/dist/index-DRTRbrS-.js +12893 -0
- package/dist/index.js +2 -2
- package/dist/vue-draggable-next.esm-bundler-QQ8zx__3.js +1559 -0
- package/package.json +12 -1
- package/dist/OcComplexCalendar-BKht-iKa.js +0 -101
- package/dist/OcCropper-DMvRM32l.js +0 -270
- package/dist/OcPopper-BSfMaOoF.js +0 -101
- package/dist/index-Bl4-MlMa.js +0 -11301
package/package.json
CHANGED
|
@@ -1,11 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orchidui/core",
|
|
3
3
|
"description": "Orchid UI, Library Vue 3 tailwind css",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.41.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "vite build"
|
|
8
8
|
},
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"@popperjs/core": "^2.11.8",
|
|
11
|
+
"dayjs": "^1.11.10",
|
|
12
|
+
"dexie": "^4.0.11",
|
|
13
|
+
"flag-icons": "^6.11.1",
|
|
14
|
+
"libphonenumber-js": "^1.10.51",
|
|
15
|
+
"lodash-es": "^4.17.21",
|
|
16
|
+
"v-calendar": "^3.1.2",
|
|
17
|
+
"vue-draggable-next": "^2.2.1",
|
|
18
|
+
"vue-advanced-cropper": "^2.8.8"
|
|
19
|
+
},
|
|
9
20
|
"publishConfig": {
|
|
10
21
|
"access": "public"
|
|
11
22
|
},
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { ref as x, createElementBlock as o, openBlock as n, createElementVNode as b, createCommentVNode as i, createVNode as m, Fragment as v, renderList as V, normalizeClass as k, unref as a, toDisplayString as p, mergeProps as s } from "vue";
|
|
2
|
-
import { DatePicker as B } from "v-calendar";
|
|
3
|
-
import r from "dayjs";
|
|
4
|
-
import { B as f } from "./index-Bl4-MlMa.js";
|
|
5
|
-
const C = { class: "flex flex-col p-6 gap-y-7 w-fit shadow-normal rounded" }, h = { class: "flex gap-x-7" }, M = {
|
|
6
|
-
key: 0,
|
|
7
|
-
class: "flex flex-col py-2 gap-y-4"
|
|
8
|
-
}, w = ["onClick"], P = {
|
|
9
|
-
key: 0,
|
|
10
|
-
class: "flex justify-end gap-x-3"
|
|
11
|
-
}, F = {
|
|
12
|
-
__name: "OcComplexCalendar",
|
|
13
|
-
props: {
|
|
14
|
-
shortcuts: Array,
|
|
15
|
-
cancelButtonProps: Object,
|
|
16
|
-
submitButtonProps: Object,
|
|
17
|
-
modelValue: {
|
|
18
|
-
type: Object,
|
|
19
|
-
default: () => ({
|
|
20
|
-
start: /* @__PURE__ */ new Date(),
|
|
21
|
-
end: /* @__PURE__ */ new Date()
|
|
22
|
-
})
|
|
23
|
-
},
|
|
24
|
-
countCalendars: {
|
|
25
|
-
type: Number,
|
|
26
|
-
default: 2
|
|
27
|
-
},
|
|
28
|
-
withFooter: {
|
|
29
|
-
type: Boolean,
|
|
30
|
-
default: !0
|
|
31
|
-
},
|
|
32
|
-
isRange: {
|
|
33
|
-
type: Boolean,
|
|
34
|
-
default: !0
|
|
35
|
-
},
|
|
36
|
-
minDate: {
|
|
37
|
-
type: [String, Date, Number]
|
|
38
|
-
},
|
|
39
|
-
maxDate: {
|
|
40
|
-
type: [String, Date, Number]
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
emits: {
|
|
44
|
-
"update:modelValue": []
|
|
45
|
-
},
|
|
46
|
-
setup(e, { emit: y }) {
|
|
47
|
-
const D = y, d = x(), g = (l) => {
|
|
48
|
-
d.value && (D("update:modelValue", l), d.value.calendarRef.focusDate(r(l.start).toDate()));
|
|
49
|
-
};
|
|
50
|
-
return (l, u) => {
|
|
51
|
-
var c;
|
|
52
|
-
return n(), o("div", C, [
|
|
53
|
-
b("div", h, [
|
|
54
|
-
(c = e.shortcuts) != null && c.length ? (n(), o("div", M, [
|
|
55
|
-
(n(!0), o(v, null, V(e.shortcuts, (t) => (n(), o("div", {
|
|
56
|
-
key: t,
|
|
57
|
-
class: k([
|
|
58
|
-
"rounded text-center px-4 font-medium py-2 cursor-pointer",
|
|
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"
|
|
60
|
-
]),
|
|
61
|
-
onClick: (Y) => g(t.value)
|
|
62
|
-
}, p(t.label), 11, w))), 128))
|
|
63
|
-
])) : i("", !0),
|
|
64
|
-
m(a(B), s({
|
|
65
|
-
ref_key: "datePicker",
|
|
66
|
-
ref: d,
|
|
67
|
-
"model-value": e.modelValue,
|
|
68
|
-
"model-modifiers": {
|
|
69
|
-
range: e.isRange
|
|
70
|
-
},
|
|
71
|
-
class: {
|
|
72
|
-
"oc-complex-calendar__calendar--single": !e.isRange || e.countCalendars == 1
|
|
73
|
-
},
|
|
74
|
-
locale: "en",
|
|
75
|
-
color: "primary",
|
|
76
|
-
borderless: "",
|
|
77
|
-
columns: e.countCalendars
|
|
78
|
-
}, l.$attrs, {
|
|
79
|
-
"min-date": e.minDate,
|
|
80
|
-
"max-date": e.maxDate,
|
|
81
|
-
"onUpdate:modelValue": u[0] || (u[0] = (t) => l.$emit("update:modelValue", t))
|
|
82
|
-
}), null, 16, ["model-value", "model-modifiers", "class", "columns", "min-date", "max-date"])
|
|
83
|
-
]),
|
|
84
|
-
e.withFooter ? (n(), o("div", P, [
|
|
85
|
-
m(a(f), s({
|
|
86
|
-
class: "min-w-[72px]",
|
|
87
|
-
label: "Clear",
|
|
88
|
-
variant: "secondary"
|
|
89
|
-
}, e.cancelButtonProps), null, 16),
|
|
90
|
-
m(a(f), s({
|
|
91
|
-
class: "min-w-[72px]",
|
|
92
|
-
label: "Done"
|
|
93
|
-
}, e.submitButtonProps), null, 16)
|
|
94
|
-
])) : i("", !0)
|
|
95
|
-
]);
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
};
|
|
99
|
-
export {
|
|
100
|
-
F as default
|
|
101
|
-
};
|
|
@@ -1,270 +0,0 @@
|
|
|
1
|
-
import { ref as u, computed as M, watch as T, nextTick as P, createElementBlock as k, openBlock as i, createElementVNode as m, createBlock as r, createCommentVNode as s, unref as a, createVNode as c, Fragment as Q, withCtx as F } from "vue";
|
|
2
|
-
import { B as h, d as y, C as w, h as W, aF as X } from "./index-Bl4-MlMa.js";
|
|
3
|
-
import { Cropper as Y } from "vue-advanced-cropper";
|
|
4
|
-
import { _ as q } from "./OcIcon-BedshzZm.js";
|
|
5
|
-
const Z = { class: "flex flex-col gap-y-5 relative" }, _ = ["src"], ee = {
|
|
6
|
-
key: 2,
|
|
7
|
-
class: "absolute top-0 bottom-0 right-0 left-0 flex items-center justify-center h-[300px]"
|
|
8
|
-
}, le = { class: "flex gap-x-1 justify-center relative" }, te = { class: "grid grid-cols-2 gap-4" }, ae = {
|
|
9
|
-
key: 1,
|
|
10
|
-
class: "flex items-center gap-x-2 justify-normal"
|
|
11
|
-
}, ie = { class: "w-auto" }, re = {
|
|
12
|
-
__name: "OcCropper",
|
|
13
|
-
props: {
|
|
14
|
-
inputOptions: Array,
|
|
15
|
-
inputOptionValues: Object,
|
|
16
|
-
img: String,
|
|
17
|
-
maxSize: [String, Number],
|
|
18
|
-
isReplaceImage: {
|
|
19
|
-
type: Boolean,
|
|
20
|
-
default: !0
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
emits: ["changeImage", "update:input-options"],
|
|
24
|
-
setup(n, { emit: A }) {
|
|
25
|
-
const f = n, V = A, d = u(), C = u(), p = u(""), O = u(), z = u(!1), o = u(f.inputOptionValues ?? {}), b = M(() => {
|
|
26
|
-
var l;
|
|
27
|
-
return !((l = d.value) != null && l.initialized);
|
|
28
|
-
});
|
|
29
|
-
T(
|
|
30
|
-
() => f.inputOptionValues,
|
|
31
|
-
() => {
|
|
32
|
-
o.value = f.inputOptionValues;
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
deep: !0
|
|
36
|
-
}
|
|
37
|
-
), T(
|
|
38
|
-
() => f.img,
|
|
39
|
-
(l) => {
|
|
40
|
-
l && P(() => {
|
|
41
|
-
try {
|
|
42
|
-
const e = new URL(l);
|
|
43
|
-
e.protocol === "http:" || e.protocol === "https:" ? p.value = `${l}?${Date.now()}` : p.value = l;
|
|
44
|
-
} catch {
|
|
45
|
-
p.value = l;
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
},
|
|
49
|
-
{ immediate: !0 }
|
|
50
|
-
);
|
|
51
|
-
const G = () => {
|
|
52
|
-
if (p.value && z.value) {
|
|
53
|
-
const { canvas: l } = d.value.getResult(), e = !(d.value.image.width === l.width && d.value.image.height === l.height && !d.value.imageTransforms.rotate);
|
|
54
|
-
V("changeImage", {
|
|
55
|
-
url: l.toDataURL(),
|
|
56
|
-
cropper: {
|
|
57
|
-
isChanged: e,
|
|
58
|
-
file: O.value
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
z.value = !0;
|
|
63
|
-
}, U = (l) => {
|
|
64
|
-
var e;
|
|
65
|
-
return (e = d.value) == null ? void 0 : e.rotate(l);
|
|
66
|
-
}, I = (l) => {
|
|
67
|
-
var e;
|
|
68
|
-
return (e = d.value) == null ? void 0 : e.zoom(l);
|
|
69
|
-
}, H = () => {
|
|
70
|
-
C.value.click();
|
|
71
|
-
}, J = (l) => {
|
|
72
|
-
if (l.target.files[0] / (1024 * 1024) > +f.maxSize)
|
|
73
|
-
return l.preventDefault(), !1;
|
|
74
|
-
O.value = l.target.files[0], p.value = URL.createObjectURL(l.target.files[0]);
|
|
75
|
-
}, K = ({ imageSize: l, visibleArea: e }) => ({
|
|
76
|
-
width: (e || l).width,
|
|
77
|
-
height: (e || l).height
|
|
78
|
-
}), v = (l, e) => {
|
|
79
|
-
let g = o.value;
|
|
80
|
-
g[l] = e, V("update:input-options", g);
|
|
81
|
-
}, x = u(!!o.value.caption), $ = u(!!o.value.lightbox), L = u(!!o.value.new_tab);
|
|
82
|
-
return (l, e) => {
|
|
83
|
-
var g, R, B, S, j, E, N, D;
|
|
84
|
-
return i(), k("div", Z, [
|
|
85
|
-
m("input", {
|
|
86
|
-
id: "cropper-file-input",
|
|
87
|
-
ref_key: "fileUploadEl",
|
|
88
|
-
ref: C,
|
|
89
|
-
accept: "image/*",
|
|
90
|
-
type: "file",
|
|
91
|
-
class: "hidden",
|
|
92
|
-
onChange: J
|
|
93
|
-
}, null, 544),
|
|
94
|
-
p.value ? (i(), r(a(Y), {
|
|
95
|
-
key: 0,
|
|
96
|
-
ref_key: "cropper",
|
|
97
|
-
ref: d,
|
|
98
|
-
class: "w-full h-[300px]",
|
|
99
|
-
src: p.value,
|
|
100
|
-
"resize-image": { wheel: !1 },
|
|
101
|
-
"background-class": "cropper-background",
|
|
102
|
-
"default-size": K,
|
|
103
|
-
onChange: G
|
|
104
|
-
}, null, 8, ["src"])) : (i(), k("img", {
|
|
105
|
-
key: 1,
|
|
106
|
-
class: "w-full",
|
|
107
|
-
src: n.img
|
|
108
|
-
}, null, 8, _)),
|
|
109
|
-
b.value ? (i(), k("div", ee, [
|
|
110
|
-
c(a(q), {
|
|
111
|
-
name: "no-image",
|
|
112
|
-
width: 100,
|
|
113
|
-
height: 100
|
|
114
|
-
})
|
|
115
|
-
])) : s("", !0),
|
|
116
|
-
m("div", le, [
|
|
117
|
-
p.value ? (i(), k(Q, { key: 0 }, [
|
|
118
|
-
c(a(h), {
|
|
119
|
-
variant: "secondary",
|
|
120
|
-
size: "small",
|
|
121
|
-
"left-icon": "backward",
|
|
122
|
-
"is-disabled": b.value,
|
|
123
|
-
onClick: e[0] || (e[0] = (t) => U(-90))
|
|
124
|
-
}, null, 8, ["is-disabled"]),
|
|
125
|
-
c(a(h), {
|
|
126
|
-
variant: "secondary",
|
|
127
|
-
size: "small",
|
|
128
|
-
"left-icon": "zoom-out",
|
|
129
|
-
"is-disabled": b.value,
|
|
130
|
-
onClick: e[1] || (e[1] = (t) => I(0.8))
|
|
131
|
-
}, null, 8, ["is-disabled"]),
|
|
132
|
-
c(a(h), {
|
|
133
|
-
variant: "secondary",
|
|
134
|
-
size: "small",
|
|
135
|
-
"left-icon": "zoom-in",
|
|
136
|
-
"is-disabled": b.value,
|
|
137
|
-
onClick: e[2] || (e[2] = (t) => I(1.2))
|
|
138
|
-
}, null, 8, ["is-disabled"]),
|
|
139
|
-
c(a(h), {
|
|
140
|
-
variant: "secondary",
|
|
141
|
-
size: "small",
|
|
142
|
-
"left-icon": "forward",
|
|
143
|
-
"is-disabled": b.value,
|
|
144
|
-
onClick: e[3] || (e[3] = (t) => U(90))
|
|
145
|
-
}, null, 8, ["is-disabled"])
|
|
146
|
-
], 64)) : s("", !0),
|
|
147
|
-
n.isReplaceImage ? (i(), r(a(h), {
|
|
148
|
-
key: 1,
|
|
149
|
-
class: "absolute right-0",
|
|
150
|
-
variant: "secondary",
|
|
151
|
-
size: "small",
|
|
152
|
-
label: "Replace image",
|
|
153
|
-
"left-icon": "refresh",
|
|
154
|
-
onClick: H
|
|
155
|
-
})) : s("", !0)
|
|
156
|
-
]),
|
|
157
|
-
m("div", te, [
|
|
158
|
-
(g = n.inputOptions) != null && g.includes("description") ? (i(), r(a(y), {
|
|
159
|
-
key: 0,
|
|
160
|
-
modelValue: o.value.description,
|
|
161
|
-
"onUpdate:modelValue": [
|
|
162
|
-
e[4] || (e[4] = (t) => o.value.description = t),
|
|
163
|
-
e[5] || (e[5] = (t) => v("description", t))
|
|
164
|
-
],
|
|
165
|
-
label: "Describe Image",
|
|
166
|
-
placeholder: ""
|
|
167
|
-
}, null, 8, ["modelValue"])) : s("", !0),
|
|
168
|
-
(R = n.inputOptions) != null && R.includes("link") ? (i(), r(a(y), {
|
|
169
|
-
key: 1,
|
|
170
|
-
modelValue: o.value.link,
|
|
171
|
-
"onUpdate:modelValue": [
|
|
172
|
-
e[6] || (e[6] = (t) => o.value.link = t),
|
|
173
|
-
e[7] || (e[7] = (t) => v("link", t))
|
|
174
|
-
],
|
|
175
|
-
placeholder: "https://hitpayapp.com",
|
|
176
|
-
label: "Link to"
|
|
177
|
-
}, null, 8, ["modelValue"])) : s("", !0),
|
|
178
|
-
m("div", null, [
|
|
179
|
-
(B = n.inputOptions) != null && B.includes("caption") ? (i(), r(a(w), {
|
|
180
|
-
key: 0,
|
|
181
|
-
modelValue: x.value,
|
|
182
|
-
"onUpdate:modelValue": e[8] || (e[8] = (t) => x.value = t),
|
|
183
|
-
label: "Caption",
|
|
184
|
-
class: "mb-4"
|
|
185
|
-
}, null, 8, ["modelValue"])) : s("", !0),
|
|
186
|
-
(S = n.inputOptions) != null && S.includes("caption") && x.value ? (i(), r(a(y), {
|
|
187
|
-
key: 1,
|
|
188
|
-
modelValue: o.value.caption,
|
|
189
|
-
"onUpdate:modelValue": [
|
|
190
|
-
e[9] || (e[9] = (t) => o.value.caption = t),
|
|
191
|
-
e[10] || (e[10] = (t) => v("caption", t))
|
|
192
|
-
],
|
|
193
|
-
class: "mb-4",
|
|
194
|
-
placeholder: ""
|
|
195
|
-
}, null, 8, ["modelValue"])) : s("", !0),
|
|
196
|
-
(j = n.inputOptions) != null && j.includes("caption") && x.value ? (i(), r(a(W), {
|
|
197
|
-
key: 2,
|
|
198
|
-
"model-value": o.value.caption_variant,
|
|
199
|
-
"group-name": "caption_variant",
|
|
200
|
-
alignment: "horizontal",
|
|
201
|
-
radio: [
|
|
202
|
-
{
|
|
203
|
-
value: "hover",
|
|
204
|
-
label: "Show on hover"
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
value: "bottom",
|
|
208
|
-
label: "Show on bottom"
|
|
209
|
-
}
|
|
210
|
-
],
|
|
211
|
-
label: "Caption position",
|
|
212
|
-
"onUpdate:modelValue": e[11] || (e[11] = (t) => v("caption_variant", t))
|
|
213
|
-
}, null, 8, ["model-value"])) : s("", !0)
|
|
214
|
-
]),
|
|
215
|
-
m("div", null, [
|
|
216
|
-
(E = n.inputOptions) != null && E.includes("new_tab") ? (i(), r(a(w), {
|
|
217
|
-
key: 0,
|
|
218
|
-
modelValue: L.value,
|
|
219
|
-
"onUpdate:modelValue": [
|
|
220
|
-
e[12] || (e[12] = (t) => L.value = t),
|
|
221
|
-
e[13] || (e[13] = (t) => v("new_tab", t))
|
|
222
|
-
],
|
|
223
|
-
label: "Open link in a new tab",
|
|
224
|
-
class: "mb-4"
|
|
225
|
-
}, null, 8, ["modelValue"])) : s("", !0),
|
|
226
|
-
(N = n.inputOptions) != null && N.includes("lightbox") ? (i(), k("div", ae, [
|
|
227
|
-
m("div", ie, [
|
|
228
|
-
(D = n.inputOptions) != null && D.includes("lightbox") ? (i(), r(a(w), {
|
|
229
|
-
key: 0,
|
|
230
|
-
modelValue: $.value,
|
|
231
|
-
"onUpdate:modelValue": [
|
|
232
|
-
e[14] || (e[14] = (t) => $.value = t),
|
|
233
|
-
e[15] || (e[15] = (t) => v("lightbox", t))
|
|
234
|
-
],
|
|
235
|
-
label: "Enable lightbox"
|
|
236
|
-
}, null, 8, ["modelValue"])) : s("", !0)
|
|
237
|
-
]),
|
|
238
|
-
c(a(X), {
|
|
239
|
-
key: "lightbox-cropper-tooltip",
|
|
240
|
-
trigger: "hover",
|
|
241
|
-
"is-popover": "",
|
|
242
|
-
"popper-options": { strategy: "fixed" },
|
|
243
|
-
position: "bottom",
|
|
244
|
-
distance: 10,
|
|
245
|
-
skidding: 0,
|
|
246
|
-
"popper-class": "bg-oc-bg-light min-w-[125px]"
|
|
247
|
-
}, {
|
|
248
|
-
popper: F(() => [...e[16] || (e[16] = [
|
|
249
|
-
m("div", { class: "text-oc-text-400 text-sm px-3 py-2 font-medium text-center" }, " Show lightbox when click the image ", -1)
|
|
250
|
-
])]),
|
|
251
|
-
default: F(() => [
|
|
252
|
-
c(a(q), {
|
|
253
|
-
name: "question-mark",
|
|
254
|
-
width: "16",
|
|
255
|
-
height: "16",
|
|
256
|
-
class: "text-oc-accent-1-500"
|
|
257
|
-
})
|
|
258
|
-
]),
|
|
259
|
-
_: 1
|
|
260
|
-
})
|
|
261
|
-
])) : s("", !0)
|
|
262
|
-
])
|
|
263
|
-
])
|
|
264
|
-
]);
|
|
265
|
-
};
|
|
266
|
-
}
|
|
267
|
-
};
|
|
268
|
-
export {
|
|
269
|
-
re as default
|
|
270
|
-
};
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { ref as n, onMounted as m, watch as y, createElementBlock as b, openBlock as i, createElementVNode as c, createBlock as v, renderSlot as d, Teleport as k, normalizeStyle as O, normalizeClass as h } from "vue";
|
|
2
|
-
import { createPopper as B } from "@popperjs/core";
|
|
3
|
-
const S = { class: "flex w-[inherit]" }, P = {
|
|
4
|
-
__name: "OcPopper",
|
|
5
|
-
props: {
|
|
6
|
-
placement: {
|
|
7
|
-
type: String,
|
|
8
|
-
required: !0
|
|
9
|
-
},
|
|
10
|
-
/**
|
|
11
|
-
* Options passed to the `popper` from `https://popper.js.org/docs/v2/modifiers/`
|
|
12
|
-
*/
|
|
13
|
-
popperOptions: {
|
|
14
|
-
type: Object
|
|
15
|
-
},
|
|
16
|
-
popperStyle: {
|
|
17
|
-
type: Object
|
|
18
|
-
},
|
|
19
|
-
skidding: {
|
|
20
|
-
type: Number,
|
|
21
|
-
default: 0
|
|
22
|
-
},
|
|
23
|
-
distance: {
|
|
24
|
-
type: [String, Number],
|
|
25
|
-
default: 5
|
|
26
|
-
},
|
|
27
|
-
isFlipEnabled: {
|
|
28
|
-
type: Boolean,
|
|
29
|
-
default: !0
|
|
30
|
-
},
|
|
31
|
-
popperClass: {
|
|
32
|
-
type: [String, Array, Object],
|
|
33
|
-
default: ""
|
|
34
|
-
},
|
|
35
|
-
isAttachToBody: {
|
|
36
|
-
type: Boolean,
|
|
37
|
-
default: !1
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
setup(r, { expose: u }) {
|
|
41
|
-
const a = n(), s = n(), o = n(), t = r, l = () => ({
|
|
42
|
-
placement: t.placement,
|
|
43
|
-
modifiers: [
|
|
44
|
-
{
|
|
45
|
-
name: "flip",
|
|
46
|
-
enabled: t.isFlipEnabled
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
name: "offset",
|
|
50
|
-
options: {
|
|
51
|
-
offset: [t.skidding, t.distance]
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
],
|
|
55
|
-
...t.popperOptions || []
|
|
56
|
-
}), f = (e) => {
|
|
57
|
-
var p;
|
|
58
|
-
return e && ((p = s.value) == null ? void 0 : p.contains(e));
|
|
59
|
-
};
|
|
60
|
-
return m(() => {
|
|
61
|
-
o.value = B(a.value, s.value, l()), setTimeout(() => {
|
|
62
|
-
var e;
|
|
63
|
-
return (e = o.value) == null ? void 0 : e.update();
|
|
64
|
-
}, 150);
|
|
65
|
-
}), y(
|
|
66
|
-
() => [t.popperOptions, t.placement, t.distance, t.skidding],
|
|
67
|
-
() => {
|
|
68
|
-
var e, p;
|
|
69
|
-
(e = o.value) == null || e.setOptions(l()), (p = o.value) == null || p.update();
|
|
70
|
-
},
|
|
71
|
-
{ deep: !0 }
|
|
72
|
-
), u({
|
|
73
|
-
popperInstance: o,
|
|
74
|
-
checkElementIsInsidePopper: f
|
|
75
|
-
}), (e, p) => (i(), b("div", S, [
|
|
76
|
-
c("div", {
|
|
77
|
-
ref_key: "reference",
|
|
78
|
-
ref: a,
|
|
79
|
-
class: "w-[inherit] flex"
|
|
80
|
-
}, [
|
|
81
|
-
d(e.$slots, "default")
|
|
82
|
-
], 512),
|
|
83
|
-
(i(), v(k, {
|
|
84
|
-
to: "body",
|
|
85
|
-
disabled: !r.isAttachToBody
|
|
86
|
-
}, [
|
|
87
|
-
c("div", {
|
|
88
|
-
ref_key: "popper",
|
|
89
|
-
ref: s,
|
|
90
|
-
class: h([r.popperClass, "z-[1007]"]),
|
|
91
|
-
style: O(r.popperStyle)
|
|
92
|
-
}, [
|
|
93
|
-
d(e.$slots, "popper")
|
|
94
|
-
], 6)
|
|
95
|
-
], 8, ["disabled"]))
|
|
96
|
-
]));
|
|
97
|
-
}
|
|
98
|
-
};
|
|
99
|
-
export {
|
|
100
|
-
P as _
|
|
101
|
-
};
|