@esri/solutions-components 0.6.17 → 0.6.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (198) 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-shell-panel_14.cjs.entry.js +4 -3
  15. package/dist/cjs/card-manager_3.cjs.entry.js +8 -5
  16. package/dist/{collection/components/basemap-gallery/test/basemap-gallery.e2e.js → cjs/common-13719149.js} +17 -9
  17. package/dist/cjs/crowdsource-manager.cjs.entry.js +12 -7
  18. package/dist/cjs/edit-card_2.cjs.entry.js +4 -3
  19. package/dist/cjs/loader.cjs.js +1 -1
  20. package/dist/cjs/solution-configuration.cjs.entry.js +2 -1
  21. package/dist/cjs/solution-contents_3.cjs.entry.js +21 -21256
  22. package/dist/cjs/solution-item-icon.cjs.entry.js +327 -0
  23. package/dist/cjs/{solution-store-c443e657.js → solution-resource-f9e3b289.js} +2 -1698
  24. package/dist/cjs/solution-store-2414dd8a.js +1707 -0
  25. package/dist/cjs/solutions-components.cjs.js +1 -1
  26. package/dist/cjs/spatial-ref.cjs.entry.js +21293 -0
  27. package/dist/collection/collection-manifest.json +2 -0
  28. package/dist/collection/components/card-manager/card-manager.js +1 -1
  29. package/dist/collection/components/crowdsource-manager/crowdsource-manager.css +15 -0
  30. package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +47 -6
  31. package/dist/collection/components/edit-card/edit-card.css +0 -12
  32. package/dist/collection/components/floor-filter/floor-filter.css +19 -0
  33. package/dist/collection/components/floor-filter/floor-filter.js +163 -0
  34. package/dist/collection/components/info-card/info-card.js +3 -2
  35. package/dist/collection/components/layer-table/layer-table.css +8 -0
  36. package/dist/collection/components/layer-table/layer-table.js +18 -2
  37. package/dist/collection/components/map-card/map-card.js +19 -1
  38. package/dist/collection/components/map-picker/map-picker.css +0 -4
  39. package/dist/collection/components/map-picker/map-picker.js +1 -1
  40. package/dist/collection/components/map-tools/map-tools.js +54 -1
  41. package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.css +1 -7
  42. package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +37 -291
  43. package/dist/collection/components/solution-spatial-ref/test/solution-spatial-ref.e2e.js +24 -12
  44. package/dist/collection/components/solution-spatial-ref/test/solution-spatial-ref.spec.js +32 -128
  45. package/dist/collection/components/spatial-ref/spatial-ref.css +20 -0
  46. package/dist/collection/components/spatial-ref/spatial-ref.js +445 -0
  47. package/dist/collection/components/spatial-ref/test/spatial-ref.e2e.js +71 -0
  48. package/dist/collection/components/spatial-ref/test/spatial-ref.spec.js +158 -0
  49. package/dist/collection/demos/crowdsource-manager.html +4 -0
  50. package/dist/collection/demos/solution-spatial-ref.html +9 -16
  51. package/dist/collection/demos/spatial-ref.html +53 -0
  52. package/dist/collection/utils/{templates.e2e.js → test/templates.e2e.js} +2 -2
  53. package/dist/collection/utils/{templates.e2e.ts → test/templates.e2e.ts} +2 -2
  54. package/dist/components/card-manager2.js +1 -1
  55. package/dist/components/crowdsource-manager.js +86 -73
  56. package/dist/components/edit-card2.js +1 -1
  57. package/dist/components/floor-filter.d.ts +11 -0
  58. package/dist/components/floor-filter.js +11 -0
  59. package/dist/components/floor-filter2.js +115 -0
  60. package/dist/components/info-card2.js +3 -2
  61. package/dist/components/layer-table2.js +5 -3
  62. package/dist/components/map-card2.js +45 -37
  63. package/dist/components/map-picker2.js +2 -2
  64. package/dist/components/map-tools2.js +52 -11
  65. package/dist/components/solution-configuration.js +79 -72
  66. package/dist/components/solution-resource-item2.js +2 -1
  67. package/dist/components/solution-resource.js +1836 -0
  68. package/dist/components/solution-spatial-ref2.js +41 -21277
  69. package/dist/components/solution-store.js +2 -1830
  70. package/dist/components/spatial-ref.d.ts +11 -0
  71. package/dist/components/spatial-ref.js +11 -0
  72. package/dist/components/spatial-ref2.js +21374 -0
  73. package/dist/esm/{basemap-gallery_6.entry.js → basemap-gallery_7.entry.js} +124 -4
  74. package/dist/esm/{calcite-tree_3.entry.js → calcite-checkbox_3.entry.js} +125 -321
  75. package/dist/esm/calcite-shell-panel_14.entry.js +2 -1
  76. package/dist/esm/card-manager_3.entry.js +8 -5
  77. package/dist/{collection/components/layer-table/test/layer-table.e2e.js → esm/common-e4a8e353.js} +15 -9
  78. package/dist/esm/crowdsource-manager.entry.js +12 -7
  79. package/dist/esm/edit-card_2.entry.js +4 -3
  80. package/dist/esm/loader.js +1 -1
  81. package/dist/esm/polyfills/core-js.js +11 -0
  82. package/dist/esm/polyfills/dom.js +79 -0
  83. package/dist/esm/polyfills/es5-html-element.js +1 -0
  84. package/dist/esm/polyfills/index.js +34 -0
  85. package/dist/esm/polyfills/system.js +6 -0
  86. package/dist/esm/solution-configuration.entry.js +2 -1
  87. package/dist/esm/solution-contents_3.entry.js +20 -21255
  88. package/dist/esm/solution-item-icon.entry.js +323 -0
  89. package/dist/esm/{solution-store-b29d50f7.js → solution-resource-be35d35b.js} +1 -1697
  90. package/dist/esm/solution-store-e734626a.js +1704 -0
  91. package/dist/esm/solutions-components.js +1 -1
  92. package/dist/esm/spatial-ref.entry.js +21289 -0
  93. package/dist/solutions-components/demos/crowdsource-manager.html +4 -0
  94. package/dist/solutions-components/demos/solution-spatial-ref.html +9 -16
  95. package/dist/solutions-components/demos/spatial-ref.html +53 -0
  96. package/dist/solutions-components/{p-64d29ba2.entry.js → p-0bc27ba7.entry.js} +2 -2
  97. package/dist/{collection/components/map-card/test/map-card.e2e.js → solutions-components/p-1b228f97.js} +2 -10
  98. package/dist/solutions-components/p-5b8c8942.entry.js +21 -0
  99. package/dist/solutions-components/p-63c6fc29.entry.js +6 -0
  100. package/dist/solutions-components/p-64945b43.entry.js +18 -0
  101. package/dist/solutions-components/p-770bff06.entry.js +6 -0
  102. package/dist/solutions-components/p-7741dbab.entry.js +6 -0
  103. package/dist/solutions-components/p-80465067.entry.js +6 -0
  104. package/dist/solutions-components/p-846df994.entry.js +6 -0
  105. package/dist/solutions-components/p-b3f8d2cb.js +192 -0
  106. package/dist/solutions-components/p-c26d8b36.entry.js +6 -0
  107. package/dist/solutions-components/{p-4d942b0f.entry.js → p-f35147d5.entry.js} +1 -1
  108. package/dist/solutions-components/p-ff0d7712.js +44 -0
  109. package/dist/solutions-components/solutions-components.esm.js +1 -1
  110. package/dist/solutions-components/utils/{templates.e2e.ts → test/templates.e2e.ts} +2 -2
  111. package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +9 -1
  112. package/dist/types/components/floor-filter/floor-filter.d.ts +61 -0
  113. package/dist/types/components/layer-table/layer-table.d.ts +4 -0
  114. package/dist/types/components/map-card/map-card.d.ts +4 -0
  115. package/dist/types/components/map-tools/map-tools.d.ts +24 -0
  116. package/dist/types/components/solution-spatial-ref/solution-spatial-ref.d.ts +11 -93
  117. package/dist/types/components/spatial-ref/spatial-ref.d.ts +142 -0
  118. package/dist/types/components.d.ts +123 -16
  119. package/dist/types/preact.d.ts +8 -1
  120. package/package.json +6 -6
  121. package/dist/cjs/calcite-checkbox.cjs.entry.js +0 -136
  122. package/dist/collection/components/basemap-gallery/test/basemap-gallery.spec.js +0 -37
  123. package/dist/collection/components/buffer-tools/test/buffer-tools.e2e.js +0 -29
  124. package/dist/collection/components/buffer-tools/test/buffer-tools.spec.js +0 -160
  125. package/dist/collection/components/card-manager/test/card-manager.e2e.js +0 -29
  126. package/dist/collection/components/card-manager/test/card-manager.spec.js +0 -37
  127. package/dist/collection/components/crowdsource-manager/test/crowdsource-manager.e2e.js +0 -29
  128. package/dist/collection/components/crowdsource-manager/test/crowdsource-manager.spec.js +0 -37
  129. package/dist/collection/components/crowdsource-reporter/test/crowdsource-reporter.e2e.js +0 -29
  130. package/dist/collection/components/crowdsource-reporter/test/crowdsource-reporter.spec.js +0 -37
  131. package/dist/collection/components/deduct-calculator/test/deduct-calculator.e2e.js +0 -29
  132. package/dist/collection/components/deduct-calculator/test/deduct-calculator.spec.js +0 -37
  133. package/dist/collection/components/edit-card/test/edit-card.e2e.js +0 -14
  134. package/dist/collection/components/edit-card/test/edit-card.spec.js +0 -22
  135. package/dist/collection/components/info-card/test/info-card.e2e.js +0 -29
  136. package/dist/collection/components/info-card/test/info-card.spec.js +0 -37
  137. package/dist/collection/components/json-editor/test/json-editor.e2e.js +0 -36
  138. package/dist/collection/components/json-editor/test/json-editor.spec.js +0 -65
  139. package/dist/collection/components/layer-table/test/layer-table.spec.js +0 -37
  140. package/dist/collection/components/layout-manager/test/layout-manager.e2e.js +0 -29
  141. package/dist/collection/components/layout-manager/test/layout-manager.spec.js +0 -37
  142. package/dist/collection/components/list-item/test/list-item.e2e.js +0 -29
  143. package/dist/collection/components/list-item/test/list-item.spec.js +0 -37
  144. package/dist/collection/components/map-card/test/map-card.spec.js +0 -37
  145. package/dist/collection/components/map-draw-tools/test/map-draw-tools.e2e.js +0 -29
  146. package/dist/collection/components/map-draw-tools/test/map-draw-tools.spec.js +0 -37
  147. package/dist/collection/components/map-fullscreen/test/map-fullscreen.e2e.js +0 -29
  148. package/dist/collection/components/map-fullscreen/test/map-fullscreen.spec.js +0 -37
  149. package/dist/collection/components/map-layer-picker/test/map-layer-picker.e2e.js +0 -29
  150. package/dist/collection/components/map-layer-picker/test/map-layer-picker.spec.js +0 -114
  151. package/dist/collection/components/map-legend/test/map-legend.e2e.js +0 -14
  152. package/dist/collection/components/map-legend/test/map-legend.spec.js +0 -22
  153. package/dist/collection/components/map-picker/test/map-picker.e2e.js +0 -29
  154. package/dist/collection/components/map-picker/test/map-picker.spec.js +0 -37
  155. package/dist/collection/components/map-search/test/map-search.e2e.js +0 -29
  156. package/dist/collection/components/map-search/test/map-search.spec.js +0 -37
  157. package/dist/collection/components/map-select-tools/test/map-select-tools.e2e.js +0 -29
  158. package/dist/collection/components/map-select-tools/test/map-select-tools.spec.js +0 -366
  159. package/dist/collection/components/map-tools/test/map-tools.e2e.js +0 -29
  160. package/dist/collection/components/map-tools/test/map-tools.spec.js +0 -37
  161. package/dist/collection/components/pci-calculator/test/pci-calculator.e2e.js +0 -29
  162. package/dist/collection/components/pci-calculator/test/pci-calculator.spec.js +0 -37
  163. package/dist/collection/components/pdf-download/test/pdf-download.e2e.js +0 -76
  164. package/dist/collection/components/pdf-download/test/pdf-download.spec.js +0 -107
  165. package/dist/collection/components/public-notification/test/public-notification.spec.js +0 -161
  166. package/dist/collection/components/refine-selection/test/refine-selection.e2e.js +0 -14
  167. package/dist/collection/components/refine-selection/test/refine-selection.spec.js +0 -22
  168. package/dist/collection/components/solution-configuration/test/solution-configuration.e2e.js +0 -36
  169. package/dist/collection/components/solution-configuration/test/solution-configuration.spec.js +0 -119
  170. package/dist/collection/components/solution-contents/test/solution-contents.e2e.js +0 -94
  171. package/dist/collection/components/solution-contents/test/solution-contents.spec.js +0 -143
  172. package/dist/collection/components/solution-item/test/solution-item.e2e.js +0 -36
  173. package/dist/collection/components/solution-item/test/solution-item.spec.js +0 -77
  174. package/dist/collection/components/solution-item-details/test/solution-item-details.e2e.js +0 -36
  175. package/dist/collection/components/solution-item-details/test/solution-item-details.spec.js +0 -142
  176. package/dist/collection/components/solution-item-icon/test/solution-item-icon.e2e.js +0 -29
  177. package/dist/collection/components/solution-item-icon/test/solution-item-icon.spec.js +0 -39
  178. package/dist/collection/components/solution-item-sharing/test/solution-item-sharing.e2e.js +0 -36
  179. package/dist/collection/components/solution-item-sharing/test/solution-item-sharing.spec.js +0 -54
  180. package/dist/collection/components/solution-organization-variables/test/solution-organization-variables.e2e.js +0 -36
  181. package/dist/collection/components/solution-organization-variables/test/solution-organization-variables.spec.js +0 -65
  182. package/dist/collection/components/solution-resource-item/test/solution-resource-item.e2e.js +0 -36
  183. package/dist/collection/components/solution-resource-item/test/solution-resource-item.spec.js +0 -55
  184. package/dist/collection/components/solution-template-data/test/solution-template-data.e2e.js +0 -36
  185. package/dist/collection/components/solution-template-data/test/solution-template-data.spec.js +0 -60
  186. package/dist/collection/components/solution-variables/test/solution-variables.e2e.js +0 -36
  187. package/dist/collection/components/solution-variables/test/solution-variables.spec.js +0 -131
  188. package/dist/esm/calcite-checkbox.entry.js +0 -132
  189. package/dist/solutions-components/p-17d176b5.js +0 -230
  190. package/dist/solutions-components/p-1d9a5198.entry.js +0 -37
  191. package/dist/solutions-components/p-3707d9bd.entry.js +0 -6
  192. package/dist/solutions-components/p-41bbccbc.entry.js +0 -6
  193. package/dist/solutions-components/p-4f2fce86.entry.js +0 -6
  194. package/dist/solutions-components/p-5ffaaaf4.entry.js +0 -6
  195. package/dist/solutions-components/p-736e76fb.entry.js +0 -17
  196. package/dist/solutions-components/p-dda517b9.entry.js +0 -6
  197. /package/dist/collection/components/{solution-spatial-ref → spatial-ref}/spatialreferences.js +0 -0
  198. /package/dist/types/components/{solution-spatial-ref → spatial-ref}/spatialreferences.d.ts +0 -0
