@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/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';
|
|
@@ -58,9 +57,9 @@ export declare namespace CORVINA {
|
|
|
58
57
|
* Required if type is FILTER_BY_ENUM.AUTOCOMPLETE.
|
|
59
58
|
*/
|
|
60
59
|
searchFunction?: (search: string, page: number) => Array<any> | Promise<Array<any>>;
|
|
61
|
-
/** Property on the items returned by the `searchFunction` that contains the title. Required if type is FILTER_BY_ENUM.AUTOCOMPLETE. */
|
|
60
|
+
/** Property on the items returned by the `searchFunction` that contains the title, shown in the options and in the chip (`FILTER.title`). Required if type is FILTER_BY_ENUM.AUTOCOMPLETE. */
|
|
62
61
|
itemsTitleKey?: string;
|
|
63
|
-
/** Property on the items returned by the `searchFunction` that contains the identifier. Required if type is FILTER_BY_ENUM.AUTOCOMPLETE. */
|
|
62
|
+
/** Property on the items returned by the `searchFunction` that contains the identifier, used as `FILTER.value` of the selected item. Required if type is FILTER_BY_ENUM.AUTOCOMPLETE. */
|
|
64
63
|
itemsIdKey?: string;
|
|
65
64
|
/** Placeholder to display in the filter value input. */
|
|
66
65
|
filterValuePlaceholder?: string;
|
|
@@ -69,8 +68,10 @@ export declare namespace CORVINA {
|
|
|
69
68
|
interface FILTER {
|
|
70
69
|
/** Unique key for the filter */
|
|
71
70
|
key: string;
|
|
72
|
-
/** Value of the filter */
|
|
73
|
-
value: string;
|
|
71
|
+
/** Value of the filter: the entered text for FILTER_BY_ENUM.FREE_TEXT, the `itemsIdKey` property of the selected item for FILTER_BY_ENUM.AUTOCOMPLETE */
|
|
72
|
+
value: string | number;
|
|
73
|
+
/** Text shown in the chip instead of the value: the `itemsTitleKey` property of the selected item for FILTER_BY_ENUM.AUTOCOMPLETE */
|
|
74
|
+
title?: string;
|
|
74
75
|
}
|
|
75
76
|
interface CUSTOM_VUE_COMPONENT {
|
|
76
77
|
/** Name of the Vue component or Vue component definition */
|
|
@@ -156,6 +157,8 @@ export declare namespace CORVINA {
|
|
|
156
157
|
label?: string;
|
|
157
158
|
tooltip?: string;
|
|
158
159
|
icon?: string;
|
|
160
|
+
/** If true the button becomes a spinner */
|
|
161
|
+
loading?: boolean;
|
|
159
162
|
function: (item: any) => void;
|
|
160
163
|
}
|
|
161
164
|
type PropButtonEntries = PropButtonEntry[];
|
package/package.json
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
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
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/Corvina-R-D/corvina-components-library.git"
|
|
10
|
+
},
|
|
7
11
|
"keywords": ["corvina", "web-components", "custom-elements", "vuetify"],
|
|
8
12
|
"main": "web-components-library.umd.js",
|
|
9
13
|
"module": "web-components-library.es.js",
|
|
@@ -11,12 +15,6 @@
|
|
|
11
15
|
"files": [
|
|
12
16
|
"*",
|
|
13
17
|
"**/*"
|
|
14
|
-
]
|
|
15
|
-
"dependencies": {
|
|
16
|
-
"v3-infinite-loading": "^1.3.2",
|
|
17
|
-
"vue": "^3.4.21",
|
|
18
|
-
"vuetify": "^3.7.5"
|
|
19
|
-
},
|
|
20
|
-
"packageManager": "pnpm@9.1.1+sha1.09ada6cd05003e0ced25fb716f9fda4063ec2e3b"
|
|
18
|
+
]
|
|
21
19
|
}
|
|
22
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
|
]
|