@vc-shell/framework 1.0.128 → 1.0.130

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 (331) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/core/api/platform.ts +514 -92
  3. package/core/composables/index.ts +2 -1
  4. package/core/composables/useApiClient/index.ts +1 -7
  5. package/core/composables/useAssets/index.ts +0 -6
  6. package/core/composables/useBeforeUnload/index.ts +20 -0
  7. package/core/composables/useMenuService/index.ts +96 -0
  8. package/core/composables/useNotifications/index.ts +29 -40
  9. package/core/composables/useSettings/index.ts +23 -29
  10. package/core/composables/useUser/index.ts +61 -132
  11. package/core/directives/loading/styles.css +5 -5
  12. package/core/interceptors/index.ts +75 -0
  13. package/core/plugins/i18n/index.ts +1 -0
  14. package/core/plugins/modularity/index.ts +63 -20
  15. package/core/plugins/moment/moment.ts +2 -2
  16. package/core/plugins/signalR/index.ts +23 -3
  17. package/core/types/index.ts +18 -35
  18. package/core/utilities/kebabToCamel.ts +1 -1
  19. package/dist/core/api/platform.d.ts +125 -87
  20. package/dist/core/api/platform.d.ts.map +1 -1
  21. package/dist/core/composables/index.d.ts +2 -1
  22. package/dist/core/composables/index.d.ts.map +1 -1
  23. package/dist/core/composables/useApiClient/index.d.ts.map +1 -1
  24. package/dist/core/composables/useAssets/index.d.ts.map +1 -1
  25. package/dist/core/composables/useBeforeUnload/index.d.ts +5 -0
  26. package/dist/core/composables/useBeforeUnload/index.d.ts.map +1 -0
  27. package/dist/core/composables/useMenuService/index.d.ts +16 -0
  28. package/dist/core/composables/useMenuService/index.d.ts.map +1 -0
  29. package/dist/core/composables/useNotifications/index.d.ts.map +1 -1
  30. package/dist/core/composables/useSettings/index.d.ts +2 -2
  31. package/dist/core/composables/useSettings/index.d.ts.map +1 -1
  32. package/dist/core/composables/useUser/index.d.ts +8 -6
  33. package/dist/core/composables/useUser/index.d.ts.map +1 -1
  34. package/dist/core/interceptors/index.d.ts +3 -0
  35. package/dist/core/interceptors/index.d.ts.map +1 -0
  36. package/dist/core/plugins/i18n/index.d.ts.map +1 -1
  37. package/dist/core/plugins/modularity/index.d.ts +1 -1
  38. package/dist/core/plugins/modularity/index.d.ts.map +1 -1
  39. package/dist/core/plugins/moment/moment.d.ts.map +1 -1
  40. package/dist/core/plugins/signalR/index.d.ts.map +1 -1
  41. package/dist/core/types/index.d.ts +16 -29
  42. package/dist/core/types/index.d.ts.map +1 -1
  43. package/dist/{framework.mjs → framework.js} +32147 -32235
  44. package/dist/index.css +1 -1
  45. package/dist/index.d.ts +5 -2
  46. package/dist/index.d.ts.map +1 -1
  47. package/dist/shared/components/app-switcher/components/vc-app-switcher/index.d.ts +1 -19
  48. package/dist/shared/components/app-switcher/components/vc-app-switcher/index.d.ts.map +1 -1
  49. package/dist/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue.d.ts +3 -0
  50. package/dist/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue.d.ts.map +1 -1
  51. package/dist/shared/components/blade-navigation/components/vc-blade-navigation/index.d.ts +1 -70
  52. package/dist/shared/components/blade-navigation/components/vc-blade-navigation/index.d.ts.map +1 -1
  53. package/dist/shared/components/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue.d.ts +1 -82
  54. package/dist/shared/components/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue.d.ts.map +1 -1
  55. package/dist/shared/components/blade-navigation/components/vc-blade-view/vc-blade-view.d.ts +28 -0
  56. package/dist/shared/components/blade-navigation/components/vc-blade-view/vc-blade-view.d.ts.map +1 -0
  57. package/dist/shared/components/blade-navigation/composables/useBladeNavigation/index.d.ts +11 -27
  58. package/dist/shared/components/blade-navigation/composables/useBladeNavigation/index.d.ts.map +1 -1
  59. package/dist/shared/components/blade-navigation/injectionKeys.d.ts +4 -0
  60. package/dist/shared/components/blade-navigation/injectionKeys.d.ts.map +1 -0
  61. package/dist/shared/components/blade-navigation/plugin.d.ts +4 -1
  62. package/dist/shared/components/blade-navigation/plugin.d.ts.map +1 -1
  63. package/dist/shared/components/blade-navigation/types/index.d.ts +48 -35
  64. package/dist/shared/components/blade-navigation/types/index.d.ts.map +1 -1
  65. package/dist/shared/components/error-interceptor/index.d.ts +33 -67
  66. package/dist/shared/components/error-interceptor/index.d.ts.map +1 -1
  67. package/dist/shared/components/index.d.ts +2 -0
  68. package/dist/shared/components/index.d.ts.map +1 -1
  69. package/dist/shared/components/language-selector/index.d.ts +1 -49
  70. package/dist/shared/components/language-selector/index.d.ts.map +1 -1
  71. package/dist/shared/components/language-selector/language-selector.vue.d.ts +1 -40
  72. package/dist/shared/components/language-selector/language-selector.vue.d.ts.map +1 -1
  73. package/dist/{ui/components/organisms/vc-notification-dropdown → shared/components/notification-dropdown}/_internal/notification/notification.vue.d.ts +2 -2
  74. package/dist/shared/components/notification-dropdown/_internal/notification/notification.vue.d.ts.map +1 -0
  75. package/dist/shared/components/notification-dropdown/index.d.ts +7 -0
  76. package/dist/shared/components/notification-dropdown/index.d.ts.map +1 -0
  77. package/dist/shared/components/notification-dropdown/notification-dropdown.vue.d.ts +3 -0
  78. package/dist/shared/components/notification-dropdown/notification-dropdown.vue.d.ts.map +1 -0
  79. package/dist/shared/components/notification-template/index.d.ts +91 -0
  80. package/dist/shared/components/notification-template/index.d.ts.map +1 -0
  81. package/dist/{ui/components/organisms/vc-notification-template/vc-notification-template.vue.d.ts → shared/components/notification-template/notification-template.vue.d.ts} +2 -2
  82. package/dist/shared/components/notification-template/notification-template.vue.d.ts.map +1 -0
  83. package/dist/shared/components/notifications/components/notification-container/index.d.ts +1 -1
  84. package/dist/shared/components/notifications/components/notification-container/index.d.ts.map +1 -1
  85. package/dist/shared/components/popup-handler/composables/usePopup/index.d.ts.map +1 -1
  86. package/dist/shared/components/user-dropdown-button/index.d.ts +10 -16
  87. package/dist/shared/components/user-dropdown-button/index.d.ts.map +1 -1
  88. package/dist/shared/components/user-dropdown-button/user-dropdown-button.vue.d.ts +7 -4
  89. package/dist/shared/components/user-dropdown-button/user-dropdown-button.vue.d.ts.map +1 -1
  90. package/dist/shared/index.d.ts +4 -1
  91. package/dist/shared/index.d.ts.map +1 -1
  92. package/dist/shared/modules/assets/components/assets-details/assets-details.vue.d.ts +3 -0
  93. package/dist/shared/modules/assets/components/assets-details/assets-details.vue.d.ts.map +1 -1
  94. package/dist/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts +3 -0
  95. package/dist/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts.map +1 -1
  96. package/dist/shared/modules/dynamic/components/fields/InputCurrency.d.ts.map +1 -1
  97. package/dist/shared/modules/dynamic/composables/useFilterBuilder/index.d.ts.map +1 -1
  98. package/dist/shared/modules/dynamic/factories/base/useDetailsFactory.d.ts.map +1 -1
  99. package/dist/shared/modules/dynamic/factories/types/index.d.ts +3 -1
  100. package/dist/shared/modules/dynamic/factories/types/index.d.ts.map +1 -1
  101. package/dist/shared/modules/dynamic/index.d.ts +1 -3
  102. package/dist/shared/modules/dynamic/index.d.ts.map +1 -1
  103. package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts +12 -10
  104. package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts.map +1 -1
  105. package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts +5 -2
  106. package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts.map +1 -1
  107. package/dist/shared/modules/dynamic/types/index.d.ts +16 -1
  108. package/dist/shared/modules/dynamic/types/index.d.ts.map +1 -1
  109. package/dist/shared/pages/InvitePage/components/invite/Invite.vue.d.ts.map +1 -1
  110. package/dist/shared/pages/LoginPage/components/login/Login.vue.d.ts.map +1 -1
  111. package/dist/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue.d.ts.map +1 -1
  112. package/dist/shared/utilities/vueUtils.d.ts.map +1 -1
  113. package/dist/tailwind.config.d.ts +56 -0
  114. package/dist/tailwind.config.d.ts.map +1 -0
  115. package/dist/tsconfig.tsbuildinfo +1 -1
  116. package/dist/ui/components/atoms/vc-badge/index.d.ts +32 -67
  117. package/dist/ui/components/atoms/vc-badge/index.d.ts.map +1 -1
  118. package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts.map +1 -1
  119. package/dist/ui/components/atoms/vc-button/vc-button.vue.d.ts +6 -1
  120. package/dist/ui/components/atoms/vc-button/vc-button.vue.d.ts.map +1 -1
  121. package/dist/ui/components/atoms/vc-card/index.d.ts +66 -102
  122. package/dist/ui/components/atoms/vc-card/index.d.ts.map +1 -1
  123. package/dist/ui/components/atoms/vc-card/vc-card.stories.d.ts +7 -0
  124. package/dist/ui/components/atoms/vc-card/vc-card.stories.d.ts.map +1 -0
  125. package/dist/ui/components/atoms/vc-card/vc-card.vue.d.ts +7 -1
  126. package/dist/ui/components/atoms/vc-card/vc-card.vue.d.ts.map +1 -1
  127. package/dist/ui/components/atoms/vc-checkbox/index.d.ts +91 -129
  128. package/dist/ui/components/atoms/vc-checkbox/index.d.ts.map +1 -1
  129. package/dist/ui/components/atoms/vc-checkbox/vc-checkbox.vue.d.ts +7 -1
  130. package/dist/ui/components/atoms/vc-checkbox/vc-checkbox.vue.d.ts.map +1 -1
  131. package/dist/ui/components/atoms/vc-col/vc-col.vue.d.ts +6 -1
  132. package/dist/ui/components/atoms/vc-col/vc-col.vue.d.ts.map +1 -1
  133. package/dist/ui/components/atoms/vc-container/index.d.ts +36 -71
  134. package/dist/ui/components/atoms/vc-container/index.d.ts.map +1 -1
  135. package/dist/ui/components/atoms/vc-container/vc-container.vue.d.ts.map +1 -1
  136. package/dist/ui/components/atoms/vc-hint/index.d.ts +8 -38
  137. package/dist/ui/components/atoms/vc-hint/index.d.ts.map +1 -1
  138. package/dist/ui/components/atoms/vc-hint/vc-hint.vue.d.ts.map +1 -1
  139. package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts +3 -0
  140. package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts.map +1 -1
  141. package/dist/ui/components/atoms/vc-image/vc-image.vue.d.ts +3 -0
  142. package/dist/ui/components/atoms/vc-image/vc-image.vue.d.ts.map +1 -1
  143. package/dist/ui/components/atoms/vc-info-row/vc-info-row.vue.d.ts +3 -0
  144. package/dist/ui/components/atoms/vc-info-row/vc-info-row.vue.d.ts.map +1 -1
  145. package/dist/ui/components/atoms/vc-label/index.d.ts +42 -74
  146. package/dist/ui/components/atoms/vc-label/index.d.ts.map +1 -1
  147. package/dist/ui/components/atoms/vc-label/vc-label.vue.d.ts +7 -1
  148. package/dist/ui/components/atoms/vc-label/vc-label.vue.d.ts.map +1 -1
  149. package/dist/ui/components/atoms/vc-link/index.d.ts +32 -66
  150. package/dist/ui/components/atoms/vc-link/index.d.ts.map +1 -1
  151. package/dist/ui/components/atoms/vc-link/vc-link.vue.d.ts.map +1 -1
  152. package/dist/ui/components/atoms/vc-loading/vc-loading.vue.d.ts.map +1 -1
  153. package/dist/ui/components/atoms/vc-progress/index.d.ts +30 -63
  154. package/dist/ui/components/atoms/vc-progress/index.d.ts.map +1 -1
  155. package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts +3 -0
  156. package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts.map +1 -1
  157. package/dist/ui/components/atoms/vc-row/vc-row.vue.d.ts +3 -1
  158. package/dist/ui/components/atoms/vc-row/vc-row.vue.d.ts.map +1 -1
  159. package/dist/ui/components/atoms/vc-status/vc-status.vue.d.ts +6 -1
  160. package/dist/ui/components/atoms/vc-status/vc-status.vue.d.ts.map +1 -1
  161. package/dist/ui/components/atoms/vc-status-icon/vc-status-icon.vue.d.ts.map +1 -1
  162. package/dist/ui/components/atoms/vc-switch/vc-switch.vue.d.ts.map +1 -1
  163. package/dist/ui/components/atoms/vc-video/vc-video.vue.d.ts +3 -0
  164. package/dist/ui/components/atoms/vc-video/vc-video.vue.d.ts.map +1 -1
  165. package/dist/ui/components/atoms/vc-widget/vc-widget.vue.d.ts.map +1 -1
  166. package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue.d.ts +3 -0
  167. package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue.d.ts.map +1 -1
  168. package/dist/ui/components/molecules/vc-code-editor/index.d.ts +59 -98
  169. package/dist/ui/components/molecules/vc-code-editor/index.d.ts.map +1 -1
  170. package/dist/ui/components/molecules/vc-code-editor/vc-code-editor.vue.d.ts +1 -0
  171. package/dist/ui/components/molecules/vc-code-editor/vc-code-editor.vue.d.ts.map +1 -1
  172. package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts +4 -1
  173. package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts.map +1 -1
  174. package/dist/ui/components/molecules/vc-field/_internal/vc-field-type/vc-field-type.vue.d.ts.map +1 -1
  175. package/dist/ui/components/molecules/vc-field/vc-field.vue.d.ts +3 -0
  176. package/dist/ui/components/molecules/vc-field/vc-field.vue.d.ts.map +1 -1
  177. package/dist/ui/components/molecules/vc-file-upload/index.d.ts +67 -105
  178. package/dist/ui/components/molecules/vc-file-upload/index.d.ts.map +1 -1
  179. package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts +3 -0
  180. package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts.map +1 -1
  181. package/dist/ui/components/molecules/vc-form/index.d.ts +8 -38
  182. package/dist/ui/components/molecules/vc-form/index.d.ts.map +1 -1
  183. package/dist/ui/components/molecules/vc-form/vc-form.vue.d.ts.map +1 -1
  184. package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts +56 -1
  185. package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts.map +1 -1
  186. package/dist/ui/components/molecules/vc-input-currency/index.d.ts +159 -214
  187. package/dist/ui/components/molecules/vc-input-currency/index.d.ts.map +1 -1
  188. package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts +3 -0
  189. package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts.map +1 -1
  190. package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts +27 -9
  191. package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts.map +1 -1
  192. package/dist/ui/components/molecules/vc-notification/vc-notification.vue.d.ts.map +1 -1
  193. package/dist/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts +3 -0
  194. package/dist/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts.map +1 -1
  195. package/dist/ui/components/molecules/vc-rating/index.d.ts +59 -96
  196. package/dist/ui/components/molecules/vc-rating/index.d.ts.map +1 -1
  197. package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts +3 -0
  198. package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts.map +1 -1
  199. package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts +257 -8
  200. package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts.map +1 -1
  201. package/dist/ui/components/molecules/vc-slider/index.d.ts +55 -91
  202. package/dist/ui/components/molecules/vc-slider/index.d.ts.map +1 -1
  203. package/dist/ui/components/molecules/vc-slider/vc-slider.vue.d.ts +3 -0
  204. package/dist/ui/components/molecules/vc-slider/vc-slider.vue.d.ts.map +1 -1
  205. package/dist/ui/components/molecules/vc-textarea/vc-textarea.vue.d.ts +6 -1
  206. package/dist/ui/components/molecules/vc-textarea/vc-textarea.vue.d.ts.map +1 -1
  207. package/dist/ui/components/organisms/index.d.ts +0 -2
  208. package/dist/ui/components/organisms/index.d.ts.map +1 -1
  209. package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue.d.ts +2 -4
  210. package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue.d.ts.map +1 -1
  211. package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue.d.ts +10 -7
  212. package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue.d.ts.map +1 -1
  213. package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue.d.ts +10 -18
  214. package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue.d.ts.map +1 -1
  215. package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/vc-app-menu.vue.d.ts +16 -16
  216. package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/vc-app-menu.vue.d.ts.map +1 -1
  217. package/dist/ui/components/organisms/vc-app/index.d.ts +1 -292
  218. package/dist/ui/components/organisms/vc-app/index.d.ts.map +1 -1
  219. package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts +17 -56
  220. package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts.map +1 -1
  221. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-header/vc-blade-header.vue.d.ts.map +1 -1
  222. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue.d.ts +3 -0
  223. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue.d.ts.map +1 -1
  224. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/vc-blade-toolbar.vue.d.ts +3 -0
  225. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/vc-blade-toolbar.vue.d.ts.map +1 -1
  226. package/dist/ui/components/organisms/vc-blade/index.d.ts +89 -131
  227. package/dist/ui/components/organisms/vc-blade/index.d.ts.map +1 -1
  228. package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts +3 -0
  229. package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts.map +1 -1
  230. package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts +21 -18
  231. package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts.map +1 -1
  232. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts +4 -1
  233. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts.map +1 -1
  234. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts +4 -1
  235. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts.map +1 -1
  236. package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts +3 -0
  237. package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts.map +1 -1
  238. package/dist/ui/components/organisms/vc-login-form/index.d.ts +32 -66
  239. package/dist/ui/components/organisms/vc-login-form/index.d.ts.map +1 -1
  240. package/dist/ui/components/organisms/vc-login-form/vc-login-form.vue.d.ts +3 -0
  241. package/dist/ui/components/organisms/vc-login-form/vc-login-form.vue.d.ts.map +1 -1
  242. package/dist/ui/components/organisms/vc-popup/_internal/vc-popup-error/vc-popup-error.vue.d.ts.map +1 -1
  243. package/dist/ui/components/organisms/vc-popup/_internal/vc-popup-warning/vc-popup-warning.vue.d.ts.map +1 -1
  244. package/dist/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue.d.ts.map +1 -1
  245. package/dist/ui/components/organisms/vc-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue.d.ts +3 -0
  246. package/dist/ui/components/organisms/vc-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue.d.ts.map +1 -1
  247. package/dist/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts +3 -0
  248. package/dist/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts.map +1 -1
  249. package/dist/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue.d.ts +3 -0
  250. package/dist/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue.d.ts.map +1 -1
  251. package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts +57 -6
  252. package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts.map +1 -1
  253. package/dist/ui/types/index.d.ts +5 -45
  254. package/dist/ui/types/index.d.ts.map +1 -1
  255. package/package.json +26 -30
  256. package/shared/components/app-switcher/components/vc-app-switcher/index.ts +1 -3
  257. package/shared/components/app-switcher/composables/useAppSwitcher/index.ts +2 -2
  258. package/shared/components/blade-navigation/components/vc-blade-navigation/index.ts +1 -3
  259. package/shared/components/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue +46 -157
  260. package/shared/components/blade-navigation/components/vc-blade-view/vc-blade-view.ts +81 -0
  261. package/shared/components/blade-navigation/composables/useBladeNavigation/index.ts +323 -261
  262. package/shared/components/blade-navigation/injectionKeys.ts +4 -0
  263. package/shared/components/blade-navigation/plugin.ts +8 -10
  264. package/shared/components/blade-navigation/types/index.ts +53 -44
  265. package/shared/components/index.ts +2 -0
  266. package/shared/components/language-selector/language-selector.vue +12 -12
  267. package/{ui/components/organisms/vc-notification-dropdown → shared/components/notification-dropdown}/_internal/notification/notification.vue +6 -5
  268. package/shared/components/notification-dropdown/index.ts +10 -0
  269. package/{ui/components/organisms/vc-notification-dropdown/vc-notification-dropdown.vue → shared/components/notification-dropdown/notification-dropdown.vue} +21 -17
  270. package/shared/components/notification-template/index.ts +10 -0
  271. package/{ui/components/organisms/vc-notification-template/vc-notification-template.vue → shared/components/notification-template/notification-template.vue} +2 -2
  272. package/shared/components/popup-handler/composables/usePopup/index.ts +29 -9
  273. package/shared/components/user-dropdown-button/user-dropdown-button.vue +58 -17
  274. package/shared/index.ts +3 -2
  275. package/shared/locales/en.json +7 -0
  276. package/shared/modules/assets/components/assets-details/assets-details.vue +5 -0
  277. package/shared/modules/assets-manager/components/assets-manager/assets-manager.vue +8 -5
  278. package/shared/modules/dynamic/components/fields/GalleryField.ts +7 -7
  279. package/shared/modules/dynamic/components/fields/InputCurrency.ts +2 -1
  280. package/shared/modules/dynamic/composables/useFilterBuilder/index.ts +42 -36
  281. package/shared/modules/dynamic/factories/base/useDetailsFactory.ts +5 -3
  282. package/shared/modules/dynamic/factories/types/index.ts +6 -2
  283. package/shared/modules/dynamic/helpers/override.ts +38 -32
  284. package/shared/modules/dynamic/helpers/safeIn.ts +1 -1
  285. package/shared/modules/dynamic/index.ts +12 -12
  286. package/shared/modules/dynamic/pages/dynamic-blade-form.vue +96 -57
  287. package/shared/modules/dynamic/pages/dynamic-blade-list.vue +133 -118
  288. package/shared/modules/dynamic/types/index.ts +16 -1
  289. package/shared/pages/InvitePage/components/invite/Invite.vue +2 -2
  290. package/shared/pages/LoginPage/components/login/Login.vue +23 -16
  291. package/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue +3 -3
  292. package/shared/utilities/vueUtils.ts +7 -7
  293. package/tailwind.config.ts +50 -0
  294. package/ui/components/atoms/vc-button/vc-button.vue +1 -1
  295. package/ui/components/atoms/vc-card/vc-card.stories.ts +25 -0
  296. package/ui/components/atoms/vc-card/vc-card.vue +1 -1
  297. package/ui/components/atoms/vc-container/vc-container.vue +1 -1
  298. package/ui/components/atoms/vc-icon/vc-icon.vue +1 -1
  299. package/ui/components/molecules/vc-editor/vc-editor.vue +2 -7
  300. package/ui/components/molecules/vc-notification/vc-notification.vue +2 -2
  301. package/ui/components/molecules/vc-select/vc-select.vue +13 -13
  302. package/ui/components/organisms/index.ts +0 -2
  303. package/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue +25 -42
  304. package/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue +123 -25
  305. package/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue +11 -103
  306. package/ui/components/organisms/vc-app/_internal/vc-app-menu/vc-app-menu.vue +34 -52
  307. package/ui/components/organisms/vc-app/index.ts +1 -12
  308. package/ui/components/organisms/vc-app/vc-app.stories.ts +36 -36
  309. package/ui/components/organisms/vc-app/vc-app.vue +122 -61
  310. package/ui/components/organisms/vc-blade/vc-blade.vue +5 -13
  311. package/ui/components/organisms/vc-table/vc-table.vue +9 -9
  312. package/ui/locales/en.json +2 -4
  313. package/ui/types/index.ts +7 -51
  314. package/core/composables/useMenuComposer/index.ts +0 -25
  315. package/dist/core/composables/useMenuComposer/index.d.ts +0 -12
  316. package/dist/core/composables/useMenuComposer/index.d.ts.map +0 -1
  317. package/dist/ui/components/organisms/vc-notification-dropdown/_internal/notification/notification.vue.d.ts.map +0 -1
  318. package/dist/ui/components/organisms/vc-notification-dropdown/index.d.ts +0 -38
  319. package/dist/ui/components/organisms/vc-notification-dropdown/index.d.ts.map +0 -1
  320. package/dist/ui/components/organisms/vc-notification-dropdown/vc-notification-dropdown.vue.d.ts +0 -21
  321. package/dist/ui/components/organisms/vc-notification-dropdown/vc-notification-dropdown.vue.d.ts.map +0 -1
  322. package/dist/ui/components/organisms/vc-notification-template/index.d.ts +0 -2
  323. package/dist/ui/components/organisms/vc-notification-template/index.d.ts.map +0 -1
  324. package/dist/ui/components/organisms/vc-notification-template/vc-notification-template.vue.d.ts.map +0 -1
  325. package/dist/utils/isInDemoMode.d.ts +0 -2
  326. package/dist/utils/isInDemoMode.d.ts.map +0 -1
  327. package/dist/vite.config.d.ts +0 -3
  328. package/dist/vite.config.d.ts.map +0 -1
  329. package/tailwind.config.js +0 -50
  330. package/ui/components/organisms/vc-notification-dropdown/index.ts +0 -3
  331. package/ui/components/organisms/vc-notification-template/index.ts +0 -1
