@esri/solutions-components 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (156) hide show
  1. package/dist/assets/arcgis-pdf-creator/PDFCreator.js +6 -3
  2. package/dist/assets/arcgis-pdf-creator/PDFCreator_jsPDF.js +1 -1
  3. package/dist/assets/arcgis-pdf-creator/PDFCreator_pdf_lib.js +1 -1
  4. package/dist/assets/arcgis-pdf-creator/PDFLabels.js +54 -3
  5. package/dist/assets/arcgis-pdf-creator/grid.js +1 -1
  6. package/dist/assets/data/images/grid.png +0 -0
  7. package/dist/assets/data/images/horizontal.png +0 -0
  8. package/dist/assets/data/images/vertical.png +0 -0
  9. package/dist/assets/t9n/crowdsource-manager/resources.json +7 -1
  10. package/dist/assets/t9n/crowdsource-manager/resources_en.json +7 -1
  11. package/dist/cjs/buffer-tools_6.cjs.entry.js +85 -85
  12. package/dist/cjs/{calcite-block_2.cjs.entry.js → calcite-action-bar_4.cjs.entry.js} +307 -18
  13. package/dist/cjs/{calcite-action.cjs.entry.js → calcite-action_2.cjs.entry.js} +84 -1
  14. package/dist/cjs/{calcite-combobox_3.cjs.entry.js → calcite-chip_4.cjs.entry.js} +187 -61
  15. package/dist/cjs/{calcite-dropdown-group_4.cjs.entry.js → calcite-dropdown_5.cjs.entry.js} +467 -1
  16. package/dist/cjs/calcite-input-message_5.cjs.entry.js +283 -283
  17. package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +2 -2
  18. package/dist/cjs/{calcite-action-bar_2.cjs.entry.js → calcite-tooltip.cjs.entry.js} +2 -208
  19. package/dist/cjs/crowdsource-manager.cjs.entry.js +88 -14
  20. package/dist/cjs/{downloadUtils-b85476e8.js → downloadUtils-9359e9ff.js} +1218 -1127
  21. package/dist/cjs/{index.es-3ba50626.js → index.es-9c0d0ed6.js} +10682 -10682
  22. package/dist/cjs/{interfaces-17c631bf.js → interfaces-cac36920.js} +6 -0
  23. package/dist/cjs/layer-table_2.cjs.entry.js +512 -0
  24. package/dist/cjs/loader.cjs.js +30 -30
  25. package/dist/cjs/{mapViewUtils-df63bfa4.js → mapViewUtils-090f4d4d.js} +24 -24
  26. package/dist/cjs/public-notification.cjs.entry.js +69 -49
  27. package/dist/cjs/solution-configuration.cjs.entry.js +2 -2
  28. package/dist/cjs/solution-contents_3.cjs.entry.js +2 -2
  29. package/dist/cjs/{solution-store-b86759b2.js → solution-store-d28c332e.js} +1 -1
  30. package/dist/cjs/solutions-components.cjs.js +31 -31
  31. package/dist/collection/assets/arcgis-pdf-creator/PDFCreator.js +6 -3
  32. package/dist/collection/assets/arcgis-pdf-creator/PDFCreator_jsPDF.js +1 -1
  33. package/dist/collection/assets/arcgis-pdf-creator/PDFCreator_pdf_lib.js +1 -1
  34. package/dist/collection/assets/arcgis-pdf-creator/PDFLabels.js +54 -3
  35. package/dist/collection/assets/arcgis-pdf-creator/grid.js +1 -1
  36. package/dist/collection/components/crowdsource-manager/crowdsource-manager.css +122 -0
  37. package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +130 -14
  38. package/dist/collection/components/layer-table/layer-table.css +2 -70
  39. package/dist/collection/components/layer-table/layer-table.js +66 -106
  40. package/dist/collection/components/map-card/map-card.css +4 -7
  41. package/dist/collection/components/map-card/map-card.js +44 -10
  42. package/dist/collection/components/map-draw-tools/map-draw-tools.js +1 -1
  43. package/dist/collection/components/map-select-tools/map-select-tools.js +1 -1
  44. package/dist/collection/components/public-notification/public-notification.js +45 -27
  45. package/dist/collection/components/refine-selection-tools/refine-selection-tools.js +1 -1
  46. package/dist/collection/demos/crowdsource-manager.html +14 -41
  47. package/dist/collection/utils/csvDownload.js +41 -0
  48. package/dist/collection/utils/csvDownload.ts +42 -0
  49. package/dist/collection/utils/csvUtils.js +6 -23
  50. package/dist/collection/utils/csvUtils.ts +8 -27
  51. package/dist/collection/utils/downloadUtils.js +30 -14
  52. package/dist/collection/utils/downloadUtils.ts +36 -14
  53. package/dist/collection/utils/interfaces.js +6 -0
  54. package/dist/collection/utils/interfaces.ts +6 -0
  55. package/dist/collection/utils/pdfUtils.js +9 -6
  56. package/dist/collection/utils/pdfUtils.ts +13 -8
  57. package/dist/collection/utils/test/csvUtils.spec.tsx +56 -0
  58. package/dist/collection/utils/test/downloadUtils.spec.tsx +133 -0
  59. package/dist/components/crowdsource-manager.js +293 -17
  60. package/dist/components/downloadUtils.js +133 -42
  61. package/dist/components/interfaces3.js +7 -1
  62. package/dist/components/layer-table.js +1 -443
  63. package/dist/components/layer-table2.js +429 -0
  64. package/dist/components/map-card.js +1 -339
  65. package/dist/{esm/map-card.entry.js → components/map-card2.js} +118 -22
  66. package/dist/components/map-draw-tools2.js +16 -16
  67. package/dist/components/map-layer-picker2.js +1 -1
  68. package/dist/components/map-select-tools2.js +38 -38
  69. package/dist/components/public-notification.js +102 -82
  70. package/dist/components/queryUtils.js +10 -10
  71. package/dist/components/refine-selection-tools2.js +3 -3
  72. package/dist/components/refine-selection2.js +1 -1
  73. package/dist/components/solution-resource-item2.js +1 -1
  74. package/dist/components/solution-store.js +1 -1
  75. package/dist/esm/buffer-tools_6.entry.js +76 -76
  76. package/dist/esm/{calcite-block_2.entry.js → calcite-action-bar_4.entry.js} +307 -20
  77. package/dist/esm/{calcite-action.entry.js → calcite-action_2.entry.js} +84 -2
  78. package/dist/esm/{calcite-combobox_3.entry.js → calcite-chip_4.entry.js} +181 -56
  79. package/dist/esm/{calcite-dropdown-group_4.entry.js → calcite-dropdown_5.entry.js} +468 -3
  80. package/dist/esm/calcite-input-message_5.entry.js +275 -275
  81. package/dist/esm/calcite-shell-panel_14.entry.js +2 -2
  82. package/dist/esm/{calcite-action-bar_2.entry.js → calcite-tooltip.entry.js} +4 -209
  83. package/dist/esm/crowdsource-manager.entry.js +88 -14
  84. package/dist/esm/{downloadUtils-f278742f.js → downloadUtils-a8f139c5.js} +1214 -1123
  85. package/dist/esm/{index.es-6f3a1143.js → index.es-a75412ff.js} +10596 -10596
  86. package/dist/esm/{interfaces-d0d83efa.js → interfaces-cd4054e5.js} +7 -1
  87. package/dist/esm/layer-table_2.entry.js +507 -0
  88. package/dist/esm/loader.js +26 -26
  89. package/dist/esm/{mapViewUtils-bd1809f0.js → mapViewUtils-8ffcd36d.js} +12 -12
  90. package/dist/esm/public-notification.entry.js +65 -45
  91. package/dist/esm/solution-configuration.entry.js +2 -2
  92. package/dist/esm/solution-contents_3.entry.js +2 -2
  93. package/dist/esm/{solution-store-477288ac.js → solution-store-1b67f2c8.js} +1 -1
  94. package/dist/esm/solutions-components.js +26 -26
  95. package/dist/solutions-components/demos/crowdsource-manager.html +14 -41
  96. package/dist/solutions-components/{p-dd11eeb2.js → p-1395b0ef.js} +1 -1
  97. package/dist/solutions-components/{p-cbac29fb.entry.js → p-1affd711.entry.js} +18 -18
  98. package/dist/solutions-components/p-30de8da1.entry.js +17 -0
  99. package/dist/solutions-components/{p-91cad71e.entry.js → p-439c878d.entry.js} +3 -9
  100. package/dist/solutions-components/{p-03e2c6fd.js → p-765a27f3.js} +60 -60
  101. package/dist/solutions-components/p-813a04c3.entry.js +6 -0
  102. package/dist/solutions-components/{p-9e8a371f.entry.js → p-874b39a7.entry.js} +3 -3
  103. package/dist/solutions-components/p-8cece97f.js +21 -0
  104. package/dist/solutions-components/{p-dd0241fb.entry.js → p-97aa7211.entry.js} +1 -1
  105. package/dist/solutions-components/{p-0e459cc7.entry.js → p-a955a3e6.entry.js} +10 -4
  106. package/dist/solutions-components/{p-40c12650.js → p-bb64bd47.js} +453 -437
  107. package/dist/solutions-components/{p-70e1d4d8.entry.js → p-c392dd95.entry.js} +17 -17
  108. package/dist/solutions-components/p-ca386a72.entry.js +6 -0
  109. package/dist/solutions-components/p-d47d74a6.entry.js +23 -0
  110. package/dist/solutions-components/p-db846ee2.entry.js +11 -0
  111. package/dist/solutions-components/{p-88e5a76d.js → p-dc53c9c1.js} +36 -36
  112. package/dist/solutions-components/p-e1c93241.entry.js +6 -0
  113. package/dist/solutions-components/{p-4cbaf0f1.entry.js → p-e6d235d6.entry.js} +1 -1
  114. package/dist/solutions-components/solutions-components.esm.js +6 -6
  115. package/dist/solutions-components/utils/csvDownload.ts +42 -0
  116. package/dist/solutions-components/utils/csvUtils.ts +8 -27
  117. package/dist/solutions-components/utils/downloadUtils.ts +36 -14
  118. package/dist/solutions-components/utils/interfaces.ts +6 -0
  119. package/dist/solutions-components/utils/pdfUtils.ts +13 -8
  120. package/dist/solutions-components/utils/test/csvUtils.spec.tsx +56 -0
  121. package/dist/solutions-components/utils/test/downloadUtils.spec.tsx +133 -0
  122. package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +39 -0
  123. package/dist/types/components/layer-table/layer-table.d.ts +35 -48
  124. package/dist/types/components/map-card/map-card.d.ts +10 -6
  125. package/dist/types/components/public-notification/public-notification.d.ts +18 -6
  126. package/dist/types/components.d.ts +1621 -1601
  127. package/dist/types/preact.d.ts +2 -1
  128. package/dist/types/utils/csvDownload.d.ts +24 -0
  129. package/dist/types/utils/csvUtils.d.ts +2 -1
  130. package/dist/types/utils/downloadUtils.d.ts +25 -0
  131. package/dist/types/utils/interfaces.d.ts +5 -0
  132. package/dist/types/utils/pdfUtils.d.ts +2 -1
  133. package/package.json +4 -4
  134. package/dist/cjs/calcite-chip.cjs.entry.js +0 -142
  135. package/dist/cjs/calcite-dropdown.cjs.entry.js +0 -481
  136. package/dist/cjs/calcite-handle.cjs.entry.js +0 -99
  137. package/dist/cjs/calcite-loader.cjs.entry.js +0 -95
  138. package/dist/cjs/layer-table.cjs.entry.js +0 -317
  139. package/dist/cjs/map-card.cjs.entry.js +0 -252
  140. package/dist/esm/calcite-chip.entry.js +0 -138
  141. package/dist/esm/calcite-dropdown.entry.js +0 -477
  142. package/dist/esm/calcite-handle.entry.js +0 -95
  143. package/dist/esm/calcite-loader.entry.js +0 -91
  144. package/dist/esm/layer-table.entry.js +0 -313
  145. package/dist/solutions-components/p-045d3988.entry.js +0 -12
  146. package/dist/solutions-components/p-11132485.entry.js +0 -11
  147. package/dist/solutions-components/p-15b43c29.entry.js +0 -11
  148. package/dist/solutions-components/p-5034aabc.entry.js +0 -11
  149. package/dist/solutions-components/p-6f012424.entry.js +0 -6
  150. package/dist/solutions-components/p-7fd10eb3.entry.js +0 -11
  151. package/dist/solutions-components/p-a57ef371.entry.js +0 -6
  152. package/dist/solutions-components/p-bc39f296.entry.js +0 -6
  153. package/dist/solutions-components/p-c93d8e80.entry.js +0 -6
  154. package/dist/solutions-components/p-dbc9a5a8.js +0 -21
  155. package/dist/solutions-components/p-f5c70be2.entry.js +0 -6
  156. package/dist/solutions-components/p-f6b17cc6.entry.js +0 -11
