@orchidui/core 1.12.0 → 1.15.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/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/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/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 +1 -1
- 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/MediaAndIcons/Icon/OcIcon.js +1 -1
- package/dist/{OcAccountSetupProgress-MAI2WW05.js → OcAccountSetupProgress-B4uzFaoB.js} +2 -2
- package/dist/{OcComplexCalendar-Be5nus0d.js → OcComplexCalendar-DxWM0SYd.js} +1 -1
- package/dist/{OcComplexDatePicker-B3GqIpKZ.js → OcComplexDatePicker-CXFAVUtu.js} +1 -1
- package/dist/OcCropper-CPDpNR8b.js +253 -0
- package/dist/OcDataTable-BqJ_ZiJw.js +590 -0
- package/dist/{OcDraggableList-BFprNkhf.js → OcDraggableList-JsGOKydT.js} +43 -40
- package/dist/{OcEmojiPicker-CqJbnrUb.js → OcEmojiPicker-Divgv9x8.js} +1 -1
- package/dist/{OcFilterForm-B01LDEe0.js → OcFilterForm-DJmlF_ll.js} +1 -1
- package/dist/OcFilterSearch-DzRZ1cL3.js +117 -0
- package/dist/{OcFilterSearchFor-Cp5A8V3q.js → OcFilterSearchFor-DY1_w7z6.js} +1 -1
- package/dist/{OcIcon-CJgBICxh.js → OcIcon-CSpRxnwd.js} +7 -7
- package/dist/OcModalCropper-DEl3YKMn.js +52 -0
- package/dist/{OcTimePicker-C9jC3YUX.js → OcTimePicker-BZmcK54E.js} +1 -1
- 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/SupportMenu/OcSupportMenu.js +1 -1
- package/dist/Overlay/Tooltip/OcTooltip.js +1 -1
- package/dist/Overlay/Whitelist/OcWhiteList.js +1 -1
- package/dist/{SubPlanCard-DWLm64NL.js → SubPlanCard-UAykUoeE.js} +2 -2
- package/dist/{ThumbnailSection-C3R6IBMF.js → ThumbnailSection-BuVQnm2c.js} +1 -1
- package/dist/{ThumbnailTheme-zfUW5cmt.js → ThumbnailTheme-Hg-iOlpO.js} +2 -2
- package/dist/{index-CyWu4Omf.js → index-BUCalaxC.js} +1766 -1713
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/dist/OcCropper-DdK__CEa.js +0 -229
- package/dist/OcDataTable-C-RPPItG.js +0 -578
- package/dist/OcFilterSearch-9FuOZOmQ.js +0 -69
- package/dist/OcModalCropper-DiCYfTmn.js +0 -46
package/dist/index.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import "vue";
|
2
|
-
import { V as r, ak as o, aW as t, a2 as i, a4 as n, as as p, _ as l, a5 as d, B as m, o as u, a as b, C as S, b as c, at as T, aG as g, aN as C, aw as x, ax as P, c as I, aP as f, v as h, aM as O, p as F, aH as k, aQ as v, ay as B, az as w, aR as A, a6 as H, T as L, L as D, R as M, a7 as _, aK as R, aJ as y, aL as E, w as G, u as N, l as U, a8 as V, ab as j, aa as z, ac as W, x as q, a3 as J, d as K, e as Q, m as X, y as Y, z as Z, A as $, aA as aa, aO as ea, t as sa, N as ra, aB as oa, D as ta, W as ia, k as na, E as pa, F as la, G as da, ae as ma, af as ua, H as ba, J as Sa, $ as ca, f as Ta, I as ga, ag as Ca, g as xa, h as Pa, i as Ia, ah as fa, q as ha, j as Oa, r as Fa, au as ka, am as va, ai as Ba, ap as wa, ao as Aa, al as Ha, an as La, aj as Da, s as Ma, S as _a, av as Ra, Y as ya, X as Ea, a9 as Ga, aU as Na, aq as Ua, aC as Va, ad as ja, K as za, O as Wa, P as qa, M as Ja, Q as Ka, Z as Qa, n as Xa, aT as Ya, aS as Za, aV as $a, aI as ae, aD as ee, U as se, a1 as re, a0 as oe, ar as te, aE as ie } from "./index-
|
2
|
+
import { V as r, ak as o, aW as t, a2 as i, a4 as n, as as p, _ as l, a5 as d, B as m, o as u, a as b, C as S, b as c, at as T, aG as g, aN as C, aw as x, ax as P, c as I, aP as f, v as h, aM as O, p as F, aH as k, aQ as v, ay as B, az as w, aR as A, a6 as H, T as L, L as D, R as M, a7 as _, aK as R, aJ as y, aL as E, w as G, u as N, l as U, a8 as V, ab as j, aa as z, ac as W, x as q, a3 as J, d as K, e as Q, m as X, y as Y, z as Z, A as $, aA as aa, aO as ea, t as sa, N as ra, aB as oa, D as ta, W as ia, k as na, E as pa, F as la, G as da, ae as ma, af as ua, H as ba, J as Sa, $ as ca, f as Ta, I as ga, ag as Ca, g as xa, h as Pa, i as Ia, ah as fa, q as ha, j as Oa, r as Fa, au as ka, am as va, ai as Ba, ap as wa, ao as Aa, al as Ha, an as La, aj as Da, s as Ma, S as _a, av as Ra, Y as ya, X as Ea, a9 as Ga, aU as Na, aq as Ua, aC as Va, ad as ja, K as za, O as Wa, P as qa, M as Ja, Q as Ka, Z as Qa, n as Xa, aT as Ya, aS as Za, aV as $a, aI as ae, aD as ee, U as se, a1 as re, a0 as oe, ar as te, aE as ie } from "./index-BUCalaxC.js";
|
3
3
|
import { _ as pe } from "./OcProgressBar-hiyC5XSc.js";
|
4
4
|
import { _ as de } from "./OcHorizontalProgressbar.vue_vue_type_script_setup_true_lang-4eVgPDi5.js";
|
5
5
|
import { _ as ue } from "./OcSwitchTabs-CYp676bj.js";
|
@@ -8,7 +8,7 @@ import { _ as Te } from "./OcSection-D_vO-DAP.js";
|
|
8
8
|
import { _ as Ce } from "./OcTag.vue_vue_type_script_setup_true_lang-D19lw-8Y.js";
|
9
9
|
import { T as Pe } from "./OcToggle-Cp5dJ5LN.js";
|
10
10
|
import { _ as fe } from "./OcAvatar-DeVm4Ck5.js";
|
11
|
-
import { _ as Oe } from "./OcIcon-
|
11
|
+
import { _ as Oe } from "./OcIcon-CSpRxnwd.js";
|
12
12
|
import { _ as ke } from "./OcPopper-Bc96YXbS.js";
|
13
13
|
import { _ as Be } from "./OcTheme-CWgrJh5Q.js";
|
14
14
|
export {
|
package/package.json
CHANGED
@@ -1,229 +0,0 @@
|
|
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, d as V, C as D, h as G, aD as H } from "./index-CyWu4Omf.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 = {
|
6
|
-
__name: "OcCropper",
|
7
|
-
props: {
|
8
|
-
inputOptions: Array,
|
9
|
-
inputOptionValues: Object,
|
10
|
-
img: String,
|
11
|
-
maxSize: [String, Number],
|
12
|
-
isReplaceImage: {
|
13
|
-
type: Boolean,
|
14
|
-
default: !0
|
15
|
-
}
|
16
|
-
},
|
17
|
-
emits: ["changeImage", "update:input-options"],
|
18
|
-
setup(i, { emit: E }) {
|
19
|
-
const v = i, h = E, k = p(), w = p(), s = p(""), C = p(!1), a = p(v.inputOptionValues ?? {});
|
20
|
-
S(
|
21
|
-
() => v.inputOptionValues,
|
22
|
-
() => {
|
23
|
-
a.value = v.inputOptionValues;
|
24
|
-
},
|
25
|
-
{
|
26
|
-
deep: !0
|
27
|
-
}
|
28
|
-
), S(
|
29
|
-
() => v.img,
|
30
|
-
(l) => {
|
31
|
-
l && F(() => {
|
32
|
-
try {
|
33
|
-
const e = new URL(l);
|
34
|
-
e.protocol === "http:" || e.protocol === "https:" ? s.value = `${l}?${Date.now()}` : s.value = l;
|
35
|
-
} catch {
|
36
|
-
s.value = l;
|
37
|
-
}
|
38
|
-
});
|
39
|
-
},
|
40
|
-
{ immediate: !0 }
|
41
|
-
);
|
42
|
-
const N = () => {
|
43
|
-
if (s.value && C.value) {
|
44
|
-
const { canvas: l } = k.value.getResult();
|
45
|
-
h("changeImage", l.toDataURL());
|
46
|
-
}
|
47
|
-
C.value = !0;
|
48
|
-
}, O = (l) => {
|
49
|
-
var e;
|
50
|
-
return (e = k.value) == null ? void 0 : e.rotate(l);
|
51
|
-
}, z = (l) => {
|
52
|
-
var e;
|
53
|
-
return (e = k.value) == null ? void 0 : e.zoom(l);
|
54
|
-
}, j = () => {
|
55
|
-
w.value.click();
|
56
|
-
}, T = (l) => {
|
57
|
-
if (l.target.files[0] / (1024 * 1024) > +v.maxSize)
|
58
|
-
return l.preventDefault(), !1;
|
59
|
-
s.value = URL.createObjectURL(l.target.files[0]);
|
60
|
-
}, q = ({ imageSize: l, visibleArea: e }) => ({
|
61
|
-
width: (e || l).width,
|
62
|
-
height: (e || l).height
|
63
|
-
}), f = (l, e) => {
|
64
|
-
let d = a.value;
|
65
|
-
d[l] = e, h("update:input-options", d);
|
66
|
-
}, b = p(!!a.value.caption), U = p(!!a.value.lightbox);
|
67
|
-
return (l, e) => {
|
68
|
-
var d, L, $, I, R, B;
|
69
|
-
return n(), x("div", M, [
|
70
|
-
c("input", {
|
71
|
-
id: "cropper-file-input",
|
72
|
-
ref_key: "fileUploadEl",
|
73
|
-
ref: w,
|
74
|
-
accept: "image/*",
|
75
|
-
type: "file",
|
76
|
-
class: "hidden",
|
77
|
-
onChange: T
|
78
|
-
}, null, 544),
|
79
|
-
s.value ? (n(), u(o(J), {
|
80
|
-
key: 0,
|
81
|
-
ref_key: "cropper",
|
82
|
-
ref: k,
|
83
|
-
class: "w-full h-[300px]",
|
84
|
-
src: s.value,
|
85
|
-
"resize-image": { wheel: !1 },
|
86
|
-
"background-class": "cropper-background",
|
87
|
-
"default-size": q,
|
88
|
-
onChange: N
|
89
|
-
}, null, 8, ["src"])) : (n(), x("img", {
|
90
|
-
key: 1,
|
91
|
-
class: "w-full",
|
92
|
-
src: i.img
|
93
|
-
}, null, 8, P)),
|
94
|
-
c("div", Q, [
|
95
|
-
s.value ? (n(), x(A, { key: 0 }, [
|
96
|
-
m(o(g), {
|
97
|
-
variant: "secondary",
|
98
|
-
size: "small",
|
99
|
-
"left-icon": "backward",
|
100
|
-
onClick: e[0] || (e[0] = (t) => O(-90))
|
101
|
-
}),
|
102
|
-
m(o(g), {
|
103
|
-
variant: "secondary",
|
104
|
-
size: "small",
|
105
|
-
"left-icon": "zoom-out",
|
106
|
-
onClick: e[1] || (e[1] = (t) => z(0.8))
|
107
|
-
}),
|
108
|
-
m(o(g), {
|
109
|
-
variant: "secondary",
|
110
|
-
size: "small",
|
111
|
-
"left-icon": "zoom-in",
|
112
|
-
onClick: e[2] || (e[2] = (t) => z(1.2))
|
113
|
-
}),
|
114
|
-
m(o(g), {
|
115
|
-
variant: "secondary",
|
116
|
-
size: "small",
|
117
|
-
"left-icon": "forward",
|
118
|
-
onClick: e[3] || (e[3] = (t) => O(90))
|
119
|
-
})
|
120
|
-
], 64)) : r("", !0),
|
121
|
-
i.isReplaceImage ? (n(), u(o(g), {
|
122
|
-
key: 1,
|
123
|
-
class: "absolute right-0",
|
124
|
-
variant: "secondary",
|
125
|
-
size: "small",
|
126
|
-
label: "Replace image",
|
127
|
-
"left-icon": "refresh",
|
128
|
-
onClick: j
|
129
|
-
})) : r("", !0)
|
130
|
-
]),
|
131
|
-
c("div", W, [
|
132
|
-
(d = i.inputOptions) != null && d.includes("description") ? (n(), u(o(V), {
|
133
|
-
key: 0,
|
134
|
-
modelValue: a.value.description,
|
135
|
-
"onUpdate:modelValue": [
|
136
|
-
e[4] || (e[4] = (t) => a.value.description = t),
|
137
|
-
e[5] || (e[5] = (t) => f("description", t))
|
138
|
-
],
|
139
|
-
label: "Describe Image",
|
140
|
-
placeholder: ""
|
141
|
-
}, null, 8, ["modelValue"])) : r("", !0),
|
142
|
-
(L = i.inputOptions) != null && L.includes("link") ? (n(), u(o(V), {
|
143
|
-
key: 1,
|
144
|
-
modelValue: a.value.link,
|
145
|
-
"onUpdate:modelValue": [
|
146
|
-
e[6] || (e[6] = (t) => a.value.link = t),
|
147
|
-
e[7] || (e[7] = (t) => f("link", t))
|
148
|
-
],
|
149
|
-
placeholder: "https://hitpayapp.com",
|
150
|
-
label: "Link to"
|
151
|
-
}, null, 8, ["modelValue"])) : r("", !0),
|
152
|
-
c("div", null, [
|
153
|
-
($ = i.inputOptions) != null && $.includes("caption") ? (n(), u(o(D), {
|
154
|
-
key: 0,
|
155
|
-
modelValue: b.value,
|
156
|
-
"onUpdate:modelValue": e[8] || (e[8] = (t) => b.value = t),
|
157
|
-
label: "Caption",
|
158
|
-
class: "mb-4"
|
159
|
-
}, null, 8, ["modelValue"])) : r("", !0),
|
160
|
-
(I = i.inputOptions) != null && I.includes("caption") && b.value ? (n(), u(o(V), {
|
161
|
-
key: 1,
|
162
|
-
modelValue: a.value.caption,
|
163
|
-
"onUpdate:modelValue": [
|
164
|
-
e[9] || (e[9] = (t) => a.value.caption = t),
|
165
|
-
e[10] || (e[10] = (t) => f("caption", t))
|
166
|
-
],
|
167
|
-
class: "mb-4",
|
168
|
-
placeholder: ""
|
169
|
-
}, null, 8, ["modelValue"])) : r("", !0),
|
170
|
-
(R = i.inputOptions) != null && R.includes("caption") && b.value ? (n(), u(o(G), {
|
171
|
-
key: 2,
|
172
|
-
"model-value": a.value.caption_variant,
|
173
|
-
"group-name": "caption_variant",
|
174
|
-
alignment: "horizontal",
|
175
|
-
radio: [
|
176
|
-
{
|
177
|
-
value: "hover",
|
178
|
-
label: "Show on hover"
|
179
|
-
},
|
180
|
-
{
|
181
|
-
value: "bottom",
|
182
|
-
label: "Show on bottom"
|
183
|
-
}
|
184
|
-
],
|
185
|
-
label: "Caption position",
|
186
|
-
"onUpdate:modelValue": e[11] || (e[11] = (t) => f("caption_variant", t))
|
187
|
-
}, null, 8, ["model-value"])) : r("", !0)
|
188
|
-
]),
|
189
|
-
c("div", null, [
|
190
|
-
(B = i.inputOptions) != null && B.includes("lightbox") ? (n(), u(o(D), {
|
191
|
-
key: 0,
|
192
|
-
modelValue: U.value,
|
193
|
-
"onUpdate:modelValue": [
|
194
|
-
e[12] || (e[12] = (t) => U.value = t),
|
195
|
-
e[13] || (e[13] = (t) => f("lightbox", t))
|
196
|
-
],
|
197
|
-
label: "Lightbox"
|
198
|
-
}, {
|
199
|
-
after: y(() => [
|
200
|
-
m(o(H), {
|
201
|
-
position: "bottom",
|
202
|
-
distance: 10,
|
203
|
-
"popper-class": "bg-oc-bg-light min-w-[125px]"
|
204
|
-
}, {
|
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)
|
207
|
-
])),
|
208
|
-
default: y(() => [
|
209
|
-
m(o(K), {
|
210
|
-
name: "question-mark",
|
211
|
-
width: "16",
|
212
|
-
height: "16",
|
213
|
-
class: "text-oc-accent-1-500"
|
214
|
-
})
|
215
|
-
]),
|
216
|
-
_: 1
|
217
|
-
})
|
218
|
-
]),
|
219
|
-
_: 1
|
220
|
-
}, 8, ["modelValue"])) : r("", !0)
|
221
|
-
])
|
222
|
-
])
|
223
|
-
]);
|
224
|
-
};
|
225
|
-
}
|
226
|
-
};
|
227
|
-
export {
|
228
|
-
ee as default
|
229
|
-
};
|