@corvina/web-components-library 0.2.2 → 0.2.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 +11 -2
- package/components/Searchbar.vue.d.ts +8 -0
- package/{theme/fonts → fonts}/ExorFontIcon.woff +0 -0
- package/icons-corvina-classes-font-face.css +823 -827
- package/index.d.ts +8 -4
- package/package.json +5 -1
- package/web-components-library.cjs.js +18 -12
- package/web-components-library.es.js +8453 -8436
- package/web-components-library.umd.js +20 -14
- package/webcomponent-utils/utils.d.ts +1 -2
- package/theme/fonts/ExorFontIcon.eot +0 -0
- package/theme/fonts/ExorFontIcon.svg +0 -500
- package/theme/fonts/ExorFontIcon.ttf +0 -0
- package/webcomponent-utils/external-styles.d.ts +0 -1
package/README.md
CHANGED
|
@@ -24,9 +24,18 @@ Add the following code to your main.js file:
|
|
|
24
24
|
// 3 parameters: locale: string = 'en', shouldLoadTheme: boolean = false, shouldLoadFonts: boolean = false) {
|
|
25
25
|
CorvinaComponents.initCorvinaComponents('en')
|
|
26
26
|
```
|
|
27
|
-
and add reference to css and font to your code.
|
|
28
27
|
If you use Vuetify in the hosting app set shouldLoadTheme to false otherwise to true.
|
|
29
|
-
If you already load the fonts in the hosting app (Roboto, MaterialSymbols) set shouldLoadFonts to false otherwise to true.
|
|
28
|
+
If you already load the fonts in the hosting app (Roboto, MaterialSymbols, ExorFontIcon) set shouldLoadFonts to false otherwise to true.
|
|
29
|
+
|
|
30
|
+
The components draw the Corvina icons with ligatures, so they do not need `icons-corvina-classes-font-face.css`:
|
|
31
|
+
that file is only for Corvina icons used as CSS classes (`<i class="ecc-T-Add"></i>`) in the hosting app markup.
|
|
32
|
+
|
|
33
|
+
To use the Corvina icons as CSS classes, import the stylesheet of the package instead of keeping a copy of it
|
|
34
|
+
and of the font in the app (the bundler copies the font, `fonts/ExorFontIcon.woff`, into the app build):
|
|
35
|
+
|
|
36
|
+
```JavaScript
|
|
37
|
+
import "@corvina/web-components-library/icons-corvina-classes-font-face.css"
|
|
38
|
+
```
|
|
30
39
|
|
|
31
40
|
# VS Code IntelliSense
|
|
32
41
|
|
|
@@ -45,6 +45,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
45
45
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
46
46
|
onInputChange: (value: string) => void;
|
|
47
47
|
confirm: (value: string) => void;
|
|
48
|
+
confirmItem: (item: {
|
|
49
|
+
value: string | number;
|
|
50
|
+
title: string;
|
|
51
|
+
}) => void;
|
|
48
52
|
fetchData: (options: AUTOCOMPLETE_FILTER_FETCH_OPTIONS) => void;
|
|
49
53
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SearchProps>, {
|
|
50
54
|
background: string;
|
|
@@ -67,6 +71,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
67
71
|
onFetchData?: ((options: AUTOCOMPLETE_FILTER_FETCH_OPTIONS) => any) | undefined;
|
|
68
72
|
onOnInputChange?: ((value: string) => any) | undefined;
|
|
69
73
|
onConfirm?: ((value: string) => any) | undefined;
|
|
74
|
+
onConfirmItem?: ((item: {
|
|
75
|
+
value: string | number;
|
|
76
|
+
title: string;
|
|
77
|
+
}) => any) | undefined;
|
|
70
78
|
}>, {
|
|
71
79
|
loading: boolean;
|
|
72
80
|
icon: string;
|
|
Binary file
|