@@ -2,10 +2,13 @@
2
2
  <div
3
3
  class="vc-app-menu-item"
4
4
  :class="[
5
- { 'vc-app-menu-item_active': isActive && !children?.length },
6
- { 'vc-app-menu-item_no-hover': children?.length },
5
+ {
6
+ 'vc-app-menu-item_active': isActive(url ?? '') && !children?.length,
7
+ 'vc-app-menu-item_no-hover': !children?.length,
8
+ 'vc-app-menu-item_child-opened': isOpened,
9
+ },
7
10
  ]"
8
- @click="$emit('onClick')"
11
+ @click="onMenuItemClick"
9
12
  >
10
13
  <div
11
14
  class="vc-app-menu-item__handler"
@@ -25,72 +28,150 @@
25
28
  size="m"
26
29
  />
27
30
  </div>
28
- <div class="vc-app-menu-item__title">
31
+ <div class="vc-app-menu-item__title tw-capitalize">
29
32
  {{ title }}
30
33
  <VcIcon
31
- v-if="children?.length"
34
+ v-if="!!children?.length || false"
32
35
  class="vc-app-menu-item__title-icon"
33
- icon="fas fa-chevron-down"
36
+ :icon="`fas fa-chevron-${isOpened ? 'up' : 'down'}`"
34
37
  size="xs"