@@ -1,37 +1,37 @@
1
- /*!
2
- * Copyright 2022 Esri
3
- * Licensed under the Apache License, Version 2.0
4
- * http://www.apache.org/licenses/LICENSE-2.0
5
- */
6
- import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
7
- import { l as loadModules } from './loadModules.js';
8
- import { g as goToSelection, h as highlightFeatures, d as defineCustomElement$2 } from './map-layer-picker2.js';
9
- import { b as queryObjectIds, c as getQueryGeoms } from './queryUtils.js';
10
- import { c as EWorkflowType, e as ESelectionMode, f as ERefineMode, b as ESketchType } from './interfaces3.js';
11
- import { s as state } from './publicNotificationStore.js';
12
- import { g as getLocaleComponentStrings } from './locale.js';
13
- import { d as defineCustomElement$k } from './buffer-tools2.js';
14
- import { d as defineCustomElement$j } from './action.js';
15
- import { d as defineCustomElement$i } from './checkbox.js';
16
- import { d as defineCustomElement$h } from './chip.js';
17
- import { d as defineCustomElement$g } from './combobox.js';
18
- import { d as defineCustomElement$f } from './combobox-item.js';
19
- import { d as defineCustomElement$e } from './graph.js';
20
- import { d as defineCustomElement$d } from './icon.js';
21
- import { d as defineCustomElement$c } from './input.js';
22
- import { d as defineCustomElement$b } from './label.js';
23
- import { d as defineCustomElement$a } from './loader.js';
24
- import { d as defineCustomElement$9 } from './option.js';
25
- import { d as defineCustomElement$8 } from './progress.js';
26
- import { d as defineCustomElement$7 } from './radio-group.js';
27
- import { d as defineCustomElement$6 } from './radio-group-item.js';
28
- import { d as defineCustomElement$5 } from './select.js';
29
- import { d as defineCustomElement$4 } from './slider.js';
30
- import { d as defineCustomElement$3 } from './map-draw-tools2.js';
31
- import { d as defineCustomElement$1 } from './refine-selection-tools2.js';
32
-
33
- const mapSelectToolsCss = ":host{display:block}.div-visible{display:inherit}.div-visible-search{display:flex;height:44px;align-items:center;padding-bottom:0}.div-not-visible{display:none}.padding-bottom-1{padding-bottom:1rem}.search-widget{width:100% !important;border:1px solid var(--calcite-ui-border-input)}.w-100{width:100%}.w-50{width:50%}.search-distance-container{padding-top:\"1rem\" !important}.end-border{-webkit-border-end:1px solid var(--calcite-ui-border-2);border-inline-end:1px solid var(--calcite-ui-border-2)}.search-distance{display:flex;padding-top:1rem}";
34
-
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
7
+ import { l as loadModules } from './loadModules.js';
8
+ import { a as goToSelection, h as highlightFeatures, d as defineCustomElement$2 } from './map-layer-picker2.js';
9
+ import { b as queryObjectIds, c as getQueryGeoms } from './queryUtils.js';
10
+ import { c as EWorkflowType, f as ESelectionMode, g as ERefineMode, b as ESketchType } from './interfaces3.js';
11
+ import { s as state } from './publicNotificationStore.js';
12
+ import { g as getLocaleComponentStrings } from './locale.js';
13
+ import { d as defineCustomElement$k } from './buffer-tools2.js';
14
+ import { d as defineCustomElement$j } from './action.js';
15
+ import { d as defineCustomElement$i } from './checkbox.js';
16
+ import { d as defineCustomElement$h } from './chip.js';
17
+ import { d as defineCustomElement$g } from './combobox.js';
18
+ import { d as defineCustomElement$f } from './combobox-item.js';
19
+ import { d as defineCustomElement$e } from './graph.js';
20
+ import { d as defineCustomElement$d } from './icon.js';
21
+ import { d as defineCustomElement$c } from './input.js';
22
+ import { d as defineCustomElement$b } from './label.js';
23
+ import { d as defineCustomElement$a } from './loader.js';
24
+ import { d as defineCustomElement$9 } from './option.js';
25
+ import { d as defineCustomElement$8 } from './progress.js';
26
+ import { d as defineCustomElement$7 } from './radio-group.js';
27
+ import { d as defineCustomElement$6 } from './radio-group-item.js';
28
+ import { d as defineCustomElement$5 } from './select.js';
29
+ import { d as defineCustomElement$4 } from './slider.js';
30
+ import { d as defineCustomElement$3 } from './map-draw-tools2.js';
31
+ import { d as defineCustomElement$1 } from './refine-selection-tools2.js';
32
+
33
+ const mapSelectToolsCss = ":host{display:block}.div-visible{display:inherit}.div-visible-search{display:flex;height:44px;align-items:center;padding-bottom:0}.div-not-visible{display:none}.padding-bottom-1{padding-bottom:1rem}.search-widget{width:100% !important;border:1px solid var(--calcite-ui-border-input)}.w-100{width:100%}.w-50{width:50%}.search-distance-container{padding-top:\"1rem\" !important}.end-border{-webkit-border-end:1px solid var(--calcite-ui-border-2);border-inline-end:1px solid var(--calcite-ui-border-2)}.search-distance{display:flex;padding-top:1rem}";
34
+
35
35
  const MapSelectTools = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
