@esri/solutions-components 0.10.2 → 0.10.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (210) hide show
  1. package/dist/cjs/basemap-gallery_7.cjs.entry.js +2 -2
  2. package/dist/cjs/buffer-tools_3.cjs.entry.js +2 -2
  3. package/dist/cjs/calcite-action-pad_2.cjs.entry.js +2 -2
  4. package/dist/cjs/calcite-alert_4.cjs.entry.js +12 -10
  5. package/dist/cjs/calcite-block_5.cjs.entry.js +4 -4
  6. package/dist/cjs/calcite-dropdown-group_2.cjs.entry.js +2 -2
  7. package/dist/cjs/calcite-flow_6.cjs.entry.js +2 -2
  8. package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +5 -5
  9. package/dist/cjs/card-manager_3.cjs.entry.js +7 -6
  10. package/dist/cjs/{common-4d4cf291.js → common-61b41813.js} +1 -1
  11. package/dist/cjs/consent-manager.cjs.entry.js +2 -2
  12. package/dist/cjs/crowdsource-manager.cjs.entry.js +5 -6
  13. package/dist/cjs/crowdsource-reporter.cjs.entry.js +2 -2
  14. package/dist/cjs/{downloadUtils-48ffc5b3.js → downloadUtils-b757205e.js} +5 -5
  15. package/dist/cjs/feature-list.cjs.entry.js +6 -6
  16. package/dist/cjs/{helpers-6f7660d4.js → helpers-1deec961.js} +1 -1
  17. package/dist/cjs/{index.es-9e361fa2.js → index.es-6c8b7d64.js} +5 -5
  18. package/dist/cjs/instant-apps-ckeditor-wrapper_3.cjs.entry.js +5 -5
  19. package/dist/cjs/instant-apps-control-panel.cjs.entry.js +2 -2
  20. package/dist/cjs/instant-apps-create.cjs.entry.js +4 -4
  21. package/dist/cjs/instant-apps-export-views.cjs.entry.js +4 -4
  22. package/dist/cjs/instant-apps-export.cjs.entry.js +4 -4
  23. package/dist/cjs/instant-apps-header.cjs.entry.js +2 -2
  24. package/dist/cjs/instant-apps-interactive-legend-classic.cjs.entry.js +3 -3
  25. package/dist/cjs/instant-apps-interactive-legend-count_2.cjs.entry.js +3 -3
  26. package/dist/cjs/instant-apps-interactive-legend-group-legend-element-caption.cjs.entry.js +3 -3
  27. package/dist/cjs/instant-apps-interactive-legend-group-legend-element_5.cjs.entry.js +3 -3
  28. package/dist/cjs/instant-apps-interactive-legend.cjs.entry.js +5 -5
  29. package/dist/cjs/instant-apps-keyboard-shortcuts.cjs.entry.js +4 -4
  30. package/dist/cjs/instant-apps-language-switcher.cjs.entry.js +6 -6
  31. package/dist/cjs/instant-apps-language-translator.cjs.entry.js +6 -6
  32. package/dist/cjs/instant-apps-measurement.cjs.entry.js +4 -4
  33. package/dist/cjs/instant-apps-popover.cjs.entry.js +4 -4
  34. package/dist/cjs/instant-apps-scoreboard.cjs.entry.js +4 -4
  35. package/dist/cjs/instant-apps-sign-in.cjs.entry.js +4 -4
  36. package/dist/cjs/instant-apps-splash.cjs.entry.js +4 -4
  37. package/dist/cjs/instant-apps-time-filter.cjs.entry.js +4 -4
  38. package/dist/cjs/{languageSwitcher-f0bb94fa.js → languageSwitcher-dc2dd354.js} +1 -1
  39. package/dist/cjs/{languageUtil-f22ce913.js → languageUtil-a3e1eafd.js} +1 -1
  40. package/dist/cjs/layout-manager.cjs.entry.js +2 -2
  41. package/dist/cjs/{loadModules-36d49819.js → loadModules-8567855e.js} +1 -1
  42. package/dist/cjs/loader.cjs.js +1 -1
  43. package/dist/cjs/{locale-2dc1252d.js → locale-4e7fe921.js} +1 -1
  44. package/dist/cjs/{locale-239118c6.js → locale-a1bcb6eb.js} +2 -2
  45. package/dist/cjs/map-select-tools_3.cjs.entry.js +33 -24
  46. package/dist/cjs/{popupUtils-b771f498.js → popupUtils-2b5ec788.js} +2 -2
  47. package/dist/cjs/public-notification.cjs.entry.js +13 -10
  48. package/dist/cjs/{restHelpersGet-88ba0e25.js → restHelpersGet-bf484fda.js} +24 -20
  49. package/dist/cjs/solution-configuration.cjs.entry.js +6 -6
  50. package/dist/cjs/solution-contents_3.cjs.entry.js +6 -6
  51. package/dist/cjs/{solution-resource-16c7510c.js → solution-resource-57cf345b.js} +1 -1
  52. package/dist/cjs/{solution-store-747a28ab.js → solution-store-71bb46fa.js} +65 -58
  53. package/dist/cjs/solutions-components.cjs.js +1 -1
  54. package/dist/cjs/spatial-ref.cjs.entry.js +4 -4
  55. package/dist/cjs/store-manager.cjs.entry.js +4 -4
  56. package/dist/cjs/{templates-2f44c01b.js → templates-e4b98319.js} +2 -2
  57. package/dist/cjs/{utils-e486aa01.js → utils-b43fe04f.js} +1 -1
  58. package/dist/collection/components/card-manager/card-manager.js +20 -1
  59. package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +3 -22
  60. package/dist/collection/components/edit-card/edit-card.js +21 -2
  61. package/dist/collection/components/info-card/info-card.js +21 -2
  62. package/dist/collection/components/map-select-tools/map-select-tools.js +81 -18
  63. package/dist/collection/components/public-notification/public-notification.js +62 -5
  64. package/dist/collection/components/refine-selection/refine-selection.js +1 -1
  65. package/dist/collection/utils/interfaces.ts +3 -0
  66. package/dist/collection/utils/pdfUtils.js +1 -1
  67. package/dist/collection/utils/pdfUtils.ts +1 -1
  68. package/dist/components/card-manager2.js +3 -1
  69. package/dist/components/crowdsource-manager.js +3 -5
  70. package/dist/components/downloadUtils.js +1 -1
  71. package/dist/components/edit-card2.js +4 -2
  72. package/dist/components/info-card2.js +4 -2
  73. package/dist/components/map-select-tools2.js +30 -18
  74. package/dist/components/public-notification.js +11 -5
  75. package/dist/components/refine-selection2.js +1 -1
  76. package/dist/components/restHelpersGet.js +23 -19
  77. package/dist/components/solution-resource.js +1 -1
  78. package/dist/components/solution-store.js +63 -56
  79. package/dist/esm/basemap-gallery_7.entry.js +2 -2
  80. package/dist/esm/buffer-tools_3.entry.js +2 -2
  81. package/dist/esm/calcite-action-pad_2.entry.js +2 -2
  82. package/dist/esm/calcite-alert_4.entry.js +12 -10
  83. package/dist/esm/calcite-block_5.entry.js +4 -4
  84. package/dist/esm/calcite-dropdown-group_2.entry.js +2 -2
  85. package/dist/esm/calcite-flow_6.entry.js +2 -2
  86. package/dist/esm/calcite-shell-panel_14.entry.js +5 -5
  87. package/dist/esm/card-manager_3.entry.js +7 -6
  88. package/dist/esm/{common-3b99e350.js → common-1618d62f.js} +1 -1
  89. package/dist/esm/consent-manager.entry.js +2 -2
  90. package/dist/esm/crowdsource-manager.entry.js +5 -6
  91. package/dist/esm/crowdsource-reporter.entry.js +2 -2
  92. package/dist/esm/{downloadUtils-abb8cda2.js → downloadUtils-16c51b10.js} +5 -5
  93. package/dist/esm/feature-list.entry.js +6 -6
  94. package/dist/esm/{helpers-62213648.js → helpers-2298687e.js} +1 -1
  95. package/dist/esm/{index.es-9283e62c.js → index.es-d950915a.js} +5 -5
  96. package/dist/esm/instant-apps-ckeditor-wrapper_3.entry.js +5 -5
  97. package/dist/esm/instant-apps-control-panel.entry.js +2 -2
  98. package/dist/esm/instant-apps-create.entry.js +4 -4
  99. package/dist/esm/instant-apps-export-views.entry.js +4 -4
  100. package/dist/esm/instant-apps-export.entry.js +4 -4
  101. package/dist/esm/instant-apps-header.entry.js +2 -2
  102. package/dist/esm/instant-apps-interactive-legend-classic.entry.js +3 -3
  103. package/dist/esm/instant-apps-interactive-legend-count_2.entry.js +3 -3
  104. package/dist/esm/instant-apps-interactive-legend-group-legend-element-caption.entry.js +3 -3
  105. package/dist/esm/instant-apps-interactive-legend-group-legend-element_5.entry.js +3 -3
  106. package/dist/esm/instant-apps-interactive-legend.entry.js +5 -5
  107. package/dist/esm/instant-apps-keyboard-shortcuts.entry.js +4 -4
  108. package/dist/esm/instant-apps-language-switcher.entry.js +6 -6
  109. package/dist/esm/instant-apps-language-translator.entry.js +6 -6
  110. package/dist/esm/instant-apps-measurement.entry.js +4 -4
  111. package/dist/esm/instant-apps-popover.entry.js +4 -4
  112. package/dist/esm/instant-apps-scoreboard.entry.js +4 -4
  113. package/dist/esm/instant-apps-sign-in.entry.js +4 -4
  114. package/dist/esm/instant-apps-splash.entry.js +4 -4
  115. package/dist/esm/instant-apps-time-filter.entry.js +4 -4
  116. package/dist/esm/{languageSwitcher-b665499d.js → languageSwitcher-9db90f1e.js} +1 -1
  117. package/dist/esm/{languageUtil-a3e6adf6.js → languageUtil-2b6e191a.js} +1 -1
  118. package/dist/esm/layout-manager.entry.js +2 -2
  119. package/dist/esm/{loadModules-9c062d08.js → loadModules-03ba7abe.js} +1 -1
  120. package/dist/esm/loader.js +1 -1
  121. package/dist/esm/{locale-e758c2ee.js → locale-7162b55a.js} +1 -1
  122. package/dist/esm/{locale-35ebf4af.js → locale-adb5ff0b.js} +2 -2
  123. package/dist/esm/map-select-tools_3.entry.js +33 -24
  124. package/dist/esm/{popupUtils-9b2b0aba.js → popupUtils-44f11275.js} +2 -2
  125. package/dist/esm/public-notification.entry.js +13 -10
  126. package/dist/esm/{restHelpersGet-788d7f7b.js → restHelpersGet-0a15c2f4.js} +24 -20
  127. package/dist/esm/solution-configuration.entry.js +6 -6
  128. package/dist/esm/solution-contents_3.entry.js +6 -6
  129. package/dist/esm/{solution-resource-966f8511.js → solution-resource-ab63a236.js} +1 -1
  130. package/dist/esm/{solution-store-0586e891.js → solution-store-e2690620.js} +65 -58
  131. package/dist/esm/solutions-components.js +1 -1
  132. package/dist/esm/spatial-ref.entry.js +4 -4
  133. package/dist/esm/store-manager.entry.js +4 -4
  134. package/dist/esm/{templates-9330d7b8.js → templates-9556eb87.js} +2 -2
  135. package/dist/esm/{utils-72a48b01.js → utils-178e7afe.js} +1 -1
  136. package/dist/solutions-components/{p-71452a4e.entry.js → p-002c97df.entry.js} +1 -1
  137. package/dist/solutions-components/{p-08b0e478.js → p-00b26aac.js} +2 -2
  138. package/dist/solutions-components/{p-f2ac5d0e.js → p-1904654e.js} +1 -1
  139. package/dist/solutions-components/{p-e9aba912.entry.js → p-1b9aa18e.entry.js} +1 -1
  140. package/dist/solutions-components/p-235bf02e.entry.js +6 -0
  141. package/dist/solutions-components/{p-beeccd19.entry.js → p-24b3aedc.entry.js} +1 -1
  142. package/dist/solutions-components/p-2727a29c.entry.js +6 -0
  143. package/dist/solutions-components/{p-f067a46c.js → p-2fa78dd8.js} +1 -1
  144. package/dist/solutions-components/{p-c742acd9.js → p-2fc63144.js} +1 -1
  145. package/dist/solutions-components/{p-65283b75.entry.js → p-3438cbc4.entry.js} +1 -1
  146. package/dist/solutions-components/{p-1176ec70.entry.js → p-38cfa3cd.entry.js} +1 -1
  147. package/dist/solutions-components/p-3b426576.entry.js +6 -0
  148. package/dist/solutions-components/{p-de30afd0.entry.js → p-425a1dab.entry.js} +1 -1
  149. package/dist/solutions-components/{p-29962ae5.entry.js → p-4848b48f.entry.js} +1 -1
  150. package/dist/solutions-components/{p-73ef6866.js → p-4b3cc01f.js} +3 -3
  151. package/dist/solutions-components/{p-65581d83.js → p-4cd4cb85.js} +1 -1
  152. package/dist/solutions-components/{p-2d03b0d7.entry.js → p-5b818d29.entry.js} +1 -1
  153. package/dist/solutions-components/{p-787a4789.entry.js → p-5c999087.entry.js} +1 -1
  154. package/dist/solutions-components/{p-32f5c6ec.entry.js → p-69cfa9e6.entry.js} +1 -1
  155. package/dist/solutions-components/{p-51cfb4a6.entry.js → p-6b30ca36.entry.js} +1 -1
  156. package/dist/solutions-components/{p-4b843bc0.entry.js → p-6de944af.entry.js} +1 -1
  157. package/dist/solutions-components/{p-4a0838c0.entry.js → p-78712b70.entry.js} +1 -1
  158. package/dist/solutions-components/{p-ee87a7b0.entry.js → p-7af4c00e.entry.js} +3 -3
  159. package/dist/solutions-components/{p-09d62c22.js → p-7bfecd07.js} +1 -1
  160. package/dist/solutions-components/{p-07053ee3.entry.js → p-80e6c7cb.entry.js} +1 -1
  161. package/dist/solutions-components/{p-ef493a84.entry.js → p-86e6b5b3.entry.js} +1 -1
  162. package/dist/solutions-components/{p-81f62cf5.entry.js → p-88d4db61.entry.js} +1 -1
  163. package/dist/solutions-components/{p-13f83a1a.entry.js → p-8a6fa619.entry.js} +1 -1
  164. package/dist/solutions-components/{p-e05894a6.entry.js → p-8b999a2b.entry.js} +1 -1
  165. package/dist/solutions-components/{p-614edd9f.entry.js → p-8e8b92b4.entry.js} +1 -1
  166. package/dist/solutions-components/{p-a759e0e5.js → p-90d6755b.js} +1 -1
  167. package/dist/solutions-components/{p-f4828ba4.entry.js → p-932f22b5.entry.js} +1 -1
  168. package/dist/solutions-components/{p-afad4f05.js → p-a091bc9a.js} +1 -1
  169. package/dist/solutions-components/{p-a7b05a79.entry.js → p-a22b8cc1.entry.js} +1 -1
  170. package/dist/solutions-components/{p-a7710355.js → p-a860f365.js} +8 -7
  171. package/dist/solutions-components/{p-2cff27c5.js → p-a8e6463b.js} +2 -2
  172. package/dist/solutions-components/{p-7efb5ef0.entry.js → p-a9818be2.entry.js} +1 -1
  173. package/dist/solutions-components/{p-3e84a420.entry.js → p-ab2adcaf.entry.js} +1 -1
  174. package/dist/solutions-components/{p-4c0b8e55.entry.js → p-abc9e858.entry.js} +1 -1
  175. package/dist/solutions-components/{p-af2c8aa9.js → p-ac122d9e.js} +1 -1
  176. package/dist/solutions-components/{p-ed9b7fa1.entry.js → p-b19ca04e.entry.js} +1 -1
  177. package/dist/solutions-components/{p-fb0fdc0d.entry.js → p-b7cec3bd.entry.js} +1 -1
  178. package/dist/solutions-components/p-b80bcd0b.entry.js +6 -0
  179. package/dist/solutions-components/{p-92744164.entry.js → p-b850796d.entry.js} +1 -1
  180. package/dist/solutions-components/{p-7c583516.js → p-badcaf04.js} +1 -1
  181. package/dist/solutions-components/{p-a2150807.entry.js → p-c6473b38.entry.js} +1 -1
  182. package/dist/solutions-components/{p-f341b87e.entry.js → p-d57736d0.entry.js} +1 -1
  183. package/dist/solutions-components/{p-09b47605.js → p-d7868dd4.js} +1 -1
  184. package/dist/solutions-components/{p-f7d822f7.entry.js → p-d8047d8f.entry.js} +1 -1
  185. package/dist/solutions-components/{p-386429a4.entry.js → p-dc17b638.entry.js} +1 -1
  186. package/dist/solutions-components/{p-02d3d3e9.entry.js → p-e3e593db.entry.js} +2 -2
  187. package/dist/solutions-components/{p-00786a30.entry.js → p-edd70ba3.entry.js} +1 -1
  188. package/dist/solutions-components/{p-6f836c0a.entry.js → p-ef6567ae.entry.js} +1 -1
  189. package/dist/solutions-components/{p-0bf41dfd.entry.js → p-f59b4183.entry.js} +1 -1
  190. package/dist/solutions-components/solutions-components.esm.js +1 -1
  191. package/dist/solutions-components/utils/interfaces.ts +3 -0
  192. package/dist/solutions-components/utils/pdfUtils.ts +1 -1
  193. package/dist/types/components/card-manager/card-manager.d.ts +4 -0
  194. package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +0 -4
  195. package/dist/types/components/edit-card/edit-card.d.ts +4 -0
  196. package/dist/types/components/info-card/info-card.d.ts +4 -0
  197. package/dist/types/components/map-select-tools/map-select-tools.d.ts +12 -0
  198. package/dist/types/components/public-notification/public-notification.d.ts +12 -0
  199. package/dist/types/components.d.ts +72 -8
  200. package/dist/types/utils/interfaces.d.ts +3 -0
  201. package/package.json +1 -1
  202. package/dist/solutions-components/p-2977bdbf.entry.js +0 -6
  203. package/dist/solutions-components/p-d0432926.entry.js +0 -6
  204. package/dist/solutions-components/p-d1fd4a53.entry.js +0 -6
  205. package/dist/solutions-components/p-f26423c7.entry.js +0 -6
  206. package/dist/solutions-components_commit.txt +0 -8
  207. /package/dist/cjs/{esri-loader-a56cbcbe.js → esri-loader-08dc41bd.js} +0 -0
  208. /package/dist/esm/{esri-loader-781d738a.js → esri-loader-c6842c6b.js} +0 -0
  209. /package/dist/solutions-components/{p-6a68306c.js → p-0a24ad5f.js} +0 -0
  210. /package/dist/solutions-components/{p-659678f1.js → p-9fe07c30.js} +0 -0
