@vc-shell/framework 1.0.109 → 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 (423) hide show
  1. package/CHANGELOG.md +35 -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/plugins/validation/rules.ts +24 -7
  11. package/core/types/index.ts +36 -3
  12. package/dist/core/composables/useApiClient/index.d.ts +1 -1
  13. package/dist/core/composables/useApiClient/index.d.ts.map +1 -1
  14. package/dist/core/composables/useAsync/index.d.ts +1 -1
  15. package/dist/core/composables/useAsync/index.d.ts.map +1 -1
  16. package/dist/core/composables/useI18n/index.d.ts +1 -1
  17. package/dist/core/composables/useI18n/index.d.ts.map +1 -1
  18. package/dist/core/composables/usePermissions/index.d.ts +1 -2
  19. package/dist/core/composables/usePermissions/index.d.ts.map +1 -1
  20. package/dist/core/composables/useUser/index.d.ts +1 -0
  21. package/dist/core/composables/useUser/index.d.ts.map +1 -1
  22. package/dist/core/directives/loading/index.d.ts +3 -2
  23. package/dist/core/directives/loading/index.d.ts.map +1 -1
  24. package/dist/core/plugins/modularity/index.d.ts +13 -4
  25. package/dist/core/plugins/modularity/index.d.ts.map +1 -1
  26. package/dist/core/plugins/validation/rules.d.ts.map +1 -1
  27. package/dist/core/types/index.d.ts +41 -2
  28. package/dist/core/types/index.d.ts.map +1 -1
  29. package/dist/framework.mjs +30057 -27524
  30. package/dist/index.css +1 -1
  31. package/dist/index.d.ts +1 -2
  32. package/dist/index.d.ts.map +1 -1
  33. package/dist/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue.d.ts +14 -23
  34. package/dist/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue.d.ts.map +1 -1
  35. package/dist/shared/components/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue.d.ts +28 -25
  36. package/dist/shared/components/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue.d.ts.map +1 -1
  37. package/dist/shared/components/blade-navigation/composables/useBladeNavigation/index.d.ts.map +1 -1
  38. package/dist/shared/components/blade-navigation/types/index.d.ts +5 -2
  39. package/dist/shared/components/blade-navigation/types/index.d.ts.map +1 -1
  40. package/dist/shared/components/change-password/change-password.vue.d.ts.map +1 -1
  41. package/dist/shared/components/error-interceptor/index.d.ts +3 -3
  42. package/dist/shared/components/language-selector/language-selector.vue.d.ts +41 -26
  43. package/dist/shared/components/language-selector/language-selector.vue.d.ts.map +1 -1
  44. package/dist/shared/components/notifications/components/notification-container/index.d.ts +12 -12
  45. package/dist/shared/components/notifications/components/notification-container/index.d.ts.map +1 -1
  46. package/dist/shared/components/notifications/composables/useContainer/index.d.ts.map +1 -1
  47. package/dist/shared/components/popup-handler/components/vc-popup-container/vc-popup-container.vue.d.ts.map +1 -1
  48. package/dist/shared/components/popup-handler/composables/usePopup/index.d.ts.map +1 -1
  49. package/dist/shared/components/user-dropdown-button/index.d.ts +11 -11
  50. package/dist/shared/components/user-dropdown-button/user-dropdown-button.vue.d.ts +35 -22
  51. package/dist/shared/components/user-dropdown-button/user-dropdown-button.vue.d.ts.map +1 -1
  52. package/dist/shared/modules/assets/components/assets-details/assets-details.vue.d.ts +39 -28
  53. package/dist/shared/modules/assets/components/assets-details/assets-details.vue.d.ts.map +1 -1
  54. package/dist/shared/modules/assets/components/assets-details/index.d.ts +13 -13
  55. package/dist/shared/modules/assets/index.d.ts +3 -1
  56. package/dist/shared/modules/assets/index.d.ts.map +1 -1
  57. package/dist/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts +42 -29
  58. package/dist/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts.map +1 -1
  59. package/dist/shared/modules/assets-manager/components/assets-manager/index.d.ts +9 -9
  60. package/dist/shared/modules/assets-manager/index.d.ts +3 -1
  61. package/dist/shared/modules/assets-manager/index.d.ts.map +1 -1
  62. package/dist/shared/modules/dynamic/components/FIELD_MAP.d.ts +2204 -0
  63. package/dist/shared/modules/dynamic/components/FIELD_MAP.d.ts.map +1 -0
  64. package/dist/shared/modules/dynamic/components/SchemaRender.d.ts +220 -0
  65. package/dist/shared/modules/dynamic/components/SchemaRender.d.ts.map +1 -0
  66. package/dist/shared/modules/dynamic/components/factories.d.ts +15 -0
  67. package/dist/shared/modules/dynamic/components/factories.d.ts.map +1 -0
  68. package/dist/shared/modules/dynamic/components/fields/Button.d.ts +131 -0
  69. package/dist/shared/modules/dynamic/components/fields/Button.d.ts.map +1 -0
  70. package/dist/shared/modules/dynamic/components/fields/Card.d.ts +131 -0
  71. package/dist/shared/modules/dynamic/components/fields/Card.d.ts.map +1 -0
  72. package/dist/shared/modules/dynamic/components/fields/Checkbox.d.ts +131 -0
  73. package/dist/shared/modules/dynamic/components/fields/Checkbox.d.ts.map +1 -0
  74. package/dist/shared/modules/dynamic/components/fields/DynamicProperty.d.ts +130 -0
  75. package/dist/shared/modules/dynamic/components/fields/DynamicProperty.d.ts.map +1 -0
  76. package/dist/shared/modules/dynamic/components/fields/EditorField.d.ts +128 -0
  77. package/dist/shared/modules/dynamic/components/fields/EditorField.d.ts.map +1 -0
  78. package/dist/shared/modules/dynamic/components/fields/Fieldset.d.ts +131 -0
  79. package/dist/shared/modules/dynamic/components/fields/Fieldset.d.ts.map +1 -0
  80. package/dist/shared/modules/dynamic/components/fields/GalleryField.d.ts +132 -0
  81. package/dist/shared/modules/dynamic/components/fields/GalleryField.d.ts.map +1 -0
  82. package/dist/shared/modules/dynamic/components/fields/InputCurrency.d.ts +131 -0
  83. package/dist/shared/modules/dynamic/components/fields/InputCurrency.d.ts.map +1 -0
  84. package/dist/shared/modules/dynamic/components/fields/InputField.d.ts +131 -0
  85. package/dist/shared/modules/dynamic/components/fields/InputField.d.ts.map +1 -0
  86. package/dist/shared/modules/dynamic/components/fields/SelectField.d.ts +131 -0
  87. package/dist/shared/modules/dynamic/components/fields/SelectField.d.ts.map +1 -0
  88. package/dist/shared/modules/dynamic/components/fields/StatusField.d.ts +131 -0
  89. package/dist/shared/modules/dynamic/components/fields/StatusField.d.ts.map +1 -0
  90. package/dist/shared/modules/dynamic/components/fields/ValidationField.d.ts +13 -0
  91. package/dist/shared/modules/dynamic/components/fields/ValidationField.d.ts.map +1 -0
  92. package/dist/shared/modules/dynamic/components/fields/props.d.ts +124 -0
  93. package/dist/shared/modules/dynamic/components/fields/props.d.ts.map +1 -0
  94. package/dist/shared/modules/dynamic/components/index.d.ts +4 -0
  95. package/dist/shared/modules/dynamic/components/index.d.ts.map +1 -0
  96. package/dist/shared/modules/dynamic/composables/index.d.ts +2 -0
  97. package/dist/shared/modules/dynamic/composables/index.d.ts.map +1 -0
  98. package/dist/shared/modules/dynamic/composables/useFilterBuilder/index.d.ts +35 -0
  99. package/dist/shared/modules/dynamic/composables/useFilterBuilder/index.d.ts.map +1 -0
  100. package/dist/shared/modules/dynamic/factories/base/useDetailsFactory.d.ts +8 -0
  101. package/dist/shared/modules/dynamic/factories/base/useDetailsFactory.d.ts.map +1 -0
  102. package/dist/shared/modules/dynamic/factories/base/useListFactory.d.ts +22 -0
  103. package/dist/shared/modules/dynamic/factories/base/useListFactory.d.ts.map +1 -0
  104. package/dist/shared/modules/dynamic/factories/index.d.ts +4 -0
  105. package/dist/shared/modules/dynamic/factories/index.d.ts.map +1 -0
  106. package/dist/shared/modules/dynamic/factories/types/index.d.ts +101 -0
  107. package/dist/shared/modules/dynamic/factories/types/index.d.ts.map +1 -0
  108. package/dist/shared/modules/dynamic/helpers/getters.d.ts +2 -0
  109. package/dist/shared/modules/dynamic/helpers/getters.d.ts.map +1 -0
  110. package/dist/shared/modules/dynamic/helpers/nodeBuilder.d.ts +13 -0
  111. package/dist/shared/modules/dynamic/helpers/nodeBuilder.d.ts.map +1 -0
  112. package/dist/shared/modules/dynamic/helpers/override.d.ts +7 -0
  113. package/dist/shared/modules/dynamic/helpers/override.d.ts.map +1 -0
  114. package/dist/shared/modules/dynamic/helpers/setters.d.ts +8 -0
  115. package/dist/shared/modules/dynamic/helpers/setters.d.ts.map +1 -0
  116. package/dist/shared/modules/dynamic/helpers/toolbarReducer.d.ts +11 -0
  117. package/dist/shared/modules/dynamic/helpers/toolbarReducer.d.ts.map +1 -0
  118. package/dist/shared/modules/dynamic/helpers/unrefNested.d.ts +2 -0
  119. package/dist/shared/modules/dynamic/helpers/unrefNested.d.ts.map +1 -0
  120. package/dist/shared/modules/dynamic/helpers/unwrapInterpolation.d.ts +3 -0
  121. package/dist/shared/modules/dynamic/helpers/unwrapInterpolation.d.ts.map +1 -0
  122. package/dist/shared/modules/dynamic/index.d.ts +32 -0
  123. package/dist/shared/modules/dynamic/index.d.ts.map +1 -0
  124. package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts +68 -0
  125. package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts.map +1 -0
  126. package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts +79 -0
  127. package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts.map +1 -0
  128. package/dist/shared/modules/dynamic/pages/index.d.ts +4 -0
  129. package/dist/shared/modules/dynamic/pages/index.d.ts.map +1 -0
  130. package/dist/shared/modules/dynamic/types/index.d.ts +250 -0
  131. package/dist/shared/modules/dynamic/types/index.d.ts.map +1 -0
  132. package/dist/shared/modules/dynamic/types/models.d.ts +93 -0
  133. package/dist/shared/modules/dynamic/types/models.d.ts.map +1 -0
  134. package/dist/shared/modules/index.d.ts +1 -0
  135. package/dist/shared/modules/index.d.ts.map +1 -1
  136. package/dist/shared/pages/InvitePage/components/invite/Invite.vue.d.ts.map +1 -1
  137. package/dist/shared/pages/InvitePage/index.d.ts +0 -3
  138. package/dist/shared/pages/InvitePage/index.d.ts.map +1 -1
  139. package/dist/shared/pages/InvitePage/plugin.d.ts +4 -0
  140. package/dist/shared/pages/InvitePage/plugin.d.ts.map +1 -0
  141. package/dist/shared/pages/LoginPage/components/login/Login.vue.d.ts +45 -9
  142. package/dist/shared/pages/LoginPage/components/login/Login.vue.d.ts.map +1 -1
  143. package/dist/shared/pages/LoginPage/components/login/index.d.ts +14 -0
  144. package/dist/shared/pages/LoginPage/components/login/index.d.ts.map +1 -1
  145. package/dist/shared/pages/LoginPage/index.d.ts +0 -1
  146. package/dist/shared/pages/LoginPage/index.d.ts.map +1 -1
  147. package/dist/shared/pages/LoginPage/plugin.d.ts +1 -3
  148. package/dist/shared/pages/LoginPage/plugin.d.ts.map +1 -1
  149. package/dist/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue.d.ts.map +1 -1
  150. package/dist/shared/pages/ResetPasswordPage/index.d.ts +0 -3
  151. package/dist/shared/pages/ResetPasswordPage/index.d.ts.map +1 -1
  152. package/dist/shared/pages/ResetPasswordPage/plugin.d.ts +4 -0
  153. package/dist/shared/pages/ResetPasswordPage/plugin.d.ts.map +1 -0
  154. package/dist/shared/pages/index.d.ts +0 -6
  155. package/dist/shared/pages/index.d.ts.map +1 -1
  156. package/dist/shared/pages/plugin.d.ts +4 -0
  157. package/dist/shared/pages/plugin.d.ts.map +1 -0
  158. package/dist/tsconfig.tsbuildinfo +1 -1
  159. package/dist/ui/components/atoms/index.d.ts +1 -0
  160. package/dist/ui/components/atoms/index.d.ts.map +1 -1
  161. package/dist/ui/components/atoms/vc-badge/index.d.ts +4 -4
  162. package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts +22 -11
  163. package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts.map +1 -1
  164. package/dist/ui/components/atoms/vc-button/index.d.ts +1 -208
  165. package/dist/ui/components/atoms/vc-button/index.d.ts.map +1 -1
  166. package/dist/ui/components/atoms/vc-button/vc-button.vue.d.ts +75 -27
  167. package/dist/ui/components/atoms/vc-button/vc-button.vue.d.ts.map +1 -1
  168. package/dist/ui/components/atoms/vc-card/index.d.ts +32 -38
  169. package/dist/ui/components/atoms/vc-card/index.d.ts.map +1 -1
  170. package/dist/ui/components/atoms/vc-card/vc-card.vue.d.ts +46 -27
  171. package/dist/ui/components/atoms/vc-card/vc-card.vue.d.ts.map +1 -1
  172. package/dist/ui/components/atoms/vc-checkbox/index.d.ts +72 -38
  173. package/dist/ui/components/atoms/vc-checkbox/index.d.ts.map +1 -1
  174. package/dist/ui/components/atoms/vc-checkbox/vc-checkbox.vue.d.ts +69 -28
  175. package/dist/ui/components/atoms/vc-checkbox/vc-checkbox.vue.d.ts.map +1 -1
  176. package/dist/ui/components/atoms/vc-col/index.d.ts +1 -1
  177. package/dist/ui/components/atoms/vc-col/vc-col.vue.d.ts +11 -22
  178. package/dist/ui/components/atoms/vc-col/vc-col.vue.d.ts.map +1 -1
  179. package/dist/ui/components/atoms/vc-container/index.d.ts +5 -5
  180. package/dist/ui/components/atoms/vc-container/vc-container.vue.d.ts +22 -11
  181. package/dist/ui/components/atoms/vc-container/vc-container.vue.d.ts.map +1 -1
  182. package/dist/ui/components/atoms/vc-hint/index.d.ts +1 -1
  183. package/dist/ui/components/atoms/vc-hint/vc-hint.vue.d.ts.map +1 -1
  184. package/dist/ui/components/atoms/vc-icon/index.d.ts +13 -7
  185. package/dist/ui/components/atoms/vc-icon/index.d.ts.map +1 -1
  186. package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts +28 -26
  187. package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts.map +1 -1
  188. package/dist/ui/components/atoms/vc-image/index.d.ts +16 -16
  189. package/dist/ui/components/atoms/vc-image/vc-image.vue.d.ts +54 -29
  190. package/dist/ui/components/atoms/vc-image/vc-image.vue.d.ts.map +1 -1
  191. package/dist/ui/components/atoms/vc-info-row/index.d.ts +9 -9
  192. package/dist/ui/components/atoms/vc-info-row/vc-info-row.vue.d.ts +30 -23
  193. package/dist/ui/components/atoms/vc-info-row/vc-info-row.vue.d.ts.map +1 -1
  194. package/dist/ui/components/atoms/vc-label/index.d.ts +33 -39
  195. package/dist/ui/components/atoms/vc-label/index.d.ts.map +1 -1
  196. package/dist/ui/components/atoms/vc-label/vc-label.vue.d.ts +33 -26
  197. package/dist/ui/components/atoms/vc-label/vc-label.vue.d.ts.map +1 -1
  198. package/dist/ui/components/atoms/vc-link/index.d.ts +4 -4
  199. package/dist/ui/components/atoms/vc-link/vc-link.vue.d.ts +22 -11
  200. package/dist/ui/components/atoms/vc-link/vc-link.vue.d.ts.map +1 -1
  201. package/dist/ui/components/atoms/vc-loading/vc-loading.vue.d.ts +9 -10
  202. package/dist/ui/components/atoms/vc-loading/vc-loading.vue.d.ts.map +1 -1
  203. package/dist/ui/components/atoms/vc-progress/index.d.ts +1 -1
  204. package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts +19 -24
  205. package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts.map +1 -1
  206. package/dist/ui/components/atoms/vc-row/index.d.ts +1 -1
  207. package/dist/ui/components/atoms/vc-row/vc-row.vue.d.ts.map +1 -1
  208. package/dist/ui/components/atoms/vc-status/index.d.ts +1 -142
  209. package/dist/ui/components/atoms/vc-status/index.d.ts.map +1 -1
  210. package/dist/ui/components/atoms/vc-status/vc-status.vue.d.ts +29 -28
  211. package/dist/ui/components/atoms/vc-status/vc-status.vue.d.ts.map +1 -1
  212. package/dist/ui/components/atoms/vc-status-icon/vc-status-icon.vue.d.ts +9 -10
  213. package/dist/ui/components/atoms/vc-status-icon/vc-status-icon.vue.d.ts.map +1 -1
  214. package/dist/ui/components/atoms/vc-switch/vc-switch.vue.d.ts +36 -11
  215. package/dist/ui/components/atoms/vc-switch/vc-switch.vue.d.ts.map +1 -1
  216. package/dist/ui/components/atoms/vc-video/index.d.ts +54 -0
  217. package/dist/ui/components/atoms/vc-video/index.d.ts.map +1 -0
  218. package/dist/ui/components/atoms/vc-video/vc-video.vue.d.ts +67 -0
  219. package/dist/ui/components/atoms/vc-video/vc-video.vue.d.ts.map +1 -0
  220. package/dist/ui/components/atoms/vc-widget/vc-widget.vue.d.ts +28 -11
  221. package/dist/ui/components/atoms/vc-widget/vc-widget.vue.d.ts.map +1 -1
  222. package/dist/ui/components/molecules/vc-breadcrumbs/_internal/vc-breadcrumbs-item/vc-breadcrumbs-item.vue.d.ts +5 -3
  223. package/dist/ui/components/molecules/vc-breadcrumbs/_internal/vc-breadcrumbs-item/vc-breadcrumbs-item.vue.d.ts.map +1 -1
  224. package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue.d.ts +23 -22
  225. package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue.d.ts.map +1 -1
  226. package/dist/ui/components/molecules/vc-code-editor/index.d.ts +28 -28
  227. package/dist/ui/components/molecules/vc-code-editor/vc-code-editor.vue.d.ts +48 -23
  228. package/dist/ui/components/molecules/vc-code-editor/vc-code-editor.vue.d.ts.map +1 -1
  229. package/dist/ui/components/molecules/vc-editor/index.d.ts +1 -226
  230. package/dist/ui/components/molecules/vc-editor/index.d.ts.map +1 -1
  231. package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts +74 -28
  232. package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts.map +1 -1
  233. package/dist/ui/components/molecules/vc-file-upload/index.d.ts +23 -23
  234. package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts +46 -27
  235. package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts.map +1 -1
  236. package/dist/ui/components/molecules/vc-form/index.d.ts +1 -1
  237. package/dist/ui/components/molecules/vc-form/vc-form.vue.d.ts.map +1 -1
  238. package/dist/ui/components/molecules/vc-input/index.d.ts +1 -390
  239. package/dist/ui/components/molecules/vc-input/index.d.ts.map +1 -1
  240. package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts +181 -41
  241. package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts.map +1 -1
  242. package/dist/ui/components/molecules/vc-input-currency/index.d.ts +90 -90
  243. package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts +143 -30
  244. package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts.map +1 -1
  245. package/dist/ui/components/molecules/vc-multivalue/index.d.ts +74 -10
  246. package/dist/ui/components/molecules/vc-multivalue/index.d.ts.map +1 -1
  247. package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts +74 -10
  248. package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts.map +1 -1
  249. package/dist/ui/components/molecules/vc-notification/vc-notification.vue.d.ts +51 -10
  250. package/dist/ui/components/molecules/vc-notification/vc-notification.vue.d.ts.map +1 -1
  251. package/dist/ui/components/molecules/vc-pagination/index.d.ts +6 -6
  252. package/dist/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts +26 -25
  253. package/dist/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts.map +1 -1
  254. package/dist/ui/components/molecules/vc-rating/index.d.ts +19 -19
  255. package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts +46 -25
  256. package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts.map +1 -1
  257. package/dist/ui/components/molecules/vc-select/index.d.ts +65 -103
  258. package/dist/ui/components/molecules/vc-select/index.d.ts.map +1 -1
  259. package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts +65 -479
  260. package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts.map +1 -1
  261. package/dist/ui/components/molecules/vc-slider/index.d.ts +21 -21
  262. package/dist/ui/components/molecules/vc-slider/vc-slider.vue.d.ts +39 -26
  263. package/dist/ui/components/molecules/vc-slider/vc-slider.vue.d.ts.map +1 -1
  264. package/dist/ui/components/molecules/vc-textarea/index.d.ts +40 -40
  265. package/dist/ui/components/molecules/vc-textarea/vc-textarea.vue.d.ts +74 -25
  266. package/dist/ui/components/molecules/vc-textarea/vc-textarea.vue.d.ts.map +1 -1
  267. package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue.d.ts +35 -12
  268. package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue.d.ts.map +1 -1
  269. 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
  270. 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
  271. 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
  272. 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
  273. package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/vc-app-menu.vue.d.ts +31 -28
  274. package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/vc-app-menu.vue.d.ts.map +1 -1
  275. package/dist/ui/components/organisms/vc-app/index.d.ts +67 -67
  276. package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts +86 -37
  277. package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts.map +1 -1
  278. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-header/vc-blade-header.vue.d.ts +44 -11
  279. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-header/vc-blade-header.vue.d.ts.map +1 -1
  280. 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
  281. 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
  282. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/vc-blade-toolbar.vue.d.ts +13 -22
  283. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/vc-blade-toolbar.vue.d.ts.map +1 -1
  284. package/dist/ui/components/organisms/vc-blade/index.d.ts +39 -39
  285. package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts +62 -31
  286. package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts.map +1 -1
  287. package/dist/ui/components/organisms/vc-dynamic-property/index.d.ts +1 -140
  288. package/dist/ui/components/organisms/vc-dynamic-property/index.d.ts.map +1 -1
  289. package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts +64 -75
  290. package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts.map +1 -1
  291. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts +58 -35
  292. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts.map +1 -1
  293. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts +22 -25
  294. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts.map +1 -1
  295. package/dist/ui/components/organisms/vc-gallery/index.d.ts +37 -31
  296. package/dist/ui/components/organisms/vc-gallery/index.d.ts.map +1 -1
  297. package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts +130 -46
  298. package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts.map +1 -1
  299. package/dist/ui/components/organisms/vc-login-form/index.d.ts +9 -9
  300. package/dist/ui/components/organisms/vc-login-form/vc-login-form.vue.d.ts +23 -22
  301. package/dist/ui/components/organisms/vc-login-form/vc-login-form.vue.d.ts.map +1 -1
  302. package/dist/ui/components/organisms/vc-notification-dropdown/_internal/notification/notification.vue.d.ts +28 -22
  303. package/dist/ui/components/organisms/vc-notification-dropdown/_internal/notification/notification.vue.d.ts.map +1 -1
  304. package/dist/ui/components/organisms/vc-notification-dropdown/index.d.ts +0 -6
  305. package/dist/ui/components/organisms/vc-notification-dropdown/index.d.ts.map +1 -1
  306. package/dist/ui/components/organisms/vc-notification-dropdown/vc-notification-dropdown.vue.d.ts +36 -10
  307. package/dist/ui/components/organisms/vc-notification-dropdown/vc-notification-dropdown.vue.d.ts.map +1 -1
  308. package/dist/ui/components/organisms/vc-notification-template/index.d.ts +4 -4
  309. package/dist/ui/components/organisms/vc-notification-template/vc-notification-template.vue.d.ts +27 -10
  310. package/dist/ui/components/organisms/vc-notification-template/vc-notification-template.vue.d.ts.map +1 -1
  311. package/dist/ui/components/organisms/vc-popup/_internal/vc-popup-error/vc-popup-error.vue.d.ts.map +1 -1
  312. package/dist/ui/components/organisms/vc-popup/_internal/vc-popup-warning/vc-popup-warning.vue.d.ts.map +1 -1
  313. package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts +38 -31
  314. package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts.map +1 -1
  315. package/dist/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue.d.ts +18 -9
  316. package/dist/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue.d.ts.map +1 -1
  317. package/dist/ui/components/organisms/vc-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue.d.ts +12 -19
  318. package/dist/ui/components/organisms/vc-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue.d.ts.map +1 -1
  319. package/dist/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts +23 -24
  320. package/dist/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts.map +1 -1
  321. package/dist/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue.d.ts +29 -26
  322. package/dist/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue.d.ts.map +1 -1
  323. package/dist/ui/components/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue.d.ts +14 -14
  324. package/dist/ui/components/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue.d.ts.map +1 -1
  325. package/dist/ui/components/organisms/vc-table/index.d.ts +1 -214
  326. package/dist/ui/components/organisms/vc-table/index.d.ts.map +1 -1
  327. package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts +90 -105
  328. package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts.map +1 -1
  329. package/package.json +9 -8
  330. package/shared/components/app-switcher/composables/useAppSwitcher/index.ts +2 -2
  331. package/shared/components/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue +16 -14
  332. package/shared/components/blade-navigation/composables/useBladeNavigation/index.ts +37 -30
  333. package/shared/components/blade-navigation/types/index.ts +7 -3
  334. package/shared/components/notifications/composables/useContainer/index.ts +2 -5
  335. package/shared/components/popup-handler/composables/usePopup/index.ts +0 -2
  336. package/shared/modules/assets/components/assets-details/assets-details.vue +6 -6
  337. package/shared/modules/assets/index.ts +2 -2
  338. package/shared/modules/assets-manager/components/assets-manager/assets-manager.vue +3 -3
  339. package/shared/modules/assets-manager/index.ts +2 -2
  340. package/shared/modules/dynamic/components/FIELD_MAP.ts +27 -0
  341. package/shared/modules/dynamic/components/SchemaRender.ts +81 -0
  342. package/shared/modules/dynamic/components/factories.ts +159 -0
  343. package/shared/modules/dynamic/components/fields/Button.ts +31 -0
  344. package/shared/modules/dynamic/components/fields/Card.ts +86 -0
  345. package/shared/modules/dynamic/components/fields/Checkbox.ts +44 -0
  346. package/shared/modules/dynamic/components/fields/DynamicProperty.ts +99 -0
  347. package/shared/modules/dynamic/components/fields/EditorField.ts +43 -0
  348. package/shared/modules/dynamic/components/fields/Fieldset.ts +77 -0
  349. package/shared/modules/dynamic/components/fields/GalleryField.ts +121 -0
  350. package/shared/modules/dynamic/components/fields/InputCurrency.ts +49 -0
  351. package/shared/modules/dynamic/components/fields/InputField.ts +42 -0
  352. package/shared/modules/dynamic/components/fields/SelectField.ts +55 -0
  353. package/shared/modules/dynamic/components/fields/StatusField.ts +55 -0
  354. package/shared/modules/dynamic/components/fields/ValidationField.ts +53 -0
  355. package/shared/modules/dynamic/components/fields/props.ts +52 -0
  356. package/shared/modules/dynamic/components/index.ts +4 -0
  357. package/shared/modules/dynamic/composables/index.ts +1 -0
  358. package/shared/modules/dynamic/composables/useFilterBuilder/index.ts +235 -0
  359. package/shared/modules/dynamic/factories/base/useDetailsFactory.ts +83 -0
  360. package/shared/modules/dynamic/factories/base/useListFactory.ts +68 -0
  361. package/shared/modules/dynamic/factories/index.ts +4 -0
  362. package/shared/modules/dynamic/factories/types/index.ts +103 -0
  363. package/shared/modules/dynamic/helpers/getters.ts +10 -0
  364. package/shared/modules/dynamic/helpers/nodeBuilder.ts +112 -0
  365. package/shared/modules/dynamic/helpers/override.ts +70 -0
  366. package/shared/modules/dynamic/helpers/setters.ts +15 -0
  367. package/shared/modules/dynamic/helpers/toolbarReducer.ts +41 -0
  368. package/shared/modules/dynamic/helpers/unrefNested.ts +14 -0
  369. package/shared/modules/dynamic/helpers/unwrapInterpolation.ts +15 -0
  370. package/shared/modules/dynamic/index.ts +163 -0
  371. package/shared/modules/dynamic/pages/dynamic-blade-form.vue +292 -0
  372. package/shared/modules/dynamic/pages/dynamic-blade-list.vue +437 -0
  373. package/shared/modules/dynamic/pages/index.ts +4 -0
  374. package/shared/modules/dynamic/types/index.ts +287 -0
  375. package/shared/modules/dynamic/types/models.ts +140 -0
  376. package/shared/modules/index.ts +1 -0
  377. package/shared/pages/InvitePage/index.ts +0 -6
  378. package/shared/pages/InvitePage/plugin.ts +5 -0
  379. package/shared/pages/LoginPage/components/login/Login.vue +5 -6
  380. package/shared/pages/LoginPage/index.ts +0 -1
  381. package/shared/pages/LoginPage/plugin.ts +1 -13
  382. package/shared/pages/ResetPasswordPage/index.ts +0 -6
  383. package/shared/pages/ResetPasswordPage/plugin.ts +5 -0
  384. package/shared/pages/index.ts +0 -9
  385. package/shared/pages/plugin.ts +3 -0
  386. package/ui/components/atoms/index.ts +1 -0
  387. package/ui/components/atoms/vc-button/index.ts +1 -10
  388. package/ui/components/atoms/vc-button/vc-button.vue +8 -2
  389. package/ui/components/atoms/vc-card/index.ts +1 -9
  390. package/ui/components/atoms/vc-card/vc-card.vue +6 -1
  391. package/ui/components/atoms/vc-checkbox/index.ts +1 -9
  392. package/ui/components/atoms/vc-checkbox/vc-checkbox.vue +32 -10
  393. package/ui/components/atoms/vc-icon/vc-icon.vue +16 -3
  394. package/ui/components/atoms/vc-label/index.ts +1 -9
  395. package/ui/components/atoms/vc-label/vc-label.vue +5 -0
  396. package/ui/components/atoms/vc-status/index.ts +1 -10
  397. package/ui/components/atoms/vc-status/vc-status.vue +5 -1
  398. package/ui/components/atoms/vc-video/index.ts +3 -0
  399. package/ui/components/atoms/vc-video/vc-video.vue +102 -0
  400. package/ui/components/atoms/vc-widget/vc-widget.vue +1 -1
  401. package/ui/components/molecules/vc-editor/index.ts +1 -10
  402. package/ui/components/molecules/vc-editor/vc-editor.vue +16 -0
  403. package/ui/components/molecules/vc-file-upload/vc-file-upload.vue +4 -4
  404. package/ui/components/molecules/vc-input/index.ts +1 -60
  405. package/ui/components/molecules/vc-input/vc-input.vue +112 -37
  406. package/ui/components/molecules/vc-input-currency/vc-input-currency.stories.ts +1 -1
  407. package/ui/components/molecules/vc-input-currency/vc-input-currency.vue +21 -17
  408. package/ui/components/molecules/vc-select/index.ts +1 -1
  409. package/ui/components/molecules/vc-select/vc-select.stories.ts +1 -1
  410. package/ui/components/molecules/vc-select/vc-select.vue +11 -37
  411. package/ui/components/organisms/vc-dynamic-property/index.ts +1 -3
  412. package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue +199 -257
  413. package/ui/components/organisms/vc-gallery/vc-gallery.vue +9 -7
  414. package/ui/components/organisms/vc-notification-dropdown/_internal/notification/notification.vue +10 -1
  415. package/ui/components/organisms/vc-notification-dropdown/vc-notification-dropdown.vue +1 -10
  416. package/ui/components/organisms/vc-table/index.ts +1 -3
  417. package/ui/components/organisms/vc-table/vc-table.stories.ts +3 -3
  418. package/ui/components/organisms/vc-table/vc-table.vue +29 -16
  419. package/core/api/catalog.ts +0 -8527
  420. package/dist/core/api/catalog.d.ts +0 -2522
  421. package/dist/core/api/catalog.d.ts.map +0 -1
  422. package/dist/typings/index.d.ts +0 -8
  423. package/dist/typings/index.d.ts.map +0 -1
