@vc-shell/framework 1.0.110 → 1.0.111

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (414) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/core/composables/useApiClient/index.ts +1 -1
  3. package/core/composables/useAsync/index.ts +2 -2
  4. package/core/composables/usePermissions/index.ts +7 -18
  5. package/core/composables/useUser/index.ts +13 -11
  6. package/core/directives/loading/index.ts +5 -27
  7. package/core/directives/loading/styles.css +38 -0
  8. package/core/plugins/modularity/index.ts +41 -14
  9. package/core/plugins/permissions/index.ts +3 -3
  10. package/core/types/index.ts +36 -3
  11. package/dist/core/composables/useApiClient/index.d.ts +1 -1
  12. package/dist/core/composables/useApiClient/index.d.ts.map +1 -1
  13. package/dist/core/composables/useAsync/index.d.ts +1 -1
  14. package/dist/core/composables/useAsync/index.d.ts.map +1 -1
  15. package/dist/core/composables/usePermissions/index.d.ts +1 -2
  16. package/dist/core/composables/usePermissions/index.d.ts.map +1 -1
  17. package/dist/core/composables/useUser/index.d.ts +1 -0
  18. package/dist/core/composables/useUser/index.d.ts.map +1 -1
  19. package/dist/core/directives/loading/index.d.ts +3 -2
  20. package/dist/core/directives/loading/index.d.ts.map +1 -1
  21. package/dist/core/plugins/modularity/index.d.ts +13 -4
  22. package/dist/core/plugins/modularity/index.d.ts.map +1 -1
  23. package/dist/core/types/index.d.ts +41 -2
  24. package/dist/core/types/index.d.ts.map +1 -1
  25. package/dist/framework.mjs +25286 -23535
  26. package/dist/index.css +1 -1
  27. package/dist/index.d.ts +1 -2
  28. package/dist/index.d.ts.map +1 -1
  29. package/dist/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue.d.ts +14 -23
  30. package/dist/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue.d.ts.map +1 -1
  31. package/dist/shared/components/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue.d.ts +28 -25
  32. package/dist/shared/components/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue.d.ts.map +1 -1
  33. package/dist/shared/components/blade-navigation/composables/useBladeNavigation/index.d.ts.map +1 -1
  34. package/dist/shared/components/blade-navigation/types/index.d.ts +5 -2
  35. package/dist/shared/components/blade-navigation/types/index.d.ts.map +1 -1
  36. package/dist/shared/components/change-password/change-password.vue.d.ts.map +1 -1
  37. package/dist/shared/components/error-interceptor/index.d.ts +3 -3
  38. package/dist/shared/components/language-selector/language-selector.vue.d.ts +41 -26
  39. package/dist/shared/components/language-selector/language-selector.vue.d.ts.map +1 -1
  40. package/dist/shared/components/notifications/components/notification-container/index.d.ts +12 -12
  41. package/dist/shared/components/notifications/components/notification-container/index.d.ts.map +1 -1
  42. package/dist/shared/components/notifications/composables/useContainer/index.d.ts.map +1 -1
  43. package/dist/shared/components/popup-handler/components/vc-popup-container/vc-popup-container.vue.d.ts.map +1 -1
  44. package/dist/shared/components/popup-handler/composables/usePopup/index.d.ts.map +1 -1
  45. package/dist/shared/components/user-dropdown-button/index.d.ts +11 -11
  46. package/dist/shared/components/user-dropdown-button/user-dropdown-button.vue.d.ts +35 -22
  47. package/dist/shared/components/user-dropdown-button/user-dropdown-button.vue.d.ts.map +1 -1
  48. package/dist/shared/modules/assets/components/assets-details/assets-details.vue.d.ts +39 -28
  49. package/dist/shared/modules/assets/components/assets-details/assets-details.vue.d.ts.map +1 -1
  50. package/dist/shared/modules/assets/components/assets-details/index.d.ts +13 -13
  51. package/dist/shared/modules/assets/index.d.ts +3 -1
  52. package/dist/shared/modules/assets/index.d.ts.map +1 -1
  53. package/dist/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts +42 -29
  54. package/dist/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts.map +1 -1
  55. package/dist/shared/modules/assets-manager/components/assets-manager/index.d.ts +9 -9
  56. package/dist/shared/modules/assets-manager/index.d.ts +3 -1
  57. package/dist/shared/modules/assets-manager/index.d.ts.map +1 -1
  58. package/dist/shared/modules/dynamic/components/FIELD_MAP.d.ts +2204 -0
  59. package/dist/shared/modules/dynamic/components/FIELD_MAP.d.ts.map +1 -0
  60. package/dist/shared/modules/dynamic/components/SchemaRender.d.ts +220 -0
  61. package/dist/shared/modules/dynamic/components/SchemaRender.d.ts.map +1 -0
  62. package/dist/shared/modules/dynamic/components/factories.d.ts +15 -0
  63. package/dist/shared/modules/dynamic/components/factories.d.ts.map +1 -0
  64. package/dist/shared/modules/dynamic/components/fields/Button.d.ts +131 -0
  65. package/dist/shared/modules/dynamic/components/fields/Button.d.ts.map +1 -0
  66. package/dist/shared/modules/dynamic/components/fields/Card.d.ts +131 -0
  67. package/dist/shared/modules/dynamic/components/fields/Card.d.ts.map +1 -0
  68. package/dist/shared/modules/dynamic/components/fields/Checkbox.d.ts +131 -0
  69. package/dist/shared/modules/dynamic/components/fields/Checkbox.d.ts.map +1 -0
  70. package/dist/shared/modules/dynamic/components/fields/DynamicProperty.d.ts +130 -0
  71. package/dist/shared/modules/dynamic/components/fields/DynamicProperty.d.ts.map +1 -0
  72. package/dist/shared/modules/dynamic/components/fields/EditorField.d.ts +128 -0
  73. package/dist/shared/modules/dynamic/components/fields/EditorField.d.ts.map +1 -0
  74. package/dist/shared/modules/dynamic/components/fields/Fieldset.d.ts +131 -0
  75. package/dist/shared/modules/dynamic/components/fields/Fieldset.d.ts.map +1 -0
  76. package/dist/shared/modules/dynamic/components/fields/GalleryField.d.ts +132 -0
  77. package/dist/shared/modules/dynamic/components/fields/GalleryField.d.ts.map +1 -0
  78. package/dist/shared/modules/dynamic/components/fields/InputCurrency.d.ts +131 -0
  79. package/dist/shared/modules/dynamic/components/fields/InputCurrency.d.ts.map +1 -0
  80. package/dist/shared/modules/dynamic/components/fields/InputField.d.ts +131 -0
  81. package/dist/shared/modules/dynamic/components/fields/InputField.d.ts.map +1 -0
  82. package/dist/shared/modules/dynamic/components/fields/SelectField.d.ts +131 -0
  83. package/dist/shared/modules/dynamic/components/fields/SelectField.d.ts.map +1 -0
  84. package/dist/shared/modules/dynamic/components/fields/StatusField.d.ts +131 -0
  85. package/dist/shared/modules/dynamic/components/fields/StatusField.d.ts.map +1 -0
  86. package/dist/shared/modules/dynamic/components/fields/ValidationField.d.ts +13 -0
  87. package/dist/shared/modules/dynamic/components/fields/ValidationField.d.ts.map +1 -0
  88. package/dist/shared/modules/dynamic/components/fields/props.d.ts +124 -0
  89. package/dist/shared/modules/dynamic/components/fields/props.d.ts.map +1 -0
  90. package/dist/shared/modules/dynamic/components/index.d.ts +4 -0
  91. package/dist/shared/modules/dynamic/components/index.d.ts.map +1 -0
  92. package/dist/shared/modules/dynamic/composables/index.d.ts +2 -0
  93. package/dist/shared/modules/dynamic/composables/index.d.ts.map +1 -0
  94. package/dist/shared/modules/dynamic/composables/useFilterBuilder/index.d.ts +35 -0
  95. package/dist/shared/modules/dynamic/composables/useFilterBuilder/index.d.ts.map +1 -0
  96. package/dist/shared/modules/dynamic/factories/base/useDetailsFactory.d.ts +8 -0
  97. package/dist/shared/modules/dynamic/factories/base/useDetailsFactory.d.ts.map +1 -0
  98. package/dist/shared/modules/dynamic/factories/base/useListFactory.d.ts +22 -0
  99. package/dist/shared/modules/dynamic/factories/base/useListFactory.d.ts.map +1 -0
  100. package/dist/shared/modules/dynamic/factories/index.d.ts +4 -0
  101. package/dist/shared/modules/dynamic/factories/index.d.ts.map +1 -0
  102. package/dist/shared/modules/dynamic/factories/types/index.d.ts +101 -0
  103. package/dist/shared/modules/dynamic/factories/types/index.d.ts.map +1 -0
  104. package/dist/shared/modules/dynamic/helpers/getters.d.ts +2 -0
  105. package/dist/shared/modules/dynamic/helpers/getters.d.ts.map +1 -0
  106. package/dist/shared/modules/dynamic/helpers/nodeBuilder.d.ts +13 -0
  107. package/dist/shared/modules/dynamic/helpers/nodeBuilder.d.ts.map +1 -0
  108. package/dist/shared/modules/dynamic/helpers/override.d.ts +7 -0
  109. package/dist/shared/modules/dynamic/helpers/override.d.ts.map +1 -0
  110. package/dist/shared/modules/dynamic/helpers/setters.d.ts +8 -0
  111. package/dist/shared/modules/dynamic/helpers/setters.d.ts.map +1 -0
  112. package/dist/shared/modules/dynamic/helpers/toolbarReducer.d.ts +11 -0
  113. package/dist/shared/modules/dynamic/helpers/toolbarReducer.d.ts.map +1 -0
  114. package/dist/shared/modules/dynamic/helpers/unrefNested.d.ts +2 -0
  115. package/dist/shared/modules/dynamic/helpers/unrefNested.d.ts.map +1 -0
  116. package/dist/shared/modules/dynamic/helpers/unwrapInterpolation.d.ts +3 -0
  117. package/dist/shared/modules/dynamic/helpers/unwrapInterpolation.d.ts.map +1 -0
  118. package/dist/shared/modules/dynamic/index.d.ts +32 -0
  119. package/dist/shared/modules/dynamic/index.d.ts.map +1 -0
  120. package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts +68 -0
  121. package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts.map +1 -0
  122. package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts +79 -0
  123. package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts.map +1 -0
  124. package/dist/shared/modules/dynamic/pages/index.d.ts +4 -0
  125. package/dist/shared/modules/dynamic/pages/index.d.ts.map +1 -0
  126. package/dist/shared/modules/dynamic/types/index.d.ts +250 -0
  127. package/dist/shared/modules/dynamic/types/index.d.ts.map +1 -0
  128. package/dist/shared/modules/dynamic/types/models.d.ts +93 -0
  129. package/dist/shared/modules/dynamic/types/models.d.ts.map +1 -0
  130. package/dist/shared/modules/index.d.ts +1 -0
  131. package/dist/shared/modules/index.d.ts.map +1 -1
  132. package/dist/shared/pages/InvitePage/components/invite/Invite.vue.d.ts.map +1 -1
  133. package/dist/shared/pages/InvitePage/index.d.ts +0 -3
  134. package/dist/shared/pages/InvitePage/index.d.ts.map +1 -1
  135. package/dist/shared/pages/InvitePage/plugin.d.ts +4 -0
  136. package/dist/shared/pages/InvitePage/plugin.d.ts.map +1 -0
  137. package/dist/shared/pages/LoginPage/components/login/Login.vue.d.ts +45 -9
  138. package/dist/shared/pages/LoginPage/components/login/Login.vue.d.ts.map +1 -1
  139. package/dist/shared/pages/LoginPage/components/login/index.d.ts +14 -0
  140. package/dist/shared/pages/LoginPage/components/login/index.d.ts.map +1 -1
  141. package/dist/shared/pages/LoginPage/index.d.ts +0 -1
  142. package/dist/shared/pages/LoginPage/index.d.ts.map +1 -1
  143. package/dist/shared/pages/LoginPage/plugin.d.ts +1 -3
  144. package/dist/shared/pages/LoginPage/plugin.d.ts.map +1 -1
  145. package/dist/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue.d.ts.map +1 -1
  146. package/dist/shared/pages/ResetPasswordPage/index.d.ts +0 -3
  147. package/dist/shared/pages/ResetPasswordPage/index.d.ts.map +1 -1
  148. package/dist/shared/pages/ResetPasswordPage/plugin.d.ts +4 -0
  149. package/dist/shared/pages/ResetPasswordPage/plugin.d.ts.map +1 -0
  150. package/dist/shared/pages/index.d.ts +0 -6
  151. package/dist/shared/pages/index.d.ts.map +1 -1
  152. package/dist/shared/pages/plugin.d.ts +4 -0
  153. package/dist/shared/pages/plugin.d.ts.map +1 -0
  154. package/dist/tsconfig.tsbuildinfo +1 -1
  155. package/dist/ui/components/atoms/vc-badge/index.d.ts +4 -4
  156. package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts +22 -11
  157. package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts.map +1 -1
  158. package/dist/ui/components/atoms/vc-button/index.d.ts +1 -208
  159. package/dist/ui/components/atoms/vc-button/index.d.ts.map +1 -1
  160. package/dist/ui/components/atoms/vc-button/vc-button.vue.d.ts +75 -27
  161. package/dist/ui/components/atoms/vc-button/vc-button.vue.d.ts.map +1 -1
  162. package/dist/ui/components/atoms/vc-card/index.d.ts +32 -38
  163. package/dist/ui/components/atoms/vc-card/index.d.ts.map +1 -1
  164. package/dist/ui/components/atoms/vc-card/vc-card.vue.d.ts +46 -27
  165. package/dist/ui/components/atoms/vc-card/vc-card.vue.d.ts.map +1 -1
  166. package/dist/ui/components/atoms/vc-checkbox/index.d.ts +72 -38
  167. package/dist/ui/components/atoms/vc-checkbox/index.d.ts.map +1 -1
  168. package/dist/ui/components/atoms/vc-checkbox/vc-checkbox.vue.d.ts +69 -28
  169. package/dist/ui/components/atoms/vc-checkbox/vc-checkbox.vue.d.ts.map +1 -1
  170. package/dist/ui/components/atoms/vc-col/index.d.ts +1 -1
  171. package/dist/ui/components/atoms/vc-col/vc-col.vue.d.ts +11 -22
  172. package/dist/ui/components/atoms/vc-col/vc-col.vue.d.ts.map +1 -1
  173. package/dist/ui/components/atoms/vc-container/index.d.ts +5 -5
  174. package/dist/ui/components/atoms/vc-container/vc-container.vue.d.ts +22 -11
  175. package/dist/ui/components/atoms/vc-container/vc-container.vue.d.ts.map +1 -1
  176. package/dist/ui/components/atoms/vc-hint/index.d.ts +1 -1
  177. package/dist/ui/components/atoms/vc-hint/vc-hint.vue.d.ts.map +1 -1
  178. package/dist/ui/components/atoms/vc-icon/index.d.ts +13 -7
  179. package/dist/ui/components/atoms/vc-icon/index.d.ts.map +1 -1
  180. package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts +27 -25
  181. package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts.map +1 -1
  182. package/dist/ui/components/atoms/vc-image/index.d.ts +16 -16
  183. package/dist/ui/components/atoms/vc-image/vc-image.vue.d.ts +54 -29
  184. package/dist/ui/components/atoms/vc-image/vc-image.vue.d.ts.map +1 -1
  185. package/dist/ui/components/atoms/vc-info-row/index.d.ts +9 -9
  186. package/dist/ui/components/atoms/vc-info-row/vc-info-row.vue.d.ts +30 -23
  187. package/dist/ui/components/atoms/vc-info-row/vc-info-row.vue.d.ts.map +1 -1
  188. package/dist/ui/components/atoms/vc-label/index.d.ts +33 -39
  189. package/dist/ui/components/atoms/vc-label/index.d.ts.map +1 -1
  190. package/dist/ui/components/atoms/vc-label/vc-label.vue.d.ts +33 -26
  191. package/dist/ui/components/atoms/vc-label/vc-label.vue.d.ts.map +1 -1
  192. package/dist/ui/components/atoms/vc-link/index.d.ts +4 -4
  193. package/dist/ui/components/atoms/vc-link/vc-link.vue.d.ts +22 -11
  194. package/dist/ui/components/atoms/vc-link/vc-link.vue.d.ts.map +1 -1
  195. package/dist/ui/components/atoms/vc-loading/vc-loading.vue.d.ts +9 -10
  196. package/dist/ui/components/atoms/vc-loading/vc-loading.vue.d.ts.map +1 -1
  197. package/dist/ui/components/atoms/vc-progress/index.d.ts +1 -1
  198. package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts +19 -24
  199. package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts.map +1 -1
  200. package/dist/ui/components/atoms/vc-row/index.d.ts +1 -1
  201. package/dist/ui/components/atoms/vc-row/vc-row.vue.d.ts.map +1 -1
  202. package/dist/ui/components/atoms/vc-status/index.d.ts +1 -142
  203. package/dist/ui/components/atoms/vc-status/index.d.ts.map +1 -1
  204. package/dist/ui/components/atoms/vc-status/vc-status.vue.d.ts +29 -28
  205. package/dist/ui/components/atoms/vc-status/vc-status.vue.d.ts.map +1 -1
  206. package/dist/ui/components/atoms/vc-status-icon/vc-status-icon.vue.d.ts +9 -10
  207. package/dist/ui/components/atoms/vc-status-icon/vc-status-icon.vue.d.ts.map +1 -1
  208. package/dist/ui/components/atoms/vc-switch/vc-switch.vue.d.ts +36 -11
  209. package/dist/ui/components/atoms/vc-switch/vc-switch.vue.d.ts.map +1 -1
  210. package/dist/ui/components/atoms/vc-video/index.d.ts +13 -13
  211. package/dist/ui/components/atoms/vc-video/vc-video.vue.d.ts +49 -24
  212. package/dist/ui/components/atoms/vc-video/vc-video.vue.d.ts.map +1 -1
  213. package/dist/ui/components/atoms/vc-widget/vc-widget.vue.d.ts +28 -11
  214. package/dist/ui/components/atoms/vc-widget/vc-widget.vue.d.ts.map +1 -1
  215. package/dist/ui/components/molecules/vc-breadcrumbs/_internal/vc-breadcrumbs-item/vc-breadcrumbs-item.vue.d.ts +5 -3
  216. package/dist/ui/components/molecules/vc-breadcrumbs/_internal/vc-breadcrumbs-item/vc-breadcrumbs-item.vue.d.ts.map +1 -1
  217. package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue.d.ts +23 -22
  218. package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue.d.ts.map +1 -1
  219. package/dist/ui/components/molecules/vc-code-editor/index.d.ts +28 -28
  220. package/dist/ui/components/molecules/vc-code-editor/vc-code-editor.vue.d.ts +48 -23
  221. package/dist/ui/components/molecules/vc-code-editor/vc-code-editor.vue.d.ts.map +1 -1
  222. package/dist/ui/components/molecules/vc-editor/index.d.ts +1 -226
  223. package/dist/ui/components/molecules/vc-editor/index.d.ts.map +1 -1
  224. package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts +74 -28
  225. package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts.map +1 -1
  226. package/dist/ui/components/molecules/vc-file-upload/index.d.ts +23 -23
  227. package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts +46 -27
  228. package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts.map +1 -1
  229. package/dist/ui/components/molecules/vc-form/index.d.ts +1 -1
  230. package/dist/ui/components/molecules/vc-form/vc-form.vue.d.ts.map +1 -1
  231. package/dist/ui/components/molecules/vc-input/index.d.ts +1 -390
  232. package/dist/ui/components/molecules/vc-input/index.d.ts.map +1 -1
  233. package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts +181 -41
  234. package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts.map +1 -1
  235. package/dist/ui/components/molecules/vc-input-currency/index.d.ts +90 -90
  236. package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts +143 -30
  237. package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts.map +1 -1
  238. package/dist/ui/components/molecules/vc-multivalue/index.d.ts +74 -10
  239. package/dist/ui/components/molecules/vc-multivalue/index.d.ts.map +1 -1
  240. package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts +74 -10
  241. package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts.map +1 -1
  242. package/dist/ui/components/molecules/vc-notification/vc-notification.vue.d.ts +51 -10
  243. package/dist/ui/components/molecules/vc-notification/vc-notification.vue.d.ts.map +1 -1
  244. package/dist/ui/components/molecules/vc-pagination/index.d.ts +6 -6
  245. package/dist/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts +26 -25
  246. package/dist/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts.map +1 -1
  247. package/dist/ui/components/molecules/vc-rating/index.d.ts +19 -19
  248. package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts +46 -25
  249. package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts.map +1 -1
  250. package/dist/ui/components/molecules/vc-select/index.d.ts +65 -103
  251. package/dist/ui/components/molecules/vc-select/index.d.ts.map +1 -1
  252. package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts +65 -479
  253. package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts.map +1 -1
  254. package/dist/ui/components/molecules/vc-slider/index.d.ts +21 -21
  255. package/dist/ui/components/molecules/vc-slider/vc-slider.vue.d.ts +39 -26
  256. package/dist/ui/components/molecules/vc-slider/vc-slider.vue.d.ts.map +1 -1
  257. package/dist/ui/components/molecules/vc-textarea/index.d.ts +40 -40
  258. package/dist/ui/components/molecules/vc-textarea/vc-textarea.vue.d.ts +74 -25
  259. package/dist/ui/components/molecules/vc-textarea/vc-textarea.vue.d.ts.map +1 -1
  260. package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue.d.ts +35 -12
  261. package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue.d.ts.map +1 -1
  262. package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue.d.ts +40 -23
  263. package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue.d.ts.map +1 -1
  264. package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue.d.ts +47 -28
  265. package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue.d.ts.map +1 -1
  266. package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/vc-app-menu.vue.d.ts +31 -28
  267. package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/vc-app-menu.vue.d.ts.map +1 -1
  268. package/dist/ui/components/organisms/vc-app/index.d.ts +67 -67
  269. package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts +86 -37
  270. package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts.map +1 -1
  271. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-header/vc-blade-header.vue.d.ts +44 -11
  272. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-header/vc-blade-header.vue.d.ts.map +1 -1
  273. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue.d.ts +61 -34
  274. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue.d.ts.map +1 -1
  275. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/vc-blade-toolbar.vue.d.ts +13 -22
  276. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/vc-blade-toolbar.vue.d.ts.map +1 -1
  277. package/dist/ui/components/organisms/vc-blade/index.d.ts +39 -39
  278. package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts +62 -31
  279. package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts.map +1 -1
  280. package/dist/ui/components/organisms/vc-dynamic-property/index.d.ts +1 -140
  281. package/dist/ui/components/organisms/vc-dynamic-property/index.d.ts.map +1 -1
  282. package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts +64 -75
  283. package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts.map +1 -1
  284. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts +58 -35
  285. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts.map +1 -1
  286. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts +22 -25
  287. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts.map +1 -1
  288. package/dist/ui/components/organisms/vc-gallery/index.d.ts +37 -31
  289. package/dist/ui/components/organisms/vc-gallery/index.d.ts.map +1 -1
  290. package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts +130 -46
  291. package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts.map +1 -1
  292. package/dist/ui/components/organisms/vc-login-form/index.d.ts +9 -9
  293. package/dist/ui/components/organisms/vc-login-form/vc-login-form.vue.d.ts +23 -22
  294. package/dist/ui/components/organisms/vc-login-form/vc-login-form.vue.d.ts.map +1 -1
  295. package/dist/ui/components/organisms/vc-notification-dropdown/_internal/notification/notification.vue.d.ts +28 -22
  296. package/dist/ui/components/organisms/vc-notification-dropdown/_internal/notification/notification.vue.d.ts.map +1 -1
  297. package/dist/ui/components/organisms/vc-notification-dropdown/index.d.ts +0 -6
  298. package/dist/ui/components/organisms/vc-notification-dropdown/index.d.ts.map +1 -1
  299. package/dist/ui/components/organisms/vc-notification-dropdown/vc-notification-dropdown.vue.d.ts +36 -10
  300. package/dist/ui/components/organisms/vc-notification-dropdown/vc-notification-dropdown.vue.d.ts.map +1 -1
  301. package/dist/ui/components/organisms/vc-notification-template/index.d.ts +4 -4
  302. package/dist/ui/components/organisms/vc-notification-template/vc-notification-template.vue.d.ts +27 -10
  303. package/dist/ui/components/organisms/vc-notification-template/vc-notification-template.vue.d.ts.map +1 -1
  304. package/dist/ui/components/organisms/vc-popup/_internal/vc-popup-error/vc-popup-error.vue.d.ts.map +1 -1
  305. package/dist/ui/components/organisms/vc-popup/_internal/vc-popup-warning/vc-popup-warning.vue.d.ts.map +1 -1
  306. package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts +38 -31
  307. package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts.map +1 -1
  308. package/dist/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue.d.ts +18 -9
  309. package/dist/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue.d.ts.map +1 -1
  310. package/dist/ui/components/organisms/vc-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue.d.ts +12 -19
  311. package/dist/ui/components/organisms/vc-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue.d.ts.map +1 -1
  312. package/dist/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts +23 -24
  313. package/dist/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts.map +1 -1
  314. package/dist/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue.d.ts +29 -26
  315. package/dist/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue.d.ts.map +1 -1
  316. package/dist/ui/components/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue.d.ts +14 -14
  317. package/dist/ui/components/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue.d.ts.map +1 -1
  318. package/dist/ui/components/organisms/vc-table/index.d.ts +1 -214
  319. package/dist/ui/components/organisms/vc-table/index.d.ts.map +1 -1
  320. package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts +90 -105
  321. package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts.map +1 -1
  322. package/package.json +8 -8
  323. package/shared/components/app-switcher/composables/useAppSwitcher/index.ts +2 -2
  324. package/shared/components/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue +16 -14
  325. package/shared/components/blade-navigation/composables/useBladeNavigation/index.ts +37 -30
  326. package/shared/components/blade-navigation/types/index.ts +7 -3
  327. package/shared/components/notifications/composables/useContainer/index.ts +2 -5
  328. package/shared/components/popup-handler/composables/usePopup/index.ts +0 -2
  329. package/shared/modules/assets/components/assets-details/assets-details.vue +6 -6
  330. package/shared/modules/assets/index.ts +2 -2
  331. package/shared/modules/assets-manager/components/assets-manager/assets-manager.vue +3 -3
  332. package/shared/modules/assets-manager/index.ts +2 -2
  333. package/shared/modules/dynamic/components/FIELD_MAP.ts +27 -0
  334. package/shared/modules/dynamic/components/SchemaRender.ts +81 -0
  335. package/shared/modules/dynamic/components/factories.ts +159 -0
  336. package/shared/modules/dynamic/components/fields/Button.ts +31 -0
  337. package/shared/modules/dynamic/components/fields/Card.ts +86 -0
  338. package/shared/modules/dynamic/components/fields/Checkbox.ts +44 -0
  339. package/shared/modules/dynamic/components/fields/DynamicProperty.ts +99 -0
  340. package/shared/modules/dynamic/components/fields/EditorField.ts +43 -0
  341. package/shared/modules/dynamic/components/fields/Fieldset.ts +77 -0
  342. package/shared/modules/dynamic/components/fields/GalleryField.ts +121 -0
  343. package/shared/modules/dynamic/components/fields/InputCurrency.ts +49 -0
  344. package/shared/modules/dynamic/components/fields/InputField.ts +42 -0
  345. package/shared/modules/dynamic/components/fields/SelectField.ts +55 -0
  346. package/shared/modules/dynamic/components/fields/StatusField.ts +55 -0
  347. package/shared/modules/dynamic/components/fields/ValidationField.ts +53 -0
  348. package/shared/modules/dynamic/components/fields/props.ts +52 -0
  349. package/shared/modules/dynamic/components/index.ts +4 -0
  350. package/shared/modules/dynamic/composables/index.ts +1 -0
  351. package/shared/modules/dynamic/composables/useFilterBuilder/index.ts +235 -0
  352. package/shared/modules/dynamic/factories/base/useDetailsFactory.ts +83 -0
  353. package/shared/modules/dynamic/factories/base/useListFactory.ts +68 -0
  354. package/shared/modules/dynamic/factories/index.ts +4 -0
  355. package/shared/modules/dynamic/factories/types/index.ts +103 -0
  356. package/shared/modules/dynamic/helpers/getters.ts +10 -0
  357. package/shared/modules/dynamic/helpers/nodeBuilder.ts +112 -0
  358. package/shared/modules/dynamic/helpers/override.ts +70 -0
  359. package/shared/modules/dynamic/helpers/setters.ts +15 -0
  360. package/shared/modules/dynamic/helpers/toolbarReducer.ts +41 -0
  361. package/shared/modules/dynamic/helpers/unrefNested.ts +14 -0
  362. package/shared/modules/dynamic/helpers/unwrapInterpolation.ts +15 -0
  363. package/shared/modules/dynamic/index.ts +163 -0
  364. package/shared/modules/dynamic/pages/dynamic-blade-form.vue +292 -0
  365. package/shared/modules/dynamic/pages/dynamic-blade-list.vue +437 -0
  366. package/shared/modules/dynamic/pages/index.ts +4 -0
  367. package/shared/modules/dynamic/types/index.ts +287 -0
  368. package/shared/modules/dynamic/types/models.ts +140 -0
  369. package/shared/modules/index.ts +1 -0
  370. package/shared/pages/InvitePage/index.ts +0 -6
  371. package/shared/pages/InvitePage/plugin.ts +5 -0
  372. package/shared/pages/LoginPage/components/login/Login.vue +5 -6
  373. package/shared/pages/LoginPage/index.ts +0 -1
  374. package/shared/pages/LoginPage/plugin.ts +1 -13
  375. package/shared/pages/ResetPasswordPage/index.ts +0 -6
  376. package/shared/pages/ResetPasswordPage/plugin.ts +5 -0
  377. package/shared/pages/index.ts +0 -9
  378. package/shared/pages/plugin.ts +3 -0
  379. package/ui/components/atoms/vc-button/index.ts +1 -10
  380. package/ui/components/atoms/vc-button/vc-button.vue +8 -2
  381. package/ui/components/atoms/vc-card/index.ts +1 -9
  382. package/ui/components/atoms/vc-card/vc-card.vue +6 -1
  383. package/ui/components/atoms/vc-checkbox/index.ts +1 -9
  384. package/ui/components/atoms/vc-checkbox/vc-checkbox.vue +32 -10
  385. package/ui/components/atoms/vc-icon/vc-icon.vue +13 -1
  386. package/ui/components/atoms/vc-label/index.ts +1 -9
  387. package/ui/components/atoms/vc-label/vc-label.vue +5 -0
  388. package/ui/components/atoms/vc-status/index.ts +1 -10
  389. package/ui/components/atoms/vc-status/vc-status.vue +5 -1
  390. package/ui/components/atoms/vc-video/vc-video.vue +2 -2
  391. package/ui/components/atoms/vc-widget/vc-widget.vue +1 -1
  392. package/ui/components/molecules/vc-editor/index.ts +1 -10
  393. package/ui/components/molecules/vc-editor/vc-editor.vue +16 -0
  394. package/ui/components/molecules/vc-file-upload/vc-file-upload.vue +4 -4
  395. package/ui/components/molecules/vc-input/index.ts +1 -60
  396. package/ui/components/molecules/vc-input/vc-input.vue +112 -37
  397. package/ui/components/molecules/vc-input-currency/vc-input-currency.stories.ts +1 -1
  398. package/ui/components/molecules/vc-input-currency/vc-input-currency.vue +21 -17
  399. package/ui/components/molecules/vc-select/index.ts +1 -1
  400. package/ui/components/molecules/vc-select/vc-select.stories.ts +1 -1
  401. package/ui/components/molecules/vc-select/vc-select.vue +11 -37
  402. package/ui/components/organisms/vc-dynamic-property/index.ts +1 -3
  403. package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue +199 -257
  404. package/ui/components/organisms/vc-gallery/vc-gallery.vue +9 -7
  405. package/ui/components/organisms/vc-notification-dropdown/_internal/notification/notification.vue +10 -1
  406. package/ui/components/organisms/vc-notification-dropdown/vc-notification-dropdown.vue +1 -10
  407. package/ui/components/organisms/vc-table/index.ts +1 -3
  408. package/ui/components/organisms/vc-table/vc-table.stories.ts +3 -3
  409. package/ui/components/organisms/vc-table/vc-table.vue +29 -16
  410. package/core/api/catalog.ts +0 -8527
  411. package/dist/core/api/catalog.d.ts +0 -2522
  412. package/dist/core/api/catalog.d.ts.map +0 -1
  413. package/dist/typings/index.d.ts +0 -8
  414. package/dist/typings/index.d.ts.map +0 -1
