@oneb/ui-vue 0.3.13 → 0.3.15

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 (75) hide show
  1. package/dist/CheckIcon-09b84cf5.cjs +1 -0
  2. package/dist/CheckIcon-f1c94824.js +20 -0
  3. package/dist/ChevronDownIcon-6805ce6c.js +20 -0
  4. package/dist/ChevronDownIcon-6889ac87.cjs +1 -0
  5. package/dist/{ChevronRightIcon-8df1af46.js → ChevronRightIcon-4549a26b.js} +4 -21
  6. package/dist/ChevronRightIcon-7a2f0c20.cjs +1 -0
  7. package/dist/NoSymbolIcon-5d326416.cjs +1 -0
  8. package/dist/NoSymbolIcon-e58a9aee.js +71 -0
  9. package/dist/OneHelpMenu-66a2d4c2.cjs +1 -0
  10. package/dist/OneHelpMenu-d7a39a69.js +856 -0
  11. package/dist/OneMarkdown.vue_vue_type_style_index_0_lang-0ea8fbf8.cjs +1 -0
  12. package/dist/OneMarkdown.vue_vue_type_style_index_0_lang-4ed993c7.js +1 -0
  13. package/dist/{SpinnerIcon-516264ba.js → SpinnerIcon-74648c98.js} +6 -5
  14. package/dist/SpinnerIcon-ccb6f3fc.cjs +1 -0
  15. package/dist/SpinnerIcon.vue_vue_type_style_index_0_lang-0ea8fbf8.cjs +1 -0
  16. package/dist/SpinnerIcon.vue_vue_type_style_index_0_lang-4ed993c7.js +1 -0
  17. package/dist/button/index.cjs +1 -1
  18. package/dist/button/index.js +17 -16
  19. package/dist/buttonGroup/index.cjs +1 -0
  20. package/dist/buttonGroup/index.js +31 -0
  21. package/dist/checkbox/index.cjs +1 -0
  22. package/dist/checkbox/index.js +124 -0
  23. package/dist/collapse/index.cjs +1 -0
  24. package/dist/collapse/index.js +58 -0
  25. package/dist/common/index.cjs +1 -16
  26. package/dist/common/index.js +14 -3120
  27. package/dist/dataTable/index.cjs +1 -1
  28. package/dist/dataTable/index.js +846 -9
  29. package/dist/dropdown/index.cjs +1 -1
  30. package/dist/dropdown/index.js +792 -17
  31. package/dist/entityPicker/index.cjs +1 -0
  32. package/dist/entityPicker/index.js +584 -0
  33. package/dist/errorsPage/index.cjs +1 -0
  34. package/dist/errorsPage/index.js +63 -0
  35. package/dist/floating-ui.dom-2121a4fd.cjs +1 -0
  36. package/dist/floating-ui.dom-4509432e.js +941 -0
  37. package/dist/i18n/index.cjs +1 -0
  38. package/dist/{useI18n-2103b39e.js → i18n/index.js} +4 -4
  39. package/dist/index.cjs +1 -1
  40. package/dist/index.js +114 -10295
  41. package/dist/indicators/index.cjs +1 -0
  42. package/dist/indicators/index.js +84 -0
  43. package/dist/infobox/index.cjs +1 -0
  44. package/dist/infobox/index.js +111 -0
  45. package/dist/label/index.cjs +1 -0
  46. package/dist/label/index.js +47 -0
  47. package/dist/layout/index.cjs +1 -1
  48. package/dist/layout/index.js +115 -109
  49. package/dist/modal/index.cjs +1 -0
  50. package/dist/modal/index.js +41 -0
  51. package/dist/periodPicker/index.cjs +1 -0
  52. package/dist/periodPicker/index.js +1323 -0
  53. package/dist/radio/index.cjs +1 -0
  54. package/dist/radio/index.js +73 -0
  55. package/dist/skeleton/index.cjs +1 -0
  56. package/dist/skeleton/index.js +46 -0
  57. package/dist/style.css +1 -1
  58. package/dist/switch/index.cjs +1 -0
  59. package/dist/switch/index.js +142 -0
  60. package/dist/toast/index.cjs +1 -0
  61. package/dist/toast/index.js +140 -0
  62. package/dist/tooltip/index.cjs +1 -0
  63. package/dist/tooltip/index.js +20 -0
  64. package/dist/useModal-85f57682.js +177 -0
  65. package/dist/useModal-98810f6a.cjs +1 -0
  66. package/package.json +4 -4
  67. package/dist/ChevronRightIcon-6aa413c4.cjs +0 -1
  68. package/dist/OneHelpMenu-8e315cb3.js +0 -1791
  69. package/dist/OneHelpMenu-95ae3d5a.cjs +0 -1
  70. package/dist/SpinnerIcon-01be39fe.cjs +0 -1
  71. package/dist/index-19e93dfb.js +0 -954
  72. package/dist/index-85e729ab.cjs +0 -1
  73. package/dist/index-8b41a099.cjs +0 -1
  74. package/dist/index-98daa7ed.js +0 -862
  75. package/dist/useI18n-bcf9c640.cjs +0 -1
@@ -1,12 +1,18 @@
1
- import { openBlock as t, createElementBlock as l, createElementVNode as e, defineComponent as c1, computed as M, ref as $, resolveComponent as q1, Fragment as K, normalizeClass as c, toDisplayString as u, createCommentVNode as a, createBlock as w, resolveDynamicComponent as _, unref as k, withModifiers as t1, withCtx as i1, renderList as s1, watch as l1, onMounted as p1, onBeforeUnmount as J1, watchEffect as R1, shallowRef as K1, normalizeStyle as Q1, withDirectives as u1, vShow as d1, createTextVNode as e1, createVNode as T, onUnmounted as G1, renderSlot as n1 } from "vue";
2
- import { r as a1, a as r1, b as X1 } from "../ChevronRightIcon-8df1af46.js";
3
- import { _ as f1 } from "../_plugin-vue_export-helper-dad06003.js";
4
- import { j as Y1, e as ee, O as te, d as se } from "../OneHelpMenu-8e315cb3.js";
1
+ import { openBlock as t, createElementBlock as l, createElementVNode as e, defineComponent as c1, computed as M, ref as $, resolveComponent as q1, Fragment as K, normalizeClass as c, toDisplayString as u, createCommentVNode as a, createBlock as w, resolveDynamicComponent as _, unref as k, withModifiers as t1, withCtx as i1, renderList as s1, watch as l1, onMounted as p1, onBeforeUnmount as J1, watchEffect as R1, shallowRef as K1, normalizeStyle as Q1, withDirectives as u1, vShow as d1, createTextVNode as e1, createVNode as j, onUnmounted as G1, renderSlot as n1 } from "vue";
2
+ import { r as a1, a as X1 } from "../ChevronRightIcon-4549a26b.js";
3
+ import { r as r1 } from "../ChevronDownIcon-6805ce6c.js";
4
+ import { _ as m1 } from "../_plugin-vue_export-helper-dad06003.js";
5
+ import { g as Y1, c as ee, O as te, b as se } from "../OneHelpMenu-d7a39a69.js";
5
6
  import { OneButton as U1 } from "../button/index.js";
