@vc-shell/framework 1.0.51 → 1.0.53

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 (297) hide show
  1. package/core/composables/useApiClient/index.ts +12 -4
  2. package/core/composables/useNotifications/index.ts +1 -1
  3. package/core/composables/usePermissions/index.ts +1 -1
  4. package/core/composables/useSettings/index.ts +2 -2
  5. package/core/composables/useUser/index.ts +2 -2
  6. package/core/directives/permissions/index.ts +1 -1
  7. package/core/types/index.ts +5 -5
  8. package/dist/core/composables/useApiClient/index.d.ts +9 -3
  9. package/dist/core/composables/useApiClient/index.d.ts.map +1 -1
  10. package/dist/core/composables/useNotifications/index.d.ts +1 -1
  11. package/dist/core/composables/useNotifications/index.d.ts.map +1 -1
  12. package/dist/core/composables/useUser/index.d.ts +2 -2
  13. package/dist/core/composables/useUser/index.d.ts.map +1 -1
  14. package/dist/core/types/index.d.ts +5 -5
  15. package/dist/core/types/index.d.ts.map +1 -1
  16. package/dist/framework.js +56 -56
  17. package/dist/shared/app-switcher/composables/useAppSwitcher/index.d.ts +1 -1
  18. package/dist/shared/app-switcher/composables/useAppSwitcher/index.d.ts.map +1 -1
  19. package/dist/shared/blade-navigation/composables/useBladeNavigation/index.d.ts +1 -1
  20. package/dist/shared/blade-navigation/composables/useBladeNavigation/index.d.ts.map +1 -1
  21. package/dist/shared/blade-navigation/types/index.d.ts +1 -1
  22. package/dist/shared/blade-navigation/types/index.d.ts.map +1 -1
  23. package/dist/style.css +1 -1
  24. package/dist/tsconfig.tsbuildinfo +1 -1
  25. package/dist/ui/components/atoms/vc-badge/index.d.ts +1 -1
  26. package/dist/ui/components/atoms/vc-badge/index.d.ts.map +1 -1
  27. package/dist/ui/components/atoms/vc-badge/vc-badge-model.d.ts +1 -6
  28. package/dist/ui/components/atoms/vc-badge/vc-badge-model.d.ts.map +1 -1
  29. package/dist/ui/components/atoms/vc-button/index.d.ts +2 -2
  30. package/dist/ui/components/atoms/vc-button/index.d.ts.map +1 -1
  31. package/dist/ui/components/atoms/vc-button/vc-button-model.d.ts +5 -19
  32. package/dist/ui/components/atoms/vc-button/vc-button-model.d.ts.map +1 -1
  33. package/dist/ui/components/atoms/vc-card/index.d.ts +5 -0
  34. package/dist/ui/components/atoms/vc-card/index.d.ts.map +1 -0
  35. package/dist/ui/components/atoms/vc-card/vc-card-model.d.ts +16 -0
  36. package/dist/ui/components/atoms/vc-card/vc-card-model.d.ts.map +1 -0
  37. package/dist/ui/components/atoms/vc-checkbox/index.d.ts +5 -0
  38. package/dist/ui/components/atoms/vc-checkbox/index.d.ts.map +1 -0
  39. package/dist/ui/components/atoms/vc-checkbox/vc-checkbox-model.d.ts +14 -0
  40. package/dist/ui/components/atoms/vc-checkbox/vc-checkbox-model.d.ts.map +1 -0
  41. package/dist/ui/components/atoms/vc-col/index.d.ts +5 -0
  42. package/dist/ui/components/atoms/vc-col/index.d.ts.map +1 -0
  43. package/dist/ui/components/atoms/vc-col/vc-col-model.d.ts +8 -0
  44. package/dist/ui/components/atoms/vc-col/vc-col-model.d.ts.map +1 -0
  45. package/dist/ui/components/atoms/vc-container/index.d.ts +5 -0
  46. package/dist/ui/components/atoms/vc-container/index.d.ts.map +1 -0
  47. package/dist/ui/components/atoms/vc-container/vc-container-model.d.ts +11 -0
  48. package/dist/ui/components/atoms/vc-container/vc-container-model.d.ts.map +1 -0
  49. package/dist/ui/components/atoms/vc-hint/index.d.ts +2 -0
  50. package/dist/ui/components/atoms/vc-hint/index.d.ts.map +1 -0
  51. package/dist/ui/components/atoms/vc-icon/index.d.ts +5 -0
  52. package/dist/ui/components/atoms/vc-icon/index.d.ts.map +1 -0
  53. package/dist/ui/components/atoms/vc-icon/vc-icon-model.d.ts +9 -0
  54. package/dist/ui/components/atoms/vc-icon/vc-icon-model.d.ts.map +1 -0
  55. package/dist/ui/components/atoms/vc-image/index.d.ts +5 -0
  56. package/dist/ui/components/atoms/vc-image/index.d.ts.map +1 -0
  57. package/dist/ui/components/atoms/vc-image/vc-image-model.d.ts +15 -0
  58. package/dist/ui/components/atoms/vc-image/vc-image-model.d.ts.map +1 -0
  59. package/dist/ui/components/atoms/vc-info-row/index.d.ts +5 -0
  60. package/dist/ui/components/atoms/vc-info-row/index.d.ts.map +1 -0
  61. package/dist/ui/components/atoms/vc-info-row/vc-info-row-model.d.ts +11 -0
  62. package/dist/ui/components/atoms/vc-info-row/vc-info-row-model.d.ts.map +1 -0
  63. package/dist/ui/components/atoms/vc-label/index.d.ts +5 -0
  64. package/dist/ui/components/atoms/vc-label/index.d.ts.map +1 -0
  65. package/dist/ui/components/atoms/vc-label/vc-label-model.d.ts +10 -0
  66. package/dist/ui/components/atoms/vc-label/vc-label-model.d.ts.map +1 -0
  67. package/dist/ui/components/atoms/vc-link/index.d.ts +5 -0
  68. package/dist/ui/components/atoms/vc-link/index.d.ts.map +1 -0
  69. package/dist/ui/components/atoms/vc-link/vc-link-model.d.ts +10 -0
  70. package/dist/ui/components/atoms/vc-link/vc-link-model.d.ts.map +1 -0
  71. package/dist/ui/components/atoms/vc-loading/index.d.ts +5 -0
  72. package/dist/ui/components/atoms/vc-loading/index.d.ts.map +1 -0
  73. package/dist/ui/components/atoms/vc-loading/vc-loading-model.d.ts +8 -0
  74. package/dist/ui/components/atoms/vc-loading/vc-loading-model.d.ts.map +1 -0
  75. package/dist/ui/components/atoms/vc-progress/index.d.ts +5 -0
  76. package/dist/ui/components/atoms/vc-progress/index.d.ts.map +1 -0
  77. package/dist/ui/components/atoms/vc-progress/vc-progress-model.d.ts +9 -0
  78. package/dist/ui/components/atoms/vc-progress/vc-progress-model.d.ts.map +1 -0
  79. package/dist/ui/components/atoms/vc-row/index.d.ts +2 -0
  80. package/dist/ui/components/atoms/vc-row/index.d.ts.map +1 -0
  81. package/dist/ui/components/atoms/vc-row/vc-row-model.d.ts +5 -0
  82. package/dist/ui/components/atoms/vc-row/vc-row-model.d.ts.map +1 -0
  83. package/dist/ui/components/atoms/vc-status/index.d.ts +5 -0
  84. package/dist/ui/components/atoms/vc-status/index.d.ts.map +1 -0
  85. package/dist/ui/components/atoms/vc-status/vc-status-model.d.ts +10 -0
  86. package/dist/ui/components/atoms/vc-status/vc-status-model.d.ts.map +1 -0
  87. package/dist/ui/components/atoms/vc-status-icon/index.d.ts +5 -0
  88. package/dist/ui/components/atoms/vc-status-icon/index.d.ts.map +1 -0
  89. package/dist/ui/components/atoms/vc-status-icon/vc-status-icon-model.d.ts +8 -0
  90. package/dist/ui/components/atoms/vc-status-icon/vc-status-icon-model.d.ts.map +1 -0
  91. package/dist/ui/components/atoms/vc-switch/index.d.ts +5 -0
  92. package/dist/ui/components/atoms/vc-switch/index.d.ts.map +1 -0
  93. package/dist/ui/components/atoms/vc-switch/vc-switch-model.d.ts +13 -0
  94. package/dist/ui/components/atoms/vc-switch/vc-switch-model.d.ts.map +1 -0
  95. package/dist/ui/components/atoms/vc-widget/index.d.ts +5 -0
  96. package/dist/ui/components/atoms/vc-widget/index.d.ts.map +1 -0
  97. package/dist/ui/components/atoms/vc-widget/vc-widget-model.d.ts +12 -0
  98. package/dist/ui/components/atoms/vc-widget/vc-widget-model.d.ts.map +1 -0
  99. package/dist/ui/components/index.d.ts +34 -34
  100. package/dist/ui/components/index.d.ts.map +1 -1
  101. package/dist/ui/components/molecules/vc-breadcrumbs/index.d.ts +5 -0
  102. package/dist/ui/components/molecules/vc-breadcrumbs/index.d.ts.map +1 -0
  103. package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs-model.d.ts +14 -0
  104. package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs-model.d.ts.map +1 -0
  105. package/dist/ui/components/molecules/vc-editor/index.d.ts +5 -0
  106. package/dist/ui/components/molecules/vc-editor/index.d.ts.map +1 -0
  107. package/dist/ui/components/molecules/vc-editor/vc-editor-model.d.ts +16 -0
  108. package/dist/ui/components/molecules/vc-editor/vc-editor-model.d.ts.map +1 -0
  109. package/dist/ui/components/molecules/vc-file-upload/index.d.ts +5 -0
  110. package/dist/ui/components/molecules/vc-file-upload/index.d.ts.map +1 -0
  111. package/dist/ui/components/molecules/vc-file-upload/vc-file-upload-model.d.ts +14 -0
  112. package/dist/ui/components/molecules/vc-file-upload/vc-file-upload-model.d.ts.map +1 -0
  113. package/dist/ui/components/molecules/vc-form/index.d.ts +2 -0
  114. package/dist/ui/components/molecules/vc-form/index.d.ts.map +1 -0
  115. package/dist/ui/components/molecules/vc-input/index.d.ts +1 -1
  116. package/dist/ui/components/molecules/vc-input/index.d.ts.map +1 -1
  117. package/dist/ui/components/molecules/vc-input-currency/index.d.ts +1 -1
  118. package/dist/ui/components/molecules/vc-input-currency/index.d.ts.map +1 -1
  119. package/dist/ui/components/molecules/vc-notification/index.d.ts +5 -0
  120. package/dist/ui/components/molecules/vc-notification/index.d.ts.map +1 -0
  121. package/dist/ui/components/molecules/vc-notification/vc-notification-model.d.ts +10 -0
  122. package/dist/ui/components/molecules/vc-notification/vc-notification-model.d.ts.map +1 -0
  123. package/dist/ui/components/molecules/vc-pagination/index.d.ts +5 -0
  124. package/dist/ui/components/molecules/vc-pagination/index.d.ts.map +1 -0
  125. package/dist/ui/components/molecules/vc-pagination/vc-pagination-model.d.ts +11 -0
  126. package/dist/ui/components/molecules/vc-pagination/vc-pagination-model.d.ts.map +1 -0
  127. package/dist/ui/components/molecules/vc-rating/index.d.ts +5 -0
  128. package/dist/ui/components/molecules/vc-rating/index.d.ts.map +1 -0
  129. package/dist/ui/components/molecules/vc-rating/vc-rating-model.d.ts +13 -0
  130. package/dist/ui/components/molecules/vc-rating/vc-rating-model.d.ts.map +1 -0
  131. package/dist/ui/components/molecules/vc-select/index.d.ts +1 -1
  132. package/dist/ui/components/molecules/vc-select/index.d.ts.map +1 -1
  133. package/dist/ui/components/molecules/vc-slider/index.d.ts +5 -0
  134. package/dist/ui/components/molecules/vc-slider/index.d.ts.map +1 -0
  135. package/dist/ui/components/molecules/vc-slider/vc-slider-model.d.ts +16 -0
  136. package/dist/ui/components/molecules/vc-slider/vc-slider-model.d.ts.map +1 -0
  137. package/dist/ui/components/molecules/vc-textarea/index.d.ts +5 -0
  138. package/dist/ui/components/molecules/vc-textarea/index.d.ts.map +1 -0
  139. package/dist/ui/components/molecules/vc-textarea/vc-textarea-model.d.ts +17 -0
  140. package/dist/ui/components/molecules/vc-textarea/vc-textarea-model.d.ts.map +1 -0
  141. package/dist/ui/components/organisms/vc-app/index.d.ts +5 -0
  142. package/dist/ui/components/organisms/vc-app/index.d.ts.map +1 -0
  143. package/dist/ui/components/organisms/vc-app/vc-app-model.d.ts +26 -0
  144. package/dist/ui/components/organisms/vc-app/vc-app-model.d.ts.map +1 -0
  145. package/dist/ui/components/organisms/vc-blade/index.d.ts +5 -0
  146. package/dist/ui/components/organisms/vc-blade/index.d.ts.map +1 -0
  147. package/dist/ui/components/organisms/vc-blade/vc-blade-model.d.ts +17 -0
  148. package/dist/ui/components/organisms/vc-blade/vc-blade-model.d.ts.map +1 -0
  149. package/dist/ui/components/organisms/vc-dynamic-property/index.d.ts +5 -0
  150. package/dist/ui/components/organisms/vc-dynamic-property/index.d.ts.map +1 -0
  151. package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property-model.d.ts +14 -0
  152. package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property-model.d.ts.map +1 -0
  153. package/dist/ui/components/organisms/vc-gallery/index.d.ts +5 -0
  154. package/dist/ui/components/organisms/vc-gallery/index.d.ts.map +1 -0
  155. package/dist/ui/components/organisms/vc-gallery/vc-gallery-model.d.ts +32 -0
  156. package/dist/ui/components/organisms/vc-gallery/vc-gallery-model.d.ts.map +1 -0
  157. package/dist/ui/components/organisms/vc-login-form/index.d.ts +5 -0
  158. package/dist/ui/components/organisms/vc-login-form/index.d.ts.map +1 -0
  159. package/dist/ui/components/organisms/vc-login-form/vc-login-form-model.d.ts +10 -0
  160. package/dist/ui/components/organisms/vc-login-form/vc-login-form-model.d.ts.map +1 -0
  161. package/dist/ui/components/organisms/vc-popup/index.d.ts +5 -0
  162. package/dist/ui/components/organisms/vc-popup/index.d.ts.map +1 -0
  163. package/dist/ui/components/organisms/vc-popup/vc-popup-model.d.ts +11 -0
  164. package/dist/ui/components/organisms/vc-popup/vc-popup-model.d.ts.map +1 -0
  165. package/dist/ui/components/organisms/vc-table/index.d.ts +5 -0
  166. package/dist/ui/components/organisms/vc-table/index.d.ts.map +1 -0
  167. package/dist/ui/components/organisms/vc-table/vc-table-model.d.ts +66 -0
  168. package/dist/ui/components/organisms/vc-table/vc-table-model.d.ts.map +1 -0
  169. package/dist/ui/types/index.d.ts +68 -0
  170. package/dist/ui/types/index.d.ts.map +1 -1
  171. package/dist/vite.config.d.ts.map +1 -1
  172. package/package.json +6 -5
  173. package/shared/app-switcher/components/vc-app-switcher/vc-app-switcher.vue +1 -1
  174. package/shared/app-switcher/composables/useAppSwitcher/index.ts +2 -2
  175. package/shared/assets/components/assets-details/assets-details.vue +4 -4
  176. package/shared/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue +2 -2
  177. package/shared/blade-navigation/composables/useBladeNavigation/index.ts +2 -2
  178. package/shared/blade-navigation/types/index.ts +1 -1
  179. package/ui/components/atoms/vc-badge/index.ts +1 -1
  180. package/ui/components/atoms/vc-badge/vc-badge-model.ts +1 -7
  181. package/ui/components/atoms/vc-badge/vc-badge.vue +2 -3
  182. package/ui/components/atoms/vc-button/index.ts +2 -2
  183. package/ui/components/atoms/vc-button/vc-button-model.ts +12 -20
  184. package/ui/components/atoms/vc-button/vc-button.vue +9 -33
  185. package/ui/components/atoms/vc-card/index.ts +7 -0
  186. package/ui/components/atoms/vc-card/vc-card-model.ts +17 -0
  187. package/ui/components/atoms/vc-card/vc-card.vue +6 -31
  188. package/ui/components/atoms/vc-checkbox/index.ts +7 -0
  189. package/ui/components/atoms/vc-checkbox/vc-checkbox-model.ts +15 -0
  190. package/ui/components/atoms/vc-checkbox/vc-checkbox.vue +6 -25
  191. package/ui/components/atoms/vc-col/index.ts +6 -0
  192. package/ui/components/atoms/vc-col/vc-col-model.ts +9 -0
  193. package/ui/components/atoms/vc-col/vc-col.vue +2 -4
  194. package/ui/components/atoms/vc-container/index.ts +7 -0
  195. package/ui/components/atoms/vc-container/vc-container-model.ts +12 -0
  196. package/ui/components/atoms/vc-container/vc-container.vue +11 -18
  197. package/ui/components/atoms/vc-hint/index.ts +2 -0
  198. package/ui/components/atoms/vc-icon/index.ts +7 -0
  199. package/ui/components/atoms/vc-icon/vc-icon-model.ts +10 -0
  200. package/ui/components/atoms/vc-icon/vc-icon.vue +2 -5
  201. package/ui/components/atoms/vc-image/index.ts +7 -0
  202. package/ui/components/atoms/vc-image/vc-image-model.ts +27 -0
  203. package/ui/components/atoms/vc-image/vc-image.vue +11 -37
  204. package/ui/components/atoms/vc-info-row/index.ts +7 -0
  205. package/ui/components/atoms/vc-info-row/vc-info-row-model.ts +12 -0
  206. package/ui/components/atoms/vc-info-row/vc-info-row.vue +7 -21
  207. package/ui/components/atoms/vc-label/index.ts +7 -0
  208. package/ui/components/atoms/vc-label/vc-label-model.ts +11 -0
  209. package/ui/components/atoms/vc-label/vc-label.vue +9 -13
  210. package/ui/components/atoms/vc-link/index.ts +7 -0
  211. package/ui/components/atoms/vc-link/vc-link-model.ts +11 -0
  212. package/ui/components/atoms/vc-link/vc-link.vue +4 -9
  213. package/ui/components/atoms/vc-loading/index.ts +7 -0
  214. package/ui/components/atoms/vc-loading/vc-loading-model.ts +9 -0
  215. package/ui/components/atoms/vc-loading/vc-loading.vue +4 -5
  216. package/ui/components/atoms/vc-progress/index.ts +7 -0
  217. package/ui/components/atoms/vc-progress/vc-progress-model.ts +10 -0
  218. package/ui/components/atoms/vc-progress/vc-progress.vue +5 -11
  219. package/ui/components/atoms/vc-row/index.ts +2 -0
  220. package/ui/components/atoms/vc-row/vc-row-model.ts +5 -0
  221. package/ui/components/atoms/vc-status/index.ts +7 -0
  222. package/ui/components/atoms/vc-status/vc-status-model.ts +17 -0
  223. package/ui/components/atoms/vc-status/vc-status.vue +5 -15
  224. package/ui/components/atoms/vc-status-icon/index.ts +7 -0
  225. package/ui/components/atoms/vc-status-icon/vc-status-icon-model.ts +9 -0
  226. package/ui/components/atoms/vc-status-icon/vc-status-icon.vue +12 -8
  227. package/ui/components/atoms/vc-switch/index.ts +7 -0
  228. package/ui/components/atoms/vc-switch/vc-switch-model.ts +14 -0
  229. package/ui/components/atoms/vc-switch/vc-switch.vue +6 -24
  230. package/ui/components/atoms/vc-widget/index.ts +7 -0
  231. package/ui/components/atoms/vc-widget/vc-widget-model.ts +13 -0
  232. package/ui/components/atoms/vc-widget/vc-widget.vue +3 -19
  233. package/ui/components/index.ts +34 -34
  234. package/ui/components/molecules/vc-breadcrumbs/_internal/vc-breadcrumbs-item/vc-breadcrumbs-item.vue +1 -1
  235. package/ui/components/molecules/vc-breadcrumbs/index.ts +7 -0
  236. package/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs-model.ts +15 -0
  237. package/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue +2 -11
  238. package/ui/components/molecules/vc-editor/index.ts +7 -0
  239. package/ui/components/molecules/vc-editor/vc-editor-model.ts +17 -0
  240. package/ui/components/molecules/vc-editor/vc-editor.vue +15 -52
  241. package/ui/components/molecules/vc-file-upload/index.ts +7 -0
  242. package/ui/components/molecules/vc-file-upload/vc-file-upload-model.ts +15 -0
  243. package/ui/components/molecules/vc-file-upload/vc-file-upload.vue +12 -33
  244. package/ui/components/molecules/vc-form/index.ts +2 -0
  245. package/ui/components/molecules/vc-input/index.ts +1 -1
  246. package/ui/components/molecules/vc-input-currency/index.ts +1 -1
  247. package/ui/components/molecules/vc-notification/index.ts +7 -0
  248. package/ui/components/molecules/vc-notification/vc-notification-model.ts +11 -0
  249. package/ui/components/molecules/vc-notification/vc-notification.vue +4 -11
  250. package/ui/components/molecules/vc-pagination/index.ts +7 -0
  251. package/ui/components/molecules/vc-pagination/vc-pagination-model.ts +12 -0
  252. package/ui/components/molecules/vc-pagination/vc-pagination.vue +7 -17
  253. package/ui/components/molecules/vc-rating/index.ts +7 -0
  254. package/ui/components/molecules/vc-rating/vc-rating-model.ts +14 -0
  255. package/ui/components/molecules/vc-rating/vc-rating.vue +3 -11
  256. package/ui/components/molecules/vc-select/index.ts +1 -1
  257. package/ui/components/molecules/vc-select/vc-select.vue +2 -2
  258. package/ui/components/molecules/vc-slider/index.ts +7 -0
  259. package/ui/components/molecules/vc-slider/vc-slider-model.ts +15 -0
  260. package/ui/components/molecules/vc-slider/vc-slider.vue +7 -25
  261. package/ui/components/molecules/vc-textarea/index.ts +7 -0
  262. package/ui/components/molecules/vc-textarea/vc-textarea-model.ts +18 -0
  263. package/ui/components/molecules/vc-textarea/vc-textarea.vue +10 -48
  264. package/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue +3 -3
  265. package/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue +1 -1
  266. package/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue +2 -1
  267. package/ui/components/organisms/vc-app/_internal/vc-app-menu/vc-app-menu.vue +3 -3
  268. package/ui/components/organisms/vc-app/index.ts +6 -0
  269. package/ui/components/organisms/vc-app/vc-app-model.ts +27 -0
  270. package/ui/components/organisms/vc-app/vc-app.vue +6 -31
  271. package/ui/components/organisms/vc-blade/_internal/vc-blade-header/vc-blade-header.vue +19 -34
  272. package/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue +2 -2
  273. package/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/vc-blade-toolbar.vue +1 -1
  274. package/ui/components/organisms/vc-blade/index.ts +7 -0
  275. package/ui/components/organisms/vc-blade/vc-blade-model.ts +18 -0
  276. package/ui/components/organisms/vc-blade/vc-blade.vue +9 -34
  277. package/ui/components/organisms/vc-dynamic-property/index.ts +7 -0
  278. package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property-model.ts +25 -0
  279. package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue +67 -95
  280. package/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue +32 -22
  281. package/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue +2 -2
  282. package/ui/components/organisms/vc-gallery/index.ts +7 -0
  283. package/ui/components/organisms/vc-gallery/vc-gallery-model.ts +33 -0
  284. package/ui/components/organisms/vc-gallery/vc-gallery.vue +24 -88
  285. package/ui/components/organisms/vc-login-form/index.ts +7 -0
  286. package/ui/components/organisms/vc-login-form/vc-login-form-model.ts +11 -0
  287. package/ui/components/organisms/vc-login-form/vc-login-form.vue +3 -14
  288. package/ui/components/organisms/vc-popup/index.ts +7 -0
  289. package/ui/components/organisms/vc-popup/vc-popup-model.ts +12 -0
  290. package/ui/components/organisms/vc-popup/vc-popup.vue +4 -15
  291. package/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue +2 -2
  292. package/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue +1 -1
  293. package/ui/components/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue +4 -4
  294. package/ui/components/organisms/vc-table/index.ts +7 -0
  295. package/ui/components/organisms/vc-table/vc-table-model.ts +56 -0
  296. package/ui/components/organisms/vc-table/vc-table.vue +10 -42
  297. package/ui/types/index.ts +188 -1
