@oneb/ui-vue 0.3.32 → 0.4.0

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 (226) hide show
  1. package/dist/ChevronLeftIcon-7505e081.cjs +1 -0
  2. package/dist/ChevronLeftIcon-bb9adb5b.js +20 -0
  3. package/dist/ChevronRightIcon-2992cf0d.cjs +1 -0
  4. package/dist/ChevronRightIcon-b0585768.js +20 -0
  5. package/dist/ChevronUpIcon-64a673e1.cjs +1 -0
  6. package/dist/{ChevronRightIcon-4549a26b.js → ChevronUpIcon-c43f27a9.js} +2 -19
  7. package/dist/MagnifyingGlassIcon-adf871ba.cjs +1 -0
  8. package/dist/MagnifyingGlassIcon-ca213d3d.js +20 -0
  9. package/dist/OneDropdownAuto.vue_vue_type_script_setup_true_lang-2c508e8a.js +79 -0
  10. package/dist/OneDropdownAuto.vue_vue_type_script_setup_true_lang-bf923b04.cjs +1 -0
  11. package/dist/OneFormInput.vue_vue_type_script_setup_true_lang-b89117e7.js +521 -0
  12. package/dist/OneFormInput.vue_vue_type_script_setup_true_lang-f6f7cd96.cjs +1 -0
  13. package/dist/OneHelpMenu-6ec63535.cjs +1 -0
  14. package/dist/{OneHelpMenu-73817f8a.js → OneHelpMenu-d5182c78.js} +118 -213
  15. package/dist/OneMarkdown.vue_vue_type_script_setup_true_lang-05266fc3.cjs +1 -0
  16. package/dist/OneMarkdown.vue_vue_type_script_setup_true_lang-bb2219c7.js +18 -0
  17. package/dist/OneModal-02a9a173.js +189 -0
  18. package/dist/OneModal-0e92c039.cjs +1 -0
  19. package/dist/OneTooltip.vue_vue_type_script_setup_true_lang-c492c128.js +25 -0
  20. package/dist/OneTooltip.vue_vue_type_script_setup_true_lang-e83a81ea.cjs +1 -0
  21. package/dist/SpinnerIcon-01be39fe.cjs +1 -0
  22. package/dist/{SpinnerIcon-74648c98.js → SpinnerIcon-516264ba.js} +5 -6
  23. package/dist/button/index.cjs +1 -1
  24. package/dist/button/index.d.ts +1 -1
  25. package/dist/button/index.js +3 -4
  26. package/dist/checkbox/checkbox.d.ts +5 -0
  27. package/dist/checkbox/index.cjs +1 -1
  28. package/dist/checkbox/index.js +40 -34
  29. package/dist/chips/OneChips.vue.d.ts +2 -0
  30. package/dist/chips/chips.d.ts +25 -0
  31. package/dist/chips/index.cjs +1 -0
  32. package/dist/chips/index.d.ts +3 -0
  33. package/dist/chips/index.js +62 -0
  34. package/dist/clipboard-494e1513.cjs +1 -0
  35. package/dist/clipboard-733b79a1.js +22 -0
  36. package/dist/common/OneDetailsList.vue.d.ts +2 -0
  37. package/dist/common/OneDetailsRow.vue.d.ts +2 -0
  38. package/dist/common/index.cjs +1 -1
  39. package/dist/common/index.d.ts +2 -0
  40. package/dist/common/index.js +68 -16
  41. package/dist/composables/index.cjs +1 -0
  42. package/dist/composables/index.d.ts +18 -0
  43. package/dist/composables/index.js +91 -0
  44. package/dist/composables/useAsyncMethod.d.ts +17 -0
  45. package/dist/composables/useAsyncSelect.d.ts +26 -0
  46. package/dist/composables/useConfirm.d.ts +27 -0
  47. package/dist/composables/useCursorList.d.ts +42 -0
  48. package/dist/composables/useDebouncedRef.d.ts +6 -0
  49. package/dist/composables/useFileUpload.d.ts +21 -0
  50. package/dist/composables/useFormSubmit.d.ts +23 -0
  51. package/dist/composables/useIsMobile.d.ts +8 -0
  52. package/dist/confirm/OneConfirmHost.vue.d.ts +2 -0
  53. package/dist/confirm/confirm.d.ts +10 -0
  54. package/dist/confirm/index.cjs +1 -0
  55. package/dist/confirm/index.d.ts +5 -0
  56. package/dist/confirm/index.js +59 -0
  57. package/dist/cursorList/OneCursorList.vue.d.ts +2 -0
  58. package/dist/cursorList/index.cjs +1 -0
  59. package/dist/cursorList/index.d.ts +3 -0
  60. package/dist/cursorList/index.js +78 -0
  61. package/dist/dataTable/index.cjs +1 -1
  62. package/dist/dataTable/index.js +256 -301
  63. package/dist/dateTime/OneDateTime.vue.d.ts +2 -0
  64. package/dist/dateTime/dateTime.d.ts +43 -0
  65. package/dist/dateTime/index.cjs +1 -0
  66. package/dist/dateTime/index.d.ts +3 -0
  67. package/dist/dateTime/index.js +66 -0
  68. package/dist/dropdown/index.cjs +1 -1
  69. package/dist/dropdown/index.js +302 -376
  70. package/dist/dropdown-5cb64ab7.cjs +1 -0
  71. package/dist/dropdown-c81fb945.js +101 -0
  72. package/dist/entityPicker/index.cjs +1 -1
  73. package/dist/entityPicker/index.js +57 -57
  74. package/dist/entityPicker/useEntityModal.d.ts +7 -3
  75. package/dist/errorsPage/OneCrashScreen.vue.d.ts +2 -0
  76. package/dist/errorsPage/OneErrorHero.vue.d.ts +2 -0
  77. package/dist/errorsPage/OneNotFoundPage.vue.d.ts +2 -0
  78. package/dist/errorsPage/OneServerErrorPage.vue.d.ts +2 -0
  79. package/dist/errorsPage/OneSnakeGame.vue.d.ts +2 -0
  80. package/dist/errorsPage/createAppErrorHandler.d.ts +24 -0
  81. package/dist/errorsPage/errorsType.d.ts +5 -0
  82. package/dist/errorsPage/index.cjs +1 -1
  83. package/dist/errorsPage/index.d.ts +8 -0
  84. package/dist/errorsPage/index.js +557 -28
  85. package/dist/errorsPage/useCrashState.d.ts +10 -0
  86. package/dist/fileUpload/OneDropzone.vue.d.ts +2 -0
  87. package/dist/fileUpload/OneFileUpload.vue.d.ts +2 -0
  88. package/dist/fileUpload/fileUpload.d.ts +17 -0
  89. package/dist/fileUpload/index.cjs +1 -0
  90. package/dist/fileUpload/index.d.ts +6 -0
  91. package/dist/fileUpload/index.js +228 -0
  92. package/dist/filterBuilder/OneFilterBuilder.vue.d.ts +2 -0
  93. package/dist/filterBuilder/OneFilterGroup.vue.d.ts +2 -0
  94. package/dist/filterBuilder/OneFilterRule.vue.d.ts +2 -0
  95. package/dist/filterBuilder/filterBuilder.d.ts +17 -0
  96. package/dist/filterBuilder/index.cjs +1 -0
  97. package/dist/filterBuilder/index.d.ts +5 -0
  98. package/dist/filterBuilder/index.js +257 -0
  99. package/dist/form/form.d.ts +1 -1
  100. package/dist/form/index.cjs +1 -1
  101. package/dist/form/index.js +66 -574
  102. package/dist/i18n/index.cjs +1 -1
  103. package/dist/i18n/index.js +99 -15
  104. package/dist/index.cjs +1 -1
  105. package/dist/index.d.ts +18 -0
  106. package/dist/index.js +242 -104
  107. package/dist/indicators/OneStatCard.vue.d.ts +2 -0
  108. package/dist/indicators/index.cjs +1 -1
  109. package/dist/indicators/index.d.ts +1 -0
  110. package/dist/indicators/index.js +66 -29
  111. package/dist/label/index.cjs +1 -1
  112. package/dist/label/index.js +5 -5
  113. package/dist/layout/OneAuthLayout.vue.d.ts +2 -0
  114. package/dist/layout/OneBackButton.vue.d.ts +2 -0
  115. package/dist/layout/OneBreadcrumbs.vue.d.ts +2 -0
  116. package/dist/layout/OneEmptyLayout.vue.d.ts +6 -0
  117. package/dist/layout/OneGridLayout.vue.d.ts +2 -0
  118. package/dist/layout/index.cjs +1 -1
  119. package/dist/layout/index.d.ts +6 -1
  120. package/dist/layout/index.js +1057 -765
  121. package/dist/layout/layout.d.ts +11 -0
  122. package/dist/modal/OneModalHost.vue.d.ts +2 -0
  123. package/dist/modal/index.cjs +1 -1
  124. package/dist/modal/index.d.ts +3 -0
  125. package/dist/modal/index.js +84 -27
  126. package/dist/modal/modal.d.ts +9 -0
  127. package/dist/modal/useModalStack.d.ts +20 -0
  128. package/dist/notifications/OneNotificationItem.vue.d.ts +2 -0
  129. package/dist/notifications/OneNotificationsBell.vue.d.ts +2 -0
  130. package/dist/notifications/OneNotificationsPanel.vue.d.ts +2 -0
  131. package/dist/notifications/index.cjs +1 -0
  132. package/dist/notifications/index.d.ts +7 -0
  133. package/dist/notifications/index.js +477 -0
  134. package/dist/notifications/notifications.d.ts +53 -0
  135. package/dist/notifications/useNotifyfeed.d.ts +32 -0
  136. package/dist/periodPicker/index.cjs +1 -1
  137. package/dist/periodPicker/index.js +126 -139
  138. package/dist/popover/OnePopover.vue.d.ts +2 -0
  139. package/dist/popover/index.cjs +1 -0
  140. package/dist/popover/index.d.ts +3 -0
  141. package/dist/popover/index.js +102 -0
  142. package/dist/popover/popover.d.ts +31 -0
  143. package/dist/progress/OneProgress.vue.d.ts +2 -0
  144. package/dist/progress/index.cjs +1 -0
  145. package/dist/progress/index.d.ts +3 -0
  146. package/dist/progress/index.js +74 -0
  147. package/dist/progress/progress.d.ts +32 -0
  148. package/dist/searchInput/OneSearchInput.vue.d.ts +2 -0
  149. package/dist/searchInput/index.cjs +1 -0
  150. package/dist/searchInput/index.d.ts +3 -0
  151. package/dist/searchInput/index.js +103 -0
  152. package/dist/searchInput/searchInput.d.ts +39 -0
  153. package/dist/settings/OneSettingsLayout.vue.d.ts +2 -0
  154. package/dist/settings/OneSettingsRow.vue.d.ts +2 -0
  155. package/dist/settings/OneSettingsSection.vue.d.ts +2 -0
  156. package/dist/settings/index.cjs +1 -0
  157. package/dist/settings/index.d.ts +4 -0
  158. package/dist/settings/index.js +116 -0
  159. package/dist/spinner/OneSpinner.vue.d.ts +2 -0
  160. package/dist/spinner/index.cjs +1 -0
  161. package/dist/spinner/index.d.ts +3 -0
  162. package/dist/spinner/index.js +30 -0
  163. package/dist/spinner/spinner.d.ts +10 -0
  164. package/dist/stageBadge/index.cjs +1 -1
  165. package/dist/stageBadge/index.js +18 -16
  166. package/dist/stepper/OneStepper.vue.d.ts +2 -0
  167. package/dist/stepper/index.cjs +1 -0
  168. package/dist/stepper/index.d.ts +3 -0
  169. package/dist/stepper/index.js +53 -0
  170. package/dist/stepper/stepper.d.ts +24 -0
  171. package/dist/style.css +1 -1
  172. package/dist/switch/index.cjs +1 -1
  173. package/dist/switch/index.js +3 -4
  174. package/dist/tabs/OneTab.vue.d.ts +2 -0
  175. package/dist/tabs/OneTabs.vue.d.ts +2 -0
  176. package/dist/tabs/index.cjs +1 -0
  177. package/dist/tabs/index.d.ts +4 -0
  178. package/dist/tabs/index.js +64 -0
  179. package/dist/tabs/tabs.d.ts +7 -0
  180. package/dist/toast/OneMascotToast.vue.d.ts +2 -0
  181. package/dist/toast/RabbitIcon.vue.d.ts +2 -0
  182. package/dist/toast/index.cjs +1 -1
  183. package/dist/toast/index.d.ts +4 -0
  184. package/dist/toast/index.js +139 -74
  185. package/dist/toast/useMascotToast.d.ts +12 -0
  186. package/dist/tooltip/OneTooltip.vue.d.ts +2 -0
  187. package/dist/tooltip/index.cjs +2 -2
  188. package/dist/tooltip/index.d.ts +1 -0
  189. package/dist/tooltip/index.js +33 -30
  190. package/dist/useConfirm-6344b49d.cjs +1 -0
  191. package/dist/useConfirm-74e99a5c.js +23 -0
  192. package/dist/useCursorList-5c1b57aa.js +62 -0
  193. package/dist/useCursorList-e1cb41e7.cjs +1 -0
  194. package/dist/useElementWidth-b36a7ce9.js +40 -0
  195. package/dist/useElementWidth-b3e53f48.cjs +1 -0
  196. package/dist/useFileUpload-228dbc07.js +24 -0
  197. package/dist/useFileUpload-f47622bb.cjs +1 -0
  198. package/dist/useIsMobile-7b1f08cf.cjs +1 -0
  199. package/dist/useIsMobile-98fc0cf9.js +7 -0
  200. package/dist/useMediaQuery-1d87df02.cjs +1 -0
  201. package/dist/useMediaQuery-77a19b18.js +37 -0
  202. package/dist/useModal-6a5d870b.js +30 -0
  203. package/dist/useModal-aa6f4a57.cjs +1 -0
  204. package/dist/userList/OneUserInviteModal.vue.d.ts +2 -0
  205. package/dist/userList/OneUserList.vue.d.ts +2 -0
  206. package/dist/userList/OneUserListItem.vue.d.ts +2 -0
  207. package/dist/userList/index.cjs +1 -0
  208. package/dist/userList/index.d.ts +4 -0
  209. package/dist/userList/index.js +559 -0
  210. package/dist/utils/clipboard.d.ts +6 -0
  211. package/dist/utils/format.d.ts +17 -0
  212. package/dist/utils/index.cjs +1 -0
  213. package/dist/utils/index.d.ts +4 -0
  214. package/dist/utils/index.js +125 -0
  215. package/dist/utils/string.d.ts +25 -0
  216. package/dist/utils/versionChecker.d.ts +26 -0
  217. package/package.json +215 -24
  218. package/dist/ChevronRightIcon-7a2f0c20.cjs +0 -1
  219. package/dist/OneHelpMenu-c6e88d8f.cjs +0 -1
  220. package/dist/OneMarkdown.vue_vue_type_style_index_0_lang-0ea8fbf8.cjs +0 -1
  221. package/dist/OneMarkdown.vue_vue_type_style_index_0_lang-4ed993c7.js +0 -1
  222. package/dist/SpinnerIcon-ccb6f3fc.cjs +0 -1
  223. package/dist/SpinnerIcon.vue_vue_type_style_index_0_lang-0ea8fbf8.cjs +0 -1
  224. package/dist/SpinnerIcon.vue_vue_type_style_index_0_lang-4ed993c7.js +0 -1
  225. package/dist/useModal-0c73777f.cjs +0 -1
  226. package/dist/useModal-7fe9444b.js +0 -194