35
38
  ></VcIcon>
36
39
  </div>
37
40
  </div>
41
+ <!-- Nested menu items -->
42
+ <div
43
+ v-show="isOpened"
44
+ class="vc-app-menu-item__child"
45
+ >
46
+ <template
47
+ v-for="(nested, i) in children"
48
+ :key="i"
49
+ >
50
+ <router-link
51
+ :to="nested.url"
52
+ custom
53
+ >
54
+ <div
55
+ :key="i"
56
+ :class="[
57
+ {
58
+ 'vc-app-menu-item__child-item_active': isActive(nested.url),
59
+ },
60
+ 'vc-app-menu-item__child-item',
61
+ ]"
62
+ @click="$emit('onClick', nested)"
63
+ >
64
+ {{ nested.title }}
65
+ </div>
66
+ </router-link>
67
+ </template>
68
+ </div>
38
69
  </template>
39
70
  <script lang="ts" setup>
40
- import { BladeMenu } from "./../../../../../../../../../core/types";
71
+ import { ref, watch } from "vue";
72
+ import { MenuItem } from "../../../../../../../../../core/types";
41
73
  import { VcIcon } from "./../../../../../../../";
74
+ import { useRoute } from "vue-router";
42
75
 
43
76
  export interface Props {
44
- isActive?: boolean;
45
- children?: BladeMenu[];
77
+ children?: MenuItem[];
46
78
  sticky?: boolean;
47
79
  icon: string;
48
- title: string;
80
+ title?: string;
81
+ url?: string;
49
82
  }
