@esri/solutions-components 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (196) hide show
  1. package/dist/assets/t9n/feature-comments/resources.json +3 -0
  2. package/dist/assets/t9n/feature-comments/resources_en.json +3 -0
  3. package/dist/assets/t9n/feature-form-flow-item/resources.json +3 -0
  4. package/dist/assets/t9n/feature-form-flow-item/resources_en.json +3 -0
  5. package/dist/assets/t9n/layer-table/resources.json +2 -1
  6. package/dist/assets/t9n/layer-table/resources_en.json +2 -1
  7. package/dist/assets/t9n/list-flow-item/resources.json +3 -0
  8. package/dist/assets/t9n/list-flow-item/resources_en.json +3 -0
  9. package/dist/assets/t9n/location-flow-item/resources.json +3 -0
  10. package/dist/assets/t9n/location-flow-item/resources_en.json +3 -0
  11. package/dist/assets/t9n/share-item/resources.json +3 -0
  12. package/dist/assets/t9n/share-item/resources_en.json +3 -0
  13. package/dist/cjs/{list-item.cjs.entry.js → arcgis-login.cjs.entry.js} +4 -19
  14. package/dist/cjs/basemap-gallery_7.cjs.entry.js +13 -9
  15. package/dist/cjs/calcite-action_2.cjs.entry.js +61 -392
  16. package/dist/cjs/calcite-alert_3.cjs.entry.js +21 -3
  17. package/dist/cjs/calcite-combobox_6.cjs.entry.js +32 -8
  18. package/dist/cjs/calcite-popover.cjs.entry.js +418 -0
  19. package/dist/cjs/card-manager_3.cjs.entry.js +154 -18
  20. package/dist/cjs/crowdsource-manager.cjs.entry.js +24 -2
  21. package/dist/cjs/crowdsource-reporter.cjs.entry.js +45 -6
  22. package/dist/cjs/{downloadUtils-e3e595e9.js → downloadUtils-9c4fde54.js} +2 -2
  23. package/dist/cjs/feature-comments.cjs.entry.js +60 -0
  24. package/dist/cjs/feature-form-flow-item.cjs.entry.js +60 -0
  25. package/dist/cjs/features-flow-item.cjs.entry.js +60 -0
  26. package/dist/cjs/{index.es-047537b5.js → index.es-d208a6d6.js} +2 -2
  27. package/dist/cjs/list-flow-item.cjs.entry.js +60 -0
  28. package/dist/cjs/loader.cjs.js +1 -1
  29. package/dist/cjs/location-flow-item.cjs.entry.js +60 -0
  30. package/dist/cjs/map-select-tools_3.cjs.entry.js +2 -2
  31. package/dist/cjs/{mapViewUtils-f7bbc35b.js → mapViewUtils-bab83c90.js} +21 -0
  32. package/dist/cjs/public-notification.cjs.entry.js +2 -2
  33. package/dist/cjs/refine-results-flow-item.cjs.entry.js +60 -0
  34. package/dist/cjs/share-item.cjs.entry.js +60 -0
  35. package/dist/cjs/solutions-components.cjs.js +1 -1
  36. package/dist/collection/collection-manifest.json +8 -1
  37. package/dist/collection/components/{list-item/list-item.js → arcgis-login/arcgis-login.js} +4 -19
  38. package/dist/collection/components/arcgis-login/test/arcgis-login.e2e.js +29 -0
  39. package/dist/collection/components/arcgis-login/test/arcgis-login.spec.js +37 -0
  40. package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +118 -2
  41. package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +294 -6
  42. package/dist/collection/components/feature-comments/feature-comments.css +19 -0
  43. package/dist/collection/components/feature-comments/feature-comments.js +74 -0
  44. package/dist/collection/components/feature-comments/test/feature-comments.e2e.js +29 -0
  45. package/dist/collection/components/feature-comments/test/feature-comments.spec.js +37 -0
  46. package/dist/collection/components/feature-form-flow-item/feature-form-flow-item.css +19 -0
  47. package/dist/collection/components/feature-form-flow-item/feature-form-flow-item.js +74 -0
  48. package/dist/collection/components/feature-form-flow-item/test/feature-form-flow-item.e2e.js +29 -0
  49. package/dist/collection/components/feature-form-flow-item/test/feature-form-flow-item.spec.js +37 -0
  50. package/dist/collection/components/features-flow-item/features-flow-item.css +19 -0
  51. package/dist/collection/components/features-flow-item/features-flow-item.js +74 -0
  52. package/dist/collection/components/features-flow-item/test/features-flow-item.e2e.js +29 -0
  53. package/dist/collection/components/features-flow-item/test/features-flow-item.spec.js +37 -0
  54. package/dist/collection/components/info-card/info-card.js +21 -2
  55. package/dist/collection/components/layer-table/layer-table.js +199 -10
  56. package/dist/collection/components/list-flow-item/list-flow-item.css +19 -0
  57. package/dist/collection/components/list-flow-item/list-flow-item.js +74 -0
  58. package/dist/collection/components/list-flow-item/test/list-flow-item.e2e.js +29 -0
  59. package/dist/collection/components/list-flow-item/test/list-flow-item.spec.js +37 -0
  60. package/dist/collection/components/location-flow-item/location-flow-item.css +19 -0
  61. package/dist/collection/components/location-flow-item/location-flow-item.js +74 -0
  62. package/dist/collection/components/location-flow-item/test/location-flow-item.e2e.js +29 -0
  63. package/dist/collection/components/location-flow-item/test/location-flow-item.spec.js +37 -0
  64. package/dist/collection/components/map-card/map-card.js +38 -7
  65. package/dist/collection/components/map-layer-picker/map-layer-picker.js +49 -7
  66. package/dist/collection/components/map-picker/map-picker.js +37 -9
  67. package/dist/collection/components/refine-results-flow-item/refine-results-flow-item.css +19 -0
  68. package/dist/collection/components/refine-results-flow-item/refine-results-flow-item.js +74 -0
  69. package/dist/collection/components/refine-results-flow-item/test/refine-results-flow-item.e2e.js +29 -0
  70. package/dist/collection/components/refine-results-flow-item/test/refine-results-flow-item.spec.js +37 -0
  71. package/dist/collection/components/share-item/share-item.css +19 -0
  72. package/dist/collection/components/share-item/share-item.js +74 -0
  73. package/dist/collection/components/share-item/test/share-item.e2e.js +29 -0
  74. package/dist/collection/components/share-item/test/share-item.spec.js +37 -0
  75. package/dist/collection/demos/crowdsource-reporter.html +56 -15
  76. package/dist/collection/utils/interfaces.ts +5 -0
  77. package/dist/collection/utils/queryUtils.js +20 -0
  78. package/dist/collection/utils/queryUtils.ts +26 -0
  79. package/dist/components/arcgis-login.d.ts +11 -0
  80. package/dist/components/arcgis-login.js +75 -0
  81. package/dist/components/calcite-list-item.js +1 -1
  82. package/dist/components/card-manager2.js +7 -1
  83. package/dist/components/crowdsource-manager.js +32 -3
  84. package/dist/components/crowdsource-reporter.js +61 -7
  85. package/dist/components/feature-comments.d.ts +11 -0
  86. package/dist/components/feature-comments.js +75 -0
  87. package/dist/components/feature-form-flow-item.d.ts +11 -0
  88. package/dist/components/feature-form-flow-item.js +75 -0
  89. package/dist/components/features-flow-item.d.ts +11 -0
  90. package/dist/components/features-flow-item.js +75 -0
  91. package/dist/components/info-card2.js +28 -3
  92. package/dist/components/layer-table2.js +138 -10
  93. package/dist/components/list-flow-item.d.ts +11 -0
  94. package/dist/components/list-flow-item.js +75 -0
  95. package/dist/components/list-item.js +425 -55
  96. package/dist/components/location-flow-item.d.ts +11 -0
  97. package/dist/components/location-flow-item.js +75 -0
  98. package/dist/components/map-card2.js +22 -8
  99. package/dist/components/map-layer-picker2.js +32 -7
  100. package/dist/components/map-picker2.js +16 -11
  101. package/dist/components/map-select-tools2.js +1 -1
  102. package/dist/components/public-notification.js +1 -1
  103. package/dist/components/queryUtils.js +21 -1
  104. package/dist/components/refine-results-flow-item.d.ts +11 -0
  105. package/dist/components/refine-results-flow-item.js +75 -0
  106. package/dist/components/refine-selection2.js +2 -2
  107. package/dist/components/{list-item.d.ts → share-item.d.ts} +4 -4
  108. package/dist/components/share-item.js +75 -0
  109. package/dist/esm/{list-item.entry.js → arcgis-login.entry.js} +4 -19
  110. package/dist/esm/basemap-gallery_7.entry.js +13 -9
  111. package/dist/esm/calcite-action_2.entry.js +63 -394
  112. package/dist/esm/calcite-alert_3.entry.js +21 -3
  113. package/dist/esm/calcite-combobox_6.entry.js +32 -8
  114. package/dist/esm/calcite-popover.entry.js +414 -0
  115. package/dist/esm/card-manager_3.entry.js +154 -18
  116. package/dist/esm/crowdsource-manager.entry.js +24 -2
  117. package/dist/esm/crowdsource-reporter.entry.js +45 -6
  118. package/dist/esm/{downloadUtils-8fbd1347.js → downloadUtils-b84a6f55.js} +2 -2
  119. package/dist/esm/feature-comments.entry.js +56 -0
  120. package/dist/esm/feature-form-flow-item.entry.js +56 -0
  121. package/dist/esm/features-flow-item.entry.js +56 -0
  122. package/dist/esm/{index.es-b6705ce7.js → index.es-0d4698c7.js} +2 -2
  123. package/dist/esm/list-flow-item.entry.js +56 -0
  124. package/dist/esm/loader.js +1 -1
  125. package/dist/esm/location-flow-item.entry.js +56 -0
  126. package/dist/esm/map-select-tools_3.entry.js +2 -2
  127. package/dist/esm/{mapViewUtils-1e2befd7.js → mapViewUtils-88f363b6.js} +21 -1
  128. package/dist/esm/public-notification.entry.js +2 -2
  129. package/dist/esm/refine-results-flow-item.entry.js +56 -0
  130. package/dist/esm/share-item.entry.js +56 -0
  131. package/dist/esm/solutions-components.js +1 -1
  132. package/dist/solutions-components/demos/crowdsource-reporter.html +56 -15
  133. package/dist/solutions-components/{p-072680a5.js → p-214d41c3.js} +2 -2
  134. package/dist/solutions-components/p-28657abb.entry.js +11 -0
  135. package/dist/solutions-components/p-31b66bc3.entry.js +6 -0
  136. package/dist/solutions-components/{p-0123207d.entry.js → p-34737944.entry.js} +1 -1
  137. package/dist/solutions-components/{p-13d0424a.entry.js → p-3ced939f.entry.js} +1 -1
  138. package/dist/solutions-components/p-3dfbf45e.entry.js +6 -0
  139. package/dist/solutions-components/{p-092fd5d9.js → p-3ee78186.js} +1 -1
  140. package/dist/solutions-components/{p-7f793144.entry.js → p-4327c361.entry.js} +1 -1
  141. package/dist/solutions-components/p-455f4ed8.entry.js +17 -0
  142. package/dist/solutions-components/p-478fc7cb.entry.js +6 -0
  143. package/dist/solutions-components/p-4aafb627.js +36 -0
  144. package/dist/solutions-components/p-58562dda.entry.js +6 -0
  145. package/dist/solutions-components/{p-f367db61.entry.js → p-81503752.entry.js} +1 -1
  146. package/dist/solutions-components/{p-c90671e1.entry.js → p-9d54d7a0.entry.js} +4 -4
  147. package/dist/solutions-components/p-a5d70d3a.entry.js +6 -0
  148. package/dist/solutions-components/p-bd62df52.entry.js +6 -0
  149. package/dist/solutions-components/{p-ca780ab8.entry.js → p-d6f51bea.entry.js} +2 -2
  150. package/dist/solutions-components/p-e6371690.entry.js +6 -0
  151. package/dist/solutions-components/p-e7aad23d.entry.js +6 -0
  152. package/dist/solutions-components/p-ed95f634.entry.js +6 -0
  153. package/dist/solutions-components/p-fd08afb5.entry.js +6 -0
  154. package/dist/solutions-components/solutions-components.esm.js +1 -1
  155. package/dist/solutions-components/utils/interfaces.ts +5 -0
  156. package/dist/solutions-components/utils/queryUtils.ts +26 -0
  157. package/dist/types/components/{list-item/list-item.d.ts → arcgis-login/arcgis-login.d.ts} +2 -9
  158. package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +36 -0
  159. package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +73 -0
  160. package/dist/types/components/feature-comments/feature-comments.d.ts +19 -0
  161. package/dist/types/components/feature-form-flow-item/feature-form-flow-item.d.ts +19 -0
  162. package/dist/types/components/features-flow-item/features-flow-item.d.ts +19 -0
  163. package/dist/types/components/info-card/info-card.d.ts +8 -0
  164. package/dist/types/components/layer-table/layer-table.d.ts +77 -2
  165. package/dist/types/components/list-flow-item/list-flow-item.d.ts +19 -0
  166. package/dist/types/components/location-flow-item/location-flow-item.d.ts +19 -0
  167. package/dist/types/components/map-card/map-card.d.ts +12 -0
  168. package/dist/types/components/map-layer-picker/map-layer-picker.d.ts +15 -2
  169. package/dist/types/components/map-picker/map-picker.d.ts +1 -4
  170. package/dist/types/components/refine-results-flow-item/refine-results-flow-item.d.ts +19 -0
  171. package/dist/types/components/share-item/share-item.d.ts +19 -0
  172. package/dist/types/components.d.ts +301 -9
  173. package/dist/types/preact.d.ts +15 -1
  174. package/dist/types/utils/interfaces.d.ts +4 -0
  175. package/dist/types/utils/queryUtils.d.ts +9 -0
  176. package/package.json +1 -1
  177. package/dist/assets/t9n/config-buffer-tools/resources.json +0 -12
  178. package/dist/assets/t9n/config-buffer-tools/resources_en.json +0 -12
  179. package/dist/assets/t9n/config-draw-tools/resources.json +0 -10
  180. package/dist/assets/t9n/config-draw-tools/resources_en.json +0 -10
  181. package/dist/assets/t9n/config-layer-picker/resources.json +0 -3
  182. package/dist/assets/t9n/config-layer-picker/resources_en.json +0 -3
  183. package/dist/assets/t9n/config-pdf-download/resources.json +0 -6
  184. package/dist/assets/t9n/config-pdf-download/resources_en.json +0 -6
  185. package/dist/cjs/calcite-loader.cjs.entry.js +0 -80
  186. package/dist/components/list-item2.js +0 -460
  187. package/dist/esm/calcite-loader.entry.js +0 -76
  188. package/dist/solutions-components/p-11cb7b04.entry.js +0 -6
  189. package/dist/solutions-components/p-45cf4f67.entry.js +0 -6
  190. package/dist/solutions-components/p-4807b2a1.js +0 -36
  191. package/dist/solutions-components/p-557a1912.entry.js +0 -6
  192. package/dist/solutions-components/p-68735975.entry.js +0 -6
  193. package/dist/solutions-components/p-ec830ecb.entry.js +0 -23
  194. /package/dist/assets/t9n/{list-item → arcgis-login}/resources.json +0 -0
  195. /package/dist/assets/t9n/{list-item → arcgis-login}/resources_en.json +0 -0
  196. /package/dist/collection/components/{list-item/list-item.css → arcgis-login/arcgis-login.css} +0 -0
