@esri/solutions-components 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/assets/t9n/public-notification/resources.json +4 -1
- package/dist/assets/t9n/public-notification/resources_en.json +4 -1
- package/dist/cjs/buffer-tools_6.cjs.entry.js +8 -7
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +38 -25
- package/dist/cjs/calcite-input-message_5.cjs.entry.js +272 -21
- package/dist/cjs/{csvUtils-18a03353.js → csvUtils-83af7ae1.js} +5 -5
- package/dist/cjs/layer-table.cjs.entry.js +3 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/map-search.cjs.entry.js +46 -7
- package/dist/cjs/{mapViewUtils-8ea9adc5.js → mapViewUtils-55ac76cb.js} +40 -25
- package/dist/cjs/public-notification.cjs.entry.js +101 -18
- package/dist/cjs/{publicNotificationStore-aca88430.js → publicNotificationStore-28a8759d.js} +3 -1
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +0 -5
- package/dist/collection/components/buffer-tools/buffer-tools.js +7 -6
- package/dist/collection/components/layer-table/layer-table.js +1 -1
- package/dist/collection/components/map-layer-picker/map-layer-picker.js +47 -29
- package/dist/collection/components/map-search/map-search.js +66 -7
- package/dist/collection/components/map-select-tools/map-select-tools.js +125 -8
- package/dist/collection/components/pdf-download/pdf-download.js +32 -8
- package/dist/collection/components/public-notification/public-notification.css +46 -41
- package/dist/collection/components/public-notification/public-notification.js +267 -19
- package/dist/collection/components/refine-selection/refine-selection.js +18 -1
- package/dist/collection/components/refine-selection-tools/refine-selection-tools.js +22 -5
- package/dist/{solutions-components/demos/config-pdf-download.html → collection/demos/buffer-tools.html} +13 -21
- package/dist/collection/demos/index.html +0 -24
- package/dist/collection/demos/map-draw-tools.html +17 -17
- package/dist/collection/demos/map-layer-picker.html +2 -0
- package/dist/collection/demos/map-search.html +16 -15
- package/dist/collection/demos/map-select-tools.html +16 -24
- package/dist/collection/demos/new-public-notification.html +46 -35
- package/dist/collection/demos/pdf-download.html +8 -1
- package/dist/collection/utils/csvUtils.js +4 -4
- package/dist/collection/utils/csvUtils.ts +6 -4
- package/dist/collection/utils/interfaces.ts +65 -1
- package/dist/collection/utils/mapViewUtils.js +36 -22
- package/dist/collection/utils/mapViewUtils.ts +50 -27
- package/dist/collection/utils/publicNotificationStore.js +3 -1
- package/dist/collection/utils/publicNotificationStore.ts +3 -1
- package/dist/collection/utils/queryUtils.js +2 -2
- package/dist/collection/utils/queryUtils.ts +2 -2
- package/dist/components/buffer-tools2.js +1 -1
- package/dist/components/csvUtils.js +4 -4
- package/dist/components/index.d.ts +0 -5
- package/dist/components/index.js +0 -5
- package/dist/components/layer-table.js +2 -3
- package/dist/components/map-layer-picker2.js +177 -28
- package/dist/components/map-search.js +47 -7
- package/dist/components/map-select-tools2.js +56 -11
- package/dist/components/pdf-download2.js +217 -8
- package/dist/components/public-notification.js +154 -55
- package/dist/components/publicNotificationStore.js +3 -1
- package/dist/components/queryUtils.js +3 -3
- package/dist/components/refine-selection-tools2.js +9 -8
- package/dist/components/refine-selection2.js +3 -1
- package/dist/esm/buffer-tools_6.entry.js +8 -7
- package/dist/esm/calcite-combobox_3.entry.js +38 -25
- package/dist/esm/calcite-input-message_5.entry.js +271 -20
- package/dist/esm/{csvUtils-edc0c2a8.js → csvUtils-eb231cfb.js} +5 -5
- package/dist/esm/layer-table.entry.js +3 -3
- package/dist/esm/loader.js +1 -1
- package/dist/esm/map-search.entry.js +46 -7
- package/dist/esm/{mapViewUtils-31d2c2bb.js → mapViewUtils-e5d8a1e1.js} +39 -25
- package/dist/esm/public-notification.entry.js +101 -18
- package/dist/esm/{publicNotificationStore-3e762eea.js → publicNotificationStore-8e9cb73b.js} +3 -1
- package/dist/esm/solutions-components.js +1 -1
- package/dist/{collection/demos/config-pdf-download.html → solutions-components/demos/buffer-tools.html} +13 -21
- package/dist/solutions-components/demos/index.html +0 -24
- package/dist/solutions-components/demos/map-draw-tools.html +17 -17
- package/dist/solutions-components/demos/map-layer-picker.html +2 -0
- package/dist/solutions-components/demos/map-search.html +16 -15
- package/dist/solutions-components/demos/map-select-tools.html +16 -24
- package/dist/solutions-components/demos/new-public-notification.html +46 -35
- package/dist/solutions-components/demos/pdf-download.html +8 -1
- package/dist/solutions-components/p-07593958.entry.js +6 -0
- package/dist/solutions-components/p-3fa9b3c8.js +36 -0
- package/dist/solutions-components/p-9b5a9117.entry.js +12 -0
- package/dist/solutions-components/{p-15cd8a97.js → p-9c1ebc90.js} +1 -1
- package/dist/solutions-components/{p-c76f8ff7.entry.js → p-a516c658.entry.js} +1 -1
- package/dist/solutions-components/{p-ad42039f.js → p-b668daf8.js} +2 -2
- package/dist/solutions-components/p-bfa95147.entry.js +17 -0
- package/dist/solutions-components/p-d09a168c.entry.js +6 -0
- package/dist/solutions-components/{p-fa6046a8.entry.js → p-fc9609e6.entry.js} +2 -2
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/csvUtils.ts +6 -4
- package/dist/solutions-components/utils/interfaces.ts +65 -1
- package/dist/solutions-components/utils/mapViewUtils.ts +50 -27
- package/dist/solutions-components/utils/publicNotificationStore.ts +3 -1
- package/dist/solutions-components/utils/queryUtils.ts +2 -2
- package/dist/types/components/buffer-tools/buffer-tools.d.ts +4 -3
- package/dist/types/components/map-layer-picker/map-layer-picker.d.ts +22 -11
- package/dist/types/components/map-search/map-search.d.ts +18 -1
- package/dist/types/components/map-select-tools/map-select-tools.d.ts +31 -1
- package/dist/types/components/pdf-download/pdf-download.d.ts +7 -2
- package/dist/types/components/public-notification/public-notification.d.ts +98 -4
- package/dist/types/components/refine-selection/refine-selection.d.ts +5 -0
- package/dist/types/components/refine-selection-tools/refine-selection-tools.d.ts +6 -1
- package/dist/types/components.d.ts +154 -180
- package/dist/types/preact.d.ts +0 -10
- package/dist/types/utils/csvUtils.d.ts +1 -1
- package/dist/types/utils/interfaces.d.ts +56 -1
- package/dist/types/utils/mapViewUtils.d.ts +19 -9
- package/dist/types/utils/publicNotificationStore.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cjs/check-list.cjs.entry.js +0 -103
- package/dist/cjs/config-buffer-tools.cjs.entry.js +0 -125
- package/dist/cjs/config-draw-tools.cjs.entry.js +0 -85
- package/dist/cjs/config-layer-picker.cjs.entry.js +0 -113
- package/dist/cjs/config-pdf-download.cjs.entry.js +0 -117
- package/dist/cjs/labelFormats-3236d2e0.js +0 -212
- package/dist/collection/components/check-list/check-list.css +0 -3
- package/dist/collection/components/check-list/check-list.js +0 -179
- package/dist/collection/components/config-buffer-tools/config-buffer-tools.css +0 -34
- package/dist/collection/components/config-buffer-tools/config-buffer-tools.js +0 -209
- package/dist/collection/components/config-draw-tools/config-draw-tools.css +0 -17
- package/dist/collection/components/config-draw-tools/config-draw-tools.js +0 -150
- package/dist/collection/components/config-layer-picker/config-layer-picker.css +0 -17
- package/dist/collection/components/config-layer-picker/config-layer-picker.js +0 -218
- package/dist/collection/components/config-pdf-download/config-pdf-download.css +0 -17
- package/dist/collection/components/config-pdf-download/config-pdf-download.js +0 -183
- package/dist/collection/demos/check-list.html +0 -65
- package/dist/collection/demos/config-buffer-tools.html +0 -92
- package/dist/collection/demos/config-draw-tools.html +0 -58
- package/dist/collection/demos/config-layer-picker.html +0 -97
- package/dist/components/check-list.d.ts +0 -11
- package/dist/components/check-list.js +0 -11
- package/dist/components/check-list2.js +0 -131
- package/dist/components/config-buffer-tools.d.ts +0 -11
- package/dist/components/config-buffer-tools.js +0 -187
- package/dist/components/config-draw-tools.d.ts +0 -11
- package/dist/components/config-draw-tools.js +0 -121
- package/dist/components/config-layer-picker.d.ts +0 -11
- package/dist/components/config-layer-picker.js +0 -163
- package/dist/components/config-pdf-download.d.ts +0 -11
- package/dist/components/config-pdf-download.js +0 -154
- package/dist/components/labelFormats.js +0 -210
- package/dist/components/mapViewUtils.js +0 -129
- package/dist/esm/check-list.entry.js +0 -99
- package/dist/esm/config-buffer-tools.entry.js +0 -121
- package/dist/esm/config-draw-tools.entry.js +0 -81
- package/dist/esm/config-layer-picker.entry.js +0 -109
- package/dist/esm/config-pdf-download.entry.js +0 -113
- package/dist/esm/labelFormats-b37958c3.js +0 -210
- package/dist/solutions-components/demos/check-list.html +0 -65
- package/dist/solutions-components/demos/config-buffer-tools.html +0 -92
- package/dist/solutions-components/demos/config-draw-tools.html +0 -58
- package/dist/solutions-components/demos/config-layer-picker.html +0 -97
- package/dist/solutions-components/p-16a0e65a.entry.js +0 -6
- package/dist/solutions-components/p-35078393.entry.js +0 -17
- package/dist/solutions-components/p-3d72bba6.entry.js +0 -6
- package/dist/solutions-components/p-3e444242.entry.js +0 -6
- package/dist/solutions-components/p-67afea92.entry.js +0 -12
- package/dist/solutions-components/p-7dcab29d.js +0 -36
- package/dist/solutions-components/p-89f7b02a.entry.js +0 -6
- package/dist/solutions-components/p-906b7b96.entry.js +0 -6
- package/dist/solutions-components/p-99c98510.entry.js +0 -6
- package/dist/solutions-components/p-b1a3605f.entry.js +0 -6
- package/dist/solutions-components/p-e99b1247.js +0 -6
- package/dist/types/components/check-list/check-list.d.ts +0 -57
- package/dist/types/components/config-buffer-tools/config-buffer-tools.d.ts +0 -92
- package/dist/types/components/config-draw-tools/config-draw-tools.d.ts +0 -58
- package/dist/types/components/config-layer-picker/config-layer-picker.d.ts +0 -83
- package/dist/types/components/config-pdf-download/config-pdf-download.d.ts +0 -81
@@ -1,92 +0,0 @@
|
|
1
|
-
<html>
|
2
|
-
<head>
|
3
|
-
<meta charset="utf-8" />
|
4
|
-
<meta
|
5
|
-
name="viewport"
|
6
|
-
content="initial-scale=1,maximum-scale=1,user-scalable=no"
|
7
|
-
/>
|
8
|
-
<title>Config Buffer Tools</title>
|
9
|
-
<!--
|
10
|
-
| Copyright 2022 Esri
|
11
|
-
|
|
12
|
-
| Licensed under the Apache License, Version 2.0 (the "License");
|
13
|
-
| you may not use this file except in compliance with the License.
|
14
|
-
| You may obtain a copy of the License at
|
15
|
-
|
|
16
|
-
| http://www.apache.org/licenses/LICENSE-2.0
|
17
|
-
|
|
18
|
-
| Unless required by applicable law or agreed to in writing, software
|
19
|
-
| distributed under the License is distributed on an "AS IS" BASIS,
|
20
|
-
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
21
|
-
| See the License for the specific language governing permissions and
|
22
|
-
| limitations under the License.
|
23
|
-
-->
|
24
|
-
<style>
|
25
|
-
.map-div {
|
26
|
-
padding: 0;
|
27
|
-
margin: 0;
|
28
|
-
height: 100%;
|
29
|
-
width: 100%;
|
30
|
-
}
|
31
|
-
.over-map {
|
32
|
-
position: absolute;
|
33
|
-
right: 0px;
|
34
|
-
background-color: var(--calcite-ui-foreground-1);
|
35
|
-
}
|
36
|
-
.column {
|
37
|
-
min-width: 300px;
|
38
|
-
margin: 1rem;
|
39
|
-
padding: 1rem;
|
40
|
-
border: 1px solid;
|
41
|
-
}
|
42
|
-
.padding-block-end-1 {
|
43
|
-
padding-block-end: 1rem;
|
44
|
-
}
|
45
|
-
</style>
|
46
|
-
|
47
|
-
<link
|
48
|
-
rel="stylesheet"
|
49
|
-
href="https://js.arcgis.com/4.25/esri/themes/light/main.css"
|
50
|
-
/>
|
51
|
-
<link rel="stylesheet" href="https://webapps-cdn.esri.com/CDN/fonts/v1.4.1/fonts.css" />
|
52
|
-
<link rel="stylesheet" href="../solutions-components.css" type="text/css">
|
53
|
-
|
54
|
-
<script src="https://js.arcgis.com/4.25/"></script>
|
55
|
-
<script type="module" src="../solutions-components.esm.js"></script>
|
56
|
-
<script>
|
57
|
-
require(["esri/WebMap", "esri/views/MapView"], (
|
58
|
-
WebMap,
|
59
|
-
MapView
|
60
|
-
) => {
|
61
|
-
var webMap = new WebMap({
|
62
|
-
portalItem: {
|
63
|
-
id: "6a55f6678208461bb7a26d9e418a00bc"
|
64
|
-
}
|
65
|
-
});
|
66
|
-
|
67
|
-
const demo = document.getElementById("demo");
|
68
|
-
demo.mapView = new MapView({
|
69
|
-
container: "viewDiv",
|
70
|
-
map: webMap,
|
71
|
-
zoom: 5,
|
72
|
-
center: [-98, 42]
|
73
|
-
});
|
74
|
-
});
|
75
|
-
|
76
|
-
function showResults() {
|
77
|
-
const demo = document.getElementById("demo");
|
78
|
-
demo?.getConfigInfo().then(configInfo => {
|
79
|
-
alert(JSON.stringify(configInfo));
|
80
|
-
});
|
81
|
-
};
|
82
|
-
</script>
|
83
|
-
</head>
|
84
|
-
|
85
|
-
<body>
|
86
|
-
<div id="viewDiv" class="map-div"></div>
|
87
|
-
<div class="over-map column">
|
88
|
-
<config-buffer-tools class="padding-block-end-1" id="demo"></config-buffer-tools>
|
89
|
-
<calcite-button onclick="showResults()">Demo Results</calcite-button>
|
90
|
-
</div>
|
91
|
-
</body>
|
92
|
-
</html>
|
@@ -1,58 +0,0 @@
|
|
1
|
-
<html>
|
2
|
-
<head>
|
3
|
-
<meta charset="utf-8" />
|
4
|
-
<meta
|
5
|
-
name="viewport"
|
6
|
-
content="initial-scale=1,maximum-scale=1,user-scalable=no"
|
7
|
-
/>
|
8
|
-
<title>Config Draw Tools</title>
|
9
|
-
<!--
|
10
|
-
| Copyright 2022 Esri
|
11
|
-
|
|
12
|
-
| Licensed under the Apache License, Version 2.0 (the "License");
|
13
|
-
| you may not use this file except in compliance with the License.
|
14
|
-
| You may obtain a copy of the License at
|
15
|
-
|
|
16
|
-
| http://www.apache.org/licenses/LICENSE-2.0
|
17
|
-
|
|
18
|
-
| Unless required by applicable law or agreed to in writing, software
|
19
|
-
| distributed under the License is distributed on an "AS IS" BASIS,
|
20
|
-
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
21
|
-
| See the License for the specific language governing permissions and
|
22
|
-
| limitations under the License.
|
23
|
-
-->
|
24
|
-
<style>
|
25
|
-
.over-map {
|
26
|
-
position: absolute;
|
27
|
-
right: 0px;
|
28
|
-
background-color: var(--calcite-ui-foreground-1);
|
29
|
-
}
|
30
|
-
.column {
|
31
|
-
min-width: 300px;
|
32
|
-
margin: 1rem;
|
33
|
-
padding: 1rem;
|
34
|
-
border: 1px solid;
|
35
|
-
}
|
36
|
-
</style>
|
37
|
-
|
38
|
-
<link rel="stylesheet" href="https://webapps-cdn.esri.com/CDN/fonts/v1.4.1/fonts.css" />
|
39
|
-
<link rel="stylesheet" href="../solutions-components.css" type="text/css">
|
40
|
-
|
41
|
-
<script type="module" src="../solutions-components.esm.js"></script>
|
42
|
-
<script>
|
43
|
-
function showResults() {
|
44
|
-
const demo = document.getElementById("demo");
|
45
|
-
demo?.getConfigInfo().then(configInfo => {
|
46
|
-
alert(JSON.stringify(configInfo));
|
47
|
-
});
|
48
|
-
}
|
49
|
-
</script>
|
50
|
-
</head>
|
51
|
-
|
52
|
-
<body>
|
53
|
-
<div class="over-map column">
|
54
|
-
<config-draw-tools id="demo"></config-draw-tools>
|
55
|
-
<calcite-button onclick="showResults()">Demo Results</calcite-button>
|
56
|
-
</div>
|
57
|
-
</body>
|
58
|
-
</html>
|
@@ -1,97 +0,0 @@
|
|
1
|
-
<html>
|
2
|
-
<head>
|
3
|
-
<meta charset="utf-8" />
|
4
|
-
<meta
|
5
|
-
name="viewport"
|
6
|
-
content="initial-scale=1,maximum-scale=1,user-scalable=no"
|
7
|
-
/>
|
8
|
-
<title>Config Layer Picker</title>
|
9
|
-
<!--
|
10
|
-
| Copyright 2022 Esri
|
11
|
-
|
|
12
|
-
| Licensed under the Apache License, Version 2.0 (the "License");
|
13
|
-
| you may not use this file except in compliance with the License.
|
14
|
-
| You may obtain a copy of the License at
|
15
|
-
|
|
16
|
-
| http://www.apache.org/licenses/LICENSE-2.0
|
17
|
-
|
|
18
|
-
| Unless required by applicable law or agreed to in writing, software
|
19
|
-
| distributed under the License is distributed on an "AS IS" BASIS,
|
20
|
-
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
21
|
-
| See the License for the specific language governing permissions and
|
22
|
-
| limitations under the License.
|
23
|
-
-->
|
24
|
-
<style>
|
25
|
-
.map-div {
|
26
|
-
padding: 0;
|
27
|
-
margin: 0;
|
28
|
-
height: 100%;
|
29
|
-
width: 100%;
|
30
|
-
}
|
31
|
-
.over-map {
|
32
|
-
position: absolute;
|
33
|
-
right: 0px;
|
34
|
-
background-color: var(--calcite-ui-foreground-1);
|
35
|
-
}
|
36
|
-
.over-map[dir="rtl"] {
|
37
|
-
position: absolute;
|
38
|
-
left: 0px;
|
39
|
-
background-color: var(--calcite-ui-foreground-1);
|
40
|
-
}
|
41
|
-
.column {
|
42
|
-
width: 300px;
|
43
|
-
margin: 1rem;
|
44
|
-
padding: 1rem;
|
45
|
-
border: 1px solid;
|
46
|
-
}
|
47
|
-
.padding-top-1 {
|
48
|
-
padding-top: 1rem;
|
49
|
-
}
|
50
|
-
</style>
|
51
|
-
|
52
|
-
<link
|
53
|
-
rel="stylesheet"
|
54
|
-
href="https://js.arcgis.com/4.25/esri/themes/light/main.css"
|
55
|
-
/>
|
56
|
-
<link rel="stylesheet" href="https://webapps-cdn.esri.com/CDN/fonts/v1.4.1/fonts.css" />
|
57
|
-
<link rel="stylesheet" href="../solutions-components.css" type="text/css">
|
58
|
-
|
59
|
-
<script src="https://js.arcgis.com/4.25/"></script>
|
60
|
-
<script type="module" src="../solutions-components.esm.js"></script>
|
61
|
-
<script>
|
62
|
-
require(["esri/WebMap", "esri/views/MapView"], (
|
63
|
-
WebMap,
|
64
|
-
MapView
|
65
|
-
) => {
|
66
|
-
var webMap = new WebMap({
|
67
|
-
portalItem: {
|
68
|
-
id: "6a55f6678208461bb7a26d9e418a00bc"
|
69
|
-
}
|
70
|
-
});
|
71
|
-
|
72
|
-
const demo = document.getElementById("demo");
|
73
|
-
demo.mapView = new MapView({
|
74
|
-
container: "viewDiv",
|
75
|
-
map: webMap,
|
76
|
-
zoom: 5,
|
77
|
-
center: [-98, 42]
|
78
|
-
});
|
79
|
-
});
|
80
|
-
|
81
|
-
function showResults() {
|
82
|
-
const demo = document.getElementById("demo");
|
83
|
-
demo?.getConfigInfo().then(configInfo => {
|
84
|
-
alert(JSON.stringify(configInfo));
|
85
|
-
});
|
86
|
-
};
|
87
|
-
</script>
|
88
|
-
</head>
|
89
|
-
|
90
|
-
<body>
|
91
|
-
<div id="viewDiv" class="map-div"></div>
|
92
|
-
<div class="over-map column">
|
93
|
-
<config-layer-picker id="demo" instruction="Choose potential addressee layers"></config-layer-picker>
|
94
|
-
<calcite-button class="padding-top-1" onclick="showResults()">Demo Results</calcite-button>
|
95
|
-
</div>
|
96
|
-
</body>
|
97
|
-
</html>
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
2
|
-
|
3
|
-
interface CheckList extends Components.CheckList, HTMLElement {}
|
4
|
-
export const CheckList: {
|
5
|
-
prototype: CheckList;
|
6
|
-
new (): CheckList;
|
7
|
-
};
|
8
|
-
/**
|
9
|
-
* Used to define this component and all nested components recursively.
|
10
|
-
*/
|
11
|
-
export const defineCustomElement: () => void;
|
@@ -1,11 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Copyright 2022 Esri
|
3
|
-
* Licensed under the Apache License, Version 2.0
|
4
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
-
*/
|
6
|
-
import { C as CheckList$1, d as defineCustomElement$1 } from './check-list2.js';
|
7
|
-
|
8
|
-
const CheckList = CheckList$1;
|
9
|
-
const defineCustomElement = defineCustomElement$1;
|
10
|
-
|
11
|
-
export { CheckList, defineCustomElement };
|
@@ -1,131 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Copyright 2022 Esri
|
3
|
-
* Licensed under the Apache License, Version 2.0
|
4
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
-
*/
|
6
|
-
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
7
|
-
import { d as defineCustomElement$2 } from './checkbox.js';
|
8
|
-
import { d as defineCustomElement$1 } from './label.js';
|
9
|
-
|
10
|
-
const checkListCss = ":host{display:block}";
|
11
|
-
|
12
|
-
const CheckList = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
13
|
-
constructor() {
|
14
|
-
super();
|
15
|
-
this.__registerHost();
|
16
|
-
this.__attachShadow();
|
17
|
-
//--------------------------------------------------------------------------
|
18
|
-
//
|
19
|
-
// State (internal)
|
20
|
-
//
|
21
|
-
//--------------------------------------------------------------------------
|
22
|
-
//--------------------------------------------------------------------------
|
23
|
-
//
|
24
|
-
// Properties (protected)
|
25
|
-
//
|
26
|
-
//--------------------------------------------------------------------------
|
27
|
-
/**
|
28
|
-
* A list of all checkbox elements for this component
|
29
|
-
*
|
30
|
-
* @protected
|
31
|
-
*/
|
32
|
-
this._elements = [];
|
33
|
-
this.defaultChecked = true;
|
34
|
-
this.values = undefined;
|
35
|
-
}
|
36
|
-
//--------------------------------------------------------------------------
|
37
|
-
//
|
38
|
-
// Watch handlers
|
39
|
-
//
|
40
|
-
//--------------------------------------------------------------------------
|
41
|
-
//--------------------------------------------------------------------------
|
42
|
-
//
|
43
|
-
// Methods (public)
|
44
|
-
//
|
45
|
-
//--------------------------------------------------------------------------
|
46
|
-
/**
|
47
|
-
* Returns a key/value pair that represents the checkbox value and checked state
|
48
|
-
*
|
49
|
-
* @returns Promise with the state of the checkboxes
|
50
|
-
*/
|
51
|
-
async getConfigInfo() {
|
52
|
-
return this._elements.reduce((prev, cur) => {
|
53
|
-
prev[cur.value] = cur.checked;
|
54
|
-
return prev;
|
55
|
-
}, {});
|
56
|
-
}
|
57
|
-
//--------------------------------------------------------------------------
|
58
|
-
//
|
59
|
-
// Events (public)
|
60
|
-
//
|
61
|
-
//--------------------------------------------------------------------------
|
62
|
-
//--------------------------------------------------------------------------
|
63
|
-
//
|
64
|
-
// Functions (lifecycle)
|
65
|
-
//
|
66
|
-
//--------------------------------------------------------------------------
|
67
|
-
/**
|
68
|
-
* StencilJS: Called once just after the component is fully loaded and the first render() occurs.
|
69
|
-
*/
|
70
|
-
async componentDidLoad() {
|
71
|
-
if (this.defaultChecked) {
|
72
|
-
this._elements.forEach(el => {
|
73
|
-
el.checked = true;
|
74
|
-
});
|
75
|
-
}
|
76
|
-
}
|
77
|
-
/**
|
78
|
-
* Renders the component.
|
79
|
-
*/
|
80
|
-
render() {
|
81
|
-
return (h(Host, null, h("div", null, this._renderCheckboxes(this.values))));
|
82
|
-
}
|
83
|
-
//--------------------------------------------------------------------------
|
84
|
-
//
|
85
|
-
// Functions (protected)
|
86
|
-
//
|
87
|
-
//--------------------------------------------------------------------------
|
88
|
-
/**
|
89
|
-
* Render a checkbox with a label for each of the types listed in the NLS
|
90
|
-
*
|
91
|
-
* @returns Array of label/checkbox input nodes
|
92
|
-
* @protected
|
93
|
-
*/
|
94
|
-
_renderCheckboxes(values) {
|
95
|
-
return values.map(v => {
|
96
|
-
return (h("calcite-label", { layout: "inline" }, h("calcite-checkbox", { ref: (el) => this._elements.push(el), value: v }), v));
|
97
|
-
});
|
98
|
-
}
|
99
|
-
get el() { return this; }
|
100
|
-
static get style() { return checkListCss; }
|
101
|
-
}, [1, "check-list", {
|
102
|
-
"defaultChecked": [516, "default-checked"],
|
103
|
-
"values": [16],
|
104
|
-
"getConfigInfo": [64]
|
105
|
-
}]);
|
106
|
-
function defineCustomElement() {
|
107
|
-
if (typeof customElements === "undefined") {
|
108
|
-
return;
|
109
|
-
}
|
110
|
-
const components = ["check-list", "calcite-checkbox", "calcite-label"];
|
111
|
-
components.forEach(tagName => { switch (tagName) {
|
112
|
-
case "check-list":
|
113
|
-
if (!customElements.get(tagName)) {
|
114
|
-
customElements.define(tagName, CheckList);
|
115
|
-
}
|
116
|
-
break;
|
117
|
-
case "calcite-checkbox":
|
118
|
-
if (!customElements.get(tagName)) {
|
119
|
-
defineCustomElement$2();
|
120
|
-
}
|
121
|
-
break;
|
122
|
-
case "calcite-label":
|
123
|
-
if (!customElements.get(tagName)) {
|
124
|
-
defineCustomElement$1();
|
125
|
-
}
|
126
|
-
break;
|
127
|
-
} });
|
128
|
-
}
|
129
|
-
defineCustomElement();
|
130
|
-
|
131
|
-
export { CheckList as C, defineCustomElement as d };
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
2
|
-
|
3
|
-
interface ConfigBufferTools extends Components.ConfigBufferTools, HTMLElement {}
|
4
|
-
export const ConfigBufferTools: {
|
5
|
-
prototype: ConfigBufferTools;
|
6
|
-
new (): ConfigBufferTools;
|
7
|
-
};
|
8
|
-
/**
|
9
|
-
* Used to define this component and all nested components recursively.
|
10
|
-
*/
|
11
|
-
export const defineCustomElement: () => void;
|
@@ -1,187 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Copyright 2022 Esri
|
3
|
-
* Licensed under the Apache License, Version 2.0
|
4
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
-
*/
|
6
|
-
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
7
|
-
import { g as getLocaleComponentStrings } from './locale.js';
|
8
|
-
import { d as defineCustomElement$8 } from './checkbox.js';
|
9
|
-
import { d as defineCustomElement$7 } from './icon.js';
|
10
|
-
import { d as defineCustomElement$6 } from './input.js';
|
11
|
-
import { d as defineCustomElement$5 } from './label.js';
|
12
|
-
import { d as defineCustomElement$4 } from './option.js';
|
13
|
-
import { d as defineCustomElement$3 } from './progress.js';
|
14
|
-
import { d as defineCustomElement$2 } from './select.js';
|
15
|
-
|
16
|
-
const configBufferToolsCss = ":host{display:block}.horizontal-display{display:flex}.label-spacing{--calcite-label-margin-bottom:0}.padding-inline-end-1{-webkit-padding-end:1rem;padding-inline-end:1rem}.padding-inline-start-1{-webkit-padding-start:1rem;padding-inline-start:1rem}.padding-block-end-1{-webkit-padding-after:1rem;padding-block-end:1rem}.width-half{width:50%}.width-full{width:100%}";
|
17
|
-
|
18
|
-
const ConfigBufferTools$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
19
|
-
constructor() {
|
20
|
-
super();
|
21
|
-
this.__registerHost();
|
22
|
-
this.__attachShadow();
|
23
|
-
this.distance = 100;
|
24
|
-
this.unit = "Meters";
|
25
|
-
this._showBufferChecked = true;
|
26
|
-
this._translations = undefined;
|
27
|
-
}
|
28
|
-
//--------------------------------------------------------------------------
|
29
|
-
//
|
30
|
-
// Watch handlers
|
31
|
-
//
|
32
|
-
//--------------------------------------------------------------------------
|
33
|
-
//--------------------------------------------------------------------------
|
34
|
-
//
|
35
|
-
// Methods (public)
|
36
|
-
//
|
37
|
-
//--------------------------------------------------------------------------
|
38
|
-
/**
|
39
|
-
* Returns a key/value pair that represents the checkbox value and checked state
|
40
|
-
*
|
41
|
-
* @returns Promise with the state of the checkboxes
|
42
|
-
*/
|
43
|
-
async getConfigInfo() {
|
44
|
-
return {
|
45
|
-
"distance": this.distance,
|
46
|
-
"unit": this.unit
|
47
|
-
};
|
48
|
-
}
|
49
|
-
//--------------------------------------------------------------------------
|
50
|
-
//
|
51
|
-
// Events (public)
|
52
|
-
//
|
53
|
-
//--------------------------------------------------------------------------
|
54
|
-
//--------------------------------------------------------------------------
|
55
|
-
//
|
56
|
-
// Functions (lifecycle)
|
57
|
-
//
|
58
|
-
//--------------------------------------------------------------------------
|
59
|
-
/**
|
60
|
-
* StencilJS: Called once just after the component is first connected to the DOM.
|
61
|
-
*
|
62
|
-
* @returns Promise when complete
|
63
|
-
*/
|
64
|
-
async componentWillLoad() {
|
65
|
-
await this._getTranslations();
|
66
|
-
}
|
67
|
-
/**
|
68
|
-
* Renders the component.
|
69
|
-
*/
|
70
|
-
render() {
|
71
|
-
return (h(Host, null, h("div", null, h("calcite-label", { layout: "inline" }, h("calcite-checkbox", { checked: this._showBufferChecked, onCalciteCheckboxChange: () => this._setShowBufferChecked(), ref: (el) => { this._showBufferElement = el; } }), this._translations.showSearchDistance)), h("div", { class: "padding-inline-start-1" }, h("div", { class: "padding-block-end-1 width-full" }, h("calcite-label", { class: "label-spacing" }, this._translations.defaultBufferDistance, h("calcite-input", { disabled: !this._showBufferChecked, min: 0, "number-button-type": "vertical", onCalciteInputInput: (evt) => { this._distanceChanged(evt); }, type: "number", value: this.distance.toString() }))), h("div", { class: "width-full" }, h("calcite-label", { class: "label-spacing" }, this._translations.defaultUnit, h("calcite-select", { disabled: !this._showBufferChecked, label: this._translations.defaultUnit, onCalciteSelectChange: (evt) => { this._unitSelectionChange(evt); } }, this._renderUnitOptions()))))));
|
72
|
-
}
|
73
|
-
//--------------------------------------------------------------------------
|
74
|
-
//
|
75
|
-
// Functions (protected)
|
76
|
-
//
|
77
|
-
//--------------------------------------------------------------------------
|
78
|
-
/**
|
79
|
-
* Store the user defined distance
|
80
|
-
*
|
81
|
-
* @protected
|
82
|
-
*/
|
83
|
-
_distanceChanged(evt) {
|
84
|
-
this.distance = evt.detail.value;
|
85
|
-
}
|
86
|
-
/**
|
87
|
-
* Store the user defined unit
|
88
|
-
*
|
89
|
-
* @protected
|
90
|
-
*/
|
91
|
-
_unitSelectionChange(evt) {
|
92
|
-
this.unit = evt.target.value;
|
93
|
-
}
|
94
|
-
/**
|
95
|
-
* Render the various unit options
|
96
|
-
*
|
97
|
-
* @returns Promise when complete
|
98
|
-
* @protected
|
99
|
-
*/
|
100
|
-
_renderUnitOptions() {
|
101
|
-
const nlsUnits = this._translations.units || {};
|
102
|
-
const units = Object.keys(nlsUnits).map(k => nlsUnits[k]);
|
103
|
-
return units.map(unit => {
|
104
|
-
return (h("calcite-option", { label: unit, selected: unit === this.unit, value: unit }));
|
105
|
-
});
|
106
|
-
}
|
107
|
-
/**
|
108
|
-
* When not checked the buffer options will be disabled in the config and not visible in the UI at runtime
|
109
|
-
*
|
110
|
-
* @protected
|
111
|
-
*/
|
112
|
-
_setShowBufferChecked() {
|
113
|
-
this._showBufferChecked = this._showBufferElement.checked;
|
114
|
-
}
|
115
|
-
/**
|
116
|
-
* Fetches the component's translations
|
117
|
-
*
|
118
|
-
* @returns Promise when complete
|
119
|
-
* @protected
|
120
|
-
*/
|
121
|
-
async _getTranslations() {
|
122
|
-
const messages = await getLocaleComponentStrings(this.el);
|
123
|
-
this._translations = messages[0];
|
124
|
-
}
|
125
|
-
get el() { return this; }
|
126
|
-
static get style() { return configBufferToolsCss; }
|
127
|
-
}, [1, "config-buffer-tools", {
|
128
|
-
"distance": [1538],
|
129
|
-
"unit": [1537],
|
130
|
-
"_showBufferChecked": [32],
|
131
|
-
"_translations": [32],
|
132
|
-
"getConfigInfo": [64]
|
133
|
-
}]);
|
134
|
-
function defineCustomElement$1() {
|
135
|
-
if (typeof customElements === "undefined") {
|
136
|
-
return;
|
137
|
-
}
|
138
|
-
const components = ["config-buffer-tools", "calcite-checkbox", "calcite-icon", "calcite-input", "calcite-label", "calcite-option", "calcite-progress", "calcite-select"];
|
139
|
-
components.forEach(tagName => { switch (tagName) {
|
140
|
-
case "config-buffer-tools":
|
141
|
-
if (!customElements.get(tagName)) {
|
142
|
-
customElements.define(tagName, ConfigBufferTools$1);
|
143
|
-
}
|
144
|
-
break;
|
145
|
-
case "calcite-checkbox":
|
146
|
-
if (!customElements.get(tagName)) {
|
147
|
-
defineCustomElement$8();
|
148
|
-
}
|
149
|
-
break;
|
150
|
-
case "calcite-icon":
|
151
|
-
if (!customElements.get(tagName)) {
|
152
|
-
defineCustomElement$7();
|
153
|
-
}
|
154
|
-
break;
|
155
|
-
case "calcite-input":
|
156
|
-
if (!customElements.get(tagName)) {
|
157
|
-
defineCustomElement$6();
|
158
|
-
}
|
159
|
-
break;
|
160
|
-
case "calcite-label":
|
161
|
-
if (!customElements.get(tagName)) {
|
162
|
-
defineCustomElement$5();
|
163
|
-
}
|
164
|
-
break;
|
165
|
-
case "calcite-option":
|
166
|
-
if (!customElements.get(tagName)) {
|
167
|
-
defineCustomElement$4();
|
168
|
-
}
|
169
|
-
break;
|
170
|
-
case "calcite-progress":
|
171
|
-
if (!customElements.get(tagName)) {
|
172
|
-
defineCustomElement$3();
|
173
|
-
}
|
174
|
-
break;
|
175
|
-
case "calcite-select":
|
176
|
-
if (!customElements.get(tagName)) {
|
177
|
-
defineCustomElement$2();
|
178
|
-
}
|
179
|
-
break;
|
180
|
-
} });
|
181
|
-
}
|
182
|
-
defineCustomElement$1();
|
183
|
-
|
184
|
-
const ConfigBufferTools = ConfigBufferTools$1;
|
185
|
-
const defineCustomElement = defineCustomElement$1;
|
186
|
-
|
187
|
-
export { ConfigBufferTools, defineCustomElement };
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
2
|
-
|
3
|
-
interface ConfigDrawTools extends Components.ConfigDrawTools, HTMLElement {}
|
4
|
-
export const ConfigDrawTools: {
|
5
|
-
prototype: ConfigDrawTools;
|
6
|
-
new (): ConfigDrawTools;
|
7
|
-
};
|
8
|
-
/**
|
9
|
-
* Used to define this component and all nested components recursively.
|
10
|
-
*/
|
11
|
-
export const defineCustomElement: () => void;
|