@abi-software/map-utilities 1.0.1-beta.0 → 1.0.1-beta.2
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/map-utilities.js
CHANGED
|
@@ -12022,12 +12022,13 @@ const D2 = /* @__PURE__ */ $t(y2, [["render", F2], ["__scopeId", "data-v-aa649ea
|
|
|
12022
12022
|
default: ""
|
|
12023
12023
|
},
|
|
12024
12024
|
/**
|
|
12025
|
-
*
|
|
12026
|
-
*
|
|
12025
|
+
* `theme: light` will show white button,
|
|
12026
|
+
* to use when the button is over other readable text content.
|
|
12027
|
+
* Default button is transparent.
|
|
12027
12028
|
*/
|
|
12028
12029
|
theme: {
|
|
12029
12030
|
type: String,
|
|
12030
|
-
default: "
|
|
12031
|
+
default: ""
|
|
12031
12032
|
}
|
|
12032
12033
|
},
|
|
12033
12034
|
data: function() {
|
|
@@ -12037,18 +12038,22 @@ const D2 = /* @__PURE__ */ $t(y2, [["render", F2], ["__scopeId", "data-v-aa649ea
|
|
|
12037
12038
|
iconColor: O2
|
|
12038
12039
|
};
|
|
12039
12040
|
},
|
|
12040
|
-
mounted: function() {
|
|
12041
|
-
this.theme !== "light" && (this.iconColor = "white");
|
|
12042
|
-
},
|
|
12043
12041
|
methods: {
|
|
12044
12042
|
copyToClipboard: async function() {
|
|
12045
12043
|
let e = !0;
|
|
12046
12044
|
this.autoHideTimeout = 600;
|
|
12047
12045
|
try {
|
|
12048
|
-
|
|
12046
|
+
const t = this.content.replaceAll(`
|
|
12047
|
+
`, ""), n = document.createElement("div");
|
|
12048
|
+
n.innerHTML = this.content;
|
|
12049
|
+
const o = n.textContent || n.innerText || "", r = new Blob([t], { type: "text/html" }), i = new Blob([o], { type: "text/plain" }), s = new ClipboardItem({
|
|
12050
|
+
"text/html": r,
|
|
12051
|
+
"text/plain": i
|
|
12052
|
+
});
|
|
12053
|
+
await navigator.clipboard.write([s]);
|
|
12049
12054
|
} catch (t) {
|
|
12050
12055
|
console.error(
|
|
12051
|
-
"Error when trying to use navigator.clipboard.
|
|
12056
|
+
"Error when trying to use navigator.clipboard.write()",
|
|
12052
12057
|
t
|
|
12053
12058
|
), e = !1;
|
|
12054
12059
|
}
|
|
@@ -12089,7 +12094,7 @@ function N2(e, t, n, o, r, i) {
|
|
|
12089
12094
|
_: 1
|
|
12090
12095
|
}, 8, ["content", "hide-after", "onHide"]);
|
|
12091
12096
|
}
|
|
12092
|
-
const B2 = /* @__PURE__ */ $t(I2, [["render", N2], ["__scopeId", "data-v-
|
|
12097
|
+
const B2 = /* @__PURE__ */ $t(I2, [["render", N2], ["__scopeId", "data-v-4f007f83"]]);
|
|
12093
12098
|
export {
|
|
12094
12099
|
B2 as CopyToClipboard,
|
|
12095
12100
|
P2 as DrawToolbar,
|