@@ -0,0 +1,11 @@
1
+ import { VNode } from "vue";
2
+ export interface VcPopupProps {
3
+ title?: string | undefined;
4
+ closable?: boolean | undefined;
5
+ variant?: "small" | "medium" | "fullscreen" | undefined;
6
+ onClose?: () => void;
7
+ }
8
+ export interface VcPopupSlots {
9
+ default: () => VNode[];
10
+ }
11
+ //# sourceMappingURL=vc-popup-model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vc-popup-model.d.ts","sourceRoot":"","sources":["../../../../../ui/components/organisms/vc-popup/vc-popup-model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC;AAE5B,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/B,OAAO,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,YAAY,GAAG,SAAS,CAAC;IACxD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,KAAK,EAAE,CAAC;CACxB"}
@@ -0,0 +1,5 @@
1
+ import { ComponentPublicInstance } from "vue";
2
+ import { VcTableProps } from "./vc-table-model";
3
+ import { ComponentConstructor } from "./../../../types/ts-helpers";
4
+ export declare const VcTable: ComponentConstructor<ComponentPublicInstance<VcTableProps>>;
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../ui/components/organisms/vc-table/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,KAAK,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAA;AAElE,eAAO,MAAM,OAAO,EAAE,oBAAoB,CACxC,uBAAuB,CAAC,YAAY,CAAC,CAC9B,CAAC"}
@@ -0,0 +1,66 @@
1
+ import { IActionBuilderResult, ITableColumns } from "./../../../../core/types";
2
+ import { VNode } from "vue";
3
+ export interface StatusImage {
4
+ image?: string;
5
+ text: string;
6
+ action?: string;
7
+ clickHandler?: () => void;
8
+ }
9
+ export interface VcTableProps {
10
+ columns?: ITableColumns[];
11
+ items?: {
12
+ id?: string;
13
+ }[] | any[];
14
+ itemActionBuilder?: (item: {
15
+ id?: string;
16
+ }) => IActionBuilderResult[] | undefined;
17
+ sort?: string | undefined;
18
+ multiselect?: boolean | undefined;
19
+ expanded?: boolean | undefined;
20
+ totalLabel?: string | undefined;
21
+ totalCount?: number | undefined;
22
+ pages?: number | undefined;
23
+ currentPage?: number | undefined;
24
+ searchPlaceholder?: string | undefined;
25
+ searchValue?: string | undefined;
26
+ loading?: boolean | undefined;
27
+ empty?: StatusImage | undefined;
28
+ notfound?: StatusImage | undefined;
29
+ header?: boolean | undefined;
30
+ footer?: boolean | undefined;
31
+ activeFilterCount?: number | undefined;
32
+ selectedItemId?: string | undefined;
33
+ scrolling?: boolean | undefined;
34
+ onPaginationClick?: (page: number) => void;
35
+ onSelectionChanged?: (values: Record<string, boolean>) => void;
36
+ "onSearch:change"?: (value: string) => void;
37
+ onHeaderClick?: (value: Record<string, unknown>) => void;
38
+ onItemClick?: (item: {
39
+ id?: string;
40
+ }) => void;
41
+ "onScroll:ptr"?: () => void;
42
+ }
43
+ export interface VcTableSlots {
44
+ header: () => VNode[];
45
+ filters: (args: {
46
+ closePanel: () => void;
47
+ }) => VNode[];
48
+ "mobile-item": (args: {
49
+ item: {
50
+ [x: string]: any;
51
+ id: string;
52
+ };
53
+ }) => VNode[];
54
+ [key: `header_${string}`]: () => VNode[];
55
+ [key: `item_${string}`]: (args: {
56
+ item?: {
57
+ [x: string]: any;
58
+ id: string;
59
+ };
60
+ cell?: ITableColumns;
61
+ }) => VNode[];
62
+ notfound: () => VNode[];
63
+ empty: () => VNode[];
64
+ footer: () => VNode[];
65
+ }
66
+ //# sourceMappingURL=vc-table-model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vc-table-model.d.ts","sourceRoot":"","sources":["../../../../../ui/components/organisms/vc-table/vc-table-model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC/E,OAAO,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC;AAE5B,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,MAAM,CAA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,CAAC;IACrB,MAAM,EAAE,MAAM,KAAK,EAAE,CAAC;CACvB"}
@@ -2,11 +2,79 @@ import { GlobalComponentConstructor } from "./ts-helpers";
2
2
  import { VcInputProps, VcInputSlots } from "../components/molecules/vc-input/vc-input-model";