36
36
  constructor() {
37
37
  super();
@@ -374,7 +374,7 @@ const MapSelectTools = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
374
374
  this._bufferGraphicsLayer = this.mapView.map.layers.getItemAt(bufferIndex);
375
375
  }
376
376
  else {
377
- this._bufferGraphicsLayer = new this.GraphicsLayer({ title });
377
+ this._bufferGraphicsLayer = new this.GraphicsLayer({ title, listMode: "hide" });
378
378
  state.managedLayers.push(title);
379
379
  const sketchIndex = this.mapView.map.layers.findIndex((l) => l.title === this._translations.sketchLayer);
380
380
  if (sketchIndex > -1) {
@@ -701,6 +701,6 @@ function defineCustomElement() {
701
701
  break;
702
702
  } });
703
703
  }
704
- defineCustomElement();
705
-
706
- export { MapSelectTools as M, defineCustomElement as d };
704
+ defineCustomElement();
705
+
706
+ export { MapSelectTools as M, defineCustomElement as d };
@@ -1,54 +1,54 @@
1
- /*!
2
- * Copyright 2022 Esri
3
- * Licensed under the Apache License, Version 2.0
4
- * http://www.apache.org/licenses/LICENSE-2.0
5
- */
6
- import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
7
- import { a as EPageType, b as ESketchType, c as EWorkflowType, d as EExportType } from './interfaces3.js';
8
- import { l as loadModules } from './loadModules.js';
9
- import { a as getMapLayerView, g as goToSelection, h as highlightFeatures, d as defineCustomElement$6 } from './map-layer-picker2.js';
10
- import { g as getSelectionSetQuery } from './queryUtils.js';
11
- import { s as state } from './publicNotificationStore.js';
12
- import { a as getComponentClosestLanguage, g as getLocaleComponentStrings } from './locale.js';
13
- import { g as getTotal, a as getSelectionIds, d as defineCustomElement$3 } from './refine-selection2.js';
14
- import { d as defineCustomElement$C } from './buffer-tools2.js';
15
- import { d as defineCustomElement$B } from './action.js';
16
- import { d as defineCustomElement$A } from './action-bar.js';
17
- import { d as defineCustomElement$z } from './action-group.js';
18
- import { d as defineCustomElement$y } from './action-menu.js';
19
- import { d as defineCustomElement$x } from './button.js';
20
- import { d as defineCustomElement$w } from './checkbox.js';
21
- import { d as defineCustomElement$v } from './chip.js';
22
- import { d as defineCustomElement$u } from './combobox.js';
23
- import { d as defineCustomElement$t } from './combobox-item.js';
24
- import { d as defineCustomElement$s } from './graph.js';
25
- import { d as defineCustomElement$r } from './icon.js';
26
- import { d as defineCustomElement$q } from './input.js';
27
- import { d as defineCustomElement$p } from './input-message.js';
28
- import { d as defineCustomElement$o } from './label.js';
29
- import { d as defineCustomElement$n } from './list.js';
30
- import { d as defineCustomElement$m } from './list-item2.js';
31
- import { d as defineCustomElement$l } from './loader.js';
32
- import { d as defineCustomElement$k } from './modal.js';
33
- import { d as defineCustomElement$j } from './notice.js';
34
- import { d as defineCustomElement$i } from './option.js';
35
- import { d as defineCustomElement$h } from './panel.js';
36
- import { d as defineCustomElement$g } from './popover.js';
37
- import { d as defineCustomElement$f } from './progress.js';
38
- import { d as defineCustomElement$e } from './radio-group.js';
39
- import { d as defineCustomElement$d } from './radio-group-item.js';
40
- import { d as defineCustomElement$c } from './scrim.js';
41
- import { d as defineCustomElement$b } from './select.js';
42
- import { d as defineCustomElement$a } from './shell.js';
43
- import { d as defineCustomElement$9 } from './slider.js';
44
- import { d as defineCustomElement$8 } from './tooltip.js';
45
- import { d as defineCustomElement$7 } from './map-draw-tools2.js';
46
- import { d as defineCustomElement$5 } from './map-select-tools2.js';
47
- import { d as defineCustomElement$4 } from './pdf-download2.js';
48
- import { d as defineCustomElement$2 } from './refine-selection-tools2.js';
49
-
50
- const publicNotificationCss = ":host{display:block;--calcite-input-message-spacing-value:0}.align-center{align-items:center}.border-bottom-1{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}.action-bar-size{height:3.5rem;width:100%}.w-1-3{width:33.3%}.w-1-4{width:25%}.action-center{-webkit-box-align:center;-webkit-align-items:center;-ms-grid-row-align:center;align-items:center;align-content:center;justify-content:center}.width-full{width:100%}.height-full{height:100%}.padding-1{padding:1rem}.padding-top-sides-1{-webkit-padding-before:1rem;padding-block-start:1rem;-webkit-padding-start:1rem;padding-inline-start:1rem;-webkit-padding-end:1rem;padding-inline-end:1rem}.padding-sides-1{-webkit-padding-start:1rem;padding-inline-start:1rem;-webkit-padding-end:1rem;padding-inline-end:1rem}.padding-end-1-2{-webkit-padding-end:.5rem;padding-inline-end:.5rem}.padding-top-1-2{-webkit-padding-before:.5rem;padding-block-start:.5rem}.padding-top-1{padding-top:1rem}.padding-bottom-1{padding-bottom:1rem}.info-blue{color:#00A0FF}.info-message{justify-content:center;display:grid}.font-bold{font-weight:bold}.display-flex{display:flex}.display-block{display:block}.display-none{display:none}.main-label{float:left}html[dir=\"rtl\"] .main-label{float:right}.back-label:hover{cursor:pointer;color:var(--calcite-ui-brand-hover)}.border-bottom{border-bottom:1px solid var(--calcite-ui-border-2)}.margin-side-1{-webkit-margin-start:1rem;margin-inline-start:1rem;-webkit-margin-end:1rem;margin-inline-end:1rem}.border-top{border-top:1px solid var(--calcite-ui-border-2)}.w-100{width:100%}.w-50{width:50%}.padding-1-2{padding:0.5rem}.list-border{border:1px solid var(--calcite-ui-border-2)}.margin-sides-1{-webkit-margin-start:1rem;margin-inline-start:1rem;-webkit-margin-end:1rem;margin-inline-end:1rem}.margin-start-1-2{-webkit-margin-start:0.5rem;margin-inline-start:0.5rem}.float-right{float:right}.float-right[dir=\"rtl\"]{float:left}.float-left{float:left}.float-left[dir=\"rtl\"]{float:right}.margin-top-0{-webkit-margin-before:0 !important;margin-block-start:0 !important}.height-1-1-2{height:1.5rem}.main-background{background-color:var(--calcite-ui-foreground-2)}.num-selected{align-items:center;display:flex}";
51
-
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
7
+ import { a as EPageType, b as ESketchType, c as EWorkflowType, d as EExportType } from './interfaces3.js';
8
+ import { l as loadModules } from './loadModules.js';
9
+ import { g as getMapLayerView, a as goToSelection, h as highlightFeatures, d as defineCustomElement$6 } from './map-layer-picker2.js';
10
+ import { g as getSelectionSetQuery } from './queryUtils.js';
11
+ import { s as state } from './publicNotificationStore.js';
12
+ import { a as getComponentClosestLanguage, g as getLocaleComponentStrings } from './locale.js';
13
+ import { g as getTotal, a as getSelectionIds, d as defineCustomElement$3 } from './refine-selection2.js';
14
+ import { d as defineCustomElement$C } from './buffer-tools2.js';
15
+ import { d as defineCustomElement$B } from './action.js';
16
+ import { d as defineCustomElement$A } from './action-bar.js';
17
+ import { d as defineCustomElement$z } from './action-group.js';
18
+ import { d as defineCustomElement$y } from './action-menu.js';
19
+ import { d as defineCustomElement$x } from './button.js';
20
+ import { d as defineCustomElement$w } from './checkbox.js';
21
+ import { d as defineCustomElement$v } from './chip.js';
22
+ import { d as defineCustomElement$u } from './combobox.js';
23
+ import { d as defineCustomElement$t } from './combobox-item.js';
24
+ import { d as defineCustomElement$s } from './graph.js';
25
+ import { d as defineCustomElement$r } from './icon.js';
26
+ import { d as defineCustomElement$q } from './input.js';
27
+ import { d as defineCustomElement$p } from './input-message.js';
28
+ import { d as defineCustomElement$o } from './label.js';
29
+ import { d as defineCustomElement$n } from './list.js';
30
+ import { d as defineCustomElement$m } from './list-item2.js';
31
+ import { d as defineCustomElement$l } from './loader.js';
32
+ import { d as defineCustomElement$k } from './modal.js';
33
+ import { d as defineCustomElement$j } from './notice.js';
34
+ import { d as defineCustomElement$i } from './option.js';
35
+ import { d as defineCustomElement$h } from './panel.js';
36
+ import { d as defineCustomElement$g } from './popover.js';
37
+ import { d as defineCustomElement$f } from './progress.js';
38
+ import { d as defineCustomElement$e } from './radio-group.js';
39
+ import { d as defineCustomElement$d } from './radio-group-item.js';
40
+ import { d as defineCustomElement$c } from './scrim.js';
41
+ import { d as defineCustomElement$b } from './select.js';
42
+ import { d as defineCustomElement$a } from './shell.js';
43
+ import { d as defineCustomElement$9 } from './slider.js';
44
+ import { d as defineCustomElement$8 } from './tooltip.js';
45
+ import { d as defineCustomElement$7 } from './map-draw-tools2.js';
46
+ import { d as defineCustomElement$5 } from './map-select-tools2.js';
47
+ import { d as defineCustomElement$4 } from './pdf-download2.js';
48
+ import { d as defineCustomElement$2 } from './refine-selection-tools2.js';
49
+
50
+ const publicNotificationCss = ":host{display:block;--calcite-input-message-spacing-value:0}.align-center{align-items:center}.border-bottom-1{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}.action-bar-size{height:3.5rem;width:100%}.w-1-3{width:33.3%}.w-1-4{width:25%}.action-center{-webkit-box-align:center;-webkit-align-items:center;-ms-grid-row-align:center;align-items:center;align-content:center;justify-content:center}.width-full{width:100%}.height-full{height:100%}.padding-1{padding:1rem}.padding-top-sides-1{-webkit-padding-before:1rem;padding-block-start:1rem;-webkit-padding-start:1rem;padding-inline-start:1rem;-webkit-padding-end:1rem;padding-inline-end:1rem}.padding-sides-1{-webkit-padding-start:1rem;padding-inline-start:1rem;-webkit-padding-end:1rem;padding-inline-end:1rem}.padding-end-1-2{-webkit-padding-end:.5rem;padding-inline-end:.5rem}.padding-top-1-2{-webkit-padding-before:.5rem;padding-block-start:.5rem}.padding-top-1{padding-top:1rem}.padding-bottom-1{padding-bottom:1rem}.info-blue{color:#00A0FF}.info-message{justify-content:center;display:grid}.font-bold{font-weight:bold}.display-flex{display:flex}.display-block{display:block}.display-none{display:none}.main-label{float:left}html[dir=\"rtl\"] .main-label{float:right}.back-label:hover{cursor:pointer;color:var(--calcite-ui-brand-hover)}.border-bottom{border-bottom:1px solid var(--calcite-ui-border-2)}.margin-side-1{-webkit-margin-start:1rem;margin-inline-start:1rem;-webkit-margin-end:1rem;margin-inline-end:1rem}.border-top{border-top:1px solid var(--calcite-ui-border-2)}.w-100{width:100%}.w-50{width:50%}.padding-1-2{padding:0.5rem}.list-border{border:1px solid var(--calcite-ui-border-2)}.margin-sides-1{-webkit-margin-start:1rem;margin-inline-start:1rem;-webkit-margin-end:1rem;margin-inline-end:1rem}.margin-start-1-2{-webkit-margin-start:0.5rem;margin-inline-start:0.5rem}.float-right{float:right}.float-right[dir=\"rtl\"]{float:left}.float-left{float:left}.float-left[dir=\"rtl\"]{float:right}.margin-top-0{-webkit-margin-before:0 !important;margin-block-start:0 !important}.height-1-1-2{height:1.5rem}.main-background{background-color:var(--calcite-ui-foreground-2)}.num-selected{align-items:center;display:flex}";
51
+
52
52
  const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
