@esri/solutions-components 0.0.2 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of @esri/solutions-components might be problematic. Click here for more details.

Files changed (892) hide show
  1. package/README.md +6 -5
  2. package/dist/cjs/CalciteExpandToggle-3e4e3b6c.js +0 -2
  3. package/dist/cjs/CalciteHeading-d765addc.js +0 -2
  4. package/dist/cjs/_commonjsHelpers-84e109b5.js +26 -0
  5. package/dist/cjs/array-cd6c0c32.js +0 -2
  6. package/dist/cjs/calcite-accordion-item.cjs.entry.js +0 -2
  7. package/dist/cjs/calcite-accordion.cjs.entry.js +0 -2
  8. package/dist/cjs/calcite-action-bar.cjs.entry.js +0 -2
  9. package/dist/cjs/calcite-action-group.cjs.entry.js +0 -2
  10. package/dist/cjs/calcite-action-menu_3.cjs.entry.js +0 -2
  11. package/dist/cjs/calcite-action-pad.cjs.entry.js +0 -2
  12. package/dist/cjs/calcite-action.cjs.entry.js +0 -2
  13. package/dist/cjs/calcite-alert.cjs.entry.js +0 -2
  14. package/dist/cjs/calcite-avatar.cjs.entry.js +0 -2
  15. package/dist/cjs/calcite-block-section.cjs.entry.js +0 -2
  16. package/dist/cjs/calcite-block.cjs.entry.js +0 -2
  17. package/dist/cjs/calcite-button.cjs.entry.js +0 -2
  18. package/dist/cjs/calcite-card.cjs.entry.js +0 -2
  19. package/dist/cjs/calcite-checkbox_4.cjs.entry.js +0 -2
  20. package/dist/cjs/calcite-chip.cjs.entry.js +0 -2
  21. package/dist/cjs/calcite-color-picker-hex-input.cjs.entry.js +3 -4
  22. package/dist/cjs/calcite-color-picker-swatch.cjs.entry.js +2 -3
  23. package/dist/cjs/calcite-color-picker.cjs.entry.js +3 -4
  24. package/dist/cjs/calcite-combobox-item-group.cjs.entry.js +0 -2
  25. package/dist/cjs/calcite-combobox-item.cjs.entry.js +0 -2
  26. package/dist/cjs/calcite-combobox.cjs.entry.js +0 -2
  27. package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js +0 -2
  28. package/dist/cjs/calcite-date-picker.cjs.entry.js +0 -2
  29. package/dist/cjs/calcite-dropdown-group.cjs.entry.js +0 -2
  30. package/dist/cjs/calcite-dropdown-item.cjs.entry.js +0 -2
  31. package/dist/cjs/calcite-dropdown.cjs.entry.js +0 -2
  32. package/dist/cjs/calcite-fab.cjs.entry.js +0 -2
  33. package/dist/cjs/calcite-filter.cjs.entry.js +0 -2
  34. package/dist/cjs/calcite-flow.cjs.entry.js +0 -2
  35. package/dist/cjs/calcite-graph.cjs.entry.js +0 -2
  36. package/dist/cjs/calcite-handle.cjs.entry.js +0 -2
  37. package/dist/cjs/calcite-icon.cjs.entry.js +0 -2
  38. package/dist/cjs/calcite-inline-editable.cjs.entry.js +0 -2
  39. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +0 -2
  40. package/dist/cjs/calcite-input-message.cjs.entry.js +0 -2
  41. package/dist/cjs/calcite-input-time-picker.cjs.entry.js +0 -2
  42. package/dist/cjs/calcite-input_2.cjs.entry.js +0 -2
  43. package/dist/cjs/calcite-label.cjs.entry.js +0 -2
  44. package/dist/cjs/calcite-link.cjs.entry.js +0 -2
  45. package/dist/cjs/calcite-list-item-group.cjs.entry.js +0 -2
  46. package/dist/cjs/calcite-list-item.cjs.entry.js +0 -2
  47. package/dist/cjs/calcite-list.cjs.entry.js +0 -2
  48. package/dist/cjs/calcite-loader.cjs.entry.js +0 -2
  49. package/dist/cjs/calcite-modal.cjs.entry.js +0 -2
  50. package/dist/cjs/calcite-notice.cjs.entry.js +0 -2
  51. package/dist/cjs/calcite-option-group.cjs.entry.js +0 -2
  52. package/dist/cjs/calcite-option.cjs.entry.js +0 -2
  53. package/dist/cjs/calcite-pagination.cjs.entry.js +0 -2
  54. package/dist/cjs/calcite-panel_14.cjs.entry.js +41 -8
  55. package/dist/cjs/calcite-pick-list-group.cjs.entry.js +0 -2
  56. package/dist/cjs/calcite-pick-list-item.cjs.entry.js +0 -2
  57. package/dist/cjs/calcite-pick-list.cjs.entry.js +0 -2
  58. package/dist/cjs/calcite-popover-manager.cjs.entry.js +0 -2
  59. package/dist/cjs/calcite-radio-button-group.cjs.entry.js +0 -2
  60. package/dist/cjs/calcite-radio-button.cjs.entry.js +0 -2
  61. package/dist/cjs/calcite-radio-group-item.cjs.entry.js +0 -2
  62. package/dist/cjs/calcite-radio-group.cjs.entry.js +0 -2
  63. package/dist/cjs/calcite-radio.cjs.entry.js +0 -2
  64. package/dist/cjs/calcite-rating.cjs.entry.js +0 -2
  65. package/dist/cjs/calcite-scrim.cjs.entry.js +0 -2
  66. package/dist/cjs/calcite-select.cjs.entry.js +0 -2
  67. package/dist/cjs/calcite-shell-center-row.cjs.entry.js +0 -2
  68. package/dist/cjs/calcite-slider.cjs.entry.js +0 -2
  69. package/dist/cjs/calcite-sortable-list.cjs.entry.js +0 -2
  70. package/dist/cjs/calcite-split-button.cjs.entry.js +0 -2
  71. package/dist/cjs/calcite-stepper-item.cjs.entry.js +0 -2
  72. package/dist/cjs/calcite-stepper.cjs.entry.js +0 -2
  73. package/dist/cjs/calcite-switch.cjs.entry.js +0 -2
  74. package/dist/cjs/calcite-tile-select-group.cjs.entry.js +0 -2
  75. package/dist/cjs/calcite-tile-select.cjs.entry.js +0 -2
  76. package/dist/cjs/calcite-tile.cjs.entry.js +0 -2
  77. package/dist/cjs/calcite-time-picker.cjs.entry.js +0 -2
  78. package/dist/cjs/calcite-tip-group.cjs.entry.js +0 -2
  79. package/dist/cjs/calcite-tip-manager.cjs.entry.js +0 -2
  80. package/dist/cjs/calcite-tip.cjs.entry.js +0 -2
  81. package/dist/cjs/calcite-tooltip.cjs.entry.js +0 -2
  82. package/dist/cjs/calcite-value-list-item.cjs.entry.js +0 -2
  83. package/dist/cjs/calcite-value-list.cjs.entry.js +0 -2
  84. package/dist/cjs/common-a4edb52d.js +216 -0
  85. package/dist/cjs/date-0554c4d1.js +0 -2
  86. package/dist/cjs/debounce-df22462b.js +0 -2
  87. package/dist/cjs/dom-62511f59.js +0 -2
  88. package/dist/cjs/editStore-36fc36e6.js +2024 -0
  89. package/dist/cjs/forIn-6a1c2f6d.js +0 -2
  90. package/dist/cjs/form-0b5b2d4e.js +0 -2
  91. package/dist/cjs/generalHelpers-cee7d0da.js +168 -0
  92. package/dist/cjs/guid-c6be9504.js +0 -2
  93. package/dist/cjs/{index-706750dc.js → index-69e74dd7.js} +5 -19
  94. package/dist/cjs/index-81c17948.js +0 -2
  95. package/dist/cjs/index.cjs.js +0 -2
  96. package/dist/cjs/interfaces-5ba2c1a7.js +0 -2
  97. package/dist/cjs/key-2a6290c8.js +0 -2
  98. package/dist/cjs/label-46482470.js +0 -2
  99. package/dist/cjs/loader.cjs.js +1 -3
  100. package/dist/cjs/locale-0db34680.js +0 -2
  101. package/dist/cjs/math-71f8de66.js +0 -2
  102. package/dist/cjs/number-697ce34c.js +0 -2
  103. package/dist/cjs/observers-88bbd6ef.js +0 -2
  104. package/dist/cjs/popper-8c8dc960.js +0 -2
  105. package/dist/cjs/request-6905140c.js +550 -0
  106. package/dist/cjs/resources-20f88094.js +0 -2
  107. package/dist/cjs/resources-27c22d8a.js +0 -2
  108. package/dist/cjs/{resources-369e7421.js → resources-2a401414.js} +1 -3
  109. package/dist/cjs/resources-46af0638.js +0 -2
  110. package/dist/cjs/resources-509951f9.js +0 -2
  111. package/dist/cjs/resources-5b7958e4.js +0 -2
  112. package/dist/cjs/resources-a265534b.js +0 -2
  113. package/dist/cjs/resources-e231446d.js +0 -2
  114. package/dist/cjs/resources-ef6c71a1.js +0 -2
  115. package/dist/cjs/shared-list-render-63d3ea89.js +0 -2
  116. package/dist/cjs/solution-configuration.cjs.entry.js +172 -14
  117. package/dist/cjs/solution-contents_3.cjs.entry.js +42 -68
  118. package/dist/cjs/solutions.cjs.js +1 -3
  119. package/dist/cjs/sortable.esm-14548a17.js +0 -2
  120. package/dist/cjs/store-manager.cjs.entry.js +17 -8
  121. package/dist/cjs/templates-a0242ced.js +422 -0
  122. package/dist/cjs/time-c87dc79e.js +0 -2
  123. package/dist/cjs/utils-c19d354a.js +0 -2
  124. package/dist/cjs/utils-cb7373e6.js +0 -2
  125. package/dist/collection/assets/nls/fr/strings.js +2 -0
  126. package/dist/collection/assets/nls/strings.js +2 -0
  127. package/dist/collection/collection-manifest.json +9 -9
  128. package/dist/collection/components/json-editor/json-editor.js +40 -2
  129. package/dist/collection/components/solution-configuration/solution-configuration.js +251 -24
  130. package/dist/collection/components/solution-contents/solution-contents.js +12 -3
  131. package/dist/collection/components/solution-item/solution-item.css +1 -0
  132. package/dist/collection/components/solution-item/solution-item.js +2 -2
  133. package/dist/collection/components/solution-item-details/solution-item-details.js +4 -3
  134. package/dist/collection/components/solution-item-icon/solution-item-icon.js +0 -1
  135. package/dist/collection/components/solution-item-sharing/solution-item-sharing.js +2 -2
  136. package/dist/collection/components/solution-organization-variables/solution-organization-variables.js +2 -2
  137. package/dist/collection/components/solution-resource-item/solution-resource-item.js +2 -2
  138. package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +68 -68
  139. package/dist/collection/components/solution-spatial-ref/spatialreferences.js +0 -2
  140. package/dist/collection/components/solution-template-data/solution-template-data.js +4 -4
  141. package/dist/collection/components/solution-variables/solution-variables.js +2 -2
  142. package/dist/collection/components/store-manager/store-manager.js +49 -5
  143. package/dist/collection/demos/browse-solutions.html +136 -54
  144. package/dist/collection/demos/solution-configuration.html +139 -12
  145. package/dist/collection/demos/solution-spatial-ref.html +1 -1
  146. package/dist/collection/index.js +0 -1
  147. package/dist/collection/utils/common.js +25 -77
  148. package/dist/collection/utils/common.ts +42 -73
  149. package/dist/collection/utils/editStore.js +0 -1
  150. package/dist/{solutions/p-ecbfddde.js → collection/utils/interfaces.js} +16 -17
  151. package/dist/collection/utils/interfaces.ts +126 -0
  152. package/dist/collection/utils/templates.js +8 -6
  153. package/dist/collection/utils/templates.ts +19 -33
  154. package/dist/custom-elements/index.js +3161 -152
  155. package/dist/esm/CalciteExpandToggle-5df46988.js +0 -2
  156. package/dist/esm/CalciteHeading-79b4b347.js +0 -2
  157. package/dist/esm/_commonjsHelpers-84c626bc.js +22 -0
  158. package/dist/esm/array-71e0c501.js +0 -2
  159. package/dist/esm/calcite-accordion-item.entry.js +0 -2
  160. package/dist/esm/calcite-accordion.entry.js +0 -2
  161. package/dist/esm/calcite-action-bar.entry.js +0 -2
  162. package/dist/esm/calcite-action-group.entry.js +0 -2
  163. package/dist/esm/calcite-action-menu_3.entry.js +0 -2
  164. package/dist/esm/calcite-action-pad.entry.js +0 -2
  165. package/dist/esm/calcite-action.entry.js +0 -2
  166. package/dist/esm/calcite-alert.entry.js +0 -2
  167. package/dist/esm/calcite-avatar.entry.js +0 -2
  168. package/dist/esm/calcite-block-section.entry.js +0 -2
  169. package/dist/esm/calcite-block.entry.js +0 -2
  170. package/dist/esm/calcite-button.entry.js +0 -2
  171. package/dist/esm/calcite-card.entry.js +0 -2
  172. package/dist/esm/calcite-checkbox_4.entry.js +0 -2
  173. package/dist/esm/calcite-chip.entry.js +0 -2
  174. package/dist/esm/calcite-color-picker-hex-input.entry.js +3 -4
  175. package/dist/esm/calcite-color-picker-swatch.entry.js +2 -3
  176. package/dist/esm/calcite-color-picker.entry.js +3 -4
  177. package/dist/esm/calcite-combobox-item-group.entry.js +0 -2
  178. package/dist/esm/calcite-combobox-item.entry.js +0 -2
  179. package/dist/esm/calcite-combobox.entry.js +0 -2
  180. package/dist/esm/calcite-date-picker-day_3.entry.js +0 -2
  181. package/dist/esm/calcite-date-picker.entry.js +0 -2
  182. package/dist/esm/calcite-dropdown-group.entry.js +0 -2
  183. package/dist/esm/calcite-dropdown-item.entry.js +0 -2
  184. package/dist/esm/calcite-dropdown.entry.js +0 -2
  185. package/dist/esm/calcite-fab.entry.js +0 -2
  186. package/dist/esm/calcite-filter.entry.js +0 -2
  187. package/dist/esm/calcite-flow.entry.js +0 -2
  188. package/dist/esm/calcite-graph.entry.js +0 -2
  189. package/dist/esm/calcite-handle.entry.js +0 -2
  190. package/dist/esm/calcite-icon.entry.js +0 -2
  191. package/dist/esm/calcite-inline-editable.entry.js +0 -2
  192. package/dist/esm/calcite-input-date-picker.entry.js +0 -2
  193. package/dist/esm/calcite-input-message.entry.js +0 -2
  194. package/dist/esm/calcite-input-time-picker.entry.js +0 -2
  195. package/dist/esm/calcite-input_2.entry.js +0 -2
  196. package/dist/esm/calcite-label.entry.js +0 -2
  197. package/dist/esm/calcite-link.entry.js +0 -2
  198. package/dist/esm/calcite-list-item-group.entry.js +0 -2
  199. package/dist/esm/calcite-list-item.entry.js +0 -2
  200. package/dist/esm/calcite-list.entry.js +0 -2
  201. package/dist/esm/calcite-loader.entry.js +0 -2
  202. package/dist/esm/calcite-modal.entry.js +0 -2
  203. package/dist/esm/calcite-notice.entry.js +0 -2
  204. package/dist/esm/calcite-option-group.entry.js +0 -2
  205. package/dist/esm/calcite-option.entry.js +0 -2
  206. package/dist/esm/calcite-pagination.entry.js +0 -2
  207. package/dist/esm/calcite-panel_14.entry.js +37 -4
  208. package/dist/esm/calcite-pick-list-group.entry.js +0 -2
  209. package/dist/esm/calcite-pick-list-item.entry.js +0 -2
  210. package/dist/esm/calcite-pick-list.entry.js +0 -2
  211. package/dist/esm/calcite-popover-manager.entry.js +0 -2
  212. package/dist/esm/calcite-radio-button-group.entry.js +0 -2
  213. package/dist/esm/calcite-radio-button.entry.js +0 -2
  214. package/dist/esm/calcite-radio-group-item.entry.js +0 -2
  215. package/dist/esm/calcite-radio-group.entry.js +0 -2
  216. package/dist/esm/calcite-radio.entry.js +0 -2
  217. package/dist/esm/calcite-rating.entry.js +0 -2
  218. package/dist/esm/calcite-scrim.entry.js +0 -2
  219. package/dist/esm/calcite-select.entry.js +0 -2
  220. package/dist/esm/calcite-shell-center-row.entry.js +0 -2
  221. package/dist/esm/calcite-slider.entry.js +0 -2
  222. package/dist/esm/calcite-sortable-list.entry.js +0 -2
  223. package/dist/esm/calcite-split-button.entry.js +0 -2
  224. package/dist/esm/calcite-stepper-item.entry.js +0 -2
  225. package/dist/esm/calcite-stepper.entry.js +0 -2
  226. package/dist/esm/calcite-switch.entry.js +0 -2
  227. package/dist/esm/calcite-tile-select-group.entry.js +0 -2
  228. package/dist/esm/calcite-tile-select.entry.js +0 -2
  229. package/dist/esm/calcite-tile.entry.js +0 -2
  230. package/dist/esm/calcite-time-picker.entry.js +0 -2
  231. package/dist/esm/calcite-tip-group.entry.js +0 -2
  232. package/dist/esm/calcite-tip-manager.entry.js +0 -2
  233. package/dist/esm/calcite-tip.entry.js +0 -2
  234. package/dist/esm/calcite-tooltip.entry.js +0 -2
  235. package/dist/esm/calcite-value-list-item.entry.js +0 -2
  236. package/dist/esm/calcite-value-list.entry.js +0 -2
  237. package/dist/esm/common-70333fb9.js +213 -0
  238. package/dist/esm/date-5d75460a.js +0 -2
  239. package/dist/esm/debounce-23ad5849.js +0 -2
  240. package/dist/esm/dom-1cc617ae.js +0 -2
  241. package/dist/esm/editStore-197be454.js +2022 -0
  242. package/dist/esm/forIn-c922d47c.js +0 -2
  243. package/dist/esm/form-636dfed1.js +0 -2
  244. package/dist/esm/generalHelpers-91e92dc0.js +161 -0
  245. package/dist/esm/guid-740f1f1a.js +0 -2
  246. package/dist/esm/index-a3c3e3db.js +0 -2
  247. package/dist/esm/{index-934f242e.js → index-c1264d13.js} +3 -17
  248. package/dist/esm/index.js +0 -2
  249. package/dist/esm/interfaces-4f07beec.js +0 -2
  250. package/dist/esm/key-1748eb79.js +0 -2
  251. package/dist/esm/label-851f8926.js +0 -2
  252. package/dist/esm/loader.js +1 -3
  253. package/dist/esm/locale-31c8d43b.js +0 -2
  254. package/dist/esm/math-d8795f31.js +0 -2
  255. package/dist/esm/number-47ecb380.js +0 -2
  256. package/dist/esm/observers-b13ff24b.js +0 -2
  257. package/dist/esm/popper-25874f2f.js +0 -2
  258. package/dist/esm/request-9c2c9a49.js +548 -0
  259. package/dist/esm/resources-12c3b829.js +0 -2
  260. package/dist/esm/resources-32d7dd89.js +0 -2
  261. package/dist/esm/resources-466ccf86.js +0 -2
  262. package/dist/esm/resources-4cc0ef44.js +0 -2
  263. package/dist/esm/resources-861d0240.js +0 -2
  264. package/dist/esm/resources-b023c30a.js +0 -2
  265. package/dist/esm/{resources-c537bacb.js → resources-d7e09977.js} +1 -3
  266. package/dist/esm/resources-e56b6e53.js +0 -2
  267. package/dist/esm/resources-ec79cfd7.js +0 -2
  268. package/dist/esm/shared-list-render-b5dacd2e.js +0 -2
  269. package/dist/esm/solution-configuration.entry.js +172 -14
  270. package/dist/esm/solution-contents_3.entry.js +42 -68
  271. package/dist/esm/solutions.js +1 -3
  272. package/dist/esm/sortable.esm-7856912e.js +0 -2
  273. package/dist/esm/store-manager.entry.js +17 -8
  274. package/dist/esm/templates-c15e0de2.js +414 -0
  275. package/dist/esm/time-a3b29c35.js +0 -2
  276. package/dist/esm/utils-021cb956.js +0 -2
  277. package/dist/esm/utils-5fdd203c.js +0 -2
  278. package/dist/solutions/assets/nls/fr/strings.js +2 -0
  279. package/dist/solutions/assets/nls/strings.js +2 -0
  280. package/dist/solutions/demos/browse-solutions.html +136 -54
  281. package/dist/solutions/demos/solution-configuration.html +139 -12
  282. package/dist/solutions/demos/solution-spatial-ref.html +1 -1
  283. package/dist/solutions/index.esm.js +0 -2
  284. package/dist/solutions/p-03c9247d.entry.js +10 -0
  285. package/dist/solutions/p-03da5f23.entry.js +6 -0
  286. package/dist/solutions/p-054256c8.entry.js +10 -0
  287. package/dist/solutions/p-05c73b7d.js +1 -2
  288. package/dist/solutions/p-06c2b347.entry.js +6 -0
  289. package/dist/solutions/p-09a06209.entry.js +6 -0
  290. package/dist/solutions/p-09e5283f.entry.js +6 -0
  291. package/dist/solutions/p-0a0ca7d3.entry.js +6 -0
  292. package/dist/solutions/p-0b8525e2.js +1 -2
  293. package/dist/solutions/p-0bddf168.entry.js +10 -0
  294. package/dist/solutions/p-0dd00bd7.entry.js +6 -0
  295. package/dist/solutions/p-0f8fd0f8.entry.js +10 -0
  296. package/dist/solutions/p-1345c0c8.js +6 -0
  297. package/dist/solutions/p-1387e8ef.entry.js +10 -0
  298. package/dist/solutions/p-17195493.entry.js +6 -0
  299. package/dist/solutions/p-172b8454.js +38 -0
  300. package/dist/solutions/p-173c3a97.entry.js +10 -0
  301. package/dist/solutions/p-175fe700.entry.js +6 -0
  302. package/dist/solutions/p-17f21116.entry.js +6 -0
  303. package/dist/solutions/p-18657c74.entry.js +10 -0
  304. package/dist/solutions/p-20c8a31e.entry.js +14 -0
  305. package/dist/solutions/p-228131f3.js +3 -3
  306. package/dist/solutions/p-2480c2c3.entry.js +10 -0
  307. package/dist/solutions/p-291cbb4f.js +1 -2
  308. package/dist/solutions/p-29d230fb.entry.js +6 -0
  309. package/dist/solutions/p-2de43402.entry.js +10 -0
  310. package/dist/solutions/p-2e1cd889.js +1 -2
  311. package/dist/solutions/p-386bc1f5.entry.js +10 -0
  312. package/dist/solutions/p-3956acc6.entry.js +6 -0
  313. package/dist/solutions/p-3ce922dd.js +20 -0
  314. package/dist/solutions/p-3e67ed97.js +1 -2
  315. package/dist/solutions/p-3eac2c21.entry.js +10 -0
  316. package/dist/solutions/p-3fd65329.entry.js +6 -0
  317. package/dist/solutions/p-41c2e1cc.js +1 -2
  318. package/dist/solutions/p-42f5b6d1.entry.js +10 -0
  319. package/dist/solutions/p-44e661a2.js +1 -2
  320. package/dist/solutions/p-4847f326.entry.js +10 -0
  321. package/dist/solutions/p-4a5b86a0.entry.js +10 -0
  322. package/dist/solutions/p-4f8cae93.entry.js +10 -0
  323. package/dist/solutions/p-51c9f2db.entry.js +10 -0
  324. package/dist/solutions/p-52d835be.entry.js +10 -0
  325. package/dist/solutions/p-55dddf06.entry.js +10 -0
  326. package/dist/solutions/p-56a376ea.entry.js +6 -0
  327. package/dist/solutions/p-57e5029a.entry.js +6 -0
  328. package/dist/solutions/p-58b7f4aa.entry.js +10 -0
  329. package/dist/solutions/p-5cd9ccc3.entry.js +22 -0
  330. package/dist/solutions/p-5dd4cf97.entry.js +6 -0
  331. package/dist/solutions/p-5edf418e.entry.js +10 -0
  332. package/dist/solutions/p-64711824.entry.js +10 -0
  333. package/dist/solutions/p-68bf7243.entry.js +11 -0
  334. package/dist/solutions/p-7096464e.js +3 -4
  335. package/dist/solutions/p-720922e5.entry.js +10 -0
  336. package/dist/solutions/p-73e2d13f.js +1 -2
  337. package/dist/solutions/p-73e8d41c.entry.js +10 -0
  338. package/dist/solutions/p-7804ce97.js +1 -2
  339. package/dist/solutions/p-79064f42.entry.js +6 -0
  340. package/dist/solutions/p-7976d171.entry.js +6 -0
  341. package/dist/solutions/p-7a98627f.entry.js +10 -0
  342. package/dist/solutions/p-7aaed3f1.entry.js +10 -0
  343. package/dist/solutions/p-7cc9c6af.js +2 -7
  344. package/dist/solutions/p-7df393df.js +1 -2
  345. package/dist/solutions/p-7f93b2dd.entry.js +6 -0
  346. package/dist/solutions/p-82ab483b.entry.js +10 -0
  347. package/dist/solutions/p-8565f0c1.entry.js +10 -0
  348. package/dist/solutions/p-85cf288c.js +1 -2
  349. package/dist/solutions/p-8701d184.entry.js +10 -0
  350. package/dist/solutions/p-946521e1.js +2 -3
  351. package/dist/solutions/p-974d27a4.entry.js +10 -0
  352. package/dist/solutions/p-9c08ce38.entry.js +6 -0
  353. package/dist/solutions/p-9deb6df3.js +36 -0
  354. package/dist/solutions/p-9df9ac35.js +1 -2
  355. package/dist/solutions/p-9ed0c781.entry.js +6 -0
  356. package/dist/solutions/p-9f3fa133.entry.js +10 -0
  357. package/dist/solutions/p-a10dc180.js +1 -2
  358. package/dist/solutions/p-a201c2ea.entry.js +6 -0
  359. package/dist/solutions/p-a598cbb6.entry.js +10 -0
  360. package/dist/solutions/p-a59dfe85.entry.js +6 -0
  361. package/dist/solutions/p-a5fbf459.entry.js +11 -0
  362. package/dist/solutions/p-a6faf819.entry.js +10 -0
  363. package/dist/solutions/p-a8b4d400.entry.js +10 -0
  364. package/dist/solutions/p-a93a4772.entry.js +10 -0
  365. package/dist/solutions/{p-07099311.entry.js → p-a9dd9571.entry.js} +1 -2
  366. package/dist/solutions/p-a9df64c4.js +1 -2
  367. package/dist/solutions/p-aa11e35b.entry.js +10 -0
  368. package/dist/solutions/p-ae4a329c.entry.js +6 -0
  369. package/dist/solutions/p-af9be2ca.js +1 -2
  370. package/dist/solutions/p-b16a91ae.entry.js +6 -0
  371. package/dist/solutions/p-b5693287.entry.js +6 -0
  372. package/dist/solutions/p-b5bbe558.entry.js +10 -0
  373. package/dist/solutions/p-b81ebd54.entry.js +10 -0
  374. package/dist/solutions/p-b85c1b6a.entry.js +6 -0
  375. package/dist/solutions/p-bb3adfc7.entry.js +10 -0
  376. package/dist/solutions/p-c11b966c.entry.js +10 -0
  377. package/dist/solutions/p-c1e7f656.entry.js +6 -0
  378. package/dist/solutions/p-c27b17b8.entry.js +10 -0
  379. package/dist/solutions/p-c34e0641.js +1 -2
  380. package/dist/solutions/p-c5216bba.entry.js +10 -0
  381. package/dist/solutions/p-c8a69756.entry.js +10 -0
  382. package/dist/solutions/p-cb35cbb3.entry.js +6 -0
  383. package/dist/solutions/p-cb5cb9a8.js +1 -2
  384. package/dist/solutions/p-cef98db7.js +6 -0
  385. package/dist/solutions/p-d69bc5fd.entry.js +10 -0
  386. package/dist/solutions/p-de45b192.entry.js +6 -0
  387. package/dist/solutions/p-e4edca3b.js +1 -2
  388. package/dist/solutions/p-e581f631.js +1 -2
  389. package/dist/solutions/p-e762b2d1.js +3 -3
  390. package/dist/solutions/p-eb2efc0f.js +1 -2
  391. package/dist/solutions/p-ec178ea9.js +1 -2
  392. package/dist/solutions/p-ed17446f.entry.js +6 -0
  393. package/dist/solutions/p-edd6d948.entry.js +10 -0
  394. package/dist/solutions/p-ee6eca93.js +18 -0
  395. package/dist/solutions/{p-4573d7c2.js → p-f1867a12.js} +2 -3
  396. package/dist/solutions/p-f187755e.js +1 -2
  397. package/dist/solutions/p-f49bc4a8.js +1 -2
  398. package/dist/solutions/p-f75876eb.js +21 -0
  399. package/dist/solutions/p-f780039d.js +1 -2
  400. package/dist/solutions/p-fa58627d.entry.js +10 -0
  401. package/dist/solutions/p-fbdf3e06.js +2 -3
  402. package/dist/solutions/p-fc1c8168.js +3 -3
  403. package/dist/solutions/p-fd2712a3.entry.js +10 -0
  404. package/dist/solutions/solutions.esm.js +1 -2
  405. package/dist/solutions/utils/common.ts +42 -73
  406. package/dist/solutions/utils/interfaces.ts +126 -0
  407. package/dist/solutions/utils/templates.ts +19 -33
  408. package/dist/types/components/json-editor/json-editor.d.ts +11 -0
  409. package/dist/types/components/solution-configuration/solution-configuration.d.ts +73 -9
  410. package/dist/types/components/solution-contents/solution-contents.d.ts +2 -9
  411. package/dist/types/components/solution-item/solution-item.d.ts +1 -11
  412. package/dist/types/components/solution-item-details/solution-item-details.d.ts +1 -10
  413. package/dist/types/components/solution-item-sharing/solution-item-sharing.d.ts +1 -8
  414. package/dist/types/components/solution-organization-variables/solution-organization-variables.d.ts +1 -5
  415. package/dist/types/components/solution-resource-item/solution-resource-item.d.ts +1 -4
  416. package/dist/types/components/solution-spatial-ref/solution-spatial-ref.d.ts +14 -26
  417. package/dist/types/components/solution-spatial-ref/spatialreferences.d.ts +1 -4
  418. package/dist/types/components/solution-template-data/solution-template-data.d.ts +1 -7
  419. package/dist/types/components/solution-variables/solution-variables.d.ts +1 -7
  420. package/dist/types/components/store-manager/store-manager.d.ts +9 -0
  421. package/dist/types/components.d.ts +49 -17
  422. package/dist/types/utils/common.d.ts +13 -38
  423. package/dist/types/utils/interfaces.d.ts +111 -0
  424. package/dist/types/utils/templates.d.ts +2 -25
  425. package/package.json +4 -3
  426. package/dist/cjs/CalciteExpandToggle-3e4e3b6c.js.map +0 -1
  427. package/dist/cjs/CalciteHeading-d765addc.js.map +0 -1
  428. package/dist/cjs/array-cd6c0c32.js.map +0 -1
  429. package/dist/cjs/calcite-accordion-item.cjs.entry.js.map +0 -1
  430. package/dist/cjs/calcite-accordion.cjs.entry.js.map +0 -1
  431. package/dist/cjs/calcite-action-bar.cjs.entry.js.map +0 -1
  432. package/dist/cjs/calcite-action-group.cjs.entry.js.map +0 -1
  433. package/dist/cjs/calcite-action-menu_3.cjs.entry.js.map +0 -1
  434. package/dist/cjs/calcite-action-pad.cjs.entry.js.map +0 -1
  435. package/dist/cjs/calcite-action.cjs.entry.js.map +0 -1
  436. package/dist/cjs/calcite-alert.cjs.entry.js.map +0 -1
  437. package/dist/cjs/calcite-avatar.cjs.entry.js.map +0 -1
  438. package/dist/cjs/calcite-block-section.cjs.entry.js.map +0 -1
  439. package/dist/cjs/calcite-block.cjs.entry.js.map +0 -1
  440. package/dist/cjs/calcite-button.cjs.entry.js.map +0 -1
  441. package/dist/cjs/calcite-card.cjs.entry.js.map +0 -1
  442. package/dist/cjs/calcite-checkbox_4.cjs.entry.js.map +0 -1
  443. package/dist/cjs/calcite-chip.cjs.entry.js.map +0 -1
  444. package/dist/cjs/calcite-color-picker-hex-input.cjs.entry.js.map +0 -1
  445. package/dist/cjs/calcite-color-picker-swatch.cjs.entry.js.map +0 -1
  446. package/dist/cjs/calcite-color-picker.cjs.entry.js.map +0 -1
  447. package/dist/cjs/calcite-combobox-item-group.cjs.entry.js.map +0 -1
  448. package/dist/cjs/calcite-combobox-item.cjs.entry.js.map +0 -1
  449. package/dist/cjs/calcite-combobox.cjs.entry.js.map +0 -1
  450. package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js.map +0 -1
  451. package/dist/cjs/calcite-date-picker.cjs.entry.js.map +0 -1
  452. package/dist/cjs/calcite-dropdown-group.cjs.entry.js.map +0 -1
  453. package/dist/cjs/calcite-dropdown-item.cjs.entry.js.map +0 -1
  454. package/dist/cjs/calcite-dropdown.cjs.entry.js.map +0 -1
  455. package/dist/cjs/calcite-fab.cjs.entry.js.map +0 -1
  456. package/dist/cjs/calcite-filter.cjs.entry.js.map +0 -1
  457. package/dist/cjs/calcite-flow.cjs.entry.js.map +0 -1
  458. package/dist/cjs/calcite-graph.cjs.entry.js.map +0 -1
  459. package/dist/cjs/calcite-handle.cjs.entry.js.map +0 -1
  460. package/dist/cjs/calcite-icon.cjs.entry.js.map +0 -1
  461. package/dist/cjs/calcite-inline-editable.cjs.entry.js.map +0 -1
  462. package/dist/cjs/calcite-input-date-picker.cjs.entry.js.map +0 -1
  463. package/dist/cjs/calcite-input-message.cjs.entry.js.map +0 -1
  464. package/dist/cjs/calcite-input-time-picker.cjs.entry.js.map +0 -1
  465. package/dist/cjs/calcite-input_2.cjs.entry.js.map +0 -1
  466. package/dist/cjs/calcite-label.cjs.entry.js.map +0 -1
  467. package/dist/cjs/calcite-link.cjs.entry.js.map +0 -1
  468. package/dist/cjs/calcite-list-item-group.cjs.entry.js.map +0 -1
  469. package/dist/cjs/calcite-list-item.cjs.entry.js.map +0 -1
  470. package/dist/cjs/calcite-list.cjs.entry.js.map +0 -1
  471. package/dist/cjs/calcite-loader.cjs.entry.js.map +0 -1
  472. package/dist/cjs/calcite-modal.cjs.entry.js.map +0 -1
  473. package/dist/cjs/calcite-notice.cjs.entry.js.map +0 -1
  474. package/dist/cjs/calcite-option-group.cjs.entry.js.map +0 -1
  475. package/dist/cjs/calcite-option.cjs.entry.js.map +0 -1
  476. package/dist/cjs/calcite-pagination.cjs.entry.js.map +0 -1
  477. package/dist/cjs/calcite-panel_14.cjs.entry.js.map +0 -1
  478. package/dist/cjs/calcite-pick-list-group.cjs.entry.js.map +0 -1
  479. package/dist/cjs/calcite-pick-list-item.cjs.entry.js.map +0 -1
  480. package/dist/cjs/calcite-pick-list.cjs.entry.js.map +0 -1
  481. package/dist/cjs/calcite-popover-manager.cjs.entry.js.map +0 -1
  482. package/dist/cjs/calcite-radio-button-group.cjs.entry.js.map +0 -1
  483. package/dist/cjs/calcite-radio-button.cjs.entry.js.map +0 -1
  484. package/dist/cjs/calcite-radio-group-item.cjs.entry.js.map +0 -1
  485. package/dist/cjs/calcite-radio-group.cjs.entry.js.map +0 -1
  486. package/dist/cjs/calcite-radio.cjs.entry.js.map +0 -1
  487. package/dist/cjs/calcite-rating.cjs.entry.js.map +0 -1
  488. package/dist/cjs/calcite-scrim.cjs.entry.js.map +0 -1
  489. package/dist/cjs/calcite-select.cjs.entry.js.map +0 -1
  490. package/dist/cjs/calcite-shell-center-row.cjs.entry.js.map +0 -1
  491. package/dist/cjs/calcite-slider.cjs.entry.js.map +0 -1
  492. package/dist/cjs/calcite-sortable-list.cjs.entry.js.map +0 -1
  493. package/dist/cjs/calcite-split-button.cjs.entry.js.map +0 -1
  494. package/dist/cjs/calcite-stepper-item.cjs.entry.js.map +0 -1
  495. package/dist/cjs/calcite-stepper.cjs.entry.js.map +0 -1
  496. package/dist/cjs/calcite-switch.cjs.entry.js.map +0 -1
  497. package/dist/cjs/calcite-tile-select-group.cjs.entry.js.map +0 -1
  498. package/dist/cjs/calcite-tile-select.cjs.entry.js.map +0 -1
  499. package/dist/cjs/calcite-tile.cjs.entry.js.map +0 -1
  500. package/dist/cjs/calcite-time-picker.cjs.entry.js.map +0 -1
  501. package/dist/cjs/calcite-tip-group.cjs.entry.js.map +0 -1
  502. package/dist/cjs/calcite-tip-manager.cjs.entry.js.map +0 -1
  503. package/dist/cjs/calcite-tip.cjs.entry.js.map +0 -1
  504. package/dist/cjs/calcite-tooltip.cjs.entry.js.map +0 -1
  505. package/dist/cjs/calcite-value-list-item.cjs.entry.js.map +0 -1
  506. package/dist/cjs/calcite-value-list.cjs.entry.js.map +0 -1
  507. package/dist/cjs/common-df66d950.js +0 -53
  508. package/dist/cjs/common-df66d950.js.map +0 -1
  509. package/dist/cjs/date-0554c4d1.js.map +0 -1
  510. package/dist/cjs/debounce-df22462b.js.map +0 -1
  511. package/dist/cjs/dom-62511f59.js.map +0 -1
  512. package/dist/cjs/editStore-7a250b85.js +0 -227
  513. package/dist/cjs/editStore-7a250b85.js.map +0 -1
  514. package/dist/cjs/forIn-6a1c2f6d.js.map +0 -1
  515. package/dist/cjs/form-0b5b2d4e.js.map +0 -1
  516. package/dist/cjs/guid-c6be9504.js.map +0 -1
  517. package/dist/cjs/index-706750dc.js.map +0 -1
  518. package/dist/cjs/index-81c17948.js.map +0 -1
  519. package/dist/cjs/index.cjs.js.map +0 -1
  520. package/dist/cjs/interfaces-5ba2c1a7.js.map +0 -1
  521. package/dist/cjs/key-2a6290c8.js.map +0 -1
  522. package/dist/cjs/label-46482470.js.map +0 -1
  523. package/dist/cjs/loader.cjs.js.map +0 -1
  524. package/dist/cjs/locale-0db34680.js.map +0 -1
  525. package/dist/cjs/math-71f8de66.js.map +0 -1
  526. package/dist/cjs/number-697ce34c.js.map +0 -1
  527. package/dist/cjs/observers-88bbd6ef.js.map +0 -1
  528. package/dist/cjs/popper-8c8dc960.js.map +0 -1
  529. package/dist/cjs/resources-20f88094.js.map +0 -1
  530. package/dist/cjs/resources-27c22d8a.js.map +0 -1
  531. package/dist/cjs/resources-369e7421.js.map +0 -1
  532. package/dist/cjs/resources-46af0638.js.map +0 -1
  533. package/dist/cjs/resources-509951f9.js.map +0 -1
  534. package/dist/cjs/resources-5b7958e4.js.map +0 -1
  535. package/dist/cjs/resources-a265534b.js.map +0 -1
  536. package/dist/cjs/resources-e231446d.js.map +0 -1
  537. package/dist/cjs/resources-ef6c71a1.js.map +0 -1
  538. package/dist/cjs/shared-list-render-63d3ea89.js.map +0 -1
  539. package/dist/cjs/solution-configuration.cjs.entry.js.map +0 -1
  540. package/dist/cjs/solution-contents_3.cjs.entry.js.map +0 -1
  541. package/dist/cjs/solutions.cjs.js.map +0 -1
  542. package/dist/cjs/sortable.esm-14548a17.js.map +0 -1
  543. package/dist/cjs/store-manager.cjs.entry.js.map +0 -1
  544. package/dist/cjs/templates-fe6dd431.js +0 -237
  545. package/dist/cjs/templates-fe6dd431.js.map +0 -1
  546. package/dist/cjs/time-c87dc79e.js.map +0 -1
  547. package/dist/cjs/utils-c19d354a.js.map +0 -1
  548. package/dist/cjs/utils-cb7373e6.js.map +0 -1
  549. package/dist/collection/components/json-editor/json-editor.js.map +0 -1
  550. package/dist/collection/components/solution-configuration/solution-configuration.js.map +0 -1
  551. package/dist/collection/components/solution-contents/solution-contents.js.map +0 -1
  552. package/dist/collection/components/solution-item/solution-item.js.map +0 -1
  553. package/dist/collection/components/solution-item-details/solution-item-details.js.map +0 -1
  554. package/dist/collection/components/solution-item-icon/solution-item-icon.js.map +0 -1
  555. package/dist/collection/components/solution-item-sharing/solution-item-sharing.js.map +0 -1
  556. package/dist/collection/components/solution-organization-variables/solution-organization-variables.js.map +0 -1
  557. package/dist/collection/components/solution-resource-item/solution-resource-item.js.map +0 -1
  558. package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js.map +0 -1
  559. package/dist/collection/components/solution-spatial-ref/spatialreferences.js.map +0 -1
  560. package/dist/collection/components/solution-template-data/solution-template-data.js.map +0 -1
  561. package/dist/collection/components/solution-variables/solution-variables.js.map +0 -1
  562. package/dist/collection/components/store-manager/store-manager.js.map +0 -1
  563. package/dist/collection/index.js.map +0 -1
  564. package/dist/collection/utils/common.js.map +0 -1
  565. package/dist/collection/utils/editStore.js.map +0 -1
  566. package/dist/collection/utils/templates.js.map +0 -1
  567. package/dist/custom-elements/index.js.map +0 -1
  568. package/dist/esm/CalciteExpandToggle-5df46988.js.map +0 -1
  569. package/dist/esm/CalciteHeading-79b4b347.js.map +0 -1
  570. package/dist/esm/array-71e0c501.js.map +0 -1
  571. package/dist/esm/calcite-accordion-item.entry.js.map +0 -1
  572. package/dist/esm/calcite-accordion.entry.js.map +0 -1
  573. package/dist/esm/calcite-action-bar.entry.js.map +0 -1
  574. package/dist/esm/calcite-action-group.entry.js.map +0 -1
  575. package/dist/esm/calcite-action-menu_3.entry.js.map +0 -1
  576. package/dist/esm/calcite-action-pad.entry.js.map +0 -1
  577. package/dist/esm/calcite-action.entry.js.map +0 -1
  578. package/dist/esm/calcite-alert.entry.js.map +0 -1
  579. package/dist/esm/calcite-avatar.entry.js.map +0 -1
  580. package/dist/esm/calcite-block-section.entry.js.map +0 -1
  581. package/dist/esm/calcite-block.entry.js.map +0 -1
  582. package/dist/esm/calcite-button.entry.js.map +0 -1
  583. package/dist/esm/calcite-card.entry.js.map +0 -1
  584. package/dist/esm/calcite-checkbox_4.entry.js.map +0 -1
  585. package/dist/esm/calcite-chip.entry.js.map +0 -1
  586. package/dist/esm/calcite-color-picker-hex-input.entry.js.map +0 -1
  587. package/dist/esm/calcite-color-picker-swatch.entry.js.map +0 -1
  588. package/dist/esm/calcite-color-picker.entry.js.map +0 -1
  589. package/dist/esm/calcite-combobox-item-group.entry.js.map +0 -1
  590. package/dist/esm/calcite-combobox-item.entry.js.map +0 -1
  591. package/dist/esm/calcite-combobox.entry.js.map +0 -1
  592. package/dist/esm/calcite-date-picker-day_3.entry.js.map +0 -1
  593. package/dist/esm/calcite-date-picker.entry.js.map +0 -1
  594. package/dist/esm/calcite-dropdown-group.entry.js.map +0 -1
  595. package/dist/esm/calcite-dropdown-item.entry.js.map +0 -1
  596. package/dist/esm/calcite-dropdown.entry.js.map +0 -1
  597. package/dist/esm/calcite-fab.entry.js.map +0 -1
  598. package/dist/esm/calcite-filter.entry.js.map +0 -1
  599. package/dist/esm/calcite-flow.entry.js.map +0 -1
  600. package/dist/esm/calcite-graph.entry.js.map +0 -1
  601. package/dist/esm/calcite-handle.entry.js.map +0 -1
  602. package/dist/esm/calcite-icon.entry.js.map +0 -1
  603. package/dist/esm/calcite-inline-editable.entry.js.map +0 -1
  604. package/dist/esm/calcite-input-date-picker.entry.js.map +0 -1
  605. package/dist/esm/calcite-input-message.entry.js.map +0 -1
  606. package/dist/esm/calcite-input-time-picker.entry.js.map +0 -1
  607. package/dist/esm/calcite-input_2.entry.js.map +0 -1
  608. package/dist/esm/calcite-label.entry.js.map +0 -1
  609. package/dist/esm/calcite-link.entry.js.map +0 -1
  610. package/dist/esm/calcite-list-item-group.entry.js.map +0 -1
  611. package/dist/esm/calcite-list-item.entry.js.map +0 -1
  612. package/dist/esm/calcite-list.entry.js.map +0 -1
  613. package/dist/esm/calcite-loader.entry.js.map +0 -1
  614. package/dist/esm/calcite-modal.entry.js.map +0 -1
  615. package/dist/esm/calcite-notice.entry.js.map +0 -1
  616. package/dist/esm/calcite-option-group.entry.js.map +0 -1
  617. package/dist/esm/calcite-option.entry.js.map +0 -1
  618. package/dist/esm/calcite-pagination.entry.js.map +0 -1
  619. package/dist/esm/calcite-panel_14.entry.js.map +0 -1
  620. package/dist/esm/calcite-pick-list-group.entry.js.map +0 -1
  621. package/dist/esm/calcite-pick-list-item.entry.js.map +0 -1
  622. package/dist/esm/calcite-pick-list.entry.js.map +0 -1
  623. package/dist/esm/calcite-popover-manager.entry.js.map +0 -1
  624. package/dist/esm/calcite-radio-button-group.entry.js.map +0 -1
  625. package/dist/esm/calcite-radio-button.entry.js.map +0 -1
  626. package/dist/esm/calcite-radio-group-item.entry.js.map +0 -1
  627. package/dist/esm/calcite-radio-group.entry.js.map +0 -1
  628. package/dist/esm/calcite-radio.entry.js.map +0 -1
  629. package/dist/esm/calcite-rating.entry.js.map +0 -1
  630. package/dist/esm/calcite-scrim.entry.js.map +0 -1
  631. package/dist/esm/calcite-select.entry.js.map +0 -1
  632. package/dist/esm/calcite-shell-center-row.entry.js.map +0 -1
  633. package/dist/esm/calcite-slider.entry.js.map +0 -1
  634. package/dist/esm/calcite-sortable-list.entry.js.map +0 -1
  635. package/dist/esm/calcite-split-button.entry.js.map +0 -1
  636. package/dist/esm/calcite-stepper-item.entry.js.map +0 -1
  637. package/dist/esm/calcite-stepper.entry.js.map +0 -1
  638. package/dist/esm/calcite-switch.entry.js.map +0 -1
  639. package/dist/esm/calcite-tile-select-group.entry.js.map +0 -1
  640. package/dist/esm/calcite-tile-select.entry.js.map +0 -1
  641. package/dist/esm/calcite-tile.entry.js.map +0 -1
  642. package/dist/esm/calcite-time-picker.entry.js.map +0 -1
  643. package/dist/esm/calcite-tip-group.entry.js.map +0 -1
  644. package/dist/esm/calcite-tip-manager.entry.js.map +0 -1
  645. package/dist/esm/calcite-tip.entry.js.map +0 -1
  646. package/dist/esm/calcite-tooltip.entry.js.map +0 -1
  647. package/dist/esm/calcite-value-list-item.entry.js.map +0 -1
  648. package/dist/esm/calcite-value-list.entry.js.map +0 -1
  649. package/dist/esm/common-ccccf04d.js +0 -50
  650. package/dist/esm/common-ccccf04d.js.map +0 -1
  651. package/dist/esm/date-5d75460a.js.map +0 -1
  652. package/dist/esm/debounce-23ad5849.js.map +0 -1
  653. package/dist/esm/dom-1cc617ae.js.map +0 -1
  654. package/dist/esm/editStore-30a293f5.js +0 -225
  655. package/dist/esm/editStore-30a293f5.js.map +0 -1
  656. package/dist/esm/forIn-c922d47c.js.map +0 -1
  657. package/dist/esm/form-636dfed1.js.map +0 -1
  658. package/dist/esm/guid-740f1f1a.js.map +0 -1
  659. package/dist/esm/index-934f242e.js.map +0 -1
  660. package/dist/esm/index-a3c3e3db.js.map +0 -1
  661. package/dist/esm/index.js.map +0 -1
  662. package/dist/esm/interfaces-4f07beec.js.map +0 -1
  663. package/dist/esm/key-1748eb79.js.map +0 -1
  664. package/dist/esm/label-851f8926.js.map +0 -1
  665. package/dist/esm/loader.js.map +0 -1
  666. package/dist/esm/locale-31c8d43b.js.map +0 -1
  667. package/dist/esm/math-d8795f31.js.map +0 -1
  668. package/dist/esm/number-47ecb380.js.map +0 -1
  669. package/dist/esm/observers-b13ff24b.js.map +0 -1
  670. package/dist/esm/popper-25874f2f.js.map +0 -1
  671. package/dist/esm/resources-12c3b829.js.map +0 -1
  672. package/dist/esm/resources-32d7dd89.js.map +0 -1
  673. package/dist/esm/resources-466ccf86.js.map +0 -1
  674. package/dist/esm/resources-4cc0ef44.js.map +0 -1
  675. package/dist/esm/resources-861d0240.js.map +0 -1
  676. package/dist/esm/resources-b023c30a.js.map +0 -1
  677. package/dist/esm/resources-c537bacb.js.map +0 -1
  678. package/dist/esm/resources-e56b6e53.js.map +0 -1
  679. package/dist/esm/resources-ec79cfd7.js.map +0 -1
  680. package/dist/esm/shared-list-render-b5dacd2e.js.map +0 -1
  681. package/dist/esm/solution-configuration.entry.js.map +0 -1
  682. package/dist/esm/solution-contents_3.entry.js.map +0 -1
  683. package/dist/esm/solutions.js.map +0 -1
  684. package/dist/esm/sortable.esm-7856912e.js.map +0 -1
  685. package/dist/esm/store-manager.entry.js.map +0 -1
  686. package/dist/esm/templates-3480c08e.js +0 -230
  687. package/dist/esm/templates-3480c08e.js.map +0 -1
  688. package/dist/esm/time-a3b29c35.js.map +0 -1
  689. package/dist/esm/utils-021cb956.js.map +0 -1
  690. package/dist/esm/utils-5fdd203c.js.map +0 -1
  691. package/dist/solutions/index.esm.js.map +0 -1
  692. package/dist/solutions/p-019fe34e.entry.js +0 -11
  693. package/dist/solutions/p-019fe34e.entry.js.map +0 -1
  694. package/dist/solutions/p-01d537aa.entry.js +0 -11
  695. package/dist/solutions/p-01d537aa.entry.js.map +0 -1
  696. package/dist/solutions/p-05c73b7d.js.map +0 -1
  697. package/dist/solutions/p-05da6de1.entry.js +0 -11
  698. package/dist/solutions/p-05da6de1.entry.js.map +0 -1
  699. package/dist/solutions/p-05eb87fc.entry.js +0 -11
  700. package/dist/solutions/p-05eb87fc.entry.js.map +0 -1
  701. package/dist/solutions/p-07099311.entry.js.map +0 -1
  702. package/dist/solutions/p-07f15398.entry.js +0 -7
  703. package/dist/solutions/p-07f15398.entry.js.map +0 -1
  704. package/dist/solutions/p-093edbdc.entry.js +0 -11
  705. package/dist/solutions/p-093edbdc.entry.js.map +0 -1
  706. package/dist/solutions/p-0b8525e2.js.map +0 -1
  707. package/dist/solutions/p-0c91e100.js +0 -7
  708. package/dist/solutions/p-0c91e100.js.map +0 -1
  709. package/dist/solutions/p-0fcee724.entry.js +0 -7
  710. package/dist/solutions/p-0fcee724.entry.js.map +0 -1
  711. package/dist/solutions/p-17a2150d.entry.js +0 -11
  712. package/dist/solutions/p-17a2150d.entry.js.map +0 -1
  713. package/dist/solutions/p-1aaa9800.entry.js +0 -7
  714. package/dist/solutions/p-1aaa9800.entry.js.map +0 -1
  715. package/dist/solutions/p-228131f3.js.map +0 -1
  716. package/dist/solutions/p-22d67647.entry.js +0 -11
  717. package/dist/solutions/p-22d67647.entry.js.map +0 -1
  718. package/dist/solutions/p-291cbb4f.js.map +0 -1
  719. package/dist/solutions/p-2a5c409a.entry.js +0 -7
  720. package/dist/solutions/p-2a5c409a.entry.js.map +0 -1
  721. package/dist/solutions/p-2aca233c.entry.js +0 -11
  722. package/dist/solutions/p-2aca233c.entry.js.map +0 -1
  723. package/dist/solutions/p-2b6ef800.entry.js +0 -7
  724. package/dist/solutions/p-2b6ef800.entry.js.map +0 -1
  725. package/dist/solutions/p-2bae730e.entry.js +0 -11
  726. package/dist/solutions/p-2bae730e.entry.js.map +0 -1
  727. package/dist/solutions/p-2d59c6d7.entry.js +0 -11
  728. package/dist/solutions/p-2d59c6d7.entry.js.map +0 -1
  729. package/dist/solutions/p-2e1cd889.js.map +0 -1
  730. package/dist/solutions/p-35eafdfb.entry.js +0 -11
  731. package/dist/solutions/p-35eafdfb.entry.js.map +0 -1
  732. package/dist/solutions/p-372da016.entry.js +0 -7
  733. package/dist/solutions/p-372da016.entry.js.map +0 -1
  734. package/dist/solutions/p-37407f95.entry.js +0 -7
  735. package/dist/solutions/p-37407f95.entry.js.map +0 -1
  736. package/dist/solutions/p-3ae90cbb.entry.js +0 -7
  737. package/dist/solutions/p-3ae90cbb.entry.js.map +0 -1
  738. package/dist/solutions/p-3c3ccd03.entry.js +0 -11
  739. package/dist/solutions/p-3c3ccd03.entry.js.map +0 -1
  740. package/dist/solutions/p-3e168893.entry.js +0 -11
  741. package/dist/solutions/p-3e168893.entry.js.map +0 -1
  742. package/dist/solutions/p-3e67ed97.js.map +0 -1
  743. package/dist/solutions/p-3ed5096e.entry.js +0 -11
  744. package/dist/solutions/p-3ed5096e.entry.js.map +0 -1
  745. package/dist/solutions/p-41c2e1cc.js.map +0 -1
  746. package/dist/solutions/p-44e661a2.js.map +0 -1
  747. package/dist/solutions/p-4573d7c2.js.map +0 -1
  748. package/dist/solutions/p-4635ae4a.entry.js +0 -11
  749. package/dist/solutions/p-4635ae4a.entry.js.map +0 -1
  750. package/dist/solutions/p-46bcadbd.entry.js +0 -11
  751. package/dist/solutions/p-46bcadbd.entry.js.map +0 -1
  752. package/dist/solutions/p-4b0b2534.entry.js +0 -11
  753. package/dist/solutions/p-4b0b2534.entry.js.map +0 -1
  754. package/dist/solutions/p-51e4c002.entry.js +0 -7
  755. package/dist/solutions/p-51e4c002.entry.js.map +0 -1
  756. package/dist/solutions/p-520d8443.entry.js +0 -11
  757. package/dist/solutions/p-520d8443.entry.js.map +0 -1
  758. package/dist/solutions/p-591d5666.entry.js +0 -11
  759. package/dist/solutions/p-591d5666.entry.js.map +0 -1
  760. package/dist/solutions/p-5aff6fc3.entry.js +0 -11
  761. package/dist/solutions/p-5aff6fc3.entry.js.map +0 -1
  762. package/dist/solutions/p-5c95f5ee.entry.js +0 -11
  763. package/dist/solutions/p-5c95f5ee.entry.js.map +0 -1
  764. package/dist/solutions/p-606933f1.entry.js +0 -11
  765. package/dist/solutions/p-606933f1.entry.js.map +0 -1
  766. package/dist/solutions/p-62464fb3.entry.js +0 -11
  767. package/dist/solutions/p-62464fb3.entry.js.map +0 -1
  768. package/dist/solutions/p-6e970d4c.entry.js +0 -7
  769. package/dist/solutions/p-6e970d4c.entry.js.map +0 -1
  770. package/dist/solutions/p-6f861da6.entry.js +0 -11
  771. package/dist/solutions/p-6f861da6.entry.js.map +0 -1
  772. package/dist/solutions/p-7096464e.js.map +0 -1
  773. package/dist/solutions/p-73e2d13f.js.map +0 -1
  774. package/dist/solutions/p-745f85bf.entry.js +0 -11
  775. package/dist/solutions/p-745f85bf.entry.js.map +0 -1
  776. package/dist/solutions/p-7480bdae.entry.js +0 -7
  777. package/dist/solutions/p-7480bdae.entry.js.map +0 -1
  778. package/dist/solutions/p-7611d9ad.entry.js +0 -11
  779. package/dist/solutions/p-7611d9ad.entry.js.map +0 -1
  780. package/dist/solutions/p-77b056db.entry.js +0 -7
  781. package/dist/solutions/p-77b056db.entry.js.map +0 -1
  782. package/dist/solutions/p-7804ce97.js.map +0 -1
  783. package/dist/solutions/p-7cc15662.entry.js +0 -15
  784. package/dist/solutions/p-7cc15662.entry.js.map +0 -1
  785. package/dist/solutions/p-7cc9c6af.js.map +0 -1
  786. package/dist/solutions/p-7d84c932.entry.js +0 -11
  787. package/dist/solutions/p-7d84c932.entry.js.map +0 -1
  788. package/dist/solutions/p-7df393df.js.map +0 -1
  789. package/dist/solutions/p-7f49ef40.entry.js +0 -11
  790. package/dist/solutions/p-7f49ef40.entry.js.map +0 -1
  791. package/dist/solutions/p-7f5c2987.entry.js +0 -7
  792. package/dist/solutions/p-7f5c2987.entry.js.map +0 -1
  793. package/dist/solutions/p-7fd90af2.entry.js +0 -11
  794. package/dist/solutions/p-7fd90af2.entry.js.map +0 -1
  795. package/dist/solutions/p-815449b1.entry.js +0 -11
  796. package/dist/solutions/p-815449b1.entry.js.map +0 -1
  797. package/dist/solutions/p-819aff56.entry.js +0 -11
  798. package/dist/solutions/p-819aff56.entry.js.map +0 -1
  799. package/dist/solutions/p-85cf288c.js.map +0 -1
  800. package/dist/solutions/p-87d812ce.entry.js +0 -7
  801. package/dist/solutions/p-87d812ce.entry.js.map +0 -1
  802. package/dist/solutions/p-8b616d33.entry.js +0 -7
  803. package/dist/solutions/p-8b616d33.entry.js.map +0 -1
  804. package/dist/solutions/p-8efca26d.entry.js +0 -7
  805. package/dist/solutions/p-8efca26d.entry.js.map +0 -1
  806. package/dist/solutions/p-946521e1.js.map +0 -1
  807. package/dist/solutions/p-970f1072.js +0 -22
  808. package/dist/solutions/p-970f1072.js.map +0 -1
  809. package/dist/solutions/p-9a953609.entry.js +0 -11
  810. package/dist/solutions/p-9a953609.entry.js.map +0 -1
  811. package/dist/solutions/p-9b381784.entry.js +0 -11
  812. package/dist/solutions/p-9b381784.entry.js.map +0 -1
  813. package/dist/solutions/p-9dad5583.entry.js +0 -11
  814. package/dist/solutions/p-9dad5583.entry.js.map +0 -1
  815. package/dist/solutions/p-9df9ac35.js.map +0 -1
  816. package/dist/solutions/p-9ee74ad4.entry.js +0 -7
  817. package/dist/solutions/p-9ee74ad4.entry.js.map +0 -1
  818. package/dist/solutions/p-9fab6046.entry.js +0 -22
  819. package/dist/solutions/p-9fab6046.entry.js.map +0 -1
  820. package/dist/solutions/p-9fc06fc3.entry.js +0 -15
  821. package/dist/solutions/p-9fc06fc3.entry.js.map +0 -1
  822. package/dist/solutions/p-a10dc180.js.map +0 -1
  823. package/dist/solutions/p-a1c40865.entry.js +0 -11
  824. package/dist/solutions/p-a1c40865.entry.js.map +0 -1
  825. package/dist/solutions/p-a3b16f15.entry.js +0 -7
  826. package/dist/solutions/p-a3b16f15.entry.js.map +0 -1
  827. package/dist/solutions/p-a7906d52.entry.js +0 -11
  828. package/dist/solutions/p-a7906d52.entry.js.map +0 -1
  829. package/dist/solutions/p-a8a106f7.entry.js +0 -7
  830. package/dist/solutions/p-a8a106f7.entry.js.map +0 -1
  831. package/dist/solutions/p-a8d2d1a3.entry.js +0 -7
  832. package/dist/solutions/p-a8d2d1a3.entry.js.map +0 -1
  833. package/dist/solutions/p-a98c5d29.entry.js +0 -11
  834. package/dist/solutions/p-a98c5d29.entry.js.map +0 -1
  835. package/dist/solutions/p-a9df64c4.js.map +0 -1
  836. package/dist/solutions/p-ad54d2e2.entry.js +0 -11
  837. package/dist/solutions/p-ad54d2e2.entry.js.map +0 -1
  838. package/dist/solutions/p-adf3704d.entry.js +0 -11
  839. package/dist/solutions/p-adf3704d.entry.js.map +0 -1
  840. package/dist/solutions/p-af46b00f.entry.js +0 -11
  841. package/dist/solutions/p-af46b00f.entry.js.map +0 -1
  842. package/dist/solutions/p-af9be2ca.js.map +0 -1
  843. package/dist/solutions/p-b797d79b.entry.js +0 -23
  844. package/dist/solutions/p-b797d79b.entry.js.map +0 -1
  845. package/dist/solutions/p-c09fc04d.entry.js +0 -11
  846. package/dist/solutions/p-c09fc04d.entry.js.map +0 -1
  847. package/dist/solutions/p-c11f84d9.entry.js +0 -11
  848. package/dist/solutions/p-c11f84d9.entry.js.map +0 -1
  849. package/dist/solutions/p-c195dbb7.entry.js +0 -7
  850. package/dist/solutions/p-c195dbb7.entry.js.map +0 -1
  851. package/dist/solutions/p-c34e0641.js.map +0 -1
  852. package/dist/solutions/p-c5428bbc.entry.js +0 -11
  853. package/dist/solutions/p-c5428bbc.entry.js.map +0 -1
  854. package/dist/solutions/p-cb5cb9a8.js.map +0 -1
  855. package/dist/solutions/p-ce3e9060.entry.js +0 -11
  856. package/dist/solutions/p-ce3e9060.entry.js.map +0 -1
  857. package/dist/solutions/p-d132d8ad.entry.js +0 -7
  858. package/dist/solutions/p-d132d8ad.entry.js.map +0 -1
  859. package/dist/solutions/p-d320e3a2.entry.js +0 -7
  860. package/dist/solutions/p-d320e3a2.entry.js.map +0 -1
  861. package/dist/solutions/p-d70ef015.entry.js +0 -11
  862. package/dist/solutions/p-d70ef015.entry.js.map +0 -1
  863. package/dist/solutions/p-e4edca3b.js.map +0 -1
  864. package/dist/solutions/p-e581f631.js.map +0 -1
  865. package/dist/solutions/p-e65a8700.entry.js +0 -11
  866. package/dist/solutions/p-e65a8700.entry.js.map +0 -1
  867. package/dist/solutions/p-e762b2d1.js.map +0 -1
  868. package/dist/solutions/p-eb2efc0f.js.map +0 -1
  869. package/dist/solutions/p-ec178ea9.js.map +0 -1
  870. package/dist/solutions/p-ecbfddde.js.map +0 -1
  871. package/dist/solutions/p-eceb11d1.js +0 -22
  872. package/dist/solutions/p-eceb11d1.js.map +0 -1
  873. package/dist/solutions/p-ede2beab.entry.js +0 -7
  874. package/dist/solutions/p-ede2beab.entry.js.map +0 -1
  875. package/dist/solutions/p-f0a6135d.entry.js +0 -11
  876. package/dist/solutions/p-f0a6135d.entry.js.map +0 -1
  877. package/dist/solutions/p-f187755e.js.map +0 -1
  878. package/dist/solutions/p-f3c6b68d.entry.js +0 -7
  879. package/dist/solutions/p-f3c6b68d.entry.js.map +0 -1
  880. package/dist/solutions/p-f49bc4a8.js.map +0 -1
  881. package/dist/solutions/p-f6e8ee98.entry.js +0 -7
  882. package/dist/solutions/p-f6e8ee98.entry.js.map +0 -1
  883. package/dist/solutions/p-f780039d.js.map +0 -1
  884. package/dist/solutions/p-fa40e7e7.entry.js +0 -7
  885. package/dist/solutions/p-fa40e7e7.entry.js.map +0 -1
  886. package/dist/solutions/p-fb25fc4a.entry.js +0 -7
  887. package/dist/solutions/p-fb25fc4a.entry.js.map +0 -1
  888. package/dist/solutions/p-fbdf3e06.js.map +0 -1
  889. package/dist/solutions/p-fc1c8168.js.map +0 -1
  890. package/dist/solutions/p-ff3697a9.entry.js +0 -7
  891. package/dist/solutions/p-ff3697a9.entry.js.map +0 -1
  892. package/dist/solutions/solutions.esm.js.map +0 -1