3
3
  import { VcSelectProps, VcSelectSlots } from "../components/molecules/vc-select/vc-select-model";
4
4
  import { VcInputCurrencyProps, VcInputCurrencySlots } from "../components/molecules/vc-input-currency/vc-input-currency-model";
5
+ import { VcBadgeProps, VcBadgeSlots } from "../components/atoms/vc-badge/vc-badge-model";
6
+ import { VcButtonProps, VcButtonSlots } from "../components/atoms/vc-button/vc-button-model";
7
+ import { VcCardProps, VcCardSlots } from "../components/atoms/vc-card/vc-card-model";
8
+ import { VcCheckboxProps, VcCheckboxSlots } from "../components/atoms/vc-checkbox/vc-checkbox-model";
9
+ import { VcColProps, VcColSlots } from "../components/atoms/vc-col/vc-col-model";
10
+ import { VcContainerProps, VcContainerSlots } from "../components/atoms/vc-container/vc-container-model";
11
+ import { VcIconProps, VcIconSlots } from "../components/atoms/vc-icon/vc-icon-model";
12
+ import { VcImageProps, VcImageSlots } from "../components/atoms/vc-image/vc-image-model";
13
+ import { VcInfoRowProps, VcInfoRowSlots } from "../components/atoms/vc-info-row/vc-info-row-model";
14
+ import { VcLabelProps, VcLabelSlots } from "../components/atoms/vc-label/vc-label-model";
15
+ import { VcLinkProps, VcLinkSlots } from "../components/atoms/vc-link/vc-link-model";
16
+ import { VcLoadingProps, VcLoadingSlots } from "../components/atoms/vc-loading/vc-loading-model";
17
+ import { VcProgressProps, VcProgressSlots } from "../components/atoms/vc-progress/vc-progress-model";
18
+ import { VcRowSlots } from "../components/atoms/vc-row/vc-row-model";
19
+ import { VcStatusProps, VcStatusSlots } from "../components/atoms/vc-status/vc-status-model";
20
+ import { VcStatusIconProps, VcStatusIconSlots } from "../components/atoms/vc-status-icon/vc-status-icon-model";
21
+ import { VcSwitchProps, VcSwitchSlots } from "../components/atoms/vc-switch/vc-switch-model";
22
+ import { VcWidgetProps, VcWidgetSlots } from "../components/atoms/vc-widget/vc-widget-model";
23
+ import { VcBreadcrumbsProps, VcBreadcrumbsSlots } from "../components/molecules/vc-breadcrumbs/vc-breadcrumbs-model";
24
+ import { VcEditorProps, VcEditorSlots } from "../components/molecules/vc-editor/vc-editor-model";
25
+ import { VcFileUploadProps, VcFileUploadSlots } from "../components/molecules/vc-file-upload/vc-file-upload-model";
26
+ import { VcNotificationProps, VcNotificationSlots } from "../components/molecules/vc-notification/vc-notification-model";
27
+ import { VcPaginationProps, VcPaginationSlots } from "../components/molecules/vc-pagination/vc-pagination-model";
28
+ import { VcRatingProps, VcRatingSlots } from "../components/molecules/vc-rating/vc-rating-model";
29
+ import { VcSliderProps, VcSliderSlots } from "../components/molecules/vc-slider/vc-slider-model";
30
+ import { VcTextareaProps, VcTextareaSlots } from "../components/molecules/vc-textarea/vc-textarea-model";
31
+ import { VcAppProps, VcAppSlots } from "../components/organisms/vc-app/vc-app-model";
32
+ import { VcBladeProps, VcBladeSlots } from "../components/organisms/vc-blade/vc-blade-model";
33
+ import { VcDynamicPropertyProps, VcDynamicPropertySlots } from "../components/organisms/vc-dynamic-property/vc-dynamic-property-model";
34
+ import { VcGalleryProps, VcGallerySlots } from "../components/organisms/vc-gallery/vc-gallery-model";
35
+ import { VcLoginFormProps, VcLoginFormSlots } from "../components/organisms/vc-login-form/vc-login-form-model";
36
+ import { VcPopupProps, VcPopupSlots } from "../components/organisms/vc-popup/vc-popup-model";
37
+ import { VcTableProps, VcTableSlots } from "../components/organisms/vc-table/vc-table-model";
5
38
  declare module "@vue/runtime-core" {
6
39
  interface GlobalComponents {
40
+ VcBadge: GlobalComponentConstructor<VcBadgeProps, VcBadgeSlots>;
41
+ VcButton: GlobalComponentConstructor<VcButtonProps, VcButtonSlots>;
42
+ VcCard: GlobalComponentConstructor<VcCardProps, VcCardSlots>;
43
+ VcCheckbox: GlobalComponentConstructor<VcCheckboxProps, VcCheckboxSlots>;
44
+ VcCol: GlobalComponentConstructor<VcColProps, VcColSlots>;
45
+ VcContainer: GlobalComponentConstructor<VcContainerProps, VcContainerSlots>;
46
+ VcHint: GlobalComponentConstructor;
47
+ VcIcon: GlobalComponentConstructor<VcIconProps, VcIconSlots>;
48
+ VcImage: GlobalComponentConstructor<VcImageProps, VcImageSlots>;
49
+ VcInfoRow: GlobalComponentConstructor<VcInfoRowProps, VcInfoRowSlots>;
50
+ VcLabel: GlobalComponentConstructor<VcLabelProps, VcLabelSlots>;
51
+ VcLink: GlobalComponentConstructor<VcLinkProps, VcLinkSlots>;
52
+ VcLoading: GlobalComponentConstructor<VcLoadingProps, VcLoadingSlots>;
53
+ VcProgress: GlobalComponentConstructor<VcProgressProps, VcProgressSlots>;
54
+ VcRow: GlobalComponentConstructor<any, VcRowSlots>;
55
+ VcStatus: GlobalComponentConstructor<VcStatusProps, VcStatusSlots>;
56
+ VcStatusIcon: GlobalComponentConstructor<VcStatusIconProps, VcStatusIconSlots>;
57
+ VcSwitch: GlobalComponentConstructor<VcSwitchProps, VcSwitchSlots>;
58
+ VcWidget: GlobalComponentConstructor<VcWidgetProps, VcWidgetSlots>;
59
+ VcBreadcrumbs: GlobalComponentConstructor<VcBreadcrumbsProps, VcBreadcrumbsSlots>;
60
+ VcEditor: GlobalComponentConstructor<VcEditorProps, VcEditorSlots>;
61
+ VcFileUpload: GlobalComponentConstructor<VcFileUploadProps, VcFileUploadSlots>;
62
+ VcForm: GlobalComponentConstructor;
7
63
  VcInput: GlobalComponentConstructor<VcInputProps, VcInputSlots>;
8
64
  VcInputCurrency: GlobalComponentConstructor<VcInputCurrencyProps, VcInputCurrencySlots>;
65
+ VcNotification: GlobalComponentConstructor<VcNotificationProps, VcNotificationSlots>;
66
+ VcPagination: GlobalComponentConstructor<VcPaginationProps, VcPaginationSlots>;
67
+ VcRating: GlobalComponentConstructor<VcRatingProps, VcRatingSlots>;
9
68
  VcSelect: GlobalComponentConstructor<VcSelectProps, VcSelectSlots>;
69
+ VcSlider: GlobalComponentConstructor<VcSliderProps, VcSliderSlots>;
70
+ VcTextarea: GlobalComponentConstructor<VcTextareaProps, VcTextareaSlots>;
71
+ VcApp: GlobalComponentConstructor<VcAppProps, VcAppSlots>;
72
+ VcBlade: GlobalComponentConstructor<VcBladeProps, VcBladeSlots>;
73
+ VcDynamicProperty: GlobalComponentConstructor<VcDynamicPropertyProps, VcDynamicPropertySlots>;
74
+ VcGallery: GlobalComponentConstructor<VcGalleryProps, VcGallerySlots>;
75
+ VcLoginForm: GlobalComponentConstructor<VcLoginFormProps, VcLoginFormSlots>;
76
+ VcPopup: GlobalComponentConstructor<VcPopupProps, VcPopupSlots>;
77
+ VcTable: GlobalComponentConstructor<VcTableProps, VcTableSlots>;
10
78
  }
11
79
  }
