@esri/solutions-components 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (196) hide show
  1. package/dist/assets/t9n/feature-comments/resources.json +3 -0
  2. package/dist/assets/t9n/feature-comments/resources_en.json +3 -0
  3. package/dist/assets/t9n/feature-form-flow-item/resources.json +3 -0
  4. package/dist/assets/t9n/feature-form-flow-item/resources_en.json +3 -0
  5. package/dist/assets/t9n/layer-table/resources.json +2 -1
  6. package/dist/assets/t9n/layer-table/resources_en.json +2 -1
  7. package/dist/assets/t9n/list-flow-item/resources.json +3 -0
  8. package/dist/assets/t9n/list-flow-item/resources_en.json +3 -0
  9. package/dist/assets/t9n/location-flow-item/resources.json +3 -0
  10. package/dist/assets/t9n/location-flow-item/resources_en.json +3 -0
  11. package/dist/assets/t9n/share-item/resources.json +3 -0
  12. package/dist/assets/t9n/share-item/resources_en.json +3 -0
  13. package/dist/cjs/{list-item.cjs.entry.js → arcgis-login.cjs.entry.js} +4 -19
  14. package/dist/cjs/basemap-gallery_7.cjs.entry.js +13 -9
  15. package/dist/cjs/calcite-action_2.cjs.entry.js +61 -392
  16. package/dist/cjs/calcite-alert_3.cjs.entry.js +21 -3
  17. package/dist/cjs/calcite-combobox_6.cjs.entry.js +32 -8
  18. package/dist/cjs/calcite-popover.cjs.entry.js +418 -0
  19. package/dist/cjs/card-manager_3.cjs.entry.js +154 -18
  20. package/dist/cjs/crowdsource-manager.cjs.entry.js +24 -2
  21. package/dist/cjs/crowdsource-reporter.cjs.entry.js +45 -6
  22. package/dist/cjs/{downloadUtils-e3e595e9.js → downloadUtils-9c4fde54.js} +2 -2
  23. package/dist/cjs/feature-comments.cjs.entry.js +60 -0
  24. package/dist/cjs/feature-form-flow-item.cjs.entry.js +60 -0
  25. package/dist/cjs/features-flow-item.cjs.entry.js +60 -0
  26. package/dist/cjs/{index.es-047537b5.js → index.es-d208a6d6.js} +2 -2
  27. package/dist/cjs/list-flow-item.cjs.entry.js +60 -0
  28. package/dist/cjs/loader.cjs.js +1 -1
  29. package/dist/cjs/location-flow-item.cjs.entry.js +60 -0
  30. package/dist/cjs/map-select-tools_3.cjs.entry.js +2 -2
  31. package/dist/cjs/{mapViewUtils-f7bbc35b.js → mapViewUtils-bab83c90.js} +21 -0
  32. package/dist/cjs/public-notification.cjs.entry.js +2 -2
  33. package/dist/cjs/refine-results-flow-item.cjs.entry.js +60 -0
  34. package/dist/cjs/share-item.cjs.entry.js +60 -0
  35. package/dist/cjs/solutions-components.cjs.js +1 -1
  36. package/dist/collection/collection-manifest.json +8 -1
  37. package/dist/collection/components/{list-item/list-item.js → arcgis-login/arcgis-login.js} +4 -19
  38. package/dist/collection/components/arcgis-login/test/arcgis-login.e2e.js +29 -0
  39. package/dist/collection/components/arcgis-login/test/arcgis-login.spec.js +37 -0
  40. package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +118 -2
  41. package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +294 -6
  42. package/dist/collection/components/feature-comments/feature-comments.css +19 -0
  43. package/dist/collection/components/feature-comments/feature-comments.js +74 -0
  44. package/dist/collection/components/feature-comments/test/feature-comments.e2e.js +29 -0
  45. package/dist/collection/components/feature-comments/test/feature-comments.spec.js +37 -0
  46. package/dist/collection/components/feature-form-flow-item/feature-form-flow-item.css +19 -0
  47. package/dist/collection/components/feature-form-flow-item/feature-form-flow-item.js +74 -0
  48. package/dist/collection/components/feature-form-flow-item/test/feature-form-flow-item.e2e.js +29 -0
  49. package/dist/collection/components/feature-form-flow-item/test/feature-form-flow-item.spec.js +37 -0
  50. package/dist/collection/components/features-flow-item/features-flow-item.css +19 -0
  51. package/dist/collection/components/features-flow-item/features-flow-item.js +74 -0
  52. package/dist/collection/components/features-flow-item/test/features-flow-item.e2e.js +29 -0
  53. package/dist/collection/components/features-flow-item/test/features-flow-item.spec.js +37 -0
  54. package/dist/collection/components/info-card/info-card.js +21 -2
  55. package/dist/collection/components/layer-table/layer-table.js +199 -10
  56. package/dist/collection/components/list-flow-item/list-flow-item.css +19 -0
  57. package/dist/collection/components/list-flow-item/list-flow-item.js +74 -0
  58. package/dist/collection/components/list-flow-item/test/list-flow-item.e2e.js +29 -0
  59. package/dist/collection/components/list-flow-item/test/list-flow-item.spec.js +37 -0
  60. package/dist/collection/components/location-flow-item/location-flow-item.css +19 -0
  61. package/dist/collection/components/location-flow-item/location-flow-item.js +74 -0
  62. package/dist/collection/components/location-flow-item/test/location-flow-item.e2e.js +29 -0
  63. package/dist/collection/components/location-flow-item/test/location-flow-item.spec.js +37 -0
  64. package/dist/collection/components/map-card/map-card.js +38 -7
  65. package/dist/collection/components/map-layer-picker/map-layer-picker.js +49 -7
  66. package/dist/collection/components/map-picker/map-picker.js +37 -9
  67. package/dist/collection/components/refine-results-flow-item/refine-results-flow-item.css +19 -0
  68. package/dist/collection/components/refine-results-flow-item/refine-results-flow-item.js +74 -0
  69. package/dist/collection/components/refine-results-flow-item/test/refine-results-flow-item.e2e.js +29 -0
  70. package/dist/collection/components/refine-results-flow-item/test/refine-results-flow-item.spec.js +37 -0
  71. package/dist/collection/components/share-item/share-item.css +19 -0
  72. package/dist/collection/components/share-item/share-item.js +74 -0
  73. package/dist/collection/components/share-item/test/share-item.e2e.js +29 -0
  74. package/dist/collection/components/share-item/test/share-item.spec.js +37 -0
  75. package/dist/collection/demos/crowdsource-reporter.html +56 -15
  76. package/dist/collection/utils/interfaces.ts +5 -0
  77. package/dist/collection/utils/queryUtils.js +20 -0
  78. package/dist/collection/utils/queryUtils.ts +26 -0
  79. package/dist/components/arcgis-login.d.ts +11 -0
  80. package/dist/components/arcgis-login.js +75 -0
  81. package/dist/components/calcite-list-item.js +1 -1
  82. package/dist/components/card-manager2.js +7 -1
  83. package/dist/components/crowdsource-manager.js +32 -3
  84. package/dist/components/crowdsource-reporter.js +61 -7
  85. package/dist/components/feature-comments.d.ts +11 -0
  86. package/dist/components/feature-comments.js +75 -0
  87. package/dist/components/feature-form-flow-item.d.ts +11 -0
  88. package/dist/components/feature-form-flow-item.js +75 -0
  89. package/dist/components/features-flow-item.d.ts +11 -0
  90. package/dist/components/features-flow-item.js +75 -0
  91. package/dist/components/info-card2.js +28 -3
  92. package/dist/components/layer-table2.js +138 -10
  93. package/dist/components/list-flow-item.d.ts +11 -0
  94. package/dist/components/list-flow-item.js +75 -0
  95. package/dist/components/list-item.js +425 -55
  96. package/dist/components/location-flow-item.d.ts +11 -0
  97. package/dist/components/location-flow-item.js +75 -0
  98. package/dist/components/map-card2.js +22 -8
  99. package/dist/components/map-layer-picker2.js +32 -7
  100. package/dist/components/map-picker2.js +16 -11
  101. package/dist/components/map-select-tools2.js +1 -1
  102. package/dist/components/public-notification.js +1 -1
  103. package/dist/components/queryUtils.js +21 -1
  104. package/dist/components/refine-results-flow-item.d.ts +11 -0
  105. package/dist/components/refine-results-flow-item.js +75 -0
  106. package/dist/components/refine-selection2.js +2 -2
  107. package/dist/components/{list-item.d.ts → share-item.d.ts} +4 -4
  108. package/dist/components/share-item.js +75 -0
  109. package/dist/esm/{list-item.entry.js → arcgis-login.entry.js} +4 -19
  110. package/dist/esm/basemap-gallery_7.entry.js +13 -9
  111. package/dist/esm/calcite-action_2.entry.js +63 -394
  112. package/dist/esm/calcite-alert_3.entry.js +21 -3
  113. package/dist/esm/calcite-combobox_6.entry.js +32 -8
  114. package/dist/esm/calcite-popover.entry.js +414 -0
  115. package/dist/esm/card-manager_3.entry.js +154 -18
  116. package/dist/esm/crowdsource-manager.entry.js +24 -2
  117. package/dist/esm/crowdsource-reporter.entry.js +45 -6
  118. package/dist/esm/{downloadUtils-8fbd1347.js → downloadUtils-b84a6f55.js} +2 -2
  119. package/dist/esm/feature-comments.entry.js +56 -0
  120. package/dist/esm/feature-form-flow-item.entry.js +56 -0
  121. package/dist/esm/features-flow-item.entry.js +56 -0
  122. package/dist/esm/{index.es-b6705ce7.js → index.es-0d4698c7.js} +2 -2
  123. package/dist/esm/list-flow-item.entry.js +56 -0
  124. package/dist/esm/loader.js +1 -1
  125. package/dist/esm/location-flow-item.entry.js +56 -0
  126. package/dist/esm/map-select-tools_3.entry.js +2 -2
  127. package/dist/esm/{mapViewUtils-1e2befd7.js → mapViewUtils-88f363b6.js} +21 -1
  128. package/dist/esm/public-notification.entry.js +2 -2
  129. package/dist/esm/refine-results-flow-item.entry.js +56 -0
  130. package/dist/esm/share-item.entry.js +56 -0
  131. package/dist/esm/solutions-components.js +1 -1
  132. package/dist/solutions-components/demos/crowdsource-reporter.html +56 -15
  133. package/dist/solutions-components/{p-072680a5.js → p-214d41c3.js} +2 -2
  134. package/dist/solutions-components/p-28657abb.entry.js +11 -0
  135. package/dist/solutions-components/p-31b66bc3.entry.js +6 -0
  136. package/dist/solutions-components/{p-0123207d.entry.js → p-34737944.entry.js} +1 -1
  137. package/dist/solutions-components/{p-13d0424a.entry.js → p-3ced939f.entry.js} +1 -1
  138. package/dist/solutions-components/p-3dfbf45e.entry.js +6 -0
  139. package/dist/solutions-components/{p-092fd5d9.js → p-3ee78186.js} +1 -1
  140. package/dist/solutions-components/{p-7f793144.entry.js → p-4327c361.entry.js} +1 -1
  141. package/dist/solutions-components/p-455f4ed8.entry.js +17 -0
  142. package/dist/solutions-components/p-478fc7cb.entry.js +6 -0
  143. package/dist/solutions-components/p-4aafb627.js +36 -0
  144. package/dist/solutions-components/p-58562dda.entry.js +6 -0
  145. package/dist/solutions-components/{p-f367db61.entry.js → p-81503752.entry.js} +1 -1
  146. package/dist/solutions-components/{p-c90671e1.entry.js → p-9d54d7a0.entry.js} +4 -4
  147. package/dist/solutions-components/p-a5d70d3a.entry.js +6 -0
  148. package/dist/solutions-components/p-bd62df52.entry.js +6 -0
  149. package/dist/solutions-components/{p-ca780ab8.entry.js → p-d6f51bea.entry.js} +2 -2
  150. package/dist/solutions-components/p-e6371690.entry.js +6 -0
  151. package/dist/solutions-components/p-e7aad23d.entry.js +6 -0
  152. package/dist/solutions-components/p-ed95f634.entry.js +6 -0
  153. package/dist/solutions-components/p-fd08afb5.entry.js +6 -0
  154. package/dist/solutions-components/solutions-components.esm.js +1 -1
  155. package/dist/solutions-components/utils/interfaces.ts +5 -0
  156. package/dist/solutions-components/utils/queryUtils.ts +26 -0
  157. package/dist/types/components/{list-item/list-item.d.ts → arcgis-login/arcgis-login.d.ts} +2 -9
  158. package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +36 -0
  159. package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +73 -0
  160. package/dist/types/components/feature-comments/feature-comments.d.ts +19 -0
  161. package/dist/types/components/feature-form-flow-item/feature-form-flow-item.d.ts +19 -0
  162. package/dist/types/components/features-flow-item/features-flow-item.d.ts +19 -0
  163. package/dist/types/components/info-card/info-card.d.ts +8 -0
  164. package/dist/types/components/layer-table/layer-table.d.ts +77 -2
  165. package/dist/types/components/list-flow-item/list-flow-item.d.ts +19 -0
  166. package/dist/types/components/location-flow-item/location-flow-item.d.ts +19 -0
  167. package/dist/types/components/map-card/map-card.d.ts +12 -0
  168. package/dist/types/components/map-layer-picker/map-layer-picker.d.ts +15 -2
  169. package/dist/types/components/map-picker/map-picker.d.ts +1 -4
  170. package/dist/types/components/refine-results-flow-item/refine-results-flow-item.d.ts +19 -0
  171. package/dist/types/components/share-item/share-item.d.ts +19 -0
  172. package/dist/types/components.d.ts +301 -9
  173. package/dist/types/preact.d.ts +15 -1
  174. package/dist/types/utils/interfaces.d.ts +4 -0
  175. package/dist/types/utils/queryUtils.d.ts +9 -0
  176. package/package.json +1 -1
  177. package/dist/assets/t9n/config-buffer-tools/resources.json +0 -12
  178. package/dist/assets/t9n/config-buffer-tools/resources_en.json +0 -12
  179. package/dist/assets/t9n/config-draw-tools/resources.json +0 -10
  180. package/dist/assets/t9n/config-draw-tools/resources_en.json +0 -10
  181. package/dist/assets/t9n/config-layer-picker/resources.json +0 -3
  182. package/dist/assets/t9n/config-layer-picker/resources_en.json +0 -3
  183. package/dist/assets/t9n/config-pdf-download/resources.json +0 -6
  184. package/dist/assets/t9n/config-pdf-download/resources_en.json +0 -6
  185. package/dist/cjs/calcite-loader.cjs.entry.js +0 -80
  186. package/dist/components/list-item2.js +0 -460
  187. package/dist/esm/calcite-loader.entry.js +0 -76
  188. package/dist/solutions-components/p-11cb7b04.entry.js +0 -6
  189. package/dist/solutions-components/p-45cf4f67.entry.js +0 -6
  190. package/dist/solutions-components/p-4807b2a1.js +0 -36
  191. package/dist/solutions-components/p-557a1912.entry.js +0 -6
  192. package/dist/solutions-components/p-68735975.entry.js +0 -6
  193. package/dist/solutions-components/p-ec830ecb.entry.js +0 -23
  194. /package/dist/assets/t9n/{list-item → arcgis-login}/resources.json +0 -0
  195. /package/dist/assets/t9n/{list-item → arcgis-login}/resources_en.json +0 -0
  196. /package/dist/collection/components/{list-item/list-item.css → arcgis-login/arcgis-login.css} +0 -0
