@esri/solutions-components 0.8.9 → 0.8.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. package/dist/assets/t9n/crowdsource-reporter/resources.json +9 -2
  2. package/dist/assets/t9n/crowdsource-reporter/resources_en.json +9 -2
  3. package/dist/cjs/calcite-alert_4.cjs.entry.js +2 -1
  4. package/dist/cjs/calcite-dropdown_4.cjs.entry.js +1 -1
  5. package/dist/cjs/calcite-flow_6.cjs.entry.js +1 -1
  6. package/dist/cjs/card-manager_3.cjs.entry.js +2 -2
  7. package/dist/cjs/crowdsource-manager.cjs.entry.js +25 -17
  8. package/dist/cjs/crowdsource-reporter.cjs.entry.js +1 -1
  9. package/dist/cjs/{downloadUtils-dc349b1a.js → downloadUtils-dd787ddf.js} +2 -2
  10. package/dist/cjs/{index.es-1830a1e6.js → index.es-29fa176d.js} +2 -2
  11. package/dist/cjs/loader.cjs.js +1 -1
  12. package/dist/cjs/map-select-tools_3.cjs.entry.js +2 -2
  13. package/dist/cjs/{mapViewUtils-9dc05308.js → mapViewUtils-82018df6.js} +1 -1
  14. package/dist/cjs/public-notification.cjs.entry.js +2 -2
  15. package/dist/cjs/solutions-components.cjs.js +1 -1
  16. package/dist/collection/components/crowdsource-manager/crowdsource-manager.css +15 -0
  17. package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +48 -16
  18. package/dist/collection/components/info-card/info-card.js +1 -0
  19. package/dist/collection/demos/crowdsource-manager.html +7 -2
  20. package/dist/collection/utils/mapViewUtils.js +1 -1
  21. package/dist/collection/utils/mapViewUtils.ts +1 -1
  22. package/dist/components/crowdsource-manager.js +26 -18
  23. package/dist/components/info-card2.js +1 -0
  24. package/dist/components/mapViewUtils.js +1 -1
  25. package/dist/esm/calcite-alert_4.entry.js +2 -1
  26. package/dist/esm/calcite-dropdown_4.entry.js +1 -1
  27. package/dist/esm/calcite-flow_6.entry.js +1 -1
  28. package/dist/esm/card-manager_3.entry.js +2 -2
  29. package/dist/esm/crowdsource-manager.entry.js +26 -18
  30. package/dist/esm/crowdsource-reporter.entry.js +1 -1
  31. package/dist/esm/{downloadUtils-df4f21f6.js → downloadUtils-25aa808f.js} +2 -2
  32. package/dist/esm/{index.es-904fb846.js → index.es-a16c9db4.js} +2 -2
  33. package/dist/esm/loader.js +1 -1
  34. package/dist/esm/map-select-tools_3.entry.js +2 -2
  35. package/dist/esm/{mapViewUtils-2ec19fb0.js → mapViewUtils-c83c03a4.js} +1 -1
  36. package/dist/esm/public-notification.entry.js +2 -2
  37. package/dist/esm/solutions-components.js +1 -1
  38. package/dist/solutions-components/demos/crowdsource-manager.html +7 -2
  39. package/dist/solutions-components/{p-95fea07a.entry.js → p-2f687975.entry.js} +1 -1
  40. package/dist/solutions-components/{p-29f518fd.entry.js → p-3e5085ae.entry.js} +2 -2
  41. package/dist/solutions-components/p-40039b84.entry.js +6 -0
  42. package/dist/solutions-components/{p-6557b703.entry.js → p-58997cc1.entry.js} +1 -1
  43. package/dist/solutions-components/{p-602cd811.entry.js → p-82e398cb.entry.js} +1 -1
  44. package/dist/solutions-components/{p-7269c49b.entry.js → p-ae75d7d7.entry.js} +1 -1
  45. package/dist/solutions-components/{p-fca434c8.js → p-b1376c75.js} +2 -2
  46. package/dist/solutions-components/{p-fd82a00f.entry.js → p-b5acfcd8.entry.js} +1 -1
  47. package/dist/solutions-components/{p-ae4d86e8.js → p-bdd77f17.js} +1 -1
  48. package/dist/solutions-components/{p-577efb16.js → p-d9c89479.js} +1 -1
  49. package/dist/solutions-components/{p-760bd17e.entry.js → p-fffc9e08.entry.js} +1 -1
  50. package/dist/solutions-components/solutions-components.esm.js +1 -1
  51. package/dist/solutions-components/utils/mapViewUtils.ts +1 -1
  52. package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +13 -1
  53. package/dist/types/components.d.ts +19 -0
  54. package/dist/types/preact.d.ts +3 -1
  55. package/package.json +1 -1
  56. package/dist/solutions-components/p-452fd697.entry.js +0 -6
@@ -186,3 +186,18 @@
186
186
  .border-bottom-width-0 {
187
187
  border-bottom-width: 0px;
188
188
  }