50
83
 
51
84
  export interface Emits {
52
- (event: "onClick"): void;
85
+ (event: "onClick", item?: MenuItem): void;
53
86
  }
54
87
 
55
- withDefaults(defineProps<Props>(), {
88
+ const props = withDefaults(defineProps<Props>(), {
56
89
  sticky: true,
57
90
  });
58
91
 
59
- defineEmits<Emits>();
92
+ const emit = defineEmits<Emits>();
93
+
94
+ const isOpened = ref(false);
95
+ const route = useRoute();
96
+
97
+ watch(
98
+ () => route.path,
99
+ () => {
100
+ if (props.children && props.children.length && props.children.find((x) => x?.url === route?.path)) {
101
+ isOpened.value = true;
102
+ }
103
+ },
104
+ { immediate: true },
105
+ );
106
+
107
+ function onMenuItemClick() {
108
+ if (!props.children?.length) {
109
+ emit("onClick");
110
+ } else {
111
+ isOpened.value = !isOpened.value;
112
+ }
113
+ }
114
+
115
+ const isActive = (url: string) => {
116
+ if (url) {
117
+ const splitted = url.split("/").filter((part) => part !== "");
118
+ const active = route.path.split("/").filter((part) => part !== "")[0] === splitted[0];
119
+
120
+ if (active && props.children?.length) {
121
+ isOpened.value = true;
122
+ }
123
+
124
+ return active;
125
+ } else return false;
126
+ };
60
127
  </script>
61
128
 
62
129
  <style lang="scss">
63
130
  :root {
64
- --app-menu-item-height: 38px;
131
+ --app-menu-item-height: 36px;
65
132
  --app-menu-item-icon-width: 20px;
66
- --app-menu-item-icon-color: #337599;
133
+ --app-menu-item-icon-color: #82a6bd;
67
134
  --app-menu-item-icon-color-active: #ffffff;
68
135
  --app-menu-item-handler-width: 10px;
69
- --app-menu-item-background-color-hover: #337599;
136
+ --app-menu-item-background-color-hover: rgba(130, 166, 189, 0.5);
137
+ --app-menu-item-background-color-active: #82a6bd;
70
138
  --app-menu-item-hover-radius: 4px;
71
139
  --app-menu-item-title-color: #465769;
72
140
  --app-menu-item-title-color-active: #ffffff;
73
141
  --app-menu-item-handler-color: #bdd1df;
142
+
143
+ --app-menu-item-active-text: #2e3d4e;
144
+ --app-menu-item-active-icon: #2e3d4e;
74
145
  }
75
146
 
76
147
  .vc-app-menu-item {
77
148
  @apply tw-flex tw-items-center tw-w-full tw-h-[var(--app-menu-item-height)]
78
149
  tw-border-none
79
- tw-flex-nowrap tw-box-border tw-cursor-pointer tw-relative tw-uppercase;
150
+ tw-flex-nowrap tw-box-border tw-cursor-pointer tw-relative tw-uppercase tw-select-none;
80
151
 
81
152
  &_active {
82
- @apply tw-bg-[color:var(--app-menu-item-background-color-hover)]
153
+ @apply tw-bg-[color:var(--app-menu-item-background-color-active)]
83
154
  tw-rounded-[var(--app-menu-item-hover-radius)]
84
155
  before:tw-opacity-100;
85
156
  }
86
157
 
158
+ &_child-opened {
159
+ .vc-app-menu-item__title {
160
+ @apply tw-font-bold tw-text-[color:var(--app-menu-item-active-text)] #{!important};
161
+ }
162
+
163
+ .vc-app-menu-item__icon {
164
+ @apply tw-text-[color:var(--app-menu-item-active-icon)] #{!important};
165
+ }
166
+ }
167
+
87
168
  &__handler {
88
169
  @apply tw-w-[var(--app-menu-item-handler-width)]
89
170
  tw-text-[color:var(--app-menu-item-handler-color)]
90
171
  tw-text-center tw-invisible tw-shrink-0;
91
172
 
92
173
  &_enabled {
93
- @apply tw-cursor-move;
174
+ @apply tw-cursor-move #{!important};
94
175
  }
95
176
  }
96
177
 
@@ -109,10 +190,10 @@ defineEmits<Emits>();
109
190
  @apply tw-truncate
110
191
  tw-text-lg
111
192
  tw-font-medium
112
- tw-px-3
193
+ tw-px-2
113
194
  tw-text-[color:var(--app-menu-item-title-color)]
114
- [transition:color_0.2s_ease] [transition:opacity_0.1s_ease]
115
- tw-opacity-100 tw-w-full;
195
+ [transition:color_0.2s_ease]
196
+ tw-opacity-100 tw-w-full tw-flex tw-justify-between tw-items-center;
116
197
  }
117
198
 
118
199
  &__title-icon {
@@ -128,8 +209,25 @@ defineEmits<Emits>();
128
209
  @apply tw-text-[color:var(--app-menu-item-icon-color-active)];
129
210
  }
130
211
 
131
- &:hover {
132
- @apply tw-bg-[color:var(--app-menu-item-background-color-hover)]
212
+ &__child {
213
+ @apply tw-ml-[32px] tw-gap-[4px] tw-mt-[4px] tw-flex tw-flex-col;
214
+ }
215
+
216
+ &__child-item {
217
+ @apply tw-cursor-pointer tw-w-fit tw-py-[4px] tw-px-[6px] tw-rounded-[4px]
218
+ hover:tw-bg-[color:var(--app-menu-item-background-color-hover)]
219
+ hover:tw-text-[color:var(--app-menu-item-title-color-active)];
220
+
221
+ &_active {
222
+ @apply tw-bg-[color:var(--app-menu-item-background-color-active)]
223
+ tw-text-[color:var(--app-menu-item-title-color-active)] tw-font-bold
224
+ hover:tw-bg-[color:var(--app-menu-item-background-color-active)]
225
+ hover:tw-text-[color:var(--app-menu-item-title-color-active)];
226
+ }
227
+ }
228
+
229
+ &:hover:not(.vc-app-menu-item_active) {
230
+ @apply tw-bg-[color:var(--app-menu-item-background-color-hover)] tw-bg-opacity-50
133
231
  tw-rounded-[var(--app-menu-item-hover-radius)];
134
232
  }
135
233
 
@@ -147,7 +245,7 @@ defineEmits<Emits>();
147
245
 
148
246
  &:hover &__handler {
149
247
  &_enabled {
150
- @apply tw-invisible;
248
+ @apply tw-visible #{!important};
151
249
  }
152
250
  }
153
251
  }
@@ -1,18 +1,16 @@
1
1
  <template>
2
2
  <div>
3
- <template v-if="component && component.url">
3
+ <template v-if="url">
4
4
  <router-link
5
- v-slot="{ isExactActive }"
6
- :to="component.url"
5
+ :to="url"
7
6
  custom
8
7
  >
9
8
  <vc-app-menu-link
10
- :is-active="isExactActive"
11
- :children="children"
12
9
  :sticky="sticky"
13
10
  :icon="icon ?? ''"
14
11
  :title="title ?? ''"
15
- @on-click="onMenuItemClick"
12
+ :url="url"
13
+ @on-click="$emit('click')"
16
14
  />
17
15
  </router-link>
18
16
  </template>
@@ -22,124 +20,34 @@
22
20
  :sticky="sticky"
23
21
  :icon="icon ?? ''"
24
22
  :title="title ?? ''"
25
- @on-click="onMenuItemClick"
23
+ @on-click="$emit('click', $event)"
26
24
  />
27
-
28
- <!-- Nested menu items -->
29
- <div
30
- v-if="isOpened"
31
- class="vc-app-menu-item__child"
32
- >
33
- <template
34
- v-for="(nested, i) in children"
35
- :key="i"
36
- >
37
- <router-link
38
- v-slot="{ isActive }"
39
- :to="(nested.component?.url as string)"
40
- custom
41
- >
42
- <div
43
- v-if="nested.isVisible === undefined || nested.isVisible"
44
- :key="i"
45
- :class="[
46
- {
47
- 'vc-app-menu-item__child-item_active': isActive,
48
- },
49
- 'vc-app-menu-item__child-item',
50
- ]"
51
- @click="$emit('child:click', { item: nested })"
52
- >
53
- {{ nested.title }}
54
- </div>
55
- </router-link>
56
- </template>
57
- </div>
58
25
  </template>
59
26
  </div>
60
27
  </template>
61
28
 
62
29
  <script lang="ts" setup>
63
- import { onMounted, ref } from "vue";
64
- import { BladeMenu } from "./../../../../../../../../core/types";
65
30
  import VcAppMenuLink from "./_internal/vc-app-menu-link.vue";
66
- import { useRoute } from "vue-router";
67
- import { BladeInstanceConstructor } from "./../../../../../../../../shared";
31
+ import { MenuItem } from "../../../../../../../../core/types";
68
32
 
69
33
  export interface Props {
70
34
  sticky?: boolean;
71
35
  isVisible?: boolean;
72
- component?: BladeInstanceConstructor;
36
+ url?: string;
73
37
  icon?: string;
74
38
  title?: string;
75
- children?: BladeMenu[];
39
+ children?: MenuItem[];
76
40
  }
77
41
 
78
42
  export interface Emits {
79
- (event: "click"): void;
80
- (
81
- event: "child:click",
82
- {
83
- item,
84
- }: {
85
- item: BladeMenu;
86
- }
87
- ): void;
43
+ (event: "click", item?: MenuItem): void;
88
44
  }
89
45
 
90
- const props = withDefaults(defineProps<Props>(), {
46
+ withDefaults(defineProps<Props>(), {
91
47
  sticky: true,
92
48
  component: undefined,
93
49
  children: () => [],
94
50
  });
95
51
 
96
- const route = useRoute();
97
- const emit = defineEmits<Emits>();
98
-
99
- const isOpened = ref(false);
100
-
101
- onMounted(() => {
102
- if (props.children && props.children.length && props.children.find((x) => x.component?.url === route?.path)) {
103
- isOpened.value = true;
104
- }
105
- });
106
-
107
- function onMenuItemClick() {
108
- if (!props.children?.length) {
109
- emit("click");
110
- } else {
111
- isOpened.value = !isOpened.value;
112
- }
113
- }
52
+ defineEmits<Emits>();
114
53
  </script>
115
-
116
- <style lang="scss">
117
- :root {
118
- --app-menu-item-height: 38px;
119
- --app-menu-item-icon-width: 20px;
120
- --app-menu-item-icon-color: #337599;
121
- --app-menu-item-icon-color-active: #ffffff;
122
- --app-menu-item-handler-width: 10px;
123
- --app-menu-item-background-color-hover: #337599;
124
- --app-menu-item-hover-radius: 4px;
125
- --app-menu-item-title-color: #465769;
126
- --app-menu-item-title-color-active: #ffffff;
127
- --app-menu-item-handler-color: #bdd1df;
128
- }
129
- .vc-app-menu-item {
130
- &__child {
131
- @apply tw-ml-[42px] tw-gap-[4px] tw-flex tw-flex-col;
132
- }
133
-
134
- &__child-item {
135
- @apply tw-cursor-pointer tw-w-fit tw-py-[5px] tw-px-[9px] tw-rounded-[4px]
136
- hover:tw-bg-[color:var(--app-menu-item-background-color-hover)]
137
- hover:tw-text-[color:var(--app-menu-item-title-color-active)];
138
-
139
- &_active {
140
- @apply tw-bg-[color:var(--app-menu-item-background-color-hover)]
141
- tw-text-[color:var(--app-menu-item-title-color-active)] tw-font-bold;
142
- }
143
- }
144
- }
145
- </style>
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div
3
3
  v-if="isMenuVisible"
4
- class="tw-relative tw-w-[var(--app-menu-width)] tw-transition tw-duration-100 tw-pt-4"
4
+ class="tw-relative tw-w-[var(--app-menu-width)] tw-transition tw-duration-100 tw-pt-[22px]"
5
5
  :class="{
6
6
  'vc-app-menu_mobile tw-hidden !tw-fixed !tw-left-0 !tw-top-0 !tw-w-full !tw-bottom-0 !tw-z-[9999]':
7
7
  $isMobile.value,
@@ -32,53 +32,35 @@
32
32
  :no-padding="true"
33
33
  class="tw-grow tw-basis-0"
34
34
  >
35
- <div class="tw-gap-[5px] tw-flex tw-flex-col tw-px-4 tw-h-full">
36
- <template
37
- v-for="(item, index) in mobileMenuItems"
38
- :key="`info_item_${index}`"
39
- >
40
- <template v-if="item.isVisible === undefined || item.isVisible">
41
- <component
42
- :is="item.component"
43
- v-if="item.component"
44
- v-bind="item.options"
45
- class="tw-p-0 tw-mb-2 tw-w-full tw-h-auto"
46
- ></component>
47
- </template>
48
- </template>
49
- <template
50
- v-for="(item, index) in items"
51
- :key="index"
52
- >
53
- <VcAppMenuItem
54
- v-if="item.isVisible === undefined || item.isVisible"
55
- :component="item.component"
56
- :icon="item.icon"
57
- :children="item.children"
58
- :is-visible="item.isVisible as boolean"
59
- :title="item.title as string"
60
- @click="
61
- () => {
62
- $emit('item:click', { item });
63
- isMobileVisible = false;
64
- }
65
- "
66
- @child:click="
67
- ({ item: blade }) => {
68
- $emit('item:click', { item: blade });
69
- isMobileVisible = false;
70
- }
71
- "
72
- />
73
- </template>
74
- <div
75
- class="tw-text-[color:var(--app-menu-version-color)] tw-text-xs tw-mt-auto tw-self-center tw-p-1"
76
- @click="$emit('version:click')"
77
- >
78
- {{ version }}
79
- </div>
35
+ <div class="tw-gap-[5px] tw-flex tw-flex-col tw-px-6 tw-h-full">
36
+ <slot
37
+ v-if="!$isDesktop.value"
38
+ name="mobile"
39
+ ></slot>
40
+
41
+ <VcAppMenuItem
42
+ v-for="item in menuItems"
43
+ :key="item?.id"
44
+ :is-visible="true"
45
+ :url="item.url"
46
+ :icon="item.icon"
47
+ :title="item.title as string"
48
+ :children="item.children"
49
+ @click="
50
+ (event) => {
51
+ $emit('item:click', event ? event : item);
52
+ isMobileVisible = false;
53
+ }
54
+ "
55
+ />
80
56
  </div>
81
57
  </VcContainer>
58
+ <div
59
+ class="tw-text-[color:var(--app-menu-version-color)] tw-text-xs tw-mt-auto tw-self-center tw-p-1"
60
+ @click="$emit('version:click')"
61
+ >
62
+ {{ version }}
63
+ </div>
82
64
  </div>
83
65
  </div>
84
66
  </template>
@@ -87,31 +69,31 @@
87
69
  import { computed, ref } from "vue";
88
70
  import VcAppMenuItem from "./_internal/vc-app-menu-item/vc-app-menu-item.vue";
89
71
  import { VcContainer, VcIcon } from "./../../../../";
90
- import { BladeMenu, IBladeToolbar } from "./../../../../../../core/types";
72
+ import { useMenuService } from "../../../../../../core/composables";
73
+ import { MenuItem } from "../../../../../../core/types";
91
74
 
92
75
  export interface Props {
93
- items?: BladeMenu[];
94
- mobileMenuItems?: IBladeToolbar[];
95
76
  version: string;
96
77
  }
97
78
 
98
79
  export interface Emits {
99
- (event: "item:click", { item }: { item: BladeMenu }): void;
80
+ (event: "item:click", item: MenuItem): void;
100
81
  (event: "version:click"): void;
101
82
  }
102
83
 
103
- const props = withDefaults(defineProps<Props>(), {
84
+ withDefaults(defineProps<Props>(), {
104
85
  items: () => [],
105
86
  mobileMenuItems: () => [],
106
87
  version: "",
107
88
  });
108
89
 
109
90
  defineEmits<Emits>();
91
+ const { menuItems } = useMenuService();
110
92
 
111
93
  const isMobileVisible = ref(false);
112
94
 
113
95
  const isMenuVisible = computed(() => {
114
- return props.items.some((item) => item.isVisible);
96
+ return !!menuItems.value.length;
115
97
  });
116
98
 
117
99
  defineExpose({
@@ -1,12 +1 @@
1
- import { VNode } from "vue";
2
- import _App from "./vc-app.vue";
3
-
4
- export const VcApp = _App as typeof _App & {
5
- new (): {
6
- $slots: {
7
- appSwitcher: () => VNode[];
8
- bladeNavigation: () => VNode[];
9
- passwordChange: () => VNode[];
10
- };
11
- };
12
- };
1
+ export { default as VcApp } from "./vc-app.vue";
@@ -18,43 +18,43 @@ export const Primary: Story = {
18
18
  template: '<vc-app v-bind="args"></vc-app>',
19
19
  }),
20
20
  args: {
21
- menuItems: [
22
- {
23
- title: "Dashboard",
24
- icon: "fas fa-home",
25
- isVisible: true,
26
- },
27
- {
28
- title: "Orders",
29
- icon: "fas fa-file-alt",
30
- isVisible: true,
31
- },
32
- {
33
- title: "Products",
34
- icon: "fas fa-box-open",
35
- isVisible: true,
36
- },
37
- {
38
- title: "Offers",
39
- icon: "fas fa-file-invoice",
40
- isVisible: true,
41
- },
42
- {
43
- title: "Import",
44
- icon: "fas fa-file-import",
45
- isVisible: true,
46
- },
47
- {
48
- title: "Logout",
49
- icon: "fas fa-sign-out-alt",
50
- },
51
- ],
52
- toolbarItems: [
53
- { id: "1", icon: "fas fa-globe", title: "Language selector" },
54
- { id: "2", icon: "fas fa-bell", title: "Notifications", isAccent: true },
55
- ],
21
+ // menuItems: [
22
+ // {
23
+ // title: "Dashboard",
24
+ // icon: "fas fa-home",
25
+ // isVisible: true,
26
+ // },
27
+ // {
28
+ // title: "Orders",
29
+ // icon: "fas fa-file-alt",
30
+ // isVisible: true,
31
+ // },
32
+ // {
33
+ // title: "Products",
34
+ // icon: "fas fa-box-open",
35
+ // isVisible: true,
36
+ // },
37
+ // {
38
+ // title: "Offers",
39
+ // icon: "fas fa-file-invoice",
40
+ // isVisible: true,
41
+ // },
42
+ // {
43
+ // title: "Import",
44
+ // icon: "fas fa-file-import",
45
+ // isVisible: true,
46
+ // },
47
+ // {
48
+ // title: "Logout",
49
+ // icon: "fas fa-sign-out-alt",
50
+ // },
51
+ // ],
52
+ // toolbarItems: [
53
+ // { id: "1", icon: "fas fa-globe", title: "Language selector" },
54
+ // { id: "2", icon: "fas fa-bell", title: "Notifications", isAccent: true },
55
+ // ],
56
56
  isReady: true,
57
- isAuthorized: true,
57
+ // isAuthorized: true,
58
58
  version: "0.0.100",
59
59
  logo: "images/main-logo.svg",
60
60
  },