@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.
- package/dist/framework.mjs +126 -57
- package/dist/index.css +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/shared/app-switcher/components/index.d.ts +1 -1
- package/dist/types/shared/app-switcher/components/index.d.ts.map +1 -1
- package/dist/types/shared/app-switcher/components/vc-app-switcher/index.d.ts +22 -0
- package/dist/types/shared/app-switcher/components/vc-app-switcher/index.d.ts.map +1 -0
- package/dist/types/shared/app-switcher/index.d.ts +6 -0
- package/dist/types/shared/app-switcher/index.d.ts.map +1 -1
- package/dist/types/shared/assets/components/assets-details/index.d.ts +46 -0
- package/dist/types/shared/assets/components/assets-details/index.d.ts.map +1 -0
- package/dist/types/shared/assets/components/index.d.ts +1 -1
- package/dist/types/shared/assets/components/index.d.ts.map +1 -1
- package/dist/types/shared/assets/index.d.ts +6 -0
- package/dist/types/shared/assets/index.d.ts.map +1 -1
- package/dist/types/shared/blade-navigation/components/index.d.ts +1 -1
- package/dist/types/shared/blade-navigation/components/index.d.ts.map +1 -1
- package/dist/types/shared/blade-navigation/components/vc-blade-navigation/index.d.ts +66 -0
- package/dist/types/shared/blade-navigation/components/vc-blade-navigation/index.d.ts.map +1 -0
- package/dist/types/shared/blade-navigation/index.d.ts +6 -0
- package/dist/types/shared/blade-navigation/index.d.ts.map +1 -1
- package/dist/types/ui/components/atoms/vc-badge/index.d.ts +106 -9
- package/dist/types/ui/components/atoms/vc-badge/index.d.ts.map +1 -1
- package/dist/types/ui/components/atoms/vc-button/index.d.ts +153 -6
- package/dist/types/ui/components/atoms/vc-button/index.d.ts.map +1 -1
- package/dist/types/ui/components/atoms/vc-card/index.d.ts +163 -7
- package/dist/types/ui/components/atoms/vc-card/index.d.ts.map +1 -1
- package/dist/types/ui/components/atoms/vc-checkbox/index.d.ts +143 -7
- package/dist/types/ui/components/atoms/vc-checkbox/index.d.ts.map +1 -1
- package/dist/types/ui/components/atoms/vc-col/index.d.ts +81 -6
- package/dist/types/ui/components/atoms/vc-col/index.d.ts.map +1 -1
- package/dist/types/ui/components/atoms/vc-container/index.d.ts +112 -6
- package/dist/types/ui/components/atoms/vc-container/index.d.ts.map +1 -1
- package/dist/types/ui/components/atoms/vc-hint/index.d.ts +51 -6
- package/dist/types/ui/components/atoms/vc-hint/index.d.ts.map +1 -1
- package/dist/types/ui/components/atoms/vc-icon/index.d.ts +26 -7
- package/dist/types/ui/components/atoms/vc-icon/index.d.ts.map +1 -1
- package/dist/types/ui/components/atoms/vc-image/index.d.ts +67 -7
- package/dist/types/ui/components/atoms/vc-image/index.d.ts.map +1 -1
- package/dist/types/ui/components/atoms/vc-info-row/index.d.ts +33 -7
- package/dist/types/ui/components/atoms/vc-info-row/index.d.ts.map +1 -1
- package/dist/types/ui/components/atoms/vc-label/index.d.ts +95 -7
- package/dist/types/ui/components/atoms/vc-label/index.d.ts.map +1 -1
- package/dist/types/ui/components/atoms/vc-link/index.d.ts +103 -6
- package/dist/types/ui/components/atoms/vc-link/index.d.ts.map +1 -1
- package/dist/types/ui/components/atoms/vc-loading/index.d.ts +9 -7
- package/dist/types/ui/components/atoms/vc-loading/index.d.ts.map +1 -1
- package/dist/types/ui/components/atoms/vc-progress/index.d.ts +100 -6
- package/dist/types/ui/components/atoms/vc-progress/index.d.ts.map +1 -1
- package/dist/types/ui/components/atoms/vc-row/index.d.ts +51 -6
- package/dist/types/ui/components/atoms/vc-row/index.d.ts.map +1 -1
- package/dist/types/ui/components/atoms/vc-status/index.d.ts +116 -6
- package/dist/types/ui/components/atoms/vc-status/index.d.ts.map +1 -1
- package/dist/types/ui/components/atoms/vc-status-icon/index.d.ts +9 -7
- package/dist/types/ui/components/atoms/vc-status-icon/index.d.ts.map +1 -1
- package/dist/types/ui/components/atoms/vc-switch/index.d.ts +39 -7
- package/dist/types/ui/components/atoms/vc-switch/index.d.ts.map +1 -1
- package/dist/types/ui/components/atoms/vc-widget/index.d.ts +31 -7
- package/dist/types/ui/components/atoms/vc-widget/index.d.ts.map +1 -1
- package/dist/types/ui/components/index.d.ts +39 -39
- package/dist/types/ui/components/index.d.ts.map +1 -1
- package/dist/types/ui/components/molecules/vc-breadcrumbs/index.d.ts +33 -7
- package/dist/types/ui/components/molecules/vc-breadcrumbs/index.d.ts.map +1 -1
- package/dist/types/ui/components/molecules/vc-code-editor/index.d.ts +188 -6
- package/dist/types/ui/components/molecules/vc-code-editor/index.d.ts.map +1 -1
- package/dist/types/ui/components/molecules/vc-editor/index.d.ts +204 -6
- package/dist/types/ui/components/molecules/vc-editor/index.d.ts.map +1 -1
- package/dist/types/ui/components/molecules/vc-file-upload/index.d.ts +175 -6
- package/dist/types/ui/components/molecules/vc-file-upload/index.d.ts.map +1 -1
- package/dist/types/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts.map +1 -1
- package/dist/types/ui/components/molecules/vc-form/index.d.ts +51 -6
- package/dist/types/ui/components/molecules/vc-form/index.d.ts.map +1 -1
- package/dist/types/ui/components/molecules/vc-input/index.d.ts +375 -46
- package/dist/types/ui/components/molecules/vc-input/index.d.ts.map +1 -1
- package/dist/types/ui/components/molecules/vc-input-currency/index.d.ts +365 -12
- package/dist/types/ui/components/molecules/vc-input-currency/index.d.ts.map +1 -1
- package/dist/types/ui/components/molecules/vc-notification/index.d.ts +101 -6
- package/dist/types/ui/components/molecules/vc-notification/index.d.ts.map +1 -1
- package/dist/types/ui/components/molecules/vc-pagination/index.d.ts +36 -7
- package/dist/types/ui/components/molecules/vc-pagination/index.d.ts.map +1 -1
- package/dist/types/ui/components/molecules/vc-rating/index.d.ts +156 -6
- package/dist/types/ui/components/molecules/vc-rating/index.d.ts.map +1 -1
- package/dist/types/ui/components/molecules/vc-select/index.d.ts +566 -69
- package/dist/types/ui/components/molecules/vc-select/index.d.ts.map +1 -1
- package/dist/types/ui/components/molecules/vc-slider/index.d.ts +159 -10
- package/dist/types/ui/components/molecules/vc-slider/index.d.ts.map +1 -1
- package/dist/types/ui/components/molecules/vc-textarea/index.d.ts +204 -6
- package/dist/types/ui/components/molecules/vc-textarea/index.d.ts.map +1 -1
- package/dist/types/ui/components/organisms/vc-app/index.d.ts +302 -9
- package/dist/types/ui/components/organisms/vc-app/index.d.ts.map +1 -1
- package/dist/types/ui/components/organisms/vc-app/vc-app.vue.d.ts.map +1 -1
- package/dist/types/ui/components/organisms/vc-blade/index.d.ts +201 -7
- package/dist/types/ui/components/organisms/vc-blade/index.d.ts.map +1 -1
- package/dist/types/ui/components/organisms/vc-dynamic-property/index.d.ts +59 -7
- package/dist/types/ui/components/organisms/vc-dynamic-property/index.d.ts.map +1 -1
- package/dist/types/ui/components/organisms/vc-gallery/index.d.ts +157 -7
- package/dist/types/ui/components/organisms/vc-gallery/index.d.ts.map +1 -1
- package/dist/types/ui/components/organisms/vc-login-form/index.d.ts +113 -6
- package/dist/types/ui/components/organisms/vc-login-form/index.d.ts.map +1 -1
- package/dist/types/ui/components/organisms/vc-popup/index.d.ts +129 -6
- package/dist/types/ui/components/organisms/vc-popup/index.d.ts.map +1 -1
- package/dist/types/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue.d.ts +1 -15
- package/dist/types/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue.d.ts.map +1 -1
- package/dist/types/ui/components/organisms/vc-table/index.d.ts +649 -27
- package/dist/types/ui/components/organisms/vc-table/index.d.ts.map +1 -1
- package/dist/types/ui/components/organisms/vc-table/vc-table.stories.d.ts +69 -70
- package/dist/types/ui/components/organisms/vc-table/vc-table.stories.d.ts.map +1 -1
- package/dist/types/ui/components/organisms/vc-table/vc-table.vue.d.ts +31 -25
- package/dist/types/ui/components/organisms/vc-table/vc-table.vue.d.ts.map +1 -1
- package/dist/types/ui/types/index.d.ts +46 -0
- package/dist/types/ui/types/index.d.ts.map +1 -0
- package/package.json +6 -6
- package/shared/app-switcher/components/index.ts +1 -1
- package/shared/app-switcher/components/vc-app-switcher/index.ts +3 -0
- package/shared/app-switcher/index.ts +7 -0
- package/shared/assets/components/assets-details/index.ts +3 -0
- package/shared/assets/components/index.ts +1 -1
- package/shared/assets/index.ts +7 -0
- package/shared/blade-navigation/components/index.ts +1 -1
- package/shared/blade-navigation/components/vc-blade-navigation/index.ts +3 -0
- package/shared/blade-navigation/index.ts +7 -0
- package/ui/components/atoms/vc-badge/index.ts +10 -9
- package/ui/components/atoms/vc-button/index.ts +7 -6
- package/ui/components/atoms/vc-card/index.ts +8 -7
- package/ui/components/atoms/vc-checkbox/index.ts +8 -7
- package/ui/components/atoms/vc-col/index.ts +7 -6
- package/ui/components/atoms/vc-container/index.ts +7 -6
- package/ui/components/atoms/vc-hint/index.ts +7 -6
- package/ui/components/atoms/vc-icon/index.ts +2 -8
- package/ui/components/atoms/vc-image/index.ts +2 -8
- package/ui/components/atoms/vc-info-row/index.ts +2 -8
- package/ui/components/atoms/vc-label/index.ts +8 -7
- package/ui/components/atoms/vc-link/index.ts +7 -6
- package/ui/components/atoms/vc-loading/index.ts +2 -8
- package/ui/components/atoms/vc-progress/index.ts +7 -6
- package/ui/components/atoms/vc-row/index.ts +7 -6
- package/ui/components/atoms/vc-status/index.ts +7 -6
- package/ui/components/atoms/vc-status-icon/index.ts +2 -8
- package/ui/components/atoms/vc-switch/index.ts +2 -8
- package/ui/components/atoms/vc-widget/index.ts +2 -8
- package/ui/components/index.ts +39 -39
- package/ui/components/molecules/vc-breadcrumbs/index.ts +2 -8
- package/ui/components/molecules/vc-code-editor/index.ts +7 -6
- package/ui/components/molecules/vc-editor/index.ts +7 -6
- package/ui/components/molecules/vc-file-upload/index.ts +7 -6
- package/ui/components/molecules/vc-file-upload/vc-file-upload.vue +18 -4
- package/ui/components/molecules/vc-form/index.ts +7 -6
- package/ui/components/molecules/vc-input/index.ts +57 -56
- package/ui/components/molecules/vc-input-currency/index.ts +15 -14
- package/ui/components/molecules/vc-notification/index.ts +7 -6
- package/ui/components/molecules/vc-pagination/index.ts +2 -8
- package/ui/components/molecules/vc-rating/index.ts +7 -6
- package/ui/components/molecules/vc-select/index.ts +84 -84
- package/ui/components/molecules/vc-slider/index.ts +10 -9
- package/ui/components/molecules/vc-textarea/index.ts +7 -6
- package/ui/components/organisms/vc-app/index.ts +10 -9
- package/ui/components/organisms/vc-app/vc-app.vue +7 -0
- package/ui/components/organisms/vc-blade/index.ts +8 -7
- package/ui/components/organisms/vc-dynamic-property/index.ts +2 -8
- package/ui/components/organisms/vc-gallery/index.ts +2 -8
- package/ui/components/organisms/vc-login-form/index.ts +7 -6
- package/ui/components/organisms/vc-popup/index.ts +7 -6
- package/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue +1 -4
- package/ui/components/organisms/vc-table/index.ts +16 -14
- package/ui/components/organisms/vc-table/vc-table.vue +118 -49
- package/ui/types/index.ts +53 -0
- package/dist/types/ui/services/components.d.ts +0 -2
- package/dist/types/ui/services/components.d.ts.map +0 -1
- package/dist/types/ui/services/types/components.d.ts +0 -14
- package/dist/types/ui/services/types/components.d.ts.map +0 -1
- package/dist/types/ui/services/types/index.d.ts +0 -7
- package/dist/types/ui/services/types/index.d.ts.map +0 -1
- package/dist/types/ui/services/types/ts-helpers.d.ts +0 -8
- package/dist/types/ui/services/types/ts-helpers.d.ts.map +0 -1
- package/ui/services/components.ts +0 -40
- package/ui/services/types/components.ts +0 -14
- package/ui/services/types/index.ts +0 -9
- package/ui/services/types/ts-helpers.ts +0 -18
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { VNode } from "vue";
|
|
2
|
-
import
|
|
3
|
-
import { GlobalComponentConstructor } from "./../../../services/types/ts-helpers";
|
|
2
|
+
import _Button from "./vc-button.vue";
|
|
4
3
|
|
|
5
|
-
export
|
|
6
|
-
|
|
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
|
|
3
|
-
import { GlobalComponentConstructor } from "./../../../services/types/ts-helpers";
|
|
2
|
+
import _Card from "./vc-card.vue";
|
|
4
3
|
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
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
|
|
3
|
-
import { GlobalComponentConstructor } from "./../../../services/types/ts-helpers";
|
|
2
|
+
import _Checkbox from "./vc-checkbox.vue";
|
|
4
3
|
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
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
|
|
3
|
-
import { GlobalComponentConstructor } from "./../../../services/types/ts-helpers";
|
|
2
|
+
import _Col from "./vc-col.vue";
|
|
4
3
|
|
|
5
|
-
export
|
|
6
|
-
|
|
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
|
|
3
|
-
import { GlobalComponentConstructor } from "./../../../services/types/ts-helpers";
|
|
2
|
+
import _Container from "./vc-container.vue";
|
|
4
3
|
|
|
5
|
-
export
|
|
6
|
-
|
|
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
|
|
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
|
|
6
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
6
|
-
|
|
7
|
-
|
|
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
|
|
3
|
-
import { GlobalComponentConstructor } from "./../../../services/types/ts-helpers";
|
|
2
|
+
import _Link from "./vc-link.vue";
|
|
4
3
|
|
|
5
|
-
export
|
|
6
|
-
|
|
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
|
|
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
|
|
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
|
|
3
|
-
import { GlobalComponentConstructor } from "./../../../services/types/ts-helpers";
|
|
2
|
+
import _Progress from "./vc-progress.vue";
|
|
4
3
|
|
|
5
|
-
export
|
|
6
|
-
|
|
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
|
|
3
|
-
import { GlobalComponentConstructor } from "./../../../services/types/ts-helpers";
|
|
2
|
+
import _Row from "./vc-row.vue";
|
|
4
3
|
|
|
5
|
-
export
|
|
6
|
-
|
|
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
|
|
3
|
-
import { GlobalComponentConstructor } from "./../../../services/types/ts-helpers";
|
|
2
|
+
import _Status from "./vc-status.vue";
|
|
4
3
|
|
|
5
|
-
export
|
|
6
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
6
|
-
default?: () => VNode[];
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export const VcWidget: GlobalComponentConstructor<typeof Widget, VcWidgetSlots> = Widget;
|
|
3
|
+
export const VcWidget = _Widget as typeof _Widget;
|
package/ui/components/index.ts
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
/* Atoms */
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export
|
|
19
|
-
export
|
|
20
|
-
export
|
|
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
|
|
24
|
-
export
|
|
25
|
-
export
|
|
26
|
-
export
|
|
27
|
-
export
|
|
28
|
-
export
|
|
29
|
-
export
|
|
30
|
-
export
|
|
31
|
-
export
|
|
32
|
-
export
|
|
33
|
-
export
|
|
34
|
-
export
|
|
35
|
-
export
|
|
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
|
|
39
|
-
export
|
|
40
|
-
export
|
|
41
|
-
export
|
|
42
|
-
export
|
|
43
|
-
export
|
|
44
|
-
export
|
|
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
|
|
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
|
|
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
|
|
3
|
-
import { GlobalComponentConstructor } from "./../../../services/types/ts-helpers";
|
|
2
|
+
import _CodeEditor from "./vc-code-editor.vue";
|
|
4
3
|
|
|
5
|
-
export
|
|
6
|
-
|
|
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
|
|
3
|
-
import { GlobalComponentConstructor } from "./../../../services/types/ts-helpers";
|
|
2
|
+
import _Editor from "./vc-editor.vue";
|
|
4
3
|
|
|
5
|
-
export
|
|
6
|
-
|
|
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
|
|
3
|
-
import { GlobalComponentConstructor } from "./../../../services/types/ts-helpers";
|
|
2
|
+
import _FileUpload from "./vc-file-upload.vue";
|
|
4
3
|
|
|
5
|
-
export
|
|
6
|
-
|
|
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-
|
|
5
|
-
:class="
|
|
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
|
|
3
|
-
import { GlobalComponentConstructor } from "./../../../services/types/ts-helpers";
|
|
2
|
+
import _Form from "./vc-form.vue";
|
|
4
3
|
|
|
5
|
-
export
|
|
6
|
-
|
|
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
|
|
3
|
-
import { GlobalComponentConstructor } from "./../../../services/types/ts-helpers";
|
|
2
|
+
import _Input from "./vc-input.vue";
|
|
4
3
|
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
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;
|