@@ -13,10 +13,9 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { EventEmitter, VNode } from '../../stencil-public-runtime';
17
16
  import '@esri/calcite-components';
18
- import { ISpatialRefRepresentation } from '../../utils/interfaces';
19
17
  import SolutionSpatialRef_T9n from '../../assets/t9n/solution-spatial-ref/resources.json';
18
+ import { EventEmitter, VNode } from '../../stencil-public-runtime';
20
19
  export declare class SolutionSpatialRef {
21
20
  el: HTMLSolutionSpatialRefElement;
22
21
  /**
@@ -24,24 +23,22 @@ export declare class SolutionSpatialRef {
24
23
  */
25
24
  defaultWkid: number;
26
25
  /**
26
+ * Indicates if the control has been enabled.
27
+ * The first time Spatial Reference has been enabled it should enable all feature services.
28
+ */
29
+ loaded: boolean;
30
+ /**
27
31
  * When true, all but the main switch are disabled to prevent interaction.
28
32
  */
29
33
  locked: boolean;
30
- /**
31
- * Contains the public value for this component, which is a wkid or a wkt.
32
- */
33
- value: string;
34
- valueChanged(newValue: string): void;
35
34
  /**
36
35
  * List of service names the spatial reference should apply to
37
36
  */
38
37
  services: string[];
39
38
  /**
40
- * Indicates if the control has been enabled.
41
- * The first time Spatial Reference has been enabled it should enable all feature services.
42
- */
43
- loaded: boolean;
44
- constructor();
39
+ * Contains the public value for this component, which is a wkid or a wkt.
40
+ */
41
+ value: string;
45
42
  /**
46
43
  * StencilJS: Called once just after the component is first connected to the DOM.
47
44
  */
@@ -50,10 +47,6 @@ export declare class SolutionSpatialRef {
50
47
  * Renders the component.
51
48
  */
52
49
  render(): VNode;
53
- /**
54
- * Internal representation of component's value for display purposes.
55
- */
56
- protected spatialRef: ISpatialRefRepresentation;
57
50
  /**
58
51
  * Current text that is being used to filter the list of spatial references.
59
52
  */
@@ -68,33 +61,9 @@ export declare class SolutionSpatialRef {
68
61
  enabled: boolean;
69
62
  }>;
70
63
  /**
71
- * Returns the spatial reference description of the supplied value.
72
- * (Exposes protected method `_createSpatialRefDisplay` for testing.)
73
- *
74
- * @param value WKID or WKT or null for default
75
- * @returns If component is using a WKID, description using WKID; otherwise, the WKT; defaults to 102100
76
- */
77
- createSpatialRefDisplay(value: string): Promise<ISpatialRefRepresentation>;
78
- /**
79
- * Returns the current spatial reference description.
80
- * (Exposes protected variable `spatialRef` for testing.)
64
+ * Handle changes to the buffer distance value
81
65
  */
82
- getSpatialRef(): Promise<ISpatialRefRepresentation>;
83
- /**
84
- * Converts a WKID into a spatial reference description.
85
- * (Exposes protected method `_wkidToDisplay` for testing.)
86
- *
87
- * @param wkid WKID to look up
88
- * @returns Description, or "WKID &lt;wkid&gt;" if a description doesn't exist for the WKID
89
- */
90
- wkidToDisplay(wkid: number): Promise<string>;
91
- /**
92
- * Returns the spatial reference description of the supplied value.
93
- *
94
- * @param value WKID or WKT or null for default
95
- * @returns If component is using a WKID, description using WKID; otherwise, the WKT; defaults to 102100
96
- */
97
- protected _createSpatialRefDisplay(value: string): ISpatialRefRepresentation;
66
+ spatialReferenceChange(event: CustomEvent): void;
98
67
  /**
99
68
  * Toggles the ability to set the default spatial reference.
100
69
  */
@@ -105,17 +74,6 @@ export declare class SolutionSpatialRef {
105
74
  * @param services list of service names
106
75
  */
107
76
  protected _setFeatureServiceDefaults(services: string[]): void;
108
- /**
109
- * Stores the wkid as the components value.
110
- */
111
- protected _setSpatialRef(wkid: string): void;
112
- /**
113
- * Converts a WKID into a spatial reference description.
114
- *
115
- * @param wkid WKID to look up
116
- * @returns Description, or "WKID &lt;wkid&gt;" if a description doesn't exist for the WKID
117
- */
118
- protected _wkidToDisplay(wkid: number): string;
119
77
  /**
120
78
  * Create a switch control for each of the services
121
79
  *
@@ -131,46 +89,6 @@ export declare class SolutionSpatialRef {
131
89
  * Updates the enabled/disabled state of the service in spatialReferenceInfo.
132
90
  */
133
91
  protected _updateEnabledServices(event: any, name: string): void;
134
- /**
135
- * Select the first child on Enter key click
136
- * OR
137
- * Clear any selection while user is entering values and use the default wkid
138
- *
139
- * @param event The keyboard event
140
- */
141
- protected _inputKeyDown(event: KeyboardEvent): void;
142
- /**
143
- * Clear any selected items in the elements tree.
144
- *
145
- */
146
- protected _clearSelection(): void;
147
- /**
148
- * Select the first child from the tree.
149
- *
150
- * @param autoFocus Boolean to indicate if focus should also be shifted to the first child.
151
- *
152
- */
153
- protected _selectFirstChild(autoFocus: boolean): void;
154
- /**
155
- * Set the search text State and cause render.
156
- *
157
- * @param event the event to get the value from
158
- *
159
- */
160
- protected _searchSpatialReferences(event: CustomEvent): void;
161
- /**
162
- * Get the tree items for the current spatial reference search
163
- *
164
- */
165
- protected _getTreeContent(): VNode;
166
- /**
167
- * Get the individual spatial reference tree item
168
- *
169
- * @param wkid The wkid for the spatial reference that will be displayed.
170
- * @param selected Should the item be selected by default.
171
- *
172
- */
173
- protected _getTreeItem(wkid: string, selected: boolean): VNode;
174
92
  /**
175
93
  * Fetches the component's translations
176
94
  *
@@ -0,0 +1,142 @@
1
+ /** @license
2
+ * Copyright 2022 Esri
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import '@esri/calcite-components';
17
+ import SpatialRef_T9n from '../../assets/t9n/spatial-ref/resources.json';
18
+ import { EventEmitter, VNode } from '../../stencil-public-runtime';
19
+ import { ISpatialRefRepresentation } from '../../utils/interfaces';
20
+ import { IValueChange } from "../../utils/interfaces";
21
+ export declare class SpatialRef {
22
+ el: HTMLSpatialRefElement;
23
+ /**
24
+ * The wkid that will be used as the default when no user selection has been made.
25
+ */
26
+ defaultWkid: number;
27
+ /**
28
+ * When true, all are disabled to prevent interaction.
29
+ */
30
+ disabled: boolean;
31
+ /**
32
+ * Contains the public value for this component, which is a wkid or a wkt.
33
+ */
34
+ value: string;
35
+ valueChanged(newValue: string): void;
36
+ constructor();
37
+ /**
38
+ * StencilJS: Called once just after the component is first connected to the DOM.
39
+ */
40
+ componentWillLoad(): Promise<void>;
41
+ /**
42
+ * Renders the component.
43
+ */
44
+ render(): VNode;
45
+ /**
46
+ * Internal representation of component's value for display purposes.
47
+ */
48
+ protected _spatialRef: ISpatialRefRepresentation;
49
+ /**
50
+ * Current text that is being used to filter the list of spatial references.
51
+ */
52
+ protected _srSearchText: string;
53
+ /**
54
+ * Contains the translations for this component.
55
+ * All UI strings should be defined here.
56
+ */
57
+ protected _translations: typeof SpatialRef_T9n;
58
+ protected _lastHighlightedSref: number;
59
+ spatialReferenceChange: EventEmitter<IValueChange>;
60
+ /**
61
+ * Returns the spatial reference description of the supplied value.
62
+ * (Exposes protected method `_createSpatialRefDisplay` for testing.)
63
+ *
64
+ * @param value WKID or WKT or null for default
65
+ * @returns If component is using a WKID, description using WKID; otherwise, the WKT; defaults to 102100
66
+ */
67
+ createSpatialRefDisplay(value: string): Promise<ISpatialRefRepresentation>;
68
+ /**
69
+ * Returns the current spatial reference description.
70
+ * (Exposes protected variable `spatialRef` for testing.)
71
+ */
72
+ getSpatialRef(): Promise<ISpatialRefRepresentation>;
73
+ /**
74
+ * Converts a WKID into a spatial reference description.
75
+ * (Exposes protected method `_wkidToDisplay` for testing.)
76
+ *
77
+ * @param wkid WKID to look up
78
+ * @returns Description, or "WKID &lt;wkid&gt;" if a description doesn't exist for the WKID
79
+ */
80
+ wkidToDisplay(wkid: number): Promise<string>;
81
+ /**
82
+ * Returns the spatial reference description of the supplied value.
83
+ *
84
+ * @param value WKID or WKT or null for default
85
+ * @returns If component is using a WKID, description using WKID; otherwise, the WKT; defaults to 102100
86
+ */
87
+ protected _createSpatialRefDisplay(value: string): ISpatialRefRepresentation;
88
+ /**
89
+ * Stores the wkid as the components value.
90
+ */
91
+ protected _setSpatialRef(wkid: string): void;
92
+ /**
93
+ * Converts a WKID into a spatial reference description.
94
+ *
95
+ * @param wkid WKID to look up
96
+ * @returns Description, or "WKID &lt;wkid&gt;" if a description doesn't exist for the WKID
97
+ */
98
+ protected _wkidToDisplay(wkid: number): string;
99
+ /**
100
+ * Sets the search text State and cause render; if Enter key, selects the first child.
101
+ *
102
+ * @param event The keyboard event
103
+ */
104
+ protected _searchInputKeyDown(event: KeyboardEvent): void;
105
+ /**
106
+ * Tracks the movement through the list of projections, and selects the one for which Enter is used twice.
107
+ *
108
+ * @param event The keyboard event
109
+ */
110
+ protected _projListInputKeyDown(event: KeyboardEvent): void;
111
+ /**
112
+ * Clear any selected items in the elements tree.
113
+ *
114
+ */
115
+ protected _clearSelection(): void;
116
+ /**
117
+ * Select the first child from the tree.
118
+ *
119
+ * @param autoFocus Boolean to indicate if focus should also be shifted to the first child.
120
+ *
121
+ */
122
+ protected _selectFirstChild(): void;
123
+ /**
124
+ * Get the tree items for the current spatial reference search
125
+ *
126
+ */
127
+ _getTreeContent(): VNode;
128
+ /**
129
+ * Get the individual spatial reference tree item
130
+ *
131
+ * @param wkid The wkid for the spatial reference that will be displayed.
132
+ * @param selected Should the item be selected by default.
133
+ *
134
+ */
135
+ protected _getTreeItem(wkid: string, selected: boolean): VNode;
136
+ /**
137
+ * Fetches the component's translations
138
+ *
139
+ * @protected
140
+ */
141
+ protected _getTranslations(): Promise<void>;
142
+ }
@@ -90,6 +90,10 @@ export namespace Components {
90
90
  * boolean: when true the basemap widget will be available
91
91
  */
92
92
  "enableBasemap": boolean;
93
+ /**
94
+ * boolean: when true the fullscreen widget will be available
95
+ */
96
+ "enableFloorFilter": boolean;
93
97
  /**
94
98
  * boolean: when true the fullscreen widget will be available
95
99
  */
@@ -134,6 +138,10 @@ export namespace Components {
134
138
  * boolean: when true the table will be sorted by objectid in descending order by default
135
139
  */
136
140
  "showNewestFirst": boolean;
141
+ /**
142
+ * "light" | "dark": Calcite theme to be used
143
+ */
144
+ "theme": "light" | "dark";
137
145
  /**
138
146
  * boolean: When true the selected feature will zoomed to in the map and the row will be scrolled to within the table
139
147
  */
@@ -161,6 +169,16 @@ export namespace Components {
161
169
  */
162
170
  "open": boolean;
163
171
  }
172
+ interface FloorFilter {
173
+ /**
174
+ * esri/widgets/FloorFilter: https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FloorFilter.html FloorFilter instance
175
+ */
176
+ "floorFilterWidget": __esri.FloorFilter;
177
+ /**
178
+ * esri/views/View: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html
179
+ */
180
+ "mapView": __esri.MapView;
181
+ }
164
182
  interface InfoCard {
165
183
  /**
166
184
  * Get the current selected feature from the Features widget
@@ -270,6 +288,10 @@ export namespace Components {
270
288
  * boolean: when true the basemap widget will be available
271
289
  */
272
290
  "enableBasemap": boolean;
291
+ /**
292
+ * boolean: when true the floor filter widget will be available
293
+ */
294
+ "enableFloorFilter": boolean;
273
295
  /**
274
296
  * boolean: when true the fullscreen widget will be available
275
297
  */
@@ -530,6 +552,10 @@ export namespace Components {
530
552
  * boolean: when true the basemap widget will be available
531
553
  */
532
554
  "enableBasemap": boolean;
555
+ /**
556
+ * boolean: when true the floor filter widget will be available
557
+ */
558
+ "enableFloorFilter": boolean;
533
559
  /**
534
560
  * boolean: when true the fullscreen widget will be available
535
561
  */
@@ -784,20 +810,10 @@ export namespace Components {
784
810
  "itemId": string;
785
811
  }
786
812
  interface SolutionSpatialRef {
787
- /**
788
- * Returns the spatial reference description of the supplied value. (Exposes protected method `_createSpatialRefDisplay` for testing.)
789
- * @param value WKID or WKT or null for default
790
- * @returns If component is using a WKID, description using WKID; otherwise, the WKT; defaults to 102100
791
- */
792
- "createSpatialRefDisplay": (value: string) => Promise<ISpatialRefRepresentation>;
793
813
  /**
794
814
  * The wkid that will be used as the default when no user selection has been made.
795
815
  */
796
816
  "defaultWkid": number;
797
- /**
798
- * Returns the current spatial reference description. (Exposes protected variable `spatialRef` for testing.)
799
- */
800
- "getSpatialRef": () => Promise<ISpatialRefRepresentation>;
801
817
  /**
802
818
  * When true, all but the main switch are disabled to prevent interaction.
803
819
  */
@@ -810,12 +826,6 @@ export namespace Components {
810
826
  * Contains the public value for this component, which is a wkid or a wkt.
811
827
  */
812
828
  "value": string;
813
- /**
814
- * Converts a WKID into a spatial reference description. (Exposes protected method `_wkidToDisplay` for testing.)
815
- * @param wkid WKID to look up
816
- * @returns Description, or "WKID &lt;wkid&gt;" if a description doesn't exist for the WKID
817
- */
818
- "wkidToDisplay": (wkid: number) => Promise<string>;
819
829
  }
820
830
  interface SolutionTemplateData {
821
831
  /**
@@ -842,6 +852,36 @@ export namespace Components {
842
852
  */
843
853
  "value": string;
844
854
  }
855
+ interface SpatialRef {
856
+ /**
857
+ * Returns the spatial reference description of the supplied value. (Exposes protected method `_createSpatialRefDisplay` for testing.)
858
+ * @param value WKID or WKT or null for default
859
+ * @returns If component is using a WKID, description using WKID; otherwise, the WKT; defaults to 102100
860
+ */
861
+ "createSpatialRefDisplay": (value: string) => Promise<ISpatialRefRepresentation>;
862
+ /**
863
+ * The wkid that will be used as the default when no user selection has been made.
864
+ */
865
+ "defaultWkid": number;
866
+ /**
867
+ * When true, all are disabled to prevent interaction.
868
+ */
869
+ "disabled": boolean;
870
+ /**
871
+ * Returns the current spatial reference description. (Exposes protected variable `spatialRef` for testing.)
872
+ */
873
+ "getSpatialRef": () => Promise<ISpatialRefRepresentation>;
874
+ /**
875
+ * Contains the public value for this component, which is a wkid or a wkt.
876
+ */
877
+ "value": string;
878
+ /**
879
+ * Converts a WKID into a spatial reference description. (Exposes protected method `_wkidToDisplay` for testing.)
880
+ * @param wkid WKID to look up
881
+ * @returns Description, or "WKID &lt;wkid&gt;" if a description doesn't exist for the WKID
882
+ */
883
+ "wkidToDisplay": (wkid: number) => Promise<string>;
884
+ }
845
885
  interface StoreManager {
846
886
  /**
847
887
  * Credentials for requests
@@ -925,6 +965,10 @@ export interface SolutionVariablesCustomEvent<T> extends CustomEvent<T> {
925
965
  detail: T;
926
966
  target: HTMLSolutionVariablesElement;
927
967
  }
968
+ export interface SpatialRefCustomEvent<T> extends CustomEvent<T> {
969
+ detail: T;
970
+ target: HTMLSpatialRefElement;
971
+ }
928
972
  export interface StoreManagerCustomEvent<T> extends CustomEvent<T> {
929
973
  detail: T;
930
974
  target: HTMLStoreManagerElement;
@@ -972,6 +1016,12 @@ declare global {
972
1016
  prototype: HTMLEditCardElement;
973
1017
  new (): HTMLEditCardElement;
974
1018
  };
1019
+ interface HTMLFloorFilterElement extends Components.FloorFilter, HTMLStencilElement {
1020
+ }
1021
+ var HTMLFloorFilterElement: {
1022
+ prototype: HTMLFloorFilterElement;
1023
+ new (): HTMLFloorFilterElement;
1024
+ };
975
1025
  interface HTMLInfoCardElement extends Components.InfoCard, HTMLStencilElement {
976
1026
  }
977
1027
  var HTMLInfoCardElement: {
@@ -1146,6 +1196,12 @@ declare global {
1146
1196
  prototype: HTMLSolutionVariablesElement;
1147
1197
  new (): HTMLSolutionVariablesElement;
1148
1198
  };
1199
+ interface HTMLSpatialRefElement extends Components.SpatialRef, HTMLStencilElement {
1200
+ }
1201
+ var HTMLSpatialRefElement: {
1202
+ prototype: HTMLSpatialRefElement;
1203
+ new (): HTMLSpatialRefElement;
1204
+ };
1149
1205
  interface HTMLStoreManagerElement extends Components.StoreManager, HTMLStencilElement {
1150
1206
  }
1151
1207
  var HTMLStoreManagerElement: {
@@ -1160,6 +1216,7 @@ declare global {
1160
1216
  "crowdsource-reporter": HTMLCrowdsourceReporterElement;
1161
1217
  "deduct-calculator": HTMLDeductCalculatorElement;
1162
1218
  "edit-card": HTMLEditCardElement;
1219
+ "floor-filter": HTMLFloorFilterElement;
1163
1220
  "info-card": HTMLInfoCardElement;
1164
1221
  "json-editor": HTMLJsonEditorElement;
1165
1222
  "layer-table": HTMLLayerTableElement;
@@ -1189,6 +1246,7 @@ declare global {
1189
1246
  "solution-spatial-ref": HTMLSolutionSpatialRefElement;
1190
1247
  "solution-template-data": HTMLSolutionTemplateDataElement;
1191
1248
  "solution-variables": HTMLSolutionVariablesElement;
1249
+ "spatial-ref": HTMLSpatialRefElement;
1192
1250
  "store-manager": HTMLStoreManagerElement;
1193
1251
  }
1194
1252
  }
@@ -1285,6 +1343,10 @@ declare namespace LocalJSX {
1285
1343
  * boolean: when true the basemap widget will be available
1286
1344
  */
1287
1345
  "enableBasemap"?: boolean;
1346
+ /**
1347
+ * boolean: when true the fullscreen widget will be available
1348
+ */
1349
+ "enableFloorFilter"?: boolean;
1288
1350
  /**
1289
1351
  * boolean: when true the fullscreen widget will be available
1290
1352
  */
@@ -1329,6 +1391,10 @@ declare namespace LocalJSX {
1329
1391
  * boolean: when true the table will be sorted by objectid in descending order by default
1330
1392
  */
1331
1393
  "showNewestFirst"?: boolean;
1394
+ /**
1395
+ * "light" | "dark": Calcite theme to be used
1396
+ */
1397
+ "theme"?: "light" | "dark";
1332
1398
  /**
1333
1399
  * boolean: When true the selected feature will zoomed to in the map and the row will be scrolled to within the table
1334
1400
  */
@@ -1368,6 +1434,16 @@ declare namespace LocalJSX {
1368
1434
  */
1369
1435
  "open"?: boolean;
1370
1436
  }
1437
+ interface FloorFilter {
1438
+ /**
1439
+ * esri/widgets/FloorFilter: https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FloorFilter.html FloorFilter instance
1440
+ */
1441
+ "floorFilterWidget"?: __esri.FloorFilter;
1442
+ /**
1443
+ * esri/views/View: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html
1444
+ */
1445
+ "mapView"?: __esri.MapView;
1446
+ }
1371
1447
  interface InfoCard {
1372
1448
  /**
1373
1449
  * esri/Graphic: https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html
@@ -1429,6 +1505,10 @@ declare namespace LocalJSX {
1429
1505
  * Emitted on demand when a layer is selected
1430
1506
  */
1431
1507
  "onFeatureSelectionChange"?: (event: LayerTableCustomEvent<number[]>) => void;
1508
+ /**
1509
+ * Emitted on demand when the filters button is clicked
1510
+ */
1511
+ "onOpenFilterOptions"?: (event: LayerTableCustomEvent<void>) => void;
1432
1512
  /**
1433
1513
  * boolean: When true only editable layers that support the update capability will be available
1434
1514
  */
@@ -1459,6 +1539,10 @@ declare namespace LocalJSX {
1459
1539
  * boolean: when true the basemap widget will be available
1460
1540
  */
1461
1541
  "enableBasemap"?: boolean;
1542
+ /**
1543
+ * boolean: when true the floor filter widget will be available
1544
+ */
1545
+ "enableFloorFilter"?: boolean;
1462
1546
  /**
1463
1547
  * boolean: when true the fullscreen widget will be available
1464
1548
  */
@@ -1739,6 +1823,10 @@ declare namespace LocalJSX {
1739
1823
  * boolean: when true the basemap widget will be available
1740
1824
  */
1741
1825
  "enableBasemap"?: boolean;
1826
+ /**
1827
+ * boolean: when true the floor filter widget will be available
1828
+ */
1829
+ "enableFloorFilter"?: boolean;
1742
1830
  /**
1743
1831
  * boolean: when true the fullscreen widget will be available
1744
1832
  */
@@ -2028,6 +2116,21 @@ declare namespace LocalJSX {
2028
2116
  */
2029
2117
  "value"?: string;
2030
2118
  }
2119
+ interface SpatialRef {
2120
+ /**
2121
+ * The wkid that will be used as the default when no user selection has been made.
2122
+ */
2123
+ "defaultWkid"?: number;
2124
+ /**
2125
+ * When true, all are disabled to prevent interaction.
2126
+ */
2127
+ "disabled"?: boolean;
2128
+ "onSpatialReferenceChange"?: (event: SpatialRefCustomEvent<IValueChange>) => void;
2129
+ /**
2130
+ * Contains the public value for this component, which is a wkid or a wkt.
2131
+ */
2132
+ "value"?: string;
2133
+ }
2031
2134
  interface StoreManager {
2032
2135
  /**
2033
2136
  * Credentials for requests
@@ -2051,6 +2154,7 @@ declare namespace LocalJSX {
2051
2154
  "crowdsource-reporter": CrowdsourceReporter;
2052
2155
  "deduct-calculator": DeductCalculator;
2053
2156
  "edit-card": EditCard;
2157
+ "floor-filter": FloorFilter;
2054
2158
  "info-card": InfoCard;
2055
2159
  "json-editor": JsonEditor;
2056
2160
  "layer-table": LayerTable;
@@ -2080,6 +2184,7 @@ declare namespace LocalJSX {
2080
2184
  "solution-spatial-ref": SolutionSpatialRef;
2081
2185
  "solution-template-data": SolutionTemplateData;
2082
2186
  "solution-variables": SolutionVariables;
2187
+ "spatial-ref": SpatialRef;
2083
2188
  "store-manager": StoreManager;
2084
2189
  }
2085
2190
  }
@@ -2094,6 +2199,7 @@ declare module "@stencil/core" {
2094
2199
  "crowdsource-reporter": LocalJSX.CrowdsourceReporter & JSXBase.HTMLAttributes<HTMLCrowdsourceReporterElement>;
2095
2200
  "deduct-calculator": LocalJSX.DeductCalculator & JSXBase.HTMLAttributes<HTMLDeductCalculatorElement>;
2096
2201
  "edit-card": LocalJSX.EditCard & JSXBase.HTMLAttributes<HTMLEditCardElement>;
2202
+ "floor-filter": LocalJSX.FloorFilter & JSXBase.HTMLAttributes<HTMLFloorFilterElement>;
2097
2203
  "info-card": LocalJSX.InfoCard & JSXBase.HTMLAttributes<HTMLInfoCardElement>;
2098
2204
  "json-editor": LocalJSX.JsonEditor & JSXBase.HTMLAttributes<HTMLJsonEditorElement>;
2099
2205
  "layer-table": LocalJSX.LayerTable & JSXBase.HTMLAttributes<HTMLLayerTableElement>;
@@ -2123,6 +2229,7 @@ declare module "@stencil/core" {
2123
2229
  "solution-spatial-ref": LocalJSX.SolutionSpatialRef & JSXBase.HTMLAttributes<HTMLSolutionSpatialRefElement>;
2124
2230
  "solution-template-data": LocalJSX.SolutionTemplateData & JSXBase.HTMLAttributes<HTMLSolutionTemplateDataElement>;
2125
2231
  "solution-variables": LocalJSX.SolutionVariables & JSXBase.HTMLAttributes<HTMLSolutionVariablesElement>;
2232
+ "spatial-ref": LocalJSX.SpatialRef & JSXBase.HTMLAttributes<HTMLSpatialRefElement>;
2126
2233
  "store-manager": LocalJSX.StoreManager & JSXBase.HTMLAttributes<HTMLStoreManagerElement>;
2127
2234
  }
2128
2235
  }
@@ -500,14 +500,17 @@ declare module "preact/src/jsx" {
500
500
  "oneditsComplete"?: (event: CustomEvent<any>) => void;
501
501
  }
502
502
 
503
+ "floor-filter": JSX.SolutionsFloorFilter & JSXInternal.HTMLAttributes<HTMLSolutionsFloorFilterElement>
504
+
503
505
  "info-card": Omit<JSX.SolutionsInfoCard, "onSelectionChanged"> & JSXInternal.HTMLAttributes<HTMLSolutionsInfoCardElement> & {
504
506
  "onselectionChanged"?: (event: CustomEvent<any>) => void;
505
507
  }
506
508
 
507
509
  "json-editor": JSX.SolutionsJsonEditor & JSXInternal.HTMLAttributes<HTMLSolutionsJsonEditorElement>
508
510
 
509
- "layer-table": Omit<JSX.SolutionsLayerTable, "onFeatureSelectionChange"> & JSXInternal.HTMLAttributes<HTMLSolutionsLayerTableElement> & {
511
+ "layer-table": Omit<JSX.SolutionsLayerTable, "onFeatureSelectionChange" | "onOpenFilterOptions"> & JSXInternal.HTMLAttributes<HTMLSolutionsLayerTableElement> & {
510
512
  "onfeatureSelectionChange"?: (event: CustomEvent<any>) => void;
513
+ "onopenFilterOptions"?: (event: CustomEvent<any>) => void;
511
514
  }
512
515
 
513
516
  "layout-manager": Omit<JSX.SolutionsLayoutManager, "onLayoutChanged"> & JSXInternal.HTMLAttributes<HTMLSolutionsLayoutManagerElement> & {
@@ -592,6 +595,10 @@ declare module "preact/src/jsx" {
592
595
  "onsolutionVariableSelected"?: (event: CustomEvent<any>) => void;
593
596
  }
594
597
 
598
+ "spatial-ref": Omit<JSX.SolutionsSpatialRef, "onSpatialReferenceChange"> & JSXInternal.HTMLAttributes<HTMLSolutionsSpatialRefElement> & {
599
+ "onspatialReferenceChange"?: (event: CustomEvent<any>) => void;
600
+ }
601
+
595
602
  "store-manager": Omit<JSX.SolutionsStoreManager, "onStateLoaded"> & JSXInternal.HTMLAttributes<HTMLSolutionsStoreManagerElement> & {
596
603
  "onstateLoaded"?: (event: CustomEvent<any>) => void;
597
604
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esri/solutions-components",
3
- "version": "0.6.17",
3
+ "version": "0.6.18",
4
4
  "description": "Web Components for Esri's Solutions Applications",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -56,11 +56,11 @@
56
56
  "esri-loader": "^3.7.0",
57
57
  "form-request-submit-polyfill": "^2.0.0",
58
58
  "gh-release": "^6.0.3",
59
- "jest": "^27.0.3",
60
- "jest-cli": "^27.4.5",
59
+ "jest": "^27.5.1",
60
+ "jest-cli": "^27.5.1",
61
61
  "pify": "^5.0.0",
62
62
  "prettier": "2.4.1",
63
- "puppeteer": "^21.0.3",
63
+ "puppeteer": "^21.3.1",
64
64
  "react": "^18.2.0",
65
65
  "rimraf": "^3.0.2",
66
66
  "tailwindcss": "3.0.23",
@@ -79,9 +79,9 @@
79
79
  "@esri/hub-initiatives": "^12.4.1",
80
80
  "@esri/hub-sites": "^12.6.0",
81
81
  "@esri/hub-teams": "^12.4.1",
82
- "@esri/solution-common": "^5.0.7",
82
+ "@esri/solution-common": "^5.0.9",
83
83
  "@pdf-lib/fontkit": "^1.1.1",
84
- "@stencil/core": "^4.0.5",
84
+ "@stencil/core": "^4.3.0",
85
85
  "focus-trap": "7.2.0",
86
86
  "jspdf": "^2.5.1",
87
87
  "minimist": "^1.2.6",