@@ -23,50 +23,81 @@
23
23
  -->
24
24
  <style>
25
25
  #viewDiv {
26
- padding: 0;
27
- margin: 0;
28
- height: 100%;
29
- width: 100%;
26
+ position: absolute;
27
+ top: 0px;
28
+ right: 0px;
29
+ bottom: 0px;
30
+ left: 354px;
31
+ }
32
+ #viewDiv[dir="rtl"] {
33
+ right: 354px;
34
+ left: 0px;
30
35
  }
31
36
  .over-map {
32
37
  position: absolute;
33
- right: 0px;
38
+ left: 0px;
34
39
  background-color: var(--calcite-ui-foreground-1);
35
40
  }
41
+ .over-map[dir="rtl"] {
42
+ right: 0px;
43
+ }
36
44
  .column {
37
- min-width: 300px;
45
+ width: 320px;
38
46
  padding: 1rem;
39
47
  border: 1px solid var(--calcite-ui-border-2);
40
48
  height: -webkit-fill-available;
41
49
  height: 100%;
42
50
  }
43
51
  .column[dir="rtl"] {
44
- float: left;
52
+ float: right;
45
53
  }
46
54
  </style>
47
55
 
48
56
  <link
49
57
  rel="stylesheet"
50
- href="https://js.arcgis.com/4.27/esri/themes/light/main.css"
58
+ href="https://jsdev.arcgis.com/4.28/esri/themes/light/main.css"
51
59
  />