12
80
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../ui/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,EACL,YAAY,EACZ,YAAY,EACb,MAAM,iDAAiD,CAAC;AACzD,OAAO,EACL,aAAa,EACb,aAAa,EACd,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,mEAAmE,CAAC;AAE3E,OAAO,QAAQ,mBAAmB,CAAC;IACjC,UAAU,gBAAgB;QACxB,OAAO,EAAE,0BAA0B,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC;QAChE,eAAe,EAAE,0BAA0B,CACzC,oBAAoB,EACpB,oBAAoB,CACrB,CAAC;QACF,QAAQ,EAAE,0BAA0B,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC;KACpE;CACF;AAED,OAAO,EAAG,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../ui/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,EACL,YA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,YAAY,CAAC,CAAC;QAChE,eAAe,EAAE,0BAA0B,CACzC,oBAAoB,EACpB,oBAAoB,CACrB,CAAC;QACF,cAAc,EAAE,0BAA0B,CACxC,mBAAmB,EACnB,mBAAmB,CACpB,CAAC;QACF,YAAY,EAAE,0BAA0B,CACtC,iBAAiB,EACjB,iBAAiB,CAClB,CAAC;QACF,QAAQ,EAAE,0BAA0B,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC;QACnE,QAAQ,EAAE,0BAA0B,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC;QACnE,QAAQ,EAAE,0BAA0B,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC;QACnE,UAAU,EAAE,0BAA0B,CAAC,eAAe,EAAE,eAAe,CAAC,CAAC;QAGzE,KAAK,EAAE,0BAA0B,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;QAC1D,OAAO,EAAE,0BAA0B,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC;QAChE,iBAAiB,EAAE,0BAA0B,CAC3C,sBAAsB,EACtB,sBAAsB,CACvB,CAAC;QACF,SAAS,EAAE,0BAA0B,CAAC,cAAc,EAAE,cAAc,CAAC,CAAC;QACtE,WAAW,EAAE,0BAA0B,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,CAAC;QAC5E,OAAO,EAAE,0BAA0B,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC;QAChE,OAAO,EAAE,0BAA0B,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC;KACjE;CACF;AAED,OAAO,EAAE,CAAC"}
@@ -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":";AAMA,wBA6CE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vc-shell/framework",
3
- "version": "1.0.51",
3
+ "version": "1.0.53",
4
4
  "main": "./dist/framework.js",
