@oneb/ui-vue 0.1.22 → 0.1.23

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.
Files changed (52) hide show
  1. package/dist/OneHelpMenu-260fea46.js +764 -0
  2. package/dist/OneHelpMenu-c39e5368.cjs +1 -0
  3. package/dist/button/OneButton.vue.d.ts +2 -0
  4. package/dist/button/SpinnerIcon.vue.d.ts +2 -0
  5. package/dist/button/index.cjs +1 -1
  6. package/dist/button/index.js +1 -1
  7. package/dist/button/util.d.ts +2 -0
  8. package/dist/card/OneCard.vue.d.ts +2 -0
  9. package/dist/card/OneCardBody.vue.d.ts +2 -0
  10. package/dist/card/OneCardFooter.vue.d.ts +2 -0
  11. package/dist/card/OneCardHeader.vue.d.ts +2 -0
  12. package/dist/collapse/OneCollapse.vue.d.ts +2 -0
  13. package/dist/common/OneAvatar.vue.d.ts +2 -0
  14. package/dist/composables/useElementWidth.d.ts +1 -0
  15. package/dist/composables/useResizeObserver.d.ts +5 -0
  16. package/dist/dropdown/OneBrowserMenu.vue.d.ts +2 -0
  17. package/dist/dropdown/OneBrowserMenuGrid.vue.d.ts +2 -0
  18. package/dist/dropdown/OneDropdown.vue.d.ts +2 -0
  19. package/dist/dropdown/OneDropdownDivider.vue.d.ts +2 -0
  20. package/dist/dropdown/OneDropdownItem.vue.d.ts +2 -0
  21. package/dist/dropdown/OneHelpMenu.vue.d.ts +2 -0
  22. package/dist/dropdown/OneUserMenu.vue.d.ts +2 -0
  23. package/dist/dropdown/index.cjs +1 -1
  24. package/dist/dropdown/index.d.ts +2 -1
  25. package/dist/dropdown/index.js +56 -55
  26. package/dist/dropdown/menu.d.ts +47 -1
  27. package/dist/form/OneForm.vue.d.ts +2 -0
  28. package/dist/form/OneFormFeedback.vue.d.ts +2 -0
  29. package/dist/form/OneFormField.vue.d.ts +2 -0
  30. package/dist/form/OneFormInput.vue.d.ts +2 -0
  31. package/dist/form/OneFormLabel.vue.d.ts +2 -0
  32. package/dist/form/index.cjs +1 -1
  33. package/dist/form/index.js +125 -125
  34. package/dist/index-9f8735d9.cjs +1 -0
  35. package/dist/index-f8afb6b6.js +149 -0
  36. package/dist/index.cjs +1 -1
  37. package/dist/index.js +15 -14
  38. package/dist/indicators/OneIndicators.vue.d.ts +2 -0
  39. package/dist/label/OneLabel.vue.d.ts +2 -0
  40. package/dist/layout/IconOneb.vue.d.ts +2 -0
  41. package/dist/layout/OneMainLayout.vue.d.ts +2 -0
  42. package/dist/layout/OneSidebar.vue.d.ts +2 -0
  43. package/dist/layout/OneSidebarLink.vue.d.ts +2 -0
  44. package/dist/layout/index.cjs +1 -1
  45. package/dist/layout/index.js +429 -458
  46. package/dist/layout/layout.d.ts +18 -0
  47. package/dist/style.css +1 -1
  48. package/package.json +1 -1
  49. package/dist/OneBrowserMenu-97c45a52.js +0 -549
  50. package/dist/OneBrowserMenu-ac867a37.cjs +0 -1
  51. package/dist/index-81f36d8e.js +0 -149
  52. package/dist/index-98ecfd9e.cjs +0 -1
@@ -194,6 +194,13 @@ export declare const sidebarLinkProps: {
194
194
  required: boolean;
195
195
  };
196
196
  };
197
+ export type helpType = {
198
+ id: number;
199
+ social: string;
200
+ label: string;
201
+ inf: string;
202
+ link: string;
203
+ };
197
204
  export declare const mainLayoutProps: {
198
205
  sidebarItems: {
199
206
  required: boolean;
@@ -273,6 +280,17 @@ export declare const mainLayoutProps: {
273
280
  icon: FunctionalComponent | Component;
274
281
  }>;
275
282
  };
283
+ help: {
284
+ type: PropType<helpType[]>;
285
+ };
286
+ menu: {
287
+ type: PropType<{
288
+ label: string;
289
+ icon?: any;
290
+ click?: () => void;
291
+ }[]>;
292
+ default: () => any[];
293
+ };
276
294
  };
