@oneb/ui-vue 0.1.30 → 0.1.32
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/OneHelpMenu-05871821.cjs +1 -0
- package/dist/{OneHelpMenu-00822d7e.js → OneHelpMenu-5f545b2a.js} +213 -211
- package/dist/dropdown/index.cjs +1 -1
- package/dist/dropdown/index.js +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +254 -101
- package/dist/layout/index.cjs +1 -1
- package/dist/layout/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/switch/OneSwitch.vue.d.ts +2 -0
- package/dist/switch/SpinnerIcon.vue.d.ts +2 -0
- package/dist/switch/index.d.ts +2 -0
- package/dist/switch/switch.d.ts +47 -0
- package/package.json +1 -1
- package/dist/OneHelpMenu-eb183c47.cjs +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { OneAvatar as
|
|
3
|
-
import { r as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { _ as
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as z, ref as j, provide as X, computed as F, openBlock as t, createElementBlock as o, renderSlot as q, normalizeProps as N, guardReactiveProps as W, createCommentVNode as h, createVNode as _, Transition as Y, withCtx as I, normalizeClass as O, toDisplayString as a, inject as Z, withModifiers as ee, createBlock as L, resolveDynamicComponent as P, createElementVNode as e, Fragment as $, renderList as A, mergeProps as te, unref as b } from "vue";
|
|
2
|
+
import { OneAvatar as B } from "./common/index.js";
|
|
3
|
+
import { r as G } from "./XMarkIcon-51ef0691.js";
|
|
4
|
+
import { _ as oe } from "./index-f8afb6b6.js";
|
|
5
|
+
import { _ as J } from "./_plugin-vue_export-helper-dad06003.js";
|
|
6
|
+
const ne = {
|
|
7
7
|
title: {
|
|
8
8
|
type: String
|
|
9
9
|
},
|
|
@@ -11,7 +11,7 @@ const se = {
|
|
|
11
11
|
type: String,
|
|
12
12
|
default: "right"
|
|
13
13
|
}
|
|
14
|
-
},
|
|
14
|
+
}, se = {
|
|
15
15
|
variant: {
|
|
16
16
|
type: String,
|
|
17
17
|
default: "primary"
|
|
@@ -22,24 +22,24 @@ const se = {
|
|
|
22
22
|
icon: {
|
|
23
23
|
type: [Function, Object]
|
|
24
24
|
}
|
|
25
|
-
},
|
|
25
|
+
}, re = ["data-opened"], le = {
|
|
26
26
|
key: 0,
|
|
27
27
|
class: "text-sm text-secondary-content px-3 py-2 text-left"
|
|
28
|
-
},
|
|
28
|
+
}, ie = /* @__PURE__ */ z({
|
|
29
29
|
__name: "OneDropdown",
|
|
30
|
-
props:
|
|
30
|
+
props: ne,
|
|
31
31
|
emits: ["open", "close"],
|
|
32
32
|
setup(f, { emit: u }) {
|
|
33
33
|
const v = j(!1), d = j(null), c = u, r = f, p = () => {
|
|
34
34
|
v.value = !v.value, v.value ? c("open") : c("close");
|
|
35
35
|
};
|
|
36
|
-
|
|
36
|
+
X("OneDropdown", {
|
|
37
37
|
onToggle: p
|
|
38
38
|
});
|
|
39
39
|
const s = F(() => {
|
|
40
40
|
const n = d.value != null && d.value.getBoundingClientRect.x < 270;
|
|
41
41
|
return d.value != null && d.value.getBoundingClientRect().top + 270 > window.innerHeight ? "up" + (n ? "-right" : "-left") : "down" + (n ? "-right" : "-left");
|
|
42
|
-
}),
|
|
42
|
+
}), m = F(() => {
|
|
43
43
|
const n = [
|
|
44
44
|
"absolute z-10 w-fit rounded-md bg-white",
|
|
45
45
|
"py-1 shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none",
|
|
@@ -47,19 +47,19 @@ const se = {
|
|
|
47
47
|
];
|
|
48
48
|
return s.value.startsWith("up") ? n.push("bottom-1 mb-10") : s.value.startsWith("down") && n.push("top-1 mt-10"), r.stick === "right" ? n.push("right-0") : r.stick === "left" && n.push("left-0"), n;
|
|
49
49
|
});
|
|
50
|
-
return (n,
|
|
50
|
+
return (n, g) => (t(), o("div", {
|
|
51
51
|
class: "relative inline-block",
|
|
52
52
|
ref_key: "menuRef",
|
|
53
53
|
ref: d,
|
|
54
54
|
"data-opened": v.value
|
|
55
55
|
}, [
|
|
56
|
-
|
|
56
|
+
q(n.$slots, "button", N(W({ onToggle: p, isExpanded: v.value }))),
|
|
57
57
|
v.value ? (t(), o("div", {
|
|
58
58
|
key: 0,
|
|
59
59
|
class: "fixed top-0 left-0 w-screen h-screen z-10",
|
|
60
60
|
onClick: p
|
|
61
61
|
})) : h("", !0),
|
|
62
|
-
|
|
62
|
+
_(Y, {
|
|
63
63
|
"enter-active-class": "transition ease-out duration-100",
|
|
64
64
|
"enter-from-class": "transform opacity-0 scale-95",
|
|
65
65
|
"enter-to-class": "transform opacity-100 scale-100",
|
|
@@ -70,33 +70,33 @@ const se = {
|
|
|
70
70
|
default: I(() => [
|
|
71
71
|
v.value ? (t(), o("div", {
|
|
72
72
|
key: 0,
|
|
73
|
-
class:
|
|
73
|
+
class: O(["menu", m.value]),
|
|
74
74
|
role: "menu",
|
|
75
75
|
"aria-orientation": "vertical",
|
|
76
76
|
tabindex: "-1"
|
|
77
77
|
}, [
|
|
78
|
-
n.title ? (t(), o("div",
|
|
79
|
-
|
|
78
|
+
n.title ? (t(), o("div", le, a(n.title), 1)) : h("", !0),
|
|
79
|
+
q(n.$slots, "menu", N(W({ onToggle: p })))
|
|
80
80
|
], 2)) : h("", !0)
|
|
81
81
|
]),
|
|
82
82
|
_: 3
|
|
83
83
|
})
|
|
84
|
-
], 8,
|
|
84
|
+
], 8, re));
|
|
85
85
|
}
|
|
86
|
-
}),
|
|
86
|
+
}), U = /* @__PURE__ */ z({
|
|
87
87
|
__name: "OneDropdownItem",
|
|
88
|
-
props:
|
|
88
|
+
props: se,
|
|
89
89
|
emits: ["click"],
|
|
90
90
|
setup(f, { emit: u }) {
|
|
91
|
-
const v = u, d = f, c =
|
|
91
|
+
const v = u, d = f, c = Z("OneDropdown"), r = () => {
|
|
92
92
|
c !== void 0 && c.onToggle(), v("click");
|
|
93
93
|
}, p = F(() => {
|
|
94
94
|
const s = [];
|
|
95
95
|
return d.variant === "secondary" ? s.push("text-secondary-content hover:bg-secondary-body-hover") : d.variant === "danger" ? s.push("text-danger-content hover:bg-danger-10") : d.variant === "warning" ? s.push("text-warning-content hover:bg-warning-10") : d.variant === "info" ? s.push("text-info-content hover:bg-info-10") : s.push("hover:bg-secondary-body-hover"), s;
|
|
96
96
|
});
|
|
97
|
-
return (s,
|
|
98
|
-
class:
|
|
99
|
-
onClick:
|
|
97
|
+
return (s, m) => (t(), o("button", {
|
|
98
|
+
class: O(["px-3 py-1.5 flex items-center space-x-3 w-full whitespace-nowrap", p.value]),
|
|
99
|
+
onClick: ee(r, ["prevent"])
|
|
100
100
|
}, [
|
|
101
101
|
s.icon ? (t(), L(P(s.icon), {
|
|
102
102
|
key: 0,
|
|
@@ -106,7 +106,7 @@ const se = {
|
|
|
106
106
|
], 2));
|
|
107
107
|
}
|
|
108
108
|
});
|
|
109
|
-
function
|
|
109
|
+
function ce(f, u) {
|
|
110
110
|
return t(), o("svg", {
|
|
111
111
|
xmlns: "http://www.w3.org/2000/svg",
|
|
112
112
|
fill: "none",
|
|
@@ -122,7 +122,7 @@ function ae(f, u) {
|
|
|
122
122
|
})
|
|
123
123
|
]);
|
|
124
124
|
}
|
|
125
|
-
const
|
|
125
|
+
const ae = {
|
|
126
126
|
user: {
|
|
127
127
|
type: Object,
|
|
128
128
|
required: !0
|
|
@@ -156,7 +156,7 @@ const ue = {
|
|
|
156
156
|
onLogout: {
|
|
157
157
|
type: Function
|
|
158
158
|
}
|
|
159
|
-
},
|
|
159
|
+
}, ue = {
|
|
160
160
|
workspace: {
|
|
161
161
|
type: Object,
|
|
162
162
|
required: !0
|
|
@@ -186,26 +186,26 @@ const ue = {
|
|
|
186
186
|
onApp: {
|
|
187
187
|
type: Function
|
|
188
188
|
}
|
|
189
|
-
},
|
|
189
|
+
}, de = {
|
|
190
190
|
help: {
|
|
191
191
|
type: Object,
|
|
192
192
|
required: !0
|
|
193
193
|
}
|
|
194
|
-
},
|
|
194
|
+
}, pe = ["onClick"], he = { class: "flex flex-col items-center pt-5 pb-2 h-full" }, fe = { class: "flex flex-col px-10 py-1 mt-2 text-center" }, ve = { class: "self-center text-base font-medium tracking-wide text-black" }, xe = { class: "mt-1 text-xs leading-5 text-blue-500 font-light" }, me = { class: "text-left w-full mt-5 px-3" }, ge = { class: "-mb-2 flex-shrink-0 mt-auto pt-6 text-[8px] leading-3 text-gray-400" }, jt = /* @__PURE__ */ z({
|
|
195
195
|
__name: "OneUserMenu",
|
|
196
|
-
props:
|
|
196
|
+
props: ae,
|
|
197
197
|
setup(f) {
|
|
198
198
|
const u = f, v = F(() => {
|
|
199
199
|
var r;
|
|
200
200
|
return (r = u.menu) == null ? void 0 : r.map((p) => {
|
|
201
201
|
let s = { label: p.label };
|
|
202
202
|
p.icon != null && (s = { ...s, icon: p.icon });
|
|
203
|
-
const
|
|
203
|
+
const m = typeof p.click == "function" ? p.click : () => {
|
|
204
204
|
};
|
|
205
205
|
return {
|
|
206
206
|
key: p.label,
|
|
207
207
|
args: s,
|
|
208
|
-
click:
|
|
208
|
+
click: m
|
|
209
209
|
};
|
|
210
210
|
});
|
|
211
211
|
}), d = () => {
|
|
@@ -213,53 +213,53 @@ const ue = {
|
|
|
213
213
|
}, c = () => {
|
|
214
214
|
typeof u.onLogout == "function" && u.onLogout();
|
|
215
215
|
};
|
|
216
|
-
return (r, p) => (t(), L(
|
|
217
|
-
button: I(({ onToggle: s, isExpanded:
|
|
218
|
-
var n,
|
|
216
|
+
return (r, p) => (t(), L(ie, { stick: "right" }, {
|
|
217
|
+
button: I(({ onToggle: s, isExpanded: m }) => {
|
|
218
|
+
var n, g;
|
|
219
219
|
return [
|
|
220
220
|
e("button", {
|
|
221
221
|
onClick: s,
|
|
222
|
-
class:
|
|
222
|
+
class: O(["p-1 rounded-full hover:bg-secondary-10", [m ? "bg-secondary-25" : ""]])
|
|
223
223
|
}, [
|
|
224
|
-
|
|
224
|
+
_(B, {
|
|
225
225
|
text: ((n = r.user) == null ? void 0 : n.name) || "",
|
|
226
226
|
size: r.iconSize,
|
|
227
|
-
src: (
|
|
227
|
+
src: (g = r.user) == null ? void 0 : g.photo_url,
|
|
228
228
|
rounded: !0
|
|
229
229
|
}, null, 8, ["text", "size", "src"])
|
|
230
|
-
], 10,
|
|
230
|
+
], 10, pe)
|
|
231
231
|
];
|
|
232
232
|
}),
|
|
233
233
|
menu: I(() => {
|
|
234
|
-
var s,
|
|
234
|
+
var s, m, n, g, y;
|
|
235
235
|
return [
|
|
236
|
-
e("div",
|
|
237
|
-
|
|
236
|
+
e("div", he, [
|
|
237
|
+
_(B, {
|
|
238
238
|
text: ((s = r.user) == null ? void 0 : s.name) || "",
|
|
239
239
|
size: 80,
|
|
240
|
-
src: (
|
|
240
|
+
src: (m = r.user) == null ? void 0 : m.photo_url,
|
|
241
241
|
rounded: !0,
|
|
242
242
|
class: "mx-auto"
|
|
243
243
|
}, null, 8, ["text", "src"]),
|
|
244
|
-
e("div",
|
|
245
|
-
e("div",
|
|
246
|
-
e("div", xe, a((
|
|
244
|
+
e("div", fe, [
|
|
245
|
+
e("div", ve, a((n = r.user) == null ? void 0 : n.name), 1),
|
|
246
|
+
e("div", xe, a((g = r.user) == null ? void 0 : g.email), 1)
|
|
247
247
|
]),
|
|
248
248
|
typeof u.onAccount == "function" ? (t(), o("a", {
|
|
249
249
|
key: 0,
|
|
250
250
|
onClick: d,
|
|
251
251
|
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
252
|
}, a(r.accountLabel), 1)) : h("", !0),
|
|
253
|
-
e("div",
|
|
254
|
-
(t(!0), o($, null, A(v.value, (
|
|
255
|
-
key:
|
|
253
|
+
e("div", me, [
|
|
254
|
+
(t(!0), o($, null, A(v.value, (C) => (t(), L(U, te({
|
|
255
|
+
key: C.key,
|
|
256
256
|
ref_for: !0
|
|
257
|
-
},
|
|
258
|
-
onClick:
|
|
257
|
+
}, C.args, {
|
|
258
|
+
onClick: C.click
|
|
259
259
|
}), null, 16, ["onClick"]))), 128)),
|
|
260
|
-
typeof r.onLogout == "function" ? (t(), L(
|
|
260
|
+
typeof r.onLogout == "function" ? (t(), L(U, {
|
|
261
261
|
key: 0,
|
|
262
|
-
icon:
|
|
262
|
+
icon: b(ce),
|
|
263
263
|
label: r.logoutLabel,
|
|
264
264
|
class: "rounded py-3",
|
|
265
265
|
onClick: c
|
|
@@ -269,7 +269,7 @@ const ue = {
|
|
|
269
269
|
class: "space-y-2 text-center",
|
|
270
270
|
style: { width: "240px" }
|
|
271
271
|
}, null, -1)),
|
|
272
|
-
e("div",
|
|
272
|
+
e("div", ge, a((y = r.app) == null ? void 0 : y.version), 1)
|
|
273
273
|
])
|
|
274
274
|
];
|
|
275
275
|
}),
|
|
@@ -277,7 +277,7 @@ const ue = {
|
|
|
277
277
|
}));
|
|
278
278
|
}
|
|
279
279
|
});
|
|
280
|
-
function
|
|
280
|
+
function _e(f, u) {
|
|
281
281
|
return t(), o("svg", {
|
|
282
282
|
xmlns: "http://www.w3.org/2000/svg",
|
|
283
283
|
fill: "none",
|
|
@@ -369,7 +369,7 @@ function we(f, u) {
|
|
|
369
369
|
})
|
|
370
370
|
]);
|
|
371
371
|
}
|
|
372
|
-
function
|
|
372
|
+
function K(f, u) {
|
|
373
373
|
return t(), o("svg", {
|
|
374
374
|
xmlns: "http://www.w3.org/2000/svg",
|
|
375
375
|
fill: "none",
|
|
@@ -385,7 +385,7 @@ function Q(f, u) {
|
|
|
385
385
|
})
|
|
386
386
|
]);
|
|
387
387
|
}
|
|
388
|
-
function
|
|
388
|
+
function Q(f, u) {
|
|
389
389
|
return t(), o("svg", {
|
|
390
390
|
xmlns: "http://www.w3.org/2000/svg",
|
|
391
391
|
fill: "none",
|
|
@@ -401,7 +401,7 @@ function X(f, u) {
|
|
|
401
401
|
})
|
|
402
402
|
]);
|
|
403
403
|
}
|
|
404
|
-
function
|
|
404
|
+
function we(f, u) {
|
|
405
405
|
return t(), o("svg", {
|
|
406
406
|
xmlns: "http://www.w3.org/2000/svg",
|
|
407
407
|
fill: "none",
|
|
@@ -417,132 +417,132 @@ function ke(f, u) {
|
|
|
417
417
|
})
|
|
418
418
|
]);
|
|
419
419
|
}
|
|
420
|
-
const
|
|
420
|
+
const ke = ["data-opened"], ye = {
|
|
421
421
|
key: 1,
|
|
422
422
|
class: "absolute top-0 right-0 h-screen overflow-y-auto max-w-96 bg-white px-3 z-10"
|
|
423
|
-
},
|
|
423
|
+
}, 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
424
|
class: "space-x-2 flex items-center px-3 py-2",
|
|
425
425
|
style: { width: "300px" }
|
|
426
|
-
},
|
|
426
|
+
}, je = { class: "flex justify-between relative" }, Le = { 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
427
|
key: 0,
|
|
428
428
|
class: "space-y-2"
|
|
429
|
-
},
|
|
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" }, Re = {
|
|
430
430
|
key: 1,
|
|
431
431
|
class: "mt-2 w-full bg-[#FAFAFA] hover:bg-secondary-10 p-2 rounded-lg mb-5 text-xs hidden"
|
|
432
|
-
},
|
|
432
|
+
}, qe = /* @__PURE__ */ z({
|
|
433
433
|
__name: "OneBrowserMenu",
|
|
434
|
-
props:
|
|
434
|
+
props: ue,
|
|
435
435
|
emits: ["open", "close"],
|
|
436
436
|
setup(f, { emit: u }) {
|
|
437
437
|
const v = u, d = f, c = j(!1), r = () => {
|
|
438
438
|
c.value = !c.value, c.value ? v("open") : v("close");
|
|
439
439
|
}, p = j(!1);
|
|
440
|
-
F(() => p.value ?
|
|
440
|
+
F(() => p.value ? Q : K);
|
|
441
441
|
const s = () => {
|
|
442
442
|
typeof d.onChange == "function" && d.onChange();
|
|
443
|
-
},
|
|
443
|
+
}, m = (n) => {
|
|
444
444
|
typeof d.onApp == "function" && d.onApp(n);
|
|
445
445
|
};
|
|
446
|
-
return (n,
|
|
447
|
-
var
|
|
446
|
+
return (n, g) => {
|
|
447
|
+
var y, C, l, w, k, M;
|
|
448
448
|
return t(), o("div", { "data-opened": c.value }, [
|
|
449
449
|
e("button", {
|
|
450
450
|
onClick: r,
|
|
451
|
-
class:
|
|
451
|
+
class: O(["p-1 w-[44px] h-[44px] rounded-md hover:bg-secondary-10", { "bg-secondary-10": c.value }])
|
|
452
452
|
}, [
|
|
453
|
-
|
|
453
|
+
_(b(_e), { class: "text-secondary-base w-full p-1 hover:text-blue-600 m-auto" })
|
|
454
454
|
], 2),
|
|
455
455
|
c.value ? (t(), o("div", {
|
|
456
456
|
key: 0,
|
|
457
457
|
class: "fixed top-0 left-0 w-screen h-screen z-10 bg-black/10",
|
|
458
458
|
onClick: r
|
|
459
459
|
})) : h("", !0),
|
|
460
|
-
c.value ? (t(), o("div",
|
|
461
|
-
e("div",
|
|
462
|
-
e("div",
|
|
463
|
-
|
|
460
|
+
c.value ? (t(), o("div", ye, [
|
|
461
|
+
e("div", be, [
|
|
462
|
+
e("div", Ce, a((y = n.workspace) == null ? void 0 : y.title), 1),
|
|
463
|
+
_(b(G), {
|
|
464
464
|
class: "w-6 cursor-pointer",
|
|
465
465
|
onClick: r
|
|
466
466
|
})
|
|
467
467
|
]),
|
|
468
|
-
e("div",
|
|
469
|
-
e("div",
|
|
470
|
-
e("div",
|
|
471
|
-
e("div",
|
|
472
|
-
|
|
473
|
-
text: ((
|
|
474
|
-
src: (
|
|
468
|
+
e("div", $e, [
|
|
469
|
+
e("div", Ae, [
|
|
470
|
+
e("div", Fe, [
|
|
471
|
+
e("div", je, [
|
|
472
|
+
_(B, {
|
|
473
|
+
text: ((C = n.workspace) == null ? void 0 : C.name) || "",
|
|
474
|
+
src: (l = n.workspace) == null ? void 0 : l.photo_url,
|
|
475
475
|
size: 44,
|
|
476
476
|
rounded: !1,
|
|
477
477
|
class: "mx-auto"
|
|
478
478
|
}, null, 8, ["text", "src"])
|
|
479
479
|
]),
|
|
480
|
-
e("div",
|
|
480
|
+
e("div", Le, a((w = n.workspace) == null ? void 0 : w.name), 1)
|
|
481
481
|
]),
|
|
482
|
-
p.value ? (t(), o("div",
|
|
483
|
-
(t(!0), o($, null, A(n.workspaces, (
|
|
484
|
-
key:
|
|
482
|
+
p.value ? (t(), o("div", Me, [
|
|
483
|
+
(t(!0), o($, null, A(n.workspaces, (x) => (t(), o("div", {
|
|
484
|
+
key: x.name,
|
|
485
485
|
class: "flex items-center space-x-3 border-t px-5 py-2 hover:bg-secondary-10"
|
|
486
486
|
}, [
|
|
487
|
-
|
|
488
|
-
text:
|
|
489
|
-
src:
|
|
487
|
+
_(B, {
|
|
488
|
+
text: x.name,
|
|
489
|
+
src: x.photo_url,
|
|
490
490
|
size: 30,
|
|
491
491
|
rounded: !1
|
|
492
492
|
}, null, 8, ["text", "src"]),
|
|
493
|
-
e("span",
|
|
493
|
+
e("span", Be, a(x.name), 1)
|
|
494
494
|
]))), 128))
|
|
495
495
|
])) : h("", !0),
|
|
496
|
-
|
|
496
|
+
g[0] || (g[0] = e("hr", null, null, -1)),
|
|
497
497
|
e("div", {
|
|
498
498
|
onClick: s,
|
|
499
499
|
class: "text-center py-2 cursor-pointer",
|
|
500
500
|
style: { "font-size": "10px" }
|
|
501
|
-
}, a((
|
|
501
|
+
}, a((k = n.workspace) == null ? void 0 : k.changeLabel), 1)
|
|
502
502
|
])
|
|
503
503
|
]),
|
|
504
|
-
e("div",
|
|
505
|
-
e("div",
|
|
506
|
-
e("div",
|
|
507
|
-
n.apps && n.apps.length ? (t(), o("div",
|
|
508
|
-
(t(!0), o($, null, A(n.apps, (
|
|
509
|
-
key:
|
|
510
|
-
onClick: (S) => x
|
|
504
|
+
e("div", ze, [
|
|
505
|
+
e("div", Oe, a((M = n.workspace) == null ? void 0 : M.appsLabel), 1),
|
|
506
|
+
e("div", Se, [
|
|
507
|
+
n.apps && n.apps.length ? (t(), o("div", Ee, [
|
|
508
|
+
(t(!0), o($, null, A(n.apps, (x) => (t(), o("div", {
|
|
509
|
+
key: x.id,
|
|
510
|
+
onClick: (S) => m(x),
|
|
511
511
|
class: "flex justify-between items-center rounded-lg hover:bg-secondary-10 p-2 bg-[#FAFAFA] cursor-pointer"
|
|
512
512
|
}, [
|
|
513
|
-
e("div",
|
|
514
|
-
e("div",
|
|
515
|
-
|
|
516
|
-
text:
|
|
517
|
-
src:
|
|
513
|
+
e("div", Pe, [
|
|
514
|
+
e("div", He, [
|
|
515
|
+
_(B, {
|
|
516
|
+
text: x.name,
|
|
517
|
+
src: x.photo_url,
|
|
518
518
|
size: 44,
|
|
519
519
|
rounded: !1
|
|
520
520
|
}, null, 8, ["text", "src"])
|
|
521
521
|
]),
|
|
522
|
-
e("div",
|
|
523
|
-
e("p",
|
|
524
|
-
e("p",
|
|
522
|
+
e("div", Te, [
|
|
523
|
+
e("p", Ve, a(x.name), 1),
|
|
524
|
+
e("p", De, a(x == null ? void 0 : x.short), 1)
|
|
525
525
|
])
|
|
526
526
|
]),
|
|
527
527
|
e("div", null, [
|
|
528
|
-
|
|
528
|
+
_(oe, {
|
|
529
529
|
variant: "touch",
|
|
530
|
-
icon:
|
|
531
|
-
onClick: (S) => x
|
|
530
|
+
icon: b(we),
|
|
531
|
+
onClick: (S) => m(x)
|
|
532
532
|
}, null, 8, ["icon", "onClick"])
|
|
533
533
|
])
|
|
534
|
-
], 8,
|
|
534
|
+
], 8, Ie))), 128))
|
|
535
535
|
])) : h("", !0),
|
|
536
|
-
n.apps && n.apps.length ? (t(), o("button",
|
|
536
|
+
n.apps && n.apps.length ? (t(), o("button", Re, a("Дивитися всі"))) : h("", !0)
|
|
537
537
|
])
|
|
538
538
|
])
|
|
539
539
|
])) : h("", !0)
|
|
540
|
-
], 8,
|
|
540
|
+
], 8, ke);
|
|
541
541
|
};
|
|
542
542
|
}
|
|
543
543
|
});
|
|
544
|
-
const
|
|
545
|
-
function
|
|
544
|
+
const Lt = /* @__PURE__ */ J(qe, [["__scopeId", "data-v-4936d4e4"]]);
|
|
545
|
+
function Ne(f, u) {
|
|
546
546
|
return t(), o("svg", {
|
|
547
547
|
xmlns: "http://www.w3.org/2000/svg",
|
|
548
548
|
fill: "none",
|
|
@@ -558,7 +558,7 @@ function We(f, u) {
|
|
|
558
558
|
})
|
|
559
559
|
]);
|
|
560
560
|
}
|
|
561
|
-
function
|
|
561
|
+
function We(f, u) {
|
|
562
562
|
return t(), o("svg", {
|
|
563
563
|
xmlns: "http://www.w3.org/2000/svg",
|
|
564
564
|
fill: "none",
|
|
@@ -579,7 +579,7 @@ function Ue(f, u) {
|
|
|
579
579
|
})
|
|
580
580
|
]);
|
|
581
581
|
}
|
|
582
|
-
function
|
|
582
|
+
function Ue(f, u) {
|
|
583
583
|
return t(), o("svg", {
|
|
584
584
|
xmlns: "http://www.w3.org/2000/svg",
|
|
585
585
|
fill: "none",
|
|
@@ -595,170 +595,172 @@ function Ge(f, u) {
|
|
|
595
595
|
})
|
|
596
596
|
]);
|
|
597
597
|
}
|
|
598
|
-
const
|
|
598
|
+
const Ge = ["data-opened"], Je = {
|
|
599
599
|
key: 1,
|
|
600
600
|
class: "absolute top-0 right-0 h-screen max-w-96 bg-white px-3 z-10 flex flex-col"
|
|
601
|
-
},
|
|
601
|
+
}, Ke = { class: "flex justify-between items-center pt-3 mb-3" }, Qe = { class: "font-semibold text-xl px-3" }, Xe = {
|
|
602
602
|
key: 0,
|
|
603
603
|
class: "grid grid-cols-3 bg-[#FAFAFA] rounded-xl text-[#525B66] mb-2"
|
|
604
|
-
},
|
|
604
|
+
}, Ye = ["onClick"], Ze = { class: "uppercase text-[8px]" }, et = { class: "overflow-y-auto grid rounded-xl" }, tt = { class: "max-h-full bg-[#FAFAFA]" }, ot = {
|
|
605
605
|
key: 0,
|
|
606
606
|
class: "space-y-2"
|
|
607
|
-
},
|
|
607
|
+
}, nt = ["onClick"], st = { class: "flex" }, rt = { class: "pl-2" }, lt = { class: "text-sm mt-1 font-semibold" }, it = { class: "text-[10px] mt-1 text-[#979CA9]" }, ct = { class: "mt-auto" }, at = { key: 0 }, ut = ["onClick"], dt = { class: "flex items-center space-x-3" }, pt = { class: "h-16" }, ht = {
|
|
608
608
|
key: 0,
|
|
609
609
|
class: "bg-[#FAFAFA] rounded-lg p-3"
|
|
610
|
-
},
|
|
610
|
+
}, ft = { class: "flex justify-between" }, vt = ["onClick"], xt = {
|
|
611
611
|
key: 0,
|
|
612
612
|
class: "tooltip-text min-w-[70px]"
|
|
613
|
-
},
|
|
613
|
+
}, mt = { class: "flex justify-between mb-4" }, gt = ["href"], _t = { class: "flex flex-nowrap items-center w-max h-[24px]" }, wt = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full text-[#525B66]" }, kt = { class: "py-[8px] pl-0 pr-[8px]" }, yt = /* @__PURE__ */ z({
|
|
614
614
|
__name: "OneHelpMenu",
|
|
615
|
-
props:
|
|
615
|
+
props: de,
|
|
616
616
|
emits: ["open", "close"],
|
|
617
617
|
setup(f, { emit: u }) {
|
|
618
618
|
const v = u, d = f, c = j(!1), r = () => {
|
|
619
619
|
c.value = !c.value, c.value ? v("open") : v("close");
|
|
620
|
-
}, p = F(() =>
|
|
621
|
-
var
|
|
622
|
-
const
|
|
623
|
-
return s.value ===
|
|
624
|
-
})
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
},
|
|
634
|
-
|
|
620
|
+
}, p = F(() => y.value ? Q : K), s = j(3), m = F(() => {
|
|
621
|
+
var w, k;
|
|
622
|
+
const l = ((k = (w = d.help) == null ? void 0 : w.helpList) == null ? void 0 : k.length) || 0;
|
|
623
|
+
return s.value === l;
|
|
624
|
+
});
|
|
625
|
+
F(() => {
|
|
626
|
+
var w;
|
|
627
|
+
return (((w = d.help) == null ? void 0 : w.helpList) || []).slice(0, s.value);
|
|
628
|
+
});
|
|
629
|
+
const n = () => {
|
|
630
|
+
var w, k;
|
|
631
|
+
const l = ((k = (w = d.help) == null ? void 0 : w.helpList) == null ? void 0 : k.length) || 0;
|
|
632
|
+
s.value = m.value ? 3 : l;
|
|
633
|
+
}, g = (l) => {
|
|
634
|
+
l && window.open(l, "_blank");
|
|
635
|
+
}, y = j(!1), C = () => {
|
|
636
|
+
y.value = !y.value;
|
|
635
637
|
};
|
|
636
|
-
return (
|
|
637
|
-
var
|
|
638
|
+
return (l, w) => {
|
|
639
|
+
var k, M, x, S, H, T, V, D, R;
|
|
638
640
|
return t(), o("div", { "data-opened": c.value }, [
|
|
639
641
|
e("button", {
|
|
640
642
|
onClick: r,
|
|
641
|
-
class:
|
|
643
|
+
class: O(["p-1 w-[44px] h-[44px] rounded-md hover:bg-secondary-10", { "bg-secondary-10": c.value }])
|
|
642
644
|
}, [
|
|
643
|
-
|
|
645
|
+
_(b(Ne), { class: "text-secondary-base w-full p-1 hover:text-blue-600 m-auto" })
|
|
644
646
|
], 2),
|
|
645
647
|
c.value ? (t(), o("div", {
|
|
646
648
|
key: 0,
|
|
647
649
|
class: "fixed top-0 left-0 w-screen h-screen z-10 bg-black/10 flex flex-col",
|
|
648
650
|
onClick: r
|
|
649
651
|
})) : h("", !0),
|
|
650
|
-
c.value ? (t(), o("div",
|
|
651
|
-
e("div",
|
|
652
|
-
e("div",
|
|
653
|
-
|
|
652
|
+
c.value ? (t(), o("div", Je, [
|
|
653
|
+
e("div", Ke, [
|
|
654
|
+
e("div", Qe, a((k = l.help) == null ? void 0 : k.label), 1),
|
|
655
|
+
_(b(G), {
|
|
654
656
|
class: "w-6 cursor-pointer",
|
|
655
657
|
onClick: r
|
|
656
658
|
})
|
|
657
659
|
]),
|
|
658
|
-
(
|
|
659
|
-
(t(!0), o($, null, A((
|
|
660
|
-
key:
|
|
661
|
-
onClick: (E) =>
|
|
660
|
+
(M = l.help) != null && M.helpButton ? (t(), o("div", Xe, [
|
|
661
|
+
(t(!0), o($, null, A((x = l.help) == null ? void 0 : x.helpButton, (i) => (t(), o("button", {
|
|
662
|
+
key: i.name,
|
|
663
|
+
onClick: (E) => g(i.link),
|
|
662
664
|
class: "grid justify-center space-y-2 hover:bg-slate-100 p-3 rounded-xl hover:text-blue-500"
|
|
663
665
|
}, [
|
|
664
666
|
e("div", null, [
|
|
665
|
-
(t(), L(P(
|
|
667
|
+
(t(), L(P(i == null ? void 0 : i.icon), { class: "w-[16px] h-[16px] mx-auto" }))
|
|
666
668
|
]),
|
|
667
|
-
e("span",
|
|
668
|
-
], 8,
|
|
669
|
+
e("span", Ze, a(i.name), 1)
|
|
670
|
+
], 8, Ye))), 128))
|
|
669
671
|
])) : h("", !0),
|
|
670
|
-
e("div",
|
|
671
|
-
e("div",
|
|
672
|
-
(
|
|
673
|
-
(t(!0), o($, null, A(
|
|
674
|
-
key:
|
|
675
|
-
onClick: (E) =>
|
|
672
|
+
e("div", et, [
|
|
673
|
+
e("div", tt, [
|
|
674
|
+
(S = l.help) != null && S.helpList && l.help.helpList.length ? (t(), o("div", ot, [
|
|
675
|
+
(t(!0), o($, null, A(l.help.helpList, (i) => (t(), o("div", {
|
|
676
|
+
key: i.id,
|
|
677
|
+
onClick: (E) => g(i.link),
|
|
676
678
|
class: "flex justify-between items-center rounded-lg hover:bg-slate-100 p-2 cursor-pointer hover:text-[#4089E0]"
|
|
677
679
|
}, [
|
|
678
|
-
e("div",
|
|
679
|
-
e("div",
|
|
680
|
-
e("p",
|
|
681
|
-
e("p",
|
|
680
|
+
e("div", st, [
|
|
681
|
+
e("div", rt, [
|
|
682
|
+
e("p", lt, a(i.name), 1),
|
|
683
|
+
e("p", it, a(i.category), 1)
|
|
682
684
|
])
|
|
683
685
|
])
|
|
684
|
-
], 8,
|
|
686
|
+
], 8, nt))), 128))
|
|
685
687
|
])) : h("", !0)
|
|
686
688
|
])
|
|
687
689
|
]),
|
|
688
|
-
(
|
|
690
|
+
(H = l.help) != null && H.helpList && l.help.helpList.length < 0 ? (t(), o("button", {
|
|
689
691
|
key: 1,
|
|
690
|
-
onClick:
|
|
692
|
+
onClick: n,
|
|
691
693
|
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"
|
|
692
|
-
}, a(
|
|
693
|
-
e("div",
|
|
694
|
-
(
|
|
695
|
-
(t(!0), o($, null, A(
|
|
696
|
-
key:
|
|
697
|
-
onClick: (E) =>
|
|
694
|
+
}, a(m.value ? l.help.buttNoMore : l.help.buttMore), 1)) : h("", !0),
|
|
695
|
+
e("div", ct, [
|
|
696
|
+
(T = l.help) != null && T.video ? (t(), o("div", at, [
|
|
697
|
+
(t(!0), o($, null, A(l.help.video, (i) => (t(), o("button", {
|
|
698
|
+
key: i.id,
|
|
699
|
+
onClick: (E) => g(i.link),
|
|
698
700
|
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"
|
|
699
701
|
}, [
|
|
700
|
-
|
|
701
|
-
e("span", null, a(
|
|
702
|
-
], 8,
|
|
702
|
+
_(b(We), { class: "w-6 h-6" }),
|
|
703
|
+
e("span", null, a(i.name), 1)
|
|
704
|
+
], 8, ut))), 128))
|
|
703
705
|
])) : h("", !0),
|
|
704
|
-
(
|
|
706
|
+
(V = l.help) != null && V.socialList ? (t(), o("button", {
|
|
705
707
|
key: 1,
|
|
706
|
-
onClick:
|
|
708
|
+
onClick: C,
|
|
707
709
|
class: "flex items-center justify-between mt-2 w-full bg-[#FAFAFA] hover:bg-slate-100 p-4 text-[#525B66] rounded-lg text-sm hover:text-[#4089E0] font-medium"
|
|
708
710
|
}, [
|
|
709
|
-
e("div",
|
|
710
|
-
|
|
711
|
-
e("span", null, a(
|
|
711
|
+
e("div", dt, [
|
|
712
|
+
_(b(Ue), { class: "w-6 h-6" }),
|
|
713
|
+
e("span", null, a(l.help.socialButt), 1)
|
|
712
714
|
]),
|
|
713
|
-
|
|
715
|
+
_(b(p), { class: "w-4 h-4" })
|
|
714
716
|
])) : h("", !0),
|
|
715
|
-
e("div",
|
|
716
|
-
|
|
717
|
-
e("div",
|
|
718
|
-
(t(!0), o($, null, A((
|
|
719
|
-
key:
|
|
720
|
-
onClick: (E) =>
|
|
717
|
+
e("div", pt, [
|
|
718
|
+
y.value ? (t(), o("div", ht, [
|
|
719
|
+
e("div", ft, [
|
|
720
|
+
(t(!0), o($, null, A((D = l.help) == null ? void 0 : D.socialList, (i) => (t(), o("button", {
|
|
721
|
+
key: i.id,
|
|
722
|
+
onClick: (E) => g(i.link),
|
|
721
723
|
class: "flex items-center space-x-2 p-2 rounded-lg hover:bg-slate-100 hover:text-blue-500 tooltip"
|
|
722
724
|
}, [
|
|
723
725
|
e("div", null, [
|
|
724
|
-
|
|
725
|
-
(t(), L(P(
|
|
726
|
+
i.name ? (t(), o("div", xt, a(i.name), 1)) : h("", !0),
|
|
727
|
+
(t(), L(P(i == null ? void 0 : i.icon), { class: "w-[24px] h-[24px] mx-auto" }))
|
|
726
728
|
])
|
|
727
|
-
], 8,
|
|
729
|
+
], 8, vt))), 128))
|
|
728
730
|
])
|
|
729
731
|
])) : h("", !0)
|
|
730
732
|
]),
|
|
731
|
-
e("div",
|
|
732
|
-
(t(!0), o($, null, A((
|
|
733
|
-
key:
|
|
733
|
+
e("div", mt, [
|
|
734
|
+
(t(!0), o($, null, A((R = l.help) == null ? void 0 : R.termsOffer, (i) => (t(), o("a", {
|
|
735
|
+
key: i.name,
|
|
734
736
|
target: "_blank",
|
|
735
|
-
href:
|
|
737
|
+
href: i.link,
|
|
736
738
|
class: "ml-2 flex items-center rounded-lg text-xs hover:underline font-extralight cursor-pointer"
|
|
737
739
|
}, [
|
|
738
|
-
e("div",
|
|
739
|
-
e("div",
|
|
740
|
-
e("span",
|
|
740
|
+
e("div", _t, [
|
|
741
|
+
e("div", wt, [
|
|
742
|
+
e("span", kt, a(i.name), 1)
|
|
741
743
|
])
|
|
742
744
|
])
|
|
743
|
-
], 8,
|
|
745
|
+
], 8, gt))), 128))
|
|
744
746
|
])
|
|
745
747
|
])
|
|
746
748
|
])) : h("", !0)
|
|
747
|
-
], 8,
|
|
749
|
+
], 8, Ge);
|
|
748
750
|
};
|
|
749
751
|
}
|
|
750
752
|
});
|
|
751
|
-
const
|
|
753
|
+
const Mt = /* @__PURE__ */ J(yt, [["__scopeId", "data-v-83ffa612"]]);
|
|
752
754
|
export {
|
|
753
755
|
Mt as O,
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
756
|
+
jt as _,
|
|
757
|
+
K as a,
|
|
758
|
+
we as b,
|
|
759
|
+
Ue as c,
|
|
760
|
+
Lt as d,
|
|
761
|
+
ie as e,
|
|
762
|
+
U as f,
|
|
763
|
+
ue as g,
|
|
764
|
+
_e as h,
|
|
765
|
+
Q as r
|
|
764
766
|
};
|