@vc-shell/framework 1.0.56 → 1.0.57

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 (179) hide show
  1. package/dist/framework.mjs +126 -57
  2. package/dist/index.css +1 -1
  3. package/dist/types/index.d.ts +1 -1
  4. package/dist/types/index.d.ts.map +1 -1
  5. package/dist/types/shared/app-switcher/components/index.d.ts +1 -1
  6. package/dist/types/shared/app-switcher/components/index.d.ts.map +1 -1
  7. package/dist/types/shared/app-switcher/components/vc-app-switcher/index.d.ts +22 -0
  8. package/dist/types/shared/app-switcher/components/vc-app-switcher/index.d.ts.map +1 -0
  9. package/dist/types/shared/app-switcher/index.d.ts +6 -0
  10. package/dist/types/shared/app-switcher/index.d.ts.map +1 -1
  11. package/dist/types/shared/assets/components/assets-details/index.d.ts +46 -0
  12. package/dist/types/shared/assets/components/assets-details/index.d.ts.map +1 -0
  13. package/dist/types/shared/assets/components/index.d.ts +1 -1
  14. package/dist/types/shared/assets/components/index.d.ts.map +1 -1
  15. package/dist/types/shared/assets/index.d.ts +6 -0
  16. package/dist/types/shared/assets/index.d.ts.map +1 -1
  17. package/dist/types/shared/blade-navigation/components/index.d.ts +1 -1
  18. package/dist/types/shared/blade-navigation/components/index.d.ts.map +1 -1
  19. package/dist/types/shared/blade-navigation/components/vc-blade-navigation/index.d.ts +66 -0
  20. package/dist/types/shared/blade-navigation/components/vc-blade-navigation/index.d.ts.map +1 -0
  21. package/dist/types/shared/blade-navigation/index.d.ts +6 -0
  22. package/dist/types/shared/blade-navigation/index.d.ts.map +1 -1
  23. package/dist/types/ui/components/atoms/vc-badge/index.d.ts +106 -9
  24. package/dist/types/ui/components/atoms/vc-badge/index.d.ts.map +1 -1
  25. package/dist/types/ui/components/atoms/vc-button/index.d.ts +153 -6
  26. package/dist/types/ui/components/atoms/vc-button/index.d.ts.map +1 -1
  27. package/dist/types/ui/components/atoms/vc-card/index.d.ts +163 -7
  28. package/dist/types/ui/components/atoms/vc-card/index.d.ts.map +1 -1
  29. package/dist/types/ui/components/atoms/vc-checkbox/index.d.ts +143 -7
  30. package/dist/types/ui/components/atoms/vc-checkbox/index.d.ts.map +1 -1
  31. package/dist/types/ui/components/atoms/vc-col/index.d.ts +81 -6
  32. package/dist/types/ui/components/atoms/vc-col/index.d.ts.map +1 -1
  33. package/dist/types/ui/components/atoms/vc-container/index.d.ts +112 -6
  34. package/dist/types/ui/components/atoms/vc-container/index.d.ts.map +1 -1
  35. package/dist/types/ui/components/atoms/vc-hint/index.d.ts +51 -6
  36. package/dist/types/ui/components/atoms/vc-hint/index.d.ts.map +1 -1
  37. package/dist/types/ui/components/atoms/vc-icon/index.d.ts +26 -7
  38. package/dist/types/ui/components/atoms/vc-icon/index.d.ts.map +1 -1
  39. package/dist/types/ui/components/atoms/vc-image/index.d.ts +67 -7
  40. package/dist/types/ui/components/atoms/vc-image/index.d.ts.map +1 -1
  41. package/dist/types/ui/components/atoms/vc-info-row/index.d.ts +33 -7
  42. package/dist/types/ui/components/atoms/vc-info-row/index.d.ts.map +1 -1
  43. package/dist/types/ui/components/atoms/vc-label/index.d.ts +95 -7
  44. package/dist/types/ui/components/atoms/vc-label/index.d.ts.map +1 -1
  45. package/dist/types/ui/components/atoms/vc-link/index.d.ts +103 -6
  46. package/dist/types/ui/components/atoms/vc-link/index.d.ts.map +1 -1
  47. package/dist/types/ui/components/atoms/vc-loading/index.d.ts +9 -7
  48. package/dist/types/ui/components/atoms/vc-loading/index.d.ts.map +1 -1
  49. package/dist/types/ui/components/atoms/vc-progress/index.d.ts +100 -6
  50. package/dist/types/ui/components/atoms/vc-progress/index.d.ts.map +1 -1
  51. package/dist/types/ui/components/atoms/vc-row/index.d.ts +51 -6
  52. package/dist/types/ui/components/atoms/vc-row/index.d.ts.map +1 -1
  53. package/dist/types/ui/components/atoms/vc-status/index.d.ts +116 -6
  54. package/dist/types/ui/components/atoms/vc-status/index.d.ts.map +1 -1
  55. package/dist/types/ui/components/atoms/vc-status-icon/index.d.ts +9 -7
  56. package/dist/types/ui/components/atoms/vc-status-icon/index.d.ts.map +1 -1
  57. package/dist/types/ui/components/atoms/vc-switch/index.d.ts +39 -7
  58. package/dist/types/ui/components/atoms/vc-switch/index.d.ts.map +1 -1
  59. package/dist/types/ui/components/atoms/vc-widget/index.d.ts +31 -7
  60. package/dist/types/ui/components/atoms/vc-widget/index.d.ts.map +1 -1
  61. package/dist/types/ui/components/index.d.ts +39 -39
  62. package/dist/types/ui/components/index.d.ts.map +1 -1
  63. package/dist/types/ui/components/molecules/vc-breadcrumbs/index.d.ts +33 -7
  64. package/dist/types/ui/components/molecules/vc-breadcrumbs/index.d.ts.map +1 -1
  65. package/dist/types/ui/components/molecules/vc-code-editor/index.d.ts +188 -6
  66. package/dist/types/ui/components/molecules/vc-code-editor/index.d.ts.map +1 -1
  67. package/dist/types/ui/components/molecules/vc-editor/index.d.ts +204 -6
  68. package/dist/types/ui/components/molecules/vc-editor/index.d.ts.map +1 -1
  69. package/dist/types/ui/components/molecules/vc-file-upload/index.d.ts +175 -6
  70. package/dist/types/ui/components/molecules/vc-file-upload/index.d.ts.map +1 -1
  71. package/dist/types/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts.map +1 -1
  72. package/dist/types/ui/components/molecules/vc-form/index.d.ts +51 -6
  73. package/dist/types/ui/components/molecules/vc-form/index.d.ts.map +1 -1
  74. package/dist/types/ui/components/molecules/vc-input/index.d.ts +375 -46
  75. package/dist/types/ui/components/molecules/vc-input/index.d.ts.map +1 -1
  76. package/dist/types/ui/components/molecules/vc-input-currency/index.d.ts +365 -12
  77. package/dist/types/ui/components/molecules/vc-input-currency/index.d.ts.map +1 -1
  78. package/dist/types/ui/components/molecules/vc-notification/index.d.ts +101 -6
  79. package/dist/types/ui/components/molecules/vc-notification/index.d.ts.map +1 -1
  80. package/dist/types/ui/components/molecules/vc-pagination/index.d.ts +36 -7
  81. package/dist/types/ui/components/molecules/vc-pagination/index.d.ts.map +1 -1
  82. package/dist/types/ui/components/molecules/vc-rating/index.d.ts +156 -6
  83. package/dist/types/ui/components/molecules/vc-rating/index.d.ts.map +1 -1
  84. package/dist/types/ui/components/molecules/vc-select/index.d.ts +566 -69
  85. package/dist/types/ui/components/molecules/vc-select/index.d.ts.map +1 -1
  86. package/dist/types/ui/components/molecules/vc-slider/index.d.ts +159 -10
  87. package/dist/types/ui/components/molecules/vc-slider/index.d.ts.map +1 -1
  88. package/dist/types/ui/components/molecules/vc-textarea/index.d.ts +204 -6
  89. package/dist/types/ui/components/molecules/vc-textarea/index.d.ts.map +1 -1
  90. package/dist/types/ui/components/organisms/vc-app/index.d.ts +302 -9
  91. package/dist/types/ui/components/organisms/vc-app/index.d.ts.map +1 -1
  92. package/dist/types/ui/components/organisms/vc-app/vc-app.vue.d.ts.map +1 -1
  93. package/dist/types/ui/components/organisms/vc-blade/index.d.ts +201 -7
  94. package/dist/types/ui/components/organisms/vc-blade/index.d.ts.map +1 -1
  95. package/dist/types/ui/components/organisms/vc-dynamic-property/index.d.ts +59 -7
  96. package/dist/types/ui/components/organisms/vc-dynamic-property/index.d.ts.map +1 -1
  97. package/dist/types/ui/components/organisms/vc-gallery/index.d.ts +157 -7
  98. package/dist/types/ui/components/organisms/vc-gallery/index.d.ts.map +1 -1
  99. package/dist/types/ui/components/organisms/vc-login-form/index.d.ts +113 -6
  100. package/dist/types/ui/components/organisms/vc-login-form/index.d.ts.map +1 -1
  101. package/dist/types/ui/components/organisms/vc-popup/index.d.ts +129 -6
  102. package/dist/types/ui/components/organisms/vc-popup/index.d.ts.map +1 -1
  103. package/dist/types/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue.d.ts +1 -15
  104. package/dist/types/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue.d.ts.map +1 -1
  105. package/dist/types/ui/components/organisms/vc-table/index.d.ts +649 -27
  106. package/dist/types/ui/components/organisms/vc-table/index.d.ts.map +1 -1
  107. package/dist/types/ui/components/organisms/vc-table/vc-table.stories.d.ts +69 -70
  108. package/dist/types/ui/components/organisms/vc-table/vc-table.stories.d.ts.map +1 -1
  109. package/dist/types/ui/components/organisms/vc-table/vc-table.vue.d.ts +31 -25
  110. package/dist/types/ui/components/organisms/vc-table/vc-table.vue.d.ts.map +1 -1
  111. package/dist/types/ui/types/index.d.ts +46 -0
  112. package/dist/types/ui/types/index.d.ts.map +1 -0
  113. package/package.json +6 -6
  114. package/shared/app-switcher/components/index.ts +1 -1
  115. package/shared/app-switcher/components/vc-app-switcher/index.ts +3 -0
  116. package/shared/app-switcher/index.ts +7 -0
  117. package/shared/assets/components/assets-details/index.ts +3 -0
  118. package/shared/assets/components/index.ts +1 -1
  119. package/shared/assets/index.ts +7 -0
  120. package/shared/blade-navigation/components/index.ts +1 -1
  121. package/shared/blade-navigation/components/vc-blade-navigation/index.ts +3 -0
  122. package/shared/blade-navigation/index.ts +7 -0
  123. package/ui/components/atoms/vc-badge/index.ts +10 -9
  124. package/ui/components/atoms/vc-button/index.ts +7 -6
  125. package/ui/components/atoms/vc-card/index.ts +8 -7
  126. package/ui/components/atoms/vc-checkbox/index.ts +8 -7
  127. package/ui/components/atoms/vc-col/index.ts +7 -6
  128. package/ui/components/atoms/vc-container/index.ts +7 -6
  129. package/ui/components/atoms/vc-hint/index.ts +7 -6
  130. package/ui/components/atoms/vc-icon/index.ts +2 -8
  131. package/ui/components/atoms/vc-image/index.ts +2 -8
  132. package/ui/components/atoms/vc-info-row/index.ts +2 -8
  133. package/ui/components/atoms/vc-label/index.ts +8 -7
  134. package/ui/components/atoms/vc-link/index.ts +7 -6
  135. package/ui/components/atoms/vc-loading/index.ts +2 -8
  136. package/ui/components/atoms/vc-progress/index.ts +7 -6
  137. package/ui/components/atoms/vc-row/index.ts +7 -6
  138. package/ui/components/atoms/vc-status/index.ts +7 -6
  139. package/ui/components/atoms/vc-status-icon/index.ts +2 -8
  140. package/ui/components/atoms/vc-switch/index.ts +2 -8
  141. package/ui/components/atoms/vc-widget/index.ts +2 -8
  142. package/ui/components/index.ts +39 -39
  143. package/ui/components/molecules/vc-breadcrumbs/index.ts +2 -8
  144. package/ui/components/molecules/vc-code-editor/index.ts +7 -6
  145. package/ui/components/molecules/vc-editor/index.ts +7 -6
  146. package/ui/components/molecules/vc-file-upload/index.ts +7 -6
  147. package/ui/components/molecules/vc-file-upload/vc-file-upload.vue +18 -4
  148. package/ui/components/molecules/vc-form/index.ts +7 -6
  149. package/ui/components/molecules/vc-input/index.ts +57 -56
  150. package/ui/components/molecules/vc-input-currency/index.ts +15 -14
  151. package/ui/components/molecules/vc-notification/index.ts +7 -6
  152. package/ui/components/molecules/vc-pagination/index.ts +2 -8
  153. package/ui/components/molecules/vc-rating/index.ts +7 -6
  154. package/ui/components/molecules/vc-select/index.ts +84 -84
  155. package/ui/components/molecules/vc-slider/index.ts +10 -9
  156. package/ui/components/molecules/vc-textarea/index.ts +7 -6
  157. package/ui/components/organisms/vc-app/index.ts +10 -9
  158. package/ui/components/organisms/vc-app/vc-app.vue +7 -0
  159. package/ui/components/organisms/vc-blade/index.ts +8 -7
  160. package/ui/components/organisms/vc-dynamic-property/index.ts +2 -8
  161. package/ui/components/organisms/vc-gallery/index.ts +2 -8
  162. package/ui/components/organisms/vc-login-form/index.ts +7 -6
  163. package/ui/components/organisms/vc-popup/index.ts +7 -6
  164. package/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue +1 -4
  165. package/ui/components/organisms/vc-table/index.ts +16 -14
  166. package/ui/components/organisms/vc-table/vc-table.vue +118 -49
  167. package/ui/types/index.ts +53 -0
  168. package/dist/types/ui/services/components.d.ts +0 -2
  169. package/dist/types/ui/services/components.d.ts.map +0 -1
  170. package/dist/types/ui/services/types/components.d.ts +0 -14
  171. package/dist/types/ui/services/types/components.d.ts.map +0 -1
  172. package/dist/types/ui/services/types/index.d.ts +0 -7
  173. package/dist/types/ui/services/types/index.d.ts.map +0 -1
  174. package/dist/types/ui/services/types/ts-helpers.d.ts +0 -8
  175. package/dist/types/ui/services/types/ts-helpers.d.ts.map +0 -1
  176. package/ui/services/components.ts +0 -40
  177. package/ui/services/types/components.ts +0 -14
  178. package/ui/services/types/index.ts +0 -9
  179. package/ui/services/types/ts-helpers.ts +0 -18
