@corvina/web-components-library 0.2.4 → 1.0.0-beta.2

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.
Files changed (36) hide show
  1. package/CHANGELOG.md +61 -0
  2. package/README.md +5 -0
  3. package/index.d.ts +0 -1
  4. package/package.json +2 -8
  5. package/vscode.html-custom-data.json +13 -13
  6. package/web-components-library.cjs.js +20 -58
  7. package/web-components-library.css +2 -5
  8. package/web-components-library.es.d.ts +5 -2
  9. package/web-components-library.es.js +24126 -21114
  10. package/web-components-library.umd.js +20 -61
  11. package/web-components.d.ts +0 -1
  12. package/components/AnimatedButton.vue.d.ts +0 -197
  13. package/components/AutocompleteFilter.vue.d.ts +0 -144
  14. package/components/CorvinaBreadcrumb.ce.vue.d.ts +0 -105
  15. package/components/CorvinaBreadcrumbDivider.ce.vue.d.ts +0 -2
  16. package/components/CorvinaButton.ce.vue.d.ts +0 -84
  17. package/components/CorvinaIcon.ce.vue.d.ts +0 -35
  18. package/components/CorvinaIconInternal.vue.d.ts +0 -39
  19. package/components/CorvinaSelect.ce.vue.d.ts +0 -56
  20. package/components/CorvinaTable.ce.vue.d.ts +0 -176
  21. package/components/CustomRenderer.vue.d.ts +0 -15
  22. package/components/InfiniteLoaderAutocomplete.vue.d.ts +0 -21
  23. package/components/Searchbar.vue.d.ts +0 -113
  24. package/components/Slots.d.ts +0 -10
  25. package/components/TableHeader.vue.d.ts +0 -51
  26. package/corvina.png +0 -0
  27. package/favicon.ico +0 -0
  28. package/plugins/vuetify.d.ts +0 -3
  29. package/theme/blueprint.d.ts +0 -3
  30. package/theme/ecciconset.d.ts +0 -5
  31. package/theme/icons-list.d.ts +0 -1
  32. package/utils/webfontloader.d.ts +0 -1
  33. package/vue-components.d.ts +0 -25
  34. package/webcomponent-utils/utils.d.ts +0 -1
  35. package/webcomponent-utils/web-component-creator.d.ts +0 -24
  36. package/webcomponent-utils/web-components.d.ts +0 -4
