@edugis-org/webmapx 0.1.6 → 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-B3cuq_hG.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 +22 -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,741 +0,0 @@
|
|
|
1
|
-
import { a as e, i as t, n } from "./decorators-B35AgiCU.js";
|
|
2
|
-
import { d as r, f as i, l as a, t as o, u as s } from "./chunk.YHLNUJ7P-D-kanrCf.js";
|
|
3
|
-
import { a as c, i as l, n as u, r as d, t as f } from "./chunk.NYIIDP5N-BikXIStD.js";
|
|
4
|
-
import { t as p } from "./chunk.6CTB5ZDJ-DjZrBd6Y.js";
|
|
5
|
-
import { t as m } from "./chunk.36O46B5H-B6ZL7Sm1.js";
|
|
6
|
-
import { r as h, t as g } from "./chunk.3RPBFEDE-BFO1fHVm.js";
|
|
7
|
-
import { css as _ } from "lit";
|
|
8
|
-
//#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.MAQXLKQ7.js
|
|
9
|
-
var v = _`
|
|
10
|
-
:host {
|
|
11
|
-
display: inline-block;
|
|
12
|
-
position: relative;
|
|
13
|
-
width: auto;
|
|
14
|
-
cursor: pointer;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.button {
|
|
18
|
-
display: inline-flex;
|
|
19
|
-
align-items: stretch;
|
|
20
|
-
justify-content: center;
|
|
21
|
-
width: 100%;
|
|
22
|
-
border-style: solid;
|
|
23
|
-
border-width: var(--sl-input-border-width);
|
|
24
|
-
font-family: var(--sl-input-font-family);
|
|
25
|
-
font-weight: var(--sl-font-weight-semibold);
|
|
26
|
-
text-decoration: none;
|
|
27
|
-
user-select: none;
|
|
28
|
-
-webkit-user-select: none;
|
|
29
|
-
white-space: nowrap;
|
|
30
|
-
vertical-align: middle;
|
|
31
|
-
padding: 0;
|
|
32
|
-
transition:
|
|
33
|
-
var(--sl-transition-x-fast) background-color,
|
|
34
|
-
var(--sl-transition-x-fast) color,
|
|
35
|
-
var(--sl-transition-x-fast) border,
|
|
36
|
-
var(--sl-transition-x-fast) box-shadow;
|
|
37
|
-
cursor: inherit;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.button::-moz-focus-inner {
|
|
41
|
-
border: 0;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.button:focus {
|
|
45
|
-
outline: none;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.button:focus-visible {
|
|
49
|
-
outline: var(--sl-focus-ring);
|
|
50
|
-
outline-offset: var(--sl-focus-ring-offset);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.button--disabled {
|
|
54
|
-
opacity: 0.5;
|
|
55
|
-
cursor: not-allowed;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/* When disabled, prevent mouse events from bubbling up from children */
|
|
59
|
-
.button--disabled * {
|
|
60
|
-
pointer-events: none;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.button__prefix,
|
|
64
|
-
.button__suffix {
|
|
65
|
-
flex: 0 0 auto;
|
|
66
|
-
display: flex;
|
|
67
|
-
align-items: center;
|
|
68
|
-
pointer-events: none;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.button__label {
|
|
72
|
-
display: inline-block;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.button__label::slotted(sl-icon) {
|
|
76
|
-
vertical-align: -2px;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
/*
|
|
80
|
-
* Standard buttons
|
|
81
|
-
*/
|
|
82
|
-
|
|
83
|
-
/* Default */
|
|
84
|
-
.button--standard.button--default {
|
|
85
|
-
background-color: var(--sl-color-neutral-0);
|
|
86
|
-
border-color: var(--sl-input-border-color);
|
|
87
|
-
color: var(--sl-color-neutral-700);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.button--standard.button--default:hover:not(.button--disabled) {
|
|
91
|
-
background-color: var(--sl-color-primary-50);
|
|
92
|
-
border-color: var(--sl-color-primary-300);
|
|
93
|
-
color: var(--sl-color-primary-700);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.button--standard.button--default:active:not(.button--disabled) {
|
|
97
|
-
background-color: var(--sl-color-primary-100);
|
|
98
|
-
border-color: var(--sl-color-primary-400);
|
|
99
|
-
color: var(--sl-color-primary-700);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
/* Primary */
|
|
103
|
-
.button--standard.button--primary {
|
|
104
|
-
background-color: var(--sl-color-primary-600);
|
|
105
|
-
border-color: var(--sl-color-primary-600);
|
|
106
|
-
color: var(--sl-color-neutral-0);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.button--standard.button--primary:hover:not(.button--disabled) {
|
|
110
|
-
background-color: var(--sl-color-primary-500);
|
|
111
|
-
border-color: var(--sl-color-primary-500);
|
|
112
|
-
color: var(--sl-color-neutral-0);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.button--standard.button--primary:active:not(.button--disabled) {
|
|
116
|
-
background-color: var(--sl-color-primary-600);
|
|
117
|
-
border-color: var(--sl-color-primary-600);
|
|
118
|
-
color: var(--sl-color-neutral-0);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
/* Success */
|
|
122
|
-
.button--standard.button--success {
|
|
123
|
-
background-color: var(--sl-color-success-600);
|
|
124
|
-
border-color: var(--sl-color-success-600);
|
|
125
|
-
color: var(--sl-color-neutral-0);
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.button--standard.button--success:hover:not(.button--disabled) {
|
|
129
|
-
background-color: var(--sl-color-success-500);
|
|
130
|
-
border-color: var(--sl-color-success-500);
|
|
131
|
-
color: var(--sl-color-neutral-0);
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
.button--standard.button--success:active:not(.button--disabled) {
|
|
135
|
-
background-color: var(--sl-color-success-600);
|
|
136
|
-
border-color: var(--sl-color-success-600);
|
|
137
|
-
color: var(--sl-color-neutral-0);
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
/* Neutral */
|
|
141
|
-
.button--standard.button--neutral {
|
|
142
|
-
background-color: var(--sl-color-neutral-600);
|
|
143
|
-
border-color: var(--sl-color-neutral-600);
|
|
144
|
-
color: var(--sl-color-neutral-0);
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
.button--standard.button--neutral:hover:not(.button--disabled) {
|
|
148
|
-
background-color: var(--sl-color-neutral-500);
|
|
149
|
-
border-color: var(--sl-color-neutral-500);
|
|
150
|
-
color: var(--sl-color-neutral-0);
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
.button--standard.button--neutral:active:not(.button--disabled) {
|
|
154
|
-
background-color: var(--sl-color-neutral-600);
|
|
155
|
-
border-color: var(--sl-color-neutral-600);
|
|
156
|
-
color: var(--sl-color-neutral-0);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
/* Warning */
|
|
160
|
-
.button--standard.button--warning {
|
|
161
|
-
background-color: var(--sl-color-warning-600);
|
|
162
|
-
border-color: var(--sl-color-warning-600);
|
|
163
|
-
color: var(--sl-color-neutral-0);
|
|
164
|
-
}
|
|
165
|
-
.button--standard.button--warning:hover:not(.button--disabled) {
|
|
166
|
-
background-color: var(--sl-color-warning-500);
|
|
167
|
-
border-color: var(--sl-color-warning-500);
|
|
168
|
-
color: var(--sl-color-neutral-0);
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
.button--standard.button--warning:active:not(.button--disabled) {
|
|
172
|
-
background-color: var(--sl-color-warning-600);
|
|
173
|
-
border-color: var(--sl-color-warning-600);
|
|
174
|
-
color: var(--sl-color-neutral-0);
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
/* Danger */
|
|
178
|
-
.button--standard.button--danger {
|
|
179
|
-
background-color: var(--sl-color-danger-600);
|
|
180
|
-
border-color: var(--sl-color-danger-600);
|
|
181
|
-
color: var(--sl-color-neutral-0);
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
.button--standard.button--danger:hover:not(.button--disabled) {
|
|
185
|
-
background-color: var(--sl-color-danger-500);
|
|
186
|
-
border-color: var(--sl-color-danger-500);
|
|
187
|
-
color: var(--sl-color-neutral-0);
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
.button--standard.button--danger:active:not(.button--disabled) {
|
|
191
|
-
background-color: var(--sl-color-danger-600);
|
|
192
|
-
border-color: var(--sl-color-danger-600);
|
|
193
|
-
color: var(--sl-color-neutral-0);
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
/*
|
|
197
|
-
* Outline buttons
|
|
198
|
-
*/
|
|
199
|
-
|
|
200
|
-
.button--outline {
|
|
201
|
-
background: none;
|
|
202
|
-
border: solid 1px;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
/* Default */
|
|
206
|
-
.button--outline.button--default {
|
|
207
|
-
border-color: var(--sl-input-border-color);
|
|
208
|
-
color: var(--sl-color-neutral-700);
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
.button--outline.button--default:hover:not(.button--disabled),
|
|
212
|
-
.button--outline.button--default.button--checked:not(.button--disabled) {
|
|
213
|
-
border-color: var(--sl-color-primary-600);
|
|
214
|
-
background-color: var(--sl-color-primary-600);
|
|
215
|
-
color: var(--sl-color-neutral-0);
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
.button--outline.button--default:active:not(.button--disabled) {
|
|
219
|
-
border-color: var(--sl-color-primary-700);
|
|
220
|
-
background-color: var(--sl-color-primary-700);
|
|
221
|
-
color: var(--sl-color-neutral-0);
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
/* Primary */
|
|
225
|
-
.button--outline.button--primary {
|
|
226
|
-
border-color: var(--sl-color-primary-600);
|
|
227
|
-
color: var(--sl-color-primary-600);
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
.button--outline.button--primary:hover:not(.button--disabled),
|
|
231
|
-
.button--outline.button--primary.button--checked:not(.button--disabled) {
|
|
232
|
-
background-color: var(--sl-color-primary-600);
|
|
233
|
-
color: var(--sl-color-neutral-0);
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
.button--outline.button--primary:active:not(.button--disabled) {
|
|
237
|
-
border-color: var(--sl-color-primary-700);
|
|
238
|
-
background-color: var(--sl-color-primary-700);
|
|
239
|
-
color: var(--sl-color-neutral-0);
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
/* Success */
|
|
243
|
-
.button--outline.button--success {
|
|
244
|
-
border-color: var(--sl-color-success-600);
|
|
245
|
-
color: var(--sl-color-success-600);
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
.button--outline.button--success:hover:not(.button--disabled),
|
|
249
|
-
.button--outline.button--success.button--checked:not(.button--disabled) {
|
|
250
|
-
background-color: var(--sl-color-success-600);
|
|
251
|
-
color: var(--sl-color-neutral-0);
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
.button--outline.button--success:active:not(.button--disabled) {
|
|
255
|
-
border-color: var(--sl-color-success-700);
|
|
256
|
-
background-color: var(--sl-color-success-700);
|
|
257
|
-
color: var(--sl-color-neutral-0);
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
/* Neutral */
|
|
261
|
-
.button--outline.button--neutral {
|
|
262
|
-
border-color: var(--sl-color-neutral-600);
|
|
263
|
-
color: var(--sl-color-neutral-600);
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
.button--outline.button--neutral:hover:not(.button--disabled),
|
|
267
|
-
.button--outline.button--neutral.button--checked:not(.button--disabled) {
|
|
268
|
-
background-color: var(--sl-color-neutral-600);
|
|
269
|
-
color: var(--sl-color-neutral-0);
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
.button--outline.button--neutral:active:not(.button--disabled) {
|
|
273
|
-
border-color: var(--sl-color-neutral-700);
|
|
274
|
-
background-color: var(--sl-color-neutral-700);
|
|
275
|
-
color: var(--sl-color-neutral-0);
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
/* Warning */
|
|
279
|
-
.button--outline.button--warning {
|
|
280
|
-
border-color: var(--sl-color-warning-600);
|
|
281
|
-
color: var(--sl-color-warning-600);
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
.button--outline.button--warning:hover:not(.button--disabled),
|
|
285
|
-
.button--outline.button--warning.button--checked:not(.button--disabled) {
|
|
286
|
-
background-color: var(--sl-color-warning-600);
|
|
287
|
-
color: var(--sl-color-neutral-0);
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
.button--outline.button--warning:active:not(.button--disabled) {
|
|
291
|
-
border-color: var(--sl-color-warning-700);
|
|
292
|
-
background-color: var(--sl-color-warning-700);
|
|
293
|
-
color: var(--sl-color-neutral-0);
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
/* Danger */
|
|
297
|
-
.button--outline.button--danger {
|
|
298
|
-
border-color: var(--sl-color-danger-600);
|
|
299
|
-
color: var(--sl-color-danger-600);
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
.button--outline.button--danger:hover:not(.button--disabled),
|
|
303
|
-
.button--outline.button--danger.button--checked:not(.button--disabled) {
|
|
304
|
-
background-color: var(--sl-color-danger-600);
|
|
305
|
-
color: var(--sl-color-neutral-0);
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
.button--outline.button--danger:active:not(.button--disabled) {
|
|
309
|
-
border-color: var(--sl-color-danger-700);
|
|
310
|
-
background-color: var(--sl-color-danger-700);
|
|
311
|
-
color: var(--sl-color-neutral-0);
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
@media (forced-colors: active) {
|
|
315
|
-
.button.button--outline.button--checked:not(.button--disabled) {
|
|
316
|
-
outline: solid 2px transparent;
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
/*
|
|
321
|
-
* Text buttons
|
|
322
|
-
*/
|
|
323
|
-
|
|
324
|
-
.button--text {
|
|
325
|
-
background-color: transparent;
|
|
326
|
-
border-color: transparent;
|
|
327
|
-
color: var(--sl-color-primary-600);
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
.button--text:hover:not(.button--disabled) {
|
|
331
|
-
background-color: transparent;
|
|
332
|
-
border-color: transparent;
|
|
333
|
-
color: var(--sl-color-primary-500);
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
.button--text:focus-visible:not(.button--disabled) {
|
|
337
|
-
background-color: transparent;
|
|
338
|
-
border-color: transparent;
|
|
339
|
-
color: var(--sl-color-primary-500);
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
.button--text:active:not(.button--disabled) {
|
|
343
|
-
background-color: transparent;
|
|
344
|
-
border-color: transparent;
|
|
345
|
-
color: var(--sl-color-primary-700);
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
/*
|
|
349
|
-
* Size modifiers
|
|
350
|
-
*/
|
|
351
|
-
|
|
352
|
-
.button--small {
|
|
353
|
-
height: auto;
|
|
354
|
-
min-height: var(--sl-input-height-small);
|
|
355
|
-
font-size: var(--sl-button-font-size-small);
|
|
356
|
-
line-height: calc(var(--sl-input-height-small) - var(--sl-input-border-width) * 2);
|
|
357
|
-
border-radius: var(--sl-input-border-radius-small);
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
.button--medium {
|
|
361
|
-
height: auto;
|
|
362
|
-
min-height: var(--sl-input-height-medium);
|
|
363
|
-
font-size: var(--sl-button-font-size-medium);
|
|
364
|
-
line-height: calc(var(--sl-input-height-medium) - var(--sl-input-border-width) * 2);
|
|
365
|
-
border-radius: var(--sl-input-border-radius-medium);
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
.button--large {
|
|
369
|
-
height: auto;
|
|
370
|
-
min-height: var(--sl-input-height-large);
|
|
371
|
-
font-size: var(--sl-button-font-size-large);
|
|
372
|
-
line-height: calc(var(--sl-input-height-large) - var(--sl-input-border-width) * 2);
|
|
373
|
-
border-radius: var(--sl-input-border-radius-large);
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
/*
|
|
377
|
-
* Pill modifier
|
|
378
|
-
*/
|
|
379
|
-
|
|
380
|
-
.button--pill.button--small {
|
|
381
|
-
border-radius: var(--sl-input-height-small);
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
.button--pill.button--medium {
|
|
385
|
-
border-radius: var(--sl-input-height-medium);
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
.button--pill.button--large {
|
|
389
|
-
border-radius: var(--sl-input-height-large);
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
/*
|
|
393
|
-
* Circle modifier
|
|
394
|
-
*/
|
|
395
|
-
|
|
396
|
-
.button--circle {
|
|
397
|
-
padding-left: 0;
|
|
398
|
-
padding-right: 0;
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
.button--circle.button--small {
|
|
402
|
-
width: var(--sl-input-height-small);
|
|
403
|
-
border-radius: 50%;
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
.button--circle.button--medium {
|
|
407
|
-
width: var(--sl-input-height-medium);
|
|
408
|
-
border-radius: 50%;
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
.button--circle.button--large {
|
|
412
|
-
width: var(--sl-input-height-large);
|
|
413
|
-
border-radius: 50%;
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
.button--circle .button__prefix,
|
|
417
|
-
.button--circle .button__suffix,
|
|
418
|
-
.button--circle .button__caret {
|
|
419
|
-
display: none;
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
/*
|
|
423
|
-
* Caret modifier
|
|
424
|
-
*/
|
|
425
|
-
|
|
426
|
-
.button--caret .button__suffix {
|
|
427
|
-
display: none;
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
.button--caret .button__caret {
|
|
431
|
-
height: auto;
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
/*
|
|
435
|
-
* Loading modifier
|
|
436
|
-
*/
|
|
437
|
-
|
|
438
|
-
.button--loading {
|
|
439
|
-
position: relative;
|
|
440
|
-
cursor: wait;
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
.button--loading .button__prefix,
|
|
444
|
-
.button--loading .button__label,
|
|
445
|
-
.button--loading .button__suffix,
|
|
446
|
-
.button--loading .button__caret {
|
|
447
|
-
visibility: hidden;
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
.button--loading sl-spinner {
|
|
451
|
-
--indicator-color: currentColor;
|
|
452
|
-
position: absolute;
|
|
453
|
-
font-size: 1em;
|
|
454
|
-
height: 1em;
|
|
455
|
-
width: 1em;
|
|
456
|
-
top: calc(50% - 0.5em);
|
|
457
|
-
left: calc(50% - 0.5em);
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
/*
|
|
461
|
-
* Badges
|
|
462
|
-
*/
|
|
463
|
-
|
|
464
|
-
.button ::slotted(sl-badge) {
|
|
465
|
-
position: absolute;
|
|
466
|
-
top: 0;
|
|
467
|
-
right: 0;
|
|
468
|
-
translate: 50% -50%;
|
|
469
|
-
pointer-events: none;
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
.button--rtl ::slotted(sl-badge) {
|
|
473
|
-
right: auto;
|
|
474
|
-
left: 0;
|
|
475
|
-
translate: -50% -50%;
|
|
476
|
-
}
|
|
477
|
-
|
|
478
|
-
/*
|
|
479
|
-
* Button spacing
|
|
480
|
-
*/
|
|
481
|
-
|
|
482
|
-
.button--has-label.button--small .button__label {
|
|
483
|
-
padding: 0 var(--sl-spacing-small);
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
.button--has-label.button--medium .button__label {
|
|
487
|
-
padding: 0 var(--sl-spacing-medium);
|
|
488
|
-
}
|
|
489
|
-
|
|
490
|
-
.button--has-label.button--large .button__label {
|
|
491
|
-
padding: 0 var(--sl-spacing-large);
|
|
492
|
-
}
|
|
493
|
-
|
|
494
|
-
.button--has-prefix.button--small {
|
|
495
|
-
padding-inline-start: var(--sl-spacing-x-small);
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
.button--has-prefix.button--small .button__label {
|
|
499
|
-
padding-inline-start: var(--sl-spacing-x-small);
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
.button--has-prefix.button--medium {
|
|
503
|
-
padding-inline-start: var(--sl-spacing-small);
|
|
504
|
-
}
|
|
505
|
-
|
|
506
|
-
.button--has-prefix.button--medium .button__label {
|
|
507
|
-
padding-inline-start: var(--sl-spacing-small);
|
|
508
|
-
}
|
|
509
|
-
|
|
510
|
-
.button--has-prefix.button--large {
|
|
511
|
-
padding-inline-start: var(--sl-spacing-small);
|
|
512
|
-
}
|
|
513
|
-
|
|
514
|
-
.button--has-prefix.button--large .button__label {
|
|
515
|
-
padding-inline-start: var(--sl-spacing-small);
|
|
516
|
-
}
|
|
517
|
-
|
|
518
|
-
.button--has-suffix.button--small,
|
|
519
|
-
.button--caret.button--small {
|
|
520
|
-
padding-inline-end: var(--sl-spacing-x-small);
|
|
521
|
-
}
|
|
522
|
-
|
|
523
|
-
.button--has-suffix.button--small .button__label,
|
|
524
|
-
.button--caret.button--small .button__label {
|
|
525
|
-
padding-inline-end: var(--sl-spacing-x-small);
|
|
526
|
-
}
|
|
527
|
-
|
|
528
|
-
.button--has-suffix.button--medium,
|
|
529
|
-
.button--caret.button--medium {
|
|
530
|
-
padding-inline-end: var(--sl-spacing-small);
|
|
531
|
-
}
|
|
532
|
-
|
|
533
|
-
.button--has-suffix.button--medium .button__label,
|
|
534
|
-
.button--caret.button--medium .button__label {
|
|
535
|
-
padding-inline-end: var(--sl-spacing-small);
|
|
536
|
-
}
|
|
537
|
-
|
|
538
|
-
.button--has-suffix.button--large,
|
|
539
|
-
.button--caret.button--large {
|
|
540
|
-
padding-inline-end: var(--sl-spacing-small);
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
.button--has-suffix.button--large .button__label,
|
|
544
|
-
.button--caret.button--large .button__label {
|
|
545
|
-
padding-inline-end: var(--sl-spacing-small);
|
|
546
|
-
}
|
|
547
|
-
|
|
548
|
-
/*
|
|
549
|
-
* Button groups support a variety of button types (e.g. buttons with tooltips, buttons as dropdown triggers, etc.).
|
|
550
|
-
* This means buttons aren't always direct descendants of the button group, thus we can't target them with the
|
|
551
|
-
* ::slotted selector. To work around this, the button group component does some magic to add these special classes to
|
|
552
|
-
* buttons and we style them here instead.
|
|
553
|
-
*/
|
|
554
|
-
|
|
555
|
-
:host([data-sl-button-group__button--first]:not([data-sl-button-group__button--last])) .button {
|
|
556
|
-
border-start-end-radius: 0;
|
|
557
|
-
border-end-end-radius: 0;
|
|
558
|
-
}
|
|
559
|
-
|
|
560
|
-
:host([data-sl-button-group__button--inner]) .button {
|
|
561
|
-
border-radius: 0;
|
|
562
|
-
}
|
|
563
|
-
|
|
564
|
-
:host([data-sl-button-group__button--last]:not([data-sl-button-group__button--first])) .button {
|
|
565
|
-
border-start-start-radius: 0;
|
|
566
|
-
border-end-start-radius: 0;
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
/* All except the first */
|
|
570
|
-
:host([data-sl-button-group__button]:not([data-sl-button-group__button--first])) {
|
|
571
|
-
margin-inline-start: calc(-1 * var(--sl-input-border-width));
|
|
572
|
-
}
|
|
573
|
-
|
|
574
|
-
/* Add a visual separator between solid buttons */
|
|
575
|
-
:host(
|
|
576
|
-
[data-sl-button-group__button]:not(
|
|
577
|
-
[data-sl-button-group__button--first],
|
|
578
|
-
[data-sl-button-group__button--radio],
|
|
579
|
-
[variant='default']
|
|
580
|
-
):not(:hover)
|
|
581
|
-
)
|
|
582
|
-
.button:after {
|
|
583
|
-
content: '';
|
|
584
|
-
position: absolute;
|
|
585
|
-
top: 0;
|
|
586
|
-
inset-inline-start: 0;
|
|
587
|
-
bottom: 0;
|
|
588
|
-
border-left: solid 1px rgb(128 128 128 / 33%);
|
|
589
|
-
mix-blend-mode: multiply;
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
/* Bump hovered, focused, and checked buttons up so their focus ring isn't clipped */
|
|
593
|
-
:host([data-sl-button-group__button--hover]) {
|
|
594
|
-
z-index: 1;
|
|
595
|
-
}
|
|
596
|
-
|
|
597
|
-
/* Focus and checked are always on top */
|
|
598
|
-
:host([data-sl-button-group__button--focus]),
|
|
599
|
-
:host([data-sl-button-group__button][checked]) {
|
|
600
|
-
z-index: 2;
|
|
601
|
-
}
|
|
602
|
-
`, y = class extends a {
|
|
603
|
-
constructor() {
|
|
604
|
-
super(...arguments), this.formControlController = new g(this, { assumeInteractionOn: ["click"] }), this.hasSlotController = new f(this, "[default]", "prefix", "suffix"), this.localize = new p(this), this.hasFocus = !1, this.invalid = !1, this.title = "", this.variant = "default", this.size = "medium", this.caret = !1, this.disabled = !1, this.loading = !1, this.outline = !1, this.pill = !1, this.circle = !1, this.type = "button", this.name = "", this.value = "", this.href = "", this.rel = "noreferrer noopener";
|
|
605
|
-
}
|
|
606
|
-
get validity() {
|
|
607
|
-
return this.isButton() ? this.button.validity : h;
|
|
608
|
-
}
|
|
609
|
-
get validationMessage() {
|
|
610
|
-
return this.isButton() ? this.button.validationMessage : "";
|
|
611
|
-
}
|
|
612
|
-
firstUpdated() {
|
|
613
|
-
this.isButton() && this.formControlController.updateValidity();
|
|
614
|
-
}
|
|
615
|
-
handleBlur() {
|
|
616
|
-
this.hasFocus = !1, this.emit("sl-blur");
|
|
617
|
-
}
|
|
618
|
-
handleFocus() {
|
|
619
|
-
this.hasFocus = !0, this.emit("sl-focus");
|
|
620
|
-
}
|
|
621
|
-
handleClick() {
|
|
622
|
-
this.type === "submit" && this.formControlController.submit(this), this.type === "reset" && this.formControlController.reset(this);
|
|
623
|
-
}
|
|
624
|
-
handleInvalid(e) {
|
|
625
|
-
this.formControlController.setValidity(!1), this.formControlController.emitInvalidEvent(e);
|
|
626
|
-
}
|
|
627
|
-
isButton() {
|
|
628
|
-
return !this.href;
|
|
629
|
-
}
|
|
630
|
-
isLink() {
|
|
631
|
-
return !!this.href;
|
|
632
|
-
}
|
|
633
|
-
handleDisabledChange() {
|
|
634
|
-
this.isButton() && this.formControlController.setValidity(this.disabled);
|
|
635
|
-
}
|
|
636
|
-
click() {
|
|
637
|
-
this.button.click();
|
|
638
|
-
}
|
|
639
|
-
focus(e) {
|
|
640
|
-
this.button.focus(e);
|
|
641
|
-
}
|
|
642
|
-
blur() {
|
|
643
|
-
this.button.blur();
|
|
644
|
-
}
|
|
645
|
-
checkValidity() {
|
|
646
|
-
return this.isButton() ? this.button.checkValidity() : !0;
|
|
647
|
-
}
|
|
648
|
-
getForm() {
|
|
649
|
-
return this.formControlController.getForm();
|
|
650
|
-
}
|
|
651
|
-
reportValidity() {
|
|
652
|
-
return this.isButton() ? this.button.reportValidity() : !0;
|
|
653
|
-
}
|
|
654
|
-
setCustomValidity(e) {
|
|
655
|
-
this.isButton() && (this.button.setCustomValidity(e), this.formControlController.updateValidity());
|
|
656
|
-
}
|
|
657
|
-
render() {
|
|
658
|
-
let e = this.isLink(), t = e ? d`a` : d`button`;
|
|
659
|
-
return l`
|
|
660
|
-
<${t}
|
|
661
|
-
part="base"
|
|
662
|
-
class=${c({
|
|
663
|
-
button: !0,
|
|
664
|
-
"button--default": this.variant === "default",
|
|
665
|
-
"button--primary": this.variant === "primary",
|
|
666
|
-
"button--success": this.variant === "success",
|
|
667
|
-
"button--neutral": this.variant === "neutral",
|
|
668
|
-
"button--warning": this.variant === "warning",
|
|
669
|
-
"button--danger": this.variant === "danger",
|
|
670
|
-
"button--text": this.variant === "text",
|
|
671
|
-
"button--small": this.size === "small",
|
|
672
|
-
"button--medium": this.size === "medium",
|
|
673
|
-
"button--large": this.size === "large",
|
|
674
|
-
"button--caret": this.caret,
|
|
675
|
-
"button--circle": this.circle,
|
|
676
|
-
"button--disabled": this.disabled,
|
|
677
|
-
"button--focused": this.hasFocus,
|
|
678
|
-
"button--loading": this.loading,
|
|
679
|
-
"button--standard": !this.outline,
|
|
680
|
-
"button--outline": this.outline,
|
|
681
|
-
"button--pill": this.pill,
|
|
682
|
-
"button--rtl": this.localize.dir() === "rtl",
|
|
683
|
-
"button--has-label": this.hasSlotController.test("[default]"),
|
|
684
|
-
"button--has-prefix": this.hasSlotController.test("prefix"),
|
|
685
|
-
"button--has-suffix": this.hasSlotController.test("suffix")
|
|
686
|
-
})}
|
|
687
|
-
?disabled=${u(e ? void 0 : this.disabled)}
|
|
688
|
-
type=${u(e ? void 0 : this.type)}
|
|
689
|
-
title=${this.title}
|
|
690
|
-
name=${u(e ? void 0 : this.name)}
|
|
691
|
-
value=${u(e ? void 0 : this.value)}
|
|
692
|
-
href=${u(e && !this.disabled ? this.href : void 0)}
|
|
693
|
-
target=${u(e ? this.target : void 0)}
|
|
694
|
-
download=${u(e ? this.download : void 0)}
|
|
695
|
-
rel=${u(e ? this.rel : void 0)}
|
|
696
|
-
role=${u(e ? void 0 : "button")}
|
|
697
|
-
aria-disabled=${this.disabled ? "true" : "false"}
|
|
698
|
-
tabindex=${this.disabled ? "-1" : "0"}
|
|
699
|
-
@blur=${this.handleBlur}
|
|
700
|
-
@focus=${this.handleFocus}
|
|
701
|
-
@invalid=${this.isButton() ? this.handleInvalid : null}
|
|
702
|
-
@click=${this.handleClick}
|
|
703
|
-
>
|
|
704
|
-
<slot name="prefix" part="prefix" class="button__prefix"></slot>
|
|
705
|
-
<slot part="label" class="button__label"></slot>
|
|
706
|
-
<slot name="suffix" part="suffix" class="button__suffix"></slot>
|
|
707
|
-
${this.caret ? l` <sl-icon part="caret" class="button__caret" library="system" name="caret"></sl-icon> ` : ""}
|
|
708
|
-
${this.loading ? l`<sl-spinner part="spinner"></sl-spinner>` : ""}
|
|
709
|
-
</${t}>
|
|
710
|
-
`;
|
|
711
|
-
}
|
|
712
|
-
};
|
|
713
|
-
//#endregion
|
|
714
|
-
//#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.JCXLDPQF.js
|
|
715
|
-
y.styles = [s, v], y.dependencies = {
|
|
716
|
-
"sl-icon": o,
|
|
717
|
-
"sl-spinner": m
|
|
718
|
-
}, i([n(".button")], y.prototype, "button", 2), i([t()], y.prototype, "hasFocus", 2), i([t()], y.prototype, "invalid", 2), i([e()], y.prototype, "title", 2), i([e({ reflect: !0 })], y.prototype, "variant", 2), i([e({ reflect: !0 })], y.prototype, "size", 2), i([e({
|
|
719
|
-
type: Boolean,
|
|
720
|
-
reflect: !0
|
|
721
|
-
})], y.prototype, "caret", 2), i([e({
|
|
722
|
-
type: Boolean,
|
|
723
|
-
reflect: !0
|
|
724
|
-
})], y.prototype, "disabled", 2), i([e({
|
|
725
|
-
type: Boolean,
|
|
726
|
-
reflect: !0
|
|
727
|
-
})], y.prototype, "loading", 2), i([e({
|
|
728
|
-
type: Boolean,
|
|
729
|
-
reflect: !0
|
|
730
|
-
})], y.prototype, "outline", 2), i([e({
|
|
731
|
-
type: Boolean,
|
|
732
|
-
reflect: !0
|
|
733
|
-
})], y.prototype, "pill", 2), i([e({
|
|
734
|
-
type: Boolean,
|
|
735
|
-
reflect: !0
|
|
736
|
-
})], y.prototype, "circle", 2), i([e()], y.prototype, "type", 2), i([e()], y.prototype, "name", 2), i([e()], y.prototype, "value", 2), i([e()], y.prototype, "href", 2), i([e()], y.prototype, "target", 2), i([e()], y.prototype, "rel", 2), i([e()], y.prototype, "download", 2), i([e()], y.prototype, "form", 2), i([e({ attribute: "formaction" })], y.prototype, "formAction", 2), i([e({ attribute: "formenctype" })], y.prototype, "formEnctype", 2), i([e({ attribute: "formmethod" })], y.prototype, "formMethod", 2), i([e({
|
|
737
|
-
attribute: "formnovalidate",
|
|
738
|
-
type: Boolean
|
|
739
|
-
})], y.prototype, "formNoValidate", 2), i([e({ attribute: "formtarget" })], y.prototype, "formTarget", 2), i([r("disabled", { waitUntilFirstUpdate: !0 })], y.prototype, "handleDisabledChange", 1), y.define("sl-button");
|
|
740
|
-
//#endregion
|
|
741
|
-
export { y as t };
|