277
295
  export declare const GridTestProps: {
278
296
  count: {
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .textSm[data-v-3d58c944]{font-size:6px}.textMd[data-v-3d58c944]{font-size:8px}.textLg[data-v-3d58c944]{font-size:9px}.text10[data-v-3d58c944]{font-size:10px}.text-sm[data-v-3d58c944]{font-size:12px}.text-md[data-v-3d58c944]{font-size:14px}.text-lg[data-v-3d58c944]{font-size:16px}.blue-filled{background-color:#007bff;color:#fff}.blue-border{border:2px solid #007bff;color:#007bff}.red-filled{background-color:#dc3545;color:#fff}.red-border{border:2px solid #dc3545;color:#dc3545}.green-filled{background-color:#28a745;color:#fff}.green-border{border:2px solid #28a745;color:#28a745}.yellow-filled{background-color:#fbbc04;color:#fff}.yellow-border{border:2px solid #fbbc04;color:#fbbc04}.accordion-enter-active[data-v-1c2c0817],.accordion-leave-active[data-v-1c2c0817]{transition:height .3s ease}.accordion-enter[data-v-1c2c0817],.accordion-leave-to[data-v-1c2c0817]{height:0;overflow:hidden}.text9[data-v-4936d4e4]{font-size:9px}.h-browser[data-v-4936d4e4]{height:calc(100% - 75px)}.sidebar[data-v-bded4814]{background:rgba(245,247,251,.8);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.dropdown[data-v-bded4814]{position:absolute;background:white;border:1px solid #ccc;border-radius:5px;padding:10px;bottom:100%;left:0}.tooltip[data-v-bded4814]{position:relative}.tooltip-text[data-v-bded4814]{visibility:hidden;background-color:#000;color:#fff;text-align:center;padding:5px;border-radius:6px;position:absolute;z-index:1;bottom:125%;left:50%;transform:translate(-50%);opacity:0;transition:opacity .3s}.tooltip:hover .tooltip-text[data-v-bded4814]{visibility:visible;opacity:1}.cont[data-v-bded4814]{flex-direction:column;height:100vh;height:100dvh;justify-content:space-between}.overflow-y-auto[data-v-bded4814]::-webkit-scrollbar{width:2px}.overflow-y-auto[data-v-bded4814]::-webkit-scrollbar-track{background-color:#f1f1f1;border-radius:10px}.overflow-y-auto[data-v-bded4814]::-webkit-scrollbar-thumb{background-color:#888;border-radius:10px}.overflow-y-auto[data-v-bded4814]::-webkit-scrollbar-thumb:hover{background-color:#555}.border-gradient[data-v-bded4814]{position:relative;background:linear-gradient(to right,#E1A508,#E04040);border-radius:9px}.scroll-body[data-v-8ffc89cc]{height:100dvh}.module-border-wrap[data-v-8ffc89cc]{border-radius:14px;position:relative;background:linear-gradient(to right,#e1a508,#e04040);padding:1px}.overflow-y-auto[data-v-8ffc89cc]::-webkit-scrollbar{width:3px}.overflow-y-auto[data-v-8ffc89cc]::-webkit-scrollbar-track{background-color:#979ca9;border-radius:0}.overflow-y-auto[data-v-8ffc89cc]::-webkit-scrollbar-thumb{background-color:#888;border-radius:2px}.overflow-y-auto[data-v-8ffc89cc]::-webkit-scrollbar-thumb:hover{background-color:#555}@keyframes one-sp-ico-rot{to{transform:rotate(360deg)}}@keyframes one-sp-ico-dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}to{stroke-dasharray:90,150;stroke-dashoffset:-124}}
1
+ .textSm[data-v-3d58c944]{font-size:6px}.textMd[data-v-3d58c944]{font-size:8px}.textLg[data-v-3d58c944]{font-size:9px}.text10[data-v-3d58c944]{font-size:10px}.text-sm[data-v-3d58c944]{font-size:12px}.text-md[data-v-3d58c944]{font-size:14px}.text-lg[data-v-3d58c944]{font-size:16px}.blue-filled{background-color:#007bff;color:#fff}.blue-border{border:2px solid #007bff;color:#007bff}.red-filled{background-color:#dc3545;color:#fff}.red-border{border:2px solid #dc3545;color:#dc3545}.green-filled{background-color:#28a745;color:#fff}.green-border{border:2px solid #28a745;color:#28a745}.yellow-filled{background-color:#fbbc04;color:#fff}.yellow-border{border:2px solid #fbbc04;color:#fbbc04}.accordion-enter-active[data-v-1c2c0817],.accordion-leave-active[data-v-1c2c0817]{transition:height .3s ease}.accordion-enter[data-v-1c2c0817],.accordion-leave-to[data-v-1c2c0817]{height:0;overflow:hidden}.sidebar[data-v-bded4814]{background:rgba(245,247,251,.8);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.dropdown[data-v-bded4814]{position:absolute;background:white;border:1px solid #ccc;border-radius:5px;padding:10px;bottom:100%;left:0}.tooltip[data-v-bded4814]{position:relative}.tooltip-text[data-v-bded4814]{visibility:hidden;background-color:#000;color:#fff;text-align:center;padding:5px;border-radius:6px;position:absolute;z-index:1;bottom:125%;left:50%;transform:translate(-50%);opacity:0;transition:opacity .3s}.tooltip:hover .tooltip-text[data-v-bded4814]{visibility:visible;opacity:1}.cont[data-v-bded4814]{flex-direction:column;height:100vh;height:100dvh;justify-content:space-between}.overflow-y-auto[data-v-bded4814]::-webkit-scrollbar{width:2px}.overflow-y-auto[data-v-bded4814]::-webkit-scrollbar-track{background-color:#f1f1f1;border-radius:10px}.overflow-y-auto[data-v-bded4814]::-webkit-scrollbar-thumb{background-color:#888;border-radius:10px}.overflow-y-auto[data-v-bded4814]::-webkit-scrollbar-thumb:hover{background-color:#555}.border-gradient[data-v-bded4814]{position:relative;background:linear-gradient(to right,#E1A508,#E04040);border-radius:9px}.scroll-body[data-v-a1827512]{height:100dvh}.module-border-wrap[data-v-a1827512]{border-radius:14px;position:relative;background:linear-gradient(to right,#e1a508,#e04040);padding:1px}.overflow-y-auto[data-v-a1827512]::-webkit-scrollbar{width:3px}.overflow-y-auto[data-v-a1827512]::-webkit-scrollbar-track{background-color:#979ca9;border-radius:0}.overflow-y-auto[data-v-a1827512]::-webkit-scrollbar-thumb{background-color:#888;border-radius:2px}.overflow-y-auto[data-v-a1827512]::-webkit-scrollbar-thumb:hover{background-color:#555}.text9[data-v-4936d4e4]{font-size:9px}.h-browser[data-v-4936d4e4]{height:calc(100% - 75px)}.tooltip[data-v-94a995fe]{position:relative}.tooltip-text[data-v-94a995fe]{visibility:hidden;background-color:#000;color:#fff;text-align:center;padding:5px;border-radius:6px;position:absolute;z-index:1;bottom:125%;left:50%;transform:translate(-50%);opacity:0;transition:opacity .3s}.tooltip:hover .tooltip-text[data-v-94a995fe]{visibility:visible;opacity:1}.overflow-y-auto[data-v-94a995fe]::-webkit-scrollbar{width:2px}.overflow-y-auto[data-v-94a995fe]::-webkit-scrollbar-track{background-color:#f1f1f1;border-radius:10px}.overflow-y-auto[data-v-94a995fe]::-webkit-scrollbar-thumb{background-color:#888;border-radius:10px}.overflow-y-auto[data-v-94a995fe]::-webkit-scrollbar-thumb:hover{background-color:#555}@keyframes one-sp-ico-rot{to{transform:rotate(360deg)}}@keyframes one-sp-ico-dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}to{stroke-dasharray:90,150;stroke-dashoffset:-124}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oneb/ui-vue",
3
- "version": "0.1.22",
3
+ "version": "0.1.23",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -1,549 +0,0 @@
1
- import { defineComponent as $, ref as C, provide as E, computed as _, openBlock as o, createElementBlock as r, renderSlot as B, normalizeProps as M, guardReactiveProps as I, createCommentVNode as f, createVNode as v, Transition as R, withCtx as S, normalizeClass as A, toDisplayString as p, inject as T, withModifiers as V, createBlock as k, resolveDynamicComponent as q, createElementVNode as e, Fragment as z, renderList as j, mergeProps as H, unref as b, pushScopeId as N, popScopeId as W } from "vue";
2
- import { OneAvatar as w } from "./common/index.js";
3
- import { r as U } from "./XMarkIcon-51ef0691.js";
4
- import { _ as G } from "./index-81f36d8e.js";
5
- import { _ as J } from "./_plugin-vue_export-helper-dad06003.js";
6
- const K = {
7
- title: {
8
- type: String
9
- },
10
- stick: {
11
- type: String,
12
- default: "right"
13
- }
14
- }, Q = {
15
- variant: {
16
- type: String,
17
- default: "primary"
18
- },
19
- label: {
20
- type: String
21
- },
22
- icon: {
23
- type: [Function, Object]
24
- }
25
- }, X = ["data-opened"], Y = {
26
- key: 0,
27
- class: "text-sm text-secondary-content px-3 py-2 text-left"
28
- }, Z = /* @__PURE__ */ $({
29
- __name: "OneDropdown",
30
- props: K,
31
- emits: ["open", "close"],
32
- setup(c, { emit: i }) {
33
- const a = c, l = C(!1), h = C(null), n = () => {
34
- l.value = !l.value, l.value ? i("open") : i("close");
35
- };
36
- E("OneDropdown", {
37
- onToggle: n
38
- });
39
- const s = _(() => {
40
- const t = h.value != null && h.value.getBoundingClientRect.x < 270;
41
- return h.value != null && h.value.getBoundingClientRect().top + 270 > window.innerHeight ? "up" + (t ? "-right" : "-left") : "down" + (t ? "-right" : "-left");
42
- }), u = _(() => {
43
- const t = [
44
- "absolute z-10 w-fit rounded-md bg-white",
45
- "py-1 shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none",
46
- "overflow-auto max-h-[540px] min-w-[150px] max-w-[540px]"
47
- ];
48
- return s.value.startsWith("up") ? t.push("bottom-1 mb-10") : s.value.startsWith("down") && t.push("top-1 mt-10"), a.stick === "right" ? t.push("right-0") : a.stick === "left" && t.push("left-0"), t;
49
- });
50
- return (t, m) => (o(), r("div", {
51
- class: "relative inline-block",
52
- ref_key: "menuRef",
53
- ref: h,
54
- "data-opened": l.value
55
- }, [
56
- B(t.$slots, "button", M(I({ onToggle: n, isExpanded: l.value }))),
57
- l.value ? (o(), r("div", {
58
- key: 0,
59
- class: "fixed top-0 left-0 w-screen h-screen z-10",
60
- onClick: n
61
- })) : f("", !0),
62
- v(R, {
63
- "enter-active-class": "transition ease-out duration-100",
64
- "enter-from-class": "transform opacity-0 scale-95",
65
- "enter-to-class": "transform opacity-100 scale-100",
66
- "leave-active-class": "transition ease-in duration-75",
67
- "leave-from-class": "transform opacity-100 scale-100",
68
- "leave-to-class": "transform opacity-0 scale-95"
69
- }, {
70
- default: S(() => [
71
- l.value ? (o(), r("div", {
72
- key: 0,
73
- class: A(["menu", u.value]),
74
- role: "menu",
75
- "aria-orientation": "vertical",
76
- tabindex: "-1"
77
- }, [
78
- t.title ? (o(), r("div", Y, p(t.title), 1)) : f("", !0),
79
- B(t.$slots, "menu", M(I({ onToggle: n })))
80
- ], 2)) : f("", !0)
81
- ]),
82
- _: 3
83
- })
84
- ], 8, X));
85
- }
86
- }), ee = ["onClick"], P = /* @__PURE__ */ $({
87
- __name: "OneDropdownItem",
88
- props: Q,
89
- emits: ["click"],
90
- setup(c, { emit: i }) {
91
- const a = c, l = T("OneDropdown"), h = () => {
92
- l !== void 0 && l.onToggle(), i("click");
93
- }, n = _(() => {
94
- const s = [];
95
- return a.variant === "secondary" ? s.push("text-secondary-content hover:bg-secondary-body-hover") : a.variant === "danger" ? s.push("text-danger-content hover:bg-danger-10") : a.variant === "warning" ? s.push("text-warning-content hover:bg-warning-10") : a.variant === "info" ? s.push("text-info-content hover:bg-info-10") : s.push("hover:bg-secondary-body-hover"), s;
96
- });
97
- return (s, u) => (o(), r("button", {
98
- class: A(["px-3 py-1.5 flex items-center space-x-3 w-full whitespace-nowrap", n.value]),
99
- onClick: V(h, ["prevent"])
100
- }, [
101
- s.icon ? (o(), k(q(s.icon), {
102
- key: 0,
103
- class: "w-4 h-4"
104
- })) : f("", !0),
105
- e("span", null, p(s.label), 1)
106
- ], 10, ee));
107
- }
108
- });
109
- function te(c, i) {
110
- return o(), r("svg", {
111
- xmlns: "http://www.w3.org/2000/svg",
112
- fill: "none",
113
- viewBox: "0 0 24 24",
114
- "stroke-width": "1.8",
115
- stroke: "currentColor",
116
- "aria-hidden": "true"
117
- }, [
118
- e("path", {
119
- "stroke-linecap": "round",
120
- "stroke-linejoin": "round",
121
- d: "M15.75 9V5.25A2.25 2.25 0 0013.5 3h-6a2.25 2.25 0 00-2.25 2.25v13.5A2.25 2.25 0 007.5 21h6a2.25 2.25 0 002.25-2.25V15m3 0l3-3m0 0l-3-3m3 3H9"
122
- })
123
- ]);
124
- }
125
- const oe = {
126
- user: {
127
- type: Object,
128
- required: !0
129
- },
130
- menu: {
131
- type: Array,
132
- default: () => []
133
- },
134
- iconSize: {
135
- type: String,
136
- default: "34"
137
- },
138
- app: {
139
- type: Object
140
- },
141
- accountLabel: {
142
- type: String,
143
- default: "Account"
144
- },
145
- logoutLabel: {
146
- type: String,
147
- default: "Logout"
148
- },
149
- versionLabel: {
150
- type: String,
151
- default: ""
152
- },
153
- onAccount: {
154
- type: Function
155
- },
156
- onLogout: {
157
- type: Function
158
- }
159
- }, ne = {
160
- workspace: {
161
- type: Object,
162
- required: !0
163
- },
164
- workspaces: {
165
- type: Array
166
- },
167
- apps: {
168
- type: Array,
169
- required: !0
170
- },
171
- iconSize: {
172
- type: String,
173
- default: "24"
174
- },
175
- appsTitle: {
176
- type: String,
177
- default: "Ваші додатки"
178
- },
179
- changeLabel: {
180
- type: String,
181
- default: "Керувати робочими просторами"
182
- },
183
- onChange: {
184
- type: Function
185
- },
186
- onApp: {
187
- type: Function
188
- }
189
- }, se = ["onClick"], re = { class: "flex flex-col items-center pt-5 pb-2 h-full" }, le = { class: "flex flex-col px-10 py-1 mt-2 text-center" }, ie = { class: "self-center text-base font-medium tracking-wide text-black" }, ce = { class: "mt-1 text-xs leading-5 text-blue-500 font-light" }, ae = { class: "text-left w-full mt-5 px-3" }, ue = /* @__PURE__ */ e("div", {
190
- class: "space-y-2 text-center",
191
- style: { width: "240px" }
192
- }, null, -1), de = { class: "-mb-2 flex-shrink-0 mt-auto pt-6 text-[8px] leading-3 text-gray-400" }, Ue = /* @__PURE__ */ $({
193
- __name: "OneUserMenu",
194
- props: oe,
195
- setup(c) {
196
- const i = c, a = _(() => {
197
- var n;
198
- return (n = i.menu) == null ? void 0 : n.map((s) => {
199
- let u = { label: s.label };
200
- s.icon != null && (u = { ...u, icon: s.icon });
201
- const t = typeof s.click == "function" ? s.click : () => {
202
- };
203
- return {
204
- key: s.label,
205
- args: u,
206
- click: t
207
- };
208
- });
209
- }), l = () => {
210
- typeof i.onAccount == "function" && i.onAccount();
211
- }, h = () => {
212
- typeof i.onLogout == "function" && i.onLogout();
213
- };
214
- return (n, s) => (o(), k(Z, { stick: "right" }, {
215
- button: S(({ onToggle: u, isExpanded: t }) => {
216
- var m, g;
217
- return [
218
- e("button", {
219
- onClick: u,
220
- class: A(["p-1 rounded-full hover:bg-secondary-10", [t ? "bg-secondary-25" : ""]])
221
- }, [
222
- v(w, {
223
- text: ((m = n.user) == null ? void 0 : m.name) || "",
224
- size: n.iconSize,
225
- src: (g = n.user) == null ? void 0 : g.photo_url,
226
- rounded: !0
227
- }, null, 8, ["text", "size", "src"])
228
- ], 10, se)
229
- ];
230
- }),
231
- menu: S(() => {
232
- var u, t, m, g, y;
233
- return [
234
- e("div", re, [
235
- v(w, {
236
- text: ((u = n.user) == null ? void 0 : u.name) || "",
237
- size: 80,
238
- src: (t = n.user) == null ? void 0 : t.photo_url,
239
- rounded: !0,
240
- class: "mx-auto"
241
- }, null, 8, ["text", "src"]),
242
- e("div", le, [
243
- e("div", ie, p((m = n.user) == null ? void 0 : m.name), 1),
244
- e("div", ce, p((g = n.user) == null ? void 0 : g.email), 1)
245
- ]),
246
- typeof i.onAccount == "function" ? (o(), r("a", {
247
- key: 0,
248
- onClick: l,
249
- 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"
250
- }, p(n.accountLabel), 1)) : f("", !0),
251
- e("div", ae, [
252
- (o(!0), r(z, null, j(a.value, (x) => (o(), k(P, H({
253
- key: x.key
254
- }, x.args, {
255
- onClick: x.click
256
- }), null, 16, ["onClick"]))), 128)),
257
- typeof n.onLogout == "function" ? (o(), k(P, {
258
- key: 0,
259
- icon: b(te),
260
- label: n.logoutLabel,
261
- class: "rounded py-3",
262
- onClick: h
263
- }, null, 8, ["icon", "label"])) : f("", !0)
264
- ]),
265
- ue,
266
- e("div", de, p((y = n.app) == null ? void 0 : y.version), 1)
267
- ])
268
- ];
269
- }),
270
- _: 1
271
- }));
272
- }
273
- });
274
- function pe(c, i) {
275
- return o(), r("svg", {
276
- xmlns: "http://www.w3.org/2000/svg",
277
- fill: "none",
278
- viewBox: "0 0 24 24",
279
- "stroke-width": "1.8",
280
- stroke: "currentColor",
281
- "aria-hidden": "true"
282
- }, [
283
- e("rect", {
284
- width: "2.94",
285
- height: "2.94",
286
- x: "17.16",
287
- y: "3.9",
288
- fill: "currentColor",
289
- "stroke-width": "1.8",
290
- rx: "1.1"
291
- }),
292
- e("rect", {
293
- width: "2.94",
294
- height: "2.94",
295
- x: "10.53",
296
- y: "3.9",
297
- fill: "currentColor",
298
- "stroke-width": "1.8",
299
- rx: "1.1"
300
- }),
301
- e("rect", {
302
- width: "2.94",
303
- height: "2.94",
304
- x: "3.9",
305
- y: "3.9",
306
- fill: "currentColor",
307
- "stroke-width": "1.8",
308
- rx: "1.1"
309
- }),
310
- e("rect", {
311
- width: "2.94",
312
- height: "2.94",
313
- x: "17.16",
314
- y: "10.53",
315
- fill: "currentColor",
316
- "stroke-width": "1.8",
317
- rx: "1.1"
318
- }),
319
- e("rect", {
320
- width: "2.94",
321
- height: "2.94",
322
- x: "10.53",
323
- y: "10.53",
324
- fill: "currentColor",
325
- "stroke-width": "1.8",
326
- rx: "1.1"
327
- }),
328
- e("rect", {
329
- width: "2.94",
330
- height: "2.94",
331
- x: "3.9",
332
- y: "10.53",
333
- fill: "currentColor",
334
- "stroke-width": "1.8",
335
- rx: "1.1"
336
- }),
337
- e("rect", {
338
- width: "2.94",
339
- height: "2.94",
340
- x: "17.16",
341
- y: "17.16",
342
- fill: "currentColor",
343
- "stroke-width": "1.8",
344
- rx: "1.1"
345
- }),
346
- e("rect", {
347
- width: "2.94",
348
- height: "2.94",
349
- x: "10.53",
350
- y: "17.16",
351
- fill: "currentColor",
352
- "stroke-width": "1.8",
353
- rx: "1.1"
354
- }),
355
- e("rect", {
356
- width: "2.94",
357
- height: "2.94",
358
- x: "3.9",
359
- y: "17.16",
360
- fill: "currentColor",
361
- "stroke-width": "1.8",
362
- rx: "1.1"
363
- })
364
- ]);
365
- }
366
- function he(c, i) {
367
- return o(), r("svg", {
368
- xmlns: "http://www.w3.org/2000/svg",
369
- fill: "none",
370
- viewBox: "0 0 24 24",
371
- "stroke-width": "1.8",
372
- stroke: "currentColor",
373
- "aria-hidden": "true"
374
- }, [
375
- e("path", {
376
- "stroke-linecap": "round",
377
- "stroke-linejoin": "round",
378
- d: "M19.5 8.25l-7.5 7.5-7.5-7.5"
379
- })
380
- ]);
381
- }
382
- function fe(c, i) {
383
- return o(), r("svg", {
384
- xmlns: "http://www.w3.org/2000/svg",
385
- fill: "none",
386
- viewBox: "0 0 24 24",
387
- "stroke-width": "1.8",
388
- stroke: "currentColor",
389
- "aria-hidden": "true"
390
- }, [
391
- e("path", {
392
- "stroke-linecap": "round",
393
- "stroke-linejoin": "round",
394
- d: "M4.5 15.75l7.5-7.5 7.5 7.5"
395
- })
396
- ]);
397
- }
398
- function ve(c, i) {
399
- return o(), r("svg", {
400
- xmlns: "http://www.w3.org/2000/svg",
401
- fill: "none",
402
- viewBox: "0 0 24 24",
403
- "stroke-width": "1.8",
404
- stroke: "currentColor",
405
- "aria-hidden": "true"
406
- }, [
407
- e("path", {
408
- "stroke-linecap": "round",
409
- "stroke-linejoin": "round",
410
- d: "M8.25 4.5l7.5 7.5-7.5 7.5"
411
- })
412
- ]);
413
- }
414
- const ge = (c) => (N("data-v-4936d4e4"), c = c(), W(), c), me = ["data-opened"], xe = {
415
- key: 1,
416
- class: "absolute top-0 right-0 h-screen overflow-y-auto max-w-96 bg-white px-3 z-10"
417
- }, ye = { class: "flex justify-between items-center pt-3 mb-3" }, we = { class: "font-semibold text-xl px-3" }, _e = { class: "grid" }, ke = { class: "rounded-lg m-3 border" }, be = {
418
- class: "space-x-2 flex items-center px-3 py-2",
419
- style: { width: "300px" }
420
- }, Ce = { class: "flex justify-between relative" }, $e = { class: "flex items-center justify-between w-full text-left text-sm font-semibold" }, Ae = { key: 0 }, Se = { class: "text-xs font-semibold" }, ze = /* @__PURE__ */ ge(() => /* @__PURE__ */ e("hr", null, null, -1)), je = { class: "px-3 py-2" }, Le = { class: "text-secondary-content text-left pb-1 text-xs uppercase" }, Oe = { class: "overflow-auto max-h-full" }, Fe = {
421
- key: 0,
422
- class: "space-y-2"
423
- }, Be = ["onClick"], Me = { class: "flex" }, Ie = { class: "border border-secondary-stroke rounded-2xl w-14 h-14 md:w-14 md:h-14 flex items-center justify-center" }, Pe = { class: "pl-2" }, De = { class: "text-sm mt-1 font-semibold" }, Ee = { class: "text9 mt-1" }, Re = {
424
- key: 1,
425
- class: "mt-2 w-full bg-[#FAFAFA] hover:bg-secondary-10 p-2 rounded-lg mb-5 text-xs hidden"
426
- }, Te = /* @__PURE__ */ $({
427
- __name: "OneBrowserMenu",
428
- props: ne,
429
- emits: ["open", "close"],
430
- setup(c, { emit: i }) {
431
- const a = c, l = C(!1), h = () => {
432
- l.value = !l.value, l.value ? i("open") : i("close");
433
- }, n = C(!1);
434
- _(() => n.value ? fe : he);
435
- const s = () => {
436
- typeof a.onChange == "function" && a.onChange();
437
- }, u = (t) => {
438
- typeof a.onApp == "function" && a.onApp(t);
439
- };
440
- return (t, m) => {
441
- var g, y, x, L, O, F;
442
- return o(), r("div", { "data-opened": l.value }, [
443
- e("button", {
444
- onClick: h,
445
- class: A(["p-1 w-[44px] h-[44px] rounded-md hover:bg-secondary-10", { "bg-secondary-10": l.value }])
446
- }, [
447
- v(b(pe), { class: "text-secondary-base w-full p-1 hover:text-blue-600 m-auto" })
448
- ], 2),
449
- l.value ? (o(), r("div", {
450
- key: 0,
451
- class: "fixed top-0 left-0 w-screen h-screen z-10 bg-black/10",
452
- onClick: h
453
- })) : f("", !0),
454
- l.value ? (o(), r("div", xe, [
455
- e("div", ye, [
456
- e("div", we, p((g = t.workspace) == null ? void 0 : g.title), 1),
457
- v(b(U), {
458
- class: "w-6 cursor-pointer",
459
- onClick: h
460
- })
461
- ]),
462
- e("div", _e, [
463
- e("div", ke, [
464
- e("div", be, [
465
- e("div", Ce, [
466
- v(w, {
467
- text: ((y = t.workspace) == null ? void 0 : y.name) || "",
468
- src: (x = t.workspace) == null ? void 0 : x.photo_url,
469
- size: 44,
470
- rounded: !1,
471
- class: "mx-auto"
472
- }, null, 8, ["text", "src"])
473
- ]),
474
- e("div", $e, p((L = t.workspace) == null ? void 0 : L.name) + " ", 1)
475
- ]),
476
- n.value ? (o(), r("div", Ae, [
477
- (o(!0), r(z, null, j(t.workspaces, (d) => (o(), r("div", {
478
- key: d.name,
479
- class: "flex items-center space-x-3 border-t px-5 py-2 hover:bg-secondary-10"
480
- }, [
481
- v(w, {
482
- text: d.name,
483
- src: d.photo_url,
484
- size: 30,
485
- rounded: !1
486
- }, null, 8, ["text", "src"]),
487
- e("span", Se, p(d.name), 1)
488
- ]))), 128))
489
- ])) : f("", !0),
490
- ze,
491
- e("div", {
492
- onClick: s,
493
- class: "text-center py-2 cursor-pointer",
494
- style: { "font-size": "10px" }
495
- }, p((O = t.workspace) == null ? void 0 : O.changeLabel), 1)
496
- ])
497
- ]),
498
- e("div", je, [
499
- e("div", Le, p((F = t.workspace) == null ? void 0 : F.appsLabel), 1),
500
- e("div", Oe, [
501
- t.apps && t.apps.length ? (o(), r("div", Fe, [
502
- (o(!0), r(z, null, j(t.apps, (d) => (o(), r("div", {
503
- key: d.id,
504
- onClick: (D) => u(d),
505
- class: "flex justify-between items-center rounded-lg hover:bg-secondary-10 p-2 bg-[#FAFAFA] cursor-pointer"
506
- }, [
507
- e("div", Me, [
508
- e("div", Ie, [
509
- v(w, {
510
- text: d.name,
511
- src: d.photo_url,
512
- size: 44,
513
- rounded: !1
514
- }, null, 8, ["text", "src"])
515
- ]),
516
- e("div", Pe, [
517
- e("p", De, p(d.name), 1),
518
- e("p", Ee, p(d == null ? void 0 : d.short), 1)
519
- ])
520
- ]),
521
- e("div", null, [
522
- v(G, {
523
- variant: "touch",
524
- icon: b(ve),
525
- onClick: (D) => u(d)
526
- }, null, 8, ["icon", "onClick"])
527
- ])
528
- ], 8, Be))), 128))
529
- ])) : f("", !0),
530
- t.apps && t.apps.length ? (o(), r("button", Re, p("Дивитися всі"))) : f("", !0)
531
- ])
532
- ])
533
- ])) : f("", !0)
534
- ], 8, me);
535
- };
536
- }
537
- });
538
- const Ge = /* @__PURE__ */ J(Te, [["__scopeId", "data-v-4936d4e4"]]);
539
- export {
540
- Ge as O,
541
- Z as _,
542
- P as a,
543
- Ue as b,
544
- he as c,
545
- ve as d,
546
- ne as e,
547
- pe as f,
548
- fe as r
549
- };
@@ -1 +0,0 @@
1
- "use strict";const e=require("vue"),f=require("./common/index.cjs"),C=require("./XMarkIcon-f94baa4c.cjs"),N=require("./index-98ecfd9e.cjs"),S=require("./_plugin-vue_export-helper-f246444f.cjs"),$={title:{type:String},stick:{type:String,default:"right"}},A={variant:{type:String,default:"primary"},label:{type:String},icon:{type:[Function,Object]}},z=["data-opened"],D={key:0,class:"text-sm text-secondary-content px-3 py-2 text-left"},w=e.defineComponent({__name:"OneDropdown",props:$,emits:["open","close"],setup(s,{emit:l}){const c=s,r=e.ref(!1),d=e.ref(null),o=()=>{r.value=!r.value,r.value?l("open"):l("close")};e.provide("OneDropdown",{onToggle:o});const n=e.computed(()=>{const t=d.value!=null&&d.value.getBoundingClientRect.x<270;return d.value!=null&&d.value.getBoundingClientRect().top+270>window.innerHeight?"up"+(t?"-right":"-left"):"down"+(t?"-right":"-left")}),a=e.computed(()=>{const t=["absolute z-10 w-fit rounded-md bg-white","py-1 shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none","overflow-auto max-h-[540px] min-w-[150px] max-w-[540px]"];return n.value.startsWith("up")?t.push("bottom-1 mb-10"):n.value.startsWith("down")&&t.push("top-1 mt-10"),c.stick==="right"?t.push("right-0"):c.stick==="left"&&t.push("left-0"),t});return(t,p)=>(e.openBlock(),e.createElementBlock("div",{class:"relative inline-block",ref_key:"menuRef",ref:d,"data-opened":r.value},[e.renderSlot(t.$slots,"button",e.normalizeProps(e.guardReactiveProps({onToggle:o,isExpanded:r.value}))),r.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"fixed top-0 left-0 w-screen h-screen z-10",onClick:o})):e.createCommentVNode("",!0),e.createVNode(e.Transition,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:e.withCtx(()=>[r.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["menu",a.value]),role:"menu","aria-orientation":"vertical",tabindex:"-1"},[t.title?(e.openBlock(),e.createElementBlock("div",D,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"menu",e.normalizeProps(e.guardReactiveProps({onToggle:o})))],2)):e.createCommentVNode("",!0)]),_:3})],8,z))}}),O=["onClick"],k=e.defineComponent({__name:"OneDropdownItem",props:A,emits:["click"],setup(s,{emit:l}){const c=s,r=e.inject("OneDropdown"),d=()=>{r!==void 0&&r.onToggle(),l("click")},o=e.computed(()=>{const n=[];return c.variant==="secondary"?n.push("text-secondary-content hover:bg-secondary-body-hover"):c.variant==="danger"?n.push("text-danger-content hover:bg-danger-10"):c.variant==="warning"?n.push("text-warning-content hover:bg-warning-10"):c.variant==="info"?n.push("text-info-content hover:bg-info-10"):n.push("hover:bg-secondary-body-hover"),n});return(n,a)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["px-3 py-1.5 flex items-center space-x-3 w-full whitespace-nowrap",o.value]),onClick:e.withModifiers(d,["prevent"])},[n.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.icon),{key:0,class:"w-4 h-4"})):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(n.label),1)],10,O))}});function L(s,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 9V5.25A2.25 2.25 0 0013.5 3h-6a2.25 2.25 0 00-2.25 2.25v13.5A2.25 2.25 0 007.5 21h6a2.25 2.25 0 002.25-2.25V15m3 0l3-3m0 0l-3-3m3 3H9"})])}const F={user:{type:Object,required:!0},menu:{type:Array,default:()=>[]},iconSize:{type:String,default:"34"},app:{type:Object},accountLabel:{type:String,default:"Account"},logoutLabel:{type:String,default:"Logout"},versionLabel:{type:String,default:""},onAccount:{type:Function},onLogout:{type:Function}},x={workspace:{type:Object,required:!0},workspaces:{type:Array},apps:{type:Array,required:!0},iconSize:{type:String,default:"24"},appsTitle:{type:String,default:"Ваші додатки"},changeLabel:{type:String,default:"Керувати робочими просторами"},onChange:{type:Function},onApp:{type:Function}},j=["onClick"],M={class:"flex flex-col items-center pt-5 pb-2 h-full"},P={class:"flex flex-col px-10 py-1 mt-2 text-center"},q={class:"self-center text-base font-medium tracking-wide text-black"},I={class:"mt-1 text-xs leading-5 text-blue-500 font-light"},R={class:"text-left w-full mt-5 px-3"},T=e.createElementVNode("div",{class:"space-y-2 text-center",style:{width:"240px"}},null,-1),H={class:"-mb-2 flex-shrink-0 mt-auto pt-6 text-[8px] leading-3 text-gray-400"},W=e.defineComponent({__name:"OneUserMenu",props:F,setup(s){const l=s,c=e.computed(()=>{var o;return(o=l.menu)==null?void 0:o.map(n=>{let a={label:n.label};n.icon!=null&&(a={...a,icon:n.icon});const t=typeof n.click=="function"?n.click:()=>{};return{key:n.label,args:a,click:t}})}),r=()=>{typeof l.onAccount=="function"&&l.onAccount()},d=()=>{typeof l.onLogout=="function"&&l.onLogout()};return(o,n)=>(e.openBlock(),e.createBlock(w,{stick:"right"},{button:e.withCtx(({onToggle:a,isExpanded:t})=>{var p,u;return[e.createElementVNode("button",{onClick:a,class:e.normalizeClass(["p-1 rounded-full hover:bg-secondary-10",[t?"bg-secondary-25":""]])},[e.createVNode(f.OneAvatar,{text:((p=o.user)==null?void 0:p.name)||"",size:o.iconSize,src:(u=o.user)==null?void 0:u.photo_url,rounded:!0},null,8,["text","size","src"])],10,j)]}),menu:e.withCtx(()=>{var a,t,p,u,h;return[e.createElementVNode("div",M,[e.createVNode(f.OneAvatar,{text:((a=o.user)==null?void 0:a.name)||"",size:80,src:(t=o.user)==null?void 0:t.photo_url,rounded:!0,class:"mx-auto"},null,8,["text","src"]),e.createElementVNode("div",P,[e.createElementVNode("div",q,e.toDisplayString((p=o.user)==null?void 0:p.name),1),e.createElementVNode("div",I,e.toDisplayString((u=o.user)==null?void 0:u.email),1)]),typeof l.onAccount=="function"?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:r,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"},e.toDisplayString(o.accountLabel),1)):e.createCommentVNode("",!0),e.createElementVNode("div",R,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,m=>(e.openBlock(),e.createBlock(k,e.mergeProps({key:m.key},m.args,{onClick:m.click}),null,16,["onClick"]))),128)),typeof o.onLogout=="function"?(e.openBlock(),e.createBlock(k,{key:0,icon:e.unref(L),label:o.logoutLabel,class:"rounded py-3",onClick:d},null,8,["icon","label"])):e.createCommentVNode("",!0)]),T,e.createElementVNode("div",H,e.toDisplayString((h=o.app)==null?void 0:h.version),1)])]}),_:1}))}});function _(s,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("rect",{width:"2.94",height:"2.94",x:"17.16",y:"3.9",fill:"currentColor","stroke-width":"1.8",rx:"1.1"}),e.createElementVNode("rect",{width:"2.94",height:"2.94",x:"10.53",y:"3.9",fill:"currentColor","stroke-width":"1.8",rx:"1.1"}),e.createElementVNode("rect",{width:"2.94",height:"2.94",x:"3.9",y:"3.9",fill:"currentColor","stroke-width":"1.8",rx:"1.1"}),e.createElementVNode("rect",{width:"2.94",height:"2.94",x:"17.16",y:"10.53",fill:"currentColor","stroke-width":"1.8",rx:"1.1"}),e.createElementVNode("rect",{width:"2.94",height:"2.94",x:"10.53",y:"10.53",fill:"currentColor","stroke-width":"1.8",rx:"1.1"}),e.createElementVNode("rect",{width:"2.94",height:"2.94",x:"3.9",y:"10.53",fill:"currentColor","stroke-width":"1.8",rx:"1.1"}),e.createElementVNode("rect",{width:"2.94",height:"2.94",x:"17.16",y:"17.16",fill:"currentColor","stroke-width":"1.8",rx:"1.1"}),e.createElementVNode("rect",{width:"2.94",height:"2.94",x:"10.53",y:"17.16",fill:"currentColor","stroke-width":"1.8",rx:"1.1"}),e.createElementVNode("rect",{width:"2.94",height:"2.94",x:"3.9",y:"17.16",fill:"currentColor","stroke-width":"1.8",rx:"1.1"})])}function b(s,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 8.25l-7.5 7.5-7.5-7.5"})])}function E(s,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 15.75l7.5-7.5 7.5 7.5"})])}function V(s,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})])}const U=s=>(e.pushScopeId("data-v-4936d4e4"),s=s(),e.popScopeId(),s),X=["data-opened"],G={key:1,class:"absolute top-0 right-0 h-screen overflow-y-auto max-w-96 bg-white px-3 z-10"},J={class:"flex justify-between items-center pt-3 mb-3"},K={class:"font-semibold text-xl px-3"},Q={class:"grid"},Y={class:"rounded-lg m-3 border"},Z={class:"space-x-2 flex items-center px-3 py-2",style:{width:"300px"}},ee={class:"flex justify-between relative"},te={class:"flex items-center justify-between w-full text-left text-sm font-semibold"},oe={key:0},ne={class:"text-xs font-semibold"},re=U(()=>e.createElementVNode("hr",null,null,-1)),le={class:"px-3 py-2"},se={class:"text-secondary-content text-left pb-1 text-xs uppercase"},ce={class:"overflow-auto max-h-full"},ae={key:0,class:"space-y-2"},ie=["onClick"],de={class:"flex"},ue={class:"border border-secondary-stroke rounded-2xl w-14 h-14 md:w-14 md:h-14 flex items-center justify-center"},pe={class:"pl-2"},me={class:"text-sm mt-1 font-semibold"},he={class:"text9 mt-1"},fe={key:1,class:"mt-2 w-full bg-[#FAFAFA] hover:bg-secondary-10 p-2 rounded-lg mb-5 text-xs hidden"},ke=e.defineComponent({__name:"OneBrowserMenu",props:x,emits:["open","close"],setup(s,{emit:l}){const c=s,r=e.ref(!1),d=()=>{r.value=!r.value,r.value?l("open"):l("close")},o=e.ref(!1);e.computed(()=>o.value?E:b);const n=()=>{typeof c.onChange=="function"&&c.onChange()},a=t=>{typeof c.onApp=="function"&&c.onApp(t)};return(t,p)=>{var u,h,m,g,v,y;return e.openBlock(),e.createElementBlock("div",{"data-opened":r.value},[e.createElementVNode("button",{onClick:d,class:e.normalizeClass(["p-1 w-[44px] h-[44px] rounded-md hover:bg-secondary-10",{"bg-secondary-10":r.value}])},[e.createVNode(e.unref(_),{class:"text-secondary-base w-full p-1 hover:text-blue-600 m-auto"})],2),r.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"fixed top-0 left-0 w-screen h-screen z-10 bg-black/10",onClick:d})):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("div",G,[e.createElementVNode("div",J,[e.createElementVNode("div",K,e.toDisplayString((u=t.workspace)==null?void 0:u.title),1),e.createVNode(e.unref(C.render),{class:"w-6 cursor-pointer",onClick:d})]),e.createElementVNode("div",Q,[e.createElementVNode("div",Y,[e.createElementVNode("div",Z,[e.createElementVNode("div",ee,[e.createVNode(f.OneAvatar,{text:((h=t.workspace)==null?void 0:h.name)||"",src:(m=t.workspace)==null?void 0:m.photo_url,size:44,rounded:!1,class:"mx-auto"},null,8,["text","src"])]),e.createElementVNode("div",te,e.toDisplayString((g=t.workspace)==null?void 0:g.name)+" ",1)]),o.value?(e.openBlock(),e.createElementBlock("div",oe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.workspaces,i=>(e.openBlock(),e.createElementBlock("div",{key:i.name,class:"flex items-center space-x-3 border-t px-5 py-2 hover:bg-secondary-10"},[e.createVNode(f.OneAvatar,{text:i.name,src:i.photo_url,size:30,rounded:!1},null,8,["text","src"]),e.createElementVNode("span",ne,e.toDisplayString(i.name),1)]))),128))])):e.createCommentVNode("",!0),re,e.createElementVNode("div",{onClick:n,class:"text-center py-2 cursor-pointer",style:{"font-size":"10px"}},e.toDisplayString((v=t.workspace)==null?void 0:v.changeLabel),1)])]),e.createElementVNode("div",le,[e.createElementVNode("div",se,e.toDisplayString((y=t.workspace)==null?void 0:y.appsLabel),1),e.createElementVNode("div",ce,[t.apps&&t.apps.length?(e.openBlock(),e.createElementBlock("div",ae,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.apps,i=>(e.openBlock(),e.createElementBlock("div",{key:i.id,onClick:B=>a(i),class:"flex justify-between items-center rounded-lg hover:bg-secondary-10 p-2 bg-[#FAFAFA] cursor-pointer"},[e.createElementVNode("div",de,[e.createElementVNode("div",ue,[e.createVNode(f.OneAvatar,{text:i.name,src:i.photo_url,size:44,rounded:!1},null,8,["text","src"])]),e.createElementVNode("div",pe,[e.createElementVNode("p",me,e.toDisplayString(i.name),1),e.createElementVNode("p",he,e.toDisplayString(i==null?void 0:i.short),1)])]),e.createElementVNode("div",null,[e.createVNode(N._sfc_main,{variant:"touch",icon:e.unref(V),onClick:B=>a(i)},null,8,["icon","onClick"])])],8,ie))),128))])):e.createCommentVNode("",!0),t.apps&&t.apps.length?(e.openBlock(),e.createElementBlock("button",fe,e.toDisplayString("Дивитися всі"))):e.createCommentVNode("",!0)])])])):e.createCommentVNode("",!0)],8,X)}}});const ge=S._export_sfc(ke,[["__scopeId","data-v-4936d4e4"]]);exports.OneBrowserMenu=ge;exports._sfc_main=w;exports._sfc_main$1=k;exports._sfc_main$2=W;exports.browserMenuProps=x;exports.render=E;exports.render$1=b;exports.render$2=V;exports.render$3=_;