@corvina/vue-components-library 0.1.2 → 0.1.4
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/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Corvina Components Library
|
|
2
|
-
|
|
2
|
+
This library is a collection of vue components aimed to be used in the Corvina App.
|
|
3
3
|
|
|
4
4
|
# Installation
|
|
5
5
|
|
|
@@ -13,7 +13,7 @@ npm install @corvina/vue-components-library
|
|
|
13
13
|
|
|
14
14
|
Add to your vue application the corvina components:
|
|
15
15
|
|
|
16
|
-
```
|
|
16
|
+
```JavaScript
|
|
17
17
|
import { createApp } from 'vue'
|
|
18
18
|
import App from './App.vue'
|
|
19
19
|
import vuetify from './plugins/vuetify'
|
|
@@ -27,3 +27,30 @@ createApp(App)
|
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
and add reference to css and font to your code.
|
|
30
|
+
|
|
31
|
+
# Internationalization i18n
|
|
32
|
+
|
|
33
|
+
If you want to support internationalization, please remember to configure the locale in your Vuetify options.
|
|
34
|
+
|
|
35
|
+
```JavaScript
|
|
36
|
+
import { en, it, de } from 'vuetify/locale'
|
|
37
|
+
const vuetify = createVuetify({
|
|
38
|
+
...
|
|
39
|
+
locale: {
|
|
40
|
+
locale: 'en',
|
|
41
|
+
fallback: 'en',
|
|
42
|
+
messages: { en, it, de }
|
|
43
|
+
},
|
|
44
|
+
...
|
|
45
|
+
})
|
|
46
|
+
```
|
|
47
|
+
To dynamically change the language, use `this.$vuetify.locale.current`.
|
|
48
|
+
|
|
49
|
+
For example, in the Corvina application:
|
|
50
|
+
|
|
51
|
+
```JavaScript
|
|
52
|
+
this.$i18n.locale = locale?.replace('_', '-') || "en-US";
|
|
53
|
+
this.$vuetify.locale.current = this.$i18n.locale?.split('-')[0] || "en";
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
|
package/package.json
CHANGED
|
@@ -67,6 +67,11 @@ declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractProp
|
|
|
67
67
|
required: false;
|
|
68
68
|
default: () => number;
|
|
69
69
|
};
|
|
70
|
+
fixedHeader: {
|
|
71
|
+
type: __PropType<boolean>;
|
|
72
|
+
required: false;
|
|
73
|
+
default: () => boolean;
|
|
74
|
+
};
|
|
70
75
|
showSearchBar: {
|
|
71
76
|
type: __PropType<boolean>;
|
|
72
77
|
required: false;
|
|
@@ -184,6 +189,11 @@ declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractProp
|
|
|
184
189
|
required: false;
|
|
185
190
|
default: () => number;
|
|
186
191
|
};
|
|
192
|
+
fixedHeader: {
|
|
193
|
+
type: __PropType<boolean>;
|
|
194
|
+
required: false;
|
|
195
|
+
default: () => boolean;
|
|
196
|
+
};
|
|
187
197
|
showSearchBar: {
|
|
188
198
|
type: __PropType<boolean>;
|
|
189
199
|
required: false;
|
|
@@ -259,6 +269,7 @@ declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractProp
|
|
|
259
269
|
sortBy: string;
|
|
260
270
|
isExpandable: boolean;
|
|
261
271
|
expandedRowIndex: number;
|
|
272
|
+
fixedHeader: boolean;
|
|
262
273
|
showSearchBar: boolean;
|
|
263
274
|
showFilterChips: boolean;
|
|
264
275
|
searchPlaceholder: string;
|