@@ -0,0 +1,140 @@
1
+ import { ComputedRef, Raw } from "vue";
2
+ /* eslint-disable @typescript-eslint/no-explicit-any */
3
+ import {
4
+ VcButton,
5
+ VcCard,
6
+ VcCheckbox,
7
+ VcDynamicProperty,
8
+ VcEditor,
9
+ VcGallery,
10
+ VcInput,
11
+ VcInputCurrency,
12
+ VcSelect,
13
+ VcStatus,
14
+ } from "../../../../ui/components";
15
+ import type { ComponentProps, ComponentEmit, ComponentSlots } from "vue-component-type-helpers";
16
+
17
+ type FromGenericEventsToProps<T extends Record<string, any>> = T extends Record<string, any>
18
+ ? {
19
+ [K in string & `on${Capitalize<string & keyof T>}`]?: K extends `on${infer C}`
20
+ ? (...args: T[Uncapitalize<C>]) => any
21
+ : never;
22
+ }
23
+ : never;
24
+
25
+ interface FieldOpts<T> {
26
+ component?: ComponentType<T>;
27
+ id?: string | number;
28
+ props?: Record<string, any>;
29
+ }
30
+
31
+ export type ComponentType<T> = Raw<T>;
32
+
33
+ export type FormFields = {
34
+ [key: string]: ControlType & IFieldset;
35
+ };
36
+
37
+ export type ControlType =
38
+ | ISelectField
39
+ | IInputField
40
+ | ICardCollection
41
+ | IEditorField
42
+ | IGallery
43
+ | IDynamicProperties
44
+ | ICheckbox
45
+ | IButton
46
+ | IInputCurrency
47
+ | IStatusField;
48
+
49
+ export type ControlTypeWithSlots = Extract<
50
+ ControlType,
51
+ ISelectField | ICardCollection | ICheckbox | IButton | IStatusField
52
+ >;
53
+ export type ControlTypeCtr = Extract<ControlType, ISelectField | IInputField | IInputCurrency | IEditorField>;
54
+
55
+ export interface IControlBaseProps {
56
+ key?: string | number | symbol;
57
+ rules?: string | Record<string, unknown>;
58
+ label?: string;
59
+ placeholder?: string;
60
+ disabled?: boolean;
61
+ required?: boolean;
62
+ name?: string;
63
+ classNames?: string;
64
+ modelValue?: any;
65
+ tooltip?: string;
66
+ "onUpdate:modelValue"?: (event: any) => void;
67
+ multilanguage?: boolean;
68
+ }
69
+
70
+ export type WithRequiredProperty<Type, Key extends keyof Type> = Type & {
71
+ [Property in Key]-?: Type[Property];
72
+ };
73
+
74
+ export interface IControlBaseOptions {
75
+ visibility?: ComputedRef<boolean>;
76
+ }
77
+
78
+ export type ISelectField = {
79
+ props: ComponentProps<typeof VcSelect> | IControlBaseProps;
80
+ slots?: Partial<ComponentSlots<typeof VcSelect>>;
81
+ options: IControlBaseOptions;
82
+ } & FieldOpts<typeof VcSelect>;
83
+
84
+ export type IStatusField = {
85
+ props: ComponentProps<typeof VcStatus> & IControlBaseOptions;
86
+ slots?: Partial<Pick<ComponentSlots<typeof VcButton>, "default">>;
87
+ options: IControlBaseOptions;
88
+ } & FieldOpts<typeof VcStatus>;
89
+
90
+ export type IInputField = {
91
+ props: ComponentProps<typeof VcInput> | IControlBaseProps;
92
+ options: IControlBaseOptions;
93
+ } & FieldOpts<typeof VcInput>;
94
+
95
+ export type IInputCurrency = {
96
+ props: Partial<ComponentProps<typeof VcInputCurrency>> | IControlBaseProps;
97
+ options: IControlBaseOptions;
98
+ } & FieldOpts<typeof VcInputCurrency>;
99
+
100
+ export type ICardCollection = {
101
+ props: ComponentProps<typeof VcCard> | IControlBaseProps;
102
+ options: IControlBaseOptions;
103
+ slots?: Partial<Pick<ComponentSlots<typeof VcCard>, "default" | "actions">>;
104
+ } & FieldOpts<typeof VcCard>;
105
+
106
+ export type ICheckbox = {
107
+ props: ComponentProps<typeof VcCheckbox> | IControlBaseProps;
108
+ options: IControlBaseOptions;
109
+ slots?: Partial<Pick<ComponentSlots<typeof VcCheckbox>, "default" | "error">>;
110
+ } & FieldOpts<typeof VcCheckbox>;
111
+
112
+ export type IDynamicProperties = {
113
+ props:
114
+ | (ComponentProps<typeof VcDynamicProperty> & FromGenericEventsToProps<ComponentEmit<typeof VcDynamicProperty>>)
115
+ | IControlBaseProps;
116
+ options: IControlBaseOptions;
117
+ } & FieldOpts<typeof VcDynamicProperty>;
118
+
119
+ export type IEditorField = {
120
+ props: ComponentProps<typeof VcEditor> | IControlBaseProps;
121
+ options: IControlBaseOptions;
122
+ } & FieldOpts<typeof VcEditor>;
123
+
124
+ export type IGallery = {
125
+ props: ComponentProps<typeof VcGallery> | IControlBaseProps;
126
+ options: IControlBaseOptions;
127
+ } & FieldOpts<typeof VcGallery>;
128
+
129
+ export type IButton = {
130
+ props: ComponentProps<typeof VcButton>;
131
+ options: IControlBaseOptions;
132
+ slots?: Partial<Pick<ComponentSlots<typeof VcButton>, "default">>;
133
+ } & FieldOpts<typeof VcButton>;
134
+
135
+ export type IFieldset = {
136
+ columns?: number;
137
+ property?: string;
138
+ remove?: { method?: string };
139
+ fields?: ControlType[];
140
+ };
@@ -1,2 +1,3 @@
1
1
  export * from "./assets";
