@esri/solutions-components 0.2.0 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (531) hide show
  1. package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +16 -6
  2. package/dist/cjs/calcite-shell-panel_14.cjs.entry.js.map +1 -1
  3. package/dist/cjs/solution-configuration.cjs.entry.js +1095 -4
  4. package/dist/cjs/solution-configuration.cjs.entry.js.map +1 -1
  5. package/dist/cjs/solution-contents_3.cjs.entry.js +3 -1
  6. package/dist/cjs/solution-contents_3.cjs.entry.js.map +1 -1
  7. package/dist/cjs/{solution-store-f0547fe7.js → solution-store-893499a5.js} +8 -1
  8. package/dist/cjs/solution-store-893499a5.js.map +1 -0
  9. package/dist/collection/components/solution-configuration/solution-configuration.js +14 -11
  10. package/dist/collection/components/solution-configuration/solution-configuration.js.map +1 -1
  11. package/dist/collection/components/solution-item/solution-item.js +2 -0
  12. package/dist/collection/components/solution-item/solution-item.js.map +1 -1
  13. package/dist/collection/components/solution-item-details/solution-item-details.js +15 -5
  14. package/dist/collection/components/solution-item-details/solution-item-details.js.map +1 -1
  15. package/dist/collection/utils/solution-store.js +2 -0
  16. package/dist/collection/utils/solution-store.js.map +1 -1
  17. package/dist/collection/utils/solution-store.ts +2 -0
  18. package/dist/esm/calcite-shell-panel_14.entry.js +16 -6
  19. package/dist/esm/calcite-shell-panel_14.entry.js.map +1 -1
  20. package/dist/esm/solution-configuration.entry.js +1095 -4
  21. package/dist/esm/solution-configuration.entry.js.map +1 -1
  22. package/dist/esm/solution-contents_3.entry.js +3 -1
  23. package/dist/esm/solution-contents_3.entry.js.map +1 -1
  24. package/dist/esm/{solution-store-c1f6173a.js → solution-store-0c58c852.js} +4 -2
  25. package/dist/esm/solution-store-0c58c852.js.map +1 -0
  26. package/dist/solutions-components/{p-065830b8.js → p-659edb14.js} +4 -2
  27. package/dist/solutions-components/p-659edb14.js.map +1 -0
  28. package/dist/solutions-components/{p-ee9be0ef.entry.js → p-77c75f3a.entry.js} +4 -2
  29. package/dist/solutions-components/p-77c75f3a.entry.js.map +1 -0
  30. package/dist/solutions-components/p-90629c1d.entry.js +1986 -0
  31. package/dist/solutions-components/p-90629c1d.entry.js.map +1 -0
  32. package/dist/solutions-components/{p-0e7a0839.entry.js → p-984cb687.entry.js} +17 -7
  33. package/dist/solutions-components/p-984cb687.entry.js.map +1 -0
  34. package/dist/solutions-components/solutions-components.esm.js +1 -1
  35. package/dist/solutions-components/utils/solution-store.ts +2 -0
  36. package/dist/solutions-components_commit.txt +9 -7
  37. package/dist/types/components/solution-item-details/solution-item-details.d.ts +2 -1
  38. package/package.json +1 -1
  39. package/dist/cjs/solution-store-f0547fe7.js.map +0 -1
  40. package/dist/components/ExpandToggle.js +0 -112
  41. package/dist/components/ExpandToggle.js.map +0 -1
  42. package/dist/components/Heading.js +0 -24
  43. package/dist/components/Heading.js.map +0 -1
  44. package/dist/components/_commonjsHelpers.js +0 -24
  45. package/dist/components/_commonjsHelpers.js.map +0 -1
  46. package/dist/components/action-bar.js +0 -278
  47. package/dist/components/action-bar.js.map +0 -1
  48. package/dist/components/action-group.js +0 -151
  49. package/dist/components/action-group.js.map +0 -1
  50. package/dist/components/action-menu.js +0 -358
  51. package/dist/components/action-menu.js.map +0 -1
  52. package/dist/components/action.js +0 -216
  53. package/dist/components/action.js.map +0 -1
  54. package/dist/components/array.js +0 -17
  55. package/dist/components/array.js.map +0 -1
  56. package/dist/components/buffer-tools.d.ts +0 -11
  57. package/dist/components/buffer-tools.js +0 -13
  58. package/dist/components/buffer-tools.js.map +0 -1
  59. package/dist/components/buffer-tools2.js +0 -256
  60. package/dist/components/buffer-tools2.js.map +0 -1
  61. package/dist/components/button.js +0 -265
  62. package/dist/components/button.js.map +0 -1
  63. package/dist/components/calcite-accordion-item.js +0 -246
  64. package/dist/components/calcite-accordion-item.js.map +0 -1
  65. package/dist/components/calcite-accordion.js +0 -182
  66. package/dist/components/calcite-accordion.js.map +0 -1
  67. package/dist/components/calcite-action-bar.js +0 -13
  68. package/dist/components/calcite-action-bar.js.map +0 -1
  69. package/dist/components/calcite-action-group.js +0 -13
  70. package/dist/components/calcite-action-group.js.map +0 -1
  71. package/dist/components/calcite-action-menu.js +0 -13
  72. package/dist/components/calcite-action-menu.js.map +0 -1
  73. package/dist/components/calcite-action-pad.js +0 -199
  74. package/dist/components/calcite-action-pad.js.map +0 -1
  75. package/dist/components/calcite-action.js +0 -13
  76. package/dist/components/calcite-action.js.map +0 -1
  77. package/dist/components/calcite-alert.js +0 -299
  78. package/dist/components/calcite-alert.js.map +0 -1
  79. package/dist/components/calcite-avatar.js +0 -184
  80. package/dist/components/calcite-avatar.js.map +0 -1
  81. package/dist/components/calcite-block-section.js +0 -157
  82. package/dist/components/calcite-block-section.js.map +0 -1
  83. package/dist/components/calcite-block.js +0 -277
  84. package/dist/components/calcite-block.js.map +0 -1
  85. package/dist/components/calcite-button.js +0 -13
  86. package/dist/components/calcite-button.js.map +0 -1
  87. package/dist/components/calcite-card.js +0 -189
  88. package/dist/components/calcite-card.js.map +0 -1
  89. package/dist/components/calcite-checkbox.js +0 -13
  90. package/dist/components/calcite-checkbox.js.map +0 -1
  91. package/dist/components/calcite-chip.js +0 -13
  92. package/dist/components/calcite-chip.js.map +0 -1
  93. package/dist/components/calcite-color-picker-hex-input.js +0 -13
  94. package/dist/components/calcite-color-picker-hex-input.js.map +0 -1
  95. package/dist/components/calcite-color-picker-swatch.js +0 -13
  96. package/dist/components/calcite-color-picker-swatch.js.map +0 -1
  97. package/dist/components/calcite-color-picker.js +0 -1038
  98. package/dist/components/calcite-color-picker.js.map +0 -1
  99. package/dist/components/calcite-combobox-item-group.js +0 -77
  100. package/dist/components/calcite-combobox-item-group.js.map +0 -1
  101. package/dist/components/calcite-combobox-item.js +0 -13
  102. package/dist/components/calcite-combobox-item.js.map +0 -1
  103. package/dist/components/calcite-combobox.js +0 -13
  104. package/dist/components/calcite-combobox.js.map +0 -1
  105. package/dist/components/calcite-date-picker-day.js +0 -13
  106. package/dist/components/calcite-date-picker-day.js.map +0 -1
  107. package/dist/components/calcite-date-picker-month-header.js +0 -13
  108. package/dist/components/calcite-date-picker-month-header.js.map +0 -1
  109. package/dist/components/calcite-date-picker-month.js +0 -13
  110. package/dist/components/calcite-date-picker-month.js.map +0 -1
  111. package/dist/components/calcite-date-picker.js +0 -13
  112. package/dist/components/calcite-date-picker.js.map +0 -1
  113. package/dist/components/calcite-dropdown-group.js +0 -101
  114. package/dist/components/calcite-dropdown-group.js.map +0 -1
  115. package/dist/components/calcite-dropdown-item.js +0 -237
  116. package/dist/components/calcite-dropdown-item.js.map +0 -1
  117. package/dist/components/calcite-dropdown.js +0 -13
  118. package/dist/components/calcite-dropdown.js.map +0 -1
  119. package/dist/components/calcite-fab.js +0 -146
  120. package/dist/components/calcite-fab.js.map +0 -1
  121. package/dist/components/calcite-filter.js +0 -197
  122. package/dist/components/calcite-filter.js.map +0 -1
  123. package/dist/components/calcite-flow-item.js +0 -245
  124. package/dist/components/calcite-flow-item.js.map +0 -1
  125. package/dist/components/calcite-flow.js +0 -149
  126. package/dist/components/calcite-flow.js.map +0 -1
  127. package/dist/components/calcite-graph.js +0 -13
  128. package/dist/components/calcite-graph.js.map +0 -1
  129. package/dist/components/calcite-handle.js +0 -13
  130. package/dist/components/calcite-handle.js.map +0 -1
  131. package/dist/components/calcite-icon.js +0 -13
  132. package/dist/components/calcite-icon.js.map +0 -1
  133. package/dist/components/calcite-inline-editable.js +0 -296
  134. package/dist/components/calcite-inline-editable.js.map +0 -1
  135. package/dist/components/calcite-input-date-picker.js +0 -715
  136. package/dist/components/calcite-input-date-picker.js.map +0 -1
  137. package/dist/components/calcite-input-message.js +0 -13
  138. package/dist/components/calcite-input-message.js.map +0 -1
  139. package/dist/components/calcite-input-number.js +0 -639
  140. package/dist/components/calcite-input-number.js.map +0 -1
  141. package/dist/components/calcite-input-text.js +0 -402
  142. package/dist/components/calcite-input-text.js.map +0 -1
  143. package/dist/components/calcite-input-time-picker.js +0 -436
  144. package/dist/components/calcite-input-time-picker.js.map +0 -1
  145. package/dist/components/calcite-input.js +0 -13
  146. package/dist/components/calcite-input.js.map +0 -1
  147. package/dist/components/calcite-label.js +0 -13
  148. package/dist/components/calcite-label.js.map +0 -1
  149. package/dist/components/calcite-link.js +0 -13
  150. package/dist/components/calcite-link.js.map +0 -1
  151. package/dist/components/calcite-list-item-group.js +0 -67
  152. package/dist/components/calcite-list-item-group.js.map +0 -1
  153. package/dist/components/calcite-list-item.js +0 -13
  154. package/dist/components/calcite-list-item.js.map +0 -1
  155. package/dist/components/calcite-list.js +0 -13
  156. package/dist/components/calcite-list.js.map +0 -1
  157. package/dist/components/calcite-loader.js +0 -13
  158. package/dist/components/calcite-loader.js.map +0 -1
  159. package/dist/components/calcite-modal.js +0 -500
  160. package/dist/components/calcite-modal.js.map +0 -1
  161. package/dist/components/calcite-notice.js +0 -13
  162. package/dist/components/calcite-notice.js.map +0 -1
  163. package/dist/components/calcite-option-group.js +0 -66
  164. package/dist/components/calcite-option-group.js.map +0 -1
  165. package/dist/components/calcite-option.js +0 -13
  166. package/dist/components/calcite-option.js.map +0 -1
  167. package/dist/components/calcite-pagination.js +0 -260
  168. package/dist/components/calcite-pagination.js.map +0 -1
  169. package/dist/components/calcite-panel.js +0 -13
  170. package/dist/components/calcite-panel.js.map +0 -1
  171. package/dist/components/calcite-pick-list-group.js +0 -76
  172. package/dist/components/calcite-pick-list-group.js.map +0 -1
  173. package/dist/components/calcite-pick-list-item.js +0 -13
  174. package/dist/components/calcite-pick-list-item.js.map +0 -1
  175. package/dist/components/calcite-pick-list.js +0 -175
  176. package/dist/components/calcite-pick-list.js.map +0 -1
  177. package/dist/components/calcite-popover-manager.js +0 -96
  178. package/dist/components/calcite-popover-manager.js.map +0 -1
  179. package/dist/components/calcite-popover.js +0 -13
  180. package/dist/components/calcite-popover.js.map +0 -1
  181. package/dist/components/calcite-progress.js +0 -13
  182. package/dist/components/calcite-progress.js.map +0 -1
  183. package/dist/components/calcite-radio-button-group.js +0 -134
  184. package/dist/components/calcite-radio-button-group.js.map +0 -1
  185. package/dist/components/calcite-radio-button.js +0 -312
  186. package/dist/components/calcite-radio-button.js.map +0 -1
  187. package/dist/components/calcite-radio-group-item.js +0 -13
  188. package/dist/components/calcite-radio-group-item.js.map +0 -1
  189. package/dist/components/calcite-radio-group.js +0 -13
  190. package/dist/components/calcite-radio-group.js.map +0 -1
  191. package/dist/components/calcite-rating.js +0 -203
  192. package/dist/components/calcite-rating.js.map +0 -1
  193. package/dist/components/calcite-scrim.js +0 -13
  194. package/dist/components/calcite-scrim.js.map +0 -1
  195. package/dist/components/calcite-select.js +0 -13
  196. package/dist/components/calcite-select.js.map +0 -1
  197. package/dist/components/calcite-shell-center-row.js +0 -102
  198. package/dist/components/calcite-shell-center-row.js.map +0 -1
  199. package/dist/components/calcite-shell-panel.js +0 -13
  200. package/dist/components/calcite-shell-panel.js.map +0 -1
  201. package/dist/components/calcite-shell.js +0 -13
  202. package/dist/components/calcite-shell.js.map +0 -1
  203. package/dist/components/calcite-slider.js +0 -13
  204. package/dist/components/calcite-slider.js.map +0 -1
  205. package/dist/components/calcite-sortable-list.js +0 -204
  206. package/dist/components/calcite-sortable-list.js.map +0 -1
  207. package/dist/components/calcite-split-button.js +0 -170
  208. package/dist/components/calcite-split-button.js.map +0 -1
  209. package/dist/components/calcite-stepper-item.js +0 -273
  210. package/dist/components/calcite-stepper-item.js.map +0 -1
  211. package/dist/components/calcite-stepper.js +0 -258
  212. package/dist/components/calcite-stepper.js.map +0 -1
  213. package/dist/components/calcite-switch.js +0 -13
  214. package/dist/components/calcite-switch.js.map +0 -1
  215. package/dist/components/calcite-tab-nav.js +0 -13
  216. package/dist/components/calcite-tab-nav.js.map +0 -1
  217. package/dist/components/calcite-tab-title.js +0 -13
  218. package/dist/components/calcite-tab-title.js.map +0 -1
  219. package/dist/components/calcite-tab.js +0 -13
  220. package/dist/components/calcite-tab.js.map +0 -1
  221. package/dist/components/calcite-tabs.js +0 -13
  222. package/dist/components/calcite-tabs.js.map +0 -1
  223. package/dist/components/calcite-tile-select-group.js +0 -67
  224. package/dist/components/calcite-tile-select-group.js.map +0 -1
  225. package/dist/components/calcite-tile-select.js +0 -268
  226. package/dist/components/calcite-tile-select.js.map +0 -1
  227. package/dist/components/calcite-tile.js +0 -13
  228. package/dist/components/calcite-tile.js.map +0 -1
  229. package/dist/components/calcite-time-picker.js +0 -13
  230. package/dist/components/calcite-time-picker.js.map +0 -1
  231. package/dist/components/calcite-tip-group.js +0 -43
  232. package/dist/components/calcite-tip-group.js.map +0 -1
  233. package/dist/components/calcite-tip-manager.js +0 -225
  234. package/dist/components/calcite-tip-manager.js.map +0 -1
  235. package/dist/components/calcite-tip.js +0 -164
  236. package/dist/components/calcite-tip.js.map +0 -1
  237. package/dist/components/calcite-tooltip-manager.js +0 -59
  238. package/dist/components/calcite-tooltip-manager.js.map +0 -1
  239. package/dist/components/calcite-tooltip.js +0 -13
  240. package/dist/components/calcite-tooltip.js.map +0 -1
  241. package/dist/components/calcite-tree-item.js +0 -13
  242. package/dist/components/calcite-tree-item.js.map +0 -1
  243. package/dist/components/calcite-tree.js +0 -13
  244. package/dist/components/calcite-tree.js.map +0 -1
  245. package/dist/components/calcite-value-list-item.js +0 -13
  246. package/dist/components/calcite-value-list-item.js.map +0 -1
  247. package/dist/components/calcite-value-list.js +0 -13
  248. package/dist/components/calcite-value-list.js.map +0 -1
  249. package/dist/components/check-list.d.ts +0 -11
  250. package/dist/components/check-list.js +0 -13
  251. package/dist/components/check-list.js.map +0 -1
  252. package/dist/components/check-list2.js +0 -128
  253. package/dist/components/check-list2.js.map +0 -1
  254. package/dist/components/checkbox.js +0 -167
  255. package/dist/components/checkbox.js.map +0 -1
  256. package/dist/components/chip.js +0 -172
  257. package/dist/components/chip.js.map +0 -1
  258. package/dist/components/color-picker-hex-input.js +0 -365
  259. package/dist/components/color-picker-hex-input.js.map +0 -1
  260. package/dist/components/color-picker-swatch.js +0 -2036
  261. package/dist/components/color-picker-swatch.js.map +0 -1
  262. package/dist/components/combobox-item.js +0 -184
  263. package/dist/components/combobox-item.js.map +0 -1
  264. package/dist/components/combobox.js +0 -914
  265. package/dist/components/combobox.js.map +0 -1
  266. package/dist/components/conditionalSlot.js +0 -52
  267. package/dist/components/conditionalSlot.js.map +0 -1
  268. package/dist/components/config-buffer-tools.d.ts +0 -11
  269. package/dist/components/config-buffer-tools.js +0 -185
  270. package/dist/components/config-buffer-tools.js.map +0 -1
  271. package/dist/components/config-draw-tools.d.ts +0 -11
  272. package/dist/components/config-draw-tools.js +0 -124
  273. package/dist/components/config-draw-tools.js.map +0 -1
  274. package/dist/components/config-layer-picker.d.ts +0 -11
  275. package/dist/components/config-layer-picker.js +0 -148
  276. package/dist/components/config-layer-picker.js.map +0 -1
  277. package/dist/components/config-pdf-download.d.ts +0 -11
  278. package/dist/components/config-pdf-download.js +0 -157
  279. package/dist/components/config-pdf-download.js.map +0 -1
  280. package/dist/components/date-picker-day.js +0 -113
  281. package/dist/components/date-picker-day.js.map +0 -1
  282. package/dist/components/date-picker-month-header.js +0 -226
  283. package/dist/components/date-picker-month-header.js.map +0 -1
  284. package/dist/components/date-picker-month.js +0 -346
  285. package/dist/components/date-picker-month.js.map +0 -1
  286. package/dist/components/date-picker.js +0 -577
  287. package/dist/components/date-picker.js.map +0 -1
  288. package/dist/components/date.js +0 -182
  289. package/dist/components/date.js.map +0 -1
  290. package/dist/components/debounce.js +0 -489
  291. package/dist/components/debounce.js.map +0 -1
  292. package/dist/components/dom.js +0 -233
  293. package/dist/components/dom.js.map +0 -1
  294. package/dist/components/dropdown.js +0 -507
  295. package/dist/components/dropdown.js.map +0 -1
  296. package/dist/components/filter.js +0 -765
  297. package/dist/components/filter.js.map +0 -1
  298. package/dist/components/floating-ui.js +0 -1787
  299. package/dist/components/floating-ui.js.map +0 -1
  300. package/dist/components/form.js +0 -230
  301. package/dist/components/form.js.map +0 -1
  302. package/dist/components/graph.js +0 -256
  303. package/dist/components/graph.js.map +0 -1
  304. package/dist/components/guid.js +0 -26
  305. package/dist/components/guid.js.map +0 -1
  306. package/dist/components/handle.js +0 -121
  307. package/dist/components/handle.js.map +0 -1
  308. package/dist/components/icon.js +0 -204
  309. package/dist/components/icon.js.map +0 -1
  310. package/dist/components/index.d.ts +0 -48
  311. package/dist/components/index.js +0 -190
  312. package/dist/components/index.js.map +0 -1
  313. package/dist/components/index2.js +0 -201
  314. package/dist/components/index2.js.map +0 -1
  315. package/dist/components/input-message.js +0 -103
  316. package/dist/components/input-message.js.map +0 -1
  317. package/dist/components/input.js +0 -742
  318. package/dist/components/input.js.map +0 -1
  319. package/dist/components/interactive.js +0 -53
  320. package/dist/components/interactive.js.map +0 -1
  321. package/dist/components/interfaces.js +0 -21
  322. package/dist/components/interfaces.js.map +0 -1
  323. package/dist/components/interfaces2.js +0 -23
  324. package/dist/components/interfaces2.js.map +0 -1
  325. package/dist/components/interfaces3.js +0 -72
  326. package/dist/components/interfaces3.js.map +0 -1
  327. package/dist/components/json-editor.d.ts +0 -11
  328. package/dist/components/json-editor.js +0 -13
  329. package/dist/components/json-editor.js.map +0 -1
  330. package/dist/components/json-editor2.js +0 -443
  331. package/dist/components/json-editor2.js.map +0 -1
  332. package/dist/components/key.js +0 -18
  333. package/dist/components/key.js.map +0 -1
  334. package/dist/components/label.js +0 -108
  335. package/dist/components/label.js.map +0 -1
  336. package/dist/components/label2.js +0 -133
  337. package/dist/components/label2.js.map +0 -1
  338. package/dist/components/labelFormats.js +0 -212
  339. package/dist/components/labelFormats.js.map +0 -1
  340. package/dist/components/link.js +0 -125
  341. package/dist/components/link.js.map +0 -1
  342. package/dist/components/list-item.js +0 -151
  343. package/dist/components/list-item.js.map +0 -1
  344. package/dist/components/list.js +0 -85
  345. package/dist/components/list.js.map +0 -1
  346. package/dist/components/loadModules.js +0 -30
  347. package/dist/components/loadModules.js.map +0 -1
  348. package/dist/components/loader.js +0 -118
  349. package/dist/components/loader.js.map +0 -1
  350. package/dist/components/locale.js +0 -414
  351. package/dist/components/locale.js.map +0 -1
  352. package/dist/components/locale2.js +0 -415
  353. package/dist/components/locale2.js.map +0 -1
  354. package/dist/components/map-draw-tools.d.ts +0 -11
  355. package/dist/components/map-draw-tools.js +0 -13
  356. package/dist/components/map-draw-tools.js.map +0 -1
  357. package/dist/components/map-draw-tools2.js +0 -230
  358. package/dist/components/map-draw-tools2.js.map +0 -1
  359. package/dist/components/map-layer-picker.d.ts +0 -11
  360. package/dist/components/map-layer-picker.js +0 -13
  361. package/dist/components/map-layer-picker.js.map +0 -1
  362. package/dist/components/map-layer-picker2.js +0 -190
  363. package/dist/components/map-layer-picker2.js.map +0 -1
  364. package/dist/components/map-search.d.ts +0 -11
  365. package/dist/components/map-search.js +0 -157
  366. package/dist/components/map-search.js.map +0 -1
  367. package/dist/components/map-select-tools.d.ts +0 -11
  368. package/dist/components/map-select-tools.js +0 -13
  369. package/dist/components/map-select-tools.js.map +0 -1
  370. package/dist/components/map-select-tools2.js +0 -555
  371. package/dist/components/map-select-tools2.js.map +0 -1
  372. package/dist/components/mapViewUtils.js +0 -131
  373. package/dist/components/mapViewUtils.js.map +0 -1
  374. package/dist/components/math.js +0 -26
  375. package/dist/components/math.js.map +0 -1
  376. package/dist/components/nonChromiumPlatformUtils.js +0 -505
  377. package/dist/components/nonChromiumPlatformUtils.js.map +0 -1
  378. package/dist/components/notice.js +0 -194
  379. package/dist/components/notice.js.map +0 -1
  380. package/dist/components/observers.js +0 -58
  381. package/dist/components/observers.js.map +0 -1
  382. package/dist/components/openCloseComponent.js +0 -58
  383. package/dist/components/openCloseComponent.js.map +0 -1
  384. package/dist/components/option.js +0 -111
  385. package/dist/components/option.js.map +0 -1
  386. package/dist/components/panel.js +0 -461
  387. package/dist/components/panel.js.map +0 -1
  388. package/dist/components/pdf-download.d.ts +0 -11
  389. package/dist/components/pdf-download.js +0 -13
  390. package/dist/components/pdf-download.js.map +0 -1
  391. package/dist/components/pdf-download2.js +0 -243
  392. package/dist/components/pdf-download2.js.map +0 -1
  393. package/dist/components/pick-list-item.js +0 -257
  394. package/dist/components/pick-list-item.js.map +0 -1
  395. package/dist/components/popover.js +0 -502
  396. package/dist/components/popover.js.map +0 -1
  397. package/dist/components/progress.js +0 -62
  398. package/dist/components/progress.js.map +0 -1
  399. package/dist/components/public-notification.d.ts +0 -11
  400. package/dist/components/public-notification.js +0 -784
  401. package/dist/components/public-notification.js.map +0 -1
  402. package/dist/components/publicNotificationStore.js +0 -40
  403. package/dist/components/publicNotificationStore.js.map +0 -1
  404. package/dist/components/queryUtils.js +0 -163
  405. package/dist/components/queryUtils.js.map +0 -1
  406. package/dist/components/radio-group-item.js +0 -103
  407. package/dist/components/radio-group-item.js.map +0 -1
  408. package/dist/components/radio-group.js +0 -237
  409. package/dist/components/radio-group.js.map +0 -1
  410. package/dist/components/refine-selection-tools.d.ts +0 -11
  411. package/dist/components/refine-selection-tools.js +0 -13
  412. package/dist/components/refine-selection-tools.js.map +0 -1
  413. package/dist/components/refine-selection-tools2.js +0 -500
  414. package/dist/components/refine-selection-tools2.js.map +0 -1
  415. package/dist/components/refine-selection.d.ts +0 -11
  416. package/dist/components/refine-selection.js +0 -13
  417. package/dist/components/refine-selection.js.map +0 -1
  418. package/dist/components/refine-selection2.js +0 -369
  419. package/dist/components/refine-selection2.js.map +0 -1
  420. package/dist/components/resources.js +0 -26
  421. package/dist/components/resources.js.map +0 -1
  422. package/dist/components/resources2.js +0 -23
  423. package/dist/components/resources2.js.map +0 -1
  424. package/dist/components/resources3.js +0 -40
  425. package/dist/components/resources3.js.map +0 -1
  426. package/dist/components/scrim.js +0 -85
  427. package/dist/components/scrim.js.map +0 -1
  428. package/dist/components/select.js +0 -261
  429. package/dist/components/select.js.map +0 -1
  430. package/dist/components/shared-list-render.js +0 -321
  431. package/dist/components/shared-list-render.js.map +0 -1
  432. package/dist/components/shell-panel.js +0 -283
  433. package/dist/components/shell-panel.js.map +0 -1
  434. package/dist/components/shell.js +0 -123
  435. package/dist/components/shell.js.map +0 -1
  436. package/dist/components/slider.js +0 -898
  437. package/dist/components/slider.js.map +0 -1
  438. package/dist/components/solution-configuration.d.ts +0 -11
  439. package/dist/components/solution-configuration.js +0 -1141
  440. package/dist/components/solution-configuration.js.map +0 -1
  441. package/dist/components/solution-contents.d.ts +0 -11
  442. package/dist/components/solution-contents.js +0 -13
  443. package/dist/components/solution-contents.js.map +0 -1
  444. package/dist/components/solution-contents2.js +0 -130
  445. package/dist/components/solution-contents2.js.map +0 -1
  446. package/dist/components/solution-item-details.d.ts +0 -11
  447. package/dist/components/solution-item-details.js +0 -13
  448. package/dist/components/solution-item-details.js.map +0 -1
  449. package/dist/components/solution-item-details2.js +0 -236
  450. package/dist/components/solution-item-details2.js.map +0 -1
  451. package/dist/components/solution-item-icon.d.ts +0 -11
  452. package/dist/components/solution-item-icon.js +0 -13
  453. package/dist/components/solution-item-icon.js.map +0 -1
  454. package/dist/components/solution-item-icon2.js +0 -344
  455. package/dist/components/solution-item-icon2.js.map +0 -1
  456. package/dist/components/solution-item-sharing.d.ts +0 -11
  457. package/dist/components/solution-item-sharing.js +0 -13
  458. package/dist/components/solution-item-sharing.js.map +0 -1
  459. package/dist/components/solution-item-sharing2.js +0 -169
  460. package/dist/components/solution-item-sharing2.js.map +0 -1
  461. package/dist/components/solution-item.d.ts +0 -11
  462. package/dist/components/solution-item.js +0 -13
  463. package/dist/components/solution-item.js.map +0 -1
  464. package/dist/components/solution-item2.js +0 -317
  465. package/dist/components/solution-item2.js.map +0 -1
  466. package/dist/components/solution-organization-variables.d.ts +0 -11
  467. package/dist/components/solution-organization-variables.js +0 -13
  468. package/dist/components/solution-organization-variables.js.map +0 -1
  469. package/dist/components/solution-organization-variables2.js +0 -134
  470. package/dist/components/solution-organization-variables2.js.map +0 -1
  471. package/dist/components/solution-resource-item.d.ts +0 -11
  472. package/dist/components/solution-resource-item.js +0 -13
  473. package/dist/components/solution-resource-item.js.map +0 -1
  474. package/dist/components/solution-resource-item2.js +0 -358
  475. package/dist/components/solution-resource-item2.js.map +0 -1
  476. package/dist/components/solution-spatial-ref.d.ts +0 -11
  477. package/dist/components/solution-spatial-ref.js +0 -13
  478. package/dist/components/solution-spatial-ref.js.map +0 -1
  479. package/dist/components/solution-spatial-ref2.js +0 -21448
  480. package/dist/components/solution-spatial-ref2.js.map +0 -1
  481. package/dist/components/solution-store.js +0 -4094
  482. package/dist/components/solution-store.js.map +0 -1
  483. package/dist/components/solution-template-data.d.ts +0 -11
  484. package/dist/components/solution-template-data.js +0 -13
  485. package/dist/components/solution-template-data.js.map +0 -1
  486. package/dist/components/solution-template-data2.js +0 -235
  487. package/dist/components/solution-template-data2.js.map +0 -1
  488. package/dist/components/solution-variables.d.ts +0 -11
  489. package/dist/components/solution-variables.js +0 -13
  490. package/dist/components/solution-variables.js.map +0 -1
  491. package/dist/components/solution-variables2.js +0 -152
  492. package/dist/components/solution-variables2.js.map +0 -1
  493. package/dist/components/sortable.esm.js +0 -3028
  494. package/dist/components/sortable.esm.js.map +0 -1
  495. package/dist/components/store-manager.d.ts +0 -11
  496. package/dist/components/store-manager.js +0 -85
  497. package/dist/components/store-manager.js.map +0 -1
  498. package/dist/components/switch.js +0 -141
  499. package/dist/components/switch.js.map +0 -1
  500. package/dist/components/tab-nav.js +0 -243
  501. package/dist/components/tab-nav.js.map +0 -1
  502. package/dist/components/tab-title.js +0 -278
  503. package/dist/components/tab-title.js.map +0 -1
  504. package/dist/components/tab.js +0 -156
  505. package/dist/components/tab.js.map +0 -1
  506. package/dist/components/tabs.js +0 -190
  507. package/dist/components/tabs.js.map +0 -1
  508. package/dist/components/tile.js +0 -131
  509. package/dist/components/tile.js.map +0 -1
  510. package/dist/components/time-picker.js +0 -945
  511. package/dist/components/time-picker.js.map +0 -1
  512. package/dist/components/tooltip.js +0 -401
  513. package/dist/components/tooltip.js.map +0 -1
  514. package/dist/components/tree-item.js +0 -296
  515. package/dist/components/tree-item.js.map +0 -1
  516. package/dist/components/tree.js +0 -329
  517. package/dist/components/tree.js.map +0 -1
  518. package/dist/components/utils.js +0 -121
  519. package/dist/components/utils.js.map +0 -1
  520. package/dist/components/utils2.js +0 -53
  521. package/dist/components/utils2.js.map +0 -1
  522. package/dist/components/value-list-item.js +0 -206
  523. package/dist/components/value-list-item.js.map +0 -1
  524. package/dist/components/value-list.js +0 -335
  525. package/dist/components/value-list.js.map +0 -1
  526. package/dist/esm/solution-store-c1f6173a.js.map +0 -1
  527. package/dist/solutions-components/p-065830b8.js.map +0 -1
  528. package/dist/solutions-components/p-0e7a0839.entry.js.map +0 -1
  529. package/dist/solutions-components/p-401541a5.entry.js +0 -895
  530. package/dist/solutions-components/p-401541a5.entry.js.map +0 -1
  531. package/dist/solutions-components/p-ee9be0ef.entry.js.map +0 -1
