@vaadin/map 24.8.0-alpha9 → 25.0.0-alpha2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/map",
3
- "version": "24.8.0-alpha9",
3
+ "version": "25.0.0-alpha2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -31,24 +31,21 @@
31
31
  "Vaadin",
32
32
  "vaadin-map",
33
33
  "web-components",
34
- "web-component",
35
- "polymer"
34
+ "web-component"
36
35
  ],
37
36
  "dependencies": {
38
37
  "@open-wc/dedupe-mixin": "^1.3.0",
39
- "@polymer/polymer": "^3.0.0",
40
- "@vaadin/a11y-base": "24.8.0-alpha9",
41
- "@vaadin/component-base": "24.8.0-alpha9",
42
- "@vaadin/vaadin-lumo-styles": "24.8.0-alpha9",
43
- "@vaadin/vaadin-material-styles": "24.8.0-alpha9",
44
- "@vaadin/vaadin-themable-mixin": "24.8.0-alpha9",
38
+ "@vaadin/a11y-base": "25.0.0-alpha2",
39
+ "@vaadin/component-base": "25.0.0-alpha2",
40
+ "@vaadin/vaadin-lumo-styles": "25.0.0-alpha2",
41
+ "@vaadin/vaadin-themable-mixin": "25.0.0-alpha2",
45
42
  "lit": "^3.0.0",
46
43
  "ol": "6.13.0"
47
44
  },
48
45
  "devDependencies": {
49
- "@vaadin/chai-plugins": "24.8.0-alpha9",
50
- "@vaadin/test-runner-commands": "24.8.0-alpha9",
51
- "@vaadin/testing-helpers": "^1.1.0",
46
+ "@vaadin/chai-plugins": "25.0.0-alpha2",
47
+ "@vaadin/test-runner-commands": "25.0.0-alpha2",
48
+ "@vaadin/testing-helpers": "^2.0.0",
52
49
  "sinon": "^18.0.0"
53
50
  },
54
51
  "cvdlName": "vaadin-map",
@@ -56,5 +53,5 @@
56
53
  "web-types.json",
57
54
  "web-types.lit.json"
58
55
  ],
59
- "gitHead": "4de3809275ddfd733b0d13fd02af8faf73eb6770"
56
+ "gitHead": "67ffcd5355cf21ce1b5039c598525109fc4c164b"
60
57
  }
package/src/vaadin-map.js CHANGED
@@ -8,15 +8,14 @@
8
8
  * See https://vaadin.com/commercial-license-and-service-terms for the full
9
9
  * license.
10
10
  */
11
- import { html, PolymerElement } from '@polymer/polymer/polymer-element.js';
11
+ import { html, LitElement } from 'lit';
12
12
  import { defineCustomElement } from '@vaadin/component-base/src/define.js';
13
13
  import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
