@esri/solutions-components 0.0.2 → 0.0.4

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

Potentially problematic release.


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

Files changed (892) hide show
  1. package/README.md +6 -5
  2. package/dist/cjs/CalciteExpandToggle-3e4e3b6c.js +0 -2
  3. package/dist/cjs/CalciteHeading-d765addc.js +0 -2
  4. package/dist/cjs/_commonjsHelpers-84e109b5.js +26 -0
  5. package/dist/cjs/array-cd6c0c32.js +0 -2
  6. package/dist/cjs/calcite-accordion-item.cjs.entry.js +0 -2
  7. package/dist/cjs/calcite-accordion.cjs.entry.js +0 -2
  8. package/dist/cjs/calcite-action-bar.cjs.entry.js +0 -2
  9. package/dist/cjs/calcite-action-group.cjs.entry.js +0 -2
  10. package/dist/cjs/calcite-action-menu_3.cjs.entry.js +0 -2
  11. package/dist/cjs/calcite-action-pad.cjs.entry.js +0 -2
  12. package/dist/cjs/calcite-action.cjs.entry.js +0 -2
  13. package/dist/cjs/calcite-alert.cjs.entry.js +0 -2
  14. package/dist/cjs/calcite-avatar.cjs.entry.js +0 -2
  15. package/dist/cjs/calcite-block-section.cjs.entry.js +0 -2
  16. package/dist/cjs/calcite-block.cjs.entry.js +0 -2
  17. package/dist/cjs/calcite-button.cjs.entry.js +0 -2
  18. package/dist/cjs/calcite-card.cjs.entry.js +0 -2
  19. package/dist/cjs/calcite-checkbox_4.cjs.entry.js +0 -2
  20. package/dist/cjs/calcite-chip.cjs.entry.js +0 -2
  21. package/dist/cjs/calcite-color-picker-hex-input.cjs.entry.js +3 -4
  22. package/dist/cjs/calcite-color-picker-swatch.cjs.entry.js +2 -3
  23. package/dist/cjs/calcite-color-picker.cjs.entry.js +3 -4
  24. package/dist/cjs/calcite-combobox-item-group.cjs.entry.js +0 -2
  25. package/dist/cjs/calcite-combobox-item.cjs.entry.js +0 -2
  26. package/dist/cjs/calcite-combobox.cjs.entry.js +0 -2
  27. package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js +0 -2
  28. package/dist/cjs/calcite-date-picker.cjs.entry.js +0 -2
  29. package/dist/cjs/calcite-dropdown-group.cjs.entry.js +0 -2
  30. package/dist/cjs/calcite-dropdown-item.cjs.entry.js +0 -2
  31. package/dist/cjs/calcite-dropdown.cjs.entry.js +0 -2
  32. package/dist/cjs/calcite-fab.cjs.entry.js +0 -2
  33. package/dist/cjs/calcite-filter.cjs.entry.js +0 -2
  34. package/dist/cjs/calcite-flow.cjs.entry.js +0 -2
  35. package/dist/cjs/calcite-graph.cjs.entry.js +0 -2
  36. package/dist/cjs/calcite-handle.cjs.entry.js +0 -2
  37. package/dist/cjs/calcite-icon.cjs.entry.js +0 -2
  38. package/dist/cjs/calcite-inline-editable.cjs.entry.js +0 -2
  39. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +0 -2
  40. package/dist/cjs/calcite-input-message.cjs.entry.js +0 -2
  41. package/dist/cjs/calcite-input-time-picker.cjs.entry.js +0 -2
  42. package/dist/cjs/calcite-input_2.cjs.entry.js +0 -2
  43. package/dist/cjs/calcite-label.cjs.entry.js +0 -2
  44. package/dist/cjs/calcite-link.cjs.entry.js +0 -2
  45. package/dist/cjs/calcite-list-item-group.cjs.entry.js +0 -2
  46. package/dist/cjs/calcite-list-item.cjs.entry.js +0 -2
  47. package/dist/cjs/calcite-list.cjs.entry.js +0 -2
  48. package/dist/cjs/calcite-loader.cjs.entry.js +0 -2
  49. package/dist/cjs/calcite-modal.cjs.entry.js +0 -2
  50. package/dist/cjs/calcite-notice.cjs.entry.js +0 -2
  51. package/dist/cjs/calcite-option-group.cjs.entry.js +0 -2
  52. package/dist/cjs/calcite-option.cjs.entry.js +0 -2
  53. package/dist/cjs/calcite-pagination.cjs.entry.js +0 -2
  54. package/dist/cjs/calcite-panel_14.cjs.entry.js +41 -8
  55. package/dist/cjs/calcite-pick-list-group.cjs.entry.js +0 -2
  56. package/dist/cjs/calcite-pick-list-item.cjs.entry.js +0 -2
  57. package/dist/cjs/calcite-pick-list.cjs.entry.js +0 -2
  58. package/dist/cjs/calcite-popover-manager.cjs.entry.js +0 -2
  59. package/dist/cjs/calcite-radio-button-group.cjs.entry.js +0 -2
  60. package/dist/cjs/calcite-radio-button.cjs.entry.js +0 -2
  61. package/dist/cjs/calcite-radio-group-item.cjs.entry.js +0 -2
  62. package/dist/cjs/calcite-radio-group.cjs.entry.js +0 -2
  63. package/dist/cjs/calcite-radio.cjs.entry.js +0 -2
  64. package/dist/cjs/calcite-rating.cjs.entry.js +0 -2
  65. package/dist/cjs/calcite-scrim.cjs.entry.js +0 -2
  66. package/dist/cjs/calcite-select.cjs.entry.js +0 -2
  67. package/dist/cjs/calcite-shell-center-row.cjs.entry.js +0 -2
  68. package/dist/cjs/calcite-slider.cjs.entry.js +0 -2
  69. package/dist/cjs/calcite-sortable-list.cjs.entry.js +0 -2
  70. package/dist/cjs/calcite-split-button.cjs.entry.js +0 -2
  71. package/dist/cjs/calcite-stepper-item.cjs.entry.js +0 -2
  72. package/dist/cjs/calcite-stepper.cjs.entry.js +0 -2
  73. package/dist/cjs/calcite-switch.cjs.entry.js +0 -2
  74. package/dist/cjs/calcite-tile-select-group.cjs.entry.js +0 -2
  75. package/dist/cjs/calcite-tile-select.cjs.entry.js +0 -2
  76. package/dist/cjs/calcite-tile.cjs.entry.js +0 -2
  77. package/dist/cjs/calcite-time-picker.cjs.entry.js +0 -2
  78. package/dist/cjs/calcite-tip-group.cjs.entry.js +0 -2
  79. package/dist/cjs/calcite-tip-manager.cjs.entry.js +0 -2
  80. package/dist/cjs/calcite-tip.cjs.entry.js +0 -2
  81. package/dist/cjs/calcite-tooltip.cjs.entry.js +0 -2
  82. package/dist/cjs/calcite-value-list-item.cjs.entry.js +0 -2
  83. package/dist/cjs/calcite-value-list.cjs.entry.js +0 -2
  84. package/dist/cjs/common-a4edb52d.js +216 -0
  85. package/dist/cjs/date-0554c4d1.js +0 -2
  86. package/dist/cjs/debounce-df22462b.js +0 -2
  87. package/dist/cjs/dom-62511f59.js +0 -2
  88. package/dist/cjs/editStore-36fc36e6.js +2024 -0
  89. package/dist/cjs/forIn-6a1c2f6d.js +0 -2
  90. package/dist/cjs/form-0b5b2d4e.js +0 -2
  91. package/dist/cjs/generalHelpers-cee7d0da.js +168 -0
  92. package/dist/cjs/guid-c6be9504.js +0 -2
  93. package/dist/cjs/{index-706750dc.js → index-69e74dd7.js} +5 -19
  94. package/dist/cjs/index-81c17948.js +0 -2
  95. package/dist/cjs/index.cjs.js +0 -2
  96. package/dist/cjs/interfaces-5ba2c1a7.js +0 -2
  97. package/dist/cjs/key-2a6290c8.js +0 -2
  98. package/dist/cjs/label-46482470.js +0 -2
  99. package/dist/cjs/loader.cjs.js +1 -3
  100. package/dist/cjs/locale-0db34680.js +0 -2
  101. package/dist/cjs/math-71f8de66.js +0 -2
  102. package/dist/cjs/number-697ce34c.js +0 -2
  103. package/dist/cjs/observers-88bbd6ef.js +0 -2
  104. package/dist/cjs/popper-8c8dc960.js +0 -2
  105. package/dist/cjs/request-6905140c.js +550 -0
  106. package/dist/cjs/resources-20f88094.js +0 -2
  107. package/dist/cjs/resources-27c22d8a.js +0 -2
  108. package/dist/cjs/{resources-369e7421.js → resources-2a401414.js} +1 -3
  109. package/dist/cjs/resources-46af0638.js +0 -2
  110. package/dist/cjs/resources-509951f9.js +0 -2
  111. package/dist/cjs/resources-5b7958e4.js +0 -2
  112. package/dist/cjs/resources-a265534b.js +0 -2
  113. package/dist/cjs/resources-e231446d.js +0 -2
  114. package/dist/cjs/resources-ef6c71a1.js +0 -2
  115. package/dist/cjs/shared-list-render-63d3ea89.js +0 -2
  116. package/dist/cjs/solution-configuration.cjs.entry.js +172 -14
  117. package/dist/cjs/solution-contents_3.cjs.entry.js +42 -68
  118. package/dist/cjs/solutions.cjs.js +1 -3
  119. package/dist/cjs/sortable.esm-14548a17.js +0 -2
  120. package/dist/cjs/store-manager.cjs.entry.js +17 -8
  121. package/dist/cjs/templates-a0242ced.js +422 -0
  122. package/dist/cjs/time-c87dc79e.js +0 -2
  123. package/dist/cjs/utils-c19d354a.js +0 -2
  124. package/dist/cjs/utils-cb7373e6.js +0 -2
  125. package/dist/collection/assets/nls/fr/strings.js +2 -0
  126. package/dist/collection/assets/nls/strings.js +2 -0
  127. package/dist/collection/collection-manifest.json +9 -9
  128. package/dist/collection/components/json-editor/json-editor.js +40 -2
  129. package/dist/collection/components/solution-configuration/solution-configuration.js +251 -24
  130. package/dist/collection/components/solution-contents/solution-contents.js +12 -3
  131. package/dist/collection/components/solution-item/solution-item.css +1 -0
  132. package/dist/collection/components/solution-item/solution-item.js +2 -2
  133. package/dist/collection/components/solution-item-details/solution-item-details.js +4 -3
  134. package/dist/collection/components/solution-item-icon/solution-item-icon.js +0 -1
  135. package/dist/collection/components/solution-item-sharing/solution-item-sharing.js +2 -2
  136. package/dist/collection/components/solution-organization-variables/solution-organization-variables.js +2 -2
  137. package/dist/collection/components/solution-resource-item/solution-resource-item.js +2 -2
  138. package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +68 -68
  139. package/dist/collection/components/solution-spatial-ref/spatialreferences.js +0 -2
  140. package/dist/collection/components/solution-template-data/solution-template-data.js +4 -4
  141. package/dist/collection/components/solution-variables/solution-variables.js +2 -2
  142. package/dist/collection/components/store-manager/store-manager.js +49 -5
  143. package/dist/collection/demos/browse-solutions.html +136 -54
  144. package/dist/collection/demos/solution-configuration.html +139 -12
  145. package/dist/collection/demos/solution-spatial-ref.html +1 -1
  146. package/dist/collection/index.js +0 -1
  147. package/dist/collection/utils/common.js +25 -77
  148. package/dist/collection/utils/common.ts +42 -73
  149. package/dist/collection/utils/editStore.js +0 -1
  150. package/dist/{solutions/p-ecbfddde.js → collection/utils/interfaces.js} +16 -17
  151. package/dist/collection/utils/interfaces.ts +126 -0
  152. package/dist/collection/utils/templates.js +8 -6
  153. package/dist/collection/utils/templates.ts +19 -33
  154. package/dist/custom-elements/index.js +3161 -152
  155. package/dist/esm/CalciteExpandToggle-5df46988.js +0 -2
  156. package/dist/esm/CalciteHeading-79b4b347.js +0 -2
  157. package/dist/esm/_commonjsHelpers-84c626bc.js +22 -0
  158. package/dist/esm/array-71e0c501.js +0 -2
  159. package/dist/esm/calcite-accordion-item.entry.js +0 -2
  160. package/dist/esm/calcite-accordion.entry.js +0 -2
  161. package/dist/esm/calcite-action-bar.entry.js +0 -2
  162. package/dist/esm/calcite-action-group.entry.js +0 -2
  163. package/dist/esm/calcite-action-menu_3.entry.js +0 -2
  164. package/dist/esm/calcite-action-pad.entry.js +0 -2
  165. package/dist/esm/calcite-action.entry.js +0 -2
  166. package/dist/esm/calcite-alert.entry.js +0 -2
  167. package/dist/esm/calcite-avatar.entry.js +0 -2
  168. package/dist/esm/calcite-block-section.entry.js +0 -2
  169. package/dist/esm/calcite-block.entry.js +0 -2
  170. package/dist/esm/calcite-button.entry.js +0 -2
  171. package/dist/esm/calcite-card.entry.js +0 -2
  172. package/dist/esm/calcite-checkbox_4.entry.js +0 -2
  173. package/dist/esm/calcite-chip.entry.js +0 -2
  174. package/dist/esm/calcite-color-picker-hex-input.entry.js +3 -4
  175. package/dist/esm/calcite-color-picker-swatch.entry.js +2 -3
  176. package/dist/esm/calcite-color-picker.entry.js +3 -4
  177. package/dist/esm/calcite-combobox-item-group.entry.js +0 -2
  178. package/dist/esm/calcite-combobox-item.entry.js +0 -2
  179. package/dist/esm/calcite-combobox.entry.js +0 -2
  180. package/dist/esm/calcite-date-picker-day_3.entry.js +0 -2
  181. package/dist/esm/calcite-date-picker.entry.js +0 -2
  182. package/dist/esm/calcite-dropdown-group.entry.js +0 -2
  183. package/dist/esm/calcite-dropdown-item.entry.js +0 -2
  184. package/dist/esm/calcite-dropdown.entry.js +0 -2
  185. package/dist/esm/calcite-fab.entry.js +0 -2
  186. package/dist/esm/calcite-filter.entry.js +0 -2
  187. package/dist/esm/calcite-flow.entry.js +0 -2
  188. package/dist/esm/calcite-graph.entry.js +0 -2
  189. package/dist/esm/calcite-handle.entry.js +0 -2
  190. package/dist/esm/calcite-icon.entry.js +0 -2
  191. package/dist/esm/calcite-inline-editable.entry.js +0 -2
  192. package/dist/esm/calcite-input-date-picker.entry.js +0 -2
  193. package/dist/esm/calcite-input-message.entry.js +0 -2
  194. package/dist/esm/calcite-input-time-picker.entry.js +0 -2
  195. package/dist/esm/calcite-input_2.entry.js +0 -2
  196. package/dist/esm/calcite-label.entry.js +0 -2
  197. package/dist/esm/calcite-link.entry.js +0 -2
  198. package/dist/esm/calcite-list-item-group.entry.js +0 -2
  199. package/dist/esm/calcite-list-item.entry.js +0 -2
  200. package/dist/esm/calcite-list.entry.js +0 -2
  201. package/dist/esm/calcite-loader.entry.js +0 -2
  202. package/dist/esm/calcite-modal.entry.js +0 -2
  203. package/dist/esm/calcite-notice.entry.js +0 -2
  204. package/dist/esm/calcite-option-group.entry.js +0 -2
  205. package/dist/esm/calcite-option.entry.js +0 -2
  206. package/dist/esm/calcite-pagination.entry.js +0 -2
  207. package/dist/esm/calcite-panel_14.entry.js +37 -4
  208. package/dist/esm/calcite-pick-list-group.entry.js +0 -2
  209. package/dist/esm/calcite-pick-list-item.entry.js +0 -2
  210. package/dist/esm/calcite-pick-list.entry.js +0 -2
  211. package/dist/esm/calcite-popover-manager.entry.js +0 -2
  212. package/dist/esm/calcite-radio-button-group.entry.js +0 -2
  213. package/dist/esm/calcite-radio-button.entry.js +0 -2
  214. package/dist/esm/calcite-radio-group-item.entry.js +0 -2
  215. package/dist/esm/calcite-radio-group.entry.js +0 -2
  216. package/dist/esm/calcite-radio.entry.js +0 -2
  217. package/dist/esm/calcite-rating.entry.js +0 -2
  218. package/dist/esm/calcite-scrim.entry.js +0 -2
  219. package/dist/esm/calcite-select.entry.js +0 -2
  220. package/dist/esm/calcite-shell-center-row.entry.js +0 -2
  221. package/dist/esm/calcite-slider.entry.js +0 -2
  222. package/dist/esm/calcite-sortable-list.entry.js +0 -2
  223. package/dist/esm/calcite-split-button.entry.js +0 -2
  224. package/dist/esm/calcite-stepper-item.entry.js +0 -2
  225. package/dist/esm/calcite-stepper.entry.js +0 -2
  226. package/dist/esm/calcite-switch.entry.js +0 -2
  227. package/dist/esm/calcite-tile-select-group.entry.js +0 -2
  228. package/dist/esm/calcite-tile-select.entry.js +0 -2
  229. package/dist/esm/calcite-tile.entry.js +0 -2
  230. package/dist/esm/calcite-time-picker.entry.js +0 -2
  231. package/dist/esm/calcite-tip-group.entry.js +0 -2
  232. package/dist/esm/calcite-tip-manager.entry.js +0 -2
  233. package/dist/esm/calcite-tip.entry.js +0 -2
  234. package/dist/esm/calcite-tooltip.entry.js +0 -2
  235. package/dist/esm/calcite-value-list-item.entry.js +0 -2
  236. package/dist/esm/calcite-value-list.entry.js +0 -2
  237. package/dist/esm/common-70333fb9.js +213 -0
  238. package/dist/esm/date-5d75460a.js +0 -2
  239. package/dist/esm/debounce-23ad5849.js +0 -2
  240. package/dist/esm/dom-1cc617ae.js +0 -2
  241. package/dist/esm/editStore-197be454.js +2022 -0
  242. package/dist/esm/forIn-c922d47c.js +0 -2
  243. package/dist/esm/form-636dfed1.js +0 -2
  244. package/dist/esm/generalHelpers-91e92dc0.js +161 -0
  245. package/dist/esm/guid-740f1f1a.js +0 -2
  246. package/dist/esm/index-a3c3e3db.js +0 -2
  247. package/dist/esm/{index-934f242e.js → index-c1264d13.js} +3 -17
  248. package/dist/esm/index.js +0 -2
  249. package/dist/esm/interfaces-4f07beec.js +0 -2
  250. package/dist/esm/key-1748eb79.js +0 -2
  251. package/dist/esm/label-851f8926.js +0 -2
  252. package/dist/esm/loader.js +1 -3
  253. package/dist/esm/locale-31c8d43b.js +0 -2
  254. package/dist/esm/math-d8795f31.js +0 -2
  255. package/dist/esm/number-47ecb380.js +0 -2
  256. package/dist/esm/observers-b13ff24b.js +0 -2
  257. package/dist/esm/popper-25874f2f.js +0 -2
  258. package/dist/esm/request-9c2c9a49.js +548 -0
  259. package/dist/esm/resources-12c3b829.js +0 -2
  260. package/dist/esm/resources-32d7dd89.js +0 -2
  261. package/dist/esm/resources-466ccf86.js +0 -2
  262. package/dist/esm/resources-4cc0ef44.js +0 -2
  263. package/dist/esm/resources-861d0240.js +0 -2
  264. package/dist/esm/resources-b023c30a.js +0 -2
  265. package/dist/esm/{resources-c537bacb.js → resources-d7e09977.js} +1 -3
  266. package/dist/esm/resources-e56b6e53.js +0 -2
  267. package/dist/esm/resources-ec79cfd7.js +0 -2
  268. package/dist/esm/shared-list-render-b5dacd2e.js +0 -2
  269. package/dist/esm/solution-configuration.entry.js +172 -14
  270. package/dist/esm/solution-contents_3.entry.js +42 -68
  271. package/dist/esm/solutions.js +1 -3
  272. package/dist/esm/sortable.esm-7856912e.js +0 -2
  273. package/dist/esm/store-manager.entry.js +17 -8
  274. package/dist/esm/templates-c15e0de2.js +414 -0
  275. package/dist/esm/time-a3b29c35.js +0 -2
  276. package/dist/esm/utils-021cb956.js +0 -2
  277. package/dist/esm/utils-5fdd203c.js +0 -2
  278. package/dist/solutions/assets/nls/fr/strings.js +2 -0
  279. package/dist/solutions/assets/nls/strings.js +2 -0
  280. package/dist/solutions/demos/browse-solutions.html +136 -54
  281. package/dist/solutions/demos/solution-configuration.html +139 -12
  282. package/dist/solutions/demos/solution-spatial-ref.html +1 -1
  283. package/dist/solutions/index.esm.js +0 -2
  284. package/dist/solutions/p-03c9247d.entry.js +10 -0
  285. package/dist/solutions/p-03da5f23.entry.js +6 -0
  286. package/dist/solutions/p-054256c8.entry.js +10 -0
  287. package/dist/solutions/p-05c73b7d.js +1 -2
  288. package/dist/solutions/p-06c2b347.entry.js +6 -0
  289. package/dist/solutions/p-09a06209.entry.js +6 -0
  290. package/dist/solutions/p-09e5283f.entry.js +6 -0
  291. package/dist/solutions/p-0a0ca7d3.entry.js +6 -0
  292. package/dist/solutions/p-0b8525e2.js +1 -2
  293. package/dist/solutions/p-0bddf168.entry.js +10 -0
  294. package/dist/solutions/p-0dd00bd7.entry.js +6 -0
  295. package/dist/solutions/p-0f8fd0f8.entry.js +10 -0
  296. package/dist/solutions/p-1345c0c8.js +6 -0
  297. package/dist/solutions/p-1387e8ef.entry.js +10 -0
  298. package/dist/solutions/p-17195493.entry.js +6 -0
  299. package/dist/solutions/p-172b8454.js +38 -0
  300. package/dist/solutions/p-173c3a97.entry.js +10 -0
  301. package/dist/solutions/p-175fe700.entry.js +6 -0
  302. package/dist/solutions/p-17f21116.entry.js +6 -0
  303. package/dist/solutions/p-18657c74.entry.js +10 -0
  304. package/dist/solutions/p-20c8a31e.entry.js +14 -0
  305. package/dist/solutions/p-228131f3.js +3 -3
  306. package/dist/solutions/p-2480c2c3.entry.js +10 -0
  307. package/dist/solutions/p-291cbb4f.js +1 -2
  308. package/dist/solutions/p-29d230fb.entry.js +6 -0
  309. package/dist/solutions/p-2de43402.entry.js +10 -0
  310. package/dist/solutions/p-2e1cd889.js +1 -2
  311. package/dist/solutions/p-386bc1f5.entry.js +10 -0
  312. package/dist/solutions/p-3956acc6.entry.js +6 -0
  313. package/dist/solutions/p-3ce922dd.js +20 -0
  314. package/dist/solutions/p-3e67ed97.js +1 -2
  315. package/dist/solutions/p-3eac2c21.entry.js +10 -0
  316. package/dist/solutions/p-3fd65329.entry.js +6 -0
  317. package/dist/solutions/p-41c2e1cc.js +1 -2
  318. package/dist/solutions/p-42f5b6d1.entry.js +10 -0
  319. package/dist/solutions/p-44e661a2.js +1 -2
  320. package/dist/solutions/p-4847f326.entry.js +10 -0
  321. package/dist/solutions/p-4a5b86a0.entry.js +10 -0
  322. package/dist/solutions/p-4f8cae93.entry.js +10 -0
  323. package/dist/solutions/p-51c9f2db.entry.js +10 -0
  324. package/dist/solutions/p-52d835be.entry.js +10 -0
  325. package/dist/solutions/p-55dddf06.entry.js +10 -0
  326. package/dist/solutions/p-56a376ea.entry.js +6 -0
  327. package/dist/solutions/p-57e5029a.entry.js +6 -0
  328. package/dist/solutions/p-58b7f4aa.entry.js +10 -0
  329. package/dist/solutions/p-5cd9ccc3.entry.js +22 -0
  330. package/dist/solutions/p-5dd4cf97.entry.js +6 -0
  331. package/dist/solutions/p-5edf418e.entry.js +10 -0
  332. package/dist/solutions/p-64711824.entry.js +10 -0
  333. package/dist/solutions/p-68bf7243.entry.js +11 -0
  334. package/dist/solutions/p-7096464e.js +3 -4
  335. package/dist/solutions/p-720922e5.entry.js +10 -0
  336. package/dist/solutions/p-73e2d13f.js +1 -2
  337. package/dist/solutions/p-73e8d41c.entry.js +10 -0
  338. package/dist/solutions/p-7804ce97.js +1 -2
  339. package/dist/solutions/p-79064f42.entry.js +6 -0
  340. package/dist/solutions/p-7976d171.entry.js +6 -0
  341. package/dist/solutions/p-7a98627f.entry.js +10 -0
  342. package/dist/solutions/p-7aaed3f1.entry.js +10 -0
  343. package/dist/solutions/p-7cc9c6af.js +2 -7
  344. package/dist/solutions/p-7df393df.js +1 -2
  345. package/dist/solutions/p-7f93b2dd.entry.js +6 -0
  346. package/dist/solutions/p-82ab483b.entry.js +10 -0
  347. package/dist/solutions/p-8565f0c1.entry.js +10 -0
  348. package/dist/solutions/p-85cf288c.js +1 -2
  349. package/dist/solutions/p-8701d184.entry.js +10 -0
  350. package/dist/solutions/p-946521e1.js +2 -3
  351. package/dist/solutions/p-974d27a4.entry.js +10 -0
  352. package/dist/solutions/p-9c08ce38.entry.js +6 -0
  353. package/dist/solutions/p-9deb6df3.js +36 -0
  354. package/dist/solutions/p-9df9ac35.js +1 -2
  355. package/dist/solutions/p-9ed0c781.entry.js +6 -0
  356. package/dist/solutions/p-9f3fa133.entry.js +10 -0
  357. package/dist/solutions/p-a10dc180.js +1 -2
  358. package/dist/solutions/p-a201c2ea.entry.js +6 -0
  359. package/dist/solutions/p-a598cbb6.entry.js +10 -0
  360. package/dist/solutions/p-a59dfe85.entry.js +6 -0
  361. package/dist/solutions/p-a5fbf459.entry.js +11 -0
  362. package/dist/solutions/p-a6faf819.entry.js +10 -0
  363. package/dist/solutions/p-a8b4d400.entry.js +10 -0
  364. package/dist/solutions/p-a93a4772.entry.js +10 -0
  365. package/dist/solutions/{p-07099311.entry.js → p-a9dd9571.entry.js} +1 -2
  366. package/dist/solutions/p-a9df64c4.js +1 -2
  367. package/dist/solutions/p-aa11e35b.entry.js +10 -0
  368. package/dist/solutions/p-ae4a329c.entry.js +6 -0
  369. package/dist/solutions/p-af9be2ca.js +1 -2
  370. package/dist/solutions/p-b16a91ae.entry.js +6 -0
  371. package/dist/solutions/p-b5693287.entry.js +6 -0
  372. package/dist/solutions/p-b5bbe558.entry.js +10 -0
  373. package/dist/solutions/p-b81ebd54.entry.js +10 -0
  374. package/dist/solutions/p-b85c1b6a.entry.js +6 -0
  375. package/dist/solutions/p-bb3adfc7.entry.js +10 -0
  376. package/dist/solutions/p-c11b966c.entry.js +10 -0
  377. package/dist/solutions/p-c1e7f656.entry.js +6 -0
  378. package/dist/solutions/p-c27b17b8.entry.js +10 -0
  379. package/dist/solutions/p-c34e0641.js +1 -2
  380. package/dist/solutions/p-c5216bba.entry.js +10 -0
  381. package/dist/solutions/p-c8a69756.entry.js +10 -0
  382. package/dist/solutions/p-cb35cbb3.entry.js +6 -0
  383. package/dist/solutions/p-cb5cb9a8.js +1 -2
  384. package/dist/solutions/p-cef98db7.js +6 -0
  385. package/dist/solutions/p-d69bc5fd.entry.js +10 -0
  386. package/dist/solutions/p-de45b192.entry.js +6 -0
  387. package/dist/solutions/p-e4edca3b.js +1 -2
  388. package/dist/solutions/p-e581f631.js +1 -2
  389. package/dist/solutions/p-e762b2d1.js +3 -3
  390. package/dist/solutions/p-eb2efc0f.js +1 -2
  391. package/dist/solutions/p-ec178ea9.js +1 -2
  392. package/dist/solutions/p-ed17446f.entry.js +6 -0
  393. package/dist/solutions/p-edd6d948.entry.js +10 -0
  394. package/dist/solutions/p-ee6eca93.js +18 -0
  395. package/dist/solutions/{p-4573d7c2.js → p-f1867a12.js} +2 -3
  396. package/dist/solutions/p-f187755e.js +1 -2
  397. package/dist/solutions/p-f49bc4a8.js +1 -2
  398. package/dist/solutions/p-f75876eb.js +21 -0
  399. package/dist/solutions/p-f780039d.js +1 -2
  400. package/dist/solutions/p-fa58627d.entry.js +10 -0
  401. package/dist/solutions/p-fbdf3e06.js +2 -3
  402. package/dist/solutions/p-fc1c8168.js +3 -3
  403. package/dist/solutions/p-fd2712a3.entry.js +10 -0
  404. package/dist/solutions/solutions.esm.js +1 -2
  405. package/dist/solutions/utils/common.ts +42 -73
  406. package/dist/solutions/utils/interfaces.ts +126 -0
  407. package/dist/solutions/utils/templates.ts +19 -33
  408. package/dist/types/components/json-editor/json-editor.d.ts +11 -0
  409. package/dist/types/components/solution-configuration/solution-configuration.d.ts +73 -9
  410. package/dist/types/components/solution-contents/solution-contents.d.ts +2 -9
  411. package/dist/types/components/solution-item/solution-item.d.ts +1 -11
  412. package/dist/types/components/solution-item-details/solution-item-details.d.ts +1 -10
  413. package/dist/types/components/solution-item-sharing/solution-item-sharing.d.ts +1 -8
  414. package/dist/types/components/solution-organization-variables/solution-organization-variables.d.ts +1 -5
  415. package/dist/types/components/solution-resource-item/solution-resource-item.d.ts +1 -4
  416. package/dist/types/components/solution-spatial-ref/solution-spatial-ref.d.ts +14 -26
  417. package/dist/types/components/solution-spatial-ref/spatialreferences.d.ts +1 -4
  418. package/dist/types/components/solution-template-data/solution-template-data.d.ts +1 -7
  419. package/dist/types/components/solution-variables/solution-variables.d.ts +1 -7
  420. package/dist/types/components/store-manager/store-manager.d.ts +9 -0
  421. package/dist/types/components.d.ts +49 -17
  422. package/dist/types/utils/common.d.ts +13 -38
  423. package/dist/types/utils/interfaces.d.ts +111 -0
  424. package/dist/types/utils/templates.d.ts +2 -25
  425. package/package.json +4 -3
  426. package/dist/cjs/CalciteExpandToggle-3e4e3b6c.js.map +0 -1
  427. package/dist/cjs/CalciteHeading-d765addc.js.map +0 -1
  428. package/dist/cjs/array-cd6c0c32.js.map +0 -1
  429. package/dist/cjs/calcite-accordion-item.cjs.entry.js.map +0 -1
  430. package/dist/cjs/calcite-accordion.cjs.entry.js.map +0 -1
  431. package/dist/cjs/calcite-action-bar.cjs.entry.js.map +0 -1
  432. package/dist/cjs/calcite-action-group.cjs.entry.js.map +0 -1
  433. package/dist/cjs/calcite-action-menu_3.cjs.entry.js.map +0 -1
  434. package/dist/cjs/calcite-action-pad.cjs.entry.js.map +0 -1
  435. package/dist/cjs/calcite-action.cjs.entry.js.map +0 -1
  436. package/dist/cjs/calcite-alert.cjs.entry.js.map +0 -1
  437. package/dist/cjs/calcite-avatar.cjs.entry.js.map +0 -1
  438. package/dist/cjs/calcite-block-section.cjs.entry.js.map +0 -1
  439. package/dist/cjs/calcite-block.cjs.entry.js.map +0 -1
  440. package/dist/cjs/calcite-button.cjs.entry.js.map +0 -1
  441. package/dist/cjs/calcite-card.cjs.entry.js.map +0 -1
  442. package/dist/cjs/calcite-checkbox_4.cjs.entry.js.map +0 -1
  443. package/dist/cjs/calcite-chip.cjs.entry.js.map +0 -1
  444. package/dist/cjs/calcite-color-picker-hex-input.cjs.entry.js.map +0 -1
  445. package/dist/cjs/calcite-color-picker-swatch.cjs.entry.js.map +0 -1
  446. package/dist/cjs/calcite-color-picker.cjs.entry.js.map +0 -1
  447. package/dist/cjs/calcite-combobox-item-group.cjs.entry.js.map +0 -1
  448. package/dist/cjs/calcite-combobox-item.cjs.entry.js.map +0 -1
  449. package/dist/cjs/calcite-combobox.cjs.entry.js.map +0 -1
  450. package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js.map +0 -1
  451. package/dist/cjs/calcite-date-picker.cjs.entry.js.map +0 -1
  452. package/dist/cjs/calcite-dropdown-group.cjs.entry.js.map +0 -1
  453. package/dist/cjs/calcite-dropdown-item.cjs.entry.js.map +0 -1
  454. package/dist/cjs/calcite-dropdown.cjs.entry.js.map +0 -1
  455. package/dist/cjs/calcite-fab.cjs.entry.js.map +0 -1
  456. package/dist/cjs/calcite-filter.cjs.entry.js.map +0 -1
  457. package/dist/cjs/calcite-flow.cjs.entry.js.map +0 -1
  458. package/dist/cjs/calcite-graph.cjs.entry.js.map +0 -1
  459. package/dist/cjs/calcite-handle.cjs.entry.js.map +0 -1
  460. package/dist/cjs/calcite-icon.cjs.entry.js.map +0 -1
  461. package/dist/cjs/calcite-inline-editable.cjs.entry.js.map +0 -1
  462. package/dist/cjs/calcite-input-date-picker.cjs.entry.js.map +0 -1
  463. package/dist/cjs/calcite-input-message.cjs.entry.js.map +0 -1
  464. package/dist/cjs/calcite-input-time-picker.cjs.entry.js.map +0 -1
  465. package/dist/cjs/calcite-input_2.cjs.entry.js.map +0 -1
  466. package/dist/cjs/calcite-label.cjs.entry.js.map +0 -1
  467. package/dist/cjs/calcite-link.cjs.entry.js.map +0 -1
  468. package/dist/cjs/calcite-list-item-group.cjs.entry.js.map +0 -1
  469. package/dist/cjs/calcite-list-item.cjs.entry.js.map +0 -1
  470. package/dist/cjs/calcite-list.cjs.entry.js.map +0 -1
  471. package/dist/cjs/calcite-loader.cjs.entry.js.map +0 -1
  472. package/dist/cjs/calcite-modal.cjs.entry.js.map +0 -1
  473. package/dist/cjs/calcite-notice.cjs.entry.js.map +0 -1
  474. package/dist/cjs/calcite-option-group.cjs.entry.js.map +0 -1
  475. package/dist/cjs/calcite-option.cjs.entry.js.map +0 -1
  476. package/dist/cjs/calcite-pagination.cjs.entry.js.map +0 -1
  477. package/dist/cjs/calcite-panel_14.cjs.entry.js.map +0 -1
  478. package/dist/cjs/calcite-pick-list-group.cjs.entry.js.map +0 -1
  479. package/dist/cjs/calcite-pick-list-item.cjs.entry.js.map +0 -1
  480. package/dist/cjs/calcite-pick-list.cjs.entry.js.map +0 -1
  481. package/dist/cjs/calcite-popover-manager.cjs.entry.js.map +0 -1
  482. package/dist/cjs/calcite-radio-button-group.cjs.entry.js.map +0 -1
  483. package/dist/cjs/calcite-radio-button.cjs.entry.js.map +0 -1
  484. package/dist/cjs/calcite-radio-group-item.cjs.entry.js.map +0 -1
  485. package/dist/cjs/calcite-radio-group.cjs.entry.js.map +0 -1
  486. package/dist/cjs/calcite-radio.cjs.entry.js.map +0 -1
  487. package/dist/cjs/calcite-rating.cjs.entry.js.map +0 -1
  488. package/dist/cjs/calcite-scrim.cjs.entry.js.map +0 -1
  489. package/dist/cjs/calcite-select.cjs.entry.js.map +0 -1
  490. package/dist/cjs/calcite-shell-center-row.cjs.entry.js.map +0 -1
  491. package/dist/cjs/calcite-slider.cjs.entry.js.map +0 -1
  492. package/dist/cjs/calcite-sortable-list.cjs.entry.js.map +0 -1
  493. package/dist/cjs/calcite-split-button.cjs.entry.js.map +0 -1
  494. package/dist/cjs/calcite-stepper-item.cjs.entry.js.map +0 -1
  495. package/dist/cjs/calcite-stepper.cjs.entry.js.map +0 -1
  496. package/dist/cjs/calcite-switch.cjs.entry.js.map +0 -1
  497. package/dist/cjs/calcite-tile-select-group.cjs.entry.js.map +0 -1
  498. package/dist/cjs/calcite-tile-select.cjs.entry.js.map +0 -1
  499. package/dist/cjs/calcite-tile.cjs.entry.js.map +0 -1
  500. package/dist/cjs/calcite-time-picker.cjs.entry.js.map +0 -1
  501. package/dist/cjs/calcite-tip-group.cjs.entry.js.map +0 -1
  502. package/dist/cjs/calcite-tip-manager.cjs.entry.js.map +0 -1
  503. package/dist/cjs/calcite-tip.cjs.entry.js.map +0 -1
  504. package/dist/cjs/calcite-tooltip.cjs.entry.js.map +0 -1
  505. package/dist/cjs/calcite-value-list-item.cjs.entry.js.map +0 -1
  506. package/dist/cjs/calcite-value-list.cjs.entry.js.map +0 -1
  507. package/dist/cjs/common-df66d950.js +0 -53
  508. package/dist/cjs/common-df66d950.js.map +0 -1
  509. package/dist/cjs/date-0554c4d1.js.map +0 -1
  510. package/dist/cjs/debounce-df22462b.js.map +0 -1
  511. package/dist/cjs/dom-62511f59.js.map +0 -1
  512. package/dist/cjs/editStore-7a250b85.js +0 -227
  513. package/dist/cjs/editStore-7a250b85.js.map +0 -1
  514. package/dist/cjs/forIn-6a1c2f6d.js.map +0 -1
  515. package/dist/cjs/form-0b5b2d4e.js.map +0 -1
  516. package/dist/cjs/guid-c6be9504.js.map +0 -1
  517. package/dist/cjs/index-706750dc.js.map +0 -1
  518. package/dist/cjs/index-81c17948.js.map +0 -1
  519. package/dist/cjs/index.cjs.js.map +0 -1
  520. package/dist/cjs/interfaces-5ba2c1a7.js.map +0 -1
  521. package/dist/cjs/key-2a6290c8.js.map +0 -1
  522. package/dist/cjs/label-46482470.js.map +0 -1
  523. package/dist/cjs/loader.cjs.js.map +0 -1
  524. package/dist/cjs/locale-0db34680.js.map +0 -1
  525. package/dist/cjs/math-71f8de66.js.map +0 -1
  526. package/dist/cjs/number-697ce34c.js.map +0 -1
  527. package/dist/cjs/observers-88bbd6ef.js.map +0 -1
  528. package/dist/cjs/popper-8c8dc960.js.map +0 -1
  529. package/dist/cjs/resources-20f88094.js.map +0 -1
  530. package/dist/cjs/resources-27c22d8a.js.map +0 -1
  531. package/dist/cjs/resources-369e7421.js.map +0 -1
  532. package/dist/cjs/resources-46af0638.js.map +0 -1
  533. package/dist/cjs/resources-509951f9.js.map +0 -1
  534. package/dist/cjs/resources-5b7958e4.js.map +0 -1
  535. package/dist/cjs/resources-a265534b.js.map +0 -1
  536. package/dist/cjs/resources-e231446d.js.map +0 -1
  537. package/dist/cjs/resources-ef6c71a1.js.map +0 -1
  538. package/dist/cjs/shared-list-render-63d3ea89.js.map +0 -1
  539. package/dist/cjs/solution-configuration.cjs.entry.js.map +0 -1
  540. package/dist/cjs/solution-contents_3.cjs.entry.js.map +0 -1
  541. package/dist/cjs/solutions.cjs.js.map +0 -1
  542. package/dist/cjs/sortable.esm-14548a17.js.map +0 -1
  543. package/dist/cjs/store-manager.cjs.entry.js.map +0 -1
  544. package/dist/cjs/templates-fe6dd431.js +0 -237
  545. package/dist/cjs/templates-fe6dd431.js.map +0 -1
  546. package/dist/cjs/time-c87dc79e.js.map +0 -1
  547. package/dist/cjs/utils-c19d354a.js.map +0 -1
  548. package/dist/cjs/utils-cb7373e6.js.map +0 -1
  549. package/dist/collection/components/json-editor/json-editor.js.map +0 -1
  550. package/dist/collection/components/solution-configuration/solution-configuration.js.map +0 -1
  551. package/dist/collection/components/solution-contents/solution-contents.js.map +0 -1
  552. package/dist/collection/components/solution-item/solution-item.js.map +0 -1
  553. package/dist/collection/components/solution-item-details/solution-item-details.js.map +0 -1
  554. package/dist/collection/components/solution-item-icon/solution-item-icon.js.map +0 -1
  555. package/dist/collection/components/solution-item-sharing/solution-item-sharing.js.map +0 -1
  556. package/dist/collection/components/solution-organization-variables/solution-organization-variables.js.map +0 -1
  557. package/dist/collection/components/solution-resource-item/solution-resource-item.js.map +0 -1
  558. package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js.map +0 -1
  559. package/dist/collection/components/solution-spatial-ref/spatialreferences.js.map +0 -1
  560. package/dist/collection/components/solution-template-data/solution-template-data.js.map +0 -1
  561. package/dist/collection/components/solution-variables/solution-variables.js.map +0 -1
  562. package/dist/collection/components/store-manager/store-manager.js.map +0 -1
  563. package/dist/collection/index.js.map +0 -1
  564. package/dist/collection/utils/common.js.map +0 -1
  565. package/dist/collection/utils/editStore.js.map +0 -1
  566. package/dist/collection/utils/templates.js.map +0 -1
  567. package/dist/custom-elements/index.js.map +0 -1
  568. package/dist/esm/CalciteExpandToggle-5df46988.js.map +0 -1
  569. package/dist/esm/CalciteHeading-79b4b347.js.map +0 -1
  570. package/dist/esm/array-71e0c501.js.map +0 -1
  571. package/dist/esm/calcite-accordion-item.entry.js.map +0 -1
  572. package/dist/esm/calcite-accordion.entry.js.map +0 -1
  573. package/dist/esm/calcite-action-bar.entry.js.map +0 -1
  574. package/dist/esm/calcite-action-group.entry.js.map +0 -1
  575. package/dist/esm/calcite-action-menu_3.entry.js.map +0 -1
  576. package/dist/esm/calcite-action-pad.entry.js.map +0 -1
  577. package/dist/esm/calcite-action.entry.js.map +0 -1
  578. package/dist/esm/calcite-alert.entry.js.map +0 -1
  579. package/dist/esm/calcite-avatar.entry.js.map +0 -1
  580. package/dist/esm/calcite-block-section.entry.js.map +0 -1
  581. package/dist/esm/calcite-block.entry.js.map +0 -1
  582. package/dist/esm/calcite-button.entry.js.map +0 -1
  583. package/dist/esm/calcite-card.entry.js.map +0 -1
  584. package/dist/esm/calcite-checkbox_4.entry.js.map +0 -1
  585. package/dist/esm/calcite-chip.entry.js.map +0 -1
  586. package/dist/esm/calcite-color-picker-hex-input.entry.js.map +0 -1
  587. package/dist/esm/calcite-color-picker-swatch.entry.js.map +0 -1
  588. package/dist/esm/calcite-color-picker.entry.js.map +0 -1
  589. package/dist/esm/calcite-combobox-item-group.entry.js.map +0 -1
  590. package/dist/esm/calcite-combobox-item.entry.js.map +0 -1
  591. package/dist/esm/calcite-combobox.entry.js.map +0 -1
  592. package/dist/esm/calcite-date-picker-day_3.entry.js.map +0 -1
  593. package/dist/esm/calcite-date-picker.entry.js.map +0 -1
  594. package/dist/esm/calcite-dropdown-group.entry.js.map +0 -1
  595. package/dist/esm/calcite-dropdown-item.entry.js.map +0 -1
  596. package/dist/esm/calcite-dropdown.entry.js.map +0 -1
  597. package/dist/esm/calcite-fab.entry.js.map +0 -1
  598. package/dist/esm/calcite-filter.entry.js.map +0 -1
  599. package/dist/esm/calcite-flow.entry.js.map +0 -1
  600. package/dist/esm/calcite-graph.entry.js.map +0 -1
  601. package/dist/esm/calcite-handle.entry.js.map +0 -1
  602. package/dist/esm/calcite-icon.entry.js.map +0 -1
  603. package/dist/esm/calcite-inline-editable.entry.js.map +0 -1
  604. package/dist/esm/calcite-input-date-picker.entry.js.map +0 -1
  605. package/dist/esm/calcite-input-message.entry.js.map +0 -1
  606. package/dist/esm/calcite-input-time-picker.entry.js.map +0 -1
  607. package/dist/esm/calcite-input_2.entry.js.map +0 -1
  608. package/dist/esm/calcite-label.entry.js.map +0 -1
  609. package/dist/esm/calcite-link.entry.js.map +0 -1
  610. package/dist/esm/calcite-list-item-group.entry.js.map +0 -1
  611. package/dist/esm/calcite-list-item.entry.js.map +0 -1
  612. package/dist/esm/calcite-list.entry.js.map +0 -1
  613. package/dist/esm/calcite-loader.entry.js.map +0 -1
  614. package/dist/esm/calcite-modal.entry.js.map +0 -1
  615. package/dist/esm/calcite-notice.entry.js.map +0 -1
  616. package/dist/esm/calcite-option-group.entry.js.map +0 -1
  617. package/dist/esm/calcite-option.entry.js.map +0 -1
  618. package/dist/esm/calcite-pagination.entry.js.map +0 -1
  619. package/dist/esm/calcite-panel_14.entry.js.map +0 -1
  620. package/dist/esm/calcite-pick-list-group.entry.js.map +0 -1
  621. package/dist/esm/calcite-pick-list-item.entry.js.map +0 -1
  622. package/dist/esm/calcite-pick-list.entry.js.map +0 -1
  623. package/dist/esm/calcite-popover-manager.entry.js.map +0 -1
  624. package/dist/esm/calcite-radio-button-group.entry.js.map +0 -1
  625. package/dist/esm/calcite-radio-button.entry.js.map +0 -1
  626. package/dist/esm/calcite-radio-group-item.entry.js.map +0 -1
  627. package/dist/esm/calcite-radio-group.entry.js.map +0 -1
  628. package/dist/esm/calcite-radio.entry.js.map +0 -1
  629. package/dist/esm/calcite-rating.entry.js.map +0 -1
  630. package/dist/esm/calcite-scrim.entry.js.map +0 -1
  631. package/dist/esm/calcite-select.entry.js.map +0 -1
  632. package/dist/esm/calcite-shell-center-row.entry.js.map +0 -1
  633. package/dist/esm/calcite-slider.entry.js.map +0 -1
  634. package/dist/esm/calcite-sortable-list.entry.js.map +0 -1
  635. package/dist/esm/calcite-split-button.entry.js.map +0 -1
  636. package/dist/esm/calcite-stepper-item.entry.js.map +0 -1
  637. package/dist/esm/calcite-stepper.entry.js.map +0 -1
  638. package/dist/esm/calcite-switch.entry.js.map +0 -1
  639. package/dist/esm/calcite-tile-select-group.entry.js.map +0 -1
  640. package/dist/esm/calcite-tile-select.entry.js.map +0 -1
  641. package/dist/esm/calcite-tile.entry.js.map +0 -1
  642. package/dist/esm/calcite-time-picker.entry.js.map +0 -1
  643. package/dist/esm/calcite-tip-group.entry.js.map +0 -1
  644. package/dist/esm/calcite-tip-manager.entry.js.map +0 -1
  645. package/dist/esm/calcite-tip.entry.js.map +0 -1
  646. package/dist/esm/calcite-tooltip.entry.js.map +0 -1
  647. package/dist/esm/calcite-value-list-item.entry.js.map +0 -1
  648. package/dist/esm/calcite-value-list.entry.js.map +0 -1
  649. package/dist/esm/common-ccccf04d.js +0 -50
  650. package/dist/esm/common-ccccf04d.js.map +0 -1
  651. package/dist/esm/date-5d75460a.js.map +0 -1
  652. package/dist/esm/debounce-23ad5849.js.map +0 -1
  653. package/dist/esm/dom-1cc617ae.js.map +0 -1
  654. package/dist/esm/editStore-30a293f5.js +0 -225
  655. package/dist/esm/editStore-30a293f5.js.map +0 -1
  656. package/dist/esm/forIn-c922d47c.js.map +0 -1
  657. package/dist/esm/form-636dfed1.js.map +0 -1
  658. package/dist/esm/guid-740f1f1a.js.map +0 -1
  659. package/dist/esm/index-934f242e.js.map +0 -1
  660. package/dist/esm/index-a3c3e3db.js.map +0 -1
  661. package/dist/esm/index.js.map +0 -1
  662. package/dist/esm/interfaces-4f07beec.js.map +0 -1
  663. package/dist/esm/key-1748eb79.js.map +0 -1
  664. package/dist/esm/label-851f8926.js.map +0 -1
  665. package/dist/esm/loader.js.map +0 -1
  666. package/dist/esm/locale-31c8d43b.js.map +0 -1
  667. package/dist/esm/math-d8795f31.js.map +0 -1
  668. package/dist/esm/number-47ecb380.js.map +0 -1
  669. package/dist/esm/observers-b13ff24b.js.map +0 -1
  670. package/dist/esm/popper-25874f2f.js.map +0 -1
  671. package/dist/esm/resources-12c3b829.js.map +0 -1
  672. package/dist/esm/resources-32d7dd89.js.map +0 -1
  673. package/dist/esm/resources-466ccf86.js.map +0 -1
  674. package/dist/esm/resources-4cc0ef44.js.map +0 -1
  675. package/dist/esm/resources-861d0240.js.map +0 -1
  676. package/dist/esm/resources-b023c30a.js.map +0 -1
  677. package/dist/esm/resources-c537bacb.js.map +0 -1
  678. package/dist/esm/resources-e56b6e53.js.map +0 -1
  679. package/dist/esm/resources-ec79cfd7.js.map +0 -1
  680. package/dist/esm/shared-list-render-b5dacd2e.js.map +0 -1
  681. package/dist/esm/solution-configuration.entry.js.map +0 -1
  682. package/dist/esm/solution-contents_3.entry.js.map +0 -1
  683. package/dist/esm/solutions.js.map +0 -1
  684. package/dist/esm/sortable.esm-7856912e.js.map +0 -1
  685. package/dist/esm/store-manager.entry.js.map +0 -1
  686. package/dist/esm/templates-3480c08e.js +0 -230
  687. package/dist/esm/templates-3480c08e.js.map +0 -1
  688. package/dist/esm/time-a3b29c35.js.map +0 -1
  689. package/dist/esm/utils-021cb956.js.map +0 -1
  690. package/dist/esm/utils-5fdd203c.js.map +0 -1
  691. package/dist/solutions/index.esm.js.map +0 -1
  692. package/dist/solutions/p-019fe34e.entry.js +0 -11
  693. package/dist/solutions/p-019fe34e.entry.js.map +0 -1
  694. package/dist/solutions/p-01d537aa.entry.js +0 -11
  695. package/dist/solutions/p-01d537aa.entry.js.map +0 -1
  696. package/dist/solutions/p-05c73b7d.js.map +0 -1
  697. package/dist/solutions/p-05da6de1.entry.js +0 -11
  698. package/dist/solutions/p-05da6de1.entry.js.map +0 -1
  699. package/dist/solutions/p-05eb87fc.entry.js +0 -11
  700. package/dist/solutions/p-05eb87fc.entry.js.map +0 -1
  701. package/dist/solutions/p-07099311.entry.js.map +0 -1
  702. package/dist/solutions/p-07f15398.entry.js +0 -7
  703. package/dist/solutions/p-07f15398.entry.js.map +0 -1
  704. package/dist/solutions/p-093edbdc.entry.js +0 -11
  705. package/dist/solutions/p-093edbdc.entry.js.map +0 -1
  706. package/dist/solutions/p-0b8525e2.js.map +0 -1
  707. package/dist/solutions/p-0c91e100.js +0 -7
  708. package/dist/solutions/p-0c91e100.js.map +0 -1
  709. package/dist/solutions/p-0fcee724.entry.js +0 -7
  710. package/dist/solutions/p-0fcee724.entry.js.map +0 -1
  711. package/dist/solutions/p-17a2150d.entry.js +0 -11
  712. package/dist/solutions/p-17a2150d.entry.js.map +0 -1
  713. package/dist/solutions/p-1aaa9800.entry.js +0 -7
  714. package/dist/solutions/p-1aaa9800.entry.js.map +0 -1
  715. package/dist/solutions/p-228131f3.js.map +0 -1
  716. package/dist/solutions/p-22d67647.entry.js +0 -11
  717. package/dist/solutions/p-22d67647.entry.js.map +0 -1
  718. package/dist/solutions/p-291cbb4f.js.map +0 -1
  719. package/dist/solutions/p-2a5c409a.entry.js +0 -7
  720. package/dist/solutions/p-2a5c409a.entry.js.map +0 -1
  721. package/dist/solutions/p-2aca233c.entry.js +0 -11
  722. package/dist/solutions/p-2aca233c.entry.js.map +0 -1
  723. package/dist/solutions/p-2b6ef800.entry.js +0 -7
  724. package/dist/solutions/p-2b6ef800.entry.js.map +0 -1
  725. package/dist/solutions/p-2bae730e.entry.js +0 -11
  726. package/dist/solutions/p-2bae730e.entry.js.map +0 -1
  727. package/dist/solutions/p-2d59c6d7.entry.js +0 -11
  728. package/dist/solutions/p-2d59c6d7.entry.js.map +0 -1
  729. package/dist/solutions/p-2e1cd889.js.map +0 -1
  730. package/dist/solutions/p-35eafdfb.entry.js +0 -11
  731. package/dist/solutions/p-35eafdfb.entry.js.map +0 -1
  732. package/dist/solutions/p-372da016.entry.js +0 -7
  733. package/dist/solutions/p-372da016.entry.js.map +0 -1
  734. package/dist/solutions/p-37407f95.entry.js +0 -7
  735. package/dist/solutions/p-37407f95.entry.js.map +0 -1
  736. package/dist/solutions/p-3ae90cbb.entry.js +0 -7
  737. package/dist/solutions/p-3ae90cbb.entry.js.map +0 -1
  738. package/dist/solutions/p-3c3ccd03.entry.js +0 -11
  739. package/dist/solutions/p-3c3ccd03.entry.js.map +0 -1
  740. package/dist/solutions/p-3e168893.entry.js +0 -11
  741. package/dist/solutions/p-3e168893.entry.js.map +0 -1
  742. package/dist/solutions/p-3e67ed97.js.map +0 -1
  743. package/dist/solutions/p-3ed5096e.entry.js +0 -11
  744. package/dist/solutions/p-3ed5096e.entry.js.map +0 -1
  745. package/dist/solutions/p-41c2e1cc.js.map +0 -1
  746. package/dist/solutions/p-44e661a2.js.map +0 -1
  747. package/dist/solutions/p-4573d7c2.js.map +0 -1
  748. package/dist/solutions/p-4635ae4a.entry.js +0 -11
  749. package/dist/solutions/p-4635ae4a.entry.js.map +0 -1
  750. package/dist/solutions/p-46bcadbd.entry.js +0 -11
  751. package/dist/solutions/p-46bcadbd.entry.js.map +0 -1
  752. package/dist/solutions/p-4b0b2534.entry.js +0 -11
  753. package/dist/solutions/p-4b0b2534.entry.js.map +0 -1
  754. package/dist/solutions/p-51e4c002.entry.js +0 -7
  755. package/dist/solutions/p-51e4c002.entry.js.map +0 -1
  756. package/dist/solutions/p-520d8443.entry.js +0 -11
  757. package/dist/solutions/p-520d8443.entry.js.map +0 -1
  758. package/dist/solutions/p-591d5666.entry.js +0 -11
  759. package/dist/solutions/p-591d5666.entry.js.map +0 -1
  760. package/dist/solutions/p-5aff6fc3.entry.js +0 -11
  761. package/dist/solutions/p-5aff6fc3.entry.js.map +0 -1
  762. package/dist/solutions/p-5c95f5ee.entry.js +0 -11
  763. package/dist/solutions/p-5c95f5ee.entry.js.map +0 -1
  764. package/dist/solutions/p-606933f1.entry.js +0 -11
  765. package/dist/solutions/p-606933f1.entry.js.map +0 -1
  766. package/dist/solutions/p-62464fb3.entry.js +0 -11
  767. package/dist/solutions/p-62464fb3.entry.js.map +0 -1
  768. package/dist/solutions/p-6e970d4c.entry.js +0 -7
  769. package/dist/solutions/p-6e970d4c.entry.js.map +0 -1
  770. package/dist/solutions/p-6f861da6.entry.js +0 -11
  771. package/dist/solutions/p-6f861da6.entry.js.map +0 -1
  772. package/dist/solutions/p-7096464e.js.map +0 -1
  773. package/dist/solutions/p-73e2d13f.js.map +0 -1
  774. package/dist/solutions/p-745f85bf.entry.js +0 -11
  775. package/dist/solutions/p-745f85bf.entry.js.map +0 -1
  776. package/dist/solutions/p-7480bdae.entry.js +0 -7
  777. package/dist/solutions/p-7480bdae.entry.js.map +0 -1
  778. package/dist/solutions/p-7611d9ad.entry.js +0 -11
  779. package/dist/solutions/p-7611d9ad.entry.js.map +0 -1
  780. package/dist/solutions/p-77b056db.entry.js +0 -7
  781. package/dist/solutions/p-77b056db.entry.js.map +0 -1
  782. package/dist/solutions/p-7804ce97.js.map +0 -1
  783. package/dist/solutions/p-7cc15662.entry.js +0 -15
  784. package/dist/solutions/p-7cc15662.entry.js.map +0 -1
  785. package/dist/solutions/p-7cc9c6af.js.map +0 -1
  786. package/dist/solutions/p-7d84c932.entry.js +0 -11
  787. package/dist/solutions/p-7d84c932.entry.js.map +0 -1
  788. package/dist/solutions/p-7df393df.js.map +0 -1
  789. package/dist/solutions/p-7f49ef40.entry.js +0 -11
  790. package/dist/solutions/p-7f49ef40.entry.js.map +0 -1
  791. package/dist/solutions/p-7f5c2987.entry.js +0 -7
  792. package/dist/solutions/p-7f5c2987.entry.js.map +0 -1
  793. package/dist/solutions/p-7fd90af2.entry.js +0 -11
  794. package/dist/solutions/p-7fd90af2.entry.js.map +0 -1
  795. package/dist/solutions/p-815449b1.entry.js +0 -11
  796. package/dist/solutions/p-815449b1.entry.js.map +0 -1
  797. package/dist/solutions/p-819aff56.entry.js +0 -11
  798. package/dist/solutions/p-819aff56.entry.js.map +0 -1
  799. package/dist/solutions/p-85cf288c.js.map +0 -1
  800. package/dist/solutions/p-87d812ce.entry.js +0 -7
  801. package/dist/solutions/p-87d812ce.entry.js.map +0 -1
  802. package/dist/solutions/p-8b616d33.entry.js +0 -7
  803. package/dist/solutions/p-8b616d33.entry.js.map +0 -1
  804. package/dist/solutions/p-8efca26d.entry.js +0 -7
  805. package/dist/solutions/p-8efca26d.entry.js.map +0 -1
  806. package/dist/solutions/p-946521e1.js.map +0 -1
  807. package/dist/solutions/p-970f1072.js +0 -22
  808. package/dist/solutions/p-970f1072.js.map +0 -1
  809. package/dist/solutions/p-9a953609.entry.js +0 -11
  810. package/dist/solutions/p-9a953609.entry.js.map +0 -1
  811. package/dist/solutions/p-9b381784.entry.js +0 -11
  812. package/dist/solutions/p-9b381784.entry.js.map +0 -1
  813. package/dist/solutions/p-9dad5583.entry.js +0 -11
  814. package/dist/solutions/p-9dad5583.entry.js.map +0 -1
  815. package/dist/solutions/p-9df9ac35.js.map +0 -1
  816. package/dist/solutions/p-9ee74ad4.entry.js +0 -7
  817. package/dist/solutions/p-9ee74ad4.entry.js.map +0 -1
  818. package/dist/solutions/p-9fab6046.entry.js +0 -22
  819. package/dist/solutions/p-9fab6046.entry.js.map +0 -1
  820. package/dist/solutions/p-9fc06fc3.entry.js +0 -15
  821. package/dist/solutions/p-9fc06fc3.entry.js.map +0 -1
  822. package/dist/solutions/p-a10dc180.js.map +0 -1
  823. package/dist/solutions/p-a1c40865.entry.js +0 -11
  824. package/dist/solutions/p-a1c40865.entry.js.map +0 -1
  825. package/dist/solutions/p-a3b16f15.entry.js +0 -7
  826. package/dist/solutions/p-a3b16f15.entry.js.map +0 -1
  827. package/dist/solutions/p-a7906d52.entry.js +0 -11
  828. package/dist/solutions/p-a7906d52.entry.js.map +0 -1
  829. package/dist/solutions/p-a8a106f7.entry.js +0 -7
  830. package/dist/solutions/p-a8a106f7.entry.js.map +0 -1
  831. package/dist/solutions/p-a8d2d1a3.entry.js +0 -7
  832. package/dist/solutions/p-a8d2d1a3.entry.js.map +0 -1
  833. package/dist/solutions/p-a98c5d29.entry.js +0 -11
  834. package/dist/solutions/p-a98c5d29.entry.js.map +0 -1
  835. package/dist/solutions/p-a9df64c4.js.map +0 -1
  836. package/dist/solutions/p-ad54d2e2.entry.js +0 -11
  837. package/dist/solutions/p-ad54d2e2.entry.js.map +0 -1
  838. package/dist/solutions/p-adf3704d.entry.js +0 -11
  839. package/dist/solutions/p-adf3704d.entry.js.map +0 -1
  840. package/dist/solutions/p-af46b00f.entry.js +0 -11
  841. package/dist/solutions/p-af46b00f.entry.js.map +0 -1
  842. package/dist/solutions/p-af9be2ca.js.map +0 -1
  843. package/dist/solutions/p-b797d79b.entry.js +0 -23
  844. package/dist/solutions/p-b797d79b.entry.js.map +0 -1
  845. package/dist/solutions/p-c09fc04d.entry.js +0 -11
  846. package/dist/solutions/p-c09fc04d.entry.js.map +0 -1
  847. package/dist/solutions/p-c11f84d9.entry.js +0 -11
  848. package/dist/solutions/p-c11f84d9.entry.js.map +0 -1
  849. package/dist/solutions/p-c195dbb7.entry.js +0 -7
  850. package/dist/solutions/p-c195dbb7.entry.js.map +0 -1
  851. package/dist/solutions/p-c34e0641.js.map +0 -1
  852. package/dist/solutions/p-c5428bbc.entry.js +0 -11
  853. package/dist/solutions/p-c5428bbc.entry.js.map +0 -1
  854. package/dist/solutions/p-cb5cb9a8.js.map +0 -1
  855. package/dist/solutions/p-ce3e9060.entry.js +0 -11
  856. package/dist/solutions/p-ce3e9060.entry.js.map +0 -1
  857. package/dist/solutions/p-d132d8ad.entry.js +0 -7
  858. package/dist/solutions/p-d132d8ad.entry.js.map +0 -1
  859. package/dist/solutions/p-d320e3a2.entry.js +0 -7
  860. package/dist/solutions/p-d320e3a2.entry.js.map +0 -1
  861. package/dist/solutions/p-d70ef015.entry.js +0 -11
  862. package/dist/solutions/p-d70ef015.entry.js.map +0 -1
  863. package/dist/solutions/p-e4edca3b.js.map +0 -1
  864. package/dist/solutions/p-e581f631.js.map +0 -1
  865. package/dist/solutions/p-e65a8700.entry.js +0 -11
  866. package/dist/solutions/p-e65a8700.entry.js.map +0 -1
  867. package/dist/solutions/p-e762b2d1.js.map +0 -1
  868. package/dist/solutions/p-eb2efc0f.js.map +0 -1
  869. package/dist/solutions/p-ec178ea9.js.map +0 -1
  870. package/dist/solutions/p-ecbfddde.js.map +0 -1
  871. package/dist/solutions/p-eceb11d1.js +0 -22
  872. package/dist/solutions/p-eceb11d1.js.map +0 -1
  873. package/dist/solutions/p-ede2beab.entry.js +0 -7
  874. package/dist/solutions/p-ede2beab.entry.js.map +0 -1
  875. package/dist/solutions/p-f0a6135d.entry.js +0 -11
  876. package/dist/solutions/p-f0a6135d.entry.js.map +0 -1
  877. package/dist/solutions/p-f187755e.js.map +0 -1
  878. package/dist/solutions/p-f3c6b68d.entry.js +0 -7
  879. package/dist/solutions/p-f3c6b68d.entry.js.map +0 -1
  880. package/dist/solutions/p-f49bc4a8.js.map +0 -1
  881. package/dist/solutions/p-f6e8ee98.entry.js +0 -7
  882. package/dist/solutions/p-f6e8ee98.entry.js.map +0 -1
  883. package/dist/solutions/p-f780039d.js.map +0 -1
  884. package/dist/solutions/p-fa40e7e7.entry.js +0 -7
  885. package/dist/solutions/p-fa40e7e7.entry.js.map +0 -1
  886. package/dist/solutions/p-fb25fc4a.entry.js +0 -7
  887. package/dist/solutions/p-fb25fc4a.entry.js.map +0 -1
  888. package/dist/solutions/p-fbdf3e06.js.map +0 -1
  889. package/dist/solutions/p-fc1c8168.js.map +0 -1
  890. package/dist/solutions/p-ff3697a9.entry.js +0 -7
  891. package/dist/solutions/p-ff3697a9.entry.js.map +0 -1
  892. package/dist/solutions/solutions.esm.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/components/calcite-checkbox/calcite-checkbox.css?tag=calcite-checkbox&encapsulation=shadow","node_modules/@esri/calcite-components/dist/collection/components/calcite-checkbox/calcite-checkbox.js","node_modules/@esri/calcite-components/dist/collection/components/calcite-tree/interfaces.js","node_modules/@esri/calcite-components/dist/collection/components/calcite-tree/calcite-tree.css?tag=calcite-tree&encapsulation=shadow","node_modules/@esri/calcite-components/dist/collection/components/calcite-tree/calcite-tree.js","node_modules/@esri/calcite-components/dist/collection/components/calcite-tree-item/resources.js","node_modules/@esri/calcite-components/dist/collection/components/calcite-tree-item/calcite-tree-item.css?tag=calcite-tree-item&encapsulation=shadow","node_modules/@esri/calcite-components/dist/collection/components/calcite-tree-item/calcite-tree-item.js","src/components/solution-item-icon/solution-item-icon.css?tag=solution-item-icon","src/components/solution-item-icon/solution-item-icon.tsx"],"names":["calciteCheckboxCss","CalciteCheckbox","[object Object]","hostRef","this","checked","disabled","hovered","indeterminate","required","scale","checkedPath","indeterminatePath","getPath","toggle","setFocus","calciteCheckboxChange","emit","keyDownHandler","event","key","preventDefault","clickHandler","onToggleBlur","calciteInternalCheckboxBlur","onToggleFocus","calciteInternalCheckboxFocus","onLabelClick","_a","toggleEl","focus","guid","el","id","connectLabel","connectForm","disconnectLabel","disconnectForm","h","Host","onClick","onKeyDown","aria-checked","toString","aria-label","getLabelText","class","onBlur","onFocus","ref","role","tabIndex","viewBox","d","HiddenFormInputSlot","component","TreeSelectionMode","calciteTreeCss","CalciteTree","lines","inputEnabled","selectionMode","Single","parent","parentElement","closest","child","aria-multiselectable","Multi","MultiChildren","undefined","getRootTabIndex","focusTarget","querySelector","focusElement","focusedFromRootOrOutsideTree","relatedTarget","contains","willFocusOutsideTree","e","target","childItems","nodeListToArray","querySelectorAll","stopPropagation","Ancestors","updateAncestorTree","shouldSelect","hasChildren","Children","shouldModifyToCurrentSelection","detail","modifyCurrentSelection","shouldSelectChildren","shouldClearCurrentSelection","length","shouldExpandTarget","targetItems","push","forEach","treeItem","selectedItems","includes","selected","forceToggle","expanded","window","getSelection","removeAllRanges","calciteTreeSelect","filter","i","item","children","ancestors","ancestor","descendants","activeDescendants","CSS","checkboxLabel","checkbox","chevron","nodeContainer","childrenContainer","bulletPointIcon","checkmarkIcon","SLOTS","ICONS","bulletPoint","checkmark","chevronRight","calciteTreeItemCss","CalciteTreeItem","parentExpanded","depth","iconClickHandler","calciteTreeItemSelect","shiftKey","childrenClickHandler","updateParentIsExpanded","items","getSlotted","all","selector","parentTreeItem","newValue","parentTree","nextParentTree","rtl","getElementDir","showBulletPoint","showCheckmark","CSS_UTILITY","data-test-id","icon","selectedIcon","bulletOrCheckIcon","hidden","aria-expanded","aria-hidden","aria-selected","calcite-hydrated-hidden","tabindex","data-selection-mode","defaultSlotWrapper","childrenSlotWrapper","name","link","filterDirectChildren","composedPath","tagName","toLowerCase","open","href","root","getKey","find","matches","click","parentItem","previous","previousElementSibling","next","nextElementSibling","firstNode","currentNode","currentTree","solutionItemIconCss","SolutionItemIcon","translations","isPortal","type","typeKeywords","title","height","src","_getIconUrl","width","itemType","imgDir","size","isHosted","isRouteLayer","isMarkupLayer","isTable","isSpatiotemporal","isRelational","imgName","indexOf","getAssetPath"],"mappings":";;;;;2SAAA,MAAMA,EAAqB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,IAAa,kBAAmB,CACzCS,EAAU,sBACL,GAAIT,IAAa,0BAA2B,CACjDS,EAAU,6BACL,GAAIT,IAAa,iBAAkB,CACxCS,EAAU,qBACL,GAAIT,IAAa,QAAQ,CAC9BS,EAAU,YACL,CACLA,EAAU,OAEZ,OAAOA,EAAUE,EAAaV,EAASQ,EAAUP,EAAO,QAAU","sourcesContent":["/* mixins & extensions */\n\n@keyframes in {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n@keyframes in-down {\n 0% {\n opacity: 0;\n transform: translate3D(0, -5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-up {\n 0% {\n opacity: 0;\n transform: translate3D(0, 5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-scale {\n 0% {\n opacity: 0;\n transform: scale3D(0.95, 0.95, 1);\n }\n\n 100% {\n opacity: 1;\n transform: scale3D(1, 1, 1);\n }\n}\n\n:root {\n --calcite-animation-timing: 300ms;\n}\n\n.calcite-animate {\n opacity: 0;\n animation-fill-mode: both;\n animation-duration: var(--calcite-animation-timing);\n}\n\n.calcite-animate__in {\n animation-name: in;\n}\n\n.calcite-animate__in-down {\n animation-name: in-down;\n}\n\n.calcite-animate__in-up {\n animation-name: in-up;\n}\n\n.calcite-animate__in-scale {\n animation-name: in-scale;\n}\n\n/**\n* Currently only used in Checkbox.\n*/\n\n:root {\n --calcite-popper-transition: 150ms ease-in-out;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n/**\n* CSS Custom Properties\n*\n* These properties can be overridden using the component's tag as selector.\n*\n* @prop --calcite-checkbox-size: the width and height of the checkbox\n*/\n\n:host([scale=s]) {\n --calcite-checkbox-size: 0.75rem;\n}\n\n:host([scale=m]) {\n --calcite-checkbox-size: var(--calcite-font-size--1);\n}\n\n:host([scale=l]) {\n --calcite-checkbox-size: 1rem;\n}\n\n:host {\n display: inline-flex;\n cursor: pointer;\n position: relative;\n -webkit-user-select: none;\n user-select: none;\n -webkit-tap-highlight-color: transparent;\n}\n\n:host .check-svg {\n overflow: hidden;\n display: block;\n background-color: var(--calcite-ui-foreground-1);\n pointer-events: none;\n box-sizing: border-box;\n transition-property: all;\n transition-duration: 150ms;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n stroke: currentColor;\n stroke-width: 1;\n fill: currentColor;\n width: var(--calcite-checkbox-size);\n height: var(--calcite-checkbox-size);\n box-shadow: inset 0 0 0 1px var(--calcite-ui-border-input);\n color: var(--calcite-ui-background);\n}\n\n:host([checked]) .check-svg,\n:host([indeterminate]) .check-svg {\n background-color: var(--calcite-ui-brand);\n box-shadow: inset 0 0 0 1px var(--calcite-ui-brand);\n}\n\n:host([hovered]) .toggle .check-svg,\n:host .toggle:hover .check-svg {\n box-shadow: inset 0 0 0 2px var(--calcite-ui-brand);\n}\n\n:host .toggle:focus .check-svg,\n:host .toggle:active .check-svg {\n box-shadow: inset 0 0 0 1px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);\n transition: 150ms ease-in-out;\n}\n\n:host([disabled]) {\n cursor: default;\n opacity: var(--calcite-ui-opacity-disabled);\n pointer-events: none;\n}\n\n::slotted(input[slot=hidden-form-input]) {\n bottom: 0 !important;\n left: 0 !important;\n margin: 0 !important;\n opacity: 0 !important;\n outline: none !important;\n padding: 0 !important;\n position: absolute !important;\n right: 0 !important;\n top: 0 !important;\n transform: none !important;\n -webkit-appearance: none !important;\n z-index: -1 !important;\n}","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nimport { Component, Element, Event, h, Host, Method, Prop } from \"@stencil/core\";\nimport { guid } from \"../../utils/guid\";\nimport { HiddenFormInputSlot } from \"../../utils/form\";\nimport { connectLabel, disconnectLabel, getLabelText } from \"../../utils/label\";\nimport { connectForm, disconnectForm } from \"../../utils/form\";\nexport class CalciteCheckbox {\n constructor() {\n //--------------------------------------------------------------------------\n //\n // Properties\n //\n //--------------------------------------------------------------------------\n /** The checked state of the checkbox. */\n this.checked = false;\n /** True if the checkbox is disabled */\n this.disabled = false;\n /**\n * The hovered state of the checkbox.\n * @internal\n */\n this.hovered = false;\n /**\n * True if the checkbox is initially indeterminate,\n * which is independent from its checked state\n * https://css-tricks.com/indeterminate-checkboxes/\n * */\n this.indeterminate = false;\n /**\n * When true, makes the component required for form-submission.\n *\n * @internal\n */\n this.required = false;\n /** specify the scale of the checkbox, defaults to m */\n this.scale = \"m\";\n //--------------------------------------------------------------------------\n //\n // Private Properties\n //\n //--------------------------------------------------------------------------\n this.checkedPath = \"M5.5 12L2 8.689l.637-.636L5.5 10.727l8.022-7.87.637.637z\";\n this.indeterminatePath = \"M13 8v1H3V8z\";\n //--------------------------------------------------------------------------\n //\n // Private Methods\n //\n //--------------------------------------------------------------------------\n this.getPath = () => this.indeterminate ? this.indeterminatePath : this.checked ? this.checkedPath : \"\";\n this.toggle = () => {\n if (!this.disabled) {\n this.checked = !this.checked;\n this.setFocus();\n this.indeterminate = false;\n this.calciteCheckboxChange.emit();\n }\n };\n this.keyDownHandler = (event) => {\n if (event.key === \" \" || event.key === \"Enter\") {\n this.toggle();\n event.preventDefault();\n }\n };\n this.clickHandler = () => {\n this.toggle();\n };\n //--------------------------------------------------------------------------\n //\n // Event Listeners\n //\n //--------------------------------------------------------------------------\n this.onToggleBlur = () => {\n this.calciteInternalCheckboxBlur.emit(false);\n };\n this.onToggleFocus = () => {\n this.calciteInternalCheckboxFocus.emit(true);\n };\n this.onLabelClick = () => {\n this.toggle();\n };\n }\n //--------------------------------------------------------------------------\n //\n // Public Methods\n //\n //--------------------------------------------------------------------------\n /** Sets focus on the component. */\n async setFocus() {\n var _a;\n (_a = this.toggleEl) === null || _a === void 0 ? void 0 : _a.focus();\n }\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n connectedCallback() {\n this.guid = this.el.id || `calcite-checkbox-${guid()}`;\n connectLabel(this);\n connectForm(this);\n }\n disconnectedCallback() {\n disconnectLabel(this);\n disconnectForm(this);\n }\n // --------------------------------------------------------------------------\n //\n // Render Methods\n //\n // --------------------------------------------------------------------------\n render() {\n return (h(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler },\n h(\"div\", { \"aria-checked\": this.checked.toString(), \"aria-label\": getLabelText(this), class: \"toggle\", onBlur: this.onToggleBlur, onFocus: this.onToggleFocus, ref: (toggleEl) => (this.toggleEl = toggleEl), role: \"checkbox\", tabIndex: 0 },\n h(\"svg\", { class: \"check-svg\", viewBox: \"0 0 16 16\" },\n h(\"path\", { d: this.getPath() })),\n h(\"slot\", null)),\n h(HiddenFormInputSlot, { component: this })));\n }\n static get is() { return \"calcite-checkbox\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"calcite-checkbox.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-checkbox.css\"]\n }; }\n static get properties() { return {\n \"checked\": {\n \"type\": \"boolean\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The checked state of the checkbox.\"\n },\n \"attribute\": \"checked\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"disabled\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"True if the checkbox is disabled\"\n },\n \"attribute\": \"disabled\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"guid\": {\n \"type\": \"string\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The id attribute of the checkbox. When omitted, a globally unique identifier is used.\"\n },\n \"attribute\": \"guid\",\n \"reflect\": true\n },\n \"hovered\": {\n \"type\": \"boolean\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": undefined\n }],\n \"text\": \"The hovered state of the checkbox.\"\n },\n \"attribute\": \"hovered\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"indeterminate\": {\n \"type\": \"boolean\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"True if the checkbox is initially indeterminate,\\nwhich is independent from its checked state\\nhttps://css-tricks.com/indeterminate-checkboxes/\"\n },\n \"attribute\": \"indeterminate\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"label\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": undefined\n }],\n \"text\": \"The label of the checkbox input\"\n },\n \"attribute\": \"label\",\n \"reflect\": false\n },\n \"name\": {\n \"type\": \"any\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The name of the checkbox input\"\n },\n \"attribute\": \"name\",\n \"reflect\": true\n },\n \"required\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": undefined\n }],\n \"text\": \"When true, makes the component required for form-submission.\"\n },\n \"attribute\": \"required\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"scale\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Scale\",\n \"resolved\": \"\\\"l\\\" | \\\"m\\\" | \\\"s\\\"\",\n \"references\": {\n \"Scale\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"specify the scale of the checkbox, defaults to m\"\n },\n \"attribute\": \"scale\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"m\\\"\"\n },\n \"value\": {\n \"type\": \"any\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The value of the checkbox input\"\n },\n \"attribute\": \"value\",\n \"reflect\": false\n }\n }; }\n static get events() { return [{\n \"method\": \"calciteInternalCheckboxBlur\",\n \"name\": \"calciteInternalCheckboxBlur\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": undefined\n }],\n \"text\": \"Emitted when the checkbox is blurred\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }, {\n \"method\": \"calciteCheckboxChange\",\n \"name\": \"calciteCheckboxChange\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Emitted when the checkbox checked status changes\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }, {\n \"method\": \"calciteInternalCheckboxFocus\",\n \"name\": \"calciteInternalCheckboxFocus\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": undefined\n }],\n \"text\": \"Emitted when the checkbox is focused\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }]; }\n static get methods() { return {\n \"setFocus\": {\n \"complexType\": {\n \"signature\": \"() => Promise<void>\",\n \"parameters\": [],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n }\n },\n \"return\": \"Promise<void>\"\n },\n \"docs\": {\n \"text\": \"Sets focus on the component.\",\n \"tags\": []\n }\n }\n }; }\n static get elementRef() { return \"el\"; }\n}\n","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nexport var TreeSelectionMode;\n(function (TreeSelectionMode) {\n TreeSelectionMode[\"Single\"] = \"single\";\n TreeSelectionMode[\"Multi\"] = \"multi\";\n TreeSelectionMode[\"Children\"] = \"children\";\n TreeSelectionMode[\"MultiChildren\"] = \"multi-children\";\n TreeSelectionMode[\"Ancestors\"] = \"ancestors\";\n})(TreeSelectionMode || (TreeSelectionMode = {}));\n","/* mixins & extensions */\n\n@keyframes in {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n@keyframes in-down {\n 0% {\n opacity: 0;\n transform: translate3D(0, -5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-up {\n 0% {\n opacity: 0;\n transform: translate3D(0, 5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-scale {\n 0% {\n opacity: 0;\n transform: scale3D(0.95, 0.95, 1);\n }\n\n 100% {\n opacity: 1;\n transform: scale3D(1, 1, 1);\n }\n}\n\n:root {\n --calcite-animation-timing: 300ms;\n}\n\n.calcite-animate {\n opacity: 0;\n animation-fill-mode: both;\n animation-duration: var(--calcite-animation-timing);\n}\n\n.calcite-animate__in {\n animation-name: in;\n}\n\n.calcite-animate__in-down {\n animation-name: in-down;\n}\n\n.calcite-animate__in-up {\n animation-name: in-up;\n}\n\n.calcite-animate__in-scale {\n animation-name: in-scale;\n}\n\n/**\n* Currently only used in Checkbox.\n*/\n\n:root {\n --calcite-popper-transition: 150ms ease-in-out;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n:host {\n display: block;\n outline: 2px solid transparent;\n outline-offset: 2px;\n}","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nimport { Component, Element, Prop, Host, Event, Listen, h } from \"@stencil/core\";\nimport { focusElement, nodeListToArray } from \"../../utils/dom\";\nimport { TreeSelectionMode } from \"./interfaces\";\n/**\n * @slot - A slot for `calcite-tree-item` elements.\n */\nexport class CalciteTree {\n constructor() {\n //--------------------------------------------------------------------------\n //\n // Properties\n //\n //--------------------------------------------------------------------------\n /** Display indentation guide lines */\n this.lines = false;\n /** Display input\n * @deprecated use \"ancestors\" selection-mode for checkbox input\n */\n this.inputEnabled = false;\n /** Specify the scale of the tree, defaults to m */\n this.scale = \"m\";\n /** Customize how tree selection works (single, multi, children, multi-children, ancestors)\n * @default \"single\"\n * @see [TreeSelectionMode](https://github.com/Esri/calcite-components/blob/master/src/components/calcite-tree/interfaces.ts#L5)\n */\n this.selectionMode = TreeSelectionMode.Single;\n }\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n componentWillRender() {\n const parent = this.el.parentElement.closest(\"calcite-tree\");\n this.lines = parent ? parent.lines : this.lines;\n this.scale = parent ? parent.scale : this.scale;\n this.selectionMode = parent ? parent.selectionMode : this.selectionMode;\n this.child = !!parent;\n }\n render() {\n return (h(Host, { \"aria-multiselectable\": (this.selectionMode === TreeSelectionMode.Multi ||\n this.selectionMode === TreeSelectionMode.MultiChildren).toString(), role: !this.child ? \"tree\" : undefined, tabIndex: this.getRootTabIndex() },\n h(\"slot\", null)));\n }\n //--------------------------------------------------------------------------\n //\n // Event Listeners\n //\n //--------------------------------------------------------------------------\n onFocus() {\n if (!this.child) {\n const focusTarget = this.el.querySelector(\"calcite-tree-item[selected]\") ||\n this.el.querySelector(\"calcite-tree-item\");\n focusElement(focusTarget);\n }\n }\n onFocusIn(event) {\n const focusedFromRootOrOutsideTree = event.relatedTarget === this.el || !this.el.contains(event.relatedTarget);\n if (focusedFromRootOrOutsideTree) {\n this.el.tabIndex = -1;\n }\n }\n onFocusOut(event) {\n const willFocusOutsideTree = !this.el.contains(event.relatedTarget);\n if (willFocusOutsideTree) {\n this.el.tabIndex = this.getRootTabIndex();\n }\n }\n onClick(e) {\n const target = e.target;\n const childItems = nodeListToArray(target.querySelectorAll(\"calcite-tree-item\"));\n if (this.child) {\n return;\n }\n if (!this.child) {\n e.preventDefault();\n e.stopPropagation();\n }\n if (this.selectionMode === TreeSelectionMode.Ancestors && !this.child) {\n this.updateAncestorTree(e);\n return;\n }\n const shouldSelect = this.selectionMode !== null &&\n (!target.hasChildren ||\n (target.hasChildren &&\n (this.selectionMode === TreeSelectionMode.Children ||\n this.selectionMode === TreeSelectionMode.MultiChildren)));\n const shouldModifyToCurrentSelection = e.detail.modifyCurrentSelection &&\n (this.selectionMode === TreeSelectionMode.Multi ||\n this.selectionMode === TreeSelectionMode.MultiChildren);\n const shouldSelectChildren = this.selectionMode === TreeSelectionMode.MultiChildren ||\n this.selectionMode === TreeSelectionMode.Children;\n const shouldClearCurrentSelection = !shouldModifyToCurrentSelection &&\n (((this.selectionMode === TreeSelectionMode.Single ||\n this.selectionMode === TreeSelectionMode.Multi) &&\n childItems.length <= 0) ||\n this.selectionMode === TreeSelectionMode.Children ||\n this.selectionMode === TreeSelectionMode.MultiChildren);\n const shouldExpandTarget = this.selectionMode === TreeSelectionMode.Children ||\n this.selectionMode === TreeSelectionMode.MultiChildren;\n if (!this.child) {\n const targetItems = [];\n if (shouldSelect) {\n targetItems.push(target);\n }\n if (shouldSelectChildren) {\n childItems.forEach((treeItem) => {\n targetItems.push(treeItem);\n });\n }\n if (shouldClearCurrentSelection) {\n const selectedItems = nodeListToArray(this.el.querySelectorAll(\"calcite-tree-item[selected]\"));\n selectedItems.forEach((treeItem) => {\n if (!targetItems.includes(treeItem)) {\n treeItem.selected = false;\n }\n });\n }\n if (shouldExpandTarget && !e.detail.forceToggle) {\n target.expanded = true;\n }\n if (shouldModifyToCurrentSelection) {\n window.getSelection().removeAllRanges();\n }\n if ((shouldModifyToCurrentSelection && target.selected) ||\n (shouldSelectChildren && e.detail.forceToggle)) {\n targetItems.forEach((treeItem) => {\n treeItem.selected = false;\n });\n }\n else {\n targetItems.forEach((treeItem) => {\n treeItem.selected = true;\n });\n }\n }\n this.calciteTreeSelect.emit({\n selected: nodeListToArray(this.el.querySelectorAll(\"calcite-tree-item\")).filter((i) => i.selected)\n });\n }\n updateAncestorTree(e) {\n const item = e.target;\n const children = item.querySelectorAll(\"calcite-tree-item\");\n const ancestors = [];\n let parent = item.parentElement.closest(\"calcite-tree-item\");\n while (parent) {\n ancestors.push(parent);\n parent = parent.parentElement.closest(\"calcite-tree-item\");\n }\n item.selected = !item.selected;\n item.indeterminate = false;\n if (children === null || children === void 0 ? void 0 : children.length) {\n children.forEach((el) => {\n el.selected = item.selected;\n el.indeterminate = false;\n });\n }\n if (ancestors) {\n ancestors.forEach((ancestor) => {\n const descendants = nodeListToArray(ancestor.querySelectorAll(\"calcite-tree-item\"));\n const activeDescendants = descendants.filter((el) => el.selected);\n if (activeDescendants.length === 0) {\n ancestor.selected = false;\n ancestor.indeterminate = false;\n return;\n }\n const indeterminate = activeDescendants.length < descendants.length;\n ancestor.indeterminate = indeterminate;\n ancestor.selected = !indeterminate;\n });\n }\n this.calciteTreeSelect.emit({\n selected: nodeListToArray(this.el.querySelectorAll(\"calcite-tree-item\")).filter((i) => i.selected)\n });\n }\n // --------------------------------------------------------------------------\n //\n // Private Methods\n //\n //--------------------------------------------------------------------------\n getRootTabIndex() {\n return !this.child ? 0 : -1;\n }\n static get is() { return \"calcite-tree\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"calcite-tree.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-tree.css\"]\n }; }\n static get properties() { return {\n \"lines\": {\n \"type\": \"boolean\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Display indentation guide lines\"\n },\n \"attribute\": \"lines\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"inputEnabled\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"deprecated\",\n \"text\": \"use \\\"ancestors\\\" selection-mode for checkbox input\"\n }],\n \"text\": \"Display input\"\n },\n \"attribute\": \"input-enabled\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"child\": {\n \"type\": \"boolean\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": \"If this tree is nested within another tree, set to false\"\n }],\n \"text\": \"\"\n },\n \"attribute\": \"child\",\n \"reflect\": true\n },\n \"scale\": {\n \"type\": \"string\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"Scale\",\n \"resolved\": \"\\\"l\\\" | \\\"m\\\" | \\\"s\\\"\",\n \"references\": {\n \"Scale\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Specify the scale of the tree, defaults to m\"\n },\n \"attribute\": \"scale\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"m\\\"\"\n },\n \"selectionMode\": {\n \"type\": \"string\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"TreeSelectionMode\",\n \"resolved\": \"TreeSelectionMode.Ancestors | TreeSelectionMode.Children | TreeSelectionMode.Multi | TreeSelectionMode.MultiChildren | TreeSelectionMode.Single\",\n \"references\": {\n \"TreeSelectionMode\": {\n \"location\": \"import\",\n \"path\": \"./interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"default\",\n \"text\": \"\\\"single\\\"\"\n }, {\n \"name\": \"see\",\n \"text\": \" [TreeSelectionMode](https://github.com/Esri/calcite-components/blob/master/src/components/calcite-tree/interfaces.ts#L5)\"\n }],\n \"text\": \"Customize how tree selection works (single, multi, children, multi-children, ancestors)\"\n },\n \"attribute\": \"selection-mode\",\n \"reflect\": true,\n \"defaultValue\": \"TreeSelectionMode.Single\"\n }\n }; }\n static get events() { return [{\n \"method\": \"calciteTreeSelect\",\n \"name\": \"calciteTreeSelect\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"see\",\n \"text\": \" [TreeSelectDetail](https://github.com/Esri/calcite-components/blob/master/src/components/calcite-tree/interfaces.ts#L1)\"\n }],\n \"text\": \"Emitted when user selects/deselects tree items. An object including an array of selected items will be passed in the event's `detail` property.\"\n },\n \"complexType\": {\n \"original\": \"TreeSelectDetail\",\n \"resolved\": \"TreeSelectDetail\",\n \"references\": {\n \"TreeSelectDetail\": {\n \"location\": \"import\",\n \"path\": \"./interfaces\"\n }\n }\n }\n }]; }\n static get elementRef() { return \"el\"; }\n static get listeners() { return [{\n \"name\": \"focus\",\n \"method\": \"onFocus\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }, {\n \"name\": \"focusin\",\n \"method\": \"onFocusIn\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }, {\n \"name\": \"focusout\",\n \"method\": \"onFocusOut\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }, {\n \"name\": \"calciteTreeItemSelect\",\n \"method\": \"onClick\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }]; }\n}\n","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nexport const CSS = {\n checkboxLabel: \"checkbox-label\",\n checkbox: \"checkbox\",\n chevron: \"chevron\",\n nodeContainer: \"node-container\",\n childrenContainer: \"children-container\",\n bulletPointIcon: \"bullet-point\",\n checkmarkIcon: \"checkmark\"\n};\nexport const SLOTS = {\n children: \"children\"\n};\nexport const ICONS = {\n bulletPoint: \"bullet-point\",\n checkmark: \"check\",\n chevronRight: \"chevron-right\"\n};\n","/* mixins & extensions */\n\n@keyframes in {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n@keyframes in-down {\n 0% {\n opacity: 0;\n transform: translate3D(0, -5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-up {\n 0% {\n opacity: 0;\n transform: translate3D(0, 5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-scale {\n 0% {\n opacity: 0;\n transform: scale3D(0.95, 0.95, 1);\n }\n\n 100% {\n opacity: 1;\n transform: scale3D(1, 1, 1);\n }\n}\n\n:root {\n --calcite-animation-timing: 300ms;\n}\n\n.calcite-animate {\n opacity: 0;\n animation-fill-mode: both;\n animation-duration: var(--calcite-animation-timing);\n}\n\n.calcite-animate__in {\n animation-name: in;\n}\n\n.calcite-animate__in-down {\n animation-name: in-down;\n}\n\n.calcite-animate__in-up {\n animation-name: in-up;\n}\n\n.calcite-animate__in-scale {\n animation-name: in-scale;\n}\n\n/**\n* Currently only used in Checkbox.\n*/\n\n:root {\n --calcite-popper-transition: 150ms ease-in-out;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n:host {\n display: block;\n cursor: pointer;\n outline: 2px solid transparent;\n outline-offset: 2px;\n max-width: 100%;\n color: var(--calcite-ui-text-3);\n}\n\n:host([scale=s]) {\n font-size: var(--calcite-font-size--2);\n line-height: 1rem;\n}\n\n:host([scale=s]) .node-container {\n --calcite-tree-padding-y: 0.25rem;\n}\n\n:host([scale=s]) .node-container .checkbox,\n:host([scale=s]) .node-container .chevron,\n:host([scale=s]) .node-container .checkmark,\n:host([scale=s]) .node-container .bullet-point {\n margin-inline: 0.25rem;\n}\n\n:host([scale=m]) {\n font-size: var(--calcite-font-size--1);\n line-height: 1rem;\n}\n\n:host([scale=m]) .node-container {\n --calcite-tree-padding-y: 0.5rem;\n}\n\n:host([scale=m]) .node-container .checkbox,\n:host([scale=m]) .node-container .chevron,\n:host([scale=m]) .node-container .checkmark,\n:host([scale=m]) .node-container .bullet-point {\n margin-inline: 0.5rem;\n}\n\n:host([scale=l]) {\n font-size: var(--calcite-font-size-0);\n line-height: 1.25rem;\n}\n\n:host([scale=l]) .node-container {\n --calcite-tree-padding-y: 0.75rem;\n}\n\n:host([scale=l]) .node-container .checkbox,\n:host([scale=l]) .node-container .chevron,\n:host([scale=l]) .node-container .checkmark,\n:host([scale=l]) .node-container .bullet-point {\n margin-inline: 0.75rem;\n}\n\n:host([lines]) .children-container:after {\n transition-property: all;\n transition-duration: 150ms;\n transition-timing-function: ease-in-out;\n transition-delay: 0s;\n transition-property: background-color, border-color, color, fill, stroke;\n top: 0;\n position: absolute;\n width: 1px;\n height: 96%;\n content: \"\";\n background-color: var(--calcite-ui-border-2);\n z-index: -1;\n}\n\n:host(:not([lines])) .node-container:after {\n display: none;\n}\n\n::slotted(*) {\n word-wrap: break-word;\n overflow-wrap: break-word;\n min-width: 0;\n max-width: 100%;\n color: inherit;\n text-decoration: none !important;\n}\n\n::slotted(*):hover {\n text-decoration: none !important;\n}\n\n::slotted(a) {\n width: 100%;\n text-decoration: none;\n}\n\n:host {\n outline-offset: 0;\n outline-color: transparent;\n transition: outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;\n}\n\n:host(:focus) {\n outline: 2px solid var(--calcite-ui-brand);\n outline-offset: -2px;\n}\n\n.checkbox {\n outline: 2px solid transparent;\n outline-offset: 2px;\n line-height: 0;\n}\n\n.checkbox-label {\n display: flex;\n align-items: center;\n pointer-events: none;\n}\n\n.children-container {\n position: relative;\n overflow: hidden;\n height: 0;\n margin-inline-start: 1.25rem;\n transform: scaleY(0);\n opacity: 0;\n transition: 0.15s cubic-bezier(0.215, 0.44, 0.42, 0.88), opacity 0.15s cubic-bezier(0.215, 0.44, 0.42, 0.88), all 0.15s ease-in-out;\n transform-origin: top;\n}\n\n:host([expanded]) > .children-container {\n transform: scaleY(1);\n opacity: 1;\n height: auto;\n}\n\n.node-container {\n display: flex;\n align-items: center;\n position: relative;\n padding: var(--calcite-tree-padding-y) 0;\n}\n\n.node-container .checkmark,\n.node-container .bullet-point {\n transition-property: all;\n transition-duration: 150ms;\n transition-timing-function: ease-in-out;\n transition-delay: 0s;\n opacity: 0;\n color: var(--calcite-ui-border-1);\n}\n\n.node-container:hover .checkmark,\n.node-container:hover .bullet-point,\n:host([selected]) .node-container:hover .checkmark,\n:host([selected]) .node-container:hover .bullet-point,\n:host(:focus) .node-container .checkmark,\n:host(:focus) .node-container .bullet-point {\n opacity: 1;\n}\n\n:host([selected]) > .node-container,\n:host([selected]) > .node-container:hover {\n font-weight: var(--calcite-font-weight-medium);\n color: var(--calcite-ui-text-1);\n}\n\n:host([selected]) > .node-container .bullet-point,\n:host([selected]) > .node-container .checkmark,\n:host([selected]) > .node-container:hover .bullet-point,\n:host([selected]) > .node-container:hover .checkmark {\n opacity: 1;\n color: var(--calcite-ui-brand);\n}\n\n:host(:not([has-children])):host([scale=s]) > .node-container[data-selection-mode=ancestors] .checkbox {\n padding-inline-start: 1.25rem;\n}\n\n:host(:not([has-children])):host([scale=m]) > .node-container[data-selection-mode=ancestors] .checkbox {\n padding-inline-start: 1.5rem;\n}\n\n:host(:not([has-children])):host([scale=l]) > .node-container[data-selection-mode=ancestors] .checkbox {\n padding-inline-start: 1.75rem;\n}\n\n:host([has-children]) > .node-container[data-selection-mode=ancestors] .checkbox {\n margin-inline-start: 0;\n}\n\n:host([has-children]) > .node-container .bullet-point,\n:host([has-children]) > .node-container .checkmark {\n display: none;\n}\n\n:host([has-children][expanded]:not([selected])) > .node-container ::slotted(*) {\n font-weight: var(--calcite-font-weight-medium);\n color: var(--calcite-ui-text-1);\n}\n\n:host([has-children][selected]) > .node-container[data-selection-mode=children], :host([has-children][selected]) > .node-container[data-selection-mode=multi-children] {\n color: var(--calcite-ui-brand);\n}\n\n.chevron {\n transition-property: all;\n transition-duration: 150ms;\n transition-timing-function: ease-in-out;\n transition-delay: 0s;\n position: relative;\n align-self: center;\n color: var(--calcite-ui-text-3);\n flex: 0 0 auto;\n transform: rotate(0deg);\n}\n\n.calcite--rtl .chevron {\n transform: rotate(180deg);\n}\n\n:host([expanded]) > .node-container > .chevron {\n transform: rotate(90deg);\n}\n\n:host([selected]) .checkmark,\n:host([selected]) .bullet-point {\n color: var(--calcite-ui-brand);\n}","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nimport { Component, Element, Prop, Host, Event, Listen, Watch, h } from \"@stencil/core\";\nimport { TreeSelectionMode } from \"../calcite-tree/interfaces\";\nimport { nodeListToArray, getElementDir, filterDirectChildren, getSlotted } from \"../../utils/dom\";\nimport { getKey } from \"../../utils/key\";\nimport { CSS, SLOTS, ICONS } from \"./resources\";\nimport { CSS_UTILITY } from \"../../utils/resources\";\n/**\n * @slot - A slot for adding content to the item.\n * @slot children - A slot for adding nested `calcite-tree` elements.\n */\nexport class CalciteTreeItem {\n constructor() {\n //--------------------------------------------------------------------------\n //\n // Properties\n //\n //--------------------------------------------------------------------------\n /** Is the item currently selected */\n this.selected = false;\n /** True if the item is in an expanded state */\n this.expanded = false;\n /** @internal Is the parent of this item expanded? */\n this.parentExpanded = false;\n /** @internal What level of depth is this item at? */\n this.depth = -1;\n /** @internal Does this tree item have a tree inside it? */\n this.hasChildren = null;\n this.iconClickHandler = (event) => {\n event.stopPropagation();\n this.expanded = !this.expanded;\n if (this.selectionMode !== TreeSelectionMode.Ancestors) {\n this.calciteTreeItemSelect.emit({\n modifyCurrentSelection: event.shiftKey,\n forceToggle: true\n });\n }\n };\n this.childrenClickHandler = (event) => event.stopPropagation();\n //--------------------------------------------------------------------------\n //\n // Private Methods\n //\n //--------------------------------------------------------------------------\n this.updateParentIsExpanded = (el, expanded) => {\n const items = getSlotted(el, SLOTS.children, {\n all: true,\n selector: \"calcite-tree-item\"\n });\n items.forEach((item) => (item.parentExpanded = expanded));\n };\n this.updateAncestorTree = () => {\n if (this.selected && this.selectionMode === TreeSelectionMode.Ancestors) {\n const ancestors = [];\n let parent = this.parentTreeItem;\n while (parent) {\n ancestors.push(parent);\n parent = parent.parentElement.closest(\"calcite-tree-item\");\n }\n ancestors.forEach((item) => (item.indeterminate = true));\n return;\n }\n };\n }\n expandedHandler(newValue) {\n this.updateParentIsExpanded(this.el, newValue);\n }\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n connectedCallback() {\n this.parentTreeItem = this.el.parentElement.closest(\"calcite-tree-item\");\n if (this.parentTreeItem) {\n const { expanded } = this.parentTreeItem;\n this.updateParentIsExpanded(this.parentTreeItem, expanded);\n }\n }\n componentWillRender() {\n this.hasChildren = !!this.el.querySelector(\"calcite-tree\");\n this.depth = 0;\n let parentTree = this.el.closest(\"calcite-tree\");\n if (!parentTree) {\n return;\n }\n this.selectionMode = parentTree.selectionMode;\n this.scale = parentTree.scale || \"m\";\n this.lines = parentTree.lines;\n let nextParentTree;\n while (parentTree) {\n nextParentTree = parentTree.parentElement.closest(\"calcite-tree\");\n if (nextParentTree === parentTree) {\n break;\n }\n else {\n parentTree = nextParentTree;\n this.depth = this.depth + 1;\n }\n }\n }\n componentDidLoad() {\n this.updateAncestorTree();\n }\n render() {\n const rtl = getElementDir(this.el) === \"rtl\";\n const showBulletPoint = this.selectionMode === TreeSelectionMode.Single ||\n this.selectionMode === TreeSelectionMode.Children;\n const showCheckmark = this.selectionMode === TreeSelectionMode.Multi ||\n this.selectionMode === TreeSelectionMode.MultiChildren;\n const chevron = this.hasChildren ? (h(\"calcite-icon\", { class: {\n [CSS.chevron]: true,\n [CSS_UTILITY.rtl]: rtl\n }, \"data-test-id\": \"icon\", icon: ICONS.chevronRight, onClick: this.iconClickHandler, scale: \"s\" })) : null;\n const checkbox = this.selectionMode === TreeSelectionMode.Ancestors ? (h(\"label\", { class: CSS.checkboxLabel },\n h(\"calcite-checkbox\", { checked: this.selected, class: CSS.checkbox, \"data-test-id\": \"checkbox\", indeterminate: this.hasChildren && this.indeterminate, scale: this.scale, tabIndex: -1 }),\n h(\"slot\", null))) : null;\n const selectedIcon = showBulletPoint\n ? ICONS.bulletPoint\n : showCheckmark\n ? ICONS.checkmark\n : null;\n const bulletOrCheckIcon = selectedIcon ? (h(\"calcite-icon\", { class: {\n [CSS.bulletPointIcon]: selectedIcon === ICONS.bulletPoint,\n [CSS.checkmarkIcon]: selectedIcon === ICONS.checkmark,\n [CSS_UTILITY.rtl]: rtl\n }, icon: selectedIcon, scale: \"s\" })) : null;\n const hidden = !(this.parentExpanded || this.depth === 1);\n return (h(Host, { \"aria-expanded\": this.hasChildren ? this.expanded.toString() : undefined, \"aria-hidden\": hidden.toString(), \"aria-selected\": this.selected ? \"true\" : showCheckmark ? \"false\" : undefined, \"calcite-hydrated-hidden\": hidden, role: \"treeitem\", tabindex: this.parentExpanded || this.depth === 1 ? \"0\" : \"-1\" },\n h(\"div\", { class: {\n [CSS.nodeContainer]: true,\n [CSS_UTILITY.rtl]: rtl\n }, \"data-selection-mode\": this.selectionMode, ref: (el) => (this.defaultSlotWrapper = el) },\n chevron,\n bulletOrCheckIcon,\n checkbox ? checkbox : h(\"slot\", null)),\n h(\"div\", { class: {\n [CSS.childrenContainer]: true,\n [CSS_UTILITY.rtl]: rtl\n }, \"data-test-id\": \"calcite-tree-children\", onClick: this.childrenClickHandler, ref: (el) => (this.childrenSlotWrapper = el), role: this.hasChildren ? \"group\" : undefined },\n h(\"slot\", { name: SLOTS.children }))));\n }\n //--------------------------------------------------------------------------\n //\n // Event Listeners\n //\n //--------------------------------------------------------------------------\n onClick(e) {\n // Solve for if the item is clicked somewhere outside the slotted anchor.\n // Anchor is triggered anywhere you click\n const [link] = filterDirectChildren(this.el, \"a\");\n if (link && e.composedPath()[0].tagName.toLowerCase() !== \"a\") {\n const target = link.target === \"\" ? \"_self\" : link.target;\n window.open(link.href, target);\n }\n this.expanded = !this.expanded;\n this.calciteTreeItemSelect.emit({\n modifyCurrentSelection: e.shiftKey || this.selectionMode === TreeSelectionMode.Ancestors,\n forceToggle: false\n });\n }\n keyDownHandler(e) {\n let root;\n switch (getKey(e.key)) {\n case \" \":\n this.calciteTreeItemSelect.emit({\n modifyCurrentSelection: e.shiftKey,\n forceToggle: false\n });\n e.preventDefault();\n e.stopPropagation();\n break;\n case \"Enter\":\n // activates a node, i.e., performs its default action. For parent nodes, one possible default action is to open or close the node. In single-select trees where selection does not follow focus (see note below), the default action is typically to select the focused node.\n const link = nodeListToArray(this.el.children).find((e) => e.matches(\"a\"));\n if (link) {\n link.click();\n this.selected = true;\n }\n else {\n this.calciteTreeItemSelect.emit({\n modifyCurrentSelection: e.shiftKey,\n forceToggle: false\n });\n }\n e.preventDefault();\n e.stopPropagation();\n break;\n case \"ArrowLeft\":\n // When focus is on an open node, closes the node.\n if (this.hasChildren && this.expanded) {\n this.expanded = false;\n e.preventDefault();\n e.stopPropagation();\n break;\n }\n // When focus is on a child node that is also either an end node or a closed node, moves focus to its parent node.\n const parentItem = this.parentTreeItem;\n if (parentItem && (!this.hasChildren || this.expanded === false)) {\n parentItem.focus();\n e.preventDefault();\n e.stopPropagation();\n break;\n }\n // When focus is on a root node that is also either an end node or a closed node, does nothing.\n break;\n case \"ArrowRight\":\n // When focus is on a closed node, opens the node; focus does not move.\n if (this.hasChildren && this.expanded === false) {\n this.expanded = true;\n e.preventDefault();\n e.stopPropagation();\n break;\n }\n // When focus is on a open node, moves focus to the first child node.\n if (this.hasChildren && this.expanded) {\n this.el.querySelector(\"calcite-tree-item\").focus();\n break;\n }\n // When focus is on an end node, does nothing.\n break;\n case \"ArrowUp\":\n const previous = this.el.previousElementSibling;\n if (previous && previous.matches(\"calcite-tree-item\")) {\n previous.focus();\n }\n break;\n case \"ArrowDown\":\n const next = this.el.nextElementSibling;\n if (next && next.matches(\"calcite-tree-item\")) {\n next.focus();\n }\n break;\n case \"Home\":\n root = this.el.closest(\"calcite-tree:not([child])\");\n const firstNode = root.querySelector(\"calcite-tree-item\");\n firstNode.focus();\n break;\n case \"End\":\n root = this.el.closest(\"calcite-tree:not([child])\");\n let currentNode = root.children[root.children.length - 1]; // last child\n let currentTree = nodeListToArray(currentNode.children).find((e) => e.matches(\"calcite-tree\"));\n while (currentTree) {\n currentNode = currentTree.children[root.children.length - 1];\n currentTree = nodeListToArray(currentNode.children).find((e) => e.matches(\"calcite-tree\"));\n }\n currentNode.focus();\n break;\n }\n }\n static get is() { return \"calcite-tree-item\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"calcite-tree-item.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-tree-item.css\"]\n }; }\n static get properties() { return {\n \"selected\": {\n \"type\": \"boolean\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Is the item currently selected\"\n },\n \"attribute\": \"selected\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"expanded\": {\n \"type\": \"boolean\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"True if the item is in an expanded state\"\n },\n \"attribute\": \"expanded\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"parentExpanded\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": \"Is the parent of this item expanded?\"\n }],\n \"text\": \"\"\n },\n \"attribute\": \"parent-expanded\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"depth\": {\n \"type\": \"number\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"number\",\n \"resolved\": \"number\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": \"What level of depth is this item at?\"\n }],\n \"text\": \"\"\n },\n \"attribute\": \"depth\",\n \"reflect\": true,\n \"defaultValue\": \"-1\"\n },\n \"hasChildren\": {\n \"type\": \"boolean\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": \"Does this tree item have a tree inside it?\"\n }],\n \"text\": \"\"\n },\n \"attribute\": \"has-children\",\n \"reflect\": true,\n \"defaultValue\": \"null\"\n },\n \"lines\": {\n \"type\": \"boolean\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": \"Draw lines (set on parent)\"\n }],\n \"text\": \"\"\n },\n \"attribute\": \"lines\",\n \"reflect\": true\n },\n \"inputEnabled\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": undefined\n }, {\n \"name\": \"deprecated\",\n \"text\": \"set \\\"ancestors\\\" selection-mode on parent tree for checkboxes\"\n }],\n \"text\": \"Display checkboxes (set on parent)\"\n },\n \"attribute\": \"input-enabled\",\n \"reflect\": false\n },\n \"scale\": {\n \"type\": \"string\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"Scale\",\n \"resolved\": \"\\\"l\\\" | \\\"m\\\" | \\\"s\\\"\",\n \"references\": {\n \"Scale\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": \"Scale of the parent tree, defaults to m\"\n }],\n \"text\": \"\"\n },\n \"attribute\": \"scale\",\n \"reflect\": true\n },\n \"indeterminate\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": \"In ancestor selection mode,\\nshow as indeterminate when only some children are selected\"\n }],\n \"text\": \"\"\n },\n \"attribute\": \"indeterminate\",\n \"reflect\": true\n },\n \"selectionMode\": {\n \"type\": \"string\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"TreeSelectionMode\",\n \"resolved\": \"TreeSelectionMode.Ancestors | TreeSelectionMode.Children | TreeSelectionMode.Multi | TreeSelectionMode.MultiChildren | TreeSelectionMode.Single\",\n \"references\": {\n \"TreeSelectionMode\": {\n \"location\": \"import\",\n \"path\": \"../calcite-tree/interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": \"Tree selection-mode (set on parent)\"\n }],\n \"text\": \"\"\n },\n \"attribute\": \"selection-mode\",\n \"reflect\": false\n }\n }; }\n static get events() { return [{\n \"method\": \"calciteTreeItemSelect\",\n \"name\": \"calciteTreeItemSelect\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": undefined\n }],\n \"text\": \"\"\n },\n \"complexType\": {\n \"original\": \"TreeItemSelectDetail\",\n \"resolved\": \"TreeItemSelectDetail\",\n \"references\": {\n \"TreeItemSelectDetail\": {\n \"location\": \"import\",\n \"path\": \"./interfaces\"\n }\n }\n }\n }]; }\n static get elementRef() { return \"el\"; }\n static get watchers() { return [{\n \"propName\": \"expanded\",\n \"methodName\": \"expandedHandler\"\n }]; }\n static get listeners() { return [{\n \"name\": \"click\",\n \"method\": \"onClick\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }, {\n \"name\": \"keydown\",\n \"method\": \"keyDownHandler\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }]; }\n}\n","/** @license\r\n * Copyright 2021 Esri\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n\r\n .item-type-icon {\r\n margin-top: .15em !important;\r\n height: 16px;\r\n margin-top: 4px;\r\n min-width: 16px;\r\n display: inline;\r\n fill: currentColor;\r\n pointer-events: none;\r\n vertical-align: middle;\r\n display: block;\r\n transform: rotate(\r\n 360deg\r\n );\r\n}\r\n\r\n.item-type-icon-margin {\r\n margin-right: 6px;\r\n margin-left: 0;\r\n}\r\n\r\n.item-type-icon-margin[dir=\"rtl\"] {\r\n margin-right: 0;\r\n margin-left: 6px;\r\n}","/** @license\r\n * Copyright 2021 Esri\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n\r\nimport { Component, Element, getAssetPath, h, Prop } from '@stencil/core';\r\n\r\n@Component({\r\n tag: 'solution-item-icon',\r\n styleUrl: 'solution-item-icon.css',\r\n assetsDirs: ['item-icons']\r\n})\r\nexport class SolutionItemIcon {\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Host element access\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n @Element() el: HTMLSolutionItemIconElement;\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Properties (public)\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n /**\r\n * Contains the translations for this component.\r\n */\r\n @Prop({ mutable: true }) translations: any = {};\r\n\r\n /**\r\n * Indicate if this is portal\r\n */\r\n @Prop() isPortal = false;\r\n\r\n /**\r\n * The type for the item\r\n */\r\n @Prop() type = \"\";\r\n\r\n /**\r\n * The typeKeywords for the item\r\n */\r\n @Prop() typeKeywords: string[] = [];\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Lifecycle\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n render() {\r\n return <div title={this.type}>\r\n <img class=\"item-type-icon item-type-icon-margin\"\r\n height=\"16\"\r\n src={this._getIconUrl(this.type, this.typeKeywords)}\r\n width=\"16\"\r\n />\r\n </div>;\r\n }\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Variables (private)\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Event Listeners\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Events\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Public Methods (async)\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Private Methods\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n /**\r\n * This function was copied and slightly modified from the arcgis-portal-app.\r\n *\r\n * This will construct the path to the icon based on type and typeKeyword info.\r\n *\r\n * @param type The item type\r\n * @param typeKeywords The item typeKeywords\r\n */\r\n private _getIconUrl(\r\n type: string,\r\n typeKeywords: string[]\r\n ): string {\r\n const \r\n itemType = (type && type.toLowerCase()) || \"\",\r\n imgDir = \"./item-icons/\",\r\n size = \"16\"; //for now we only support 16x16 pixel images\r\n let \r\n isHosted = false,\r\n isRouteLayer = false,\r\n isMarkupLayer = false,\r\n isTable = false,\r\n isSpatiotemporal = false,\r\n isRelational = false,\r\n imgName = \"\";\r\n typeKeywords = typeKeywords || [];\r\n\r\n if (itemType.indexOf(\"service\") > 0 || itemType === \"feature collection\" || itemType === \"kml\" || itemType === \"wms\" || itemType === \"wmts\" || itemType === \"wfs\") {\r\n isHosted = typeKeywords.indexOf(\"Hosted Service\") > -1;\r\n if (itemType === \"feature service\" || itemType === \"feature collection\" || itemType === \"kml\" || itemType === \"wfs\") {\r\n isTable = typeKeywords.indexOf(\"Table\") > -1;\r\n isRouteLayer = typeKeywords.indexOf(\"Route Layer\") > -1;\r\n isMarkupLayer = typeKeywords.indexOf(\"Markup\") > -1;\r\n isSpatiotemporal = typeKeywords.indexOf(\"Spatiotemporal\") !== -1;\r\n imgName = isSpatiotemporal && isTable ? \"spatiotemporaltable\" : (isTable ? \"table\" : (isRouteLayer ? \"routelayer\" : (isMarkupLayer ? \"markup\" : (isSpatiotemporal ? \"spatiotemporal\" : (isHosted ? \"featureshosted\" : \"features\")))));\r\n } else if (itemType === \"map service\" || itemType === \"wms\" || itemType === \"wmts\") {\r\n isSpatiotemporal = typeKeywords.indexOf(\"Spatiotemporal\") !== -1;\r\n isRelational = typeKeywords.indexOf(\"Relational\") !== -1;\r\n if (isSpatiotemporal || isRelational) {\r\n imgName = \"mapimages\";\r\n } else {\r\n imgName = (isHosted || typeKeywords.indexOf(\"Tiled\") > -1 || itemType === \"wmts\") ? \"maptiles\" : \"mapimages\";\r\n }\r\n } else if (itemType === \"scene service\") {\r\n if (typeKeywords.indexOf(\"Line\") > -1) {\r\n imgName = \"sceneweblayerline\";\r\n } else if (typeKeywords.indexOf(\"3DObject\") > -1) {\r\n imgName = \"sceneweblayermultipatch\";\r\n } else if (typeKeywords.indexOf(\"Point\") > -1) {\r\n imgName = \"sceneweblayerpoint\";\r\n } else if (typeKeywords.indexOf(\"IntegratedMesh\") > -1) {\r\n imgName = \"sceneweblayermesh\";\r\n } else if (typeKeywords.indexOf(\"PointCloud\") > -1) {\r\n imgName = \"sceneweblayerpointcloud\";\r\n } else if (typeKeywords.indexOf(\"Polygon\") > -1) {\r\n imgName = \"sceneweblayerpolygon\";\r\n } else if (typeKeywords.indexOf(\"Building\") > -1) {\r\n imgName = \"sceneweblayerbuilding\";\r\n } else {\r\n imgName = \"sceneweblayer\";\r\n }\r\n } else if (itemType === \"image service\") {\r\n imgName = typeKeywords.indexOf(\"Elevation 3D Layer\") > -1 ? \"elevationlayer\" : (typeKeywords.indexOf(\"Tiled Imagery\") > -1 ? \"tiledimagerylayer\" : \"imagery\");\r\n } else if (itemType === \"stream service\") {\r\n imgName = \"streamlayer\";\r\n } else if (itemType === \"vector tile service\") {\r\n imgName = \"vectortile\";\r\n } else if (itemType === \"datastore catalog service\") {\r\n imgName = \"datastorecollection\";\r\n } else if (itemType === \"geocoding service\") {\r\n imgName = \"geocodeservice\";\r\n } else if (itemType === \"geoprocessing service\") {\r\n imgName = (typeKeywords.indexOf(\"Web Tool\") > -1 && (this.isPortal)) ? \"tool\" : \"layers\";\r\n } else {\r\n imgName = \"layers\";\r\n }\r\n } else if (itemType === \"web map\" || itemType === \"cityengine web scene\") {\r\n imgName = \"maps\";\r\n } else if (itemType === \"web scene\") {\r\n imgName = typeKeywords.indexOf(\"ViewingMode-Local\") > -1 ? \"webscenelocal\" : \"websceneglobal\";\r\n } else if (itemType === \"web mapping application\" || itemType === \"mobile application\" || itemType === \"application\" ||\r\n itemType === \"operation view\" || itemType === \"desktop application\") {\r\n imgName = \"apps\";\r\n } else if (itemType === \"map document\" || itemType === \"map package\" || itemType === \"published map\" || itemType === \"scene document\" ||\r\n itemType === \"globe document\" || itemType === \"basemap package\" || itemType === \"mobile basemap package\" || itemType === \"mobile map package\" ||\r\n itemType === \"project package\" || itemType === \"project template\" || itemType === \"pro map\" || itemType === \"layout\" ||\r\n (itemType === \"layer\" && typeKeywords.indexOf(\"ArcGIS Pro\") > -1) || (itemType === \"explorer map\" && typeKeywords.indexOf(\"Explorer Document\"))) {\r\n imgName = \"mapsgray\";\r\n } else if (itemType === \"service definition\" || itemType === \"csv\" || itemType === \"shapefile\" || itemType === \"cad drawing\" || itemType === \"geojson\" || itemType === \"360 vr experience\" || itemType === \"netcdf\" || itemType === \"administrative report\") {\r\n imgName = \"datafiles\";\r\n } else if (itemType === \"explorer add in\" || itemType === \"desktop add in\" || itemType === \"windows viewer add in\" || itemType === \"windows viewer configuration\") {\r\n imgName = \"appsgray\";\r\n } else if (itemType === \"arcgis pro add in\" || itemType === \"arcgis pro configuration\") {\r\n imgName = \"addindesktop\";\r\n } else if (itemType === \"rule package\" || itemType === \"file geodatabase\" || itemType === \"sqlite geodatabase\" || itemType === \"csv collection\" || itemType === \"kml collection\" ||\r\n itemType === \"windows mobile package\" || itemType === \"map template\" || itemType === \"desktop application template\" || itemType === \"gml\" ||\r\n itemType === \"arcpad package\" || itemType === \"code sample\" || itemType === \"form\" || itemType === \"document link\" ||\r\n itemType === \"operations dashboard add in\" || itemType === \"rules package\" || itemType === \"image\" || itemType === \"workflow manager package\" ||\r\n (itemType === \"explorer map\" && typeKeywords.indexOf(\"Explorer Mapping Application\") > -1 || typeKeywords.indexOf(\"Document\") > -1)) {\r\n imgName = \"datafilesgray\";\r\n } else if (itemType === \"network analysis service\" || itemType === \"geoprocessing service\" ||\r\n itemType === \"geodata service\" || itemType === \"geometry service\" || itemType === \"geoprocessing package\" ||\r\n itemType === \"locator package\" || itemType === \"geoprocessing sample\" || itemType === \"workflow manager service\") {\r\n imgName = \"toolsgray\";\r\n } else if (itemType === \"layer\" || itemType === \"layer package\" || itemType === \"explorer layer\") {\r\n imgName = \"layersgray\";\r\n } else if (itemType === \"scene package\") {\r\n imgName = \"scenepackage\";\r\n } else if (itemType === \"mobile scene package\") {\r\n imgName = \"mobilescenepackage\";\r\n } else if (itemType === \"tile package\" || itemType === \"compact tile package\") {\r\n imgName = \"tilepackage\";\r\n } else if (itemType === \"task file\") {\r\n imgName = \"taskfile\";\r\n } else if (itemType === \"report template\") {\r\n imgName = \"report-template\";\r\n } else if (itemType === \"statistical data collection\") {\r\n imgName = \"statisticaldatacollection\";\r\n } else if (itemType === \"insights workbook\") {\r\n imgName = \"workbook\";\r\n } else if (itemType === \"insights model\") {\r\n imgName = \"insightsmodel\";\r\n } else if (itemType === \"insights page\") {\r\n imgName = \"insightspage\";\r\n } else if (itemType === \"insights theme\") {\r\n imgName = \"insightstheme\";\r\n } else if (itemType === \"hub initiative\") {\r\n imgName = \"hubinitiative\";\r\n } else if (itemType === \"hub page\") {\r\n imgName = \"hubpage\";\r\n } else if (itemType === \"hub site application\") {\r\n imgName = \"hubsite\";\r\n } else if (itemType === \"hub event\") {\r\n imgName = \"hubevent\";\r\n } else if (itemType === \"relational database connection\") {\r\n imgName = \"relationaldatabaseconnection\";\r\n } else if (itemType === \"big data file share\") {\r\n imgName = \"datastorecollection\";\r\n } else if (itemType === \"image collection\") {\r\n imgName = \"imagecollection\";\r\n } else if (itemType === \"desktop style\") {\r\n imgName = \"desktopstyle\";\r\n } else if (itemType === \"style\") {\r\n imgName = \"style\";\r\n } else if (itemType === \"dashboard\") {\r\n imgName = \"dashboard\";\r\n } else if (itemType === \"raster function template\") {\r\n imgName = \"rasterprocessingtemplate\";\r\n } else if (itemType === \"vector tile package\") {\r\n imgName = \"vectortilepackage\";\r\n } else if (itemType === \"ortho mapping project\") {\r\n imgName = \"orthomappingproject\";\r\n } else if (itemType === \"ortho mapping template\") {\r\n imgName = \"orthomappingtemplate\";\r\n } else if (itemType === \"solution\") {\r\n imgName = \"solutions\";\r\n } else if (itemType === \"geopackage\") {\r\n imgName = \"geopackage\";\r\n } else if (itemType === \"deep learning package\") {\r\n imgName = \"deeplearningpackage\";\r\n } else if (itemType === \"real time analytic\") {\r\n imgName = \"realtimeanalytics\";\r\n } else if (itemType === \"big data analytic\") {\r\n imgName = \"bigdataanalytics\";\r\n } else if (itemType === \"feed\") {\r\n imgName = \"feed\";\r\n } else if (itemType === \"excalibur imagery project\") {\r\n imgName = \"excaliburimageryproject\";\r\n } else if (itemType === \"notebook\") {\r\n imgName = \"notebook\";\r\n } else if (itemType === \"storymap\") {\r\n imgName = \"storymap\";\r\n } else if (itemType === \"survey123 add in\") {\r\n imgName = \"survey123addin\";\r\n } else if (itemType === \"mission\") {\r\n imgName = \"mission\";\r\n } else if (itemType === \"mission report\") {\r\n imgName = \"missionreport\";\r\n } else if (itemType === \"quickcapture project\") {\r\n imgName = \"quickcaptureproject\";\r\n } else if (itemType === \"pro report\") {\r\n imgName = \"proreport\";\r\n } else if (itemType === \"urban model\") {\r\n imgName = \"urbanmodel\";\r\n } else if (itemType === \"web experience\") {\r\n imgName = \"experiencebuilder\";\r\n } else if (itemType === \"web experience template\") {\r\n imgName = \"webexperiencetemplate\";\r\n } else if (itemType === \"workflow\") {\r\n imgName = \"workflow\";\r\n } else if (itemType === \"kernel gateway connection\") {\r\n imgName = \"kernelgatewayconnection\";\r\n } else if (itemType === \"insights script\") {\r\n imgName = \"insightsscript\";\r\n } else if (itemType === \"hub initiative template\") {\r\n imgName = \"hubinitiativetemplate\";\r\n } else if (itemType === \"storymap theme\") {\r\n imgName = \"storymaptheme\";\r\n } else if (itemType === \"group\"){\r\n imgName = \"group\"\r\n } else {\r\n imgName = \"maps\";\r\n }\r\n return imgName ? getAssetPath(imgDir + imgName + size + \".png\") : null;\r\n }\r\n\r\n}\r\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/components/calcite-action-bar/utils.js","node_modules/@esri/calcite-components/dist/collection/components/functional/CalciteExpandToggle.js"],"names":["overflowActionsDebounceInMs","groupBufferHeight","getMaxActionCount","height","actionHeight","groupCount","Math","floor","getOverflowCount","actionCount","max","queryActions","el","Array","from","querySelectorAll","filter","action","closest","slot","ACTION_MENU_SLOTS","trigger","overflowActions","actionGroups","expanded","overflowCount","needToSlotCount","reverse","forEach","group","slottedWithinGroupCount","groupActions","groupAction","ACTION_GROUP_SLOTS","menuActions","removeAttribute","textEnabled","some","unslottedActions","length","setAttribute","forceUpdate","ICONS","chevronsLeft","chevronsRight","getCalcitePosition","position","_a","toggleChildActionText","parent","setTooltipReference","tooltip","referenceElement","ref","CalciteExpandToggle","intlExpand","intlCollapse","toggle","scale","rtl","getElementDir","expandText","icons","end","expandIcon","collapseIcon","actionNode","h","dir","icon","onClick","text"],"mappings":";;;;;;;;;GAOY,MAACA,EAA8B,IAC3C,MAAMC,EAAoB,EAC1B,MAAMC,EAAoB,EAAGC,OAAAA,EAAQC,aAAAA,EAAcC,WAAAA,KAC1CC,KAAKC,OAAOJ,EAASE,EAAaJ,GAAqBG,GAEpD,MAACI,EAAmB,EAAGC,YAAAA,EAAaL,aAAAA,EAAcD,OAA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A,IAEvF,MAAM0B,EAAsB,EAAGC,QAAAA,EAASC,iBAAAA,EAAkB5B,SAAAA,EAAU6B,IAAAA,MAClE,GAAIF,EAAS,CACXA,EAAQC,kBAAoB5B,GAAY4B,EAE1C,GAAIC,EAAK,CACPA,EAAID,GAEN,OAAOA,GAEG,MAACE,EAAsB,EAAG9B,SAAAA,EAAU+B,WAAAA,EAAYC,aAAAA,EAAcC,OAAAA,EAAQ7C,GAAAA,EAAIkC,SAAAA,EAAUK,QAAAA,EAASE,IAAAA,EAAKK,MAAAA,MAC5G,MAAMC,EAAMC,EAAchD,KAAQ,MAClC,MAAMiD,EAAarC,EAAWgC,EAAeD,EAC7C,MAAMO,EAAQ,CAACpB,EAAMC,aAAcD,EAAME,eACzC,GAAIe,EAAK,CACPG,EAAMnC,UAER,MAAMoC,EAAMlB,EAAmBC,EAAUlC,KAAQ,MACjD,MAAMoD,EAAaD,EAAMD,EAAM,GAAKA,EAAM,GAC1C,MAAMG,EAAeF,EAAMD,EAAM,GAAKA,EAAM,GAC5C,MAAMI,EAAcC,EAAE,iBAAkB,CAAEC,IAAKT,EAAM,MAAQ,MAAOU,KAAM7C,EAAWwC,EAAaC,EAAcK,QAASb,EAAQJ,IAAMD,GAAqBF,EAAoB,CAAEC,QAAAA,EAASC,iBAAAA,EAAkB5B,SAAAA,EAAU6B,IAAAA,IAAQK,MAAOA,EAAOa,KAAMV,EAAYzB,YAAaZ,IAC5Q,OAAO2B,EAAUgB,EAAE,0BAA2B,KAAMD,GAAcA","sourcesContent":["/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nimport { forceUpdate } from \"@stencil/core\";\nimport { SLOTS as ACTION_MENU_SLOTS } from \"../calcite-action-menu/resources\";\nimport { SLOTS as ACTION_GROUP_SLOTS } from \"../calcite-action-group/resources\";\nexport const overflowActionsDebounceInMs = 150;\nconst groupBufferHeight = 2;\nconst getMaxActionCount = ({ height, actionHeight, groupCount }) => {\n return Math.floor((height - groupCount * groupBufferHeight) / actionHeight);\n};\nexport const getOverflowCount = ({ actionCount, actionHeight, height, groupCount }) => {\n return Math.max(actionCount - getMaxActionCount({ height, actionHeight, groupCount }), 0);\n};\nexport const queryActions = (el) => {\n return Array.from(el.querySelectorAll(\"calcite-action\")).filter((action) => action.closest(\"calcite-action-menu\") ? action.slot === ACTION_MENU_SLOTS.trigger : true);\n};\nexport const overflowActions = ({ actionGroups, expanded, overflowCount }) => {\n let needToSlotCount = overflowCount;\n actionGroups.reverse().forEach((group) => {\n let slottedWithinGroupCount = 0;\n const groupActions = queryActions(group).reverse();\n groupActions.forEach((groupAction) => {\n if (groupAction.slot === ACTION_GROUP_SLOTS.menuActions) {\n groupAction.removeAttribute(\"slot\");\n groupAction.textEnabled = expanded;\n }\n });\n if (needToSlotCount > 0) {\n groupActions.some((groupAction) => {\n const unslottedActions = groupActions.filter((action) => !action.slot);\n if (unslottedActions.length > 1 && groupActions.length > 2 && !groupAction.closest(\"calcite-action-menu\")) {\n groupAction.textEnabled = true;\n groupAction.setAttribute(\"slot\", ACTION_GROUP_SLOTS.menuActions);\n slottedWithinGroupCount++;\n if (slottedWithinGroupCount > 1) {\n needToSlotCount--;\n }\n }\n return needToSlotCount < 1;\n });\n }\n forceUpdate(group);\n });\n};\n","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nimport { h } from \"@stencil/core\";\nimport { getElementDir } from \"../../utils/dom\";\nimport { queryActions } from \"../calcite-action-bar/utils\";\nimport { SLOTS as ACTION_GROUP_SLOTS } from \"../calcite-action-group/resources\";\nconst ICONS = {\n chevronsLeft: \"chevrons-left\",\n chevronsRight: \"chevrons-right\"\n};\nfunction getCalcitePosition(position, el) {\n var _a;\n return position || ((_a = el.closest(\"calcite-shell-panel\")) === null || _a === void 0 ? void 0 : _a.position) || \"start\";\n}\nexport function toggleChildActionText({ parent, expanded }) {\n queryActions(parent)\n .filter((el) => el.slot !== ACTION_GROUP_SLOTS.menuActions)\n .forEach((action) => (action.textEnabled = expanded));\n parent.querySelectorAll(\"calcite-action-group\").forEach((group) => (group.expanded = expanded));\n}\nconst setTooltipReference = ({ tooltip, referenceElement, expanded, ref }) => {\n if (tooltip) {\n tooltip.referenceElement = !expanded && referenceElement;\n }\n if (ref) {\n ref(referenceElement);\n }\n return referenceElement;\n};\nexport const CalciteExpandToggle = ({ expanded, intlExpand, intlCollapse, toggle, el, position, tooltip, ref, scale }) => {\n const rtl = getElementDir(el) === \"rtl\";\n const expandText = expanded ? intlCollapse : intlExpand;\n const icons = [ICONS.chevronsLeft, ICONS.chevronsRight];\n if (rtl) {\n icons.reverse();\n }\n const end = getCalcitePosition(position, el) === \"end\";\n const expandIcon = end ? icons[1] : icons[0];\n const collapseIcon = end ? icons[0] : icons[1];\n const actionNode = (h(\"calcite-action\", { dir: rtl ? \"rtl\" : \"ltr\", icon: expanded ? expandIcon : collapseIcon, onClick: toggle, ref: (referenceElement) => setTooltipReference({ tooltip, referenceElement, expanded, ref }), scale: scale, text: expandText, textEnabled: expanded }));\n return tooltip ? h(\"calcite-tooltip-manager\", null, actionNode) : actionNode;\n};\n"]}
@@ -1,11 +0,0 @@
1
- /*!
2
- * Copyright 2021 Esri
3
- * Licensed under the Apache License, Version 2.0
4
- * http://www.apache.org/licenses/LICENSE-2.0
5
- */
6
- import{r as t,c as i,h as a,g as e}from"./p-2e1cd889.js";import{a as o}from"./p-e762b2d1.js";import"./p-ec178ea9.js";
7
- /*!
8
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
9
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
10
- */const r={container:"split-button__container",dividerContainer:"split-button__divider-container",divider:"split-button__divider",widthAuto:"width-auto",widthHalf:"width-half",widthFull:"width-full"};const n="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host .split-button__container{display:flex;align-items:stretch}:host .split-button__container>calcite-dropdown>calcite-button{height:100%;vertical-align:top}:host([appearance=solid]):host([color=blue]){--calcite-split-button-background:var(--calcite-ui-brand);--calcite-split-button-divider:var(--calcite-ui-foreground-1)}:host([appearance=solid]):host([color=red]){--calcite-split-button-background:var(--calcite-ui-danger);--calcite-split-button-divider:var(--calcite-ui-foreground-1)}:host([appearance=solid]):host([color=neutral]){--calcite-split-button-background:var(--calcite-ui-foreground-3);--calcite-split-button-divider:var(--calcite-ui-text-1)}:host([appearance=solid]):host([color=inverse]){--calcite-split-button-background:var(--calcite-ui-inverse);--calcite-split-button-divider:var(--calcite-ui-foreground-1)}:host([appearance=transparent]):host([color=blue]){--calcite-split-button-divider:var(--calcite-ui-brand)}:host([appearance=transparent]):host([color=red]){--calcite-split-button-divider:var(--calcite-ui-danger)}:host([appearance=transparent]):host([color=neutral]){--calcite-split-button-divider:var(--calcite-ui-text-1)}:host([appearance=transparent]):host([color=inverse]){--calcite-split-button-divider:var(--calcite-ui-foreground-1)}:host([appearance=clear]),:host([appearance=transparent]){--calcite-split-button-background:transparent}:host([appearance=outline]){--calcite-split-button-background:var(--calcite-ui-foreground-1)}:host([appearance=clear]):host([color=blue]),:host([appearance=outline]):host([color=blue]){--calcite-split-button-divider:var(--calcite-ui-brand)}:host([appearance=clear]):host([color=red]),:host([appearance=outline]):host([color=red]){--calcite-split-button-divider:var(--calcite-ui-danger)}:host([appearance=clear]):host([color=neutral]),:host([appearance=outline]):host([color=neutral]){--calcite-split-button-divider:var(--calcite-ui-foreground-3)}:host([appearance=clear]):host([color=inverse]),:host([appearance=outline]):host([color=inverse]){--calcite-split-button-divider:var(--calcite-ui-inverse)}.width-auto{width:auto}.width-half{width:50%}.width-full{width:100%}.split-button__divider-container{width:1px;display:flex;align-items:stretch;transition:0.15s ease-in-out;background-color:var(--calcite-split-button-background)}.split-button__divider{width:1px;margin-top:0.25rem;margin-bottom:0.25rem;display:inline-block;background-color:var(--calcite-split-button-divider)}:host([appearance=outline]) .split-button__divider-container,:host([appearance=clear]) .split-button__divider-container{border-top:1px solid var(--calcite-split-button-divider);border-bottom:1px solid var(--calcite-split-button-divider)}:host([appearance=outline]):hover .split-button__divider-container,:host([appearance=clear]):hover .split-button__divider-container{background-color:var(--calcite-split-button-divider)}:host([appearance=outline]:hover) .split-button__divider-container,:host([appearance=clear]:hover) .split-button__divider-container{background-color:var(--calcite-split-button-divider)}:host([appearance=outline]:focus-within):host([color=blue]),:host([appearance=clear]:focus-within):host([color=blue]){--calcite-split-button-divider:var(--calcite-ui-brand-press)}:host([appearance=outline]:focus-within):host([color=red]),:host([appearance=clear]:focus-within):host([color=red]){--calcite-split-button-divider:var(--calcite-ui-danger-press)}:host([appearance=outline]:focus-within) .split-button__divider-container,:host([appearance=clear]:focus-within) .split-button__divider-container{background-color:var(--calcite-split-button-divider)}:host([disabled]) .split-button__divider-container{opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) calcite-dropdown>calcite-button{pointer-events:none}";let c=class{constructor(a){t(this,a);this.calciteSplitButtonPrimaryClick=i(this,"calciteSplitButtonPrimaryClick",7);this.calciteSplitButtonSecondaryClick=i(this,"calciteSplitButtonSecondaryClick",7);this.appearance="solid";this.color="blue";this.disabled=false;this.active=false;this.dropdownIconType="chevron";this.loading=false;this.scale="m";this.width="auto";this.calciteSplitButtonPrimaryClickHandler=t=>this.calciteSplitButtonPrimaryClick.emit(t);this.calciteSplitButtonSecondaryClickHandler=t=>this.calciteSplitButtonSecondaryClick.emit(t)}render(){const t=o(this.el);const i={[r.container]:true,[r.widthAuto]:this.width==="auto",[r.widthHalf]:this.width==="half",[r.widthFull]:this.width==="full"};const e=this.width==="auto"?"auto":"full";return a("div",{class:i,dir:t},a("calcite-button",{appearance:this.appearance,color:this.color,dir:t,disabled:this.disabled,"icon-end":this.primaryIconEnd?this.primaryIconEnd:null,"icon-start":this.primaryIconStart?this.primaryIconStart:null,iconFlipRtl:this.primaryIconFlipRtl?this.primaryIconFlipRtl:null,label:this.primaryLabel,loading:this.loading,onClick:this.calciteSplitButtonPrimaryClickHandler,scale:this.scale,splitChild:"primary",width:e},this.primaryText),a("div",{class:r.dividerContainer},a("div",{class:r.divider})),a("calcite-dropdown",{active:this.active,dir:t,onClick:this.calciteSplitButtonSecondaryClickHandler,placement:"bottom-trailing",scale:this.scale,width:this.scale},a("calcite-button",{appearance:this.appearance,color:this.color,dir:t,disabled:this.disabled,"icon-start":this.dropdownIcon,label:this.dropdownLabel,scale:this.scale,slot:"dropdown-trigger",splitChild:"secondary"}),a("slot",null)))}get dropdownIcon(){return this.dropdownIconType==="chevron"?"chevronDown":this.dropdownIconType==="caret"?"caretDown":this.dropdownIconType==="ellipsis"?"ellipsis":"handle-vertical"}get el(){return e(this)}};c.style=n;export{c as calcite_split_button};
11
- //# sourceMappingURL=p-7d84c932.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/components/calcite-split-button/resources.js","node_modules/@esri/calcite-components/dist/collection/components/calcite-split-button/calcite-split-button.css?tag=calcite-split-button&encapsulation=shadow","node_modules/@esri/calcite-components/dist/collection/components/calcite-split-button/calcite-split-button.js"],"names":["CSS","container","dividerContainer","divider","widthAuto","widthHalf","widthFull","calciteSplitButtonCss","CalciteSplitButton","[object Object]","hostRef","this","appearance","color","disabled","active","dropdownIconType","loading","scale","width","calciteSplitButtonPrimaryClickHandler","e","calciteSplitButtonPrimaryClick","emit","calciteSplitButtonSecondaryClickHandler","calciteSplitButtonSecondaryClick","dir","getElementDir","el","widthClasses","buttonWidth","h","class","icon-end","primaryIconEnd","icon-start","primaryIconStart","iconFlipRtl","primaryIconFlipRtl","label","primaryLabel","onClick","splitChild","primaryText","placement","dropdownIcon","dropdownLabel","slot"],"mappings":";;;;;;;;;GAIO,MAAMA,EAAM,CACjBC,UAAW,0BACXC,iBAAkB,kCAClBC,QAAS,wBACTC,UAAW,aACXC,UAAW,aACXC,UAAW,cCVb,MAAMC,EAAwB,m9ICUjBC,EAAkB,MAC7BC,YAAAC,+KAEEC,KAAKC,WAAa,QAElBD,KAAKE,MAAQ,OAEbF,KAAKG,SAAW,MAKhBH,KAAKI,OAAS,MAEdJ,KAAKK,iBAAmB,UAGxBL,KAAKM,QAAU,MAEfN,KAAKO,MAAQ,IAEbP,KAAKQ,MAAQ,OACbR,KAAKS,sCAAyCC,GAAMV,KAAKW,+BAA+BC,KAAKF,GAC7FV,KAAKa,wCAA2CH,GAAMV,KAAKc,iCAAiCF,KAAKF,GAEnGZ,SACE,MAAMiB,EAAMC,EAAchB,KAAKiB,IAC/B,MAAMC,EAAe,CACnBpB,CAACT,EAAIC,WAAY,KACjBQ,CAACT,EAAII,WAAYO,KAAKQ,QAAU,OAChCV,CAACT,EAAIK,WAAYM,KAAKQ,QAAU,OAChCV,CAACT,EAAIM,WAAYK,KAAKQ,QAAU,QAElC,MAAMW,EAAcnB,KAAKQ,QAAU,OAAS,OAAS,OACrD,OAAQY,EAAE,MAAO,CAAEC,MAAOH,EAAcH,IAAKA,GAC3CK,EAAE,iBAAkB,CAAEnB,WAAYD,KAAKC,WAAYC,MAAOF,KAAKE,MAAOa,IAAKA,EAAKZ,SAAUH,KAAKG,SAAUmB,WAAYtB,KAAKuB,eAAiBvB,KAAKuB,eAAiB,KAAMC,aAAcxB,KAAKyB,iBAAmBzB,KAAKyB,iBAAmB,KAAMC,YAAa1B,KAAK2B,mBAAqB3B,KAAK2B,mBAAqB,KAAMC,MAAO5B,KAAK6B,aAAcvB,QAASN,KAAKM,QAASwB,QAAS9B,KAAKS,sCAAuCF,MAAOP,KAAKO,MAAOwB,WAAY,UAAWvB,MAAOW,GAAenB,KAAKgC,aAC7dZ,EAAE,MAAO,CAAEC,MAAOhC,EAAIE,kBACpB6B,EAAE,MAAO,CAAEC,MAAOhC,EAAIG,WACxB4B,EAAE,mBAAoB,CAAEhB,OAAQJ,KAAKI,OAAQW,IAAKA,EAAKe,QAAS9B,KAAKa,wCAAyCoB,UAAW,kBAAmB1B,MAAOP,KAAKO,MAAOC,MAAOR,KAAKO,OACzKa,EAAE,iBAAkB,CAAEnB,WAAYD,KAAKC,WAAYC,MAAOF,KAAKE,MAAOa,IAAKA,EAAKZ,SAAUH,KAAKG,SAAUqB,aAAcxB,KAAKkC,aAAcN,MAAO5B,KAAKmC,cAAe5B,MAAOP,KAAKO,MAAO6B,KAAM,mBAAoBL,WAAY,cAC9NX,EAAE,OAAQ,QAEhBc,mBACE,OAAOlC,KAAKK,mBAAqB,UAC7B,cACAL,KAAKK,mBAAqB,QACxB,YACAL,KAAKK,mBAAqB,WACxB,WACA","sourcesContent":["/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nexport const CSS = {\n container: \"split-button__container\",\n dividerContainer: \"split-button__divider-container\",\n divider: \"split-button__divider\",\n widthAuto: \"width-auto\",\n widthHalf: \"width-half\",\n widthFull: \"width-full\"\n};\n","/* mixins & extensions */\n\n@keyframes in {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n@keyframes in-down {\n 0% {\n opacity: 0;\n transform: translate3D(0, -5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-up {\n 0% {\n opacity: 0;\n transform: translate3D(0, 5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-scale {\n 0% {\n opacity: 0;\n transform: scale3D(0.95, 0.95, 1);\n }\n\n 100% {\n opacity: 1;\n transform: scale3D(1, 1, 1);\n }\n}\n\n:root {\n --calcite-animation-timing: 300ms;\n}\n\n.calcite-animate {\n opacity: 0;\n animation-fill-mode: both;\n animation-duration: var(--calcite-animation-timing);\n}\n\n.calcite-animate__in {\n animation-name: in;\n}\n\n.calcite-animate__in-down {\n animation-name: in-down;\n}\n\n.calcite-animate__in-up {\n animation-name: in-up;\n}\n\n.calcite-animate__in-scale {\n animation-name: in-scale;\n}\n\n/**\n* Currently only used in Checkbox.\n*/\n\n:root {\n --calcite-popper-transition: 150ms ease-in-out;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n:host .split-button__container {\n display: flex;\n align-items: stretch;\n}\n\n:host .split-button__container > calcite-dropdown > calcite-button {\n height: 100%;\n vertical-align: top;\n}\n\n:host([appearance=solid]):host([color=blue]) {\n --calcite-split-button-background: var(--calcite-ui-brand);\n --calcite-split-button-divider: var(--calcite-ui-foreground-1);\n}\n\n:host([appearance=solid]):host([color=red]) {\n --calcite-split-button-background: var(--calcite-ui-danger);\n --calcite-split-button-divider: var(--calcite-ui-foreground-1);\n}\n\n:host([appearance=solid]):host([color=neutral]) {\n --calcite-split-button-background: var(--calcite-ui-foreground-3);\n --calcite-split-button-divider: var(--calcite-ui-text-1);\n}\n\n:host([appearance=solid]):host([color=inverse]) {\n --calcite-split-button-background: var(--calcite-ui-inverse);\n --calcite-split-button-divider: var(--calcite-ui-foreground-1);\n}\n\n:host([appearance=transparent]):host([color=blue]) {\n --calcite-split-button-divider: var(--calcite-ui-brand);\n}\n\n:host([appearance=transparent]):host([color=red]) {\n --calcite-split-button-divider: var(--calcite-ui-danger);\n}\n\n:host([appearance=transparent]):host([color=neutral]) {\n --calcite-split-button-divider: var(--calcite-ui-text-1);\n}\n\n:host([appearance=transparent]):host([color=inverse]) {\n --calcite-split-button-divider: var(--calcite-ui-foreground-1);\n}\n\n:host([appearance=clear]),\n:host([appearance=transparent]) {\n --calcite-split-button-background: transparent;\n}\n\n:host([appearance=outline]) {\n --calcite-split-button-background: var(--calcite-ui-foreground-1);\n}\n\n:host([appearance=clear]):host([color=blue]),\n:host([appearance=outline]):host([color=blue]) {\n --calcite-split-button-divider: var(--calcite-ui-brand);\n}\n\n:host([appearance=clear]):host([color=red]),\n:host([appearance=outline]):host([color=red]) {\n --calcite-split-button-divider: var(--calcite-ui-danger);\n}\n\n:host([appearance=clear]):host([color=neutral]),\n:host([appearance=outline]):host([color=neutral]) {\n --calcite-split-button-divider: var(--calcite-ui-foreground-3);\n}\n\n:host([appearance=clear]):host([color=inverse]),\n:host([appearance=outline]):host([color=inverse]) {\n --calcite-split-button-divider: var(--calcite-ui-inverse);\n}\n\n.width-auto {\n width: auto;\n}\n\n.width-half {\n width: 50%;\n}\n\n.width-full {\n width: 100%;\n}\n\n.split-button__divider-container {\n width: 1px;\n display: flex;\n align-items: stretch;\n transition: 0.15s ease-in-out;\n background-color: var(--calcite-split-button-background);\n}\n\n.split-button__divider {\n width: 1px;\n margin-top: 0.25rem;\n margin-bottom: 0.25rem;\n display: inline-block;\n background-color: var(--calcite-split-button-divider);\n}\n\n:host([appearance=outline]) .split-button__divider-container,\n:host([appearance=clear]) .split-button__divider-container {\n border-top: 1px solid var(--calcite-split-button-divider);\n border-bottom: 1px solid var(--calcite-split-button-divider);\n}\n\n:host([appearance=outline]):hover .split-button__divider-container,\n:host([appearance=clear]):hover .split-button__divider-container {\n background-color: var(--calcite-split-button-divider);\n}\n\n:host([appearance=outline]:hover) .split-button__divider-container,\n:host([appearance=clear]:hover) .split-button__divider-container {\n background-color: var(--calcite-split-button-divider);\n}\n\n:host([appearance=outline]:focus-within):host([color=blue]),\n:host([appearance=clear]:focus-within):host([color=blue]) {\n --calcite-split-button-divider: var(--calcite-ui-brand-press);\n}\n\n:host([appearance=outline]:focus-within):host([color=red]),\n:host([appearance=clear]:focus-within):host([color=red]) {\n --calcite-split-button-divider: var(--calcite-ui-danger-press);\n}\n\n:host([appearance=outline]:focus-within) .split-button__divider-container,\n:host([appearance=clear]:focus-within) .split-button__divider-container {\n background-color: var(--calcite-split-button-divider);\n}\n\n:host([disabled]) .split-button__divider-container {\n opacity: var(--calcite-ui-opacity-disabled);\n}\n\n:host([disabled]) calcite-dropdown > calcite-button {\n pointer-events: none;\n}","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nimport { Component, Element, Event, h, Prop } from \"@stencil/core\";\nimport { CSS } from \"./resources\";\nimport { getElementDir } from \"../../utils/dom\";\n/**\n * @slot - A slot for adding `calcite-dropdown` content.\n */\nexport class CalciteSplitButton {\n constructor() {\n /** specify the appearance style of the button, defaults to solid. */\n this.appearance = \"solid\";\n /** specify the color of the control, defaults to blue */\n this.color = \"blue\";\n /** is the control disabled */\n this.disabled = false;\n /**\n * Is the dropdown currently active or not\n * @internal\n */\n this.active = false;\n /** specify the icon used for the dropdown menu, defaults to chevron */\n this.dropdownIconType = \"chevron\";\n /** optionally add a calcite-loader component to the control,\n disabling interaction. with the primary button */\n this.loading = false;\n /** specify the scale of the control, defaults to m */\n this.scale = \"m\";\n /** specify the width of the button, defaults to auto */\n this.width = \"auto\";\n this.calciteSplitButtonPrimaryClickHandler = (e) => this.calciteSplitButtonPrimaryClick.emit(e);\n this.calciteSplitButtonSecondaryClickHandler = (e) => this.calciteSplitButtonSecondaryClick.emit(e);\n }\n render() {\n const dir = getElementDir(this.el);\n const widthClasses = {\n [CSS.container]: true,\n [CSS.widthAuto]: this.width === \"auto\",\n [CSS.widthHalf]: this.width === \"half\",\n [CSS.widthFull]: this.width === \"full\"\n };\n const buttonWidth = this.width === \"auto\" ? \"auto\" : \"full\";\n return (h(\"div\", { class: widthClasses, dir: dir },\n h(\"calcite-button\", { appearance: this.appearance, color: this.color, dir: dir, disabled: this.disabled, \"icon-end\": this.primaryIconEnd ? this.primaryIconEnd : null, \"icon-start\": this.primaryIconStart ? this.primaryIconStart : null, iconFlipRtl: this.primaryIconFlipRtl ? this.primaryIconFlipRtl : null, label: this.primaryLabel, loading: this.loading, onClick: this.calciteSplitButtonPrimaryClickHandler, scale: this.scale, splitChild: \"primary\", width: buttonWidth }, this.primaryText),\n h(\"div\", { class: CSS.dividerContainer },\n h(\"div\", { class: CSS.divider })),\n h(\"calcite-dropdown\", { active: this.active, dir: dir, onClick: this.calciteSplitButtonSecondaryClickHandler, placement: \"bottom-trailing\", scale: this.scale, width: this.scale },\n h(\"calcite-button\", { appearance: this.appearance, color: this.color, dir: dir, disabled: this.disabled, \"icon-start\": this.dropdownIcon, label: this.dropdownLabel, scale: this.scale, slot: \"dropdown-trigger\", splitChild: \"secondary\" }),\n h(\"slot\", null))));\n }\n get dropdownIcon() {\n return this.dropdownIconType === \"chevron\"\n ? \"chevronDown\"\n : this.dropdownIconType === \"caret\"\n ? \"caretDown\"\n : this.dropdownIconType === \"ellipsis\"\n ? \"ellipsis\"\n : \"handle-vertical\";\n }\n static get is() { return \"calcite-split-button\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"calcite-split-button.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-split-button.css\"]\n }; }\n static get properties() { return {\n \"appearance\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"ButtonAppearance\",\n \"resolved\": \"\\\"clear\\\" | \\\"outline\\\" | \\\"solid\\\" | \\\"transparent\\\"\",\n \"references\": {\n \"ButtonAppearance\": {\n \"location\": \"import\",\n \"path\": \"../calcite-button/interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"specify the appearance style of the button, defaults to solid.\"\n },\n \"attribute\": \"appearance\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"solid\\\"\"\n },\n \"color\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"ButtonColor\",\n \"resolved\": \"\\\"blue\\\" | \\\"inverse\\\" | \\\"neutral\\\" | \\\"red\\\"\",\n \"references\": {\n \"ButtonColor\": {\n \"location\": \"import\",\n \"path\": \"../calcite-button/interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"specify the color of the control, defaults to blue\"\n },\n \"attribute\": \"color\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"blue\\\"\"\n },\n \"disabled\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"is the control disabled\"\n },\n \"attribute\": \"disabled\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"active\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": undefined\n }],\n \"text\": \"Is the dropdown currently active or not\"\n },\n \"attribute\": \"active\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"dropdownIconType\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"DropdownIconType\",\n \"resolved\": \"\\\"caret\\\" | \\\"chevron\\\" | \\\"ellipsis\\\" | \\\"overflow\\\"\",\n \"references\": {\n \"DropdownIconType\": {\n \"location\": \"import\",\n \"path\": \"../calcite-button/interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"specify the icon used for the dropdown menu, defaults to chevron\"\n },\n \"attribute\": \"dropdown-icon-type\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"chevron\\\"\"\n },\n \"dropdownLabel\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"aria label for overflow button\"\n },\n \"attribute\": \"dropdown-label\",\n \"reflect\": true\n },\n \"loading\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"optionally add a calcite-loader component to the control,\\ndisabling interaction. with the primary button\"\n },\n \"attribute\": \"loading\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"primaryIconEnd\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"optionally pass an icon to display at the end of the primary button - accepts Calcite UI icon names\"\n },\n \"attribute\": \"primary-icon-end\",\n \"reflect\": true\n },\n \"primaryIconFlipRtl\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"FlipContext\",\n \"resolved\": \"\\\"both\\\" | \\\"end\\\" | \\\"start\\\"\",\n \"references\": {\n \"FlipContext\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"flip the primary icon(s) in rtl\"\n },\n \"attribute\": \"primary-icon-flip-rtl\",\n \"reflect\": true\n },\n \"primaryIconStart\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"optionally pass an icon to display at the start of the primary button - accepts Calcite UI icon names\"\n },\n \"attribute\": \"primary-icon-start\",\n \"reflect\": true\n },\n \"primaryLabel\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"optionally pass an aria-label for the primary button\"\n },\n \"attribute\": \"primary-label\",\n \"reflect\": true\n },\n \"primaryText\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"text for primary action button\"\n },\n \"attribute\": \"primary-text\",\n \"reflect\": true\n },\n \"scale\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Scale\",\n \"resolved\": \"\\\"l\\\" | \\\"m\\\" | \\\"s\\\"\",\n \"references\": {\n \"Scale\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"specify the scale of the control, defaults to m\"\n },\n \"attribute\": \"scale\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"m\\\"\"\n },\n \"width\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Width\",\n \"resolved\": \"\\\"auto\\\" | \\\"full\\\" | \\\"half\\\"\",\n \"references\": {\n \"Width\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"specify the width of the button, defaults to auto\"\n },\n \"attribute\": \"width\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"auto\\\"\"\n }\n }; }\n static get events() { return [{\n \"method\": \"calciteSplitButtonPrimaryClick\",\n \"name\": \"calciteSplitButtonPrimaryClick\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"fired when the primary button is clicked\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }, {\n \"method\": \"calciteSplitButtonSecondaryClick\",\n \"name\": \"calciteSplitButtonSecondaryClick\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"fired when the secondary button is clicked\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }]; }\n static get elementRef() { return \"el\"; }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/utils/key.js"],"names":["getKey","key","dir","lookup","Up","Down","Left","Right","Spacebar","Esc","adjustedKey","isRTL","isActivationKey","numberKeys"],"mappings":";;;;;;;;;AAOO,SAASA,EAAOC,EAAKC,GAC1B,MAAMC,EAAS,CACbC,GAAI,UACJC,KAAM,YACNC,KAAM,YACNC,MAAO,aACPC,SAAU,IACVC,IAAK,UAEP,MAAMC,EAAcP,EAAOF,IAAQA,EACnC,MAAMU,EAAQT,IAAQ,MACtB,GAAIS,GAASD,IAAgB,YAAa,CACxC,MAAO,aAET,GAAIC,GAASD,IAAgB,aAAc,CACzC,MAAO,YAET,OAAOA,EAEF,SAASE,EAAgBX,GAC9BA,EAAMD,EAAOC,GACb,OAAOA,IAAQ,SAAWA,IAAQ,IAExB,MAACY,EAAa,CAAC,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK","sourcesContent":["/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\n/**\n * Standardize key property of keyboard event (mostly for ie11)\n */\nexport function getKey(key, dir) {\n const lookup = {\n Up: \"ArrowUp\",\n Down: \"ArrowDown\",\n Left: \"ArrowLeft\",\n Right: \"ArrowRight\",\n Spacebar: \" \",\n Esc: \"Escape\"\n };\n const adjustedKey = lookup[key] || key;\n const isRTL = dir === \"rtl\";\n if (isRTL && adjustedKey === \"ArrowLeft\") {\n return \"ArrowRight\";\n }\n if (isRTL && adjustedKey === \"ArrowRight\") {\n return \"ArrowLeft\";\n }\n return adjustedKey;\n}\nexport function isActivationKey(key) {\n key = getKey(key);\n return key === \"Enter\" || key === \" \";\n}\nexport const numberKeys = [\"0\", \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\"];\nexport const letterKeys = [\n \"a\",\n \"b\",\n \"c\",\n \"d\",\n \"e\",\n \"f\",\n \"g\",\n \"h\",\n \"i\",\n \"j\",\n \"k\",\n \"l\",\n \"m\",\n \"n\",\n \"o\",\n \"p\",\n \"q\",\n \"r\",\n \"s\",\n \"t\",\n \"u\",\n \"v\",\n \"w\",\n \"x\",\n \"y\",\n \"z\"\n];\n"]}
@@ -1,11 +0,0 @@
1
- /*!
2
- * Copyright 2021 Esri
3
- * Licensed under the Apache License, Version 2.0
4
- * http://www.apache.org/licenses/LICENSE-2.0
5
- */
6
- import{r as t,h as e,g as a}from"./p-2e1cd889.js";import{d as o,a as n,C as r}from"./p-e762b2d1.js";import{c,d as i,g as l}from"./p-cb5cb9a8.js";import{c as s}from"./p-a10dc180.js";import"./p-ec178ea9.js";(function(t){if(typeof t.requestSubmit=="function")return;t.requestSubmit=function(t){if(t){e(t,this);t.click()}else{t=document.createElement("input");t.type="submit";t.hidden=true;this.appendChild(t);t.click();this.removeChild(t)}};function e(t,e){t instanceof HTMLElement||a(TypeError,"parameter 1 is not of type 'HTMLElement'");t.type=="submit"||a(TypeError,"The specified element is not a submit button");t.form==e||a(DOMException,"The specified element is not owned by this form element","NotFoundError")}function a(t,e,a){throw new t("Failed to execute 'requestSubmit' on 'HTMLFormElement': "+e+".",a)}})(HTMLFormElement.prototype);
7
- /*!
8
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
9
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
10
- */const p={buttonLoader:"calcite-button--loader",content:"content",contentSlotted:"content--slotted",icon:"icon",iconStart:"icon--start",iconEnd:"icon--end",loadingIn:"loading-in",loadingOut:"loading-out"};const u={loading:"Loading"};const d="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:inline-block;width:auto;vertical-align:middle}:host([round]){border-radius:50px}:host([round]) a,:host([round]) button{border-radius:50px}:host button,:host a{outline-offset:0;outline-color:transparent;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}:host button:focus,:host a:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}:host button,:host a{--calcite-button-content-margin:0.5rem;--calcite-button-padding-x:7px;--calcite-button-padding-y:3px;padding:var(--calcite-button-padding-y) var(--calcite-button-padding-x) var(--calcite-button-padding-y) var(--calcite-button-padding-x);position:relative;display:flex;align-items:center;justify-content:center;text-decoration:none;width:100%;height:100%;border-radius:0;border-style:none;-webkit-user-select:none;user-select:none;-webkit-appearance:none;appearance:none;cursor:pointer;text-align:center;box-sizing:border-box;font-family:inherit;font-weight:var(--calcite-font-weight-normal);transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}:host button:hover,:host a:hover{text-decoration:none}.content{display:flex;flex-basis:auto;margin-left:var(--calcite-button-content-margin);margin-right:var(--calcite-button-content-margin)}:host([scale=m]) button,:host([scale=m]) a{--calcite-button-content-margin:0.75rem}:host([scale=l]) button,:host([scale=l]) a{--calcite-button-content-margin:1rem}:host(:not([icon-start])) .content{margin-left:unset}:host(:not([icon-end])) .content{margin-right:unset}:host([icon-start]:not([icon-end])) .calcite--rtl .content{margin-left:unset;margin-right:var(--calcite-button-content-margin)}:host([icon-end]:not([icon-start])) .calcite--rtl .content{margin-right:unset;margin-left:var(--calcite-button-content-margin)}:host([width=auto]){width:auto}:host([width=half]){width:50%}:host([width=full]){width:100%}:host([alignment=center]:not([width=auto])) a,:host([alignment=center]:not([width=auto])) button{justify-content:center}:host([alignment=start]:not([width=auto])) a,:host([alignment=start]:not([width=auto])) button{justify-content:flex-start}:host([alignment=end]:not([width=auto])) a,:host([alignment=end]:not([width=auto])) button{justify-content:flex-end}:host([alignment*=space-between]:not([width=auto])) a,:host([alignment*=space-between]:not([width=auto])) button{justify-content:space-between}:host([alignment=icon-start-space-between]:not([width=auto])) .icon--start{margin-right:auto}:host([alignment=icon-start-space-between]:not([width=auto])) a,:host([alignment=icon-start-space-between]:not([width=auto])) button{text-align:unset}:host([alignment=icon-end-space-between]:not([width=auto])) .icon--end{margin-left:auto}:host([alignment=icon-end-space-between]:not([width=auto])) a,:host([alignment=icon-end-space-between]:not([width=auto])) button{text-align:unset}:host([alignment=icon-start-space-between]:not([width=auto])) .calcite--rtl .icon--start{margin-right:unset;margin-left:auto}:host([alignment=icon-end-space-between]:not([width=auto])) .calcite--rtl .icon--end{margin-left:unset;margin-right:auto}:host([alignment=center]) a:not(.content--slotted) .icon--start+.icon--end,:host([alignment=center]) button:not(.content--slotted) .icon--start+.icon--end{margin-left:var(--calcite-button-content-margin)}:host([alignment=center]) a.calcite--rtl:not(.content--slotted) .icon--start+.icon--end,:host([alignment=center]) button.calcite--rtl:not(.content--slotted) .icon--start+.icon--end{margin-left:unset;margin-right:var(--calcite-button-content-margin)}.icon{display:inline-flex;position:relative;margin:0;font-weight:var(--calcite-font-weight-normal);line-height:inherit}:host([loading]),:host([disabled]){pointer-events:none}:host([loading]) button,:host([loading]) a,:host([disabled]) button,:host([disabled]) a{pointer-events:none;opacity:var(--calcite-ui-opacity-disabled)}@keyframes loader-in{0%{width:0;opacity:0;transform:scale(0.5)}100%{width:1em;opacity:1;transform:scale(1)}}@keyframes loader-out{0%{width:1em;opacity:1;transform:scale(1)}100%{width:0;opacity:0;transform:scale(0.5)}}.calcite-button--loader{display:flex}.calcite-button--loader calcite-loader{margin:0;transition:width 300ms ease-in-out, opacity 300ms ease-in-out, transform 300ms ease-in-out}.calcite-button--loader calcite-loader.loading-in{animation-name:loader-in;animation-duration:310ms}.calcite-button--loader calcite-loader.loading-out{animation-name:loader-out;animation-duration:310ms}:host([loading]) button.content--slotted .calcite-button--loader calcite-loader,:host([loading]) a.content--slotted .calcite-button--loader calcite-loader{margin-inline-end:var(--calcite-button-content-margin)}:host([loading]) button:not(.content--slotted) .icon--start,:host([loading]) button:not(.content--slotted) .icon--end,:host([loading]) a:not(.content--slotted) .icon--start,:host([loading]) a:not(.content--slotted) .icon--end{display:none}:host([appearance=solid]) button,:host([appearance=solid]) a{border-width:1px;border-style:solid;border-color:transparent}:host([appearance=solid][color=blue]) button,:host([appearance=solid][color=blue]) a{color:var(--calcite-ui-text-inverse);background-color:var(--calcite-ui-brand)}:host([appearance=solid][color=blue]) button:hover,:host([appearance=solid][color=blue]) button:focus,:host([appearance=solid][color=blue]) a:hover,:host([appearance=solid][color=blue]) a:focus{background-color:var(--calcite-ui-brand-hover)}:host([appearance=solid][color=blue]) button:active,:host([appearance=solid][color=blue]) a:active{background-color:var(--calcite-ui-brand-press)}:host([appearance=solid][color=blue]) button calcite-loader,:host([appearance=solid][color=blue]) a calcite-loader{color:var(--calcite-ui-text-inverse)}:host([appearance=solid][color=red]) button,:host([appearance=solid][color=red]) a{color:var(--calcite-ui-text-inverse);background-color:var(--calcite-ui-danger)}:host([appearance=solid][color=red]) button:hover,:host([appearance=solid][color=red]) button:focus,:host([appearance=solid][color=red]) a:hover,:host([appearance=solid][color=red]) a:focus{background-color:var(--calcite-ui-danger-hover)}:host([appearance=solid][color=red]) button:active,:host([appearance=solid][color=red]) a:active{background-color:var(--calcite-ui-danger-press)}:host([appearance=solid][color=red]) button calcite-loader,:host([appearance=solid][color=red]) a calcite-loader{color:var(--calcite-ui-text-inverse)}:host([appearance=solid][color=neutral]) button,:host([appearance=solid][color=neutral]) a{color:var(--calcite-ui-text-1);background-color:var(--calcite-ui-foreground-3)}:host([appearance=solid][color=neutral]) button:hover,:host([appearance=solid][color=neutral]) button:focus,:host([appearance=solid][color=neutral]) a:hover,:host([appearance=solid][color=neutral]) a:focus{background-color:var(--calcite-ui-foreground-2)}:host([appearance=solid][color=neutral]) button:active,:host([appearance=solid][color=neutral]) a:active{background-color:var(--calcite-ui-foreground-1)}:host([appearance=solid][color=neutral]) button calcite-loader,:host([appearance=solid][color=neutral]) a calcite-loader{color:var(--calcite-ui-text-1)}:host([appearance=solid][color=inverse]) button,:host([appearance=solid][color=inverse]) a{color:var(--calcite-ui-text-inverse);background-color:var(--calcite-ui-inverse)}:host([appearance=solid][color=inverse]) button:hover,:host([appearance=solid][color=inverse]) button:focus,:host([appearance=solid][color=inverse]) a:hover,:host([appearance=solid][color=inverse]) a:focus{background-color:var(--calcite-ui-inverse-hover)}:host([appearance=solid][color=inverse]) button:active,:host([appearance=solid][color=inverse]) a:active{background-color:var(--calcite-ui-inverse-press)}:host([appearance=solid][color=inverse]) button calcite-loader,:host([appearance=solid][color=inverse]) a calcite-loader{color:var(--calcite-ui-text-inverse)}:host([appearance=outline]) button,:host([appearance=outline]) a{background-color:var(--calcite-ui-foreground-1);border-width:1px;border-style:solid;box-shadow:inset 0 0 0 1px transparent}:host([appearance=outline][color=blue]) button,:host([appearance=outline][color=blue]) a{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-brand)}:host([appearance=outline][color=blue]) button:hover,:host([appearance=outline][color=blue]) a:hover{border-color:var(--calcite-ui-brand-hover);color:var(--calcite-ui-brand-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand-hover)}:host([appearance=outline][color=blue]) button:focus,:host([appearance=outline][color=blue]) a:focus{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-brand);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}:host([appearance=outline][color=blue]) button:active,:host([appearance=outline][color=blue]) a:active{border-color:var(--calcite-ui-brand-press);color:var(--calcite-ui-brand-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand-press)}:host([appearance=outline][color=blue]) button calcite-loader,:host([appearance=outline][color=blue]) a calcite-loader{color:var(--calcite-ui-brand)}:host([appearance=outline][color=red]) button,:host([appearance=outline][color=red]) a{border-color:var(--calcite-ui-danger);color:var(--calcite-ui-danger)}:host([appearance=outline][color=red]) button:hover,:host([appearance=outline][color=red]) a:hover{border-color:var(--calcite-ui-danger-hover);color:var(--calcite-ui-danger-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-danger-hover)}:host([appearance=outline][color=red]) button:focus,:host([appearance=outline][color=red]) a:focus{border-color:var(--calcite-ui-danger);color:var(--calcite-ui-danger);box-shadow:inset 0 0 0 2px var(--calcite-ui-danger)}:host([appearance=outline][color=red]) button:active,:host([appearance=outline][color=red]) a:active{border-color:var(--calcite-ui-danger-press);color:var(--calcite-ui-danger-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-danger-press)}:host([appearance=outline][color=red]) button calcite-loader,:host([appearance=outline][color=red]) a calcite-loader{color:var(--calcite-ui-danger)}:host([appearance=outline][color=neutral]) button,:host([appearance=outline][color=neutral]) a{color:var(--calcite-ui-text-1);border-color:var(--calcite-ui-foreground-3)}:host([appearance=outline][color=neutral]) button:hover,:host([appearance=outline][color=neutral]) a:hover{box-shadow:inset 0 0 0 1px var(--calcite-ui-foreground-3)}:host([appearance=outline][color=neutral]) button:focus,:host([appearance=outline][color=neutral]) a:focus{box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3)}:host([appearance=outline][color=neutral]) button:active,:host([appearance=outline][color=neutral]) a:active{box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3)}:host([appearance=outline][color=neutral]) button calcite-loader,:host([appearance=outline][color=neutral]) a calcite-loader{color:var(--calcite-ui-text-1)}:host([appearance=outline][color=inverse]) button,:host([appearance=outline][color=inverse]) a{color:var(--calcite-ui-text-1);border-color:var(--calcite-ui-inverse)}:host([appearance=outline][color=inverse]) button:hover,:host([appearance=outline][color=inverse]) a:hover{border-color:var(--calcite-ui-inverse-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-inverse-hover)}:host([appearance=outline][color=inverse]) button:focus,:host([appearance=outline][color=inverse]) a:focus{border-color:var(--calcite-ui-inverse);box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse)}:host([appearance=outline][color=inverse]) button:active,:host([appearance=outline][color=inverse]) a:active{border-color:var(--calcite-ui-inverse-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse-press)}:host([appearance=outline][color=inverse]) button calcite-loader,:host([appearance=outline][color=inverse]) a calcite-loader{color:var(--calcite-ui-text-1)}:host([appearance=clear]) button,:host([appearance=clear]) a{background-color:transparent;border-width:1px;border-style:solid;box-shadow:inset 0 0 0 1px transparent}:host([appearance=clear][color=blue]) button,:host([appearance=clear][color=blue]) a{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-brand)}:host([appearance=clear][color=blue]) button:hover,:host([appearance=clear][color=blue]) a:hover{border-color:var(--calcite-ui-brand-hover);color:var(--calcite-ui-brand-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand-hover)}:host([appearance=clear][color=blue]) button:focus,:host([appearance=clear][color=blue]) a:focus{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-brand);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}:host([appearance=clear][color=blue]) button:active,:host([appearance=clear][color=blue]) a:active{border-color:var(--calcite-ui-brand-press);color:var(--calcite-ui-brand-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand-press)}:host([appearance=clear][color=blue]) button calcite-loader,:host([appearance=clear][color=blue]) a calcite-loader{color:var(--calcite-ui-brand)}:host([appearance=clear][color=red]) button,:host([appearance=clear][color=red]) a{border-color:var(--calcite-ui-danger);color:var(--calcite-ui-danger)}:host([appearance=clear][color=red]) button:hover,:host([appearance=clear][color=red]) a:hover{border-color:var(--calcite-ui-danger-hover);color:var(--calcite-ui-danger-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-danger-hover)}:host([appearance=clear][color=red]) button:focus,:host([appearance=clear][color=red]) a:focus{border-color:var(--calcite-ui-danger);color:var(--calcite-ui-danger);box-shadow:inset 0 0 0 2px var(--calcite-ui-danger)}:host([appearance=clear][color=red]) button:active,:host([appearance=clear][color=red]) a:active{border-color:var(--calcite-ui-danger-press);color:var(--calcite-ui-danger-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-danger-press)}:host([appearance=clear][color=red]) button calcite-loader,:host([appearance=clear][color=red]) a calcite-loader{color:var(--calcite-ui-danger)}:host([appearance=clear][color=neutral]) button,:host([appearance=clear][color=neutral]) a{color:var(--calcite-ui-text-1);border-color:var(--calcite-ui-foreground-3)}:host([appearance=clear][color=neutral]) button:hover,:host([appearance=clear][color=neutral]) a:hover{box-shadow:inset 0 0 0 1px var(--calcite-ui-foreground-3)}:host([appearance=clear][color=neutral]) button:focus,:host([appearance=clear][color=neutral]) a:focus{box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3)}:host([appearance=clear][color=neutral]) button:active,:host([appearance=clear][color=neutral]) a:active{box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3)}:host([appearance=clear][color=neutral]) button calcite-loader,:host([appearance=clear][color=neutral]) a calcite-loader{color:var(--calcite-ui-text-1)}:host([appearance=clear][color=inverse]) button,:host([appearance=clear][color=inverse]) a{color:var(--calcite-ui-text-1);border-color:var(--calcite-ui-inverse)}:host([appearance=clear][color=inverse]) button:hover,:host([appearance=clear][color=inverse]) a:hover{border-color:var(--calcite-ui-inverse-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-inverse-hover)}:host([appearance=clear][color=inverse]) button:focus,:host([appearance=clear][color=inverse]) a:focus{border-color:var(--calcite-ui-inverse);box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse)}:host([appearance=clear][color=inverse]) button:active,:host([appearance=clear][color=inverse]) a:active{border-color:var(--calcite-ui-inverse-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse-press)}:host([appearance=clear][color=inverse]) button calcite-loader,:host([appearance=clear][color=inverse]) a calcite-loader{color:var(--calcite-ui-text-1)}:host([appearance=outline][split-child=primary]) button,:host([appearance=clear][split-child=primary]) button{border-right-width:0;border-left-width:1px}:host([appearance=outline][split-child=primary]) button.calcite--rtl,:host([appearance=clear][split-child=primary]) button.calcite--rtl{border-left-width:0;border-right-width:1px}:host([appearance=outline][split-child=secondary]) button,:host([appearance=clear][split-child=secondary]) button{border-left-width:0;border-right-width:1px}:host([appearance=outline][split-child=secondary]) button.calcite--rtl,:host([appearance=clear][split-child=secondary]) button.calcite--rtl{border-right-width:0;border-left-width:1px}:host([appearance=transparent]:not(.enable-editing-button)) button,:host([appearance=transparent]:not(.enable-editing-button)) a{background-color:transparent}:host([appearance=transparent]:not(.enable-editing-button)) button:hover,:host([appearance=transparent]:not(.enable-editing-button)) button:focus,:host([appearance=transparent]:not(.enable-editing-button)) a:hover,:host([appearance=transparent]:not(.enable-editing-button)) a:focus{background-color:var(--calcite-button-transparent-hover)}:host([appearance=transparent]:not(.enable-editing-button)) button:active,:host([appearance=transparent]:not(.enable-editing-button)) a:active{background-color:var(--calcite-button-transparent-press)}:host([appearance=transparent][color=blue]) button,:host([appearance=transparent][color=blue]) a{color:var(--calcite-ui-brand)}:host([appearance=transparent][color=blue]) button:hover,:host([appearance=transparent][color=blue]) a:hover{color:var(--calcite-ui-brand-hover)}:host([appearance=transparent][color=blue]) button:focus,:host([appearance=transparent][color=blue]) a:focus{color:var(--calcite-ui-brand)}:host([appearance=transparent][color=blue]) button:active,:host([appearance=transparent][color=blue]) a:active{color:var(--calcite-ui-brand-press)}:host([appearance=transparent][color=blue]) button calcite-loader,:host([appearance=transparent][color=blue]) a calcite-loader{color:var(--calcite-ui-brand)}:host([appearance=transparent][color=red]) button,:host([appearance=transparent][color=red]) a{color:var(--calcite-ui-danger)}:host([appearance=transparent][color=red]) button:hover,:host([appearance=transparent][color=red]) a:hover{color:var(--calcite-ui-danger-hover)}:host([appearance=transparent][color=red]) button:focus,:host([appearance=transparent][color=red]) a:focus{color:var(--calcite-ui-danger)}:host([appearance=transparent][color=red]) button:active,:host([appearance=transparent][color=red]) a:active{color:var(--calcite-ui-danger-press)}:host([appearance=transparent][color=red]) button calcite-loader,:host([appearance=transparent][color=red]) a calcite-loader{color:var(--calcite-ui-danger)}:host([appearance=transparent][color=neutral]:not(.cancel-editing-button)) button,:host([appearance=transparent][color=neutral]:not(.cancel-editing-button)) a,:host([appearance=transparent][color=neutral]:not(.cancel-editing-button)) calcite-loader{color:var(--calcite-ui-text-1)}:host([appearance=transparent][color=neutral].cancel-editing-button) button{color:var(--calcite-ui-text-3);border-top-width:1px;border-top-color:var(--calcite-ui-border-input);border-bottom-width:1px;border-bottom-color:var(--calcite-ui-border-input);border-bottom-style:solid;border-top-style:solid}:host([appearance=transparent][color=neutral].cancel-editing-button) button:not(.content--slotted){--calcite-button-padding-y:0}:host([appearance=transparent][color=neutral].cancel-editing-button) button:hover{color:var(--calcite-ui-text-1)}:host([appearance=transparent][color=neutral].enable-editing-button) button{background-color:transparent}:host(.confirm-changes-button) button:focus,:host(.cancel-editing-button) button:focus,:host(.enable-editing-button) button:focus{outline-offset:-2px}:host([appearance=transparent][color=inverse]) button,:host([appearance=transparent][color=inverse]) a,:host([appearance=transparent][color=inverse]) calcite-loader{color:var(--calcite-ui-text-inverse)}:host([scale=s]) button.content--slotted,:host([scale=s]) a.content--slotted{font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s][appearance=transparent]) button.content--slotted,:host([scale=s][appearance=transparent]) a.content--slotted{--calcite-button-padding-x:0.5rem;--calcite-button-padding-y:0.25rem}:host([scale=m]) button.content--slotted,:host([scale=m]) a.content--slotted{--calcite-button-padding-x:11px;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]:not([appearance=transparent])) button.content--slotted,:host([scale=m]:not([appearance=transparent])) a.content--slotted{--calcite-button-padding-y:7px}:host([scale=m][appearance=transparent]) button.content--slotted,:host([scale=m][appearance=transparent]) a.content--slotted{--calcite-button-padding-x:0.75rem;--calcite-button-padding-y:0.5rem}:host([scale=l]) button.content--slotted,:host([scale=l]) a.content--slotted{--calcite-button-padding-x:15px;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]:not([appearance=transparent])) button.content--slotted,:host([scale=l]:not([appearance=transparent])) a.content--slotted{--calcite-button-padding-y:11px}:host([scale=l][appearance=transparent]) button.content--slotted,:host([scale=l][appearance=transparent]) a.content--slotted{--calcite-button-padding-x:1rem;--calcite-button-padding-y:0.75rem}:host([scale=s]) button:not(.content--slotted),:host([scale=s]) a:not(.content--slotted){--calcite-button-padding-x:0.125rem;--calcite-button-padding-y:3px;font-size:var(--calcite-font-size-0);line-height:1.25rem;width:1.5rem;min-height:1.5rem}:host([scale=s][appearance=transparent]) button:not(.content--slotted),:host([scale=s][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-y:0.25rem}:host([scale=m]) button:not(.content--slotted),:host([scale=m]) a:not(.content--slotted){--calcite-button-padding-x:0.125rem;--calcite-button-padding-y:7px;font-size:var(--calcite-font-size-0);line-height:1.25rem;width:2rem;min-height:2rem}:host([scale=m][appearance=transparent]) button:not(.content--slotted),:host([scale=m][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-y:0.5rem}:host([scale=l]) button:not(.content--slotted),:host([scale=l]) a:not(.content--slotted){--calcite-button-padding-x:0.125rem;--calcite-button-padding-y:9px;font-size:var(--calcite-font-size-0);line-height:1.25rem;width:2.75rem;min-height:2.75rem}:host([scale=l][appearance=transparent]) button:not(.content--slotted),:host([scale=l][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-y:0.625rem}:host([scale=s][icon-start][icon-end]) button:not(.content--slotted),:host([scale=s][icon-start][icon-end]) a:not(.content--slotted){--calcite-button-padding-x:23px;font-size:var(--calcite-font-size-0);line-height:1.25rem;height:1.5rem}:host([scale=s][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=s][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-x:1.5rem}:host([scale=m][icon-start][icon-end]) button:not(.content--slotted),:host([scale=m][icon-start][icon-end]) a:not(.content--slotted){--calcite-button-padding-x:2rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;height:2rem}:host([scale=m][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=m][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-x:33px}:host([scale=l][icon-start][icon-end]) button:not(.content--slotted),:host([scale=l][icon-start][icon-end]) a:not(.content--slotted){--calcite-button-padding-x:43px;font-size:var(--calcite-font-size-0);line-height:1.25rem;height:2.75rem}:host([scale=l][icon-start][icon-end]) button:not(.content--slotted) .icon--start+.icon--end,:host([scale=l][icon-start][icon-end]) a:not(.content--slotted) .icon--start+.icon--end{margin-inline-start:1rem}:host([scale=l][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=l][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-x:2.75rem}";let h=class{constructor(e){t(this,e);this.alignment="center";this.appearance="solid";this.color="blue";this.disabled=false;this.intlLoading=u.loading;this.loading=false;this.round=false;this.scale="m";this.splitChild=false;this.width="auto";this.mutationObserver=s("mutation",(()=>this.updateHasContent()));this.childElType="button";this.hasContent=false;this.hasLoader=false;this.handleClick=()=>{const{childElType:t,formEl:e,type:a}=this;if(t==="button"&&a!=="button"){if(a==="submit"){e===null||e===void 0?void 0:e.requestSubmit()}else if(a==="reset"){e===null||e===void 0?void 0:e.reset()}}}}hrefHandler(t){this.childElType=t?"a":"button"}loadingChanged(t,e){if(!!t&&!e){this.hasLoader=true}if(!t&&!!e){window.setTimeout((()=>{this.hasLoader=false}),300)}}connectedCallback(){this.childElType=this.href?"a":"button";this.hasLoader=this.loading;this.setupTextContentObserver();c(this);this.formEl=o(this.el,this.form?`#${this.form}`:"form")}disconnectedCallback(){var t;(t=this.mutationObserver)===null||t===void 0?void 0:t.disconnect();i(this);this.formEl=null}componentWillLoad(){{this.updateHasContent();if(this.childElType==="button"&&!this.type){this.type="submit"}}}render(){const t=n(this.el);const a=this.childElType;const o=e("div",{class:p.buttonLoader},this.hasLoader?e("calcite-loader",{active:true,class:this.loading?p.loadingIn:p.loadingOut,inline:true,label:this.intlLoading,scale:"m"}):null);const c=e("calcite-icon",{class:{[p.icon]:true,[p.iconStart]:true},flipRtl:this.iconFlipRtl==="start"||this.iconFlipRtl==="both",icon:this.iconStart,scale:"s"});const i=e("calcite-icon",{class:{[p.icon]:true,[p.iconEnd]:true},flipRtl:this.iconFlipRtl==="end"||this.iconFlipRtl==="both",icon:this.iconEnd,scale:"s"});const s=e("span",{class:p.content},e("slot",null));return e(a,{"aria-label":l(this),class:{[r.rtl]:t==="rtl",[p.contentSlotted]:this.hasContent},disabled:this.disabled||this.loading,href:this.childElType==="a"&&this.href,name:this.childElType==="button"&&this.name,onClick:this.handleClick,ref:t=>this.childEl=t,rel:this.childElType==="a"&&this.rel,tabIndex:this.disabled||this.loading?-1:null,target:this.childElType==="a"&&this.target,type:this.childElType==="button"&&this.type},o,this.iconStart?c:null,this.hasContent?s:null,this.iconEnd?i:null)}async setFocus(){this.childEl.focus()}updateHasContent(){var t,e;const a=this.el.textContent.trim().length>0||this.el.childNodes.length>0;this.hasContent=this.el.childNodes.length===1&&((t=this.el.childNodes[0])===null||t===void 0?void 0:t.nodeName)==="#text"?((e=this.el.textContent)===null||e===void 0?void 0:e.trim().length)>0:a}setupTextContentObserver(){var t;(t=this.mutationObserver)===null||t===void 0?void 0:t.observe(this.el,{childList:true,subtree:true})}onLabelClick(){this.handleClick();this.setFocus()}get el(){return a(this)}static get watchers(){return{href:["hrefHandler"],loading:["loadingChanged"]}}};h.style=d;export{h as calcite_button};
11
- //# sourceMappingURL=p-7f49ef40.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["node_modules/form-request-submit-polyfill/form-request-submit-polyfill.js","node_modules/@esri/calcite-components/dist/collection/components/calcite-button/resources.js","node_modules/@esri/calcite-components/dist/collection/components/calcite-button/calcite-button.css?tag=calcite-button&encapsulation=shadow","node_modules/@esri/calcite-components/dist/collection/components/calcite-button/calcite-button.js"],"names":["prototype","requestSubmit","submitter","validateSubmitter","this","click","document","createElement","type","hidden","appendChild","removeChild","form","HTMLElement","raise","TypeError","DOMException","errorConstructor","message","name","HTMLFormElement","CSS","buttonLoader","content","contentSlotted","icon","iconStart","iconEnd","loadingIn","loadingOut","TEXT","loading","calciteButtonCss","CalciteButton","[object Object]","hostRef","alignment","appearance","color","disabled","intlLoading","round","scale","splitChild","width","mutationObserver","createObserver","updateHasContent","childElType","hasContent","hasLoader","handleClick","formEl","reset","href","newValue","oldValue","window","setTimeout","setupTextContentObserver","connectLabel","closestElementCrossShadowBoundary","el","_a","disconnect","disconnectLabel","dir","getElementDir","Tag","loader","h","class","active","inline","label","iconStartEl","flipRtl","iconFlipRtl","iconEndEl","contentEl","aria-label","getLabelText","CSS_UTILITY","rtl","onClick","ref","childEl","rel","tabIndex","target","focus","_b","slottedContent","textContent","trim","length","childNodes","nodeName","observe","childList","subtree","setFocus"],"mappings":";;;;;8MAAA,SAAUA,GACR,UAAWA,EAAUC,eAAiB,WAAY,OAElDD,EAAUC,cAAgB,SAASC,GACjC,GAAIA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AAK0D,GAAG+B,eAAiB,MAAQF,SAAY,OAAS,EAAIA,EAAGG,OAAOC,QAAU,EACrFH,EAER1D,2BACE,IAAI6B,GACHA,EAAK3D,KAAKyC,oBAAsB,MAAQkB,SAAY,OAAS,EAAIA,EAAGmC,QAAQ9F,KAAK0D,GAAI,CAAEqC,UAAW,KAAMC,QAAS,OAOpHlE,eACE9B,KAAK+C,cACL/C,KAAKiG","sourcesContent":["(function(prototype) {\n if (typeof prototype.requestSubmit == \"function\") return\n\n prototype.requestSubmit = function(submitter) {\n if (submitter) {\n validateSubmitter(submitter, this)\n submitter.click()\n } else {\n submitter = document.createElement(\"input\")\n submitter.type = \"submit\"\n submitter.hidden = true\n this.appendChild(submitter)\n submitter.click()\n this.removeChild(submitter)\n }\n }\n\n function validateSubmitter(submitter, form) {\n submitter instanceof HTMLElement || raise(TypeError, \"parameter 1 is not of type 'HTMLElement'\")\n submitter.type == \"submit\" || raise(TypeError, \"The specified element is not a submit button\")\n submitter.form == form || raise(DOMException, \"The specified element is not owned by this form element\", \"NotFoundError\")\n }\n\n function raise(errorConstructor, message, name) {\n throw new errorConstructor(\"Failed to execute 'requestSubmit' on 'HTMLFormElement': \" + message + \".\", name)\n }\n})(HTMLFormElement.prototype);\n","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nexport const CSS = {\n buttonLoader: \"calcite-button--loader\",\n content: \"content\",\n contentSlotted: \"content--slotted\",\n icon: \"icon\",\n iconStart: \"icon--start\",\n iconEnd: \"icon--end\",\n loadingIn: \"loading-in\",\n loadingOut: \"loading-out\"\n};\nexport const TEXT = {\n loading: \"Loading\"\n};\n","/* mixins & extensions */\n\n@keyframes in {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n@keyframes in-down {\n 0% {\n opacity: 0;\n transform: translate3D(0, -5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-up {\n 0% {\n opacity: 0;\n transform: translate3D(0, 5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-scale {\n 0% {\n opacity: 0;\n transform: scale3D(0.95, 0.95, 1);\n }\n\n 100% {\n opacity: 1;\n transform: scale3D(1, 1, 1);\n }\n}\n\n:root {\n --calcite-animation-timing: 300ms;\n}\n\n.calcite-animate {\n opacity: 0;\n animation-fill-mode: both;\n animation-duration: var(--calcite-animation-timing);\n}\n\n.calcite-animate__in {\n animation-name: in;\n}\n\n.calcite-animate__in-down {\n animation-name: in-down;\n}\n\n.calcite-animate__in-up {\n animation-name: in-up;\n}\n\n.calcite-animate__in-scale {\n animation-name: in-scale;\n}\n\n/**\n* Currently only used in Checkbox.\n*/\n\n:root {\n --calcite-popper-transition: 150ms ease-in-out;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n:host {\n display: inline-block;\n width: auto;\n vertical-align: middle;\n}\n\n:host([round]) {\n border-radius: 50px;\n}\n\n:host([round]) a, :host([round]) button {\n border-radius: 50px;\n}\n\n:host button,\n:host a {\n outline-offset: 0;\n outline-color: transparent;\n transition: outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;\n}\n\n:host button:focus,\n:host a:focus {\n outline: 2px solid var(--calcite-ui-brand);\n outline-offset: 2px;\n}\n\n:host button,\n:host a {\n --calcite-button-content-margin: 0.5rem;\n --calcite-button-padding-x: 7px;\n --calcite-button-padding-y: 3px;\n padding: var(--calcite-button-padding-y) var(--calcite-button-padding-x) var(--calcite-button-padding-y) var(--calcite-button-padding-x);\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n text-decoration: none;\n width: 100%;\n height: 100%;\n border-radius: 0;\n border-style: none;\n -webkit-user-select: none;\n user-select: none;\n -webkit-appearance: none;\n appearance: none;\n cursor: pointer;\n text-align: center;\n box-sizing: border-box;\n font-family: inherit;\n font-weight: var(--calcite-font-weight-normal);\n transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;\n}\n\n:host button:hover,\n:host a:hover {\n text-decoration: none;\n}\n\n.content {\n display: flex;\n flex-basis: auto;\n margin-left: var(--calcite-button-content-margin);\n margin-right: var(--calcite-button-content-margin);\n}\n\n:host([scale=m]) button,\n:host([scale=m]) a {\n --calcite-button-content-margin: 0.75rem;\n}\n\n:host([scale=l]) button,\n:host([scale=l]) a {\n --calcite-button-content-margin: 1rem;\n}\n\n:host(:not([icon-start])) .content {\n margin-left: unset;\n}\n\n:host(:not([icon-end])) .content {\n margin-right: unset;\n}\n\n:host([icon-start]:not([icon-end])) .calcite--rtl .content {\n margin-left: unset;\n margin-right: var(--calcite-button-content-margin);\n}\n\n:host([icon-end]:not([icon-start])) .calcite--rtl .content {\n margin-right: unset;\n margin-left: var(--calcite-button-content-margin);\n}\n\n:host([width=auto]) {\n width: auto;\n}\n\n:host([width=half]) {\n width: 50%;\n}\n\n:host([width=full]) {\n width: 100%;\n}\n\n:host([alignment=center]:not([width=auto])) a,\n:host([alignment=center]:not([width=auto])) button {\n justify-content: center;\n}\n\n:host([alignment=start]:not([width=auto])) a,\n:host([alignment=start]:not([width=auto])) button {\n justify-content: flex-start;\n}\n\n:host([alignment=end]:not([width=auto])) a,\n:host([alignment=end]:not([width=auto])) button {\n justify-content: flex-end;\n}\n\n:host([alignment*=space-between]:not([width=auto])) a,\n:host([alignment*=space-between]:not([width=auto])) button {\n justify-content: space-between;\n}\n\n:host([alignment=icon-start-space-between]:not([width=auto])) .icon--start {\n margin-right: auto;\n}\n\n:host([alignment=icon-start-space-between]:not([width=auto])) a,\n:host([alignment=icon-start-space-between]:not([width=auto])) button {\n text-align: unset;\n}\n\n:host([alignment=icon-end-space-between]:not([width=auto])) .icon--end {\n margin-left: auto;\n}\n\n:host([alignment=icon-end-space-between]:not([width=auto])) a,\n:host([alignment=icon-end-space-between]:not([width=auto])) button {\n text-align: unset;\n}\n\n:host([alignment=icon-start-space-between]:not([width=auto])) .calcite--rtl .icon--start {\n margin-right: unset;\n margin-left: auto;\n}\n\n:host([alignment=icon-end-space-between]:not([width=auto])) .calcite--rtl .icon--end {\n margin-left: unset;\n margin-right: auto;\n}\n\n:host([alignment=center]) a:not(.content--slotted) .icon--start + .icon--end,\n:host([alignment=center]) button:not(.content--slotted) .icon--start + .icon--end {\n margin-left: var(--calcite-button-content-margin);\n}\n\n:host([alignment=center]) a.calcite--rtl:not(.content--slotted) .icon--start + .icon--end,\n:host([alignment=center]) button.calcite--rtl:not(.content--slotted) .icon--start + .icon--end {\n margin-left: unset;\n margin-right: var(--calcite-button-content-margin);\n}\n\n.icon {\n display: inline-flex;\n position: relative;\n margin: 0;\n font-weight: var(--calcite-font-weight-normal);\n line-height: inherit;\n}\n\n:host([loading]),\n:host([disabled]) {\n pointer-events: none;\n}\n\n:host([loading]) button,\n:host([loading]) a,\n:host([disabled]) button,\n:host([disabled]) a {\n pointer-events: none;\n opacity: var(--calcite-ui-opacity-disabled);\n}\n\n@keyframes loader-in {\n 0% {\n width: 0;\n opacity: 0;\n transform: scale(0.5);\n }\n\n 100% {\n width: 1em;\n opacity: 1;\n transform: scale(1);\n }\n}\n\n@keyframes loader-out {\n 0% {\n width: 1em;\n opacity: 1;\n transform: scale(1);\n }\n\n 100% {\n width: 0;\n opacity: 0;\n transform: scale(0.5);\n }\n}\n\n.calcite-button--loader {\n display: flex;\n}\n\n.calcite-button--loader calcite-loader {\n margin: 0;\n transition: width 300ms ease-in-out, opacity 300ms ease-in-out, transform 300ms ease-in-out;\n}\n\n.calcite-button--loader calcite-loader.loading-in {\n animation-name: loader-in;\n animation-duration: 310ms;\n}\n\n.calcite-button--loader calcite-loader.loading-out {\n animation-name: loader-out;\n animation-duration: 310ms;\n}\n\n:host([loading]) button.content--slotted .calcite-button--loader calcite-loader,\n:host([loading]) a.content--slotted .calcite-button--loader calcite-loader {\n margin-inline-end: var(--calcite-button-content-margin);\n}\n\n:host([loading]) button:not(.content--slotted) .icon--start,\n:host([loading]) button:not(.content--slotted) .icon--end,\n:host([loading]) a:not(.content--slotted) .icon--start,\n:host([loading]) a:not(.content--slotted) .icon--end {\n display: none;\n}\n\n:host([appearance=solid]) button,\n:host([appearance=solid]) a {\n border-width: 1px;\n border-style: solid;\n border-color: transparent;\n}\n\n:host([appearance=solid][color=blue]) button,\n:host([appearance=solid][color=blue]) a {\n color: var(--calcite-ui-text-inverse);\n background-color: var(--calcite-ui-brand);\n}\n\n:host([appearance=solid][color=blue]) button:hover, :host([appearance=solid][color=blue]) button:focus,\n:host([appearance=solid][color=blue]) a:hover,\n:host([appearance=solid][color=blue]) a:focus {\n background-color: var(--calcite-ui-brand-hover);\n}\n\n:host([appearance=solid][color=blue]) button:active,\n:host([appearance=solid][color=blue]) a:active {\n background-color: var(--calcite-ui-brand-press);\n}\n\n:host([appearance=solid][color=blue]) button calcite-loader,\n:host([appearance=solid][color=blue]) a calcite-loader {\n color: var(--calcite-ui-text-inverse);\n}\n\n:host([appearance=solid][color=red]) button,\n:host([appearance=solid][color=red]) a {\n color: var(--calcite-ui-text-inverse);\n background-color: var(--calcite-ui-danger);\n}\n\n:host([appearance=solid][color=red]) button:hover, :host([appearance=solid][color=red]) button:focus,\n:host([appearance=solid][color=red]) a:hover,\n:host([appearance=solid][color=red]) a:focus {\n background-color: var(--calcite-ui-danger-hover);\n}\n\n:host([appearance=solid][color=red]) button:active,\n:host([appearance=solid][color=red]) a:active {\n background-color: var(--calcite-ui-danger-press);\n}\n\n:host([appearance=solid][color=red]) button calcite-loader,\n:host([appearance=solid][color=red]) a calcite-loader {\n color: var(--calcite-ui-text-inverse);\n}\n\n:host([appearance=solid][color=neutral]) button,\n:host([appearance=solid][color=neutral]) a {\n color: var(--calcite-ui-text-1);\n background-color: var(--calcite-ui-foreground-3);\n}\n\n:host([appearance=solid][color=neutral]) button:hover, :host([appearance=solid][color=neutral]) button:focus,\n:host([appearance=solid][color=neutral]) a:hover,\n:host([appearance=solid][color=neutral]) a:focus {\n background-color: var(--calcite-ui-foreground-2);\n}\n\n:host([appearance=solid][color=neutral]) button:active,\n:host([appearance=solid][color=neutral]) a:active {\n background-color: var(--calcite-ui-foreground-1);\n}\n\n:host([appearance=solid][color=neutral]) button calcite-loader,\n:host([appearance=solid][color=neutral]) a calcite-loader {\n color: var(--calcite-ui-text-1);\n}\n\n:host([appearance=solid][color=inverse]) button,\n:host([appearance=solid][color=inverse]) a {\n color: var(--calcite-ui-text-inverse);\n background-color: var(--calcite-ui-inverse);\n}\n\n:host([appearance=solid][color=inverse]) button:hover, :host([appearance=solid][color=inverse]) button:focus,\n:host([appearance=solid][color=inverse]) a:hover,\n:host([appearance=solid][color=inverse]) a:focus {\n background-color: var(--calcite-ui-inverse-hover);\n}\n\n:host([appearance=solid][color=inverse]) button:active,\n:host([appearance=solid][color=inverse]) a:active {\n background-color: var(--calcite-ui-inverse-press);\n}\n\n:host([appearance=solid][color=inverse]) button calcite-loader,\n:host([appearance=solid][color=inverse]) a calcite-loader {\n color: var(--calcite-ui-text-inverse);\n}\n\n:host([appearance=outline]) button,\n:host([appearance=outline]) a {\n background-color: var(--calcite-ui-foreground-1);\n border-width: 1px;\n border-style: solid;\n box-shadow: inset 0 0 0 1px transparent;\n}\n\n:host([appearance=outline][color=blue]) button,\n:host([appearance=outline][color=blue]) a {\n border-color: var(--calcite-ui-brand);\n color: var(--calcite-ui-brand);\n}\n\n:host([appearance=outline][color=blue]) button:hover,\n:host([appearance=outline][color=blue]) a:hover {\n border-color: var(--calcite-ui-brand-hover);\n color: var(--calcite-ui-brand-hover);\n box-shadow: inset 0 0 0 1px var(--calcite-ui-brand-hover);\n}\n\n:host([appearance=outline][color=blue]) button:focus,\n:host([appearance=outline][color=blue]) a:focus {\n border-color: var(--calcite-ui-brand);\n color: var(--calcite-ui-brand);\n box-shadow: inset 0 0 0 2px var(--calcite-ui-brand);\n}\n\n:host([appearance=outline][color=blue]) button:active,\n:host([appearance=outline][color=blue]) a:active {\n border-color: var(--calcite-ui-brand-press);\n color: var(--calcite-ui-brand-press);\n box-shadow: inset 0 0 0 2px var(--calcite-ui-brand-press);\n}\n\n:host([appearance=outline][color=blue]) button calcite-loader,\n:host([appearance=outline][color=blue]) a calcite-loader {\n color: var(--calcite-ui-brand);\n}\n\n:host([appearance=outline][color=red]) button,\n:host([appearance=outline][color=red]) a {\n border-color: var(--calcite-ui-danger);\n color: var(--calcite-ui-danger);\n}\n\n:host([appearance=outline][color=red]) button:hover,\n:host([appearance=outline][color=red]) a:hover {\n border-color: var(--calcite-ui-danger-hover);\n color: var(--calcite-ui-danger-hover);\n box-shadow: inset 0 0 0 1px var(--calcite-ui-danger-hover);\n}\n\n:host([appearance=outline][color=red]) button:focus,\n:host([appearance=outline][color=red]) a:focus {\n border-color: var(--calcite-ui-danger);\n color: var(--calcite-ui-danger);\n box-shadow: inset 0 0 0 2px var(--calcite-ui-danger);\n}\n\n:host([appearance=outline][color=red]) button:active,\n:host([appearance=outline][color=red]) a:active {\n border-color: var(--calcite-ui-danger-press);\n color: var(--calcite-ui-danger-press);\n box-shadow: inset 0 0 0 2px var(--calcite-ui-danger-press);\n}\n\n:host([appearance=outline][color=red]) button calcite-loader,\n:host([appearance=outline][color=red]) a calcite-loader {\n color: var(--calcite-ui-danger);\n}\n\n:host([appearance=outline][color=neutral]) button,\n:host([appearance=outline][color=neutral]) a {\n color: var(--calcite-ui-text-1);\n border-color: var(--calcite-ui-foreground-3);\n}\n\n:host([appearance=outline][color=neutral]) button:hover,\n:host([appearance=outline][color=neutral]) a:hover {\n box-shadow: inset 0 0 0 1px var(--calcite-ui-foreground-3);\n}\n\n:host([appearance=outline][color=neutral]) button:focus,\n:host([appearance=outline][color=neutral]) a:focus {\n box-shadow: inset 0 0 0 2px var(--calcite-ui-foreground-3);\n}\n\n:host([appearance=outline][color=neutral]) button:active,\n:host([appearance=outline][color=neutral]) a:active {\n box-shadow: inset 0 0 0 2px var(--calcite-ui-foreground-3);\n}\n\n:host([appearance=outline][color=neutral]) button calcite-loader,\n:host([appearance=outline][color=neutral]) a calcite-loader {\n color: var(--calcite-ui-text-1);\n}\n\n:host([appearance=outline][color=inverse]) button,\n:host([appearance=outline][color=inverse]) a {\n color: var(--calcite-ui-text-1);\n border-color: var(--calcite-ui-inverse);\n}\n\n:host([appearance=outline][color=inverse]) button:hover,\n:host([appearance=outline][color=inverse]) a:hover {\n border-color: var(--calcite-ui-inverse-hover);\n box-shadow: inset 0 0 0 1px var(--calcite-ui-inverse-hover);\n}\n\n:host([appearance=outline][color=inverse]) button:focus,\n:host([appearance=outline][color=inverse]) a:focus {\n border-color: var(--calcite-ui-inverse);\n box-shadow: inset 0 0 0 2px var(--calcite-ui-inverse);\n}\n\n:host([appearance=outline][color=inverse]) button:active,\n:host([appearance=outline][color=inverse]) a:active {\n border-color: var(--calcite-ui-inverse-press);\n box-shadow: inset 0 0 0 2px var(--calcite-ui-inverse-press);\n}\n\n:host([appearance=outline][color=inverse]) button calcite-loader,\n:host([appearance=outline][color=inverse]) a calcite-loader {\n color: var(--calcite-ui-text-1);\n}\n\n:host([appearance=clear]) button,\n:host([appearance=clear]) a {\n background-color: transparent;\n border-width: 1px;\n border-style: solid;\n box-shadow: inset 0 0 0 1px transparent;\n}\n\n:host([appearance=clear][color=blue]) button,\n:host([appearance=clear][color=blue]) a {\n border-color: var(--calcite-ui-brand);\n color: var(--calcite-ui-brand);\n}\n\n:host([appearance=clear][color=blue]) button:hover,\n:host([appearance=clear][color=blue]) a:hover {\n border-color: var(--calcite-ui-brand-hover);\n color: var(--calcite-ui-brand-hover);\n box-shadow: inset 0 0 0 1px var(--calcite-ui-brand-hover);\n}\n\n:host([appearance=clear][color=blue]) button:focus,\n:host([appearance=clear][color=blue]) a:focus {\n border-color: var(--calcite-ui-brand);\n color: var(--calcite-ui-brand);\n box-shadow: inset 0 0 0 2px var(--calcite-ui-brand);\n}\n\n:host([appearance=clear][color=blue]) button:active,\n:host([appearance=clear][color=blue]) a:active {\n border-color: var(--calcite-ui-brand-press);\n color: var(--calcite-ui-brand-press);\n box-shadow: inset 0 0 0 2px var(--calcite-ui-brand-press);\n}\n\n:host([appearance=clear][color=blue]) button calcite-loader,\n:host([appearance=clear][color=blue]) a calcite-loader {\n color: var(--calcite-ui-brand);\n}\n\n:host([appearance=clear][color=red]) button,\n:host([appearance=clear][color=red]) a {\n border-color: var(--calcite-ui-danger);\n color: var(--calcite-ui-danger);\n}\n\n:host([appearance=clear][color=red]) button:hover,\n:host([appearance=clear][color=red]) a:hover {\n border-color: var(--calcite-ui-danger-hover);\n color: var(--calcite-ui-danger-hover);\n box-shadow: inset 0 0 0 1px var(--calcite-ui-danger-hover);\n}\n\n:host([appearance=clear][color=red]) button:focus,\n:host([appearance=clear][color=red]) a:focus {\n border-color: var(--calcite-ui-danger);\n color: var(--calcite-ui-danger);\n box-shadow: inset 0 0 0 2px var(--calcite-ui-danger);\n}\n\n:host([appearance=clear][color=red]) button:active,\n:host([appearance=clear][color=red]) a:active {\n border-color: var(--calcite-ui-danger-press);\n color: var(--calcite-ui-danger-press);\n box-shadow: inset 0 0 0 2px var(--calcite-ui-danger-press);\n}\n\n:host([appearance=clear][color=red]) button calcite-loader,\n:host([appearance=clear][color=red]) a calcite-loader {\n color: var(--calcite-ui-danger);\n}\n\n:host([appearance=clear][color=neutral]) button,\n:host([appearance=clear][color=neutral]) a {\n color: var(--calcite-ui-text-1);\n border-color: var(--calcite-ui-foreground-3);\n}\n\n:host([appearance=clear][color=neutral]) button:hover,\n:host([appearance=clear][color=neutral]) a:hover {\n box-shadow: inset 0 0 0 1px var(--calcite-ui-foreground-3);\n}\n\n:host([appearance=clear][color=neutral]) button:focus,\n:host([appearance=clear][color=neutral]) a:focus {\n box-shadow: inset 0 0 0 2px var(--calcite-ui-foreground-3);\n}\n\n:host([appearance=clear][color=neutral]) button:active,\n:host([appearance=clear][color=neutral]) a:active {\n box-shadow: inset 0 0 0 2px var(--calcite-ui-foreground-3);\n}\n\n:host([appearance=clear][color=neutral]) button calcite-loader,\n:host([appearance=clear][color=neutral]) a calcite-loader {\n color: var(--calcite-ui-text-1);\n}\n\n:host([appearance=clear][color=inverse]) button,\n:host([appearance=clear][color=inverse]) a {\n color: var(--calcite-ui-text-1);\n border-color: var(--calcite-ui-inverse);\n}\n\n:host([appearance=clear][color=inverse]) button:hover,\n:host([appearance=clear][color=inverse]) a:hover {\n border-color: var(--calcite-ui-inverse-hover);\n box-shadow: inset 0 0 0 1px var(--calcite-ui-inverse-hover);\n}\n\n:host([appearance=clear][color=inverse]) button:focus,\n:host([appearance=clear][color=inverse]) a:focus {\n border-color: var(--calcite-ui-inverse);\n box-shadow: inset 0 0 0 2px var(--calcite-ui-inverse);\n}\n\n:host([appearance=clear][color=inverse]) button:active,\n:host([appearance=clear][color=inverse]) a:active {\n border-color: var(--calcite-ui-inverse-press);\n box-shadow: inset 0 0 0 2px var(--calcite-ui-inverse-press);\n}\n\n:host([appearance=clear][color=inverse]) button calcite-loader,\n:host([appearance=clear][color=inverse]) a calcite-loader {\n color: var(--calcite-ui-text-1);\n}\n\n:host([appearance=outline][split-child=primary]) button,\n:host([appearance=clear][split-child=primary]) button {\n border-right-width: 0;\n border-left-width: 1px;\n}\n\n:host([appearance=outline][split-child=primary]) button.calcite--rtl,\n:host([appearance=clear][split-child=primary]) button.calcite--rtl {\n border-left-width: 0;\n border-right-width: 1px;\n}\n\n:host([appearance=outline][split-child=secondary]) button,\n:host([appearance=clear][split-child=secondary]) button {\n border-left-width: 0;\n border-right-width: 1px;\n}\n\n:host([appearance=outline][split-child=secondary]) button.calcite--rtl,\n:host([appearance=clear][split-child=secondary]) button.calcite--rtl {\n border-right-width: 0;\n border-left-width: 1px;\n}\n\n:host([appearance=transparent]:not(.enable-editing-button)) button,\n:host([appearance=transparent]:not(.enable-editing-button)) a {\n background-color: transparent;\n}\n\n:host([appearance=transparent]:not(.enable-editing-button)) button:hover, :host([appearance=transparent]:not(.enable-editing-button)) button:focus,\n:host([appearance=transparent]:not(.enable-editing-button)) a:hover,\n:host([appearance=transparent]:not(.enable-editing-button)) a:focus {\n background-color: var(--calcite-button-transparent-hover);\n}\n\n:host([appearance=transparent]:not(.enable-editing-button)) button:active,\n:host([appearance=transparent]:not(.enable-editing-button)) a:active {\n background-color: var(--calcite-button-transparent-press);\n}\n\n:host([appearance=transparent][color=blue]) button,\n:host([appearance=transparent][color=blue]) a {\n color: var(--calcite-ui-brand);\n}\n\n:host([appearance=transparent][color=blue]) button:hover,\n:host([appearance=transparent][color=blue]) a:hover {\n color: var(--calcite-ui-brand-hover);\n}\n\n:host([appearance=transparent][color=blue]) button:focus,\n:host([appearance=transparent][color=blue]) a:focus {\n color: var(--calcite-ui-brand);\n}\n\n:host([appearance=transparent][color=blue]) button:active,\n:host([appearance=transparent][color=blue]) a:active {\n color: var(--calcite-ui-brand-press);\n}\n\n:host([appearance=transparent][color=blue]) button calcite-loader,\n:host([appearance=transparent][color=blue]) a calcite-loader {\n color: var(--calcite-ui-brand);\n}\n\n:host([appearance=transparent][color=red]) button,\n:host([appearance=transparent][color=red]) a {\n color: var(--calcite-ui-danger);\n}\n\n:host([appearance=transparent][color=red]) button:hover,\n:host([appearance=transparent][color=red]) a:hover {\n color: var(--calcite-ui-danger-hover);\n}\n\n:host([appearance=transparent][color=red]) button:focus,\n:host([appearance=transparent][color=red]) a:focus {\n color: var(--calcite-ui-danger);\n}\n\n:host([appearance=transparent][color=red]) button:active,\n:host([appearance=transparent][color=red]) a:active {\n color: var(--calcite-ui-danger-press);\n}\n\n:host([appearance=transparent][color=red]) button calcite-loader,\n:host([appearance=transparent][color=red]) a calcite-loader {\n color: var(--calcite-ui-danger);\n}\n\n:host([appearance=transparent][color=neutral]:not(.cancel-editing-button)) button,\n:host([appearance=transparent][color=neutral]:not(.cancel-editing-button)) a,\n:host([appearance=transparent][color=neutral]:not(.cancel-editing-button)) calcite-loader {\n color: var(--calcite-ui-text-1);\n}\n\n:host([appearance=transparent][color=neutral].cancel-editing-button) button {\n color: var(--calcite-ui-text-3);\n border-top-width: 1px;\n border-top-color: var(--calcite-ui-border-input);\n border-bottom-width: 1px;\n border-bottom-color: var(--calcite-ui-border-input);\n border-bottom-style: solid;\n border-top-style: solid;\n}\n\n:host([appearance=transparent][color=neutral].cancel-editing-button) button:not(.content--slotted) {\n --calcite-button-padding-y: 0;\n}\n\n:host([appearance=transparent][color=neutral].cancel-editing-button) button:hover {\n color: var(--calcite-ui-text-1);\n}\n\n:host([appearance=transparent][color=neutral].enable-editing-button) button {\n background-color: transparent;\n}\n\n:host(.confirm-changes-button) button:focus,\n:host(.cancel-editing-button) button:focus,\n:host(.enable-editing-button) button:focus {\n outline-offset: -2px;\n}\n\n:host([appearance=transparent][color=inverse]) button,\n:host([appearance=transparent][color=inverse]) a,\n:host([appearance=transparent][color=inverse]) calcite-loader {\n color: var(--calcite-ui-text-inverse);\n}\n\n:host([scale=s]) button.content--slotted,\n:host([scale=s]) a.content--slotted {\n font-size: var(--calcite-font-size--2);\n line-height: 1rem;\n}\n\n:host([scale=s][appearance=transparent]) button.content--slotted,\n:host([scale=s][appearance=transparent]) a.content--slotted {\n --calcite-button-padding-x: 0.5rem;\n --calcite-button-padding-y: 0.25rem;\n}\n\n:host([scale=m]) button.content--slotted,\n:host([scale=m]) a.content--slotted {\n --calcite-button-padding-x: 11px;\n font-size: var(--calcite-font-size--1);\n line-height: 1rem;\n}\n\n:host([scale=m]:not([appearance=transparent])) button.content--slotted,\n:host([scale=m]:not([appearance=transparent])) a.content--slotted {\n --calcite-button-padding-y: 7px;\n}\n\n:host([scale=m][appearance=transparent]) button.content--slotted,\n:host([scale=m][appearance=transparent]) a.content--slotted {\n --calcite-button-padding-x: 0.75rem;\n --calcite-button-padding-y: 0.5rem;\n}\n\n:host([scale=l]) button.content--slotted,\n:host([scale=l]) a.content--slotted {\n --calcite-button-padding-x: 15px;\n font-size: var(--calcite-font-size-0);\n line-height: 1.25rem;\n}\n\n:host([scale=l]:not([appearance=transparent])) button.content--slotted,\n:host([scale=l]:not([appearance=transparent])) a.content--slotted {\n --calcite-button-padding-y: 11px;\n}\n\n:host([scale=l][appearance=transparent]) button.content--slotted,\n:host([scale=l][appearance=transparent]) a.content--slotted {\n --calcite-button-padding-x: 1rem;\n --calcite-button-padding-y: 0.75rem;\n}\n\n:host([scale=s]) button:not(.content--slotted),\n:host([scale=s]) a:not(.content--slotted) {\n --calcite-button-padding-x: 0.125rem;\n --calcite-button-padding-y: 3px;\n font-size: var(--calcite-font-size-0);\n line-height: 1.25rem;\n width: 1.5rem;\n min-height: 1.5rem;\n}\n\n:host([scale=s][appearance=transparent]) button:not(.content--slotted),\n:host([scale=s][appearance=transparent]) a:not(.content--slotted) {\n --calcite-button-padding-y: 0.25rem;\n}\n\n:host([scale=m]) button:not(.content--slotted),\n:host([scale=m]) a:not(.content--slotted) {\n --calcite-button-padding-x: 0.125rem;\n --calcite-button-padding-y: 7px;\n font-size: var(--calcite-font-size-0);\n line-height: 1.25rem;\n width: 2rem;\n min-height: 2rem;\n}\n\n:host([scale=m][appearance=transparent]) button:not(.content--slotted),\n:host([scale=m][appearance=transparent]) a:not(.content--slotted) {\n --calcite-button-padding-y: 0.5rem;\n}\n\n:host([scale=l]) button:not(.content--slotted),\n:host([scale=l]) a:not(.content--slotted) {\n --calcite-button-padding-x: 0.125rem;\n --calcite-button-padding-y: 9px;\n font-size: var(--calcite-font-size-0);\n line-height: 1.25rem;\n width: 2.75rem;\n min-height: 2.75rem;\n}\n\n:host([scale=l][appearance=transparent]) button:not(.content--slotted),\n:host([scale=l][appearance=transparent]) a:not(.content--slotted) {\n --calcite-button-padding-y: 0.625rem;\n}\n\n:host([scale=s][icon-start][icon-end]) button:not(.content--slotted),\n:host([scale=s][icon-start][icon-end]) a:not(.content--slotted) {\n --calcite-button-padding-x: 23px;\n font-size: var(--calcite-font-size-0);\n line-height: 1.25rem;\n height: 1.5rem;\n}\n\n:host([scale=s][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),\n:host([scale=s][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted) {\n --calcite-button-padding-x: 1.5rem;\n}\n\n:host([scale=m][icon-start][icon-end]) button:not(.content--slotted),\n:host([scale=m][icon-start][icon-end]) a:not(.content--slotted) {\n --calcite-button-padding-x: 2rem;\n font-size: var(--calcite-font-size-0);\n line-height: 1.25rem;\n height: 2rem;\n}\n\n:host([scale=m][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),\n:host([scale=m][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted) {\n --calcite-button-padding-x: 33px;\n}\n\n:host([scale=l][icon-start][icon-end]) button:not(.content--slotted),\n:host([scale=l][icon-start][icon-end]) a:not(.content--slotted) {\n --calcite-button-padding-x: 43px;\n font-size: var(--calcite-font-size-0);\n line-height: 1.25rem;\n height: 2.75rem;\n}\n\n:host([scale=l][icon-start][icon-end]) button:not(.content--slotted) .icon--start + .icon--end,\n:host([scale=l][icon-start][icon-end]) a:not(.content--slotted) .icon--start + .icon--end {\n margin-inline-start: 1rem;\n}\n\n:host([scale=l][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),\n:host([scale=l][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted) {\n --calcite-button-padding-x: 2.75rem;\n}","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nimport \"form-request-submit-polyfill/form-request-submit-polyfill\";\nimport { Component, Element, h, Method, Prop, Build, State, Watch } from \"@stencil/core\";\nimport { CSS, TEXT } from \"./resources\";\nimport { closestElementCrossShadowBoundary, getElementDir } from \"../../utils/dom\";\nimport { CSS_UTILITY } from \"../../utils/resources\";\nimport { connectLabel, disconnectLabel, getLabelText } from \"../../utils/label\";\nimport { createObserver } from \"../../utils/observers\";\n/** Passing a 'href' will render an anchor link, instead of a button. Role will be set to link, or button, depending on this. */\n/** It is the consumers responsibility to add aria information, rel, target, for links, and any button attributes for form submission */\n/** @slot - A slot for adding text. */\nexport class CalciteButton {\n constructor() {\n //--------------------------------------------------------------------------\n //\n // Properties\n //\n //--------------------------------------------------------------------------\n /** optionally specify alignment of button elements. */\n this.alignment = \"center\";\n /** specify the appearance style of the button, defaults to solid. */\n this.appearance = \"solid\";\n /** specify the color of the button, defaults to blue */\n this.color = \"blue\";\n /** is the button disabled */\n this.disabled = false;\n /** string to override English loading text\n * @default \"Loading\"\n */\n this.intlLoading = TEXT.loading;\n /** optionally add a calcite-loader component to the button, disabling interaction. */\n this.loading = false;\n /** optionally add a round style to the button */\n this.round = false;\n /** specify the scale of the button, defaults to m */\n this.scale = \"m\";\n /** is the button a child of a calcite-split-button */\n this.splitChild = false;\n /** specify the width of the button, defaults to auto */\n this.width = \"auto\";\n /** watches for changing text content **/\n this.mutationObserver = createObserver(\"mutation\", () => this.updateHasContent());\n /** the node type of the rendered child element */\n this.childElType = \"button\";\n /** determine if there is slotted content for styling purposes */\n this.hasContent = false;\n /** determine if loader present for styling purposes */\n this.hasLoader = false;\n // act on a requested or nearby form based on type\n this.handleClick = () => {\n const { childElType, formEl, type } = this;\n // this.type refers to type attribute, not child element type\n if (childElType === \"button\" && type !== \"button\") {\n if (type === \"submit\") {\n formEl === null || formEl === void 0 ? void 0 : formEl.requestSubmit();\n }\n else if (type === \"reset\") {\n formEl === null || formEl === void 0 ? void 0 : formEl.reset();\n }\n }\n };\n }\n hrefHandler(href) {\n this.childElType = href ? \"a\" : \"button\";\n }\n loadingChanged(newValue, oldValue) {\n if (!!newValue && !oldValue) {\n this.hasLoader = true;\n }\n if (!newValue && !!oldValue) {\n window.setTimeout(() => {\n this.hasLoader = false;\n }, 300);\n }\n }\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n connectedCallback() {\n this.childElType = this.href ? \"a\" : \"button\";\n this.hasLoader = this.loading;\n this.setupTextContentObserver();\n connectLabel(this);\n this.formEl = closestElementCrossShadowBoundary(this.el, this.form ? `#${this.form}` : \"form\");\n }\n disconnectedCallback() {\n var _a;\n (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();\n disconnectLabel(this);\n this.formEl = null;\n }\n componentWillLoad() {\n if (Build.isBrowser) {\n this.updateHasContent();\n if (this.childElType === \"button\" && !this.type) {\n this.type = \"submit\";\n }\n }\n }\n render() {\n const dir = getElementDir(this.el);\n const Tag = this.childElType;\n const loader = (h(\"div\", { class: CSS.buttonLoader }, this.hasLoader ? (h(\"calcite-loader\", { active: true, class: this.loading ? CSS.loadingIn : CSS.loadingOut, inline: true, label: this.intlLoading, scale: \"m\" })) : null));\n const iconStartEl = (h(\"calcite-icon\", { class: { [CSS.icon]: true, [CSS.iconStart]: true }, flipRtl: this.iconFlipRtl === \"start\" || this.iconFlipRtl === \"both\", icon: this.iconStart, scale: \"s\" }));\n const iconEndEl = (h(\"calcite-icon\", { class: { [CSS.icon]: true, [CSS.iconEnd]: true }, flipRtl: this.iconFlipRtl === \"end\" || this.iconFlipRtl === \"both\", icon: this.iconEnd, scale: \"s\" }));\n const contentEl = (h(\"span\", { class: CSS.content },\n h(\"slot\", null)));\n return (h(Tag, { \"aria-label\": getLabelText(this), class: { [CSS_UTILITY.rtl]: dir === \"rtl\", [CSS.contentSlotted]: this.hasContent }, disabled: this.disabled || this.loading, href: this.childElType === \"a\" && this.href, name: this.childElType === \"button\" && this.name, onClick: this.handleClick, ref: (el) => (this.childEl = el), rel: this.childElType === \"a\" && this.rel, tabIndex: this.disabled || this.loading ? -1 : null, target: this.childElType === \"a\" && this.target, type: this.childElType === \"button\" && this.type },\n loader,\n this.iconStart ? iconStartEl : null,\n this.hasContent ? contentEl : null,\n this.iconEnd ? iconEndEl : null));\n }\n //--------------------------------------------------------------------------\n //\n // Public Methods\n //\n //--------------------------------------------------------------------------\n /** Sets focus on the component. */\n async setFocus() {\n this.childEl.focus();\n }\n updateHasContent() {\n var _a, _b;\n const slottedContent = this.el.textContent.trim().length > 0 || this.el.childNodes.length > 0;\n this.hasContent =\n this.el.childNodes.length === 1 && ((_a = this.el.childNodes[0]) === null || _a === void 0 ? void 0 : _a.nodeName) === \"#text\"\n ? ((_b = this.el.textContent) === null || _b === void 0 ? void 0 : _b.trim().length) > 0\n : slottedContent;\n }\n setupTextContentObserver() {\n var _a;\n (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });\n }\n //--------------------------------------------------------------------------\n //\n // Private Methods\n //\n //--------------------------------------------------------------------------\n onLabelClick() {\n this.handleClick();\n this.setFocus();\n }\n static get is() { return \"calcite-button\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"calcite-button.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-button.css\"]\n }; }\n static get properties() { return {\n \"alignment\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"ButtonAlignment\",\n \"resolved\": \"\\\"center\\\" | \\\"end\\\" | \\\"icon-end-space-between\\\" | \\\"icon-start-space-between\\\" | \\\"space-between\\\" | \\\"start\\\"\",\n \"references\": {\n \"ButtonAlignment\": {\n \"location\": \"import\",\n \"path\": \"./interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"optionally specify alignment of button elements.\"\n },\n \"attribute\": \"alignment\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"center\\\"\"\n },\n \"appearance\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"ButtonAppearance\",\n \"resolved\": \"\\\"clear\\\" | \\\"outline\\\" | \\\"solid\\\" | \\\"transparent\\\"\",\n \"references\": {\n \"ButtonAppearance\": {\n \"location\": \"import\",\n \"path\": \"./interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"specify the appearance style of the button, defaults to solid.\"\n },\n \"attribute\": \"appearance\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"solid\\\"\"\n },\n \"label\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Applies to the aria-label attribute on the button or hyperlink\"\n },\n \"attribute\": \"label\",\n \"reflect\": false\n },\n \"color\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"ButtonColor\",\n \"resolved\": \"\\\"blue\\\" | \\\"inverse\\\" | \\\"neutral\\\" | \\\"red\\\"\",\n \"references\": {\n \"ButtonColor\": {\n \"location\": \"import\",\n \"path\": \"./interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"specify the color of the button, defaults to blue\"\n },\n \"attribute\": \"color\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"blue\\\"\"\n },\n \"disabled\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"is the button disabled\"\n },\n \"attribute\": \"disabled\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"href\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"optionally pass a href - used to determine if the component should render as a button or an anchor\"\n },\n \"attribute\": \"href\",\n \"reflect\": true\n },\n \"iconEnd\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"optionally pass an icon to display at the end of a button - accepts calcite ui icon names\"\n },\n \"attribute\": \"icon-end\",\n \"reflect\": true\n },\n \"iconFlipRtl\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"FlipContext\",\n \"resolved\": \"\\\"both\\\" | \\\"end\\\" | \\\"start\\\"\",\n \"references\": {\n \"FlipContext\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"flip the icon(s) in rtl\"\n },\n \"attribute\": \"icon-flip-rtl\",\n \"reflect\": true\n },\n \"iconStart\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"optionally pass an icon to display at the start of a button - accepts calcite ui icon names\"\n },\n \"attribute\": \"icon-start\",\n \"reflect\": true\n },\n \"intlLoading\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"default\",\n \"text\": \"\\\"Loading\\\"\"\n }],\n \"text\": \"string to override English loading text\"\n },\n \"attribute\": \"intl-loading\",\n \"reflect\": false,\n \"defaultValue\": \"TEXT.loading\"\n },\n \"loading\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"optionally add a calcite-loader component to the button, disabling interaction.\"\n },\n \"attribute\": \"loading\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"name\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The name attribute to apply to the button\"\n },\n \"attribute\": \"name\",\n \"reflect\": false\n },\n \"rel\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The rel attribute to apply to the hyperlink\"\n },\n \"attribute\": \"rel\",\n \"reflect\": false\n },\n \"form\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"deprecated\",\n \"text\": \"\\u2013 this property is no longer needed if placed inside a form.\"\n }],\n \"text\": \"The form ID to associate with the component\"\n },\n \"attribute\": \"form\",\n \"reflect\": false\n },\n \"round\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"optionally add a round style to the button\"\n },\n \"attribute\": \"round\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"scale\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Scale\",\n \"resolved\": \"\\\"l\\\" | \\\"m\\\" | \\\"s\\\"\",\n \"references\": {\n \"Scale\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"specify the scale of the button, defaults to m\"\n },\n \"attribute\": \"scale\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"m\\\"\"\n },\n \"splitChild\": {\n \"type\": \"any\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"\\\"primary\\\" | \\\"secondary\\\" | false\",\n \"resolved\": \"\\\"primary\\\" | \\\"secondary\\\" | boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"is the button a child of a calcite-split-button\"\n },\n \"attribute\": \"split-child\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"target\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The target attribute to apply to the hyperlink\"\n },\n \"attribute\": \"target\",\n \"reflect\": false\n },\n \"type\": {\n \"type\": \"string\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The type attribute to apply to the button\"\n },\n \"attribute\": \"type\",\n \"reflect\": false\n },\n \"width\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Width\",\n \"resolved\": \"\\\"auto\\\" | \\\"full\\\" | \\\"half\\\"\",\n \"references\": {\n \"Width\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"specify the width of the button, defaults to auto\"\n },\n \"attribute\": \"width\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"auto\\\"\"\n }\n }; }\n static get states() { return {\n \"childElType\": {},\n \"hasContent\": {},\n \"hasLoader\": {}\n }; }\n static get methods() { return {\n \"setFocus\": {\n \"complexType\": {\n \"signature\": \"() => Promise<void>\",\n \"parameters\": [],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n }\n },\n \"return\": \"Promise<void>\"\n },\n \"docs\": {\n \"text\": \"Sets focus on the component.\",\n \"tags\": []\n }\n }\n }; }\n static get elementRef() { return \"el\"; }\n static get watchers() { return [{\n \"propName\": \"href\",\n \"methodName\": \"hrefHandler\"\n }, {\n \"propName\": \"loading\",\n \"methodName\": \"loadingChanged\"\n }]; }\n}\n"]}