@corvina/web-components-library 0.2.2 → 1.0.0-beta.1
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/CHANGELOG.md +54 -0
- package/README.md +16 -2
- package/{theme/fonts → fonts}/ExorFontIcon.woff +0 -0
- package/icons-corvina-classes-font-face.css +821 -827
- package/index.d.ts +8 -5
- package/package.json +6 -8
- package/vscode.html-custom-data.json +13 -13
- package/web-components-library.cjs.js +24 -56
- package/web-components-library.css +2 -5
- package/web-components-library.es.d.ts +5 -2
- package/web-components-library.es.js +24946 -21111
- package/web-components-library.umd.js +24 -59
- package/web-components.d.ts +0 -1
- package/components/AnimatedButton.vue.d.ts +0 -197
- package/components/AutocompleteFilter.vue.d.ts +0 -144
- package/components/CorvinaBreadcrumb.ce.vue.d.ts +0 -105
- package/components/CorvinaBreadcrumbDivider.ce.vue.d.ts +0 -2
- package/components/CorvinaButton.ce.vue.d.ts +0 -84
- package/components/CorvinaIcon.ce.vue.d.ts +0 -35
- package/components/CorvinaIconInternal.vue.d.ts +0 -39
- package/components/CorvinaSelect.ce.vue.d.ts +0 -56
- package/components/CorvinaTable.ce.vue.d.ts +0 -176
- package/components/CustomRenderer.vue.d.ts +0 -15
- package/components/InfiniteLoaderAutocomplete.vue.d.ts +0 -21
- package/components/Searchbar.vue.d.ts +0 -105
- package/components/Slots.d.ts +0 -10
- package/components/TableHeader.vue.d.ts +0 -51
- package/corvina.png +0 -0
- package/favicon.ico +0 -0
- package/plugins/vuetify.d.ts +0 -3
- package/theme/blueprint.d.ts +0 -3
- package/theme/ecciconset.d.ts +0 -5
- package/theme/fonts/ExorFontIcon.eot +0 -0
- package/theme/fonts/ExorFontIcon.svg +0 -500
- package/theme/fonts/ExorFontIcon.ttf +0 -0
- package/theme/icons-list.d.ts +0 -1
- package/utils/webfontloader.d.ts +0 -1
- package/vue-components.d.ts +0 -25
- package/webcomponent-utils/external-styles.d.ts +0 -1
- package/webcomponent-utils/utils.d.ts +0 -2
- package/webcomponent-utils/web-component-creator.d.ts +0 -24
- package/webcomponent-utils/web-components.d.ts +0 -4
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
Both packages are built from the same sources and released with the same version.
|
|
4
|
+
|
|
5
|
+
## 1.0.0
|
|
6
|
+
|
|
7
|
+
Vue 3.5 and Vuetify 4.
|
|
8
|
+
|
|
9
|
+
### `@corvina/vue-components-library` (from 0.2.3)
|
|
10
|
+
|
|
11
|
+
Breaking changes:
|
|
12
|
+
|
|
13
|
+
- `vue` (^3.5) and `vuetify` (^4.3) are peer dependencies, provided by the app: the package no longer
|
|
14
|
+
bundles Vuetify 3 (JS 554 → 205 KB, gzip 160 → 76 KB; the ExorFontIcon font is in it as a data URL).
|
|
15
|
+
- ESM only: the CommonJS and UMD builds are gone (`exports` has no `require` condition).
|
|
16
|
+
- The library CSS no longer contains the Vuetify CSS (132 → 20 KB): the app imports `vuetify/styles`.
|
|
17
|
+
To get the Corvina look, build the Vuetify styles with the exported settings:
|
|
18
|
+
`@forward '@corvina/vue-components-library/settings.scss'` in the `vite-plugin-vuetify` `styles.configFile`.
|
|
19
|
+
- The app must import `vuetify/styles` (its Vuetify plugin) before `App.vue` and the library: Vuetify 4
|
|
20
|
+
CSS is in CSS layers and the first CSS loaded sets their order.
|
|
21
|
+
- The components use the Vuetify defaults of the app (e.g. the `variant` of fields), not the library ones.
|
|
22
|
+
- `--color-*` variables: the package CSS now has the components' palette (`--color-primary` #496177,
|
|
23
|
+
`--color-highlight` #01a3dd, ...). 0.2.3 ended with an older palette (#004688, #00b0c7, ...).
|
|
24
|
+
|
|
25
|
+
Added:
|
|
26
|
+
|
|
27
|
+
- `./settings.scss` export (Vuetify Sass settings of the library).
|
|
28
|
+
|
|
29
|
+
Fixed:
|
|
30
|
+
|
|
31
|
+
- Type declarations: relative imports have the `.js` extension, so they resolve with TypeScript
|
|
32
|
+
`moduleResolution` `node16`/`nodenext` too (the package is now `"type": "module"`).
|
|
33
|
+
- `AutocompleteFilter` (breadcrumb and table filters) threw on focus (Vuetify 2 API): the menu now opens on focus.
|
|
34
|
+
- Breadcrumb filter chip arrows are 25px as in the web components (the Vuetify 52px rule won before).
|
|
35
|
+
- The package only contains the files it needs (61 → 27): no type declarations of internal modules or of the web
|
|
36
|
+
components entry, no favicon and logo.
|
|
37
|
+
|
|
38
|
+
### `@corvina/web-components-library` (from 0.2.3)
|
|
39
|
+
|
|
40
|
+
- Vuetify 4 and Vue 3.5 bundled (were Vuetify 3.7 and Vue 3.5). JS 1.06 → 1.27 MB (gzip 265 → 322 KB),
|
|
41
|
+
mostly Vuetify 4 itself.
|
|
42
|
+
- No dependencies declared: Vue, Vuetify and the other libraries are bundled (0.2.3 declared `vue` and
|
|
43
|
+
`vuetify` 3, installed without being used).
|
|
44
|
+
- The bundle runs without a bundler (`<script type="module">`): `process` is no longer referenced.
|
|
45
|
+
- `web-components-library.css` (the page CSS) only has the `--color-*` variables (108 KB → 0.6 KB): no Vuetify
|
|
46
|
+
reset, base or component CSS on the host page anymore (they changed e.g. the `html` font and line height,
|
|
47
|
+
`box-sizing`, buttons and inputs of the page). The palette changed as in the Vue package (#004688 → #496177, ...).
|
|
48
|
+
- The components set their base typography on their host instead of inheriting it from that page CSS:
|
|
49
|
+
`box-sizing: border-box`, `font-family: var(--v-font-body, "Roboto", sans-serif)`, `line-height: 1.5`.
|
|
50
|
+
On a page with its own `body` font the components now use Roboto; to change it, style the element
|
|
51
|
+
(e.g. `corvina-table { font-family: ... }`).
|
|
52
|
+
- Table footer items-per-page menu attached inside the shadow root without patching Vuetify.
|
|
53
|
+
- The package only contains the files it needs (37 → 13): no type declarations of internal modules, no
|
|
54
|
+
favicon and logo.
|
package/README.md
CHANGED
|
@@ -24,9 +24,23 @@ 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
|
+
```
|
|
39
|
+
|
|
40
|
+
Vue and Vuetify 4 are bundled: the package has no dependencies. `web-components-library.css` only defines the
|
|
41
|
+
`--color-*` variables: the page keeps its own styles. The components use Roboto (`--v-font-body`) and line
|
|
42
|
+
height 1.5 whatever the page font; style the element to change them (e.g. `corvina-table { font-family: ... }`). The bundle also runs without a bundler
|
|
43
|
+
(`<script type="module">` importing `web-components-library.es.js`).
|
|
30
44
|
|
|
31
45
|
# VS Code IntelliSense
|
|
32
46
|
|
|
Binary file
|