@vaadin/dashboard 25.3.0-rc1 → 25.4.0-alpha1
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/custom-elements.json +4 -4
- package/package.json +10 -10
- package/src/vaadin-dashboard.d.ts +4 -2
- package/src/vaadin-dashboard.js +4 -2
- package/web-types.json +5 -4
- package/web-types.lit.json +3 -3
package/custom-elements.json
CHANGED
|
@@ -757,9 +757,9 @@
|
|
|
757
757
|
"name": "i18n",
|
|
758
758
|
"privacy": "public",
|
|
759
759
|
"type": {
|
|
760
|
-
"text": "Object"
|
|
760
|
+
"text": "Object | undefined"
|
|
761
761
|
},
|
|
762
|
-
"description": "The object used to localize this component. To change the default\nlocalization,
|
|
762
|
+
"description": "The object used to localize this component. To change the default\nlocalization, set this to an object that provides all properties, or\njust the individual properties you want to change.\n\nWhen not set, defaults to `undefined`.\n\nThe object has the following structure and default values:\n```js\n{\n selectSection: 'Select section for editing',\n selectWidget: 'Select widget for editing',\n remove: 'Remove',\n resize: 'Resize',\n resizeApply: 'Apply',\n resizeShrinkWidth: 'Shrink width',\n resizeGrowWidth: 'Grow width',\n resizeShrinkHeight: 'Shrink height',\n resizeGrowHeight: 'Grow height',\n move: 'Move',\n moveApply: 'Apply',\n moveForward: 'Move Forward',\n moveBackward: 'Move Backward',\n}\n```",
|
|
763
763
|
"attribute": "i18n",
|
|
764
764
|
"inheritedFrom": {
|
|
765
765
|
"name": "I18nMixin",
|
|
@@ -876,9 +876,9 @@
|
|
|
876
876
|
{
|
|
877
877
|
"name": "i18n",
|
|
878
878
|
"type": {
|
|
879
|
-
"text": "Object"
|
|
879
|
+
"text": "Object | undefined"
|
|
880
880
|
},
|
|
881
|
-
"description": "The object used to localize this component. To change the default\nlocalization,
|
|
881
|
+
"description": "The object used to localize this component. To change the default\nlocalization, set this to an object that provides all properties, or\njust the individual properties you want to change.\n\nWhen not set, defaults to `undefined`.\n\nShould be overridden by subclasses to provide a custom JSDoc with the\ndefault I18N properties.",
|
|
882
882
|
"fieldName": "i18n",
|
|
883
883
|
"inheritedFrom": {
|
|
884
884
|
"name": "I18nMixin",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/dashboard",
|
|
3
|
-
"version": "25.
|
|
3
|
+
"version": "25.4.0-alpha1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -37,18 +37,18 @@
|
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
40
|
-
"@vaadin/a11y-base": "25.
|
|
41
|
-
"@vaadin/button": "25.
|
|
42
|
-
"@vaadin/component-base": "25.
|
|
43
|
-
"@vaadin/vaadin-themable-mixin": "25.
|
|
40
|
+
"@vaadin/a11y-base": "25.4.0-alpha1",
|
|
41
|
+
"@vaadin/button": "25.4.0-alpha1",
|
|
42
|
+
"@vaadin/component-base": "25.4.0-alpha1",
|
|
43
|
+
"@vaadin/vaadin-themable-mixin": "25.4.0-alpha1",
|
|
44
44
|
"lit": "^3.0.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@vaadin/aura": "25.
|
|
48
|
-
"@vaadin/chai-plugins": "25.
|
|
49
|
-
"@vaadin/test-runner-commands": "25.
|
|
47
|
+
"@vaadin/aura": "25.4.0-alpha1",
|
|
48
|
+
"@vaadin/chai-plugins": "25.4.0-alpha1",
|
|
49
|
+
"@vaadin/test-runner-commands": "25.4.0-alpha1",
|
|
50
50
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
51
|
-
"@vaadin/vaadin-lumo-styles": "25.
|
|
51
|
+
"@vaadin/vaadin-lumo-styles": "25.4.0-alpha1",
|
|
52
52
|
"sinon": "^22.0.0"
|
|
53
53
|
},
|
|
54
54
|
"cvdlName": "vaadin-dashboard",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"web-types.json",
|
|
58
58
|
"web-types.lit.json"
|
|
59
59
|
],
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "be38ec1866e96508f3f4591f95c949ef55903a34"
|
|
61
61
|
}
|
|
@@ -262,9 +262,11 @@ declare class Dashboard<TItem extends DashboardItem = DashboardItem> extends Das
|
|
|
262
262
|
|
|
263
263
|
/**
|
|
264
264
|
* The object used to localize this component. To change the default
|
|
265
|
-
* localization,
|
|
265
|
+
* localization, set this to an object that provides all properties, or
|
|
266
266
|
* just the individual properties you want to change.
|
|
267
267
|
*
|
|
268
|
+
* When not set, defaults to `undefined`.
|
|
269
|
+
*
|
|
268
270
|
* The object has the following structure and default values:
|
|
269
271
|
* ```js
|
|
270
272
|
* {
|
|
@@ -284,7 +286,7 @@ declare class Dashboard<TItem extends DashboardItem = DashboardItem> extends Das
|
|
|
284
286
|
* }
|
|
285
287
|
* ```
|
|
286
288
|
*/
|
|
287
|
-
i18n: DashboardI18n;
|
|
289
|
+
i18n: DashboardI18n | undefined;
|
|
288
290
|
|
|
289
291
|
addEventListener<K extends keyof DashboardEventMap<TItem>>(
|
|
290
292
|
type: K,
|
package/src/vaadin-dashboard.js
CHANGED
|
@@ -176,9 +176,11 @@ class Dashboard extends DashboardLayoutMixin(
|
|
|
176
176
|
|
|
177
177
|
/**
|
|
178
178
|
* The object used to localize this component. To change the default
|
|
179
|
-
* localization,
|
|
179
|
+
* localization, set this to an object that provides all properties, or
|
|
180
180
|
* just the individual properties you want to change.
|
|
181
181
|
*
|
|
182
|
+
* When not set, defaults to `undefined`.
|
|
183
|
+
*
|
|
182
184
|
* The object has the following structure and default values:
|
|
183
185
|
* ```js
|
|
184
186
|
* {
|
|
@@ -197,7 +199,7 @@ class Dashboard extends DashboardLayoutMixin(
|
|
|
197
199
|
* moveBackward: 'Move Backward',
|
|
198
200
|
* }
|
|
199
201
|
* ```
|
|
200
|
-
* @type {
|
|
202
|
+
* @type {DashboardI18n | undefined}
|
|
201
203
|
*/
|
|
202
204
|
get i18n() {
|
|
203
205
|
return super.i18n;
|
package/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/dashboard",
|
|
4
|
-
"version": "25.
|
|
4
|
+
"version": "25.4.0-alpha1",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
},
|
|
141
141
|
{
|
|
142
142
|
"name": "vaadin-dashboard",
|
|
143
|
-
"description": "A responsive, grid-based dashboard layout component\n\n### Quick Start\n\nAssign an array to the [`items`](https://cdn.vaadin.com/vaadin-web-components/25.
|
|
143
|
+
"description": "A responsive, grid-based dashboard layout component\n\n### Quick Start\n\nAssign an array to the [`items`](https://cdn.vaadin.com/vaadin-web-components/25.4.0-alpha1/#/elements/vaadin-dashboard#property-items) property.\nSet a renderer function to the [`renderer`](https://cdn.vaadin.com/vaadin-web-components/25.4.0-alpha1/#/elements/vaadin-dashboard#property-renderer) property.\n\nThe widgets and the sections will be generated and configured based on the renderer and the items provided.\n\n```html\n<vaadin-dashboard></vaadin-dashboard>\n```\n```js\nconst dashboard = document.querySelector('vaadin-dashboard');\n\ndashboard.items = [\n { title: 'Widget 1 title', content: 'Text 1', rowspan: 2 },\n { title: 'Widget 2 title', content: 'Text 2', colspan: 2 },\n {\n title: 'Section title',\n items: [{ title: 'Widget in section title', content: 'Text 3' }]\n },\n // ... more items\n];\n\ndashboard.renderer = (root, _dashboard, { item }) => {\n const widget = root.firstElementChild || document.createElement('vaadin-dashboard-widget');\n if (!root.contains(widget)) {\n root.appendChild(widget);\n }\n widget.widgetTitle = item.title;\n widget.textContent = item.content;\n};\n```\n\n### Styling\n\nThe following custom properties are available:\n\nCustom Property | Description\n------------------------------------|-------------\n`--vaadin-dashboard-col-min-width` | minimum column width of the dashboard\n`--vaadin-dashboard-col-max-width` | maximum column width of the dashboard\n`--vaadin-dashboard-row-min-height` | minimum row height of the dashboard\n`--vaadin-dashboard-row-height` | fixed row height of the dashboard. Must be in length units. Overrides `--vaadin-dashboard-row-min-height` and prevents rows from growing to fit content\n`--vaadin-dashboard-col-max-count` | maximum column count of the dashboard\n`--vaadin-dashboard-gap` | gap between child elements. Must be in length units (0 is not allowed, 0px is)\n`--vaadin-dashboard-padding` | space around the dashboard's outer edges. Must be in length units (0 is not allowed, 0px is)\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n---------------------|-------------\n`editable` | Set when the dashboard is editable.\n`dense-layout` | Set when the dashboard is in dense mode.\n`item-selected` | Set when an item is selected.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
|
|
144
144
|
"attributes": [
|
|
145
145
|
{
|
|
146
146
|
"name": "dense-layout",
|
|
@@ -201,10 +201,11 @@
|
|
|
201
201
|
},
|
|
202
202
|
{
|
|
203
203
|
"name": "i18n",
|
|
204
|
-
"description": "The object used to localize this component. To change the default\nlocalization,
|
|
204
|
+
"description": "The object used to localize this component. To change the default\nlocalization, set this to an object that provides all properties, or\njust the individual properties you want to change.\n\nWhen not set, defaults to `undefined`.\n\nThe object has the following structure and default values:\n```js\n{\n selectSection: 'Select section for editing',\n selectWidget: 'Select widget for editing',\n remove: 'Remove',\n resize: 'Resize',\n resizeApply: 'Apply',\n resizeShrinkWidth: 'Shrink width',\n resizeGrowWidth: 'Grow width',\n resizeShrinkHeight: 'Shrink height',\n resizeGrowHeight: 'Grow height',\n move: 'Move',\n moveApply: 'Apply',\n moveForward: 'Move Forward',\n moveBackward: 'Move Backward',\n}\n```",
|
|
205
205
|
"value": {
|
|
206
206
|
"type": [
|
|
207
|
-
"Object"
|
|
207
|
+
"Object",
|
|
208
|
+
"undefined"
|
|
208
209
|
]
|
|
209
210
|
}
|
|
210
211
|
},
|
package/web-types.lit.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/dashboard",
|
|
4
|
-
"version": "25.
|
|
4
|
+
"version": "25.4.0-alpha1",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"framework": "lit",
|
|
7
7
|
"framework-config": {
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
67
|
"name": "vaadin-dashboard",
|
|
68
|
-
"description": "A responsive, grid-based dashboard layout component\n\n### Quick Start\n\nAssign an array to the [`items`](https://cdn.vaadin.com/vaadin-web-components/25.
|
|
68
|
+
"description": "A responsive, grid-based dashboard layout component\n\n### Quick Start\n\nAssign an array to the [`items`](https://cdn.vaadin.com/vaadin-web-components/25.4.0-alpha1/#/elements/vaadin-dashboard#property-items) property.\nSet a renderer function to the [`renderer`](https://cdn.vaadin.com/vaadin-web-components/25.4.0-alpha1/#/elements/vaadin-dashboard#property-renderer) property.\n\nThe widgets and the sections will be generated and configured based on the renderer and the items provided.\n\n```html\n<vaadin-dashboard></vaadin-dashboard>\n```\n```js\nconst dashboard = document.querySelector('vaadin-dashboard');\n\ndashboard.items = [\n { title: 'Widget 1 title', content: 'Text 1', rowspan: 2 },\n { title: 'Widget 2 title', content: 'Text 2', colspan: 2 },\n {\n title: 'Section title',\n items: [{ title: 'Widget in section title', content: 'Text 3' }]\n },\n // ... more items\n];\n\ndashboard.renderer = (root, _dashboard, { item }) => {\n const widget = root.firstElementChild || document.createElement('vaadin-dashboard-widget');\n if (!root.contains(widget)) {\n root.appendChild(widget);\n }\n widget.widgetTitle = item.title;\n widget.textContent = item.content;\n};\n```\n\n### Styling\n\nThe following custom properties are available:\n\nCustom Property | Description\n------------------------------------|-------------\n`--vaadin-dashboard-col-min-width` | minimum column width of the dashboard\n`--vaadin-dashboard-col-max-width` | maximum column width of the dashboard\n`--vaadin-dashboard-row-min-height` | minimum row height of the dashboard\n`--vaadin-dashboard-row-height` | fixed row height of the dashboard. Must be in length units. Overrides `--vaadin-dashboard-row-min-height` and prevents rows from growing to fit content\n`--vaadin-dashboard-col-max-count` | maximum column count of the dashboard\n`--vaadin-dashboard-gap` | gap between child elements. Must be in length units (0 is not allowed, 0px is)\n`--vaadin-dashboard-padding` | space around the dashboard's outer edges. Must be in length units (0 is not allowed, 0px is)\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n---------------------|-------------\n`editable` | Set when the dashboard is editable.\n`dense-layout` | Set when the dashboard is in dense mode.\n`item-selected` | Set when an item is selected.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
|
|
69
69
|
"extension": true,
|
|
70
70
|
"attributes": [
|
|
71
71
|
{
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
86
|
"name": ".i18n",
|
|
87
|
-
"description": "The object used to localize this component. To change the default\nlocalization,
|
|
87
|
+
"description": "The object used to localize this component. To change the default\nlocalization, set this to an object that provides all properties, or\njust the individual properties you want to change.\n\nWhen not set, defaults to `undefined`.\n\nThe object has the following structure and default values:\n```js\n{\n selectSection: 'Select section for editing',\n selectWidget: 'Select widget for editing',\n remove: 'Remove',\n resize: 'Resize',\n resizeApply: 'Apply',\n resizeShrinkWidth: 'Shrink width',\n resizeGrowWidth: 'Grow width',\n resizeShrinkHeight: 'Shrink height',\n resizeGrowHeight: 'Grow height',\n move: 'Move',\n moveApply: 'Apply',\n moveForward: 'Move Forward',\n moveBackward: 'Move Backward',\n}\n```",
|
|
88
88
|
"value": {
|
|
89
89
|
"kind": "expression"
|
|
90
90
|
}
|