5
5
  "module": "./dist/framework.js",
6
6
  "types": "./dist/index.d.ts",
@@ -27,6 +27,7 @@
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"
@@ -54,17 +55,17 @@
54
55
  "devDependencies": {
55
56
  "@originjs/vite-plugin-commonjs": "^1.0.3",
56
57
  "@rollup/plugin-commonjs": "^21.0.2",
57
- "@vc-shell/api-client-generator": "^1.0.51",
58
- "@vc-shell/config-generator": "^1.0.51",
58
+ "@vc-shell/api-client-generator": "^1.0.53",
59
+ "@vc-shell/config-generator": "^1.0.53",
59
60
  "@vue-macros/volar": "^0.8.1",
60
61
  "sass": "^1.49.0",
61
62
  "typescript": "^4.9.5",
62
- "unplugin-vue-macros": "^1.1.1",
63
+ "unplugin-vue-macros": "^1.9.1",
63
64
  "url-pattern": "^1.0.3"
64
65
  },
65
66
  "publishConfig": {
66
67
  "access": "public",
67
68
  "registry": "https://registry.npmjs.org/"
68
69
  },
69
- "gitHead": "8d2d6a13782f99309def2eb83d0344afedd5e478"
70
+ "gitHead": "8c644532aec0fb5eefe62c29509ab4392adc74d0"
70
71
  }
