@orchidui/core 0.4.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/DataDisplay/CustomerCard/OcCustomerCard.js +1 -1
- package/dist/DataDisplay/FloatContent/OcFloatContent.js +1 -1
- package/dist/DataDisplay/InfoCard/OcInfoCard.js +1 -1
- package/dist/DataDisplay/ListDetail/OcListDetail.js +1 -1
- package/dist/DataDisplay/ListItem/OcListItem.js +3 -3
- package/dist/DataDisplay/OnboardingListItem/OcOnboardingListItem.js +1 -1
- package/dist/DataDisplay/Overview/OcOverview.js +4 -5
- package/dist/DataDisplay/Pagination/OcPagination.js +1 -1
- package/dist/DataDisplay/Table/OcTable.js +4 -4
- package/dist/DataDisplay/TransferSummary/OcTransferSummary.js +1 -1
- package/dist/DataTable/utils/editColumnsUtils.js +29 -0
- package/dist/Disclosure/Accordion/OcAccordion.js +1 -1
- package/dist/Disclosure/OnboardingAccordion/OnboardingAccordion.js +1 -1
- package/dist/Disclosure/Steps/OcSteps.js +3 -3
- package/dist/Disclosure/Tabs/Tabs.js +1 -1
- package/dist/Disclosure/Variants/OcVariants.js +1 -1
- package/dist/Elements/AdditionalContent/OcAdditionalContent.js +2 -2
- package/dist/Elements/AuthenticationOption/AuthenticationOption.js +2 -2
- package/dist/Elements/Box/OcBox.js +2 -2
- package/dist/Elements/EmptyPage/OcEmptyPage.js +1 -1
- package/dist/Elements/FeatureOverviewCard/OcFeatureOverviewCard.js +1 -1
- package/dist/Elements/Header/OcHeader.js +3 -3
- package/dist/Elements/PageTitle/OcPageTitle.js +3 -4
- package/dist/Elements/SandboxBanner/OcSandboxBanner.js +1 -1
- package/dist/Elements/Sidebar/OcSidebar.js +1 -1
- package/dist/Elements/Skeleton/OcSkeleton.js +1 -1
- package/dist/Elements/SubSidebar/OcSubSidebar.js +1 -1
- package/dist/Elements/VerificationOption/OcVerificationOption.js +2 -2
- package/dist/Feedback/Banner/OcBanner.js +1 -1
- package/dist/Feedback/Chip/OcChip.js +2 -2
- package/dist/Feedback/ShareIcon/OcShareIcon.js +2 -2
- package/dist/Feedback/Snackbar/OcSnackbar.js +1 -1
- package/dist/Form/BaseInput/OcBaseInput.js +1 -1
- package/dist/Form/Button/OcButton.js +1 -1
- package/dist/Form/Calendar/OcCalendar.js +2 -2
- package/dist/Form/CardInput/OcCardInput.js +1 -1
- package/dist/Form/Checkbox/OcCheckbox.js +1 -1
- package/dist/Form/CheckboxesGroup/OcCheckboxesGroup.js +1 -1
- package/dist/Form/Criteria/OcCriteria.js +1 -1
- package/dist/Form/Cropper/OcCropper.js +1 -1
- package/dist/Form/DatePicker/OcDatePicker.js +1 -1
- package/dist/Form/EmojiPicker/OcEmojiPicker.js +2 -2
- package/dist/Form/Input/OcInput.js +3 -4
- package/dist/Form/LinkInput/OcLinkInput.js +1 -1
- package/dist/Form/MultipleUploadFile/OcMultipleUploadFile.js +1 -1
- package/dist/Form/NumberInput/OcNumberInput.js +1 -1
- package/dist/Form/PhoneInput/OcPhoneInput.js +1 -1
- package/dist/Form/Radio/OcRadio.js +1 -1
- package/dist/Form/RadioGroup/OcRadioGroup.js +1 -1
- package/dist/Form/RangeInput/OcRangeInput.js +1 -1
- package/dist/Form/SectionItem/OcSectionItem.js +2 -2
- package/dist/Form/Select/OcSelect.js +4 -5
- package/dist/Form/SelectOptions/OcSelectOptions.js +2 -2
- package/dist/Form/SingleFileUpload/OcSingleFileUpload.js +1 -1
- package/dist/Form/Slider/OcSlider.js +1 -1
- package/dist/Form/TextArea/OcTextArea.js +2 -2
- package/dist/Form/Toggle/OcToggle.js +1 -1
- package/dist/Form/index.js +24 -47
- package/dist/FormBuilder/OcFormBuilder.js +1 -1
- package/dist/{OcComplexCalendar-x-_kg9Yk.js → OcComplexCalendar-Boa7mNFU.js} +18 -25
- package/dist/OcComplexDatePicker-BydI4VSR.js +93 -0
- package/dist/{OcCropper-31Y_S1Ne.js → OcCropper-7E2i6ayU.js} +38 -49
- package/dist/OcDataTable-CsCGrRx7.js +561 -0
- package/dist/{OcDraggable-BjhGJmpM.js → OcDraggable-CA_BCbpl.js} +7 -8
- package/dist/{Draggable.js → OcDraggableList-BUu5SgoA.js} +40 -50
- package/dist/{OcEmojiPicker-BXm-_OGK.js → OcEmojiPicker-DYYK7OB3.js} +28 -38
- package/dist/OcFilterForm-7ehuJUMp.js +83 -0
- package/dist/OcFilterSearch-B4AZsLBn.js +69 -0
- package/dist/OcFilterSearchFor-DfwJG-5N.js +67 -0
- package/dist/OcModalCropper-Z4jlnFc5.js +46 -0
- package/dist/{OcSkeleton-BdPTmGh0.js → OcSkeleton-CvdpGSQR.js} +2 -3
- package/dist/{OcSlider-Bsi-ckbP.js → OcSlider-DW9x8eas.js} +10 -11
- package/dist/{OcTimePicker-B61MCi0D.js → OcTimePicker-D9fPU8_m.js} +22 -33
- package/dist/{OcTimePopup-zQFKCZLk.js → OcTimePopup-CXGhaOev.js} +2 -3
- package/dist/{OcToggle-C0wTjM_Y.js → OcToggle-bIJaLDMZ.js} +5 -6
- package/dist/Overlay/ConfirmationModal/OcConfirmationModal.js +1 -1
- package/dist/Overlay/CopyTooltip/OcCopyTooltip.js +1 -1
- package/dist/Overlay/Dropdown/OcDropdown.js +3 -4
- package/dist/Overlay/Modal/OcModal.js +3 -4
- package/dist/Overlay/SupportMenu/OcSupportMenu.js +1 -1
- package/dist/Overlay/Tooltip/OcTooltip.js +2 -2
- package/dist/Overlay/Whitelist/OcWhiteList.js +2 -2
- package/dist/SubPlanCard-DHj4RHJZ.js +81 -0
- package/dist/ThumbnailSection-CJBS0QXp.js +41 -0
- package/dist/ThumbnailTheme-hey6se0g.js +119 -0
- package/dist/index-DyVteXE3.js +10028 -0
- package/dist/index.js +129 -175
- package/dist/style.css +1 -1
- package/package.json +1 -16
- package/dist/Calendar.js +0 -103
- package/dist/Cropper.js +0 -6
- package/dist/DatePicker-D3w435Ml.js +0 -263
- package/dist/EmojiPicker.js +0 -4
- package/dist/Form/TimePicker/OcTimePicker.js +0 -6
- package/dist/OcAccordion-DdkNsXvN.js +0 -101
- package/dist/OcAccountSetup-BXDjf48o.js +0 -324
- package/dist/OcAdditionalContent-BMSysCXu.js +0 -612
- package/dist/OcAuthenticationOption.vue_vue_type_script_setup_true_lang-w5Y0ymGN.js +0 -43
- package/dist/OcBanner-Cg2WJV6e.js +0 -108
- package/dist/OcBox.vue_vue_type_script_setup_true_lang-aB397QRg.js +0 -43
- package/dist/OcCardInput-BFE4Xu-S.js +0 -75
- package/dist/OcCheckboxesGroup-CLbquUO2.js +0 -94
- package/dist/OcChip-B1hm2Qni.js +0 -144
- package/dist/OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js +0 -1006
- package/dist/OcConfirmationModal-BfCrRV9r.js +0 -179
- package/dist/OcCopyTooltip.vue_vue_type_script_setup_true_lang-S2RAfV_g.js +0 -65
- package/dist/OcCriteria-CpIohheZ.js +0 -42
- package/dist/OcCustomerCard-DbDOBO03.js +0 -160
- package/dist/OcDropdownItem-DAElmzEu.js +0 -57
- package/dist/OcEmptyPage-CTwgMzRp.js +0 -155
- package/dist/OcExpadingTable.vue_vue_type_script_setup_true_lang-B4HOMDBK.js +0 -815
- package/dist/OcFeatureOverviewCard-RVyrWLVW.js +0 -71
- package/dist/OcFloatContent-BIKQOxSw.js +0 -142
- package/dist/OcFormBuilder-CRXWtt8I.js +0 -177
- package/dist/OcGroupOptions-ChGJvTXl.js +0 -16
- package/dist/OcInfoCard-DpYUZOMZ.js +0 -81
- package/dist/OcInput-tcRxG3Y2.js +0 -227
- package/dist/OcInputOption-CncASfNt.js +0 -160
- package/dist/OcLinkInput-C2ixk-gk.js +0 -143
- package/dist/OcListDetail-6XeME6ko.js +0 -76
- package/dist/OcListUrl.vue_vue_type_script_setup_true_lang-7zZdFM8K.js +0 -750
- package/dist/OcModal-DdD5VFEN.js +0 -187
- package/dist/OcModalCropper-D2OI2iun.js +0 -56
- package/dist/OcModalPage-BLVa-kcB.js +0 -86
- package/dist/OcMultipleUploadFile-B8Wl9Fuq.js +0 -446
- package/dist/OcNumberInput.vue_vue_type_script_setup_true_lang-C4EXUIUe.js +0 -90
- package/dist/OcOnboardingListItem.vue_vue_type_script_setup_true_lang-Cr80xmnz.js +0 -81
- package/dist/OcOption-DK2FBGq7.js +0 -485
- package/dist/OcOverviewIcon-D702Ujka.js +0 -55
- package/dist/OcOverviewItem-DNr5tWnt.js +0 -186
- package/dist/OcPageTitleRight-DMtJ1qmZ.js +0 -243
- package/dist/OcPaginationNumber-IKPorX26.js +0 -172
- package/dist/OcPaymentTab-Cna1IAhO.js +0 -170
- package/dist/OcPhoneInput-AC6BgQhN.js +0 -432
- package/dist/OcPrimaryActions-D5IprKsQ.js +0 -222
- package/dist/OcRadio-CRYfNwV9.js +0 -107
- package/dist/OcRadioGroup-DgfdWJos.js +0 -76
- package/dist/OcRangeInput-C-hoHFhr.js +0 -103
- package/dist/OcSandboxBanner.vue_vue_type_script_setup_true_lang-BD0k_8xa.js +0 -37
- package/dist/OcSectionItem-BFgxO3se.js +0 -84
- package/dist/OcSelectOptions-BQlG_EUA.js +0 -148
- package/dist/OcShareIcon-BB-NPq0r.js +0 -53
- package/dist/OcSingleFileUpload-B8-e1H5t.js +0 -464
- package/dist/OcSnackbar-CKxY1-ej.js +0 -196
- package/dist/OcSteps.vue_vue_type_script_setup_true_lang-CXGy8ma_.js +0 -87
- package/dist/OcSubSidebar.vue_vue_type_script_setup_true_lang-CNxgU07N.js +0 -60
- package/dist/OcSupportMenu.vue_vue_type_script_setup_true_lang-DrjZsWti.js +0 -114
- package/dist/OcTabToSelect-BHAz1Niv.js +0 -183
- package/dist/OcTextArea-BpV1Bnj_.js +0 -78
- package/dist/OcTransferSummary-Bk2GXhrT.js +0 -67
- package/dist/OcVariant.vue_vue_type_script_setup_true_lang-CY_82DLc.js +0 -99
- package/dist/OcVerificationOption.vue_vue_type_script_setup_true_lang-ChqvNoDe.js +0 -59
- package/dist/OcWhiteList.vue_vue_type_script_setup_true_lang-DI9pYU3w.js +0 -64
- package/dist/OnboardingAccordion.vue_vue_type_script_setup_true_lang-B0Z7ETmj.js +0 -113
- package/dist/StoreDesign.js +0 -240
@@ -1,612 +0,0 @@
|
|
1
|
-
import { openBlock as o, createElementBlock as n, normalizeClass as w, createVNode as m, unref as i, createElementVNode as c, toDisplayString as h, createBlock as f, normalizeProps as C, mergeProps as x, createCommentVNode as y, createTextVNode as L, Fragment as g, renderList as v, ref as P, withCtx as l, createSlots as $, renderSlot as p, defineComponent as E, Transition as I, guardReactiveProps as T } from "vue";
|
2
|
-
import "dayjs";
|
3
|
-
import { B as k, D as M, T as A } from "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
|
4
|
-
import { a as z, _ as H } from "./OcPrimaryActions-D5IprKsQ.js";
|
5
|
-
import { _ as j } from "./OcChip-B1hm2Qni.js";
|
6
|
-
import { S as B } from "./OcSkeleton-BdPTmGh0.js";
|
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 N } from "./OcDropdownItem-DAElmzEu.js";
|
15
|
-
import { _ as U, a as O } from "./OcOverviewItem-DNr5tWnt.js";
|
16
|
-
/* empty css */
|
17
|
-
import { C as V } from "./OcCustomerCard-DbDOBO03.js";
|
18
|
-
import { _ as D } from "./OcIcon-CJgBICxh.js";
|
19
|
-
import { _ as F } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
20
|
-
const R = {
|
21
|
-
key: 0,
|
22
|
-
class: "min-w-[138px] flex flex-col gap-y-3"
|
23
|
-
}, q = {
|
24
|
-
key: 1,
|
25
|
-
class: "flex gap-x-4 items-center"
|
26
|
-
}, G = { class: "flex flex-col gap-y-2" }, J = { class: "flex items-center gap-x-2" }, K = { class: "text-oc-text-400 text-sm" }, Q = {
|
27
|
-
key: 0,
|
28
|
-
class: "flex justify-center items-center w-[38px] h-[38px] shrink-0 rounded-full bg-oc-gray-100"
|
29
|
-
}, W = {
|
30
|
-
__name: "OcInfoCardButton",
|
31
|
-
props: {
|
32
|
-
isActive: Boolean,
|
33
|
-
isLoading: Boolean,
|
34
|
-
title: String,
|
35
|
-
content: String,
|
36
|
-
isDropdown: Boolean,
|
37
|
-
chipOptions: Object,
|
38
|
-
dropdownOptions: Object,
|
39
|
-
countryIso: String
|
40
|
-
},
|
41
|
-
setup(e) {
|
42
|
-
return (s, d) => (o(), n("div", {
|
43
|
-
class: w(["cursor-pointer rounded group font-medium justify-center border gap-y-2 md:w-fit w-full flex flex-col hover:shadow-normal", [
|
44
|
-
e.isActive && !e.isLoading ? "border-b-[3px] border-oc-primary" : "border-oc-accent-1-100",
|
45
|
-
e.isLoading ? "p-3" : "px-5 py-4 min-h-[62px] max-h-[76px]"
|
46
|
-
]])
|
47
|
-
}, [
|
48
|
-
e.isLoading ? (o(), n("div", R, [
|
49
|
-
m(i(B), { class: "h-[14px] w-[80%] rounded-sm" }),
|
50
|
-
m(i(B), { class: "h-[20px] w-full rounded-sm" })
|
51
|
-
])) : (o(), n("div", q, [
|
52
|
-
c("div", G, [
|
53
|
-
c("div", J, [
|
54
|
-
c("span", K, h(e.title), 1),
|
55
|
-
e.chipOptions ? (o(), f(i(j), C(x({ key: 0 }, e.chipOptions)), null, 16)) : y("", !0)
|
56
|
-
]),
|
57
|
-
c("span", {
|
58
|
-
class: w(["flex gap-x-4 items-center text-xl group-hover:text-oc-text", e.isActive ? "text-oc-text" : "text-oc-text-400"])
|
59
|
-
}, [
|
60
|
-
e.countryIso ? (o(), n("div", Q, [
|
61
|
-
c("div", {
|
62
|
-
class: w(["fi !w-[24px] !h-[16px] !rounded-[1px]", `fi-${e.countryIso}`])
|
63
|
-
}, null, 2)
|
64
|
-
])) : y("", !0),
|
65
|
-
L(" " + h(e.content), 1)
|
66
|
-
], 2)
|
67
|
-
]),
|
68
|
-
e.isDropdown ? (o(), f(i(k), C(x({ key: 0 }, e.dropdownOptions)), null, 16)) : y("", !0)
|
69
|
-
]))
|
70
|
-
], 2));
|
71
|
-
}
|
72
|
-
}, X = { class: "flex items-center gap-x-4 overflow-hidden" }, Y = { class: "flex gap-x-2 overflow-auto" }, Z = ["alt", "src"], _ = {
|
73
|
-
__name: "OcPaymentMethods",
|
74
|
-
props: {
|
75
|
-
methods: {
|
76
|
-
type: Array,
|
77
|
-
default: () => []
|
78
|
-
}
|
79
|
-
},
|
80
|
-
setup(e) {
|
81
|
-
return (s, d) => (o(), n("div", X, [
|
82
|
-
d[0] || (d[0] = c("span", { class: "text-xs shrink-0 font-medium text-oc-text-300 uppercase" }, " Payment methods ", -1)),
|
83
|
-
c("div", Y, [
|
84
|
-
(o(!0), n(g, null, v(e.methods, (t) => (o(), n("img", {
|
85
|
-
key: t,
|
86
|
-
width: "35",
|
87
|
-
alt: t,
|
88
|
-
height: "24",
|
89
|
-
src: t
|
90
|
-
}, null, 8, Z))), 128))
|
91
|
-
])
|
92
|
-
]));
|
93
|
-
}
|
94
|
-
}, ee = { class: "flex justify-between md:flex-row flex-col gap-y-3 gap-x-4 md:gap-y-0" }, te = { key: 2 }, oe = {
|
95
|
-
key: 4,
|
96
|
-
class: "flex shrink-0 gap-x-3"
|
97
|
-
}, se = {
|
98
|
-
__name: "OcTopActions",
|
99
|
-
props: {
|
100
|
-
moreButtonProps: Object,
|
101
|
-
paymentMethods: {
|
102
|
-
type: Array,
|
103
|
-
default: () => []
|
104
|
-
},
|
105
|
-
secondaryButtonProps: Object,
|
106
|
-
isLoading: Boolean,
|
107
|
-
dropdownItems: {
|
108
|
-
type: Array,
|
109
|
-
default: () => []
|
110
|
-
},
|
111
|
-
dropdownProps: {
|
112
|
-
type: Object,
|
113
|
-
default: () => ({})
|
114
|
-
}
|
115
|
-
},
|
116
|
-
setup(e) {
|
117
|
-
const s = P(!1);
|
118
|
-
return (d, t) => {
|
119
|
-
var r;
|
120
|
-
return o(), n("div", ee, [
|
121
|
-
e.isLoading ? (o(), f(i(B), {
|
122
|
-
key: 0,
|
123
|
-
class: "h-[20px] w-[322px] rounded-sm"
|
124
|
-
})) : y("", !0),
|
125
|
-
!e.isLoading && e.paymentMethods.length ? (o(), f(_, {
|
126
|
-
key: 1,
|
127
|
-
methods: e.paymentMethods
|
128
|
-
}, null, 8, ["methods"])) : (o(), n("div", te)),
|
129
|
-
e.isLoading ? (o(), f(i(B), {
|
130
|
-
key: 3,
|
131
|
-
class: "h-[20px] w-[168px] rounded-sm"
|
132
|
-
})) : (o(), n("div", oe, [
|
133
|
-
m(i(M), x({
|
134
|
-
modelValue: s.value,
|
135
|
-
"onUpdate:modelValue": t[0] || (t[0] = (a) => s.value = a),
|
136
|
-
"popper-options": { strategy: "fixed" },
|
137
|
-
placement: "bottom",
|
138
|
-
class: "text-sm"
|
139
|
-
}, e.dropdownProps), {
|
140
|
-
menu: l(() => [
|
141
|
-
(o(!0), n(g, null, v(e.dropdownItems, (a, u) => (o(), f(i(N), x({
|
142
|
-
key: u,
|
143
|
-
ref_for: !0
|
144
|
-
}, a), null, 16))), 128))
|
145
|
-
]),
|
146
|
-
default: l(() => [
|
147
|
-
m(i(k), x({
|
148
|
-
"left-icon": "dots-vertical",
|
149
|
-
variant: "secondary"
|
150
|
-
}, e.moreButtonProps), null, 16)
|
151
|
-
]),
|
152
|
-
_: 1
|
153
|
-
}, 16, ["modelValue"]),
|
154
|
-
m(i(A), {
|
155
|
-
"popper-options": { strategy: "fixed" },
|
156
|
-
position: "top"
|
157
|
-
}, $({
|
158
|
-
default: l(() => [
|
159
|
-
m(i(k), x({
|
160
|
-
variant: "secondary",
|
161
|
-
label: "Top up balance"
|
162
|
-
}, e.secondaryButtonProps), null, 16)
|
163
|
-
]),
|
164
|
-
_: 2
|
165
|
-
}, [
|
166
|
-
(r = e.secondaryButtonProps) != null && r.tooltip ? {
|
167
|
-
name: "popper",
|
168
|
-
fn: l(() => [
|
169
|
-
L(h(e.secondaryButtonProps.tooltip), 1)
|
170
|
-
]),
|
171
|
-
key: "0"
|
172
|
-
} : void 0
|
173
|
-
]), 1024)
|
174
|
-
]))
|
175
|
-
]);
|
176
|
-
};
|
177
|
-
}
|
178
|
-
}, ne = { class: "flex flex-col gap-y-5" }, ae = { class: "flex gap-x-5 overflow-x-auto" }, ie = {
|
179
|
-
__name: "OcBalanceOverview",
|
180
|
-
props: {
|
181
|
-
overviewItems: {
|
182
|
-
type: Array,
|
183
|
-
default: () => []
|
184
|
-
},
|
185
|
-
overviewTabs: {
|
186
|
-
type: Array,
|
187
|
-
default: () => []
|
188
|
-
},
|
189
|
-
overviewActiveTab: {
|
190
|
-
type: String,
|
191
|
-
default: ""
|
192
|
-
},
|
193
|
-
secondaryButtonProps: Object,
|
194
|
-
moreButtonProps: Object,
|
195
|
-
containerClass: String,
|
196
|
-
dropdownItems: {
|
197
|
-
type: Array,
|
198
|
-
default: () => []
|
199
|
-
},
|
200
|
-
paymentMethods: {
|
201
|
-
type: Array,
|
202
|
-
default: () => []
|
203
|
-
},
|
204
|
-
isLoading: Boolean,
|
205
|
-
dropdownProps: {
|
206
|
-
type: Object,
|
207
|
-
default: () => ({})
|
208
|
-
}
|
209
|
-
},
|
210
|
-
emits: {
|
211
|
-
changeTab: []
|
212
|
-
},
|
213
|
-
setup(e) {
|
214
|
-
return (s, d) => (o(), n("div", ne, [
|
215
|
-
c("div", ae, [
|
216
|
-
(o(!0), n(g, null, v(e.isLoading ? 2 : e.overviewTabs, (t) => p(s.$slots, t.value, { tab: t }, () => [
|
217
|
-
(o(), f(W, {
|
218
|
-
key: t.value,
|
219
|
-
title: t.title,
|
220
|
-
"is-loading": e.isLoading,
|
221
|
-
content: t.content,
|
222
|
-
"chip-options": t.chipOptions,
|
223
|
-
"is-dropdown": t.isDropdown,
|
224
|
-
"dropdown-options": t.dropdownOptions,
|
225
|
-
"is-active": t.value === e.overviewActiveTab,
|
226
|
-
"country-iso": t.countryIso,
|
227
|
-
onClick: (r) => s.$emit("changeTab", t.value)
|
228
|
-
}, null, 8, ["title", "is-loading", "content", "chip-options", "is-dropdown", "dropdown-options", "is-active", "country-iso", "onClick"]))
|
229
|
-
])), 256))
|
230
|
-
]),
|
231
|
-
d[0] || (d[0] = c("div", { class: "border-t border-oc-gray-200" }, null, -1)),
|
232
|
-
m(se, {
|
233
|
-
"is-loading": e.isLoading,
|
234
|
-
"more-button-props": e.moreButtonProps,
|
235
|
-
"secondary-button-props": e.secondaryButtonProps,
|
236
|
-
"payment-methods": e.paymentMethods,
|
237
|
-
"dropdown-items": e.dropdownItems,
|
238
|
-
"dropdown-props": e.dropdownProps
|
239
|
-
}, null, 8, ["is-loading", "more-button-props", "secondary-button-props", "payment-methods", "dropdown-items", "dropdown-props"]),
|
240
|
-
m(i(U), {
|
241
|
-
"is-loading": e.isLoading,
|
242
|
-
title: "",
|
243
|
-
items: e.overviewItems,
|
244
|
-
"container-class": e.containerClass
|
245
|
-
}, {
|
246
|
-
warning: l(() => [
|
247
|
-
p(s.$slots, "warning")
|
248
|
-
]),
|
249
|
-
_: 3
|
250
|
-
}, 8, ["is-loading", "items", "container-class"])
|
251
|
-
]));
|
252
|
-
}
|
253
|
-
}, re = {}, le = { class: "flex gap-x-5 md:flex-nowrap flex-wrap p-3 md:items-center bg-oc-gray-50 border border-oc-gray-200 rounded overflow-hidden" };
|
254
|
-
function de(e, s) {
|
255
|
-
return o(), n("div", le, [
|
256
|
-
p(e.$slots, "default")
|
257
|
-
]);
|
258
|
-
}
|
259
|
-
const S = /* @__PURE__ */ F(re, [["render", de]]), ce = { class: "flex" }, ue = {
|
260
|
-
key: 0,
|
261
|
-
class: "p-2"
|
262
|
-
}, me = { class: "py-2 px-3" }, fe = {
|
263
|
-
key: 0,
|
264
|
-
class: "max-w-[250px] fixed z-[1006] top-0 right-0 transition-all duration-500 flex flex-col gap-y-2 w-full bg-white h-screen overflow-y-auto"
|
265
|
-
}, ye = { class: "p-5 flex items-center justify-between" }, pe = { class: "px-5 flex-1 flex flex-col gap-y-5" }, ve = /* @__PURE__ */ E({
|
266
|
-
__name: "MobileDynamicType",
|
267
|
-
props: {
|
268
|
-
boxes: { type: Array, default: () => [] },
|
269
|
-
isCustomer: { type: Boolean, default: !1 },
|
270
|
-
customerCardVariant: { type: String, default: "big" },
|
271
|
-
customer: { type: Object, default: null }
|
272
|
-
},
|
273
|
-
emits: ["addCustomer"],
|
274
|
-
setup(e) {
|
275
|
-
const s = P(!1);
|
276
|
-
return (d, t) => (o(), n("div", null, [
|
277
|
-
m(S, { class: "!flex-nowrap flex-col w-full" }, {
|
278
|
-
default: l(() => [
|
279
|
-
c("div", ce, [
|
280
|
-
(o(!0), n(g, null, v(e.boxes[0].items.slice(0, 2), (r, a) => (o(), f(i(O), {
|
281
|
-
key: a,
|
282
|
-
"is-transparent": "",
|
283
|
-
title: r.title,
|
284
|
-
content: r.content
|
285
|
-
}, {
|
286
|
-
default: l(() => [
|
287
|
-
d.box.showInfo ? (o(), n("div", ue, [
|
288
|
-
m(i(A), null, {
|
289
|
-
popper: l(() => [
|
290
|
-
c("div", me, h(d.box.infoTooltip), 1)
|
291
|
-
]),
|
292
|
-
default: l(() => [
|
293
|
-
m(i(D), {
|
294
|
-
width: "16",
|
295
|
-
height: "16",
|
296
|
-
class: "!w-[20px] !h-[20px] text-oc-text-300",
|
297
|
-
name: "information"
|
298
|
-
})
|
299
|
-
]),
|
300
|
-
_: 1
|
301
|
-
})
|
302
|
-
])) : y("", !0)
|
303
|
-
]),
|
304
|
-
_: 2
|
305
|
-
}, 1032, ["title", "content"]))), 128))
|
306
|
-
]),
|
307
|
-
m(i(k), {
|
308
|
-
class: "self-start px-3",
|
309
|
-
label: "See details ->",
|
310
|
-
size: "small",
|
311
|
-
"is-transparent": "",
|
312
|
-
onClick: t[0] || (t[0] = (r) => s.value = !0)
|
313
|
-
})
|
314
|
-
]),
|
315
|
-
_: 1
|
316
|
-
}),
|
317
|
-
m(I, { name: "slow-fade" }, {
|
318
|
-
default: l(() => [
|
319
|
-
s.value ? (o(), n("div", {
|
320
|
-
key: 0,
|
321
|
-
class: "fixed z-[1005] top-0 left-0 w-screen flex justify-end h-screen bg-black/[.45]",
|
322
|
-
onClick: t[1] || (t[1] = (r) => s.value = !1)
|
323
|
-
})) : y("", !0)
|
324
|
-
]),
|
325
|
-
_: 1
|
326
|
-
}),
|
327
|
-
m(I, { name: "slide-from-right" }, {
|
328
|
-
default: l(() => [
|
329
|
-
s.value ? (o(), n("div", fe, [
|
330
|
-
c("div", ye, [
|
331
|
-
t[4] || (t[4] = c("span", { class: "font-medium" }, "Details", -1)),
|
332
|
-
m(i(k), {
|
333
|
-
size: "small",
|
334
|
-
"left-icon": "x",
|
335
|
-
label: "Close",
|
336
|
-
"is-transparent": "",
|
337
|
-
class: "px-3",
|
338
|
-
variant: "secondary",
|
339
|
-
onClick: t[2] || (t[2] = (r) => s.value = !1)
|
340
|
-
})
|
341
|
-
]),
|
342
|
-
c("div", pe, [
|
343
|
-
(o(!0), n(g, null, v(e.boxes, (r, a) => (o(), f(S, { key: a }, {
|
344
|
-
default: l(() => [
|
345
|
-
(o(!0), n(g, null, v(r.items, (u, b) => (o(), f(i(O), x({
|
346
|
-
key: `${a}-${b}`,
|
347
|
-
"is-transparent": "",
|
348
|
-
title: u.title,
|
349
|
-
content: u.content,
|
350
|
-
class: u.class,
|
351
|
-
"is-loading": u.isLoading,
|
352
|
-
ref_for: !0
|
353
|
-
}, u), $({ _: 2 }, [
|
354
|
-
u.slot && d.$slots[u.slot] ? {
|
355
|
-
name: "content",
|
356
|
-
fn: l(() => [
|
357
|
-
p(d.$slots, u.slot, {
|
358
|
-
data: u.content
|
359
|
-
})
|
360
|
-
]),
|
361
|
-
key: "0"
|
362
|
-
} : void 0
|
363
|
-
]), 1040, ["title", "content", "class", "is-loading"]))), 128))
|
364
|
-
]),
|
365
|
-
_: 2
|
366
|
-
}, 1024))), 128)),
|
367
|
-
e.isCustomer ? (o(), f(i(V), {
|
368
|
-
key: 0,
|
369
|
-
variant: e.customerCardVariant,
|
370
|
-
customer: e.customer,
|
371
|
-
onAddCustomer: t[3] || (t[3] = (r) => d.$emit("addCustomer"))
|
372
|
-
}, null, 8, ["variant", "customer"])) : y("", !0)
|
373
|
-
])
|
374
|
-
])) : y("", !0)
|
375
|
-
]),
|
376
|
-
_: 3
|
377
|
-
})
|
378
|
-
]));
|
379
|
-
}
|
380
|
-
}), ge = { class: "hidden md:flex md:gap-5 gap-3 md:flex-row flex-col" }, xe = { class: "py-2 px-3" }, we = {
|
381
|
-
__name: "OcDynamicType",
|
382
|
-
props: {
|
383
|
-
boxes: { type: Array, default: () => [] },
|
384
|
-
isCustomer: { type: Boolean, default: !1 },
|
385
|
-
customerCardVariant: { type: String, default: "big" },
|
386
|
-
customer: { type: Object, default: null },
|
387
|
-
customerIsHover: { type: Boolean, default: !1 },
|
388
|
-
customerIsEdit: { type: Boolean, default: !1 }
|
389
|
-
},
|
390
|
-
emits: ["addCustomer", "editCustomer"],
|
391
|
-
setup(e) {
|
392
|
-
return (s, d) => (o(), n(g, null, [
|
393
|
-
c("div", ge, [
|
394
|
-
(o(!0), n(g, null, v(e.boxes, (t, r) => (o(), f(S, {
|
395
|
-
key: r,
|
396
|
-
class: w(
|
397
|
-
(e.isCustomer ? "!grid grid-cols-4 grid-rows-2 gap-y-4 w-full !py-4 " : " ") + (t == null ? void 0 : t.style)
|
398
|
-
)
|
399
|
-
}, {
|
400
|
-
default: l(() => [
|
401
|
-
t.slot && s.$slots[t.slot] ? p(s.$slots, t.slot, {
|
402
|
-
key: 0,
|
403
|
-
data: { ...t, key: r }
|
404
|
-
}) : (o(!0), n(g, { key: 1 }, v(t.items, (a, u) => (o(), f(i(O), x({
|
405
|
-
key: `${r}-${u}`,
|
406
|
-
"is-transparent": "",
|
407
|
-
title: a.title,
|
408
|
-
class: a.class,
|
409
|
-
"is-loading": a.isLoading,
|
410
|
-
content: a.content,
|
411
|
-
ref_for: !0
|
412
|
-
}, a), $({ _: 2 }, [
|
413
|
-
a.slot && s.$slots[a.slot] ? {
|
414
|
-
name: "content",
|
415
|
-
fn: l(() => [
|
416
|
-
p(s.$slots, a.slot, {
|
417
|
-
data: a.content
|
418
|
-
})
|
419
|
-
]),
|
420
|
-
key: "0"
|
421
|
-
} : void 0
|
422
|
-
]), 1040, ["title", "class", "is-loading", "content"]))), 128)),
|
423
|
-
t.showInfo ? (o(), n("div", {
|
424
|
-
key: 2,
|
425
|
-
class: w(["p-2", t.infoTooltipStyle])
|
426
|
-
}, [
|
427
|
-
m(i(A), { "popper-options": { strategy: "fixed" } }, {
|
428
|
-
popper: l(() => [
|
429
|
-
p(s.$slots, t.infoTooltipSlot, {}, () => [
|
430
|
-
c("div", xe, h(t.infoTooltip), 1)
|
431
|
-
])
|
432
|
-
]),
|
433
|
-
default: l(() => [
|
434
|
-
m(i(D), {
|
435
|
-
width: "16",
|
436
|
-
height: "16",
|
437
|
-
class: "!w-[20px] !h-[20px] text-oc-text-300",
|
438
|
-
name: "information"
|
439
|
-
})
|
440
|
-
]),
|
441
|
-
_: 2
|
442
|
-
}, 1024)
|
443
|
-
], 2)) : y("", !0)
|
444
|
-
]),
|
445
|
-
_: 2
|
446
|
-
}, 1032, ["class"]))), 128)),
|
447
|
-
e.isCustomer ? (o(), f(i(V), {
|
448
|
-
key: 0,
|
449
|
-
variant: e.customerCardVariant,
|
450
|
-
customer: e.customer,
|
451
|
-
"is-hover": e.customerIsHover,
|
452
|
-
"is-edit": e.customerIsEdit,
|
453
|
-
class: "max-w-[300px]",
|
454
|
-
onAddCustomer: d[0] || (d[0] = (t) => s.$emit("addCustomer")),
|
455
|
-
onEditCustomer: d[1] || (d[1] = (t) => s.$emit("editCustomer", t))
|
456
|
-
}, $({ _: 2 }, [
|
457
|
-
s.$slots["customer-leading"] ? {
|
458
|
-
name: "leading",
|
459
|
-
fn: l(() => [
|
460
|
-
p(s.$slots, "customer-leading")
|
461
|
-
]),
|
462
|
-
key: "0"
|
463
|
-
} : void 0,
|
464
|
-
s.$slots["customer-bottom"] ? {
|
465
|
-
name: "bottom",
|
466
|
-
fn: l(() => [
|
467
|
-
p(s.$slots, "customer-bottom")
|
468
|
-
]),
|
469
|
-
key: "1"
|
470
|
-
} : void 0
|
471
|
-
]), 1032, ["variant", "customer", "is-hover", "is-edit"])) : y("", !0)
|
472
|
-
]),
|
473
|
-
m(ve, {
|
474
|
-
class: "flex md:hidden",
|
475
|
-
boxes: e.boxes,
|
476
|
-
"is-customer": e.isCustomer,
|
477
|
-
"customer-card-variant": e.customerCardVariant,
|
478
|
-
customer: e.customer,
|
479
|
-
onAddCustomer: d[2] || (d[2] = (t) => s.$emit("addCustomer"))
|
480
|
-
}, null, 8, ["boxes", "is-customer", "customer-card-variant", "customer"])
|
481
|
-
], 64));
|
482
|
-
}
|
483
|
-
}, he = { class: "md:pt-5 pt-0 md:px-10 px-5" }, $e = { class: "flex items-center gap-x-3" }, be = { class: "font-medium" }, ke = { class: "flex items-center gap-x-2 max-w-full" }, Ce = ["href"], Be = { class: "truncate" }, Oe = { class: "text-oc-text whitespace-nowrap" }, Je = {
|
484
|
-
__name: "OcAdditionalContent",
|
485
|
-
props: {
|
486
|
-
mainLink: { type: String, default: "" },
|
487
|
-
balanceContainerClass: { type: String, default: "" },
|
488
|
-
userId: { type: String, default: "" },
|
489
|
-
chipVariant: { type: String, default: "" },
|
490
|
-
chipLabel: { type: String, default: "" },
|
491
|
-
additionalTitle: { type: String, default: "" },
|
492
|
-
primaryActions: { type: Object, default: null },
|
493
|
-
overviewActiveTab: { type: String, default: "" },
|
494
|
-
customerCardVariant: { type: String, default: "" },
|
495
|
-
customer: { type: Object, default: null },
|
496
|
-
customerIsHover: { type: Boolean, default: !1 },
|
497
|
-
customerIsEdit: { type: Boolean, default: !1 },
|
498
|
-
variant: {
|
499
|
-
type: String,
|
500
|
-
default: "default",
|
501
|
-
validator: (e) => ["default", "dynamic", "balance"].includes(e)
|
502
|
-
},
|
503
|
-
boxes: { type: Array, default: () => [] },
|
504
|
-
isCustomer: { type: Boolean, default: !1 },
|
505
|
-
isLoading: { type: Boolean, default: !1 },
|
506
|
-
overviewItems: { type: Array, default: () => [] },
|
507
|
-
overviewTabs: { type: Array, default: () => [] },
|
508
|
-
secondaryButtonProps: { type: Object, default: null },
|
509
|
-
moreButtonProps: { type: Object, default: null },
|
510
|
-
dropdownProps: {
|
511
|
-
type: Object,
|
512
|
-
default: () => ({})
|
513
|
-
},
|
514
|
-
dropdownItems: { type: Array, default: () => [] },
|
515
|
-
paymentMethods: { type: Array, default: () => [] },
|
516
|
-
additionalStyling: { type: String, default: "" },
|
517
|
-
href: { type: String, default: "" }
|
518
|
-
},
|
519
|
-
emits: {
|
520
|
-
changeTab: [],
|
521
|
-
addCustomer: [],
|
522
|
-
editCustomer: []
|
523
|
-
},
|
524
|
-
setup(e) {
|
525
|
-
const s = e, d = async () => {
|
526
|
-
try {
|
527
|
-
await navigator.clipboard.writeText(s.mainLink + s.userId);
|
528
|
-
} catch (t) {
|
529
|
-
console.error("Unable to copy text to clipboard. Error: ", t);
|
530
|
-
}
|
531
|
-
};
|
532
|
-
return (t, r) => (o(), n("div", he, [
|
533
|
-
e.variant === "default" ? (o(), f(z, {
|
534
|
-
key: 0,
|
535
|
-
description: e.mainLink,
|
536
|
-
title: e.additionalTitle,
|
537
|
-
class: w(["border rounded md:py-4 py-3 md:px-5 px-4 border-oc-gray-200 bg-oc-gray-50 flex flex-col gap-y-2", e.additionalStyling])
|
538
|
-
}, {
|
539
|
-
title: l(() => [
|
540
|
-
c("div", $e, [
|
541
|
-
c("span", be, h(e.additionalTitle), 1),
|
542
|
-
e.chipVariant ? (o(), f(i(j), {
|
543
|
-
key: 0,
|
544
|
-
variant: e.chipVariant,
|
545
|
-
label: e.chipLabel
|
546
|
-
}, null, 8, ["variant", "label"])) : y("", !0)
|
547
|
-
])
|
548
|
-
]),
|
549
|
-
description: l(() => [
|
550
|
-
c("div", ke, [
|
551
|
-
c("a", {
|
552
|
-
href: e.href || `${e.mainLink}${e.userId}`,
|
553
|
-
target: "_blank",
|
554
|
-
class: "text-oc-text-400 flex items-center overflow-hidden cursor-pointer"
|
555
|
-
}, [
|
556
|
-
c("div", Be, h(e.mainLink), 1),
|
557
|
-
c("div", Oe, h(e.userId), 1)
|
558
|
-
], 8, Ce),
|
559
|
-
m(i(H), {
|
560
|
-
"primary-actions": e.primaryActions,
|
561
|
-
onCopy: d
|
562
|
-
}, null, 8, ["primary-actions"])
|
563
|
-
])
|
564
|
-
]),
|
565
|
-
_: 1
|
566
|
-
}, 8, ["description", "title", "class"])) : e.variant === "dynamic" ? (o(), f(we, {
|
567
|
-
key: 1,
|
568
|
-
boxes: e.boxes,
|
569
|
-
"customer-card-variant": e.customerCardVariant,
|
570
|
-
customer: e.customer,
|
571
|
-
"is-customer": e.isCustomer,
|
572
|
-
"customer-is-hover": e.customerIsHover,
|
573
|
-
"customer-is-edit": e.customerIsEdit,
|
574
|
-
class: w(e.additionalStyling),
|
575
|
-
onAddCustomer: r[0] || (r[0] = (a) => t.$emit("addCustomer")),
|
576
|
-
onEditCustomer: r[1] || (r[1] = (a) => t.$emit("editCustomer", a))
|
577
|
-
}, $({ _: 2 }, [
|
578
|
-
v(t.$slots, (a, u) => ({
|
579
|
-
name: u,
|
580
|
-
fn: l((b) => [
|
581
|
-
p(t.$slots, u, C(T(b)))
|
582
|
-
])
|
583
|
-
}))
|
584
|
-
]), 1032, ["boxes", "customer-card-variant", "customer", "is-customer", "customer-is-hover", "customer-is-edit", "class"])) : e.variant === "balance" ? (o(), f(ie, {
|
585
|
-
key: 2,
|
586
|
-
"overview-items": e.overviewItems,
|
587
|
-
"overview-tabs": e.overviewTabs,
|
588
|
-
"secondary-button-props": e.secondaryButtonProps,
|
589
|
-
"more-button-props": e.moreButtonProps,
|
590
|
-
"overview-active-tab": e.overviewActiveTab,
|
591
|
-
"container-class": e.balanceContainerClass,
|
592
|
-
"payment-methods": e.paymentMethods,
|
593
|
-
"dropdown-items": e.dropdownItems,
|
594
|
-
"dropdown-props": e.dropdownProps,
|
595
|
-
class: w(e.additionalStyling),
|
596
|
-
"is-loading": e.isLoading,
|
597
|
-
onChangeTab: r[2] || (r[2] = (a) => t.$emit("changeTab", a))
|
598
|
-
}, $({ _: 2 }, [
|
599
|
-
v(t.$slots, (a, u) => ({
|
600
|
-
name: u,
|
601
|
-
fn: l((b) => [
|
602
|
-
p(t.$slots, u, C(T(b)))
|
603
|
-
])
|
604
|
-
}))
|
605
|
-
]), 1032, ["overview-items", "overview-tabs", "secondary-button-props", "more-button-props", "overview-active-tab", "container-class", "payment-methods", "dropdown-items", "dropdown-props", "class", "is-loading"])) : y("", !0)
|
606
|
-
]));
|
607
|
-
}
|
608
|
-
};
|
609
|
-
export {
|
610
|
-
Je as _,
|
611
|
-
W as a
|
612
|
-
};
|
@@ -1,43 +0,0 @@
|
|
1
|
-
import { defineComponent as c, openBlock as e, createElementBlock as a, normalizeClass as i, createBlock as r, unref as o, createCommentVNode as n, createElementVNode as m, toDisplayString as s, mergeProps as l } from "vue";
|
2
|
-
import "dayjs";
|
3
|
-
import "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
|
4
|
-
import { _ as h } from "./OcIcon-CJgBICxh.js";
|
5
|
-
import { _ as p } 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
|
-
const O = /* @__PURE__ */ c({
|
15
|
-
__name: "OcAuthenticationOption",
|
16
|
-
props: {
|
17
|
-
icon: String,
|
18
|
-
width: String,
|
19
|
-
height: String,
|
20
|
-
iconClass: String,
|
21
|
-
title: String,
|
22
|
-
isActive: Boolean,
|
23
|
-
chipProps: Object
|
24
|
-
},
|
25
|
-
setup(t) {
|
26
|
-
return (g, d) => (e(), a("div", {
|
27
|
-
class: i(["relative border rounded gap-x-3 flex justify-center items-center py-6 px-5 bg-oc-bg-light shadow-sm cursor-pointer hover:border-oc-primary duration-500", t.isActive ? "border-oc-primary" : "border-oc-gray-200"])
|
28
|
-
}, [
|
29
|
-
t.icon ? (e(), r(o(h), {
|
30
|
-
key: 0,
|
31
|
-
name: t.icon,
|
32
|
-
width: t.width,
|
33
|
-
height: t.height,
|
34
|
-
class: i(t.iconClass)
|
35
|
-
}, null, 8, ["name", "width", "height", "class"])) : n("", !0),
|
36
|
-
m("span", null, s(t.title), 1),
|
37
|
-
t.chipProps ? (e(), r(o(p), l({ key: 1 }, t.chipProps, { class: "absolute top-0 -translate-y-1/2 sm:right-9" }), null, 16)) : n("", !0)
|
38
|
-
], 2));
|
39
|
-
}
|
40
|
-
});
|
41
|
-
export {
|
42
|
-
O as _
|
43
|
-
};
|