@vc-shell/framework 1.0.50 → 1.0.51
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/core/types/index.ts +4 -2
- package/dist/core/types/index.d.ts +3 -2
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/framework.js +56 -56
- package/dist/shared/blade-navigation/index.d.ts +1 -1
- package/dist/shared/blade-navigation/index.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/atoms/vc-badge/vc-badge-model.d.ts +6 -1
- package/dist/ui/components/atoms/vc-badge/vc-badge-model.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-button/index.d.ts +1 -1
- package/dist/ui/components/atoms/vc-button/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-button/vc-button-model.d.ts +19 -5
- package/dist/ui/components/atoms/vc-button/vc-button-model.d.ts.map +1 -1
- package/dist/ui/components/index.d.ts +34 -34
- package/dist/ui/components/index.d.ts.map +1 -1
- package/dist/ui/types/index.d.ts +0 -68
- package/dist/ui/types/index.d.ts.map +1 -1
- package/package.json +4 -4
- package/shared/assets/components/assets-details/assets-details.vue +1 -1
- package/shared/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue +1 -1
- package/shared/blade-navigation/index.ts +7 -7
- package/tailwind.config.js +1 -1
- package/ui/components/atoms/vc-badge/vc-badge-model.ts +7 -1
- package/ui/components/atoms/vc-badge/vc-badge.vue +2 -1
- package/ui/components/atoms/vc-button/index.ts +1 -1
- package/ui/components/atoms/vc-button/vc-button-model.ts +20 -12
- package/ui/components/atoms/vc-button/vc-button.vue +32 -8
- package/ui/components/atoms/vc-card/vc-card.vue +31 -6
- package/ui/components/atoms/vc-checkbox/vc-checkbox.vue +25 -6
- package/ui/components/atoms/vc-col/vc-col.vue +4 -2
- package/ui/components/atoms/vc-container/vc-container.vue +18 -11
- package/ui/components/atoms/vc-icon/vc-icon.vue +5 -2
- package/ui/components/atoms/vc-image/vc-image.vue +37 -11
- package/ui/components/atoms/vc-info-row/vc-info-row.vue +20 -6
- package/ui/components/atoms/vc-label/vc-label.vue +12 -8
- package/ui/components/atoms/vc-link/vc-link.vue +9 -4
- package/ui/components/atoms/vc-loading/vc-loading.vue +5 -4
- package/ui/components/atoms/vc-progress/vc-progress.vue +11 -5
- package/ui/components/atoms/vc-status/vc-status.vue +15 -5
- package/ui/components/atoms/vc-status-icon/vc-status-icon.vue +7 -11
- package/ui/components/atoms/vc-switch/vc-switch.vue +24 -6
- package/ui/components/atoms/vc-widget/vc-widget.vue +19 -3
- package/ui/components/index.ts +34 -34
- package/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue +11 -2
- package/ui/components/molecules/vc-editor/vc-editor.vue +52 -15
- package/ui/components/molecules/vc-file-upload/vc-file-upload.vue +33 -12
- package/ui/components/molecules/vc-notification/vc-notification.vue +10 -3
- package/ui/components/molecules/vc-pagination/vc-pagination.vue +16 -6
- package/ui/components/molecules/vc-rating/vc-rating.vue +10 -2
- package/ui/components/molecules/vc-slider/vc-slider.vue +25 -7
- package/ui/components/molecules/vc-textarea/vc-textarea.vue +47 -9
- package/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue +1 -2
- package/ui/components/organisms/vc-app/vc-app.vue +31 -6
- package/ui/components/organisms/vc-blade/_internal/vc-blade-header/vc-blade-header.vue +32 -17
- package/ui/components/organisms/vc-blade/vc-blade.vue +34 -9
- package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue +94 -66
- package/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue +21 -31
- package/ui/components/organisms/vc-gallery/vc-gallery.vue +81 -22
- package/ui/components/organisms/vc-login-form/vc-login-form.vue +14 -3
- package/ui/components/organisms/vc-popup/vc-popup.vue +15 -4
- package/ui/components/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue +2 -2
- package/ui/components/organisms/vc-table/vc-table.vue +41 -9
- package/ui/types/index.ts +1 -188
- package/dist/ui/components/atoms/vc-card/index.d.ts +0 -5
- package/dist/ui/components/atoms/vc-card/index.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-card/vc-card-model.d.ts +0 -16
- package/dist/ui/components/atoms/vc-card/vc-card-model.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-checkbox/index.d.ts +0 -5
- package/dist/ui/components/atoms/vc-checkbox/index.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-checkbox/vc-checkbox-model.d.ts +0 -14
- package/dist/ui/components/atoms/vc-checkbox/vc-checkbox-model.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-col/index.d.ts +0 -5
- package/dist/ui/components/atoms/vc-col/index.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-col/vc-col-model.d.ts +0 -8
- package/dist/ui/components/atoms/vc-col/vc-col-model.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-container/index.d.ts +0 -5
- package/dist/ui/components/atoms/vc-container/index.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-container/vc-container-model.d.ts +0 -11
- package/dist/ui/components/atoms/vc-container/vc-container-model.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-hint/index.d.ts +0 -2
- package/dist/ui/components/atoms/vc-hint/index.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-icon/index.d.ts +0 -5
- package/dist/ui/components/atoms/vc-icon/index.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-icon/vc-icon-model.d.ts +0 -9
- package/dist/ui/components/atoms/vc-icon/vc-icon-model.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-image/index.d.ts +0 -5
- package/dist/ui/components/atoms/vc-image/index.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-image/vc-image-model.d.ts +0 -15
- package/dist/ui/components/atoms/vc-image/vc-image-model.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-info-row/index.d.ts +0 -5
- package/dist/ui/components/atoms/vc-info-row/index.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-info-row/vc-info-row-model.d.ts +0 -11
- package/dist/ui/components/atoms/vc-info-row/vc-info-row-model.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-label/index.d.ts +0 -5
- package/dist/ui/components/atoms/vc-label/index.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-label/vc-label-model.d.ts +0 -10
- package/dist/ui/components/atoms/vc-label/vc-label-model.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-link/index.d.ts +0 -5
- package/dist/ui/components/atoms/vc-link/index.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-link/vc-link-model.d.ts +0 -10
- package/dist/ui/components/atoms/vc-link/vc-link-model.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-loading/index.d.ts +0 -5
- package/dist/ui/components/atoms/vc-loading/index.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-loading/vc-loading-model.d.ts +0 -8
- package/dist/ui/components/atoms/vc-loading/vc-loading-model.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-progress/index.d.ts +0 -5
- package/dist/ui/components/atoms/vc-progress/index.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-progress/vc-progress-model.d.ts +0 -9
- package/dist/ui/components/atoms/vc-progress/vc-progress-model.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-row/index.d.ts +0 -2
- package/dist/ui/components/atoms/vc-row/index.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-row/vc-row-model.d.ts +0 -5
- package/dist/ui/components/atoms/vc-row/vc-row-model.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-status/index.d.ts +0 -5
- package/dist/ui/components/atoms/vc-status/index.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-status/vc-status-model.d.ts +0 -10
- package/dist/ui/components/atoms/vc-status/vc-status-model.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-status-icon/index.d.ts +0 -5
- package/dist/ui/components/atoms/vc-status-icon/index.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-status-icon/vc-status-icon-model.d.ts +0 -8
- package/dist/ui/components/atoms/vc-status-icon/vc-status-icon-model.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-switch/index.d.ts +0 -5
- package/dist/ui/components/atoms/vc-switch/index.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-switch/vc-switch-model.d.ts +0 -13
- package/dist/ui/components/atoms/vc-switch/vc-switch-model.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-widget/index.d.ts +0 -5
- package/dist/ui/components/atoms/vc-widget/index.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-widget/vc-widget-model.d.ts +0 -12
- package/dist/ui/components/atoms/vc-widget/vc-widget-model.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-breadcrumbs/index.d.ts +0 -5
- package/dist/ui/components/molecules/vc-breadcrumbs/index.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs-model.d.ts +0 -14
- package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs-model.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-editor/index.d.ts +0 -5
- package/dist/ui/components/molecules/vc-editor/index.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-editor/vc-editor-model.d.ts +0 -16
- package/dist/ui/components/molecules/vc-editor/vc-editor-model.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-file-upload/index.d.ts +0 -5
- package/dist/ui/components/molecules/vc-file-upload/index.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload-model.d.ts +0 -14
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload-model.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-form/index.d.ts +0 -2
- package/dist/ui/components/molecules/vc-form/index.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-notification/index.d.ts +0 -5
- package/dist/ui/components/molecules/vc-notification/index.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-notification/vc-notification-model.d.ts +0 -10
- package/dist/ui/components/molecules/vc-notification/vc-notification-model.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-pagination/index.d.ts +0 -5
- package/dist/ui/components/molecules/vc-pagination/index.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-pagination/vc-pagination-model.d.ts +0 -11
- package/dist/ui/components/molecules/vc-pagination/vc-pagination-model.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-rating/index.d.ts +0 -5
- package/dist/ui/components/molecules/vc-rating/index.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-rating/vc-rating-model.d.ts +0 -13
- package/dist/ui/components/molecules/vc-rating/vc-rating-model.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-slider/index.d.ts +0 -5
- package/dist/ui/components/molecules/vc-slider/index.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-slider/vc-slider-model.d.ts +0 -14
- package/dist/ui/components/molecules/vc-slider/vc-slider-model.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-textarea/index.d.ts +0 -5
- package/dist/ui/components/molecules/vc-textarea/index.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-textarea/vc-textarea-model.d.ts +0 -17
- package/dist/ui/components/molecules/vc-textarea/vc-textarea-model.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-app/index.d.ts +0 -5
- package/dist/ui/components/organisms/vc-app/index.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-app/vc-app-model.d.ts +0 -26
- package/dist/ui/components/organisms/vc-app/vc-app-model.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-blade/index.d.ts +0 -5
- package/dist/ui/components/organisms/vc-blade/index.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-blade/vc-blade-model.d.ts +0 -17
- package/dist/ui/components/organisms/vc-blade/vc-blade-model.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-dynamic-property/index.d.ts +0 -5
- package/dist/ui/components/organisms/vc-dynamic-property/index.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property-model.d.ts +0 -14
- package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property-model.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-gallery/index.d.ts +0 -5
- package/dist/ui/components/organisms/vc-gallery/index.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-gallery/vc-gallery-model.d.ts +0 -32
- package/dist/ui/components/organisms/vc-gallery/vc-gallery-model.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-login-form/index.d.ts +0 -5
- package/dist/ui/components/organisms/vc-login-form/index.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-login-form/vc-login-form-model.d.ts +0 -10
- package/dist/ui/components/organisms/vc-login-form/vc-login-form-model.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-popup/index.d.ts +0 -5
- package/dist/ui/components/organisms/vc-popup/index.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-popup/vc-popup-model.d.ts +0 -11
- package/dist/ui/components/organisms/vc-popup/vc-popup-model.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-table/index.d.ts +0 -5
- package/dist/ui/components/organisms/vc-table/index.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-table/vc-table-model.d.ts +0 -66
- package/dist/ui/components/organisms/vc-table/vc-table-model.d.ts.map +0 -1
- package/ui/components/atoms/vc-card/index.ts +0 -7
- package/ui/components/atoms/vc-card/vc-card-model.ts +0 -17
- package/ui/components/atoms/vc-checkbox/index.ts +0 -7
- package/ui/components/atoms/vc-checkbox/vc-checkbox-model.ts +0 -15
- package/ui/components/atoms/vc-col/index.ts +0 -6
- package/ui/components/atoms/vc-col/vc-col-model.ts +0 -9
- package/ui/components/atoms/vc-container/index.ts +0 -7
- package/ui/components/atoms/vc-container/vc-container-model.ts +0 -12
- package/ui/components/atoms/vc-hint/index.ts +0 -2
- package/ui/components/atoms/vc-icon/index.ts +0 -7
- package/ui/components/atoms/vc-icon/vc-icon-model.ts +0 -10
- package/ui/components/atoms/vc-image/index.ts +0 -7
- package/ui/components/atoms/vc-image/vc-image-model.ts +0 -27
- package/ui/components/atoms/vc-info-row/index.ts +0 -7
- package/ui/components/atoms/vc-info-row/vc-info-row-model.ts +0 -12
- package/ui/components/atoms/vc-label/index.ts +0 -7
- package/ui/components/atoms/vc-label/vc-label-model.ts +0 -11
- package/ui/components/atoms/vc-link/index.ts +0 -7
- package/ui/components/atoms/vc-link/vc-link-model.ts +0 -11
- package/ui/components/atoms/vc-loading/index.ts +0 -7
- package/ui/components/atoms/vc-loading/vc-loading-model.ts +0 -9
- package/ui/components/atoms/vc-progress/index.ts +0 -7
- package/ui/components/atoms/vc-progress/vc-progress-model.ts +0 -10
- package/ui/components/atoms/vc-row/index.ts +0 -2
- package/ui/components/atoms/vc-row/vc-row-model.ts +0 -5
- package/ui/components/atoms/vc-status/index.ts +0 -7
- package/ui/components/atoms/vc-status/vc-status-model.ts +0 -17
- package/ui/components/atoms/vc-status-icon/index.ts +0 -7
- package/ui/components/atoms/vc-status-icon/vc-status-icon-model.ts +0 -9
- package/ui/components/atoms/vc-switch/index.ts +0 -7
- package/ui/components/atoms/vc-switch/vc-switch-model.ts +0 -14
- package/ui/components/atoms/vc-widget/index.ts +0 -7
- package/ui/components/atoms/vc-widget/vc-widget-model.ts +0 -13
- package/ui/components/molecules/vc-breadcrumbs/index.ts +0 -7
- package/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs-model.ts +0 -15
- package/ui/components/molecules/vc-editor/index.ts +0 -7
- package/ui/components/molecules/vc-editor/vc-editor-model.ts +0 -17
- package/ui/components/molecules/vc-file-upload/index.ts +0 -7
- package/ui/components/molecules/vc-file-upload/vc-file-upload-model.ts +0 -15
- package/ui/components/molecules/vc-form/index.ts +0 -2
- package/ui/components/molecules/vc-notification/index.ts +0 -7
- package/ui/components/molecules/vc-notification/vc-notification-model.ts +0 -11
- package/ui/components/molecules/vc-pagination/index.ts +0 -7
- package/ui/components/molecules/vc-pagination/vc-pagination-model.ts +0 -12
- package/ui/components/molecules/vc-rating/index.ts +0 -7
- package/ui/components/molecules/vc-rating/vc-rating-model.ts +0 -14
- package/ui/components/molecules/vc-slider/index.ts +0 -7
- package/ui/components/molecules/vc-slider/vc-slider-model.ts +0 -15
- package/ui/components/molecules/vc-textarea/index.ts +0 -7
- package/ui/components/molecules/vc-textarea/vc-textarea-model.ts +0 -18
- package/ui/components/organisms/vc-app/index.ts +0 -6
- package/ui/components/organisms/vc-app/vc-app-model.ts +0 -27
- package/ui/components/organisms/vc-blade/index.ts +0 -7
- package/ui/components/organisms/vc-blade/vc-blade-model.ts +0 -18
- package/ui/components/organisms/vc-dynamic-property/index.ts +0 -7
- package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property-model.ts +0 -25
- package/ui/components/organisms/vc-gallery/index.ts +0 -7
- package/ui/components/organisms/vc-gallery/vc-gallery-model.ts +0 -33
- package/ui/components/organisms/vc-login-form/index.ts +0 -7
- package/ui/components/organisms/vc-login-form/vc-login-form-model.ts +0 -11
- package/ui/components/organisms/vc-popup/index.ts +0 -7
- package/ui/components/organisms/vc-popup/vc-popup-model.ts +0 -12
- package/ui/components/organisms/vc-table/index.ts +0 -7
- package/ui/components/organisms/vc-table/vc-table-model.ts +0 -56
|
@@ -5,8 +5,7 @@
|
|
|
5
5
|
`vc-image_${aspect}`,
|
|
6
6
|
{
|
|
7
7
|
'tw-rounded-full tw-pb-[var(--image-padding-bottom-1x1)]': rounded,
|
|
8
|
-
'tw-rounded-[3px] tw-border tw-border-solid tw-border-[color:#efefef]':
|
|
9
|
-
bordered,
|
|
8
|
+
'tw-rounded-[3px] tw-border tw-border-solid tw-border-[color:#efefef]': bordered,
|
|
10
9
|
'tw-cursor-pointer': clickable,
|
|
11
10
|
},
|
|
12
11
|
'tw-relative',
|
|
@@ -26,15 +25,42 @@
|
|
|
26
25
|
|
|
27
26
|
<script lang="ts" setup>
|
|
28
27
|
import { computed } from "vue";
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
28
|
+
|
|
29
|
+
const props = defineProps({
|
|
30
|
+
aspect: {
|
|
31
|
+
type: String,
|
|
32
|
+
default: "1x1",
|
|
33
|
+
},
|
|
34
|
+
|
|
35
|
+
rounded: {
|
|
36
|
+
type: Boolean,
|
|
37
|
+
default: false,
|
|
38
|
+
},
|
|
39
|
+
|
|
40
|
+
bordered: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
default: false,
|
|
43
|
+
},
|
|
44
|
+
|
|
45
|
+
clickable: {
|
|
46
|
+
type: Boolean,
|
|
47
|
+
default: false,
|
|
48
|
+
},
|
|
49
|
+
|
|
50
|
+
src: {
|
|
51
|
+
type: String,
|
|
52
|
+
default: undefined,
|
|
53
|
+
},
|
|
54
|
+
|
|
55
|
+
size: {
|
|
56
|
+
type: String,
|
|
57
|
+
default: "auto",
|
|
58
|
+
},
|
|
59
|
+
|
|
60
|
+
background: {
|
|
61
|
+
type: String,
|
|
62
|
+
default: "cover",
|
|
63
|
+
},
|
|
38
64
|
});
|
|
39
65
|
|
|
40
66
|
const emit = defineEmits(["click"]);
|
|
@@ -17,12 +17,26 @@
|
|
|
17
17
|
|
|
18
18
|
<script lang="ts" setup>
|
|
19
19
|
import { VcLabel, VcRow, VcCol } from "@/ui/components";
|
|
20
|
-
import { VcInfoRowProps } from "@/ui/components/atoms/vc-info-row/vc-info-row-model";
|
|
21
20
|
|
|
22
|
-
|
|
23
|
-
label:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
defineProps({
|
|
22
|
+
label: {
|
|
23
|
+
type: String,
|
|
24
|
+
default: "",
|
|
25
|
+
},
|
|
26
|
+
|
|
27
|
+
value: {
|
|
28
|
+
type: String,
|
|
29
|
+
default: "",
|
|
30
|
+
},
|
|
31
|
+
|
|
32
|
+
tooltip: {
|
|
33
|
+
type: String,
|
|
34
|
+
default: "",
|
|
35
|
+
},
|
|
36
|
+
|
|
37
|
+
type: {
|
|
38
|
+
type: String,
|
|
39
|
+
default: "default",
|
|
40
|
+
},
|
|
27
41
|
});
|
|
28
42
|
</script>
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="tw-flex tw-flex-nowrap tw-font-bold">
|
|
2
|
+
<div class= "tw-flex tw-flex-nowrap tw-font-bold">
|
|
3
3
|
<span><slot></slot></span>
|
|
4
|
-
<span
|
|
5
|
-
v-if="required"
|
|
6
|
-
class="tw-text-[color:var(--label-required-color)] tw-ml-1"
|
|
4
|
+
<span v-if="required" class="tw-text-[color:var(--label-required-color)] tw-ml-1"
|
|
7
5
|
>*</span
|
|
8
6
|
>
|
|
9
7
|
<span v-if="$slots['tooltip']" class="tw-grow tw-basis-0 tw-ml-1">
|
|
@@ -27,11 +25,17 @@
|
|
|
27
25
|
<script lang="ts" setup>
|
|
28
26
|
import { VcIcon } from "@/ui/components";
|
|
29
27
|
import { ref } from "vue";
|
|
30
|
-
import { VcLabelProps } from "@/ui/components/atoms/vc-label/vc-label-model";
|
|
31
28
|
|
|
32
|
-
|
|
33
|
-
required:
|
|
34
|
-
|
|
29
|
+
defineProps({
|
|
30
|
+
required: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default: false,
|
|
33
|
+
},
|
|
34
|
+
|
|
35
|
+
tooltipIcon: {
|
|
36
|
+
type: String,
|
|
37
|
+
default: "fas fa-info-circle",
|
|
38
|
+
},
|
|
35
39
|
});
|
|
36
40
|
|
|
37
41
|
const tooltipVisible = ref(false);
|
|
@@ -13,11 +13,16 @@
|
|
|
13
13
|
</template>
|
|
14
14
|
|
|
15
15
|
<script lang="ts" setup>
|
|
16
|
-
|
|
16
|
+
const props = defineProps({
|
|
17
|
+
active: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: false,
|
|
20
|
+
},
|
|
17
21
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
22
|
+
disabled: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: false,
|
|
25
|
+
},
|
|
21
26
|
});
|
|
22
27
|
const emit = defineEmits(["click"]);
|
|
23
28
|
function onClick(): void {
|
|
@@ -24,9 +24,10 @@
|
|
|
24
24
|
</template>
|
|
25
25
|
|
|
26
26
|
<script lang="ts" setup>
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
defineProps({
|
|
28
|
+
active: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
default: false,
|
|
31
|
+
},
|
|
31
32
|
});
|
|
32
33
|
</script>
|
|
@@ -6,18 +6,24 @@
|
|
|
6
6
|
]"
|
|
7
7
|
>
|
|
8
8
|
<div
|
|
9
|
-
class="vc-progress__value tw-bg-[color:var(--progressbar-foreground-color)] tw-transition
|
|
9
|
+
class="vc-progress__value tw-bg-[color:var(--progressbar-foreground-color)] tw-transition tw-duration-200 tw-h-full"
|
|
10
10
|
:style="`width: ${value}%`"
|
|
11
11
|
></div>
|
|
12
12
|
</div>
|
|
13
13
|
</template>
|
|
14
14
|
|
|
15
15
|
<script lang="ts" setup>
|
|
16
|
-
|
|
16
|
+
defineProps({
|
|
17
|
+
value: {
|
|
18
|
+
type: Number,
|
|
19
|
+
default: 0,
|
|
20
|
+
},
|
|
17
21
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
22
|
+
variant: {
|
|
23
|
+
type: String,
|
|
24
|
+
default: "default",
|
|
25
|
+
enum: ["default", "striped"],
|
|
26
|
+
},
|
|
21
27
|
});
|
|
22
28
|
</script>
|
|
23
29
|
|
|
@@ -12,12 +12,22 @@
|
|
|
12
12
|
</template>
|
|
13
13
|
|
|
14
14
|
<script lang="ts" setup>
|
|
15
|
-
|
|
15
|
+
defineProps({
|
|
16
|
+
variant: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: "info",
|
|
19
|
+
enum: ["info", "warning", "danger", "success", "light-danger"],
|
|
20
|
+
},
|
|
16
21
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
22
|
+
outline: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: true,
|
|
25
|
+
},
|
|
26
|
+
|
|
27
|
+
extend: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: false,
|
|
30
|
+
},
|
|
21
31
|
});
|
|
22
32
|
</script>
|
|
23
33
|
|
|
@@ -1,25 +1,21 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
3
|
<template v-if="status">
|
|
4
|
-
<VcIcon
|
|
5
|
-
icon="fas fa-check-circle"
|
|
6
|
-
class="tw-text-[color:#87b563]"
|
|
7
|
-
></VcIcon>
|
|
4
|
+
<VcIcon icon="fas fa-check-circle" class="tw-text-[color:#87b563]"></VcIcon>
|
|
8
5
|
</template>
|
|
9
6
|
<template v-else>
|
|
10
|
-
<VcIcon
|
|
11
|
-
icon="fas fa-times-circle"
|
|
12
|
-
class="tw-text-[color:#bdd1df]"
|
|
13
|
-
></VcIcon>
|
|
7
|
+
<VcIcon icon="fas fa-times-circle" class="tw-text-[color:#bdd1df]"></VcIcon>
|
|
14
8
|
</template>
|
|
15
9
|
</div>
|
|
16
10
|
</template>
|
|
17
11
|
|
|
18
12
|
<script lang="ts" setup>
|
|
19
13
|
import { VcIcon } from "@/ui/components";
|
|
20
|
-
import { VcStatusIconProps } from "@/ui/components/atoms/vc-status-icon/vc-status-icon-model";
|
|
21
14
|
|
|
22
|
-
|
|
23
|
-
status:
|
|
15
|
+
defineProps({
|
|
16
|
+
status: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: false,
|
|
19
|
+
},
|
|
24
20
|
});
|
|
25
21
|
</script>
|
|
@@ -23,13 +23,31 @@
|
|
|
23
23
|
</template>
|
|
24
24
|
|
|
25
25
|
<script lang="ts" setup>
|
|
26
|
-
|
|
26
|
+
defineProps({
|
|
27
|
+
modelValue: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: false,
|
|
30
|
+
},
|
|
27
31
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
32
|
+
disabled: {
|
|
33
|
+
type: Boolean,
|
|
34
|
+
default: false,
|
|
35
|
+
},
|
|
36
|
+
|
|
37
|
+
tooltip: {
|
|
38
|
+
type: String,
|
|
39
|
+
default: "",
|
|
40
|
+
},
|
|
41
|
+
|
|
42
|
+
required: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
default: false,
|
|
45
|
+
},
|
|
46
|
+
|
|
47
|
+
label: {
|
|
48
|
+
type: String,
|
|
49
|
+
default: undefined,
|
|
50
|
+
},
|
|
33
51
|
});
|
|
34
52
|
|
|
35
53
|
const emit = defineEmits(["update:modelValue"]);
|
|
@@ -16,10 +16,26 @@
|
|
|
16
16
|
</template>
|
|
17
17
|
|
|
18
18
|
<script lang="ts" setup>
|
|
19
|
-
|
|
19
|
+
const props = defineProps({
|
|
20
|
+
icon: {
|
|
21
|
+
type: String,
|
|
22
|
+
default: undefined,
|
|
23
|
+
},
|
|
20
24
|
|
|
21
|
-
|
|
22
|
-
|
|
25
|
+
title: {
|
|
26
|
+
type: String,
|
|
27
|
+
default: undefined,
|
|
28
|
+
},
|
|
29
|
+
|
|
30
|
+
value: {
|
|
31
|
+
type: [String, Number],
|
|
32
|
+
default: undefined,
|
|
33
|
+
},
|
|
34
|
+
|
|
35
|
+
disabled: {
|
|
36
|
+
type: Boolean,
|
|
37
|
+
default: false,
|
|
38
|
+
},
|
|
23
39
|
});
|
|
24
40
|
const emit = defineEmits(["click"]);
|
|
25
41
|
|
package/ui/components/index.ts
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
/* Atoms */
|
|
2
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";
|
|
3
|
+
export { default as VcButton } from "./atoms/vc-button/vc-button.vue";
|
|
4
|
+
export { default as VcCard } from "./atoms/vc-card/vc-card.vue";
|
|
5
|
+
export { default as VcCheckbox } from "./atoms/vc-checkbox/vc-checkbox.vue";
|
|
6
|
+
export { default as VcCol } from "./atoms/vc-col/vc-col.vue";
|
|
7
|
+
export { default as VcContainer } from "./atoms/vc-container/vc-container.vue";
|
|
8
|
+
export { default as VcHint } from "./atoms/vc-hint/vc-hint.vue";
|
|
9
|
+
export { default as VcIcon } from "./atoms/vc-icon/vc-icon.vue";
|
|
10
|
+
export { default as VcInfoRow } from "./atoms/vc-info-row/vc-info-row.vue";
|
|
11
|
+
export { default as VcImage } from "./atoms/vc-image/vc-image.vue";
|
|
12
|
+
export { default as VcLabel } from "./atoms/vc-label/vc-label.vue";
|
|
13
|
+
export { default as VcLink } from "./atoms/vc-link/vc-link.vue";
|
|
14
|
+
export { default as VcLoading } from "./atoms/vc-loading/vc-loading.vue";
|
|
15
|
+
export { default as VcProgress } from "./atoms/vc-progress/vc-progress.vue";
|
|
16
|
+
export { default as VcRow } from "./atoms/vc-row/vc-row.vue";
|
|
17
|
+
export { default as VcStatus } from "./atoms/vc-status/vc-status.vue";
|
|
18
|
+
export { default as VcStatusIcon } from "./atoms/vc-status-icon/vc-status-icon.vue";
|
|
19
|
+
export { default as VcSwitch } from "./atoms/vc-switch/vc-switch.vue";
|
|
20
|
+
export { default as VcWidget } from "./atoms/vc-widget/vc-widget.vue";
|
|
21
21
|
|
|
22
22
|
/* Molecules */
|
|
23
|
-
export { VcBreadcrumbs } from "./molecules/vc-breadcrumbs";
|
|
24
|
-
export { VcEditor } from "./molecules/vc-editor";
|
|
25
|
-
export { VcForm } from "./molecules/vc-form";
|
|
26
|
-
export { VcFileUpload } from "./molecules/vc-file-upload";
|
|
23
|
+
export { default as VcBreadcrumbs } from "./molecules/vc-breadcrumbs/vc-breadcrumbs.vue";
|
|
24
|
+
export { default as VcEditor } from "./molecules/vc-editor/vc-editor.vue";
|
|
25
|
+
export { default as VcForm } from "./molecules/vc-form/vc-form.vue";
|
|
26
|
+
export { default as VcFileUpload } from "./molecules/vc-file-upload/vc-file-upload.vue";
|
|
27
27
|
export { VcInput } from "./molecules/vc-input";
|
|
28
28
|
export { VcInputCurrency } from "./molecules/vc-input-currency";
|
|
29
|
-
export { VcNotification } from "./molecules/vc-notification";
|
|
30
|
-
export { VcPagination } from "./molecules/vc-pagination";
|
|
31
|
-
export { VcRating } from "./molecules/vc-rating";
|
|
29
|
+
export { default as VcNotification } from "./molecules/vc-notification/vc-notification.vue";
|
|
30
|
+
export { default as VcPagination } from "./molecules/vc-pagination/vc-pagination.vue";
|
|
31
|
+
export { default as VcRating } from "./molecules/vc-rating/vc-rating.vue";
|
|
32
32
|
export { VcSelect } from "./molecules/vc-select";
|
|
33
|
-
export { VcSlider } from "./molecules/vc-slider";
|
|
34
|
-
export { VcTextarea } from "./molecules/vc-textarea";
|
|
33
|
+
export { default as VcSlider } from "./molecules/vc-slider/vc-slider.vue";
|
|
34
|
+
export { default as VcTextarea } from "./molecules/vc-textarea/vc-textarea.vue";
|
|
35
35
|
|
|
36
36
|
/* Organisms */
|
|
37
|
-
export { VcApp } from "./organisms/vc-app";
|
|
38
|
-
export { VcBlade } from "./organisms/vc-blade";
|
|
39
|
-
export { VcDynamicProperty } from "./organisms/vc-dynamic-property";
|
|
40
|
-
export { VcGallery } from "./organisms/vc-gallery";
|
|
41
|
-
export { VcLoginForm } from "./organisms/vc-login-form";
|
|
42
|
-
export { VcPopup } from "./organisms/vc-popup";
|
|
43
|
-
export { VcTable } from "./organisms/vc-table";
|
|
37
|
+
export { default as VcApp } from "./organisms/vc-app/vc-app.vue";
|
|
38
|
+
export { default as VcBlade } from "./organisms/vc-blade/vc-blade.vue";
|
|
39
|
+
export { default as VcDynamicProperty } from "./organisms/vc-dynamic-property/vc-dynamic-property.vue";
|
|
40
|
+
export { default as VcGallery } from "./organisms/vc-gallery/vc-gallery.vue";
|
|
41
|
+
export { default as VcLoginForm } from "./organisms/vc-login-form/vc-login-form.vue";
|
|
42
|
+
export { default as VcPopup } from "./organisms/vc-popup/vc-popup.vue";
|
|
43
|
+
export { default as VcTable } from "./organisms/vc-table/vc-table.vue";
|
|
@@ -11,9 +11,18 @@
|
|
|
11
11
|
|
|
12
12
|
<script lang="ts" setup>
|
|
13
13
|
import VcBreadcrumbsItem from "./_internal/vc-breadcrumbs-item/vc-breadcrumbs-item.vue";
|
|
14
|
-
import { VcBreadcrumbsProps } from "@/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs-model";
|
|
15
14
|
|
|
16
|
-
|
|
15
|
+
export interface Props {
|
|
16
|
+
items: {
|
|
17
|
+
current: boolean;
|
|
18
|
+
icon: string;
|
|
19
|
+
title: string;
|
|
20
|
+
clickHandler: () => void;
|
|
21
|
+
id: string;
|
|
22
|
+
}[];
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
withDefaults(defineProps<Props>(), {
|
|
17
26
|
items: () => [],
|
|
18
27
|
});
|
|
19
28
|
</script>
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
:class="[
|
|
5
5
|
{
|
|
6
6
|
'vc-editor_error': errorMessage,
|
|
7
|
-
'vc-editor_disabled': disabled
|
|
7
|
+
'vc-editor_disabled': disabled
|
|
8
8
|
},
|
|
9
9
|
]"
|
|
10
10
|
>
|
|
@@ -16,10 +16,11 @@
|
|
|
16
16
|
|
|
17
17
|
<!-- Editor field -->
|
|
18
18
|
<v-ace-editor
|
|
19
|
-
class="tw-border tw-border-solid tw-border-[color:var(--editor-border-color)] tw-rounded-[var(--editor-border-radius)]
|
|
19
|
+
class="tw-border tw-border-solid tw-border-[color:var(--editor-border-color)] tw-rounded-[var(--editor-border-radius)]"
|
|
20
20
|
v-model:value="content"
|
|
21
21
|
lang="html"
|
|
22
22
|
theme="chrome"
|
|
23
|
+
style="height: 200px"
|
|
23
24
|
@input="onInput"
|
|
24
25
|
/>
|
|
25
26
|
<slot v-if="errorMessage" name="error">
|
|
@@ -34,27 +35,63 @@
|
|
|
34
35
|
import { VAceEditor } from "vue3-ace-editor";
|
|
35
36
|
import "ace-builds/src-noconflict/mode-html";
|
|
36
37
|
import "ace-builds/src-noconflict/theme-chrome";
|
|
37
|
-
import {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
38
|
+
import {ref, unref, watch} from "vue";
|
|
39
|
+
|
|
40
|
+
const props = defineProps({
|
|
41
|
+
placeholder: {
|
|
42
|
+
type: String,
|
|
43
|
+
default: "",
|
|
44
|
+
},
|
|
45
|
+
|
|
46
|
+
modelValue: {
|
|
47
|
+
type: [String, Number, Date],
|
|
48
|
+
default: null,
|
|
49
|
+
},
|
|
50
|
+
|
|
51
|
+
required: {
|
|
52
|
+
type: Boolean,
|
|
53
|
+
default: false,
|
|
54
|
+
},
|
|
55
|
+
|
|
56
|
+
disabled: {
|
|
57
|
+
type: Boolean,
|
|
58
|
+
default: false,
|
|
59
|
+
},
|
|
60
|
+
|
|
61
|
+
label: {
|
|
62
|
+
type: String,
|
|
63
|
+
default: undefined,
|
|
64
|
+
},
|
|
65
|
+
|
|
66
|
+
tooltip: {
|
|
67
|
+
type: String,
|
|
68
|
+
default: undefined,
|
|
69
|
+
},
|
|
70
|
+
|
|
71
|
+
name: {
|
|
72
|
+
type: String,
|
|
73
|
+
default: "Field",
|
|
74
|
+
},
|
|
75
|
+
|
|
76
|
+
errorMessage: {
|
|
77
|
+
type: String,
|
|
78
|
+
default: undefined
|
|
79
|
+
}
|
|
45
80
|
});
|
|
46
81
|
|
|
47
82
|
const emit = defineEmits(["update:modelValue"]);
|
|
48
83
|
const content = ref();
|
|
84
|
+
let initialValue = unref(props.modelValue);
|
|
49
85
|
|
|
50
86
|
watch(
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
87
|
+
() => props.modelValue,
|
|
88
|
+
(value) => {
|
|
89
|
+
let init = unref(value);
|
|
90
|
+
emit("update:modelValue", init);
|
|
91
|
+
}
|
|
56
92
|
);
|
|
57
93
|
|
|
94
|
+
// Handle input event to propertly validate value and emit changes
|
|
58
95
|
function onInput() {
|
|
59
96
|
emit("update:modelValue", content.value);
|
|
60
97
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="tw-flex tw-flex-col tw-flex-1">
|
|
2
|
+
<div class= "tw-flex tw-flex-col tw-flex-1">
|
|
3
3
|
<div
|
|
4
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
5
|
:class="`vc-file-upload_${variant}`"
|
|
@@ -18,9 +18,7 @@
|
|
|
18
18
|
size="xxl"
|
|
19
19
|
></VcIcon>
|
|
20
20
|
|
|
21
|
-
<div
|
|
22
|
-
class="tw-text-[#9db0be] tw-text-center tw-text-lg tw-leading-lg tw-mt-4"
|
|
23
|
-
>
|
|
21
|
+
<div class="tw-text-[#9db0be] tw-text-center tw-text-lg tw-leading-lg tw-mt-4">
|
|
24
22
|
<span>Drag and drop file here or</span>
|
|
25
23
|
<br />
|
|
26
24
|
<VcLink @click="toggleUploader">browse your files</VcLink>
|
|
@@ -47,14 +45,37 @@
|
|
|
47
45
|
<script lang="ts" setup>
|
|
48
46
|
import { getCurrentInstance, ref, unref } from "vue";
|
|
49
47
|
import { useField } from "vee-validate";
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
48
|
+
|
|
49
|
+
const props = defineProps({
|
|
50
|
+
variant: {
|
|
51
|
+
type: String,
|
|
52
|
+
enum: ["gallery", "file-upload"],
|
|
53
|
+
default: "gallery",
|
|
54
|
+
},
|
|
55
|
+
|
|
56
|
+
loading: {
|
|
57
|
+
type: Boolean,
|
|
58
|
+
default: false,
|
|
59
|
+
},
|
|
60
|
+
|
|
61
|
+
accept: {
|
|
62
|
+
type: String,
|
|
63
|
+
default: ".jpg, .png, .jpeg",
|
|
64
|
+
},
|
|
65
|
+
|
|
66
|
+
multiple: {
|
|
67
|
+
type: Boolean,
|
|
68
|
+
default: false,
|
|
69
|
+
},
|
|
70
|
+
|
|
71
|
+
rules: {
|
|
72
|
+
type: [String, Object],
|
|
73
|
+
},
|
|
74
|
+
|
|
75
|
+
name: {
|
|
76
|
+
type: String,
|
|
77
|
+
default: "Gallery",
|
|
78
|
+
},
|
|
58
79
|
});
|
|
59
80
|
|
|
60
81
|
const emit = defineEmits(["upload"]);
|
|
@@ -18,10 +18,17 @@
|
|
|
18
18
|
|
|
19
19
|
<script lang="ts" setup>
|
|
20
20
|
import { VcIcon } from "@/ui/components";
|
|
21
|
-
import { VcNotificationProps } from "@/ui/components/molecules/vc-notification/vc-notification-model";
|
|
22
21
|
|
|
23
|
-
const props =
|
|
24
|
-
|
|
22
|
+
const props = defineProps({
|
|
23
|
+
variant: {
|
|
24
|
+
type: String,
|
|
25
|
+
default: "info",
|
|
26
|
+
},
|
|
27
|
+
|
|
28
|
+
timeout: {
|
|
29
|
+
type: Number,
|
|
30
|
+
default: 0,
|
|
31
|
+
},
|
|
25
32
|
});
|
|
26
33
|
|
|
27
34
|
const emit = defineEmits(["dismiss", "expired"]);
|
|
@@ -93,12 +93,22 @@
|
|
|
93
93
|
|
|
94
94
|
<script lang="ts" setup>
|
|
95
95
|
import { VcIcon } from "@/ui/components";
|
|
96
|
-
import { VcPaginationProps } from "@/ui/components/molecules/vc-pagination/vc-pagination-model";
|
|
97
96
|
|
|
98
|
-
|
|
99
|
-
expanded:
|
|
100
|
-
|
|
101
|
-
|
|
97
|
+
defineProps({
|
|
98
|
+
expanded: {
|
|
99
|
+
type: Boolean,
|
|
100
|
+
default: false,
|
|
101
|
+
},
|
|
102
|
+
|
|
103
|
+
pages: {
|
|
104
|
+
type: Number,
|
|
105
|
+
default: 1,
|
|
106
|
+
},
|
|
107
|
+
|
|
108
|
+
currentPage: {
|
|
109
|
+
type: Number,
|
|
110
|
+
default: 1,
|
|
111
|
+
},
|
|
102
112
|
});
|
|
103
113
|
|
|
104
114
|
defineEmits(["itemClick"]);
|
|
@@ -109,7 +119,7 @@ defineEmits(["itemClick"]);
|
|
|
109
119
|
--pagination-item-width: 30px;
|
|
110
120
|
--pagination-item-height: 30px;
|
|
111
121
|
--pagination-item-color: #000000;
|
|
112
|
-
--pagination-item-color-hover: #000000;
|
|
122
|
+
--pagination-item-color-hover:tw- #000000;
|
|
113
123
|
--pagination-item-color-current: #ffffff;
|
|
114
124
|
--pagination-item-color-disabled: #9c9c9c;
|
|
115
125
|
--pagination-item-background-color: #ffffff;
|
|
@@ -42,9 +42,17 @@
|
|
|
42
42
|
|
|
43
43
|
<script lang="ts" setup>
|
|
44
44
|
import { VcIcon, VcLabel } from "@/ui/components";
|
|
45
|
-
import { VcRatingProps } from "@/ui/components/molecules/vc-rating/vc-rating-model";
|
|
46
45
|
|
|
47
|
-
|
|
46
|
+
export interface Props {
|
|
47
|
+
label?: string;
|
|
48
|
+
placeholder?: string;
|
|
49
|
+
tooltip?: string;
|
|
50
|
+
rating: number | undefined;
|
|
51
|
+
max?: number;
|
|
52
|
+
variant?: "stars" | "star-and-text" | "text";
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
withDefaults(defineProps<Props>(), { max: 5, variant: "stars" });
|
|
48
56
|
</script>
|
|
49
57
|
|
|
50
58
|
<style lang="scss">
|