@@ -1,262 +1,197 @@
1
1
  <template>
2
2
  <Field
3
- v-if="computedProperty.dictionary && !computedProperty.multivalue"
4
3
  v-slot="{ errorMessage, errors }"
4
+ :key="computedProperty.key"
5
5
  :label="computedProperty.displayName"
6
6
  :name="computedProperty.name"
7
7
  :model-value="value"
8
8
  :rules="computedProperty.rules"
9
9
  >
10
- <VcSelect
11
- v-bind="$attrs"
12
- v-model="value"
13
- :error="!!errors.length"
14
- :error-message="errorMessage"
15
- :label="computedProperty.displayName"
16
- :required="computedProperty.required"
17
- :placeholder="computedProperty.placeholder"
18
- :options="items"
19
- :option-value="computedProperty.optionValue"
20
- :option-label="computedProperty.optionLabel"
21
- :disabled="disabled"
22
- searchable
23
- :multilanguage="multilanguage"
24
- :current-language="currentLanguage"
25
- @search="onSearch"
26
- @close="onClose"
27
- ></VcSelect>
28
- </Field>
29
- <Field
30
- v-else-if="
31
- computedProperty.valueType === 'ShortText' && computedProperty.multivalue && !computedProperty.dictionary
32
- "
33
- v-slot="{ errorMessage, errors }"
34
- :name="computedProperty.name"
35
- :model-value="value"
36
- :label="computedProperty.displayName"
37
- :rules="computedProperty.rules"
38
- >
39
- <VcMultivalue
40
- v-bind="$attrs"
41
- v-model="value"
42
- :name="computedProperty.name"
43
- :error="!!errors.length"
44
- :error-message="errorMessage"
45
- :label="computedProperty.displayName"
46
- :required="computedProperty.required"
47
- placeholder="Add value"
48
- :disabled="disabled"
49
- :multilanguage="multilanguage"
50
- :current-language="currentLanguage"
51
- ></VcMultivalue>
52
- </Field>
53
-
54
- <Field
55
- v-else-if="computedProperty.valueType === 'ShortText' && computedProperty.multivalue && computedProperty.dictionary"
56
- v-slot="{ errorMessage, errors }"
57
- :name="computedProperty.name"
58
- :label="computedProperty.displayName"
59
- :model-value="value"
60
- :rules="computedProperty.rules"
61
- >
62
- <VcMultivalue
63
- v-bind="$attrs"
64
- v-model="value"
65
- :error="!!errors.length"
66
- :error-message="errorMessage"
67
- :label="computedProperty.displayName"
68
- :required="computedProperty.required"
69
- placeholder="Add value"
70
- :disabled="disabled"
71
- :multilanguage="multilanguage"
72
- :current-language="currentLanguage"
73
- :options="items"
74
- :option-label="multilanguage ? 'value' : 'alias'"
75
- option-value="id"
76
- :multivalue="computedProperty.multivalue"
77
- :emit-label="multilanguage ? 'value' : 'alias'"
78
- @search="onSearch"
79
- @close="onClose"
80
- ></VcMultivalue>
81
- </Field>
82
-
83
- <Field
84
- v-else-if="computedProperty.valueType === 'ShortText'"
85
- v-slot="{ errorMessage, errors }"
86
- :name="computedProperty.name"
87
- :label="computedProperty.displayName"
88
- :model-value="value"
89
- :rules="computedProperty.rules"
90
- >
91
- <VcInput
92
- v-bind="$attrs"
93
- v-model="value"
94
- :error="!!errors.length"
95
- :error-message="errorMessage"
96
- :label="computedProperty.displayName"
97
- clearable
98
- :required="computedProperty.required"
99
- :placeholder="computedProperty.displayName || 'Add value'"
100
- :disabled="disabled"
101
- :multilanguage="multilanguage"
102
- :current-language="currentLanguage"
103
- ></VcInput>
104
- </Field>
105
-
106
- <Field
107
- v-else-if="computedProperty.valueType === 'Number' && computedProperty.multivalue"
108
- v-slot="{ errorMessage, errors }"
109
- :name="computedProperty.name"
110
- :model-value="value"
111
- :label="computedProperty.displayName"
112
- :rules="computedProperty.rules"
113
- >
114
- <VcMultivalue
115
- v-bind="$attrs"
116
- v-model="value"
117
- :label="computedProperty.displayName"
118
- :required="computedProperty.required"
119
- placeholder="Add value"
120
- :disabled="disabled"
121
- type="number"
122
- :error="!!errors.length"
123
- :error-message="errorMessage"
124
- :options="items"
125
- ></VcMultivalue>
126
- </Field>
127
-
128
- <Field
129
- v-else-if="computedProperty.valueType === 'Integer' && computedProperty.multivalue"
130
- v-slot="{ errorMessage, errors }"
131
- :name="computedProperty.name"
132
- :model-value="value"
133
- :label="computedProperty.displayName"
134
- :rules="computedProperty.rules"
135
- >
136
- <VcMultivalue
137
- v-bind="$attrs"
138
- v-model="value"
139
- :label="computedProperty.displayName"
140
- :required="computedProperty.required"
141
- placeholder="Add value"
142
- :disabled="disabled"
143
- type="number"
144
- :error="!!errors.length"
145
- :error-message="errorMessage"
146
- :options="items"
147
- ></VcMultivalue>
148
- </Field>
149
-
150
- <Field
151
- v-else-if="computedProperty.valueType === 'Number'"
152
- v-slot="{ errorMessage, errors }"
153
- :name="computedProperty.name"
154
- :label="computedProperty.displayName"
155
- :model-value="value"
156
- :rules="computedProperty.rules"
157
- >
158
- <VcInput
159
- v-bind="$attrs"
160
- v-model="value"
161
- :error="!!errors.length"
162
- :error-message="errorMessage"
163
- :label="computedProperty.displayName"
164
- clearable
165
- type="number"
166
- :required="computedProperty.required"
167
- :placeholder="computedProperty.placeholder"
168
- :disabled="disabled"
169
- ></VcInput>
170
- </Field>
171
-
172
- <Field
173
- v-else-if="computedProperty.valueType === 'Integer'"
174
- v-slot="{ errorMessage, errors }"
175
- :name="computedProperty.name"
176
- :label="computedProperty.displayName"
177
- :model-value="value"
178
- :rules="computedProperty.rules"
179
- >
180
- <VcInput
181
- v-bind="$attrs"
182
- v-model="value"
183
- :error="!!errors.length"
184
- :error-message="errorMessage"
185
- :label="computedProperty.displayName"
186
- clearable
187
- type="number"
188
- step="1"
189
- :required="computedProperty.required"
190
- :placeholder="computedProperty.placeholder"
191
- :disabled="disabled"
192
- ></VcInput>
193
- </Field>
194
-
195
- <Field
196
- v-else-if="computedProperty.valueType === 'DateTime'"
197
- v-slot="{ errorMessage, errors }"
198
- :name="computedProperty.name"
199
- :label="computedProperty.displayName"
200
- :model-value="value"
201
- :rules="computedProperty.rules"
202
- >
203
- <VcInput
204
- v-bind="$attrs"
205
- v-model="value"
206
- :error="!!errors.length"
207
- :error-message="errorMessage"
208
- :label="computedProperty.displayName"
209
- type="datetime-local"
210
- :required="computedProperty.required"
211
- :placeholder="computedProperty.placeholder"
212
- :disabled="disabled"
213
- ></VcInput>
214
- </Field>
215
-
216
- <Field
217
- v-else-if="computedProperty.valueType === 'LongText'"
218
- v-slot="{ errorMessage }"
219
- :name="computedProperty.name"
220
- :label="computedProperty.displayName"
221
- :model-value="value"
222
- :rules="computedProperty.rules"
223
- >
224
- <VcTextarea
225
- v-bind="$attrs"
226
- v-model="value"
227
- :error-message="errorMessage"
228
- :label="computedProperty.displayName"
229
- :required="computedProperty.required"
230
- :placeholder="computedProperty.placeholder"
231
- :disabled="disabled"
232
- :multilanguage="multilanguage"
233
- :current-language="currentLanguage"
234
- ></VcTextarea>
235
- </Field>
236
-
237
- <Field
238
- v-else-if="computedProperty.valueType === 'Boolean'"
239
- v-slot="{ errorMessage }"
240
- :name="computedProperty.name"
241
- :label="computedProperty.displayName"
242
- :model-value="value"
243
- :rules="computedProperty.rules"
244
- >
245
- <VcCheckbox
246
- v-bind="$attrs"
247
- v-model="value"
248
- :error-message="errorMessage"
249
- :required="computedProperty.required"
250
- :disabled="disabled"
251
- :name="computedProperty.name"
10
+ <template v-if="computedProperty.dictionary && !computedProperty.multivalue">
11
+ <VcSelect
12
+ v-bind="$attrs"
13
+ v-model="value"
14
+ :error="!!errors.length"
15
+ :error-message="errorMessage"
16
+ :label="computedProperty.displayName"
17
+ :required="computedProperty.required"
18
+ :placeholder="computedProperty.placeholder"
19
+ :options="items"
20
+ :option-value="computedProperty.optionValue"
21
+ :option-label="computedProperty.optionLabel"
22
+ :disabled="disabled"
23
+ searchable
24
+ :multilanguage="multilanguage"
25
+ :current-language="currentLanguage"
26
+ :loading="loading"
27
+ @search="onSearch"
28
+ @close="onClose"
29
+ ></VcSelect>
30
+ </template>
31
+ <template
32
+ v-else-if="
33
+ computedProperty.valueType === 'ShortText' && computedProperty.multivalue && !computedProperty.dictionary
34
+ "
35
+ >
36
+ <VcMultivalue
37
+ v-bind="$attrs"
38
+ v-model="value"
39
+ :name="computedProperty.name"
40
+ :error="!!errors.length"
41
+ :error-message="errorMessage"
42
+ :label="computedProperty.displayName"
43
+ :required="computedProperty.required"
44
+ placeholder="Add value"
45
+ :disabled="disabled"
46
+ :multilanguage="multilanguage"
47
+ :current-language="currentLanguage"
48
+ ></VcMultivalue>
49
+ </template>
50
+ <template
51
+ v-else-if="
52
+ computedProperty.valueType === 'ShortText' && computedProperty.multivalue && computedProperty.dictionary
53
+ "
252
54
  >