189
+
190
+ .floating-container {
191
+ position: fixed;
192
+ width: 100px;
193
+ height: 10px;
194
+ bottom: 0;
195
+ right: 0;
196
+ margin: 100px 0px;
197
+ }
198
+
199
+ .floating-container .floating-button {
200
+ box-shadow: 0 10px 25px rgb(92 93 94 / 60%);
201
+ transform: translatey(5px);
202
+ transition: all 0.3s;
203
+ }
@@ -64,7 +64,7 @@ export class CrowdsourceManager {
64
64
  this.enableSearch = true;
65
65
  this.enableShare = false;
66
66
  this.enableZoom = true;
67
- this.hideMapOnLoad = undefined;
67
+ this.hideMapOnLoad = false;
68
68
  this.mapInfos = [];
69
69
  this.onlyShowUpdatableLayers = true;
70
70
  this.popupHeaderColor = undefined;
@@ -78,7 +78,7 @@ export class CrowdsourceManager {
78
78
  this.theme = "light";
79
79
  this.zoomAndScrollToSelected = false;
80
80
  this.zoomToScale = undefined;
81
- this._expandPopup = false;
81
+ this._expandPopup = this.hideMapOnLoad;
82
82
  this._hideFooter = false;
83
83
  this._hideTable = false;
84
84
  this._isMobile = undefined;
@@ -102,16 +102,6 @@ export class CrowdsourceManager {
102
102
  enableZoomWatchHandler() {
103
103
  this._initMapZoom();
104
104
  }
105
- //--------------------------------------------------------------------------
106
- //
107
- // Methods (public)
108
- //
109
- //--------------------------------------------------------------------------
110
- //--------------------------------------------------------------------------
111
- //
112
- // Events (public)
113
- //
114
- //--------------------------------------------------------------------------
115
105
  /**
116
106
  * Listen for changes in feature selection and show or hide the map, popup, and table
117
107
  */
@@ -158,7 +148,6 @@ export class CrowdsourceManager {
158
148
  async beforeMapChanged() {
159
149
  if (this._expandPopup) {
160
150
  this._shouldSetMapView = true;
161
- this._expandPopup = false;
162
151
  }
163
152
  }
164
153
  /**
@@ -171,6 +160,12 @@ export class CrowdsourceManager {
171
160
  this._layer = layer;
172
161
  });
173
162
  }
163
+ /**
164
+ * Update the state expandPopup when mapInfoChange event occurs
165
+ */
166
+ async mapInfoChange() {
167
+ this._expandPopup = this.hideMapOnLoad;
168
+ }
174
169
  //--------------------------------------------------------------------------
175
170
  //
176
171
  // Functions (lifecycle)
@@ -310,7 +305,14 @@ export class CrowdsourceManager {
310
305
  */
311
306
  _getBody(layoutMode, panelOpen, hideTable) {
312
307
  const contentClass = layoutMode === ELayoutMode.HORIZONTAL ? "" : "display-flex";
313
- return (h("calcite-panel", { class: "width-full height-full" }, h("div", { class: `width-full height-full overflow-hidden ${contentClass}` }, this._getMapAndCard(layoutMode, panelOpen, hideTable), this._getTable(layoutMode, panelOpen, hideTable))));
308
+ const themeClass = this.theme === "dark" ? "calcite-mode-dark" : "calcite-mode-light";
309
+ return (h("calcite-panel", { class: "width-full height-full" }, h("div", { class: `width-full height-full overflow-hidden ${contentClass}` }, this._getMapAndCard(layoutMode, panelOpen, hideTable), this._getTable(layoutMode, panelOpen, hideTable)), h("div", { class: "floating-container", onClick: this.infoButtonClick.bind(this) }, h("calcite-button", { appearance: "solid", class: `floating-button ${themeClass}`, "icon-start": "information-letter", kind: "neutral", label: "", round: true, scale: "l", "split-child": "primary", width: "auto" }))));
310
+ }
311
+ /**
312
+ * Emit the event when info button clicked
313
+ */
314
+ infoButtonClick() {
315
+ this.infoIconButtonClick.emit();
314
316
  }
315
317
  /**
316
318
  * Get the map and card nodes based for the current layout options
@@ -356,7 +358,12 @@ export class CrowdsourceManager {
356
358
  const headerClass = this._isMobile ? "display-none height-0" : "";
357
359
  const headerTheme = !this._isMobile ? "calcite-mode-dark" : "calcite-mode-light";
358
360
  const containerClass = this._isMobile && this._hideTable ? "position-absolute-0 width-full height-full" : this._isMobile ? "display-none height-0" : "";
359
- return (h("div", { class: `${headerTheme} ${popupNodeClass} ${containerClass}` }, h("calcite-panel", null, !this._isMobile ? (h("div", { class: `display-flex align-items-center ${headerClass}`, slot: "header-content" }, h("calcite-icon", { icon: "information", scale: "s" }), h("div", { class: "padding-inline-start-75" }, this._translations.information))) : undefined, h("calcite-action", { class: headerClass, disabled: this._tableOnly, icon: icon, id: id, onClick: () => this._togglePopup(), slot: "header-actions-end", text: "" }), !this._tableOnly ? h("calcite-tooltip", { class: themeClass, label: "", placement: "bottom", "reference-element": id }, h("span", null, tooltip)) : undefined, this._getCardNode())));
361
+ return (h("div", { class: `${headerTheme} ${popupNodeClass} ${containerClass}`, style: {
362
+ '--calcite-color-foreground-1': this.popupHeaderColor,
363
+ '--calcite-color-foreground-2': this.popupHeaderHoverColor,
364
+ '--calcite-color-text-3': this.popupHeaderHoverTextColor,
365
+ '--calcite-color-text-2': this.popupHeaderTextColor, /* font color to apply to the popup header */
366
+ } }, h("calcite-panel", null, !this._isMobile ? (h("div", { class: `display-flex align-items-center ${headerClass}`, slot: "header-content" }, h("calcite-icon", { icon: "information", scale: "s" }), h("div", { class: "padding-inline-start-75" }, this._translations.information))) : undefined, h("calcite-action", { class: headerClass, disabled: this._tableOnly, icon: icon, id: id, onClick: () => this._togglePopup(), slot: "header-actions-end", text: "" }), !this._tableOnly ? h("calcite-tooltip", { class: themeClass, label: "", placement: "bottom", "reference-element": id }, h("span", null, tooltip)) : undefined, this._getCardNode())));
360
367
  }
