@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,179 +0,0 @@
|
|
1
|
-
import { openBlock as s, createElementBlock as r, normalizeClass as d, createVNode as g, unref as v, createCommentVNode as y, createElementVNode as u, renderSlot as b, computed as m, createBlock as S, withCtx as f, createSlots as B } from "vue";
|
2
|
-
import "dayjs";
|
3
|
-
import "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
|
4
|
-
/* empty css */
|
5
|
-
import "libphonenumber-js";
|
6
|
-
/* empty css */
|
7
|
-
import "v-calendar";
|
8
|
-
/* empty css */
|
9
|
-
import "./Cropper.js";
|
10
|
-
import "vue-draggable-next";
|
11
|
-
import { _ as L } from "./OcModal-DdD5VFEN.js";
|
12
|
-
import { _ as $ } from "./OcIcon-CJgBICxh.js";
|
13
|
-
import "@popperjs/core";
|
14
|
-
const h = { class: "text-center" }, w = ["innerHTML"], x = {
|
15
|
-
__name: "OcConfirmation",
|
16
|
-
props: {
|
17
|
-
description: String,
|
18
|
-
iconClass: String,
|
19
|
-
variant: {
|
20
|
-
type: String,
|
21
|
-
default: "delete"
|
22
|
-
},
|
23
|
-
hideIcon: {
|
24
|
-
type: Boolean,
|
25
|
-
default: !1
|
26
|
-
},
|
27
|
-
icon: String,
|
28
|
-
contentClass: String
|
29
|
-
},
|
30
|
-
setup(e) {
|
31
|
-
const o = {
|
32
|
-
delete: "bin",
|
33
|
-
warning: "alert",
|
34
|
-
success: "check-2",
|
35
|
-
question: "question-mark"
|
36
|
-
}, t = {
|
37
|
-
delete: "text-oc-error bg-oc-error-50-tr",
|
38
|
-
warning: "text-oc-warning-600 bg-oc-warning-50-tr",
|
39
|
-
success: "text-oc-success bg-oc-success-50-tr",
|
40
|
-
question: "text-oc-accent-1 bg-oc-accent-1-50-tr"
|
41
|
-
};
|
42
|
-
return (i, l) => (s(), r("div", {
|
43
|
-
class: d(["flex flex-col gap-y-4 items-center", e.contentClass])
|
44
|
-
}, [
|
45
|
-
e.hideIcon ? y("", !0) : (s(), r("div", {
|
46
|
-
key: 0,
|
47
|
-
class: d(["w-[48px] aspect-square rounded-full flex items-center justify-center", [t[e.variant], e.iconClass]])
|
48
|
-
}, [
|
49
|
-
g(v($), {
|
50
|
-
name: e.icon ?? o[e.variant]
|
51
|
-
}, null, 8, ["name"])
|
52
|
-
], 2)),
|
53
|
-
u("div", h, [
|
54
|
-
b(i.$slots, "description", {}, () => [
|
55
|
-
u("span", { innerHTML: e.description }, null, 8, w)
|
56
|
-
])
|
57
|
-
])
|
58
|
-
], 2));
|
59
|
-
}
|
60
|
-
}, T = {
|
61
|
-
__name: "OcConfirmationModal",
|
62
|
-
props: {
|
63
|
-
modelValue: {
|
64
|
-
type: Boolean,
|
65
|
-
default: !1
|
66
|
-
},
|
67
|
-
title: {
|
68
|
-
type: String,
|
69
|
-
default: "Are you sure?"
|
70
|
-
},
|
71
|
-
iconClass: {
|
72
|
-
type: String,
|
73
|
-
default: ""
|
74
|
-
},
|
75
|
-
description: {
|
76
|
-
type: String,
|
77
|
-
default: ""
|
78
|
-
},
|
79
|
-
variant: {
|
80
|
-
type: String,
|
81
|
-
default: "delete"
|
82
|
-
},
|
83
|
-
icon: String,
|
84
|
-
labelConfirm: String,
|
85
|
-
labelCancel: String,
|
86
|
-
isLoading: {
|
87
|
-
type: Boolean,
|
88
|
-
default: !1
|
89
|
-
},
|
90
|
-
hideIcon: {
|
91
|
-
type: Boolean,
|
92
|
-
default: !1
|
93
|
-
},
|
94
|
-
persistent: {
|
95
|
-
type: Boolean,
|
96
|
-
default: !1
|
97
|
-
},
|
98
|
-
contentClass: String,
|
99
|
-
confirmButtonProps: Object
|
100
|
-
},
|
101
|
-
emits: ["confirm", "cancel", "update:model-value"],
|
102
|
-
setup(e, { emit: o }) {
|
103
|
-
const t = e, i = o, l = m(() => ({
|
104
|
-
delete: {},
|
105
|
-
warning: {},
|
106
|
-
success: {
|
107
|
-
class: "hidden"
|
108
|
-
},
|
109
|
-
question: {
|
110
|
-
label: "No"
|
111
|
-
}
|
112
|
-
})), c = m(() => ({
|
113
|
-
delete: {
|
114
|
-
label: "Delete",
|
115
|
-
variant: "destructive",
|
116
|
-
isLoading: t.isLoading ?? !1
|
117
|
-
},
|
118
|
-
warning: {
|
119
|
-
label: "Delete",
|
120
|
-
variant: "destructive",
|
121
|
-
isLoading: t.isLoading ?? !1
|
122
|
-
},
|
123
|
-
success: {
|
124
|
-
isLoading: t.isLoading ?? !1
|
125
|
-
},
|
126
|
-
question: {
|
127
|
-
label: "Yes",
|
128
|
-
isLoading: t.isLoading ?? !1
|
129
|
-
}
|
130
|
-
})), C = (n) => {
|
131
|
-
i("update:model-value", n), i("cancel");
|
132
|
-
};
|
133
|
-
return (n, a) => (s(), S(v(L), {
|
134
|
-
size: "small",
|
135
|
-
"model-value": e.modelValue,
|
136
|
-
title: e.title,
|
137
|
-
"is-borderless": "",
|
138
|
-
persistent: e.persistent,
|
139
|
-
"cancel-button-props": e.labelCancel ? {
|
140
|
-
...l.value[e.variant],
|
141
|
-
label: e.labelCancel
|
142
|
-
} : l.value[e.variant],
|
143
|
-
"confirm-button-props": {
|
144
|
-
...e.labelConfirm ? {
|
145
|
-
...c.value[e.variant],
|
146
|
-
label: e.labelConfirm
|
147
|
-
} : c.value[e.variant],
|
148
|
-
...e.confirmButtonProps
|
149
|
-
},
|
150
|
-
"footer-class": "justify-center",
|
151
|
-
"onUpdate:modelValue": C,
|
152
|
-
onConfirm: a[0] || (a[0] = (p) => n.$emit("confirm")),
|
153
|
-
onCancel: a[1] || (a[1] = (p) => n.$emit("cancel"))
|
154
|
-
}, {
|
155
|
-
default: f(() => [
|
156
|
-
g(x, {
|
157
|
-
"icon-class": e.iconClass,
|
158
|
-
variant: e.variant,
|
159
|
-
description: e.description,
|
160
|
-
"content-class": e.contentClass,
|
161
|
-
icon: e.icon,
|
162
|
-
"hide-icon": e.hideIcon
|
163
|
-
}, B({ _: 2 }, [
|
164
|
-
n.$slots.description ? {
|
165
|
-
name: "description",
|
166
|
-
fn: f(() => [
|
167
|
-
b(n.$slots, "description")
|
168
|
-
]),
|
169
|
-
key: "0"
|
170
|
-
} : void 0
|
171
|
-
]), 1032, ["icon-class", "variant", "description", "content-class", "icon", "hide-icon"])
|
172
|
-
]),
|
173
|
-
_: 3
|
174
|
-
}, 8, ["model-value", "title", "persistent", "cancel-button-props", "confirm-button-props"]));
|
175
|
-
}
|
176
|
-
};
|
177
|
-
export {
|
178
|
-
T as _
|
179
|
-
};
|
@@ -1,65 +0,0 @@
|
|
1
|
-
import { defineComponent as l, openBlock as c, createBlock as s, unref as i, mergeProps as m, withCtx as r, createElementVNode as p, toDisplayString as d, renderSlot as f, createVNode as u } from "vue";
|
2
|
-
import "dayjs";
|
3
|
-
import { T as x } from "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
|
4
|
-
import { _ as y } 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 b = { class: "px-3 py-2 text-oc-text-400 text-sm font-medium" }, N = /* @__PURE__ */ l({
|
14
|
-
__name: "OcCopyTooltip",
|
15
|
-
props: {
|
16
|
-
value: [String, Blob],
|
17
|
-
tooltipText: {
|
18
|
-
type: String,
|
19
|
-
default: "Copied!"
|
20
|
-
},
|
21
|
-
tooltipOptions: Object
|
22
|
-
},
|
23
|
-
setup(e) {
|
24
|
-
const n = async (t) => {
|
25
|
-
try {
|
26
|
-
t instanceof Blob ? await navigator.clipboard.write([
|
27
|
-
new ClipboardItem({
|
28
|
-
[t.type]: t
|
29
|
-
})
|
30
|
-
]) : await navigator.clipboard.writeText(t);
|
31
|
-
} catch (o) {
|
32
|
-
console.error("Unable to copy text to clipboard. Error: ", o);
|
33
|
-
}
|
34
|
-
};
|
35
|
-
return (t, o) => (c(), s(i(x), m({
|
36
|
-
position: "top",
|
37
|
-
"hide-after": 1500,
|
38
|
-
"arrow-hidden": "",
|
39
|
-
trigger: "click",
|
40
|
-
distance: 20
|
41
|
-
}, e.tooltipOptions), {
|
42
|
-
popper: r(() => [
|
43
|
-
p("div", b, d(e.tooltipText), 1)
|
44
|
-
]),
|
45
|
-
default: r(({ isShow: a }) => [
|
46
|
-
p("div", {
|
47
|
-
onClick: o[0] || (o[0] = (g) => n(e.value))
|
48
|
-
}, [
|
49
|
-
f(t.$slots, "default", { isShow: a }, () => [
|
50
|
-
u(i(y), {
|
51
|
-
width: "14",
|
52
|
-
height: "14",
|
53
|
-
class: "cursor-pointer transition-all duration-500",
|
54
|
-
name: "copy"
|
55
|
-
})
|
56
|
-
])
|
57
|
-
])
|
58
|
-
]),
|
59
|
-
_: 3
|
60
|
-
}, 16));
|
61
|
-
}
|
62
|
-
});
|
63
|
-
export {
|
64
|
-
N as _
|
65
|
-
};
|
@@ -1,42 +0,0 @@
|
|
1
|
-
import { openBlock as t, createElementBlock as r, createElementVNode as c, normalizeClass as o, createBlock as i, unref as l, createCommentVNode as a, toDisplayString as m } from "vue";
|
2
|
-
import "dayjs";
|
3
|
-
import "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
|
4
|
-
import { _ as s } 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 n = { class: "flex gap-x-2 relative items-center text-oc-text-500 cursor-pointer transition-all duration-300" }, C = {
|
14
|
-
__name: "OcCriteria",
|
15
|
-
props: {
|
16
|
-
modelValue: Boolean,
|
17
|
-
label: String
|
18
|
-
},
|
19
|
-
setup(e) {
|
20
|
-
return (u, p) => (t(), r("div", n, [
|
21
|
-
c("div", {
|
22
|
-
class: o([
|
23
|
-
"w-5 h-5 flex items-center justify-center rounded-full border transition-all duration-300",
|
24
|
-
e.modelValue ? "bg-oc-success border-oc-success" : "border-oc-primary-100 bg-oc-primary-50"
|
25
|
-
])
|
26
|
-
}, [
|
27
|
-
e.modelValue ? (t(), i(l(s), {
|
28
|
-
key: 0,
|
29
|
-
name: "check-2",
|
30
|
-
class: "w-[10px] h-[10px] text-oc-text-100"
|
31
|
-
})) : a("", !0)
|
32
|
-
], 2),
|
33
|
-
e.label ? (t(), r("span", {
|
34
|
-
key: 0,
|
35
|
-
class: o(e.modelValue ? "text-oc-success" : "text-oc-primary-300")
|
36
|
-
}, m(e.label), 3)) : a("", !0)
|
37
|
-
]));
|
38
|
-
}
|
39
|
-
};
|
40
|
-
export {
|
41
|
-
C as _
|
42
|
-
};
|
@@ -1,160 +0,0 @@
|
|
1
|
-
import { openBlock as t, createElementBlock as o, normalizeClass as d, createElementVNode as s, createVNode as m, unref as n, createCommentVNode as i, createBlock as u, Fragment as D, withCtx as F, createTextVNode as G, toDisplayString as c, renderSlot as I } from "vue";
|
2
|
-
import "dayjs";
|
3
|
-
import { B as J } from "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
|
4
|
-
import { _ as K } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
5
|
-
import { _ as f } from "./OcListDetail-6XeME6ko.js";
|
6
|
-
import { _ as P } from "./OcIcon-CJgBICxh.js";
|
7
|
-
/* empty css */
|
8
|
-
import "libphonenumber-js";
|
9
|
-
/* empty css */
|
10
|
-
import "v-calendar";
|
11
|
-
/* empty css */
|
12
|
-
import "./Cropper.js";
|
13
|
-
import "vue-draggable-next";
|
14
|
-
import { _ as T } from "./OcAvatar-NDXQiZvz.js";
|
15
|
-
import "@popperjs/core";
|
16
|
-
const L = { class: "flex flex-col items-center justify-center gap-y-3 overflow-hidden" }, M = { class: "w-full flex gap-x-3 items-center" }, Q = { class: "flex flex-col font-medium overflow-hidden" }, R = { class: "flex items-center gap-2" }, W = { class: "truncate" }, X = {
|
17
|
-
key: 0,
|
18
|
-
class: "rounded-md py-1 px-3 text-sm text-oc-accent-1-500 bg-oc-accent-1-50"
|
19
|
-
}, Y = {
|
20
|
-
key: 0,
|
21
|
-
class: "text-sm text-oc-text-400"
|
22
|
-
}, Z = {
|
23
|
-
key: 1,
|
24
|
-
class: "text-sm text-oc-text-400 truncate"
|
25
|
-
}, p = {
|
26
|
-
key: 0,
|
27
|
-
class: "flex flex-col gap-y-4 pt-4 w-full"
|
28
|
-
}, _ = { class: "flex flex-col gap-y-2 w-full items-center" }, ee = { key: 0 }, te = {
|
29
|
-
__name: "OcCustomerCard",
|
30
|
-
props: {
|
31
|
-
variant: {
|
32
|
-
type: String,
|
33
|
-
default: "small",
|
34
|
-
validator: (e) => ["small", "big", "float"].includes(e)
|
35
|
-
},
|
36
|
-
customer: Object,
|
37
|
-
isHover: {
|
38
|
-
type: Boolean,
|
39
|
-
default: !1
|
40
|
-
},
|
41
|
-
isEdit: {
|
42
|
-
type: Boolean,
|
43
|
-
default: !1
|
44
|
-
},
|
45
|
-
isClosable: Boolean,
|
46
|
-
isBeneficiary: Boolean
|
47
|
-
},
|
48
|
-
emits: ["addCustomer", "editCustomer", "closeCustomer"],
|
49
|
-
setup(e, { emit: U }) {
|
50
|
-
const q = U;
|
51
|
-
return (a, r) => {
|
52
|
-
var y, h, b, v, x, g, k, C, $, B, w, z, E, N, j, H, V, A, S;
|
53
|
-
return t(), o("div", {
|
54
|
-
class: d(["rounded shrink-0 border border-oc-gray-200 bg-oc-bg-light flex items-center justify-between gap-4 px-4 py-5 customer-card relative group", { [e.variant]: !0, "hover:shadow-normal transition": e.isHover }])
|
55
|
-
}, [
|
56
|
-
s("div", L, [
|
57
|
-
e.isEdit ? (t(), o("div", {
|
58
|
-
key: 0,
|
59
|
-
class: d(["absolute right-3 top-3 transition", { "opacity-0 group-hover:opacity-100": e.isHover }])
|
60
|
-
}, [
|
61
|
-
m(n(J), {
|
62
|
-
"right-icon": "pencil",
|
63
|
-
variant: "secondary",
|
64
|
-
size: "small",
|
65
|
-
class: "*:!px-[6px]",
|
66
|
-
onClick: r[0] || (r[0] = (l) => a.$emit("editCustomer", e.customer))
|
67
|
-
})
|
68
|
-
], 2)) : i("", !0),
|
69
|
-
e.isClosable ? (t(), u(n(P), {
|
70
|
-
key: 1,
|
71
|
-
class: "absolute -right-1.5 -top-1.5 border-1 border-white rounded-full text-gray-500 cursor-pointer transition-all duration-300 hover:text-oc-error",
|
72
|
-
name: "filled-x-circle",
|
73
|
-
onClick: r[1] || (r[1] = (l) => q("closeCustomer"))
|
74
|
-
})) : i("", !0),
|
75
|
-
e.customer ? (t(), o(D, { key: 2 }, [
|
76
|
-
s("div", M, [
|
77
|
-
m(n(T), {
|
78
|
-
class: "shrink-0 uppercase",
|
79
|
-
size: 32
|
80
|
-
}, {
|
81
|
-
default: F(() => {
|
82
|
-
var l, O;
|
83
|
-
return [
|
84
|
-
G(c(((O = (l = e.customer) == null ? void 0 : l.name) == null ? void 0 : O[0]) || "J"), 1)
|
85
|
-
];
|
86
|
-
}),
|
87
|
-
_: 1
|
88
|
-
}),
|
89
|
-
s("div", Q, [
|
90
|
-
s("div", R, [
|
91
|
-
s("span", W, c(((y = e.customer) == null ? void 0 : y.name) || "-"), 1),
|
92
|
-
e.isBeneficiary ? (t(), o("span", X, c((h = e.customer.currency) == null ? void 0 : h.toUpperCase()), 1)) : i("", !0)
|
93
|
-
]),
|
94
|
-
e.isBeneficiary ? (t(), o("span", Y, c(e.customer.bank_name) + " / " + c(e.customer.bank_account_number), 1)) : (t(), o("span", Z, c(((b = e.customer) == null ? void 0 : b.email) || ((v = e.customer) != null && v.phone_number_country_code && ((x = e.customer) != null && x.phone_number) ? `+${e.customer.phone_number_country_code} ${e.customer.phone_number}` : (g = e.customer) != null && g.phone_number ? e.customer.phone_number : "-")), 1))
|
95
|
-
])
|
96
|
-
]),
|
97
|
-
e.variant !== "small" ? (t(), o("div", p, [
|
98
|
-
e.isBeneficiary ? i("", !0) : (t(), u(n(f), {
|
99
|
-
key: 0,
|
100
|
-
label: "Phone",
|
101
|
-
content: (k = e.customer) != null && k.phone_number_country_code && ((C = e.customer) != null && C.phone_number) ? `+${e.customer.phone_number_country_code} ${e.customer.phone_number}` : ($ = e.customer) != null && $.phone_number ? e.customer.phone_number : "-"
|
102
|
-
}, null, 8, ["content"])),
|
103
|
-
e.isBeneficiary ? (t(), u(n(f), {
|
104
|
-
key: 1,
|
105
|
-
label: "Email",
|
106
|
-
content: e.customer.email ?? "-"
|
107
|
-
}, null, 8, ["content"])) : (t(), u(n(f), {
|
108
|
-
key: 2,
|
109
|
-
label: "Address",
|
110
|
-
content: [
|
111
|
-
((w = (B = e.customer) == null ? void 0 : B.address) == null ? void 0 : w.street) || "",
|
112
|
-
((E = (z = e.customer) == null ? void 0 : z.address) == null ? void 0 : E.city) || "",
|
113
|
-
((j = (N = e.customer) == null ? void 0 : N.address) == null ? void 0 : j.state) || "",
|
114
|
-
((V = (H = e.customer) == null ? void 0 : H.address) == null ? void 0 : V.postal_code) || "",
|
115
|
-
((S = (A = e.customer) == null ? void 0 : A.address) == null ? void 0 : S.country) || ""
|
116
|
-
].join(" ").trim() || "-"
|
117
|
-
}, null, 8, ["content"]))
|
118
|
-
])) : i("", !0)
|
119
|
-
], 64)) : e.isBeneficiary ? i("", !0) : (t(), o(D, { key: 3 }, [
|
120
|
-
s("div", _, [
|
121
|
-
m(n(T), { size: 32 }, {
|
122
|
-
default: F(() => [
|
123
|
-
m(n(P), {
|
124
|
-
name: "user-add",
|
125
|
-
width: "16",
|
126
|
-
height: "16"
|
127
|
-
})
|
128
|
-
]),
|
129
|
-
_: 1
|
130
|
-
}),
|
131
|
-
r[3] || (r[3] = s("div", { class: "flex flex-col font-medium text-center" }, [
|
132
|
-
s("span", null, "No customer attached"),
|
133
|
-
s("span", { class: "text-sm text-oc-text-400" }, " Add customer detail to this transaction ")
|
134
|
-
], -1))
|
135
|
-
]),
|
136
|
-
m(n(J), {
|
137
|
-
variant: "secondary",
|
138
|
-
size: "small",
|
139
|
-
class: "w-full",
|
140
|
-
label: "Add customer",
|
141
|
-
onClick: r[2] || (r[2] = (l) => a.$emit("addCustomer"))
|
142
|
-
})
|
143
|
-
], 64)),
|
144
|
-
a.$slots.bottom ? (t(), o("div", {
|
145
|
-
key: 4,
|
146
|
-
class: d({ "opacity-0 group-hover:opacity-100": e.isHover })
|
147
|
-
}, [
|
148
|
-
I(a.$slots, "bottom", {}, void 0, !0)
|
149
|
-
], 2)) : i("", !0)
|
150
|
-
]),
|
151
|
-
a.$slots.leading ? (t(), o("div", ee, [
|
152
|
-
I(a.$slots, "leading", {}, void 0, !0)
|
153
|
-
])) : i("", !0)
|
154
|
-
], 2);
|
155
|
-
};
|
156
|
-
}
|
157
|
-
}, ve = /* @__PURE__ */ K(te, [["__scopeId", "data-v-e499a3c4"]]);
|
158
|
-
export {
|
159
|
-
ve as C
|
160
|
-
};
|
@@ -1,57 +0,0 @@
|
|
1
|
-
import { computed as l, openBlock as o, createElementBlock as n, normalizeClass as m, createElementVNode as e, createBlock as d, unref as u, mergeProps as x, createCommentVNode as s, toDisplayString as i, renderSlot as p } from "vue";
|
2
|
-
import "dayjs";
|
3
|
-
import "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
|
4
|
-
import { _ as f } 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 g = { class: "flex items-center gap-x-3 p-3" }, v = { class: "md:text-base text-sm" }, b = {
|
14
|
-
key: 0,
|
15
|
-
class: "p-3 text-sm text-oc-text-300"
|
16
|
-
}, O = {
|
17
|
-
__name: "OcDropdownItem",
|
18
|
-
props: {
|
19
|
-
variant: {
|
20
|
-
type: String,
|
21
|
-
default: "default"
|
22
|
-
},
|
23
|
-
icon: String,
|
24
|
-
iconClasses: String,
|
25
|
-
text: String,
|
26
|
-
subText: String,
|
27
|
-
pointed: Boolean,
|
28
|
-
iconProps: Object
|
29
|
-
},
|
30
|
-
setup(t) {
|
31
|
-
const a = l(() => ({
|
32
|
-
default: "text-oc-text",
|
33
|
-
destructive: "text-oc-error"
|
34
|
-
}));
|
35
|
-
return (c, r) => (o(), n("div", {
|
36
|
-
class: m(["flex flex-col cursor-pointer rounded-sm hover:bg-oc-accent-1-50", a.value[t.variant]])
|
37
|
-
}, [
|
38
|
-
e("div", g, [
|
39
|
-
t.icon ? (o(), d(u(f), x({
|
40
|
-
key: 0,
|
41
|
-
class: "w-5 h-5",
|
42
|
-
name: t.icon
|
43
|
-
}, t.iconProps, { class: t.iconClasses }), null, 16, ["name", "class"])) : s("", !0),
|
44
|
-
e("span", v, i(t.text), 1),
|
45
|
-
t.pointed ? p(c.$slots, "badge", { key: 1 }, () => [
|
46
|
-
r[0] || (r[0] = e("div", { class: "w-[6px] aspect-square rounded-full bg-oc-error" }, null, -1))
|
47
|
-
]) : s("", !0)
|
48
|
-
]),
|
49
|
-
t.subText ? (o(), n("div", b, [
|
50
|
-
e("span", null, i(t.subText), 1)
|
51
|
-
])) : s("", !0)
|
52
|
-
], 2));
|
53
|
-
}
|
54
|
-
};
|
55
|
-
export {
|
56
|
-
O as _
|
57
|
-
};
|
@@ -1,155 +0,0 @@
|
|
1
|
-
import { computed as g, openBlock as n, createElementBlock as m, normalizeClass as i, createElementVNode as a, createVNode as f, unref as l, createBlock as s, createCommentVNode as r, toDisplayString as d, renderSlot as x } from "vue";
|
2
|
-
import "dayjs";
|
3
|
-
import { B as y } from "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
|
4
|
-
import { _ as u } 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 z = { class: "relative" }, E = {
|
14
|
-
__name: "OcEmptyPage",
|
15
|
-
props: {
|
16
|
-
isButton: {
|
17
|
-
type: Boolean,
|
18
|
-
default: !0
|
19
|
-
},
|
20
|
-
title: {
|
21
|
-
type: String,
|
22
|
-
default: ""
|
23
|
-
},
|
24
|
-
description: {
|
25
|
-
type: String,
|
26
|
-
default: ""
|
27
|
-
},
|
28
|
-
isUpgrade: {
|
29
|
-
type: Boolean,
|
30
|
-
default: !1
|
31
|
-
},
|
32
|
-
containerClass: {
|
33
|
-
type: [Array, String],
|
34
|
-
required: !1
|
35
|
-
},
|
36
|
-
upgradeLabel: {
|
37
|
-
type: String,
|
38
|
-
default: "Upgrade now"
|
39
|
-
},
|
40
|
-
addButtonLabel: {
|
41
|
-
type: String,
|
42
|
-
default: "Add new"
|
43
|
-
},
|
44
|
-
addButtonIcon: {
|
45
|
-
type: String,
|
46
|
-
default: "plus"
|
47
|
-
},
|
48
|
-
icon: {
|
49
|
-
type: String,
|
50
|
-
default: "document"
|
51
|
-
},
|
52
|
-
size: {
|
53
|
-
type: String,
|
54
|
-
validator: (e) => ["large", "default", "small"].includes(e),
|
55
|
-
default: "default"
|
56
|
-
},
|
57
|
-
hideBadge: {
|
58
|
-
type: Boolean,
|
59
|
-
default: !1
|
60
|
-
}
|
61
|
-
},
|
62
|
-
emits: "click:Button",
|
63
|
-
setup(e) {
|
64
|
-
const t = g(() => ({
|
65
|
-
default: {
|
66
|
-
icon: {
|
67
|
-
container: "w-[64px]",
|
68
|
-
size: "32"
|
69
|
-
},
|
70
|
-
badge: {
|
71
|
-
class: "right-0 top-[2px]",
|
72
|
-
size: "20"
|
73
|
-
},
|
74
|
-
containerInfo: "gap-y-3",
|
75
|
-
box: "gap-y-7",
|
76
|
-
title: "text-lg",
|
77
|
-
description: ""
|
78
|
-
},
|
79
|
-
large: {
|
80
|
-
icon: {
|
81
|
-
container: "w-[128px]",
|
82
|
-
size: "64"
|
83
|
-
},
|
84
|
-
badge: {
|
85
|
-
class: "right-0 top-[2px]",
|
86
|
-
size: "32"
|
87
|
-
},
|
88
|
-
containerInfo: "gap-y-3",
|
89
|
-
box: "gap-y-7",
|
90
|
-
title: "text-lg",
|
91
|
-
description: ""
|
92
|
-
},
|
93
|
-
small: {
|
94
|
-
icon: {
|
95
|
-
container: "w-[48px]",
|
96
|
-
size: "24"
|
97
|
-
},
|
98
|
-
badge: {
|
99
|
-
class: "right-[-2px] top-[-2px]",
|
100
|
-
size: "20"
|
101
|
-
},
|
102
|
-
containerInfo: "gap-y-1",
|
103
|
-
box: "gap-y-5",
|
104
|
-
title: "text-[14px] font-medium",
|
105
|
-
description: "text-[12px]"
|
106
|
-
}
|
107
|
-
}));
|
108
|
-
return (o, c) => (n(), m("div", {
|
109
|
-
class: i(["flex flex-col items-center", t.value[e.size].box])
|
110
|
-
}, [
|
111
|
-
a("div", z, [
|
112
|
-
a("div", {
|
113
|
-
class: i(["flex justify-center border rounded-full items-center aspect-square", [
|
114
|
-
e.containerClass ? e.containerClass : e.isUpgrade ? "text-oc-warning-600 border-oc-warning-300 bg-oc-warning-50" : "text-oc-text-400 border-oc-gray-200 bg-oc-gray-50",
|
115
|
-
t.value[e.size].icon.container
|
116
|
-
]])
|
117
|
-
}, [
|
118
|
-
f(l(u), {
|
119
|
-
name: e.icon,
|
120
|
-
width: t.value[e.size].icon.size,
|
121
|
-
height: t.value[e.size].icon.size
|
122
|
-
}, null, 8, ["name", "width", "height"])
|
123
|
-
], 2),
|
124
|
-
!e.isUpgrade && !e.hideBadge ? (n(), s(l(u), {
|
125
|
-
key: 0,
|
126
|
-
name: "exclamation",
|
127
|
-
width: t.value[e.size].badge.size,
|
128
|
-
height: t.value[e.size].badge.size,
|
129
|
-
class: i(["absolute", t.value[e.size].badge.class])
|
130
|
-
}, null, 8, ["width", "height", "class"])) : r("", !0)
|
131
|
-
]),
|
132
|
-
a("div", {
|
133
|
-
class: i(["flex flex-col items-center", t.value[e.size].containerInfo])
|
134
|
-
}, [
|
135
|
-
a("span", {
|
136
|
-
class: i([t.value[e.size].title, "font-medium"])
|
137
|
-
}, d(e.title), 3),
|
138
|
-
x(o.$slots, "description", {}, () => [
|
139
|
-
a("span", {
|
140
|
-
class: i([t.value[e.size].description, "text-oc-text-400 text-center"])
|
141
|
-
}, d(e.description), 3)
|
142
|
-
])
|
143
|
-
], 2),
|
144
|
-
e.isButton ? (n(), s(l(y), {
|
145
|
-
key: 0,
|
146
|
-
label: e.isUpgrade ? e.upgradeLabel : e.addButtonLabel,
|
147
|
-
"left-icon": e.isUpgrade ? "" : e.addButtonIcon,
|
148
|
-
onClick: c[0] || (c[0] = (b) => o.$emit("click:Button"))
|
149
|
-
}, null, 8, ["label", "left-icon"])) : r("", !0)
|
150
|
-
], 2));
|
151
|
-
}
|
152
|
-
};
|
153
|
-
export {
|
154
|
-
E as _
|
155
|
-
};
|