253
- {{ computedProperty.displayName }}
254
- </VcCheckbox>
55
+ <VcMultivalue
56
+ v-bind="$attrs"
57
+ v-model="value"
58
+ :error="!!errors.length"
59
+ :error-message="errorMessage"
60
+ :label="computedProperty.displayName"
61
+ :required="computedProperty.required"
62
+ placeholder="Add value"
63
+ :disabled="disabled"
64
+ :multilanguage="multilanguage"
65
+ :current-language="currentLanguage"
66
+ :options="items"
67
+ :option-label="multilanguage ? 'value' : 'alias'"
68
+ option-value="id"
69
+ :multivalue="computedProperty.multivalue"
70
+ :emit-label="multilanguage ? 'value' : 'alias'"
71
+ @search="onSearch"
72
+ @close="onClose"
73
+ ></VcMultivalue>
74
+ </template>
75
+ <template v-else-if="computedProperty.valueType === 'ShortText'">
76
+ <VcInput
77
+ v-bind="$attrs"
78
+ v-model="value"
79
+ :error="!!errors.length"
80
+ :error-message="errorMessage"
81
+ :label="computedProperty.displayName"
82
+ clearable
83
+ :required="computedProperty.required"
84
+ :placeholder="computedProperty.displayName || 'Add value'"
85
+ :disabled="disabled"
86
+ :multilanguage="multilanguage"
87
+ :current-language="currentLanguage"
88
+ :loading="loading"
89
+ ></VcInput>
90
+ </template>
91
+ <template v-else-if="computedProperty.valueType === 'Number' && computedProperty.multivalue">
92
+ <VcMultivalue
93
+ v-bind="$attrs"
94
+ v-model="value"
95
+ :label="computedProperty.displayName"
96
+ :required="computedProperty.required"
97
+ placeholder="Add value"
98
+ :disabled="disabled"
99
+ type="number"
100
+ :error="!!errors.length"
101
+ :error-message="errorMessage"
102
+ :options="items"
103
+ ></VcMultivalue>
104
+ </template>
105
+ <template v-else-if="computedProperty.valueType === 'Integer' && computedProperty.multivalue">
106
+ <VcMultivalue
107
+ v-bind="$attrs"
108
+ v-model="value"
109
+ :label="computedProperty.displayName"
110
+ :required="computedProperty.required"
111
+ placeholder="Add value"
112
+ :disabled="disabled"
113
+ type="number"
114
+ :error="!!errors.length"
115
+ :error-message="errorMessage"
116
+ :options="items"
117
+ ></VcMultivalue>
118
+ </template>
119
+ <template v-else-if="computedProperty.valueType === 'Number'">
120
+ <VcInput
121
+ v-bind="$attrs"
122
+ v-model="value"
123
+ :error="!!errors.length"
124
+ :error-message="errorMessage"
125
+ :label="computedProperty.displayName"
126
+ clearable
127
+ type="number"
128
+ :required="computedProperty.required"
129
+ :placeholder="computedProperty.placeholder"
130
+ :disabled="disabled"
131
+ :loading="loading"
132
+ ></VcInput>
133
+ </template>
134
+ <template v-else-if="computedProperty.valueType === 'Integer'">
135
+ <VcInput
136
+ v-bind="$attrs"
137
+ v-model="value"
138
+ :error="!!errors.length"
139
+ :error-message="errorMessage"
140
+ :label="computedProperty.displayName"
141
+ clearable
142
+ type="number"
143
+ step="1"
144
+ :required="computedProperty.required"
145
+ :placeholder="computedProperty.placeholder"
146
+ :disabled="disabled"
147
+ :loading="loading"
148
+ ></VcInput>
149
+ </template>
150
+ <template v-else-if="computedProperty.valueType === 'DateTime'">
151
+ <VcInput
152
+ v-bind="$attrs"
153
+ v-model="value"
154
+ :error="!!errors.length"
155
+ :error-message="errorMessage"
156
+ :label="computedProperty.displayName"
157
+ type="datetime-local"
158
+ :required="computedProperty.required"
159
+ :placeholder="computedProperty.placeholder"
160
+ :disabled="disabled"
161
+ :loading="loading"
162
+ ></VcInput
163
+ ></template>
164
+ <template v-else-if="computedProperty.valueType === 'LongText'">
165
+ <VcTextarea
166
+ v-bind="$attrs"
167
+ v-model="value"
168
+ :error-message="errorMessage"
169
+ :label="computedProperty.displayName"
170
+ :required="computedProperty.required"
171
+ :placeholder="computedProperty.placeholder"
172
+ :disabled="disabled"
173
+ :multilanguage="multilanguage"
174
+ :current-language="currentLanguage"
175
+ ></VcTextarea
176
+ ></template>
177
+ <template v-else-if="computedProperty.valueType === 'Boolean'">
178
+ <VcCheckbox
179
+ v-bind="$attrs"
180
+ v-model="value"
181
+ :error-message="errorMessage"
182
+ :required="computedProperty.required"
183
+ :disabled="disabled"
184
+ :name="computedProperty.name"
185
+ >
186
+ {{ computedProperty.displayName }}
187
+ </VcCheckbox>
188
+ </template>
255
189
  </Field>
