@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
|
@@ -48,15 +48,33 @@ import SwiperCore, { Navigation } from "swiper";
|
|
|
48
48
|
import "swiper/swiper-bundle.min.css";
|
|
49
49
|
import "swiper/swiper.min.css";
|
|
50
50
|
import "swiper/components/navigation/navigation.min.css";
|
|
51
|
-
import { VcSliderProps } from "@/ui/components/molecules/vc-slider/vc-slider-model";
|
|
52
51
|
SwiperCore.use([Navigation]);
|
|
53
52
|
|
|
54
|
-
|
|
55
|
-
slides:
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
53
|
+
defineProps({
|
|
54
|
+
slides: {
|
|
55
|
+
type: Array,
|
|
56
|
+
default: () => [],
|
|
57
|
+
},
|
|
58
|
+
|
|
59
|
+
navigation: {
|
|
60
|
+
type: Boolean,
|
|
61
|
+
default: false,
|
|
62
|
+
},
|
|
63
|
+
|
|
64
|
+
overflow: {
|
|
65
|
+
type: Boolean,
|
|
66
|
+
default: false,
|
|
67
|
+
},
|
|
68
|
+
|
|
69
|
+
slidesPerView: {
|
|
70
|
+
type: String,
|
|
71
|
+
default: "auto",
|
|
72
|
+
},
|
|
73
|
+
|
|
74
|
+
spaceBetweenSlides: {
|
|
75
|
+
type: Number,
|
|
76
|
+
default: 10,
|
|
77
|
+
},
|
|
60
78
|
});
|
|
61
79
|
|
|
62
80
|
const buttonsList = computed(() => ({
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}"
|
|
8
8
|
>
|
|
9
9
|
<!-- Textarea label -->
|
|
10
|
-
<VcLabel v-if="label" class="tw-mb-2" :required="
|
|
10
|
+
<VcLabel v-if="label" class="tw-mb-2" :required="isRequired">
|
|
11
11
|
<span>{{ label }}</span>
|
|
12
12
|
<template v-if="tooltip" v-slot:tooltip>
|
|
13
13
|
<span v-html="tooltip"></span>
|
|
@@ -37,14 +37,52 @@
|
|
|
37
37
|
<script lang="ts" setup>
|
|
38
38
|
import { watch } from "vue";
|
|
39
39
|
import { VcLabel } from "@/ui/components";
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
40
|
+
|
|
41
|
+
const props = defineProps({
|
|
42
|
+
placeholder: {
|
|
43
|
+
type: String,
|
|
44
|
+
default: "",
|
|
45
|
+
},
|
|
46
|
+
|
|
47
|
+
modelValue: {
|
|
48
|
+
type: String,
|
|
49
|
+
default: undefined,
|
|
50
|
+
},
|
|
51
|
+
|
|
52
|
+
isRequired: {
|
|
53
|
+
type: Boolean,
|
|
54
|
+
default: false,
|
|
55
|
+
},
|
|
56
|
+
|
|
57
|
+
disabled: {
|
|
58
|
+
type: Boolean,
|
|
59
|
+
default: false,
|
|
60
|
+
},
|
|
61
|
+
|
|
62
|
+
label: {
|
|
63
|
+
type: String,
|
|
64
|
+
default: undefined,
|
|
65
|
+
},
|
|
66
|
+
|
|
67
|
+
tooltip: {
|
|
68
|
+
type: String,
|
|
69
|
+
default: undefined,
|
|
70
|
+
},
|
|
71
|
+
|
|
72
|
+
name: {
|
|
73
|
+
type: String,
|
|
74
|
+
default: "Field",
|
|
75
|
+
},
|
|
76
|
+
|
|
77
|
+
maxchars: {
|
|
78
|
+
type: String,
|
|
79
|
+
default: "1024",
|
|
80
|
+
},
|
|
81
|
+
|
|
82
|
+
errorMessage: {
|
|
83
|
+
type: String,
|
|
84
|
+
default: undefined,
|
|
85
|
+
},
|
|
48
86
|
});
|
|
49
87
|
|
|
50
88
|
const emit = defineEmits(["update:modelValue"]);
|
|
@@ -54,10 +54,9 @@
|
|
|
54
54
|
|
|
55
55
|
<script lang="ts" setup>
|
|
56
56
|
import { onMounted, ref, computed } from "vue";
|
|
57
|
-
import {IBladeToolbar, IMenuItems} from "@/core/types";
|
|
57
|
+
import {ExtendedComponent, IBladeToolbar, IMenuItems} from "@/core/types";
|
|
58
58
|
import VcAppMenuLink from "./_internal/vc-app-menu-link.vue";
|
|
59
59
|
import { NavigationFailure, useRoute } from "vue-router";
|
|
60
|
-
import {ExtendedComponent} from "@/shared";
|
|
61
60
|
|
|
62
61
|
export interface Props {
|
|
63
62
|
sticky?: boolean;
|
|
@@ -73,10 +73,35 @@ export default defineComponent({
|
|
|
73
73
|
import { useRouter } from "vue-router";
|
|
74
74
|
import VcAppBar from "./_internal/vc-app-bar/vc-app-bar.vue";
|
|
75
75
|
import VcAppMenu from "./_internal/vc-app-menu/vc-app-menu.vue";
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
76
|
+
import { IBladeToolbar, IMenuItems } from "@/core/types";
|
|
77
|
+
import {
|
|
78
|
+
IBladeElement,
|
|
79
|
+
ExtendedComponent,
|
|
80
|
+
IMenuClickEvent,
|
|
81
|
+
IOpenBlade,
|
|
82
|
+
} from "@/shared";
|
|
83
|
+
|
|
84
|
+
export interface Props {
|
|
85
|
+
pages: ExtendedComponent[];
|
|
86
|
+
menuItems: IMenuItems[];
|
|
87
|
+
mobileMenuItems: IMenuItems[];
|
|
88
|
+
toolbarItems: IBladeToolbar[];
|
|
89
|
+
isReady: boolean;
|
|
90
|
+
isAuthorized: boolean;
|
|
91
|
+
logo: string;
|
|
92
|
+
version: string;
|
|
93
|
+
theme?: "light" | "dark";
|
|
94
|
+
bladesRefs: IBladeElement[];
|
|
95
|
+
title?: string;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export interface Emits {
|
|
99
|
+
(event: "onOpen", args: IOpenBlade): void;
|
|
100
|
+
(event: "onClose", index: number): void;
|
|
101
|
+
(event: "backlink:click", index: number): void;
|
|
102
|
+
}
|
|
78
103
|
|
|
79
|
-
withDefaults(defineProps<
|
|
104
|
+
withDefaults(defineProps<Props>(), {
|
|
80
105
|
pages: () => [],
|
|
81
106
|
menuItems: () => [],
|
|
82
107
|
mobileMenuItems: () => [],
|
|
@@ -89,7 +114,7 @@ withDefaults(defineProps<VcAppProps>(), {
|
|
|
89
114
|
bladesRefs: () => [],
|
|
90
115
|
});
|
|
91
116
|
|
|
92
|
-
const emit = defineEmits(
|
|
117
|
+
const emit = defineEmits<Emits>();
|
|
93
118
|
|
|
94
119
|
console.debug("vc-app: Init vc-app");
|
|
95
120
|
|
|
@@ -102,7 +127,7 @@ const onMenuItemClick = function ({ item, navigationCb }: IMenuClickEvent) {
|
|
|
102
127
|
if (item.clickHandler && typeof item.clickHandler === "function") {
|
|
103
128
|
item.clickHandler(instance?.exposed);
|
|
104
129
|
} else {
|
|
105
|
-
emit("
|
|
130
|
+
emit("onOpen", { parentBlade: item.component, id: 0, navigationCb });
|
|
106
131
|
}
|
|
107
132
|
};
|
|
108
133
|
|
|
@@ -118,7 +143,7 @@ const openDashboard = async () => {
|
|
|
118
143
|
console.debug(`openDashboard() called.`);
|
|
119
144
|
|
|
120
145
|
// Close all opened pages with onBeforeClose callback
|
|
121
|
-
await emit("
|
|
146
|
+
await emit("onClose", 0);
|
|
122
147
|
|
|
123
148
|
router.push("/");
|
|
124
149
|
};
|
|
@@ -2,10 +2,7 @@
|
|
|
2
2
|
<div
|
|
3
3
|
class="tw-shrink-0 tw-h-[var(--blade-header-height)] tw-bg-[color:var(--blade-header-background-color)] tw-flex tw-items-center tw-py-0 tw-px-4 tw-border-solid tw-border-b tw-border-b-[color:#eaedf3]"
|
|
4
4
|
>
|
|
5
|
-
<div
|
|
6
|
-
v-if="icon"
|
|
7
|
-
class="tw-text-[color:var(--blade-header-icon-color)] tw-mr-3"
|
|
8
|
-
>
|
|
5
|
+
<div v-if="icon" class="tw-text-[color:var(--blade-header-icon-color)] tw-mr-3">
|
|
9
6
|
<VcIcon :icon="icon" size="xxl"></VcIcon>
|
|
10
7
|
</div>
|
|
11
8
|
|
|
@@ -31,7 +28,7 @@
|
|
|
31
28
|
<slot name="actions"></slot>
|
|
32
29
|
</div>
|
|
33
30
|
|
|
34
|
-
<div v-if="!$isMobile.value" class="tw-flex tw-items-center">
|
|
31
|
+
<div v-if="!$isMobile.value" class= "tw-flex tw-items-center">
|
|
35
32
|
<template v-if="expandable">
|
|
36
33
|
<div
|
|
37
34
|
v-if="expanded"
|
|
@@ -58,18 +55,36 @@
|
|
|
58
55
|
<script lang="ts" setup>
|
|
59
56
|
import { VcIcon } from "@/ui/components";
|
|
60
57
|
|
|
61
|
-
|
|
62
|
-
expandable
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
closable:
|
|
58
|
+
const props = defineProps({
|
|
59
|
+
expandable: {
|
|
60
|
+
type: Boolean,
|
|
61
|
+
default: false,
|
|
62
|
+
},
|
|
63
|
+
|
|
64
|
+
expanded: {
|
|
65
|
+
type: Boolean,
|
|
66
|
+
default: false,
|
|
67
|
+
},
|
|
68
|
+
|
|
69
|
+
closable: {
|
|
70
|
+
type: Boolean,
|
|
71
|
+
default: false,
|
|
72
|
+
},
|
|
73
|
+
|
|
74
|
+
title: {
|
|
75
|
+
type: String,
|
|
76
|
+
default: undefined,
|
|
77
|
+
},
|
|
78
|
+
|
|
79
|
+
subtitle: {
|
|
80
|
+
type: String,
|
|
81
|
+
default: undefined,
|
|
82
|
+
},
|
|
83
|
+
|
|
84
|
+
icon: {
|
|
85
|
+
type: String,
|
|
86
|
+
default: undefined,
|
|
87
|
+
},
|
|
73
88
|
});
|
|
74
89
|
|
|
75
90
|
const emit = defineEmits(["close", "expand", "collapse"]);
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
</template>
|
|
32
32
|
|
|
33
33
|
<script lang="ts">
|
|
34
|
-
import { defineComponent } from "vue";
|
|
34
|
+
import { defineComponent, PropType } from "vue";
|
|
35
35
|
|
|
36
36
|
export default defineComponent({
|
|
37
37
|
inheritAttrs: false,
|
|
@@ -41,16 +41,41 @@ export default defineComponent({
|
|
|
41
41
|
<script lang="ts" setup>
|
|
42
42
|
import VcBladeHeader from "./_internal/vc-blade-header/vc-blade-header.vue";
|
|
43
43
|
import VcBladeToolbar from "./_internal/vc-blade-toolbar/vc-blade-toolbar.vue";
|
|
44
|
-
import {
|
|
44
|
+
import { IBladeToolbar } from "@/core/types";
|
|
45
45
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
46
|
+
defineProps({
|
|
47
|
+
icon: {
|
|
48
|
+
type: String,
|
|
49
|
+
},
|
|
50
|
+
|
|
51
|
+
title: {
|
|
52
|
+
type: String,
|
|
53
|
+
},
|
|
54
|
+
|
|
55
|
+
subtitle: {
|
|
56
|
+
type: String,
|
|
57
|
+
},
|
|
58
|
+
|
|
59
|
+
width: {
|
|
60
|
+
type: [Number, String],
|
|
61
|
+
default: "30%",
|
|
62
|
+
},
|
|
52
63
|
|
|
53
|
-
|
|
64
|
+
expanded: {
|
|
65
|
+
type: Boolean,
|
|
66
|
+
default: false,
|
|
67
|
+
},
|
|
68
|
+
|
|
69
|
+
closable: {
|
|
70
|
+
type: Boolean,
|
|
71
|
+
default: true,
|
|
72
|
+
},
|
|
73
|
+
|
|
74
|
+
toolbarItems: {
|
|
75
|
+
type: Array as PropType<IBladeToolbar[]>,
|
|
76
|
+
default: () => [],
|
|
77
|
+
},
|
|
78
|
+
});
|
|
54
79
|
</script>
|
|
55
80
|
|
|
56
81
|
<style lang="scss">
|