@esri/solutions-components 0.6.16 → 0.6.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (216) hide show
  1. package/README.md +1 -1
  2. package/dist/assets/t9n/map-tools/resources.json +2 -1
  3. package/dist/assets/t9n/map-tools/resources_en.json +2 -1
  4. package/dist/assets/t9n/solution-spatial-ref/resources.json +0 -1
  5. package/dist/assets/t9n/solution-spatial-ref/resources_en.json +0 -1
  6. package/dist/assets/t9n/solution-spatial-ref/resources_fr.json +6 -0
  7. package/dist/assets/t9n/solution-spatial-ref/resources_he.json +6 -0
  8. package/dist/assets/t9n/spatial-ref/resources.json +3 -0
  9. package/dist/assets/t9n/spatial-ref/resources_en.json +3 -0
  10. package/dist/assets/t9n/spatial-ref/resources_fr.json +3 -0
  11. package/dist/assets/t9n/spatial-ref/resources_he.json +3 -0
  12. package/dist/cjs/{basemap-gallery_6.cjs.entry.js → basemap-gallery_7.cjs.entry.js} +124 -3
  13. package/dist/cjs/{calcite-tree_3.cjs.entry.js → calcite-checkbox_3.cjs.entry.js} +123 -319
  14. package/dist/cjs/calcite-combobox_6.cjs.entry.js +1 -1
  15. package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +4 -3
  16. package/dist/cjs/card-manager_3.cjs.entry.js +10 -7
  17. package/dist/{collection/components/basemap-gallery/test/basemap-gallery.e2e.js → cjs/common-13719149.js} +17 -9
  18. package/dist/cjs/crowdsource-manager.cjs.entry.js +12 -7
  19. package/dist/cjs/{downloadUtils-34a515ad.js → downloadUtils-121fd7ff.js} +2 -2
  20. package/dist/cjs/edit-card_2.cjs.entry.js +4 -3
  21. package/dist/cjs/{index.es-0ba11065.js → index.es-5c0c137a.js} +2 -2
  22. package/dist/cjs/loader.cjs.js +1 -1
  23. package/dist/cjs/map-select-tools_3.cjs.entry.js +2 -2
  24. package/dist/cjs/{mapViewUtils-a2884698.js → mapViewUtils-786a219b.js} +32 -19
  25. package/dist/cjs/public-notification.cjs.entry.js +2 -2
  26. package/dist/cjs/solution-configuration.cjs.entry.js +2 -1
  27. package/dist/cjs/solution-contents_3.cjs.entry.js +21 -21256
  28. package/dist/cjs/solution-item-icon.cjs.entry.js +327 -0
  29. package/dist/cjs/{solution-store-c443e657.js → solution-resource-f9e3b289.js} +2 -1698
  30. package/dist/cjs/solution-store-2414dd8a.js +1707 -0
  31. package/dist/cjs/solutions-components.cjs.js +1 -1
  32. package/dist/cjs/spatial-ref.cjs.entry.js +21293 -0
  33. package/dist/collection/collection-manifest.json +2 -0
  34. package/dist/collection/components/card-manager/card-manager.js +1 -1
  35. package/dist/collection/components/crowdsource-manager/crowdsource-manager.css +17 -2
  36. package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +47 -6
  37. package/dist/collection/components/edit-card/edit-card.css +0 -8
  38. package/dist/collection/components/floor-filter/floor-filter.css +19 -0
  39. package/dist/collection/components/floor-filter/floor-filter.js +163 -0
  40. package/dist/collection/components/info-card/info-card.js +3 -2
  41. package/dist/collection/components/layer-table/layer-table.css +8 -0
  42. package/dist/collection/components/layer-table/layer-table.js +18 -2
  43. package/dist/collection/components/map-card/map-card.js +19 -1
  44. package/dist/collection/components/map-picker/map-picker.css +0 -4
  45. package/dist/collection/components/map-picker/map-picker.js +1 -1
  46. package/dist/collection/components/map-tools/map-tools.js +54 -1
  47. package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.css +1 -7
  48. package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +37 -291
  49. package/dist/collection/components/solution-spatial-ref/test/solution-spatial-ref.e2e.js +24 -12
  50. package/dist/collection/components/solution-spatial-ref/test/solution-spatial-ref.spec.js +32 -128
  51. package/dist/collection/components/spatial-ref/spatial-ref.css +20 -0
  52. package/dist/collection/components/spatial-ref/spatial-ref.js +445 -0
  53. package/dist/collection/components/spatial-ref/test/spatial-ref.e2e.js +71 -0
  54. package/dist/collection/components/spatial-ref/test/spatial-ref.spec.js +158 -0
  55. package/dist/collection/demos/crowdsource-manager.html +4 -0
  56. package/dist/collection/demos/solution-spatial-ref.html +9 -16
  57. package/dist/collection/demos/spatial-ref.html +53 -0
  58. package/dist/collection/utils/mapViewUtils.js +32 -19
  59. package/dist/collection/utils/mapViewUtils.ts +43 -20
  60. package/dist/collection/utils/{templates.e2e.js → test/templates.e2e.js} +2 -2
  61. package/dist/collection/utils/{templates.e2e.ts → test/templates.e2e.ts} +2 -2
  62. package/dist/components/card-manager2.js +1 -1
  63. package/dist/components/crowdsource-manager.js +86 -73
  64. package/dist/components/edit-card2.js +1 -1
  65. package/dist/components/floor-filter.d.ts +11 -0
  66. package/dist/components/floor-filter.js +11 -0
  67. package/dist/components/floor-filter2.js +115 -0
  68. package/dist/components/info-card2.js +3 -2
  69. package/dist/components/layer-table2.js +5 -3
  70. package/dist/components/map-card2.js +45 -37
  71. package/dist/components/map-picker2.js +2 -2
  72. package/dist/components/map-tools2.js +52 -11
  73. package/dist/components/mapViewUtils.js +32 -19
  74. package/dist/components/solution-configuration.js +79 -72
  75. package/dist/components/solution-resource-item2.js +2 -1
  76. package/dist/components/solution-resource.js +1836 -0
  77. package/dist/components/solution-spatial-ref2.js +41 -21277
  78. package/dist/components/solution-store.js +2 -1830
  79. package/dist/components/spatial-ref.d.ts +11 -0
  80. package/dist/components/spatial-ref.js +11 -0
  81. package/dist/components/spatial-ref2.js +21374 -0
  82. package/dist/esm/{basemap-gallery_6.entry.js → basemap-gallery_7.entry.js} +124 -4
  83. package/dist/esm/{calcite-tree_3.entry.js → calcite-checkbox_3.entry.js} +125 -321
  84. package/dist/esm/calcite-combobox_6.entry.js +1 -1
  85. package/dist/esm/calcite-shell-panel_14.entry.js +2 -1
  86. package/dist/esm/card-manager_3.entry.js +10 -7
  87. package/dist/{collection/components/layer-table/test/layer-table.e2e.js → esm/common-e4a8e353.js} +15 -9
  88. package/dist/esm/crowdsource-manager.entry.js +12 -7
  89. package/dist/esm/{downloadUtils-ac67a786.js → downloadUtils-287994b1.js} +2 -2
  90. package/dist/esm/edit-card_2.entry.js +4 -3
  91. package/dist/esm/{index.es-f553598f.js → index.es-a3f8409f.js} +2 -2
  92. package/dist/esm/loader.js +1 -1
  93. package/dist/esm/map-select-tools_3.entry.js +2 -2
  94. package/dist/esm/{mapViewUtils-8141d8c1.js → mapViewUtils-8bfabd80.js} +32 -19
  95. package/dist/esm/public-notification.entry.js +2 -2
  96. package/dist/esm/solution-configuration.entry.js +2 -1
  97. package/dist/esm/solution-contents_3.entry.js +20 -21255
  98. package/dist/esm/solution-item-icon.entry.js +323 -0
  99. package/dist/esm/{solution-store-b29d50f7.js → solution-resource-be35d35b.js} +1 -1697
  100. package/dist/esm/solution-store-e734626a.js +1704 -0
  101. package/dist/esm/solutions-components.js +1 -1
  102. package/dist/esm/spatial-ref.entry.js +21289 -0
  103. package/dist/solutions-components/demos/crowdsource-manager.html +4 -0
  104. package/dist/solutions-components/demos/solution-spatial-ref.html +9 -16
  105. package/dist/solutions-components/demos/spatial-ref.html +53 -0
  106. package/dist/solutions-components/{p-64d29ba2.entry.js → p-0bc27ba7.entry.js} +2 -2
  107. package/dist/{collection/components/map-card/test/map-card.e2e.js → solutions-components/p-1b228f97.js} +2 -10
  108. package/dist/solutions-components/{p-9f11a403.entry.js → p-3c5c1487.entry.js} +1 -1
  109. package/dist/solutions-components/{p-a26711e8.js → p-469c8f8a.js} +1 -1
  110. package/dist/solutions-components/p-53bc5fc1.js +36 -0
  111. package/dist/solutions-components/p-5b8c8942.entry.js +21 -0
  112. package/dist/solutions-components/p-63c6fc29.entry.js +6 -0
  113. package/dist/solutions-components/p-64945b43.entry.js +18 -0
  114. package/dist/solutions-components/{p-c8d0ce92.js → p-698c6a56.js} +2 -2
  115. package/dist/solutions-components/{p-b9d29f30.entry.js → p-734cb206.entry.js} +1 -1
  116. package/dist/solutions-components/p-770bff06.entry.js +6 -0
  117. package/dist/solutions-components/p-7741dbab.entry.js +6 -0
  118. package/dist/solutions-components/p-80465067.entry.js +6 -0
  119. package/dist/solutions-components/p-846df994.entry.js +6 -0
  120. package/dist/solutions-components/p-b3f8d2cb.js +192 -0
  121. package/dist/solutions-components/p-c26d8b36.entry.js +6 -0
  122. package/dist/solutions-components/{p-57cf6784.entry.js → p-d22be647.entry.js} +1 -1
  123. package/dist/solutions-components/{p-4d942b0f.entry.js → p-f35147d5.entry.js} +1 -1
  124. package/dist/solutions-components/p-ff0d7712.js +44 -0
  125. package/dist/solutions-components/solutions-components.esm.js +1 -1
  126. package/dist/solutions-components/utils/mapViewUtils.ts +43 -20
  127. package/dist/solutions-components/utils/{templates.e2e.ts → test/templates.e2e.ts} +2 -2
  128. package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +9 -1
  129. package/dist/types/components/floor-filter/floor-filter.d.ts +61 -0
  130. package/dist/types/components/layer-table/layer-table.d.ts +4 -0
  131. package/dist/types/components/map-card/map-card.d.ts +4 -0
  132. package/dist/types/components/map-tools/map-tools.d.ts +24 -0
  133. package/dist/types/components/solution-spatial-ref/solution-spatial-ref.d.ts +11 -93
  134. package/dist/types/components/spatial-ref/spatial-ref.d.ts +142 -0
  135. package/dist/types/components.d.ts +123 -16
  136. package/dist/types/preact.d.ts +8 -1
  137. package/package.json +6 -6
  138. package/dist/cjs/calcite-checkbox.cjs.entry.js +0 -136
  139. package/dist/collection/components/basemap-gallery/test/basemap-gallery.spec.js +0 -37
  140. package/dist/collection/components/buffer-tools/test/buffer-tools.e2e.js +0 -29
  141. package/dist/collection/components/buffer-tools/test/buffer-tools.spec.js +0 -160
  142. package/dist/collection/components/card-manager/test/card-manager.e2e.js +0 -29
  143. package/dist/collection/components/card-manager/test/card-manager.spec.js +0 -37
  144. package/dist/collection/components/crowdsource-manager/test/crowdsource-manager.e2e.js +0 -29
  145. package/dist/collection/components/crowdsource-manager/test/crowdsource-manager.spec.js +0 -37
  146. package/dist/collection/components/crowdsource-reporter/test/crowdsource-reporter.e2e.js +0 -29
  147. package/dist/collection/components/crowdsource-reporter/test/crowdsource-reporter.spec.js +0 -37
  148. package/dist/collection/components/deduct-calculator/test/deduct-calculator.e2e.js +0 -29
  149. package/dist/collection/components/deduct-calculator/test/deduct-calculator.spec.js +0 -37
  150. package/dist/collection/components/edit-card/test/edit-card.e2e.js +0 -14
  151. package/dist/collection/components/edit-card/test/edit-card.spec.js +0 -22
  152. package/dist/collection/components/info-card/test/info-card.e2e.js +0 -29
  153. package/dist/collection/components/info-card/test/info-card.spec.js +0 -37
  154. package/dist/collection/components/json-editor/test/json-editor.e2e.js +0 -36
  155. package/dist/collection/components/json-editor/test/json-editor.spec.js +0 -65
  156. package/dist/collection/components/layer-table/test/layer-table.spec.js +0 -37
  157. package/dist/collection/components/layout-manager/test/layout-manager.e2e.js +0 -29
  158. package/dist/collection/components/layout-manager/test/layout-manager.spec.js +0 -37
  159. package/dist/collection/components/list-item/test/list-item.e2e.js +0 -29
  160. package/dist/collection/components/list-item/test/list-item.spec.js +0 -37
  161. package/dist/collection/components/map-card/test/map-card.spec.js +0 -37
  162. package/dist/collection/components/map-draw-tools/test/map-draw-tools.e2e.js +0 -29
  163. package/dist/collection/components/map-draw-tools/test/map-draw-tools.spec.js +0 -37
  164. package/dist/collection/components/map-fullscreen/test/map-fullscreen.e2e.js +0 -29
  165. package/dist/collection/components/map-fullscreen/test/map-fullscreen.spec.js +0 -37
  166. package/dist/collection/components/map-layer-picker/test/map-layer-picker.e2e.js +0 -29
  167. package/dist/collection/components/map-layer-picker/test/map-layer-picker.spec.js +0 -114
  168. package/dist/collection/components/map-legend/test/map-legend.e2e.js +0 -14
  169. package/dist/collection/components/map-legend/test/map-legend.spec.js +0 -22
  170. package/dist/collection/components/map-picker/test/map-picker.e2e.js +0 -29
  171. package/dist/collection/components/map-picker/test/map-picker.spec.js +0 -37
  172. package/dist/collection/components/map-search/test/map-search.e2e.js +0 -29
  173. package/dist/collection/components/map-search/test/map-search.spec.js +0 -37
  174. package/dist/collection/components/map-select-tools/test/map-select-tools.e2e.js +0 -29
  175. package/dist/collection/components/map-select-tools/test/map-select-tools.spec.js +0 -366
  176. package/dist/collection/components/map-tools/test/map-tools.e2e.js +0 -29
  177. package/dist/collection/components/map-tools/test/map-tools.spec.js +0 -37
  178. package/dist/collection/components/pci-calculator/test/pci-calculator.e2e.js +0 -29
  179. package/dist/collection/components/pci-calculator/test/pci-calculator.spec.js +0 -37
  180. package/dist/collection/components/pdf-download/test/pdf-download.e2e.js +0 -76
  181. package/dist/collection/components/pdf-download/test/pdf-download.spec.js +0 -107
  182. package/dist/collection/components/public-notification/test/public-notification.spec.js +0 -161
  183. package/dist/collection/components/refine-selection/test/refine-selection.e2e.js +0 -14
  184. package/dist/collection/components/refine-selection/test/refine-selection.spec.js +0 -22
  185. package/dist/collection/components/solution-configuration/test/solution-configuration.e2e.js +0 -36
  186. package/dist/collection/components/solution-configuration/test/solution-configuration.spec.js +0 -119
  187. package/dist/collection/components/solution-contents/test/solution-contents.e2e.js +0 -94
  188. package/dist/collection/components/solution-contents/test/solution-contents.spec.js +0 -143
  189. package/dist/collection/components/solution-item/test/solution-item.e2e.js +0 -36
  190. package/dist/collection/components/solution-item/test/solution-item.spec.js +0 -77
  191. package/dist/collection/components/solution-item-details/test/solution-item-details.e2e.js +0 -36
  192. package/dist/collection/components/solution-item-details/test/solution-item-details.spec.js +0 -142
  193. package/dist/collection/components/solution-item-icon/test/solution-item-icon.e2e.js +0 -29
  194. package/dist/collection/components/solution-item-icon/test/solution-item-icon.spec.js +0 -39
  195. package/dist/collection/components/solution-item-sharing/test/solution-item-sharing.e2e.js +0 -36
  196. package/dist/collection/components/solution-item-sharing/test/solution-item-sharing.spec.js +0 -54
  197. package/dist/collection/components/solution-organization-variables/test/solution-organization-variables.e2e.js +0 -36
  198. package/dist/collection/components/solution-organization-variables/test/solution-organization-variables.spec.js +0 -65
  199. package/dist/collection/components/solution-resource-item/test/solution-resource-item.e2e.js +0 -36
  200. package/dist/collection/components/solution-resource-item/test/solution-resource-item.spec.js +0 -55
  201. package/dist/collection/components/solution-template-data/test/solution-template-data.e2e.js +0 -36
  202. package/dist/collection/components/solution-template-data/test/solution-template-data.spec.js +0 -60
  203. package/dist/collection/components/solution-variables/test/solution-variables.e2e.js +0 -36
  204. package/dist/collection/components/solution-variables/test/solution-variables.spec.js +0 -131
  205. package/dist/esm/calcite-checkbox.entry.js +0 -132
  206. package/dist/solutions-components/p-07d7e11f.entry.js +0 -6
  207. package/dist/solutions-components/p-16362eb4.js +0 -36
  208. package/dist/solutions-components/p-17d176b5.js +0 -230
  209. package/dist/solutions-components/p-1d9a5198.entry.js +0 -37
  210. package/dist/solutions-components/p-3707d9bd.entry.js +0 -6
  211. package/dist/solutions-components/p-4dbe8337.entry.js +0 -6
  212. package/dist/solutions-components/p-5ffaaaf4.entry.js +0 -6
  213. package/dist/solutions-components/p-736e76fb.entry.js +0 -17
  214. package/dist/solutions-components/p-99f1a767.entry.js +0 -6
  215. /package/dist/collection/components/{solution-spatial-ref → spatial-ref}/spatialreferences.js +0 -0
  216. /package/dist/types/components/{solution-spatial-ref → spatial-ref}/spatialreferences.d.ts +0 -0
