@esri/solutions-components 0.6.16 → 0.6.18
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -1
- package/dist/assets/t9n/map-tools/resources.json +2 -1
- package/dist/assets/t9n/map-tools/resources_en.json +2 -1
- package/dist/assets/t9n/solution-spatial-ref/resources.json +0 -1
- package/dist/assets/t9n/solution-spatial-ref/resources_en.json +0 -1
- package/dist/assets/t9n/solution-spatial-ref/resources_fr.json +6 -0
- package/dist/assets/t9n/solution-spatial-ref/resources_he.json +6 -0
- package/dist/assets/t9n/spatial-ref/resources.json +3 -0
- package/dist/assets/t9n/spatial-ref/resources_en.json +3 -0
- package/dist/assets/t9n/spatial-ref/resources_fr.json +3 -0
- package/dist/assets/t9n/spatial-ref/resources_he.json +3 -0
- package/dist/cjs/{basemap-gallery_6.cjs.entry.js → basemap-gallery_7.cjs.entry.js} +124 -3
- package/dist/cjs/{calcite-tree_3.cjs.entry.js → calcite-checkbox_3.cjs.entry.js} +123 -319
- package/dist/cjs/calcite-combobox_6.cjs.entry.js +1 -1
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +4 -3
- package/dist/cjs/card-manager_3.cjs.entry.js +10 -7
- package/dist/{collection/components/basemap-gallery/test/basemap-gallery.e2e.js → cjs/common-13719149.js} +17 -9
- package/dist/cjs/crowdsource-manager.cjs.entry.js +12 -7
- package/dist/cjs/{downloadUtils-34a515ad.js → downloadUtils-121fd7ff.js} +2 -2
- package/dist/cjs/edit-card_2.cjs.entry.js +4 -3
- package/dist/cjs/{index.es-0ba11065.js → index.es-5c0c137a.js} +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/map-select-tools_3.cjs.entry.js +2 -2
- package/dist/cjs/{mapViewUtils-a2884698.js → mapViewUtils-786a219b.js} +32 -19
- package/dist/cjs/public-notification.cjs.entry.js +2 -2
- package/dist/cjs/solution-configuration.cjs.entry.js +2 -1
- package/dist/cjs/solution-contents_3.cjs.entry.js +21 -21256
- package/dist/cjs/solution-item-icon.cjs.entry.js +327 -0
- package/dist/cjs/{solution-store-c443e657.js → solution-resource-f9e3b289.js} +2 -1698
- package/dist/cjs/solution-store-2414dd8a.js +1707 -0
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/cjs/spatial-ref.cjs.entry.js +21293 -0
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/card-manager/card-manager.js +1 -1
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.css +17 -2
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +47 -6
- package/dist/collection/components/edit-card/edit-card.css +0 -8
- package/dist/collection/components/floor-filter/floor-filter.css +19 -0
- package/dist/collection/components/floor-filter/floor-filter.js +163 -0
- package/dist/collection/components/info-card/info-card.js +3 -2
- package/dist/collection/components/layer-table/layer-table.css +8 -0
- package/dist/collection/components/layer-table/layer-table.js +18 -2
- package/dist/collection/components/map-card/map-card.js +19 -1
- package/dist/collection/components/map-picker/map-picker.css +0 -4
- package/dist/collection/components/map-picker/map-picker.js +1 -1
- package/dist/collection/components/map-tools/map-tools.js +54 -1
- package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.css +1 -7
- package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +37 -291
- package/dist/collection/components/solution-spatial-ref/test/solution-spatial-ref.e2e.js +24 -12
- package/dist/collection/components/solution-spatial-ref/test/solution-spatial-ref.spec.js +32 -128
- package/dist/collection/components/spatial-ref/spatial-ref.css +20 -0
- package/dist/collection/components/spatial-ref/spatial-ref.js +445 -0
- package/dist/collection/components/spatial-ref/test/spatial-ref.e2e.js +71 -0
- package/dist/collection/components/spatial-ref/test/spatial-ref.spec.js +158 -0
- package/dist/collection/demos/crowdsource-manager.html +4 -0
- package/dist/collection/demos/solution-spatial-ref.html +9 -16
- package/dist/collection/demos/spatial-ref.html +53 -0
- package/dist/collection/utils/mapViewUtils.js +32 -19
- package/dist/collection/utils/mapViewUtils.ts +43 -20
- package/dist/collection/utils/{templates.e2e.js → test/templates.e2e.js} +2 -2
- package/dist/collection/utils/{templates.e2e.ts → test/templates.e2e.ts} +2 -2
- package/dist/components/card-manager2.js +1 -1
- package/dist/components/crowdsource-manager.js +86 -73
- package/dist/components/edit-card2.js +1 -1
- package/dist/components/floor-filter.d.ts +11 -0
- package/dist/components/floor-filter.js +11 -0
- package/dist/components/floor-filter2.js +115 -0
- package/dist/components/info-card2.js +3 -2
- package/dist/components/layer-table2.js +5 -3
- package/dist/components/map-card2.js +45 -37
- package/dist/components/map-picker2.js +2 -2
- package/dist/components/map-tools2.js +52 -11
- package/dist/components/mapViewUtils.js +32 -19
- package/dist/components/solution-configuration.js +79 -72
- package/dist/components/solution-resource-item2.js +2 -1
- package/dist/components/solution-resource.js +1836 -0
- package/dist/components/solution-spatial-ref2.js +41 -21277
- package/dist/components/solution-store.js +2 -1830
- package/dist/components/spatial-ref.d.ts +11 -0
- package/dist/components/spatial-ref.js +11 -0
- package/dist/components/spatial-ref2.js +21374 -0
- package/dist/esm/{basemap-gallery_6.entry.js → basemap-gallery_7.entry.js} +124 -4
- package/dist/esm/{calcite-tree_3.entry.js → calcite-checkbox_3.entry.js} +125 -321
- package/dist/esm/calcite-combobox_6.entry.js +1 -1
- package/dist/esm/calcite-shell-panel_14.entry.js +2 -1
- package/dist/esm/card-manager_3.entry.js +10 -7
- package/dist/{collection/components/layer-table/test/layer-table.e2e.js → esm/common-e4a8e353.js} +15 -9
- package/dist/esm/crowdsource-manager.entry.js +12 -7
- package/dist/esm/{downloadUtils-ac67a786.js → downloadUtils-287994b1.js} +2 -2
- package/dist/esm/edit-card_2.entry.js +4 -3
- package/dist/esm/{index.es-f553598f.js → index.es-a3f8409f.js} +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/map-select-tools_3.entry.js +2 -2
- package/dist/esm/{mapViewUtils-8141d8c1.js → mapViewUtils-8bfabd80.js} +32 -19
- package/dist/esm/public-notification.entry.js +2 -2
- package/dist/esm/solution-configuration.entry.js +2 -1
- package/dist/esm/solution-contents_3.entry.js +20 -21255
- package/dist/esm/solution-item-icon.entry.js +323 -0
- package/dist/esm/{solution-store-b29d50f7.js → solution-resource-be35d35b.js} +1 -1697
- package/dist/esm/solution-store-e734626a.js +1704 -0
- package/dist/esm/solutions-components.js +1 -1
- package/dist/esm/spatial-ref.entry.js +21289 -0
- package/dist/solutions-components/demos/crowdsource-manager.html +4 -0
- package/dist/solutions-components/demos/solution-spatial-ref.html +9 -16
- package/dist/solutions-components/demos/spatial-ref.html +53 -0
- package/dist/solutions-components/{p-64d29ba2.entry.js → p-0bc27ba7.entry.js} +2 -2
- package/dist/{collection/components/map-card/test/map-card.e2e.js → solutions-components/p-1b228f97.js} +2 -10
- package/dist/solutions-components/{p-9f11a403.entry.js → p-3c5c1487.entry.js} +1 -1
- package/dist/solutions-components/{p-a26711e8.js → p-469c8f8a.js} +1 -1
- package/dist/solutions-components/p-53bc5fc1.js +36 -0
- package/dist/solutions-components/p-5b8c8942.entry.js +21 -0
- package/dist/solutions-components/p-63c6fc29.entry.js +6 -0
- package/dist/solutions-components/p-64945b43.entry.js +18 -0
- package/dist/solutions-components/{p-c8d0ce92.js → p-698c6a56.js} +2 -2
- package/dist/solutions-components/{p-b9d29f30.entry.js → p-734cb206.entry.js} +1 -1
- package/dist/solutions-components/p-770bff06.entry.js +6 -0
- package/dist/solutions-components/p-7741dbab.entry.js +6 -0
- package/dist/solutions-components/p-80465067.entry.js +6 -0
- package/dist/solutions-components/p-846df994.entry.js +6 -0
- package/dist/solutions-components/p-b3f8d2cb.js +192 -0
- package/dist/solutions-components/p-c26d8b36.entry.js +6 -0
- package/dist/solutions-components/{p-57cf6784.entry.js → p-d22be647.entry.js} +1 -1
- package/dist/solutions-components/{p-4d942b0f.entry.js → p-f35147d5.entry.js} +1 -1
- package/dist/solutions-components/p-ff0d7712.js +44 -0
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/mapViewUtils.ts +43 -20
- package/dist/solutions-components/utils/{templates.e2e.ts → test/templates.e2e.ts} +2 -2
- package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +9 -1
- package/dist/types/components/floor-filter/floor-filter.d.ts +61 -0
- package/dist/types/components/layer-table/layer-table.d.ts +4 -0
- package/dist/types/components/map-card/map-card.d.ts +4 -0
- package/dist/types/components/map-tools/map-tools.d.ts +24 -0
- package/dist/types/components/solution-spatial-ref/solution-spatial-ref.d.ts +11 -93
- package/dist/types/components/spatial-ref/spatial-ref.d.ts +142 -0
- package/dist/types/components.d.ts +123 -16
- package/dist/types/preact.d.ts +8 -1
- package/package.json +6 -6
- package/dist/cjs/calcite-checkbox.cjs.entry.js +0 -136
- package/dist/collection/components/basemap-gallery/test/basemap-gallery.spec.js +0 -37
- package/dist/collection/components/buffer-tools/test/buffer-tools.e2e.js +0 -29
- package/dist/collection/components/buffer-tools/test/buffer-tools.spec.js +0 -160
- package/dist/collection/components/card-manager/test/card-manager.e2e.js +0 -29
- package/dist/collection/components/card-manager/test/card-manager.spec.js +0 -37
- package/dist/collection/components/crowdsource-manager/test/crowdsource-manager.e2e.js +0 -29
- package/dist/collection/components/crowdsource-manager/test/crowdsource-manager.spec.js +0 -37
- package/dist/collection/components/crowdsource-reporter/test/crowdsource-reporter.e2e.js +0 -29
- package/dist/collection/components/crowdsource-reporter/test/crowdsource-reporter.spec.js +0 -37
- package/dist/collection/components/deduct-calculator/test/deduct-calculator.e2e.js +0 -29
- package/dist/collection/components/deduct-calculator/test/deduct-calculator.spec.js +0 -37
- package/dist/collection/components/edit-card/test/edit-card.e2e.js +0 -14
- package/dist/collection/components/edit-card/test/edit-card.spec.js +0 -22
- package/dist/collection/components/info-card/test/info-card.e2e.js +0 -29
- package/dist/collection/components/info-card/test/info-card.spec.js +0 -37
- package/dist/collection/components/json-editor/test/json-editor.e2e.js +0 -36
- package/dist/collection/components/json-editor/test/json-editor.spec.js +0 -65
- package/dist/collection/components/layer-table/test/layer-table.spec.js +0 -37
- package/dist/collection/components/layout-manager/test/layout-manager.e2e.js +0 -29
- package/dist/collection/components/layout-manager/test/layout-manager.spec.js +0 -37
- package/dist/collection/components/list-item/test/list-item.e2e.js +0 -29
- package/dist/collection/components/list-item/test/list-item.spec.js +0 -37
- package/dist/collection/components/map-card/test/map-card.spec.js +0 -37
- package/dist/collection/components/map-draw-tools/test/map-draw-tools.e2e.js +0 -29
- package/dist/collection/components/map-draw-tools/test/map-draw-tools.spec.js +0 -37
- package/dist/collection/components/map-fullscreen/test/map-fullscreen.e2e.js +0 -29
- package/dist/collection/components/map-fullscreen/test/map-fullscreen.spec.js +0 -37
- package/dist/collection/components/map-layer-picker/test/map-layer-picker.e2e.js +0 -29
- package/dist/collection/components/map-layer-picker/test/map-layer-picker.spec.js +0 -114
- package/dist/collection/components/map-legend/test/map-legend.e2e.js +0 -14
- package/dist/collection/components/map-legend/test/map-legend.spec.js +0 -22
- package/dist/collection/components/map-picker/test/map-picker.e2e.js +0 -29
- package/dist/collection/components/map-picker/test/map-picker.spec.js +0 -37
- package/dist/collection/components/map-search/test/map-search.e2e.js +0 -29
- package/dist/collection/components/map-search/test/map-search.spec.js +0 -37
- package/dist/collection/components/map-select-tools/test/map-select-tools.e2e.js +0 -29
- package/dist/collection/components/map-select-tools/test/map-select-tools.spec.js +0 -366
- package/dist/collection/components/map-tools/test/map-tools.e2e.js +0 -29
- package/dist/collection/components/map-tools/test/map-tools.spec.js +0 -37
- package/dist/collection/components/pci-calculator/test/pci-calculator.e2e.js +0 -29
- package/dist/collection/components/pci-calculator/test/pci-calculator.spec.js +0 -37
- package/dist/collection/components/pdf-download/test/pdf-download.e2e.js +0 -76
- package/dist/collection/components/pdf-download/test/pdf-download.spec.js +0 -107
- package/dist/collection/components/public-notification/test/public-notification.spec.js +0 -161
- package/dist/collection/components/refine-selection/test/refine-selection.e2e.js +0 -14
- package/dist/collection/components/refine-selection/test/refine-selection.spec.js +0 -22
- package/dist/collection/components/solution-configuration/test/solution-configuration.e2e.js +0 -36
- package/dist/collection/components/solution-configuration/test/solution-configuration.spec.js +0 -119
- package/dist/collection/components/solution-contents/test/solution-contents.e2e.js +0 -94
- package/dist/collection/components/solution-contents/test/solution-contents.spec.js +0 -143
- package/dist/collection/components/solution-item/test/solution-item.e2e.js +0 -36
- package/dist/collection/components/solution-item/test/solution-item.spec.js +0 -77
- package/dist/collection/components/solution-item-details/test/solution-item-details.e2e.js +0 -36
- package/dist/collection/components/solution-item-details/test/solution-item-details.spec.js +0 -142
- package/dist/collection/components/solution-item-icon/test/solution-item-icon.e2e.js +0 -29
- package/dist/collection/components/solution-item-icon/test/solution-item-icon.spec.js +0 -39
- package/dist/collection/components/solution-item-sharing/test/solution-item-sharing.e2e.js +0 -36
- package/dist/collection/components/solution-item-sharing/test/solution-item-sharing.spec.js +0 -54
- package/dist/collection/components/solution-organization-variables/test/solution-organization-variables.e2e.js +0 -36
- package/dist/collection/components/solution-organization-variables/test/solution-organization-variables.spec.js +0 -65
- package/dist/collection/components/solution-resource-item/test/solution-resource-item.e2e.js +0 -36
- package/dist/collection/components/solution-resource-item/test/solution-resource-item.spec.js +0 -55
- package/dist/collection/components/solution-template-data/test/solution-template-data.e2e.js +0 -36
- package/dist/collection/components/solution-template-data/test/solution-template-data.spec.js +0 -60
- package/dist/collection/components/solution-variables/test/solution-variables.e2e.js +0 -36
- package/dist/collection/components/solution-variables/test/solution-variables.spec.js +0 -131
- package/dist/esm/calcite-checkbox.entry.js +0 -132
- package/dist/solutions-components/p-07d7e11f.entry.js +0 -6
- package/dist/solutions-components/p-16362eb4.js +0 -36
- package/dist/solutions-components/p-17d176b5.js +0 -230
- package/dist/solutions-components/p-1d9a5198.entry.js +0 -37
- package/dist/solutions-components/p-3707d9bd.entry.js +0 -6
- package/dist/solutions-components/p-4dbe8337.entry.js +0 -6
- package/dist/solutions-components/p-5ffaaaf4.entry.js +0 -6
- package/dist/solutions-components/p-736e76fb.entry.js +0 -17
- package/dist/solutions-components/p-99f1a767.entry.js +0 -6
- /package/dist/collection/components/{solution-spatial-ref → spatial-ref}/spatialreferences.js +0 -0
- /package/dist/types/components/{solution-spatial-ref → spatial-ref}/spatialreferences.d.ts +0 -0
@@ -5,24 +5,25 @@
|
|
5
5
|
*/
|
6
6
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
7
7
|
import { l as loadModules } from './loadModules.js';
|
8
|
-
import { d as defineCustomElement$
|
9
|
-
import { d as defineCustomElement$
|
10
|
-
import { d as defineCustomElement$
|
11
|
-
import { d as defineCustomElement$
|
12
|
-
import { d as defineCustomElement$
|
13
|
-
import { d as defineCustomElement$
|
14
|
-
import { d as defineCustomElement$
|
15
|
-
import { d as defineCustomElement$
|
16
|
-
import { d as defineCustomElement$
|
17
|
-
import { d as defineCustomElement$
|
18
|
-
import { d as defineCustomElement$
|
19
|
-
import { d as defineCustomElement$
|
20
|
-
import { d as defineCustomElement$
|
21
|
-
import { d as defineCustomElement$
|
22
|
-
import { d as defineCustomElement$
|
23
|
-
import { d as defineCustomElement$
|
24
|
-
import { d as defineCustomElement$
|
25
|
-
import { d as defineCustomElement$
|
8
|
+
import { d as defineCustomElement$o } from './basemap-gallery2.js';
|
9
|
+
import { d as defineCustomElement$n } from './action.js';
|
10
|
+
import { d as defineCustomElement$m } from './action-bar.js';
|
11
|
+
import { d as defineCustomElement$l } from './action-group.js';
|
12
|
+
import { d as defineCustomElement$k } from './action-menu.js';
|
13
|
+
import { d as defineCustomElement$j } from './button.js';
|
14
|
+
import { d as defineCustomElement$i } from './filter2.js';
|
15
|
+
import { d as defineCustomElement$h } from './handle.js';
|
16
|
+
import { d as defineCustomElement$g } from './icon.js';
|
17
|
+
import { d as defineCustomElement$f } from './input.js';
|
18
|
+
import { d as defineCustomElement$e } from './list.js';
|
19
|
+
import { d as defineCustomElement$d } from './list-item2.js';
|
20
|
+
import { d as defineCustomElement$c } from './loader.js';
|
21
|
+
import { d as defineCustomElement$b } from './popover.js';
|
22
|
+
import { d as defineCustomElement$a } from './progress.js';
|
23
|
+
import { d as defineCustomElement$9 } from './scrim.js';
|
24
|
+
import { d as defineCustomElement$8 } from './stack.js';
|
25
|
+
import { d as defineCustomElement$7 } from './tooltip.js';
|
26
|
+
import { d as defineCustomElement$6 } from './floor-filter2.js';
|
26
27
|
import { d as defineCustomElement$5 } from './map-fullscreen2.js';
|
27
28
|
import { d as defineCustomElement$4 } from './map-legend2.js';
|
28
29
|
import { d as defineCustomElement$3 } from './map-picker2.js';
|
@@ -42,6 +43,7 @@ const MapCard = /*@__PURE__*/ proxyCustomElement(class MapCard extends HTMLEleme
|
|
42
43
|
*/
|
43
44
|
this._loadedId = "";
|
44
45
|
this.enableLegend = undefined;
|
46
|
+
this.enableFloorFilter = undefined;
|
45
47
|
this.enableFullscreen = undefined;
|
46
48
|
this.enableSearch = undefined;
|
47
49
|
this.enableBasemap = undefined;
|
@@ -72,7 +74,7 @@ const MapCard = /*@__PURE__*/ proxyCustomElement(class MapCard extends HTMLEleme
|
|
72
74
|
* Renders the component.
|
73
75
|
*/
|
74
76
|
render() {
|
75
|
-
return (h(Host, null, h("map-picker", { mapInfos: this.mapInfos }), h("div", { class: "map-height", ref: (el) => (this._mapDiv = el) }), h("map-tools", { basemapConfig: this.basemapConfig, class: "box-shadow", enableBasemap: this.enableBasemap, enableFullscreen: this.enableFullscreen, enableLegend: this.enableLegend, enableSearch: this.enableSearch, mapView: this.mapView, ref: (el) => this._mapTools = el, searchConfiguration: this._searchConfiguration })));
|
77
|
+
return (h(Host, null, h("map-picker", { mapInfos: this.mapInfos }), h("div", { class: "map-height", ref: (el) => (this._mapDiv = el) }), h("map-tools", { basemapConfig: this.basemapConfig, class: "box-shadow", enableBasemap: this.enableBasemap, enableFloorFilter: this.enableFloorFilter, enableFullscreen: this.enableFullscreen, enableLegend: this.enableLegend, enableSearch: this.enableSearch, mapView: this.mapView, ref: (el) => this._mapTools = el, searchConfiguration: this._searchConfiguration })));
|
76
78
|
}
|
77
79
|
//--------------------------------------------------------------------------
|
78
80
|
//
|
@@ -140,6 +142,7 @@ const MapCard = /*@__PURE__*/ proxyCustomElement(class MapCard extends HTMLEleme
|
|
140
142
|
static get style() { return mapCardCss; }
|
141
143
|
}, [0, "map-card", {
|
142
144
|
"enableLegend": [4, "enable-legend"],
|
145
|
+
"enableFloorFilter": [4, "enable-floor-filter"],
|
143
146
|
"enableFullscreen": [4, "enable-fullscreen"],
|
144
147
|
"enableSearch": [4, "enable-search"],
|
145
148
|
"enableBasemap": [4, "enable-basemap"],
|
@@ -153,7 +156,7 @@ function defineCustomElement() {
|
|
153
156
|
if (typeof customElements === "undefined") {
|
154
157
|
return;
|
155
158
|
}
|
156
|
-
const components = ["map-card", "basemap-gallery", "calcite-action", "calcite-action-bar", "calcite-action-group", "calcite-action-menu", "calcite-button", "calcite-filter", "calcite-handle", "calcite-icon", "calcite-input", "calcite-list", "calcite-list-item", "calcite-loader", "calcite-popover", "calcite-progress", "calcite-scrim", "calcite-stack", "calcite-tooltip", "map-fullscreen", "map-legend", "map-picker", "map-search", "map-tools"];
|
159
|
+
const components = ["map-card", "basemap-gallery", "calcite-action", "calcite-action-bar", "calcite-action-group", "calcite-action-menu", "calcite-button", "calcite-filter", "calcite-handle", "calcite-icon", "calcite-input", "calcite-list", "calcite-list-item", "calcite-loader", "calcite-popover", "calcite-progress", "calcite-scrim", "calcite-stack", "calcite-tooltip", "floor-filter", "map-fullscreen", "map-legend", "map-picker", "map-search", "map-tools"];
|
157
160
|
components.forEach(tagName => { switch (tagName) {
|
158
161
|
case "map-card":
|
159
162
|
if (!customElements.get(tagName)) {
|
@@ -162,90 +165,95 @@ function defineCustomElement() {
|
|
162
165
|
break;
|
163
166
|
case "basemap-gallery":
|
164
167
|
if (!customElements.get(tagName)) {
|
165
|
-
defineCustomElement$
|
168
|
+
defineCustomElement$o();
|
166
169
|
}
|
167
170
|
break;
|
168
171
|
case "calcite-action":
|
169
172
|
if (!customElements.get(tagName)) {
|
170
|
-
defineCustomElement$
|
173
|
+
defineCustomElement$n();
|
171
174
|
}
|
172
175
|
break;
|
173
176
|
case "calcite-action-bar":
|
174
177
|
if (!customElements.get(tagName)) {
|
175
|
-
defineCustomElement$
|
178
|
+
defineCustomElement$m();
|
176
179
|
}
|
177
180
|
break;
|
178
181
|
case "calcite-action-group":
|
179
182
|
if (!customElements.get(tagName)) {
|
180
|
-
defineCustomElement$
|
183
|
+
defineCustomElement$l();
|
181
184
|
}
|
182
185
|
break;
|
183
186
|
case "calcite-action-menu":
|
184
187
|
if (!customElements.get(tagName)) {
|
185
|
-
defineCustomElement$
|
188
|
+
defineCustomElement$k();
|
186
189
|
}
|
187
190
|
break;
|
188
191
|
case "calcite-button":
|
189
192
|
if (!customElements.get(tagName)) {
|
190
|
-
defineCustomElement$
|
193
|
+
defineCustomElement$j();
|
191
194
|
}
|
192
195
|
break;
|
193
196
|
case "calcite-filter":
|
194
197
|
if (!customElements.get(tagName)) {
|
195
|
-
defineCustomElement$
|
198
|
+
defineCustomElement$i();
|
196
199
|
}
|
197
200
|
break;
|
198
201
|
case "calcite-handle":
|
199
202
|
if (!customElements.get(tagName)) {
|
200
|
-
defineCustomElement$
|
203
|
+
defineCustomElement$h();
|
201
204
|
}
|
202
205
|
break;
|
203
206
|
case "calcite-icon":
|
204
207
|
if (!customElements.get(tagName)) {
|
205
|
-
defineCustomElement$
|
208
|
+
defineCustomElement$g();
|
206
209
|
}
|
207
210
|
break;
|
208
211
|
case "calcite-input":
|
209
212
|
if (!customElements.get(tagName)) {
|
210
|
-
defineCustomElement$
|
213
|
+
defineCustomElement$f();
|
211
214
|
}
|
212
215
|
break;
|
213
216
|
case "calcite-list":
|
214
217
|
if (!customElements.get(tagName)) {
|
215
|
-
defineCustomElement$
|
218
|
+
defineCustomElement$e();
|
216
219
|
}
|
217
220
|
break;
|
218
221
|
case "calcite-list-item":
|
219
222
|
if (!customElements.get(tagName)) {
|
220
|
-
defineCustomElement$
|
223
|
+
defineCustomElement$d();
|
221
224
|
}
|
222
225
|
break;
|
223
226
|
case "calcite-loader":
|
224
227
|
if (!customElements.get(tagName)) {
|
225
|
-
defineCustomElement$
|
228
|
+
defineCustomElement$c();
|
226
229
|
}
|
227
230
|
break;
|
228
231
|
case "calcite-popover":
|
229
232
|
if (!customElements.get(tagName)) {
|
230
|
-
defineCustomElement$
|
233
|
+
defineCustomElement$b();
|
231
234
|
}
|
232
235
|
break;
|
233
236
|
case "calcite-progress":
|
234
237
|
if (!customElements.get(tagName)) {
|
235
|
-
defineCustomElement$
|
238
|
+
defineCustomElement$a();
|
236
239
|
}
|
237
240
|
break;
|
238
241
|
case "calcite-scrim":
|
239
242
|
if (!customElements.get(tagName)) {
|
240
|
-
defineCustomElement$
|
243
|
+
defineCustomElement$9();
|
241
244
|
}
|
242
245
|
break;
|
243
246
|
case "calcite-stack":
|
244
247
|
if (!customElements.get(tagName)) {
|
245
|
-
defineCustomElement$
|
248
|
+
defineCustomElement$8();
|
246
249
|
}
|
247
250
|
break;
|
248
251
|
case "calcite-tooltip":
|
252
|
+
if (!customElements.get(tagName)) {
|
253
|
+
defineCustomElement$7();
|
254
|
+
}
|
255
|
+
break;
|
256
|
+
case "floor-filter":
|
249
257
|
if (!customElements.get(tagName)) {
|
250
258
|
defineCustomElement$6();
|
251
259
|
}
|
@@ -23,7 +23,7 @@ import { d as defineCustomElement$3 } from './scrim.js';
|
|
23
23
|
import { d as defineCustomElement$2 } from './stack.js';
|
24
24
|
import { d as defineCustomElement$1 } from './tooltip.js';
|
25
25
|
|
26
|
-
const mapPickerCss = ":host{display:block}.width-full{width:100%}.height-full{height:100%}.display-flex{display:flex}.border-bottom-1{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}.action-bar-size{height:51px;width:100%}.map-list{position:absolute;display:flex;flex-direction:column;overflow:hidden;animation:calcite-scrim-fade-in var(--calcite-internal-animation-timing-medium) ease-in-out;background-color:var(--calcite-ui-background);z-index:1000;width:100%;height:-moz-fit-content;height:fit-content}.display-none{display:none}.
|
26
|
+
const mapPickerCss = ":host{display:block}.width-full{width:100%}.height-full{height:100%}.display-flex{display:flex}.border-bottom-1{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}.action-bar-size{height:51px;width:100%}.map-list{position:absolute;display:flex;flex-direction:column;overflow:hidden;animation:calcite-scrim-fade-in var(--calcite-internal-animation-timing-medium) ease-in-out;background-color:var(--calcite-ui-background);z-index:1000;width:100%;height:-moz-fit-content;height:fit-content}.display-none{display:none}.align-center{align-items:center}";
|
27
27
|
|
28
28
|
const MapPicker = /*@__PURE__*/ proxyCustomElement(class MapPicker extends HTMLElement {
|
29
29
|
constructor() {
|
@@ -125,7 +125,7 @@ const MapPicker = /*@__PURE__*/ proxyCustomElement(class MapPicker extends HTMLE
|
|
125
125
|
* @protected
|
126
126
|
*/
|
127
127
|
_getToolbar() {
|
128
|
-
return (h("div", { class: "display-flex" }, h("calcite-action-bar", { class: "
|
128
|
+
return (h("div", { class: "display-flex" }, h("calcite-action-bar", { class: "border-bottom-1 action-bar-size", "expand-disabled": true, layout: "horizontal", slot: "header" }, this._getMapPicker())));
|
129
129
|
}
|
130
130
|
/**
|
131
131
|
* Get a pick list for all maps in mapInfos
|
@@ -5,11 +5,12 @@
|
|
5
5
|
*/
|
6
6
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
7
7
|
import { g as getLocaleComponentStrings } from './locale.js';
|
8
|
-
import { d as defineCustomElement$
|
9
|
-
import { d as defineCustomElement$
|
10
|
-
import { d as defineCustomElement$
|
11
|
-
import { d as defineCustomElement$
|
12
|
-
import { d as defineCustomElement$
|
8
|
+
import { d as defineCustomElement$9 } from './basemap-gallery2.js';
|
9
|
+
import { d as defineCustomElement$8 } from './action.js';
|
10
|
+
import { d as defineCustomElement$7 } from './icon.js';
|
11
|
+
import { d as defineCustomElement$6 } from './loader.js';
|
12
|
+
import { d as defineCustomElement$5 } from './tooltip.js';
|
13
|
+
import { d as defineCustomElement$4 } from './floor-filter2.js';
|
13
14
|
import { d as defineCustomElement$3 } from './map-fullscreen2.js';
|
14
15
|
import { d as defineCustomElement$2 } from './map-legend2.js';
|
15
16
|
import { d as defineCustomElement$1 } from './map-search2.js';
|
@@ -22,6 +23,7 @@ const MapTools = /*@__PURE__*/ proxyCustomElement(class MapTools extends HTMLEle
|
|
22
23
|
this.__registerHost();
|
23
24
|
this.__attachShadow();
|
24
25
|
this.enableLegend = undefined;
|
26
|
+
this.enableFloorFilter = undefined;
|
25
27
|
this.enableFullscreen = undefined;
|
26
28
|
this.enableSearch = undefined;
|
27
29
|
this.enableBasemap = undefined;
|
@@ -32,6 +34,7 @@ const MapTools = /*@__PURE__*/ proxyCustomElement(class MapTools extends HTMLEle
|
|
32
34
|
this._translations = undefined;
|
33
35
|
this._showTools = true;
|
34
36
|
this._showBasemapWidget = false;
|
37
|
+
this._showFloorFilter = false;
|
35
38
|
this._showFullscreen = false;
|
36
39
|
this._showLegendWidget = false;
|
37
40
|
this._showSearchWidget = false;
|
@@ -58,6 +61,21 @@ const MapTools = /*@__PURE__*/ proxyCustomElement(class MapTools extends HTMLEle
|
|
58
61
|
/**
|
59
62
|
* When the _showBasemapWidget property is true display the basemap gallery
|
60
63
|
*/
|
64
|
+
async _showFloorFilterWatchHandler(v) {
|
65
|
+
const widget = this._floorFilterElement.floorFilterWidget;
|
66
|
+
if (v) {
|
67
|
+
this.mapView.ui.add(widget, {
|
68
|
+
position: "top-right",
|
69
|
+
index: 1
|
70
|
+
});
|
71
|
+
}
|
72
|
+
else {
|
73
|
+
this.mapView.ui.remove(widget);
|
74
|
+
}
|
75
|
+
}
|
76
|
+
/**
|
77
|
+
* When the _showFullscreen property is true the app will consume the full screen
|
78
|
+
*/
|
61
79
|
async _showFullscreenWatchHandler(v) {
|
62
80
|
const fs = this._fullscreenElement.fullscreenWidget;
|
63
81
|
if (v) {
|
@@ -125,6 +143,7 @@ const MapTools = /*@__PURE__*/ proxyCustomElement(class MapTools extends HTMLEle
|
|
125
143
|
const searchClass = this._showSearchWidget ? "" : "display-none";
|
126
144
|
const basemapClass = this._showBasemapWidget ? "" : "display-none";
|
127
145
|
const legendClass = this._showLegendWidget ? "" : "display-none";
|
146
|
+
const floorFilterClass = this._showFloorFilter ? "" : "display-none";
|
128
147
|
const fullscreenClass = this._showFullscreen ? "" : "display-none";
|
129
148
|
const fullscreenIcon = this._showFullscreen ? "full-screen-exit" : "full-screen";
|
130
149
|
const fullscreenTip = this._showFullscreen ? this._translations.exitFullscreen : this._translations.enterFullscreen;
|
@@ -138,7 +157,9 @@ const MapTools = /*@__PURE__*/ proxyCustomElement(class MapTools extends HTMLEle
|
|
138
157
|
this._getActionGroup(fullscreenIcon, false, fullscreenTip, () => this._expand()) :
|
139
158
|
undefined, this.enableBasemap ?
|
140
159
|
this._getActionGroup("basemap", false, this._translations.basemap, () => this._toggleBasemapPicker()) :
|
141
|
-
undefined
|
160
|
+
undefined, this.enableFloorFilter ?
|
161
|
+
this._getActionGroup("urban-model", false, this._translations.floorFilter, () => this._toggleFloorFilter()) :
|
162
|
+
undefined)), h("basemap-gallery", { basemapConfig: this.basemapConfig, class: basemapClass, mapView: this.mapView, ref: (el) => { this._basemapElement = el; } }), h("map-search", { class: searchClass, mapView: this.mapView, ref: (el) => { this._searchElement = el; }, searchConfiguration: this.searchConfiguration }), h("map-legend", { class: legendClass, mapView: this.mapView, ref: (el) => { this._legendElement = el; } }), h("map-fullscreen", { class: fullscreenClass, mapView: this.mapView, ref: (el) => { this._fullscreenElement = el; } }), h("floor-filter", { class: floorFilterClass, mapView: this.mapView, ref: (el) => { this._floorFilterElement = el; } })));
|
142
163
|
}
|
143
164
|
//--------------------------------------------------------------------------
|
144
165
|
//
|
@@ -181,6 +202,17 @@ const MapTools = /*@__PURE__*/ proxyCustomElement(class MapTools extends HTMLEle
|
|
181
202
|
this._showBasemapWidget = !this._showBasemapWidget;
|
182
203
|
this._showTools = false;
|
183
204
|
}
|
205
|
+
/**
|
206
|
+
* Show/Hide the floor filter
|
207
|
+
*
|
208
|
+
* @returns void
|
209
|
+
*
|
210
|
+
* @protected
|
211
|
+
*/
|
212
|
+
_toggleFloorFilter() {
|
213
|
+
this._showFloorFilter = !this._showFloorFilter;
|
214
|
+
this._showTools = false;
|
215
|
+
}
|
184
216
|
/**
|
185
217
|
* Enter/Exit fullscreen mode
|
186
218
|
*
|
@@ -203,6 +235,7 @@ const MapTools = /*@__PURE__*/ proxyCustomElement(class MapTools extends HTMLEle
|
|
203
235
|
this._showBasemapWidget = false;
|
204
236
|
this._showSearchWidget = false;
|
205
237
|
this._showLegendWidget = false;
|
238
|
+
this._showFloorFilter = false;
|
206
239
|
}
|
207
240
|
this._showTools = !this._showTools;
|
208
241
|
}
|
@@ -219,6 +252,7 @@ const MapTools = /*@__PURE__*/ proxyCustomElement(class MapTools extends HTMLEle
|
|
219
252
|
get el() { return this; }
|
220
253
|
static get watchers() { return {
|
221
254
|
"_showBasemapWidget": ["_showBasemapWidgetWatchHandler"],
|
255
|
+
"_showFloorFilter": ["_showFloorFilterWatchHandler"],
|
222
256
|
"_showFullscreen": ["_showFullscreenWatchHandler"],
|
223
257
|
"_showLegendWidget": ["_showLegendWidgetWatchHandler"],
|
224
258
|
"_showSearchWidget": ["_showSearchWidgetWatchHandler"]
|
@@ -226,6 +260,7 @@ const MapTools = /*@__PURE__*/ proxyCustomElement(class MapTools extends HTMLEle
|
|
226
260
|
static get style() { return mapToolsCss; }
|
227
261
|
}, [1, "map-tools", {
|
228
262
|
"enableLegend": [4, "enable-legend"],
|
263
|
+
"enableFloorFilter": [4, "enable-floor-filter"],
|
229
264
|
"enableFullscreen": [4, "enable-fullscreen"],
|
230
265
|
"enableSearch": [4, "enable-search"],
|
231
266
|
"enableBasemap": [4, "enable-basemap"],
|
@@ -236,6 +271,7 @@ const MapTools = /*@__PURE__*/ proxyCustomElement(class MapTools extends HTMLEle
|
|
236
271
|
"_translations": [32],
|
237
272
|
"_showTools": [32],
|
238
273
|
"_showBasemapWidget": [32],
|
274
|
+
"_showFloorFilter": [32],
|
239
275
|
"_showFullscreen": [32],
|
240
276
|
"_showLegendWidget": [32],
|
241
277
|
"_showSearchWidget": [32]
|
@@ -244,7 +280,7 @@ function defineCustomElement() {
|
|
244
280
|
if (typeof customElements === "undefined") {
|
245
281
|
return;
|
246
282
|
}
|
247
|
-
const components = ["map-tools", "basemap-gallery", "calcite-action", "calcite-icon", "calcite-loader", "calcite-tooltip", "map-fullscreen", "map-legend", "map-search"];
|
283
|
+
const components = ["map-tools", "basemap-gallery", "calcite-action", "calcite-icon", "calcite-loader", "calcite-tooltip", "floor-filter", "map-fullscreen", "map-legend", "map-search"];
|
248
284
|
components.forEach(tagName => { switch (tagName) {
|
249
285
|
case "map-tools":
|
250
286
|
if (!customElements.get(tagName)) {
|
@@ -253,25 +289,30 @@ function defineCustomElement() {
|
|
253
289
|
break;
|
254
290
|
case "basemap-gallery":
|
255
291
|
if (!customElements.get(tagName)) {
|
256
|
-
defineCustomElement$
|
292
|
+
defineCustomElement$9();
|
257
293
|
}
|
258
294
|
break;
|
259
295
|
case "calcite-action":
|
260
296
|
if (!customElements.get(tagName)) {
|
261
|
-
defineCustomElement$
|
297
|
+
defineCustomElement$8();
|
262
298
|
}
|
263
299
|
break;
|
264
300
|
case "calcite-icon":
|
265
301
|
if (!customElements.get(tagName)) {
|
266
|
-
defineCustomElement$
|
302
|
+
defineCustomElement$7();
|
267
303
|
}
|
268
304
|
break;
|
269
305
|
case "calcite-loader":
|
270
306
|
if (!customElements.get(tagName)) {
|
271
|
-
defineCustomElement$
|
307
|
+
defineCustomElement$6();
|
272
308
|
}
|
273
309
|
break;
|
274
310
|
case "calcite-tooltip":
|
311
|
+
if (!customElements.get(tagName)) {
|
312
|
+
defineCustomElement$5();
|
313
|
+
}
|
314
|
+
break;
|
315
|
+
case "floor-filter":
|
275
316
|
if (!customElements.get(tagName)) {
|
276
317
|
defineCustomElement$4();
|
277
318
|
}
|
@@ -43,16 +43,7 @@ async function getMapLayerHash(mapView, onlyShowUpdatableLayers) {
|
|
43
43
|
return prev;
|
44
44
|
}, {});
|
45
45
|
});
|
46
|
-
return onlyShowUpdatableLayers
|
47
|
-
const layer = await getLayerOrTable(mapView, cur);
|
48
|
-
await layer.when(() => {
|
49
|
-
prev[cur] = {
|
50
|
-
name: layerHash[cur].name,
|
51
|
-
supportsUpdate: layer.editingEnabled && layer.capabilities.operations.supportsUpdate
|
52
|
-
};
|
53
|
-
});
|
54
|
-
return prev;
|
55
|
-
}, {}) : layerHash;
|
46
|
+
return _getFinalHash(onlyShowUpdatableLayers, layerHash, mapView);
|
56
47
|
}
|
57
48
|
/**
|
58
49
|
* Gets the table names from the current map
|
@@ -74,15 +65,37 @@ async function getMapTableHash(mapView, onlyShowUpdatableTables) {
|
|
74
65
|
return prev;
|
75
66
|
}, {});
|
76
67
|
});
|
77
|
-
return onlyShowUpdatableTables
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
68
|
+
return _getFinalHash(onlyShowUpdatableTables, tableHash, mapView);
|
69
|
+
}
|
70
|
+
/**
|
71
|
+
* Get the final hash
|
72
|
+
*
|
73
|
+
* @param onlyShowUpdatable boolean when true only layers that support editing and the update capability will be returned
|
74
|
+
* @param hash IMapItemHash key: layer id, values: name, supportsUpdate
|
75
|
+
* @param mapView the map view to fetch the layer from
|
76
|
+
*
|
77
|
+
* @returns Promise resolving with IMapItemHash
|
78
|
+
*
|
79
|
+
*/
|
80
|
+
async function _getFinalHash(onlyShowUpdatable, hash, mapView) {
|
81
|
+
if (onlyShowUpdatable) {
|
82
|
+
const editableHash = {};
|
83
|
+
const keys = Object.keys(hash);
|
84
|
+
for (let i = 0; i < keys.length; i++) {
|
85
|
+
const id = keys[i];
|
86
|
+
const layer = await getLayerOrTable(mapView, id);
|
87
|
+
await layer.load();
|
88
|
+
await layer.when();
|
89
|
+
editableHash[id] = {
|
90
|
+
name: hash[id].name,
|
91
|
+
supportsUpdate: layer.editingEnabled && layer.capabilities.operations.supportsUpdate
|
92
|
+
};
|
93
|
+
}
|
94
|
+
return editableHash;
|
95
|
+
}
|
96
|
+
else {
|
97
|
+
return hash;
|
98
|
+
}
|
86
99
|
}
|
87
100
|
/**
|
88
101
|
* Get a layer view by id
|