53
53
  constructor() {
54
54
  super();
@@ -112,17 +112,6 @@ const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
112
112
  void this._home();
113
113
  }
114
114
  }
115
- /**
116
- * Called each time the selectionSets prop is changed.
117
- */
118
- async selectionSetsWatchHandler(v, oldV) {
119
- if (v && v !== oldV && v.length > 0) {
120
- const nonRefineSets = v.filter(ss => ss.workflowType !== EWorkflowType.REFINE);
121
- if (nonRefineSets.length === 0) {
122
- this._selectionSets = [];
123
- }
124
- }
125
- }
126
115
  /**
127
116
  * Called each time the sketchLineSymbol prop is changed.
128
117
  */
@@ -365,7 +354,7 @@ const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
365
354
  * @protected
366
355
  */
367
356
  _getListPage() {
368
- const hasSets = this._selectionSets.filter(ss => ss.workflowType !== EWorkflowType.REFINE).length > 0;
357
+ const hasSets = this._hasSelections();
369
358
  const total = getTotal(this._selectionSets);
370
359
  return hasSets ? (h("calcite-panel", null, h("div", { class: "padding-top-sides-1" }, h("calcite-label", { class: "font-bold" }, this._translations.myLists)), this._getNotice(this._translations.listHasSetsTip, "padding-sides-1 padding-bottom-1"), this._getMapLayerPicker(), h("div", { class: "display-block padding-sides-1 height-1-1-2" }, h("div", { class: "display-block float-left" }, h("calcite-label", { alignment: "start", class: "font-bold" }, this._translations.notifications)), h("div", { class: "display-block float-right" }, h("calcite-input-message", { active: true, class: "info-blue margin-top-0", scale: "m" }, this._translations.uniqueCout.replace("{{n}}", total.toString())))), hasSets ? this._getSelectionSetList() : (h("div", { class: "info-message" }, h("calcite-input-message", { active: true, class: "info-blue", scale: "m" }, this._translations.noNotifications))), h("div", { class: "display-flex padding-1" }, h("calcite-button", { onClick: () => { this._setPageType(EPageType.SELECT); }, width: "full" }, this._translations.add)), this._showModal(this._showLayerSelectionChangeModal))) : (h("calcite-panel", null, h("div", { class: "padding-top-sides-1" }, h("calcite-label", { class: "font-bold" }, this._translations.myLists)), h("div", { class: "padding-sides-1" }, h("calcite-label", null, this._translations.notifications)), h("div", { class: "info-message padding-bottom-1" }, h("calcite-input-message", { active: true, class: "info-blue", scale: "m" }, this._translations.noNotifications)), this._getNotice(this._translations.selectLayerAndAdd, "padding-sides-1 padding-bottom-1"), this._getMapLayerPicker(), h("div", { class: "display-flex padding-1" }, h("calcite-button", { onClick: () => { this._setPageType(EPageType.SELECT); }, width: "full" }, this._translations.add))));
371
360
  }