52
- <link rel="stylesheet" href="https://unpkg.com/@esri/calcite-components@1.0.0-beta.97/dist/calcite/calcite.css" type="text/css" />
60
+ <!-- <link
61
+ rel="stylesheet"
62
+ href="https://jsdev.arcgis.com/4.28/esri/themes/dark/main.css"
63
+ /> -->
53
64
  <link rel="stylesheet" href="https://webapps-cdn.esri.com/CDN/fonts/v1.4.1/fonts.css" />
54
65
  <link rel="stylesheet" href="../solutions-components.css" type="text/css">
55
66
 
56
- <script src="https://js.arcgis.com/4.27/"></script>
67
+ <script src="https://jsdev.arcgis.com/4.28/"></script>
57
68
  <script type="module" src="../solutions-components.esm.js"></script>
58
69
 
59
70
  <script>
60
- require(["esri/WebMap", "esri/views/MapView"], (
71
+ require(["esri/WebMap", "esri/views/MapView", "esri/widgets/Legend", "esri/config"], (
61
72
  WebMap,
62
- MapView
73
+ MapView,
74
+ Legend,
75
+ esriConfig
63
76
  ) => {
77
+ let itemId;
78
+ let portal;
79
+ var vars = window.location.search.substring(1).split('&');
80
+ vars.forEach((param) => {
81
+ let vals = param.split('=');
82
+ const v = vals[1];
83
+ switch (vals[0]) {
84
+ case "id":
85
+ itemId = v;
86
+ break;
87
+ case "portal":
88
+ portal = v;
89
+ default:
90
+ break;
91
+ }
92
+ });
93
+
94
+ if (portal) {
95
+ esriConfig.portalUrl = portal;
96
+ }
64
97
  var webMap = new WebMap({
65
98
  portalItem: {
66
99
  // solutions
67
- // id: "3715f4899bea4b2a948347c5c2357e58"
68
- // InstantApps
69
- id: "863e4f6f2a7840db896cc1b1606d552d"
100
+ id: itemId ? itemId : "3715f4899bea4b2a948347c5c2357e58"
70
101
  }
71
102
  });
72
103
 
@@ -75,10 +106,20 @@
75
106
  container: "viewDiv",
76
107
  map: webMap
77
108
  });
109
+
110
+ demo.mapView.when(() => {
111
+ const legend = new Legend({
112
+ view: demo.mapView
113
+ });
114
+ demo.mapView.ui.add(legend, "top-left");
115
+ });
116
+
117
+ demo.loginTitle = "Login Title";
78
118
  });
