@vc-shell/framework 1.0.50 → 1.0.51

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 (256) hide show
  1. package/core/types/index.ts +4 -2
  2. package/dist/core/types/index.d.ts +3 -2
  3. package/dist/core/types/index.d.ts.map +1 -1
  4. package/dist/framework.js +56 -56
  5. package/dist/shared/blade-navigation/index.d.ts +1 -1
  6. package/dist/shared/blade-navigation/index.d.ts.map +1 -1
  7. package/dist/style.css +1 -1
  8. package/dist/tsconfig.tsbuildinfo +1 -1
  9. package/dist/ui/components/atoms/vc-badge/vc-badge-model.d.ts +6 -1
  10. package/dist/ui/components/atoms/vc-badge/vc-badge-model.d.ts.map +1 -1
  11. package/dist/ui/components/atoms/vc-button/index.d.ts +1 -1
  12. package/dist/ui/components/atoms/vc-button/index.d.ts.map +1 -1
  13. package/dist/ui/components/atoms/vc-button/vc-button-model.d.ts +19 -5
  14. package/dist/ui/components/atoms/vc-button/vc-button-model.d.ts.map +1 -1
  15. package/dist/ui/components/index.d.ts +34 -34
  16. package/dist/ui/components/index.d.ts.map +1 -1
  17. package/dist/ui/types/index.d.ts +0 -68
  18. package/dist/ui/types/index.d.ts.map +1 -1
  19. package/package.json +4 -4
  20. package/shared/assets/components/assets-details/assets-details.vue +1 -1
  21. package/shared/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue +1 -1
  22. package/shared/blade-navigation/index.ts +7 -7
  23. package/tailwind.config.js +1 -1
  24. package/ui/components/atoms/vc-badge/vc-badge-model.ts +7 -1
  25. package/ui/components/atoms/vc-badge/vc-badge.vue +2 -1
  26. package/ui/components/atoms/vc-button/index.ts +1 -1
  27. package/ui/components/atoms/vc-button/vc-button-model.ts +20 -12
  28. package/ui/components/atoms/vc-button/vc-button.vue +32 -8
  29. package/ui/components/atoms/vc-card/vc-card.vue +31 -6
  30. package/ui/components/atoms/vc-checkbox/vc-checkbox.vue +25 -6
  31. package/ui/components/atoms/vc-col/vc-col.vue +4 -2
  32. package/ui/components/atoms/vc-container/vc-container.vue +18 -11
  33. package/ui/components/atoms/vc-icon/vc-icon.vue +5 -2
  34. package/ui/components/atoms/vc-image/vc-image.vue +37 -11
  35. package/ui/components/atoms/vc-info-row/vc-info-row.vue +20 -6
  36. package/ui/components/atoms/vc-label/vc-label.vue +12 -8
  37. package/ui/components/atoms/vc-link/vc-link.vue +9 -4
  38. package/ui/components/atoms/vc-loading/vc-loading.vue +5 -4
  39. package/ui/components/atoms/vc-progress/vc-progress.vue +11 -5
  40. package/ui/components/atoms/vc-status/vc-status.vue +15 -5
  41. package/ui/components/atoms/vc-status-icon/vc-status-icon.vue +7 -11
  42. package/ui/components/atoms/vc-switch/vc-switch.vue +24 -6
  43. package/ui/components/atoms/vc-widget/vc-widget.vue +19 -3
  44. package/ui/components/index.ts +34 -34
  45. package/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue +11 -2
  46. package/ui/components/molecules/vc-editor/vc-editor.vue +52 -15
  47. package/ui/components/molecules/vc-file-upload/vc-file-upload.vue +33 -12
  48. package/ui/components/molecules/vc-notification/vc-notification.vue +10 -3
  49. package/ui/components/molecules/vc-pagination/vc-pagination.vue +16 -6
  50. package/ui/components/molecules/vc-rating/vc-rating.vue +10 -2
  51. package/ui/components/molecules/vc-slider/vc-slider.vue +25 -7
  52. package/ui/components/molecules/vc-textarea/vc-textarea.vue +47 -9
  53. package/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue +1 -2
  54. package/ui/components/organisms/vc-app/vc-app.vue +31 -6
  55. package/ui/components/organisms/vc-blade/_internal/vc-blade-header/vc-blade-header.vue +32 -17
  56. package/ui/components/organisms/vc-blade/vc-blade.vue +34 -9
  57. package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue +94 -66
  58. package/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue +21 -31
  59. package/ui/components/organisms/vc-gallery/vc-gallery.vue +81 -22
  60. package/ui/components/organisms/vc-login-form/vc-login-form.vue +14 -3
  61. package/ui/components/organisms/vc-popup/vc-popup.vue +15 -4
  62. package/ui/components/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue +2 -2
  63. package/ui/components/organisms/vc-table/vc-table.vue +41 -9
  64. package/ui/types/index.ts +1 -188
  65. package/dist/ui/components/atoms/vc-card/index.d.ts +0 -5
  66. package/dist/ui/components/atoms/vc-card/index.d.ts.map +0 -1
  67. package/dist/ui/components/atoms/vc-card/vc-card-model.d.ts +0 -16
  68. package/dist/ui/components/atoms/vc-card/vc-card-model.d.ts.map +0 -1
  69. package/dist/ui/components/atoms/vc-checkbox/index.d.ts +0 -5
  70. package/dist/ui/components/atoms/vc-checkbox/index.d.ts.map +0 -1
  71. package/dist/ui/components/atoms/vc-checkbox/vc-checkbox-model.d.ts +0 -14
  72. package/dist/ui/components/atoms/vc-checkbox/vc-checkbox-model.d.ts.map +0 -1
  73. package/dist/ui/components/atoms/vc-col/index.d.ts +0 -5
  74. package/dist/ui/components/atoms/vc-col/index.d.ts.map +0 -1
  75. package/dist/ui/components/atoms/vc-col/vc-col-model.d.ts +0 -8
  76. package/dist/ui/components/atoms/vc-col/vc-col-model.d.ts.map +0 -1
  77. package/dist/ui/components/atoms/vc-container/index.d.ts +0 -5
  78. package/dist/ui/components/atoms/vc-container/index.d.ts.map +0 -1
  79. package/dist/ui/components/atoms/vc-container/vc-container-model.d.ts +0 -11
  80. package/dist/ui/components/atoms/vc-container/vc-container-model.d.ts.map +0 -1
  81. package/dist/ui/components/atoms/vc-hint/index.d.ts +0 -2
  82. package/dist/ui/components/atoms/vc-hint/index.d.ts.map +0 -1
  83. package/dist/ui/components/atoms/vc-icon/index.d.ts +0 -5
  84. package/dist/ui/components/atoms/vc-icon/index.d.ts.map +0 -1
  85. package/dist/ui/components/atoms/vc-icon/vc-icon-model.d.ts +0 -9
  86. package/dist/ui/components/atoms/vc-icon/vc-icon-model.d.ts.map +0 -1
  87. package/dist/ui/components/atoms/vc-image/index.d.ts +0 -5
  88. package/dist/ui/components/atoms/vc-image/index.d.ts.map +0 -1
  89. package/dist/ui/components/atoms/vc-image/vc-image-model.d.ts +0 -15
  90. package/dist/ui/components/atoms/vc-image/vc-image-model.d.ts.map +0 -1
  91. package/dist/ui/components/atoms/vc-info-row/index.d.ts +0 -5
  92. package/dist/ui/components/atoms/vc-info-row/index.d.ts.map +0 -1
  93. package/dist/ui/components/atoms/vc-info-row/vc-info-row-model.d.ts +0 -11
  94. package/dist/ui/components/atoms/vc-info-row/vc-info-row-model.d.ts.map +0 -1
  95. package/dist/ui/components/atoms/vc-label/index.d.ts +0 -5
  96. package/dist/ui/components/atoms/vc-label/index.d.ts.map +0 -1
  97. package/dist/ui/components/atoms/vc-label/vc-label-model.d.ts +0 -10
  98. package/dist/ui/components/atoms/vc-label/vc-label-model.d.ts.map +0 -1
  99. package/dist/ui/components/atoms/vc-link/index.d.ts +0 -5
  100. package/dist/ui/components/atoms/vc-link/index.d.ts.map +0 -1
  101. package/dist/ui/components/atoms/vc-link/vc-link-model.d.ts +0 -10
  102. package/dist/ui/components/atoms/vc-link/vc-link-model.d.ts.map +0 -1
  103. package/dist/ui/components/atoms/vc-loading/index.d.ts +0 -5
  104. package/dist/ui/components/atoms/vc-loading/index.d.ts.map +0 -1
  105. package/dist/ui/components/atoms/vc-loading/vc-loading-model.d.ts +0 -8
  106. package/dist/ui/components/atoms/vc-loading/vc-loading-model.d.ts.map +0 -1
  107. package/dist/ui/components/atoms/vc-progress/index.d.ts +0 -5
  108. package/dist/ui/components/atoms/vc-progress/index.d.ts.map +0 -1
  109. package/dist/ui/components/atoms/vc-progress/vc-progress-model.d.ts +0 -9
  110. package/dist/ui/components/atoms/vc-progress/vc-progress-model.d.ts.map +0 -1
  111. package/dist/ui/components/atoms/vc-row/index.d.ts +0 -2
  112. package/dist/ui/components/atoms/vc-row/index.d.ts.map +0 -1
  113. package/dist/ui/components/atoms/vc-row/vc-row-model.d.ts +0 -5
  114. package/dist/ui/components/atoms/vc-row/vc-row-model.d.ts.map +0 -1
  115. package/dist/ui/components/atoms/vc-status/index.d.ts +0 -5
  116. package/dist/ui/components/atoms/vc-status/index.d.ts.map +0 -1
  117. package/dist/ui/components/atoms/vc-status/vc-status-model.d.ts +0 -10
  118. package/dist/ui/components/atoms/vc-status/vc-status-model.d.ts.map +0 -1
  119. package/dist/ui/components/atoms/vc-status-icon/index.d.ts +0 -5
  120. package/dist/ui/components/atoms/vc-status-icon/index.d.ts.map +0 -1
  121. package/dist/ui/components/atoms/vc-status-icon/vc-status-icon-model.d.ts +0 -8
  122. package/dist/ui/components/atoms/vc-status-icon/vc-status-icon-model.d.ts.map +0 -1
  123. package/dist/ui/components/atoms/vc-switch/index.d.ts +0 -5
  124. package/dist/ui/components/atoms/vc-switch/index.d.ts.map +0 -1
  125. package/dist/ui/components/atoms/vc-switch/vc-switch-model.d.ts +0 -13
  126. package/dist/ui/components/atoms/vc-switch/vc-switch-model.d.ts.map +0 -1
  127. package/dist/ui/components/atoms/vc-widget/index.d.ts +0 -5
  128. package/dist/ui/components/atoms/vc-widget/index.d.ts.map +0 -1
  129. package/dist/ui/components/atoms/vc-widget/vc-widget-model.d.ts +0 -12
  130. package/dist/ui/components/atoms/vc-widget/vc-widget-model.d.ts.map +0 -1
  131. package/dist/ui/components/molecules/vc-breadcrumbs/index.d.ts +0 -5
  132. package/dist/ui/components/molecules/vc-breadcrumbs/index.d.ts.map +0 -1
  133. package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs-model.d.ts +0 -14
  134. package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs-model.d.ts.map +0 -1
  135. package/dist/ui/components/molecules/vc-editor/index.d.ts +0 -5
  136. package/dist/ui/components/molecules/vc-editor/index.d.ts.map +0 -1
  137. package/dist/ui/components/molecules/vc-editor/vc-editor-model.d.ts +0 -16
  138. package/dist/ui/components/molecules/vc-editor/vc-editor-model.d.ts.map +0 -1
  139. package/dist/ui/components/molecules/vc-file-upload/index.d.ts +0 -5
  140. package/dist/ui/components/molecules/vc-file-upload/index.d.ts.map +0 -1
  141. package/dist/ui/components/molecules/vc-file-upload/vc-file-upload-model.d.ts +0 -14
  142. package/dist/ui/components/molecules/vc-file-upload/vc-file-upload-model.d.ts.map +0 -1
  143. package/dist/ui/components/molecules/vc-form/index.d.ts +0 -2
  144. package/dist/ui/components/molecules/vc-form/index.d.ts.map +0 -1
  145. package/dist/ui/components/molecules/vc-notification/index.d.ts +0 -5
  146. package/dist/ui/components/molecules/vc-notification/index.d.ts.map +0 -1
  147. package/dist/ui/components/molecules/vc-notification/vc-notification-model.d.ts +0 -10
  148. package/dist/ui/components/molecules/vc-notification/vc-notification-model.d.ts.map +0 -1
  149. package/dist/ui/components/molecules/vc-pagination/index.d.ts +0 -5
  150. package/dist/ui/components/molecules/vc-pagination/index.d.ts.map +0 -1
  151. package/dist/ui/components/molecules/vc-pagination/vc-pagination-model.d.ts +0 -11
  152. package/dist/ui/components/molecules/vc-pagination/vc-pagination-model.d.ts.map +0 -1
  153. package/dist/ui/components/molecules/vc-rating/index.d.ts +0 -5
  154. package/dist/ui/components/molecules/vc-rating/index.d.ts.map +0 -1
  155. package/dist/ui/components/molecules/vc-rating/vc-rating-model.d.ts +0 -13
  156. package/dist/ui/components/molecules/vc-rating/vc-rating-model.d.ts.map +0 -1
  157. package/dist/ui/components/molecules/vc-slider/index.d.ts +0 -5
  158. package/dist/ui/components/molecules/vc-slider/index.d.ts.map +0 -1
  159. package/dist/ui/components/molecules/vc-slider/vc-slider-model.d.ts +0 -14
  160. package/dist/ui/components/molecules/vc-slider/vc-slider-model.d.ts.map +0 -1
  161. package/dist/ui/components/molecules/vc-textarea/index.d.ts +0 -5
  162. package/dist/ui/components/molecules/vc-textarea/index.d.ts.map +0 -1
  163. package/dist/ui/components/molecules/vc-textarea/vc-textarea-model.d.ts +0 -17
  164. package/dist/ui/components/molecules/vc-textarea/vc-textarea-model.d.ts.map +0 -1
  165. package/dist/ui/components/organisms/vc-app/index.d.ts +0 -5
  166. package/dist/ui/components/organisms/vc-app/index.d.ts.map +0 -1
  167. package/dist/ui/components/organisms/vc-app/vc-app-model.d.ts +0 -26
  168. package/dist/ui/components/organisms/vc-app/vc-app-model.d.ts.map +0 -1
  169. package/dist/ui/components/organisms/vc-blade/index.d.ts +0 -5
  170. package/dist/ui/components/organisms/vc-blade/index.d.ts.map +0 -1
  171. package/dist/ui/components/organisms/vc-blade/vc-blade-model.d.ts +0 -17
  172. package/dist/ui/components/organisms/vc-blade/vc-blade-model.d.ts.map +0 -1
  173. package/dist/ui/components/organisms/vc-dynamic-property/index.d.ts +0 -5
  174. package/dist/ui/components/organisms/vc-dynamic-property/index.d.ts.map +0 -1
  175. package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property-model.d.ts +0 -14
  176. package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property-model.d.ts.map +0 -1
  177. package/dist/ui/components/organisms/vc-gallery/index.d.ts +0 -5
  178. package/dist/ui/components/organisms/vc-gallery/index.d.ts.map +0 -1
  179. package/dist/ui/components/organisms/vc-gallery/vc-gallery-model.d.ts +0 -32
  180. package/dist/ui/components/organisms/vc-gallery/vc-gallery-model.d.ts.map +0 -1
  181. package/dist/ui/components/organisms/vc-login-form/index.d.ts +0 -5
  182. package/dist/ui/components/organisms/vc-login-form/index.d.ts.map +0 -1
  183. package/dist/ui/components/organisms/vc-login-form/vc-login-form-model.d.ts +0 -10
  184. package/dist/ui/components/organisms/vc-login-form/vc-login-form-model.d.ts.map +0 -1
  185. package/dist/ui/components/organisms/vc-popup/index.d.ts +0 -5
  186. package/dist/ui/components/organisms/vc-popup/index.d.ts.map +0 -1
  187. package/dist/ui/components/organisms/vc-popup/vc-popup-model.d.ts +0 -11
  188. package/dist/ui/components/organisms/vc-popup/vc-popup-model.d.ts.map +0 -1
  189. package/dist/ui/components/organisms/vc-table/index.d.ts +0 -5
  190. package/dist/ui/components/organisms/vc-table/index.d.ts.map +0 -1
  191. package/dist/ui/components/organisms/vc-table/vc-table-model.d.ts +0 -66
  192. package/dist/ui/components/organisms/vc-table/vc-table-model.d.ts.map +0 -1
  193. package/ui/components/atoms/vc-card/index.ts +0 -7
  194. package/ui/components/atoms/vc-card/vc-card-model.ts +0 -17
  195. package/ui/components/atoms/vc-checkbox/index.ts +0 -7
  196. package/ui/components/atoms/vc-checkbox/vc-checkbox-model.ts +0 -15
  197. package/ui/components/atoms/vc-col/index.ts +0 -6
  198. package/ui/components/atoms/vc-col/vc-col-model.ts +0 -9
  199. package/ui/components/atoms/vc-container/index.ts +0 -7
  200. package/ui/components/atoms/vc-container/vc-container-model.ts +0 -12
  201. package/ui/components/atoms/vc-hint/index.ts +0 -2
  202. package/ui/components/atoms/vc-icon/index.ts +0 -7
  203. package/ui/components/atoms/vc-icon/vc-icon-model.ts +0 -10
  204. package/ui/components/atoms/vc-image/index.ts +0 -7
  205. package/ui/components/atoms/vc-image/vc-image-model.ts +0 -27
  206. package/ui/components/atoms/vc-info-row/index.ts +0 -7
  207. package/ui/components/atoms/vc-info-row/vc-info-row-model.ts +0 -12
  208. package/ui/components/atoms/vc-label/index.ts +0 -7
  209. package/ui/components/atoms/vc-label/vc-label-model.ts +0 -11
  210. package/ui/components/atoms/vc-link/index.ts +0 -7
  211. package/ui/components/atoms/vc-link/vc-link-model.ts +0 -11
  212. package/ui/components/atoms/vc-loading/index.ts +0 -7
  213. package/ui/components/atoms/vc-loading/vc-loading-model.ts +0 -9
  214. package/ui/components/atoms/vc-progress/index.ts +0 -7
  215. package/ui/components/atoms/vc-progress/vc-progress-model.ts +0 -10
  216. package/ui/components/atoms/vc-row/index.ts +0 -2
  217. package/ui/components/atoms/vc-row/vc-row-model.ts +0 -5
  218. package/ui/components/atoms/vc-status/index.ts +0 -7
  219. package/ui/components/atoms/vc-status/vc-status-model.ts +0 -17
  220. package/ui/components/atoms/vc-status-icon/index.ts +0 -7
  221. package/ui/components/atoms/vc-status-icon/vc-status-icon-model.ts +0 -9
  222. package/ui/components/atoms/vc-switch/index.ts +0 -7
  223. package/ui/components/atoms/vc-switch/vc-switch-model.ts +0 -14
  224. package/ui/components/atoms/vc-widget/index.ts +0 -7
  225. package/ui/components/atoms/vc-widget/vc-widget-model.ts +0 -13
  226. package/ui/components/molecules/vc-breadcrumbs/index.ts +0 -7
  227. package/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs-model.ts +0 -15
  228. package/ui/components/molecules/vc-editor/index.ts +0 -7
  229. package/ui/components/molecules/vc-editor/vc-editor-model.ts +0 -17
  230. package/ui/components/molecules/vc-file-upload/index.ts +0 -7
  231. package/ui/components/molecules/vc-file-upload/vc-file-upload-model.ts +0 -15
  232. package/ui/components/molecules/vc-form/index.ts +0 -2
  233. package/ui/components/molecules/vc-notification/index.ts +0 -7
  234. package/ui/components/molecules/vc-notification/vc-notification-model.ts +0 -11
  235. package/ui/components/molecules/vc-pagination/index.ts +0 -7
  236. package/ui/components/molecules/vc-pagination/vc-pagination-model.ts +0 -12
  237. package/ui/components/molecules/vc-rating/index.ts +0 -7
  238. package/ui/components/molecules/vc-rating/vc-rating-model.ts +0 -14
  239. package/ui/components/molecules/vc-slider/index.ts +0 -7
  240. package/ui/components/molecules/vc-slider/vc-slider-model.ts +0 -15
  241. package/ui/components/molecules/vc-textarea/index.ts +0 -7
  242. package/ui/components/molecules/vc-textarea/vc-textarea-model.ts +0 -18
  243. package/ui/components/organisms/vc-app/index.ts +0 -6
  244. package/ui/components/organisms/vc-app/vc-app-model.ts +0 -27
  245. package/ui/components/organisms/vc-blade/index.ts +0 -7
  246. package/ui/components/organisms/vc-blade/vc-blade-model.ts +0 -18
  247. package/ui/components/organisms/vc-dynamic-property/index.ts +0 -7
  248. package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property-model.ts +0 -25
  249. package/ui/components/organisms/vc-gallery/index.ts +0 -7
  250. package/ui/components/organisms/vc-gallery/vc-gallery-model.ts +0 -33
  251. package/ui/components/organisms/vc-login-form/index.ts +0 -7
  252. package/ui/components/organisms/vc-login-form/vc-login-form-model.ts +0 -11
  253. package/ui/components/organisms/vc-popup/index.ts +0 -7
  254. package/ui/components/organisms/vc-popup/vc-popup-model.ts +0 -12
  255. package/ui/components/organisms/vc-table/index.ts +0 -7
  256. package/ui/components/organisms/vc-table/vc-table-model.ts +0 -56