@@ -8,11 +8,11 @@
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
10
  const index = require('./index-696e53e6.js');
11
- const locale = require('./locale-2dc1252d.js');
12
- const common = require('./common-4d4cf291.js');
13
- require('./esri-loader-a56cbcbe.js');
11
+ const locale = require('./locale-4e7fe921.js');
12
+ const common = require('./common-61b41813.js');
13
+ require('./esri-loader-08dc41bd.js');
14
14
  require('./_commonjsHelpers-baf43783.js');
15
- require('./solution-resource-16c7510c.js');
15
+ require('./solution-resource-57cf345b.js');
16
16
  require('./interfaces-09c4c40e.js');
17
17
 
18
18
  /** @license
@@ -8,13 +8,13 @@
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
10
  const index = require('./index-696e53e6.js');
11
- const solutionStore = require('./solution-store-747a28ab.js');
12
- const templates = require('./templates-2f44c01b.js');
11
+ const solutionStore = require('./solution-store-71bb46fa.js');
12
+ const templates = require('./templates-e4b98319.js');
13
13
  require('./index-a0cca96e.js');
14
14
  require('./interfaces-09c4c40e.js');
15
- require('./solution-resource-16c7510c.js');
15
+ require('./solution-resource-57cf345b.js');
16
16
  require('./_commonjsHelpers-baf43783.js');
17
- require('./restHelpersGet-88ba0e25.js');
17
+ require('./restHelpersGet-bf484fda.js');
18
18
 
19
19
  const StoreManager = class {
20
20
  constructor(hostRef) {
@@ -6,8 +6,8 @@
6
6
  'use strict';
7
7
 
8
8
  const interfaces = require('./interfaces-09c4c40e.js');
9
- require('./solution-resource-16c7510c.js');
10
- const restHelpersGet = require('./restHelpersGet-88ba0e25.js');
9
+ require('./solution-resource-57cf345b.js');
10
+ const restHelpersGet = require('./restHelpersGet-bf484fda.js');
11
11
 
12
12
  /** @license
13
13
  * Copyright 2022 Esri
@@ -5,7 +5,7 @@
5
5
  */
6
6
  'use strict';
7
7
 
8
- const locale = require('./locale-239118c6.js');
8
+ const locale = require('./locale-a1bcb6eb.js');
9
9
  const index = require('./index-a0cca96e.js');