@@ -9,12 +9,131 @@ Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
10
  const index = require('./index-ee37804b.js');
11
11
  const dom = require('./dom-8d00cc3f.js');
12
- const conditionalSlot = require('./conditionalSlot-c989690a.js');
12
+ const form = require('./form-44895e53.js');
13
+ const guid = require('./guid-c351776c.js');
13
14
  const interactive = require('./interactive-7837b73d.js');
15
+ const key = require('./key-07312a4b.js');
16
+ const label = require('./label-39887629.js');
17
+ const loadable = require('./loadable-5d36908d.js');
18
+ const conditionalSlot = require('./conditionalSlot-c989690a.js');
14
19
  const resources = require('./resources-2278b321.js');
15
- require('./guid-c351776c.js');
16
- require('./observers-62ea89bc.js');
17
20
  require('./browser-596d8e1e.js');
21
+ require('./observers-62ea89bc.js');
22
+
23
+ const checkboxCss = ":host([disabled]){cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host([scale=s]){--calcite-checkbox-size:0.75rem}:host([scale=m]){--calcite-checkbox-size:var(--calcite-font-size--1)}:host([scale=l]){--calcite-checkbox-size:1rem}:host{position:relative;display:inline-flex;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}:host .check-svg,:host .toggle{inline-size:var(--calcite-checkbox-size);block-size:var(--calcite-checkbox-size)}:host .check-svg{pointer-events:none;box-sizing:border-box;display:block;overflow:hidden;background-color:var(--calcite-ui-foreground-1);fill:currentColor;stroke:currentColor;stroke-width:1;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);color:var(--calcite-ui-background)}:host([checked]) .check-svg,:host([indeterminate]) .check-svg{background-color:var(--calcite-ui-brand);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand)}:host([hovered]) .toggle .check-svg,:host .toggle:hover .check-svg{box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}.toggle{outline-color:transparent}.toggle:active,.toggle:focus,.toggle:focus-visible{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n 2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}:host([hidden]){display:none}[hidden]{display:none}";
24
+
25
+ const Checkbox = class {
26
+ constructor(hostRef) {
27
+ index.registerInstance(this, hostRef);
28
+ this.calciteInternalCheckboxBlur = index.createEvent(this, "calciteInternalCheckboxBlur", 6);
29
+ this.calciteCheckboxChange = index.createEvent(this, "calciteCheckboxChange", 6);
30
+ this.calciteInternalCheckboxFocus = index.createEvent(this, "calciteInternalCheckboxFocus", 6);
31
+ this.checkedPath = "M5.5 12L2 8.689l.637-.636L5.5 10.727l8.022-7.87.637.637z";
32
+ this.indeterminatePath = "M13 8v1H3V8z";
33
+ this.getPath = () => this.indeterminate ? this.indeterminatePath : this.checked ? this.checkedPath : "";
34
+ this.toggle = () => {
35
+ if (!this.disabled) {
36
+ this.checked = !this.checked;
37
+ this.setFocus();
38
+ this.indeterminate = false;
39
+ this.calciteCheckboxChange.emit();
40
+ }
41
+ };
42
+ this.keyDownHandler = (event) => {
43
+ if (key.isActivationKey(event.key)) {
44
+ this.toggle();
45
+ event.preventDefault();
46
+ }
47
+ };
48
+ this.clickHandler = () => {
49
+ if (this.disabled) {
50
+ return;
51
+ }
52
+ this.toggle();
53
+ };
54
+ //--------------------------------------------------------------------------
55
+ //
56
+ // Event Listeners
57
+ //
58
+ //--------------------------------------------------------------------------
59
+ this.onToggleBlur = () => {
60
+ this.calciteInternalCheckboxBlur.emit(false);
61
+ };
62
+ this.onToggleFocus = () => {
63
+ this.calciteInternalCheckboxFocus.emit(true);
64
+ };
65
+ this.onLabelClick = () => {
66
+ this.toggle();
67
+ };
68
+ this.checked = false;
69
+ this.disabled = false;
70
+ this.form = undefined;
71
+ this.guid = undefined;
72
+ this.hovered = false;
73
+ this.indeterminate = false;
74
+ this.label = undefined;
75
+ this.name = undefined;
76
+ this.required = false;
77
+ this.scale = "m";
78
+ this.value = undefined;
79
+ }
80
+ //--------------------------------------------------------------------------
81
+ //
82
+ // Public Methods
83
+ //
84
+ //--------------------------------------------------------------------------
85
+ /** Sets focus on the component. */
86
+ async setFocus() {
87
+ var _a;
88
+ await loadable.componentFocusable(this);
89
+ (_a = this.toggleEl) === null || _a === void 0 ? void 0 : _a.focus();
90
+ }
91
+ //--------------------------------------------------------------------------
92
+ //
93
+ // Private Methods
94
+ //
95
+ //--------------------------------------------------------------------------
96
+ syncHiddenFormInput(input) {
97
+ input.type = "checkbox";
98
+ }
99
+ //--------------------------------------------------------------------------
100
+ //
101
+ // Lifecycle
102
+ //
103
+ //--------------------------------------------------------------------------
104
+ connectedCallback() {
105
+ this.guid = this.el.id || `calcite-checkbox-${guid.guid()}`;
106
+ interactive.connectInteractive(this);
107
+ label.connectLabel(this);
108
+ form.connectForm(this);
109
+ }
110
+ disconnectedCallback() {
111
+ interactive.disconnectInteractive(this);
112
+ label.disconnectLabel(this);
113
+ form.disconnectForm(this);
114
+ }
115
+ componentWillLoad() {
116
+ loadable.setUpLoadableComponent(this);
117
+ }
118
+ componentDidLoad() {
119
+ loadable.setComponentLoaded(this);
120
+ }
121
+ componentDidRender() {
122
+ interactive.updateHostInteraction(this);
123
+ }
124
+ // --------------------------------------------------------------------------
125
+ //
126
+ // Render Methods
127
+ //
128
+ // --------------------------------------------------------------------------
129
+ render() {
130
+ return (index.h(index.Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, index.h("div", { "aria-checked": dom.toAriaBoolean(this.checked), "aria-label": label.getLabelText(this), class: "toggle", onBlur: this.onToggleBlur, onFocus: this.onToggleFocus, role: "checkbox", tabIndex: this.disabled ? undefined : 0,
131
+ // eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
132
+ ref: (toggleEl) => (this.toggleEl = toggleEl) }, index.h("svg", { "aria-hidden": "true", class: "check-svg", viewBox: "0 0 16 16" }, index.h("path", { d: this.getPath() })), index.h("slot", null)), index.h(form.HiddenFormInputSlot, { component: this })));
133
+ }
134
+ get el() { return index.getElement(this); }
135
+ };
136
+ Checkbox.style = checkboxCss;
18
137
 