@@ -1,183 +1,109 @@
1
- import { d as ye, e as we, _ as ge, r as ke, f as be } from "../OneHelpMenu-73817f8a.js";
2
- import { O as lo, a as so, c as no, b as ro } from "../OneHelpMenu-73817f8a.js";
3
- import { defineComponent as X, ref as $, watch as ce, onBeforeUnmount as xe, provide as _e, computed as j, openBlock as o, createElementBlock as s, createElementVNode as t, renderSlot as K, normalizeProps as U, guardReactiveProps as W, createBlock as N, Teleport as Ce, createCommentVNode as v, withDirectives as q, normalizeClass as g, toDisplayString as u, vShow as $e, withCtx as z, createVNode as H, unref as y, normalizeStyle as J, Fragment as V, renderList as L, onMounted as Me, onUnmounted as Ve, vModelText as se, mergeProps as P, createTextVNode as ne, nextTick as T } from "vue";
4
- import { computePosition as re, offset as ae, shift as ie, autoUpdate as Ke } from "@floating-ui/dom";
5
- import { flip as ue } from "@floating-ui/vue";
6
- import { _ as Ae } from "../_plugin-vue_export-helper-dad06003.js";
7
- import { _ as de } from "../OneAvatar.vue_vue_type_script_setup_true_lang-08ab80dd.js";
8
- import { useOnebI18n as ve } from "../i18n/index.js";
9
- import { u as Oe, O as je } from "../useModal-7fe9444b.js";
1
+ import { openBlock as l, createElementBlock as s, defineComponent as ae, computed as I, ref as A, createBlock as G, withCtx as S, createElementVNode as t, normalizeClass as h, createVNode as U, unref as v, normalizeStyle as H, toDisplayString as u, Fragment as x, renderList as B, createCommentVNode as p, onMounted as ce, onUnmounted as ve, watch as me, renderSlot as K, normalizeProps as ee, guardReactiveProps as te, withDirectives as oe, vModelText as le, mergeProps as P, createTextVNode as se, nextTick as N } from "vue";
2
+ import { _ as he } from "../_plugin-vue_export-helper-dad06003.js";
3
+ import { d as ye, _ as fe, r as we } from "../OneHelpMenu-d5182c78.js";
4
+ import { O as Xt, a as Yt, c as Zt, b as Qt } from "../OneHelpMenu-d5182c78.js";
5
+ import { _ as ke } from "../OneDropdownAuto.vue_vue_type_script_setup_true_lang-2c508e8a.js";
6
+ import { _ as re } from "../OneAvatar.vue_vue_type_script_setup_true_lang-08ab80dd.js";
7
+ import { useOnebI18n as ie } from "../i18n/index.js";
8
+ import { b as ge } from "../dropdown-c81fb945.js";
9
+ import { O as be } from "../OneModal-02a9a173.js";
10
+ import { u as xe } from "../useModal-6a5d870b.js";
11
+ import "@floating-ui/dom";
12
+ import "@floating-ui/vue";
10
13
  import "../XMarkIcon-51ef0691.js";
11
14
  import "../ChevronDownIcon-6805ce6c.js";
