@vinicunca/taman-ui 0.1.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 (296) hide show
  1. package/README.md +95 -0
  2. package/dist/_virtual/_/plugin-vue/export-helper.mjs +8 -0
  3. package/dist/components/auth/index.d.ts +2 -0
  4. package/dist/components/auth/index.mjs +2 -0
  5. package/dist/components/auth/taman-auth-form.mjs +67 -0
  6. package/dist/components/auth/taman-auth-form.vue.d.ts +31 -0
  7. package/dist/components/back-to-top/index.mjs +2 -0
  8. package/dist/components/back-to-top/taman-back-to-top.mjs +70 -0
  9. package/dist/components/back-to-top/taman-back-to-top.vue.d.ts +18 -0
  10. package/dist/components/button/check-group-selection.mjs +17 -0
  11. package/dist/components/button/index.d.ts +4 -0
  12. package/dist/components/button/index.mjs +3 -0
  13. package/dist/components/button/taman-button-check-group.mjs +132 -0
  14. package/dist/components/button/taman-button-check-group.types.d.ts +22 -0
  15. package/dist/components/button/taman-button-check-group.vue.d.ts +41 -0
  16. package/dist/components/button/taman-button-icon.mjs +105 -0
  17. package/dist/components/button/taman-button-icon.vue.d.ts +17 -0
  18. package/dist/components/descriptions/index.d.ts +4 -0
  19. package/dist/components/descriptions/index.mjs +3 -0
  20. package/dist/components/descriptions/taman-description-cell.mjs +116 -0
  21. package/dist/components/descriptions/taman-description-item.mjs +10 -0
  22. package/dist/components/descriptions/taman-description-item.vue.d.ts +5 -0
  23. package/dist/components/descriptions/taman-description-row.mjs +131 -0
  24. package/dist/components/descriptions/taman-description.mjs +78 -0
  25. package/dist/components/descriptions/taman-description.types.d.ts +51 -0
  26. package/dist/components/descriptions/taman-description.vue.d.ts +23 -0
  27. package/dist/components/descriptions/use-taman-description.mjs +161 -0
  28. package/dist/components/file-upload/index.d.ts +3 -0
  29. package/dist/components/file-upload/index.mjs +2 -0
  30. package/dist/components/file-upload/taman-file-upload.mjs +88 -0
  31. package/dist/components/file-upload/taman-file-upload.types.d.ts +10 -0
  32. package/dist/components/file-upload/taman-file-upload.vue.d.ts +21 -0
  33. package/dist/components/full-screen/full-screen.mjs +27 -0
  34. package/dist/components/full-screen/full-screen.vue.d.ts +8 -0
  35. package/dist/components/full-screen/index.mjs +2 -0
  36. package/dist/components/icon/icon.mjs +27 -0
  37. package/dist/components/icon/icon.vue.d.ts +9 -0
  38. package/dist/components/icon/index.d.ts +2 -0
  39. package/dist/components/icon/index.mjs +2 -0
  40. package/dist/components/index.d.ts +34 -0
  41. package/dist/components/index.mjs +31 -0
  42. package/dist/components/input/index.d.ts +5 -0
  43. package/dist/components/input/index.mjs +4 -0
  44. package/dist/components/input/password-strength.d.ts +7 -0
  45. package/dist/components/input/password-strength.mjs +21 -0
  46. package/dist/components/input/taman-input-currency.mjs +76 -0
  47. package/dist/components/input/taman-input-currency.types.d.ts +8 -0
  48. package/dist/components/input/taman-input-currency.vue.d.ts +15 -0
  49. package/dist/components/input/taman-input-password.mjs +99 -0
  50. package/dist/components/input/taman-input-password.vue.d.ts +17 -0
  51. package/dist/components/input-date/format-calendar-input-value.mjs +26 -0
  52. package/dist/components/input-date/index.d.ts +3 -0
  53. package/dist/components/input-date/index.mjs +2 -0
  54. package/dist/components/input-date/taman-input-date.mjs +116 -0
  55. package/dist/components/input-date/taman-input-date.types.d.ts +14 -0
  56. package/dist/components/input-date/taman-input-date.vue.d.ts +21 -0
  57. package/dist/components/loading/index.d.ts +3 -0
  58. package/dist/components/loading/index.mjs +2 -0
  59. package/dist/components/loading/taman-loading.mjs +64 -0
  60. package/dist/components/loading/taman-loading.vue.d.ts +25 -0
  61. package/dist/components/loading/types.d.ts +13 -0
  62. package/dist/components/logo/index.mjs +2 -0
  63. package/dist/components/logo/taman-logo.mjs +60 -0
  64. package/dist/components/logo/taman-logo.vue.d.ts +32 -0
  65. package/dist/components/render-content/index.d.ts +2 -0
  66. package/dist/components/render-content/index.mjs +2 -0
  67. package/dist/components/render-content/render-content.mjs +42 -0
  68. package/dist/components/render-content/render-content.vue.d.ts +31 -0
  69. package/dist/components/scrollbar/index.d.ts +2 -0
  70. package/dist/components/scrollbar/index.mjs +2 -0
  71. package/dist/components/scrollbar/scrollbar.mjs +136 -0
  72. package/dist/components/scrollbar/scrollbar.vue.d.ts +50 -0
  73. package/dist/form/components/form-actions.mjs +151 -0
  74. package/dist/form/components/form-field-array.mjs +154 -0
  75. package/dist/form/components/form-field-array.types.d.ts +18 -0
  76. package/dist/form/form-render/form-render-field-collapsible.mjs +32 -0
  77. package/dist/form/form-render/form-render-field-control.mjs +44 -0
  78. package/dist/form/form-render/form-render-form-field.mjs +408 -0
  79. package/dist/form/form-render/form-render-form-label.mjs +46 -0
  80. package/dist/form/form-render/form-render-form.mjs +163 -0
  81. package/dist/form/form-render/form-render-group.mjs +89 -0
  82. package/dist/form/form-render/form-render.context.mjs +10 -0
  83. package/dist/form/form-render/form-render.dependencies.mjs +101 -0
  84. package/dist/form/form-render/form-render.helper.mjs +31 -0
  85. package/dist/form/form-render/form-render.schema.mjs +209 -0
  86. package/dist/form/form-render/index.mjs +4 -0
  87. package/dist/form/form.api.d.ts +54 -0
  88. package/dist/form/form.api.mjs +324 -0
  89. package/dist/form/form.built-ins.d.ts +36 -0
  90. package/dist/form/form.built-ins.mjs +48 -0
  91. package/dist/form/form.codec.d.ts +17 -0
  92. package/dist/form/form.codec.mjs +45 -0
  93. package/dist/form/form.config.d.ts +6 -0
  94. package/dist/form/form.config.mjs +43 -0
  95. package/dist/form/form.empty-value.d.ts +4 -0
  96. package/dist/form/form.empty-value.mjs +20 -0
  97. package/dist/form/form.field-name.mjs +25 -0
  98. package/dist/form/form.rule-registry.mjs +10 -0
  99. package/dist/form/form.runtime-field.mjs +56 -0
  100. package/dist/form/form.runtime.mjs +235 -0
  101. package/dist/form/form.schema-defaults.mjs +36 -0
  102. package/dist/form/form.types.d.ts +315 -0
  103. package/dist/form/form.use-delayed-flag.mjs +35 -0
  104. package/dist/form/form.use-form-context.mjs +44 -0
  105. package/dist/form/form.use-taman-form.d.ts +7 -0
  106. package/dist/form/form.use-taman-form.mjs +36 -0
  107. package/dist/form/index.d.ts +8 -0
  108. package/dist/form/index.mjs +6 -0
  109. package/dist/form/taman-use-form.mjs +146 -0
  110. package/dist/index.d.ts +63 -0
  111. package/dist/index.mjs +56 -0
  112. package/dist/layout/components/index.mjs +6 -0
  113. package/dist/layout/components/taman-core-button-collapse.mjs +38 -0
  114. package/dist/layout/components/taman-core-button-fixed.mjs +29 -0
  115. package/dist/layout/components/taman-core-layout-content.mjs +50 -0
  116. package/dist/layout/components/taman-core-layout-footer.mjs +38 -0
  117. package/dist/layout/components/taman-core-layout-header.mjs +48 -0
  118. package/dist/layout/components/taman-core-layout-sidebar.mjs +319 -0
  119. package/dist/layout/components/taman-core-layout-tabbar.mjs +21 -0
  120. package/dist/layout/composables/use-layout.mjs +31 -0
  121. package/dist/layout/composables/use-sidebar-drag.mjs +103 -0
  122. package/dist/layout/header-scroll-state.mjs +9 -0
  123. package/dist/layout/index.d.ts +3 -0
  124. package/dist/layout/index.mjs +2 -0
  125. package/dist/layout/taman-core-layout.d.ts +41 -0
  126. package/dist/layout/taman-core-layout.mjs +603 -0
  127. package/dist/layout/taman-core-layout.vue.d.ts +99 -0
  128. package/dist/menu/components/collapse-transition.mjs +82 -0
  129. package/dist/menu/components/index.mjs +5 -0
  130. package/dist/menu/components/normal-menu/index.d.ts +3 -0
  131. package/dist/menu/components/normal-menu/index.mjs +2 -0
  132. package/dist/menu/components/normal-menu/normal-menu.d.ts +11 -0
  133. package/dist/menu/components/normal-menu/normal-menu.mjs +50 -0
  134. package/dist/menu/components/normal-menu/normal-menu.vue.d.ts +19 -0
  135. package/dist/menu/components/taman-menu-badge-dot.mjs +23 -0
  136. package/dist/menu/components/taman-menu-badge.mjs +49 -0
  137. package/dist/menu/components/taman-menu-badge.vue.d.ts +9 -0
  138. package/dist/menu/components/taman-menu-item.mjs +124 -0
  139. package/dist/menu/components/taman-menu-root.mjs +250 -0
  140. package/dist/menu/components/taman-menu-sub-menu-content.mjs +83 -0
  141. package/dist/menu/components/taman-menu-sub-menu.mjs +216 -0
  142. package/dist/menu/composables/index.mjs +3 -0
  143. package/dist/menu/composables/use-menu-context.mjs +36 -0
  144. package/dist/menu/composables/use-menu-scroll.mjs +23 -0
  145. package/dist/menu/composables/use-menu.mjs +33 -0
  146. package/dist/menu/index.d.ts +7 -0
  147. package/dist/menu/index.mjs +5 -0
  148. package/dist/menu/menu.constants.mjs +5 -0
  149. package/dist/menu/menu.types.d.ts +63 -0
  150. package/dist/menu/menu.utils.mjs +27 -0
  151. package/dist/menu/taman-menu.mjs +41 -0
  152. package/dist/menu/taman-menu.vue.d.ts +12 -0
  153. package/dist/menu/taman-sub-menu.mjs +75 -0
  154. package/dist/popup/alert/alert-builder.d.ts +8 -0
  155. package/dist/popup/alert/alert-builder.mjs +98 -0
  156. package/dist/popup/alert/alert-overlay.mjs +55 -0
  157. package/dist/popup/alert/alert.d.ts +43 -0
  158. package/dist/popup/alert/alert.mjs +10 -0
  159. package/dist/popup/alert/alert.vue.d.ts +26 -0
  160. package/dist/popup/alert/alert2.mjs +238 -0
  161. package/dist/popup/alert/index.d.ts +4 -0
  162. package/dist/popup/alert/index.mjs +4 -0
  163. package/dist/popup/dialog/dialog.api.d.ts +23 -0
  164. package/dist/popup/dialog/dialog.api.mjs +133 -0
  165. package/dist/popup/dialog/dialog.mjs +336 -0
  166. package/dist/popup/dialog/dialog.types.d.ts +60 -0
  167. package/dist/popup/dialog/dialog.vue.d.ts +46 -0
  168. package/dist/popup/dialog/index.d.ts +4 -0
  169. package/dist/popup/dialog/index.mjs +3 -0
  170. package/dist/popup/dialog/use-dialog-draggable.mjs +93 -0
  171. package/dist/popup/dialog/use-taman-dialog.d.ts +13 -0
  172. package/dist/popup/dialog/use-taman-dialog.mjs +106 -0
  173. package/dist/popup/drawer/drawer.api.d.ts +23 -0
  174. package/dist/popup/drawer/drawer.api.mjs +124 -0
  175. package/dist/popup/drawer/drawer.mjs +277 -0
  176. package/dist/popup/drawer/drawer.types.d.ts +56 -0
  177. package/dist/popup/drawer/drawer.vue.d.ts +47 -0
  178. package/dist/popup/drawer/index.d.ts +4 -0
  179. package/dist/popup/drawer/index.mjs +3 -0
  180. package/dist/popup/drawer/use-taman-drawer.d.ts +13 -0
  181. package/dist/popup/drawer/use-taman-drawer.mjs +109 -0
  182. package/dist/popup/index.d.ts +13 -0
  183. package/dist/popup/index.mjs +11 -0
  184. package/dist/tabs/components/index.mjs +2 -0
  185. package/dist/tabs/components/taman-tabs.mjs +158 -0
  186. package/dist/tabs/components/widgets/index.d.ts +4 -0
  187. package/dist/tabs/components/widgets/index.mjs +4 -0
  188. package/dist/tabs/components/widgets/tool-more.mjs +45 -0
  189. package/dist/tabs/components/widgets/tool-more.vue.d.ts +7 -0
  190. package/dist/tabs/components/widgets/tool-refresh.mjs +25 -0
  191. package/dist/tabs/components/widgets/tool-refresh.vue.d.ts +9 -0
  192. package/dist/tabs/components/widgets/tool-screen.mjs +29 -0
  193. package/dist/tabs/components/widgets/tool-screen.vue.d.ts +12 -0
  194. package/dist/tabs/index.d.ts +8 -0
  195. package/dist/tabs/index.mjs +6 -0
  196. package/dist/tabs/strict-context-menu.d.ts +10 -0
  197. package/dist/tabs/tabs.types.d.ts +30 -0
  198. package/dist/tabs/taman-tabs-view.mjs +101 -0
  199. package/dist/tabs/taman-tabs-view.vue.d.ts +18 -0
  200. package/dist/tabs/use-tabs-drag.mjs +69 -0
  201. package/dist/tabs/use-tabs-view-scroll.mjs +114 -0
  202. package/dist/ui/alert-dialog/alert-dialog-action.mjs +21 -0
  203. package/dist/ui/alert-dialog/alert-dialog-action.vue.d.ts +16 -0
  204. package/dist/ui/alert-dialog/alert-dialog-cancel.mjs +21 -0
  205. package/dist/ui/alert-dialog/alert-dialog-cancel.vue.d.ts +16 -0
  206. package/dist/ui/alert-dialog/alert-dialog-content.mjs +111 -0
  207. package/dist/ui/alert-dialog/alert-dialog-content.vue.d.ts +49 -0
  208. package/dist/ui/alert-dialog/alert-dialog-description.mjs +30 -0
  209. package/dist/ui/alert-dialog/alert-dialog-description.vue.d.ts +20 -0
  210. package/dist/ui/alert-dialog/alert-dialog-footer.mjs +14 -0
  211. package/dist/ui/alert-dialog/alert-dialog-footer.vue.d.ts +15 -0
  212. package/dist/ui/alert-dialog/alert-dialog-header.mjs +14 -0
  213. package/dist/ui/alert-dialog/alert-dialog-header.vue.d.ts +15 -0
  214. package/dist/ui/alert-dialog/alert-dialog-overlay.mjs +29 -0
  215. package/dist/ui/alert-dialog/alert-dialog-root.mjs +23 -0
  216. package/dist/ui/alert-dialog/alert-dialog-root.vue.d.ts +23 -0
  217. package/dist/ui/alert-dialog/alert-dialog-title.mjs +30 -0
  218. package/dist/ui/alert-dialog/alert-dialog-title.vue.d.ts +20 -0
  219. package/dist/ui/alert-dialog/alert-dialog-trigger.mjs +21 -0
  220. package/dist/ui/alert-dialog/alert-dialog-trigger.vue.d.ts +16 -0
  221. package/dist/ui/alert-dialog/index.d.ts +10 -0
  222. package/dist/ui/alert-dialog/index.mjs +10 -0
  223. package/dist/ui/dialog/dialog-close.mjs +21 -0
  224. package/dist/ui/dialog/dialog-close.vue.d.ts +16 -0
  225. package/dist/ui/dialog/dialog-content.mjs +111 -0
  226. package/dist/ui/dialog/dialog-content.vue.d.ts +51 -0
  227. package/dist/ui/dialog/dialog-description.mjs +31 -0
  228. package/dist/ui/dialog/dialog-description.vue.d.ts +20 -0
  229. package/dist/ui/dialog/dialog-footer.mjs +14 -0
  230. package/dist/ui/dialog/dialog-footer.vue.d.ts +15 -0
  231. package/dist/ui/dialog/dialog-header.mjs +14 -0
  232. package/dist/ui/dialog/dialog-header.vue.d.ts +15 -0
  233. package/dist/ui/dialog/dialog-overlay.mjs +34 -0
  234. package/dist/ui/dialog/dialog-overlay.vue.d.ts +14 -0
  235. package/dist/ui/dialog/dialog-root.mjs +24 -0
  236. package/dist/ui/dialog/dialog-root.vue.d.ts +23 -0
  237. package/dist/ui/dialog/dialog-title.mjs +31 -0
  238. package/dist/ui/dialog/dialog-title.vue.d.ts +20 -0
  239. package/dist/ui/dialog/dialog-trigger.mjs +21 -0
  240. package/dist/ui/dialog/dialog-trigger.vue.d.ts +16 -0
  241. package/dist/ui/dialog/index.d.ts +10 -0
  242. package/dist/ui/dialog/index.mjs +10 -0
  243. package/dist/ui/dialog/use-dialog-state-events.mjs +60 -0
  244. package/dist/ui/form/form-control.mjs +27 -0
  245. package/dist/ui/form/form-control.vue.d.ts +15 -0
  246. package/dist/ui/form/form-description.mjs +27 -0
  247. package/dist/ui/form/form-description.vue.d.ts +19 -0
  248. package/dist/ui/form/form-field.mjs +37 -0
  249. package/dist/ui/form/form-field.vue.d.ts +27 -0
  250. package/dist/ui/form/form-item.mjs +27 -0
  251. package/dist/ui/form/form-item.vue.d.ts +19 -0
  252. package/dist/ui/form/form-label.mjs +41 -0
  253. package/dist/ui/form/form-label.vue.d.ts +20 -0
  254. package/dist/ui/form/form-message.mjs +28 -0
  255. package/dist/ui/form/form-message.vue.d.ts +9 -0
  256. package/dist/ui/form/index.d.ts +8 -0
  257. package/dist/ui/form/index.mjs +8 -0
  258. package/dist/ui/form/injection-keys.d.ts +13 -0
  259. package/dist/ui/form/injection-keys.mjs +5 -0
  260. package/dist/ui/form/use-form-field.mjs +27 -0
  261. package/dist/ui/index.d.ts +42 -0
  262. package/dist/ui/index.mjs +42 -0
  263. package/dist/ui/label/index.d.ts +2 -0
  264. package/dist/ui/label/index.mjs +2 -0
  265. package/dist/ui/label/label.mjs +31 -0
  266. package/dist/ui/label/label.vue.d.ts +20 -0
  267. package/dist/ui/scroll-area/index.d.ts +3 -0
  268. package/dist/ui/scroll-area/index.mjs +3 -0
  269. package/dist/ui/scroll-area/scroll-area.mjs +47 -0
  270. package/dist/ui/scroll-area/scroll-area.vue.d.ts +21 -0
  271. package/dist/ui/scroll-area/scroll-bar.mjs +38 -0
  272. package/dist/ui/scroll-area/scroll-bar.vue.d.ts +12 -0
  273. package/dist/ui/sheet/index.d.ts +8 -0
  274. package/dist/ui/sheet/index.mjs +8 -0
  275. package/dist/ui/sheet/sheet-close.mjs +21 -0
  276. package/dist/ui/sheet/sheet-close.vue.d.ts +16 -0
  277. package/dist/ui/sheet/sheet-content.mjs +105 -0
  278. package/dist/ui/sheet/sheet-content.vue.d.ts +48 -0
  279. package/dist/ui/sheet/sheet-description.mjs +30 -0
  280. package/dist/ui/sheet/sheet-description.vue.d.ts +20 -0
  281. package/dist/ui/sheet/sheet-footer.mjs +14 -0
  282. package/dist/ui/sheet/sheet-footer.vue.d.ts +15 -0
  283. package/dist/ui/sheet/sheet-header.mjs +14 -0
  284. package/dist/ui/sheet/sheet-header.vue.d.ts +15 -0
  285. package/dist/ui/sheet/sheet-overlay.mjs +32 -0
  286. package/dist/ui/sheet/sheet-root.mjs +24 -0
  287. package/dist/ui/sheet/sheet-root.vue.d.ts +23 -0
  288. package/dist/ui/sheet/sheet-title.mjs +31 -0
  289. package/dist/ui/sheet/sheet-title.vue.d.ts +20 -0
  290. package/dist/ui/sheet/sheet.variants.d.ts +27 -0
  291. package/dist/ui/sheet/sheet.variants.mjs +12 -0
  292. package/dist/unocss/content.d.ts +4 -0
  293. package/dist/unocss/content.mjs +9 -0
  294. package/dist/unocss/index.d.ts +2 -0
  295. package/dist/unocss/index.mjs +2 -0
  296. package/package.json +78 -0
