@vc-shell/framework 1.0.52 → 1.0.54

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 (390) hide show
  1. package/core/composables/index.ts +0 -1
  2. package/core/composables/useApiClient/index.ts +9 -4
  3. package/core/composables/useAsync/index.ts +2 -6
  4. package/core/composables/useAutosave/index.ts +1 -3
  5. package/core/composables/useFunctions/debounce.ts +1 -4
  6. package/core/composables/useFunctions/delay.ts +1 -4
  7. package/core/composables/useFunctions/once.ts +1 -3
  8. package/core/composables/useFunctions/throttle.ts +1 -4
  9. package/core/composables/useI18n/index.ts +3 -24
  10. package/core/composables/useLoading/index.ts +1 -3
  11. package/core/composables/useNotifications/index.ts +6 -13
  12. package/core/composables/usePermissions/index.ts +1 -1
  13. package/core/composables/useSettings/index.ts +3 -4
  14. package/core/composables/useUser/index.ts +27 -66
  15. package/core/directives/permissions/index.ts +1 -1
  16. package/core/plugins/i18n/index.ts +8 -0
  17. package/core/plugins/index.ts +3 -1
  18. package/core/plugins/modularity/index.ts +32 -0
  19. package/core/plugins/moment/humanize.ts +1 -4
  20. package/core/plugins/validation/index.ts +11 -1
  21. package/core/plugins/validation/rules.ts +48 -170
  22. package/core/types/index.ts +7 -9
  23. package/dist/core/composables/index.d.ts +0 -1
  24. package/dist/core/composables/index.d.ts.map +1 -1
  25. package/dist/core/composables/useApiClient/index.d.ts +9 -3
  26. package/dist/core/composables/useApiClient/index.d.ts.map +1 -1
  27. package/dist/core/composables/useAsync/index.d.ts.map +1 -1
  28. package/dist/core/composables/useAutosave/index.d.ts.map +1 -1
  29. package/dist/core/composables/useFunctions/debounce.d.ts.map +1 -1
  30. package/dist/core/composables/useFunctions/delay.d.ts.map +1 -1
  31. package/dist/core/composables/useFunctions/once.d.ts.map +1 -1
  32. package/dist/core/composables/useFunctions/throttle.d.ts.map +1 -1
  33. package/dist/core/composables/useI18n/index.d.ts +2 -4
  34. package/dist/core/composables/useI18n/index.d.ts.map +1 -1
  35. package/dist/core/composables/useLoading/index.d.ts.map +1 -1
  36. package/dist/core/composables/useNotifications/index.d.ts +1 -1
  37. package/dist/core/composables/useNotifications/index.d.ts.map +1 -1
  38. package/dist/core/composables/useSettings/index.d.ts.map +1 -1
  39. package/dist/core/composables/useUser/index.d.ts +2 -2
  40. package/dist/core/composables/useUser/index.d.ts.map +1 -1
  41. package/dist/core/plugins/i18n/index.d.ts +3 -0
  42. package/dist/core/plugins/i18n/index.d.ts.map +1 -0
  43. package/dist/core/plugins/index.d.ts +3 -1
  44. package/dist/core/plugins/index.d.ts.map +1 -1
  45. package/dist/core/plugins/modularity/index.d.ts +8 -0
  46. package/dist/core/plugins/modularity/index.d.ts.map +1 -0
  47. package/dist/core/plugins/moment/humanize.d.ts.map +1 -1
  48. package/dist/core/plugins/validation/index.d.ts +3 -1
  49. package/dist/core/plugins/validation/index.d.ts.map +1 -1
  50. package/dist/core/plugins/validation/rules.d.ts +32 -11
  51. package/dist/core/plugins/validation/rules.d.ts.map +1 -1
  52. package/dist/core/types/index.d.ts +5 -6
  53. package/dist/core/types/index.d.ts.map +1 -1
  54. package/dist/framework.esm.js +42553 -0
  55. package/dist/framework.js +74 -72
  56. package/dist/index.d.ts.map +1 -1
  57. package/dist/shared/app-switcher/composables/useAppSwitcher/index.d.ts +1 -1
  58. package/dist/shared/app-switcher/composables/useAppSwitcher/index.d.ts.map +1 -1
  59. package/dist/shared/app-switcher/index.d.ts +2 -3
  60. package/dist/shared/app-switcher/index.d.ts.map +1 -1
  61. package/dist/shared/assets/components/index.d.ts +1 -1
  62. package/dist/shared/assets/components/index.d.ts.map +1 -1
  63. package/dist/shared/assets/index.d.ts +2 -3
  64. package/dist/shared/assets/index.d.ts.map +1 -1
  65. package/dist/shared/blade-navigation/composables/index.d.ts +1 -1
  66. package/dist/shared/blade-navigation/composables/index.d.ts.map +1 -1
  67. package/dist/shared/blade-navigation/composables/useBladeNavigation/index.d.ts +2 -2
  68. package/dist/shared/blade-navigation/composables/useBladeNavigation/index.d.ts.map +1 -1
  69. package/dist/shared/blade-navigation/index.d.ts +2 -3
  70. package/dist/shared/blade-navigation/index.d.ts.map +1 -1
  71. package/dist/shared/blade-navigation/types/index.d.ts +1 -1
  72. package/dist/shared/blade-navigation/types/index.d.ts.map +1 -1
  73. package/dist/shared/index.d.ts +4 -1
  74. package/dist/shared/index.d.ts.map +1 -1
  75. package/dist/style.css +1 -1
  76. package/dist/tsconfig.tsbuildinfo +1 -1
  77. package/dist/ui/components/atoms/vc-badge/index.d.ts +3 -3
  78. package/dist/ui/components/atoms/vc-badge/index.d.ts.map +1 -1
  79. package/dist/ui/components/atoms/vc-badge/vc-badge-model.d.ts +20 -20
  80. package/dist/ui/components/atoms/vc-badge/vc-badge-model.d.ts.map +1 -1
  81. package/dist/ui/components/atoms/vc-button/index.d.ts +3 -3
  82. package/dist/ui/components/atoms/vc-button/index.d.ts.map +1 -1
  83. package/dist/ui/components/atoms/vc-button/vc-button-model.d.ts +30 -24
  84. package/dist/ui/components/atoms/vc-button/vc-button-model.d.ts.map +1 -1
  85. package/dist/ui/components/atoms/vc-card/index.d.ts +5 -0
  86. package/dist/ui/components/atoms/vc-card/index.d.ts.map +1 -0
  87. package/dist/ui/components/atoms/vc-card/vc-card-model.d.ts +33 -0
  88. package/dist/ui/components/atoms/vc-card/vc-card-model.d.ts.map +1 -0
  89. package/dist/ui/components/atoms/vc-checkbox/index.d.ts +5 -0
  90. package/dist/ui/components/atoms/vc-checkbox/index.d.ts.map +1 -0
  91. package/dist/ui/components/atoms/vc-checkbox/vc-checkbox-model.d.ts +31 -0
  92. package/dist/ui/components/atoms/vc-checkbox/vc-checkbox-model.d.ts.map +1 -0
  93. package/dist/ui/components/atoms/vc-col/index.d.ts +5 -0
  94. package/dist/ui/components/atoms/vc-col/index.d.ts.map +1 -0
  95. package/dist/ui/components/atoms/vc-col/vc-col-model.d.ts +13 -0
  96. package/dist/ui/components/atoms/vc-col/vc-col-model.d.ts.map +1 -0
  97. package/dist/ui/components/atoms/vc-container/index.d.ts +5 -0
  98. package/dist/ui/components/atoms/vc-container/index.d.ts.map +1 -0
  99. package/dist/ui/components/atoms/vc-container/vc-container-model.d.ts +25 -0
  100. package/dist/ui/components/atoms/vc-container/vc-container-model.d.ts.map +1 -0
  101. package/dist/ui/components/atoms/vc-hint/index.d.ts +2 -0
  102. package/dist/ui/components/atoms/vc-hint/index.d.ts.map +1 -0
  103. package/dist/ui/components/atoms/vc-hint/vc-hint-model.d.ts +5 -0
  104. package/dist/ui/components/atoms/vc-hint/vc-hint-model.d.ts.map +1 -0
  105. package/dist/ui/components/atoms/vc-icon/index.d.ts +5 -0
  106. package/dist/ui/components/atoms/vc-icon/index.d.ts.map +1 -0
  107. package/dist/ui/components/atoms/vc-icon/vc-icon-model.d.ts +17 -0
  108. package/dist/ui/components/atoms/vc-icon/vc-icon-model.d.ts.map +1 -0
  109. package/dist/ui/components/atoms/vc-image/index.d.ts +5 -0
  110. package/dist/ui/components/atoms/vc-image/index.d.ts.map +1 -0
  111. package/dist/ui/components/atoms/vc-image/vc-image-model.d.ts +38 -0
  112. package/dist/ui/components/atoms/vc-image/vc-image-model.d.ts.map +1 -0
  113. package/dist/ui/components/atoms/vc-image/vc-image.stories.d.ts.map +1 -1
  114. package/dist/ui/components/atoms/vc-info-row/index.d.ts +5 -0
  115. package/dist/ui/components/atoms/vc-info-row/index.d.ts.map +1 -0
  116. package/dist/ui/components/atoms/vc-info-row/vc-info-row-model.d.ts +25 -0
  117. package/dist/ui/components/atoms/vc-info-row/vc-info-row-model.d.ts.map +1 -0
  118. package/dist/ui/components/atoms/vc-label/index.d.ts +5 -0
  119. package/dist/ui/components/atoms/vc-label/index.d.ts.map +1 -0
  120. package/dist/ui/components/atoms/vc-label/vc-label-model.d.ts +18 -0
  121. package/dist/ui/components/atoms/vc-label/vc-label-model.d.ts.map +1 -0
  122. package/dist/ui/components/atoms/vc-link/index.d.ts +5 -0
  123. package/dist/ui/components/atoms/vc-link/index.d.ts.map +1 -0
  124. package/dist/ui/components/atoms/vc-link/vc-link-model.d.ts +21 -0
  125. package/dist/ui/components/atoms/vc-link/vc-link-model.d.ts.map +1 -0
  126. package/dist/ui/components/atoms/vc-loading/index.d.ts +5 -0
  127. package/dist/ui/components/atoms/vc-loading/index.d.ts.map +1 -0
  128. package/dist/ui/components/atoms/vc-loading/vc-loading-model.d.ts +13 -0
  129. package/dist/ui/components/atoms/vc-loading/vc-loading-model.d.ts.map +1 -0
  130. package/dist/ui/components/atoms/vc-progress/index.d.ts +5 -0
  131. package/dist/ui/components/atoms/vc-progress/index.d.ts.map +1 -0
  132. package/dist/ui/components/atoms/vc-progress/vc-progress-model.d.ts +17 -0
  133. package/dist/ui/components/atoms/vc-progress/vc-progress-model.d.ts.map +1 -0
  134. package/dist/ui/components/atoms/vc-row/index.d.ts +2 -0
  135. package/dist/ui/components/atoms/vc-row/index.d.ts.map +1 -0
  136. package/dist/ui/components/atoms/vc-row/vc-row-model.d.ts +5 -0
  137. package/dist/ui/components/atoms/vc-row/vc-row-model.d.ts.map +1 -0
  138. package/dist/ui/components/atoms/vc-status/index.d.ts +5 -0
  139. package/dist/ui/components/atoms/vc-status/index.d.ts.map +1 -0
  140. package/dist/ui/components/atoms/vc-status/vc-status-model.d.ts +21 -0
  141. package/dist/ui/components/atoms/vc-status/vc-status-model.d.ts.map +1 -0
  142. package/dist/ui/components/atoms/vc-status-icon/index.d.ts +5 -0
  143. package/dist/ui/components/atoms/vc-status-icon/index.d.ts.map +1 -0
  144. package/dist/ui/components/atoms/vc-status-icon/vc-status-icon-model.d.ts +13 -0
  145. package/dist/ui/components/atoms/vc-status-icon/vc-status-icon-model.d.ts.map +1 -0
  146. package/dist/ui/components/atoms/vc-switch/index.d.ts +5 -0
  147. package/dist/ui/components/atoms/vc-switch/index.d.ts.map +1 -0
  148. package/dist/ui/components/atoms/vc-switch/vc-switch-model.d.ts +30 -0
  149. package/dist/ui/components/atoms/vc-switch/vc-switch-model.d.ts.map +1 -0
  150. package/dist/ui/components/atoms/vc-widget/index.d.ts +5 -0
  151. package/dist/ui/components/atoms/vc-widget/index.d.ts.map +1 -0
  152. package/dist/ui/components/atoms/vc-widget/vc-widget-model.d.ts +20 -0
  153. package/dist/ui/components/atoms/vc-widget/vc-widget-model.d.ts.map +1 -0
  154. package/dist/ui/components/index.d.ts +34 -34
  155. package/dist/ui/components/index.d.ts.map +1 -1
  156. package/dist/ui/components/molecules/vc-breadcrumbs/index.d.ts +5 -0
  157. package/dist/ui/components/molecules/vc-breadcrumbs/index.d.ts.map +1 -0
  158. package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs-model.d.ts +19 -0
  159. package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs-model.d.ts.map +1 -0
  160. package/dist/ui/components/molecules/vc-editor/index.d.ts +5 -0
  161. package/dist/ui/components/molecules/vc-editor/index.d.ts.map +1 -0
  162. package/dist/ui/components/molecules/vc-editor/vc-editor-model.d.ts +33 -0
  163. package/dist/ui/components/molecules/vc-editor/vc-editor-model.d.ts.map +1 -0
  164. package/dist/ui/components/molecules/vc-file-upload/index.d.ts +5 -0
  165. package/dist/ui/components/molecules/vc-file-upload/index.d.ts.map +1 -0
  166. package/dist/ui/components/molecules/vc-file-upload/vc-file-upload-model.d.ts +34 -0
  167. package/dist/ui/components/molecules/vc-file-upload/vc-file-upload-model.d.ts.map +1 -0
  168. package/dist/ui/components/molecules/vc-form/index.d.ts +2 -0
  169. package/dist/ui/components/molecules/vc-form/index.d.ts.map +1 -0
  170. package/dist/ui/components/molecules/vc-form/vc-form-model.d.ts +5 -0
  171. package/dist/ui/components/molecules/vc-form/vc-form-model.d.ts.map +1 -0
  172. package/dist/ui/components/molecules/vc-input/index.d.ts +3 -3
  173. package/dist/ui/components/molecules/vc-input/index.d.ts.map +1 -1
  174. package/dist/ui/components/molecules/vc-input/vc-input-model.d.ts +48 -25
  175. package/dist/ui/components/molecules/vc-input/vc-input-model.d.ts.map +1 -1
  176. package/dist/ui/components/molecules/vc-input-currency/index.d.ts +3 -3
  177. package/dist/ui/components/molecules/vc-input-currency/index.d.ts.map +1 -1
  178. package/dist/ui/components/molecules/vc-input-currency/vc-input-currency-model.d.ts +36 -28
  179. package/dist/ui/components/molecules/vc-input-currency/vc-input-currency-model.d.ts.map +1 -1
  180. package/dist/ui/components/molecules/vc-notification/index.d.ts +5 -0
  181. package/dist/ui/components/molecules/vc-notification/index.d.ts.map +1 -0
  182. package/dist/ui/components/molecules/vc-notification/vc-notification-model.d.ts +18 -0
  183. package/dist/ui/components/molecules/vc-notification/vc-notification-model.d.ts.map +1 -0
  184. package/dist/ui/components/molecules/vc-pagination/index.d.ts +5 -0
  185. package/dist/ui/components/molecules/vc-pagination/index.d.ts.map +1 -0
  186. package/dist/ui/components/molecules/vc-pagination/vc-pagination-model.d.ts +25 -0
  187. package/dist/ui/components/molecules/vc-pagination/vc-pagination-model.d.ts.map +1 -0
  188. package/dist/ui/components/molecules/vc-rating/index.d.ts +5 -0
  189. package/dist/ui/components/molecules/vc-rating/index.d.ts.map +1 -0
  190. package/dist/ui/components/molecules/vc-rating/vc-rating-model.d.ts +21 -0
  191. package/dist/ui/components/molecules/vc-rating/vc-rating-model.d.ts.map +1 -0
  192. package/dist/ui/components/molecules/vc-select/index.d.ts +3 -3
  193. package/dist/ui/components/molecules/vc-select/index.d.ts.map +1 -1
  194. package/dist/ui/components/molecules/vc-select/vc-select-model.d.ts +67 -32
  195. package/dist/ui/components/molecules/vc-select/vc-select-model.d.ts.map +1 -1
  196. package/dist/ui/components/molecules/vc-slider/index.d.ts +5 -0
  197. package/dist/ui/components/molecules/vc-slider/index.d.ts.map +1 -0
  198. package/dist/ui/components/molecules/vc-slider/vc-slider-model.d.ts +33 -0
  199. package/dist/ui/components/molecules/vc-slider/vc-slider-model.d.ts.map +1 -0
  200. package/dist/ui/components/molecules/vc-textarea/index.d.ts +5 -0
  201. package/dist/ui/components/molecules/vc-textarea/index.d.ts.map +1 -0
  202. package/dist/ui/components/molecules/vc-textarea/vc-textarea-model.d.ts +37 -0
  203. package/dist/ui/components/molecules/vc-textarea/vc-textarea-model.d.ts.map +1 -0
  204. package/dist/ui/components/organisms/vc-app/index.d.ts +5 -0
  205. package/dist/ui/components/organisms/vc-app/index.d.ts.map +1 -0
  206. package/dist/ui/components/organisms/vc-app/vc-app-model.d.ts +61 -0
  207. package/dist/ui/components/organisms/vc-app/vc-app-model.d.ts.map +1 -0
  208. package/dist/ui/components/organisms/vc-blade/index.d.ts +5 -0
  209. package/dist/ui/components/organisms/vc-blade/index.d.ts.map +1 -0
  210. package/dist/ui/components/organisms/vc-blade/vc-blade-model.d.ts +34 -0
  211. package/dist/ui/components/organisms/vc-blade/vc-blade-model.d.ts.map +1 -0
  212. package/dist/ui/components/organisms/vc-blade/vc-blade.stories.d.ts.map +1 -1
  213. package/dist/ui/components/organisms/vc-dynamic-property/index.d.ts +5 -0
  214. package/dist/ui/components/organisms/vc-dynamic-property/index.d.ts.map +1 -0
  215. package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property-model.d.ts +43 -0
  216. package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property-model.d.ts.map +1 -0
  217. package/dist/ui/components/organisms/vc-gallery/index.d.ts +5 -0
  218. package/dist/ui/components/organisms/vc-gallery/index.d.ts.map +1 -0
  219. package/dist/ui/components/organisms/vc-gallery/vc-gallery-model.d.ts +74 -0
  220. package/dist/ui/components/organisms/vc-gallery/vc-gallery-model.d.ts.map +1 -0
  221. package/dist/ui/components/organisms/vc-login-form/index.d.ts +5 -0
  222. package/dist/ui/components/organisms/vc-login-form/index.d.ts.map +1 -0
  223. package/dist/ui/components/organisms/vc-login-form/vc-login-form-model.d.ts +15 -0
  224. package/dist/ui/components/organisms/vc-login-form/vc-login-form-model.d.ts.map +1 -0
  225. package/dist/ui/components/organisms/vc-popup/index.d.ts +5 -0
  226. package/dist/ui/components/organisms/vc-popup/index.d.ts.map +1 -0
  227. package/dist/ui/components/organisms/vc-popup/vc-popup-model.d.ts +22 -0
  228. package/dist/ui/components/organisms/vc-popup/vc-popup-model.d.ts.map +1 -0
  229. package/dist/ui/components/organisms/vc-table/index.d.ts +5 -0
  230. package/dist/ui/components/organisms/vc-table/index.d.ts.map +1 -0
  231. package/dist/ui/components/organisms/vc-table/vc-table-model.d.ts +135 -0
  232. package/dist/ui/components/organisms/vc-table/vc-table-model.d.ts.map +1 -0
  233. package/dist/ui/types/index.d.ts +76 -6
  234. package/dist/ui/types/index.d.ts.map +1 -1
  235. package/dist/ui/types/ts-helpers.d.ts +14 -4
  236. package/dist/ui/types/ts-helpers.d.ts.map +1 -1
  237. package/dist/ui/utils/index.d.ts +2 -0
  238. package/dist/ui/utils/index.d.ts.map +1 -0
  239. package/dist/ui/utils/types.d.ts +3 -0
  240. package/dist/ui/utils/types.d.ts.map +1 -0
  241. package/dist/vite.config.d.ts +1 -1
  242. package/dist/vite.config.d.ts.map +1 -1
  243. package/package.json +9 -11
  244. package/shared/app-switcher/components/vc-app-switcher/vc-app-switcher.vue +3 -6
  245. package/shared/app-switcher/composables/useAppSwitcher/index.ts +3 -8
  246. package/shared/app-switcher/index.ts +3 -10
  247. package/shared/assets/components/assets-details/assets-details.vue +10 -31
  248. package/shared/assets/components/index.ts +1 -1
  249. package/shared/assets/index.ts +3 -15
  250. package/shared/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue +2 -7
  251. package/shared/blade-navigation/composables/index.ts +1 -1
  252. package/shared/blade-navigation/composables/useBladeNavigation/index.ts +8 -37
  253. package/shared/blade-navigation/index.ts +3 -10
  254. package/shared/blade-navigation/types/index.ts +1 -1
  255. package/shared/index.ts +9 -11
  256. package/ui/components/atoms/vc-badge/index.ts +5 -5
  257. package/ui/components/atoms/vc-badge/vc-badge-model.ts +21 -20
  258. package/ui/components/atoms/vc-badge/vc-badge.vue +5 -11
  259. package/ui/components/atoms/vc-button/index.ts +5 -5
  260. package/ui/components/atoms/vc-button/vc-button-model.ts +31 -24
  261. package/ui/components/atoms/vc-button/vc-button.vue +9 -38
  262. package/ui/components/atoms/vc-card/index.ts +6 -0
  263. package/ui/components/atoms/vc-card/vc-card-model.ts +37 -0
  264. package/ui/components/atoms/vc-card/vc-card.vue +20 -36
  265. package/ui/components/atoms/vc-checkbox/index.ts +8 -0
  266. package/ui/components/atoms/vc-checkbox/vc-checkbox-model.ts +35 -0
  267. package/ui/components/atoms/vc-checkbox/vc-checkbox.vue +15 -30
  268. package/ui/components/atoms/vc-col/index.ts +5 -0
  269. package/ui/components/atoms/vc-col/vc-col-model.ts +15 -0
  270. package/ui/components/atoms/vc-col/vc-col.vue +2 -6
  271. package/ui/components/atoms/vc-container/index.ts +8 -0
  272. package/ui/components/atoms/vc-container/vc-container-model.ts +28 -0
  273. package/ui/components/atoms/vc-container/vc-container.vue +11 -26
  274. package/ui/components/atoms/vc-hint/index.ts +2 -0
  275. package/ui/components/atoms/vc-hint/vc-hint-model.ts +5 -0
  276. package/ui/components/atoms/vc-icon/index.ts +5 -0
  277. package/ui/components/atoms/vc-icon/vc-icon-model.ts +19 -0
  278. package/ui/components/atoms/vc-icon/vc-icon.vue +2 -8
  279. package/ui/components/atoms/vc-image/index.ts +7 -0
  280. package/ui/components/atoms/vc-image/vc-image-model.ts +41 -0
  281. package/ui/components/atoms/vc-image/vc-image.stories.ts +1 -2
  282. package/ui/components/atoms/vc-image/vc-image.vue +12 -42
  283. package/ui/components/atoms/vc-info-row/index.ts +5 -0
  284. package/ui/components/atoms/vc-info-row/vc-info-row-model.ts +27 -0
  285. package/ui/components/atoms/vc-info-row/vc-info-row.vue +14 -24
  286. package/ui/components/atoms/vc-label/index.ts +5 -0
  287. package/ui/components/atoms/vc-label/vc-label-model.ts +20 -0
  288. package/ui/components/atoms/vc-label/vc-label.vue +11 -15
  289. package/ui/components/atoms/vc-link/index.ts +6 -0
  290. package/ui/components/atoms/vc-link/vc-link-model.ts +24 -0
  291. package/ui/components/atoms/vc-link/vc-link.vue +4 -11
  292. package/ui/components/atoms/vc-loading/index.ts +5 -0
  293. package/ui/components/atoms/vc-loading/vc-loading-model.ts +15 -0
  294. package/ui/components/atoms/vc-loading/vc-loading.vue +5 -11
  295. package/ui/components/atoms/vc-progress/index.ts +5 -0
  296. package/ui/components/atoms/vc-progress/vc-progress-model.ts +19 -0
  297. package/ui/components/atoms/vc-progress/vc-progress.vue +5 -20
  298. package/ui/components/atoms/vc-row/index.ts +2 -0
  299. package/ui/components/atoms/vc-row/vc-row-model.ts +5 -0
  300. package/ui/components/atoms/vc-status/index.ts +5 -0
  301. package/ui/components/atoms/vc-status/vc-status-model.ts +23 -0
  302. package/ui/components/atoms/vc-status/vc-status.vue +3 -21
  303. package/ui/components/atoms/vc-status-icon/index.ts +5 -0
  304. package/ui/components/atoms/vc-status-icon/vc-status-icon-model.ts +15 -0
  305. package/ui/components/atoms/vc-status-icon/vc-status-icon.vue +11 -9
  306. package/ui/components/atoms/vc-switch/index.ts +7 -0
  307. package/ui/components/atoms/vc-switch/vc-switch-model.ts +34 -0
  308. package/ui/components/atoms/vc-switch/vc-switch.vue +12 -28
  309. package/ui/components/atoms/vc-widget/index.ts +7 -0
  310. package/ui/components/atoms/vc-widget/vc-widget-model.ts +23 -0
  311. package/ui/components/atoms/vc-widget/vc-widget.vue +15 -22
  312. package/ui/components/index.ts +34 -34
  313. package/ui/components/molecules/vc-breadcrumbs/_internal/vc-breadcrumbs-item/vc-breadcrumbs-item.vue +1 -1
  314. package/ui/components/molecules/vc-breadcrumbs/index.ts +5 -0
  315. package/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs-model.ts +23 -0
  316. package/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue +6 -14
  317. package/ui/components/molecules/vc-editor/index.ts +7 -0
  318. package/ui/components/molecules/vc-editor/vc-editor-model.ts +37 -0
  319. package/ui/components/molecules/vc-editor/vc-editor.vue +25 -56
  320. package/ui/components/molecules/vc-file-upload/index.ts +8 -0
  321. package/ui/components/molecules/vc-file-upload/vc-file-upload-model.ts +37 -0
  322. package/ui/components/molecules/vc-file-upload/vc-file-upload.vue +11 -36
  323. package/ui/components/molecules/vc-form/index.ts +2 -0
  324. package/ui/components/molecules/vc-form/vc-form-model.ts +5 -0
  325. package/ui/components/molecules/vc-input/index.ts +5 -6
  326. package/ui/components/molecules/vc-input/vc-input-model.ts +53 -35
  327. package/ui/components/molecules/vc-input/vc-input.vue +41 -29
  328. package/ui/components/molecules/vc-input-currency/index.ts +4 -3
  329. package/ui/components/molecules/vc-input-currency/vc-input-currency-model.ts +42 -32
  330. package/ui/components/molecules/vc-input-currency/vc-input-currency.vue +12 -7
  331. package/ui/components/molecules/vc-notification/index.ts +8 -0
  332. package/ui/components/molecules/vc-notification/vc-notification-model.ts +21 -0
  333. package/ui/components/molecules/vc-notification/vc-notification.vue +4 -13
  334. package/ui/components/molecules/vc-pagination/index.ts +8 -0
  335. package/ui/components/molecules/vc-pagination/vc-pagination-model.ts +29 -0
  336. package/ui/components/molecules/vc-pagination/vc-pagination.vue +21 -23
  337. package/ui/components/molecules/vc-rating/index.ts +5 -0
  338. package/ui/components/molecules/vc-rating/vc-rating-model.ts +23 -0
  339. package/ui/components/molecules/vc-rating/vc-rating.vue +11 -13
  340. package/ui/components/molecules/vc-select/index.ts +5 -5
  341. package/ui/components/molecules/vc-select/vc-select-model.ts +74 -44
  342. package/ui/components/molecules/vc-select/vc-select.vue +128 -173
  343. package/ui/components/molecules/vc-slider/index.ts +5 -0
  344. package/ui/components/molecules/vc-slider/vc-slider-model.ts +34 -0
  345. package/ui/components/molecules/vc-slider/vc-slider.vue +2 -26
  346. package/ui/components/molecules/vc-textarea/index.ts +8 -0
  347. package/ui/components/molecules/vc-textarea/vc-textarea-model.ts +41 -0
  348. package/ui/components/molecules/vc-textarea/vc-textarea.vue +19 -53
  349. package/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue +16 -12
  350. package/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue +13 -4
  351. package/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue +18 -15
  352. package/ui/components/organisms/vc-app/_internal/vc-app-menu/vc-app-menu.vue +11 -5
  353. package/ui/components/organisms/vc-app/index.ts +6 -0
  354. package/ui/components/organisms/vc-app/vc-app-model.ts +65 -0
  355. package/ui/components/organisms/vc-app/vc-app.vue +10 -52
  356. package/ui/components/organisms/vc-blade/_internal/vc-blade-header/vc-blade-header.vue +40 -40
  357. package/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue +20 -14
  358. package/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/vc-blade-toolbar.vue +14 -12
  359. package/ui/components/organisms/vc-blade/index.ts +7 -0
  360. package/ui/components/organisms/vc-blade/vc-blade-model.ts +37 -0
  361. package/ui/components/organisms/vc-blade/vc-blade.stories.ts +1 -2
  362. package/ui/components/organisms/vc-blade/vc-blade.vue +13 -40
  363. package/ui/components/organisms/vc-dynamic-property/index.ts +5 -0
  364. package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property-model.ts +58 -0
  365. package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue +101 -125
  366. package/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue +41 -24
  367. package/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue +16 -11
  368. package/ui/components/organisms/vc-gallery/index.ts +8 -0
  369. package/ui/components/organisms/vc-gallery/vc-gallery-model.ts +78 -0
  370. package/ui/components/organisms/vc-gallery/vc-gallery.vue +11 -88
  371. package/ui/components/organisms/vc-login-form/index.ts +5 -0
  372. package/ui/components/organisms/vc-login-form/vc-login-form-model.ts +16 -0
  373. package/ui/components/organisms/vc-login-form/vc-login-form.vue +2 -15
  374. package/ui/components/organisms/vc-popup/index.ts +7 -0
  375. package/ui/components/organisms/vc-popup/vc-popup-model.ts +25 -0
  376. package/ui/components/organisms/vc-popup/vc-popup.vue +7 -18
  377. package/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue +21 -27
  378. package/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue +2 -6
  379. package/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue +9 -3
  380. package/ui/components/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue +31 -43
  381. package/ui/components/organisms/vc-table/index.ts +7 -0
  382. package/ui/components/organisms/vc-table/vc-table-model.ts +116 -0
  383. package/ui/components/organisms/vc-table/vc-table.vue +108 -139
  384. package/ui/types/index.ts +106 -15
  385. package/ui/types/ts-helpers.ts +23 -3
  386. package/ui/utils/index.ts +1 -0
  387. package/ui/utils/types.ts +2 -0
  388. package/core/composables/useLogger/index.ts +0 -24
  389. package/dist/core/composables/useLogger/index.d.ts +0 -5
  390. package/dist/core/composables/useLogger/index.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"ts-helpers.d.ts","sourceRoot":"","sources":["../../../ui/types/ts-helpers.ts"],"names":[],"mappings":"AACA,OAAO,EACL,gBAAgB,EAChB,uBAAuB,EACvB,eAAe,EACf,aAAa,EACb,UAAU,EACX,MAAM,KAAK,CAAC;AAEb,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC;AAErC,MAAM,MAAM,oBAAoB,CAC9B,SAAS,SAAS,uBAAuB,CACvC,KAAK,EACL,WAAW,EACX,CAAC,EACD,CAAC,EACD,CAAC,CACF,GAAG,uBAAuB,CAAC,GAAG,CAAC,EAChC,KAAK,GAAG,GAAG,EACX,WAAW,GAAG,GAAG,EACjB,CAAC,GAAG,GAAG,EACP,CAAC,SAAS,eAAe,GAAG,eAAe,EAC3C,CAAC,SAAS,aAAa,GAAG,aAAa,IACrC;IAAE,QAAQ,SAAS,CAAA;CAAE,GAAG,gBAAgB,CAAC,KAAK,EAAE,WAAW,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AAE1E,MAAM,MAAM,0BAA0B,CAAC,KAAK,GAAG,EAAE,EAAE,KAAK,GAAG,EAAE,IAAI;IAC7D,QAAQ;QACN,MAAM,EAAE,WAAW,GAAG,KAAK,CAAC;QAC5B,MAAM,EAAE,KAAK,CAAC;KACf,CAAA;CACJ,CAAC"}
