@corvina/web-components-library 0.2.0 → 0.2.3
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 +16 -2
- package/components/Searchbar.vue.d.ts +8 -0
- package/{theme/fonts → fonts}/ExorFontIcon.woff +0 -0
- package/icons-corvina-classes-font-face.css +821 -827
- package/index.d.ts +17 -16
- package/package.json +19 -8
- package/web-components-library.cjs.js +43 -28
- package/web-components-library.es.js +9429 -9095
- package/web-components-library.umd.js +45 -27
- 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
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
# Corvina Components Library
|
|
2
2
|
This library is a collection of web components aimed to be used in the Corvina App.
|
|
3
3
|
|
|
4
|
+
# Documentation
|
|
5
|
+
|
|
6
|
+
The components documentation and live examples are available in the [Storybook for web components](https://docs.components.corvina.cloud/).
|
|
7
|
+
The Vue components version is available [here](https://docs.components.corvina.cloud/vue/).
|
|
8
|
+
|
|
4
9
|
# Installation
|
|
5
10
|
|
|
6
11
|
To install the package run the following command:
|
|
@@ -19,9 +24,18 @@ Add the following code to your main.js file:
|
|
|
19
24
|
// 3 parameters: locale: string = 'en', shouldLoadTheme: boolean = false, shouldLoadFonts: boolean = false) {
|
|
20
25
|
CorvinaComponents.initCorvinaComponents('en')
|
|
21
26
|
```
|
|
22
|
-
and add reference to css and font to your code.
|
|
23
27
|
If you use Vuetify in the hosting app set shouldLoadTheme to false otherwise to true.
|
|
24
|
-
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
|
+
```
|
|
25
39
|
|
|
26
40
|
# VS Code IntelliSense
|
|
27
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
|