@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.
Files changed (60) hide show
  1. package/dist-lib/{decorate-CWgUV1hU.js → decorate-DnZTfaod.js} +6 -6
  2. package/dist-lib/dist-BIbq3o-p.js +213 -0
  3. package/dist-lib/{dist-Dm6b7XCs.js → dist-CKAaoSoW.js} +2743 -2491
  4. package/dist-lib/{dist-kKlmcBXq.js → dist-CWCNMXMK.js} +1 -1
  5. package/dist-lib/{dist-Ha9LQCut.js → dist-D-5Gmgwo.js} +1 -1
  6. package/dist-lib/{layer-discovery-afWzu5hY.js → layer-discovery-DFP-WHAh.js} +1 -1
  7. package/dist-lib/{leaflet-adapter-D9djjrKv.js → leaflet-adapter-A0rte-c7.js} +1 -1
  8. package/dist-lib/{maplibre-adapter-TFc3e0G9.js → maplibre-adapter-Cy6yX6o7.js} +1 -1
  9. package/dist-lib/ol-tilegrid-Ct4my3IN.js +24 -0
  10. package/dist-lib/openlayers-adapter-B8WtV1tn.js +1462 -0
  11. package/dist-lib/{toast-Cm28o9U6.js → toast-BsoXOdeA.js} +1 -1
  12. package/dist-lib/{webmapx-3d-tool-D4CTD2gB.js → webmapx-3d-tool-CLppA7mK.js} +13 -13
  13. package/dist-lib/{webmapx-base-tool-Dm9NAWLD.js → webmapx-base-tool-DfRa7TlD.js} +1 -1
  14. package/dist-lib/{webmapx-config-edit-tool-BgcSkmmg.js → webmapx-config-edit-tool-BztWspia.js} +21 -21
  15. package/dist-lib/{webmapx-coordinates-tool-GMfztOzE.js → webmapx-coordinates-tool-EOqZodjr.js} +20 -20
  16. package/dist-lib/{webmapx-core-bundle-BDImi1RE.js → webmapx-core-bundle-CH-5vYXU.js} +607 -1519
  17. package/dist-lib/webmapx-draw-tool-DxQgUF1Q.js +2117 -0
  18. package/dist-lib/{webmapx-geolocation-tool-Rw3-Iad1.js → webmapx-geolocation-tool-DIMh2kIr.js} +26 -25
  19. package/dist-lib/{webmapx-import-layer-tool-DRYviHd5.js → webmapx-import-layer-tool-DMiC1TpU.js} +16 -16
  20. package/dist-lib/{webmapx-info-tool-BJA157cy.js → webmapx-info-tool-D-XbAU9J.js} +56 -56
  21. package/dist-lib/{webmapx-language-osmvector-M5y_lwOg.js → webmapx-language-osmvector-BAw9TR-M.js} +12 -11
  22. package/dist-lib/{webmapx-measure-tool-BXhMJFC6.js → webmapx-measure-tool-CXlg11s8.js} +34 -34
  23. package/dist-lib/{webmapx-modal-tool-eF6Naluv.js → webmapx-modal-tool-Cs7LRrgW.js} +3 -3
  24. package/dist-lib/{webmapx-plugin-tool-D2Hghf9n.js → webmapx-plugin-tool-qe2yTrWB.js} +7 -7
  25. package/dist-lib/{webmapx-print-tool-ob1bOsR5.js → webmapx-print-tool-DrK9sLC7.js} +27 -26
  26. package/dist-lib/{webmapx-search-tool-Cv8BrYvY.js → webmapx-search-tool-H7NisgWH.js} +11 -11
  27. package/dist-lib/webmapx-settings-EHSm-AGU.js +167 -0
  28. package/dist-lib/{webmapx-truearea-tool-CMB4Orm-.js → webmapx-truearea-tool-CSU9mE1D.js} +26 -26
  29. package/dist-lib/{webmapx-view-mode-tool-CUpLNjOj.js → webmapx-view-mode-tool-D1QyQfq8.js} +9 -9
  30. package/dist-lib/webmapx.css +1 -1
  31. package/dist-lib/webmapx.js +21 -21
  32. package/package.json +1 -1
  33. package/dist-lib/WMTS-DCN4zX0-.js +0 -1169
  34. package/dist-lib/alert-GeHlqlN8.js +0 -310
  35. package/dist-lib/button-DFdGkRPQ.js +0 -741
  36. package/dist-lib/checkbox-QoR4S8tV.js +0 -284
  37. package/dist-lib/chunk.36O46B5H-B6ZL7Sm1.js +0 -77
  38. package/dist-lib/chunk.3RPBFEDE-BFO1fHVm.js +0 -138
  39. package/dist-lib/chunk.5JY5FUCG-DTXsslmx.js +0 -1090
  40. package/dist-lib/chunk.6CTB5ZDJ-DjZrBd6Y.js +0 -99
  41. package/dist-lib/chunk.AJ3ENQ5C-Ci7Gm2b6.js +0 -175
  42. package/dist-lib/chunk.LD4M4QGE-CiCfhE8r.js +0 -8
  43. package/dist-lib/chunk.NYIIDP5N-BikXIStD.js +0 -99
  44. package/dist-lib/chunk.RWUUFNUL-DFztA4uV.js +0 -43
  45. package/dist-lib/chunk.SI4ACBFK-CLb9VfMG.js +0 -61
  46. package/dist-lib/chunk.YHLNUJ7P-D-kanrCf.js +0 -503
  47. package/dist-lib/decorators-B35AgiCU.js +0 -351
  48. package/dist-lib/dist-c1PlDAd1.js +0 -2359
  49. package/dist-lib/divider-CPm675yY.js +0 -41
  50. package/dist-lib/icon-CEOgWlro.js +0 -9
  51. package/dist-lib/icon-button-Da_nBTy3.js +0 -408
  52. package/dist-lib/input-CeGntPlT.js +0 -590
  53. package/dist-lib/ol-tilegrid-9VtyxaLG.js +0 -64
  54. package/dist-lib/openlayers-adapter-DVW1KCRv.js +0 -13307
  55. package/dist-lib/option-CBxl1mZP.js +0 -1106
  56. package/dist-lib/rbush-C8k41T4z.js +0 -254
  57. package/dist-lib/spinner-DysxdNG9.js +0 -6
  58. package/dist-lib/tooltip-Cucn1SiD.js +0 -197
  59. package/dist-lib/webmapx-draw-tool-DooAV8cF.js +0 -4336
  60. package/dist-lib/webmapx-settings-DDEJ8aoV.js +0 -479
