@vc-shell/framework 1.0.69 → 1.0.71

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 (468) hide show
  1. package/CHANGELOG.md +72 -0
  2. package/core/api/platform.ts +2762 -2225
  3. package/core/composables/index.ts +1 -0
  4. package/core/composables/useMenuComposer/index.ts +25 -0
  5. package/core/composables/useNotifications/index.ts +25 -31
  6. package/core/composables/useUser/index.ts +176 -10
  7. package/core/directives/index.ts +0 -1
  8. package/core/plugins/index.ts +1 -1
  9. package/core/plugins/modularity/index.ts +8 -1
  10. package/core/plugins/signalR/index.ts +32 -0
  11. package/core/types/index.ts +56 -17
  12. package/dist/core/api/platform.d.ts +1005 -931
  13. package/dist/core/api/platform.d.ts.map +1 -1
  14. package/dist/core/composables/index.d.ts +1 -0
  15. package/dist/core/composables/index.d.ts.map +1 -1
  16. package/dist/core/composables/useMenuComposer/index.d.ts +12 -0
  17. package/dist/core/composables/useMenuComposer/index.d.ts.map +1 -0
  18. package/dist/core/composables/useNotifications/index.d.ts +4 -6
  19. package/dist/core/composables/useNotifications/index.d.ts.map +1 -1
  20. package/dist/core/composables/useUser/index.d.ts +18 -1
  21. package/dist/core/composables/useUser/index.d.ts.map +1 -1
  22. package/dist/core/directives/autofocus/index.d.ts +1 -1
  23. package/dist/core/directives/autofocus/index.d.ts.map +1 -1
  24. package/dist/core/directives/index.d.ts +0 -1
  25. package/dist/core/directives/index.d.ts.map +1 -1
  26. package/dist/core/directives/loading/index.d.ts +1 -1
  27. package/dist/core/directives/loading/index.d.ts.map +1 -1
  28. package/dist/core/directives/permissions/index.d.ts +1 -1
  29. package/dist/core/directives/permissions/index.d.ts.map +1 -1
  30. package/dist/core/plugins/index.d.ts +1 -1
  31. package/dist/core/plugins/index.d.ts.map +1 -1
  32. package/dist/core/plugins/modularity/index.d.ts +1 -1
  33. package/dist/core/plugins/modularity/index.d.ts.map +1 -1
  34. package/dist/core/plugins/signalR/index.d.ts +4 -0
  35. package/dist/core/plugins/signalR/index.d.ts.map +1 -0
  36. package/dist/core/types/index.d.ts +46 -20
  37. package/dist/core/types/index.d.ts.map +1 -1
  38. package/dist/framework.mjs +31824 -29372
  39. package/dist/index.css +1 -1
  40. package/dist/index.d.ts +3 -1
  41. package/dist/index.d.ts.map +1 -1
  42. package/dist/injectionSymbols.d.ts +6 -0
  43. package/dist/injectionSymbols.d.ts.map +1 -0
  44. package/dist/shared/components/app-switcher/components/vc-app-switcher/index.d.ts +1 -3
  45. package/dist/shared/components/app-switcher/components/vc-app-switcher/index.d.ts.map +1 -1
  46. package/dist/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue.d.ts +6 -3
  47. package/dist/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue.d.ts.map +1 -1
  48. package/dist/shared/components/app-switcher/composables/useAppSwitcher/index.d.ts +1 -1
  49. package/dist/shared/components/app-switcher/composables/useAppSwitcher/index.d.ts.map +1 -1
  50. package/dist/shared/components/blade-navigation/components/vc-blade-navigation/index.d.ts +13 -456
  51. package/dist/shared/components/blade-navigation/components/vc-blade-navigation/index.d.ts.map +1 -1
  52. package/dist/shared/components/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue.d.ts +19 -454
  53. package/dist/shared/components/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue.d.ts.map +1 -1
  54. package/dist/shared/components/blade-navigation/composables/useBladeNavigation/index.d.ts +3 -4
  55. package/dist/shared/components/blade-navigation/composables/useBladeNavigation/index.d.ts.map +1 -1
  56. package/dist/shared/components/blade-navigation/index.d.ts +1 -9
  57. package/dist/shared/components/blade-navigation/index.d.ts.map +1 -1
  58. package/dist/shared/components/blade-navigation/plugin.d.ts +13 -0
  59. package/dist/shared/components/blade-navigation/plugin.d.ts.map +1 -0
  60. package/dist/shared/components/blade-navigation/types/index.d.ts +53 -26
  61. package/dist/shared/components/blade-navigation/types/index.d.ts.map +1 -1
  62. package/dist/shared/components/change-password/change-password.vue.d.ts +7 -0
  63. package/dist/shared/components/change-password/change-password.vue.d.ts.map +1 -0
  64. package/dist/shared/components/change-password/index.d.ts +11 -0
  65. package/dist/shared/components/change-password/index.d.ts.map +1 -0
  66. package/dist/{core/plugins → shared/components}/error-interceptor/index.d.ts +53 -15
  67. package/dist/shared/components/error-interceptor/index.d.ts.map +1 -0
  68. package/dist/{core/plugins → shared/components}/error-interceptor/interceptor.d.ts +1 -1
  69. package/dist/shared/components/error-interceptor/interceptor.d.ts.map +1 -0
  70. package/dist/shared/components/index.d.ts +9 -0
  71. package/dist/shared/components/index.d.ts.map +1 -0
  72. package/dist/shared/components/language-selector/index.d.ts +55 -0
  73. package/dist/shared/components/language-selector/index.d.ts.map +1 -0
  74. package/dist/shared/components/language-selector/language-selector.vue.d.ts +45 -0
  75. package/dist/shared/components/language-selector/language-selector.vue.d.ts.map +1 -0
  76. package/dist/shared/components/notifications/components/notification-container/index.d.ts +13 -13
  77. package/dist/shared/components/notifications/components/notification-container/index.d.ts.map +1 -1
  78. package/dist/shared/components/notifications/core/notification.d.ts.map +1 -1
  79. package/dist/shared/components/notifications/index.d.ts +0 -9
  80. package/dist/shared/components/notifications/index.d.ts.map +1 -1
  81. package/dist/shared/components/notifications/types/index.d.ts +3 -1
  82. package/dist/shared/components/notifications/types/index.d.ts.map +1 -1
  83. package/dist/shared/components/popup-handler/components/index.d.ts +2 -0
  84. package/dist/shared/components/popup-handler/components/index.d.ts.map +1 -0
  85. package/dist/shared/components/popup-handler/components/vc-popup-container/index.d.ts +2 -0
  86. package/dist/shared/components/popup-handler/components/vc-popup-container/index.d.ts.map +1 -0
  87. package/dist/shared/components/popup-handler/components/vc-popup-container/vc-popup-container.vue.d.ts +3 -0
  88. package/dist/shared/components/popup-handler/components/vc-popup-container/vc-popup-container.vue.d.ts.map +1 -0
  89. package/dist/shared/components/popup-handler/composables/index.d.ts +2 -0
  90. package/dist/shared/components/popup-handler/composables/index.d.ts.map +1 -0
  91. package/dist/shared/components/popup-handler/composables/usePopup/index.d.ts +12 -0
  92. package/dist/shared/components/popup-handler/composables/usePopup/index.d.ts.map +1 -0
  93. package/dist/shared/components/popup-handler/index.d.ts +16 -0
  94. package/dist/shared/components/popup-handler/index.d.ts.map +1 -0
  95. package/dist/shared/components/popup-handler/plugin.d.ts +6 -0
  96. package/dist/shared/components/popup-handler/plugin.d.ts.map +1 -0
  97. package/dist/shared/components/popup-handler/types/index.d.ts +26 -0
  98. package/dist/shared/components/popup-handler/types/index.d.ts.map +1 -0
  99. package/dist/shared/components/popup-handler/utils/index.d.ts +3 -0
  100. package/dist/shared/components/popup-handler/utils/index.d.ts.map +1 -0
  101. package/dist/shared/components/user-dropdown-button/index.d.ts +43 -0
  102. package/dist/shared/components/user-dropdown-button/index.d.ts.map +1 -0
  103. package/dist/shared/components/user-dropdown-button/user-dropdown-button.vue.d.ts +33 -0
  104. package/dist/shared/components/user-dropdown-button/user-dropdown-button.vue.d.ts.map +1 -0
  105. package/dist/shared/index.d.ts +3 -5
  106. package/dist/shared/index.d.ts.map +1 -1
  107. package/dist/shared/locales/index.d.ts +3 -0
  108. package/dist/shared/locales/index.d.ts.map +1 -0
  109. package/dist/shared/modules/assets/components/assets-details/assets-details.vue.d.ts +13 -11
  110. package/dist/shared/modules/assets/components/assets-details/assets-details.vue.d.ts.map +1 -1
  111. package/dist/shared/modules/assets/components/assets-details/index.d.ts +25 -123
  112. package/dist/shared/modules/assets/components/assets-details/index.d.ts.map +1 -1
  113. package/dist/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts +15 -18
  114. package/dist/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts.map +1 -1
  115. package/dist/shared/modules/assets-manager/components/assets-manager/index.d.ts +30 -150
  116. package/dist/shared/modules/assets-manager/components/assets-manager/index.d.ts.map +1 -1
  117. package/dist/shared/modules/index.d.ts +3 -0
  118. package/dist/shared/modules/index.d.ts.map +1 -0
  119. package/dist/shared/pages/InvitePage/components/index.d.ts +2 -0
  120. package/dist/shared/pages/InvitePage/components/index.d.ts.map +1 -0
  121. package/dist/shared/pages/InvitePage/components/invite/Invite.vue.d.ts +33 -0
  122. package/dist/shared/pages/InvitePage/components/invite/Invite.vue.d.ts.map +1 -0
  123. package/dist/shared/pages/InvitePage/components/invite/index.d.ts +32 -0
  124. package/dist/shared/pages/InvitePage/components/invite/index.d.ts.map +1 -0
  125. package/dist/shared/pages/InvitePage/index.d.ts +5 -0
  126. package/dist/shared/pages/InvitePage/index.d.ts.map +1 -0
  127. package/dist/shared/pages/InvitePage/locales/index.d.ts +3 -0
  128. package/dist/shared/pages/InvitePage/locales/index.d.ts.map +1 -0
  129. package/dist/shared/pages/LoginPage/components/index.d.ts +2 -0
  130. package/dist/shared/pages/LoginPage/components/index.d.ts.map +1 -0
  131. package/dist/shared/pages/LoginPage/components/login/Login.vue.d.ts +17 -0
  132. package/dist/shared/pages/LoginPage/components/login/Login.vue.d.ts.map +1 -0
  133. package/dist/shared/pages/LoginPage/components/login/index.d.ts +28 -0
  134. package/dist/shared/pages/LoginPage/components/login/index.d.ts.map +1 -0
  135. package/dist/shared/pages/LoginPage/index.d.ts +3 -0
  136. package/dist/shared/pages/LoginPage/index.d.ts.map +1 -0
  137. package/dist/shared/pages/LoginPage/locales/index.d.ts +3 -0
  138. package/dist/shared/pages/LoginPage/locales/index.d.ts.map +1 -0
  139. package/dist/shared/pages/LoginPage/plugin.d.ts +6 -0
  140. package/dist/shared/pages/LoginPage/plugin.d.ts.map +1 -0
  141. package/dist/shared/pages/ResetPasswordPage/components/index.d.ts +2 -0
  142. package/dist/shared/pages/ResetPasswordPage/components/index.d.ts.map +1 -0
  143. package/dist/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue.d.ts +33 -0
  144. package/dist/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue.d.ts.map +1 -0
  145. package/dist/shared/pages/ResetPasswordPage/components/reset-password/index.d.ts +32 -0
  146. package/dist/shared/pages/ResetPasswordPage/components/reset-password/index.d.ts.map +1 -0
  147. package/dist/shared/pages/ResetPasswordPage/index.d.ts +5 -0
  148. package/dist/shared/pages/ResetPasswordPage/index.d.ts.map +1 -0
  149. package/dist/shared/pages/ResetPasswordPage/locales/index.d.ts +3 -0
  150. package/dist/shared/pages/ResetPasswordPage/locales/index.d.ts.map +1 -0
  151. package/dist/shared/pages/index.d.ts +10 -0
  152. package/dist/shared/pages/index.d.ts.map +1 -0
  153. package/dist/tsconfig.tsbuildinfo +1 -1
  154. package/dist/typings/index.d.ts +8 -0
  155. package/dist/typings/index.d.ts.map +1 -0
  156. package/dist/ui/components/atoms/vc-badge/index.d.ts +56 -19
  157. package/dist/ui/components/atoms/vc-badge/index.d.ts.map +1 -1
  158. package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts +2 -2
  159. package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts.map +1 -1
  160. package/dist/ui/components/atoms/vc-button/index.d.ts +103 -49
  161. package/dist/ui/components/atoms/vc-button/index.d.ts.map +1 -1
  162. package/dist/ui/components/atoms/vc-button/vc-button.vue.d.ts +17 -11
  163. package/dist/ui/components/atoms/vc-button/vc-button.vue.d.ts.map +1 -1
  164. package/dist/ui/components/atoms/vc-card/index.d.ts +66 -44
  165. package/dist/ui/components/atoms/vc-card/index.d.ts.map +1 -1
  166. package/dist/ui/components/atoms/vc-card/vc-card.vue.d.ts +8 -6
  167. package/dist/ui/components/atoms/vc-card/vc-card.vue.d.ts.map +1 -1
  168. package/dist/ui/components/atoms/vc-checkbox/index.d.ts +74 -48
  169. package/dist/ui/components/atoms/vc-checkbox/index.d.ts.map +1 -1
  170. package/dist/ui/components/atoms/vc-checkbox/vc-checkbox.vue.d.ts +8 -5
  171. package/dist/ui/components/atoms/vc-checkbox/vc-checkbox.vue.d.ts.map +1 -1
  172. package/dist/ui/components/atoms/vc-col/index.d.ts +54 -19
  173. package/dist/ui/components/atoms/vc-col/index.d.ts.map +1 -1
  174. package/dist/ui/components/atoms/vc-col/vc-col.vue.d.ts +7 -4
  175. package/dist/ui/components/atoms/vc-col/vc-col.vue.d.ts.map +1 -1
  176. package/dist/ui/components/atoms/vc-container/index.d.ts +56 -19
  177. package/dist/ui/components/atoms/vc-container/index.d.ts.map +1 -1
  178. package/dist/ui/components/atoms/vc-container/vc-container.vue.d.ts +2 -2
  179. package/dist/ui/components/atoms/vc-container/vc-container.vue.d.ts.map +1 -1
  180. package/dist/ui/components/atoms/vc-hint/index.d.ts +53 -8
  181. package/dist/ui/components/atoms/vc-hint/index.d.ts.map +1 -1
  182. package/dist/ui/components/atoms/vc-hint/vc-hint.vue.d.ts +2 -2
  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 +4 -8
  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 +7 -4
  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 +17 -23
  189. package/dist/ui/components/atoms/vc-image/index.d.ts.map +1 -1
  190. package/dist/ui/components/atoms/vc-image/vc-image.vue.d.ts +8 -5
  191. package/dist/ui/components/atoms/vc-image/vc-image.vue.d.ts.map +1 -1
  192. package/dist/ui/components/atoms/vc-info-row/index.d.ts +10 -12
  193. package/dist/ui/components/atoms/vc-info-row/index.d.ts.map +1 -1
  194. package/dist/ui/components/atoms/vc-info-row/vc-info-row.vue.d.ts +7 -4
  195. package/dist/ui/components/atoms/vc-info-row/vc-info-row.vue.d.ts.map +1 -1
  196. package/dist/ui/components/atoms/vc-label/index.d.ts +56 -23
  197. package/dist/ui/components/atoms/vc-label/index.d.ts.map +1 -1
  198. package/dist/ui/components/atoms/vc-label/vc-label.vue.d.ts +8 -5
  199. package/dist/ui/components/atoms/vc-label/vc-label.vue.d.ts.map +1 -1
  200. package/dist/ui/components/atoms/vc-link/index.d.ts +56 -20
  201. package/dist/ui/components/atoms/vc-link/index.d.ts.map +1 -1
  202. package/dist/ui/components/atoms/vc-link/vc-link.vue.d.ts +2 -2
  203. package/dist/ui/components/atoms/vc-link/vc-link.vue.d.ts.map +1 -1
  204. package/dist/ui/components/atoms/vc-loading/index.d.ts +1 -1
  205. package/dist/ui/components/atoms/vc-loading/index.d.ts.map +1 -1
  206. package/dist/ui/components/atoms/vc-loading/vc-loading.vue.d.ts +1 -1
  207. package/dist/ui/components/atoms/vc-loading/vc-loading.vue.d.ts.map +1 -1
  208. package/dist/ui/components/atoms/vc-progress/index.d.ts +54 -27
  209. package/dist/ui/components/atoms/vc-progress/index.d.ts.map +1 -1
  210. package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts +6 -3
  211. package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts.map +1 -1
  212. package/dist/ui/components/atoms/vc-row/index.d.ts +53 -8
  213. package/dist/ui/components/atoms/vc-row/index.d.ts.map +1 -1
  214. package/dist/ui/components/atoms/vc-row/vc-row.vue.d.ts +2 -2
  215. package/dist/ui/components/atoms/vc-row/vc-row.vue.d.ts.map +1 -1
  216. package/dist/ui/components/atoms/vc-status/index.d.ts +61 -36
  217. package/dist/ui/components/atoms/vc-status/index.d.ts.map +1 -1
  218. package/dist/ui/components/atoms/vc-status/vc-status.vue.d.ts +8 -5
  219. package/dist/ui/components/atoms/vc-status/vc-status.vue.d.ts.map +1 -1
  220. package/dist/ui/components/atoms/vc-status-icon/index.d.ts +1 -1
  221. package/dist/ui/components/atoms/vc-status-icon/index.d.ts.map +1 -1
  222. package/dist/ui/components/atoms/vc-status-icon/vc-status-icon.vue.d.ts +1 -1
  223. package/dist/ui/components/atoms/vc-status-icon/vc-status-icon.vue.d.ts.map +1 -1
  224. package/dist/ui/components/atoms/vc-switch/index.d.ts +1 -1
  225. package/dist/ui/components/atoms/vc-switch/index.d.ts.map +1 -1
  226. package/dist/ui/components/atoms/vc-switch/vc-switch.vue.d.ts +1 -1
  227. package/dist/ui/components/atoms/vc-switch/vc-switch.vue.d.ts.map +1 -1
  228. package/dist/ui/components/atoms/vc-widget/index.d.ts +1 -1
  229. package/dist/ui/components/atoms/vc-widget/index.d.ts.map +1 -1
  230. package/dist/ui/components/atoms/vc-widget/vc-widget.vue.d.ts +1 -1
  231. package/dist/ui/components/atoms/vc-widget/vc-widget.vue.d.ts.map +1 -1
  232. package/dist/ui/components/index.d.ts +2 -0
  233. package/dist/ui/components/index.d.ts.map +1 -1
  234. package/dist/ui/components/molecules/vc-breadcrumbs/_internal/vc-breadcrumbs-item/vc-breadcrumbs-item.vue.d.ts +3 -3
  235. package/dist/ui/components/molecules/vc-breadcrumbs/_internal/vc-breadcrumbs-item/vc-breadcrumbs-item.vue.d.ts.map +1 -1
  236. package/dist/ui/components/molecules/vc-breadcrumbs/index.d.ts +1 -3
  237. package/dist/ui/components/molecules/vc-breadcrumbs/index.d.ts.map +1 -1
  238. package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue.d.ts +6 -3
  239. package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue.d.ts.map +1 -1
  240. package/dist/ui/components/molecules/vc-code-editor/index.d.ts +79 -65
  241. package/dist/ui/components/molecules/vc-code-editor/index.d.ts.map +1 -1
  242. package/dist/ui/components/molecules/vc-code-editor/vc-code-editor.vue.d.ts +7 -4
  243. package/dist/ui/components/molecules/vc-code-editor/vc-code-editor.vue.d.ts.map +1 -1
  244. package/dist/ui/components/molecules/vc-editor/index.d.ts +80 -69
  245. package/dist/ui/components/molecules/vc-editor/index.d.ts.map +1 -1
  246. package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts +7 -4
  247. package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts.map +1 -1
  248. package/dist/ui/components/molecules/vc-file-upload/index.d.ts +77 -65
  249. package/dist/ui/components/molecules/vc-file-upload/index.d.ts.map +1 -1
  250. package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts +7 -4
  251. package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts.map +1 -1
  252. package/dist/ui/components/molecules/vc-form/index.d.ts +53 -8
  253. package/dist/ui/components/molecules/vc-form/index.d.ts.map +1 -1
  254. package/dist/ui/components/molecules/vc-form/vc-form.vue.d.ts +2 -2
  255. package/dist/ui/components/molecules/vc-form/vc-form.vue.d.ts.map +1 -1
  256. package/dist/ui/components/molecules/vc-input/index.d.ts +116 -128
  257. package/dist/ui/components/molecules/vc-input/index.d.ts.map +1 -1
  258. package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts +17 -13
  259. package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts.map +1 -1
  260. package/dist/ui/components/molecules/vc-input-currency/index.d.ts +125 -137
  261. package/dist/ui/components/molecules/vc-input-currency/index.d.ts.map +1 -1
  262. package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts +9 -8
  263. package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts.map +1 -1
  264. package/dist/ui/components/molecules/vc-notification/index.d.ts +1 -1
  265. package/dist/ui/components/molecules/vc-notification/index.d.ts.map +1 -1
  266. package/dist/ui/components/molecules/vc-notification/vc-notification.vue.d.ts +1 -1
  267. package/dist/ui/components/molecules/vc-notification/vc-notification.vue.d.ts.map +1 -1
  268. package/dist/ui/components/molecules/vc-pagination/index.d.ts +7 -11
  269. package/dist/ui/components/molecules/vc-pagination/index.d.ts.map +1 -1
  270. package/dist/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts +6 -3
  271. package/dist/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts.map +1 -1
  272. package/dist/ui/components/molecules/vc-rating/index.d.ts +73 -55
  273. package/dist/ui/components/molecules/vc-rating/index.d.ts.map +1 -1
  274. package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts +8 -5
  275. package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts.map +1 -1
  276. package/dist/ui/components/molecules/vc-select/index.d.ts +188 -584
  277. package/dist/ui/components/molecules/vc-select/index.d.ts.map +1 -1
  278. package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts +643 -119
  279. package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts.map +1 -1
  280. package/dist/ui/components/molecules/vc-slider/index.d.ts +70 -55
  281. package/dist/ui/components/molecules/vc-slider/index.d.ts.map +1 -1
  282. package/dist/ui/components/molecules/vc-slider/vc-slider.vue.d.ts +10 -7
  283. package/dist/ui/components/molecules/vc-slider/vc-slider.vue.d.ts.map +1 -1
  284. package/dist/ui/components/molecules/vc-textarea/index.d.ts +80 -68
  285. package/dist/ui/components/molecules/vc-textarea/index.d.ts.map +1 -1
  286. package/dist/ui/components/molecules/vc-textarea/vc-textarea.vue.d.ts +7 -4
  287. package/dist/ui/components/molecules/vc-textarea/vc-textarea.vue.d.ts.map +1 -1
  288. package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue.d.ts +21 -7
  289. package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue.d.ts.map +1 -1
  290. package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue.d.ts +8 -17
  291. 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
  292. package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue.d.ts +20 -37
  293. 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
  294. package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/vc-app-menu.vue.d.ts +20 -13
  295. package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/vc-app-menu.vue.d.ts.map +1 -1
  296. package/dist/ui/components/organisms/vc-app/index.d.ts +138 -160
  297. package/dist/ui/components/organisms/vc-app/index.d.ts.map +1 -1
  298. package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts +23 -24
  299. package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts.map +1 -1
  300. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-header/vc-blade-header.vue.d.ts +4 -4
  301. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-header/vc-blade-header.vue.d.ts.map +1 -1
  302. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue.d.ts +8 -5
  303. 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
  304. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/vc-blade-toolbar.vue.d.ts +7 -4
  305. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/vc-blade-toolbar.vue.d.ts.map +1 -1
  306. package/dist/ui/components/organisms/vc-blade/index.d.ts +90 -129
  307. package/dist/ui/components/organisms/vc-blade/index.d.ts.map +1 -1
  308. package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts +11 -15
  309. package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts.map +1 -1
  310. package/dist/ui/components/organisms/vc-dynamic-property/index.d.ts +3 -5
  311. package/dist/ui/components/organisms/vc-dynamic-property/index.d.ts.map +1 -1
  312. package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts +6 -3
  313. package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts.map +1 -1
  314. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts +7 -4
  315. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts.map +1 -1
  316. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts +18 -7
  317. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts.map +1 -1
  318. package/dist/ui/components/organisms/vc-gallery/index.d.ts +37 -52
  319. package/dist/ui/components/organisms/vc-gallery/index.d.ts.map +1 -1
  320. package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts +8 -8
  321. package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts.map +1 -1
  322. package/dist/ui/components/organisms/vc-login-form/index.d.ts +62 -31
  323. package/dist/ui/components/organisms/vc-login-form/index.d.ts.map +1 -1
  324. package/dist/ui/components/organisms/vc-login-form/vc-login-form.vue.d.ts +7 -4
  325. package/dist/ui/components/organisms/vc-login-form/vc-login-form.vue.d.ts.map +1 -1
  326. package/dist/ui/components/organisms/vc-notification-dropdown/_internal/notification/notification.vue.d.ts +32 -0
  327. package/dist/ui/components/organisms/vc-notification-dropdown/_internal/notification/notification.vue.d.ts.map +1 -0
  328. package/dist/ui/components/organisms/vc-notification-dropdown/index.d.ts +44 -0
  329. package/dist/ui/components/organisms/vc-notification-dropdown/index.d.ts.map +1 -0
  330. package/dist/ui/components/organisms/vc-notification-dropdown/vc-notification-dropdown.vue.d.ts +22 -0
  331. package/dist/ui/components/organisms/vc-notification-dropdown/vc-notification-dropdown.vue.d.ts.map +1 -0
  332. package/dist/ui/components/organisms/vc-notification-template/index.d.ts +135 -0
  333. package/dist/ui/components/organisms/vc-notification-template/index.d.ts.map +1 -0
  334. package/dist/ui/components/organisms/vc-notification-template/vc-notification-template.vue.d.ts +24 -0
  335. package/dist/ui/components/organisms/vc-notification-template/vc-notification-template.vue.d.ts.map +1 -0
  336. package/dist/ui/components/organisms/vc-popup/_internal/vc-popup-error/vc-popup-error.vue.d.ts +17 -0
  337. package/dist/ui/components/organisms/vc-popup/_internal/vc-popup-error/vc-popup-error.vue.d.ts.map +1 -0
  338. package/dist/ui/components/organisms/vc-popup/_internal/vc-popup-warning/vc-popup-warning.vue.d.ts +20 -0
  339. package/dist/ui/components/organisms/vc-popup/_internal/vc-popup-warning/vc-popup-warning.vue.d.ts.map +1 -0
  340. package/dist/ui/components/organisms/vc-popup/index.d.ts +87 -42
  341. package/dist/ui/components/organisms/vc-popup/index.d.ts.map +1 -1
  342. package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts +16 -6
  343. package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts.map +1 -1
  344. package/dist/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue.d.ts +1 -1
  345. package/dist/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue.d.ts.map +1 -1
  346. package/dist/ui/components/organisms/vc-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue.d.ts +6 -3
  347. package/dist/ui/components/organisms/vc-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue.d.ts.map +1 -1
  348. package/dist/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts +6 -3
  349. package/dist/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts.map +1 -1
  350. package/dist/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue.d.ts +10 -6
  351. package/dist/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue.d.ts.map +1 -1
  352. package/dist/ui/components/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue.d.ts +48 -47
  353. package/dist/ui/components/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue.d.ts.map +1 -1
  354. package/dist/ui/components/organisms/vc-table/index.d.ts +205 -661
  355. package/dist/ui/components/organisms/vc-table/index.d.ts.map +1 -1
  356. package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts +186 -135
  357. package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts.map +1 -1
  358. package/dist/ui/types/index.d.ts +2 -0
  359. package/dist/ui/types/index.d.ts.map +1 -1
  360. package/package.json +25 -22
  361. package/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue +3 -2
  362. package/shared/components/app-switcher/composables/useAppSwitcher/index.ts +5 -3
  363. package/shared/components/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue +26 -34
  364. package/shared/components/blade-navigation/composables/useBladeNavigation/index.ts +104 -69
  365. package/shared/components/blade-navigation/index.ts +1 -12
  366. package/shared/components/blade-navigation/plugin.ts +33 -0
  367. package/shared/components/blade-navigation/types/index.ts +59 -36
  368. package/shared/components/change-password/change-password.vue +167 -0
  369. package/shared/components/change-password/index.ts +10 -0
  370. package/{core/plugins → shared/components}/error-interceptor/interceptor.ts +1 -1
  371. package/shared/components/index.ts +8 -0
  372. package/shared/components/language-selector/index.ts +10 -0
  373. package/shared/components/language-selector/language-selector.vue +60 -0
  374. package/shared/components/notifications/composables/useContainer/index.ts +2 -2
  375. package/shared/components/notifications/core/notification.ts +3 -3
  376. package/shared/components/notifications/index.ts +0 -11
  377. package/shared/components/notifications/types/index.ts +4 -1
  378. package/shared/components/popup-handler/components/index.ts +1 -0
  379. package/shared/components/popup-handler/components/vc-popup-container/index.ts +3 -0
  380. package/shared/components/popup-handler/components/vc-popup-container/vc-popup-container.vue +25 -0
  381. package/shared/components/popup-handler/composables/index.ts +1 -0
  382. package/shared/components/popup-handler/composables/usePopup/index.ts +129 -0
  383. package/shared/components/popup-handler/index.ts +19 -0
  384. package/shared/components/popup-handler/plugin.ts +24 -0
  385. package/shared/components/popup-handler/types/index.ts +28 -0
  386. package/shared/components/popup-handler/utils/index.ts +9 -0
  387. package/shared/components/user-dropdown-button/index.ts +10 -0
  388. package/shared/components/user-dropdown-button/user-dropdown-button.vue +124 -0
  389. package/shared/index.ts +14 -8
  390. package/shared/locales/en.json +35 -0
  391. package/shared/locales/index.ts +2 -0
  392. package/shared/modules/assets/components/assets-details/assets-details.vue +12 -16
  393. package/shared/modules/assets-manager/components/assets-manager/assets-manager.vue +32 -35
  394. package/shared/modules/index.ts +2 -0
  395. package/shared/pages/InvitePage/components/index.ts +1 -0
  396. package/shared/pages/InvitePage/components/invite/Invite.vue +172 -0
  397. package/shared/pages/InvitePage/components/invite/index.ts +3 -0
  398. package/shared/pages/InvitePage/index.ts +7 -0
  399. package/shared/pages/InvitePage/locales/en.json +31 -0
  400. package/shared/pages/InvitePage/locales/index.ts +2 -0
  401. package/shared/pages/LoginPage/components/index.ts +1 -0
  402. package/shared/pages/LoginPage/components/login/Login.vue +283 -0
  403. package/shared/pages/LoginPage/components/login/index.ts +3 -0
  404. package/shared/pages/LoginPage/index.ts +2 -0
  405. package/shared/pages/LoginPage/locales/en.json +36 -0
  406. package/shared/pages/LoginPage/locales/index.ts +2 -0
  407. package/shared/pages/LoginPage/plugin.ts +17 -0
  408. package/shared/pages/ResetPasswordPage/components/index.ts +1 -0
  409. package/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue +166 -0
  410. package/shared/pages/ResetPasswordPage/components/reset-password/index.ts +3 -0
  411. package/shared/pages/ResetPasswordPage/index.ts +7 -0
  412. package/shared/pages/ResetPasswordPage/locales/en.json +28 -0
  413. package/shared/pages/ResetPasswordPage/locales/index.ts +2 -0
  414. package/shared/pages/index.ts +12 -0
  415. package/ui/components/atoms/vc-button/vc-button.vue +110 -144
  416. package/ui/components/atoms/vc-card/vc-card.vue +2 -2
  417. package/ui/components/atoms/vc-info-row/vc-info-row.vue +2 -2
  418. package/ui/components/atoms/vc-label/vc-label.vue +1 -1
  419. package/ui/components/atoms/vc-loading/vc-loading.vue +1 -1
  420. package/ui/components/atoms/vc-switch/vc-switch.vue +1 -1
  421. package/ui/components/index.ts +2 -0
  422. package/ui/components/molecules/vc-code-editor/vc-code-editor.vue +3 -3
  423. package/ui/components/molecules/vc-editor/vc-editor.vue +3 -3
  424. package/ui/components/molecules/vc-file-upload/vc-file-upload.vue +2 -2
  425. package/ui/components/molecules/vc-input/vc-input.vue +17 -17
  426. package/ui/components/molecules/vc-input-currency/vc-input-currency.vue +8 -8
  427. package/ui/components/molecules/vc-notification/vc-notification.vue +1 -1
  428. package/ui/components/molecules/vc-rating/vc-rating.vue +1 -1
  429. package/ui/components/molecules/vc-select/index.ts +1 -86
  430. package/ui/components/molecules/vc-select/vc-select.stories.ts +1 -1
  431. package/ui/components/molecules/vc-select/vc-select.vue +276 -198
  432. package/ui/components/molecules/vc-slider/vc-slider.vue +3 -3
  433. package/ui/components/molecules/vc-textarea/vc-textarea.vue +2 -2
  434. package/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue +21 -16
  435. package/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue +5 -9
  436. package/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue +21 -31
  437. package/ui/components/organisms/vc-app/_internal/vc-app-menu/vc-app-menu.vue +22 -16
  438. package/ui/components/organisms/vc-app/vc-app.vue +24 -24
  439. package/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue +10 -13
  440. package/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/vc-blade-toolbar.vue +4 -4
  441. package/ui/components/organisms/vc-blade/vc-blade.vue +32 -47
  442. package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue +84 -84
  443. package/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue +3 -3
  444. package/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue +9 -3
  445. package/ui/components/organisms/vc-gallery/vc-gallery.vue +27 -23
  446. package/ui/components/organisms/vc-login-form/vc-login-form.stories.ts +1 -1
  447. package/ui/components/organisms/vc-notification-dropdown/_internal/notification/notification.vue +63 -0
  448. package/ui/components/organisms/vc-notification-dropdown/index.ts +3 -0
  449. package/ui/components/organisms/vc-notification-dropdown/vc-notification-dropdown.vue +125 -0
  450. package/ui/components/organisms/vc-notification-template/index.ts +3 -0
  451. package/ui/components/organisms/vc-notification-template/vc-notification-template.vue +33 -0
  452. package/ui/components/organisms/vc-popup/_internal/vc-popup-error/vc-popup-error.vue +28 -0
  453. package/ui/components/organisms/vc-popup/_internal/vc-popup-warning/vc-popup-warning.vue +33 -0
  454. package/ui/components/organisms/vc-popup/vc-popup.vue +62 -7
  455. package/ui/components/organisms/vc-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue +6 -6
  456. package/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue +10 -13
  457. package/ui/components/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue +27 -24
  458. package/ui/components/organisms/vc-table/index.ts +1 -17
  459. package/ui/components/organisms/vc-table/vc-table.stories.ts +1 -1
  460. package/ui/components/organisms/vc-table/vc-table.vue +163 -148
  461. package/ui/locales/en.json +21 -10
  462. package/ui/types/index.ts +2 -0
  463. package/core/directives/click-outside/index.ts +0 -21
  464. package/dist/core/directives/click-outside/index.d.ts +0 -3
  465. package/dist/core/directives/click-outside/index.d.ts.map +0 -1
  466. package/dist/core/plugins/error-interceptor/index.d.ts.map +0 -1
  467. package/dist/core/plugins/error-interceptor/interceptor.d.ts.map +0 -1
  468. /package/{core/plugins → shared/components}/error-interceptor/index.ts +0 -0
