@vc-shell/framework 1.0.69 → 1.0.70

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 (373) hide show
  1. package/CHANGELOG.md +38 -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 +24 -30
  6. package/core/composables/useUser/index.ts +1 -1
  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 +3 -5
  19. package/dist/core/composables/useNotifications/index.d.ts.map +1 -1
  20. package/dist/core/directives/autofocus/index.d.ts +1 -1
  21. package/dist/core/directives/autofocus/index.d.ts.map +1 -1
  22. package/dist/core/directives/index.d.ts +0 -1
  23. package/dist/core/directives/index.d.ts.map +1 -1
  24. package/dist/core/directives/loading/index.d.ts +1 -1
  25. package/dist/core/directives/loading/index.d.ts.map +1 -1
  26. package/dist/core/directives/permissions/index.d.ts +1 -1
  27. package/dist/core/directives/permissions/index.d.ts.map +1 -1
  28. package/dist/core/plugins/index.d.ts +1 -1
  29. package/dist/core/plugins/index.d.ts.map +1 -1
  30. package/dist/core/plugins/modularity/index.d.ts +1 -1
  31. package/dist/core/plugins/modularity/index.d.ts.map +1 -1
  32. package/dist/core/plugins/signalR/index.d.ts +4 -0
  33. package/dist/core/plugins/signalR/index.d.ts.map +1 -0
  34. package/dist/core/types/index.d.ts +46 -20
  35. package/dist/core/types/index.d.ts.map +1 -1
  36. package/dist/framework.mjs +29318 -28417
  37. package/dist/index.css +1 -1
  38. package/dist/index.d.ts.map +1 -1
  39. package/dist/shared/components/app-switcher/components/vc-app-switcher/index.d.ts +1 -3
  40. package/dist/shared/components/app-switcher/components/vc-app-switcher/index.d.ts.map +1 -1
  41. package/dist/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue.d.ts +6 -3
  42. package/dist/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue.d.ts.map +1 -1
  43. package/dist/shared/components/app-switcher/composables/useAppSwitcher/index.d.ts.map +1 -1
  44. package/dist/shared/components/blade-navigation/components/vc-blade-navigation/index.d.ts +13 -456
  45. package/dist/shared/components/blade-navigation/components/vc-blade-navigation/index.d.ts.map +1 -1
  46. package/dist/shared/components/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue.d.ts +19 -454
  47. package/dist/shared/components/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue.d.ts.map +1 -1
  48. package/dist/shared/components/blade-navigation/composables/useBladeNavigation/index.d.ts +2 -3
  49. package/dist/shared/components/blade-navigation/composables/useBladeNavigation/index.d.ts.map +1 -1
  50. package/dist/shared/components/blade-navigation/index.d.ts +1 -9
  51. package/dist/shared/components/blade-navigation/index.d.ts.map +1 -1
  52. package/dist/shared/components/blade-navigation/plugin.d.ts +13 -0
  53. package/dist/shared/components/blade-navigation/plugin.d.ts.map +1 -0
  54. package/dist/shared/components/blade-navigation/types/index.d.ts +53 -26
  55. package/dist/shared/components/blade-navigation/types/index.d.ts.map +1 -1
  56. package/dist/{core/plugins → shared/components}/error-interceptor/index.d.ts +53 -15
  57. package/dist/shared/components/error-interceptor/index.d.ts.map +1 -0
  58. package/dist/{core/plugins → shared/components}/error-interceptor/interceptor.d.ts +1 -1
  59. package/dist/shared/components/error-interceptor/interceptor.d.ts.map +1 -0
  60. package/dist/shared/components/notifications/components/notification-container/index.d.ts +13 -13
  61. package/dist/shared/components/notifications/components/notification-container/index.d.ts.map +1 -1
  62. package/dist/shared/components/notifications/index.d.ts +0 -9
  63. package/dist/shared/components/notifications/index.d.ts.map +1 -1
  64. package/dist/shared/components/popup-handler/components/index.d.ts +2 -0
  65. package/dist/shared/components/popup-handler/components/index.d.ts.map +1 -0
  66. package/dist/shared/components/popup-handler/components/vc-popup-container/index.d.ts +2 -0
  67. package/dist/shared/components/popup-handler/components/vc-popup-container/index.d.ts.map +1 -0
  68. package/dist/shared/components/popup-handler/components/vc-popup-container/vc-popup-container.vue.d.ts +3 -0
  69. package/dist/shared/components/popup-handler/components/vc-popup-container/vc-popup-container.vue.d.ts.map +1 -0
  70. package/dist/shared/components/popup-handler/composables/index.d.ts +2 -0
  71. package/dist/shared/components/popup-handler/composables/index.d.ts.map +1 -0
  72. package/dist/shared/components/popup-handler/composables/usePopup/index.d.ts +12 -0
  73. package/dist/shared/components/popup-handler/composables/usePopup/index.d.ts.map +1 -0
  74. package/dist/shared/components/popup-handler/index.d.ts +16 -0
  75. package/dist/shared/components/popup-handler/index.d.ts.map +1 -0
  76. package/dist/shared/components/popup-handler/plugin.d.ts +6 -0
  77. package/dist/shared/components/popup-handler/plugin.d.ts.map +1 -0
  78. package/dist/shared/components/popup-handler/types/index.d.ts +26 -0
  79. package/dist/shared/components/popup-handler/types/index.d.ts.map +1 -0
  80. package/dist/shared/components/popup-handler/utils/index.d.ts +3 -0
  81. package/dist/shared/components/popup-handler/utils/index.d.ts.map +1 -0
  82. package/dist/shared/index.d.ts +2 -0
  83. package/dist/shared/index.d.ts.map +1 -1
  84. package/dist/shared/modules/assets/components/assets-details/assets-details.vue.d.ts +13 -4
  85. package/dist/shared/modules/assets/components/assets-details/assets-details.vue.d.ts.map +1 -1
  86. package/dist/shared/modules/assets/components/assets-details/index.d.ts +85 -49
  87. package/dist/shared/modules/assets/components/assets-details/index.d.ts.map +1 -1
  88. package/dist/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts +15 -11
  89. package/dist/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts.map +1 -1
  90. package/dist/shared/modules/assets-manager/components/assets-manager/index.d.ts +89 -64
  91. package/dist/shared/modules/assets-manager/components/assets-manager/index.d.ts.map +1 -1
  92. package/dist/tsconfig.tsbuildinfo +1 -1
  93. package/dist/ui/components/atoms/vc-badge/index.d.ts +56 -19
  94. package/dist/ui/components/atoms/vc-badge/index.d.ts.map +1 -1
  95. package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts +2 -2
  96. package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts.map +1 -1
  97. package/dist/ui/components/atoms/vc-button/index.d.ts +68 -44
  98. package/dist/ui/components/atoms/vc-button/index.d.ts.map +1 -1
  99. package/dist/ui/components/atoms/vc-button/vc-button.vue.d.ts +7 -4
  100. package/dist/ui/components/atoms/vc-button/vc-button.vue.d.ts.map +1 -1
  101. package/dist/ui/components/atoms/vc-card/index.d.ts +66 -44
  102. package/dist/ui/components/atoms/vc-card/index.d.ts.map +1 -1
  103. package/dist/ui/components/atoms/vc-card/vc-card.vue.d.ts +8 -6
  104. package/dist/ui/components/atoms/vc-card/vc-card.vue.d.ts.map +1 -1
  105. package/dist/ui/components/atoms/vc-checkbox/index.d.ts +74 -48
  106. package/dist/ui/components/atoms/vc-checkbox/index.d.ts.map +1 -1
  107. package/dist/ui/components/atoms/vc-checkbox/vc-checkbox.vue.d.ts +8 -5
  108. package/dist/ui/components/atoms/vc-checkbox/vc-checkbox.vue.d.ts.map +1 -1
  109. package/dist/ui/components/atoms/vc-col/index.d.ts +54 -19
  110. package/dist/ui/components/atoms/vc-col/index.d.ts.map +1 -1
  111. package/dist/ui/components/atoms/vc-col/vc-col.vue.d.ts +7 -4
  112. package/dist/ui/components/atoms/vc-col/vc-col.vue.d.ts.map +1 -1
  113. package/dist/ui/components/atoms/vc-container/index.d.ts +56 -19
  114. package/dist/ui/components/atoms/vc-container/index.d.ts.map +1 -1
  115. package/dist/ui/components/atoms/vc-container/vc-container.vue.d.ts +2 -2
  116. package/dist/ui/components/atoms/vc-container/vc-container.vue.d.ts.map +1 -1
  117. package/dist/ui/components/atoms/vc-hint/index.d.ts +53 -8
  118. package/dist/ui/components/atoms/vc-hint/index.d.ts.map +1 -1
  119. package/dist/ui/components/atoms/vc-hint/vc-hint.vue.d.ts +2 -2
  120. package/dist/ui/components/atoms/vc-hint/vc-hint.vue.d.ts.map +1 -1
  121. package/dist/ui/components/atoms/vc-icon/index.d.ts +4 -8
  122. package/dist/ui/components/atoms/vc-icon/index.d.ts.map +1 -1
  123. package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts +7 -4
  124. package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts.map +1 -1
  125. package/dist/ui/components/atoms/vc-image/index.d.ts +17 -23
  126. package/dist/ui/components/atoms/vc-image/index.d.ts.map +1 -1
  127. package/dist/ui/components/atoms/vc-image/vc-image.vue.d.ts +8 -5
  128. package/dist/ui/components/atoms/vc-image/vc-image.vue.d.ts.map +1 -1
  129. package/dist/ui/components/atoms/vc-info-row/index.d.ts +10 -12
  130. package/dist/ui/components/atoms/vc-info-row/index.d.ts.map +1 -1
  131. package/dist/ui/components/atoms/vc-info-row/vc-info-row.vue.d.ts +7 -4
  132. package/dist/ui/components/atoms/vc-info-row/vc-info-row.vue.d.ts.map +1 -1
  133. package/dist/ui/components/atoms/vc-label/index.d.ts +56 -23
  134. package/dist/ui/components/atoms/vc-label/index.d.ts.map +1 -1
  135. package/dist/ui/components/atoms/vc-label/vc-label.vue.d.ts +8 -5
  136. package/dist/ui/components/atoms/vc-label/vc-label.vue.d.ts.map +1 -1
  137. package/dist/ui/components/atoms/vc-link/index.d.ts +56 -20
  138. package/dist/ui/components/atoms/vc-link/index.d.ts.map +1 -1
  139. package/dist/ui/components/atoms/vc-link/vc-link.vue.d.ts +2 -2
  140. package/dist/ui/components/atoms/vc-link/vc-link.vue.d.ts.map +1 -1
  141. package/dist/ui/components/atoms/vc-loading/index.d.ts +1 -1
  142. package/dist/ui/components/atoms/vc-loading/index.d.ts.map +1 -1
  143. package/dist/ui/components/atoms/vc-loading/vc-loading.vue.d.ts +1 -1
  144. package/dist/ui/components/atoms/vc-loading/vc-loading.vue.d.ts.map +1 -1
  145. package/dist/ui/components/atoms/vc-progress/index.d.ts +54 -27
  146. package/dist/ui/components/atoms/vc-progress/index.d.ts.map +1 -1
  147. package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts +6 -3
  148. package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts.map +1 -1
  149. package/dist/ui/components/atoms/vc-row/index.d.ts +53 -8
  150. package/dist/ui/components/atoms/vc-row/index.d.ts.map +1 -1
  151. package/dist/ui/components/atoms/vc-row/vc-row.vue.d.ts +2 -2
  152. package/dist/ui/components/atoms/vc-row/vc-row.vue.d.ts.map +1 -1
  153. package/dist/ui/components/atoms/vc-status/index.d.ts +56 -31
  154. package/dist/ui/components/atoms/vc-status/index.d.ts.map +1 -1
  155. package/dist/ui/components/atoms/vc-status/vc-status.vue.d.ts +7 -4
  156. package/dist/ui/components/atoms/vc-status/vc-status.vue.d.ts.map +1 -1
  157. package/dist/ui/components/atoms/vc-status-icon/index.d.ts +1 -1
  158. package/dist/ui/components/atoms/vc-status-icon/index.d.ts.map +1 -1
  159. package/dist/ui/components/atoms/vc-status-icon/vc-status-icon.vue.d.ts +1 -1
  160. package/dist/ui/components/atoms/vc-status-icon/vc-status-icon.vue.d.ts.map +1 -1
  161. package/dist/ui/components/atoms/vc-switch/index.d.ts +1 -1
  162. package/dist/ui/components/atoms/vc-switch/index.d.ts.map +1 -1
  163. package/dist/ui/components/atoms/vc-switch/vc-switch.vue.d.ts +1 -1
  164. package/dist/ui/components/atoms/vc-switch/vc-switch.vue.d.ts.map +1 -1
  165. package/dist/ui/components/atoms/vc-widget/index.d.ts +1 -1
  166. package/dist/ui/components/atoms/vc-widget/index.d.ts.map +1 -1
  167. package/dist/ui/components/atoms/vc-widget/vc-widget.vue.d.ts +1 -1
  168. package/dist/ui/components/atoms/vc-widget/vc-widget.vue.d.ts.map +1 -1
  169. package/dist/ui/components/index.d.ts +2 -0
  170. package/dist/ui/components/index.d.ts.map +1 -1
  171. package/dist/ui/components/molecules/vc-breadcrumbs/_internal/vc-breadcrumbs-item/vc-breadcrumbs-item.vue.d.ts +3 -3
  172. package/dist/ui/components/molecules/vc-breadcrumbs/_internal/vc-breadcrumbs-item/vc-breadcrumbs-item.vue.d.ts.map +1 -1
  173. package/dist/ui/components/molecules/vc-breadcrumbs/index.d.ts +1 -3
  174. package/dist/ui/components/molecules/vc-breadcrumbs/index.d.ts.map +1 -1
  175. package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue.d.ts +6 -3
  176. package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue.d.ts.map +1 -1
  177. package/dist/ui/components/molecules/vc-code-editor/index.d.ts +79 -65
  178. package/dist/ui/components/molecules/vc-code-editor/index.d.ts.map +1 -1
  179. package/dist/ui/components/molecules/vc-code-editor/vc-code-editor.vue.d.ts +7 -4
  180. package/dist/ui/components/molecules/vc-code-editor/vc-code-editor.vue.d.ts.map +1 -1
  181. package/dist/ui/components/molecules/vc-editor/index.d.ts +80 -69
  182. package/dist/ui/components/molecules/vc-editor/index.d.ts.map +1 -1
  183. package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts +7 -4
  184. package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts.map +1 -1
  185. package/dist/ui/components/molecules/vc-file-upload/index.d.ts +77 -65
  186. package/dist/ui/components/molecules/vc-file-upload/index.d.ts.map +1 -1
  187. package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts +7 -4
  188. package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts.map +1 -1
  189. package/dist/ui/components/molecules/vc-form/index.d.ts +53 -8
  190. package/dist/ui/components/molecules/vc-form/index.d.ts.map +1 -1
  191. package/dist/ui/components/molecules/vc-form/vc-form.vue.d.ts +2 -2
  192. package/dist/ui/components/molecules/vc-form/vc-form.vue.d.ts.map +1 -1
  193. package/dist/ui/components/molecules/vc-input/index.d.ts +116 -128
  194. package/dist/ui/components/molecules/vc-input/index.d.ts.map +1 -1
  195. package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts +17 -13
  196. package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts.map +1 -1
  197. package/dist/ui/components/molecules/vc-input-currency/index.d.ts +125 -137
  198. package/dist/ui/components/molecules/vc-input-currency/index.d.ts.map +1 -1
  199. package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts +9 -8
  200. package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts.map +1 -1
  201. package/dist/ui/components/molecules/vc-notification/index.d.ts +1 -1
  202. package/dist/ui/components/molecules/vc-notification/index.d.ts.map +1 -1
  203. package/dist/ui/components/molecules/vc-notification/vc-notification.vue.d.ts +1 -1
  204. package/dist/ui/components/molecules/vc-notification/vc-notification.vue.d.ts.map +1 -1
  205. package/dist/ui/components/molecules/vc-pagination/index.d.ts +7 -11
  206. package/dist/ui/components/molecules/vc-pagination/index.d.ts.map +1 -1
  207. package/dist/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts +6 -3
  208. package/dist/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts.map +1 -1
  209. package/dist/ui/components/molecules/vc-rating/index.d.ts +73 -55
  210. package/dist/ui/components/molecules/vc-rating/index.d.ts.map +1 -1
  211. package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts +8 -5
  212. package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts.map +1 -1
  213. package/dist/ui/components/molecules/vc-select/index.d.ts +188 -584
  214. package/dist/ui/components/molecules/vc-select/index.d.ts.map +1 -1
  215. package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts +643 -119
  216. package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts.map +1 -1
  217. package/dist/ui/components/molecules/vc-slider/index.d.ts +70 -55
  218. package/dist/ui/components/molecules/vc-slider/index.d.ts.map +1 -1
  219. package/dist/ui/components/molecules/vc-slider/vc-slider.vue.d.ts +10 -7
  220. package/dist/ui/components/molecules/vc-slider/vc-slider.vue.d.ts.map +1 -1
  221. package/dist/ui/components/molecules/vc-textarea/index.d.ts +80 -68
  222. package/dist/ui/components/molecules/vc-textarea/index.d.ts.map +1 -1
  223. package/dist/ui/components/molecules/vc-textarea/vc-textarea.vue.d.ts +7 -4
  224. package/dist/ui/components/molecules/vc-textarea/vc-textarea.vue.d.ts.map +1 -1
  225. package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue.d.ts +21 -7
  226. package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue.d.ts.map +1 -1
  227. 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
  228. 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
  229. package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue.d.ts +19 -36
  230. 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
  231. package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/vc-app-menu.vue.d.ts +20 -13
  232. package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/vc-app-menu.vue.d.ts.map +1 -1
  233. package/dist/ui/components/organisms/vc-app/index.d.ts +138 -160
  234. package/dist/ui/components/organisms/vc-app/index.d.ts.map +1 -1
  235. package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts +23 -24
  236. package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts.map +1 -1
  237. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-header/vc-blade-header.vue.d.ts +4 -4
  238. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-header/vc-blade-header.vue.d.ts.map +1 -1
  239. 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
  240. 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
  241. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/vc-blade-toolbar.vue.d.ts +7 -4
  242. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/vc-blade-toolbar.vue.d.ts.map +1 -1
  243. package/dist/ui/components/organisms/vc-blade/index.d.ts +103 -112
  244. package/dist/ui/components/organisms/vc-blade/index.d.ts.map +1 -1
  245. package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts +11 -10
  246. package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts.map +1 -1
  247. package/dist/ui/components/organisms/vc-dynamic-property/index.d.ts +3 -5
  248. package/dist/ui/components/organisms/vc-dynamic-property/index.d.ts.map +1 -1
  249. package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts +6 -3
  250. package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts.map +1 -1
  251. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts +7 -4
  252. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts.map +1 -1
  253. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts +18 -7
  254. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts.map +1 -1
  255. package/dist/ui/components/organisms/vc-gallery/index.d.ts +37 -52
  256. package/dist/ui/components/organisms/vc-gallery/index.d.ts.map +1 -1
  257. package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts +8 -8
  258. package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts.map +1 -1
  259. package/dist/ui/components/organisms/vc-login-form/index.d.ts +62 -31
  260. package/dist/ui/components/organisms/vc-login-form/index.d.ts.map +1 -1
  261. package/dist/ui/components/organisms/vc-login-form/vc-login-form.vue.d.ts +7 -4
  262. package/dist/ui/components/organisms/vc-login-form/vc-login-form.vue.d.ts.map +1 -1
  263. package/dist/ui/components/organisms/vc-notification-dropdown/_internal/notification/notification.vue.d.ts +32 -0
  264. package/dist/ui/components/organisms/vc-notification-dropdown/_internal/notification/notification.vue.d.ts.map +1 -0
  265. package/dist/ui/components/organisms/vc-notification-dropdown/index.d.ts +44 -0
  266. package/dist/ui/components/organisms/vc-notification-dropdown/index.d.ts.map +1 -0
  267. package/dist/ui/components/organisms/vc-notification-dropdown/vc-notification-dropdown.vue.d.ts +22 -0
  268. package/dist/ui/components/organisms/vc-notification-dropdown/vc-notification-dropdown.vue.d.ts.map +1 -0
  269. package/dist/ui/components/organisms/vc-notification-template/index.d.ts +135 -0
  270. package/dist/ui/components/organisms/vc-notification-template/index.d.ts.map +1 -0
  271. package/dist/ui/components/organisms/vc-notification-template/vc-notification-template.vue.d.ts +24 -0
  272. package/dist/ui/components/organisms/vc-notification-template/vc-notification-template.vue.d.ts.map +1 -0
  273. package/dist/ui/components/organisms/vc-popup/_internal/vc-popup-error/vc-popup-error.vue.d.ts +17 -0
  274. package/dist/ui/components/organisms/vc-popup/_internal/vc-popup-error/vc-popup-error.vue.d.ts.map +1 -0
  275. package/dist/ui/components/organisms/vc-popup/_internal/vc-popup-warning/vc-popup-warning.vue.d.ts +20 -0
  276. package/dist/ui/components/organisms/vc-popup/_internal/vc-popup-warning/vc-popup-warning.vue.d.ts.map +1 -0
  277. package/dist/ui/components/organisms/vc-popup/index.d.ts +87 -42
  278. package/dist/ui/components/organisms/vc-popup/index.d.ts.map +1 -1
  279. package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts +16 -6
  280. package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts.map +1 -1
  281. package/dist/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue.d.ts +1 -1
  282. package/dist/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue.d.ts.map +1 -1
  283. package/dist/ui/components/organisms/vc-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue.d.ts +6 -3
  284. package/dist/ui/components/organisms/vc-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue.d.ts.map +1 -1
  285. package/dist/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts +6 -3
  286. package/dist/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts.map +1 -1
  287. package/dist/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue.d.ts +8 -5
  288. package/dist/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue.d.ts.map +1 -1
  289. package/dist/ui/components/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue.d.ts +48 -47
  290. package/dist/ui/components/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue.d.ts.map +1 -1
  291. package/dist/ui/components/organisms/vc-table/index.d.ts +205 -661
  292. package/dist/ui/components/organisms/vc-table/index.d.ts.map +1 -1
  293. package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts +185 -134
  294. package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts.map +1 -1
  295. package/dist/ui/types/index.d.ts +2 -0
  296. package/dist/ui/types/index.d.ts.map +1 -1
  297. package/package.json +23 -22
  298. package/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue +3 -2
  299. package/shared/components/app-switcher/composables/useAppSwitcher/index.ts +4 -2
  300. package/shared/components/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue +25 -26
  301. package/shared/components/blade-navigation/composables/useBladeNavigation/index.ts +106 -68
  302. package/shared/components/blade-navigation/index.ts +1 -12
  303. package/shared/components/blade-navigation/plugin.ts +33 -0
  304. package/shared/components/blade-navigation/types/index.ts +59 -36
  305. package/{core/plugins → shared/components}/error-interceptor/interceptor.ts +1 -1
  306. package/shared/components/notifications/composables/useContainer/index.ts +2 -2
  307. package/shared/components/notifications/core/notification.ts +1 -1
  308. package/shared/components/notifications/index.ts +0 -11
  309. package/shared/components/popup-handler/components/index.ts +1 -0
  310. package/shared/components/popup-handler/components/vc-popup-container/index.ts +3 -0
  311. package/shared/components/popup-handler/components/vc-popup-container/vc-popup-container.vue +25 -0
  312. package/shared/components/popup-handler/composables/index.ts +1 -0
  313. package/shared/components/popup-handler/composables/usePopup/index.ts +129 -0
  314. package/shared/components/popup-handler/index.ts +19 -0
  315. package/shared/components/popup-handler/plugin.ts +24 -0
  316. package/shared/components/popup-handler/types/index.ts +28 -0
  317. package/shared/components/popup-handler/utils/index.ts +9 -0
  318. package/shared/index.ts +4 -2
  319. package/shared/modules/assets/components/assets-details/assets-details.vue +12 -10
  320. package/shared/modules/assets-manager/components/assets-manager/assets-manager.vue +33 -30
  321. package/ui/components/atoms/vc-button/vc-button.vue +1 -1
  322. package/ui/components/atoms/vc-card/vc-card.vue +2 -2
  323. package/ui/components/atoms/vc-info-row/vc-info-row.vue +2 -2
  324. package/ui/components/atoms/vc-label/vc-label.vue +1 -1
  325. package/ui/components/atoms/vc-loading/vc-loading.vue +1 -1
  326. package/ui/components/atoms/vc-switch/vc-switch.vue +1 -1
  327. package/ui/components/index.ts +2 -0
  328. package/ui/components/molecules/vc-code-editor/vc-code-editor.vue +3 -3
  329. package/ui/components/molecules/vc-editor/vc-editor.vue +3 -3
  330. package/ui/components/molecules/vc-file-upload/vc-file-upload.vue +2 -2
  331. package/ui/components/molecules/vc-input/vc-input.vue +17 -17
  332. package/ui/components/molecules/vc-input-currency/vc-input-currency.vue +8 -8
  333. package/ui/components/molecules/vc-notification/vc-notification.vue +1 -1
  334. package/ui/components/molecules/vc-rating/vc-rating.vue +1 -1
  335. package/ui/components/molecules/vc-select/index.ts +1 -86
  336. package/ui/components/molecules/vc-select/vc-select.stories.ts +1 -1
  337. package/ui/components/molecules/vc-select/vc-select.vue +276 -198
  338. package/ui/components/molecules/vc-slider/vc-slider.vue +3 -3
  339. package/ui/components/molecules/vc-textarea/vc-textarea.vue +2 -2
  340. package/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue +20 -15
  341. package/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue +5 -9
  342. package/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue +18 -27
  343. package/ui/components/organisms/vc-app/_internal/vc-app-menu/vc-app-menu.vue +22 -16
  344. package/ui/components/organisms/vc-app/vc-app.vue +20 -17
  345. package/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue +5 -5
  346. package/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/vc-blade-toolbar.vue +4 -4
  347. package/ui/components/organisms/vc-blade/vc-blade.vue +25 -32
  348. package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue +84 -84
  349. package/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue +3 -3
  350. package/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue +9 -3
  351. package/ui/components/organisms/vc-gallery/vc-gallery.vue +27 -23
  352. package/ui/components/organisms/vc-notification-dropdown/_internal/notification/notification.vue +63 -0
  353. package/ui/components/organisms/vc-notification-dropdown/index.ts +3 -0
  354. package/ui/components/organisms/vc-notification-dropdown/vc-notification-dropdown.vue +125 -0
  355. package/ui/components/organisms/vc-notification-template/index.ts +3 -0
  356. package/ui/components/organisms/vc-notification-template/vc-notification-template.vue +33 -0
  357. package/ui/components/organisms/vc-popup/_internal/vc-popup-error/vc-popup-error.vue +28 -0
  358. package/ui/components/organisms/vc-popup/_internal/vc-popup-warning/vc-popup-warning.vue +33 -0
  359. package/ui/components/organisms/vc-popup/vc-popup.vue +62 -7
  360. package/ui/components/organisms/vc-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue +6 -6
  361. package/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue +5 -5
  362. package/ui/components/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue +27 -24
  363. package/ui/components/organisms/vc-table/index.ts +1 -17
  364. package/ui/components/organisms/vc-table/vc-table.stories.ts +1 -1
  365. package/ui/components/organisms/vc-table/vc-table.vue +140 -132
  366. package/ui/locales/en.json +21 -10
  367. package/ui/types/index.ts +2 -0
  368. package/core/directives/click-outside/index.ts +0 -21
  369. package/dist/core/directives/click-outside/index.d.ts +0 -3
  370. package/dist/core/directives/click-outside/index.d.ts.map +0 -1
  371. package/dist/core/plugins/error-interceptor/index.d.ts.map +0 -1
  372. package/dist/core/plugins/error-interceptor/interceptor.d.ts.map +0 -1
  373. /package/{core/plugins → shared/components}/error-interceptor/index.ts +0 -0