1
+ {"version":3,"file":"ts-helpers.d.ts","sourceRoot":"","sources":["../../../ui/types/ts-helpers.ts"],"names":[],"mappings":"AACA,OAAO,EACL,gBAAgB,EAChB,uBAAuB,EACvB,eAAe,EACf,gBAAgB,EAChB,aAAa,EACb,kBAAkB,EAClB,YAAY,EACZ,UAAU,EACX,MAAM,KAAK,CAAC;AAEb,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC;AAErC,MAAM,MAAM,oBAAoB,CAC9B,SAAS,SAAS,uBAAuB,CACvC,KAAK,EACL,WAAW,EACX,CAAC,EACD,CAAC,EACD,CAAC,EACD,CAAC,CACF,GAAG,uBAAuB,CAAC,GAAG,CAAC,EAChC,KAAK,GAAG,GAAG,EACX,WAAW,GAAG,GAAG,EACjB,CAAC,GAAG,GAAG,EACP,CAAC,SAAS,eAAe,GAAG,eAAe,EAC3C,CAAC,SAAS,aAAa,GAAG,aAAa,EACvC,CAAC,SAAS,YAAY,GAAG,YAAY,IACnC;IAAE,QAAQ,SAAS,CAAA;CAAE,GAAG,gBAAgB,CAAC,KAAK,EAAE,WAAW,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AAE7E,MAAM,MAAM,0BAA0B,CAAC,KAAK,GAAG,EAAE,EAAE,KAAK,GAAG,EAAE,EAAE,KAAK,GAAG,EAAE,IAAI;IACzE,QAAQ;QACN,MAAM,EAAE,WAAW,GAAG,KAAK,CAAC;QAC5B,MAAM,EAAE,KAAK,CAAC;QACd,KAAK,EAAE,gBAAgB,CAAC,KAAK,CAAC,CAAA;KAC/B,CAAA;CACJ,CAAC;AAEF,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,kBAAkB,IAAI;KACtD,CAAC,IAAI,MAAM,GAAG,KAAK,UAAU,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,SAAS,KAAK,MAAM,CAAC,EAAE,GAC1E,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,SAAS,IAAI,GAC7B,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,GACxB,CAAC,GAAG,IAAI,EAAE,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC,KAAK,IAAI,GAAG,CAAC,GAAG,KAAK,KAAK,IAAI,GACtF,KAAK;CACV,CAAC;AAEF,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC;AAC3D,KAAK,mBAAmB,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,GAAG,CAAC,CAAC,EAAE,CAAC,KAAK,IAAI,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC,EAAE,MAAM,CAAC,KAAK,IAAI,GAAG,CAAC,GAAG,KAAK,CAAC;AAChH,MAAM,MAAM,gBAAgB,CAAC,OAAO,GAAG,kBAAkB,EAAE,KAAK,SAAS,MAAM,OAAO,GAAG,MAAM,OAAO,IAAI,mBAAmB,CAAC;KAC3H,GAAG,IAAI,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,MAAM,IAAI,KAAK,GAAG,GAAG,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,IAAI,KAAK,IAAI,GAAG,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI;CAC/I,CAAC,KAAK,CAAC,CAAC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from "./types";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../ui/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { isArray, isFunction, isObject, isString, isDate, isPromise, isSymbol } from "@vue/shared";
2
+ export { isBoolean, isNumber } from "@vueuse/core";
3
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../ui/utils/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACnG,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC"}
@@ -1,3 +1,3 @@
1
- declare const _default: import("vite").UserConfigExport;
1
+ declare const _default: Record<string, any>;
2
2
  export default _default;
3
3
  //# sourceMappingURL=vite.config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"vite.config.d.ts","sourceRoot":"","sources":["../vite.config.ts"],"names":[],"mappings":";AAMA,wBAkDE"}
1
+ {"version":3,"file":"vite.config.d.ts","sourceRoot":"","sources":["../vite.config.ts"],"names":[],"mappings":";AAKA,wBAiCG"}
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@vc-shell/framework",
3
- "version": "1.0.52",
3
+ "version": "1.0.54",
4
4
  "main": "./dist/framework.js",
5
- "module": "./dist/framework.js",
5
+ "module": "./dist/framework.esm.js",
6
6
  "types": "./dist/index.d.ts",
7
7
  "style": "./dist/style.css",
8
8
  "files": [
@@ -14,7 +14,7 @@
14
14
  ],
15
15
  "exports": {
16
16
  ".": {
17
- "import": "./dist/framework.js",
17
+ "import": "./dist/framework.esm.js",
18
18
  "require": "./dist/framework.js",
19
19
  "types": "./dist/index.d.ts"
20
20
  },
@@ -27,13 +27,15 @@
27
27
  },
28
28
  "scripts": {
29
29
  "build": "vite build",
30
+ "dev": "vite",
30
31
  "development": "vite build --watch -m development",
31
32
  "watch": "vite build --watch",
32
33
  "type-check": "vue-tsc --noEmit"
33
34
  },
34
35
  "dependencies": {
35
36
  "@popperjs/core": "^2.11.0",
36
- "@vee-validate/rules": "^4.5.5",
37
+ "@vee-validate/i18n": "^4.7.3",
38
+ "@vee-validate/rules": "^4.7.3",
37
39
  "@vueuse/components": "^9.9.0",
38
40
  "@vueuse/core": "^9.9.0",
39
41
  "@vueuse/integrations": "^9.9.0",
@@ -45,26 +47,22 @@
45
47
  "vue": "^3.0.0",
46
48
  "vue-currency-input": "~2.5.1",
47
49
  "vue-i18n": "^9.1.7",
48
- "vue-logger-plugin": "^2.1.2",
49
50
  "vue-router": "^4.1.6",
50
51
  "vue3-ace-editor": "^2.2.2",
51
52
  "vue3-touch-events": "^4.1.0",
52
53
  "vuedraggable": "^4.1.0"
53
54
  },
54
55
  "devDependencies": {
55
- "@originjs/vite-plugin-commonjs": "^1.0.3",
56
- "@rollup/plugin-commonjs": "^21.0.2",
57
- "@vc-shell/api-client-generator": "^1.0.52",
58
- "@vc-shell/config-generator": "^1.0.52",
56
+ "@vc-shell/api-client-generator": "^1.0.54",
57
+ "@vc-shell/config-generator": "^1.0.54",
59
58
  "@vue-macros/volar": "^0.8.1",
60
59
  "sass": "^1.49.0",
61
60
  "typescript": "^4.9.5",
62
- "unplugin-vue-macros": "^1.1.1",
63
61
  "url-pattern": "^1.0.3"
64
62
  },
65
63
  "publishConfig": {
66
64
  "access": "public",
67
65
  "registry": "https://registry.npmjs.org/"
68
66
  },
69
- "gitHead": "86f38c6a3c0ce2461fd0c49bd446f5c94c359d61"
67
+ "gitHead": "e7492afe894926b839bef1ea9a58b86fd83ce1d1"
70
68
  }