79
119
  </script>
80
120
  </head>
81
121
 
122
+ <!-- <body class="calcite-mode-dark"> -->
82
123
  <body>
83
124
  <div id="viewDiv"></div>
84
125
  <crowdsource-reporter id="demo" class="over-map column"></crowdsource-reporter>
@@ -488,9 +488,14 @@ export interface IToolInfo {
488
488
  disabled: boolean;
489
489
  isDanger?: boolean;
490
490
  isOverflow: boolean;
491
+ isSublist?: boolean;
491
492
  }
492
493
 
493
494
  export interface IToolSizeInfo {
494
495
  id: string;
495
496
  width: number;
496
497
  }
498
+
499
+ export interface IColumnsInfo {
500
+ [key: string]: boolean;
501
+ }
@@ -123,6 +123,26 @@ export async function queryFeaturesByID(ids, layer, graphics, returnGeometry, ou
123
123
  queryFeaturesByID(remainingIds, layer, graphics, returnGeometry, outSpatialReference) :
124
124
  Promise.resolve(graphics);
125
125
  }
126
+ /**
127
+ * Query the layer for features that have the provided globalId
128
+ *
129
+ * @param globalId globalId to be used to query for a feature in a layer
130
+ * @param layer the layer to retrieve features from
131
+ *
132
+ * @returns Promise with the featureSet from the layer that match the provided globalId
133
+ */
134
+ export async function queryFeaturesByGlobalID(globalIds, layer) {
135
+ const globalIdField = layer.globalIdField;
136
+ if (!globalIdField) {
137
+ return [];
138
+ }
139
+ const q = layer.createQuery();
140
+ q.returnGeometry = false;
141
+ q.outFields = [layer.objectIdField];
142
+ q.where = globalIds.map(g => `${globalIdField} = '${g}'`).join(" or ");
143
+ const result = await layer.queryFeatures(q);
144
+ return result.features;
145
+ }
126
146
  /**
127
147
  * Query the layer for features that intersect the provided geometry
128
148
  *
@@ -154,6 +154,32 @@ export async function queryFeaturesByID(
154
154
  Promise.resolve(graphics);
155
155
  }
156
156
 
157
+ /**
158
+ * Query the layer for features that have the provided globalId
159
+ *
160
+ * @param globalId globalId to be used to query for a feature in a layer
161
+ * @param layer the layer to retrieve features from
162
+ *
163
+ * @returns Promise with the featureSet from the layer that match the provided globalId
164
+ */
165
+ export async function queryFeaturesByGlobalID(
166
+ globalIds: string[],
167
+ layer: __esri.FeatureLayer
168
+ ): Promise<__esri.Graphic[]> {
169
+ const globalIdField = (layer as any).globalIdField;
170
+ if (!globalIdField) {
171
+ return [];
172
+ }
173
+
174
+ const q = layer.createQuery();
175
+ q.returnGeometry = false;
176
+ q.outFields = [layer.objectIdField];
177
+ q.where = globalIds.map(g => `${globalIdField} = '${g}'`).join(" or ");
178
+
179
+ const result = await layer.queryFeatures(q);
180
+ return result.features;
181
+ }
182
+
157
183
  /**
158
184
  * Query the layer for features that intersect the provided geometry
159
185
  *
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface ArcgisLogin extends Components.ArcgisLogin, HTMLElement {}
4
+ export const ArcgisLogin: {
5
+ prototype: ArcgisLogin;
6
+ new (): ArcgisLogin;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,75 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
7
+
8
+ const arcgisLoginCss = ":host{display:block}";
9
+
10
+ const ArcgisLogin$1 = /*@__PURE__*/ proxyCustomElement(class ArcgisLogin extends HTMLElement {
11
+ constructor() {
12
+ super();
13
+ this.__registerHost();
14
+ this.__attachShadow();
15
+ }
16
+ //--------------------------------------------------------------------------
17
+ //
18
+ // Properties (public)
19
+ //
20
+ //--------------------------------------------------------------------------
21
+ //--------------------------------------------------------------------------
22
+ //
23
+ // State (internal)
24
+ //
25
+ //--------------------------------------------------------------------------
26
+ //--------------------------------------------------------------------------
27
+ //
28
+ // Properties (protected)
29
+ //
30
+ //--------------------------------------------------------------------------
31
+ //--------------------------------------------------------------------------
32
+ //
33
+ // Watch handlers
34
+ //
35
+ //--------------------------------------------------------------------------
36
+ //--------------------------------------------------------------------------
37
+ //
38
+ // Methods (public)
39
+ //
40
+ //--------------------------------------------------------------------------
41
+ //--------------------------------------------------------------------------
42
+ //
43
+ // Events (public)
44
+ //
45
+ //--------------------------------------------------------------------------
46
+ //--------------------------------------------------------------------------
47
+ //
48
+ // Functions (lifecycle)
49
+ //
50
+ //--------------------------------------------------------------------------
51
+ render() {
52
+ return (h(Host, null, h("slot", null)));
53
+ }
54
+ get el() { return this; }
55
+ static get style() { return arcgisLoginCss; }
56
+ }, [1, "arcgis-login"]);
57
+ function defineCustomElement$1() {
58
+ if (typeof customElements === "undefined") {
59
+ return;
60
+ }
61
+ const components = ["arcgis-login"];
62
+ components.forEach(tagName => { switch (tagName) {
63
+ case "arcgis-login":
64
+ if (!customElements.get(tagName)) {
65
+ customElements.define(tagName, ArcgisLogin$1);
66
+ }
67
+ break;
68
+ } });
69
+ }
70
+ defineCustomElement$1();
71
+
72
+ const ArcgisLogin = ArcgisLogin$1;
73
+ const defineCustomElement = defineCustomElement$1;
74
+
75
+ export { ArcgisLogin, defineCustomElement };
@@ -3,7 +3,7 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import { L as ListItem, d as defineCustomElement$1 } from './list-item2.js';
6
+ import { L as ListItem, d as defineCustomElement$1 } from './list-item.js';
7
7
 