@@ -1,7 +0,0 @@
1
- /*!
2
- * Copyright 2021 Esri
3
- * Licensed under the Apache License, Version 2.0
4
- * http://www.apache.org/licenses/LICENSE-2.0
5
- */
6
- import{r as t,h as i,H as s,g as e}from"./p-2e1cd889.js";import{g as o,a,b as n,c as l,d as r,e as c}from"./p-970f1072.js";import{s as h}from"./p-eceb11d1.js";const p='.configuration-container{position:relative;width:100%;height:100%}.configuration{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;padding:8px;border:1px gray solid}.config-tabs{width:100%}.config-tab{width:100%}.config-solution{position:absolute;top:56px;right:-1px;bottom:-1px;left:-1px;display:flex;padding:8px}.config-inventory{display:inline;flex-grow:0;overflow-y:auto;max-width:min-content}.config-inventory-hide{display:none;flex-grow:0;overflow-y:auto;max-width:min-content}.config-item{display:inline;margin-left:8px;flex-grow:1;overflow-y:auto;position:relative}html[dir="rtl"] .config-item{margin-left:0;margin-right:8px}solution-contents{height:100%;position:relative}solution-item{height:100%;position:relative}solution-spatial-ref{width:100%;height:100%;position:relative;overflow-y:auto}';let f=class{constructor(i){t(this,i);this.modelsSet=false;this.translations={};this.value={contents:[]};this.item={itemId:"",itemDetails:{},isResource:false,data:{},properties:{},type:""};this.treeOpen=true}connectedCallback(){this._initTemplatesObserver()}render(){return i(s,null,i("div",{class:"configuration-container"},i("div",{class:"configuration"},i("calcite-tabs",{class:"config-tabs"},i("calcite-tab-nav",{slot:"tab-nav"},i("calcite-tab-title",null,this.translations.definitionTab),i("calcite-tab-title",null,this.translations.spatialReferenceTab)),i("calcite-tab",{active:true,class:"config-tab"},i("div",{class:"config-solution"},i("div",{class:this.treeOpen?"config-inventory":"config-inventory-hide"},i("solution-contents",{id:"configInventory",key:`${this.solutionItemId}-contents`,translations:this.translations,value:this.value.contents})),i("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.translations.cancelEdits}),i("div",{class:"config-item"},i("solution-item",{key:`${this.solutionItemId}-item`,organizationVariables:this._organizationVariables,solutionVariables:this._solutionVariables,translations:this.translations,value:this.item})))),i("calcite-tab",{class:"config-tab"},i("div",{class:"config-solution"},i("solution-spatial-ref",{id:"configure-solution-spatial-ref",key:`${this.solutionItemId}-spatial-ref`,services:h.featureServices,translations:this.translations})))))))}_solutionItemSelected(t){this.item=t.detail}async getEditModels(){return Promise.resolve(h.models)}async getSpatialReferenceInfo(){return Promise.resolve(h.spatialReferenceInfo)}_initTemplatesObserver(){this._templatesObserver=new MutationObserver((t=>{t.some((t=>{if(t.type==="attributes"&&t.attributeName==="templates"&&t.target[t.attributeName]!==t.oldValue){const i=JSON.parse(t.target[t.attributeName]);this._initProps(i);this._initState(i);return true}}))}));this._templatesObserver.observe(this.el,{attributes:true,attributeOldValue:true})}_initState(t){h.models=o(t);h.featureServices=a(t);h.spatialReferenceInfo=n(h.featureServices);this.modelsSet=true}_initProps(t){this.value.contents=[...l(t)];this._solutionVariables=r(t,this.translations);this._organizationVariables=c(this.translations);this.item={itemId:"",itemDetails:{},isResource:false,data:{},properties:{},type:""}}_toggleTree(){this.treeOpen=!this.treeOpen}get el(){return e(this)}};f.style=p;export{f as solution_configuration};
7
- //# sourceMappingURL=p-7f5c2987.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["src/components/solution-configuration/solution-configuration.css?tag=solution-configuration","src/components/solution-configuration/solution-configuration.tsx"],"names":["solutionConfigurationCss","SolutionConfiguration","[object Object]","hostRef","this","modelsSet","translations","value","contents","item","itemId","itemDetails","isResource","data","properties","type","treeOpen","_initTemplatesObserver","h","Host","class","slot","definitionTab","spatialReferenceTab","active","id","key","solutionItemId","appearance","icon-start","onClick","_toggleTree","scale","title","cancelEdits","organizationVariables","_organizationVariables","solutionVariables","_solutionVariables","services","state","featureServices","event","detail","Promise","resolve","models","spatialReferenceInfo","_templatesObserver","MutationObserver","ml","some","mutation","attributeName","target","oldValue","v","JSON","parse","_initProps","_initState","observe","el","attributes","attributeOldValue","utils.getModels","utils.getFeatureServices","utils.getSpatialReferenceInfo","utils.getInventoryItems","utils.getSolutionVariables","utils.getOrganizationVariables"],"mappings":";;;;;+JAAA,MAAMA,EAA2B,qzBCmCpBC,EAAqB,MALlCC,YAAAC,aAoBWC,KAAAC,UAAY,MAKID,KAAAE,aAAoB,GAKLF,KAAAG,MAAgC,CACtEC,SAAU,IAWaJ,KAAAK,KAAsB,CAC7CC,OAAQ,GACRC,YAAa,GACbC,WAAY,MACZC,KAAM,GACNC,WAAY,GACZC,KAAM,IAWiBX,KAAAY,SAAW,KAQpCd,oBACEE,KAAKa,yBAGPf,SACE,OACEgB,EAACC,EAAI,KACHD,EAAA,MAAA,CAAKE,MAAM,2BACTF,EAAA,MAAA,CAAKE,MAAM,iBACTF,EAAA,eAAA,CAAcE,MAAM,eAClBF,EAAA,kBAAA,CAAiBG,KAAK,WACpBH,EAAA,oBAAA,KAAoBd,KAAKE,aAAagB,eACtCJ,EAAA,oBAAA,KAAoBd,KAAKE,aAAaiB,sBAExCL,EAAA,cAAA,CAAaM,OAAM,KAACJ,MAAM,cACxBF,EAAA,MAAA,CAAKE,MAAM,mBACTF,EAAA,MAAA,CAAKE,MAAOhB,KAAKY,SAAW,mBAAqB,yBAC/CE,EAAA,oBAAA,CACEO,GAAG,kBACHC,IAAK,GAAGtB,KAAKuB,0BACbrB,aAAcF,KAAKE,aACnBC,MAAOH,KAAKG,MAAMC,YAGtBU,EAAA,iBAAA,CACEU,WAAW,cACXR,MAAM,eAAcS,aACRzB,KAAKY,SAAW,gBAAkB,iBAC9CS,GAAG,gBACHK,QAAS,IAAM1B,KAAK2B,cACpBC,MAAM,IACNC,MAAO7B,KAAKE,aAAa4B,cAE3BhB,EAAA,MAAA,CAAKE,MAAM,eACTF,EAAA,gBAAA,CACEQ,IAAK,GAAGtB,KAAKuB,sBACbQ,sBAAuB/B,KAAKgC,uBAC5BC,kBAAmBjC,KAAKkC,mBACxBhC,aAAcF,KAAKE,aACnBC,MAAOH,KAAKK,UAKpBS,EAAA,cAAA,CAAaE,MAAM,cACjBF,EAAA,MAAA,CAAKE,MAAM,mBACTF,EAAA,uBAAA,CACEO,GAAG,iCACHC,IAAK,GAAGtB,KAAKuB,6BACbY,SAAUC,EAAMC,gBAChBnC,aAAcF,KAAKE,qBA8BrCJ,sBAAsBwC,GACpBtC,KAAKK,KAAOiC,EAAMC,OAgBpBzC,sBACE,OAAO0C,QAAQC,QAAQL,EAAMM,QAI/B5C,gCACE,OAAO0C,QAAQC,QAAQL,EAAMO,sBAYvB7C,yBACNE,KAAK4C,mBAAqB,IAAIC,kBAAiBC,IAC7CA,EAAGC,MAAKC,IACN,GAAIA,EAASrC,OAAS,cAAgBqC,EAASC,gBAAkB,aAC/DD,EAASE,OAAOF,EAASC,iBAAmBD,EAASG,SAAU,CAC/D,MAAMC,EAAIC,KAAKC,MAAMN,EAASE,OAAOF,EAASC,gBAC9CjD,KAAKuD,WAAWH,GAChBpD,KAAKwD,WAAWJ,GAChB,OAAO,YAIbpD,KAAK4C,mBAAmBa,QAAQzD,KAAK0D,GAAI,CAAEC,WAAY,KAAMC,kBAAmB,OAM1E9D,WAAWsD,GACjBhB,EAAMM,OAASmB,EAAgBT,GAC/BhB,EAAMC,gBAAkByB,EAAyBV,GACjDhB,EAAMO,qBAAuBoB,EAA8B3B,EAAMC,iBACjErC,KAAKC,UAAY,KAMXH,WAAWsD,GACjBpD,KAAKG,MAAMC,SAAW,IAAI4D,EAAwBZ,IAClDpD,KAAKkC,mBAAqB+B,EAA2Bb,EAAGpD,KAAKE,cAC7DF,KAAKgC,uBAAyBkC,EAA+BlE,KAAKE,cAClEF,KAAKK,KAAO,CACVC,OAAQ,GACRC,YAAa,GACbC,WAAY,MACZC,KAAM,GACNC,WAAY,GACZC,KAAM,IAOFb,cACNE,KAAKY,UAAYZ,KAAKY","sourcesContent":["/** @license\r\n * Copyright 2021 Esri\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n\r\n.configuration-container {\r\n position: relative;\r\n width: 100%;\r\n height: 100%;\r\n}\r\n\r\n.configuration {\r\n position: absolute;\r\n top: 0;\r\n right: 0;\r\n bottom: 0;\r\n left: 0;\r\n display: flex;\r\n padding: 8px;\r\n border: 1px gray solid;\r\n}\r\n\r\n.config-tabs {\r\n width: 100%;\r\n}\r\n\r\n.config-tab {\r\n width: 100%;\r\n}\r\n\r\n.config-solution {\r\n position: absolute;\r\n top: 56px;\r\n right: -1px;\r\n bottom: -1px;\r\n left: -1px;\r\n display: flex;\r\n padding: 8px;\r\n}\r\n\r\n.config-inventory {\r\n display: inline;\r\n flex-grow: 0;\r\n overflow-y: auto;\r\n max-width: min-content;\r\n}\r\n\r\n.config-inventory-hide {\r\n display: none;\r\n flex-grow: 0;\r\n overflow-y: auto;\r\n max-width: min-content;\r\n}\r\n\r\n.config-item {\r\n display: inline;\r\n margin-left: 8px;\r\n flex-grow: 1;\r\n overflow-y: auto;\r\n position: relative;\r\n}\r\nhtml[dir=\"rtl\"] .config-item {\r\n margin-left: 0;\r\n margin-right: 8px;\r\n}\r\n\r\nsolution-contents {\r\n height: 100%;\r\n position: relative;\r\n}\r\n\r\nsolution-item {\r\n height: 100%;\r\n position: relative;\r\n}\r\n\r\nsolution-spatial-ref {\r\n width: 100%;\r\n height: 100%;\r\n position: relative;\r\n overflow-y: auto;\r\n}\r\n","/** @license\r\n * Copyright 2021 Esri\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n\r\nimport { Component, Element, h, Host, Listen, Method, Prop, State, VNode } from '@stencil/core';\r\nimport { IInventoryItem } from '../solution-contents/solution-contents';\r\nimport { ISolutionItem } from '../solution-item/solution-item';\r\nimport { IOrganizationVariableItem } from '../solution-organization-variables/solution-organization-variables';\r\nimport { IVariableItem } from '../solution-variables/solution-variables';\r\nimport * as utils from '../../utils/templates';\r\nimport state from '../../utils/editStore';\r\n\r\nimport '@esri/calcite-components';\r\n\r\nexport interface ISolutionConfiguration {\r\n contents: IInventoryItem[]\r\n}\r\n\r\n@Component({\r\n tag: 'solution-configuration',\r\n styleUrl: 'solution-configuration.css',\r\n shadow: false\r\n})\r\nexport class SolutionConfiguration {\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Host element access\r\n //\r\n //--------------------------------------------------------------------------\r\n @Element() el: HTMLSolutionConfigurationElement;\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Properties (public)\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n @State() modelsSet = false;\r\n\r\n /**\r\n * Contains the translations for this component.\r\n */\r\n @Prop({ mutable: true }) translations: any = {};\r\n\r\n /**\r\n * Contains the public value for this component.\r\n */\r\n @Prop({ mutable: true, reflect: true }) value: ISolutionConfiguration = {\r\n contents: []\r\n };\r\n\r\n /**\r\n * Contains the raw templates from the solution item\r\n */\r\n @Prop({mutable: true, reflect: true}) templates: string;\r\n\r\n /**\r\n * Contains the current solution item we are working with\r\n */\r\n @Prop({ mutable: true }) item: ISolutionItem = {\r\n itemId: \"\",\r\n itemDetails: {},\r\n isResource: false,\r\n data: {},\r\n properties: {},\r\n type: \"\"\r\n };\r\n\r\n /**\r\n * Contains the current solution item id\r\n */\r\n @Prop({ mutable: true }) solutionItemId: string;\r\n\r\n /**\r\n * Used to show/hide the content tree\r\n */\r\n @Prop({ mutable: true }) treeOpen = true;\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Lifecycle\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n connectedCallback(): void {\r\n this._initTemplatesObserver();\r\n }\r\n\r\n render(): VNode {\r\n return (\r\n <Host>\r\n <div class=\"configuration-container\">\r\n <div class=\"configuration\">\r\n <calcite-tabs class=\"config-tabs\">\r\n <calcite-tab-nav slot=\"tab-nav\">\r\n <calcite-tab-title>{this.translations.definitionTab}</calcite-tab-title>\r\n <calcite-tab-title>{this.translations.spatialReferenceTab}</calcite-tab-title>\r\n </calcite-tab-nav>\r\n <calcite-tab active class=\"config-tab\">\r\n <div class=\"config-solution\">\r\n <div class={this.treeOpen ? \"config-inventory\" : \"config-inventory-hide\"}>\r\n <solution-contents\r\n id=\"configInventory\"\r\n key={`${this.solutionItemId }-contents`}\r\n translations={this.translations}\r\n value={this.value.contents}\r\n />\r\n </div>\r\n <calcite-button\r\n appearance=\"transparent\"\r\n class=\"collapse-btn\"\r\n icon-start={this.treeOpen ? \"chevrons-left\" : \"chevrons-right\"}\r\n id=\"collapse-vars\"\r\n onClick={() => this._toggleTree()}\r\n scale=\"s\"\r\n title={this.translations.cancelEdits}\r\n />\r\n <div class=\"config-item\">\r\n <solution-item\r\n key={`${this.solutionItemId}-item`}\r\n organizationVariables={this._organizationVariables}\r\n solutionVariables={this._solutionVariables}\r\n translations={this.translations}\r\n value={this.item}\r\n />\r\n </div>\r\n </div>\r\n </calcite-tab>\r\n <calcite-tab class=\"config-tab\">\r\n <div class=\"config-solution\">\r\n <solution-spatial-ref\r\n id=\"configure-solution-spatial-ref\"\r\n key={`${this.solutionItemId}-spatial-ref`}\r\n services={state.featureServices}\r\n translations={this.translations}\r\n />\r\n </div>\r\n </calcite-tab>\r\n </calcite-tabs>\r\n </div>\r\n </div>\r\n </Host>\r\n );\r\n }\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Variables (private)\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n private _templatesObserver: MutationObserver;\r\n\r\n private _solutionVariables: IVariableItem[];\r\n\r\n private _organizationVariables: IOrganizationVariableItem[];\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Event Listeners\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n @Listen(\"solutionItemSelected\", { target: 'window' })\r\n _solutionItemSelected(event: CustomEvent): void {\r\n this.item = event.detail;\r\n }\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Events\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Public Methods (async)\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n @Method()\r\n async getEditModels(): Promise<any> {\r\n return Promise.resolve(state.models);\r\n }\r\n\r\n @Method()\r\n async getSpatialReferenceInfo(): Promise<any> {\r\n return Promise.resolve(state.spatialReferenceInfo);\r\n }\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Private Methods\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n /**\r\n * Observe changes to the templates prop\r\n */\r\n private _initTemplatesObserver() {\r\n this._templatesObserver = new MutationObserver(ml => {\r\n ml.some(mutation => {\r\n if (mutation.type === 'attributes' && mutation.attributeName === \"templates\" &&\r\n mutation.target[mutation.attributeName] !== mutation.oldValue) {\r\n const v = JSON.parse(mutation.target[mutation.attributeName]);\r\n this._initProps(v);\r\n this._initState(v);\r\n return true;\r\n }\r\n })\r\n });\r\n this._templatesObserver.observe(this.el, { attributes: true, attributeOldValue: true });\r\n }\r\n\r\n /**\r\n * Update the store with the initial value\r\n */\r\n private _initState(v: any): void {\r\n state.models = utils.getModels(v);\r\n state.featureServices = utils.getFeatureServices(v);\r\n state.spatialReferenceInfo = utils.getSpatialReferenceInfo(state.featureServices);\r\n this.modelsSet = true;\r\n }\r\n\r\n /**\r\n * Update the Props with the initial values\r\n */\r\n private _initProps(v: any): void {\r\n this.value.contents = [...utils.getInventoryItems(v)];\r\n this._solutionVariables = utils.getSolutionVariables(v, this.translations);\r\n this._organizationVariables = utils.getOrganizationVariables(this.translations);\r\n this.item = {\r\n itemId: \"\",\r\n itemDetails: {},\r\n isResource: false,\r\n data: {},\r\n properties: {},\r\n type: \"\"\r\n };\r\n }\r\n\r\n /**\r\n * Toggle treeOpen prop to show/hide content tree\r\n */\r\n private _toggleTree(): void {\r\n this.treeOpen = !this.treeOpen;\r\n }\r\n}\r\n"]}
@@ -1,11 +0,0 @@
1
- /*!
2
- * Copyright 2021 Esri
3
- * Licensed under the Apache License, Version 2.0
4
- * http://www.apache.org/licenses/LICENSE-2.0
5
- */
6
- import{r as t,h as i,g as a}from"./p-2e1cd889.js";
7
- /*!
8
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
9
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
10
- */const n={scrim:"scrim",content:"content"};const e={loading:"Loading"};const o="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:flex;position:absolute;z-index:50;flex-direction:column;align-items:stretch;width:100%;height:100%;top:0;right:0;bottom:0;left:0}@keyframes calcite-scrim-fade-in{0%{--bg-opacity:0}100%{--text-opacity:1}}.scrim{display:flex;position:absolute;overflow:hidden;top:0;right:0;bottom:0;left:0;align-content:center;align-items:center;flex-direction:column;justify-content:center;animation:calcite-scrim-fade-in 250ms ease-in-out;background-color:var(--calcite-scrim-background)}.content{padding:1rem}";let c=class{constructor(i){t(this,i);this.intlLoading=e.loading;this.loading=false}render(){const{el:t,loading:a,intlLoading:e}=this;const o=t.innerHTML.trim().length>0;const c=a?i("calcite-loader",{active:true,label:e}):null;const s=o?i("div",{class:n.content},i("slot",null)):null;return i("div",{class:n.scrim},c,s)}get el(){return a(this)}};c.style=o;export{c as calcite_scrim};
11
- //# sourceMappingURL=p-7fd90af2.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/components/calcite-scrim/resources.js","node_modules/@esri/calcite-components/dist/collection/components/calcite-scrim/calcite-scrim.css?tag=calcite-scrim&encapsulation=shadow","node_modules/@esri/calcite-components/dist/collection/components/calcite-scrim/calcite-scrim.js"],"names":["CSS","scrim","content","TEXT","loading","calciteScrimCss","CalciteScrim","[object Object]","hostRef","this","intlLoading","el","hasContent","innerHTML","trim","length","loaderNode","h","active","label","contentNode","class"],"mappings":";;;;;;;;;GAIO,MAAMA,EAAM,CACjBC,MAAO,QACPC,QAAS,WAEJ,MAAMC,EAAO,CAClBC,QAAS,WCTX,MAAMC,EAAkB,gxCCSXC,EAAY,MACvBC,YAAAC,aASEC,KAAKC,YAAcP,EAAKC,QAKxBK,KAAKL,QAAU,MAOjBG,SACE,MAAMI,GAAEA,EAAEP,QAAEA,EAAOM,YAAEA,GAAgBD,KACrC,MAAMG,EAAaD,EAAGE,UAAUC,OAAOC,OAAS,EAChD,MAAMC,EAAaZ,EAAUa,EAAE,iBAAkB,CAAEC,OAAQ,KAAMC,MAAOT,IAAiB,KACzF,MAAMU,EAAcR,EAAcK,EAAE,MAAO,CAAEI,MAAOrB,EAAIE,SACtDe,EAAE,OAAQ,OAAU,KACtB,OAAQA,EAAE,MAAO,CAAEI,MAAOrB,EAAIC,OAC5Be,EACAI","sourcesContent":["/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nexport const CSS = {\n scrim: \"scrim\",\n content: \"content\"\n};\nexport const TEXT = {\n loading: \"Loading\"\n};\n","/* mixins & extensions */\n\n@keyframes in {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n@keyframes in-down {\n 0% {\n opacity: 0;\n transform: translate3D(0, -5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-up {\n 0% {\n opacity: 0;\n transform: translate3D(0, 5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-scale {\n 0% {\n opacity: 0;\n transform: scale3D(0.95, 0.95, 1);\n }\n\n 100% {\n opacity: 1;\n transform: scale3D(1, 1, 1);\n }\n}\n\n:root {\n --calcite-animation-timing: 300ms;\n}\n\n.calcite-animate {\n opacity: 0;\n animation-fill-mode: both;\n animation-duration: var(--calcite-animation-timing);\n}\n\n.calcite-animate__in {\n animation-name: in;\n}\n\n.calcite-animate__in-down {\n animation-name: in-down;\n}\n\n.calcite-animate__in-up {\n animation-name: in-up;\n}\n\n.calcite-animate__in-scale {\n animation-name: in-scale;\n}\n\n/**\n* Currently only used in Checkbox.\n*/\n\n:root {\n --calcite-popper-transition: 150ms ease-in-out;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n:host {\n display: flex;\n position: absolute;\n z-index: 50;\n flex-direction: column;\n align-items: stretch;\n width: 100%;\n height: 100%;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n}\n\n@keyframes calcite-scrim-fade-in {\n 0% {\n --bg-opacity: 0;\n }\n\n 100% {\n --text-opacity: 1;\n }\n}\n\n.scrim {\n display: flex;\n position: absolute;\n overflow: hidden;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n align-content: center;\n align-items: center;\n flex-direction: column;\n justify-content: center;\n animation: calcite-scrim-fade-in 250ms ease-in-out;\n background-color: var(--calcite-scrim-background);\n}\n\n.content {\n padding: 1rem;\n}","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nimport { Component, Element, Prop, h } from \"@stencil/core\";\nimport { CSS, TEXT } from \"./resources\";\n/**\n * @slot - A slot for adding custom content, primarily loading information.\n */\nexport class CalciteScrim {\n constructor() {\n // --------------------------------------------------------------------------\n //\n // Properties\n //\n // --------------------------------------------------------------------------\n /** string to override English loading text\n * @default \"Loading\"\n */\n this.intlLoading = TEXT.loading;\n /**\n * Determines if the component will have the loader overlay.\n * Otherwise, will render opaque disabled state.\n */\n this.loading = false;\n }\n // --------------------------------------------------------------------------\n //\n // Render Method\n //\n // --------------------------------------------------------------------------\n render() {\n const { el, loading, intlLoading } = this;\n const hasContent = el.innerHTML.trim().length > 0;\n const loaderNode = loading ? h(\"calcite-loader\", { active: true, label: intlLoading }) : null;\n const contentNode = hasContent ? (h(\"div\", { class: CSS.content },\n h(\"slot\", null))) : null;\n return (h(\"div\", { class: CSS.scrim },\n loaderNode,\n contentNode));\n }\n static get is() { return \"calcite-scrim\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"calcite-scrim.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-scrim.css\"]\n }; }\n static get properties() { return {\n \"intlLoading\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"default\",\n \"text\": \"\\\"Loading\\\"\"\n }],\n \"text\": \"string to override English loading text\"\n },\n \"attribute\": \"intl-loading\",\n \"reflect\": false,\n \"defaultValue\": \"TEXT.loading\"\n },\n \"loading\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Determines if the component will have the loader overlay.\\nOtherwise, will render opaque disabled state.\"\n },\n \"attribute\": \"loading\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n }\n }; }\n static get elementRef() { return \"el\"; }\n}\n"]}
@@ -1,11 +0,0 @@
1
- /*!
2
- * Copyright 2021 Esri
3
- * Licensed under the Apache License, Version 2.0
4
- * http://www.apache.org/licenses/LICENSE-2.0
5
- */
6
- import{r as t,h as i,g as a}from"./p-2e1cd889.js";import{c as o}from"./p-0c91e100.js";import{c as n}from"./p-e762b2d1.js";import"./p-ec178ea9.js";
7
- /*!
8
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
9
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
10
- */const e={swatch:"swatch",noColorIcon:"no-color-icon"};const r={borderLight:"rgba(0, 0, 0, 0.15)",borderDark:"rgba(255, 255, 255, 0.15)"};const s="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:inline-flex;position:relative}:host([scale=s]){height:1.25rem;width:1.25rem}:host([scale=m]){height:1.5rem;width:1.5rem}:host([scale=l]){height:2rem;width:2rem}.swatch{overflow:visible;height:inherit;width:inherit}.swatch rect{transition-property:all;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.no-color-icon{height:100%;width:100%;top:0;right:0;bottom:0;left:0;position:absolute}";let c=class{constructor(i){t(this,i);this.active=false;this.scale="m"}handleColorChange(t){this.internalColor=o(t)}componentWillLoad(){this.handleColorChange(this.color)}render(){const{active:t,el:a,internalColor:o}=this;const s=t?"100%":"0";const c=o.hex();const l=n(a);const h=l==="light"?r.borderLight:r.borderDark;return i("svg",{class:e.swatch,xmlns:"http://www.w3.org/2000/svg"},i("title",null,c),i("rect",{fill:c,height:"100%",id:"swatch",rx:s,stroke:h,"stroke-width":"2",style:{"clip-path":`inset(0 round ${s})`},width:"100%"}))}get el(){return a(this)}static get watchers(){return{color:["handleColorChange"]}}};c.style=s;export{c as calcite_color_picker_swatch};
11
- //# sourceMappingURL=p-815449b1.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/components/calcite-color-picker-swatch/resources.js","node_modules/@esri/calcite-components/dist/collection/components/calcite-color-picker-swatch/calcite-color-picker-swatch.css?tag=calcite-color-picker-swatch&encapsulation=shadow","node_modules/@esri/calcite-components/dist/collection/components/calcite-color-picker-swatch/calcite-color-picker-swatch.js"],"names":["CSS","swatch","noColorIcon","COLORS","borderLight","borderDark","calciteColorPickerSwatchCss","CalciteColorPickerSwatch","[object Object]","hostRef","this","active","scale","color","internalColor","Color","handleColorChange","el","borderRadius","hex","theme","getThemeName","borderColor","h","class","xmlns","fill","height","id","rx","stroke","stroke-width","style","clip-path","width"],"mappings":";;;;;;;;;GAIO,MAAMA,EAAM,CACjBC,OAAQ,SACRC,YAAa,iBAER,MAAMC,EAAS,CACpBC,YAAa,sBACbC,WAAY,6BCVd,MAAMC,EAA8B,ssCCQvBC,EAAwB,MACnCC,YAAAC,aASEC,KAAKC,OAAS,MAIdD,KAAKE,MAAQ,IAEfJ,kBAAkBK,GAChBH,KAAKI,cAAgBC,EAAMF,GAO7BL,oBACEE,KAAKM,kBAAkBN,KAAKG,OAE9BL,SACE,MAAMG,OAAEA,EAAMM,GAAEA,EAAEH,cAAEA,GAAkBJ,KACtC,MAAMQ,EAAeP,EAAS,OAAS,IACvC,MAAMQ,EAAML,EAAcK,MAC1B,MAAMC,EAAQC,EAAaJ,GAC3B,MAAMK,EAAcF,IAAU,QAAUjB,EAAOC,YAAcD,EAAOE,WACpE,OAAQkB,EAAE,MAAO,CAAEC,MAAOxB,EAAIC,OAAQwB,MAAO,8BAC3CF,EAAE,QAAS,KAAMJ,GACjBI,EAAE,OAAQ,CAAEG,KAAMP,EAAKQ,OAAQ,OAAQC,GAAI,SAAUC,GAAIX,EAAcY,OAAQR,EAAaS,eAAgB,IAAKC,MAAO,CAAEC,YAAa,iBAAiBf,MAAmBgB,MAAO","sourcesContent":["/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nexport const CSS = {\n swatch: \"swatch\",\n noColorIcon: \"no-color-icon\"\n};\nexport const COLORS = {\n borderLight: \"rgba(0, 0, 0, 0.15)\",\n borderDark: \"rgba(255, 255, 255, 0.15)\"\n};\n","/* mixins & extensions */\n\n@keyframes in {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n@keyframes in-down {\n 0% {\n opacity: 0;\n transform: translate3D(0, -5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-up {\n 0% {\n opacity: 0;\n transform: translate3D(0, 5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-scale {\n 0% {\n opacity: 0;\n transform: scale3D(0.95, 0.95, 1);\n }\n\n 100% {\n opacity: 1;\n transform: scale3D(1, 1, 1);\n }\n}\n\n:root {\n --calcite-animation-timing: 300ms;\n}\n\n.calcite-animate {\n opacity: 0;\n animation-fill-mode: both;\n animation-duration: var(--calcite-animation-timing);\n}\n\n.calcite-animate__in {\n animation-name: in;\n}\n\n.calcite-animate__in-down {\n animation-name: in-down;\n}\n\n.calcite-animate__in-up {\n animation-name: in-up;\n}\n\n.calcite-animate__in-scale {\n animation-name: in-scale;\n}\n\n/**\n* Currently only used in Checkbox.\n*/\n\n:root {\n --calcite-popper-transition: 150ms ease-in-out;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n:host {\n display: inline-flex;\n position: relative;\n}\n\n:host([scale=s]) {\n height: 1.25rem;\n width: 1.25rem;\n}\n\n:host([scale=m]) {\n height: 1.5rem;\n width: 1.5rem;\n}\n\n:host([scale=l]) {\n height: 2rem;\n width: 2rem;\n}\n\n.swatch {\n overflow: visible;\n height: inherit;\n width: inherit;\n}\n\n.swatch rect {\n transition-property: all;\n transition-duration: 150ms;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n}\n\n.no-color-icon {\n height: 100%;\n width: 100%;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n position: absolute;\n}","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nimport { Component, Element, h, Prop, Watch } from \"@stencil/core\";\nimport Color from \"color\";\nimport { COLORS, CSS } from \"./resources\";\nimport { getThemeName } from \"../../utils/dom\";\nexport class CalciteColorPickerSwatch {\n constructor() {\n //--------------------------------------------------------------------------\n //\n // Properties\n //\n //--------------------------------------------------------------------------\n /**\n * Used to display whether the swatch is active or not.\n */\n this.active = false;\n /**\n * The component scale.\n */\n this.scale = \"m\";\n }\n handleColorChange(color) {\n this.internalColor = Color(color);\n }\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n componentWillLoad() {\n this.handleColorChange(this.color);\n }\n render() {\n const { active, el, internalColor } = this;\n const borderRadius = active ? \"100%\" : \"0\";\n const hex = internalColor.hex();\n const theme = getThemeName(el);\n const borderColor = theme === \"light\" ? COLORS.borderLight : COLORS.borderDark;\n return (h(\"svg\", { class: CSS.swatch, xmlns: \"http://www.w3.org/2000/svg\" },\n h(\"title\", null, hex),\n h(\"rect\", { fill: hex, height: \"100%\", id: \"swatch\", rx: borderRadius, stroke: borderColor, \"stroke-width\": \"2\", style: { \"clip-path\": `inset(0 round ${borderRadius})` }, width: \"100%\" })));\n }\n static get is() { return \"calcite-color-picker-swatch\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"calcite-color-picker-swatch.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-color-picker-swatch.css\"]\n }; }\n static get properties() { return {\n \"active\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Used to display whether the swatch is active or not.\"\n },\n \"attribute\": \"active\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"color\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"see\",\n \"text\": \"https://developer.mozilla.org/en-US/docs/Web/CSS/color_value\"\n }],\n \"text\": \"The color value.\"\n },\n \"attribute\": \"color\",\n \"reflect\": false\n },\n \"scale\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Scale\",\n \"resolved\": \"\\\"l\\\" | \\\"m\\\" | \\\"s\\\"\",\n \"references\": {\n \"Scale\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The component scale.\"\n },\n \"attribute\": \"scale\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"m\\\"\"\n }\n }; }\n static get elementRef() { return \"el\"; }\n static get watchers() { return [{\n \"propName\": \"color\",\n \"methodName\": \"handleColorChange\"\n }]; }\n}\n"]}
@@ -1,11 +0,0 @@
1
- /*!
2
- * Copyright 2021 Esri
3
- * Licensed under the Apache License, Version 2.0
4
- * http://www.apache.org/licenses/LICENSE-2.0
5
- */
6
- import{r as t,h as i,g as e,F as a}from"./p-2e1cd889.js";import{a as o,C as r,b as n}from"./p-e762b2d1.js";import"./p-ec178ea9.js";
7
- /*!
8
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
9
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
10
- */const c={actionBarContainer:"action-bar-container",content:"content"};const s={actionBar:"action-bar"};const l="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}:host{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:flex;flex:1 1 auto;overflow:hidden;background-color:transparent}.content{display:flex;height:100%;margin:0;overflow:hidden;width:100%;flex:1 0 0}.action-bar-container{display:flex}:host([detached]){border-width:0;border-radius:0.25rem;box-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);margin-top:0.5rem;margin-bottom:1.5rem;margin-left:0.5rem;margin-right:0.5rem;animation:in-up var(--calcite-animation-timing) ease-in-out}:host([position=end]){align-self:flex-end}:host([position=start]){align-self:flex-start}:host([height-scale=s]){height:33.333333%}:host([height-scale=m]){height:70%}:host([height-scale=l]){height:100%}:host([height-scale=l][detached]){height:calc(100% - 2rem)}::slotted(calcite-panel){width:100%;height:100%}::slotted(calcite-action-bar){border-right-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}::slotted(calcite-action-bar[position=end]){border-left-width:0;border-right-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}.calcite--rtl ::slotted(calcite-action-bar){border-right-width:0;border-left-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}.calcite--rtl ::slotted(calcite-action-bar[position=end]){border-left-width:0;border-right-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}";let d=class{constructor(i){t(this,i);this.detached=false;this.heightScale="s";this.position="end"}render(){const{el:t}=this;const e=o(t)==="rtl";const l=i("div",{class:{[c.content]:true,[r.rtl]:e}},i("slot",null));const d=n(t,s.actionBar);const h=d?i("div",{class:{[c.actionBarContainer]:true,[r.rtl]:e}},i("slot",{name:s.actionBar})):null;const m=[h,l];if((d===null||d===void 0?void 0:d.position)==="end"){m.reverse()}return i(a,null,m)}get el(){return e(this)}};d.style=l;export{d as calcite_shell_center_row};
11
- //# sourceMappingURL=p-819aff56.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/components/calcite-shell-center-row/resources.js","node_modules/@esri/calcite-components/dist/collection/components/calcite-shell-center-row/calcite-shell-center-row.css?tag=calcite-shell-center-row&encapsulation=shadow","node_modules/@esri/calcite-components/dist/collection/components/calcite-shell-center-row/calcite-shell-center-row.js"],"names":["CSS","actionBarContainer","content","SLOTS","actionBar","calciteShellCenterRowCss","CalciteShellCenterRow","[object Object]","hostRef","this","detached","heightScale","position","el","rtl","getElementDir","contentNode","h","class","CSS_UTILITY","getSlotted","actionBarNode","name","children","reverse","Fragment"],"mappings":";;;;;;;;;GAIO,MAAMA,EAAM,CACjBC,mBAAoB,uBACpBC,QAAS,WAEJ,MAAMC,EAAQ,CACnBC,UAAW,cCTb,MAAMC,EAA2B,iwECYpBC,EAAqB,MAChCC,YAAAC,aASEC,KAAKC,SAAW,MAIhBD,KAAKE,YAAc,IAInBF,KAAKG,SAAW,MAOlBL,SACE,MAAMM,GAAEA,GAAOJ,KACf,MAAMK,EAAMC,EAAcF,KAAQ,MAClC,MAAMG,EAAeC,EAAE,MAAO,CAAEC,MAAO,CAAEX,CAACP,EAAIE,SAAU,KAAMK,CAACY,EAAYL,KAAMA,IAC/EG,EAAE,OAAQ,OACZ,MAAMb,EAAYgB,EAAWP,EAAIV,EAAMC,WACvC,MAAMiB,EAAgBjB,EAAaa,EAAE,MAAO,CAAEC,MAAO,CAAEX,CAACP,EAAIC,oBAAqB,KAAMM,CAACY,EAAYL,KAAMA,IACxGG,EAAE,OAAQ,CAAEK,KAAMnB,EAAMC,aAAiB,KAC3C,MAAMmB,EAAW,CAACF,EAAeL,GACjC,IAAKZ,IAAc,MAAQA,SAAmB,OAAS,EAAIA,EAAUQ,YAAc,MAAO,CACxFW,EAASC,UAEX,OAAOP,EAAEQ,EAAU,KAAMF","sourcesContent":["/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nexport const CSS = {\n actionBarContainer: \"action-bar-container\",\n content: \"content\"\n};\nexport const SLOTS = {\n actionBar: \"action-bar\"\n};\n","/* mixins & extensions */\n\n@keyframes in {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n@keyframes in-down {\n 0% {\n opacity: 0;\n transform: translate3D(0, -5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-up {\n 0% {\n opacity: 0;\n transform: translate3D(0, 5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-scale {\n 0% {\n opacity: 0;\n transform: scale3D(0.95, 0.95, 1);\n }\n\n 100% {\n opacity: 1;\n transform: scale3D(1, 1, 1);\n }\n}\n\n:root {\n --calcite-animation-timing: 300ms;\n}\n\n.calcite-animate {\n opacity: 0;\n animation-fill-mode: both;\n animation-duration: var(--calcite-animation-timing);\n}\n\n.calcite-animate__in {\n animation-name: in;\n}\n\n.calcite-animate__in-down {\n animation-name: in-down;\n}\n\n.calcite-animate__in-up {\n animation-name: in-up;\n}\n\n.calcite-animate__in-scale {\n animation-name: in-scale;\n}\n\n/**\n* Currently only used in Checkbox.\n*/\n\n:host {\n /* Base \":host\" styles for the component */\n box-sizing: border-box;\n background-color: var(--calcite-ui-foreground-1);\n color: var(--calcite-ui-text-2);\n font-size: var(--calcite-font-size--1);\n}\n\n:host * {\n box-sizing: border-box;\n}\n\n:root {\n --calcite-popper-transition: 150ms ease-in-out;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n:host {\n display: flex;\n flex: 1 1 auto;\n overflow: hidden;\n background-color: transparent;\n}\n\n.content {\n display: flex;\n height: 100%;\n margin: 0;\n overflow: hidden;\n width: 100%;\n flex: 1 0 0;\n}\n\n.action-bar-container {\n display: flex;\n}\n\n:host([detached]) {\n border-width: 0;\n border-radius: 0.25rem;\n box-shadow: 0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);\n margin-top: 0.5rem;\n margin-bottom: 1.5rem;\n margin-left: 0.5rem;\n margin-right: 0.5rem;\n animation: in-up var(--calcite-animation-timing) ease-in-out;\n}\n\n:host([position=end]) {\n align-self: flex-end;\n}\n\n:host([position=start]) {\n align-self: flex-start;\n}\n\n:host([height-scale=s]) {\n height: 33.333333%;\n}\n\n:host([height-scale=m]) {\n height: 70%;\n}\n\n:host([height-scale=l]) {\n height: 100%;\n}\n\n:host([height-scale=l][detached]) {\n height: calc(100% - 2rem);\n}\n\n::slotted(calcite-panel) {\n width: 100%;\n height: 100%;\n}\n\n::slotted(calcite-action-bar) {\n border-right-width: 1px;\n border-style: solid;\n border-color: var(--calcite-ui-border-3);\n}\n\n::slotted(calcite-action-bar[position=end]) {\n border-left-width: 0;\n border-right-width: 1px;\n border-style: solid;\n border-color: var(--calcite-ui-border-3);\n}\n\n.calcite--rtl ::slotted(calcite-action-bar) {\n border-right-width: 0;\n border-left-width: 1px;\n border-style: solid;\n border-color: var(--calcite-ui-border-3);\n}\n\n.calcite--rtl ::slotted(calcite-action-bar[position=end]) {\n border-left-width: 0;\n border-right-width: 1px;\n border-style: solid;\n border-color: var(--calcite-ui-border-3);\n}","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nimport { Component, Element, Prop, h, Fragment } from \"@stencil/core\";\nimport { CSS, SLOTS } from \"./resources\";\nimport { getElementDir, getSlotted } from \"../../utils/dom\";\nimport { CSS_UTILITY } from \"../../utils/resources\";\n/**\n * @slot - A slot for adding content to the shell panel.\n * @slot action-bar - A slot for adding a `calcite-action-bar` to the panel.\n */\nexport class CalciteShellCenterRow {\n constructor() {\n // --------------------------------------------------------------------------\n //\n // Properties\n //\n // --------------------------------------------------------------------------\n /**\n * This property makes the content area appear like a \"floating\" panel.\n */\n this.detached = false;\n /**\n * Specifies the maxiumum height of the row.\n */\n this.heightScale = \"s\";\n /**\n * Arranges the component depending on the elements 'dir' property.\n */\n this.position = \"end\";\n }\n // --------------------------------------------------------------------------\n //\n // Render Methods\n //\n // --------------------------------------------------------------------------\n render() {\n const { el } = this;\n const rtl = getElementDir(el) === \"rtl\";\n const contentNode = (h(\"div\", { class: { [CSS.content]: true, [CSS_UTILITY.rtl]: rtl } },\n h(\"slot\", null)));\n const actionBar = getSlotted(el, SLOTS.actionBar);\n const actionBarNode = actionBar ? (h(\"div\", { class: { [CSS.actionBarContainer]: true, [CSS_UTILITY.rtl]: rtl } },\n h(\"slot\", { name: SLOTS.actionBar }))) : null;\n const children = [actionBarNode, contentNode];\n if ((actionBar === null || actionBar === void 0 ? void 0 : actionBar.position) === \"end\") {\n children.reverse();\n }\n return h(Fragment, null, children);\n }\n static get is() { return \"calcite-shell-center-row\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"calcite-shell-center-row.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-shell-center-row.css\"]\n }; }\n static get properties() { return {\n \"detached\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"This property makes the content area appear like a \\\"floating\\\" panel.\"\n },\n \"attribute\": \"detached\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"heightScale\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Scale\",\n \"resolved\": \"\\\"l\\\" | \\\"m\\\" | \\\"s\\\"\",\n \"references\": {\n \"Scale\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Specifies the maxiumum height of the row.\"\n },\n \"attribute\": \"height-scale\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"s\\\"\"\n },\n \"position\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Position\",\n \"resolved\": \"\\\"end\\\" | \\\"start\\\"\",\n \"references\": {\n \"Position\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Arranges the component depending on the elements 'dir' property.\"\n },\n \"attribute\": \"position\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"end\\\"\"\n }\n }; }\n static get elementRef() { return \"el\"; }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/components/calcite-alert/interfaces.js"],"names":["StatusIcons"],"mappings":";;;;;;;;;AAIU,IAACA,GACX,SAAWA,GACTA,EAAY,SAAW,cACvBA,EAAY,UAAY,0BACxBA,EAAY,OAAS,0BACrBA,EAAY,QAAU,aAJxB,CAKGA,IAAgBA,EAAc","sourcesContent":["/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nexport var StatusIcons;\n(function (StatusIcons) {\n StatusIcons[\"green\"] = \"checkCircle\";\n StatusIcons[\"yellow\"] = \"exclamationMarkTriangle\";\n StatusIcons[\"red\"] = \"exclamationMarkTriangle\";\n StatusIcons[\"blue\"] = \"lightbulb\";\n})(StatusIcons || (StatusIcons = {}));\n"]}
@@ -1,7 +0,0 @@
1
- /*!
2
- * Copyright 2021 Esri
3
- * Licensed under the Apache License, Version 2.0
4
- * http://www.apache.org/licenses/LICENSE-2.0
5
- */
6
- import{r as a,c as t,h as i,H as n,g as e}from"./p-2e1cd889.js";const o="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:flex;max-width:100vw}:host([layout=horizontal]){flex-direction:row;flex-wrap:wrap}:host([layout=horizontal][scale=s]){grid-gap:1rem;gap:1rem}:host([layout=horizontal][scale=m]){grid-gap:1.25rem;gap:1.25rem}:host([layout=horizontal][scale=l]){grid-gap:1.5rem;gap:1.5rem}:host([layout=vertical]){flex-direction:column}";let s=class{constructor(i){a(this,i);this.calciteRadioButtonGroupChange=t(this,"calciteRadioButtonGroupChange",7);this.disabled=false;this.hidden=false;this.layout="horizontal";this.required=false;this.scale="m";this.passPropsToRadioButtons=()=>{const a=this.el.querySelectorAll("calcite-radio-button");if(a.length>0){a.forEach((a=>{a.disabled=this.disabled||a.disabled;a.hidden=this.hidden;a.name=this.name;a.required=this.required;a.scale=this.scale}))}}}onDisabledChange(){this.passPropsToRadioButtons()}onHiddenChange(){this.passPropsToRadioButtons()}onLayoutChange(){this.passPropsToRadioButtons()}onScaleChange(){this.passPropsToRadioButtons()}connectedCallback(){this.passPropsToRadioButtons()}radioButtonChangeHandler(a){this.calciteRadioButtonGroupChange.emit(a.target.value)}render(){return i(n,{role:"radiogroup"},i("slot",null))}get el(){return e(this)}static get watchers(){return{disabled:["onDisabledChange"],hidden:["onHiddenChange"],layout:["onLayoutChange"],scale:["onScaleChange"]}}};s.style=o;export{s as calcite_radio_button_group};
7
- //# sourceMappingURL=p-87d812ce.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/components/calcite-radio-button-group/calcite-radio-button-group.css?tag=calcite-radio-button-group&encapsulation=shadow","node_modules/@esri/calcite-components/dist/collection/components/calcite-radio-button-group/calcite-radio-button-group.js"],"names":["calciteRadioButtonGroupCss","CalciteRadioButtonGroup","[object Object]","hostRef","this","disabled","hidden","layout","required","scale","passPropsToRadioButtons","radioButtons","el","querySelectorAll","length","forEach","radioButton","name","event","calciteRadioButtonGroupChange","emit","target","value","h","Host","role"],"mappings":";;;;;gEAAA,MAAMA,EAA6B,+lCCQtBC,EAAuB,MAClCC,YAAAC,0FAOEC,KAAKC,SAAW,MAEhBD,KAAKE,OAAS,MAEdF,KAAKG,OAAS,aAEdH,KAAKI,SAAW,MAEhBJ,KAAKK,MAAQ,IAMbL,KAAKM,wBAA0B,KAC7B,MAAMC,EAAeP,KAAKQ,GAAGC,iBAAiB,wBAC9C,GAAIF,EAAaG,OAAS,EAAG,CAC3BH,EAAaI,SAASC,IACpBA,EAAYX,SAAWD,KAAKC,UAAYW,EAAYX,SACpDW,EAAYV,OAASF,KAAKE,OAC1BU,EAAYC,KAAOb,KAAKa,KACxBD,EAAYR,SAAWJ,KAAKI,SAC5BQ,EAAYP,MAAQL,KAAKK,WAKjCP,mBACEE,KAAKM,0BAEPR,iBACEE,KAAKM,0BAEPR,iBACEE,KAAKM,0BAEPR,gBACEE,KAAKM,0BAOPR,oBACEE,KAAKM,0BAOPR,yBAAyBgB,GACvBd,KAAKe,8BAA8BC,KAAKF,EAAMG,OAAOC,OAOvDpB,SACE,OAAQqB,EAAEC,EAAM,CAAEC,KAAM,cACtBF,EAAE,OAAQ","sourcesContent":["/* mixins & extensions */\n\n@keyframes in {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n@keyframes in-down {\n 0% {\n opacity: 0;\n transform: translate3D(0, -5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-up {\n 0% {\n opacity: 0;\n transform: translate3D(0, 5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-scale {\n 0% {\n opacity: 0;\n transform: scale3D(0.95, 0.95, 1);\n }\n\n 100% {\n opacity: 1;\n transform: scale3D(1, 1, 1);\n }\n}\n\n:root {\n --calcite-animation-timing: 300ms;\n}\n\n.calcite-animate {\n opacity: 0;\n animation-fill-mode: both;\n animation-duration: var(--calcite-animation-timing);\n}\n\n.calcite-animate__in {\n animation-name: in;\n}\n\n.calcite-animate__in-down {\n animation-name: in-down;\n}\n\n.calcite-animate__in-up {\n animation-name: in-up;\n}\n\n.calcite-animate__in-scale {\n animation-name: in-scale;\n}\n\n/**\n* Currently only used in Checkbox.\n*/\n\n:root {\n --calcite-popper-transition: 150ms ease-in-out;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n:host {\n display: flex;\n max-width: 100vw;\n}\n\n:host([layout=horizontal]) {\n flex-direction: row;\n flex-wrap: wrap;\n}\n\n:host([layout=horizontal][scale=s]) {\n grid-gap: 1rem;\n gap: 1rem;\n}\n\n:host([layout=horizontal][scale=m]) {\n grid-gap: 1.25rem;\n gap: 1.25rem;\n}\n\n:host([layout=horizontal][scale=l]) {\n grid-gap: 1.5rem;\n gap: 1.5rem;\n}\n\n:host([layout=vertical]) {\n flex-direction: column;\n}","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nimport { Component, Host, h, Element, Prop, Watch, Event, Listen } from \"@stencil/core\";\n/**\n * @slot - A slot for adding `calcite-radio-button`s.\n */\nexport class CalciteRadioButtonGroup {\n constructor() {\n //--------------------------------------------------------------------------\n //\n // Properties\n //\n //--------------------------------------------------------------------------\n /** The disabled state of the radio button group. */\n this.disabled = false;\n /** The radio button group's hidden status. When a radio button group is hidden none of its options are focusable or checkable. */\n this.hidden = false;\n /** The layout direction of the radio buttons in a group. */\n this.layout = \"horizontal\";\n /** Requires that a value is selected for the radio button group before the parent form will submit. */\n this.required = false;\n /** The scale (size) of the radio button group. */\n this.scale = \"m\";\n //--------------------------------------------------------------------------\n //\n // Private Methods\n //\n //--------------------------------------------------------------------------\n this.passPropsToRadioButtons = () => {\n const radioButtons = this.el.querySelectorAll(\"calcite-radio-button\");\n if (radioButtons.length > 0) {\n radioButtons.forEach((radioButton) => {\n radioButton.disabled = this.disabled || radioButton.disabled;\n radioButton.hidden = this.hidden;\n radioButton.name = this.name;\n radioButton.required = this.required;\n radioButton.scale = this.scale;\n });\n }\n };\n }\n onDisabledChange() {\n this.passPropsToRadioButtons();\n }\n onHiddenChange() {\n this.passPropsToRadioButtons();\n }\n onLayoutChange() {\n this.passPropsToRadioButtons();\n }\n onScaleChange() {\n this.passPropsToRadioButtons();\n }\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n connectedCallback() {\n this.passPropsToRadioButtons();\n }\n //--------------------------------------------------------------------------\n //\n // Event Listeners\n //\n //--------------------------------------------------------------------------\n radioButtonChangeHandler(event) {\n this.calciteRadioButtonGroupChange.emit(event.target.value);\n }\n // --------------------------------------------------------------------------\n //\n // Render Methods\n //\n // --------------------------------------------------------------------------\n render() {\n return (h(Host, { role: \"radiogroup\" },\n h(\"slot\", null)));\n }\n static get is() { return \"calcite-radio-button-group\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"calcite-radio-button-group.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-radio-button-group.css\"]\n }; }\n static get properties() { return {\n \"disabled\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The disabled state of the radio button group.\"\n },\n \"attribute\": \"disabled\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"hidden\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The radio button group's hidden status. When a radio button group is hidden none of its options are focusable or checkable.\"\n },\n \"attribute\": \"hidden\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"layout\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Layout\",\n \"resolved\": \"\\\"grid\\\" | \\\"horizontal\\\" | \\\"vertical\\\"\",\n \"references\": {\n \"Layout\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The layout direction of the radio buttons in a group.\"\n },\n \"attribute\": \"layout\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"horizontal\\\"\"\n },\n \"name\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": true,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The name of the radio button group. `name` must be unique to other radio button group instances.\"\n },\n \"attribute\": \"name\",\n \"reflect\": true\n },\n \"required\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Requires that a value is selected for the radio button group before the parent form will submit.\"\n },\n \"attribute\": \"required\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"scale\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Scale\",\n \"resolved\": \"\\\"l\\\" | \\\"m\\\" | \\\"s\\\"\",\n \"references\": {\n \"Scale\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The scale (size) of the radio button group.\"\n },\n \"attribute\": \"scale\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"m\\\"\"\n }\n }; }\n static get events() { return [{\n \"method\": \"calciteRadioButtonGroupChange\",\n \"name\": \"calciteRadioButtonGroupChange\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Emitted when the radio button group has changed.\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }]; }\n static get elementRef() { return \"el\"; }\n static get watchers() { return [{\n \"propName\": \"disabled\",\n \"methodName\": \"onDisabledChange\"\n }, {\n \"propName\": \"hidden\",\n \"methodName\": \"onHiddenChange\"\n }, {\n \"propName\": \"layout\",\n \"methodName\": \"onLayoutChange\"\n }, {\n \"propName\": \"scale\",\n \"methodName\": \"onScaleChange\"\n }]; }\n static get listeners() { return [{\n \"name\": \"calciteRadioButtonChange\",\n \"method\": \"radioButtonChangeHandler\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }]; }\n}\n"]}
@@ -1,7 +0,0 @@
1
- /*!
2
- * Copyright 2021 Esri
3
- * Licensed under the Apache License, Version 2.0
4
- * http://www.apache.org/licenses/LICENSE-2.0
5
- */
6
- import{r as a,c as t,h as i,F as n}from"./p-2e1cd889.js";const e="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:block}";let o=class{constructor(i){a(this,i);this.calciteOptionGroupChange=t(this,"calciteOptionGroupChange",7);this.disabled=false}handlePropChange(){this.calciteOptionGroupChange.emit()}render(){return i(n,null,i("div",null,this.label),i("slot",null))}static get watchers(){return{disabled:["handlePropChange"],label:["handlePropChange"]}}};o.style=e;export{o as calcite_option_group};
7
- //# sourceMappingURL=p-8b616d33.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/components/calcite-option-group/calcite-option-group.css?tag=calcite-option-group&encapsulation=shadow","node_modules/@esri/calcite-components/dist/collection/components/calcite-option-group/calcite-option-group.js"],"names":["calciteOptionGroupCss","CalciteOptionGroup","[object Object]","hostRef","this","disabled","calciteOptionGroupChange","emit","h","Fragment","label"],"mappings":";;;;;yDAAA,MAAMA,EAAwB,yyBCQjBC,EAAkB,MAC7BC,YAAAC,gFASEC,KAAKC,SAAW,MAElBH,mBACEE,KAAKE,yBAAyBC,OAOhCL,SACE,OAAQM,EAAEC,EAAU,KAClBD,EAAE,MAAO,KAAMJ,KAAKM,OACpBF,EAAE,OAAQ","sourcesContent":["/* mixins & extensions */\n\n@keyframes in {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n@keyframes in-down {\n 0% {\n opacity: 0;\n transform: translate3D(0, -5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-up {\n 0% {\n opacity: 0;\n transform: translate3D(0, 5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-scale {\n 0% {\n opacity: 0;\n transform: scale3D(0.95, 0.95, 1);\n }\n\n 100% {\n opacity: 1;\n transform: scale3D(1, 1, 1);\n }\n}\n\n:root {\n --calcite-animation-timing: 300ms;\n}\n\n.calcite-animate {\n opacity: 0;\n animation-fill-mode: both;\n animation-duration: var(--calcite-animation-timing);\n}\n\n.calcite-animate__in {\n animation-name: in;\n}\n\n.calcite-animate__in-down {\n animation-name: in-down;\n}\n\n.calcite-animate__in-up {\n animation-name: in-up;\n}\n\n.calcite-animate__in-scale {\n animation-name: in-scale;\n}\n\n/**\n* Currently only used in Checkbox.\n*/\n\n:root {\n --calcite-popper-transition: 150ms ease-in-out;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n:host {\n display: block;\n}","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nimport { Component, h, Prop, Watch, Event, Fragment } from \"@stencil/core\";\n/**\n * @slot - A slot for adding `calcite-option`s.\n */\nexport class CalciteOptionGroup {\n constructor() {\n //--------------------------------------------------------------------------\n //\n // Properties\n //\n //--------------------------------------------------------------------------\n /**\n * When true, it prevents selection from any of its associated options.\n */\n this.disabled = false;\n }\n handlePropChange() {\n this.calciteOptionGroupChange.emit();\n }\n //--------------------------------------------------------------------------\n //\n // Render Methods\n //\n //--------------------------------------------------------------------------\n render() {\n return (h(Fragment, null,\n h(\"div\", null, this.label),\n h(\"slot\", null)));\n }\n static get is() { return \"calcite-option-group\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"calcite-option-group.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-option-group.css\"]\n }; }\n static get properties() { return {\n \"disabled\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"When true, it prevents selection from any of its associated options.\"\n },\n \"attribute\": \"disabled\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"label\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": true,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The group label. This property is required.\"\n },\n \"attribute\": \"label\",\n \"reflect\": false\n }\n }; }\n static get events() { return [{\n \"method\": \"calciteOptionGroupChange\",\n \"name\": \"calciteOptionGroupChange\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": undefined\n }],\n \"text\": \"\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }]; }\n static get watchers() { return [{\n \"propName\": \"disabled\",\n \"methodName\": \"handlePropChange\"\n }, {\n \"propName\": \"label\",\n \"methodName\": \"handlePropChange\"\n }]; }\n}\n"]}
@@ -1,7 +0,0 @@
1
- /*!
2
- * Copyright 2021 Esri
3
- * Licensed under the Apache License, Version 2.0
4
- * http://www.apache.org/licenses/LICENSE-2.0
5
- */
6
- import{r as t,c as i,h as e,H as a,g as o}from"./p-2e1cd889.js";import{f as r,a as n,C as s}from"./p-e762b2d1.js";import{g as c}from"./p-7df393df.js";import{c as l,d as h,g as d}from"./p-cb5cb9a8.js";import{c as p,d as m,H as u}from"./p-0b8525e2.js";import"./p-ec178ea9.js";const b="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host([scale=s]) .container{height:0.75rem}:host([scale=s]) .track{width:1.5rem;height:0.75rem}:host([scale=s]) .handle{width:0.5rem;height:0.5rem}:host([scale=m]) .container{height:1rem}:host([scale=m]) .track{width:2rem;height:1rem}:host([scale=m]) .handle{width:0.75rem;height:0.75rem}:host([scale=l]) .container{height:1.5rem}:host([scale=l]) .track{width:3rem;height:1.5rem}:host([scale=l]) .handle{width:1.25rem;height:1.25rem}:host{display:inline-block;position:relative;width:auto;cursor:pointer;-webkit-user-select:none;user-select:none;vertical-align:middle;tap-highlight-color:transparent}:host([disabled]){opacity:var(--calcite-ui-opacity-disabled);pointer-events:none;cursor:default}:host{outline-offset:0;outline-color:transparent;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;width:auto}:host(:focus){outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.track{position:relative;display:inline-block;vertical-align:top;background-color:var(--calcite-ui-foreground-2);border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-2);box-sizing:border-box;pointer-events:none;transition-property:all;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);border-radius:9999px}.handle{position:absolute;display:block;right:auto;background-color:var(--calcite-ui-foreground-1);border-width:2px;border-style:solid;border-color:var(--calcite-ui-border-input);transition-property:all;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);border-radius:9999px;pointer-events:none;top:-1px;left:-1px}:host(:hover) .handle,:host(:focus) .handle{border-color:var(--calcite-ui-brand);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand)}:host([checked]) .track{background-color:var(--calcite-ui-brand);border-color:var(--calcite-ui-brand-hover)}:host([checked]) .handle{left:auto;border-color:var(--calcite-ui-brand);right:-1px}:host([checked]:hover) .track{background-color:var(--calcite-ui-brand);border-color:var(--calcite-ui-brand-hover)}:host([checked]:hover) .handle{border-color:var(--calcite-ui-brand-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand-hover)}.calcite--rtl .handle{left:auto;right:-1px}:host([checked]) .calcite--rtl .handle{right:auto;left:-1px}:host([checked]:active) .calcite--rtl .handle{right:auto;left:-1px}:host([checked]:focus) .calcite--rtl .handle{right:auto;left:-1px}::slotted(input[slot=hidden-form-input]){bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";let f=class{constructor(e){t(this,e);this.calciteSwitchChange=i(this,"calciteSwitchChange",7);this.disabled=false;this.scale="m";this.switched=false;this.checked=false;this.keyDownHandler=t=>{const i=c(t.key);if(!this.disabled&&(i===" "||i==="Enter")){this.toggle()}};this.clickHandler=()=>{this.toggle()};this.setSwitchEl=t=>{this.switchEl=t}}disabledWatcher(t){this.tabindex=t?-1:0}switchedWatcher(t){this.checked=t}async setFocus(){r(this.switchEl)}onLabelClick(){if(!this.disabled){this.toggle();this.setFocus()}}toggle(){this.checked=!this.checked;this.calciteSwitchChange.emit({switched:this.checked})}connectedCallback(){const t=this.checked||this.switched;if(t){this.switched=this.checked=t}l(this);p(this)}disconnectedCallback(){h(this);m(this)}componentWillLoad(){this.tabindex=this.el.getAttribute("tabindex")||this.disabled?-1:0}render(){const t=n(this.el);return e(a,{onKeyDown:this.keyDownHandler},e("div",{"aria-checked":this.checked.toString(),"aria-label":d(this),class:{container:true,[s.rtl]:t==="rtl"},onClick:this.clickHandler,ref:this.setSwitchEl,role:"switch",tabindex:this.tabindex},e("div",{class:"track"},e("div",{class:"handle"})),e(u,{component:this})))}get el(){return o(this)}static get watchers(){return{disabled:["disabledWatcher"],switched:["switchedWatcher"]}}};f.style=b;export{f as calcite_switch};
7
- //# sourceMappingURL=p-8efca26d.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/components/calcite-switch/calcite-switch.css?tag=calcite-switch&encapsulation=shadow","node_modules/@esri/calcite-components/dist/collection/components/calcite-switch/calcite-switch.js"],"names":["calciteSwitchCss","CalciteSwitch","[object Object]","hostRef","this","disabled","scale","switched","checked","keyDownHandler","e","key","getKey","toggle","clickHandler","setSwitchEl","el","switchEl","newDisabled","tabindex","focusElement","setFocus","calciteSwitchChange","emit","initiallyChecked","connectLabel","connectForm","disconnectLabel","disconnectForm","getAttribute","dir","getElementDir","h","Host","onKeyDown","aria-checked","toString","aria-label","getLabelText","class","container","CSS_UTILITY","rtl","onClick","ref","role","HiddenFormInputSlot","component"],"mappings":";;;;;kRAAA,MAAMA,EAAmB,67GCUZC,EAAa,MACxBC,YAAAC,sEAOEC,KAAKC,SAAW,MAEhBD,KAAKE,MAAQ,IAIbF,KAAKG,SAAW,MAEhBH,KAAKI,QAAU,MAMfJ,KAAKK,eAAkBC,IACrB,MAAMC,EAAMC,EAAOF,EAAEC,KACrB,IAAKP,KAAKC,WAAaM,IAAQ,KAAOA,IAAQ,SAAU,CACtDP,KAAKS,WAGTT,KAAKU,aAAe,KAClBV,KAAKS,UAEPT,KAAKW,YAAeC,IAClBZ,KAAKa,SAAWD,GAGpBd,gBAAgBgB,GACdd,KAAKe,SAAWD,GAAe,EAAI,EAErChB,gBAAgBK,GACdH,KAAKI,QAAUD,EAQjBL,iBACEkB,EAAahB,KAAKa,UAEpBf,eACE,IAAKE,KAAKC,SAAU,CAClBD,KAAKS,SACLT,KAAKiB,YAGTnB,SACEE,KAAKI,SAAWJ,KAAKI,QACrBJ,KAAKkB,oBAAoBC,KAAK,CAG5BhB,SAAUH,KAAKI,UAQnBN,oBACE,MAAMsB,EAAmBpB,KAAKI,SAAWJ,KAAKG,SAC9C,GAAIiB,EAAkB,CAEpBpB,KAAKG,SAAWH,KAAKI,QAAUgB,EAEjCC,EAAarB,MACbsB,EAAYtB,MAEdF,uBACEyB,EAAgBvB,MAChBwB,EAAexB,MAEjBF,oBACEE,KAAKe,SAAWf,KAAKY,GAAGa,aAAa,aAAezB,KAAKC,UAAY,EAAI,EAO3EH,SACE,MAAM4B,EAAMC,EAAc3B,KAAKY,IAC/B,OAAQgB,EAAEC,EAAM,CAAEC,UAAW9B,KAAKK,gBAChCuB,EAAE,MAAO,CAAEG,eAAgB/B,KAAKI,QAAQ4B,WAAYC,aAAcC,EAAalC,MAAOmC,MAAO,CAAEC,UAAW,KAAMtC,CAACuC,EAAYC,KAAMZ,IAAQ,OAASa,QAASvC,KAAKU,aAAc8B,IAAKxC,KAAKW,YAAa8B,KAAM,SAAU1B,SAAUf,KAAKe,UACpOa,EAAE,MAAO,CAAEO,MAAO,SAChBP,EAAE,MAAO,CAAEO,MAAO,YACpBP,EAAEc,EAAqB,CAAEC,UAAW3C","sourcesContent":["/* mixins & extensions */\n\n@keyframes in {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n@keyframes in-down {\n 0% {\n opacity: 0;\n transform: translate3D(0, -5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-up {\n 0% {\n opacity: 0;\n transform: translate3D(0, 5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-scale {\n 0% {\n opacity: 0;\n transform: scale3D(0.95, 0.95, 1);\n }\n\n 100% {\n opacity: 1;\n transform: scale3D(1, 1, 1);\n }\n}\n\n:root {\n --calcite-animation-timing: 300ms;\n}\n\n.calcite-animate {\n opacity: 0;\n animation-fill-mode: both;\n animation-duration: var(--calcite-animation-timing);\n}\n\n.calcite-animate__in {\n animation-name: in;\n}\n\n.calcite-animate__in-down {\n animation-name: in-down;\n}\n\n.calcite-animate__in-up {\n animation-name: in-up;\n}\n\n.calcite-animate__in-scale {\n animation-name: in-scale;\n}\n\n/**\n* Currently only used in Checkbox.\n*/\n\n:root {\n --calcite-popper-transition: 150ms ease-in-out;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n:host([scale=s]) .container {\n height: 0.75rem;\n}\n\n:host([scale=s]) .track {\n width: 1.5rem;\n height: 0.75rem;\n}\n\n:host([scale=s]) .handle {\n width: 0.5rem;\n height: 0.5rem;\n}\n\n:host([scale=m]) .container {\n height: 1rem;\n}\n\n:host([scale=m]) .track {\n width: 2rem;\n height: 1rem;\n}\n\n:host([scale=m]) .handle {\n width: 0.75rem;\n height: 0.75rem;\n}\n\n:host([scale=l]) .container {\n height: 1.5rem;\n}\n\n:host([scale=l]) .track {\n width: 3rem;\n height: 1.5rem;\n}\n\n:host([scale=l]) .handle {\n width: 1.25rem;\n height: 1.25rem;\n}\n\n:host {\n display: inline-block;\n position: relative;\n width: auto;\n cursor: pointer;\n -webkit-user-select: none;\n user-select: none;\n vertical-align: middle;\n tap-highlight-color: transparent;\n}\n\n:host([disabled]) {\n opacity: var(--calcite-ui-opacity-disabled);\n pointer-events: none;\n cursor: default;\n}\n\n:host {\n outline-offset: 0;\n outline-color: transparent;\n transition: outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;\n width: auto;\n}\n\n:host(:focus) {\n outline: 2px solid var(--calcite-ui-brand);\n outline-offset: 2px;\n}\n\n.track {\n position: relative;\n display: inline-block;\n vertical-align: top;\n background-color: var(--calcite-ui-foreground-2);\n border-width: 1px;\n border-style: solid;\n border-color: var(--calcite-ui-border-2);\n box-sizing: border-box;\n pointer-events: none;\n transition-property: all;\n transition-duration: 150ms;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n border-radius: 9999px;\n}\n\n.handle {\n position: absolute;\n display: block;\n right: auto;\n background-color: var(--calcite-ui-foreground-1);\n border-width: 2px;\n border-style: solid;\n border-color: var(--calcite-ui-border-input);\n transition-property: all;\n transition-duration: 150ms;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n border-radius: 9999px;\n pointer-events: none;\n top: -1px;\n left: -1px;\n}\n\n:host(:hover) .handle,\n:host(:focus) .handle {\n border-color: var(--calcite-ui-brand);\n box-shadow: inset 0 0 0 1px var(--calcite-ui-brand);\n}\n\n:host([checked]) .track {\n background-color: var(--calcite-ui-brand);\n border-color: var(--calcite-ui-brand-hover);\n}\n\n:host([checked]) .handle {\n left: auto;\n border-color: var(--calcite-ui-brand);\n right: -1px;\n}\n\n:host([checked]:hover) .track {\n background-color: var(--calcite-ui-brand);\n border-color: var(--calcite-ui-brand-hover);\n}\n\n:host([checked]:hover) .handle {\n border-color: var(--calcite-ui-brand-hover);\n box-shadow: inset 0 0 0 1px var(--calcite-ui-brand-hover);\n}\n\n.calcite--rtl .handle {\n left: auto;\n right: -1px;\n}\n\n:host([checked]) .calcite--rtl .handle {\n right: auto;\n left: -1px;\n}\n\n:host([checked]:active) .calcite--rtl .handle {\n right: auto;\n left: -1px;\n}\n\n:host([checked]:focus) .calcite--rtl .handle {\n right: auto;\n left: -1px;\n}\n\n::slotted(input[slot=hidden-form-input]) {\n bottom: 0 !important;\n left: 0 !important;\n margin: 0 !important;\n opacity: 0 !important;\n outline: none !important;\n padding: 0 !important;\n position: absolute !important;\n right: 0 !important;\n top: 0 !important;\n transform: none !important;\n -webkit-appearance: none !important;\n z-index: -1 !important;\n}","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nimport { Component, Element, Event, h, Host, Method, Prop, State, Watch } from \"@stencil/core\";\nimport { focusElement, getElementDir } from \"../../utils/dom\";\nimport { getKey } from \"../../utils/key\";\nimport { CSS_UTILITY } from \"../../utils/resources\";\nimport { connectLabel, disconnectLabel, getLabelText } from \"../../utils/label\";\nimport { connectForm, disconnectForm, HiddenFormInputSlot } from \"../../utils/form\";\nexport class CalciteSwitch {\n constructor() {\n //--------------------------------------------------------------------------\n //\n // Properties\n //\n //--------------------------------------------------------------------------\n /** True if the switch is disabled */\n this.disabled = false;\n /** The scale of the switch */\n this.scale = \"m\";\n /** True if the switch is initially on\n * @deprecated use 'checked' instead.\n */\n this.switched = false;\n /** True if the switch is initially on */\n this.checked = false;\n //--------------------------------------------------------------------------\n //\n // Private Methods\n //\n //--------------------------------------------------------------------------\n this.keyDownHandler = (e) => {\n const key = getKey(e.key);\n if (!this.disabled && (key === \" \" || key === \"Enter\")) {\n this.toggle();\n }\n };\n this.clickHandler = () => {\n this.toggle();\n };\n this.setSwitchEl = (el) => {\n this.switchEl = el;\n };\n }\n disabledWatcher(newDisabled) {\n this.tabindex = newDisabled ? -1 : 0;\n }\n switchedWatcher(switched) {\n this.checked = switched;\n }\n //--------------------------------------------------------------------------\n //\n // Public Methods\n //\n //--------------------------------------------------------------------------\n /** Sets focus on the component. */\n async setFocus() {\n focusElement(this.switchEl);\n }\n onLabelClick() {\n if (!this.disabled) {\n this.toggle();\n this.setFocus();\n }\n }\n toggle() {\n this.checked = !this.checked;\n this.calciteSwitchChange.emit({\n // todo: We should remove emmitting redudant props in event payload.\n // https://github.com/Esri/calcite-components/issues/3163\n switched: this.checked\n });\n }\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n connectedCallback() {\n const initiallyChecked = this.checked || this.switched;\n if (initiallyChecked) {\n // if either prop is set, we ensure both are synced initially\n this.switched = this.checked = initiallyChecked;\n }\n connectLabel(this);\n connectForm(this);\n }\n disconnectedCallback() {\n disconnectLabel(this);\n disconnectForm(this);\n }\n componentWillLoad() {\n this.tabindex = this.el.getAttribute(\"tabindex\") || this.disabled ? -1 : 0;\n }\n // --------------------------------------------------------------------------\n //\n // Render Methods\n //\n // --------------------------------------------------------------------------\n render() {\n const dir = getElementDir(this.el);\n return (h(Host, { onKeyDown: this.keyDownHandler },\n h(\"div\", { \"aria-checked\": this.checked.toString(), \"aria-label\": getLabelText(this), class: { container: true, [CSS_UTILITY.rtl]: dir === \"rtl\" }, onClick: this.clickHandler, ref: this.setSwitchEl, role: \"switch\", tabindex: this.tabindex },\n h(\"div\", { class: \"track\" },\n h(\"div\", { class: \"handle\" })),\n h(HiddenFormInputSlot, { component: this }))));\n }\n static get is() { return \"calcite-switch\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"calcite-switch.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-switch.css\"]\n }; }\n static get properties() { return {\n \"disabled\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"True if the switch is disabled\"\n },\n \"attribute\": \"disabled\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"label\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Applies to the aria-label attribute on the switch\"\n },\n \"attribute\": \"label\",\n \"reflect\": false\n },\n \"name\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The name of the switch input\"\n },\n \"attribute\": \"name\",\n \"reflect\": true\n },\n \"scale\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Scale\",\n \"resolved\": \"\\\"l\\\" | \\\"m\\\" | \\\"s\\\"\",\n \"references\": {\n \"Scale\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The scale of the switch\"\n },\n \"attribute\": \"scale\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"m\\\"\"\n },\n \"switched\": {\n \"type\": \"boolean\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"deprecated\",\n \"text\": \"use 'checked' instead.\"\n }],\n \"text\": \"True if the switch is initially on\"\n },\n \"attribute\": \"switched\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"checked\": {\n \"type\": \"boolean\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"True if the switch is initially on\"\n },\n \"attribute\": \"checked\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"value\": {\n \"type\": \"any\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The value of the switch input\"\n },\n \"attribute\": \"value\",\n \"reflect\": false\n }\n }; }\n static get states() { return {\n \"tabindex\": {}\n }; }\n static get events() { return [{\n \"method\": \"calciteSwitchChange\",\n \"name\": \"calciteSwitchChange\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Fires when the checked value has changed.\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }]; }\n static get methods() { return {\n \"setFocus\": {\n \"complexType\": {\n \"signature\": \"() => Promise<void>\",\n \"parameters\": [],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n }\n },\n \"return\": \"Promise<void>\"\n },\n \"docs\": {\n \"text\": \"Sets focus on the component.\",\n \"tags\": []\n }\n }\n }; }\n static get elementRef() { return \"el\"; }\n static get watchers() { return [{\n \"propName\": \"disabled\",\n \"methodName\": \"disabledWatcher\"\n }, {\n \"propName\": \"switched\",\n \"methodName\": \"switchedWatcher\"\n }]; }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/utils/number.js"],"names":["isValidNumber","numberString","isNaN","Number","parseNumberString","stringContainsNumbers","containsDecimal","result","split","filter","value","i","match","numberKeys","includes","reduce","string","part","toString","sanitizeDecimalString","decimalString","endsWith","replace","sanitizeNumberString","some","number"],"mappings":";;;;;;;;;GAKO,SAASA,EAAcC,GAC5B,SAAUA,GAAgBC,MAAMC,OAAOF,KAElC,SAASG,EAAkBH,GAChC,IAAKA,IAAiBI,EAAsBJ,GAAe,CACzD,OAAO,KAET,IAAIK,EAAkB,MACtB,MAAMC,EAASN,EACZO,MAAM,IACNC,QAAO,CAACC,EAAOC,KAChB,GAAID,EAAME,MAAM,SAAWN,EAAiB,CAC1CA,EAAkB,KAClB,OAAO,KAET,GAAII,EAAME,MAAM,QAAUD,IAAM,EAAG,CACjC,OAAO,KAET,OAAOE,EAAWC,SAASJ,MAE1BK,QAAO,CAACC,EAAQC,IAASD,EAASC,IACrC,OAAOjB,EAAcO,GAAUJ,OAAOI,GAAQW,WAAa,KAEtD,SAASC,EAAsBC,GACpC,OAAQA,IAAkB,MAAQA,SAAuB,OAAS,EAAIA,EAAcC,SAAS,MAAQD,EAAcE,QAAQ,IAAK,IAAMF,EAEjI,SAASG,EAAqBb,GACnC,OAAOA,EAAQP,OAAOgB,EAAsBT,IAAQQ,WAAaR,EAEnE,SAASL,EAAsBW,GAC7B,OAAOH,EAAWW,MAAMC,GAAWT,EAAOF,SAASW","sourcesContent":["/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nimport { numberKeys } from \"./key\";\nexport function isValidNumber(numberString) {\n return !(!numberString || isNaN(Number(numberString)));\n}\nexport function parseNumberString(numberString) {\n if (!numberString || !stringContainsNumbers(numberString)) {\n return null;\n }\n let containsDecimal = false;\n const result = numberString\n .split(\"\")\n .filter((value, i) => {\n if (value.match(/\\./g) && !containsDecimal) {\n containsDecimal = true;\n return true;\n }\n if (value.match(/\\-/g) && i === 0) {\n return true;\n }\n return numberKeys.includes(value);\n })\n .reduce((string, part) => string + part);\n return isValidNumber(result) ? Number(result).toString() : null;\n}\nexport function sanitizeDecimalString(decimalString) {\n return (decimalString === null || decimalString === void 0 ? void 0 : decimalString.endsWith(\".\")) ? decimalString.replace(\".\", \"\") : decimalString;\n}\nexport function sanitizeNumberString(value) {\n return value ? Number(sanitizeDecimalString(value)).toString() : value;\n}\nfunction stringContainsNumbers(string) {\n return numberKeys.some((number) => string.includes(number));\n}\n"]}
@@ -1,22 +0,0 @@
1
- /*!
2
- * Copyright 2021 Esri
3
- * Licensed under the Apache License, Version 2.0
4
- * http://www.apache.org/licenses/LICENSE-2.0
5
- */
6
- /** @license
7
- * Copyright 2021 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
- function e(e){const t=f(e);return e.reduce(((i,n)=>{if(t.indexOf(n.itemId)>-1){i.push(l(n,e))}return i}),[])}function t(e,t){const n=[];e.forEach((e=>{const r={id:e.itemId,title:e.item.title||e.item.name,type:e.type,value:undefined,dependencies:[{id:e.itemId,title:t.itemId,value:`{{${e.itemId}.itemId}}`}]};if(e.item.url){r.dependencies.push({id:e.itemId,title:t.url,value:`{{${e.itemId}.url}}`})}if(e.type==="Feature Service"){r.dependencies.push({id:e.itemId,title:t.solutionExtent,value:`{{${e.itemId}.solutionExtent}}`});i(e.properties.layers||[],r,e,t);i(e.properties.tables||[],r,e,t)}n.push(r)}));return n}function i(e,t,i,n){e.forEach((e=>{const r=e.name&&e.name.indexOf("||")>-1?e.name.split("||")[1].replace("}}","").trim():e.name;t.dependencies.push({id:i.itemId,title:`${r} (${n.id})`,value:`{{${i.itemId}.layer${e.id}.id}}`});t.dependencies.push({id:i.itemId,title:`${r} (${n.name})`,value:`{{${i.itemId}.layer${e.id}.name||${r}}}`})}))}function n(e){const t=[{id:"",title:e.geocodeUrl,value:"{{organization.helperServices.geocode:getDefaultLocatorURL}}"},{id:"",title:e.geometryUrl,value:"{{organization.helperServices.geometry.url}}"},{id:"",title:e.portalBaseUrl,value:"{{portalBaseUrl}}"},{id:"",title:e.routeUrl,value:"{{organization.helperServices.route.url}}"},{id:"",title:e.solutionItemExtent,value:"{{solutionItemExtent}}"}];return t}function r(e){const t=[];const i={};const n=typeof monaco!=="undefined";e.forEach((e=>{var r,o,u,l;if(t.indexOf(e.itemId)<0){t.push(e.itemId);i[e.itemId]={dataModel:n?monaco.editor.createModel(JSON.stringify(e.data,null,"\t"),"json"):undefined,dataOriginValue:JSON.stringify(e.data),propsModel:n?monaco.editor.createModel(JSON.stringify(e.properties,null,"\t"),"json"):undefined,propsOriginValue:JSON.stringify(e.properties),propsDiffOriginValue:JSON.stringify(e.properties),state:undefined,shareInfo:undefined,isEditing:false,itemId:e.itemId,updateItemValues:{},originalItemValues:{},name:(r=e.item)===null||r===void 0?void 0:r.name,title:(o=e.item)===null||o===void 0?void 0:o.title,itemOriginValue:JSON.stringify(e.item),spatialReference:(l=(u=e.properties)===null||u===void 0?void 0:u.service)===null||l===void 0?void 0:l.spatialReference}}}));return i}function o(e){return e.reduce(((e,t)=>{const i=t.item.title||t.item.name;if(t.type==="Feature Service"&&t.item.typeKeywords.indexOf("View Service")<0&&e.indexOf(i)<0){e.push(i)}return e}),[])}function u(e){const t={};e.forEach((e=>{t[e]=true}));return{enabled:false,services:t,spatialReference:undefined}}function l(e,t){return{id:e.itemId||"",title:e.item.title||"",dependencies:a(e.dependencies||[],t),type:e.item.type||"",typeKeywords:e.item.typeKeywords||[],solutionItem:{itemId:e.itemId,itemDetails:d(e.item,e.type==="Group",e.itemId),isResource:c(e),data:e.data,properties:e.properties,type:e.type,groupDetails:s(e,t)}}}function a(e,t){return t.reduce(((i,n)=>{if(e.indexOf(n.itemId)>-1){i.push(l(n,t))}return i}),[])}function d(e,t,i){return{itemId:i,thumbnail:e.thumbnail||"",title:e.title||"",snippet:e.snippet||"",description:e.description||"",tags:e.tags||[],accessInformation:!t?e.accessInformation||"":"",licenseInfo:!t?e.licenseInfo||"":""}}function s(e,t){return e.type==="Group"?t.reduce(((t,i)=>{if(i.itemId!==e.itemId&&i.type!=="Group"){t.push({id:i.itemId,title:i.item.name||i.item.title,isShared:(i.groups||[]).indexOf(e.itemId)>-1,shareItem:(i.groups||[]).indexOf(e.itemId)>-1,type:i.type,typeKeywords:i.item.typeKeywords})}return t}),[]):[]}function c(e){return e.type!=="Group"&&JSON.stringify(e.data)==="{}"}function f(e){const t=e.map((e=>e.itemId));e.forEach((e=>{(e.dependencies||[]).forEach((e=>{const i=t.indexOf(e);if(i>=0){t.splice(i,1)}}))}));return t}export{o as a,u as b,e as c,t as d,n as e,r as g};
22
- //# sourceMappingURL=p-970f1072.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["src/utils/templates.ts"],"names":["getInventoryItems","templates","topLevelItemIds","_getTopLevelItemIds","reduce","prev","cur","indexOf","itemId","push","_getItemFromTemplate","getSolutionVariables","translations","vars","forEach","t","item","id","title","name","type","value","undefined","dependencies","url","solutionExtent","_addLayersOrTables","properties","layers","tables","children","l","split","replace","trim","getOrganizationVariables","orgVars","geocodeUrl","geometryUrl","portalBaseUrl","routeUrl","solutionItemExtent","getModels","ids","models","monacoDefined","dataModel","monaco","editor","createModel","JSON","stringify","data","dataOriginValue","propsModel","propsOriginValue","propsDiffOriginValue","state","shareInfo","isEditing","updateItemValues","originalItemValues","_a","_b","itemOriginValue","spatialReference","_d","_c","service","getFeatureServices","typeKeywords","getSpatialReferenceInfo","services","defaultServices","enabled","_getDependencies","solutionItem","itemDetails","_getItemDetails","isResource","_getIsResource","groupDetails","_getGroupDetails","curr","isGroup","thumbnail","snippet","description","tags","accessInformation","licenseInfo","isShared","groups","shareItem","template","topLevelItemCandidateIds","map","dependencyId","iNode","splice"],"mappings":";;;;;;;;;;;;;;;;;;;;SAgDgBA,EACdC,GAEA,MAAMC,EAAkBC,EAAoBF,GAC5C,OAAOA,EAAUG,QAAO,CAACC,EAAMC,KAC7B,GAAIJ,EAAgBK,QAAQD,EAAIE,SAAW,EAAG,CAC5CH,EAAKI,KAAKC,EAAqBJ,EAAKL,IAEtC,OAAOI,IACN,aAGWM,EACdV,EACAW,GAEA,MAAMC,EAAwB,GAC9BZ,EAAUa,SAAQC,IAChB,MAAMC,EAAO,CACXC,GAAIF,EAAEP,OACNU,MAAOH,EAAEC,KAAKE,OAASH,EAAEC,KAAKG,KAC9BC,KAAML,EAAEK,KACRC,MAAOC,UACPC,aAAc,CAAC,CACbN,GAAIF,EAAEP,OACNU,MAAON,EAAaJ,OACpBa,MAAO,KAAKN,EAAEP,qBAGlB,GAAIO,EAAEC,KAAKQ,IAAK,CACdR,EAAKO,aAAad,KAAK,CACrBQ,GAAIF,EAAEP,OACNU,MAAON,EAAaY,IACpBH,MAAO,KAAKN,EAAEP,iBAGlB,GAAIO,EAAEK,OAAS,kBAAmB,CAGhCJ,EAAKO,aAAad,KAAK,CACrBQ,GAAIF,EAAEP,OACNU,MAAON,EAAaa,eACpBJ,MAAO,KAAKN,EAAEP,4BAEhBkB,EAAmBX,EAAEY,WAAWC,QAAU,GAAIZ,EAAMD,EAAGH,GACvDc,EAAmBX,EAAEY,WAAWE,QAAU,GAAIb,EAAMD,EAAGH,GAEzDC,EAAKJ,KAAKO,MAGZ,OAAOH,EAGT,SAASa,EACPI,EACAd,EACAD,EACAH,GAEAkB,EAAShB,SAAQiB,IACf,MAAMZ,EAAOY,EAAEZ,MAAQY,EAAEZ,KAAKZ,QAAQ,OAAS,EAAIwB,EAAEZ,KAAKa,MAAM,MAAM,GAAGC,QAAQ,KAAM,IAAIC,OAASH,EAAEZ,KAEtGH,EAAKO,aAAad,KAAK,CACrBQ,GAAIF,EAAEP,OACNU,MAAO,GAAGC,MAASP,EAAaK,MAChCI,MAAO,KAAKN,EAAEP,eAAeuB,EAAEd,YAEjCD,EAAKO,aAAad,KAAK,CACrBQ,GAAIF,EAAEP,OACNU,MAAO,GAAGC,MAASP,EAAaO,QAChCE,MAAO,KAAKN,EAAEP,eAAeuB,EAAEd,YAAYE,oBAKjCgB,EACdvB,GAEA,MAAMwB,EAAuC,CAAC,CAC5CnB,GAAI,GACJC,MAAON,EAAayB,WACpBhB,MAAO,gEACN,CACDJ,GAAI,GACJC,MAAON,EAAa0B,YACpBjB,MAAO,gDACN,CACDJ,GAAI,GACJC,MAAON,EAAa2B,cACpBlB,MAAO,qBACN,CACDJ,GAAI,GACJC,MAAON,EAAa4B,SACpBnB,MAAO,6CACN,CACDJ,GAAI,GACJC,MAAON,EAAa6B,mBACpBpB,MAAO,2BAET,OAAOe,WAGOM,EAAUzC,GACxB,MAAM0C,EAAgB,GACtB,MAAMC,EAA0B,GAChC,MAAMC,SAAgB,SAAmB,YACzC5C,EAAUa,SAAQC,gBAChB,GAAI4B,EAAIpC,QAAQQ,EAAEP,QAAU,EAAG,CAC7BmC,EAAIlC,KAAKM,EAAEP,QACXoC,EAAO7B,EAAEP,QAAU,CACjBsC,UAAWD,EAAgBE,OAAOC,OAAOC,YAAYC,KAAKC,UAAUpC,EAAEqC,KAAM,KAAM,MAAO,QAAU9B,UACnG+B,gBAAiBH,KAAKC,UAAUpC,EAAEqC,MAClCE,WAAYT,EAAgBE,OAAOC,OAAOC,YAAYC,KAAKC,UAAUpC,EAAEY,WAAY,KAAM,MAAO,QAAUL,UAC1GiC,iBAAkBL,KAAKC,UAAUpC,EAAEY,YACnC6B,qBAAsBN,KAAKC,UAAUpC,EAAEY,YACvC8B,MAAOnC,UACPoC,UAAWpC,UACXqC,UAAW,MACXnD,OAAQO,EAAEP,OACVoD,iBAAkB,GAClBC,mBAAoB,GACpB1C,MAAM2C,EAAA/C,EAAEC,QAAI,MAAA8C,SAAA,OAAA,EAAAA,EAAE3C,KACdD,OAAO6C,EAAAhD,EAAEC,QAAI,MAAA+C,SAAA,OAAA,EAAAA,EAAE7C,MACf8C,gBAAiBd,KAAKC,UAAUpC,EAAEC,MAClCiD,kBAAkBC,GAAAC,EAAApD,EAAEY,cAAU,MAAAwC,SAAA,OAAA,EAAAA,EAAEC,WAAO,MAAAF,SAAA,OAAA,EAAAA,EAAED,sBAI/C,OAAOrB,WAGOyB,EACdpE,GAEA,OAAOA,EAAUG,QAAO,CAACC,EAAMC,KAC7B,MAAMa,EAAeb,EAAIU,KAAKE,OAASZ,EAAIU,KAAKG,KAChD,GAAIb,EAAIc,OAAS,mBACfd,EAAIU,KAAKsD,aAAa/D,QAAQ,gBAAkB,GAChDF,EAAKE,QAAQY,GAAQ,EACrB,CACAd,EAAKI,KAAKU,GAEZ,OAAOd,IACN,aAGWkE,EACdC,GAEA,MAAMC,EAAuB,GAC7BD,EAAS1D,SAAQsD,IACfK,EAAgBL,GAAW,QAE7B,MAAO,CACLM,QAAS,MACTF,SAAUC,EACVR,iBAAkB3C,WAItB,SAASZ,EACPK,EACAd,GAEA,MAAO,CACLgB,GAAIF,EAAEP,QAAU,GAChBU,MAAOH,EAAEC,KAAKE,OAAS,GACvBK,aAAcoD,EAAiB5D,EAAEQ,cAAgB,GAAItB,GACrDmB,KAAML,EAAEC,KAAKI,MAAQ,GACrBkD,aAAcvD,EAAEC,KAAKsD,cAAgB,GACrCM,aAAc,CACZpE,OAAQO,EAAEP,OACVqE,YAAaC,EAAgB/D,EAAEC,KAAMD,EAAEK,OAAS,QAASL,EAAEP,QAC3DuE,WAAYC,EAAejE,GAC3BqC,KAAMrC,EAAEqC,KACRzB,WAAYZ,EAAEY,WACdP,KAAML,EAAEK,KACR6D,aAAcC,EAAiBnE,EAAGd,KAKxC,SAAS0E,EACPpD,EACAtB,GAEA,OAAOA,EAAUG,QAAO,CAACC,EAAM8E,KAC7B,GAAI5D,EAAahB,QAAQ4E,EAAK3E,SAAW,EAAG,CAC1CH,EAAKI,KAAKC,EAAqByE,EAAMlF,IAEvC,OAAOI,IACN,IAGL,SAASyE,EACP9D,EACAoE,EACA5E,GAEA,MAAO,CACLA,OAAAA,EACA6E,UAAWrE,EAAKqE,WAAa,GAC7BnE,MAAOF,EAAKE,OAAS,GACrBoE,QAAStE,EAAKsE,SAAW,GACzBC,YAAavE,EAAKuE,aAAe,GACjCC,KAAMxE,EAAKwE,MAAQ,GACnBC,mBAAoBL,EAAUpE,EAAKyE,mBAAqB,GAAK,GAC7DC,aAAcN,EAAUpE,EAAK0E,aAAe,GAAK,IAIrD,SAASR,EACPnE,EACAd,GAEA,OAAOc,EAAEK,OAAS,QAAUnB,EAAUG,QAAO,CAACC,EAAMC,KAClD,GAAIA,EAAIE,SAAWO,EAAEP,QAAUF,EAAIc,OAAS,QAAS,CACnDf,EAAKI,KAAK,CACRQ,GAAIX,EAAIE,OACRU,MAAOZ,EAAIU,KAAKG,MAAQb,EAAIU,KAAKE,MACjCyE,UAAWrF,EAAIsF,QAAU,IAAIrF,QAAQQ,EAAEP,SAAW,EAClDqF,WAAYvF,EAAIsF,QAAU,IAAIrF,QAAQQ,EAAEP,SAAW,EACnDY,KAAMd,EAAIc,KACVkD,aAAchE,EAAIU,KAAKsD,eAG3B,OAAOjE,IACN,IAAM,GAGX,SAAS2E,EACPc,GAEA,OAAOA,EAAS1E,OAAS,SAAW8B,KAAKC,UAAU2C,EAAS1C,QAAU,KAGxE,SAASjD,EAAoBF,GAE3B,MAAM8F,EAA2B9F,EAAU+F,KAAKF,GAAaA,EAAStF,SACtEP,EAAUa,SAASgF,KAChBA,EAASvE,cAAgB,IAAIT,SAASmF,IACrC,MAAMC,EAAQH,EAAyBxF,QAAQ0F,GAC/C,GAAIC,GAAS,EAAG,CAGdH,EAAyBI,OAAOD,EAAO,UAI7C,OAAOH","sourcesContent":["/** @license\r\n * Copyright 2021 Esri\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n\r\n/*\r\n | Helper functions to get required values from solutions templates\r\n*/\r\n\r\nimport { IItemDetails } from \"../components/solution-item-details/solution-item-details\";\r\nimport { IInventoryItem } from \"../components/solution-contents/solution-contents\";\r\nimport { IItemShare } from \"../components/solution-item-sharing/solution-item-sharing\";\r\nimport { IVariableItem } from \"../components/solution-variables/solution-variables\";\r\nimport { IOrganizationVariableItem } from \"../components/solution-organization-variables/solution-organization-variables\";\r\n\r\nexport interface ISolutionModel {\r\n dataModel: monaco.editor.ITextModel;\r\n dataOriginValue: string;\r\n propsModel: monaco.editor.ITextModel;\r\n propsOriginValue: string;\r\n propsDiffOriginValue: string;\r\n state: any;\r\n shareInfo: any;\r\n isEditing: boolean;\r\n itemId: string;\r\n updateItemValues: any;\r\n originalItemValues: any;\r\n name: string;\r\n title: string;\r\n itemOriginValue: string;\r\n spatialReference: any;\r\n}\r\n\r\ninterface ISolutionModels {\r\n [key: string]: ISolutionModel;\r\n} \r\n\r\nexport function getInventoryItems(\r\n templates: any[]\r\n): IInventoryItem[] {\r\n const topLevelItemIds = _getTopLevelItemIds(templates);\r\n return templates.reduce((prev, cur) => {\r\n if (topLevelItemIds.indexOf(cur.itemId) > -1) {\r\n prev.push(_getItemFromTemplate(cur, templates))\r\n }\r\n return prev;\r\n }, []);\r\n}\r\n\r\nexport function getSolutionVariables(\r\n templates: any[],\r\n translations: any\r\n): IVariableItem[] {\r\n const vars: IVariableItem[] = [];\r\n templates.forEach(t => {\r\n const item = {\r\n id: t.itemId,\r\n title: t.item.title || t.item.name,\r\n type: t.type,\r\n value: undefined,\r\n dependencies: [{\r\n id: t.itemId,\r\n title: translations.itemId,\r\n value: `{{${t.itemId}.itemId}}`,\r\n }]\r\n };\r\n if (t.item.url) {\r\n item.dependencies.push({\r\n id: t.itemId,\r\n title: translations.url,\r\n value: `{{${t.itemId}.url}}`,\r\n });\r\n }\r\n if (t.type === \"Feature Service\") {\r\n // TODO need to set source service name var...\r\n // TODO need to set soure service shape field name \"{{d05b3cf1ffcb4a4fa677627dfb18609e.name}}.Shape\"\r\n item.dependencies.push({\r\n id: t.itemId,\r\n title: translations.solutionExtent,\r\n value: `{{${t.itemId}.solutionExtent}}`,\r\n })\r\n _addLayersOrTables(t.properties.layers || [], item, t, translations);\r\n _addLayersOrTables(t.properties.tables || [], item, t, translations);\r\n }\r\n vars.push(item);\r\n })\r\n\r\n return vars;\r\n}\r\n\r\nfunction _addLayersOrTables(\r\n children: any[],\r\n item: any,\r\n t: any,\r\n translations: any\r\n): void {\r\n children.forEach(l => {\r\n const name = l.name && l.name.indexOf(\"||\") > -1 ? l.name.split(\"||\")[1].replace(\"}}\", \"\").trim() : l.name;\r\n\r\n item.dependencies.push({\r\n id: t.itemId,\r\n title: `${name} (${translations.id})`,\r\n value: `{{${t.itemId}.layer${l.id}.id}}`,\r\n });\r\n item.dependencies.push({\r\n id: t.itemId,\r\n title: `${name} (${translations.name})`,\r\n value: `{{${t.itemId}.layer${l.id}.name||${name}}}`,\r\n });\r\n });\r\n} \r\n\r\nexport function getOrganizationVariables(\r\n translations: any\r\n): IOrganizationVariableItem[] {\r\n const orgVars: IOrganizationVariableItem[] = [{\r\n id: \"\",\r\n title: translations.geocodeUrl,\r\n value: \"{{organization.helperServices.geocode:getDefaultLocatorURL}}\"\r\n }, {\r\n id: \"\",\r\n title: translations.geometryUrl,\r\n value: \"{{organization.helperServices.geometry.url}}\"\r\n }, {\r\n id: \"\",\r\n title: translations.portalBaseUrl,\r\n value: \"{{portalBaseUrl}}\"\r\n }, {\r\n id: \"\",\r\n title: translations.routeUrl,\r\n value: \"{{organization.helperServices.route.url}}\"\r\n }, {\r\n id: \"\",\r\n title: translations.solutionItemExtent,\r\n value: \"{{solutionItemExtent}}\"\r\n }];\r\n return orgVars;\r\n}\r\n\r\nexport function getModels(templates: any[]): ISolutionModels {\r\n const ids: string[] = [];\r\n const models: ISolutionModels = {};\r\n const monacoDefined = typeof(monaco) !== \"undefined\";\r\n templates.forEach(t => {\r\n if (ids.indexOf(t.itemId) < 0) {\r\n ids.push(t.itemId);\r\n models[t.itemId] = {\r\n dataModel: monacoDefined ? monaco.editor.createModel(JSON.stringify(t.data, null, '\\t'), \"json\") : undefined,\r\n dataOriginValue: JSON.stringify(t.data),\r\n propsModel: monacoDefined ? monaco.editor.createModel(JSON.stringify(t.properties, null, '\\t'), \"json\") : undefined,\r\n propsOriginValue: JSON.stringify(t.properties),\r\n propsDiffOriginValue: JSON.stringify(t.properties),\r\n state: undefined,\r\n shareInfo: undefined,\r\n isEditing: false,\r\n itemId: t.itemId,\r\n updateItemValues: {},\r\n originalItemValues: {},\r\n name: t.item?.name,\r\n title: t.item?.title,\r\n itemOriginValue: JSON.stringify(t.item),\r\n spatialReference: t.properties?.service?.spatialReference\r\n };\r\n }\r\n });\r\n return models;\r\n}\r\n\r\nexport function getFeatureServices(\r\n templates: any[]\r\n): any[] {\r\n return templates.reduce((prev, cur) => {\r\n const name: string = cur.item.title || cur.item.name;\r\n if (cur.type === \"Feature Service\" &&\r\n cur.item.typeKeywords.indexOf(\"View Service\") < 0 &&\r\n prev.indexOf(name) < 0\r\n ) {\r\n prev.push(name)\r\n }\r\n return prev;\r\n }, []);\r\n}\r\n\r\nexport function getSpatialReferenceInfo(\r\n services: string[]\r\n): any {\r\n const defaultServices: any = {};\r\n services.forEach(service => {\r\n defaultServices[service] = true;\r\n });\r\n return {\r\n enabled: false,\r\n services: defaultServices,\r\n spatialReference: undefined\r\n }\r\n}\r\n\r\nfunction _getItemFromTemplate(\r\n t: any,\r\n templates: any[]\r\n): IInventoryItem {\r\n return {\r\n id: t.itemId || \"\",\r\n title: t.item.title || \"\",\r\n dependencies: _getDependencies(t.dependencies || [], templates),\r\n type: t.item.type || \"\",\r\n typeKeywords: t.item.typeKeywords || [],\r\n solutionItem: {\r\n itemId: t.itemId,\r\n itemDetails: _getItemDetails(t.item, t.type === \"Group\", t.itemId),\r\n isResource: _getIsResource(t),\r\n data: t.data,\r\n properties: t.properties,\r\n type: t.type,\r\n groupDetails: _getGroupDetails(t, templates)\r\n }\r\n };\r\n}\r\n\r\nfunction _getDependencies(\r\n dependencies: string[],\r\n templates: any[]\r\n): IInventoryItem[] {\r\n return templates.reduce((prev, curr) => {\r\n if (dependencies.indexOf(curr.itemId) > -1) {\r\n prev.push(_getItemFromTemplate(curr, templates))\r\n }\r\n return prev;\r\n }, []);\r\n}\r\n\r\nfunction _getItemDetails(\r\n item: any,\r\n isGroup: boolean,\r\n itemId: string\r\n): IItemDetails {\r\n return {\r\n itemId,\r\n thumbnail: item.thumbnail || \"\",\r\n title: item.title || \"\",\r\n snippet: item.snippet || \"\",\r\n description: item.description || \"\",\r\n tags: item.tags || [],\r\n accessInformation: !isGroup ? item.accessInformation || \"\" : \"\",\r\n licenseInfo: !isGroup ? item.licenseInfo || \"\" : \"\"\r\n };\r\n}\r\n\r\nfunction _getGroupDetails(\r\n t: any,\r\n templates: any[]\r\n): IItemShare[] {\r\n return t.type === \"Group\" ? templates.reduce((prev, cur) => {\r\n if (cur.itemId !== t.itemId && cur.type !== \"Group\") {\r\n prev.push({\r\n id: cur.itemId,\r\n title: cur.item.name || cur.item.title,\r\n isShared: (cur.groups || []).indexOf(t.itemId) > -1,\r\n shareItem: (cur.groups || []).indexOf(t.itemId) > -1,\r\n type: cur.type,\r\n typeKeywords: cur.item.typeKeywords\r\n });\r\n }\r\n return prev;\r\n }, []) : [];\r\n}\r\n\r\nfunction _getIsResource(\r\n template: any\r\n): boolean {\r\n return template.type !== \"Group\" && JSON.stringify(template.data) === \"{}\";\r\n}\r\n\r\nfunction _getTopLevelItemIds(templates: any[]) {\r\n // Find the top-level nodes. Start with all nodes, then remove those that other nodes depend on\r\n const topLevelItemCandidateIds = templates.map((template) => template.itemId);\r\n templates.forEach((template) => {\r\n (template.dependencies || []).forEach((dependencyId) => {\r\n const iNode = topLevelItemCandidateIds.indexOf(dependencyId);\r\n if (iNode >= 0) {\r\n // Node is somebody's dependency, so remove the node from the list of top-level nodes\r\n // If iNode == -1, then it's a shared dependency and it has already been removed\r\n topLevelItemCandidateIds.splice(iNode, 1);\r\n }\r\n });\r\n });\r\n return topLevelItemCandidateIds;\r\n}\r\n"]}
@@ -1,11 +0,0 @@
1
- /*!
2
- * Copyright 2021 Esri
3
- * Licensed under the Apache License, Version 2.0
4
- * http://www.apache.org/licenses/LICENSE-2.0
5
- */
6
- import{r as t,c as a,h as o,H as i,g as n}from"./p-2e1cd889.js";import{t as e,C as r}from"./p-7cc9c6af.js";import{f as s,b as c,a as l,C as d}from"./p-e762b2d1.js";import"./p-f780039d.js";import"./p-9df9ac35.js";import"./p-ec178ea9.js";
7
- /*!
8
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
9
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
10
- */const p={actionGroupBottom:"action-group--bottom",container:"container"};const m={expand:"Expand",collapse:"Collapse"};const h={expandTooltip:"expand-tooltip"};const x="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}:host{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:block;animation:in var(--calcite-animation-timing) ease-in-out;border-radius:0.125rem}:host([expanded]){max-width:20vw}::slotted(calcite-action-group){border-width:0;border-bottom-width:1px;border-color:var(--calcite-ui-border-3);border-style:solid;padding-bottom:0;padding-top:0}.container{flex-direction:column;display:inline-flex;overflow-y:auto;border-radius:0.25rem;background-color:var(--calcite-ui-background);box-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);max-width:15vw}.action-group--bottom{flex-grow:1;justify-content:flex-end;padding-bottom:0}:host([layout=horizontal]) .container{flex-direction:row;max-width:unset}:host([layout=horizontal]) .container .action-group--bottom{padding:0}:host([layout=horizontal]) .container ::slotted(calcite-action-group){border-width:0;border-right-width:1px;padding:0}:host([layout=horizontal]) .container.calcite--rtl ::slotted(calcite-action-group){border-width:0;border-left-width:1px}::slotted(calcite-action-group:last-child){border-bottom-width:0}";let u=class{constructor(o){t(this,o);this.calciteActionPadToggle=a(this,"calciteActionPadToggle",7);this.expandDisabled=false;this.expanded=false;this.layout="vertical";this.actionMenuOpenChangeHandler=t=>{if(t.detail){const a=t.composedPath();Array.from(this.el.querySelectorAll("calcite-action-group")).forEach((t=>{if(!a.includes(t)){t.menuOpen=false}}))}};this.toggleExpand=()=>{this.expanded=!this.expanded};this.setExpandToggleRef=t=>{this.expandToggleEl=t}}expandHandler(t){if(!t){e({parent:this.el,expanded:this.expanded})}}expandedHandler(t){if(!this.expandDisabled){e({parent:this.el,expanded:t})}this.calciteActionPadToggle.emit()}componentWillLoad(){const{el:t,expandDisabled:a,expanded:o}=this;if(!a){e({parent:t,expanded:o})}}async setFocus(t){if(t==="expand-toggle"){await s(this.expandToggleEl);return}this.el.focus()}renderBottomActionGroup(){const{expanded:t,expandDisabled:a,intlExpand:i,intlCollapse:n,el:e,position:s,toggleExpand:l,scale:d}=this;const x=c(e,h.expandTooltip);const u=i||m.expand;const f=n||m.collapse;const g=!a?o(r,{el:e,expanded:t,intlCollapse:f,intlExpand:u,position:s,ref:this.setExpandToggleRef,scale:d,toggle:l,tooltip:x}):null;return g?o("calcite-action-group",{class:p.actionGroupBottom,scale:d},o("slot",{name:h.expandTooltip}),g):null}render(){const t=l(this.el)==="rtl";const a={[p.container]:true,[d.rtl]:t};return o(i,{onCalciteActionMenuOpenChange:this.actionMenuOpenChangeHandler},o("div",{class:a},o("slot",null),this.renderBottomActionGroup()))}get el(){return n(this)}static get watchers(){return{expandDisabled:["expandHandler"],expanded:["expandedHandler"]}}};u.style=x;export{u as calcite_action_pad};
11
- //# sourceMappingURL=p-9a953609.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/components/calcite-action-pad/resources.js","node_modules/@esri/calcite-components/dist/collection/components/calcite-action-pad/calcite-action-pad.css?tag=calcite-action-pad&encapsulation=shadow","node_modules/@esri/calcite-components/dist/collection/components/calcite-action-pad/calcite-action-pad.js"],"names":["CSS","actionGroupBottom","container","TEXT","expand","collapse","SLOTS","expandTooltip","calciteActionPadCss","CalciteActionPad","[object Object]","hostRef","this","expandDisabled","expanded","layout","actionMenuOpenChangeHandler","event","detail","composedPath","Array","from","el","querySelectorAll","forEach","group","includes","menuOpen","toggleExpand","setExpandToggleRef","expandToggleEl","toggleChildActionText","parent","calciteActionPadToggle","emit","focusId","focusElement","focus","intlExpand","intlCollapse","position","scale","tooltip","getSlotted","expandLabel","collapseLabel","expandToggleNode","h","CalciteExpandToggle","ref","toggle","class","name","rtl","getElementDir","containerClasses","CSS_UTILITY","Host","onCalciteActionMenuOpenChange","renderBottomActionGroup"],"mappings":";;;;;;;;;GAIO,MAAMA,EAAM,CACjBC,kBAAmB,uBACnBC,UAAW,aAEN,MAAMC,EAAO,CAClBC,OAAQ,SACRC,SAAU,YAEL,MAAMC,EAAQ,CACnBC,cAAe,kBCbjB,MAAMC,EAAsB,+9DCafC,EAAgB,MAC3BC,YAAAC,4EASEC,KAAKC,eAAiB,MAItBD,KAAKE,SAAW,MAIhBF,KAAKG,OAAS,WAMdH,KAAKI,4BAA+BC,IAClC,GAAIA,EAAMC,OAAQ,CAChB,MAAMC,EAAeF,EAAME,eAC3BC,MAAMC,KAAKT,KAAKU,GAAGC,iBAAiB,yBAAyBC,SAASC,IACpE,IAAKN,EAAaO,SAASD,GAAQ,CACjCA,EAAME,SAAW,YAKzBf,KAAKgB,aAAe,KAClBhB,KAAKE,UAAYF,KAAKE,UAExBF,KAAKiB,mBAAsBP,IACzBV,KAAKkB,eAAiBR,GAG1BZ,cAAcG,GACZ,IAAKA,EAAgB,CACnBkB,EAAsB,CAAEC,OAAQpB,KAAKU,GAAIR,SAAUF,KAAKE,YAG5DJ,gBAAgBI,GACd,IAAKF,KAAKC,eAAgB,CACxBkB,EAAsB,CAAEC,OAAQpB,KAAKU,GAAIR,SAAAA,IAE3CF,KAAKqB,uBAAuBC,OAO9BxB,oBACE,MAAMY,GAAEA,EAAET,eAAEA,EAAcC,SAAEA,GAAaF,KACzC,IAAKC,EAAgB,CACnBkB,EAAsB,CAAEC,OAAQV,EAAIR,SAAAA,KASxCJ,eAAeyB,GACb,GAAIA,IAAY,gBAAiB,OACzBC,EAAaxB,KAAKkB,gBACxB,OAEFlB,KAAKU,GAAGe,QAOV3B,0BACE,MAAMI,SAAEA,EAAQD,eAAEA,EAAcyB,WAAEA,EAAUC,aAAEA,EAAYjB,GAAEA,EAAEkB,SAAEA,EAAQZ,aAAEA,EAAYa,MAAEA,GAAU7B,KAClG,MAAM8B,EAAUC,EAAWrB,EAAIhB,EAAMC,eACrC,MAAMqC,EAAcN,GAAcnC,EAAKC,OACvC,MAAMyC,EAAgBN,GAAgBpC,EAAKE,SAC3C,MAAMyC,GAAoBjC,EAAkBkC,EAAEC,EAAqB,CAAE1B,GAAIA,EAAIR,SAAUA,EAAUyB,aAAcM,EAAeP,WAAYM,EAAaJ,SAAUA,EAAUS,IAAKrC,KAAKiB,mBAAoBY,MAAOA,EAAOS,OAAQtB,EAAcc,QAASA,IAAc,KACpQ,OAAOI,EAAoBC,EAAE,uBAAwB,CAAEI,MAAOnD,EAAIC,kBAAmBwC,MAAOA,GAC1FM,EAAE,OAAQ,CAAEK,KAAM9C,EAAMC,gBACxBuC,GAAqB,KAEzBpC,SACE,MAAM2C,EAAMC,EAAc1C,KAAKU,MAAQ,MACvC,MAAMiC,EAAmB,CACvB7C,CAACV,EAAIE,WAAY,KACjBQ,CAAC8C,EAAYH,KAAMA,GAErB,OAAQN,EAAEU,EAAM,CAAEC,8BAA+B9C,KAAKI,6BACpD+B,EAAE,MAAO,CAAEI,MAAOI,GAChBR,EAAE,OAAQ,MACVnC,KAAK+C","sourcesContent":["/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nexport const CSS = {\n actionGroupBottom: \"action-group--bottom\",\n container: \"container\"\n};\nexport const TEXT = {\n expand: \"Expand\",\n collapse: \"Collapse\"\n};\nexport const SLOTS = {\n expandTooltip: \"expand-tooltip\"\n};\n","/* mixins & extensions */\n\n@keyframes in {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n@keyframes in-down {\n 0% {\n opacity: 0;\n transform: translate3D(0, -5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-up {\n 0% {\n opacity: 0;\n transform: translate3D(0, 5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-scale {\n 0% {\n opacity: 0;\n transform: scale3D(0.95, 0.95, 1);\n }\n\n 100% {\n opacity: 1;\n transform: scale3D(1, 1, 1);\n }\n}\n\n:root {\n --calcite-animation-timing: 300ms;\n}\n\n.calcite-animate {\n opacity: 0;\n animation-fill-mode: both;\n animation-duration: var(--calcite-animation-timing);\n}\n\n.calcite-animate__in {\n animation-name: in;\n}\n\n.calcite-animate__in-down {\n animation-name: in-down;\n}\n\n.calcite-animate__in-up {\n animation-name: in-up;\n}\n\n.calcite-animate__in-scale {\n animation-name: in-scale;\n}\n\n/**\n* Currently only used in Checkbox.\n*/\n\n:host {\n /* Base \":host\" styles for the component */\n box-sizing: border-box;\n background-color: var(--calcite-ui-foreground-1);\n color: var(--calcite-ui-text-2);\n font-size: var(--calcite-font-size--1);\n}\n\n:host * {\n box-sizing: border-box;\n}\n\n:root {\n --calcite-popper-transition: 150ms ease-in-out;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n:host {\n display: block;\n animation: in var(--calcite-animation-timing) ease-in-out;\n border-radius: 0.125rem;\n}\n\n:host([expanded]) {\n max-width: 20vw;\n}\n\n::slotted(calcite-action-group) {\n border-width: 0;\n border-bottom-width: 1px;\n border-color: var(--calcite-ui-border-3);\n border-style: solid;\n padding-bottom: 0;\n padding-top: 0;\n}\n\n.container {\n flex-direction: column;\n display: inline-flex;\n overflow-y: auto;\n border-radius: 0.25rem;\n background-color: var(--calcite-ui-background);\n box-shadow: 0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);\n max-width: 15vw;\n}\n\n.action-group--bottom {\n flex-grow: 1;\n justify-content: flex-end;\n padding-bottom: 0;\n}\n\n:host([layout=horizontal]) .container {\n flex-direction: row;\n max-width: unset;\n}\n\n:host([layout=horizontal]) .container .action-group--bottom {\n padding: 0;\n}\n\n:host([layout=horizontal]) .container ::slotted(calcite-action-group) {\n border-width: 0;\n border-right-width: 1px;\n padding: 0;\n}\n\n:host([layout=horizontal]) .container.calcite--rtl ::slotted(calcite-action-group) {\n border-width: 0;\n border-left-width: 1px;\n}\n\n::slotted(calcite-action-group:last-child) {\n border-bottom-width: 0;\n}","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nimport { Component, Element, Event, Host, Prop, Watch, h, Method } from \"@stencil/core\";\nimport { CalciteExpandToggle, toggleChildActionText } from \"../functional/CalciteExpandToggle\";\nimport { getElementDir, focusElement, getSlotted } from \"../../utils/dom\";\nimport { CSS_UTILITY } from \"../../utils/resources\";\nimport { CSS, TEXT, SLOTS } from \"./resources\";\n/**\n * @slot - A slot for adding `calcite-action`s to the action pad.\n * @slot expand-tooltip - Used to set the tooltip for the expand toggle.\n */\nexport class CalciteActionPad {\n constructor() {\n // --------------------------------------------------------------------------\n //\n // Properties\n //\n // --------------------------------------------------------------------------\n /**\n * When set to true, the expand-toggling behavior will be disabled.\n */\n this.expandDisabled = false;\n /**\n * Indicates whether widget is expanded.\n */\n this.expanded = false;\n /**\n * Indicates the horizontal or vertical layout of the component.\n */\n this.layout = \"vertical\";\n // --------------------------------------------------------------------------\n //\n // Private Methods\n //\n // --------------------------------------------------------------------------\n this.actionMenuOpenChangeHandler = (event) => {\n if (event.detail) {\n const composedPath = event.composedPath();\n Array.from(this.el.querySelectorAll(\"calcite-action-group\")).forEach((group) => {\n if (!composedPath.includes(group)) {\n group.menuOpen = false;\n }\n });\n }\n };\n this.toggleExpand = () => {\n this.expanded = !this.expanded;\n };\n this.setExpandToggleRef = (el) => {\n this.expandToggleEl = el;\n };\n }\n expandHandler(expandDisabled) {\n if (!expandDisabled) {\n toggleChildActionText({ parent: this.el, expanded: this.expanded });\n }\n }\n expandedHandler(expanded) {\n if (!this.expandDisabled) {\n toggleChildActionText({ parent: this.el, expanded });\n }\n this.calciteActionPadToggle.emit();\n }\n // --------------------------------------------------------------------------\n //\n // Lifecycle\n //\n // --------------------------------------------------------------------------\n componentWillLoad() {\n const { el, expandDisabled, expanded } = this;\n if (!expandDisabled) {\n toggleChildActionText({ parent: el, expanded });\n }\n }\n // --------------------------------------------------------------------------\n //\n // Methods\n //\n // --------------------------------------------------------------------------\n /** Sets focus on the component. */\n async setFocus(focusId) {\n if (focusId === \"expand-toggle\") {\n await focusElement(this.expandToggleEl);\n return;\n }\n this.el.focus();\n }\n // --------------------------------------------------------------------------\n //\n // Component Methods\n //\n // --------------------------------------------------------------------------\n renderBottomActionGroup() {\n const { expanded, expandDisabled, intlExpand, intlCollapse, el, position, toggleExpand, scale } = this;\n const tooltip = getSlotted(el, SLOTS.expandTooltip);\n const expandLabel = intlExpand || TEXT.expand;\n const collapseLabel = intlCollapse || TEXT.collapse;\n const expandToggleNode = !expandDisabled ? (h(CalciteExpandToggle, { el: el, expanded: expanded, intlCollapse: collapseLabel, intlExpand: expandLabel, position: position, ref: this.setExpandToggleRef, scale: scale, toggle: toggleExpand, tooltip: tooltip })) : null;\n return expandToggleNode ? (h(\"calcite-action-group\", { class: CSS.actionGroupBottom, scale: scale },\n h(\"slot\", { name: SLOTS.expandTooltip }),\n expandToggleNode)) : null;\n }\n render() {\n const rtl = getElementDir(this.el) === \"rtl\";\n const containerClasses = {\n [CSS.container]: true,\n [CSS_UTILITY.rtl]: rtl\n };\n return (h(Host, { onCalciteActionMenuOpenChange: this.actionMenuOpenChangeHandler },\n h(\"div\", { class: containerClasses },\n h(\"slot\", null),\n this.renderBottomActionGroup())));\n }\n static get is() { return \"calcite-action-pad\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"calcite-action-pad.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-action-pad.css\"]\n }; }\n static get properties() { return {\n \"expandDisabled\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"When set to true, the expand-toggling behavior will be disabled.\"\n },\n \"attribute\": \"expand-disabled\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"expanded\": {\n \"type\": \"boolean\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Indicates whether widget is expanded.\"\n },\n \"attribute\": \"expanded\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"layout\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Layout\",\n \"resolved\": \"\\\"grid\\\" | \\\"horizontal\\\" | \\\"vertical\\\"\",\n \"references\": {\n \"Layout\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Indicates the horizontal or vertical layout of the component.\"\n },\n \"attribute\": \"layout\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"vertical\\\"\"\n },\n \"intlExpand\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Updates the label of the expand icon when the component is not expanded.\"\n },\n \"attribute\": \"intl-expand\",\n \"reflect\": false\n },\n \"intlCollapse\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Updates the label of the collapse icon when the component is expanded.\"\n },\n \"attribute\": \"intl-collapse\",\n \"reflect\": false\n },\n \"position\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Position\",\n \"resolved\": \"\\\"end\\\" | \\\"start\\\"\",\n \"references\": {\n \"Position\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Arranges the component depending on the elements 'dir' property.\"\n },\n \"attribute\": \"position\",\n \"reflect\": true\n },\n \"scale\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Scale\",\n \"resolved\": \"\\\"l\\\" | \\\"m\\\" | \\\"s\\\"\",\n \"references\": {\n \"Scale\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Specifies the size of the expand action.\"\n },\n \"attribute\": \"scale\",\n \"reflect\": true\n }\n }; }\n static get events() { return [{\n \"method\": \"calciteActionPadToggle\",\n \"name\": \"calciteActionPadToggle\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Emitted when expanded has been toggled.\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }]; }\n static get methods() { return {\n \"setFocus\": {\n \"complexType\": {\n \"signature\": \"(focusId?: \\\"expand-toggle\\\") => Promise<void>\",\n \"parameters\": [{\n \"tags\": [],\n \"text\": \"\"\n }],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n }\n },\n \"return\": \"Promise<void>\"\n },\n \"docs\": {\n \"text\": \"Sets focus on the component.\",\n \"tags\": []\n }\n }\n }; }\n static get elementRef() { return \"el\"; }\n static get watchers() { return [{\n \"propName\": \"expandDisabled\",\n \"methodName\": \"expandHandler\"\n }, {\n \"propName\": \"expanded\",\n \"methodName\": \"expandedHandler\"\n }]; }\n}\n"]}
@@ -1,11 +0,0 @@
1
- /*!
2
- * Copyright 2021 Esri
3
- * Licensed under the Apache License, Version 2.0
4
- * http://www.apache.org/licenses/LICENSE-2.0
5
- */
6
- import{r as t,c as i,h as e,H as o,g as n}from"./p-2e1cd889.js";import{g as c,a,C as l}from"./p-e762b2d1.js";import{g as s}from"./p-ec178ea9.js";import{e as r,f as m}from"./p-228131f3.js";
7
- /*!
8
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
9
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
10
- */const d={icon:"icon",iconActive:"icon--active",custom:"icon--custom",dot:"icon--dot",single:"label--single",label:"label",active:"label--active",selected:"label--selected",title:"title",textContainer:"text-container"};const b='@charset "UTF-8";@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}.scale--s{font-size:var(--calcite-font-size--2);line-height:1rem;--calcite-combobox-item-spacing-unit-l:0.5rem;--calcite-combobox-item-spacing-unit-s:0.25rem;--calcite-combobox-item-spacing-indent:0.5rem}.scale--m{font-size:var(--calcite-font-size--1);line-height:1rem;--calcite-combobox-item-spacing-unit-l:0.75rem;--calcite-combobox-item-spacing-unit-s:0.5rem;--calcite-combobox-item-spacing-indent:0.75rem}.scale--l{font-size:var(--calcite-font-size-0);line-height:1.25rem;--calcite-combobox-item-spacing-unit-l:1rem;--calcite-combobox-item-spacing-unit-s:0.75rem;--calcite-combobox-item-spacing-indent:1rem}.container{--calcite-combobox-item-indent-value:calc(\n var(--calcite-combobox-item-spacing-indent) * var(--calcite-combobox-item-spacing-indent-multiplier)\n );--calcite-combobox-item-indent-start:var(--calcite-combobox-item-indent-value);--calcite-combobox-item-indent-end:unset}.calcite--rtl{--calcite-combobox-item-indent-start:unset;--calcite-combobox-item-indent-end:var(--calcite-combobox-item-indent-value)}:host(:focus){box-shadow:none}:host,ul{display:flex;flex-direction:column;margin:0;padding:0;outline:2px solid transparent;outline-offset:2px}.label{display:flex;box-sizing:border-box;width:100%;min-width:100%;align-items:center;color:var(--calcite-ui-text-3);cursor:pointer;position:relative;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);outline-offset:0;outline-color:transparent;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;text-decoration:none;padding:var(--calcite-combobox-item-spacing-unit-s) var(--calcite-combobox-item-spacing-unit-l)}:host([disabled]) .label{cursor:default}.label--selected{color:var(--calcite-ui-text-1);font-weight:var(--calcite-font-weight-medium)}.label--active{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.label:hover,.label:active{color:var(--calcite-ui-text-1);background-color:var(--calcite-ui-foreground-2);box-shadow:none;text-decoration:none}.title{padding:0 var(--calcite-combobox-item-spacing-unit-l)}.icon{display:inline-flex;opacity:0;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);color:var(--calcite-ui-border-1)}.icon--indent{padding-left:var(--calcite-combobox-item-indent-start);padding-right:var(--calcite-combobox-item-indent-end)}.icon--custom{margin-top:-1px;color:var(--calcite-ui-text-3)}.icon--active{color:var(--calcite-ui-text-1)}.icon--dot{display:flex;justify-content:flex-end;width:var(--calcite-combobox-item-spacing-unit-l)}.icon--dot:before{content:"•"}.calcite--rtl .icon--dot:before{text-align:right}.label--active .icon{opacity:1}.label--selected .icon{opacity:1;color:var(--calcite-ui-brand)}:host(:hover[disabled]) .icon{opacity:1}';let u=class{constructor(e){t(this,e);this.calciteComboboxItemChange=i(this,"calciteComboboxItemChange",7);this.disabled=false;this.selected=false;this.active=false;this.guid=s();this.scale="m";this.itemClickHandler=t=>{t.preventDefault();if(this.disabled){return}this.selected=!this.selected}}selectedWatchHandler(){this.calciteComboboxItemChange.emit(this.el)}connectedCallback(){this.ancestors=r(this.el);this.scale=c(this.el,"scale",this.scale)}componentWillLoad(){this.hasDefaultSlot=this.el.querySelector(":not([slot])")!==null}async toggleSelected(t){if(this.disabled){return}this.selected=typeof t==="boolean"?t:!this.selected}renderIcon(t){const{icon:i,disabled:o,selected:n}=this;const c=`${d.icon}--indent`;const a=t?"dot":"check";const l=o?"circle-disallowed":a;const s=t&&!i&&!o;return s?e("span",{class:{[d.icon]:true,[d.dot]:true,[c]:true}}):e("calcite-icon",{class:{[d.icon]:!i,[d.custom]:!!i,[d.iconActive]:i&&n,[c]:true},icon:i||l,scale:"s"})}renderChildren(){if(!this.hasDefaultSlot){return null}return e("ul",null,e("slot",null))}render(){const t=c(this.el,"selection-mode","multi")==="single";const i=a(this.el);const n={[l.rtl]:i==="rtl",[d.label]:true,[d.selected]:this.selected,[d.active]:this.active,[d.single]:t};const s=m(this.el);return e(o,{"aria-hidden":"true"},e("div",{class:`container scale--${this.scale}`,style:{"--calcite-combobox-item-spacing-indent-multiplier":`${s}`}},e("li",{class:n,id:this.guid,onClick:this.itemClickHandler},this.renderIcon(t),e("span",{class:d.title},this.textLabel)),this.renderChildren()))}get el(){return n(this)}static get watchers(){return{selected:["selectedWatchHandler"]}}};u.style=b;export{u as calcite_combobox_item};
11
- //# sourceMappingURL=p-9b381784.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/components/calcite-combobox-item/resources.js","node_modules/@esri/calcite-components/dist/collection/components/calcite-combobox-item/calcite-combobox-item.css?tag=calcite-combobox-item&encapsulation=shadow","node_modules/@esri/calcite-components/dist/collection/components/calcite-combobox-item/calcite-combobox-item.js"],"names":["CSS","icon","iconActive","custom","dot","single","label","active","selected","title","textContainer","calciteComboboxItemCss","CalciteComboboxItem","[object Object]","hostRef","this","disabled","guid","scale","itemClickHandler","event","preventDefault","calciteComboboxItemChange","emit","el","ancestors","getAncestors","getElementProp","hasDefaultSlot","querySelector","coerce","isSingle","level","defaultIcon","iconPath","showDot","h","class","isSingleSelect","dir","getElementDir","classes","CSS_UTILITY","rtl","depth","getDepth","Host","aria-hidden","style","--calcite-combobox-item-spacing-indent-multiplier","id","onClick","renderIcon","textLabel","renderChildren"],"mappings":";;;;;;;;;GAIO,MAAMA,EAAM,CACjBC,KAAM,OACNC,WAAY,eACZC,OAAQ,eACRC,IAAK,YACLC,OAAQ,gBACRC,MAAO,QACPC,OAAQ,gBACRC,SAAU,kBACVC,MAAO,QACPC,cAAe,kBCdjB,MAAMC,EAAyB,m+GCalBC,EAAmB,MAC9BC,YAAAC,kFAOEC,KAAKC,SAAW,MAEhBD,KAAKP,SAAW,MAEhBO,KAAKR,OAAS,MAEdQ,KAAKE,KAAOA,IACZF,KAAKG,MAAQ,IAMbH,KAAKI,iBAAoBC,IACvBA,EAAMC,iBACN,GAAIN,KAAKC,SAAU,CACjB,OAEFD,KAAKP,UAAYO,KAAKP,UAG1BK,uBACEE,KAAKO,0BAA0BC,KAAKR,KAAKS,IAO3CX,oBACEE,KAAKU,UAAYC,EAAaX,KAAKS,IACnCT,KAAKG,MAAQS,EAAeZ,KAAKS,GAAI,QAAST,KAAKG,OAErDL,oBACEE,KAAKa,eAAiBb,KAAKS,GAAGK,cAAc,kBAAoB,KAWlEhB,qBAAqBiB,GACnB,GAAIf,KAAKC,SAAU,CACjB,OAEFD,KAAKP,gBAAkBsB,IAAW,UAAYA,GAAUf,KAAKP,SAO/DK,WAAWkB,GACT,MAAM9B,KAAEA,EAAIe,SAAEA,EAAQR,SAAEA,GAAaO,KACrC,MAAMiB,EAAQ,GAAGhC,EAAIC,eACrB,MAAMgC,EAAcF,EAAW,MAAQ,QACvC,MAAMG,EAAWlB,EAAW,oBAAsBiB,EAClD,MAAME,EAAUJ,IAAa9B,IAASe,EACtC,OAAOmB,EAAWC,EAAE,OAAQ,CAAEC,MAAO,CACjCxB,CAACb,EAAIC,MAAO,KACZY,CAACb,EAAII,KAAM,KACXS,CAACmB,GAAQ,QACFI,EAAE,eAAgB,CAAEC,MAAO,CAClCxB,CAACb,EAAIC,OAAQA,EACbY,CAACb,EAAIG,UAAWF,EAChBY,CAACb,EAAIE,YAAaD,GAAQO,EAC1BK,CAACmB,GAAQ,MACR/B,KAAMA,GAAQiC,EAAUhB,MAAO,MAEtCL,iBACE,IAAKE,KAAKa,eAAgB,CACxB,OAAO,KAET,OAAQQ,EAAE,KAAM,KACdA,EAAE,OAAQ,OAEdvB,SACE,MAAMyB,EAAiBX,EAAeZ,KAAKS,GAAI,iBAAkB,WAAa,SAC9E,MAAMe,EAAMC,EAAczB,KAAKS,IAC/B,MAAMiB,EAAU,CACd5B,CAAC6B,EAAYC,KAAMJ,IAAQ,MAC3B1B,CAACb,EAAIM,OAAQ,KACbO,CAACb,EAAIQ,UAAWO,KAAKP,SACrBK,CAACb,EAAIO,QAASQ,KAAKR,OACnBM,CAACb,EAAIK,QAASiC,GAEhB,MAAMM,EAAQC,EAAS9B,KAAKS,IAC5B,OAAQY,EAAEU,EAAM,CAAEC,cAAe,QAC/BX,EAAE,MAAO,CAAEC,MAAO,oBAAoBtB,KAAKG,QAAS8B,MAAO,CAAEC,oDAAqD,GAAGL,MACnHR,EAAE,KAAM,CAAEC,MAAOI,EAASS,GAAInC,KAAKE,KAAMkC,QAASpC,KAAKI,kBACrDJ,KAAKqC,WAAWd,GAChBF,EAAE,OAAQ,CAAEC,MAAOrC,EAAIS,OAASM,KAAKsC,YACvCtC,KAAKuC","sourcesContent":["/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nexport const CSS = {\n icon: \"icon\",\n iconActive: \"icon--active\",\n custom: \"icon--custom\",\n dot: \"icon--dot\",\n single: \"label--single\",\n label: \"label\",\n active: \"label--active\",\n selected: \"label--selected\",\n title: \"title\",\n textContainer: \"text-container\"\n};\n","@charset \"UTF-8\";\n\n/* mixins & extensions */\n\n@keyframes in {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n@keyframes in-down {\n 0% {\n opacity: 0;\n transform: translate3D(0, -5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-up {\n 0% {\n opacity: 0;\n transform: translate3D(0, 5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-scale {\n 0% {\n opacity: 0;\n transform: scale3D(0.95, 0.95, 1);\n }\n\n 100% {\n opacity: 1;\n transform: scale3D(1, 1, 1);\n }\n}\n\n:root {\n --calcite-animation-timing: 300ms;\n}\n\n.calcite-animate {\n opacity: 0;\n animation-fill-mode: both;\n animation-duration: var(--calcite-animation-timing);\n}\n\n.calcite-animate__in {\n animation-name: in;\n}\n\n.calcite-animate__in-down {\n animation-name: in-down;\n}\n\n.calcite-animate__in-up {\n animation-name: in-up;\n}\n\n.calcite-animate__in-scale {\n animation-name: in-scale;\n}\n\n/**\n* Currently only used in Checkbox.\n*/\n\n:root {\n --calcite-popper-transition: 150ms ease-in-out;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n.scale--s {\n font-size: var(--calcite-font-size--2);\n line-height: 1rem;\n --calcite-combobox-item-spacing-unit-l: 0.5rem;\n --calcite-combobox-item-spacing-unit-s: 0.25rem;\n --calcite-combobox-item-spacing-indent: 0.5rem;\n}\n\n.scale--m {\n font-size: var(--calcite-font-size--1);\n line-height: 1rem;\n --calcite-combobox-item-spacing-unit-l: 0.75rem;\n --calcite-combobox-item-spacing-unit-s: 0.5rem;\n --calcite-combobox-item-spacing-indent: 0.75rem;\n}\n\n.scale--l {\n font-size: var(--calcite-font-size-0);\n line-height: 1.25rem;\n --calcite-combobox-item-spacing-unit-l: 1rem;\n --calcite-combobox-item-spacing-unit-s: 0.75rem;\n --calcite-combobox-item-spacing-indent: 1rem;\n}\n\n.container {\n --calcite-combobox-item-indent-value: calc(\n var(--calcite-combobox-item-spacing-indent) * var(--calcite-combobox-item-spacing-indent-multiplier)\n );\n --calcite-combobox-item-indent-start: var(--calcite-combobox-item-indent-value);\n --calcite-combobox-item-indent-end: unset;\n}\n\n.calcite--rtl {\n --calcite-combobox-item-indent-start: unset;\n --calcite-combobox-item-indent-end: var(--calcite-combobox-item-indent-value);\n}\n\n:host(:focus) {\n box-shadow: none;\n}\n\n:host,\nul {\n display: flex;\n flex-direction: column;\n margin: 0;\n padding: 0;\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n\n.label {\n display: flex;\n box-sizing: border-box;\n width: 100%;\n min-width: 100%;\n align-items: center;\n color: var(--calcite-ui-text-3);\n cursor: pointer;\n position: relative;\n transition-duration: 150ms;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n outline-offset: 0;\n outline-color: transparent;\n transition: outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;\n text-decoration: none;\n padding: var(--calcite-combobox-item-spacing-unit-s) var(--calcite-combobox-item-spacing-unit-l);\n}\n\n:host([disabled]) .label {\n cursor: default;\n}\n\n.label--selected {\n color: var(--calcite-ui-text-1);\n font-weight: var(--calcite-font-weight-medium);\n}\n\n.label--active {\n outline: 2px solid var(--calcite-ui-brand);\n outline-offset: -2px;\n}\n\n.label:hover,\n.label:active {\n color: var(--calcite-ui-text-1);\n background-color: var(--calcite-ui-foreground-2);\n box-shadow: none;\n text-decoration: none;\n}\n\n.title {\n padding: 0 var(--calcite-combobox-item-spacing-unit-l);\n}\n\n.icon {\n display: inline-flex;\n opacity: 0;\n transition-duration: 150ms;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n color: var(--calcite-ui-border-1);\n}\n\n.icon--indent {\n padding-left: var(--calcite-combobox-item-indent-start);\n padding-right: var(--calcite-combobox-item-indent-end);\n}\n\n.icon--custom {\n margin-top: -1px;\n color: var(--calcite-ui-text-3);\n}\n\n.icon--active {\n color: var(--calcite-ui-text-1);\n}\n\n.icon--dot {\n display: flex;\n justify-content: flex-end;\n width: var(--calcite-combobox-item-spacing-unit-l);\n}\n\n.icon--dot:before {\n content: \"•\";\n}\n\n.calcite--rtl .icon--dot:before {\n text-align: right;\n}\n\n.label--active .icon {\n opacity: 1;\n}\n\n.label--selected .icon {\n opacity: 1;\n color: var(--calcite-ui-brand);\n}\n\n:host(:hover[disabled]) .icon {\n opacity: 1;\n}","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nimport { Component, Element, Event, Host, Method, Prop, h, Watch } from \"@stencil/core\";\nimport { getElementDir, getElementProp } from \"../../utils/dom\";\nimport { CSS } from \"./resources\";\nimport { guid } from \"../../utils/guid\";\nimport { getAncestors, getDepth } from \"../calcite-combobox/utils\";\nimport { CSS_UTILITY } from \"../../utils/resources\";\n/**\n * @slot - A slot for adding nested `calcite-combobox-item`s.\n */\nexport class CalciteComboboxItem {\n constructor() {\n // --------------------------------------------------------------------------\n //\n // Properties\n //\n // --------------------------------------------------------------------------\n /** When true, the item cannot be clicked and is visually muted. */\n this.disabled = false;\n /** Set this to true to pre-select an item. Toggles when an item is checked/unchecked. */\n this.selected = false;\n /** True when item is highlighted either from keyboard or mouse hover */\n this.active = false;\n /** Unique identifier, used for accessibility */\n this.guid = guid();\n this.scale = \"m\";\n // --------------------------------------------------------------------------\n //\n // Private Methods\n //\n // --------------------------------------------------------------------------\n this.itemClickHandler = (event) => {\n event.preventDefault();\n if (this.disabled) {\n return;\n }\n this.selected = !this.selected;\n };\n }\n selectedWatchHandler() {\n this.calciteComboboxItemChange.emit(this.el);\n }\n // --------------------------------------------------------------------------\n //\n // Lifecycle\n //\n // --------------------------------------------------------------------------\n connectedCallback() {\n this.ancestors = getAncestors(this.el);\n this.scale = getElementProp(this.el, \"scale\", this.scale);\n }\n componentWillLoad() {\n this.hasDefaultSlot = this.el.querySelector(\":not([slot])\") !== null;\n }\n // --------------------------------------------------------------------------\n //\n // Public Methods\n //\n // --------------------------------------------------------------------------\n /**\n * Used to toggle the selection state. By default this won't trigger an event.\n * The first argument allows the value to be coerced, rather than swapping values.\n */\n async toggleSelected(coerce) {\n if (this.disabled) {\n return;\n }\n this.selected = typeof coerce === \"boolean\" ? coerce : !this.selected;\n }\n // --------------------------------------------------------------------------\n //\n // Render Methods\n //\n // --------------------------------------------------------------------------\n renderIcon(isSingle) {\n const { icon, disabled, selected } = this;\n const level = `${CSS.icon}--indent`;\n const defaultIcon = isSingle ? \"dot\" : \"check\";\n const iconPath = disabled ? \"circle-disallowed\" : defaultIcon;\n const showDot = isSingle && !icon && !disabled;\n return showDot ? (h(\"span\", { class: {\n [CSS.icon]: true,\n [CSS.dot]: true,\n [level]: true\n } })) : (h(\"calcite-icon\", { class: {\n [CSS.icon]: !icon,\n [CSS.custom]: !!icon,\n [CSS.iconActive]: icon && selected,\n [level]: true\n }, icon: icon || iconPath, scale: \"s\" }));\n }\n renderChildren() {\n if (!this.hasDefaultSlot) {\n return null;\n }\n return (h(\"ul\", null,\n h(\"slot\", null)));\n }\n render() {\n const isSingleSelect = getElementProp(this.el, \"selection-mode\", \"multi\") === \"single\";\n const dir = getElementDir(this.el);\n const classes = {\n [CSS_UTILITY.rtl]: dir === \"rtl\",\n [CSS.label]: true,\n [CSS.selected]: this.selected,\n [CSS.active]: this.active,\n [CSS.single]: isSingleSelect\n };\n const depth = getDepth(this.el);\n return (h(Host, { \"aria-hidden\": \"true\" },\n h(\"div\", { class: `container scale--${this.scale}`, style: { \"--calcite-combobox-item-spacing-indent-multiplier\": `${depth}` } },\n h(\"li\", { class: classes, id: this.guid, onClick: this.itemClickHandler },\n this.renderIcon(isSingleSelect),\n h(\"span\", { class: CSS.title }, this.textLabel)),\n this.renderChildren())));\n }\n static get is() { return \"calcite-combobox-item\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"./calcite-combobox-item.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-combobox-item.css\"]\n }; }\n static get properties() { return {\n \"disabled\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"When true, the item cannot be clicked and is visually muted.\"\n },\n \"attribute\": \"disabled\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"selected\": {\n \"type\": \"boolean\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Set this to true to pre-select an item. Toggles when an item is checked/unchecked.\"\n },\n \"attribute\": \"selected\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"active\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"True when item is highlighted either from keyboard or mouse hover\"\n },\n \"attribute\": \"active\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"ancestors\": {\n \"type\": \"unknown\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"ComboboxChildElement[]\",\n \"resolved\": \"ComboboxChildElement[]\",\n \"references\": {\n \"ComboboxChildElement\": {\n \"location\": \"import\",\n \"path\": \"../calcite-combobox/interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Parent and grandparent combobox items, this is set internally for use from combobox\"\n }\n },\n \"guid\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Unique identifier, used for accessibility\"\n },\n \"attribute\": \"guid\",\n \"reflect\": false,\n \"defaultValue\": \"guid()\"\n },\n \"icon\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Custom icon to display both in combobox chips and next to combobox item text\"\n },\n \"attribute\": \"icon\",\n \"reflect\": false\n },\n \"textLabel\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": true,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The main label for this item.\"\n },\n \"attribute\": \"text-label\",\n \"reflect\": true\n },\n \"value\": {\n \"type\": \"any\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n },\n \"required\": true,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The item's associated value\"\n },\n \"attribute\": \"value\",\n \"reflect\": false\n },\n \"constant\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Don't filter this item based on the search text\"\n },\n \"attribute\": \"constant\",\n \"reflect\": true\n }\n }; }\n static get events() { return [{\n \"method\": \"calciteComboboxItemChange\",\n \"name\": \"calciteComboboxItemChange\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Emitted whenever the item is selected or unselected.\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }]; }\n static get methods() { return {\n \"toggleSelected\": {\n \"complexType\": {\n \"signature\": \"(coerce?: boolean) => Promise<void>\",\n \"parameters\": [{\n \"tags\": [],\n \"text\": \"\"\n }],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n }\n },\n \"return\": \"Promise<void>\"\n },\n \"docs\": {\n \"text\": \"Used to toggle the selection state. By default this won't trigger an event.\\nThe first argument allows the value to be coerced, rather than swapping values.\",\n \"tags\": []\n }\n }\n }; }\n static get elementRef() { return \"el\"; }\n static get watchers() { return [{\n \"propName\": \"selected\",\n \"methodName\": \"selectedWatchHandler\"\n }]; }\n}\n"]}
@@ -1,11 +0,0 @@
1
- /*!
2
- * Copyright 2021 Esri
3
- * Licensed under the Apache License, Version 2.0
4
- * http://www.apache.org/licenses/LICENSE-2.0
5
- */
6
- import{r as t,c as i,h as n,g as s}from"./p-2e1cd889.js";import{n as a,i as e,a as r,r as o,h as c,b as l}from"./p-a9df64c4.js";import{c as h}from"./p-0c91e100.js";import{a as m,f as p}from"./p-e762b2d1.js";import{T as u}from"./p-4573d7c2.js";import{g as f}from"./p-7df393df.js";import"./p-ec178ea9.js";
7
- /*!
8
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
9
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
10
- */const d={container:"container",preview:"preview",input:"input"};const g="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:block}.container{width:100%;display:inline-grid;align-items:center;grid-template-columns:1fr auto}.preview{grid-column:2/3;display:flex;align-items:center;pointer-events:none;margin-top:0;margin-bottom:0;margin-left:0.25rem;margin-right:0.25rem;z-index:1}.preview,.input{grid-row:1}.input{grid-column:1/3;text-transform:uppercase;width:100%}";const y=h();let w=class{constructor(n){t(this,n);this.calciteColorPickerHexInputChange=i(this,"calciteColorPickerHexInputChange",7);this.allowEmpty=false;this.intlHex=u.hex;this.intlNoColor=u.noColor;this.scale="m";this.value=a(y.hex());this.onCalciteInputBlur=()=>{const t=this.inputNode;const i=t.value;const n=`#${i}`;const s=this.allowEmpty&&!i;if(s||e(n)&&r(n)){return}t.value=this.allowEmpty&&!this.internalColor?"":this.formatForInternalInput(o(this.internalColor.object()))};this.onInputChange=()=>{const t=this.inputNode.value;let i;if(t){const n=t;const s=c(`#${n}`);if(!s){return}i=a(n)}else if(this.allowEmpty){i=null}this.value=i;this.calciteColorPickerHexInputChange.emit()};this.internalColor=y;this.previousNonNullValue=this.value;this.storeInputRef=t=>{this.inputNode=t}}connectedCallback(){const{allowEmpty:t,value:i}=this;if(i){const t=a(i);if(e(t)){this.internalColor=h(t);this.value=t}return}if(t){this.internalColor=null;this.value=null}}handleValueChange(t,i){if(t){const i=a(t);if(e(i)){const{internalColor:t}=this;const n=!t||i!==a(t.hex());this.internalColor=h(i);this.previousNonNullValue=i;this.value=i;if(n){this.calciteColorPickerHexInputChange.emit()}return}}else if(this.allowEmpty){this.internalColor=null;this.value=null;this.calciteColorPickerHexInputChange.emit();return}this.value=i}onInputKeyDown(t){const{altKey:i,ctrlKey:n,metaKey:s,shiftKey:e}=t;const{internalColor:r,value:o}=this;const c=f(t.key);if(c==="Tab"||c==="Enter"){this.onInputChange();return}const h=c==="ArrowDown"||c==="ArrowUp";if(h){if(!o){this.value=this.previousNonNullValue;t.preventDefault();return}const i=c==="ArrowUp"?1:-1;const n=e?10:1;this.value=a(this.nudgeRGBChannels(r,n*i).hex());t.preventDefault();return}const m=i||n||s;const p=c.length===1;const u=l.test(c);if(p&&!m&&!u){t.preventDefault()}}render(){const{el:t,intlHex:i,value:s}=this;const a=this.formatForInternalInput(s);const e=m(t);return n("div",{class:d.container},n("calcite-input",{class:d.input,dir:e,label:i,maxLength:6,onCalciteInputBlur:this.onCalciteInputBlur,onCalciteInputChange:this.onInputChange,prefixText:"#",ref:this.storeInputRef,scale:this.scale,value:a}),a?n("calcite-color-picker-swatch",{active:true,class:d.preview,color:`#${a}`,scale:this.scale}):null)}async setFocus(){p(this.inputNode)}formatForInternalInput(t){return t?t.replace("#",""):""}nudgeRGBChannels(t,i){return h.rgb(t.array().map((t=>t+i)))}get el(){return s(this)}static get watchers(){return{value:["handleValueChange"]}}};w.style=g;export{w as calcite_color_picker_hex_input};
11
- //# sourceMappingURL=p-9dad5583.entry.js.map