@@ -44,7 +44,7 @@
44
44
 
45
45
  <script lang="ts" setup>
46
46
  import { ref } from "vue";
47
- import { AppDescriptor } from "@/core/api";
47
+ import { AppDescriptor } from "./../../../../core/api";
48
48
 
49
49
  export interface Props {
50
50
  appsList: AppDescriptor[];
@@ -1,10 +1,10 @@
1
1
  import { computed, Ref, ref } from "vue";
2
- import { AppDescriptor, AppsClient } from "@/core/api";
2
+ import { AppDescriptor, AppsClient } from "./../../../../core/api";
3
3
  import {
4
4
  useLogger,
5
5
  useUser,
6
6
  usePermissions,
7
- } from "@/core/composables";
7
+ } from "./../../../../core/composables";
8
8
 
9
9
  interface IUseAppSwitcher {
10
10
  readonly appsList: Ref<AppDescriptor[]>;
@@ -45,7 +45,7 @@
45
45
  :placeholder="
46
46
  $t('ASSETS.PAGES.DETAILS.FIELDS.DESCRIPTION.PLACEHOLDER')
47
47
  "
48
- is-required
48
+ required
49
49
  ></VcTextarea>
50
50
  </VcForm>
51
51
  </div>
@@ -57,8 +57,8 @@
57
57
 
58
58
  <script lang="ts" setup>
59
59
  import { computed, reactive, unref } from "vue";
60
- import { useI18n } from "@/core/composables";
61
- import { IParentCallArgs } from "@/shared";
60
+ import { useI18n } from "./../../../../core/composables";
61
+ import { IParentCallArgs } from "./../../../../shared";
62
62
  import {
63
63
  VcBlade,
64
64
  VcContainer,
@@ -66,7 +66,7 @@ import {
66
66
  VcImage,
67
67
  VcInput,
68
68
  VcTextarea,
69
- } from "@/ui/components";
69
+ } from "./../../../../ui/components";
70
70
 
71
71
  export interface Props {
72
72
  expanded?: boolean;
@@ -25,7 +25,7 @@
25
25
  @open:blade="$emit('onOpen', { blade: $event, id: blade.idx })"
26
26
  @close:blade="$emit('onClose', i)"
27
27
  @close:children="$emit('onClose', i + 1)"
28
- @parent:call="$emit('onParentCall', { id: i, cb: $event })"
28
+ @parent:call="$emit('onParentCall', { id: i, args: $event })"
29
29
  :ref="setBladesRef"
30
30
  ></component>
31
31
  </template>
@@ -38,7 +38,7 @@ import {
38
38
  IBladeElement,
39
39
  IBladeEvent,
40
40
  IParentCallArgs,
41
- } from "@/shared";
41
+ } from "./../../../../shared";
42
42
 
43
43
  export interface Props {
44
44
  blades: IBladeContainer[];
@@ -1,14 +1,14 @@
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";
4
+ import { usePermissions } from "./../../../../core/composables";
5
5
  import {
6
6
  ExtendedComponent,
7
7
  IBladeContainer,
8
8
  IBladeElement,
9
9
  IBladeEvent,
10
10
  IParentCallArgs,
11
- } from "@/shared";
11
+ } from "./../../../../shared";
12
12
 
13
13
  interface IUseBladeNavigation {
14
14
  readonly blades: Ref<IBladeContainer[]>;
@@ -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 */
@@ -1,6 +1,6 @@
1
1
  import { ComponentPublicInstance } from "vue";
2
2
  import { VcBadgeProps } from "./vc-badge-model";
3
- import { ComponentConstructor } from "@/ui/types/ts-helpers";
3
+ import { ComponentConstructor } from "./../../../types/ts-helpers";
4
4
  import Badge from "./vc-badge.vue";
5
5
  export const VcBadge: ComponentConstructor<
6
6
  ComponentPublicInstance<VcBadgeProps>
@@ -13,13 +13,7 @@ export interface VcBadgeProps {
13
13
  * Is badge clickable?
14
14
  * */
15
15
  clickable?: boolean | undefined;
16
- }
17
-
18
- export interface VcBadgeEmits {
19
- /**
20
- * Emitted when component is clicked
21
- * */
22
- (event: "click"): void;
16
+ onClick?: (event: "click") => void;
23
17
  }
24
18
 
25
19
  export interface VcBadgeSlots {
@@ -17,16 +17,15 @@
17
17
 
18
18
  <script lang="ts" setup>
19
19
  import {
20
- VcBadgeEmits,
21
20
  VcBadgeProps,
22
- } from "@/ui/components/atoms/vc-badge/vc-badge-model";
21
+ } from "./vc-badge-model";
23
22
 
24
23
  const props = withDefaults(defineProps<VcBadgeProps>(), {
25
24
  active: false,
26
25
  disabled: false,
27
26
  clickable: true,
28
27
  });
29
- const emit = defineEmits<VcBadgeEmits>();
28
+ const emit = defineEmits(["click"]);
30
29
 
31
30
  function onClick(): void {
32
31
  if (props.clickable && !props.disabled) {
@@ -1,7 +1,7 @@
1
1
  import { ComponentPublicInstance } from "vue";
2
2
  import { VcButtonProps } from "./vc-button-model";
3
- import { ComponentConstructor } from "@/ui/types/ts-helpers";
3
+ import { ComponentConstructor } from "./../../../types/ts-helpers";
4
4
  import Button from "./vc-button.vue";
5
- export const VcBadge: ComponentConstructor<
5
+ export const VcButton: ComponentConstructor<
6
6
  ComponentPublicInstance<VcButtonProps>
7
7
  > = Button;
@@ -1,30 +1,22 @@
1
1
  import { VNode } from "vue";
2
2
 
3
3
  export interface VcButtonProps {
4
- /**
5
- * Button icon from Fontawesome icons set
6
- * */
7
4
  icon?: string | undefined;
8
- /**
9
- * Put component in disabled state
10
- * */
5
+ variant?:
6
+ | "primary"
7
+ | "secondary"
8
+ | "special"
9
+ | "danger"
10
+ | "widget"
11
+ | "onlytext"
12
+ | undefined;
11
13
  disabled?: boolean | undefined;
12
- /**
13
- * Is badge clickable?
14
- * */
15
- clickable?: boolean | undefined;
16
- }
17
-
18
- export interface VcButtonEmits {
19
- /**
20
- * Emitted when component is clicked
21
- * */
22
- (event: "click"): void;
14
+ small?: boolean | undefined;
15
+ outline?: boolean | undefined;
16
+ selected?: boolean | undefined;
17
+ onClick?: () => void;
23
18
  }
24
19
 
25
20
  export interface VcButtonSlots {
26
- /**
27
- * Slot for component content
28
- * */
29
21
  default: () => VNode[];
30
22
  }
@@ -25,39 +25,15 @@
25
25
  </template>
26
26
 
27
27
  <script lang="ts" setup>
28
- import { VcIcon } from "@/ui/components";
29
-
30
- const props = defineProps({
31
- icon: {
32
- type: String,
33
- default: undefined,
34
- },
35
-
36
- variant: {
37
- type: String,
38
- enum: ["primary", "secondary", "special", "danger", "widget", "onlytext"],
39
- default: "primary",
40
- },
41
-
42
- disabled: {
43
- type: Boolean,
44
- default: false,
45
- },
46
-
47
- small: {
48
- type: Boolean,
49
- default: false,
50
- },
51
-
52
- outline: {
53
- type: Boolean,
54
- default: false,
55
- },
56
-
57
- selected: {
58
- type: Boolean,
59
- default: false,
60
- },
28
+ import { VcIcon } from "./../../../components";
29
+ import { VcButtonProps } from "./vc-button-model";
30
+
31
+ const props = withDefaults(defineProps<VcButtonProps>(), {
32
+ variant: "primary",
33
+ disabled: false,
34
+ small: false,
35
+ outline: false,
36
+ selected: false,
61
37
  });
62
38
 
63
39
  const emit = defineEmits(["click"]);
@@ -0,0 +1,7 @@
1
+ import { ComponentPublicInstance } from "vue";
2
+ import { VcCardProps } from "./vc-card-model";
3
+ import { ComponentConstructor } from "./../../../types/ts-helpers";
4
+ import Card from "./vc-card.vue";
5
+ export const VcCard: ComponentConstructor<
6
+ ComponentPublicInstance<VcCardProps>
7
+ > = Card;
@@ -0,0 +1,17 @@
1
+ import { VNode } from "vue";
2
+
3
+ export interface VcCardProps {
4
+ header?: string | undefined;
5
+ icon?: string | undefined;
6
+ isCollapsable?: boolean | undefined;
7
+ isCollapsed?: boolean | undefined;
8
+ fill?: boolean | undefined;
9
+ variant?: "default" | "success" | "danger" | undefined;
10
+ "onHeader:click"?: () => void;
11
+ "onState:collapsed"?: (isCollapsedState: boolean) => void;
12
+ }
13
+
14
+ export interface VcCardSlots {
15
+ default: () => VNode[];
16
+ actions: () => VNode[];
17
+ }
@@ -29,37 +29,12 @@
29
29
 
30
30
  <script lang="ts" setup>
31
31
  import { ref } from "vue";
32
- const props = defineProps({
33
- header: {
34
- type: String,
35
- default: undefined,
36
- },
37
-
38
- icon: {
39
- type: String,
40
- default: undefined,
41
- },
42
-
43
- isCollapsable: {
44
- type: Boolean,
45
- default: false,
46
- },
47
-
48
- isCollapsed: {
49
- type: Boolean,
50
- default: false,
51
- },
52
-
53
- fill: {
54
- type: Boolean,
55
- default: false,
56
- },
57
-
58
- variant: {
59
- type: String,
60
- enum: ["default", "success", "danger"],
61
- default: "default",
62
- },
32
+ import { VcCardProps } from "./vc-card-model";
33
+ const props = withDefaults(defineProps<VcCardProps>(), {
34
+ isCollapsable: false,
35
+ isCollapsed: false,
36
+ fill: false,
37
+ variant: "default",
63
38
  });
64
39
  const emit = defineEmits(["header:click", "state:collapsed"]);
65
40
  const isCollapsedInternal = ref(props.isCollapsed);
@@ -0,0 +1,7 @@
1
+ import { ComponentPublicInstance } from "vue";
2
+ import { VcCheckboxProps } from "./vc-checkbox-model";
3
+ import { ComponentConstructor } from "./../../../types/ts-helpers";
4
+ import Checkbox from "./vc-checkbox.vue";
5
+ export const VcCheckbox: ComponentConstructor<
6
+ ComponentPublicInstance<VcCheckboxProps>
7
+ > = Checkbox;
@@ -0,0 +1,15 @@
1
+ import { VNode } from "vue";
2
+
3
+ export interface VcCheckboxProps {
4
+ modelValue?: boolean | undefined;
5
+ disabled?: boolean | undefined;
6
+ required?: boolean | undefined;
7
+ name?: string | undefined;
8
+ errorMessage?: string | undefined;
9
+ "onUpdate:modelValue"?: (value: boolean) => void;
10
+ }
11
+
12
+ export interface VcCheckboxSlots {
13
+ default: () => VNode[];
14
+ error: () => VNode[];
15
+ }
@@ -29,32 +29,13 @@
29
29
 
30
30
  <script lang="ts" setup>
31
31
  import { watch } from "vue";
32
+ import { VcCheckboxProps } from "./vc-checkbox-model";
32
33
 
33
- const props = defineProps({
34
- modelValue: {
35
- type: Boolean,
36
- default: false,
37
- },
38
-
39
- disabled: {
40
- type: Boolean,
41
- default: false,
42
- },
43
-
44
- required: {
45
- type: Boolean,
46
- default: false,
47
- },
48
-
49
- name: {
50
- type: String,
51
- default: "Field",
52
- },
53
-
54
- errorMessage: {
55
- type: String,
56
- default: undefined
57
- }
34
+ const props = withDefaults(defineProps<VcCheckboxProps>(), {
35
+ modelValue: false,
36
+ disabled: false,
37
+ required: false,
38
+ name: "Field",
58
39
  });
59
40
  const emit = defineEmits(["update:modelValue"]);
60
41
 
@@ -0,0 +1,6 @@
1
+ import { ComponentPublicInstance } from "vue";
2
+ import { VcColProps } from "./vc-col-model";
3
+ import { ComponentConstructor } from "./../../../types/ts-helpers";
4
+ import Col from "./vc-col.vue";
5
+ export const VcCol: ComponentConstructor<ComponentPublicInstance<VcColProps>> =
6
+ Col;
@@ -0,0 +1,9 @@
1
+ import { VNode } from "vue";
2
+
3
+ export interface VcColProps {
4
+ size?: string | undefined;
5
+ }
6
+
7
+ export interface VcColSlots {
8
+ default: () => VNode[];
9
+ }