14
- import { registerStyles, ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
14
+ import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
15
+ import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
15
16
  import { MapMixin } from './vaadin-map-mixin.js';
16
17
  import { mapStyles } from './vaadin-map-styles.js';
17
18
 
18
- registerStyles('vaadin-map', mapStyles, { moduleId: 'vaadin-map-styles' });
19
-
20
19
  /**
21
20
  * `vaadin-map` is a web component for displaying web maps.
22
21
  *
@@ -57,7 +56,7 @@ registerStyles('vaadin-map', mapStyles, { moduleId: 'vaadin-map-styles' });
57
56
  * @mixes ThemableMixin
58
57
  * @mixes ElementMixin
59
58
  */
60
- class Map extends MapMixin(ThemableMixin(ElementMixin(PolymerElement))) {
59
+ class Map extends MapMixin(ThemableMixin(ElementMixin(PolylitMixin(LitElement)))) {
61
60
  static get is() {
62
61
  return 'vaadin-map';
63
62
  }
@@ -66,7 +65,12 @@ class Map extends MapMixin(ThemableMixin(ElementMixin(PolymerElement))) {
66
65
  return 'vaadin-map';
67
66
  }
68
67
 
69
- static get template() {
68
+ static get styles() {
69
+ return mapStyles;
70
+ }
71
+
72
+ /** @protected */
73
+ render() {
70
74
  return html``;
71
75
  }
72
76
  }
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/map",
4
- "version": "24.8.0-alpha9",
4
+ "version": "25.0.0-alpha2",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/map",
4
- "version": "24.8.0-alpha9",
4
+ "version": "25.0.0-alpha2",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {
@@ -1,11 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright (c) 2000 - 2025 Vaadin Ltd.
4
- *
5
- * This program is available under Vaadin Commercial License and Service Terms.
6
- *
7
- *
8
- * See https://vaadin.com/commercial-license-and-service-terms for the full
9
- * license.
10
- */
11
- export * from './vaadin-map.js';
@@ -1,48 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright (c) 2000 - 2025 Vaadin Ltd.
4
- *
5
- * This program is available under Vaadin Commercial License and Service Terms.
6
- *
7
- *
8
- * See https://vaadin.com/commercial-license-and-service-terms for the full
9
- * license.
10
- */
11
- import { html, LitElement } from 'lit';
12
- import { defineCustomElement } from '@vaadin/component-base/src/define.js';
13
- import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
14
- import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
15
- import { ThemableMixin } from '@vaadin/vaadin-themable-mixin';
16
- import { MapMixin } from './vaadin-map-mixin.js';
17
- import { mapStyles } from './vaadin-map-styles.js';
18
-
19
- /**
20
- * LitElement based version of `<vaadin-map>` web component.
21
- *
22
- * ## Disclaimer
23
- *
24
- * This component is an experiment and not yet a part of Vaadin platform.
25
- * There is no ETA regarding specific Vaadin version where it'll land.
26
- */
27
- class Map extends MapMixin(ThemableMixin(ElementMixin(PolylitMixin(LitElement)))) {
28
- static get is() {
29
- return 'vaadin-map';
30
- }
31
-
32
- static get cvdlName() {
33
- return 'vaadin-map';
34
- }
35
-
36
- static get styles() {
37
- return mapStyles;
38
- }
39
-
40
- /** @protected */
41
- render() {
42
- return html``;
43
- }
44
- }
45
-
46
- defineCustomElement(Map);
47
-
48
- export { Map };
@@ -1,12 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright (c) 2000 - 2025 Vaadin Ltd.
4
- *
5
- * This program is available under Vaadin Commercial License and Service Terms.
6
- *
7
- *
8
- * See https://vaadin.com/commercial-license-and-service-terms for the full
9
- * license.
10
- */
11
- import './vaadin-map-styles.js';
12
- import '../../src/vaadin-lit-map.js';
@@ -1,12 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright (c) 2000 - 2025 Vaadin Ltd.
4
- *
5
- * This program is available under Vaadin Commercial License and Service Terms.
6
- *
7
- *
8
- * See https://vaadin.com/commercial-license-and-service-terms for the full
9
- * license.
10
- */
11
- import './vaadin-map-styles.js';
12
- import '../../src/vaadin-lit-map.js';
@@ -1,12 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright (c) 2000 - 2025 Vaadin Ltd.
4
- *
5
- * This program is available under Vaadin Commercial License and Service Terms.
6
- *
7
- *
8
- * See https://vaadin.com/commercial-license-and-service-terms for the full
9
- * license.
10
- */
11
- import './vaadin-map-styles.js';
12
- import '../../src/vaadin-lit-map.js';
@@ -1,12 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright (c) 2000 - 2025 Vaadin Ltd.
4
- *
5
- * This program is available under Vaadin Commercial License and Service Terms.
6
- *
7
- *
8
- * See https://vaadin.com/commercial-license-and-service-terms for the full
9
- * license.
10
- */
11
- import './vaadin-map-styles.js';
12
- import '../../src/vaadin-lit-map.js';
@@ -1,13 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright (c) 2000 - 2025 Vaadin Ltd.
4
- *
5
- * This program is available under Vaadin Commercial License and Service Terms.
6
- *
7
- *
8
- * See https://vaadin.com/commercial-license-and-service-terms for the full
9
- * license.
10
- */
11
- import '@vaadin/vaadin-material-styles/color.js';
12
- import '@vaadin/vaadin-material-styles/shadow.js';
13
- import '@vaadin/vaadin-material-styles/typography.js';
@@ -1,152 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright (c) 2000 - 2025 Vaadin Ltd.
4
- *
5
- * This program is available under Vaadin Commercial License and Service Terms.
6
- *
7
- *
8
- * See https://vaadin.com/commercial-license-and-service-terms for the full
9
- * license.
10
- */
11
- import '@vaadin/vaadin-material-styles/color.js';
12
- import '@vaadin/vaadin-material-styles/shadow.js';
13
- import '@vaadin/vaadin-material-styles/typography.js';
14
- import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
15
-
16
- registerStyles(
17
- 'vaadin-map',
18
- css`
19
- :host {
20
- font-family: var(--material-font-family);
21
- font-size: var(--material-body-font-size);
22
- }
23
-
24
- :host(:not([theme~='borderless'])) {
25
- border-radius: 4px;
26
- border: 1px solid var(--material-divider-color);
27
- }
28
-
29
- :host([focus-ring]) {
30
- box-shadow: 0 0 0 2px var(--material-primary-color);
31
- }
32
-
33
- .ol-control {
34
- border-radius: 4px;
35
- transition: 0.1s box-shadow;
36
- box-shadow: var(--material-shadow-elevation-2dp);
37
- }
38
-
39
- .ol-control:hover {
40
- background-color: var(--material-background-color);
41
- }
42
-
43
- .ol-control:not(.ol-uncollapsible):hover {
44
- box-shadow: var(--material-shadow-elevation-4dp);
45
- background-color: rgba(0, 0, 0, 0.2);
46
- }
47
-
48
- .ol-control button {
49
- width: 2em;
50
- height: 2em;
51
- background-color: var(--material-background-color);
52
- border-radius: inherit;
53
- }
54
-
55
- .ol-control button,
56
- .ol-attribution:not(.ol-uncollapsible) ul {
57
- color: var(--material-secondary-text-color);
58
- }
59
-
60
- .ol-control:hover button,
61
- .ol-attribution:hover ul {
62
- color: var(--material-body-text-color);
63
- }
64
-
65
- .ol-control button:hover {
66
- color: var(--material-primary-text-color);
67
- }
68
-
69
- .ol-control button:active {
70
- background-color: var(--material-secondary-background-color);
71
- }
72
-
73
- @supports not selector(:focus-visible) {
74
- .ol-control button:focus {
75
- outline: none;
76
- box-shadow: 0 0 0 2px var(--material-primary-color);
77
- }
78
- }
79
-
80
- .ol-control button:focus-visible {
81
- outline: none;
82
- box-shadow: 0 0 0 2px var(--material-primary-color);
83
- }
84
-
85
- .ol-zoom {
86
- gap: 1px;
87
- }
88
-
89
- button.ol-zoom-in {
90
- border-bottom-left-radius: 0;
91
- border-bottom-right-radius: 0;
92
- }
93
-
94
- button.ol-zoom-out {
95
- border-top-left-radius: 0;
96
- border-top-right-radius: 0;
97
- }
98
-
99
- .ol-attribution.ol-uncollapsible {
100
- border-radius: 4px 0 0;
101
- }
102
-
103
- .ol-attribution ul {
104
- font-size: var(--material-caption-font-size);
105
- cursor: default;
106
- }
107
-
108
- .ol-attribution:not(.ol-uncollapsible) ul {
109
- background-color: var(--material-background-color);
110
- }
111
-
112
- .ol-attribution a {
113
- color: inherit;
114
- cursor: pointer;
115
- }
116
-
117
- .ol-scale-bar-inner {
118
- border-radius: 4px;
119
- }
120
-
121
- .ol-full-screen {
122
- height: 2em;
123
- }
124
-
125
- .ol-overviewmap:not(.ol-collapsed),
126
- .ol-overviewmap:not(.ol-collapsed):hover {
127
- background-color: var(--material-background-color);
128
- }
129
-
130
- .ol-overviewmap-map {
131
- margin: 2px;
132
- border: 0;
133
- border-radius: 2px;
134
- }
135
-
136
- .ol-zoomslider,
137
- .ol-zoomslider:not(.ol-uncollapsible):hover {
138
- box-shadow: none;
139
- overflow: visible;
140
- }
141
-
142
- .ol-zoomslider button {
143
- height: 16px;
144
- box-shadow: var(--material-shadow-elevation-2dp);
145
- }
146
-
147
- .ol-zoomslider:hover button {
148
- box-shadow: var(--material-shadow-elevation-4dp);
149
- }
150
- `,
151
- { moduleId: 'material-map' },
152
- );
@@ -1,12 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright (c) 2000 - 2025 Vaadin Ltd.
4
- *
5
- * This program is available under Vaadin Commercial License and Service Terms.
6
- *
7
- *
8
- * See https://vaadin.com/commercial-license-and-service-terms for the full
9
- * license.
10
- */
11
- import './vaadin-map-styles.js';
12
- import '../../src/vaadin-map.js';
@@ -1,12 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright (c) 2000 - 2025 Vaadin Ltd.
4
- *
5
- * This program is available under Vaadin Commercial License and Service Terms.
6
- *
7
- *
8
- * See https://vaadin.com/commercial-license-and-service-terms for the full
9
- * license.
10
- */
11
- import './vaadin-map-styles.js';
12
- import '../../src/vaadin-map.js';
@@ -1 +0,0 @@
1
- export * from './vaadin-map.js';
package/vaadin-lit-map.js DELETED
@@ -1,2 +0,0 @@
1
- import './theme/lumo/vaadin-lit-map.js';
2
- export * from './src/vaadin-lit-map.js';