2
2
  export * from "./assets-manager";
3
+ export * from "./dynamic";
@@ -1,7 +1 @@
1
- import { createModule } from "./../../../core/plugins";
2
- import * as components from "./components";
3
- import * as locales from "./locales";
4
-
5
- export const InvitePage = createModule(components, locales);
6
-
7
1
  export * from "./components";
@@ -0,0 +1,5 @@
1
+ import { createModule } from "./../../../core/plugins";
2
+ import * as components from "./components";
3
+ import * as locales from "./locales";
4
+
5
+ export const InvitePage = createModule(components, locales);
@@ -176,12 +176,11 @@
176
176
  </template>
177
177
 
178
178
  <script lang="ts" setup>
179
- import { ref, reactive, computed, onMounted, inject } from "vue";
179
+ import { ref, reactive, computed, onMounted } from "vue";
180
180
  import { useRouter } from "vue-router";
181
181
  import { useIsFormValid, Field, useIsFormDirty, useForm } from "vee-validate";
182
182
  import { useSettings, useUser } from "./../../../../../core/composables";
183
183
  import { RequestPasswordResult, SignInResults } from "./../../../../../core/types";
184
- import { CommonPageComposables } from "./../../../../../typings";
185
184
  import AzureAdIcon from "./../../../../../assets/img/AzureAd.svg";
