@vc-shell/framework 1.0.110 → 1.0.111

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 (414) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/core/composables/useApiClient/index.ts +1 -1
  3. package/core/composables/useAsync/index.ts +2 -2
  4. package/core/composables/usePermissions/index.ts +7 -18
  5. package/core/composables/useUser/index.ts +13 -11
  6. package/core/directives/loading/index.ts +5 -27
  7. package/core/directives/loading/styles.css +38 -0
  8. package/core/plugins/modularity/index.ts +41 -14
  9. package/core/plugins/permissions/index.ts +3 -3
  10. package/core/types/index.ts +36 -3
  11. package/dist/core/composables/useApiClient/index.d.ts +1 -1
  12. package/dist/core/composables/useApiClient/index.d.ts.map +1 -1
  13. package/dist/core/composables/useAsync/index.d.ts +1 -1
  14. package/dist/core/composables/useAsync/index.d.ts.map +1 -1
  15. package/dist/core/composables/usePermissions/index.d.ts +1 -2
  16. package/dist/core/composables/usePermissions/index.d.ts.map +1 -1
  17. package/dist/core/composables/useUser/index.d.ts +1 -0
  18. package/dist/core/composables/useUser/index.d.ts.map +1 -1
  19. package/dist/core/directives/loading/index.d.ts +3 -2
  20. package/dist/core/directives/loading/index.d.ts.map +1 -1
  21. package/dist/core/plugins/modularity/index.d.ts +13 -4
  22. package/dist/core/plugins/modularity/index.d.ts.map +1 -1
  23. package/dist/core/types/index.d.ts +41 -2
  24. package/dist/core/types/index.d.ts.map +1 -1
  25. package/dist/framework.mjs +25286 -23535
  26. package/dist/index.css +1 -1
  27. package/dist/index.d.ts +1 -2
  28. package/dist/index.d.ts.map +1 -1
  29. package/dist/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue.d.ts +14 -23
  30. package/dist/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue.d.ts.map +1 -1
  31. package/dist/shared/components/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue.d.ts +28 -25
  32. package/dist/shared/components/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue.d.ts.map +1 -1
  33. package/dist/shared/components/blade-navigation/composables/useBladeNavigation/index.d.ts.map +1 -1
  34. package/dist/shared/components/blade-navigation/types/index.d.ts +5 -2
  35. package/dist/shared/components/blade-navigation/types/index.d.ts.map +1 -1
  36. package/dist/shared/components/change-password/change-password.vue.d.ts.map +1 -1
  37. package/dist/shared/components/error-interceptor/index.d.ts +3 -3
  38. package/dist/shared/components/language-selector/language-selector.vue.d.ts +41 -26
  39. package/dist/shared/components/language-selector/language-selector.vue.d.ts.map +1 -1
  40. package/dist/shared/components/notifications/components/notification-container/index.d.ts +12 -12
  41. package/dist/shared/components/notifications/components/notification-container/index.d.ts.map +1 -1
  42. package/dist/shared/components/notifications/composables/useContainer/index.d.ts.map +1 -1
  43. package/dist/shared/components/popup-handler/components/vc-popup-container/vc-popup-container.vue.d.ts.map +1 -1
  44. package/dist/shared/components/popup-handler/composables/usePopup/index.d.ts.map +1 -1
  45. package/dist/shared/components/user-dropdown-button/index.d.ts +11 -11
  46. package/dist/shared/components/user-dropdown-button/user-dropdown-button.vue.d.ts +35 -22
  47. package/dist/shared/components/user-dropdown-button/user-dropdown-button.vue.d.ts.map +1 -1
  48. package/dist/shared/modules/assets/components/assets-details/assets-details.vue.d.ts +39 -28
  49. package/dist/shared/modules/assets/components/assets-details/assets-details.vue.d.ts.map +1 -1
  50. package/dist/shared/modules/assets/components/assets-details/index.d.ts +13 -13
  51. package/dist/shared/modules/assets/index.d.ts +3 -1
  52. package/dist/shared/modules/assets/index.d.ts.map +1 -1
  53. package/dist/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts +42 -29
  54. package/dist/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts.map +1 -1
  55. package/dist/shared/modules/assets-manager/components/assets-manager/index.d.ts +9 -9
  56. package/dist/shared/modules/assets-manager/index.d.ts +3 -1
  57. package/dist/shared/modules/assets-manager/index.d.ts.map +1 -1
  58. package/dist/shared/modules/dynamic/components/FIELD_MAP.d.ts +2204 -0
  59. package/dist/shared/modules/dynamic/components/FIELD_MAP.d.ts.map +1 -0
  60. package/dist/shared/modules/dynamic/components/SchemaRender.d.ts +220 -0
  61. package/dist/shared/modules/dynamic/components/SchemaRender.d.ts.map +1 -0
  62. package/dist/shared/modules/dynamic/components/factories.d.ts +15 -0
  63. package/dist/shared/modules/dynamic/components/factories.d.ts.map +1 -0
  64. package/dist/shared/modules/dynamic/components/fields/Button.d.ts +131 -0
  65. package/dist/shared/modules/dynamic/components/fields/Button.d.ts.map +1 -0
  66. package/dist/shared/modules/dynamic/components/fields/Card.d.ts +131 -0
  67. package/dist/shared/modules/dynamic/components/fields/Card.d.ts.map +1 -0
  68. package/dist/shared/modules/dynamic/components/fields/Checkbox.d.ts +131 -0
  69. package/dist/shared/modules/dynamic/components/fields/Checkbox.d.ts.map +1 -0
  70. package/dist/shared/modules/dynamic/components/fields/DynamicProperty.d.ts +130 -0
  71. package/dist/shared/modules/dynamic/components/fields/DynamicProperty.d.ts.map +1 -0
  72. package/dist/shared/modules/dynamic/components/fields/EditorField.d.ts +128 -0
  73. package/dist/shared/modules/dynamic/components/fields/EditorField.d.ts.map +1 -0
  74. package/dist/shared/modules/dynamic/components/fields/Fieldset.d.ts +131 -0
  75. package/dist/shared/modules/dynamic/components/fields/Fieldset.d.ts.map +1 -0
  76. package/dist/shared/modules/dynamic/components/fields/GalleryField.d.ts +132 -0
  77. package/dist/shared/modules/dynamic/components/fields/GalleryField.d.ts.map +1 -0
  78. package/dist/shared/modules/dynamic/components/fields/InputCurrency.d.ts +131 -0
  79. package/dist/shared/modules/dynamic/components/fields/InputCurrency.d.ts.map +1 -0
  80. package/dist/shared/modules/dynamic/components/fields/InputField.d.ts +131 -0
  81. package/dist/shared/modules/dynamic/components/fields/InputField.d.ts.map +1 -0
  82. package/dist/shared/modules/dynamic/components/fields/SelectField.d.ts +131 -0
  83. package/dist/shared/modules/dynamic/components/fields/SelectField.d.ts.map +1 -0
  84. package/dist/shared/modules/dynamic/components/fields/StatusField.d.ts +131 -0
  85. package/dist/shared/modules/dynamic/components/fields/StatusField.d.ts.map +1 -0
  86. package/dist/shared/modules/dynamic/components/fields/ValidationField.d.ts +13 -0
  87. package/dist/shared/modules/dynamic/components/fields/ValidationField.d.ts.map +1 -0
  88. package/dist/shared/modules/dynamic/components/fields/props.d.ts +124 -0
  89. package/dist/shared/modules/dynamic/components/fields/props.d.ts.map +1 -0
  90. package/dist/shared/modules/dynamic/components/index.d.ts +4 -0
  91. package/dist/shared/modules/dynamic/components/index.d.ts.map +1 -0
  92. package/dist/shared/modules/dynamic/composables/index.d.ts +2 -0
  93. package/dist/shared/modules/dynamic/composables/index.d.ts.map +1 -0
  94. package/dist/shared/modules/dynamic/composables/useFilterBuilder/index.d.ts +35 -0
  95. package/dist/shared/modules/dynamic/composables/useFilterBuilder/index.d.ts.map +1 -0
  96. package/dist/shared/modules/dynamic/factories/base/useDetailsFactory.d.ts +8 -0
  97. package/dist/shared/modules/dynamic/factories/base/useDetailsFactory.d.ts.map +1 -0
  98. package/dist/shared/modules/dynamic/factories/base/useListFactory.d.ts +22 -0
  99. package/dist/shared/modules/dynamic/factories/base/useListFactory.d.ts.map +1 -0
  100. package/dist/shared/modules/dynamic/factories/index.d.ts +4 -0
  101. package/dist/shared/modules/dynamic/factories/index.d.ts.map +1 -0
  102. package/dist/shared/modules/dynamic/factories/types/index.d.ts +101 -0
  103. package/dist/shared/modules/dynamic/factories/types/index.d.ts.map +1 -0
  104. package/dist/shared/modules/dynamic/helpers/getters.d.ts +2 -0
  105. package/dist/shared/modules/dynamic/helpers/getters.d.ts.map +1 -0
  106. package/dist/shared/modules/dynamic/helpers/nodeBuilder.d.ts +13 -0
  107. package/dist/shared/modules/dynamic/helpers/nodeBuilder.d.ts.map +1 -0
  108. package/dist/shared/modules/dynamic/helpers/override.d.ts +7 -0
  109. package/dist/shared/modules/dynamic/helpers/override.d.ts.map +1 -0
  110. package/dist/shared/modules/dynamic/helpers/setters.d.ts +8 -0
  111. package/dist/shared/modules/dynamic/helpers/setters.d.ts.map +1 -0
  112. package/dist/shared/modules/dynamic/helpers/toolbarReducer.d.ts +11 -0
  113. package/dist/shared/modules/dynamic/helpers/toolbarReducer.d.ts.map +1 -0
  114. package/dist/shared/modules/dynamic/helpers/unrefNested.d.ts +2 -0
  115. package/dist/shared/modules/dynamic/helpers/unrefNested.d.ts.map +1 -0
  116. package/dist/shared/modules/dynamic/helpers/unwrapInterpolation.d.ts +3 -0
  117. package/dist/shared/modules/dynamic/helpers/unwrapInterpolation.d.ts.map +1 -0
  118. package/dist/shared/modules/dynamic/index.d.ts +32 -0
  119. package/dist/shared/modules/dynamic/index.d.ts.map +1 -0
  120. package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts +68 -0
  121. package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts.map +1 -0
  122. package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts +79 -0
  123. package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts.map +1 -0
  124. package/dist/shared/modules/dynamic/pages/index.d.ts +4 -0
  125. package/dist/shared/modules/dynamic/pages/index.d.ts.map +1 -0
  126. package/dist/shared/modules/dynamic/types/index.d.ts +250 -0
  127. package/dist/shared/modules/dynamic/types/index.d.ts.map +1 -0
  128. package/dist/shared/modules/dynamic/types/models.d.ts +93 -0
  129. package/dist/shared/modules/dynamic/types/models.d.ts.map +1 -0
  130. package/dist/shared/modules/index.d.ts +1 -0
  131. package/dist/shared/modules/index.d.ts.map +1 -1
  132. package/dist/shared/pages/InvitePage/components/invite/Invite.vue.d.ts.map +1 -1
  133. package/dist/shared/pages/InvitePage/index.d.ts +0 -3
  134. package/dist/shared/pages/InvitePage/index.d.ts.map +1 -1
  135. package/dist/shared/pages/InvitePage/plugin.d.ts +4 -0
  136. package/dist/shared/pages/InvitePage/plugin.d.ts.map +1 -0
  137. package/dist/shared/pages/LoginPage/components/login/Login.vue.d.ts +45 -9
  138. package/dist/shared/pages/LoginPage/components/login/Login.vue.d.ts.map +1 -1
  139. package/dist/shared/pages/LoginPage/components/login/index.d.ts +14 -0
  140. package/dist/shared/pages/LoginPage/components/login/index.d.ts.map +1 -1
  141. package/dist/shared/pages/LoginPage/index.d.ts +0 -1
  142. package/dist/shared/pages/LoginPage/index.d.ts.map +1 -1
  143. package/dist/shared/pages/LoginPage/plugin.d.ts +1 -3
  144. package/dist/shared/pages/LoginPage/plugin.d.ts.map +1 -1
  145. package/dist/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue.d.ts.map +1 -1
  146. package/dist/shared/pages/ResetPasswordPage/index.d.ts +0 -3
  147. package/dist/shared/pages/ResetPasswordPage/index.d.ts.map +1 -1
  148. package/dist/shared/pages/ResetPasswordPage/plugin.d.ts +4 -0
  149. package/dist/shared/pages/ResetPasswordPage/plugin.d.ts.map +1 -0
  150. package/dist/shared/pages/index.d.ts +0 -6
  151. package/dist/shared/pages/index.d.ts.map +1 -1
  152. package/dist/shared/pages/plugin.d.ts +4 -0
  153. package/dist/shared/pages/plugin.d.ts.map +1 -0
  154. package/dist/tsconfig.tsbuildinfo +1 -1
  155. package/dist/ui/components/atoms/vc-badge/index.d.ts +4 -4
  156. package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts +22 -11
  157. package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts.map +1 -1
  158. package/dist/ui/components/atoms/vc-button/index.d.ts +1 -208
  159. package/dist/ui/components/atoms/vc-button/index.d.ts.map +1 -1
  160. package/dist/ui/components/atoms/vc-button/vc-button.vue.d.ts +75 -27
  161. package/dist/ui/components/atoms/vc-button/vc-button.vue.d.ts.map +1 -1
  162. package/dist/ui/components/atoms/vc-card/index.d.ts +32 -38
  163. package/dist/ui/components/atoms/vc-card/index.d.ts.map +1 -1
  164. package/dist/ui/components/atoms/vc-card/vc-card.vue.d.ts +46 -27
  165. package/dist/ui/components/atoms/vc-card/vc-card.vue.d.ts.map +1 -1
  166. package/dist/ui/components/atoms/vc-checkbox/index.d.ts +72 -38
  167. package/dist/ui/components/atoms/vc-checkbox/index.d.ts.map +1 -1
  168. package/dist/ui/components/atoms/vc-checkbox/vc-checkbox.vue.d.ts +69 -28
  169. package/dist/ui/components/atoms/vc-checkbox/vc-checkbox.vue.d.ts.map +1 -1
  170. package/dist/ui/components/atoms/vc-col/index.d.ts +1 -1
  171. package/dist/ui/components/atoms/vc-col/vc-col.vue.d.ts +11 -22
  172. package/dist/ui/components/atoms/vc-col/vc-col.vue.d.ts.map +1 -1
  173. package/dist/ui/components/atoms/vc-container/index.d.ts +5 -5
  174. package/dist/ui/components/atoms/vc-container/vc-container.vue.d.ts +22 -11
  175. package/dist/ui/components/atoms/vc-container/vc-container.vue.d.ts.map +1 -1
  176. package/dist/ui/components/atoms/vc-hint/index.d.ts +1 -1
  177. package/dist/ui/components/atoms/vc-hint/vc-hint.vue.d.ts.map +1 -1
  178. package/dist/ui/components/atoms/vc-icon/index.d.ts +13 -7
  179. package/dist/ui/components/atoms/vc-icon/index.d.ts.map +1 -1
  180. package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts +27 -25
  181. package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts.map +1 -1
  182. package/dist/ui/components/atoms/vc-image/index.d.ts +16 -16
  183. package/dist/ui/components/atoms/vc-image/vc-image.vue.d.ts +54 -29
  184. package/dist/ui/components/atoms/vc-image/vc-image.vue.d.ts.map +1 -1
  185. package/dist/ui/components/atoms/vc-info-row/index.d.ts +9 -9
  186. package/dist/ui/components/atoms/vc-info-row/vc-info-row.vue.d.ts +30 -23
  187. package/dist/ui/components/atoms/vc-info-row/vc-info-row.vue.d.ts.map +1 -1
  188. package/dist/ui/components/atoms/vc-label/index.d.ts +33 -39
  189. package/dist/ui/components/atoms/vc-label/index.d.ts.map +1 -1
  190. package/dist/ui/components/atoms/vc-label/vc-label.vue.d.ts +33 -26
  191. package/dist/ui/components/atoms/vc-label/vc-label.vue.d.ts.map +1 -1
  192. package/dist/ui/components/atoms/vc-link/index.d.ts +4 -4
  193. package/dist/ui/components/atoms/vc-link/vc-link.vue.d.ts +22 -11
  194. package/dist/ui/components/atoms/vc-link/vc-link.vue.d.ts.map +1 -1
  195. package/dist/ui/components/atoms/vc-loading/vc-loading.vue.d.ts +9 -10
  196. package/dist/ui/components/atoms/vc-loading/vc-loading.vue.d.ts.map +1 -1
  197. package/dist/ui/components/atoms/vc-progress/index.d.ts +1 -1
  198. package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts +19 -24
  199. package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts.map +1 -1
  200. package/dist/ui/components/atoms/vc-row/index.d.ts +1 -1
  201. package/dist/ui/components/atoms/vc-row/vc-row.vue.d.ts.map +1 -1
  202. package/dist/ui/components/atoms/vc-status/index.d.ts +1 -142
  203. package/dist/ui/components/atoms/vc-status/index.d.ts.map +1 -1
  204. package/dist/ui/components/atoms/vc-status/vc-status.vue.d.ts +29 -28
  205. package/dist/ui/components/atoms/vc-status/vc-status.vue.d.ts.map +1 -1
  206. package/dist/ui/components/atoms/vc-status-icon/vc-status-icon.vue.d.ts +9 -10
  207. package/dist/ui/components/atoms/vc-status-icon/vc-status-icon.vue.d.ts.map +1 -1
  208. package/dist/ui/components/atoms/vc-switch/vc-switch.vue.d.ts +36 -11
  209. package/dist/ui/components/atoms/vc-switch/vc-switch.vue.d.ts.map +1 -1
  210. package/dist/ui/components/atoms/vc-video/index.d.ts +13 -13
  211. package/dist/ui/components/atoms/vc-video/vc-video.vue.d.ts +49 -24
  212. package/dist/ui/components/atoms/vc-video/vc-video.vue.d.ts.map +1 -1
  213. package/dist/ui/components/atoms/vc-widget/vc-widget.vue.d.ts +28 -11
  214. package/dist/ui/components/atoms/vc-widget/vc-widget.vue.d.ts.map +1 -1
  215. package/dist/ui/components/molecules/vc-breadcrumbs/_internal/vc-breadcrumbs-item/vc-breadcrumbs-item.vue.d.ts +5 -3
  216. package/dist/ui/components/molecules/vc-breadcrumbs/_internal/vc-breadcrumbs-item/vc-breadcrumbs-item.vue.d.ts.map +1 -1
  217. package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue.d.ts +23 -22
  218. package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue.d.ts.map +1 -1
  219. package/dist/ui/components/molecules/vc-code-editor/index.d.ts +28 -28
  220. package/dist/ui/components/molecules/vc-code-editor/vc-code-editor.vue.d.ts +48 -23
  221. package/dist/ui/components/molecules/vc-code-editor/vc-code-editor.vue.d.ts.map +1 -1
  222. package/dist/ui/components/molecules/vc-editor/index.d.ts +1 -226
  223. package/dist/ui/components/molecules/vc-editor/index.d.ts.map +1 -1
  224. package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts +74 -28
  225. package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts.map +1 -1
  226. package/dist/ui/components/molecules/vc-file-upload/index.d.ts +23 -23
  227. package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts +46 -27
  228. package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts.map +1 -1
  229. package/dist/ui/components/molecules/vc-form/index.d.ts +1 -1
  230. package/dist/ui/components/molecules/vc-form/vc-form.vue.d.ts.map +1 -1
  231. package/dist/ui/components/molecules/vc-input/index.d.ts +1 -390
  232. package/dist/ui/components/molecules/vc-input/index.d.ts.map +1 -1
  233. package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts +181 -41
  234. package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts.map +1 -1
  235. package/dist/ui/components/molecules/vc-input-currency/index.d.ts +90 -90
  236. package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts +143 -30
  237. package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts.map +1 -1
  238. package/dist/ui/components/molecules/vc-multivalue/index.d.ts +74 -10
  239. package/dist/ui/components/molecules/vc-multivalue/index.d.ts.map +1 -1
  240. package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts +74 -10
  241. package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts.map +1 -1
  242. package/dist/ui/components/molecules/vc-notification/vc-notification.vue.d.ts +51 -10
  243. package/dist/ui/components/molecules/vc-notification/vc-notification.vue.d.ts.map +1 -1
  244. package/dist/ui/components/molecules/vc-pagination/index.d.ts +6 -6
  245. package/dist/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts +26 -25
  246. package/dist/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts.map +1 -1
  247. package/dist/ui/components/molecules/vc-rating/index.d.ts +19 -19
  248. package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts +46 -25
  249. package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts.map +1 -1
  250. package/dist/ui/components/molecules/vc-select/index.d.ts +65 -103
  251. package/dist/ui/components/molecules/vc-select/index.d.ts.map +1 -1
  252. package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts +65 -479
  253. package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts.map +1 -1
  254. package/dist/ui/components/molecules/vc-slider/index.d.ts +21 -21
  255. package/dist/ui/components/molecules/vc-slider/vc-slider.vue.d.ts +39 -26
  256. package/dist/ui/components/molecules/vc-slider/vc-slider.vue.d.ts.map +1 -1
  257. package/dist/ui/components/molecules/vc-textarea/index.d.ts +40 -40
  258. package/dist/ui/components/molecules/vc-textarea/vc-textarea.vue.d.ts +74 -25
  259. package/dist/ui/components/molecules/vc-textarea/vc-textarea.vue.d.ts.map +1 -1
  260. package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue.d.ts +35 -12
  261. package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue.d.ts.map +1 -1
  262. package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue.d.ts +40 -23
  263. 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
  264. package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue.d.ts +47 -28
  265. 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
  266. package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/vc-app-menu.vue.d.ts +31 -28
  267. package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/vc-app-menu.vue.d.ts.map +1 -1
  268. package/dist/ui/components/organisms/vc-app/index.d.ts +67 -67
  269. package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts +86 -37
  270. package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts.map +1 -1
  271. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-header/vc-blade-header.vue.d.ts +44 -11
  272. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-header/vc-blade-header.vue.d.ts.map +1 -1
  273. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue.d.ts +61 -34
  274. 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
  275. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/vc-blade-toolbar.vue.d.ts +13 -22
  276. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/vc-blade-toolbar.vue.d.ts.map +1 -1
  277. package/dist/ui/components/organisms/vc-blade/index.d.ts +39 -39
  278. package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts +62 -31
  279. package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts.map +1 -1
  280. package/dist/ui/components/organisms/vc-dynamic-property/index.d.ts +1 -140
  281. package/dist/ui/components/organisms/vc-dynamic-property/index.d.ts.map +1 -1
  282. package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts +64 -75
  283. package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts.map +1 -1
  284. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts +58 -35
  285. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts.map +1 -1
  286. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts +22 -25
  287. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts.map +1 -1
  288. package/dist/ui/components/organisms/vc-gallery/index.d.ts +37 -31
  289. package/dist/ui/components/organisms/vc-gallery/index.d.ts.map +1 -1
  290. package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts +130 -46
  291. package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts.map +1 -1
  292. package/dist/ui/components/organisms/vc-login-form/index.d.ts +9 -9
  293. package/dist/ui/components/organisms/vc-login-form/vc-login-form.vue.d.ts +23 -22
  294. package/dist/ui/components/organisms/vc-login-form/vc-login-form.vue.d.ts.map +1 -1
  295. package/dist/ui/components/organisms/vc-notification-dropdown/_internal/notification/notification.vue.d.ts +28 -22
  296. package/dist/ui/components/organisms/vc-notification-dropdown/_internal/notification/notification.vue.d.ts.map +1 -1
  297. package/dist/ui/components/organisms/vc-notification-dropdown/index.d.ts +0 -6
  298. package/dist/ui/components/organisms/vc-notification-dropdown/index.d.ts.map +1 -1
  299. package/dist/ui/components/organisms/vc-notification-dropdown/vc-notification-dropdown.vue.d.ts +36 -10
  300. package/dist/ui/components/organisms/vc-notification-dropdown/vc-notification-dropdown.vue.d.ts.map +1 -1
  301. package/dist/ui/components/organisms/vc-notification-template/index.d.ts +4 -4
  302. package/dist/ui/components/organisms/vc-notification-template/vc-notification-template.vue.d.ts +27 -10
  303. package/dist/ui/components/organisms/vc-notification-template/vc-notification-template.vue.d.ts.map +1 -1
  304. package/dist/ui/components/organisms/vc-popup/_internal/vc-popup-error/vc-popup-error.vue.d.ts.map +1 -1
  305. package/dist/ui/components/organisms/vc-popup/_internal/vc-popup-warning/vc-popup-warning.vue.d.ts.map +1 -1
  306. package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts +38 -31
  307. package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts.map +1 -1
  308. package/dist/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue.d.ts +18 -9
  309. package/dist/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue.d.ts.map +1 -1
  310. package/dist/ui/components/organisms/vc-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue.d.ts +12 -19
  311. package/dist/ui/components/organisms/vc-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue.d.ts.map +1 -1
  312. package/dist/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts +23 -24
  313. package/dist/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts.map +1 -1
  314. package/dist/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue.d.ts +29 -26
  315. package/dist/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue.d.ts.map +1 -1
  316. package/dist/ui/components/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue.d.ts +14 -14
  317. package/dist/ui/components/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue.d.ts.map +1 -1
  318. package/dist/ui/components/organisms/vc-table/index.d.ts +1 -214
  319. package/dist/ui/components/organisms/vc-table/index.d.ts.map +1 -1
  320. package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts +90 -105
  321. package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts.map +1 -1
  322. package/package.json +8 -8
  323. package/shared/components/app-switcher/composables/useAppSwitcher/index.ts +2 -2
  324. package/shared/components/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue +16 -14
  325. package/shared/components/blade-navigation/composables/useBladeNavigation/index.ts +37 -30
  326. package/shared/components/blade-navigation/types/index.ts +7 -3
  327. package/shared/components/notifications/composables/useContainer/index.ts +2 -5
  328. package/shared/components/popup-handler/composables/usePopup/index.ts +0 -2
  329. package/shared/modules/assets/components/assets-details/assets-details.vue +6 -6
  330. package/shared/modules/assets/index.ts +2 -2
  331. package/shared/modules/assets-manager/components/assets-manager/assets-manager.vue +3 -3
  332. package/shared/modules/assets-manager/index.ts +2 -2
  333. package/shared/modules/dynamic/components/FIELD_MAP.ts +27 -0
  334. package/shared/modules/dynamic/components/SchemaRender.ts +81 -0
  335. package/shared/modules/dynamic/components/factories.ts +159 -0
  336. package/shared/modules/dynamic/components/fields/Button.ts +31 -0
  337. package/shared/modules/dynamic/components/fields/Card.ts +86 -0
  338. package/shared/modules/dynamic/components/fields/Checkbox.ts +44 -0
  339. package/shared/modules/dynamic/components/fields/DynamicProperty.ts +99 -0
  340. package/shared/modules/dynamic/components/fields/EditorField.ts +43 -0
  341. package/shared/modules/dynamic/components/fields/Fieldset.ts +77 -0
  342. package/shared/modules/dynamic/components/fields/GalleryField.ts +121 -0
  343. package/shared/modules/dynamic/components/fields/InputCurrency.ts +49 -0
  344. package/shared/modules/dynamic/components/fields/InputField.ts +42 -0
  345. package/shared/modules/dynamic/components/fields/SelectField.ts +55 -0
  346. package/shared/modules/dynamic/components/fields/StatusField.ts +55 -0
  347. package/shared/modules/dynamic/components/fields/ValidationField.ts +53 -0
  348. package/shared/modules/dynamic/components/fields/props.ts +52 -0
  349. package/shared/modules/dynamic/components/index.ts +4 -0
  350. package/shared/modules/dynamic/composables/index.ts +1 -0
  351. package/shared/modules/dynamic/composables/useFilterBuilder/index.ts +235 -0
  352. package/shared/modules/dynamic/factories/base/useDetailsFactory.ts +83 -0
  353. package/shared/modules/dynamic/factories/base/useListFactory.ts +68 -0
  354. package/shared/modules/dynamic/factories/index.ts +4 -0
  355. package/shared/modules/dynamic/factories/types/index.ts +103 -0
  356. package/shared/modules/dynamic/helpers/getters.ts +10 -0
  357. package/shared/modules/dynamic/helpers/nodeBuilder.ts +112 -0
  358. package/shared/modules/dynamic/helpers/override.ts +70 -0
  359. package/shared/modules/dynamic/helpers/setters.ts +15 -0
  360. package/shared/modules/dynamic/helpers/toolbarReducer.ts +41 -0
  361. package/shared/modules/dynamic/helpers/unrefNested.ts +14 -0
  362. package/shared/modules/dynamic/helpers/unwrapInterpolation.ts +15 -0
  363. package/shared/modules/dynamic/index.ts +163 -0
  364. package/shared/modules/dynamic/pages/dynamic-blade-form.vue +292 -0
  365. package/shared/modules/dynamic/pages/dynamic-blade-list.vue +437 -0
  366. package/shared/modules/dynamic/pages/index.ts +4 -0
  367. package/shared/modules/dynamic/types/index.ts +287 -0
  368. package/shared/modules/dynamic/types/models.ts +140 -0
  369. package/shared/modules/index.ts +1 -0
  370. package/shared/pages/InvitePage/index.ts +0 -6
  371. package/shared/pages/InvitePage/plugin.ts +5 -0
  372. package/shared/pages/LoginPage/components/login/Login.vue +5 -6
  373. package/shared/pages/LoginPage/index.ts +0 -1
  374. package/shared/pages/LoginPage/plugin.ts +1 -13
  375. package/shared/pages/ResetPasswordPage/index.ts +0 -6
  376. package/shared/pages/ResetPasswordPage/plugin.ts +5 -0
  377. package/shared/pages/index.ts +0 -9
  378. package/shared/pages/plugin.ts +3 -0
  379. package/ui/components/atoms/vc-button/index.ts +1 -10
  380. package/ui/components/atoms/vc-button/vc-button.vue +8 -2
  381. package/ui/components/atoms/vc-card/index.ts +1 -9
  382. package/ui/components/atoms/vc-card/vc-card.vue +6 -1
  383. package/ui/components/atoms/vc-checkbox/index.ts +1 -9
  384. package/ui/components/atoms/vc-checkbox/vc-checkbox.vue +32 -10
  385. package/ui/components/atoms/vc-icon/vc-icon.vue +13 -1
  386. package/ui/components/atoms/vc-label/index.ts +1 -9
  387. package/ui/components/atoms/vc-label/vc-label.vue +5 -0
  388. package/ui/components/atoms/vc-status/index.ts +1 -10
  389. package/ui/components/atoms/vc-status/vc-status.vue +5 -1
  390. package/ui/components/atoms/vc-video/vc-video.vue +2 -2
  391. package/ui/components/atoms/vc-widget/vc-widget.vue +1 -1
  392. package/ui/components/molecules/vc-editor/index.ts +1 -10
  393. package/ui/components/molecules/vc-editor/vc-editor.vue +16 -0
  394. package/ui/components/molecules/vc-file-upload/vc-file-upload.vue +4 -4
  395. package/ui/components/molecules/vc-input/index.ts +1 -60
  396. package/ui/components/molecules/vc-input/vc-input.vue +112 -37
  397. package/ui/components/molecules/vc-input-currency/vc-input-currency.stories.ts +1 -1
  398. package/ui/components/molecules/vc-input-currency/vc-input-currency.vue +21 -17
  399. package/ui/components/molecules/vc-select/index.ts +1 -1
  400. package/ui/components/molecules/vc-select/vc-select.stories.ts +1 -1
  401. package/ui/components/molecules/vc-select/vc-select.vue +11 -37
  402. package/ui/components/organisms/vc-dynamic-property/index.ts +1 -3
  403. package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue +199 -257
  404. package/ui/components/organisms/vc-gallery/vc-gallery.vue +9 -7
  405. package/ui/components/organisms/vc-notification-dropdown/_internal/notification/notification.vue +10 -1
  406. package/ui/components/organisms/vc-notification-dropdown/vc-notification-dropdown.vue +1 -10
  407. package/ui/components/organisms/vc-table/index.ts +1 -3
  408. package/ui/components/organisms/vc-table/vc-table.stories.ts +3 -3
  409. package/ui/components/organisms/vc-table/vc-table.vue +29 -16
  410. package/core/api/catalog.ts +0 -8527
  411. package/dist/core/api/catalog.d.ts +0 -2522
  412. package/dist/core/api/catalog.d.ts.map +0 -1
  413. package/dist/typings/index.d.ts +0 -8
  414. package/dist/typings/index.d.ts.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,22 @@