@@ -0,0 +1,99 @@
1
+ import { TamanLayoutProps } from "./taman-core-layout.js";
2
+ //#region src/layout/taman-core-layout.vue.d.ts
3
+ type __VLS_Props = TamanLayoutProps;
4
+ type __VLS_ModelProps = {
5
+ 'sidebarDraggable'?: boolean;
6
+ 'sidebarCollapse'?: boolean;
7
+ 'sidebarExtraVisible'?: boolean;
8
+ 'sidebarExtraCollapse'?: boolean;
9
+ 'sidebarExpandOnHover'?: boolean;
10
+ 'sidebarEnable'?: boolean;
11
+ };
12
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
13
+ declare var __VLS_11: {}, __VLS_13: {}, __VLS_15: {}, __VLS_18: {}, __VLS_21: {}, __VLS_36: {}, __VLS_46: {}, __VLS_54: {}, __VLS_62: {}, __VLS_65: {}, __VLS_73: {}, __VLS_75: {};
14
+ type __VLS_Slots = {} & {
15
+ logo?: (props: typeof __VLS_11) => any;
16
+ } & {
17
+ 'mixed-menu'?: (props: typeof __VLS_13) => any;
18
+ } & {
19
+ menu?: (props: typeof __VLS_15) => any;
20
+ } & {
21
+ 'side-extra'?: (props: typeof __VLS_18) => any;
22
+ } & {
23
+ 'side-extra-title'?: (props: typeof __VLS_21) => any;
24
+ } & {
25
+ logo?: (props: typeof __VLS_36) => any;
26
+ } & {
27
+ header?: (props: typeof __VLS_46) => any;
28
+ } & {
29
+ tabbar?: (props: typeof __VLS_54) => any;
30
+ } & {
31
+ content?: (props: typeof __VLS_62) => any;
32
+ } & {
33
+ 'content-overlay'?: (props: typeof __VLS_65) => any;
34
+ } & {
35
+ footer?: (props: typeof __VLS_73) => any;
36
+ } & {
37
+ extra?: (props: typeof __VLS_75) => any;
38
+ };
39
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
40
+ "update:sidebarDraggable": (value: boolean) => any;
41
+ "update:sidebarCollapse": (value: boolean) => any;
42
+ "update:sidebarExtraVisible": (value: boolean | undefined) => any;
43
+ "update:sidebarExtraCollapse": (value: boolean) => any;
44
+ "update:sidebarExpandOnHover": (value: boolean) => any;
45
+ "update:sidebarEnable": (value: boolean) => any;
46
+ sideMouseLeave: () => any;
47
+ toggleSidebar: () => any;
48
+ "update:sidebarWidth": (value: number) => any;
49
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
50
+ "onUpdate:sidebarDraggable"?: ((value: boolean) => any) | undefined;
51
+ "onUpdate:sidebarCollapse"?: ((value: boolean) => any) | undefined;
52
+ "onUpdate:sidebarExtraVisible"?: ((value: boolean | undefined) => any) | undefined;
53
+ "onUpdate:sidebarExtraCollapse"?: ((value: boolean) => any) | undefined;
54
+ "onUpdate:sidebarExpandOnHover"?: ((value: boolean) => any) | undefined;
55
+ "onUpdate:sidebarEnable"?: ((value: boolean) => any) | undefined;
56
+ onSideMouseLeave?: (() => any) | undefined;
57
+ onToggleSidebar?: (() => any) | undefined;
58
+ "onUpdate:sidebarWidth"?: ((value: number) => any) | undefined;
59
+ }>, {
60
+ contentCompact: import("@vinicunca/taman-core/typings").TamanContentCompactType;
61
+ contentCompactWidth: number;
62
+ contentPadding: number;
63
+ contentPaddingBottom: number;
64
+ contentPaddingLeft: number;
65
+ contentPaddingRight: number;
66
+ contentPaddingTop: number;
67
+ footerEnable: boolean;
68
+ footerFixed: boolean;
69
+ footerHeight: number;
70
+ headerHeight: number;
71
+ headerHidden: boolean;
72
+ headerMode: import("@vinicunca/taman-core/typings").TamanLayoutHeaderModeType;
73
+ headerToggleSidebarButton: boolean;
74
+ headerVisible: boolean;
75
+ isMobile: boolean;
76
+ layout: import("@vinicunca/taman-core/typings").TamanLayoutType;
77
+ sidebarCollapsedButton: boolean;
78
+ sidebarCollapseShowTitle: boolean;
79
+ sidebarExtraCollapsedWidth: number;
80
+ sidebarFixedButton: boolean;
81
+ sidebarHidden: boolean;
82
+ sidebarMixedWidth: number;
83
+ sidebarTheme: import("@vinicunca/taman-core/typings").TamanThemeModeType;
84
+ sidebarThemeSub: import("@vinicunca/taman-core/typings").TamanThemeModeType;
85
+ sidebarWidth: number;
86
+ sideCollapseWidth: number;
87
+ tabbarEnable: boolean;
88
+ tabbarHeight: number;
89
+ zIndex: number;
90
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
91
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
92
+ declare const _default: typeof __VLS_export;
93
+ type __VLS_WithSlots<T, S> = T & {
94
+ new (): {
95
+ $slots: S;
96
+ };
97
+ };
98
+ //#endregion
99
+ export { _default as default };
@@ -0,0 +1,82 @@
1
+ import { Transition, createBlock, defineComponent, mergeProps, openBlock, renderSlot, toHandlers, withCtx } from "vue";
2
+ //#region src/menu/components/collapse-transition.vue
3
+ const _sfc_main = /*@__PURE__*/ defineComponent({
4
+ name: "CollapseTransition",
5
+ __name: "collapse-transition",
6
+ setup(__props) {
7
+ const reset = (el) => {
8
+ el.style.maxHeight = "";
9
+ el.style.overflow = el.dataset.oldOverflow;
10
+ el.style.paddingTop = el.dataset.oldPaddingTop;
11
+ el.style.paddingBottom = el.dataset.oldPaddingBottom;
12
+ };
13
+ const on = {
14
+ afterEnter(el) {
15
+ el.style.maxHeight = "";
16
+ el.style.overflow = el.dataset.oldOverflow;
17
+ },
18
+ afterLeave(el) {
19
+ reset(el);
20
+ },
21
+ beforeEnter(el) {
22
+ if (!el.dataset) el.dataset = {};
23
+ el.dataset.oldPaddingTop = el.style.paddingTop;
24
+ el.dataset.oldMarginTop = el.style.marginTop;
25
+ el.dataset.oldPaddingBottom = el.style.paddingBottom;
26
+ el.dataset.oldMarginBottom = el.style.marginBottom;
27
+ if (el.style.height) el.dataset.elExistsHeight = el.style.height;
28
+ el.style.maxHeight = 0;
29
+ el.style.paddingTop = 0;
30
+ el.style.marginTop = 0;
31
+ el.style.paddingBottom = 0;
32
+ el.style.marginBottom = 0;
33
+ },
34
+ beforeLeave(el) {
35
+ if (!el.dataset) el.dataset = {};
36
+ el.dataset.oldPaddingTop = el.style.paddingTop;
37
+ el.dataset.oldMarginTop = el.style.marginTop;
38
+ el.dataset.oldPaddingBottom = el.style.paddingBottom;
39
+ el.dataset.oldMarginBottom = el.style.marginBottom;
40
+ el.dataset.oldOverflow = el.style.overflow;
41
+ el.style.maxHeight = `${el.scrollHeight}px`;
42
+ el.style.overflow = "hidden";
43
+ },
44
+ enter(el) {
45
+ requestAnimationFrame(() => {
46
+ el.dataset.oldOverflow = el.style.overflow;
47
+ if (el.dataset.elExistsHeight) el.style.maxHeight = el.dataset.elExistsHeight;
48
+ else if (el.scrollHeight === 0) el.style.maxHeight = 0;
49
+ else el.style.maxHeight = `${el.scrollHeight}px`;
50
+ el.style.paddingTop = el.dataset.oldPaddingTop;
51
+ el.style.paddingBottom = el.dataset.oldPaddingBottom;
52
+ el.style.marginTop = el.dataset.oldMarginTop;
53
+ el.style.marginBottom = el.dataset.oldMarginBottom;
54
+ el.style.overflow = "hidden";
55
+ });
56
+ },
57
+ enterCancelled(el) {
58
+ reset(el);
59
+ },
60
+ leave(el) {
61
+ if (el.scrollHeight !== 0) {
62
+ el.style.maxHeight = 0;
63
+ el.style.paddingTop = 0;
64
+ el.style.paddingBottom = 0;
65
+ el.style.marginTop = 0;
66
+ el.style.marginBottom = 0;
67
+ }
68
+ },
69
+ leaveCancelled(el) {
70
+ reset(el);
71
+ }
72
+ };
73
+ return (_ctx, _cache) => {
74
+ return openBlock(), createBlock(Transition, mergeProps({ name: "collapse-transition" }, toHandlers(on)), {
75
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
76
+ _: 3
77
+ }, 16);
78
+ };
79
+ }
80
+ });
81
+ //#endregion
82
+ export { _sfc_main as default };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from "./taman-menu-badge.mjs";
2
+ import _sfc_main$1 from "./taman-menu-item.mjs";
3
+ import _sfc_main$2 from "./taman-menu-sub-menu.mjs";
4
+ import _sfc_main$3 from "./taman-menu-root.mjs";
5
+ export { _sfc_main as TamanMenuBadge, _sfc_main$1 as TamanMenuItem, _sfc_main$3 as TamanMenuRoot, _sfc_main$2 as TamanMenuSubMenu };
@@ -0,0 +1,3 @@
1
+ import { NormalMenuProps } from "./normal-menu.js";
2
+ import _default from "./normal-menu.vue.js";
3
+ export { _default as NormalMenu, type NormalMenuProps };
@@ -0,0 +1,2 @@
1
+ import _sfc_main from "./normal-menu.mjs";
2
+ export { _sfc_main as NormalMenu };
@@ -0,0 +1,11 @@
1
+ import { TamanMenuRecordRaw } from "@vinicunca/taman-core/typings";
2
+ //#region src/menu/components/normal-menu/normal-menu.d.ts
3
+ interface NormalMenuProps {
4
+ activePath?: string;
5
+ collapse?: boolean;
6
+ menus?: Array<TamanMenuRecordRaw>;
7
+ rounded?: boolean;
8
+ theme?: 'dark' | 'light';
9
+ }
10
+ //#endregion
11
+ export type { NormalMenuProps };
@@ -0,0 +1,50 @@
1
+ import _sfc_main$1 from "../../../components/icon/icon.mjs";
2
+ import "../../../index.mjs";
3
+ import { Fragment, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeClass, openBlock, renderList, toDisplayString, unref } from "vue";
4
+ //#region src/menu/components/normal-menu/normal-menu.vue
5
+ const _hoisted_1 = ["onClick", "onMouseenter"];
6
+ const _hoisted_2 = { class: "taman-normal-menu__name truncate" };
7
+ const _sfc_main = /*@__PURE__*/ defineComponent({
8
+ name: "TamanNormalMenu",
9
+ __name: "normal-menu",
10
+ props: {
11
+ activePath: { default: "" },
12
+ collapse: {
13
+ type: Boolean,
14
+ default: false
15
+ },
16
+ menus: { default: () => [] },
17
+ rounded: { type: Boolean },
18
+ theme: { default: "dark" }
19
+ },
20
+ emits: ["enter", "select"],
21
+ setup(__props, { emit: __emit }) {
22
+ const props = __props;
23
+ const emit = __emit;
24
+ function menuIcon(menu) {
25
+ return props.activePath === menu.path ? menu.activeIcon || menu.icon : menu.icon;
26
+ }
27
+ return (_ctx, _cache) => {
28
+ return openBlock(), createElementBlock("ul", { class: normalizeClass([[
29
+ __props.theme,
30
+ `is-${__props.theme}`,
31
+ {
32
+ "is-collapse": __props.collapse,
33
+ "is-rounded": __props.rounded
34
+ }
35
+ ], "taman-normal-menu relative"]) }, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.menus, (menu) => {
36
+ return openBlock(), createElementBlock("li", {
37
+ key: menu.path,
38
+ class: normalizeClass(["taman-normal-menu__item", { "is-active": __props.activePath === menu.path }]),
39
+ onClick: () => emit("select", menu),
40
+ onMouseenter: () => emit("enter", menu)
41
+ }, [createVNode(unref(_sfc_main$1), {
42
+ class: "taman-normal-menu__icon",
43
+ icon: menuIcon(menu)
44
+ }, null, 8, ["icon"]), createElementVNode("span", _hoisted_2, toDisplayString(menu.name), 1)], 42, _hoisted_1);
45
+ }), 128))], 2);
46
+ };
47
+ }
48
+ });
49
+ //#endregion
50
+ export { _sfc_main as default };
@@ -0,0 +1,19 @@
1
+ import { NormalMenuProps } from "./normal-menu.js";
2
+ import { TamanMenuRecordRaw } from "@vinicunca/taman-core/typings";
3
+ //#region src/menu/components/normal-menu/normal-menu.vue.d.ts
4
+ interface Props extends NormalMenuProps {}
5
+ declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
+ select: (args_0: TamanMenuRecordRaw) => any;
7
+ enter: (args_0: TamanMenuRecordRaw) => any;
8
+ }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
9
+ onSelect?: ((args_0: TamanMenuRecordRaw) => any) | undefined;
10
+ onEnter?: ((args_0: TamanMenuRecordRaw) => any) | undefined;
11
+ }>, {
12
+ menus: Array<TamanMenuRecordRaw>;
13
+ collapse: boolean;
14
+ theme: "dark" | "light";
15
+ activePath: string;
16
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
+ declare const _default: typeof __VLS_export;
18
+ //#endregion
19
+ export { _default as default };
@@ -0,0 +1,23 @@
1
+ import { createElementBlock, createElementVNode, defineComponent, normalizeClass, normalizeStyle, openBlock } from "vue";
2
+ //#region src/menu/components/taman-menu-badge-dot.vue
3
+ const _hoisted_1 = { class: "mr-1 flex size-1.5 relative" };
4
+ const _sfc_main = /*@__PURE__*/ defineComponent({
5
+ __name: "taman-menu-badge-dot",
6
+ props: {
7
+ dotClass: { default: "" },
8
+ dotStyle: { default: () => ({}) }
9
+ },
10
+ setup(__props) {
11
+ return (_ctx, _cache) => {
12
+ return openBlock(), createElementBlock("span", _hoisted_1, [createElementVNode("span", {
13
+ class: normalizeClass([__props.dotClass, "rounded-full opacity-75 inline-flex size-full absolute animate-ping"]),
14
+ style: normalizeStyle(__props.dotStyle)
15
+ }, null, 6), createElementVNode("span", {
16
+ class: normalizeClass([__props.dotClass, "rounded-full inline-flex size-1.5 relative"]),
17
+ style: normalizeStyle(__props.dotStyle)
18
+ }, null, 6)]);
19
+ };
20
+ }
21
+ });
22
+ //#endregion
23
+ export { _sfc_main as default };
@@ -0,0 +1,49 @@
1
+ import _sfc_main$1 from "./taman-menu-badge-dot.mjs";
2
+ import { computed, createBlock, createCommentVNode, createElementBlock, defineComponent, normalizeClass, normalizeStyle, openBlock, toDisplayString } from "vue";
3
+ import { isValidColor } from "@vinicunca/taman-core/color";
4
+ //#region src/menu/components/taman-menu-badge.vue
5
+ const _sfc_main = /*@__PURE__*/ defineComponent({
6
+ __name: "taman-menu-badge",
7
+ props: {
8
+ hasChildren: { type: Boolean },
9
+ badge: {},
10
+ badgeType: {},
11
+ badgeVariants: {}
12
+ },
13
+ setup(__props) {
14
+ const props = __props;
15
+ const variantsMap = {
16
+ default: "bg-green-500",
17
+ destructive: "bg-error",
18
+ primary: "bg-primary",
19
+ success: "bg-green-500",
20
+ warning: "bg-yellow-500"
21
+ };
22
+ const isDot = computed(() => props.badgeType === "dot");
23
+ const badgeClass = computed(() => {
24
+ const { badgeVariants } = props;
25
+ if (!badgeVariants) return variantsMap.default;
26
+ return variantsMap[badgeVariants] || badgeVariants;
27
+ });
28
+ const badgeStyle = computed(() => {
29
+ if (badgeClass.value && isValidColor(badgeClass.value)) return { backgroundColor: badgeClass.value };
30
+ return {};
31
+ });
32
+ return (_ctx, _cache) => {
33
+ return isDot.value || __props.badge ? (openBlock(), createElementBlock("span", {
34
+ key: 0,
35
+ class: normalizeClass([_ctx.$attrs.class, "absolute"])
36
+ }, [isDot.value ? (openBlock(), createBlock(_sfc_main$1, {
37
+ key: 0,
38
+ "dot-class": badgeClass.value,
39
+ "dot-style": badgeStyle.value
40
+ }, null, 8, ["dot-class", "dot-style"])) : (openBlock(), createElementBlock("div", {
41
+ key: 1,
42
+ class: normalizeClass([badgeClass.value, "text-primary-foreground text-[10px] px-1.5 py-0.5 rounded-xl flex-center"]),
43
+ style: normalizeStyle(badgeStyle.value)
44
+ }, toDisplayString(__props.badge), 7))], 2)) : createCommentVNode("v-if", true);
45
+ };
46
+ }
47
+ });
48
+ //#endregion
49
+ export { _sfc_main as default };
@@ -0,0 +1,9 @@
1
+ import { TamanMenuRecordBadgeRaw } from "@vinicunca/taman-core/typings";
2
+ //#region src/menu/components/taman-menu-badge.vue.d.ts
3
+ interface Props extends TamanMenuRecordBadgeRaw {
4
+ hasChildren?: boolean;
5
+ }
6
+ declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
+ declare const _default: typeof __VLS_export;
8
+ //#endregion
9
+ export { _default as default };
@@ -0,0 +1,124 @@
1
+ import _sfc_main$1 from "../../components/icon/icon.mjs";
2
+ import "../../index.mjs";
3
+ import _sfc_main$2 from "./taman-menu-badge.mjs";
4
+ import { TAMAN_MENU_ROOT_NAME } from "../menu.constants.mjs";
5
+ import { useMenu } from "../composables/use-menu.mjs";
6
+ import { useMenuContext, useSubMenuContext } from "../composables/use-menu-context.mjs";
7
+ import "../composables/index.mjs";
8
+ import "./index.mjs";
9
+ import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeProps, normalizeClass, onBeforeUnmount, onMounted, openBlock, reactive, renderSlot, resolveComponent, unref, useSlots, vShow, withCtx, withDirectives, withModifiers } from "vue";
10
+ import { isHttpUrl } from "@vinicunca/taman-core/utils";
11
+ import PTooltip from "pohon-ui/components/Tooltip.vue";
12
+ import qs from "qs";
13
+ //#region src/menu/components/taman-menu-item.vue
14
+ const _hoisted_1 = ["href"];
15
+ const _hoisted_2 = { class: "taman-menu-tooltip__trigger" };
16
+ const _hoisted_3 = {
17
+ key: 0,
18
+ class: "taman-menu__name"
19
+ };
20
+ const _hoisted_4 = { class: "taman-menu-item__content" };
21
+ const _sfc_main = /*@__PURE__*/ defineComponent({
22
+ name: "TamanMenuItem",
23
+ __name: "taman-menu-item",
24
+ props: {
25
+ activeIcon: {},
26
+ disabled: {
27
+ type: Boolean,
28
+ default: false
29
+ },
30
+ icon: {},
31
+ path: {},
32
+ query: {},
33
+ badge: {},
34
+ badgeType: {},
35
+ badgeVariants: {}
36
+ },
37
+ emits: ["click"],
38
+ setup(__props, { emit: __emit }) {
39
+ const props = __props;
40
+ const emit = __emit;
41
+ const slots = useSlots();
42
+ const rootMenu = useMenuContext();
43
+ const subMenu = useSubMenuContext();
44
+ const { parentMenu, parentPaths } = useMenu();
45
+ const active = computed(() => props.path === rootMenu?.activePath);
46
+ const menuIcon = computed(() => active.value ? props.activeIcon || props.icon : props.icon);
47
+ const item = reactive({
48
+ active,
49
+ parentPaths: parentPaths.value,
50
+ path: props.path || "",
51
+ query: props.query
52
+ });
53
+ const isHttp = computed(() => isHttpUrl(item.parentPaths.at(-1)));
54
+ const isTopLevelMenuItem = computed(() => parentMenu.value?.type.name === TAMAN_MENU_ROOT_NAME);
55
+ const collapseShowTitle = computed(() => rootMenu.props?.collapseShowTitle && isTopLevelMenuItem.value && rootMenu.props.collapse);
56
+ const showTooltip = computed(() => rootMenu.props.mode === "vertical" && isTopLevelMenuItem.value && rootMenu.props?.collapse && slots.title);
57
+ /**
58
+ * Menu item click handler
59
+ */
60
+ function handleClick() {
61
+ if (props.disabled) return;
62
+ rootMenu?.handleMenuItemClick?.({
63
+ parentPaths: parentPaths.value,
64
+ path: props.path
65
+ });
66
+ emit("click", item);
67
+ }
68
+ onMounted(() => {
69
+ subMenu?.addSubMenu?.(item);
70
+ rootMenu?.addMenuItem?.(item);
71
+ });
72
+ onBeforeUnmount(() => {
73
+ subMenu?.removeSubMenu?.(item);
74
+ rootMenu?.removeMenuItem?.(item);
75
+ });
76
+ return (_ctx, _cache) => {
77
+ const _component_router_link = resolveComponent("router-link");
78
+ return openBlock(), createBlock(_component_router_link, {
79
+ custom: "",
80
+ to: (item.parentPaths.at(-1) ?? "") + (item?.query ? `?${unref(qs).stringify(item?.query)}` : "")
81
+ }, {
82
+ default: withCtx(({ href }) => [createElementVNode("a", {
83
+ href: isHttp.value ? item.parentPaths.at(-1) : href,
84
+ class: normalizeClass(["taman-menu-item", [unref(rootMenu).theme, {
85
+ "is-active": active.value,
86
+ "is-disabled": __props.disabled,
87
+ "is-collapse-show-title": collapseShowTitle.value
88
+ }]]),
89
+ role: "menuitem",
90
+ onClick: withModifiers(handleClick, ["prevent", "stop"])
91
+ }, [showTooltip.value ? (openBlock(), createBlock(PTooltip, {
92
+ key: 0,
93
+ ui: { content: unref(rootMenu).theme },
94
+ content: { side: "right" }
95
+ }, {
96
+ content: withCtx(() => [renderSlot(_ctx.$slots, "title")]),
97
+ default: withCtx(() => [createElementVNode("div", _hoisted_2, [
98
+ createVNode(unref(_sfc_main$1), {
99
+ class: "taman-menu__icon",
100
+ icon: menuIcon.value
101
+ }, null, 8, ["icon"]),
102
+ renderSlot(_ctx.$slots, "default"),
103
+ collapseShowTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3, [renderSlot(_ctx.$slots, "title")])) : createCommentVNode("v-if", true)
104
+ ])]),
105
+ _: 3
106
+ }, 8, ["ui"])) : createCommentVNode("v-if", true), withDirectives(createElementVNode("div", _hoisted_4, [
107
+ unref(rootMenu).props.mode !== "horizontal" ? (openBlock(), createBlock(unref(_sfc_main$2), mergeProps({
108
+ key: 0,
109
+ class: "right-2"
110
+ }, props), null, 16)) : createCommentVNode("v-if", true),
111
+ createVNode(unref(_sfc_main$1), {
112
+ class: "taman-menu__icon",
113
+ icon: menuIcon.value
114
+ }, null, 8, ["icon"]),
115
+ renderSlot(_ctx.$slots, "default"),
116
+ renderSlot(_ctx.$slots, "title")
117
+ ], 512), [[vShow, !showTooltip.value]])], 10, _hoisted_1)]),
118
+ _: 3
119
+ }, 8, ["to"]);
120
+ };
121
+ }
122
+ });
123
+ //#endregion
124
+ export { _sfc_main as default };