@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
|
@@ -16,26 +16,10 @@
|
|
|
16
16
|
</template>
|
|
17
17
|
|
|
18
18
|
<script lang="ts" setup>
|
|
19
|
-
|
|
20
|
-
icon: {
|
|
21
|
-
type: String,
|
|
22
|
-
default: undefined,
|
|
23
|
-
},
|
|
19
|
+
import { VcWidgetProps } from "./vc-widget-model";
|
|
24
20
|
|
|
25
|
-
|
|
26
|
-
|
|
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
|
-
},
|
|
21
|
+
const props = withDefaults(defineProps<VcWidgetProps>(), {
|
|
22
|
+
disabled: false,
|
|
39
23
|
});
|
|
40
24
|
const emit = defineEmits(["click"]);
|
|
41
25
|
|
package/ui/components/index.ts
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
/* Atoms */
|
|
2
2
|
export { VcBadge } from "./atoms/vc-badge";
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
export {
|
|
18
|
-
export {
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
3
|
+
export {VcButton } from "./atoms/vc-button";
|
|
4
|
+
export { VcCard } from "./atoms/vc-card";
|
|
5
|
+
export { VcCheckbox } from "./atoms/vc-checkbox";
|
|
6
|
+
export { VcCol } from "./atoms/vc-col";
|
|
7
|
+
export { VcContainer } from "./atoms/vc-container";
|
|
8
|
+
export { VcHint } from "./atoms/vc-hint";
|
|
9
|
+
export { VcIcon } from "./atoms/vc-icon";
|
|
10
|
+
export { VcInfoRow } from "./atoms/vc-info-row";
|
|
11
|
+
export { VcImage } from "./atoms/vc-image";
|
|
12
|
+
export { VcLabel } from "./atoms/vc-label";
|
|
13
|
+
export { VcLink } from "./atoms/vc-link";
|
|
14
|
+
export { VcLoading } from "./atoms/vc-loading";
|
|
15
|
+
export { VcProgress } from "./atoms/vc-progress";
|
|
16
|
+
export { VcRow } from "./atoms/vc-row";
|
|
17
|
+
export { VcStatus } from "./atoms/vc-status";
|
|
18
|
+
export { VcStatusIcon } from "./atoms/vc-status-icon";
|
|
19
|
+
export { VcSwitch } from "./atoms/vc-switch";
|
|
20
|
+
export { VcWidget } from "./atoms/vc-widget";
|
|
21
21
|
|
|
22
22
|
/* Molecules */
|
|
23
|
-
export {
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
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";
|
|
27
27
|
export { VcInput } from "./molecules/vc-input";
|
|
28
28
|
export { VcInputCurrency } from "./molecules/vc-input-currency";
|
|
29
|
-
export {
|
|
30
|
-
export {
|
|
31
|
-
export {
|
|
29
|
+
export { VcNotification } from "./molecules/vc-notification";
|
|
30
|
+
export { VcPagination } from "./molecules/vc-pagination";
|
|
31
|
+
export { VcRating } from "./molecules/vc-rating";
|
|
32
32
|
export { VcSelect } from "./molecules/vc-select";
|
|
33
|
-
export {
|
|
34
|
-
export {
|
|
33
|
+
export { VcSlider } from "./molecules/vc-slider";
|
|
34
|
+
export { VcTextarea } from "./molecules/vc-textarea";
|
|
35
35
|
|
|
36
36
|
/* Organisms */
|
|
37
|
-
export {
|
|
38
|
-
export {
|
|
39
|
-
export {
|
|
40
|
-
export {
|
|
41
|
-
export {
|
|
42
|
-
export {
|
|
43
|
-
export {
|
|
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";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentPublicInstance } from "vue";
|
|
2
|
+
import { VcBreadcrumbsProps } from "./vc-breadcrumbs-model";
|
|
3
|
+
import { ComponentConstructor } from "./../../../types/ts-helpers";
|
|
4
|
+
import Breadcrumbs from "./vc-breadcrumbs.vue";
|
|
5
|
+
export const VcBreadcrumbs: ComponentConstructor<
|
|
6
|
+
ComponentPublicInstance<VcBreadcrumbsProps>
|
|
7
|
+
> = Breadcrumbs;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { VNode } from "vue";
|
|
2
|
+
|
|
3
|
+
export interface VcBreadcrumbsProps {
|
|
4
|
+
items?: {
|
|
5
|
+
current: boolean;
|
|
6
|
+
icon: string;
|
|
7
|
+
title: string;
|
|
8
|
+
clickHandler: () => void;
|
|
9
|
+
id: string;
|
|
10
|
+
}[];
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface VcBreadcrumbsSlots {
|
|
14
|
+
default: () => VNode[];
|
|
15
|
+
}
|
|
@@ -11,18 +11,9 @@
|
|
|
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 "./vc-breadcrumbs-model";
|
|
14
15
|
|
|
15
|
-
|
|
16
|
-
items: {
|
|
17
|
-
current: boolean;
|
|
18
|
-
icon: string;
|
|
19
|
-
title: string;
|
|
20
|
-
clickHandler: () => void;
|
|
21
|
-
id: string;
|
|
22
|
-
}[];
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
withDefaults(defineProps<Props>(), {
|
|
16
|
+
withDefaults(defineProps<VcBreadcrumbsProps>(), {
|
|
26
17
|
items: () => [],
|
|
27
18
|
});
|
|
28
19
|
</script>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentPublicInstance } from "vue";
|
|
2
|
+
import { VcEditorProps } from "./vc-editor-model";
|
|
3
|
+
import { ComponentConstructor } from "./../../../types/ts-helpers";
|
|
4
|
+
import Editor from "./vc-editor.vue";
|
|
5
|
+
export const VcEditor: ComponentConstructor<
|
|
6
|
+
ComponentPublicInstance<VcEditorProps>
|
|
7
|
+
> = Editor;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { VNode } from "vue";
|
|
2
|
+
|
|
3
|
+
export interface VcEditorProps {
|
|
4
|
+
placeholder?: string | undefined;
|
|
5
|
+
modelValue?: string | number | Date | undefined;
|
|
6
|
+
required?: boolean | undefined;
|
|
7
|
+
disabled?: boolean | undefined;
|
|
8
|
+
label?: string | undefined;
|
|
9
|
+
tooltip?: string | undefined;
|
|
10
|
+
name?: string | undefined;
|
|
11
|
+
errorMessage?: string | undefined;
|
|
12
|
+
"onUpdate:modelValue"?: (value: string) => void;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface VcEditorSlots {
|
|
16
|
+
error: () => VNode[];
|
|
17
|
+
}
|
|
@@ -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,11 +16,10 @@
|
|
|
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)] tw-h-[200px]"
|
|
20
20
|
v-model:value="content"
|
|
21
21
|
lang="html"
|
|
22
22
|
theme="chrome"
|
|
23
|
-
style="height: 200px"
|
|
24
23
|
@input="onInput"
|
|
25
24
|
/>
|
|
26
25
|
<slot v-if="errorMessage" name="error">
|
|
@@ -35,63 +34,27 @@
|
|
|
35
34
|
import { VAceEditor } from "vue3-ace-editor";
|
|
36
35
|
import "ace-builds/src-noconflict/mode-html";
|
|
37
36
|
import "ace-builds/src-noconflict/theme-chrome";
|
|
38
|
-
import {ref, unref, watch} from "vue";
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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
|
-
}
|
|
37
|
+
import { ref, unref, watch } from "vue";
|
|
38
|
+
import { VcEditorProps } from "./vc-editor-model";
|
|
39
|
+
|
|
40
|
+
const props = withDefaults(defineProps<VcEditorProps>(), {
|
|
41
|
+
placeholder: "",
|
|
42
|
+
modelValue: null,
|
|
43
|
+
required: false,
|
|
44
|
+
name: "Field",
|
|
80
45
|
});
|
|
81
46
|
|
|
82
47
|
const emit = defineEmits(["update:modelValue"]);
|
|
83
48
|
const content = ref();
|
|
84
|
-
let initialValue = unref(props.modelValue);
|
|
85
49
|
|
|
86
50
|
watch(
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
51
|
+
() => props.modelValue,
|
|
52
|
+
(value) => {
|
|
53
|
+
let init = unref(value);
|
|
54
|
+
emit("update:modelValue", init);
|
|
55
|
+
}
|
|
92
56
|
);
|
|
93
57
|
|
|
94
|
-
// Handle input event to propertly validate value and emit changes
|
|
95
58
|
function onInput() {
|
|
96
59
|
emit("update:modelValue", content.value);
|
|
97
60
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentPublicInstance } from "vue";
|
|
2
|
+
import { VcFileUploadProps } from "./vc-file-upload-model";
|
|
3
|
+
import { ComponentConstructor } from "./../../../types/ts-helpers";
|
|
4
|
+
import FileUpload from "./vc-file-upload.vue";
|
|
5
|
+
export const VcFileUpload: ComponentConstructor<
|
|
6
|
+
ComponentPublicInstance<VcFileUploadProps>
|
|
7
|
+
> = FileUpload;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { VNode } from "vue";
|
|
2
|
+
|
|
3
|
+
export interface VcFileUploadProps {
|
|
4
|
+
variant?: "gallery" | "file-upload" | undefined;
|
|
5
|
+
loading?: boolean | undefined;
|
|
6
|
+
accept?: string | undefined;
|
|
7
|
+
multiple?: boolean | undefined;
|
|
8
|
+
rules?: string | Record<string, unknown> | undefined;
|
|
9
|
+
name?: string | undefined;
|
|
10
|
+
onUpload?: (files: FileList) => void;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface VcFileUploadSlots {
|
|
14
|
+
error: () => VNode[];
|
|
15
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class=
|
|
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,7 +18,9 @@
|
|
|
18
18
|
size="xxl"
|
|
19
19
|
></VcIcon>
|
|
20
20
|
|
|
21
|
-
<div
|
|
21
|
+
<div
|
|
22
|
+
class="tw-text-[#9db0be] tw-text-center tw-text-lg tw-leading-lg tw-mt-4"
|
|
23
|
+
>
|
|
22
24
|
<span>Drag and drop file here or</span>
|
|
23
25
|
<br />
|
|
24
26
|
<VcLink @click="toggleUploader">browse your files</VcLink>
|
|
@@ -45,37 +47,14 @@
|
|
|
45
47
|
<script lang="ts" setup>
|
|
46
48
|
import { getCurrentInstance, ref, unref } from "vue";
|
|
47
49
|
import { useField } from "vee-validate";
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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
|
-
},
|
|
50
|
+
import { VcFileUploadProps } from "./vc-file-upload-model";
|
|
51
|
+
|
|
52
|
+
const props = withDefaults(defineProps<VcFileUploadProps>(), {
|
|
53
|
+
variant: "gallery",
|
|
54
|
+
loading: false,
|
|
55
|
+
accept: ".jpg, .png, .jpeg",
|
|
56
|
+
multiple: false,
|
|
57
|
+
name: "Gallery",
|
|
79
58
|
});
|
|
80
59
|
|
|
81
60
|
const emit = defineEmits(["upload"]);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPublicInstance } from "vue";
|
|
2
|
-
import { ComponentConstructor } from "
|
|
2
|
+
import { ComponentConstructor } from "./../../../types/ts-helpers";
|
|
3
3
|
import Input from "./vc-input.vue";
|
|
4
4
|
import { VcInputProps } from "./vc-input-model";
|
|
5
5
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentPublicInstance } from "vue";
|
|
2
2
|
import { VcInputCurrencyProps } from "./vc-input-currency-model";
|
|
3
|
-
import { ComponentConstructor } from "
|
|
3
|
+
import { ComponentConstructor } from "./../../../types/ts-helpers";
|
|
4
4
|
import InputCurrency from "./vc-input-currency.vue";
|
|
5
5
|
|
|
6
6
|
export const VcInputCurrency: ComponentConstructor<
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentPublicInstance } from "vue";
|
|
2
|
+
import { VcNotificationProps } from "./vc-notification-model";
|
|
3
|
+
import { ComponentConstructor } from "./../../../types/ts-helpers"
|
|
4
|
+
import Notification from "./vc-notification.vue";
|
|
5
|
+
export const VcNotification: ComponentConstructor<
|
|
6
|
+
ComponentPublicInstance<VcNotificationProps>
|
|
7
|
+
> = Notification;
|
|
@@ -17,18 +17,11 @@
|
|
|
17
17
|
</template>
|
|
18
18
|
|
|
19
19
|
<script lang="ts" setup>
|
|
20
|
-
import { VcIcon } from "
|
|
20
|
+
import { VcIcon } from "./../../../components";
|
|
21
|
+
import { VcNotificationProps } from "./vc-notification-model";
|
|
21
22
|
|
|
22
|
-
const props = defineProps({
|
|
23
|
-
|
|
24
|
-
type: String,
|
|
25
|
-
default: "info",
|
|
26
|
-
},
|
|
27
|
-
|
|
28
|
-
timeout: {
|
|
29
|
-
type: Number,
|
|
30
|
-
default: 0,
|
|
31
|
-
},
|
|
23
|
+
const props = withDefaults(defineProps<VcNotificationProps>(), {
|
|
24
|
+
timeout: 0,
|
|
32
25
|
});
|
|
33
26
|
|
|
34
27
|
const emit = defineEmits(["dismiss", "expired"]);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentPublicInstance } from "vue";
|
|
2
|
+
import { VcPaginationProps } from "./vc-pagination-model";
|
|
3
|
+
import { ComponentConstructor } from "./../../../types/ts-helpers"
|
|
4
|
+
import Pagination from "./vc-pagination.vue";
|
|
5
|
+
export const VcPagination: ComponentConstructor<
|
|
6
|
+
ComponentPublicInstance<VcPaginationProps>
|
|
7
|
+
> = Pagination;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { VNode } from "vue";
|
|
2
|
+
|
|
3
|
+
export interface VcPaginationProps {
|
|
4
|
+
expanded?: boolean | undefined;
|
|
5
|
+
pages?: number | undefined;
|
|
6
|
+
currentPage?: number | undefined;
|
|
7
|
+
onItemClick?: (pages: number) => void;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface VcPaginationSlots {
|
|
11
|
+
default: () => VNode[];
|
|
12
|
+
}
|
|
@@ -92,23 +92,13 @@
|
|
|
92
92
|
</template>
|
|
93
93
|
|
|
94
94
|
<script lang="ts" setup>
|
|
95
|
-
import { VcIcon } from "
|
|
95
|
+
import { VcIcon } from "./../../../components";
|
|
96
|
+
import { VcPaginationProps } from "./vc-pagination-model";
|
|
96
97
|
|
|
97
|
-
defineProps({
|
|
98
|
-
expanded:
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
},
|
|
102
|
-
|
|
103
|
-
pages: {
|
|
104
|
-
type: Number,
|
|
105
|
-
default: 1,
|
|
106
|
-
},
|
|
107
|
-
|
|
108
|
-
currentPage: {
|
|
109
|
-
type: Number,
|
|
110
|
-
default: 1,
|
|
111
|
-
},
|
|
98
|
+
withDefaults(defineProps<VcPaginationProps>(), {
|
|
99
|
+
expanded: false,
|
|
100
|
+
pages: 1,
|
|
101
|
+
currentPage: 1,
|
|
112
102
|
});
|
|
113
103
|
|
|
114
104
|
defineEmits(["itemClick"]);
|
|
@@ -119,7 +109,7 @@ defineEmits(["itemClick"]);
|
|
|
119
109
|
--pagination-item-width: 30px;
|
|
120
110
|
--pagination-item-height: 30px;
|
|
121
111
|
--pagination-item-color: #000000;
|
|
122
|
-
--pagination-item-color-hover:
|
|
112
|
+
--pagination-item-color-hover: #000000;
|
|
123
113
|
--pagination-item-color-current: #ffffff;
|
|
124
114
|
--pagination-item-color-disabled: #9c9c9c;
|
|
125
115
|
--pagination-item-background-color: #ffffff;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentPublicInstance } from "vue";
|
|
2
|
+
import { VcRatingProps } from "./vc-rating-model";
|
|
3
|
+
import { ComponentConstructor } from "./../../../types/ts-helpers"
|
|
4
|
+
import Rating from "./vc-rating.vue";
|
|
5
|
+
export const VcRating: ComponentConstructor<
|
|
6
|
+
ComponentPublicInstance<VcRatingProps>
|
|
7
|
+
> = Rating;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { VNode } from "vue";
|
|
2
|
+
|
|
3
|
+
export interface VcRatingProps {
|
|
4
|
+
label?: string;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
tooltip?: string;
|
|
7
|
+
rating: number | undefined;
|
|
8
|
+
max?: number;
|
|
9
|
+
variant?: "stars" | "star-and-text" | "text";
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface VcRatingSlots {
|
|
13
|
+
details: () => VNode[];
|
|
14
|
+
}
|
|
@@ -41,18 +41,10 @@
|
|
|
41
41
|
</template>
|
|
42
42
|
|
|
43
43
|
<script lang="ts" setup>
|
|
44
|
-
import { VcIcon, VcLabel } from "
|
|
44
|
+
import { VcIcon, VcLabel } from "./../../../components";
|
|
45
|
+
import { VcRatingProps } from "./vc-rating-model";
|
|
45
46
|
|
|
46
|
-
|
|
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" });
|
|
47
|
+
withDefaults(defineProps<VcRatingProps>(), { max: 5, variant: "stars" });
|
|
56
48
|
</script>
|
|
57
49
|
|
|
58
50
|
<style lang="scss">
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentPublicInstance } from "vue";
|
|
2
2
|
import { VcSelectProps } from "./vc-select-model";
|
|
3
|
-
import { ComponentConstructor } from "
|
|
3
|
+
import { ComponentConstructor } from "./../../../types/ts-helpers"
|
|
4
4
|
import Select from "./vc-select.vue";
|
|
5
5
|
|
|
6
6
|
export const VcSelect: ComponentConstructor<
|
|
@@ -232,8 +232,8 @@
|
|
|
232
232
|
|
|
233
233
|
<script lang="ts" setup>
|
|
234
234
|
import { nextTick, ref, computed, watch, toRefs } from "vue";
|
|
235
|
-
import { VcIcon, VcLabel, VcContainer } from "
|
|
236
|
-
import { clickOutside as vClickOutside } from "
|
|
235
|
+
import { VcIcon, VcLabel, VcContainer } from "./../../../components";
|
|
236
|
+
import { clickOutside as vClickOutside } from "./../../../../core/directives";
|
|
237
237
|
import { createPopper, Instance, State } from "@popperjs/core";
|
|
238
238
|
import { VcSelectProps, OptionProp } from "./vc-select-model";
|
|
239
239
|
import { intersection, isEqual } from "lodash-es";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentPublicInstance } from "vue";
|
|
2
|
+
import { VcSliderProps } from "./vc-slider-model";
|
|
3
|
+
import { ComponentConstructor } from "./../../../types/ts-helpers"
|
|
4
|
+
import Slider from "./vc-slider.vue";
|
|
5
|
+
export const VcSlider: ComponentConstructor<
|
|
6
|
+
ComponentPublicInstance<VcSliderProps>
|
|
7
|
+
> = Slider;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {VNode} from "vue";
|
|
2
|
+
|
|
3
|
+
export interface VcSliderProps {
|
|
4
|
+
slides?: Record<string, unknown>[] | any[]
|
|
5
|
+
navigation?: boolean | undefined
|
|
6
|
+
overflow?: boolean | undefined
|
|
7
|
+
slidesPerView?: string | 'auto' | undefined
|
|
8
|
+
spaceBetweenSlides?: number | undefined
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface VcSliderSlots {
|
|
12
|
+
default: (args: {slide: Record<string, unknown> | any}) => VNode[]
|
|
13
|
+
prevBtn: () => VNode[]
|
|
14
|
+
nextBtn: () => VNode[]
|
|
15
|
+
}
|
|
@@ -48,33 +48,15 @@ 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 "./vc-slider-model";
|
|
51
52
|
SwiperCore.use([Navigation]);
|
|
52
53
|
|
|
53
|
-
defineProps({
|
|
54
|
-
slides:
|
|
55
|
-
|
|
56
|
-
|
|
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
|
-
},
|
|
54
|
+
withDefaults(defineProps<VcSliderProps>(), {
|
|
55
|
+
slides: () => [],
|
|
56
|
+
navigation: false,
|
|
57
|
+
overflow: false,
|
|
58
|
+
slidesPerView: "auto",
|
|
59
|
+
spaceBetweenSlides: 10,
|
|
78
60
|
});
|
|
79
61
|
|
|
80
62
|
const buttonsList = computed(() => ({
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentPublicInstance } from "vue";
|
|
2
|
+
import { VcTextareaProps } from "./vc-textarea-model";
|
|
3
|
+
import { ComponentConstructor } from "./../../../types/ts-helpers"
|
|
4
|
+
import Textarea from "./vc-textarea.vue";
|
|
5
|
+
export const VcTextarea: ComponentConstructor<
|
|
6
|
+
ComponentPublicInstance<VcTextareaProps>
|
|
7
|
+
> = Textarea;
|