@@ -0,0 +1,125 @@
1
+ <template>
2
+ <div
3
+ v-on-click-outside="
4
+ () => {
5
+ isDropdownVisible = false;
6
+ }
7
+ "
8
+ class="tw-relative tw-flex tw-items-center tw-h-full"
9
+ :title="title"
10
+ @click.stop="toggleNotificationsDrop"
11
+ >
12
+ <div
13
+ :class="[
14
+ 'tw-relative tw-h-full tw-flex tw-items-center tw-justify-center tw-w-[var(--app-bar-button-width)] tw-border-l tw-border-solid tw-border-l-[color:var(--app-bar-button-border-color)] tw-cursor-pointer tw-text-[color:var(--app-bar-button-color)] tw-bg-[color:var(--app-bar-button-background-color)] tw-transition-[color] tw-duration-200 hover:tw-text-[color:var(--app-bar-button-color-hover)] hover:tw-bg-[color:var(--app-bar-button-background-color-hover)]',
15
+ {
16
+ 'tw-shadow-[0_-6px_6px_white,1px_1px_22px_rgba(126,142,157,0.2)] [clip-path:inset(0px_-20px_0px_-20px)] tw-bg-white tw-z-[10001]':
17
+ isDropdownVisible && !$isMobile.value,
18
+ },
19
+ ]"
20
+ >
21
+ <VcIcon
22
+ icon="fas fa-bell"
23
+ size="xl"
24
+ ></VcIcon>
25
+ <div
26
+ :class="{
27
+ 'tw-block tw-absolute tw-right-[12px] tw-top-[18px] tw-w-[7px] tw-h-[7px] tw-bg-[#ff4a4a] tw-rounded-full tw-z-[1]':
28
+ isAccent,
29
+ }"
30
+ ></div>
31
+ </div>
32
+ <div
33
+ v-if="$isMobile.value && isDropdownVisible"
34
+ class="tw-fixed tw-left-0 tw-top-0 tw-right-0 tw-bottom-0 tw-z-[10000] tw-bg-[#808c99] tw-opacity-60"
35
+ @click.stop="toggleNotificationsDrop"
36
+ ></div>
37
+ <div
38
+ v-if="isDropdownVisible"
39
+ class="tw-absolute tw-top-[var(--app-bar-height)] tw-z-[10000] tw-drop-shadow-[0px_4px_15px_rgba(43,67,84,0.15)] tw-bg-white tw-rounded-b-[6px] tw-w-[439px] tw-max-h-[350px] tw-min-h-[50px] tw-right-0 tw-overflow-hidden tw-flex tw-flex-col"
40
+ :class="{
41
+ 'tw-hidden !tw-fixed !tw-right-0 !tw-top-0 !tw-max-h-full !tw-max-w-[300px] !tw-w-full !tw-bottom-0 !tw-z-[10000] !tw-border-0':
42
+ $isMobile.value,
43
+ '!tw-flex': $isMobile.value && isDropdownVisible,
44
+ }"
45
+ >
46
+ <div
47
+ v-if="$isMobile.value"
48
+ class="tw-text-[#319ed4] tw-flex tw-justify-end tw-items-center tw-p-4"
49
+ >
50
+ <VcIcon
51
+ icon="fas fa-times"
52
+ size="xl"
53
+ @click.stop="isDropdownVisible = false"
54
+ ></VcIcon>
55
+ </div>
56
+ <VcContainer
57
+ :no-padding="true"
58
+ @click.stop
59
+ >
60
+ <VcCol v-if="notifications && notifications.length">
61
+ <div
62
+ v-for="item in notifications"
63
+ :key="`notification_${item.id}`"
64
+ class="tw-py-[18px] tw-px-[15px] tw-border-b tw-border-solid tw-border-b-[#e3e7ec] tw-cursor-pointer last-of-type:tw-border-b-0"
65
+ @click="handleClick(item)"
66
+ >
67
+ <NotificationItem
68
+ :notification="item"
69
+ :templates="templates"
70
+ />
71
+ </div>
72
+ </VcCol>
73
+ <div
74
+ v-else
75
+ class="tw-flex tw-justify-center tw-items-center tw-p-4"
76
+ >
77
+ {{ $t("COMPONENTS.ORGANISMS.VC_NOTIFICATION_DROPDOWN.EMPTY") }}
78
+ </div>
79
+ </VcContainer>
80
+ </div>
81
+ </div>
82
+ </template>
83
+
84
+ <script lang="ts" setup>
85
+ import { ref, h } from "vue";
86
+ import NotificationItem from "./_internal/notification/notification.vue";
87
+ import { PushNotification } from "./../../../../core/api";
88
+ import { VcCol, VcContainer, VcIcon } from "./../../";
89
+ import { vOnClickOutside } from "@vueuse/components";
90
+ import { NotificationTemplateConstructor } from "./../../../../core/types";
91
+
92
+ export interface Props {
93
+ title: string;
94
+ isAccent?: boolean;
95
+ notifications: PushNotification[];
96
+ templates?: NotificationTemplateConstructor[];
97
+ onOpen?: () => void;
98
+ onClick?: (notification: PushNotification) => void;
99
+ }
100
+
101
+ const props = defineProps<Props>();
102
+
103
+ const isDropdownVisible = ref(false);
104
+
105
+ const handleClick = async (notification: PushNotification) => {
106
+ isDropdownVisible.value = false;
107
+
108
+ if (props.onClick && typeof props.onClick === "function") {
109
+ props.onClick(notification);
110
+ }
111
+ };
112
+
113
+ function toggleNotificationsDrop() {
114
+ isDropdownVisible.value = !isDropdownVisible.value;
115
+ if (props.onOpen && typeof props.onOpen === "function") {
116
+ props.onOpen();
117
+ }
118
+ }
119
+ </script>
120
+
121
+ <style lang="scss">
122
+ :root {
123
+ --notification-color-error: #f14e4e;
124
+ }
125
+ </style>
@@ -0,0 +1,3 @@
1
+ import _NotificationTemplate from "./vc-notification-template.vue";
2
+
3
+ export const VcNotificationTemplate = _NotificationTemplate as typeof _NotificationTemplate;
@@ -0,0 +1,33 @@
1
+ <template>
2
+ <div class="tw-flex tw-items-center">
3
+ <div
4
+ class="tw-w-[41px] tw-h-[41px] tw-rounded-full tw-text-white tw-mr-4 tw-flex tw-items-center tw-justify-center tw-shrink-0"
5
+ :style="{ 'background-color': color }"
6
+ >
7
+ <VcIcon
8
+ :icon="icon"
9
+ size="l"
10
+ ></VcIcon>
11
+ </div>
12
+ <div>
13
+ <p
14
+ class="tw-text-[color:var(--basic-black-color)] tw-text-xl tw-leading-[19px] tw-font-bold tw-m-0 tw-mb-1"
15
+ :class="{ 'tw-mr-4': $isDesktop.value }"
16
+ >
17
+ {{ title }}
18
+ </p>
19
+ <slot></slot>
20
+ </div>
21
+ </div>
22
+ </template>
23
+
24
+ <script setup lang="ts">
25
+ import { VcIcon } from "./../../";
26
+ export interface Props {
27
+ color: string;
28
+ icon: string;
29
+ title: string;
30
+ }
31
+
32
+ defineProps<Props>();
33
+ </script>
@@ -0,0 +1,28 @@
1
+ <template>
2
+ <div class="tw-flex tw-flex-col tw-overflow-hidden tw-p-2">
3
+ <VcContainer
4
+ no-padding
5
+ style="word-break: break-word"
6
+ >
7
+ <slot></slot>
8
+ </VcContainer>
9
+ </div>
10
+
11
+ <div class="tw-flex tw-my-4 tw-mx-5">
12
+ <VcButton
13
+ class="tw-ml-auto"
14
+ @click="$emit('close')"
15
+ >OK</VcButton
16
+ >
17
+ </div>
18
+ </template>
19
+
20
+ <script setup lang="ts">
21
+ import { VcButton } from "./../../../../";
22
+
23
+ export interface Emits {
24
+ (event: "close"): void;
25
+ }
26
+
27
+ defineEmits<Emits>();
28
+ </script>
@@ -0,0 +1,33 @@
1
+ <template>
2
+ <div class="tw-flex tw-flex-col tw-overflow-hidden tw-p-2">
3
+ <VcContainer
4
+ no-padding
5
+ style="word-break: break-word"
6
+ >
7
+ <slot></slot>
8
+ </VcContainer>
9
+ </div>
10
+
11
+ <div class="tw-flex tw-my-4 tw-mx-5">
12
+ <div class="tw-ml-auto">
13
+ <VcButton
14
+ variant="onlytext"
15
+ class="tw-mr-5 tw-text-[#FF4A4A]"
16
+ @click="$emit('confirm')"
17
+ >Confirm</VcButton
18
+ >
19
+ <VcButton @click="$emit('close')">Cancel</VcButton>
20
+ </div>
21
+ </div>
22
+ </template>
23
+
24
+ <script setup lang="ts">
25
+ import { VcButton } from "./../../../../";
26
+
27
+ export interface Emits {
28
+ (event: "close"): void;
29
+ (event: "confirm"): void;
30
+ }
31
+
32
+ defineEmits<Emits>();
33
+ </script>
@@ -5,7 +5,10 @@
5
5
  >
