@esri/solutions-components 0.6.17 → 0.6.18
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/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-shell-panel_14.cjs.entry.js +4 -3
- package/dist/cjs/card-manager_3.cjs.entry.js +8 -5
- 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/edit-card_2.cjs.entry.js +4 -3
- package/dist/cjs/loader.cjs.js +1 -1
- 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 +15 -0
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +47 -6
- package/dist/collection/components/edit-card/edit-card.css +0 -12
- 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/{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/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-shell-panel_14.entry.js +2 -1
- package/dist/esm/card-manager_3.entry.js +8 -5
- 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/edit-card_2.entry.js +4 -3
- package/dist/esm/loader.js +1 -1
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- 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-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-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-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/{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-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-41bbccbc.entry.js +0 -6
- package/dist/solutions-components/p-4f2fce86.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-dda517b9.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
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
[npm-img]: https://img.shields.io/npm/v/@esri/solutions-components.svg?style=round-square&color=blue
|
|
6
6
|
[npm-url]: https://www.npmjs.com/package/@esri/solutions-components
|
|
7
|
-
[travis-img]: https://img.shields.io/travis/Esri/solutions-components/develop.svg
|
|
7
|
+
[travis-img]: https://img.shields.io/travis/com/Esri/solutions-components/develop.svg
|
|
8
8
|
[travis-url]: https://travis-ci.org/Esri/solutions-components
|
|
9
9
|
[license-img]: https://img.shields.io/badge/license-Apache%202.0-blue.svg
|
|
10
10
|
[license-url]: #license
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"paramDescription": "Expose the Spatial Reference parameter and allow users to change the layers spatial reference when deploying the solution.",
|
|
3
3
|
"specifyParam": "Spatial Reference parameter",
|
|
4
|
-
"spatialReferencePlaceholder": "Search for spatial reference using name or WKID",
|
|
5
4
|
"spatialReferenceInfo": "Select the default spatial reference of the feature layers deployed with the solution.",
|
|
6
5
|
"featureServicesHeading": "Apply spatial reference to the following layers"
|
|
7
6
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"paramDescription": "Expose the Spatial Reference parameter and allow users to change the layers spatial reference when deploying the solution.",
|
|
3
3
|
"specifyParam": "Spatial Reference parameter",
|
|
4
|
-
"spatialReferencePlaceholder": "Search for spatial reference using name or WKID",
|
|
5
4
|
"spatialReferenceInfo": "Select the default spatial reference of the feature layers deployed with the solution.",
|
|
6
5
|
"featureServicesHeading": "Apply spatial reference to the following layers"
|
|
7
6
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"paramDescription": "Exposez le paramètre Spatial Reference et autorisez les utilisateurs à modifier la référence spatiale des couches lors du déploiement de la solution.",
|
|
3
|
+
"specifyParam": "Paramètre de référence spatiale",
|
|
4
|
+
"spatialReferencePlaceholder": "Rechercher une référence spatiale à l'aide du nom ou du WKID",
|
|
5
|
+
"spatialReferenceInfo": "Sélectionnez la référence spatiale par défaut."
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"paramDescription": "חשוף את הפרמטר Spatial Reference ואפשר למשתמשים לשנות את ההתייחסות המרחבית לשכבות בעת פריסת הפתרון.",
|
|
3
|
+
"specifyParam": "פרמטר התייחסות מרחבית",
|
|
4
|
+
"spatialReferencePlaceholder": "חפש הפניה מרחבית באמצעות שם או WKID",
|
|
5
|
+
"spatialReferenceInfo": "בחר ברירת המחדל של הפניה מרחבית."
|
|
6
|
+
}
|
|
@@ -103,6 +103,93 @@ const BasemapGallery = class {
|
|
|
103
103
|
};
|
|
104
104
|
BasemapGallery.style = basemapGalleryCss;
|
|
105
105
|
|
|
106
|
+
const floorFilterCss = ":host{display:block}";
|
|
107
|
+
|
|
108
|
+
const FloorFilter = class {
|
|
109
|
+
constructor(hostRef) {
|
|
110
|
+
index.registerInstance(this, hostRef);
|
|
111
|
+
this.floorFilterWidget = undefined;
|
|
112
|
+
this.mapView = undefined;
|
|
113
|
+
}
|
|
114
|
+
//--------------------------------------------------------------------------
|
|
115
|
+
//
|
|
116
|
+
// Watch handlers
|
|
117
|
+
//
|
|
118
|
+
//--------------------------------------------------------------------------
|
|
119
|
+
async mapViewWatchHandler() {
|
|
120
|
+
await this.mapView.when(() => {
|
|
121
|
+
this._initFloorFilter(this.mapView);
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
//--------------------------------------------------------------------------
|
|
125
|
+
//
|
|
126
|
+
// Methods (public)
|
|
127
|
+
//
|
|
128
|
+
//--------------------------------------------------------------------------
|
|
129
|
+
//--------------------------------------------------------------------------
|
|
130
|
+
//
|
|
131
|
+
// Events (public)
|
|
132
|
+
//
|
|
133
|
+
//--------------------------------------------------------------------------
|
|
134
|
+
//--------------------------------------------------------------------------
|
|
135
|
+
//
|
|
136
|
+
// Functions (lifecycle)
|
|
137
|
+
//
|
|
138
|
+
//--------------------------------------------------------------------------
|
|
139
|
+
/**
|
|
140
|
+
* StencilJS: Called once just after the component is first connected to the DOM.
|
|
141
|
+
*/
|
|
142
|
+
async componentWillLoad() {
|
|
143
|
+
return this._initModules();
|
|
144
|
+
}
|
|
145
|
+
render() {
|
|
146
|
+
return (index.h(index.Host, null, index.h("div", { ref: (el) => { this._floorFilterElement = el; } })));
|
|
147
|
+
}
|
|
148
|
+
//--------------------------------------------------------------------------
|
|
149
|
+
//
|
|
150
|
+
// Functions (protected)
|
|
151
|
+
//
|
|
152
|
+
//--------------------------------------------------------------------------
|
|
153
|
+
/**
|
|
154
|
+
* Load esri javascript api modules
|
|
155
|
+
*
|
|
156
|
+
* @returns Promise resolving when function is done
|
|
157
|
+
*
|
|
158
|
+
* @protected
|
|
159
|
+
*/
|
|
160
|
+
async _initModules() {
|
|
161
|
+
const [FloorFilter] = await loadModules.loadModules([
|
|
162
|
+
"esri/widgets/FloorFilter"
|
|
163
|
+
]);
|
|
164
|
+
this.FloorFilter = FloorFilter;
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Initialize the floor filter or reset the current view if it already exists
|
|
168
|
+
*
|
|
169
|
+
* @returns void
|
|
170
|
+
*
|
|
171
|
+
* @protected
|
|
172
|
+
*/
|
|
173
|
+
_initFloorFilter(view) {
|
|
174
|
+
if (view && this.FloorFilter) {
|
|
175
|
+
if (!this.floorFilterWidget) {
|
|
176
|
+
this.floorFilterWidget = new this.FloorFilter({
|
|
177
|
+
container: this._floorFilterElement,
|
|
178
|
+
view
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
else {
|
|
182
|
+
this.floorFilterWidget.view = view;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
get el() { return index.getElement(this); }
|
|
187
|
+
static get watchers() { return {
|
|
188
|
+
"mapView": ["mapViewWatchHandler"]
|
|
189
|
+
}; }
|
|
190
|
+
};
|
|
191
|
+
FloorFilter.style = floorFilterCss;
|
|
192
|
+
|
|
106
193
|
const mapFullscreenCss = ":host{display:block}";
|
|
107
194
|
|
|
108
195
|
const MapFullscreen = class {
|
|
@@ -295,7 +382,7 @@ const MapLegend = class {
|
|
|
295
382
|
};
|
|
296
383
|
MapLegend.style = mapLegendCss;
|
|
297
384
|
|
|
298
|
-
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}.
|
|
385
|
+
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}";
|
|
299
386
|
|
|
300
387
|
const MapPicker = class {
|
|
301
388
|
constructor(hostRef) {
|
|
@@ -395,7 +482,7 @@ const MapPicker = class {
|
|
|
395
482
|
* @protected
|
|
396
483
|
*/
|
|
397
484
|
_getToolbar() {
|
|
398
|
-
return (index.h("div", { class: "display-flex" }, index.h("calcite-action-bar", { class: "
|
|
485
|
+
return (index.h("div", { class: "display-flex" }, index.h("calcite-action-bar", { class: "border-bottom-1 action-bar-size", "expand-disabled": true, layout: "horizontal", slot: "header" }, this._getMapPicker())));
|
|
399
486
|
}
|
|
400
487
|
/**
|
|
401
488
|
* Get a pick list for all maps in mapInfos
|
|
@@ -628,6 +715,7 @@ const MapTools = class {
|
|
|
628
715
|
constructor(hostRef) {
|
|
629
716
|
index.registerInstance(this, hostRef);
|
|
630
717
|
this.enableLegend = undefined;
|
|
718
|
+
this.enableFloorFilter = undefined;
|
|
631
719
|
this.enableFullscreen = undefined;
|
|
632
720
|
this.enableSearch = undefined;
|
|
633
721
|
this.enableBasemap = undefined;
|
|
@@ -638,6 +726,7 @@ const MapTools = class {
|
|
|
638
726
|
this._translations = undefined;
|
|
639
727
|
this._showTools = true;
|
|
640
728
|
this._showBasemapWidget = false;
|
|
729
|
+
this._showFloorFilter = false;
|
|
641
730
|
this._showFullscreen = false;
|
|
642
731
|
this._showLegendWidget = false;
|
|
643
732
|
this._showSearchWidget = false;
|
|
@@ -664,6 +753,21 @@ const MapTools = class {
|
|
|
664
753
|
/**
|
|
665
754
|
* When the _showBasemapWidget property is true display the basemap gallery
|
|
666
755
|
*/
|
|
756
|
+
async _showFloorFilterWatchHandler(v) {
|
|
757
|
+
const widget = this._floorFilterElement.floorFilterWidget;
|
|
758
|
+
if (v) {
|
|
759
|
+
this.mapView.ui.add(widget, {
|
|
760
|
+
position: "top-right",
|
|
761
|
+
index: 1
|
|
762
|
+
});
|
|
763
|
+
}
|
|
764
|
+
else {
|
|
765
|
+
this.mapView.ui.remove(widget);
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
/**
|
|
769
|
+
* When the _showFullscreen property is true the app will consume the full screen
|
|
770
|
+
*/
|
|
667
771
|
async _showFullscreenWatchHandler(v) {
|
|
668
772
|
const fs = this._fullscreenElement.fullscreenWidget;
|
|
669
773
|
if (v) {
|
|
@@ -731,6 +835,7 @@ const MapTools = class {
|
|
|
731
835
|
const searchClass = this._showSearchWidget ? "" : "display-none";
|
|
732
836
|
const basemapClass = this._showBasemapWidget ? "" : "display-none";
|
|
733
837
|
const legendClass = this._showLegendWidget ? "" : "display-none";
|
|
838
|
+
const floorFilterClass = this._showFloorFilter ? "" : "display-none";
|
|
734
839
|
const fullscreenClass = this._showFullscreen ? "" : "display-none";
|
|
735
840
|
const fullscreenIcon = this._showFullscreen ? "full-screen-exit" : "full-screen";
|
|
736
841
|
const fullscreenTip = this._showFullscreen ? this._translations.exitFullscreen : this._translations.enterFullscreen;
|
|
@@ -744,7 +849,9 @@ const MapTools = class {
|
|
|
744
849
|
this._getActionGroup(fullscreenIcon, false, fullscreenTip, () => this._expand()) :
|
|
745
850
|
undefined, this.enableBasemap ?
|
|
746
851
|
this._getActionGroup("basemap", false, this._translations.basemap, () => this._toggleBasemapPicker()) :
|
|
747
|
-
undefined
|
|
852
|
+
undefined, this.enableFloorFilter ?
|
|
853
|
+
this._getActionGroup("urban-model", false, this._translations.floorFilter, () => this._toggleFloorFilter()) :
|
|
854
|
+
undefined)), index.h("basemap-gallery", { basemapConfig: this.basemapConfig, class: basemapClass, mapView: this.mapView, ref: (el) => { this._basemapElement = el; } }), index.h("map-search", { class: searchClass, mapView: this.mapView, ref: (el) => { this._searchElement = el; }, searchConfiguration: this.searchConfiguration }), index.h("map-legend", { class: legendClass, mapView: this.mapView, ref: (el) => { this._legendElement = el; } }), index.h("map-fullscreen", { class: fullscreenClass, mapView: this.mapView, ref: (el) => { this._fullscreenElement = el; } }), index.h("floor-filter", { class: floorFilterClass, mapView: this.mapView, ref: (el) => { this._floorFilterElement = el; } })));
|
|
748
855
|
}
|
|
749
856
|
//--------------------------------------------------------------------------
|
|
750
857
|
//
|
|
@@ -787,6 +894,17 @@ const MapTools = class {
|
|
|
787
894
|
this._showBasemapWidget = !this._showBasemapWidget;
|
|
788
895
|
this._showTools = false;
|
|
789
896
|
}
|
|
897
|
+
/**
|
|
898
|
+
* Show/Hide the floor filter
|
|
899
|
+
*
|
|
900
|
+
* @returns void
|
|
901
|
+
*
|
|
902
|
+
* @protected
|
|
903
|
+
*/
|
|
904
|
+
_toggleFloorFilter() {
|
|
905
|
+
this._showFloorFilter = !this._showFloorFilter;
|
|
906
|
+
this._showTools = false;
|
|
907
|
+
}
|
|
790
908
|
/**
|
|
791
909
|
* Enter/Exit fullscreen mode
|
|
792
910
|
*
|
|
@@ -809,6 +927,7 @@ const MapTools = class {
|
|
|
809
927
|
this._showBasemapWidget = false;
|
|
810
928
|
this._showSearchWidget = false;
|
|
811
929
|
this._showLegendWidget = false;
|
|
930
|
+
this._showFloorFilter = false;
|
|
812
931
|
}
|
|
813
932
|
this._showTools = !this._showTools;
|
|
814
933
|
}
|
|
@@ -825,6 +944,7 @@ const MapTools = class {
|
|
|
825
944
|
get el() { return index.getElement(this); }
|
|
826
945
|
static get watchers() { return {
|
|
827
946
|
"_showBasemapWidget": ["_showBasemapWidgetWatchHandler"],
|
|
947
|
+
"_showFloorFilter": ["_showFloorFilterWatchHandler"],
|
|
828
948
|
"_showFullscreen": ["_showFullscreenWatchHandler"],
|
|
829
949
|
"_showLegendWidget": ["_showLegendWidgetWatchHandler"],
|
|
830
950
|
"_showSearchWidget": ["_showSearchWidgetWatchHandler"]
|
|
@@ -833,6 +953,7 @@ const MapTools = class {
|
|
|
833
953
|
MapTools.style = mapToolsCss;
|
|
834
954
|
|
|
835
955
|
exports.basemap_gallery = BasemapGallery;
|
|
956
|
+
exports.floor_filter = FloorFilter;
|
|
836
957
|
exports.map_fullscreen = MapFullscreen;
|
|
837
958
|
exports.map_legend = MapLegend;
|
|
838
959
|
exports.map_picker = MapPicker;
|