12
- import "../ChevronRightIcon-4549a26b.js";
15
+ import "../ChevronUpIcon-c43f27a9.js";
16
+ import "../ChevronRightIcon-b0585768.js";
13
17
  import "../button/index.js";
14
- import "../SpinnerIcon-74648c98.js";
15
- import "../SpinnerIcon.vue_vue_type_style_index_0_lang-4ed993c7.js";
16
- const Ie = ["data-opened"], Be = {
17
- key: 0,
18
- class: "text-sm text-secondary-content px-3 py-2 text-left"
19
- }, Le = /* @__PURE__ */ X({
20
- __name: "OneDropdownAuto",
21
- props: ye,
22
- emits: ["open", "close"],
23
- setup(S, { emit: k }) {
24
- const n = S, p = $(!1), m = $(null), w = $(null);
25
- let h = null;
26
- ce(p, (d) => {
27
- d && w.value && m.value ? (re(w.value, m.value, {
28
- placement: n.stick ? n.stick : "bottom-start",
29
- strategy: "fixed",
30
- middleware: [ae(5), ue(), ie({ padding: 8 })]
31
- }).then(({ x: i, y: C }) => {
32
- Object.assign(m.value.style, {
33
- left: `${i}px`,
34
- top: `${C}px`
35
- });
36
- }), h = Ke(w.value, m.value, () => {
37
- re(w.value, m.value, {
38
- placement: n.stick ? n.stick : "bottom-start",
39
- strategy: "fixed",
40
- middleware: [ae(4), ue(), ie({ padding: 8 })]
41
- }).then(({ x: i, y: C }) => {
42
- Object.assign(m.value.style, {
43
- left: `${i}px`,
44
- top: `${C}px`
45
- });
46
- });
47
- })) : h && (h(), h = null);
48
- }), xe(() => {
49
- h && h();
50
- });
51
- const b = k, A = () => {
52
- p.value = !p.value, p.value ? b("open") : b("close");
53
- };
54
- _e("OneDropdown", {
55
- onToggle: A
56
- });
57
- const f = j(() => [
58
- "fixed z-[10000] w-fit rounded-md bg-white",
59
- "py-1 shadow-lg ring-black ring-opacity-5 focus:outline-none",
60
- "overflow-auto max-h-[540px] min-w-[150px] max-w-[540px]"
61
- ]);
62
- return (d, i) => (o(), s("div", {
63
- class: "relative inline-block",
64
- "data-opened": p.value
65
- }, [
66
- t("div", {
67
- ref_key: "buttonRef",
68
- ref: w
69
- }, [
70
- K(d.$slots, "button", U(W({ onToggle: A, isExpanded: p.value })))
71
- ], 512),
72
- (o(), N(Ce, { to: "body" }, [
73
- p.value ? (o(), s("div", {
74
- key: 0,
75
- class: "fixed top-0 left-0 w-screen h-screen z-[9999]",
76
- onClick: A
77
- })) : v("", !0),
78
- q(t("div", {
79
- ref_key: "menuRef",
80
- ref: m,
81
- class: g(["menu", f.value]),
82
- role: "menu",
83
- "aria-orientation": "vertical",
84
- tabindex: "-1",
85
- style: { display: "none" }
86
- }, [
87
- d.title ? (o(), s("div", Be, u(d.title), 1)) : v("", !0),
88
- K(d.$slots, "menu", U(W({ onToggle: A })))
89
- ], 2), [
90
- [$e, p.value]
91
- ])
92
- ]))
93
- ], 8, Ie));
94
- }
95
- }), Se = {}, De = { class: "border-t border-secondary-stroke my-1" };
96
- function ze(S, k) {
97
- return o(), s("div", De);
18
+ import "../SpinnerIcon-516264ba.js";
19
+ import "../useIsMobile-98fc0cf9.js";
20
+ import "../useMediaQuery-77a19b18.js";
21
+ const Ce = {}, _e = { class: "border-t border-secondary-stroke my-1" };
22
+ function $e(D, k) {
23
+ return l(), s("div", _e);
98
24
  }
99
- const Zt = /* @__PURE__ */ Ae(Se, [["render", ze]]), Ee = ["onClick"], Re = { class: "grid" }, Fe = { class: "font-semibold px-3" }, Pe = { class: "rounded-lg m-3 border" }, Ue = {
25
+ const Gt = /* @__PURE__ */ he(Ce, [["render", $e]]), Me = ["onClick"], Ve = { class: "grid" }, Ke = { class: "font-semibold px-3" }, Ae = { class: "rounded-lg m-3 border" }, Ie = {
100
26
  class: "space-x-2 flex items-center px-3 py-2",
101
27
  style: { width: "300px" }
102
- }, We = { class: "flex-shrink-0" }, Ne = { class: "w-full text-left" }, Ge = { class: "flex-shrink-0" }, He = { class: "px-3 py-2" }, Te = { class: "text-secondary-content text-left pb-1 text-sm uppercase" }, qe = {
28
+ }, je = { class: "flex-shrink-0" }, Oe = { class: "w-full text-left" }, Be = { class: "flex-shrink-0" }, Le = { class: "px-3 py-2" }, Se = { class: "text-secondary-content text-left pb-1 text-sm uppercase" }, De = {
103
29
  key: 0,
104
30
  class: "space-y-2"
105
- }, Je = ["onClick"], Xe = { class: "pl-2" }, Ye = { class: "text-sm mt-1" }, Ze = { class: "text-xs mt-1" }, pe = 3, Qt = /* @__PURE__ */ X({
31
+ }, ze = ["onClick"], Ee = { class: "pl-2" }, Fe = { class: "text-sm mt-1" }, Re = { class: "text-xs mt-1" }, ne = 3, Ht = /* @__PURE__ */ ae({
106
32
  __name: "OneBrowserMenuGrid",
107
- props: we,
108
- setup(S) {
109
- const k = S, n = ve(), p = j(() => k.t ?? n), m = () => {
33
+ props: ye,
34
+ setup(D) {
35
+ const k = D, n = ie(), y = I(() => k.t ?? n), C = () => {
110
36
  typeof k.onChange == "function" && k.onChange();
111
- }, w = $(!1), h = j(() => k.apps ? w.value ? k.apps : k.apps.slice(0, pe) : []), b = () => {
112
- w.value = !w.value;
113
- }, A = (f) => {
114
- typeof k.onApp == "function" && k.onApp(f);
37
+ }, $ = A(!1), M = I(() => k.apps ? $.value ? k.apps : k.apps.slice(0, ne) : []), g = () => {
38
+ $.value = !$.value;
39
+ }, z = (m) => {
40
+ typeof k.onApp == "function" && k.onApp(m);
115
41
  };
116
- return (f, d) => (o(), N(ge, { stick: "right" }, {
117
- button: z(({ onToggle: i, isExpanded: C }) => [
42
+ return (m, c) => (l(), G(fe, { stick: "right" }, {
43
+ button: S(({ onToggle: i, isExpanded: j }) => [
118
44
  t("button", {
119
45
  onClick: i,
120
- class: g(["p-1 rounded-md hover:bg-secondary-10", [C ? "bg-secondary-25" : ""]])
46
+ class: h(["p-1 rounded-md hover:bg-secondary-10", [j ? "bg-secondary-25" : ""]])
121
47
  }, [
122
- H(y(ke), {
48
+ U(v(we), {
123
49
  class: "text-secondary-base",
124
- style: J(`width: ${f.iconSize}px; height: ${f.iconSize}px`)
50
+ style: H(`width: ${m.iconSize}px; height: ${m.iconSize}px`)
125
51
  }, null, 8, ["style"])
126
- ], 10, Ee)
52
+ ], 10, Me)
127
53
  ]),
128
- menu: z(() => {
129
- var i, C, E;
54
+ menu: S(() => {
55
+ var i, j, E;
130
56
  return [
131
- t("div", Re, [
132
- t("div", Fe, u(p.value("ui.layout.workspaces")), 1),
133
- t("div", Pe, [
134
- t("div", Ue, [
135
- t("div", We, [
136
- H(de, {
137
- text: ((i = f.workspace) == null ? void 0 : i.name) || "",
138
- src: (C = f.workspace) == null ? void 0 : C.photo_url,
57
+ t("div", Ve, [
58
+ t("div", Ke, u(y.value("ui.layout.workspaces")), 1),
59
+ t("div", Ae, [
60
+ t("div", Ie, [
61
+ t("div", je, [
62
+ U(re, {
63
+ text: ((i = m.workspace) == null ? void 0 : i.name) || "",
64
+ src: (j = m.workspace) == null ? void 0 : j.photo_url,
139
65
  size: 44,
140
66
  rounded: !1,
141
67
  class: "mx-auto"
142
68
  }, null, 8, ["text", "src"])
143
69
  ]),
144
- t("div", Ne, u((E = f.workspace) == null ? void 0 : E.name), 1),
145
- t("div", Ge, [
70
+ t("div", Oe, u((E = m.workspace) == null ? void 0 : E.name), 1),
71
+ t("div", Be, [
146
72
  t("button", {
147
73
  class: "text-sm border border-secondary-stroke rounded px-2 py-0.5 text-secondary-content hover:text-primary-content",
148
- onClick: m
149
- }, u(p.value("ui.layout.change_workspace")), 1)
74
+ onClick: C
75
+ }, u(y.value("ui.layout.change_workspace")), 1)
150
76
  ])
151
77
  ]),
152
- d[0] || (d[0] = t("hr", null, null, -1))
78
+ c[0] || (c[0] = t("hr", null, null, -1))
153
79
  ])
154
80
  ]),
155
- t("div", He, [
156
- t("div", Te, u(p.value("ui.layout.apps")), 1),
81
+ t("div", Le, [
82
+ t("div", Se, u(y.value("ui.layout.apps")), 1),
157
83
  t("div", null, [
158
- f.apps && f.apps.length ? (o(), s("div", qe, [
159
- (o(!0), s(V, null, L(h.value, (O) => (o(), s("div", {
160
- key: O.id,
161
- onClick: (R) => A(O),
84
+ m.apps && m.apps.length ? (l(), s("div", De, [
85
+ (l(!0), s(x, null, B(M.value, (_) => (l(), s("div", {
86
+ key: _.id,
87
+ onClick: (F) => z(_),
162
88
  class: "flex items-center rounded-lg hover:bg-secondary-10 border p-2 bg-[#FAFAFA] cursor-pointer"
163
89
  }, [
164
- H(de, {
165
- text: O.name,
166
- src: O.photo_url,
90
+ U(re, {
91
+ text: _.name,
92
+ src: _.photo_url,
167
93
  size: 44,
168
94
  rounded: !1
169
95
  }, null, 8, ["text", "src"]),
170
- t("div", Xe, [
171
- t("p", Ye, u(O.name), 1),
172
- t("p", Ze, u(O.short), 1)
96
+ t("div", Ee, [
97
+ t("p", Fe, u(_.name), 1),
98
+ t("p", Re, u(_.short), 1)
173
99
  ])
174
- ], 8, Je))), 128))
175
- ])) : v("", !0),
176
- f.apps && f.apps.length > pe ? (o(), s("button", {
100
+ ], 8, ze))), 128))
101
+ ])) : p("", !0),
102
+ m.apps && m.apps.length > ne ? (l(), s("button", {
177
103
  key: 1,
178
- onClick: b,
104
+ onClick: g,
179
105
  class: "mt-2 w-full bg-[#FAFAFA] hover:bg-secondary-10 p-2 rounded-lg mb-5 text-xs"
180
- }, u(w.value ? p.value("ui.layout.hide") : p.value("ui.layout.view_all")), 1)) : v("", !0)
106
+ }, u($.value ? y.value("ui.layout.hide") : y.value("ui.layout.view_all")), 1)) : p("", !0)
181
107
  ])
182
108
  ])
183
109
  ];
@@ -185,22 +111,22 @@ const Zt = /* @__PURE__ */ Ae(Se, [["render", ze]]), Ee = ["onClick"], Re = { cl
185
111
  _: 1
186
112
  }));
187
113
  }
188
- }), Qe = ["onClick"], et = ["onKeydown"], tt = {
114
+ }), Pe = ["onClick"], We = ["onKeydown"], Ue = {
189
115
  key: 0,
190
116
  class: "text-sm font-medium text-gray-700 px-3 pt-2.5 pb-1.5"
191
- }, ot = {
117
+ }, Ne = {
192
118
  key: 1,
193
119
  class: "px-3 py-2"
194
- }, lt = { class: "relative" }, st = ["placeholder"], nt = {
120
+ }, Ge = { class: "relative" }, He = ["placeholder"], qe = {
195
121
  key: 2,
196
122
  class: "border-b border-gray-100"
197
- }, rt = ["onClick"], at = {
123
+ }, Je = ["onClick"], Te = {
198
124
  key: 3,
199
125
  class: "flex items-center justify-between px-3 py-1.5 border-b border-gray-100"
200
- }, it = {
126
+ }, Xe = {
201
127
  key: 4,
202
128
  class: "flex justify-center py-4"
203
- }, ut = ["aria-selected", "onClick"], dt = {
129
+ }, Ye = ["aria-selected", "onClick"], Ze = {
204
130
  key: 0,
205
131
  xmlns: "http://www.w3.org/2000/svg",
206
132
  fill: "none",
@@ -208,10 +134,10 @@ const Zt = /* @__PURE__ */ Ae(Se, [["render", ze]]), Ee = ["onClick"], Re = { cl
208
134
  "stroke-width": "1.5",
209
135
  stroke: "currentColor",
210
136
  class: "w-4 h-4 text-blue-600 shrink-0"
211
- }, pt = {
137
+ }, Qe = {
212
138
  key: 1,
213
139
  class: "w-4 h-4 shrink-0"
214
- }, ct = ["aria-selected", "onClick", "onMouseenter"], vt = {
140
+ }, et = ["aria-selected", "onClick", "onMouseenter"], tt = {
215
141
  key: 0,
216
142
  xmlns: "http://www.w3.org/2000/svg",
217
143
  fill: "none",
@@ -219,10 +145,10 @@ const Zt = /* @__PURE__ */ Ae(Se, [["render", ze]]), Ee = ["onClick"], Re = { cl
219
145
  "stroke-width": "1.5",
220
146
  stroke: "currentColor",
221
147
  class: "w-4 h-4 text-blue-600 shrink-0"
222
- }, mt = {
148
+ }, ot = {
223
149
  key: 1,
224
150
  class: "w-4 h-4 shrink-0"
225
- }, ft = ["aria-selected", "onClick", "onMouseenter"], ht = {
151
+ }, lt = ["aria-selected", "onClick", "onMouseenter"], st = {
226
152
  key: 0,
227
153
  xmlns: "http://www.w3.org/2000/svg",
228
154
  fill: "none",
@@ -230,29 +156,29 @@ const Zt = /* @__PURE__ */ Ae(Se, [["render", ze]]), Ee = ["onClick"], Re = { cl
230
156
  "stroke-width": "1.5",
231
157
  stroke: "currentColor",
232
158
  class: "w-4 h-4 text-blue-600 shrink-0"
233
- }, yt = {
159
+ }, rt = {
234
160
  key: 1,
235
161
  class: "w-4 h-4 shrink-0"
236
- }, wt = {
162
+ }, nt = {
237
163
  key: 3,
238
164
  class: "px-3 py-4 text-sm text-gray-500 text-center"
239
- }, gt = { class: "pb-6" }, kt = {
165
+ }, at = { class: "pb-6" }, it = {
240
166
  key: 0,
241
167
  class: "relative px-3 py-3"
242
- }, bt = { class: "relative" }, xt = ["placeholder"], _t = {
168
+ }, ut = { class: "relative" }, dt = ["placeholder"], pt = {
243
169
  key: 1,
244
170
  class: "px-3 py-2"
245
- }, Ct = {
171
+ }, ct = {
246
172
  key: 2,
247
173
  class: "flex items-center justify-between px-3 py-2 border-b border-gray-100"
248
- }, $t = {
174
+ }, vt = {
249
175
  key: 3,
250
176
  class: "flex justify-center py-8"
251
- }, Mt = {
177
+ }, mt = {
252
178
  key: 4,
253
179
  class: "overflow-auto h-[60dvh] divide-y",
254
180
  role: "listbox"
255
- }, Vt = ["aria-selected"], Kt = {
181
+ }, ht = ["aria-selected"], yt = {
256
182
  key: 0,
257
183
  xmlns: "http://www.w3.org/2000/svg",
258
184
  fill: "none",
@@ -260,13 +186,13 @@ const Zt = /* @__PURE__ */ Ae(Se, [["render", ze]]), Ee = ["onClick"], Re = { cl
260
186
  "stroke-width": "1.5",
261
187
  stroke: "currentColor",
262
188
  class: "w-5 h-5 text-blue-600 shrink-0"
263
- }, At = {
189
+ }, ft = {
264
190
  key: 1,
265
191
  class: "w-5 h-5 shrink-0"
266
- }, Ot = {
192
+ }, wt = {
267
193
  key: 0,
268
194
  class: "px-3 pt-3 pb-2 text-xs font-semibold text-gray-400 uppercase tracking-wide"
269
- }, jt = ["aria-selected", "onClick"], It = {
195
+ }, kt = ["aria-selected", "onClick"], gt = {
270
196
  key: 0,
271
197
  xmlns: "http://www.w3.org/2000/svg",
272
198
  fill: "none",
@@ -274,10 +200,10 @@ const Zt = /* @__PURE__ */ Ae(Se, [["render", ze]]), Ee = ["onClick"], Re = { cl
274
200
  "stroke-width": "1.5",
275
201
  stroke: "currentColor",
276
202
  class: "w-5 h-5 text-blue-600 shrink-0"
277
- }, Bt = {
203
+ }, bt = {
278
204
  key: 1,
279
205
  class: "w-5 h-5 shrink-0"
280
- }, Lt = ["aria-selected", "onClick"], St = {
206
+ }, xt = ["aria-selected", "onClick"], Ct = {
281
207
  key: 0,
282
208
  xmlns: "http://www.w3.org/2000/svg",
283
209
  fill: "none",
@@ -285,128 +211,128 @@ const Zt = /* @__PURE__ */ Ae(Se, [["render", ze]]), Ee = ["onClick"], Re = { cl
285
211
  "stroke-width": "1.5",
286
212
  stroke: "currentColor",
287
213
  class: "w-5 h-5 text-blue-600 shrink-0"
288
- }, Dt = {
214
+ }, _t = {
289
215
  key: 1,
290
216
  class: "w-5 h-5 shrink-0"
291
- }, zt = {
217
+ }, $t = {
292
218
  key: 3,
293
219
  class: "px-3 py-8 text-sm text-gray-500 text-center"
294
- }, eo = /* @__PURE__ */ X({
220
+ }, qt = /* @__PURE__ */ ae({
295
221
  __name: "OneDropdownSelect",
296
- props: be,
222
+ props: ge,
297
223
  emits: ["update:modelValue", "search", "create"],
298
- setup(S, { emit: k }) {
299
- const n = S, p = ve(), m = k, w = $(!1);
300
- let h = null;
301
- Me(() => {
302
- h = window.matchMedia("(max-width: 767px)"), w.value = h.matches;
303
- const e = (l) => {
304
- w.value = l.matches;
224
+ setup(D, { emit: k }) {
225
+ const n = D, y = ie(), C = k, $ = A(!1);
226
+ let M = null;
227
+ ce(() => {
228
+ M = window.matchMedia("(max-width: 767px)"), $.value = M.matches;
229
+ const e = (o) => {
230
+ $.value = o.matches;
305
231
  };
306
- h.addEventListener("change", e), Ve(() => {
307
- h == null || h.removeEventListener("change", e);
232
+ M.addEventListener("change", e), ve(() => {
233
+ M == null || M.removeEventListener("change", e);
308
234
  });
309
235
  });
310
- const b = Oe(), A = $(null), f = () => {
311
- d.value = "", i.value = -1, b.open(), T(() => {
236
+ const g = xe(), z = A(null), m = () => {
237
+ c.value = "", i.value = -1, g.open(), N(() => {
312
238
  var e;
313
- (e = A.value) == null || e.focus();
239
+ (e = z.value) == null || e.focus();
314
240
  });
315
- }, d = $(""), i = $(-1), C = $(null), E = $(null), O = $({}), R = (e, l) => {
316
- e && (O.value[l] = e);
317
- }, D = j(() => n.allowEmpty ? 1 : 0), B = j(() => {
318
- if (!d.value.trim())
241
+ }, c = A(""), i = A(-1), j = A(null), E = A(null), _ = A({}), F = (e, o) => {
242
+ e && (_.value[o] = e);
243
+ }, L = I(() => n.allowEmpty ? 1 : 0), O = I(() => {
244
+ if (!c.value.trim())
319
245
  return n.items;
320
- const e = d.value.toLowerCase();
246
+ const e = c.value.toLowerCase();
321
247
  return n.items.filter(
322
- (l) => String(l[n.labelKey] ?? "").toLowerCase().includes(e)
248
+ (o) => String(o[n.labelKey] ?? "").toLowerCase().includes(e)
323
249
  );
324
- }), Y = j(() => {
250
+ }), q = I(() => {
325
251
  if (!n.groupKey)
326
252
  return [];
327
- const e = [], l = /* @__PURE__ */ new Map();
328
- let a = D.value;
329
- for (const r of B.value) {
330
- const _ = String(r[n.groupKey] ?? "");
331
- let c = l.get(_);
332
- c || (c = { label: _, entries: [] }, l.set(_, c), e.push(c)), c.entries.push({ item: r, flatIndex: a }), a++;
253
+ const e = [], o = /* @__PURE__ */ new Map();
254
+ let a = L.value;
255
+ for (const r of O.value) {
256
+ const w = String(r[n.groupKey] ?? "");
257
+ let d = o.get(w);
258
+ d || (d = { label: w, entries: [] }, o.set(w, d), e.push(d)), d.entries.push({ item: r, flatIndex: a }), a++;
333
259
  }
334
260
  return e;
335
- }), M = j(() => n.multiple ? (n.modelValue ?? []).length > 0 : n.modelValue !== null && n.modelValue !== void 0), F = j(() => {
261
+ }), b = I(() => n.multiple ? (n.modelValue ?? []).length > 0 : n.modelValue !== null && n.modelValue !== void 0), R = I(() => {
336
262
  if (n.multiple) {
337
263
  const e = n.modelValue ?? [];
338
264
  return e.length === 0 ? n.placeholder : e.length === 1 ? e[0][n.labelKey] ?? n.placeholder : `${e[0][n.labelKey]} +${e.length - 1}`;
339
265
  }
340
266
  return n.modelValue === null || n.modelValue === void 0 ? n.placeholder : n.modelValue[n.labelKey] ?? n.placeholder;
341
- }), x = (e) => n.modelValue ? n.multiple ? n.modelValue.some((a) => a[n.valueKey] === e[n.valueKey]) : n.modelValue[n.valueKey] === e[n.valueKey] : !1, Z = j(() => B.value.length + D.value), I = (e, l) => {
267
+ }), f = (e) => n.modelValue ? n.multiple ? n.modelValue.some((a) => a[n.valueKey] === e[n.valueKey]) : n.modelValue[n.valueKey] === e[n.valueKey] : !1, J = I(() => O.value.length + L.value), V = (e, o) => {
342
268
  if (n.multiple) {
343
269
  const a = (n.modelValue ?? []).slice();
344
270
  if (e === null) {
345
- m("update:modelValue", []);
271
+ C("update:modelValue", []);
346
272
  return;
347
273
  }
348
- const r = a.findIndex((_) => _[n.valueKey] === e[n.valueKey]);
349
- r >= 0 ? a.splice(r, 1) : a.push(e), m("update:modelValue", a);
274
+ const r = a.findIndex((w) => w[n.valueKey] === e[n.valueKey]);
275
+ r >= 0 ? a.splice(r, 1) : a.push(e), C("update:modelValue", a);
350
276
  return;
351
277
  }
352
- m("update:modelValue", e), l();
353
- }, Q = () => {
354
- m("update:modelValue", [...n.items]);
355
- }, ee = () => {
356
- m("update:modelValue", []);
357
- }, te = (e) => {
358
- m("create", d.value), e();
359
- }, me = () => {
360
- d.value = "", i.value = -1, T(() => {
278
+ C("update:modelValue", e), o();
279
+ }, T = () => {
280
+ C("update:modelValue", [...n.items]);
281
+ }, X = () => {
282
+ C("update:modelValue", []);
283
+ }, Y = (e) => {
284
+ C("create", c.value), e();
285
+ }, ue = () => {
286
+ c.value = "", i.value = -1, N(() => {
361
287
  var e;
362
- (e = C.value) == null || e.focus();
288
+ (e = j.value) == null || e.focus();
363
289
  });
364
- }, fe = () => {
365
- d.value = "", i.value = -1;
366
- }, oe = () => {
367
- i.value = 0, m("search", d.value);
368
- }, le = () => {
369
- T(() => {
370
- const e = O.value[i.value];
290
+ }, de = () => {
291
+ c.value = "", i.value = -1;
292
+ }, Z = () => {
293
+ i.value = 0, C("search", c.value);
294
+ }, Q = () => {
295
+ N(() => {
296
+ const e = _.value[i.value];
371
297
  e && e.scrollIntoView({ block: "nearest" });
372
298
  });
373
- }, he = (e, l) => {
299
+ }, pe = (e, o) => {
374
300
  switch (e.key) {
375
301
  case "ArrowDown":
376
- e.preventDefault(), i.value < Z.value - 1 ? i.value++ : i.value = 0, le();
302
+ e.preventDefault(), i.value < J.value - 1 ? i.value++ : i.value = 0, Q();
377
303
  break;
378
304
  case "ArrowUp":
379
- e.preventDefault(), i.value > 0 ? i.value-- : i.value = Z.value - 1, le();
305
+ e.preventDefault(), i.value > 0 ? i.value-- : i.value = J.value - 1, Q();
380
306
  break;
381
307
  case "Enter":
382
308
  if (e.preventDefault(), i.value >= 0)
383
309
  if (n.allowEmpty && i.value === 0)
384
- I(null, l);
310
+ V(null, o);
385
311
  else {
386
- const a = i.value - D.value, r = B.value[a];
387
- r && I(r, l);
312
+ const a = i.value - L.value, r = O.value[a];
313
+ r && V(r, o);
388
314
  }
389
315
  break;
390
316
  case "Escape":
391
- e.preventDefault(), l();
317
+ e.preventDefault(), o();
392
318
  break;
393
319
  }
394
320
  };
395
- return ce(d, () => {
321
+ return me(c, () => {
396
322
  i.value = 0;
397
- }), (e, l) => w.value ? (o(), s(V, { key: 1 }, [
398
- K(e.$slots, "button", U(W({ onToggle: f, isExpanded: y(b).isOpened.value, selectedLabel: F.value })), () => [
323
+ }), (e, o) => $.value ? (l(), s(x, { key: 1 }, [
324
+ K(e.$slots, "button", ee(te({ onToggle: m, isExpanded: v(g).isOpened.value, selectedLabel: R.value })), () => [
399
325
  t("button", {
400
- class: g(["inline-flex items-center justify-between gap-2 text-sm transition-colors", [
326
+ class: h(["inline-flex items-center justify-between gap-2 text-sm transition-colors", [
401
327
  e.view === "pill" ? "rounded-full bg-gray-100 px-3.5 py-1.5 hover:bg-gray-200 text-gray-700" : "rounded-lg border border-gray-300 bg-white px-3 py-2 hover:bg-gray-50 min-w-[180px]"
402
328
  ]]),
403
- style: J(e.maxWidth ? { maxWidth: e.maxWidth } : void 0),
404
- onClick: f
329
+ style: H(e.maxWidth ? { maxWidth: e.maxWidth } : void 0),
330
+ onClick: m
405
331
  }, [
406
332
  t("span", {
407
- class: g(["truncate", e.view === "pill" ? "" : M.value ? "text-gray-900" : "text-gray-500"])
408
- }, u(F.value), 3),
409
- l[12] || (l[12] = t("svg", {
333
+ class: h(["truncate", e.view === "pill" ? "" : b.value ? "text-gray-900" : "text-gray-500"])
334
+ }, u(R.value), 3),
335
+ o[12] || (o[12] = t("svg", {
410
336
  xmlns: "http://www.w3.org/2000/svg",
411
337
  fill: "none",
412
338
  viewBox: "0 0 24 24",
@@ -422,19 +348,19 @@ const Zt = /* @__PURE__ */ Ae(Se, [["render", ze]]), Ee = ["onClick"], Re = { cl
422
348
  ], -1))
423
349
  ], 6)
424
350
  ]),
425
- y(b).isOpened.value ? (o(), N(y(je), {
351
+ v(g).isOpened.value ? (l(), G(v(be), {
426
352
  key: 0,
427
- useModal: y(b),
353
+ useModal: v(g),
428
354
  title: e.title || e.placeholder,
429
355
  size: "sm",
430
356
  classModal: !0,
431
357
  titleCenter: !0
432
358
  }, {
433
- default: z(() => [
434
- t("div", gt, [
435
- e.searchable ? (o(), s("div", kt, [
436
- t("div", bt, [
437
- l[13] || (l[13] = t("svg", {
359
+ default: S(() => [
360
+ t("div", at, [
361
+ e.searchable ? (l(), s("div", it, [
362
+ t("div", ut, [
363
+ o[13] || (o[13] = t("svg", {
438
364
  xmlns: "http://www.w3.org/2000/svg",
439
365
  fill: "none",
440
366
  viewBox: "0 0 24 24",
@@ -448,25 +374,25 @@ const Zt = /* @__PURE__ */ Ae(Se, [["render", ze]]), Ee = ["onClick"], Re = { cl
448
374
  d: "M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"
449
375
  })
450
376
  ], -1)),
451
- q(t("input", {
377
+ oe(t("input", {
452
378
  ref_key: "mobileSearchInputRef",
453
- ref: A,
454
- "onUpdate:modelValue": l[2] || (l[2] = (a) => d.value = a),
379
+ ref: z,
380
+ "onUpdate:modelValue": o[2] || (o[2] = (a) => c.value = a),
455
381
  type: "text",
456
382
  placeholder: e.searchPlaceholder,
457
383
  class: "w-full rounded-md border border-gray-300 py-2 pl-8 pr-3 text-sm outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent",
458
- onInput: oe
459
- }, null, 40, xt), [
460
- [se, d.value]
384
+ onInput: Z
385
+ }, null, 40, dt), [
386
+ [le, c.value]
461
387
  ])
462
388
  ])
463
- ])) : v("", !0),
464
- e.createLabel ? (o(), s("div", _t, [
389
+ ])) : p("", !0),
390
+ e.createLabel ? (l(), s("div", pt, [
465
391
  t("button", {
466
392
  class: "w-full flex items-center justify-center gap-2 py-2 text-sm text-blue-700 hover:text-blue-500",
467
- onClick: l[3] || (l[3] = (a) => te(() => y(b).close()))
393
+ onClick: o[3] || (o[3] = (a) => Y(() => v(g).close()))
468
394
  }, [
469
- l[14] || (l[14] = t("svg", {
395
+ o[14] || (o[14] = t("svg", {
470
396
  xmlns: "http://www.w3.org/2000/svg",
471
397
  fill: "none",
472
398
  viewBox: "0 0 24 24",
@@ -482,29 +408,29 @@ const Zt = /* @__PURE__ */ Ae(Se, [["render", ze]]), Ee = ["onClick"], Re = { cl
482
408
  ], -1)),
483
409
  t("span", null, u(e.createLabel), 1)
484
410
  ])
485
- ])) : v("", !0),
486
- e.multiple ? (o(), s("div", Ct, [
411
+ ])) : p("", !0),
412
+ e.multiple ? (l(), s("div", ct, [
487
413
  t("button", {
488
414
  class: "text-sm text-blue-600 hover:text-blue-800 transition-colors",
489
- onClick: Q
490
- }, u(y(p)("ui.dropdown.selectAll")), 1),
491
- M.value ? (o(), s("button", {
415
+ onClick: T
416
+ }, u(v(y)("ui.dropdown.selectAll")), 1),
417
+ b.value ? (l(), s("button", {
492
418
  key: 0,
493
419
  class: "text-sm text-gray-500 hover:text-gray-700 transition-colors",
494
- onClick: ee
495
- }, u(y(p)("ui.dropdown.clear")), 1)) : v("", !0)
496
- ])) : v("", !0),
497
- e.isLoading ? (o(), s("div", $t, [...l[15] || (l[15] = [
420
+ onClick: X
421
+ }, u(v(y)("ui.dropdown.clear")), 1)) : p("", !0)
422
+ ])) : p("", !0),
423
+ e.isLoading ? (l(), s("div", vt, [...o[15] || (o[15] = [
498
424
  t("div", { class: "animate-spin w-6 h-6 border-2 border-blue-500 border-t-transparent rounded-full" }, null, -1)
499
- ])])) : (o(), s("div", Mt, [
500
- e.allowEmpty ? (o(), s("button", {
425
+ ])])) : (l(), s("div", mt, [
426
+ e.allowEmpty ? (l(), s("button", {
501
427
  key: 0,
502
- class: g(["flex items-center gap-3 w-full px-3 py-3 text-sm text-left hover:bg-gray-50 transition-colors", M.value ? "" : "bg-gray-50 font-medium"]),
428
+ class: h(["flex items-center gap-3 w-full px-3 py-3 text-sm text-left hover:bg-gray-50 transition-colors", b.value ? "" : "bg-gray-50 font-medium"]),
503
429
  role: "option",
504
- "aria-selected": !M.value,
505
- onClick: l[4] || (l[4] = (a) => I(null, () => y(b).close()))
430
+ "aria-selected": !b.value,
431
+ onClick: o[4] || (o[4] = (a) => V(null, () => v(g).close()))
506
432
  }, [
507
- M.value ? (o(), s("span", At)) : (o(), s("svg", Kt, [...l[16] || (l[16] = [
433
+ b.value ? (l(), s("span", ft)) : (l(), s("svg", yt, [...o[16] || (o[16] = [
508
434
  t("path", {
509
435
  "stroke-linecap": "round",
510
436
  "stroke-linejoin": "round",
@@ -512,102 +438,102 @@ const Zt = /* @__PURE__ */ Ae(Se, [["render", ze]]), Ee = ["onClick"], Re = { cl
512
438
  }, null, -1)
513
439
  ])])),
514
440
  t("span", null, u(e.emptyLabel ?? e.placeholder), 1)
515
- ], 10, Vt)) : v("", !0),
516
- e.groupKey ? (o(!0), s(V, { key: 1 }, L(Y.value, (a) => (o(), s(V, {
441
+ ], 10, ht)) : p("", !0),
442
+ e.groupKey ? (l(!0), s(x, { key: 1 }, B(q.value, (a) => (l(), s(x, {
517
443
  key: a.label
518
444
  }, [
519
- a.label ? (o(), s("div", Ot, u(a.label), 1)) : v("", !0),
520
- (o(!0), s(V, null, L(a.entries, (r) => (o(), s("button", {
445
+ a.label ? (l(), s("div", wt, u(a.label), 1)) : p("", !0),
446
+ (l(!0), s(x, null, B(a.entries, (r) => (l(), s("button", {
521
447
  key: r.item[e.valueKey],
522
- class: g(["flex items-center gap-3 w-full px-3 py-3 text-sm text-left hover:bg-gray-50 transition-colors break-words", x(r.item) ? "bg-gray-50 font-medium" : ""]),
448
+ class: h(["flex items-center gap-3 w-full px-3 py-3 text-sm text-left hover:bg-gray-50 transition-colors break-words", f(r.item) ? "bg-gray-50 font-medium" : ""]),
523
449
  role: "option",
524
- "aria-selected": x(r.item),
525
- onClick: (_) => I(r.item, () => y(b).close())
450
+ "aria-selected": f(r.item),
451
+ onClick: (w) => V(r.item, () => v(g).close())
526
452
  }, [
527
- x(r.item) ? (o(), s("svg", It, [...l[17] || (l[17] = [
453
+ f(r.item) ? (l(), s("svg", gt, [...o[17] || (o[17] = [
528
454
  t("path", {
529
455
  "stroke-linecap": "round",
530
456
  "stroke-linejoin": "round",
531
457
  d: "M4.5 12.75l6 6 9-13.5"
532
458
  }, null, -1)
533
- ])])) : (o(), s("span", Bt)),
459
+ ])])) : (l(), s("span", bt)),
534
460
  K(e.$slots, "item", P({ ref_for: !0 }, { item: r.item }), () => [
535
461
  t("span", null, u(r.item[e.labelKey]), 1)
536
462
  ])
537
- ], 10, jt))), 128))
538
- ], 64))), 128)) : (o(!0), s(V, { key: 2 }, L(B.value, (a) => (o(), s("button", {
463
+ ], 10, kt))), 128))
464
+ ], 64))), 128)) : (l(!0), s(x, { key: 2 }, B(O.value, (a) => (l(), s("button", {
539
465
  key: a[e.valueKey],
540
- class: g(["flex items-center gap-3 w-full px-3 py-3 text-sm text-left hover:bg-gray-50 transition-colors break-words", x(a) ? "bg-gray-50 font-medium" : ""]),
466
+ class: h(["flex items-center gap-3 w-full px-3 py-3 text-sm text-left hover:bg-gray-50 transition-colors break-words", f(a) ? "bg-gray-50 font-medium" : ""]),
541
467
  role: "option",
542
- "aria-selected": x(a),
543
- onClick: (r) => I(a, () => y(b).close())
468
+ "aria-selected": f(a),
469
+ onClick: (r) => V(a, () => v(g).close())
544
470
  }, [
545
- x(a) ? (o(), s("svg", St, [...l[18] || (l[18] = [
471
+ f(a) ? (l(), s("svg", Ct, [...o[18] || (o[18] = [
546
472
  t("path", {
547
473
  "stroke-linecap": "round",
548
474
  "stroke-linejoin": "round",
549
475
  d: "M4.5 12.75l6 6 9-13.5"
550
476
  }, null, -1)
551
- ])])) : (o(), s("span", Dt)),
477
+ ])])) : (l(), s("span", _t)),
552
478
  K(e.$slots, "item", P({ ref_for: !0 }, { item: a }), () => [
553
479
  t("span", null, u(a[e.labelKey]), 1)
554
480
  ])
555
- ], 10, Lt))), 128)),
556
- B.value.length === 0 && !e.allowEmpty ? (o(), s("div", zt, [
481
+ ], 10, xt))), 128)),
482
+ O.value.length === 0 && !e.allowEmpty ? (l(), s("div", $t, [
557
483
  K(e.$slots, "empty", {}, () => [
558
- ne(u(y(p)("ui.dropdown.nothingFound")), 1)
484
+ se(u(v(y)("ui.dropdown.nothingFound")), 1)
559
485
  ])
560
- ])) : v("", !0)
486
+ ])) : p("", !0)
561
487
  ]))
562
488
  ])
563
489
  ]),
564
490
  _: 3
565
- }, 8, ["useModal", "title"])) : v("", !0)
566
- ], 64)) : (o(), N(Le, {
491
+ }, 8, ["useModal", "title"])) : p("", !0)
492
+ ], 64)) : (l(), G(ke, {
567
493
  key: 0,
568
494
  stick: e.stick,
569
- onOpen: me,
570
- onClose: fe
495
+ onOpen: ue,
496
+ onClose: de
571
497
  }, {
572
- button: z(({ onToggle: a, isExpanded: r }) => [
573
- K(e.$slots, "button", U(W({ onToggle: a, isExpanded: r, selectedLabel: F.value })), () => [
498
+ button: S(({ onToggle: a, isExpanded: r }) => [
499
+ K(e.$slots, "button", ee(te({ onToggle: a, isExpanded: r, selectedLabel: R.value })), () => [
574
500
  t("button", {
575
- class: g(["inline-flex items-center justify-between gap-2 text-sm transition-colors", [
501
+ class: h(["inline-flex items-center justify-between gap-2 text-sm transition-colors", [
576
502
  e.view === "pill" ? "rounded-full bg-gray-100 px-3.5 py-1.5 hover:bg-gray-200 text-gray-700" : "rounded-lg border border-gray-300 bg-white px-3 py-2 hover:bg-gray-50 min-w-[180px]",
577
503
  e.view === "default" && r ? "ring-1 ring-blue-500 border-blue-500" : ""
578
504
  ]]),
579
- style: J(e.maxWidth ? { maxWidth: e.maxWidth } : void 0),
505
+ style: H(e.maxWidth ? { maxWidth: e.maxWidth } : void 0),
580
506
  onClick: a
581
507
  }, [
582
508
  t("span", {
583
- class: g(["truncate", e.view === "pill" ? "" : M.value ? "text-gray-900" : "text-gray-500"])
584
- }, u(F.value), 3),
585
- (o(), s("svg", {
509
+ class: h(["truncate", e.view === "pill" ? "" : b.value ? "text-gray-900" : "text-gray-500"])
510
+ }, u(R.value), 3),
511
+ (l(), s("svg", {
586
512
  xmlns: "http://www.w3.org/2000/svg",
587
513
  fill: "none",
588
514
  viewBox: "0 0 24 24",
589
515
  "stroke-width": "1.5",
590
516
  stroke: "currentColor",
591
- class: g(["w-4 h-4 text-gray-400 transition-transform shrink-0", r ? "rotate-180" : ""])
592
- }, [...l[5] || (l[5] = [
517
+ class: h(["w-4 h-4 text-gray-400 transition-transform shrink-0", r ? "rotate-180" : ""])
518
+ }, [...o[5] || (o[5] = [
593
519
  t("path", {
594
520
  "stroke-linecap": "round",
595
521
  "stroke-linejoin": "round",
596
522
  d: "M19.5 8.25l-7.5 7.5-7.5-7.5"
597
523
  }, null, -1)
598
524
  ])], 2))
599
- ], 14, Qe)
525
+ ], 14, Pe)
600
526
  ])
601
527
  ]),
602
- menu: z(({ onToggle: a }) => [
528
+ menu: S(({ onToggle: a }) => [
603
529
  t("div", {
604
530
  class: "min-w-[240px] w-full",
605
- onKeydown: (r) => he(r, a)
531
+ onKeydown: (r) => pe(r, a)
606
532
  }, [
607
- e.title ? (o(), s("div", tt, u(e.title), 1)) : v("", !0),
608
- e.searchable ? (o(), s("div", ot, [
609
- t("div", lt, [
610
- l[6] || (l[6] = t("svg", {
533
+ e.title ? (l(), s("div", Ue, u(e.title), 1)) : p("", !0),
534
+ e.searchable ? (l(), s("div", Ne, [
535
+ t("div", Ge, [
536
+ o[6] || (o[6] = t("svg", {
611
537
  xmlns: "http://www.w3.org/2000/svg",
612
538
  fill: "none",
613
539
  viewBox: "0 0 24 24",
@@ -621,25 +547,25 @@ const Zt = /* @__PURE__ */ Ae(Se, [["render", ze]]), Ee = ["onClick"], Re = { cl
621
547
  d: "M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"
622
548
  })
623
549
  ], -1)),
624
- q(t("input", {
550
+ oe(t("input", {
625
551
  ref_key: "searchInputRef",
626
- ref: C,
627
- "onUpdate:modelValue": l[0] || (l[0] = (r) => d.value = r),
552
+ ref: j,
553
+ "onUpdate:modelValue": o[0] || (o[0] = (r) => c.value = r),
628
554
  type: "text",
629
555
  placeholder: e.searchPlaceholder,
630
556
  class: "w-full rounded-md border border-gray-300 py-1.5 pl-8 pr-3 text-sm outline-none focus:ring-1 focus:ring-blue-500 focus:border-blue-500",
631
- onInput: oe
632
- }, null, 40, st), [
633
- [se, d.value]
557
+ onInput: Z
558
+ }, null, 40, He), [
559
+ [le, c.value]
634
560
  ])
635
561
  ])
636
- ])) : v("", !0),
637
- e.createLabel ? (o(), s("div", nt, [
562
+ ])) : p("", !0),
563
+ e.createLabel ? (l(), s("div", qe, [
638
564
  t("button", {
639
565
  class: "flex items-center gap-2 w-full px-3 py-2 text-sm text-blue-700 hover:bg-gray-50 transition-colors",
640
- onClick: (r) => te(a)
566
+ onClick: (r) => Y(a)
641
567
  }, [
642
- l[7] || (l[7] = t("svg", {
568
+ o[7] || (o[7] = t("svg", {
643
569
  xmlns: "http://www.w3.org/2000/svg",
644
570
  fill: "none",
645
571
  viewBox: "0 0 24 24",
@@ -654,20 +580,20 @@ const Zt = /* @__PURE__ */ Ae(Se, [["render", ze]]), Ee = ["onClick"], Re = { cl
654
580
  })
655
581
  ], -1)),
656
582
  t("span", null, u(e.createLabel), 1)
657
- ], 8, rt)
658
- ])) : v("", !0),
659
- e.multiple ? (o(), s("div", at, [
583
+ ], 8, Je)
584
+ ])) : p("", !0),
585
+ e.multiple ? (l(), s("div", Te, [
660
586
  t("button", {
661
587
  class: "text-xs text-blue-600 hover:text-blue-800 transition-colors",
662
- onClick: Q
663
- }, u(y(p)("ui.dropdown.selectAll")), 1),
664
- M.value ? (o(), s("button", {
588
+ onClick: T
589
+ }, u(v(y)("ui.dropdown.selectAll")), 1),
590
+ b.value ? (l(), s("button", {
665
591
  key: 0,
666
592
  class: "text-xs text-gray-500 hover:text-gray-700 transition-colors",
667
- onClick: ee
668
- }, u(y(p)("ui.dropdown.clear")), 1)) : v("", !0)
669
- ])) : v("", !0),
670
- e.isLoading ? (o(), s("div", it, [...l[8] || (l[8] = [
593
+ onClick: X
594
+ }, u(v(y)("ui.dropdown.clear")), 1)) : p("", !0)
595
+ ])) : p("", !0),
596
+ e.isLoading ? (l(), s("div", Xe, [...o[8] || (o[8] = [
671
597
  t("svg", {
672
598
  class: "animate-spin h-5 w-5 text-gray-400",
673
599
  xmlns: "http://www.w3.org/2000/svg",
@@ -688,26 +614,26 @@ const Zt = /* @__PURE__ */ Ae(Se, [["render", ze]]), Ee = ["onClick"], Re = { cl
688
614
  d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"
689
615
  })
690
616
  ], -1)
691
- ])])) : (o(), s("div", {
617
+ ])])) : (l(), s("div", {
692
618
  key: 5,
693
619
  ref_key: "listRef",
694
620
  ref: E,
695
621
  class: "max-h-[300px] overflow-y-auto",
696
622
  role: "listbox"
697
623
  }, [
698
- e.allowEmpty ? (o(), s("button", {
624
+ e.allowEmpty ? (l(), s("button", {
699
625
  key: 0,
700
- ref: (r) => R(r, 0),
701
- class: g(["flex items-center gap-2 w-full px-3 py-2 text-sm text-left transition-colors", [
702
- M.value ? "hover:bg-gray-50" : "bg-gray-100 font-medium",
626
+ ref: (r) => F(r, 0),
627
+ class: h(["flex items-center gap-2 w-full px-3 py-2 text-sm text-left transition-colors", [
628
+ b.value ? "hover:bg-gray-50" : "bg-gray-100 font-medium",
703
629
  i.value === 0 ? "bg-gray-50" : ""
704
630
  ]]),
705
631
  role: "option",
706
- "aria-selected": !M.value,
707
- onClick: (r) => I(null, a),
708
- onMouseenter: l[1] || (l[1] = (r) => i.value = 0)
632
+ "aria-selected": !b.value,
633
+ onClick: (r) => V(null, a),
634
+ onMouseenter: o[1] || (o[1] = (r) => i.value = 0)
709
635
  }, [
710
- M.value ? (o(), s("span", pt)) : (o(), s("svg", dt, [...l[9] || (l[9] = [
636
+ b.value ? (l(), s("span", Qe)) : (l(), s("svg", Ze, [...o[9] || (o[9] = [
711
637
  t("path", {
712
638
  "stroke-linecap": "round",
713
639
  "stroke-linejoin": "round",
@@ -715,82 +641,82 @@ const Zt = /* @__PURE__ */ Ae(Se, [["render", ze]]), Ee = ["onClick"], Re = { cl
715
641
  }, null, -1)
716
642
  ])])),
717
643
  t("span", null, u(e.emptyLabel ?? e.placeholder), 1)
718
- ], 42, ut)) : v("", !0),
719
- e.groupKey ? (o(!0), s(V, { key: 1 }, L(Y.value, (r, _) => (o(), s(V, {
644
+ ], 42, Ye)) : p("", !0),
645
+ e.groupKey ? (l(!0), s(x, { key: 1 }, B(q.value, (r, w) => (l(), s(x, {
720
646
  key: r.label
721
647
  }, [
722
- r.label ? (o(), s("div", {
648
+ r.label ? (l(), s("div", {
723
649
  key: 0,
724
- class: g(["px-3 pt-2 pb-1 text-xs font-semibold text-gray-500 uppercase tracking-wide", _ > 0 ? "border-t border-gray-100 mt-1" : ""])
725
- }, u(r.label), 3)) : v("", !0),
726
- (o(!0), s(V, null, L(r.entries, (c) => (o(), s("button", {
727
- key: c.item[e.valueKey],
650
+ class: h(["px-3 pt-2 pb-1 text-xs font-semibold text-gray-500 uppercase tracking-wide", w > 0 ? "border-t border-gray-100 mt-1" : ""])
651
+ }, u(r.label), 3)) : p("", !0),
652
+ (l(!0), s(x, null, B(r.entries, (d) => (l(), s("button", {
653
+ key: d.item[e.valueKey],
728
654
  ref_for: !0,
729
- ref: (G) => R(G, c.flatIndex),
730
- class: g(["flex items-center gap-2 w-full px-3 py-2 text-sm text-left transition-colors break-words", [
731
- x(c.item) ? "bg-gray-100 font-medium" : "hover:bg-gray-50",
732
- i.value === c.flatIndex ? "bg-gray-50" : ""
655
+ ref: (W) => F(W, d.flatIndex),
656
+ class: h(["flex items-center gap-2 w-full px-3 py-2 text-sm text-left transition-colors break-words", [
657
+ f(d.item) ? "bg-gray-100 font-medium" : "hover:bg-gray-50",
658
+ i.value === d.flatIndex ? "bg-gray-50" : ""
733
659
  ]]),
734
660
  role: "option",
735
- "aria-selected": x(c.item),
736
- onClick: (G) => I(c.item, a),
737
- onMouseenter: (G) => i.value = c.flatIndex
661
+ "aria-selected": f(d.item),
662
+ onClick: (W) => V(d.item, a),
663
+ onMouseenter: (W) => i.value = d.flatIndex
738
664
  }, [
739
- x(c.item) ? (o(), s("svg", vt, [...l[10] || (l[10] = [
665
+ f(d.item) ? (l(), s("svg", tt, [...o[10] || (o[10] = [
740
666
  t("path", {
741
667
  "stroke-linecap": "round",
742
668
  "stroke-linejoin": "round",
743
669
  d: "M4.5 12.75l6 6 9-13.5"
744
670
  }, null, -1)
745
- ])])) : (o(), s("span", mt)),
746
- K(e.$slots, "item", P({ ref_for: !0 }, { item: c.item }), () => [
747
- t("span", null, u(c.item[e.labelKey]), 1)
671
+ ])])) : (l(), s("span", ot)),
672
+ K(e.$slots, "item", P({ ref_for: !0 }, { item: d.item }), () => [
673
+ t("span", null, u(d.item[e.labelKey]), 1)
748
674
  ])
749
- ], 42, ct))), 128))
750
- ], 64))), 128)) : (o(!0), s(V, { key: 2 }, L(B.value, (r, _) => (o(), s("button", {
675
+ ], 42, et))), 128))
676
+ ], 64))), 128)) : (l(!0), s(x, { key: 2 }, B(O.value, (r, w) => (l(), s("button", {
751
677
  key: r[e.valueKey],
752
678
  ref_for: !0,
753
- ref: (c) => R(c, D.value + _),
754
- class: g(["flex items-center gap-2 w-full px-3 py-2 text-sm text-left transition-colors break-words", [
755
- x(r) ? "bg-gray-100 font-medium" : "hover:bg-gray-50",
756
- i.value === D.value + _ ? "bg-gray-50" : ""
679
+ ref: (d) => F(d, L.value + w),
680
+ class: h(["flex items-center gap-2 w-full px-3 py-2 text-sm text-left transition-colors break-words", [
681
+ f(r) ? "bg-gray-100 font-medium" : "hover:bg-gray-50",
682
+ i.value === L.value + w ? "bg-gray-50" : ""
757
683
  ]]),
758
684
  role: "option",
759
- "aria-selected": x(r),
760
- onClick: (c) => I(r, a),
761
- onMouseenter: (c) => i.value = D.value + _
685
+ "aria-selected": f(r),
686
+ onClick: (d) => V(r, a),
687
+ onMouseenter: (d) => i.value = L.value + w
762
688
  }, [
763
- x(r) ? (o(), s("svg", ht, [...l[11] || (l[11] = [
689
+ f(r) ? (l(), s("svg", st, [...o[11] || (o[11] = [
764
690
  t("path", {
765
691
  "stroke-linecap": "round",
766
692
  "stroke-linejoin": "round",
767
693
  d: "M4.5 12.75l6 6 9-13.5"
768
694
  }, null, -1)
769
- ])])) : (o(), s("span", yt)),
695
+ ])])) : (l(), s("span", rt)),
770
696
  K(e.$slots, "item", P({ ref_for: !0 }, { item: r }), () => [
771
697
  t("span", null, u(r[e.labelKey]), 1)
772
698
  ])
773
- ], 42, ft))), 128)),
774
- B.value.length === 0 && !e.allowEmpty ? (o(), s("div", wt, [
699
+ ], 42, lt))), 128)),
700
+ O.value.length === 0 && !e.allowEmpty ? (l(), s("div", nt, [
775
701
  K(e.$slots, "empty", {}, () => [
776
- ne(u(y(p)("ui.dropdown.nothingFound")), 1)
702
+ se(u(v(y)("ui.dropdown.nothingFound")), 1)
777
703
  ])
778
- ])) : v("", !0)
704
+ ])) : p("", !0)
779
705
  ], 512))
780
- ], 40, et)
706
+ ], 40, We)
781
707
  ]),
782
708
  _: 3
783
709
  }, 8, ["stick"]));
784
710
  }
785
711
  });
786
712
  export {
787
- lo as OneBrowserMenu,
788
- Qt as OneBrowserMenuGrid,
789
- ge as OneDropdown,
790
- Le as OneDropdownAuto,
791
- Zt as OneDropdownDivider,
792
- so as OneDropdownItem,
793
- eo as OneDropdownSelect,
794
- no as OneHelpMenu,
795
- ro as OneUserMenu
713
+ Xt as OneBrowserMenu,
714
+ Ht as OneBrowserMenuGrid,
715
+ fe as OneDropdown,
716
+ ke as OneDropdownAuto,
717
+ Gt as OneDropdownDivider,
718
+ Yt as OneDropdownItem,
719
+ qt as OneDropdownSelect,
720
+ Zt as OneHelpMenu,
721
+ Qt as OneUserMenu
796
722
  };