361
368
  /**
362
369
  * Toggle the popup information
@@ -888,7 +895,8 @@ export class CrowdsourceManager {
888
895
  "text": "boolean: when true the map will be hidden on load"
889
896
  },
890
897
  "attribute": "hide-map-on-load",
891
- "reflect": false
898
+ "reflect": false,
899
+ "defaultValue": "false"
892
900
  },
893
901
  "mapInfos": {
894
902
  "type": "unknown",
@@ -1148,6 +1156,24 @@ export class CrowdsourceManager {
1148
1156
  "_tableOnly": {}
1149
1157
  };
1150
1158
  }
1159
+ static get events() {
1160
+ return [{
1161
+ "method": "infoIconButtonClick",
1162
+ "name": "infoIconButtonClick",
1163
+ "bubbles": true,
1164
+ "cancelable": true,
1165
+ "composed": true,
1166
+ "docs": {
1167
+ "tags": [],
1168
+ "text": "Emitted on demand when a info button is clicked"
1169
+ },
1170
+ "complexType": {
1171
+ "original": "void",
1172
+ "resolved": "void",
1173
+ "references": {}
1174
+ }
1175
+ }];
1176
+ }
1151
1177
  static get elementRef() { return "el"; }
1152
1178
  static get watchers() {
1153
1179
  return [{
@@ -1198,6 +1224,12 @@ export class CrowdsourceManager {
1198
1224
  "target": "window",
1199
1225
  "capture": false,
1200
1226
  "passive": false
1227
+ }, {
1228
+ "name": "mapInfoChange",
1229
+ "method": "mapInfoChange",
1230
+ "target": "window",
1231
+ "capture": false,
1232
+ "passive": false
1201
1233
  }];
1202
1234
  }
1203
1235
  }
@@ -250,6 +250,7 @@ export class InfoCard {
250
250
  });
251
251
  this._features.viewModel.highlightEnabled = this.highlightEnabled;
252
252
  this.reactiveUtils.watch(() => this._features.viewModel.featureMenuOpen, (isOpen) => {
253
+ this._count = this._getCount();
253
254
  if (!isOpen) {
254
255
  this._showListView = isOpen;
255
256
  }
@@ -44,9 +44,13 @@
44
44
  // esriConfig.portalUrl = "https://holistic.mapsdevext.arcgis.com";
45
45
  // });
46
46
 
47
- function addValues() {
48
- const demo = document.getElementById("demo");
47
+ function infoIconButtonClick(evt) {
48
+ alert('Info button Clicked');
49
+ }
49
50
 
51
+ function addValues() {
52
+ const demo = document.getElementById("demo");
53
+ demo.addEventListener('infoIconButtonClick', infoIconButtonClick);
50
54
  let headerSet = false;
51
55
  let custom = [];
52
56
  var vars = window.location.search.substring(1).split('&');
@@ -198,6 +202,7 @@
198
202
  }
199
203
  }]
200
204
  ];
205
+ demo.hideMapOnLoad = true;
201
206
  }
202
207
  </script>
203
208
  </head>
@@ -33,7 +33,7 @@ export async function getMapLayerHash(mapView, onlyShowUpdatableLayers) {
33
33
  let layerHash;
34
34
  await mapView.when(() => {
35
35
  layerHash = mapView.map.allLayers.toArray().reduce((prev, cur) => {
36
- if (cur.type === "feature") {
36
+ if (cur.type === "feature" || (cur === null || cur === void 0 ? void 0 : cur.type) === "subtype-group") {
37
37
  prev[cur.id] = {
38
38
  name: cur.title,
39
39
  supportsUpdate: undefined
@@ -33,7 +33,7 @@ export async function getMapLayerHash(
33
33
  let layerHash;
34
34
  await mapView.when(() => {
35
35
  layerHash = mapView.map.allLayers.toArray().reduce((prev, cur) => {
36
- if (cur.type === "feature") {
36
+ if (cur.type === "feature" || cur?.type === "subtype-group") {
37
37
  prev[cur.id] = {
38
38
  name: cur.title,
39
39
  supportsUpdate: undefined
@@ -3,7 +3,7 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
6
+ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
7
7
  import { g as getLocaleComponentStrings } from './locale.js';
8
8
  import { a as ELayoutMode } from './interfaces.js';
9
9
  import { g as getLayerOrTable } from './mapViewUtils.js';
@@ -65,12 +65,13 @@ import { d as defineCustomElement$4 } from './map-picker2.js';
65
65
  import { d as defineCustomElement$3 } from './map-search2.js';
66
66
  import { d as defineCustomElement$2 } from './map-tools2.js';
67
67
 
68
- const crowdsourceManagerCss = ":host{display:block;--calcite-label-margin-bottom:0px;--solutions-theme-foreground-color:var(--calcite-color-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-color-border-3)}.border-bottom{border-bottom:1px solid var(--calcite-color-border-3)}.border-sides{border-left:1px solid var(--calcite-color-border-3);border-right:1px solid var(--calcite-color-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}.position-absolute-0{position:absolute;top:0px;bottom:0px;left:0px;right:0px}.visibility-hidden{visibility:hidden;height:0px}.position-fixed{position:fixed}.border-width-0{border-width:0px}.border-bottom-width-0{border-bottom-width:0px}";
68
+ const crowdsourceManagerCss = ":host{display:block;--calcite-label-margin-bottom:0px;--solutions-theme-foreground-color:var(--calcite-color-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-color-border-3)}.border-bottom{border-bottom:1px solid var(--calcite-color-border-3)}.border-sides{border-left:1px solid var(--calcite-color-border-3);border-right:1px solid var(--calcite-color-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}.position-absolute-0{position:absolute;top:0px;bottom:0px;left:0px;right:0px}.visibility-hidden{visibility:hidden;height:0px}.position-fixed{position:fixed}.border-width-0{border-width:0px}.border-bottom-width-0{border-bottom-width:0px}.floating-container{position:fixed;width:100px;height:10px;bottom:0;right:0;margin:100px 0px}.floating-container .floating-button{box-shadow:0 10px 25px rgb(92 93 94 / 60%);transform:translatey(5px);transition:all 0.3s}";
69
69
 
70
70
  const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceManager extends HTMLElement {
71
71
  constructor() {
72
72
  super();
73
73
  this.__registerHost();
74
+ this.infoIconButtonClick = createEvent(this, "infoIconButtonClick", 7);
74
75
  //--------------------------------------------------------------------------
75
76
  //
76
77
  // Properties (protected)
@@ -111,7 +112,7 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
111
112
  this.enableSearch = true;
112
113
  this.enableShare = false;
113
114
  this.enableZoom = true;
114
- this.hideMapOnLoad = undefined;
115
+ this.hideMapOnLoad = false;
115
116
  this.mapInfos = [];
116
117
  this.onlyShowUpdatableLayers = true;
117
118
  this.popupHeaderColor = undefined;
@@ -125,7 +126,7 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
125
126
  this.theme = "light";
126
127
  this.zoomAndScrollToSelected = false;
127
128
  this.zoomToScale = undefined;
128
- this._expandPopup = false;
129
+ this._expandPopup = this.hideMapOnLoad;
129
130
  this._hideFooter = false;
130
131
  this._hideTable = false;
131
132
  this._isMobile = undefined;
@@ -149,16 +150,6 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
149
150
  enableZoomWatchHandler() {
150
151
  this._initMapZoom();
151
152
  }
152
- //--------------------------------------------------------------------------
153
- //
154
- // Methods (public)
155
- //
156
- //--------------------------------------------------------------------------
157
- //--------------------------------------------------------------------------
158
- //
159
- // Events (public)
160
- //
161
- //--------------------------------------------------------------------------
162
153
  /**
163
154
  * Listen for changes in feature selection and show or hide the map, popup, and table
164
155
  */
