@edugis-org/webmapx 0.1.0

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 (84) hide show
  1. package/README.md +149 -0
  2. package/dist-lib/WMTS-DCN4zX0-.js +1169 -0
  3. package/dist-lib/alert-GeHlqlN8.js +310 -0
  4. package/dist-lib/assets/epsg-lookup.worker-J7TVnHDq.js +1 -0
  5. package/dist-lib/assets/shapefile.worker-kQfZj6G2.js +4 -0
  6. package/dist-lib/attribution-format-B4f05_u0.js +62 -0
  7. package/dist-lib/button-DFdGkRPQ.js +741 -0
  8. package/dist-lib/cesium-adapter-BHXNytkU.js +1488 -0
  9. package/dist-lib/checkbox-QoR4S8tV.js +284 -0
  10. package/dist-lib/chunk-HEgqtunE.js +20 -0
  11. package/dist-lib/chunk.36O46B5H-B6ZL7Sm1.js +77 -0
  12. package/dist-lib/chunk.3RPBFEDE-BFO1fHVm.js +138 -0
  13. package/dist-lib/chunk.5JY5FUCG-DTXsslmx.js +1090 -0
  14. package/dist-lib/chunk.6CTB5ZDJ-DjZrBd6Y.js +99 -0
  15. package/dist-lib/chunk.AJ3ENQ5C-Ci7Gm2b6.js +175 -0
  16. package/dist-lib/chunk.LD4M4QGE-CiCfhE8r.js +8 -0
  17. package/dist-lib/chunk.NYIIDP5N-BikXIStD.js +99 -0
  18. package/dist-lib/chunk.RWUUFNUL-DFztA4uV.js +43 -0
  19. package/dist-lib/chunk.SI4ACBFK-CLb9VfMG.js +61 -0
  20. package/dist-lib/chunk.YHLNUJ7P-D-kanrCf.js +503 -0
  21. package/dist-lib/core-CMAlSR68.js +22 -0
  22. package/dist-lib/decorate-CWgUV1hU.js +1139 -0
  23. package/dist-lib/decorators-B35AgiCU.js +351 -0
  24. package/dist-lib/deferred-query-service-BJDcngw6.js +386 -0
  25. package/dist-lib/dist-Dm6b7XCs.js +12318 -0
  26. package/dist-lib/dist-Ha9LQCut.js +244 -0
  27. package/dist-lib/dist-c1PlDAd1.js +2359 -0
  28. package/dist-lib/dist-kKlmcBXq.js +50 -0
  29. package/dist-lib/divider-CPm675yY.js +41 -0
  30. package/dist-lib/dropped-config-C_GyVa8o.js +17 -0
  31. package/dist-lib/dropped-layer-builder-DAaYgUPk.js +396 -0
  32. package/dist-lib/epsg-definitions-BZLZWa8Q.js +668 -0
  33. package/dist-lib/esm-CTuscnN5.js +46 -0
  34. package/dist-lib/file-sniff-Dhxj3KTF.js +251 -0
  35. package/dist-lib/geo-calculations-DbFJAUoI.js +30 -0
  36. package/dist-lib/icon-CEOgWlro.js +9 -0
  37. package/dist-lib/icon-button-Da_nBTy3.js +408 -0
  38. package/dist-lib/input-CeGntPlT.js +590 -0
  39. package/dist-lib/layer-discovery-afWzu5hY.js +2825 -0
  40. package/dist-lib/leaflet-adapter-D9djjrKv.js +1227 -0
  41. package/dist-lib/lib-CdHVicAE.js +4074 -0
  42. package/dist-lib/map-layer-registry-2cmkiRDK.js +62 -0
  43. package/dist-lib/maplibre-adapter-TFc3e0G9.js +1190 -0
  44. package/dist-lib/maplibre-expression-evaluator-DCWUcpwf.js +7233 -0
  45. package/dist-lib/marker-utils-DztWXeop.js +12 -0
  46. package/dist-lib/ol-tilegrid-9VtyxaLG.js +64 -0
  47. package/dist-lib/openlayers-adapter-DVW1KCRv.js +13307 -0
  48. package/dist-lib/option-CBxl1mZP.js +1106 -0
  49. package/dist-lib/papaparse.min-B7v3c0D7.js +501 -0
  50. package/dist-lib/rbush-C8k41T4z.js +254 -0
  51. package/dist-lib/shapefile-SawVY6xg.js +207 -0
  52. package/dist-lib/spinner-DysxdNG9.js +6 -0
  53. package/dist-lib/src-CL94RDe3.js +111 -0
  54. package/dist-lib/throttle-BeneRNYK.js +16 -0
  55. package/dist-lib/toast-Cm28o9U6.js +15 -0
  56. package/dist-lib/togeojson.es-DAgiTBvg.js +579 -0
  57. package/dist-lib/tooltip-Cucn1SiD.js +197 -0
  58. package/dist-lib/webmapx-3d-tool-D4CTD2gB.js +176 -0
  59. package/dist-lib/webmapx-base-tool-Dm9NAWLD.js +75 -0
  60. package/dist-lib/webmapx-config-edit-tool-DCTyxqTk.js +389 -0
  61. package/dist-lib/webmapx-coordinates-tool-jeWohup9.js +648 -0
  62. package/dist-lib/webmapx-core-bundle-BDImi1RE.js +8203 -0
  63. package/dist-lib/webmapx-draw-tool-DooAV8cF.js +4336 -0
  64. package/dist-lib/webmapx-geolocation-tool-Rw3-Iad1.js +788 -0
  65. package/dist-lib/webmapx-import-layer-tool-DRYviHd5.js +250 -0
  66. package/dist-lib/webmapx-info-tool-BJA157cy.js +412 -0
  67. package/dist-lib/webmapx-language-osmvector-M5y_lwOg.js +489 -0
  68. package/dist-lib/webmapx-measure-tool-BXhMJFC6.js +590 -0
  69. package/dist-lib/webmapx-modal-tool-eF6Naluv.js +84 -0
  70. package/dist-lib/webmapx-plugin-tool-D2Hghf9n.js +45 -0
  71. package/dist-lib/webmapx-print-tool-ob1bOsR5.js +348 -0
  72. package/dist-lib/webmapx-search-tool-Cv8BrYvY.js +437 -0
  73. package/dist-lib/webmapx-settings-DDEJ8aoV.js +479 -0
  74. package/dist-lib/webmapx-truearea-tool-CMB4Orm-.js +615 -0
  75. package/dist-lib/webmapx-view-mode-tool-CUpLNjOj.js +106 -0
  76. package/dist-lib/webmapx.css +2 -0
  77. package/dist-lib/webmapx.js +1321 -0
  78. package/dist-lib/wms-feature-info-C0RVMEQC.js +145 -0
  79. package/dist-lib/wms-url-builder-DIJLQ1v2.js +54 -0
  80. package/dist-lib/zip.js-DVhmtjxZ.js +3615 -0
  81. package/package.json +107 -0
  82. package/public/data/country-epsg-codes.json +297 -0
  83. package/public/data/world-countries-simplified.topojson +1 -0
  84. package/src/locales/en/core.json +20 -0
@@ -0,0 +1,590 @@
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 };