@@ -5,9 +5,9 @@
5
5
  */
6
6
  import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-b05b3079.js';
7
7
  import { g as getLocaleComponentStrings } from './locale-5bdc0197.js';
8
- import { q as queryFeaturesByID, a as getLayerOrTable, g as goToSelection, b as queryAllIds } from './mapViewUtils-1e2befd7.js';
8
+ import { q as queryFeaturesByID, a as getLayerOrTable, g as goToSelection, b as queryAllIds, c as queryFeaturesByGlobalID } from './mapViewUtils-88f363b6.js';
9
9
  import { l as loadModules } from './loadModules-0bf05e85.js';
10
- import { d as downloadCSV } from './downloadUtils-8fbd1347.js';
10
+ import { d as downloadCSV } from './downloadUtils-b84a6f55.js';
11
11
  import './_commonjsHelpers-d5f9d613.js';
12
12
  import './interfaces-7470d906.js';
13
13
  import './solution-resource-be35d35b.js';
@@ -111,6 +111,14 @@ const LayerTable = class {
111
111
  * number[]: A list of all IDs for the current layer
112
112
  */
113
113
  this._allIds = [];
114
+ /**
115
+ * boolean: When true the default global id provided via url param has been honored and should now be ignored
116
+ */
117
+ this._defaultGlobalIdHonored = false;
118
+ /**
119
+ * boolean: When true the default OID provided via url param has been honored and should now be ignored
120
+ */
121
+ this._defaultOidHonored = false;
114
122
  /**
115
123
  * bool: When true the table is being sorted
116
124
  */
@@ -126,7 +134,11 @@ const LayerTable = class {
126
134
  this.onTableNodeCreate = (node) => {
127
135
  this._tableNode = node;
128
136
  };
137
+ this.defaultLayerId = undefined;
138
+ this.defaultGlobalId = undefined;
139
+ this.defaultOid = undefined;
129
140
  this.enableAutoRefresh = undefined;
141
+ this.enableColumnReorder = true;
130
142
  this.enableCSV = undefined;
131
143
  this.enableInlineEdit = undefined;
132
144
  this.enableZoom = undefined;
@@ -141,6 +153,7 @@ const LayerTable = class {
141
153
  this._isDeleting = false;
142
154
  this._layer = undefined;
143
155
  this._selectedIndexes = [];
156
+ this._showHideOpen = false;
144
157
  this._showOnlySelected = false;
145
158
  this._sortActive = false;
146
159
  this._translations = undefined;
@@ -301,6 +314,7 @@ const LayerTable = class {
301
314
  */
302
315
  async componentDidLoad() {
303
316
  this._resizeObserver.observe(this._toolbar);
317
+ document.onclick = (e) => this._handleDocumentClick(e);
304
318
  }
305
319
  /**
306
320
  * Called after the component is rendered
@@ -355,7 +369,7 @@ const LayerTable = class {
355
369
  * @returns The dom node that contains the controls
356
370
  */
357
371
  _getActionBar() {
358
- return (h("calcite-action-bar", { expandDisabled: true, expanded: true, id: this._getId("bar"), layout: "horizontal" }, h("div", { class: "border-end", id: "solutions-map-layer-picker-container" }, h("map-layer-picker", { appearance: "transparent", mapView: this.mapView, onLayerSelectionChange: (evt) => this._layerSelectionChanged(evt), onlyShowUpdatableLayers: this.onlyShowUpdatableLayers, placeholderIcon: "layers", scale: "l", showTables: true, type: "dropdown" })), this._getActions()));
372
+ return (h("calcite-action-bar", { expandDisabled: true, expanded: true, id: this._getId("bar"), layout: "horizontal" }, h("div", { class: "border-end", id: "solutions-map-layer-picker-container" }, h("map-layer-picker", { appearance: "transparent", defaultLayerId: this.defaultLayerId, mapView: this.mapView, onLayerSelectionChange: (evt) => this._layerSelectionChanged(evt), onlyShowUpdatableLayers: this.onlyShowUpdatableLayers, placeholderIcon: "layers", scale: "l", showTables: true, type: "dropdown" })), this._getActions()));
359
373
  }
360
374
  /**
361
375
  * Get the actions that are used for various interactions with the table
@@ -368,11 +382,33 @@ const LayerTable = class {
368
382
  if (cur && !cur.isOverflow) {
369
383
  prev.push(cur.isDanger ?
370
384
  this._getDangerAction(cur.icon, cur.label, cur.func, cur.disabled) :
371
- this._getAction(cur.icon, cur.label, cur.func, cur.disabled));
385
+ cur.isSublist ? (h("calcite-dropdown", { closeOnSelectDisabled: true, id: this._getId(cur.icon), onCalciteDropdownBeforeClose: () => this._forceShowHide(), ref: (el) => this._showHideDropdown = el }, this._getAction(this._showHideOpen ? "chevron-down" : cur.icon, cur.label, cur.func, cur.disabled, "trigger"), this._showHideOpen ? this._getFieldlist() : undefined)) :
386
+ this._getAction(cur.icon, cur.label, cur.func, cur.disabled));
372
387
  }
373
388
  return prev;
374
389
  }, []);
375
390
  }
391
+ /**
392
+ * Get the list of fields as dropdown items and store the current selected state so
393
+ * we can show/hide the appropriate fields
394
+ *
395
+ * @returns Node with the fields as dropdown items
396
+ */
397
+ _getFieldlist() {
398
+ return this._columnsInfo ? (h("calcite-dropdown-group", { "selection-mode": "multiple" }, Object.keys(this._columnsInfo).map(k => {
399
+ const selected = this._columnsInfo[k];
400
+ return (h("calcite-dropdown-item", { id: k, onClick: (e) => {
401
+ const target = e.target;
402
+ this._columnsInfo[target.id] = target.selected;
403
+ if (!target.selected) {
404
+ this._table.hideColumn(target.id);
405
+ }
406
+ else {
407
+ this._table.showColumn(target.id);
408
+ }
409
+ }, selected: selected }, k));
410
+ }))) : undefined;
411
+ }
376
412
  /**
377
413
  * Update actions enabled prop based on number of selected indexes
378
414
  *
@@ -461,7 +497,14 @@ const LayerTable = class {
461
497
  label: this._translations.exportCSV,
462
498
  disabled: featuresEmpty,
463
499
  isOverflow: false
464
- } : undefined];
500
+ } : undefined, {
501
+ icon: this._showHideOpen ? "chevron-down" : "chevron-right",
502
+ func: () => this._toggleShowHide(),
503
+ label: this._translations.showHideColumns,
504
+ disabled: false,
505
+ isOverflow: false,
506
+ isSublist: true
507
+ }];
465
508
  this._defaultVisibleToolSizeInfos = undefined;
466
509
  }
467
510
  /**
@@ -612,9 +655,9 @@ const LayerTable = class {
612
655
  */
613
656
  _getDropdown(id) {
614
657
  const dropdownItems = this._getDropdownItems();
615
- return dropdownItems.length > 0 ? (h("calcite-dropdown", { disabled: this._layer === undefined, id: "solutions-more" }, h("calcite-action", { appearance: "solid", id: id, label: "", slot: "trigger", text: "" }, h("calcite-button", { appearance: "transparent", iconEnd: "chevron-down", kind: "neutral" }, this._translations.more)), h("calcite-dropdown-group", { "selection-mode": "none" }, dropdownItems.map(item => {
616
- return (h("calcite-dropdown-item", { iconStart: item.icon, onClick: item.func }, item.label));
617
- })))) : undefined;
658
+ return dropdownItems.length > 0 ? (h("calcite-dropdown", { closeOnSelectDisabled: true, disabled: this._layer === undefined, id: "solutions-more", onCalciteDropdownBeforeClose: () => this._forceShowHide(), ref: (el) => this._moreDropdown = el }, h("calcite-action", { appearance: "solid", id: id, label: "", onClick: () => this._closeShowHide(), slot: "trigger", text: "" }, h("calcite-button", { appearance: "transparent", iconEnd: "chevron-down", kind: "neutral" }, this._translations.more)), h("calcite-dropdown-group", { "selection-mode": "none" }, dropdownItems.map(item => {
659
+ return (h("calcite-dropdown-item", { iconStart: item.isSublist && this._showHideOpen ? "chevron-down" : item.icon, id: "solutions-subset-list", onClick: item.func }, item.label));
660
+ })), this._showHideOpen ? this._getFieldlist() : undefined)) : undefined;
618
661
  }
619
662
  /**
620
663
  * Get a list of toolInfos that should display in the dropdown
@@ -634,9 +677,9 @@ const LayerTable = class {
634
677
  *
635
678
  * @returns VNode The node representing the DOM element that will contain the action
636
679
  */
637
- _getAction(icon, label, func, disabled) {
680
+ _getAction(icon, label, func, disabled, slot) {
638
681
  const _disabled = this._layer === undefined ? true : disabled;
639
- return (h("div", { class: "display-flex", id: this._getId(icon) }, h("calcite-action", { appearance: "solid", disabled: _disabled, icon: icon, id: icon, label: label, onClick: func, text: label, textEnabled: true }), this._getToolTip("", "bottom", icon, label)));
682
+ return (h("div", { class: "display-flex", id: this._getId(icon), slot: slot }, h("calcite-action", { appearance: "solid", disabled: _disabled, icon: icon, id: icon, label: label, onClick: func, text: label, textEnabled: true }), this._getToolTip("", "bottom", icon, label)));
640
683
  }
641
684
  /**
642
685
  * Get a tooltip
@@ -689,6 +732,7 @@ const LayerTable = class {
689
732
  autoRefreshEnabled: this.enableAutoRefresh,
690
733
  layer: this._layer,
691
734
  view: this.mapView,
735
+ columnReorderingEnabled: this.enableColumnReorder,
692
736
  editingEnabled: this._editEnabled && this.enableInlineEdit,
693
737
  highlightEnabled: true,
694
738
  multiSortEnabled: false,
@@ -702,6 +746,7 @@ const LayerTable = class {
702
746
  container: node
703
747
  });
704
748
  });
749
+ this._initColumnsInfo();
705
750
  this._checkEditEnabled();
706
751
  await this._table.when(() => {
707
752
  this._table.highlightIds.on("change", () => {
@@ -748,14 +793,53 @@ const LayerTable = class {
748
793
  this._checkEditEnabled();
749
794
  this._table.editingEnabled = this._editEnabled && this.enableInlineEdit;
750
795
  this._initToolInfos();
751
- await this._table.when(() => {
796
+ await this._table.when(async () => {
797
+ var _a, _b;
752
798
  this._table.highlightIds.removeAll();
753
799
  this._table.clearSelectionFilter();
800
+ this._initColumnsInfo();
801
+ if (!this._defaultOidHonored && ((_a = this.defaultOid) === null || _a === void 0 ? void 0 : _a.length) > 0 && this.defaultOid[0] > -1) {
802
+ this._selectDefaultFeature(this.defaultOid);
803
+ this._defaultOidHonored = true;
804
+ }
805
+ if (!this._defaultGlobalIdHonored && ((_b = this.defaultGlobalId) === null || _b === void 0 ? void 0 : _b.length) > 0) {
806
+ const features = await queryFeaturesByGlobalID(this.defaultGlobalId, this._layer);
807
+ const oids = (features === null || features === void 0 ? void 0 : features.length) > 0 ? features.map(f => f.getObjectId()) : undefined;
808
+ if (oids) {
809
+ this._selectDefaultFeature(oids);
810
+ }
811
+ this._defaultGlobalIdHonored = true;
812
+ }
754
813
  });
755
814
  this._showOnlySelected = false;
756
815
  this._sortActive = false;
757
816
  await this._sortTable();
758
817
  }
818
+ /**
819
+ * Store the column names and current hidden status to support show/hide of columns
820
+ *
821
+ * @returns void
822
+ */
823
+ _initColumnsInfo() {
824
+ this._columnsInfo = this._table.columns.reduce((prev, cur) => {
825
+ prev[cur.name] = !cur.hidden;
826
+ return prev;
827
+ }, {});
828
+ }
829
+ /**
830
+ * Select the feature that was specified via url params
831
+ *
832
+ * @returns void
833
+ */
834
+ _selectDefaultFeature(oids) {
835
+ if (oids.length > 0) {
836
+ this._table.highlightIds.addMany(oids);
837
+ void this._table.when(() => {
838
+ const i = this._table.viewModel.getObjectIdIndex(oids[0]);
839
+ this._table.viewModel.scrollToIndex(i);
840
+ });
841
+ }
842
+ }
759
843
  /**
760
844
  * Verify edit capabilities of the layer
761
845
  *
@@ -782,6 +866,45 @@ const LayerTable = class {
782
866
  }
783
867
  }
784
868
  }
869
+ /**
870
+ * Open show/hide dropdown
871
+ */
872
+ _forceShowHide() {
873
+ if (this._showHideDropdown) {
874
+ this._showHideDropdown.open = this._showHideOpen;
875
+ }
876
+ if (this._moreDropdown) {
877
+ this._moreDropdown.open = this._showHideOpen;
878
+ }
879
+ }
880
+ /**
881
+ * Toggle show/hide dropdown
882
+ */
883
+ _toggleShowHide() {
884
+ this._showHideOpen = !this._showHideOpen;
885
+ }
886
+ /**
887
+ * Open show/hide dropdown
888
+ */
889
+ _closeShowHide() {
890
+ this._showHideOpen = false;
891
+ }
892
+ /**
893
+ * Close show/hide dropdown when the user clicks outside of it
894
+ */
895
+ _handleDocumentClick(e) {
896
+ var _a;
897
+ const id = (_a = e.target) === null || _a === void 0 ? void 0 : _a.id;
898
+ if (this._showHideOpen && Object.keys(this._columnsInfo).indexOf(id) < 0 && id !== "solutions-subset-list" && id !== "chevron-right") {
899
+ this._closeShowHide();
900
+ if (this._moreDropdown) {
901
+ this._moreDropdown.open = false;
902
+ }
903
+ if (this._showHideDropdown) {
904
+ this._showHideDropdown.open = false;
905
+ }
906
+ }
907
+ }
785
908
  /**
786
909
  * Show delete confirmation message
787
910
  *
@@ -1035,10 +1158,15 @@ const MapCard = class {
1035
1158
  registerInstance(this, hostRef);
1036
1159
  this.mapChanged = createEvent(this, "mapChanged", 7);
1037
1160
  this.beforeMapChanged = createEvent(this, "beforeMapChanged", 7);
1161
+ /**
1162
+ * boolean: When true the default map provided via url params has been loaded and should no longer override other maps
1163
+ */
1164
+ this._defaultWebmapHonored = false;
1038
1165
  /**
1039
1166
  * string: the id of map currently displayed
1040
1167
  */
1041
1168
  this._loadedId = "";
1169
+ this.defaultWebmapId = "";
1042
1170
  this.enableHome = undefined;
1043
1171
  this.enableLegend = undefined;
1044
1172
  this.enableFloorFilter = undefined;
@@ -1087,7 +1215,7 @@ const MapCard = class {
1087
1215
  render() {
1088
1216
  const mapClass = this.hidden ? "visibility-hidden" : "";
1089
1217
  const themeClass = this.theme === "dark" ? "calcite-mode-dark" : "calcite-mode-light";
1090
- return (h(Host, null, h("map-picker", { mapInfos: this.mapInfos }), h("div", { class: `map-height ${mapClass}`, ref: (el) => (this._mapDiv = el) }), h("map-tools", { basemapConfig: this.basemapConfig, class: `box-shadow ${themeClass}`, 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 })));
1218
+ return (h(Host, null, h("map-picker", { mapInfos: this.mapInfos, ref: (el) => this._mapPicker = el }), h("div", { class: `map-height ${mapClass}`, ref: (el) => (this._mapDiv = el) }), h("map-tools", { basemapConfig: this.basemapConfig, class: `box-shadow ${themeClass}`, 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 })));
1091
1219
  }
1092
1220
  //--------------------------------------------------------------------------
1093
1221
  //
@@ -1121,12 +1249,15 @@ const MapCard = class {
1121
1249
  * @protected
1122
1250
  */
1123
1251
  async _loadMap(webMapInfo) {
1124
- let id = webMapInfo === null || webMapInfo === void 0 ? void 0 : webMapInfo.id;
1125
- // on the first render use the first child of the provided mapInfos
1126
- this._webMapInfo = (id === "" || !id) && this.mapInfos.length > 0 ?
1127
- this.mapInfos[0] : webMapInfo;
1128
- id = this._webMapInfo.id;
1129
- if (this._loadedId !== id) {
1252
+ var _a;
1253
+ // on the first render use the default webmap id if provided otherwise use the first child of the provided mapInfos
1254
+ const loadDefaultMap = !this._defaultWebmapHonored && this.defaultWebmapId;
1255
+ const defaultMap = (_a = this.mapInfos) === null || _a === void 0 ? void 0 : _a.filter(i => i.id === this.defaultWebmapId);
1256
+ this._webMapInfo = loadDefaultMap && defaultMap ? defaultMap[0] :
1257
+ !(webMapInfo === null || webMapInfo === void 0 ? void 0 : webMapInfo.id) && this.mapInfos.length > 0 ? this.mapInfos[0] : webMapInfo;
1258
+ const id = this._webMapInfo.id;
1259
+ const isDefaultMap = loadDefaultMap && (webMapInfo === null || webMapInfo === void 0 ? void 0 : webMapInfo.id) === this.defaultWebmapId;
1260
+ if ((this._loadedId !== id && !loadDefaultMap) || isDefaultMap) {
1130
1261
  const webMap = new this.WebMap({
1131
1262
  portalItem: { id }
1132
1263
  });
@@ -1141,12 +1272,17 @@ const MapCard = class {
1141
1272
  await this.mapView.when(() => {
1142
1273
  this._initHome();
1143
1274
  this.mapView.ui.add(this._mapTools, { position: "top-right", index: 0 });
1275
+ this._defaultWebmapHonored = isDefaultMap ? true : this._defaultWebmapHonored;
1144
1276
  this.mapChanged.emit({
1145
1277
  id: id,
1146
1278
  mapView: this.mapView
1147
1279
  });
1148
1280
  });
1149
1281
  }
1282
+ else if (loadDefaultMap) {
1283
+ this._defaultWebmapHonored = true;
1284
+ this._mapPicker.setMapByID(id);
1285
+ }
1150
1286
  }
1151
1287
  /**
1152
1288
  * Add/remove the home widget base on enableHome prop
@@ -19,7 +19,12 @@ const CrowdsourceManager = class {
19
19
  */
20
20
  this._shouldSetMapView = false;
21
21
  this.classicGrid = false;
22
+ this.defaultGlobalId = "";
23
+ this.defaultLayer = "";
24
+ this.defaultOid = "";
25
+ this.defaultWebmap = "";
22
26
  this.enableAutoRefresh = false;
27
+ this.enableColumnReorder = true;
23
28
  this.enableCSV = true;
24
29
  this.enableFloorFilter = true;
25
30
  this.enableFullscreen = true;
@@ -48,6 +53,20 @@ const CrowdsourceManager = class {
48
53
  // Watch handlers
49
54
  //
50
55
  //--------------------------------------------------------------------------
56
+ /**
57
+ * Watch for globalid url param to be set
58
+ */
59
+ defaultGlobalIdWatchHandler() {
60
+ this._defaultGlobalId = !this.defaultGlobalId ? undefined :
61
+ this.defaultGlobalId.indexOf(",") > -1 ? this.defaultGlobalId.split(",") : [this.defaultGlobalId];
62
+ }
63
+ /**
64
+ * Watch for oid url param to be set
65
+ */
66
+ defaultOidWatchHandler() {
67
+ this._defaultOid = !this.defaultOid ? undefined :
68
+ this.defaultOid.indexOf(",") > -1 ? this.defaultOid.split(",").map(o => parseInt(o, 10)) : [parseInt(this.defaultOid, 10)];
69
+ }
51
70
  /**
52
71
  * When true the map zoom tools will be available
53
72
  */
@@ -246,7 +265,7 @@ const CrowdsourceManager = class {
246
265
  const mapDisplayClass = this.classicGrid && layoutMode === ELayoutMode.GRID ? "display-flex height-full width-1-2" :
247
266
  layoutMode === ELayoutMode.GRID && !hideMap ? "" : "display-none";
248
267
  const mapContainerClass = this.classicGrid && layoutMode === ELayoutMode.GRID ? "width-full" : "adjusted-height-50";
249
- return (h("div", { class: `${mapContainerClass} overflow-hidden ${mapDisplayClass}` }, 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), theme: this.theme })));
268
+ return (h("div", { class: `${mapContainerClass} overflow-hidden ${mapDisplayClass}` }, h("map-card", { basemapConfig: this.basemapConfig, class: "width-full", defaultWebmapId: this.defaultWebmap, 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), theme: this.theme })));
250
269
  }
251
270
  /**
252
271
  * Get the expand node for the popup information
@@ -302,7 +321,8 @@ const CrowdsourceManager = class {
302
321
  const toggleSlot = this.classicGrid && layoutMode !== ELayoutMode.VERTICAL ? "footer" :
303
322
  this.classicGrid && layoutMode === ELayoutMode.VERTICAL ? "panel-end" :
304
323
  layoutMode === ELayoutMode.HORIZONTAL ? "header" : "panel-start";
305
- return (h("calcite-shell", { class: tableSizeClass + " border-bottom" }, h("calcite-action-bar", { class: "border-sides", expandDisabled: true, layout: toggleLayout, slot: toggleSlot }, h("calcite-action", { class: "toggle-node", icon: icon, id: id, onClick: () => this._toggleLayout(), text: "" }), h("calcite-tooltip", { label: tooltip, placement: "bottom", "reference-element": id }, h("span", null, tooltip))), h("div", { class: "width-full height-full position-relative" }, 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 }))));
324
+ const hasMapAndLayer = this.defaultWebmap && this.defaultLayer;
325
+ return (h("calcite-shell", { class: tableSizeClass + " border-bottom" }, h("calcite-action-bar", { class: "border-sides", expandDisabled: true, layout: toggleLayout, slot: toggleSlot }, h("calcite-action", { class: "toggle-node", icon: icon, id: id, onClick: () => this._toggleLayout(), text: "" }), h("calcite-tooltip", { label: tooltip, placement: "bottom", "reference-element": id }, h("span", null, tooltip))), h("div", { class: "width-full height-full position-relative" }, h("layer-table", { defaultGlobalId: hasMapAndLayer ? this._defaultGlobalId : undefined, defaultLayerId: hasMapAndLayer ? this.defaultLayer : "", defaultOid: hasMapAndLayer && !this.defaultGlobalId ? this._defaultOid : undefined, enableAutoRefresh: this.enableAutoRefresh, enableCSV: this.enableCSV, enableColumnReorder: this.enableColumnReorder, 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 }))));
306
326
  }
307
327
  /**
308
328
  * Open/Close the appropriate panel.
@@ -370,6 +390,8 @@ const CrowdsourceManager = class {
370
390
  }
371
391
  get el() { return getElement(this); }
372
392
  static get watchers() { return {
393
+ "defaultGlobalId": ["defaultGlobalIdWatchHandler"],
394
+ "defaultOid": ["defaultOidWatchHandler"],
373
395
  "enableZoom": ["enableZoomWatchHandler"]
374
396
  }; }
375
397
  };
@@ -10,14 +10,23 @@ const crowdsourceReporterCss = ":host{display:block}";
10
10
  const CrowdsourceReporter = class {
11
11
  constructor(hostRef) {
12
12
  registerInstance(this, hostRef);
13
+ this.description = undefined;
14
+ this.enableAnonymousAccess = undefined;
15
+ this.enableAnonymousComments = undefined;
16
+ this.enableComments = undefined;
17
+ this.enableLogin = undefined;
18
+ this.enableNewReports = undefined;
19
+ this.layers = undefined;
20
+ this.loginTitle = undefined;
21
+ this.mapView = undefined;
22
+ this.reportButtonText = undefined;
23
+ this.reportsHeader = undefined;
24
+ this.reportSubmittedMessage = undefined;
25
+ this.searchConfiguration = undefined;
26
+ this.showComments = undefined;
13
27
  }
14
28
  //--------------------------------------------------------------------------
15
29
  //
16
- // Properties (public)
17
- //
18
- //--------------------------------------------------------------------------
19
- //--------------------------------------------------------------------------
20
- //
21
30
  // State (internal)
22
31
  //
23
32
  //--------------------------------------------------------------------------
@@ -46,14 +55,44 @@ const CrowdsourceReporter = class {
46
55
  // Functions (lifecycle)
47
56
  //
48
57
  //--------------------------------------------------------------------------
58
+ /**
59
+ * StencilJS: Called once just after the component is first connected to the DOM.
60
+ *
61
+ * @returns Promise when complete
62
+ */
63
+ // async componentWillLoad(): Promise<void> {
64
+ // await this._getTranslations();
65
+ // await this._initModules();
66
+ // }
67
+ /**
68
+ * Renders the component.
69
+ */
49
70
  render() {
50
- return (h(Host, null, h("slot", null)));
71
+ return (h(Host, null, h("slot", null, this.loginTitle + this.description)));
51
72
  }
52
73
  //--------------------------------------------------------------------------
53
74
  //
54
75
  // Functions (protected)
55
76
  //
56
77
  //--------------------------------------------------------------------------
78
+ /**
79
+ * Load esri javascript api modules
80
+ *
81
+ * @returns Promise resolving when function is done
82
+ *
83
+ * @protected
84
+ */
85
+ // protected async _initModules(): Promise<void> {
86
+ // const [geometryEngine, jsonUtils]: [
87
+ // __esri.geometryEngine,
88
+ // __esri.symbolsSupportJsonUtils
89
+ // ] = await loadModules([
90
+ // "esri/geometry/geometryEngine",
91
+ // "esri/symbols/support/jsonUtils"
92
+ // ]);
93
+ // this._geometryEngine = geometryEngine;
94
+ // this._jsonUtils = jsonUtils;
95
+ // }
57
96
  /**
58
97
  * Fetches the component's translations
59
98
  *
@@ -6,7 +6,7 @@
6
6
  import { c as createCommonjsModule, g as getDefaultExportFromCjs } from './_commonjsHelpers-d5f9d613.js';
7
7
  import { a as getAssetPath } from './index-b05b3079.js';
8
8
  import { l as loadModules } from './loadModules-0bf05e85.js';
9
- import { q as queryFeaturesByID } from './mapViewUtils-1e2befd7.js';
9
+ import { q as queryFeaturesByID } from './mapViewUtils-88f363b6.js';
10
10
  import './solution-resource-be35d35b.js';
11
11
  import { _ as __assign$1, r as request, c as cleanUrl, g as getJson } from './restHelpersGet-a5ec2192.js';
12
12
 
@@ -1507,7 +1507,7 @@ function(t){var e=function(t){for(var e=t.length,r=new Uint8Array(e),n=0;n<e;n++
1507
1507
  * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1508
1508
  * ====================================================================
1509
1509
  */
1510
- function(t){function e(){return (n.canvg?Promise.resolve(n.canvg):import('./index.es-b6705ce7.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},
1510
+ function(t){function e(){return (n.canvg?Promise.resolve(n.canvg):import('./index.es-0d4698c7.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
1511
  /** ====================================================================
1512
1512
  * @license
1513
1513
  * jsPDF XMP metadata plugin
@@ -0,0 +1,56 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-b05b3079.js';
7
+
8
+ const featureCommentsCss = ":host{display:block}";
9
+
10
+ const FeatureComments = class {
11
+ constructor(hostRef) {
12
+ registerInstance(this, hostRef);
13
+ }
14
+ //--------------------------------------------------------------------------
15
+ //
16
+ // Properties (public)
17
+ //
18
+ //--------------------------------------------------------------------------
19
+ //--------------------------------------------------------------------------
20
+ //
21
+ // State (internal)
22
+ //
23
+ //--------------------------------------------------------------------------
24
+ //--------------------------------------------------------------------------
25
+ //
26
+ // Properties (protected)
27
+ //
28
+ //--------------------------------------------------------------------------
29
+ //--------------------------------------------------------------------------
30
+ //
31
+ // Watch handlers
32
+ //
33
+ //--------------------------------------------------------------------------
34
+ //--------------------------------------------------------------------------
35
+ //
36
+ // Methods (public)
37
+ //
38
+ //--------------------------------------------------------------------------
39
+ //--------------------------------------------------------------------------
40
+ //
41
+ // Events (public)
42
+ //
43
+ //--------------------------------------------------------------------------
44
+ //--------------------------------------------------------------------------
45
+ //
46
+ // Functions (lifecycle)
47
+ //
48
+ //--------------------------------------------------------------------------
49
+ render() {
50
+ return (h(Host, null, h("slot", null)));
51
+ }
52
+ get el() { return getElement(this); }
53
+ };
54
+ FeatureComments.style = featureCommentsCss;
55
+
56
+ export { FeatureComments as feature_comments };
@@ -0,0 +1,56 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-b05b3079.js';
7
+
8
+ const featureFormFlowItemCss = ":host{display:block}";
9
+
10
+ const FeatureFormFlowItem = class {
11
+ constructor(hostRef) {
12
+ registerInstance(this, hostRef);
13
+ }
14
+ //--------------------------------------------------------------------------
15
+ //
16
+ // Properties (public)
17
+ //
18
+ //--------------------------------------------------------------------------
19
+ //--------------------------------------------------------------------------
20
+ //
21
+ // State (internal)
22
+ //
23
+ //--------------------------------------------------------------------------
24
+ //--------------------------------------------------------------------------
25
+ //
26
+ // Properties (protected)
27
+ //
28
+ //--------------------------------------------------------------------------
29
+ //--------------------------------------------------------------------------
30
+ //
31
+ // Watch handlers
32
+ //
33
+ //--------------------------------------------------------------------------
34
+ //--------------------------------------------------------------------------
35
+ //
36
+ // Methods (public)
37
+ //
38
+ //--------------------------------------------------------------------------
39
+ //--------------------------------------------------------------------------
40
+ //
41
+ // Events (public)
42
+ //
43
+ //--------------------------------------------------------------------------
44
+ //--------------------------------------------------------------------------
45
+ //
46
+ // Functions (lifecycle)
47
+ //
48
+ //--------------------------------------------------------------------------
49
+ render() {
50
+ return (h(Host, null, h("slot", null)));
51
+ }
52
+ get el() { return getElement(this); }
53
+ };
54
+ FeatureFormFlowItem.style = featureFormFlowItemCss;
55
+
56
+ export { FeatureFormFlowItem as feature_form_flow_item };