@vc-shell/framework 1.0.45 → 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.
@@ -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?: Record<string, unknown>[];
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
- (event: "update:modelValue", value: any): void;
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
- (event: "search", inputValue: string): void;
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
- (event: "close"): void;
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,SA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,CAAC,KAAK,EAAE;QACd;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QACd;;WAEG;QACH,GAAG,EAAE,GAAG,CAAC;QACT;;WAEG;QACH,QAAQ,EAAE,OAAO,CAAC;QAClB;;;WAGG;QACH,YAAY,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC;KAClC,KAAK,KAAK,EAAE,CAAC;CACf"}
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;IACh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KAAE,KAAK,KAAK,EAAE,CAAC;IAC3D;;OAEG;IACH,eAAe,EAAE,MAAM,KAAK,EAAE,CAAC;IAC/B;;OAEG;IACH,cAAc,EAAE,MAAM,KAAK,EAAE,CAAC;IAC9B;;OAEG;IACH,OAAO,EAAE,MAAM,KAAK,EAAE,CAAC;IACvB;;OAEG;IACH,MAAM,EAAE,MAAM,KAAK,EAAE,CAAC;IACtB;;;OAGG;IACH,WAAW,EAAE,MAAM,KAAK,EAAE,CAAC;IAC3B;;OAEG;IACH,KAAK,EAAE,MAAM,KAAK,EAAE,CAAC;IACrB;;OAEG;IACH,IAAI,EAAE,MAAM,KAAK,EAAE,CAAC;IACpB;;;OAGG;IACH,eAAe,EAAE,CAAC,KAAK,EAAE;QACvB;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QACd;;WAEG;QACH,GAAG,EAAE,GAAG,CAAC;QACT;;WAEG;QACH,QAAQ,EAAE,OAAO,CAAC;QAClB;;;WAGG;QACH,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;KACxC,KAAK,KAAK,EAAE,CAAC;IACd;;OAEG;IACH,MAAM,EAAE,CAAC,KAAK,EAAE;QACd;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QACd;;WAEG;QACH,GAAG,EAAE,GAAG,CAAC;QACT;;WAEG;QACH,QAAQ,EAAE,OAAO,CAAC;QAClB;;;WAGG;QACH,YAAY,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC;KAClC,KAAK,KAAK,EAAE,CAAC;CACf"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vc-shell/framework",
3
- "version": "1.0.45",
3
+ "version": "1.0.46",
4
4
  "main": "./dist/framework.js",
5
5
  "module": "./dist/framework.js",
6
6
  "types": "./dist/index.d.ts",
@@ -40,7 +40,7 @@
40
40
  "client-oauth2": "^4.3.3",
41
41
  "moment": "^2.29.1",
42
42
  "normalize.css": "^8.0.1",
43
- "swiper": "^6.7.5",
43
+ "swiper": "^6.8.4",
44
44
  "vue-currency-input": "~2.5.1",
45
45
  "vue-i18n": "^9.1.7",
46
46
  "vue-logger-plugin": "^2.1.2",
@@ -51,11 +51,11 @@
51
51
  "devDependencies": {
52
52
  "@originjs/vite-plugin-commonjs": "^1.0.3",
53
53
  "@rollup/plugin-commonjs": "^21.0.2",
54
- "@vc-shell/api-client-generator": "^1.0.45",
55
- "@vc-shell/config-generator": "^1.0.45",
56
- "@vue-macros/volar": "^0.5.7",
54
+ "@vc-shell/api-client-generator": "^1.0.46",
55
+ "@vc-shell/config-generator": "^1.0.46",
56
+ "@vue-macros/volar": "^0.8.1",
57
57
  "sass": "^1.49.0",
58
- "typescript": "^4.6.2",
58
+ "typescript": "^4.9.5",
59
59
  "unplugin-vue-macros": "^1.1.1",
60
60
  "url-pattern": "^1.0.3"
61
61
  },
@@ -68,5 +68,5 @@
68
68
  "access": "public",
69
69
  "registry": "https://registry.npmjs.org/"
70
70
  },
71
- "gitHead": "f62c07e94d9486d3228c70855385cc7fad68274d"
71
+ "gitHead": "196999893a55b5762895b9de2249abbe388b1a6f"
72
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?: ILocalImage;
83
- sortHandler?: (remove: boolean, localImage: ILocalImage) => void;
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 class="vc-col tw-flex tw-flex-col tw-min-w-0 tw-basis-0" :style="{ flexGrow: size }">
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
- defineProps({
9
- size: {
10
- type: String,
11
- default: "1",
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= "tw-flex tw-items-center tw-flex-nowrap">
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
- defineProps({
15
+ export interface Props {
16
16
  items: {
17
- type: Array,
18
- default: () => [],
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
- keyword?: string,
70
- skip?: number,
71
- ids?: string[]
72
- ) => Promise<{
73
- results?: Record<string, unknown>[];
74
- totalCount?: number;
75
- }>)
76
- | any[]
77
- | undefined;
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
- (event: "update:modelValue", value: any): void;
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
- (event: "search", inputValue: string): void;
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
- (event: "close"): void;
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-component
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-component>
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 as SwiperComponent, SwiperSlide } from "swiper/vue";
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 tw-transition-[width] tw-duration-200"
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="[$attrs.class, { '!tw-w-full tw-shrink': $isMobile.value || expanded }]"
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="{ field, errorMessage, handleChange, errors }"
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="{ field, errorMessage, handleChange }"
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="{ field, errorMessage, handleChange, errors }"
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="{ field, errorMessage, handleChange }"
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="{ field, errorMessage, handleChange, errors }"
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="{ field, errorMessage, handleChange, errors }"
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="{ field, errorMessage, handleChange, errors }"
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="{ field, errorMessage, handleChange }"
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="{ field, errorMessage, handleChange }"
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="{ field, errorMessage, handleChange }"
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
- interface IValidationRules {
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;
@@ -7,7 +7,9 @@
7
7
  <span>)</span>
8
8
  </div>
9
9
  </template>
10
- <div class="tw-w-full tw-h-full tw-box-border tw-flex tw-flex-col tw-items-center">
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
- const props = defineProps({
60
- images: {
61
- type: Array,
62
- default: () => [],
63
- },
61
+ export interface Props {
62
+ images?: {
63
+ title: string;
64
+ name: string;
65
+ url: string;
66
+ }[];
67
+ index: number;
68
+ }
64
69
 
65
- index: {
66
- type: Number,
67
- default: 0,
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) === "/") {
@@ -1,5 +1,7 @@
1
1
  <template>
2
- <div class="tw-relative tw-overflow-hidden tw-flex tw-flex-col tw-grow tw-basis-0">
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 class="tw-shrink-0 tw-flex tw-items-center tw-justify-between tw-p-4">
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= "tw-flex tw-relative tw-overflow-hidden tw-grow">
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= "tw-flex tw-justify-center tw-items-center">
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= "tw-flex tw-items-center tw-flex-nowrap"
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= "tw-flex tw-flex-col tw-ml-1 tw-invisible group-hover:tw-visible"
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= "tw-flex tw-justify-center tw-items-center">
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= "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]"
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"