@orchidui/core 0.5.0 → 0.7.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/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-DXl0ecZ-.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} +39 -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 -948
- 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-BLK16hYl.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-BUpEpDsU.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-BAmQHshA.js +0 -447
- 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,17 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import "
|
|
4
|
-
|
|
5
|
-
import { _ as m } from "./OcIcon-CJgBICxh.js";
|
|
6
|
-
/* empty css */
|
|
7
|
-
import "libphonenumber-js";
|
|
8
|
-
/* empty css */
|
|
9
|
-
import "v-calendar";
|
|
10
|
-
/* empty css */
|
|
11
|
-
import "./Cropper.js";
|
|
12
|
-
import "@popperjs/core";
|
|
13
|
-
import "vue-draggable-next";
|
|
14
|
-
const B = ["onMouseleave", "onMouseover", "onClick"], L = { class: "flex justify-evenly w-full" }, N = { class: "flex w-full" }, U = { class: "ml-4 flex w-full" }, E = { class: "flex items-center flex-wrap w-full" }, O = ["href"], T = { class: "min-w-[120px]" }, W = { class: "truncate w-[200px]" }, j = { class: "flex items-center ml-4" }, z = { class: "flex w-full" }, _ = {
|
|
1
|
+
import { ref as p, openBlock as c, createBlock as y, unref as t, withCtx as n, createElementBlock as m, Fragment as K, renderList as C, normalizeClass as s, createElementVNode as o, createCommentVNode as b, renderSlot as u, toDisplayString as k, createVNode as f } from "vue";
|
|
2
|
+
import { aB as $, ax as B, as as M } from "./index-DyVteXE3.js";
|
|
3
|
+
import { _ as h } from "./OcIcon-CJgBICxh.js";
|
|
4
|
+
const S = ["onMouseleave", "onMouseover", "onClick"], L = { class: "flex justify-evenly w-full" }, N = { class: "flex w-full" }, U = { class: "ml-4 flex w-full" }, E = { class: "flex items-center flex-wrap w-full" }, O = ["href"], W = { class: "min-w-[120px]" }, j = { class: "truncate w-[200px]" }, z = { class: "flex items-center ml-4" }, A = { class: "flex w-full" }, q = {
|
|
15
5
|
__name: "OcDraggableList",
|
|
16
6
|
props: {
|
|
17
7
|
modelValue: Array,
|
|
@@ -42,72 +32,72 @@ const B = ["onMouseleave", "onMouseover", "onClick"], L = { class: "flex justify
|
|
|
42
32
|
detectMove: null
|
|
43
33
|
},
|
|
44
34
|
setup(i, { emit: w }) {
|
|
45
|
-
const D = w,
|
|
46
|
-
D("update:modelValue",
|
|
35
|
+
const D = w, a = p([]), v = p([]), V = (l, d) => {
|
|
36
|
+
D("update:modelValue", l, d);
|
|
47
37
|
};
|
|
48
|
-
return (
|
|
38
|
+
return (l, d) => (c(), y(t($), {
|
|
49
39
|
"model-value": i.modelValue,
|
|
50
40
|
class: "grid gap-3",
|
|
51
|
-
"onUpdate:modelValue":
|
|
52
|
-
onDetectMove:
|
|
41
|
+
"onUpdate:modelValue": d[0] || (d[0] = (r, e) => V(r, e)),
|
|
42
|
+
onDetectMove: d[1] || (d[1] = (r) => l.$emit("detectMove", r))
|
|
53
43
|
}, {
|
|
54
|
-
default: n(({ list:
|
|
55
|
-
(
|
|
44
|
+
default: n(({ list: r }) => [
|
|
45
|
+
(c(!0), m(K, null, C(r, (e, x) => (c(), m("div", {
|
|
56
46
|
key: e.id,
|
|
57
47
|
class: s([
|
|
58
48
|
"group text-oc-text-500 p-4 flex flex-col w-full rounded border border-gray-200 cursor-pointer",
|
|
59
|
-
e[i.childrenKey] ? "hover:shadow bg-oc-gray-50" : i.isChildren && !
|
|
49
|
+
e[i.childrenKey] ? "hover:shadow bg-oc-gray-50" : i.isChildren && !a.value[e.id] ? "bg-oc-accent-1-50" : i.classes ? i.classes : "hover:shadow bg-oc-accent-1-50 hover:bg-oc-gray-50"
|
|
60
50
|
]),
|
|
61
51
|
onMouseleave: () => {
|
|
62
|
-
v.value[e.id] = !1,
|
|
52
|
+
v.value[e.id] = !1, a.value[e.id] = !1;
|
|
63
53
|
},
|
|
64
|
-
onMouseover: (g) =>
|
|
65
|
-
onClick: (g) =>
|
|
54
|
+
onMouseover: (g) => a.value[e.id] = !0,
|
|
55
|
+
onClick: (g) => l.$emit("click:element", e)
|
|
66
56
|
}, [
|
|
67
57
|
o("div", L, [
|
|
68
58
|
o("div", N, [
|
|
69
59
|
o("div", {
|
|
70
60
|
class: s(["px-2 flex items-center", !i.isDisabled && !e.isDisable ? "drag-el cursor-move" : ""])
|
|
71
61
|
}, [
|
|
72
|
-
!i.isDisabled && !e.isDisable ? (
|
|
62
|
+
!i.isDisabled && !e.isDisable ? (c(), y(t(h), {
|
|
73
63
|
key: 0,
|
|
74
64
|
name: "draggable",
|
|
75
65
|
class: s(
|
|
76
|
-
e[i.iconKey] ? i.isChildren && !
|
|
66
|
+
e[i.iconKey] ? i.isChildren && !a.value[e.id] ? "hidden" : "hidden group-hover:block" : i.isChildren && !a.value[e.id] ? "opacity-0" : "opacity-0 group-hover:opacity-100 "
|
|
77
67
|
)
|
|
78
68
|
}, null, 8, ["class"])) : b("", !0),
|
|
79
|
-
e[i.iconKey] ? (
|
|
69
|
+
e[i.iconKey] ? (c(), y(t(h), {
|
|
80
70
|
key: 1,
|
|
81
71
|
name: e[i.iconKey],
|
|
82
72
|
class: s(
|
|
83
|
-
!i.isDisabled && !e.isDisable &&
|
|
73
|
+
!i.isDisabled && !e.isDisable && a.value[e.id] ? "group-hover:hidden" : ""
|
|
84
74
|
)
|
|
85
75
|
}, null, 8, ["name", "class"])) : b("", !0)
|
|
86
76
|
], 2),
|
|
87
77
|
o("div", U, [
|
|
88
78
|
o("div", E, [
|
|
89
|
-
u(
|
|
79
|
+
u(l.$slots, "title", { item: e }, () => [
|
|
90
80
|
o("div", {
|
|
91
81
|
class: s(["truncate", i.titleWidth])
|
|
92
|
-
},
|
|
82
|
+
}, k(e.title), 3)
|
|
93
83
|
]),
|
|
94
|
-
i.isLink && e[i.linkKey] && e.type === "link" ? (
|
|
84
|
+
i.isLink && e[i.linkKey] && e.type === "link" ? (c(), m("a", {
|
|
95
85
|
key: 0,
|
|
96
86
|
href: e[i.linkKey],
|
|
97
87
|
target: "_blank",
|
|
98
88
|
rel: "noopener noreferrer",
|
|
99
89
|
class: "w-full flex items-center text-oc-text-300 mt-2"
|
|
100
90
|
}, [
|
|
101
|
-
f(
|
|
91
|
+
f(t(B), {
|
|
102
92
|
distance: "2",
|
|
103
93
|
position: "bottom-start",
|
|
104
94
|
"popper-class": "bg-oc-bg-light text-oc-text-500 p-4 rounded"
|
|
105
95
|
}, {
|
|
106
96
|
popper: n(() => [
|
|
107
|
-
o("div",
|
|
97
|
+
o("div", W, k(e[i.linkKey]), 1)
|
|
108
98
|
]),
|
|
109
99
|
default: n(() => [
|
|
110
|
-
f(
|
|
100
|
+
f(t(h), {
|
|
111
101
|
width: "12",
|
|
112
102
|
height: "12",
|
|
113
103
|
class: "mr-2",
|
|
@@ -116,34 +106,34 @@ const B = ["onMouseleave", "onMouseover", "onClick"], L = { class: "flex justify
|
|
|
116
106
|
]),
|
|
117
107
|
_: 2
|
|
118
108
|
}, 1024),
|
|
119
|
-
o("span",
|
|
109
|
+
o("span", j, k(e[i.linkKey]), 1)
|
|
120
110
|
], 8, O)) : b("", !0)
|
|
121
111
|
])
|
|
122
112
|
])
|
|
123
113
|
]),
|
|
124
|
-
o("div",
|
|
125
|
-
u(
|
|
126
|
-
u(
|
|
127
|
-
f(
|
|
114
|
+
o("div", z, [
|
|
115
|
+
u(l.$slots, "before-action", { item: e }),
|
|
116
|
+
u(l.$slots, "action", { item: e }, () => [
|
|
117
|
+
f(t(M), {
|
|
128
118
|
modelValue: v.value[e.id],
|
|
129
119
|
"onUpdate:modelValue": (g) => v.value[e.id] = g,
|
|
130
120
|
placement: "bottom-end",
|
|
131
121
|
class: s([
|
|
132
122
|
"cursor-pointer",
|
|
133
|
-
i.isChildren && !
|
|
123
|
+
i.isChildren && !a.value[e.id] ? "opacity-0" : "opacity-0 group-hover:opacity-100"
|
|
134
124
|
])
|
|
135
125
|
}, {
|
|
136
126
|
menu: n(() => [
|
|
137
|
-
u(
|
|
127
|
+
u(l.$slots, "action-item", {
|
|
138
128
|
item: e,
|
|
139
|
-
index:
|
|
129
|
+
index: x
|
|
140
130
|
})
|
|
141
131
|
]),
|
|
142
132
|
default: n(() => [
|
|
143
133
|
o("div", {
|
|
144
134
|
class: s(["hover:bg-oc-gray-100 p-1 rounded", v.value[e.id] ? "bg-oc-gray-100" : ""])
|
|
145
135
|
}, [
|
|
146
|
-
f(
|
|
136
|
+
f(t(h), { name: "dots-vertical" })
|
|
147
137
|
], 2)
|
|
148
138
|
]),
|
|
149
139
|
_: 2
|
|
@@ -151,19 +141,18 @@ const B = ["onMouseleave", "onMouseover", "onClick"], L = { class: "flex justify
|
|
|
151
141
|
])
|
|
152
142
|
])
|
|
153
143
|
]),
|
|
154
|
-
o("div",
|
|
155
|
-
u(
|
|
144
|
+
o("div", A, [
|
|
145
|
+
u(l.$slots, "content", {
|
|
156
146
|
item: e,
|
|
157
|
-
index:
|
|
147
|
+
index: x
|
|
158
148
|
})
|
|
159
149
|
])
|
|
160
|
-
], 42,
|
|
150
|
+
], 42, S))), 128))
|
|
161
151
|
]),
|
|
162
152
|
_: 3
|
|
163
153
|
}, 8, ["model-value"]));
|
|
164
154
|
}
|
|
165
155
|
};
|
|
166
156
|
export {
|
|
167
|
-
|
|
168
|
-
_ as DraggableList
|
|
157
|
+
q as default
|
|
169
158
|
};
|
|
@@ -1,17 +1,7 @@
|
|
|
1
1
|
import { ref as m, computed as p, openBlock as s, createElementBlock as l, createVNode as f, unref as c, withCtx as v, createElementVNode as n, Fragment as T, renderList as V, normalizeClass as k, createTextVNode as C, createBlock as N, createCommentVNode as z } from "vue";
|
|
2
|
-
import "
|
|
3
|
-
import {
|
|
4
|
-
import { _ as
|
|
5
|
-
/* empty css */
|
|
6
|
-
import { _ as P } from "./OcInput-tcRxG3Y2.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 { EMOJI_LIST as r, EMOJI_CATEGORIES as A } from "./Form/EmojiPicker/conts/emoji.js";
|
|
2
|
+
import { as as U, e as J, B as b } from "./index-DyVteXE3.js";
|
|
3
|
+
import { EMOJI_LIST as a, EMOJI_CATEGORIES as P } from "./Form/EmojiPicker/conts/emoji.js";
|
|
4
|
+
import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
5
|
const F = { class: "flex items-center justify-center rounded bg-oc-bg-dark h-[140px] relative w-full z-50" }, G = ["innerHTML"], R = { class: "p-4 w-[340px]" }, q = { class: "bg-oc-bg-dark p-4 rounded flex items-center justify-center" }, K = ["innerHTML"], Q = { class: "pt-3 pb-4" }, W = ["id", "innerHTML", "onClick"], X = {
|
|
16
6
|
key: 1,
|
|
17
7
|
class: "text-oc-text-400 text-center p-3"
|
|
@@ -28,27 +18,27 @@ const F = { class: "flex items-center justify-center rounded bg-oc-bg-dark h-[14
|
|
|
28
18
|
emits: {
|
|
29
19
|
"update:modelValue": []
|
|
30
20
|
},
|
|
31
|
-
setup(
|
|
32
|
-
const g =
|
|
33
|
-
() => i.value ?
|
|
34
|
-
),
|
|
35
|
-
() => Object.entries(
|
|
36
|
-
),
|
|
21
|
+
setup(r, { emit: E }) {
|
|
22
|
+
const g = r, L = E, d = m(!1), u = m(""), i = m(g.modelValue), h = m("grinning"), w = p(() => g.modelValue || a.sunglasses), M = p(
|
|
23
|
+
() => i.value ? a[i.value] : a.sunglasses
|
|
24
|
+
), y = p(
|
|
25
|
+
() => Object.entries(a).filter(([t]) => t.includes(u.value))
|
|
26
|
+
), _ = p(() => Object.entries(P)), O = (t) => {
|
|
37
27
|
i.value = t;
|
|
38
28
|
}, j = () => {
|
|
39
|
-
d.value = !1, L("update:modelValue",
|
|
29
|
+
d.value = !1, L("update:modelValue", a[i.value]);
|
|
40
30
|
}, B = () => {
|
|
41
31
|
d.value = !1, i.value = g.modelValue;
|
|
42
32
|
}, I = () => {
|
|
43
|
-
const t = Object.keys(
|
|
33
|
+
const t = Object.keys(a), e = Math.round(Math.random() * t.length);
|
|
44
34
|
i.value = t[e], j();
|
|
45
35
|
}, H = (t) => {
|
|
46
36
|
t && (u.value = "");
|
|
47
|
-
},
|
|
37
|
+
}, S = (t) => {
|
|
48
38
|
const e = document.getElementById(`emoji-${t}`).offsetTop;
|
|
49
39
|
document.getElementById("emojiList").scroll({ top: e, behavior: "smooth" }), h.value = t;
|
|
50
|
-
},
|
|
51
|
-
|
|
40
|
+
}, $ = (t) => {
|
|
41
|
+
_.value.forEach(([e]) => {
|
|
52
42
|
const o = document.getElementById(`emoji-${e}`).offsetTop;
|
|
53
43
|
t.target.scrollTop >= o - 20 && (h.value = e);
|
|
54
44
|
});
|
|
@@ -63,10 +53,10 @@ const F = { class: "flex items-center justify-center rounded bg-oc-bg-dark h-[14
|
|
|
63
53
|
"max-menu-height": 600,
|
|
64
54
|
class: "!w-auto z-50",
|
|
65
55
|
"popper-options": {
|
|
66
|
-
...
|
|
56
|
+
...r.popperOptions
|
|
67
57
|
},
|
|
68
58
|
distance: 26,
|
|
69
|
-
"is-disabled":
|
|
59
|
+
"is-disabled": r.isDisabled,
|
|
70
60
|
placement: "bottom"
|
|
71
61
|
}, {
|
|
72
62
|
menu: v(() => [
|
|
@@ -77,40 +67,40 @@ const F = { class: "flex items-center justify-center rounded bg-oc-bg-dark h-[14
|
|
|
77
67
|
n("div", R, [
|
|
78
68
|
n("div", q, [
|
|
79
69
|
n("div", {
|
|
80
|
-
innerHTML:
|
|
70
|
+
innerHTML: M.value,
|
|
81
71
|
class: "flex items-center justify-center w-10 h-10 text-[40px]"
|
|
82
72
|
}, null, 8, K)
|
|
83
73
|
]),
|
|
84
74
|
n("div", Q, [
|
|
85
|
-
f(c(
|
|
75
|
+
f(c(J), {
|
|
86
76
|
modelValue: u.value,
|
|
87
77
|
"onUpdate:modelValue": e[0] || (e[0] = (o) => u.value = o),
|
|
88
78
|
placeholder: "Search",
|
|
89
79
|
icon: "search"
|
|
90
80
|
}, null, 8, ["modelValue"])
|
|
91
81
|
]),
|
|
92
|
-
|
|
82
|
+
y.value.length ? (s(), l("div", {
|
|
93
83
|
key: 0,
|
|
94
84
|
id: "emojiList",
|
|
95
85
|
class: "grid grid-cols-9 gap-3 max-h-[204px] overflow-y-auto overflow-x-hidden mt-3 mb-5 relative",
|
|
96
|
-
onScroll:
|
|
86
|
+
onScroll: $
|
|
97
87
|
}, [
|
|
98
|
-
(s(!0), l(T, null, V(
|
|
88
|
+
(s(!0), l(T, null, V(y.value, ([o, x]) => (s(), l("div", {
|
|
99
89
|
id: `emoji-${o}`,
|
|
100
90
|
key: o,
|
|
101
91
|
innerHTML: x,
|
|
102
92
|
class: "w-8 h-8 text-[24px] flex items-center justify-center cursor-pointer transition hover:bg-oc-gray-100 rounded",
|
|
103
|
-
onClick: (
|
|
93
|
+
onClick: (D) => O(o)
|
|
104
94
|
}, null, 8, W))), 128))
|
|
105
95
|
], 32)) : (s(), l("div", X, "No emoji found")),
|
|
106
96
|
n("div", Y, [
|
|
107
|
-
(s(!0), l(T, null, V(
|
|
97
|
+
(s(!0), l(T, null, V(_.value, ([o, x]) => (s(), l("div", {
|
|
108
98
|
key: o,
|
|
109
99
|
innerHTML: x,
|
|
110
100
|
class: k(["w-8 h-8 text-[24px] flex items-center justify-center cursor-pointer transition opacity-30 hover:opacity-100", {
|
|
111
101
|
"!opacity-100": o === h.value
|
|
112
102
|
}]),
|
|
113
|
-
onClick: (
|
|
103
|
+
onClick: (D) => S(o)
|
|
114
104
|
}, null, 10, Z))), 128))
|
|
115
105
|
]),
|
|
116
106
|
n("div", ee, [
|
|
@@ -136,13 +126,13 @@ const F = { class: "flex items-center justify-center rounded bg-oc-bg-dark h-[14
|
|
|
136
126
|
n("div", {
|
|
137
127
|
innerHTML: w.value,
|
|
138
128
|
class: k(["flex items-center justify-center w-12 h-12 text-[40px] transition rounded", {
|
|
139
|
-
"cursor-pointer hover:bg-oc-gray-200": !
|
|
129
|
+
"cursor-pointer hover:bg-oc-gray-200": !r.isDisabled
|
|
140
130
|
}])
|
|
141
131
|
}, null, 10, G)
|
|
142
132
|
]),
|
|
143
133
|
_: 1
|
|
144
134
|
}, 8, ["modelValue", "popper-options", "is-disabled"]),
|
|
145
|
-
|
|
135
|
+
r.isDisabled ? z("", !0) : (s(), N(c(b), {
|
|
146
136
|
key: 0,
|
|
147
137
|
"left-icon": "shuffle",
|
|
148
138
|
variant: "secondary",
|
|
@@ -151,7 +141,7 @@ const F = { class: "flex items-center justify-center rounded bg-oc-bg-dark h-[14
|
|
|
151
141
|
}))
|
|
152
142
|
]));
|
|
153
143
|
}
|
|
154
|
-
},
|
|
144
|
+
}, ie = /* @__PURE__ */ A(te, [["__scopeId", "data-v-6a3c86cb"]]);
|
|
155
145
|
export {
|
|
156
|
-
|
|
146
|
+
ie as default
|
|
157
147
|
};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { ref as r, computed as c, onMounted as B, openBlock as O, createElementBlock as k, renderSlot as w, createElementVNode as f, createVNode as u, unref as i } from "vue";
|
|
2
|
+
import { w as $, B as m } from "./index-DyVteXE3.js";
|
|
3
|
+
const C = { class: "flex w-[326px] flex-col gap-y-5" }, A = { class: "max-h-[500px] overflow-y-auto p-5" }, E = { class: "flex gap-x-5 px-5 pb-5" }, N = {
|
|
4
|
+
__name: "OcFilterForm",
|
|
5
|
+
props: {
|
|
6
|
+
id: {
|
|
7
|
+
type: String,
|
|
8
|
+
required: !0
|
|
9
|
+
},
|
|
10
|
+
jsonForm: {
|
|
11
|
+
type: Array
|
|
12
|
+
},
|
|
13
|
+
values: {
|
|
14
|
+
type: Object
|
|
15
|
+
},
|
|
16
|
+
actions: {
|
|
17
|
+
type: Object
|
|
18
|
+
},
|
|
19
|
+
grid: {
|
|
20
|
+
type: Object,
|
|
21
|
+
default: null
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
emits: ["applyFilter", "cancel", "filter-fields-changed"],
|
|
25
|
+
setup(t, { emit: y }) {
|
|
26
|
+
const s = t, d = y, a = r({}), p = r({}), n = r([]), b = (e) => {
|
|
27
|
+
n.value.findIndex((o) => o === e) >= 0 || n.value.push(e);
|
|
28
|
+
}, v = (e, l = null) => {
|
|
29
|
+
typeof e.name == "object" ? e.name.forEach((o, h) => {
|
|
30
|
+
a.value[o.key] = l[h];
|
|
31
|
+
}) : a.value[e.name] = l, b(e.name);
|
|
32
|
+
}, g = c(() => Object.values(a.value).length > 0), F = c(() => {
|
|
33
|
+
var e, l;
|
|
34
|
+
return ((l = (e = s.actions) == null ? void 0 : e.applyButton) == null ? void 0 : l.label) || "Apply";
|
|
35
|
+
}), j = c(() => {
|
|
36
|
+
var e, l;
|
|
37
|
+
return ((l = (e = s.actions) == null ? void 0 : e.cancelButton) == null ? void 0 : l.label) || "Cancel";
|
|
38
|
+
});
|
|
39
|
+
B(() => {
|
|
40
|
+
a.value = { ...s.values };
|
|
41
|
+
});
|
|
42
|
+
const x = () => {
|
|
43
|
+
d("applyFilter", a.value), d("filter-fields-changed", n.value), n.value = [];
|
|
44
|
+
};
|
|
45
|
+
return (e, l) => (O(), k("div", C, [
|
|
46
|
+
w(e.$slots, "default", {
|
|
47
|
+
errors: p.value,
|
|
48
|
+
values: a.value,
|
|
49
|
+
jsonForm: t.jsonForm,
|
|
50
|
+
updateForm: v
|
|
51
|
+
}, () => [
|
|
52
|
+
f("div", A, [
|
|
53
|
+
u(i($), {
|
|
54
|
+
id: `filter-form-${t.id}`,
|
|
55
|
+
class: "grid gap-5",
|
|
56
|
+
errors: p.value,
|
|
57
|
+
values: a.value,
|
|
58
|
+
"json-form": t.jsonForm,
|
|
59
|
+
grid: t.grid ?? null,
|
|
60
|
+
onOnUpdate: v
|
|
61
|
+
}, null, 8, ["id", "errors", "values", "json-form", "grid"])
|
|
62
|
+
])
|
|
63
|
+
]),
|
|
64
|
+
f("div", E, [
|
|
65
|
+
u(i(m), {
|
|
66
|
+
class: "w-full",
|
|
67
|
+
variant: "secondary",
|
|
68
|
+
label: j.value,
|
|
69
|
+
onClick: l[0] || (l[0] = (o) => e.$emit("cancel"))
|
|
70
|
+
}, null, 8, ["label"]),
|
|
71
|
+
u(i(m), {
|
|
72
|
+
class: "w-full",
|
|
73
|
+
"is-disabled": !g.value,
|
|
74
|
+
label: F.value,
|
|
75
|
+
onClick: x
|
|
76
|
+
}, null, 8, ["is-disabled", "label"])
|
|
77
|
+
])
|
|
78
|
+
]));
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
export {
|
|
82
|
+
N as default
|
|
83
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { ref as o, openBlock as t, createElementBlock as s, Fragment as g, createElementVNode as c, normalizeClass as m, createVNode as x, unref as u, withKeys as S, createBlock as d, createCommentVNode as v, nextTick as w } from "vue";
|
|
2
|
+
import { e as O, B as f } from "./index-DyVteXE3.js";
|
|
3
|
+
const B = { class: "flex gap-x-4" }, $ = {
|
|
4
|
+
__name: "OcFilterSearch",
|
|
5
|
+
props: {
|
|
6
|
+
isSearchOnly: Boolean
|
|
7
|
+
},
|
|
8
|
+
emits: {
|
|
9
|
+
addQuery: [],
|
|
10
|
+
toggle: []
|
|
11
|
+
},
|
|
12
|
+
setup(n, { emit: y }) {
|
|
13
|
+
const p = y, a = o(!1), l = o(""), i = o(), h = async () => {
|
|
14
|
+
a.value = !0, p("toggle", a), await w(), i.value.focus();
|
|
15
|
+
};
|
|
16
|
+
return (r, e) => (t(), s(g, null, [
|
|
17
|
+
c("div", {
|
|
18
|
+
class: m(["w-full", a.value || n.isSearchOnly ? "" : "absolute max-w-0 overflow-hidden"])
|
|
19
|
+
}, [
|
|
20
|
+
c("div", B, [
|
|
21
|
+
x(u(O), {
|
|
22
|
+
ref_key: "searchInput",
|
|
23
|
+
ref: i,
|
|
24
|
+
modelValue: l.value,
|
|
25
|
+
"onUpdate:modelValue": e[0] || (e[0] = (k) => l.value = k),
|
|
26
|
+
placeholder: "Search something here",
|
|
27
|
+
class: "md:min-w-[310px]",
|
|
28
|
+
icon: "search",
|
|
29
|
+
onKeyup: e[1] || (e[1] = S(
|
|
30
|
+
() => {
|
|
31
|
+
r.$emit("addQuery", l.value), l.value = "";
|
|
32
|
+
},
|
|
33
|
+
["enter"]
|
|
34
|
+
))
|
|
35
|
+
}, null, 8, ["modelValue"]),
|
|
36
|
+
n.isSearchOnly ? (t(), d(u(f), {
|
|
37
|
+
key: 0,
|
|
38
|
+
label: "Search",
|
|
39
|
+
variant: "secondary",
|
|
40
|
+
class: "shrink-0",
|
|
41
|
+
onClick: e[2] || (e[2] = () => {
|
|
42
|
+
r.$emit("addQuery", l.value), l.value = "";
|
|
43
|
+
})
|
|
44
|
+
})) : (t(), s("span", {
|
|
45
|
+
key: 1,
|
|
46
|
+
class: "py-3 text-base cursor-pointer flex normal-case items-center font-medium text-oc-text-400",
|
|
47
|
+
onClick: e[3] || (e[3] = () => {
|
|
48
|
+
a.value = !1, r.$emit("toggle", a.value), l.value = "";
|
|
49
|
+
})
|
|
50
|
+
}, " Clear "))
|
|
51
|
+
])
|
|
52
|
+
], 2),
|
|
53
|
+
n.isSearchOnly ? v("", !0) : (t(), s("div", {
|
|
54
|
+
key: 0,
|
|
55
|
+
class: m(a.value ? "max-w-0 overflow-hidden" : "")
|
|
56
|
+
}, [
|
|
57
|
+
a.value ? v("", !0) : (t(), d(u(f), {
|
|
58
|
+
key: 0,
|
|
59
|
+
variant: "secondary",
|
|
60
|
+
"left-icon": "search",
|
|
61
|
+
onClick: h
|
|
62
|
+
}))
|
|
63
|
+
], 2))
|
|
64
|
+
], 64));
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
export {
|
|
68
|
+
$ as default
|
|
69
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { computed as k, openBlock as a, createBlock as m, unref as o, withCtx as x, createElementVNode as f, createElementBlock as v, Fragment as b, renderList as p, createVNode as F, createCommentVNode as $ } from "vue";
|
|
2
|
+
import { N as y, an as i } from "./index-DyVteXE3.js";
|
|
3
|
+
const N = { class: "flex gap-1 items-center normal-case flex-wrap" }, R = {
|
|
4
|
+
__name: "OcFilterSearchFor",
|
|
5
|
+
props: {
|
|
6
|
+
filters: Object,
|
|
7
|
+
queries: Object
|
|
8
|
+
},
|
|
9
|
+
emits: {
|
|
10
|
+
removeQuery: [],
|
|
11
|
+
removeFilter: [],
|
|
12
|
+
removeAll: []
|
|
13
|
+
},
|
|
14
|
+
setup(s, { emit: d }) {
|
|
15
|
+
const g = s, c = d, u = k(() => {
|
|
16
|
+
var l;
|
|
17
|
+
let t = [];
|
|
18
|
+
return (l = g.filters) == null || l.forEach((e) => {
|
|
19
|
+
if (e.multiNames) {
|
|
20
|
+
const r = t.find((n) => n.name === e.multiNames[0]);
|
|
21
|
+
r ? r.label = r.label + e.label : t.push(e);
|
|
22
|
+
} else
|
|
23
|
+
t.push(e);
|
|
24
|
+
}), t;
|
|
25
|
+
}), h = (t, l) => {
|
|
26
|
+
let e = {};
|
|
27
|
+
e[t] = "", l ? l.forEach((r) => {
|
|
28
|
+
let n = {};
|
|
29
|
+
n[r] = "", c("removeFilter", n, r);
|
|
30
|
+
}) : c("removeFilter", e, t);
|
|
31
|
+
};
|
|
32
|
+
return (t, l) => u.value.length > 0 || s.queries.length > 0 ? (a(), m(o(y), {
|
|
33
|
+
key: 0,
|
|
34
|
+
class: "!w-full !justify-start !bg-oc-bg-light"
|
|
35
|
+
}, {
|
|
36
|
+
default: x(() => [
|
|
37
|
+
f("div", N, [
|
|
38
|
+
l[1] || (l[1] = f("span", { class: "pr-2 text-sm font-medium text-oc-text" }, "Search for:", -1)),
|
|
39
|
+
(a(!0), v(b, null, p(s.queries, (e) => (a(), m(o(i), {
|
|
40
|
+
key: e,
|
|
41
|
+
variant: "accent-1",
|
|
42
|
+
closable: "",
|
|
43
|
+
label: e,
|
|
44
|
+
onRemove: (r) => t.$emit("removeQuery", e)
|
|
45
|
+
}, null, 8, ["label", "onRemove"]))), 128)),
|
|
46
|
+
(a(!0), v(b, null, p(u.value, (e) => (a(), m(o(i), {
|
|
47
|
+
key: e.name,
|
|
48
|
+
variant: "accent-1",
|
|
49
|
+
closable: "",
|
|
50
|
+
label: e.label,
|
|
51
|
+
onRemove: (r) => h(e.name, e.multiNames)
|
|
52
|
+
}, null, 8, ["label", "onRemove"]))), 128)),
|
|
53
|
+
F(o(i), {
|
|
54
|
+
variant: "gray",
|
|
55
|
+
class: "cursor-pointer",
|
|
56
|
+
label: "Clear all",
|
|
57
|
+
onClick: l[0] || (l[0] = (e) => t.$emit("removeAll"))
|
|
58
|
+
})
|
|
59
|
+
])
|
|
60
|
+
]),
|
|
61
|
+
_: 1
|
|
62
|
+
})) : $("", !0);
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
export {
|
|
66
|
+
R as default
|
|
67
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ref as n, openBlock as r, createBlock as f, unref as p, withCtx as g, createVNode as v } from "vue";
|
|
2
|
+
import { au as d } from "./index-DyVteXE3.js";
|
|
3
|
+
import x from "./OcCropper-7E2i6ayU.js";
|
|
4
|
+
const S = {
|
|
5
|
+
__name: "OcModalCropper",
|
|
6
|
+
props: {
|
|
7
|
+
inputOptions: Array,
|
|
8
|
+
inputOptionValues: Object,
|
|
9
|
+
img: String,
|
|
10
|
+
maxSize: [String, Number]
|
|
11
|
+
},
|
|
12
|
+
emits: ["changeImage", "close", "update:input-options"],
|
|
13
|
+
setup(t, { emit: s }) {
|
|
14
|
+
const l = t, o = s;
|
|
15
|
+
n(), n();
|
|
16
|
+
const m = {
|
|
17
|
+
onClick: () => o("close")
|
|
18
|
+
}, i = n(), a = n(l.link), c = n({
|
|
19
|
+
label: "Save",
|
|
20
|
+
onClick: () => {
|
|
21
|
+
a.value && o("update:input-options", a.value), i.value ? o("changeImage", i.value) : o("close");
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
return (O, e) => (r(), f(p(d), {
|
|
25
|
+
title: "Edit Image",
|
|
26
|
+
"is-close-icon": "",
|
|
27
|
+
"cancel-button-props": m,
|
|
28
|
+
"confirm-button-props": c.value
|
|
29
|
+
}, {
|
|
30
|
+
default: g(() => [
|
|
31
|
+
v(p(x), {
|
|
32
|
+
"input-options": t.inputOptions,
|
|
33
|
+
"input-option-values": t.inputOptionValues,
|
|
34
|
+
img: t.img,
|
|
35
|
+
"max-size": t.maxSize,
|
|
36
|
+
onChangeImage: e[0] || (e[0] = (u) => i.value = u),
|
|
37
|
+
"onUpdate:inputOptions": e[1] || (e[1] = (u) => a.value = u)
|
|
38
|
+
}, null, 8, ["input-options", "input-option-values", "img", "max-size"])
|
|
39
|
+
]),
|
|
40
|
+
_: 1
|
|
41
|
+
}, 8, ["confirm-button-props"]));
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
export {
|
|
45
|
+
S as default
|
|
46
|
+
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { openBlock as r, createElementBlock as o, createElementVNode as t } from "vue";
|
|
2
|
-
/* empty css */
|
|
3
2
|
import { _ as n } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
3
|
const _ = {}, i = { class: "bg-gray-100 overflow-hidden" };
|
|
5
4
|
function a(d, e) {
|
|
@@ -7,7 +6,7 @@ function a(d, e) {
|
|
|
7
6
|
t("div", { class: "slide relative rounded-[inherit] h-[inherit] w-[40px] bg-[linear-gradient(-90deg,_var(--oc-gray-200)_0%,_rgba(229,_230,_234,_0)_100%)]" }, null, -1)
|
|
8
7
|
]));
|
|
9
8
|
}
|
|
10
|
-
const
|
|
9
|
+
const l = /* @__PURE__ */ n(_, [["render", a], ["__scopeId", "data-v-2b70f697"]]);
|
|
11
10
|
export {
|
|
12
|
-
|
|
11
|
+
l as S
|
|
13
12
|
};
|