@esri/solutions-components 0.6.33 → 0.6.34
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/card-manager_3.cjs.entry.js +15 -9
- package/dist/cjs/crowdsource-manager.cjs.entry.js +7 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +8 -4
- package/dist/collection/components/layer-table/layer-table.js +25 -5
- package/dist/collection/components/map-card/map-card.js +24 -4
- package/dist/collection/demos/crowdsource-manager.html +5 -4
- package/dist/components/crowdsource-manager.js +7 -3
- package/dist/components/layer-table2.js +9 -5
- package/dist/components/map-card2.js +8 -4
- package/dist/esm/card-manager_3.entry.js +15 -9
- package/dist/esm/crowdsource-manager.entry.js +7 -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/solutions-components.js +1 -1
- package/dist/solutions-components/demos/crowdsource-manager.html +5 -4
- package/dist/solutions-components/p-506db776.entry.js +6 -0
- package/dist/solutions-components/p-80243d29.entry.js +6 -0
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- 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.d.ts +16 -0
- package/package.json +1 -1
- package/dist/solutions-components/p-65ade5af.entry.js +0 -6
- package/dist/solutions-components/p-a5342c42.entry.js +0 -6
@@ -132,6 +132,7 @@ const LayerTable = class {
|
|
132
132
|
this.enableAutoRefresh = undefined;
|
133
133
|
this.enableCSV = undefined;
|
134
134
|
this.enableInlineEdit = undefined;
|
135
|
+
this.enableZoom = undefined;
|
135
136
|
this.mapInfo = undefined;
|
136
137
|
this.mapView = undefined;
|
137
138
|
this.onlyShowUpdatableLayers = undefined;
|
@@ -378,13 +379,15 @@ const LayerTable = class {
|
|
378
379
|
_initToolInfos() {
|
379
380
|
var _a;
|
380
381
|
const featuresSelected = this._selectedIndexes.length > 0;
|
381
|
-
this.
|
382
|
+
const featuresEmpty = this._allIds.length === 0;
|
383
|
+
this._toolInfos = [this.enableZoom ? {
|
382
384
|
icon: "zoom-to-object",
|
383
385
|
label: this._translations.zoom,
|
384
386
|
func: () => this._zoom(),
|
385
387
|
disabled: !featuresSelected,
|
386
388
|
isOverflow: false
|
387
|
-
}
|
389
|
+
} : undefined,
|
390
|
+
((_a = this.mapInfo) === null || _a === void 0 ? void 0 : _a.filters) ? {
|
388
391
|
icon: "filter",
|
389
392
|
label: this._translations.filters,
|
390
393
|
func: () => this._filter(),
|
@@ -414,13 +417,13 @@ const LayerTable = class {
|
|
414
417
|
icon: "list-check-all",
|
415
418
|
func: () => this._selectAll(),
|
416
419
|
label: this._translations.selectAll,
|
417
|
-
disabled:
|
420
|
+
disabled: featuresEmpty,
|
418
421
|
isOverflow: false
|
419
422
|
}, {
|
420
423
|
icon: "compare",
|
421
424
|
func: () => this._switchSelected(),
|
422
425
|
label: this._translations.switchSelected,
|
423
|
-
disabled:
|
426
|
+
disabled: featuresEmpty,
|
424
427
|
isOverflow: false
|
425
428
|
}, {
|
426
429
|
icon: "refresh",
|
@@ -433,7 +436,7 @@ const LayerTable = class {
|
|
433
436
|
icon: "export",
|
434
437
|
func: () => void this._exportToCSV(),
|
435
438
|
label: this._translations.exportCSV,
|
436
|
-
disabled:
|
439
|
+
disabled: featuresEmpty,
|
437
440
|
isOverflow: false
|
438
441
|
} : undefined];
|
439
442
|
this._defaultVisibleToolSizeInfos = undefined;
|
@@ -993,6 +996,7 @@ const MapCard = class {
|
|
993
996
|
* string: the id of map currently displayed
|
994
997
|
*/
|
995
998
|
this._loadedId = "";
|
999
|
+
this.enableHome = undefined;
|
996
1000
|
this.enableLegend = undefined;
|
997
1001
|
this.enableFloorFilter = undefined;
|
998
1002
|
this.enableFullscreen = undefined;
|
@@ -1079,10 +1083,12 @@ const MapCard = class {
|
|
1079
1083
|
this._searchConfiguration = this._webMapInfo.searchConfiguration;
|
1080
1084
|
this.beforeMapChanged.emit();
|
1081
1085
|
await this.mapView.when(() => {
|
1082
|
-
|
1083
|
-
|
1084
|
-
|
1085
|
-
|
1086
|
+
if (this.enableHome) {
|
1087
|
+
const home = new this.Home({
|
1088
|
+
view: this.mapView
|
1089
|
+
});
|
1090
|
+
this.mapView.ui.add(home, { position: "top-left", index: 3 });
|
1091
|
+
}
|
1086
1092
|
this.mapView.ui.add(this._mapTools, { position: "top-right", index: 0 });
|
1087
1093
|
this.mapChanged.emit({
|
1088
1094
|
id: id,
|
@@ -23,7 +23,7 @@ const CrowdsourceManager = class {
|
|
23
23
|
*/
|
24
24
|
this._shouldSetMapView = false;
|
25
25
|
this.classicGrid = false;
|
26
|
-
this.enableAutoRefresh =
|
26
|
+
this.enableAutoRefresh = false;
|
27
27
|
this.enableCSV = true;
|
28
28
|
this.enableFloorFilter = true;
|
29
29
|
this.enableFullscreen = true;
|
@@ -244,7 +244,7 @@ const CrowdsourceManager = class {
|
|
244
244
|
const mapDisplayClass = this.classicGrid && layoutMode === interfaces.ELayoutMode.GRID ? "display-flex height-full width-1-2" :
|
245
245
|
layoutMode === interfaces.ELayoutMode.GRID && !hideMap ? "" : "display-none";
|
246
246
|
const mapContainerClass = this.classicGrid && layoutMode === interfaces.ELayoutMode.GRID ? "width-full" : "adjusted-height-50";
|
247
|
-
return (index.h("div", { class: `${mapContainerClass} overflow-hidden ${mapDisplayClass}` }, index.h("map-card", { basemapConfig: this.basemapConfig, class: "width-full", enableBasemap: this.enableBasemap, enableFloorFilter: this.enableFloorFilter, enableFullscreen: this.enableFullscreen, enableLegend: this.enableLegend, enableSearch: this.enableSearch, hidden: this._expandPopup, mapInfos: (_a = this.mapInfos) === null || _a === void 0 ? void 0 : _a.filter(mapInfo => mapInfo.visible !== false) })));
|
247
|
+
return (index.h("div", { class: `${mapContainerClass} overflow-hidden ${mapDisplayClass}` }, index.h("map-card", { basemapConfig: this.basemapConfig, class: "width-full", enableBasemap: this.enableBasemap, enableFloorFilter: this.enableFloorFilter, enableFullscreen: this.enableFullscreen, enableHome: this.enableHome, enableLegend: this.enableLegend, enableSearch: this.enableSearch, hidden: this._expandPopup, mapInfos: (_a = this.mapInfos) === null || _a === void 0 ? void 0 : _a.filter(mapInfo => mapInfo.visible !== false) })));
|
248
248
|
}
|
249
249
|
/**
|
250
250
|
* Get the expand node for the popup information
|
@@ -300,7 +300,7 @@ const CrowdsourceManager = class {
|
|
300
300
|
const toggleSlot = this.classicGrid && layoutMode !== interfaces.ELayoutMode.VERTICAL ? "footer" :
|
301
301
|
this.classicGrid && layoutMode === interfaces.ELayoutMode.VERTICAL ? "panel-end" :
|
302
302
|
layoutMode === interfaces.ELayoutMode.HORIZONTAL ? "header" : "panel-start";
|
303
|
-
return (index.h("calcite-shell", { class: tableSizeClass + " border-bottom" }, index.h("calcite-action-bar", { class: "border-sides", expandDisabled: true, layout: toggleLayout, slot: toggleSlot }, index.h("calcite-action", { class: "toggle-node", icon: icon, id: id, onClick: () => this._toggleLayout(), text: "" }), index.h("calcite-tooltip", { label: tooltip, placement: "bottom", "reference-element": id }, index.h("span", null, tooltip))), index.h("div", { class: "width-full height-full position-relative" }, index.h("layer-table", { enableAutoRefresh: this.enableAutoRefresh, enableCSV: this.enableCSV, enableInlineEdit: this.enableInlineEdit, mapInfo: this._mapInfo, mapView: this === null || this === void 0 ? void 0 : this._mapView, onlyShowUpdatableLayers: this.onlyShowUpdatableLayers, showNewestFirst: this.showNewestFirst, zoomAndScrollToSelected: this.zoomAndScrollToSelected }))));
|
303
|
+
return (index.h("calcite-shell", { class: tableSizeClass + " border-bottom" }, index.h("calcite-action-bar", { class: "border-sides", expandDisabled: true, layout: toggleLayout, slot: toggleSlot }, index.h("calcite-action", { class: "toggle-node", icon: icon, id: id, onClick: () => this._toggleLayout(), text: "" }), index.h("calcite-tooltip", { label: tooltip, placement: "bottom", "reference-element": id }, index.h("span", null, tooltip))), index.h("div", { class: "width-full height-full position-relative" }, index.h("layer-table", { enableAutoRefresh: this.enableAutoRefresh, enableCSV: this.enableCSV, enableInlineEdit: this.enableInlineEdit, enableZoom: this.enableZoom, mapInfo: this._mapInfo, mapView: this === null || this === void 0 ? void 0 : this._mapView, onlyShowUpdatableLayers: this.onlyShowUpdatableLayers, showNewestFirst: this.showNewestFirst, zoomAndScrollToSelected: this.zoomAndScrollToSelected }))));
|
304
304
|
}
|
305
305
|
/**
|
306
306
|
* Open/Close the appropriate panel.
|
@@ -334,8 +334,12 @@ const CrowdsourceManager = class {
|
|
334
334
|
* @protected
|
335
335
|
*/
|
336
336
|
_setMapView() {
|
337
|
+
var _a, _b;
|
337
338
|
this._mapInfo = this._getMapInfo(this._mapChange.id);
|
338
339
|
this._mapView = this._mapChange.mapView;
|
340
|
+
if (!this.enableZoom && ((_b = (_a = this._mapView) === null || _a === void 0 ? void 0 : _a.ui) === null || _b === void 0 ? void 0 : _b.components.indexOf("zoom")) > -1) {
|
341
|
+
this._mapView.ui.components = this._mapView.ui.components.filter(c => c !== "zoom");
|
342
|
+
}
|
339
343
|
this._mapView.popupEnabled = false;
|
340
344
|
}
|
341
345
|
/**
|