@oneb/ui-vue 0.2.4 → 0.2.9
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/README.md +7 -9
- package/dist/{OneHelpMenu-37653a53.js → OneHelpMenu-adc595d0.js} +131 -130
- package/dist/OneHelpMenu-b9ca7ee4.cjs +1 -0
- package/dist/SpinnerIcon-24e552a8.js +26 -0
- package/dist/SpinnerIcon-89c60210.cjs +1 -0
- package/dist/button/button.d.ts +1 -1
- package/dist/button/index.cjs +1 -1
- package/dist/button/index.js +142 -3
- package/dist/button/util.d.ts +1 -1
- package/dist/buttonGroup/props.d.ts +1 -1
- package/dist/card/card.d.ts +1 -1
- package/dist/checkbox/checkbox.d.ts +41 -0
- package/dist/checkbox/index.d.ts +2 -0
- package/dist/common/avatar.d.ts +1 -1
- package/dist/common/index.cjs +5 -5
- package/dist/common/index.d.ts +1 -0
- package/dist/common/index.js +7 -4
- package/dist/dropdown/dropdown.d.ts +2 -2
- package/dist/dropdown/index.cjs +1 -1
- package/dist/dropdown/index.js +14 -13
- package/dist/dropdown/menu.d.ts +1 -1
- package/dist/entityPicker/OneEntityPicker.vue.d.ts +2 -0
- package/dist/entityPicker/entityPicker.d.ts +179 -0
- package/dist/entityPicker/index.d.ts +4 -0
- package/dist/errorsPage/OneErrorPage.vue.d.ts +2 -0
- package/dist/errorsPage/errorsType.d.ts +21 -0
- package/dist/errorsPage/index.d.ts +2 -0
- package/dist/form/form.d.ts +2 -2
- package/dist/form/index.d.ts +1 -1
- package/dist/form/index.js +1 -3
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +15 -4
- package/dist/index.js +9840 -222
- package/dist/indicators/indicators.d.ts +1 -1
- package/dist/infobox/OneInfobox.vue.d.ts +2 -0
- package/dist/infobox/box.d.ts +21 -0
- package/dist/infobox/index.d.ts +2 -0
- package/dist/infobox/util.d.ts +2 -0
- package/dist/layout/index.cjs +1 -1
- package/dist/layout/index.js +67 -56
- package/dist/layout/layout.d.ts +1 -1
- package/dist/modal/OneModal.vue.d.ts +2 -0
- package/dist/modal/OneModalBody.vue.d.ts +2 -0
- package/dist/modal/OneModalFooter.vue.d.ts +2 -0
- package/dist/modal/OneModalHeader.vue.d.ts +2 -0
- package/dist/modal/index.d.ts +7 -0
- package/dist/modal/modal.d.ts +46 -0
- package/dist/modal/useModal.d.ts +3 -0
- package/dist/modal/util.d.ts +2 -0
- package/dist/periodPicker/OnePeriodPicker.vue.d.ts +2 -0
- package/dist/periodPicker/OnePeriodPickerFastModal.vue.d.ts +2 -0
- package/dist/periodPicker/index.d.ts +4 -0
- package/dist/periodPicker/periodPicker.d.ts +96 -0
- package/dist/periodPicker/util.d.ts +49 -0
- package/dist/radio/OneRadio.vue.d.ts +2 -0
- package/dist/radio/index.d.ts +2 -0
- package/dist/radio/radio.d.ts +22 -0
- package/dist/skeleton/OneSkeleton.vue.d.ts +2 -0
- package/dist/skeleton/index.d.ts +2 -0
- package/dist/skeleton/skeleton.d.ts +21 -0
- package/dist/skeleton/util.d.ts +2 -0
- package/dist/style.css +1 -1
- package/dist/switch/switch.d.ts +1 -1
- package/dist/toast/OneToast.vue.d.ts +2 -0
- package/dist/toast/index.d.ts +2 -0
- package/dist/toast/utils.d.ts +2 -0
- package/dist/tooltip/index.d.ts +2 -0
- package/package.json +58 -4
- package/dist/OneHelpMenu-05780713.cjs +0 -1
- package/dist/index-9f8735d9.cjs +0 -1
- package/dist/index-f8afb6b6.js +0 -149
- /package/dist/{button/SpinnerIcon.vue.d.ts → checkbox/OneCheckbox.vue.d.ts} +0 -0
- /package/dist/{switch → common}/SpinnerIcon.vue.d.ts +0 -0
package/README.md
CHANGED
|
@@ -5,16 +5,13 @@
|
|
|
5
5
|
```vue
|
|
6
6
|
<template>
|
|
7
7
|
<div>
|
|
8
|
-
<OneButton label="Primary" variant="primary"/>
|
|
9
|
-
<OneLink to="home" label="Primary" variant="primary"/>
|
|
10
|
-
|
|
8
|
+
<OneButton label="Primary" variant="primary" />
|
|
9
|
+
<OneLink to="home" label="Primary" variant="primary" />
|
|
10
|
+
|
|
11
11
|
<OneCard>
|
|
12
|
-
<OneCardHeader title="Some title" description="Some Desc"/>
|
|
13
|
-
<OneCardBody>
|
|
14
|
-
Here is content of the card.
|
|
15
|
-
</OneCardBody>
|
|
12
|
+
<OneCardHeader title="Some title" description="Some Desc" />
|
|
13
|
+
<OneCardBody> Here is content of the card. </OneCardBody>
|
|
16
14
|
</OneCard>
|
|
17
|
-
|
|
18
15
|
</div>
|
|
19
16
|
</template>
|
|
20
17
|
|
|
@@ -26,6 +23,7 @@ import { OneButton, OneLink, OneCard, OneCardHeader, OneCardBody } from '@oneb/u
|
|
|
26
23
|
## Setup
|
|
27
24
|
|
|
28
25
|
### 1. src/assets/mains.css
|
|
26
|
+
|
|
29
27
|
add line: `@import '@oneb/ui-vue/style.css';`
|
|
30
28
|
add line: `@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');`
|
|
31
29
|
|
|
@@ -40,7 +38,7 @@ const onebui = require('onebui-vue/tailwind.config')
|
|
|
40
38
|
|
|
41
39
|
module.exports = {
|
|
42
40
|
content: [
|
|
43
|
-
...,
|
|
41
|
+
...,
|
|
44
42
|
"./node_modules/@oneb/ui-vue/dist/**/*.{vue,js,ts,jsx,tsx}"
|
|
45
43
|
],
|
|
46
44
|
theme: onebui.theme,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as z, ref as L, provide as X, computed as F, openBlock as t, createElementBlock as o, renderSlot as
|
|
1
|
+
import { defineComponent as z, ref as L, provide as X, computed as F, openBlock as t, createElementBlock as o, renderSlot as N, normalizeProps as R, guardReactiveProps as W, createCommentVNode as p, createVNode as w, Transition as Y, withCtx as I, normalizeClass as O, toDisplayString as a, inject as Z, withModifiers as ee, createBlock as j, resolveDynamicComponent as P, createElementVNode as e, Fragment as $, renderList as A, mergeProps as te, unref as b } from "vue";
|
|
2
2
|
import { _ as B } from "./OneAvatar.vue_vue_type_script_setup_true_lang-08ab80dd.js";
|
|
3
3
|
import { r as G } from "./XMarkIcon-51ef0691.js";
|
|
4
|
-
import {
|
|
4
|
+
import { OneButton as oe } from "./button/index.js";
|
|
5
5
|
import { _ as J } from "./_plugin-vue_export-helper-dad06003.js";
|
|
6
6
|
const ne = {
|
|
7
7
|
title: {
|
|
@@ -30,16 +30,17 @@ const ne = {
|
|
|
30
30
|
props: ne,
|
|
31
31
|
emits: ["open", "close"],
|
|
32
32
|
setup(f, { emit: u }) {
|
|
33
|
-
const v = L(!1),
|
|
33
|
+
const v = L(!1), h = L(null), c = u, i = f, d = () => {
|
|
34
34
|
v.value = !v.value, v.value ? c("open") : c("close");
|
|
35
35
|
};
|
|
36
36
|
X("OneDropdown", {
|
|
37
|
-
onToggle:
|
|
37
|
+
onToggle: d
|
|
38
38
|
});
|
|
39
39
|
const r = F(() => {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
var k;
|
|
41
|
+
const n = (k = h.value) == null ? void 0 : k.getBoundingClientRect(), x = n ? n.x < 270 : !1;
|
|
42
|
+
return n && n.top + 270 > window.innerHeight ? "up" + (x ? "-right" : "-left") : "down" + (x ? "-right" : "-left");
|
|
43
|
+
}), _ = F(() => {
|
|
43
44
|
const n = [
|
|
44
45
|
"absolute z-10 w-fit rounded-md bg-white",
|
|
45
46
|
"py-1 shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none",
|
|
@@ -47,18 +48,18 @@ const ne = {
|
|
|
47
48
|
];
|
|
48
49
|
return r.value.startsWith("up") ? n.push("bottom-1 mb-10") : r.value.startsWith("down") && n.push("top-1 mt-10"), i.stick === "right" ? n.push("right-0") : i.stick === "left" && n.push("left-0"), n;
|
|
49
50
|
});
|
|
50
|
-
return (n,
|
|
51
|
+
return (n, x) => (t(), o("div", {
|
|
51
52
|
class: "relative inline-block",
|
|
52
53
|
ref_key: "menuRef",
|
|
53
|
-
ref:
|
|
54
|
+
ref: h,
|
|
54
55
|
"data-opened": v.value
|
|
55
56
|
}, [
|
|
56
|
-
|
|
57
|
+
N(n.$slots, "button", R(W({ onToggle: d, isExpanded: v.value }))),
|
|
57
58
|
v.value ? (t(), o("div", {
|
|
58
59
|
key: 0,
|
|
59
60
|
class: "fixed top-0 left-0 w-screen h-screen z-10",
|
|
60
|
-
onClick:
|
|
61
|
-
})) :
|
|
61
|
+
onClick: d
|
|
62
|
+
})) : p("", !0),
|
|
62
63
|
w(Y, {
|
|
63
64
|
"enter-active-class": "transition ease-out duration-100",
|
|
64
65
|
"enter-from-class": "transform opacity-0 scale-95",
|
|
@@ -70,14 +71,14 @@ const ne = {
|
|
|
70
71
|
default: I(() => [
|
|
71
72
|
v.value ? (t(), o("div", {
|
|
72
73
|
key: 0,
|
|
73
|
-
class:
|
|
74
|
+
class: O(["menu", _.value]),
|
|
74
75
|
role: "menu",
|
|
75
76
|
"aria-orientation": "vertical",
|
|
76
77
|
tabindex: "-1"
|
|
77
78
|
}, [
|
|
78
|
-
n.title ? (t(), o("div", le, a(n.title), 1)) :
|
|
79
|
-
|
|
80
|
-
], 2)) :
|
|
79
|
+
n.title ? (t(), o("div", le, a(n.title), 1)) : p("", !0),
|
|
80
|
+
N(n.$slots, "menu", R(W({ onToggle: d })))
|
|
81
|
+
], 2)) : p("", !0)
|
|
81
82
|
]),
|
|
82
83
|
_: 3
|
|
83
84
|
})
|
|
@@ -88,20 +89,20 @@ const ne = {
|
|
|
88
89
|
props: se,
|
|
89
90
|
emits: ["click"],
|
|
90
91
|
setup(f, { emit: u }) {
|
|
91
|
-
const v = u,
|
|
92
|
+
const v = u, h = f, c = Z("OneDropdown"), i = () => {
|
|
92
93
|
c !== void 0 && c.onToggle(), v("click");
|
|
93
|
-
},
|
|
94
|
+
}, d = F(() => {
|
|
94
95
|
const r = [];
|
|
95
|
-
return
|
|
96
|
+
return h.variant === "secondary" ? r.push("text-secondary-content hover:bg-secondary-body-hover") : h.variant === "danger" ? r.push("text-danger-content hover:bg-danger-10") : h.variant === "warning" ? r.push("text-warning-content hover:bg-warning-10") : h.variant === "info" ? r.push("text-info-content hover:bg-info-10") : r.push("hover:bg-secondary-body-hover"), r;
|
|
96
97
|
});
|
|
97
|
-
return (r,
|
|
98
|
-
class:
|
|
98
|
+
return (r, _) => (t(), o("button", {
|
|
99
|
+
class: O(["px-3 py-1.5 flex items-center space-x-3 w-full whitespace-nowrap", d.value]),
|
|
99
100
|
onClick: ee(i, ["prevent"])
|
|
100
101
|
}, [
|
|
101
102
|
r.icon ? (t(), j(P(r.icon), {
|
|
102
103
|
key: 0,
|
|
103
104
|
class: "w-4 h-4"
|
|
104
|
-
})) :
|
|
105
|
+
})) : p("", !0),
|
|
105
106
|
e("span", null, a(r.label), 1)
|
|
106
107
|
], 2));
|
|
107
108
|
}
|
|
@@ -197,59 +198,59 @@ const ae = {
|
|
|
197
198
|
setup(f) {
|
|
198
199
|
const u = f, v = F(() => {
|
|
199
200
|
var i;
|
|
200
|
-
return (i = u.menu) == null ? void 0 : i.map((
|
|
201
|
-
let r = { label:
|
|
202
|
-
|
|
203
|
-
const
|
|
201
|
+
return (i = u.menu) == null ? void 0 : i.map((d) => {
|
|
202
|
+
let r = { label: d.label };
|
|
203
|
+
d.icon != null && (r = { ...r, icon: d.icon });
|
|
204
|
+
const _ = typeof d.click == "function" ? d.click : () => {
|
|
204
205
|
};
|
|
205
206
|
return {
|
|
206
|
-
key:
|
|
207
|
+
key: d.label,
|
|
207
208
|
args: r,
|
|
208
|
-
click:
|
|
209
|
+
click: _
|
|
209
210
|
};
|
|
210
211
|
});
|
|
211
|
-
}),
|
|
212
|
+
}), h = () => {
|
|
212
213
|
typeof u.onAccount == "function" && u.onAccount();
|
|
213
214
|
}, c = () => {
|
|
214
215
|
typeof u.onLogout == "function" && u.onLogout();
|
|
215
216
|
};
|
|
216
|
-
return (i,
|
|
217
|
-
button: I(({ onToggle: r, isExpanded:
|
|
218
|
-
var n,
|
|
217
|
+
return (i, d) => (t(), j(ie, { stick: "right" }, {
|
|
218
|
+
button: I(({ onToggle: r, isExpanded: _ }) => {
|
|
219
|
+
var n, x;
|
|
219
220
|
return [
|
|
220
221
|
e("button", {
|
|
221
222
|
onClick: r,
|
|
222
|
-
class:
|
|
223
|
+
class: O(["p-1 rounded-full hover:bg-secondary-10", [_ ? "bg-secondary-25" : ""]])
|
|
223
224
|
}, [
|
|
224
225
|
w(B, {
|
|
225
226
|
text: ((n = i.user) == null ? void 0 : n.name) || "",
|
|
226
227
|
size: i.iconSize,
|
|
227
|
-
src: (
|
|
228
|
+
src: (x = i.user) == null ? void 0 : x.photo_url,
|
|
228
229
|
rounded: !0
|
|
229
230
|
}, null, 8, ["text", "size", "src"])
|
|
230
231
|
], 10, pe)
|
|
231
232
|
];
|
|
232
233
|
}),
|
|
233
234
|
menu: I(() => {
|
|
234
|
-
var r,
|
|
235
|
+
var r, _, n, x, k;
|
|
235
236
|
return [
|
|
236
237
|
e("div", he, [
|
|
237
238
|
w(B, {
|
|
238
239
|
text: ((r = i.user) == null ? void 0 : r.name) || "",
|
|
239
240
|
size: 80,
|
|
240
|
-
src: (
|
|
241
|
+
src: (_ = i.user) == null ? void 0 : _.photo_url,
|
|
241
242
|
rounded: !0,
|
|
242
243
|
class: "mx-auto"
|
|
243
244
|
}, null, 8, ["text", "src"]),
|
|
244
245
|
e("div", fe, [
|
|
245
246
|
e("div", ve, a((n = i.user) == null ? void 0 : n.name), 1),
|
|
246
|
-
e("div", xe, a((
|
|
247
|
+
e("div", xe, a((x = i.user) == null ? void 0 : x.email), 1)
|
|
247
248
|
]),
|
|
248
249
|
typeof u.onAccount == "function" ? (t(), o("a", {
|
|
249
250
|
key: 0,
|
|
250
|
-
onClick:
|
|
251
|
+
onClick: h,
|
|
251
252
|
class: "cursor-pointer justify-center px-8 py-2 mt-3 text-xs font-semibold tracking-wide leading-5 text-gray-600 border border-solid bg-neutral-100 border-slate-200 rounded-[50px] hover:bg-neutral-200"
|
|
252
|
-
}, a(i.accountLabel), 1)) :
|
|
253
|
+
}, a(i.accountLabel), 1)) : p("", !0),
|
|
253
254
|
e("div", me, [
|
|
254
255
|
(t(!0), o($, null, A(v.value, (C) => (t(), j(U, te({
|
|
255
256
|
key: C.key,
|
|
@@ -263,13 +264,13 @@ const ae = {
|
|
|
263
264
|
label: i.logoutLabel,
|
|
264
265
|
class: "rounded py-3",
|
|
265
266
|
onClick: c
|
|
266
|
-
}, null, 8, ["icon", "label"])) :
|
|
267
|
+
}, null, 8, ["icon", "label"])) : p("", !0)
|
|
267
268
|
]),
|
|
268
|
-
|
|
269
|
+
d[0] || (d[0] = e("div", {
|
|
269
270
|
class: "space-y-2 text-center",
|
|
270
271
|
style: { width: "240px" }
|
|
271
272
|
}, null, -1)),
|
|
272
|
-
e("div", ge, a((
|
|
273
|
+
e("div", ge, a((k = i.app) == null ? void 0 : k.version), 1)
|
|
273
274
|
])
|
|
274
275
|
];
|
|
275
276
|
}),
|
|
@@ -423,32 +424,32 @@ const ke = ["data-opened"], ye = {
|
|
|
423
424
|
}, be = { class: "flex justify-between items-center pt-3 mb-3" }, Ce = { class: "font-semibold text-xl px-3" }, $e = { class: "grid" }, Ae = { class: "rounded-lg m-3 border" }, Fe = {
|
|
424
425
|
class: "space-x-2 flex items-center px-3 py-2",
|
|
425
426
|
style: { width: "300px" }
|
|
426
|
-
}, Le = { class: "flex justify-between relative" }, je = { class: "flex items-center justify-between w-full text-left text-sm font-semibold" }, Me = { key: 0 }, Be = { class: "text-xs font-semibold" }, ze = { class: "px-3 py-2" },
|
|
427
|
+
}, Le = { class: "flex justify-between relative" }, je = { class: "flex items-center justify-between w-full text-left text-sm font-semibold" }, Me = { key: 0 }, Be = { class: "text-xs font-semibold" }, ze = { class: "px-3 py-2" }, Oe = { class: "text-secondary-content text-left pb-1 text-xs uppercase" }, Se = { class: "overflow-auto max-h-full" }, Ee = {
|
|
427
428
|
key: 0,
|
|
428
429
|
class: "space-y-2"
|
|
429
|
-
}, Ie = ["onClick"], Pe = { class: "flex" }, He = { class: "border border-secondary-stroke rounded-2xl w-14 h-14 md:w-14 md:h-14 flex items-center justify-center" }, Te = { class: "pl-2" }, Ve = { class: "text-sm mt-1 font-semibold" }, De = { class: "text9 mt-1" },
|
|
430
|
+
}, Ie = ["onClick"], Pe = { class: "flex" }, He = { class: "border border-secondary-stroke rounded-2xl w-14 h-14 md:w-14 md:h-14 flex items-center justify-center" }, Te = { class: "pl-2" }, Ve = { class: "text-sm mt-1 font-semibold" }, De = { class: "text9 mt-1" }, qe = {
|
|
430
431
|
key: 1,
|
|
431
432
|
class: "mt-2 w-full bg-[#FAFAFA] hover:bg-secondary-10 p-2 rounded-lg mb-5 text-xs hidden"
|
|
432
|
-
},
|
|
433
|
+
}, Ne = /* @__PURE__ */ z({
|
|
433
434
|
__name: "OneBrowserMenu",
|
|
434
435
|
props: ue,
|
|
435
436
|
emits: ["open", "close"],
|
|
436
437
|
setup(f, { emit: u }) {
|
|
437
|
-
const v = u,
|
|
438
|
+
const v = u, h = f, c = L(!1), i = () => {
|
|
438
439
|
c.value = !c.value, c.value ? v("open") : v("close");
|
|
439
|
-
},
|
|
440
|
-
F(() =>
|
|
440
|
+
}, d = L(!1);
|
|
441
|
+
F(() => d.value ? Q : K);
|
|
441
442
|
const r = () => {
|
|
442
|
-
typeof
|
|
443
|
-
},
|
|
444
|
-
typeof
|
|
443
|
+
typeof h.onChange == "function" && h.onChange();
|
|
444
|
+
}, _ = (n) => {
|
|
445
|
+
typeof h.onApp == "function" && h.onApp(n);
|
|
445
446
|
};
|
|
446
|
-
return (n,
|
|
447
|
-
var
|
|
447
|
+
return (n, x) => {
|
|
448
|
+
var k, C, l, m, y, M;
|
|
448
449
|
return t(), o("div", { "data-opened": c.value }, [
|
|
449
450
|
e("button", {
|
|
450
451
|
onClick: i,
|
|
451
|
-
class:
|
|
452
|
+
class: O(["p-1 w-[44px] h-[44px] rounded-md hover:bg-secondary-10", { "bg-secondary-10": c.value }])
|
|
452
453
|
}, [
|
|
453
454
|
w(b(_e), { class: "text-secondary-base w-full p-1 hover:text-blue-600 m-auto" })
|
|
454
455
|
], 2),
|
|
@@ -456,10 +457,10 @@ const ke = ["data-opened"], ye = {
|
|
|
456
457
|
key: 0,
|
|
457
458
|
class: "fixed top-0 left-0 w-screen h-screen z-10 bg-black/10",
|
|
458
459
|
onClick: i
|
|
459
|
-
})) :
|
|
460
|
+
})) : p("", !0),
|
|
460
461
|
c.value ? (t(), o("div", ye, [
|
|
461
462
|
e("div", be, [
|
|
462
|
-
e("div", Ce, a((
|
|
463
|
+
e("div", Ce, a((k = n.workspace) == null ? void 0 : k.title), 1),
|
|
463
464
|
w(b(G), {
|
|
464
465
|
class: "w-6 cursor-pointer",
|
|
465
466
|
onClick: i
|
|
@@ -477,72 +478,72 @@ const ke = ["data-opened"], ye = {
|
|
|
477
478
|
class: "mx-auto"
|
|
478
479
|
}, null, 8, ["text", "src"])
|
|
479
480
|
]),
|
|
480
|
-
e("div", je, a((
|
|
481
|
+
e("div", je, a((m = n.workspace) == null ? void 0 : m.name), 1)
|
|
481
482
|
]),
|
|
482
|
-
|
|
483
|
-
(t(!0), o($, null, A(n.workspaces, (
|
|
484
|
-
key:
|
|
483
|
+
d.value ? (t(), o("div", Me, [
|
|
484
|
+
(t(!0), o($, null, A(n.workspaces, (g) => (t(), o("div", {
|
|
485
|
+
key: g.name,
|
|
485
486
|
class: "flex items-center space-x-3 border-t px-5 py-2 hover:bg-secondary-10"
|
|
486
487
|
}, [
|
|
487
488
|
w(B, {
|
|
488
|
-
text:
|
|
489
|
-
src:
|
|
489
|
+
text: g.name,
|
|
490
|
+
src: g.photo_url,
|
|
490
491
|
size: 30,
|
|
491
492
|
rounded: !1
|
|
492
493
|
}, null, 8, ["text", "src"]),
|
|
493
|
-
e("span", Be, a(
|
|
494
|
+
e("span", Be, a(g.name), 1)
|
|
494
495
|
]))), 128))
|
|
495
|
-
])) :
|
|
496
|
-
|
|
496
|
+
])) : p("", !0),
|
|
497
|
+
x[0] || (x[0] = e("hr", null, null, -1)),
|
|
497
498
|
e("div", {
|
|
498
499
|
onClick: r,
|
|
499
500
|
class: "text-center py-2 cursor-pointer",
|
|
500
501
|
style: { "font-size": "10px" }
|
|
501
|
-
}, a((
|
|
502
|
+
}, a((y = n.workspace) == null ? void 0 : y.changeLabel), 1)
|
|
502
503
|
])
|
|
503
504
|
]),
|
|
504
505
|
e("div", ze, [
|
|
505
|
-
e("div",
|
|
506
|
-
e("div",
|
|
506
|
+
e("div", Oe, a((M = n.workspace) == null ? void 0 : M.appsLabel), 1),
|
|
507
|
+
e("div", Se, [
|
|
507
508
|
n.apps && n.apps.length ? (t(), o("div", Ee, [
|
|
508
|
-
(t(!0), o($, null, A(n.apps, (
|
|
509
|
-
key:
|
|
510
|
-
onClick: (
|
|
509
|
+
(t(!0), o($, null, A(n.apps, (g) => (t(), o("div", {
|
|
510
|
+
key: g.id,
|
|
511
|
+
onClick: (S) => _(g),
|
|
511
512
|
class: "flex justify-between items-center rounded-lg hover:bg-secondary-10 p-2 bg-[#FAFAFA] cursor-pointer"
|
|
512
513
|
}, [
|
|
513
514
|
e("div", Pe, [
|
|
514
515
|
e("div", He, [
|
|
515
516
|
w(B, {
|
|
516
|
-
text:
|
|
517
|
-
src:
|
|
517
|
+
text: g.name,
|
|
518
|
+
src: g.photo_url,
|
|
518
519
|
size: 44,
|
|
519
520
|
rounded: !1
|
|
520
521
|
}, null, 8, ["text", "src"])
|
|
521
522
|
]),
|
|
522
523
|
e("div", Te, [
|
|
523
|
-
e("p", Ve, a(
|
|
524
|
-
e("p", De, a(
|
|
524
|
+
e("p", Ve, a(g.name), 1),
|
|
525
|
+
e("p", De, a(g == null ? void 0 : g.short), 1)
|
|
525
526
|
])
|
|
526
527
|
]),
|
|
527
528
|
e("div", null, [
|
|
528
529
|
w(oe, {
|
|
529
530
|
variant: "touch",
|
|
530
531
|
icon: b(we),
|
|
531
|
-
onClick: (
|
|
532
|
+
onClick: (S) => _(g)
|
|
532
533
|
}, null, 8, ["icon", "onClick"])
|
|
533
534
|
])
|
|
534
535
|
], 8, Ie))), 128))
|
|
535
|
-
])) :
|
|
536
|
-
n.apps && n.apps.length ? (t(), o("button",
|
|
536
|
+
])) : p("", !0),
|
|
537
|
+
n.apps && n.apps.length ? (t(), o("button", qe, a("Дивитися всі"))) : p("", !0)
|
|
537
538
|
])
|
|
538
539
|
])
|
|
539
|
-
])) :
|
|
540
|
+
])) : p("", !0)
|
|
540
541
|
], 8, ke);
|
|
541
542
|
};
|
|
542
543
|
}
|
|
543
544
|
});
|
|
544
|
-
const jt = /* @__PURE__ */ J(
|
|
545
|
-
function
|
|
545
|
+
const jt = /* @__PURE__ */ J(Ne, [["__scopeId", "data-v-2628df74"]]);
|
|
546
|
+
function Re(f, u) {
|
|
546
547
|
return t(), o("svg", {
|
|
547
548
|
xmlns: "http://www.w3.org/2000/svg",
|
|
548
549
|
fill: "none",
|
|
@@ -615,52 +616,52 @@ const Ge = ["data-opened"], Je = {
|
|
|
615
616
|
props: de,
|
|
616
617
|
emits: ["open", "close"],
|
|
617
618
|
setup(f, { emit: u }) {
|
|
618
|
-
const v = u,
|
|
619
|
+
const v = u, h = f, c = L(!1), i = () => {
|
|
619
620
|
c.value = !c.value, c.value ? v("open") : v("close");
|
|
620
|
-
},
|
|
621
|
-
var
|
|
622
|
-
const l = ((
|
|
621
|
+
}, d = F(() => k.value ? Q : K), r = L(3), _ = F(() => {
|
|
622
|
+
var m, y;
|
|
623
|
+
const l = ((y = (m = h.help) == null ? void 0 : m.helpList) == null ? void 0 : y.length) || 0;
|
|
623
624
|
return r.value === l;
|
|
624
625
|
});
|
|
625
626
|
F(() => {
|
|
626
|
-
var
|
|
627
|
-
return (((
|
|
627
|
+
var m;
|
|
628
|
+
return (((m = h.help) == null ? void 0 : m.helpList) || []).slice(0, r.value);
|
|
628
629
|
});
|
|
629
630
|
const n = () => {
|
|
630
|
-
var
|
|
631
|
-
const l = ((
|
|
632
|
-
r.value =
|
|
633
|
-
},
|
|
634
|
-
l &&
|
|
635
|
-
},
|
|
636
|
-
|
|
631
|
+
var m, y;
|
|
632
|
+
const l = ((y = (m = h.help) == null ? void 0 : m.helpList) == null ? void 0 : y.length) || 0;
|
|
633
|
+
r.value = _.value ? 3 : l;
|
|
634
|
+
}, x = (l, m) => {
|
|
635
|
+
l && m && typeof m.openLink == "function" ? m.openLink(m) : l && window.open(l, "_blank");
|
|
636
|
+
}, k = L(!1), C = () => {
|
|
637
|
+
k.value = !k.value;
|
|
637
638
|
};
|
|
638
|
-
return (l,
|
|
639
|
-
var
|
|
639
|
+
return (l, m) => {
|
|
640
|
+
var y, M, g, S, H, T, V, D, q;
|
|
640
641
|
return t(), o("div", { "data-opened": c.value }, [
|
|
641
642
|
e("button", {
|
|
642
643
|
onClick: i,
|
|
643
|
-
class:
|
|
644
|
+
class: O(["p-1 w-[44px] h-[44px] rounded-md hover:bg-secondary-10", { "bg-secondary-10": c.value }])
|
|
644
645
|
}, [
|
|
645
|
-
w(b(
|
|
646
|
+
w(b(Re), { class: "text-secondary-base w-full p-1 hover:text-blue-600 m-auto" })
|
|
646
647
|
], 2),
|
|
647
648
|
c.value ? (t(), o("div", {
|
|
648
649
|
key: 0,
|
|
649
650
|
class: "fixed top-0 left-0 w-screen h-screen z-10 bg-black/10 flex flex-col",
|
|
650
651
|
onClick: i
|
|
651
|
-
})) :
|
|
652
|
+
})) : p("", !0),
|
|
652
653
|
c.value ? (t(), o("div", Je, [
|
|
653
654
|
e("div", Ke, [
|
|
654
|
-
e("div", Qe, a((
|
|
655
|
+
e("div", Qe, a((y = l.help) == null ? void 0 : y.label), 1),
|
|
655
656
|
w(b(G), {
|
|
656
657
|
class: "w-6 cursor-pointer",
|
|
657
658
|
onClick: i
|
|
658
659
|
})
|
|
659
660
|
]),
|
|
660
661
|
(M = l.help) != null && M.helpButton ? (t(), o("div", Xe, [
|
|
661
|
-
(t(!0), o($, null, A((
|
|
662
|
+
(t(!0), o($, null, A((g = l.help) == null ? void 0 : g.helpButton, (s) => (t(), o("button", {
|
|
662
663
|
key: s.name,
|
|
663
|
-
onClick: (E) =>
|
|
664
|
+
onClick: (E) => x(s.link, s),
|
|
664
665
|
class: "grid justify-center space-y-2 hover:bg-slate-100 p-3 rounded-xl hover:text-blue-500"
|
|
665
666
|
}, [
|
|
666
667
|
e("div", null, [
|
|
@@ -668,13 +669,13 @@ const Ge = ["data-opened"], Je = {
|
|
|
668
669
|
]),
|
|
669
670
|
e("span", Ze, a(s.name), 1)
|
|
670
671
|
], 8, Ye))), 128))
|
|
671
|
-
])) :
|
|
672
|
+
])) : p("", !0),
|
|
672
673
|
e("div", et, [
|
|
673
674
|
e("div", tt, [
|
|
674
|
-
(
|
|
675
|
+
(S = l.help) != null && S.helpList && l.help.helpList.length ? (t(), o("div", ot, [
|
|
675
676
|
(t(!0), o($, null, A(l.help.helpList, (s) => (t(), o("div", {
|
|
676
677
|
key: s.id,
|
|
677
|
-
onClick: (E) =>
|
|
678
|
+
onClick: (E) => x(s.link, s),
|
|
678
679
|
class: "flex justify-between items-center rounded-lg hover:bg-slate-100 p-2 cursor-pointer hover:text-[#4089E0]"
|
|
679
680
|
}, [
|
|
680
681
|
e("div", st, [
|
|
@@ -684,25 +685,25 @@ const Ge = ["data-opened"], Je = {
|
|
|
684
685
|
])
|
|
685
686
|
])
|
|
686
687
|
], 8, nt))), 128))
|
|
687
|
-
])) :
|
|
688
|
+
])) : p("", !0)
|
|
688
689
|
])
|
|
689
690
|
]),
|
|
690
691
|
(H = l.help) != null && H.helpList && l.help.helpList.length < 0 ? (t(), o("button", {
|
|
691
692
|
key: 1,
|
|
692
693
|
onClick: n,
|
|
693
694
|
class: "h-11 w-full bg-[#FAFAFA] hover:bg-slate-100 p-3 text-[#525B66] rounded-b-xl text-xs hover:text-[#4089E0] font-medium"
|
|
694
|
-
}, a(
|
|
695
|
+
}, a(_.value ? l.help.buttNoMore : l.help.buttMore), 1)) : p("", !0),
|
|
695
696
|
e("div", ct, [
|
|
696
697
|
(T = l.help) != null && T.video ? (t(), o("div", at, [
|
|
697
698
|
(t(!0), o($, null, A(l.help.video, (s) => (t(), o("button", {
|
|
698
699
|
key: s.id,
|
|
699
|
-
onClick: (E) =>
|
|
700
|
+
onClick: (E) => x(s.link, s),
|
|
700
701
|
class: "flex items-center space-x-3 mt-2 w-full bg-[#FAFAFA] hover:bg-slate-100 p-4 text-[#525B66] rounded-lg text-sm hover:text-[#4089E0] font-medium"
|
|
701
702
|
}, [
|
|
702
703
|
w(b(We), { class: "w-6 h-6" }),
|
|
703
704
|
e("span", null, a(s.name), 1)
|
|
704
705
|
], 8, ut))), 128))
|
|
705
|
-
])) :
|
|
706
|
+
])) : p("", !0),
|
|
706
707
|
(V = l.help) != null && V.socialList ? (t(), o("button", {
|
|
707
708
|
key: 1,
|
|
708
709
|
onClick: C,
|
|
@@ -712,26 +713,26 @@ const Ge = ["data-opened"], Je = {
|
|
|
712
713
|
w(b(Ue), { class: "w-6 h-6" }),
|
|
713
714
|
e("span", null, a(l.help.socialButt), 1)
|
|
714
715
|
]),
|
|
715
|
-
w(b(
|
|
716
|
-
])) :
|
|
716
|
+
w(b(d), { class: "w-4 h-4" })
|
|
717
|
+
])) : p("", !0),
|
|
717
718
|
e("div", pt, [
|
|
718
|
-
|
|
719
|
+
k.value ? (t(), o("div", ht, [
|
|
719
720
|
e("div", ft, [
|
|
720
721
|
(t(!0), o($, null, A((D = l.help) == null ? void 0 : D.socialList, (s) => (t(), o("button", {
|
|
721
722
|
key: s.id,
|
|
722
|
-
onClick: (E) =>
|
|
723
|
+
onClick: (E) => x(s.link, s),
|
|
723
724
|
class: "flex items-center space-x-2 p-2 rounded-lg hover:bg-slate-100 hover:text-blue-500 tooltip"
|
|
724
725
|
}, [
|
|
725
726
|
e("div", null, [
|
|
726
|
-
s.name ? (t(), o("div", xt, a(s.name), 1)) :
|
|
727
|
+
s.name ? (t(), o("div", xt, a(s.name), 1)) : p("", !0),
|
|
727
728
|
(t(), j(P(s == null ? void 0 : s.icon), { class: "w-[24px] h-[24px] mx-auto" }))
|
|
728
729
|
])
|
|
729
730
|
], 8, vt))), 128))
|
|
730
731
|
])
|
|
731
|
-
])) :
|
|
732
|
+
])) : p("", !0)
|
|
732
733
|
]),
|
|
733
734
|
e("div", mt, [
|
|
734
|
-
(t(!0), o($, null, A((
|
|
735
|
+
(t(!0), o($, null, A((q = l.help) == null ? void 0 : q.termsOffer, (s) => (t(), o("a", {
|
|
735
736
|
key: s.name,
|
|
736
737
|
target: "_blank",
|
|
737
738
|
href: s.link,
|
|
@@ -745,23 +746,23 @@ const Ge = ["data-opened"], Je = {
|
|
|
745
746
|
], 8, gt))), 128))
|
|
746
747
|
])
|
|
747
748
|
])
|
|
748
|
-
])) :
|
|
749
|
+
])) : p("", !0)
|
|
749
750
|
], 8, Ge);
|
|
750
751
|
};
|
|
751
752
|
}
|
|
752
753
|
});
|
|
753
|
-
const Mt = /* @__PURE__ */ J(yt, [["__scopeId", "data-v-
|
|
754
|
+
const Mt = /* @__PURE__ */ J(yt, [["__scopeId", "data-v-071eaf70"]]);
|
|
754
755
|
export {
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
756
|
+
jt as O,
|
|
757
|
+
ie as _,
|
|
758
|
+
U as a,
|
|
759
|
+
Lt as b,
|
|
760
|
+
Mt as c,
|
|
761
|
+
ne as d,
|
|
762
|
+
ue as e,
|
|
763
|
+
_e as f,
|
|
764
|
+
Q as g,
|
|
765
|
+
we as h,
|
|
766
|
+
Ue as i,
|
|
767
|
+
K as r
|
|
767
768
|
};
|