@@ -1,895 +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
- import { r as registerInstance, h, H as Host, g as getElement } from './p-58c69df2.js';
7
- import { g as getProp, s as state } from './p-065830b8.js';
8
- import { g as getLocaleComponentStrings } from './p-20bdf42f.js';
9
- import './p-f759a6e7.js';
10
- import './p-6b9dc092.js';
11
- import './p-3b010ce1.js';
12
-
13
- /** @license
14
- * Copyright 2022 Esri
15
- *
16
- * Licensed under the Apache License, Version 2.0 (the "License");
17
- * you may not use this file except in compliance with the License.
18
- * You may obtain a copy of the License at
19
- *
20
- * http://www.apache.org/licenses/LICENSE-2.0
21
- *
22
- * Unless required by applicable law or agreed to in writing, software
23
- * distributed under the License is distributed on an "AS IS" BASIS,
24
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
25
- * See the License for the specific language governing permissions and
26
- * limitations under the License.
27
- */
28
- //--------------------------------------------------------------------------
29
- //
30
- // Public Functions
31
- //
32
- //--------------------------------------------------------------------------
33
- /**
34
- * Sort the solution items
35
- *
36
- * @param templates a list of item templates from the solution
37
- *
38
- * @returns a sorted list of solution items
39
- */
40
- function getInventoryItems(templates) {
41
- const hierarchy = getItemHierarchy(templates);
42
- const ids = hierarchy.reduce((prev, cur) => {
43
- prev.push(cur.id);
44
- return prev;
45
- }, []);
46
- return templates.reduce((prev, cur) => {
47
- if (ids.indexOf(cur.itemId) > -1) {
48
- const hierarchyItems = hierarchy.filter(hi => hi.id === cur.itemId);
49
- prev.push(_getItemFromTemplate(cur, templates, hierarchyItems[0].dependencies));
50
- }
51
- return prev;
52
- }, []);
53
- }
54
- /**
55
- * Create item hierarchy that will avoid issues from cylical dependencies
56
- *
57
- * @param templates a list of item templates from the solution
58
- *
59
- * @returns a hierarchy for item and item dependency display
60
- */
61
- function getItemHierarchy(templates) {
62
- const hierarchy = [];
63
- // Get the template specified by id out of a list of templates
64
- function getTemplateInSolution(templates, id) {
65
- const iTemplate = templates.findIndex((template) => id === template.itemId);
66
- return iTemplate >= 0 ? templates[iTemplate] : null;
67
- }
68
- // Hierarchically list the dependencies of specified node
69
- function traceItemId(id, accumulatedHierarchy, alreadyVisitedIds = []) {
70
- // Get the dependencies of the node
71
- const template = getTemplateInSolution(templates, id);
72
- /* istanbul ignore else */
73
- if (template) {
74
- const templateEntry = {
75
- id,
76
- dependencies: []
77
- };
78
- // Visit each dependency, but only if this template is not in the alreadyVisitedIds list to avoid infinite loops
79
- /* istanbul ignore else */
80
- if (alreadyVisitedIds.indexOf(id) < 0) {
81
- // Add dependency to alreadyVisitedIds list
82
- alreadyVisitedIds.push(id);
83
- template.dependencies.forEach((dependencyId) => {
84
- // Remove dependency from list of templates to visit in the top-level loop
85
- const iDependencyTemplate = templateItemIds.indexOf(dependencyId);
86
- /* istanbul ignore else */
87
- if (iDependencyTemplate >= 0) {
88
- templateItemIds.splice(iDependencyTemplate, 1);
89
- }
90
- traceItemId(dependencyId, templateEntry.dependencies, alreadyVisitedIds);
91
- });
92
- }
93
- accumulatedHierarchy.push(templateEntry);
94
- }
95
- }
96
- // Start with top-level nodes and add in the rest of the nodes to catch cycles without top-level nodes
97
- let templateItemIds = _getTopLevelItemIds(templates);
98
- const otherItems = templates
99
- .filter((template) => templateItemIds.indexOf(template.itemId) < 0) // only keep non-top-level nodes
100
- .sort((a, b) => b.dependencies.length - a.dependencies.length); // sort so that nodes with more dependencies come first--reduces stubs
101
- templateItemIds = templateItemIds.concat(otherItems.map((template) => template.itemId));
102
- // Step through the list of nodes; we'll also remove nodes as we visit them
103
- let itemId = templateItemIds.shift();
104
- while (typeof itemId !== "undefined") {
105
- traceItemId(itemId, hierarchy);
106
- itemId = templateItemIds.shift();
107
- }
108
- return hierarchy;
109
- }
110
- /**
111
- * Explore the solution item templates for variables we will allow users to insert at runtime
112
- *
113
- * @param templates a list of item templates from the solution
114
- * @param translations nls translation object
115
- *
116
- * @returns a list of variables from the solution item templates
117
- */
118
- function getSolutionVariables(templates, translations) {
119
- const vars = [];
120
- templates.forEach(t => {
121
- const item = {
122
- id: t.itemId,
123
- title: t.item.title || t.item.name,
124
- type: t.type,
125
- value: undefined,
126
- dependencies: [{
127
- id: t.itemId,
128
- title: translations.itemId,
129
- value: `{{${t.itemId}.itemId}}`,
130
- }]
131
- };
132
- if (t.item.url) {
133
- item.dependencies.push({
134
- id: t.itemId,
135
- title: translations.url,
136
- value: `{{${t.itemId}.url}}`,
137
- });
138
- }
139
- if (t.type === "Feature Service") {
140
- // TODO need to set source service name var...
141
- // TODO need to set soure service shape field name "{{d05b3cf1ffcb4a4fa677627dfb18609e.name}}.Shape"
142
- item.dependencies.push({
143
- id: t.itemId,
144
- title: translations.solutionExtent,
145
- value: `{{${t.itemId}.solutionExtent}}`,
146
- });
147
- _addLayersOrTables(t.properties.layers || [], item, t, translations);
148
- _addLayersOrTables(t.properties.tables || [], item, t, translations);
149
- }
150
- vars.push(item);
151
- });
152
- return vars;
153
- }
154
- /**
155
- * Set key organization variables we will allow users to insert at runtime
156
- *
157
- * @param translations nls translation object
158
- *
159
- * @returns a list of variables for the organization
160
- */
161
- function getOrganizationVariables(translations) {
162
- const orgVars = [{
163
- id: "",
164
- title: translations.geocodeUrl,
165
- value: "{{organization.helperServices.geocode:getDefaultLocatorURL}}"
166
- }, {
167
- id: "",
168
- title: translations.geometryUrl,
169
- value: "{{organization.helperServices.geometry.url}}"
170
- }, {
171
- id: "",
172
- title: translations.portalBaseUrl,
173
- value: "{{portalBaseUrl}}"
174
- }, {
175
- id: "",
176
- title: translations.routeUrl,
177
- value: "{{organization.helperServices.route.url}}"
178
- }, {
179
- id: "",
180
- title: translations.solutionItemExtent,
181
- value: "{{solutionItemExtent}}"
182
- }];
183
- return orgVars;
184
- }
185
- //--------------------------------------------------------------------------
186
- //
187
- // Private Functions
188
- //
189
- //--------------------------------------------------------------------------
190
- /**
191
- * Explore a solution item template for variables we will allow users to insert at runtime.
192
- * This function will update the item argument that is passed in with the var details.
193
- *
194
- * @param children a list of layers or tables from a template
195
- * @param item an object that store key details for a given variable
196
- * @param template one of the templates from the current solution
197
- * @param translations nls translations object
198
- *
199
- */
200
- function _addLayersOrTables(children, item, template, translations) {
201
- children.forEach(l => {
202
- const name = l.name && l.name.indexOf("||") > -1 ? l.name.split("||")[1].replace("}}", "").trim() : l.name;
203
- item.dependencies.push({
204
- id: template.itemId,
205
- title: `${name} (${translations.id})`,
206
- value: `{{${template.itemId}.layer${l.id}.id}}`,
207
- });
208
- item.dependencies.push({
209
- id: template.itemId,
210
- title: `${name} (${translations.name})`,
211
- value: `{{${template.itemId}.layer${l.id}.name||${name}}}`,
212
- });
213
- });
214
- }
215
- /**
216
- * Capture key details from the solution item template
217
- *
218
- * @param template one of the templates from the current solution
219
- * @param templates full list of templates
220
- * @param dependencies list of hierarchical dependencies
221
- *
222
- * @returns an IInventoryItem that is used by other components to work with this template
223
- */
224
- function _getItemFromTemplate(template, templates, dependencies) {
225
- return {
226
- id: template.itemId || "",
227
- title: template.item.title || "",
228
- dependencies: _getDependencies(dependencies, templates),
229
- type: template.item.type || "",
230
- typeKeywords: template.item.typeKeywords || [] /*,
231
- solutionItem: {
232
- itemId: template.itemId,
233
- itemDetails: _getItemDetails(template.item, template.type === "Group"),
234
- isResource: _getIsResource(template),
235
- data: template.data,
236
- properties: template.properties,
237
- type: template.type,
238
- groupDetails: _getGroupDetails(template, templates)
239
- }*/
240
- };
241
- }
242
- /**
243
- * Capture key details from the solution item template
244
- *
245
- * @param dependencies list of dependencies from a template
246
- * @param templates full list of templates
247
- *
248
- * @returns a list of IInventoryItem that are used by other components to work with the templates
249
- */
250
- function _getDependencies(dependencies, templates) {
251
- const dependencyItems = [];
252
- const depIds = dependencies.reduce((prev, cur) => {
253
- prev.push(cur.id);
254
- dependencyItems.push(cur);
255
- return prev;
256
- }, []);
257
- return templates.reduce((prev, curr) => {
258
- const i = depIds.indexOf(curr.itemId);
259
- if (i > -1) {
260
- prev.push(_getItemFromTemplate(curr, templates, dependencyItems[i].dependencies));
261
- }
262
- return prev;
263
- }, []);
264
- }
265
- /**
266
- * Capture the key item details for a given template
267
- *
268
- * @param item the templates item
269
- * @param isGroup boolean to indicate if the item is a group
270
- * @param itemId the item id of the template
271
- *
272
- * @returns a IItemDetails object for the current item
273
- */
274
- /*
275
- function _getItemDetails(
276
- item: any,
277
- isGroup: boolean
278
- ): IItemDetails {
279
- return {
280
- title: item.title || "",
281
- snippet: item.snippet || "",
282
- description: item.description || "",
283
- tags: item.tags || [],
284
- accessInformation: !isGroup ? item.accessInformation || "" : "",
285
- licenseInfo: !isGroup ? item.licenseInfo || "" : ""
286
- };
287
- }
288
- */
289
- /**
290
- * Capture the key item details for a given group template
291
- *
292
- * @param template one of the templates from the current solution
293
- * @param templates full list of templates
294
- *
295
- * @returns a list of IItemShare objects
296
- */
297
- /*
298
- function _getGroupDetails(
299
- template: any,
300
- templates: any[]
301
- ): IItemShare[] {
302
- return template.type === "Group" ? templates.reduce((prev, cur) => {
303
- if (cur.itemId !== template.itemId && cur.type !== "Group") {
304
- prev.push({
305
- id: cur.itemId,
306
- title: cur.item.name || cur.item.title,
307
- isShared: (cur.groups || []).indexOf(template.itemId) > -1,
308
- shareItem: (cur.groups || []).indexOf(template.itemId) > -1,
309
- type: cur.type,
310
- typeKeywords: cur.item.typeKeywords
311
- });
312
- }
313
- return prev;
314
- }, []) : [];
315
- }
316
- */
317
- /**
318
- * Used to understand if we are dealing with a binary object that will support upload/download
319
- *
320
- * @param template one of the templates from the current solution
321
- *
322
- * @returns true if this item supports upload/download
323
- */
324
- /*
325
- function _getIsResource(
326
- template: any
327
- ): boolean {
328
- return template.type !== "Group" && template.resources.some(r => r.indexOf("_info_thumbnail") < 0) &&
329
- (template.data === null || JSON.stringify(template.data) === "{}");
330
- }
331
- */
332
- /**
333
- * Sort the template ids based on their dependencies
334
- *
335
- * @param templates full list of templates
336
- *
337
- * @returns a list of Itop level item ids
338
- */
339
- function _getTopLevelItemIds(templates) {
340
- // Find the top-level nodes. Start with all nodes, then remove those that other nodes depend on
341
- const topLevelItemCandidateIds = templates.map((template) => template.itemId);
342
- templates.forEach((template) => {
343
- (template.dependencies || []).forEach((dependencyId) => {
344
- const iNode = topLevelItemCandidateIds.indexOf(dependencyId);
345
- if (iNode >= 0) {
346
- // Node is somebody's dependency, so remove the node from the list of top-level nodes
347
- // If iNode == -1, then it's a shared dependency and it has already been removed
348
- topLevelItemCandidateIds.splice(iNode, 1);
349
- }
350
- });
351
- });
352
- return topLevelItemCandidateIds;
353
- }
354
-
355
- const solutionConfigurationCss = ".configuration-container{position:relative;height:100%;width:100%}.configuration{position:absolute;top:0px;right:0px;bottom:0px;left:0px;display:flex;padding:0.5rem;border:1px #808080 solid}.config-tabs{width:100%}.config-tab{width:100%}.config-solution{position:absolute;top:3.5rem;right:-1px;bottom:-1px;left:-1px;display:flex;padding:0.5rem}.config-inventory{display:inline;max-width:-moz-min-content;max-width:min-content;flex-grow:0;overflow-y:auto}.config-inventory-hide{display:none;max-width:-moz-min-content;max-width:min-content;flex-grow:0;overflow-y:auto}.config-item{position:relative;display:inline;flex-grow:1;overflow-y:auto;-webkit-margin-start:0.5rem;margin-inline-start:0.5rem}solution-contents{position:relative;height:100%}solution-item{position:relative;height:100%}solution-spatial-ref{position:relative;height:100%;width:100%;overflow-y:auto}";
356
-
357
- const SolutionConfiguration = class {
358
- //--------------------------------------------------------------------------
359
- //
360
- // Lifecycle
361
- //
362
- //--------------------------------------------------------------------------
363
- constructor(hostRef) {
364
- registerInstance(this, hostRef);
365
- this._solutionStoreHasChanges = false;
366
- this._solutionEditorHasChanges = false;
367
- this._solutionEditorHasErrors = false;
368
- this._canSave = false;
369
- this.authentication = undefined;
370
- this.solutionItemId = "";
371
- this.showLoading = false;
372
- this._currentEditItemId = "";
373
- this._organizationVariables = "";
374
- this._solutionContentsComponent = undefined;
375
- this._solutionIsLoaded = false;
376
- this._solutionVariables = "";
377
- this._templateHierarchy = [];
378
- this._translations = undefined;
379
- this._treeOpen = true;
380
- void this._loadSolution(this.solutionItemId);
381
- window.addEventListener("solutionStoreHasChanges", (evt) => {
382
- this._updateSaveability(this._solutionStoreHasChanges = evt.detail, this._solutionEditorHasChanges, this._solutionEditorHasErrors);
383
- });
384
- window.addEventListener("solutionEditorHasChanges", (evt) => {
385
- this._updateSaveability(this._solutionStoreHasChanges, this._solutionEditorHasChanges = evt.detail, this._solutionEditorHasErrors);
386
- });
387
- window.addEventListener("solutionEditorHasErrors", (evt) => {
388
- this._updateSaveability(this._solutionStoreHasChanges, this._solutionEditorHasChanges, this._solutionEditorHasErrors = evt.detail);
389
- });
390
- }
391
- async valueWatchHandler() {
392
- await this._loadSolution(this.solutionItemId);
393
- }
394
- /**
395
- * StencilJS: Called once just after the component is first connected to the DOM.
396
- *
397
- * @returns Promise when complete
398
- */
399
- async componentWillLoad() {
400
- return this._getTranslations();
401
- }
402
- /**
403
- * Renders the component.
404
- */
405
- render() {
406
- const wkid = getProp(state.getStoreInfo("spatialReferenceInfo"), "spatialReference");
407
- const hasServices = state.getStoreInfo("featureServices").length > 0;
408
- return (h(Host, null, !this._solutionIsLoaded
409
- ? h("calcite-loader", { active: true, label: '' })
410
- : null, h("div", { class: "configuration-container" }, h("div", { class: "configuration" }, h("calcite-tabs", { class: "config-tabs" }, h("calcite-tab-nav", { slot: "tab-nav" }, h("calcite-tab-title", null, this._translations.definitionTab), hasServices ?
411
- h("calcite-tab-title", null, this._translations.spatialReferenceTab) :
412
- null), h("calcite-tab", { active: true, class: "config-tab" }, h("div", { class: "config-solution" }, h("div", { class: this._treeOpen ? "config-inventory" : "config-inventory-hide" }, h("solution-contents", { id: "configInventory", key: `${this.solutionItemId}-contents`, ref: (el) => (this._solutionContentsComponent = el) })), h("calcite-button", { appearance: "transparent", class: "collapse-btn", "icon-start": this._treeOpen ? "chevrons-left" : "chevrons-right", id: "collapse-vars", onClick: () => this._toggleTree(), scale: "s", title: this._treeOpen ? this._translations.collapse : this._translations.expand }), h("div", { class: "config-item" }, h("solution-item", { authentication: this.authentication, "item-id": this._currentEditItemId, key: `${this.solutionItemId}-item`, "organization-variables": this._organizationVariables, "solution-item-id": this.solutionItemId, "solution-variables": this._solutionVariables })))), hasServices
413
- ? h("calcite-tab", { class: "config-tab" }, h("div", { class: "config-solution" }, h("solution-spatial-ref", { defaultWkid: wkid, id: "configure-solution-spatial-ref", key: `${this.solutionItemId}-spatial-ref`, locked: !wkid, services: state.getStoreInfo("featureServices").map(fs => fs.name) })))
414
- : null)))));
415
- }
416
- //--------------------------------------------------------------------------
417
- //
418
- // Event Listeners
419
- //
420
- //--------------------------------------------------------------------------
421
- _solutionItemSelected(event) {
422
- this._currentEditItemId = event.detail;
423
- }
424
- //--------------------------------------------------------------------------
425
- //
426
- // Events
427
- //
428
- //--------------------------------------------------------------------------
429
- //--------------------------------------------------------------------------
430
- //
431
- // Public Methods (async)
432
- //
433
- //--------------------------------------------------------------------------
434
- /*
435
- @Method()
436
- async getEditModels(): Promise<ISolutionItems> {
437
- return Promise.resolve(state.items);
438
- }
439
- */
440
- async getSpatialReferenceInfo() {
441
- return Promise.resolve(state.getStoreInfo("spatialReferenceInfo"));
442
- }
443
- /*
444
- @Method()
445
- async getSourceTemplates(): Promise<any> {
446
- return Promise.resolve(this._templates);
447
- }
448
- */
449
- async saveSolution() {
450
- this._solutionIsLoaded = false;
451
- await state.saveSolution();
452
- this._solutionIsLoaded = true;
453
- this.solutionItemId = null;
454
- }
455
- async unloadSolution() {
456
- this.solutionItemId = null;
457
- }
458
- //--------------------------------------------------------------------------
459
- //
460
- // Private Methods
461
- //
462
- //--------------------------------------------------------------------------
463
- /**
464
- * Update the store with the initial values
465
- *
466
- * @param templates the solution items templates
467
- * @param isReset (defaults to false) indicates if we are resetting the controls after save
468
- */
469
- /*
470
- protected _initState(
471
- templates: any[],
472
- isReset = false
473
- ): Promise<any> {
474
- return new Promise((resolve, reject) => {
475
- if (isReset) {
476
- // clear models and state so we can refresh after save
477
- this.modelsSet = false;
478
- state.reset();
479
- }
480
- getModels(templates, this.authentication, this.solutionItemId).then(models => {
481
- state.models = models;
482
-
483
- state.featureServices = getFeatureServices(templates);
484
- state.getStoreInfo("spatialReferenceInfo") = getSpatialReferenceInfo(state.featureServices, this._sourceItemData);
485
-
486
- if (isReset) {
487
- // reset for undo/redo stack and diff editor tracking
488
- const jsonEditors = Array.from(this.el.getElementsByTagName("json-editor"));
489
- // eslint-disable-next-line @typescript-eslint/no-floating-promises
490
- jsonEditors.forEach(e => void e.reset());
491
- }
492
-
493
- this.modelsSet = true;
494
- resolve(true);
495
- }, () => reject);
496
- });
497
- }
498
- */
499
- /**
500
- * Set Props with the initial values
501
- *
502
- * @protected
503
- */
504
- _initProps() {
505
- const solutionData = state.getStoreInfo("solutionData");
506
- this._solutionVariables = JSON.stringify(getSolutionVariables(solutionData.templates, this._translations));
507
- this._organizationVariables = JSON.stringify(getOrganizationVariables(this._translations));
508
- this._templateHierarchy = [...getInventoryItems(solutionData.templates)];
509
- if (this._solutionContentsComponent) {
510
- this._solutionContentsComponent.templateHierarchy = this._templateHierarchy;
511
- }
512
- let firstItem;
513
- if (this._templateHierarchy.length > 0) {
514
- // Start with the first item in the contents
515
- firstItem = state.getItemInfo(this._templateHierarchy[0].id);
516
- }
517
- this._currentEditItemId = firstItem ? firstItem.itemId : "";
518
- }
519
- /**
520
- * Loads a solution.
521
- *
522
- * @param solutionItemId AGO id of solution to load
523
- *
524
- * @returns Resolved promise when task is done
525
- *
526
- * @protected
527
- */
528
- async _loadSolution(solutionItemId) {
529
- if (solutionItemId) {
530
- this._solutionIsLoaded = false;
531
- await state.loadSolution(solutionItemId, this.authentication);
532
- this._initProps();
533
- this._solutionIsLoaded = true;
534
- }
535
- else {
536
- this._reset();
537
- }
538
- return Promise.resolve();
539
- }
540
- /**
541
- * Resets internal variables.
542
- *
543
- * @protected
544
- */
545
- _reset() {
546
- this._currentEditItemId = "";
547
- this._organizationVariables = "";
548
- this._solutionVariables = "";
549
- this._templateHierarchy = [];
550
- }
551
- /**
552
- * Toggle _treeOpen prop to show/hide content tree.
553
- *
554
- * @protected
555
- */
556
- _toggleTree() {
557
- this._treeOpen = !this._treeOpen;
558
- }
559
- /**
560
- * Dispatches an event indicating if the configuration is saveable or not. It's not saveable if there are no
561
- * changes or if there's an error in the JSON editor.
562
- *
563
- * @param solutionStoreHasChanges Are there changes in the configuration editor's internal store?
564
- * @param solutionEditorHasChanges Are there changes in the configuration editor's JSON editor?
565
- * @param solutionEditorHasErrors Are there errors in the configuration editor's JSON editor?
566
- *
567
- * @protected
568
- */
569
- _updateSaveability(solutionStoreHasChanges, solutionEditorHasChanges, solutionEditorHasErrors) {
570
- const updateSaveability = (solutionStoreHasChanges || solutionEditorHasChanges) && !solutionEditorHasErrors;
571
- if (this._canSave !== updateSaveability) {
572
- window.dispatchEvent(new CustomEvent("solutionCanSave", {
573
- detail: updateSaveability,
574
- bubbles: true,
575
- cancelable: false,
576
- composed: true
577
- }));
578
- }
579
- this._canSave = updateSaveability;
580
- }
581
- /**
582
- * Save all edits from the current configuration
583
- *
584
- * @returns a response that will indicate success or failure and any associated messages
585
- */
586
- /*
587
- protected async _save() {
588
- const templateUpdates = await this._updateTemplates();
589
- const data = this._setSrInfo(templateUpdates.templates);
590
- return templateUpdates.errors.length === 0 ? save(
591
- this.solutionItemId,
592
- data,
593
- state.models,
594
- this.authentication,
595
- this._translations
596
- ).then(saveResult => {
597
- // need to trigger re-render...and re-fetch
598
- this._fetchData = true;
599
- this.modelsSet = false;
600
- return Promise.resolve(saveResult)
601
- }).catch(e => Promise.reject(e)) : Promise.reject({
602
- success: false,
603
- message: `The following templates have errors: ${templateUpdates.errors.join(", ")}`
604
- } as IResponse);
605
- }
606
- */
607
- /**
608
- * Update the solutions templates based on the stored changes
609
- *
610
- * @returns an object that contains the updated templates as well as any errors that were found
611
- */
612
- /*
613
- protected async _updateTemplates(): Promise<IUpdateTemplateResponse> {
614
- const errors = [];
615
- const models = await this.getEditModels();
616
- let templates = this._updateGroupDependencies(models, this._templates);
617
- Object.keys(models).forEach(k => {
618
- const m = models[k];
619
- templates = templates.map(t => {
620
- if (t.itemId === m.itemId) {
621
- this._setItem(t, m);
622
- const hasDataError = this._setData(t, m);
623
- const hasPropError = this._setProps(t, m);
624
- if (hasDataError || hasPropError) {
625
- errors.push(m.itemId);
626
- }
627
- }
628
- return t;
629
- });
630
- });
631
- errors.concat(window.monaco.editor.getModelMarkers({}));
632
- return Promise.resolve({
633
- templates,
634
- errors
635
- });
636
- }
637
- */
638
- /**
639
- * Review all models and store itemIds that should be added or removed from group dependencies
640
- *
641
- * @param models the corresponding models for the current templates
642
- *
643
- * @returns group info (an object with keys of groupIds and
644
- * arrays of itemIds that should be added or removed from group dependencies)
645
- */
646
- /*
647
- protected _getGroupInfo(
648
- models: any
649
- ): any {
650
- const groupInfo = {}
651
- Object.keys(models).forEach(k => {
652
- const m = models[k];
653
- if (m.shareInfo) {
654
- const groupId = m.shareInfo.groupId;
655
- const type = m.shareInfo.shared ? "share" : "unshare";
656
- if (groupInfo[groupId]) {
657
- groupInfo[groupId][type].push(m.itemId);
658
- } else {
659
- groupInfo[groupId] = {};
660
- groupInfo[groupId][type] = [m.itemId];
661
- if (m.shareInfo.shared) {
662
- groupInfo[groupId]["unshare"] = [];
663
- } else {
664
- groupInfo[groupId]["share"] = [];
665
- }
666
- }
667
- }
668
- });
669
- return groupInfo;
670
- }
671
- */
672
- /**
673
- * Updates group dependency arrays by adding or removing itemIds
674
- *
675
- * @param templates the current templates to update
676
- * @param models the corresponding models for the current templates
677
- *
678
- * @returns updated templates array
679
- */
680
- /*
681
- protected _updateGroupDependencies(
682
- models: any,
683
- templates: any[]
684
- ): any[] {
685
- const groupInfo = this._getGroupInfo(models);
686
- Object.keys(groupInfo).forEach(k => {
687
- templates.some(t => {
688
- if (t.itemId === k) {
689
- // add share items as deps
690
- groupInfo[k].share.forEach(s => {
691
- if (t.dependencies.indexOf(s) < 0) {
692
- t.dependencies.push(s);
693
- }
694
- });
695
-
696
- // remove unshare items from deps
697
- groupInfo[k].unshare.forEach(s => {
698
- const index = t.dependencies.indexOf(s);
699
- if (index > -1) {
700
- t.dependencies.splice(index, 1);
701
- }
702
- });
703
- return true;
704
- } else {
705
- return false;
706
- }
707
- })
708
- })
709
- return templates;
710
- }
711
- */
712
- /**
713
- * Add group IDs to items that should be shared
714
- * This function will update the provided template when shareInfo is available
715
- *
716
- * @param template the current template to update
717
- * @param shareInfo the corresponding shareInfo from the model for the current template
718
- *
719
- */
720
- /*
721
- protected _updateItemGroups(
722
- template: any,
723
- shareInfo: any
724
- ): void {
725
- if (shareInfo) {
726
- const groupIndex = template.groups.indexOf(shareInfo.groupId);
727
- if (groupIndex < 0 && shareInfo.shared) {
728
- template.groups.push(shareInfo.groupId);
729
- }
730
- if (groupIndex > -1 && !shareInfo.shared) {
731
- template.groups.splice(groupIndex, 1);
732
- }
733
- }
734
- }
735
- */
736
- /**
737
- * Set a templates data property with changes from the models
738
- *
739
- * @param template the current template to update
740
- * @param model the corresponding model for the current template (stores any user changes)
741
- *
742
- * @returns a boolean that indicates if any errors were detected
743
- */
744
- /*
745
- protected _setData(
746
- template: any,
747
- model: any
748
- ): boolean {
749
- return this._setTemplateProp(
750
- template,
751
- model.dataOriginalValue,
752
- model.dataCurrentValue,
753
- "data"
754
- );
755
- }
756
- */
757
- /**
758
- * Set a templates properties property with changes from the models
759
- *
760
- * @param template the current template to update
761
- * @param model the corresponding model for the current template (stores any user changes)
762
- *
763
- * @returns a boolean that indicates if any errors were detected
764
- */
765
- /*
766
- protected _setProps(
767
- template: any,
768
- model: any
769
- ): boolean {
770
- return this._setTemplateProp(
771
- template,
772
- model.propsOriginalValue,
773
- model.propsCurrentValue,
774
- "properties"
775
- );
776
- }
777
- */
778
- /**
779
- * Generic function used to set properties or data property on a given template
780
- *
781
- * @param template the current template to update
782
- * @param originValue the original value from the solution template
783
- * @param modelValue the current value from the model (will contain any edits that have been made)
784
- * @param path the path to the property we should update if any changes are found
785
- *
786
- * @returns a boolean that indicates if any errors were detected
787
- */
788
- /*
789
- protected _setTemplateProp(
790
- template: any,
791
- originValue: any,
792
- modelValue: any,
793
- path: string
794
- ): boolean {
795
- let hasError = false;
796
- try {
797
- const _originValue = JSON.parse(originValue);
798
- const _modelValue = JSON.parse(modelValue);
799
-
800
- if (_originValue && _modelValue && (JSON.stringify(_originValue) !== JSON.stringify(_modelValue))) {
801
- setProp(template, path, _modelValue);
802
- }
803
- } catch (e) {
804
- console.error(e);
805
- hasError = true;
806
- }
807
- return hasError;
808
- }
809
- */
810
- /**
811
- * Set a templates item property with changes from the models
812
- *
813
- * @param template the current template to update
814
- * @param model the corresponding model for the current template (stores any user changes)
815
- *
816
- * This function will update the template argument when edits are found
817
- */
818
- /*
819
- protected _setItem(
820
- template: any,
821
- model: any
822
- ): void {
823
- this._updateItemGroups(template, model.shareInfo);
824
- if (model.updateItemValues && Object.keys(model.updateItemValues).length > 0) {
825
- Object.keys(model.updateItemValues).forEach(k => {
826
- template.item[k] = model.updateItemValues[k];
827
- });
828
- }
829
- }
830
- */
831
- /**
832
- * Set spatial reference info in the solutions data
833
- *
834
- * @param templates a list of item templates from the solution
835
- *
836
- * @returns a cloned copy of the solutions data that has been updated with spatial reference info
837
- *
838
- */
839
- /*
840
- protected _setSrInfo(
841
- templates: any[]
842
- ): any {
843
- const srInfo: any = state.getStoreInfo("spatialReferenceInfo");
844
-
845
- const serviceEnabled = typeof srInfo?.services === "undefined" ?
846
- false : Object.keys(srInfo.services).some(k => srInfo.services[k]);
847
-
848
- const data = cloneObject(this._sourceItemData);
849
- data.templates = templates;
850
- if (srInfo && srInfo.enabled && serviceEnabled) {
851
- const wkid = srInfo.spatialReference.wkid.toString();
852
-
853
- const wkidParam = {
854
- "label": "Spatial Reference",
855
- "default": wkid,
856
- "valueType": "spatialReference",
857
- "attributes": {
858
- "required": "true"
859
- }
860
- };
861
-
862
- const params = getProp(data, "params");
863
- const hasWkid = params && params.wkid;
864
- setCreateProp(
865
- data,
866
- hasWkid ? "params.wkid.default" : "params.wkid",
867
- hasWkid ? wkid : params ? wkidParam : wkid
868
- );
869
- } else if (!srInfo.enabled) {
870
- if (getProp(data, "params.wkid")) {
871
- delete (data.params.wkid);
872
- }
873
- }
874
- return data;
875
- }
876
- */
877
- /**
878
- * Fetches the component's translations
879
- *
880
- * @protected
881
- */
882
- async _getTranslations() {
883
- const translations = await getLocaleComponentStrings(this.el);
884
- this._translations = translations[0];
885
- }
886
- get el() { return getElement(this); }
887
- static get watchers() { return {
888
- "solutionItemId": ["valueWatchHandler"]
889
- }; }
890
- };
891
- SolutionConfiguration.style = solutionConfigurationCss;
892
-
893
- export { SolutionConfiguration as solution_configuration };
894
-
895
- //# sourceMappingURL=p-401541a5.entry.js.map