@orchidui/core 1.97.0 → 1.99.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/AccountVerificationContent/OcAccountVerificationContent.js +1 -1
- 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/OnboardingRecap/OcOnboardingRecap.js +1 -1
- package/dist/DataDisplay/Overview/OcOverview.js +1 -1
- package/dist/DataDisplay/Pagination/OcPagination.js +1 -1
- package/dist/DataDisplay/RowItemData/OcRowItemData.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/OnboardingProduct/OnboardingProductOption.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/Checklist/OcChecklist.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 +9 -10
- 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 +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-BhlQmNP6.js → OcAccountSetupProgress-C9rnZvfj.js} +2 -2
- package/dist/{OcComplexCalendar-DWtfgyTm.js → OcComplexCalendar-C2XucS7C.js} +1 -1
- package/dist/{OcComplexDatePicker-CL42o8eT.js → OcComplexDatePicker-DLV-q1BB.js} +1 -1
- package/dist/{OcCropper-CLC1w_np.js → OcCropper-2-hX5LQZ.js} +2 -2
- package/dist/{OcDataTable-DrUmqWhQ.js → OcDataTable-CCM7iLFd.js} +170 -160
- package/dist/{OcDraggableList-BXEoN9kd.js → OcDraggableList-CA-wRMAh.js} +11 -11
- package/dist/{OcEmojiPicker-CFEFdnO5.js → OcEmojiPicker-DFSKdC63.js} +13 -13
- package/dist/{OcFilterForm-BMEwZQ3Q.js → OcFilterForm-PI_10uB7.js} +1 -1
- package/dist/{OcFilterSearch-NnFSYwj9.js → OcFilterSearch-9_N39knk.js} +14 -14
- package/dist/{OcFilterSearchFor-Db4MQyBv.js → OcFilterSearchFor-DnQV0beL.js} +3 -3
- package/dist/OcIcon-CUKFUeB7.js +97 -0
- package/dist/{OcModalCropper-9JmjpxIo.js → OcModalCropper-DLQWHv5c.js} +2 -2
- package/dist/{OcTimePicker-CEvUnEe0.js → OcTimePicker-CFMFwKw-.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-tS38P14V.js → SubPlanCard-DJaPa_xX.js} +2 -2
- package/dist/{ThumbnailSection-PbsT2ZFh.js → ThumbnailSection-C9OvA18j.js} +1 -1
- package/dist/{ThumbnailTheme-BDLUnh6F.js → ThumbnailTheme-9hRpzTqQ.js} +2 -2
- package/dist/core.css +1 -1
- package/dist/{index-BWAOVIQ_.js → index-BFI9sA-S.js} +4429 -4527
- package/dist/index.js +61 -62
- package/package.json +1 -1
- package/dist/OcIcon-DuLjS3TV.js +0 -60
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref as w, createBlock as y, openBlock as c, unref as l, withCtx as r, createElementBlock as b, Fragment as C, renderList as $, normalizeClass as s, createElementVNode as o, createCommentVNode as m, renderSlot as u, toDisplayString as x, createVNode as f } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { _ as g } from "./OcIcon-
|
|
4
|
-
const
|
|
2
|
+
import { aP as D, aL as S, aG as B } from "./index-BFI9sA-S.js";
|
|
3
|
+
import { _ as g } from "./OcIcon-CUKFUeB7.js";
|
|
4
|
+
const M = ["onMouseleave", "onMouseover", "onClick"], L = { class: "flex justify-evenly w-full" }, N = { class: "flex w-full" }, U = { class: "ml-4 flex w-full" }, E = { class: "flex items-center flex-wrap w-full" }, O = ["href"], W = { class: "min-w-[120px]" }, j = { class: "truncate w-[200px]" }, z = { class: "flex items-center ml-4" }, A = { class: "flex w-full" }, P = {
|
|
5
5
|
__name: "OcDraggableList",
|
|
6
6
|
props: {
|
|
7
7
|
/** v-model — array of list item objects. Reordering updates this array. */
|
|
@@ -113,7 +113,7 @@ const B = ["onMouseleave", "onMouseover", "onClick"], L = { class: "flex justify
|
|
|
113
113
|
"popper-class": "bg-oc-bg-light text-oc-text-500 p-4 rounded"
|
|
114
114
|
}, {
|
|
115
115
|
popper: r(() => [
|
|
116
|
-
o("div",
|
|
116
|
+
o("div", W, x(e[t.linkKey]), 1)
|
|
117
117
|
]),
|
|
118
118
|
default: r(() => [
|
|
119
119
|
f(l(g), {
|
|
@@ -125,15 +125,15 @@ const B = ["onMouseleave", "onMouseover", "onClick"], L = { class: "flex justify
|
|
|
125
125
|
]),
|
|
126
126
|
_: 2
|
|
127
127
|
}, 1024),
|
|
128
|
-
o("span",
|
|
129
|
-
], 8,
|
|
128
|
+
o("span", j, x(e[t.linkKey]), 1)
|
|
129
|
+
], 8, O)) : m("", !0)
|
|
130
130
|
])
|
|
131
131
|
])
|
|
132
132
|
]),
|
|
133
|
-
o("div",
|
|
133
|
+
o("div", z, [
|
|
134
134
|
u(a.$slots, "before-action", { item: e }),
|
|
135
135
|
u(a.$slots, "action", { item: e }, () => [
|
|
136
|
-
f(l(
|
|
136
|
+
f(l(B), {
|
|
137
137
|
modelValue: v.value[e.id],
|
|
138
138
|
"onUpdate:modelValue": (h) => v.value[e.id] = h,
|
|
139
139
|
placement: "bottom-end",
|
|
@@ -163,18 +163,18 @@ const B = ["onMouseleave", "onMouseover", "onClick"], L = { class: "flex justify
|
|
|
163
163
|
])
|
|
164
164
|
])
|
|
165
165
|
]),
|
|
166
|
-
o("div",
|
|
166
|
+
o("div", A, [
|
|
167
167
|
u(a.$slots, "content", {
|
|
168
168
|
item: e,
|
|
169
169
|
index: k
|
|
170
170
|
})
|
|
171
171
|
])
|
|
172
|
-
], 42,
|
|
172
|
+
], 42, M))), 128))
|
|
173
173
|
]),
|
|
174
174
|
_: 3
|
|
175
175
|
}, 8, ["model-value"]));
|
|
176
176
|
}
|
|
177
177
|
};
|
|
178
178
|
export {
|
|
179
|
-
|
|
179
|
+
P as default
|
|
180
180
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ref as m, computed as p, createElementBlock as l, openBlock as s, createVNode as f, createBlock as N, createCommentVNode as z, unref as c, withCtx as v, createElementVNode as n, normalizeClass as T, Fragment as V, renderList as k, createTextVNode as C } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { EMOJI_LIST as a, EMOJI_CATEGORIES as
|
|
4
|
-
import { _ as
|
|
5
|
-
const
|
|
2
|
+
import { aG as U, d as G, B as b } from "./index-BFI9sA-S.js";
|
|
3
|
+
import { EMOJI_LIST as a, EMOJI_CATEGORIES as J } from "./Form/EmojiPicker/conts/emoji.js";
|
|
4
|
+
import { _ as P } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
+
const A = { class: "flex items-center justify-center rounded bg-oc-bg-dark h-[140px] relative w-full z-50" }, F = ["innerHTML"], R = { class: "p-4 w-[340px]" }, q = { class: "bg-oc-bg-dark p-4 rounded flex items-center justify-center" }, K = ["innerHTML"], Q = { class: "pt-3 pb-4" }, W = ["id", "innerHTML", "onClick"], X = {
|
|
6
6
|
key: 1,
|
|
7
7
|
class: "text-oc-text-400 text-center p-3"
|
|
8
8
|
}, Y = { class: "border-t border-b py-3 grid grid-cols-9 gap-3" }, Z = ["innerHTML", "onClick"], ee = { class: "grid grid-cols-2 gap-5 mt-6" }, te = {
|
|
@@ -23,16 +23,16 @@ const F = { class: "flex items-center justify-center rounded bg-oc-bg-dark h-[14
|
|
|
23
23
|
() => i.value ? a[i.value] : a.sunglasses
|
|
24
24
|
), y = p(
|
|
25
25
|
() => Object.entries(a).filter(([t]) => t.includes(u.value))
|
|
26
|
-
), _ = p(() => Object.entries(
|
|
26
|
+
), _ = p(() => Object.entries(J)), O = (t) => {
|
|
27
27
|
i.value = t;
|
|
28
28
|
}, j = () => {
|
|
29
29
|
d.value = !1, L("update:modelValue", a[i.value]);
|
|
30
30
|
}, B = () => {
|
|
31
31
|
d.value = !1, i.value = g.modelValue;
|
|
32
|
-
},
|
|
32
|
+
}, I = () => {
|
|
33
33
|
const t = Object.keys(a), e = Math.round(Math.random() * t.length);
|
|
34
34
|
i.value = t[e], j();
|
|
35
|
-
},
|
|
35
|
+
}, H = (t) => {
|
|
36
36
|
t && (u.value = "");
|
|
37
37
|
}, S = (t) => {
|
|
38
38
|
const e = document.getElementById(`emoji-${t}`).offsetTop;
|
|
@@ -43,12 +43,12 @@ const F = { class: "flex items-center justify-center rounded bg-oc-bg-dark h-[14
|
|
|
43
43
|
t.target.scrollTop >= o - 20 && (h.value = e);
|
|
44
44
|
});
|
|
45
45
|
};
|
|
46
|
-
return (t, e) => (s(), l("div",
|
|
46
|
+
return (t, e) => (s(), l("div", A, [
|
|
47
47
|
f(c(U), {
|
|
48
48
|
modelValue: d.value,
|
|
49
49
|
"onUpdate:modelValue": [
|
|
50
50
|
e[1] || (e[1] = (o) => d.value = o),
|
|
51
|
-
|
|
51
|
+
H
|
|
52
52
|
],
|
|
53
53
|
"max-menu-height": 600,
|
|
54
54
|
class: "!w-auto z-50",
|
|
@@ -72,7 +72,7 @@ const F = { class: "flex items-center justify-center rounded bg-oc-bg-dark h-[14
|
|
|
72
72
|
}, null, 8, K)
|
|
73
73
|
]),
|
|
74
74
|
n("div", Q, [
|
|
75
|
-
f(c(
|
|
75
|
+
f(c(G), {
|
|
76
76
|
modelValue: u.value,
|
|
77
77
|
"onUpdate:modelValue": e[0] || (e[0] = (o) => u.value = o),
|
|
78
78
|
placeholder: "Search",
|
|
@@ -128,7 +128,7 @@ const F = { class: "flex items-center justify-center rounded bg-oc-bg-dark h-[14
|
|
|
128
128
|
class: T(["flex items-center justify-center w-12 h-12 text-[40px] transition rounded", {
|
|
129
129
|
"cursor-pointer hover:bg-oc-gray-200": !r.isDisabled
|
|
130
130
|
}])
|
|
131
|
-
}, null, 10,
|
|
131
|
+
}, null, 10, F)
|
|
132
132
|
]),
|
|
133
133
|
_: 1
|
|
134
134
|
}, 8, ["modelValue", "popper-options", "is-disabled"]),
|
|
@@ -137,11 +137,11 @@ const F = { class: "flex items-center justify-center rounded bg-oc-bg-dark h-[14
|
|
|
137
137
|
"left-icon": "shuffle",
|
|
138
138
|
variant: "secondary",
|
|
139
139
|
class: "absolute top-5 right-5",
|
|
140
|
-
onClick:
|
|
140
|
+
onClick: I
|
|
141
141
|
}))
|
|
142
142
|
]));
|
|
143
143
|
}
|
|
144
|
-
}, ie = /* @__PURE__ */
|
|
144
|
+
}, ie = /* @__PURE__ */ P(te, [["__scopeId", "data-v-6a3c86cb"]]);
|
|
145
145
|
export {
|
|
146
146
|
ie as default
|
|
147
147
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as r, computed as c, onMounted as B, createElementBlock as k, openBlock as O, renderSlot as $, createElementVNode as f, createVNode as u, unref as i } from "vue";
|
|
2
|
-
import { t as C, B as m } from "./index-
|
|
2
|
+
import { t as C, B as m } from "./index-BFI9sA-S.js";
|
|
3
3
|
const w = { class: "flex w-[326px] flex-col" }, A = { class: "p-5" }, E = { class: "sticky bottom-0 flex gap-x-5 bg-oc-bg-light px-5 pb-5 pt-3" }, N = {
|
|
4
4
|
__name: "OcFilterForm",
|
|
5
5
|
props: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ref as u, computed as
|
|
2
|
-
import { d as
|
|
3
|
-
import { _ as q } from "./OcIcon-
|
|
4
|
-
const A = { class: "flex gap-x-4" },
|
|
1
|
+
import { ref as u, computed as K, createElementBlock as d, openBlock as s, Fragment as p, createElementVNode as r, createCommentVNode as f, normalizeClass as O, createVNode as m, unref as c, withKeys as N, createSlots as Q, withCtx as h, toDisplayString as D, renderList as E, createBlock as S, nextTick as F } from "vue";
|
|
2
|
+
import { d as I, aG as U, aH as j, B as w } from "./index-BFI9sA-S.js";
|
|
3
|
+
import { _ as q } from "./OcIcon-CUKFUeB7.js";
|
|
4
|
+
const A = { class: "flex gap-x-4" }, G = { class: "flex gap-x-2 items-center pl-2 text-oc-text-400 font-medium text-sm" }, H = { class: "p-2 flex flex-col" }, P = {
|
|
5
5
|
__name: "OcFilterSearch",
|
|
6
6
|
props: {
|
|
7
7
|
/** Show the search bar permanently (no expand/collapse toggle). */
|
|
@@ -20,8 +20,8 @@ const A = { class: "flex gap-x-4" }, H = { class: "flex gap-x-2 items-center pl-
|
|
|
20
20
|
"change-search-key": []
|
|
21
21
|
},
|
|
22
22
|
setup(a, { emit: C }) {
|
|
23
|
-
const o = C, y = a, l = u(!1), t = u(""), v = u(!1), g = u(), V =
|
|
24
|
-
l.value = !0, o("toggle", l.value), await
|
|
23
|
+
const o = C, y = a, l = u(!1), t = u(""), v = u(!1), g = u(), V = K(() => y.searchOptions.find((i) => i.value === y.selectedOption)), B = async () => {
|
|
24
|
+
l.value = !0, o("toggle", l.value), await F(), g.value.focus();
|
|
25
25
|
}, $ = (i) => {
|
|
26
26
|
o("change-search-key", i), v.value = !1;
|
|
27
27
|
}, b = () => {
|
|
@@ -36,7 +36,7 @@ const A = { class: "flex gap-x-4" }, H = { class: "flex gap-x-2 items-center pl-
|
|
|
36
36
|
class: O(["w-full", l.value || a.isSearchOnly ? "" : "absolute max-w-0 overflow-hidden"])
|
|
37
37
|
}, [
|
|
38
38
|
r("div", A, [
|
|
39
|
-
m(c(
|
|
39
|
+
m(c(I), {
|
|
40
40
|
ref_key: "searchInput",
|
|
41
41
|
ref: g,
|
|
42
42
|
modelValue: t.value,
|
|
@@ -46,8 +46,8 @@ const A = { class: "flex gap-x-4" }, H = { class: "flex gap-x-2 items-center pl-
|
|
|
46
46
|
"has-leading-separator": !a.isSearchOnly,
|
|
47
47
|
"input-class": a.isSearchOnly ? "!pr-2" : "!h-[28px]",
|
|
48
48
|
icon: (k = a.searchOptions) != null && k.length ? "" : "search",
|
|
49
|
-
onKeyup: n[2] || (n[2] =
|
|
50
|
-
},
|
|
49
|
+
onKeyup: n[2] || (n[2] = N((e) => i.$emit("addQuery", t.value), ["enter"]))
|
|
50
|
+
}, Q({ _: 2 }, [
|
|
51
51
|
(x = a.searchOptions) != null && x.length ? {
|
|
52
52
|
name: "trailing",
|
|
53
53
|
fn: h(() => [
|
|
@@ -58,21 +58,21 @@ const A = { class: "flex gap-x-4" }, H = { class: "flex gap-x-2 items-center pl-
|
|
|
58
58
|
skidding: -8
|
|
59
59
|
}, {
|
|
60
60
|
menu: h(() => [
|
|
61
|
-
r("div",
|
|
62
|
-
(s(!0), d(p, null,
|
|
61
|
+
r("div", H, [
|
|
62
|
+
(s(!0), d(p, null, E(a.searchOptions, (e) => (s(), S(c(j), {
|
|
63
63
|
key: e.value,
|
|
64
64
|
class: "text-sm",
|
|
65
65
|
text: e.label,
|
|
66
66
|
active: e.value === a.selectedOption,
|
|
67
|
-
onClick: (
|
|
67
|
+
onClick: (L) => $(e.value)
|
|
68
68
|
}, null, 8, ["text", "active", "onClick"]))), 128))
|
|
69
69
|
])
|
|
70
70
|
]),
|
|
71
71
|
default: h(() => {
|
|
72
72
|
var e;
|
|
73
73
|
return [
|
|
74
|
-
r("div",
|
|
75
|
-
r("span", null,
|
|
74
|
+
r("div", G, [
|
|
75
|
+
r("span", null, D((e = V.value) == null ? void 0 : e.label), 1),
|
|
76
76
|
m(c(q), {
|
|
77
77
|
name: "chevron-down",
|
|
78
78
|
width: "14",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed as h, createBlock as c, createCommentVNode as k, openBlock as a, unref as o, withCtx as y, createElementVNode as f, createElementBlock as v, createVNode as F, Fragment as p, renderList as b } from "vue";
|
|
2
|
-
import { T as $,
|
|
3
|
-
const w = { class: "flex gap-1 items-center normal-case flex-wrap" },
|
|
2
|
+
import { T as $, aB as m } from "./index-BFI9sA-S.js";
|
|
3
|
+
const w = { class: "flex gap-1 items-center normal-case flex-wrap" }, E = {
|
|
4
4
|
__name: "OcFilterSearchFor",
|
|
5
5
|
props: {
|
|
6
6
|
/** Applied filter chips. Array of `{ name, label, multiNames? }` objects from `formatFilterDisplay`. */
|
|
@@ -76,5 +76,5 @@ const w = { class: "flex gap-1 items-center normal-case flex-wrap" }, N = {
|
|
|
76
76
|
}
|
|
77
77
|
};
|
|
78
78
|
export {
|
|
79
|
-
|
|
79
|
+
E as default
|
|
80
80
|
};
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { ref as p, onMounted as $, nextTick as S, onUnmounted as _, watch as h, createElementBlock as C, openBlock as I } from "vue";
|
|
2
|
+
const b = ["width", "height", "viewBox"], y = {
|
|
3
|
+
__name: "OcIcon",
|
|
4
|
+
props: {
|
|
5
|
+
/** Base URL path where SVG icon files are served from. */
|
|
6
|
+
path: {
|
|
7
|
+
type: String,
|
|
8
|
+
default: "/icons/orchidui"
|
|
9
|
+
},
|
|
10
|
+
/** Icon file name (without `.svg` extension). Fetched from `{path}/{name}.svg`. */
|
|
11
|
+
name: {
|
|
12
|
+
type: String,
|
|
13
|
+
required: !0
|
|
14
|
+
},
|
|
15
|
+
/** Width of the rendered SVG in pixels. */
|
|
16
|
+
width: {
|
|
17
|
+
type: [String, Number],
|
|
18
|
+
default: "24"
|
|
19
|
+
},
|
|
20
|
+
/** Height of the rendered SVG in pixels. */
|
|
21
|
+
height: {
|
|
22
|
+
type: [String, Number],
|
|
23
|
+
default: "24"
|
|
24
|
+
},
|
|
25
|
+
/** Fill value applied to the SVG root. Use "none" for stroke-based icons. */
|
|
26
|
+
fill: {
|
|
27
|
+
type: String,
|
|
28
|
+
default: "currentColor"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
setup(w) {
|
|
32
|
+
const n = w, i = p(null), g = Math.random().toString(36).slice(2, 8);
|
|
33
|
+
let l = null;
|
|
34
|
+
const m = (e) => /^[a-zA-Z0-9#(),.\s%_-]+$/.test(e) ? e : "currentColor", v = (e) => e.replace(/[^a-zA-Z0-9_/-]/g, ""), f = (e) => {
|
|
35
|
+
const t = /* @__PURE__ */ new Set(), c = /\bid="([^"]+)"/g;
|
|
36
|
+
let r;
|
|
37
|
+
for (; (r = c.exec(e)) !== null; )
|
|
38
|
+
t.add(r[1]);
|
|
39
|
+
let o = e;
|
|
40
|
+
for (const s of t) {
|
|
41
|
+
const u = `oc-${n.name}-${g}-${s}`;
|
|
42
|
+
o = o.replaceAll(`id="${s}"`, `id="${u}"`), o = o.replaceAll(`url(#${s})`, `url(#${u})`), o = o.replaceAll(`href="#${s}"`, `href="#${u}"`);
|
|
43
|
+
}
|
|
44
|
+
return o;
|
|
45
|
+
}, d = (e, t = !0) => {
|
|
46
|
+
const c = m(n.fill);
|
|
47
|
+
if (t) {
|
|
48
|
+
const r = document.createElement("div");
|
|
49
|
+
r.innerHTML = e, r.querySelector("svg") && (r.querySelector("svg").removeAttribute("id"), r.querySelector("svg").removeAttribute("width"), r.querySelector("svg").removeAttribute("height"), r.querySelector("svg").setAttribute("fill", "currentColor"), window.ORCHID_ICONS ? window.ORCHID_ICONS[n.name] = r.innerHTML : window.ORCHID_ICONS = {
|
|
50
|
+
[n.name]: r.innerHTML
|
|
51
|
+
}, i.value && (i.value.innerHTML = f(
|
|
52
|
+
r.innerHTML.replace(/(<svg\b[^>]*)\bfill="[^"]*"/, `$1fill="${c}"`)
|
|
53
|
+
))), r.remove();
|
|
54
|
+
} else i.value && (i.value.innerHTML = f(
|
|
55
|
+
e.replace(/(<svg\b[^>]*)\bfill="[^"]*"/, `$1fill="${c}"`)
|
|
56
|
+
));
|
|
57
|
+
}, a = () => {
|
|
58
|
+
const e = v(n.name);
|
|
59
|
+
if (e) {
|
|
60
|
+
if (window.ORCHID_ICONS && window.ORCHID_ICONS[e]) {
|
|
61
|
+
d(window.ORCHID_ICONS[e], !1);
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
l && l.abort(), l = new AbortController(), fetch(`${n.path}/${e}.svg`, { signal: l.signal }).then((t) => t.status === 200 ? t.text() : "").then((t) => {
|
|
65
|
+
t && t.includes("<svg") && i.value && d(t, !0);
|
|
66
|
+
}).catch((t) => {
|
|
67
|
+
t.name !== "AbortError" && console.error(`Icon ${e} not found`);
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
return $(async () => {
|
|
72
|
+
await S(), i.value && a();
|
|
73
|
+
}), _(() => {
|
|
74
|
+
l && l.abort();
|
|
75
|
+
}), h(
|
|
76
|
+
() => n.name,
|
|
77
|
+
() => {
|
|
78
|
+
i.value && a();
|
|
79
|
+
}
|
|
80
|
+
), h(
|
|
81
|
+
() => n.fill,
|
|
82
|
+
() => {
|
|
83
|
+
i.value && a();
|
|
84
|
+
}
|
|
85
|
+
), (e, t) => (I(), C("svg", {
|
|
86
|
+
ref_key: "iconRef",
|
|
87
|
+
ref: i,
|
|
88
|
+
width: `${n.width}px`,
|
|
89
|
+
height: `${n.height}px`,
|
|
90
|
+
viewBox: `0 0 ${n.width} ${n.height}`,
|
|
91
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
92
|
+
}, null, 8, b));
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
export {
|
|
96
|
+
y as _
|
|
97
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as o, createBlock as v, openBlock as d, unref as r, withCtx as x, createVNode as O } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import k from "./OcCropper-
|
|
2
|
+
import { aI as b } from "./index-BFI9sA-S.js";
|
|
3
|
+
import k from "./OcCropper-2-hX5LQZ.js";
|
|
4
4
|
const h = {
|
|
5
5
|
__name: "OcModalCropper",
|
|
6
6
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as n, watch as g, createBlock as m, openBlock as s, unref as o, withCtx as p, createVNode as v, createCommentVNode as y } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { aG as S, d as h, aQ as D } from "./index-BFI9sA-S.js";
|
|
3
3
|
import { d as c } from "./dayjs.min-7xVZzECu.js";
|
|
4
4
|
const w = {
|
|
5
5
|
__name: "OcTimePicker",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { computed as l, createElementBlock as o, openBlock as a, normalizeClass as d, createElementVNode as e, createBlock as x, createCommentVNode as u, toDisplayString as r, unref as m, createTextVNode as v, Fragment as T, renderList as k, createVNode as P } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { aB as _, B as w } from "./index-BFI9sA-S.js";
|
|
3
3
|
import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
-
import { _ as F } from "./OcIcon-
|
|
4
|
+
import { _ as F } from "./OcIcon-CUKFUeB7.js";
|
|
5
5
|
const B = { class: "z-10 flex flex-col gap-4 p-9 relative" }, E = { class: "flex items-center gap-4" }, A = { class: "font-medium text-xl" }, N = { class: "flex gap-3 items-center mb-5" }, S = { class: "flex items-start gap-2" }, V = { class: "text-[24px] font-medium tracking-tighter" }, q = { class: "text-[40px] leading-none font-medium" }, z = { key: 0 }, $ = {
|
|
6
6
|
__name: "SubPlanCard",
|
|
7
7
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createElementBlock as a, openBlock as d, createElementVNode as t, createVNode as o, unref as i, toDisplayString as r } from "vue";
|
|
2
|
-
import { B as n } from "./index-
|
|
2
|
+
import { B as n } from "./index-BFI9sA-S.js";
|
|
3
3
|
const m = { class: "flex flex-col" }, u = { class: "w-full relative group" }, f = { class: "w-full h-full bg-black/25 absolute top-0 left-0 hidden group-hover:flex rounded-lg" }, v = { class: "w-full px-6 gap-3 m-auto flex" }, b = ["src", "alt"], g = { class: "mt-4 text-md text-center" }, x = {
|
|
4
4
|
__name: "ThumbnailSection",
|
|
5
5
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createElementBlock as s, openBlock as i, normalizeClass as f, createElementVNode as l, Fragment as b, createCommentVNode as u, createVNode as m, createBlock as r, unref as a, createTextVNode as c, toDisplayString as g, withCtx as v } from "vue";
|
|
2
|
-
import { B as d,
|
|
3
|
-
import { _ as k } from "./OcIcon-
|
|
2
|
+
import { B as d, aB as h } from "./index-BFI9sA-S.js";
|
|
3
|
+
import { _ as k } from "./OcIcon-CUKFUeB7.js";
|
|
4
4
|
const x = { class: "w-full relative group" }, y = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "m-auto flex gap-3"
|