1
+ ## [1.0.111](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.110...v1.0.111) (2023-10-17)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * open blade on mount fix in import-module ([6644e03](https://github.com/VirtoCommerce/vc-shell/commit/6644e03bcac5b1298db160f3b749c8a44bb8c9c7))
7
+ * override ts-ignore toSpliced ([c360888](https://github.com/VirtoCommerce/vc-shell/commit/c3608889c4bc987f475f9d25a9149aad4b59bac6))
8
+
9
+
10
+ ### Features
11
+
12
+ * dynamic app modules samples ([2af411f](https://github.com/VirtoCommerce/vc-shell/commit/2af411fb14c61d9e98da4612057fd157263de397))
13
+ * dynamic modules ([ed4af3a](https://github.com/VirtoCommerce/vc-shell/commit/ed4af3ad65e47b0d633d6e2eb23e9c90d73ff50d))
14
+ * dynamic modules ([200dcde](https://github.com/VirtoCommerce/vc-shell/commit/200dcde3d127f45267f2d259967839d11ea5d01e))
15
+ * improved createAppModule ([3752415](https://github.com/VirtoCommerce/vc-shell/commit/3752415eeae183b8dcfe3f23e47f3bcb07faf136))
16
+ * status type dynamic component ([95f0472](https://github.com/VirtoCommerce/vc-shell/commit/95f0472cd79cb117a94fe467cf4094cdff29373e))
17
+
18
+
19
+
1
20
  ## [1.0.110](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.109...v1.0.110) (2023-10-16)
2
21
 
3
22
 
@@ -1,6 +1,6 @@
1
1
  import { useUser } from "../useUser";
2
2
 
3
- interface IAuthApiBase {
3
+ export interface IAuthApiBase {
4
4
  authToken: string;
5
5
  setAuthToken(token: string);
6
6
  getBaseUrl(defaultUrl: string, baseUrl: string);
@@ -1,7 +1,7 @@
1
1
  import { readonly, ref } from "vue";
2
2
  import { HasLoading } from "../useLoading";
3
3
 
4
- export type AsyncAction<Payload = void, Result = void> = (payload?: Payload) => Promise<Result>;
4
+ export type AsyncAction<Payload = void, Result = void> = (payload: Payload) => Promise<Result>;
5
5
 
6
6
  export interface UseAsync<Payload = void, Result = void> extends HasLoading {
7
7
  action: AsyncAction<Payload, Result>;
@@ -12,7 +12,7 @@ export function useAsync<Payload = void, Result = void>(
12
12
  ): UseAsync<Payload, Result> {
13
13
  const loading = ref(false);
14
14
 
15
- async function action(payload?: Payload): Promise<Result> {
15
+ async function action(payload: Payload): Promise<Result> {
16
16
  loading.value = true;
17
17
  try {
18
18
  return await innerAction(payload);
@@ -1,28 +1,18 @@
1
- import { Ref, ref } from "vue";
1
+ import { Ref, onMounted, ref } from "vue";
2
2
  import { useUser } from "./../useUser";
3
3
 
4
4
  interface IUsePermissions {
5
- checkPermission(permissions: string | string[]): boolean;
6
- fetchUserPermissions(): Promise<void>;
5
+ hasAccess(permissions: string | string[]): boolean;
7
6
  }
8
7
  const userPermissions: Ref<string[]> = ref([]);
9
8
  export function usePermissions(): IUsePermissions {
10
- const { user, loadUser } = useUser();
9
+ const { user } = useUser();
11
10
 
12
- async function fetchUserPermissions() {
13
- if (user.value?.permissions) {
14
- userPermissions.value = user.value?.permissions;
15
- } else {
16
- try {
17
- const userData = await loadUser();
18
- userPermissions.value = userData.permissions;
19
- } catch (e) {
20
- throw new Error("Unable to load user permissions");
21
- }
22
- }
11
+ if (user.value) {
12
+ userPermissions.value = user.value?.permissions;
23
13
  }
24
14
 
25
- function checkPermission(permissions: string | string[] | undefined) {
15
+ function hasAccess(permissions: string | string[] | undefined) {
26
16
  if (!permissions) {
27
17
  return true;
28
18
  } else if (permissions || (permissions && permissions instanceof Array)) {
@@ -39,7 +29,6 @@ export function usePermissions(): IUsePermissions {
39
29
  }
40
30
 
41
31
  return {
42
- checkPermission,
43
- fetchUserPermissions,
32
+ hasAccess,
44
33
  };
45
34
  }
@@ -1,4 +1,4 @@
1
- import { computed, Ref, ref, ComputedRef, getCurrentInstance, inject } from "vue";
1
+ import { computed, Ref, ref, ComputedRef } from "vue";
2
2
  import ClientOAuth2 from "client-oauth2";
3
3
  import {
4
4
  UserDetail,
@@ -31,6 +31,7 @@ const securityClient = new SecurityClient();
31
31
  interface IUseUser {
32
32
  user: ComputedRef<UserDetail | null>;
33
33
  loading: ComputedRef<boolean>;
34
+ isAdministrator: ComputedRef<boolean>;
34
35
  getAccessToken: () => Promise<string | null>;
35
36
  loadUser: () => Promise<UserDetail>;
36
37
  signIn: (username: string, password: string) => Promise<SignInResults>;
@@ -126,17 +127,17 @@ export function useUser(): IUseUser {
126
127
  const token = await getAccessToken();
127
128
  if (token) {
128
129
  securityClient.setAuthToken(token);
129
- }
130
130
 
131
- try {
132
- loading.value = true;
133
- user.value = await securityClient.getCurrentUser();
134
- console.log("[useUser]: an user details has been loaded", user.value);
135
- } catch (e) {
136
- console.dir(e);
137
- throw e;
138
- } finally {
139
- loading.value = false;
131
+ try {
132
+ loading.value = true;
133
+ user.value = await securityClient.getCurrentUser();
134
+ console.log("[useUser]: an user details has been loaded", user.value);
135
+ } catch (e) {
136
+ console.dir(e);
137
+ throw e;
138
+ } finally {
139
+ loading.value = false;
140
+ }
140
141
  }
141
142
 
142
143
  return { ...user.value } as UserDetail;
@@ -287,6 +288,7 @@ export function useUser(): IUseUser {
287
288
  return {
288
289
  user: computed(() => user.value),
289
290
  loading: computed(() => loading.value),
291
+ isAdministrator: computed(() => user.value.isAdministrator),
290
292
  isAuthenticated,
291
293
  getAccessToken,
292
294
  loadUser,
@@ -1,28 +1,6 @@
1
- import { Directive, DirectiveBinding } from "vue";
1
+ import { DirectiveBinding } from "vue";
2
+ import "./styles.css";
2
3
 
3
- const className = "v-loading";
4
-
5
- export const loading = {
6
- mounted: function (el: HTMLElement, binding: DirectiveBinding): void {
7
- console.log("v-loading mount");
8
- const loader = document.createElement("div");
9
- loader.className = className;
10
- loader.innerHTML = "Loading...";
11
- loader.style.display = binding.value ? "flex" : "none";
12
- loader.style.position = "absolute";
13
- loader.style.alignItems = "center";
14
- loader.style.justifyContent = "center";
15
- loader.style.background = "rgba(255, 255, 255, 0.75)";
16
- loader.style.zIndex = "9999";
17
- loader.style.width = "100%";
18
- loader.style.height = "100%";
19
- el.appendChild(loader);
20
- },
21
- updated: function (el: HTMLElement, binding: DirectiveBinding): void {
22
- console.log("v-loading updated");
23
- const loader = el.querySelector(`.${className}`) as HTMLElement;
24
- if (loader) {
25
- loader.style.display = binding.value ? "flex" : "none";
26
- }
27
- },
28
- } as Directive;
4
+ export const loading = (el: HTMLElement, binding: DirectiveBinding) => {
5
+ el.classList[binding.value ? "add" : "remove"]("v-loading");
6
+ };
@@ -0,0 +1,38 @@
1
+ .v-loading {
2
+ position: relative;
3
+ min-height: 30px;
4
+ cursor: wait;
5
+ }
6
+
7
+ .v-loading::before {
8
+ content: '';
9
+ position: absolute;
10
+ z-index: 99998;
11
+ top: 0;
12
+ right: 0;
13
+ bottom: 0;
14
+ left: 0;
15
+ background-color: rgba(255, 255, 255, 75%);
16
+ backdrop-filter: blur(3px);
17
+ }
18
+
19
+ .v-loading::after {
20
+ content: '';
21
+ position: absolute;
22
+ z-index: 99999;
23
+ width: 30px;
24
+ height: 30px;
25
+ border: 4px solid #319ed4;
26
+ border-right-color: transparent;
27
+ animation: 0.75s linear infinite v-loading;
28
+ border-radius: 50%;
29
+ top: calc(50% - 30px / 2);
30
+ left: calc(50% - 30px / 2);
31
+ display: inline-block;
32
+ }
33
+
34
+ @keyframes v-loading {
35
+ to {
36
+ transform: rotate(360deg);
37
+ }
38
+ }
@@ -1,14 +1,14 @@
1
- import { App } from "vue";
1
+ import { App, Component } from "vue";
2
2
  import { i18n } from "./../i18n";
3
3
  import { Router } from "vue-router";
4
4
  import { BladeConstructor } from "./../../../shared/components/blade-navigation/types";
5
5
  import { kebabToPascal } from "./../../utilities";
6
6
 
7
- export const createModule = (components: unknown, locales?: unknown) => ({
7
+ export const createModule = (components: unknown, locales?: unknown, isBladeComponent?: boolean) => ({
8
8
  install(app: App): void {
9
9
  // Register components
10
10
  Object.entries(components).forEach(([componentName, component]) => {
11
- app.component(componentName, component);
11
+ app.component(componentName, isBladeComponent ? { ...component, isBladeComponent: true } : component);
12
12
  });
13
13
 
14
14
  // Load locales
@@ -20,25 +20,44 @@ export const createModule = (components: unknown, locales?: unknown) => ({
20
20
  },
21
21
  });
22
22
 
23
- export const createAppModule = (pages: unknown, locales?: unknown, notificationTemplates?: unknown) => {
24
- const module = createModule(pages, locales);
23
+ export const createAppModule = (
24
+ pages: { [key: string]: BladeConstructor },
25
+ locales?: { [key: string]: object },
26
+ notificationTemplates?: { [key: string]: Component },
27
+ moduleComponents?: { [key: string]: Component }
28
+ ) => {
29
+ const module = createModule(pages, locales, true);
25
30
 
26
31
  return {
27
- install(app: App, options: { router: Router }): void {
28
- const { router } = options;
32
+ install(app: App, options?: { router: Router }): void {
33
+ let routerInstance: Router;
34
+
35
+ if (options && options.router) {
36
+ const { router } = options;
37
+ routerInstance = router;
38
+ }
39
+
29
40
  // Register pages
30
- Object.entries(pages).forEach(([, page]: [string, BladeConstructor]) => {
41
+ Object.entries(pages).forEach(([key, page]) => {
31
42
  app.config.globalProperties.pages?.push(page);
32
43
 
44
+ app.config.globalProperties.bladeRoutes?.push({
45
+ component: page,
46
+ route: page.url,
47
+ name: key,
48
+ });
49
+
33
50
  // Dynamically add pages to vue router
34
51
  if (page.url) {
35
- const mainRouteName = router.getRoutes().find((r) => r.meta?.root)?.name;
52
+ const mainRouteName = routerInstance.getRoutes().find((r) => r.meta?.root)?.name;
36
53
 
37
- router.addRoute(mainRouteName, {
38
- name: kebabToPascal(page.url.substring(1)),
39
- path: page.url.substring(1),
40
- component: page,
41
- });
54
+ if (routerInstance && mainRouteName) {
55
+ routerInstance.addRoute(mainRouteName, {
56
+ name: kebabToPascal(page.url.substring(1)),
57
+ path: page.url.substring(1),
58
+ component: page,
59
+ });
60
+ }
42
61
  }
43
62
  });
44
63
 
@@ -48,6 +67,14 @@ export const createAppModule = (pages: unknown, locales?: unknown, notificationT
48
67
  app.config.globalProperties.notificationTemplates?.push(template);
49
68
  });
50
69
  }
70
+
71
+ if (moduleComponents) {
72
+ // Register module components globally
73
+ Object.entries(moduleComponents).forEach(([name, component]) => {
74
+ app.component(name, component);
75
+ });
76
+ }
77
+
51
78
  module.install(app);
52
79
  },
53
80
  };
@@ -3,8 +3,8 @@ import { App } from "vue";
3
3
 
4
4
  export const permissions = {
5
5
  install(app: App) {
6
- const { checkPermission } = usePermissions();
7
- app.config.globalProperties.$hasAccess = checkPermission;
8
- app.provide("$hasAccess", checkPermission);
6
+ const { hasAccess } = usePermissions();
7
+ app.config.globalProperties.$hasAccess = hasAccess;
8
+ app.provide("$hasAccess", hasAccess);
9
9
  },
10
10
  };
@@ -14,16 +14,38 @@ import {
14
14
  // while it satisfies requirements
15
15
  export type IValidationRules = {
16
16
  required?: boolean;
17
- numberic?: boolean;
17
+ numeric?: boolean;
18
18
  email?: boolean;
19
19
  min?: number;
20
20
  max?: number;
21
21
  regex?: RegExp;
22
22
  min_value?: number;
23
23
  max_value?: number;
24
- after?: string;
25
24
  maxdimensions?: [string | number, string | number];
26
25
  size?: number;
26
+ alpha?: boolean;
27
+ alpha_dash?: boolean;
28
+ alpha_num?: boolean;
29
+ alpha_spaces?: boolean;
30
+ between?: [number, number] | { min: number; max: number };
31
+ confirmed?: `@${string}`;
32
+ digits?: number;
33
+ dimensions?: [number, number] | { width: number; height: number };
34
+ not_one_of?: [number, number];
35
+ ext?: string[];
36
+ image?: boolean;
37
+ integer?: boolean;
38
+ is?: string;
39
+ is_not?: string;
40
+ length?: number;
41
+ mimes?: string[];
42
+ one_of?: number[];
43
+ url?: string;
44
+ mindimensions?: [number, number] | { width: number; height: number };
45
+ fileWeight?: number;
46
+ before?: `@${string}`;
47
+ after?: `@${string}`;
48
+ bigint?: boolean;
27
49
  };
28
50
 
29
51
  export interface IBladeDropdownItem {
@@ -80,7 +102,9 @@ export type ToolbarMenu<T> = T extends {
80
102
  } & IBladeToolbar
81
103
  : T & { component?: ComponentInstanceConstructor };
82
104
 
83
- export type NotificationTemplateConstructor = ComponentInstanceConstructor & { notifyType: string };
105
+ export type NotificationTemplateConstructor = ComponentInstanceConstructor & {
106
+ notifyType: string;
107
+ };
84
108
 
85
109
  // eslint-disable-next-line @typescript-eslint/ban-types
86
110
  export interface IActionBuilderResult<T = {}> {
@@ -91,6 +115,15 @@ export interface IActionBuilderResult<T = {}> {
91
115
  clickHandler(item?: T): void;
92
116
  }
93
117
 
118
+ export interface AssetsHandler<T, A> {
119
+ loading: Ref<boolean>;
120
+ upload: (files: FileList, assetArr: T[], uploadCatalog: string, uploadFolder: string) => Promise<T[]>;
121
+ edit: (assetsArr: T[], asset: A) => Promise<T[]>;
122
+ editBulk: (assets: A[]) => T[];
123
+ remove: (assetArr: T[], asset: A) => Promise<T[]>;
124
+ removeBulk: (assetArr: T[], assetsArrEdited: T[]) => Promise<T[]>;
125
+ }
126
+
94
127
  export interface IImage {
95
128
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
96
129
  [x: string]: any;
@@ -1,4 +1,4 @@
1
- interface IAuthApiBase {
1
+ export interface IAuthApiBase {
2
2
  authToken: string;
3
3
  setAuthToken(token: string): any;
4
4
  getBaseUrl(defaultUrl: string, baseUrl: string): any;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../core/composables/useApiClient/index.ts"],"names":[],"mappings":"AAEA,UAAU,YAAY;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,KAAK,EAAE,MAAM,OAAE;IAC5B,UAAU,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,OAAE;CACjD;AAED,UAAU,YAAY,CAAC,SAAS,SAAS,YAAY;IACnD,YAAY,EAAE,MAAM,OAAO,CAAC,SAAS,CAAC,CAAC;CACxC;AAED,wBAAgB,YAAY,CAAC,SAAS,SAAS,YAAY,EACzD,CAAC,EAAE,KAAK,OAAO,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE;IAAE,KAAK,CAAC,GAAG,EAAE,WAAW,EAAE,IAAI,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAA;CAAE,KAAK,SAAS,GAChH,YAAY,CAAC,SAAS,CAAC,CAYzB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../core/composables/useApiClient/index.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,KAAK,EAAE,MAAM,OAAE;IAC5B,UAAU,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,OAAE;CACjD;AAED,UAAU,YAAY,CAAC,SAAS,SAAS,YAAY;IACnD,YAAY,EAAE,MAAM,OAAO,CAAC,SAAS,CAAC,CAAC;CACxC;AAED,wBAAgB,YAAY,CAAC,SAAS,SAAS,YAAY,EACzD,CAAC,EAAE,KAAK,OAAO,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE;IAAE,KAAK,CAAC,GAAG,EAAE,WAAW,EAAE,IAAI,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAA;CAAE,KAAK,SAAS,GAChH,YAAY,CAAC,SAAS,CAAC,CAYzB"}
@@ -1,5 +1,5 @@
1
1
  import { HasLoading } from "../useLoading";
2
- export type AsyncAction<Payload = void, Result = void> = (payload?: Payload) => Promise<Result>;
2
+ export type AsyncAction<Payload = void, Result = void> = (payload: Payload) => Promise<Result>;
3
3
  export interface UseAsync<Payload = void, Result = void> extends HasLoading {
4
4
  action: AsyncAction<Payload, Result>;
5
5
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../core/composables/useAsync/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,MAAM,MAAM,WAAW,CAAC,OAAO,GAAG,IAAI,EAAE,MAAM,GAAG,IAAI,IAAI,CAAC,OAAO,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;AAEhG,MAAM,WAAW,QAAQ,CAAC,OAAO,GAAG,IAAI,EAAE,MAAM,GAAG,IAAI,CAAE,SAAQ,UAAU;IACzE,MAAM,EAAE,WAAW,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;CACtC;AAED,wBAAgB,QAAQ,CAAC,OAAO,GAAG,IAAI,EAAE,MAAM,GAAG,IAAI,EACpD,WAAW,EAAE,WAAW,CAAC,OAAO,EAAE,MAAM,CAAC,GACxC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,CAmB3B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../core/composables/useAsync/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,MAAM,MAAM,WAAW,CAAC,OAAO,GAAG,IAAI,EAAE,MAAM,GAAG,IAAI,IAAI,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;AAE/F,MAAM,WAAW,QAAQ,CAAC,OAAO,GAAG,IAAI,EAAE,MAAM,GAAG,IAAI,CAAE,SAAQ,UAAU;IACzE,MAAM,EAAE,WAAW,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;CACtC;AAED,wBAAgB,QAAQ,CAAC,OAAO,GAAG,IAAI,EAAE,MAAM,GAAG,IAAI,EACpD,WAAW,EAAE,WAAW,CAAC,OAAO,EAAE,MAAM,CAAC,GACxC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,CAmB3B"}
@@ -1,6 +1,5 @@
1
1
  interface IUsePermissions {
2
- checkPermission(permissions: string | string[]): boolean;
3
- fetchUserPermissions(): Promise<void>;
2
+ hasAccess(permissions: string | string[]): boolean;
4
3
  }
5
4
  export declare function usePermissions(): IUsePermissions;
6
5
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../core/composables/usePermissions/index.ts"],"names":[],"mappings":"AAGA,UAAU,eAAe;IACvB,eAAe,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,OAAO,CAAC;IACzD,oBAAoB,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACvC;AAED,wBAAgB,cAAc,IAAI,eAAe,CAoChD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../core/composables/usePermissions/index.ts"],"names":[],"mappings":"AAGA,UAAU,eAAe;IACvB,SAAS,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,OAAO,CAAC;CACpD;AAED,wBAAgB,cAAc,IAAI,eAAe,CA0BhD"}
@@ -4,6 +4,7 @@ import { RequestPasswordResult, SignInResults } from "./../../types";
4
4
  interface IUseUser {
5
5
  user: ComputedRef<UserDetail | null>;
6
6
  loading: ComputedRef<boolean>;
7
+ isAdministrator: ComputedRef<boolean>;
7
8
  getAccessToken: () => Promise<string | null>;
8
9
  loadUser: () => Promise<UserDetail>;
9
10
  signIn: (username: string, password: string) => Promise<SignInResults>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../core/composables/useUser/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,WAAW,EAA8B,MAAM,KAAK,CAAC;AAElF,OAAO,EACL,UAAU,EAGV,cAAc,EAEd,cAAc,EAGd,SAAS,EACT,0BAA0B,EAC3B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAY,qBAAqB,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAgB/E,UAAU,QAAQ;IAChB,IAAI,EAAE,WAAW,CAAC,UAAU,GAAG,IAAI,CAAC,CAAC;IACrC,OAAO,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAC9B,cAAc,EAAE,MAAM,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC7C,QAAQ,EAAE,MAAM,OAAO,CAAC,UAAU,CAAC,CAAC;IACpC,MAAM,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,aAAa,CAAC,CAAC;IACvE,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7B,aAAa,EAAE,CA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
- import { Directive } from "vue";
2
- export declare const loading: Directive;
1
+ import { DirectiveBinding } from "vue";
2
+ import "./styles.css";
3
+ export declare const loading: (el: HTMLElement, binding: DirectiveBinding) => void;
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../core/directives/loading/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAoB,MAAM,KAAK,CAAC;AAIlD,eAAO,MAAM,OAAO,WAuBN,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../core/directives/loading/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,KAAK,CAAC;AACvC,OAAO,cAAc,CAAC;AAEtB,eAAO,MAAM,OAAO,OAAQ,WAAW,WAAW,gBAAgB,SAEjE,CAAC"}
@@ -1,10 +1,19 @@
1
- import { App } from "vue";
1
+ import { App, Component } from "vue";
2
2
  import { Router } from "vue-router";
3
- export declare const createModule: (components: unknown, locales?: unknown) => {
3
+ import { BladeConstructor } from "./../../../shared/components/blade-navigation/types";
4
+ export declare const createModule: (components: unknown, locales?: unknown, isBladeComponent?: boolean) => {
4
5
  install(app: App): void;
5
6
  };
6
- export declare const createAppModule: (pages: unknown, locales?: unknown, notificationTemplates?: unknown) => {
7
- install(app: App, options: {
7
+ export declare const createAppModule: (pages: {
8
+ [key: string]: BladeConstructor;
9
+ }, locales?: {
10
+ [key: string]: object;
11
+ }, notificationTemplates?: {
12
+ [key: string]: Component;
13
+ }, moduleComponents?: {
14
+ [key: string]: Component;
15
+ }) => {
16
+ install(app: App, options?: {
8
17
  router: Router;
9
18
  }): void;
10
19
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../core/plugins/modularity/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAIpC,eAAO,MAAM,YAAY,eAAgB,OAAO,YAAY,OAAO;iBACpD,GAAG,GAAG,IAAI;CAavB,CAAC;AAEH,eAAO,MAAM,eAAe,UAAW,OAAO,YAAY,OAAO,0BAA0B,OAAO;iBAIjF,GAAG,WAAW;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI;CA2BvD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../core/plugins/modularity/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAC;AAGvF,eAAO,MAAM,YAAY,eAAgB,OAAO,YAAY,OAAO,qBAAqB,OAAO;iBAChF,GAAG,GAAG,IAAI;CAavB,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;iBASX,GAAG,YAAY;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI;CAiDxD,CAAC"}
@@ -2,16 +2,47 @@ import { ComponentPublicInstance, ComputedRef, Ref } from "vue";
2
2
  import { CoreBladeExposed, BladeConstructor, ExtractedBladeOptions, ComponentInstanceConstructor, BladeInstanceConstructor } from "./../../shared";
3
3
  export type IValidationRules = {
4
4
  required?: boolean;
5
- numberic?: boolean;
5
+ numeric?: boolean;
6
6
  email?: boolean;
7
7
  min?: number;
8
8
  max?: number;
9
9
  regex?: RegExp;
10
10
  min_value?: number;
11
11
  max_value?: number;
12
- after?: string;
13
12
  maxdimensions?: [string | number, string | number];
14
13
  size?: number;
14
+ alpha?: boolean;
15
+ alpha_dash?: boolean;
16
+ alpha_num?: boolean;
17
+ alpha_spaces?: boolean;
18
+ between?: [number, number] | {
19
+ min: number;
20
+ max: number;
21
+ };
22
+ confirmed?: `@${string}`;
23
+ digits?: number;
24
+ dimensions?: [number, number] | {
25
+ width: number;
26
+ height: number;
27
+ };
28
+ not_one_of?: [number, number];
29
+ ext?: string[];
30
+ image?: boolean;
31
+ integer?: boolean;
32
+ is?: string;
33
+ is_not?: string;
34
+ length?: number;
35
+ mimes?: string[];
36
+ one_of?: number[];
37
+ url?: string;
38
+ mindimensions?: [number, number] | {
39
+ width: number;
40
+ height: number;
41
+ };
42
+ fileWeight?: number;
43
+ before?: `@${string}`;
44
+ after?: `@${string}`;
45
+ bigint?: boolean;
15
46
  };
16
47
  export interface IBladeDropdownItem {
17
48
  id: string;
@@ -69,6 +100,14 @@ export interface IActionBuilderResult<T = {}> {
69
100
  leftActions?: boolean;
70
101
  clickHandler(item?: T): void;
71
102
  }
103
+ export interface AssetsHandler<T, A> {
104
+ loading: Ref<boolean>;
105
+ upload: (files: FileList, assetArr: T[], uploadCatalog: string, uploadFolder: string) => Promise<T[]>;
106
+ edit: (assetsArr: T[], asset: A) => Promise<T[]>;
107
+ editBulk: (assets: A[]) => T[];
108
+ remove: (assetArr: T[], asset: A) => Promise<T[]>;
109
+ removeBulk: (assetArr: T[], assetsArrEdited: T[]) => Promise<T[]>;
110
+ }
72
111
  export interface IImage {
73
112
  [x: string]: any;
74
113
  sortOrder?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../core/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAChE,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,qBAAqB,EACrB,4BAA4B,EAC5B,wBAAwB,EACzB,MAAM,gBAAgB,CAAC;AAOxB,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG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