@vc-shell/framework 1.0.290 → 1.0.292
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/CHANGELOG.md +13 -0
- package/core/composables/index.ts +1 -0
- package/core/composables/useTheme/index.ts +60 -0
- package/core/directives/loading/styles.css +6 -1
- package/dist/core/composables/index.d.ts +1 -0
- package/dist/core/composables/index.d.ts.map +1 -1
- package/dist/core/composables/useTheme/index.d.ts +11 -0
- package/dist/core/composables/useTheme/index.d.ts.map +1 -0
- package/dist/framework.js +30150 -29360
- package/dist/index.css +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/locales/en.json +6 -0
- package/dist/shared/components/app-bar-button/app-bar-button.vue.d.ts +56 -0
- package/dist/shared/components/app-bar-button/app-bar-button.vue.d.ts.map +1 -0
- package/dist/shared/components/app-bar-button/index.d.ts +2 -0
- package/dist/shared/components/app-bar-button/index.d.ts.map +1 -0
- package/dist/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue.d.ts +5 -5
- package/dist/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue.d.ts.map +1 -1
- package/dist/shared/components/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue.d.ts +1 -1
- package/dist/shared/components/blade-navigation/components/vc-blade-view/vc-blade-view.d.ts +4 -4
- package/dist/shared/components/blade-navigation/components/vc-blade-view/vc-blade-view.d.ts.map +1 -1
- package/dist/shared/components/blade-navigation/composables/useBladeNavigation/index.d.ts.map +1 -1
- package/dist/shared/components/change-password/change-password.vue.d.ts +3 -3
- package/dist/shared/components/change-password/index.d.ts +4 -4
- package/dist/shared/components/change-password/index.d.ts.map +1 -1
- package/dist/shared/components/common/popup/vc-popup-error.vue.d.ts +3 -3
- package/dist/shared/components/common/popup/vc-popup-warning.vue.d.ts +3 -3
- package/dist/shared/components/error-interceptor/index.d.ts +17 -17
- package/dist/shared/components/error-interceptor/interceptor.d.ts +7 -7
- package/dist/shared/components/index.d.ts +3 -0
- package/dist/shared/components/index.d.ts.map +1 -1
- package/dist/shared/components/language-selector/index.d.ts +1 -1
- package/dist/shared/components/language-selector/index.d.ts.map +1 -1
- package/dist/shared/components/language-selector/language-selector.vue.d.ts +1 -1
- package/dist/shared/components/language-selector/language-selector.vue.d.ts.map +1 -1
- package/dist/shared/components/notification-dropdown/_internal/notification/notification.vue.d.ts +3 -3
- package/dist/shared/components/notification-dropdown/index.d.ts +1 -1
- package/dist/shared/components/notification-dropdown/index.d.ts.map +1 -1
- package/dist/shared/components/notification-dropdown/notification-dropdown.vue.d.ts +1 -1
- package/dist/shared/components/notification-dropdown/notification-dropdown.vue.d.ts.map +1 -1
- package/dist/shared/components/notification-template/index.d.ts +5 -5
- package/dist/shared/components/notification-template/notification-template.vue.d.ts +1 -1
- package/dist/shared/components/notification-template/notification-template.vue.d.ts.map +1 -1
- package/dist/shared/components/notifications/components/notification-container/index.d.ts +6 -6
- package/dist/shared/components/notifications/components/notification-container/index.d.ts.map +1 -1
- package/dist/shared/components/popup-handler/components/vc-popup-container/index.d.ts +1 -1
- package/dist/shared/components/popup-handler/components/vc-popup-container/index.d.ts.map +1 -1
- package/dist/shared/components/popup-handler/components/vc-popup-container/vc-popup-container.vue.d.ts +1 -1
- package/dist/shared/components/sidebar/index.d.ts +2 -0
- package/dist/shared/components/sidebar/index.d.ts.map +1 -0
- package/dist/shared/components/sidebar/sidebar.vue.d.ts +49 -0
- package/dist/shared/components/sidebar/sidebar.vue.d.ts.map +1 -0
- package/dist/shared/components/theme-selector/index.d.ts +2 -0
- package/dist/shared/components/theme-selector/index.d.ts.map +1 -0
- package/dist/shared/components/theme-selector/theme-selector.vue.d.ts +3 -0
- package/dist/shared/components/theme-selector/theme-selector.vue.d.ts.map +1 -0
- package/dist/shared/components/user-dropdown-button/index.d.ts +4 -4
- package/dist/shared/components/user-dropdown-button/index.d.ts.map +1 -1
- package/dist/shared/components/user-dropdown-button/user-dropdown-button.vue.d.ts +4 -4
- package/dist/shared/components/user-dropdown-button/user-dropdown-button.vue.d.ts.map +1 -1
- package/dist/shared/modules/assets/components/assets-details/assets-details.vue.d.ts +5 -5
- package/dist/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts +6 -6
- package/dist/shared/modules/assets-manager/components/assets-manager/index.d.ts +8 -8
- package/dist/shared/modules/assets-manager/components/assets-manager/index.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/SchemaRender.d.ts +143 -172
- package/dist/shared/modules/dynamic/components/SchemaRender.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/ValidationField.d.ts +4 -4
- package/dist/shared/modules/dynamic/components/fields/storybook/Button.stories.d.ts +6 -6
- package/dist/shared/modules/dynamic/components/fields/storybook/Card.stories.d.ts +6 -6
- package/dist/shared/modules/dynamic/components/fields/storybook/Checkbox.stories.d.ts +6 -6
- package/dist/shared/modules/dynamic/components/fields/storybook/ContentField.stories.d.ts +6 -6
- package/dist/shared/modules/dynamic/components/fields/storybook/EditorField.stories.d.ts +6 -6
- package/dist/shared/modules/dynamic/components/fields/storybook/Fieldset.stories.d.ts +6 -6
- package/dist/shared/modules/dynamic/components/fields/storybook/GalleryField.stories.d.ts +6 -6
- package/dist/shared/modules/dynamic/components/fields/storybook/ImageField.stories.d.ts +6 -6
- package/dist/shared/modules/dynamic/components/fields/storybook/InputCurrency.stories.d.ts +6 -6
- package/dist/shared/modules/dynamic/components/fields/storybook/InputField.stories.d.ts +6 -6
- package/dist/shared/modules/dynamic/components/fields/storybook/MultivalueField.stories.d.ts +6 -6
- package/dist/shared/modules/dynamic/components/fields/storybook/RadioButtonGroup.stories.d.ts +6 -6
- package/dist/shared/modules/dynamic/components/fields/storybook/RatingField.stories.d.ts +6 -6
- package/dist/shared/modules/dynamic/components/fields/storybook/SelectField.stories.d.ts +6 -6
- package/dist/shared/modules/dynamic/components/fields/storybook/StatusField.stories.d.ts +6 -6
- package/dist/shared/modules/dynamic/components/fields/storybook/TextareaField.stories.d.ts +6 -6
- package/dist/shared/modules/dynamic/components/fields/storybook/VideoField.stories.d.ts +6 -6
- package/dist/shared/modules/dynamic/components/fields/storybook/pages/DynamicRender.d.ts +6 -6
- package/dist/shared/modules/dynamic/composables/useDynamicViewsUtils/index.d.ts +1 -1
- package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts +61 -9
- package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts +31 -12
- package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/types/index.d.ts +3 -0
- package/dist/shared/modules/dynamic/types/index.d.ts.map +1 -1
- package/dist/shared/pages/ChangePasswordPage/components/change-password/ChangePassword.vue.d.ts +16 -3
- package/dist/shared/pages/ChangePasswordPage/components/change-password/ChangePassword.vue.d.ts.map +1 -1
- package/dist/shared/pages/ChangePasswordPage/components/change-password/index.d.ts +9 -9
- package/dist/shared/pages/ChangePasswordPage/components/change-password/index.d.ts.map +1 -1
- package/dist/shared/pages/InvitePage/components/invite/Invite.vue.d.ts +24 -3
- package/dist/shared/pages/InvitePage/components/invite/Invite.vue.d.ts.map +1 -1
- package/dist/shared/pages/InvitePage/components/invite/index.d.ts +26 -3
- package/dist/shared/pages/InvitePage/components/invite/index.d.ts.map +1 -1
- package/dist/shared/pages/LoginPage/components/login/Login.vue.d.ts +1 -1
- package/dist/shared/pages/LoginPage/components/login/index.d.ts +3 -3
- package/dist/shared/pages/LoginPage/components/login/index.d.ts.map +1 -1
- package/dist/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue.d.ts +24 -3
- package/dist/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue.d.ts.map +1 -1
- package/dist/shared/pages/ResetPasswordPage/components/reset-password/index.d.ts +26 -3
- package/dist/shared/pages/ResetPasswordPage/components/reset-password/index.d.ts.map +1 -1
- package/dist/tailwind.config.d.ts +43 -15
- package/dist/tailwind.config.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/atoms/vc-badge/vc-badge.stories.d.ts +55 -55
- package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts +5 -5
- package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-button/vc-button.stories.d.ts +143 -143
- package/dist/ui/components/atoms/vc-button/vc-button.vue.d.ts +5 -5
- package/dist/ui/components/atoms/vc-card/index.d.ts +11 -11
- package/dist/ui/components/atoms/vc-card/vc-card.stories.d.ts +89 -89
- package/dist/ui/components/atoms/vc-card/vc-card.vue.d.ts +5 -5
- package/dist/ui/components/atoms/vc-col/vc-col.stories.d.ts +7 -7
- package/dist/ui/components/atoms/vc-col/vc-col.vue.d.ts +4 -4
- package/dist/ui/components/atoms/vc-container/index.d.ts +15 -15
- package/dist/ui/components/atoms/vc-container/vc-container.vue.d.ts +5 -5
- package/dist/ui/components/atoms/vc-hint/index.d.ts +3 -3
- package/dist/ui/components/atoms/vc-hint/vc-hint.stories.d.ts +3 -3
- package/dist/ui/components/atoms/vc-hint/vc-hint.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-icon.stories.d.ts +4 -4
- package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts +4 -4
- package/dist/ui/components/atoms/vc-image/index.d.ts +5 -5
- package/dist/ui/components/atoms/vc-image/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-image/vc-image.stories.d.ts +5 -5
- package/dist/ui/components/atoms/vc-image/vc-image.vue.d.ts +5 -5
- package/dist/ui/components/atoms/vc-label/vc-label.stories.d.ts +7 -7
- package/dist/ui/components/atoms/vc-label/vc-label.vue.d.ts +4 -4
- package/dist/ui/components/atoms/vc-link/index.d.ts +10 -10
- package/dist/ui/components/atoms/vc-link/vc-link.stories.d.ts +10 -10
- package/dist/ui/components/atoms/vc-link/vc-link.vue.d.ts +3 -3
- package/dist/ui/components/atoms/vc-link/vc-link.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-loading/index.d.ts +3 -3
- package/dist/ui/components/atoms/vc-loading/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-loading/vc-loading.stories.d.ts +3 -3
- package/dist/ui/components/atoms/vc-loading/vc-loading.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-progress/index.d.ts +7 -7
- package/dist/ui/components/atoms/vc-progress/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-progress/vc-progress.stories.d.ts +7 -7
- package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts +4 -4
- package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-row/vc-row.stories.d.ts +3 -3
- package/dist/ui/components/atoms/vc-row/vc-row.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-status/vc-status.stories.d.ts +7 -7
- package/dist/ui/components/atoms/vc-status/vc-status.vue.d.ts +4 -4
- package/dist/ui/components/atoms/vc-status/vc-status.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-status-icon/vc-status-icon.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-switch/vc-switch.stories.d.ts +5 -5
- package/dist/ui/components/atoms/vc-switch/vc-switch.vue.d.ts +5 -5
- package/dist/ui/components/atoms/vc-tooltip/vc-tooltip.vue.d.ts +4 -4
- package/dist/ui/components/atoms/vc-tooltip/vc-tooltip.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-video/vc-video.stories.d.ts +4 -4
- package/dist/ui/components/atoms/vc-video/vc-video.vue.d.ts +3 -3
- package/dist/ui/components/atoms/vc-video/vc-video.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-widget/index.d.ts +4 -4
- package/dist/ui/components/atoms/vc-widget/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-widget/vc-widget.stories.d.ts +4 -4
- package/dist/ui/components/atoms/vc-widget/vc-widget.vue.d.ts +3 -3
- package/dist/ui/components/molecules/vc-breadcrumbs/_internal/vc-breadcrumbs-item/vc-breadcrumbs-item.vue.d.ts +3 -3
- package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.stories.d.ts +4 -4
- package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue.d.ts +4 -4
- package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-checkbox/index.d.ts +11 -11
- package/dist/ui/components/molecules/vc-checkbox/vc-checkbox.stories.d.ts +110 -110
- package/dist/ui/components/molecules/vc-checkbox/vc-checkbox.vue.d.ts +5 -5
- package/dist/ui/components/molecules/vc-checkbox/vc-checkbox.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-editor/vc-editor.stories.d.ts +405 -18
- package/dist/ui/components/molecules/vc-editor/vc-editor.stories.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-field/_internal/vc-field-type/vc-field-type.vue.d.ts +3 -3
- package/dist/ui/components/molecules/vc-field/_internal/vc-field-type/vc-field-type.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-field/vc-field.stories.d.ts +4 -4
- package/dist/ui/components/molecules/vc-field/vc-field.vue.d.ts +4 -4
- package/dist/ui/components/molecules/vc-field/vc-field.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.stories.d.ts +11 -11
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts +5 -5
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-form/index.d.ts +3 -3
- package/dist/ui/components/molecules/vc-form/vc-form.stories.d.ts +3 -3
- package/dist/ui/components/molecules/vc-form/vc-form.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-input/vc-input.stories.d.ts +23 -23
- package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts +5 -5
- package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.stories.d.ts +23 -23
- package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts +5 -5
- package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.stories.d.ts +84 -84
- package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts +12 -12
- package/dist/ui/components/molecules/vc-notification/vc-notification.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-pagination/index.d.ts +5 -5
- package/dist/ui/components/molecules/vc-pagination/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-pagination/vc-pagination.stories.d.ts +10 -10
- package/dist/ui/components/molecules/vc-pagination/vc-pagination.stories.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts +5 -5
- package/dist/ui/components/molecules/vc-radio-button/vc-radio-button.stories.d.ts +92 -92
- package/dist/ui/components/molecules/vc-radio-button/vc-radio-button.vue.d.ts +5 -5
- package/dist/ui/components/molecules/vc-rating/vc-rating.stories.d.ts +92 -92
- package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts +4 -4
- package/dist/ui/components/molecules/vc-select/vc-select.stories.d.ts +150 -150
- package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts +15 -15
- package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-slider/index.d.ts +7 -7
- package/dist/ui/components/molecules/vc-slider/vc-slider.stories.d.ts +7 -7
- package/dist/ui/components/molecules/vc-slider/vc-slider.vue.d.ts +4 -4
- package/dist/ui/components/molecules/vc-slider/vc-slider.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-textarea/vc-textarea.stories.d.ts +77 -77
- package/dist/ui/components/molecules/vc-textarea/vc-textarea.vue.d.ts +5 -5
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue.d.ts +3 -3
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue.d.ts +5 -5
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue.d.ts +5 -5
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/vc-app-menu.vue.d.ts +7 -7
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/vc-app-menu.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/vc-app.stories.d.ts +27 -25
- package/dist/ui/components/organisms/vc-app/vc-app.stories.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts +23 -21
- package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-header/vc-blade-header.vue.d.ts +4 -4
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-header/vc-blade-header.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue.d.ts +5 -5
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/vc-blade-toolbar.vue.d.ts +4 -4
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/vc-blade-toolbar.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/vc-blade.stories.d.ts +11 -11
- package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts +5 -5
- package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts +3 -3
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts +6 -6
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts +5 -5
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.stories.d.ts +7 -7
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts +7 -7
- package/dist/ui/components/organisms/vc-login-form/vc-login-form.vue.d.ts +4 -4
- package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts +6 -6
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-add-new/vc-table-add-new.vue.d.ts +3 -3
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-add-new/vc-table-add-new.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-base-header/vc-table-base-header.vue.d.ts +4 -3
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-base-header/vc-table-base-header.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue.d.ts +3 -3
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue.d.ts +3 -3
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts +4 -4
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-empty/vc-table-empty.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-empty/vc-table-empty.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue.d.ts +5 -4
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue.d.ts +9 -9
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/vc-table.stories.d.ts +180 -165
- package/dist/ui/components/organisms/vc-table/vc-table.stories.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts +36 -33
- package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts.map +1 -1
- package/package.json +4 -4
- package/shared/components/app-bar-button/app-bar-button.vue +169 -0
- package/shared/components/app-bar-button/index.ts +1 -0
- package/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue +138 -38
- package/shared/components/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue +10 -1
- package/shared/components/blade-navigation/composables/useBladeNavigation/index.ts +55 -30
- package/shared/components/change-password/change-password.vue +7 -1
- package/shared/components/common/popup/vc-popup-error.vue +1 -1
- package/shared/components/common/popup/vc-popup-warning.vue +1 -1
- package/shared/components/index.ts +3 -0
- package/shared/components/language-selector/language-selector.vue +55 -39
- package/shared/components/notification-dropdown/_internal/notification/notification.vue +7 -1
- package/shared/components/notification-dropdown/notification-dropdown.vue +96 -83
- package/shared/components/notification-template/notification-template.vue +66 -22
- package/shared/components/notifications/styles/index.scss +1 -0
- package/shared/components/sidebar/index.ts +1 -0
- package/shared/components/sidebar/sidebar.vue +96 -0
- package/shared/components/theme-selector/index.ts +1 -0
- package/shared/components/theme-selector/theme-selector.vue +95 -0
- package/shared/components/user-dropdown-button/user-dropdown-button.vue +139 -86
- package/shared/modules/assets/components/assets-details/assets-details.vue +9 -2
- package/shared/modules/assets-manager/components/assets-manager/assets-manager.vue +16 -6
- package/shared/modules/dynamic/composables/useFilterBuilder/index.ts +1 -1
- package/shared/modules/dynamic/helpers/nodeBuilder.ts +1 -1
- package/shared/modules/dynamic/pages/dynamic-blade-form.vue +6 -2
- package/shared/modules/dynamic/pages/dynamic-blade-list.vue +16 -2
- package/shared/modules/dynamic/types/index.ts +3 -0
- package/shared/pages/ChangePasswordPage/components/change-password/ChangePassword.vue +14 -9
- package/shared/pages/InvitePage/components/invite/Invite.vue +59 -15
- package/shared/pages/LoginPage/components/login/Login.vue +78 -22
- package/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue +67 -15
- package/tailwind.config.ts +283 -15
- package/ui/components/atoms/vc-badge/vc-badge.vue +38 -23
- package/ui/components/atoms/vc-button/vc-button.vue +37 -34
- package/ui/components/atoms/vc-card/vc-card.vue +17 -11
- package/ui/components/atoms/vc-col/vc-col.vue +4 -6
- package/ui/components/atoms/vc-container/vc-container.vue +26 -8
- package/ui/components/atoms/vc-hint/vc-hint.vue +8 -2
- package/ui/components/atoms/vc-icon/vc-icon.vue +3 -3
- package/ui/components/atoms/vc-image/vc-image.vue +33 -9
- package/ui/components/atoms/vc-label/vc-label.vue +38 -9
- package/ui/components/atoms/vc-link/vc-link.vue +15 -8
- package/ui/components/atoms/vc-loading/vc-loading.vue +37 -8
- package/ui/components/atoms/vc-progress/vc-progress.vue +29 -21
- package/ui/components/atoms/vc-row/vc-row.vue +4 -2
- package/ui/components/atoms/vc-status/vc-status.vue +29 -20
- package/ui/components/atoms/vc-status-icon/vc-status-icon.vue +20 -3
- package/ui/components/atoms/vc-switch/vc-switch.vue +41 -17
- package/ui/components/atoms/vc-tooltip/vc-tooltip.vue +35 -9
- package/ui/components/atoms/vc-video/vc-video.vue +28 -6
- package/ui/components/atoms/vc-widget/vc-widget.vue +59 -28
- package/ui/components/molecules/vc-breadcrumbs/_internal/vc-breadcrumbs-item/vc-breadcrumbs-item.vue +29 -27
- package/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue +34 -11
- package/ui/components/molecules/vc-checkbox/vc-checkbox.vue +43 -21
- package/ui/components/molecules/vc-editor/vc-editor.vue +70 -32
- package/ui/components/molecules/vc-field/_internal/vc-field-type/vc-field-type.vue +32 -16
- package/ui/components/molecules/vc-field/vc-field.vue +36 -13
- package/ui/components/molecules/vc-file-upload/vc-file-upload.vue +75 -25
- package/ui/components/molecules/vc-input/vc-input.vue +279 -218
- package/ui/components/molecules/vc-input-currency/vc-input-currency.vue +24 -2
- package/ui/components/molecules/vc-multivalue/vc-multivalue.vue +102 -64
- package/ui/components/molecules/vc-notification/vc-notification.vue +40 -15
- package/ui/components/molecules/vc-pagination/vc-pagination.vue +19 -15
- package/ui/components/molecules/vc-radio-button/vc-radio-button.vue +18 -23
- package/ui/components/molecules/vc-rating/vc-rating.vue +9 -5
- package/ui/components/molecules/vc-select/vc-select.vue +211 -65
- package/ui/components/molecules/vc-slider/vc-slider.vue +32 -13
- package/ui/components/molecules/vc-textarea/vc-textarea.vue +17 -12
- package/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue +68 -14
- package/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue +112 -122
- package/ui/components/organisms/vc-app/_internal/vc-app-menu/vc-app-menu.vue +213 -96
- package/ui/components/organisms/vc-app/vc-app.vue +41 -15
- package/ui/components/organisms/vc-blade/_internal/vc-blade-header/vc-blade-header.vue +78 -30
- package/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue +81 -59
- package/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/vc-blade-toolbar.vue +27 -13
- package/ui/components/organisms/vc-blade/vc-blade.vue +177 -46
- package/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue +40 -11
- package/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue +52 -18
- package/ui/components/organisms/vc-gallery/vc-gallery.vue +38 -6
- package/ui/components/organisms/vc-login-form/vc-login-form.vue +40 -14
- package/ui/components/organisms/vc-popup/vc-popup.vue +186 -44
- package/ui/components/organisms/vc-table/_internal/vc-table-add-new/vc-table-add-new.vue +25 -6
- package/ui/components/organisms/vc-table/_internal/vc-table-base-header/vc-table-base-header.vue +48 -12
- package/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue +130 -60
- package/ui/components/organisms/vc-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue +55 -7
- package/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue +17 -5
- package/ui/components/organisms/vc-table/_internal/vc-table-empty/vc-table-empty.vue +38 -6
- package/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue +111 -62
- package/ui/components/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue +139 -46
- package/ui/components/organisms/vc-table/vc-table.vue +370 -128
|
@@ -2,47 +2,51 @@
|
|
|
2
2
|
<div
|
|
3
3
|
v-if="items && items.length"
|
|
4
4
|
ref="el"
|
|
5
|
-
class="
|
|
5
|
+
class="vc-breadcrumbs"
|
|
6
6
|
>
|
|
7
7
|
<VcBreadcrumbsItem
|
|
8
8
|
v-if="items.length"
|
|
9
9
|
:id="items[0]?.id"
|
|
10
|
+
class="vc-breadcrumbs__item"
|
|
10
11
|
:title="items[0]?.title"
|
|
11
12
|
:current="items.length === 1"
|
|
12
13
|
:variant="variant"
|
|
13
14
|
@click="items[0]?.clickHandler && items[0]?.clickHandler(items[0]?.id)"
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
/>
|
|
16
|
+
|
|
16
17
|
<VcIcon
|
|
17
18
|
v-if="withArrow && canExpand"
|
|
19
|
+
class="vc-breadcrumbs__chevron-icon"
|
|
18
20
|
:icon="arrowIcon"
|
|
19
21
|
:size="arrowSize"
|
|
20
|
-
class="tw-text-[color:var(--chevron-color)]"
|
|
21
22
|
/>
|
|
23
|
+
|
|
22
24
|
<VcBreadcrumbsItem
|
|
23
25
|
v-if="canExpand"
|
|
24
26
|
id="Expand"
|
|
27
|
+
class="vc-breadcrumbs__expand-button"
|
|
25
28
|
:current="false"
|
|
26
29
|
title="..."
|
|
27
30
|
:variant="variant"
|
|
28
31
|
@click="expand"
|
|
29
|
-
|
|
30
|
-
|
|
32
|
+
/>
|
|
33
|
+
|
|
31
34
|
<template
|
|
32
35
|
v-for="(item, i) in visibleBreadcrumbs"
|
|
33
36
|
:key="item?.id ?? `breadcrumb-item-${i}`"
|
|
34
37
|
>
|
|
35
38
|
<div
|
|
36
39
|
v-if="item && item.title && item.isVisible"
|
|
37
|
-
class="
|
|
40
|
+
class="vc-breadcrumbs__item-wrapper"
|
|
38
41
|
>
|
|
39
42
|
<VcIcon
|
|
40
43
|
v-if="withArrow && i < items.length - 1"
|
|
44
|
+
class="vc-breadcrumbs__item-chevron"
|
|
41
45
|
:icon="arrowIcon"
|
|
42
46
|
:size="arrowSize"
|
|
43
|
-
class="tw-text-[color:var(--chevron-color)] tw-mr-[10px]"
|
|
44
47
|
/>
|
|
45
48
|
<VcBreadcrumbsItem
|
|
49
|
+
class="vc-breadcrumbs__item"
|
|
46
50
|
v-bind="item"
|
|
47
51
|
:current="i === items.length - 1"
|
|
48
52
|
:variant="variant"
|
|
@@ -79,11 +83,10 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
79
83
|
arrowSize: "xs",
|
|
80
84
|
});
|
|
81
85
|
|
|
82
|
-
const el = ref(null);
|
|
86
|
+
const el = ref<HTMLElement | null>(null);
|
|
83
87
|
const visibleBreadcrumbs = ref([]) as Ref<InternalBreadcrumbs[]>;
|
|
84
88
|
|
|
85
89
|
const { width } = useElementBounding(el);
|
|
86
|
-
|
|
87
90
|
const { items } = toRefs(props);
|
|
88
91
|
|
|
89
92
|
const canExpand = computed(
|
|
@@ -145,6 +148,26 @@ function expand() {
|
|
|
145
148
|
|
|
146
149
|
<style lang="scss">
|
|
147
150
|
:root {
|
|
148
|
-
--chevron-color:
|
|
151
|
+
--chevron-color: var(--secondary-500);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.vc-breadcrumbs {
|
|
155
|
+
@apply tw-flex tw-items-center tw-flex-wrap tw-gap-2.5;
|
|
156
|
+
|
|
157
|
+
&__chevron-icon {
|
|
158
|
+
@apply tw-text-[color:var(--chevron-color)];
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
&__expand-button {
|
|
162
|
+
@apply tw-text-[color:var(--chevron-color)] tw-cursor-pointer hover:tw-text-[color:var(--chevron-color)];
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
&__item-wrapper {
|
|
166
|
+
@apply tw-flex tw-flex-row tw-items-center tw-justify-center;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
&__item-chevron {
|
|
170
|
+
@apply tw-text-[color:var(--chevron-color)] tw-mr-2.5;
|
|
171
|
+
}
|
|
149
172
|
}
|
|
150
173
|
</style>
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<!-- Input label -->
|
|
12
12
|
<VcLabel
|
|
13
13
|
v-if="label"
|
|
14
|
-
class="
|
|
14
|
+
class="vc-checkbox__label"
|
|
15
15
|
:required="required"
|
|
16
16
|
>
|
|
17
17
|
<span>{{ label }}</span>
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
>{{ tooltip }}</template
|
|
22
22
|
>
|
|
23
23
|
</VcLabel>
|
|
24
|
-
<label class="
|
|
24
|
+
<label class="vc-checkbox__container">
|
|
25
25
|
<input
|
|
26
26
|
v-model="value"
|
|
27
27
|
type="checkbox"
|
|
@@ -30,18 +30,18 @@
|
|
|
30
30
|
:true-value="trueValue"
|
|
31
31
|
:false-value="falseValue"
|
|
32
32
|
:class="{
|
|
33
|
-
'vc-
|
|
33
|
+
'vc-checkbox__input--error': errorMessage,
|
|
34
34
|
}"
|
|
35
35
|
/>
|
|
36
36
|
<span
|
|
37
37
|
v-if="$slots['default']"
|
|
38
|
-
class="
|
|
38
|
+
class="vc-checkbox__text"
|
|
39
39
|
>
|
|
40
40
|
<slot></slot>
|
|
41
41
|
</span>
|
|
42
42
|
<span
|
|
43
43
|
v-if="!label && required"
|
|
44
|
-
class="
|
|
44
|
+
class="vc-checkbox__required"
|
|
45
45
|
>*</span
|
|
46
46
|
>
|
|
47
47
|
</label>
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
v-if="errorMessage"
|
|
51
51
|
name="error"
|
|
52
52
|
>
|
|
53
|
-
<VcHint class="vc-checkbox__error
|
|
53
|
+
<VcHint class="vc-checkbox__error">
|
|
54
54
|
{{ errorMessage }}
|
|
55
55
|
</VcHint>
|
|
56
56
|
</slot>
|
|
@@ -61,6 +61,7 @@
|
|
|
61
61
|
import { MaybeRef, computed, unref } from "vue";
|
|
62
62
|
import { VcHint } from "./../../atoms/vc-hint";
|
|
63
63
|
import { VcLabel } from "../../atoms/vc-label";
|
|
64
|
+
|
|
64
65
|
export interface Props {
|
|
65
66
|
modelValue: MaybeRef<boolean>;
|
|
66
67
|
disabled?: boolean;
|
|
@@ -103,19 +104,20 @@ const value = computed({
|
|
|
103
104
|
--checkbox-size-medium: 18px;
|
|
104
105
|
--checkbox-size-large: 24px;
|
|
105
106
|
--checkbox-border-radius: 2px;
|
|
106
|
-
--checkbox-background-color:
|
|
107
|
-
--checkbox-color-error:
|
|
108
|
-
--checkbox-required-color:
|
|
109
|
-
|
|
110
|
-
--checkbox-active:
|
|
111
|
-
--checkbox-active-inner:
|
|
112
|
-
--checkbox-focus:
|
|
113
|
-
--checkbox-
|
|
114
|
-
--checkbox-border
|
|
115
|
-
--checkbox-
|
|
116
|
-
--checkbox-
|
|
117
|
-
--checkbox-disabled
|
|
118
|
-
--checkbox-
|
|
107
|
+
--checkbox-background-color: var(--additional-50);
|
|
108
|
+
--checkbox-color-error: var(--base-error-color, var(--danger-500));
|
|
109
|
+
--checkbox-required-color: var(--danger-500);
|
|
110
|
+
|
|
111
|
+
--checkbox-active: var(--primary-500);
|
|
112
|
+
--checkbox-active-inner: var(--additional-50);
|
|
113
|
+
--checkbox-focus-color: var(--info-400);
|
|
114
|
+
--checkbox-focus: 2px rgb(from var(--checkbox-focus-color) r g b / 30%);
|
|
115
|
+
--checkbox-border: var(--neutrals-300);
|
|
116
|
+
--checkbox-border-hover: var(--primary-500);
|
|
117
|
+
--checkbox-background: var(--additional-50);
|
|
118
|
+
--checkbox-disabled: var(--neutrals-100);
|
|
119
|
+
--checkbox-disabled-inner: var(--base-border-color, var(--neutrals-200));
|
|
120
|
+
--checkbox-error: var(--base-error-color, var(--danger-500));
|
|
119
121
|
}
|
|
120
122
|
|
|
121
123
|
$sizes: small, medium, large;
|
|
@@ -127,8 +129,28 @@ $sizes: small, medium, large;
|
|
|
127
129
|
}
|
|
128
130
|
|
|
129
131
|
.vc-checkbox {
|
|
132
|
+
&__label {
|
|
133
|
+
@apply tw-mb-2;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
&__container {
|
|
137
|
+
@apply tw-inline-flex tw-select-none tw-cursor-pointer tw-text-base tw-items-center;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
&__text {
|
|
141
|
+
@apply tw-ml-2;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
&__required {
|
|
145
|
+
@apply tw-text-[color:var(--checkbox-required-color)] tw-ml-1;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
&__input--error {
|
|
149
|
+
--hint-color: var(--checkbox-error);
|
|
150
|
+
}
|
|
151
|
+
|
|
130
152
|
input[type="checkbox"] {
|
|
131
|
-
border-radius:
|
|
153
|
+
border-radius: var(--checkbox-border-radius);
|
|
132
154
|
appearance: none;
|
|
133
155
|
height: var(--checkbox-size);
|
|
134
156
|
outline: none;
|
|
@@ -140,7 +162,6 @@ $sizes: small, medium, large;
|
|
|
140
162
|
border: 1px solid var(--checkbox-border-color, var(--checkbox-border));
|
|
141
163
|
background: var(--checkbox-bg, var(--checkbox-background));
|
|
142
164
|
width: var(--checkbox-size);
|
|
143
|
-
border-radius: 3px;
|
|
144
165
|
transition:
|
|
145
166
|
background 0.3s,
|
|
146
167
|
border-color 0.3s,
|
|
@@ -216,6 +237,7 @@ $sizes: small, medium, large;
|
|
|
216
237
|
|
|
217
238
|
&__error {
|
|
218
239
|
--hint-color: var(--checkbox-error);
|
|
240
|
+
@apply tw-mt-1;
|
|
219
241
|
}
|
|
220
242
|
}
|
|
221
243
|
</style>
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
3
|
class="vc-editor"
|
|
4
|
-
:class="
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
},
|
|
9
|
-
]"
|
|
4
|
+
:class="{
|
|
5
|
+
'vc-editor--error': errorMessage,
|
|
6
|
+
'vc-editor--disabled': disabled,
|
|
7
|
+
}"
|
|
10
8
|
>
|
|
11
9
|
<!-- Editor label -->
|
|
12
10
|
<VcLabel
|
|
13
11
|
v-if="label"
|
|
14
|
-
class="
|
|
12
|
+
class="vc-editor__label"
|
|
15
13
|
:required="required"
|
|
16
14
|
:multilanguage="multilanguage"
|
|
17
15
|
:current-language="currentLanguage"
|
|
@@ -20,8 +18,9 @@
|
|
|
20
18
|
<template
|
|
21
19
|
v-if="tooltip"
|
|
22
20
|
#tooltip
|
|
23
|
-
>{{ tooltip }}</template
|
|
24
21
|
>
|
|
22
|
+
{{ tooltip }}
|
|
23
|
+
</template>
|
|
25
24
|
</VcLabel>
|
|
26
25
|
|
|
27
26
|
<!-- Editor field -->
|
|
@@ -30,8 +29,10 @@
|
|
|
30
29
|
:key="`${id}-${disabled}`"
|
|
31
30
|
ref="quillRef"
|
|
32
31
|
:content="modelValue"
|
|
33
|
-
class="quill-editor
|
|
34
|
-
:class="{
|
|
32
|
+
class="quill-editor vc-editor__quill-editor"
|
|
33
|
+
:class="{
|
|
34
|
+
'vc-editor__quill-editor--disabled': disabled,
|
|
35
|
+
}"
|
|
35
36
|
theme="snow"
|
|
36
37
|
:toolbar="toolbar"
|
|
37
38
|
:modules="modules"
|
|
@@ -41,11 +42,12 @@
|
|
|
41
42
|
:options="options"
|
|
42
43
|
@ready="initializeQuill"
|
|
43
44
|
/>
|
|
45
|
+
|
|
44
46
|
<slot
|
|
45
47
|
v-if="errorMessage"
|
|
46
48
|
name="error"
|
|
47
49
|
>
|
|
48
|
-
<VcHint class="vc-editor__error
|
|
50
|
+
<VcHint class="vc-editor__error">
|
|
49
51
|
{{ errorMessage }}
|
|
50
52
|
</VcHint>
|
|
51
53
|
</slot>
|
|
@@ -184,36 +186,66 @@ defineExpose({
|
|
|
184
186
|
<style lang="scss">
|
|
185
187
|
:root {
|
|
186
188
|
--editor-border-radius: 3px;
|
|
187
|
-
--editor-border-color:
|
|
188
|
-
--editor-border-color-error:
|
|
189
|
-
--editor-
|
|
189
|
+
--editor-border-color: var(--secondary-200);
|
|
190
|
+
--editor-border-color-error: var(--base-error-color, var(--danger-500));
|
|
191
|
+
--editor-disabled-bg: var(--neutrals-50);
|
|
192
|
+
--editor-disabled-text: var(--neutrals-400);
|
|
193
|
+
--editor-placeholder-color: var(--neutrals-400);
|
|
190
194
|
}
|
|
191
195
|
|
|
192
196
|
.vc-editor {
|
|
193
|
-
&
|
|
194
|
-
@apply tw-
|
|
197
|
+
& {
|
|
198
|
+
@apply tw-flex tw-flex-col;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
&--disabled {
|
|
202
|
+
@apply tw-opacity-50 tw-cursor-not-allowed;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
&__label {
|
|
206
|
+
@apply tw-mb-2;
|
|
195
207
|
}
|
|
196
208
|
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
209
|
+
&__quill-editor {
|
|
210
|
+
@apply tw-border tw-border-solid tw-border-[color:var(--editor-border-color)] tw-rounded-b-[var(--editor-border-radius)] tw-h-[200px];
|
|
211
|
+
transition:
|
|
212
|
+
background 0.3s,
|
|
213
|
+
color 0.3s,
|
|
214
|
+
cursor 0.3s;
|
|
215
|
+
|
|
216
|
+
&--disabled {
|
|
217
|
+
@apply tw-bg-[color:var(--editor-disabled-bg)] tw-text-[color:var(--editor-disabled-text)] tw-cursor-default;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
&.vc-editor--error {
|
|
221
|
+
@apply tw-border-[color:var(--editor-border-color-error)];
|
|
206
222
|
}
|
|
207
223
|
}
|
|
208
224
|
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
225
|
+
&__error {
|
|
226
|
+
@apply tw-text-[color:var(--editor-border-color-error)] tw-mt-1;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.quill-editor .ql-editor {
|
|
231
|
+
&.ql-blank:before {
|
|
232
|
+
color: var(--editor-placeholder-color);
|
|
233
|
+
content: attr(data-placeholder);
|
|
234
|
+
font-style: inherit;
|
|
235
|
+
left: 15px;
|
|
236
|
+
pointer-events: none;
|
|
237
|
+
position: absolute;
|
|
238
|
+
right: 15px;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
213
241
|
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
242
|
+
.quill-editor {
|
|
243
|
+
& .ql-tooltip {
|
|
244
|
+
display: flex;
|
|
245
|
+
flex-flow: wrap;
|
|
246
|
+
|
|
247
|
+
&.ql-hidden {
|
|
248
|
+
display: none !important;
|
|
217
249
|
}
|
|
218
250
|
}
|
|
219
251
|
}
|
|
@@ -222,7 +254,13 @@ defineExpose({
|
|
|
222
254
|
padding-right: 18px;
|
|
223
255
|
content: attr(data-value);
|
|
224
256
|
}
|
|
257
|
+
|
|
225
258
|
.ql-language.ql-picker .ql-picker-item:before {
|
|
226
259
|
content: attr(data-value);
|
|
227
260
|
}
|
|
261
|
+
|
|
262
|
+
.ql-toolbar,
|
|
263
|
+
.quill-editor {
|
|
264
|
+
border-color: var(--editor-border-color) !important;
|
|
265
|
+
}
|
|
228
266
|
</style>
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<!-- Text -->
|
|
3
3
|
<template v-if="type === 'text'">
|
|
4
|
-
<div class="
|
|
5
|
-
<div class="
|
|
6
|
-
<p>{{ value }}</p>
|
|
4
|
+
<div class="vc-field-type">
|
|
5
|
+
<div class="vc-field-type__text-wrap">
|
|
6
|
+
<p class="vc-field-type__text">{{ value }}</p>
|
|
7
7
|
</div>
|
|
8
8
|
</div>
|
|
9
9
|
</template>
|
|
10
10
|
|
|
11
11
|
<!-- Date -->
|
|
12
12
|
<template v-if="type === 'date'">
|
|
13
|
-
<div class="
|
|
14
|
-
<div class="
|
|
15
|
-
<p>{{ value instanceof Date ? value.toLocaleDateString() : value }}</p>
|
|
13
|
+
<div class="vc-field-type">
|
|
14
|
+
<div class="vc-field-type__text-wrap">
|
|
15
|
+
<p class="vc-field-type__text">{{ value instanceof Date ? value.toLocaleDateString() : value }}</p>
|
|
16
16
|
</div>
|
|
17
17
|
</div>
|
|
18
18
|
</template>
|
|
19
19
|
|
|
20
20
|
<!-- Date ago -->
|
|
21
21
|
<template v-if="type === 'date-ago'">
|
|
22
|
-
<div class="
|
|
23
|
-
<div class="
|
|
24
|
-
<p>{{ value instanceof Date ? moment(value).fromNow() ?? "N/A" : value }}</p>
|
|
22
|
+
<div class="vc-field-type">
|
|
23
|
+
<div class="vc-field-type__text-wrap">
|
|
24
|
+
<p class="vc-field-type__text">{{ value instanceof Date ? moment(value).fromNow() ?? "N/A" : value }}</p>
|
|
25
25
|
</div>
|
|
26
26
|
</div>
|
|
27
27
|
</template>
|
|
28
28
|
|
|
29
29
|
<!-- Link -->
|
|
30
30
|
<template v-if="type === 'link'">
|
|
31
|
-
<div class="
|
|
32
|
-
<div class="
|
|
31
|
+
<div class="vc-field-type">
|
|
32
|
+
<div class="vc-field-type__text-wrap">
|
|
33
33
|
<VcLink
|
|
34
|
-
class="vc-
|
|
34
|
+
class="vc-field-type__link"
|
|
35
35
|
@click="onLinkClick"
|
|
36
36
|
>{{ value }}</VcLink
|
|
37
37
|
>
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
|
|
43
43
|
<!-- Email -->
|
|
44
44
|
<template v-if="type === 'email'">
|
|
45
|
-
<div class="
|
|
46
|
-
<div class="
|
|
45
|
+
<div class="vc-field-type">
|
|
46
|
+
<div class="vc-field-type__text-wrap">
|
|
47
47
|
<a
|
|
48
48
|
:href="`mailto:${value}`"
|
|
49
|
-
class="vc-
|
|
49
|
+
class="vc-field-type__link"
|
|
50
50
|
>{{ value }}</a
|
|
51
51
|
>
|
|
52
52
|
</div>
|
|
@@ -77,4 +77,20 @@ function onLinkClick() {
|
|
|
77
77
|
}
|
|
78
78
|
</script>
|
|
79
79
|
|
|
80
|
-
<style lang="scss"
|
|
80
|
+
<style lang="scss">
|
|
81
|
+
.vc-field-type {
|
|
82
|
+
@apply tw-flex tw-flex-row tw-justify-stretch tw-truncate;
|
|
83
|
+
|
|
84
|
+
&__text-wrap {
|
|
85
|
+
@apply tw-text-wrap;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&__text {
|
|
89
|
+
@apply tw-text-sm;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&__link {
|
|
93
|
+
@apply tw-text-sm tw-truncate tw-w-full;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
</style>
|
|
@@ -1,34 +1,37 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
'tw-flex ',
|
|
9
|
-
]"
|
|
3
|
+
class="vc-field"
|
|
4
|
+
:class="{
|
|
5
|
+
'vc-field--vertical': orientation === 'vertical',
|
|
6
|
+
'vc-field--horizontal': orientation === 'horizontal',
|
|
7
|
+
}"
|
|
10
8
|
>
|
|
11
9
|
<VcCol :size="aspectRatio[0]">
|
|
12
10
|
<!-- Field label -->
|
|
13
|
-
<VcLabel
|
|
11
|
+
<VcLabel
|
|
12
|
+
v-if="label"
|
|
13
|
+
class="vc-field__label"
|
|
14
|
+
>
|
|
14
15
|
<span>{{ label }}</span>
|
|
15
16
|
<template
|
|
16
17
|
v-if="tooltip"
|
|
17
18
|
#tooltip
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
>
|
|
20
|
+
{{ tooltip }}
|
|
21
|
+
</template>
|
|
22
|
+
</VcLabel>
|
|
21
23
|
</VcCol>
|
|
22
24
|
<VcCol :size="aspectRatio[1]">
|
|
23
25
|
<VcFieldType
|
|
24
26
|
:value="modelValue"
|
|
25
27
|
:type="type"
|
|
28
|
+
class="vc-field__field-type"
|
|
26
29
|
>
|
|
27
30
|
<VcButton
|
|
28
31
|
v-if="copyable"
|
|
29
32
|
icon="far fa-copy"
|
|
30
33
|
size="m"
|
|
31
|
-
class="
|
|
34
|
+
class="vc-field__copy-button"
|
|
32
35
|
text
|
|
33
36
|
@click="copy(modelValue)"
|
|
34
37
|
></VcButton>
|
|
@@ -84,4 +87,24 @@ function copy(value: string) {
|
|
|
84
87
|
}
|
|
85
88
|
</script>
|
|
86
89
|
|
|
87
|
-
<style lang="scss"
|
|
90
|
+
<style lang="scss">
|
|
91
|
+
.vc-field {
|
|
92
|
+
@apply tw-flex;
|
|
93
|
+
|
|
94
|
+
&--vertical {
|
|
95
|
+
@apply tw-flex-col;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&--horizontal {
|
|
99
|
+
@apply tw-flex-row tw-items-center;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&__label {
|
|
103
|
+
@apply tw-mb-2;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&__copy-button {
|
|
107
|
+
@apply tw-ml-2;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
</style>
|