6
6
  <div class="vc-popup__wrapper">
7
7
  <div class="vc-popup__inner">
8
- <div class="vc-popup__header">
8
+ <div
9
+ class="vc-popup__header"
10
+ :class="`vc-popup__header_${type}`"
11
+ >
9
12
  <div class="tw-truncate tw-grow tw-basis-0">
10
13
  <slot name="title">{{ title }}</slot>
11
14
  </div>
@@ -16,10 +19,22 @@
16
19
  @click="$emit('close')"
17
20
  ></VcIcon>
18
21
  </div>
19
-
20
- <div class="vc-popup__content tw-grow tw-basis-0 tw-h-[calc(100%-44px)]">
22
+ <template v-if="type === 'error'">
23
+ <VcPopupError @close="$emit('close')">
24
+ <slot></slot>
25
+ </VcPopupError>
26
+ </template>
27
+ <template v-if="type === 'warning'">
28
+ <VcPopupWarning
29
+ @close="$emit('close')"
30
+ @confirm="$emit('confirm')"
31
+ >
32
+ <slot></slot>
33
+ </VcPopupWarning>
34
+ </template>
35
+ <template v-else>
21
36
  <slot></slot>
22
- </div>
37
+ </template>
23
38
  </div>
24
39
  </div>
25
40
  </div>
