@esri/solutions-components 0.6.31 → 0.6.33
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/basemap-gallery_7.cjs.entry.js +14 -2
- package/dist/cjs/calcite-alert_3.cjs.entry.js +14 -5
- package/dist/cjs/calcite-combobox_6.cjs.entry.js +1 -1
- package/dist/cjs/card-manager_3.cjs.entry.js +47 -55
- package/dist/cjs/crowdsource-manager.cjs.entry.js +7 -7
- package/dist/cjs/{downloadUtils-84024878.js → downloadUtils-b37689dd.js} +22 -2
- package/dist/cjs/{index.es-eb7cf427.js → index.es-83e253dc.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-786a219b.js → mapViewUtils-303bf42d.js} +1 -1
- package/dist/cjs/public-notification.cjs.entry.js +2 -2
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.css +8 -0
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +6 -6
- package/dist/collection/components/edit-card/edit-card.js +23 -5
- package/dist/collection/components/floor-filter/floor-filter.js +2 -1
- package/dist/collection/components/layer-table/layer-table.css +4 -2
- package/dist/collection/components/layer-table/layer-table.js +40 -50
- package/dist/collection/components/map-card/map-card.css +5 -1
- package/dist/collection/components/map-card/map-card.js +20 -1
- package/dist/collection/components/map-tools/map-tools.js +15 -1
- package/dist/collection/utils/downloadUtils.js +20 -0
- package/dist/collection/utils/downloadUtils.ts +20 -0
- package/dist/collection/utils/queryUtils.js +1 -1
- package/dist/collection/utils/queryUtils.ts +1 -1
- package/dist/collection/utils/test/downloadUtils.spec.js +79 -5
- package/dist/collection/utils/test/downloadUtils.spec.tsx +84 -5
- package/dist/components/crowdsource-manager.js +7 -7
- package/dist/components/downloadUtils.js +20 -0
- package/dist/components/edit-card2.js +15 -6
- package/dist/components/floor-filter2.js +2 -1
- package/dist/components/layer-table2.js +41 -51
- package/dist/components/map-card2.js +5 -2
- package/dist/components/map-tools2.js +14 -1
- package/dist/components/queryUtils.js +1 -1
- package/dist/esm/basemap-gallery_7.entry.js +14 -2
- package/dist/esm/calcite-alert_3.entry.js +14 -5
- package/dist/esm/calcite-combobox_6.entry.js +1 -1
- package/dist/esm/card-manager_3.entry.js +47 -55
- package/dist/esm/crowdsource-manager.entry.js +7 -7
- package/dist/esm/{downloadUtils-fa2b3718.js → downloadUtils-ddd7eeb7.js} +22 -2
- package/dist/esm/{index.es-cc671fd2.js → index.es-a53707d1.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-8bfabd80.js → mapViewUtils-43c930f1.js} +1 -1
- package/dist/esm/public-notification.entry.js +2 -2
- package/dist/esm/solutions-components.js +1 -1
- package/dist/solutions-components/{p-e94c7cf2.js → p-05ba41f9.js} +1 -1
- package/dist/solutions-components/{p-ce3b40ca.entry.js → p-4792005c.entry.js} +1 -1
- package/dist/solutions-components/{p-86893d46.entry.js → p-50a3a887.entry.js} +1 -1
- package/dist/solutions-components/p-65ade5af.entry.js +6 -0
- package/dist/solutions-components/p-7b61f856.entry.js +6 -0
- package/dist/solutions-components/{p-190c83b9.entry.js → p-978a26b3.entry.js} +1 -1
- package/dist/solutions-components/p-a5342c42.entry.js +6 -0
- package/dist/solutions-components/{p-37a58e04.js → p-b745143d.js} +3 -3
- package/dist/solutions-components/{p-33fa9891.entry.js → p-e05cf92d.entry.js} +2 -2
- package/dist/solutions-components/{p-53bc5fc1.js → p-f2194390.js} +1 -1
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/downloadUtils.ts +20 -0
- package/dist/solutions-components/utils/queryUtils.ts +1 -1
- package/dist/solutions-components/utils/test/downloadUtils.spec.tsx +84 -5
- package/dist/types/components/edit-card/edit-card.d.ts +2 -1
- package/dist/types/components/map-card/map-card.d.ts +4 -0
- package/dist/types/components/map-tools/map-tools.d.ts +8 -0
- package/dist/types/components.d.ts +8 -0
- package/package.json +1 -1
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/solutions-components/p-3c702004.entry.js +0 -6
- package/dist/solutions-components/p-d44ad6c4.entry.js +0 -6
- package/dist/solutions-components/p-f2dcb05a.entry.js +0 -6
@@ -181,7 +181,8 @@ const FloorFilter = class {
|
|
181
181
|
* @protected
|
182
182
|
*/
|
183
183
|
_initFloorFilter(view) {
|
184
|
-
|
184
|
+
var _a;
|
185
|
+
if (view && this.enabled && this.FloorFilter && ((_a = view === null || view === void 0 ? void 0 : view.map) === null || _a === void 0 ? void 0 : _a.floorInfo)) {
|
185
186
|
if (!this.floorFilterWidget) {
|
186
187
|
this.floorFilterWidget = new this.FloorFilter({
|
187
188
|
container: this._floorFilterElement,
|
@@ -733,6 +734,7 @@ const MapTools = class {
|
|
733
734
|
this.layout = "vertical";
|
734
735
|
this.mapView = undefined;
|
735
736
|
this.searchConfiguration = undefined;
|
737
|
+
this._hasFloorInfo = false;
|
736
738
|
this._translations = undefined;
|
737
739
|
this._showTools = true;
|
738
740
|
this._showBasemapWidget = false;
|
@@ -746,6 +748,15 @@ const MapTools = class {
|
|
746
748
|
// Watch handlers
|
747
749
|
//
|
748
750
|
//--------------------------------------------------------------------------
|
751
|
+
/**
|
752
|
+
* When the mapView loads check if it supports floor awareness
|
753
|
+
*/
|
754
|
+
async mapViewWatchHandler() {
|
755
|
+
await this.mapView.when(() => {
|
756
|
+
var _a, _b;
|
757
|
+
this._hasFloorInfo = (_b = (_a = this.mapView) === null || _a === void 0 ? void 0 : _a.map) === null || _b === void 0 ? void 0 : _b.floorInfo;
|
758
|
+
});
|
759
|
+
}
|
749
760
|
/**
|
750
761
|
* When the _showBasemapWidget property is true display the basemap gallery
|
751
762
|
*/
|
@@ -859,7 +870,7 @@ const MapTools = class {
|
|
859
870
|
this._getActionGroup(fullscreenIcon, false, fullscreenTip, () => this._expand()) :
|
860
871
|
undefined, this.enableBasemap ?
|
861
872
|
this._getActionGroup("basemap", false, this._translations.basemap, () => this._toggleBasemapPicker()) :
|
862
|
-
undefined, this.enableFloorFilter ?
|
873
|
+
undefined, this.enableFloorFilter && this._hasFloorInfo ?
|
863
874
|
this._getActionGroup("urban-model", false, this._translations.floorFilter, () => this._toggleFloorFilter()) :
|
864
875
|
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; }, resultGraphicEnabled: true, 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, enabled: this.enableFloorFilter, mapView: this.mapView, ref: (el) => { this._floorFilterElement = el; } })));
|
865
876
|
}
|
@@ -953,6 +964,7 @@ const MapTools = class {
|
|
953
964
|
}
|
954
965
|
get el() { return index.getElement(this); }
|
955
966
|
static get watchers() { return {
|
967
|
+
"mapView": ["mapViewWatchHandler"],
|
956
968
|
"_showBasemapWidget": ["_showBasemapWidgetWatchHandler"],
|
957
969
|
"_showFloorFilter": ["_showFloorFilterWatchHandler"],
|
958
970
|
"_showFullscreen": ["_showFullscreenWatchHandler"],
|
@@ -351,7 +351,7 @@ const EditCard = class {
|
|
351
351
|
*/
|
352
352
|
async graphicsWatchHandler() {
|
353
353
|
if (this.graphics.length === 0) {
|
354
|
-
this._closeEdit();
|
354
|
+
await this._closeEdit();
|
355
355
|
}
|
356
356
|
}
|
357
357
|
async openWatchHandler(v) {
|
@@ -365,9 +365,12 @@ const EditCard = class {
|
|
365
365
|
this._editorLoading = false;
|
366
366
|
}
|
367
367
|
if (!v) {
|
368
|
-
this._closeEdit();
|
368
|
+
await this._closeEdit();
|
369
369
|
}
|
370
370
|
}
|
371
|
+
async featureSelectionChange() {
|
372
|
+
await this._closeEdit();
|
373
|
+
}
|
371
374
|
//--------------------------------------------------------------------------
|
372
375
|
//
|
373
376
|
// Functions (lifecycle)
|
@@ -397,7 +400,7 @@ const EditCard = class {
|
|
397
400
|
}
|
398
401
|
this._layerEditHandle = this._layer.on("edits", () => {
|
399
402
|
this.editsComplete.emit();
|
400
|
-
this._closeEdit();
|
403
|
+
void this._closeEdit();
|
401
404
|
});
|
402
405
|
}
|
403
406
|
}
|
@@ -468,7 +471,7 @@ const EditCard = class {
|
|
468
471
|
});
|
469
472
|
this._editHandle = this.reactiveUtils.when(() => this._editor.viewModel.state === "ready", () => {
|
470
473
|
if (this._shouldClose) {
|
471
|
-
this._closeEdit();
|
474
|
+
void this._closeEdit();
|
472
475
|
}
|
473
476
|
else if (this.graphicIndex > -1 && this.graphics.length > 0 && this.open && !this._shouldClose) {
|
474
477
|
void this._startUpdate();
|
@@ -488,7 +491,13 @@ const EditCard = class {
|
|
488
491
|
*
|
489
492
|
* @returns void
|
490
493
|
*/
|
491
|
-
_closeEdit() {
|
494
|
+
async _closeEdit() {
|
495
|
+
var _a, _b, _c;
|
496
|
+
this._shouldClose = true;
|
497
|
+
if ((_a = this._editor) === null || _a === void 0 ? void 0 : _a.activeWorkflow) {
|
498
|
+
await ((_b = this._editor) === null || _b === void 0 ? void 0 : _b.cancelWorkflow());
|
499
|
+
}
|
500
|
+
(_c = this._editor) === null || _c === void 0 ? void 0 : _c.destroy();
|
492
501
|
this._shouldClose = false;
|
493
502
|
this.closeEdit.emit();
|
494
503
|
}
|
@@ -25,7 +25,7 @@ const debounce = require('./debounce-30afab47.js');
|
|
25
25
|
const conditionalSlot = require('./conditionalSlot-b6c29b8c.js');
|
26
26
|
const key = require('./key-29076628.js');
|
27
27
|
const locale$1 = require('./locale-d50f3250.js');
|
28
|
-
const mapViewUtils = require('./mapViewUtils-
|
28
|
+
const mapViewUtils = require('./mapViewUtils-303bf42d.js');
|
29
29
|
const publicNotificationStore = require('./publicNotificationStore-9c812ef4.js');
|
30
30
|
require('./resources-d8917c46.js');
|
31
31
|
require('./browser-09760f9f.js');
|
@@ -9,9 +9,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
9
|
|
10
10
|
const index = require('./index-1ffa261f.js');
|
11
11
|
const locale = require('./locale-d50f3250.js');
|
12
|
-
const mapViewUtils = require('./mapViewUtils-
|
12
|
+
const mapViewUtils = require('./mapViewUtils-303bf42d.js');
|
13
13
|
const loadModules = require('./loadModules-03328b9d.js');
|
14
|
-
const downloadUtils = require('./downloadUtils-
|
14
|
+
const downloadUtils = require('./downloadUtils-b37689dd.js');
|
15
15
|
require('./_commonjsHelpers-384729db.js');
|
16
16
|
require('./interfaces-000be6de.js');
|
17
17
|
require('./clean-url-d5326abb.js');
|
@@ -103,7 +103,7 @@ const CardManager = class {
|
|
103
103
|
};
|
104
104
|
CardManager.style = cardManagerCss;
|
105
105
|
|
106
|
-
const layerTableCss = ":host{display:block}.height-full{height:100%}.height-full-adjusted{height:calc(100% - 20px)}.width-full{width:100%}.display-flex{display:flex}.table-border{border:1px solid var(--calcite-ui-border-2)}.border-end{border-inline-end:1px solid var(--calcite-ui-border-2)}.border-bottom{border-bottom:1px solid var(--calcite-ui-border-2)}.padding-5{padding:5px}.padding-end-1{padding-inline-end:1rem}.height-51{height:51px}.bottom-left{position:absolute;left:
|
106
|
+
const layerTableCss = ":host{display:block}.height-full{height:100%}.height-full-adjusted{height:calc(100% - 20px)}.width-full{width:100%}.display-flex{display:flex}.table-border{border:1px solid var(--calcite-ui-border-2)}.border-end{border-inline-end:1px solid var(--calcite-ui-border-2)}.border-bottom{border-bottom:1px solid var(--calcite-ui-border-2)}.padding-5{padding:5px}.padding-end-1{padding-inline-end:1rem}.height-51{height:51px}.bottom-left{position:absolute;left:0;bottom:0;padding-left:5px}html[dir=\"rtl\"] .bottom-left{position:absolute;right:0;bottom:0;padding-right:5px}.height-19{height:19px}.background{background-color:var(--calcite-ui-background)}.text-color{color:var(--calcite-ui-text-1)}.align-center{align-items:center}.danger-color{color:var(--calcite-ui-danger)}.esri-feature-table vaadin-grid{border:none !important}vaadin-grid-cell-content{padding:var(--lumo-space-xs) var(--lumo-space-m) !important;font-size:14px !important}";
|
107
107
|
|
108
108
|
const LayerTable = class {
|
109
109
|
constructor(hostRef) {
|
@@ -415,26 +415,26 @@ const LayerTable = class {
|
|
415
415
|
func: () => this._selectAll(),
|
416
416
|
label: this._translations.selectAll,
|
417
417
|
disabled: false,
|
418
|
-
isOverflow:
|
418
|
+
isOverflow: false
|
419
419
|
}, {
|
420
420
|
icon: "compare",
|
421
421
|
func: () => this._switchSelected(),
|
422
422
|
label: this._translations.switchSelected,
|
423
423
|
disabled: false,
|
424
|
-
isOverflow:
|
424
|
+
isOverflow: false
|
425
425
|
}, {
|
426
426
|
icon: "refresh",
|
427
427
|
func: () => this._refresh(),
|
428
428
|
label: this._translations.refresh,
|
429
429
|
disabled: false,
|
430
|
-
isOverflow:
|
430
|
+
isOverflow: false
|
431
431
|
},
|
432
432
|
this.enableCSV ? {
|
433
433
|
icon: "export",
|
434
434
|
func: () => void this._exportToCSV(),
|
435
435
|
label: this._translations.exportCSV,
|
436
436
|
disabled: false,
|
437
|
-
isOverflow:
|
437
|
+
isOverflow: false
|
438
438
|
} : undefined];
|
439
439
|
this._defaultVisibleToolSizeInfos = undefined;
|
440
440
|
}
|
@@ -478,14 +478,20 @@ const LayerTable = class {
|
|
478
478
|
prev.push(cur.id);
|
479
479
|
return prev;
|
480
480
|
}, []);
|
481
|
+
let forceFinish = false;
|
481
482
|
const controlsThatFit = [...this._defaultVisibleToolSizeInfos].reduce((prev, cur) => {
|
482
|
-
if (skipControls.indexOf(cur.id) < 0 &&
|
483
|
+
if (!forceFinish && skipControls.indexOf(cur.id) < 0 &&
|
483
484
|
(currentTools.indexOf(cur.id) > -1 || (controlsWidth + cur.width) <= toolbarWidth)) {
|
484
485
|
if (currentTools.indexOf(cur.id) < 0) {
|
485
486
|
controlsWidth += cur.width;
|
486
487
|
}
|
487
488
|
prev.push(cur);
|
488
489
|
}
|
490
|
+
else if (skipControls.indexOf(cur.id) < 0 && (controlsWidth + cur.width) > toolbarWidth) {
|
491
|
+
// exit the first time we evalute this as true...otherwise it will add the next control that will fit
|
492
|
+
// and not preserve the overall order of controls
|
493
|
+
forceFinish = true;
|
494
|
+
}
|
489
495
|
return prev;
|
490
496
|
}, []);
|
491
497
|
this._setControlsThatFit(controlsThatFit, skipControls);
|
@@ -564,9 +570,9 @@ const LayerTable = class {
|
|
564
570
|
*/
|
565
571
|
_getDropdown(id) {
|
566
572
|
const dropdownItems = this._getDropdownItems();
|
567
|
-
return (index.h("calcite-dropdown", { disabled: this._layer === undefined, id: "solutions-more" }, index.h("calcite-action", { appearance: "solid", id: id, label: "", slot: "trigger", text: "" }, index.h("calcite-button", { appearance: "transparent", iconEnd: "chevron-down", kind: "neutral" }, this._translations.more)), index.h("calcite-dropdown-group", { "selection-mode": "none" }, dropdownItems.map(item => {
|
573
|
+
return dropdownItems.length > 0 ? (index.h("calcite-dropdown", { disabled: this._layer === undefined, id: "solutions-more" }, index.h("calcite-action", { appearance: "solid", id: id, label: "", slot: "trigger", text: "" }, index.h("calcite-button", { appearance: "transparent", iconEnd: "chevron-down", kind: "neutral" }, this._translations.more)), index.h("calcite-dropdown-group", { "selection-mode": "none" }, dropdownItems.map(item => {
|
568
574
|
return (index.h("calcite-dropdown-item", { iconStart: item.icon, onClick: item.func }, item.label));
|
569
|
-
}))));
|
575
|
+
})))) : undefined;
|
570
576
|
}
|
571
577
|
/**
|
572
578
|
* Get a list of toolInfos that should display in the dropdown
|
@@ -683,33 +689,30 @@ const LayerTable = class {
|
|
683
689
|
* @returns void
|
684
690
|
*/
|
685
691
|
async _resetTable() {
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
696
|
-
|
697
|
-
this._checkEditEnabled();
|
698
|
-
this._table.editingEnabled = this._editEnabled && this.enableInlineEdit;
|
699
|
-
this._initToolInfos();
|
700
|
-
});
|
701
|
-
await this._table.when(() => {
|
702
|
-
this._table.clearSelectionFilter();
|
703
|
-
});
|
704
|
-
this._showOnlySelected = false;
|
705
|
-
this._sortActive = false;
|
706
|
-
await this._sortTable();
|
707
|
-
}
|
708
|
-
else {
|
709
|
-
this._table.view = this.mapView;
|
710
|
-
this._table.layer = this._layer;
|
711
|
-
}
|
692
|
+
var _a, _b;
|
693
|
+
this._clearSelection();
|
694
|
+
this._allIds = [];
|
695
|
+
this.featureSelectionChange.emit(this._selectedIndexes);
|
696
|
+
const columnTemplates = this._getColumnTemplates(this._layer.id, (_b = (_a = this._layer) === null || _a === void 0 ? void 0 : _a.popupTemplate) === null || _b === void 0 ? void 0 : _b.fieldInfos);
|
697
|
+
this._allIds = await mapViewUtils.queryAllIds(this._layer);
|
698
|
+
if (!this._table) {
|
699
|
+
await this._getTable(this._tableNode, columnTemplates);
|
700
|
+
}
|
701
|
+
else if (columnTemplates) {
|
702
|
+
this._table.tableTemplate.columnTemplates = columnTemplates;
|
712
703
|
}
|
704
|
+
this._table.layer = this._layer;
|
705
|
+
this._table.view = this.mapView;
|
706
|
+
this._checkEditEnabled();
|
707
|
+
this._table.editingEnabled = this._editEnabled && this.enableInlineEdit;
|
708
|
+
this._initToolInfos();
|
709
|
+
await this._table.when(() => {
|
710
|
+
this._table.highlightIds.removeAll();
|
711
|
+
this._table.clearSelectionFilter();
|
712
|
+
});
|
713
|
+
this._showOnlySelected = false;
|
714
|
+
this._sortActive = false;
|
715
|
+
await this._sortTable();
|
713
716
|
}
|
714
717
|
/**
|
715
718
|
* Verify edit capabilities of the layer
|
@@ -911,28 +914,15 @@ const LayerTable = class {
|
|
911
914
|
* @returns a promise that will resolve when the operation is complete
|
912
915
|
*/
|
913
916
|
async _layerSelectionChanged(evt) {
|
914
|
-
var _a
|
917
|
+
var _a;
|
915
918
|
const id = evt.detail[0];
|
916
919
|
if (id !== ((_a = this._layer) === null || _a === void 0 ? void 0 : _a.id) || this._allIds.length === 0) {
|
917
920
|
this._fetchingData = true;
|
918
|
-
|
919
|
-
|
920
|
-
|
921
|
-
if (!this._table) {
|
922
|
-
await this._getTable(this._tableNode, columnTemplates);
|
923
|
-
}
|
924
|
-
else if (columnTemplates) {
|
925
|
-
this._table.tableTemplate.columnTemplates = columnTemplates;
|
926
|
-
}
|
927
|
-
await this._table.when(() => {
|
928
|
-
this._table.highlightIds.removeAll();
|
921
|
+
const layer = await mapViewUtils.getLayerOrTable(this.mapView, id);
|
922
|
+
await layer.when(() => {
|
923
|
+
this._layer = layer;
|
929
924
|
});
|
930
|
-
this._selectedIndexes = [];
|
931
|
-
this._table.layer = this._layer;
|
932
|
-
this._table.render();
|
933
925
|
}
|
934
|
-
this._sortActive = false;
|
935
|
-
await this._sortTable();
|
936
926
|
this._fetchingData = false;
|
937
927
|
}
|
938
928
|
/**
|
@@ -992,7 +982,7 @@ const LayerTable = class {
|
|
992
982
|
};
|
993
983
|
LayerTable.style = layerTableCss;
|
994
984
|
|
995
|
-
const mapCardCss = ":host{display:block;--calcite-label-margin-bottom:0;--calcite-block-padding:0}.map-height{height:calc(100% -
|
985
|
+
const mapCardCss = ":host{display:block;--calcite-label-margin-bottom:0;--calcite-block-padding:0}.map-height{height:calc(100% - 51px)}.box-shadow{box-shadow:none !important}.visibility-hidden{visibility:hidden}";
|
996
986
|
|
997
987
|
const MapCard = class {
|
998
988
|
constructor(hostRef) {
|
@@ -1009,6 +999,7 @@ const MapCard = class {
|
|
1009
999
|
this.enableSearch = undefined;
|
1010
1000
|
this.enableBasemap = undefined;
|
1011
1001
|
this.basemapConfig = undefined;
|
1002
|
+
this.hidden = undefined;
|
1012
1003
|
this.mapInfos = [];
|
1013
1004
|
this.mapView = undefined;
|
1014
1005
|
this._searchConfiguration = undefined;
|
@@ -1035,7 +1026,8 @@ const MapCard = class {
|
|
1035
1026
|
* Renders the component.
|
1036
1027
|
*/
|
1037
1028
|
render() {
|
1038
|
-
|
1029
|
+
const mapClass = this.hidden ? "visibility-hidden" : "";
|
1030
|
+
return (index.h(index.Host, null, index.h("map-picker", { mapInfos: this.mapInfos }), index.h("div", { class: `map-height ${mapClass}`, ref: (el) => (this._mapDiv = el) }), index.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 })));
|
1039
1031
|
}
|
1040
1032
|
//--------------------------------------------------------------------------
|
1041
1033
|
//
|
@@ -12,7 +12,7 @@ const locale = require('./locale-d50f3250.js');
|
|
12
12
|
const interfaces = require('./interfaces-000be6de.js');
|
13
13
|
require('./_commonjsHelpers-384729db.js');
|
14
14
|
|
15
|
-
const crowdsourceManagerCss = ":host{display:block;--calcite-label-margin-bottom:0px;--solutions-theme-foreground-color:var(--calcite-ui-foreground-1)}.padding-1-2{padding:0.5rem}.display-flex{display:flex}.width-full{width:100%}.width-1-2{position:relative;width:50%}.width-1-3{position:relative;width:33.33%}.width-2-3{position:relative;width:66.66%}.width-0{width:0}.height-full{height:100%}.height-1-2{position:relative;height:50%}.height-0{height:0}.toggle-node{width:51px;height:51px}.overflow-hidden{overflow:hidden}.flex-column{flex-direction:column}.border{border:1px solid var(--calcite-ui-border-3)}.border-bottom{border-bottom:1px solid var(--calcite-ui-border-3)}.border-sides{border-left:1px solid var(--calcite-ui-border-3);border-right:1px solid var(--calcite-ui-border-3)}.position-relative{position:relative}.height-50{height:50%}.adjusted-height-50{height:calc(50% - 25px)}.adjusted-height-100{height:calc(100% - 50px)}.adjusted-height-100-50{height:calc(100% - 50px)}.display-none{display:none}.height-53{height:53px}.position-absolute-53{position:absolute;top:53px}.display-grid{display:grid}.height-50-px{height:50px}.padding-inline-start-75{padding-inline-start:0.75rem}.align-items-center{align-items:center}.esri-floor-filter__close-levels-button{width:40px !important;height:40px !important}.esri-floor-filter__level-button{width:40px !important;height:40px !important}.esri-floor-filter__browse-button{width:40px !important;height:40px !important}";
|
15
|
+
const crowdsourceManagerCss = ":host{display:block;--calcite-label-margin-bottom:0px;--solutions-theme-foreground-color:var(--calcite-ui-foreground-1)}.padding-1-2{padding:0.5rem}.display-flex{display:flex}.width-full{width:100%}.width-1-2{position:relative;width:50%}.width-1-3{position:relative;width:33.33%}.width-2-3{position:relative;width:66.66%}.width-0{width:0}.height-full{height:100%}.height-1-2{position:relative;height:50%}.height-0{height:0}.toggle-node{width:51px;height:51px}.overflow-hidden{overflow:hidden}.flex-column{flex-direction:column}.border{border:1px solid var(--calcite-ui-border-3)}.border-bottom{border-bottom:1px solid var(--calcite-ui-border-3)}.border-sides{border-left:1px solid var(--calcite-ui-border-3);border-right:1px solid var(--calcite-ui-border-3)}.position-relative{position:relative}.height-50{height:50%}.adjusted-height-50{height:calc(50% - 25px)}.adjusted-height-100{height:calc(100% - 50px)}.adjusted-height-100-50{height:calc(100% - 50px)}.display-none{display:none}.height-53{height:53px}.position-absolute-53{position:absolute;top:53px}.display-grid{display:grid}.height-50-px{height:50px}.padding-inline-start-75{padding-inline-start:0.75rem}.align-items-center{align-items:center}.esri-floor-filter__close-levels-button{width:40px !important;height:40px !important}.esri-floor-filter__level-button{width:40px !important;height:40px !important}.esri-floor-filter__browse-button{width:40px !important;height:40px !important}.position-absolute-50{position:absolute;top:50px;bottom:0px;left:0px;right:0px}";
|
16
16
|
|
17
17
|
const CrowdsourceManager = class {
|
18
18
|
constructor(hostRef) {
|
@@ -240,11 +240,11 @@ const CrowdsourceManager = class {
|
|
240
240
|
* @protected
|
241
241
|
*/
|
242
242
|
_getMapNode(layoutMode, hideMap) {
|
243
|
-
var _a
|
243
|
+
var _a;
|
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
|
-
const mapContainerClass = this.classicGrid && layoutMode === interfaces.ELayoutMode.GRID ? "width-full" :
|
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
|
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) })));
|
248
248
|
}
|
249
249
|
/**
|
250
250
|
* Get the expand node for the popup information
|
@@ -257,7 +257,8 @@ const CrowdsourceManager = class {
|
|
257
257
|
const id = "expand-popup";
|
258
258
|
const tooltip = this._expandPopup ? this._translations.collapsePopup : this._translations.expandPopup;
|
259
259
|
const themeClass = this.theme === "dark" ? "calcite-mode-dark" : "calcite-mode-light";
|
260
|
-
|
260
|
+
const popupNodeClass = !this._expandPopup ? "height-full" : "position-absolute-50";
|
261
|
+
return (index.h("div", { class: "calcite-mode-dark " + popupNodeClass }, index.h("calcite-panel", null, index.h("div", { class: "display-flex align-items-center", slot: "header-content" }, index.h("calcite-icon", { icon: "information", scale: "s" }), index.h("div", { class: "padding-inline-start-75" }, this._translations.information)), index.h("calcite-action", { icon: icon, id: id, onClick: () => this._togglePopup(), slot: "header-actions-end" }), index.h("calcite-tooltip", { class: themeClass, label: "", placement: "bottom", "reference-element": id }, index.h("span", null, tooltip)), this._getCardNode())));
|
261
262
|
}
|
262
263
|
/**
|
263
264
|
* Toggle the popup information
|
@@ -278,9 +279,8 @@ const CrowdsourceManager = class {
|
|
278
279
|
*/
|
279
280
|
_getCardNode() {
|
280
281
|
const cardManagerHeight = !this._expandPopup ? "height-50" : "height-full";
|
281
|
-
const cardManagerContainer = this._expandPopup ? "width-50 adjusted-height-100-50" : "width-50 height-full";
|
282
282
|
const themeClass = this.theme === "dark" ? "calcite-mode-dark" : "calcite-mode-light";
|
283
|
-
return (index.h("div", { class:
|
283
|
+
return (index.h("div", { class: `width-50 height-full ${themeClass}` }, index.h("card-manager", { class: `${cardManagerHeight} width-full`, mapView: this === null || this === void 0 ? void 0 : this._mapView, zoomAndScrollToSelected: this.zoomAndScrollToSelected })));
|
284
284
|
}
|
285
285
|
/**
|
286
286
|
* Get the table node based for the current layout
|
@@ -8,7 +8,7 @@
|
|
8
8
|
const _commonjsHelpers = require('./_commonjsHelpers-384729db.js');
|
9
9
|
const index = require('./index-1ffa261f.js');
|
10
10
|
const loadModules = require('./loadModules-03328b9d.js');
|
11
|
-
const mapViewUtils = require('./mapViewUtils-
|
11
|
+
const mapViewUtils = require('./mapViewUtils-303bf42d.js');
|
12
12
|
const cleanUrl = require('./clean-url-d5326abb.js');
|
13
13
|
|
14
14
|
/** @license
|
@@ -1508,7 +1508,7 @@ function(t){var e=function(t){for(var e=t.length,r=new Uint8Array(e),n=0;n<e;n++
|
|
1508
1508
|
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
1509
1509
|
* ====================================================================
|
1510
1510
|
*/
|
1511
|
-
function(t){function e(){return (n.canvg?Promise.resolve(n.canvg):Promise.resolve().then(function () { return require('./index.es-
|
1511
|
+
function(t){function e(){return (n.canvg?Promise.resolve(n.canvg):Promise.resolve().then(function () { return require('./index.es-83e253dc.js'); })).catch((function(t){return Promise.reject(new Error("Could not load canvg: "+t))})).then((function(t){return t.default?t.default:t}))}E.API.addSvgAsImage=function(t,r,n,i,o,s,c,u){if(isNaN(r)||isNaN(n))throw a.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(o))throw a.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var h=document.createElement("canvas");h.width=i,h.height=o;var l=h.getContext("2d");l.fillStyle="#fff",l.fillRect(0,0,h.width,h.height);var f={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},d=this;return e().then((function(e){return e.fromString(l,t,f)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(t){return t.render(f)})).then((function(){d.addImage(h.toDataURL("image/jpeg",1),r,n,i,o,c,u);}))};}(),E.API.putTotalPages=function(t){var e,r=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(t,"g"),r=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),r=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var n=1;n<=this.internal.getNumberOfPages();n++)for(var i=0;i<this.internal.pages[n].length;i++)this.internal.pages[n][i]=this.internal.pages[n][i].replace(e,r);return this},E.API.viewerPreferences=function(e,r){var n;e=e||{},r=r||!1;var i,a,o,s={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},c=Object.keys(s),u=[],h=0,l=0,f=0;function d(t,e){var r,n=!1;for(r=0;r<t.length;r+=1)t[r]===e&&(n=!0);return n}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,"reset"===e||!0===r){var p=c.length;for(f=0;f<p;f+=1)n[c[f]].value=n[c[f]].defaultValue,n[c[f]].explicitSet=!1;}if("object"===t(e))for(a in e)if(o=e[a],d(c,a)&&void 0!==o){if("boolean"===n[a].type&&"boolean"==typeof o)n[a].value=o;else if("name"===n[a].type&&d(n[a].valueSet,o))n[a].value=o;else if("integer"===n[a].type&&Number.isInteger(o))n[a].value=o;else if("array"===n[a].type){for(h=0;h<o.length;h+=1)if(i=!0,1===o[h].length&&"number"==typeof o[h][0])u.push(String(o[h]-1));else if(o[h].length>1){for(l=0;l<o[h].length;l+=1)"number"!=typeof o[h][l]&&(i=!1);!0===i&&u.push([o[h][0]-1,o[h][1]-1].join(" "));}n[a].value="["+u.join(" ")+"]";}else n[a].value=n[a].defaultValue;n[a].explicitSet=!0;}return !1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var t,e=[];for(t in n)!0===n[t].explicitSet&&("name"===n[t].type?e.push("/"+t+" /"+n[t].value):e.push("/"+t+" "+n[t].value));0!==e.length&&this.internal.write("/ViewerPreferences\n<<\n"+e.join("\n")+"\n>>");})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},
|
1512
1512
|
/** ====================================================================
|
1513
1513
|
* @license
|
1514
1514
|
* jsPDF XMP metadata plugin
|
@@ -2831,6 +2831,26 @@ function _prepareAttributeValue(attributeValue, attributeType, attributeDomain,
|
|
2831
2831
|
// e.g., "12/31/1969, 4:00 PM"
|
2832
2832
|
value = value.replace(/\xe2\x80\xaf/g, "");
|
2833
2833
|
break;
|
2834
|
+
case "date-only":
|
2835
|
+
// Value is a string, e.g., "2020-12-08"
|
2836
|
+
if (attributeFormat === null || attributeFormat === void 0 ? void 0 : attributeFormat.dateFormat) {
|
2837
|
+
const dateFormatIntlOptions = intl.convertDateFormatToIntlOptions(attributeFormat.dateFormat);
|
2838
|
+
value = intl.formatDateOnly(value, dateFormatIntlOptions);
|
2839
|
+
}
|
2840
|
+
else {
|
2841
|
+
value = intl.formatDateOnly(value);
|
2842
|
+
}
|
2843
|
+
break;
|
2844
|
+
case "time-only":
|
2845
|
+
// Value is a string, e.g., "14:51:44.2533333"
|
2846
|
+
if (attributeFormat === null || attributeFormat === void 0 ? void 0 : attributeFormat.dateFormat) {
|
2847
|
+
const dateFormatIntlOptions = intl.convertDateFormatToIntlOptions(attributeFormat.dateFormat);
|
2848
|
+
value = intl.formatTimeOnly(value, dateFormatIntlOptions);
|
2849
|
+
}
|
2850
|
+
else {
|
2851
|
+
value = intl.formatTimeOnly(value);
|
2852
|
+
}
|
2853
|
+
break;
|
2834
2854
|
case "double":
|
2835
2855
|
case "integer":
|
2836
2856
|
case "long":
|
@@ -6,11 +6,11 @@
|
|
6
6
|
'use strict';
|
7
7
|
|
8
8
|
const _commonjsHelpers = require('./_commonjsHelpers-384729db.js');
|
9
|
-
const downloadUtils = require('./downloadUtils-
|
9
|
+
const downloadUtils = require('./downloadUtils-b37689dd.js');
|
10
10
|
require('./index-1ffa261f.js');
|
11
11
|
require('./loadModules-03328b9d.js');
|
12
12
|
require('./locale-d50f3250.js');
|
13
|
-
require('./mapViewUtils-
|
13
|
+
require('./mapViewUtils-303bf42d.js');
|
14
14
|
require('./interfaces-000be6de.js');
|
15
15
|
require('./clean-url-d5326abb.js');
|
16
16
|
|