19
138
  /*!
20
139
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
@@ -616,321 +735,6 @@ const TreeItem = class {
616
735
  };
617
736
  TreeItem.style = treeItemCss;
618
737
 
619
- const solutionItemIconCss = ".item-type-icon{pointer-events:none;display:block;height:1rem;box-sizing:border-box;margin-left:0.75rem;margin-right:0.75rem;min-width:0;flex-grow:0;flex-shrink:1}.item-type-icon-group-1-up>.block{flex-basis:calc(100% - 1.5rem);width:calc(100% - 1.5rem)}.item-type-icon-group-2-up>.block{flex-basis:calc(50% - 1.5rem);width:calc(50% - 1.5rem)}.item-type-icon-group-3-up>.block{flex-basis:calc(33.33333% - 1.5rem);width:calc(33.33333% - 1.5rem)}.item-type-icon-group-4-up>.block{flex-basis:calc(25% - 1.5rem);width:calc(25% - 1.5rem)}.item-type-icon-group-5-up>.block{flex-basis:calc(20% - 1.5rem);width:calc(20% - 1.5rem)}.item-type-icon-group-6-up>.block{flex-basis:calc(16.66666% - 1.5rem);width:calc(16.66666% - 1.5rem)}.item-type-icon-group-7-up>.block{flex-basis:calc(14.2857% - 1.5rem);width:calc(14.2857% - 1.5rem)}.item-type-icon-group-8-up>.block{flex-basis:calc(12.5% - 1.5rem);width:calc(12.5% - 1.5rem)}.tablet-block-group-1-up>.item-type-icon{flex-basis:calc(100% - 1.5rem);width:calc(100% - 1.5rem)}.tablet-block-group-2-up>.item-type-icon{flex-basis:calc(50% - 1.5rem);width:calc(50% - 1.5rem)}.tablet-block-group-3-up>.item-type-icon{flex-basis:calc(33.33333% - 1.5rem);width:calc(33.33333% - 1.5rem)}.tablet-block-group-4-up>.item-type-icon{flex-basis:calc(25% - 1.5rem);width:calc(25% - 1.5rem)}.tablet-block-group-5-up>.item-type-icon{flex-basis:calc(20% - 1.5rem);width:calc(20% - 1.5rem)}.tablet-block-group-6-up>.item-type-icon{flex-basis:calc(16.66666% - 1.5rem);width:calc(16.66666% - 1.5rem)}.tablet-block-group-7-up>.item-type-icon{flex-basis:calc(14.2857% - 1.5rem);width:calc(14.2857% - 1.5rem)}.tablet-block-group-8-up>.item-type-icon{flex-basis:calc(12.5% - 1.5rem);width:calc(12.5% - 1.5rem)}.phone-block-group-1-up>.item-type-icon{flex-basis:calc(100% - 1.5rem);width:calc(100% - 1.5rem)}.phone-block-group-2-up>.item-type-icon{flex-basis:calc(50% - 1.5rem);width:calc(50% - 1.5rem)}.phone-block-group-3-up>.item-type-icon{flex-basis:calc(33.33333% - 1.5rem);width:calc(33.33333% - 1.5rem)}.phone-block-group-4-up>.item-type-icon{flex-basis:calc(25% - 1.5rem);width:calc(25% - 1.5rem)}.phone-block-group-5-up>.item-type-icon{flex-basis:calc(20% - 1.5rem);width:calc(20% - 1.5rem)}.phone-block-group-6-up>.item-type-icon{flex-basis:calc(16.66666% - 1.5rem);width:calc(16.66666% - 1.5rem)}.phone-block-group-7-up>.item-type-icon{flex-basis:calc(14.2857% - 1.5rem);width:calc(14.2857% - 1.5rem)}.phone-block-group-8-up>.item-type-icon{flex-basis:calc(12.5% - 1.5rem);width:calc(12.5% - 1.5rem)}.code-face .item-type-icon{letter-spacing:0em;font-family:\"Consolas\", \"Andale Mono\", \"Lucida Console\", \"Monaco\", monospace;font-weight:400;font-style:normal}.code-face .item-type-icon b,.code-face .item-type-icon strong{font-weight:400}.code-italic .item-type-icon{letter-spacing:0em;font-family:\"Consolas\", \"Andale Mono\", \"Lucida Console\", \"Monaco\", monospace;font-weight:400;font-style:italic}.code-italic .item-type-icon b,.code-italic .item-type-icon strong{font-weight:400}.item-type-icon{margin-top:0.15em !important;min-width:16px;fill:currentColor;transform:rotate(360deg)}.item-type-icon-margin{margin-inline-end:0.375rem}";
620
-
621
- const SolutionItemIcon = class {
622
- constructor(hostRef) {
623
- index.registerInstance(this, hostRef);
624
- this.isPortal = false;
625
- this.type = "";
626
- this.typeKeywords = [];
627
- }
628
- //--------------------------------------------------------------------------
629
- //
630
- // Lifecycle
631
- //
632
- //--------------------------------------------------------------------------
633
- /**
634
- * Renders the component.
635
- */
636
- render() {
637
- return index.h("div", { title: this.type }, index.h("img", { class: "item-type-icon item-type-icon-margin", height: "16", src: this._getIconUrl(this.type, this.typeKeywords), width: "16" }));
638
- }
639
- //--------------------------------------------------------------------------
640
- //
641
- // Properties (protected)
642
- //
643
- //--------------------------------------------------------------------------
644
- //--------------------------------------------------------------------------
645
- //
646
- // Event Listeners
647
- //
648
- //--------------------------------------------------------------------------
649
- //--------------------------------------------------------------------------
650
- //
651
- // Events
652
- //
653
- //--------------------------------------------------------------------------
654
- //--------------------------------------------------------------------------
655
- //
656
- // Public Methods (async)
657
- //
658
- //--------------------------------------------------------------------------
659
- //--------------------------------------------------------------------------
660
- //
661
- // Private Methods
662
- //
663
- //--------------------------------------------------------------------------
664
- /**
665
- * This function was copied and slightly modified from the arcgis-portal-app.
666
- *
667
- * This will construct the path to the icon based on type and typeKeyword info.
668
- *
669
- * @param type The item type
670
- * @param typeKeywords The item typeKeywords
671
- */
672
- _getIconUrl(type, typeKeywords) {
673
- const itemType = (type && type.toLowerCase()) || "", imgDir = "./item-icons/", size = "16"; //for now we only support 16x16 pixel images
674
- let isHosted = false, isRouteLayer = false, isMarkupLayer = false, isTable = false, isSpatiotemporal = false, isRelational = false, imgName = "";
675
- typeKeywords = typeKeywords || [];
676
- if (itemType.indexOf("service") > 0 || itemType === "feature collection" || itemType === "kml" || itemType === "wms" || itemType === "wmts" || itemType === "wfs") {
677
- isHosted = typeKeywords.indexOf("Hosted Service") > -1;
678
- if (itemType === "feature service" || itemType === "feature collection" || itemType === "kml" || itemType === "wfs") {
679
- isTable = typeKeywords.indexOf("Table") > -1;
680
- isRouteLayer = typeKeywords.indexOf("Route Layer") > -1;
681
- isMarkupLayer = typeKeywords.indexOf("Markup") > -1;
682
- isSpatiotemporal = typeKeywords.indexOf("Spatiotemporal") !== -1;
683
- imgName = isSpatiotemporal && isTable ? "spatiotemporaltable" : (isTable ? "table" : (isRouteLayer ? "routelayer" : (isMarkupLayer ? "markup" : (isSpatiotemporal ? "spatiotemporal" : (isHosted ? "featureshosted" : "features")))));
684
- }
685
- else if (itemType === "map service" || itemType === "wms" || itemType === "wmts") {
686
- isSpatiotemporal = typeKeywords.indexOf("Spatiotemporal") !== -1;
687
- isRelational = typeKeywords.indexOf("Relational") !== -1;
688
- if (isSpatiotemporal || isRelational) {
689
- imgName = "mapimages";
690
- }
691
- else {
692
- imgName = (isHosted || typeKeywords.indexOf("Tiled") > -1 || itemType === "wmts") ? "maptiles" : "mapimages";
693
- }
694
- }
695
- else if (itemType === "scene service") {
696
- if (typeKeywords.indexOf("Line") > -1) {
697
- imgName = "sceneweblayerline";
698
- }
699
- else if (typeKeywords.indexOf("3DObject") > -1) {
700
- imgName = "sceneweblayermultipatch";
701
- }
702
- else if (typeKeywords.indexOf("Point") > -1) {
703
- imgName = "sceneweblayerpoint";
704
- }
705
- else if (typeKeywords.indexOf("IntegratedMesh") > -1) {
706
- imgName = "sceneweblayermesh";
707
- }
708
- else if (typeKeywords.indexOf("PointCloud") > -1) {
709
- imgName = "sceneweblayerpointcloud";
710
- }
711
- else if (typeKeywords.indexOf("Polygon") > -1) {
712
- imgName = "sceneweblayerpolygon";
713
- }
714
- else if (typeKeywords.indexOf("Building") > -1) {
715
- imgName = "sceneweblayerbuilding";
716
- }
717
- else {
718
- imgName = "sceneweblayer";
719
- }
720
- }
721
- else if (itemType === "image service") {
722
- imgName = typeKeywords.indexOf("Elevation 3D Layer") > -1 ? "elevationlayer" : (typeKeywords.indexOf("Tiled Imagery") > -1 ? "tiledimagerylayer" : "imagery");
723
- }
724
- else if (itemType === "stream service") {
725
- imgName = "streamlayer";
726
- }
727
- else if (itemType === "vector tile service") {
728
- imgName = "vectortile";
729
- }
730
- else if (itemType === "datastore catalog service") {
731
- imgName = "datastorecollection";
732
- }
733
- else if (itemType === "geocoding service") {
734
- imgName = "geocodeservice";
735
- }
736
- else if (itemType === "geoprocessing service") {
737
- imgName = (typeKeywords.indexOf("Web Tool") > -1 && (this.isPortal)) ? "tool" : "layers";
738
- }
739
- else {
740
- imgName = "layers";
741
- }
742
- }
743
- else if (itemType === "web map" || itemType === "cityengine web scene") {
744
- imgName = "maps";
745
- }
746
- else if (itemType === "web scene") {
747
- imgName = typeKeywords.indexOf("ViewingMode-Local") > -1 ? "webscenelocal" : "websceneglobal";
748
- }
749
- else if (itemType === "web mapping application" || itemType === "mobile application" || itemType === "application" ||
750
- itemType === "operation view" || itemType === "desktop application") {
751
- imgName = "apps";
752
- }
753
- else if (itemType === "map document" || itemType === "map package" || itemType === "published map" || itemType === "scene document" ||
754
- itemType === "globe document" || itemType === "basemap package" || itemType === "mobile basemap package" || itemType === "mobile map package" ||
755
- itemType === "project package" || itemType === "project template" || itemType === "pro map" || itemType === "layout" ||
756
- (itemType === "layer" && typeKeywords.indexOf("ArcGIS Pro") > -1) || (itemType === "explorer map" && typeKeywords.indexOf("Explorer Document"))) {
757
- imgName = "mapsgray";
758
- }
759
- else if (itemType === "service definition" || itemType === "csv" || itemType === "shapefile" || itemType === "cad drawing" || itemType === "geojson" || itemType === "360 vr experience" || itemType === "netcdf" || itemType === "administrative report") {
760
- imgName = "datafiles";
761
- }
762
- else if (itemType === "explorer add in" || itemType === "desktop add in" || itemType === "windows viewer add in" || itemType === "windows viewer configuration") {
763
- imgName = "appsgray";
764
- }
765
- else if (itemType === "arcgis pro add in" || itemType === "arcgis pro configuration") {
766
- imgName = "addindesktop";
767
- }
768
- else if (itemType === "rule package" || itemType === "file geodatabase" || itemType === "sqlite geodatabase" || itemType === "csv collection" || itemType === "kml collection" ||
769
- itemType === "windows mobile package" || itemType === "map template" || itemType === "desktop application template" || itemType === "gml" ||
770
- itemType === "arcpad package" || itemType === "code sample" || itemType === "form" || itemType === "document link" ||
771
- itemType === "operations dashboard add in" || itemType === "rules package" || itemType === "image" || itemType === "workflow manager package" ||
772
- (itemType === "explorer map" && typeKeywords.indexOf("Explorer Mapping Application") > -1 || typeKeywords.indexOf("Document") > -1)) {
773
- imgName = "datafilesgray";
774
- }
775
- else if (itemType === "network analysis service" || itemType === "geoprocessing service" ||
776
- itemType === "geodata service" || itemType === "geometry service" || itemType === "geoprocessing package" ||
777
- itemType === "locator package" || itemType === "geoprocessing sample" || itemType === "workflow manager service") {
778
- imgName = "toolsgray";
779
- }
780
- else if (itemType === "layer" || itemType === "layer package" || itemType === "explorer layer") {
781
- imgName = "layersgray";
782
- }
783
- else if (itemType === "scene package") {
784
- imgName = "scenepackage";
785
- }
786
- else if (itemType === "mobile scene package") {
787
- imgName = "mobilescenepackage";
788
- }
789
- else if (itemType === "tile package" || itemType === "compact tile package") {
790
- imgName = "tilepackage";
791
- }
792
- else if (itemType === "task file") {
793
- imgName = "taskfile";
794
- }
795
- else if (itemType === "report template") {
796
- imgName = "report-template";
797
- }
798
- else if (itemType === "statistical data collection") {
799
- imgName = "statisticaldatacollection";
800
- }
801
- else if (itemType === "insights workbook") {
802
- imgName = "workbook";
803
- }
804
- else if (itemType === "insights model") {
805
- imgName = "insightsmodel";
806
- }
807
- else if (itemType === "insights page") {
808
- imgName = "insightspage";
809
- }
810
- else if (itemType === "insights theme") {
811
- imgName = "insightstheme";
812
- }
813
- else if (itemType === "hub initiative") {
814
- imgName = "hubinitiative";
815
- }
816
- else if (itemType === "hub page") {
817
- imgName = "hubpage";
818
- }
819
- else if (itemType === "hub site application") {
820
- imgName = "hubsite";
821
- }
822
- else if (itemType === "hub event") {
823
- imgName = "hubevent";
824
- }
825
- else if (itemType === "relational database connection") {
826
- imgName = "relationaldatabaseconnection";
827
- }
828
- else if (itemType === "big data file share") {
829
- imgName = "datastorecollection";
830
- }
831
- else if (itemType === "image collection") {
832
- imgName = "imagecollection";
833
- }
834
- else if (itemType === "desktop style") {
835
- imgName = "desktopstyle";
836
- }
837
- else if (itemType === "style") {
838
- imgName = "style";
839
- }
840
- else if (itemType === "dashboard") {
841
- imgName = "dashboard";
842
- }
843
- else if (itemType === "raster function template") {
844
- imgName = "rasterprocessingtemplate";
845
- }
846
- else if (itemType === "vector tile package") {
847
- imgName = "vectortilepackage";
848
- }
849
- else if (itemType === "ortho mapping project") {
850
- imgName = "orthomappingproject";
851
- }
852
- else if (itemType === "ortho mapping template") {
853
- imgName = "orthomappingtemplate";
854
- }
855
- else if (itemType === "solution") {
856
- imgName = "solutions";
857
- }
858
- else if (itemType === "geopackage") {
859
- imgName = "geopackage";
860
- }
861
- else if (itemType === "deep learning package") {
862
- imgName = "deeplearningpackage";
863
- }
864
- else if (itemType === "real time analytic") {
865
- imgName = "realtimeanalytics";
866
- }
867
- else if (itemType === "big data analytic") {
868
- imgName = "bigdataanalytics";
869
- }
870
- else if (itemType === "feed") {
871
- imgName = "feed";
872
- }
873
- else if (itemType === "excalibur imagery project") {
874
- imgName = "excaliburimageryproject";
875
- }
876
- else if (itemType === "notebook") {
877
- imgName = "notebook";
878
- }
879
- else if (itemType === "storymap") {
880
- imgName = "storymap";
881
- }
882
- else if (itemType === "survey123 add in") {
883
- imgName = "survey123addin";
884
- }
885
- else if (itemType === "mission") {
886
- imgName = "mission";
887
- }
888
- else if (itemType === "mission report") {
889
- imgName = "missionreport";
890
- }
891
- else if (itemType === "quickcapture project") {
892
- imgName = "quickcaptureproject";
893
- }
894
- else if (itemType === "pro report") {
895
- imgName = "proreport";
896
- }
897
- else if (itemType === "urban model") {
898
- imgName = "urbanmodel";
899
- }
900
- else if (itemType === "web experience") {
901
- imgName = "experiencebuilder";
902
- }
903
- else if (itemType === "web experience template") {
904
- imgName = "webexperiencetemplate";
905
- }
906
- else if (itemType === "workflow") {
907
- imgName = "workflow";
908
- }
909
- else if (itemType === "kernel gateway connection") {
910
- imgName = "kernelgatewayconnection";
911
- }
912
- else if (itemType === "insights script") {
913
- imgName = "insightsscript";
914
- }
915
- else if (itemType === "hub initiative template") {
916
- imgName = "hubinitiativetemplate";
917
- }
918
- else if (itemType === "storymap theme") {
919
- imgName = "storymaptheme";
920
- }
921
- else if (itemType === "group") {
922
- imgName = "group";
923
- }
924
- else {
925
- imgName = "maps";
926
- }
927
- return imgName ? index.getAssetPath(imgDir + imgName + size + ".png") : null;
928
- }
929
- static get assetsDirs() { return ["item-icons"]; }
930
- get el() { return index.getElement(this); }
931
- };
932
- SolutionItemIcon.style = solutionItemIconCss;
933
-
738
+ exports.calcite_checkbox = Checkbox;
934
739
  exports.calcite_tree = Tree;
