@corvina/web-components-library 0.2.3 → 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 +5 -0
- package/index.d.ts +0 -1
- package/package.json +9 -19
- package/vscode.html-custom-data.json +13 -13
- package/web-components-library.cjs.js +20 -58
- package/web-components-library.css +2 -5
- package/web-components-library.es.d.ts +5 -2
- package/web-components-library.es.js +24935 -21117
- package/web-components-library.umd.js +20 -61
- 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 -113
- 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/icons-list.d.ts +0 -1
- package/utils/webfontloader.d.ts +0 -1
- package/vue-components.d.ts +0 -25
- package/webcomponent-utils/utils.d.ts +0 -1
- 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
|
@@ -37,6 +37,11 @@ and of the font in the app (the bundler copies the font, `fonts/ExorFontIcon.wof
|
|
|
37
37
|
import "@corvina/web-components-library/icons-corvina-classes-font-face.css"
|
|
38
38
|
```
|
|
39
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`).
|
|
44
|
+
|
|
40
45
|
# VS Code IntelliSense
|
|
41
46
|
|
|
42
47
|
The package ships a [VS Code custom data](https://github.com/microsoft/vscode-custom-data) file that adds tag and
|
package/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,30 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@corvina/web-components-library",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0-beta.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Corvina web components (custom elements)",
|
|
6
6
|
"homepage": "https://docs.components.corvina.cloud/",
|
|
7
7
|
"repository": {
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/Corvina-R-D/corvina-components-library.git"
|
|
10
10
|
},
|
|
11
|
-
"keywords": [
|
|
12
|
-
"corvina",
|
|
13
|
-
"web-components",
|
|
14
|
-
"custom-elements",
|
|
15
|
-
"vuetify"
|
|
16
|
-
],
|
|
11
|
+
"keywords": ["corvina", "web-components", "custom-elements", "vuetify"],
|
|
17
12
|
"main": "web-components-library.umd.js",
|
|
18
13
|
"module": "web-components-library.es.js",
|
|
19
14
|
"types": "web-components-library.es.d.ts",
|
|
20
15
|
"files": [
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
]
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"vue": "^3.4.21",
|
|
27
|
-
"vuetify": "^3.7.5"
|
|
28
|
-
},
|
|
29
|
-
"packageManager": "pnpm@9.1.1+sha1.09ada6cd05003e0ced25fb716f9fda4063ec2e3b"
|
|
30
|
-
}
|
|
16
|
+
"*",
|
|
17
|
+
"**/*"
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"name": "corvina-breadcrumb",
|
|
7
7
|
"description": {
|
|
8
8
|
"kind": "markdown",
|
|
9
|
-
"value": "Corvina web component `<corvina-breadcrumb>`.\n\n**Events** (`CustomEvent`, payload in `event.detail[0]`):\n- `update:searchModel` — `[value: string]`\n- `update:activeControl` — `[value: ACTIVE_CONTROL]`\n- `update:filters` — `[value: FILTER[]]`\n- `update:filterBy` — `[value: FILTER_BY]`\n\n**Slots:** `default`"
|
|
9
|
+
"value": "Corvina web component `<corvina-breadcrumb>`.\n\n**Events** (`CustomEvent`, payload in `event.detail[0]`):\n- `update:searchModel` — `[value: string]`\n- `update:activeControl` — `[value: CORVINA.BREADCRUMB.ACTIVE_CONTROL]`\n- `update:filters` — `[value: CORVINA.BREADCRUMB.FILTER[]]`\n- `update:filterBy` — `[value: CORVINA.BREADCRUMB.FILTER_BY]`\n\n**Slots:** `default`"
|
|
10
10
|
},
|
|
11
11
|
"attributes": [
|
|
12
12
|
{
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"name": "active-control",
|
|
28
28
|
"description": {
|
|
29
29
|
"kind": "markdown",
|
|
30
|
-
"value": "Property `activeControl`: `ACTIVE_CONTROL`\n\nDefault: `search`"
|
|
30
|
+
"value": "Property `activeControl`: `CORVINA.BREADCRUMB.ACTIVE_CONTROL`\n\nDefault: `search`"
|
|
31
31
|
},
|
|
32
32
|
"values": [
|
|
33
33
|
{
|
|
@@ -100,21 +100,21 @@
|
|
|
100
100
|
"name": "allowed-filters",
|
|
101
101
|
"description": {
|
|
102
102
|
"kind": "markdown",
|
|
103
|
-
"value": "Property `allowedFilters`: `FILTER_BY[]`\n\n⚠️ Complex value: set it as a JavaScript property (`element.allowedFilters = …`), not as an HTML attribute."
|
|
103
|
+
"value": "Property `allowedFilters`: `CORVINA.BREADCRUMB.FILTER_BY[]`\n\n⚠️ Complex value: set it as a JavaScript property (`element.allowedFilters = …`), not as an HTML attribute."
|
|
104
104
|
}
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
107
|
"name": "filters",
|
|
108
108
|
"description": {
|
|
109
109
|
"kind": "markdown",
|
|
110
|
-
"value": "Property `filters`: `FILTER[]`\n\n⚠️ Complex value: set it as a JavaScript property (`element.filters = …`), not as an HTML attribute."
|
|
110
|
+
"value": "Property `filters`: `CORVINA.BREADCRUMB.FILTER[]`\n\n⚠️ Complex value: set it as a JavaScript property (`element.filters = …`), not as an HTML attribute."
|
|
111
111
|
}
|
|
112
112
|
},
|
|
113
113
|
{
|
|
114
114
|
"name": "filters-custom-component",
|
|
115
115
|
"description": {
|
|
116
116
|
"kind": "markdown",
|
|
117
|
-
"value": "Property `filtersCustomComponent`: `CUSTOM_VUE_COMPONENT`\n\n⚠️ Complex value: set it as a JavaScript property (`element.filtersCustomComponent = …`), not as an HTML attribute."
|
|
117
|
+
"value": "Property `filtersCustomComponent`: `CORVINA.BREADCRUMB.CUSTOM_VUE_COMPONENT`\n\n⚠️ Complex value: set it as a JavaScript property (`element.filtersCustomComponent = …`), not as an HTML attribute."
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
]
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
"name": "variant",
|
|
153
153
|
"description": {
|
|
154
154
|
"kind": "markdown",
|
|
155
|
-
"value": "Property `variant`: `VARIANT`\n\nDefault: `FREE`"
|
|
155
|
+
"value": "Property `variant`: `CORVINA.BUTTON.VARIANT`\n\nDefault: `FREE`"
|
|
156
156
|
},
|
|
157
157
|
"values": [
|
|
158
158
|
{
|
|
@@ -240,7 +240,7 @@
|
|
|
240
240
|
"name": "tooltip-location",
|
|
241
241
|
"description": {
|
|
242
242
|
"kind": "markdown",
|
|
243
|
-
"value": "Property `tooltipLocation`: `TOOLTIP_LOCATION`\n\nDefault: `top`"
|
|
243
|
+
"value": "Property `tooltipLocation`: `CORVINA.TOOLTIP_LOCATION`\n\nDefault: `top`"
|
|
244
244
|
},
|
|
245
245
|
"values": [
|
|
246
246
|
{
|
|
@@ -284,7 +284,7 @@
|
|
|
284
284
|
"name": "color",
|
|
285
285
|
"description": {
|
|
286
286
|
"kind": "markdown",
|
|
287
|
-
"value": "Property `color`: `COLOR`"
|
|
287
|
+
"value": "Property `color`: `CORVINA.COLOR`"
|
|
288
288
|
},
|
|
289
289
|
"values": [
|
|
290
290
|
{
|
|
@@ -397,14 +397,14 @@
|
|
|
397
397
|
"name": "corvina-table",
|
|
398
398
|
"description": {
|
|
399
399
|
"kind": "markdown",
|
|
400
|
-
"value": "Corvina web component `<corvina-table>`.\n\n**Events** (`CustomEvent`, payload in `event.detail[0]`):\n- `update:searchModel` — `[value: string]`\n- `update:filters` — `[value: FILTER[]]`\n- `update:filterBy` — `[value: FILTER_BY]`\n- `currentPageChanged` — `[value: number]`\n- `currentItemsPerPageChanged` — `[value: number]`\n- `handleSorting` — `[value: TableHeaderEntry]`\n- `
|
|
400
|
+
"value": "Corvina web component `<corvina-table>`.\n\n**Events** (`CustomEvent`, payload in `event.detail[0]`):\n- `update:searchModel` — `[value: string]`\n- `update:filters` — `[value: CORVINA.BREADCRUMB.FILTER[]]`\n- `update:filterBy` — `[value: CORVINA.BREADCRUMB.FILTER_BY]`\n- `currentPageChanged` — `[value: number]`\n- `currentItemsPerPageChanged` — `[value: number]`\n- `handleSorting` — `[value: CORVINA.TABLE.TableHeaderEntry]`\n- `rowExpanded` — `[index: number]`\n- `loadMore` — `[cb: CORVINA.TABLE.LoadMoreCallback]`\n- `rowClicked` — `[index: number, item: any]`\n\n**Slots:** `default`"
|
|
401
401
|
},
|
|
402
402
|
"attributes": [
|
|
403
403
|
{
|
|
404
404
|
"name": "headers",
|
|
405
405
|
"description": {
|
|
406
406
|
"kind": "markdown",
|
|
407
|
-
"value": "Property `headers`: `TableHeaderEntries`\n\n⚠️ Complex value: set it as a JavaScript property (`element.headers = …`), not as an HTML attribute."
|
|
407
|
+
"value": "Property `headers`: `CORVINA.TABLE.TableHeaderEntries`\n\n⚠️ Complex value: set it as a JavaScript property (`element.headers = …`), not as an HTML attribute."
|
|
408
408
|
}
|
|
409
409
|
},
|
|
410
410
|
{
|
|
@@ -580,21 +580,21 @@
|
|
|
580
580
|
"name": "allowed-filters",
|
|
581
581
|
"description": {
|
|
582
582
|
"kind": "markdown",
|
|
583
|
-
"value": "Property `allowedFilters`: `FILTER_BY[]`\n\n⚠️ Complex value: set it as a JavaScript property (`element.allowedFilters = …`), not as an HTML attribute."
|
|
583
|
+
"value": "Property `allowedFilters`: `CORVINA.BREADCRUMB.FILTER_BY[]`\n\n⚠️ Complex value: set it as a JavaScript property (`element.allowedFilters = …`), not as an HTML attribute."
|
|
584
584
|
}
|
|
585
585
|
},
|
|
586
586
|
{
|
|
587
587
|
"name": "filters",
|
|
588
588
|
"description": {
|
|
589
589
|
"kind": "markdown",
|
|
590
|
-
"value": "Property `filters`: `FILTER[]`\n\n⚠️ Complex value: set it as a JavaScript property (`element.filters = …`), not as an HTML attribute."
|
|
590
|
+
"value": "Property `filters`: `CORVINA.BREADCRUMB.FILTER[]`\n\n⚠️ Complex value: set it as a JavaScript property (`element.filters = …`), not as an HTML attribute."
|
|
591
591
|
}
|
|
592
592
|
},
|
|
593
593
|
{
|
|
594
594
|
"name": "filters-custom-component",
|
|
595
595
|
"description": {
|
|
596
596
|
"kind": "markdown",
|
|
597
|
-
"value": "Property `filtersCustomComponent`: `CUSTOM_VUE_COMPONENT`\n\n⚠️ Complex value: set it as a JavaScript property (`element.filtersCustomComponent = …`), not as an HTML attribute."
|
|
597
|
+
"value": "Property `filtersCustomComponent`: `CORVINA.BREADCRUMB.CUSTOM_VUE_COMPONENT`\n\n⚠️ Complex value: set it as a JavaScript property (`element.filtersCustomComponent = …`), not as an HTML attribute."
|
|
598
598
|
}
|
|
599
599
|
}
|
|
600
600
|
]
|