@oneb/ui-vue 0.3.14 → 0.3.16

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 (79) 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/composables/useMediaQuery.d.ts +5 -0
  28. package/dist/dataTable/dataTable.d.ts +10 -0
  29. package/dist/dataTable/index.cjs +1 -1
  30. package/dist/dataTable/index.d.ts +1 -1
  31. package/dist/dataTable/index.js +1046 -9
  32. package/dist/dataTable/util.d.ts +2 -0
  33. package/dist/dropdown/index.cjs +1 -1
  34. package/dist/dropdown/index.js +792 -17
  35. package/dist/entityPicker/index.cjs +1 -0
  36. package/dist/entityPicker/index.js +584 -0
  37. package/dist/errorsPage/index.cjs +1 -0
  38. package/dist/errorsPage/index.js +63 -0
  39. package/dist/floating-ui.dom-2121a4fd.cjs +1 -0
  40. package/dist/floating-ui.dom-4509432e.js +941 -0
  41. package/dist/i18n/index.cjs +1 -0
  42. package/dist/{useI18n-2103b39e.js → i18n/index.js} +5 -4
  43. package/dist/index.cjs +1 -1
  44. package/dist/index.js +115 -10298
  45. package/dist/indicators/index.cjs +1 -0
  46. package/dist/indicators/index.js +84 -0
  47. package/dist/infobox/index.cjs +1 -0
  48. package/dist/infobox/index.js +111 -0
  49. package/dist/label/index.cjs +1 -0
  50. package/dist/label/index.js +47 -0
  51. package/dist/layout/index.cjs +1 -1
  52. package/dist/layout/index.js +115 -109
  53. package/dist/modal/index.cjs +1 -0
  54. package/dist/modal/index.js +41 -0
  55. package/dist/periodPicker/index.cjs +1 -0
  56. package/dist/periodPicker/index.js +1323 -0
  57. package/dist/radio/index.cjs +1 -0
  58. package/dist/radio/index.js +73 -0
  59. package/dist/skeleton/index.cjs +1 -0
  60. package/dist/skeleton/index.js +46 -0
  61. package/dist/style.css +1 -1
  62. package/dist/switch/index.cjs +1 -0
  63. package/dist/switch/index.js +142 -0
  64. package/dist/toast/index.cjs +1 -0
  65. package/dist/toast/index.js +140 -0
  66. package/dist/tooltip/index.cjs +1 -0
  67. package/dist/tooltip/index.js +20 -0
  68. package/dist/useModal-85f57682.js +177 -0
  69. package/dist/useModal-98810f6a.cjs +1 -0
  70. package/package.json +4 -4
  71. package/dist/ChevronRightIcon-6aa413c4.cjs +0 -1
  72. package/dist/OneHelpMenu-8e315cb3.js +0 -1791
  73. package/dist/OneHelpMenu-95ae3d5a.cjs +0 -1
  74. package/dist/SpinnerIcon-01be39fe.cjs +0 -1
  75. package/dist/index-19e93dfb.js +0 -954
  76. package/dist/index-85e729ab.cjs +0 -1
  77. package/dist/index-8b41a099.cjs +0 -1
  78. package/dist/index-98daa7ed.js +0 -862
  79. package/dist/useI18n-bcf9c640.cjs +0 -1
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue");function r(t,n){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 12.75l6 6 9-13.5"})])}exports.render=r;
@@ -0,0 +1,20 @@
1
+ import { openBlock as e, createElementBlock as r, createElementVNode as o } from "vue";
2
+ function c(t, n) {
3
+ return e(), r("svg", {
4
+ xmlns: "http://www.w3.org/2000/svg",
5
+ fill: "none",
6
+ viewBox: "0 0 24 24",
7
+ "stroke-width": "1.8",
8
+ stroke: "currentColor",
9
+ "aria-hidden": "true"
10
+ }, [
11
+ o("path", {
12
+ "stroke-linecap": "round",
13
+ "stroke-linejoin": "round",
14
+ d: "M4.5 12.75l6 6 9-13.5"
15
+ })
16
+ ]);
17
+ }
18
+ export {
19
+ c as r
20
+ };
@@ -0,0 +1,20 @@
1
+ import { openBlock as e, createElementBlock as r, createElementVNode as o } from "vue";
2
+ function c(t, n) {
3
+ return e(), r("svg", {
4
+ xmlns: "http://www.w3.org/2000/svg",
5
+ fill: "none",
6
+ viewBox: "0 0 24 24",
7
+ "stroke-width": "1.8",
8
+ stroke: "currentColor",
9
+ "aria-hidden": "true"
10
+ }, [
11
+ o("path", {
12
+ "stroke-linecap": "round",
13
+ "stroke-linejoin": "round",
14
+ d: "M19.5 8.25l-7.5 7.5-7.5-7.5"
15
+ })
16
+ ]);
17
+ }
18
+ export {
19
+ c as r
20
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue");function r(t,n){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"})])}exports.render=r;
@@ -1,21 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as r, createElementVNode as o } from "vue";
2
- function l(n, t) {
3
- return e(), r("svg", {
4
- xmlns: "http://www.w3.org/2000/svg",
5
- fill: "none",
6
- viewBox: "0 0 24 24",
7
- "stroke-width": "1.8",
8
- stroke: "currentColor",
9
- "aria-hidden": "true"
10
- }, [
11
- o("path", {
12
- "stroke-linecap": "round",
13
- "stroke-linejoin": "round",
14
- d: "M19.5 8.25l-7.5 7.5-7.5-7.5"
15
- })
16
- ]);
17
- }
18
- function s(n, t) {
2
+ function l(t, n) {
19
3
  return e(), r("svg", {
20
4
  xmlns: "http://www.w3.org/2000/svg",
21
5
  fill: "none",
@@ -31,7 +15,7 @@ function s(n, t) {
31
15
  })
32
16
  ]);
33
17
  }