@@ -205,7 +196,6 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
205
196
  async beforeMapChanged() {
206
197
  if (this._expandPopup) {
207
198
  this._shouldSetMapView = true;
208
- this._expandPopup = false;
209
199
  }
210
200
  }
211
201
  /**
@@ -218,6 +208,12 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
218
208
  this._layer = layer;
219
209
  });
220
210
  }
211
+ /**
212
+ * Update the state expandPopup when mapInfoChange event occurs
213
+ */
214
+ async mapInfoChange() {
215
+ this._expandPopup = this.hideMapOnLoad;
216
+ }
221
217
  //--------------------------------------------------------------------------
222
218
  //
223
219
  // Functions (lifecycle)
@@ -357,7 +353,14 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
357
353
  */
358
354
  _getBody(layoutMode, panelOpen, hideTable) {
359
355
  const contentClass = layoutMode === ELayoutMode.HORIZONTAL ? "" : "display-flex";
360
- return (h("calcite-panel", { class: "width-full height-full" }, h("div", { class: `width-full height-full overflow-hidden ${contentClass}` }, this._getMapAndCard(layoutMode, panelOpen, hideTable), this._getTable(layoutMode, panelOpen, hideTable))));
356
+ const themeClass = this.theme === "dark" ? "calcite-mode-dark" : "calcite-mode-light";
357
+ return (h("calcite-panel", { class: "width-full height-full" }, h("div", { class: `width-full height-full overflow-hidden ${contentClass}` }, this._getMapAndCard(layoutMode, panelOpen, hideTable), this._getTable(layoutMode, panelOpen, hideTable)), h("div", { class: "floating-container", onClick: this.infoButtonClick.bind(this) }, h("calcite-button", { appearance: "solid", class: `floating-button ${themeClass}`, "icon-start": "information-letter", kind: "neutral", label: "", round: true, scale: "l", "split-child": "primary", width: "auto" }))));
358
+ }
359
+ /**
360
+ * Emit the event when info button clicked
361
+ */
362
+ infoButtonClick() {
363
+ this.infoIconButtonClick.emit();
361
364
  }
