@vaadin/map 25.0.0-alpha1 → 25.0.0-alpha11
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 +10 -11
- package/src/{vaadin-map-styles.js → styles/vaadin-map-base-styles.js} +138 -37
- package/src/vaadin-map.js +9 -2
- package/vaadin-map.js +1 -1
- package/web-types.json +1 -1
- package/web-types.lit.json +1 -1
- package/theme/lumo/vaadin-map-styles.d.ts +0 -16
- package/theme/lumo/vaadin-map-styles.js +0 -195
- package/theme/lumo/vaadin-map.d.ts +0 -12
- package/theme/lumo/vaadin-map.js +0 -12
- /package/src/{vaadin-map-styles.d.ts → styles/vaadin-map-base-styles.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/map",
|
|
3
|
-
"version": "25.0.0-
|
|
3
|
+
"version": "25.0.0-alpha11",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -21,7 +21,6 @@
|
|
|
21
21
|
"type": "module",
|
|
22
22
|
"files": [
|
|
23
23
|
"src",
|
|
24
|
-
"theme",
|
|
25
24
|
"vaadin-*.d.ts",
|
|
26
25
|
"vaadin-*.js",
|
|
27
26
|
"web-types.json",
|
|
@@ -35,17 +34,17 @@
|
|
|
35
34
|
],
|
|
36
35
|
"dependencies": {
|
|
37
36
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
38
|
-
"@vaadin/a11y-base": "25.0.0-
|
|
39
|
-
"@vaadin/component-base": "25.0.0-
|
|
40
|
-
"@vaadin/vaadin-
|
|
41
|
-
"@vaadin/vaadin-themable-mixin": "25.0.0-alpha1",
|
|
37
|
+
"@vaadin/a11y-base": "25.0.0-alpha11",
|
|
38
|
+
"@vaadin/component-base": "25.0.0-alpha11",
|
|
39
|
+
"@vaadin/vaadin-themable-mixin": "25.0.0-alpha11",
|
|
42
40
|
"lit": "^3.0.0",
|
|
43
|
-
"ol": "6.
|
|
41
|
+
"ol": "10.6.0"
|
|
44
42
|
},
|
|
45
43
|
"devDependencies": {
|
|
46
|
-
"@vaadin/chai-plugins": "25.0.0-
|
|
47
|
-
"@vaadin/test-runner-commands": "25.0.0-
|
|
48
|
-
"@vaadin/testing-helpers": "^
|
|
44
|
+
"@vaadin/chai-plugins": "25.0.0-alpha11",
|
|
45
|
+
"@vaadin/test-runner-commands": "25.0.0-alpha11",
|
|
46
|
+
"@vaadin/testing-helpers": "^2.0.0",
|
|
47
|
+
"@vaadin/vaadin-lumo-styles": "25.0.0-alpha11",
|
|
49
48
|
"sinon": "^18.0.0"
|
|
50
49
|
},
|
|
51
50
|
"cvdlName": "vaadin-map",
|
|
@@ -53,5 +52,5 @@
|
|
|
53
52
|
"web-types.json",
|
|
54
53
|
"web-types.lit.json"
|
|
55
54
|
],
|
|
56
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "abfd315ba5a7484a613e0768635a4e8fe945a44b"
|
|
57
56
|
}
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
9
9
|
* license.
|
|
10
10
|
*/
|
|
11
|
-
import
|
|
11
|
+
import '@vaadin/component-base/src/styles/style-props.js';
|
|
12
|
+
import { css } from 'lit';
|
|
12
13
|
|
|
13
14
|
export const mapStyles = css`
|
|
14
15
|
:host {
|
|
@@ -23,6 +24,25 @@ export const mapStyles = css`
|
|
|
23
24
|
display: none !important;
|
|
24
25
|
}
|
|
25
26
|
|
|
27
|
+
:host([focus-ring]) {
|
|
28
|
+
outline: var(--vaadin-focus-ring-width) solid var(--vaadin-focus-ring-color);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
:host(:not([theme~='no-border'])) {
|
|
32
|
+
border-radius: var(--vaadin-map-border-radius, var(--vaadin-radius-m));
|
|
33
|
+
position: relative;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
:host(:not([theme~='no-border']))::before {
|
|
37
|
+
content: '';
|
|
38
|
+
position: absolute;
|
|
39
|
+
inset: 0;
|
|
40
|
+
border: 1px solid var(--vaadin-map-border-color, var(--vaadin-border-color));
|
|
41
|
+
border-radius: inherit;
|
|
42
|
+
z-index: 1;
|
|
43
|
+
pointer-events: none;
|
|
44
|
+
}
|
|
45
|
+
|
|
26
46
|
#map {
|
|
27
47
|
width: 100%;
|
|
28
48
|
height: 100%;
|
|
@@ -92,7 +112,7 @@ export const mapStyles = css`
|
|
|
92
112
|
display: grid;
|
|
93
113
|
grid-template-columns: min-content 1fr min-content;
|
|
94
114
|
grid-template-rows: min-content 1fr min-content min-content min-content min-content;
|
|
95
|
-
padding: var(--vaadin-map-controls-inset,
|
|
115
|
+
padding: var(--vaadin-map-controls-inset, 4px);
|
|
96
116
|
box-sizing: border-box;
|
|
97
117
|
grid-template-areas:
|
|
98
118
|
'scale mouse-position fullscreen'
|
|
@@ -142,7 +162,7 @@ export const mapStyles = css`
|
|
|
142
162
|
|
|
143
163
|
.ol-scale-step-text {
|
|
144
164
|
position: absolute;
|
|
145
|
-
top:
|
|
165
|
+
top: 12px;
|
|
146
166
|
font-size: 0.625em;
|
|
147
167
|
color: #000;
|
|
148
168
|
filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff);
|
|
@@ -153,31 +173,33 @@ export const mapStyles = css`
|
|
|
153
173
|
.ol-scale-text {
|
|
154
174
|
position: absolute;
|
|
155
175
|
font-size: 0.625em;
|
|
156
|
-
top:
|
|
176
|
+
top: 32px;
|
|
157
177
|
color: #000;
|
|
158
178
|
white-space: nowrap;
|
|
159
179
|
filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff);
|
|
160
180
|
}
|
|
161
181
|
|
|
162
182
|
.ol-scale-singlebar {
|
|
163
|
-
height:
|
|
183
|
+
height: 4px;
|
|
164
184
|
opacity: 0.5;
|
|
165
185
|
}
|
|
166
186
|
|
|
167
187
|
.ol-control {
|
|
168
|
-
margin:
|
|
188
|
+
margin: 4px;
|
|
189
|
+
border-radius: var(--vaadin-button-border-radius, var(--vaadin-radius-m));
|
|
169
190
|
}
|
|
170
191
|
|
|
171
192
|
.ol-control button {
|
|
172
|
-
|
|
193
|
+
appearance: none;
|
|
194
|
+
display: block;
|
|
173
195
|
border: 0;
|
|
174
196
|
margin: 0;
|
|
175
197
|
padding: 0;
|
|
176
|
-
background: #fff;
|
|
177
|
-
font: inherit;
|
|
178
198
|
color: inherit;
|
|
179
|
-
|
|
180
|
-
|
|
199
|
+
font: inherit;
|
|
200
|
+
width: var(--vaadin-map-control-size, 24px);
|
|
201
|
+
height: var(--vaadin-map-control-size, 24px);
|
|
202
|
+
border-radius: inherit;
|
|
181
203
|
}
|
|
182
204
|
|
|
183
205
|
.ol-control button::-moz-focus-inner {
|
|
@@ -195,14 +217,7 @@ export const mapStyles = css`
|
|
|
195
217
|
grid-area: zoom;
|
|
196
218
|
display: flex;
|
|
197
219
|
flex-direction: column;
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
.ol-zoom-in:empty::before {
|
|
201
|
-
content: var(--vaadin-map-icon-zoom-in, '+');
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
.ol-zoom-out:empty::before {
|
|
205
|
-
content: var(--vaadin-map-icon-zoom-out, '\\2013');
|
|
220
|
+
gap: 2px;
|
|
206
221
|
}
|
|
207
222
|
|
|
208
223
|
.ol-attribution {
|
|
@@ -213,8 +228,9 @@ export const mapStyles = css`
|
|
|
213
228
|
}
|
|
214
229
|
|
|
215
230
|
.ol-attribution.ol-uncollapsible {
|
|
216
|
-
margin-inline-end: calc(var(--vaadin-map-controls-inset,
|
|
217
|
-
margin-block-end: calc(var(--vaadin-map-controls-inset,
|
|
231
|
+
margin-inline-end: calc(var(--vaadin-map-controls-inset, 4px) * -1);
|
|
232
|
+
margin-block-end: calc(var(--vaadin-map-controls-inset, 4px) * -1);
|
|
233
|
+
border-radius: var(--vaadin-radius) 0 0 0;
|
|
218
234
|
}
|
|
219
235
|
|
|
220
236
|
.ol-attribution button span:empty::before {
|
|
@@ -231,7 +247,8 @@ export const mapStyles = css`
|
|
|
231
247
|
gap: 1em;
|
|
232
248
|
list-style: none;
|
|
233
249
|
margin: 0;
|
|
234
|
-
|
|
250
|
+
color: var(--vaadin-map-attribution-color, var(--vaadin-color-subtle));
|
|
251
|
+
padding: var(--vaadin-padding-container);
|
|
235
252
|
font-size: 0.8em;
|
|
236
253
|
}
|
|
237
254
|
|
|
@@ -248,7 +265,7 @@ export const mapStyles = css`
|
|
|
248
265
|
}
|
|
249
266
|
|
|
250
267
|
.ol-compass:empty::before {
|
|
251
|
-
|
|
268
|
+
mask-image: var(--_vaadin-icon-arrow-up);
|
|
252
269
|
}
|
|
253
270
|
|
|
254
271
|
.ol-full-screen {
|
|
@@ -256,11 +273,11 @@ export const mapStyles = css`
|
|
|
256
273
|
}
|
|
257
274
|
|
|
258
275
|
.ol-full-screen button:empty::before {
|
|
259
|
-
|
|
276
|
+
mask-image: var(--_vaadin-icon-fullscreen);
|
|
260
277
|
}
|
|
261
278
|
|
|
262
279
|
.ol-full-screen .ol-full-screen-true:empty::before {
|
|
263
|
-
|
|
280
|
+
mask-image: var(--_vaadin-icon-cross);
|
|
264
281
|
}
|
|
265
282
|
|
|
266
283
|
.ol-overviewmap {
|
|
@@ -269,18 +286,16 @@ export const mapStyles = css`
|
|
|
269
286
|
width: max-content;
|
|
270
287
|
}
|
|
271
288
|
|
|
272
|
-
.ol-overviewmap
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
289
|
+
.ol-overviewmap-map {
|
|
290
|
+
height: 160px;
|
|
291
|
+
width: 160px;
|
|
292
|
+
margin: 4px;
|
|
293
|
+
border: 0;
|
|
294
|
+
border-radius: var(--vaadin-button-border-radius, var(--vaadin-radius));
|
|
278
295
|
}
|
|
279
296
|
|
|
280
|
-
.ol-overviewmap-map {
|
|
281
|
-
|
|
282
|
-
width: 10em;
|
|
283
|
-
border: 1px solid rgba(0, 0, 0, 0.5);
|
|
297
|
+
.ol-overviewmap:not(.ol-uncollapsible) .ol-overviewmap-map {
|
|
298
|
+
margin-bottom: 0;
|
|
284
299
|
}
|
|
285
300
|
|
|
286
301
|
.ol-overviewmap.ol-collapsed .ol-overviewmap-map,
|
|
@@ -297,12 +312,12 @@ export const mapStyles = css`
|
|
|
297
312
|
|
|
298
313
|
.ol-zoomslider {
|
|
299
314
|
grid-area: zoom-slider;
|
|
300
|
-
height:
|
|
315
|
+
height: 128px;
|
|
301
316
|
}
|
|
302
317
|
|
|
303
318
|
.ol-zoomslider button {
|
|
304
319
|
position: relative;
|
|
305
|
-
height:
|
|
320
|
+
height: 8px;
|
|
306
321
|
display: block;
|
|
307
322
|
border-radius: inherit;
|
|
308
323
|
}
|
|
@@ -311,4 +326,90 @@ export const mapStyles = css`
|
|
|
311
326
|
grid-area: zoom-extent;
|
|
312
327
|
align-self: end;
|
|
313
328
|
}
|
|
329
|
+
|
|
330
|
+
/* icons & controls styles */
|
|
331
|
+
.ol-overviewmap button span:empty {
|
|
332
|
+
display: contents;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
.ol-overviewmap button span:empty::before {
|
|
336
|
+
mask-image: var(--vaadin-map-icon-overview-map-collapse, var(--_vaadin-icon-chevron-down));
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.ol-overviewmap.ol-collapsed button {
|
|
340
|
+
rotate: 180deg;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
.ol-overviewmap button span:empty::before,
|
|
344
|
+
.ol-zoom-in:empty::before,
|
|
345
|
+
.ol-zoom-out:empty::before,
|
|
346
|
+
.ol-compass:empty::before,
|
|
347
|
+
.ol-full-screen button:empty::before,
|
|
348
|
+
.ol-full-screen-true:empty::before {
|
|
349
|
+
content: '';
|
|
350
|
+
display: block;
|
|
351
|
+
background: currentColor;
|
|
352
|
+
width: var(--vaadin-icon-size, 1lh);
|
|
353
|
+
height: var(--vaadin-icon-size, 1lh);
|
|
354
|
+
flex: none;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
.ol-zoom-in:empty::before {
|
|
358
|
+
mask-image: var(--vaadin-map-icon-zoom-in, var(--_vaadin-icon-plus));
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
.ol-zoom-out:empty::before {
|
|
362
|
+
mask-image: var(--vaadin-map-icon-zoom-out, var(--_vaadin-icon-minus));
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
.ol-zoom button.ol-zoom-in {
|
|
366
|
+
border-bottom-left-radius: 0;
|
|
367
|
+
border-bottom-right-radius: 0;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
.ol-zoom button.ol-zoom-out {
|
|
371
|
+
border-top-left-radius: 0;
|
|
372
|
+
border-top-right-radius: 0;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.ol-control button,
|
|
376
|
+
.ol-attribution:not(.ol-uncollapsible) ul {
|
|
377
|
+
transition: 0.15s opacity;
|
|
378
|
+
background: var(--vaadin-map-control-background, var(--vaadin-background-color));
|
|
379
|
+
color: var(--vaadin-map-control-color, var(--vaadin-subtle));
|
|
380
|
+
opacity: 0.65;
|
|
381
|
+
display: flex;
|
|
382
|
+
align-items: center;
|
|
383
|
+
justify-content: center;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
.ol-control:not(.ol-uncollapsible):hover {
|
|
387
|
+
box-shadow: var(--vaadin-map-control-shadow, 0 3px 8px -1px rgba(0, 0, 0, 0.2));
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
.ol-attribution a {
|
|
391
|
+
color: inherit;
|
|
392
|
+
cursor: pointer;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
.ol-control:hover button,
|
|
396
|
+
.ol-control button:focus,
|
|
397
|
+
.ol-attribution:hover ul {
|
|
398
|
+
opacity: 1;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
.ol-control button:hover {
|
|
402
|
+
color: var(--vaadin-map-control-color-hover, var(--vaadin-color));
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
.ol-control button:focus-visible {
|
|
406
|
+
outline: var(--vaadin-focus-ring-width) solid var(--vaadin-focus-ring-color);
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
.ol-overviewmap:not(.ol-collapsed),
|
|
410
|
+
.ol-overviewmap:not(.ol-collapsed):hover {
|
|
411
|
+
background: var(--vaadin-map-control-background, var(--vaadin-background-color));
|
|
412
|
+
box-shadow: var(--vaadin-map-control-shadow, 0 3px 8px -1px rgba(0, 0, 0, 0.2));
|
|
413
|
+
transition: 0.15s box-shadow;
|
|
414
|
+
}
|
|
314
415
|
`;
|
package/src/vaadin-map.js
CHANGED
|
@@ -12,9 +12,10 @@ 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
14
|
import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
|
|
15
|
+
import { LumoInjectionMixin } from '@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js';
|
|
15
16
|
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
17
|
+
import { mapStyles } from './styles/vaadin-map-base-styles.js';
|
|
16
18
|
import { MapMixin } from './vaadin-map-mixin.js';
|
|
17
|
-
import { mapStyles } from './vaadin-map-styles.js';
|
|
18
19
|
|
|
19
20
|
/**
|
|
20
21
|
* `vaadin-map` is a web component for displaying web maps.
|
|
@@ -56,7 +57,7 @@ import { mapStyles } from './vaadin-map-styles.js';
|
|
|
56
57
|
* @mixes ThemableMixin
|
|
57
58
|
* @mixes ElementMixin
|
|
58
59
|
*/
|
|
59
|
-
class Map extends MapMixin(ThemableMixin(ElementMixin(PolylitMixin(LitElement)))) {
|
|
60
|
+
class Map extends MapMixin(ThemableMixin(ElementMixin(PolylitMixin(LumoInjectionMixin(LitElement))))) {
|
|
60
61
|
static get is() {
|
|
61
62
|
return 'vaadin-map';
|
|
62
63
|
}
|
|
@@ -69,6 +70,12 @@ class Map extends MapMixin(ThemableMixin(ElementMixin(PolylitMixin(LitElement)))
|
|
|
69
70
|
return mapStyles;
|
|
70
71
|
}
|
|
71
72
|
|
|
73
|
+
static get lumoInjector() {
|
|
74
|
+
return {
|
|
75
|
+
includeBaseStyles: true,
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
72
79
|
/** @protected */
|
|
73
80
|
render() {
|
|
74
81
|
return html``;
|
package/vaadin-map.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import './
|
|
1
|
+
import './src/vaadin-map.js';
|
|
2
2
|
export * from './src/vaadin-map.js';
|
package/web-types.json
CHANGED
package/web-types.lit.json
CHANGED
|
@@ -1,16 +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-lumo-styles/color.js';
|
|
12
|
-
import '@vaadin/vaadin-lumo-styles/typography.js';
|
|
13
|
-
import '@vaadin/vaadin-lumo-styles/sizing.js';
|
|
14
|
-
import '@vaadin/vaadin-lumo-styles/spacing.js';
|
|
15
|
-
import '@vaadin/vaadin-lumo-styles/style.js';
|
|
16
|
-
import '@vaadin/vaadin-lumo-styles/font-icons.js';
|
|
@@ -1,195 +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-lumo-styles/color.js';
|
|
12
|
-
import '@vaadin/vaadin-lumo-styles/typography.js';
|
|
13
|
-
import '@vaadin/vaadin-lumo-styles/sizing.js';
|
|
14
|
-
import '@vaadin/vaadin-lumo-styles/spacing.js';
|
|
15
|
-
import '@vaadin/vaadin-lumo-styles/style.js';
|
|
16
|
-
import '@vaadin/vaadin-lumo-styles/font-icons.js';
|
|
17
|
-
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
18
|
-
|
|
19
|
-
registerStyles(
|
|
20
|
-
'vaadin-map',
|
|
21
|
-
css`
|
|
22
|
-
:host {
|
|
23
|
-
font-family: var(--lumo-font-family);
|
|
24
|
-
font-size: var(--lumo-font-size-m);
|
|
25
|
-
--vaadin-map-controls-inset: var(--lumo-space-xs);
|
|
26
|
-
--vaadin-map-icon-zoom-in: var(--lumo-icons-plus);
|
|
27
|
-
--vaadin-map-icon-zoom-out: var(--lumo-icons-minus);
|
|
28
|
-
--vaadin-map-icon-compass: var(--lumo-icons-arrow-up);
|
|
29
|
-
--vaadin-map-icon-overview-map-collapse: var(--lumo-icons-angle-down);
|
|
30
|
-
--vaadin-map-icon-overview-map-expand: var(--lumo-icons-angle-up);
|
|
31
|
-
--vaadin-map-icon-close: var(--lumo-icons-cross);
|
|
32
|
-
--vaadin-map-icon-attribution-collapse: var(--lumo-icons-angle-right);
|
|
33
|
-
--_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
|
|
34
|
-
--_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
:host(:not([theme~='borderless'])) {
|
|
38
|
-
border-radius: var(--lumo-border-radius-l);
|
|
39
|
-
position: relative;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
:host(:not([theme~='borderless']))::before {
|
|
43
|
-
content: '';
|
|
44
|
-
position: absolute;
|
|
45
|
-
inset: 0;
|
|
46
|
-
border: 1px solid var(--lumo-contrast-10pct);
|
|
47
|
-
border-radius: inherit;
|
|
48
|
-
z-index: 1;
|
|
49
|
-
pointer-events: none;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
:host([focus-ring]) {
|
|
53
|
-
box-shadow: 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.ol-control,
|
|
57
|
-
.ol-scale-bar,
|
|
58
|
-
.ol-scale-line {
|
|
59
|
-
margin: var(--lumo-space-xs);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.ol-control {
|
|
63
|
-
border-radius: var(--lumo-border-radius-m);
|
|
64
|
-
transition:
|
|
65
|
-
0.15s box-shadow,
|
|
66
|
-
0.15s background-color;
|
|
67
|
-
-webkit-backdrop-filter: blur(8px);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.ol-control:hover {
|
|
71
|
-
background-color: var(--lumo-base-color);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.ol-control:not(.ol-uncollapsible):hover {
|
|
75
|
-
box-shadow: var(--lumo-box-shadow-s);
|
|
76
|
-
background-color: var(--lumo-shade-20pct);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.ol-control button {
|
|
80
|
-
width: var(--lumo-size-s);
|
|
81
|
-
height: var(--lumo-size-s);
|
|
82
|
-
border-radius: inherit;
|
|
83
|
-
font-family: 'lumo-icons';
|
|
84
|
-
font-size: var(--lumo-icon-size-s);
|
|
85
|
-
font-weight: 400;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.ol-control button,
|
|
89
|
-
.ol-attribution:not(.ol-uncollapsible) ul {
|
|
90
|
-
transition: 0.15s opacity;
|
|
91
|
-
background-color: var(--lumo-base-color);
|
|
92
|
-
color: var(--lumo-body-text-color);
|
|
93
|
-
opacity: 0.65;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.ol-control:hover button,
|
|
97
|
-
.ol-control button:focus,
|
|
98
|
-
.ol-attribution:hover ul {
|
|
99
|
-
opacity: 1;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.ol-control button:hover {
|
|
103
|
-
color: var(--lumo-primary-text-color);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.ol-control button:active {
|
|
107
|
-
background: var(--lumo-base-color) linear-gradient(var(--lumo-contrast-5pct), var(--lumo-contrast-5pct));
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
@supports not selector(:focus-visible) {
|
|
111
|
-
.ol-control button:focus {
|
|
112
|
-
outline: none;
|
|
113
|
-
box-shadow: 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.ol-control button:focus-visible {
|
|
118
|
-
outline: none;
|
|
119
|
-
box-shadow: 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.ol-zoom {
|
|
123
|
-
gap: 2px;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
button.ol-zoom-in {
|
|
127
|
-
border-bottom-left-radius: 0;
|
|
128
|
-
border-bottom-right-radius: 0;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
button.ol-zoom-out {
|
|
132
|
-
border-top-left-radius: 0;
|
|
133
|
-
border-top-right-radius: 0;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.ol-attribution.ol-uncollapsible {
|
|
137
|
-
border-radius: var(--lumo-border-radius-m) 0 0 0;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
.ol-attribution ul {
|
|
141
|
-
font-size: var(--lumo-font-size-xxs);
|
|
142
|
-
color: var(--lumo-secondary-text-color);
|
|
143
|
-
padding: var(--lumo-space-xs) var(--lumo-space-s);
|
|
144
|
-
cursor: default;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
.ol-attribution:not(.ol-uncollapsible) ul {
|
|
148
|
-
background-color: var(--lumo-base-color);
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.ol-attribution a {
|
|
152
|
-
color: inherit;
|
|
153
|
-
cursor: pointer;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
.ol-scale-bar-inner {
|
|
157
|
-
border-radius: var(--lumo-border-radius-s);
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
.ol-full-screen {
|
|
161
|
-
height: var(--lumo-size-s);
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
.ol-overviewmap:not(.ol-collapsed),
|
|
165
|
-
.ol-overviewmap:not(.ol-collapsed):hover {
|
|
166
|
-
background-color: var(--lumo-base-color);
|
|
167
|
-
box-shadow: var(--lumo-box-shadow-s);
|
|
168
|
-
transition: 0.15s box-shadow;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
.ol-overviewmap-map {
|
|
172
|
-
margin: var(--lumo-space-xs);
|
|
173
|
-
border: 0;
|
|
174
|
-
border-radius: var(--lumo-border-radius-s);
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
.ol-overviewmap:not(.ol-uncollapsible) .ol-overviewmap-map {
|
|
178
|
-
margin-bottom: 0;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
.ol-zoomslider:not(.ol-uncollapsible):hover {
|
|
182
|
-
box-shadow: none;
|
|
183
|
-
overflow: visible;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
.ol-zoomslider button {
|
|
187
|
-
height: var(--lumo-space-m);
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
.ol-zoomslider:hover button {
|
|
191
|
-
box-shadow: var(--lumo-box-shadow-s);
|
|
192
|
-
}
|
|
193
|
-
`,
|
|
194
|
-
{ moduleId: 'lumo-map' },
|
|
195
|
-
);
|
|
@@ -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';
|
package/theme/lumo/vaadin-map.js
DELETED
|
@@ -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';
|
|
File without changes
|