186
185
  import { ExternalSignInProviderInfo } from "./../../../../../core/api/platform";
187
186
  import { useI18n } from "vue-i18n";
@@ -190,6 +189,7 @@ export interface Props {
190
189
  logo: string;
191
190
  background: string;
192
191
  title: string;
192
+ composable?: () => { forgotPassword: (args: { loginOrEmail: string }) => Promise<void> };
193
193
  }
194
194
 
195
195
  const props = defineProps<Props>();
@@ -200,11 +200,10 @@ useForm({ validateOnMount: false });
200
200
  const { getUiCustomizationSettings, uiSettings } = useSettings();
201
201
  const { t } = useI18n({ useScope: "global" });
202
202
  let useLogin;
203
- const injected = inject<CommonPageComposables>("commonPageComposables");
204
203
  const signInResult = ref<SignInResults>({ succeeded: true });
205
204
  const requestPassResult = ref<RequestPasswordResult>({ succeeded: true });
206
205
  const forgotPasswordRequestSent = ref(false);
207
- const { signIn, loading, externalSignIn, getExternalLoginProviders } = useUser();
206
+ const { signIn, loading, externalSignIn, getExternalLoginProviders, isAuthenticated } = useUser();
208
207
  const isLogin = ref(true);
209
208
  const isValid = useIsFormValid();
