@oneb/ui-vue 0.0.62 → 0.0.63

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 (40) hide show
  1. package/dist/{OneBrowserMenu-70783fed.js → OneBrowserMenu-513866aa.js} +142 -142
  2. package/dist/OneBrowserMenu-ecac54bd.cjs +1 -0
  3. package/dist/button/index.cjs +1 -1
  4. package/dist/button/index.js +1 -1
  5. package/dist/dropdown/index.cjs +1 -1
  6. package/dist/dropdown/index.js +3 -3
  7. package/dist/form/index.cjs +1 -1
  8. package/dist/form/index.js +125 -125
  9. package/dist/index-3615f53c.cjs +1 -0
  10. package/dist/{index-72d69e4e.js → index-f136b5ea.js} +51 -51
  11. package/dist/index.cjs +1 -1
  12. package/dist/index.js +2 -2
  13. package/dist/layout/index.cjs +1 -5
  14. package/dist/layout/index.js +301 -327
  15. package/package.json +1 -1
  16. package/dist/OneBrowserMenu-6fadba06.cjs +0 -1
  17. package/dist/button/OneButton.vue.d.ts +0 -2
  18. package/dist/button/SpinnerIcon.vue.d.ts +0 -2
  19. package/dist/button/util.d.ts +0 -2
  20. package/dist/card/OneCard.vue.d.ts +0 -2
  21. package/dist/card/OneCardBody.vue.d.ts +0 -2
  22. package/dist/card/OneCardFooter.vue.d.ts +0 -2
  23. package/dist/card/OneCardHeader.vue.d.ts +0 -2
  24. package/dist/common/OneAvatar.vue.d.ts +0 -2
  25. package/dist/dropdown/OneBrowserMenu.vue.d.ts +0 -2
  26. package/dist/dropdown/OneBrowserMenuGrid.vue.d.ts +0 -2
  27. package/dist/dropdown/OneDropdown.vue.d.ts +0 -2
  28. package/dist/dropdown/OneDropdownDivider.vue.d.ts +0 -2
  29. package/dist/dropdown/OneDropdownItem.vue.d.ts +0 -2
  30. package/dist/dropdown/OneUserMenu.vue.d.ts +0 -2
  31. package/dist/form/OneForm.vue.d.ts +0 -2
  32. package/dist/form/OneFormFeedback.vue.d.ts +0 -2
  33. package/dist/form/OneFormField.vue.d.ts +0 -2
  34. package/dist/form/OneFormInput.vue.d.ts +0 -2
  35. package/dist/form/OneFormLabel.vue.d.ts +0 -2
  36. package/dist/index-e804f148.cjs +0 -1
  37. package/dist/layout/IconOneb.vue.d.ts +0 -2
  38. package/dist/layout/OneMainLayout.vue.d.ts +0 -2
  39. package/dist/layout/OneSidebar.vue.d.ts +0 -2
  40. package/dist/layout/OneSidebarLink.vue.d.ts +0 -2
