@vc-shell/framework 1.0.44 → 1.0.46
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/types/index.ts +1 -1
- package/dist/core/types/index.d.ts +1 -1
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/framework.js +73 -59
- package/dist/framework.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/molecules/vc-select/vc-select-model.d.ts +4 -4
- package/dist/ui/components/molecules/vc-select/vc-select-model.d.ts.map +1 -1
- package/package.json +9 -8
- package/shared/assets/components/assets-details/assets-details.vue +9 -10
- package/ui/components/atoms/vc-col/vc-col.vue +10 -6
- package/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue +12 -5
- package/ui/components/molecules/vc-select/vc-select-model.ts +14 -13
- package/ui/components/molecules/vc-slider/vc-slider.vue +3 -3
- package/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue +3 -3
- package/ui/components/organisms/vc-blade/vc-blade.vue +5 -2
- package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue +12 -12
- package/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue +15 -11
- package/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue +13 -8
- package/ui/components/organisms/vc-table/vc-table.vue +12 -8
|
@@ -60,7 +60,7 @@ export interface VcSelectProps {
|
|
|
60
60
|
* Default value: []
|
|
61
61
|
*/
|
|
62
62
|
options?: ((keyword?: string, skip?: number, ids?: string[]) => Promise<{
|
|
63
|
-
results?:
|
|
63
|
+
results?: object[];
|
|
64
64
|
totalCount?: number;
|
|
65
65
|
}>) | any[] | undefined;
|
|
66
66
|
/**
|
|
@@ -109,18 +109,18 @@ export interface VcSelectEmits {
|
|
|
109
109
|
* @param event Emitted event name
|
|
110
110
|
* @param value New model value
|
|
111
111
|
*/
|
|
112
|
-
|
|
112
|
+
"update:modelValue": (value: any) => void;
|
|
113
113
|
/**
|
|
114
114
|
* Emitted when user wants to filter a value
|
|
115
115
|
* @param event Emitted event name
|
|
116
116
|
* @param inputValue What the user typed
|
|
117
117
|
*/
|
|
118
|
-
|
|
118
|
+
search: (inputValue: string) => void;
|
|
119
119
|
/**
|
|
120
120
|
* Emitted when the select options list is hidden
|
|
121
121
|
* @param event Emitted event name
|
|
122
122
|
*/
|
|
123
|
-
|
|
123
|
+
close: () => void;
|
|
124
124
|
}
|
|
125
125
|
export interface VcSelectSlots {
|
|
126
126
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vc-select-model.d.ts","sourceRoot":"","sources":["../../../../../ui/components/molecules/vc-select/vc-select-model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC;AAE5B,MAAM,MAAM,UAAU,GAClB,CAAC,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,MAAM,CAAC,GACtD,MAAM,GACN,SAAS,CAAC;AAEd,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B;;OAEG;IACH,UAAU,EAAE,GAAG,CAAC;IAChB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC5B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAChC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/B;;;OAGG;IACH,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"vc-select-model.d.ts","sourceRoot":"","sources":["../../../../../ui/components/molecules/vc-select/vc-select-model.ts"],"names":[],"mappings":"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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vc-shell/framework",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.46",
|
|
4
4
|
"main": "./dist/framework.js",
|
|
5
5
|
"module": "./dist/framework.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -28,7 +28,8 @@
|
|
|
28
28
|
"scripts": {
|
|
29
29
|
"build": "vite build",
|
|
30
30
|
"development": "vite build --watch -m development",
|
|
31
|
-
"watch": "vite build --watch"
|
|
31
|
+
"watch": "vite build --watch",
|
|
32
|
+
"type-check": "vue-tsc --noEmit"
|
|
32
33
|
},
|
|
33
34
|
"dependencies": {
|
|
34
35
|
"@popperjs/core": "^2.11.0",
|
|
@@ -39,7 +40,7 @@
|
|
|
39
40
|
"client-oauth2": "^4.3.3",
|
|
40
41
|
"moment": "^2.29.1",
|
|
41
42
|
"normalize.css": "^8.0.1",
|
|
42
|
-
"swiper": "^6.
|
|
43
|
+
"swiper": "^6.8.4",
|
|
43
44
|
"vue-currency-input": "~2.5.1",
|
|
44
45
|
"vue-i18n": "^9.1.7",
|
|
45
46
|
"vue-logger-plugin": "^2.1.2",
|
|
@@ -50,11 +51,11 @@
|
|
|
50
51
|
"devDependencies": {
|
|
51
52
|
"@originjs/vite-plugin-commonjs": "^1.0.3",
|
|
52
53
|
"@rollup/plugin-commonjs": "^21.0.2",
|
|
53
|
-
"@vc-shell/api-client-generator": "^1.0.
|
|
54
|
-
"@vc-shell/config-generator": "^1.0.
|
|
55
|
-
"@vue-macros/volar": "^0.
|
|
54
|
+
"@vc-shell/api-client-generator": "^1.0.46",
|
|
55
|
+
"@vc-shell/config-generator": "^1.0.46",
|
|
56
|
+
"@vue-macros/volar": "^0.8.1",
|
|
56
57
|
"sass": "^1.49.0",
|
|
57
|
-
"typescript": "^4.
|
|
58
|
+
"typescript": "^4.9.5",
|
|
58
59
|
"unplugin-vue-macros": "^1.1.1",
|
|
59
60
|
"url-pattern": "^1.0.3"
|
|
60
61
|
},
|
|
@@ -67,5 +68,5 @@
|
|
|
67
68
|
"access": "public",
|
|
68
69
|
"registry": "https://registry.npmjs.org/"
|
|
69
70
|
},
|
|
70
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "196999893a55b5762895b9de2249abbe388b1a6f"
|
|
71
72
|
}
|
|
@@ -68,19 +68,12 @@ import {
|
|
|
68
68
|
VcTextarea,
|
|
69
69
|
} from "@/ui/components";
|
|
70
70
|
|
|
71
|
-
interface ILocalImage {
|
|
72
|
-
url: string;
|
|
73
|
-
name: string;
|
|
74
|
-
altText: string;
|
|
75
|
-
description: string;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
71
|
export interface Props {
|
|
79
72
|
expanded?: boolean;
|
|
80
73
|
closable?: boolean;
|
|
81
74
|
options?: {
|
|
82
|
-
editableAsset
|
|
83
|
-
sortHandler
|
|
75
|
+
editableAsset: ILocalImage;
|
|
76
|
+
sortHandler: (remove: boolean, localImage: ILocalImage) => void;
|
|
84
77
|
};
|
|
85
78
|
}
|
|
86
79
|
|
|
@@ -89,10 +82,16 @@ export interface Emits {
|
|
|
89
82
|
(event: "close:blade"): void;
|
|
90
83
|
}
|
|
91
84
|
|
|
85
|
+
export interface ILocalImage {
|
|
86
|
+
url: string;
|
|
87
|
+
name: string;
|
|
88
|
+
altText: string;
|
|
89
|
+
description: string;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
92
|
const props = withDefaults(defineProps<Props>(), {
|
|
93
93
|
expanded: true,
|
|
94
94
|
closable: true,
|
|
95
|
-
options: () => ({}),
|
|
96
95
|
});
|
|
97
96
|
|
|
98
97
|
const emit = defineEmits<Emits>();
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
2
|
+
<div
|
|
3
|
+
class="vc-col tw-flex tw-flex-col tw-min-w-0 tw-basis-0"
|
|
4
|
+
:style="{ flexGrow: parseInt(size) }"
|
|
5
|
+
>
|
|
3
6
|
<slot></slot>
|
|
4
7
|
</div>
|
|
5
8
|
</template>
|
|
6
9
|
|
|
7
10
|
<script lang="ts" setup>
|
|
8
|
-
|
|
9
|
-
size:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
export interface Props {
|
|
12
|
+
size: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
withDefaults(defineProps<Props>(), {
|
|
16
|
+
size: "1",
|
|
13
17
|
});
|
|
14
18
|
</script>
|
|
15
19
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div v-if="items" class=
|
|
2
|
+
<div v-if="items" class="tw-flex tw-items-center tw-flex-nowrap">
|
|
3
3
|
<VcBreadcrumbsItem
|
|
4
4
|
v-for="(item, i) in items"
|
|
5
5
|
:key="item.id"
|
|
@@ -12,10 +12,17 @@
|
|
|
12
12
|
<script lang="ts" setup>
|
|
13
13
|
import VcBreadcrumbsItem from "./_internal/vc-breadcrumbs-item/vc-breadcrumbs-item.vue";
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
export interface Props {
|
|
16
16
|
items: {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
current: boolean;
|
|
18
|
+
icon: string;
|
|
19
|
+
title: string;
|
|
20
|
+
clickHandler: () => void;
|
|
21
|
+
id: string;
|
|
22
|
+
}[];
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
withDefaults(defineProps<Props>(), {
|
|
26
|
+
items: () => [],
|
|
20
27
|
});
|
|
21
28
|
</script>
|
|
@@ -65,16 +65,16 @@ export interface VcSelectProps {
|
|
|
65
65
|
* Default value: []
|
|
66
66
|
*/
|
|
67
67
|
options?:
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
68
|
+
| ((
|
|
69
|
+
keyword?: string,
|
|
70
|
+
skip?: number,
|
|
71
|
+
ids?: string[]
|
|
72
|
+
) => Promise<{
|
|
73
|
+
results?: object[];
|
|
74
|
+
totalCount?: number;
|
|
75
|
+
}>)
|
|
76
|
+
| any[]
|
|
77
|
+
| undefined;
|
|
78
78
|
/**
|
|
79
79
|
* Property of option which holds the 'value'
|
|
80
80
|
* Default value: id
|
|
@@ -121,18 +121,19 @@ export interface VcSelectEmits {
|
|
|
121
121
|
* @param event Emitted event name
|
|
122
122
|
* @param value New model value
|
|
123
123
|
*/
|
|
124
|
-
|
|
124
|
+
"update:modelValue": (value: any) => void;
|
|
125
125
|
/**
|
|
126
126
|
* Emitted when user wants to filter a value
|
|
127
127
|
* @param event Emitted event name
|
|
128
128
|
* @param inputValue What the user typed
|
|
129
129
|
*/
|
|
130
|
-
|
|
130
|
+
search: (inputValue: string) => void;
|
|
131
|
+
|
|
131
132
|
/**
|
|
132
133
|
* Emitted when the select options list is hidden
|
|
133
134
|
* @param event Emitted event name
|
|
134
135
|
*/
|
|
135
|
-
|
|
136
|
+
close: () => void;
|
|
136
137
|
}
|
|
137
138
|
export interface VcSelectSlots {
|
|
138
139
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="vc-slider tw-relative">
|
|
3
|
-
<swiper
|
|
3
|
+
<swiper
|
|
4
4
|
:class="[
|
|
5
5
|
'vc-slider__swiper',
|
|
6
6
|
{
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
<swiper-slide v-for="(slide, i) in slides" :key="i">
|
|
17
17
|
<slot :slide="slide"></slot>
|
|
18
18
|
</swiper-slide>
|
|
19
|
-
</swiper
|
|
19
|
+
</swiper>
|
|
20
20
|
<!-- Navigation buttons-->
|
|
21
21
|
<div v-show="navigation">
|
|
22
22
|
<div class="vc-slider__prev tw-left-0">
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
|
|
40
40
|
<script lang="ts" setup>
|
|
41
41
|
import { computed } from "vue";
|
|
42
|
-
import { Swiper
|
|
42
|
+
import { Swiper, SwiperSlide } from "swiper/vue";
|
|
43
43
|
import SwiperCore, { Navigation } from "swiper";
|
|
44
44
|
import "swiper/swiper-bundle.min.css";
|
|
45
45
|
import "swiper/swiper.min.css";
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
<div
|
|
3
3
|
class="vc-app-menu-item"
|
|
4
4
|
:class="[
|
|
5
|
-
{ 'vc-app-menu-item_active': isActive && !children.length },
|
|
6
|
-
{ 'vc-app-menu-item_no-hover': children.length },
|
|
5
|
+
{ 'vc-app-menu-item_active': isActive && !Object.keys(children).length },
|
|
6
|
+
{ 'vc-app-menu-item_no-hover': Object.keys(children).length },
|
|
7
7
|
]"
|
|
8
8
|
@click="$emit('onClick')"
|
|
9
9
|
>
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
class="vc-app-menu-item__title-icon"
|
|
23
23
|
icon="fas fa-chevron-down"
|
|
24
24
|
size="xs"
|
|
25
|
-
v-if="children.length"
|
|
25
|
+
v-if="Object.keys(children).length"
|
|
26
26
|
></VcIcon>
|
|
27
27
|
</div>
|
|
28
28
|
</div>
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
|
-
class="vc-blade tw-relative tw-flex tw-shrink-0 tw-flex-col tw-bg-[color:var(--blade-background-color)] tw-rounded-[var(--blade-border-radius)] tw-shadow-[2px_2px_8px_rgba(126,142,157,0.14)] tw-my-4 tw-mx-2 tw-overflow-hidden
|
|
3
|
+
class="vc-blade tw-relative tw-flex tw-shrink-0 tw-flex-col tw-bg-[color:var(--blade-background-color)] tw-rounded-[var(--blade-border-radius)] tw-shadow-[2px_2px_8px_rgba(126,142,157,0.14)] tw-my-4 tw-mx-2 tw-overflow-hidden tw-transition-[width] tw-duration-200"
|
|
4
4
|
:style="{ width: typeof width === 'number' ? `${width}px` : width }"
|
|
5
|
-
:class="[
|
|
5
|
+
:class="[
|
|
6
|
+
$attrs.class,
|
|
7
|
+
{ '!tw-w-full !tw-shrink': $isMobile.value || expanded },
|
|
8
|
+
]"
|
|
6
9
|
>
|
|
7
10
|
<!-- Init blade header -->
|
|
8
11
|
<VcBladeHeader
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
v-if="
|
|
4
4
|
(property.dictionary || property.isDictionary) && !property.multivalue
|
|
5
5
|
"
|
|
6
|
-
v-slot="{
|
|
6
|
+
v-slot="{ errorMessage, handleChange, errors }"
|
|
7
7
|
:name="property.displayName || property.name"
|
|
8
8
|
:modelValue="getter(property, true)"
|
|
9
9
|
:rules="rules"
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
property.multivalue &&
|
|
39
39
|
!(property.dictionary || property.isDictionary)
|
|
40
40
|
"
|
|
41
|
-
v-slot="{
|
|
41
|
+
v-slot="{ errorMessage, handleChange }"
|
|
42
42
|
:name="property.name"
|
|
43
43
|
:modelValue="property.values"
|
|
44
44
|
:rules="rules"
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
|
|
97
97
|
<Field
|
|
98
98
|
v-else-if="property.valueType === 'ShortText'"
|
|
99
|
-
v-slot="{
|
|
99
|
+
v-slot="{ errorMessage, handleChange, errors }"
|
|
100
100
|
:name="property.displayName || property.name"
|
|
101
101
|
:modelValue="getter(property)"
|
|
102
102
|
:rules="rules"
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
|
|
123
123
|
<Field
|
|
124
124
|
v-else-if="property.valueType === 'Number' && property.multivalue"
|
|
125
|
-
v-slot="{
|
|
125
|
+
v-slot="{ errorMessage, handleChange }"
|
|
126
126
|
:name="property.name"
|
|
127
127
|
:modelValue="property.values"
|
|
128
128
|
:rules="rules"
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
|
|
148
148
|
<Field
|
|
149
149
|
v-else-if="property.valueType === 'Number'"
|
|
150
|
-
v-slot="{
|
|
150
|
+
v-slot="{ errorMessage, handleChange, errors }"
|
|
151
151
|
:name="property.name"
|
|
152
152
|
:modelValue="getter(property)"
|
|
153
153
|
:rules="rules"
|
|
@@ -174,7 +174,7 @@
|
|
|
174
174
|
|
|
175
175
|
<Field
|
|
176
176
|
v-else-if="property.valueType === 'Integer'"
|
|
177
|
-
v-slot="{
|
|
177
|
+
v-slot="{ errorMessage, handleChange, errors }"
|
|
178
178
|
:name="property.name"
|
|
179
179
|
:modelValue="getter(property)"
|
|
180
180
|
:rules="rules"
|
|
@@ -202,7 +202,7 @@
|
|
|
202
202
|
|
|
203
203
|
<Field
|
|
204
204
|
v-else-if="property.valueType === 'DateTime'"
|
|
205
|
-
v-slot="{
|
|
205
|
+
v-slot="{ errorMessage, handleChange, errors }"
|
|
206
206
|
:name="property.name"
|
|
207
207
|
:modelValue="getter(property)"
|
|
208
208
|
:rules="rules"
|
|
@@ -228,7 +228,7 @@
|
|
|
228
228
|
|
|
229
229
|
<Field
|
|
230
230
|
v-else-if="property.valueType === 'LongText'"
|
|
231
|
-
v-slot="{
|
|
231
|
+
v-slot="{ errorMessage, handleChange }"
|
|
232
232
|
:name="property.name"
|
|
233
233
|
:modelValue="getter(property)"
|
|
234
234
|
:rules="rules"
|
|
@@ -252,7 +252,7 @@
|
|
|
252
252
|
|
|
253
253
|
<Field
|
|
254
254
|
v-else-if="property.valueType === 'Boolean'"
|
|
255
|
-
v-slot="{
|
|
255
|
+
v-slot="{ errorMessage, handleChange }"
|
|
256
256
|
:name="property.displayName || property.name"
|
|
257
257
|
:modelValue="getter(property)"
|
|
258
258
|
:rules="rules"
|
|
@@ -277,7 +277,7 @@
|
|
|
277
277
|
|
|
278
278
|
<Field
|
|
279
279
|
v-else-if="property.valueType === 'Html'"
|
|
280
|
-
v-slot="{
|
|
280
|
+
v-slot="{ errorMessage, handleChange }"
|
|
281
281
|
:name="property.displayName || property.name"
|
|
282
282
|
:modelValue="getter(property)"
|
|
283
283
|
:rules="rules"
|
|
@@ -307,12 +307,12 @@ import { ref, onMounted, computed } from "vue";
|
|
|
307
307
|
import { useI18n } from "@/core/composables";
|
|
308
308
|
import { Field } from "vee-validate";
|
|
309
309
|
|
|
310
|
-
|
|
310
|
+
type IValidationRules = {
|
|
311
311
|
required?: boolean;
|
|
312
312
|
min?: number;
|
|
313
313
|
max?: number;
|
|
314
314
|
regex?: RegExp;
|
|
315
|
-
}
|
|
315
|
+
};
|
|
316
316
|
|
|
317
317
|
interface IDisplayName {
|
|
318
318
|
languageCode: string;
|
package/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue
CHANGED
|
@@ -7,7 +7,9 @@
|
|
|
7
7
|
<span>)</span>
|
|
8
8
|
</div>
|
|
9
9
|
</template>
|
|
10
|
-
<div
|
|
10
|
+
<div
|
|
11
|
+
class="tw-w-full tw-h-full tw-box-border tw-flex tw-flex-col tw-items-center"
|
|
12
|
+
>
|
|
11
13
|
<div class="tw-box-border p-5 tw-grow tw-basis-0 tw-w-full">
|
|
12
14
|
<div
|
|
13
15
|
class="bg-contain tw-bg-no-repeat tw-bg-center tw-w-full tw-h-full tw-box-border"
|
|
@@ -56,20 +58,22 @@
|
|
|
56
58
|
import { computed, ref } from "vue";
|
|
57
59
|
import { VcPopup } from "@/ui/components";
|
|
58
60
|
|
|
59
|
-
|
|
60
|
-
images
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
export interface Props {
|
|
62
|
+
images?: {
|
|
63
|
+
title: string;
|
|
64
|
+
name: string;
|
|
65
|
+
url: string;
|
|
66
|
+
}[];
|
|
67
|
+
index: number;
|
|
68
|
+
}
|
|
64
69
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
},
|
|
70
|
+
const props = withDefaults(defineProps<Props>(), {
|
|
71
|
+
images: () => [],
|
|
72
|
+
index: 0,
|
|
69
73
|
});
|
|
70
74
|
|
|
71
75
|
const localIndex = ref(props.index);
|
|
72
|
-
const currentImage = computed(() => props.images[localIndex.value]
|
|
76
|
+
const currentImage = computed(() => props.images[localIndex.value]);
|
|
73
77
|
|
|
74
78
|
const copyLink = (link: string) => {
|
|
75
79
|
if (link.charAt(0) === "/") {
|
|
@@ -65,7 +65,10 @@
|
|
|
65
65
|
</template>
|
|
66
66
|
|
|
67
67
|
<!-- Status icon cell -->
|
|
68
|
-
<div
|
|
68
|
+
<div
|
|
69
|
+
v-else-if="cell.type === 'status-icon'"
|
|
70
|
+
class="tw-flex tw-justify-center"
|
|
71
|
+
>
|
|
69
72
|
<VcStatusIcon :status="value"></VcStatusIcon>
|
|
70
73
|
</div>
|
|
71
74
|
|
|
@@ -102,12 +105,14 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
102
105
|
});
|
|
103
106
|
|
|
104
107
|
const locale = window.navigator.language;
|
|
105
|
-
const value = computed(() =>
|
|
106
|
-
(props.cell.field || props.cell.id)
|
|
108
|
+
const value = computed(() => {
|
|
109
|
+
return (props.cell.field || props.cell.id)
|
|
107
110
|
.split(".")
|
|
108
|
-
.reduce(
|
|
109
|
-
(p
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
);
|
|
111
|
+
.reduce((p: { [x: string]: unknown }, c: string) => {
|
|
112
|
+
if (p && Array.isArray(p) && p.length) {
|
|
113
|
+
return (p && p[0][c]) || null;
|
|
114
|
+
}
|
|
115
|
+
return (p && p[c]) || null;
|
|
116
|
+
}, props.item);
|
|
117
|
+
});
|
|
113
118
|
</script>
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
2
|
+
<div
|
|
3
|
+
class="tw-relative tw-overflow-hidden tw-flex tw-flex-col tw-grow tw-basis-0"
|
|
4
|
+
>
|
|
3
5
|
<!-- Header slot with filter and searchbar -->
|
|
4
6
|
<slot
|
|
5
7
|
name="header"
|
|
@@ -11,7 +13,9 @@
|
|
|
11
13
|
activeFilterCount)
|
|
12
14
|
"
|
|
13
15
|
>
|
|
14
|
-
<div
|
|
16
|
+
<div
|
|
17
|
+
class="tw-shrink-0 tw-flex tw-items-center tw-justify-between tw-p-4"
|
|
18
|
+
>
|
|
15
19
|
<!-- Table filter mobile button -->
|
|
16
20
|
<div v-if="$isMobile.value && $slots['filters']" class="tw-mr-3">
|
|
17
21
|
<VcTableFilter :counter="activeFilterCount">
|
|
@@ -46,7 +50,7 @@
|
|
|
46
50
|
</div>
|
|
47
51
|
</slot>
|
|
48
52
|
|
|
49
|
-
<div class=
|
|
53
|
+
<div class="tw-flex tw-relative tw-overflow-hidden tw-grow">
|
|
50
54
|
<!-- Table loading overlay -->
|
|
51
55
|
<VcLoading :active="loading"></VcLoading>
|
|
52
56
|
|
|
@@ -92,7 +96,7 @@
|
|
|
92
96
|
class="tw-h-[42px] tw-bg-[#f9f9f9] !tw-border-0 tw-shadow-[inset_0px_1px_0px_#eaedf3,_inset_0px_-1px_0px_#eaedf3] tw-box-border sticky tw-top-0 tw-select-none tw-overflow-hidden tw-z-[1]"
|
|
93
97
|
width="50"
|
|
94
98
|
>
|
|
95
|
-
<div class=
|
|
99
|
+
<div class="tw-flex tw-justify-center tw-items-center">
|
|
96
100
|
<VcCheckbox
|
|
97
101
|
:modelValue="headerCheckbox"
|
|
98
102
|
@update:modelValue="processHeaderCheckbox"
|
|
@@ -111,7 +115,7 @@
|
|
|
111
115
|
@click="handleHeaderClick(item)"
|
|
112
116
|
>
|
|
113
117
|
<div
|
|
114
|
-
class=
|
|
118
|
+
class="tw-flex tw-items-center tw-flex-nowrap"
|
|
115
119
|
:class="tableAlignment[item.align]"
|
|
116
120
|
>
|
|
117
121
|
<div>
|
|
@@ -126,7 +130,7 @@
|
|
|
126
130
|
></VcIcon>
|
|
127
131
|
</div>
|
|
128
132
|
<div
|
|
129
|
-
class=
|
|
133
|
+
class="tw-flex tw-flex-col tw-ml-1 tw-invisible group-hover:tw-visible"
|
|
130
134
|
v-else
|
|
131
135
|
>
|
|
132
136
|
<VcIcon size="xs" icon="fas fa-caret-up"></VcIcon>
|
|
@@ -158,7 +162,7 @@
|
|
|
158
162
|
@mouseleave="closeActions"
|
|
159
163
|
>
|
|
160
164
|
<td v-if="multiselect" width="50">
|
|
161
|
-
<div class=
|
|
165
|
+
<div class="tw-flex tw-justify-center tw-items-center">
|
|
162
166
|
<VcCheckbox
|
|
163
167
|
:modelValue="checkboxes[item.id]"
|
|
164
168
|
@update:modelValue="processCheckbox(item.id, $event)"
|
|
@@ -202,7 +206,7 @@
|
|
|
202
206
|
role="tooltip"
|
|
203
207
|
>
|
|
204
208
|
<div
|
|
205
|
-
class=
|
|
209
|
+
class="tw-flex tw-items-center tw-flex-row tw-text-[#3f3f3f] tw-font-normal not-italic tw-text-base tw-leading-[20px] tw-gap-[25px]"
|
|
206
210
|
>
|
|
207
211
|
<div
|
|
208
212
|
v-for="(itemAction, i) in itemActions"
|