@@ -390,7 +379,8 @@ const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
390
379
  // REFINE is handled seperately from the core selection sets
391
380
  // You can only access after clicking the refine action
392
381
  this._selectionSets.reduce((prev, cur, i) => {
393
- if (cur.workflowType !== EWorkflowType.REFINE) {
382
+ const validSet = this._isValidSet(cur);
383
+ if (validSet) {
394
384
  prev.push((h("calcite-list-item", { description: this._translations.selectedFeatures.replace("{{n}}", cur.selectedIds.length.toString()), label: cur.label, onClick: () => this._gotoSelection(cur, this.mapView) }, this._getAction(true, "pencil", "", (evt) => this._openSelection(cur, evt), false, "actions-end"), this._getAction(true, "x", "", (evt) => this._deleteSelection(i, evt), false, "actions-end"))));
395
385
  }
396
386
  return prev;
@@ -431,14 +421,38 @@ const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
431
421
  await this._updateAddresseeLayer(id);
432
422
  }
433
423
  /**
434
- * Check if any selection sets exist.
424
+ * Check if any valid selection sets exist.
435
425
  *
436
- * @returns true if selection sets exist
426
+ * @returns true if valid selection sets exist
437
427
  *
438
428
  * @protected
439
429
  */
440
430
  _hasSelections() {
441
- return this._selectionSets.length > 0;
431
+ return this._selectionSets.filter(ss => this._isValidSet(ss)).length > 0;
432
+ }
433
+ /**
434
+ * Check if any duplicates exist
435
+ *
436
+ * @returns true if duplicates are found
437
+ *
438
+ * @protected
439
+ */
440
+ _hasDuplicates() {
441
+ const selectedIds = this._selectionSets.reduce((prev, cur) => {
442
+ return prev.concat(cur.download ? cur.selectedIds : []);
443
+ }, []);
444
+ return selectedIds.length > new Set(selectedIds).size;
445
+ }
446
+ /**
447
+ * Check if a selection set is valid (exists or has at least one added if its a refine set)
448
+ *
449
+ * @returns true if selection set is valid
450
+ *
451
+ * @protected
452
+ */
453
+ _isValidSet(ss) {
454
+ var _a, _b;
455
+ return ss.workflowType === EWorkflowType.REFINE ? ((_b = (_a = ss === null || ss === void 0 ? void 0 : ss.refineIds) === null || _a === void 0 ? void 0 : _a.addIds) === null || _b === void 0 ? void 0 : _b.length) > 0 : true;
442
456
  }
443
457
  /**
444
458
  * Create the Select page that shows the selection workflows
@@ -507,7 +521,8 @@ const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
507
521
  _getDownloadPage(type) {
508
522
  const isPdf = type === EExportType.PDF;
509
523
  const hasSelections = this._hasSelections();
510
- return (h("calcite-panel", null, h("div", null, h("div", { class: "padding-top-sides-1" }, h("calcite-label", { class: "font-bold" }, isPdf ? this._translations.downloadPDF : this._translations.downloadCSV)), hasSelections ? (h("div", null, h("div", { class: "padding-top-sides-1" }, h("calcite-label", null, this._translations.notifications)), this._getSelectionLists(), h("div", { class: "margin-side-1 padding-top-1 border-bottom" }), h("div", { class: "padding-top-sides-1" }, h("calcite-label", { class: isPdf ? "display-none" : "", layout: "inline" }, h("calcite-checkbox", { disabled: !this._downloadActive, ref: (el) => { this._removeDuplicatesCSV = el; } }), this._translations.removeDuplicate), h("calcite-label", { class: isPdf ? "" : "display-none", layout: "inline" }, h("calcite-checkbox", { disabled: !this._downloadActive, ref: (el) => { this._removeDuplicatesPDF = el; } }), this._translations.removeDuplicate)), h("div", { class: isPdf ? "" : "display-none" }, this._getLabel(this._translations.selectPDFLabelOption, false), h("div", { class: "padding-sides-1" }, h("pdf-download", { disabled: !this._downloadActive, layerView: this.addresseeLayer, ref: (el) => { this._downloadTools = el; } }))), h("div", { class: "padding-1 display-flex" }, h("calcite-button", { disabled: !this._downloadActive, onClick: isPdf ? () => this._downloadPDF() : () => this._downloadCSV(), width: "full" }, isPdf ? this._translations.downloadPDF : this._translations.downloadCSV)))) : (this._getNotice(this._translations.downloadNoLists, "padding-sides-1 padding-bottom-1")))));
524
+ const hasDuplicates = this._hasDuplicates();
525
+ return (h("calcite-panel", null, h("div", null, h("div", { class: "padding-top-sides-1" }, h("calcite-label", { class: "font-bold" }, isPdf ? this._translations.downloadPDF : this._translations.downloadCSV)), hasSelections ? (h("div", null, h("div", { class: "padding-top-sides-1" }, h("calcite-label", null, this._translations.notifications)), this._getSelectionLists(), h("div", { class: "margin-side-1 padding-top-1 border-bottom" }), h("div", { class: "padding-top-sides-1" }, h("calcite-label", { class: isPdf ? "display-none" : "", disabled: !hasDuplicates, layout: "inline" }, h("calcite-checkbox", { disabled: !hasDuplicates, ref: (el) => { this._removeDuplicatesCSV = el; } }), this._translations.removeDuplicate), h("calcite-label", { class: isPdf ? "" : "display-none", disabled: !hasDuplicates, layout: "inline" }, h("calcite-checkbox", { disabled: !hasDuplicates, ref: (el) => { this._removeDuplicatesPDF = el; } }), this._translations.removeDuplicate)), h("div", { class: isPdf ? "" : "display-none" }, this._getLabel(this._translations.selectPDFLabelOption, false), h("div", { class: "padding-sides-1" }, h("pdf-download", { disabled: !this._downloadActive, layerView: this.addresseeLayer, ref: (el) => { this._downloadTools = el; } }))), h("div", { class: "padding-1 display-flex" }, h("calcite-button", { disabled: !this._downloadActive, onClick: isPdf ? () => this._downloadPDF() : () => this._downloadCSV(), width: "full" }, isPdf ? this._translations.downloadPDF : this._translations.downloadCSV)))) : (this._getNotice(this._translations.downloadNoLists, "padding-sides-1 padding-bottom-1")))));
511
526
  }
512
527
  /**
513
528
  * Create the stacked navigation buttons for a page
@@ -557,7 +572,8 @@ const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
557
572
  */
558
573
  _getSelectionLists() {
559
574
  return this._selectionSets.reduce((prev, cur) => {
560
- if (cur.workflowType !== EWorkflowType.REFINE) {
575
+ const validSet = this._isValidSet(cur);
576
+ if (validSet) {
561
577
  if (!this._downloadActive && cur.download) {
562
578
  this._downloadActive = true;
563
579
  }
@@ -720,7 +736,7 @@ const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
720
736
  * @protected
721
737
  */
722
738
  async _updateSelectionSets(layerView) {
723
- const _selectionSets = this._selectionSets.filter(selectionSet => selectionSet.workflowType !== EWorkflowType.REFINE);
739
+ const _selectionSets = this._selectionSets;
724
740
  const oidDefs = [];
725
741
  _selectionSets.forEach(selectionSet => {
726
742
  selectionSet.layerView = layerView;
@@ -804,11 +820,16 @@ const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
804
820
  */
805
821
  _openSelection(selectionSet, evt) {
806
822
  evt.stopPropagation();
807
- this._activeSelection = selectionSet;
808
- this._distance = this._activeSelection.distance;
809
- this._unit = this._activeSelection.unit;
810
- this._customLabel = this._activeSelection.label;
811
- this._pageType = EPageType.SELECT;
823
+ if (selectionSet.workflowType === EWorkflowType.REFINE) {
824
+ this._pageType = EPageType.REFINE;
825
+ }
826
+ else {
827
+ this._activeSelection = selectionSet;
828
+ this._distance = this._activeSelection.distance;
829
+ this._unit = this._activeSelection.unit;
830
+ this._customLabel = this._activeSelection.label;
831
+ this._pageType = EPageType.SELECT;
832
+ }
812
833
  }
813
834
  /**
814
835
  * Highlight any selected features in the map
@@ -857,7 +878,6 @@ const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
857
878
  static get watchers() { return {
858
879
  "mapView": ["mapViewWatchHandler"],
859
880
  "searchConfiguration": ["watchSearchConfigurationHandler"],
860
- "_selectionSets": ["selectionSetsWatchHandler"],
861
881
  "sketchLineSymbol": ["sketchLineSymbolWatchHandler"],
862
882
  "sketchPointSymbol": ["sketchPointSymbolWatchHandler"],
863
883
  "sketchPolygonSymbol": ["sketchPolygonSymbolWatchHandler"],
@@ -1092,9 +1112,9 @@ function defineCustomElement$1() {
1092
1112
  break;
1093
1113
  } });
1094
1114
  }
1095
- defineCustomElement$1();
1096
-
1097
- const PublicNotification = PublicNotification$1;
1098
- const defineCustomElement = defineCustomElement$1;
1099
-
1100
- export { PublicNotification, defineCustomElement };
1115
+ defineCustomElement$1();
1116
+
1117
+ const PublicNotification = PublicNotification$1;
1118
+ const defineCustomElement = defineCustomElement$1;
1119
+
1120
+ export { PublicNotification, defineCustomElement };
@@ -1,10 +1,10 @@
1
- /*!
2
- * Copyright 2022 Esri
3
- * Licensed under the Apache License, Version 2.0
4
- * http://www.apache.org/licenses/LICENSE-2.0
5
- */
6
- import { c as EWorkflowType } from './interfaces3.js';
7
-
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ import { c as EWorkflowType } from './interfaces3.js';
7
+
8
8
  /** @license
9
9
  * Copyright 2022 Esri
10
10
  *
@@ -174,6 +174,6 @@ async function _intersectQuery(geometry, layer) {
174
174
  q.spatialRelationship = "intersects";
175
175
  q.geometry = geometry;
176
176
  return layer.queryObjectIds(q);
177
- }
178
-
179
- export { queryExtent as a, queryObjectIds as b, getQueryGeoms as c, queryFeaturesByGeometry as d, queryFeaturesByID as e, getSelectionSetQuery as g, queryAllFeatures as q };
177
+ }
178
+
179
+ export { queryExtent as a, queryObjectIds as b, getQueryGeoms as c, queryFeaturesByGeometry as d, queryFeaturesByID as e, getSelectionSetQuery as g, queryAllFeatures as q };
@@ -4,9 +4,9 @@
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
7
- import { g as ESelectionType, f as ERefineMode, e as ESelectionMode } from './interfaces3.js';
7
+ import { h as ESelectionType, g as ERefineMode, f as ESelectionMode } from './interfaces3.js';
8
8
  import { l as loadModules } from './loadModules.js';
9
- import { a as getMapLayerView, h as highlightFeatures, d as defineCustomElement$1 } from './map-layer-picker2.js';
9
+ import { g as getMapLayerView, h as highlightFeatures, d as defineCustomElement$1 } from './map-layer-picker2.js';
10
10
  import { d as queryFeaturesByGeometry } from './queryUtils.js';
11
11
  import { s as state } from './publicNotificationStore.js';
12
12
  import { g as getLocaleComponentStrings } from './locale.js';
@@ -207,7 +207,7 @@ const RefineSelectionTools = /*@__PURE__*/ proxyCustomElement(class extends HTML
207
207
  this._sketchGraphicsLayer = this.mapView.map.layers.getItemAt(sketchIndex);
208
208
  }
209
209
  else {
210
- this._sketchGraphicsLayer = new this.GraphicsLayer({ title });
210
+ this._sketchGraphicsLayer = new this.GraphicsLayer({ title, listMode: "hide" });
211
211
  state.managedLayers.push(title);
212
212
  this.mapView.map.layers.add(this._sketchGraphicsLayer);
213
213
  }
@@ -4,7 +4,7 @@
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
7
- import { c as EWorkflowType, e as ESelectionMode, f as ERefineMode } from './interfaces3.js';
7
+ import { c as EWorkflowType, f as ESelectionMode, g as ERefineMode } from './interfaces3.js';
8
8
  import { g as getLocaleComponentStrings } from './locale.js';
9
9
  import { d as defineCustomElement$e } from './action.js';
10
10
  import { d as defineCustomElement$d } from './chip.js';
@@ -4,7 +4,7 @@
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
7
- import { h as EUpdateType } from './interfaces3.js';
7
+ import { i as EUpdateType } from './interfaces3.js';
8
8
  import { s as state, E as EFileType } from './solution-store.js';
9
9
  import { g as getLocaleComponentStrings } from './locale.js';
10
10
  import { d as defineCustomElement$a } from './action.js';
@@ -4,7 +4,7 @@
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
6
  import { c as createStore } from './index2.js';
7
- import { h as EUpdateType } from './interfaces3.js';
7
+ import { i as EUpdateType } from './interfaces3.js';
8
8
  import { c as createCommonjsModule, a as commonjsGlobal, b as commonjsRequire } from './_commonjsHelpers.js';
9
9
 
10
10
  /*! *****************************************************************************