@vc-shell/framework 1.0.39 → 1.0.41
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/usePermissions/index.ts +1 -1
- package/core/composables/useSettings/index.ts +31 -5
- package/core/types/index.ts +12 -12
- package/dist/core/composables/useSettings/index.d.ts +10 -1
- package/dist/core/composables/useSettings/index.d.ts.map +1 -1
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/framework.js +69 -69
- package/dist/framework.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +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 +5 -0
- package/dist/ui/components/atoms/vc-badge/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-badge/vc-badge-model.d.ts +28 -0
- package/dist/ui/components/atoms/vc-badge/vc-badge-model.d.ts.map +1 -0
- package/dist/{components → ui/components}/atoms/vc-badge/vc-badge.stories.d.ts +0 -0
- package/dist/ui/components/atoms/vc-badge/vc-badge.stories.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-button/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-button/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-button/vc-button-model.d.ts +28 -0
- package/dist/ui/components/atoms/vc-button/vc-button-model.d.ts.map +1 -0
- package/dist/{components → ui/components}/atoms/vc-button/vc-button.stories.d.ts +0 -0
- package/dist/ui/components/atoms/vc-button/vc-button.stories.d.ts.map +1 -0
- package/dist/{components → ui/components}/atoms/vc-checkbox/vc-checkbox.stories.d.ts +0 -0
- package/dist/ui/components/atoms/vc-checkbox/vc-checkbox.stories.d.ts.map +1 -0
- package/dist/{components → ui/components}/atoms/vc-container/vc-container.stories.d.ts +0 -0
- package/dist/ui/components/atoms/vc-container/vc-container.stories.d.ts.map +1 -0
- package/dist/{components → ui/components}/atoms/vc-hint/vc-hint.stories.d.ts +0 -0
- package/dist/ui/components/atoms/vc-hint/vc-hint.stories.d.ts.map +1 -0
- package/dist/{components → ui/components}/atoms/vc-icon/vc-icon.stories.d.ts +0 -0
- package/dist/ui/components/atoms/vc-icon/vc-icon.stories.d.ts.map +1 -0
- package/dist/{components → ui/components}/atoms/vc-image/vc-image.stories.d.ts +0 -0
- package/dist/ui/components/atoms/vc-image/vc-image.stories.d.ts.map +1 -0
- package/dist/{components → ui/components}/atoms/vc-label/vc-label.stories.d.ts +0 -0
- package/dist/ui/components/atoms/vc-label/vc-label.stories.d.ts.map +1 -0
- package/dist/{components → ui/components}/atoms/vc-link/vc-link.stories.d.ts +0 -0
- package/dist/ui/components/atoms/vc-link/vc-link.stories.d.ts.map +1 -0
- package/dist/{components → ui/components}/atoms/vc-progress/vc-progress.stories.d.ts +0 -0
- package/dist/ui/components/atoms/vc-progress/vc-progress.stories.d.ts.map +1 -0
- package/dist/{components → ui/components}/atoms/vc-status/vc-status.stories.d.ts +0 -0
- package/dist/ui/components/atoms/vc-status/vc-status.stories.d.ts.map +1 -0
- package/dist/{components → ui/components}/atoms/vc-switch/vc-switch.stories.d.ts +0 -0
- package/dist/ui/components/atoms/vc-switch/vc-switch.stories.d.ts.map +1 -0
- package/dist/{components → ui/components}/index.d.ts +4 -3
- package/dist/ui/components/index.d.ts.map +1 -0
- package/dist/{components → ui/components}/molecules/vc-breadcrumbs/vc-breadcrumbs.stories.d.ts +0 -0
- package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.stories.d.ts.map +1 -0
- package/dist/{components → ui/components}/molecules/vc-form/vc-form.stories.d.ts +0 -0
- package/dist/ui/components/molecules/vc-form/vc-form.stories.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-input/index.d.ts +5 -0
- package/dist/ui/components/molecules/vc-input/index.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-input/vc-input-model.d.ts +140 -0
- package/dist/ui/components/molecules/vc-input/vc-input-model.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-input-currency/index.d.ts +5 -0
- package/dist/ui/components/molecules/vc-input-currency/index.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-input-currency/vc-input-currency-model.d.ts +124 -0
- package/dist/ui/components/molecules/vc-input-currency/vc-input-currency-model.d.ts.map +1 -0
- package/dist/{components → ui/components}/molecules/vc-pagination/vc-pagination.stories.d.ts +0 -0
- package/dist/ui/components/molecules/vc-pagination/vc-pagination.stories.d.ts.map +1 -0
- package/dist/{components → ui/components}/molecules/vc-rating/vc-rating.stories.d.ts +0 -0
- package/dist/ui/components/molecules/vc-rating/vc-rating.stories.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-select/index.d.ts +5 -0
- package/dist/ui/components/molecules/vc-select/index.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-select/vc-select-model.d.ts +207 -0
- package/dist/ui/components/molecules/vc-select/vc-select-model.d.ts.map +1 -0
- package/dist/{components → ui/components}/molecules/vc-textarea/vc-textarea.stories.d.ts +0 -0
- package/dist/ui/components/molecules/vc-textarea/vc-textarea.stories.d.ts.map +1 -0
- package/dist/{components → ui/components}/organisms/vc-app/vc-app.stories.d.ts +0 -0
- package/dist/ui/components/organisms/vc-app/vc-app.stories.d.ts.map +1 -0
- package/dist/{components → ui/components}/organisms/vc-blade/vc-blade.stories.d.ts +0 -0
- package/dist/ui/components/organisms/vc-blade/vc-blade.stories.d.ts.map +1 -0
- package/dist/{components → ui/components}/organisms/vc-login-form/vc-login-form.stories.d.ts +0 -0
- package/dist/ui/components/organisms/vc-login-form/vc-login-form.stories.d.ts.map +1 -0
- package/dist/{components → ui/components}/organisms/vc-popup/vc-popup.stories.d.ts +0 -0
- package/dist/ui/components/organisms/vc-popup/vc-popup.stories.d.ts.map +1 -0
- package/dist/{components → ui/components}/organisms/vc-table/vc-table.stories.d.ts +0 -0
- package/dist/ui/components/organisms/vc-table/vc-table.stories.d.ts.map +1 -0
- package/dist/ui/types/index.d.ts +13 -0
- package/dist/ui/types/index.d.ts.map +1 -0
- package/dist/ui/types/ts-helpers.d.ts +13 -0
- package/dist/ui/types/ts-helpers.d.ts.map +1 -0
- package/dist/vite.config.d.ts.map +1 -1
- package/package.json +27 -10
- package/shared/app-switcher/components/vc-app-switcher/vc-app-switcher.vue +13 -10
- package/shared/assets/components/assets-details/assets-details.vue +12 -12
- package/shared/blade-navigation/composables/useBladeNavigation/index.ts +4 -4
- package/shared/blade-navigation/types/index.ts +25 -25
- package/tailwind.config.js +4 -3
- package/ui/components/atoms/vc-badge/index.ts +7 -0
- package/ui/components/atoms/vc-badge/vc-badge-model.ts +30 -0
- package/{components → ui/components}/atoms/vc-badge/vc-badge.stories.ts +0 -0
- package/ui/components/atoms/vc-badge/vc-badge.vue +57 -0
- package/ui/components/atoms/vc-button/index.ts +7 -0
- package/ui/components/atoms/vc-button/vc-button-model.ts +30 -0
- package/{components → ui/components}/atoms/vc-button/vc-button.stories.ts +0 -0
- package/{components → ui/components}/atoms/vc-button/vc-button.vue +54 -54
- package/{components → ui/components}/atoms/vc-card/vc-card.vue +15 -15
- package/{components → ui/components}/atoms/vc-checkbox/vc-checkbox.stories.ts +0 -0
- package/{components → ui/components}/atoms/vc-checkbox/vc-checkbox.vue +21 -21
- package/{components → ui/components}/atoms/vc-col/vc-col.vue +2 -2
- package/{components → ui/components}/atoms/vc-container/vc-container.stories.ts +0 -0
- package/{components → ui/components}/atoms/vc-container/vc-container.vue +21 -19
- package/{components → ui/components}/atoms/vc-hint/vc-hint.stories.ts +0 -0
- package/{components → ui/components}/atoms/vc-hint/vc-hint.vue +1 -1
- package/{components → ui/components}/atoms/vc-icon/vc-icon.stories.ts +0 -0
- package/{components → ui/components}/atoms/vc-icon/vc-icon.vue +1 -1
- package/{components → ui/components}/atoms/vc-image/vc-image.stories.ts +0 -0
- package/{components → ui/components}/atoms/vc-image/vc-image.vue +9 -9
- package/{components → ui/components}/atoms/vc-info-row/vc-info-row.vue +3 -3
- package/{components → ui/components}/atoms/vc-label/vc-label.stories.ts +0 -0
- package/{components → ui/components}/atoms/vc-label/vc-label.vue +6 -6
- package/{components → ui/components}/atoms/vc-link/vc-link.stories.ts +0 -0
- package/{components → ui/components}/atoms/vc-link/vc-link.vue +3 -3
- package/ui/components/atoms/vc-loading/vc-loading.vue +33 -0
- package/{components → ui/components}/atoms/vc-progress/vc-progress.stories.ts +0 -0
- package/{components → ui/components}/atoms/vc-progress/vc-progress.vue +2 -2
- package/{components → ui/components}/atoms/vc-row/vc-row.vue +1 -1
- package/{components → ui/components}/atoms/vc-status/vc-status.stories.ts +0 -0
- package/{components → ui/components}/atoms/vc-status/vc-status.vue +4 -4
- package/{components → ui/components}/atoms/vc-status-icon/vc-status-icon.vue +3 -3
- package/{components → ui/components}/atoms/vc-switch/vc-switch.stories.ts +0 -0
- package/{components → ui/components}/atoms/vc-switch/vc-switch.vue +10 -10
- package/{components → ui/components}/atoms/vc-widget/vc-widget.vue +12 -12
- package/{components → ui/components}/index.ts +4 -3
- package/{components → ui/components}/molecules/vc-breadcrumbs/_internal/vc-breadcrumbs-item/vc-breadcrumbs-item.vue +17 -17
- package/{components → ui/components}/molecules/vc-breadcrumbs/vc-breadcrumbs.stories.ts +0 -0
- package/{components → ui/components}/molecules/vc-breadcrumbs/vc-breadcrumbs.vue +1 -1
- package/{components/molecules/vc-input → ui/components/molecules/vc-currency-input}/vc-input.vue +30 -37
- package/{components → ui/components}/molecules/vc-editor/vc-editor.vue +4 -4
- package/{components → ui/components}/molecules/vc-file-upload/vc-file-upload.vue +6 -6
- package/{components → ui/components}/molecules/vc-form/vc-form.stories.ts +0 -0
- package/{components → ui/components}/molecules/vc-form/vc-form.vue +0 -0
- package/ui/components/molecules/vc-input/index.ts +8 -0
- package/ui/components/molecules/vc-input/vc-input-model.ts +150 -0
- package/ui/components/molecules/vc-input/vc-input.vue +324 -0
- package/ui/components/molecules/vc-input-currency/index.ts +8 -0
- package/ui/components/molecules/vc-input-currency/vc-input-currency-model.ts +128 -0
- package/ui/components/molecules/vc-input-currency/vc-input-currency.vue +86 -0
- package/{components → ui/components}/molecules/vc-multivalue/vc-multivalue.vue +41 -41
- package/{components → ui/components}/molecules/vc-notification/vc-notification.vue +5 -5
- package/{components → ui/components}/molecules/vc-pagination/vc-pagination.stories.ts +0 -0
- package/{components → ui/components}/molecules/vc-pagination/vc-pagination.vue +24 -24
- package/{components → ui/components}/molecules/vc-rating/vc-rating.stories.ts +0 -0
- package/{components → ui/components}/molecules/vc-rating/vc-rating.vue +6 -6
- package/ui/components/molecules/vc-select/index.ts +7 -0
- package/ui/components/molecules/vc-select/vc-select-model.ts +216 -0
- package/ui/components/molecules/vc-select/vc-select.vue +727 -0
- package/{components → ui/components}/molecules/vc-slider/vc-slider.vue +12 -12
- package/{components → ui/components}/molecules/vc-textarea/vc-textarea.stories.ts +0 -0
- package/{components → ui/components}/molecules/vc-textarea/vc-textarea.vue +17 -17
- package/{components → ui/components}/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue +20 -16
- package/{components → ui/components}/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue +31 -31
- package/{components → ui/components}/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue +9 -9
- package/{components → ui/components}/organisms/vc-app/_internal/vc-app-menu/vc-app-menu.vue +11 -11
- package/{components → ui/components}/organisms/vc-app/vc-app.stories.ts +0 -0
- package/{components → ui/components}/organisms/vc-app/vc-app.vue +9 -11
- package/{components → ui/components}/organisms/vc-blade/_internal/vc-blade-header/vc-blade-header.vue +10 -10
- package/{components → ui/components}/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue +17 -17
- package/{components → ui/components}/organisms/vc-blade/_internal/vc-blade-toolbar/vc-blade-toolbar.vue +4 -4
- package/{components → ui/components}/organisms/vc-blade/vc-blade.stories.ts +0 -0
- package/{components → ui/components}/organisms/vc-blade/vc-blade.vue +5 -5
- package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue +426 -0
- package/{components → ui/components}/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue +12 -12
- package/{components → ui/components}/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue +9 -9
- package/{components → ui/components}/organisms/vc-gallery/vc-gallery.vue +6 -6
- package/{components → ui/components}/organisms/vc-login-form/vc-login-form.stories.ts +6 -6
- package/{components → ui/components}/organisms/vc-login-form/vc-login-form.vue +5 -5
- package/{components → ui/components}/organisms/vc-popup/vc-popup.stories.ts +0 -0
- package/{components → ui/components}/organisms/vc-popup/vc-popup.vue +13 -13
- package/{components → ui/components}/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue +6 -6
- package/{components → ui/components}/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue +3 -3
- package/{components → ui/components}/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue +13 -13
- package/{components → ui/components}/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue +23 -23
- package/{components → ui/components}/organisms/vc-table/vc-table.stories.ts +3 -3
- package/{components → ui/components}/organisms/vc-table/vc-table.vue +42 -42
- package/ui/types/index.ts +38 -0
- package/ui/types/ts-helpers.ts +46 -0
- package/components/atoms/vc-badge/vc-badge.vue +0 -63
- package/components/atoms/vc-loading/vc-loading.vue +0 -30
- package/components/molecules/vc-input/vc-input.stories.ts +0 -26
- package/components/molecules/vc-select/vc-select.stories.ts +0 -25
- package/components/molecules/vc-select/vc-select.vue +0 -402
- package/components/organisms/vc-dynamic-property/vc-dynamic-property.vue +0 -292
- package/dist/components/atoms/vc-badge/vc-badge.stories.d.ts.map +0 -1
- package/dist/components/atoms/vc-button/vc-button.stories.d.ts.map +0 -1
- package/dist/components/atoms/vc-checkbox/vc-checkbox.stories.d.ts.map +0 -1
- package/dist/components/atoms/vc-container/vc-container.stories.d.ts.map +0 -1
- package/dist/components/atoms/vc-hint/vc-hint.stories.d.ts.map +0 -1
- package/dist/components/atoms/vc-icon/vc-icon.stories.d.ts.map +0 -1
- package/dist/components/atoms/vc-image/vc-image.stories.d.ts.map +0 -1
- package/dist/components/atoms/vc-label/vc-label.stories.d.ts.map +0 -1
- package/dist/components/atoms/vc-link/vc-link.stories.d.ts.map +0 -1
- package/dist/components/atoms/vc-progress/vc-progress.stories.d.ts.map +0 -1
- package/dist/components/atoms/vc-status/vc-status.stories.d.ts.map +0 -1
- package/dist/components/atoms/vc-switch/vc-switch.stories.d.ts.map +0 -1
- package/dist/components/index.d.ts.map +0 -1
- package/dist/components/molecules/vc-breadcrumbs/vc-breadcrumbs.stories.d.ts.map +0 -1
- package/dist/components/molecules/vc-form/vc-form.stories.d.ts.map +0 -1
- package/dist/components/molecules/vc-input/vc-input.stories.d.ts +0 -7
- package/dist/components/molecules/vc-input/vc-input.stories.d.ts.map +0 -1
- package/dist/components/molecules/vc-pagination/vc-pagination.stories.d.ts.map +0 -1
- package/dist/components/molecules/vc-rating/vc-rating.stories.d.ts.map +0 -1
- package/dist/components/molecules/vc-select/vc-select.stories.d.ts +0 -7
- package/dist/components/molecules/vc-select/vc-select.stories.d.ts.map +0 -1
- package/dist/components/molecules/vc-textarea/vc-textarea.stories.d.ts.map +0 -1
- package/dist/components/organisms/vc-app/vc-app.stories.d.ts.map +0 -1
- package/dist/components/organisms/vc-blade/vc-blade.stories.d.ts.map +0 -1
- package/dist/components/organisms/vc-login-form/vc-login-form.stories.d.ts.map +0 -1
- package/dist/components/organisms/vc-popup/vc-popup.stories.d.ts.map +0 -1
- package/dist/components/organisms/vc-table/vc-table.stories.d.ts.map +0 -1
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
<div
|
|
3
3
|
class="vc-link"
|
|
4
4
|
:class="{
|
|
5
|
-
'
|
|
6
|
-
'cursor-not-allowed text-[color:var(--link-text-color-disabled)] hover:text-[color:var(--link-text-color-disabled)] no-underline':
|
|
5
|
+
'tw-text-[color:var(--link-text-color-active)] tw-no-underline': active,
|
|
6
|
+
'tw-cursor-not-allowed tw-text-[color:var(--link-text-color-disabled)] hover:tw-text-[color:var(--link-text-color-disabled)] tw-no-underline':
|
|
7
7
|
disabled,
|
|
8
8
|
}"
|
|
9
9
|
@click="onClick"
|
|
@@ -41,6 +41,6 @@ function onClick(): void {
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
.vc-link {
|
|
44
|
-
@apply text-[color:var(--link-text-color)] no-underline cursor-pointer transition
|
|
44
|
+
@apply tw-text-[color:var(--link-text-color)] tw-no-underline tw-cursor-pointer tw-transition tw-duration-200 tw-inline-block hover:tw-text-[color:var(--link-text-color-hover)] hover:tw-underline;
|
|
45
45
|
}
|
|
46
46
|
</style>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
class="tw-absolute tw-items-center tw-justify-center tw-flex-col tw-z-[9998] tw-hidden tw-w-full tw-h-full tw-box-border"
|
|
4
|
+
:class="{
|
|
5
|
+
'!tw-flex tw-backdrop-blur-[3px] tw-bg-[rgba(255, 255, 255, 0.5)]':
|
|
6
|
+
active,
|
|
7
|
+
}"
|
|
8
|
+
>
|
|
9
|
+
<div class="tw-relative tw-w-[142px] tw-h-[40px] tw-z-[1]">
|
|
10
|
+
<span
|
|
11
|
+
class="tw-absolute tw-w-4 tw-h-4 tw-top-[12px] tw-left-[15px] tw-bg-[#319ed4] tw-rounded-full tw-translate-x-0 tw-animate-loadingMarker"
|
|
12
|
+
></span>
|
|
13
|
+
<div
|
|
14
|
+
class="tw-translate-x-0 tw-mt-3 tw-ml-[31px] tw-animate-loadingMarkers"
|
|
15
|
+
>
|
|
16
|
+
<span
|
|
17
|
+
class="tw-block tw-float-left tw-w-4 tw-h-4 tw-bg-[#319ed4] tw-rounded-full tw-ml-4"
|
|
18
|
+
v-for="item in 3"
|
|
19
|
+
:key="`marker_${item}`"
|
|
20
|
+
></span>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
</div>
|
|
24
|
+
</template>
|
|
25
|
+
|
|
26
|
+
<script lang="ts" setup>
|
|
27
|
+
defineProps({
|
|
28
|
+
active: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
default: false,
|
|
31
|
+
},
|
|
32
|
+
});
|
|
33
|
+
</script>
|
|
File without changes
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
3
|
:class="[
|
|
4
|
-
'vc-progress border border-[length:var(--progressbar-border-width)] border-[color:var(--progressbar-border-color)] rounded-[var(--progressbar-border-radius)] h-[var(--progressbar-height)] transition
|
|
4
|
+
'vc-progress tw-border tw-border-[length:var(--progressbar-border-width)] tw-border-[color:var(--progressbar-border-color)] tw-rounded-[var(--progressbar-border-radius)] tw-h-[var(--progressbar-height)] tw-transition tw-duration-200 tw-box-border tw-bg-[color:var(--progressbar-background-color)]',
|
|
5
5
|
variant,
|
|
6
6
|
]"
|
|
7
7
|
>
|
|
8
8
|
<div
|
|
9
|
-
class="vc-progress__value bg-[color:var(--progressbar-foreground-color)] 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>
|
|
File without changes
|
|
@@ -59,20 +59,20 @@ defineProps({
|
|
|
59
59
|
$variants: info, warning, danger, success, light-danger;
|
|
60
60
|
|
|
61
61
|
.vc-status {
|
|
62
|
-
@apply inline-block rounded-[var(--status-border-radius)] py-1 px-3.5 text-base font-normal whitespace-nowrap;
|
|
62
|
+
@apply tw-inline-block tw-rounded-[var(--status-border-radius)] tw-py-1 tw-px-3.5 tw-text-base tw-font-normal tw-whitespace-nowrap;
|
|
63
63
|
|
|
64
64
|
@each $variant in $variants {
|
|
65
65
|
&_#{$variant} {
|
|
66
|
-
@apply text-[color:var(--status-#{$variant}-color)] border border-solid border-[color:var(--status-#{$variant}-main-color)] bg-[color:var(--status-#{$variant}-main-color)];
|
|
66
|
+
@apply tw-text-[color:var(--status-#{$variant}-color)] tw-border tw-border-solid tw-border-[color:var(--status-#{$variant}-main-color)] tw-bg-[color:var(--status-#{$variant}-main-color)];
|
|
67
67
|
|
|
68
68
|
&.vc-status_outline {
|
|
69
|
-
@apply text-[color:var(--status-#{$variant}-main-color)] border border-solid border-[color:var(--status-#{$variant}-main-color)] bg-white;
|
|
69
|
+
@apply tw-text-[color:var(--status-#{$variant}-main-color)] tw-border tw-border-solid tw-border-[color:var(--status-#{$variant}-main-color)] tw-bg-white;
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
&.vc-status_extended {
|
|
75
|
-
@apply whitespace-normal p-[var(--status-padding-extended)] rounded-[var(--status-border-radius-extended)];
|
|
75
|
+
@apply tw-whitespace-normal tw-p-[var(--status-padding-extended)] tw-rounded-[var(--status-border-radius-extended)];
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
</style>
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
3
|
<template v-if="status">
|
|
4
|
-
<VcIcon icon="fas fa-check-circle" class="text-[color:#87b563]"></VcIcon>
|
|
4
|
+
<VcIcon icon="fas fa-check-circle" class="tw-text-[color:#87b563]"></VcIcon>
|
|
5
5
|
</template>
|
|
6
6
|
<template v-else>
|
|
7
|
-
<VcIcon icon="fas fa-times-circle" class="text-[color:#bdd1df]"></VcIcon>
|
|
7
|
+
<VcIcon icon="fas fa-times-circle" class="tw-text-[color:#bdd1df]"></VcIcon>
|
|
8
8
|
</template>
|
|
9
9
|
</div>
|
|
10
10
|
</template>
|
|
11
11
|
|
|
12
12
|
<script lang="ts" setup>
|
|
13
|
-
import { VcIcon } from "@/components";
|
|
13
|
+
import { VcIcon } from "@/ui/components";
|
|
14
14
|
|
|
15
15
|
defineProps({
|
|
16
16
|
status: {
|
|
File without changes
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
3
|
<!-- Switch label -->
|
|
4
|
-
<VcLabel v-if="label" class="mb-2" :required="required">
|
|
4
|
+
<VcLabel v-if="label" class="tw-mb-2" :required="required">
|
|
5
5
|
<span>{{ label }}</span>
|
|
6
6
|
</VcLabel>
|
|
7
|
-
<div class="relative inline-block w-[54px] h-[18px]">
|
|
7
|
+
<div class="tw-relative tw-inline-block tw-w-[54px] tw-h-[18px]">
|
|
8
8
|
<label>
|
|
9
9
|
<input
|
|
10
10
|
type="checkbox"
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
/>
|
|
16
16
|
<span class="vc-switch__slider"></span>
|
|
17
17
|
</label>
|
|
18
|
-
<VcHint class="mt-2 w-max" v-if="tooltip">
|
|
18
|
+
<VcHint class="tw-mt-2 tw-w-max" v-if="tooltip">
|
|
19
19
|
{{ tooltip }}
|
|
20
20
|
</VcHint>
|
|
21
21
|
</div>
|
|
@@ -70,30 +70,30 @@ function onInput(e: InputEvent) {
|
|
|
70
70
|
|
|
71
71
|
.vc-switch {
|
|
72
72
|
&__input {
|
|
73
|
-
@apply w-0 h-0 opacity-0;
|
|
73
|
+
@apply tw-w-0 tw-h-0 tw-opacity-0;
|
|
74
74
|
|
|
75
75
|
&:checked + .vc-switch__slider:before {
|
|
76
|
-
@apply translate-x-[29px];
|
|
76
|
+
@apply tw-translate-x-[29px];
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
&:checked + .vc-switch__slider {
|
|
80
|
-
@apply bg-[color:var(--switch-main-color)] after:bg-[image:var(--switch-active-icon)] after:bg-[position:10px] after:bg-[length:10px_7px];
|
|
80
|
+
@apply tw-bg-[color:var(--switch-main-color)] after:tw-bg-[image:var(--switch-active-icon)] after:tw-bg-[position:10px] after:tw-bg-[length:10px_7px];
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
&:disabled + .vc-switch__slider {
|
|
84
|
-
@apply bg-[color:var(--switch-secondary-color)];
|
|
84
|
+
@apply tw-bg-[color:var(--switch-secondary-color)];
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
&__slider {
|
|
89
|
-
@apply absolute top-0 right-0 bottom-0 left-0 bg-[color:var(--switch-secondary-color)] rounded-[3px] cursor-pointer transition
|
|
89
|
+
@apply tw-absolute tw-top-0 tw-right-0 tw-bottom-0 tw-left-0 tw-bg-[color:var(--switch-secondary-color)] tw-rounded-[3px] tw-cursor-pointer tw-transition tw-duration-200;
|
|
90
90
|
|
|
91
91
|
&:after {
|
|
92
|
-
@apply inline-block w-full h-full bg-[image:var(--switch-disabled-icon)] bg-[position:calc(100%-11px)] bg-no-repeat bg-[length:8px_8px] content-[""];
|
|
92
|
+
@apply tw-inline-block tw-w-full tw-h-full tw-bg-[image:var(--switch-disabled-icon)] tw-bg-[position:calc(100%-11px)] tw-bg-no-repeat tw-bg-[length:8px_8px] tw-content-[""];
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
&:before {
|
|
96
|
-
@apply absolute bottom-px left-px flex justify-center items-center w-[23px] h-[16px] bg-white rounded-sm text-[color:#d2d2d2] text-[10px] transition
|
|
96
|
+
@apply tw-absolute tw-bottom-px tw-left-px tw-flex tw-justify-center tw-items-center tw-w-[23px] tw-h-[16px] tw-bg-white tw-rounded-sm tw-text-[color:#d2d2d2] tw-text-[10px] tw-transition tw-duration-200 tw-content-["|||"];
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
}
|
|
@@ -48,38 +48,38 @@ function onClick() {
|
|
|
48
48
|
|
|
49
49
|
<style lang="scss">
|
|
50
50
|
.vc-widget {
|
|
51
|
-
@apply flex w-[100px] overflow-hidden p-5
|
|
52
|
-
box-border flex-col items-center
|
|
53
|
-
justify-center border-b border-solid
|
|
54
|
-
border-b-[#eaedf3] cursor-pointer bg-white
|
|
55
|
-
hover:bg-[#eff7fc];
|
|
51
|
+
@apply tw-flex tw-w-[100px] tw-overflow-hidden tw-p-5
|
|
52
|
+
tw-box-border tw-flex-col tw-items-center
|
|
53
|
+
tw-justify-center tw-border-b tw-border-solid
|
|
54
|
+
tw-border-b-[#eaedf3] tw-cursor-pointer tw-bg-white
|
|
55
|
+
hover:tw-bg-[#eff7fc];
|
|
56
56
|
|
|
57
57
|
&_disabled {
|
|
58
|
-
@apply cursor-default hover:bg-white;
|
|
58
|
+
@apply tw-cursor-default hover:tw-bg-white;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
&__icon {
|
|
62
|
-
@apply text-[#a9bfd2];
|
|
62
|
+
@apply tw-text-[#a9bfd2];
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
&_disabled &__icon {
|
|
66
|
-
@apply text-[#d2d4d7];
|
|
66
|
+
@apply tw-text-[#d2d4d7];
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
&__title {
|
|
70
|
-
@apply font-medium text-sm text-[#333333] mt-3 mb-1 mx-0;
|
|
70
|
+
@apply tw-font-medium tw-text-sm tw-text-[#333333] tw-mt-3 tw-mb-1 tw-mx-0;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
&_disabled &__title {
|
|
74
|
-
@apply text-[#d2d4d7];
|
|
74
|
+
@apply tw-text-[#d2d4d7];
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
&__value {
|
|
78
|
-
@apply font-medium text-[22px] text-[#43b0e6];
|
|
78
|
+
@apply tw-font-medium tw-text-[22px] tw-text-[#43b0e6];
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
&_disabled &__value {
|
|
82
|
-
@apply text-[#d2d4d7];
|
|
82
|
+
@apply tw-text-[#d2d4d7];
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
</style>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* Atoms */
|
|
2
|
-
export {
|
|
2
|
+
export { VcBadge } from "./atoms/vc-badge";
|
|
3
3
|
export { default as VcButton } from "./atoms/vc-button/vc-button.vue";
|
|
4
4
|
export { default as VcCard } from "./atoms/vc-card/vc-card.vue";
|
|
5
5
|
export { default as VcCheckbox } from "./atoms/vc-checkbox/vc-checkbox.vue";
|
|
@@ -24,12 +24,13 @@ export { default as VcBreadcrumbs } from "./molecules/vc-breadcrumbs/vc-breadcru
|
|
|
24
24
|
export { default as VcEditor } from "./molecules/vc-editor/vc-editor.vue";
|
|
25
25
|
export { default as VcForm } from "./molecules/vc-form/vc-form.vue";
|
|
26
26
|
export { default as VcFileUpload } from "./molecules/vc-file-upload/vc-file-upload.vue";
|
|
27
|
-
export {
|
|
27
|
+
export { VcInput } from "./molecules/vc-input";
|
|
28
|
+
export { VcInputCurrency } from "./molecules/vc-input-currency";
|
|
28
29
|
export { default as VcMultivalue } from "./molecules/vc-multivalue/vc-multivalue.vue";
|
|
29
30
|
export { default as VcNotification } from "./molecules/vc-notification/vc-notification.vue";
|
|
30
31
|
export { default as VcPagination } from "./molecules/vc-pagination/vc-pagination.vue";
|
|
31
32
|
export { default as VcRating } from "./molecules/vc-rating/vc-rating.vue";
|
|
32
|
-
export {
|
|
33
|
+
export { VcSelect } from "./molecules/vc-select";
|
|
33
34
|
export { default as VcSlider } from "./molecules/vc-slider/vc-slider.vue";
|
|
34
35
|
export { default as VcTextarea } from "./molecules/vc-textarea/vc-textarea.vue";
|
|
35
36
|
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
</template>
|
|
20
20
|
|
|
21
21
|
<script lang="ts" setup>
|
|
22
|
-
import { VcIcon } from "@/components";
|
|
22
|
+
import { VcIcon } from "@/ui/components";
|
|
23
23
|
|
|
24
24
|
const props = defineProps({
|
|
25
25
|
current: {
|
|
@@ -73,31 +73,31 @@ function onClick(): void {
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
.vc-breadcrumbs-item {
|
|
76
|
-
@apply h-[var(--breadcrumbs-item-height)]
|
|
77
|
-
box-border rounded-[calc(var(--breadcrumbs-item-height)/2)]
|
|
78
|
-
border border-solid
|
|
79
|
-
border-[color:var(--breadcrumbs-item-border-color)]
|
|
80
|
-
text-[color:var(--breadcrumbs-item-color)]
|
|
81
|
-
whitespace-nowrap
|
|
82
|
-
px-3 mr-2
|
|
83
|
-
text-sm cursor-pointer inline-flex items-center
|
|
84
|
-
hover:border
|
|
85
|
-
hover:border-solid
|
|
86
|
-
hover:border-[color:var(--breadcrumbs-item-border-color-hover)];
|
|
76
|
+
@apply tw-h-[var(--breadcrumbs-item-height)]
|
|
77
|
+
tw-box-border tw-rounded-[calc(var(--breadcrumbs-item-height)/2)]
|
|
78
|
+
tw-border tw-border-solid
|
|
79
|
+
tw-border-[color:var(--breadcrumbs-item-border-color)]
|
|
80
|
+
tw-text-[color:var(--breadcrumbs-item-color)]
|
|
81
|
+
tw-whitespace-nowrap
|
|
82
|
+
tw-px-3 tw-mr-2
|
|
83
|
+
tw-text-sm tw-cursor-pointer tw-inline-flex tw-items-center
|
|
84
|
+
hover:tw-border
|
|
85
|
+
hover:tw-border-solid
|
|
86
|
+
hover:tw-border-[color:var(--breadcrumbs-item-border-color-hover)];
|
|
87
87
|
|
|
88
88
|
&__icon {
|
|
89
|
-
@apply mr-2 text-[color:var(--breadcrumbs-item-icon-color)];
|
|
89
|
+
@apply tw-mr-2 tw-text-[color:var(--breadcrumbs-item-icon-color)];
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
&_disabled {
|
|
93
|
-
@apply opacity-[0.4];
|
|
93
|
+
@apply tw-opacity-[0.4];
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
&_current,
|
|
97
97
|
&_current:hover {
|
|
98
|
-
@apply text-[color:var(--breadcrumbs-item-color-current)]
|
|
99
|
-
border border-solid border-[color:var(--breadcrumbs-item-border-color-current)]
|
|
100
|
-
cursor-default mr-0;
|
|
98
|
+
@apply tw-text-[color:var(--breadcrumbs-item-color-current)]
|
|
99
|
+
tw-border tw-border-solid tw-border-[color:var(--breadcrumbs-item-border-color-current)]
|
|
100
|
+
tw-cursor-default tw-mr-0;
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
</style>
|
|
File without changes
|
package/{components/molecules/vc-input → ui/components/molecules/vc-currency-input}/vc-input.vue
RENAMED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
]"
|
|
12
12
|
>
|
|
13
13
|
<!-- Input label -->
|
|
14
|
-
<VcLabel v-if="label" class="mb-2" :required="isRequired">
|
|
14
|
+
<VcLabel v-if="label" class="tw-mb-2" :required="isRequired">
|
|
15
15
|
<span>{{ label }}</span>
|
|
16
16
|
<template v-if="tooltip" v-slot:tooltip>{{ tooltip }}</template>
|
|
17
17
|
</VcLabel>
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
>
|
|
46
46
|
{{ optionsValue }}
|
|
47
47
|
</div>
|
|
48
|
-
<teleport to="
|
|
48
|
+
<teleport to="#app">
|
|
49
49
|
<div
|
|
50
50
|
v-if="dropActive"
|
|
51
51
|
ref="dropRef"
|
|
@@ -128,9 +128,7 @@ import {
|
|
|
128
128
|
unref,
|
|
129
129
|
watch,
|
|
130
130
|
} from "vue";
|
|
131
|
-
import {
|
|
132
|
-
import { VcIcon, VcLabel } from "@/components";
|
|
133
|
-
import { IValidationRules } from "@/core/types";
|
|
131
|
+
import { VcIcon, VcLabel } from "@/ui/components";
|
|
134
132
|
import { createPopper, Instance } from "@popperjs/core";
|
|
135
133
|
import {
|
|
136
134
|
useCurrencyInput,
|
|
@@ -152,11 +150,6 @@ export interface Props {
|
|
|
152
150
|
label?: string;
|
|
153
151
|
tooltip?: string;
|
|
154
152
|
name?: string;
|
|
155
|
-
rules?:
|
|
156
|
-
| string
|
|
157
|
-
| IValidationRules
|
|
158
|
-
| GenericValidateFunction<ValueType>
|
|
159
|
-
| GenericValidateFunction<ValueType>[];
|
|
160
153
|
currency?: boolean;
|
|
161
154
|
options?: Record<string, string>[];
|
|
162
155
|
optionsTitle?: string;
|
|
@@ -337,107 +330,107 @@ function onReset() {
|
|
|
337
330
|
}
|
|
338
331
|
|
|
339
332
|
.vc-input {
|
|
340
|
-
@apply overflow-hidden;
|
|
333
|
+
@apply tw-overflow-hidden;
|
|
341
334
|
|
|
342
335
|
&_date,
|
|
343
336
|
&_datetime-local {
|
|
344
|
-
@apply max-w-[220px];
|
|
337
|
+
@apply tw-max-w-[220px];
|
|
345
338
|
|
|
346
339
|
.vc-app_mobile & {
|
|
347
|
-
@apply max-w-full;
|
|
340
|
+
@apply tw-max-w-full;
|
|
348
341
|
}
|
|
349
342
|
}
|
|
350
343
|
|
|
351
344
|
&__field-wrapper {
|
|
352
|
-
@apply border border-solid border-[color:var(--input-border-color)]
|
|
353
|
-
rounded-[var(--input-border-radius)]
|
|
354
|
-
bg-[color:var(--input-background-color)] flex items-stretch;
|
|
345
|
+
@apply tw-border tw-border-solid tw-border-[color:var(--input-border-color)]
|
|
346
|
+
tw-rounded-[var(--input-border-radius)]
|
|
347
|
+
tw-bg-[color:var(--input-background-color)] tw-flex tw-items-stretch;
|
|
355
348
|
}
|
|
356
349
|
|
|
357
350
|
&_error &__field-wrapper {
|
|
358
|
-
@apply border border-solid border-[color:var(--input-border-color-error)];
|
|
351
|
+
@apply tw-border tw-border-solid tw-border-[color:var(--input-border-color-error)];
|
|
359
352
|
}
|
|
360
353
|
|
|
361
354
|
&__error {
|
|
362
|
-
@apply mt-1 [--hint-color:var(--input-border-color-error)];
|
|
355
|
+
@apply tw-mt-1 [--hint-color:var(--input-border-color-error)];
|
|
363
356
|
}
|
|
364
357
|
|
|
365
358
|
&__desc {
|
|
366
|
-
@apply text-[color:var(--multivalue-placeholder-color)] mt-1 break-words p-0;
|
|
359
|
+
@apply tw-text-[color:var(--multivalue-placeholder-color)] tw-mt-1 tw-break-words tw-p-0;
|
|
367
360
|
}
|
|
368
361
|
|
|
369
362
|
&__field {
|
|
370
|
-
@apply border-none outline-none h-[var(--input-height)] min-w-0 box-border grow pl-3;
|
|
363
|
+
@apply tw-border-none tw-outline-none tw-h-[var(--input-height)] tw-min-w-0 tw-box-border tw-grow tw-pl-3;
|
|
371
364
|
|
|
372
365
|
&::-webkit-input-placeholder {
|
|
373
|
-
@apply text-[color:var(--input-placeholder-color)];
|
|
366
|
+
@apply tw-text-[color:var(--input-placeholder-color)];
|
|
374
367
|
}
|
|
375
368
|
|
|
376
369
|
&::-moz-placeholder {
|
|
377
|
-
@apply text-[color:var(--input-placeholder-color)];
|
|
370
|
+
@apply tw-text-[color:var(--input-placeholder-color)];
|
|
378
371
|
}
|
|
379
372
|
|
|
380
373
|
&::-ms-placeholder {
|
|
381
|
-
@apply text-[color:var(--input-placeholder-color)];
|
|
374
|
+
@apply tw-text-[color:var(--input-placeholder-color)];
|
|
382
375
|
}
|
|
383
376
|
|
|
384
377
|
&::placeholder {
|
|
385
|
-
@apply text-[color:var(--input-placeholder-color)];
|
|
378
|
+
@apply tw-text-[color:var(--input-placeholder-color)];
|
|
386
379
|
}
|
|
387
380
|
|
|
388
381
|
&::-ms-reveal,
|
|
389
382
|
&::-ms-clear {
|
|
390
|
-
@apply hidden;
|
|
383
|
+
@apply tw-hidden;
|
|
391
384
|
}
|
|
392
385
|
}
|
|
393
386
|
|
|
394
387
|
&__clear {
|
|
395
|
-
@apply cursor-pointer text-[color:var(--input-clear-color)] hover:text-[color:var(--input-clear-color-hover)] px-3 flex items-center;
|
|
388
|
+
@apply tw-cursor-pointer tw-text-[color:var(--input-clear-color)] hover:tw-text-[color:var(--input-clear-color-hover)] tw-px-3 tw-flex tw-items-center;
|
|
396
389
|
}
|
|
397
390
|
|
|
398
391
|
&__showhide {
|
|
399
|
-
@apply cursor-pointer text-[color:var(--input-placeholder-color)] hover:text-[color:var(--input-clear-color-hover)] px-3 flex items-center;
|
|
392
|
+
@apply tw-cursor-pointer tw-text-[color:var(--input-placeholder-color)] hover:tw-text-[color:var(--input-clear-color-hover)] tw-px-3 tw-flex tw-items-center;
|
|
400
393
|
}
|
|
401
394
|
|
|
402
395
|
&__dropdown-wrap {
|
|
403
|
-
@apply relative px-3 flex items-center;
|
|
396
|
+
@apply tw-relative tw-px-3 tw-flex tw-items-center;
|
|
404
397
|
}
|
|
405
398
|
|
|
406
399
|
&__dropdown-btn {
|
|
407
|
-
@apply text-[color:var(--input-clear-color)] not-italic font-medium text-[13px] leading-[20px] cursor-pointer;
|
|
400
|
+
@apply tw-text-[color:var(--input-clear-color)] tw-not-italic tw-font-medium tw-text-[13px] tw-leading-[20px] tw-cursor-pointer;
|
|
408
401
|
|
|
409
402
|
&_disabled {
|
|
410
|
-
@apply text-[#7e8e9d] cursor-default;
|
|
403
|
+
@apply tw-text-[#7e8e9d] tw-cursor-default;
|
|
411
404
|
}
|
|
412
405
|
}
|
|
413
406
|
|
|
414
407
|
&__dropdown {
|
|
415
|
-
@apply absolute bg-white shadow-[1px_1px_11px_rgba(141,152,163,0.6)] rounded-[3px] p-[11px] w-[120px] box-border;
|
|
408
|
+
@apply tw-absolute tw-bg-white tw-shadow-[1px_1px_11px_rgba(141,152,163,0.6)] tw-rounded-[3px] tw-p-[11px] tw-w-[120px] tw-box-border;
|
|
416
409
|
}
|
|
417
410
|
|
|
418
411
|
&__dropdown-title {
|
|
419
|
-
@apply not-italic font-normal text-base leading-[20px] text-[#333333] p-0 mb-[7px];
|
|
412
|
+
@apply tw-not-italic tw-font-normal tw-text-base tw-leading-[20px] tw-text-[#333333] tw-p-0 tw-mb-[7px];
|
|
420
413
|
}
|
|
421
414
|
|
|
422
415
|
&__dropdown-search {
|
|
423
|
-
@apply bg-white border border-solid border-[#eaecf2] box-border rounded-[4px] h-8 w-full outline-none px-2;
|
|
416
|
+
@apply tw-bg-white tw-border tw-border-solid tw-border-[#eaecf2] tw-box-border tw-rounded-[4px] tw-h-8 tw-w-full tw-outline-none tw-px-2;
|
|
424
417
|
}
|
|
425
418
|
|
|
426
419
|
&__dropdown-list {
|
|
427
|
-
@apply list-none p-0 mt-2;
|
|
420
|
+
@apply tw-list-none tw-p-0 tw-mt-2;
|
|
428
421
|
}
|
|
429
422
|
|
|
430
423
|
&__dropdown-selector {
|
|
431
|
-
@apply border-none bg-transparent p-[9px] text-left w-full cursor-pointer text-lg rounded-[3px] hover:bg-[#eff7fc];
|
|
424
|
+
@apply tw-border-none tw-bg-transparent tw-p-[9px] tw-text-left tw-w-full tw-cursor-pointer tw-text-lg tw-rounded-[3px] hover:tw-bg-[#eff7fc];
|
|
432
425
|
|
|
433
426
|
&-active {
|
|
434
|
-
@apply bg-[#dfeef9];
|
|
427
|
+
@apply tw-bg-[#dfeef9];
|
|
435
428
|
}
|
|
436
429
|
}
|
|
437
430
|
|
|
438
431
|
&_disabled &__field-wrapper,
|
|
439
432
|
&_disabled &__field {
|
|
440
|
-
@apply bg-[#fafafa] text-[#424242];
|
|
433
|
+
@apply tw-bg-[#fafafa] tw-text-[#424242];
|
|
441
434
|
}
|
|
442
435
|
}
|
|
443
436
|
</style>
|
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
]"
|
|
10
10
|
>
|
|
11
11
|
<!-- Editor label -->
|
|
12
|
-
<VcLabel v-if="label" class="mb-2" :required="required">
|
|
12
|
+
<VcLabel v-if="label" class="tw-mb-2" :required="required">
|
|
13
13
|
<span>{{ label }}</span>
|
|
14
14
|
<template v-if="tooltip" v-slot:tooltip>{{ tooltip }}</template>
|
|
15
15
|
</VcLabel>
|
|
16
16
|
|
|
17
17
|
<!-- Editor field -->
|
|
18
18
|
<v-ace-editor
|
|
19
|
-
class="border border-solid border-[color:var(--editor-border-color)] rounded-[var(--editor-border-radius)]"
|
|
19
|
+
class="tw-border tw-border-solid tw-border-[color:var(--editor-border-color)] tw-rounded-[var(--editor-border-radius)]"
|
|
20
20
|
v-model:value="content"
|
|
21
21
|
lang="html"
|
|
22
22
|
theme="chrome"
|
|
@@ -107,11 +107,11 @@ function onInput() {
|
|
|
107
107
|
|
|
108
108
|
.vc-editor {
|
|
109
109
|
&__error {
|
|
110
|
-
@apply text-[color:var(--editor-border-color-error)] mt-1;
|
|
110
|
+
@apply tw-text-[color:var(--editor-border-color-error)] tw-mt-1;
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
&_error .ace_editor {
|
|
114
|
-
@apply border border-solid border-[color:var(--editor-border-color-error)];
|
|
114
|
+
@apply tw-border tw-border-solid tw-border-[color:var(--editor-border-color-error)];
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
</style>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="flex flex-col flex-1">
|
|
2
|
+
<div class= "tw-flex tw-flex-col tw-flex-1">
|
|
3
3
|
<div
|
|
4
|
-
class="vc-file-upload relative h-[155px] box-border border border-dashed border-[#c8dbea] rounded-[6px] p-2 p-4 flex flex-col items-center justify-center"
|
|
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}`"
|
|
6
6
|
@drop.stop.prevent="onDrop"
|
|
7
7
|
@drag.stop.prevent
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
>
|
|
14
14
|
<VcLoading :active="loading"></VcLoading>
|
|
15
15
|
<VcIcon
|
|
16
|
-
class="text-[#c8dbea]"
|
|
16
|
+
class="tw-text-[#c8dbea]"
|
|
17
17
|
icon="fas fa-cloud-upload-alt"
|
|
18
18
|
size="xxl"
|
|
19
19
|
></VcIcon>
|
|
20
20
|
|
|
21
|
-
<div class="text-[#9db0be] text-center text-lg leading-lg mt-4">
|
|
21
|
+
<div class="tw-text-[#9db0be] tw-text-center tw-text-lg tw-leading-lg tw-mt-4">
|
|
22
22
|
<span>Drag and drop file here or</span>
|
|
23
23
|
<br />
|
|
24
24
|
<VcLink @click="toggleUploader">browse your files</VcLink>
|
|
@@ -124,11 +124,11 @@ function onDrop(event: DragEvent) {
|
|
|
124
124
|
.vc-file-upload {
|
|
125
125
|
// variants
|
|
126
126
|
&_gallery {
|
|
127
|
-
@apply w-[155px] h-[155px];
|
|
127
|
+
@apply tw-w-[155px] tw-h-[155px];
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
&_file-upload {
|
|
131
|
-
@apply w-full bg-[#f2f8fd];
|
|
131
|
+
@apply tw-w-full tw-bg-[#f2f8fd];
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
</style>
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ComponentPublicInstance } from "vue";
|
|
2
|
+
import { VcInputProps } from "./vc-input-model";
|
|
3
|
+
import { ComponentConstructor } from "@/ui/types/ts-helpers";
|
|
4
|
+
import Input from "./vc-input.vue";
|
|
5
|
+
|
|
6
|
+
export const VcInput: ComponentConstructor<
|
|
7
|
+
ComponentPublicInstance<VcInputProps>
|
|
8
|
+
> = Input;
|