935
740
  exports.calcite_tree_item = TreeItem;
936
- exports.solution_item_icon = SolutionItemIcon;
@@ -25,7 +25,7 @@ const debounce = require('./debounce-30afab47.js');
25
25
  const conditionalSlot = require('./conditionalSlot-c989690a.js');
26
26
  const key = require('./key-07312a4b.js');
27
27
  const locale$1 = require('./locale-67f5f6b6.js');
28
- const mapViewUtils = require('./mapViewUtils-a2884698.js');
28
+ const mapViewUtils = require('./mapViewUtils-786a219b.js');
29
29
  const publicNotificationStore = require('./publicNotificationStore-610bd880.js');
30
30
  require('./resources-2278b321.js');
31
31
  require('./browser-596d8e1e.js');
@@ -23,8 +23,9 @@ const sortableComponent = require('./sortableComponent-c4833f8d.js');
23
23
  const resources$2 = require('./resources-dc8e5f07.js');
24
24
  const resources$1 = require('./resources-d000455c.js');
25
25
  const locale$1 = require('./locale-67f5f6b6.js');
26
- const solutionStore = require('./solution-store-c443e657.js');
26
+ const solutionStore = require('./solution-store-2414dd8a.js');
27
27
  const interfaces = require('./interfaces-000be6de.js');