@@ -27,31 +42,43 @@
27
42
 
28
43
  <script lang="ts" setup>
29
44
  import { VcIcon } from "./../../";
45
+ import VcPopupWarning from "./_internal/vc-popup-warning/vc-popup-warning.vue";
46
+ import VcPopupError from "./_internal/vc-popup-error/vc-popup-error.vue";
47
+
30
48
  export interface Props {
31
49
  title?: string;
32
50
  closable?: boolean;
33
51
  variant?: "small" | "medium" | "fullscreen";
52
+ type?: "default" | "error" | "warning" | "success";
34
53
  }
35
54
 
36
55
  export interface Emits {
37
56
  (event: "close"): void;
57
+ (event: "confirm"): void;
38
58
  }
39
59
 
40
60
  withDefaults(defineProps<Props>(), {
41
61
  closable: true,
42
62
  variant: "fullscreen",
63
+ type: "default",
43
64
  });
44
65
 
45
66
  defineEmits<Emits>();
46
67
  </script>
47
68
 
48
69
  <style lang="scss">
70
+ :root {
71
+ --popup-header-default-color: #eef5fa;
72
+ --popup-header-success-color: #87b563;
73
+ --popup-header-warning-color: #f89406;
74
+ --popup-header-error-color: #ef796f;
75
+ }
49
76
  .vc-popup {
50
77
  @apply tw-fixed tw-top-0 tw-right-0 tw-bottom-0 tw-left-0 tw-z-[9999] tw-bg-[rgba(31,40,50,0.58)];
51
78
 
52
79
  &_small {
53
80
  .vc-popup__wrapper {
54
- @apply tw-max-h-fit tw-items-center tw-flex tw-grow-0 tw-shrink-0 tw-basis-auto [flex-direction:inherit] tw-justify-center;
81
+ @apply tw-max-h-[50%] tw-items-center tw-flex tw-grow-0 tw-shrink-0 tw-basis-auto [flex-direction:inherit] tw-justify-center;
55
82
  }
56
83
 
57
84
  .vc-popup__inner {
@@ -80,7 +107,7 @@ defineEmits<Emits>();
80
107
  }
81
108
 
82
109
  &__inner {
83
- @apply tw-grow tw-shrink tw-basis-auto tw-m-[40px] tw-box-border tw-bg-white tw-rounded-[5px] tw-overflow-hidden tw-relative tw-flex tw-flex-col tw-grow tw-basis-0;
110
+ @apply tw-shrink tw-m-[40px] tw-box-border tw-bg-white tw-rounded-[5px] tw-overflow-hidden tw-relative tw-flex tw-flex-col tw-grow tw-basis-0 tw-max-h-full tw-h-fit;
84
111
 
85
112
  .vc-app_phone & {
86
113
  @apply tw-m-0 tw-rounded-none;
@@ -88,7 +115,35 @@ defineEmits<Emits>();
88
115
  }
89
116
 
90
117
  &__header {
91
- @apply tw-h-[44px] tw-px-4 tw-bg-[#eef5fa] tw-flex tw-shrink-0 tw-items-center;
118
+ @apply tw-h-[44px] tw-px-4 tw-bg-[var(--popup-header-default-color)] tw-flex tw-shrink-0 tw-items-center;
119
+
120
+ &_default {
121
+ @apply tw-bg-[var(--popup-header-default-color)];
122
+ }
123
+
124
+ &_error {
125
+ @apply tw-bg-[var(--popup-header-error-color)] tw-text-white;
126
+
127
+ .vc-popup__header-icon {
128
+ @apply tw-text-white;
129
+ }
130
+ }
131
+
132
+ &_warning {
133
+ @apply tw-bg-[var(--popup-header-warning-color)] tw-text-white;
134
+
135
+ .vc-popup__header-icon {
136
+ @apply tw-text-white;
137
+ }
138
+ }
139
+
140
+ &_success {
141
+ @apply tw-bg-[var(--popup-header-success-color)] tw-text-white;
142
+
143
+ .vc-popup__header-icon {
144
+ @apply tw-text-white;
145
+ }
146
+ }
92
147
 
93
148
  &-icon {
94
149
  @apply tw-cursor-pointer tw-text-[#a1c0d4];
@@ -1,29 +1,29 @@
1
1
  <template>
2
2
  <div class="tw-relative tw-w-min tw-float-right tw-mr-4">
3
3
  <VcButton
4
+ ref="referenceButton"
4
5
  small
5
6
  icon="fas fa-bars"
6
7
  @click.stop="isActive = !isActive"
7
- ref="referenceButton"
8
8
  ></VcButton>
9
9
  <teleport to="#app">
10
10
  <div
11
11
  v-if="isActive"
12
12
  ref="floatingDrop"
13
- v-click-outside="close"
13
+ v-on-click-outside="close"
14
14
  :style="floatingDropStyle"
15
15
  class="tw-flex tw-flex-col tw-box-border tw-max-h-[300px] tw-h-auto tw-z-10 tw-overflow-hidden tw-absolute tw-bg-white tw-border tw-border-solid tw-border-[#e5e7eb] tw-w-max tw-right-0"
16
16
  >
17
17
  <VcContainer
18
- :no-padding="true"
19
18
  v-if="items && items.length"
19
+ :no-padding="true"
20
20
  >
21
21
  <div class="tw-w-full tw-h-full tw-box-border tw-flex tw-flex-col">
22
22
  <div
23
- class="tw-flex tw-items-center tw-min-h-[30px] tw-box-border tw-rounded-[3px] tw-px-2 tw-cursor-pointer hover:tw-bg-[#eff7fc] tw-border-b"
24
- :class="{ 'tw-bg-[#eff7fc]': item.visible || !('visible' in item) }"
25
23
  v-for="item in items"
26
24
  :key="item.id"
25
+ class="tw-flex tw-items-center tw-min-h-[30px] tw-box-border tw-rounded-[3px] tw-px-2 tw-cursor-pointer hover:tw-bg-[#eff7fc] tw-border-b"
26
+ :class="{ 'tw-bg-[#eff7fc]': item.visible || !('visible' in item) }"
27
27
  @click="selectItem(item)"
28
28
  >
29
29
  {{ item.title }}
@@ -38,7 +38,7 @@
38
38
  <script lang="ts" setup>
39
39
  import { ref, computed } from "vue";
40
40
  import { ITableColumns } from "./../../../../../../core/types";
41
- import { clickOutside as vClickOutside } from "./../../../../../../core/directives";
41
+ import { vOnClickOutside } from "@vueuse/components";
42
42
  import { useFloating, flip, shift, autoUpdate } from "@floating-ui/vue";
43
43
 
44
44
  export interface Props {
@@ -2,9 +2,9 @@
2
2
  <div class="tw-relative tw-overflow-visible">
3
3
  <!-- Filter button -->
4
4
  <div
5
+ ref="filterToggle"
5
6
  class="tw-rounded-[3px] tw-bg-[#43b0e6] tw-flex tw-items-center tw-px-[10px] tw-text-white tw-h-[38px] tw-box-border tw-cursor-pointer"
6
7
  @click="openPanel($isMobile.value)"
7
- ref="filterToggle"
8
8
  >
9
9
  <VcIcon
10
10
  icon="fas fa-filter"
@@ -27,16 +27,16 @@
27
27
  <!-- Filter panel -->
28
28
  <teleport to="body">
29
29
  <div
30
+ v-if="isPanelVisible"
31
+ ref="filterPanel"
30
32
  :class="{
31
33
  'vc-table-filter__panel_mobile tw-fixed tw-left-0 tw-top-0 tw-w-full tw-bottom-0 tw-z-[9999] tw-bg-[rgba(128,140,153,0.6)] tw-shadow-none tw-rounded-none tw-max-h-full tw-max-w-full tw-min-w-full':
32
34
  $isMobile.value,
33
35
  'vc-table-filter__panel tw-absolute tw-max-h-[400px] tw-max-w-[800px] tw-min-w-[400px] tw-z-[100] tw-shadow-[1px_1px_11px_rgba(141,152,163,0.6)] tw-rounded-[3px] tw-overflow-hidden':
34
36
  !$isMobile.value,
35
37
  }"
36
- v-if="isPanelVisible"
37
- @click.self="closePanel"
38
- ref="filterPanel"
39
38
  :style="filterStyle"
39
+ @click.self="closePanel"
40
40
  >
41
41
  <div
42
42
  class="vc-table-filter__panel-inner tw-bg-white tw-box-border tw-p-5 tw-flex tw-flex-col"
@@ -49,7 +49,7 @@
49
49
  @click="closePanel"
50
50
  />
51
51
 
52
- <slot :closePanel="closePanel"></slot>
52
+ <slot :close-panel="closePanel"></slot>
53
53
  </div>
54
54
  </div>
55
55
  </teleport>
@@ -11,8 +11,8 @@
11
11
  >
12
12
  <!-- Left swipe actions-->
13
13
  <div
14
- class="tw-flex-shrink-0 tw-w-[80px] tw-flex tw-flex-col [justify-content:stretch] tw-bg-[#a9bfd2]"
15
14
  v-if="leftSwipeActions && leftSwipeActions.length"
15
+ class="tw-flex-shrink-0 tw-w-[80px] tw-flex tw-flex-col [justify-content:stretch] tw-bg-[#a9bfd2]"
16
16
  >
17
17
  <div
18
18
  class="tw-flex tw-grow tw-basis-[1] tw-flex-col tw-justify-center tw-items-center tw-text-white"
@@ -33,8 +33,8 @@
33
33
 
34
34
  <!-- Item actions -->
35
35
  <div
36
- class="tw-flex-shrink-0 tw-w-[80px] tw-flex tw-flex-col [justify-content:stretch] tw-bg-[#a9bfd2]"
37
36
  v-if="rightSwipeActions && rightSwipeActions.length"
37
+ class="tw-flex-shrink-0 tw-w-[80px] tw-flex tw-flex-col [justify-content:stretch] tw-bg-[#a9bfd2]"
38
38
  >
39
39
  <!-- First available action -->
40
40
  <div
@@ -73,8 +73,8 @@
73
73
 
74
74
  <!-- Actions popup -->
75
75
  <teleport
76
- to="body"
77
76
  v-if="isActionsPopupVisible"
77
+ to="body"
78
78
  >
79
79
  <div
80
80
  class="tw-absolute tw-left-0 tw-top-0 tw-right-0 tw-bottom-0 tw-bg-[rgba(107,121,135,0.15)] tw-flex tw-items-center tw-justify-center tw-z-[99]"
@@ -84,7 +84,7 @@
84
84
  >
85
85
  <div class="tw-flex tw-w-full tw-items-center">
86
86
  <span class="tw-grow tw-text-[#2e3d4e] tw-text-[19px] tw-font-semibold tw-tracking-[-0.01em]">
87
- {{ $t("All actions") }}
87
+ {{ $t("COMPONENTS.ORGANISMS.VC_TABLE.ALL_ACTIONS") }}
88
88
  </span>
89
89
  <VcIcon
90
90
  class="tw-text-[#c2d7e4]"
@@ -118,27 +118,30 @@
118
118
  </div>
119
119
  </template>
120
120
 
121
- <script lang="ts" setup>
121
+ <script lang="ts" setup generic="T extends TableItem | string">
122
122
  import { computed, ref, watch } from "vue";
123
123
  import { IActionBuilderResult } from "./../../../../../../core/types";
124
124
 
125
- export interface Props {
126
- item: {
127
- id?: string;
128
- };
129
- actionBuilder?: (item: { id?: string }) => IActionBuilderResult[];
130
- swipingItem?: string;
131
- }
132
-
133
125
  export interface Emits {
134
126
  (event: "swipeStart", id: string): void;
127
+ (event: "click"): void;
128
+ }
129
+ export interface TableItem {
130
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
131
+ [x: string]: any;
132
+ actions?: IActionBuilderResult[];
135
133
  }
136
134
 
137
- const props = withDefaults(defineProps<Props>(), {
138
- item: undefined,
139
- actionBuilder: undefined,
140
- swipingItem: null,
141
- });
135
+ const props = withDefaults(
136
+ defineProps<{
137
+ item: T;
138
+ actionBuilder?: (item: T) => IActionBuilderResult[];
139
+ swipingItem?: string;
140
+ }>(),
141
+ {
142
+ swipingItem: null,
143
+ }
144
+ );
142
145
 
143
146
  const emit = defineEmits<Emits>();
144
147
  const offsetX = ref(0);
@@ -154,7 +157,7 @@ const itemActions = ref([]);
154
157
  watch(
155
158
  () => props.swipingItem,
156
159
  (newVal) => {
157
- if (newVal !== props.item.id) {
160
+ if (typeof props.item !== "string" && newVal !== props.item.id) {
158
161
  handleOffset();
159
162
  }
160
163
  }
@@ -183,7 +186,7 @@ function handleOffset() {
183
186
  }
184
187
  }
185
188
 
186
- async function touchStart(e: TouchEvent): Promise<void> {
189
+ async function touchStart(e: TouchEvent) {
187
190
  startX.value = e.touches[0].clientX;
188
191
  startY.value = e.touches[0].clientY;
189
192
  startOffsetX.value = offsetX.value;
@@ -198,8 +201,8 @@ async function touchStart(e: TouchEvent): Promise<void> {
198
201
  }
199
202
  }
200
203
 
201
- function touchMove(e: TouchEvent): void {
202
- emit("swipeStart", props.item.id);
204
+ function touchMove(e: TouchEvent) {
205
+ if (typeof props.item !== "string") emit("swipeStart", props.item.id);
203
206
  if (itemActions.value && itemActions.value.length) {
204
207
  const deltaX = e.touches[0].clientX - startX.value;
205
208
  const deltaY = e.touches[0].clientY - startY.value;
@@ -221,7 +224,7 @@ function touchMove(e: TouchEvent): void {
221
224
  }
222
225
  }
223
226
 
224
- function touchEnd(): void {
227
+ function touchEnd() {
225
228
  const absoluteOffsetX = Math.abs(offsetX.value);
226
229
  if (absoluteOffsetX < maxWidth) {
227
230
  offsetX.value = absoluteOffsetX < maxWidth / 2 ? 0 : -maxWidth;
@@ -232,7 +235,7 @@ function touchEnd(): void {
232
235
  isMoving.value = false;
233
236
  }
234
237
 
235
- function touchCancel(): void {
238
+ function touchCancel() {
236
239
  const absoluteOffsetX = Math.abs(offsetX.value);
237
240
  if (absoluteOffsetX < maxWidth) {
238
241
  offsetX.value = absoluteOffsetX < maxWidth / 2 ? 0 : -maxWidth;
@@ -1,19 +1,3 @@
1
- /* eslint-disable @typescript-eslint/no-explicit-any */
2
- import { VNode } from "vue";
3
1
  import _Table from "./vc-table.vue";
4
- import { ITableColumns } from "./../../../../core/types";
5
2
 
6
- export const VcTable = _Table as typeof _Table & {
7
- new (): {
8
- $slots: {
9
- header: () => VNode[];
10
- filters: (args: { closePanel: () => void }) => VNode[];
11
- "mobile-item": (args: { item: { [x: string]: any; id: string } }) => VNode[];
12
- [key: `header_${string}`]: () => VNode[];
13
- [key: `item_${string}`]: (args: { item: { [x: string]: any; id: string }; cell: ITableColumns }) => VNode[];
14
- notfound: () => VNode[];
15
- empty: () => VNode[];
16
- footer: () => VNode[];
17
- };
18
- };
19
- };
3
+ export const VcTable = _Table as typeof _Table;
@@ -6,7 +6,7 @@ import VcImage from "../../atoms/vc-image/vc-image.vue";
6
6
 
7
7
  const meta: Meta<typeof VcTable> = {
8
8
  title: "organisms/VcTable",
9
- component: VcTable,
9
+ // component: VcTable,
10
10
  };
11
11
 
12
12
  export default meta;