@esri/solutions-components 0.6.16 → 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 (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
@@ -1,94 +0,0 @@
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
- /** @license
7
- * Copyright 2022 Esri
8
- *
9
- * Licensed under the Apache License, Version 2.0 (the "License");
10
- * you may not use this file except in compliance with the License.
11
- * You may obtain a copy of the License at
12
- *
13
- * http://www.apache.org/licenses/LICENSE-2.0
14
- *
15
- * Unless required by applicable law or agreed to in writing, software
16
- * distributed under the License is distributed on an "AS IS" BASIS,
17
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18
- * See the License for the specific language governing permissions and
19
- * limitations under the License.
20
- */
21
- //import { newE2EPage } from '@stencil/core/testing';
22
- describe('solution-contents', () => {
23
- it('renders without a solution', async () => {
24
- //TEST commented out for now.
25
- // need to work out how we pass translations
26
- // e2e tests don't seem to support a similar apporach to the unit tests where we can use template to load JSX
27
- // could flatten the translations further so it would contain no sub groups
28
- // could set default translations for each file
29
- // and could still have a test to compare the default with the actual as a way to verify
30
- expect("a").toEqual("a");
31
- // const page = await newE2EPage();
32
- // await page.setContent('<solution-contents></solution-contents>');
33
- // const element = await page.find('solution-contents');
34
- // expect(element).toHaveClass('hydrated');
35
- });
36
- // it('renders with a solution', async () => {
37
- // const page = await newE2EPage();
38
- // await page.setContent('<solution-contents></solution-contents>');
39
- // const element = await page.find('solution-contents');
40
- // element.setProperty("value",
41
- // [{
42
- // "id": "1",
43
- // "title": "Dashboard 1"
44
- // }, {
45
- // "id": "2",
46
- // "title": "Dashboard 2",
47
- // "dependencies": [{
48
- // "id": "3",
49
- // "title": "Map 1",
50
- // "dependencies": [{
51
- // "id": "4",
52
- // "title": "View 1",
53
- // "dependencies": [{
54
- // "id": "5",
55
- // "title": "Feature Service 1"
56
- // }]
57
- // }]
58
- // }]
59
- // }, {
60
- // "id": "6",
61
- // "title": "Application 1",
62
- // "dependencies": [{
63
- // "id": "7",
64
- // "title": "Group 1",
65
- // "dependencies": [{
66
- // "id": "8",
67
- // "title": "Map 2",
68
- // "dependencies": [{
69
- // "id": "9",
70
- // "title": "Feature Service 2"
71
- // }, {
72
- // "id": "10",
73
- // "title": "Feature Service 3"
74
- // }, {
75
- // "id": "11",
76
- // "title": "Map 3",
77
- // "dependencies": [{
78
- // "id": "12",
79
- // "title": "Feature Service 4"
80
- // }]
81
- // }]
82
- // }]
83
- // }]
84
- // }, {
85
- // "id": "13",
86
- // "title": "Notebook 1"
87
- // }, {
88
- // "id": "14",
89
- // "title": "Survey 1"
90
- // }]
91
- // );
92
- // await page.waitForChanges();
93
- // });
94
- });
@@ -1,143 +0,0 @@
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
- /** @license
7
- * Copyright 2022 Esri
8
- *
9
- * Licensed under the Apache License, Version 2.0 (the "License");
10
- * you may not use this file except in compliance with the License.
11
- * You may obtain a copy of the License at
12
- *
13
- * http://www.apache.org/licenses/LICENSE-2.0
14
- *
15
- * Unless required by applicable law or agreed to in writing, software
16
- * distributed under the License is distributed on an "AS IS" BASIS,
17
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18
- * See the License for the specific language governing permissions and
19
- * limitations under the License.
20
- */
21
- import { newSpecPage } from "@stencil/core/testing";
22
- import { SolutionContents } from "../solution-contents";
23
- import { value } from "../../../demos/data/solution-contents-data.json";
24
- import { h } from "@stencil/core";
25
- xdescribe('solution-contents', () => {
26
- it('renders', async () => {
27
- const page = await newSpecPage({
28
- components: [SolutionContents],
29
- supportsShadowDom: false,
30
- template: () => (h("solution-contents", { "template-hierarchy": value }))
31
- });
32
- expect(page.root).toEqualHtml(`
33
- <solution-contents>
34
- <calcite-tree>
35
-
36
- <calcite-tree-item>
37
- <solution-item-icon type="Dashboard"></solution-item-icon>
38
- <span class="icon-text" title="Dashboard 1">
39
- Dashboard 1
40
- </span>
41
- </calcite-tree-item>
42
-
43
- <calcite-tree-item>
44
- <solution-item-icon type="Dashboard"></solution-item-icon>
45
- <span class="icon-text" title="Dashboard 2">
46
- Dashboard 2
47
- </span>
48
- <calcite-tree slot="children">
49
- <calcite-tree-item>
50
- <solution-item-icon type="Web Map"></solution-item-icon>
51
- <span class="icon-text" title="Map 1">
52
- Map 1
53
- </span>
54
- <calcite-tree slot="children">
55
- <calcite-tree-item>
56
- <solution-item-icon type="Feature Service"></solution-item-icon>
57
- <span class="icon-text" title="View 1">
58
- View 1
59
- </span>
60
- <calcite-tree slot="children">
61
- <calcite-tree-item>
62
- <solution-item-icon type="Feature Service"></solution-item-icon>
63
- <span class="icon-text" title="Feature Service 1">
64
- Feature Service 1
65
- </span>
66
- </calcite-tree-item>
67
- </calcite-tree>
68
- </calcite-tree-item>
69
- </calcite-tree>
70
- </calcite-tree-item>
71
- </calcite-tree>
72
- </calcite-tree-item>
73
-
74
- <calcite-tree-item>
75
- <solution-item-icon type="QuickCapture Project"></solution-item-icon>
76
- <span class="icon-text" title="Application 1">
77
- Application 1
78
- </span>
79
- <calcite-tree slot="children">
80
- <calcite-tree-item>
81
- <solution-item-icon type="Group"></solution-item-icon>
82
- <span class="icon-text" title="Group 1">
83
- Group 1
84
- </span>
85
- <calcite-tree slot="children">
86
- <calcite-tree-item>
87
- <solution-item-icon type="Web Map"></solution-item-icon>
88
- <span class="icon-text" title="Map 2">
89
- Map 2
90
- </span>
91
- <calcite-tree slot="children">
92
- <calcite-tree-item>
93
- <solution-item-icon type="Feature Service"></solution-item-icon>
94
- <span class="icon-text" title="Feature Service 2">
95
- Feature Service 2
96
- </span>
97
- </calcite-tree-item>
98
- <calcite-tree-item>
99
- <solution-item-icon type="Feature Service"></solution-item-icon>
100
- <span class="icon-text" title="Feature Service 3">
101
- Feature Service 3
102
- </span>
103
- </calcite-tree-item>
104
- <calcite-tree-item>
105
- <solution-item-icon type="Web Map"></solution-item-icon>
106
- <span class="icon-text" title="Map 3">
107
- Map 3
108
- </span>
109
- <calcite-tree slot="children">
110
- <calcite-tree-item>
111
- <solution-item-icon type="Feature Service"></solution-item-icon>
112
- <span class="icon-text" title="Feature Service 4">
113
- Feature Service 4
114
- </span>
115
- </calcite-tree-item>
116
- </calcite-tree>
117
- </calcite-tree-item>
118
- </calcite-tree>
119
- </calcite-tree-item>
120
- </calcite-tree>
121
- </calcite-tree-item>
122
- </calcite-tree>
123
- </calcite-tree-item>
124
-
125
- <calcite-tree-item>
126
- <solution-item-icon type="Notebook"></solution-item-icon>
127
- <span class="icon-text" title="Notebook 1">
128
- Notebook 1
129
- </span>
130
- </calcite-tree-item>
131
-
132
- <calcite-tree-item>
133
- <solution-item-icon type="Form"></solution-item-icon>
134
- <span class="icon-text" title="Survey 1">
135
- Survey 1
136
- </span>
137
- </calcite-tree-item>
138
-
139
- </calcite-tree>
140
- </solution-contents>
141
- `);
142
- });
143
- });
@@ -1,36 +0,0 @@
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
- /** @license
7
- * Copyright 2022 Esri
8
- *
9
- * Licensed under the Apache License, Version 2.0 (the "License");
10
- * you may not use this file except in compliance with the License.
11
- * You may obtain a copy of the License at
12
- *
13
- * http://www.apache.org/licenses/LICENSE-2.0
14
- *
15
- * Unless required by applicable law or agreed to in writing, software
16
- * distributed under the License is distributed on an "AS IS" BASIS,
17
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18
- * See the License for the specific language governing permissions and
19
- * limitations under the License.
20
- */
21
- // import { newE2EPage } from '@stencil/core/testing';
22
- describe('solution-item', () => {
23
- it('renders', async () => {
24
- //TEST commented out for now.
25
- // need to work out how we pass translations
26
- // e2e tests don't seem to support a similar apporach to the unit tests where we can use template to load JSX
27
- // could flatten the translations further so it would contain no sub groups
28
- // could set default translations for each file
29
- // and could still have a test to compare the default with the actual as a way to verify
30
- expect("a").toEqual("a");
31
- // const page = await newE2EPage();
32
- // await page.setContent('<solution-item></solution-item>');
33
- // const element = await page.find('solution-item');
34
- // expect(element).toHaveClass('hydrated');
35
- });
36
- });
@@ -1,77 +0,0 @@
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
- /** @license
7
- * Copyright 2022 Esri
8
- *
9
- * Licensed under the Apache License, Version 2.0 (the "License");
10
- * you may not use this file except in compliance with the License.
11
- * You may obtain a copy of the License at
12
- *
13
- * http://www.apache.org/licenses/LICENSE-2.0
14
- *
15
- * Unless required by applicable law or agreed to in writing, software
16
- * distributed under the License is distributed on an "AS IS" BASIS,
17
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18
- * See the License for the specific language governing permissions and
19
- * limitations under the License.
20
- */
21
- import { newSpecPage } from "@stencil/core/testing";
22
- import { SolutionItem } from "../solution-item";
23
- import { h } from "@stencil/core";
24
- xdescribe('solution-item', () => {
25
- it('renders', async () => {
26
- const page = await newSpecPage({
27
- components: [SolutionItem],
28
- supportsShadowDom: false,
29
- template: () => (h("solution-item", null))
30
- });
31
- expect(page.root).toEqualHtml(`
32
- <solution-item>
33
- <div class="configuration-container">
34
- <div class="configuration">
35
- <calcite-tabs class="config-tabs" style="display: none;">
36
- <calcite-tab-nav slot="tab-nav">
37
- <calcite-tab-title>
38
- Group Details
39
- </calcite-tab-title>
40
- <calcite-tab-title>
41
- Sharing
42
- </calcite-tab-title>
43
- </calcite-tab-nav>
44
- <calcite-tab active="" class="config-tab" id="group-tab">
45
- <solution-item-details type=""></solution-item-details>
46
- </calcite-tab>
47
- <calcite-tab class="config-tab" id="share-tab">
48
- <solution-item-sharing groupid=""></solution-item-sharing>
49
- </calcite-tab>
50
- </calcite-tabs>
51
- <calcite-tabs class="config-tabs" style="display: inherit;">
52
- <calcite-tab-nav slot="tab-nav">
53
- <calcite-tab-title>Item Details</calcite-tab-title>
54
- <calcite-tab-title>Data</calcite-tab-title>
55
- <calcite-tab-title>Properties</calcite-tab-title>
56
- <calcite-tab-title>Resources</calcite-tab-title>
57
- </calcite-tab-nav>
58
-
59
- <calcite-tab class="config-tab" active>
60
- <solution-item-details type=""></solution-item-details>
61
- </calcite-tab>
62
- <calcite-tab class="config-tab" id="data-tab">
63
- <solution-template-data instanceid="data" itemid=""></solution-template-data>
64
- </calcite-tab>
65
- <calcite-tab class="config-tab" id="props-tab">
66
- <solution-template-data instanceid="props" itemid=""></solution-template-data>
67
- </calcite-tab>
68
- <calcite-tab class="config-tab" id="resources-tab">
69
- <solution-resource-item class="solutions-resource-container" itemid=""></solution-resource-item>
70
- </calcite-tab>
71
- </calcite-tabs>
72
- </div>
73
- </div>
74
- </solution-item>
75
- `);
76
- });
77
- });
@@ -1,36 +0,0 @@
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
- /** @license
7
- * Copyright 2022 Esri
8
- *
9
- * Licensed under the Apache License, Version 2.0 (the "License");
10
- * you may not use this file except in compliance with the License.
11
- * You may obtain a copy of the License at
12
- *
13
- * http://www.apache.org/licenses/LICENSE-2.0
14
- *
15
- * Unless required by applicable law or agreed to in writing, software
16
- * distributed under the License is distributed on an "AS IS" BASIS,
17
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18
- * See the License for the specific language governing permissions and
19
- * limitations under the License.
20
- */
21
- // import { newE2EPage } from '@stencil/core/testing';
22
- describe('solution-item-details', () => {
23
- it('renders', async () => {
24
- //TEST commented out for now.
25
- // need to work out how we pass translations
26
- // e2e tests don't seem to support a similar apporach to the unit tests where we can use template to load JSX
27
- // could flatten the translations further so it would contain no sub groups
28
- // could set default translations for each file
29
- // and could still have a test to compare the default with the actual as a way to verify
30
- expect("a").toEqual("a");
31
- // const page = await newE2EPage();
32
- // await page.setContent('<solution-item-details></solution-item-details>');
33
- // const element = await page.find('solution-item-details');
34
- // expect(element).toHaveClass('hydrated');
35
- });
36
- });
@@ -1,142 +0,0 @@
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
- /** @license
7
- * Copyright 2022 Esri
8
- *
9
- * Licensed under the Apache License, Version 2.0 (the "License");
10
- * you may not use this file except in compliance with the License.
11
- * You may obtain a copy of the License at
12
- *
13
- * http://www.apache.org/licenses/LICENSE-2.0
14
- *
15
- * Unless required by applicable law or agreed to in writing, software
16
- * distributed under the License is distributed on an "AS IS" BASIS,
17
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18
- * See the License for the specific language governing permissions and
19
- * limitations under the License.
20
- */
21
- import { newSpecPage } from "@stencil/core/testing";
22
- import { SolutionItemDetails } from "../solution-item-details";
23
- import { value } from "../../../demos/data/solution-item-details-data.json";
24
- //import * as groupData from '../../../demos/data/solution-group-details-data.json';
25
- import { h } from "@stencil/core";
26
- xdescribe('solution-item-details', () => {
27
- it('renders', async () => {
28
- const page = await newSpecPage({
29
- components: [SolutionItemDetails],
30
- supportsShadowDom: false,
31
- template: () => (h("solution-item-details", { "item-id": value }))
32
- });
33
- expect(page.root).toEqualHtml(`
34
- <solution-item-details type="">
35
- <div class="parent-container">
36
- <div class="inputBottomSeparation">
37
- <calcite-input id="item-title" value="ElectionGeography_public"></calcite-input>
38
- </div>
39
-
40
- <div class="inputBottomSeparation">
41
-
42
- <input class="display-none" type="file" accept=".jpg,.gif,.png,image/jpg,image/gif,image/png" />
43
-
44
- <button class="btn-link font-size--3 inline-block trailer-quarter">
45
- <svg viewBox="0 0 16 16" width="16" height="16" class="icon-inline icon-inline--on-left">
46
- <path d="M14.792 2.666l-1.414-1.413a.965.965 0 0 0-1.385-.03l-1.444 1.444-8.763 8.72L.03 15.481a.371.371 0 0 0 .488.488l4.096-1.756 8.763-8.72-.001-.001.002.002 1.443-1.444a.965.965 0 0 0-.03-1.385zM1.569 14.431l.554-1.293.74.739zm2.338-.924l-1.414-1.414 7.963-7.92 1.414 1.415zm8.67-8.626l-1.413-1.414 1.29-1.29a.306.306 0 0 1 .433 0l.981.98a.306.306 0 0 1 0 .433z"></path>
47
- </svg> Edit Thumbnail
48
- </button>
49
-
50
- <div class="flex">
51
- <div class="img-container">
52
- <img class="scale-down" width="200" height="133" />
53
- </div>
54
- <div class="snippet-count-container">
55
- <calcite-input id="item-snippet" maxlength="250" type="textarea" value="A public feature layer view used by election staff to share information about election geography with the public."></calcite-input>
56
- <label id="item-snippet-count" class="font-size--3"></label>
57
- </div>
58
- </div>
59
- </div>
60
-
61
- <calcite-label>Description
62
- <label id="item-description-label">
63
- <calcite-input id="item-description" type="textarea" value="A public feature layer view used by election staff to share information about election geography with the public."></calcite-input>
64
- </label>
65
- </calcite-label>
66
-
67
- <calcite-label>Tags
68
- <label id="item-tags-label">
69
- <calcite-input id="item-tags" value="Precincts,Polling Places,Voting,Early Voting,Ballots,Voting Centers,Elected Officials,Secretary of State,Elections,Election Day,Election Officials,Clerks"></calcite-input>
70
- </label>
71
- </calcite-label>
72
-
73
- <calcite-label>Credits
74
- <label id="item-credits-label">
75
- <calcite-input id="item-credits" value="Esri"></calcite-input>
76
- </label>
77
- </calcite-label>
78
-
79
- <calcite-label>
80
- <label id="item-terms-label">Terms of Use
81
- <calcite-input id="item-terms" type="textarea"></calcite-input>
82
- </label>
83
- </calcite-label>
84
- </div>
85
- </solution-item-details>
86
- `);
87
- });
88
- /*
89
- it('renders group details', async () => {
90
- const page = await newSpecPage({
91
- components: [SolutionItemDetails],
92
- supportsShadowDom: false,
93
- template: () => (
94
- <solution-item-details type="Group" value={groupData.value}></solution-item-details>
95
- )
96
- });
97
- expect(page.root).toEqualHtml(`
98
- <solution-item-details type="Group">
99
- <div class="parent-container">
100
- <div class="inputBottomSeparation">
101
- <calcite-input id="item-title" value="Election"></calcite-input>
102
- </div>
103
-
104
- <div class="inputBottomSeparation">
105
-
106
- <input class="display-none" type="file" accept=".jpg,.gif,.png,image/jpg,image/gif,image/png" />
107
-
108
- <button class="btn-link font-size--3 inline-block trailer-quarter">
109
- <svg viewBox="0 0 16 16" width="16" height="16" class="icon-inline icon-inline--on-left">
110
- <path d="M14.792 2.666l-1.414-1.413a.965.965 0 0 0-1.385-.03l-1.444 1.444-8.763 8.72L.03 15.481a.371.371 0 0 0 .488.488l4.096-1.756 8.763-8.72-.001-.001.002.002 1.443-1.444a.965.965 0 0 0-.03-1.385zM1.569 14.431l.554-1.293.74.739zm2.338-.924l-1.414-1.414 7.963-7.92 1.414 1.415zm8.67-8.626l-1.413-1.414 1.29-1.29a.306.306 0 0 1 .433 0l.981.98a.306.306 0 0 1 0 .433z"></path>
111
- </svg> Edit Thumbnail
112
- </button>
113
-
114
- <div class="flex">
115
- <div class="img-container">
116
- <img class="scale-down" width="200" height="133" />
117
- </div>
118
- <div class="snippet-count-container">
119
- <calcite-input id="item-snippet" maxlength="250" type="textarea" value="A public group used by election staff to share information about election items."></calcite-input>
120
- <label id="item-snippet-count" class="font-size--3"></label>
121
- </div>
122
- </div>
123
- </div>
124
-
125
- <calcite-label>Description
126
- <label id="item-description-label">
127
- <calcite-input id="item-description" type="textarea" value="A public group used by election staff to share information about election items."></calcite-input>
128
- </label>
129
- </calcite-label>
130
-
131
- <calcite-label>Tags
132
- <label id="item-tags-label">
133
- <calcite-input id="item-tags" value="Elections,Election Day"></calcite-input>
134
- </label>
135
- </calcite-label>
136
-
137
- </div>
138
- </solution-item-details>
139
- `);
140
- });
141
- */
142
- });
@@ -1,29 +0,0 @@
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
- /** @license
7
- * Copyright 2022 Esri
8
- *
9
- * Licensed under the Apache License, Version 2.0 (the "License");
10
- * you may not use this file except in compliance with the License.
11
- * You may obtain a copy of the License at
12
- *
13
- * http://www.apache.org/licenses/LICENSE-2.0
14
- *
15
- * Unless required by applicable law or agreed to in writing, software
16
- * distributed under the License is distributed on an "AS IS" BASIS,
17
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18
- * See the License for the specific language governing permissions and
19
- * limitations under the License.
20
- */
21
- describe('solution-item-icon', () => {
22
- it('renders', async () => {
23
- // const page = await newE2EPage();
24
- // await page.setContent('<solution-item-icon></solution-item-icon>');
25
- // const element = await page.find('solution-item-icon');
26
- // expect(element).toHaveClass('hydrated');
27
- expect("a").toEqual("a");
28
- });
29
- });
@@ -1,39 +0,0 @@
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
- /** @license
7
- * Copyright 2022 Esri
8
- *
9
- * Licensed under the Apache License, Version 2.0 (the "License");
10
- * you may not use this file except in compliance with the License.
11
- * You may obtain a copy of the License at
12
- *
13
- * http://www.apache.org/licenses/LICENSE-2.0
14
- *
15
- * Unless required by applicable law or agreed to in writing, software
16
- * distributed under the License is distributed on an "AS IS" BASIS,
17
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18
- * See the License for the specific language governing permissions and
19
- * limitations under the License.
20
- */
21
- import { newSpecPage } from "@stencil/core/testing";
22
- import { SolutionItemIcon } from "../solution-item-icon";
23
- import { value } from "../../../demos/data/solution-item-icon-data.json";
24
- import { h } from "@stencil/core";
25
- xdescribe('solution-item-icon', () => {
26
- it('renders', async () => {
27
- const page = await newSpecPage({
28
- components: [SolutionItemIcon],
29
- template: () => (h("solution-item-icon", { type: value.type, typeKeywords: value.typeKeywords }))
30
- });
31
- expect(page.root).toEqualHtml(`
32
- <solution-item-icon>
33
- <div title="Feature Service">
34
- <img class="item-type-icon item-type-icon-margin" height="16" src="/item-icons/featureshosted16.png" width="16">
35
- </div>
36
- </solution-item-icon>
37
- `);
38
- });
39
- });
@@ -1,36 +0,0 @@
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
- /** @license
7
- * Copyright 2022 Esri
8
- *
9
- * Licensed under the Apache License, Version 2.0 (the "License");
10
- * you may not use this file except in compliance with the License.
11
- * You may obtain a copy of the License at
12
- *
13
- * http://www.apache.org/licenses/LICENSE-2.0
14
- *
15
- * Unless required by applicable law or agreed to in writing, software
16
- * distributed under the License is distributed on an "AS IS" BASIS,
17
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18
- * See the License for the specific language governing permissions and
19
- * limitations under the License.
20
- */
21
- //import { newE2EPage } from '@stencil/core/testing';
22
- describe('solution-item-sharing', () => {
23
- it('renders', async () => {
24
- //TEST commented out for now.
25
- // need to work out how we pass translations
26
- // e2e tests don't seem to support a similar apporach to the unit tests where we can use template to load JSX
27
- // could flatten the translations further so it would contain no sub groups
28
- // could set default translations for each file
29
- // and could still have a test to compare the default with the actual as a way to verify
30
- expect("a").toEqual("a");
31
- // const page = await newE2EPage();
32
- // await page.setContent('<solution-item-sharing></solution-item-sharing>');
33
- // const element = await page.find('solution-item-sharing');
34
- // expect(element).toHaveClass('hydrated');
35
- });
36
- });