package/CHANGELOG.md ADDED
@@ -0,0 +1,61 @@
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
+ Browsers: the JS and CSS are built for Vite 8's default target (`baseline-widely-available`: Chrome and
10
+ Edge 111, Firefox 114, Safari and iOS 16.4), with no transpiling to ES2016 anymore (`?.`, `??` and `async`
11
+ are kept).
12
+
13
+ ### `@corvina/vue-components-library` (from 0.2.4)
14
+
15
+ Breaking changes:
16
+
17
+ - `vue` (^3.5) and `vuetify` (^4.3) are peer dependencies, provided by the app: the package no longer
18
+ bundles Vuetify 3 (JS 554 → 202 KB, gzip 160 → 76 KB; the ExorFontIcon font is in it as a data URL).
19
+ - Modern syntax (see Browsers above): an app that targets older browsers transpiles the package with its
20
+ bundler (Vite does it by itself in the build).
21
+ - ESM only: the CommonJS and UMD builds are gone (`exports` has no `require` condition).
22
+ - The library CSS no longer contains the Vuetify CSS (132 → 20 KB): the app imports `vuetify/styles`.
23
+ To get the Corvina look, build the Vuetify styles with the exported settings:
24
+ `@forward '@corvina/vue-components-library/settings.scss'` in the `vite-plugin-vuetify` `styles.configFile`.
25
+ - The app must import `vuetify/styles` (its Vuetify plugin) before `App.vue` and the library: Vuetify 4
26
+ CSS is in CSS layers and the first CSS loaded sets their order.
27
+ - The components use the Vuetify defaults of the app (e.g. the `variant` of fields), not the library ones.
28
+ - `--color-*` variables: the package CSS now has the components' palette (`--color-primary` #496177,
29
+ `--color-highlight` #01a3dd, ...). 0.2.4 ended with an older palette (#004688, #00b0c7, ...).
30
+
31
+ Added:
32
+
33
+ - `./settings.scss` export (Vuetify Sass settings of the library).
34
+
35
+ Fixed:
36
+
37
+ - Type declarations: relative imports have the `.js` extension, so they resolve with TypeScript
38
+ `moduleResolution` `node16`/`nodenext` too (the package is now `"type": "module"`).
39
+ - `AutocompleteFilter` (breadcrumb and table filters) threw on focus (Vuetify 2 API): the menu now opens on focus.
40
+ - Breadcrumb filter chip arrows are 25px as in the web components (the Vuetify 52px rule won before).
41
+ - The package only contains the files it needs (61 → 27): no type declarations of internal modules or of the web
42
+ components entry, no favicon and logo.
43
+
44
+ ### `@corvina/web-components-library` (from 0.2.4)
45
+
46
+ - Vuetify 4 and Vue 3.5 bundled (were Vuetify 3.7 and Vue 3.5). JS 1.06 → 1.23 MB (gzip 265 → 312 KB),
47
+ mostly Vuetify 4 itself.
48
+ - Runs on the browsers listed above (Browsers): 0.2.4 was transpiled to ES2016.
49
+ - No dependencies declared: Vue, Vuetify and the other libraries are bundled (0.2.4 declared `vue` and
50
+ `vuetify` 3, installed without being used).
51
+ - The bundle runs without a bundler (`<script type="module">`): `process` is no longer referenced.
52
+ - `web-components-library.css` (the page CSS) only has the `--color-*` variables (108 KB → 0.6 KB): no Vuetify
53
+ reset, base or component CSS on the host page anymore (they changed e.g. the `html` font and line height,
54
+ `box-sizing`, buttons and inputs of the page). The palette changed as in the Vue package (#004688 → #496177, ...).
55
+ - The components set their base typography on their host instead of inheriting it from that page CSS:
56
+ `box-sizing: border-box`, `font-family: var(--v-font-body, "Roboto", sans-serif)`, `line-height: 1.5`.
57
+ On a page with its own `body` font the components now use Roboto; to change it, style the element
58
+ (e.g. `corvina-table { font-family: ... }`).
59
+ - Table footer items-per-page menu attached inside the shadow root without patching Vuetify.
60
+ - The package only contains the files it needs (37 → 13): no type declarations of internal modules, no
61
+ 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
@@ -1,5 +1,4 @@
1
1
  import { Component } from 'vue';
2
-
3
2
  export declare namespace CORVINA {
4
3
  type AnchorBlock = 'top' | 'bottom';
5
4
  type AnchorInline = 'start' | 'end' | 'left' | 'right';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corvina/web-components-library",
3
- "version": "0.2.4",
3
+ "version": "1.0.0-beta.2",
4
4
  "private": false,
5
5
  "description": "Corvina web components (custom elements)",
6
6
  "homepage": "https://docs.components.corvina.cloud/",
@@ -15,12 +15,6 @@
15
15
  "files": [
16
16
  "*",
17
17
  "**/*"
18
- ],
19
- "dependencies": {
20
- "v3-infinite-loading": "^1.3.2",
21
- "vue": "^3.4.21",
22
- "vuetify": "^3.7.5"
23
- },
24
- "packageManager": "pnpm@9.1.1+sha1.09ada6cd05003e0ced25fb716f9fda4063ec2e3b"
18
+ ]
25
19
  }
26
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- `rowClicked` — `[index: number, item: any]`\n- `rowExpanded` — `[index: number]`\n- `loadMore` — `[cb: LoadMoreCallback]`\n\n**Slots:** `default`"
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
  ]