@@ -48,15 +48,33 @@ import SwiperCore, { Navigation } from "swiper";
48
48
  import "swiper/swiper-bundle.min.css";
49
49
  import "swiper/swiper.min.css";
50
50
  import "swiper/components/navigation/navigation.min.css";
51
- import { VcSliderProps } from "@/ui/components/molecules/vc-slider/vc-slider-model";
52
51
  SwiperCore.use([Navigation]);
53
52
 
54
- withDefaults(defineProps<VcSliderProps>(), {
55
- slides: () => [],
56
- navigation: false,
57
- overflow: false,
58
- slidesPerView: "auto",
59
- spaceBetweenSlides: 10,
53
+ defineProps({
54
+ slides: {
55
+ type: Array,
56
+ default: () => [],
57
+ },
58
+
59
+ navigation: {
60
+ type: Boolean,
61
+ default: false,
62
+ },
63
+
64
+ overflow: {
65
+ type: Boolean,
66
+ default: false,
67
+ },
68
+
69
+ slidesPerView: {
70
+ type: String,
71
+ default: "auto",
72
+ },
73
+
74
+ spaceBetweenSlides: {
75
+ type: Number,
76
+ default: 10,
77
+ },
60
78
  });
61
79
 
62
80
  const buttonsList = computed(() => ({
@@ -7,7 +7,7 @@
7
7
  }"
8
8
  >
9
9
  <!-- Textarea label -->
10
- <VcLabel v-if="label" class="tw-mb-2" :required="required">
10
+ <VcLabel v-if="label" class="tw-mb-2" :required="isRequired">
11
11
  <span>{{ label }}</span>
12
12
  <template v-if="tooltip" v-slot:tooltip>
13
13
  <span v-html="tooltip"></span>
@@ -37,14 +37,52 @@
37
37
  <script lang="ts" setup>
38
38
  import { watch } from "vue";
39
39
  import { VcLabel } from "@/ui/components";
40
- import { VcTextareaProps } from "@/ui/components/molecules/vc-textarea/vc-textarea-model";
41
-
42
- const props = withDefaults(defineProps<VcTextareaProps>(), {
43
- placeholder: "",
44
- required: false,
45
- disabled: false,
46
- name: "Field",
47
- maxchars: "1024",
40
+
41
+ const props = defineProps({
42
+ placeholder: {
43
+ type: String,
44
+ default: "",
45
+ },
46
+
47
+ modelValue: {
48
+ type: String,
49
+ default: undefined,
50
+ },
51
+
52
+ isRequired: {
53
+ type: Boolean,
54
+ default: false,
55
+ },
56
+
57
+ disabled: {
58
+ type: Boolean,
59
+ default: false,
60
+ },
61
+
62
+ label: {
63
+ type: String,
64
+ default: undefined,
65
+ },
66
+
67
+ tooltip: {
68
+ type: String,
69
+ default: undefined,
70
+ },
71
+
72
+ name: {
73
+ type: String,
74
+ default: "Field",
75
+ },
76
+
77
+ maxchars: {
78
+ type: String,
79
+ default: "1024",
80
+ },
81
+
82
+ errorMessage: {
83
+ type: String,
84
+ default: undefined,
85
+ },
48
86
  });
49
87
 
50
88
  const emit = defineEmits(["update:modelValue"]);
@@ -54,10 +54,9 @@
54
54
 
55
55
  <script lang="ts" setup>
56
56
  import { onMounted, ref, computed } from "vue";
57
- import {IBladeToolbar, IMenuItems} from "@/core/types";
57
+ import {ExtendedComponent, IBladeToolbar, IMenuItems} from "@/core/types";
58
58
  import VcAppMenuLink from "./_internal/vc-app-menu-link.vue";
59
59
  import { NavigationFailure, useRoute } from "vue-router";
60
- import {ExtendedComponent} from "@/shared";
61
60
 
62
61
  export interface Props {
63
62
  sticky?: boolean;
@@ -73,10 +73,35 @@ export default defineComponent({
73
73
  import { useRouter } from "vue-router";
74
74
  import VcAppBar from "./_internal/vc-app-bar/vc-app-bar.vue";
75
75
  import VcAppMenu from "./_internal/vc-app-menu/vc-app-menu.vue";
76
- import { IMenuClickEvent } from "@/shared";
77
- import { VcAppProps } from "@/ui/components/organisms/vc-app/vc-app-model";
76
+ import { IBladeToolbar, IMenuItems } from "@/core/types";
77
+ import {
78
+ IBladeElement,
79
+ ExtendedComponent,
80
+ IMenuClickEvent,
81
+ IOpenBlade,
82
+ } from "@/shared";
83
+
84
+ export interface Props {
85
+ pages: ExtendedComponent[];
86
+ menuItems: IMenuItems[];
87
+ mobileMenuItems: IMenuItems[];
88
+ toolbarItems: IBladeToolbar[];
89
+ isReady: boolean;
90
+ isAuthorized: boolean;
91
+ logo: string;
92
+ version: string;
93
+ theme?: "light" | "dark";
94
+ bladesRefs: IBladeElement[];
95
+ title?: string;
96
+ }
97
+
98
+ export interface Emits {
99
+ (event: "onOpen", args: IOpenBlade): void;
100
+ (event: "onClose", index: number): void;
101
+ (event: "backlink:click", index: number): void;
102
+ }
78
103
 
79
- withDefaults(defineProps<VcAppProps>(), {
104
+ withDefaults(defineProps<Props>(), {
80
105
  pages: () => [],
81
106
  menuItems: () => [],
82
107
  mobileMenuItems: () => [],
@@ -89,7 +114,7 @@ withDefaults(defineProps<VcAppProps>(), {
89
114
  bladesRefs: () => [],
90
115
  });
91
116
 
92
- const emit = defineEmits(["open", "close", "backlink:click"]);
117
+ const emit = defineEmits<Emits>();
93
118
 
94
119
  console.debug("vc-app: Init vc-app");
95
120
 
@@ -102,7 +127,7 @@ const onMenuItemClick = function ({ item, navigationCb }: IMenuClickEvent) {
102
127
  if (item.clickHandler && typeof item.clickHandler === "function") {
103
128
  item.clickHandler(instance?.exposed);
104
129
  } else {
105
- emit("open", { parentBlade: item.component, id: 0, navigationCb });
130
+ emit("onOpen", { parentBlade: item.component, id: 0, navigationCb });
106
131
  }
107
132
  };
108
133
 
@@ -118,7 +143,7 @@ const openDashboard = async () => {
118
143
  console.debug(`openDashboard() called.`);
119
144
 
120
145
  // Close all opened pages with onBeforeClose callback
121
- await emit("close", 0);
146
+ await emit("onClose", 0);
122
147
 
123
148
  router.push("/");
124
149
  };
@@ -2,10 +2,7 @@
2
2
  <div
3
3
  class="tw-shrink-0 tw-h-[var(--blade-header-height)] tw-bg-[color:var(--blade-header-background-color)] tw-flex tw-items-center tw-py-0 tw-px-4 tw-border-solid tw-border-b tw-border-b-[color:#eaedf3]"
4
4
  >
5
- <div
6
- v-if="icon"
7
- class="tw-text-[color:var(--blade-header-icon-color)] tw-mr-3"
8
- >
5
+ <div v-if="icon" class="tw-text-[color:var(--blade-header-icon-color)] tw-mr-3">
9
6
  <VcIcon :icon="icon" size="xxl"></VcIcon>
10
7
  </div>
11
8
 
@@ -31,7 +28,7 @@
31
28
  <slot name="actions"></slot>
32
29
  </div>
33
30
 
34
- <div v-if="!$isMobile.value" class="tw-flex tw-items-center">
31
+ <div v-if="!$isMobile.value" class= "tw-flex tw-items-center">
35
32
  <template v-if="expandable">
36
33
  <div
37
34
  v-if="expanded"
@@ -58,18 +55,36 @@
58
55
  <script lang="ts" setup>
59
56
  import { VcIcon } from "@/ui/components";
60
57
 
61
- export interface Props {
62
- expandable?: boolean | undefined;
63
- expanded?: boolean | undefined;
64
- closable?: boolean | undefined;
65
- title?: string | undefined;
66
- subtitle?: string | undefined;
67
- icon?: string | undefined;
68
- }
69
- const props = withDefaults(defineProps<Props>(), {
70
- expandable: false,
71
- expanded: false,
72
- closable: false,
58
+ const props = defineProps({
59
+ expandable: {
60
+ type: Boolean,
61
+ default: false,
62
+ },
63
+
64
+ expanded: {
65
+ type: Boolean,
66
+ default: false,
67
+ },
68
+
69
+ closable: {
70
+ type: Boolean,
71
+ default: false,
72
+ },
73
+
74
+ title: {
75
+ type: String,
76
+ default: undefined,
77
+ },
78
+
79
+ subtitle: {
80
+ type: String,
81
+ default: undefined,
82
+ },
83
+
84
+ icon: {
85
+ type: String,
86
+ default: undefined,
87
+ },
73
88
  });
74
89
 
75
90
  const emit = defineEmits(["close", "expand", "collapse"]);
@@ -31,7 +31,7 @@
31
31
  </template>
32
32
 
33
33
  <script lang="ts">
34
- import { defineComponent } from "vue";
34
+ import { defineComponent, PropType } from "vue";
35
35
 
36
36
  export default defineComponent({
37
37
  inheritAttrs: false,
@@ -41,16 +41,41 @@ export default defineComponent({
41
41
  <script lang="ts" setup>
42
42
  import VcBladeHeader from "./_internal/vc-blade-header/vc-blade-header.vue";
43
43
  import VcBladeToolbar from "./_internal/vc-blade-toolbar/vc-blade-toolbar.vue";
44
- import { VcBladeProps } from "@/ui/components/organisms/vc-blade/vc-blade-model";
44
+ import { IBladeToolbar } from "@/core/types";
45
45
 
46
- withDefaults(defineProps<VcBladeProps>(), {
47
- width: "30%",
48
- expanded: false,
49
- closable: true,
50
- toolbarItems: () => [],
51
- });
46
+ defineProps({
47
+ icon: {
48
+ type: String,
49
+ },
50
+
51
+ title: {
52
+ type: String,
53
+ },
54
+
55
+ subtitle: {
56
+ type: String,
57
+ },
58
+
59
+ width: {
60
+ type: [Number, String],
61
+ default: "30%",
62
+ },
52
63
 
53
- defineEmits(["close"]);
64
+ expanded: {
65
+ type: Boolean,
66
+ default: false,
67
+ },
68
+
69
+ closable: {
70
+ type: Boolean,
71
+ default: true,
72
+ },
73
+
74
+ toolbarItems: {
75
+ type: Array as PropType<IBladeToolbar[]>,
76
+ default: () => [],
77
+ },
78
+ });
54
79
  </script>
55
80
 
56
81
  <style lang="scss">