@esri/solutions-components 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (989) hide show
  1. package/dist/assets/t9n/solution-config-modal/resources.json +22 -0
  2. package/dist/assets/t9n/solution-config-modal/resources_en.json +22 -0
  3. package/dist/cjs/ExpandToggle-73df0d51.js +2 -0
  4. package/dist/cjs/ExpandToggle-73df0d51.js.map +1 -0
  5. package/dist/cjs/Heading-6b7b374c.js +2 -0
  6. package/dist/cjs/Heading-6b7b374c.js.map +1 -0
  7. package/dist/cjs/_commonjsHelpers-6aafa5de.js +2 -0
  8. package/dist/cjs/_commonjsHelpers-6aafa5de.js.map +1 -0
  9. package/dist/cjs/app-globals-2f48e57e.js +2 -0
  10. package/dist/cjs/app-globals-2f48e57e.js.map +1 -0
  11. package/dist/cjs/array-ace6d4b5.js +2 -0
  12. package/dist/cjs/array-ace6d4b5.js.map +1 -0
  13. package/dist/cjs/buffer-tools_6.cjs.entry.js +2 -0
  14. package/dist/cjs/buffer-tools_6.cjs.entry.js.map +1 -0
  15. package/dist/cjs/calcite-accordion-item.cjs.entry.js +2 -0
  16. package/dist/cjs/calcite-accordion-item.cjs.entry.js.map +1 -0
  17. package/dist/cjs/calcite-accordion.cjs.entry.js +2 -0
  18. package/dist/cjs/calcite-accordion.cjs.entry.js.map +1 -0
  19. package/dist/cjs/calcite-action-bar_6.cjs.entry.js +2 -0
  20. package/dist/cjs/calcite-action-bar_6.cjs.entry.js.map +1 -0
  21. package/dist/cjs/calcite-action-group.cjs.entry.js +2 -0
  22. package/dist/cjs/calcite-action-group.cjs.entry.js.map +1 -0
  23. package/dist/cjs/calcite-action-menu_2.cjs.entry.js +20 -401
  24. package/dist/cjs/calcite-action-menu_2.cjs.entry.js.map +1 -0
  25. package/dist/cjs/calcite-action-pad.cjs.entry.js +2 -0
  26. package/dist/cjs/calcite-action-pad.cjs.entry.js.map +1 -0
  27. package/dist/cjs/calcite-action_2.cjs.entry.js +425 -71
  28. package/dist/cjs/calcite-action_2.cjs.entry.js.map +1 -0
  29. package/dist/cjs/calcite-alert.cjs.entry.js +2 -0
  30. package/dist/cjs/calcite-alert.cjs.entry.js.map +1 -0
  31. package/dist/cjs/calcite-avatar.cjs.entry.js +2 -0
  32. package/dist/cjs/calcite-avatar.cjs.entry.js.map +1 -0
  33. package/dist/cjs/calcite-block-section.cjs.entry.js +2 -0
  34. package/dist/cjs/calcite-block-section.cjs.entry.js.map +1 -0
  35. package/dist/cjs/calcite-block.cjs.entry.js +2 -0
  36. package/dist/cjs/calcite-block.cjs.entry.js.map +1 -0
  37. package/dist/cjs/calcite-button.cjs.entry.js +2 -0
  38. package/dist/cjs/calcite-button.cjs.entry.js.map +1 -0
  39. package/dist/cjs/calcite-card.cjs.entry.js +2 -0
  40. package/dist/cjs/calcite-card.cjs.entry.js.map +1 -0
  41. package/dist/cjs/calcite-checkbox.cjs.entry.js +2 -0
  42. package/dist/cjs/calcite-checkbox.cjs.entry.js.map +1 -0
  43. package/dist/cjs/calcite-chip.cjs.entry.js +2 -0
  44. package/dist/cjs/calcite-chip.cjs.entry.js.map +1 -0
  45. package/dist/cjs/calcite-color-picker-hex-input.cjs.entry.js +2 -0
  46. package/dist/cjs/calcite-color-picker-hex-input.cjs.entry.js.map +1 -0
  47. package/dist/cjs/calcite-color-picker-swatch.cjs.entry.js +2 -0
  48. package/dist/cjs/calcite-color-picker-swatch.cjs.entry.js.map +1 -0
  49. package/dist/cjs/calcite-color-picker.cjs.entry.js +2 -0
  50. package/dist/cjs/calcite-color-picker.cjs.entry.js.map +1 -0
  51. package/dist/cjs/calcite-combobox-item-group.cjs.entry.js +2 -0
  52. package/dist/cjs/calcite-combobox-item-group.cjs.entry.js.map +1 -0
  53. package/dist/cjs/calcite-combobox_3.cjs.entry.js +2 -0
  54. package/dist/cjs/calcite-combobox_3.cjs.entry.js.map +1 -0
  55. package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js +2 -0
  56. package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js.map +1 -0
  57. package/dist/cjs/calcite-date-picker.cjs.entry.js +2 -0
  58. package/dist/cjs/calcite-date-picker.cjs.entry.js.map +1 -0
  59. package/dist/cjs/calcite-dropdown-group.cjs.entry.js +2 -0
  60. package/dist/cjs/calcite-dropdown-group.cjs.entry.js.map +1 -0
  61. package/dist/cjs/calcite-dropdown-item.cjs.entry.js +2 -0
  62. package/dist/cjs/calcite-dropdown-item.cjs.entry.js.map +1 -0
  63. package/dist/cjs/calcite-dropdown.cjs.entry.js +2 -0
  64. package/dist/cjs/calcite-dropdown.cjs.entry.js.map +1 -0
  65. package/dist/cjs/calcite-fab.cjs.entry.js +2 -0
  66. package/dist/cjs/calcite-fab.cjs.entry.js.map +1 -0
  67. package/dist/cjs/calcite-filter.cjs.entry.js +2 -0
  68. package/dist/cjs/calcite-filter.cjs.entry.js.map +1 -0
  69. package/dist/cjs/calcite-flow-item.cjs.entry.js +2 -0
  70. package/dist/cjs/calcite-flow-item.cjs.entry.js.map +1 -0
  71. package/dist/cjs/calcite-flow.cjs.entry.js +2 -0
  72. package/dist/cjs/calcite-flow.cjs.entry.js.map +1 -0
  73. package/dist/cjs/calcite-graph.cjs.entry.js +2 -0
  74. package/dist/cjs/calcite-graph.cjs.entry.js.map +1 -0
  75. package/dist/cjs/calcite-handle.cjs.entry.js +2 -0
  76. package/dist/cjs/calcite-handle.cjs.entry.js.map +1 -0
  77. package/dist/cjs/calcite-icon.cjs.entry.js +2 -0
  78. package/dist/cjs/calcite-icon.cjs.entry.js.map +1 -0
  79. package/dist/cjs/calcite-inline-editable.cjs.entry.js +2 -0
  80. package/dist/cjs/calcite-inline-editable.cjs.entry.js.map +1 -0
  81. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +2 -0
  82. package/dist/cjs/calcite-input-date-picker.cjs.entry.js.map +1 -0
  83. package/dist/cjs/calcite-input-number.cjs.entry.js +2 -0
  84. package/dist/cjs/calcite-input-number.cjs.entry.js.map +1 -0
  85. package/dist/cjs/calcite-input-text.cjs.entry.js +2 -0
  86. package/dist/cjs/calcite-input-text.cjs.entry.js.map +1 -0
  87. package/dist/cjs/calcite-input-time-picker.cjs.entry.js +2 -0
  88. package/dist/cjs/calcite-input-time-picker.cjs.entry.js.map +1 -0
  89. package/dist/cjs/calcite-input_2.cjs.entry.js +2 -0
  90. package/dist/cjs/calcite-input_2.cjs.entry.js.map +1 -0
  91. package/dist/cjs/calcite-label.cjs.entry.js +2 -0
  92. package/dist/cjs/calcite-label.cjs.entry.js.map +1 -0
  93. package/dist/cjs/calcite-link.cjs.entry.js +2 -0
  94. package/dist/cjs/calcite-link.cjs.entry.js.map +1 -0
  95. package/dist/cjs/calcite-list-item-group.cjs.entry.js +2 -0
  96. package/dist/cjs/calcite-list-item-group.cjs.entry.js.map +1 -0
  97. package/dist/cjs/calcite-list_2.cjs.entry.js +2 -0
  98. package/dist/cjs/calcite-list_2.cjs.entry.js.map +1 -0
  99. package/dist/cjs/calcite-loader.cjs.entry.js +97 -0
  100. package/dist/cjs/calcite-loader.cjs.entry.js.map +1 -0
  101. package/dist/cjs/{solution-configuration.cjs.entry.js → calcite-modal_2.cjs.entry.js} +452 -6
  102. package/dist/cjs/calcite-modal_2.cjs.entry.js.map +1 -0
  103. package/dist/cjs/calcite-option-group.cjs.entry.js +2 -0
  104. package/dist/cjs/calcite-option-group.cjs.entry.js.map +1 -0
  105. package/dist/cjs/calcite-option_2.cjs.entry.js +2 -0
  106. package/dist/cjs/calcite-option_2.cjs.entry.js.map +1 -0
  107. package/dist/cjs/calcite-pagination.cjs.entry.js +2 -0
  108. package/dist/cjs/calcite-pagination.cjs.entry.js.map +1 -0
  109. package/dist/cjs/{calcite-shell-panel_14.cjs.entry.js → calcite-panel_12.cjs.entry.js} +469 -711
  110. package/dist/cjs/calcite-panel_12.cjs.entry.js.map +1 -0
  111. package/dist/cjs/calcite-pick-list-group.cjs.entry.js +2 -0
  112. package/dist/cjs/calcite-pick-list-group.cjs.entry.js.map +1 -0
  113. package/dist/cjs/calcite-pick-list-item.cjs.entry.js +2 -0
  114. package/dist/cjs/calcite-pick-list-item.cjs.entry.js.map +1 -0
  115. package/dist/cjs/calcite-pick-list.cjs.entry.js +2 -0
  116. package/dist/cjs/calcite-pick-list.cjs.entry.js.map +1 -0
  117. package/dist/cjs/calcite-popover-manager.cjs.entry.js +2 -0
  118. package/dist/cjs/calcite-popover-manager.cjs.entry.js.map +1 -0
  119. package/dist/cjs/calcite-radio-button-group.cjs.entry.js +2 -0
  120. package/dist/cjs/calcite-radio-button-group.cjs.entry.js.map +1 -0
  121. package/dist/cjs/calcite-radio-button.cjs.entry.js +2 -0
  122. package/dist/cjs/calcite-radio-button.cjs.entry.js.map +1 -0
  123. package/dist/cjs/calcite-rating.cjs.entry.js +2 -0
  124. package/dist/cjs/calcite-rating.cjs.entry.js.map +1 -0
  125. package/dist/cjs/calcite-shell-center-row.cjs.entry.js +2 -0
  126. package/dist/cjs/calcite-shell-center-row.cjs.entry.js.map +1 -0
  127. package/dist/cjs/calcite-sortable-list.cjs.entry.js +2 -0
  128. package/dist/cjs/calcite-sortable-list.cjs.entry.js.map +1 -0
  129. package/dist/cjs/calcite-split-button.cjs.entry.js +2 -0
  130. package/dist/cjs/calcite-split-button.cjs.entry.js.map +1 -0
  131. package/dist/cjs/calcite-stepper-item.cjs.entry.js +2 -0
  132. package/dist/cjs/calcite-stepper-item.cjs.entry.js.map +1 -0
  133. package/dist/cjs/calcite-stepper.cjs.entry.js +2 -0
  134. package/dist/cjs/calcite-stepper.cjs.entry.js.map +1 -0
  135. package/dist/cjs/calcite-switch.cjs.entry.js +2 -0
  136. package/dist/cjs/calcite-switch.cjs.entry.js.map +1 -0
  137. package/dist/cjs/calcite-tile-select-group.cjs.entry.js +2 -0
  138. package/dist/cjs/calcite-tile-select-group.cjs.entry.js.map +1 -0
  139. package/dist/cjs/calcite-tile-select.cjs.entry.js +2 -0
  140. package/dist/cjs/calcite-tile-select.cjs.entry.js.map +1 -0
  141. package/dist/cjs/calcite-tile.cjs.entry.js +2 -0
  142. package/dist/cjs/calcite-tile.cjs.entry.js.map +1 -0
  143. package/dist/cjs/calcite-time-picker.cjs.entry.js +2 -0
  144. package/dist/cjs/calcite-time-picker.cjs.entry.js.map +1 -0
  145. package/dist/cjs/calcite-tip-group.cjs.entry.js +2 -0
  146. package/dist/cjs/calcite-tip-group.cjs.entry.js.map +1 -0
  147. package/dist/cjs/calcite-tip-manager.cjs.entry.js +2 -0
  148. package/dist/cjs/calcite-tip-manager.cjs.entry.js.map +1 -0
  149. package/dist/cjs/calcite-tip.cjs.entry.js +2 -0
  150. package/dist/cjs/calcite-tip.cjs.entry.js.map +1 -0
  151. package/dist/cjs/calcite-tooltip-manager.cjs.entry.js +2 -0
  152. package/dist/cjs/calcite-tooltip-manager.cjs.entry.js.map +1 -0
  153. package/dist/cjs/calcite-tooltip.cjs.entry.js +2 -0
  154. package/dist/cjs/calcite-tooltip.cjs.entry.js.map +1 -0
  155. package/dist/cjs/calcite-tree_3.cjs.entry.js +2 -0
  156. package/dist/cjs/calcite-tree_3.cjs.entry.js.map +1 -0
  157. package/dist/cjs/check-list.cjs.entry.js +2 -0
  158. package/dist/cjs/check-list.cjs.entry.js.map +1 -0
  159. package/dist/cjs/conditionalSlot-2defe83d.js +2 -0
  160. package/dist/cjs/conditionalSlot-2defe83d.js.map +1 -0
  161. package/dist/cjs/config-buffer-tools.cjs.entry.js +2 -0
  162. package/dist/cjs/config-buffer-tools.cjs.entry.js.map +1 -0
  163. package/dist/cjs/config-draw-tools.cjs.entry.js +2 -0
  164. package/dist/cjs/config-draw-tools.cjs.entry.js.map +1 -0
  165. package/dist/cjs/config-layer-picker.cjs.entry.js +2 -0
  166. package/dist/cjs/config-layer-picker.cjs.entry.js.map +1 -0
  167. package/dist/cjs/config-pdf-download.cjs.entry.js +2 -0
  168. package/dist/cjs/config-pdf-download.cjs.entry.js.map +1 -0
  169. package/dist/cjs/date-e21b2052.js +2 -0
  170. package/dist/cjs/date-e21b2052.js.map +1 -0
  171. package/dist/cjs/debounce-69c3bada.js +2 -0
  172. package/dist/cjs/debounce-69c3bada.js.map +1 -0
  173. package/dist/cjs/dom-4a580af6.js +2 -0
  174. package/dist/cjs/dom-4a580af6.js.map +1 -0
  175. package/dist/cjs/filter-325f654f.js +2 -0
  176. package/dist/cjs/filter-325f654f.js.map +1 -0
  177. package/dist/cjs/floating-ui-ca1bcead.js +2 -0
  178. package/dist/cjs/floating-ui-ca1bcead.js.map +1 -0
  179. package/dist/cjs/form-45849654.js +2 -0
  180. package/dist/cjs/form-45849654.js.map +1 -0
  181. package/dist/cjs/guid-84ac4d91.js +2 -0
  182. package/dist/cjs/guid-84ac4d91.js.map +1 -0
  183. package/dist/cjs/index-7af21b6f.js +2 -0
  184. package/dist/cjs/index-7af21b6f.js.map +1 -0
  185. package/dist/cjs/index-a86078a0.js +2 -0
  186. package/dist/cjs/index-a86078a0.js.map +1 -0
  187. package/dist/cjs/index-d7f9770d.js +2 -0
  188. package/dist/cjs/index-d7f9770d.js.map +1 -0
  189. package/dist/cjs/index.cjs.js +2 -0
  190. package/dist/cjs/index.cjs.js.map +1 -0
  191. package/dist/cjs/interactive-0a68ab99.js +2 -0
  192. package/dist/cjs/interactive-0a68ab99.js.map +1 -0
  193. package/dist/cjs/interfaces-ab603e16.js +2 -0
  194. package/dist/cjs/interfaces-ab603e16.js.map +1 -0
  195. package/dist/cjs/interfaces-e76f31e9.js +2 -0
  196. package/dist/cjs/interfaces-e76f31e9.js.map +1 -0
  197. package/dist/cjs/key-55aca5c0.js +2 -0
  198. package/dist/cjs/key-55aca5c0.js.map +1 -0
  199. package/dist/cjs/label-24fcd8a5.js +2 -0
  200. package/dist/cjs/label-24fcd8a5.js.map +1 -0
  201. package/dist/cjs/labelFormats-3236d2e0.js +2 -0
  202. package/dist/cjs/labelFormats-3236d2e0.js.map +1 -0
  203. package/dist/cjs/loadModules-38269f99.js +2 -0
  204. package/dist/cjs/loadModules-38269f99.js.map +1 -0
  205. package/dist/cjs/loader.cjs.js +3 -1
  206. package/dist/cjs/loader.cjs.js.map +1 -0
  207. package/dist/cjs/locale-73cab8e8.js +2 -0
  208. package/dist/cjs/locale-73cab8e8.js.map +1 -0
  209. package/dist/cjs/locale-746a095d.js +2 -0
  210. package/dist/cjs/locale-746a095d.js.map +1 -0
  211. package/dist/cjs/map-search.cjs.entry.js +2 -0
  212. package/dist/cjs/map-search.cjs.entry.js.map +1 -0
  213. package/dist/cjs/mapViewUtils-67cfc412.js +2 -0
  214. package/dist/cjs/mapViewUtils-67cfc412.js.map +1 -0
  215. package/dist/cjs/math-460fffaf.js +2 -0
  216. package/dist/cjs/math-460fffaf.js.map +1 -0
  217. package/dist/cjs/nonChromiumPlatformUtils-7a6a84d2.js +2 -0
  218. package/dist/cjs/nonChromiumPlatformUtils-7a6a84d2.js.map +1 -0
  219. package/dist/cjs/observers-5311faf8.js +2 -0
  220. package/dist/cjs/observers-5311faf8.js.map +1 -0
  221. package/dist/cjs/openCloseComponent-bf986132.js +2 -0
  222. package/dist/cjs/openCloseComponent-bf986132.js.map +1 -0
  223. package/dist/cjs/public-notification.cjs.entry.js +2 -0
  224. package/dist/cjs/public-notification.cjs.entry.js.map +1 -0
  225. package/dist/cjs/publicNotificationStore-6a3d40b3.js +2 -0
  226. package/dist/cjs/publicNotificationStore-6a3d40b3.js.map +1 -0
  227. package/dist/cjs/publicNotificationUtils-9d585d8d.js +2 -0
  228. package/dist/cjs/publicNotificationUtils-9d585d8d.js.map +1 -0
  229. package/dist/cjs/resources-1f785471.js +2 -0
  230. package/dist/cjs/resources-1f785471.js.map +1 -0
  231. package/dist/cjs/resources-2260d186.js +2 -0
  232. package/dist/cjs/resources-2260d186.js.map +1 -0
  233. package/dist/cjs/resources-2a9862c7.js +2 -0
  234. package/dist/cjs/resources-2a9862c7.js.map +1 -0
  235. package/dist/cjs/resources-308edbd8.js +2 -0
  236. package/dist/cjs/resources-308edbd8.js.map +1 -0
  237. package/dist/cjs/resources-6152b073.js +2 -0
  238. package/dist/cjs/resources-6152b073.js.map +1 -0
  239. package/dist/cjs/resources-808cfca8.js +2 -0
  240. package/dist/cjs/resources-808cfca8.js.map +1 -0
  241. package/dist/cjs/resources-9c55e05c.js +2 -0
  242. package/dist/cjs/resources-9c55e05c.js.map +1 -0
  243. package/dist/cjs/resources-aa19bf8c.js +2 -0
  244. package/dist/cjs/resources-aa19bf8c.js.map +1 -0
  245. package/dist/cjs/resources-b56bce71.js +2 -0
  246. package/dist/cjs/resources-b56bce71.js.map +1 -0
  247. package/dist/cjs/resources-cc7f63b0.js +2 -0
  248. package/dist/cjs/resources-cc7f63b0.js.map +1 -0
  249. package/dist/cjs/shared-list-render-4c7d84bf.js +2 -0
  250. package/dist/cjs/shared-list-render-4c7d84bf.js.map +1 -0
  251. package/dist/cjs/solution-config-modal.cjs.entry.js +131 -0
  252. package/dist/cjs/solution-config-modal.cjs.entry.js.map +1 -0
  253. package/dist/cjs/{solution-contents_3.cjs.entry.js → solution-contents_7.cjs.entry.js} +665 -2
  254. package/dist/cjs/solution-contents_7.cjs.entry.js.map +1 -0
  255. package/dist/cjs/{solution-store-e2fc11ac.js → solution-store-09b3fc53.js} +5 -3
  256. package/dist/cjs/solution-store-09b3fc53.js.map +1 -0
  257. package/dist/cjs/solutions-components.cjs.js +3 -1
  258. package/dist/cjs/solutions-components.cjs.js.map +1 -0
  259. package/dist/cjs/sortable.esm-bf47019d.js +2 -0
  260. package/dist/cjs/sortable.esm-bf47019d.js.map +1 -0
  261. package/dist/cjs/store-manager.cjs.entry.js +2 -0
  262. package/dist/cjs/store-manager.cjs.entry.js.map +1 -0
  263. package/dist/cjs/time-3f5577cb.js +2 -0
  264. package/dist/cjs/time-3f5577cb.js.map +1 -0
  265. package/dist/cjs/utils-120bbbeb.js +2 -0
  266. package/dist/cjs/utils-120bbbeb.js.map +1 -0
  267. package/dist/cjs/utils-b4236001.js +2 -0
  268. package/dist/cjs/utils-b4236001.js.map +1 -0
  269. package/dist/collection/collection-manifest.json +1 -0
  270. package/dist/collection/components/buffer-tools/buffer-tools.js +1 -0
  271. package/dist/collection/components/buffer-tools/buffer-tools.js.map +1 -0
  272. package/dist/collection/components/check-list/check-list.js +1 -0
  273. package/dist/collection/components/check-list/check-list.js.map +1 -0
  274. package/dist/collection/components/config-buffer-tools/config-buffer-tools.js +1 -0
  275. package/dist/collection/components/config-buffer-tools/config-buffer-tools.js.map +1 -0
  276. package/dist/collection/components/config-draw-tools/config-draw-tools.js +1 -0
  277. package/dist/collection/components/config-draw-tools/config-draw-tools.js.map +1 -0
  278. package/dist/collection/components/config-layer-picker/config-layer-picker.js +1 -0
  279. package/dist/collection/components/config-layer-picker/config-layer-picker.js.map +1 -0
  280. package/dist/collection/components/config-pdf-download/config-pdf-download.js +1 -0
  281. package/dist/collection/components/config-pdf-download/config-pdf-download.js.map +1 -0
  282. package/dist/collection/components/json-editor/json-editor.js +1 -0
  283. package/dist/collection/components/json-editor/json-editor.js.map +1 -0
  284. package/dist/collection/components/map-draw-tools/map-draw-tools.js +1 -0
  285. package/dist/collection/components/map-draw-tools/map-draw-tools.js.map +1 -0
  286. package/dist/collection/components/map-layer-picker/map-layer-picker.js +1 -0
  287. package/dist/collection/components/map-layer-picker/map-layer-picker.js.map +1 -0
  288. package/dist/collection/components/map-search/map-search.js +1 -0
  289. package/dist/collection/components/map-search/map-search.js.map +1 -0
  290. package/dist/collection/components/map-select-tools/map-select-tools.js +1 -0
  291. package/dist/collection/components/map-select-tools/map-select-tools.js.map +1 -0
  292. package/dist/collection/components/pdf-download/pdf-download.js +1 -0
  293. package/dist/collection/components/pdf-download/pdf-download.js.map +1 -0
  294. package/dist/collection/components/public-notification/public-notification.js +1 -0
  295. package/dist/collection/components/public-notification/public-notification.js.map +1 -0
  296. package/dist/collection/components/refine-selection/refine-selection.js +1 -0
  297. package/dist/collection/components/refine-selection/refine-selection.js.map +1 -0
  298. package/dist/collection/components/refine-selection-tools/refine-selection-tools.js +1 -0
  299. package/dist/collection/components/refine-selection-tools/refine-selection-tools.js.map +1 -0
  300. package/dist/collection/components/solution-config-modal/solution-config-modal.css +91 -0
  301. package/dist/collection/components/solution-config-modal/solution-config-modal.js +245 -0
  302. package/dist/collection/components/solution-config-modal/solution-config-modal.js.map +1 -0
  303. package/dist/collection/components/solution-configuration/solution-configuration.js +24 -11
  304. package/dist/collection/components/solution-configuration/solution-configuration.js.map +1 -0
  305. package/dist/collection/components/solution-contents/solution-contents.js +1 -0
  306. package/dist/collection/components/solution-contents/solution-contents.js.map +1 -0
  307. package/dist/collection/components/solution-item/solution-item.js +1 -0
  308. package/dist/collection/components/solution-item/solution-item.js.map +1 -0
  309. package/dist/collection/components/solution-item-details/solution-item-details.js +1 -0
  310. package/dist/collection/components/solution-item-details/solution-item-details.js.map +1 -0
  311. package/dist/collection/components/solution-item-icon/solution-item-icon.js +1 -0
  312. package/dist/collection/components/solution-item-icon/solution-item-icon.js.map +1 -0
  313. package/dist/collection/components/solution-item-sharing/solution-item-sharing.js +1 -0
  314. package/dist/collection/components/solution-item-sharing/solution-item-sharing.js.map +1 -0
  315. package/dist/collection/components/solution-organization-variables/solution-organization-variables.js +1 -0
  316. package/dist/collection/components/solution-organization-variables/solution-organization-variables.js.map +1 -0
  317. package/dist/collection/components/solution-resource-item/solution-resource-item.js +1 -0
  318. package/dist/collection/components/solution-resource-item/solution-resource-item.js.map +1 -0
  319. package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +1 -0
  320. package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js.map +1 -0
  321. package/dist/collection/components/solution-spatial-ref/spatialreferences.js +1 -0
  322. package/dist/collection/components/solution-spatial-ref/spatialreferences.js.map +1 -0
  323. package/dist/collection/components/solution-template-data/solution-template-data.js +1 -0
  324. package/dist/collection/components/solution-template-data/solution-template-data.js.map +1 -0
  325. package/dist/collection/components/solution-variables/solution-variables.js +1 -0
  326. package/dist/collection/components/solution-variables/solution-variables.js.map +1 -0
  327. package/dist/collection/components/store-manager/store-manager.js +1 -0
  328. package/dist/collection/components/store-manager/store-manager.js.map +1 -0
  329. package/dist/collection/index.js +1 -0
  330. package/dist/collection/index.js.map +1 -0
  331. package/dist/collection/utils/common.js +1 -0
  332. package/dist/collection/utils/common.js.map +1 -0
  333. package/dist/collection/utils/csvUtils.js +1 -0
  334. package/dist/collection/utils/csvUtils.js.map +1 -0
  335. package/dist/collection/utils/interfaces.js +1 -0
  336. package/dist/collection/utils/interfaces.js.map +1 -0
  337. package/dist/collection/utils/languageUtil.js +1 -0
  338. package/dist/collection/utils/languageUtil.js.map +1 -0
  339. package/dist/collection/utils/loadModules.js +1 -0
  340. package/dist/collection/utils/loadModules.js.map +1 -0
  341. package/dist/collection/utils/locale.js +1 -0
  342. package/dist/collection/utils/locale.js.map +1 -0
  343. package/dist/collection/utils/mapViewUtils.js +1 -0
  344. package/dist/collection/utils/mapViewUtils.js.map +1 -0
  345. package/dist/collection/utils/publicNotificationStore.js +1 -0
  346. package/dist/collection/utils/publicNotificationStore.js.map +1 -0
  347. package/dist/collection/utils/publicNotificationUtils.js +1 -0
  348. package/dist/collection/utils/publicNotificationUtils.js.map +1 -0
  349. package/dist/collection/utils/queryUtils.js +1 -0
  350. package/dist/collection/utils/queryUtils.js.map +1 -0
  351. package/dist/collection/utils/solution-store.js +4 -3
  352. package/dist/collection/utils/solution-store.js.map +1 -0
  353. package/dist/collection/utils/solution-store.ts +3 -3
  354. package/dist/collection/utils/templates.js +1 -0
  355. package/dist/collection/utils/templates.js.map +1 -0
  356. package/dist/collection/utils/test/testUtils.js +1 -0
  357. package/dist/collection/utils/test/testUtils.js.map +1 -0
  358. package/dist/collection/utils/types.js +1 -0
  359. package/dist/collection/utils/types.js.map +1 -0
  360. package/dist/esm/ExpandToggle-b7d1fb3c.js +2 -0
  361. package/dist/esm/ExpandToggle-b7d1fb3c.js.map +1 -0
  362. package/dist/esm/Heading-1efb4837.js +2 -0
  363. package/dist/esm/Heading-1efb4837.js.map +1 -0
  364. package/dist/esm/_commonjsHelpers-8fd39c50.js +2 -0
  365. package/dist/esm/_commonjsHelpers-8fd39c50.js.map +1 -0
  366. package/dist/esm/app-globals-09b9efee.js +2 -0
  367. package/dist/esm/app-globals-09b9efee.js.map +1 -0
  368. package/dist/esm/array-2ab3b18f.js +2 -0
  369. package/dist/esm/array-2ab3b18f.js.map +1 -0
  370. package/dist/esm/buffer-tools_6.entry.js +4 -2
  371. package/dist/esm/buffer-tools_6.entry.js.map +1 -0
  372. package/dist/esm/calcite-accordion-item.entry.js +2 -0
  373. package/dist/esm/calcite-accordion-item.entry.js.map +1 -0
  374. package/dist/esm/calcite-accordion.entry.js +2 -0
  375. package/dist/esm/calcite-accordion.entry.js.map +1 -0
  376. package/dist/esm/calcite-action-bar_6.entry.js +4 -2
  377. package/dist/esm/calcite-action-bar_6.entry.js.map +1 -0
  378. package/dist/esm/calcite-action-group.entry.js +2 -0
  379. package/dist/esm/calcite-action-group.entry.js.map +1 -0
  380. package/dist/esm/calcite-action-menu_2.entry.js +22 -403
  381. package/dist/esm/calcite-action-menu_2.entry.js.map +1 -0
  382. package/dist/esm/calcite-action-pad.entry.js +2 -0
  383. package/dist/esm/calcite-action-pad.entry.js.map +1 -0
  384. package/dist/esm/calcite-action_2.entry.js +426 -72
  385. package/dist/esm/calcite-action_2.entry.js.map +1 -0
  386. package/dist/esm/calcite-alert.entry.js +2 -0
  387. package/dist/esm/calcite-alert.entry.js.map +1 -0
  388. package/dist/esm/calcite-avatar.entry.js +2 -0
  389. package/dist/esm/calcite-avatar.entry.js.map +1 -0
  390. package/dist/esm/calcite-block-section.entry.js +2 -0
  391. package/dist/esm/calcite-block-section.entry.js.map +1 -0
  392. package/dist/esm/calcite-block.entry.js +2 -0
  393. package/dist/esm/calcite-block.entry.js.map +1 -0
  394. package/dist/esm/calcite-button.entry.js +2 -0
  395. package/dist/esm/calcite-button.entry.js.map +1 -0
  396. package/dist/esm/calcite-card.entry.js +2 -0
  397. package/dist/esm/calcite-card.entry.js.map +1 -0
  398. package/dist/esm/calcite-checkbox.entry.js +2 -0
  399. package/dist/esm/calcite-checkbox.entry.js.map +1 -0
  400. package/dist/esm/calcite-chip.entry.js +2 -0
  401. package/dist/esm/calcite-chip.entry.js.map +1 -0
  402. package/dist/esm/calcite-color-picker-hex-input.entry.js +2 -0
  403. package/dist/esm/calcite-color-picker-hex-input.entry.js.map +1 -0
  404. package/dist/esm/calcite-color-picker-swatch.entry.js +2 -0
  405. package/dist/esm/calcite-color-picker-swatch.entry.js.map +1 -0
  406. package/dist/esm/calcite-color-picker.entry.js +2 -0
  407. package/dist/esm/calcite-color-picker.entry.js.map +1 -0
  408. package/dist/esm/calcite-combobox-item-group.entry.js +2 -0
  409. package/dist/esm/calcite-combobox-item-group.entry.js.map +1 -0
  410. package/dist/esm/calcite-combobox_3.entry.js +4 -2
  411. package/dist/esm/calcite-combobox_3.entry.js.map +1 -0
  412. package/dist/esm/calcite-date-picker-day_3.entry.js +2 -0
  413. package/dist/esm/calcite-date-picker-day_3.entry.js.map +1 -0
  414. package/dist/esm/calcite-date-picker.entry.js +2 -0
  415. package/dist/esm/calcite-date-picker.entry.js.map +1 -0
  416. package/dist/esm/calcite-dropdown-group.entry.js +2 -0
  417. package/dist/esm/calcite-dropdown-group.entry.js.map +1 -0
  418. package/dist/esm/calcite-dropdown-item.entry.js +2 -0
  419. package/dist/esm/calcite-dropdown-item.entry.js.map +1 -0
  420. package/dist/esm/calcite-dropdown.entry.js +2 -0
  421. package/dist/esm/calcite-dropdown.entry.js.map +1 -0
  422. package/dist/esm/calcite-fab.entry.js +2 -0
  423. package/dist/esm/calcite-fab.entry.js.map +1 -0
  424. package/dist/esm/calcite-filter.entry.js +2 -0
  425. package/dist/esm/calcite-filter.entry.js.map +1 -0
  426. package/dist/esm/calcite-flow-item.entry.js +2 -0
  427. package/dist/esm/calcite-flow-item.entry.js.map +1 -0
  428. package/dist/esm/calcite-flow.entry.js +2 -0
  429. package/dist/esm/calcite-flow.entry.js.map +1 -0
  430. package/dist/esm/calcite-graph.entry.js +2 -0
  431. package/dist/esm/calcite-graph.entry.js.map +1 -0
  432. package/dist/esm/calcite-handle.entry.js +2 -0
  433. package/dist/esm/calcite-handle.entry.js.map +1 -0
  434. package/dist/esm/calcite-icon.entry.js +2 -0
  435. package/dist/esm/calcite-icon.entry.js.map +1 -0
  436. package/dist/esm/calcite-inline-editable.entry.js +2 -0
  437. package/dist/esm/calcite-inline-editable.entry.js.map +1 -0
  438. package/dist/esm/calcite-input-date-picker.entry.js +2 -0
  439. package/dist/esm/calcite-input-date-picker.entry.js.map +1 -0
  440. package/dist/esm/calcite-input-number.entry.js +2 -0
  441. package/dist/esm/calcite-input-number.entry.js.map +1 -0
  442. package/dist/esm/calcite-input-text.entry.js +2 -0
  443. package/dist/esm/calcite-input-text.entry.js.map +1 -0
  444. package/dist/esm/calcite-input-time-picker.entry.js +2 -0
  445. package/dist/esm/calcite-input-time-picker.entry.js.map +1 -0
  446. package/dist/esm/calcite-input_2.entry.js +2 -0
  447. package/dist/esm/calcite-input_2.entry.js.map +1 -0
  448. package/dist/esm/calcite-label.entry.js +2 -0
  449. package/dist/esm/calcite-label.entry.js.map +1 -0
  450. package/dist/esm/calcite-link.entry.js +2 -0
  451. package/dist/esm/calcite-link.entry.js.map +1 -0
  452. package/dist/esm/calcite-list-item-group.entry.js +2 -0
  453. package/dist/esm/calcite-list-item-group.entry.js.map +1 -0
  454. package/dist/esm/calcite-list_2.entry.js +2 -0
  455. package/dist/esm/calcite-list_2.entry.js.map +1 -0
  456. package/dist/esm/calcite-loader.entry.js +93 -0
  457. package/dist/esm/calcite-loader.entry.js.map +1 -0
  458. package/dist/esm/{solution-configuration.entry.js → calcite-modal_2.entry.js} +454 -9
  459. package/dist/esm/calcite-modal_2.entry.js.map +1 -0
  460. package/dist/esm/calcite-option-group.entry.js +2 -0
  461. package/dist/esm/calcite-option-group.entry.js.map +1 -0
  462. package/dist/esm/calcite-option_2.entry.js +2 -0
  463. package/dist/esm/calcite-option_2.entry.js.map +1 -0
  464. package/dist/esm/calcite-pagination.entry.js +2 -0
  465. package/dist/esm/calcite-pagination.entry.js.map +1 -0
  466. package/dist/esm/{calcite-shell-panel_14.entry.js → calcite-panel_12.entry.js} +468 -708
  467. package/dist/esm/calcite-panel_12.entry.js.map +1 -0
  468. package/dist/esm/calcite-pick-list-group.entry.js +2 -0
  469. package/dist/esm/calcite-pick-list-group.entry.js.map +1 -0
  470. package/dist/esm/calcite-pick-list-item.entry.js +2 -0
  471. package/dist/esm/calcite-pick-list-item.entry.js.map +1 -0
  472. package/dist/esm/calcite-pick-list.entry.js +2 -0
  473. package/dist/esm/calcite-pick-list.entry.js.map +1 -0
  474. package/dist/esm/calcite-popover-manager.entry.js +2 -0
  475. package/dist/esm/calcite-popover-manager.entry.js.map +1 -0
  476. package/dist/esm/calcite-radio-button-group.entry.js +2 -0
  477. package/dist/esm/calcite-radio-button-group.entry.js.map +1 -0
  478. package/dist/esm/calcite-radio-button.entry.js +2 -0
  479. package/dist/esm/calcite-radio-button.entry.js.map +1 -0
  480. package/dist/esm/calcite-rating.entry.js +2 -0
  481. package/dist/esm/calcite-rating.entry.js.map +1 -0
  482. package/dist/esm/calcite-shell-center-row.entry.js +2 -0
  483. package/dist/esm/calcite-shell-center-row.entry.js.map +1 -0
  484. package/dist/esm/calcite-sortable-list.entry.js +2 -0
  485. package/dist/esm/calcite-sortable-list.entry.js.map +1 -0
  486. package/dist/esm/calcite-split-button.entry.js +2 -0
  487. package/dist/esm/calcite-split-button.entry.js.map +1 -0
  488. package/dist/esm/calcite-stepper-item.entry.js +2 -0
  489. package/dist/esm/calcite-stepper-item.entry.js.map +1 -0
  490. package/dist/esm/calcite-stepper.entry.js +2 -0
  491. package/dist/esm/calcite-stepper.entry.js.map +1 -0
  492. package/dist/esm/calcite-switch.entry.js +2 -0
  493. package/dist/esm/calcite-switch.entry.js.map +1 -0
  494. package/dist/esm/calcite-tile-select-group.entry.js +2 -0
  495. package/dist/esm/calcite-tile-select-group.entry.js.map +1 -0
  496. package/dist/esm/calcite-tile-select.entry.js +2 -0
  497. package/dist/esm/calcite-tile-select.entry.js.map +1 -0
  498. package/dist/esm/calcite-tile.entry.js +2 -0
  499. package/dist/esm/calcite-tile.entry.js.map +1 -0
  500. package/dist/esm/calcite-time-picker.entry.js +2 -0
  501. package/dist/esm/calcite-time-picker.entry.js.map +1 -0
  502. package/dist/esm/calcite-tip-group.entry.js +2 -0
  503. package/dist/esm/calcite-tip-group.entry.js.map +1 -0
  504. package/dist/esm/calcite-tip-manager.entry.js +2 -0
  505. package/dist/esm/calcite-tip-manager.entry.js.map +1 -0
  506. package/dist/esm/calcite-tip.entry.js +2 -0
  507. package/dist/esm/calcite-tip.entry.js.map +1 -0
  508. package/dist/esm/calcite-tooltip-manager.entry.js +2 -0
  509. package/dist/esm/calcite-tooltip-manager.entry.js.map +1 -0
  510. package/dist/esm/calcite-tooltip.entry.js +2 -0
  511. package/dist/esm/calcite-tooltip.entry.js.map +1 -0
  512. package/dist/esm/calcite-tree_3.entry.js +2 -0
  513. package/dist/esm/calcite-tree_3.entry.js.map +1 -0
  514. package/dist/esm/check-list.entry.js +2 -0
  515. package/dist/esm/check-list.entry.js.map +1 -0
  516. package/dist/esm/conditionalSlot-bb4cab11.js +2 -0
  517. package/dist/esm/conditionalSlot-bb4cab11.js.map +1 -0
  518. package/dist/esm/config-buffer-tools.entry.js +2 -0
  519. package/dist/esm/config-buffer-tools.entry.js.map +1 -0
  520. package/dist/esm/config-draw-tools.entry.js +2 -0
  521. package/dist/esm/config-draw-tools.entry.js.map +1 -0
  522. package/dist/esm/config-layer-picker.entry.js +4 -2
  523. package/dist/esm/config-layer-picker.entry.js.map +1 -0
  524. package/dist/esm/config-pdf-download.entry.js +2 -0
  525. package/dist/esm/config-pdf-download.entry.js.map +1 -0
  526. package/dist/esm/date-45de0016.js +2 -0
  527. package/dist/esm/date-45de0016.js.map +1 -0
  528. package/dist/esm/debounce-4c884e5c.js +2 -0
  529. package/dist/esm/debounce-4c884e5c.js.map +1 -0
  530. package/dist/esm/dom-e593bf85.js +2 -0
  531. package/dist/esm/dom-e593bf85.js.map +1 -0
  532. package/dist/esm/filter-82935f2d.js +2 -0
  533. package/dist/esm/filter-82935f2d.js.map +1 -0
  534. package/dist/esm/floating-ui-69a55a27.js +2 -0
  535. package/dist/esm/floating-ui-69a55a27.js.map +1 -0
  536. package/dist/esm/form-dbfde8ce.js +2 -0
  537. package/dist/esm/form-dbfde8ce.js.map +1 -0
  538. package/dist/esm/guid-15fce7c0.js +2 -0
  539. package/dist/esm/guid-15fce7c0.js.map +1 -0
  540. package/dist/esm/index-15022d11.js +2 -0
  541. package/dist/esm/index-15022d11.js.map +1 -0
  542. package/dist/esm/index-9c882a6e.js +2 -0
  543. package/dist/esm/index-9c882a6e.js.map +1 -0
  544. package/dist/esm/index-d33ebc35.js +2 -0
  545. package/dist/esm/index-d33ebc35.js.map +1 -0
  546. package/dist/esm/index.js +2 -0
  547. package/dist/esm/index.js.map +1 -0
  548. package/dist/esm/interactive-822ffed6.js +2 -0
  549. package/dist/esm/interactive-822ffed6.js.map +1 -0
  550. package/dist/esm/interfaces-1bdfc3a8.js +72 -0
  551. package/dist/esm/interfaces-1bdfc3a8.js.map +1 -0
  552. package/dist/esm/interfaces-4ae145eb.js +2 -0
  553. package/dist/esm/interfaces-4ae145eb.js.map +1 -0
  554. package/dist/esm/key-acb660e7.js +2 -0
  555. package/dist/esm/key-acb660e7.js.map +1 -0
  556. package/dist/esm/label-d411de44.js +2 -0
  557. package/dist/esm/label-d411de44.js.map +1 -0
  558. package/dist/esm/labelFormats-b37958c3.js +2 -0
  559. package/dist/esm/labelFormats-b37958c3.js.map +1 -0
  560. package/dist/esm/loadModules-d3b50f95.js +2 -0
  561. package/dist/esm/loadModules-d3b50f95.js.map +1 -0
  562. package/dist/esm/loader.js +3 -1
  563. package/dist/esm/loader.js.map +1 -0
  564. package/dist/esm/locale-0b490b02.js +2 -0
  565. package/dist/esm/locale-0b490b02.js.map +1 -0
  566. package/dist/esm/locale-0e10d7e5.js +2 -0
  567. package/dist/esm/locale-0e10d7e5.js.map +1 -0
  568. package/dist/esm/map-search.entry.js +2 -0
  569. package/dist/esm/map-search.entry.js.map +1 -0
  570. package/dist/esm/mapViewUtils-809947c8.js +284 -0
  571. package/dist/esm/mapViewUtils-809947c8.js.map +1 -0
  572. package/dist/esm/math-552c5420.js +2 -0
  573. package/dist/esm/math-552c5420.js.map +1 -0
  574. package/dist/esm/nonChromiumPlatformUtils-ee349005.js +2 -0
  575. package/dist/esm/nonChromiumPlatformUtils-ee349005.js.map +1 -0
  576. package/dist/esm/observers-31601001.js +2 -0
  577. package/dist/esm/observers-31601001.js.map +1 -0
  578. package/dist/esm/openCloseComponent-5caff873.js +2 -0
  579. package/dist/esm/openCloseComponent-5caff873.js.map +1 -0
  580. package/dist/esm/public-notification.entry.js +4 -2
  581. package/dist/esm/public-notification.entry.js.map +1 -0
  582. package/dist/esm/publicNotificationStore-060c59c8.js +2 -0
  583. package/dist/esm/publicNotificationStore-060c59c8.js.map +1 -0
  584. package/dist/esm/publicNotificationUtils-5cb5a607.js +2 -0
  585. package/dist/esm/publicNotificationUtils-5cb5a607.js.map +1 -0
  586. package/dist/esm/resources-2235e4ff.js +2 -0
  587. package/dist/esm/resources-2235e4ff.js.map +1 -0
  588. package/dist/esm/resources-3d641588.js +2 -0
  589. package/dist/esm/resources-3d641588.js.map +1 -0
  590. package/dist/esm/resources-436ae282.js +2 -0
  591. package/dist/esm/resources-436ae282.js.map +1 -0
  592. package/dist/esm/resources-4d02cb48.js +2 -0
  593. package/dist/esm/resources-4d02cb48.js.map +1 -0
  594. package/dist/esm/resources-78132e50.js +2 -0
  595. package/dist/esm/resources-78132e50.js.map +1 -0
  596. package/dist/esm/resources-7d4a587f.js +2 -0
  597. package/dist/esm/resources-7d4a587f.js.map +1 -0
  598. package/dist/esm/resources-971845d1.js +2 -0
  599. package/dist/esm/resources-971845d1.js.map +1 -0
  600. package/dist/esm/resources-9eb63965.js +2 -0
  601. package/dist/esm/resources-9eb63965.js.map +1 -0
  602. package/dist/esm/resources-d60362c3.js +2 -0
  603. package/dist/esm/resources-d60362c3.js.map +1 -0
  604. package/dist/esm/resources-e3a5cf27.js +2 -0
  605. package/dist/esm/resources-e3a5cf27.js.map +1 -0
  606. package/dist/esm/shared-list-render-4e9d47a3.js +2 -0
  607. package/dist/esm/shared-list-render-4e9d47a3.js.map +1 -0
  608. package/dist/esm/solution-config-modal.entry.js +127 -0
  609. package/dist/esm/solution-config-modal.entry.js.map +1 -0
  610. package/dist/esm/{solution-contents_3.entry.js → solution-contents_7.entry.js} +662 -3
  611. package/dist/esm/solution-contents_7.entry.js.map +1 -0
  612. package/dist/esm/{solution-store-b3c65467.js → solution-store-d8519c64.js} +6 -4
  613. package/dist/esm/solution-store-d8519c64.js.map +1 -0
  614. package/dist/esm/solutions-components.js +3 -1
  615. package/dist/esm/solutions-components.js.map +1 -0
  616. package/dist/esm/sortable.esm-3b2eaa5c.js +2 -0
  617. package/dist/esm/sortable.esm-3b2eaa5c.js.map +1 -0
  618. package/dist/esm/store-manager.entry.js +2 -0
  619. package/dist/esm/store-manager.entry.js.map +1 -0
  620. package/dist/esm/time-f014778c.js +2 -0
  621. package/dist/esm/time-f014778c.js.map +1 -0
  622. package/dist/esm/utils-3f4ee4c3.js +2 -0
  623. package/dist/esm/utils-3f4ee4c3.js.map +1 -0
  624. package/dist/esm/utils-583554bc.js +2 -0
  625. package/dist/esm/utils-583554bc.js.map +1 -0
  626. package/dist/solutions-components/index.esm.js +2 -0
  627. package/dist/solutions-components/index.esm.js.map +1 -0
  628. package/dist/solutions-components/p-06dab43c.entry.js +140 -0
  629. package/dist/solutions-components/p-06dab43c.entry.js.map +1 -0
  630. package/dist/solutions-components/p-0bbe4865.entry.js +620 -0
  631. package/dist/solutions-components/p-0bbe4865.entry.js.map +1 -0
  632. package/dist/solutions-components/p-0fddf8a4.entry.js +349 -0
  633. package/dist/solutions-components/p-0fddf8a4.entry.js.map +1 -0
  634. package/dist/solutions-components/p-11068040.entry.js +1121 -0
  635. package/dist/solutions-components/p-11068040.entry.js.map +1 -0
  636. package/dist/solutions-components/p-11bc6805.entry.js +87 -0
  637. package/dist/solutions-components/p-11bc6805.entry.js.map +1 -0
  638. package/dist/solutions-components/p-13b37f05.js +308 -3
  639. package/dist/solutions-components/p-13b37f05.js.map +1 -0
  640. package/dist/solutions-components/p-1dfb5fae.entry.js +713 -0
  641. package/dist/solutions-components/p-1dfb5fae.entry.js.map +1 -0
  642. package/dist/solutions-components/p-1e15b1a3.js +183 -2
  643. package/dist/solutions-components/p-1e15b1a3.js.map +1 -0
  644. package/dist/solutions-components/p-1e5bc9c3.entry.js +96 -0
  645. package/dist/solutions-components/p-1e5bc9c3.entry.js.map +1 -0
  646. package/dist/solutions-components/p-1ed05745.entry.js +214 -0
  647. package/dist/solutions-components/p-1ed05745.entry.js.map +1 -0
  648. package/dist/solutions-components/p-20bdf42f.js +407 -14
  649. package/dist/solutions-components/p-20bdf42f.js.map +1 -0
  650. package/dist/solutions-components/p-22574d83.entry.js +74 -0
  651. package/dist/solutions-components/p-22574d83.entry.js.map +1 -0
  652. package/dist/solutions-components/p-23904a3d.js +401 -3
  653. package/dist/solutions-components/p-23904a3d.js.map +1 -0
  654. package/dist/solutions-components/p-26484399.entry.js +108 -0
  655. package/dist/solutions-components/p-26484399.entry.js.map +1 -0
  656. package/dist/solutions-components/p-2910dd9e.js +4094 -0
  657. package/dist/solutions-components/p-2910dd9e.js.map +1 -0
  658. package/dist/solutions-components/p-29bdbd3e.entry.js +280 -0
  659. package/dist/solutions-components/p-29bdbd3e.entry.js.map +1 -0
  660. package/dist/solutions-components/p-2ac06389.js +25 -16
  661. package/dist/solutions-components/p-2ac06389.js.map +1 -0
  662. package/dist/solutions-components/p-2bce7fa2.entry.js +45 -0
  663. package/dist/solutions-components/p-2bce7fa2.entry.js.map +1 -0
  664. package/dist/solutions-components/p-2e9ed892.js +48 -1
  665. package/dist/solutions-components/p-2e9ed892.js.map +1 -0
  666. package/dist/solutions-components/p-2f12ff1b.entry.js +202 -0
  667. package/dist/solutions-components/p-2f12ff1b.entry.js.map +1 -0
  668. package/dist/solutions-components/p-30810b45.entry.js +1250 -0
  669. package/dist/solutions-components/p-30810b45.entry.js.map +1 -0
  670. package/dist/solutions-components/p-32a67cb2.js +207 -2
  671. package/dist/solutions-components/p-32a67cb2.js.map +1 -0
  672. package/dist/solutions-components/p-341ff921.entry.js +449 -0
  673. package/dist/solutions-components/p-341ff921.entry.js.map +1 -0
  674. package/dist/solutions-components/p-36ce64e4.entry.js +215 -0
  675. package/dist/solutions-components/p-36ce64e4.entry.js.map +1 -0
  676. package/dist/solutions-components/p-374a5031.js +107 -2
  677. package/dist/solutions-components/p-374a5031.js.map +1 -0
  678. package/dist/solutions-components/p-38ddadf2.entry.js +342 -0
  679. package/dist/solutions-components/p-38ddadf2.entry.js.map +1 -0
  680. package/dist/solutions-components/p-3b010ce1.js +19 -1
  681. package/dist/solutions-components/p-3b010ce1.js.map +1 -0
  682. package/dist/solutions-components/p-3f6b0af4.js +221 -2
  683. package/dist/solutions-components/p-3f6b0af4.js.map +1 -0
  684. package/dist/solutions-components/p-400e1427.entry.js +236 -0
  685. package/dist/solutions-components/p-400e1427.entry.js.map +1 -0
  686. package/dist/solutions-components/p-40d7cf01.entry.js +228 -0
  687. package/dist/solutions-components/p-40d7cf01.entry.js.map +1 -0
  688. package/dist/solutions-components/p-45556aff.entry.js +215 -0
  689. package/dist/solutions-components/p-45556aff.entry.js.map +1 -0
  690. package/dist/solutions-components/p-49aaa793.entry.js +95 -0
  691. package/dist/solutions-components/p-49aaa793.entry.js.map +1 -0
  692. package/dist/solutions-components/p-4e32bf8c.js +484 -1
  693. package/dist/solutions-components/p-4e32bf8c.js.map +1 -0
  694. package/dist/solutions-components/p-4e89b243.entry.js +479 -0
  695. package/dist/solutions-components/p-4e89b243.entry.js.map +1 -0
  696. package/dist/solutions-components/p-515637fb.entry.js +183 -0
  697. package/dist/solutions-components/p-515637fb.entry.js.map +1 -0
  698. package/dist/solutions-components/p-5243a654.entry.js +147 -0
  699. package/dist/solutions-components/p-5243a654.entry.js.map +1 -0
  700. package/dist/solutions-components/p-55673790.entry.js +82 -0
  701. package/dist/solutions-components/p-55673790.entry.js.map +1 -0
  702. package/dist/solutions-components/p-56350bff.js +173 -2
  703. package/dist/solutions-components/p-56350bff.js.map +1 -0
  704. package/dist/solutions-components/p-58b374c0.entry.js +347 -0
  705. package/dist/solutions-components/p-58b374c0.entry.js.map +1 -0
  706. package/dist/solutions-components/p-58c69df2.js +2024 -2
  707. package/dist/solutions-components/p-58c69df2.js.map +1 -0
  708. package/dist/solutions-components/p-59fd6684.entry.js +22 -0
  709. package/dist/solutions-components/p-59fd6684.entry.js.map +1 -0
  710. package/dist/solutions-components/p-5b0d7c7d.js +35 -16
  711. package/dist/solutions-components/p-5b0d7c7d.js.map +1 -0
  712. package/dist/solutions-components/p-5b20090f.entry.js +22189 -0
  713. package/dist/solutions-components/p-5b20090f.entry.js.map +1 -0
  714. package/dist/solutions-components/p-5cf33602.js +43 -2
  715. package/dist/solutions-components/p-5cf33602.js.map +1 -0
  716. package/dist/solutions-components/p-600e23c6.js +1770 -2
  717. package/dist/solutions-components/p-600e23c6.js.map +1 -0
  718. package/dist/solutions-components/p-61398a7b.entry.js +74 -0
  719. package/dist/solutions-components/p-61398a7b.entry.js.map +1 -0
  720. package/dist/solutions-components/p-63a05701.entry.js +45 -0
  721. package/dist/solutions-components/p-63a05701.entry.js.map +1 -0
  722. package/dist/solutions-components/p-63f6e8f1.js +16 -1
  723. package/dist/solutions-components/p-63f6e8f1.js.map +1 -0
  724. package/dist/solutions-components/p-64a2040e.entry.js +63 -0
  725. package/dist/solutions-components/p-64a2040e.entry.js.map +1 -0
  726. package/dist/solutions-components/p-64c63eb2.entry.js +157 -0
  727. package/dist/solutions-components/p-64c63eb2.entry.js.map +1 -0
  728. package/dist/solutions-components/p-6940e2fd.entry.js +100 -0
  729. package/dist/solutions-components/p-6940e2fd.entry.js.map +1 -0
  730. package/dist/solutions-components/p-69900b68.entry.js +152 -0
  731. package/dist/solutions-components/p-69900b68.entry.js.map +1 -0
  732. package/dist/solutions-components/p-699125b6.entry.js +44 -0
  733. package/dist/solutions-components/p-699125b6.entry.js.map +1 -0
  734. package/dist/solutions-components/p-6d0899c8.entry.js +118 -0
  735. package/dist/solutions-components/p-6d0899c8.entry.js.map +1 -0
  736. package/dist/solutions-components/p-6e0da576.js +15 -1
  737. package/dist/solutions-components/p-6e0da576.js.map +1 -0
  738. package/dist/solutions-components/p-6fe17794.js +11 -1
  739. package/dist/solutions-components/p-6fe17794.js.map +1 -0
  740. package/dist/solutions-components/p-708a63a8.js +14 -1
  741. package/dist/solutions-components/p-708a63a8.js.map +1 -0
  742. package/dist/solutions-components/p-729708a3.js +16 -1
  743. package/dist/solutions-components/p-729708a3.js.map +1 -0
  744. package/dist/solutions-components/p-73e23995.js +8 -1
  745. package/dist/solutions-components/p-73e23995.js.map +1 -0
  746. package/dist/solutions-components/p-75f54a34.entry.js +883 -0
  747. package/dist/solutions-components/p-75f54a34.entry.js.map +1 -0
  748. package/dist/solutions-components/p-77182c3a.js +3017 -1
  749. package/dist/solutions-components/p-77182c3a.js.map +1 -0
  750. package/dist/solutions-components/p-794ba85d.entry.js +175 -0
  751. package/dist/solutions-components/p-794ba85d.entry.js.map +1 -0
  752. package/dist/solutions-components/p-79cde78e.entry.js +203 -0
  753. package/dist/solutions-components/p-79cde78e.entry.js.map +1 -0
  754. package/dist/solutions-components/p-7a2c75a4.entry.js +230 -0
  755. package/dist/solutions-components/p-7a2c75a4.entry.js.map +1 -0
  756. package/dist/solutions-components/p-7daea1df.js +43 -1
  757. package/dist/solutions-components/p-7daea1df.js.map +1 -0
  758. package/dist/solutions-components/p-7de77097.entry.js +162 -0
  759. package/dist/solutions-components/p-7de77097.entry.js.map +1 -0
  760. package/dist/solutions-components/p-7f2b74a9.entry.js +56 -0
  761. package/dist/solutions-components/p-7f2b74a9.entry.js.map +1 -0
  762. package/dist/solutions-components/p-81e606c0.entry.js +915 -0
  763. package/dist/solutions-components/p-81e606c0.entry.js.map +1 -0
  764. package/dist/solutions-components/p-86908777.js +62 -3
  765. package/dist/solutions-components/p-86908777.js.map +1 -0
  766. package/dist/solutions-components/p-87a0ccb4.entry.js +254 -0
  767. package/dist/solutions-components/p-87a0ccb4.entry.js.map +1 -0
  768. package/dist/solutions-components/p-93d3119d.js +1950 -1
  769. package/dist/solutions-components/p-93d3119d.js.map +1 -0
  770. package/dist/solutions-components/p-958e2979.entry.js +111 -0
  771. package/dist/solutions-components/p-958e2979.entry.js.map +1 -0
  772. package/dist/solutions-components/p-95ddb529.entry.js +181 -0
  773. package/dist/solutions-components/p-95ddb529.entry.js.map +1 -0
  774. package/dist/solutions-components/p-991ee695.js +111 -1
  775. package/dist/solutions-components/p-991ee695.js.map +1 -0
  776. package/dist/solutions-components/p-99d9b624.entry.js +177 -0
  777. package/dist/solutions-components/p-99d9b624.entry.js.map +1 -0
  778. package/dist/solutions-components/p-9a9955db.js +43 -1
  779. package/dist/solutions-components/p-9a9955db.js.map +1 -0
  780. package/dist/solutions-components/p-9d925d5b.entry.js +233 -0
  781. package/dist/solutions-components/p-9d925d5b.entry.js.map +1 -0
  782. package/dist/solutions-components/p-9dc0210f.entry.js +125 -0
  783. package/dist/solutions-components/p-9dc0210f.entry.js.map +1 -0
  784. package/dist/solutions-components/p-9ef1328a.entry.js +542 -0
  785. package/dist/solutions-components/p-9ef1328a.entry.js.map +1 -0
  786. package/dist/solutions-components/p-9fec2884.entry.js +216 -0
  787. package/dist/solutions-components/p-9fec2884.entry.js.map +1 -0
  788. package/dist/solutions-components/p-a1786d11.entry.js +2380 -0
  789. package/dist/solutions-components/p-a1786d11.entry.js.map +1 -0
  790. package/dist/solutions-components/p-a2ada355.entry.js +135 -0
  791. package/dist/solutions-components/p-a2ada355.entry.js.map +1 -0
  792. package/dist/solutions-components/p-a57adb27.entry.js +154 -0
  793. package/dist/solutions-components/p-a57adb27.entry.js.map +1 -0
  794. package/dist/solutions-components/p-a80b3880.js +16 -1
  795. package/dist/solutions-components/p-a80b3880.js.map +1 -0
  796. package/dist/solutions-components/p-a88dd457.entry.js +123 -0
  797. package/dist/solutions-components/p-a88dd457.entry.js.map +1 -0
  798. package/dist/solutions-components/p-ac6efd19.entry.js +57 -0
  799. package/dist/solutions-components/p-ac6efd19.entry.js.map +1 -0
  800. package/dist/solutions-components/p-ae1fd76b.js +13 -1
  801. package/dist/solutions-components/p-ae1fd76b.js.map +1 -0
  802. package/dist/solutions-components/p-afffa81a.entry.js +140 -0
  803. package/dist/solutions-components/p-afffa81a.entry.js.map +1 -0
  804. package/dist/solutions-components/p-b0f3ed4d.entry.js +376 -0
  805. package/dist/solutions-components/p-b0f3ed4d.entry.js.map +1 -0
  806. package/dist/solutions-components/p-b359dc78.js +43 -1
  807. package/dist/solutions-components/p-b359dc78.js.map +1 -0
  808. package/dist/solutions-components/p-b66cba3e.entry.js +97 -0
  809. package/dist/solutions-components/p-b66cba3e.entry.js.map +1 -0
  810. package/dist/solutions-components/p-b6c2f470.entry.js +574 -0
  811. package/dist/solutions-components/p-b6c2f470.entry.js.map +1 -0
  812. package/dist/solutions-components/p-b978636e.js +16 -1
  813. package/dist/solutions-components/p-b978636e.js.map +1 -0
  814. package/dist/solutions-components/p-bd19837e.entry.js +96 -0
  815. package/dist/solutions-components/p-bd19837e.entry.js.map +1 -0
  816. package/dist/solutions-components/p-be8cc144.entry.js +567 -0
  817. package/dist/solutions-components/p-be8cc144.entry.js.map +1 -0
  818. package/dist/solutions-components/p-bfd20deb.entry.js +80 -0
  819. package/dist/solutions-components/p-bfd20deb.entry.js.map +1 -0
  820. package/dist/{esm/mapViewUtils-09f1e7bd.js → solutions-components/p-c20bd963.js} +3 -1
  821. package/dist/solutions-components/p-c20bd963.js.map +1 -0
  822. package/dist/solutions-components/p-c2c8442d.entry.js +140 -0
  823. package/dist/solutions-components/p-c2c8442d.entry.js.map +1 -0
  824. package/dist/solutions-components/p-c3f93cec.entry.js +158 -0
  825. package/dist/solutions-components/p-c3f93cec.entry.js.map +1 -0
  826. package/dist/solutions-components/p-c5721b0f.entry.js +127 -0
  827. package/dist/solutions-components/p-c5721b0f.entry.js.map +1 -0
  828. package/dist/solutions-components/p-c818e661.entry.js +107 -0
  829. package/dist/solutions-components/p-c818e661.entry.js.map +1 -0
  830. package/dist/solutions-components/p-c9870dc4.entry.js +38 -0
  831. package/dist/solutions-components/p-c9870dc4.entry.js.map +1 -0
  832. package/dist/solutions-components/p-cbd9fecf.js +500 -2
  833. package/dist/solutions-components/p-cbd9fecf.js.map +1 -0
  834. package/dist/solutions-components/p-cf59eb16.entry.js +2423 -0
  835. package/dist/solutions-components/p-cf59eb16.entry.js.map +1 -0
  836. package/dist/solutions-components/p-cfb300c6.entry.js +250 -0
  837. package/dist/solutions-components/p-cfb300c6.entry.js.map +1 -0
  838. package/dist/solutions-components/p-d48a24e6.js +756 -2
  839. package/dist/solutions-components/p-d48a24e6.js.map +1 -0
  840. package/dist/solutions-components/p-dbad98e8.js +124 -2
  841. package/dist/solutions-components/p-dbad98e8.js.map +1 -0
  842. package/dist/solutions-components/p-dd79118e.entry.js +708 -0
  843. package/dist/solutions-components/p-dd79118e.entry.js.map +1 -0
  844. package/dist/solutions-components/p-de5416e8.js +30 -1
  845. package/dist/solutions-components/p-de5416e8.js.map +1 -0
  846. package/dist/solutions-components/p-de881187.entry.js +87 -0
  847. package/dist/solutions-components/p-de881187.entry.js.map +1 -0
  848. package/dist/solutions-components/p-e1905f7b.entry.js +120 -0
  849. package/dist/solutions-components/p-e1905f7b.entry.js.map +1 -0
  850. package/dist/solutions-components/p-e405ebe8.entry.js +93 -0
  851. package/dist/solutions-components/p-e405ebe8.entry.js.map +1 -0
  852. package/dist/solutions-components/p-e515767a.entry.js +116 -0
  853. package/dist/solutions-components/p-e515767a.entry.js.map +1 -0
  854. package/dist/solutions-components/p-e611d8c8.js +30 -1
  855. package/dist/solutions-components/p-e611d8c8.js.map +1 -0
  856. package/dist/solutions-components/p-e6a695a5.js +103 -2
  857. package/dist/solutions-components/p-e6a695a5.js.map +1 -0
  858. package/dist/solutions-components/p-e6fb9cde.entry.js +1872 -0
  859. package/dist/solutions-components/p-e6fb9cde.entry.js.map +1 -0
  860. package/dist/solutions-components/p-e947d3b0.js +7 -1
  861. package/dist/solutions-components/p-e947d3b0.js.map +1 -0
  862. package/dist/solutions-components/p-e99b1247.js +207 -1
  863. package/dist/solutions-components/p-e99b1247.js.map +1 -0
  864. package/dist/solutions-components/p-eb5b78c3.entry.js +125 -0
  865. package/dist/solutions-components/p-eb5b78c3.entry.js.map +1 -0
  866. package/dist/solutions-components/p-eb976965.js +35 -3
  867. package/dist/solutions-components/p-eb976965.js.map +1 -0
  868. package/dist/solutions-components/p-ed075c2f.entry.js +186 -0
  869. package/dist/solutions-components/p-ed075c2f.entry.js.map +1 -0
  870. package/dist/solutions-components/p-eeb0321d.js +15 -2
  871. package/dist/solutions-components/p-eeb0321d.js.map +1 -0
  872. package/dist/solutions-components/p-ef6f9e24.entry.js +609 -0
  873. package/dist/solutions-components/p-ef6f9e24.entry.js.map +1 -0
  874. package/dist/solutions-components/p-f0294899.entry.js +84 -0
  875. package/dist/solutions-components/p-f0294899.entry.js.map +1 -0
  876. package/dist/{esm/interfaces-e2a2064d.js → solutions-components/p-f04fdb9a.js} +3 -1
  877. package/dist/solutions-components/p-f04fdb9a.js.map +1 -0
  878. package/dist/solutions-components/p-f477f146.entry.js +310 -0
  879. package/dist/solutions-components/p-f477f146.entry.js.map +1 -0
  880. package/dist/solutions-components/p-f48821a2.js +60 -7
  881. package/dist/solutions-components/p-f48821a2.js.map +1 -0
  882. package/dist/solutions-components/p-f496ed0c.entry.js +150 -0
  883. package/dist/solutions-components/p-f496ed0c.entry.js.map +1 -0
  884. package/dist/solutions-components/p-f759a6e7.js +196 -1
  885. package/dist/solutions-components/p-f759a6e7.js.map +1 -0
  886. package/dist/solutions-components/p-fc884dd6.js +30 -16
  887. package/dist/solutions-components/p-fc884dd6.js.map +1 -0
  888. package/dist/solutions-components/solutions-components.css +10531 -1
  889. package/dist/solutions-components/solutions-components.esm.js +22 -1
  890. package/dist/solutions-components/solutions-components.esm.js.map +1 -0
  891. package/dist/solutions-components/utils/solution-store.ts +3 -3
  892. package/dist/solutions-components_commit.txt +8 -6
  893. package/dist/types/components/solution-config-modal/solution-config-modal.d.ts +69 -0
  894. package/dist/types/components/solution-configuration/solution-configuration.d.ts +4 -2
  895. package/dist/types/components.d.ts +43 -5
  896. package/dist/types/preact.d.ts +4 -0
  897. package/package.json +1 -1
  898. package/dist/cjs/calcite-modal.cjs.entry.js +0 -447
  899. package/dist/cjs/calcite-panel_2.cjs.entry.js +0 -437
  900. package/dist/cjs/calcite-scrim.cjs.entry.js +0 -62
  901. package/dist/esm/calcite-modal.entry.js +0 -443
  902. package/dist/esm/calcite-panel_2.entry.js +0 -432
  903. package/dist/esm/calcite-scrim.entry.js +0 -58
  904. package/dist/solutions-components/p-006c6ae1.entry.js +0 -11
  905. package/dist/solutions-components/p-04a37fc0.entry.js +0 -6
  906. package/dist/solutions-components/p-062dbde8.entry.js +0 -6
  907. package/dist/solutions-components/p-0b941521.entry.js +0 -11
  908. package/dist/solutions-components/p-0c80eb51.entry.js +0 -11
  909. package/dist/solutions-components/p-10501e21.entry.js +0 -23
  910. package/dist/solutions-components/p-109e4684.entry.js +0 -6
  911. package/dist/solutions-components/p-12dfd43e.entry.js +0 -11
  912. package/dist/solutions-components/p-1c3bcd99.entry.js +0 -12
  913. package/dist/solutions-components/p-1c589630.entry.js +0 -6
  914. package/dist/solutions-components/p-1fb471cf.entry.js +0 -11
  915. package/dist/solutions-components/p-23275dbd.entry.js +0 -6
  916. package/dist/solutions-components/p-236d76e7.entry.js +0 -11
  917. package/dist/solutions-components/p-29246858.entry.js +0 -11
  918. package/dist/solutions-components/p-2af67c67.entry.js +0 -6
  919. package/dist/solutions-components/p-2bee764f.entry.js +0 -11
  920. package/dist/solutions-components/p-2f6b4f04.entry.js +0 -6
  921. package/dist/solutions-components/p-305ae3fe.entry.js +0 -11
  922. package/dist/solutions-components/p-343e325d.entry.js +0 -11
  923. package/dist/solutions-components/p-3485601e.entry.js +0 -6
  924. package/dist/solutions-components/p-395e9b6c.entry.js +0 -6
  925. package/dist/solutions-components/p-39c5f2d2.entry.js +0 -6
  926. package/dist/solutions-components/p-3c4f2257.entry.js +0 -11
  927. package/dist/solutions-components/p-3c8ec7a3.entry.js +0 -12
  928. package/dist/solutions-components/p-4130fbcd.entry.js +0 -11
  929. package/dist/solutions-components/p-421cbb15.entry.js +0 -6
  930. package/dist/solutions-components/p-43fa414d.entry.js +0 -11
  931. package/dist/solutions-components/p-4760f22a.entry.js +0 -6
  932. package/dist/solutions-components/p-4fb6d2cf.entry.js +0 -11
  933. package/dist/solutions-components/p-54384555.entry.js +0 -11
  934. package/dist/solutions-components/p-5493f036.entry.js +0 -6
  935. package/dist/solutions-components/p-551fd063.entry.js +0 -11
  936. package/dist/solutions-components/p-5a61ef0d.entry.js +0 -6
  937. package/dist/solutions-components/p-6a3ce8f6.entry.js +0 -6
  938. package/dist/solutions-components/p-6b9dc092.js +0 -21
  939. package/dist/solutions-components/p-6be581f5.entry.js +0 -6
  940. package/dist/solutions-components/p-6cf432f9.entry.js +0 -11
  941. package/dist/solutions-components/p-70368b2b.entry.js +0 -6
  942. package/dist/solutions-components/p-708ffad0.entry.js +0 -11
  943. package/dist/solutions-components/p-7321ba65.entry.js +0 -11
  944. package/dist/solutions-components/p-75b35018.entry.js +0 -11
  945. package/dist/solutions-components/p-764c0a90.entry.js +0 -11
  946. package/dist/solutions-components/p-77031b01.entry.js +0 -11
  947. package/dist/solutions-components/p-778a1b4a.entry.js +0 -11
  948. package/dist/solutions-components/p-7cdc6089.entry.js +0 -6
  949. package/dist/solutions-components/p-81467529.entry.js +0 -6
  950. package/dist/solutions-components/p-834380d6.entry.js +0 -11
  951. package/dist/solutions-components/p-89cc843b.entry.js +0 -11
  952. package/dist/solutions-components/p-8e3a2736.entry.js +0 -11
  953. package/dist/solutions-components/p-8e8b182f.entry.js +0 -12
  954. package/dist/solutions-components/p-8f052987.entry.js +0 -11
  955. package/dist/solutions-components/p-93790a9e.entry.js +0 -37
  956. package/dist/solutions-components/p-9bbee464.entry.js +0 -6
  957. package/dist/solutions-components/p-9bdd4abe.entry.js +0 -17
  958. package/dist/solutions-components/p-a4a7d49d.entry.js +0 -17
  959. package/dist/solutions-components/p-a7036d68.entry.js +0 -11
  960. package/dist/solutions-components/p-ac91cd40.entry.js +0 -11
  961. package/dist/solutions-components/p-acd0a09f.entry.js +0 -11
  962. package/dist/solutions-components/p-acd3b2bf.entry.js +0 -11
  963. package/dist/solutions-components/p-aea937fb.entry.js +0 -12
  964. package/dist/solutions-components/p-b1b36556.entry.js +0 -11
  965. package/dist/solutions-components/p-b25f6ebe.js +0 -257
  966. package/dist/solutions-components/p-b2ae8634.entry.js +0 -6
  967. package/dist/solutions-components/p-ba104266.entry.js +0 -11
  968. package/dist/solutions-components/p-bfcab358.entry.js +0 -11
  969. package/dist/solutions-components/p-c848d1bd.entry.js +0 -29
  970. package/dist/solutions-components/p-c9766584.entry.js +0 -6
  971. package/dist/solutions-components/p-d2cc1b94.entry.js +0 -12
  972. package/dist/solutions-components/p-d51a72d2.entry.js +0 -11
  973. package/dist/solutions-components/p-d88fe54b.entry.js +0 -18
  974. package/dist/solutions-components/p-daee23cc.entry.js +0 -11
  975. package/dist/solutions-components/p-db7d14d5.entry.js +0 -12
  976. package/dist/solutions-components/p-dc724c1d.entry.js +0 -11
  977. package/dist/solutions-components/p-dc7bc20f.entry.js +0 -11
  978. package/dist/solutions-components/p-de242ea9.entry.js +0 -6
  979. package/dist/solutions-components/p-e4ebb82a.entry.js +0 -11
  980. package/dist/solutions-components/p-e64c5c11.entry.js +0 -6
  981. package/dist/solutions-components/p-e9e47eab.entry.js +0 -6
  982. package/dist/solutions-components/p-eb3be6d4.entry.js +0 -6
  983. package/dist/solutions-components/p-ed27c151.entry.js +0 -6
  984. package/dist/solutions-components/p-ef170bb1.entry.js +0 -6
  985. package/dist/solutions-components/p-f044863f.entry.js +0 -16
  986. package/dist/solutions-components/p-f0bae2f0.entry.js +0 -37
  987. package/dist/solutions-components/p-f5a3b34f.entry.js +0 -23
  988. package/dist/solutions-components/p-fa2575c2.entry.js +0 -6
  989. package/dist/solutions-components/p-fe0fdd8b.js +0 -36
