@edugis-org/webmapx 0.1.9 → 0.1.11
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/alert-C_G5X6J8.js +311 -0
- package/dist-lib/button-BlZd3WPH.js +744 -0
- package/dist-lib/checkbox-DB4oPyyw.js +287 -0
- package/dist-lib/chunk.36O46B5H-km1dakSW.js +77 -0
- package/dist-lib/chunk.3RPBFEDE-Cxq6VVR6.js +138 -0
- package/dist-lib/chunk.3Y6SB6QS-DUJ8Ickw.js +18 -0
- package/dist-lib/chunk.5JY5FUCG-CYkzbQXS.js +1071 -0
- package/dist-lib/chunk.6CTB5ZDJ-DjZrBd6Y.js +99 -0
- package/dist-lib/chunk.AJ3ENQ5C-DXVGX5Dn.js +177 -0
- package/dist-lib/chunk.LD4M4QGE-CiCfhE8r.js +8 -0
- package/dist-lib/chunk.NYIIDP5N-B4UCI-rQ.js +34 -0
- package/dist-lib/chunk.RWUUFNUL-DFztA4uV.js +43 -0
- package/dist-lib/chunk.SI4ACBFK-CLb9VfMG.js +61 -0
- package/dist-lib/chunk.YHLNUJ7P-ByKy0MKm.js +251 -0
- package/dist-lib/{decorate-DnZTfaod.js → decorate-CKr8yG1g.js} +1 -1
- package/dist-lib/divider-BOFbR_Ny.js +41 -0
- package/dist-lib/icon-CBNpO1lq.js +9 -0
- package/dist-lib/icon-button-B5rXu3Gg.js +410 -0
- package/dist-lib/input-B212BH6L.js +575 -0
- package/dist-lib/option-BQN9Zz_8.js +1108 -0
- package/dist-lib/spinner-DdcBaa3z.js +6 -0
- package/dist-lib/{toast-BsoXOdeA.js → toast-Bq2PmEpm.js} +1 -1
- package/dist-lib/tooltip-CBGOiZwJ.js +197 -0
- package/dist-lib/{webmapx-3d-tool-CLppA7mK.js → webmapx-3d-tool-CKoLGMpk.js} +2 -2
- package/dist-lib/{webmapx-base-tool-DfRa7TlD.js → webmapx-base-tool-Bc9Wz0yA.js} +1 -1
- package/dist-lib/{webmapx-config-edit-tool-BztWspia.js → webmapx-config-edit-tool-7265_DNz.js} +7 -7
- package/dist-lib/{webmapx-coordinates-tool-DnTSkrRG.js → webmapx-coordinates-tool-C964bdEG.js} +3 -3
- package/dist-lib/{webmapx-core-bundle-CH-5vYXU.js → webmapx-core-bundle-Q6mWOib1.js} +1579 -671
- package/dist-lib/webmapx-draw-tool-6QRr5Gip.js +4315 -0
- package/dist-lib/{webmapx-geolocation-tool-DIMh2kIr.js → webmapx-geolocation-tool-qxN5aaVB.js} +6 -7
- package/dist-lib/{webmapx-import-layer-tool-DMiC1TpU.js → webmapx-import-layer-tool-tJ374qHR.js} +2 -2
- package/dist-lib/{webmapx-info-tool-D-XbAU9J.js → webmapx-info-tool-C3txgv3v.js} +4 -4
- package/dist-lib/{webmapx-language-osmvector-BAw9TR-M.js → webmapx-language-osmvector-jQzTOPU1.js} +3 -4
- package/dist-lib/{webmapx-measure-tool-CXlg11s8.js → webmapx-measure-tool-Cxxrzgdf.js} +4 -4
- package/dist-lib/{webmapx-modal-tool-Cs7LRrgW.js → webmapx-modal-tool-DQVHNXqX.js} +2 -2
- package/dist-lib/{webmapx-plugin-tool-qe2yTrWB.js → webmapx-plugin-tool-BNZ61x6s.js} +1 -1
- package/dist-lib/{webmapx-print-tool-DrK9sLC7.js → webmapx-print-tool-BDOTbS6u.js} +7 -8
- package/dist-lib/{webmapx-search-tool-H7NisgWH.js → webmapx-search-tool-CHlsE2Wx.js} +2 -2
- package/dist-lib/webmapx-settings-B0AT9Vjn.js +482 -0
- package/dist-lib/{webmapx-truearea-tool-CSU9mE1D.js → webmapx-truearea-tool-dxSgcbOj.js} +2 -2
- package/dist-lib/{webmapx-view-mode-tool-D1QyQfq8.js → webmapx-view-mode-tool-DVSMakdh.js} +2 -2
- package/dist-lib/webmapx.js +312 -311
- package/package.json +1 -1
- package/dist-lib/webmapx-draw-tool-DxQgUF1Q.js +0 -2117
- package/dist-lib/webmapx-settings-EHSm-AGU.js +0 -167
|
@@ -3,7 +3,7 @@ import { r as e } from "./chunk-HEgqtunE.js";
|
|
|
3
3
|
var t = /* @__PURE__ */ e({ showToast: () => n });
|
|
4
4
|
async function n(e, t = {}) {
|
|
5
5
|
let { variant: n = "neutral", icon: r = n === "danger" ? "x-circle" : n === "warning" ? "exclamation-triangle" : "info-circle", duration: i = n === "danger" ? Infinity : 8e3, closable: a = !0 } = t;
|
|
6
|
-
await import("
|
|
6
|
+
await import("./alert-C_G5X6J8.js"), await import("./icon-CBNpO1lq.js").then((e) => e.t);
|
|
7
7
|
let o = Object.assign(document.createElement("sl-alert"), {
|
|
8
8
|
variant: n,
|
|
9
9
|
closable: a,
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import { a as e, i as t, n, r } from "./chunk.YHLNUJ7P-ByKy0MKm.js";
|
|
2
|
+
import { a as i, i as a, n as o, o as s, s as c, t as l } from "./chunk.AJ3ENQ5C-DXVGX5Dn.js";
|
|
3
|
+
import { t as u } from "./chunk.6CTB5ZDJ-DjZrBd6Y.js";
|
|
4
|
+
import { t as d } from "./chunk.5JY5FUCG-CYkzbQXS.js";
|
|
5
|
+
import { css as f, html as p } from "lit";
|
|
6
|
+
import { property as m, query as h } from "lit/decorators.js";
|
|
7
|
+
import { classMap as g } from "lit/directives/class-map.js";
|
|
8
|
+
//#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.HF7GESMZ.js
|
|
9
|
+
function _(e, t, n) {
|
|
10
|
+
return ((e) => Object.is(e, -0) ? 0 : e)(e < t ? t : e > n ? n : e);
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.FW7UWQXB.js
|
|
14
|
+
var v = f`
|
|
15
|
+
:host {
|
|
16
|
+
--max-width: 20rem;
|
|
17
|
+
--hide-delay: 0ms;
|
|
18
|
+
--show-delay: 150ms;
|
|
19
|
+
|
|
20
|
+
display: contents;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.tooltip {
|
|
24
|
+
--arrow-size: var(--sl-tooltip-arrow-size);
|
|
25
|
+
--arrow-color: var(--sl-tooltip-background-color);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.tooltip::part(popup) {
|
|
29
|
+
z-index: var(--sl-z-index-tooltip);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.tooltip[placement^='top']::part(popup) {
|
|
33
|
+
transform-origin: bottom;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.tooltip[placement^='bottom']::part(popup) {
|
|
37
|
+
transform-origin: top;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.tooltip[placement^='left']::part(popup) {
|
|
41
|
+
transform-origin: right;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.tooltip[placement^='right']::part(popup) {
|
|
45
|
+
transform-origin: left;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.tooltip__body {
|
|
49
|
+
display: block;
|
|
50
|
+
width: max-content;
|
|
51
|
+
max-width: var(--max-width);
|
|
52
|
+
border-radius: var(--sl-tooltip-border-radius);
|
|
53
|
+
background-color: var(--sl-tooltip-background-color);
|
|
54
|
+
font-family: var(--sl-tooltip-font-family);
|
|
55
|
+
font-size: var(--sl-tooltip-font-size);
|
|
56
|
+
font-weight: var(--sl-tooltip-font-weight);
|
|
57
|
+
line-height: var(--sl-tooltip-line-height);
|
|
58
|
+
text-align: start;
|
|
59
|
+
white-space: normal;
|
|
60
|
+
color: var(--sl-tooltip-color);
|
|
61
|
+
padding: var(--sl-tooltip-padding);
|
|
62
|
+
pointer-events: none;
|
|
63
|
+
user-select: none;
|
|
64
|
+
-webkit-user-select: none;
|
|
65
|
+
}
|
|
66
|
+
`, y = class extends n {
|
|
67
|
+
constructor() {
|
|
68
|
+
super(), this.localize = new u(this), this.content = "", this.placement = "top", this.disabled = !1, this.distance = 8, this.open = !1, this.skidding = 0, this.trigger = "hover focus", this.hoist = !1, this.handleBlur = () => {
|
|
69
|
+
this.hasTrigger("focus") && this.hide();
|
|
70
|
+
}, this.handleClick = () => {
|
|
71
|
+
this.hasTrigger("click") && (this.open ? this.hide() : this.show());
|
|
72
|
+
}, this.handleFocus = () => {
|
|
73
|
+
this.hasTrigger("focus") && this.show();
|
|
74
|
+
}, this.handleDocumentKeyDown = (e) => {
|
|
75
|
+
e.key === "Escape" && (e.stopPropagation(), this.hide());
|
|
76
|
+
}, this.handleMouseOver = () => {
|
|
77
|
+
if (this.hasTrigger("hover")) {
|
|
78
|
+
let e = o(getComputedStyle(this).getPropertyValue("--show-delay"));
|
|
79
|
+
clearTimeout(this.hoverTimeout), this.hoverTimeout = window.setTimeout(() => this.show(), e);
|
|
80
|
+
}
|
|
81
|
+
}, this.handleMouseOut = () => {
|
|
82
|
+
if (this.hasTrigger("hover")) {
|
|
83
|
+
let e = o(getComputedStyle(this).getPropertyValue("--hide-delay"));
|
|
84
|
+
clearTimeout(this.hoverTimeout), this.hoverTimeout = window.setTimeout(() => this.hide(), e);
|
|
85
|
+
}
|
|
86
|
+
}, this.addEventListener("blur", this.handleBlur, !0), this.addEventListener("focus", this.handleFocus, !0), this.addEventListener("click", this.handleClick), this.addEventListener("mouseover", this.handleMouseOver), this.addEventListener("mouseout", this.handleMouseOut);
|
|
87
|
+
}
|
|
88
|
+
disconnectedCallback() {
|
|
89
|
+
var e;
|
|
90
|
+
super.disconnectedCallback(), (e = this.closeWatcher) == null || e.destroy(), document.removeEventListener("keydown", this.handleDocumentKeyDown);
|
|
91
|
+
}
|
|
92
|
+
firstUpdated() {
|
|
93
|
+
this.body.hidden = !this.open, this.open && (this.popup.active = !0, this.popup.reposition());
|
|
94
|
+
}
|
|
95
|
+
hasTrigger(e) {
|
|
96
|
+
return this.trigger.split(" ").includes(e);
|
|
97
|
+
}
|
|
98
|
+
async handleOpenChange() {
|
|
99
|
+
var e, t;
|
|
100
|
+
if (this.open) {
|
|
101
|
+
if (this.disabled) return;
|
|
102
|
+
this.emit("sl-show"), "CloseWatcher" in window ? ((e = this.closeWatcher) == null || e.destroy(), this.closeWatcher = new CloseWatcher(), this.closeWatcher.onclose = () => {
|
|
103
|
+
this.hide();
|
|
104
|
+
}) : document.addEventListener("keydown", this.handleDocumentKeyDown), await a(this.body), this.body.hidden = !1, this.popup.active = !0;
|
|
105
|
+
let { keyframes: t, options: n } = s(this, "tooltip.show", { dir: this.localize.dir() });
|
|
106
|
+
await l(this.popup.popup, t, n), this.popup.reposition(), this.emit("sl-after-show");
|
|
107
|
+
} else {
|
|
108
|
+
this.emit("sl-hide"), (t = this.closeWatcher) == null || t.destroy(), document.removeEventListener("keydown", this.handleDocumentKeyDown), await a(this.body);
|
|
109
|
+
let { keyframes: e, options: n } = s(this, "tooltip.hide", { dir: this.localize.dir() });
|
|
110
|
+
await l(this.popup.popup, e, n), this.popup.active = !1, this.body.hidden = !0, this.emit("sl-after-hide");
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
async handleOptionsChange() {
|
|
114
|
+
this.hasUpdated && (await this.updateComplete, this.popup.reposition());
|
|
115
|
+
}
|
|
116
|
+
handleDisabledChange() {
|
|
117
|
+
this.disabled && this.open && this.hide();
|
|
118
|
+
}
|
|
119
|
+
async show() {
|
|
120
|
+
if (!this.open) return this.open = !0, i(this, "sl-after-show");
|
|
121
|
+
}
|
|
122
|
+
async hide() {
|
|
123
|
+
if (this.open) return this.open = !1, i(this, "sl-after-hide");
|
|
124
|
+
}
|
|
125
|
+
render() {
|
|
126
|
+
return p`
|
|
127
|
+
<sl-popup
|
|
128
|
+
part="base"
|
|
129
|
+
exportparts="
|
|
130
|
+
popup:base__popup,
|
|
131
|
+
arrow:base__arrow
|
|
132
|
+
"
|
|
133
|
+
class=${g({
|
|
134
|
+
tooltip: !0,
|
|
135
|
+
"tooltip--open": this.open
|
|
136
|
+
})}
|
|
137
|
+
placement=${this.placement}
|
|
138
|
+
distance=${this.distance}
|
|
139
|
+
skidding=${this.skidding}
|
|
140
|
+
strategy=${this.hoist ? "fixed" : "absolute"}
|
|
141
|
+
flip
|
|
142
|
+
shift
|
|
143
|
+
arrow
|
|
144
|
+
hover-bridge
|
|
145
|
+
>
|
|
146
|
+
${""}
|
|
147
|
+
<slot slot="anchor" aria-describedby="tooltip"></slot>
|
|
148
|
+
|
|
149
|
+
${""}
|
|
150
|
+
<div part="body" id="tooltip" class="tooltip__body" role="tooltip" aria-live=${this.open ? "polite" : "off"}>
|
|
151
|
+
<slot name="content">${this.content}</slot>
|
|
152
|
+
</div>
|
|
153
|
+
</sl-popup>
|
|
154
|
+
`;
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
//#endregion
|
|
158
|
+
//#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.URTPIBTY.js
|
|
159
|
+
y.styles = [r, v], y.dependencies = { "sl-popup": d }, e([h("slot:not([name])")], y.prototype, "defaultSlot", 2), e([h(".tooltip__body")], y.prototype, "body", 2), e([h("sl-popup")], y.prototype, "popup", 2), e([m()], y.prototype, "content", 2), e([m()], y.prototype, "placement", 2), e([m({
|
|
160
|
+
type: Boolean,
|
|
161
|
+
reflect: !0
|
|
162
|
+
})], y.prototype, "disabled", 2), e([m({ type: Number })], y.prototype, "distance", 2), e([m({
|
|
163
|
+
type: Boolean,
|
|
164
|
+
reflect: !0
|
|
165
|
+
})], y.prototype, "open", 2), e([m({ type: Number })], y.prototype, "skidding", 2), e([m()], y.prototype, "trigger", 2), e([m({ type: Boolean })], y.prototype, "hoist", 2), e([t("open", { waitUntilFirstUpdate: !0 })], y.prototype, "handleOpenChange", 1), e([t([
|
|
166
|
+
"content",
|
|
167
|
+
"distance",
|
|
168
|
+
"hoist",
|
|
169
|
+
"placement",
|
|
170
|
+
"skidding"
|
|
171
|
+
])], y.prototype, "handleOptionsChange", 1), e([t("disabled")], y.prototype, "handleDisabledChange", 1), c("tooltip.show", {
|
|
172
|
+
keyframes: [{
|
|
173
|
+
opacity: 0,
|
|
174
|
+
scale: .8
|
|
175
|
+
}, {
|
|
176
|
+
opacity: 1,
|
|
177
|
+
scale: 1
|
|
178
|
+
}],
|
|
179
|
+
options: {
|
|
180
|
+
duration: 150,
|
|
181
|
+
easing: "ease"
|
|
182
|
+
}
|
|
183
|
+
}), c("tooltip.hide", {
|
|
184
|
+
keyframes: [{
|
|
185
|
+
opacity: 1,
|
|
186
|
+
scale: 1
|
|
187
|
+
}, {
|
|
188
|
+
opacity: 0,
|
|
189
|
+
scale: .8
|
|
190
|
+
}],
|
|
191
|
+
options: {
|
|
192
|
+
duration: 150,
|
|
193
|
+
easing: "ease"
|
|
194
|
+
}
|
|
195
|
+
}), y.define("sl-tooltip");
|
|
196
|
+
//#endregion
|
|
197
|
+
export { _ as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "./decorate-
|
|
2
|
-
import { t } from "./webmapx-base-tool-
|
|
1
|
+
import { t as e } from "./decorate-CKr8yG1g.js";
|
|
2
|
+
import { t } from "./webmapx-base-tool-Bc9Wz0yA.js";
|
|
3
3
|
import { css as n, html as r } from "lit";
|
|
4
4
|
import { customElement as i, state as a } from "lit/decorators.js";
|
|
5
5
|
//#region src/components/webmapx-3d-tool.ts
|
package/dist-lib/{webmapx-config-edit-tool-BztWspia.js → webmapx-config-edit-tool-7265_DNz.js}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { r as e, t } from "./decorate-
|
|
1
|
+
import { r as e, t } from "./decorate-CKr8yG1g.js";
|
|
2
|
+
import "./icon-CBNpO1lq.js";
|
|
3
|
+
import "./button-BlZd3WPH.js";
|
|
4
|
+
import "./checkbox-DB4oPyyw.js";
|
|
5
|
+
import "./input-B212BH6L.js";
|
|
6
|
+
import "./divider-BOFbR_Ny.js";
|
|
2
7
|
import { KNOWN_TOOLS as n } from "./dynamic-layout-DmLc5_yX.js";
|
|
3
8
|
import { LitElement as r, css as i, html as a } from "lit";
|
|
4
9
|
import { customElement as o, state as s } from "lit/decorators.js";
|
|
5
|
-
import "@shoelace-style/shoelace/dist/components/button/button.js";
|
|
6
|
-
import "@shoelace-style/shoelace/dist/components/icon/icon.js";
|
|
7
|
-
import "@shoelace-style/shoelace/dist/components/checkbox/checkbox.js";
|
|
8
|
-
import "@shoelace-style/shoelace/dist/components/input/input.js";
|
|
9
|
-
import "@shoelace-style/shoelace/dist/components/divider/divider.js";
|
|
10
10
|
//#region src/components/webmapx-config-edit-tool.ts
|
|
11
11
|
var c = new Set([
|
|
12
12
|
"configedit",
|
|
@@ -213,7 +213,7 @@ var p = class extends r {
|
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
215
|
if (!l) {
|
|
216
|
-
let { showToast: e } = await import("./toast-
|
|
216
|
+
let { showToast: e } = await import("./toast-Bq2PmEpm.js").then((e) => e.n);
|
|
217
217
|
e("<strong>No supported background layer available</strong><br>All background layers are unsupported by the current engine. Uncheck \"Remove engine-unsupported layers\" or switch engine.", { variant: "danger" });
|
|
218
218
|
return;
|
|
219
219
|
}
|
package/dist-lib/{webmapx-coordinates-tool-DnTSkrRG.js → webmapx-coordinates-tool-C964bdEG.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as e } from "./decorate-
|
|
2
|
-
import { t } from "./webmapx-base-tool-
|
|
1
|
+
import { t as e } from "./decorate-CKr8yG1g.js";
|
|
2
|
+
import { t } from "./webmapx-base-tool-Bc9Wz0yA.js";
|
|
3
3
|
import { css as n, html as r, nothing as i } from "lit";
|
|
4
4
|
import { customElement as a, query as o, state as s } from "lit/decorators.js";
|
|
5
5
|
//#region src/utils/epsg-lookup-manager.ts
|
|
6
|
-
var c = "https://cdn.jsdelivr.net/npm/@edugis-org/webmapx@0.1.
|
|
6
|
+
var c = "https://cdn.jsdelivr.net/npm/@edugis-org/webmapx@0.1.11/public", l = 6e4, u = new class {
|
|
7
7
|
constructor() {
|
|
8
8
|
this.worker = null, this.isReady = !1, this.isInitializing = !1, this.initPromise = null, this.pendingRequests = /* @__PURE__ */ new Map(), this.requestCounter = 0, this.idleTimeout = null, this.idleTimeoutMs = l;
|
|
9
9
|
}
|