@orchidui/core 0.0.1 → 0.2.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/LICENSE +21 -0
- package/README.md +1 -0
- package/dist/Calendar.js +103 -0
- package/dist/Cropper.js +6 -0
- package/dist/DataDisplay/CustomerCard/OcCustomerCard.js +4 -0
- package/dist/DataDisplay/FloatContent/OcFloatContent.js +4 -0
- package/dist/DataDisplay/HorizontalProgressbar/OcHorizontalProgressbar.js +4 -0
- package/dist/DataDisplay/InfoCard/OcInfoCard.js +4 -0
- package/dist/DataDisplay/ListDetail/OcListDetail.js +4 -0
- package/dist/DataDisplay/ListItem/OcListItem.js +5 -0
- package/dist/DataDisplay/OnboardingListItem/OcOnboardingListItem.js +4 -0
- package/dist/DataDisplay/Overview/OcOverview.js +7 -0
- package/dist/DataDisplay/Pagination/OcPagination.js +6 -0
- package/dist/DataDisplay/ProgressBar/OcProgressBar.js +4 -0
- package/dist/DataDisplay/Table/OcTable.js +11 -0
- package/dist/DataDisplay/TransferSummary/OcTransferSummary.js +4 -0
- package/dist/DatePicker-D3w435Ml.js +263 -0
- package/dist/Disclosure/Accordion/OcAccordion.js +4 -0
- package/dist/Disclosure/OnboardingAccordion/OnboardingAccordion.js +4 -0
- package/dist/Disclosure/Steps/OcSteps.js +5 -0
- package/dist/Disclosure/SwitchTabs/OcSwitchTabs.js +4 -0
- package/dist/Disclosure/Tabs/Tabs.js +5 -0
- package/dist/Disclosure/Variants/OcVariants.js +5 -0
- package/dist/Draggable.js +168 -0
- package/dist/Elements/AdditionalContent/OcAdditionalContent.js +5 -0
- package/dist/Elements/AuthenticationOption/AuthenticationOption.js +4 -0
- package/dist/Elements/Box/OcBox.js +4 -0
- package/dist/Elements/EmptyPage/OcEmptyPage.js +4 -0
- package/dist/Elements/FeatureOverviewCard/OcFeatureOverviewCard.js +4 -0
- package/dist/Elements/Header/OcHeader.js +9 -0
- package/dist/Elements/PageTitle/OcPageTitle.js +7 -0
- package/dist/Elements/SandboxBanner/OcSandboxBanner.js +4 -0
- package/dist/Elements/Sidebar/OcSidebar.js +6 -0
- package/dist/Elements/Skeleton/OcSkeleton.js +4 -0
- package/dist/Elements/SubSidebar/OcSubSidebar.js +4 -0
- package/dist/Elements/VerificationOption/OcVerificationOption.js +4 -0
- package/dist/EmojiPicker.js +4 -0
- package/dist/Feedback/Banner/OcBanner.js +4 -0
- package/dist/Feedback/Chip/OcChip.js +4 -0
- package/dist/Feedback/ShareIcon/OcShareIcon.js +4 -0
- package/dist/Feedback/Snackbar/OcSnackbar.js +4 -0
- package/dist/Feedback/Tag/OcTag.js +4 -0
- package/dist/Form/BaseInput/OcBaseInput.js +4 -0
- package/dist/Form/Button/OcButton.js +4 -0
- package/dist/Form/Calendar/OcCalendar.js +5 -0
- package/dist/Form/CardInput/OcCardInput.js +4 -0
- package/dist/Form/Checkbox/OcCheckbox.js +4 -0
- package/dist/Form/CheckboxesGroup/OcCheckboxesGroup.js +4 -0
- package/dist/Form/Criteria/OcCriteria.js +4 -0
- package/dist/Form/Cropper/OcCropper.js +4 -0
- package/dist/Form/DatePicker/OcDatePicker.js +4 -0
- package/dist/Form/EmojiPicker/OcEmojiPicker.js +4 -0
- package/dist/Form/EmojiPicker/conts/emoji.js +1030 -0
- package/dist/Form/Input/OcInput.js +6 -0
- package/dist/Form/LinkInput/OcLinkInput.js +4 -0
- package/dist/Form/MultipleUploadFile/OcMultipleUploadFile.js +4 -0
- package/dist/Form/NumberInput/OcNumberInput.js +4 -0
- package/dist/Form/PhoneInput/OcPhoneInput.js +4 -0
- package/dist/Form/Radio/OcRadio.js +4 -0
- package/dist/Form/RadioGroup/OcRadioGroup.js +4 -0
- package/dist/Form/RangeInput/OcRangeInput.js +4 -0
- package/dist/Form/SectionItem/OcSectionItem.js +4 -0
- package/dist/Form/Select/OcSelect.js +7 -0
- package/dist/Form/SelectOptions/OcSelectOptions.js +4 -0
- package/dist/Form/SingleFileUpload/OcSingleFileUpload.js +4 -0
- package/dist/Form/Slider/OcSlider.js +4 -0
- package/dist/Form/TextArea/OcTextArea.js +4 -0
- package/dist/Form/TimePicker/OcTimePicker.js +6 -0
- package/dist/Form/Toggle/OcToggle.js +4 -0
- package/dist/Form/index.js +54 -0
- package/dist/FormBuilder/OcFormBuilder.js +4 -0
- package/dist/MediaAndIcons/Avatar/OcAvatar.js +4 -0
- package/dist/MediaAndIcons/Icon/OcIcon.js +4 -0
- package/dist/OcAccordion-DdkNsXvN.js +101 -0
- package/dist/OcAccountSetup-BXDjf48o.js +324 -0
- package/dist/OcAdditionalContent-BMSysCXu.js +612 -0
- package/dist/OcAuthenticationOption.vue_vue_type_script_setup_true_lang-w5Y0ymGN.js +43 -0
- package/dist/OcAvatar-NDXQiZvz.js +41 -0
- package/dist/OcBanner-Cg2WJV6e.js +108 -0
- package/dist/OcBox.vue_vue_type_script_setup_true_lang-aB397QRg.js +43 -0
- package/dist/OcCardInput-BFE4Xu-S.js +75 -0
- package/dist/OcCheckboxesGroup-CLbquUO2.js +94 -0
- package/dist/OcChip-B1hm2Qni.js +144 -0
- package/dist/OcComplexCalendar-x-_kg9Yk.js +108 -0
- package/dist/OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js +1006 -0
- package/dist/OcConfirmationModal-BfCrRV9r.js +179 -0
- package/dist/OcCopyTooltip.vue_vue_type_script_setup_true_lang-S2RAfV_g.js +65 -0
- package/dist/OcCriteria-CpIohheZ.js +42 -0
- package/dist/OcCropper-31Y_S1Ne.js +240 -0
- package/dist/OcCustomerCard-DbDOBO03.js +160 -0
- package/dist/OcDraggable-BjhGJmpM.js +35 -0
- package/dist/OcDropdownItem-DAElmzEu.js +57 -0
- package/dist/OcEmojiPicker-BXm-_OGK.js +157 -0
- package/dist/OcEmptyPage-CTwgMzRp.js +155 -0
- package/dist/OcExpadingTable.vue_vue_type_script_setup_true_lang-B4HOMDBK.js +815 -0
- package/dist/OcFeatureOverviewCard-RVyrWLVW.js +71 -0
- package/dist/OcFloatContent-BIKQOxSw.js +142 -0
- package/dist/OcFormBuilder-CRXWtt8I.js +177 -0
- package/dist/OcGroupOptions-ChGJvTXl.js +16 -0
- package/dist/OcHorizontalProgressbar.vue_vue_type_script_setup_true_lang-4eVgPDi5.js +32 -0
- package/dist/OcIcon-CJgBICxh.js +63 -0
- package/dist/OcInfoCard-DpYUZOMZ.js +81 -0
- package/dist/OcInput-tcRxG3Y2.js +227 -0
- package/dist/OcInputOption-CncASfNt.js +160 -0
- package/dist/OcLinkInput-C2ixk-gk.js +143 -0
- package/dist/OcListDetail-6XeME6ko.js +76 -0
- package/dist/OcListUrl.vue_vue_type_script_setup_true_lang-BEJafLuT.js +749 -0
- package/dist/OcModal-DdD5VFEN.js +187 -0
- package/dist/OcModalCropper-D2OI2iun.js +56 -0
- package/dist/OcModalPage-BLVa-kcB.js +86 -0
- package/dist/OcMultipleUploadFile-B8Wl9Fuq.js +446 -0
- package/dist/OcNumberInput.vue_vue_type_script_setup_true_lang-C4EXUIUe.js +90 -0
- package/dist/OcOnboardingListItem.vue_vue_type_script_setup_true_lang-Cr80xmnz.js +81 -0
- package/dist/OcOption-DK2FBGq7.js +485 -0
- package/dist/OcOverviewIcon-D702Ujka.js +55 -0
- package/dist/OcOverviewItem-DNr5tWnt.js +186 -0
- package/dist/OcPageTitleRight-DMtJ1qmZ.js +243 -0
- package/dist/OcPaginationNumber-IKPorX26.js +172 -0
- package/dist/OcPaymentTab-Cna1IAhO.js +170 -0
- package/dist/OcPhoneInput-AC6BgQhN.js +432 -0
- package/dist/OcPopper-C11OgQAj.js +97 -0
- package/dist/OcPrimaryActions-D5IprKsQ.js +222 -0
- package/dist/OcProgressBar-hiyC5XSc.js +33 -0
- package/dist/OcRadio-CRYfNwV9.js +107 -0
- package/dist/OcRadioGroup-DgfdWJos.js +76 -0
- package/dist/OcRangeInput-C-hoHFhr.js +103 -0
- package/dist/OcSandboxBanner.vue_vue_type_script_setup_true_lang-BD0k_8xa.js +37 -0
- package/dist/OcSectionItem-BFgxO3se.js +84 -0
- package/dist/OcSelectOptions-BQlG_EUA.js +148 -0
- package/dist/OcShareIcon-BB-NPq0r.js +53 -0
- package/dist/OcSingleFileUpload-B8-e1H5t.js +464 -0
- package/dist/OcSkeleton-BdPTmGh0.js +13 -0
- package/dist/OcSlider-Bsi-ckbP.js +124 -0
- package/dist/OcSnackbar-CKxY1-ej.js +196 -0
- package/dist/OcSteps.vue_vue_type_script_setup_true_lang-CXGy8ma_.js +87 -0
- package/dist/OcSubSidebar.vue_vue_type_script_setup_true_lang-CNxgU07N.js +60 -0
- package/dist/OcSupportMenu.vue_vue_type_script_setup_true_lang-DrjZsWti.js +114 -0
- package/dist/OcSwitchTabs-CYp676bj.js +31 -0
- package/dist/OcTabToSelect-BHAz1Niv.js +183 -0
- package/dist/OcTag.vue_vue_type_script_setup_true_lang-D19lw-8Y.js +26 -0
- package/dist/OcTextArea-BpV1Bnj_.js +78 -0
- package/dist/OcTheme-CWgrJh5Q.js +25 -0
- package/dist/OcTimePicker-B61MCi0D.js +110 -0
- package/dist/OcTimePopup-zQFKCZLk.js +131 -0
- package/dist/OcToggle-C0wTjM_Y.js +54 -0
- package/dist/OcTransferSummary-Bk2GXhrT.js +67 -0
- package/dist/OcVariant.vue_vue_type_script_setup_true_lang-CY_82DLc.js +99 -0
- package/dist/OcVerificationOption.vue_vue_type_script_setup_true_lang-ChqvNoDe.js +59 -0
- package/dist/OcWhiteList.vue_vue_type_script_setup_true_lang-DI9pYU3w.js +64 -0
- package/dist/OnboardingAccordion.vue_vue_type_script_setup_true_lang-B0Z7ETmj.js +113 -0
- package/dist/Overlay/ConfirmationModal/OcConfirmationModal.js +4 -0
- package/dist/Overlay/CopyTooltip/OcCopyTooltip.js +4 -0
- package/dist/Overlay/Dropdown/OcDropdown.js +6 -0
- package/dist/Overlay/Modal/OcModal.js +6 -0
- package/dist/Overlay/Popper/OcPopper.js +4 -0
- package/dist/Overlay/SupportMenu/OcSupportMenu.js +4 -0
- package/dist/Overlay/Tooltip/OcTooltip.js +4 -0
- package/dist/Overlay/Whitelist/OcWhiteList.js +4 -0
- package/dist/StoreDesign.js +240 -0
- package/dist/Theme/OcTheme.js +4 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/composables/helpers.js +48 -0
- package/dist/composables/uploadFileProgress.js +62 -0
- package/dist/composables/useWindowWidth.js +10 -0
- package/dist/data/Validator.js +5 -0
- package/dist/directives/clickOutside.js +13 -0
- package/dist/index.js +177 -1
- package/dist/style.css +1 -0
- package/package.json +23 -5
@@ -0,0 +1,97 @@
|
|
1
|
+
import { ref as n, onMounted as m, watch as y, openBlock as i, createElementBlock as b, createElementVNode as c, renderSlot as d, createBlock as v, Teleport as k, normalizeClass as O, normalizeStyle 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(o, { expose: u }) {
|
41
|
+
const a = n(), r = n(), t = n(), e = o, l = () => ({
|
42
|
+
placement: e.placement,
|
43
|
+
modifiers: [
|
44
|
+
{
|
45
|
+
name: "flip",
|
46
|
+
enabled: e.isFlipEnabled
|
47
|
+
},
|
48
|
+
{
|
49
|
+
name: "offset",
|
50
|
+
options: {
|
51
|
+
offset: [e.skidding, e.distance]
|
52
|
+
}
|
53
|
+
}
|
54
|
+
],
|
55
|
+
...e.popperOptions || []
|
56
|
+
}), f = (p) => {
|
57
|
+
var s;
|
58
|
+
return p && ((s = r.value) == null ? void 0 : s.contains(p));
|
59
|
+
};
|
60
|
+
return m(() => {
|
61
|
+
t.value = B(a.value, r.value, l()), setTimeout(() => t.value.update(), 50);
|
62
|
+
}), y(
|
63
|
+
() => [e.popperOptions, e.placement, e.distance, e.skidding],
|
64
|
+
() => {
|
65
|
+
t.value.setOptions(l()), t.value.update();
|
66
|
+
},
|
67
|
+
{ deep: !0 }
|
68
|
+
), u({
|
69
|
+
popperInstance: t,
|
70
|
+
checkElementIsInsidePopper: f
|
71
|
+
}), (p, s) => (i(), b("div", S, [
|
72
|
+
c("div", {
|
73
|
+
ref_key: "reference",
|
74
|
+
ref: a,
|
75
|
+
class: "w-[inherit] flex"
|
76
|
+
}, [
|
77
|
+
d(p.$slots, "default")
|
78
|
+
], 512),
|
79
|
+
(i(), v(k, {
|
80
|
+
to: "body",
|
81
|
+
disabled: !o.isAttachToBody
|
82
|
+
}, [
|
83
|
+
c("div", {
|
84
|
+
ref_key: "popper",
|
85
|
+
ref: r,
|
86
|
+
class: O([o.popperClass, "z-[1005]"]),
|
87
|
+
style: h(o.popperStyle)
|
88
|
+
}, [
|
89
|
+
d(p.$slots, "popper")
|
90
|
+
], 6)
|
91
|
+
], 8, ["disabled"]))
|
92
|
+
]));
|
93
|
+
}
|
94
|
+
};
|
95
|
+
export {
|
96
|
+
P as _
|
97
|
+
};
|
@@ -0,0 +1,222 @@
|
|
1
|
+
import { openBlock as o, createElementBlock as s, createElementVNode as l, renderSlot as N, toDisplayString as w, createBlock as a, unref as r, normalizeProps as E, mergeProps as V, createCommentVNode as u, withCtx as c, createVNode as h, normalizeClass as k, ref as q, computed as $, Fragment as f, renderList as O } from "vue";
|
2
|
+
import "dayjs";
|
3
|
+
import { T, D as F } from "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
|
4
|
+
import { _ as b } from "./OcIcon-CJgBICxh.js";
|
5
|
+
import { _ as M } from "./OcChip-B1hm2Qni.js";
|
6
|
+
/* empty css */
|
7
|
+
import "libphonenumber-js";
|
8
|
+
/* empty css */
|
9
|
+
import "v-calendar";
|
10
|
+
/* empty css */
|
11
|
+
import "./Cropper.js";
|
12
|
+
import "vue-draggable-next";
|
13
|
+
import "@popperjs/core";
|
14
|
+
import { _ as U } from "./OcCopyTooltip.vue_vue_type_script_setup_true_lang-S2RAfV_g.js";
|
15
|
+
import { _ as B } from "./OcDropdownItem-DAElmzEu.js";
|
16
|
+
const G = { class: "flex text-oc-text justify-center flex-col gap-y-3 max-w-full" }, H = { class: "md:text-xl font-medium flex items-center gap-x-3" }, I = { class: "whitespace-nowrap text-ellipsis overflow-hidden md:text-base lg:text-xl" }, J = {
|
17
|
+
key: 0,
|
18
|
+
class: "text-oc-text-400 text-sm group flex items-center gap-x-4"
|
19
|
+
}, K = { class: "overflow-hidden whitespace-nowrap text-ellipsis" }, xt = {
|
20
|
+
__name: "OcTitle",
|
21
|
+
props: {
|
22
|
+
title: { type: String, required: !0 },
|
23
|
+
description: { type: String, required: !0 },
|
24
|
+
copyValue: { type: String, default: "" },
|
25
|
+
chipProps: Object,
|
26
|
+
tooltipOptions: Object,
|
27
|
+
isCopy: Boolean
|
28
|
+
},
|
29
|
+
setup(e) {
|
30
|
+
return (v, g) => (o(), s("div", G, [
|
31
|
+
l("div", H, [
|
32
|
+
N(v.$slots, "title", {}, () => [
|
33
|
+
l("span", I, w(e.title), 1)
|
34
|
+
]),
|
35
|
+
e.chipProps ? (o(), a(r(M), E(V({ key: 0 }, e.chipProps)), null, 16)) : u("", !0)
|
36
|
+
]),
|
37
|
+
e.description || v.$slots.description ? (o(), s("div", J, [
|
38
|
+
N(v.$slots, "description", {}, () => [
|
39
|
+
l("span", K, w(e.description), 1)
|
40
|
+
]),
|
41
|
+
e.isCopy ? (o(), a(r(U), {
|
42
|
+
key: 0,
|
43
|
+
value: e.copyValue,
|
44
|
+
"tooltip-options": e.tooltipOptions
|
45
|
+
}, {
|
46
|
+
default: c(({ isShow: C }) => [
|
47
|
+
h(r(b), {
|
48
|
+
width: "16",
|
49
|
+
height: "16",
|
50
|
+
class: k(["cursor-pointer transition-all duration-500 group-hover:opacity-100", C ? "opacity-100" : "opacity-0"]),
|
51
|
+
name: "copy"
|
52
|
+
}, null, 8, ["class"])
|
53
|
+
]),
|
54
|
+
_: 1
|
55
|
+
}, 8, ["value", "tooltip-options"])) : u("", !0)
|
56
|
+
])) : u("", !0)
|
57
|
+
]));
|
58
|
+
}
|
59
|
+
}, Q = ["href"], R = { class: "py-2 px-3 whitespace-nowrap text-sm font-medium text-oc-text-400" }, W = {
|
60
|
+
key: 0,
|
61
|
+
class: "border-l group-hover:border-oc-accent-1-100 border-transparent"
|
62
|
+
}, X = { class: "py-2 px-3 whitespace-nowrap text-sm font-medium text-oc-text-400" }, Y = { class: "flex flex-col" }, Z = { class: "p-2 border-b border-gray-200" }, tt = {
|
63
|
+
key: 0,
|
64
|
+
class: "p-2"
|
65
|
+
}, ft = {
|
66
|
+
__name: "OcPrimaryActions",
|
67
|
+
props: {
|
68
|
+
primaryActions: Object
|
69
|
+
},
|
70
|
+
emits: {
|
71
|
+
copy: [],
|
72
|
+
"click:primaryActionsDropdown": []
|
73
|
+
},
|
74
|
+
setup(e, { emit: v }) {
|
75
|
+
var S;
|
76
|
+
const g = e, C = v, p = q(!1), A = $(() => {
|
77
|
+
var i;
|
78
|
+
return (i = g.primaryActions) == null ? void 0 : i.dropdownOptions;
|
79
|
+
}), m = q(((S = A.value) == null ? void 0 : S.isDropdownOpened) ?? !1), D = () => {
|
80
|
+
p.value = !0, C("copy"), setTimeout(() => p.value = !1, 1500);
|
81
|
+
}, L = $(
|
82
|
+
() => {
|
83
|
+
var i;
|
84
|
+
return ((i = g.primaryActions) == null ? void 0 : i.copyTooltipContent) ?? "Copy link";
|
85
|
+
}
|
86
|
+
), P = $(
|
87
|
+
() => {
|
88
|
+
var i;
|
89
|
+
return ((i = g.primaryActions) == null ? void 0 : i.copiedTooltipContent) ?? "Link copied!";
|
90
|
+
}
|
91
|
+
);
|
92
|
+
return (i, d) => {
|
93
|
+
var j;
|
94
|
+
return o(), s("div", {
|
95
|
+
class: k(["p-1 gap-x-1 rounded-sm border text-oc-text-400 flex hover:bg-oc-bg group hover:border-oc-accent-1-100", m.value ? "bg-oc-bg border-oc-accent-1-100" : "border-transparent"])
|
96
|
+
}, [
|
97
|
+
(j = e.primaryActions) != null && j.mainLinkAction ? (o(), a(r(T), {
|
98
|
+
key: 0,
|
99
|
+
position: "top",
|
100
|
+
"arrow-hidden": "",
|
101
|
+
distance: 7
|
102
|
+
}, {
|
103
|
+
popper: c(() => {
|
104
|
+
var t, n;
|
105
|
+
return [
|
106
|
+
l("div", R, w((n = (t = e.primaryActions) == null ? void 0 : t.mainLinkAction) == null ? void 0 : n.tooltipContent), 1)
|
107
|
+
];
|
108
|
+
}),
|
109
|
+
default: c(() => {
|
110
|
+
var t, n;
|
111
|
+
return [
|
112
|
+
l("a", {
|
113
|
+
href: (n = (t = e.primaryActions) == null ? void 0 : t.mainLinkAction) == null ? void 0 : n.url,
|
114
|
+
target: "_blank"
|
115
|
+
}, [
|
116
|
+
h(r(b), {
|
117
|
+
class: "p-2 cursor-pointer rounded-sm hover:border-oc-accent-1-50-tr active:text-oc-text-400 hover:text-oc-text hover:bg-oc-accent-1-50-tr",
|
118
|
+
name: "external-link"
|
119
|
+
})
|
120
|
+
], 8, Q)
|
121
|
+
];
|
122
|
+
}),
|
123
|
+
_: 1
|
124
|
+
})) : u("", !0),
|
125
|
+
(o(!0), s(f, null, O(e.primaryActions.actions, (t, n) => {
|
126
|
+
var x;
|
127
|
+
return o(), s(f, { key: n }, [
|
128
|
+
(x = e.primaryActions) != null && x.mainLinkAction || n > 0 ? (o(), s("div", W)) : u("", !0),
|
129
|
+
h(r(T), {
|
130
|
+
position: "top",
|
131
|
+
"arrow-hidden": "",
|
132
|
+
distance: 7
|
133
|
+
}, {
|
134
|
+
popper: c(() => [
|
135
|
+
l("div", X, w(t != null && t.isCopyButton ? p.value ? P.value : L.value : t.tooltipContent), 1)
|
136
|
+
]),
|
137
|
+
default: c(() => [
|
138
|
+
t != null && t.isCopyButton ? (o(), a(r(b), {
|
139
|
+
key: 0,
|
140
|
+
class: k(["p-2 cursor-pointer rounded-sm hover:border-oc-accent-1-50-tr active:text-oc-text-400 hover:text-oc-text hover:bg-oc-accent-1-50-tr", p.value ? "!text-oc-success" : ""]),
|
141
|
+
name: p.value ? "check" : "copy",
|
142
|
+
onClick: D
|
143
|
+
}, null, 8, ["name", "class"])) : (o(), a(r(b), {
|
144
|
+
key: 1,
|
145
|
+
class: k(["p-2 cursor-pointer rounded-sm hover:border-oc-accent-1-50-tr active:text-oc-text-400 hover:text-oc-text hover:bg-oc-accent-1-50-tr", t.class ?? ""]),
|
146
|
+
name: t.icon,
|
147
|
+
onClick: t.onClick
|
148
|
+
}, null, 8, ["name", "class", "onClick"]))
|
149
|
+
]),
|
150
|
+
_: 2
|
151
|
+
}, 1024)
|
152
|
+
], 64);
|
153
|
+
}), 128)),
|
154
|
+
A.value ? (o(), s("div", {
|
155
|
+
key: 1,
|
156
|
+
class: k(["border-l group-hover:border-oc-accent-1-100", m.value ? "border-oc-gray-200" : "border-transparent"])
|
157
|
+
}, null, 2)) : u("", !0),
|
158
|
+
A.value ? (o(), a(r(F), {
|
159
|
+
key: 2,
|
160
|
+
modelValue: m.value,
|
161
|
+
"onUpdate:modelValue": d[2] || (d[2] = (t) => m.value = t),
|
162
|
+
distance: 6
|
163
|
+
}, {
|
164
|
+
menu: c(() => {
|
165
|
+
var t, n, x;
|
166
|
+
return [
|
167
|
+
l("div", Y, [
|
168
|
+
l("div", Z, [
|
169
|
+
(o(!0), s(f, null, O((t = e.primaryActions.dropdownOptions) == null ? void 0 : t.top, (y, _) => (o(), s(f, { key: _ }, [
|
170
|
+
y != null && y.isCopyButton ? (o(), a(r(B), {
|
171
|
+
key: 0,
|
172
|
+
icon: p.value ? "check" : "copy",
|
173
|
+
text: p.value ? P.value : L.value,
|
174
|
+
"icon-classes": p.value ? "!text-oc-success" : "",
|
175
|
+
onClick: D
|
176
|
+
}, null, 8, ["icon", "text", "icon-classes"])) : (o(), a(r(B), V({
|
177
|
+
key: 1,
|
178
|
+
ref_for: !0
|
179
|
+
}, y, {
|
180
|
+
onClick: d[0] || (d[0] = (z) => m.value = !1)
|
181
|
+
}), null, 16))
|
182
|
+
], 64))), 128))
|
183
|
+
]),
|
184
|
+
(n = e.primaryActions.dropdownOptions) != null && n.bottom ? (o(), s("div", tt, [
|
185
|
+
(o(!0), s(f, null, O((x = e.primaryActions.dropdownOptions) == null ? void 0 : x.bottom, (y, _) => (o(), a(r(B), V({
|
186
|
+
key: _,
|
187
|
+
ref_for: !0
|
188
|
+
}, y, {
|
189
|
+
onClick: d[1] || (d[1] = (z) => m.value = !1)
|
190
|
+
}), null, 16))), 128))
|
191
|
+
])) : u("", !0)
|
192
|
+
])
|
193
|
+
];
|
194
|
+
}),
|
195
|
+
default: c(() => [
|
196
|
+
h(r(T), {
|
197
|
+
position: "top",
|
198
|
+
"arrow-hidden": "",
|
199
|
+
distance: 7
|
200
|
+
}, {
|
201
|
+
popper: c(() => d[3] || (d[3] = [
|
202
|
+
l("div", { class: "py-2 px-3 whitespace-nowrap text-sm font-medium text-oc-text-400" }, " More actions ", -1)
|
203
|
+
])),
|
204
|
+
default: c(() => [
|
205
|
+
h(r(b), {
|
206
|
+
class: "p-2 cursor-pointer rounded-sm hover:bg-oc-accent-1-50-tr",
|
207
|
+
name: "dots-vertical"
|
208
|
+
})
|
209
|
+
]),
|
210
|
+
_: 1
|
211
|
+
})
|
212
|
+
]),
|
213
|
+
_: 1
|
214
|
+
}, 8, ["modelValue"])) : u("", !0)
|
215
|
+
], 2);
|
216
|
+
};
|
217
|
+
}
|
218
|
+
};
|
219
|
+
export {
|
220
|
+
ft as _,
|
221
|
+
xt as a
|
222
|
+
};
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import { openBlock as t, createElementBlock as r, toDisplayString as a, createCommentVNode as o, createElementVNode as u, Fragment as i, renderList as m, normalizeClass as p } from "vue";
|
2
|
+
const d = {
|
3
|
+
key: 0,
|
4
|
+
class: "mb-3 text-center"
|
5
|
+
}, b = { class: "w-full flex align-center justify-center gap-2" }, f = {
|
6
|
+
__name: "OcProgressBar",
|
7
|
+
props: {
|
8
|
+
steps: {
|
9
|
+
type: Number,
|
10
|
+
required: !0
|
11
|
+
},
|
12
|
+
currentStep: {
|
13
|
+
type: Number,
|
14
|
+
default: 1
|
15
|
+
},
|
16
|
+
label: String
|
17
|
+
},
|
18
|
+
setup(e) {
|
19
|
+
const s = e, c = (l) => l <= s.currentStep;
|
20
|
+
return (l, g) => (t(), r("div", null, [
|
21
|
+
e.label ? (t(), r("p", d, a(e.label), 1)) : o("", !0),
|
22
|
+
u("div", b, [
|
23
|
+
(t(!0), r(i, null, m(e.steps, (n) => (t(), r("span", {
|
24
|
+
key: n,
|
25
|
+
class: p(["bg-oc-primary h-2 w-14 rounded-full", { "bg-oc-primary-50-tr": !c(n) }])
|
26
|
+
}, null, 2))), 128))
|
27
|
+
])
|
28
|
+
]));
|
29
|
+
}
|
30
|
+
};
|
31
|
+
export {
|
32
|
+
f as _
|
33
|
+
};
|
@@ -0,0 +1,107 @@
|
|
1
|
+
import { openBlock as t, createBlock as l, unref as o, normalizeClass as a, withCtx as n, createElementVNode as u, createElementBlock as d, createCommentVNode as i, renderSlot as c, toDisplayString as m, normalizeProps as h, mergeProps as x, createVNode as B } from "vue";
|
2
|
+
import "dayjs";
|
3
|
+
import { _ as V, T as y } from "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
|
4
|
+
import { _ as b } 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 f = ["id", "value", "checked", "name", "disabled"], k = ["for"], S = {
|
14
|
+
key: 0,
|
15
|
+
class: "px-3 py-2 whitespace-nowrap"
|
16
|
+
}, z = {
|
17
|
+
__name: "OcRadio",
|
18
|
+
props: {
|
19
|
+
modelValue: [String, Boolean],
|
20
|
+
isDisabled: Boolean,
|
21
|
+
checked: Boolean,
|
22
|
+
label: String,
|
23
|
+
id: [String, Number],
|
24
|
+
groupName: String,
|
25
|
+
errorMessage: String,
|
26
|
+
hint: String,
|
27
|
+
tooltipText: String,
|
28
|
+
labelIcon: String,
|
29
|
+
tooltipOptions: Object,
|
30
|
+
isButtonVariant: Boolean,
|
31
|
+
isButtonVariantWithRadio: Boolean,
|
32
|
+
icon: String
|
33
|
+
},
|
34
|
+
emits: {
|
35
|
+
"update:modelValue": []
|
36
|
+
},
|
37
|
+
setup(e) {
|
38
|
+
return (r, s) => (t(), l(o(V), {
|
39
|
+
class: a(["radio-button inline-block relative cursor-pointer", e.isDisabled ? "disabled" : ""]),
|
40
|
+
label: "",
|
41
|
+
"error-message": e.errorMessage,
|
42
|
+
hint: e.hint
|
43
|
+
}, {
|
44
|
+
default: n(() => [
|
45
|
+
u("input", {
|
46
|
+
id: e.groupName + e.id,
|
47
|
+
value: e.modelValue,
|
48
|
+
checked: e.checked,
|
49
|
+
name: e.groupName,
|
50
|
+
disabled: e.isDisabled,
|
51
|
+
class: "radio-button__input absolute opacity-0 w-0 h-0",
|
52
|
+
type: "radio",
|
53
|
+
onInput: s[0] || (s[0] = (g) => r.$emit("update:modelValue", g.target.value))
|
54
|
+
}, null, 40, f),
|
55
|
+
u("label", {
|
56
|
+
for: e.groupName + e.id,
|
57
|
+
class: a(["radio-button__label flex gap-x-3 relative items-center cursor-pointer transition-all duration-300 text-oc-text-500", {
|
58
|
+
"!text-oc-text-300": e.isDisabled,
|
59
|
+
"bg-gray-200": e.isDisabled && e.isButtonVariant,
|
60
|
+
"!border-oc-error": e.errorMessage && e.isButtonVariant,
|
61
|
+
"radio-button__label--button border-gray-200 border py-3 px-5 rounded": e.isButtonVariant,
|
62
|
+
"!px-6 !py-5 !gap-x-4": e.isButtonVariantWithRadio
|
63
|
+
}])
|
64
|
+
}, [
|
65
|
+
!e.isButtonVariant || e.isButtonVariantWithRadio ? (t(), d("span", {
|
66
|
+
key: 0,
|
67
|
+
class: a(["radio-button__custom w-5 h-5 rounded-full border transition-all duration-300", [
|
68
|
+
e.isDisabled || !e.modelValue ? "border-oc-primary-200 bg-oc-primary-50" : "",
|
69
|
+
e.errorMessage ? "!border-oc-error" : "border-oc-primary-200"
|
70
|
+
]])
|
71
|
+
}, null, 2)) : i("", !0),
|
72
|
+
e.icon ? (t(), l(o(b), {
|
73
|
+
key: 1,
|
74
|
+
class: a(["w-5 h-5 text-oc-text-500", { "!text-oc-text-300": e.isDisabled }]),
|
75
|
+
name: e.icon
|
76
|
+
}, null, 8, ["class", "name"])) : i("", !0),
|
77
|
+
c(r.$slots, "default", {}, () => [
|
78
|
+
e.label ? (t(), d("span", {
|
79
|
+
key: 0,
|
80
|
+
class: a({ "text-sm": !e.isButtonVariantWithRadio })
|
81
|
+
}, m(e.label), 3)) : i("", !0)
|
82
|
+
]),
|
83
|
+
e.labelIcon ? (t(), l(o(y), h(x({ key: 2 }, e.tooltipOptions)), {
|
84
|
+
popper: n(() => [
|
85
|
+
c(r.$slots, "tooltipText", {}, () => [
|
86
|
+
e.tooltipText ? (t(), d("div", S, m(e.tooltipText), 1)) : i("", !0)
|
87
|
+
])
|
88
|
+
]),
|
89
|
+
default: n(() => [
|
90
|
+
B(o(b), {
|
91
|
+
width: "16",
|
92
|
+
height: "16",
|
93
|
+
name: e.labelIcon,
|
94
|
+
class: "text-oc-text-400"
|
95
|
+
}, null, 8, ["name"])
|
96
|
+
]),
|
97
|
+
_: 3
|
98
|
+
}, 16)) : i("", !0)
|
99
|
+
], 10, k)
|
100
|
+
]),
|
101
|
+
_: 3
|
102
|
+
}, 8, ["class", "error-message", "hint"]));
|
103
|
+
}
|
104
|
+
};
|
105
|
+
export {
|
106
|
+
z as _
|
107
|
+
};
|
@@ -0,0 +1,76 @@
|
|
1
|
+
import { computed as d, openBlock as a, createBlock as i, unref as l, withCtx as g, createElementVNode as p, normalizeClass as r, createElementBlock as b, Fragment as f, renderList as h } from "vue";
|
2
|
+
import "dayjs";
|
3
|
+
import { _ as v } from "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
|
4
|
+
/* empty css */
|
5
|
+
import "libphonenumber-js";
|
6
|
+
import { _ as B } from "./OcRadio-CRYfNwV9.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 O = {
|
14
|
+
__name: "OcRadioGroup",
|
15
|
+
props: {
|
16
|
+
alignment: {
|
17
|
+
type: String,
|
18
|
+
default: "vertical"
|
19
|
+
},
|
20
|
+
radio: Array,
|
21
|
+
label: String,
|
22
|
+
wrapperClass: String,
|
23
|
+
groupName: String,
|
24
|
+
errorMessage: String,
|
25
|
+
hint: String,
|
26
|
+
modelValue: String,
|
27
|
+
isButtonVariant: Boolean,
|
28
|
+
isButtonVariantWithRadio: Boolean,
|
29
|
+
isBlock: Boolean
|
30
|
+
},
|
31
|
+
emits: {
|
32
|
+
"update:modelValue": []
|
33
|
+
},
|
34
|
+
setup(e, { emit: n }) {
|
35
|
+
const s = n, u = d(() => ({
|
36
|
+
horizontal: "gap-x-5 flex-wrap",
|
37
|
+
vertical: "flex-col gap-y-3"
|
38
|
+
})), c = (o) => {
|
39
|
+
s("update:modelValue", o);
|
40
|
+
};
|
41
|
+
return (o, x) => (a(), i(l(v), {
|
42
|
+
label: e.label,
|
43
|
+
"error-message": e.errorMessage,
|
44
|
+
hint: e.hint
|
45
|
+
}, {
|
46
|
+
default: g(() => [
|
47
|
+
p("div", {
|
48
|
+
class: r(["flex", [u.value[e.alignment], e.wrapperClass]])
|
49
|
+
}, [
|
50
|
+
(a(!0), b(f, null, h(e.radio, (t, m) => (a(), i(l(B), {
|
51
|
+
id: t.value,
|
52
|
+
key: m,
|
53
|
+
class: r({ "!w-fit": !e.isBlock }),
|
54
|
+
"model-value": t.value,
|
55
|
+
label: t.label,
|
56
|
+
icon: t.icon,
|
57
|
+
"is-error": !!e.errorMessage,
|
58
|
+
checked: t.value === e.modelValue,
|
59
|
+
"is-disabled": !!t.isDisabled,
|
60
|
+
"group-name": e.groupName,
|
61
|
+
"tooltip-text": t.tooltipText,
|
62
|
+
"label-icon": t.labelIcon,
|
63
|
+
"tooltip-options": t.tooltipOptions,
|
64
|
+
"is-button-variant": e.isButtonVariant,
|
65
|
+
"is-button-variant-with-radio": e.isButtonVariantWithRadio,
|
66
|
+
"onUpdate:modelValue": c
|
67
|
+
}, null, 8, ["id", "class", "model-value", "label", "icon", "is-error", "checked", "is-disabled", "group-name", "tooltip-text", "label-icon", "tooltip-options", "is-button-variant", "is-button-variant-with-radio"]))), 128))
|
68
|
+
], 2)
|
69
|
+
]),
|
70
|
+
_: 1
|
71
|
+
}, 8, ["label", "error-message", "hint"]));
|
72
|
+
}
|
73
|
+
};
|
74
|
+
export {
|
75
|
+
O as _
|
76
|
+
};
|
@@ -0,0 +1,103 @@
|
|
1
|
+
import { ref as d, onMounted as V, openBlock as c, createElementBlock as g, createVNode as m, unref as o, withCtx as x, createElementVNode as S, createCommentVNode as h } from "vue";
|
2
|
+
import "dayjs";
|
3
|
+
import { _ as I } from "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
|
4
|
+
/* empty css */
|
5
|
+
import { _ as N } from "./OcInput-tcRxG3Y2.js";
|
6
|
+
import "libphonenumber-js";
|
7
|
+
/* empty css */
|
8
|
+
import "v-calendar";
|
9
|
+
import { S as M } from "./OcSlider-Bsi-ckbP.js";
|
10
|
+
import "./Cropper.js";
|
11
|
+
import "vue-draggable-next";
|
12
|
+
import "@popperjs/core";
|
13
|
+
const k = { class: "flex flex-col gap-y-2 oc-range-input" }, L = { class: "flex gap-x-3" }, B = {
|
14
|
+
key: 0,
|
15
|
+
class: "flex pt-4"
|
16
|
+
}, q = {
|
17
|
+
__name: "OcRangeInput",
|
18
|
+
props: {
|
19
|
+
maxLimit: {
|
20
|
+
type: [String, Number],
|
21
|
+
default: 1e4
|
22
|
+
},
|
23
|
+
minLimit: {
|
24
|
+
type: [String, Number],
|
25
|
+
default: 0
|
26
|
+
},
|
27
|
+
minGap: {
|
28
|
+
type: [String, Number],
|
29
|
+
default: 0
|
30
|
+
},
|
31
|
+
modelValue: {
|
32
|
+
type: [Array, String]
|
33
|
+
},
|
34
|
+
label: {
|
35
|
+
type: String,
|
36
|
+
default: "Amount"
|
37
|
+
},
|
38
|
+
hint: {
|
39
|
+
type: String,
|
40
|
+
default: ""
|
41
|
+
},
|
42
|
+
errorMessage: {
|
43
|
+
type: String,
|
44
|
+
default: ""
|
45
|
+
},
|
46
|
+
onlyInput: Boolean
|
47
|
+
},
|
48
|
+
emits: {
|
49
|
+
"update:modelValue": []
|
50
|
+
},
|
51
|
+
setup(t, { emit: b }) {
|
52
|
+
var f, v;
|
53
|
+
const u = t, s = b, e = d(((f = u.modelValue) == null ? void 0 : f[0]) ?? ""), l = d(((v = u.modelValue) == null ? void 0 : v[1]) ?? ""), r = d(), p = (a, i) => {
|
54
|
+
isNaN(a) || (i === 1 ? l.value = Number(a) : e.value = Number(a), u.onlyInput ? (e.value > l.value && (l.value = e.value), l.value < e.value && (e.value = l.value), s("update:modelValue", [e.value, l.value])) : r.value.updateSlider([e.value, l.value]));
|
55
|
+
}, y = (a) => {
|
56
|
+
isNaN(a[0]) || isNaN(a[1]) || (e.value = Number(a[0]), l.value = Number(a[1]), s("update:modelValue", [Number(e.value), Number(l.value)]));
|
57
|
+
};
|
58
|
+
return V(() => {
|
59
|
+
u.onlyInput || r.value.updateSlider();
|
60
|
+
}), (a, i) => (c(), g("div", k, [
|
61
|
+
m(o(I), {
|
62
|
+
label: t.label,
|
63
|
+
hint: t.hint,
|
64
|
+
"error-message": t.errorMessage
|
65
|
+
}, {
|
66
|
+
default: x(() => [
|
67
|
+
S("div", L, [
|
68
|
+
m(o(N), {
|
69
|
+
"model-value": e.value,
|
70
|
+
label: "From",
|
71
|
+
"is-inline-label": "",
|
72
|
+
placeholder: "",
|
73
|
+
"onUpdate:modelValue": i[0] || (i[0] = (n) => p(n, 0))
|
74
|
+
}, null, 8, ["model-value"]),
|
75
|
+
m(o(N), {
|
76
|
+
"model-value": l.value,
|
77
|
+
label: "To",
|
78
|
+
"is-inline-label": "",
|
79
|
+
placeholder: "",
|
80
|
+
"onUpdate:modelValue": i[1] || (i[1] = (n) => p(n, 1))
|
81
|
+
}, null, 8, ["model-value"])
|
82
|
+
]),
|
83
|
+
t.onlyInput ? h("", !0) : (c(), g("div", B, [
|
84
|
+
m(o(M), {
|
85
|
+
ref_key: "slider",
|
86
|
+
ref: r,
|
87
|
+
type: "range",
|
88
|
+
"max-limit": t.maxLimit,
|
89
|
+
"min-limit": t.minLimit,
|
90
|
+
"min-gap": t.minGap,
|
91
|
+
"model-value": [Number(e.value), Number(l.value)],
|
92
|
+
"onUpdate:modelValue": y
|
93
|
+
}, null, 8, ["max-limit", "min-limit", "min-gap", "model-value"])
|
94
|
+
]))
|
95
|
+
]),
|
96
|
+
_: 1
|
97
|
+
}, 8, ["label", "hint", "error-message"])
|
98
|
+
]));
|
99
|
+
}
|
100
|
+
};
|
101
|
+
export {
|
102
|
+
q as _
|
103
|
+
};
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import { defineComponent as o, openBlock as t, createElementBlock as r, createElementVNode as i, toDisplayString as c, createBlock as n, unref as p, mergeProps as s, createCommentVNode as m } from "vue";
|
2
|
+
import "dayjs";
|
3
|
+
import "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
|
4
|
+
import { _ as a } from "./OcChip-B1hm2Qni.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 l = { class: "w-screen relative h-[40px] bg-oc-accent-3 flex items-center justify-center text-white" }, f = { class: "text-sm" }, w = /* @__PURE__ */ o({
|
14
|
+
__name: "OcSandboxBanner",
|
15
|
+
props: {
|
16
|
+
title: {
|
17
|
+
type: String,
|
18
|
+
default: ""
|
19
|
+
},
|
20
|
+
chipProps: {
|
21
|
+
type: Object,
|
22
|
+
default: () => null
|
23
|
+
}
|
24
|
+
},
|
25
|
+
setup(e) {
|
26
|
+
return (u, _) => (t(), r("div", l, [
|
27
|
+
i("span", f, c(e.title), 1),
|
28
|
+
e.chipProps ? (t(), n(p(a), s({
|
29
|
+
key: 0,
|
30
|
+
class: "absolute left-[40px]"
|
31
|
+
}, e.chipProps), null, 16)) : m("", !0)
|
32
|
+
]));
|
33
|
+
}
|
34
|
+
});
|
35
|
+
export {
|
36
|
+
w as _
|
37
|
+
};
|