362
365
  /**
363
366
  * Get the map and card nodes based for the current layout options
@@ -403,7 +406,12 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
403
406
  const headerClass = this._isMobile ? "display-none height-0" : "";
404
407
  const headerTheme = !this._isMobile ? "calcite-mode-dark" : "calcite-mode-light";
405
408
  const containerClass = this._isMobile && this._hideTable ? "position-absolute-0 width-full height-full" : this._isMobile ? "display-none height-0" : "";
406
- return (h("div", { class: `${headerTheme} ${popupNodeClass} ${containerClass}` }, h("calcite-panel", null, !this._isMobile ? (h("div", { class: `display-flex align-items-center ${headerClass}`, slot: "header-content" }, h("calcite-icon", { icon: "information", scale: "s" }), h("div", { class: "padding-inline-start-75" }, this._translations.information))) : undefined, h("calcite-action", { class: headerClass, disabled: this._tableOnly, icon: icon, id: id, onClick: () => this._togglePopup(), slot: "header-actions-end", text: "" }), !this._tableOnly ? h("calcite-tooltip", { class: themeClass, label: "", placement: "bottom", "reference-element": id }, h("span", null, tooltip)) : undefined, this._getCardNode())));
409
+ return (h("div", { class: `${headerTheme} ${popupNodeClass} ${containerClass}`, style: {
410
+ '--calcite-color-foreground-1': this.popupHeaderColor,
411
+ '--calcite-color-foreground-2': this.popupHeaderHoverColor,
412
+ '--calcite-color-text-3': this.popupHeaderHoverTextColor,
413
+ '--calcite-color-text-2': this.popupHeaderTextColor, /* font color to apply to the popup header */
414
+ } }, h("calcite-panel", null, !this._isMobile ? (h("div", { class: `display-flex align-items-center ${headerClass}`, slot: "header-content" }, h("calcite-icon", { icon: "information", scale: "s" }), h("div", { class: "padding-inline-start-75" }, this._translations.information))) : undefined, h("calcite-action", { class: headerClass, disabled: this._tableOnly, icon: icon, id: id, onClick: () => this._togglePopup(), slot: "header-actions-end", text: "" }), !this._tableOnly ? h("calcite-tooltip", { class: themeClass, label: "", placement: "bottom", "reference-element": id }, h("span", null, tooltip)) : undefined, this._getCardNode())));
407
415
  }
408
416
  /**
409
417
  * Toggle the popup information
@@ -597,7 +605,7 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
597
605
  "_panelOpen": [32],
598
606
  "_numSelected": [32],
599
607
  "_tableOnly": [32]
600
- }, [[8, "featureSelectionChange", "featureSelectionChange"], [8, "popupClosed", "popupClosed"], [8, "idsFound", "idsFound"], [8, "layoutChanged", "layoutChanged"], [8, "mapChanged", "mapChanged"], [8, "beforeMapChanged", "beforeMapChanged"], [8, "layerSelectionChange", "layerSelectionChange"]], {
608
+ }, [[8, "featureSelectionChange", "featureSelectionChange"], [8, "popupClosed", "popupClosed"], [8, "idsFound", "idsFound"], [8, "layoutChanged", "layoutChanged"], [8, "mapChanged", "mapChanged"], [8, "beforeMapChanged", "beforeMapChanged"], [8, "layerSelectionChange", "layerSelectionChange"], [8, "mapInfoChange", "mapInfoChange"]], {
601
609
  "enableZoom": ["enableZoomWatchHandler"]
602
610
  }]);
603
611
  function defineCustomElement$1() {
@@ -258,6 +258,7 @@ const InfoCard = /*@__PURE__*/ proxyCustomElement(class InfoCard extends HTMLEle
258
258
  });
259
259
  this._features.viewModel.highlightEnabled = this.highlightEnabled;