@@ -1,9 +1,10 @@
1
1
  import { VNode } from "vue";
2
- import Button from "./vc-button.vue";
3
- import { GlobalComponentConstructor } from "./../../../services/types/ts-helpers";
2
+ import _Button from "./vc-button.vue";
4
3
 
5
- export type VcButtonSlots = {
6
- default?: () => VNode[];
4
+ export const VcButton = _Button as typeof _Button & {
5
+ new (): {
6
+ $slots: {
7
+ default: () => VNode[];
8
+ };
9
+ };
7
10
  };
8
-
9
- export const VcButton: GlobalComponentConstructor<typeof Button, VcButtonSlots> = Button;
@@ -1,10 +1,11 @@
1
1
  import { VNode } from "vue";
2
- import Card from "./vc-card.vue";
3
- import { GlobalComponentConstructor } from "./../../../services/types/ts-helpers";
2
+ import _Card from "./vc-card.vue";
4
3
 
5
- export type VcCardSlots = {
6
- default?: () => VNode[];
7
- actions?: () => VNode[];
4
+ export const VcCard = _Card as typeof _Card & {
5
+ new (): {
6
+ $slots: {
7
+ default: () => VNode[];
8
+ actions: () => VNode[];
9
+ };
10
+ };
8
11
  };
9
-
10
- export const VcCard: GlobalComponentConstructor<typeof Card, VcCardSlots> = Card;
@@ -1,10 +1,11 @@
1
1
  import { VNode } from "vue";
2
- import Checkbox from "./vc-checkbox.vue";
3
- import { GlobalComponentConstructor } from "./../../../services/types/ts-helpers";
2
+ import _Checkbox from "./vc-checkbox.vue";
4
3
 
5
- export type VcCheckboxSlots = {
6
- default?: () => VNode[];
7
- error?: () => VNode[];
4
+ export const VcCheckbox = _Checkbox as typeof _Checkbox & {
5
+ new (): {
6
+ $slots: {
7
+ default: () => VNode[];
8
+ error: () => VNode[];
9
+ };
10
+ };
8
11
  };
9
-
10
- export const VcCheckbox: GlobalComponentConstructor<typeof Checkbox, VcCheckboxSlots> = Checkbox;
@@ -1,9 +1,10 @@
1
1
  import { VNode } from "vue";
2
- import Col from "./vc-col.vue";
3
- import { GlobalComponentConstructor } from "./../../../services/types/ts-helpers";
2
+ import _Col from "./vc-col.vue";
4
3
 
5
- export type VcColSlots = {
6
- default?: () => VNode[];
4
+ export const VcCol = _Col as typeof _Col & {
5
+ new (): {
6
+ $slots: {
7
+ default: () => VNode[];
8
+ };
9
+ };
7
10
  };
8
-
9
- export const VcCol: GlobalComponentConstructor<typeof Col, VcColSlots> = Col;
@@ -1,9 +1,10 @@
1
1
  import { VNode } from "vue";
2
- import Container from "./vc-container.vue";
3
- import { GlobalComponentConstructor } from "./../../../services/types/ts-helpers";
2
+ import _Container from "./vc-container.vue";
4
3
 
5
- export type VcContainerSlots = {
6
- default?: () => VNode[];
4
+ export const VcContainer = _Container as typeof _Container & {
5
+ new (): {
6
+ $slots: {
7
+ default: () => VNode[];
8
+ };
9
+ };
7
10
  };
8
-
9
- export const VcContainer: GlobalComponentConstructor<typeof Container, VcContainerSlots> = Container;
@@ -1,9 +1,10 @@
1
- import Hint from "./vc-hint.vue";
2
- import { GlobalComponentConstructor } from "./../../../services/types/ts-helpers";
1
+ import _Hint from "./vc-hint.vue";
3
2
  import { VNode } from "vue";
4
3
 
5
- export type VcHintSlots = {
6
- default?: () => VNode[];
4
+ export const VcHint = _Hint as typeof _Hint & {
5
+ new (): {
6
+ $slots: {
7
+ default: () => VNode[];
8
+ };
9
+ };
7
10
  };
8
-
9
- export const VcHint: GlobalComponentConstructor<typeof Hint, VcHintSlots> = Hint;
@@ -1,9 +1,3 @@
1
- import { VNode } from "vue";
2
- import Icon from "./vc-icon.vue";
3
- import { GlobalComponentConstructor } from "./../../../services/types/ts-helpers";
1
+ import _Icon from "./vc-icon.vue";
4
2
 
5
- export type VcIconSlots = {
6
- default?: () => VNode[];
7
- };
8
-
9
- export const VcIcon: GlobalComponentConstructor<typeof Icon, VcIconSlots> = Icon;
3
+ export const VcIcon = _Icon as typeof _Icon;
@@ -1,9 +1,3 @@
1
- import { VNode } from "vue";
2
- import Image from "./vc-image.vue";
3
- import { GlobalComponentConstructor } from "./../../../services/types/ts-helpers";
1
+ import _Image from "./vc-image.vue";
4
2
 
5
- export type VcImageSlots = {
6
- default?: () => VNode[];
7
- };
8
-
9
- export const VcImage: GlobalComponentConstructor<typeof Image, VcImageSlots> = Image;
3
+ export const VcImage = _Image as typeof _Image;
@@ -1,9 +1,3 @@
1
- import InfoRow from "./vc-info-row.vue";
2
- import { GlobalComponentConstructor } from "./../../../services/types/ts-helpers";
3
- import { VNode } from "vue";
1
+ import _InfoRow from "./vc-info-row.vue";
4
2
 
5
- export type VcInfoRowSlots = {
6
- default?: () => VNode[];
7
- };
8
-
9
- export const VcInfoRow: GlobalComponentConstructor<typeof InfoRow, VcInfoRowSlots> = InfoRow;
3
+ export const VcInfoRow = _InfoRow as typeof _InfoRow;
@@ -1,10 +1,11 @@
1
- import Label from "./vc-label.vue";
2
- import { GlobalComponentConstructor } from "./../../../services/types/ts-helpers";
1
+ import _Label from "./vc-label.vue";
3
2
  import { VNode } from "vue";
4
3
 
5
- export type VcLabelSlots = {
6
- default?: () => VNode[];
7
- tooltip?: () => VNode[];
4
+ export const VcLabel = _Label as typeof _Label & {
5
+ new (): {
6
+ $slots: {
7
+ default: () => VNode[];
8
+ tooltip: () => VNode[];
9
+ };
10
+ };
8
11
  };
9
-
10
- export const VcLabel: GlobalComponentConstructor<typeof Label, VcLabelSlots> = Label;
@@ -1,9 +1,10 @@
1
1
  import { VNode } from "vue";
2
- import Link from "./vc-link.vue";
3
- import { GlobalComponentConstructor } from "./../../../services/types/ts-helpers";
2
+ import _Link from "./vc-link.vue";
4
3
 
5
- export type VcLinkSlots = {
6
- default?: () => VNode[];
4
+ export const VcLink = _Link as typeof _Link & {
5
+ new (): {
6
+ $slots: {
7
+ default: () => VNode[];
8
+ };
9
+ };
7
10
  };
8
-
9
- export const VcLink: GlobalComponentConstructor<typeof Link, VcLinkSlots> = Link;
@@ -1,9 +1,3 @@
1
- import { VNode } from "vue";
2
- import Loading from "./vc-loading.vue";
3
- import { GlobalComponentConstructor } from "./../../../services/types/ts-helpers";
1
+ import _Loading from "./vc-loading.vue";
4
2
 
5
- export type VcLoadingSlots = {
6
- default?: () => VNode[];
7
- };
8
-
9
- export const VcLoading: GlobalComponentConstructor<typeof Loading, VcLoadingSlots> = Loading;
3
+ export const VcLoading = _Loading as typeof _Loading;
@@ -1,9 +1,10 @@
1
1
  import { VNode } from "vue";
2
- import Progress from "./vc-progress.vue";
3
- import { GlobalComponentConstructor } from "./../../../services/types/ts-helpers";
2
+ import _Progress from "./vc-progress.vue";
4
3
 
5
- export type VcProgressSlots = {
6
- default?: () => VNode[];
4
+ export const VcProgress = _Progress as typeof _Progress & {
5
+ new (): {
6
+ $slots: {
7
+ default: () => VNode[];
8
+ };
9
+ };
7
10
  };
8
-
9
- export const VcProgress: GlobalComponentConstructor<typeof Progress, VcProgressSlots> = Progress;
@@ -1,9 +1,10 @@
1
1
  import { VNode } from "vue";
2
- import Row from "./vc-row.vue";
3
- import { GlobalComponentConstructor } from "./../../../services/types/ts-helpers";
2
+ import _Row from "./vc-row.vue";
4
3
 
5
- export type VcRowSlots = {
6
- default?: () => VNode[];
4
+ export const VcRow = _Row as typeof _Row & {
5
+ new (): {
6
+ $slots: {
7
+ default: () => VNode[];
8
+ };
9
+ };
7
10
  };
8
-
9
- export const VcRow: GlobalComponentConstructor<typeof Row, VcRowSlots> = Row;
@@ -1,9 +1,10 @@
1
1
  import { VNode } from "vue";
2
- import Status from "./vc-status.vue";
3
- import { GlobalComponentConstructor } from "./../../../services/types/ts-helpers";
2
+ import _Status from "./vc-status.vue";
4
3
 
5
- export type VcStatusSlots = {
6
- default?: () => VNode[];
4
+ export const VcStatus = _Status as typeof _Status & {
5
+ new (): {
6
+ $slots: {
7
+ default: () => VNode[];
8
+ };
9
+ };
7
10
  };
8
-
9
- export const VcStatus: GlobalComponentConstructor<typeof Status, VcStatusSlots> = Status;
@@ -1,9 +1,3 @@
1
- import { VNode } from "vue";
2
- import StatusIcon from "./vc-status-icon.vue";
3
- import { GlobalComponentConstructor } from "./../../../services/types/ts-helpers";
1
+ import _StatusIcon from "./vc-status-icon.vue";
4
2
 
5
- export type VcStatusIconSlots = {
6
- default?: () => VNode[];
7
- };
8
-
9
- export const VcStatusIcon: GlobalComponentConstructor<typeof StatusIcon, VcStatusIconSlots> = StatusIcon;
3
+ export const VcStatusIcon = _StatusIcon as typeof _StatusIcon;
@@ -1,9 +1,3 @@
1
- import { VNode } from "vue";
2
- import { GlobalComponentConstructor } from "./../../../services/types/ts-helpers";
3
- import Switch from "./vc-switch.vue";
1
+ import _Switch from "./vc-switch.vue";
4
2
 
5
- export type VcSwitchSlots = {
6
- default?: () => VNode[];
7
- };
8
-
9
- export const VcSwitch: GlobalComponentConstructor<typeof Switch, VcSwitchSlots> = Switch;
3
+ export const VcSwitch = _Switch as typeof _Switch;
@@ -1,9 +1,3 @@
1
- import { VNode } from "vue";
2
- import Widget from "./vc-widget.vue";
3
- import { GlobalComponentConstructor } from "./../../../services/types/ts-helpers";
1
+ import _Widget from "./vc-widget.vue";
4
2
 
5
- export type VcWidgetSlots = {
6
- default?: () => VNode[];
7
- }
8
-
9
- export const VcWidget: GlobalComponentConstructor<typeof Widget, VcWidgetSlots> = Widget;
3
+ export const VcWidget = _Widget as typeof _Widget;
@@ -1,44 +1,44 @@
1
1
  /* Atoms */
2
- export * from "./atoms/vc-badge";
3
- export * from "./atoms/vc-button";
4
- export * from "./atoms/vc-card";
5
- export * from "./atoms/vc-checkbox";
6
- export * from "./atoms/vc-col";
7
- export * from "./atoms/vc-container";
8
- export * from "./atoms/vc-hint";
9
- export * from "./atoms/vc-icon";
10
- export * from "./atoms/vc-info-row";
11
- export * from "./atoms/vc-image";
12
- export * from "./atoms/vc-label";
13
- export * from "./atoms/vc-link";
14
- export * from "./atoms/vc-loading";
15
- export * from "./atoms/vc-progress";
16
- export * from "./atoms/vc-row";
17
- export * from "./atoms/vc-status";
18
- export * from "./atoms/vc-status-icon";
19
- export * from "./atoms/vc-switch";
20
- export * from "./atoms/vc-widget";
2
+ export { VcBadge } from "./atoms/vc-badge";
3
+ export { VcButton } from "./atoms/vc-button";
4
+ export { VcCard } from "./atoms/vc-card";
5
+ export { VcCheckbox } from "./atoms/vc-checkbox";
6
+ export { VcCol } from "./atoms/vc-col";
7
+ export { VcContainer } from "./atoms/vc-container";
8
+ export { VcHint } from "./atoms/vc-hint";
9
+ export { VcIcon } from "./atoms/vc-icon";
10
+ export { VcInfoRow } from "./atoms/vc-info-row";
11
+ export { VcImage } from "./atoms/vc-image";
12
+ export { VcLabel } from "./atoms/vc-label";
13
+ export { VcLink } from "./atoms/vc-link";
14
+ export { VcLoading } from "./atoms/vc-loading";
15
+ export { VcProgress } from "./atoms/vc-progress";
16
+ export { VcRow } from "./atoms/vc-row";
17
+ export { VcStatus } from "./atoms/vc-status";
18
+ export { VcStatusIcon } from "./atoms/vc-status-icon";
19
+ export { VcSwitch } from "./atoms/vc-switch";
20
+ export { VcWidget } from "./atoms/vc-widget";
21
21
 
22
22
  /* Molecules */
23
- export * from "./molecules/vc-breadcrumbs";
24
- export * from "./molecules/vc-code-editor";
25
- export * from "./molecules/vc-editor";
26
- export * from "./molecules/vc-form";
27
- export * from "./molecules/vc-file-upload";
28
- export * from "./molecules/vc-input";
29
- export * from "./molecules/vc-input-currency";
30
- export * from "./molecules/vc-notification";
31
- export * from "./molecules/vc-pagination";
32
- export * from "./molecules/vc-rating";
33
- export * from "./molecules/vc-select";
34
- export * from "./molecules/vc-slider";
35
- export * from "./molecules/vc-textarea";
23
+ export { VcBreadcrumbs } from "./molecules/vc-breadcrumbs";
24
+ export { VcCodeEditor } from "./molecules/vc-code-editor";
25
+ export { VcEditor } from "./molecules/vc-editor";
26
+ export { VcForm } from "./molecules/vc-form";
27
+ export { VcFileUpload } from "./molecules/vc-file-upload";
28
+ export { VcInput } from "./molecules/vc-input";
29
+ export { VcInputCurrency } from "./molecules/vc-input-currency";
30
+ export { VcNotification } from "./molecules/vc-notification";
31
+ export { VcPagination } from "./molecules/vc-pagination";
32
+ export { VcRating } from "./molecules/vc-rating";
33
+ export { VcSelect } from "./molecules/vc-select";
34
+ export { VcSlider } from "./molecules/vc-slider";
35
+ export { VcTextarea } from "./molecules/vc-textarea";
36
36
 
37
37
  /* Organisms */
38
- export * from "./organisms/vc-app";
39
- export * from "./organisms/vc-blade";
40
- export * from "./organisms/vc-dynamic-property";
41
- export * from "./organisms/vc-gallery";
42
- export * from "./organisms/vc-login-form";
43
- export * from "./organisms/vc-popup";
44
- export * from "./organisms/vc-table";
38
+ export { VcApp } from "./organisms/vc-app";
39
+ export { VcBlade } from "./organisms/vc-blade";
40
+ export { VcDynamicProperty } from "./organisms/vc-dynamic-property";
41
+ export { VcGallery } from "./organisms/vc-gallery";
42
+ export { VcLoginForm } from "./organisms/vc-login-form";
43
+ export { VcPopup } from "./organisms/vc-popup";
44
+ export { VcTable } from "./organisms/vc-table";
@@ -1,9 +1,3 @@
1
- import { VNode } from "vue";
2
- import Breadcrumbs from "./vc-breadcrumbs.vue";
3
- import { GlobalComponentConstructor } from "./../../../services/types/ts-helpers";
1
+ import _Breadcrumbs from "./vc-breadcrumbs.vue";
4
2
 
5
- export type VcBreadcrumbsSlots = {
6
- default?: () => VNode[];
7
- };
8
-
9
- export const VcBreadcrumbs: GlobalComponentConstructor<typeof Breadcrumbs, VcBreadcrumbsSlots> = Breadcrumbs;
3
+ export const VcBreadcrumbs = _Breadcrumbs as typeof _Breadcrumbs;
@@ -1,9 +1,10 @@
1
1
  import { VNode } from "vue";
2
- import CodeEditor from "./vc-code-editor.vue";
3
- import { GlobalComponentConstructor } from "./../../../services/types/ts-helpers";
2
+ import _CodeEditor from "./vc-code-editor.vue";
4
3
 
5
- export type VcCodeEditorSlots = {
6
- error?: () => VNode[];
4
+ export const VcCodeEditor = _CodeEditor as typeof _CodeEditor & {
5
+ new (): {
6
+ $slots: {
7
+ error: () => VNode[];
8
+ };
9
+ };
7
10
  };
8
-
9
- export const VcCodeEditor: GlobalComponentConstructor<typeof CodeEditor, VcCodeEditorSlots> = CodeEditor;
@@ -1,9 +1,10 @@
1
1
  import { VNode } from "vue";
2
- import Editor from "./vc-editor.vue";
3
- import { GlobalComponentConstructor } from "./../../../services/types/ts-helpers";
2
+ import _Editor from "./vc-editor.vue";
4
3
 
5
- export type VcEditorSlots = {
6
- error?: () => VNode[];
4
+ export const VcEditor = _Editor as typeof _Editor & {
5
+ new (): {
6
+ $slots: {
7
+ error: () => VNode[];
8
+ };
9
+ };
7
10
  };
8
-
9
- export const VcEditor: GlobalComponentConstructor<typeof Editor, VcEditorSlots> = Editor;
@@ -1,9 +1,10 @@
1
1
  import { VNode } from "vue";
2
- import FileUpload from "./vc-file-upload.vue";
3
- import { GlobalComponentConstructor } from "./../../../services/types/ts-helpers";
2
+ import _FileUpload from "./vc-file-upload.vue";
4
3
 
5
- export type VcFileUploadSlots = {
6
- error?: () => VNode[];
4
+ export const VcFileUpload = _FileUpload as typeof _FileUpload & {
5
+ new (): {
6
+ $slots: {
7
+ error?: () => VNode[];
8
+ };
9
+ };
7
10
  };
8
-
9
- export const VcFileUpload: GlobalComponentConstructor<typeof FileUpload, VcFileUploadSlots> = FileUpload;
@@ -1,15 +1,20 @@
1
1
  <template>
2
2
  <div class="tw-flex tw-flex-col tw-flex-1">
3
3
  <div
4
- class="vc-file-upload tw-relative tw-h-[155px] tw-box-border tw-border tw-border-dashed tw-border-[#c8dbea] tw-rounded-[6px] tw-p-2 tw-p-4 tw-flex tw-flex-col tw-items-center tw-justify-center"
5
- :class="`vc-file-upload_${variant}`"
4
+ class="vc-file-upload tw-relative tw-h-[155px] tw-box-border tw-border tw-border-dashed tw-border-[#c8dbea] tw-rounded-[6px] tw-p-4 tw-flex tw-flex-col tw-items-center tw-justify-center"
5
+ :class="[
6
+ `vc-file-upload_${variant}`,
7
+ {
8
+ '!tw-bg-[#e8f1f9] !tw-border-solid tw-cursor-copy': isDragging,
9
+ },
10
+ ]"
6
11
  @drop.stop.prevent="onDrop"
7
12
  @drag.stop.prevent
8
13
  @dragstart.stop.prevent
9
14
  @dragend.stop.prevent
10
- @dragover.stop.prevent
15
+ @dragover.stop.prevent="dragOver"
11
16
  @dragenter.stop.prevent
12
- @dragleave.stop.prevent
17
+ @dragleave.stop.prevent="dragLeave"
13
18
  >
14
19
  <VcLoading :active="loading"></VcLoading>
15
20
  <VcIcon
@@ -73,6 +78,7 @@ const emit = defineEmits<Emits>();
73
78
  const instance = getCurrentInstance();
74
79
  // Prepare validation rules using required and rules props combination
75
80
  let internalRules = unref(props.rules) || "";
81
+ const isDragging = ref(false);
76
82
 
77
83
  // Prepare field-level validation
78
84
  const { errorMessage, handleChange, validate } = useField(
@@ -109,6 +115,14 @@ function onDrop(event: DragEvent) {
109
115
  emit("upload", fileList);
110
116
  }
111
117
  }
118
+
119
+ function dragOver() {
120
+ isDragging.value = true;
121
+ }
122
+
123
+ function dragLeave() {
124
+ isDragging.value = false;
125
+ }
112
126
  </script>
113
127
 
114
128
  <style lang="scss">
@@ -1,9 +1,10 @@
1
1
  import { VNode } from "vue";
2
- import Form from "./vc-form.vue";
3
- import { GlobalComponentConstructor } from "./../../../services/types/ts-helpers";
2
+ import _Form from "./vc-form.vue";
4
3
 
5
- export type VcFormSlots = {
6
- default?: () => VNode[];
4
+ export const VcForm = _Form as typeof _Form & {
5
+ new (): {
6
+ $slots: {
7
+ default: () => VNode[];
8
+ };
9
+ };
7
10
  };
8
-
9
- export const VcForm: GlobalComponentConstructor<typeof Form, VcFormSlots> = Form;
@@ -1,59 +1,60 @@
1
1
  import { VNode } from "vue";
2
- import Input from "./vc-input.vue";
3
- import { GlobalComponentConstructor } from "./../../../services/types/ts-helpers";
2
+ import _Input from "./vc-input.vue";
4
3
 
5
- export type VcInputSlots = {
6
- /**
7
- * Slot for controls
8
- * @param scope
9
- */
10
- control?: (scope: {
11
- /**
12
- * Field is editable
13
- */
14
- editable: boolean;
15
- /**
16
- * Field has focus
17
- */
18
- focused: boolean;
19
- /**
20
- * Field's value
21
- */
22
- modelValue: string | number | Date | null;
23
- /**
24
- * Function that emits an @input event in the context of the field
25
- * @param value Value to be emitted
26
- */
27
- emitValue: (value: string | number | Date | null) => void;
28
- /**
29
- * Field placeholder text
30
- */
31
- placeholder?: string | undefined;
32
- }) => VNode[];
33
- /**
34
- * Prepend outer field
35
- */
36
- prepend?: () => VNode[];
37
- /**
38
- * Prepend inner field
39
- */
40
- "prepend-inner"?: () => VNode[];
41
- /**
42
- * Append to inner field
43
- */
44
- "append-inner"?: () => VNode[];
45
- /**
46
- * Append outer field
47
- */
48
- append?: () => VNode[];
49
- /**
50
- * Slot for errors
51
- */
52
- error?: () => VNode[];
53
- /**
54
- * Slot for hint text
55
- */
56
- hint?: () => VNode[];
4
+ export const VcInput = _Input as typeof _Input & {
5
+ new (): {
6
+ $slots: {
7
+ /**
8
+ * Slot for controls
9
+ * @param scope
10
+ */
11
+ control: (scope: {
12
+ /**
13
+ * Field is editable
14
+ */
15
+ editable: boolean;
16
+ /**
17
+ * Field has focus
18
+ */
19
+ focused: boolean;
20
+ /**
21
+ * Field's value
22
+ */
23
+ modelValue: string | number | Date | null;
24
+ /**
25
+ * Function that emits an @input event in the context of the field
26
+ * @param value Value to be emitted
27
+ */
28
+ emitValue: (value: string | number | Date | null) => void;
29
+ /**
30
+ * Field placeholder text
31
+ */
32
+ placeholder: string | undefined;
33
+ }) => VNode[];
34
+ /**
35
+ * Prepend outer field
36
+ */
37
+ prepend: () => VNode[];
38
+ /**
39
+ * Prepend inner field
40
+ */
41
+ "prepend-inner": () => VNode[];
42
+ /**
43
+ * Append to inner field
44
+ */
45
+ "append-inner": () => VNode[];
46
+ /**
47
+ * Append outer field
48
+ */
49
+ append: () => VNode[];
50
+ /**
51
+ * Slot for errors
52
+ */
53
+ error: () => VNode[];
54
+ /**
55
+ * Slot for hint text
56
+ */
57
+ hint: () => VNode[];
58
+ };
59
+ };
57
60
  };
58
-
59
- export const VcInput: GlobalComponentConstructor<typeof Input, VcInputSlots> = Input;