6
7
  import { r as le } from "../XMarkIcon-51ef0691.js";
7
- import { S as oe } from "../SpinnerIcon-516264ba.js";
8
+ import { S as oe } from "../SpinnerIcon-74648c98.js";
8
9
  import { OneMarkdown as ne } from "../common/index.js";
10
+ import "../OneMarkdown.vue_vue_type_style_index_0_lang-4ed993c7.js";
11
+ import "../floating-ui.dom-4509432e.js";
12
+ import "@floating-ui/vue";
9
13
  import "../OneAvatar.vue_vue_type_script_setup_true_lang-08ab80dd.js";
14
+ import "../SpinnerIcon.vue_vue_type_style_index_0_lang-4ed993c7.js";
15
+ import "vue-markdown-render";
10
16
  function ae(v, C) {
11
17
  return t(), l("svg", {
12
18
  xmlns: "http://www.w3.org/2000/svg",
@@ -175,7 +181,7 @@ const Z1 = {
175
181
  }, ue = ["href"], de = { class: "flex flex-nowrap items-center w-full h-[24px]" }, ce = {
176
182
  key: 0,
177
183
  class: "w-[44px] flex-shrink-0"
178
- }, fe = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, he = { class: "py-[8px] pl-0 pr-0" }, me = { class: "flex flex-nowrap items-center w-full h-[24px]" }, ve = {
184
+ }, me = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, fe = { class: "py-[8px] pl-0 pr-0" }, he = { class: "flex flex-nowrap items-center w-full h-[24px]" }, ve = {
179
185
  key: 0,
180
186
  class: "w-[44px] flex-shrink-0"
181
187
  }, Ce = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, we = { class: "py-[8px] pl-0 pr-0" }, xe = {
@@ -201,9 +207,9 @@ const Z1 = {
201
207
  props: ie,
202
208
  emits: ["update-collapsed"],
203
209
  setup(v, { emit: C }) {
204
- const r = v, d = C, g = M(() => r.href ?? !1), b = M(() => m(r)), m = (o) => o.route ? o.route : o.routeName ? { name: o.routeName } : null, L = $(r.open), V = (o, y = r) => {
205
- var f;
206
- return (y == null ? void 0 : y.menuGroup) && (o == null ? void 0 : o.meta) && ((f = o.meta) == null ? void 0 : f.menuGroup) && o.meta.menuGroup && o.meta.menuGroup === y.menuGroup;
210
+ const r = v, d = C, g = M(() => r.href ?? !1), b = M(() => h(r)), h = (o) => o.route ? o.route : o.routeName ? { name: o.routeName } : null, L = $(r.open), V = (o, y = r) => {
211
+ var m;
212
+ return (y == null ? void 0 : y.menuGroup) && (o == null ? void 0 : o.meta) && ((m = o.meta) == null ? void 0 : m.menuGroup) && o.meta.menuGroup && o.meta.menuGroup === y.menuGroup;
207
213
  }, E = () => {
208
214
  L.value = !L.value;
209
215
  }, B = (o, y) => {
@@ -211,7 +217,7 @@ const Z1 = {
211
217
  };
212
218
  return (o, y) => {
213
219
  var O, n;
214
- const f = q1("RouterLink");
220
+ const m = q1("RouterLink");
215
221
  return t(), l(K, null, [
216
222
  o.labelTop ? (t(), l("p", {
217
223
  key: 0,
@@ -228,8 +234,8 @@ const Z1 = {
228
234
  o.icon ? (t(), l("div", ce, [
229
235
  (t(), w(_(o.icon), { class: "w-[24px] h-[24px] mx-auto" }))
230
236
  ])) : a("", !0),
231
- e("div", fe, [
232
- e("span", he, u(o.label), 1)
237
+ e("div", me, [
238
+ e("span", fe, u(o.label), 1)
233
239
  ]),
234
240
  r.subItems && r.subItems.length > 0 ? (t(), l("div", {
235
241
  key: 1,
@@ -239,7 +245,7 @@ const Z1 = {
239
245
  ], 2)) : a("", !0)
240
246
  ])
241
247
  ], 10, ue)) : a("", !0),
242
- !g.value && b.value ? (t(), w(f, {
248
+ !g.value && b.value ? (t(), w(m, {
243
249
  key: 2,
244
250
  to: b.value,
245
251
  exact: o.exact,
@@ -252,7 +258,7 @@ const Z1 = {
252
258
  onClick: t1(B, ["prevent"])
253
259
  }, {
254
260
  default: i1(() => [
255
- e("div", me, [
261
+ e("div", he, [
256
262
  o.icon ? (t(), l("div", ve, [
257
263
  (t(), w(_(o.icon), { class: "w-[24px] h-[24px] mx-auto" }))
258
264
  ])) : a("", !0),
@@ -310,9 +316,9 @@ const Z1 = {
310
316
  (t(), w(_(i.icon), { class: "w-[15px] h-[15px] mx-auto" }))
311
317
  ], 2)) : a("", !0)
312
318
  ])
313
- ], 8, _e)) : m(i) ? (t(), w(f, {
319
+ ], 8, _e)) : h(i) ? (t(), w(m, {
314
320
  key: 1,
315
- to: m(i),
321
+ to: h(i),
316
322
  onClick: y[0] || (y[0] = t1((S) => B(S, !0), ["prevent"])),
317
323
  class: c(["flex items-center rounded-xl p-2 text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66]", {
318
324
  "w-[44px] h-[44px]": o.slim,
@@ -336,15 +342,15 @@ const Z1 = {
336
342
  ], 64);
337
343
  };
338
344
  }
339
- }), Ve = {}, je = {
345
+ }), Ve = {}, ze = {
340
346
  xmlns: "http://www.w3.org/2000/svg",
341
347
  width: "24",
342
348
  height: "24",
343
349
  viewBox: "0 0 24 24",
344
350
  fill: "none"
345
351
  };
346
- function ze(v, C) {
347
- return t(), l("svg", je, [...C[0] || (C[0] = [
352
+ function Te(v, C) {
353
+ return t(), l("svg", ze, [...C[0] || (C[0] = [
348
354
  e("path", {
349
355
  d: "M9.27987 15.963H7.76282V9.97577C7.76282 9.67316 7.575 9.40658 7.29326 9.29851L6.7948 9.11839V8.57802V8.03766H8.10957C8.60081 8.03766 8.91867 8.12412 9.05592 8.30424C9.20763 8.48436 9.27987 8.8374 9.27987 9.36335V15.963Z",
350
356
  fill: "currentColor"
@@ -361,23 +367,23 @@ function ze(v, C) {
361
367
  }, null, -1)
362
368
  ])]);
363
369
  }
364
- const D1 = /* @__PURE__ */ f1(Ve, [["render", ze]]), W1 = (v) => {
370
+ const D1 = /* @__PURE__ */ m1(Ve, [["render", Te]]), W1 = (v) => {
365
371
  if (Array.isArray(v))
366
372
  return v.map(k);
367
373
  const C = k(v);
368
374
  return Array.isArray(C) ? C : [C];
369
- }, Te = (v, C) => {
375
+ }, je = (v, C) => {
370
376
  let r;
371
377
  const d = (g) => {
372
378
  g.forEach((b) => {
373
- const m = k(b);
374
- if (m) {
375
- if (!(m instanceof Element))
379
+ const h = k(b);
380
+ if (h) {
381
+ if (!(h instanceof Element))
376
382
  throw console.error("Vuestic: Trying to observe non-HTMLElement", {
377
- target: m,
383
+ target: h,
378
384
  array: v
379
385
  }), new Error("Vuestic: Unable to observe non-HTMLElement");
380
- m && (r == null || r.observe(m));
386
+ h && (r == null || r.observe(h));
381
387
  }
382
388
  });
383
389
  };
@@ -388,7 +394,7 @@ const D1 = /* @__PURE__ */ f1(Ve, [["render", ze]]), W1 = (v) => {
388
394
  }), J1(() => r == null ? void 0 : r.disconnect()), r;
389
395
  }, He = (v) => {
390
396
  const C = $(null);
391
- return Te([v], () => {
397
+ return je([v], () => {
392
398
  var r;
393
399
  C.value = ((r = v.value) == null ? void 0 : r.clientWidth) ?? null;
394
400
  }), R1(() => {
@@ -439,7 +445,7 @@ const D1 = /* @__PURE__ */ f1(Ve, [["render", ze]]), W1 = (v) => {
439
445
  return ((s = d.news) == null ? void 0 : s.unseenCount) || 0;
440
446
  }), b = () => {
441
447
  r("show-news");
442
- }, m = $(!1), L = $(d.hoverable);
448
+ }, h = $(!1), L = $(d.hoverable);
443
449
  l1(d, () => {
444
450
  d.modelValue ? L.value = !0 : L.value = !1;
445
451
  }), d.modelValue && (L.value = !0);
@@ -452,15 +458,15 @@ const D1 = /* @__PURE__ */ f1(Ve, [["render", ze]]), W1 = (v) => {
452
458
  return s.push("w-full");
453
459
  return s.join(" ");
454
460
  }), B = M(() => ""), o = (s) => {
455
- m.value = L.value && s;
456
- }, y = M(() => L.value && !m.value), f = M(() => !!y.value), O = $(), n = He(O), i = M(() => d.modelValue === !0 || n.value === null ? !0 : n.value > 0), I = $(), H = () => y.value ? d.minimizedWidth : d.width;
461
+ h.value = L.value && s;
462
+ }, y = M(() => L.value && !h.value), m = M(() => !!y.value), O = $(), n = He(O), i = M(() => d.modelValue === !0 || n.value === null ? !0 : n.value > 0), I = $(), H = () => y.value ? d.minimizedWidth : d.width;
457
463
  R1(() => {
458
464
  const s = H();
459
465
  setTimeout(() => {
460
466
  I.value = s;
461
467
  });
462
468
  });
463
- const S = $(!1), j = $(
469
+ const S = $(!1), z = $(
464
470
  (P = d.app) != null && P.availableLang && ((A = d.app) == null ? void 0 : A.availableLang.length) > 0 ? (F = d.app) == null ? void 0 : F.availableLang.find((s) => {
465
471
  var x;
466
472
  return s.id == ((x = d.app) == null ? void 0 : x.lang);
@@ -468,50 +474,50 @@ const D1 = /* @__PURE__ */ f1(Ve, [["render", ze]]), W1 = (v) => {
468
474
  ), Q = () => {
469
475
  S.value = !S.value;
470
476
  }, X = (s) => {
471
- j.value = s, S.value = !1, r("select-language", s);
477
+ z.value = s, S.value = !1, r("select-language", s);
472
478
  }, Y = () => {
473
479
  var s, x;
474
480
  (x = (s = d.app) == null ? void 0 : s.selectedPlan) != null && x.url && (window.location.href = d.app.selectedPlan.url);
475
481
  };
476
482
  return (s, x) => {
477
- var N, G, W, q, R, U, Z, D, p, z, J, h1, m1, v1, C1, w1, x1, b1, y1, g1, L1, k1, _1, $1, S1, M1, B1, O1, V1, j1, z1, T1, H1, E1, I1, P1, A1;
483
+ var N, G, W, q, R, U, Z, D, p, T, J, f1, h1, v1, C1, w1, x1, b1, y1, g1, L1, k1, _1, $1, S1, M1, B1, O1, V1, z1, T1, j1, H1, E1, I1, P1, A1;
478
484
  return t(), l("aside", {
479
485
  ref_key: "rootElement",
480
486
  ref: V,
481
- class: c(["oneb-sidebar pt-[56px] pb-1 cont flex flex-col sidebar z-40", [E.value, f.value ? "sm:max-w-[260px] w-full sm:w-max" : "sm:w-[260px] w-full"]]),
487
+ class: c(["oneb-sidebar pt-[56px] pb-1 cont flex flex-col sidebar z-40", [E.value, m.value ? "sm:max-w-[260px] w-full sm:w-max" : "sm:w-[260px] w-full"]]),
482
488
  style: Q1(B.value),
483
- onMouseenter: x[1] || (x[1] = (h) => o(!0)),
484
- onMouseleave: x[2] || (x[2] = (h) => o(!1))
489
+ onMouseenter: x[1] || (x[1] = (f) => o(!0)),
490
+ onMouseleave: x[2] || (x[2] = (f) => o(!1))
485
491
  }, [
486
492
  u1(e("div", {
487
493
  class: "overflow-y-auto top-[56px] left-0 overflow-hidden lg:bg-transparent transition-all z-50 px-1 ml-1 mr-1 mt-2 flex-grow",
488
494
  ref_key: "menu",
489
495
  ref: O
490
496
  }, [
491
- (t(!0), l(K, null, s1(s.items, (h) => (t(), w(Oe, {
492
- key: h.label,
493
- labelTop: h.labelTop,
497
+ (t(!0), l(K, null, s1(s.items, (f) => (t(), w(Oe, {
498
+ key: f.label,
499
+ labelTop: f.labelTop,
494
500
  isMobile: s.isMobile,
495
- subItems: h.subItems,
496
- open: h.open,
497
- icon: h.icon,
498
- label: h.label,
499
- route: h.route,
500
- menuGroup: h == null ? void 0 : h.menuGroup,
501
- href: h.href,
502
- slim: f.value,
503
- "route-name": h.routeName,
504
- exact: h.exact || !1,
501
+ subItems: f.subItems,
502
+ open: f.open,
503
+ icon: f.icon,
504
+ label: f.label,
505
+ route: f.route,
506
+ menuGroup: f == null ? void 0 : f.menuGroup,
507
+ href: f.href,
508
+ slim: m.value,
509
+ "route-name": f.routeName,
510
+ exact: f.exact || !1,
505
511
  onUpdateCollapsed: x[0] || (x[0] = (o1) => r("update-collapsed"))
506
512
  }, null, 8, ["labelTop", "isMobile", "subItems", "open", "icon", "label", "route", "menuGroup", "href", "slim", "route-name", "exact"]))), 128))
507
513
  ], 512), [
508
514
  [d1, i.value]
509
515
  ]),
510
516
  u1(e("div", {
511
- class: c(["mt-auto shrink rounded-2xl mx-2", [f.value ? "" : "px-2 bg-white pt-2.5 py-2"]])
517
+ class: c(["mt-auto shrink rounded-2xl mx-2", [m.value ? "" : "px-2 bg-white pt-2.5 py-2"]])
512
518
  }, [
513
519
  e("div", {
514
- class: c([f.value ? "hidden" : "w-full hidden md:flex-col md:flex"])
520
+ class: c([m.value ? "hidden" : "w-full hidden md:flex-col md:flex"])
515
521
  }, [
516
522
  (N = s.app) != null && N.offerPlan ? (t(), l("a", {
517
523
  key: 0,
@@ -538,12 +544,12 @@ const D1 = /* @__PURE__ */ f1(Ve, [["render", ze]]), W1 = (v) => {
538
544
  (t(), w(_((p = s.app) == null ? void 0 : p.selectedPlan.icon), { class: "w-[16px] h-[16px]" }))
539
545
  ]),
540
546
  e("div", Ge, [
541
- e("p", null, u(((z = s.app) == null ? void 0 : z.selectedPlan.name) || ""), 1),
547
+ e("p", null, u(((T = s.app) == null ? void 0 : T.selectedPlan.name) || ""), 1),
542
548
  e("p", null, u(((J = s.app) == null ? void 0 : J.selectedPlan.title) || ""), 1)
543
549
  ])
544
550
  ]),
545
551
  e("div", We, [
546
- T(U1, {
552
+ j(U1, {
547
553
  class: "text-[#525B66] hover:text-[#4089E0] !rounded-lg",
548
554
  variant: "touch",
549
555
  icon: k(X1),
@@ -551,9 +557,9 @@ const D1 = /* @__PURE__ */ f1(Ve, [["render", ze]]), W1 = (v) => {
551
557
  }, null, 8, ["icon"])
552
558
  ])
553
559
  ])) : a("", !0),
554
- (h1 = s.app) != null && h1.terms ? (t(), l("a", {
560
+ (f1 = s.app) != null && f1.terms ? (t(), l("a", {
555
561
  key: 2,
556
- href: (m1 = s.app) == null ? void 0 : m1.terms.url,
562
+ href: (h1 = s.app) == null ? void 0 : h1.terms.url,
557
563
  target: "_blank",
558
564
  class: "ml-1 flex items-center rounded-lg text-xs hover:underline font-extralight"
559
565
  }, [
@@ -580,49 +586,49 @@ const D1 = /* @__PURE__ */ f1(Ve, [["render", ze]]), W1 = (v) => {
580
586
  class: "select-box flex gap-x-2 text-xs text-[#525B66] cursor-pointer",
581
587
  onClick: Q
582
588
  }, [
583
- T(k(Y1), { class: "w-4" }),
584
- e1(" " + u((g1 = j.value) == null ? void 0 : g1.name) + " ", 1),
589
+ j(k(Y1), { class: "w-4" }),
590
+ e1(" " + u((g1 = z.value) == null ? void 0 : g1.name) + " ", 1),
585
591
  e("span", Ye, u(S.value ? "▲" : "▼"), 1)
586
592
  ]),
587
593
  S.value ? (t(), l("div", e0, [
588
- (t(!0), l(K, null, s1((L1 = s.app) == null ? void 0 : L1.availableLang, (h) => {
594
+ (t(!0), l(K, null, s1((L1 = s.app) == null ? void 0 : L1.availableLang, (f) => {
589
595
  var o1, F1;
590
596
  return t(), l("div", {
591
- key: h.id,
597
+ key: f.id,
592
598
  class: c(["px-2", {
593
- "hover:bg-slate-200 rounded-lg cursor-pointer": h.id !== ((o1 = j.value) == null ? void 0 : o1.id),
594
- "text-gray-300": h.id === ((F1 = j.value) == null ? void 0 : F1.id)
599
+ "hover:bg-slate-200 rounded-lg cursor-pointer": f.id !== ((o1 = z.value) == null ? void 0 : o1.id),
600
+ "text-gray-300": f.id === ((F1 = z.value) == null ? void 0 : F1.id)
595
601
  }]),
596
602
  onClick: (X0) => {
597
603
  var N1;
598
- return h.id !== ((N1 = j.value) == null ? void 0 : N1.id) && X(h);
604
+ return f.id !== ((N1 = z.value) == null ? void 0 : N1.id) && X(f);
599
605
  }
600
- }, u(h.name), 11, t0);
606
+ }, u(f.name), 11, t0);
601
607
  }), 128))
602
608
  ])) : a("", !0)
603
609
  ])) : a("", !0)
604
610
  ], 2),
605
- !f.value && ((k1 = s.app) != null && k1.offer || ($1 = (_1 = s.app) == null ? void 0 : _1.availableLang) != null && $1.length || (S1 = s.app) != null && S1.selectedPlan && ((M1 = s.app) != null && M1.selectedPlan.name) || (B1 = s.app) != null && B1.offerPlan) ? (t(), l("div", s0)) : a("", !0),
611
+ !m.value && ((k1 = s.app) != null && k1.offer || ($1 = (_1 = s.app) == null ? void 0 : _1.availableLang) != null && $1.length || (S1 = s.app) != null && S1.selectedPlan && ((M1 = s.app) != null && M1.selectedPlan.name) || (B1 = s.app) != null && B1.offerPlan) ? (t(), l("div", s0)) : a("", !0),
606
612
  e("div", {
607
- class: c([f.value ? "grid" : "flex space-x-2"])
613
+ class: c([m.value ? "grid" : "flex space-x-2"])
608
614
  }, [
609
615
  s.news ? (t(), l("a", {
610
616
  key: 0,
611
617
  href: "#",
612
- class: c(["text-[#525B66] flex items-center rounded-lg text-sm tooltip hover:bg-primary-10-hover hover:text-primary-base transition-all bg-gray-100 px-1", [f.value ? "w-[44px] h-[44px] text-center" : "h-[36x] pr-2"]]),
618
+ class: c(["text-[#525B66] flex items-center rounded-lg text-sm tooltip hover:bg-primary-10-hover hover:text-primary-base transition-all bg-gray-100 px-1", [m.value ? "w-[44px] h-[44px] text-center" : "h-[36x] pr-2"]]),
613
619
  onClick: b
614
620
  }, [
615
621
  s.news.menuLabel ? (t(), l("div", l0, u(s.news.menuLabel || "News"), 1)) : a("", !0),
616
622
  e("div", {
617
- class: c(["w-full", [f.value ? "" : "flex flex-nowrap items-center h-[36px]"]])
623
+ class: c(["w-full", [m.value ? "" : "flex flex-nowrap items-center h-[36px]"]])
618
624
  }, [
619
625
  e("div", {
620
- class: c(["relative items-center", [f.value ? "" : "flex flex-row space-x-1"]])
626
+ class: c(["relative items-center", [m.value ? "" : "flex flex-row space-x-1"]])
621
627
  }, [
622
628
  e("div", null, [
623
629
  (t(), w(_(D1), { class: "w-[24px] h-[24px] mx-auto" }))
624
630
  ]),
625
- f.value ? a("", !0) : (t(), l("div", o0, u(s.news.menuLabel || "News"), 1)),
631
+ m.value ? a("", !0) : (t(), l("div", o0, u(s.news.menuLabel || "News"), 1)),
626
632
  g.value > 0 ? (t(), l("span", n0)) : a("", !0),
627
633
  g.value > 0 ? (t(), l("span", a0)) : a("", !0)
628
634
  ], 2)
@@ -630,26 +636,26 @@ const D1 = /* @__PURE__ */ f1(Ve, [["render", ze]]), W1 = (v) => {
630
636
  ], 2)) : a("", !0),
631
637
  (O1 = s.app) != null && O1.support ? (t(), l("a", {
632
638
  key: 1,
633
- href: (j1 = (V1 = s.app) == null ? void 0 : V1.support) == null ? void 0 : j1.url,
634
- class: c(["text-[#525B66] flex items-center rounded-lg text-sm tooltip hover:bg-primary-10-hover hover:text-primary-base transition-all", [f.value ? "w-[44px] h-[44px] text-center" : "h-[36x]"]])
639
+ href: (z1 = (V1 = s.app) == null ? void 0 : V1.support) == null ? void 0 : z1.url,
640
+ class: c(["text-[#525B66] flex items-center rounded-lg text-sm tooltip hover:bg-primary-10-hover hover:text-primary-base transition-all", [m.value ? "w-[44px] h-[44px] text-center" : "h-[36x]"]])
635
641
  }, [
636
- (T1 = (z1 = s.app) == null ? void 0 : z1.support) != null && T1.label ? (t(), l("div", i0, u(((E1 = (H1 = s.app) == null ? void 0 : H1.support) == null ? void 0 : E1.label) || "Support"), 1)) : a("", !0),
642
+ (j1 = (T1 = s.app) == null ? void 0 : T1.support) != null && j1.label ? (t(), l("div", i0, u(((E1 = (H1 = s.app) == null ? void 0 : H1.support) == null ? void 0 : E1.label) || "Support"), 1)) : a("", !0),
637
643
  e("div", {
638
- class: c(["w-full", [f.value ? "" : "flex flex-nowrap items-center h-[36px]"]])
644
+ class: c(["w-full", [m.value ? "" : "flex flex-nowrap items-center h-[36px]"]])
639
645
  }, [
640
646
  e("div", {
641
- class: c(["flex-shrink-0 relative", [f.value ? "mx-auto w-[36px] " : "flex space-x-2 px-1"]])
647
+ class: c(["flex-shrink-0 relative", [m.value ? "mx-auto w-[36px] " : "flex space-x-2 px-1"]])
642
648
  }, [
643
649
  e("div", null, [
644
650
  (t(), w(_(k(re)), { class: "w-[20px] h-[20px] mx-auto" }))
645
651
  ]),
646
- f.value ? a("", !0) : (t(), l("div", p0, u(((P1 = (I1 = s.app) == null ? void 0 : I1.support) == null ? void 0 : P1.label) || "Support"), 1))
652
+ m.value ? a("", !0) : (t(), l("div", p0, u(((P1 = (I1 = s.app) == null ? void 0 : I1.support) == null ? void 0 : P1.label) || "Support"), 1))
647
653
  ], 2)
648
654
  ], 2)
649
655
  ], 10, r0)) : a("", !0)
650
656
  ], 2),
651
657
  e("p", {
652
- class: c([[f.value ? "hidden" : "w-full"], "text-[7px] pl-2 text-[#979CA9] flex justify-between font-extralight pt-1"])
658
+ class: c([[m.value ? "hidden" : "w-full"], "text-[7px] pl-2 text-[#979CA9] flex justify-between font-extralight pt-1"])
653
659
  }, [
654
660
  x[4] || (x[4] = e("span", null, [
655
661
  e1("Powered by "),
@@ -664,10 +670,10 @@ const D1 = /* @__PURE__ */ f1(Ve, [["render", ze]]), W1 = (v) => {
664
670
  };
665
671
  }
666
672
  });
667
- const d0 = /* @__PURE__ */ f1(u0, [["__scopeId", "data-v-6a4d29f3"]]), c0 = { class: "h-screen relative" }, f0 = {
673
+ const d0 = /* @__PURE__ */ m1(u0, [["__scopeId", "data-v-6a4d29f3"]]), c0 = { class: "h-screen relative" }, m0 = {
668
674
  class: "header h-[56px] flex items-center flex-nowrap fixed top-0 left-0 w-full z-50",
669
675
  style: { background: "rgba(245, 247, 251, 0.8)", "backdrop-filter": "blur(5px)" }
670
- }, h0 = { class: "sm:p-2 pl-2 flex-shrink-0" }, m0 = { class: "w-8 h-8 sm:w-10 sm:h-10 flex items-center flex-shrink-0" }, v0 = ["src"], C0 = { class: "whitespace-nowrap font-semibold sm:text-xl truncate" }, w0 = { class: "text-xs whitespace-nowrap truncate" }, x0 = { class: "w-full pl-1" }, b0 = { class: "w-full flex justify-end sm:pr-4" }, y0 = { class: "flex items-center sm:space-x-1" }, g0 = {
676
+ }, f0 = { class: "sm:p-2 pl-2 flex-shrink-0" }, h0 = { class: "w-8 h-8 sm:w-10 sm:h-10 flex items-center flex-shrink-0" }, v0 = ["src"], C0 = { class: "whitespace-nowrap font-semibold sm:text-xl truncate" }, w0 = { class: "text-xs whitespace-nowrap truncate" }, x0 = { class: "w-full pl-1" }, b0 = { class: "w-full flex justify-end sm:pr-4" }, y0 = { class: "flex items-center sm:space-x-1" }, g0 = {
671
677
  key: 0,
672
678
  class: "module-border-wrap flex justify-center items-center h-6 w-max"
673
679
  }, L0 = { class: "h-4 w-4" }, k0 = { class: "ml-2 hidden sm:flex" }, _0 = { class: "flex h-full" }, $0 = { key: 0 }, S0 = {
@@ -679,7 +685,7 @@ const d0 = /* @__PURE__ */ f1(u0, [["__scopeId", "data-v-6a4d29f3"]]), c0 = { cl
679
685
  }, V0 = {
680
686
  key: 0,
681
687
  class: "p-5"
682
- }, j0 = { key: 1 }, z0 = { class: "p-4 text-gray text-center" }, T0 = { key: 2 }, H0 = {
688
+ }, z0 = { key: 1 }, T0 = { class: "p-4 text-gray text-center" }, j0 = { key: 2 }, H0 = {
683
689
  class: "p-3 space-y-1.5 rounded-lg",
684
690
  style: { "box-shadow": "0 0 6px #eaeaea" }
685
691
  }, E0 = { key: 0 }, I0 = {
@@ -706,8 +712,8 @@ const d0 = /* @__PURE__ */ f1(u0, [["__scopeId", "data-v-6a4d29f3"]]), c0 = { cl
706
712
  $(!0), l1(b, (n) => {
707
713
  window.localStorage.setItem("sidebar-slim", String(n ? 1 : 0));
708
714
  });
709
- const m = $(!1), L = () => {
710
- m.value = !m.value, m.value && r("load-news");
715
+ const h = $(!1), L = () => {
716
+ h.value = !h.value, h.value && r("load-news");
711
717
  }, V = M(() => d.showHeadre);
712
718
  l1(
713
719
  () => d.showHeadre,
@@ -727,27 +733,27 @@ const d0 = /* @__PURE__ */ f1(u0, [["__scopeId", "data-v-6a4d29f3"]]), c0 = { cl
727
733
  const y = (n) => {
728
734
  var i;
729
735
  (i = d.handlers) == null || i.onSetLang(n);
730
- }, f = $(!1), O = () => {
731
- f.value = window.matchMedia("(min-width: 769px)").matches;
736
+ }, m = $(!1), O = () => {
737
+ m.value = window.matchMedia("(min-width: 769px)").matches;
732
738
  };
733
739
  return p1(() => {
734
740
  O(), window.addEventListener("resize", O);
735
741
  }), G1(() => {
736
742
  window.removeEventListener("resize", O);
737
743
  }), (n, i) => {
738
- var H, S, j, Q, X, Y, P, A, F, s, x, N, G, W, q, R, U, Z, D;
744
+ var H, S, z, Q, X, Y, P, A, F, s, x, N, G, W, q, R, U, Z, D;
739
745
  const I = q1("RouterLink");
740
746
  return t(), l("div", c0, [
741
- u1(e("div", f0, [
742
- e("div", h0, [
747
+ u1(e("div", m0, [
748
+ e("div", f0, [
743
749
  e("button", {
744
750
  onClick: i[0] || (i[0] = (p) => b.value = !b.value),
745
751
  class: "sm:w-[44px] sm:h-[44px] w-8 h-8 sm:p-[8px] flex items-center justify-center rounded hover:bg-secondary-10 hover:text-blue-600"
746
752
  }, [
747
- T(k(ae), { class: "sm:w-[24px] sm:h-[24px] w-6 h-6" })
753
+ j(k(ae), { class: "sm:w-[24px] sm:h-[24px] w-6 h-6" })
748
754
  ])
749
755
  ]),
750
- e("div", m0, [
756
+ e("div", h0, [
751
757
  n.logoSrc != null ? (t(), l("img", {
752
758
  key: 0,
753
759
  src: n.logoSrc,
@@ -761,10 +767,10 @@ const d0 = /* @__PURE__ */ f1(u0, [["__scopeId", "data-v-6a4d29f3"]]), c0 = { cl
761
767
  class: "sm:pl-2 pl-1 truncate w-full"
762
768
  }, {
763
769
  default: i1(() => {
764
- var p, z;
770
+ var p, T;
765
771
  return [
766
772
  e("div", C0, u(n.app.name), 1),
767
- e("div", w0, u((z = (p = n.app) == null ? void 0 : p.workspace) == null ? void 0 : z.name), 1)
773
+ e("div", w0, u((T = (p = n.app) == null ? void 0 : p.workspace) == null ? void 0 : T.name), 1)
768
774
  ];
769
775
  }),
770
776
  _: 1
@@ -779,15 +785,15 @@ const d0 = /* @__PURE__ */ f1(u0, [["__scopeId", "data-v-6a4d29f3"]]), c0 = { cl
779
785
  class: "cursor-pointer flex items-center h-full bg-[#FFF8E4] hover:bg-[#f2e3b8] rounded-full px-2 py-1 font-medium",
780
786
  onClick: i[1] || (i[1] = //@ts-ignore
781
787
  (...p) => {
782
- var z, J;
783
- return ((z = n.handlers) == null ? void 0 : z.onImproveTariff) && ((J = n.handlers) == null ? void 0 : J.onImproveTariff(...p));
788
+ var T, J;
789
+ return ((T = n.handlers) == null ? void 0 : T.onImproveTariff) && ((J = n.handlers) == null ? void 0 : J.onImproveTariff(...p));
784
790
  }),
785
791
  style: { "font-size": "10px" }
786
792
  }, [
787
793
  e("div", L0, [
788
794
  (t(), w(_((S = n.improveTariff) == null ? void 0 : S.icon), { class: "h-4 w-4 mx-auto" }))
789
795
  ]),
790
- e("span", k0, u((j = n.improveTariff) == null ? void 0 : j.label), 1)
796
+ e("span", k0, u((z = n.improveTariff) == null ? void 0 : z.label), 1)
791
797
  ])
792
798
  ])) : a("", !0),
793
799
  n1(n.$slots, "head-right", {}, void 0, !0),
@@ -805,7 +811,7 @@ const d0 = /* @__PURE__ */ f1(u0, [["__scopeId", "data-v-6a4d29f3"]]), c0 = { cl
805
811
  "on-change": (s = n.handlers) == null ? void 0 : s.onChange,
806
812
  onOpen: (x = n.handlers) == null ? void 0 : x.onBrowse
807
813
  }, null, 8, ["workspace", "apps", "change-label", "apps-title", "on-app", "on-change", "onOpen"])) : a("", !0),
808
- T(se, {
814
+ j(se, {
809
815
  user: n.user,
810
816
  menu: n.menu,
811
817
  app: n.app,
@@ -838,7 +844,7 @@ const d0 = /* @__PURE__ */ f1(u0, [["__scopeId", "data-v-6a4d29f3"]]), c0 = { cl
838
844
  e("div", {
839
845
  class: c([[
840
846
  b.value ? "" : "lg:ml-[260px] hidden sm:block",
841
- f.value ? "ml-[60px]" : ""
847
+ m.value ? "ml-[60px]" : ""
842
848
  ], "body scroll-body w-full overflow-y-auto"])
843
849
  }, [
844
850
  e("div", {
@@ -849,33 +855,33 @@ const d0 = /* @__PURE__ */ f1(u0, [["__scopeId", "data-v-6a4d29f3"]]), c0 = { cl
849
855
  ], 2)
850
856
  ]),
851
857
  n.news ? (t(), l("div", $0, [
852
- m.value ? (t(), l("div", {
858
+ h.value ? (t(), l("div", {
853
859
  key: 0,
854
860
  class: "fixed top-0 left-0 h-dvh w-screen bg-gray-100 bg-opacity-40 z-50",
855
- onClick: i[4] || (i[4] = t1((p) => m.value = !1, ["self"]))
861
+ onClick: i[4] || (i[4] = t1((p) => h.value = !1, ["self"]))
856
862
  })) : a("", !0),
857
863
  e("div", {
858
- class: c(["opacity-100 shadow-lg transition-all fixed top-0 left-0 h-dvh overflow-hidden z-50 bg-white", [m.value ? "sm:w-[560px] w-full" : "w-0"]])
864
+ class: c(["opacity-100 shadow-lg transition-all fixed top-0 left-0 h-dvh overflow-hidden z-50 bg-white", [h.value ? "sm:w-[560px] w-full" : "w-0"]])
859
865
  }, [
860
- m.value ? (t(), l("div", S0, [
866
+ h.value ? (t(), l("div", S0, [
861
867
  e("div", M0, [
862
868
  e("div", B0, [
863
- T(D1, { class: "w-10 h-10" }),
869
+ j(D1, { class: "w-10 h-10" }),
864
870
  i[6] || (i[6] = e("div", { class: "w-full font-medium" }, "OneB News", -1)),
865
871
  e("div", null, [
866
- T(U1, {
872
+ j(U1, {
867
873
  variant: "touch",
868
874
  icon: k(le),
869
- onClick: i[5] || (i[5] = (p) => m.value = !1)
875
+ onClick: i[5] || (i[5] = (p) => h.value = !1)
870
876
  }, null, 8, ["icon"])
871
877
  ])
872
878
  ]),
873
879
  e("div", O0, [
874
880
  n.news.isLoading && ((U = n.news.items) == null ? void 0 : U.length) === 0 ? (t(), l("div", V0, [
875
- T(oe, { class: "w-6 h-6 text-gray-600 mx-auto" })
876
- ])) : ((Z = n.news.items) == null ? void 0 : Z.length) === 0 ? (t(), l("div", j0, [
877
- e("div", z0, u(n.news.emptyText), 1)
878
- ])) : ((D = n.news.items) == null ? void 0 : D.length) > 0 ? (t(), l("div", T0, [
881
+ j(oe, { class: "w-6 h-6 text-gray-600 mx-auto" })
882
+ ])) : ((Z = n.news.items) == null ? void 0 : Z.length) === 0 ? (t(), l("div", z0, [
883
+ e("div", T0, u(n.news.emptyText), 1)
884
+ ])) : ((D = n.news.items) == null ? void 0 : D.length) > 0 ? (t(), l("div", j0, [
879
885
  (t(!0), l(K, null, s1(n.news.items, (p) => (t(), l("div", {
880
886
  key: p.id,
881
887
  class: "p-3"
@@ -896,7 +902,7 @@ const d0 = /* @__PURE__ */ f1(u0, [["__scopeId", "data-v-6a4d29f3"]]), c0 = { cl
896
902
  }, null, 8, q0)
897
903
  ])) : a("", !0),
898
904
  e("div", R0, [
899
- T(ne, {
905
+ j(ne, {
900
906
  text: p.body
901
907
  }, null, 8, ["text"])
902
908
  ]),
@@ -928,8 +934,8 @@ const d0 = /* @__PURE__ */ f1(u0, [["__scopeId", "data-v-6a4d29f3"]]), c0 = { cl
928
934
  };
929
935
  }
930
936
  });
931
- const i9 = /* @__PURE__ */ f1(Q0, [["__scopeId", "data-v-f5bf3126"]]);
937
+ const f9 = /* @__PURE__ */ m1(Q0, [["__scopeId", "data-v-f5bf3126"]]);
932
938
  export {
933
- i9 as OneMainLayout,
939
+ f9 as OneMainLayout,
934
940
  d0 as OneSidebar
935
941
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../useModal-98810f6a.cjs"),e=require("vue"),s=require("../_plugin-vue_export-helper-f246444f.cjs"),r={},l={class:"p-3 space-y-3"};function c(t,o){return e.openBlock(),e.createElementBlock("div",l,[e.renderSlot(t.$slots,"default")])}const d=s._export_sfc(r,[["render",c]]),a={},i={class:"p-3 xl:pl-5 flex justify-end items-center space-x-3 border-t rounded-b"};function u(t,o){return e.openBlock(),e.createElementBlock("div",i,[e.renderSlot(t.$slots,"default")])}const p=s._export_sfc(a,[["render",u]]),_={class:"flex items-start justify-between p-3 border-b rounded-t"},f={key:0,class:"text-xl"},m={key:1,class:"px-8 pt-2 flex gap-x-2.5 flex-shrink-0 mt-auto"},k=e.defineComponent({__name:"OneModalHeader",props:n.modalProps,setup(t){return(o,B)=>(e.openBlock(),e.createElementBlock("div",_,[o.title?(e.openBlock(),e.createElementBlock("p",f,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0),o.$slots.button?(e.openBlock(),e.createElementBlock("div",m,[e.renderSlot(o.$slots,"button",{onClose:o.onClose})])):e.createCommentVNode("",!0)]))}});exports.OneModal=n.OneModal;exports.useModal=n.useModal;exports.OneModalBody=d;exports.OneModalFooter=p;exports.OneModalHeader=k;
@@ -0,0 +1,41 @@
1
+ import { m as d } from "../useModal-85f57682.js";
2
+ import { O as j, u as H } from "../useModal-85f57682.js";
3
+ import { openBlock as o, createElementBlock as t, renderSlot as n, defineComponent as l, toDisplayString as c, createCommentVNode as r } from "vue";
4
+ import { _ as a } from "../_plugin-vue_export-helper-dad06003.js";
5
+ const i = {}, _ = { class: "p-3 space-y-3" };
6
+ function p(s, e) {
7
+ return o(), t("div", _, [
8
+ n(s.$slots, "default")
9
+ ]);
10
+ }
11
+ const k = /* @__PURE__ */ a(i, [["render", p]]), f = {}, m = { class: "p-3 xl:pl-5 flex justify-end items-center space-x-3 border-t rounded-b" };
12
+ function u(s, e) {
13
+ return o(), t("div", m, [
14
+ n(s.$slots, "default")
15
+ ]);
16
+ }
17
+ const v = /* @__PURE__ */ a(f, [["render", u]]), h = { class: "flex items-start justify-between p-3 border-b rounded-t" }, x = {
18
+ key: 0,
19
+ class: "text-xl"
20
+ }, $ = {
21
+ key: 1,
22
+ class: "px-8 pt-2 flex gap-x-2.5 flex-shrink-0 mt-auto"
23
+ }, C = /* @__PURE__ */ l({
24
+ __name: "OneModalHeader",
25
+ props: d,
26
+ setup(s) {
27
+ return (e, b) => (o(), t("div", h, [
28
+ e.title ? (o(), t("p", x, c(e.title), 1)) : r("", !0),
29
+ e.$slots.button ? (o(), t("div", $, [
30
+ n(e.$slots, "button", { onClose: e.onClose })
31
+ ])) : r("", !0)
32
+ ]));
33
+ }
34
+ });
35
+ export {
36
+ j as OneModal,
37
+ k as OneModalBody,
38
+ v as OneModalFooter,
39
+ C as OneModalHeader,
40
+ H as useModal
41
+ };