@@ -1,9 +1,9 @@
1
- import { defineComponent as b, ref as k, provide as N, computed as w, openBlock as t, createElementBlock as r, renderSlot as I, normalizeProps as P, guardReactiveProps as T, createCommentVNode as g, createVNode as m, Transition as q, withCtx as A, normalizeClass as C, toDisplayString as f, inject as H, withModifiers as R, createBlock as S, resolveDynamicComponent as W, createElementVNode as e, Fragment as j, renderList as z, mergeProps as U, unref as _, createTextVNode as G, pushScopeId as J, popScopeId as K } from "vue";
2
- import { OneAvatar as y } from "./common/index.js";
3
- import { r as Q } from "./XMarkIcon-51ef0691.js";
4
- import { _ as D } from "./index-72d69e4e.js";
5
- import { _ as X } from "./_plugin-vue_export-helper-dad06003.js";
6
- const Y = {
1
+ import { defineComponent as C, ref as b, provide as E, computed as _, openBlock as t, createElementBlock as r, renderSlot as M, normalizeProps as I, guardReactiveProps as P, createCommentVNode as g, createVNode as v, Transition as N, withCtx as A, normalizeClass as $, toDisplayString as h, inject as q, withModifiers as H, createBlock as S, resolveDynamicComponent as R, createElementVNode as e, Fragment as j, renderList as z, mergeProps as W, unref as k, createTextVNode as U, pushScopeId as G, popScopeId as J } from "vue";
2
+ import { OneAvatar as w } from "./common/index.js";
3
+ import { r as K } from "./XMarkIcon-51ef0691.js";
4
+ import { _ as T } from "./index-f136b5ea.js";
5
+ import { _ as Q } from "./_plugin-vue_export-helper-dad06003.js";
6
+ const X = {
7
7
  title: {
8
8
  type: String
9
9
  },
@@ -11,7 +11,7 @@ const Y = {
11
11
  type: String,
12
12
  default: "right"
13
13
  }
14
- }, Z = {
14
+ }, Y = {
15
15
  variant: {
16
16
  type: String,
17
17
  default: "primary"
@@ -22,44 +22,44 @@ const Y = {
22
22
  icon: {
23
23
  type: [Function, Object]
24
24
  }
25
- }, ee = ["data-opened"], te = {
25
+ }, Z = ["data-opened"], ee = {
26
26
  key: 0,
27
27
  class: "text-sm text-secondary-content px-3 py-2 text-left"
28
- }, oe = /* @__PURE__ */ b({
28
+ }, te = /* @__PURE__ */ C({
29
29
  __name: "OneDropdown",
30
- props: Y,
30
+ props: X,
31
31
  emits: ["open", "close"],
32
- setup(d, { emit: l }) {
33
- const p = k(!1), c = k(null), u = l, n = d, a = () => {
34
- p.value = !p.value, p.value ? u("open") : u("close");
32
+ setup(a, { emit: c }) {
33
+ const d = a, l = b(!1), f = b(null), o = () => {
34
+ l.value = !l.value, l.value ? c("open") : c("close");
35
35
  };
36
- N("OneDropdown", {
37
- onToggle: a
36
+ E("OneDropdown", {
37
+ onToggle: o
38
38
  });
39
- const o = w(() => {
40
- const s = c.value != null && c.value.offsetLeft < 270;
41
- return c.value != null && c.value.offsetTop + 270 > window.innerHeight ? "up" + (s ? "-right" : "-left") : "down" + (s ? "-right" : "-left");
42
- }), v = w(() => {
39
+ const n = _(() => {
40
+ const s = f.value != null && f.value.offsetLeft < 270;
41
+ return f.value != null && f.value.offsetTop + 270 > window.innerHeight ? "up" + (s ? "-right" : "-left") : "down" + (s ? "-right" : "-left");
42
+ }), u = _(() => {
43
43
  const s = [
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",
46
46
  "overflow-auto max-h-[540px] min-w-[150px] max-w-[540px]"
47
47
  ];
48
- return o.value.startsWith("up") ? s.push("bottom-1 mb-10") : o.value.startsWith("down") && s.push("top-1 mt-10"), n.stick === "right" ? s.push("right-0") : n.stick === "left" && s.push("left-0"), s;
48
+ return n.value.startsWith("up") ? s.push("bottom-1 mb-10") : n.value.startsWith("down") && s.push("top-1 mt-10"), d.stick === "right" ? s.push("right-0") : d.stick === "left" && s.push("left-0"), s;
49
49
  });
50
50
  return (s, i) => (t(), r("div", {
51
51
  class: "relative inline-block",
52
52
  ref_key: "menuRef",
53
- ref: c,
54
- "data-opened": p.value
53
+ ref: f,
54
+ "data-opened": l.value
55
55
  }, [
56
- I(s.$slots, "button", P(T({ onToggle: a, isExpanded: p.value }))),
57
- p.value ? (t(), r("div", {
56
+ M(s.$slots, "button", I(P({ onToggle: o, isExpanded: l.value }))),
57
+ l.value ? (t(), r("div", {
58
58
  key: 0,
59
59
  class: "fixed top-0 left-0 w-screen h-screen z-10",
60
- onClick: a
60
+ onClick: o
61
61
  })) : g("", !0),
62
- m(q, {
62
+ v(N, {
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",
@@ -68,45 +68,45 @@ const Y = {
68
68
  "leave-to-class": "transform opacity-0 scale-95"
69
69
  }, {
70
70
  default: A(() => [
71
- p.value ? (t(), r("div", {
71
+ l.value ? (t(), r("div", {
72
72
  key: 0,
73
- class: C(["menu", v.value]),
73
+ class: $(["menu", u.value]),
74
74
  role: "menu",
75
75
  "aria-orientation": "vertical",
76
76
  tabindex: "-1"
77
77
  }, [
78
- s.title ? (t(), r("div", te, f(s.title), 1)) : g("", !0),
79
- I(s.$slots, "menu", P(T({ onToggle: a })))
78
+ s.title ? (t(), r("div", ee, h(s.title), 1)) : g("", !0),
79
+ M(s.$slots, "menu", I(P({ onToggle: o })))
80
80
  ], 2)) : g("", !0)
81
81
  ]),
82
82
  _: 3
83
83
  })
84
- ], 8, ee));
84
+ ], 8, Z));
85
85
  }
86
- }), V = /* @__PURE__ */ b({
86
+ }), oe = ["onClick"], D = /* @__PURE__ */ C({
87
87
  __name: "OneDropdownItem",
88
- props: Z,
88
+ props: Y,
89
89
  emits: ["click"],
90
- setup(d, { emit: l }) {
91
- const p = l, c = d, u = H("OneDropdown"), n = () => {
92
- u !== void 0 && u.onToggle(), p("click");
93
- }, a = w(() => {
94
- const o = [];
95
- return c.variant === "secondary" ? o.push("text-secondary-content hover:bg-secondary-body-hover") : c.variant === "danger" ? o.push("text-danger-content hover:bg-danger-10") : c.variant === "warning" ? o.push("text-warning-content hover:bg-warning-10") : c.variant === "info" ? o.push("text-info-content hover:bg-info-10") : o.push("hover:bg-secondary-body-hover"), o;
90
+ setup(a, { emit: c }) {
91
+ const d = a, l = q("OneDropdown"), f = () => {
92
+ l !== void 0 && l.onToggle(), c("click");
93
+ }, o = _(() => {
94
+ const n = [];
95
+ return d.variant === "secondary" ? n.push("text-secondary-content hover:bg-secondary-body-hover") : d.variant === "danger" ? n.push("text-danger-content hover:bg-danger-10") : d.variant === "warning" ? n.push("text-warning-content hover:bg-warning-10") : d.variant === "info" ? n.push("text-info-content hover:bg-info-10") : n.push("hover:bg-secondary-body-hover"), n;
96
96
  });
97
- return (o, v) => (t(), r("button", {
98
- class: C(["px-3 py-1.5 flex items-center space-x-3 w-full whitespace-nowrap", a.value]),
99
- onClick: R(n, ["prevent"])
97
+ return (n, u) => (t(), r("button", {
98
+ class: $(["px-3 py-1.5 flex items-center space-x-3 w-full whitespace-nowrap", o.value]),
99
+ onClick: H(f, ["prevent"])
100
100
  }, [
101
- o.icon ? (t(), S(W(o.icon), {
101
+ n.icon ? (t(), S(R(n.icon), {
102
102
  key: 0,
103
103
  class: "w-4 h-4"
104
104
  })) : g("", !0),
105
- e("span", null, f(o.label), 1)
106
- ], 2));
105
+ e("span", null, h(n.label), 1)
106
+ ], 10, oe));
107
107
  }
108
108
  });
109
- function ne(d, l) {
109
+ function ne(a, c) {
110
110
  return t(), r("svg", {
111
111
  xmlns: "http://www.w3.org/2000/svg",
112
112
  fill: "none",
@@ -189,80 +189,80 @@ const se = {
189
189
  }, ie = ["onClick"], le = { class: "flex flex-col items-center pt-5 pb-2 h-full" }, ce = { class: "flex flex-col px-10 py-1 mt-2 text-center" }, ae = { class: "self-center text-base font-medium tracking-wide text-black" }, de = { class: "mt-1 text-xs leading-5 text-blue-500 font-light" }, ue = { class: "text-left w-full mt-5 px-3" }, pe = /* @__PURE__ */ e("div", {
190
190
  class: "space-y-2 text-center",
191
191
  style: { width: "240px" }
192
- }, null, -1), he = { class: "-mb-2 flex-shrink-0 mt-auto pt-6 text-[8px] leading-3 text-gray-400" }, Ke = /* @__PURE__ */ b({
192
+ }, null, -1), he = { class: "-mb-2 flex-shrink-0 mt-auto pt-6 text-[8px] leading-3 text-gray-400" }, Ke = /* @__PURE__ */ C({
193
193
  __name: "OneUserMenu",
194
194
  props: se,
195
- setup(d) {
196
- const l = d, p = w(() => {
197
- var n;
198
- return (n = l.menu) == null ? void 0 : n.map((a) => {
199
- let o = { label: a.label };
200
- a.icon != null && (o = { ...o, icon: a.icon });
201
- const v = typeof a.click == "function" ? a.click : () => {
195
+ setup(a) {
196
+ const c = a, d = _(() => {
197
+ var o;
198
+ return (o = c.menu) == null ? void 0 : o.map((n) => {
199
+ let u = { label: n.label };
200
+ n.icon != null && (u = { ...u, icon: n.icon });
201
+ const s = typeof n.click == "function" ? n.click : () => {
202
202
  };
203
203
  return {
204
- key: a.label,
205
- args: o,
206
- click: v
204
+ key: n.label,
205
+ args: u,
206
+ click: s
207
207
  };
208
208
  });
209
- }), c = () => {
210
- typeof l.onAccount == "function" && l.onAccount();
211
- }, u = () => {
212
- typeof l.onLogout == "function" && l.onLogout();
209
+ }), l = () => {
210
+ typeof c.onAccount == "function" && c.onAccount();
211
+ }, f = () => {
212
+ typeof c.onLogout == "function" && c.onLogout();
213
213
  };
214
- return (n, a) => (t(), S(oe, { stick: "right" }, {
215
- button: A(({ onToggle: o, isExpanded: v }) => {
216
- var s, i;
214
+ return (o, n) => (t(), S(te, { stick: "right" }, {
215
+ button: A(({ onToggle: u, isExpanded: s }) => {
216
+ var i, m;
217
217
  return [
218
218
  e("button", {
219
- onClick: o,
220
- class: C(["p-1 rounded-full hover:bg-secondary-10", [v ? "bg-secondary-25" : ""]])
219
+ onClick: u,
220
+ class: $(["p-1 rounded-full hover:bg-secondary-10", [s ? "bg-secondary-25" : ""]])
221
221
  }, [
222
- m(y, {
223
- text: ((s = n.user) == null ? void 0 : s.name) || "",
224
- size: n.iconSize,
225
- src: (i = n.user) == null ? void 0 : i.photo_url,
222
+ v(w, {
223
+ text: ((i = o.user) == null ? void 0 : i.name) || "",
224
+ size: o.iconSize,
225
+ src: (m = o.user) == null ? void 0 : m.photo_url,
226
226
  rounded: !0
227
227
  }, null, 8, ["text", "size", "src"])
228
228
  ], 10, ie)
229
229
  ];
230
230
  }),
231
231
  menu: A(() => {
232
- var o, v, s, i, $;
232
+ var u, s, i, m, y;
233
233
  return [
234
234
  e("div", le, [
235
- m(y, {
236
- text: ((o = n.user) == null ? void 0 : o.name) || "",
235
+ v(w, {
236
+ text: ((u = o.user) == null ? void 0 : u.name) || "",
237
237
  size: 80,
238
- src: (v = n.user) == null ? void 0 : v.photo_url,
238
+ src: (s = o.user) == null ? void 0 : s.photo_url,
239
239
  rounded: !0,
240
240
  class: "mx-auto"
241
241
  }, null, 8, ["text", "src"]),
242
242
  e("div", ce, [
243
- e("div", ae, f((s = n.user) == null ? void 0 : s.name), 1),
244
- e("div", de, f((i = n.user) == null ? void 0 : i.email), 1)
243
+ e("div", ae, h((i = o.user) == null ? void 0 : i.name), 1),
244
+ e("div", de, h((m = o.user) == null ? void 0 : m.email), 1)
245
245
  ]),
246
- typeof l.onAccount == "function" ? (t(), r("a", {
246
+ typeof c.onAccount == "function" ? (t(), r("a", {
247
247
  key: 0,
248
- onClick: c,
248
+ onClick: l,
249
249
  class: "cursor-pointer justify-center px-8 py-3 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
- }, f(n.accountLabel), 1)) : g("", !0),
250
+ }, h(o.accountLabel), 1)) : g("", !0),
251
251
  e("div", ue, [
252
- (t(!0), r(j, null, z(p.value, (x) => (t(), S(V, U({
252
+ (t(!0), r(j, null, z(d.value, (x) => (t(), S(D, W({
253
253
  key: x.key
254
254
  }, x.args, {
255
255
  onClick: x.click
256
256
  }), null, 16, ["onClick"]))), 128)),
257
- m(V, {
258
- icon: _(ne),
259
- label: n.logoutLabel,
257
+ v(D, {
258
+ icon: k(ne),
259
+ label: o.logoutLabel,
260
260
  class: "rounded py-3",
261
- onClick: u
261
+ onClick: f
262
262
  }, null, 8, ["icon", "label"])
263
263
  ]),
264
264
  pe,
265
- e("div", he, f(($ = n.app) == null ? void 0 : $.version), 1)
265
+ e("div", he, h((y = o.app) == null ? void 0 : y.version), 1)
266
266
  ])
267
267
  ];
268
268
  }),
@@ -270,7 +270,7 @@ const se = {
270
270
  }));
271
271
  }
272
272
  });
273
- function fe(d, l) {
273
+ function fe(a, c) {
274
274
  return t(), r("svg", {
275
275
  xmlns: "http://www.w3.org/2000/svg",
276
276
  fill: "none",
@@ -362,7 +362,7 @@ function fe(d, l) {
362
362
  })
363
363
  ]);
364
364
  }
365
- function ve(d, l) {
365
+ function ve(a, c) {
366
366
  return t(), r("svg", {
367
367
  xmlns: "http://www.w3.org/2000/svg",
368
368
  fill: "none",
@@ -378,7 +378,7 @@ function ve(d, l) {
378
378
  })
379
379
  ]);
380
380
  }
381
- function me(d, l) {
381
+ function ge(a, c) {
382
382
  return t(), r("svg", {
383
383
  xmlns: "http://www.w3.org/2000/svg",
384
384
  fill: "none",
@@ -394,7 +394,7 @@ function me(d, l) {
394
394
  })
395
395
  ]);
396
396
  }
397
- function ge(d, l) {
397
+ function me(a, c) {
398
398
  return t(), r("svg", {
399
399
  xmlns: "http://www.w3.org/2000/svg",
400
400
  fill: "none",
@@ -410,7 +410,7 @@ function ge(d, l) {
410
410
  })
411
411
  ]);
412
412
  }
413
- const xe = (d) => (J("data-v-343cd4ac"), d = d(), K(), d), ye = ["data-opened"], we = {
413
+ const xe = (a) => (G("data-v-343cd4ac"), a = a(), J(), a), ye = ["data-opened"], we = {
414
414
  key: 1,
415
415
  class: "absolute top-0 right-0 h-screen overflow-y-auto max-w-96 bg-white px-3 z-10"
416
416
  }, _e = { class: "flex justify-between items-center pt-3 mb-3" }, ke = { class: "font-semibold text-xl px-3" }, be = { class: "grid" }, Ce = { class: "rounded-lg m-3 border" }, $e = {
@@ -422,118 +422,118 @@ const xe = (d) => (J("data-v-343cd4ac"), d = d(), K(), d), ye = ["data-opened"],
422
422
  }, Pe = ["onClick"], Te = { class: "flex" }, De = { class: "border border-secondary-stroke rounded-2xl w-14 h-14 md:w-14 md:h-14 flex items-center justify-center" }, Ve = { class: "pl-2" }, Ee = { class: "text-sm mt-1 font-semibold" }, Ne = { class: "text9 mt-1" }, qe = {
423
423
  key: 1,
424
424
  class: "mt-2 w-full bg-[#FAFAFA] hover:bg-secondary-10 p-2 rounded-lg mb-5 text-xs hidden"
425
- }, He = /* @__PURE__ */ b({
425
+ }, He = /* @__PURE__ */ C({
426
426
  __name: "OneBrowserMenu",
427
427
  props: re,
428
428
  emits: ["open", "close"],
429
- setup(d, { emit: l }) {
430
- const p = l, c = d, u = k(!1), n = () => {
431
- u.value = !u.value, u.value ? p("open") : p("close");
432
- }, a = k(!1), o = w(() => a.value ? me : ve), v = () => {
433
- typeof c.onChange == "function" && c.onChange();
429
+ setup(a, { emit: c }) {
430
+ const d = a, l = b(!1), f = () => {
431
+ l.value = !l.value, l.value ? c("open") : c("close");
432
+ }, o = b(!1), n = _(() => o.value ? ge : ve), u = () => {
433
+ typeof d.onChange == "function" && d.onChange();
434
434
  }, s = (i) => {
435
- typeof c.onApp == "function" && c.onApp(i);
435
+ typeof d.onApp == "function" && d.onApp(i);
436
436
  };
437
- return (i, $) => {
438
- var x, L, O, F, B, M;
439
- return t(), r("div", { "data-opened": u.value }, [
437
+ return (i, m) => {
438
+ var y, x, L, O, F, B;
439
+ return t(), r("div", { "data-opened": l.value }, [
440
440
  e("button", {
441
- onClick: n,
442
- class: C(["p-1 rounded-md hover:bg-secondary-10", { "bg-secondary-10": u.value }])
441
+ onClick: f,
442
+ class: $(["p-1 rounded-md hover:bg-secondary-10", { "bg-secondary-10": l.value }])
443
443
  }, [
444
- m(_(fe), { class: "text-secondary-base w-8" })
444
+ v(k(fe), { class: "text-secondary-base w-8" })
445
445
  ], 2),
446
- u.value ? (t(), r("div", {
446
+ l.value ? (t(), r("div", {
447
447
  key: 0,
448
448
  class: "fixed top-0 left-0 w-screen h-screen z-10 bg-black/10",
449
- onClick: n
449
+ onClick: f
450
450
  })) : g("", !0),
451
- u.value ? (t(), r("div", we, [
451
+ l.value ? (t(), r("div", we, [
452
452
  e("div", _e, [
453
- e("div", ke, f((x = i.workspace) == null ? void 0 : x.title), 1),
454
- m(_(Q), {
453
+ e("div", ke, h((y = i.workspace) == null ? void 0 : y.title), 1),
454
+ v(k(K), {
455
455
  class: "w-6 cursor-pointer",
456
- onClick: n
456
+ onClick: f
457
457
  })
458
458
  ]),
459
459
  e("div", be, [
460
460
  e("div", Ce, [
461
461
  e("div", $e, [
462
462
  e("div", Ae, [
463
- m(y, {
464
- text: ((L = i.workspace) == null ? void 0 : L.name) || "",
465
- src: (O = i.workspace) == null ? void 0 : O.photo_url,
463
+ v(w, {
464
+ text: ((x = i.workspace) == null ? void 0 : x.name) || "",
465
+ src: (L = i.workspace) == null ? void 0 : L.photo_url,
466
466
  size: 44,
467
467
  rounded: !1,
468
468
  class: "mx-auto"
469
469
  }, null, 8, ["text", "src"])
470
470
  ]),
471
471
  e("div", Se, [
472
- G(f((F = i.workspace) == null ? void 0 : F.name) + " ", 1),
472
+ U(h((O = i.workspace) == null ? void 0 : O.name) + " ", 1),
473
473
  e("div", je, [
474
- m(D, {
474
+ v(T, {
475
475
  variant: "touch",
476
- icon: o.value,
477
- onClick: v
476
+ icon: n.value,
477
+ onClick: u
478
478
  }, null, 8, ["icon"])
479
479
  ])
480
480
  ])
481
481
  ]),
482
- a.value ? (t(), r("div", ze, [
483
- (t(!0), r(j, null, z(i.workspaces, (h) => (t(), r("div", {
484
- key: h.name,
482
+ o.value ? (t(), r("div", ze, [
483
+ (t(!0), r(j, null, z(i.workspaces, (p) => (t(), r("div", {
484
+ key: p.name,
485
485
  class: "flex items-center space-x-3 border-t px-5 py-2 hover:bg-secondary-10"
486
486
  }, [
487
- m(y, {
488
- text: h.name,
489
- src: h.photo_url,
487
+ v(w, {
488
+ text: p.name,
489
+ src: p.photo_url,
490
490
  size: 30,
491
491
  rounded: !1
492
492
  }, null, 8, ["text", "src"]),
493
- e("span", Le, f(h.name), 1)
493
+ e("span", Le, h(p.name), 1)
494
494
  ]))), 128))
495
495
  ])) : g("", !0),
496
496
  Oe,
497
497
  e("div", {
498
- onClick: v,
498
+ onClick: u,
499
499
  class: "text-center py-2 cursor-pointer",
500
500
  style: { "font-size": "10px" }
501
- }, f((B = i.workspace) == null ? void 0 : B.changeLabel), 1)
501
+ }, h((F = i.workspace) == null ? void 0 : F.changeLabel), 1)
502
502
  ])
503
503
  ]),
504
504
  e("div", Fe, [
505
- e("div", Be, f((M = i.workspace) == null ? void 0 : M.appsLabel), 1),
505
+ e("div", Be, h((B = i.workspace) == null ? void 0 : B.appsLabel), 1),
506
506
  e("div", Me, [
507
507
  i.apps && i.apps.length ? (t(), r("div", Ie, [
508
- (t(!0), r(j, null, z(i.apps, (h) => (t(), r("div", {
509
- key: h.id,
510
- onClick: (E) => s(h),
508
+ (t(!0), r(j, null, z(i.apps, (p) => (t(), r("div", {
509
+ key: p.id,
510
+ onClick: (V) => s(p),
511
511
  class: "flex justify-between items-center rounded-lg hover:bg-secondary-10 p-2 bg-[#FAFAFA] cursor-pointer"
512
512
  }, [
513
513
  e("div", Te, [
514
514
  e("div", De, [
515
- m(y, {
516
- text: h.name,
517
- src: h.photo_url,
515
+ v(w, {
516
+ text: p.name,
517
+ src: p.photo_url,
518
518
  size: 44,
519
519
  rounded: !1
520
520
  }, null, 8, ["text", "src"])
521
521
  ]),
522
522
  e("div", Ve, [
523
- e("p", Ee, f(h.name), 1),
524
- e("p", Ne, f(h == null ? void 0 : h.short), 1)
523
+ e("p", Ee, h(p.name), 1),
524
+ e("p", Ne, h(p == null ? void 0 : p.short), 1)
525
525
  ])
526
526
  ]),
527
527
  e("div", null, [
528
- m(D, {
528
+ v(T, {
529
529
  variant: "touch",
530
- icon: _(ge),
531
- onClick: (E) => s(h)
530
+ icon: k(me),
531
+ onClick: (V) => s(p)
532
532
  }, null, 8, ["icon", "onClick"])
533
533
  ])
534
534
  ], 8, Pe))), 128))
535
535
  ])) : g("", !0),
536
- i.apps && i.apps.length ? (t(), r("button", qe, f("Дивитися всі"))) : g("", !0)
536
+ i.apps && i.apps.length ? (t(), r("button", qe, h("Дивитися всі"))) : g("", !0)
537
537
  ])
538
538
  ])
539
539
  ])) : g("", !0)
@@ -541,13 +541,13 @@ const xe = (d) => (J("data-v-343cd4ac"), d = d(), K(), d), ye = ["data-opened"],
541
541
  };
542
542
  }
543
543
  });
544
- const Qe = /* @__PURE__ */ X(He, [["__scopeId", "data-v-343cd4ac"]]);
544
+ const Qe = /* @__PURE__ */ Q(He, [["__scopeId", "data-v-343cd4ac"]]);
545
545
  export {
546
546
  Qe as O,
547
- oe as _,
548
- V as a,
547
+ te as _,
548
+ D as a,
549
549
  Ke as b,
550
550
  re as c,
551
551
  fe as d,
552
- ge as r
552
+ me as r
553
553
  };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),f=require("./common/index.cjs"),C=require("./XMarkIcon-f94baa4c.cjs"),x=require("./index-3615f53c.cjs"),B=require("./_plugin-vue_export-helper-f246444f.cjs"),S={title:{type:String},stick:{type:String,default:"right"}},A={variant:{type:String,default:"primary"},label:{type:String},icon:{type:[Function,Object]}},$=["data-opened"],z={key:0,class:"text-sm text-secondary-content px-3 py-2 text-left"},_=e.defineComponent({__name:"OneDropdown",props:S,emits:["open","close"],setup(c,{emit:l}){const a=c,s=e.ref(!1),u=e.ref(null),t=()=>{s.value=!s.value,s.value?l("open"):l("close")};e.provide("OneDropdown",{onToggle:t});const o=e.computed(()=>{const n=u.value!=null&&u.value.offsetLeft<270;return u.value!=null&&u.value.offsetTop+270>window.innerHeight?"up"+(n?"-right":"-left"):"down"+(n?"-right":"-left")}),i=e.computed(()=>{const n=["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 o.value.startsWith("up")?n.push("bottom-1 mb-10"):o.value.startsWith("down")&&n.push("top-1 mt-10"),a.stick==="right"?n.push("right-0"):a.stick==="left"&&n.push("left-0"),n});return(n,r)=>(e.openBlock(),e.createElementBlock("div",{class:"relative inline-block",ref_key:"menuRef",ref:u,"data-opened":s.value},[e.renderSlot(n.$slots,"button",e.normalizeProps(e.guardReactiveProps({onToggle:t,isExpanded:s.value}))),s.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"fixed top-0 left-0 w-screen h-screen z-10",onClick:t})):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(()=>[s.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["menu",i.value]),role:"menu","aria-orientation":"vertical",tabindex:"-1"},[n.title?(e.openBlock(),e.createElementBlock("div",z,e.toDisplayString(n.title),1)):e.createCommentVNode("",!0),e.renderSlot(n.$slots,"menu",e.normalizeProps(e.guardReactiveProps({onToggle:t})))],2)):e.createCommentVNode("",!0)]),_:3})],8,$))}}),D=["onClick"],k=e.defineComponent({__name:"OneDropdownItem",props:A,emits:["click"],setup(c,{emit:l}){const a=c,s=e.inject("OneDropdown"),u=()=>{s!==void 0&&s.onToggle(),l("click")},t=e.computed(()=>{const o=[];return a.variant==="secondary"?o.push("text-secondary-content hover:bg-secondary-body-hover"):a.variant==="danger"?o.push("text-danger-content hover:bg-danger-10"):a.variant==="warning"?o.push("text-warning-content hover:bg-warning-10"):a.variant==="info"?o.push("text-info-content hover:bg-info-10"):o.push("hover:bg-secondary-body-hover"),o});return(o,i)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["px-3 py-1.5 flex items-center space-x-3 w-full whitespace-nowrap",t.value]),onClick:e.withModifiers(u,["prevent"])},[o.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.icon),{key:0,class:"w-4 h-4"})):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(o.label),1)],10,D))}});function O(c,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 L={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}},b={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"],F={class:"flex flex-col items-center pt-5 pb-2 h-full"},M={class:"flex flex-col px-10 py-1 mt-2 text-center"},P={class:"self-center text-base font-medium tracking-wide text-black"},I={class:"mt-1 text-xs leading-5 text-blue-500 font-light"},q={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"},R=e.defineComponent({__name:"OneUserMenu",props:L,setup(c){const l=c,a=e.computed(()=>{var t;return(t=l.menu)==null?void 0:t.map(o=>{let i={label:o.label};o.icon!=null&&(i={...i,icon:o.icon});const n=typeof o.click=="function"?o.click:()=>{};return{key:o.label,args:i,click:n}})}),s=()=>{typeof l.onAccount=="function"&&l.onAccount()},u=()=>{typeof l.onLogout=="function"&&l.onLogout()};return(t,o)=>(e.openBlock(),e.createBlock(_,{stick:"right"},{button:e.withCtx(({onToggle:i,isExpanded:n})=>{var r,p;return[e.createElementVNode("button",{onClick:i,class:e.normalizeClass(["p-1 rounded-full hover:bg-secondary-10",[n?"bg-secondary-25":""]])},[e.createVNode(f.OneAvatar,{text:((r=t.user)==null?void 0:r.name)||"",size:t.iconSize,src:(p=t.user)==null?void 0:p.photo_url,rounded:!0},null,8,["text","size","src"])],10,j)]}),menu:e.withCtx(()=>{var i,n,r,p,h;return[e.createElementVNode("div",F,[e.createVNode(f.OneAvatar,{text:((i=t.user)==null?void 0:i.name)||"",size:80,src:(n=t.user)==null?void 0:n.photo_url,rounded:!0,class:"mx-auto"},null,8,["text","src"]),e.createElementVNode("div",M,[e.createElementVNode("div",P,e.toDisplayString((r=t.user)==null?void 0:r.name),1),e.createElementVNode("div",I,e.toDisplayString((p=t.user)==null?void 0:p.email),1)]),typeof l.onAccount=="function"?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:s,class:"cursor-pointer justify-center px-8 py-3 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(t.accountLabel),1)):e.createCommentVNode("",!0),e.createElementVNode("div",q,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,m=>(e.openBlock(),e.createBlock(k,e.mergeProps({key:m.key},m.args,{onClick:m.click}),null,16,["onClick"]))),128)),e.createVNode(k,{icon:e.unref(O),label:t.logoutLabel,class:"rounded py-3",onClick:u},null,8,["icon","label"])]),T,e.createElementVNode("div",H,e.toDisplayString((h=t.app)==null?void 0:h.version),1)])]}),_:1}))}});function E(c,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 W(c,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 U(c,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(c,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 X=c=>(e.pushScopeId("data-v-343cd4ac"),c=c(),e.popScopeId(),c),G=["data-opened"],J={key:1,class:"absolute top-0 right-0 h-screen overflow-y-auto max-w-96 bg-white px-3 z-10"},K={class:"flex justify-between items-center pt-3 mb-3"},Q={class:"font-semibold text-xl px-3"},Y={class:"grid"},Z={class:"rounded-lg m-3 border"},ee={class:"space-x-2 flex items-center px-3 py-2",style:{width:"300px"}},te={class:"flex justify-between relative"},oe={class:"flex items-center justify-between w-full text-left text-sm font-semibold"},ne={clsss:"flex justify-end absolute right-0"},re={key:0},se={class:"text-xs font-semibold"},le=X(()=>e.createElementVNode("hr",null,null,-1)),ce={class:"px-3 py-2"},ae={class:"text-secondary-content text-left pb-1 text-xs uppercase"},ie={class:"overflow-auto max-h-full"},de={key:0,class:"space-y-2"},ue=["onClick"],pe={class:"flex"},me={class:"border border-secondary-stroke rounded-2xl w-14 h-14 md:w-14 md:h-14 flex items-center justify-center"},he={class:"pl-2"},fe={class:"text-sm mt-1 font-semibold"},ke={class:"text9 mt-1"},ge={key:1,class:"mt-2 w-full bg-[#FAFAFA] hover:bg-secondary-10 p-2 rounded-lg mb-5 text-xs hidden"},ve=e.defineComponent({__name:"OneBrowserMenu",props:b,emits:["open","close"],setup(c,{emit:l}){const a=c,s=e.ref(!1),u=()=>{s.value=!s.value,s.value?l("open"):l("close")},t=e.ref(!1),o=e.computed(()=>t.value?U:W),i=()=>{typeof a.onChange=="function"&&a.onChange()},n=r=>{typeof a.onApp=="function"&&a.onApp(r)};return(r,p)=>{var h,m,g,v,y,w;return e.openBlock(),e.createElementBlock("div",{"data-opened":s.value},[e.createElementVNode("button",{onClick:u,class:e.normalizeClass(["p-1 rounded-md hover:bg-secondary-10",{"bg-secondary-10":s.value}])},[e.createVNode(e.unref(E),{class:"text-secondary-base w-8"})],2),s.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"fixed top-0 left-0 w-screen h-screen z-10 bg-black/10",onClick:u})):e.createCommentVNode("",!0),s.value?(e.openBlock(),e.createElementBlock("div",J,[e.createElementVNode("div",K,[e.createElementVNode("div",Q,e.toDisplayString((h=r.workspace)==null?void 0:h.title),1),e.createVNode(e.unref(C.render),{class:"w-6 cursor-pointer",onClick:u})]),e.createElementVNode("div",Y,[e.createElementVNode("div",Z,[e.createElementVNode("div",ee,[e.createElementVNode("div",te,[e.createVNode(f.OneAvatar,{text:((m=r.workspace)==null?void 0:m.name)||"",src:(g=r.workspace)==null?void 0:g.photo_url,size:44,rounded:!1,class:"mx-auto"},null,8,["text","src"])]),e.createElementVNode("div",oe,[e.createTextVNode(e.toDisplayString((v=r.workspace)==null?void 0:v.name)+" ",1),e.createElementVNode("div",ne,[e.createVNode(x._sfc_main,{variant:"touch",icon:o.value,onClick:i},null,8,["icon"])])])]),t.value?(e.openBlock(),e.createElementBlock("div",re,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.workspaces,d=>(e.openBlock(),e.createElementBlock("div",{key:d.name,class:"flex items-center space-x-3 border-t px-5 py-2 hover:bg-secondary-10"},[e.createVNode(f.OneAvatar,{text:d.name,src:d.photo_url,size:30,rounded:!1},null,8,["text","src"]),e.createElementVNode("span",se,e.toDisplayString(d.name),1)]))),128))])):e.createCommentVNode("",!0),le,e.createElementVNode("div",{onClick:i,class:"text-center py-2 cursor-pointer",style:{"font-size":"10px"}},e.toDisplayString((y=r.workspace)==null?void 0:y.changeLabel),1)])]),e.createElementVNode("div",ce,[e.createElementVNode("div",ae,e.toDisplayString((w=r.workspace)==null?void 0:w.appsLabel),1),e.createElementVNode("div",ie,[r.apps&&r.apps.length?(e.openBlock(),e.createElementBlock("div",de,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.apps,d=>(e.openBlock(),e.createElementBlock("div",{key:d.id,onClick:N=>n(d),class:"flex justify-between items-center rounded-lg hover:bg-secondary-10 p-2 bg-[#FAFAFA] cursor-pointer"},[e.createElementVNode("div",pe,[e.createElementVNode("div",me,[e.createVNode(f.OneAvatar,{text:d.name,src:d.photo_url,size:44,rounded:!1},null,8,["text","src"])]),e.createElementVNode("div",he,[e.createElementVNode("p",fe,e.toDisplayString(d.name),1),e.createElementVNode("p",ke,e.toDisplayString(d==null?void 0:d.short),1)])]),e.createElementVNode("div",null,[e.createVNode(x._sfc_main,{variant:"touch",icon:e.unref(V),onClick:N=>n(d)},null,8,["icon","onClick"])])],8,ue))),128))])):e.createCommentVNode("",!0),r.apps&&r.apps.length?(e.openBlock(),e.createElementBlock("button",ge,e.toDisplayString("Дивитися всі"))):e.createCommentVNode("",!0)])])])):e.createCommentVNode("",!0)],8,G)}}});const ye=B._export_sfc(ve,[["__scopeId","data-v-343cd4ac"]]);exports.OneBrowserMenu=ye;exports._sfc_main=_;exports._sfc_main$1=k;exports._sfc_main$2=R;exports.browserMenuProps=b;exports.render=V;exports.render$1=E;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-e804f148.cjs");require("vue");require("../_plugin-vue_export-helper-f246444f.cjs");exports.OneButton=e._sfc_main;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-3615f53c.cjs");require("vue");require("../_plugin-vue_export-helper-f246444f.cjs");exports.OneButton=e._sfc_main;
@@ -1,4 +1,4 @@
1
- import { _ as p } from "../index-72d69e4e.js";
1
+ import { _ as p } from "../index-f136b5ea.js";
2
2
  import "vue";
3
3
  import "../_plugin-vue_export-helper-dad06003.js";
4
4
  export {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../OneBrowserMenu-6fadba06.cjs"),e=require("vue"),f=require("../_plugin-vue_export-helper-f246444f.cjs"),p=require("../common/index.cjs");require("../XMarkIcon-f94baa4c.cjs");require("../index-e804f148.cjs");const g={},v={class:"border-t border-secondary-stroke my-1"};function k(a,o){return e.openBlock(),e.createElementBlock("div",v)}const x=f._export_sfc(g,[["render",k]]),b=["onClick"],V={class:"grid"},w={class:"font-semibold px-3"},E={class:"rounded-lg m-3 border"},N={class:"space-x-2 flex items-center px-3 py-2",style:{width:"300px"}},B={class:"flex-shrink-0"},A={class:"w-full text-left"},C={class:"flex-shrink-0"},D=e.createElementVNode("hr",null,null,-1),O=e.createElementVNode("div",{class:"text-center py-2",style:{"font-size":"10px"}},"Керувати робочими просторами",-1),S={class:"px-3 py-2"},M={class:"text-secondary-content text-left pb-1 text-sm uppercase"},$={key:0,class:"space-y-2"},z=["onClick"],F={class:"pl-2"},q={class:"text-sm mt-1"},G={class:"text-xs mt-1"},u=3,L=e.defineComponent({__name:"OneBrowserMenuGrid",props:n.browserMenuProps,setup(a){const o=a,m=()=>{typeof o.onChange=="function"&&o.onChange()},r=e.ref(!1),_=e.computed(()=>o.apps?r.value?o.apps:o.apps.slice(0,u):[]),h=()=>{r.value=!r.value},y=t=>{typeof o.onApp=="function"&&o.onApp(t)};return(t,P)=>(e.openBlock(),e.createBlock(n._sfc_main,{stick:"right"},{button:e.withCtx(({onToggle:c,isExpanded:l})=>[e.createElementVNode("button",{onClick:c,class:e.normalizeClass(["p-1 rounded-md hover:bg-secondary-10",[l?"bg-secondary-25":""]])},[e.createVNode(e.unref(n.render$1),{class:"text-secondary-base",style:e.normalizeStyle(`width: ${t.iconSize}px; height: ${t.iconSize}px`)},null,8,["style"])],10,b)]),menu:e.withCtx(()=>{var c,l,i,d;return[e.createElementVNode("div",V,[e.createElementVNode("div",w,e.toDisplayString((c=t.workspace)==null?void 0:c.title),1),e.createElementVNode("div",E,[e.createElementVNode("div",N,[e.createElementVNode("div",B,[e.createVNode(p.OneAvatar,{text:((l=t.workspace)==null?void 0:l.name)||"",src:(i=t.workspace)==null?void 0:i.photo_url,size:44,rounded:!1,class:"mx-auto"},null,8,["text","src"])]),e.createElementVNode("div",A,e.toDisplayString((d=t.workspace)==null?void 0:d.name),1),e.createElementVNode("div",C,[e.createElementVNode("button",{class:"text-sm border border-secondary-stroke rounded px-2 py-0.5 text-secondary-content hover:text-primary-content",onClick:m},e.toDisplayString(t.changeLabel),1)])]),D,O])]),e.createElementVNode("div",S,[e.createElementVNode("div",M,e.toDisplayString(t.appsTitle),1),e.createElementVNode("div",null,[t.apps&&t.apps.length?(e.openBlock(),e.createElementBlock("div",$,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,s=>(e.openBlock(),e.createElementBlock("div",{key:s.id,onClick:T=>y(s),class:"flex items-center rounded-lg hover:bg-secondary-10 border p-2 bg-[#FAFAFA] cursor-pointer"},[e.createVNode(p.OneAvatar,{text:s.name,src:s.photo_url,size:44,rounded:!1},null,8,["text","src"]),e.createElementVNode("div",F,[e.createElementVNode("p",q,e.toDisplayString(s.name),1),e.createElementVNode("p",G,e.toDisplayString(s.short),1)])],8,z))),128))])):e.createCommentVNode("",!0),t.apps&&t.apps.length>u?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:h,class:"mt-2 w-full bg-[#FAFAFA] hover:bg-secondary-10 p-2 rounded-lg mb-5 text-xs"},e.toDisplayString(r.value?"Приховати":"Дивитися всі"),1)):e.createCommentVNode("",!0)])])]}),_:1}))}});exports.OneBrowserMenu=n.OneBrowserMenu;exports.OneDropdown=n._sfc_main;exports.OneDropdownItem=n._sfc_main$1;exports.OneUserMenu=n._sfc_main$2;exports.OneBrowserMenuGrid=L;exports.OneDropdownDivider=x;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../OneBrowserMenu-ecac54bd.cjs"),e=require("vue"),f=require("../_plugin-vue_export-helper-f246444f.cjs"),p=require("../common/index.cjs");require("../XMarkIcon-f94baa4c.cjs");require("../index-3615f53c.cjs");const g={},v={class:"border-t border-secondary-stroke my-1"};function k(a,o){return e.openBlock(),e.createElementBlock("div",v)}const x=f._export_sfc(g,[["render",k]]),b=["onClick"],V={class:"grid"},w={class:"font-semibold px-3"},E={class:"rounded-lg m-3 border"},N={class:"space-x-2 flex items-center px-3 py-2",style:{width:"300px"}},B={class:"flex-shrink-0"},A={class:"w-full text-left"},C={class:"flex-shrink-0"},D=e.createElementVNode("hr",null,null,-1),O=e.createElementVNode("div",{class:"text-center py-2",style:{"font-size":"10px"}},"Керувати робочими просторами",-1),S={class:"px-3 py-2"},M={class:"text-secondary-content text-left pb-1 text-sm uppercase"},$={key:0,class:"space-y-2"},z=["onClick"],F={class:"pl-2"},q={class:"text-sm mt-1"},G={class:"text-xs mt-1"},u=3,L=e.defineComponent({__name:"OneBrowserMenuGrid",props:n.browserMenuProps,setup(a){const o=a,m=()=>{typeof o.onChange=="function"&&o.onChange()},r=e.ref(!1),_=e.computed(()=>o.apps?r.value?o.apps:o.apps.slice(0,u):[]),h=()=>{r.value=!r.value},y=t=>{typeof o.onApp=="function"&&o.onApp(t)};return(t,P)=>(e.openBlock(),e.createBlock(n._sfc_main,{stick:"right"},{button:e.withCtx(({onToggle:c,isExpanded:l})=>[e.createElementVNode("button",{onClick:c,class:e.normalizeClass(["p-1 rounded-md hover:bg-secondary-10",[l?"bg-secondary-25":""]])},[e.createVNode(e.unref(n.render$1),{class:"text-secondary-base",style:e.normalizeStyle(`width: ${t.iconSize}px; height: ${t.iconSize}px`)},null,8,["style"])],10,b)]),menu:e.withCtx(()=>{var c,l,i,d;return[e.createElementVNode("div",V,[e.createElementVNode("div",w,e.toDisplayString((c=t.workspace)==null?void 0:c.title),1),e.createElementVNode("div",E,[e.createElementVNode("div",N,[e.createElementVNode("div",B,[e.createVNode(p.OneAvatar,{text:((l=t.workspace)==null?void 0:l.name)||"",src:(i=t.workspace)==null?void 0:i.photo_url,size:44,rounded:!1,class:"mx-auto"},null,8,["text","src"])]),e.createElementVNode("div",A,e.toDisplayString((d=t.workspace)==null?void 0:d.name),1),e.createElementVNode("div",C,[e.createElementVNode("button",{class:"text-sm border border-secondary-stroke rounded px-2 py-0.5 text-secondary-content hover:text-primary-content",onClick:m},e.toDisplayString(t.changeLabel),1)])]),D,O])]),e.createElementVNode("div",S,[e.createElementVNode("div",M,e.toDisplayString(t.appsTitle),1),e.createElementVNode("div",null,[t.apps&&t.apps.length?(e.openBlock(),e.createElementBlock("div",$,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,s=>(e.openBlock(),e.createElementBlock("div",{key:s.id,onClick:T=>y(s),class:"flex items-center rounded-lg hover:bg-secondary-10 border p-2 bg-[#FAFAFA] cursor-pointer"},[e.createVNode(p.OneAvatar,{text:s.name,src:s.photo_url,size:44,rounded:!1},null,8,["text","src"]),e.createElementVNode("div",F,[e.createElementVNode("p",q,e.toDisplayString(s.name),1),e.createElementVNode("p",G,e.toDisplayString(s.short),1)])],8,z))),128))])):e.createCommentVNode("",!0),t.apps&&t.apps.length>u?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:h,class:"mt-2 w-full bg-[#FAFAFA] hover:bg-secondary-10 p-2 rounded-lg mb-5 text-xs"},e.toDisplayString(r.value?"Приховати":"Дивитися всі"),1)):e.createCommentVNode("",!0)])])]}),_:1}))}});exports.OneBrowserMenu=n.OneBrowserMenu;exports.OneDropdown=n._sfc_main;exports.OneDropdownItem=n._sfc_main$1;exports.OneUserMenu=n._sfc_main$2;exports.OneBrowserMenuGrid=L;exports.OneDropdownDivider=x;
@@ -1,10 +1,10 @@
1
- import { c as k, _ as w, d as A } from "../OneBrowserMenu-70783fed.js";
2
- import { O as me, a as _e, b as he } from "../OneBrowserMenu-70783fed.js";
1
+ import { c as k, _ as w, d as A } from "../OneBrowserMenu-513866aa.js";
2
+ import { O as me, a as _e, b as he } from "../OneBrowserMenu-513866aa.js";
3
3
  import { openBlock as r, createElementBlock as c, defineComponent as C, ref as O, computed as z, createBlock as F, withCtx as _, createElementVNode as e, normalizeClass as $, createVNode as d, unref as B, normalizeStyle as D, toDisplayString as o, Fragment as M, renderList as S, createCommentVNode as h } from "vue";
4
4
  import { _ as V } from "../_plugin-vue_export-helper-dad06003.js";
5
5
  import { OneAvatar as f } from "../common/index.js";
6
6
  import "../XMarkIcon-51ef0691.js";
7
- import "../index-72d69e4e.js";
7
+ import "../index-f136b5ea.js";
8
8
  const N = {}, E = { class: "border-t border-secondary-stroke my-1" };
9
9
  function G(p, t) {
10
10
  return r(), c("div", E);