@abi-software/map-side-bar 2.14.6-demo.0 → 2.14.7
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-side-bar.js +8746 -9802
- package/dist/map-side-bar.umd.cjs +72 -77
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/App.vue +4 -11
- package/src/assets/connectivity-explorer.scss +3 -7
- package/src/components/ConnectivityCard.vue +2 -26
- package/src/components/ConnectivityInfo.vue +46 -3
- package/src/components/DatasetCard.vue +11 -6
- package/src/components/DatasetExplorer.vue +0 -1
- package/src/components/SearchFilters.vue +9 -10
- package/src/components/SearchHistory.vue +14 -1
- package/src/components/SideBar.vue +1 -82
- package/src/components/Tabs.vue +6 -15
- package/src/components.d.ts +0 -3
- package/src/components/CellCard.vue +0 -946
- package/src/components/CellCardExplorer.vue +0 -754
- package/src/components/icons/IconOpenExternal.vue +0 -28
- package/src/utils/common.js +0 -71
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<svg
|
|
3
|
-
viewBox="0 0 24 24"
|
|
4
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
5
|
-
aria-hidden="true"
|
|
6
|
-
focusable="false"
|
|
7
|
-
>
|
|
8
|
-
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
9
|
-
<polygon
|
|
10
|
-
fill="currentColor"
|
|
11
|
-
fill-rule="nonzero"
|
|
12
|
-
transform="translate(15.500000, 8.878680) rotate(225.000000) translate(-15.500000, -8.878680)"
|
|
13
|
-
points="16.25 4.12867966 16.25 13.6286797 14.75 13.6286797 14.75 4.12867966"
|
|
14
|
-
/>
|
|
15
|
-
<polygon
|
|
16
|
-
fill="currentColor"
|
|
17
|
-
fill-rule="nonzero"
|
|
18
|
-
transform="translate(17.500000, 6.918996) rotate(225.000000) translate(-17.500000, -6.918996)"
|
|
19
|
-
points="20.9294459 3.82036868 22.058311 4.80812559 17.5 10.0176239 12.941689 4.80812559 14.0705541 3.82036868 17.5 7.739"
|
|
20
|
-
/>
|
|
21
|
-
<polygon
|
|
22
|
-
fill="currentColor"
|
|
23
|
-
fill-rule="nonzero"
|
|
24
|
-
points="11.6570511 7.25 11.6570511 8.75 5.75 8.75 5.75 16.25 15.25 16.25 15.25 11.2267933 16.75 11.2267933 16.75 17.75 4.25 17.75 4.25 7.25"
|
|
25
|
-
/>
|
|
26
|
-
</g>
|
|
27
|
-
</svg>
|
|
28
|
-
</template>
|
package/src/utils/common.js
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
export function generateUUID() {
|
|
2
|
-
const arr = new Uint8Array(16);
|
|
3
|
-
window.crypto.getRandomValues(arr);
|
|
4
|
-
|
|
5
|
-
arr[6] = (arr[6] & 0x0f) | 0x40;
|
|
6
|
-
arr[8] = (arr[8] & 0x3f) | 0x80;
|
|
7
|
-
|
|
8
|
-
const hex = Array.from(arr)
|
|
9
|
-
.map(byte => byte.toString(16).padStart(2, '0'))
|
|
10
|
-
.join('');
|
|
11
|
-
|
|
12
|
-
return `${hex.slice(0, 8)}-${hex.slice(8, 12)}-${hex.slice(12, 16)}-${hex.slice(16, 20)}-${hex.slice(20)}`;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export function capitalise(text) {
|
|
16
|
-
if (!text) return '';
|
|
17
|
-
const value = String(text);
|
|
18
|
-
return value.charAt(0).toUpperCase() + value.slice(1);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export function formatAlertText(text, { formatLines = false } = {}) {
|
|
22
|
-
if (!text) return '';
|
|
23
|
-
|
|
24
|
-
const escaped = String(text)
|
|
25
|
-
.replace(/&/g, '&')
|
|
26
|
-
.replace(/</g, '<')
|
|
27
|
-
.replace(/>/g, '>');
|
|
28
|
-
|
|
29
|
-
const linkified = escaped.replace(
|
|
30
|
-
/(https?:\/\/[^\s"<>\[]+)/g,
|
|
31
|
-
(url) => {
|
|
32
|
-
const parts = url.match(/^(.*?)([\].,;:!?]*)$/);
|
|
33
|
-
const cleanUrl = parts ? parts[1] : url;
|
|
34
|
-
const suffix = parts ? parts[2] : '';
|
|
35
|
-
return `<a href="${cleanUrl}" target="_blank" rel="noopener noreferrer">${cleanUrl}</a>${suffix}`;
|
|
36
|
-
}
|
|
37
|
-
);
|
|
38
|
-
|
|
39
|
-
const normalised = linkified
|
|
40
|
-
.replace(/\\n/g, '\n')
|
|
41
|
-
.replace(/\r\n/g, '\n')
|
|
42
|
-
.replace(/\r/g, '\n');
|
|
43
|
-
|
|
44
|
-
if (!formatLines) {
|
|
45
|
-
return normalised;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
return normalised
|
|
49
|
-
.split('\n')
|
|
50
|
-
.map((line) => {
|
|
51
|
-
const withBoldLabel = line.replace(
|
|
52
|
-
/^\s*([A-Za-z][^:<]{0,120}:)/,
|
|
53
|
-
'<strong>$1</strong>'
|
|
54
|
-
);
|
|
55
|
-
return `<div class="alert-line">${withBoldLabel}</div>`;
|
|
56
|
-
})
|
|
57
|
-
.join('\n');
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export function scrollToRef(vm, refName) {
|
|
61
|
-
vm?.$nextTick(() => {
|
|
62
|
-
const element = vm?.$refs?.[refName];
|
|
63
|
-
if (element) {
|
|
64
|
-
element.scrollIntoView({
|
|
65
|
-
behavior: 'smooth',
|
|
66
|
-
block: 'start',
|
|
67
|
-
inline: 'nearest',
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
}
|