210
209
  const isDirty = useIsFormDirty();
@@ -213,8 +212,8 @@ const loadingForgotPassword = ref(false);
213
212
  const loginProviders = ref<ExternalSignInProviderInfo[]>();
214
213
  let forgotPassword;
215
214
 
216
- if (injected) {
217
- useLogin = injected?.useLogin;
215
+ if (props.composable && typeof props.composable === "function") {
216
+ useLogin = props.composable;
218
217
 
219
218
  if (useLogin) {
220
219
  const { forgotPassword: forgot } = useLogin();
@@ -1,2 +1 @@
1
- export * from "./plugin";
2
1
  export * from "./components";
@@ -1,17 +1,5 @@
1
- import { App } from "vue";
2
1
  import { createModule } from "./../../../core/plugins";
3
2
  import * as components from "./components";
4
3
  import * as locales from "./locales";
5
- import { CommonPageComposables } from "./../../../typings";
6
4
 
7
- export const LoginPage = {
8
- install(app: App, config: CommonPageComposables) {
9
- // Register components
10
- createModule(components, locales).install(app);
11
-
12
- if (config) {
13
- app.config.globalProperties.commonPageComposables = config;
14
- app.provide("commonPageComposables", config);
15
- }
16
- },
17
- };
5
+ export const LoginPage = createModule(components, locales);
@@ -1,7 +1 @@
1
- import { createModule } from "./../../../core/plugins";
2
- import * as components from "./components";
3
- import * as locales from "./locales";
4
-
5
- export const ResetPasswordPage = createModule(components, locales);
6
-
7
1
  export * from "./components";
@@ -0,0 +1,5 @@
1
+ import { createModule } from "./../../../core/plugins";
2
+ import * as components from "./components";
3
+ import * as locales from "./locales";
4
+
5
+ export const ResetPasswordPage = createModule(components, locales);
@@ -1,12 +1,3 @@
1
- import { CommonPageComposables } from "./../../typings";
2
-
3
- // Declare globally
4
- declare module "@vue/runtime-core" {
5
- export interface ComponentCustomProperties {
6
- CommonPageComposables: CommonPageComposables;
7
- }
8
- }
9
-
10
1
  export * from "./InvitePage";
11
2
  export * from "./LoginPage";
12
3
  export * from "./ResetPasswordPage";
@@ -0,0 +1,3 @@
1
+ export * from "./InvitePage/plugin";
2
+ export * from "./LoginPage/plugin";
3
+ export * from "./ResetPasswordPage/plugin";
@@ -16,4 +16,5 @@ export * from "./vc-row";
16
16
  export * from "./vc-status";
17
17
  export * from "./vc-status-icon";
18
18
  export * from "./vc-switch";
19
+ export * from "./vc-video";
19
20
  export * from "./vc-widget";
@@ -1,10 +1 @@
1
- import { VNode } from "vue";
2
- import _Button from "./vc-button.vue";
3
-
4
- export const VcButton = _Button as typeof _Button & {
5
- new (): {
6
- $slots: {
7
- default: () => VNode[];
8
- };
9
- };
10
- };
1
+ export { default as VcButton } from "./vc-button.vue";
@@ -8,7 +8,7 @@
8
8
  v-if="icon"
9
9
  :class="['vc-button__icon', iconClass]"
10
10
  :icon="icon"
11
- :size="small ? 'xs' : 's'"
11
+ :size="small ? 'xs' : iconSize"
12
12
  ></VcIcon>
13
13
  <span
14
14
  v-if="$slots['default']"
@@ -18,13 +18,14 @@
18
18
  </span>
19
19
  </button>
20
20
  </template>
21
-
21
+ <!-- eslint-disable @typescript-eslint/no-explicit-any -->
22
22
  <script lang="ts" setup>
23
23
  import { computed } from "vue";
24
24
  import { VcIcon } from "./../vc-icon";
25
25
  export interface Props {
26
26
  icon?: string;
27
27
  iconClass?: string;
28
+ iconSize?: InstanceType<typeof VcIcon>["$props"]["size"];
28
29
  variant?: "primary" | "warning" | "danger";
29
30
  disabled?: boolean;
30
31
  small?: boolean;
@@ -43,10 +44,15 @@ export interface Emits {
43
44
 
44
45
  const props = withDefaults(defineProps<Props>(), {
45
46
  variant: "primary",
47
+ iconSize: "s",
46
48
  });
47
49
 
48
50
  const emit = defineEmits<Emits>();
49
51
 
52
+ defineSlots<{
53
+ default: (props?: any) => any;
54
+ }>();
55
+
50
56
  const buttonClass = computed(() => {
51
57
  return [
52
58
  "vc-button",
@@ -1,11 +1,3 @@
1
- import { VNode } from "vue";
2
1
  import _Card from "./vc-card.vue";
3
2
 
4
- export const VcCard = _Card as typeof _Card & {
5
- new (): {
6
- $slots: {
7
- default: () => VNode[];
8
- actions: () => VNode[];
9
- };
10
- };
11
- };
3
+ export const VcCard = _Card as typeof _Card;
@@ -38,7 +38,7 @@
38
38
  </transition>
39
39
  </div>
40
40
  </template>
41
-
41
+ <!-- eslint-disable @typescript-eslint/no-explicit-any -->
42
42
  <script lang="ts" setup>
43
43
  import { VcIcon } from "./../vc-icon";
44
44
  import { ref } from "vue";
@@ -63,6 +63,11 @@ const props = withDefaults(defineProps<Props>(), {
63
63
 
64
64
  const emit = defineEmits<Emits>();
65
65
 
66
+ defineSlots<{
67
+ default: (props?: any) => any;
68
+ actions: (props?: any) => any;
69
+ }>();
70
+
66
71
  const isCollapsedInternal = ref(props.isCollapsed);
67
72
 
68
73
  function onHeaderClick() {
@@ -1,11 +1,3 @@
1
- import { VNode } from "vue";
2
1
  import _Checkbox from "./vc-checkbox.vue";
3
2
 
4
- export const VcCheckbox = _Checkbox as typeof _Checkbox & {
5
- new (): {
6
- $slots: {
7
- default: () => VNode[];
8
- error: () => VNode[];
9
- };
10
- };
11
- };
3
+ export const VcCheckbox = _Checkbox as typeof _Checkbox;
@@ -3,13 +3,22 @@
3
3
  class="vc-checkbox"
4
4
  :class="{ 'vc-checkbox_disabled': disabled }"
5
5
  >
6
+ <!-- Input label -->
7
+ <VcLabel
8
+ v-if="label"
9
+ class="tw-mb-2"
10
+ :required="required"
11
+ >
12
+ <span>{{ label }}</span>
13
+ </VcLabel>
6
14
  <label class="vc-checkbox__label">
7
15
  <input
16
+ v-model="value"
8
17
  type="checkbox"
9
18
  class="vc-checkbox__input"
10
- :checked="modelValue"
11
19
  :disabled="disabled"
12
- @change="onChange"
20
+ :true-value="trueValue"
21
+ :false-value="falseValue"
13
22
  />
14
23
  <span class="vc-checkbox__checkmark"></span>
15
24
  <span
@@ -19,7 +28,7 @@
19
28
  <slot></slot>
20
29
  </span>
21
30
  <span
22
- v-if="required"
31
+ v-if="!label && required"
23
32
  class="tw-text-[color:var(--checkbox-required-color)] tw-ml-1"
24
33
  >*</span
25
34
  >
@@ -35,28 +44,41 @@
35
44
  </slot>
36
45
  </div>
37
46
  </template>
38
-
47
+ <!-- eslint-disable @typescript-eslint/no-explicit-any -->
39
48
  <script lang="ts" setup>
49
+ import { MaybeRef, computed, unref } from "vue";
40
50
  import { VcHint } from "./../vc-hint";
41
51
  export interface Props {
42
- modelValue?: boolean;
52
+ modelValue?: MaybeRef<boolean>;
43
53
  disabled?: boolean;
44
54
  required?: boolean;
45
55
  name?: string;
46
56
  errorMessage?: string;
57
+ trueValue?: boolean;
58
+ falseValue?: boolean;
59
+ label?: string;
47
60
  }
48
61
 
49
62
  export interface Emits {
50
63
  (event: "update:modelValue", value: boolean): void;
51
64
  }
52
65
 
53
- withDefaults(defineProps<Props>(), { name: "Field" });
66
+ const props = withDefaults(defineProps<Props>(), { name: "Field", trueValue: true, falseValue: false });
54
67
  const emit = defineEmits<Emits>();
55
68
 
56
- function onChange(e: Event) {
57
- const newValue = (e.target as HTMLInputElement).checked;
58
- emit("update:modelValue", newValue);
59
- }
69
+ defineSlots<{
70
+ default: (props: any) => any;
71
+ error: (props: any) => any;
72
+ }>();
73
+
74
+ const value = computed({
75
+ get() {
76
+ return unref(props.modelValue);
77
+ },
78
+ set(newValue: boolean) {
79
+ emit("update:modelValue", newValue);
80
+ },
81
+ });
60
82
  </script>
61
83
 
62
84
  <style lang="scss">
@@ -1,11 +1,12 @@
1
1
  <template>
2
- <i :class="`vc-icon vc-icon_${size} ${(icon as string).toLowerCase()}`" />
2
+ <i :class="`vc-icon vc-icon_${size} vc-icon_${variant} ${(icon as string).toLowerCase()}`" />
3
3
  </template>
4
4
 
5
5
  <script lang="ts" setup>
6
6
  export interface Props {
7
7
  icon?: string;
8
- size?: "xs" | "s" | "m" | "l" | "xl" | "xxl";
8
+ size?: "xs" | "s" | "m" | "l" | "xl" | "xxl" | "xxxl";
9
+ variant?: "warning" | "danger" | "success";
9
10
  }
10
11
 
11
12
  withDefaults(defineProps<Props>(), {
@@ -22,9 +23,15 @@ withDefaults(defineProps<Props>(), {
22
23
  --icon-size-l: 20px;
23
24
  --icon-size-xl: 22px;
24
25
  --icon-size-xxl: 30px;
26
+ --icon-size-xxxl: 64px;
27
+
28
+ --icon-color-success: #99c17a;
29
+ --icon-color-danger: #f34747;
30
+ --icon-color-warning: #f89406;
25
31
  }
26
32
 
27
- $sizes: xs, s, m, l, xl, xxl;
33
+ $sizes: xs, s, m, l, xl, xxl, xxxl;
34
+ $variants: warning, danger, success;
28
35
 
29
36
  .vc-icon {
30
37
  @each $size in $sizes {
@@ -32,5 +39,11 @@ $sizes: xs, s, m, l, xl, xxl;
32
39
  @apply tw-text-[length:var(--icon-size-#{$size})];
33
40
  }
34
41
  }
42
+
43
+ @each $variant in $variants {
44
+ &_#{$variant} {
45
+ @apply tw-text-[color:var(--icon-color-#{$variant})];
46
+ }
47
+ }
35
48
  }
36
49
  </style>
@@ -1,11 +1,3 @@
1
1
  import _Label from "./vc-label.vue";
2
- import { VNode } from "vue";
3
2
 
4
- export const VcLabel = _Label as typeof _Label & {
5
- new (): {
6
- $slots: {
7
- default: () => VNode[];
8
- tooltip: () => VNode[];
9
- };
10
- };
11
- };
3
+ export const VcLabel = _Label as typeof _Label;
@@ -48,6 +48,11 @@ withDefaults(defineProps<Props>(), {
48
48
  tooltipIcon: "fas fa-info-circle",
49
49
  });
50
50
 
51
+ defineSlots<{
52
+ default: (props: any) => any;
53
+ tooltip?: (props: any) => any;
54
+ }>();
55
+
51
56
  const tooltipVisible = ref(false);
52
57
  </script>
53
58
 
@@ -1,10 +1 @@
1
- import { VNode } from "vue";
2
- import _Status from "./vc-status.vue";
3
-
4
- export const VcStatus = _Status as typeof _Status & {
5
- new (): {
6
- $slots: {
7
- default: () => VNode[];
8
- };
9
- };
10
- };
1
+ export { default as VcStatus } from "./vc-status.vue";
@@ -6,7 +6,7 @@
6
6
  <slot></slot>
7
7
  </div>
8
8
  </template>
9
-
9
+ <!-- eslint-disable @typescript-eslint/no-explicit-any -->
10
10
  <script lang="ts" setup>
11
11
  export interface Props {
12
12
  variant?: "info" | "warning" | "danger" | "success" | "light-danger";
@@ -18,6 +18,10 @@ withDefaults(defineProps<Props>(), {
18
18
  variant: "info",
19
19
  outline: true,
20
20
  });
21
+
22
+ defineSlots<{
23
+ default: (props?: any) => any;
24
+ }>();
21
25
  </script>
22
26
 
23
27
  <style lang="scss">
@@ -0,0 +1,3 @@
1
+ import _Video from "./vc-video.vue";
2
+
3
+ export const VcVideo = _Video as typeof _Video;
@@ -0,0 +1,102 @@
1
+ <template>
2
+ <div
3
+ class="vc-video"
4
+ :class="[`vc-video_${size}`]"
5
+ >
6
+ <VcLabel
7
+ v-if="label"
8
+ class="tw-mb-2"
9
+ >
10
+ <span>{{ label }}</span>
11
+ <template
12
+ v-if="tooltip"
13
+ #tooltip
14
+ >{{ tooltip }}</template
15
+ >
16
+ </VcLabel>
17
+
18
+ <div
19
+ :class="[
20
+ `vc-video_auto`,
21
+ {
22
+ 'tw-rounded-full tw-pb-[var(--video-padding-bottom-1x1)]': rounded,
23
+ 'tw-rounded-[3px] tw-border tw-border-solid tw-border-[color:#efefef]': bordered,
24
+ 'tw-cursor-pointer': clickable,
25
+ },
26
+ 'tw-relative',
27
+ ]"
28
+ >
29
+ <div v-if="source">
30
+ <iframe
31
+ :src="`${source}`"
32
+ width="100%"
33
+ height="300"
34
+ frameborder="0"
35
+ allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
36
+ allowfullscreen="false"
37
+ >
38
+ </iframe>
39
+ </div>
40
+ <div
41
+ v-else
42
+ class="tw-absolute tw-w-full tw-h-full tw-flex tw-items-center tw-justify-center tw-text-[#83a3be]"
43
+ >
44
+ <VcIcon
45
+ icon="fas fa-film"
46
+ size="xl"
47
+ ></VcIcon>
48
+ </div>
49
+ </div>
50
+ </div>
51
+ </template>
52
+
53
+ <script lang="ts" setup>
54
+ import { VcIcon, VcLabel } from "./../../";
55
+
56
+ export interface Props {
57
+ label?: string;
58
+ tooltip?: string;
59
+ rounded?: boolean;
60
+ bordered?: boolean;
61
+ clickable?: boolean;
62
+ source?: string;
63
+ size?: "auto" | "xs" | "s" | "m" | "l" | "xl" | "xxl";
64
+ }
65
+
66
+ export interface Emits {
67
+ (event: "click"): void;
68
+ }
69
+
70
+ withDefaults(defineProps<Props>(), {
71
+ size: "auto",
72
+ });
73
+
74
+ defineEmits<Emits>();
75
+ </script>
76
+
77
+ <style lang="scss">
78
+ :root {
79
+ --image-size-xs: 32px;
80
+ --image-size-s: 48px;
81
+ --image-size-m: 64px;
82
+ --image-size-l: 96px;
83
+ --image-size-xl: 128px;
84
+ --image-size-xxl: 145px;
85
+ }
86
+
87
+ $paddings: xs, s, m, l, xl, xxl;
88
+
89
+ .vc-video {
90
+ @apply tw-inline-block tw-relative;
91
+
92
+ @each $padding in $paddings {
93
+ &_#{$padding} {
94
+ @apply tw-w-[var(--image-size-#{$padding})];
95
+ }
96
+ }
97
+
98
+ &_auto {
99
+ @apply tw-w-full;
100
+ }
101
+ }
102
+ </style>
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div
3
- class="vc-widget"
3
+ class="vc-widget tw-relative"
4
4
  :class="{ 'vc-widget_disabled': disabled }"
5
5
  @click="onClick"
6
6
  >