@@ -1,590 +0,0 @@
1
- import { a as e, i as t, n } from "./decorators-B35AgiCU.js";
2
- import { a as r, d as i, f as a, i as o, l as s, n as c, r as l, t as u, u as d } from "./chunk.YHLNUJ7P-D-kanrCf.js";
3
- import { a as f, c as p, n as m, o as h, s as g, t as _ } from "./chunk.NYIIDP5N-BikXIStD.js";
4
- import { t as v } from "./chunk.6CTB5ZDJ-DjZrBd6Y.js";
5
- import { t as y } from "./chunk.3RPBFEDE-BFO1fHVm.js";
6
- import { t as b } from "./chunk.SI4ACBFK-CLb9VfMG.js";
7
- import { css as x, defaultConverter as S, html as C } from "lit";
8
- //#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.GI7VDIWX.js
9
- var w = (e = "value") => (t, n) => {
10
- let r = t.constructor, i = r.prototype.attributeChangedCallback;
11
- r.prototype.attributeChangedCallback = function(t, a, o) {
12
- let s = r.getPropertyOptions(e);
13
- if (t === (typeof s.attribute == "string" ? s.attribute : e)) {
14
- let t = s.converter || S, r = (typeof t == "function" ? t : t?.fromAttribute ?? S.fromAttribute)(o, s.type);
15
- this[e] !== r && (this[n] = r);
16
- }
17
- i.call(this, t, a, o);
18
- };
19
- }, T = h(class extends g {
20
- constructor(e) {
21
- if (super(e), e.type !== p.PROPERTY && e.type !== p.ATTRIBUTE && e.type !== p.BOOLEAN_ATTRIBUTE) throw Error("The `live` directive is not allowed on child or event bindings");
22
- if (!c(e)) throw Error("`live` bindings can only contain a single expression");
23
- }
24
- render(e) {
25
- return e;
26
- }
27
- update(e, [t]) {
28
- if (t === r || t === o) return t;
29
- let n = e.element, i = e.name;
30
- if (e.type === p.PROPERTY) {
31
- if (t === n[i]) return r;
32
- } else if (e.type === p.BOOLEAN_ATTRIBUTE) {
33
- if (!!t === n.hasAttribute(i)) return r;
34
- } else if (e.type === p.ATTRIBUTE && n.getAttribute(i) === t + "") return r;
35
- return l(e), t;
36
- }
37
- }), E = x`
38
- :host {
39
- display: block;
40
- }
41
-
42
- .input {
43
- flex: 1 1 auto;
44
- display: inline-flex;
45
- align-items: stretch;
46
- justify-content: start;
47
- position: relative;
48
- width: 100%;
49
- font-family: var(--sl-input-font-family);
50
- font-weight: var(--sl-input-font-weight);
51
- letter-spacing: var(--sl-input-letter-spacing);
52
- vertical-align: middle;
53
- overflow: hidden;
54
- cursor: text;
55
- transition:
56
- var(--sl-transition-fast) color,
57
- var(--sl-transition-fast) border,
58
- var(--sl-transition-fast) box-shadow,
59
- var(--sl-transition-fast) background-color;
60
- }
61
-
62
- /* Standard inputs */
63
- .input--standard {
64
- background-color: var(--sl-input-background-color);
65
- border: solid var(--sl-input-border-width) var(--sl-input-border-color);
66
- }
67
-
68
- .input--standard:hover:not(.input--disabled) {
69
- background-color: var(--sl-input-background-color-hover);
70
- border-color: var(--sl-input-border-color-hover);
71
- }
72
-
73
- .input--standard.input--focused:not(.input--disabled) {
74
- background-color: var(--sl-input-background-color-focus);
75
- border-color: var(--sl-input-border-color-focus);
76
- box-shadow: 0 0 0 var(--sl-focus-ring-width) var(--sl-input-focus-ring-color);
77
- }
78
-
79
- .input--standard.input--focused:not(.input--disabled) .input__control {
80
- color: var(--sl-input-color-focus);
81
- }
82
-
83
- .input--standard.input--disabled {
84
- background-color: var(--sl-input-background-color-disabled);
85
- border-color: var(--sl-input-border-color-disabled);
86
- opacity: 0.5;
87
- cursor: not-allowed;
88
- }
89
-
90
- .input--standard.input--disabled .input__control {
91
- color: var(--sl-input-color-disabled);
92
- }
93
-
94
- .input--standard.input--disabled .input__control::placeholder {
95
- color: var(--sl-input-placeholder-color-disabled);
96
- }
97
-
98
- /* Filled inputs */
99
- .input--filled {
100
- border: none;
101
- background-color: var(--sl-input-filled-background-color);
102
- color: var(--sl-input-color);
103
- }
104
-
105
- .input--filled:hover:not(.input--disabled) {
106
- background-color: var(--sl-input-filled-background-color-hover);
107
- }
108
-
109
- .input--filled.input--focused:not(.input--disabled) {
110
- background-color: var(--sl-input-filled-background-color-focus);
111
- outline: var(--sl-focus-ring);
112
- outline-offset: var(--sl-focus-ring-offset);
113
- }
114
-
115
- .input--filled.input--disabled {
116
- background-color: var(--sl-input-filled-background-color-disabled);
117
- opacity: 0.5;
118
- cursor: not-allowed;
119
- }
120
-
121
- .input__control {
122
- flex: 1 1 auto;
123
- font-family: inherit;
124
- font-size: inherit;
125
- font-weight: inherit;
126
- min-width: 0;
127
- height: 100%;
128
- color: var(--sl-input-color);
129
- border: none;
130
- background: inherit;
131
- box-shadow: none;
132
- padding: 0;
133
- margin: 0;
134
- cursor: inherit;
135
- -webkit-appearance: none;
136
- }
137
-
138
- .input__control::-webkit-search-decoration,
139
- .input__control::-webkit-search-cancel-button,
140
- .input__control::-webkit-search-results-button,
141
- .input__control::-webkit-search-results-decoration {
142
- -webkit-appearance: none;
143
- }
144
-
145
- .input__control:-webkit-autofill,
146
- .input__control:-webkit-autofill:hover,
147
- .input__control:-webkit-autofill:focus,
148
- .input__control:-webkit-autofill:active {
149
- box-shadow: 0 0 0 var(--sl-input-height-large) var(--sl-input-background-color-hover) inset !important;
150
- -webkit-text-fill-color: var(--sl-color-primary-500);
151
- caret-color: var(--sl-input-color);
152
- }
153
-
154
- .input--filled .input__control:-webkit-autofill,
155
- .input--filled .input__control:-webkit-autofill:hover,
156
- .input--filled .input__control:-webkit-autofill:focus,
157
- .input--filled .input__control:-webkit-autofill:active {
158
- box-shadow: 0 0 0 var(--sl-input-height-large) var(--sl-input-filled-background-color) inset !important;
159
- }
160
-
161
- .input__control::placeholder {
162
- color: var(--sl-input-placeholder-color);
163
- user-select: none;
164
- -webkit-user-select: none;
165
- }
166
-
167
- .input:hover:not(.input--disabled) .input__control {
168
- color: var(--sl-input-color-hover);
169
- }
170
-
171
- .input__control:focus {
172
- outline: none;
173
- }
174
-
175
- .input__prefix,
176
- .input__suffix {
177
- display: inline-flex;
178
- flex: 0 0 auto;
179
- align-items: center;
180
- cursor: default;
181
- }
182
-
183
- .input__prefix ::slotted(sl-icon),
184
- .input__suffix ::slotted(sl-icon) {
185
- color: var(--sl-input-icon-color);
186
- }
187
-
188
- /*
189
- * Size modifiers
190
- */
191
-
192
- .input--small {
193
- border-radius: var(--sl-input-border-radius-small);
194
- font-size: var(--sl-input-font-size-small);
195
- height: var(--sl-input-height-small);
196
- }
197
-
198
- .input--small .input__control {
199
- height: calc(var(--sl-input-height-small) - var(--sl-input-border-width) * 2);
200
- padding: 0 var(--sl-input-spacing-small);
201
- }
202
-
203
- .input--small .input__clear,
204
- .input--small .input__password-toggle {
205
- width: calc(1em + var(--sl-input-spacing-small) * 2);
206
- }
207
-
208
- .input--small .input__prefix ::slotted(*) {
209
- margin-inline-start: var(--sl-input-spacing-small);
210
- }
211
-
212
- .input--small .input__suffix ::slotted(*) {
213
- margin-inline-end: var(--sl-input-spacing-small);
214
- }
215
-
216
- .input--medium {
217
- border-radius: var(--sl-input-border-radius-medium);
218
- font-size: var(--sl-input-font-size-medium);
219
- height: var(--sl-input-height-medium);
220
- }
221
-
222
- .input--medium .input__control {
223
- height: calc(var(--sl-input-height-medium) - var(--sl-input-border-width) * 2);
224
- padding: 0 var(--sl-input-spacing-medium);
225
- }
226
-
227
- .input--medium .input__clear,
228
- .input--medium .input__password-toggle {
229
- width: calc(1em + var(--sl-input-spacing-medium) * 2);
230
- }
231
-
232
- .input--medium .input__prefix ::slotted(*) {
233
- margin-inline-start: var(--sl-input-spacing-medium);
234
- }
235
-
236
- .input--medium .input__suffix ::slotted(*) {
237
- margin-inline-end: var(--sl-input-spacing-medium);
238
- }
239
-
240
- .input--large {
241
- border-radius: var(--sl-input-border-radius-large);
242
- font-size: var(--sl-input-font-size-large);
243
- height: var(--sl-input-height-large);
244
- }
245
-
246
- .input--large .input__control {
247
- height: calc(var(--sl-input-height-large) - var(--sl-input-border-width) * 2);
248
- padding: 0 var(--sl-input-spacing-large);
249
- }
250
-
251
- .input--large .input__clear,
252
- .input--large .input__password-toggle {
253
- width: calc(1em + var(--sl-input-spacing-large) * 2);
254
- }
255
-
256
- .input--large .input__prefix ::slotted(*) {
257
- margin-inline-start: var(--sl-input-spacing-large);
258
- }
259
-
260
- .input--large .input__suffix ::slotted(*) {
261
- margin-inline-end: var(--sl-input-spacing-large);
262
- }
263
-
264
- /*
265
- * Pill modifier
266
- */
267
-
268
- .input--pill.input--small {
269
- border-radius: var(--sl-input-height-small);
270
- }
271
-
272
- .input--pill.input--medium {
273
- border-radius: var(--sl-input-height-medium);
274
- }
275
-
276
- .input--pill.input--large {
277
- border-radius: var(--sl-input-height-large);
278
- }
279
-
280
- /*
281
- * Clearable + Password Toggle
282
- */
283
-
284
- .input__clear,
285
- .input__password-toggle {
286
- display: inline-flex;
287
- align-items: center;
288
- justify-content: center;
289
- font-size: inherit;
290
- color: var(--sl-input-icon-color);
291
- border: none;
292
- background: none;
293
- padding: 0;
294
- transition: var(--sl-transition-fast) color;
295
- cursor: pointer;
296
- }
297
-
298
- .input__clear:hover,
299
- .input__password-toggle:hover {
300
- color: var(--sl-input-icon-color-hover);
301
- }
302
-
303
- .input__clear:focus,
304
- .input__password-toggle:focus {
305
- outline: none;
306
- }
307
-
308
- /* Don't show the browser's password toggle in Edge */
309
- ::-ms-reveal {
310
- display: none;
311
- }
312
-
313
- /* Hide the built-in number spinner */
314
- .input--no-spin-buttons input[type='number']::-webkit-outer-spin-button,
315
- .input--no-spin-buttons input[type='number']::-webkit-inner-spin-button {
316
- -webkit-appearance: none;
317
- display: none;
318
- }
319
-
320
- .input--no-spin-buttons input[type='number'] {
321
- -moz-appearance: textfield;
322
- }
323
- `, D = class extends s {
324
- constructor() {
325
- super(...arguments), this.formControlController = new y(this, { assumeInteractionOn: ["sl-blur", "sl-input"] }), this.hasSlotController = new _(this, "help-text", "label"), this.localize = new v(this), this.hasFocus = !1, this.title = "", this.__numberInput = Object.assign(document.createElement("input"), { type: "number" }), this.__dateInput = Object.assign(document.createElement("input"), { type: "date" }), this.type = "text", this.name = "", this.value = "", this.defaultValue = "", this.size = "medium", this.filled = !1, this.pill = !1, this.label = "", this.helpText = "", this.clearable = !1, this.disabled = !1, this.placeholder = "", this.readonly = !1, this.passwordToggle = !1, this.passwordVisible = !1, this.noSpinButtons = !1, this.form = "", this.required = !1, this.spellcheck = !0;
326
- }
327
- get valueAsDate() {
328
- return this.__dateInput.type = this.type, this.__dateInput.value = this.value, this.input?.valueAsDate || this.__dateInput.valueAsDate;
329
- }
330
- set valueAsDate(e) {
331
- this.__dateInput.type = this.type, this.__dateInput.valueAsDate = e, this.value = this.__dateInput.value;
332
- }
333
- get valueAsNumber() {
334
- return this.__numberInput.value = this.value, this.input?.valueAsNumber || this.__numberInput.valueAsNumber;
335
- }
336
- set valueAsNumber(e) {
337
- this.__numberInput.valueAsNumber = e, this.value = this.__numberInput.value;
338
- }
339
- get validity() {
340
- return this.input.validity;
341
- }
342
- get validationMessage() {
343
- return this.input.validationMessage;
344
- }
345
- firstUpdated() {
346
- this.formControlController.updateValidity();
347
- }
348
- handleBlur() {
349
- this.hasFocus = !1, this.emit("sl-blur");
350
- }
351
- handleChange() {
352
- this.value = this.input.value, this.emit("sl-change");
353
- }
354
- handleClearClick(e) {
355
- e.preventDefault(), this.value !== "" && (this.value = "", this.emit("sl-clear"), this.emit("sl-input"), this.emit("sl-change")), this.input.focus();
356
- }
357
- handleFocus() {
358
- this.hasFocus = !0, this.emit("sl-focus");
359
- }
360
- handleInput() {
361
- this.value = this.input.value, this.formControlController.updateValidity(), this.emit("sl-input");
362
- }
363
- handleInvalid(e) {
364
- this.formControlController.setValidity(!1), this.formControlController.emitInvalidEvent(e);
365
- }
366
- handleKeyDown(e) {
367
- let t = e.metaKey || e.ctrlKey || e.shiftKey || e.altKey;
368
- e.key === "Enter" && !t && setTimeout(() => {
369
- !e.defaultPrevented && !e.isComposing && this.formControlController.submit();
370
- });
371
- }
372
- handlePasswordToggle() {
373
- this.passwordVisible = !this.passwordVisible;
374
- }
375
- handleDisabledChange() {
376
- this.formControlController.setValidity(this.disabled);
377
- }
378
- handleStepChange() {
379
- this.input.step = String(this.step), this.formControlController.updateValidity();
380
- }
381
- async handleValueChange() {
382
- await this.updateComplete, this.formControlController.updateValidity();
383
- }
384
- focus(e) {
385
- this.input.focus(e);
386
- }
387
- blur() {
388
- this.input.blur();
389
- }
390
- select() {
391
- this.input.select();
392
- }
393
- setSelectionRange(e, t, n = "none") {
394
- this.input.setSelectionRange(e, t, n);
395
- }
396
- setRangeText(e, t, n, r = "preserve") {
397
- let i = t ?? this.input.selectionStart, a = n ?? this.input.selectionEnd;
398
- this.input.setRangeText(e, i, a, r), this.value !== this.input.value && (this.value = this.input.value);
399
- }
400
- showPicker() {
401
- "showPicker" in HTMLInputElement.prototype && this.input.showPicker();
402
- }
403
- stepUp() {
404
- this.input.stepUp(), this.value !== this.input.value && (this.value = this.input.value);
405
- }
406
- stepDown() {
407
- this.input.stepDown(), this.value !== this.input.value && (this.value = this.input.value);
408
- }
409
- checkValidity() {
410
- return this.input.checkValidity();
411
- }
412
- getForm() {
413
- return this.formControlController.getForm();
414
- }
415
- reportValidity() {
416
- return this.input.reportValidity();
417
- }
418
- setCustomValidity(e) {
419
- this.input.setCustomValidity(e), this.formControlController.updateValidity();
420
- }
421
- render() {
422
- let e = this.hasSlotController.test("label"), t = this.hasSlotController.test("help-text"), n = this.label ? !0 : !!e, r = this.helpText ? !0 : !!t, i = this.clearable && !this.disabled && !this.readonly && (typeof this.value == "number" || this.value.length > 0);
423
- return C`
424
- <div
425
- part="form-control"
426
- class=${f({
427
- "form-control": !0,
428
- "form-control--small": this.size === "small",
429
- "form-control--medium": this.size === "medium",
430
- "form-control--large": this.size === "large",
431
- "form-control--has-label": n,
432
- "form-control--has-help-text": r
433
- })}
434
- >
435
- <label
436
- part="form-control-label"
437
- class="form-control__label"
438
- for="input"
439
- aria-hidden=${n ? "false" : "true"}
440
- >
441
- <slot name="label">${this.label}</slot>
442
- </label>
443
-
444
- <div part="form-control-input" class="form-control-input">
445
- <div
446
- part="base"
447
- class=${f({
448
- input: !0,
449
- "input--small": this.size === "small",
450
- "input--medium": this.size === "medium",
451
- "input--large": this.size === "large",
452
- "input--pill": this.pill,
453
- "input--standard": !this.filled,
454
- "input--filled": this.filled,
455
- "input--disabled": this.disabled,
456
- "input--focused": this.hasFocus,
457
- "input--empty": !this.value,
458
- "input--no-spin-buttons": this.noSpinButtons
459
- })}
460
- >
461
- <span part="prefix" class="input__prefix">
462
- <slot name="prefix"></slot>
463
- </span>
464
-
465
- <input
466
- part="input"
467
- id="input"
468
- class="input__control"
469
- type=${this.type === "password" && this.passwordVisible ? "text" : this.type}
470
- title=${this.title}
471
- name=${m(this.name)}
472
- ?disabled=${this.disabled}
473
- ?readonly=${this.readonly}
474
- ?required=${this.required}
475
- placeholder=${m(this.placeholder)}
476
- minlength=${m(this.minlength)}
477
- maxlength=${m(this.maxlength)}
478
- min=${m(this.min)}
479
- max=${m(this.max)}
480
- step=${m(this.step)}
481
- .value=${T(this.value)}
482
- autocapitalize=${m(this.autocapitalize)}
483
- autocomplete=${m(this.autocomplete)}
484
- autocorrect=${m(this.autocorrect)}
485
- ?autofocus=${this.autofocus}
486
- spellcheck=${this.spellcheck}
487
- pattern=${m(this.pattern)}
488
- enterkeyhint=${m(this.enterkeyhint)}
489
- inputmode=${m(this.inputmode)}
490
- aria-describedby="help-text"
491
- @change=${this.handleChange}
492
- @input=${this.handleInput}
493
- @invalid=${this.handleInvalid}
494
- @keydown=${this.handleKeyDown}
495
- @focus=${this.handleFocus}
496
- @blur=${this.handleBlur}
497
- />
498
-
499
- ${i ? C`
500
- <button
501
- part="clear-button"
502
- class="input__clear"
503
- type="button"
504
- aria-label=${this.localize.term("clearEntry")}
505
- @click=${this.handleClearClick}
506
- tabindex="-1"
507
- >
508
- <slot name="clear-icon">
509
- <sl-icon name="x-circle-fill" library="system"></sl-icon>
510
- </slot>
511
- </button>
512
- ` : ""}
513
- ${this.passwordToggle && !this.disabled ? C`
514
- <button
515
- part="password-toggle-button"
516
- class="input__password-toggle"
517
- type="button"
518
- aria-label=${this.localize.term(this.passwordVisible ? "hidePassword" : "showPassword")}
519
- @click=${this.handlePasswordToggle}
520
- tabindex="-1"
521
- >
522
- ${this.passwordVisible ? C`
523
- <slot name="show-password-icon">
524
- <sl-icon name="eye-slash" library="system"></sl-icon>
525
- </slot>
526
- ` : C`
527
- <slot name="hide-password-icon">
528
- <sl-icon name="eye" library="system"></sl-icon>
529
- </slot>
530
- `}
531
- </button>
532
- ` : ""}
533
-
534
- <span part="suffix" class="input__suffix">
535
- <slot name="suffix"></slot>
536
- </span>
537
- </div>
538
- </div>
539
-
540
- <div
541
- part="form-control-help-text"
542
- id="help-text"
543
- class="form-control__help-text"
544
- aria-hidden=${r ? "false" : "true"}
545
- >
546
- <slot name="help-text">${this.helpText}</slot>
547
- </div>
548
- </div>
549
- `;
550
- }
551
- };
552
- //#endregion
553
- //#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.XA43ZQPC.js
554
- D.styles = [
555
- d,
556
- b,
557
- E
558
- ], D.dependencies = { "sl-icon": u }, a([n(".input__control")], D.prototype, "input", 2), a([t()], D.prototype, "hasFocus", 2), a([e()], D.prototype, "title", 2), a([e({ reflect: !0 })], D.prototype, "type", 2), a([e()], D.prototype, "name", 2), a([e()], D.prototype, "value", 2), a([w()], D.prototype, "defaultValue", 2), a([e({ reflect: !0 })], D.prototype, "size", 2), a([e({
559
- type: Boolean,
560
- reflect: !0
561
- })], D.prototype, "filled", 2), a([e({
562
- type: Boolean,
563
- reflect: !0
564
- })], D.prototype, "pill", 2), a([e()], D.prototype, "label", 2), a([e({ attribute: "help-text" })], D.prototype, "helpText", 2), a([e({ type: Boolean })], D.prototype, "clearable", 2), a([e({
565
- type: Boolean,
566
- reflect: !0
567
- })], D.prototype, "disabled", 2), a([e()], D.prototype, "placeholder", 2), a([e({
568
- type: Boolean,
569
- reflect: !0
570
- })], D.prototype, "readonly", 2), a([e({
571
- attribute: "password-toggle",
572
- type: Boolean
573
- })], D.prototype, "passwordToggle", 2), a([e({
574
- attribute: "password-visible",
575
- type: Boolean
576
- })], D.prototype, "passwordVisible", 2), a([e({
577
- attribute: "no-spin-buttons",
578
- type: Boolean
579
- })], D.prototype, "noSpinButtons", 2), a([e({ reflect: !0 })], D.prototype, "form", 2), a([e({
580
- type: Boolean,
581
- reflect: !0
582
- })], D.prototype, "required", 2), a([e()], D.prototype, "pattern", 2), a([e({ type: Number })], D.prototype, "minlength", 2), a([e({ type: Number })], D.prototype, "maxlength", 2), a([e()], D.prototype, "min", 2), a([e()], D.prototype, "max", 2), a([e()], D.prototype, "step", 2), a([e()], D.prototype, "autocapitalize", 2), a([e()], D.prototype, "autocorrect", 2), a([e()], D.prototype, "autocomplete", 2), a([e({ type: Boolean })], D.prototype, "autofocus", 2), a([e()], D.prototype, "enterkeyhint", 2), a([e({
583
- type: Boolean,
584
- converter: {
585
- fromAttribute: (e) => !(!e || e === "false"),
586
- toAttribute: (e) => e ? "true" : "false"
587
- }
588
- })], D.prototype, "spellcheck", 2), a([e()], D.prototype, "inputmode", 2), a([i("disabled", { waitUntilFirstUpdate: !0 })], D.prototype, "handleDisabledChange", 1), a([i("step", { waitUntilFirstUpdate: !0 })], D.prototype, "handleStepChange", 1), a([i("value", { waitUntilFirstUpdate: !0 })], D.prototype, "handleValueChange", 1), D.define("sl-input");
589
- //#endregion
590
- export { T as n, w as r, D as t };
@@ -1,64 +0,0 @@
1
- import { n as e } from "./lib-CdHVicAE.js";
2
- import { A as t, B as n, N as r, Z as i, et as a, j as o, k as s, t as c, tt as l } from "./WMTS-DCN4zX0-.js";
3
- //#region node_modules/ol/proj/proj4.js
4
- var u = null;
5
- function d(e) {
6
- u = e;
7
- let n = Object.keys(e.defs), c = n.length, d, f;
8
- for (d = 0; d < c; ++d) {
9
- let t = n[d];
10
- if (!a(t)) {
11
- let n = e.defs(t), r = n.units;
12
- !r && n.projName === "longlat" && (r = "degrees"), o(new l({
13
- code: t,
14
- axisOrientation: n.axis,
15
- metersPerUnit: n.to_meter,
16
- units: r
17
- }));
18
- }
19
- }
20
- for (d = 0; d < c; ++d) {
21
- let o = n[d], l = a(o);
22
- for (f = 0; f < c; ++f) {
23
- let c = n[f], u = a(c);
24
- if (!i(o, c)) if (e.defs[o] === e.defs[c]) t([l, u]);
25
- else {
26
- let t = e(o, c);
27
- s(l, u, r(l, u, t.forward), r(u, l, t.inverse));
28
- }
29
- }
30
- }
31
- }
32
- var f = async function(e) {
33
- let t = await fetch(`https://epsg.io/${e}.proj4`);
34
- if (!t.ok) throw Error(`Unexpected response from epsg.io: ${t.status}`);
35
- return t.text();
36
- };
37
- async function p(e) {
38
- typeof e == "string" && (e = parseInt(e.split(":").pop(), 10));
39
- let t = u;
40
- if (!t) throw Error("Proj4 must be registered first with register(proj4)");
41
- let n = "EPSG:" + e;
42
- return t.defs(n) ? a(n) : (t.defs(n, await f(e)), d(t), a(n));
43
- }
44
- //#endregion
45
- //#region node_modules/@camptocamp/ogc-client/dist/wmts/ol-tilegrid.js
46
- d(e);
47
- async function m(e, t) {
48
- let r = n(e.crs);
49
- if (r ||= await p(e.crs), !r) throw Error(`[ogc-client] could not create OpenLayers tile grid, the following projection is unknown: ${e.crs}`);
50
- return c({
51
- SupportedCRS: r,
52
- TileMatrix: e.tileMatrices.map((e) => ({
53
- Identifier: e.identifier,
54
- ScaleDenominator: e.scaleDenominator,
55
- TopLeftCorner: e.topLeft,
56
- TileWidth: e.tileWidth,
57
- TileHeight: e.tileHeight,
58
- MatrixWidth: e.matrixWidth,
59
- MatrixHeight: e.matrixHeight
60
- }))
61
- }, null, t.map((e) => ({ TileMatrix: e.tileMatrix })));
62
- }
63
- //#endregion
64
- export { m as buildOpenLayersTileGrid };