34
- function c(n, t) {
18
+ function c(t, n) {
35
19
  return e(), r("svg", {
36
20
  xmlns: "http://www.w3.org/2000/svg",
37
21
  fill: "none",
@@ -48,7 +32,6 @@ function c(n, t) {
48
32
  ]);
49
33
  }
50
34
  export {
51
- l as a,
52
- c as b,
53
- s as r
35
+ c as a,
36
+ l as r
54
37
  };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue");function t(r,n){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 o(r,n){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"})])}exports.render=t;exports.render$1=o;
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue");function t(r,n){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:"M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})])}function o(r,n){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:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"})])}function c(r,n){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:"M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"})])}function l(r,n){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:"M18.364 18.364A9 9 0 005.636 5.636m12.728 12.728A9 9 0 015.636 5.636m12.728 12.728L5.636 5.636"})])}exports.render=t;exports.render$1=o;exports.render$2=l;exports.render$3=c;
@@ -0,0 +1,71 @@
1
+ import { openBlock as e, createElementBlock as r, createElementVNode as n } from "vue";
2
+ function c(o, t) {
3
+ return e(), r("svg", {
4
+ xmlns: "http://www.w3.org/2000/svg",
5
+ fill: "none",
6
+ viewBox: "0 0 24 24",
7
+ "stroke-width": "1.8",
8
+ stroke: "currentColor",
9
+ "aria-hidden": "true"
10
+ }, [
11
+ n("path", {
12
+ "stroke-linecap": "round",
13
+ "stroke-linejoin": "round",
14
+ d: "M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
15
+ })
16
+ ]);
17
+ }
18
+ function s(o, t) {
19
+ return e(), r("svg", {
20
+ xmlns: "http://www.w3.org/2000/svg",
21
+ fill: "none",
22
+ viewBox: "0 0 24 24",
23
+ "stroke-width": "1.8",
24
+ stroke: "currentColor",
25
+ "aria-hidden": "true"
26
+ }, [
27
+ n("path", {
28
+ "stroke-linecap": "round",
29
+ "stroke-linejoin": "round",
30
+ d: "M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"
31
+ })
32
+ ]);
33
+ }
34
+ function a(o, t) {
35
+ return e(), r("svg", {
36
+ xmlns: "http://www.w3.org/2000/svg",
37
+ fill: "none",
38
+ viewBox: "0 0 24 24",
39
+ "stroke-width": "1.8",
40
+ stroke: "currentColor",
41
+ "aria-hidden": "true"
42
+ }, [
43
+ n("path", {
44
+ "stroke-linecap": "round",
45
+ "stroke-linejoin": "round",
46
+ d: "M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"
47
+ })
48
+ ]);
49
+ }
50
+ function l(o, t) {
51
+ return e(), r("svg", {
52
+ xmlns: "http://www.w3.org/2000/svg",
53
+ fill: "none",
54
+ viewBox: "0 0 24 24",
55
+ "stroke-width": "1.8",
56
+ stroke: "currentColor",
57
+ "aria-hidden": "true"
58
+ }, [
59
+ n("path", {
60
+ "stroke-linecap": "round",
61
+ "stroke-linejoin": "round",
62
+ d: "M18.364 18.364A9 9 0 005.636 5.636m12.728 12.728A9 9 0 015.636 5.636m12.728 12.728L5.636 5.636"
63
+ })
64
+ ]);
65
+ }
66
+ export {
67
+ s as a,
68
+ l as b,
69
+ a as c,
70
+ c as r
71
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),w=require("./floating-ui.dom-2121a4fd.cjs"),P=require("@floating-ui/vue"),x=require("./OneAvatar.vue_vue_type_script_setup_true_lang-2d9f44f1.cjs"),A=require("./XMarkIcon-f94baa4c.cjs"),F=require("./ChevronDownIcon-6889ac87.cjs"),B=require("./ChevronRightIcon-7a2f0c20.cjs"),q=require("./button/index.cjs"),L=require("./_plugin-vue_export-helper-f246444f.cjs"),D={title:{type:String},stick:{type:String,default:"right"},appendBody:{type:Boolean,default:!1}},I={variant:{type:String,default:"primary"},label:{type:String},icon:{type:[Function,Object]}},R={modelValue:{type:[Object,Array],default:null},multiple:{type:Boolean,default:!1},items:{type:Array,default:()=>[]},title:{type:String},placeholder:{type:String,default:"Select"},searchPlaceholder:{type:String,default:"Search"},labelKey:{type:String,default:"label"},valueKey:{type:String,default:"id"},stick:{type:String,default:"bottom-start"},allowEmpty:{type:Boolean,default:!1},emptyLabel:{type:String},createLabel:{type:String},searchable:{type:Boolean,default:!0},isLoading:{type:Boolean,default:!1},groupKey:{type:String},maxWidth:{type:String},view:{type:String,default:"default"}},T=["data-opened"],H={key:0,class:"text-sm text-secondary-content px-3 py-2 text-left"},U={key:0,class:"text-sm text-secondary-content px-3 py-2 text-left"},z=e.defineComponent({__name:"OneDropdown",props:D,emits:["open","close"],setup(k,{emit:d}){const a=e.ref(!1),p=e.ref(null),c=e.ref(null),n=e.ref(null),u=d,o=k,i=()=>{a.value=!a.value,a.value?u("open"):u("close")};e.provide("OneDropdown",{onToggle:i});let s=null;function h(){!c.value||!n.value||w.computePosition(c.value,n.value,{placement:o.stick?o.stick:"bottom-start",strategy:"fixed",middleware:[w.offset(5),P.flip(),w.shift({padding:8})]}).then(({x:t,y:m})=>{n.value&&Object.assign(n.value.style,{left:`${t}px`,top:`${m}px`})})}e.watch(a,async t=>{o.appendBody&&(t?(await e.nextTick(),c.value&&n.value&&(h(),s=w.autoUpdate(c.value,n.value,h))):s&&(s(),s=null))}),e.onBeforeUnmount(()=>{s&&s()});const v=e.computed(()=>{var y;if(o.appendBody)return"";const t=(y=p.value)==null?void 0:y.getBoundingClientRect(),m=t?t.x<270:!1;return t&&t.top+270>window.innerHeight?"up"+(m?"-right":"-left"):"down"+(m?"-right":"-left")}),g=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 v.value.startsWith("up")?t.push("bottom-1 mb-10"):v.value.startsWith("down")&&t.push("top-1 mt-10"),o.stick==="right"?t.push("right-0"):o.stick==="left"&&t.push("left-0"),t}),r=e.computed(()=>["fixed z-[10000] 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(t,m)=>(e.openBlock(),e.createElementBlock("div",{class:"relative inline-block",ref_key:"containerRef",ref:p,"data-opened":a.value},[e.createElementVNode("div",{ref_key:"buttonRef",ref:c},[e.renderSlot(t.$slots,"button",e.normalizeProps(e.guardReactiveProps({onToggle:i,isExpanded:a.value})))],512),o.appendBody?(e.openBlock(),e.createBlock(e.Teleport,{key:0,to:"body"},[a.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"fixed top-0 left-0 w-screen h-screen z-[9999]",onClick:i})):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(()=>[a.value?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"menuRef",ref:n,class:e.normalizeClass(["menu",r.value]),role:"menu","aria-orientation":"vertical",tabindex:"-1"},[t.title?(e.openBlock(),e.createElementBlock("div",H,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"menu",e.normalizeProps(e.guardReactiveProps({onToggle:i})))],2)):e.createCommentVNode("",!0)]),_:3})])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[a.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"fixed top-0 left-0 w-screen h-screen z-10",onClick:i})):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(()=>[a.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["menu",g.value]),role:"menu","aria-orientation":"vertical",tabindex:"-1"},[t.title?(e.openBlock(),e.createElementBlock("div",U,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"menu",e.normalizeProps(e.guardReactiveProps({onToggle:i})))],2)):e.createCommentVNode("",!0)]),_:3})],64))],8,T))}}),E=e.defineComponent({__name:"OneDropdownItem",props:I,emits:["click"],setup(k,{emit:d}){const a=d,p=k,c=e.inject("OneDropdown"),n=()=>{c!==void 0&&c.onToggle(),a("click")},u=e.computed(()=>{const o=[];return p.variant==="secondary"?o.push("text-secondary-content hover:bg-secondary-body-hover"):p.variant==="danger"?o.push("text-danger-content hover:bg-danger-10"):p.variant==="warning"?o.push("text-warning-content hover:bg-warning-10"):p.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",u.value]),onClick:e.withModifiers(n,["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)],2))}});function W(k,d){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 K={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}},M={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}},X={help:{type:Object,required:!0}},G=["onClick"],J={class:"flex flex-col items-center pt-5 pb-2 h-full"},Q={class:"flex flex-col px-10 py-1 mt-2 text-center"},Y={class:"self-center text-base font-medium tracking-wide text-black"},Z={class:"mt-1 text-xs leading-5 text-blue-500 font-light"},ee={class:"text-left w-full mt-5 px-3"},te={class:"-mb-2 flex-shrink-0 mt-auto pt-6 text-[8px] leading-3 text-gray-400"},oe=e.defineComponent({__name:"OneUserMenu",props:K,setup(k){const d=k,a=e.computed(()=>{var n;return(n=d.menu)==null?void 0:n.map(u=>{let o={label:u.label};u.icon!=null&&(o={...o,icon:u.icon});const i=typeof u.click=="function"?u.click:()=>{};return{key:u.label,args:o,click:i}})}),p=()=>{typeof d.onAccount=="function"&&d.onAccount()},c=()=>{typeof d.onLogout=="function"&&d.onLogout()};return(n,u)=>(e.openBlock(),e.createBlock(z,{stick:"right"},{button:e.withCtx(({onToggle:o,isExpanded:i})=>{var s,h;return[e.createElementVNode("button",{onClick:o,class:e.normalizeClass(["p-1 rounded-full hover:bg-secondary-10",[i?"bg-secondary-25":""]])},[e.createVNode(x._sfc_main,{text:((s=n.user)==null?void 0:s.name)||"",size:n.iconSize,src:(h=n.user)==null?void 0:h.photo_url,rounded:!0},null,8,["text","size","src"])],10,G)]}),menu:e.withCtx(()=>{var o,i,s,h,v;return[e.createElementVNode("div",J,[e.createVNode(x._sfc_main,{text:((o=n.user)==null?void 0:o.name)||"",size:80,src:(i=n.user)==null?void 0:i.photo_url,rounded:!0,class:"mx-auto"},null,8,["text","src"]),e.createElementVNode("div",Q,[e.createElementVNode("div",Y,e.toDisplayString((s=n.user)==null?void 0:s.name),1),e.createElementVNode("div",Z,e.toDisplayString((h=n.user)==null?void 0:h.email),1)]),typeof d.onAccount=="function"?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:p,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(n.accountLabel),1)):e.createCommentVNode("",!0),e.createElementVNode("div",ee,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,g=>(e.openBlock(),e.createBlock(E,e.mergeProps({key:g.key},{ref_for:!0},g.args,{onClick:g.click}),null,16,["onClick"]))),128)),typeof n.onLogout=="function"?(e.openBlock(),e.createBlock(E,{key:0,icon:e.unref(W),label:n.logoutLabel,class:"rounded py-3",onClick:c},null,8,["icon","label"])):e.createCommentVNode("",!0)]),u[0]||(u[0]=e.createElementVNode("div",{class:"space-y-2 text-center",style:{width:"240px"}},null,-1)),e.createElementVNode("div",te,e.toDisplayString((v=n.app)==null?void 0:v.version),1)])]}),_:1}))}});function j(k,d){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"})])}const ne=["data-opened"],le={key:1,class:"absolute top-0 right-0 h-screen overflow-y-auto max-w-96 bg-white px-3 z-10"},re={class:"flex justify-between items-center pt-3 mb-3"},se={class:"font-semibold text-xl px-3"},ce={class:"grid"},ae={class:"rounded-lg m-3 border"},ie={class:"space-x-2 flex items-center px-3 py-2",style:{width:"300px"}},de={class:"flex justify-between relative"},ue={class:"flex items-center justify-between w-full text-left text-sm font-semibold"},pe={key:0},me={class:"text-xs font-semibold"},fe={class:"px-3 py-2"},he={class:"text-secondary-content text-left pb-1 text-xs uppercase"},ke={class:"overflow-auto max-h-full"},ve={key:0,class:"space-y-2"},ge=["onClick"],ye={class:"flex"},xe={class:"border border-secondary-stroke rounded-2xl w-14 h-14 md:w-14 md:h-14 flex items-center justify-center"},_e={class:"pl-2"},we={class:"text-sm mt-1 font-semibold"},be={class:"text9 mt-1"},Be={key:1,class:"mt-2 w-full bg-[#FAFAFA] hover:bg-secondary-10 p-2 rounded-lg mb-5 text-xs hidden"},Ee=e.defineComponent({__name:"OneBrowserMenu",props:M,emits:["open","close"],setup(k,{emit:d}){const a=d,p=k,c=e.ref(!1),n=()=>{c.value=!c.value,c.value?a("open"):a("close")},u=e.ref(!1);e.computed(()=>u.value?B.render:F.render);const o=()=>{typeof p.onChange=="function"&&p.onChange()},i=s=>{typeof p.onApp=="function"&&p.onApp(s)};return(s,h)=>{var v,g,r,t,m,y;return e.openBlock(),e.createElementBlock("div",{"data-opened":c.value},[e.createElementVNode("button",{onClick:n,class:e.normalizeClass(["sm:p-1 sm:w-[44px] sm:h-[44px] w-8 h-8 rounded-md hover:bg-secondary-10 flex",{"bg-secondary-10":c.value}])},[e.createVNode(e.unref(j),{class:"text-secondary-base w-full p-1 hover:text-blue-600 m-auto"})],2),c.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"fixed top-0 left-0 w-screen h-screen z-10 bg-black/10",onClick:n})):e.createCommentVNode("",!0),c.value?(e.openBlock(),e.createElementBlock("div",le,[e.createElementVNode("div",re,[e.createElementVNode("div",se,e.toDisplayString((v=s.workspace)==null?void 0:v.title),1),e.createVNode(e.unref(A.render),{class:"w-6 cursor-pointer",onClick:n})]),e.createElementVNode("div",ce,[e.createElementVNode("div",ae,[e.createElementVNode("div",ie,[e.createElementVNode("div",de,[e.createVNode(x._sfc_main,{text:((g=s.workspace)==null?void 0:g.name)||"",src:(r=s.workspace)==null?void 0:r.photo_url,size:44,rounded:!1,class:"mx-auto"},null,8,["text","src"])]),e.createElementVNode("div",ue,e.toDisplayString((t=s.workspace)==null?void 0:t.name),1)]),u.value?(e.openBlock(),e.createElementBlock("div",pe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.workspaces,f=>(e.openBlock(),e.createElementBlock("div",{key:f.name,class:"flex items-center space-x-3 border-t px-5 py-2 hover:bg-secondary-10"},[e.createVNode(x._sfc_main,{text:f.name,src:f.photo_url,size:30,rounded:!1},null,8,["text","src"]),e.createElementVNode("span",me,e.toDisplayString(f.name),1)]))),128))])):e.createCommentVNode("",!0),h[0]||(h[0]=e.createElementVNode("hr",null,null,-1)),e.createElementVNode("div",{onClick:o,class:"text-center py-2 cursor-pointer",style:{"font-size":"10px"}},e.toDisplayString((m=s.workspace)==null?void 0:m.changeLabel),1)])]),e.createElementVNode("div",fe,[e.createElementVNode("div",he,e.toDisplayString((y=s.workspace)==null?void 0:y.appsLabel),1),e.createElementVNode("div",ke,[s.apps&&s.apps.length?(e.openBlock(),e.createElementBlock("div",ve,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.apps,f=>(e.openBlock(),e.createElementBlock("div",{key:f.id,onClick:_=>i(f),class:"flex justify-between items-center rounded-lg hover:bg-secondary-10 p-2 bg-[#FAFAFA] cursor-pointer"},[e.createElementVNode("div",ye,[e.createElementVNode("div",xe,[e.createVNode(x._sfc_main,{text:f.name,src:f.photo_url,size:44,rounded:!1},null,8,["text","src"])]),e.createElementVNode("div",_e,[e.createElementVNode("p",we,e.toDisplayString(f.name),1),e.createElementVNode("p",be,e.toDisplayString(f==null?void 0:f.short),1)])]),e.createElementVNode("div",null,[e.createVNode(q.OneButton,{variant:"touch",icon:e.unref(B.render$1),onClick:_=>i(f)},null,8,["icon","onClick"])])],8,ge))),128))])):e.createCommentVNode("",!0),s.apps&&s.apps.length?(e.openBlock(),e.createElementBlock("button",Be,e.toDisplayString("Дивитися всі"))):e.createCommentVNode("",!0)])])])):e.createCommentVNode("",!0)],8,ne)}}});const Ve=L._export_sfc(Ee,[["__scopeId","data-v-9e75279e"]]);function Ne(k,d){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:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9 5.25h.008v.008H12v-.008z"})])}function Ce(k,d){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:"M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}),e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.91 11.672a.375.375 0 010 .656l-5.603 3.113a.375.375 0 01-.557-.328V8.887c0-.286.307-.466.557-.327l5.603 3.112z"})])}function O(k,d){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:"M12 21a9.004 9.004 0 008.716-6.747M12 21a9.004 9.004 0 01-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 017.843 4.582M12 3a8.997 8.997 0 00-7.843 4.582m15.686 0A11.953 11.953 0 0112 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0121 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0112 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 013 12c0-1.605.42-3.113 1.157-4.418"})])}const Se=["data-opened"],$e={key:1,class:"absolute top-0 right-0 h-screen max-w-96 bg-white px-3 z-10 flex flex-col"},Ae={class:"flex justify-between items-center pt-3 mb-3"},Fe={class:"font-semibold text-xl px-3"},Le={key:0,class:"grid grid-cols-3 bg-[#FAFAFA] rounded-xl text-[#525B66] mb-2"},De=["onClick"],ze={class:"uppercase text-[8px]"},Me={class:"overflow-y-auto grid rounded-xl"},je={class:"max-h-full bg-[#FAFAFA]"},Oe={key:0,class:"space-y-2"},Pe=["onClick"],qe={class:"flex"},Ie={class:"pl-2"},Re={class:"text-sm mt-1 font-semibold"},Te={class:"text-[10px] mt-1 text-[#979CA9]"},He={class:"mt-auto"},Ue={key:0},We=["onClick"],Ke={class:"flex items-center space-x-3"},Xe={class:"h-16"},Ge={key:0,class:"bg-[#FAFAFA] rounded-lg p-3"},Je={class:"flex justify-between"},Qe=["onClick"],Ye={key:0,class:"tooltip-text min-w-[70px]"},Ze={class:"flex justify-between mb-4"},et=["href"],tt={class:"flex flex-nowrap items-center w-max h-[24px]"},ot={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full text-[#525B66]"},nt={class:"py-[8px] pl-0 pr-[8px]"},lt=e.defineComponent({__name:"OneHelpMenu",props:X,emits:["open","close"],setup(k,{emit:d}){const a=d,p=k,c=e.ref(!1),n=()=>{c.value=!c.value,c.value?a("open"):a("close")},u=e.computed(()=>v.value?B.render:F.render),o=e.ref(3),i=e.computed(()=>{var t,m;const r=((m=(t=p.help)==null?void 0:t.helpList)==null?void 0:m.length)||0;return o.value===r});e.computed(()=>{var t;return(((t=p.help)==null?void 0:t.helpList)||[]).slice(0,o.value)});const s=()=>{var t,m;const r=((m=(t=p.help)==null?void 0:t.helpList)==null?void 0:m.length)||0;o.value=i.value?3:r},h=(r,t)=>{r&&t&&typeof t.openLink=="function"?t.openLink(t):r&&window.open(r,"_blank")},v=e.ref(!1),g=()=>{v.value=!v.value};return(r,t)=>{var m,y,f,_,V,N,C,S,$;return e.openBlock(),e.createElementBlock("div",{"data-opened":c.value},[e.createElementVNode("button",{onClick:n,class:e.normalizeClass(["sm:p-1 sm:w-[44px] sm:h-[44px] w-8 h-8 rounded-md hover:bg-secondary-10 flex",{"bg-secondary-10":c.value}])},[e.createVNode(e.unref(Ne),{class:"text-secondary-base w-full p-1 hover:text-blue-600 m-auto"})],2),c.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"fixed top-0 left-0 w-screen h-screen z-10 bg-black/10 flex flex-col",onClick:n})):e.createCommentVNode("",!0),c.value?(e.openBlock(),e.createElementBlock("div",$e,[e.createElementVNode("div",Ae,[e.createElementVNode("div",Fe,e.toDisplayString((m=r.help)==null?void 0:m.label),1),e.createVNode(e.unref(A.render),{class:"w-6 cursor-pointer",onClick:n})]),(y=r.help)!=null&&y.helpButton?(e.openBlock(),e.createElementBlock("div",Le,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((f=r.help)==null?void 0:f.helpButton,l=>(e.openBlock(),e.createElementBlock("button",{key:l.name,onClick:b=>h(l.link,l),class:"grid justify-center space-y-2 hover:bg-slate-100 p-3 rounded-xl hover:text-blue-500"},[e.createElementVNode("div",null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l==null?void 0:l.icon),{class:"w-[16px] h-[16px] mx-auto"}))]),e.createElementVNode("span",ze,e.toDisplayString(l.name),1)],8,De))),128))])):e.createCommentVNode("",!0),e.createElementVNode("div",Me,[e.createElementVNode("div",je,[(_=r.help)!=null&&_.helpList&&r.help.helpList.length?(e.openBlock(),e.createElementBlock("div",Oe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.help.helpList,l=>(e.openBlock(),e.createElementBlock("div",{key:l.id,onClick:b=>h(l.link,l),class:"flex justify-between items-center rounded-lg hover:bg-slate-100 p-2 cursor-pointer hover:text-[#4089E0]"},[e.createElementVNode("div",qe,[e.createElementVNode("div",Ie,[e.createElementVNode("p",Re,e.toDisplayString(l.name),1),e.createElementVNode("p",Te,e.toDisplayString(l.category),1)])])],8,Pe))),128))])):e.createCommentVNode("",!0)])]),(V=r.help)!=null&&V.helpList&&r.help.helpList.length<0?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:s,class:"h-11 w-full bg-[#FAFAFA] hover:bg-slate-100 p-3 text-[#525B66] rounded-b-xl text-xs hover:text-[#4089E0] font-medium"},e.toDisplayString(i.value?r.help.buttNoMore:r.help.buttMore),1)):e.createCommentVNode("",!0),e.createElementVNode("div",He,[(N=r.help)!=null&&N.video?(e.openBlock(),e.createElementBlock("div",Ue,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.help.video,l=>(e.openBlock(),e.createElementBlock("button",{key:l.id,onClick:b=>h(l.link,l),class:"flex items-center space-x-3 mt-2 w-full bg-[#FAFAFA] hover:bg-slate-100 p-4 text-[#525B66] rounded-lg text-sm hover:text-[#4089E0] font-medium"},[e.createVNode(e.unref(Ce),{class:"w-6 h-6"}),e.createElementVNode("span",null,e.toDisplayString(l.name),1)],8,We))),128))])):e.createCommentVNode("",!0),(C=r.help)!=null&&C.socialList?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:g,class:"flex items-center justify-between mt-2 w-full bg-[#FAFAFA] hover:bg-slate-100 p-4 text-[#525B66] rounded-lg text-sm hover:text-[#4089E0] font-medium"},[e.createElementVNode("div",Ke,[e.createVNode(e.unref(O),{class:"w-6 h-6"}),e.createElementVNode("span",null,e.toDisplayString(r.help.socialButt),1)]),e.createVNode(e.unref(u),{class:"w-4 h-4"})])):e.createCommentVNode("",!0),e.createElementVNode("div",Xe,[v.value?(e.openBlock(),e.createElementBlock("div",Ge,[e.createElementVNode("div",Je,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((S=r.help)==null?void 0:S.socialList,l=>(e.openBlock(),e.createElementBlock("button",{key:l.id,onClick:b=>h(l.link,l),class:"flex items-center space-x-2 p-2 rounded-lg hover:bg-slate-100 hover:text-blue-500 tooltip"},[e.createElementVNode("div",null,[l.name?(e.openBlock(),e.createElementBlock("div",Ye,e.toDisplayString(l.name),1)):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l==null?void 0:l.icon),{class:"w-[24px] h-[24px] mx-auto"}))])],8,Qe))),128))])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",Ze,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(($=r.help)==null?void 0:$.termsOffer,l=>(e.openBlock(),e.createElementBlock("a",{key:l.name,target:"_blank",href:l.link,class:"ml-2 flex items-center rounded-lg text-xs hover:underline font-extralight cursor-pointer"},[e.createElementVNode("div",tt,[e.createElementVNode("div",ot,[e.createElementVNode("span",nt,e.toDisplayString(l.name),1)])])],8,et))),128))])])])):e.createCommentVNode("",!0)],8,Se)}}});const rt=L._export_sfc(lt,[["__scopeId","data-v-f5d2b453"]]);exports.OneBrowserMenu=Ve;exports.OneHelpMenu=rt;exports._sfc_main=z;exports._sfc_main$1=E;exports._sfc_main$2=oe;exports.browserMenuProps=M;exports.dropdownProps=D;exports.dropdownSelectProps=R;exports.render=j;exports.render$1=O;