@@ -0,0 +1,2380 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ import { r as registerInstance, c as createEvent, h, F as Fragment, g as getElement, f as forceUpdate, H as Host } from './p-58c69df2.js';
7
+ import { S as SLOTS$4, C as CSS$3, I as ICONS$1, T as TEXT$1, H as HEADING_LEVEL } from './p-b359dc78.js';
8
+ import { b as getElementDir, t as toAriaBoolean, a as getSlotted, i as isPrimaryPointerButton, n as nodeListToArray, l as filterDirectChildren, g as getElementProp } from './p-32a67cb2.js';
9
+ import { H as Heading } from './p-eeb0321d.js';
10
+ import { S as SLOTS$5 } from './p-6e0da576.js';
11
+ import { u as updateHostInteraction } from './p-7daea1df.js';
12
+ import { c as createObserver } from './p-9a9955db.js';
13
+ import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './p-5cf33602.js';
14
+ import { c as clamp } from './p-63f6e8f1.js';
15
+ import { g as guid } from './p-a80b3880.js';
16
+ import { S as Sortable } from './p-77182c3a.js';
17
+ import { o as getItemIndex, m as mutationObserverCallback, d as deselectRemovedItems, a as deselectSiblingItems, s as selectSiblings, h as handleFilter, g as getItemData, k as keyDownHandler, p as moveItemIndex, i as initialize, b as initializeObserver, c as cleanUpObserver, j as calciteListFocusOutHandler, r as removeItem, e as calciteListItemChangeHandler, f as calciteInternalListItemValueChangeHandler, l as setUpItems, n as setFocus, L as List } from './p-13b37f05.js';
18
+ import { I as ICON_TYPES$1 } from './p-b978636e.js';
19
+ import { C as CSS$4, S as SLOTS$6 } from './p-de5416e8.js';
20
+ import { g as getLocaleComponentStrings } from './p-20bdf42f.js';
21
+ import './p-729708a3.js';
22
+ import './p-e947d3b0.js';
23
+ import './p-ae1fd76b.js';
24
+ import './p-4e32bf8c.js';
25
+ import './p-3b010ce1.js';
26
+
27
+ const panelCss = "@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:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.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}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}: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-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{position:relative;display:flex;inline-size:100%;flex:1 1 auto;overflow:hidden;--calcite-min-header-height:calc(var(--calcite-icon-size) * 3);--calcite-panel-max-height:unset;--calcite-panel-width:100%;--calcite-panel-min-width:unset;--calcite-panel-max-width:unset}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.header{margin:0px;display:flex;align-content:space-between;align-items:center;fill:var(--calcite-ui-text-2);color:var(--calcite-ui-text-2)}.heading{margin:0px;padding:0px;font-weight:var(--calcite-font-weight-medium)}.header .heading{flex:1 1 auto;padding:0.5rem}.container{margin:0px;display:flex;inline-size:100%;flex:1 1 auto;flex-direction:column;align-items:stretch;background-color:var(--calcite-ui-background);padding:0px;max-block-size:var(--calcite-panel-max-height);inline-size:var(--calcite-panel-width);max-inline-size:var(--calcite-panel-max-width);min-inline-size:var(--calcite-panel-min-width);transition:max-block-size var(--calcite-animation-timing), inline-size var(--calcite-animation-timing)}:host([height-scale=s]){--calcite-panel-max-height:40vh}:host([height-scale=m]){--calcite-panel-max-height:60vh}:host([height-scale=l]){--calcite-panel-max-height:80vh}:host([width-scale=s]){--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 12vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 300px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 150px)}:host([width-scale=m]){--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 20vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 420px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 240px)}:host([width-scale=l]){--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 45vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 680px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 340px)}.container[hidden]{display:none}.header{-webkit-border-after:1px solid;border-block-end:1px solid;position:sticky;inset-block-start:0px;z-index:400;inline-size:100%;align-items:stretch;justify-content:flex-start;background-color:var(--calcite-ui-foreground-1);border-block-end-color:var(--calcite-ui-border-3);flex:0 0 auto}.header-content{display:flex;flex-direction:column;overflow:hidden;padding-inline:0.75rem;padding-block:0.875rem;-webkit-margin-end:auto;margin-inline-end:auto}.header-content .heading,.header-content .description{display:block;overflow-wrap:break-word;padding:0px}.header-content .heading{margin-inline:0px;margin-block:0px 0.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-medium)}.header-content .heading:only-child{-webkit-margin-after:0px;margin-block-end:0px}.header-content .description{font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-ui-text-2)}.back-button{border-width:0px;border-style:solid;border-color:var(--calcite-ui-border-3);border-inline-end-width:1px}.header-actions{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:stretch}.header-actions--end{-webkit-margin-start:auto;margin-inline-start:auto}.content-wrapper{overflow:auto}.content-height{block-size:100%}.content-container{display:flex;flex:1 1 auto;flex-direction:column;flex-wrap:nowrap;align-items:stretch;background-color:var(--calcite-ui-background)}.footer{-webkit-border-before:1px solid;border-block-start:1px solid;position:sticky;inset-block-end:0px;display:flex;inline-size:100%;justify-content:space-evenly;background-color:var(--calcite-ui-foreground-1);border-block-start-color:var(--calcite-ui-border-3);flex:0 0 auto;min-block-size:3rem;padding:0.5rem}.fab-container{position:sticky;inset-block-end:0px;z-index:300;margin-block:0px;margin-inline:auto;display:block;padding:0.5rem;inset-inline:0;inline-size:-moz-fit-content;inline-size:fit-content}[hidden]{display:none}";
28
+
29
+ const Panel = class {
30
+ constructor(hostRef) {
31
+ registerInstance(this, hostRef);
32
+ this.calcitePanelClose = createEvent(this, "calcitePanelClose", 6);
33
+ this.calcitePanelDismiss = createEvent(this, "calcitePanelDismiss", 6);
34
+ this.calcitePanelDismissedChange = createEvent(this, "calcitePanelDismissedChange", 6);
35
+ this.calcitePanelScroll = createEvent(this, "calcitePanelScroll", 6);
36
+ this.calcitePanelBackClick = createEvent(this, "calcitePanelBackClick", 6);
37
+ // --------------------------------------------------------------------------
38
+ //
39
+ // Properties
40
+ //
41
+ // --------------------------------------------------------------------------
42
+ /**
43
+ * When `true`, hides the component.
44
+ *
45
+ * @deprecated use `closed` instead.
46
+ */
47
+ this.dismissed = false;
48
+ /** When `true`, the component will be hidden. */
49
+ this.closed = false;
50
+ /**
51
+ * When `true`, interaction is prevented and the component is displayed with lower opacity.
52
+ */
53
+ this.disabled = false;
54
+ /**
55
+ * When `true`, a close button is added to the component.
56
+ *
57
+ * @deprecated use `closable` instead
58
+ */
59
+ this.dismissible = false;
60
+ /** When `true`, displays a close button in the trailing side of the header. */
61
+ this.closable = false;
62
+ /**
63
+ * When `true`, displays a back button in the header.
64
+ *
65
+ * @deprecated use `calcite-flow-item` instead.
66
+ */
67
+ this.showBackButton = false;
68
+ /**
69
+ * When `true`, a busy indicator is displayed.
70
+ */
71
+ this.loading = false;
72
+ /**
73
+ * When `true`, the action menu items in the `header-menu-actions` slot are open.
74
+ */
75
+ this.menuOpen = false;
76
+ this.resizeObserver = createObserver("resize", () => this.resizeHandler());
77
+ this.hasStartActions = false;
78
+ this.hasEndActions = false;
79
+ this.hasMenuItems = false;
80
+ this.hasHeaderContent = false;
81
+ this.hasFooterContent = false;
82
+ this.hasFooterActions = false;
83
+ this.hasFab = false;
84
+ // --------------------------------------------------------------------------
85
+ //
86
+ // Private Methods
87
+ //
88
+ // --------------------------------------------------------------------------
89
+ this.resizeHandler = () => {
90
+ const { panelScrollEl } = this;
91
+ if (!panelScrollEl ||
92
+ typeof panelScrollEl.scrollHeight !== "number" ||
93
+ typeof panelScrollEl.offsetHeight !== "number") {
94
+ return;
95
+ }
96
+ panelScrollEl.tabIndex = panelScrollEl.scrollHeight > panelScrollEl.offsetHeight ? 0 : -1;
97
+ };
98
+ this.setContainerRef = (node) => {
99
+ this.containerEl = node;
100
+ };
101
+ this.setCloseRef = (node) => {
102
+ this.closeButtonEl = node;
103
+ };
104
+ this.setBackRef = (node) => {
105
+ this.backButtonEl = node;
106
+ };
107
+ this.panelKeyDownHandler = (event) => {
108
+ if (this.closable && event.key === "Escape" && !event.defaultPrevented) {
109
+ this.close();
110
+ event.preventDefault();
111
+ }
112
+ };
113
+ this.close = () => {
114
+ this.closed = true;
115
+ this.calcitePanelDismiss.emit();
116
+ this.calcitePanelClose.emit();
117
+ };
118
+ this.panelScrollHandler = () => {
119
+ this.calcitePanelScroll.emit();
120
+ };
121
+ this.backButtonClick = () => {
122
+ this.calcitePanelBackClick.emit();
123
+ };
124
+ this.handleHeaderActionsStartSlotChange = (event) => {
125
+ const elements = event.target.assignedElements({
126
+ flatten: true
127
+ });
128
+ this.hasStartActions = !!elements.length;
129
+ };
130
+ this.handleHeaderActionsEndSlotChange = (event) => {
131
+ const elements = event.target.assignedElements({
132
+ flatten: true
133
+ });
134
+ this.hasEndActions = !!elements.length;
135
+ };
136
+ this.handleHeaderMenuActionsSlotChange = (event) => {
137
+ const elements = event.target.assignedElements({
138
+ flatten: true
139
+ });
140
+ this.hasMenuItems = !!elements.length;
141
+ };
142
+ this.handleHeaderContentSlotChange = (event) => {
143
+ const elements = event.target.assignedElements({
144
+ flatten: true
145
+ });
146
+ this.hasHeaderContent = !!elements.length;
147
+ };
148
+ this.handleFooterSlotChange = (event) => {
149
+ const elements = event.target.assignedElements({
150
+ flatten: true
151
+ });
152
+ this.hasFooterContent = !!elements.length;
153
+ };
154
+ this.handleFooterActionsSlotChange = (event) => {
155
+ const elements = event.target.assignedElements({
156
+ flatten: true
157
+ });
158
+ this.hasFooterActions = !!elements.length;
159
+ };
160
+ this.handleFabSlotChange = (event) => {
161
+ const elements = event.target.assignedElements({
162
+ flatten: true
163
+ });
164
+ this.hasFab = !!elements.length;
165
+ };
166
+ this.setPanelScrollEl = (el) => {
167
+ var _a, _b;
168
+ this.panelScrollEl = el;
169
+ (_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
170
+ if (el) {
171
+ (_b = this.resizeObserver) === null || _b === void 0 ? void 0 : _b.observe(el);
172
+ this.resizeHandler();
173
+ }
174
+ };
175
+ }
176
+ dismissedHandler(value) {
177
+ this.closed = value;
178
+ this.calcitePanelDismissedChange.emit();
179
+ }
180
+ closedHandler(value) {
181
+ this.dismissed = value;
182
+ }
183
+ dismissibleHandler(value) {
184
+ this.closable = value;
185
+ }
186
+ closableHandler(value) {
187
+ this.dismissible = value;
188
+ }
189
+ //--------------------------------------------------------------------------
190
+ //
191
+ // Lifecycle
192
+ //
193
+ //--------------------------------------------------------------------------
194
+ componentDidRender() {
195
+ updateHostInteraction(this);
196
+ }
197
+ // --------------------------------------------------------------------------
198
+ //
199
+ // Lifecycle
200
+ //
201
+ // --------------------------------------------------------------------------
202
+ connectedCallback() {
203
+ const isClosed = this.dismissed || this.closed;
204
+ const isClosable = this.dismissible || this.closable;
205
+ if (isClosed) {
206
+ this.dismissedHandler(isClosed);
207
+ this.closedHandler(isClosed);
208
+ }
209
+ if (isClosable) {
210
+ this.dismissibleHandler(isClosable);
211
+ this.closableHandler(isClosable);
212
+ }
213
+ }
214
+ disconnectedCallback() {
215
+ var _a;
216
+ (_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
217
+ }
218
+ // --------------------------------------------------------------------------
219
+ //
220
+ // Methods
221
+ //
222
+ // --------------------------------------------------------------------------
223
+ /**
224
+ * Sets focus on the component.
225
+ *
226
+ * @param focusId
227
+ */
228
+ async setFocus(focusId) {
229
+ const { backButtonEl, closeButtonEl, containerEl } = this;
230
+ if (focusId === "back-button") {
231
+ backButtonEl === null || backButtonEl === void 0 ? void 0 : backButtonEl.setFocus();
232
+ return;
233
+ }
234
+ if (focusId === "dismiss-button") {
235
+ closeButtonEl === null || closeButtonEl === void 0 ? void 0 : closeButtonEl.setFocus();
236
+ return;
237
+ }
238
+ if (backButtonEl) {
239
+ backButtonEl.setFocus();
240
+ return;
241
+ }
242
+ if (closeButtonEl) {
243
+ closeButtonEl.setFocus();
244
+ return;
245
+ }
246
+ containerEl === null || containerEl === void 0 ? void 0 : containerEl.focus();
247
+ }
248
+ /**
249
+ * Scrolls the component's content to a specified set of coordinates.
250
+ *
251
+ * @example
252
+ * myCalciteFlowItem.scrollContentTo({
253
+ * left: 0, // Specifies the number of pixels along the X axis to scroll the window or element.
254
+ * top: 0, // Specifies the number of pixels along the Y axis to scroll the window or element
255
+ * behavior: "auto" // Specifies whether the scrolling should animate smoothly (smooth), or happen instantly in a single jump (auto, the default value).
256
+ * });
257
+ * @param options
258
+ */
259
+ async scrollContentTo(options) {
260
+ var _a;
261
+ (_a = this.panelScrollEl) === null || _a === void 0 ? void 0 : _a.scrollTo(options);
262
+ }
263
+ // --------------------------------------------------------------------------
264
+ //
265
+ // Render Methods
266
+ //
267
+ // --------------------------------------------------------------------------
268
+ renderBackButton() {
269
+ const { el } = this;
270
+ const rtl = getElementDir(el) === "rtl";
271
+ const { showBackButton, intlBack, backButtonClick } = this;
272
+ const label = intlBack || TEXT$1.back;
273
+ const icon = rtl ? ICONS$1.backRight : ICONS$1.backLeft;
274
+ return showBackButton ? (h("calcite-action", { "aria-label": label, class: CSS$3.backButton, icon: icon, key: "back-button", onClick: backButtonClick, ref: this.setBackRef, scale: "s", slot: SLOTS$4.headerActionsStart, text: label })) : null;
275
+ }
276
+ renderHeaderContent() {
277
+ const { heading, headingLevel, summary, description, hasHeaderContent } = this;
278
+ const headingNode = heading ? (h(Heading, { class: CSS$3.heading, level: headingLevel || HEADING_LEVEL }, heading)) : null;
279
+ const descriptionNode = description || summary ? h("span", { class: CSS$3.description }, description || summary) : null;
280
+ return !hasHeaderContent && (headingNode || descriptionNode) ? (h("div", { class: CSS$3.headerContent, key: "header-content" }, headingNode, descriptionNode)) : null;
281
+ }
282
+ /**
283
+ * Allows user to override the entire header-content node.
284
+ */
285
+ renderHeaderSlottedContent() {
286
+ return (h("div", { class: CSS$3.headerContent, hidden: !this.hasHeaderContent, key: "slotted-header-content" }, h("slot", { name: SLOTS$4.headerContent, onSlotchange: this.handleHeaderContentSlotChange })));
287
+ }
288
+ renderHeaderStartActions() {
289
+ const { hasStartActions } = this;
290
+ return (h("div", { class: { [CSS$3.headerActionsStart]: true, [CSS$3.headerActions]: true }, hidden: !hasStartActions, key: "header-actions-start" }, h("slot", { name: SLOTS$4.headerActionsStart, onSlotchange: this.handleHeaderActionsStartSlotChange })));
291
+ }
292
+ renderHeaderActionsEnd() {
293
+ const { close, hasEndActions, intlClose, closable } = this;
294
+ const text = intlClose || TEXT$1.close;
295
+ const closableNode = closable ? (h("calcite-action", { "aria-label": text, icon: ICONS$1.close, onClick: close, ref: this.setCloseRef, text: text })) : null;
296
+ const slotNode = (h("slot", { name: SLOTS$4.headerActionsEnd, onSlotchange: this.handleHeaderActionsEndSlotChange }));
297
+ const showContainer = hasEndActions || closableNode;
298
+ return (h("div", { class: { [CSS$3.headerActionsEnd]: true, [CSS$3.headerActions]: true }, hidden: !showContainer, key: "header-actions-end" }, slotNode, closableNode));
299
+ }
300
+ renderMenu() {
301
+ const { hasMenuItems, intlOptions, menuOpen } = this;
302
+ return (h("calcite-action-menu", { flipPlacements: ["top", "bottom"], hidden: !hasMenuItems, key: "menu", label: intlOptions || TEXT$1.options, open: menuOpen, placement: "bottom-end" }, h("calcite-action", { icon: ICONS$1.menu, slot: SLOTS$5.trigger, text: intlOptions || TEXT$1.options }), h("slot", { name: SLOTS$4.headerMenuActions, onSlotchange: this.handleHeaderMenuActionsSlotChange })));
303
+ }
304
+ renderHeaderNode() {
305
+ const { showBackButton, hasHeaderContent, hasStartActions, hasEndActions, closable, hasMenuItems } = this;
306
+ const headerContentNode = this.renderHeaderContent();
307
+ const showHeader = showBackButton ||
308
+ hasHeaderContent ||
309
+ headerContentNode ||
310
+ hasStartActions ||
311
+ hasEndActions ||
312
+ closable ||
313
+ hasMenuItems;
314
+ return (h("header", { class: CSS$3.header, hidden: !showHeader }, this.renderBackButton(), this.renderHeaderStartActions(), this.renderHeaderSlottedContent(), headerContentNode, this.renderHeaderActionsEnd(), this.renderMenu()));
315
+ }
316
+ renderFooterNode() {
317
+ const { hasFooterContent, hasFooterActions } = this;
318
+ const showFooter = hasFooterContent || hasFooterActions;
319
+ return (h("footer", { class: CSS$3.footer, hidden: !showFooter }, h("slot", { key: "footer-slot", name: SLOTS$4.footer, onSlotchange: this.handleFooterSlotChange }), h("slot", { key: "footer-actions-slot", name: SLOTS$4.footerActions, onSlotchange: this.handleFooterActionsSlotChange })));
320
+ }
321
+ renderContent() {
322
+ const { hasFab } = this;
323
+ const defaultSlotNode = h("slot", { key: "default-slot" });
324
+ const containerNode = hasFab ? (h("section", { class: CSS$3.contentContainer }, defaultSlotNode)) : (defaultSlotNode);
325
+ return (h("div", { class: {
326
+ [CSS$3.contentWrapper]: true,
327
+ [CSS$3.contentContainer]: !hasFab,
328
+ [CSS$3.contentHeight]: hasFab
329
+ }, onScroll: this.panelScrollHandler, ref: this.setPanelScrollEl }, containerNode, this.renderFab()));
330
+ }
331
+ renderFab() {
332
+ return (h("div", { class: CSS$3.fabContainer, hidden: !this.hasFab }, h("slot", { name: SLOTS$4.fab, onSlotchange: this.handleFabSlotChange })));
333
+ }
334
+ render() {
335
+ const { loading, panelKeyDownHandler, closed, closable } = this;
336
+ const panelNode = (h("article", { "aria-busy": toAriaBoolean(loading), class: CSS$3.container, hidden: closed, onKeyDown: panelKeyDownHandler, ref: this.setContainerRef, tabIndex: closable ? 0 : -1 }, this.renderHeaderNode(), this.renderContent(), this.renderFooterNode()));
337
+ return (h(Fragment, null, loading ? h("calcite-scrim", { loading: loading }) : null, panelNode));
338
+ }
339
+ get el() { return getElement(this); }
340
+ static get watchers() { return {
341
+ "dismissed": ["dismissedHandler"],
342
+ "closed": ["closedHandler"],
343
+ "dismissible": ["dismissibleHandler"],
344
+ "closable": ["closableHandler"]
345
+ }; }
346
+ };
347
+ Panel.style = panelCss;
348
+
349
+ /*!
350
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
351
+ * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
352
+ * v1.0.0-beta.97
353
+ */
354
+ const CSS$2 = {
355
+ main: "main",
356
+ mainReversed: "main--reversed",
357
+ content: "content",
358
+ contentBehind: "content--behind",
359
+ footer: "footer"
360
+ };
361
+ const SLOTS$3 = {
362
+ centerRow: "center-row",
363
+ primaryPanel: "primary-panel",
364
+ contextualPanel: "contextual-panel",
365
+ panelStart: "panel-start",
366
+ panelEnd: "panel-end",
367
+ header: "header",
368
+ footer: "footer"
369
+ };
370
+
371
+ const shellCss = "@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:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.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}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}: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-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:absolute;inset:0px;display:flex;block-size:100%;inline-size:100%;flex-direction:column;overflow:hidden;--calcite-shell-tip-spacing:26vw}.main{position:relative;display:flex;block-size:100%;inline-size:100%;flex:1 1 auto;flex-direction:row;justify-content:space-between;overflow:hidden}.main--reversed{flex-direction:row-reverse}.content{display:flex;block-size:100%;inline-size:100%;flex-direction:column;flex-wrap:nowrap;overflow:auto}.content ::slotted(calcite-shell-center-row),.content ::slotted(calcite-panel),.content ::slotted(calcite-flow){flex:1 1 auto;align-self:stretch;max-block-size:unset}.content--behind{position:absolute;inset:0px;border-width:0px;z-index:calc(1 - 1);display:initial}::slotted(calcite-shell-center-row){inline-size:unset}::slotted(.header .heading){font-size:var(--calcite-font-size--2);line-height:1.375;font-weight:var(--calcite-font-weight-normal)}slot[name=panel-end]::slotted(calcite-shell-panel){-webkit-margin-start:auto;margin-inline-start:auto}::slotted(calcite-shell-panel),::slotted(calcite-shell-center-row){position:relative;z-index:1}::slotted(calcite-panel),::slotted(calcite-flow){border-width:1px;border-inline-start-width:0px;border-inline-end-width:0px;border-style:solid;border-color:var(--calcite-ui-border-3)}slot[name=center-row]::slotted(calcite-shell-center-row:not([detached])){border-inline-start-width:1px;border-inline-end-width:1px;border-color:var(--calcite-ui-border-3)}::slotted(calcite-tip-manager){position:absolute;z-index:500;box-sizing:border-box}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}::slotted(calcite-tip-manager){animation:in-up var(--calcite-internal-animation-timing-slow) ease-in-out;border-radius:0.25rem;--tw-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);inset-block-end:0.5rem;inset-inline:var(--calcite-shell-tip-spacing)}";
372
+
373
+ const Shell = class {
374
+ constructor(hostRef) {
375
+ registerInstance(this, hostRef);
376
+ // --------------------------------------------------------------------------
377
+ //
378
+ // Properties
379
+ //
380
+ // --------------------------------------------------------------------------
381
+ /**
382
+ * Positions the center content behind any `calcite-shell-panel`s.
383
+ */
384
+ this.contentBehind = false;
385
+ }
386
+ // --------------------------------------------------------------------------
387
+ //
388
+ // Lifecycle
389
+ //
390
+ // --------------------------------------------------------------------------
391
+ connectedCallback() {
392
+ connectConditionalSlotComponent(this);
393
+ }
394
+ disconnectedCallback() {
395
+ disconnectConditionalSlotComponent(this);
396
+ }
397
+ // --------------------------------------------------------------------------
398
+ //
399
+ // Render Methods
400
+ //
401
+ // --------------------------------------------------------------------------
402
+ renderHeader() {
403
+ const hasHeader = !!getSlotted(this.el, SLOTS$3.header);
404
+ return hasHeader ? h("slot", { key: "header", name: SLOTS$3.header }) : null;
405
+ }
406
+ renderContent() {
407
+ const defaultSlotNode = h("slot", { key: "default-slot" });
408
+ const centerRowSlotNode = h("slot", { key: "center-row-slot", name: SLOTS$3.centerRow });
409
+ const contentContainerKey = "content-container";
410
+ const content = !!this.contentBehind
411
+ ? [
412
+ h("div", { class: {
413
+ [CSS$2.content]: true,
414
+ [CSS$2.contentBehind]: true
415
+ }, key: contentContainerKey }, defaultSlotNode),
416
+ centerRowSlotNode
417
+ ]
418
+ : [
419
+ h("div", { class: CSS$2.content, key: contentContainerKey }, defaultSlotNode, centerRowSlotNode)
420
+ ];
421
+ return content;
422
+ }
423
+ renderFooter() {
424
+ const hasFooter = !!getSlotted(this.el, SLOTS$3.footer);
425
+ return hasFooter ? (h("div", { class: CSS$2.footer, key: "footer" }, h("slot", { name: SLOTS$3.footer }))) : null;
426
+ }
427
+ renderMain() {
428
+ const primaryPanel = getSlotted(this.el, SLOTS$3.primaryPanel);
429
+ const mainClasses = {
430
+ [CSS$2.main]: true,
431
+ [CSS$2.mainReversed]: (primaryPanel === null || primaryPanel === void 0 ? void 0 : primaryPanel.position) === "end"
432
+ };
433
+ return (h("div", { class: mainClasses }, h("slot", { name: SLOTS$3.primaryPanel }), h("slot", { name: SLOTS$3.panelStart }), this.renderContent(), h("slot", { name: SLOTS$3.panelEnd }), h("slot", { name: SLOTS$3.contextualPanel })));
434
+ }
435
+ render() {
436
+ return (h(Fragment, null, this.renderHeader(), this.renderMain(), this.renderFooter()));
437
+ }
438
+ get el() { return getElement(this); }
439
+ };
440
+ Shell.style = shellCss;
441
+
442
+ /*!
443
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
444
+ * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
445
+ * v1.0.0-beta.97
446
+ */
447
+ const CSS$1 = {
448
+ container: "container",
449
+ content: "content",
450
+ contentHeader: "content__header",
451
+ contentBody: "content__body",
452
+ contentDetached: "content--detached",
453
+ separator: "separator"
454
+ };
455
+ const SLOTS$2 = {
456
+ actionBar: "action-bar",
457
+ header: "header"
458
+ };
459
+ const TEXT = {
460
+ resize: "Resize"
461
+ };
462
+
463
+ const shellPanelCss = "@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:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.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}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{pointer-events:none;display:flex;flex:0 1 auto;align-items:stretch;--calcite-shell-panel-detached-max-height:unset}.container{pointer-events:none;box-sizing:border-box;display:flex;flex:1 1 auto;align-items:stretch;background-color:transparent;font-size:var(--calcite-font-size--1);color:var(--calcite-ui-text-2)}.container *{box-sizing:border-box}:host(:hover) .separator:not(:hover):not(:focus),:host(:focus-within) .separator:not(:hover):not(:focus){opacity:1;background-color:var(--calcite-ui-border-3)}.separator{pointer-events:auto;position:absolute;inset-block:0px;display:flex;block-size:100%;inline-size:0.125rem;background-color:transparent;opacity:0;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;cursor:col-resize;outline:none}.separator:hover{opacity:1;background-color:var(--calcite-ui-border-2)}.separator:focus{background-color:var(--calcite-ui-brand);opacity:1}:host([position=start]) .separator{inset-inline-end:-2px}:host([position=end]) .separator{inset-inline-start:-2px}::slotted(calcite-panel),::slotted(calcite-flow){block-size:100%;inline-size:100%;flex:1 1 auto;max-block-size:unset;max-inline-size:unset}::slotted(.calcite-match-height){display:flex;flex:1 1 auto;overflow:hidden}.content{pointer-events:auto;display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;align-self:stretch;background-color:var(--calcite-ui-background);padding:0px;inline-size:var(--calcite-shell-panel-width);max-inline-size:var(--calcite-shell-panel-max-width);min-inline-size:var(--calcite-shell-panel-min-width);transition:max-block-size var(--calcite-animation-timing), max-inline-size var(--calcite-animation-timing)}.content__header{display:flex;flex:0 1 auto;flex-direction:column;flex-wrap:nowrap;align-items:stretch}.content__body{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}:host([width-scale=s]) .content{--calcite-shell-panel-width:calc(var(--calcite-panel-width-multiplier) * 12vw);--calcite-shell-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 300px);--calcite-shell-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 150px)}:host([width-scale=m]) .content{--calcite-shell-panel-width:calc(var(--calcite-panel-width-multiplier) * 20vw);--calcite-shell-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 420px);--calcite-shell-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 240px)}:host([width-scale=l]) .content{--calcite-shell-panel-width:calc(var(--calcite-panel-width-multiplier) * 45vw);--calcite-shell-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 680px);--calcite-shell-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 340px)}:host([detached-height-scale=s]) .content--detached{--calcite-shell-panel-detached-max-height:40vh}:host([detached-height-scale=m]) .content--detached{--calcite-shell-panel-detached-max-height:60vh}:host([detached-height-scale=l]) .content--detached{--calcite-shell-panel-detached-max-height:80vh}.content--detached{margin-inline:0.5rem;margin-block:0.5rem auto;block-size:auto;overflow:hidden;border-radius:0.25rem;--tw-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);--tw-shadow-colored:0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);max-block-size:var(--calcite-shell-panel-detached-max-height)}.content--detached ::slotted(calcite-panel),.content--detached ::slotted(calcite-flow){max-block-size:unset}:host([position=start]) .content--detached ::slotted(calcite-panel),:host([position=start]) .content--detached ::slotted(calcite-flow),:host([position=end]) .content--detached ::slotted(calcite-panel),:host([position=end]) .content--detached ::slotted(calcite-flow){border-style:none}.content[hidden]{display:none}slot[name=action-bar]::slotted(calcite-action-bar),.content ::slotted(calcite-flow),.content ::slotted(calcite-panel:not([dismissed])){border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}:host([position=start]) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=start]) .content ::slotted(calcite-flow),:host([position=start]) .content ::slotted(calcite-panel){-webkit-border-start:none;border-inline-start:none}:host([position=end]) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=end]) .content ::slotted(calcite-flow),:host([position=end]) .content ::slotted(calcite-panel){-webkit-border-end:none;border-inline-end:none}";
464
+
465
+ const ShellPanel = class {
466
+ constructor(hostRef) {
467
+ registerInstance(this, hostRef);
468
+ this.calciteShellPanelToggle = createEvent(this, "calciteShellPanelToggle", 6);
469
+ // --------------------------------------------------------------------------
470
+ //
471
+ // Properties
472
+ //
473
+ // --------------------------------------------------------------------------
474
+ /**
475
+ * When `true`, hides the component's content area.
476
+ */
477
+ this.collapsed = false;
478
+ /**
479
+ * When `true`, the content area displays like a floating panel.
480
+ */
481
+ this.detached = false;
482
+ /**
483
+ * When `detached`, specifies the maximum height of the component.
484
+ */
485
+ this.detachedHeightScale = "l";
486
+ /**
487
+ * Specifies the width of the component's content area.
488
+ */
489
+ this.widthScale = "m";
490
+ /**
491
+ * Accessible name for the resize separator.
492
+ *
493
+ * @default "Resize"
494
+ */
495
+ this.intlResize = TEXT.resize;
496
+ /**
497
+ * When `true` and not `detached`, the component's content area is resizable.
498
+ */
499
+ this.resizable = false;
500
+ this.contentWidth = null;
501
+ this.initialContentWidth = null;
502
+ this.initialClientX = null;
503
+ this.contentWidthMax = null;
504
+ this.contentWidthMin = null;
505
+ this.step = 1;
506
+ this.stepMultiplier = 10;
507
+ this.storeContentEl = (contentEl) => {
508
+ this.contentEl = contentEl;
509
+ };
510
+ this.getKeyAdjustedWidth = (event) => {
511
+ const { key } = event;
512
+ const { el, step, stepMultiplier, contentWidthMin, contentWidthMax, initialContentWidth, position } = this;
513
+ const multipliedStep = step * stepMultiplier;
514
+ const MOVEMENT_KEYS = [
515
+ "ArrowUp",
516
+ "ArrowDown",
517
+ "ArrowLeft",
518
+ "ArrowRight",
519
+ "Home",
520
+ "End",
521
+ "PageUp",
522
+ "PageDown"
523
+ ];
524
+ if (MOVEMENT_KEYS.indexOf(key) > -1) {
525
+ event.preventDefault();
526
+ }
527
+ const dir = getElementDir(el);
528
+ const directionKeys = ["ArrowLeft", "ArrowRight"];
529
+ const directionFactor = dir === "rtl" && directionKeys.includes(key) ? -1 : 1;
530
+ const increaseKeys = key === "ArrowUp" ||
531
+ (position === "end" ? key === directionKeys[0] : key === directionKeys[1]);
532
+ if (increaseKeys) {
533
+ const stepValue = event.shiftKey ? multipliedStep : step;
534
+ return initialContentWidth + directionFactor * stepValue;
535
+ }
536
+ const decreaseKeys = key === "ArrowDown" ||
537
+ (position === "end" ? key === directionKeys[1] : key === directionKeys[0]);
538
+ if (decreaseKeys) {
539
+ const stepValue = event.shiftKey ? multipliedStep : step;
540
+ return initialContentWidth - directionFactor * stepValue;
541
+ }
542
+ if (typeof contentWidthMin === "number" && key === "Home") {
543
+ return contentWidthMin;
544
+ }
545
+ if (typeof contentWidthMax === "number" && key === "End") {
546
+ return contentWidthMax;
547
+ }
548
+ if (key === "PageDown") {
549
+ return initialContentWidth - multipliedStep;
550
+ }
551
+ if (key === "PageUp") {
552
+ return initialContentWidth + multipliedStep;
553
+ }
554
+ return null;
555
+ };
556
+ this.separatorKeyDown = (event) => {
557
+ this.setInitialContentWidth();
558
+ const width = this.getKeyAdjustedWidth(event);
559
+ if (typeof width === "number") {
560
+ this.setContentWidth(width);
561
+ }
562
+ };
563
+ this.separatorPointerMove = (event) => {
564
+ event.preventDefault();
565
+ const { el, initialContentWidth, position, initialClientX } = this;
566
+ const offset = event.clientX - initialClientX;
567
+ const dir = getElementDir(el);
568
+ const adjustmentDirection = dir === "rtl" ? -1 : 1;
569
+ const adjustedOffset = position === "end" ? -adjustmentDirection * offset : adjustmentDirection * offset;
570
+ const width = initialContentWidth + adjustedOffset;
571
+ this.setContentWidth(width);
572
+ };
573
+ this.separatorPointerUp = (event) => {
574
+ if (!isPrimaryPointerButton(event)) {
575
+ return;
576
+ }
577
+ event.preventDefault();
578
+ document.removeEventListener("pointerup", this.separatorPointerUp);
579
+ document.removeEventListener("pointermove", this.separatorPointerMove);
580
+ };
581
+ this.setInitialContentWidth = () => {
582
+ var _a;
583
+ this.initialContentWidth = (_a = this.contentEl) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().width;
584
+ };
585
+ this.separatorPointerDown = (event) => {
586
+ if (!isPrimaryPointerButton(event)) {
587
+ return;
588
+ }
589
+ event.preventDefault();
590
+ const { separatorEl } = this;
591
+ separatorEl && document.activeElement !== separatorEl && separatorEl.focus();
592
+ this.setInitialContentWidth();
593
+ this.initialClientX = event.clientX;
594
+ document.addEventListener("pointerup", this.separatorPointerUp);
595
+ document.addEventListener("pointermove", this.separatorPointerMove);
596
+ };
597
+ this.connectSeparator = (separatorEl) => {
598
+ this.disconnectSeparator();
599
+ this.separatorEl = separatorEl;
600
+ separatorEl.addEventListener("pointerdown", this.separatorPointerDown);
601
+ };
602
+ this.disconnectSeparator = () => {
603
+ var _a;
604
+ (_a = this.separatorEl) === null || _a === void 0 ? void 0 : _a.removeEventListener("pointerdown", this.separatorPointerDown);
605
+ };
606
+ }
607
+ watchHandler() {
608
+ this.calciteShellPanelToggle.emit();
609
+ }
610
+ //--------------------------------------------------------------------------
611
+ //
612
+ // Lifecycle
613
+ //
614
+ //--------------------------------------------------------------------------
615
+ connectedCallback() {
616
+ connectConditionalSlotComponent(this);
617
+ }
618
+ disconnectedCallback() {
619
+ disconnectConditionalSlotComponent(this);
620
+ this.disconnectSeparator();
621
+ }
622
+ componentDidLoad() {
623
+ this.updateAriaValues();
624
+ }
625
+ // --------------------------------------------------------------------------
626
+ //
627
+ // Render Methods
628
+ //
629
+ // --------------------------------------------------------------------------
630
+ renderHeader() {
631
+ const { el } = this;
632
+ const hasHeader = getSlotted(el, SLOTS$2.header);
633
+ return hasHeader ? (h("div", { class: CSS$1.contentHeader, key: "header" }, h("slot", { name: SLOTS$2.header }))) : null;
634
+ }
635
+ render() {
636
+ const { collapsed, detached, position, initialContentWidth, contentWidth, contentWidthMax, contentWidthMin, intlResize, resizable } = this;
637
+ const allowResizing = !detached && resizable;
638
+ const contentNode = (h("div", { class: { [CSS$1.content]: true, [CSS$1.contentDetached]: detached }, hidden: collapsed, key: "content", ref: this.storeContentEl, style: allowResizing && contentWidth ? { width: `${contentWidth}px` } : null }, this.renderHeader(), h("div", { class: CSS$1.contentBody }, h("slot", null))));
639
+ const separatorNode = allowResizing ? (h("div", { "aria-label": intlResize, "aria-orientation": "horizontal", "aria-valuemax": contentWidthMax, "aria-valuemin": contentWidthMin, "aria-valuenow": contentWidth !== null && contentWidth !== void 0 ? contentWidth : initialContentWidth, class: CSS$1.separator, key: "separator", onKeyDown: this.separatorKeyDown, ref: this.connectSeparator, role: "separator", tabIndex: 0, "touch-action": "none" })) : null;
640
+ const actionBarNode = h("slot", { key: "action-bar", name: SLOTS$2.actionBar });
641
+ const mainNodes = [actionBarNode, contentNode, separatorNode];
642
+ if (position === "end") {
643
+ mainNodes.reverse();
644
+ }
645
+ return h("div", { class: { [CSS$1.container]: true } }, mainNodes);
646
+ }
647
+ // --------------------------------------------------------------------------
648
+ //
649
+ // private Methods
650
+ //
651
+ // --------------------------------------------------------------------------
652
+ setContentWidth(width) {
653
+ const { contentWidthMax, contentWidthMin } = this;
654
+ const roundedWidth = Math.round(width);
655
+ this.contentWidth =
656
+ typeof contentWidthMax === "number" && typeof contentWidthMin === "number"
657
+ ? clamp(roundedWidth, contentWidthMin, contentWidthMax)
658
+ : roundedWidth;
659
+ }
660
+ updateAriaValues() {
661
+ const { contentEl } = this;
662
+ const computedStyle = contentEl && getComputedStyle(contentEl);
663
+ if (!computedStyle) {
664
+ return;
665
+ }
666
+ const max = parseInt(computedStyle.getPropertyValue("max-width"), 10);
667
+ const min = parseInt(computedStyle.getPropertyValue("min-width"), 10);
668
+ const valueNow = parseInt(computedStyle.getPropertyValue("width"), 10);
669
+ if (typeof valueNow === "number" && !isNaN(valueNow)) {
670
+ this.initialContentWidth = valueNow;
671
+ }
672
+ if (typeof max === "number" && !isNaN(max)) {
673
+ this.contentWidthMax = max;
674
+ }
675
+ if (typeof min === "number" && !isNaN(min)) {
676
+ this.contentWidthMin = min;
677
+ }
678
+ forceUpdate(this);
679
+ }
680
+ get el() { return getElement(this); }
681
+ static get watchers() { return {
682
+ "collapsed": ["watchHandler"]
683
+ }; }
684
+ };
685
+ ShellPanel.style = shellPanelCss;
686
+
687
+ const tabCss = "@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:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.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}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([selected]) section,:host([selected]) .container{display:block}:host{display:none;block-size:100%;inline-size:100%}:host([selected]){display:block;block-size:100%;inline-size:100%;overflow:auto}section,.container{display:none;block-size:100%;inline-size:100%}:host([scale=s]){padding-block:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]){padding-block:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){padding-block:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}";
688
+
689
+ const Tab = class {
690
+ constructor(hostRef) {
691
+ registerInstance(this, hostRef);
692
+ this.calciteInternalTabRegister = createEvent(this, "calciteInternalTabRegister", 6);
693
+ /**
694
+ * When `true`, the component's contents are selected.
695
+ *
696
+ * Only one tab can be selected within the `calcite-tabs` parent.
697
+ *
698
+ * @deprecated Use `selected` instead.
699
+ */
700
+ this.active = false;
701
+ /**
702
+ * When `true`, the component's contents are selected.
703
+ *
704
+ * Only one tab can be selected within the `calcite-tabs` parent.
705
+ */
706
+ this.selected = false;
707
+ /**
708
+ * @internal
709
+ */
710
+ this.scale = "m";
711
+ this.guid = `calcite-tab-title-${guid()}`;
712
+ }
713
+ activeHandler(value) {
714
+ this.selected = value;
715
+ }
716
+ selectedHandler(value) {
717
+ this.active = value;
718
+ }
719
+ //--------------------------------------------------------------------------
720
+ //
721
+ // Lifecycle
722
+ //
723
+ //--------------------------------------------------------------------------
724
+ render() {
725
+ const id = this.el.id || this.guid;
726
+ return (h(Host, { "aria-labelledby": this.labeledBy, id: id }, h("div", { class: "container", role: "tabpanel", tabIndex: this.selected ? 0 : -1 }, h("section", null, h("slot", null)))));
727
+ }
728
+ connectedCallback() {
729
+ this.parentTabsEl = this.el.closest("calcite-tabs");
730
+ const isSelected = this.selected || this.active;
731
+ if (isSelected) {
732
+ this.activeHandler(isSelected);
733
+ this.selectedHandler(isSelected);
734
+ }
735
+ }
736
+ componentDidLoad() {
737
+ this.calciteInternalTabRegister.emit();
738
+ }
739
+ componentWillRender() {
740
+ var _a;
741
+ this.scale = (_a = this.parentTabsEl) === null || _a === void 0 ? void 0 : _a.scale;
742
+ }
743
+ disconnectedCallback() {
744
+ var _a;
745
+ // Dispatching to body in order to be listened by other elements that are still connected to the DOM.
746
+ (_a = document.body) === null || _a === void 0 ? void 0 : _a.dispatchEvent(new CustomEvent("calciteTabUnregister", {
747
+ detail: this.el
748
+ }));
749
+ }
750
+ //--------------------------------------------------------------------------
751
+ //
752
+ // Event Listeners
753
+ //
754
+ //--------------------------------------------------------------------------
755
+ internalTabChangeHandler(event) {
756
+ const targetTabsEl = event
757
+ .composedPath()
758
+ .find((el) => el.tagName === "CALCITE-TABS");
759
+ // to allow `<calcite-tabs>` to be nested we need to make sure this
760
+ // `calciteTabChange` event was actually fired from a within the same
761
+ // `<calcite-tabs>` that is the a parent of this tab.
762
+ if (targetTabsEl !== this.parentTabsEl) {
763
+ return;
764
+ }
765
+ if (this.tab) {
766
+ this.selected = this.tab === event.detail.tab;
767
+ }
768
+ else {
769
+ this.getTabIndex().then((index) => {
770
+ this.selected = index === event.detail.tab;
771
+ });
772
+ }
773
+ event.stopPropagation();
774
+ }
775
+ //--------------------------------------------------------------------------
776
+ //
777
+ // Public Methods
778
+ //
779
+ //--------------------------------------------------------------------------
780
+ /**
781
+ * Returns the index of the component item within the tab array.
782
+ */
783
+ async getTabIndex() {
784
+ return Array.prototype.indexOf.call(nodeListToArray(this.el.parentElement.children).filter((el) => el.matches("calcite-tab")), this.el);
785
+ }
786
+ //--------------------------------------------------------------------------
787
+ //
788
+ // Private Methods
789
+ //
790
+ //--------------------------------------------------------------------------
791
+ /**
792
+ * @param tabIds
793
+ * @param titleIds
794
+ * @internal
795
+ */
796
+ async updateAriaInfo(tabIds = [], titleIds = []) {
797
+ this.labeledBy = titleIds[tabIds.indexOf(this.el.id)] || null;
798
+ }
799
+ get el() { return getElement(this); }
800
+ static get watchers() { return {
801
+ "active": ["activeHandler"],
802
+ "selected": ["selectedHandler"]
803
+ }; }
804
+ };
805
+ Tab.style = tabCss;
806
+
807
+ const tabNavCss = "@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:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.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}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:relative;display:flex}:host([scale=s]){min-block-size:1.5rem}:host([scale=m]){min-block-size:2rem}:host([scale=l]){min-block-size:2.75rem}.tab-nav{display:flex;inline-size:100%;justify-content:flex-start;overflow:auto}.tab-nav-active-indicator-container{position:absolute;inset-inline:0px;inset-block-end:0px;block-size:0.125rem;inline-size:100%;overflow:hidden}.tab-nav-active-indicator{position:absolute;inset-block-end:0px;display:block;block-size:0.125rem;background-color:var(--calcite-ui-brand);transition-property:all;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}:host([position=below]) .tab-nav-active-indicator{inset-block-end:unset;inset-block-start:0px}:host([position=bottom]) .tab-nav-active-indicator{inset-block-end:unset;inset-block-start:0px}:host([position=below]) .tab-nav-active-indicator-container{inset-block-start:0px;inset-block-end:unset}:host([position=bottom]) .tab-nav-active-indicator-container{inset-block-end:unset;inset-block-start:0px}:host([bordered]) .tab-nav-active-indicator-container{inset-block-end:unset}:host([bordered][position=below]) .tab-nav-active-indicator-container{inset-block-end:0;inset-block-start:unset}:host([bordered][position=bottom]) .tab-nav-active-indicator-container{inset-block-end:0;inset-block-start:unset}@media (forced-colors: active){.tab-nav-active-indicator{background-color:highlight}}";
808
+
809
+ const TabNav = class {
810
+ constructor(hostRef) {
811
+ registerInstance(this, hostRef);
812
+ this.calciteTabChange = createEvent(this, "calciteTabChange", 6);
813
+ this.calciteInternalTabChange = createEvent(this, "calciteInternalTabChange", 6);
814
+ /**
815
+ * @internal
816
+ */
817
+ this.scale = "m";
818
+ /**
819
+ * @internal
820
+ */
821
+ this.layout = "inline";
822
+ /**
823
+ * @internal
824
+ */
825
+ this.position = "bottom";
826
+ /**
827
+ * @internal
828
+ */
829
+ this.bordered = false;
830
+ this.animationActiveDuration = 0.3;
831
+ this.resizeObserver = createObserver("resize", () => {
832
+ // remove active indicator transition duration during resize to prevent wobble
833
+ this.activeIndicatorEl.style.transitionDuration = "0s";
834
+ this.updateActiveWidth();
835
+ this.updateOffsetPosition();
836
+ });
837
+ //--------------------------------------------------------------------------
838
+ //
839
+ // Private Methods
840
+ //
841
+ //--------------------------------------------------------------------------
842
+ this.handleContainerScroll = () => {
843
+ // remove active indicator transition duration while container is scrolling to prevent wobble
844
+ this.activeIndicatorEl.style.transitionDuration = "0s";
845
+ this.updateOffsetPosition();
846
+ };
847
+ }
848
+ async selectedTabChanged() {
849
+ if (localStorage &&
850
+ this.storageId &&
851
+ this.selectedTab !== undefined &&
852
+ this.selectedTab !== null) {
853
+ localStorage.setItem(`calcite-tab-nav-${this.storageId}`, JSON.stringify(this.selectedTab));
854
+ }
855
+ this.calciteInternalTabChange.emit({
856
+ tab: this.selectedTab
857
+ });
858
+ this.selectedTabEl = await this.getTabTitleById(this.selectedTab);
859
+ }
860
+ selectedTabElChanged() {
861
+ this.updateOffsetPosition();
862
+ this.updateActiveWidth();
863
+ // reset the animation time on tab selection
864
+ this.activeIndicatorEl.style.transitionDuration = `${this.animationActiveDuration}s`;
865
+ }
866
+ //--------------------------------------------------------------------------
867
+ //
868
+ // Lifecycle
869
+ //
870
+ //--------------------------------------------------------------------------
871
+ connectedCallback() {
872
+ var _a;
873
+ this.parentTabsEl = this.el.closest("calcite-tabs");
874
+ (_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el);
875
+ }
876
+ disconnectedCallback() {
877
+ var _a;
878
+ (_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
879
+ }
880
+ componentWillLoad() {
881
+ const storageKey = `calcite-tab-nav-${this.storageId}`;
882
+ if (localStorage && this.storageId && localStorage.getItem(storageKey)) {
883
+ const storedTab = JSON.parse(localStorage.getItem(storageKey));
884
+ this.selectedTab = storedTab;
885
+ }
886
+ }
887
+ componentWillRender() {
888
+ const { parentTabsEl } = this;
889
+ this.layout = parentTabsEl === null || parentTabsEl === void 0 ? void 0 : parentTabsEl.layout;
890
+ this.position = parentTabsEl === null || parentTabsEl === void 0 ? void 0 : parentTabsEl.position;
891
+ this.scale = parentTabsEl === null || parentTabsEl === void 0 ? void 0 : parentTabsEl.scale;
892
+ this.bordered = parentTabsEl === null || parentTabsEl === void 0 ? void 0 : parentTabsEl.bordered;
893
+ // fix issue with active tab-title not lining up with blue indicator
894
+ if (this.selectedTabEl) {
895
+ this.updateOffsetPosition();
896
+ }
897
+ }
898
+ componentDidRender() {
899
+ // if every tab title is active select the first tab.
900
+ if (this.tabTitles.length &&
901
+ this.tabTitles.every((title) => !title.active) &&
902
+ !this.selectedTab) {
903
+ this.tabTitles[0].getTabIdentifier().then((tab) => {
904
+ this.calciteInternalTabChange.emit({
905
+ tab
906
+ });
907
+ });
908
+ }
909
+ }
910
+ render() {
911
+ const dir = getElementDir(this.el);
912
+ const width = `${this.indicatorWidth}px`;
913
+ const offset = `${this.indicatorOffset}px`;
914
+ const indicatorStyle = dir !== "rtl" ? { width, left: offset } : { width, right: offset };
915
+ return (h(Host, { role: "tablist" }, h("div", { class: "tab-nav", onScroll: this.handleContainerScroll, ref: (el) => (this.tabNavEl = el) }, h("div", { class: "tab-nav-active-indicator-container", ref: (el) => (this.activeIndicatorContainerEl = el) }, h("div", { class: "tab-nav-active-indicator", ref: (el) => (this.activeIndicatorEl = el), style: indicatorStyle })), h("slot", null))));
916
+ }
917
+ //--------------------------------------------------------------------------
918
+ //
919
+ // Event Listeners
920
+ //
921
+ //--------------------------------------------------------------------------
922
+ focusPreviousTabHandler(event) {
923
+ const currentIndex = this.getIndexOfTabTitle(event.target, this.enabledTabTitles);
924
+ const previousTab = this.enabledTabTitles[currentIndex - 1] ||
925
+ this.enabledTabTitles[this.enabledTabTitles.length - 1];
926
+ previousTab === null || previousTab === void 0 ? void 0 : previousTab.focus();
927
+ event.stopPropagation();
928
+ event.preventDefault();
929
+ }
930
+ focusNextTabHandler(event) {
931
+ const currentIndex = this.getIndexOfTabTitle(event.target, this.enabledTabTitles);
932
+ const nextTab = this.enabledTabTitles[currentIndex + 1] || this.enabledTabTitles[0];
933
+ nextTab === null || nextTab === void 0 ? void 0 : nextTab.focus();
934
+ event.stopPropagation();
935
+ event.preventDefault();
936
+ }
937
+ internalActivateTabHandler(event) {
938
+ this.selectedTab = event.detail.tab
939
+ ? event.detail.tab
940
+ : this.getIndexOfTabTitle(event.target);
941
+ event.stopPropagation();
942
+ event.preventDefault();
943
+ }
944
+ activateTabHandler(event) {
945
+ this.calciteTabChange.emit({
946
+ tab: this.selectedTab
947
+ });
948
+ event.stopPropagation();
949
+ event.preventDefault();
950
+ }
951
+ /**
952
+ * Check for active tabs on register and update selected
953
+ *
954
+ * @param event
955
+ */
956
+ updateTabTitles(event) {
957
+ if (event.target.active) {
958
+ this.selectedTab = event.detail;
959
+ }
960
+ }
961
+ globalInternalTabChangeHandler(event) {
962
+ if (this.syncId &&
963
+ event.target !== this.el &&
964
+ event.target.syncId === this.syncId &&
965
+ this.selectedTab !== event.detail.tab) {
966
+ this.selectedTab = event.detail.tab;
967
+ }
968
+ event.stopPropagation();
969
+ }
970
+ iconStartChangeHandler() {
971
+ this.updateActiveWidth();
972
+ }
973
+ updateOffsetPosition() {
974
+ var _a, _b, _c, _d, _e;
975
+ const dir = getElementDir(this.el);
976
+ const navWidth = (_a = this.activeIndicatorContainerEl) === null || _a === void 0 ? void 0 : _a.offsetWidth;
977
+ const tabLeft = (_b = this.selectedTabEl) === null || _b === void 0 ? void 0 : _b.offsetLeft;
978
+ const tabWidth = (_c = this.selectedTabEl) === null || _c === void 0 ? void 0 : _c.offsetWidth;
979
+ const offsetRight = navWidth - (tabLeft + tabWidth);
980
+ this.indicatorOffset =
981
+ dir !== "rtl" ? tabLeft - ((_d = this.tabNavEl) === null || _d === void 0 ? void 0 : _d.scrollLeft) : offsetRight + ((_e = this.tabNavEl) === null || _e === void 0 ? void 0 : _e.scrollLeft);
982
+ }
983
+ updateActiveWidth() {
984
+ var _a;
985
+ this.indicatorWidth = (_a = this.selectedTabEl) === null || _a === void 0 ? void 0 : _a.offsetWidth;
986
+ }
987
+ getIndexOfTabTitle(el, tabTitles = this.tabTitles) {
988
+ // In most cases, since these indexes correlate with tab contents, we want to consider all tab titles.
989
+ // However, when doing relative index operations, it makes sense to pass in this.enabledTabTitles as the 2nd arg.
990
+ return tabTitles.indexOf(el);
991
+ }
992
+ async getTabTitleById(id) {
993
+ return Promise.all(this.tabTitles.map((el) => el.getTabIdentifier())).then((ids) => {
994
+ return this.tabTitles[ids.indexOf(id)];
995
+ });
996
+ }
997
+ get tabTitles() {
998
+ return filterDirectChildren(this.el, "calcite-tab-title");
999
+ }
1000
+ get enabledTabTitles() {
1001
+ return filterDirectChildren(this.el, "calcite-tab-title:not([disabled])");
1002
+ }
1003
+ get el() { return getElement(this); }
1004
+ static get watchers() { return {
1005
+ "selectedTab": ["selectedTabChanged"],
1006
+ "selectedTabEl": ["selectedTabElChanged"]
1007
+ }; }
1008
+ };
1009
+ TabNav.style = tabNavCss;
1010
+
1011
+ const tabTitleCss = "@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:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.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}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{display:block;flex:0 1 auto;outline:2px solid transparent;outline-offset:2px;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:1.25rem;margin-inline-end:1.25rem}:host([layout=center]){margin-block:0px;margin-inline:1.25rem;text-align:center;flex-basis:12rem;margin:auto}:host([position=below]) .container{border-block-end-width:0px;border-block-start-width:2px;border-block-start-color:transparent;border-block-start-style:solid}:host([position=bottom]) .container{border-block-end-width:0px;border-block-start-width:2px;border-block-start-color:transparent;border-block-start-style:solid}:host .container{outline-color:transparent}:host(:focus) .container{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}:host(:active) a,:host(:focus) a,:host(:hover) a{border-color:var(--calcite-ui-border-2);color:var(--calcite-ui-text-1);-webkit-text-decoration-line:none;text-decoration-line:none}:host([selected]) .container{border-color:transparent;color:var(--calcite-ui-text-1)}:host([disabled]) .container{pointer-events:none;opacity:0.5}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([scale=s]){-webkit-margin-end:1rem;margin-inline-end:1rem}:host([scale=s]) .container{padding-block:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]) .container{padding-block:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){-webkit-margin-end:1.5rem;margin-inline-end:1.5rem}:host([scale=l]) .container{padding-block:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}.container{box-sizing:border-box;display:flex;block-size:100%;inline-size:100%;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;justify-content:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-block-end-width:2px;padding-inline:0px;padding-block:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-ui-text-3);transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;border-block-end-color:transparent;border-block-end-style:solid}.calcite-tab-title--icon{position:relative;margin:0px;display:inline-flex;align-self:center}.calcite-tab-title--icon svg{transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}.container--has-text{padding:0.25rem}.container--has-text .calcite-tab-title--icon.icon-start{-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}.container--has-text .calcite-tab-title--icon.icon-end{-webkit-margin-start:0.5rem;margin-inline-start:0.5rem}:host([icon-start][icon-end]) .calcite-tab-title--icon:first-child{-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}:host([bordered]){-webkit-margin-end:0;margin-inline-end:0}:host([bordered][selected]){box-shadow:inset 0px -2px var(--calcite-ui-foreground-1)}:host([bordered][selected][position=below]){box-shadow:inset 0 2px 0 var(--calcite-ui-foreground-1)}:host([bordered][selected][position=bottom]){box-shadow:inset 0 2px 0 var(--calcite-ui-foreground-1)}:host([bordered]:hover) .container,:host([bordered]:focus) .container,:host([bordered]:active) .container{position:relative}:host([bordered]:hover) .container{background-color:var(--calcite-button-transparent-hover)}:host([bordered]) .container{border-block-end-style:unset;-webkit-border-start:1px solid transparent;border-inline-start:1px solid transparent;-webkit-border-end:1px solid transparent;border-inline-end:1px solid transparent}:host([bordered][position=below]) .container{border-block-start-style:unset}:host([bordered][position=bottom]) .container{border-block-start-style:unset}:host([selected][bordered]) .container{border-inline-start-color:var(--calcite-ui-border-1);border-inline-end-color:var(--calcite-ui-border-1)}:host([bordered]) .container{padding-inline:0.75rem}:host([bordered][scale=s]) .container{padding-inline:0.5rem}:host([bordered][scale=l]) .container{padding-inline:1rem}@media (forced-colors: active){:host{outline-width:0;outline-offset:0}:host(:focus) .container{outline-color:highlight}:host([bordered]) .container{border-block-end-style:solid}:host([bordered][position=below]) .container{border-block-start-style:solid}:host([bordered][position=bottom]) .container{border-block-start-style:solid}:host([bordered][selected]) .container{border-block-end-style:none}:host([bordered][position=below][selected]) .container{border-block-start-style:none}:host([bordered][position=bottom][selected]) .container{border-block-start-style:none}}";
1012
+
1013
+ const TabTitle = class {
1014
+ constructor(hostRef) {
1015
+ registerInstance(this, hostRef);
1016
+ this.calciteTabsActivate = createEvent(this, "calciteTabsActivate", 6);
1017
+ this.calciteInternalTabsActivate = createEvent(this, "calciteInternalTabsActivate", 6);
1018
+ this.calciteInternalTabsFocusNext = createEvent(this, "calciteInternalTabsFocusNext", 6);
1019
+ this.calciteInternalTabsFocusPrevious = createEvent(this, "calciteInternalTabsFocusPrevious", 6);
1020
+ this.calciteInternalTabTitleRegister = createEvent(this, "calciteInternalTabTitleRegister", 6);
1021
+ this.calciteInternalTabIconChanged = createEvent(this, "calciteInternalTabIconChanged", 6);
1022
+ //--------------------------------------------------------------------------
1023
+ //
1024
+ // Properties
1025
+ //
1026
+ //--------------------------------------------------------------------------
1027
+ /**
1028
+ * When `true`, the component and its respective `calcite-tab` contents are selected.
1029
+ *
1030
+ * Only one tab can be selected within the `calcite-tabs` parent.
1031
+ *
1032
+ * @deprecated Use `selected` instead.
1033
+ */
1034
+ this.active = false;
1035
+ /**
1036
+ * When `true`, the component and its respective `calcite-tab` contents are selected.
1037
+ *
1038
+ * Only one tab can be selected within the `calcite-tabs` parent.
1039
+ */
1040
+ this.selected = false;
1041
+ /** When `true`, interaction is prevented and the component is displayed with lower opacity. */
1042
+ this.disabled = false;
1043
+ /**
1044
+ * @internal
1045
+ */
1046
+ this.bordered = false;
1047
+ //--------------------------------------------------------------------------
1048
+ //
1049
+ // Private State/Props
1050
+ //
1051
+ //--------------------------------------------------------------------------
1052
+ /** watches for changing text content */
1053
+ this.mutationObserver = createObserver("mutation", () => this.updateHasText());
1054
+ /** determine if there is slotted text for styling purposes */
1055
+ this.hasText = false;
1056
+ this.resizeObserver = createObserver("resize", () => {
1057
+ this.calciteInternalTabIconChanged.emit();
1058
+ });
1059
+ this.guid = `calcite-tab-title-${guid()}`;
1060
+ }
1061
+ activeHandler(value) {
1062
+ this.selected = value;
1063
+ }
1064
+ selectedHandler(value) {
1065
+ this.active = value;
1066
+ if (this.selected) {
1067
+ this.emitActiveTab(false);
1068
+ }
1069
+ }
1070
+ //--------------------------------------------------------------------------
1071
+ //
1072
+ // Lifecycle
1073
+ //
1074
+ //--------------------------------------------------------------------------
1075
+ connectedCallback() {
1076
+ const { selected, active } = this;
1077
+ if (selected) {
1078
+ this.active = selected;
1079
+ }
1080
+ else if (active) {
1081
+ this.activeHandler(active);
1082
+ }
1083
+ this.setupTextContentObserver();
1084
+ this.parentTabNavEl = this.el.closest("calcite-tab-nav");
1085
+ this.parentTabsEl = this.el.closest("calcite-tabs");
1086
+ }
1087
+ disconnectedCallback() {
1088
+ var _a, _b, _c;
1089
+ (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
1090
+ // Dispatching to body in order to be listened by other elements that are still connected to the DOM.
1091
+ (_b = document.body) === null || _b === void 0 ? void 0 : _b.dispatchEvent(new CustomEvent("calciteTabTitleUnregister", {
1092
+ detail: this.el
1093
+ }));
1094
+ (_c = this.resizeObserver) === null || _c === void 0 ? void 0 : _c.disconnect();
1095
+ }
1096
+ componentWillLoad() {
1097
+ {
1098
+ this.updateHasText();
1099
+ }
1100
+ if (this.tab && this.selected) {
1101
+ this.emitActiveTab(false);
1102
+ }
1103
+ }
1104
+ componentWillRender() {
1105
+ if (this.parentTabsEl) {
1106
+ this.layout = this.parentTabsEl.layout;
1107
+ this.position = this.parentTabsEl.position;
1108
+ this.scale = this.parentTabsEl.scale;
1109
+ this.bordered = this.parentTabsEl.bordered;
1110
+ }
1111
+ // handle case when tab-nav is only parent
1112
+ if (!this.parentTabsEl && this.parentTabNavEl) {
1113
+ this.position = getElementProp(this.parentTabNavEl, "position", this.position);
1114
+ this.scale = getElementProp(this.parentTabNavEl, "scale", this.scale);
1115
+ }
1116
+ }
1117
+ render() {
1118
+ const id = this.el.id || this.guid;
1119
+ const iconStartEl = (h("calcite-icon", { class: "calcite-tab-title--icon icon-start", flipRtl: this.iconFlipRtl === "start" || this.iconFlipRtl === "both", icon: this.iconStart, scale: "s" }));
1120
+ const iconEndEl = (h("calcite-icon", { class: "calcite-tab-title--icon icon-end", flipRtl: this.iconFlipRtl === "end" || this.iconFlipRtl === "both", icon: this.iconEnd, scale: "s" }));
1121
+ return (h(Host, { "aria-controls": this.controls, "aria-selected": toAriaBoolean(this.selected), id: id, role: "tab", tabIndex: this.selected ? 0 : -1 }, h("div", { class: {
1122
+ container: true,
1123
+ "container--has-text": this.hasText
1124
+ }, ref: (el) => { var _a; return (_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.observe(el); } }, this.iconStart ? iconStartEl : null, h("slot", null), this.iconEnd ? iconEndEl : null)));
1125
+ }
1126
+ async componentDidLoad() {
1127
+ this.calciteInternalTabTitleRegister.emit(await this.getTabIdentifier());
1128
+ }
1129
+ componentDidRender() {
1130
+ updateHostInteraction(this, () => {
1131
+ return this.selected;
1132
+ });
1133
+ }
1134
+ //--------------------------------------------------------------------------
1135
+ //
1136
+ // Event Listeners
1137
+ //
1138
+ //--------------------------------------------------------------------------
1139
+ internalTabChangeHandler(event) {
1140
+ const targetTabsEl = event
1141
+ .composedPath()
1142
+ .find((el) => el.tagName === "CALCITE-TABS");
1143
+ if (targetTabsEl !== this.parentTabsEl) {
1144
+ return;
1145
+ }
1146
+ if (this.tab) {
1147
+ this.selected = this.tab === event.detail.tab;
1148
+ }
1149
+ else {
1150
+ this.getTabIndex().then((index) => {
1151
+ this.selected = index === event.detail.tab;
1152
+ });
1153
+ }
1154
+ event.stopPropagation();
1155
+ }
1156
+ onClick() {
1157
+ this.emitActiveTab();
1158
+ }
1159
+ keyDownHandler(event) {
1160
+ switch (event.key) {
1161
+ case " ":
1162
+ case "Enter":
1163
+ this.emitActiveTab();
1164
+ event.preventDefault();
1165
+ break;
1166
+ case "ArrowRight":
1167
+ event.preventDefault();
1168
+ if (getElementDir(this.el) === "ltr") {
1169
+ this.calciteInternalTabsFocusNext.emit();
1170
+ }
1171
+ else {
1172
+ this.calciteInternalTabsFocusPrevious.emit();
1173
+ }
1174
+ break;
1175
+ case "ArrowLeft":
1176
+ event.preventDefault();
1177
+ if (getElementDir(this.el) === "ltr") {
1178
+ this.calciteInternalTabsFocusPrevious.emit();
1179
+ }
1180
+ else {
1181
+ this.calciteInternalTabsFocusNext.emit();
1182
+ }
1183
+ break;
1184
+ }
1185
+ }
1186
+ //--------------------------------------------------------------------------
1187
+ //
1188
+ // Public Methods
1189
+ //
1190
+ //--------------------------------------------------------------------------
1191
+ /**
1192
+ * Returns the index of the title within the `calcite-tab-nav`.
1193
+ */
1194
+ async getTabIndex() {
1195
+ return Array.prototype.indexOf.call(this.el.parentElement.querySelectorAll("calcite-tab-title"), this.el);
1196
+ }
1197
+ /**
1198
+ * @internal
1199
+ */
1200
+ async getTabIdentifier() {
1201
+ return this.tab ? this.tab : this.getTabIndex();
1202
+ }
1203
+ /**
1204
+ * @param tabIds
1205
+ * @param titleIds
1206
+ * @internal
1207
+ */
1208
+ async updateAriaInfo(tabIds = [], titleIds = []) {
1209
+ this.controls = tabIds[titleIds.indexOf(this.el.id)] || null;
1210
+ }
1211
+ updateHasText() {
1212
+ this.hasText = this.el.textContent.trim().length > 0;
1213
+ }
1214
+ setupTextContentObserver() {
1215
+ var _a;
1216
+ (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
1217
+ }
1218
+ emitActiveTab(userTriggered = true) {
1219
+ if (this.disabled) {
1220
+ return;
1221
+ }
1222
+ const payload = { tab: this.tab };
1223
+ this.calciteInternalTabsActivate.emit(payload);
1224
+ if (userTriggered) {
1225
+ this.calciteTabsActivate.emit(payload);
1226
+ }
1227
+ }
1228
+ get el() { return getElement(this); }
1229
+ static get watchers() { return {
1230
+ "active": ["activeHandler"],
1231
+ "selected": ["selectedHandler"]
1232
+ }; }
1233
+ };
1234
+ TabTitle.style = tabTitleCss;
1235
+
1236
+ /*!
1237
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
1238
+ * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
1239
+ * v1.0.0-beta.97
1240
+ */
1241
+ const SLOTS$1 = {
1242
+ tabNav: "tab-nav"
1243
+ };
1244
+
1245
+ const tabsCss = "@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:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.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}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:flex;flex-direction:column}:host([bordered]){box-shadow:inset 0 1px 0 var(--calcite-ui-border-1);background-color:var(--calcite-ui-foreground-1)}:host([bordered]:not([position=below])) ::slotted(calcite-tab-nav){-webkit-margin-after:-1px;margin-block-end:-1px}:host([bordered]:not([position=bottom])) ::slotted(calcite-tab-nav){-webkit-margin-after:-1px;margin-block-end:-1px}:host([bordered][position=below]) ::slotted(calcite-tab-nav){-webkit-margin-before:-1px;margin-block-start:-1px}:host([bordered][position=below]){box-shadow:inset 0 1px 0 var(--calcite-ui-border-1), inset 0 -1px 0 var(--calcite-ui-border-1)}:host([bordered][position=bottom]){box-shadow:inset 0 1px 0 var(--calcite-ui-border-1), inset 0 -1px 0 var(--calcite-ui-border-1)}:host([bordered]) section{border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-1)}:host([bordered][scale=s]) section{padding:0.75rem}:host([bordered][scale=m]) section{padding:0.5rem}:host([bordered][scale=l]) section{padding:1rem}:host([position=below]){flex-direction:column-reverse}:host([position=bottom]){flex-direction:column-reverse}section{display:flex;flex-grow:1;overflow:hidden;border-block-start-width:1px;border-block-start-color:var(--calcite-ui-border-1);border-block-start-style:solid}:host([position=below]) section{flex-direction:column-reverse;border-block-start-width:0px;border-block-end-width:1px;border-block-end-color:var(--calcite-ui-border-1)}:host([position=bottom]) section{flex-direction:column-reverse;border-block-start-width:0px;border-block-end-width:1px;border-block-end-color:var(--calcite-ui-border-1)}:host([position=below]:not([bordered])) section{border-block-end-style:solid}:host([position=bottom]:not([bordered])) section{border-block-end-style:solid}@media (forced-colors: active){:host([bordered]) section{border-block-start-width:0px;border-block-end-width:1px}:host([position=below][bordered]) section{border-block-start-width:1px;border-block-end-width:0px}:host([position=bottom][bordered]) section{border-block-start-width:1px;border-block-end-width:0px}}";
1246
+
1247
+ const Tabs = class {
1248
+ constructor(hostRef) {
1249
+ registerInstance(this, hostRef);
1250
+ //--------------------------------------------------------------------------
1251
+ //
1252
+ // Public Properties
1253
+ //
1254
+ //--------------------------------------------------------------------------
1255
+ /**
1256
+ * Specifies the layout of the `calcite-tab-nav`, justifying the `calcite-tab-title`s to the start (`"inline"`), or across and centered (`"center"`).
1257
+ */
1258
+ this.layout = "inline";
1259
+ /**
1260
+ * Specifies the position of the component in relation to the `calcite-tab`s. The `"above"` and `"below"` values are deprecated.
1261
+ *
1262
+ */
1263
+ this.position = "top";
1264
+ /**
1265
+ * Specifies the size of the component.
1266
+ */
1267
+ this.scale = "m";
1268
+ /**
1269
+ * When `true`, the component will display with a folder style menu.
1270
+ */
1271
+ this.bordered = false;
1272
+ //--------------------------------------------------------------------------
1273
+ //
1274
+ // Events
1275
+ //
1276
+ //--------------------------------------------------------------------------
1277
+ //--------------------------------------------------------------------------
1278
+ //
1279
+ // Private State/Props
1280
+ //
1281
+ //--------------------------------------------------------------------------
1282
+ /**
1283
+ *
1284
+ * Stores an array of ids of `<calcite-tab-titles>`s to match up ARIA
1285
+ * attributes.
1286
+ */
1287
+ this.titles = [];
1288
+ /**
1289
+ *
1290
+ * Stores an array of ids of `<calcite-tab>`s to match up ARIA attributes.
1291
+ */
1292
+ this.tabs = [];
1293
+ }
1294
+ //--------------------------------------------------------------------------
1295
+ //
1296
+ // Lifecycle
1297
+ //
1298
+ //--------------------------------------------------------------------------
1299
+ render() {
1300
+ return (h(Fragment, null, h("slot", { name: SLOTS$1.tabNav }), h("section", null, h("slot", null))));
1301
+ }
1302
+ //--------------------------------------------------------------------------
1303
+ //
1304
+ // Event Listeners
1305
+ //
1306
+ //--------------------------------------------------------------------------
1307
+ /**
1308
+ * @param event
1309
+ * @internal
1310
+ */
1311
+ calciteInternalTabTitleRegister(event) {
1312
+ this.titles = [...this.titles, event.target];
1313
+ this.registryHandler();
1314
+ event.stopPropagation();
1315
+ }
1316
+ /**
1317
+ * @param event
1318
+ * @internal
1319
+ */
1320
+ calciteTabTitleUnregister(event) {
1321
+ this.titles = this.titles.filter((el) => el !== event.detail);
1322
+ this.registryHandler();
1323
+ event.stopPropagation();
1324
+ }
1325
+ /**
1326
+ * @param event
1327
+ * @internal
1328
+ */
1329
+ calciteInternalTabRegister(event) {
1330
+ this.tabs = [...this.tabs, event.target];
1331
+ this.registryHandler();
1332
+ event.stopPropagation();
1333
+ }
1334
+ /**
1335
+ * @param event
1336
+ * @internal
1337
+ */
1338
+ calciteTabUnregister(event) {
1339
+ this.tabs = this.tabs.filter((el) => el !== event.detail);
1340
+ this.registryHandler();
1341
+ event.stopPropagation();
1342
+ }
1343
+ //--------------------------------------------------------------------------
1344
+ //
1345
+ // Private Methods
1346
+ //
1347
+ //--------------------------------------------------------------------------
1348
+ /**
1349
+ *
1350
+ * Matches up elements from the internal `tabs` and `titles` to automatically
1351
+ * update the ARIA attributes and link `<calcite-tab>` and
1352
+ * `<calcite-tab-title>` components.
1353
+ */
1354
+ async registryHandler() {
1355
+ let tabIds;
1356
+ let titleIds;
1357
+ // determine if we are using `tab` based or `index` based tab identifiers.
1358
+ if (this.tabs.some((el) => el.tab) || this.titles.some((el) => el.tab)) {
1359
+ // if we are using `tab` based identifiers sort by `tab` to account for
1360
+ // possible out of order tabs and get the id of each tab
1361
+ tabIds = this.tabs.sort((a, b) => a.tab.localeCompare(b.tab)).map((el) => el.id);
1362
+ titleIds = this.titles.sort((a, b) => a.tab.localeCompare(b.tab)).map((el) => el.id);
1363
+ }
1364
+ else {
1365
+ // if we are using index based tabs then the `<calcite-tab>` and
1366
+ // `<calcite-tab-title>` might have been rendered out of order so the
1367
+ // order of `this.tabs` and `this.titles` might not reflect the DOM state,
1368
+ // and might not match each other so we need to get the index of all the
1369
+ // tabs and titles in the DOM order to match them up as a source of truth
1370
+ const tabDomIndexes = await Promise.all(this.tabs.map((el) => el.getTabIndex()));
1371
+ const titleDomIndexes = await Promise.all(this.titles.map((el) => el.getTabIndex()));
1372
+ // once we have the DOM order as a source of truth we can build the
1373
+ // matching tabIds and titleIds arrays
1374
+ tabIds = tabDomIndexes.reduce((ids, indexInDOM, registryIndex) => {
1375
+ ids[indexInDOM] = this.tabs[registryIndex].id;
1376
+ return ids;
1377
+ }, []);
1378
+ titleIds = titleDomIndexes.reduce((ids, indexInDOM, registryIndex) => {
1379
+ ids[indexInDOM] = this.titles[registryIndex].id;
1380
+ return ids;
1381
+ }, []);
1382
+ }
1383
+ // pass all our new aria information to each `<calcite-tab>` and
1384
+ // `<calcite-tab-title>` which will check if they can update their internal
1385
+ // `controlled` or `labeledBy` states and re-render if necessary
1386
+ this.tabs.forEach((el) => el.updateAriaInfo(tabIds, titleIds));
1387
+ this.titles.forEach((el) => el.updateAriaInfo(tabIds, titleIds));
1388
+ }
1389
+ get el() { return getElement(this); }
1390
+ };
1391
+ Tabs.style = tabsCss;
1392
+
1393
+ /*!
1394
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
1395
+ * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
1396
+ * v1.0.0-beta.97
1397
+ */
1398
+ const CSS = {
1399
+ container: "container",
1400
+ handle: "handle"
1401
+ };
1402
+ var ICON_TYPES;
1403
+ (function (ICON_TYPES) {
1404
+ ICON_TYPES["grip"] = "grip";
1405
+ })(ICON_TYPES || (ICON_TYPES = {}));
1406
+
1407
+ /*!
1408
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
1409
+ * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
1410
+ * v1.0.0-beta.97
1411
+ */
1412
+ function getScreenReaderText(item, status, valueList) {
1413
+ const { items, intlDragHandleIdle, intlDragHandleActive, intlDragHandleChange, intlDragHandleCommit } = valueList;
1414
+ const total = items.length;
1415
+ const position = getItemIndex(valueList, item) + 1;
1416
+ if (status === "idle") {
1417
+ const idleText = intlDragHandleIdle
1418
+ ? replacePlaceholders(intlDragHandleIdle, item.label, position, total)
1419
+ : `${item.label}, press space and use arrow keys to reorder content. Current position ${position} of ${total}.`;
1420
+ return idleText;
1421
+ }
1422
+ else if (status === "active") {
1423
+ const activeText = intlDragHandleActive
1424
+ ? replacePlaceholders(intlDragHandleActive, item.label, position, total)
1425
+ : `Reordering ${item.label}, current position ${position} of ${total}.`;
1426
+ return activeText;
1427
+ }
1428
+ else if (status === "change") {
1429
+ const changeText = intlDragHandleChange
1430
+ ? replacePlaceholders(intlDragHandleChange, item.label, position, total)
1431
+ : `${item.label}, new position ${position} of ${total}. Press space to confirm.`;
1432
+ return changeText;
1433
+ }
1434
+ else {
1435
+ const commitText = intlDragHandleCommit
1436
+ ? replacePlaceholders(intlDragHandleCommit, item.label, position, total)
1437
+ : `${item.label}, current position ${position} of ${total}.`;
1438
+ return commitText;
1439
+ }
1440
+ }
1441
+ function getHandleAndItemElement(event) {
1442
+ const handle = event
1443
+ .composedPath()
1444
+ .find((item) => { var _a; return ((_a = item.dataset) === null || _a === void 0 ? void 0 : _a.jsHandle) !== undefined; });
1445
+ const item = event
1446
+ .composedPath()
1447
+ .find((item) => { var _a; return ((_a = item.tagName) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === "calcite-value-list-item"; });
1448
+ return { handle, item };
1449
+ }
1450
+ function replacePlaceholders(text, label, position, total) {
1451
+ const replacePosition = text.replace("${position}", position.toString());
1452
+ const replaceLabel = replacePosition.replace("${item.label}", label);
1453
+ return replaceLabel.replace("${total}", total.toString());
1454
+ }
1455
+
1456
+ const valueListCss = "@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:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.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}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{position:relative;box-sizing:border-box;display:flex;flex-shrink:0;flex-grow:0;flex-direction:column;align-items:stretch;background-color:transparent;font-size:var(--calcite-font-size--1);color:var(--calcite-ui-text-2)}:host *{box-sizing:border-box}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}calcite-value-list-item:last-of-type{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([filter-enabled]) header{-webkit-margin-after:0.25rem;margin-block-end:0.25rem;display:flex;align-items:center;justify-content:flex-end;background-color:var(--calcite-ui-foreground-1);--tw-shadow:0 1px 0 var(--calcite-ui-border-3);--tw-shadow-colored:0 1px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([filter-enabled]) header.sticky-pos{position:sticky;inset-block-start:0px;z-index:300}calcite-filter{-webkit-margin-after:1px;margin-block-end:1px}";
1457
+
1458
+ const ValueList = class {
1459
+ constructor(hostRef) {
1460
+ registerInstance(this, hostRef);
1461
+ this.calciteListChange = createEvent(this, "calciteListChange", 6);
1462
+ this.calciteListOrderChange = createEvent(this, "calciteListOrderChange", 6);
1463
+ // --------------------------------------------------------------------------
1464
+ //
1465
+ // Properties
1466
+ //
1467
+ // --------------------------------------------------------------------------
1468
+ /**
1469
+ * When `true`, interaction is prevented and the component is displayed with lower opacity.
1470
+ */
1471
+ this.disabled = false;
1472
+ /**
1473
+ * When `true`, `calcite-value-list-item`s are sortable via a draggable button.
1474
+ */
1475
+ this.dragEnabled = false;
1476
+ /**
1477
+ * When `true`, an input appears at the top of the component that can be used by end users to filter list items.
1478
+ */
1479
+ this.filterEnabled = false;
1480
+ /**
1481
+ * When `true`, a busy indicator is displayed.
1482
+ */
1483
+ this.loading = false;
1484
+ /**
1485
+ * Similar to standard radio buttons and checkboxes.
1486
+ * When `true`, a user can select multiple `calcite-value-list-item`s at a time.
1487
+ * When `false`, only a single `calcite-value-list-item` can be selected at a time,
1488
+ * and a new selection will deselect previous selections.
1489
+ */
1490
+ this.multiple = false;
1491
+ /**
1492
+ * When `true` and single-selection is enabled, the selection changes when navigating `calcite-value-list-item`s via keyboard.
1493
+ */
1494
+ this.selectionFollowsFocus = false;
1495
+ // --------------------------------------------------------------------------
1496
+ //
1497
+ // Private Properties
1498
+ //
1499
+ // --------------------------------------------------------------------------
1500
+ this.selectedValues = new Map();
1501
+ this.dataForFilter = [];
1502
+ this.lastSelectedItem = null;
1503
+ this.mutationObserver = createObserver("mutation", mutationObserverCallback.bind(this));
1504
+ this.setFilterEl = (el) => {
1505
+ this.filterEl = el;
1506
+ };
1507
+ this.deselectRemovedItems = deselectRemovedItems.bind(this);
1508
+ this.deselectSiblingItems = deselectSiblingItems.bind(this);
1509
+ this.selectSiblings = selectSiblings.bind(this);
1510
+ this.handleFilter = handleFilter.bind(this);
1511
+ this.getItemData = getItemData.bind(this);
1512
+ this.keyDownHandler = (event) => {
1513
+ if (event.defaultPrevented) {
1514
+ return;
1515
+ }
1516
+ const { handle, item } = getHandleAndItemElement(event);
1517
+ if (handle && !item.handleActivated && event.key === " ") {
1518
+ this.updateScreenReaderText(getScreenReaderText(item, "commit", this));
1519
+ }
1520
+ if (!handle || !item.handleActivated) {
1521
+ keyDownHandler.call(this, event);
1522
+ return;
1523
+ }
1524
+ const { items } = this;
1525
+ if (event.key === " ") {
1526
+ this.updateScreenReaderText(getScreenReaderText(item, "active", this));
1527
+ }
1528
+ if ((event.key !== "ArrowUp" && event.key !== "ArrowDown") || items.length <= 1) {
1529
+ return;
1530
+ }
1531
+ event.preventDefault();
1532
+ const { el } = this;
1533
+ const nextIndex = moveItemIndex(this, item, event.key === "ArrowUp" ? "up" : "down");
1534
+ if (nextIndex === items.length - 1) {
1535
+ el.appendChild(item);
1536
+ }
1537
+ else {
1538
+ const itemAtNextIndex = el.children[nextIndex];
1539
+ const insertionReferenceItem = itemAtNextIndex === item.nextElementSibling
1540
+ ? itemAtNextIndex.nextElementSibling
1541
+ : itemAtNextIndex;
1542
+ el.insertBefore(item, insertionReferenceItem);
1543
+ }
1544
+ this.items = this.getItems();
1545
+ this.calciteListOrderChange.emit(this.items.map(({ value }) => value));
1546
+ requestAnimationFrame(() => handle === null || handle === void 0 ? void 0 : handle.focus());
1547
+ item.handleActivated = true;
1548
+ this.updateHandleAriaLabel(handle, getScreenReaderText(item, "change", this));
1549
+ };
1550
+ this.storeAssistiveEl = (el) => {
1551
+ this.assistiveTextEl = el;
1552
+ };
1553
+ this.handleFocusIn = (event) => {
1554
+ const { handle, item } = getHandleAndItemElement(event);
1555
+ if (!(item === null || item === void 0 ? void 0 : item.handleActivated) && item && handle) {
1556
+ this.updateHandleAriaLabel(handle, getScreenReaderText(item, "idle", this));
1557
+ }
1558
+ };
1559
+ }
1560
+ // --------------------------------------------------------------------------
1561
+ //
1562
+ // Lifecycle
1563
+ //
1564
+ // --------------------------------------------------------------------------
1565
+ connectedCallback() {
1566
+ initialize.call(this);
1567
+ initializeObserver.call(this);
1568
+ }
1569
+ componentDidLoad() {
1570
+ this.setUpDragAndDrop();
1571
+ }
1572
+ componentDidRender() {
1573
+ updateHostInteraction(this);
1574
+ }
1575
+ disconnectedCallback() {
1576
+ cleanUpObserver.call(this);
1577
+ this.cleanUpDragAndDrop();
1578
+ }
1579
+ calciteListFocusOutHandler(event) {
1580
+ calciteListFocusOutHandler.call(this, event);
1581
+ }
1582
+ calciteListItemRemoveHandler(event) {
1583
+ removeItem.call(this, event);
1584
+ }
1585
+ calciteListItemChangeHandler(event) {
1586
+ calciteListItemChangeHandler.call(this, event);
1587
+ }
1588
+ calciteInternalListItemPropsChangeHandler(event) {
1589
+ event.stopPropagation();
1590
+ this.setUpFilter();
1591
+ }
1592
+ calciteInternalListItemValueChangeHandler(event) {
1593
+ calciteInternalListItemValueChangeHandler.call(this, event);
1594
+ event.stopPropagation();
1595
+ }
1596
+ // --------------------------------------------------------------------------
1597
+ //
1598
+ // Private Methods
1599
+ //
1600
+ // --------------------------------------------------------------------------
1601
+ getItems() {
1602
+ return Array.from(this.el.querySelectorAll("calcite-value-list-item"));
1603
+ }
1604
+ setUpItems() {
1605
+ setUpItems.call(this, "calcite-value-list-item");
1606
+ }
1607
+ setUpFilter() {
1608
+ if (this.filterEnabled) {
1609
+ this.dataForFilter = this.getItemData();
1610
+ }
1611
+ }
1612
+ setUpDragAndDrop() {
1613
+ this.cleanUpDragAndDrop();
1614
+ if (!this.dragEnabled) {
1615
+ return;
1616
+ }
1617
+ this.sortable = Sortable.create(this.el, {
1618
+ dataIdAttr: "id",
1619
+ handle: `.${CSS.handle}`,
1620
+ draggable: "calcite-value-list-item",
1621
+ group: this.group,
1622
+ onSort: () => {
1623
+ this.items = Array.from(this.el.querySelectorAll("calcite-value-list-item"));
1624
+ const values = this.items.map((item) => item.value);
1625
+ this.calciteListOrderChange.emit(values);
1626
+ }
1627
+ });
1628
+ }
1629
+ cleanUpDragAndDrop() {
1630
+ var _a;
1631
+ (_a = this.sortable) === null || _a === void 0 ? void 0 : _a.destroy();
1632
+ this.sortable = null;
1633
+ }
1634
+ handleBlur() {
1635
+ if (this.dragEnabled) {
1636
+ this.updateScreenReaderText("");
1637
+ }
1638
+ }
1639
+ // --------------------------------------------------------------------------
1640
+ //
1641
+ // Public Methods
1642
+ //
1643
+ // --------------------------------------------------------------------------
1644
+ /** Returns the currently selected items */
1645
+ async getSelectedItems() {
1646
+ return this.selectedValues;
1647
+ }
1648
+ /**
1649
+ * Sets focus on the component.
1650
+ *
1651
+ * @param focusId
1652
+ */
1653
+ async setFocus(focusId) {
1654
+ return setFocus.call(this, focusId);
1655
+ }
1656
+ // --------------------------------------------------------------------------
1657
+ //
1658
+ // Render Methods
1659
+ //
1660
+ // --------------------------------------------------------------------------
1661
+ getIconType() {
1662
+ let type = null;
1663
+ if (this.dragEnabled) {
1664
+ type = ICON_TYPES.grip;
1665
+ }
1666
+ return type;
1667
+ }
1668
+ updateScreenReaderText(text) {
1669
+ this.assistiveTextEl.textContent = text;
1670
+ }
1671
+ updateHandleAriaLabel(handleElement, text) {
1672
+ handleElement.ariaLabel = text;
1673
+ }
1674
+ render() {
1675
+ return (h(List, { onBlur: this.handleBlur, onFocusin: this.handleFocusIn, onKeyDown: this.keyDownHandler, props: this }));
1676
+ }
1677
+ get el() { return getElement(this); }
1678
+ };
1679
+ ValueList.style = valueListCss;
1680
+
1681
+ /*!
1682
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
1683
+ * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
1684
+ * v1.0.0-beta.97
1685
+ */
1686
+ const ICONS = {
1687
+ drag: "drag"
1688
+ };
1689
+ const SLOTS = {
1690
+ actionsEnd: "actions-end",
1691
+ actionsStart: "actions-start"
1692
+ };
1693
+
1694
+ const valueListItemCss = "@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:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.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}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{-webkit-margin-after:1px;margin-block-end:1px;box-sizing:border-box;display:flex;background-color:var(--calcite-ui-foreground-1);font-size:var(--calcite-font-size--1);color:var(--calcite-ui-text-2);--tw-shadow:0 1px 0 var(--calcite-ui-border-3);--tw-shadow-colored:0 1px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);transition:background-color var(--calcite-animation-timing), box-shadow var(--calcite-animation-timing)}:host *{box-sizing:border-box}calcite-pick-list-item{position:relative;margin:0px;flex-grow:1;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([active]),:host([selected]){--tw-shadow:0 0 0 1px var(--calcite-ui-brand);--tw-shadow-colored:0 0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.handle{display:flex;cursor:move;align-items:center;justify-content:center;border-style:none;background-color:transparent;padding-block:0px;padding-inline:0.25rem;color:var(--calcite-ui-border-input);outline-color:transparent}.handle:hover{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}.handle:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.handle--activated{background-color:var(--calcite-ui-foreground-3);color:var(--calcite-ui-text-1)}.handle calcite-icon{color:inherit}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}";
1695
+
1696
+ const ValueListItem = class {
1697
+ constructor(hostRef) {
1698
+ registerInstance(this, hostRef);
1699
+ this.calciteListItemRemove = createEvent(this, "calciteListItemRemove", 7);
1700
+ /**
1701
+ * When `true`, interaction is prevented and the component is displayed with lower opacity.
1702
+ */
1703
+ this.disabled = false;
1704
+ /**
1705
+ * @internal
1706
+ */
1707
+ this.disableDeselect = false;
1708
+ /**
1709
+ * When `true`, prevents the content of the component from user interaction.
1710
+ */
1711
+ this.nonInteractive = false;
1712
+ /**
1713
+ * @internal
1714
+ */
1715
+ this.handleActivated = false;
1716
+ /**
1717
+ * Determines the icon SVG symbol that will be shown. Options are circle, square, grip or null.
1718
+ *
1719
+ * @see [ICON_TYPES](https://github.com/Esri/calcite-components/blob/master/src/components/pick-list/resources.ts#L5)
1720
+ */
1721
+ this.icon = null;
1722
+ /**
1723
+ * When `true`, adds an action to remove the component.
1724
+ */
1725
+ this.removable = false;
1726
+ /**
1727
+ * When `true`, the component is selected.
1728
+ */
1729
+ this.selected = false;
1730
+ this.pickListItem = null;
1731
+ this.guid = `calcite-value-list-item-${guid()}`;
1732
+ // --------------------------------------------------------------------------
1733
+ //
1734
+ // Private Methods
1735
+ //
1736
+ // --------------------------------------------------------------------------
1737
+ this.getPickListRef = (el) => (this.pickListItem = el);
1738
+ this.handleKeyDown = (event) => {
1739
+ if (event.key === " ") {
1740
+ this.handleActivated = !this.handleActivated;
1741
+ }
1742
+ };
1743
+ this.handleBlur = () => {
1744
+ this.handleActivated = false;
1745
+ };
1746
+ this.handleSelectChange = (event) => {
1747
+ this.selected = event.detail.selected;
1748
+ };
1749
+ }
1750
+ // --------------------------------------------------------------------------
1751
+ //
1752
+ // Lifecycle
1753
+ //
1754
+ // --------------------------------------------------------------------------
1755
+ connectedCallback() {
1756
+ connectConditionalSlotComponent(this);
1757
+ }
1758
+ disconnectedCallback() {
1759
+ disconnectConditionalSlotComponent(this);
1760
+ }
1761
+ componentDidRender() {
1762
+ updateHostInteraction(this, this.el.closest("calcite-value-list") ? "managed" : false);
1763
+ }
1764
+ // --------------------------------------------------------------------------
1765
+ //
1766
+ // Public Methods
1767
+ //
1768
+ // --------------------------------------------------------------------------
1769
+ /**
1770
+ * Toggle the selection state. By default this won't trigger an event.
1771
+ * The first argument allows the value to be coerced, rather than swapping values.
1772
+ *
1773
+ * @param coerce
1774
+ */
1775
+ async toggleSelected(coerce) {
1776
+ this.pickListItem.toggleSelected(coerce);
1777
+ }
1778
+ /** Set focus on the component. */
1779
+ async setFocus() {
1780
+ var _a;
1781
+ (_a = this.pickListItem) === null || _a === void 0 ? void 0 : _a.setFocus();
1782
+ }
1783
+ calciteListItemChangeHandler(event) {
1784
+ // adjust item payload from wrapped item before bubbling
1785
+ event.detail.item = this.el;
1786
+ }
1787
+ // --------------------------------------------------------------------------
1788
+ //
1789
+ // Render Methods
1790
+ //
1791
+ // --------------------------------------------------------------------------
1792
+ renderActionsEnd() {
1793
+ const { el } = this;
1794
+ const hasActionsEnd = getSlotted(el, SLOTS.actionsEnd);
1795
+ return hasActionsEnd ? (h("slot", { name: SLOTS.actionsEnd, slot: SLOTS$6.actionsEnd })) : null;
1796
+ }
1797
+ renderActionsStart() {
1798
+ const { el } = this;
1799
+ const hasActionsStart = getSlotted(el, SLOTS.actionsStart);
1800
+ return hasActionsStart ? (h("slot", { name: SLOTS.actionsStart, slot: SLOTS$6.actionsStart })) : null;
1801
+ }
1802
+ renderHandle() {
1803
+ const { icon } = this;
1804
+ if (icon === ICON_TYPES$1.grip) {
1805
+ return (h("span", { class: {
1806
+ [CSS$4.handle]: true,
1807
+ [CSS$4.handleActivated]: this.handleActivated
1808
+ }, "data-js-handle": true, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, role: "button", tabindex: "0" }, h("calcite-icon", { icon: ICONS.drag, scale: "s" })));
1809
+ }
1810
+ }
1811
+ render() {
1812
+ return (h(Host, { id: this.el.id || this.guid }, this.renderHandle(), h("calcite-pick-list-item", { description: this.description, disableDeselect: this.disableDeselect, disabled: this.disabled, label: this.label, metadata: this.metadata, nonInteractive: this.nonInteractive, onCalciteListItemChange: this.handleSelectChange, ref: this.getPickListRef, removable: this.removable, selected: this.selected, value: this.value }, this.renderActionsStart(), this.renderActionsEnd())));
1813
+ }
1814
+ get el() { return getElement(this); }
1815
+ };
1816
+ ValueListItem.style = valueListItemCss;
1817
+
1818
+ const jsonEditorCss = ":host{display:block;box-sizing:border-box;margin-left:0.75rem;margin-right:0.75rem;min-width:0;flex-grow:0;flex-shrink:1}:host-group-1-up>.block{flex-basis:calc(100% - 1.5rem);width:calc(100% - 1.5rem)}:host-group-2-up>.block{flex-basis:calc(50% - 1.5rem);width:calc(50% - 1.5rem)}:host-group-3-up>.block{flex-basis:calc(33.33333% - 1.5rem);width:calc(33.33333% - 1.5rem)}:host-group-4-up>.block{flex-basis:calc(25% - 1.5rem);width:calc(25% - 1.5rem)}:host-group-5-up>.block{flex-basis:calc(20% - 1.5rem);width:calc(20% - 1.5rem)}:host-group-6-up>.block{flex-basis:calc(16.66666% - 1.5rem);width:calc(16.66666% - 1.5rem)}:host-group-7-up>.block{flex-basis:calc(14.2857% - 1.5rem);width:calc(14.2857% - 1.5rem)}:host-group-8-up>.block{flex-basis:calc(12.5% - 1.5rem);width:calc(12.5% - 1.5rem)}.tablet-block-group-1-up>:host{flex-basis:calc(100% - 1.5rem);width:calc(100% - 1.5rem)}.tablet-block-group-2-up>:host{flex-basis:calc(50% - 1.5rem);width:calc(50% - 1.5rem)}.tablet-block-group-3-up>:host{flex-basis:calc(33.33333% - 1.5rem);width:calc(33.33333% - 1.5rem)}.tablet-block-group-4-up>:host{flex-basis:calc(25% - 1.5rem);width:calc(25% - 1.5rem)}.tablet-block-group-5-up>:host{flex-basis:calc(20% - 1.5rem);width:calc(20% - 1.5rem)}.tablet-block-group-6-up>:host{flex-basis:calc(16.66666% - 1.5rem);width:calc(16.66666% - 1.5rem)}.tablet-block-group-7-up>:host{flex-basis:calc(14.2857% - 1.5rem);width:calc(14.2857% - 1.5rem)}.tablet-block-group-8-up>:host{flex-basis:calc(12.5% - 1.5rem);width:calc(12.5% - 1.5rem)}.phone-block-group-1-up>:host{flex-basis:calc(100% - 1.5rem);width:calc(100% - 1.5rem)}.phone-block-group-2-up>:host{flex-basis:calc(50% - 1.5rem);width:calc(50% - 1.5rem)}.phone-block-group-3-up>:host{flex-basis:calc(33.33333% - 1.5rem);width:calc(33.33333% - 1.5rem)}.phone-block-group-4-up>:host{flex-basis:calc(25% - 1.5rem);width:calc(25% - 1.5rem)}.phone-block-group-5-up>:host{flex-basis:calc(20% - 1.5rem);width:calc(20% - 1.5rem)}.phone-block-group-6-up>:host{flex-basis:calc(16.66666% - 1.5rem);width:calc(16.66666% - 1.5rem)}.phone-block-group-7-up>:host{flex-basis:calc(14.2857% - 1.5rem);width:calc(14.2857% - 1.5rem)}.phone-block-group-8-up>:host{flex-basis:calc(12.5% - 1.5rem);width:calc(12.5% - 1.5rem)}.code-face :host{letter-spacing:0em;font-family:\"Consolas\", \"Andale Mono\", \"Lucida Console\", \"Monaco\", monospace;font-weight:400;font-style:normal}.code-face :host b,.code-face :host strong{font-weight:400}.code-italic :host{letter-spacing:0em;font-family:\"Consolas\", \"Andale Mono\", \"Lucida Console\", \"Monaco\", monospace;font-weight:400;font-style:italic}.code-italic :host b,.code-italic :host strong{font-weight:400}.editor-container{position:relative;height:100%}.editor-controls{height:2.75rem;padding-right:0.5rem;background-color:#F4F4F4}.editor-buttons{float:right}html[dir=rtl] .editor-buttons{float:left}.edit-error-flag{padding-top:0.5rem;color:red;visibility:hidden}.edit-button{-webkit-padding-start:0.5rem;padding-inline-start:0.5rem}.editor-text{width:100%;overflow-y:auto;background-color:#FFFFFF}.edit-width{width:100%}.edit-parent{box-sizing:border-box;width:100%;height:calc(100% - 46px)}.json-edit-container{height:100%;width:100%;border:1px #808080 solid}.padding-right{-webkit-padding-end:0.125rem;padding-inline-end:0.125rem}.btn{margin-bottom:1rem;display:flex;align-content:center;height:25px;width:120px}.select-ctrl{margin-bottom:1rem}.all-edits{margin-top:4rem}.floating-title{font-size:2rem;z-index:100;position:absolute;left:0.5rem;pointer-events:none}.floating-title-button{pointer-events:auto}.json-editor-position1{position:absolute;left:0px;top:0px;margin:0px;height:100%;width:100%;padding:0px;overflow:hidden;max-height:100% !important}.json-editor-position2a{position:absolute;left:0px;top:0px;margin:0px;height:100%;width:50%;padding:0px;overflow:hidden;max-height:100% !important}.json-editor-position2b{position:absolute;right:0px;top:0px;margin:0px;height:100%;width:50%;padding:0px;overflow:hidden;max-height:100% !important}";
1819
+
1820
+ const JsonEditor = class {
1821
+ constructor(hostRef) {
1822
+ registerInstance(this, hostRef);
1823
+ this._loaded = false;
1824
+ this._useDiffEditor = false;
1825
+ this.hasChanges = false;
1826
+ this.hasErrors = false;
1827
+ this.instanceid = "";
1828
+ this.value = "";
1829
+ }
1830
+ //--------------------------------------------------------------------------
1831
+ //
1832
+ // Lifecycle
1833
+ //
1834
+ //--------------------------------------------------------------------------
1835
+ /**
1836
+ * StencilJS: Called once just after the component is fully loaded and the first render() occurs.
1837
+ */
1838
+ componentDidLoad() {
1839
+ const editorContainer = document.getElementById(`${this.instanceid}-container`);
1840
+ if (editorContainer) {
1841
+ this._editor = monaco.editor.create(editorContainer, {
1842
+ value: this.value,
1843
+ language: "json",
1844
+ theme: "vs",
1845
+ minimap: {
1846
+ enabled: false
1847
+ },
1848
+ automaticLayout: true,
1849
+ scrollBeyondLastLine: false
1850
+ });
1851
+ this._currentModel = this._editor.getModel();
1852
+ this._contentChanged = this._currentModel.onDidChangeContent(this._onEditorChange.bind(this));
1853
+ // Intercept the monaco function call that shows error markers to see if our content has errors
1854
+ const setModelMarkers = monaco.editor.setModelMarkers;
1855
+ const self = this;
1856
+ monaco.editor.setModelMarkers = function (model, owner, markers) {
1857
+ var _a, _b;
1858
+ // If this call was for our model, it acts like an onEditorChange event
1859
+ // but gives us access to the error state as well
1860
+ if (model.id === self._currentModel.id) {
1861
+ // Set the error state & dispatch event if state has changed
1862
+ self._flagEditorHasErrors(markers.length > 0);
1863
+ // Set the changed state & dispatch event if state has changed, but only if there are no errors
1864
+ if (!self.hasErrors) {
1865
+ self._flagEditorHasChanges((_a = self._currentModel) === null || _a === void 0 ? void 0 : _a.canUndo());
1866
+ if ((_b = self._currentModel) === null || _b === void 0 ? void 0 : _b.canUndo()) {
1867
+ self._flagEditorContentChanged();
1868
+ }
1869
+ }
1870
+ // Show the error flag if there are errors
1871
+ const errorFlag = document.getElementById(`${self.instanceid}-errorFlag`);
1872
+ errorFlag.style.visibility = self.hasErrors ? "visible" : "hidden";
1873
+ }
1874
+ // Pass on the call to the next editor in a chain of intercepts or, finally, to monaco
1875
+ setModelMarkers.call(monaco.editor, model, owner, markers);
1876
+ };
1877
+ this._diffEditor = monaco.editor.createDiffEditor(document.getElementById(`${this.instanceid}-diff-container`), {
1878
+ automaticLayout: true
1879
+ });
1880
+ this._setDiffModel();
1881
+ this._loaded = true;
1882
+ this._toggleUndoRedo();
1883
+ }
1884
+ }
1885
+ /**
1886
+ * StencilJS: Called once just after the component is first connected to the DOM.
1887
+ *
1888
+ * @returns Promise when complete
1889
+ */
1890
+ async componentWillLoad() {
1891
+ this._initValueObserver();
1892
+ await this._getTranslations();
1893
+ return;
1894
+ }
1895
+ /**
1896
+ * Renders the component.
1897
+ */
1898
+ render() {
1899
+ return (h(Host, null, h("div", { id: `${this.instanceid}-editor-container`, class: "editor-container padding-right" }, h("div", { class: "editor-controls" }, h("div", { class: "editor-buttons" }, h("calcite-icon", { id: `${this.instanceid}-errorFlag`, icon: "exclamation-mark-triangle", title: this._translations.errorFlag, scale: "s", class: "edit-error-flag" }), h("calcite-button", { id: `${this.instanceid}-undo`, color: "blue", appearance: "solid", title: this._translations.undo, onClick: () => this._undo(), scale: "s", class: "edit-button" }, h("calcite-icon", { icon: "undo", scale: "s" })), h("calcite-button", { id: `${this.instanceid}-redo`, color: "blue", appearance: "solid", title: this._translations.redo, onClick: () => this._redo(), scale: "s", class: "edit-button" }, h("calcite-icon", { icon: "redo", scale: "s" })), h("calcite-button", { id: `${this.instanceid}-diff`, color: "blue", appearance: "solid", title: this._translations.diff, onClick: () => this._toggleEditor(), scale: "s", class: "edit-button" }, h("calcite-icon", { icon: "compare", scale: "s" })), h("calcite-button", { id: `${this.instanceid}-search`, appearance: "outline", color: "blue", title: this._translations.search, onClick: () => this._search(), scale: "s", class: "edit-button" }, h("calcite-icon", { icon: "search", scale: "s" })), h("calcite-button", { id: `${this.instanceid}-reset`, color: "blue", appearance: "solid", disabled: true, title: this._translations.cancelEdits, onClick: () => this._reset(), scale: "s", class: "edit-button" }, h("calcite-icon", { icon: "reset", scale: "s" })))), h("div", { class: "edit-parent" }, h("div", { id: `${this.instanceid}-container`, class: "json-edit-container" }), h("div", { id: `${this.instanceid}-diff-container`, class: "json-edit-container display-none" })))));
1900
+ }
1901
+ //--------------------------------------------------------------------------
1902
+ //
1903
+ // Event Listeners
1904
+ //
1905
+ //--------------------------------------------------------------------------
1906
+ //--------------------------------------------------------------------------
1907
+ //
1908
+ // Events
1909
+ //
1910
+ //--------------------------------------------------------------------------
1911
+ //--------------------------------------------------------------------------
1912
+ //
1913
+ // Public Methods (async)
1914
+ //
1915
+ //--------------------------------------------------------------------------
1916
+ /**
1917
+ * Gets the contents of the editor.
1918
+ *
1919
+ * @returns Promise resolving with the current contents of the editor
1920
+ */
1921
+ async getEditorContents() {
1922
+ return new Promise((resolve, reject) => {
1923
+ try {
1924
+ const currentValue = this._currentModel.getValue();
1925
+ resolve(currentValue);
1926
+ }
1927
+ catch (e) {
1928
+ reject(e);
1929
+ }
1930
+ });
1931
+ }
1932
+ /**
1933
+ * Frees the editor events and memory; to be called when the web component is no longer needed.
1934
+ *
1935
+ * Because the component lifecycle doesn't include an "onDestroy" event
1936
+ * (@see https://stenciljs.com/docs/component-lifecycle#disconnectedcallback)
1937
+ * and TypeScript/JavaScript does automatic garbage collection without a callback
1938
+ * hook until ES2021
1939
+ * (@see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/FinalizationRegistry),
1940
+ * this cleanup call needs to be called manually.
1941
+ */
1942
+ async prepareForDeletion() {
1943
+ var _a, _b, _c, _d, _e;
1944
+ (_a = this._searchBtnHandler) === null || _a === void 0 ? void 0 : _a.removeEventListener("click", this._search);
1945
+ (_b = this._cancelEditsBtnHandler) === null || _b === void 0 ? void 0 : _b.removeEventListener("click", this._reset);
1946
+ (_c = this._valueObserver) === null || _c === void 0 ? void 0 : _c.disconnect();
1947
+ (_d = this._contentChanged) === null || _d === void 0 ? void 0 : _d.dispose();
1948
+ (_e = this._editor) === null || _e === void 0 ? void 0 : _e.dispose();
1949
+ }
1950
+ /**
1951
+ * Replaces the current selection with the supplied text, inserting if nothing is selected.
1952
+ *
1953
+ * @param replacement Text to use for replacement or insertion
1954
+ * @returns Promise resolving when function is done
1955
+ */
1956
+ async replaceCurrentSelection(replacement) {
1957
+ const currentSelection = this._editor.getSelection();
1958
+ this._editor.executeEdits("", [
1959
+ { range: currentSelection, text: replacement }
1960
+ ]);
1961
+ }
1962
+ /**
1963
+ * Resets the contents of the editor with the current `value`.
1964
+ *
1965
+ * @returns Promise resolving when function is done
1966
+ */
1967
+ async reset() {
1968
+ return new Promise((resolve, reject) => {
1969
+ try {
1970
+ this._reset();
1971
+ resolve({ success: true });
1972
+ }
1973
+ catch (e) {
1974
+ reject(e);
1975
+ }
1976
+ });
1977
+ }
1978
+ //--------------------------------------------------------------------------
1979
+ //
1980
+ // Private Methods
1981
+ //
1982
+ //--------------------------------------------------------------------------
1983
+ /**
1984
+ * Disables a button.
1985
+ *
1986
+ * @param buttonId Id of button to disable
1987
+ *
1988
+ * @protected
1989
+ */
1990
+ _disableButton(buttonId) {
1991
+ var _a;
1992
+ (_a = document.getElementById(buttonId)) === null || _a === void 0 ? void 0 : _a.setAttribute("disabled", "");
1993
+ }
1994
+ /**
1995
+ * Enables a button.
1996
+ *
1997
+ * @param buttonId Id of button to enable
1998
+ *
1999
+ * @protected
2000
+ */
2001
+ _enableButton(buttonId) {
2002
+ var _a;
2003
+ (_a = document.getElementById(buttonId)) === null || _a === void 0 ? void 0 : _a.removeAttribute("disabled");
2004
+ }
2005
+ /**
2006
+ * Dispatches an event that the editor's content has changed.
2007
+ *
2008
+ * @protected
2009
+ */
2010
+ _flagEditorContentChanged() {
2011
+ // Event for notifying that the editor contents have changed
2012
+ window.dispatchEvent(new CustomEvent("solutionEditorContentChanged", {
2013
+ detail: {
2014
+ id: this.instanceid,
2015
+ contents: this._currentModel.getValue()
2016
+ },
2017
+ bubbles: true,
2018
+ cancelable: false,
2019
+ composed: true
2020
+ }));
2021
+ }
2022
+ /**
2023
+ * Sets the editor's flag indicating if it has changes and dispatches an event when
2024
+ * the flag value changes.
2025
+ *
2026
+ * @param flagHasChanges Current state of change in the editor; if it doesn't match the value saved in this
2027
+ * object, an event is dispatched with the new value and the saved value is updated
2028
+ *
2029
+ * @protected
2030
+ */
2031
+ _flagEditorHasChanges(flagHasChanges) {
2032
+ // Event for notifying if the editor has updated the value of its hasChanges property
2033
+ if (this.hasChanges !== flagHasChanges) {
2034
+ window.dispatchEvent(new CustomEvent("solutionEditorHasChanges", {
2035
+ detail: flagHasChanges,
2036
+ bubbles: true,
2037
+ cancelable: false,
2038
+ composed: true
2039
+ }));
2040
+ this.hasChanges = flagHasChanges;
2041
+ }
2042
+ }
2043
+ /**
2044
+ * Sets the editor's flag indicating if it has errors and dispatches an event when
2045
+ * the flag value changes.
2046
+ *
2047
+ * @param flagHasErrors Current state of errors in the editor; if it doesn't match the value saved in this
2048
+ * object, an event is dispatched with the new value and the saved value is updated
2049
+ *
2050
+ * @protected
2051
+ */
2052
+ _flagEditorHasErrors(flagHasErrors) {
2053
+ // Event for notifying if the editor has updated the value of its hasErrors property
2054
+ if (this.hasErrors !== flagHasErrors) {
2055
+ window.dispatchEvent(new CustomEvent("solutionEditorHasErrors", {
2056
+ detail: flagHasErrors,
2057
+ bubbles: true,
2058
+ cancelable: false,
2059
+ composed: true
2060
+ }));
2061
+ this.hasErrors = flagHasErrors;
2062
+ }
2063
+ }
2064
+ /**
2065
+ * Fetches the component's translations
2066
+ *
2067
+ * @protected
2068
+ */
2069
+ async _getTranslations() {
2070
+ const translations = await getLocaleComponentStrings(this.el);
2071
+ this._translations = translations[0];
2072
+ }
2073
+ /**
2074
+ * Initializes the observer that will monitor and respond to changes of the value.
2075
+ *
2076
+ * @protected
2077
+ */
2078
+ _initValueObserver() {
2079
+ this._valueObserver = new MutationObserver(ml => {
2080
+ ml.forEach(mutation => {
2081
+ if (mutation.type === 'attributes' && mutation.attributeName === "value") {
2082
+ const newValue = mutation.target[mutation.attributeName];
2083
+ if ((newValue !== mutation.oldValue && this._loaded)) {
2084
+ this._currentModel.setValue(this.value);
2085
+ }
2086
+ }
2087
+ });
2088
+ });
2089
+ this._valueObserver.observe(this.el, { attributes: true, attributeOldValue: true });
2090
+ }
2091
+ /**
2092
+ * Handles activites appropriate to changes in the editor.
2093
+ *
2094
+ * @protected
2095
+ */
2096
+ _onEditorChange() {
2097
+ // Note: we're not flagging that the editor has changes here because this event
2098
+ // arrives before the model markers event, which indicates errors. We don't want
2099
+ // to notify about changes if there are errors.
2100
+ this._toggleUndoRedo();
2101
+ }
2102
+ /**
2103
+ * Redoes the previous edit operation.
2104
+ *
2105
+ * @protected
2106
+ */
2107
+ _redo() {
2108
+ var _a;
2109
+ if ((_a = this._currentModel) === null || _a === void 0 ? void 0 : _a.canRedo()) {
2110
+ this._currentModel.redo();
2111
+ this._toggleUndoRedo();
2112
+ }
2113
+ }
2114
+ /**
2115
+ * Resets the stored model to the original value.
2116
+ *
2117
+ * @protected
2118
+ */
2119
+ _reset() {
2120
+ // Restore the original value
2121
+ this._currentModel.setValue(this.value);
2122
+ // update the ui
2123
+ this._toggleUndoRedo();
2124
+ }
2125
+ /**
2126
+ * Handles click on "Search" button.
2127
+ *
2128
+ * @protected
2129
+ */
2130
+ _search() {
2131
+ this._editor.trigger('toggleFind', 'actions.find');
2132
+ }
2133
+ /**
2134
+ * Sets the models for the diff editor.
2135
+ *
2136
+ * @protected
2137
+ */
2138
+ _setDiffModel() {
2139
+ if (this._diffEditor) {
2140
+ this._diffEditor.setModel({
2141
+ original: monaco.editor.createModel(this.value, "json"),
2142
+ modified: this._editor.getModel()
2143
+ });
2144
+ }
2145
+ }
2146
+ /**
2147
+ * Shows/Hides the appropriate editor: regular or diff.
2148
+ *
2149
+ * @protected
2150
+ */
2151
+ _toggleEditor() {
2152
+ this._useDiffEditor = !this._useDiffEditor;
2153
+ let diffContainer = document.getElementById(`${this.instanceid}-diff-container`);
2154
+ let container = document.getElementById(`${this.instanceid}-container`);
2155
+ if (this._useDiffEditor) {
2156
+ this._setDiffModel();
2157
+ diffContainer.classList.remove("display-none");
2158
+ container.classList.add("display-none");
2159
+ }
2160
+ else {
2161
+ diffContainer.classList.add("display-none");
2162
+ container.classList.remove("display-none");
2163
+ }
2164
+ }
2165
+ /**
2166
+ * Toggles the undo and redo buttons.
2167
+ *
2168
+ * @protected
2169
+ */
2170
+ _toggleUndoRedo() {
2171
+ var _a, _b, _c, _d;
2172
+ if ((_a = this._currentModel) === null || _a === void 0 ? void 0 : _a.canUndo()) {
2173
+ this._enableButton(`${this.instanceid}-undo`);
2174
+ }
2175
+ else {
2176
+ this._disableButton(`${this.instanceid}-undo`);
2177
+ }
2178
+ if ((_b = this._currentModel) === null || _b === void 0 ? void 0 : _b.canRedo()) {
2179
+ this._enableButton(`${this.instanceid}-redo`);
2180
+ }
2181
+ else {
2182
+ this._disableButton(`${this.instanceid}-redo`);
2183
+ }
2184
+ if (((_c = this._currentModel) === null || _c === void 0 ? void 0 : _c.canUndo()) || ((_d = this._currentModel) === null || _d === void 0 ? void 0 : _d.canRedo())) {
2185
+ this._enableButton(`${this.instanceid}-reset`);
2186
+ }
2187
+ else {
2188
+ this._disableButton(`${this.instanceid}-reset`);
2189
+ }
2190
+ }
2191
+ /**
2192
+ * Undoes the current edit operation.
2193
+ *
2194
+ * @protected
2195
+ */
2196
+ _undo() {
2197
+ var _a;
2198
+ if ((_a = this._currentModel) === null || _a === void 0 ? void 0 : _a.canUndo()) {
2199
+ this._currentModel.undo();
2200
+ this._toggleUndoRedo();
2201
+ }
2202
+ }
2203
+ static get assetsDirs() { return ["assets"]; }
2204
+ get el() { return getElement(this); }
2205
+ };
2206
+ JsonEditor.style = jsonEditorCss;
2207
+
2208
+ const solutionOrganizationVariablesCss = ":host{display:block;box-sizing:border-box;margin-left:0.75rem;margin-right:0.75rem;min-width:0;flex-grow:0;flex-shrink:1}:host-group-1-up>.block{flex-basis:calc(100% - 1.5rem);width:calc(100% - 1.5rem)}:host-group-2-up>.block{flex-basis:calc(50% - 1.5rem);width:calc(50% - 1.5rem)}:host-group-3-up>.block{flex-basis:calc(33.33333% - 1.5rem);width:calc(33.33333% - 1.5rem)}:host-group-4-up>.block{flex-basis:calc(25% - 1.5rem);width:calc(25% - 1.5rem)}:host-group-5-up>.block{flex-basis:calc(20% - 1.5rem);width:calc(20% - 1.5rem)}:host-group-6-up>.block{flex-basis:calc(16.66666% - 1.5rem);width:calc(16.66666% - 1.5rem)}:host-group-7-up>.block{flex-basis:calc(14.2857% - 1.5rem);width:calc(14.2857% - 1.5rem)}:host-group-8-up>.block{flex-basis:calc(12.5% - 1.5rem);width:calc(12.5% - 1.5rem)}.tablet-block-group-1-up>:host{flex-basis:calc(100% - 1.5rem);width:calc(100% - 1.5rem)}.tablet-block-group-2-up>:host{flex-basis:calc(50% - 1.5rem);width:calc(50% - 1.5rem)}.tablet-block-group-3-up>:host{flex-basis:calc(33.33333% - 1.5rem);width:calc(33.33333% - 1.5rem)}.tablet-block-group-4-up>:host{flex-basis:calc(25% - 1.5rem);width:calc(25% - 1.5rem)}.tablet-block-group-5-up>:host{flex-basis:calc(20% - 1.5rem);width:calc(20% - 1.5rem)}.tablet-block-group-6-up>:host{flex-basis:calc(16.66666% - 1.5rem);width:calc(16.66666% - 1.5rem)}.tablet-block-group-7-up>:host{flex-basis:calc(14.2857% - 1.5rem);width:calc(14.2857% - 1.5rem)}.tablet-block-group-8-up>:host{flex-basis:calc(12.5% - 1.5rem);width:calc(12.5% - 1.5rem)}.phone-block-group-1-up>:host{flex-basis:calc(100% - 1.5rem);width:calc(100% - 1.5rem)}.phone-block-group-2-up>:host{flex-basis:calc(50% - 1.5rem);width:calc(50% - 1.5rem)}.phone-block-group-3-up>:host{flex-basis:calc(33.33333% - 1.5rem);width:calc(33.33333% - 1.5rem)}.phone-block-group-4-up>:host{flex-basis:calc(25% - 1.5rem);width:calc(25% - 1.5rem)}.phone-block-group-5-up>:host{flex-basis:calc(20% - 1.5rem);width:calc(20% - 1.5rem)}.phone-block-group-6-up>:host{flex-basis:calc(16.66666% - 1.5rem);width:calc(16.66666% - 1.5rem)}.phone-block-group-7-up>:host{flex-basis:calc(14.2857% - 1.5rem);width:calc(14.2857% - 1.5rem)}.phone-block-group-8-up>:host{flex-basis:calc(12.5% - 1.5rem);width:calc(12.5% - 1.5rem)}.code-face :host{letter-spacing:0em;font-family:\"Consolas\", \"Andale Mono\", \"Lucida Console\", \"Monaco\", monospace;font-weight:400;font-style:normal}.code-face :host b,.code-face :host strong{font-weight:400}.code-italic :host{letter-spacing:0em;font-family:\"Consolas\", \"Andale Mono\", \"Lucida Console\", \"Monaco\", monospace;font-weight:400;font-style:italic}.code-italic :host b,.code-italic :host strong{font-weight:400}.container-border{overflow-y:auto}.org-var-header{margin-left:0px;margin-right:0px;margin-top:0px;margin-bottom:1rem}";
2209
+
2210
+ const SolutionOrganizationVariables = class {
2211
+ constructor(hostRef) {
2212
+ registerInstance(this, hostRef);
2213
+ this.organizationVariableSelected = createEvent(this, "organizationVariableSelected", 7);
2214
+ this.value = "";
2215
+ this._organizationVariables = [];
2216
+ this._translations = undefined;
2217
+ }
2218
+ valueWatchHandler() {
2219
+ this._organizationVariables = JSON.parse(this.value);
2220
+ }
2221
+ //--------------------------------------------------------------------------
2222
+ //
2223
+ // Lifecycle
2224
+ //
2225
+ //--------------------------------------------------------------------------
2226
+ /**
2227
+ * StencilJS: Called once just after the component is first connected to the DOM.
2228
+ */
2229
+ async componentWillLoad() {
2230
+ return this._getTranslations();
2231
+ }
2232
+ /**
2233
+ * Renders the component.
2234
+ */
2235
+ render() {
2236
+ return (h(Host, null, h("div", null, h("h4", { class: "org-var-header" }, this._translations.orgVariables)), h("div", { class: "container-border" }, h("calcite-tree", { id: "variable-label" }, this._renderHierarchy(this._organizationVariables)))));
2237
+ }
2238
+ //--------------------------------------------------------------------------
2239
+ //
2240
+ // Public Methods (async)
2241
+ //
2242
+ //--------------------------------------------------------------------------
2243
+ //--------------------------------------------------------------------------
2244
+ //
2245
+ // Private Methods
2246
+ //
2247
+ //--------------------------------------------------------------------------
2248
+ /**
2249
+ * Renders the organization based variable items the user can insert at runtime
2250
+ *
2251
+ * @param objs a list of organization variables to render
2252
+ */
2253
+ _renderHierarchy(objs) {
2254
+ const hierarchy = objs.map(obj => {
2255
+ return (h("calcite-tree-item", { onClick: () => this._treeItemSelected(obj.id, obj.value) }, obj.title));
2256
+ });
2257
+ return hierarchy;
2258
+ }
2259
+ /**
2260
+ * Publishes the `organizationVariableSelected` event containing `itemId`, the id of the selected variable and the value of the variable.
2261
+ *
2262
+ * @param itemId Item id as reported by click event
2263
+ * @param value Variable id as reported by click event
2264
+ */
2265
+ _treeItemSelected(itemId, value) {
2266
+ this.organizationVariableSelected.emit({
2267
+ itemId,
2268
+ value
2269
+ });
2270
+ }
2271
+ /**
2272
+ * Fetches the component's translations
2273
+ *
2274
+ * @protected
2275
+ */
2276
+ async _getTranslations() {
2277
+ const translations = await getLocaleComponentStrings(this.el);
2278
+ this._translations = translations[0];
2279
+ }
2280
+ get el() { return getElement(this); }
2281
+ static get watchers() { return {
2282
+ "value": ["valueWatchHandler"]
2283
+ }; }
2284
+ };
2285
+ SolutionOrganizationVariables.style = solutionOrganizationVariablesCss;
2286
+
2287
+ const solutionVariablesCss = ":host{display:block;box-sizing:border-box;margin-left:0.75rem;margin-right:0.75rem;min-width:0;flex-grow:0;flex-shrink:1}:host-group-1-up>.block{flex-basis:calc(100% - 1.5rem);width:calc(100% - 1.5rem)}:host-group-2-up>.block{flex-basis:calc(50% - 1.5rem);width:calc(50% - 1.5rem)}:host-group-3-up>.block{flex-basis:calc(33.33333% - 1.5rem);width:calc(33.33333% - 1.5rem)}:host-group-4-up>.block{flex-basis:calc(25% - 1.5rem);width:calc(25% - 1.5rem)}:host-group-5-up>.block{flex-basis:calc(20% - 1.5rem);width:calc(20% - 1.5rem)}:host-group-6-up>.block{flex-basis:calc(16.66666% - 1.5rem);width:calc(16.66666% - 1.5rem)}:host-group-7-up>.block{flex-basis:calc(14.2857% - 1.5rem);width:calc(14.2857% - 1.5rem)}:host-group-8-up>.block{flex-basis:calc(12.5% - 1.5rem);width:calc(12.5% - 1.5rem)}.tablet-block-group-1-up>:host{flex-basis:calc(100% - 1.5rem);width:calc(100% - 1.5rem)}.tablet-block-group-2-up>:host{flex-basis:calc(50% - 1.5rem);width:calc(50% - 1.5rem)}.tablet-block-group-3-up>:host{flex-basis:calc(33.33333% - 1.5rem);width:calc(33.33333% - 1.5rem)}.tablet-block-group-4-up>:host{flex-basis:calc(25% - 1.5rem);width:calc(25% - 1.5rem)}.tablet-block-group-5-up>:host{flex-basis:calc(20% - 1.5rem);width:calc(20% - 1.5rem)}.tablet-block-group-6-up>:host{flex-basis:calc(16.66666% - 1.5rem);width:calc(16.66666% - 1.5rem)}.tablet-block-group-7-up>:host{flex-basis:calc(14.2857% - 1.5rem);width:calc(14.2857% - 1.5rem)}.tablet-block-group-8-up>:host{flex-basis:calc(12.5% - 1.5rem);width:calc(12.5% - 1.5rem)}.phone-block-group-1-up>:host{flex-basis:calc(100% - 1.5rem);width:calc(100% - 1.5rem)}.phone-block-group-2-up>:host{flex-basis:calc(50% - 1.5rem);width:calc(50% - 1.5rem)}.phone-block-group-3-up>:host{flex-basis:calc(33.33333% - 1.5rem);width:calc(33.33333% - 1.5rem)}.phone-block-group-4-up>:host{flex-basis:calc(25% - 1.5rem);width:calc(25% - 1.5rem)}.phone-block-group-5-up>:host{flex-basis:calc(20% - 1.5rem);width:calc(20% - 1.5rem)}.phone-block-group-6-up>:host{flex-basis:calc(16.66666% - 1.5rem);width:calc(16.66666% - 1.5rem)}.phone-block-group-7-up>:host{flex-basis:calc(14.2857% - 1.5rem);width:calc(14.2857% - 1.5rem)}.phone-block-group-8-up>:host{flex-basis:calc(12.5% - 1.5rem);width:calc(12.5% - 1.5rem)}.code-face :host{letter-spacing:0em;font-family:\"Consolas\", \"Andale Mono\", \"Lucida Console\", \"Monaco\", monospace;font-weight:400;font-style:normal}.code-face :host b,.code-face :host strong{font-weight:400}.code-italic :host{letter-spacing:0em;font-family:\"Consolas\", \"Andale Mono\", \"Lucida Console\", \"Monaco\", monospace;font-weight:400;font-style:italic}.code-italic :host b,.code-italic :host strong{font-weight:400}.container-border{overflow-y:hidden}.org-var-header{margin-top:1rem;margin-bottom:1rem;margin-left:0px;margin-right:0px}.icon-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}";
2288
+
2289
+ const SolutionVariables = class {
2290
+ constructor(hostRef) {
2291
+ registerInstance(this, hostRef);
2292
+ this.solutionVariableSelected = createEvent(this, "solutionVariableSelected", 7);
2293
+ this.value = "";
2294
+ this._solutionVariables = [];
2295
+ this._translations = undefined;
2296
+ }
2297
+ valueWatchHandler() {
2298
+ this._solutionVariables = JSON.parse(this.value);
2299
+ }
2300
+ //--------------------------------------------------------------------------
2301
+ //
2302
+ // Lifecycle
2303
+ //
2304
+ //--------------------------------------------------------------------------
2305
+ /**
2306
+ * StencilJS: Called once just after the component is first connected to the DOM.
2307
+ */
2308
+ componentWillLoad() {
2309
+ return this._getTranslations();
2310
+ }
2311
+ /**
2312
+ * Renders the component.
2313
+ */
2314
+ render() {
2315
+ return (h(Host, null, h("div", null, h("h4", { class: "org-var-header" }, this._translations.solVariables)), h("div", { class: "container-border" }, h("calcite-tree", { id: "variable-label" }, this._renderHierarchy(this._solutionVariables)))));
2316
+ }
2317
+ //--------------------------------------------------------------------------
2318
+ //
2319
+ // Public Methods (async)
2320
+ //
2321
+ //--------------------------------------------------------------------------
2322
+ //--------------------------------------------------------------------------
2323
+ //
2324
+ // Private Methods
2325
+ //
2326
+ //--------------------------------------------------------------------------
2327
+ /**
2328
+ * Render the solution item variables that the user can insert into temaplates at runtime.
2329
+ *
2330
+ * @param objs a list of variable items that have been gathered from the solutions templates
2331
+ */
2332
+ _renderHierarchy(objs) {
2333
+ const hierarchy = objs.map(obj => {
2334
+ return obj.dependencies && obj.dependencies.length > 0 ? (h("calcite-tree-item", { onClick: (evt) => this._toggleExpand(evt) }, h("solution-item-icon", { type: obj.type }), h("span", { class: "icon-text", title: obj.title }, obj.title), h("calcite-tree", { slot: "children" }, this._renderHierarchy(obj.dependencies)))) : (h("calcite-tree-item", { onClick: () => this._treeItemSelected(obj.id, obj.value) }, obj.title));
2335
+ });
2336
+ return hierarchy;
2337
+ }
2338
+ /**
2339
+ * Publishes the `solutionVariableSelected` event containing `itemId`, the id of the selected variable and the value of the variable.
2340
+ *
2341
+ * @param id Item id as reported by click event
2342
+ * @param value Variable id as reported by click event
2343
+ */
2344
+ _treeItemSelected(id, value) {
2345
+ this.solutionVariableSelected.emit({
2346
+ itemId: id,
2347
+ value
2348
+ });
2349
+ }
2350
+ /**
2351
+ * Toggle the tree item that was clicked
2352
+ *
2353
+ * @param evt the clicks mouse event
2354
+ */
2355
+ _toggleExpand(evt = undefined) {
2356
+ var _a;
2357
+ const treeItem = (_a = evt === null || evt === void 0 ? void 0 : evt.target) === null || _a === void 0 ? void 0 : _a.closest("calcite-tree-item");
2358
+ if (treeItem) {
2359
+ treeItem.expanded = !treeItem.expanded;
2360
+ }
2361
+ }
2362
+ /**
2363
+ * Fetches the component's translations
2364
+ *
2365
+ * @protected
2366
+ */
2367
+ async _getTranslations() {
2368
+ const translations = await getLocaleComponentStrings(this.el);
2369
+ this._translations = translations[0];
2370
+ }
2371
+ get el() { return getElement(this); }
2372
+ static get watchers() { return {
2373
+ "value": ["valueWatchHandler"]
2374
+ }; }
2375
+ };
2376
+ SolutionVariables.style = solutionVariablesCss;
2377
+
2378
+ export { Panel as calcite_panel, Shell as calcite_shell, ShellPanel as calcite_shell_panel, Tab as calcite_tab, TabNav as calcite_tab_nav, TabTitle as calcite_tab_title, Tabs as calcite_tabs, ValueList as calcite_value_list, ValueListItem as calcite_value_list_item, JsonEditor as json_editor, SolutionOrganizationVariables as solution_organization_variables, SolutionVariables as solution_variables };
2379
+
2380
+ //# sourceMappingURL=p-a1786d11.entry.js.map