@@ -0,0 +1,7 @@
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
+ export * from "./components";
@@ -0,0 +1,31 @@
1
+ {
2
+ "INVITATION": {
3
+ "TITLE": "New user activation",
4
+ "FIELDS": {
5
+ "EMAIL": {
6
+ "LABEL": "Email"
7
+ },
8
+ "PASSWORD": {
9
+ "LABEL": "New password",
10
+ "PLACEHOLDER": "Enter password"
11
+ },
12
+ "CONFIRM_PASSWORD": {
13
+ "LABEL": "Confirm password",
14
+ "PLACEHOLDER": "Confirm password"
15
+ }
16
+ },
17
+ "ACCEPT_INVITATION": "Activate",
18
+ "ERRORS": {
19
+ "Repeat-password": "Passwords are not same",
20
+ "Invalid-token": "Token is invalid or expired",
21
+ "Password-too-weak": "New password does not comply one or more password security policies:",
22
+ "PasswordTooShort": "Passwords too short",
23
+ "PasswordRequiresUniqueChars": "Passwords must use different characters",
24
+ "PasswordRequiresLower": "Passwords must have at least one lowercase ('a'-'z')",
25
+ "PasswordRequiresUpper": "Passwords must have at least one uppercase ('A'-'Z')",
26
+ "PasswordRequiresDigit": "Passwords must have at least one digit ('0'-'9')",
27
+ "PasswordRequiresNonAlphanumeric": "Passwords must have at least one non alphanumeric character",
28
+ "recentPasswordUsed": "You have used this password in the past. Choose another one."
29
+ }
30
+ }
31
+ }
@@ -0,0 +1,2 @@
1
+ import * as en from "./en.json";
2
+ export { en };
@@ -0,0 +1 @@
1
+ export * from "./login";
@@ -0,0 +1,283 @@
1
+ <template>
2
+ <VcLoginForm
3
+ :logo="customization.logo"
4
+ :background="background"
5
+ :title="title"
6
+ >
7
+ <template v-if="isLogin">
8
+ <VcForm @submit.prevent="login">
9
+ <Field
10
+ v-slot="{ field, errorMessage, handleChange, errors }"
11
+ :label="$t('LOGIN.FIELDS.LOGIN.LABEL')"
12
+ name="username"
13
+ :model-value="form.username"
14
+ rules="required"
15
+ >
16
+ <VcInput
17
+ v-bind="field"
18
+ ref="loginField"
19
+ v-model="form.username"
20
+ class="tw-mb-4 tw-mt-1"
21
+ :label="$t('LOGIN.FIELDS.LOGIN.LABEL')"
22
+ :placeholder="$t('LOGIN.FIELDS.LOGIN.PLACEHOLDER')"
23
+ required
24
+ :error="!!errors.length"
25
+ :error-message="errorMessage"
26
+ @update:model-value="handleChange"
27
+ />
28
+ </Field>
29
+ <Field
30
+ v-slot="{ field, errorMessage, handleChange, errors }"
31
+ :label="$t('LOGIN.FIELDS.PASSWORD.LABEL')"
32
+ name="password"
33
+ :model-value="form.password"
34
+ rules="required"
35
+ >
36
+ <VcInput
37
+ v-bind="field"
38
+ ref="passwordField"
39
+ v-model="form.password"
40
+ class="tw-mb-4"
41
+ :label="$t('LOGIN.FIELDS.PASSWORD.LABEL')"
42
+ :placeholder="$t('LOGIN.FIELDS.PASSWORD.PLACEHOLDER')"
43
+ type="password"
44
+ required
45
+ :error="!!errors.length"
46
+ :error-message="errorMessage"
47
+ @keyup.enter="login"
48
+ @update:model-value="handleChange"
49
+ />
50
+ </Field>
51
+
52
+ <div class="tw-flex tw-justify-end tw-items-center tw-pt-2">
53
+ <VcButton
54
+ text
55
+ type="button"
56
+ @click="togglePassRequest"
57
+ >
58
+ {{ $t("LOGIN.FORGOT_PASSWORD_BUTTON") }}
59
+ </VcButton>
60
+ </div>
61
+ <div class="tw-flex tw-justify-center tw-items-center tw-pt-2">
62
+ <vc-button
63
+ :disabled="loading || !isValid"
64
+ class="tw-w-28"
65
+ @click="login"
66
+ >
67
+ {{ $t("LOGIN.BUTTON") }}
68
+ </vc-button>
69
+ </div>
70
+ </VcForm>
71
+ <div
72
+ v-if="azureAdAuthAvailable && azureAdAuthCaption"
73
+ class="tw-mt-4"
74
+ >
75
+ <div
76
+ class="tw-flex tw-items-center tw-text-center tw-uppercase tw-text-[color:var(--separator-text)] before:tw-content-[''] before:tw-flex-1 before:tw-border-b before:tw-border-b-[color:var(--separator)] before:tw-mr-2 after:tw-content-[''] after:tw-flex-1 after:tw-border-b after:tw-border-b-[color:var(--separator)] after:tw-ml-2"
77
+ >
78
+ OR
79
+ </div>
80
+ <div class="tw-flex tw-justify-center tw-mt-4">
81
+ <VcButton
82
+ outline
83
+ @click="azureSignOn"
84
+ ><div class="tw-flex tw-flex-row tw-items-center">
85
+ <img
86
+ :src="AzureAdIcon"
87
+ alt="AzureAd"
88
+ class="tw-h-5 tw-mr-2"
89
+ />{{ azureAdAuthCaption }}
90
+ </div></VcButton
91
+ >
92
+ </div>
93
+ </div>
94
+ </template>
95
+ <template v-else>
96
+ <template v-if="!forgotPasswordRequestSent">
97
+ <VcForm @submit.prevent="forgot">
98
+ <Field
99
+ v-slot="{ field, errorMessage, handleChange, errors }"
100
+ :label="$t('LOGIN.FIELDS.FORGOT_PASSWORD.LABEL')"
101
+ name="loginOrEmail"
102
+ :model-value="forgotPasswordForm.loginOrEmail"
103
+ rules="required|email"
104
+ >
105
+ <VcInput
106
+ v-bind="field"
107
+ ref="forgotPasswordField"
108
+ v-model="forgotPasswordForm.loginOrEmail"
109
+ class="tw-mb-4 tw-mt-1"
110
+ :label="$t('LOGIN.FIELDS.FORGOT_PASSWORD.LABEL')"
111
+ :placeholder="$t('LOGIN.FIELDS.FORGOT_PASSWORD.PLACEHOLDER')"
112
+ :hint="$t('LOGIN.RESET_EMAIL_TEXT')"
113
+ required
114
+ :error="!!errors.length"
115
+ :error-message="errorMessage"
116
+ @update:model-value="handleChange"
117
+ ></VcInput>
118
+ </Field>
119
+ <div class="tw-flex tw-justify-between tw-items-center tw-pt-2">
120
+ <vc-button
121
+ text
122
+ type="button"
123
+ @click="togglePassRequest"
124
+ >
125
+ {{ $t("LOGIN.BACK_BUTTON") }}
126
+ </vc-button>
127
+ <vc-button
128
+ :disabled="loading || isDisabled"
129
+ @click="forgot"
130
+ >
131
+ {{ $t("LOGIN.FORGOT_BUTTON") }}
132
+ </vc-button>
133
+ </div>
134
+ </VcForm>
135
+ </template>
136
+
137
+ <template v-if="requestPassResult.succeeded && forgotPasswordRequestSent">
138
+ <div>{{ $t("LOGIN.RESET_EMAIL_SENT") }}</div>
139
+ <div class="tw-flex tw-justify-center tw-items-center tw-pt-2">
140
+ <span
141
+ v-if="$isDesktop.value"
142
+ class="tw-grow tw-basis-0"
143
+ ></span>
144
+ <vc-button
145
+ :disabled="loading"
146
+ @click="togglePassRequest"
147
+ >
148
+ {{ $t("LOGIN.BUTTON_OK") }}
149
+ </vc-button>
150
+ </div>
151
+ </template>
152
+ </template>
153
+
154
+ <VcHint
155
+ v-if="!signInResult.succeeded"
156
+ class="tw-mt-3"
157
+ style="color: #f14e4e"
158
+ >
159
+ <!-- TODO: stylizing-->
160
+ {{ signInResult.error }}
161
+ </VcHint>
162
+ <VcHint
163
+ v-if="!requestPassResult.succeeded"
164
+ class="tw-mt-3"
165
+ style="color: #f14e4e"
166
+ >
167
+ <!-- TODO: stylizing-->
168
+ {{ requestPassResult.error }}
169
+ </VcHint>
170
+ </VcLoginForm>
171
+ </template>
172
+
173
+ <script lang="ts" setup>
174
+ import { ref, reactive, computed, onMounted, inject } from "vue";
175
+ import { useRouter } from "vue-router";
176
+ import { useIsFormValid, Field, useIsFormDirty, useForm } from "vee-validate";
177
+ import { useSettings, useUser } from "./../../../../../core/composables";
178
+ import { RequestPasswordResult, SignInResults } from "./../../../../../core/types";
179
+ import { CommonPageComposables } from "typings";
180
+ import { asyncComputed } from "@vueuse/core";
181
+ import AzureAdIcon from "./../../../../../assets/img/AzureAd.svg";
182
+
183
+ export interface Props {
184
+ logo: string;
185
+ background: string;
186
+ title: string;
187
+ }
188
+
189
+ const props = defineProps<Props>();
190
+
191
+ const router = useRouter();
192
+
193
+ useForm({ validateOnMount: false });
194
+ const { getUiCustomizationSettings, uiSettings } = useSettings();
195
+ const { useLogin } = inject<CommonPageComposables>("commonPageComposables");
196
+
197
+ const signInResult = ref<SignInResults>({ succeeded: true });
198
+ const requestPassResult = ref<RequestPasswordResult>({ succeeded: true });
199
+ const forgotPasswordRequestSent = ref(false);
200
+ const { signIn, loading, loadUser, externalSignIn, isAzureAdAuthAvailable, getAzureAdAuthCaption } = useUser();
201
+ const { forgotPassword } = useLogin();
202
+ const isLogin = ref(true);
203
+ const isValid = useIsFormValid();
204
+ const isDirty = useIsFormDirty();
205
+ const customizationLoading = ref(false);
206
+
207
+ onMounted(async () => {
208
+ try {
209
+ customizationLoading.value = true;
210
+ await getUiCustomizationSettings(import.meta.env.APP_PLATFORM_URL);
211
+ } finally {
212
+ customizationLoading.value = false;
213
+ }
214
+ });
215
+
216
+ const customization = computed(() => {
217
+ return (
218
+ !customizationLoading.value && {
219
+ logo: uiSettings.value?.logo || props.logo,
220
+ }
221
+ );
222
+ });
223
+
224
+ const isDisabled = computed(() => {
225
+ return !isDirty.value || !isValid.value;
226
+ });
227
+
228
+ const azureAdAuthAvailable = asyncComputed(async () => {
229
+ return await isAzureAdAuthAvailable();
230
+ });
231
+ const azureAdAuthCaption = asyncComputed(async () => {
232
+ return await getAzureAdAuthCaption();
233
+ });
234
+
235
+ const form = reactive({
236
+ username: "",
237
+ password: "",
238
+ });
239
+
240
+ const forgotPasswordForm = reactive({
241
+ loginOrEmail: "",
242
+ });
243
+
244
+ const login = async () => {
245
+ if (isValid.value) {
246
+ signInResult.value = await signIn(form.username, form.password);
247
+
248
+ if (signInResult.value.succeeded) {
249
+ router.push("/");
250
+ }
251
+ }
252
+ };
253
+
254
+ const forgot = async () => {
255
+ if (isValid.value) {
256
+ await forgotPassword({ loginOrEmail: forgotPasswordForm.loginOrEmail });
257
+ forgotPasswordRequestSent.value = true;
258
+ }
259
+ };
260
+
261
+ const togglePassRequest = () => {
262
+ isLogin.value = !isLogin.value;
263
+ if (isLogin.value) {
264
+ forgotPasswordRequestSent.value = false;
265
+ forgotPasswordForm.loginOrEmail = "";
266
+ requestPassResult.value.error = "";
267
+ }
268
+ };
269
+
270
+ const azureSignOn = async () => {
271
+ await externalSignIn("AzureAD", import.meta.env.BASE_URL);
272
+ await loadUser();
273
+ };
274
+
275
+ console.debug("Init login-page");
276
+ </script>
277
+
278
+ <style lang="scss">
279
+ :root {
280
+ --separator: #d3dbe9;
281
+ --separator-text: #83a3be;
282
+ }
283
+ </style>
@@ -0,0 +1,3 @@
1
+ import _Login from "./Login.vue";
2
+
3
+ export const Login = _Login as typeof _Login;
@@ -0,0 +1,2 @@
1
+ export * from "./plugin";
2
+ export * from "./components";
@@ -0,0 +1,36 @@
1
+ {
2
+ "LOGIN": {
3
+ "FIELDS": {
4
+ "LOGIN": {
5
+ "LABEL": "Username",
6
+ "PLACEHOLDER": "Enter your username"
7
+ },
8
+ "PASSWORD": {
9
+ "LABEL": "Password",
10
+ "PLACEHOLDER": "Enter your password"
11
+ },
12
+ "FORGOT_PASSWORD": {
13
+ "TITLE": "Forgot password",
14
+ "LABEL": "Email",
15
+ "PLACEHOLDER": "Please enter your email"
16
+ }
17
+ },
18
+ "FORGOT_PASSWORD_BUTTON": "Forgot your password?",
19
+ "BUTTON": "Log in",
20
+ "FORGOT_BUTTON": "Submit",
21
+ "BACK_BUTTON": "Back",
22
+ "BUTTON_OK": "Ok",
23
+ "RESET_EMAIL_TEXT": "We will send you an email with instructions on how to reset your password.",
24
+ "RESET_EMAIL_SENT": "Email with instructions has been sent to you."
25
+ },
26
+ "MENU": {
27
+ "DASHBOARD": "Home"
28
+ },
29
+ "TOOLBAR": {
30
+ "LOGIN": "Log In",
31
+ "SETTINGS": "Settings",
32
+ "HELP": "Help",
33
+ "NOTIFICATIONS": "Notifications",
34
+ "LANGUAGE": "Language selector"
35
+ }
36
+ }
@@ -0,0 +1,2 @@
1
+ import * as en from "./en.json";
2
+ export { en };
@@ -0,0 +1,17 @@
1
+ import { App } from "vue";
2
+ import { createModule } from "./../../../core/plugins";
3
+ import * as components from "./components";
4
+ import * as locales from "./locales";
5
+ import { CommonPageComposables } from "./../../../typings";
6
+
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
+ };
@@ -0,0 +1 @@
1
+ export * from "./reset-password";
@@ -0,0 +1,166 @@
1
+ <template>
2
+ <div class="vc-app tw-w-full tw-h-full tw-box-border tw-flex tw-flex-col tw-m-0 vc-theme_light">
3
+ <VcLoading
4
+ v-if="loading"
5
+ active
6
+ ></VcLoading>
7
+
8
+ <VcLoginForm
9
+ logo="/assets/logo-white.svg"
10
+ background="/assets/background.jpg"
11
+ :title="$t('PASSWORDRESET.TITLE')"
12
+ >
13
+ <VcForm>
14
+ <Field
15
+ v-slot="{ field, errorMessage, handleChange, errors }"
16
+ :label="$t('PASSWORDRESET.FIELDS.PASSWORD.LABEL')"
17
+ name="password"
18
+ :model-value="form.password"
19
+ rules="required"
20
+ >
21
+ <VcInput
22
+ v-bind="field"
23
+ ref="passwordField"
24
+ v-model="form.password"
25
+ class="tw-mb-4 tw-mt-1"
26
+ :label="$t('PASSWORDRESET.FIELDS.PASSWORD.LABEL')"
27
+ :placeholder="$t('PASSWORDRESET.FIELDS.PASSWORD.PLACEHOLDER')"
28
+ type="password"
29
+ :disabled="!form.tokenIsValid"
30
+ required
31
+ :error="!!errors.length"
32
+ :error-message="errorMessage"
33
+ @update:model-value="
34
+ (e) => {
35
+ handleChange(e);
36
+ validate();
37
+ }
38
+ "
39
+ />
40
+ </Field>
41
+ <Field
42
+ v-slot="{ field, errorMessage, handleChange, errors }"
43
+ :label="$t('PASSWORDRESET.FIELDS.CONFIRM_PASSWORD.LABEL')"
44
+ name="confirm_password"
45
+ :model-value="form.confirmPassword"
46
+ rules="required"
47
+ >
48
+ <VcInput
49
+ v-bind="field"
50
+ ref="confirmPasswordField"
51
+ v-model="form.confirmPassword"
52
+ class="tw-mb-4"
53
+ :label="$t('PASSWORDRESET.FIELDS.CONFIRM_PASSWORD.LABEL')"
54
+ :placeholder="$t('PASSWORDRESET.FIELDS.CONFIRM_PASSWORD.PLACEHOLDER')"
55
+ :disabled="!form.tokenIsValid"
56
+ type="password"
57
+ required
58
+ :error="!!errors.length"
59
+ :error-message="errorMessage"
60
+ @update:model-value="
61
+ (e) => {
62
+ handleChange(e);
63
+ validate();
64
+ }
65
+ "
66
+ @keyup.enter="resetPassword"
67
+ >
68
+ </VcInput>
69
+ </Field>
70
+ <div class="tw-flex tw-justify-center tw-items-center tw-pt-2">
71
+ <span
72
+ v-if="$isDesktop.value"
73
+ class="tw-grow tw-basis-0"
74
+ ></span>
75
+ <vc-button
76
+ :disabled="disableButton"
77
+ @click="resetPassword"
78
+ >
79
+ {{ $t("PASSWORDRESET.SAVE_PASSWORD") }}
80
+ </vc-button>
81
+ </div>
82
+
83
+ <VcHint
84
+ v-for="error in form.errors"
85
+ :key="error"
86
+ class="tw-mt-3 !tw-text-[#f14e4e]"
87
+ >
88
+ <!-- TODO: stylizing-->
89
+ {{ $t(`PASSWORDRESET.ERRORS.${error}`) }}
90
+ </VcHint>
91
+ </VcForm>
92
+ </VcLoginForm>
93
+ </div>
94
+ </template>
95
+
96
+ <script lang="ts" setup>
97
+ import { reactive, onMounted, computed } from "vue";
98
+ import { useRouter } from "vue-router";
99
+ import { Field, useForm } from "vee-validate";
100
+ import { useUser } from "./../../../../../core/composables";
101
+
102
+ const props = defineProps({
103
+ userId: {
104
+ type: String,
105
+ default: undefined,
106
+ },
107
+ userName: {
108
+ type: String,
109
+ default: undefined,
110
+ },
111
+ token: {
112
+ type: String,
113
+ default: undefined,
114
+ },
115
+ });
116
+ const { validateToken, validatePassword, resetPasswordByToken, signIn, loading } = useUser();
117
+ const router = useRouter();
118
+ const { validate: veeValidate } = useForm({ validateOnMount: false });
119
+
120
+ const form = reactive({
121
+ isValid: false,
122
+ tokenIsValid: false,
123
+ errors: [],
124
+ password: "",
125
+ confirmPassword: "",
126
+ });
127
+
128
+ onMounted(async () => {
129
+ form.tokenIsValid = await validateToken(props.userId, props.token);
130
+ if (!form.tokenIsValid) {
131
+ form.errors.push("Invalid-token");
132
+ }
133
+ });
134
+
135
+ const disableButton = computed(() => {
136
+ return loading.value || !form.password || !form.confirmPassword || (!form.isValid && form.tokenIsValid);
137
+ });
138
+
139
+ const validate = async () => {
140
+ if (form.tokenIsValid) {
141
+ const errors = (await validatePassword(form.password)).errors;
142
+ form.errors = errors.map((x) => x.code);
143
+ if (form.confirmPassword !== form.password) {
144
+ form.errors.push("Repeat-password");
145
+ }
146
+ form.isValid = form.errors.length == 0;
147
+ }
148
+ };
149
+
150
+ const resetPassword = async () => {
151
+ const { valid } = await veeValidate();
152
+ if (valid) {
153
+ const result = await resetPasswordByToken(props.userId, form.password, props.token);
154
+ if (result.succeeded) {
155
+ const result = await signIn(props.userName, form.password);
156
+ if (result.succeeded) {
157
+ router.push("/");
158
+ } else {
159
+ form.errors = [result.errorCode];
160
+ }
161
+ } else {
162
+ form.errors = result.errors;
163
+ }
164
+ }
165
+ };
166
+ </script>
@@ -0,0 +1,3 @@
1
+ import _ResetPassword from "./ResetPassword.vue";
2
+
3
+ export const ResetPassword = _ResetPassword as typeof _ResetPassword;
@@ -0,0 +1,7 @@
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
+ export * from "./components";
@@ -0,0 +1,28 @@
1
+ {
2
+ "PASSWORDRESET": {
3
+ "TITLE": "Password reset",
4
+ "FIELDS": {
5
+ "PASSWORD": {
6
+ "LABEL": "New password",
7
+ "PLACEHOLDER": "Enter password"
8
+ },
9
+ "CONFIRM_PASSWORD": {
10
+ "LABEL": "Confirm password",
11
+ "PLACEHOLDER": "Confirm password"
12
+ }
13
+ },
14
+ "SAVE_PASSWORD": "Save",
15
+ "ERRORS": {
16
+ "Repeat-password": "Passwords are not same",
17
+ "Invalid-token": "Token is invalid or expired",
18
+ "Password-too-weak": "New password does not comply one or more password security policies:",
19
+ "PasswordTooShort": "Passwords too short",
20
+ "PasswordRequiresUniqueChars": "Passwords must use different characters",
21
+ "PasswordRequiresLower": "Passwords must have at least one lowercase ('a'-'z')",
22
+ "PasswordRequiresUpper": "Passwords must have at least one uppercase ('A'-'Z')",
23
+ "PasswordRequiresDigit": "Passwords must have at least one digit ('0'-'9')",
24
+ "PasswordRequiresNonAlphanumeric": "Passwords must have at least one non alphanumeric character",
25
+ "recentPasswordUsed": "You have used this password in the past. Choose another one."
26
+ }
27
+ }
28
+ }
@@ -0,0 +1,2 @@
1
+ import * as en from "./en.json";
2
+ export { en };
@@ -0,0 +1,12 @@
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
+ export * from "./InvitePage";
11
+ export * from "./LoginPage";
12
+ export * from "./ResetPasswordPage";