260
260
  this.reactiveUtils.watch(() => this._features.viewModel.featureMenuOpen, (isOpen) => {
261
+ this._count = this._getCount();
261
262
  if (!isOpen) {
262
263
  this._showListView = isOpen;
263
264
  }
@@ -34,7 +34,7 @@ async function getMapLayerHash(mapView, onlyShowUpdatableLayers) {
34
34
  let layerHash;
35
35
  await mapView.when(() => {
36
36
  layerHash = mapView.map.allLayers.toArray().reduce((prev, cur) => {
37
- if (cur.type === "feature") {
37
+ if (cur.type === "feature" || (cur === null || cur === void 0 ? void 0 : cur.type) === "subtype-group") {
38
38
  prev[cur.id] = {
39
39
  name: cur.title,
40
40
  supportsUpdate: undefined
@@ -12,7 +12,7 @@ import { o as onToggleOpenCloseComponent } from './openCloseComponent-9f90f493.j
12
12
  import { c as connectMessages, s as setUpMessages, d as disconnectMessages, u as updateMessages } from './t9n-436fb2b1.js';
13
13
  import { K as KindIcons } from './resources-88a48c5c.js';
14
14
  import { g as getLocaleComponentStrings, l as loadModules } from './locale-bcbea4ef.js';
15
- import { a as getAllLayers } from './mapViewUtils-2ec19fb0.js';
15
+ import { a as getAllLayers } from './mapViewUtils-c83c03a4.js';
16
16
  import { P as PopupUtils } from './popupUtils-af124b47.js';
17
17
  import './guid-b75a5f7b.js';
18
18
  import './resources-8834f920.js';
@@ -897,6 +897,7 @@ const InfoCard = class {
897
897
  });
898
898
  this._features.viewModel.highlightEnabled = this.highlightEnabled;
899
899
  this.reactiveUtils.watch(() => this._features.viewModel.featureMenuOpen, (isOpen) => {
900
+ this._count = this._getCount();
900
901
  if (!isOpen) {
901
902
  this._showListView = isOpen;
902
903
  }
@@ -14,7 +14,7 @@ import { c as createObserver } from './observers-d04d1da9.js';
14
14
  import { o as onToggleOpenCloseComponent } from './openCloseComponent-9f90f493.js';
15
15
  import { g as getIconScale } from './component-edd2c3cd.js';
16
16
  import { g as getLocaleComponentStrings } from './locale-bcbea4ef.js';
17
- import { c as getMapLayerHash, o as getMapTableHash } from './mapViewUtils-2ec19fb0.js';
17
+ import { c as getMapLayerHash, o as getMapTableHash } from './mapViewUtils-c83c03a4.js';
18
18
  import { s as state } from './publicNotificationStore-223faed2.js';
19
19
  import './resources-8834f920.js';
20
20
  import './debounce-229b1a22.js';
@@ -12,7 +12,7 @@ import { c as connectLocalized, d as disconnectLocalized } from './locale-904407
12
12
  import { c as connectMessages, s as setUpMessages, d as disconnectMessages, u as updateMessages } from './t9n-436fb2b1.js';
13
13
  import { S as SLOTS$1 } from './resources-00983bd3.js';
14
14
  import { l as loadModules, g as getLocaleComponentStrings, f as formatNumber } from './locale-bcbea4ef.js';
15
- import { a as getAllLayers, g as getLayerOrTable, b as getFeatureLayerView, h as highlightFeatures, c as getMapLayerHash } from './mapViewUtils-2ec19fb0.js';
15
+ import { a as getAllLayers, g as getLayerOrTable, b as getFeatureLayerView, h as highlightFeatures, c as getMapLayerHash } from './mapViewUtils-c83c03a4.js';
16
16
  import { P as PopupUtils } from './popupUtils-af124b47.js';
17
17
  import './guid-b75a5f7b.js';
18
18
  import './resources-8834f920.js';
@@ -5,8 +5,8 @@
5
5
  */
6
6
  import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-164d485a.js';
7
7
  import { g as getLocaleComponentStrings, l as loadModules } from './locale-bcbea4ef.js';
8
- import { q as queryFeaturesByID, g as getLayerOrTable, d as goToSelection, e as queryAllIds, f as queryFeatureIds, i as queryFeaturesByGlobalID } from './mapViewUtils-2ec19fb0.js';
9
- import { d as downloadCSV } from './downloadUtils-df4f21f6.js';
8
+ import { q as queryFeaturesByID, g as getLayerOrTable, d as goToSelection, e as queryAllIds, f as queryFeatureIds, i as queryFeaturesByGlobalID } from './mapViewUtils-c83c03a4.js';
9
+ import { d as downloadCSV } from './downloadUtils-25aa808f.js';
10
10
  import './esri-loader-1b324844.js';
11
11
  import './_commonjsHelpers-0f74c230.js';
12
12
  import './interfaces-586e863c.js';
@@ -3,18 +3,19 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import { r as registerInstance, h, H as Host, g as getElement } from './index-164d485a.js';
6
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-164d485a.js';
7
7
  import { g as getLocaleComponentStrings } from './locale-bcbea4ef.js';
8
8
  import { E as ELayoutMode } from './interfaces-586e863c.js';
9
- import { g as getLayerOrTable } from './mapViewUtils-2ec19fb0.js';
9
+ import { g as getLayerOrTable } from './mapViewUtils-c83c03a4.js';
10
10
  import './esri-loader-1b324844.js';
11
11
  import './_commonjsHelpers-0f74c230.js';
12
12
 
13
- const crowdsourceManagerCss = ":host{display:block;--calcite-label-margin-bottom:0px;--solutions-theme-foreground-color:var(--calcite-color-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-color-border-3)}.border-bottom{border-bottom:1px solid var(--calcite-color-border-3)}.border-sides{border-left:1px solid var(--calcite-color-border-3);border-right:1px solid var(--calcite-color-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}.position-absolute-0{position:absolute;top:0px;bottom:0px;left:0px;right:0px}.visibility-hidden{visibility:hidden;height:0px}.position-fixed{position:fixed}.border-width-0{border-width:0px}.border-bottom-width-0{border-bottom-width:0px}";
13
+ const crowdsourceManagerCss = ":host{display:block;--calcite-label-margin-bottom:0px;--solutions-theme-foreground-color:var(--calcite-color-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-color-border-3)}.border-bottom{border-bottom:1px solid var(--calcite-color-border-3)}.border-sides{border-left:1px solid var(--calcite-color-border-3);border-right:1px solid var(--calcite-color-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}.position-absolute-0{position:absolute;top:0px;bottom:0px;left:0px;right:0px}.visibility-hidden{visibility:hidden;height:0px}.position-fixed{position:fixed}.border-width-0{border-width:0px}.border-bottom-width-0{border-bottom-width:0px}.floating-container{position:fixed;width:100px;height:10px;bottom:0;right:0;margin:100px 0px}.floating-container .floating-button{box-shadow:0 10px 25px rgb(92 93 94 / 60%);transform:translatey(5px);transition:all 0.3s}";
14
14
 
15
15
  const CrowdsourceManager = class {
16
16
  constructor(hostRef) {
17
17
  registerInstance(this, hostRef);
18
+ this.infoIconButtonClick = createEvent(this, "infoIconButtonClick", 7);
18
19
  //--------------------------------------------------------------------------
19
20
  //
20
21
  // Properties (protected)
@@ -55,7 +56,7 @@ const CrowdsourceManager = class {
55
56
  this.enableSearch = true;
56
57
  this.enableShare = false;
57
58
  this.enableZoom = true;
58
- this.hideMapOnLoad = undefined;
59
+ this.hideMapOnLoad = false;
59
60
  this.mapInfos = [];
60
61
  this.onlyShowUpdatableLayers = true;
61
62
  this.popupHeaderColor = undefined;
@@ -69,7 +70,7 @@ const CrowdsourceManager = class {
69
70
  this.theme = "light";
70
71
  this.zoomAndScrollToSelected = false;
71
72
  this.zoomToScale = undefined;
72
- this._expandPopup = false;
73
+ this._expandPopup = this.hideMapOnLoad;
73
74
  this._hideFooter = false;
74
75
  this._hideTable = false;
75
76
  this._isMobile = undefined;
@@ -93,16 +94,6 @@ const CrowdsourceManager = class {
93
94
  enableZoomWatchHandler() {
94
95
  this._initMapZoom();
95
96
  }
96
- //--------------------------------------------------------------------------
97
- //
98
- // Methods (public)
99
- //
100
- //--------------------------------------------------------------------------
101
- //--------------------------------------------------------------------------
102
- //
103
- // Events (public)
104
- //
105
- //--------------------------------------------------------------------------
106
97
  /**
107
98
  * Listen for changes in feature selection and show or hide the map, popup, and table
108
99
  */
@@ -149,7 +140,6 @@ const CrowdsourceManager = class {
149
140
  async beforeMapChanged() {
150
141
  if (this._expandPopup) {
151
142
  this._shouldSetMapView = true;
152
- this._expandPopup = false;
153
143
  }
154
144
  }
155
145
  /**
@@ -162,6 +152,12 @@ const CrowdsourceManager = class {
162
152
  this._layer = layer;
163
153
  });
164
154
  }
155
+ /**
156
+ * Update the state expandPopup when mapInfoChange event occurs
157
+ */
158
+ async mapInfoChange() {
159
+ this._expandPopup = this.hideMapOnLoad;
160
+ }
165
161
  //--------------------------------------------------------------------------
166
162
  //
167
163
  // Functions (lifecycle)
@@ -301,7 +297,14 @@ const CrowdsourceManager = class {
301
297
  */
302
298
  _getBody(layoutMode, panelOpen, hideTable) {
303
299
  const contentClass = layoutMode === ELayoutMode.HORIZONTAL ? "" : "display-flex";
304
- return (h("calcite-panel", { class: "width-full height-full" }, h("div", { class: `width-full height-full overflow-hidden ${contentClass}` }, this._getMapAndCard(layoutMode, panelOpen, hideTable), this._getTable(layoutMode, panelOpen, hideTable))));
300
+ const themeClass = this.theme === "dark" ? "calcite-mode-dark" : "calcite-mode-light";
301
+ return (h("calcite-panel", { class: "width-full height-full" }, h("div", { class: `width-full height-full overflow-hidden ${contentClass}` }, this._getMapAndCard(layoutMode, panelOpen, hideTable), this._getTable(layoutMode, panelOpen, hideTable)), h("div", { class: "floating-container", onClick: this.infoButtonClick.bind(this) }, h("calcite-button", { appearance: "solid", class: `floating-button ${themeClass}`, "icon-start": "information-letter", kind: "neutral", label: "", round: true, scale: "l", "split-child": "primary", width: "auto" }))));
302
+ }
303
+ /**
304
+ * Emit the event when info button clicked
305
+ */
306
+ infoButtonClick() {
307
+ this.infoIconButtonClick.emit();
305
308
  }
306
309
  /**
307
310
  * Get the map and card nodes based for the current layout options
@@ -347,7 +350,12 @@ const CrowdsourceManager = class {
347
350
  const headerClass = this._isMobile ? "display-none height-0" : "";
348
351
  const headerTheme = !this._isMobile ? "calcite-mode-dark" : "calcite-mode-light";
349
352
  const containerClass = this._isMobile && this._hideTable ? "position-absolute-0 width-full height-full" : this._isMobile ? "display-none height-0" : "";
350
- return (h("div", { class: `${headerTheme} ${popupNodeClass} ${containerClass}` }, h("calcite-panel", null, !this._isMobile ? (h("div", { class: `display-flex align-items-center ${headerClass}`, slot: "header-content" }, h("calcite-icon", { icon: "information", scale: "s" }), h("div", { class: "padding-inline-start-75" }, this._translations.information))) : undefined, h("calcite-action", { class: headerClass, disabled: this._tableOnly, icon: icon, id: id, onClick: () => this._togglePopup(), slot: "header-actions-end", text: "" }), !this._tableOnly ? h("calcite-tooltip", { class: themeClass, label: "", placement: "bottom", "reference-element": id }, h("span", null, tooltip)) : undefined, this._getCardNode())));
353
+ return (h("div", { class: `${headerTheme} ${popupNodeClass} ${containerClass}`, style: {
354
+ '--calcite-color-foreground-1': this.popupHeaderColor,
355
+ '--calcite-color-foreground-2': this.popupHeaderHoverColor,
356
+ '--calcite-color-text-3': this.popupHeaderHoverTextColor,
357
+ '--calcite-color-text-2': this.popupHeaderTextColor, /* font color to apply to the popup header */
358
+ } }, h("calcite-panel", null, !this._isMobile ? (h("div", { class: `display-flex align-items-center ${headerClass}`, slot: "header-content" }, h("calcite-icon", { icon: "information", scale: "s" }), h("div", { class: "padding-inline-start-75" }, this._translations.information))) : undefined, h("calcite-action", { class: headerClass, disabled: this._tableOnly, icon: icon, id: id, onClick: () => this._togglePopup(), slot: "header-actions-end", text: "" }), !this._tableOnly ? h("calcite-tooltip", { class: themeClass, label: "", placement: "bottom", "reference-element": id }, h("span", null, tooltip)) : undefined, this._getCardNode())));
351
359
  }
352
360
  /**
353
361
  * Toggle the popup information
@@ -5,7 +5,7 @@
5
5
  */
6
6
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-164d485a.js';
7
7
  import { l as loadModules, g as getLocaleComponentStrings } from './locale-bcbea4ef.js';
8
- import { a as getAllLayers, b as getFeatureLayerView, h as highlightFeatures, c as getMapLayerHash, g as getLayerOrTable, q as queryFeaturesByID } from './mapViewUtils-2ec19fb0.js';
8
+ import { a as getAllLayers, b as getFeatureLayerView, h as highlightFeatures, c as getMapLayerHash, g as getLayerOrTable, q as queryFeaturesByID } from './mapViewUtils-c83c03a4.js';
9
9
  import './esri-loader-1b324844.js';
10
10
  import './_commonjsHelpers-0f74c230.js';
11
11
  import './interfaces-586e863c.js';
@@ -6,7 +6,7 @@
6
6
  import { c as createCommonjsModule, d as getDefaultExportFromCjs } from './_commonjsHelpers-0f74c230.js';
7
7
  import { a as getAssetPath } from './index-164d485a.js';
8
8
  import { l as loadModules } from './locale-bcbea4ef.js';
9
- import { q as queryFeaturesByID } from './mapViewUtils-2ec19fb0.js';
9
+ import { q as queryFeaturesByID } from './mapViewUtils-c83c03a4.js';
10
10
  import './solution-resource-77aa99c8.js';
11
11
  import './index-a1e91462.js';
12
12
  import { _ as __assign$1, r as request, c as cleanUrl, g as getJson } from './restHelpersGet-2a85d395.js';
@@ -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):import('./index.es-904fb846.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},
1511
+ function(t){function e(){return (n.canvg?Promise.resolve(n.canvg):import('./index.es-a16c9db4.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
@@ -4,11 +4,11 @@
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
6
  import { a as commonjsGlobal, c as createCommonjsModule, d as getDefaultExportFromCjs } from './_commonjsHelpers-0f74c230.js';
7
- import { _ as _typeof_1 } from './downloadUtils-df4f21f6.js';
7
+ import { _ as _typeof_1 } from './downloadUtils-25aa808f.js';
8
8
  import './index-164d485a.js';
9
9
  import './locale-bcbea4ef.js';
10
10
  import './esri-loader-1b324844.js';
11
- import './mapViewUtils-2ec19fb0.js';
11
+ import './mapViewUtils-c83c03a4.js';
12
12
  import './interfaces-586e863c.js';
13
13
  import './solution-resource-77aa99c8.js';
14
14
  import './index-a1e91462.js';