@vc-shell/framework 1.0.52 → 1.0.53
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/composables/useApiClient/index.ts +12 -4
- package/core/composables/useNotifications/index.ts +1 -1
- package/core/composables/usePermissions/index.ts +1 -1
- package/core/composables/useSettings/index.ts +2 -2
- package/core/composables/useUser/index.ts +2 -2
- package/core/directives/permissions/index.ts +1 -1
- package/core/types/index.ts +5 -5
- package/dist/core/composables/useApiClient/index.d.ts +9 -3
- package/dist/core/composables/useApiClient/index.d.ts.map +1 -1
- package/dist/core/composables/useNotifications/index.d.ts +1 -1
- package/dist/core/composables/useNotifications/index.d.ts.map +1 -1
- package/dist/core/composables/useUser/index.d.ts +2 -2
- package/dist/core/composables/useUser/index.d.ts.map +1 -1
- package/dist/core/types/index.d.ts +5 -5
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/framework.js +56 -56
- package/dist/shared/app-switcher/composables/useAppSwitcher/index.d.ts +1 -1
- package/dist/shared/app-switcher/composables/useAppSwitcher/index.d.ts.map +1 -1
- package/dist/shared/blade-navigation/composables/useBladeNavigation/index.d.ts +1 -1
- package/dist/shared/blade-navigation/composables/useBladeNavigation/index.d.ts.map +1 -1
- package/dist/shared/blade-navigation/types/index.d.ts +1 -1
- package/dist/shared/blade-navigation/types/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/index.d.ts +1 -1
- package/dist/ui/components/atoms/vc-badge/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-badge/vc-badge-model.d.ts +1 -6
- 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 +2 -2
- 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 +5 -19
- package/dist/ui/components/atoms/vc-button/vc-button-model.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-card/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-card/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-card/vc-card-model.d.ts +16 -0
- package/dist/ui/components/atoms/vc-card/vc-card-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-checkbox/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-checkbox/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-checkbox/vc-checkbox-model.d.ts +14 -0
- package/dist/ui/components/atoms/vc-checkbox/vc-checkbox-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-col/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-col/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-col/vc-col-model.d.ts +8 -0
- package/dist/ui/components/atoms/vc-col/vc-col-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-container/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-container/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-container/vc-container-model.d.ts +11 -0
- package/dist/ui/components/atoms/vc-container/vc-container-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-hint/index.d.ts +2 -0
- package/dist/ui/components/atoms/vc-hint/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-icon/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-icon/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-icon/vc-icon-model.d.ts +9 -0
- package/dist/ui/components/atoms/vc-icon/vc-icon-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-image/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-image/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-image/vc-image-model.d.ts +15 -0
- package/dist/ui/components/atoms/vc-image/vc-image-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-info-row/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-info-row/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-info-row/vc-info-row-model.d.ts +11 -0
- package/dist/ui/components/atoms/vc-info-row/vc-info-row-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-label/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-label/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-label/vc-label-model.d.ts +10 -0
- package/dist/ui/components/atoms/vc-label/vc-label-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-link/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-link/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-link/vc-link-model.d.ts +10 -0
- package/dist/ui/components/atoms/vc-link/vc-link-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-loading/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-loading/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-loading/vc-loading-model.d.ts +8 -0
- package/dist/ui/components/atoms/vc-loading/vc-loading-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-progress/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-progress/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-progress/vc-progress-model.d.ts +9 -0
- package/dist/ui/components/atoms/vc-progress/vc-progress-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-row/index.d.ts +2 -0
- package/dist/ui/components/atoms/vc-row/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-row/vc-row-model.d.ts +5 -0
- package/dist/ui/components/atoms/vc-row/vc-row-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-status/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-status/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-status/vc-status-model.d.ts +10 -0
- package/dist/ui/components/atoms/vc-status/vc-status-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-status-icon/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-status-icon/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-status-icon/vc-status-icon-model.d.ts +8 -0
- package/dist/ui/components/atoms/vc-status-icon/vc-status-icon-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-switch/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-switch/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-switch/vc-switch-model.d.ts +13 -0
- package/dist/ui/components/atoms/vc-switch/vc-switch-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-widget/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-widget/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-widget/vc-widget-model.d.ts +12 -0
- package/dist/ui/components/atoms/vc-widget/vc-widget-model.d.ts.map +1 -0
- package/dist/ui/components/index.d.ts +34 -34
- package/dist/ui/components/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-breadcrumbs/index.d.ts +5 -0
- package/dist/ui/components/molecules/vc-breadcrumbs/index.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs-model.d.ts +14 -0
- package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs-model.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-editor/index.d.ts +5 -0
- package/dist/ui/components/molecules/vc-editor/index.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-editor/vc-editor-model.d.ts +16 -0
- package/dist/ui/components/molecules/vc-editor/vc-editor-model.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-file-upload/index.d.ts +5 -0
- package/dist/ui/components/molecules/vc-file-upload/index.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload-model.d.ts +14 -0
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload-model.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-form/index.d.ts +2 -0
- package/dist/ui/components/molecules/vc-form/index.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-input/index.d.ts +1 -1
- package/dist/ui/components/molecules/vc-input/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input-currency/index.d.ts +1 -1
- package/dist/ui/components/molecules/vc-input-currency/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-notification/index.d.ts +5 -0
- package/dist/ui/components/molecules/vc-notification/index.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-notification/vc-notification-model.d.ts +10 -0
- package/dist/ui/components/molecules/vc-notification/vc-notification-model.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-pagination/index.d.ts +5 -0
- package/dist/ui/components/molecules/vc-pagination/index.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-pagination/vc-pagination-model.d.ts +11 -0
- package/dist/ui/components/molecules/vc-pagination/vc-pagination-model.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-rating/index.d.ts +5 -0
- package/dist/ui/components/molecules/vc-rating/index.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-rating/vc-rating-model.d.ts +13 -0
- package/dist/ui/components/molecules/vc-rating/vc-rating-model.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-select/index.d.ts +1 -1
- package/dist/ui/components/molecules/vc-select/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-slider/index.d.ts +5 -0
- package/dist/ui/components/molecules/vc-slider/index.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-slider/vc-slider-model.d.ts +16 -0
- package/dist/ui/components/molecules/vc-slider/vc-slider-model.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-textarea/index.d.ts +5 -0
- package/dist/ui/components/molecules/vc-textarea/index.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-textarea/vc-textarea-model.d.ts +17 -0
- package/dist/ui/components/molecules/vc-textarea/vc-textarea-model.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-app/index.d.ts +5 -0
- package/dist/ui/components/organisms/vc-app/index.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-app/vc-app-model.d.ts +26 -0
- package/dist/ui/components/organisms/vc-app/vc-app-model.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-blade/index.d.ts +5 -0
- package/dist/ui/components/organisms/vc-blade/index.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-blade/vc-blade-model.d.ts +17 -0
- package/dist/ui/components/organisms/vc-blade/vc-blade-model.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-dynamic-property/index.d.ts +5 -0
- package/dist/ui/components/organisms/vc-dynamic-property/index.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property-model.d.ts +14 -0
- package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property-model.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-gallery/index.d.ts +5 -0
- package/dist/ui/components/organisms/vc-gallery/index.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-gallery/vc-gallery-model.d.ts +32 -0
- package/dist/ui/components/organisms/vc-gallery/vc-gallery-model.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-login-form/index.d.ts +5 -0
- package/dist/ui/components/organisms/vc-login-form/index.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-login-form/vc-login-form-model.d.ts +10 -0
- package/dist/ui/components/organisms/vc-login-form/vc-login-form-model.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-popup/index.d.ts +5 -0
- package/dist/ui/components/organisms/vc-popup/index.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-popup/vc-popup-model.d.ts +11 -0
- package/dist/ui/components/organisms/vc-popup/vc-popup-model.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-table/index.d.ts +5 -0
- package/dist/ui/components/organisms/vc-table/index.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-table/vc-table-model.d.ts +66 -0
- package/dist/ui/components/organisms/vc-table/vc-table-model.d.ts.map +1 -0
- package/dist/ui/types/index.d.ts +68 -0
- package/dist/ui/types/index.d.ts.map +1 -1
- package/dist/vite.config.d.ts.map +1 -1
- package/package.json +6 -5
- package/shared/app-switcher/components/vc-app-switcher/vc-app-switcher.vue +1 -1
- package/shared/app-switcher/composables/useAppSwitcher/index.ts +2 -2
- package/shared/assets/components/assets-details/assets-details.vue +4 -4
- package/shared/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue +1 -1
- package/shared/blade-navigation/composables/useBladeNavigation/index.ts +2 -2
- package/shared/blade-navigation/types/index.ts +1 -1
- package/ui/components/atoms/vc-badge/index.ts +1 -1
- package/ui/components/atoms/vc-badge/vc-badge-model.ts +1 -7
- package/ui/components/atoms/vc-badge/vc-badge.vue +2 -3
- package/ui/components/atoms/vc-button/index.ts +2 -2
- package/ui/components/atoms/vc-button/vc-button-model.ts +12 -20
- package/ui/components/atoms/vc-button/vc-button.vue +9 -33
- package/ui/components/atoms/vc-card/index.ts +7 -0
- package/ui/components/atoms/vc-card/vc-card-model.ts +17 -0
- package/ui/components/atoms/vc-card/vc-card.vue +6 -31
- package/ui/components/atoms/vc-checkbox/index.ts +7 -0
- package/ui/components/atoms/vc-checkbox/vc-checkbox-model.ts +15 -0
- package/ui/components/atoms/vc-checkbox/vc-checkbox.vue +6 -25
- package/ui/components/atoms/vc-col/index.ts +6 -0
- package/ui/components/atoms/vc-col/vc-col-model.ts +9 -0
- package/ui/components/atoms/vc-col/vc-col.vue +2 -4
- package/ui/components/atoms/vc-container/index.ts +7 -0
- package/ui/components/atoms/vc-container/vc-container-model.ts +12 -0
- package/ui/components/atoms/vc-container/vc-container.vue +11 -18
- package/ui/components/atoms/vc-hint/index.ts +2 -0
- package/ui/components/atoms/vc-icon/index.ts +7 -0
- package/ui/components/atoms/vc-icon/vc-icon-model.ts +10 -0
- package/ui/components/atoms/vc-icon/vc-icon.vue +2 -5
- package/ui/components/atoms/vc-image/index.ts +7 -0
- package/ui/components/atoms/vc-image/vc-image-model.ts +27 -0
- package/ui/components/atoms/vc-image/vc-image.vue +11 -37
- package/ui/components/atoms/vc-info-row/index.ts +7 -0
- package/ui/components/atoms/vc-info-row/vc-info-row-model.ts +12 -0
- package/ui/components/atoms/vc-info-row/vc-info-row.vue +7 -21
- package/ui/components/atoms/vc-label/index.ts +7 -0
- package/ui/components/atoms/vc-label/vc-label-model.ts +11 -0
- package/ui/components/atoms/vc-label/vc-label.vue +9 -13
- package/ui/components/atoms/vc-link/index.ts +7 -0
- package/ui/components/atoms/vc-link/vc-link-model.ts +11 -0
- package/ui/components/atoms/vc-link/vc-link.vue +4 -9
- package/ui/components/atoms/vc-loading/index.ts +7 -0
- package/ui/components/atoms/vc-loading/vc-loading-model.ts +9 -0
- package/ui/components/atoms/vc-loading/vc-loading.vue +4 -5
- package/ui/components/atoms/vc-progress/index.ts +7 -0
- package/ui/components/atoms/vc-progress/vc-progress-model.ts +10 -0
- package/ui/components/atoms/vc-progress/vc-progress.vue +5 -11
- package/ui/components/atoms/vc-row/index.ts +2 -0
- package/ui/components/atoms/vc-row/vc-row-model.ts +5 -0
- package/ui/components/atoms/vc-status/index.ts +7 -0
- package/ui/components/atoms/vc-status/vc-status-model.ts +17 -0
- package/ui/components/atoms/vc-status/vc-status.vue +5 -15
- package/ui/components/atoms/vc-status-icon/index.ts +7 -0
- package/ui/components/atoms/vc-status-icon/vc-status-icon-model.ts +9 -0
- package/ui/components/atoms/vc-status-icon/vc-status-icon.vue +12 -8
- package/ui/components/atoms/vc-switch/index.ts +7 -0
- package/ui/components/atoms/vc-switch/vc-switch-model.ts +14 -0
- package/ui/components/atoms/vc-switch/vc-switch.vue +6 -24
- package/ui/components/atoms/vc-widget/index.ts +7 -0
- package/ui/components/atoms/vc-widget/vc-widget-model.ts +13 -0
- package/ui/components/atoms/vc-widget/vc-widget.vue +3 -19
- package/ui/components/index.ts +34 -34
- package/ui/components/molecules/vc-breadcrumbs/_internal/vc-breadcrumbs-item/vc-breadcrumbs-item.vue +1 -1
- package/ui/components/molecules/vc-breadcrumbs/index.ts +7 -0
- package/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs-model.ts +15 -0
- package/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue +2 -11
- package/ui/components/molecules/vc-editor/index.ts +7 -0
- package/ui/components/molecules/vc-editor/vc-editor-model.ts +17 -0
- package/ui/components/molecules/vc-editor/vc-editor.vue +15 -52
- package/ui/components/molecules/vc-file-upload/index.ts +7 -0
- package/ui/components/molecules/vc-file-upload/vc-file-upload-model.ts +15 -0
- package/ui/components/molecules/vc-file-upload/vc-file-upload.vue +12 -33
- package/ui/components/molecules/vc-form/index.ts +2 -0
- package/ui/components/molecules/vc-input/index.ts +1 -1
- package/ui/components/molecules/vc-input-currency/index.ts +1 -1
- package/ui/components/molecules/vc-notification/index.ts +7 -0
- package/ui/components/molecules/vc-notification/vc-notification-model.ts +11 -0
- package/ui/components/molecules/vc-notification/vc-notification.vue +4 -11
- package/ui/components/molecules/vc-pagination/index.ts +7 -0
- package/ui/components/molecules/vc-pagination/vc-pagination-model.ts +12 -0
- package/ui/components/molecules/vc-pagination/vc-pagination.vue +7 -17
- package/ui/components/molecules/vc-rating/index.ts +7 -0
- package/ui/components/molecules/vc-rating/vc-rating-model.ts +14 -0
- package/ui/components/molecules/vc-rating/vc-rating.vue +3 -11
- package/ui/components/molecules/vc-select/index.ts +1 -1
- package/ui/components/molecules/vc-select/vc-select.vue +2 -2
- package/ui/components/molecules/vc-slider/index.ts +7 -0
- package/ui/components/molecules/vc-slider/vc-slider-model.ts +15 -0
- package/ui/components/molecules/vc-slider/vc-slider.vue +7 -25
- package/ui/components/molecules/vc-textarea/index.ts +7 -0
- package/ui/components/molecules/vc-textarea/vc-textarea-model.ts +18 -0
- package/ui/components/molecules/vc-textarea/vc-textarea.vue +10 -48
- package/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue +3 -3
- package/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue +1 -1
- package/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue +2 -1
- package/ui/components/organisms/vc-app/_internal/vc-app-menu/vc-app-menu.vue +3 -3
- package/ui/components/organisms/vc-app/index.ts +6 -0
- package/ui/components/organisms/vc-app/vc-app-model.ts +27 -0
- package/ui/components/organisms/vc-app/vc-app.vue +6 -31
- package/ui/components/organisms/vc-blade/_internal/vc-blade-header/vc-blade-header.vue +19 -34
- package/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue +2 -2
- package/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/vc-blade-toolbar.vue +1 -1
- package/ui/components/organisms/vc-blade/index.ts +7 -0
- package/ui/components/organisms/vc-blade/vc-blade-model.ts +18 -0
- package/ui/components/organisms/vc-blade/vc-blade.vue +9 -34
- package/ui/components/organisms/vc-dynamic-property/index.ts +7 -0
- package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property-model.ts +25 -0
- package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue +67 -95
- package/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue +32 -22
- package/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue +2 -2
- package/ui/components/organisms/vc-gallery/index.ts +7 -0
- package/ui/components/organisms/vc-gallery/vc-gallery-model.ts +33 -0
- package/ui/components/organisms/vc-gallery/vc-gallery.vue +24 -88
- package/ui/components/organisms/vc-login-form/index.ts +7 -0
- package/ui/components/organisms/vc-login-form/vc-login-form-model.ts +11 -0
- package/ui/components/organisms/vc-login-form/vc-login-form.vue +3 -14
- package/ui/components/organisms/vc-popup/index.ts +7 -0
- package/ui/components/organisms/vc-popup/vc-popup-model.ts +12 -0
- package/ui/components/organisms/vc-popup/vc-popup.vue +4 -15
- package/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue +2 -2
- package/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue +1 -1
- package/ui/components/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue +4 -4
- package/ui/components/organisms/vc-table/index.ts +7 -0
- package/ui/components/organisms/vc-table/vc-table-model.ts +56 -0
- package/ui/components/organisms/vc-table/vc-table.vue +8 -41
- package/ui/types/index.ts +188 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentPublicInstance } from "vue";
|
|
2
|
+
import { VcContainerProps } from "./vc-container-model";
|
|
3
|
+
import { ComponentConstructor } from "./../../../types/ts-helpers";
|
|
4
|
+
import Container from "./vc-container.vue";
|
|
5
|
+
export const VcContainer: ComponentConstructor<
|
|
6
|
+
ComponentPublicInstance<VcContainerProps>
|
|
7
|
+
> = Container;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {VNode} from "vue";
|
|
2
|
+
|
|
3
|
+
export interface VcContainerProps {
|
|
4
|
+
shadow?: boolean | undefined
|
|
5
|
+
noPadding?: boolean | undefined
|
|
6
|
+
usePtr?: boolean | undefined
|
|
7
|
+
"onScroll:ptr"?: () => void
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface VcContainerSlots {
|
|
11
|
+
default: () => VNode[];
|
|
12
|
+
}
|
|
@@ -36,23 +36,16 @@
|
|
|
36
36
|
|
|
37
37
|
<script lang="ts" setup>
|
|
38
38
|
import { ref, onMounted, computed, nextTick } from "vue";
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
noPadding: {
|
|
46
|
-
type: Boolean,
|
|
47
|
-
default: false,
|
|
48
|
-
},
|
|
49
|
-
|
|
50
|
-
usePtr: {
|
|
51
|
-
type: Boolean,
|
|
52
|
-
default: false,
|
|
53
|
-
},
|
|
39
|
+
import { VcContainerProps } from "./vc-container-model";
|
|
40
|
+
|
|
41
|
+
const props = withDefaults(defineProps<VcContainerProps>(), {
|
|
42
|
+
shadow: false,
|
|
43
|
+
noPadding: false,
|
|
44
|
+
usePtr: false,
|
|
54
45
|
});
|
|
55
|
-
|
|
46
|
+
|
|
47
|
+
const emit = defineEmits(["scroll:ptr"]);
|
|
48
|
+
|
|
56
49
|
const component = ref<HTMLElement>();
|
|
57
50
|
const scroll = ref(false);
|
|
58
51
|
const startY = ref(0);
|
|
@@ -160,8 +153,8 @@ function ease(distance: number) {
|
|
|
160
153
|
}
|
|
161
154
|
|
|
162
155
|
defineExpose({
|
|
163
|
-
|
|
164
|
-
|
|
156
|
+
scrollTop,
|
|
157
|
+
component,
|
|
165
158
|
});
|
|
166
159
|
</script>
|
|
167
160
|
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentPublicInstance } from "vue";
|
|
2
|
+
import { VcIconProps } from "./vc-icon-model";
|
|
3
|
+
import { ComponentConstructor } from "./../../../types/ts-helpers";
|
|
4
|
+
import Icon from "./vc-icon.vue";
|
|
5
|
+
export const VcIcon: ComponentConstructor<
|
|
6
|
+
ComponentPublicInstance<VcIconProps>
|
|
7
|
+
> = Icon;
|
|
@@ -3,12 +3,9 @@
|
|
|
3
3
|
</template>
|
|
4
4
|
|
|
5
5
|
<script lang="ts" setup>
|
|
6
|
-
|
|
7
|
-
icon?: string;
|
|
8
|
-
size?: "xs" | "s" | "m" | "l" | "xl" | "xxl";
|
|
9
|
-
}
|
|
6
|
+
import { VcIconProps } from "./vc-icon-model";
|
|
10
7
|
|
|
11
|
-
withDefaults(defineProps<
|
|
8
|
+
withDefaults(defineProps<VcIconProps>(), {
|
|
12
9
|
icon: "fas fa-square-full",
|
|
13
10
|
size: "m",
|
|
14
11
|
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentPublicInstance } from "vue";
|
|
2
|
+
import { VcImageProps } from "./vc-image-model";
|
|
3
|
+
import { ComponentConstructor } from "./../../../types/ts-helpers";
|
|
4
|
+
import Image from "./vc-image.vue";
|
|
5
|
+
export const VcImage: ComponentConstructor<
|
|
6
|
+
ComponentPublicInstance<VcImageProps>
|
|
7
|
+
> = Image;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { VNode } from "vue";
|
|
2
|
+
|
|
3
|
+
export interface VcImageProps {
|
|
4
|
+
aspect?: string | undefined;
|
|
5
|
+
rounded?: boolean | undefined;
|
|
6
|
+
bordered?: boolean | undefined;
|
|
7
|
+
clickable?: boolean | undefined;
|
|
8
|
+
src?: string | undefined;
|
|
9
|
+
size?:
|
|
10
|
+
| "auto"
|
|
11
|
+
| "1x1"
|
|
12
|
+
| "16x9"
|
|
13
|
+
| "4x3"
|
|
14
|
+
| "3x2"
|
|
15
|
+
| "xs"
|
|
16
|
+
| "s"
|
|
17
|
+
| "m"
|
|
18
|
+
| "l"
|
|
19
|
+
| "xl"
|
|
20
|
+
| "xxl";
|
|
21
|
+
background?: "cover" | "contain" | "auto";
|
|
22
|
+
onClick?: () => void;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface VcImageSlots {
|
|
26
|
+
default: () => VNode[];
|
|
27
|
+
}
|
|
@@ -5,7 +5,8 @@
|
|
|
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]':
|
|
8
|
+
'tw-rounded-[3px] tw-border tw-border-solid tw-border-[color:#efefef]':
|
|
9
|
+
bordered,
|
|
9
10
|
'tw-cursor-pointer': clickable,
|
|
10
11
|
},
|
|
11
12
|
'tw-relative',
|
|
@@ -25,42 +26,15 @@
|
|
|
25
26
|
|
|
26
27
|
<script lang="ts" setup>
|
|
27
28
|
import { computed } from "vue";
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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
|
-
},
|
|
29
|
+
import { VcImageProps } from "./vc-image-model";
|
|
30
|
+
|
|
31
|
+
const props = withDefaults(defineProps<VcImageProps>(), {
|
|
32
|
+
aspect: "1x1",
|
|
33
|
+
rounded: false,
|
|
34
|
+
bordered: false,
|
|
35
|
+
clickable: false,
|
|
36
|
+
size: "auto",
|
|
37
|
+
background: "cover",
|
|
64
38
|
});
|
|
65
39
|
|
|
66
40
|
const emit = defineEmits(["click"]);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentPublicInstance } from "vue";
|
|
2
|
+
import { VcInfoRowProps } from "./vc-info-row-model";
|
|
3
|
+
import { ComponentConstructor } from "./../../../types/ts-helpers";
|
|
4
|
+
import InfoRow from "./vc-info-row.vue";
|
|
5
|
+
export const VcInfoRow: ComponentConstructor<
|
|
6
|
+
ComponentPublicInstance<VcInfoRowProps>
|
|
7
|
+
> = InfoRow;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { VNode } from "vue";
|
|
2
|
+
|
|
3
|
+
export interface VcInfoRowProps {
|
|
4
|
+
label?: string | undefined;
|
|
5
|
+
value?: string | undefined;
|
|
6
|
+
tooltip?: string | undefined;
|
|
7
|
+
type?: "default" | "email";
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface VcInfoRowSlots {
|
|
11
|
+
default: () => VNode[];
|
|
12
|
+
}
|
|
@@ -16,27 +16,13 @@
|
|
|
16
16
|
</template>
|
|
17
17
|
|
|
18
18
|
<script lang="ts" setup>
|
|
19
|
-
import { VcLabel, VcRow, VcCol } from "
|
|
19
|
+
import { VcLabel, VcRow, VcCol } from "./../../../components";
|
|
20
|
+
import { VcInfoRowProps } from "./vc-info-row-model";
|
|
20
21
|
|
|
21
|
-
defineProps({
|
|
22
|
-
label:
|
|
23
|
-
|
|
24
|
-
|
|
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
|
-
},
|
|
22
|
+
withDefaults(defineProps<VcInfoRowProps>(), {
|
|
23
|
+
label: "",
|
|
24
|
+
value: "",
|
|
25
|
+
tooltip: "",
|
|
26
|
+
type: "default",
|
|
41
27
|
});
|
|
42
28
|
</script>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentPublicInstance } from "vue";
|
|
2
|
+
import { VcLabelProps } from "./vc-label-model";
|
|
3
|
+
import { ComponentConstructor } from "./../../../types/ts-helpers";
|
|
4
|
+
import Label from "./vc-label.vue";
|
|
5
|
+
export const VcLabel: ComponentConstructor<
|
|
6
|
+
ComponentPublicInstance<VcLabelProps>
|
|
7
|
+
> = Label;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class=
|
|
2
|
+
<div class="tw-flex tw-flex-nowrap tw-font-bold">
|
|
3
3
|
<span><slot></slot></span>
|
|
4
|
-
<span
|
|
4
|
+
<span
|
|
5
|
+
v-if="required"
|
|
6
|
+
class="tw-text-[color:var(--label-required-color)] tw-ml-1"
|
|
5
7
|
>*</span
|
|
6
8
|
>
|
|
7
9
|
<span v-if="$slots['tooltip']" class="tw-grow tw-basis-0 tw-ml-1">
|
|
@@ -23,19 +25,13 @@
|
|
|
23
25
|
</template>
|
|
24
26
|
|
|
25
27
|
<script lang="ts" setup>
|
|
26
|
-
import { VcIcon } from "
|
|
28
|
+
import { VcIcon } from "./../../../components";
|
|
27
29
|
import { ref } from "vue";
|
|
30
|
+
import { VcLabelProps } from "./vc-label-model";
|
|
28
31
|
|
|
29
|
-
defineProps({
|
|
30
|
-
required:
|
|
31
|
-
|
|
32
|
-
default: false,
|
|
33
|
-
},
|
|
34
|
-
|
|
35
|
-
tooltipIcon: {
|
|
36
|
-
type: String,
|
|
37
|
-
default: "fas fa-info-circle",
|
|
38
|
-
},
|
|
32
|
+
withDefaults(defineProps<VcLabelProps>(), {
|
|
33
|
+
required: false,
|
|
34
|
+
tooltipIcon: "fas fa-info-circle",
|
|
39
35
|
});
|
|
40
36
|
|
|
41
37
|
const tooltipVisible = ref(false);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentPublicInstance } from "vue";
|
|
2
|
+
import { VcLinkProps } from "./vc-link-model";
|
|
3
|
+
import { ComponentConstructor } from "./../../../types/ts-helpers";
|
|
4
|
+
import Link from "./vc-link.vue";
|
|
5
|
+
export const VcLink: ComponentConstructor<
|
|
6
|
+
ComponentPublicInstance<VcLinkProps>
|
|
7
|
+
> = Link;
|
|
@@ -13,16 +13,11 @@
|
|
|
13
13
|
</template>
|
|
14
14
|
|
|
15
15
|
<script lang="ts" setup>
|
|
16
|
-
|
|
17
|
-
active: {
|
|
18
|
-
type: Boolean,
|
|
19
|
-
default: false,
|
|
20
|
-
},
|
|
16
|
+
import { VcLinkProps } from "./vc-link-model";
|
|
21
17
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
},
|
|
18
|
+
const props = withDefaults(defineProps<VcLinkProps>(), {
|
|
19
|
+
active: false,
|
|
20
|
+
disabled: false,
|
|
26
21
|
});
|
|
27
22
|
const emit = defineEmits(["click"]);
|
|
28
23
|
function onClick(): void {
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentPublicInstance } from "vue";
|
|
2
|
+
import { VcLoadingProps } from "./vc-loading-model";
|
|
3
|
+
import { ComponentConstructor } from "./../../../types/ts-helpers";
|
|
4
|
+
import Loading from "./vc-loading.vue";
|
|
5
|
+
export const VcLoading: ComponentConstructor<
|
|
6
|
+
ComponentPublicInstance<VcLoadingProps>
|
|
7
|
+
> = Loading;
|
|
@@ -24,10 +24,9 @@
|
|
|
24
24
|
</template>
|
|
25
25
|
|
|
26
26
|
<script lang="ts" setup>
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
},
|
|
27
|
+
import { VcLoadingProps } from "./vc-loading-model";
|
|
28
|
+
|
|
29
|
+
withDefaults(defineProps<VcLoadingProps>(), {
|
|
30
|
+
active: false,
|
|
32
31
|
});
|
|
33
32
|
</script>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentPublicInstance } from "vue";
|
|
2
|
+
import { VcProgressProps } from "./vc-progress-model";
|
|
3
|
+
import { ComponentConstructor } from "./../../../types/ts-helpers";
|
|
4
|
+
import Progress from "./vc-progress.vue";
|
|
5
|
+
export const VcProgress: ComponentConstructor<
|
|
6
|
+
ComponentPublicInstance<VcProgressProps>
|
|
7
|
+
> = Progress;
|
|
@@ -6,24 +6,18 @@
|
|
|
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
|
-
|
|
17
|
-
value: {
|
|
18
|
-
type: Number,
|
|
19
|
-
default: 0,
|
|
20
|
-
},
|
|
16
|
+
import { VcProgressProps } from "./vc-progress-model";
|
|
21
17
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
enum: ["default", "striped"],
|
|
26
|
-
},
|
|
18
|
+
withDefaults(defineProps<VcProgressProps>(), {
|
|
19
|
+
value: 0,
|
|
20
|
+
variant: "default",
|
|
27
21
|
});
|
|
28
22
|
</script>
|
|
29
23
|
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentPublicInstance } from "vue";
|
|
2
|
+
import { VcStatusProps } from "./vc-status-model";
|
|
3
|
+
import { ComponentConstructor } from "./../../../types/ts-helpers";
|
|
4
|
+
import Status from "./vc-status.vue";
|
|
5
|
+
export const VcStatus: ComponentConstructor<
|
|
6
|
+
ComponentPublicInstance<VcStatusProps>
|
|
7
|
+
> = Status;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { VNode } from "vue";
|
|
2
|
+
|
|
3
|
+
export interface VcStatusProps {
|
|
4
|
+
variant?:
|
|
5
|
+
| "info"
|
|
6
|
+
| "warning"
|
|
7
|
+
| "danger"
|
|
8
|
+
| "success"
|
|
9
|
+
| "light-danger"
|
|
10
|
+
| undefined;
|
|
11
|
+
outline?: boolean | undefined;
|
|
12
|
+
extend?: boolean | undefined;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface VcStatusSlots {
|
|
16
|
+
default: () => VNode[];
|
|
17
|
+
}
|
|
@@ -12,22 +12,12 @@
|
|
|
12
12
|
</template>
|
|
13
13
|
|
|
14
14
|
<script lang="ts" setup>
|
|
15
|
-
|
|
16
|
-
variant: {
|
|
17
|
-
type: String,
|
|
18
|
-
default: "info",
|
|
19
|
-
enum: ["info", "warning", "danger", "success", "light-danger"],
|
|
20
|
-
},
|
|
15
|
+
import { VcStatusProps } from "./vc-status-model";
|
|
21
16
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
extend: {
|
|
28
|
-
type: Boolean,
|
|
29
|
-
default: false,
|
|
30
|
-
},
|
|
17
|
+
withDefaults(defineProps<VcStatusProps>(), {
|
|
18
|
+
variant: "info",
|
|
19
|
+
outline: true,
|
|
20
|
+
extend: false,
|
|
31
21
|
});
|
|
32
22
|
</script>
|
|
33
23
|
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentPublicInstance } from "vue";
|
|
2
|
+
import { VcStatusIconProps } from "./vc-status-icon-model";
|
|
3
|
+
import { ComponentConstructor } from "./../../../types/ts-helpers";
|
|
4
|
+
import StatusIcon from "./vc-status-icon.vue";
|
|
5
|
+
export const VcStatusIcon: ComponentConstructor<
|
|
6
|
+
ComponentPublicInstance<VcStatusIconProps>
|
|
7
|
+
> = StatusIcon;
|
|
@@ -1,21 +1,25 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
3
|
<template v-if="status">
|
|
4
|
-
<VcIcon
|
|
4
|
+
<VcIcon
|
|
5
|
+
icon="fas fa-check-circle"
|
|
6
|
+
class="tw-text-[color:#87b563]"
|
|
7
|
+
></VcIcon>
|
|
5
8
|
</template>
|
|
6
9
|
<template v-else>
|
|
7
|
-
<VcIcon
|
|
10
|
+
<VcIcon
|
|
11
|
+
icon="fas fa-times-circle"
|
|
12
|
+
class="tw-text-[color:#bdd1df]"
|
|
13
|
+
></VcIcon>
|
|
8
14
|
</template>
|
|
9
15
|
</div>
|
|
10
16
|
</template>
|
|
11
17
|
|
|
12
18
|
<script lang="ts" setup>
|
|
13
|
-
import { VcIcon } from "
|
|
19
|
+
import { VcIcon } from "./../../../components";
|
|
20
|
+
import { VcStatusIconProps } from "./vc-status-icon-model";
|
|
14
21
|
|
|
15
|
-
defineProps({
|
|
16
|
-
status:
|
|
17
|
-
type: Boolean,
|
|
18
|
-
default: false,
|
|
19
|
-
},
|
|
22
|
+
withDefaults(defineProps<VcStatusIconProps>(), {
|
|
23
|
+
status: false,
|
|
20
24
|
});
|
|
21
25
|
</script>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentPublicInstance } from "vue";
|
|
2
|
+
import { VcSwitchProps } from "./vc-switch-model";
|
|
3
|
+
import { ComponentConstructor } from "./../../../types/ts-helpers";
|
|
4
|
+
import Switch from "./vc-switch.vue";
|
|
5
|
+
export const VcSwitch: ComponentConstructor<
|
|
6
|
+
ComponentPublicInstance<VcSwitchProps>
|
|
7
|
+
> = Switch;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { VNode } from "vue";
|
|
2
|
+
|
|
3
|
+
export interface VcSwitchProps {
|
|
4
|
+
modelValue?: boolean | undefined;
|
|
5
|
+
disabled?: boolean | undefined;
|
|
6
|
+
tooltip?: string | undefined;
|
|
7
|
+
required?: boolean | undefined;
|
|
8
|
+
label?: string | undefined;
|
|
9
|
+
"onUpdate:modelValue"?: (value: boolean) => void;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface VcSwitchSlots {
|
|
13
|
+
default: () => VNode[];
|
|
14
|
+
}
|
|
@@ -23,31 +23,13 @@
|
|
|
23
23
|
</template>
|
|
24
24
|
|
|
25
25
|
<script lang="ts" setup>
|
|
26
|
-
|
|
27
|
-
modelValue: {
|
|
28
|
-
type: Boolean,
|
|
29
|
-
default: false,
|
|
30
|
-
},
|
|
26
|
+
import { VcSwitchProps } from "./vc-switch-model";
|
|
31
27
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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
|
-
},
|
|
28
|
+
withDefaults(defineProps<VcSwitchProps>(), {
|
|
29
|
+
modelValue: false,
|
|
30
|
+
disabled: false,
|
|
31
|
+
tooltip: "",
|
|
32
|
+
required: false,
|
|
51
33
|
});
|
|
52
34
|
|
|
53
35
|
const emit = defineEmits(["update:modelValue"]);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentPublicInstance } from "vue";
|
|
2
|
+
import { VcWidgetProps } from "./vc-widget-model";
|
|
3
|
+
import { ComponentConstructor } from "./../../../types/ts-helpers";
|
|
4
|
+
import Widget from "./vc-widget.vue";
|
|
5
|
+
export const VcWidget: ComponentConstructor<
|
|
6
|
+
ComponentPublicInstance<VcWidgetProps>
|
|
7
|
+
> = Widget;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { VNode } from "vue";
|
|
2
|
+
|
|
3
|
+
export interface VcWidgetProps {
|
|
4
|
+
icon?: string | undefined;
|
|
5
|
+
title?: string | undefined;
|
|
6
|
+
value?: string | number | undefined;
|
|
7
|
+
disabled?: boolean | undefined;
|
|
8
|
+
onClick?: () => void;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface VcWidgetSlots {
|
|
12
|
+
default: () => VNode[];
|
|
13
|
+
}
|