256
190
  </template>
191
+
257
192
  <!-- eslint-disable @typescript-eslint/no-explicit-any -->
258
- <script lang="ts" setup generic="T">
259
- import { ref, onMounted, computed } from "vue";
193
+ <script lang="ts" setup generic="T extends {[x:string]: any; id?: string}">
194
+ import { ref, onMounted, computed, watch } from "vue";
260
195
  import { Field } from "vee-validate";
261
196
  import { useI18n } from "vue-i18n";
262
197
  import { VcSelect, VcInput, VcTextarea, VcCheckbox } from "./../../";
@@ -310,6 +245,7 @@ const emit = defineEmits<{
310
245
  const { locale, te, t } = useI18n({ useScope: "global" });
311
246
 
312
247
  const items = ref([]);
248
+ const loading = ref(false);
313
249
 
314
250
  const computedProperty = computed(() => {
315
251
  const rules: IValidationRules = {};
@@ -341,8 +277,9 @@ const computedProperty = computed(() => {
341
277
  valueType: props.valueType,
342
278
  dictionary: props.dictionary || false,
343
279
  multivalue: props.multivalue || false,
344
- name: props.name,
345
- displayName: propertyDisplayNameLocalized, //|| setting?.displayName || setting?.defaultValue,
280
+ name: props.multilanguage ? props.name + "_" + props.currentLanguage : props.name,
281
+ key: props.multilanguage ? props.property.id + "_" + props.currentLanguage : props.property.id,
282
+ displayName: propertyDisplayNameLocalized,
346
283
  optionValue: props.optionsValue,
347
284
  optionLabel: optionLabelField,
348
285
  required: props.required,
@@ -365,20 +302,25 @@ const value = computed({
365
302
  });
366
303
 
367
304
  onMounted(async () => {
368
- if (props.optionsGetter) {
369
- items.value = await props.optionsGetter(props.property, null, props.currentLanguage);
370
- }
305
+ await getOptions();
371
306
  });
372
307
 
373
- async function onSearch(keyword: string) {
308
+ async function getOptions(keyword = null) {
374
309
  if (props.optionsGetter) {
375
- items.value = await props.optionsGetter(props.property, keyword, props.currentLanguage);
310
+ try {
311
+ loading.value = true;
312
+ items.value = await props.optionsGetter(props.property, keyword, props.currentLanguage);
313
+ } finally {
314
+ loading.value = false;
315
+ }
376
316
  }
377
317
  }
378
318
 
319
+ async function onSearch(keyword: string) {
320
+ getOptions(keyword);
321
+ }
322
+
379
323
  async function onClose() {
380
- if (props.optionsGetter) {
381
- items.value = await props.optionsGetter(props.property, null, props.currentLanguage);
382
- }
324
+ getOptions();
383
325
  }
384
326
  </script>
@@ -24,8 +24,8 @@
24
24
  :actions="itemActions"
25
25
  :disable-drag="disableDrag"
26
26
  @preview="onPreviewClick(i)"
27
- @edit="$emit('item:edit', $event)"
28
- @remove="$emit('item:remove', $event)"
27
+ @edit="$emit('edit', $event)"
28
+ @remove="$emit('remove', $event)"
29
29
  @mousedown="onItemMouseDown"
30
30
  @dragstart="onItemDragStart($event, image)"
31
31
  @dragover="onItemDragOver"
@@ -40,6 +40,7 @@
40
40
  :multiple="multiple"
41
41
  :rules="rules"
42
42
  :name="name"
43
+ :loading="loading"
43
44
  @upload="onUpload"
44
45
  ></VcFileUpload>
45
46
  </div>
@@ -59,7 +60,7 @@
59
60
  </template>
60
61
 
61
62
  <script lang="ts" setup>
62
- import { computed, ref, watch } from "vue";
63
+ import { MaybeRef, computed, ref, unref, watch } from "vue";
63
64
  import { IImage } from "../../../../core/types";
64
65
  import { VcLabel, VcFileUpload, VcHint } from "./../../";
65
66
  import VcGalleryItem from "./_internal/vc-gallery-item/vc-gallery-item.vue";
@@ -87,13 +88,14 @@ export interface Props {
87
88
  hideAfterUpload?: boolean;
88
89
  rules?: string | Record<string, unknown>;
89
90
  name?: string;
91
+ loading?: boolean;
90
92
  }
91
93
 
92
94
  export interface Emits {
93
95
  (event: "upload", files: FileList): void;
94
96
  (event: "sort", sorted: IImage[]): void;
95
- (event: "item:edit", image: IImage): void;
96
- (event: "item:remove", image: IImage): void;
97
+ (event: "edit", image: IImage): void;
98
+ (event: "remove", image: IImage): void;
97
99
  }
98
100
 
99
101
  const props = withDefaults(defineProps<Props>(), {
@@ -113,7 +115,7 @@ const emit = defineEmits<Emits>();
113
115
  const { t } = useI18n({ useScope: "global" });
114
116
  const previewImageIndex = ref<number>();
115
117
 
116
- const defaultImages = ref<IImage[]>([]);
118
+ const defaultImages = ref<MaybeRef<IImage[]>>([]);
117
119
  const draggedItem = ref<IImage>();
118
120
  const draggedElement = ref<HTMLElement>();
119
121
  const galleryRef = ref<HTMLElement>();
@@ -135,7 +137,7 @@ const { open } = usePopup(
135
137
  watch(
136
138
  () => props.images,
137
139
  (newVal) => {
138
- defaultImages.value = newVal;
140
+ defaultImages.value = unref(newVal);
139
141
  },
140
142
  { deep: true, immediate: true }
141
143
  );
@@ -38,10 +38,16 @@ export interface Props {
38
38
  templates: NotificationTemplateConstructor[];
39
39
  }
40
40
 
41
+ export interface Emits {
42
+ (event: "onClick"): void;
43
+ }
44
+
41
45
  const props = withDefaults(defineProps<Props>(), {
42
46
  notification: undefined,
43
47
  });
44
48
 
49
+ const emit = defineEmits<Emits>();
50
+
45
51
  const locale = window.navigator.language;
46
52
 
47
53
  const notificationStyle = computed(() => ({
@@ -58,6 +64,9 @@ const currentTemplate = computed(() => props.templates?.find((x) => x?.notifyTyp
58
64
  function notificationTemplateRenderer() {
59
65
  const notificationTemplate = currentTemplate.value;
60
66
 
61
- return notificationTemplate && h(notificationTemplate, { notification: props.notification });
67
+ return (
68
+ notificationTemplate &&
69
+ h(notificationTemplate, { notification: props.notification, onNotificationClick: () => emit("onClick") })
70
+ );
62
71
  }
63
72
  </script>
@@ -62,11 +62,11 @@
62
62
  v-for="item in notifications"
63
63
  :key="`notification_${item.id}`"
64
64
  class="tw-py-[18px] tw-px-[15px] tw-border-b tw-border-solid tw-border-b-[#e3e7ec] tw-cursor-pointer last-of-type:tw-border-b-0"
65
- @click="handleClick(item)"
66
65
  >
67
66
  <NotificationItem
68
67
  :notification="item"
69
68
  :templates="templates"
69
+ @on-click="() => (isDropdownVisible = false)"
70
70
  />
71
71
  </div>
72
72
  </VcCol>
@@ -96,21 +96,12 @@ export interface Props {
96
96
  notifications: PushNotification[];
97
97
  templates?: NotificationTemplateConstructor[];
98
98
  onOpen?: () => void;
99
- onClick?: (notification: PushNotification) => void;
100
99
  }
101
100
 
102
101
  const props = defineProps<Props>();
103
102
  const { t } = useI18n({ useScope: "global" });
104
103
  const isDropdownVisible = ref(false);
105
104
 
106
- const handleClick = async (notification: PushNotification) => {
107
- isDropdownVisible.value = false;
108
-
109
- if (props.onClick && typeof props.onClick === "function") {
110
- props.onClick(notification);
111
- }
112
- };
113
-
114
105
  function toggleNotificationsDrop() {
115
106
  isDropdownVisible.value = !isDropdownVisible.value;
116
107
  if (props.onOpen && typeof props.onOpen === "function") {
@@ -1,3 +1 @@
1
- import _Table from "./vc-table.vue";
2
-
3
- export const VcTable = _Table as typeof _Table;
1
+ export { default as VcTable } from "./vc-table.vue";
@@ -1,8 +1,8 @@
1
1
  import type { Meta, StoryObj } from "@storybook/vue3";
2
2
 
3
3
  import { VcTable } from "./";
4
- import VcHint from "../../atoms/vc-hint/vc-hint.vue";
5
- import VcImage from "../../atoms/vc-image/vc-image.vue";
4
+ // import VcHint from "../../atoms/vc-hint/vc-hint.vue";
5
+ // import VcImage from "../../atoms/vc-image/vc-image.vue";
6
6
 
7
7
  const meta: Meta<typeof VcTable> = {
8
8
  title: "organisms/VcTable",
@@ -14,7 +14,7 @@ type Story = StoryObj<typeof VcTable>;
14
14
 
15
15
  export const Primary: Story = {
16
16
  render: (args) => ({
17
- components: { VcTable, VcHint, VcImage },
17
+ // components: { VcTable, VcHint, VcImage },
18
18
  setup() {
19
19
  return { args };
20
20
  },