@@ -31,9 +31,7 @@
31
31
  :alt="`icon_${item.id}`"
32
32
  class="tw-w-5 tw-h-5 tw-mr-2 tw-shrink-0"
33
33
  />
34
- <p
35
- class="tw-font-normal tw-text-sm tw-text-[#727C87] tw-truncate group-hover:tw-opacity-80"
36
- >
34
+ <p class="tw-font-normal tw-text-sm tw-text-[#727C87] tw-truncate group-hover:tw-opacity-80">
37
35
  {{ item.title }}
38
36
  </p>
39
37
  </li>
@@ -44,7 +42,7 @@
44
42
 
45
43
  <script lang="ts" setup>
46
44
  import { ref } from "vue";
47
- import { AppDescriptor } from "@/core/api";
45
+ import { AppDescriptor } from "./../../../../core/api";
48
46
 
49
47
  export interface Props {
50
48
  appsList: AppDescriptor[];
@@ -62,8 +60,7 @@ const emit = defineEmits<Emits>();
62
60
 
63
61
  const isVisible = ref(false);
64
62
 
65
- const imageUrl = (url: string) =>
66
- import.meta.env.APP_PLATFORM_URL.replace(/\/+$/, "") + url;
63
+ const imageUrl = (url: string) => import.meta.env.APP_PLATFORM_URL.replace(/\/+$/, "") + url;
67
64
 
68
65
  const locationHandler = (url: string) => {
69
66
  const cleanUrl = window.location.pathname.replace(/\/+$/, "");
@@ -1,10 +1,6 @@
1
1
  import { computed, Ref, ref } from "vue";
2
- import { AppDescriptor, AppsClient } from "@/core/api";
3
- import {
4
- useLogger,
5
- useUser,
6
- usePermissions,
7
- } from "@/core/composables";
2
+ import { AppDescriptor, AppsClient } from "./../../../../core/api";
3
+ import { useUser, usePermissions } from "./../../../../core/composables";
8
4
 
9
5
  interface IUseAppSwitcher {
10
6
  readonly appsList: Ref<AppDescriptor[]>;
@@ -13,7 +9,6 @@ interface IUseAppSwitcher {
13
9
  }
14
10
 
15
11
  export default (): IUseAppSwitcher => {
16
- const logger = useLogger();
17
12
  const { checkPermission } = usePermissions();
18
13
  const appsList = ref<AppDescriptor[]>([]);
19
14
 
@@ -30,7 +25,7 @@ export default (): IUseAppSwitcher => {
30
25
  try {
31
26
  appsList.value = await client.getApps();
32
27
  } catch (e) {
33
- logger.error(e);
28
+ console.error(e);
34
29
  throw e;
35
30
  }
36
31
  }
@@ -1,14 +1,7 @@
1
- import { App } from "vue";
1
+ import { createModule } from "../../core/plugins/modularity";
2
2
  import * as components from "./components";
3
3
 
4
- export default {
5
- install(app: App): void {
6
- // Register exported components
7
- Object.entries(components).forEach(([componentName, component]) => {
8
- app.component(componentName, component);
9
- });
10
- },
11
- };
4
+ export default createModule(components);
12
5
 
13
- export * from "./composables";
14
6
  export * from "./components";
7
+ export * from "./composables";
@@ -8,7 +8,7 @@
8
8
  @close="$emit('close:blade')"
9
9
  >
10
10
  <!-- Blade contents -->
11
- <div class= "tw-flex tw-grow-1 tw-border-t tw-border-solid tw-border-t-[#eaedf3]">
11
+ <div class="tw-flex tw-grow-1 tw-border-t tw-border-solid tw-border-t-[#eaedf3]">
12
12
  <div class="assets-details__content tw-grow tw-basis-0">
13
13
  <VcContainer :no-padding="true">
14
14
  <div class="tw-p-4">
@@ -25,9 +25,7 @@
25
25
  v-model="localImage.name"
26
26
  clearable
27
27
  required
28
- :placeholder="
29
- $t('ASSETS.PAGES.DETAILS.FIELDS.NAME.PLACEHOLDER')
30
- "
28
+ :placeholder="$t('ASSETS.PAGES.DETAILS.FIELDS.NAME.PLACEHOLDER')"
31
29
  ></VcInput>
32
30
  <VcInput
33
31
  class="tw-mb-4"
@@ -42,10 +40,8 @@
42
40
  class="tw-mb-4"
43
41
  :label="$t('ASSETS.PAGES.DETAILS.FIELDS.DESCRIPTION.TITLE')"
44
42
  v-model="localImage.description"
45
- :placeholder="
46
- $t('ASSETS.PAGES.DETAILS.FIELDS.DESCRIPTION.PLACEHOLDER')
47
- "
48
- is-required
43
+ :placeholder="$t('ASSETS.PAGES.DETAILS.FIELDS.DESCRIPTION.PLACEHOLDER')"
44
+ required
49
45
  ></VcTextarea>
50
46
  </VcForm>
51
47
  </div>
@@ -57,16 +53,9 @@
57
53
 
58
54
  <script lang="ts" setup>
59
55
  import { computed, reactive, unref } from "vue";
60
- import { useI18n } from "@/core/composables";
61
- import { IParentCallArgs } from "@/shared";
62
- import {
63
- VcBlade,
64
- VcContainer,
65
- VcForm,
66
- VcImage,
67
- VcInput,
68
- VcTextarea,
69
- } from "@/ui/components";
56
+ import { useI18n } from "./../../../../core/composables";
57
+ import { IParentCallArgs } from "./../../../../shared";
58
+ import { VcBlade, VcContainer, VcForm, VcImage, VcInput, VcTextarea } from "./../../../../ui/components";
70
59
 
71
60
  export interface Props {
72
61
  expanded?: boolean;
@@ -104,10 +93,7 @@ const bladeToolbar = [
104
93
  title: t("ASSETS.PAGES.DETAILS.TOOLBAR.SAVE"),
105
94
  icon: "fas fa-save",
106
95
  clickHandler() {
107
- if (
108
- props.options.sortHandler &&
109
- typeof props.options.sortHandler === "function"
110
- ) {
96
+ if (props.options.sortHandler && typeof props.options.sortHandler === "function") {
111
97
  props.options.sortHandler(false, localImage);
112
98
  emit("close:blade");
113
99
  }
@@ -118,15 +104,8 @@ const bladeToolbar = [
118
104
  title: t("ASSETS.PAGES.DETAILS.TOOLBAR.DELETE"),
119
105
  icon: "fas fa-trash",
120
106
  clickHandler() {
121
- if (
122
- window.confirm(
123
- unref(computed(() => t("ASSETS.PAGES.DETAILS.DELETE_CONFIRMATION")))
124
- )
125
- ) {
126
- if (
127
- props.options.sortHandler &&
128
- typeof props.options.sortHandler === "function"
129
- ) {
107
+ if (window.confirm(unref(computed(() => t("ASSETS.PAGES.DETAILS.DELETE_CONFIRMATION"))))) {
108
+ if (props.options.sortHandler && typeof props.options.sortHandler === "function") {
130
109
  props.options.sortHandler(true, localImage);
131
110
  emit("close:blade");
132
111
  }
@@ -1 +1 @@
1
- export {default as AssetsDetails} from './assets-details/assets-details.vue'
1
+ export { default as AssetsDetails } from "./assets-details/assets-details.vue";
@@ -1,19 +1,7 @@
1
- import { App } from "vue";
1
+ import { createModule } from "../../core/plugins/modularity";
2
2
  import * as components from "./components";
3
3
  import * as locales from "./locales";
4
4
 
5
- export default {
6
- install(app: App): void {
7
- Object.entries(components).forEach(([pageName, page]) => {
8
- app.component(pageName, page);
9
- app.config.globalProperties.pages?.push(page);
10
- });
5
+ export default createModule(components, locales);
11
6
 
12
- // Load locales
13
- Object.entries(locales).forEach(([key, message]) => {
14
- app.config.globalProperties.$mergeLocaleMessage(key, message);
15
- });
16
- },
17
- };
18
-
19
- export * from './components'
7
+ export * from "./components";
@@ -33,17 +33,12 @@
33
33
  <script lang="ts" setup>
34
34
  import { computed, onBeforeUpdate, ref } from "vue";
35
35
  import { useRoute } from "vue-router";
36
- import {
37
- IBladeContainer,
38
- IBladeElement,
39
- IBladeEvent,
40
- IParentCallArgs,
41
- } from "@/shared";
36
+ import { IBladeContainer, IBladeElement, IBladeEvent, IParentCallArgs } from "./../../../../shared";
42
37
 
43
38
  export interface Props {
44
39
  blades: IBladeContainer[];
45
40
  parentBladeOptions: Record<string, unknown>;
46
- parentBladeParam: string;
41
+ parentBladeParam?: string | undefined;
47
42
  }
48
43
 
49
44
  export interface Emits {
@@ -1 +1 @@
1
- export {default as useBladeNavigation} from './useBladeNavigation'
1
+ export { default as useBladeNavigation } from "./useBladeNavigation";
@@ -1,14 +1,8 @@
1
1
  import { computed, ref, unref, watch, Ref } from "vue";
2
2
  import { isEqual } from "lodash-es";
3
3
  import { useRouter, useRoute, NavigationFailure } from "vue-router";
4
- import { usePermissions } from "@/core/composables";
5
- import {
6
- ExtendedComponent,
7
- IBladeContainer,
8
- IBladeElement,
9
- IBladeEvent,
10
- IParentCallArgs,
11
- } from "@/shared";
4
+ import { usePermissions } from "./../../../../core/composables";
5
+ import { ExtendedComponent, IBladeContainer, IBladeElement, IBladeEvent, IParentCallArgs } from "./../../../../shared";
12
6
 
13
7
  interface IUseBladeNavigation {
14
8
  readonly blades: Ref<IBladeContainer[]>;
@@ -16,14 +10,7 @@ interface IUseBladeNavigation {
16
10
  readonly parentBladeParam: Ref<string>;
17
11
  bladesRefs: Ref<IBladeElement[]>;
18
12
  openBlade: (
19
- {
20
- parentBlade,
21
- component,
22
- param,
23
- bladeOptions,
24
- onOpen,
25
- onClose,
26
- }: IBladeEvent,
13
+ { parentBlade, component, param, bladeOptions, onOpen, onClose }: IBladeEvent,
27
14
  index?: number,
28
15
  navigationCb?: () => Promise<void | NavigationFailure>
29
16
  ) => void;
@@ -61,14 +48,7 @@ export default (): IUseBladeNavigation => {
61
48
  );
62
49
 
63
50
  async function openBlade(
64
- {
65
- parentBlade,
66
- component: blade,
67
- param,
68
- bladeOptions,
69
- onOpen,
70
- onClose,
71
- }: IBladeEvent,
51
+ { parentBlade, component: blade, param, bladeOptions, onOpen, onClose }: IBladeEvent,
72
52
  index?: number,
73
53
  navigationCb?: () => Promise<void | NavigationFailure>
74
54
  ) {
@@ -102,9 +82,7 @@ export default (): IUseBladeNavigation => {
102
82
  if (existingChild === undefined) {
103
83
  child.idx = index + 1;
104
84
  } else if (existingChild) {
105
- await closeBlade(
106
- blades.value.findIndex((x) => x.idx === existingChild.idx)
107
- );
85
+ await closeBlade(blades.value.findIndex((x) => x.idx === existingChild.idx));
108
86
  child.idx = existingChild.idx;
109
87
  }
110
88
 
@@ -118,10 +96,7 @@ export default (): IUseBladeNavigation => {
118
96
 
119
97
  isPrevented.value = false;
120
98
  for (let i = 0; i < children.length; i++) {
121
- if (
122
- children[i]?.onBeforeClose &&
123
- typeof children[i].onBeforeClose === "function"
124
- ) {
99
+ if (children[i]?.onBeforeClose && typeof children[i].onBeforeClose === "function") {
125
100
  const result = await children[i].onBeforeClose();
126
101
  if (result === false) {
127
102
  isPrevented.value = true;
@@ -172,18 +147,14 @@ export default (): IUseBladeNavigation => {
172
147
  }
173
148
 
174
149
  async function onParentCall(index: number, args: IParentCallArgs) {
175
- console.debug(
176
- `vc-app#onParentCall(${index}, { method: ${args.method} }) called.`
177
- );
150
+ console.debug(`vc-app#onParentCall(${index}, { method: ${args.method} }) called.`);
178
151
 
179
152
  if (index >= 0) {
180
153
  const currentParent = unref(bladesRefs.value[index]);
181
154
 
182
155
  if (currentParent) {
183
156
  if (args.method && typeof currentParent[args.method] === "function") {
184
- const method = currentParent[args.method] as (
185
- args: unknown
186
- ) => Promise<unknown>;
157
+ const method = currentParent[args.method] as (args: unknown) => Promise<unknown>;
187
158
  const result = await method(args.args);
188
159
  if (typeof args.callback === "function") {
189
160
  args.callback(result);
@@ -1,15 +1,8 @@
1
- import { App } from "vue";
1
+ import { createModule } from "../../core/plugins/modularity";
2
2
  import * as components from "./components";
3
3
 
4
- export default {
5
- install(app: App): void {
6
- // Register exported pages
7
- Object.entries(components).forEach(([componentName, component]) => {
8
- app.component(componentName, component);
9
- });
10
- },
11
- };
4
+ export default createModule(components);
12
5
 
13
6
  export * from "./components";
14
7
  export * from "./composables";
15
- export * from './types'
8
+ export * from "./types";
@@ -1,5 +1,5 @@
1
1
  import { Component, ComponentPublicInstance } from "vue";
2
- import { IMenuItems } from "@/core/types";
2
+ import { IMenuItems } from "./../../../core/types";
3
3
  import { NavigationFailure } from "vue-router";
4
4
 
5
5
  /* onParentCall event interface */
package/shared/index.ts CHANGED
@@ -1,15 +1,13 @@
1
1
  import { App } from "vue";
2
- import { default as AssetsDetails } from "./assets";
3
- import { default as VcAppSwitcher } from "./app-switcher";
4
- import { default as VcBladeNavigation } from "./blade-navigation";
5
-
6
- const components = [AssetsDetails, VcAppSwitcher, VcBladeNavigation];
7
-
8
- export function init(app: App): App {
9
- components.forEach((component) => app.use(component));
10
-
11
- return app;
12
- }
2
+ import { default as AssetsDetailsModule } from "./assets";
3
+ import { default as VcAppSwitcherModule } from "./app-switcher";
4
+ import { default as VcBladeNavigationModule } from "./blade-navigation";
5
+
6
+ export default {
7
+ install(app: App): void {
8
+ app.use(AssetsDetailsModule).use(VcAppSwitcherModule).use(VcBladeNavigationModule);
9
+ },
10
+ };
13
11
 
14
12
  export * from "./assets";
15
13
  export * from "./app-switcher";
@@ -1,7 +1,7 @@
1
1
  import { ComponentPublicInstance } from "vue";
2
- import { VcBadgeProps } from "./vc-badge-model";
3
- import { ComponentConstructor } from "@/ui/types/ts-helpers";
2
+ import { VcBadgeEmits, VcBadgeProps } from "./vc-badge-model";
3
+ import { ComponentConstructor } from "./../../../types/ts-helpers";
4
4
  import Badge from "./vc-badge.vue";
5
- export const VcBadge: ComponentConstructor<
6
- ComponentPublicInstance<VcBadgeProps>
7
- > = Badge;
5
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
6
+ export const VcBadge: ComponentConstructor<ComponentPublicInstance<VcBadgeProps, any, any, any, any, VcBadgeEmits>> =
7
+ Badge;
@@ -1,26 +1,27 @@
1
+ import { ExtractTypes } from "./../../../types/ts-helpers";
1
2
  import { VNode } from "vue";
2
3
 
3
- export interface VcBadgeProps {
4
- /**
5
- * Badge active state
6
- * */
7
- active?: boolean | undefined;
8
- /**
9
- * Put component in disabled state
10
- * */
11
- disabled?: boolean | undefined;
12
- /**
13
- * Is badge clickable?
14
- * */
15
- clickable?: boolean | undefined;
16
- }
4
+ export const badgeProps = {
5
+ active: {
6
+ type: Boolean,
7
+ default: false,
8
+ },
9
+ disabled: {
10
+ type: Boolean,
11
+ default: false,
12
+ },
13
+ clickable: {
14
+ type: Boolean,
15
+ default: false,
16
+ },
17
+ };
17
18
 
18
- export interface VcBadgeEmits {
19
- /**
20
- * Emitted when component is clicked
21
- * */
22
- (event: "click"): void;
23
- }
19
+ export const badgeEmits = {
20
+ click: () => true,
21
+ };
22
+
23
+ export type VcBadgeProps = ExtractTypes<typeof badgeProps>;
24
+ export type VcBadgeEmits = typeof badgeEmits;
24
25
 
25
26
  export interface VcBadgeSlots {
26
27
  /**
@@ -16,17 +16,11 @@
16
16
  </template>
17
17
 
18
18
  <script lang="ts" setup>
19
- import {
20
- VcBadgeEmits,
21
- VcBadgeProps,
22
- } from "@/ui/components/atoms/vc-badge/vc-badge-model";
23
-
24
- const props = withDefaults(defineProps<VcBadgeProps>(), {
25
- active: false,
26
- disabled: false,
27
- clickable: true,
28
- });
29
- const emit = defineEmits<VcBadgeEmits>();
19
+ import { badgeProps, badgeEmits } from "./vc-badge-model";
20
+
21
+ const props = defineProps(badgeProps);
22
+
23
+ const emit = defineEmits(badgeEmits);
30
24
 
31
25
  function onClick(): void {
32
26
  if (props.clickable && !props.disabled) {
@@ -1,7 +1,7 @@
1
1
  import { ComponentPublicInstance } from "vue";
2
- import { VcButtonProps } from "./vc-button-model";
3
- import { ComponentConstructor } from "@/ui/types/ts-helpers";
2
+ import { VcButtonEmits, VcButtonProps } from "./vc-button-model";
3
+ import { ComponentConstructor } from "./../../../types/ts-helpers";
4
4
  import Button from "./vc-button.vue";
5
- export const VcBadge: ComponentConstructor<
6
- ComponentPublicInstance<VcButtonProps>
7
- > = Button;
5
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
6
+ export const VcButton: ComponentConstructor<ComponentPublicInstance<VcButtonProps, any, any, any, any, VcButtonEmits>> =
7
+ Button;
@@ -1,30 +1,37 @@
1
- import { VNode } from "vue";
1
+ import { ExtractTypes } from "./../../../types/ts-helpers";
2
+ import { VNode, PropType } from "vue";
2
3
 
3
- export interface VcButtonProps {
4
- /**
5
- * Button icon from Fontawesome icons set
6
- * */
7
- icon?: string | undefined;
8
- /**
9
- * Put component in disabled state
10
- * */
11
- disabled?: boolean | undefined;
12
- /**
13
- * Is badge clickable?
14
- * */
15
- clickable?: boolean | undefined;
16
- }
4
+ export const buttonProps = {
5
+ icon: String,
6
+ variant: {
7
+ type: String as PropType<"primary" | "secondary" | "special" | "danger" | "widget" | "onlytext">,
8
+ default: "primary",
9
+ },
10
+ disabled: {
11
+ type: Boolean,
12
+ default: false,
13
+ },
14
+ small: {
15
+ type: Boolean,
16
+ default: false,
17
+ },
18
+ outline: {
19
+ type: Boolean,
20
+ default: false,
21
+ },
22
+ selected: {
23
+ type: Boolean,
24
+ default: false,
25
+ },
26
+ };
17
27
 
18
- export interface VcButtonEmits {
19
- /**
20
- * Emitted when component is clicked
21
- * */
22
- (event: "click"): void;
23
- }
28
+ export const buttonEmits = {
29
+ click: () => true,
30
+ };
31
+
32
+ export type VcButtonProps = ExtractTypes<typeof buttonProps>;
33
+ export type VcButtonEmits = typeof buttonEmits;
24
34
 
25
35
  export interface VcButtonSlots {
26
- /**
27
- * Slot for component content
28
- * */
29
36
  default: () => VNode[];
30
37
  }