@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
@@ -5,24 +5,25 @@
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
7
7
  import { l as loadModules } from './loadModules.js';
8
- import { d as defineCustomElement$n } from './basemap-gallery2.js';
9
- import { d as defineCustomElement$m } from './action.js';
10
- import { d as defineCustomElement$l } from './action-bar.js';
11
- import { d as defineCustomElement$k } from './action-group.js';
12
- import { d as defineCustomElement$j } from './action-menu.js';
13
- import { d as defineCustomElement$i } from './button.js';
14
- import { d as defineCustomElement$h } from './filter2.js';
15
- import { d as defineCustomElement$g } from './handle.js';
16
- import { d as defineCustomElement$f } from './icon.js';
17
- import { d as defineCustomElement$e } from './input.js';
18
- import { d as defineCustomElement$d } from './list.js';
19
- import { d as defineCustomElement$c } from './list-item2.js';
20
- import { d as defineCustomElement$b } from './loader.js';
21
- import { d as defineCustomElement$a } from './popover.js';
22
- import { d as defineCustomElement$9 } from './progress.js';
23
- import { d as defineCustomElement$8 } from './scrim.js';
24
- import { d as defineCustomElement$7 } from './stack.js';
25
- import { d as defineCustomElement$6 } from './tooltip.js';
8
+ import { d as defineCustomElement$o } from './basemap-gallery2.js';
9
+ import { d as defineCustomElement$n } from './action.js';
10
+ import { d as defineCustomElement$m } from './action-bar.js';
11
+ import { d as defineCustomElement$l } from './action-group.js';
12
+ import { d as defineCustomElement$k } from './action-menu.js';
13
+ import { d as defineCustomElement$j } from './button.js';
14
+ import { d as defineCustomElement$i } from './filter2.js';
15
+ import { d as defineCustomElement$h } from './handle.js';
16
+ import { d as defineCustomElement$g } from './icon.js';
17
+ import { d as defineCustomElement$f } from './input.js';
18
+ import { d as defineCustomElement$e } from './list.js';
19
+ import { d as defineCustomElement$d } from './list-item2.js';
20
+ import { d as defineCustomElement$c } from './loader.js';
21
+ import { d as defineCustomElement$b } from './popover.js';
22
+ import { d as defineCustomElement$a } from './progress.js';
23
+ import { d as defineCustomElement$9 } from './scrim.js';
24
+ import { d as defineCustomElement$8 } from './stack.js';
25
+ import { d as defineCustomElement$7 } from './tooltip.js';
26
+ import { d as defineCustomElement$6 } from './floor-filter2.js';
26
27
  import { d as defineCustomElement$5 } from './map-fullscreen2.js';
27
28
  import { d as defineCustomElement$4 } from './map-legend2.js';
28
29
  import { d as defineCustomElement$3 } from './map-picker2.js';
@@ -42,6 +43,7 @@ const MapCard = /*@__PURE__*/ proxyCustomElement(class MapCard extends HTMLEleme
42
43
  */
43
44
  this._loadedId = "";
44
45
  this.enableLegend = undefined;
46
+ this.enableFloorFilter = undefined;
45
47
  this.enableFullscreen = undefined;
46
48
  this.enableSearch = undefined;
47
49
  this.enableBasemap = undefined;
@@ -72,7 +74,7 @@ const MapCard = /*@__PURE__*/ proxyCustomElement(class MapCard extends HTMLEleme
72
74
  * Renders the component.
73
75
  */
74
76
  render() {
75
- return (h(Host, null, h("map-picker", { mapInfos: this.mapInfos }), h("div", { class: "map-height", ref: (el) => (this._mapDiv = el) }), 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 })));
77
+ return (h(Host, null, h("map-picker", { mapInfos: this.mapInfos }), h("div", { class: "map-height", ref: (el) => (this._mapDiv = el) }), 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 })));
76
78
  }
77
79
  //--------------------------------------------------------------------------
78
80
  //