28
+ const solutionResource = require('./solution-resource-f9e3b289.js');
28
29
  require('./key-07312a4b.js');
29
30
  require('./browser-596d8e1e.js');
30
31
  require('./array-a3f9baa5.js');
@@ -2393,7 +2394,7 @@ const SolutionResourceItem = class {
2393
2394
  */
2394
2395
  _renderResourceList() {
2395
2396
  return (index.h("calcite-value-list", { multiple: true }, this.resourceFilePaths.reduce((prev, cur) => {
2396
- if (cur.type !== solutionStore.EFileType.Thumbnail) {
2397
+ if (cur.type !== solutionResource.EFileType.Thumbnail) {
2397
2398
  prev.push(this._renderResource(cur));
2398
2399
  }
2399
2400
  return prev;
@@ -2557,7 +2558,7 @@ const SolutionResourceItem = class {
2557
2558
  ...this.resourceFilePaths,
2558
2559
  {
2559
2560
  url,
2560
- type: solutionStore.EFileType.Data,
2561
+ type: solutionResource.EFileType.Data,
2561
2562
  folder: undefined,
2562
2563
  filename,
2563
2564
  blob: files[0],
@@ -9,9 +9,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
10
  const index = require('./index-ee37804b.js');
11
11
  const locale = require('./locale-67f5f6b6.js');
12
- const mapViewUtils = require('./mapViewUtils-a2884698.js');
12
+ const mapViewUtils = require('./mapViewUtils-786a219b.js');
13
13
  const loadModules = require('./loadModules-f6df8d6a.js');
14
- const downloadUtils = require('./downloadUtils-34a515ad.js');
14
+ const downloadUtils = require('./downloadUtils-121fd7ff.js');
15
15
  require('./_commonjsHelpers-384729db.js');
16
16
  require('./interfaces-000be6de.js');
17
17
  require('./clean-url-d5326abb.js');
@@ -81,7 +81,7 @@ const CardManager = class {
81
81
  var _a, _b;
82
82
  const featuresClass = ((_a = this._graphics) === null || _a === void 0 ? void 0 : _a.length) > 0 ? "" : "display-none";
83
83
  const messageClass = ((_b = this._graphics) === null || _b === void 0 ? void 0 : _b.length) > 0 ? "display-none" : "";
84
- return (index.h(index.Host, null, index.h("div", { class: "overflow-auto height-full" }, index.h("calcite-shell", { class: "position-relative " + featuresClass }, index.h("div", null, index.h("info-card", { graphics: this._graphics, isLoading: this._cardLoading, mapView: this.mapView, zoomAndScrollToSelected: this.zoomAndScrollToSelected }))), index.h("div", { class: "padding-1 " + messageClass }, index.h("calcite-notice", { icon: "table", open: true }, index.h("div", { slot: "message" }, this._translations.selectFeaturesToStart))))));
84
+ return (index.h(index.Host, null, index.h("div", { class: "overflow-auto height-full" }, index.h("calcite-shell", { class: "position-relative " + featuresClass }, index.h("div", null, index.h("info-card", { graphics: this._graphics, isLoading: this._cardLoading, mapView: this.mapView, zoomAndScrollToSelected: this.zoomAndScrollToSelected }))), index.h("calcite-shell", { class: "position-relative " + messageClass }, index.h("div", { class: "padding-1" }, index.h("calcite-notice", { icon: "table", open: true }, index.h("div", { slot: "message" }, this._translations.selectFeaturesToStart)))))));
85
85
  }
86
86
  //--------------------------------------------------------------------------
87
87
  //
@@ -102,12 +102,13 @@ const CardManager = class {
102
102
  };
103
103
  CardManager.style = cardManagerCss;
104
104
 
105
- const layerTableCss = ":host{display:block}.height-full{height:100%}.width-full{width:100%}.display-flex{display:flex}.table-border{border:1px solid var(--calcite-ui-border-2)}.border-end{border-inline-end:1px solid var(--calcite-ui-border-2)}.padding-5{padding:5px}.padding-end-1{padding-inline-end:1rem}.height-51{height:51px}.bottom-left{position:absolute;left:0;bottom:0}html[dir=\"rtl\"] .bottom-left{position:absolute;right:0;bottom:0}.background{background-color:var(--calcite-ui-background)}.text-color{color:var(--calcite-ui-text-1)}.align-center{align-items:center}.danger-color{color:var(--calcite-ui-danger)}";
105
+ const layerTableCss = ":host{display:block}.height-full{height:100%}.width-full{width:100%}.display-flex{display:flex}.table-border{border:1px solid var(--calcite-ui-border-2)}.border-end{border-inline-end:1px solid var(--calcite-ui-border-2)}.padding-5{padding:5px}.padding-end-1{padding-inline-end:1rem}.height-51{height:51px}.bottom-left{position:absolute;left:0;bottom:0}html[dir=\"rtl\"] .bottom-left{position:absolute;right:0;bottom:0}.background{background-color:var(--calcite-ui-background)}.text-color{color:var(--calcite-ui-text-1)}.align-center{align-items:center}.danger-color{color:var(--calcite-ui-danger)}.esri-feature-table vaadin-grid{border:none !important}vaadin-grid-cell-content{padding:var(--lumo-space-xs) var(--lumo-space-m) !important}";
106
106
 
107
107
  const LayerTable = class {
108
108
  constructor(hostRef) {
109
109
  index.registerInstance(this, hostRef);
110
110
  this.featureSelectionChange = index.createEvent(this, "featureSelectionChange", 7);
111
+ this.openFilterOptions = index.createEvent(this, "openFilterOptions", 7);
111
112
  /**
112
113
  * number[]: A list of all IDs for the current layer
113
114
  */
@@ -286,9 +287,10 @@ const LayerTable = class {
286
287
  * @returns The dom node that contains the controls
287
288
  */
288
289
  _getTableControlRow(slot) {
290
+ var _a;
289
291
  const featuresSelected = this._selectedIndexes.length > 0;
290
292
  const id = "more-table-options";
291
- return (index.h("div", { class: "display-flex table-border height-51", slot: slot }, index.h("calcite-action-bar", { expandDisabled: true, expanded: true, layout: "horizontal" }, index.h("div", { class: "border-end" }, index.h("map-layer-picker", { appearance: "transparent", mapView: this.mapView, onLayerSelectionChange: (evt) => this._layerSelectionChanged(evt), onlyShowUpdatableLayers: this.onlyShowUpdatableLayers, placeholderIcon: "layers", scale: "l", type: "dropdown" })), this._getAction("zoom-to-object", this._translations.zoom, () => this._zoom(), !featuresSelected), this._getAction("filter", this._translations.filters, () => this._filter(), false), this._deleteEnabled ? this._getDangerAction("trash", this._translations.delete, () => this._delete(), !featuresSelected) : undefined, this._getAction("erase", this._translations.clearSelection, () => this._clearSelection(), !featuresSelected)), index.h("calcite-dropdown", { disabled: this._layer === undefined }, index.h("calcite-action", { appearance: "solid", id: id, label: "", slot: "trigger", text: "" }, index.h("calcite-button", { appearance: "transparent", iconEnd: "chevron-down", kind: "neutral" }, this._translations.more)), index.h("calcite-tooltip", { label: "", placement: "bottom", "reference-element": id }, index.h("span", null, this._translations.moreOptions)), index.h("calcite-dropdown-group", { "selection-mode": "none" }, index.h("calcite-dropdown-item", { iconStart: "list-check-all", onClick: () => this._selectAll() }, this._translations.selectAll), index.h("calcite-dropdown-item", { iconStart: "selected-items-filter", onClick: () => this._toggleShowSelected() }, this._showOnlySelected ? this._translations.showAll :
293
+ return (index.h("div", { class: "display-flex table-border height-51", slot: slot }, index.h("calcite-action-bar", { expandDisabled: true, expanded: true, layout: "horizontal" }, index.h("div", { class: "border-end" }, index.h("map-layer-picker", { appearance: "transparent", mapView: this.mapView, onLayerSelectionChange: (evt) => this._layerSelectionChanged(evt), onlyShowUpdatableLayers: this.onlyShowUpdatableLayers, placeholderIcon: "layers", scale: "l", type: "dropdown" })), this._getAction("zoom-to-object", this._translations.zoom, () => this._zoom(), !featuresSelected), ((_a = this.mapInfo) === null || _a === void 0 ? void 0 : _a.filters) ? this._getAction("filter", this._translations.filters, () => this._filter(), false) : undefined, this._deleteEnabled ? this._getDangerAction("trash", this._translations.delete, () => this._delete(), !featuresSelected) : undefined, this._getAction("erase", this._translations.clearSelection, () => this._clearSelection(), !featuresSelected)), index.h("calcite-dropdown", { disabled: this._layer === undefined }, index.h("calcite-action", { appearance: "solid", id: id, label: "", slot: "trigger", text: "" }, index.h("calcite-button", { appearance: "transparent", iconEnd: "chevron-down", kind: "neutral" }, this._translations.more)), index.h("calcite-tooltip", { label: "", placement: "bottom", "reference-element": id }, index.h("span", null, this._translations.moreOptions)), index.h("calcite-dropdown-group", { "selection-mode": "none" }, index.h("calcite-dropdown-item", { iconStart: "list-check-all", onClick: () => this._selectAll() }, this._translations.selectAll), index.h("calcite-dropdown-item", { iconStart: "selected-items-filter", onClick: () => this._toggleShowSelected() }, this._showOnlySelected ? this._translations.showAll :
292
294
  this._translations.showSelected), index.h("calcite-dropdown-item", { iconStart: "compare", onClick: () => this._switchSelected() }, this._translations.switchSelected), index.h("calcite-dropdown-item", { iconStart: "refresh", onClick: () => this._refresh() }, this._translations.refresh), index.h("calcite-dropdown-item", { iconStart: "export", onClick: () => void this._exportToCSV() }, this._translations.exportCSV)))));
293
295
  }
294
296
  /**
@@ -539,7 +541,7 @@ const LayerTable = class {
539
541
  * @returns void
540
542
  */
541
543
  _filter() {
542
- alert("do whatever this button is supposed to do");
544
+ this.openFilterOptions.emit();
543
545
  }
544
546
  /**
545
547
  * Select all rows that are not currently selectd
@@ -712,6 +714,7 @@ const MapCard = class {
712
714
  */
713
715
  this._loadedId = "";
714
716
  this.enableLegend = undefined;
717
+ this.enableFloorFilter = undefined;
715
718
  this.enableFullscreen = undefined;
716
719
  this.enableSearch = undefined;
717
720
  this.enableBasemap = undefined;
@@ -742,7 +745,7 @@ const MapCard = class {
742
745
  * Renders the component.
743
746
  */
744
747
  render() {
745
- return (index.h(index.Host, null, index.h("map-picker", { mapInfos: this.mapInfos }), index.h("div", { class: "map-height", ref: (el) => (this._mapDiv = el) }), index.h("map-tools", { basemapConfig: this.basemapConfig, class: "box-shadow", enableBasemap: this.enableBasemap, enableFullscreen: this.enableFullscreen, enableLegend: this.enableLegend, enableSearch: this.enableSearch, mapView: this.mapView, ref: (el) => this._mapTools = el, searchConfiguration: this._searchConfiguration })));
748
+ return (index.h(index.Host, null, index.h("map-picker", { mapInfos: this.mapInfos }), index.h("div", { class: "map-height", ref: (el) => (this._mapDiv = el) }), index.h("map-tools", { basemapConfig: this.basemapConfig, class: "box-shadow", enableBasemap: this.enableBasemap, enableFloorFilter: this.enableFloorFilter, enableFullscreen: this.enableFullscreen, enableLegend: this.enableLegend, enableSearch: this.enableSearch, mapView: this.mapView, ref: (el) => this._mapTools = el, searchConfiguration: this._searchConfiguration })));
746
749
  }
747
750
  //--------------------------------------------------------------------------
748
751
  //
@@ -3,6 +3,11 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
+ 'use strict';
7
+
8
+ require('./solution-resource-f9e3b289.js');
9
+ require('./interfaces-000be6de.js');
10
+
6
11
  /** @license
7
12
  * Copyright 2022 Esri
8
13
  *
@@ -18,12 +23,15 @@
18
23
  * See the License for the specific language governing permissions and
19
24
  * limitations under the License.
20
25
  */
21
- import { newE2EPage } from "@stencil/core/testing";
22
- xdescribe('basemap-gallery', () => {
23
- it('renders', async () => {
24
- const page = await newE2EPage();
25
- await page.setContent('<basemap-gallery></basemap-gallery>');
26
- const element = await page.find('basemap-gallery');
27
- expect(element).toHaveClass('hydrated');
28
- });
29
- });
26
+ /**
27
+ * Get an array from a list of nodes
28
+ *
29
+ * @param nodeList list of nodes
30
+ *
31
+ * @returns array of nodes
32
+ */
33
+ function nodeListToArray(nodeList) {
34
+ return Array.isArray(nodeList) ? nodeList : Array.from(nodeList);
35
+ }
36
+
37
+ exports.nodeListToArray = nodeListToArray;