@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
@@ -5,8 +5,7 @@
5
5
  `vc-image_${aspect}`,
6
6
  {
7
7
  'tw-rounded-full tw-pb-[var(--image-padding-bottom-1x1)]': rounded,
8
- 'tw-rounded-[3px] tw-border tw-border-solid tw-border-[color:#efefef]':
9
- bordered,
8
+ 'tw-rounded-[3px] tw-border tw-border-solid tw-border-[color:#efefef]': bordered,
10
9
  'tw-cursor-pointer': clickable,
11
10
  },
12
11
  'tw-relative',
@@ -26,15 +25,42 @@
26
25
 
27
26
  <script lang="ts" setup>
28
27
  import { computed } from "vue";
29
- import { VcImageProps } from "@/ui/components/atoms/vc-image/vc-image-model";
30
-
31
- const props = withDefaults(defineProps<VcImageProps>(), {
32
- aspect: "1x1",
33
- rounded: false,
34
- bordered: false,
35
- clickable: false,
36
- size: "auto",
37
- background: "cover",
28
+
29
+ const props = defineProps({
30
+ aspect: {
31
+ type: String,
32
+ default: "1x1",
33
+ },
34
+
35
+ rounded: {
36
+ type: Boolean,
37
+ default: false,
38
+ },
39
+
40
+ bordered: {
41
+ type: Boolean,
42
+ default: false,
43
+ },
44
+
45
+ clickable: {
46
+ type: Boolean,
47
+ default: false,
48
+ },
49
+
50
+ src: {
51
+ type: String,
52
+ default: undefined,
53
+ },
54
+
55
+ size: {
56
+ type: String,
57
+ default: "auto",
58
+ },
59
+
60
+ background: {
61
+ type: String,
62
+ default: "cover",
63
+ },
38
64
  });
39
65
 
40
66
  const emit = defineEmits(["click"]);
@@ -17,12 +17,26 @@
17
17
 
18
18
  <script lang="ts" setup>
19
19
  import { VcLabel, VcRow, VcCol } from "@/ui/components";
20
- import { VcInfoRowProps } from "@/ui/components/atoms/vc-info-row/vc-info-row-model";
21
20
 
22
- withDefaults(defineProps<VcInfoRowProps>(), {
23
- label: "",
24
- value: "",
25
- tooltip: "",
26
- type: "default",
21
+ defineProps({
22
+ label: {
23
+ type: String,
24
+ default: "",
25
+ },
26
+
27
+ value: {
28
+ type: String,
29
+ default: "",
30
+ },
31
+
32
+ tooltip: {
33
+ type: String,
34
+ default: "",
35
+ },
36
+
37
+ type: {
38
+ type: String,
39
+ default: "default",
40
+ },
27
41
  });
28
42
  </script>
@@ -1,9 +1,7 @@
1
1
  <template>
2
- <div class="tw-flex tw-flex-nowrap tw-font-bold">
2
+ <div class= "tw-flex tw-flex-nowrap tw-font-bold">
3
3
  <span><slot></slot></span>
4
- <span
5
- v-if="required"
6
- class="tw-text-[color:var(--label-required-color)] tw-ml-1"
4
+ <span v-if="required" class="tw-text-[color:var(--label-required-color)] tw-ml-1"
7
5
  >*</span
8
6
  >
9
7
  <span v-if="$slots['tooltip']" class="tw-grow tw-basis-0 tw-ml-1">
@@ -27,11 +25,17 @@
27
25
  <script lang="ts" setup>
28
26
  import { VcIcon } from "@/ui/components";
29
27
  import { ref } from "vue";
30
- import { VcLabelProps } from "@/ui/components/atoms/vc-label/vc-label-model";
31
28
 
32
- withDefaults(defineProps<VcLabelProps>(), {
33
- required: false,
34
- tooltipIcon: "fas fa-info-circle",
29
+ defineProps({
30
+ required: {
31
+ type: Boolean,
32
+ default: false,
33
+ },
34
+
35
+ tooltipIcon: {
36
+ type: String,
37
+ default: "fas fa-info-circle",
38
+ },
35
39
  });
36
40
 
37
41
  const tooltipVisible = ref(false);
@@ -13,11 +13,16 @@
13
13
  </template>
14
14
 
15
15
  <script lang="ts" setup>
16
- import { VcLinkProps } from "@/ui/components/atoms/vc-link/vc-link-model";
16
+ const props = defineProps({
17
+ active: {
18
+ type: Boolean,
19
+ default: false,
20
+ },
17
21
 
18
- const props = withDefaults(defineProps<VcLinkProps>(), {
19
- active: false,
20
- disabled: false,
22
+ disabled: {
23
+ type: Boolean,
24
+ default: false,
25
+ },
21
26
  });
22
27
  const emit = defineEmits(["click"]);
23
28
  function onClick(): void {
@@ -24,9 +24,10 @@
24
24
  </template>
25
25
 
26
26
  <script lang="ts" setup>
27
- import { VcLoadingProps } from "@/ui/components/atoms/vc-loading/vc-loading-model";
28
-
29
- withDefaults(defineProps<VcLoadingProps>(), {
30
- active: false,
27
+ defineProps({
28
+ active: {
29
+ type: Boolean,
30
+ default: false,
31
+ },
31
32
  });
32
33
  </script>
@@ -6,18 +6,24 @@
6
6
  ]"
7
7
  >
8
8
  <div
9
- class="vc-progress__value tw-bg-[color:var(--progressbar-foreground-color)] tw-transition tw-duration-200 tw-h-full"
9
+ class="vc-progress__value tw-bg-[color:var(--progressbar-foreground-color)] tw-transition tw-duration-200 tw-h-full"
10
10
  :style="`width: ${value}%`"
11
11
  ></div>
12
12
  </div>
13
13
  </template>
14
14
 
15
15
  <script lang="ts" setup>
16
- import { VcProgressProps } from "@/ui/components/atoms/vc-progress/vc-progress-model";
16
+ defineProps({
17
+ value: {
18
+ type: Number,
19
+ default: 0,
20
+ },
17
21
 
18
- withDefaults(defineProps<VcProgressProps>(), {
19
- value: 0,
20
- variant: "default",
22
+ variant: {
23
+ type: String,
24
+ default: "default",
25
+ enum: ["default", "striped"],
26
+ },
21
27
  });
22
28
  </script>
23
29
 
@@ -12,12 +12,22 @@
12
12
  </template>
13
13
 
14
14
  <script lang="ts" setup>
15
- import { VcStatusProps } from "@/ui/components/atoms/vc-status/vc-status-model";
15
+ defineProps({
16
+ variant: {
17
+ type: String,
18
+ default: "info",
19
+ enum: ["info", "warning", "danger", "success", "light-danger"],
20
+ },
16
21
 
17
- withDefaults(defineProps<VcStatusProps>(), {
18
- variant: "info",
19
- outline: true,
20
- extend: false,
22
+ outline: {
23
+ type: Boolean,
24
+ default: true,
25
+ },
26
+
27
+ extend: {
28
+ type: Boolean,
29
+ default: false,
30
+ },
21
31
  });
22
32
  </script>
23
33
 
@@ -1,25 +1,21 @@
1
1
  <template>
2
2
  <div>
3
3
  <template v-if="status">
4
- <VcIcon
5
- icon="fas fa-check-circle"
6
- class="tw-text-[color:#87b563]"
7
- ></VcIcon>
4
+ <VcIcon icon="fas fa-check-circle" class="tw-text-[color:#87b563]"></VcIcon>
8
5
  </template>
9
6
  <template v-else>
10
- <VcIcon
11
- icon="fas fa-times-circle"
12
- class="tw-text-[color:#bdd1df]"
13
- ></VcIcon>
7
+ <VcIcon icon="fas fa-times-circle" class="tw-text-[color:#bdd1df]"></VcIcon>
14
8
  </template>
15
9
  </div>
16
10
  </template>
17
11
 
18
12
  <script lang="ts" setup>
19
13
  import { VcIcon } from "@/ui/components";
20
- import { VcStatusIconProps } from "@/ui/components/atoms/vc-status-icon/vc-status-icon-model";
21
14
 
22
- withDefaults(defineProps<VcStatusIconProps>(), {
23
- status: false,
15
+ defineProps({
16
+ status: {
17
+ type: Boolean,
18
+ default: false,
19
+ },
24
20
  });
25
21
  </script>
@@ -23,13 +23,31 @@
23
23
  </template>
24
24
 
25
25
  <script lang="ts" setup>
26
- import { VcSwitchProps } from "@/ui/components/atoms/vc-switch/vc-switch-model";
26
+ defineProps({
27
+ modelValue: {
28
+ type: Boolean,
29
+ default: false,
30
+ },
27
31
 
28
- withDefaults(defineProps<VcSwitchProps>(), {
29
- modelValue: false,
30
- disabled: false,
31
- tooltip: "",
32
- required: false,
32
+ disabled: {
33
+ type: Boolean,
34
+ default: false,
35
+ },
36
+
37
+ tooltip: {
38
+ type: String,
39
+ default: "",
40
+ },
41
+
42
+ required: {
43
+ type: Boolean,
44
+ default: false,
45
+ },
46
+
47
+ label: {
48
+ type: String,
49
+ default: undefined,
50
+ },
33
51
  });
34
52
 
35
53
  const emit = defineEmits(["update:modelValue"]);
@@ -16,10 +16,26 @@
16
16
  </template>
17
17
 
18
18
  <script lang="ts" setup>
19
- import { VcWidgetProps } from "@/ui/components/atoms/vc-widget/vc-widget-model";
19
+ const props = defineProps({
20
+ icon: {
21
+ type: String,
22
+ default: undefined,
23
+ },
20
24
 
21
- const props = withDefaults(defineProps<VcWidgetProps>(), {
22
- disabled: false,
25
+ title: {
26
+ type: String,
27
+ default: undefined,
28
+ },
29
+
30
+ value: {
31
+ type: [String, Number],
32
+ default: undefined,
33
+ },
34
+
35
+ disabled: {
36
+ type: Boolean,
37
+ default: false,
38
+ },
23
39
  });
24
40
  const emit = defineEmits(["click"]);
25
41
 
@@ -1,43 +1,43 @@
1
1
  /* Atoms */
2
2
  export { VcBadge } from "./atoms/vc-badge";
3
- export {VcButton } from "./atoms/vc-button";
4
- export { VcCard } from "./atoms/vc-card";
5
- export { VcCheckbox } from "./atoms/vc-checkbox";
6
- export { VcCol } from "./atoms/vc-col";
7
- export { VcContainer } from "./atoms/vc-container";
8
- export { VcHint } from "./atoms/vc-hint";
9
- export { VcIcon } from "./atoms/vc-icon";
10
- export { VcInfoRow } from "./atoms/vc-info-row";
11
- export { VcImage } from "./atoms/vc-image";
12
- export { VcLabel } from "./atoms/vc-label";
13
- export { VcLink } from "./atoms/vc-link";
14
- export { VcLoading } from "./atoms/vc-loading";
15
- export { VcProgress } from "./atoms/vc-progress";
16
- export { VcRow } from "./atoms/vc-row";
17
- export { VcStatus } from "./atoms/vc-status";
18
- export { VcStatusIcon } from "./atoms/vc-status-icon";
19
- export { VcSwitch } from "./atoms/vc-switch";
20
- export { VcWidget } from "./atoms/vc-widget";
3
+ export { default as VcButton } from "./atoms/vc-button/vc-button.vue";
4
+ export { default as VcCard } from "./atoms/vc-card/vc-card.vue";
5
+ export { default as VcCheckbox } from "./atoms/vc-checkbox/vc-checkbox.vue";
6
+ export { default as VcCol } from "./atoms/vc-col/vc-col.vue";
7
+ export { default as VcContainer } from "./atoms/vc-container/vc-container.vue";
8
+ export { default as VcHint } from "./atoms/vc-hint/vc-hint.vue";
9
+ export { default as VcIcon } from "./atoms/vc-icon/vc-icon.vue";
10
+ export { default as VcInfoRow } from "./atoms/vc-info-row/vc-info-row.vue";
11
+ export { default as VcImage } from "./atoms/vc-image/vc-image.vue";
12
+ export { default as VcLabel } from "./atoms/vc-label/vc-label.vue";
13
+ export { default as VcLink } from "./atoms/vc-link/vc-link.vue";
14
+ export { default as VcLoading } from "./atoms/vc-loading/vc-loading.vue";
15
+ export { default as VcProgress } from "./atoms/vc-progress/vc-progress.vue";
16
+ export { default as VcRow } from "./atoms/vc-row/vc-row.vue";
17
+ export { default as VcStatus } from "./atoms/vc-status/vc-status.vue";
18
+ export { default as VcStatusIcon } from "./atoms/vc-status-icon/vc-status-icon.vue";
19
+ export { default as VcSwitch } from "./atoms/vc-switch/vc-switch.vue";
20
+ export { default as VcWidget } from "./atoms/vc-widget/vc-widget.vue";
21
21
 
22
22
  /* Molecules */
23
- export { VcBreadcrumbs } from "./molecules/vc-breadcrumbs";
24
- export { VcEditor } from "./molecules/vc-editor";
25
- export { VcForm } from "./molecules/vc-form";
26
- export { VcFileUpload } from "./molecules/vc-file-upload";
23
+ export { default as VcBreadcrumbs } from "./molecules/vc-breadcrumbs/vc-breadcrumbs.vue";
24
+ export { default as VcEditor } from "./molecules/vc-editor/vc-editor.vue";
25
+ export { default as VcForm } from "./molecules/vc-form/vc-form.vue";
26
+ export { default as VcFileUpload } from "./molecules/vc-file-upload/vc-file-upload.vue";
27
27
  export { VcInput } from "./molecules/vc-input";
28
28
  export { VcInputCurrency } from "./molecules/vc-input-currency";
29
- export { VcNotification } from "./molecules/vc-notification";
30
- export { VcPagination } from "./molecules/vc-pagination";
31
- export { VcRating } from "./molecules/vc-rating";
29
+ export { default as VcNotification } from "./molecules/vc-notification/vc-notification.vue";
30
+ export { default as VcPagination } from "./molecules/vc-pagination/vc-pagination.vue";
31
+ export { default as VcRating } from "./molecules/vc-rating/vc-rating.vue";
32
32
  export { VcSelect } from "./molecules/vc-select";
33
- export { VcSlider } from "./molecules/vc-slider";
34
- export { VcTextarea } from "./molecules/vc-textarea";
33
+ export { default as VcSlider } from "./molecules/vc-slider/vc-slider.vue";
34
+ export { default as VcTextarea } from "./molecules/vc-textarea/vc-textarea.vue";
35
35
 
36
36
  /* Organisms */
37
- export { VcApp } from "./organisms/vc-app";
38
- export { VcBlade } from "./organisms/vc-blade";
39
- export { VcDynamicProperty } from "./organisms/vc-dynamic-property";
40
- export { VcGallery } from "./organisms/vc-gallery";
41
- export { VcLoginForm } from "./organisms/vc-login-form";
42
- export { VcPopup } from "./organisms/vc-popup";
43
- export { VcTable } from "./organisms/vc-table";
37
+ export { default as VcApp } from "./organisms/vc-app/vc-app.vue";
38
+ export { default as VcBlade } from "./organisms/vc-blade/vc-blade.vue";
39
+ export { default as VcDynamicProperty } from "./organisms/vc-dynamic-property/vc-dynamic-property.vue";
40
+ export { default as VcGallery } from "./organisms/vc-gallery/vc-gallery.vue";
41
+ export { default as VcLoginForm } from "./organisms/vc-login-form/vc-login-form.vue";
42
+ export { default as VcPopup } from "./organisms/vc-popup/vc-popup.vue";
43
+ export { default as VcTable } from "./organisms/vc-table/vc-table.vue";
@@ -11,9 +11,18 @@
11
11
 
12
12
  <script lang="ts" setup>
13
13
  import VcBreadcrumbsItem from "./_internal/vc-breadcrumbs-item/vc-breadcrumbs-item.vue";
14
- import { VcBreadcrumbsProps } from "@/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs-model";
15
14
 
16
- withDefaults(defineProps<VcBreadcrumbsProps>(), {
15
+ export interface Props {
16
+ items: {
17
+ current: boolean;
18
+ icon: string;
19
+ title: string;
20
+ clickHandler: () => void;
21
+ id: string;
22
+ }[];
23
+ }
24
+
25
+ withDefaults(defineProps<Props>(), {
17
26
  items: () => [],
18
27
  });
19
28
  </script>
@@ -4,7 +4,7 @@
4
4
  :class="[
5
5
  {
6
6
  'vc-editor_error': errorMessage,
7
- 'vc-editor_disabled': disabled,
7
+ 'vc-editor_disabled': disabled
8
8
  },
9
9
  ]"
10
10
  >
@@ -16,10 +16,11 @@
16
16
 
17
17
  <!-- Editor field -->
18
18
  <v-ace-editor
19
- class="tw-border tw-border-solid tw-border-[color:var(--editor-border-color)] tw-rounded-[var(--editor-border-radius)] tw-h-[200px]"
19
+ class="tw-border tw-border-solid tw-border-[color:var(--editor-border-color)] tw-rounded-[var(--editor-border-radius)]"
20
20
  v-model:value="content"
21
21
  lang="html"
22
22
  theme="chrome"
23
+ style="height: 200px"
23
24
  @input="onInput"
24
25
  />
25
26
  <slot v-if="errorMessage" name="error">
@@ -34,27 +35,63 @@
34
35
  import { VAceEditor } from "vue3-ace-editor";
35
36
  import "ace-builds/src-noconflict/mode-html";
36
37
  import "ace-builds/src-noconflict/theme-chrome";
37
- import { ref, unref, watch } from "vue";
38
- import { VcEditorProps } from "@/ui/components/molecules/vc-editor/vc-editor-model";
39
-
40
- const props = withDefaults(defineProps<VcEditorProps>(), {
41
- placeholder: "",
42
- modelValue: null,
43
- required: false,
44
- name: "Field",
38
+ import {ref, unref, watch} from "vue";
39
+
40
+ const props = defineProps({
41
+ placeholder: {
42
+ type: String,
43
+ default: "",
44
+ },
45
+
46
+ modelValue: {
47
+ type: [String, Number, Date],
48
+ default: null,
49
+ },
50
+
51
+ required: {
52
+ type: Boolean,
53
+ default: false,
54
+ },
55
+
56
+ disabled: {
57
+ type: Boolean,
58
+ default: false,
59
+ },
60
+
61
+ label: {
62
+ type: String,
63
+ default: undefined,
64
+ },
65
+
66
+ tooltip: {
67
+ type: String,
68
+ default: undefined,
69
+ },
70
+
71
+ name: {
72
+ type: String,
73
+ default: "Field",
74
+ },
75
+
76
+ errorMessage: {
77
+ type: String,
78
+ default: undefined
79
+ }
45
80
  });
46
81
 
47
82
  const emit = defineEmits(["update:modelValue"]);
48
83
  const content = ref();
84
+ let initialValue = unref(props.modelValue);
49
85
 
50
86
  watch(
51
- () => props.modelValue,
52
- (value) => {
53
- let init = unref(value);
54
- emit("update:modelValue", init);
55
- }
87
+ () => props.modelValue,
88
+ (value) => {
89
+ let init = unref(value);
90
+ emit("update:modelValue", init);
91
+ }
56
92
  );
57
93
 
94
+ // Handle input event to propertly validate value and emit changes
58
95
  function onInput() {
59
96
  emit("update:modelValue", content.value);
60
97
  }
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="tw-flex tw-flex-col tw-flex-1">
2
+ <div class= "tw-flex tw-flex-col tw-flex-1">
3
3
  <div
4
4
  class="vc-file-upload tw-relative tw-h-[155px] tw-box-border tw-border tw-border-dashed tw-border-[#c8dbea] tw-rounded-[6px] tw-p-2 tw-p-4 tw-flex tw-flex-col tw-items-center tw-justify-center"
5
5
  :class="`vc-file-upload_${variant}`"
@@ -18,9 +18,7 @@
18
18
  size="xxl"
19
19
  ></VcIcon>
20
20
 
21
- <div
22
- class="tw-text-[#9db0be] tw-text-center tw-text-lg tw-leading-lg tw-mt-4"
23
- >
21
+ <div class="tw-text-[#9db0be] tw-text-center tw-text-lg tw-leading-lg tw-mt-4">
24
22
  <span>Drag and drop file here or</span>&nbsp;
25
23
  <br />
26
24
  <VcLink @click="toggleUploader">browse your files</VcLink>
@@ -47,14 +45,37 @@
47
45
  <script lang="ts" setup>
48
46
  import { getCurrentInstance, ref, unref } from "vue";
49
47
  import { useField } from "vee-validate";
50
- import { VcFileUploadProps } from "@/ui/components/molecules/vc-file-upload/vc-file-upload-model";
51
-
52
- const props = withDefaults(defineProps<VcFileUploadProps>(), {
53
- variant: "gallery",
54
- loading: false,
55
- accept: ".jpg, .png, .jpeg",
56
- multiple: false,
57
- name: "Gallery",
48
+
49
+ const props = defineProps({
50
+ variant: {
51
+ type: String,
52
+ enum: ["gallery", "file-upload"],
53
+ default: "gallery",
54
+ },
55
+
56
+ loading: {
57
+ type: Boolean,
58
+ default: false,
59
+ },
60
+
61
+ accept: {
62
+ type: String,
63
+ default: ".jpg, .png, .jpeg",
64
+ },
65
+
66
+ multiple: {
67
+ type: Boolean,
68
+ default: false,
69
+ },
70
+
71
+ rules: {
72
+ type: [String, Object],
73
+ },
74
+
75
+ name: {
76
+ type: String,
77
+ default: "Gallery",
78
+ },
58
79
  });
59
80
 
60
81
  const emit = defineEmits(["upload"]);
@@ -18,10 +18,17 @@
18
18
 
19
19
  <script lang="ts" setup>
20
20
  import { VcIcon } from "@/ui/components";
21
- import { VcNotificationProps } from "@/ui/components/molecules/vc-notification/vc-notification-model";
22
21
 
23
- const props = withDefaults(defineProps<VcNotificationProps>(), {
24
- timeout: 0,
22
+ const props = defineProps({
23
+ variant: {
24
+ type: String,
25
+ default: "info",
26
+ },
27
+
28
+ timeout: {
29
+ type: Number,
30
+ default: 0,
31
+ },
25
32
  });
26
33
 
27
34
  const emit = defineEmits(["dismiss", "expired"]);
@@ -93,12 +93,22 @@
93
93
 
94
94
  <script lang="ts" setup>
95
95
  import { VcIcon } from "@/ui/components";
96
- import { VcPaginationProps } from "@/ui/components/molecules/vc-pagination/vc-pagination-model";
97
96
 
98
- withDefaults(defineProps<VcPaginationProps>(), {
99
- expanded: false,
100
- pages: 1,
101
- currentPage: 1,
97
+ defineProps({
98
+ expanded: {
99
+ type: Boolean,
100
+ default: false,
101
+ },
102
+
103
+ pages: {
104
+ type: Number,
105
+ default: 1,
106
+ },
107
+
108
+ currentPage: {
109
+ type: Number,
110
+ default: 1,
111
+ },
102
112
  });
103
113
 
104
114
  defineEmits(["itemClick"]);
@@ -109,7 +119,7 @@ defineEmits(["itemClick"]);
109
119
  --pagination-item-width: 30px;
110
120
  --pagination-item-height: 30px;
111
121
  --pagination-item-color: #000000;
112
- --pagination-item-color-hover: #000000;
122
+ --pagination-item-color-hover:tw- #000000;
113
123
  --pagination-item-color-current: #ffffff;
114
124
  --pagination-item-color-disabled: #9c9c9c;
115
125
  --pagination-item-background-color: #ffffff;
@@ -42,9 +42,17 @@
42
42
 
43
43
  <script lang="ts" setup>
44
44
  import { VcIcon, VcLabel } from "@/ui/components";
45
- import { VcRatingProps } from "@/ui/components/molecules/vc-rating/vc-rating-model";
46
45
 
47
- withDefaults(defineProps<VcRatingProps>(), { max: 5, variant: "stars" });
46
+ export interface Props {
47
+ label?: string;
48
+ placeholder?: string;
49
+ tooltip?: string;
50
+ rating: number | undefined;
51
+ max?: number;
52
+ variant?: "stars" | "star-and-text" | "text";
53
+ }
54
+
55
+ withDefaults(defineProps<Props>(), { max: 5, variant: "stars" });
48
56
  </script>
49
57
 
50
58
  <style lang="scss">