@edugis-org/webmapx 0.1.7 → 0.1.8
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/dist-lib/{decorate-CWgUV1hU.js → decorate-DnZTfaod.js} +6 -6
- package/dist-lib/dist-BIbq3o-p.js +213 -0
- package/dist-lib/{dist-Dm6b7XCs.js → dist-CKAaoSoW.js} +2743 -2491
- package/dist-lib/{dist-kKlmcBXq.js → dist-CWCNMXMK.js} +1 -1
- package/dist-lib/{dist-Ha9LQCut.js → dist-D-5Gmgwo.js} +1 -1
- package/dist-lib/{layer-discovery-afWzu5hY.js → layer-discovery-DFP-WHAh.js} +1 -1
- package/dist-lib/{leaflet-adapter-D9djjrKv.js → leaflet-adapter-A0rte-c7.js} +1 -1
- package/dist-lib/{maplibre-adapter-TFc3e0G9.js → maplibre-adapter-Cy6yX6o7.js} +1 -1
- package/dist-lib/ol-tilegrid-Ct4my3IN.js +24 -0
- package/dist-lib/openlayers-adapter-B8WtV1tn.js +1462 -0
- package/dist-lib/{toast-Cm28o9U6.js → toast-BsoXOdeA.js} +1 -1
- package/dist-lib/{webmapx-3d-tool-D4CTD2gB.js → webmapx-3d-tool-CLppA7mK.js} +13 -13
- package/dist-lib/{webmapx-base-tool-Dm9NAWLD.js → webmapx-base-tool-DfRa7TlD.js} +1 -1
- package/dist-lib/{webmapx-config-edit-tool-BgcSkmmg.js → webmapx-config-edit-tool-BztWspia.js} +21 -21
- package/dist-lib/{webmapx-coordinates-tool-GMfztOzE.js → webmapx-coordinates-tool-EOqZodjr.js} +20 -20
- package/dist-lib/{webmapx-core-bundle-BDImi1RE.js → webmapx-core-bundle-CH-5vYXU.js} +607 -1519
- package/dist-lib/webmapx-draw-tool-DxQgUF1Q.js +2117 -0
- package/dist-lib/{webmapx-geolocation-tool-Rw3-Iad1.js → webmapx-geolocation-tool-DIMh2kIr.js} +26 -25
- package/dist-lib/{webmapx-import-layer-tool-DRYviHd5.js → webmapx-import-layer-tool-DMiC1TpU.js} +16 -16
- package/dist-lib/{webmapx-info-tool-BJA157cy.js → webmapx-info-tool-D-XbAU9J.js} +56 -56
- package/dist-lib/{webmapx-language-osmvector-M5y_lwOg.js → webmapx-language-osmvector-BAw9TR-M.js} +12 -11
- package/dist-lib/{webmapx-measure-tool-BXhMJFC6.js → webmapx-measure-tool-CXlg11s8.js} +34 -34
- package/dist-lib/{webmapx-modal-tool-eF6Naluv.js → webmapx-modal-tool-Cs7LRrgW.js} +3 -3
- package/dist-lib/{webmapx-plugin-tool-D2Hghf9n.js → webmapx-plugin-tool-qe2yTrWB.js} +7 -7
- package/dist-lib/{webmapx-print-tool-ob1bOsR5.js → webmapx-print-tool-DrK9sLC7.js} +27 -26
- package/dist-lib/{webmapx-search-tool-Cv8BrYvY.js → webmapx-search-tool-H7NisgWH.js} +11 -11
- package/dist-lib/webmapx-settings-EHSm-AGU.js +167 -0
- package/dist-lib/{webmapx-truearea-tool-CMB4Orm-.js → webmapx-truearea-tool-CSU9mE1D.js} +26 -26
- package/dist-lib/{webmapx-view-mode-tool-CUpLNjOj.js → webmapx-view-mode-tool-D1QyQfq8.js} +9 -9
- package/dist-lib/webmapx.css +1 -1
- package/dist-lib/webmapx.js +21 -21
- package/package.json +1 -1
- package/dist-lib/WMTS-DCN4zX0-.js +0 -1169
- package/dist-lib/alert-GeHlqlN8.js +0 -310
- package/dist-lib/button-DFdGkRPQ.js +0 -741
- package/dist-lib/checkbox-QoR4S8tV.js +0 -284
- package/dist-lib/chunk.36O46B5H-B6ZL7Sm1.js +0 -77
- package/dist-lib/chunk.3RPBFEDE-BFO1fHVm.js +0 -138
- package/dist-lib/chunk.5JY5FUCG-DTXsslmx.js +0 -1090
- package/dist-lib/chunk.6CTB5ZDJ-DjZrBd6Y.js +0 -99
- package/dist-lib/chunk.AJ3ENQ5C-Ci7Gm2b6.js +0 -175
- package/dist-lib/chunk.LD4M4QGE-CiCfhE8r.js +0 -8
- package/dist-lib/chunk.NYIIDP5N-BikXIStD.js +0 -99
- package/dist-lib/chunk.RWUUFNUL-DFztA4uV.js +0 -43
- package/dist-lib/chunk.SI4ACBFK-CLb9VfMG.js +0 -61
- package/dist-lib/chunk.YHLNUJ7P-D-kanrCf.js +0 -503
- package/dist-lib/decorators-B35AgiCU.js +0 -351
- package/dist-lib/dist-c1PlDAd1.js +0 -2359
- package/dist-lib/divider-CPm675yY.js +0 -41
- package/dist-lib/icon-CEOgWlro.js +0 -9
- package/dist-lib/icon-button-Da_nBTy3.js +0 -408
- package/dist-lib/input-CeGntPlT.js +0 -590
- package/dist-lib/ol-tilegrid-9VtyxaLG.js +0 -64
- package/dist-lib/openlayers-adapter-DVW1KCRv.js +0 -13307
- package/dist-lib/option-CBxl1mZP.js +0 -1106
- package/dist-lib/rbush-C8k41T4z.js +0 -254
- package/dist-lib/spinner-DysxdNG9.js +0 -6
- package/dist-lib/tooltip-Cucn1SiD.js +0 -197
- package/dist-lib/webmapx-draw-tool-DooAV8cF.js +0 -4336
- package/dist-lib/webmapx-settings-DDEJ8aoV.js +0 -479
|
@@ -1,310 +0,0 @@
|
|
|
1
|
-
import { a as e, i as t, n } from "./decorators-B35AgiCU.js";
|
|
2
|
-
import { t as r } from "./chunk.LD4M4QGE-CiCfhE8r.js";
|
|
3
|
-
import { a as i, c as a, i as o, o as s, s as c, t as l } from "./chunk.AJ3ENQ5C-Ci7Gm2b6.js";
|
|
4
|
-
import { d as u, f as d, l as f, u as p } from "./chunk.YHLNUJ7P-D-kanrCf.js";
|
|
5
|
-
import { a as m, t as h } from "./chunk.NYIIDP5N-BikXIStD.js";
|
|
6
|
-
import { t as g } from "./chunk.6CTB5ZDJ-DjZrBd6Y.js";
|
|
7
|
-
import { css as _, html as v } from "lit";
|
|
8
|
-
//#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.HPCLRZ2S.js
|
|
9
|
-
var y = _`
|
|
10
|
-
:host {
|
|
11
|
-
display: contents;
|
|
12
|
-
|
|
13
|
-
/* For better DX, we'll reset the margin here so the base part can inherit it */
|
|
14
|
-
margin: 0;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.alert {
|
|
18
|
-
position: relative;
|
|
19
|
-
display: flex;
|
|
20
|
-
align-items: stretch;
|
|
21
|
-
background-color: var(--sl-panel-background-color);
|
|
22
|
-
border: solid var(--sl-panel-border-width) var(--sl-panel-border-color);
|
|
23
|
-
border-top-width: calc(var(--sl-panel-border-width) * 3);
|
|
24
|
-
border-radius: var(--sl-border-radius-medium);
|
|
25
|
-
font-family: var(--sl-font-sans);
|
|
26
|
-
font-size: var(--sl-font-size-small);
|
|
27
|
-
font-weight: var(--sl-font-weight-normal);
|
|
28
|
-
line-height: 1.6;
|
|
29
|
-
color: var(--sl-color-neutral-700);
|
|
30
|
-
margin: inherit;
|
|
31
|
-
overflow: hidden;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.alert:not(.alert--has-icon) .alert__icon,
|
|
35
|
-
.alert:not(.alert--closable) .alert__close-button {
|
|
36
|
-
display: none;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.alert__icon {
|
|
40
|
-
flex: 0 0 auto;
|
|
41
|
-
display: flex;
|
|
42
|
-
align-items: center;
|
|
43
|
-
font-size: var(--sl-font-size-large);
|
|
44
|
-
padding-inline-start: var(--sl-spacing-large);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.alert--has-countdown {
|
|
48
|
-
border-bottom: none;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.alert--primary {
|
|
52
|
-
border-top-color: var(--sl-color-primary-600);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.alert--primary .alert__icon {
|
|
56
|
-
color: var(--sl-color-primary-600);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.alert--success {
|
|
60
|
-
border-top-color: var(--sl-color-success-600);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.alert--success .alert__icon {
|
|
64
|
-
color: var(--sl-color-success-600);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.alert--neutral {
|
|
68
|
-
border-top-color: var(--sl-color-neutral-600);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.alert--neutral .alert__icon {
|
|
72
|
-
color: var(--sl-color-neutral-600);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.alert--warning {
|
|
76
|
-
border-top-color: var(--sl-color-warning-600);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.alert--warning .alert__icon {
|
|
80
|
-
color: var(--sl-color-warning-600);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.alert--danger {
|
|
84
|
-
border-top-color: var(--sl-color-danger-600);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.alert--danger .alert__icon {
|
|
88
|
-
color: var(--sl-color-danger-600);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.alert__message {
|
|
92
|
-
flex: 1 1 auto;
|
|
93
|
-
display: block;
|
|
94
|
-
padding: var(--sl-spacing-large);
|
|
95
|
-
overflow: hidden;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.alert__close-button {
|
|
99
|
-
flex: 0 0 auto;
|
|
100
|
-
display: flex;
|
|
101
|
-
align-items: center;
|
|
102
|
-
font-size: var(--sl-font-size-medium);
|
|
103
|
-
margin-inline-end: var(--sl-spacing-medium);
|
|
104
|
-
align-self: center;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.alert__countdown {
|
|
108
|
-
position: absolute;
|
|
109
|
-
bottom: 0;
|
|
110
|
-
left: 0;
|
|
111
|
-
width: 100%;
|
|
112
|
-
height: calc(var(--sl-panel-border-width) * 3);
|
|
113
|
-
background-color: var(--sl-panel-border-color);
|
|
114
|
-
display: flex;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.alert__countdown--ltr {
|
|
118
|
-
justify-content: flex-end;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.alert__countdown .alert__countdown-elapsed {
|
|
122
|
-
height: 100%;
|
|
123
|
-
width: 0;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.alert--primary .alert__countdown-elapsed {
|
|
127
|
-
background-color: var(--sl-color-primary-600);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.alert--success .alert__countdown-elapsed {
|
|
131
|
-
background-color: var(--sl-color-success-600);
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
.alert--neutral .alert__countdown-elapsed {
|
|
135
|
-
background-color: var(--sl-color-neutral-600);
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
.alert--warning .alert__countdown-elapsed {
|
|
139
|
-
background-color: var(--sl-color-warning-600);
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.alert--danger .alert__countdown-elapsed {
|
|
143
|
-
background-color: var(--sl-color-danger-600);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.alert__timer {
|
|
147
|
-
display: none;
|
|
148
|
-
}
|
|
149
|
-
`, b = class e extends f {
|
|
150
|
-
constructor() {
|
|
151
|
-
super(...arguments), this.hasSlotController = new h(this, "icon", "suffix"), this.localize = new g(this), this.open = !1, this.closable = !1, this.variant = "primary", this.duration = Infinity, this.remainingTime = this.duration;
|
|
152
|
-
}
|
|
153
|
-
static get toastStack() {
|
|
154
|
-
return this.currentToastStack ||= Object.assign(document.createElement("div"), { className: "sl-toast-stack" }), this.currentToastStack;
|
|
155
|
-
}
|
|
156
|
-
firstUpdated() {
|
|
157
|
-
this.base.hidden = !this.open;
|
|
158
|
-
}
|
|
159
|
-
restartAutoHide() {
|
|
160
|
-
this.handleCountdownChange(), clearTimeout(this.autoHideTimeout), clearInterval(this.remainingTimeInterval), this.open && this.duration < Infinity && (this.autoHideTimeout = window.setTimeout(() => this.hide(), this.duration), this.remainingTime = this.duration, this.remainingTimeInterval = window.setInterval(() => {
|
|
161
|
-
this.remainingTime -= 100;
|
|
162
|
-
}, 100));
|
|
163
|
-
}
|
|
164
|
-
pauseAutoHide() {
|
|
165
|
-
var e;
|
|
166
|
-
(e = this.countdownAnimation) == null || e.pause(), clearTimeout(this.autoHideTimeout), clearInterval(this.remainingTimeInterval);
|
|
167
|
-
}
|
|
168
|
-
resumeAutoHide() {
|
|
169
|
-
var e;
|
|
170
|
-
this.duration < Infinity && (this.autoHideTimeout = window.setTimeout(() => this.hide(), this.remainingTime), this.remainingTimeInterval = window.setInterval(() => {
|
|
171
|
-
this.remainingTime -= 100;
|
|
172
|
-
}, 100), (e = this.countdownAnimation) == null || e.play());
|
|
173
|
-
}
|
|
174
|
-
handleCountdownChange() {
|
|
175
|
-
if (this.open && this.duration < Infinity && this.countdown) {
|
|
176
|
-
let { countdownElement: e } = this;
|
|
177
|
-
this.countdownAnimation = e.animate([{ width: "100%" }, { width: "0" }], {
|
|
178
|
-
duration: this.duration,
|
|
179
|
-
easing: "linear"
|
|
180
|
-
});
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
handleCloseClick() {
|
|
184
|
-
this.hide();
|
|
185
|
-
}
|
|
186
|
-
async handleOpenChange() {
|
|
187
|
-
if (this.open) {
|
|
188
|
-
this.emit("sl-show"), this.duration < Infinity && this.restartAutoHide(), await o(this.base), this.base.hidden = !1;
|
|
189
|
-
let { keyframes: e, options: t } = s(this, "alert.show", { dir: this.localize.dir() });
|
|
190
|
-
await l(this.base, e, t), this.emit("sl-after-show");
|
|
191
|
-
} else {
|
|
192
|
-
r(this), this.emit("sl-hide"), clearTimeout(this.autoHideTimeout), clearInterval(this.remainingTimeInterval), await o(this.base);
|
|
193
|
-
let { keyframes: e, options: t } = s(this, "alert.hide", { dir: this.localize.dir() });
|
|
194
|
-
await l(this.base, e, t), this.base.hidden = !0, this.emit("sl-after-hide");
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
handleDurationChange() {
|
|
198
|
-
this.restartAutoHide();
|
|
199
|
-
}
|
|
200
|
-
async show() {
|
|
201
|
-
if (!this.open) return this.open = !0, i(this, "sl-after-show");
|
|
202
|
-
}
|
|
203
|
-
async hide() {
|
|
204
|
-
if (this.open) return this.open = !1, i(this, "sl-after-hide");
|
|
205
|
-
}
|
|
206
|
-
async toast() {
|
|
207
|
-
return new Promise((t) => {
|
|
208
|
-
this.handleCountdownChange(), e.toastStack.parentElement === null && document.body.append(e.toastStack), e.toastStack.appendChild(this), requestAnimationFrame(() => {
|
|
209
|
-
this.clientWidth, this.show();
|
|
210
|
-
}), this.addEventListener("sl-after-hide", () => {
|
|
211
|
-
e.toastStack.removeChild(this), t(), e.toastStack.querySelector("sl-alert") === null && e.toastStack.remove();
|
|
212
|
-
}, { once: !0 });
|
|
213
|
-
});
|
|
214
|
-
}
|
|
215
|
-
render() {
|
|
216
|
-
return v`
|
|
217
|
-
<div
|
|
218
|
-
part="base"
|
|
219
|
-
class=${m({
|
|
220
|
-
alert: !0,
|
|
221
|
-
"alert--open": this.open,
|
|
222
|
-
"alert--closable": this.closable,
|
|
223
|
-
"alert--has-countdown": !!this.countdown,
|
|
224
|
-
"alert--has-icon": this.hasSlotController.test("icon"),
|
|
225
|
-
"alert--primary": this.variant === "primary",
|
|
226
|
-
"alert--success": this.variant === "success",
|
|
227
|
-
"alert--neutral": this.variant === "neutral",
|
|
228
|
-
"alert--warning": this.variant === "warning",
|
|
229
|
-
"alert--danger": this.variant === "danger"
|
|
230
|
-
})}
|
|
231
|
-
role="alert"
|
|
232
|
-
aria-hidden=${this.open ? "false" : "true"}
|
|
233
|
-
@mouseenter=${this.pauseAutoHide}
|
|
234
|
-
@mouseleave=${this.resumeAutoHide}
|
|
235
|
-
>
|
|
236
|
-
<div part="icon" class="alert__icon">
|
|
237
|
-
<slot name="icon"></slot>
|
|
238
|
-
</div>
|
|
239
|
-
|
|
240
|
-
<div part="message" class="alert__message" aria-live="polite">
|
|
241
|
-
<slot></slot>
|
|
242
|
-
</div>
|
|
243
|
-
|
|
244
|
-
${this.closable ? v`
|
|
245
|
-
<sl-icon-button
|
|
246
|
-
part="close-button"
|
|
247
|
-
exportparts="base:close-button__base"
|
|
248
|
-
class="alert__close-button"
|
|
249
|
-
name="x-lg"
|
|
250
|
-
library="system"
|
|
251
|
-
label=${this.localize.term("close")}
|
|
252
|
-
@click=${this.handleCloseClick}
|
|
253
|
-
></sl-icon-button>
|
|
254
|
-
` : ""}
|
|
255
|
-
|
|
256
|
-
<div role="timer" class="alert__timer">${this.remainingTime}</div>
|
|
257
|
-
|
|
258
|
-
${this.countdown ? v`
|
|
259
|
-
<div
|
|
260
|
-
class=${m({
|
|
261
|
-
alert__countdown: !0,
|
|
262
|
-
"alert__countdown--ltr": this.countdown === "ltr"
|
|
263
|
-
})}
|
|
264
|
-
>
|
|
265
|
-
<div class="alert__countdown-elapsed"></div>
|
|
266
|
-
</div>
|
|
267
|
-
` : ""}
|
|
268
|
-
</div>
|
|
269
|
-
`;
|
|
270
|
-
}
|
|
271
|
-
};
|
|
272
|
-
b.styles = [p, y], b.dependencies = { "sl-icon-button": a }, d([n("[part~=\"base\"]")], b.prototype, "base", 2), d([n(".alert__countdown-elapsed")], b.prototype, "countdownElement", 2), d([e({
|
|
273
|
-
type: Boolean,
|
|
274
|
-
reflect: !0
|
|
275
|
-
})], b.prototype, "open", 2), d([e({
|
|
276
|
-
type: Boolean,
|
|
277
|
-
reflect: !0
|
|
278
|
-
})], b.prototype, "closable", 2), d([e({ reflect: !0 })], b.prototype, "variant", 2), d([e({ type: Number })], b.prototype, "duration", 2), d([e({
|
|
279
|
-
type: String,
|
|
280
|
-
reflect: !0
|
|
281
|
-
})], b.prototype, "countdown", 2), d([t()], b.prototype, "remainingTime", 2), d([u("open", { waitUntilFirstUpdate: !0 })], b.prototype, "handleOpenChange", 1), d([u("duration")], b.prototype, "handleDurationChange", 1);
|
|
282
|
-
var x = b;
|
|
283
|
-
//#endregion
|
|
284
|
-
//#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.R45OWEVP.js
|
|
285
|
-
c("alert.show", {
|
|
286
|
-
keyframes: [{
|
|
287
|
-
opacity: 0,
|
|
288
|
-
scale: .8
|
|
289
|
-
}, {
|
|
290
|
-
opacity: 1,
|
|
291
|
-
scale: 1
|
|
292
|
-
}],
|
|
293
|
-
options: {
|
|
294
|
-
duration: 250,
|
|
295
|
-
easing: "ease"
|
|
296
|
-
}
|
|
297
|
-
}), c("alert.hide", {
|
|
298
|
-
keyframes: [{
|
|
299
|
-
opacity: 1,
|
|
300
|
-
scale: 1
|
|
301
|
-
}, {
|
|
302
|
-
opacity: 0,
|
|
303
|
-
scale: .8
|
|
304
|
-
}],
|
|
305
|
-
options: {
|
|
306
|
-
duration: 250,
|
|
307
|
-
easing: "ease"
|
|
308
|
-
}
|
|
309
|
-
}), x.define("sl-alert");
|
|
310
|
-
//#endregion
|