@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
@@ -9,9 +9,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
10
  const index = require('./index-2d5760f2.js');
11
11
  const locale = require('./locale-ef06bf9e.js');
12
- const mapViewUtils = require('./mapViewUtils-f7bbc35b.js');
12
+ const mapViewUtils = require('./mapViewUtils-bab83c90.js');
13
13
  const loadModules = require('./loadModules-ad1ab1a8.js');
14
- const downloadUtils = require('./downloadUtils-e3e595e9.js');
14
+ const downloadUtils = require('./downloadUtils-9c4fde54.js');
15
15
  require('./_commonjsHelpers-384729db.js');
16
16
  require('./interfaces-000be6de.js');
17
17
  require('./solution-resource-f9e3b289.js');
@@ -115,6 +115,14 @@ const LayerTable = class {
115
115
  * number[]: A list of all IDs for the current layer
116
116
  */
117
117
  this._allIds = [];
118
+ /**
119
+ * boolean: When true the default global id provided via url param has been honored and should now be ignored
120
+ */
121
+ this._defaultGlobalIdHonored = false;
122
+ /**
123
+ * boolean: When true the default OID provided via url param has been honored and should now be ignored
124
+ */
125
+ this._defaultOidHonored = false;
118
126
  /**
119
127
  * bool: When true the table is being sorted
120
128
  */
@@ -130,7 +138,11 @@ const LayerTable = class {
130
138
  this.onTableNodeCreate = (node) => {
131
139
  this._tableNode = node;
132
140
  };
141
+ this.defaultLayerId = undefined;
142
+ this.defaultGlobalId = undefined;
143
+ this.defaultOid = undefined;
133
144
  this.enableAutoRefresh = undefined;
145
+ this.enableColumnReorder = true;
134
146
  this.enableCSV = undefined;
135
147
  this.enableInlineEdit = undefined;
136
148
  this.enableZoom = undefined;
@@ -145,6 +157,7 @@ const LayerTable = class {
145
157
  this._isDeleting = false;
146
158
  this._layer = undefined;
147
159
  this._selectedIndexes = [];
160
+ this._showHideOpen = false;
148
161
  this._showOnlySelected = false;
149
162
  this._sortActive = false;
150
163
  this._translations = undefined;
@@ -305,6 +318,7 @@ const LayerTable = class {
305
318
  */
306
319
  async componentDidLoad() {
307
320
  this._resizeObserver.observe(this._toolbar);
321
+ document.onclick = (e) => this._handleDocumentClick(e);
308
322
  }
309
323
  /**
310
324
  * Called after the component is rendered
@@ -359,7 +373,7 @@ const LayerTable = class {
359
373
  * @returns The dom node that contains the controls
360
374
  */
361
375
  _getActionBar() {
362
- return (index.h("calcite-action-bar", { expandDisabled: true, expanded: true, id: this._getId("bar"), layout: "horizontal" }, index.h("div", { class: "border-end", id: "solutions-map-layer-picker-container" }, index.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()));
376
+ return (index.h("calcite-action-bar", { expandDisabled: true, expanded: true, id: this._getId("bar"), layout: "horizontal" }, index.h("div", { class: "border-end", id: "solutions-map-layer-picker-container" }, index.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()));
363
377
  }
364
378
  /**
365
379
  * Get the actions that are used for various interactions with the table
@@ -372,11 +386,33 @@ const LayerTable = class {
372
386
  if (cur && !cur.isOverflow) {
373
387
  prev.push(cur.isDanger ?
374
388
  this._getDangerAction(cur.icon, cur.label, cur.func, cur.disabled) :
375
- this._getAction(cur.icon, cur.label, cur.func, cur.disabled));
389
+ cur.isSublist ? (index.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)) :
390
+ this._getAction(cur.icon, cur.label, cur.func, cur.disabled));
376
391
  }
377
392
  return prev;
378
393
  }, []);
379
394
  }
395
+ /**
396
+ * Get the list of fields as dropdown items and store the current selected state so
397
+ * we can show/hide the appropriate fields
398
+ *
399
+ * @returns Node with the fields as dropdown items
400
+ */
401
+ _getFieldlist() {
402
+ return this._columnsInfo ? (index.h("calcite-dropdown-group", { "selection-mode": "multiple" }, Object.keys(this._columnsInfo).map(k => {
403
+ const selected = this._columnsInfo[k];
404
+ return (index.h("calcite-dropdown-item", { id: k, onClick: (e) => {
405
+ const target = e.target;
406
+ this._columnsInfo[target.id] = target.selected;
407
+ if (!target.selected) {
408
+ this._table.hideColumn(target.id);
409
+ }
410
+ else {
411
+ this._table.showColumn(target.id);
412
+ }
413
+ }, selected: selected }, k));
414
+ }))) : undefined;
415
+ }
380
416
  /**
381
417
  * Update actions enabled prop based on number of selected indexes
382
418
  *
@@ -465,7 +501,14 @@ const LayerTable = class {
465
501
  label: this._translations.exportCSV,
466
502
  disabled: featuresEmpty,
467
503
  isOverflow: false
468
- } : undefined];
504
+ } : undefined, {
505
+ icon: this._showHideOpen ? "chevron-down" : "chevron-right",
506
+ func: () => this._toggleShowHide(),
507
+ label: this._translations.showHideColumns,
508
+ disabled: false,
509
+ isOverflow: false,
510
+ isSublist: true
511
+ }];
469
512
  this._defaultVisibleToolSizeInfos = undefined;
470
513
  }
471
514
  /**
@@ -616,9 +659,9 @@ const LayerTable = class {
616
659
  */
617
660
  _getDropdown(id) {
618
661
  const dropdownItems = this._getDropdownItems();
619
- return dropdownItems.length > 0 ? (index.h("calcite-dropdown", { disabled: this._layer === undefined, id: "solutions-more" }, index.h("calcite-action", { appearance: "solid", id: id, label: "", slot: "trigger", text: "" }, index.h("calcite-button", { appearance: "transparent", iconEnd: "chevron-down", kind: "neutral" }, this._translations.more)), index.h("calcite-dropdown-group", { "selection-mode": "none" }, dropdownItems.map(item => {
620
- return (index.h("calcite-dropdown-item", { iconStart: item.icon, onClick: item.func }, item.label));
621
- })))) : undefined;
662
+ return dropdownItems.length > 0 ? (index.h("calcite-dropdown", { closeOnSelectDisabled: true, disabled: this._layer === undefined, id: "solutions-more", onCalciteDropdownBeforeClose: () => this._forceShowHide(), ref: (el) => this._moreDropdown = el }, index.h("calcite-action", { appearance: "solid", id: id, label: "", onClick: () => this._closeShowHide(), slot: "trigger", text: "" }, index.h("calcite-button", { appearance: "transparent", iconEnd: "chevron-down", kind: "neutral" }, this._translations.more)), index.h("calcite-dropdown-group", { "selection-mode": "none" }, dropdownItems.map(item => {
663
+ return (index.h("calcite-dropdown-item", { iconStart: item.isSublist && this._showHideOpen ? "chevron-down" : item.icon, id: "solutions-subset-list", onClick: item.func }, item.label));
664
+ })), this._showHideOpen ? this._getFieldlist() : undefined)) : undefined;
622
665
  }
623
666
  /**
624
667
  * Get a list of toolInfos that should display in the dropdown
@@ -638,9 +681,9 @@ const LayerTable = class {
638
681
  *
639
682
  * @returns VNode The node representing the DOM element that will contain the action
640
683
  */
641
- _getAction(icon, label, func, disabled) {
684
+ _getAction(icon, label, func, disabled, slot) {
642
685
  const _disabled = this._layer === undefined ? true : disabled;
643
- return (index.h("div", { class: "display-flex", id: this._getId(icon) }, index.h("calcite-action", { appearance: "solid", disabled: _disabled, icon: icon, id: icon, label: label, onClick: func, text: label, textEnabled: true }), this._getToolTip("", "bottom", icon, label)));
686
+ return (index.h("div", { class: "display-flex", id: this._getId(icon), slot: slot }, index.h("calcite-action", { appearance: "solid", disabled: _disabled, icon: icon, id: icon, label: label, onClick: func, text: label, textEnabled: true }), this._getToolTip("", "bottom", icon, label)));
644
687
  }
645
688
  /**
646
689
  * Get a tooltip
@@ -693,6 +736,7 @@ const LayerTable = class {
693
736
  autoRefreshEnabled: this.enableAutoRefresh,
694
737
  layer: this._layer,
695
738
  view: this.mapView,
739
+ columnReorderingEnabled: this.enableColumnReorder,
696
740
  editingEnabled: this._editEnabled && this.enableInlineEdit,
697
741
  highlightEnabled: true,
698
742
  multiSortEnabled: false,
@@ -706,6 +750,7 @@ const LayerTable = class {
706
750
  container: node
707
751
  });
708
752
  });
753
+ this._initColumnsInfo();
709
754
  this._checkEditEnabled();
710
755
  await this._table.when(() => {
711
756
  this._table.highlightIds.on("change", () => {
@@ -752,14 +797,53 @@ const LayerTable = class {
752
797
  this._checkEditEnabled();
753
798
  this._table.editingEnabled = this._editEnabled && this.enableInlineEdit;
754
799
  this._initToolInfos();
755
- await this._table.when(() => {
800
+ await this._table.when(async () => {
801
+ var _a, _b;
756
802
  this._table.highlightIds.removeAll();
757
803
  this._table.clearSelectionFilter();
804
+ this._initColumnsInfo();
805
+ if (!this._defaultOidHonored && ((_a = this.defaultOid) === null || _a === void 0 ? void 0 : _a.length) > 0 && this.defaultOid[0] > -1) {
806
+ this._selectDefaultFeature(this.defaultOid);
807
+ this._defaultOidHonored = true;
808
+ }
809
+ if (!this._defaultGlobalIdHonored && ((_b = this.defaultGlobalId) === null || _b === void 0 ? void 0 : _b.length) > 0) {
810
+ const features = await mapViewUtils.queryFeaturesByGlobalID(this.defaultGlobalId, this._layer);
811
+ const oids = (features === null || features === void 0 ? void 0 : features.length) > 0 ? features.map(f => f.getObjectId()) : undefined;
812
+ if (oids) {
813
+ this._selectDefaultFeature(oids);
814
+ }
815
+ this._defaultGlobalIdHonored = true;
816
+ }
758
817
  });
759
818
  this._showOnlySelected = false;
760
819
  this._sortActive = false;
761
820
  await this._sortTable();
762
821
  }
822
+ /**
823
+ * Store the column names and current hidden status to support show/hide of columns
824
+ *
825
+ * @returns void
826
+ */
827
+ _initColumnsInfo() {
828
+ this._columnsInfo = this._table.columns.reduce((prev, cur) => {
829
+ prev[cur.name] = !cur.hidden;
830
+ return prev;
831
+ }, {});
832
+ }
833
+ /**
834
+ * Select the feature that was specified via url params
835
+ *
836
+ * @returns void
837
+ */
838
+ _selectDefaultFeature(oids) {
839
+ if (oids.length > 0) {
840
+ this._table.highlightIds.addMany(oids);
841
+ void this._table.when(() => {
842
+ const i = this._table.viewModel.getObjectIdIndex(oids[0]);
843
+ this._table.viewModel.scrollToIndex(i);
844
+ });
845
+ }
846
+ }
763
847
  /**
764
848
  * Verify edit capabilities of the layer
765
849
  *
@@ -786,6 +870,45 @@ const LayerTable = class {
786
870
  }
787
871
  }
788
872
  }
873
+ /**
874
+ * Open show/hide dropdown
875
+ */
876
+ _forceShowHide() {
877
+ if (this._showHideDropdown) {
878
+ this._showHideDropdown.open = this._showHideOpen;
879
+ }
880
+ if (this._moreDropdown) {
881
+ this._moreDropdown.open = this._showHideOpen;
882
+ }
883
+ }
884
+ /**
885
+ * Toggle show/hide dropdown
886
+ */
887
+ _toggleShowHide() {
888
+ this._showHideOpen = !this._showHideOpen;
889
+ }
890
+ /**
891
+ * Open show/hide dropdown
892
+ */
893
+ _closeShowHide() {
894
+ this._showHideOpen = false;
895
+ }
896
+ /**
897
+ * Close show/hide dropdown when the user clicks outside of it
898
+ */
899
+ _handleDocumentClick(e) {
900
+ var _a;
901
+ const id = (_a = e.target) === null || _a === void 0 ? void 0 : _a.id;
902
+ if (this._showHideOpen && Object.keys(this._columnsInfo).indexOf(id) < 0 && id !== "solutions-subset-list" && id !== "chevron-right") {
903
+ this._closeShowHide();
904
+ if (this._moreDropdown) {
905
+ this._moreDropdown.open = false;
906
+ }
907
+ if (this._showHideDropdown) {
908
+ this._showHideDropdown.open = false;
909
+ }
910
+ }
911
+ }
789
912
  /**
790
913
  * Show delete confirmation message
791
914
  *
@@ -1039,10 +1162,15 @@ const MapCard = class {
1039
1162
  index.registerInstance(this, hostRef);
1040
1163
  this.mapChanged = index.createEvent(this, "mapChanged", 7);
1041
1164
  this.beforeMapChanged = index.createEvent(this, "beforeMapChanged", 7);
1165
+ /**
1166
+ * boolean: When true the default map provided via url params has been loaded and should no longer override other maps
1167
+ */
1168
+ this._defaultWebmapHonored = false;
1042
1169
  /**
1043
1170
  * string: the id of map currently displayed
1044
1171
  */
1045
1172
  this._loadedId = "";
1173
+ this.defaultWebmapId = "";
1046
1174
  this.enableHome = undefined;
1047
1175
  this.enableLegend = undefined;
1048
1176
  this.enableFloorFilter = undefined;
@@ -1091,7 +1219,7 @@ const MapCard = class {
1091
1219
  render() {
1092
1220
  const mapClass = this.hidden ? "visibility-hidden" : "";
1093
1221
  const themeClass = this.theme === "dark" ? "calcite-mode-dark" : "calcite-mode-light";
1094
- return (index.h(index.Host, null, index.h("map-picker", { mapInfos: this.mapInfos }), index.h("div", { class: `map-height ${mapClass}`, ref: (el) => (this._mapDiv = el) }), index.h("map-tools", { basemapConfig: this.basemapConfig, class: `box-shadow ${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 })));
1222
+ return (index.h(index.Host, null, index.h("map-picker", { mapInfos: this.mapInfos, ref: (el) => this._mapPicker = el }), index.h("div", { class: `map-height ${mapClass}`, ref: (el) => (this._mapDiv = el) }), index.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 })));
1095
1223
  }
1096
1224
  //--------------------------------------------------------------------------
1097
1225
  //
@@ -1125,12 +1253,15 @@ const MapCard = class {
1125
1253
  * @protected
1126
1254
  */
1127
1255
  async _loadMap(webMapInfo) {
1128
- let id = webMapInfo === null || webMapInfo === void 0 ? void 0 : webMapInfo.id;
1129
- // on the first render use the first child of the provided mapInfos
1130
- this._webMapInfo = (id === "" || !id) && this.mapInfos.length > 0 ?
1131
- this.mapInfos[0] : webMapInfo;
1132
- id = this._webMapInfo.id;
1133
- if (this._loadedId !== id) {
1256
+ var _a;
1257
+ // on the first render use the default webmap id if provided otherwise use the first child of the provided mapInfos
1258
+ const loadDefaultMap = !this._defaultWebmapHonored && this.defaultWebmapId;
1259
+ const defaultMap = (_a = this.mapInfos) === null || _a === void 0 ? void 0 : _a.filter(i => i.id === this.defaultWebmapId);
1260
+ this._webMapInfo = loadDefaultMap && defaultMap ? defaultMap[0] :
1261
+ !(webMapInfo === null || webMapInfo === void 0 ? void 0 : webMapInfo.id) && this.mapInfos.length > 0 ? this.mapInfos[0] : webMapInfo;
1262
+ const id = this._webMapInfo.id;
1263
+ const isDefaultMap = loadDefaultMap && (webMapInfo === null || webMapInfo === void 0 ? void 0 : webMapInfo.id) === this.defaultWebmapId;
1264
+ if ((this._loadedId !== id && !loadDefaultMap) || isDefaultMap) {
1134
1265
  const webMap = new this.WebMap({
1135
1266
  portalItem: { id }
1136
1267
  });
@@ -1145,12 +1276,17 @@ const MapCard = class {
1145
1276
  await this.mapView.when(() => {
1146
1277
  this._initHome();
1147
1278
  this.mapView.ui.add(this._mapTools, { position: "top-right", index: 0 });
1279
+ this._defaultWebmapHonored = isDefaultMap ? true : this._defaultWebmapHonored;
1148
1280
  this.mapChanged.emit({
1149
1281
  id: id,
1150
1282
  mapView: this.mapView
1151
1283
  });
1152
1284
  });
1153
1285
  }
1286
+ else if (loadDefaultMap) {
1287
+ this._defaultWebmapHonored = true;
1288
+ this._mapPicker.setMapByID(id);
1289
+ }
1154
1290
  }
1155
1291
  /**
1156
1292
  * Add/remove the home widget base on enableHome prop
@@ -23,7 +23,12 @@ const CrowdsourceManager = class {
23
23
  */
24
24
  this._shouldSetMapView = false;
25
25
  this.classicGrid = false;
26
+ this.defaultGlobalId = "";
27
+ this.defaultLayer = "";
28
+ this.defaultOid = "";
29
+ this.defaultWebmap = "";
26
30
  this.enableAutoRefresh = false;
31
+ this.enableColumnReorder = true;
27
32
  this.enableCSV = true;
28
33
  this.enableFloorFilter = true;
29
34
  this.enableFullscreen = true;
@@ -52,6 +57,20 @@ const CrowdsourceManager = class {
52
57
  // Watch handlers
53
58
  //
54
59
  //--------------------------------------------------------------------------
60
+ /**
61
+ * Watch for globalid url param to be set
62
+ */
63
+ defaultGlobalIdWatchHandler() {
64
+ this._defaultGlobalId = !this.defaultGlobalId ? undefined :
65
+ this.defaultGlobalId.indexOf(",") > -1 ? this.defaultGlobalId.split(",") : [this.defaultGlobalId];
66
+ }
67
+ /**
68
+ * Watch for oid url param to be set
69
+ */
70
+ defaultOidWatchHandler() {
71
+ this._defaultOid = !this.defaultOid ? undefined :
72
+ this.defaultOid.indexOf(",") > -1 ? this.defaultOid.split(",").map(o => parseInt(o, 10)) : [parseInt(this.defaultOid, 10)];
73
+ }
55
74
  /**
56
75
  * When true the map zoom tools will be available
57
76
  */
@@ -250,7 +269,7 @@ const CrowdsourceManager = class {
250
269
  const mapDisplayClass = this.classicGrid && layoutMode === interfaces.ELayoutMode.GRID ? "display-flex height-full width-1-2" :
251
270
  layoutMode === interfaces.ELayoutMode.GRID && !hideMap ? "" : "display-none";
252
271
  const mapContainerClass = this.classicGrid && layoutMode === interfaces.ELayoutMode.GRID ? "width-full" : "adjusted-height-50";
253
- return (index.h("div", { class: `${mapContainerClass} overflow-hidden ${mapDisplayClass}` }, index.h("map-card", { basemapConfig: this.basemapConfig, class: "width-full", enableBasemap: this.enableBasemap, enableFloorFilter: this.enableFloorFilter, enableFullscreen: this.enableFullscreen, enableHome: this.enableHome, enableLegend: this.enableLegend, enableSearch: this.enableSearch, hidden: this._expandPopup, mapInfos: (_a = this.mapInfos) === null || _a === void 0 ? void 0 : _a.filter(mapInfo => mapInfo.visible !== false), theme: this.theme })));
272
+ return (index.h("div", { class: `${mapContainerClass} overflow-hidden ${mapDisplayClass}` }, index.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 })));
254
273
  }
255
274
  /**
256
275
  * Get the expand node for the popup information
@@ -306,7 +325,8 @@ const CrowdsourceManager = class {
306
325
  const toggleSlot = this.classicGrid && layoutMode !== interfaces.ELayoutMode.VERTICAL ? "footer" :
307
326
  this.classicGrid && layoutMode === interfaces.ELayoutMode.VERTICAL ? "panel-end" :
308
327
  layoutMode === interfaces.ELayoutMode.HORIZONTAL ? "header" : "panel-start";
309
- return (index.h("calcite-shell", { class: tableSizeClass + " border-bottom" }, index.h("calcite-action-bar", { class: "border-sides", expandDisabled: true, layout: toggleLayout, slot: toggleSlot }, index.h("calcite-action", { class: "toggle-node", icon: icon, id: id, onClick: () => this._toggleLayout(), text: "" }), index.h("calcite-tooltip", { label: tooltip, placement: "bottom", "reference-element": id }, index.h("span", null, tooltip))), index.h("div", { class: "width-full height-full position-relative" }, index.h("layer-table", { enableAutoRefresh: this.enableAutoRefresh, enableCSV: this.enableCSV, enableInlineEdit: this.enableInlineEdit, enableZoom: this.enableZoom, mapInfo: this._mapInfo, mapView: this === null || this === void 0 ? void 0 : this._mapView, onlyShowUpdatableLayers: this.onlyShowUpdatableLayers, showNewestFirst: this.showNewestFirst, zoomAndScrollToSelected: this.zoomAndScrollToSelected }))));
328
+ const hasMapAndLayer = this.defaultWebmap && this.defaultLayer;
329
+ return (index.h("calcite-shell", { class: tableSizeClass + " border-bottom" }, index.h("calcite-action-bar", { class: "border-sides", expandDisabled: true, layout: toggleLayout, slot: toggleSlot }, index.h("calcite-action", { class: "toggle-node", icon: icon, id: id, onClick: () => this._toggleLayout(), text: "" }), index.h("calcite-tooltip", { label: tooltip, placement: "bottom", "reference-element": id }, index.h("span", null, tooltip))), index.h("div", { class: "width-full height-full position-relative" }, index.h("layer-table", { 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 }))));
310
330
  }
311
331
  /**
312
332
  * Open/Close the appropriate panel.
@@ -374,6 +394,8 @@ const CrowdsourceManager = class {
374
394
  }
375
395
  get el() { return index.getElement(this); }
376
396
  static get watchers() { return {
397
+ "defaultGlobalId": ["defaultGlobalIdWatchHandler"],
398
+ "defaultOid": ["defaultOidWatchHandler"],
377
399
  "enableZoom": ["enableZoomWatchHandler"]
378
400
  }; }
379
401
  };
@@ -14,14 +14,23 @@ const crowdsourceReporterCss = ":host{display:block}";
14
14
  const CrowdsourceReporter = class {
15
15
  constructor(hostRef) {
16
16
  index.registerInstance(this, hostRef);
17
+ this.description = undefined;
18
+ this.enableAnonymousAccess = undefined;
19
+ this.enableAnonymousComments = undefined;
20
+ this.enableComments = undefined;
21
+ this.enableLogin = undefined;
22
+ this.enableNewReports = undefined;
23
+ this.layers = undefined;
24
+ this.loginTitle = undefined;
25
+ this.mapView = undefined;
26
+ this.reportButtonText = undefined;
27
+ this.reportsHeader = undefined;
28
+ this.reportSubmittedMessage = undefined;
29
+ this.searchConfiguration = undefined;
30
+ this.showComments = undefined;
17
31
  }
18
32
  //--------------------------------------------------------------------------
19
33
  //
20
- // Properties (public)
21
- //
22
- //--------------------------------------------------------------------------
23
- //--------------------------------------------------------------------------
24
- //
25
34
  // State (internal)
26
35
  //
27
36
  //--------------------------------------------------------------------------
@@ -50,14 +59,44 @@ const CrowdsourceReporter = class {
50
59
  // Functions (lifecycle)
51
60
  //
52
61
  //--------------------------------------------------------------------------
62
+ /**
63
+ * StencilJS: Called once just after the component is first connected to the DOM.
64
+ *
65
+ * @returns Promise when complete
66
+ */
67
+ // async componentWillLoad(): Promise<void> {
68
+ // await this._getTranslations();
69
+ // await this._initModules();
70
+ // }
71
+ /**
72
+ * Renders the component.
73
+ */
53
74
  render() {
54
- return (index.h(index.Host, null, index.h("slot", null)));
75
+ return (index.h(index.Host, null, index.h("slot", null, this.loginTitle + this.description)));
55
76
  }
56
77
  //--------------------------------------------------------------------------
57
78
  //
58
79
  // Functions (protected)
59
80
  //
60
81
  //--------------------------------------------------------------------------
82
+ /**
83
+ * Load esri javascript api modules
84
+ *
85
+ * @returns Promise resolving when function is done
86
+ *
87
+ * @protected
88
+ */
89
+ // protected async _initModules(): Promise<void> {
90
+ // const [geometryEngine, jsonUtils]: [
91
+ // __esri.geometryEngine,
92
+ // __esri.symbolsSupportJsonUtils
93
+ // ] = await loadModules([
94
+ // "esri/geometry/geometryEngine",
95
+ // "esri/symbols/support/jsonUtils"
96
+ // ]);
97
+ // this._geometryEngine = geometryEngine;
98
+ // this._jsonUtils = jsonUtils;
99
+ // }
61
100
  /**
62
101
  * Fetches the component's translations
63
102
  *
@@ -8,7 +8,7 @@
8
8
  const _commonjsHelpers = require('./_commonjsHelpers-384729db.js');
9
9
  const index = require('./index-2d5760f2.js');
10
10
  const loadModules = require('./loadModules-ad1ab1a8.js');
11
- const mapViewUtils = require('./mapViewUtils-f7bbc35b.js');
11
+ const mapViewUtils = require('./mapViewUtils-bab83c90.js');
12
12
  require('./solution-resource-f9e3b289.js');
13
13
  const restHelpersGet = require('./restHelpersGet-c94617cf.js');
14
14
 
@@ -1509,7 +1509,7 @@ function(t){var e=function(t){for(var e=t.length,r=new Uint8Array(e),n=0;n<e;n++
1509
1509
  * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1510
1510
  * ====================================================================
1511
1511
  */
1512
- function(t){function e(){return (n.canvg?Promise.resolve(n.canvg):Promise.resolve().then(function () { return require('./index.es-047537b5.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
+ function(t){function e(){return (n.canvg?Promise.resolve(n.canvg):Promise.resolve().then(function () { return require('./index.es-d208a6d6.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},
1513
1513
  /** ====================================================================
1514
1514
  * @license
1515
1515
  * jsPDF XMP metadata plugin
@@ -0,0 +1,60 @@
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
+ 'use strict';
7
+
8
+ Object.defineProperty(exports, '__esModule', { value: true });
9
+
10
+ const index = require('./index-2d5760f2.js');
11
+
12
+ const featureCommentsCss = ":host{display:block}";
13
+
14
+ const FeatureComments = class {
15
+ constructor(hostRef) {
16
+ index.registerInstance(this, hostRef);
17
+ }
18
+ //--------------------------------------------------------------------------
19
+ //
20
+ // Properties (public)
21
+ //
22
+ //--------------------------------------------------------------------------
23
+ //--------------------------------------------------------------------------
24
+ //
25
+ // State (internal)
26
+ //
27
+ //--------------------------------------------------------------------------
28
+ //--------------------------------------------------------------------------
29
+ //
30
+ // Properties (protected)
31
+ //
32
+ //--------------------------------------------------------------------------
33
+ //--------------------------------------------------------------------------
34
+ //
35
+ // Watch handlers
36
+ //
37
+ //--------------------------------------------------------------------------
38
+ //--------------------------------------------------------------------------
39
+ //
40
+ // Methods (public)
41
+ //
42
+ //--------------------------------------------------------------------------
43
+ //--------------------------------------------------------------------------
44
+ //
45
+ // Events (public)
46
+ //
47
+ //--------------------------------------------------------------------------
48
+ //--------------------------------------------------------------------------
49
+ //
50
+ // Functions (lifecycle)
51
+ //
52
+ //--------------------------------------------------------------------------
53
+ render() {
54
+ return (index.h(index.Host, null, index.h("slot", null)));
55
+ }
56
+ get el() { return index.getElement(this); }
57
+ };
58
+ FeatureComments.style = featureCommentsCss;
59
+
60
+ exports.feature_comments = FeatureComments;
@@ -0,0 +1,60 @@
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
+ 'use strict';
7
+
8
+ Object.defineProperty(exports, '__esModule', { value: true });
9
+
10
+ const index = require('./index-2d5760f2.js');
11
+
12
+ const featureFormFlowItemCss = ":host{display:block}";
13
+
14
+ const FeatureFormFlowItem = class {
15
+ constructor(hostRef) {
16
+ index.registerInstance(this, hostRef);
17
+ }
18
+ //--------------------------------------------------------------------------
19
+ //
20
+ // Properties (public)
21
+ //
22
+ //--------------------------------------------------------------------------
23
+ //--------------------------------------------------------------------------
24
+ //
25
+ // State (internal)
26
+ //
27
+ //--------------------------------------------------------------------------
28
+ //--------------------------------------------------------------------------
29
+ //
30
+ // Properties (protected)
31
+ //
32
+ //--------------------------------------------------------------------------
33
+ //--------------------------------------------------------------------------
34
+ //
35
+ // Watch handlers
36
+ //
37
+ //--------------------------------------------------------------------------
38
+ //--------------------------------------------------------------------------
39
+ //
40
+ // Methods (public)
41
+ //
42
+ //--------------------------------------------------------------------------
43
+ //--------------------------------------------------------------------------
44
+ //
45
+ // Events (public)
46
+ //
47
+ //--------------------------------------------------------------------------
48
+ //--------------------------------------------------------------------------
49
+ //
50
+ // Functions (lifecycle)
51
+ //
52
+ //--------------------------------------------------------------------------
53
+ render() {
54
+ return (index.h(index.Host, null, index.h("slot", null)));
55
+ }
56
+ get el() { return index.getElement(this); }
57
+ };
58
+ FeatureFormFlowItem.style = featureFormFlowItemCss;
59
+
60
+ exports.feature_form_flow_item = FeatureFormFlowItem;