@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
|
@@ -7,34 +7,34 @@
|
|
|
7
7
|
<span>)</span>
|
|
8
8
|
</div>
|
|
9
9
|
</template>
|
|
10
|
-
<div class="w-full h-full box-border flex flex-col items-center">
|
|
11
|
-
<div class="box-border p-5 grow basis-0 w-full">
|
|
10
|
+
<div class="tw-w-full tw-h-full tw-box-border tw-flex tw-flex-col tw-items-center">
|
|
11
|
+
<div class="tw-box-border p-5 tw-grow tw-basis-0 tw-w-full">
|
|
12
12
|
<div
|
|
13
|
-
class="bg-contain bg-no-repeat bg-center w-full h-full box-border"
|
|
13
|
+
class="bg-contain tw-bg-no-repeat tw-bg-center tw-w-full tw-h-full tw-box-border"
|
|
14
14
|
:style="{ backgroundImage: 'url(' + currentImage.url + ')' }"
|
|
15
15
|
></div>
|
|
16
16
|
<div
|
|
17
17
|
v-if="localIndex > 0"
|
|
18
|
-
class="absolute top-2/4 -mt-9 h-[72px] w-[72px] flex items-center justify-center rounded-full bg-[#f1f6fa] cursor-pointer text-[#a1c0d4] [--icon-size-xl: 36px] hover:shadow-[0_0_20px_rgba(31,40,50,0.15)] left-[25px]"
|
|
18
|
+
class="tw-absolute tw-top-2/4 -tw-mt-9 tw-h-[72px] tw-w-[72px] tw-flex tw-items-center tw-justify-center tw-rounded-full tw-bg-[#f1f6fa] tw-cursor-pointer tw-text-[#a1c0d4] [--icon-size-xl: 36px] hover:tw-shadow-[0_0_20px_rgba(31,40,50,0.15)] tw-left-[25px]"
|
|
19
19
|
@click="localIndex--"
|
|
20
20
|
>
|
|
21
21
|
<VcIcon icon="fas fa-arrow-left" size="xl"></VcIcon>
|
|
22
22
|
</div>
|
|
23
23
|
<div
|
|
24
24
|
v-if="localIndex < images.length - 1"
|
|
25
|
-
class="absolute top-2/4 -mt-9 h-[72px] w-[72px] flex items-center justify-center rounded-full bg-[#f1f6fa] cursor-pointer text-[#a1c0d4] [--icon-size-xl: 36px] hover:shadow-[0_0_20px_rgba(31,40,50,0.15)] right-[25px]"
|
|
25
|
+
class="tw-absolute tw-top-2/4 -tw-mt-9 tw-h-[72px] tw-w-[72px] tw-flex tw-items-center tw-justify-center tw-rounded-full tw-bg-[#f1f6fa] tw-cursor-pointer tw-text-[#a1c0d4] [--icon-size-xl: 36px] hover:tw-shadow-[0_0_20px_rgba(31,40,50,0.15)] tw-right-[25px]"
|
|
26
26
|
@click="localIndex++"
|
|
27
27
|
>
|
|
28
28
|
<VcIcon icon="fas fa-arrow-right" size="xl"></VcIcon>
|
|
29
29
|
</div>
|
|
30
30
|
</div>
|
|
31
31
|
<div
|
|
32
|
-
class="p-4 pb-[40px] max-w-full overflow-x-auto box-border shrink flex"
|
|
32
|
+
class="tw-p-4 tw-pb-[40px] tw-max-w-full tw-overflow-x-auto tw-box-border tw-shrink tw-flex"
|
|
33
33
|
>
|
|
34
34
|
<div
|
|
35
35
|
v-for="(item, i) in images"
|
|
36
36
|
:key="i"
|
|
37
|
-
class="m-1 opacity-60"
|
|
37
|
+
class="tw-m-1 tw-opacity-60"
|
|
38
38
|
:class="{
|
|
39
39
|
'vc-gallery-preview__images-item_current': i === localIndex,
|
|
40
40
|
}"
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
|
|
55
55
|
<script lang="ts" setup>
|
|
56
56
|
import { computed, ref } from "vue";
|
|
57
|
-
import { VcPopup } from "@/components";
|
|
57
|
+
import { VcPopup } from "@/ui/components";
|
|
58
58
|
|
|
59
59
|
const props = defineProps({
|
|
60
60
|
images: {
|
|
@@ -85,7 +85,7 @@ const copyLink = (link: string) => {
|
|
|
85
85
|
&__images {
|
|
86
86
|
&-item {
|
|
87
87
|
&_current {
|
|
88
|
-
@apply relative opacity-100 after:content-[""] after:bg-[#43b0e6] after:h-1 after:w-full after:rounded-[5px] after:absolute after:left-0 after:-bottom-[12px];
|
|
88
|
+
@apply tw-relative tw-opacity-100 after:tw-content-[""] after:tw-bg-[#43b0e6] after:tw-h-1 after:tw-w-full after:tw-rounded-[5px] after:tw-absolute after:tw-left-0 after:-tw-bottom-[12px];
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
}
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
</VcLabel>
|
|
11
11
|
|
|
12
12
|
<template v-if="(images && images.length) || !disabled">
|
|
13
|
-
<div class="flex flex-wrap">
|
|
13
|
+
<div class= "tw-flex tw-flex-wrap">
|
|
14
14
|
<draggable
|
|
15
15
|
:list="images"
|
|
16
|
-
class="flex flex-wrap w-full"
|
|
16
|
+
class= "tw-flex tw-flex-wrap tw-w-full"
|
|
17
17
|
tag="transition-group"
|
|
18
18
|
v-bind="dragOptions"
|
|
19
19
|
@change="updateOrder"
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
>
|
|
24
24
|
<template #item="{ element, index }">
|
|
25
25
|
<VcGalleryItem
|
|
26
|
-
class="m-2"
|
|
26
|
+
class="tw-m-2"
|
|
27
27
|
:key="element.sortOrder"
|
|
28
28
|
:image="element"
|
|
29
29
|
:readonly="disabled"
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
<template #footer>
|
|
38
38
|
<VcFileUpload
|
|
39
39
|
v-if="!disabled && !hideAfterUpload"
|
|
40
|
-
class="m-2"
|
|
40
|
+
class="tw-m-2"
|
|
41
41
|
:icon="uploadIcon"
|
|
42
42
|
@upload="onUpload"
|
|
43
43
|
:variant="variant"
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
</draggable>
|
|
50
50
|
</div>
|
|
51
51
|
</template>
|
|
52
|
-
<div v-else class="flex justify-center p-5">
|
|
52
|
+
<div v-else class= "tw-flex tw-justify-center tw-p-5">
|
|
53
53
|
<VcHint>Gallery is empty</VcHint>
|
|
54
54
|
</div>
|
|
55
55
|
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
|
|
65
65
|
<script lang="ts" setup>
|
|
66
66
|
import { computed, PropType, ref } from "vue";
|
|
67
|
-
import { VcLabel, VcFileUpload } from "@/components";
|
|
67
|
+
import { VcLabel, VcFileUpload } from "@/ui/components";
|
|
68
68
|
import VcGalleryItem from "./_internal/vc-gallery-item/vc-gallery-item.vue";
|
|
69
69
|
import VcGalleryPreview from "./_internal/vc-gallery-preview/vc-gallery-preview.vue";
|
|
70
70
|
import { IImage } from "@/core/types";
|
|
@@ -20,13 +20,13 @@ const Template: Story = (args) => ({
|
|
|
20
20
|
template: `<vc-login-form v-bind="args">
|
|
21
21
|
<vc-input
|
|
22
22
|
ref="loginField"
|
|
23
|
-
class="mb-4 mt-1"
|
|
23
|
+
class="tw-mb-4 tw-mt-1"
|
|
24
24
|
label="Username"
|
|
25
25
|
placeholder="Enter username"
|
|
26
26
|
></vc-input>
|
|
27
27
|
<vc-input
|
|
28
28
|
ref="passwordField"
|
|
29
|
-
class="mb-4"
|
|
29
|
+
class="tw-mb-4"
|
|
30
30
|
label="Password"
|
|
31
31
|
placeholder="Enter password"
|
|
32
32
|
type="password"
|
|
@@ -34,12 +34,12 @@ const Template: Story = (args) => ({
|
|
|
34
34
|
<div
|
|
35
35
|
class="
|
|
36
36
|
flex
|
|
37
|
-
justify-center
|
|
38
|
-
items-center
|
|
39
|
-
pt-2
|
|
37
|
+
tw-justify-center
|
|
38
|
+
tw-items-center
|
|
39
|
+
tw-pt-2
|
|
40
40
|
"
|
|
41
41
|
>
|
|
42
|
-
<span class="grow basis-0"></span>
|
|
42
|
+
<span class="tw-grow tw-basis-0"></span>
|
|
43
43
|
<vc-button variant="primary">
|
|
44
44
|
Submit
|
|
45
45
|
</vc-button>
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
|
-
class="w-full h-full box-border flex flex-col items-center justify-center"
|
|
3
|
+
class="tw-w-full tw-h-full tw-box-border tw-flex tw-flex-col tw-items-center tw-justify-center"
|
|
4
4
|
:style="{
|
|
5
5
|
background: `url(${background}) center / cover no-repeat`,
|
|
6
6
|
}"
|
|
7
7
|
>
|
|
8
8
|
<div
|
|
9
|
-
class="h-[80px] w-[516px] max-w-[90%] mb-[50px] -mt-[90px]"
|
|
9
|
+
class="tw-h-[80px] tw-w-[516px] tw-max-w-[90%] tw-mb-[50px] -tw-mt-[90px]"
|
|
10
10
|
:style="{
|
|
11
11
|
background: `url(${logo}) center / contain no-repeat`,
|
|
12
12
|
}"
|
|
13
13
|
></div>
|
|
14
14
|
<div
|
|
15
|
-
class="w-[516px] max-w-[90%] bg-white rounded-md overflow-hidden shadow-[0_0_0_rgba(0,0,0,0.05)]"
|
|
15
|
+
class="tw-w-[516px] tw-max-w-[90%] tw-bg-white tw-rounded-md tw-overflow-hidden tw-shadow-[0_0_0_rgba(0,0,0,0.05)]"
|
|
16
16
|
>
|
|
17
17
|
<div
|
|
18
|
-
class="uppercase text-white bg-[#465769] h-[50px] px-[28px] text-xl flex items-center"
|
|
18
|
+
class="tw-uppercase tw-text-white tw-bg-[#465769] tw-h-[50px] tw-px-[28px] tw-text-xl tw-flex tw-items-center"
|
|
19
19
|
>
|
|
20
20
|
{{ title }}
|
|
21
21
|
</div>
|
|
22
|
-
<div class="pt-4 px-[28px] pb-[24px]">
|
|
22
|
+
<div class="tw-pt-4 tw-px-[28px] tw-pb-[24px]">
|
|
23
23
|
<slot></slot>
|
|
24
24
|
</div>
|
|
25
25
|
</div>
|
|
File without changes
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<div class="vc-popup__wrapper">
|
|
4
4
|
<div class="vc-popup__inner">
|
|
5
5
|
<div class="vc-popup__header">
|
|
6
|
-
<div class="truncate grow basis-0">
|
|
6
|
+
<div class="tw-truncate tw-grow tw-basis-0">
|
|
7
7
|
<slot name="title">{{ title }}</slot>
|
|
8
8
|
</div>
|
|
9
9
|
<VcIcon
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
></VcIcon>
|
|
15
15
|
</div>
|
|
16
16
|
|
|
17
|
-
<div class="vc-popup__content grow basis-0">
|
|
17
|
+
<div class="vc-popup__content tw-grow tw-basis-0">
|
|
18
18
|
<slot></slot>
|
|
19
19
|
</div>
|
|
20
20
|
</div>
|
|
@@ -46,51 +46,51 @@ defineEmits(["close"]);
|
|
|
46
46
|
|
|
47
47
|
<style lang="scss">
|
|
48
48
|
.vc-popup {
|
|
49
|
-
@apply fixed top-0 right-0 bottom-0 left-0 z-[9999] bg-[rgba(31,40,50,0.58)];
|
|
49
|
+
@apply tw-fixed tw-top-0 tw-right-0 tw-bottom-0 tw-left-0 tw-z-[9999] tw-bg-[rgba(31,40,50,0.58)];
|
|
50
50
|
|
|
51
51
|
&_small {
|
|
52
52
|
.vc-popup__wrapper {
|
|
53
|
-
@apply max-h-fit items-center flex grow-0 shrink-0 basis-auto [flex-direction:inherit] justify-center;
|
|
53
|
+
@apply tw-max-h-fit tw-items-center tw-flex tw-grow-0 tw-shrink-0 tw-basis-auto [flex-direction:inherit] tw-justify-center;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
.vc-popup__inner {
|
|
57
|
-
@apply max-w-[439px] w-full flex flex-col grow basis-0;
|
|
57
|
+
@apply tw-max-w-[439px] tw-w-full tw-flex tw-flex-col tw-grow tw-basis-0;
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
&_medium {
|
|
62
62
|
.vc-popup__wrapper {
|
|
63
|
-
@apply max-h-[75vh];
|
|
63
|
+
@apply tw-max-h-[75vh];
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
&_fullscreen {
|
|
68
68
|
.vc-popup__wrapper {
|
|
69
|
-
@apply max-h-[100vh];
|
|
69
|
+
@apply tw-max-h-[100vh];
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
&__wrapper {
|
|
74
|
-
@apply fixed top-2/4 -translate-y-2/4 right-0 bottom-0 left-0 flex grow shrink basis-auto flex-col h-full;
|
|
74
|
+
@apply tw-fixed tw-top-2/4 -tw-translate-y-2/4 tw-right-0 tw-bottom-0 tw-left-0 tw-flex tw-grow tw-shrink tw-basis-auto tw-flex-col tw-h-full;
|
|
75
75
|
|
|
76
76
|
.vc-app_phone & {
|
|
77
|
-
@apply max-h-[100vh];
|
|
77
|
+
@apply tw-max-h-[100vh];
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
&__inner {
|
|
82
|
-
@apply grow shrink basis-auto m-[40px] box-border bg-white rounded-[5px] overflow-hidden relative flex flex-col grow basis-0;
|
|
82
|
+
@apply tw-grow tw-shrink tw-basis-auto tw-m-[40px] tw-box-border tw-bg-white tw-rounded-[5px] tw-overflow-hidden tw-relative tw-flex tw-flex-col tw-grow tw-basis-0;
|
|
83
83
|
|
|
84
84
|
.vc-app_phone & {
|
|
85
|
-
@apply m-0 rounded-none;
|
|
85
|
+
@apply tw-m-0 tw-rounded-none;
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
&__header {
|
|
90
|
-
@apply h-[44px] px-4 bg-[#eef5fa] flex shrink-0 items-center;
|
|
90
|
+
@apply tw-h-[44px] tw-px-4 tw-bg-[#eef5fa] tw-flex tw-shrink-0 tw-items-center;
|
|
91
91
|
|
|
92
92
|
&-icon {
|
|
93
|
-
@apply cursor-pointer text-[#a1c0d4];
|
|
93
|
+
@apply tw-cursor-pointer tw-text-[#a1c0d4];
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
}
|
package/{components → ui/components}/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue
RENAMED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<template v-if="cell.type === 'money'">
|
|
4
4
|
<template v-if="value > 0">
|
|
5
5
|
<span>{{ Math.trunc(Number(value)) }}</span
|
|
6
|
-
><span class="text-[#a5a5a5] text-xs"
|
|
6
|
+
><span class="tw-text-[#a5a5a5] tw-text-xs"
|
|
7
7
|
>.{{
|
|
8
8
|
`${(Number(value) * 100) % 100}`.padEnd(2, "0").slice(0, 2)
|
|
9
9
|
}}</span
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
</template>
|
|
16
16
|
|
|
17
17
|
<!-- Date ago cell -->
|
|
18
|
-
<span v-else-if="cell.type === 'date-ago'" class="text-[#a5a5a5]">
|
|
18
|
+
<span v-else-if="cell.type === 'date-ago'" class="tw-text-[#a5a5a5]">
|
|
19
19
|
<template v-if="value">
|
|
20
20
|
{{ moment(value).fromNow() }}
|
|
21
21
|
</template>
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
v-else-if="
|
|
28
28
|
cell.type === 'date' || cell.type === 'time' || cell.type === 'date-time'
|
|
29
29
|
"
|
|
30
|
-
class="text-[#a5a5a5]"
|
|
30
|
+
class="tw-text-[#a5a5a5]"
|
|
31
31
|
>
|
|
32
32
|
<template v-if="value">
|
|
33
33
|
<template v-if="cell.format">
|
|
@@ -65,12 +65,12 @@
|
|
|
65
65
|
</template>
|
|
66
66
|
|
|
67
67
|
<!-- Status icon cell -->
|
|
68
|
-
<div v-else-if="cell.type === 'status-icon'" class="flex justify-center">
|
|
68
|
+
<div v-else-if="cell.type === 'status-icon'" class= "tw-flex tw-justify-center">
|
|
69
69
|
<VcStatusIcon :status="value"></VcStatusIcon>
|
|
70
70
|
</div>
|
|
71
71
|
|
|
72
72
|
<!-- Number cell -->
|
|
73
|
-
<span v-else-if="cell.type === 'number'" class="text-right">
|
|
73
|
+
<span v-else-if="cell.type === 'number'" class="tw-text-right">
|
|
74
74
|
{{ Number(value).toFixed(0) }}
|
|
75
75
|
</span>
|
|
76
76
|
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
import { computed } from "vue";
|
|
90
90
|
import moment from "moment";
|
|
91
91
|
import { ITableColumns } from "@/core/types";
|
|
92
|
-
import { VcImage, VcStatus, VcStatusIcon, VcLink } from "@/components";
|
|
92
|
+
import { VcImage, VcStatus, VcStatusIcon, VcLink } from "@/ui/components";
|
|
93
93
|
|
|
94
94
|
export interface Props {
|
|
95
95
|
cell: ITableColumns;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="font-medium text-base">
|
|
3
|
-
<span class="text-[color:var(--table-counter-label-color)]"
|
|
2
|
+
<div class="tw-font-medium tw-text-base">
|
|
3
|
+
<span class="tw-text-[color:var(--table-counter-label-color)]"
|
|
4
4
|
>{{ label }} </span
|
|
5
5
|
>
|
|
6
|
-
<span class="text-[color:var(--table-counter-value-color)]">{{
|
|
6
|
+
<span class="tw-text-[color:var(--table-counter-value-color)]">{{
|
|
7
7
|
value
|
|
8
8
|
}}</span>
|
|
9
9
|
</div>
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="relative overflow-visible">
|
|
2
|
+
<div class="tw-relative tw-overflow-visible">
|
|
3
3
|
<!-- Filter button -->
|
|
4
4
|
<div
|
|
5
|
-
class="rounded-[3px] bg-[#43b0e6] flex items-center px-[10px] text-white h-[38px] box-border cursor-pointer"
|
|
5
|
+
class="tw-rounded-[3px] tw-bg-[#43b0e6] tw-flex tw-items-center tw-px-[10px] tw-text-white tw-h-[38px] tw-box-border tw-cursor-pointer"
|
|
6
6
|
@click="openPanel($isMobile.value)"
|
|
7
7
|
ref="filterToggle"
|
|
8
8
|
>
|
|
9
9
|
<VcIcon icon="fas fa-filter" size="m" />
|
|
10
|
-
<span v-if="title" class="ml-[10px] font-medium">
|
|
10
|
+
<span v-if="title" class="tw-ml-[10px] tw-font-medium">
|
|
11
11
|
{{ title }}
|
|
12
12
|
</span>
|
|
13
13
|
<div
|
|
14
14
|
v-if="counter"
|
|
15
|
-
class="ml-[10px] rounded-[10px] bg-white text-[#43b0e6] h-[20px] min-w-[20px] leading-[20px] text-center font-medium"
|
|
15
|
+
class="tw-ml-[10px] tw-rounded-[10px] tw-bg-white tw-text-[#43b0e6] tw-h-[20px] tw-min-w-[20px] tw-leading-[20px] tw-text-center tw-font-medium"
|
|
16
16
|
>
|
|
17
17
|
{{ counter }}
|
|
18
18
|
</div>
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
<teleport to="body">
|
|
23
23
|
<div
|
|
24
24
|
:class="{
|
|
25
|
-
'vc-table-filter__panel_mobile fixed left-0 top-0 w-full bottom-0 z-[9999] bg-[rgba(128,140,153,0.6)] shadow-none rounded-none max-h-full max-w-full min-w-full':
|
|
25
|
+
'vc-table-filter__panel_mobile tw-fixed tw-left-0 tw-top-0 tw-w-full tw-bottom-0 tw-z-[9999] tw-bg-[rgba(128,140,153,0.6)] tw-shadow-none tw-rounded-none tw-max-h-full tw-max-w-full tw-min-w-full':
|
|
26
26
|
$isMobile.value,
|
|
27
|
-
'vc-table-filter__panel absolute max-h-[400px] max-w-[800px] min-w-[400px] z-[100] shadow-[1px_1px_11px_rgba(141,152,163,0.6)] rounded-[3px] overflow-hidden':
|
|
27
|
+
'vc-table-filter__panel tw-absolute tw-max-h-[400px] tw-max-w-[800px] tw-min-w-[400px] tw-z-[100] tw-shadow-[1px_1px_11px_rgba(141,152,163,0.6)] tw-rounded-[3px] tw-overflow-hidden':
|
|
28
28
|
!$isMobile.value,
|
|
29
29
|
}"
|
|
30
30
|
v-if="isPanelVisible"
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
ref="filterPanel"
|
|
33
33
|
>
|
|
34
34
|
<div
|
|
35
|
-
class="vc-table-filter__panel-inner bg-white box-border p-5 flex flex-col"
|
|
35
|
+
class="vc-table-filter__panel-inner tw-bg-white tw-box-border tw-p-5 tw-flex tw-flex-col"
|
|
36
36
|
@click.stop
|
|
37
37
|
>
|
|
38
38
|
<VcIcon
|
|
39
|
-
class="vc-table-filter__panel-close text-[#43b0e6] cursor-pointer self-end shrink-0"
|
|
39
|
+
class="vc-table-filter__panel-close tw-text-[#43b0e6] tw-cursor-pointer tw-self-end tw-shrink-0"
|
|
40
40
|
icon="fas fa-times"
|
|
41
41
|
size="xl"
|
|
42
42
|
@click="closePanel"
|
|
@@ -59,7 +59,7 @@ export default defineComponent({
|
|
|
59
59
|
|
|
60
60
|
<script lang="ts" setup>
|
|
61
61
|
import { createPopper, Instance } from "@popperjs/core";
|
|
62
|
-
import { VcIcon } from "@/components";
|
|
62
|
+
import { VcIcon } from "@/ui/components";
|
|
63
63
|
|
|
64
64
|
export interface Props {
|
|
65
65
|
title: string;
|
|
@@ -129,22 +129,22 @@ function destroyPopper() {
|
|
|
129
129
|
|
|
130
130
|
<style lang="scss">
|
|
131
131
|
.vc-table-filter {
|
|
132
|
-
@apply relative overflow-visible;
|
|
132
|
+
@apply tw-relative tw-overflow-visible;
|
|
133
133
|
|
|
134
134
|
&__panel {
|
|
135
135
|
&_mobile {
|
|
136
136
|
.vc-table-filter__panel {
|
|
137
137
|
&-inner {
|
|
138
|
-
@apply w-[280px] h-full;
|
|
138
|
+
@apply tw-w-[280px] tw-h-full;
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
&-close {
|
|
142
|
-
@apply self-start;
|
|
142
|
+
@apply tw-self-start;
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
.vc-row {
|
|
147
|
-
@apply block;
|
|
147
|
+
@apply tw-block;
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
|
-
class="relative flex flex-nowrap items-stretch transition
|
|
4
|
-
:class="{ 'transition-none': isMoving }"
|
|
3
|
+
class="tw-relative tw-flex tw-flex-nowrap tw-items-stretch tw-transition tw-duration-200"
|
|
4
|
+
:class="{ ' tw-transition-none': isMoving }"
|
|
5
5
|
:style="`transform: translateX(${offsetX}px)`"
|
|
6
6
|
@click="$emit('click')"
|
|
7
7
|
@touchstart="touchStart"
|
|
@@ -11,34 +11,34 @@
|
|
|
11
11
|
>
|
|
12
12
|
<!-- Left swipe actions-->
|
|
13
13
|
<div
|
|
14
|
-
class="flex-shrink-0 w-[80px] flex flex-col [justify-content:stretch] bg-[#a9bfd2]"
|
|
14
|
+
class= "tw-flex-shrink-0 tw-w-[80px] tw-flex tw-flex-col [justify-content:stretch] tw-bg-[#a9bfd2]"
|
|
15
15
|
v-if="leftSwipeActions && leftSwipeActions.length"
|
|
16
16
|
>
|
|
17
17
|
<div
|
|
18
|
-
class="flex grow basis-[1] flex-col justify-center items-center text-white"
|
|
18
|
+
class= "tw-flex tw-grow tw-basis-[1] tw-flex-col tw-justify-center tw-items-center tw-text-white"
|
|
19
19
|
:class="[`vc-table-mobile__item-action_${leftSwipeActions[0].variant}`]"
|
|
20
20
|
@click.stop="leftSwipeActions[0].clickHandler(item)"
|
|
21
21
|
>
|
|
22
22
|
<VcIcon :icon="leftSwipeActions[0].icon"></VcIcon>
|
|
23
|
-
<div class="mt-1 text-lg">
|
|
23
|
+
<div class="tw-mt-1 tw-text-lg">
|
|
24
24
|
{{ leftSwipeActions[0].title }}
|
|
25
25
|
</div>
|
|
26
26
|
</div>
|
|
27
27
|
</div>
|
|
28
28
|
|
|
29
|
-
<div class="flex-shrink-0 w-full">
|
|
29
|
+
<div class= "tw-flex-shrink-0 tw-w-full">
|
|
30
30
|
<!-- Mobile item slot content -->
|
|
31
31
|
<slot></slot>
|
|
32
32
|
</div>
|
|
33
33
|
|
|
34
34
|
<!-- Item actions -->
|
|
35
35
|
<div
|
|
36
|
-
class="flex-shrink-0 w-[80px] flex flex-col [justify-content:stretch] bg-[#a9bfd2]"
|
|
36
|
+
class= "tw-flex-shrink-0 tw-w-[80px] tw-flex tw-flex-col [justify-content:stretch] tw-bg-[#a9bfd2]"
|
|
37
37
|
v-if="rightSwipeActions && rightSwipeActions.length"
|
|
38
38
|
>
|
|
39
39
|
<!-- First available action -->
|
|
40
40
|
<div
|
|
41
|
-
class="flex grow basis-[1] flex-col justify-center items-center text-white"
|
|
41
|
+
class= "tw-flex tw-grow tw-basis-[1] tw-flex-col tw-justify-center tw-items-center tw-text-white"
|
|
42
42
|
:class="[
|
|
43
43
|
`vc-table-mobile__item-action_${rightSwipeActions[0].variant}`,
|
|
44
44
|
]"
|
|
@@ -53,14 +53,14 @@
|
|
|
53
53
|
<!-- Second available action -->
|
|
54
54
|
<div
|
|
55
55
|
v-if="rightSwipeActions.length === 2"
|
|
56
|
-
class="flex grow basis-[1] flex-col justify-center items-center text-white"
|
|
56
|
+
class= "tw-flex tw-grow tw-basis-[1] tw-flex-col tw-justify-center tw-items-center tw-text-white"
|
|
57
57
|
:class="[
|
|
58
58
|
`vc-table-mobile__item-action_${rightSwipeActions[1].variant}`,
|
|
59
59
|
]"
|
|
60
60
|
@click.stop="rightSwipeActions[1].clickHandler(item)"
|
|
61
61
|
>
|
|
62
62
|
<VcIcon :icon="rightSwipeActions[1].icon"></VcIcon>
|
|
63
|
-
<div class="mt-1 text-lg">
|
|
63
|
+
<div class="tw-mt-1 tw-text-lg">
|
|
64
64
|
{{ rightSwipeActions[1].title }}
|
|
65
65
|
</div>
|
|
66
66
|
</div>
|
|
@@ -68,44 +68,44 @@
|
|
|
68
68
|
<!-- Other available actions -->
|
|
69
69
|
<template v-if="rightSwipeActions.length > 2">
|
|
70
70
|
<div
|
|
71
|
-
class="flex grow basis-[1] flex-col justify-center items-center text-white"
|
|
71
|
+
class= "tw-flex tw-grow tw-basis-[1] tw-flex-col tw-justify-center tw-items-center tw-text-white"
|
|
72
72
|
@click.stop="isActionsPopupVisible = true"
|
|
73
73
|
>
|
|
74
74
|
<VcIcon icon="fas fa-ellipsis-h"></VcIcon>
|
|
75
|
-
<div class="mt-1 text-lg">More</div>
|
|
75
|
+
<div class="tw-mt-1 tw-text-lg">More</div>
|
|
76
76
|
</div>
|
|
77
77
|
|
|
78
78
|
<!-- Actions popup -->
|
|
79
79
|
<teleport to="body" v-if="isActionsPopupVisible">
|
|
80
80
|
<div
|
|
81
|
-
class="absolute left-0 top-0 right-0 bottom-0 bg-[rgba(107,121,135,0.15)] flex items-center justify-center z-[99]"
|
|
81
|
+
class="tw-absolute tw-left-0 tw-top-0 tw-right-0 tw-bottom-0 tw-bg-[rgba(107,121,135,0.15)] tw-flex tw-items-center tw-justify-center tw-z-[99]"
|
|
82
82
|
>
|
|
83
83
|
<div
|
|
84
|
-
class="bg-white rounded-[6px] overflow-hidden p-5 max-w-[80%] w-[350px] border border-solid border-[#eef0f2] box-border shadow-[1px_1px_22px_rgba(126,142,157,0.2)]"
|
|
84
|
+
class="tw-bg-white tw-rounded-[6px] tw-overflow-hidden tw-p-5 tw-max-w-[80%] tw-w-[350px] tw-border tw-border-solid tw-border-[#eef0f2] tw-box-border tw-shadow-[1px_1px_22px_rgba(126,142,157,0.2)]"
|
|
85
85
|
>
|
|
86
|
-
<div class="flex w-full items-center">
|
|
86
|
+
<div class= "tw-flex tw-w-full tw-items-center">
|
|
87
87
|
<span
|
|
88
|
-
class="grow text-[#2e3d4e] text-[19px] font-semibold tracking-[-0.01em]"
|
|
88
|
+
class="tw-grow tw-text-[#2e3d4e] tw-text-[19px] tw-font-semibold tw-tracking-[-0.01em]"
|
|
89
89
|
>
|
|
90
90
|
{{ $t("All actions") }}
|
|
91
91
|
</span>
|
|
92
92
|
<VcIcon
|
|
93
|
-
class="text-[#c2d7e4]"
|
|
93
|
+
class="tw-text-[#c2d7e4]"
|
|
94
94
|
icon="fas fa-times-circle"
|
|
95
95
|
size="xl"
|
|
96
96
|
@click="isActionsPopupVisible = false"
|
|
97
97
|
></VcIcon>
|
|
98
98
|
</div>
|
|
99
99
|
|
|
100
|
-
<div class="flex flex-wrap my-5 justify-between">
|
|
100
|
+
<div class= "tw-flex tw-flex-wrap tw-my-5 tw-justify-between">
|
|
101
101
|
<div
|
|
102
102
|
v-for="(itemAction, i) in itemActions"
|
|
103
103
|
:key="i"
|
|
104
|
-
class="flex grow shrink-0 flex-col items-center text-[#319ed4] my-2 box-border p-1 max-w-[80px]"
|
|
104
|
+
class= "tw-flex tw-grow tw-shrink-0 tw-flex-col tw-items-center tw-text-[#319ed4] tw-my-2 tw-box-border tw-p-1 tw-max-w-[80px]"
|
|
105
105
|
@click="itemAction.clickHandler(item)"
|
|
106
106
|
>
|
|
107
107
|
<VcIcon :icon="itemAction.icon" size="xl"></VcIcon>
|
|
108
|
-
<div class="text-base mt-2 text-center">
|
|
108
|
+
<div class="tw-text-base tw-mt-2 tw-text-center">
|
|
109
109
|
{{ itemAction.title }}
|
|
110
110
|
</div>
|
|
111
111
|
</div>
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
<script lang="ts" setup>
|
|
122
122
|
import { computed, ref, watch } from "vue";
|
|
123
123
|
import { IActionBuilderResult } from "@/core/types";
|
|
124
|
-
import { VcIcon } from "@/components";
|
|
124
|
+
import { VcIcon } from "@/ui/components";
|
|
125
125
|
|
|
126
126
|
export interface Props {
|
|
127
127
|
item: {
|
|
@@ -261,11 +261,11 @@ function touchCancel(): void {
|
|
|
261
261
|
.vc-table-mobile__item {
|
|
262
262
|
&-action {
|
|
263
263
|
&_success {
|
|
264
|
-
@apply bg-[#87b563];
|
|
264
|
+
@apply tw-bg-[#87b563];
|
|
265
265
|
}
|
|
266
266
|
|
|
267
267
|
&_danger {
|
|
268
|
-
@apply bg-[#ff4a4a];
|
|
268
|
+
@apply tw-bg-[#ff4a4a];
|
|
269
269
|
}
|
|
270
270
|
}
|
|
271
271
|
}
|
|
@@ -18,13 +18,13 @@ const Template: Story = (args) => ({
|
|
|
18
18
|
return { args };
|
|
19
19
|
},
|
|
20
20
|
template: `
|
|
21
|
-
<div class="flex h-[400px] overflow-hidden">
|
|
21
|
+
<div class= "tw-flex tw-h-[400px] tw-overflow-hidden">
|
|
22
22
|
<vc-table v-bind="args">
|
|
23
23
|
<template v-slot:item_img="itemData">
|
|
24
|
-
<vc-image aspect="1x1" size="auto" :
|
|
24
|
+
<vc-image aspect="1x1" size="auto" :tw-border-ed="true" :src="itemData.item.img"></vc-image>
|
|
25
25
|
</template>
|
|
26
26
|
<template v-slot:item_name="itemData">
|
|
27
|
-
<div class="flex flex-col">
|
|
27
|
+
<div class= "tw-flex tw-flex-col">
|
|
28
28
|
<div>{{ itemData.item.name }}</div>
|
|
29
29
|
<vc-hint>{{ itemData.item.description }}</vc-hint>
|
|
30
30
|
</div>
|