@@ -140,6 +142,7 @@ const MapCard = /*@__PURE__*/ proxyCustomElement(class MapCard extends HTMLEleme
140
142
  static get style() { return mapCardCss; }
141
143
  }, [0, "map-card", {
142
144
  "enableLegend": [4, "enable-legend"],
145
+ "enableFloorFilter": [4, "enable-floor-filter"],
143
146
  "enableFullscreen": [4, "enable-fullscreen"],
144
147
  "enableSearch": [4, "enable-search"],
145
148
  "enableBasemap": [4, "enable-basemap"],
@@ -153,7 +156,7 @@ function defineCustomElement() {
153
156
  if (typeof customElements === "undefined") {
154
157
  return;
155
158
  }
156
- const components = ["map-card", "basemap-gallery", "calcite-action", "calcite-action-bar", "calcite-action-group", "calcite-action-menu", "calcite-button", "calcite-filter", "calcite-handle", "calcite-icon", "calcite-input", "calcite-list", "calcite-list-item", "calcite-loader", "calcite-popover", "calcite-progress", "calcite-scrim", "calcite-stack", "calcite-tooltip", "map-fullscreen", "map-legend", "map-picker", "map-search", "map-tools"];
159
+ const components = ["map-card", "basemap-gallery", "calcite-action", "calcite-action-bar", "calcite-action-group", "calcite-action-menu", "calcite-button", "calcite-filter", "calcite-handle", "calcite-icon", "calcite-input", "calcite-list", "calcite-list-item", "calcite-loader", "calcite-popover", "calcite-progress", "calcite-scrim", "calcite-stack", "calcite-tooltip", "floor-filter", "map-fullscreen", "map-legend", "map-picker", "map-search", "map-tools"];
157
160
  components.forEach(tagName => { switch (tagName) {
158
161
  case "map-card":
159
162
  if (!customElements.get(tagName)) {
@@ -162,90 +165,95 @@ function defineCustomElement() {
162
165
  break;
163
166
  case "basemap-gallery":
164
167
  if (!customElements.get(tagName)) {
165
- defineCustomElement$n();
168
+ defineCustomElement$o();
166
169
  }
167
170
  break;
168
171
  case "calcite-action":
169
172
  if (!customElements.get(tagName)) {
170
- defineCustomElement$m();
173
+ defineCustomElement$n();
171
174
  }
172
175
  break;
173
176
  case "calcite-action-bar":
174
177
  if (!customElements.get(tagName)) {
175
- defineCustomElement$l();
178
+ defineCustomElement$m();
176
179
  }
177
180
  break;
178
181
  case "calcite-action-group":
179
182
  if (!customElements.get(tagName)) {
180
- defineCustomElement$k();
183
+ defineCustomElement$l();
181
184
  }
182
185
  break;
183
186
  case "calcite-action-menu":
184
187
  if (!customElements.get(tagName)) {
185
- defineCustomElement$j();
188
+ defineCustomElement$k();
186
189
  }
187
190
  break;
188
191
  case "calcite-button":
189
192
  if (!customElements.get(tagName)) {
190
- defineCustomElement$i();
193
+ defineCustomElement$j();
191
194
  }
192
195
  break;
193
196
  case "calcite-filter":
194
197
  if (!customElements.get(tagName)) {
195
- defineCustomElement$h();
198
+ defineCustomElement$i();
196
199
  }
197
200
  break;
198
201
  case "calcite-handle":
199
202
  if (!customElements.get(tagName)) {
200
- defineCustomElement$g();
203
+ defineCustomElement$h();
201
204
  }
202
205
  break;
203
206
  case "calcite-icon":
204
207
  if (!customElements.get(tagName)) {
205
- defineCustomElement$f();
208
+ defineCustomElement$g();
206
209
  }
207
210
  break;
208
211
  case "calcite-input":
209
212
  if (!customElements.get(tagName)) {
210
- defineCustomElement$e();
213
+ defineCustomElement$f();
211
214
  }
212
215
  break;
213
216
  case "calcite-list":
214
217
  if (!customElements.get(tagName)) {
215
- defineCustomElement$d();
218
+ defineCustomElement$e();
216
219
  }
217
220
  break;
218
221
  case "calcite-list-item":
219
222
  if (!customElements.get(tagName)) {
220
- defineCustomElement$c();
223
+ defineCustomElement$d();
221
224
  }
222
225
  break;
223
226
  case "calcite-loader":
224
227
  if (!customElements.get(tagName)) {
225
- defineCustomElement$b();
228
+ defineCustomElement$c();
226
229
  }
227
230
  break;
228
231
  case "calcite-popover":
229
232
  if (!customElements.get(tagName)) {
230
- defineCustomElement$a();
233
+ defineCustomElement$b();
231
234
  }
232
235
  break;
233
236
  case "calcite-progress":
234
237
  if (!customElements.get(tagName)) {
235
- defineCustomElement$9();
238
+ defineCustomElement$a();
236
239
  }
237
240
  break;
238
241
  case "calcite-scrim":
239
242
  if (!customElements.get(tagName)) {
240
- defineCustomElement$8();
243
+ defineCustomElement$9();
241
244
  }
242
245
  break;
243
246
  case "calcite-stack":
244
247
  if (!customElements.get(tagName)) {
245
- defineCustomElement$7();
248
+ defineCustomElement$8();
246
249
  }
247
250
  break;
248
251
  case "calcite-tooltip":
252
+ if (!customElements.get(tagName)) {
253
+ defineCustomElement$7();
254
+ }
255
+ break;
256
+ case "floor-filter":
249
257
  if (!customElements.get(tagName)) {
250
258
  defineCustomElement$6();
251
259
  }
@@ -23,7 +23,7 @@ import { d as defineCustomElement$3 } from './scrim.js';
23
23
  import { d as defineCustomElement$2 } from './stack.js';
24
24
  import { d as defineCustomElement$1 } from './tooltip.js';
25
25
 
26
- const mapPickerCss = ":host{display:block}.width-full{width:100%}.height-full{height:100%}.display-flex{display:flex}.border-bottom-1{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}.action-bar-size{height:51px;width:100%}.map-list{position:absolute;display:flex;flex-direction:column;overflow:hidden;animation:calcite-scrim-fade-in var(--calcite-internal-animation-timing-medium) ease-in-out;background-color:var(--calcite-ui-background);z-index:1000;width:100%;height:-moz-fit-content;height:fit-content}.display-none{display:none}.action-bar-color{background-color:var(--calcite-ui-border-3) !important}.align-center{align-items:center}";
26
+ const mapPickerCss = ":host{display:block}.width-full{width:100%}.height-full{height:100%}.display-flex{display:flex}.border-bottom-1{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}.action-bar-size{height:51px;width:100%}.map-list{position:absolute;display:flex;flex-direction:column;overflow:hidden;animation:calcite-scrim-fade-in var(--calcite-internal-animation-timing-medium) ease-in-out;background-color:var(--calcite-ui-background);z-index:1000;width:100%;height:-moz-fit-content;height:fit-content}.display-none{display:none}.align-center{align-items:center}";
27
27
 
28
28
  const MapPicker = /*@__PURE__*/ proxyCustomElement(class MapPicker extends HTMLElement {
29
29
  constructor() {
@@ -125,7 +125,7 @@ const MapPicker = /*@__PURE__*/ proxyCustomElement(class MapPicker extends HTMLE
125
125
  * @protected
126
126
  */
127
127
  _getToolbar() {
128
- return (h("div", { class: "display-flex" }, h("calcite-action-bar", { class: "action-bar-color border-bottom-1 action-bar-size", "expand-disabled": true, layout: "horizontal", slot: "header" }, this._getMapPicker())));
128
+ return (h("div", { class: "display-flex" }, h("calcite-action-bar", { class: "border-bottom-1 action-bar-size", "expand-disabled": true, layout: "horizontal", slot: "header" }, this._getMapPicker())));
129
129
  }
130
130
  /**
131
131
  * Get a pick list for all maps in mapInfos
@@ -5,11 +5,12 @@
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
7
7
  import { g as getLocaleComponentStrings } from './locale.js';
8
- import { d as defineCustomElement$8 } from './basemap-gallery2.js';
9
- import { d as defineCustomElement$7 } from './action.js';
10
- import { d as defineCustomElement$6 } from './icon.js';
11
- import { d as defineCustomElement$5 } from './loader.js';
12
- import { d as defineCustomElement$4 } from './tooltip.js';
8
+ import { d as defineCustomElement$9 } from './basemap-gallery2.js';
9
+ import { d as defineCustomElement$8 } from './action.js';
10
+ import { d as defineCustomElement$7 } from './icon.js';
11
+ import { d as defineCustomElement$6 } from './loader.js';
12
+ import { d as defineCustomElement$5 } from './tooltip.js';
13
+ import { d as defineCustomElement$4 } from './floor-filter2.js';
13
14
  import { d as defineCustomElement$3 } from './map-fullscreen2.js';
14
15
  import { d as defineCustomElement$2 } from './map-legend2.js';
15
16
  import { d as defineCustomElement$1 } from './map-search2.js';
@@ -22,6 +23,7 @@ const MapTools = /*@__PURE__*/ proxyCustomElement(class MapTools extends HTMLEle
22
23
  this.__registerHost();
23
24
  this.__attachShadow();
24
25
  this.enableLegend = undefined;
26
+ this.enableFloorFilter = undefined;
25
27
  this.enableFullscreen = undefined;
26
28
  this.enableSearch = undefined;
27
29
  this.enableBasemap = undefined;
@@ -32,6 +34,7 @@ const MapTools = /*@__PURE__*/ proxyCustomElement(class MapTools extends HTMLEle
32
34
  this._translations = undefined;
33
35
  this._showTools = true;
34
36
  this._showBasemapWidget = false;
37
+ this._showFloorFilter = false;
35
38
  this._showFullscreen = false;
36
39
  this._showLegendWidget = false;
37
40
  this._showSearchWidget = false;
@@ -58,6 +61,21 @@ const MapTools = /*@__PURE__*/ proxyCustomElement(class MapTools extends HTMLEle
58
61
  /**
59
62
  * When the _showBasemapWidget property is true display the basemap gallery
60
63
  */
64
+ async _showFloorFilterWatchHandler(v) {
65
+ const widget = this._floorFilterElement.floorFilterWidget;
66
+ if (v) {
67
+ this.mapView.ui.add(widget, {
68
+ position: "top-right",
69
+ index: 1
70
+ });
71
+ }
72
+ else {
73
+ this.mapView.ui.remove(widget);
74
+ }
75
+ }
76
+ /**
77
+ * When the _showFullscreen property is true the app will consume the full screen
78
+ */
61
79
  async _showFullscreenWatchHandler(v) {
62
80
  const fs = this._fullscreenElement.fullscreenWidget;
63
81
  if (v) {
@@ -125,6 +143,7 @@ const MapTools = /*@__PURE__*/ proxyCustomElement(class MapTools extends HTMLEle
125
143
  const searchClass = this._showSearchWidget ? "" : "display-none";
126
144
  const basemapClass = this._showBasemapWidget ? "" : "display-none";
127
145
  const legendClass = this._showLegendWidget ? "" : "display-none";
146
+ const floorFilterClass = this._showFloorFilter ? "" : "display-none";
128
147
  const fullscreenClass = this._showFullscreen ? "" : "display-none";
129
148
  const fullscreenIcon = this._showFullscreen ? "full-screen-exit" : "full-screen";
130
149
  const fullscreenTip = this._showFullscreen ? this._translations.exitFullscreen : this._translations.enterFullscreen;
@@ -138,7 +157,9 @@ const MapTools = /*@__PURE__*/ proxyCustomElement(class MapTools extends HTMLEle
138
157
  this._getActionGroup(fullscreenIcon, false, fullscreenTip, () => this._expand()) :
139
158
  undefined, this.enableBasemap ?
140
159
  this._getActionGroup("basemap", false, this._translations.basemap, () => this._toggleBasemapPicker()) :
141
- undefined)), h("basemap-gallery", { basemapConfig: this.basemapConfig, class: basemapClass, mapView: this.mapView, ref: (el) => { this._basemapElement = el; } }), h("map-search", { class: searchClass, mapView: this.mapView, ref: (el) => { this._searchElement = el; }, searchConfiguration: this.searchConfiguration }), h("map-legend", { class: legendClass, mapView: this.mapView, ref: (el) => { this._legendElement = el; } }), h("map-fullscreen", { class: fullscreenClass, mapView: this.mapView, ref: (el) => { this._fullscreenElement = el; } })));
160
+ undefined, this.enableFloorFilter ?
161
+ this._getActionGroup("urban-model", false, this._translations.floorFilter, () => this._toggleFloorFilter()) :
162
+ undefined)), h("basemap-gallery", { basemapConfig: this.basemapConfig, class: basemapClass, mapView: this.mapView, ref: (el) => { this._basemapElement = el; } }), h("map-search", { class: searchClass, mapView: this.mapView, ref: (el) => { this._searchElement = el; }, searchConfiguration: this.searchConfiguration }), h("map-legend", { class: legendClass, mapView: this.mapView, ref: (el) => { this._legendElement = el; } }), h("map-fullscreen", { class: fullscreenClass, mapView: this.mapView, ref: (el) => { this._fullscreenElement = el; } }), h("floor-filter", { class: floorFilterClass, mapView: this.mapView, ref: (el) => { this._floorFilterElement = el; } })));
142
163
  }
143
164
  //--------------------------------------------------------------------------
144
165
  //
@@ -181,6 +202,17 @@ const MapTools = /*@__PURE__*/ proxyCustomElement(class MapTools extends HTMLEle
181
202
  this._showBasemapWidget = !this._showBasemapWidget;
182
203
  this._showTools = false;
183
204
  }
205
+ /**
206
+ * Show/Hide the floor filter
207
+ *
208
+ * @returns void
209
+ *
210
+ * @protected
211
+ */
212
+ _toggleFloorFilter() {
213
+ this._showFloorFilter = !this._showFloorFilter;
214
+ this._showTools = false;
215
+ }
184
216
  /**
185
217
  * Enter/Exit fullscreen mode
186
218
  *
@@ -203,6 +235,7 @@ const MapTools = /*@__PURE__*/ proxyCustomElement(class MapTools extends HTMLEle
203
235
  this._showBasemapWidget = false;
204
236
  this._showSearchWidget = false;
205
237
  this._showLegendWidget = false;
238
+ this._showFloorFilter = false;
206
239
  }
207
240
  this._showTools = !this._showTools;
208
241
  }
@@ -219,6 +252,7 @@ const MapTools = /*@__PURE__*/ proxyCustomElement(class MapTools extends HTMLEle
219
252
  get el() { return this; }
220
253
  static get watchers() { return {
221
254
  "_showBasemapWidget": ["_showBasemapWidgetWatchHandler"],
255
+ "_showFloorFilter": ["_showFloorFilterWatchHandler"],
222
256
  "_showFullscreen": ["_showFullscreenWatchHandler"],
223
257
  "_showLegendWidget": ["_showLegendWidgetWatchHandler"],
224
258
  "_showSearchWidget": ["_showSearchWidgetWatchHandler"]
@@ -226,6 +260,7 @@ const MapTools = /*@__PURE__*/ proxyCustomElement(class MapTools extends HTMLEle
226
260
  static get style() { return mapToolsCss; }
227
261
  }, [1, "map-tools", {
228
262
  "enableLegend": [4, "enable-legend"],
263
+ "enableFloorFilter": [4, "enable-floor-filter"],
229
264
  "enableFullscreen": [4, "enable-fullscreen"],
230
265
  "enableSearch": [4, "enable-search"],
231
266
  "enableBasemap": [4, "enable-basemap"],
@@ -236,6 +271,7 @@ const MapTools = /*@__PURE__*/ proxyCustomElement(class MapTools extends HTMLEle
236
271
  "_translations": [32],
237
272
  "_showTools": [32],
238
273
  "_showBasemapWidget": [32],
274
+ "_showFloorFilter": [32],
239
275
  "_showFullscreen": [32],
240
276
  "_showLegendWidget": [32],
241
277
  "_showSearchWidget": [32]
@@ -244,7 +280,7 @@ function defineCustomElement() {
244
280
  if (typeof customElements === "undefined") {
245
281
  return;
246
282
  }
247
- const components = ["map-tools", "basemap-gallery", "calcite-action", "calcite-icon", "calcite-loader", "calcite-tooltip", "map-fullscreen", "map-legend", "map-search"];
283
+ const components = ["map-tools", "basemap-gallery", "calcite-action", "calcite-icon", "calcite-loader", "calcite-tooltip", "floor-filter", "map-fullscreen", "map-legend", "map-search"];
248
284
  components.forEach(tagName => { switch (tagName) {
249
285
  case "map-tools":
250
286
  if (!customElements.get(tagName)) {
@@ -253,25 +289,30 @@ function defineCustomElement() {
253
289
  break;
254
290
  case "basemap-gallery":
255
291
  if (!customElements.get(tagName)) {
256
- defineCustomElement$8();
292
+ defineCustomElement$9();
257
293
  }
258
294
  break;
259
295
  case "calcite-action":
260
296
  if (!customElements.get(tagName)) {
261
- defineCustomElement$7();
297
+ defineCustomElement$8();
262
298
  }
263
299
  break;
264
300
  case "calcite-icon":
265
301
  if (!customElements.get(tagName)) {
266
- defineCustomElement$6();
302
+ defineCustomElement$7();
267
303
  }
268
304
  break;
269
305
  case "calcite-loader":
270
306
  if (!customElements.get(tagName)) {
271
- defineCustomElement$5();
307
+ defineCustomElement$6();
272
308
  }
273
309
  break;
274
310
  case "calcite-tooltip":
311
+ if (!customElements.get(tagName)) {
312
+ defineCustomElement$5();
313
+ }
314
+ break;
315
+ case "floor-filter":
275
316
  if (!customElements.get(tagName)) {
276
317
  defineCustomElement$4();
277
318
  }
@@ -43,16 +43,7 @@ async function getMapLayerHash(mapView, onlyShowUpdatableLayers) {
43
43
  return prev;
44
44
  }, {});
45
45
  });
46
- return onlyShowUpdatableLayers ? Object.keys(layerHash).reduce(async (prev, cur) => {
47
- const layer = await getLayerOrTable(mapView, cur);
48
- await layer.when(() => {
49
- prev[cur] = {
50
- name: layerHash[cur].name,
51
- supportsUpdate: layer.editingEnabled && layer.capabilities.operations.supportsUpdate
52
- };
53
- });
54
- return prev;
55
- }, {}) : layerHash;
46
+ return _getFinalHash(onlyShowUpdatableLayers, layerHash, mapView);
56
47
  }
57
48
  /**
58
49
  * Gets the table names from the current map
@@ -74,15 +65,37 @@ async function getMapTableHash(mapView, onlyShowUpdatableTables) {
74
65
  return prev;
75
66
  }, {});
76
67
  });
77
- return onlyShowUpdatableTables ? Object.keys(tableHash).reduce(async (prev, cur) => {
78
- const item = await getLayerOrTable(mapView, cur);
79
- await item.load();
80
- prev[cur] = {
81
- name: tableHash[cur].name,
82
- supportsUpdate: item.editingEnabled && item.capabilities.operations.supportsUpdate
83
- };
84
- return prev;
85
- }, {}) : tableHash;
68
+ return _getFinalHash(onlyShowUpdatableTables, tableHash, mapView);
69
+ }
70
+ /**
71
+ * Get the final hash
72
+ *
73
+ * @param onlyShowUpdatable boolean when true only layers that support editing and the update capability will be returned
74
+ * @param hash IMapItemHash key: layer id, values: name, supportsUpdate
75
+ * @param mapView the map view to fetch the layer from
76
+ *
77
+ * @returns Promise resolving with IMapItemHash
78
+ *
79
+ */
80
+ async function _getFinalHash(onlyShowUpdatable, hash, mapView) {
81
+ if (onlyShowUpdatable) {
82
+ const editableHash = {};
83
+ const keys = Object.keys(hash);
84
+ for (let i = 0; i < keys.length; i++) {
85
+ const id = keys[i];
86
+ const layer = await getLayerOrTable(mapView, id);
87
+ await layer.load();
88
+ await layer.when();
89
+ editableHash[id] = {
90
+ name: hash[id].name,
91
+ supportsUpdate: layer.editingEnabled && layer.capabilities.operations.supportsUpdate
92
+ };
93
+ }
94
+ return editableHash;
95
+ }
96
+ else {
97
+ return hash;
98
+ }
86
99
  }
87
100
  /**
88
101
  * Get a layer view by id