10
10
 
11
11
  exports.EInputType = void 0;
@@ -24,6 +24,7 @@ import { queryFeaturesByID } from "../../utils/queryUtils";
24
24
  import { getLayerOrTable } from "../../utils/mapViewUtils";
25
25
  export class CardManager {
26
26
  constructor() {
27
+ this.enableEditGeometry = false;
27
28
  this.isMobile = undefined;
28
29
  this.layer = undefined;
29
30
  this.mapView = undefined;
@@ -91,7 +92,7 @@ export class CardManager {
91
92
  render() {
92
93
  const featuresClass = this._graphics?.length > 0 ? "" : "display-none";
93
94
  const messageClass = this._graphics?.length > 0 ? "display-none" : "";
94
- return (h(Host, { key: '343554e5408de156f1973f6d1e3daa8f1ba90675' }, h("div", { key: '1852562a795002314236052351cab7c29d36854e', class: "overflow-auto height-full" }, h("calcite-shell", { key: '684f013e4397bc50743526357384f782a88a5cd3', class: "position-relative " + featuresClass }, h("div", { key: 'db6d9f4be5448b5596b22f2a4f49c6baefa88466' }, h("info-card", { key: 'be5cec81cae7ca00a5b57c8d9590541f78b67fbd', graphics: this._graphics, isLoading: this._cardLoading, isMobile: this.isMobile, mapView: this.mapView }))), h("calcite-shell", { key: 'df34e0ae6978298130970c60d21203f52fa32e4b', class: "position-relative " + messageClass }, h("div", { key: '9525a95dd21745e211ebf888da44eca6a6c17721', class: "padding-1" }, h("calcite-notice", { key: 'ade0e0a2f09bbe7b7bda6fdb2ce65ba81121e633', icon: "table", open: true }, h("div", { key: 'd6fce2d657e23738720e004177c510c3273017f4', slot: "message" }, this._translations.selectFeaturesToStart)))))));
95
+ return (h(Host, { key: 'ff2b82f23cc912a79d4f2d04a3263215e54ff03d' }, h("div", { key: '64a96d7162508794b955dc4b557fa94d18f8ab53', class: "overflow-auto height-full" }, h("calcite-shell", { key: '77b8ad0b9a459d2fb9399ccfebc6d0211147bb01', class: "position-relative " + featuresClass }, h("div", { key: 'e0725835f5c1c32a9164e04d6321ba5853a3892c' }, h("info-card", { key: '6712a077c4746585e7b2474aedd14e1869b37c34', enableEditGeometry: this.enableEditGeometry, graphics: this._graphics, isLoading: this._cardLoading, isMobile: this.isMobile, mapView: this.mapView }))), h("calcite-shell", { key: '38c85dbb72df9b9b1225f1488c3bf384f67d7db4', class: "position-relative " + messageClass }, h("div", { key: '66386d1a0d19fb4a023515e5dc4b41ac73a8c257', class: "padding-1" }, h("calcite-notice", { key: '12a843bede7b688651b436bcb9b7ad9e7f6217e0', icon: "table", open: true }, h("div", { key: '28862f4aa25802ca6b2bdc0ef2af3bcb825267f9', slot: "message" }, this._translations.selectFeaturesToStart)))))));
95
96
  }
96
97
  //--------------------------------------------------------------------------
97
98
  //
@@ -121,6 +122,24 @@ export class CardManager {
121
122
  }
122
123
  static get properties() {
123
124
  return {
125
+ "enableEditGeometry": {
126
+ "type": "boolean",
127
+ "mutable": false,
128
+ "complexType": {
129
+ "original": "boolean",
130
+ "resolved": "boolean",
131
+ "references": {}
132
+ },
133
+ "required": false,
134
+ "optional": false,
135
+ "docs": {
136
+ "tags": [],
137
+ "text": "When true the geometry of the current feature will be editable"
138
+ },
139
+ "attribute": "enable-edit-geometry",
140
+ "reflect": false,
141
+ "defaultValue": "false"
142
+ },
124
143
  "isMobile": {
125
144
  "type": "boolean",
126
145
  "mutable": false,
@@ -42,7 +42,6 @@ export class CrowdsourceManager {
42
42
  this.enableFloorFilter = true;
43
43
  this.enableFullscreen = true;
44
44
  this.enableHome = true;
45
- this.enableInlineEdit = false;
46
45
  this.enableLegend = true;
47
46
  this.enableSearch = true;
48
47
  this.enableShare = false;
@@ -236,7 +235,7 @@ export class CrowdsourceManager {
236
235
  render() {
237
236
  // only avoid border when we have a header color that is not white
238
237
  const borderClass = this.popupHeaderColor && this.popupHeaderColor !== "#FFFFFF" ? "border-width-0" : "";
239
- return (h(Host, { key: 'b11285fd599a3fb8787f0dbe945f550d7fd91168' }, h("calcite-shell", { key: '4f22fe896b96640f39a319f4c52f943bf558fb9a', class: "position-relative" }, h("calcite-panel", { key: '4bbaddea44543ec3b479b8f4c1c0cae390c939c2', class: `width-full height-full ${borderClass}` }, this._getBody(this._layoutMode, this._panelOpen, this._hideTable)), this._getFooter())));
238
+ return (h(Host, { key: '711376ac0d4b633b63c4c94b87f98255c3562dc1' }, h("calcite-shell", { key: 'b78e8febbbf55e0e61817c04c4838095a5de6ebe', class: "position-relative" }, h("calcite-panel", { key: '8e53369a82e75cbea09e6d4edd42f1e09954277b', class: `width-full height-full ${borderClass}` }, this._getBody(this._layoutMode, this._panelOpen, this._hideTable)), this._getFooter())));
240
239
  }
241
240
  /**
242
241
  * Called after each render
@@ -440,7 +439,7 @@ export class CrowdsourceManager {
440
439
  _getCardNode() {
441
440
  const cardManagerHeight = !this._expandPopup && !this._isMobile ? "height-50" : "height-full";
442
441
  const themeClass = this.theme === "dark" ? "calcite-mode-dark" : "calcite-mode-light";
443
- return (h("div", { class: `width-50 height-full ${themeClass}` }, h("card-manager", { class: `${cardManagerHeight} width-full`, isMobile: this._isMobile, mapView: this?._mapView, zoomAndScrollToSelected: this.zoomAndScrollToSelected })));
442
+ return (h("div", { class: `width-50 height-full ${themeClass}` }, h("card-manager", { class: `${cardManagerHeight} width-full`, enableEditGeometry: this?._mapInfo?.enableEditGeometry, isMobile: this._isMobile, mapView: this?._mapView, zoomAndScrollToSelected: this.zoomAndScrollToSelected })));
444
443
  }
445
444
  /**
446
445
  * Get the table node based for the current layout
@@ -464,7 +463,7 @@ export class CrowdsourceManager {
464
463
  this.defaultGlobalId?.indexOf(",") > -1 ? this.defaultGlobalId.split(",") : [this.defaultGlobalId];
465
464
  const defaultOid = !this.defaultOid ? undefined :
466
465
  this.defaultOid?.indexOf(",") > -1 ? this.defaultOid.split(",").map(o => parseInt(o, 10)) : [parseInt(this.defaultOid, 10)];
467
- return (h("calcite-shell", { class: `${tableSizeClass} ${tableClass} border-bottom` }, !this._isMobile ? (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)))) : undefined, h("div", { class: `width-full height-full position-relative` }, h("layer-table", { defaultGlobalId: hasMapAndLayer ? globalId : undefined, defaultLayerId: hasMapAndLayer ? this.defaultLayer : "", defaultOid: hasMapAndLayer && !globalId ? defaultOid : undefined, enableAutoRefresh: this.enableAutoRefresh, enableCSV: this.enableCSV, enableColumnReorder: this.enableColumnReorder, enableInlineEdit: this.enableInlineEdit, enableShare: this.enableShare, isMobile: this._isMobile, mapHidden: this._expandPopup, mapInfo: this._mapInfo, mapView: this?._mapView, onlyShowUpdatableLayers: this.onlyShowUpdatableLayers, ref: (el) => this._layerTable = el, shareIncludeEmbed: this.shareIncludeEmbed, shareIncludeSocial: this.shareIncludeSocial, showNewestFirst: this.showNewestFirst, zoomAndScrollToSelected: this.zoomAndScrollToSelected, zoomToScale: this.zoomToScale }))));
466
+ return (h("calcite-shell", { class: `${tableSizeClass} ${tableClass} border-bottom` }, !this._isMobile ? (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)))) : undefined, h("div", { class: `width-full height-full position-relative` }, h("layer-table", { defaultGlobalId: hasMapAndLayer ? globalId : undefined, defaultLayerId: hasMapAndLayer ? this.defaultLayer : "", defaultOid: hasMapAndLayer && !globalId ? defaultOid : undefined, enableAutoRefresh: this.enableAutoRefresh, enableCSV: this.enableCSV, enableColumnReorder: this.enableColumnReorder, enableInlineEdit: this?._mapInfo?.enableInlineEdit, enableShare: this.enableShare, isMobile: this._isMobile, mapHidden: this._expandPopup, mapInfo: this._mapInfo, mapView: this?._mapView, onlyShowUpdatableLayers: this.onlyShowUpdatableLayers, ref: (el) => this._layerTable = el, shareIncludeEmbed: this.shareIncludeEmbed, shareIncludeSocial: this.shareIncludeSocial, showNewestFirst: this.showNewestFirst, zoomAndScrollToSelected: this.zoomAndScrollToSelected, zoomToScale: this.zoomToScale }))));
468
467
  }
469
468
  /**
470
469
  * Update the component layout when its size changes
@@ -902,24 +901,6 @@ export class CrowdsourceManager {
902
901
  "reflect": false,
903
902
  "defaultValue": "true"
904
903
  },
905
- "enableInlineEdit": {
906
- "type": "boolean",
907
- "mutable": false,
908
- "complexType": {
909
- "original": "boolean",
910
- "resolved": "boolean",
911
- "references": {}
912
- },
913
- "required": false,
914
- "optional": false,
915
- "docs": {
916
- "tags": [],
917
- "text": "boolean: when true edits can be applied directly within the table"
918
- },
919
- "attribute": "enable-inline-edit",
920
- "reflect": false,
921
- "defaultValue": "false"
922
- },
923
904
  "enableLegend": {
924
905
  "type": "boolean",
925
906
  "mutable": false,
@@ -24,6 +24,7 @@ import { getLocaleComponentStrings } from "../../utils/locale";
24
24
  import { getAllLayers } from "../../utils/mapViewUtils";
25
25
  export class EditCard {
26
26
  constructor() {
27
+ this.enableEditGeometry = false;
27
28
  this.graphics = undefined;
28
29
  this.mapView = undefined;
29
30
  this.open = false;
@@ -193,7 +194,7 @@ export class EditCard {
193
194
  !this.graphics[0].layer.editingEnabled : true;
194
195
  const tableNodeClass = this._editorLoading ? "display-none" : "position-absolute";
195
196
  const loadingClass = this._editorLoading ? "" : "display-none";
196
- return (h(Host, { key: '80acdd7d9b9441be28664ab60b7ad5d19c633bdd' }, h("div", { key: 'c8e41f2f7f3d5fcc4f49dd42b1f530c9e422cc8a', class: "position-absolute" }, editDisabled ? (h("calcite-notice", { kind: "warning", open: true, slot: "content-top", width: "full" }, h("div", { slot: "message" }, this._translations.enableEditing))) : undefined, h("div", { key: '4b93fef902254d2a55e997bccdb4e16ee67c3c75', class: "position-absolute" }, h("div", { key: '1794c5c246ab90b2915a15a15077ae7d82ec567c', class: tableNodeClass, id: "feature-form", ref: (el) => this._editContainer = el }), h("calcite-loader", { key: '001162f8ae947cae915de33c16a116efd7795f75', class: loadingClass, label: "", scale: "s" })))));
197
+ return (h(Host, { key: '5f81ea077d226b6bccf489c0628bf425df078d3a' }, h("div", { key: 'b66be8fe337bdedfe55d5897d044e5d2f6741c7e', class: "position-absolute" }, editDisabled ? (h("calcite-notice", { kind: "warning", open: true, slot: "content-top", width: "full" }, h("div", { slot: "message" }, this._translations.enableEditing))) : undefined, h("div", { key: '58c7c0ff41141280c69d6477b3699bc6960b7a0a', class: "position-absolute" }, h("div", { key: '6b853f84699c0dcbeb867c13b7cd84f6316d87a9', class: tableNodeClass, id: "feature-form", ref: (el) => this._editContainer = el }), h("calcite-loader", { key: '2a30bcd6e2fad7f65d16b167cf9d1cdc7549ca01', class: loadingClass, label: "", scale: "s" })))));
197
198
  }
198
199
  //--------------------------------------------------------------------------
199
200
  //
@@ -226,7 +227,7 @@ export class EditCard {
226
227
  const layerInfos = layers.map(layer => {
227
228
  return {
228
229
  layer,
229
- geometryUpdatesEnabled: false
230
+ geometryUpdatesEnabled: this.enableEditGeometry
230
231
  };
231
232
  });
232
233
  this._editor = new this.Editor({
@@ -310,6 +311,24 @@ export class EditCard {
310
311
  }
311
312
  static get properties() {
312
313
  return {
314
+ "enableEditGeometry": {
315
+ "type": "boolean",
316
+ "mutable": false,
317
+ "complexType": {
318
+ "original": "boolean",
319
+ "resolved": "boolean",
320
+ "references": {}
321
+ },
322
+ "required": false,
323
+ "optional": false,
324
+ "docs": {
325
+ "tags": [],
326
+ "text": "When true the geometry of the current feature will be editable"
327
+ },
328
+ "attribute": "enable-edit-geometry",
329
+ "reflect": false,
330
+ "defaultValue": "false"
331
+ },
313
332
  "graphics": {
314
333
  "type": "unknown",
315
334
  "mutable": true,
@@ -24,6 +24,7 @@ import { loadModules } from "../../utils/loadModules";
24
24
  import { PopupUtils } from "../../utils/popupUtils";
25
25
  export class InfoCard {
26
26
  constructor() {
27
+ this.enableEditGeometry = false;
27
28
  this.graphics = undefined;
28
29
  this.isLoading = false;
29
30
  this.isMobile = undefined;
@@ -231,8 +232,8 @@ export class InfoCard {
231
232
  const id = this._features?.selectedFeature?.getObjectId();
232
233
  const ids = parseInt(id?.toString(), 10) > -1 ? [id] : [];
233
234
  const deleteEnabled = this._layer?.editingEnabled && this._layer?.capabilities?.operations?.supportsDelete;
234
- return (h(Host, { key: 'ac9c78b064154a666a50e7e8540f13bd541c4d37' }, h("calcite-shell", { key: 'e12b6fd8ac5f92282899edceb5818764fb543301', style: { position: this.position } }, this._getHeader(), h("calcite-loader", { key: 'e73db3c6f71cddf497cb20e1f59e9f1d8b1ecdd6', class: loadingClass, label: this._translations.fetchingData }), h("div", { key: 'ab1913d90206219978d425a45f312da3e73bcca8', class: "esri-widget feature-node " + featureNodeClass, id: this._featuresNodeId }), h("div", { key: '67242dfb2b219e71a135c88d9d5e2fd40b083226', class: `${editButtonClass} width-100`, slot: "footer" }, this.allowEditing &&
235
- h("div", { key: '25ee3d9374a5ce97c4fcd672b1f78315d1294719', class: "display-flex top-border padding-1-2" }, h("calcite-button", { key: '840e3b4ae075fbfd7836f2757128e2cfe9f267e3', appearance: "solid", id: "solutions-edit", onClick: () => this._openEditRecord(), width: "full" }, this._translations.edit), this.isMobile && deleteEnabled ? (h("delete-button", { class: "padding-inline-start-1 width-100", id: "solutions-delete", ids: ids, layer: this._layer, onEditsComplete: () => this._closePopup() })) : undefined, h("calcite-tooltip", { key: '747436c3815e94976c2838777a26185c9cb7ab28', placement: "bottom", "reference-element": "solutions-edit" }, h("span", { key: 'd40dbe85eddaf99acc522f305960ce59c16a8b1f' }, this._translations.edit)), this.isMobile ? (h("calcite-tooltip", { placement: "bottom", "reference-element": "solutions-delete" }, h("span", null, this._translations.delete))) : undefined), this.paginationEnabled && !nextBackDisabled && h("div", { key: '9a1b1e5d7e4432f6b2cd80f77a49f50b1910117f', class: `display-flex padding-1-2 button-container top-border ${nextBackClass}` }, h("div", { key: '9b6fd66023b514ff996107ade3af93415f1353f1' }, h("calcite-button", { key: '823bcbe1a3b592344972e6ef39fd5088ab6197fa', appearance: 'transparent', disabled: nextBackDisabled, iconStart: "chevron-left", id: "solutions-back", onClick: () => this._back(), width: "full" }), h("calcite-tooltip", { key: 'f547487c9eae179e0c65015a24432c936de2ceca', placement: "top", "reference-element": "solutions-back" }, h("span", { key: 'f6f352416103008acc20238efe7e7714fca8d05e' }, this._translations.back))), h("calcite-action", { key: '799e06b8af5df338b920ddc578fa349de469e786', class: 'pagination-action', onClick: () => this._toggleListView(), scale: "s", text: "", textEnabled: true }, h("span", { key: 'adee5b6b5149dbb4c1d6136c1314db89a04e8913', class: "pagination-count" }, this._count)), h("div", { key: '87f181c53ad1806a9831d01b54fdd51434a5a4c2' }, h("calcite-button", { key: 'a4612a6f0d9b6a9412e60022599cba536cd4f623', appearance: "transparent", disabled: nextBackDisabled, iconStart: "chevron-right", id: "solutions-next", onClick: () => this._next(), width: "full" }), h("calcite-tooltip", { key: '613849a34a568fe8df2abe8b1813070cb7a54633', placement: "top", "reference-element": "solutions-next" }, h("span", { key: '35a2e621ce4b3bccb2b859e961db1065d619b2d9' }, this._translations.next))))), h("edit-card", { key: 'a2054fc21fc09dbffc47e1a7617a4b91b29d26fd', class: editClass, graphicIndex: this._features?.selectedFeatureIndex, graphics: this.graphics, mapView: this.mapView, open: this._editRecordOpen }), h("calcite-alert", { key: 'ec0fd6540b21987c80fe2035efa96d197c1e6cec', icon: "layer-broken", kind: "warning", label: "", onCalciteAlertClose: () => this._alertClosed(), open: this._alertOpen, placement: "top" }, h("div", { key: '721a363423ec61a9645b003a7d53849137fe1b82', slot: "title" }, this._translations.editDisabled), h("div", { key: '143e9ff06f5363682e8b9e1976fdbfdd1b56f2a9', slot: "message" }, this._translations.enableEditing)))));
235
+ return (h(Host, { key: '2d0ebbf98b0d7e6f391d875258effbc6d4dc72f5' }, h("calcite-shell", { key: '260ac176bd21e9012f34ba66e27cd7a4ec1e7ff0', style: { position: this.position } }, this._getHeader(), h("calcite-loader", { key: 'f72c7fe39f646655f8ee71ac7d336aaf7dd3afbd', class: loadingClass, label: this._translations.fetchingData }), h("div", { key: '43933c437a046a6505e121e43736aac92382effa', class: "esri-widget feature-node " + featureNodeClass, id: this._featuresNodeId }), h("div", { key: '4433d5975b6d25dc77932f99b2b7aa9d3ade77e8', class: `${editButtonClass} width-100`, slot: "footer" }, this.allowEditing &&
236
+ h("div", { key: 'da7610d89193e5594429d26b805ba44ec064904f', class: "display-flex top-border padding-1-2" }, h("calcite-button", { key: 'dc22d8cf61f07085e011b45636e8f4950912e5b3', appearance: "solid", id: "solutions-edit", onClick: () => this._openEditRecord(), width: "full" }, this._translations.edit), this.isMobile && deleteEnabled ? (h("delete-button", { class: "padding-inline-start-1 width-100", id: "solutions-delete", ids: ids, layer: this._layer, onEditsComplete: () => this._closePopup() })) : undefined, h("calcite-tooltip", { key: '1ee8d69384f85258ed10946206e42634798a700b', placement: "bottom", "reference-element": "solutions-edit" }, h("span", { key: '3b8b822a40ef6932aa3ad34c8e05bb758be7aff8' }, this._translations.edit)), this.isMobile ? (h("calcite-tooltip", { placement: "bottom", "reference-element": "solutions-delete" }, h("span", null, this._translations.delete))) : undefined), this.paginationEnabled && !nextBackDisabled && h("div", { key: '172bddeb6f0f1d73dbd563e3b244c311ec4904fe', class: `display-flex padding-1-2 button-container top-border ${nextBackClass}` }, h("div", { key: '66059747f9aad9fabd26a9d7a88e4cac762e096d' }, h("calcite-button", { key: '05b36ba1d5539a16eef53e35cc88eb5134c45104', appearance: 'transparent', disabled: nextBackDisabled, iconStart: "chevron-left", id: "solutions-back", onClick: () => this._back(), width: "full" }), h("calcite-tooltip", { key: '2736e0047665272cede16b1e3b1d94495075d310', placement: "top", "reference-element": "solutions-back" }, h("span", { key: '7c40eae302564f5bcd7a10471481a65c16be9ee5' }, this._translations.back))), h("calcite-action", { key: '873d07e0ecbf456f4010c80c23baaae3f0ce6335', class: 'pagination-action', onClick: () => this._toggleListView(), scale: "s", text: "", textEnabled: true }, h("span", { key: '49dabbcabc8fb64c5cd0581f826c9570270d3ce9', class: "pagination-count" }, this._count)), h("div", { key: '570df27fa721c4cb62c9bd77d7197c830410e387' }, h("calcite-button", { key: '6bd9010b943216af756558e8f062b475d138ee49', appearance: "transparent", disabled: nextBackDisabled, iconStart: "chevron-right", id: "solutions-next", onClick: () => this._next(), width: "full" }), h("calcite-tooltip", { key: '1ee755e1694d3d4b8d6d5417056e5f287de26912', placement: "top", "reference-element": "solutions-next" }, h("span", { key: 'a59e478daa0de11a3e81c22fa61069fdb77a680c' }, this._translations.next))))), h("edit-card", { key: '7f231459e65132658f08338ca67782d1584c761d', class: editClass, enableEditGeometry: this.enableEditGeometry, graphicIndex: this._features?.selectedFeatureIndex, graphics: this.graphics, mapView: this.mapView, open: this._editRecordOpen }), h("calcite-alert", { key: '76b7c28eea68cb73549e563afcdeab5f4ecc44b8', icon: "layer-broken", kind: "warning", label: "", onCalciteAlertClose: () => this._alertClosed(), open: this._alertOpen, placement: "top" }, h("div", { key: '5d6456ce4bc64dc074b238bdf38f05436c1d0ebc', slot: "title" }, this._translations.editDisabled), h("div", { key: 'cf8ebf5e8d2277fb815afdc12ae5f9e37312b2c5', slot: "message" }, this._translations.enableEditing)))));
236
237
  }
237
238
  //--------------------------------------------------------------------------
238
239
  //
@@ -411,6 +412,24 @@ export class InfoCard {
411
412
  }
412
413
  static get properties() {
413
414
  return {
415
+ "enableEditGeometry": {
416
+ "type": "boolean",
417
+ "mutable": false,
418
+ "complexType": {
419
+ "original": "boolean",
420
+ "resolved": "boolean",
421
+ "references": {}
422
+ },
423
+ "required": false,
424
+ "optional": false,
425
+ "docs": {
426
+ "tags": [],
427
+ "text": "When true the geometry of the current feature will be editable"
428
+ },
429
+ "attribute": "enable-edit-geometry",
430
+ "reflect": false,
431
+ "defaultValue": "false"
432
+ },
414
433
  "graphics": {
415
434
  "type": "unknown",
416
435
  "mutable": false,
@@ -31,6 +31,9 @@ export class MapSelectTools {
31
31
  this.bufferOutlineColor = [255, 255, 255];
32
32
  this.customLabelEnabled = undefined;
33
33
  this.enabledLayerIds = [];
34
+ this.enableLayerFeatures = true;
35
+ this.enableSearchDistance = true;
36
+ this.enableSketchTools = true;
34
37
  this.defaultBufferDistance = undefined;
35
38
  this.defaultBufferUnit = undefined;
36
39
  this.geometries = [];
@@ -223,9 +226,9 @@ export class MapSelectTools {
223
226
  id: this.isUpdate ? this.selectionSet.id : Date.now(),
224
227
  searchResult: this._searchResult,
225
228
  buffer: this._bufferGeometry,
226
- distance: this._bufferTools.distance,
229
+ distance: this._bufferTools?.distance,
227
230
  download: true,
228
- unit: this._bufferTools.unit,
231
+ unit: this._bufferTools?.unit,
229
232
  label: this._selectionLabel,
230
233
  selectedIds: this._selectedIds,
231
234
  layerView: this.selectLayerView,
@@ -291,7 +294,9 @@ export class MapSelectTools {
291
294
  * Renders the component.
292
295
  */
293
296
  render() {
294
- return (h(Host, { key: '99818f04f6080010d564269d79ebf5e43904214f' }, this._getMapLayerPicker(), h("div", { key: '1edcedfcfef21d9c8398ee84953439538bfab8c2', class: "border-bottom" }), h("div", { key: '4d37d5523d8333fd94acf31ba8d70be775176420', class: "padding-top-sides-1" }, h("div", { key: 'cf0143a8ff5eb8851ffb960202c003904604bb45', class: "search-widget", ref: (el) => { this._searchElement = el; } }), h("div", { key: 'd187c7f1485c05a9f41070f497888c700ef31867', class: "padding-top-1" }, h("map-draw-tools", { key: '416870b7e7f81614166b5381c3024af96a4cfe60', active: true, editGraphicsEnabled: !this._useLayerFeaturesEnabled, graphics: this._graphics, mapView: this.mapView, onSketchGraphicsChange: (evt) => void this._sketchGraphicsChanged(evt), pointSymbol: this.sketchPointSymbol, polygonSymbol: this.sketchPolygonSymbol, polylineSymbol: this.sketchLineSymbol, ref: (el) => { this._drawTools = el; } })), this._getBufferOptions(), this._getUseLayerFeaturesOptions(), this._getNumSelected()), h("div", { key: '7e03cc8b0dce515e46e2701427e03d2f177092cc', class: "border-bottom" }), this._getNameInput()));
297
+ const mapToolsClass = this.enableSketchTools ? "" : "display-none";
298
+ const mapToolsContainerClass = this.enableSketchTools ? "padding-top-1" : "";
299
+ return (h(Host, { key: 'e6ac512fe773d0257844fcdd41afda5cd227b359' }, this._getMapLayerPicker(), h("div", { key: '3be4ed76db0d6899d984b0a2be85ebac6b7c29ae', class: "border-bottom" }), h("div", { key: 'b2a835c9096718742a54be522e1dc174d6f4da8f', class: "padding-top-sides-1" }, h("div", { key: '6133e6b951cde4504f8d19f747b4d7be5fe1d587', class: "search-widget", ref: (el) => { this._searchElement = el; } }), h("div", { key: '71636d8d7f9073315daae47d55746986c54f7596', class: mapToolsContainerClass }, h("map-draw-tools", { key: '4f8d3bc3953c4bd22837536c700eff959550f1e3', active: true, class: mapToolsClass, editGraphicsEnabled: !this._useLayerFeaturesEnabled, graphics: this._graphics, mapView: this.mapView, onSketchGraphicsChange: (evt) => void this._sketchGraphicsChanged(evt), pointSymbol: this.sketchPointSymbol, polygonSymbol: this.sketchPolygonSymbol, polylineSymbol: this.sketchLineSymbol, ref: (el) => { this._drawTools = el; } })), this.enableSearchDistance ? this._getBufferOptions() : undefined, this.enableLayerFeatures ? this._getUseLayerFeaturesOptions() : undefined, this._getNumSelected()), h("div", { key: '4dbd38b3b88d776e8b30561841e0a288f23fc38b', class: "border-bottom" }), this._getNameInput()));
295
300
  }
296
301
  /**
297
302
  * Renders the buffer tools component.
@@ -299,14 +304,14 @@ export class MapSelectTools {
299
304
  _getBufferOptions() {
300
305
  const showBufferToolsClass = this._searchDistanceEnabled ? "search-distance" : "div-not-visible";
301
306
  const bufferDistance = typeof this.selectionSet?.distance === "number" ? this.selectionSet.distance : this.defaultBufferDistance;
302
- return (h("div", null, h("div", { class: "padding-top-1 display-flex" }, h("calcite-label", { class: "label-margin-0 w-100", layout: "inline-space-between" }, h("div", { class: "tooltip-container" }, this._translations.searchDistance, h("calcite-icon", { class: "padding-start-1-2 icon", flipRtl: !(this.locale.toLowerCase() === "he"), icon: "question", id: "search-distance-icon", scale: "s" }))), h("calcite-popover", { closable: true, label: "", referenceElement: "search-distance-icon" }, h("span", { class: "tooltip-message" }, this._translations.useSearchDistanceTootip)), h("calcite-switch", { checked: this._searchDistanceEnabled, onCalciteSwitchChange: () => this._searchDistanceEnabled = !this._searchDistanceEnabled })), h("div", { class: showBufferToolsClass }, h("buffer-tools", { disabled: !this._searchDistanceEnabled, distance: bufferDistance, geometries: this.geometries, onBufferComplete: (evt) => void this._bufferComplete(evt), ref: (el) => this._bufferTools = el, unit: this.selectionSet?.unit || this.defaultBufferUnit }))));
307
+ return (h("div", null, h("div", { class: "padding-top-1 display-flex" }, h("calcite-label", { class: "label-margin-0 w-100", layout: "inline-space-between" }, h("div", { class: "tooltip-container" }, this._translations.searchDistance, h("calcite-icon", { class: "padding-start-1-2 icon", flipRtl: !(this.locale?.toLowerCase() === "he"), icon: "question", id: "search-distance-icon", scale: "s" }))), h("calcite-popover", { closable: true, label: "", referenceElement: "search-distance-icon" }, h("span", { class: "tooltip-message" }, this._translations.useSearchDistanceTootip)), h("calcite-switch", { checked: this._searchDistanceEnabled, onCalciteSwitchChange: () => this._searchDistanceEnabled = !this._searchDistanceEnabled })), h("div", { class: showBufferToolsClass }, h("buffer-tools", { disabled: !this._searchDistanceEnabled, distance: bufferDistance, geometries: this.geometries, onBufferComplete: (evt) => void this._bufferComplete(evt), ref: (el) => this._bufferTools = el, unit: this.selectionSet?.unit || this.defaultBufferUnit }))));
303
308
  }
304
309
  /**
305
310
  * Renders the map layer picker component.
306
311
  */
307
312
  _getUseLayerFeaturesOptions() {
308
313
  const useLayerFeaturesClass = this._useLayerFeaturesEnabled ? "div-visible" : "div-not-visible";
309
- return (h("div", null, h("div", { class: "padding-top-1 display-flex" }, h("calcite-label", { class: "label-margin-0 w-100", layout: "inline-space-between" }, h("div", { class: "tooltip-container" }, this._translations.useLayerFeatures, h("calcite-icon", { class: "padding-start-1-2 icon", flipRtl: !(this.locale.toLowerCase() === "he"), icon: "question", id: "use-layer-features-icon", scale: "s" }))), h("calcite-popover", { closable: true, label: "", referenceElement: "use-layer-features-icon" }, h("span", { class: "tooltip-message" }, this._translations.useLayerFeaturesTooltip)), h("calcite-switch", { checked: this._useLayerFeaturesEnabled, onCalciteSwitchChange: () => { this._useLayerFeaturesEnabledChanged(); } })), h("div", { class: useLayerFeaturesClass + " padding-top-1" }, h("map-layer-picker", { enabledLayerIds: this.selectionLayerIds, mapView: this.mapView, onLayerSelectionChange: (evt) => { void this._layerSelectionChange(evt); }, selectedIds: this.layerViews.map(l => l.layer.id), showTables: false }))));
314
+ return (h("div", null, h("div", { class: "padding-top-1 display-flex" }, h("calcite-label", { class: "label-margin-0 w-100", layout: "inline-space-between" }, h("div", { class: "tooltip-container" }, this._translations.useLayerFeatures, h("calcite-icon", { class: "padding-start-1-2 icon", flipRtl: !(this.locale?.toLowerCase() === "he"), icon: "question", id: "use-layer-features-icon", scale: "s" }))), h("calcite-popover", { closable: true, label: "", referenceElement: "use-layer-features-icon" }, h("span", { class: "tooltip-message" }, this._translations.useLayerFeaturesTooltip)), h("calcite-switch", { checked: this._useLayerFeaturesEnabled, onCalciteSwitchChange: () => { this._useLayerFeaturesEnabledChanged(); } })), h("div", { class: useLayerFeaturesClass + " padding-top-1" }, h("map-layer-picker", { enabledLayerIds: this.selectionLayerIds, mapView: this.mapView, onLayerSelectionChange: (evt) => { void this._layerSelectionChange(evt); }, selectedIds: this.layerViews.map(l => l.layer.id), showTables: false }))));
310
315
  }
311
316
  /**
312
317
  * Renders the number of selected features
@@ -706,7 +711,9 @@ export class MapSelectTools {
706
711
  this._unit = undefined;
707
712
  if (clearLabel) {
708
713
  this._selectionLabel = "";
709
- this._labelName.value = "";
714
+ if (this._labelName) {
715
+ this._labelName.value = "";
716
+ }
710
717
  }
711
718
  if (this._bufferGraphicsLayer) {
712
719
  this._bufferGraphicsLayer.removeAll();
@@ -755,18 +762,20 @@ export class MapSelectTools {
755
762
  * @protected
756
763
  */
757
764
  async _updateLabel() {
758
- const hasSketch = this._selectionLabel.indexOf(this._translations.sketch) > -1;
759
- const hasSelect = this._selectionLabel.indexOf(this._translations.select) > -1;
760
- const hasSearch = this._selectionLabel.indexOf(this._searchResult?.name) > -1;
761
- const label = this._workflowType === EWorkflowType.SEARCH ? this._searchResult?.name :
762
- this._workflowType === EWorkflowType.SELECT ?
763
- this._translations.select : this._translations.sketch;
764
- const _unit = !this._unit ? this._bufferTools.unit : this._unit;
765
- const unit = await this._bufferTools.getTranslatedUnit(_unit);
766
- const distance = isNaN(this._distance) ? this._bufferTools.distance : this._distance;
767
- this._selectionLabel = hasSketch || hasSelect || hasSearch || !this._selectionLabel ?
768
- `${label} ${distance} ${unit}` : this._selectionLabel;
769
- this._labelName.value = this._selectionLabel;
765
+ if (this.enableSearchDistance) {
766
+ const hasSketch = this._selectionLabel.indexOf(this._translations.sketch) > -1;
767
+ const hasSelect = this._selectionLabel.indexOf(this._translations.select) > -1;
768
+ const hasSearch = this._selectionLabel.indexOf(this._searchResult?.name) > -1;
769
+ const label = this._workflowType === EWorkflowType.SEARCH ? this._searchResult?.name :
770
+ this._workflowType === EWorkflowType.SELECT ?
771
+ this._translations.select : this._translations.sketch;
772
+ const _unit = !this._unit ? this._bufferTools.unit : this._unit;
773
+ const unit = await this._bufferTools.getTranslatedUnit(_unit);
774
+ const distance = isNaN(this._distance) ? this._bufferTools.distance : this._distance;
775
+ this._selectionLabel = hasSketch || hasSelect || hasSearch || !this._selectionLabel ?
776
+ `${label} ${distance} ${unit}` : this._selectionLabel;
777
+ this._labelName.value = this._selectionLabel;
778
+ }
770
779
  }
771
780
  /**
772
781
  * Gets the layer views from the map when the layer selection changes
@@ -969,6 +978,60 @@ export class MapSelectTools {
969
978
  },
970
979
  "defaultValue": "[]"
971
980
  },
981
+ "enableLayerFeatures": {
982
+ "type": "boolean",
983
+ "mutable": false,
984
+ "complexType": {
985
+ "original": "boolean",
986
+ "resolved": "boolean",
987
+ "references": {}
988
+ },
989
+ "required": false,
990
+ "optional": false,
991
+ "docs": {
992
+ "tags": [],
993
+ "text": "boolean: When true users will be allowed to optionally use features from a layer as the selection geometry"
994
+ },
995
+ "attribute": "enable-layer-features",
996
+ "reflect": false,
997
+ "defaultValue": "true"
998
+ },
999
+ "enableSearchDistance": {
1000
+ "type": "boolean",
1001
+ "mutable": false,
1002
+ "complexType": {
1003
+ "original": "boolean",
1004
+ "resolved": "boolean",
1005
+ "references": {}
1006
+ },
1007
+ "required": false,
1008
+ "optional": false,
1009
+ "docs": {
1010
+ "tags": [],
1011
+ "text": "boolean: When true users will be allowed to optionally create a buffer around the selection geometry"
1012
+ },
1013
+ "attribute": "enable-search-distance",
1014
+ "reflect": false,
1015
+ "defaultValue": "true"
1016
+ },
1017
+ "enableSketchTools": {
1018
+ "type": "boolean",
1019
+ "mutable": false,
1020
+ "complexType": {
1021
+ "original": "boolean",
1022
+ "resolved": "boolean",
1023
+ "references": {}
1024
+ },
1025
+ "required": false,
1026
+ "optional": false,
1027
+ "docs": {
1028
+ "tags": [],
1029
+ "text": "boolean: When true sketch tools will be provided to allow users to draw a selection geometry"
1030
+ },
1031
+ "attribute": "enable-sketch-tools",
1032
+ "reflect": false,
1033
+ "defaultValue": "true"
1034
+ },
972
1035
  "defaultBufferDistance": {
973
1036
  "type": "number",
974
1037
  "mutable": false,
@@ -36,6 +36,9 @@ export class PublicNotification {
36
36
  this.defaultBufferUnit = undefined;
37
37
  this.defaultExportTitle = "";
38
38
  this.defaultNumLabelsPerPage = 6;
39
+ this.enableLayerFeatures = true;
40
+ this.enableSearchDistance = true;
41
+ this.enableSketchTools = true;
39
42
  this.featureEffect = undefined;
40
43
  this.featureHighlightEnabled = undefined;
41
44
  this.locale = undefined;
@@ -253,14 +256,14 @@ export class PublicNotification {
253
256
  await this._getTranslations();
254
257
  await this._initModules();
255
258
  this._initSymbols();
256
- this._onboardingImageUrl = getAssetPath(`../assets/data/images/onboarding.png`);
259
+ this._onboardingImageUrl = getAssetPath(`../solutions-components/assets/data/images/onboarding.png`);
257
260
  }
258
261
  /**
259
262
  * Renders the component.
260
263
  */
261
264
  render() {
262
265
  const headerSlot = this._isMobile ? "footer" : "header";
263
- return (h(Host, { key: '329b485ac7b134bf2ae1758c07a2ca7988706cb5' }, h("calcite-shell", { key: 'd8280c38878b047cdaa55beb31d8895a420f3661' }, h("calcite-action-bar", { key: 'a83fcca2612f13b3f0220b3015a96750223f016b', class: "border-bottom-1 action-bar-size", "expand-disabled": true, layout: "horizontal", slot: headerSlot }, this._getActionGroup("list-check", EPageType.LIST, this._translations.myLists), this.showRefineSelection ? this._getActionGroup("test-data", EPageType.REFINE, this._translations.refineSelection) : null, this._getActionGroup("export", EPageType.EXPORT, this._translations.export)), this._getPage(this._pageType))));
266
+ return (h(Host, { key: '706cac9f6c3456220ffaa13cbe74a0b6eb60710b' }, h("calcite-shell", { key: '2d7169374eb285efc1b0dc20f005173aa7e33f61' }, h("calcite-action-bar", { key: '66ee03cbf7ad909af37f49ed7d89146235f6a1d6', class: "border-bottom-1 action-bar-size", "expand-disabled": true, layout: "horizontal", slot: headerSlot }, this._getActionGroup("list-check", EPageType.LIST, this._translations.myLists), this.showRefineSelection ? this._getActionGroup("test-data", EPageType.REFINE, this._translations.refineSelection) : null, this._getActionGroup("export", EPageType.EXPORT, this._translations.export)), this._getPage(this._pageType))));
264
267
  }
265
268
  /**
266
269
  * StencilJS: Called once just after the component is first loaded.
@@ -597,7 +600,7 @@ export class PublicNotification {
597
600
  */
598
601
  _getSelectPage() {
599
602
  const noticeText = this._translations.selectSearchTip;
600
- return (h("calcite-panel", null, this._getLabel(this._translations.stepTwoFull, true), this._getNotice(noticeText, "padding-1", "word-wrap-anywhere"), h("div", null, h("map-select-tools", { bufferColor: this.bufferColor, bufferOutlineColor: this.bufferOutlineColor, class: "font-bold", customLabelEnabled: this.customLabelEnabled, defaultBufferDistance: this.defaultBufferDistance, defaultBufferUnit: this.defaultBufferUnit, enabledLayerIds: this.addresseeLayerIds, isUpdate: !!this._activeSelection, locale: this.locale, mapView: this.mapView, noResultText: this.noResultText, onSelectionSetChange: (evt) => this._updateForSelection(evt), ref: (el) => { this._selectTools = el; }, searchConfiguration: this._searchConfiguration, selectionLayerIds: this.selectionLayerIds, selectionSet: this._activeSelection, sketchLineSymbol: this.sketchLineSymbol, sketchPointSymbol: this.sketchPointSymbol, sketchPolygonSymbol: this.sketchPolygonSymbol })), this._getPageNavButtons(this._translations.done, this._numSelected === 0, () => { void this._saveSelection(); }, this._translations.cancel, false, () => { void this._home(); })));
603
+ return (h("calcite-panel", null, this._getLabel(this._translations.stepTwoFull, true), this._getNotice(noticeText, "padding-1", "word-wrap-anywhere"), h("div", null, h("map-select-tools", { bufferColor: this.bufferColor, bufferOutlineColor: this.bufferOutlineColor, class: "font-bold", customLabelEnabled: this.customLabelEnabled, defaultBufferDistance: this.defaultBufferDistance, defaultBufferUnit: this.defaultBufferUnit, enableLayerFeatures: this.enableLayerFeatures, enableSearchDistance: this.enableSearchDistance, enableSketchTools: this.enableSketchTools, enabledLayerIds: this.addresseeLayerIds, isUpdate: !!this._activeSelection, locale: this.locale, mapView: this.mapView, noResultText: this.noResultText, onSelectionSetChange: (evt) => this._updateForSelection(evt), ref: (el) => { this._selectTools = el; }, searchConfiguration: this._searchConfiguration, selectionLayerIds: this.selectionLayerIds, selectionSet: this._activeSelection, sketchLineSymbol: this.sketchLineSymbol, sketchPointSymbol: this.sketchPointSymbol, sketchPolygonSymbol: this.sketchPolygonSymbol })), this._getPageNavButtons(this._translations.done, this._numSelected === 0, () => { void this._saveSelection(); }, this._translations.cancel, false, () => { void this._home(); })));
601
604
  }
602
605
  /**
603
606
  * Create the main download page that has the shared aspects of both PDF and CSV
@@ -609,7 +612,7 @@ export class PublicNotification {
609
612
  _getExportPage() {
610
613
  const hasSelections = this._hasSelections(this.showRefineSelection);
611
614
  const displayDuplicatesClass = this._numDuplicates > 0 ? "display-block" : "display-none";
612
- return (h("calcite-panel", null, h("div", null, this._getLabel(this._translations.export, false), hasSelections ? (h("div", null, this._getNotice(this._translations.exportTip, "padding-sides-1"), this._getLabel(this._translations.exportListsLabel), this._getExportSelectionLists(), h("div", { class: "padding-sides-1 " + displayDuplicatesClass }, h("div", { class: "display-flex" }, h("calcite-label", { layout: "inline" }, h("calcite-checkbox", { ref: (el) => { this._removeDuplicates = el; } }), h("div", { class: "display-flex" }, this._translations.removeDuplicate, h("div", { class: "info-message padding-start-1-2" }, h("calcite-input-message", { class: "info-blue margin-top-0", scale: "m" }, ` ${this._translations.numDuplicates.replace("{{n}}", this._numDuplicates.toString())}`)))), h("calcite-icon", { class: "padding-start-1-2 icon", flipRtl: !(this.locale.toLowerCase() === "he"), icon: "question", id: "remove-duplicates-icon", scale: "s" })), h("calcite-popover", { closable: true, label: "", referenceElement: "remove-duplicates-icon" }, h("span", { class: "tooltip-message" }, this._translations.duplicatesTip))), h("div", { class: "border-bottom" }), h("div", { class: "padding-top-sides-1" }, h("calcite-segmented-control", { class: "w-100", onCalciteSegmentedControlChange: (evt) => this._exportTypeChange(evt), width: "full" }, h("calcite-segmented-control-item", { checked: this._exportType === EExportType.PDF, class: "w-50 end-border", value: EExportType.PDF }, h("span", { class: "font-weight-500" }, this._translations.pdf)), h("calcite-segmented-control-item", { checked: this._exportType === EExportType.CSV, class: "w-50", value: EExportType.CSV }, h("span", { class: "font-weight-500" }, this._translations.csv)))), h("div", { class: "padding-bottom-1" }, this._getExportOptions()), h("div", { class: "padding-1 display-flex" }, h("calcite-button", { disabled: (!this._downloadActive || this._fetchingData) || (!this._addMap && !this._addResults), loading: this._fetchingData, onClick: () => void this._export(), width: "full" }, h("span", { class: "font-weight-500" }, this._translations.export))))) : (this._getNotice(this._translations.downloadNoLists, "padding-sides-1 padding-bottom-1")))));
615
+ return (h("calcite-panel", null, h("div", null, this._getLabel(this._translations.export, false), hasSelections ? (h("div", null, this._getNotice(this._translations.exportTip, "padding-sides-1"), this._getLabel(this._translations.exportListsLabel), this._getExportSelectionLists(), h("div", { class: "padding-sides-1 " + displayDuplicatesClass }, h("div", { class: "display-flex" }, h("calcite-label", { layout: "inline" }, h("calcite-checkbox", { ref: (el) => { this._removeDuplicates = el; } }), h("div", { class: "display-flex" }, this._translations.removeDuplicate, h("div", { class: "info-message padding-start-1-2" }, h("calcite-input-message", { class: "info-blue margin-top-0", scale: "m" }, ` ${this._translations.numDuplicates.replace("{{n}}", this._numDuplicates.toString())}`)))), h("calcite-icon", { class: "padding-start-1-2 icon", flipRtl: !(this.locale?.toLowerCase() === "he"), icon: "question", id: "remove-duplicates-icon", scale: "s" })), h("calcite-popover", { closable: true, label: "", referenceElement: "remove-duplicates-icon" }, h("span", { class: "tooltip-message" }, this._translations.duplicatesTip))), h("div", { class: "border-bottom" }), h("div", { class: "padding-top-sides-1" }, h("calcite-segmented-control", { class: "w-100", onCalciteSegmentedControlChange: (evt) => this._exportTypeChange(evt), width: "full" }, h("calcite-segmented-control-item", { checked: this._exportType === EExportType.PDF, class: "w-50 end-border", value: EExportType.PDF }, h("span", { class: "font-weight-500" }, this._translations.pdf)), h("calcite-segmented-control-item", { checked: this._exportType === EExportType.CSV, class: "w-50", value: EExportType.CSV }, h("span", { class: "font-weight-500" }, this._translations.csv)))), h("div", { class: "padding-bottom-1" }, this._getExportOptions()), h("div", { class: "padding-1 display-flex" }, h("calcite-button", { disabled: (!this._downloadActive || this._fetchingData) || (!this._addMap && !this._addResults), loading: this._fetchingData, onClick: () => void this._export(), width: "full" }, h("span", { class: "font-weight-500" }, this._translations.export))))) : (this._getNotice(this._translations.downloadNoLists, "padding-sides-1 padding-bottom-1")))));
613
616
  }
614
617
  /**
615
618
  * Store the user selected export type CSV || PDF
@@ -630,7 +633,7 @@ export class PublicNotification {
630
633
  const graphicsOptionsClass = this._addMap ? "display-flex" : "display-none";
631
634
  const title = this._titleValue ? this._titleValue : this.defaultExportTitle ? this.defaultExportTitle : "";
632
635
  const formatOptionsClass = this._addResults ? "" : "display-none";
633
- return (h("div", { class: displayClass }, this._getLabel(this._translations.pdfOptions, true), h("div", { class: "padding-top-sides-1" }, h("calcite-label", { class: "label-margin-0", layout: "inline" }, h("calcite-checkbox", { checked: this._addResults, onCalciteCheckboxChange: () => this._addResults = !this._addResults }), this._translations.addResults)), h("div", { class: `padding-top-sides-1 ${formatOptionsClass}` }, h("calcite-label", { class: "label-margin-0" }, this._translations.selectPDFLabelOption)), h("div", { class: `padding-sides-1 ${formatOptionsClass}` }, h("pdf-download", { defaultNumLabelsPerPage: parseInt(this.defaultNumLabelsPerPage.toString(), 10), disabled: !this._downloadActive, ref: (el) => { this._downloadTools = el; } })), h("div", { class: "padding-top-sides-1" }, h("calcite-label", { class: "label-margin-0", layout: "inline" }, h("calcite-checkbox", { checked: this._addTitle, onCalciteCheckboxChange: () => this._addTitle = !this._addTitle }), this._translations.title)), h("div", { class: titleOptionsClass }, this._getLabel(this._translations.title, true, ""), h("calcite-input-text", { class: "padding-sides-1", onCalciteInputTextInput: () => this._changeTitle(), placeholder: this._translations.titlePlaceholder, ref: (el) => { this._titleElement = el; }, value: title })), h("div", { class: "padding-top-sides-1" }, h("calcite-label", { class: "label-margin-0", layout: "inline" }, h("calcite-checkbox", { checked: this._addMap, onCalciteCheckboxChange: () => this._handleAddMapChange() }), this._translations.includeMap)), h("div", { class: `padding-top-sides-1 ${graphicsOptionsClass}` }, h("calcite-label", { class: "label-margin-0", layout: "inline" }, h("calcite-checkbox", { checked: this._exportGraphics, onCalciteCheckboxChange: () => this._handleExportGraphicsChange() }), this._translations.listGraphics), h("calcite-icon", { class: "padding-start-1-2 icon", flipRtl: !(this.locale.toLowerCase() === "he"), icon: "question", id: "list-graphics-icon", scale: "s" }), h("calcite-popover", { closable: true, label: "", referenceElement: "list-graphics-icon" }, h("span", { class: "tooltip-message" }, this._translations.listGraphicsTip)))));
636
+ return (h("div", { class: displayClass }, this._getLabel(this._translations.pdfOptions, true), h("div", { class: "padding-top-sides-1" }, h("calcite-label", { class: "label-margin-0", layout: "inline" }, h("calcite-checkbox", { checked: this._addResults, onCalciteCheckboxChange: () => this._addResults = !this._addResults }), this._translations.addResults)), h("div", { class: `padding-top-sides-1 ${formatOptionsClass}` }, h("calcite-label", { class: "label-margin-0" }, this._translations.selectPDFLabelOption)), h("div", { class: `padding-sides-1 ${formatOptionsClass}` }, h("pdf-download", { defaultNumLabelsPerPage: parseInt(this.defaultNumLabelsPerPage.toString(), 10), disabled: !this._downloadActive, ref: (el) => { this._downloadTools = el; } })), h("div", { class: "padding-top-sides-1" }, h("calcite-label", { class: "label-margin-0", layout: "inline" }, h("calcite-checkbox", { checked: this._addTitle, onCalciteCheckboxChange: () => this._addTitle = !this._addTitle }), this._translations.title)), h("div", { class: titleOptionsClass }, this._getLabel(this._translations.title, true, ""), h("calcite-input-text", { class: "padding-sides-1", onCalciteInputTextInput: () => this._changeTitle(), placeholder: this._translations.titlePlaceholder, ref: (el) => { this._titleElement = el; }, value: title })), h("div", { class: "padding-top-sides-1" }, h("calcite-label", { class: "label-margin-0", layout: "inline" }, h("calcite-checkbox", { checked: this._addMap, onCalciteCheckboxChange: () => this._handleAddMapChange() }), this._translations.includeMap)), h("div", { class: `padding-top-sides-1 ${graphicsOptionsClass}` }, h("calcite-label", { class: "label-margin-0", layout: "inline" }, h("calcite-checkbox", { checked: this._exportGraphics, onCalciteCheckboxChange: () => this._handleExportGraphicsChange() }), this._translations.listGraphics), h("calcite-icon", { class: "padding-start-1-2 icon", flipRtl: !(this.locale?.toLowerCase() === "he"), icon: "question", id: "list-graphics-icon", scale: "s" }), h("calcite-popover", { closable: true, label: "", referenceElement: "list-graphics-icon" }, h("span", { class: "tooltip-message" }, this._translations.listGraphicsTip)))));
634
637
  }
635
638
  /**
636
639
  * Toggle the _addMap state variable and update the graphics on the map
@@ -1215,6 +1218,60 @@ export class PublicNotification {
1215
1218
  "reflect": false,
1216
1219
  "defaultValue": "6"
1217
1220
  },
1221
+ "enableLayerFeatures": {
1222
+ "type": "boolean",
1223
+ "mutable": false,
1224
+ "complexType": {
1225
+ "original": "boolean",
1226
+ "resolved": "boolean",
1227
+ "references": {}
1228
+ },
1229
+ "required": false,
1230
+ "optional": false,
1231
+ "docs": {
1232
+ "tags": [],
1233
+ "text": "boolean: When true users will be allowed to optionally use features from a layer as the selection geometry"
1234
+ },
1235
+ "attribute": "enable-layer-features",
1236
+ "reflect": false,
1237
+ "defaultValue": "true"
1238
+ },
1239
+ "enableSearchDistance": {
1240
+ "type": "boolean",
1241
+ "mutable": false,
1242
+ "complexType": {
1243
+ "original": "boolean",
1244
+ "resolved": "boolean",
1245
+ "references": {}
1246
+ },
1247
+ "required": false,
1248
+ "optional": false,
1249
+ "docs": {
1250
+ "tags": [],
1251
+ "text": "boolean: When true users will be allowed to optionally create a buffer around the selection geometry"
1252
+ },
1253
+ "attribute": "enable-search-distance",
1254
+ "reflect": false,
1255
+ "defaultValue": "true"
1256
+ },
1257
+ "enableSketchTools": {
1258
+ "type": "boolean",
1259
+ "mutable": false,
1260
+ "complexType": {
1261
+ "original": "boolean",
1262
+ "resolved": "boolean",
1263
+ "references": {}
1264
+ },
1265
+ "required": false,
1266
+ "optional": false,
1267
+ "docs": {
1268
+ "tags": [],
1269
+ "text": "boolean: When true sketch tools will be provided to allow users to draw a selection geometry"
1270
+ },
1271
+ "attribute": "enable-sketch-tools",
1272
+ "reflect": false,
1273
+ "defaultValue": "true"
1274
+ },
1218
1275
  "featureEffect": {
1219
1276
  "type": "unknown",
1220
1277
  "mutable": false,
@@ -119,7 +119,7 @@ export class RefineSelection {
119
119
  */
120
120
  render() {
121
121
  const layerPickerClass = this._enabledLayerIds.length > 1 ? "display-block" : "display-none";
122
- return (h(Host, { key: '5bd1d6b85fc43ca4bfdffefd6a19bbbbd37cc13e' }, h("div", { key: '48312843133e3ece11ac8882aad91a570d809472', class: layerPickerClass + " padding-top-sides-1" }, h("div", { key: 'dea13cbbe64fff8dc6dff1ea4816229ba04c6b51', class: "display-flex" }, h("calcite-label", { key: '8184e95f8777e72e826d773aa212a32383983a51', class: "font-bold width-full label-margin-0" }, h("div", { key: 'b59989cfe2676fa520e7d2e23dd178425802536e', class: "display-flex" }, this._translations.inputLayer, h("calcite-icon", { key: '05cdb91b52893a36988aee0c15af4aabded7bb1b', class: "padding-start-1-2 icon", flipRtl: !(this.locale.toLowerCase() === "he"), icon: "question", id: "refine-input-layer", scale: "s" })), h("map-layer-picker", { key: 'c1bc3c6aba428a55b21be6ac5fedbdee881aaa2f', enabledLayerIds: this._enabledLayerIds, mapView: this.mapView, onLayerSelectionChange: (evt) => { void this._layerSelectionChange(evt); }, ref: (el) => { this._layerPicker = el; }, selectedIds: [this._refineLayer.layer.id], showTables: false })), h("calcite-popover", { key: 'b3d82ec6d85749b4975d4c9ba35855f5dd142413', closable: true, label: "", referenceElement: "refine-input-layer" }, h("span", { key: '191e9702e37240472bbe0deda359c4dd1ca03c17', class: "tooltip-message" }, this._translations.inputLayerTip)))), h("div", { key: '30bda6820fced55494db4d6ced4dee1ff20266bf', class: "padding-1" }, h("div", { key: '67ec4b94cd37dfe80700c8053fb505170f872fdf', class: "padding-bottom-1" }, h("calcite-segmented-control", { key: '707b7e1d20d65abec22727ae3750dd52aa542048', class: "w-100", width: "full" }, h("calcite-segmented-control-item", { key: '82e70596aeb5a58d9b04eb5cafd92a4251480bad', checked: this._addEnabled, class: "w-50 word-wrap-anywhere", onClick: () => this._setSelectionMode(ESelectionMode.ADD), value: ESelectionMode.ADD }, h("span", { key: '1cd4fba950d8590ec9af113f0eec2a6d29413f9b', class: "font-weight-500" }, this._translations.add)), h("calcite-segmented-control-item", { key: 'cff45118e731b3bcd5812752919f5fed1b8d8f0e', checked: !this._addEnabled, class: "w-50 word-wrap-anywhere", onClick: () => this._setSelectionMode(ESelectionMode.REMOVE), value: ESelectionMode.REMOVE }, h("span", { key: 'fb603c594f7d71944bf46c11e4aa5f0ae547b560', class: "font-weight-500" }, this._translations.remove)))), h("div", { key: 'aeb9755c6e854c97045978aa1ea3ec1a32365351' }, h("map-draw-tools", { key: '2c4c973d3de9b36c07973f7250dd91e7aab833eb', active: true, drawMode: EDrawMode.REFINE, mapView: this.mapView, onDrawRedo: () => this._redo(), onDrawUndo: () => this._undo(), onSketchGraphicsChange: (evt) => this._sketchGraphicsChanged(evt), pointSymbol: this.sketchPointSymbol, polygonSymbol: this.sketchPolygonSymbol, polylineSymbol: this.sketchLineSymbol, redoEnabled: this._refineSelectionSet?.redoStack.length > 0, ref: (el) => { this._drawTools = el; }, undoEnabled: this._refineSelectionSet?.undoStack.length > 0 })), h("br", { key: 'dd122d761bcc924c7bcaad95342398414674e2a8' }), (h("calcite-list", { key: '49986cdfdd61369adf348beaef1a49fdd87c38b9', class: "list-border" }, this._getRefineSelectionSetList())))));
122
+ return (h(Host, { key: '5bd1d6b85fc43ca4bfdffefd6a19bbbbd37cc13e' }, h("div", { key: '48312843133e3ece11ac8882aad91a570d809472', class: layerPickerClass + " padding-top-sides-1" }, h("div", { key: 'dea13cbbe64fff8dc6dff1ea4816229ba04c6b51', class: "display-flex" }, h("calcite-label", { key: '8184e95f8777e72e826d773aa212a32383983a51', class: "font-bold width-full label-margin-0" }, h("div", { key: 'b59989cfe2676fa520e7d2e23dd178425802536e', class: "display-flex" }, this._translations.inputLayer, h("calcite-icon", { key: '0cdbf4745da0953434024c49a8fbc52a686e876a', class: "padding-start-1-2 icon", flipRtl: !(this.locale?.toLowerCase() === "he"), icon: "question", id: "refine-input-layer", scale: "s" })), h("map-layer-picker", { key: '1d62e84b9fa0fa6ac0416ecf22a52a8b72eb7529', enabledLayerIds: this._enabledLayerIds, mapView: this.mapView, onLayerSelectionChange: (evt) => { void this._layerSelectionChange(evt); }, ref: (el) => { this._layerPicker = el; }, selectedIds: [this._refineLayer.layer.id], showTables: false })), h("calcite-popover", { key: 'ed39858d71e1b4f128eed508e1a7fc71c5112b75', closable: true, label: "", referenceElement: "refine-input-layer" }, h("span", { key: '1c0a8e1b9a9e77b097a9e676c06c8cbc1ce4b235', class: "tooltip-message" }, this._translations.inputLayerTip)))), h("div", { key: 'eceb792f9deb9cbe346173337ec254faacd3036d', class: "padding-1" }, h("div", { key: 'd172826cc5e6a206bde83fa0fed5c46fbf0422ec', class: "padding-bottom-1" }, h("calcite-segmented-control", { key: '096245916589f8486ed5f78f035a090c43749feb', class: "w-100", width: "full" }, h("calcite-segmented-control-item", { key: 'd0e5f7c7256e14421167cc9af90707d6d0457c01', checked: this._addEnabled, class: "w-50 word-wrap-anywhere", onClick: () => this._setSelectionMode(ESelectionMode.ADD), value: ESelectionMode.ADD }, h("span", { key: 'c5764bbb451659757c9f8fb84263255c50114e9c', class: "font-weight-500" }, this._translations.add)), h("calcite-segmented-control-item", { key: '6d1ffc481926f70176e5db3debb71daf6d782e97', checked: !this._addEnabled, class: "w-50 word-wrap-anywhere", onClick: () => this._setSelectionMode(ESelectionMode.REMOVE), value: ESelectionMode.REMOVE }, h("span", { key: 'aa3a9d97ebcf7553729858628164a5cdbb4ab5a6', class: "font-weight-500" }, this._translations.remove)))), h("div", { key: '7d366f2bb9d91696915e6bb5aa7872c8e13c0f4b' }, h("map-draw-tools", { key: '973fc2dfe9a3bb941e1257862ee6bf478dab6963', active: true, drawMode: EDrawMode.REFINE, mapView: this.mapView, onDrawRedo: () => this._redo(), onDrawUndo: () => this._undo(), onSketchGraphicsChange: (evt) => this._sketchGraphicsChanged(evt), pointSymbol: this.sketchPointSymbol, polygonSymbol: this.sketchPolygonSymbol, polylineSymbol: this.sketchLineSymbol, redoEnabled: this._refineSelectionSet?.redoStack.length > 0, ref: (el) => { this._drawTools = el; }, undoEnabled: this._refineSelectionSet?.undoStack.length > 0 })), h("br", { key: 'fb6fb3c198ad97e157a3f08df1283e20928f17fd' }), (h("calcite-list", { key: 'fb32a7abec8c89d2d2073fbe741e18daba37eb6f', class: "list-border" }, this._getRefineSelectionSetList())))));
123
123
  }
124
124
  //--------------------------------------------------------------------------
125
125
  //