8
8
  const CalciteListItem = ListItem;
9
9
  const defineCustomElement = defineCustomElement$1;
@@ -7,6 +7,7 @@ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal
7
7
  import { g as getLocaleComponentStrings } from './locale.js';
8
8
  import { q as queryFeaturesByID } from './queryUtils.js';
9
9
  import { g as getLayerOrTable } from './mapViewUtils.js';
10
+ import { d as defineCustomElement$b } from './action.js';
10
11
  import { d as defineCustomElement$a } from './alert.js';
11
12
  import { d as defineCustomElement$9 } from './button.js';
12
13
  import { d as defineCustomElement$8 } from './chip.js';
@@ -116,13 +117,18 @@ function defineCustomElement() {
116
117
  if (typeof customElements === "undefined") {
117
118
  return;
118
119
  }
119
- const components = ["card-manager", "calcite-alert", "calcite-button", "calcite-chip", "calcite-icon", "calcite-loader", "calcite-notice", "calcite-shell", "calcite-tooltip", "edit-card", "info-card"];
120
+ const components = ["card-manager", "calcite-action", "calcite-alert", "calcite-button", "calcite-chip", "calcite-icon", "calcite-loader", "calcite-notice", "calcite-shell", "calcite-tooltip", "edit-card", "info-card"];
120
121
  components.forEach(tagName => { switch (tagName) {
121
122
  case "card-manager":
122
123
  if (!customElements.get(tagName)) {
123
124
  customElements.define(tagName, CardManager);
124
125
  }
125
126
  break;
127
+ case "calcite-action":
128
+ if (!customElements.get(tagName)) {
129
+ defineCustomElement$b();
130
+ }
131
+ break;
126
132
  case "calcite-alert":
127
133
  if (!customElements.get(tagName)) {
128
134
  defineCustomElement$a();
@@ -24,7 +24,7 @@ import { d as defineCustomElement$u } from './handle.js';
24
24
  import { d as defineCustomElement$t } from './icon.js';
25
25
  import { d as defineCustomElement$s } from './input.js';
26
26
  import { d as defineCustomElement$r } from './list.js';
27
- import { d as defineCustomElement$q } from './list-item2.js';
27
+ import { d as defineCustomElement$q } from './list-item.js';
28
28
  import { d as defineCustomElement$p } from './loader.js';
29
29
  import { d as defineCustomElement$o } from './modal.js';
30
30
  import { d as defineCustomElement$n } from './notice.js';
@@ -62,7 +62,12 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
62
62
  */
63
63
  this._shouldSetMapView = false;
64
64
  this.classicGrid = false;
65
+ this.defaultGlobalId = "";
66
+ this.defaultLayer = "";
67
+ this.defaultOid = "";
68
+ this.defaultWebmap = "";
65
69
  this.enableAutoRefresh = false;
70
+ this.enableColumnReorder = true;
66
71
  this.enableCSV = true;
67
72
  this.enableFloorFilter = true;
68
73
  this.enableFullscreen = true;
@@ -91,6 +96,20 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
91
96
  // Watch handlers
92
97
  //
93
98
  //--------------------------------------------------------------------------
99
+ /**
100
+ * Watch for globalid url param to be set
101
+ */
102
+ defaultGlobalIdWatchHandler() {
103
+ this._defaultGlobalId = !this.defaultGlobalId ? undefined :
104
+ this.defaultGlobalId.indexOf(",") > -1 ? this.defaultGlobalId.split(",") : [this.defaultGlobalId];
105
+ }
106
+ /**
107
+ * Watch for oid url param to be set
108
+ */
109
+ defaultOidWatchHandler() {
110
+ this._defaultOid = !this.defaultOid ? undefined :
111
+ this.defaultOid.indexOf(",") > -1 ? this.defaultOid.split(",").map(o => parseInt(o, 10)) : [parseInt(this.defaultOid, 10)];
112
+ }
94
113
  /**
95
114
  * When true the map zoom tools will be available
96
115
  */
@@ -289,7 +308,7 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
289
308
  const mapDisplayClass = this.classicGrid && layoutMode === ELayoutMode.GRID ? "display-flex height-full width-1-2" :
290
309
  layoutMode === ELayoutMode.GRID && !hideMap ? "" : "display-none";
291
310
  const mapContainerClass = this.classicGrid && layoutMode === ELayoutMode.GRID ? "width-full" : "adjusted-height-50";
292
- return (h("div", { class: `${mapContainerClass} overflow-hidden ${mapDisplayClass}` }, h("map-card", { basemapConfig: this.basemapConfig, class: "width-full", enableBasemap: this.enableBasemap, enableFloorFilter: this.enableFloorFilter, enableFullscreen: this.enableFullscreen, enableHome: this.enableHome, enableLegend: this.enableLegend, enableSearch: this.enableSearch, hidden: this._expandPopup, mapInfos: (_a = this.mapInfos) === null || _a === void 0 ? void 0 : _a.filter(mapInfo => mapInfo.visible !== false), theme: this.theme })));
311
+ return (h("div", { class: `${mapContainerClass} overflow-hidden ${mapDisplayClass}` }, h("map-card", { basemapConfig: this.basemapConfig, class: "width-full", defaultWebmapId: this.defaultWebmap, enableBasemap: this.enableBasemap, enableFloorFilter: this.enableFloorFilter, enableFullscreen: this.enableFullscreen, enableHome: this.enableHome, enableLegend: this.enableLegend, enableSearch: this.enableSearch, hidden: this._expandPopup, mapInfos: (_a = this.mapInfos) === null || _a === void 0 ? void 0 : _a.filter(mapInfo => mapInfo.visible !== false), theme: this.theme })));
293
312
  }
294
313
  /**
295
314
  * Get the expand node for the popup information
@@ -345,7 +364,8 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
345
364
  const toggleSlot = this.classicGrid && layoutMode !== ELayoutMode.VERTICAL ? "footer" :
346
365
  this.classicGrid && layoutMode === ELayoutMode.VERTICAL ? "panel-end" :
347
366
  layoutMode === ELayoutMode.HORIZONTAL ? "header" : "panel-start";
348
- return (h("calcite-shell", { class: tableSizeClass + " border-bottom" }, h("calcite-action-bar", { class: "border-sides", expandDisabled: true, layout: toggleLayout, slot: toggleSlot }, h("calcite-action", { class: "toggle-node", icon: icon, id: id, onClick: () => this._toggleLayout(), text: "" }), h("calcite-tooltip", { label: tooltip, placement: "bottom", "reference-element": id }, h("span", null, tooltip))), h("div", { class: "width-full height-full position-relative" }, h("layer-table", { enableAutoRefresh: this.enableAutoRefresh, enableCSV: this.enableCSV, enableInlineEdit: this.enableInlineEdit, enableZoom: this.enableZoom, mapInfo: this._mapInfo, mapView: this === null || this === void 0 ? void 0 : this._mapView, onlyShowUpdatableLayers: this.onlyShowUpdatableLayers, showNewestFirst: this.showNewestFirst, zoomAndScrollToSelected: this.zoomAndScrollToSelected }))));
367
+ const hasMapAndLayer = this.defaultWebmap && this.defaultLayer;
368
+ return (h("calcite-shell", { class: tableSizeClass + " border-bottom" }, h("calcite-action-bar", { class: "border-sides", expandDisabled: true, layout: toggleLayout, slot: toggleSlot }, h("calcite-action", { class: "toggle-node", icon: icon, id: id, onClick: () => this._toggleLayout(), text: "" }), h("calcite-tooltip", { label: tooltip, placement: "bottom", "reference-element": id }, h("span", null, tooltip))), h("div", { class: "width-full height-full position-relative" }, h("layer-table", { defaultGlobalId: hasMapAndLayer ? this._defaultGlobalId : undefined, defaultLayerId: hasMapAndLayer ? this.defaultLayer : "", defaultOid: hasMapAndLayer && !this.defaultGlobalId ? this._defaultOid : undefined, enableAutoRefresh: this.enableAutoRefresh, enableCSV: this.enableCSV, enableColumnReorder: this.enableColumnReorder, enableInlineEdit: this.enableInlineEdit, enableZoom: this.enableZoom, mapInfo: this._mapInfo, mapView: this === null || this === void 0 ? void 0 : this._mapView, onlyShowUpdatableLayers: this.onlyShowUpdatableLayers, showNewestFirst: this.showNewestFirst, zoomAndScrollToSelected: this.zoomAndScrollToSelected }))));
349
369
  }
350
370
  /**
351
371
  * Open/Close the appropriate panel.
@@ -413,12 +433,19 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
413
433
  }
414
434
  get el() { return this; }
415
435
  static get watchers() { return {
436
+ "defaultGlobalId": ["defaultGlobalIdWatchHandler"],
437
+ "defaultOid": ["defaultOidWatchHandler"],
416
438
  "enableZoom": ["enableZoomWatchHandler"]
417
439
  }; }
418
440
  static get style() { return crowdsourceManagerCss; }
419
441
  }, [0, "crowdsource-manager", {
420
442
  "classicGrid": [4, "classic-grid"],
443
+ "defaultGlobalId": [1, "default-global-id"],
444
+ "defaultLayer": [1, "default-layer"],
445
+ "defaultOid": [1, "default-oid"],
446
+ "defaultWebmap": [1, "default-webmap"],
421
447
  "enableAutoRefresh": [4, "enable-auto-refresh"],
448
+ "enableColumnReorder": [4, "enable-column-reorder"],
422
449
  "enableCSV": [4, "enable-c-s-v"],
423
450
  "enableFloorFilter": [4, "enable-floor-filter"],
424
451
  "enableFullscreen": [4, "enable-fullscreen"],
@@ -442,6 +469,8 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
442
469
  "_mapView": [32],
443
470
  "_panelOpen": [32]
444
471
  }, [[8, "layoutChanged", "layoutChanged"], [8, "mapChanged", "mapChanged"], [8, "beforeMapChanged", "beforeMapChanged"]], {
472
+ "defaultGlobalId": ["defaultGlobalIdWatchHandler"],
473
+ "defaultOid": ["defaultOidWatchHandler"],
445
474
  "enableZoom": ["enableZoomWatchHandler"]
446
475
  }]);
447
476
  function defineCustomElement$1() {
@@ -12,14 +12,23 @@ const CrowdsourceReporter$1 = /*@__PURE__*/ proxyCustomElement(class Crowdsource
12
12
  super();
13
13
  this.__registerHost();
14
14
  this.__attachShadow();
15
+ this.description = undefined;
16
+ this.enableAnonymousAccess = undefined;
17
+ this.enableAnonymousComments = undefined;
18
+ this.enableComments = undefined;
19
+ this.enableLogin = undefined;
20
+ this.enableNewReports = undefined;
21
+ this.layers = undefined;
22
+ this.loginTitle = undefined;
23
+ this.mapView = undefined;
24
+ this.reportButtonText = undefined;
25
+ this.reportsHeader = undefined;
26
+ this.reportSubmittedMessage = undefined;
27
+ this.searchConfiguration = undefined;
28
+ this.showComments = undefined;
15
29
  }
16
30
  //--------------------------------------------------------------------------
17
31
  //
18
- // Properties (public)
19
- //
20
- //--------------------------------------------------------------------------
21
- //--------------------------------------------------------------------------
22
- //
23
32
  // State (internal)
24
33
  //
25
34
  //--------------------------------------------------------------------------
@@ -48,14 +57,44 @@ const CrowdsourceReporter$1 = /*@__PURE__*/ proxyCustomElement(class Crowdsource
48
57
  // Functions (lifecycle)
49
58
  //
50
59
  //--------------------------------------------------------------------------
60
+ /**
61
+ * StencilJS: Called once just after the component is first connected to the DOM.
62
+ *
63
+ * @returns Promise when complete
64
+ */
65
+ // async componentWillLoad(): Promise<void> {
66
+ // await this._getTranslations();
67
+ // await this._initModules();
68
+ // }
69
+ /**
70
+ * Renders the component.
71
+ */
51
72
  render() {
52
- return (h(Host, null, h("slot", null)));
73
+ return (h(Host, null, h("slot", null, this.loginTitle + this.description)));
53
74
  }
54
75
  //--------------------------------------------------------------------------
55
76
  //
56
77
  // Functions (protected)
57
78
  //
58
79
  //--------------------------------------------------------------------------
80
+ /**
81
+ * Load esri javascript api modules
82
+ *
83
+ * @returns Promise resolving when function is done
84
+ *
85
+ * @protected
86
+ */
87
+ // protected async _initModules(): Promise<void> {
88
+ // const [geometryEngine, jsonUtils]: [
89
+ // __esri.geometryEngine,
90
+ // __esri.symbolsSupportJsonUtils
91
+ // ] = await loadModules([
92
+ // "esri/geometry/geometryEngine",
93
+ // "esri/symbols/support/jsonUtils"
94
+ // ]);
95
+ // this._geometryEngine = geometryEngine;
96
+ // this._jsonUtils = jsonUtils;
97
+ // }
59
98
  /**
60
99
  * Fetches the component's translations
61
100
  *
@@ -68,7 +107,22 @@ const CrowdsourceReporter$1 = /*@__PURE__*/ proxyCustomElement(class Crowdsource
68
107
  }
69
108
  get el() { return this; }
70
109
  static get style() { return crowdsourceReporterCss; }
71
- }, [1, "crowdsource-reporter"]);
110
+ }, [1, "crowdsource-reporter", {
111
+ "description": [1],
112
+ "enableAnonymousAccess": [4, "enable-anonymous-access"],
113
+ "enableAnonymousComments": [4, "enable-anonymous-comments"],
114
+ "enableComments": [4, "enable-comments"],
115
+ "enableLogin": [4, "enable-login"],
116
+ "enableNewReports": [4, "enable-new-reports"],
117
+ "layers": [16],
118
+ "loginTitle": [1, "login-title"],
119
+ "mapView": [16],
120
+ "reportButtonText": [1, "report-button-text"],
121
+ "reportsHeader": [1, "reports-header"],
122
+ "reportSubmittedMessage": [1, "report-submitted-message"],
123
+ "searchConfiguration": [16],
124
+ "showComments": [4, "show-comments"]
125
+ }]);
72
126
  function defineCustomElement$1() {
73
127
  if (typeof customElements === "undefined") {
74
128
  return;
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface FeatureComments extends Components.FeatureComments, HTMLElement {}
4
+ export const FeatureComments: {
5
+ prototype: FeatureComments;
6
+ new (): FeatureComments;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,75 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
7
+
8
+ const featureCommentsCss = ":host{display:block}";
9
+
10
+ const FeatureComments$1 = /*@__PURE__*/ proxyCustomElement(class FeatureComments extends HTMLElement {
11
+ constructor() {
12
+ super();
13
+ this.__registerHost();
14
+ this.__attachShadow();
15
+ }
16
+ //--------------------------------------------------------------------------
17
+ //
18
+ // Properties (public)
19
+ //
20
+ //--------------------------------------------------------------------------
21
+ //--------------------------------------------------------------------------
22
+ //
23
+ // State (internal)
24
+ //
25
+ //--------------------------------------------------------------------------
26
+ //--------------------------------------------------------------------------
27
+ //
28
+ // Properties (protected)
29
+ //
30
+ //--------------------------------------------------------------------------
31
+ //--------------------------------------------------------------------------
32
+ //
33
+ // Watch handlers
34
+ //
35
+ //--------------------------------------------------------------------------
36
+ //--------------------------------------------------------------------------
37
+ //
38
+ // Methods (public)
39
+ //
40
+ //--------------------------------------------------------------------------
41
+ //--------------------------------------------------------------------------
42
+ //
43
+ // Events (public)
44
+ //
45
+ //--------------------------------------------------------------------------
46
+ //--------------------------------------------------------------------------
47
+ //
48
+ // Functions (lifecycle)
49
+ //
50
+ //--------------------------------------------------------------------------
51
+ render() {
52
+ return (h(Host, null, h("slot", null)));
53
+ }
54
+ get el() { return this; }
55
+ static get style() { return featureCommentsCss; }
56
+ }, [1, "feature-comments"]);
57
+ function defineCustomElement$1() {
58
+ if (typeof customElements === "undefined") {
59
+ return;
60
+ }
61
+ const components = ["feature-comments"];
62
+ components.forEach(tagName => { switch (tagName) {
63
+ case "feature-comments":
64
+ if (!customElements.get(tagName)) {
65
+ customElements.define(tagName, FeatureComments$1);
66
+ }
67
+ break;
68
+ } });
69
+ }
70
+ defineCustomElement$1();
71
+
72
+ const FeatureComments = FeatureComments$1;
73
+ const defineCustomElement = defineCustomElement$1;
74
+
75
+ export { FeatureComments, defineCustomElement };
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface FeatureFormFlowItem extends Components.FeatureFormFlowItem, HTMLElement {}
4
+ export const FeatureFormFlowItem: {
5
+ prototype: FeatureFormFlowItem;
6
+ new (): FeatureFormFlowItem;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;