@esri/solutions-components 0.0.2 → 0.0.3

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-dropdown/resources.js","node_modules/@esri/calcite-components/dist/collection/components/calcite-dropdown/calcite-dropdown.css?tag=calcite-dropdown&encapsulation=shadow","node_modules/@esri/calcite-components/dist/collection/components/calcite-dropdown/calcite-dropdown.js"],"names":["DefaultDropdownPlacement","SLOTS","dropdownTrigger","calciteDropdownCss","CalciteDropdown","[object Object]","hostRef","this","active","disableCloseOnSelect","disabled","maxItems","overlayPositioning","placement","scale","selectedItems","type","width","items","activeTransitionProp","mutationObserver","createObserver","updateItems","updateSelectedItems","triggers","Array","from","el","querySelectorAll","reposition","setMaxScrollerHeight","scrollerEl","maxScrollerHeight","getMaxScrollerHeight","style","maxHeight","setScrollerEl","transitionEnd","event","propertyName","calciteDropdownOpen","emit","calciteDropdownClose","setReferenceEl","referenceEl","setMenuEl","menuEl","keyDownHandler","e","target","key","getKey","includes","some","trigger","contains","nodeName","openCalciteDropdown","closeCalciteDropdown","shiftKey","focusOnFirstActiveOrFirstItem","getFocusableElement","find","item","toggleOpenEnd","removeEventListener","addEventListener","_a","observe","childList","subtree","createPopper","disconnect","destroyPopper","dir","getElementDir","h","Host","tabIndex","class","CSS_UTILITY","rtl","onClick","onKeyDown","ref","aria-expanded","toString","aria-haspopup","name","aria-hidden","PopperCSS","animation","animationActive","onTransitionEnd","popper","modifiers","getModifiers","updatePopper","composedPath","keyboardEvent","detail","itemToFocus","parentNode","isFirstItem","itemIndex","isLastItem","length","focusPrevItem","focusNextItem","focusFirstItem","focusLastItem","stopPropagation","calciteDropdownSelect","requestedDropdownGroup","selectionMode","flipModifier","enabled","options","fallbackPlacements","destroy","filter","groups","itemsToProcess","groupHeaderHeight","forEach","group","children","index","isNaN","offsetTop","offsetHeight","focusElement","firstItem","lastItem","nextItem","prevItem","indexOf","attributes","isLink","shadowRoot","querySelector"],"mappings":";;;;;;;;;GAIO,MAAMA,EAA2B,iBACjC,MAAMC,EAAQ,CACnBC,gBAAiB,oBCNnB,MAAMC,EAAqB,45FCedC,EAAe,MAC1BC,YAAAC,8LAOEC,KAAKC,OAAS,MAKdD,KAAKE,qBAAuB,MAE5BF,KAAKG,SAAW,MAKhBH,KAAKI,SAAW,EAEhBJ,KAAKK,mBAAqB,WAK1BL,KAAKM,UAAYb,EAEjBO,KAAKO,MAAQ,IAMbP,KAAKQ,cAAgB,GAErBR,KAAKS,KAAO,QAEZT,KAAKU,MAAQ,IAMbV,KAAKW,MAAQ,GACbX,KAAKY,qBAAuB,UAC5BZ,KAAKa,iBAAmBC,EAAe,YAAY,IAAMd,KAAKe,gBAM9Df,KAAKe,YAAc,KACjBf,KAAKgB,sBACLhB,KAAKiB,SAAWC,MAAMC,KAAKnB,KAAKoB,GAAGC,iBAAiB,4BACpDrB,KAAKW,MAAQO,MAAMC,KAAKnB,KAAKoB,GAAGC,iBAAiB,0BACjDrB,KAAKsB,cAEPtB,KAAKuB,qBAAuB,KAC1B,MAAMC,WAAEA,GAAexB,KACvB,GAAIwB,EAAY,CACd,MAAMC,EAAoBzB,KAAK0B,uBAC/BF,EAAWG,MAAMC,UAAYH,EAAoB,EAAI,GAAGA,MAAwB,KAGpFzB,KAAK6B,cAAiBL,IACpBxB,KAAKwB,WAAaA,GAEpBxB,KAAK8B,cAAiBC,IACpB,GAAIA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AAUxD,GAC7B,MAAMuF,EAAWhI,KAAKW,MAAM6G,EAAQ,IAAMxH,KAAKW,MAAMX,KAAKW,MAAMwF,OAAS,GACzEnG,KAAKsD,oBAAoB0E,GAE3BlI,UAAU2C,GACR,OAAOzC,KAAKW,MAAMsH,QAAQxF,GAE5B3C,oBAAoB0D,GAClB,IAAKA,EAAM,CACT,OAEF,MAAMd,EAASc,EAAK0E,WAAWC,OAC3B3E,EAAK4E,WAAWC,cAAc,KAC9B7E,EACJoE,EAAalF","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 DefaultDropdownPlacement = \"bottom-leading\";\nexport const SLOTS = {\n dropdownTrigger: \"dropdown-trigger\"\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/**\n* CSS Custom Properties\n*\n* These properties can be overridden using the component's tag as selector.\n*\n* @prop --calcite-dropdown-width: the width of the dropdown wrapper\n*/\n\n:host {\n display: inline-flex;\n flex: 0 1 auto;\n}\n\n:host([disabled]) {\n pointer-events: none;\n opacity: var(--calcite-ui-opacity-disabled);\n}\n\n:host .calcite-dropdown-wrapper {\n display: block;\n position: absolute;\n z-index: 900;\n transform: scale(0);\n visibility: hidden;\n pointer-events: none;\n}\n\n.calcite-dropdown-wrapper .calcite-popper-anim {\n position: relative;\n z-index: 1;\n transition: var(--calcite-popper-transition);\n visibility: hidden;\n transition-property: transform, visibility, opacity;\n opacity: 0;\n box-shadow: 0 0 16px 0 rgba(0, 0, 0, 0.16);\n border-radius: 0.25rem;\n}\n\n.calcite-dropdown-wrapper[data-popper-placement^=bottom] .calcite-popper-anim {\n transform: translateY(-5px);\n}\n\n.calcite-dropdown-wrapper[data-popper-placement^=top] .calcite-popper-anim {\n transform: translateY(5px);\n}\n\n.calcite-dropdown-wrapper[data-popper-placement^=left] .calcite-popper-anim {\n transform: translateX(5px);\n}\n\n.calcite-dropdown-wrapper[data-popper-placement^=right] .calcite-popper-anim {\n transform: translateX(-5px);\n}\n\n.calcite-dropdown-wrapper[data-popper-placement] .calcite-popper-anim--active {\n opacity: 1;\n visibility: visible;\n transform: translate(0);\n}\n\n:host([active]) .calcite-dropdown-wrapper {\n pointer-events: initial;\n visibility: visible;\n}\n\n:host .calcite-dropdown-content {\n background-color: var(--calcite-ui-foreground-1);\n overflow: hidden;\n overflow-y: auto;\n width: auto;\n max-height: 90vh;\n width: var(--calcite-dropdown-width);\n}\n\n.calcite-dropdown-trigger-container {\n display: flex;\n flex: 1 1 auto;\n position: relative;\n}\n\n:host([width=s]) {\n --calcite-dropdown-width: 12rem;\n}\n\n:host([width=m]) {\n --calcite-dropdown-width: 14rem;\n}\n\n:host([width=l]) {\n --calcite-dropdown-width: 16rem;\n}\n\n:host([scale=s]) {\n --calcite-dropdown-group-padding: 0.5rem 0;\n --calcite-dropdown-item-padding: 0.25rem 0.75rem 0.25rem 1.5rem;\n}\n\n:host([scale=m]) {\n --calcite-dropdown-group-padding: 0.5rem 0;\n --calcite-dropdown-item-padding: 0.5rem 0.75rem 0.5rem 1.5rem;\n}\n\n:host([scale=l]) {\n --calcite-dropdown-group-padding: 0.75rem 0;\n --calcite-dropdown-item-padding: 0.5rem 0.75rem 0.5rem 1.5rem;\n}\n\n:host([scale=s]) .calcite--rtl {\n --calcite-dropdown-item-padding: 0.25rem 1.5rem 0.25rem 0.75rem;\n}\n\n:host([scale=m]) .calcite--rtl {\n --calcite-dropdown-item-padding: 0.5rem 1.5rem 0.5rem 0.75rem;\n}\n\n:host([scale=l]) .calcite--rtl {\n --calcite-dropdown-item-padding: 0.5rem 1.5rem 0.5rem 0.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 { Component, Element, Event, h, Host, Listen, Method, Prop, Watch } from \"@stencil/core\";\nimport { getKey } from \"../../utils/key\";\nimport { focusElement, getElementDir } from \"../../utils/dom\";\nimport { createPopper, CSS as PopperCSS, updatePopper } from \"../../utils/popper\";\nimport { DefaultDropdownPlacement, SLOTS } from \"./resources\";\nimport { CSS_UTILITY } from \"../../utils/resources\";\nimport { createObserver } from \"../../utils/observers\";\n/**\n * @slot - A slot for adding `calcite-dropdown-group`s or `calcite-dropdown-item`s.\n * @slot dropdown-trigger - A slot for the element that triggers the dropdown.\n */\nexport class CalciteDropdown {\n constructor() {\n //--------------------------------------------------------------------------\n //\n // Public Properties\n //\n //--------------------------------------------------------------------------\n /** Opens or closes the dropdown */\n this.active = false;\n /**\n allow the dropdown to remain open after a selection is made\n if the selection-mode of the selected item's containing group is \"none\", the dropdown will always close\n */\n this.disableCloseOnSelect = false;\n /** is the dropdown disabled */\n this.disabled = false;\n /**\n specify the maximum number of calcite-dropdown-items to display before showing the scroller, must be greater than 0 -\n this value does not include groupTitles passed to calcite-dropdown-group\n */\n this.maxItems = 0;\n /** Describes the type of positioning to use for the overlaid content. If your element is in a fixed container, use the 'fixed' value. */\n this.overlayPositioning = \"absolute\";\n /**\n * Determines where the dropdown will be positioned relative to the button.\n * @default \"bottom-leading\"\n */\n this.placement = DefaultDropdownPlacement;\n /** specify the scale of dropdown, defaults to m */\n this.scale = \"m\";\n /**\n * **read-only** The currently selected items\n *\n * @readonly\n */\n this.selectedItems = [];\n /** specify whether the dropdown is opened by hover or click of a trigger element */\n this.type = \"click\";\n /** specify the width of dropdown, defaults to m */\n this.width = \"m\";\n //--------------------------------------------------------------------------\n //\n // Private State/Props\n //\n //--------------------------------------------------------------------------\n this.items = [];\n this.activeTransitionProp = \"opacity\";\n this.mutationObserver = createObserver(\"mutation\", () => this.updateItems());\n //--------------------------------------------------------------------------\n //\n // Private Methods\n //\n //--------------------------------------------------------------------------\n this.updateItems = () => {\n this.updateSelectedItems();\n this.triggers = Array.from(this.el.querySelectorAll(\"[slot=dropdown-trigger]\"));\n this.items = Array.from(this.el.querySelectorAll(\"calcite-dropdown-item\"));\n this.reposition();\n };\n this.setMaxScrollerHeight = () => {\n const { scrollerEl } = this;\n if (scrollerEl) {\n const maxScrollerHeight = this.getMaxScrollerHeight();\n scrollerEl.style.maxHeight = maxScrollerHeight > 0 ? `${maxScrollerHeight}px` : \"\";\n }\n };\n this.setScrollerEl = (scrollerEl) => {\n this.scrollerEl = scrollerEl;\n };\n this.transitionEnd = (event) => {\n if (event.propertyName === this.activeTransitionProp) {\n this.active ? this.calciteDropdownOpen.emit() : this.calciteDropdownClose.emit();\n }\n };\n this.setReferenceEl = (el) => {\n this.referenceEl = el;\n };\n this.setMenuEl = (el) => {\n this.menuEl = el;\n };\n this.keyDownHandler = (e) => {\n const target = e.target;\n const key = getKey(e.key);\n if (this.triggers.includes(target) ||\n this.triggers.some((trigger) => trigger.contains(target))) {\n if (target.nodeName !== \"BUTTON\" && target.nodeName !== \"CALCITE-BUTTON\") {\n switch (key) {\n case \" \":\n case \"Enter\":\n this.openCalciteDropdown();\n break;\n case \"Escape\":\n this.closeCalciteDropdown();\n break;\n }\n }\n else if (this.active && (key === \"Escape\" || (e.shiftKey && key === \"Tab\"))) {\n this.closeCalciteDropdown();\n }\n }\n };\n this.focusOnFirstActiveOrFirstItem = () => {\n this.getFocusableElement(this.items.find((item) => item.active) || this.items[0]);\n };\n this.toggleOpenEnd = () => {\n this.focusOnFirstActiveOrFirstItem();\n this.el.removeEventListener(\"calciteDropdownOpen\", this.toggleOpenEnd);\n };\n this.openCalciteDropdown = () => {\n this.active = !this.active;\n if (this.active) {\n this.el.addEventListener(\"calciteDropdownOpen\", this.toggleOpenEnd);\n }\n };\n }\n activeHandler() {\n this.reposition();\n }\n maxItemsHandler() {\n this.reposition();\n }\n placementHandler() {\n this.reposition();\n }\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n connectedCallback() {\n var _a;\n (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });\n this.createPopper();\n this.updateItems();\n }\n componentDidLoad() {\n this.reposition();\n }\n disconnectedCallback() {\n var _a;\n (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();\n this.destroyPopper();\n }\n render() {\n const { active } = this;\n const dir = getElementDir(this.el);\n return (h(Host, { tabIndex: this.disabled ? -1 : null },\n h(\"div\", { class: { [\"calcite-dropdown-trigger-container\"]: true, [CSS_UTILITY.rtl]: dir === \"rtl\" }, onClick: this.openCalciteDropdown, onKeyDown: this.keyDownHandler, ref: this.setReferenceEl },\n h(\"slot\", { \"aria-expanded\": active.toString(), \"aria-haspopup\": \"true\", name: SLOTS.dropdownTrigger })),\n h(\"div\", { \"aria-hidden\": (!active).toString(), class: \"calcite-dropdown-wrapper\", ref: this.setMenuEl },\n h(\"div\", { class: {\n [\"calcite-dropdown-content\"]: true,\n [PopperCSS.animation]: true,\n [PopperCSS.animationActive]: active\n }, onTransitionEnd: this.transitionEnd, ref: this.setScrollerEl },\n h(\"slot\", null)))));\n }\n //--------------------------------------------------------------------------\n //\n // Public Methods\n //\n //--------------------------------------------------------------------------\n /** Updates the position of the component. */\n async reposition() {\n const { popper, menuEl, placement } = this;\n this.setMaxScrollerHeight();\n const modifiers = this.getModifiers();\n popper\n ? await updatePopper({\n el: menuEl,\n modifiers,\n placement,\n popper\n })\n : this.createPopper();\n }\n closeCalciteDropdownOnClick(e) {\n if (!this.active || e.composedPath().includes(this.el)) {\n return;\n }\n this.closeCalciteDropdown();\n }\n closeCalciteDropdownOnEvent() {\n this.closeCalciteDropdown();\n }\n closeCalciteDropdownOnOpenEvent(e) {\n if (e.composedPath().includes(this.el)) {\n return;\n }\n this.active = false;\n }\n mouseEnterHandler() {\n if (this.type === \"hover\") {\n this.openCalciteDropdown();\n }\n }\n mouseLeaveHandler() {\n if (this.type === \"hover\") {\n this.closeCalciteDropdown();\n }\n }\n calciteDropdownItemKeyEvent(e) {\n const { keyboardEvent } = e.detail;\n // handle edge\n const target = keyboardEvent.target;\n const itemToFocus = target.nodeName !== \"A\" ? target : target.parentNode;\n const isFirstItem = this.itemIndex(itemToFocus) === 0;\n const isLastItem = this.itemIndex(itemToFocus) === this.items.length - 1;\n switch (getKey(keyboardEvent.key)) {\n case \"Tab\":\n if (isLastItem && !keyboardEvent.shiftKey) {\n this.closeCalciteDropdown();\n }\n else if (isFirstItem && keyboardEvent.shiftKey) {\n this.closeCalciteDropdown();\n }\n else if (keyboardEvent.shiftKey) {\n this.focusPrevItem(itemToFocus);\n }\n else {\n this.focusNextItem(itemToFocus);\n }\n break;\n case \"ArrowDown\":\n this.focusNextItem(itemToFocus);\n break;\n case \"ArrowUp\":\n this.focusPrevItem(itemToFocus);\n break;\n case \"Home\":\n this.focusFirstItem();\n break;\n case \"End\":\n this.focusLastItem();\n break;\n }\n e.stopPropagation();\n }\n handleItemSelect(event) {\n this.updateSelectedItems();\n event.stopPropagation();\n this.calciteDropdownSelect.emit();\n if (!this.disableCloseOnSelect ||\n event.detail.requestedDropdownGroup.selectionMode === \"none\") {\n this.closeCalciteDropdown();\n }\n }\n getModifiers() {\n const flipModifier = {\n name: \"flip\",\n enabled: true\n };\n flipModifier.options = {\n fallbackPlacements: [\"top-start\", \"top\", \"top-end\", \"bottom-start\", \"bottom\", \"bottom-end\"]\n };\n return [flipModifier];\n }\n createPopper() {\n this.destroyPopper();\n const { menuEl, referenceEl, placement, overlayPositioning } = this;\n const modifiers = this.getModifiers();\n this.popper = createPopper({\n el: menuEl,\n modifiers,\n overlayPositioning,\n placement,\n referenceEl\n });\n }\n destroyPopper() {\n const { popper } = this;\n if (popper) {\n popper.destroy();\n }\n this.popper = null;\n }\n updateSelectedItems() {\n const items = Array.from(this.el.querySelectorAll(\"calcite-dropdown-item\"));\n this.selectedItems = items.filter((item) => item.active);\n }\n getMaxScrollerHeight() {\n const groups = Array.from(this.el.querySelectorAll(\"calcite-dropdown-group\"));\n const { maxItems } = this;\n let itemsToProcess = 0;\n let maxScrollerHeight = 0;\n let groupHeaderHeight;\n groups.forEach((group) => {\n if (maxItems > 0 && itemsToProcess < maxItems) {\n Array.from(group.children).forEach((item, index) => {\n if (index === 0) {\n if (isNaN(groupHeaderHeight)) {\n groupHeaderHeight = item.offsetTop;\n }\n maxScrollerHeight += groupHeaderHeight;\n }\n if (itemsToProcess < maxItems) {\n maxScrollerHeight += item.offsetHeight;\n itemsToProcess += 1;\n }\n });\n }\n });\n return maxScrollerHeight;\n }\n closeCalciteDropdown() {\n this.active = false;\n focusElement(this.triggers[0]);\n }\n focusFirstItem() {\n const firstItem = this.items[0];\n this.getFocusableElement(firstItem);\n }\n focusLastItem() {\n const lastItem = this.items[this.items.length - 1];\n this.getFocusableElement(lastItem);\n }\n focusNextItem(e) {\n const index = this.itemIndex(e);\n const nextItem = this.items[index + 1] || this.items[0];\n this.getFocusableElement(nextItem);\n }\n focusPrevItem(e) {\n const index = this.itemIndex(e);\n const prevItem = this.items[index - 1] || this.items[this.items.length - 1];\n this.getFocusableElement(prevItem);\n }\n itemIndex(e) {\n return this.items.indexOf(e);\n }\n getFocusableElement(item) {\n if (!item) {\n return;\n }\n const target = item.attributes.isLink\n ? item.shadowRoot.querySelector(\"a\")\n : item;\n focusElement(target);\n }\n static get is() { return \"calcite-dropdown\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"calcite-dropdown.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-dropdown.css\"]\n }; }\n static get properties() { return {\n \"active\": {\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\": \"Opens or closes the dropdown\"\n },\n \"attribute\": \"active\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"disableCloseOnSelect\": {\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\": \"allow the dropdown to remain open after a selection is made\\nif the selection-mode of the selected item's containing group is \\\"none\\\", the dropdown will always close\"\n },\n \"attribute\": \"disable-close-on-select\",\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\": \"is the dropdown disabled\"\n },\n \"attribute\": \"disabled\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"maxItems\": {\n \"type\": \"number\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"number\",\n \"resolved\": \"number\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"specify the maximum number of calcite-dropdown-items to display before showing the scroller, must be greater than 0 -\\nthis value does not include groupTitles passed to calcite-dropdown-group\"\n },\n \"attribute\": \"max-items\",\n \"reflect\": false,\n \"defaultValue\": \"0\"\n },\n \"overlayPositioning\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"OverlayPositioning\",\n \"resolved\": \"\\\"absolute\\\" | \\\"fixed\\\"\",\n \"references\": {\n \"OverlayPositioning\": {\n \"location\": \"import\",\n \"path\": \"../../utils/popper\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Describes the type of positioning to use for the overlaid content. If your element is in a fixed container, use the 'fixed' value.\"\n },\n \"attribute\": \"overlay-positioning\",\n \"reflect\": false,\n \"defaultValue\": \"\\\"absolute\\\"\"\n },\n \"placement\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"DropdownPlacement\",\n \"resolved\": \"\\\"bottom\\\" | \\\"bottom-end\\\" | \\\"bottom-leading\\\" | \\\"bottom-start\\\" | \\\"bottom-trailing\\\" | \\\"top\\\" | \\\"top-end\\\" | \\\"top-leading\\\" | \\\"top-start\\\" | \\\"top-trailing\\\"\",\n \"references\": {\n \"DropdownPlacement\": {\n \"location\": \"import\",\n \"path\": \"./interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"default\",\n \"text\": \"\\\"bottom-leading\\\"\"\n }],\n \"text\": \"Determines where the dropdown will be positioned relative to the button.\"\n },\n \"attribute\": \"placement\",\n \"reflect\": true,\n \"defaultValue\": \"DefaultDropdownPlacement\"\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 dropdown, defaults to m\"\n },\n \"attribute\": \"scale\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"m\\\"\"\n },\n \"selectedItems\": {\n \"type\": \"unknown\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"HTMLCalciteDropdownItemElement[]\",\n \"resolved\": \"HTMLCalciteDropdownItemElement[]\",\n \"references\": {\n \"HTMLCalciteDropdownItemElement\": {\n \"location\": \"global\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"readonly\",\n \"text\": undefined\n }],\n \"text\": \"**read-only** The currently selected items\"\n },\n \"defaultValue\": \"[]\"\n },\n \"type\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"\\\"hover\\\" | \\\"click\\\"\",\n \"resolved\": \"\\\"click\\\" | \\\"hover\\\"\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"specify whether the dropdown is opened by hover or click of a trigger element\"\n },\n \"attribute\": \"type\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"click\\\"\"\n },\n \"width\": {\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 width of dropdown, defaults to m\"\n },\n \"attribute\": \"width\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"m\\\"\"\n }\n }; }\n static get events() { return [{\n \"method\": \"calciteDropdownSelect\",\n \"name\": \"calciteDropdownSelect\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"fires when a dropdown item has been selected or deselected *\"\n },\n \"complexType\": {\n \"original\": \"void\",\n \"resolved\": \"void\",\n \"references\": {}\n }\n }, {\n \"method\": \"calciteDropdownOpen\",\n \"name\": \"calciteDropdownOpen\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"fires when a dropdown has been opened *\"\n },\n \"complexType\": {\n \"original\": \"void\",\n \"resolved\": \"void\",\n \"references\": {}\n }\n }, {\n \"method\": \"calciteDropdownClose\",\n \"name\": \"calciteDropdownClose\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"fires when a dropdown has been closed *\"\n },\n \"complexType\": {\n \"original\": \"void\",\n \"resolved\": \"void\",\n \"references\": {}\n }\n }]; }\n static get methods() { return {\n \"reposition\": {\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\": \"Updates the position of the component.\",\n \"tags\": []\n }\n }\n }; }\n static get elementRef() { return \"el\"; }\n static get watchers() { return [{\n \"propName\": \"active\",\n \"methodName\": \"activeHandler\"\n }, {\n \"propName\": \"maxItems\",\n \"methodName\": \"maxItemsHandler\"\n }, {\n \"propName\": \"placement\",\n \"methodName\": \"placementHandler\"\n }]; }\n static get listeners() { return [{\n \"name\": \"click\",\n \"method\": \"closeCalciteDropdownOnClick\",\n \"target\": \"window\",\n \"capture\": false,\n \"passive\": false\n }, {\n \"name\": \"calciteDropdownCloseRequest\",\n \"method\": \"closeCalciteDropdownOnEvent\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }, {\n \"name\": \"calciteDropdownOpen\",\n \"method\": \"closeCalciteDropdownOnOpenEvent\",\n \"target\": \"window\",\n \"capture\": false,\n \"passive\": false\n }, {\n \"name\": \"mouseenter\",\n \"method\": \"mouseEnterHandler\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": true\n }, {\n \"name\": \"mouseleave\",\n \"method\": \"mouseLeaveHandler\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": true\n }, {\n \"name\": \"calciteDropdownItemKeyEvent\",\n \"method\": \"calciteDropdownItemKeyEvent\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }, {\n \"name\": \"calciteDropdownItemSelect\",\n \"method\": \"handleItemSelect\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }]; }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/components/calcite-tip-manager/calcite-tip-manager.css?tag=calcite-tip-manager&encapsulation=shadow","node_modules/@esri/calcite-components/dist/collection/components/calcite-tip-manager/calcite-tip-manager.js"],"names":["calciteTipManagerCss","CalciteTipManager","[object Object]","hostRef","this","closed","mutationObserver","createObserver","setUpTips","hideTipManager","calciteTipManagerToggle","emit","previousClicked","previousTip","nextClicked","nextTip","tipManagerKeyUpHandler","event","target","container","key","preventDefault","selectedIndex","total","storeContainerRef","el","direction","showSelectedTip","updateGroupTitle","_a","observe","childList","subtree","disconnect","nextIndex","previousIndex","tips","Array","from","querySelectorAll","length","selectedTip","querySelector","indexOf","forEach","tip","nonDismissible","index","isSelected","selected","hidden","tipParent","closest","groupTitle","intlDefaultTitle","TEXT","defaultGroupTitle","dir","getElementDir","intlNext","intlPrevious","intlPaginationLabel","nextLabel","next","previousLabel","previous","paginationLabel","defaultPaginationLabel","h","class","CSS","pagination","pagePrevious","icon","ICONS","chevronLeft","chevronRight","onClick","scale","text","pagePosition","pageNext","headingLevel","intlClose","closeLabel","close","aria-hidden","toString","onKeyUp","ref","tabIndex","header","CalciteHeading","heading","level","HEADING_LEVEL","tipContainer","tipContainerAdvancing","tipContainerRetreating","renderPagination"],"mappings":";;;;;sPAAA,MAAMA,EAAuB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kB,CAAEC,MAAOC,EAAIW,SAAUR,KAAMhB,IAAQ,MAAQiB,EAAME,aAAeF,EAAMC,YAAaE,QAASzE,KAAKU,YAAagE,MAAO,IAAKC,KAAMjB,KAAiB,KAE3K5D,SACE,MAAMG,OAAEA,EAAMqB,UAAEA,EAASwD,aAAEA,EAAY7B,WAAEA,EAAU/B,cAAEA,EAAa6D,UAAEA,EAAS5D,MAAEA,GAAUnB,KACzF,MAAMgF,EAAaD,GAAa5B,EAAK8B,MACrC,GAAI9D,IAAU,EAAG,CACf,OAAO,KAET,OAAQ6C,EAAE,UAAW,CAAEkB,cAAejF,EAAOkF,WAAYlB,MAAOC,EAAInD,UAAW+B,OAAQ7C,EAAQmF,QAASpF,KAAKY,uBAAwByE,IAAKrF,KAAKoB,kBAAmBkE,SAAU,GAC1KtB,EAAE,SAAU,CAAEC,MAAOC,EAAIqB,QACvBvB,EAAEwB,EAAgB,CAAEvB,MAAOC,EAAIuB,QAASC,MAAOZ,GAAgBa,GAAiB1C,GAChFe,EAAE,iBAAkB,CAAEC,MAAOC,EAAIe,MAAOR,QAASzE,KAAKK,eAAgBqE,MAAO,IAAKC,KAAMK,GACtFhB,EAAE,eAAgB,CAAEK,KAAMC,EAAMW,MAAOP,MAAO,QAClDV,EAAE,MAAO,CAAEC,MAAO,CACdnE,CAACoE,EAAI0B,cAAe,KACpB9F,CAACoE,EAAI2B,wBAAyB5F,GAAUqB,IAAc,YACtDxB,CAACoE,EAAI4B,yBAA0B7F,GAAUqB,IAAc,cACtDN,IAAKE,EAAeoE,SAAU,GACjCtB,EAAE,OAAQ,OACZhE,KAAK+F","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-tip-manager-height: the maximum height of the tip-manager\n* @prop --calcite-tip-max-width: the maximum width of a slotted tip within tip-manager\n*/\n\n:host {\n display: block;\n box-sizing: border-box;\n background-color: var(--calcite-ui-foreground-1);\n color: var(--calcite-ui-text-2);\n font-size: var(--calcite-font-size--1);\n line-height: 1rem;\n --calcite-tip-manager-height: 19vh;\n}\n\n:host * {\n box-sizing: border-box;\n}\n\n:host([closed]) {\n display: none;\n}\n\n/* Shared styles for header elements */\n\n.header {\n margin: 0;\n display: flex;\n align-items: center;\n align-content: space-between;\n color: var(--calcite-ui-text-2);\n fill: ;\n}\n\n.heading {\n font-weight: var(--calcite-font-weight-medium);\n margin: 0;\n padding: 0;\n}\n\n.header .heading {\n flex: 1 1 auto;\n padding: 0.5rem;\n}\n\nh1.heading {\n font-size: var(--calcite-font-size-2);\n line-height: 1.5rem;\n}\n\nh2.heading {\n font-size: var(--calcite-font-size-1);\n line-height: 1.5rem;\n}\n\nh3.heading {\n font-size: var(--calcite-font-size-0);\n line-height: 1.25rem;\n}\n\nh4.heading,\nh5.heading {\n font-size: var(--calcite-font-size--1);\n line-height: 1rem;\n}\n\n.header {\n border-width: 0;\n border-bottom-width: 1px;\n border-style: solid;\n border-color: var(--calcite-ui-border-3);\n padding-left: 1rem;\n padding-right: 0;\n padding-top: 0;\n padding-bottom: 0;\n}\n\n.header h2.heading {\n font-weight: var(--calcite-font-weight-bold);\n color: var(--calcite-ui-text-1);\n font-size: var(--calcite-font-size-1);\n line-height: 1.5rem;\n padding: 0;\n}\n\n.container {\n overflow: hidden;\n position: relative;\n outline-offset: 0;\n outline-color: transparent;\n transition: outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;\n min-height: 150px;\n}\n\n.container:focus {\n outline: 2px solid var(--calcite-ui-brand);\n outline-offset: 2px;\n}\n\n.tip-container {\n margin-top: 0;\n overflow: auto;\n display: flex;\n justify-content: center;\n align-items: flex-start;\n outline-offset: 0;\n outline-color: transparent;\n transition: outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;\n margin-top: 1px;\n animation-name: none;\n animation-duration: 150ms;\n height: var(--calcite-tip-manager-height);\n}\n\n.tip-container:focus {\n outline: 2px solid var(--calcite-ui-brand);\n outline-offset: 2px;\n}\n\n::slotted(calcite-tip) {\n border-style: none;\n padding: 0.75rem;\n max-width: var(--calcite-tip-max-width);\n}\n\n.tip-container--advancing {\n animation-name: tip-advance;\n}\n\n.tip-container--retreating {\n animation-name: tip-retreat;\n}\n\n/* Pagination Styles*/\n\n.pagination {\n display: flex;\n align-items: center;\n justify-content: center;\n padding-top: 0.75rem;\n padding-bottom: 0.5rem;\n padding-left: 0;\n padding-right: 0;\n}\n\n.page-position {\n font-size: var(--calcite-font-size--2);\n line-height: 1rem;\n margin-top: 0;\n margin-bottom: 0;\n margin-left: 0.5rem;\n margin-right: 0.5rem;\n}\n\n/* RTL */\n\n:host-context([dir=rtl]) .header.header {\n padding-right: 1rem;\n padding-left: 0;\n padding-top: 0;\n padding-bottom: 0;\n}\n\n/* @keyframes*/\n\n@keyframes tip-advance {\n 0% {\n opacity: 0;\n transform: translate3d(50px, 0, 0) scale(0.99);\n }\n\n 100% {\n opacity: 1;\n transform: translate3d(0, 0, 0) scale(1);\n }\n}\n\n@keyframes tip-retreat {\n 0% {\n opacity: 0;\n transform: translate3d(-50px, 0, 0) scale(0.99);\n }\n\n 100% {\n opacity: 1;\n transform: translate3d(0, 0, 0) scale(1);\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 { Component, Element, Event, Method, Prop, State, Watch, h } from \"@stencil/core\";\nimport { CSS, ICONS, TEXT, HEADING_LEVEL } from \"./resources\";\nimport { getElementDir } from \"../../utils/dom\";\nimport { CalciteHeading } from \"../functional/CalciteHeading\";\nimport { createObserver } from \"../../utils/observers\";\n/**\n * @slot - A slot for adding `calcite-tip`s.\n */\nexport class CalciteTipManager {\n constructor() {\n // --------------------------------------------------------------------------\n //\n // Properties\n //\n // --------------------------------------------------------------------------\n /**\n * Alternate text for closing the `calcite-tip-manager`.\n */\n this.closed = false;\n this.mutationObserver = createObserver(\"mutation\", () => this.setUpTips());\n this.hideTipManager = () => {\n this.closed = true;\n this.calciteTipManagerToggle.emit();\n };\n this.previousClicked = () => {\n this.previousTip();\n };\n this.nextClicked = () => {\n this.nextTip();\n };\n this.tipManagerKeyUpHandler = (event) => {\n if (event.target !== this.container) {\n return;\n }\n switch (event.key) {\n case \"ArrowRight\":\n event.preventDefault();\n this.nextTip();\n break;\n case \"ArrowLeft\":\n event.preventDefault();\n this.previousTip();\n break;\n case \"Home\":\n event.preventDefault();\n this.selectedIndex = 0;\n break;\n case \"End\":\n event.preventDefault();\n this.selectedIndex = this.total - 1;\n break;\n }\n };\n this.storeContainerRef = (el) => {\n this.container = el;\n };\n }\n closedChangeHandler() {\n this.direction = null;\n this.calciteTipManagerToggle.emit();\n }\n selectedChangeHandler() {\n this.showSelectedTip();\n this.updateGroupTitle();\n }\n // --------------------------------------------------------------------------\n //\n // Lifecycle\n //\n // --------------------------------------------------------------------------\n connectedCallback() {\n var _a;\n this.setUpTips();\n (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });\n }\n disconnectedCallback() {\n var _a;\n (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();\n }\n // --------------------------------------------------------------------------\n //\n // Public Methods\n //\n // --------------------------------------------------------------------------\n /** Selects the next tip to display */\n async nextTip() {\n this.direction = \"advancing\";\n const nextIndex = this.selectedIndex + 1;\n this.selectedIndex = (nextIndex + this.total) % this.total;\n }\n /** Selects the previous tip to display */\n async previousTip() {\n this.direction = \"retreating\";\n const previousIndex = this.selectedIndex - 1;\n this.selectedIndex = (previousIndex + this.total) % this.total;\n }\n // --------------------------------------------------------------------------\n //\n // Private Methods\n //\n // --------------------------------------------------------------------------\n setUpTips() {\n const tips = Array.from(this.el.querySelectorAll(\"calcite-tip\"));\n this.total = tips.length;\n if (this.total === 0) {\n return;\n }\n const selectedTip = this.el.querySelector(\"calcite-tip[selected]\");\n this.tips = tips;\n this.selectedIndex = selectedTip ? tips.indexOf(selectedTip) : 0;\n tips.forEach((tip) => {\n tip.nonDismissible = true;\n });\n this.showSelectedTip();\n this.updateGroupTitle();\n }\n showSelectedTip() {\n this.tips.forEach((tip, index) => {\n const isSelected = this.selectedIndex === index;\n tip.selected = isSelected;\n tip.hidden = !isSelected;\n });\n }\n updateGroupTitle() {\n const selectedTip = this.tips[this.selectedIndex];\n const tipParent = selectedTip.closest(\"calcite-tip-group\");\n this.groupTitle = (tipParent === null || tipParent === void 0 ? void 0 : tipParent.groupTitle) || this.intlDefaultTitle || TEXT.defaultGroupTitle;\n }\n // --------------------------------------------------------------------------\n //\n // Render Methods\n //\n // --------------------------------------------------------------------------\n renderPagination() {\n const dir = getElementDir(this.el);\n const { selectedIndex, tips, total, intlNext, intlPrevious, intlPaginationLabel } = this;\n const nextLabel = intlNext || TEXT.next;\n const previousLabel = intlPrevious || TEXT.previous;\n const paginationLabel = intlPaginationLabel || TEXT.defaultPaginationLabel;\n return tips.length > 1 ? (h(\"footer\", { class: CSS.pagination },\n h(\"calcite-action\", { class: CSS.pagePrevious, icon: dir === \"ltr\" ? ICONS.chevronLeft : ICONS.chevronRight, onClick: this.previousClicked, scale: \"m\", text: previousLabel }),\n h(\"span\", { class: CSS.pagePosition }, `${paginationLabel} ${selectedIndex + 1}/${total}`),\n h(\"calcite-action\", { class: CSS.pageNext, icon: dir === \"ltr\" ? ICONS.chevronRight : ICONS.chevronLeft, onClick: this.nextClicked, scale: \"m\", text: nextLabel }))) : null;\n }\n render() {\n const { closed, direction, headingLevel, groupTitle, selectedIndex, intlClose, total } = this;\n const closeLabel = intlClose || TEXT.close;\n if (total === 0) {\n return null;\n }\n return (h(\"section\", { \"aria-hidden\": closed.toString(), class: CSS.container, hidden: closed, onKeyUp: this.tipManagerKeyUpHandler, ref: this.storeContainerRef, tabIndex: 0 },\n h(\"header\", { class: CSS.header },\n h(CalciteHeading, { class: CSS.heading, level: headingLevel || HEADING_LEVEL }, groupTitle),\n h(\"calcite-action\", { class: CSS.close, onClick: this.hideTipManager, scale: \"m\", text: closeLabel },\n h(\"calcite-icon\", { icon: ICONS.close, scale: \"m\" }))),\n h(\"div\", { class: {\n [CSS.tipContainer]: true,\n [CSS.tipContainerAdvancing]: !closed && direction === \"advancing\",\n [CSS.tipContainerRetreating]: !closed && direction === \"retreating\"\n }, key: selectedIndex, tabIndex: 0 },\n h(\"slot\", null)),\n this.renderPagination()));\n }\n static get is() { return \"calcite-tip-manager\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"./calcite-tip-manager.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-tip-manager.css\"]\n }; }\n static get properties() { return {\n \"closed\": {\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\": \"Alternate text for closing the `calcite-tip-manager`.\"\n },\n \"attribute\": \"closed\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"headingLevel\": {\n \"type\": \"number\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"HeadingLevel\",\n \"resolved\": \"1 | 2 | 3 | 4 | 5 | 6\",\n \"references\": {\n \"HeadingLevel\": {\n \"location\": \"import\",\n \"path\": \"../functional/CalciteHeading\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Number at which section headings should start for this component.\"\n },\n \"attribute\": \"heading-level\",\n \"reflect\": false\n },\n \"intlClose\": {\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\": \"Alternate text for closing the tip.\"\n },\n \"attribute\": \"intl-close\",\n \"reflect\": false\n },\n \"intlDefaultTitle\": {\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 default group title for the `calcite-tip-manager`.\"\n },\n \"attribute\": \"intl-default-title\",\n \"reflect\": false\n },\n \"intlNext\": {\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\": \"Alternate text for navigating to the next tip.\"\n },\n \"attribute\": \"intl-next\",\n \"reflect\": false\n },\n \"intlPaginationLabel\": {\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\": \"Label that appears on hover of pagination icon.\"\n },\n \"attribute\": \"intl-pagination-label\",\n \"reflect\": false\n },\n \"intlPrevious\": {\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\": \"Alternate text for navigating to the previous tip.\"\n },\n \"attribute\": \"intl-previous\",\n \"reflect\": false\n }\n }; }\n static get states() { return {\n \"selectedIndex\": {},\n \"tips\": {},\n \"total\": {},\n \"direction\": {},\n \"groupTitle\": {}\n }; }\n static get events() { return [{\n \"method\": \"calciteTipManagerToggle\",\n \"name\": \"calciteTipManagerToggle\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Emitted when the `calcite-tip-manager` has been toggled open or closed.\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }]; }\n static get methods() { return {\n \"nextTip\": {\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\": \"Selects the next tip to display\",\n \"tags\": []\n }\n },\n \"previousTip\": {\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\": \"Selects the previous tip to display\",\n \"tags\": []\n }\n }\n }; }\n static get elementRef() { return \"el\"; }\n static get watchers() { return [{\n \"propName\": \"closed\",\n \"methodName\": \"closedChangeHandler\"\n }, {\n \"propName\": \"selectedIndex\",\n \"methodName\": \"selectedChangeHandler\"\n }]; }\n}\n"]}
@@ -1,7 +0,0 @@
1
- /*!
2
- * Copyright 2021 Esri
3
- * Licensed under the Apache License, Version 2.0
4
- * http://www.apache.org/licenses/LICENSE-2.0
5
- */
6
- import{r as t,c as e,h as i,F as s,g as n,f as a,H as o}from"./p-2e1cd889.js";import{C as r,I as l,S as c}from"./p-f780039d.js";import{b as h,f as p,q as d,a as m,C as f}from"./p-e762b2d1.js";import{g as u}from"./p-3e67ed97.js";import{g as v}from"./p-ec178ea9.js";import{c as g}from"./p-a10dc180.js";import{T as y,A as b,P as x,a as w,C as k,H as E}from"./p-e4edca3b.js";import{d as _,u as D,c as H,C as I}from"./p-fc1c8168.js";import{C}from"./p-73e2d13f.js";import{T as P,a as A}from"./p-af9be2ca.js";import{g as T}from"./p-7df393df.js";const M="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:flex;flex-direction:column;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size-1)}.menu ::slotted(calcite-action){display:flex;outline-offset:0;outline-color:transparent;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;margin:0.125rem}::slotted(calcite-action[active]){outline:2px solid var(--calcite-ui-brand);outline-offset:2px;outline-offset:0px}.default-trigger{align-self:stretch;flex:0 1 auto;height:100%;position:relative}slot[name=trigger]::slotted(calcite-action),calcite-action::slotted([slot=trigger]){align-self:stretch;flex:0 1 auto;height:100%;position:relative}.menu{flex-direction:column;flex-wrap:nowrap;outline:2px solid transparent;outline-offset:2px}";const j=["ArrowUp","ArrowDown"];const O=["ArrowUp","ArrowDown","End","Home"];let $=class{constructor(i){t(this,i);this.calciteActionMenuOpenChange=e(this,"calciteActionMenuOpenChange",7);this.expanded=false;this.open=false;this.overlayPositioning="absolute";this.placement="auto";this.actionElements=[];this.mutationObserver=g("mutation",(()=>this.getActions()));this.guid=`calcite-action-menu-${v()}`;this.menuId=`${this.guid}-menu`;this.menuButtonId=`${this.guid}-menu-button`;this.activeMenuItemIndex=-1;this.connectMenuButtonEl=()=>{const{el:t,menuButtonId:e,menuId:i,open:s,label:n}=this;const a=h(t,c.trigger)||this.defaultMenuButtonEl;if(this.menuButtonEl===a){return}this.disconnectMenuButtonEl();this.menuButtonEl=a;this.setTooltipReferenceElement();if(!a){return}a.active=s;a.setAttribute("aria-controls",i);a.setAttribute("aria-expanded",s.toString());a.setAttribute("aria-haspopup","true");if(!a.id){a.id=e}if(!a.label){a.label=n}if(!a.text){a.text=n}a.addEventListener("click",this.menuButtonClick);a.addEventListener("keydown",this.menuButtonKeyDown);a.addEventListener("keyup",this.menuButtonKeyUp)};this.disconnectMenuButtonEl=()=>{const{menuButtonEl:t}=this;if(!t){return}t.removeEventListener("click",this.menuButtonClick);t.removeEventListener("keydown",this.menuButtonKeyDown);t.removeEventListener("keyup",this.menuButtonKeyUp)};this.setDefaultMenuButtonEl=t=>{this.defaultMenuButtonEl=t;this.connectMenuButtonEl()};this.handleCalciteActionClick=()=>{this.open=false;this.setFocus()};this.menuButtonClick=()=>{this.toggleOpen()};this.setTooltipReferenceElement=()=>{const{el:t,expanded:e,menuButtonEl:i}=this;const s=h(t,c.tooltip);const n=(s===null||s===void 0?void 0:s.tagName)==="SLOT"?s.assignedElements()[0]:s;if((n===null||n===void 0?void 0:n.tagName)==="CALCITE-TOOLTIP"){n.referenceElement=!e?i:null}};this.updateAction=(t,e)=>{const{guid:i,activeMenuItemIndex:s}=this;const n=`${i}-action-${e}`;t.tabIndex=-1;t.setAttribute("role","menuitem");if(!t.id){t.id=n}t.active=e===s};this.updateActions=t=>{t===null||t===void 0?void 0:t.forEach(this.updateAction)};this.getActions=()=>{const{el:t}=this;const e=this.getAssignedElements().filter((t=>t.tagName==="CALCITE-ACTION"&&t.slot!=="trigger"));const i=e.length?e:Array.from(t.querySelectorAll("calcite-action:not([slot=trigger])"));this.updateActions(i);this.actionElements=i;this.connectMenuButtonEl()};this.menuButtonKeyUp=t=>{const{key:e}=t;const{actionElements:i}=this;if(!this.isValidKey(e,j)){return}t.preventDefault();if(!i.length){return}this.toggleOpen(true);this.handleActionNavigation(e,i)};this.menuButtonKeyDown=t=>{const{key:e}=t;if(!this.isValidKey(e,j)){return}t.preventDefault()};this.menuActionsContainerKeyDown=t=>{const{key:e}=t;const{actionElements:i,activeMenuItemIndex:s}=this;if(e==="Tab"){this.open=false;return}if(e===" "||e==="Enter"){t.preventDefault();const e=i[s];e?e.click():this.toggleOpen(false);return}if(this.isValidKey(e,O)){t.preventDefault()}};this.menuActionsContainerKeyUp=t=>{const{key:e}=t;const{actionElements:i}=this;if(e==="Escape"){this.toggleOpen(false);return}if(!this.isValidKey(e,O)){return}t.preventDefault();if(!i.length){return}this.handleActionNavigation(e,i)};this.handleActionNavigation=(t,e)=>{const i=this.activeMenuItemIndex;if(t==="Home"){this.activeMenuItemIndex=0}if(t==="End"){this.activeMenuItemIndex=e.length-1}if(t==="ArrowUp"){this.activeMenuItemIndex=u(Math.max(i-1,-1),e.length)}if(t==="ArrowDown"){this.activeMenuItemIndex=u(i+1,e.length)}};this.toggleOpenEnd=()=>{this.setFocus();this.el.removeEventListener("calcitePopoverOpen",this.toggleOpenEnd)};this.toggleOpen=(t=!this.open)=>{this.el.addEventListener("calcitePopoverOpen",this.toggleOpenEnd);this.open=t}}connectedCallback(){var t;(t=this.mutationObserver)===null||t===void 0?void 0:t.observe(this.el,{childList:true,subtree:true});this.getActions()}disconnectedCallback(){var t;(t=this.mutationObserver)===null||t===void 0?void 0:t.disconnect();this.disconnectMenuButtonEl()}expandedHandler(){this.open=false;this.setTooltipReferenceElement()}openHandler(t){this.activeMenuItemIndex=this.open?0:-1;if(this.menuButtonEl){this.menuButtonEl.active=t}this.calciteActionMenuOpenChange.emit(t)}closeCalciteActionMenuOnClick(t){const e=t.composedPath();if(e.includes(this.el)){return}this.open=false}activeMenuItemIndexHandler(){this.updateActions(this.actionElements)}async setFocus(){p(this.open?this.menuEl:this.menuButtonEl)}renderMenuButton(){const{el:t,label:e,scale:s}=this;const n=i("slot",{name:c.trigger},i("calcite-action",{class:r.defaultTrigger,icon:l.menu,ref:this.setDefaultMenuButtonEl,scale:s,text:e}));return h(t,c.tooltip)?i("calcite-tooltip-manager",null,n):n}renderMenuItems(){const{actionElements:t,activeMenuItemIndex:e,open:s,menuId:n,menuButtonEl:a,label:o,placement:l,overlayPositioning:c}=this;const h=t[e];const p=(h===null||h===void 0?void 0:h.id)||null;return i("calcite-popover",{disablePointer:true,label:o,offsetDistance:0,open:s,overlayPositioning:c,placement:l,referenceElement:a},i("div",{"aria-activedescendant":p,"aria-labelledby":a===null||a===void 0?void 0:a.id,class:r.menu,id:n,onClick:this.handleCalciteActionClick,onKeyDown:this.menuActionsContainerKeyDown,onKeyUp:this.menuActionsContainerKeyUp,ref:t=>this.menuEl=t,role:"menu",tabIndex:-1},i("slot",null)))}render(){return i(s,null,this.renderMenuButton(),this.renderMenuItems(),i("slot",{name:c.tooltip}))}getAssignedElements(){return Array.from(this.el.querySelectorAll("slot")).map((t=>t.assignedElements({flatten:true}))).reduce(((t,e)=>t.concat(e)),[])}isValidKey(t,e){return!!e.find((e=>e===t))}get el(){return n(this)}static get watchers(){return{expanded:["expandedHandler"],open:["openHandler"],activeMenuItemIndex:["activeMenuItemIndexHandler"]}}};$.style=M;const L='@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:block;position:absolute;z-index:900;transform:scale(0)}.calcite-popper-anim{position:relative;z-index:1;transition:var(--calcite-popper-transition);visibility:hidden;transition-property:transform, visibility, opacity;opacity:0;box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}:host([data-popper-placement^=bottom]) .calcite-popper-anim{transform:translateY(-5px)}:host([data-popper-placement^=top]) .calcite-popper-anim{transform:translateY(5px)}:host([data-popper-placement^=left]) .calcite-popper-anim{transform:translateX(5px)}:host([data-popper-placement^=right]) .calcite-popper-anim{transform:translateX(-5px)}:host([data-popper-placement]) .calcite-popper-anim--active{opacity:1;visibility:visible;transform:translate(0)}.arrow,.arrow::before{position:absolute;width:8px;height:8px;z-index:-1}.arrow::before{content:"";box-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);transform:rotate(45deg);background:var(--calcite-ui-foreground-1)}:host([data-popper-placement^=top]) .arrow{bottom:-4px}:host([data-popper-placement^=bottom]) .arrow{top:-4px}:host([data-popper-placement^=left]) .arrow{right:-4px}:host([data-popper-placement^=right]) .arrow{left:-4px}:host{pointer-events:none}:host([open]){pointer-events:initial}.calcite-popper-anim{background-color:var(--calcite-ui-foreground-1);border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);border-radius:0.25rem}.arrow::before{outline:1px solid var(--calcite-ui-border-3)}.header{border-width:0;border-bottom-width:1px;border-bottom-color:var(--calcite-ui-border-3);border-style:solid;display:flex;flex:1 1 auto;align-items:stretch;background-color:var(--calcite-ui-foreground-1);justify-content:flex-start}.heading{display:block;flex:1 1 auto;font-weight:var(--calcite-font-weight-medium);margin:0;padding-left:1rem;padding-right:1rem;padding-top:0.75rem;padding-bottom:0.75rem;align-self:center;color:var(--calcite-ui-text-1);font-size:var(--calcite-font-size-0);line-height:1.375;white-space:normal;word-wrap:break-word;word-break:break-word}.container{background-color:var(--calcite-ui-foreground-1);position:relative;display:flex;overflow:hidden;flex-wrap:nowrap;flex-direction:row;height:100%;color:var(--calcite-ui-text-1);border-radius:0.25rem}.container.has-header{flex-direction:column}.content{display:flex;flex-direction:column;flex-wrap:nowrap;align-self:center;height:100%;width:100%}.calcite--rtl .close-button{border-radius:0.25rem 0 0 0.25rem}::slotted(calcite-panel),::slotted(calcite-flow){height:100%}';let z=class{constructor(i){t(this,i);this.calcitePopoverClose=e(this,"calcitePopoverClose",7);this.calcitePopoverOpen=e(this,"calcitePopoverOpen",7);this.closeButton=false;this.dismissible=false;this.disableFlip=false;this.disablePointer=false;this.offsetDistance=_;this.offsetSkidding=0;this.open=false;this.overlayPositioning="absolute";this.placement="auto";this.intlClose=y.close;this.guid=`calcite-popover-${v()}`;this.activeTransitionProp="opacity";this.setUpReferenceElement=()=>{this.removeReferences();this.effectiveReferenceElement=this.getReferenceElement();const{el:t,referenceElement:e,effectiveReferenceElement:i}=this;if(e&&!i){console.warn(`${t.tagName}: reference-element id "${e}" was not found.`,{el:t})}this.addReferences();this.createPopper()};this.getId=()=>this.el.id||this.guid;this.setExpandedAttr=()=>{const{effectiveReferenceElement:t,open:e}=this;if(!t){return}t.setAttribute(b,e.toString())};this.addReferences=()=>{const{effectiveReferenceElement:t}=this;if(!t){return}const e=this.getId();t.setAttribute(x,e);t.setAttribute(w,e);this.setExpandedAttr()};this.removeReferences=()=>{const{effectiveReferenceElement:t}=this;if(!t){return}t.removeAttribute(x);t.removeAttribute(w);t.removeAttribute(b)};this.hide=()=>{this.open=false};this.transitionEnd=t=>{if(t.propertyName===this.activeTransitionProp){this.open?this.calcitePopoverOpen.emit():this.calcitePopoverClose.emit()}}}offsetDistanceOffsetHandler(){this.reposition()}offsetSkiddingHandler(){this.reposition()}openHandler(){this.reposition();this.setExpandedAttr()}placementHandler(){this.reposition()}referenceElementHandler(){this.setUpReferenceElement()}componentWillLoad(){this.setUpReferenceElement()}componentDidLoad(){this.reposition()}disconnectedCallback(){this.removeReferences();this.destroyPopper()}async reposition(){const{popper:t,el:e,placement:i}=this;const s=this.getModifiers();t?await D({el:e,modifiers:s,placement:i,popper:t}):this.createPopper()}async setFocus(t){var e;const{closeButtonEl:i}=this;if(t==="close-button"&&i){a(i);i.setFocus();return}(e=this.el)===null||e===void 0?void 0:e.focus()}async toggle(t=!this.open){this.open=t}getReferenceElement(){const{referenceElement:t,el:e}=this;return(typeof t==="string"?d(e,`#${t}`):t)||null}getModifiers(){const{arrowEl:t,flipPlacements:e,disableFlip:i,disablePointer:s,offsetDistance:n,offsetSkidding:a}=this;const o={name:"flip",enabled:!i};if(e){o.options={fallbackPlacements:e}}const r={name:"arrow",enabled:!s};if(t){r.options={element:t}}const l={name:"offset",enabled:true,options:{offset:[a,n]}};return[r,o,l]}createPopper(){this.destroyPopper();const{el:t,placement:e,effectiveReferenceElement:i,overlayPositioning:s}=this;const n=this.getModifiers();this.popper=H({el:t,modifiers:n,overlayPositioning:s,placement:e,referenceEl:i})}destroyPopper(){const{popper:t}=this;if(t){t.destroy()}this.popper=null}renderCloseButton(){const{dismissible:t,closeButton:e,intlClose:s}=this;return t||e?i("calcite-action",{class:k.closeButton,onClick:this.hide,ref:t=>this.closeButtonEl=t,text:s},i("calcite-icon",{icon:"x",scale:"m"})):null}renderHeader(){const{heading:t,headingLevel:e}=this;const s=t?i(C,{class:k.heading,level:e||E},t):null;return s?i("div",{class:k.header},s,this.renderCloseButton()):null}render(){const{effectiveReferenceElement:t,el:e,heading:s,label:n,open:a,disablePointer:r}=this;const l=m(e)==="rtl";const c=t&&a;const h=!c;const p=!r?i("div",{class:k.arrow,ref:t=>this.arrowEl=t}):null;return i(o,{"aria-hidden":h.toString(),"aria-label":n,"calcite-hydrated-hidden":h,id:this.getId(),role:"dialog"},i("div",{class:{[f.rtl]:l,[I.animation]:true,[I.animationActive]:c},onTransitionEnd:this.transitionEnd},p,i("div",{class:{[k.hasHeader]:!!s,[k.container]:true}},this.renderHeader(),i("div",{class:k.content},i("slot",null)),!s?this.renderCloseButton():null)))}get el(){return n(this)}static get watchers(){return{offsetDistance:["offsetDistanceOffsetHandler"],offsetSkidding:["offsetSkiddingHandler"],open:["openHandler"],placement:["placementHandler"],referenceElement:["referenceElementHandler"]}}};z.style=L;const B="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:block}";let S=class{constructor(e){t(this,e);this.hoverTimeouts=new WeakMap;this.selector=`[${P}]`;this.queryTooltip=t=>{var e;const{selector:i,el:s}=this;const n=(e=t.closest(i))===null||e===void 0?void 0:e.getAttribute(P);return d(s,`#${n}`)};this.clearHoverTimeout=t=>{const{hoverTimeouts:e}=this;if(e.has(t)){window.clearTimeout(e.get(t));e.delete(t)}};this.closeExistingTooltip=()=>{const{tooltipEl:t}=this;if(t){this.toggleTooltip(t,false)}};this.focusTooltip=({tooltip:t,value:e})=>{this.closeExistingTooltip();if(e){this.clearHoverTimeout(t)}this.toggleTooltip(t,e)};this.toggleTooltip=(t,e)=>{t.open=e;if(e){this.tooltipEl=t}};this.hoverToggle=({tooltip:t,value:e})=>{const{hoverTimeouts:i}=this;i.delete(t);if(e){this.closeExistingTooltip()}this.toggleTooltip(t,e)};this.hoverTooltip=({tooltip:t,value:e})=>{this.clearHoverTimeout(t);const{hoverTimeouts:i}=this;const s=window.setTimeout((()=>this.hoverToggle({tooltip:t,value:e})),A);i.set(t,s)};this.activeTooltipHover=t=>{const{tooltipEl:e,hoverTimeouts:i}=this;const{type:s}=t;if(!e){return}if(s==="mouseover"&&t.composedPath().includes(e)){this.clearHoverTimeout(e)}else if(s==="mouseout"&&!i.has(e)){this.hoverTooltip({tooltip:e,value:false})}};this.hoverEvent=(t,e)=>{const i=this.queryTooltip(t.target);this.activeTooltipHover(t);if(!i){return}this.hoverTooltip({tooltip:i,value:e})};this.focusEvent=(t,e)=>{const i=this.queryTooltip(t.target);if(!i||i===this.clickedTooltip){this.clickedTooltip=null;return}this.focusTooltip({tooltip:i,value:e})}}render(){return i("slot",null)}keyUpHandler(t){if(T(t.key)==="Escape"){const{tooltipEl:t}=this;if(t){this.clearHoverTimeout(t);this.toggleTooltip(t,false)}}}mouseEnterShow(t){this.hoverEvent(t,true)}mouseLeaveHide(t){this.hoverEvent(t,false)}clickHandler(t){const e=this.queryTooltip(t.target);this.clickedTooltip=e;if(e){this.toggleTooltip(e,false)}}focusShow(t){this.focusEvent(t,true)}blurHide(t){this.focusEvent(t,false)}get el(){return n(this)}};S.style=B;export{$ as calcite_action_menu,z as calcite_popover,S as calcite_tooltip_manager};
7
- //# sourceMappingURL=p-07f15398.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/components/calcite-action-menu/calcite-action-menu.css?tag=calcite-action-menu&encapsulation=shadow","node_modules/@esri/calcite-components/dist/collection/components/calcite-action-menu/calcite-action-menu.js","node_modules/@esri/calcite-components/dist/collection/components/calcite-popover/calcite-popover.css?tag=calcite-popover&encapsulation=shadow","node_modules/@esri/calcite-components/dist/collection/components/calcite-popover/calcite-popover.js","node_modules/@esri/calcite-components/dist/collection/components/calcite-tooltip-manager/calcite-tooltip-manager.css?tag=calcite-tooltip-manager&encapsulation=shadow","node_modules/@esri/calcite-components/dist/collection/components/calcite-tooltip-manager/calcite-tooltip-manager.js"],"names":["calciteActionMenuCss","SUPPORTED_BUTTON_NAV_KEYS","SUPPORTED_MENU_NAV_KEYS","CalciteActionMenu","[object Object]","hostRef","this","expanded","open","overlayPositioning","placement","actionElements","mutationObserver","createObserver","getActions","guid","menuId","menuButtonId","activeMenuItemIndex","connectMenuButtonEl","el","label","menuButtonEl","getSlotted","SLOTS","trigger","defaultMenuButtonEl","disconnectMenuButtonEl","setTooltipReferenceElement","active","setAttribute","toString","id","text","addEventListener","menuButtonClick","menuButtonKeyDown","menuButtonKeyUp","removeEventListener","setDefaultMenuButtonEl","handleCalciteActionClick","setFocus","toggleOpen","slotted","tooltip","tagName","assignedElements","referenceElement","updateAction","action","index","tabIndex","updateActions","actions","forEach","assignedActions","getAssignedElements","filter","element","slot","length","Array","from","querySelectorAll","event","key","isValidKey","preventDefault","handleActionNavigation","menuActionsContainerKeyDown","click","menuActionsContainerKeyUp","currentIndex","getRoundRobinIndex","Math","max","toggleOpenEnd","value","_a","observe","childList","subtree","disconnect","calciteActionMenuOpenChange","emit","composedPath","includes","focusElement","menuEl","scale","menuButtonSlot","h","name","class","CSS","defaultTrigger","icon","ICONS","menu","ref","activeAction","activeDescendantId","disablePointer","offsetDistance","aria-activedescendant","aria-labelledby","onClick","onKeyDown","onKeyUp","role","Fragment","renderMenuButton","renderMenuItems","map","flatten","reduce","ar","val","concat","supportedKeys","find","k","calcitePopoverCss","CalcitePopover","closeButton","dismissible","disableFlip","defaultOffsetDistance","offsetSkidding","intlClose","TEXT","close","activeTransitionProp","setUpReferenceElement","removeReferences","effectiveReferenceElement","getReferenceElement","console","warn","addReferences","createPopper","getId","setExpandedAttr","ARIA_EXPANDED","POPOVER_REFERENCE","ARIA_CONTROLS","removeAttribute","hide","transitionEnd","propertyName","calcitePopoverOpen","calcitePopoverClose","reposition","destroyPopper","popper","modifiers","getModifiers","updatePopper","focusId","closeButtonEl","forceUpdate","focus","queryElementRoots","arrowEl","flipPlacements","flipModifier","enabled","options","fallbackPlacements","arrowModifier","offsetModifier","offset","referenceEl","destroy","heading","headingLevel","headingNode","CalciteHeading","level","HEADING_LEVEL","header","renderCloseButton","rtl","getElementDir","displayed","hidden","arrowNode","arrow","Host","aria-hidden","aria-label","calcite-hydrated-hidden","CSS_UTILITY","PopperCSS","animation","animationActive","onTransitionEnd","hasHeader","container","renderHeader","content","calciteTooltipManagerCss","CalciteTooltipManager","hoverTimeouts","WeakMap","selector","TOOLTIP_REFERENCE","queryTooltip","closest","getAttribute","clearHoverTimeout","has","window","clearTimeout","get","delete","closeExistingTooltip","tooltipEl","toggleTooltip","focusTooltip","hoverToggle","hoverTooltip","timeoutId","setTimeout","TOOLTIP_DELAY_MS","set","activeTooltipHover","type","hoverEvent","target","focusEvent","clickedTooltip","getKey"],"mappings":";;;;;0hBAAA,MAAMA,EAAuB,4iDCW7B,MAAMC,EAA4B,CAAC,UAAW,aAC9C,MAAMC,EAA0B,CAAC,UAAW,YAAa,MAAO,YAMnDC,EAAiB,MAC5BC,YAAAC,sFASEC,KAAKC,SAAW,MAIhBD,KAAKE,KAAO,MAEZF,KAAKG,mBAAqB,WAK1BH,KAAKI,UAAY,OACjBJ,KAAKK,eAAiB,GACtBL,KAAKM,iBAAmBC,EAAe,YAAY,IAAMP,KAAKQ,eAC9DR,KAAKS,KAAO,uBAAuBA,MACnCT,KAAKU,OAAS,GAAGV,KAA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N,KACtB,GAAImN,EAAW,CACbnN,KAAK4M,kBAAkBO,GACvBnN,KAAKoN,cAAcD,EAAW,SAIpCrN,eAAe4D,GACb1D,KAAK8N,WAAWpK,EAAO,MAEzB5D,eAAe4D,GACb1D,KAAK8N,WAAWpK,EAAO,OAEzB5D,aAAa4D,GACX,MAAMuK,EAAiBjO,KAAKyM,aAAa/I,EAAMqK,QAC/C/N,KAAKiO,eAAiBA,EACtB,GAAIA,EAAgB,CAClBjO,KAAKoN,cAAca,EAAgB,QAGvCnO,UAAU4D,GACR1D,KAAKgO,WAAWtK,EAAO,MAEzB5D,SAAS4D,GACP1D,KAAKgO,WAAWtK,EAAO","sourcesContent":["/* mixins & extensions */\n\n@keyframes in {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n@keyframes in-down {\n 0% {\n opacity: 0;\n transform: translate3D(0, -5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-up {\n 0% {\n opacity: 0;\n transform: translate3D(0, 5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n\n@keyframes in-scale {\n 0% {\n opacity: 0;\n transform: scale3D(0.95, 0.95, 1);\n }\n\n 100% {\n opacity: 1;\n transform: scale3D(1, 1, 1);\n }\n}\n\n:root {\n --calcite-animation-timing: 300ms;\n}\n\n.calcite-animate {\n opacity: 0;\n animation-fill-mode: both;\n animation-duration: var(--calcite-animation-timing);\n}\n\n.calcite-animate__in {\n animation-name: in;\n}\n\n.calcite-animate__in-down {\n animation-name: in-down;\n}\n\n.calcite-animate__in-up {\n animation-name: in-up;\n}\n\n.calcite-animate__in-scale {\n animation-name: in-scale;\n}\n\n/**\n* Currently only used in Checkbox.\n*/\n\n:root {\n --calcite-popper-transition: 150ms ease-in-out;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n:host {\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n background-color: var(--calcite-ui-foreground-1);\n color: var(--calcite-ui-text-2);\n font-size: var(--calcite-font-size-1);\n}\n\n.menu ::slotted(calcite-action) {\n display: flex;\n outline-offset: 0;\n outline-color: transparent;\n transition: outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;\n margin: 0.125rem;\n}\n\n::slotted(calcite-action[active]) {\n outline: 2px solid var(--calcite-ui-brand);\n outline-offset: 2px;\n outline-offset: 0px;\n}\n\n.default-trigger {\n align-self: stretch;\n flex: 0 1 auto;\n height: 100%;\n position: relative;\n}\n\nslot[name=trigger]::slotted(calcite-action),\ncalcite-action::slotted([slot=trigger]) {\n align-self: stretch;\n flex: 0 1 auto;\n height: 100%;\n position: relative;\n}\n\n.menu {\n flex-direction: column;\n flex-wrap: nowrap;\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, h, Element, Event, Listen, Prop, Watch, Method, State } from \"@stencil/core\";\nimport { CSS, SLOTS, ICONS } from \"./resources\";\nimport { focusElement, getSlotted } from \"../../utils/dom\";\nimport { Fragment } from \"@stencil/core/internal\";\nimport { getRoundRobinIndex } from \"../../utils/array\";\nimport { guid } from \"../../utils/guid\";\nimport { createObserver } from \"../../utils/observers\";\nconst SUPPORTED_BUTTON_NAV_KEYS = [\"ArrowUp\", \"ArrowDown\"];\nconst SUPPORTED_MENU_NAV_KEYS = [\"ArrowUp\", \"ArrowDown\", \"End\", \"Home\"];\n/**\n * @slot - A slot for adding `calcite-action`s.\n * @slot trigger - A slot for adding a `calcite-action` to trigger opening the menu.\n * @slot tooltip - A slot for adding an tooltip for the menu.\n */\nexport class CalciteActionMenu {\n constructor() {\n // --------------------------------------------------------------------------\n //\n // Properties\n //\n // --------------------------------------------------------------------------\n /**\n * Indicates whether widget is expanded.\n */\n this.expanded = false;\n /**\n * Opens the action menu.\n */\n this.open = false;\n /** Describes the type of positioning to use for the overlaid content. If your element is in a fixed container, use the 'fixed' value. */\n this.overlayPositioning = \"absolute\";\n /**\n * Determines where the component will be positioned relative to the referenceElement.\n * @see [PopperPlacement](https://github.com/Esri/calcite-components/blob/master/src/utils/popper.ts#L25)\n */\n this.placement = \"auto\";\n this.actionElements = [];\n this.mutationObserver = createObserver(\"mutation\", () => this.getActions());\n this.guid = `calcite-action-menu-${guid()}`;\n this.menuId = `${this.guid}-menu`;\n this.menuButtonId = `${this.guid}-menu-button`;\n this.activeMenuItemIndex = -1;\n // --------------------------------------------------------------------------\n //\n // Component Methods\n //\n // --------------------------------------------------------------------------\n this.connectMenuButtonEl = () => {\n const { el, menuButtonId, menuId, open, label } = this;\n const menuButtonEl = getSlotted(el, SLOTS.trigger) || this.defaultMenuButtonEl;\n if (this.menuButtonEl === menuButtonEl) {\n return;\n }\n this.disconnectMenuButtonEl();\n this.menuButtonEl = menuButtonEl;\n this.setTooltipReferenceElement();\n if (!menuButtonEl) {\n return;\n }\n menuButtonEl.active = open;\n menuButtonEl.setAttribute(\"aria-controls\", menuId);\n menuButtonEl.setAttribute(\"aria-expanded\", open.toString());\n menuButtonEl.setAttribute(\"aria-haspopup\", \"true\");\n if (!menuButtonEl.id) {\n menuButtonEl.id = menuButtonId;\n }\n if (!menuButtonEl.label) {\n menuButtonEl.label = label;\n }\n if (!menuButtonEl.text) {\n menuButtonEl.text = label;\n }\n menuButtonEl.addEventListener(\"click\", this.menuButtonClick);\n menuButtonEl.addEventListener(\"keydown\", this.menuButtonKeyDown);\n menuButtonEl.addEventListener(\"keyup\", this.menuButtonKeyUp);\n };\n this.disconnectMenuButtonEl = () => {\n const { menuButtonEl } = this;\n if (!menuButtonEl) {\n return;\n }\n menuButtonEl.removeEventListener(\"click\", this.menuButtonClick);\n menuButtonEl.removeEventListener(\"keydown\", this.menuButtonKeyDown);\n menuButtonEl.removeEventListener(\"keyup\", this.menuButtonKeyUp);\n };\n this.setDefaultMenuButtonEl = (el) => {\n this.defaultMenuButtonEl = el;\n this.connectMenuButtonEl();\n };\n // --------------------------------------------------------------------------\n //\n // Private Methods\n //\n // --------------------------------------------------------------------------\n this.handleCalciteActionClick = () => {\n this.open = false;\n this.setFocus();\n };\n this.menuButtonClick = () => {\n this.toggleOpen();\n };\n this.setTooltipReferenceElement = () => {\n const { el, expanded, menuButtonEl } = this;\n const slotted = getSlotted(el, SLOTS.tooltip);\n const tooltip = (slotted === null || slotted === void 0 ? void 0 : slotted.tagName) === \"SLOT\" ? slotted.assignedElements()[0] : slotted;\n if ((tooltip === null || tooltip === void 0 ? void 0 : tooltip.tagName) === \"CALCITE-TOOLTIP\") {\n tooltip.referenceElement = !expanded ? menuButtonEl : null;\n }\n };\n this.updateAction = (action, index) => {\n const { guid, activeMenuItemIndex } = this;\n const id = `${guid}-action-${index}`;\n action.tabIndex = -1;\n action.setAttribute(\"role\", \"menuitem\");\n if (!action.id) {\n action.id = id;\n }\n action.active = index === activeMenuItemIndex;\n };\n this.updateActions = (actions) => {\n actions === null || actions === void 0 ? void 0 : actions.forEach(this.updateAction);\n };\n this.getActions = () => {\n const { el } = this;\n const assignedActions = this.getAssignedElements().filter((element) => element.tagName === \"CALCITE-ACTION\" && element.slot !== \"trigger\");\n const actionElements = assignedActions.length\n ? assignedActions\n : Array.from(el.querySelectorAll(\"calcite-action:not([slot=trigger])\"));\n this.updateActions(actionElements);\n this.actionElements = actionElements;\n this.connectMenuButtonEl();\n };\n this.menuButtonKeyUp = (event) => {\n const { key } = event;\n const { actionElements } = this;\n if (!this.isValidKey(key, SUPPORTED_BUTTON_NAV_KEYS)) {\n return;\n }\n event.preventDefault();\n if (!actionElements.length) {\n return;\n }\n this.toggleOpen(true);\n this.handleActionNavigation(key, actionElements);\n };\n this.menuButtonKeyDown = (event) => {\n const { key } = event;\n if (!this.isValidKey(key, SUPPORTED_BUTTON_NAV_KEYS)) {\n return;\n }\n event.preventDefault();\n };\n this.menuActionsContainerKeyDown = (event) => {\n const { key } = event;\n const { actionElements, activeMenuItemIndex } = this;\n if (key === \"Tab\") {\n this.open = false;\n return;\n }\n if (key === \" \" || key === \"Enter\") {\n event.preventDefault();\n const action = actionElements[activeMenuItemIndex];\n action ? action.click() : this.toggleOpen(false);\n return;\n }\n if (this.isValidKey(key, SUPPORTED_MENU_NAV_KEYS)) {\n event.preventDefault();\n }\n };\n this.menuActionsContainerKeyUp = (event) => {\n const { key } = event;\n const { actionElements } = this;\n if (key === \"Escape\") {\n this.toggleOpen(false);\n return;\n }\n if (!this.isValidKey(key, SUPPORTED_MENU_NAV_KEYS)) {\n return;\n }\n event.preventDefault();\n if (!actionElements.length) {\n return;\n }\n this.handleActionNavigation(key, actionElements);\n };\n this.handleActionNavigation = (key, actions) => {\n const currentIndex = this.activeMenuItemIndex;\n if (key === \"Home\") {\n this.activeMenuItemIndex = 0;\n }\n if (key === \"End\") {\n this.activeMenuItemIndex = actions.length - 1;\n }\n if (key === \"ArrowUp\") {\n this.activeMenuItemIndex = getRoundRobinIndex(Math.max(currentIndex - 1, -1), actions.length);\n }\n if (key === \"ArrowDown\") {\n this.activeMenuItemIndex = getRoundRobinIndex(currentIndex + 1, actions.length);\n }\n };\n this.toggleOpenEnd = () => {\n this.setFocus();\n this.el.removeEventListener(\"calcitePopoverOpen\", this.toggleOpenEnd);\n };\n this.toggleOpen = (value = !this.open) => {\n this.el.addEventListener(\"calcitePopoverOpen\", this.toggleOpenEnd);\n this.open = value;\n };\n }\n // --------------------------------------------------------------------------\n //\n // Lifecycle\n //\n // --------------------------------------------------------------------------\n connectedCallback() {\n var _a;\n (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });\n this.getActions();\n }\n disconnectedCallback() {\n var _a;\n (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();\n this.disconnectMenuButtonEl();\n }\n expandedHandler() {\n this.open = false;\n this.setTooltipReferenceElement();\n }\n openHandler(open) {\n this.activeMenuItemIndex = this.open ? 0 : -1;\n if (this.menuButtonEl) {\n this.menuButtonEl.active = open;\n }\n this.calciteActionMenuOpenChange.emit(open);\n }\n closeCalciteActionMenuOnClick(event) {\n const composedPath = event.composedPath();\n if (composedPath.includes(this.el)) {\n return;\n }\n this.open = false;\n }\n activeMenuItemIndexHandler() {\n this.updateActions(this.actionElements);\n }\n // --------------------------------------------------------------------------\n //\n // Methods\n //\n // --------------------------------------------------------------------------\n /** Sets focus on the component. */\n async setFocus() {\n focusElement(this.open ? this.menuEl : this.menuButtonEl);\n }\n renderMenuButton() {\n const { el, label, scale } = this;\n const menuButtonSlot = (h(\"slot\", { name: SLOTS.trigger },\n h(\"calcite-action\", { class: CSS.defaultTrigger, icon: ICONS.menu, ref: this.setDefaultMenuButtonEl, scale: scale, text: label })));\n return getSlotted(el, SLOTS.tooltip) ? (h(\"calcite-tooltip-manager\", null, menuButtonSlot)) : (menuButtonSlot);\n }\n renderMenuItems() {\n const { actionElements, activeMenuItemIndex, open, menuId, menuButtonEl, label, placement, overlayPositioning } = this;\n const activeAction = actionElements[activeMenuItemIndex];\n const activeDescendantId = (activeAction === null || activeAction === void 0 ? void 0 : activeAction.id) || null;\n return (h(\"calcite-popover\", { disablePointer: true, label: label, offsetDistance: 0, open: open, overlayPositioning: overlayPositioning, placement: placement, referenceElement: menuButtonEl },\n h(\"div\", { \"aria-activedescendant\": activeDescendantId, \"aria-labelledby\": menuButtonEl === null || menuButtonEl === void 0 ? void 0 : menuButtonEl.id, class: CSS.menu, id: menuId, onClick: this.handleCalciteActionClick, onKeyDown: this.menuActionsContainerKeyDown, onKeyUp: this.menuActionsContainerKeyUp, ref: (el) => (this.menuEl = el), role: \"menu\", tabIndex: -1 },\n h(\"slot\", null))));\n }\n render() {\n return (h(Fragment, null,\n this.renderMenuButton(),\n this.renderMenuItems(),\n h(\"slot\", { name: SLOTS.tooltip })));\n }\n getAssignedElements() {\n return Array.from(this.el.querySelectorAll(\"slot\"))\n .map((slot) => slot.assignedElements({ flatten: true }))\n .reduce((ar, val) => ar.concat(val), []);\n }\n isValidKey(key, supportedKeys) {\n return !!supportedKeys.find((k) => k === key);\n }\n static get is() { return \"calcite-action-menu\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"calcite-action-menu.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-action-menu.css\"]\n }; }\n static get properties() { return {\n \"expanded\": {\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\": \"Indicates whether widget is expanded.\"\n },\n \"attribute\": \"expanded\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"flipPlacements\": {\n \"type\": \"unknown\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Placement[]\",\n \"resolved\": \"Placement[]\",\n \"references\": {\n \"Placement\": {\n \"location\": \"import\",\n \"path\": \"@popperjs/core\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Defines the available placements that can be used when a flip occurs.\"\n }\n },\n \"label\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": true,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Text string for the actions menu.\"\n },\n \"attribute\": \"label\",\n \"reflect\": false\n },\n \"open\": {\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\": \"Opens the action menu.\"\n },\n \"attribute\": \"open\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"overlayPositioning\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"OverlayPositioning\",\n \"resolved\": \"\\\"absolute\\\" | \\\"fixed\\\"\",\n \"references\": {\n \"OverlayPositioning\": {\n \"location\": \"import\",\n \"path\": \"../../utils/popper\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Describes the type of positioning to use for the overlaid content. If your element is in a fixed container, use the 'fixed' value.\"\n },\n \"attribute\": \"overlay-positioning\",\n \"reflect\": false,\n \"defaultValue\": \"\\\"absolute\\\"\"\n },\n \"placement\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"PopperPlacement\",\n \"resolved\": \"Placement | PlacementRtl | VariationRtl\",\n \"references\": {\n \"PopperPlacement\": {\n \"location\": \"import\",\n \"path\": \"../../utils/popper\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"see\",\n \"text\": \" [PopperPlacement](https://github.com/Esri/calcite-components/blob/master/src/utils/popper.ts#L25)\"\n }],\n \"text\": \"Determines where the component will be positioned relative to the referenceElement.\"\n },\n \"attribute\": \"placement\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"auto\\\"\"\n },\n \"scale\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Scale\",\n \"resolved\": \"\\\"l\\\" | \\\"m\\\" | \\\"s\\\"\",\n \"references\": {\n \"Scale\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Specifies the size of the menu trigger action.\"\n },\n \"attribute\": \"scale\",\n \"reflect\": true\n }\n }; }\n static get states() { return {\n \"activeMenuItemIndex\": {}\n }; }\n static get events() { return [{\n \"method\": \"calciteActionMenuOpenChange\",\n \"name\": \"calciteActionMenuOpenChange\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Emitted when the open property has changed.\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }]; }\n static get methods() { return {\n \"setFocus\": {\n \"complexType\": {\n \"signature\": \"() => Promise<void>\",\n \"parameters\": [],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n }\n },\n \"return\": \"Promise<void>\"\n },\n \"docs\": {\n \"text\": \"Sets focus on the component.\",\n \"tags\": []\n }\n }\n }; }\n static get elementRef() { return \"el\"; }\n static get watchers() { return [{\n \"propName\": \"expanded\",\n \"methodName\": \"expandedHandler\"\n }, {\n \"propName\": \"open\",\n \"methodName\": \"openHandler\"\n }, {\n \"propName\": \"activeMenuItemIndex\",\n \"methodName\": \"activeMenuItemIndexHandler\"\n }]; }\n static get listeners() { return [{\n \"name\": \"click\",\n \"method\": \"closeCalciteActionMenuOnClick\",\n \"target\": \"window\",\n \"capture\": false,\n \"passive\": false\n }]; }\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 position: absolute;\n z-index: 900;\n transform: scale(0);\n}\n\n.calcite-popper-anim {\n position: relative;\n z-index: 1;\n transition: var(--calcite-popper-transition);\n visibility: hidden;\n transition-property: transform, visibility, opacity;\n opacity: 0;\n box-shadow: 0 0 16px 0 rgba(0, 0, 0, 0.16);\n border-radius: 0.25rem;\n}\n\n:host([data-popper-placement^=bottom]) .calcite-popper-anim {\n transform: translateY(-5px);\n}\n\n:host([data-popper-placement^=top]) .calcite-popper-anim {\n transform: translateY(5px);\n}\n\n:host([data-popper-placement^=left]) .calcite-popper-anim {\n transform: translateX(5px);\n}\n\n:host([data-popper-placement^=right]) .calcite-popper-anim {\n transform: translateX(-5px);\n}\n\n:host([data-popper-placement]) .calcite-popper-anim--active {\n opacity: 1;\n visibility: visible;\n transform: translate(0);\n}\n\n.arrow,\n.arrow::before {\n position: absolute;\n width: 8px;\n height: 8px;\n z-index: -1;\n}\n\n.arrow::before {\n content: \"\";\n box-shadow: 0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);\n transform: rotate(45deg);\n background: var(--calcite-ui-foreground-1);\n}\n\n:host([data-popper-placement^=top]) .arrow {\n bottom: -4px;\n}\n\n:host([data-popper-placement^=bottom]) .arrow {\n top: -4px;\n}\n\n:host([data-popper-placement^=left]) .arrow {\n right: -4px;\n}\n\n:host([data-popper-placement^=right]) .arrow {\n left: -4px;\n}\n\n:host {\n pointer-events: none;\n}\n\n:host([open]) {\n pointer-events: initial;\n}\n\n.calcite-popper-anim {\n background-color: var(--calcite-ui-foreground-1);\n border-width: 1px;\n border-style: solid;\n border-color: var(--calcite-ui-border-3);\n border-radius: 0.25rem;\n}\n\n.arrow::before {\n outline: 1px solid var(--calcite-ui-border-3);\n}\n\n.header {\n border-width: 0;\n border-bottom-width: 1px;\n border-bottom-color: var(--calcite-ui-border-3);\n border-style: solid;\n display: flex;\n flex: 1 1 auto;\n align-items: stretch;\n background-color: var(--calcite-ui-foreground-1);\n justify-content: flex-start;\n}\n\n.heading {\n display: block;\n flex: 1 1 auto;\n font-weight: var(--calcite-font-weight-medium);\n margin: 0;\n padding-left: 1rem;\n padding-right: 1rem;\n padding-top: 0.75rem;\n padding-bottom: 0.75rem;\n align-self: center;\n color: var(--calcite-ui-text-1);\n font-size: var(--calcite-font-size-0);\n line-height: 1.375;\n white-space: normal;\n word-wrap: break-word;\n word-break: break-word;\n}\n\n.container {\n background-color: var(--calcite-ui-foreground-1);\n position: relative;\n display: flex;\n overflow: hidden;\n flex-wrap: nowrap;\n flex-direction: row;\n height: 100%;\n color: var(--calcite-ui-text-1);\n border-radius: 0.25rem;\n}\n\n.container.has-header {\n flex-direction: column;\n}\n\n.content {\n display: flex;\n flex-direction: column;\n flex-wrap: nowrap;\n align-self: center;\n height: 100%;\n width: 100%;\n}\n\n.calcite--rtl .close-button {\n border-radius: 0.25rem 0 0 0.25rem;\n}\n\n::slotted(calcite-panel),\n::slotted(calcite-flow) {\n height: 100%;\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, forceUpdate, Host, Method, Prop, State, Watch, h } from \"@stencil/core\";\nimport { CSS, ARIA_CONTROLS, ARIA_EXPANDED, HEADING_LEVEL, POPOVER_REFERENCE, TEXT } from \"./resources\";\nimport { defaultOffsetDistance, createPopper, updatePopper, CSS as PopperCSS } from \"../../utils/popper\";\nimport { guid } from \"../../utils/guid\";\nimport { getElementDir, queryElementRoots } from \"../../utils/dom\";\nimport { CSS_UTILITY } from \"../../utils/resources\";\nimport { CalciteHeading } from \"../functional/CalciteHeading\";\n/**\n * @slot - A slot for adding custom content.\n */\nexport class CalcitePopover {\n constructor() {\n // --------------------------------------------------------------------------\n //\n // Properties\n //\n // --------------------------------------------------------------------------\n /**\n * Display a close button within the Popover.\n * @deprecated use dismissible instead.\n */\n this.closeButton = false;\n /**\n * Display a close button within the Popover.\n */\n this.dismissible = false;\n /**\n * Prevents flipping the popover's placement when it starts to overlap its reference element.\n */\n this.disableFlip = false;\n /**\n * Removes the caret pointer.\n */\n this.disablePointer = false;\n /**\n * Offset the position of the popover away from the reference element.\n * @default 6\n */\n this.offsetDistance = defaultOffsetDistance;\n /**\n * Offset the position of the popover along the reference element.\n */\n this.offsetSkidding = 0;\n /**\n * Display and position the component.\n */\n this.open = false;\n /** Describes the type of positioning to use for the overlaid content. If your element is in a fixed container, use the 'fixed' value. */\n this.overlayPositioning = \"absolute\";\n /**\n * Determines where the component will be positioned relative to the referenceElement.\n * @see [PopperPlacement](https://github.com/Esri/calcite-components/blob/master/src/utils/popper.ts#L25)\n */\n this.placement = \"auto\";\n /** Text for close button.\n * @default \"Close\"\n */\n this.intlClose = TEXT.close;\n this.guid = `calcite-popover-${guid()}`;\n this.activeTransitionProp = \"opacity\";\n // --------------------------------------------------------------------------\n //\n // Private Methods\n //\n // --------------------------------------------------------------------------\n this.setUpReferenceElement = () => {\n this.removeReferences();\n this.effectiveReferenceElement = this.getReferenceElement();\n const { el, referenceElement, effectiveReferenceElement } = this;\n if (referenceElement && !effectiveReferenceElement) {\n console.warn(`${el.tagName}: reference-element id \"${referenceElement}\" was not found.`, {\n el\n });\n }\n this.addReferences();\n this.createPopper();\n };\n this.getId = () => {\n return this.el.id || this.guid;\n };\n this.setExpandedAttr = () => {\n const { effectiveReferenceElement, open } = this;\n if (!effectiveReferenceElement) {\n return;\n }\n effectiveReferenceElement.setAttribute(ARIA_EXPANDED, open.toString());\n };\n this.addReferences = () => {\n const { effectiveReferenceElement } = this;\n if (!effectiveReferenceElement) {\n return;\n }\n const id = this.getId();\n effectiveReferenceElement.setAttribute(POPOVER_REFERENCE, id);\n effectiveReferenceElement.setAttribute(ARIA_CONTROLS, id);\n this.setExpandedAttr();\n };\n this.removeReferences = () => {\n const { effectiveReferenceElement } = this;\n if (!effectiveReferenceElement) {\n return;\n }\n effectiveReferenceElement.removeAttribute(POPOVER_REFERENCE);\n effectiveReferenceElement.removeAttribute(ARIA_CONTROLS);\n effectiveReferenceElement.removeAttribute(ARIA_EXPANDED);\n };\n this.hide = () => {\n this.open = false;\n };\n this.transitionEnd = (event) => {\n if (event.propertyName === this.activeTransitionProp) {\n this.open ? this.calcitePopoverOpen.emit() : this.calcitePopoverClose.emit();\n }\n };\n }\n offsetDistanceOffsetHandler() {\n this.reposition();\n }\n offsetSkiddingHandler() {\n this.reposition();\n }\n openHandler() {\n this.reposition();\n this.setExpandedAttr();\n }\n placementHandler() {\n this.reposition();\n }\n referenceElementHandler() {\n this.setUpReferenceElement();\n }\n // --------------------------------------------------------------------------\n //\n // Lifecycle\n //\n // --------------------------------------------------------------------------\n componentWillLoad() {\n this.setUpReferenceElement();\n }\n componentDidLoad() {\n this.reposition();\n }\n disconnectedCallback() {\n this.removeReferences();\n this.destroyPopper();\n }\n // --------------------------------------------------------------------------\n //\n // Public Methods\n //\n // --------------------------------------------------------------------------\n /** Updates the position of the component. */\n async reposition() {\n const { popper, el, placement } = this;\n const modifiers = this.getModifiers();\n popper\n ? await updatePopper({\n el,\n modifiers,\n placement,\n popper\n })\n : this.createPopper();\n }\n /** Sets focus on the component. */\n async setFocus(focusId) {\n var _a;\n const { closeButtonEl } = this;\n if (focusId === \"close-button\" && closeButtonEl) {\n forceUpdate(closeButtonEl);\n closeButtonEl.setFocus();\n return;\n }\n (_a = this.el) === null || _a === void 0 ? void 0 : _a.focus();\n }\n /** Toggles the popover's open property. */\n async toggle(value = !this.open) {\n this.open = value;\n }\n getReferenceElement() {\n const { referenceElement, el } = this;\n return ((typeof referenceElement === \"string\"\n ? queryElementRoots(el, `#${referenceElement}`)\n : referenceElement) || null);\n }\n getModifiers() {\n const { arrowEl, flipPlacements, disableFlip, disablePointer, offsetDistance, offsetSkidding } = this;\n const flipModifier = {\n name: \"flip\",\n enabled: !disableFlip\n };\n if (flipPlacements) {\n flipModifier.options = {\n fallbackPlacements: flipPlacements\n };\n }\n const arrowModifier = {\n name: \"arrow\",\n enabled: !disablePointer\n };\n if (arrowEl) {\n arrowModifier.options = {\n element: arrowEl\n };\n }\n const offsetModifier = {\n name: \"offset\",\n enabled: true,\n options: {\n offset: [offsetSkidding, offsetDistance]\n }\n };\n return [arrowModifier, flipModifier, offsetModifier];\n }\n createPopper() {\n this.destroyPopper();\n const { el, placement, effectiveReferenceElement: referenceEl, overlayPositioning } = this;\n const modifiers = this.getModifiers();\n this.popper = createPopper({\n el,\n modifiers,\n overlayPositioning,\n placement,\n referenceEl\n });\n }\n destroyPopper() {\n const { popper } = this;\n if (popper) {\n popper.destroy();\n }\n this.popper = null;\n }\n // --------------------------------------------------------------------------\n //\n // Render Methods\n //\n // --------------------------------------------------------------------------\n renderCloseButton() {\n const { dismissible, closeButton, intlClose } = this;\n return dismissible || closeButton ? (h(\"calcite-action\", { class: CSS.closeButton, onClick: this.hide, ref: (closeButtonEl) => (this.closeButtonEl = closeButtonEl), text: intlClose },\n h(\"calcite-icon\", { icon: \"x\", scale: \"m\" }))) : null;\n }\n renderHeader() {\n const { heading, headingLevel } = this;\n const headingNode = heading ? (h(CalciteHeading, { class: CSS.heading, level: headingLevel || HEADING_LEVEL }, heading)) : null;\n return headingNode ? (h(\"div\", { class: CSS.header },\n headingNode,\n this.renderCloseButton())) : null;\n }\n render() {\n const { effectiveReferenceElement, el, heading, label, open, disablePointer } = this;\n const rtl = getElementDir(el) === \"rtl\";\n const displayed = effectiveReferenceElement && open;\n const hidden = !displayed;\n const arrowNode = !disablePointer ? (h(\"div\", { class: CSS.arrow, ref: (arrowEl) => (this.arrowEl = arrowEl) })) : null;\n return (h(Host, { \"aria-hidden\": hidden.toString(), \"aria-label\": label, \"calcite-hydrated-hidden\": hidden, id: this.getId(), role: \"dialog\" },\n h(\"div\", { class: {\n [CSS_UTILITY.rtl]: rtl,\n [PopperCSS.animation]: true,\n [PopperCSS.animationActive]: displayed\n }, onTransitionEnd: this.transitionEnd },\n arrowNode,\n h(\"div\", { class: {\n [CSS.hasHeader]: !!heading,\n [CSS.container]: true\n } },\n this.renderHeader(),\n h(\"div\", { class: CSS.content },\n h(\"slot\", null)),\n !heading ? this.renderCloseButton() : null))));\n }\n static get is() { return \"calcite-popover\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"calcite-popover.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-popover.css\"]\n }; }\n static get properties() { return {\n \"closeButton\": {\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 dismissible instead.\"\n }],\n \"text\": \"Display a close button within the Popover.\"\n },\n \"attribute\": \"close-button\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"dismissible\": {\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\": \"Display a close button within the Popover.\"\n },\n \"attribute\": \"dismissible\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"disableFlip\": {\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\": \"Prevents flipping the popover's placement when it starts to overlap its reference element.\"\n },\n \"attribute\": \"disable-flip\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"disablePointer\": {\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\": \"Removes the caret pointer.\"\n },\n \"attribute\": \"disable-pointer\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"flipPlacements\": {\n \"type\": \"unknown\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Placement[]\",\n \"resolved\": \"Placement[]\",\n \"references\": {\n \"Placement\": {\n \"location\": \"import\",\n \"path\": \"@popperjs/core\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Defines the available placements that can be used when a flip occurs.\"\n }\n },\n \"heading\": {\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\": \"Heading text.\"\n },\n \"attribute\": \"heading\",\n \"reflect\": false\n },\n \"headingLevel\": {\n \"type\": \"number\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"HeadingLevel\",\n \"resolved\": \"1 | 2 | 3 | 4 | 5 | 6\",\n \"references\": {\n \"HeadingLevel\": {\n \"location\": \"import\",\n \"path\": \"../functional/CalciteHeading\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Number at which section headings should start for this component.\"\n },\n \"attribute\": \"heading-level\",\n \"reflect\": false\n },\n \"label\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": true,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Accessible name for the component\"\n },\n \"attribute\": \"label\",\n \"reflect\": false\n },\n \"offsetDistance\": {\n \"type\": \"number\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"number\",\n \"resolved\": \"number\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"default\",\n \"text\": \"6\"\n }],\n \"text\": \"Offset the position of the popover away from the reference element.\"\n },\n \"attribute\": \"offset-distance\",\n \"reflect\": true,\n \"defaultValue\": \"defaultOffsetDistance\"\n },\n \"offsetSkidding\": {\n \"type\": \"number\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"number\",\n \"resolved\": \"number\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Offset the position of the popover along the reference element.\"\n },\n \"attribute\": \"offset-skidding\",\n \"reflect\": true,\n \"defaultValue\": \"0\"\n },\n \"open\": {\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 and position the component.\"\n },\n \"attribute\": \"open\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"overlayPositioning\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"OverlayPositioning\",\n \"resolved\": \"\\\"absolute\\\" | \\\"fixed\\\"\",\n \"references\": {\n \"OverlayPositioning\": {\n \"location\": \"import\",\n \"path\": \"../../utils/popper\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Describes the type of positioning to use for the overlaid content. If your element is in a fixed container, use the 'fixed' value.\"\n },\n \"attribute\": \"overlay-positioning\",\n \"reflect\": false,\n \"defaultValue\": \"\\\"absolute\\\"\"\n },\n \"placement\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"PopperPlacement\",\n \"resolved\": \"Placement | PlacementRtl | VariationRtl\",\n \"references\": {\n \"PopperPlacement\": {\n \"location\": \"import\",\n \"path\": \"../../utils/popper\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"see\",\n \"text\": \" [PopperPlacement](https://github.com/Esri/calcite-components/blob/master/src/utils/popper.ts#L25)\"\n }],\n \"text\": \"Determines where the component will be positioned relative to the referenceElement.\"\n },\n \"attribute\": \"placement\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"auto\\\"\"\n },\n \"referenceElement\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"HTMLElement | string\",\n \"resolved\": \"HTMLElement | string\",\n \"references\": {\n \"HTMLElement\": {\n \"location\": \"global\"\n }\n }\n },\n \"required\": true,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Reference HTMLElement used to position this component according to the placement property. As a convenience, a string ID of the reference element can be used. However, setting this property to use an HTMLElement is preferred so that the component does not need to query the DOM for the referenceElement.\"\n },\n \"attribute\": \"reference-element\",\n \"reflect\": false\n },\n \"intlClose\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"default\",\n \"text\": \"\\\"Close\\\"\"\n }],\n \"text\": \"Text for close button.\"\n },\n \"attribute\": \"intl-close\",\n \"reflect\": false,\n \"defaultValue\": \"TEXT.close\"\n }\n }; }\n static get states() { return {\n \"effectiveReferenceElement\": {}\n }; }\n static get events() { return [{\n \"method\": \"calcitePopoverClose\",\n \"name\": \"calcitePopoverClose\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Fired when the popover is closed\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }, {\n \"method\": \"calcitePopoverOpen\",\n \"name\": \"calcitePopoverOpen\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Fired when the popover is opened\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }]; }\n static get methods() { return {\n \"reposition\": {\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\": \"Updates the position of the component.\",\n \"tags\": []\n }\n },\n \"setFocus\": {\n \"complexType\": {\n \"signature\": \"(focusId?: \\\"close-button\\\") => Promise<void>\",\n \"parameters\": [{\n \"tags\": [],\n \"text\": \"\"\n }],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n }\n },\n \"return\": \"Promise<void>\"\n },\n \"docs\": {\n \"text\": \"Sets focus on the component.\",\n \"tags\": []\n }\n },\n \"toggle\": {\n \"complexType\": {\n \"signature\": \"(value?: boolean) => Promise<void>\",\n \"parameters\": [{\n \"tags\": [],\n \"text\": \"\"\n }],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n }\n },\n \"return\": \"Promise<void>\"\n },\n \"docs\": {\n \"text\": \"Toggles the popover's open property.\",\n \"tags\": []\n }\n }\n }; }\n static get elementRef() { return \"el\"; }\n static get watchers() { return [{\n \"propName\": \"offsetDistance\",\n \"methodName\": \"offsetDistanceOffsetHandler\"\n }, {\n \"propName\": \"offsetSkidding\",\n \"methodName\": \"offsetSkiddingHandler\"\n }, {\n \"propName\": \"open\",\n \"methodName\": \"openHandler\"\n }, {\n \"propName\": \"placement\",\n \"methodName\": \"placementHandler\"\n }, {\n \"propName\": \"referenceElement\",\n \"methodName\": \"referenceElementHandler\"\n }]; }\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}","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nimport { Component, h, Listen, Prop, Element } from \"@stencil/core\";\nimport { TOOLTIP_REFERENCE, TOOLTIP_DELAY_MS } from \"../calcite-tooltip/resources\";\nimport { queryElementRoots } from \"../../utils/dom\";\nimport { getKey } from \"../../utils/key\";\n/**\n * @slot - A slot for adding elements that reference a 'calcite-tooltip' by the 'selector' property.\n */\nexport class CalciteTooltipManager {\n constructor() {\n this.hoverTimeouts = new WeakMap();\n // --------------------------------------------------------------------------\n //\n // Properties\n //\n // --------------------------------------------------------------------------\n /**\n * CSS Selector to match reference elements for tooltips. Reference elements will be identified by this selector in order to open their associated tooltip.\n * @default `[data-calcite-tooltip-reference]`\n */\n this.selector = `[${TOOLTIP_REFERENCE}]`;\n // --------------------------------------------------------------------------\n //\n // Private Methods\n //\n // --------------------------------------------------------------------------\n this.queryTooltip = (element) => {\n var _a;\n const { selector, el } = this;\n const id = (_a = element.closest(selector)) === null || _a === void 0 ? void 0 : _a.getAttribute(TOOLTIP_REFERENCE);\n return queryElementRoots(el, `#${id}`);\n };\n this.clearHoverTimeout = (tooltip) => {\n const { hoverTimeouts } = this;\n if (hoverTimeouts.has(tooltip)) {\n window.clearTimeout(hoverTimeouts.get(tooltip));\n hoverTimeouts.delete(tooltip);\n }\n };\n this.closeExistingTooltip = () => {\n const { tooltipEl } = this;\n if (tooltipEl) {\n this.toggleTooltip(tooltipEl, false);\n }\n };\n this.focusTooltip = ({ tooltip, value }) => {\n this.closeExistingTooltip();\n if (value) {\n this.clearHoverTimeout(tooltip);\n }\n this.toggleTooltip(tooltip, value);\n };\n this.toggleTooltip = (tooltip, value) => {\n tooltip.open = value;\n if (value) {\n this.tooltipEl = tooltip;\n }\n };\n this.hoverToggle = ({ tooltip, value }) => {\n const { hoverTimeouts } = this;\n hoverTimeouts.delete(tooltip);\n if (value) {\n this.closeExistingTooltip();\n }\n this.toggleTooltip(tooltip, value);\n };\n this.hoverTooltip = ({ tooltip, value }) => {\n this.clearHoverTimeout(tooltip);\n const { hoverTimeouts } = this;\n const timeoutId = window.setTimeout(() => this.hoverToggle({ tooltip, value }), TOOLTIP_DELAY_MS || 0);\n hoverTimeouts.set(tooltip, timeoutId);\n };\n this.activeTooltipHover = (event) => {\n const { tooltipEl, hoverTimeouts } = this;\n const { type } = event;\n if (!tooltipEl) {\n return;\n }\n if (type === \"mouseover\" && event.composedPath().includes(tooltipEl)) {\n this.clearHoverTimeout(tooltipEl);\n }\n else if (type === \"mouseout\" && !hoverTimeouts.has(tooltipEl)) {\n this.hoverTooltip({ tooltip: tooltipEl, value: false });\n }\n };\n this.hoverEvent = (event, value) => {\n const tooltip = this.queryTooltip(event.target);\n this.activeTooltipHover(event);\n if (!tooltip) {\n return;\n }\n this.hoverTooltip({ tooltip, value });\n };\n this.focusEvent = (event, value) => {\n const tooltip = this.queryTooltip(event.target);\n if (!tooltip || tooltip === this.clickedTooltip) {\n this.clickedTooltip = null;\n return;\n }\n this.focusTooltip({ tooltip, value });\n };\n }\n // --------------------------------------------------------------------------\n //\n // Render Methods\n //\n // --------------------------------------------------------------------------\n render() {\n return h(\"slot\", null);\n }\n //--------------------------------------------------------------------------\n //\n // Event Listeners\n //\n //--------------------------------------------------------------------------\n keyUpHandler(event) {\n if (getKey(event.key) === \"Escape\") {\n const { tooltipEl } = this;\n if (tooltipEl) {\n this.clearHoverTimeout(tooltipEl);\n this.toggleTooltip(tooltipEl, false);\n }\n }\n }\n mouseEnterShow(event) {\n this.hoverEvent(event, true);\n }\n mouseLeaveHide(event) {\n this.hoverEvent(event, false);\n }\n clickHandler(event) {\n const clickedTooltip = this.queryTooltip(event.target);\n this.clickedTooltip = clickedTooltip;\n if (clickedTooltip) {\n this.toggleTooltip(clickedTooltip, false);\n }\n }\n focusShow(event) {\n this.focusEvent(event, true);\n }\n blurHide(event) {\n this.focusEvent(event, false);\n }\n static get is() { return \"calcite-tooltip-manager\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"calcite-tooltip-manager.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-tooltip-manager.css\"]\n }; }\n static get properties() { return {\n \"selector\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"default\",\n \"text\": \"`[data-calcite-tooltip-reference]`\"\n }],\n \"text\": \"CSS Selector to match reference elements for tooltips. Reference elements will be identified by this selector in order to open their associated tooltip.\"\n },\n \"attribute\": \"selector\",\n \"reflect\": false,\n \"defaultValue\": \"`[${TOOLTIP_REFERENCE}]`\"\n }\n }; }\n static get elementRef() { return \"el\"; }\n static get listeners() { return [{\n \"name\": \"keyup\",\n \"method\": \"keyUpHandler\",\n \"target\": \"document\",\n \"capture\": false,\n \"passive\": false\n }, {\n \"name\": \"mouseover\",\n \"method\": \"mouseEnterShow\",\n \"target\": undefined,\n \"capture\": true,\n \"passive\": true\n }, {\n \"name\": \"mouseout\",\n \"method\": \"mouseLeaveHide\",\n \"target\": undefined,\n \"capture\": true,\n \"passive\": true\n }, {\n \"name\": \"click\",\n \"method\": \"clickHandler\",\n \"target\": undefined,\n \"capture\": true,\n \"passive\": false\n }, {\n \"name\": \"focus\",\n \"method\": \"focusShow\",\n \"target\": undefined,\n \"capture\": true,\n \"passive\": false\n }, {\n \"name\": \"blur\",\n \"method\": \"blurHide\",\n \"target\": undefined,\n \"capture\": true,\n \"passive\": false\n }]; }\n}\n"]}
@@ -1,11 +0,0 @@
1
- /*!
2
- * Copyright 2021 Esri
3
- * Licensed under the Apache License, Version 2.0
4
- * http://www.apache.org/licenses/LICENSE-2.0
5
- */
6
- import{r as t,c as e,h as i,g as a}from"./p-2e1cd889.js";import{a as o,C as n}from"./p-e762b2d1.js";import"./p-ec178ea9.js";
7
- /*!
8
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
9
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
10
- */const c={content:"content",invalid:"invalid",toggle:"toggle",toggleSwitch:"toggle--switch",toggleSwitchContent:"toggle--switch__content",toggleSwitchText:"toggle--switch__text",sectionHeader:"section-header",sectionHeaderText:"section-header__text",statusIcon:"status-icon",valid:"valid"};const s={collapse:"Collapse",expand:"Expand"};const l={menuOpen:"chevron-down",menuClosedLeft:"chevron-left",menuClosedRight:"chevron-right",valid:"check-circle",invalid:"exclamation-mark-triangle"};const r="@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{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1);display:block}:host([open]){border-style:solid;border-width:0;border-bottom-color:var(--calcite-ui-border-3);border-bottom-width:1px}:host(:last-child){border-bottom-width:0}.toggle{background-color:transparent;border-width:0;color:var(--calcite-ui-text-2);font-family:var(--calcite-sans-family);font-weight:var(--calcite-font-weight-medium);width:100%}.toggle--switch,.section-header{align-items:center;cursor:pointer;display:flex;margin-left:0;margin-right:0;margin-top:0.25rem;margin-bottom:0.25rem;padding-left:0;padding-right:0;padding-top:0.5rem;padding-bottom:0.5rem;-webkit-user-select:none;user-select:none;font-size:var(--calcite-font-size--1);outline-offset:0;outline-color:transparent;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}.toggle--switch:focus,.section-header:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.toggle--switch:hover,.section-header:hover{color:var(--calcite-ui-text-1)}.section-header .status-icon{align-self:flex-end}.section-header__text{flex:1 1 auto;margin-left:0.75rem;margin-right:0.75rem;margin-top:0;margin-bottom:0;text-align:initial;word-wrap:anywhere}.toggle--switch calcite-switch{pointer-events:none;margin-left:0.25rem}.toggle--switch .status-icon{margin-left:0.5rem}.toggle--switch__content{display:flex;align-items:center;flex:1 1 auto}.status-icon.valid{color:var(--calcite-ui-success)}.status-icon.invalid{color:var(--calcite-ui-danger)}.calcite--rtl .toggle--switch calcite-switch{margin-left:0;margin-right:0.25rem}.calcite--rtl .toggle--switch .status-icon{margin-left:0;margin-right:0.5rem}";let d=class{constructor(i){t(this,i);this.calciteBlockSectionToggle=e(this,"calciteBlockSectionToggle",7);this.open=false;this.toggleDisplay="button";this.handleHeaderKeyDown=t=>{if(t.key===" "||t.key==="Enter"){this.toggleSection();t.preventDefault();t.stopPropagation()}};this.toggleSection=()=>{this.open=!this.open;this.calciteBlockSectionToggle.emit()}}renderStatusIcon(){var t;const{status:e}=this;const a=(t=l[e])!==null&&t!==void 0?t:false;const o={[c.statusIcon]:true,[c.valid]:e=="valid",[c.invalid]:e=="invalid"};return!!a?i("calcite-icon",{class:o,icon:a,scale:"s"}):null}render(){const{el:t,intlCollapse:e,intlExpand:a,open:r,text:d,toggleDisplay:m}=this;const g=o(t);const h=r?l.menuOpen:g==="rtl"?l.menuClosedLeft:l.menuClosedRight;const u=r?e||s.collapse:a||s.expand;const p=m==="switch"?i("div",{"aria-label":u,class:{[c.toggle]:true,[c.toggleSwitch]:true},onClick:this.toggleSection,onKeyDown:this.handleHeaderKeyDown,tabIndex:0,title:u},i("div",{class:c.toggleSwitchContent},i("span",{class:c.toggleSwitchText},d)),i("calcite-switch",{checked:r,label:u,scale:"s",tabIndex:-1}),this.renderStatusIcon()):i("button",{"aria-label":u,class:{[c.sectionHeader]:true,[c.toggle]:true},name:u,onClick:this.toggleSection},i("calcite-icon",{icon:h,scale:"s"}),i("span",{class:c.sectionHeaderText},d),this.renderStatusIcon());return i("section",{"aria-expanded":r.toString(),class:{[n.rtl]:g==="rtl"}},p,i("div",{class:c.content,hidden:!r},i("slot",null)))}get el(){return a(this)}};d.style=r;export{d as calcite_block_section};
11
- //# sourceMappingURL=p-093edbdc.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["node_modules/@esri/calcite-components/dist/collection/components/calcite-block-section/resources.js","node_modules/@esri/calcite-components/dist/collection/components/calcite-block-section/calcite-block-section.css?tag=calcite-block-section&encapsulation=shadow","node_modules/@esri/calcite-components/dist/collection/components/calcite-block-section/calcite-block-section.js"],"names":["CSS","content","invalid","toggle","toggleSwitch","toggleSwitchContent","toggleSwitchText","sectionHeader","sectionHeaderText","statusIcon","valid","TEXT","collapse","expand","ICONS","menuOpen","menuClosedLeft","menuClosedRight","calciteBlockSectionCss","CalciteBlockSection","[object Object]","hostRef","this","open","toggleDisplay","handleHeaderKeyDown","event","key","toggleSection","preventDefault","stopPropagation","calciteBlockSectionToggle","emit","_a","status","statusIconClasses","h","class","icon","scale","el","intlCollapse","intlExpand","text","dir","getElementDir","arrowIcon","toggleLabel","headerNode","aria-label","onClick","onKeyDown","tabIndex","title","checked","label","renderStatusIcon","name","aria-expanded","toString","CSS_UTILITY","rtl","hidden"],"mappings":";;;;;;;;;GAIO,MAAMA,EAAM,CACjBC,QAAS,UACTC,QAAS,UACTC,OAAQ,SACRC,aAAc,iBACdC,oBAAqB,0BACrBC,iBAAkB,uBAClBC,cAAe,iBACfC,kBAAmB,uBACnBC,WAAY,cACZC,MAAO,SAEF,MAAMC,EAAO,CAClBC,SAAU,WACVC,OAAQ,UAEH,MAAMC,EAAQ,CACnBC,SAAU,eACVC,eAAgB,eAChBC,gBAAiB,gBACjBP,MAAO,eACPR,QAAS,6BCzBX,MAAMgB,EAAyB,m+ECWlBC,EAAmB,MAC9BC,YAAAC,kFAIEC,KAAKC,KAAO,MAMZD,KAAKE,cAAgB,SAMrBF,KAAKG,oBAAuBC,IAC1B,GAAIA,EAAMC,MAAQ,KAAOD,EAAMC,MAAQ,QAAS,CAC9CL,KAAKM,gBACLF,EAAMG,iBACNH,EAAMI,oBAGVR,KAAKM,cAAgB,KACnBN,KAAKC,MAAQD,KAAKC,KAClBD,KAAKS,0BAA0BC,QAQnCZ,mBACE,IAAIa,EACJ,MAAMC,OAAEA,GAAWZ,KACnB,MAAMb,GAAcwB,EAAKnB,EAAMoB,MAAa,MAAQD,SAAY,EAAIA,EAAK,MACzE,MAAME,EAAoB,CACxBf,CAACpB,EAAIS,YAAa,KAClBW,CAACpB,EAAIU,OAAQwB,GAAU,QACvBd,CAACpB,EAAIE,SAAUgC,GAAU,WAE3B,QAASzB,EAAc2B,EAAE,eAAgB,CAAEC,MAAOF,EAAmBG,KAAM7B,EAAY8B,MAAO,MAAU,KAE1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cite-components/blob/master/LICENSE.md for details.\n */\nexport const CSS = {\n content: \"content\",\n invalid: \"invalid\",\n toggle: \"toggle\",\n toggleSwitch: \"toggle--switch\",\n toggleSwitchContent: \"toggle--switch__content\",\n toggleSwitchText: \"toggle--switch__text\",\n sectionHeader: \"section-header\",\n sectionHeaderText: \"section-header__text\",\n statusIcon: \"status-icon\",\n valid: \"valid\"\n};\nexport const TEXT = {\n collapse: \"Collapse\",\n expand: \"Expand\"\n};\nexport const ICONS = {\n menuOpen: \"chevron-down\",\n menuClosedLeft: \"chevron-left\",\n menuClosedRight: \"chevron-right\",\n valid: \"check-circle\",\n invalid: \"exclamation-mark-triangle\"\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 box-sizing: border-box;\n background-color: var(--calcite-ui-foreground-1);\n color: var(--calcite-ui-text-2);\n font-size: var(--calcite-font-size--1);\n display: block;\n}\n\n:host([open]) {\n border-style: solid;\n border-width: 0;\n border-bottom-color: var(--calcite-ui-border-3);\n border-bottom-width: 1px;\n}\n\n:host(:last-child) {\n border-bottom-width: 0;\n}\n\n.toggle {\n background-color: transparent;\n border-width: 0;\n color: var(--calcite-ui-text-2);\n font-family: var(--calcite-sans-family);\n font-weight: var(--calcite-font-weight-medium);\n width: 100%;\n}\n\n.toggle--switch,\n.section-header {\n align-items: center;\n cursor: pointer;\n display: flex;\n margin-left: 0;\n margin-right: 0;\n margin-top: 0.25rem;\n margin-bottom: 0.25rem;\n padding-left: 0;\n padding-right: 0;\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n -webkit-user-select: none;\n user-select: none;\n font-size: var(--calcite-font-size--1);\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.toggle--switch:focus,\n.section-header:focus {\n outline: 2px solid var(--calcite-ui-brand);\n outline-offset: 2px;\n}\n\n.toggle--switch:hover,\n.section-header:hover {\n color: var(--calcite-ui-text-1);\n}\n\n.section-header .status-icon {\n align-self: flex-end;\n}\n\n.section-header__text {\n flex: 1 1 auto;\n margin-left: 0.75rem;\n margin-right: 0.75rem;\n margin-top: 0;\n margin-bottom: 0;\n text-align: initial;\n word-wrap: anywhere;\n}\n\n.toggle--switch calcite-switch {\n pointer-events: none;\n margin-left: 0.25rem;\n}\n\n.toggle--switch .status-icon {\n margin-left: 0.5rem;\n}\n\n.toggle--switch__content {\n display: flex;\n align-items: center;\n flex: 1 1 auto;\n}\n\n.status-icon.valid {\n color: var(--calcite-ui-success);\n}\n\n.status-icon.invalid {\n color: var(--calcite-ui-danger);\n}\n\n.calcite--rtl .toggle--switch calcite-switch {\n margin-left: 0;\n margin-right: 0.25rem;\n}\n\n.calcite--rtl .toggle--switch .status-icon {\n margin-left: 0;\n margin-right: 0.5rem;\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, Prop, h } from \"@stencil/core\";\nimport { getElementDir } from \"../../utils/dom\";\nimport { CSS_UTILITY } from \"../../utils/resources\";\nimport { CSS, ICONS, TEXT } from \"./resources\";\n/**\n * @slot - A slot for adding content to the block section.\n */\nexport class CalciteBlockSection {\n constructor() {\n /**\n * When true, the block's section content will be displayed.\n */\n this.open = false;\n /**\n * This property determines the look of the section toggle.\n * If the value is \"switch\", a toggle-switch will be displayed.\n * If the value is \"button\", a clickable header is displayed.\n */\n this.toggleDisplay = \"button\";\n // --------------------------------------------------------------------------\n //\n // Private Methods\n //\n // --------------------------------------------------------------------------\n this.handleHeaderKeyDown = (event) => {\n if (event.key === \" \" || event.key === \"Enter\") {\n this.toggleSection();\n event.preventDefault();\n event.stopPropagation();\n }\n };\n this.toggleSection = () => {\n this.open = !this.open;\n this.calciteBlockSectionToggle.emit();\n };\n }\n // --------------------------------------------------------------------------\n //\n // Render Methods\n //\n // --------------------------------------------------------------------------\n renderStatusIcon() {\n var _a;\n const { status } = this;\n const statusIcon = (_a = ICONS[status]) !== null && _a !== void 0 ? _a : false;\n const statusIconClasses = {\n [CSS.statusIcon]: true,\n [CSS.valid]: status == \"valid\",\n [CSS.invalid]: status == \"invalid\"\n };\n return !!statusIcon ? (h(\"calcite-icon\", { class: statusIconClasses, icon: statusIcon, scale: \"s\" })) : null;\n }\n render() {\n const { el, intlCollapse, intlExpand, open, text, toggleDisplay } = this;\n const dir = getElementDir(el);\n const arrowIcon = open\n ? ICONS.menuOpen\n : dir === \"rtl\"\n ? ICONS.menuClosedLeft\n : ICONS.menuClosedRight;\n const toggleLabel = open ? intlCollapse || TEXT.collapse : intlExpand || TEXT.expand;\n const headerNode = toggleDisplay === \"switch\" ? (h(\"div\", { \"aria-label\": toggleLabel, class: {\n [CSS.toggle]: true,\n [CSS.toggleSwitch]: true\n }, onClick: this.toggleSection, onKeyDown: this.handleHeaderKeyDown, tabIndex: 0, title: toggleLabel },\n h(\"div\", { class: CSS.toggleSwitchContent },\n h(\"span\", { class: CSS.toggleSwitchText }, text)),\n h(\"calcite-switch\", { checked: open, label: toggleLabel, scale: \"s\", tabIndex: -1 }),\n this.renderStatusIcon())) : (h(\"button\", { \"aria-label\": toggleLabel, class: {\n [CSS.sectionHeader]: true,\n [CSS.toggle]: true\n }, name: toggleLabel, onClick: this.toggleSection },\n h(\"calcite-icon\", { icon: arrowIcon, scale: \"s\" }),\n h(\"span\", { class: CSS.sectionHeaderText }, text),\n this.renderStatusIcon()));\n return (h(\"section\", { \"aria-expanded\": open.toString(), class: { [CSS_UTILITY.rtl]: dir === \"rtl\" } },\n headerNode,\n h(\"div\", { class: CSS.content, hidden: !open },\n h(\"slot\", null))));\n }\n static get is() { return \"calcite-block-section\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"calcite-block-section.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"calcite-block-section.css\"]\n }; }\n static get properties() { return {\n \"intlCollapse\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Tooltip used for the toggle when expanded.\"\n },\n \"attribute\": \"intl-collapse\",\n \"reflect\": false\n },\n \"intlExpand\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Tooltip used for the toggle when collapsed.\"\n },\n \"attribute\": \"intl-expand\",\n \"reflect\": false\n },\n \"open\": {\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\": \"When true, the block's section content will be displayed.\"\n },\n \"attribute\": \"open\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"status\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Status\",\n \"resolved\": \"\\\"idle\\\" | \\\"invalid\\\" | \\\"valid\\\"\",\n \"references\": {\n \"Status\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"BlockSection status. Adds indicator to show valid or invalid status.\"\n },\n \"attribute\": \"status\",\n \"reflect\": true\n },\n \"text\": {\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 displayed in the button.\"\n },\n \"attribute\": \"text\",\n \"reflect\": false\n },\n \"toggleDisplay\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"BlockSectionToggleDisplay\",\n \"resolved\": \"\\\"button\\\" | \\\"switch\\\"\",\n \"references\": {\n \"BlockSectionToggleDisplay\": {\n \"location\": \"import\",\n \"path\": \"./interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"This property determines the look of the section toggle.\\nIf the value is \\\"switch\\\", a toggle-switch will be displayed.\\nIf the value is \\\"button\\\", a clickable header is displayed.\"\n },\n \"attribute\": \"toggle-display\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"button\\\"\"\n }\n }; }\n static get events() { return [{\n \"method\": \"calciteBlockSectionToggle\",\n \"name\": \"calciteBlockSectionToggle\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Emitted when the header has been 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/form.js"],"names":["hiddenFormInputSlotName","isCheckable","component","onFormResetMap","WeakMap","formComponentSet","WeakSet","hasRegisteredFormComponentParent","form","formComponentEl","formComponentRegisterEventName","addEventListener","event","composedPath","some","element","has","stopPropagation","once","dispatchEvent","CustomEvent","bubbles","composed","connectForm","el","value","closestElementCrossShadowBoundary","formEl","defaultValue","defaultChecked","checked","boundOnFormReset","onFormReset","bind","add","this","disconnectForm","get","removeEventListener","delete","afterConnectDefaultValueSet","syncHiddenFormInput","name","ownerDocument","inputs","querySelectorAll","forEach","input","remove","values","Array","isArray","extra","seen","Set","valueMatch","find","val","defaultSyncHiddenFormInput","push","docFrag","pop","createElement","slot","createDocumentFragment","append","_a","disabled","required","tabIndex","call","HiddenFormInputSlot","h"],"mappings":";;;;;;;;;GASO,MAAMA,EAA0B,oBACvC,SAASC,EAAYC,GACnB,MAAO,YAAaA,EAEtB,MAAMC,EAAiB,IAAIC,QAC3B,MAAMC,EAAmB,IAAIC,QAC7B,SAASC,EAAiCC,EAAMC,GAE9C,MAAMC,EAAiC,uCACvC,IAAIH,EAAmC,MACvCC,EAAKG,iBAAiBD,GAAiCE,IACrDL,EAAmCK,EAChCC,eACAC,MAAMC,GAAYV,EAAiBW,IAAID,KAC1CH,EAAMK,oBACL,CAAEC,KAAM,OACXT,EAAgBU,cAAc,IAAIC,YAAYV,EAAgC,CAC5EW,QAAS,KACTC,SAAU,QAEZ,OAAOf,EAKF,SAASgB,EAAYrB,GAC1B,MAAMsB,GAAEA,EAAEC,MAAEA,GAAUvB,EACtB,MAAMM,EAAOkB,EAAkCF,EAAI,QACnD,IAAKhB,GAAQD,EAAiCC,EAAMgB,GAAK,CACvD,OAEFtB,EAAUyB,OAASnB,EACnBN,EAAU0B,aAAeH,EACzB,GAAIxB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J,EAAcmB,cAAc,SACpCf,EAAMgB,KAAO/D,EAEf,IAAK4D,EAAS,CACZA,EAAUjB,EAAcqB,yBAE1BJ,EAAQK,OAAOlB,GACfW,EAA2BxD,EAAW6C,EAAOtB,MAE/C,GAAImC,EAAS,CACXpC,EAAGyC,OAAOL,GAEZR,EAAMN,SAASC,GAAUA,EAAMC,WAEjC,SAASU,EAA2BxD,EAAW6C,EAAOtB,GACpD,IAAIyC,EACJ,MAAMtC,aAAEA,EAAYuC,SAAEA,EAAQzB,KAAEA,EAAI0B,SAAEA,GAAalE,EAEnD6C,EAAMnB,aAAeA,EACrBmB,EAAMoB,SAAWA,EACjBpB,EAAML,KAAOA,EACbK,EAAMqB,SAAWA,EACjBrB,EAAMsB,UAAY,EAClB,GAAIpE,EAAYC,GAAY,CAE1B6C,EAAMlB,eAAiB3B,EAAU2B,eAEjCkB,EAAMtB,MAAQvB,EAAU4B,QAAUL,GAAS,KAAO,GAElD,IAAK0C,IAAajE,EAAU4B,QAAS,CACnCiB,EAAMoB,SAAW,UAGhB,CACHpB,EAAMtB,MAAQA,GAAS,IAExByC,EAAKhE,EAAUuC,uBAAyB,MAAQyB,SAAY,OAAS,EAAIA,EAAGI,KAAKpE,EAAW6C,GAkBnF,MAACwB,EAAsB,EAAGrE,UAAAA,MACpCuC,EAAoBvC,GACpB,OAAOsE,EAAE,OAAQ,CAAE9B,KAAM1C","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 { closestElementCrossShadowBoundary } from \"./dom\";\nimport { h } from \"@stencil/core\";\n/**\n * Exported for testing purposes.\n */\nexport const hiddenFormInputSlotName = \"hidden-form-input\";\nfunction isCheckable(component) {\n return \"checked\" in component;\n}\nconst onFormResetMap = new WeakMap();\nconst formComponentSet = new WeakSet();\nfunction hasRegisteredFormComponentParent(form, formComponentEl) {\n // we use events as a way to test for nested form-associated components across shadow bounds\n const formComponentRegisterEventName = \"calciteInternalFormComponentRegister\";\n let hasRegisteredFormComponentParent = false;\n form.addEventListener(formComponentRegisterEventName, (event) => {\n hasRegisteredFormComponentParent = event\n .composedPath()\n .some((element) => formComponentSet.has(element));\n event.stopPropagation();\n }, { once: true });\n formComponentEl.dispatchEvent(new CustomEvent(formComponentRegisterEventName, {\n bubbles: true,\n composed: true\n }));\n return hasRegisteredFormComponentParent;\n}\n/**\n * Helper to set up form interactions on connectedCallback.\n */\nexport function connectForm(component) {\n const { el, value } = component;\n const form = closestElementCrossShadowBoundary(el, \"form\");\n if (!form || hasRegisteredFormComponentParent(form, el)) {\n return;\n }\n component.formEl = form;\n component.defaultValue = value;\n if (isCheckable(component)) {\n component.defaultChecked = component.checked;\n }\n const boundOnFormReset = (component.onFormReset || onFormReset).bind(component);\n form.addEventListener(\"reset\", boundOnFormReset);\n formComponentSet.add(el);\n}\nfunction onFormReset() {\n if (isCheckable(this)) {\n this.checked = this.defaultChecked;\n return;\n }\n this.value = this.defaultValue;\n}\n/**\n * Helper to tear down form interactions on disconnectedCallback.\n */\nexport function disconnectForm(component) {\n const { el, formEl } = component;\n if (!formEl) {\n return;\n }\n const boundOnFormReset = onFormResetMap.get(el);\n formEl.removeEventListener(\"reset\", boundOnFormReset);\n onFormResetMap.delete(el);\n component.formEl = null;\n formComponentSet.delete(el);\n}\n/**\n * Helper for setting the default value on initialization after connectedCallback.\n *\n * Note that this is only needed if the default value cannot be determined on connectedCallback.\n */\nexport function afterConnectDefaultValueSet(component, value) {\n component.defaultValue = value;\n}\n/**\n * Helper for maintaining a form-associated's hidden input in sync with the component.\n *\n * Based on Ionic's approach: https://github.com/ionic-team/ionic-framework/blob/e4bf052794af9aac07f887013b9250d2a045eba3/core/src/utils/helpers.ts#L198\n */\nfunction syncHiddenFormInput(component) {\n const { el, formEl, name, value } = component;\n const { ownerDocument } = el;\n const inputs = el.querySelectorAll(`input[slot=\"${hiddenFormInputSlotName}\"]`);\n if (!formEl || !name) {\n inputs.forEach((input) => input.remove());\n return;\n }\n const values = Array.isArray(value) ? value : [value];\n const extra = [];\n const seen = new Set();\n inputs.forEach((input) => {\n const valueMatch = values.find((val) => \n /* intentional non-strict equality check */\n val == input.value);\n if (valueMatch != null) {\n seen.add(valueMatch);\n defaultSyncHiddenFormInput(component, input, valueMatch);\n }\n else {\n extra.push(input);\n }\n });\n let docFrag;\n values.forEach((value) => {\n if (seen.has(value)) {\n return;\n }\n let input = extra.pop();\n if (!input) {\n input = ownerDocument.createElement(\"input\");\n input.slot = hiddenFormInputSlotName;\n }\n if (!docFrag) {\n docFrag = ownerDocument.createDocumentFragment();\n }\n docFrag.append(input);\n defaultSyncHiddenFormInput(component, input, value);\n });\n if (docFrag) {\n el.append(docFrag);\n }\n extra.forEach((input) => input.remove());\n}\nfunction defaultSyncHiddenFormInput(component, input, value) {\n var _a;\n const { defaultValue, disabled, name, required } = component;\n // keep in sync to prevent losing reset value\n input.defaultValue = defaultValue;\n input.disabled = disabled;\n input.name = name;\n input.required = required;\n input.tabIndex = -1;\n if (isCheckable(component)) {\n // keep in sync to prevent losing reset value\n input.defaultChecked = component.defaultChecked;\n // heuristic to support default/on mode from https://html.spec.whatwg.org/multipage/input.html#dom-input-value-default-on\n input.value = component.checked ? value || \"on\" : \"\";\n // we disable the component when not checked to avoid having its value submitted\n if (!disabled && !component.checked) {\n input.disabled = true;\n }\n }\n else {\n input.value = value || \"\";\n }\n (_a = component.syncHiddenFormInput) === null || _a === void 0 ? void 0 : _a.call(component, input);\n}\n/**\n * Helper to render the slot for form-associated component's hidden input.\n *\n * If the component has a default slot, this must be placed at the bottom of the component's root container to ensure it is the last child.\n *\n * render(): VNode {\n * <Host>\n * <div class={CSS.container}>\n * // ...\n * <HiddenFormInputSlot component={this} />\n * </div>\n * </Host>\n * }\n *\n * Note that the hidden-form-input Sass mixin must be added to the component's style to apply specific styles.\n */\nexport const HiddenFormInputSlot = ({ component }) => {\n syncHiddenFormInput(component);\n return h(\"slot\", { name: hiddenFormInputSlotName });\n};\n"]}
@@ -1,7 +0,0 @@
1
- /*!
2
- * Copyright 2021 Esri
3
- * Licensed under the Apache License, Version 2.0
4
- * http://www.apache.org/licenses/LICENSE-2.0
5
- */
6
- function t(t,n,r){return r={path:n,exports:{},require:function(t,n){return e()}},t(r,r.exports),r.exports}function e(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var n={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};var r=function t(e){if(!e||typeof e==="string"){return false}return e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&e.constructor.name!=="String")};var s=t((function(t){var e=Array.prototype.concat;var n=Array.prototype.slice;var s=t.exports=function t(s){var o=[];for(var a=0,i=s.length;a<i;a++){var l=s[a];if(r(l)){o=e.call(o,n.call(l))}else{o.push(l)}}return o};s.wrap=function(t){return function(){return t(s(arguments))}}}));var o=t((function(t){var e=Object.hasOwnProperty;var r={};for(var o in n){if(e.call(n,o)){r[n[o]]=o}}var a=t.exports={to:{},get:{}};a.get=function(t){var e=t.substring(0,3).toLowerCase();var n;var r;switch(e){case"hsl":n=a.get.hsl(t);r="hsl";break;case"hwb":n=a.get.hwb(t);r="hwb";break;default:n=a.get.rgb(t);r="rgb";break}if(!n){return null}return{model:r,value:n}};a.get.rgb=function(t){if(!t){return null}var r=/^#([a-f0-9]{3,4})$/i;var s=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i;var o=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/;var a=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/;var l=/^(\w+)$/;var c=[0,0,0,1];var u;var h;var f;if(u=t.match(s)){f=u[2];u=u[1];for(h=0;h<3;h++){var d=h*2;c[h]=parseInt(u.slice(d,d+2),16)}if(f){c[3]=parseInt(f,16)/255}}else if(u=t.match(r)){u=u[1];f=u[3];for(h=0;h<3;h++){c[h]=parseInt(u[h]+u[h],16)}if(f){c[3]=parseInt(f+f,16)/255}}else if(u=t.match(o)){for(h=0;h<3;h++){c[h]=parseInt(u[h+1],0)}if(u[4]){if(u[5]){c[3]=parseFloat(u[4])*.01}else{c[3]=parseFloat(u[4])}}}else if(u=t.match(a)){for(h=0;h<3;h++){c[h]=Math.round(parseFloat(u[h+1])*2.55)}if(u[4]){if(u[5]){c[3]=parseFloat(u[4])*.01}else{c[3]=parseFloat(u[4])}}}else if(u=t.match(l)){if(u[1]==="transparent"){return[0,0,0,0]}if(!e.call(n,u[1])){return null}c=n[u[1]];c[3]=1;return c}else{return null}for(h=0;h<3;h++){c[h]=i(c[h],0,255)}c[3]=i(c[3],0,1);return c};a.get.hsl=function(t){if(!t){return null}var e=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?[\d\.]+)\s*)?\)$/;var n=t.match(e);if(n){var r=parseFloat(n[4]);var s=(parseFloat(n[1])%360+360)%360;var o=i(parseFloat(n[2]),0,100);var a=i(parseFloat(n[3]),0,100);var l=i(isNaN(r)?1:r,0,1);return[s,o,a,l]}return null};a.get.hwb=function(t){if(!t){return null}var e=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/;var n=t.match(e);if(n){var r=parseFloat(n[4]);var s=(parseFloat(n[1])%360+360)%360;var o=i(parseFloat(n[2]),0,100);var a=i(parseFloat(n[3]),0,100);var l=i(isNaN(r)?1:r,0,1);return[s,o,a,l]}return null};a.to.hex=function(){var t=s(arguments);return"#"+l(t[0])+l(t[1])+l(t[2])+(t[3]<1?l(Math.round(t[3]*255)):"")};a.to.rgb=function(){var t=s(arguments);return t.length<4||t[3]===1?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"};a.to.rgb.percent=function(){var t=s(arguments);var e=Math.round(t[0]/255*100);var n=Math.round(t[1]/255*100);var r=Math.round(t[2]/255*100);return t.length<4||t[3]===1?"rgb("+e+"%, "+n+"%, "+r+"%)":"rgba("+e+"%, "+n+"%, "+r+"%, "+t[3]+")"};a.to.hsl=function(){var t=s(arguments);return t.length<4||t[3]===1?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"};a.to.hwb=function(){var t=s(arguments);var e="";if(t.length>=4&&t[3]!==1){e=", "+t[3]}return"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"};a.to.keyword=function(t){return r[t.slice(0,3)]};function i(t,e,n){return Math.min(Math.max(e,t),n)}function l(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}}));var a={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const i={};for(const t of Object.keys(a)){i[a[t]]=t}const l={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var c=l;for(const t of Object.keys(l)){if(!("channels"in l[t])){throw new Error("missing channels property: "+t)}if(!("labels"in l[t])){throw new Error("missing channel labels property: "+t)}if(l[t].labels.length!==l[t].channels){throw new Error("channel and label counts mismatch: "+t)}const{channels:e,labels:n}=l[t];delete l[t].channels;delete l[t].labels;Object.defineProperty(l[t],"channels",{value:e});Object.defineProperty(l[t],"labels",{value:n})}l.rgb.hsl=function(t){const e=t[0]/255;const n=t[1]/255;const r=t[2]/255;const s=Math.min(e,n,r);const o=Math.max(e,n,r);const a=o-s;let i;let l;if(o===s){i=0}else if(e===o){i=(n-r)/a}else if(n===o){i=2+(r-e)/a}else if(r===o){i=4+(e-n)/a}i=Math.min(i*60,360);if(i<0){i+=360}const c=(s+o)/2;if(o===s){l=0}else if(c<=.5){l=a/(o+s)}else{l=a/(2-o-s)}return[i,l*100,c*100]};l.rgb.hsv=function(t){let e;let n;let r;let s;let o;const a=t[0]/255;const i=t[1]/255;const l=t[2]/255;const c=Math.max(a,i,l);const u=c-Math.min(a,i,l);const h=function(t){return(c-t)/6/u+1/2};if(u===0){s=0;o=0}else{o=u/c;e=h(a);n=h(i);r=h(l);if(a===c){s=r-n}else if(i===c){s=1/3+e-r}else if(l===c){s=2/3+n-e}if(s<0){s+=1}else if(s>1){s-=1}}return[s*360,o*100,c*100]};l.rgb.hwb=function(t){const e=t[0];const n=t[1];let r=t[2];const s=l.rgb.hsl(t)[0];const o=1/255*Math.min(e,Math.min(n,r));r=1-1/255*Math.max(e,Math.max(n,r));return[s,o*100,r*100]};l.rgb.cmyk=function(t){const e=t[0]/255;const n=t[1]/255;const r=t[2]/255;const s=Math.min(1-e,1-n,1-r);const o=(1-e-s)/(1-s)||0;const a=(1-n-s)/(1-s)||0;const i=(1-r-s)/(1-s)||0;return[o*100,a*100,i*100,s*100]};function u(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}l.rgb.keyword=function(t){const e=i[t];if(e){return e}let n=Infinity;let r;for(const e of Object.keys(a)){const s=a[e];const o=u(t,s);if(o<n){n=o;r=e}}return r};l.keyword.rgb=function(t){return a[t]};l.rgb.xyz=function(t){let e=t[0]/255;let n=t[1]/255;let r=t[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92;n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const s=e*.4124+n*.3576+r*.1805;const o=e*.2126+n*.7152+r*.0722;const a=e*.0193+n*.1192+r*.9505;return[s*100,o*100,a*100]};l.rgb.lab=function(t){const e=l.rgb.xyz(t);let n=e[0];let r=e[1];let s=e[2];n/=95.047;r/=100;s/=108.883;n=n>.008856?n**(1/3):7.787*n+16/116;r=r>.008856?r**(1/3):7.787*r+16/116;s=s>.008856?s**(1/3):7.787*s+16/116;const o=116*r-16;const a=500*(n-r);const i=200*(r-s);return[o,a,i]};l.hsl.rgb=function(t){const e=t[0]/360;const n=t[1]/100;const r=t[2]/100;let s;let o;let a;if(n===0){a=r*255;return[a,a,a]}if(r<.5){s=r*(1+n)}else{s=r+n-r*n}const i=2*r-s;const l=[0,0,0];for(let t=0;t<3;t++){o=e+1/3*-(t-1);if(o<0){o++}if(o>1){o--}if(6*o<1){a=i+(s-i)*6*o}else if(2*o<1){a=s}else if(3*o<2){a=i+(s-i)*(2/3-o)*6}else{a=i}l[t]=a*255}return l};l.hsl.hsv=function(t){const e=t[0];let n=t[1]/100;let r=t[2]/100;let s=n;const o=Math.max(r,.01);r*=2;n*=r<=1?r:2-r;s*=o<=1?o:2-o;const a=(r+n)/2;const i=r===0?2*s/(o+s):2*n/(r+n);return[e,i*100,a*100]};l.hsv.rgb=function(t){const e=t[0]/60;const n=t[1]/100;let r=t[2]/100;const s=Math.floor(e)%6;const o=e-Math.floor(e);const a=255*r*(1-n);const i=255*r*(1-n*o);const l=255*r*(1-n*(1-o));r*=255;switch(s){case 0:return[r,l,a];case 1:return[i,r,a];case 2:return[a,r,l];case 3:return[a,i,r];case 4:return[l,a,r];case 5:return[r,a,i]}};l.hsv.hsl=function(t){const e=t[0];const n=t[1]/100;const r=t[2]/100;const s=Math.max(r,.01);let o;let a;a=(2-n)*r;const i=(2-n)*s;o=n*s;o/=i<=1?i:2-i;o=o||0;a/=2;return[e,o*100,a*100]};l.hwb.rgb=function(t){const e=t[0]/360;let n=t[1]/100;let r=t[2]/100;const s=n+r;let o;if(s>1){n/=s;r/=s}const a=Math.floor(6*e);const i=1-r;o=6*e-a;if((a&1)!==0){o=1-o}const l=n+o*(i-n);let c;let u;let h;switch(a){default:case 6:case 0:c=i;u=l;h=n;break;case 1:c=l;u=i;h=n;break;case 2:c=n;u=i;h=l;break;case 3:c=n;u=l;h=i;break;case 4:c=l;u=n;h=i;break;case 5:c=i;u=n;h=l;break}return[c*255,u*255,h*255]};l.cmyk.rgb=function(t){const e=t[0]/100;const n=t[1]/100;const r=t[2]/100;const s=t[3]/100;const o=1-Math.min(1,e*(1-s)+s);const a=1-Math.min(1,n*(1-s)+s);const i=1-Math.min(1,r*(1-s)+s);return[o*255,a*255,i*255]};l.xyz.rgb=function(t){const e=t[0]/100;const n=t[1]/100;const r=t[2]/100;let s;let o;let a;s=e*3.2406+n*-1.5372+r*-.4986;o=e*-.9689+n*1.8758+r*.0415;a=e*.0557+n*-.204+r*1.057;s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92;o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92;a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92;s=Math.min(Math.max(0,s),1);o=Math.min(Math.max(0,o),1);a=Math.min(Math.max(0,a),1);return[s*255,o*255,a*255]};l.xyz.lab=function(t){let e=t[0];let n=t[1];let r=t[2];e/=95.047;n/=100;r/=108.883;e=e>.008856?e**(1/3):7.787*e+16/116;n=n>.008856?n**(1/3):7.787*n+16/116;r=r>.008856?r**(1/3):7.787*r+16/116;const s=116*n-16;const o=500*(e-n);const a=200*(n-r);return[s,o,a]};l.lab.xyz=function(t){const e=t[0];const n=t[1];const r=t[2];let s;let o;let a;o=(e+16)/116;s=n/500+o;a=o-r/200;const i=o**3;const l=s**3;const c=a**3;o=i>.008856?i:(o-16/116)/7.787;s=l>.008856?l:(s-16/116)/7.787;a=c>.008856?c:(a-16/116)/7.787;s*=95.047;o*=100;a*=108.883;return[s,o,a]};l.lab.lch=function(t){const e=t[0];const n=t[1];const r=t[2];let s;const o=Math.atan2(r,n);s=o*360/2/Math.PI;if(s<0){s+=360}const a=Math.sqrt(n*n+r*r);return[e,a,s]};l.lch.lab=function(t){const e=t[0];const n=t[1];const r=t[2];const s=r/360*2*Math.PI;const o=n*Math.cos(s);const a=n*Math.sin(s);return[e,o,a]};l.rgb.ansi16=function(t,e=null){const[n,r,s]=t;let o=e===null?l.rgb.hsv(t)[2]:e;o=Math.round(o/50);if(o===0){return 30}let a=30+(Math.round(s/255)<<2|Math.round(r/255)<<1|Math.round(n/255));if(o===2){a+=60}return a};l.hsv.ansi16=function(t){return l.rgb.ansi16(l.hsv.rgb(t),t[2])};l.rgb.ansi256=function(t){const e=t[0];const n=t[1];const r=t[2];if(e===n&&n===r){if(e<8){return 16}if(e>248){return 231}return Math.round((e-8)/247*24)+232}const s=16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5);return s};l.ansi16.rgb=function(t){let e=t%10;if(e===0||e===7){if(t>50){e+=3.5}e=e/10.5*255;return[e,e,e]}const n=(~~(t>50)+1)*.5;const r=(e&1)*n*255;const s=(e>>1&1)*n*255;const o=(e>>2&1)*n*255;return[r,s,o]};l.ansi256.rgb=function(t){if(t>=232){const e=(t-232)*10+8;return[e,e,e]}t-=16;let e;const n=Math.floor(t/36)/5*255;const r=Math.floor((e=t%36)/6)/5*255;const s=e%6/5*255;return[n,r,s]};l.rgb.hex=function(t){const e=((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255);const n=e.toString(16).toUpperCase();return"000000".substring(n.length)+n};l.hex.rgb=function(t){const e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e){return[0,0,0]}let n=e[0];if(e[0].length===3){n=n.split("").map((t=>t+t)).join("")}const r=parseInt(n,16);const s=r>>16&255;const o=r>>8&255;const a=r&255;return[s,o,a]};l.rgb.hcg=function(t){const e=t[0]/255;const n=t[1]/255;const r=t[2]/255;const s=Math.max(Math.max(e,n),r);const o=Math.min(Math.min(e,n),r);const a=s-o;let i;let l;if(a<1){i=o/(1-a)}else{i=0}if(a<=0){l=0}else if(s===e){l=(n-r)/a%6}else if(s===n){l=2+(r-e)/a}else{l=4+(e-n)/a}l/=6;l%=1;return[l*360,a*100,i*100]};l.hsl.hcg=function(t){const e=t[1]/100;const n=t[2]/100;const r=n<.5?2*e*n:2*e*(1-n);let s=0;if(r<1){s=(n-.5*r)/(1-r)}return[t[0],r*100,s*100]};l.hsv.hcg=function(t){const e=t[1]/100;const n=t[2]/100;const r=e*n;let s=0;if(r<1){s=(n-r)/(1-r)}return[t[0],r*100,s*100]};l.hcg.rgb=function(t){const e=t[0]/360;const n=t[1]/100;const r=t[2]/100;if(n===0){return[r*255,r*255,r*255]}const s=[0,0,0];const o=e%1*6;const a=o%1;const i=1-a;let l=0;switch(Math.floor(o)){case 0:s[0]=1;s[1]=a;s[2]=0;break;case 1:s[0]=i;s[1]=1;s[2]=0;break;case 2:s[0]=0;s[1]=1;s[2]=a;break;case 3:s[0]=0;s[1]=i;s[2]=1;break;case 4:s[0]=a;s[1]=0;s[2]=1;break;default:s[0]=1;s[1]=0;s[2]=i}l=(1-n)*r;return[(n*s[0]+l)*255,(n*s[1]+l)*255,(n*s[2]+l)*255]};l.hcg.hsv=function(t){const e=t[1]/100;const n=t[2]/100;const r=e+n*(1-e);let s=0;if(r>0){s=e/r}return[t[0],s*100,r*100]};l.hcg.hsl=function(t){const e=t[1]/100;const n=t[2]/100;const r=n*(1-e)+.5*e;let s=0;if(r>0&&r<.5){s=e/(2*r)}else if(r>=.5&&r<1){s=e/(2*(1-r))}return[t[0],s*100,r*100]};l.hcg.hwb=function(t){const e=t[1]/100;const n=t[2]/100;const r=e+n*(1-e);return[t[0],(r-e)*100,(1-r)*100]};l.hwb.hcg=function(t){const e=t[1]/100;const n=t[2]/100;const r=1-n;const s=r-e;let o=0;if(s<1){o=(r-s)/(1-s)}return[t[0],s*100,o*100]};l.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};l.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};l.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};l.gray.hsl=function(t){return[0,0,t[0]]};l.gray.hsv=l.gray.hsl;l.gray.hwb=function(t){return[0,100,t[0]]};l.gray.cmyk=function(t){return[0,0,0,t[0]]};l.gray.lab=function(t){return[t[0],0,0]};l.gray.hex=function(t){const e=Math.round(t[0]/100*255)&255;const n=(e<<16)+(e<<8)+e;const r=n.toString(16).toUpperCase();return"000000".substring(r.length)+r};l.rgb.gray=function(t){const e=(t[0]+t[1]+t[2])/3;return[e/255*100]};function h(){const t={};const e=Object.keys(c);for(let n=e.length,r=0;r<n;r++){t[e[r]]={distance:-1,parent:null}}return t}function f(t){const e=h();const n=[t];e[t].distance=0;while(n.length){const t=n.pop();const r=Object.keys(c[t]);for(let s=r.length,o=0;o<s;o++){const s=r[o];const a=e[s];if(a.distance===-1){a.distance=e[t].distance+1;a.parent=t;n.unshift(s)}}}return e}function d(t,e){return function(n){return e(t(n))}}function b(t,e){const n=[e[t].parent,t];let r=c[e[t].parent][t];let s=e[t].parent;while(e[s].parent){n.unshift(e[s].parent);r=d(c[e[s].parent][s],r);s=e[s].parent}r.conversion=n;return r}var g=function(t){const e=f(t);const n={};const r=Object.keys(e);for(let t=r.length,s=0;s<t;s++){const t=r[s];const o=e[t];if(o.parent===null){continue}n[t]=b(t,e)}return n};const y={};const m=Object.keys(c);function p(t){const e=function(...e){const n=e[0];if(n===undefined||n===null){return n}if(n.length>1){e=n}return t(e)};if("conversion"in t){e.conversion=t.conversion}return e}function v(t){const e=function(...e){const n=e[0];if(n===undefined||n===null){return n}if(n.length>1){e=n}const r=t(e);if(typeof r==="object"){for(let t=r.length,e=0;e<t;e++){r[e]=Math.round(r[e])}}return r};if("conversion"in t){e.conversion=t.conversion}return e}m.forEach((t=>{y[t]={};Object.defineProperty(y[t],"channels",{value:c[t].channels});Object.defineProperty(y[t],"labels",{value:c[t].labels});const e=g(t);const n=Object.keys(e);n.forEach((n=>{const r=e[n];y[t][n]=v(r);y[t][n].raw=p(r)}))}));var k=y;const w=[].slice;const M=["keyword","gray","hex"];const j={};for(const t of Object.keys(k)){j[w.call(k[t].labels).sort().join("")]=t}const O={};function q(t,e){if(!(this instanceof q)){return new q(t,e)}if(e&&e in M){e=null}if(e&&!(e in k)){throw new Error("Unknown model: "+e)}let n;let r;if(t==null){this.model="rgb";this.color=[0,0,0];this.valpha=1}else if(t instanceof q){this.model=t.model;this.color=t.color.slice();this.valpha=t.valpha}else if(typeof t==="string"){const e=o.get(t);if(e===null){throw new Error("Unable to parse color from string: "+t)}this.model=e.model;r=k[this.model].channels;this.color=e.value.slice(0,r);this.valpha=typeof e.value[r]==="number"?e.value[r]:1}else if(t.length>0){this.model=e||"rgb";r=k[this.model].channels;const n=w.call(t,0,r);this.color=N(n,r);this.valpha=typeof t[r]==="number"?t[r]:1}else if(typeof t==="number"){this.model="rgb";this.color=[t>>16&255,t>>8&255,t&255];this.valpha=1}else{this.valpha=1;const e=Object.keys(t);if("alpha"in t){e.splice(e.indexOf("alpha"),1);this.valpha=typeof t.alpha==="number"?t.alpha:0}const r=e.sort().join("");if(!(r in j)){throw new Error("Unable to parse color from object: "+JSON.stringify(t))}this.model=j[r];const s=k[this.model].labels;const o=[];for(n=0;n<s.length;n++){o.push(t[s[n]])}this.color=N(o)}if(O[this.model]){r=k[this.model].channels;for(n=0;n<r;n++){const t=O[this.model][n];if(t){this.color[n]=t(this.color[n])}}}this.valpha=Math.max(0,Math.min(1,this.valpha));if(Object.freeze){Object.freeze(this)}}q.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(t){let e=this.model in o.to?this:this.rgb();e=e.round(typeof t==="number"?t:1);const n=e.valpha===1?e.color:e.color.concat(this.valpha);return o.to[e.model](n)},percentString(t){const e=this.rgb().round(typeof t==="number"?t:1);const n=e.valpha===1?e.color:e.color.concat(this.valpha);return o.to.rgb.percent(n)},array(){return this.valpha===1?this.color.slice():this.color.concat(this.valpha)},object(){const t={};const e=k[this.model].channels;const n=k[this.model].labels;for(let r=0;r<e;r++){t[n[r]]=this.color[r]}if(this.valpha!==1){t.alpha=this.valpha}return t},unitArray(){const t=this.rgb().color;t[0]/=255;t[1]/=255;t[2]/=255;if(this.valpha!==1){t.push(this.valpha)}return t},unitObject(){const t=this.rgb().object();t.r/=255;t.g/=255;t.b/=255;if(this.valpha!==1){t.alpha=this.valpha}return t},round(t){t=Math.max(t||0,0);return new q(this.color.map(F(t)).concat(this.valpha),this.model)},alpha(t){if(arguments.length>0){return new q(this.color.concat(Math.max(0,Math.min(1,t))),this.model)}return this.valpha},red:A("rgb",0,z(255)),green:A("rgb",1,z(255)),blue:A("rgb",2,z(255)),hue:A(["hsl","hsv","hsl","hwb","hcg"],0,(t=>(t%360+360)%360)),saturationl:A("hsl",1,z(100)),lightness:A("hsl",2,z(100)),saturationv:A("hsv",1,z(100)),value:A("hsv",2,z(100)),chroma:A("hcg",1,z(100)),gray:A("hcg",2,z(100)),white:A("hwb",1,z(100)),wblack:A("hwb",2,z(100)),cyan:A("cmyk",0,z(100)),magenta:A("cmyk",1,z(100)),yellow:A("cmyk",2,z(100)),black:A("cmyk",3,z(100)),x:A("xyz",0,z(100)),y:A("xyz",1,z(100)),z:A("xyz",2,z(100)),l:A("lab",0,z(100)),a:A("lab",1),b:A("lab",2),keyword(t){if(arguments.length>0){return new q(t)}return k[this.model].keyword(this.color)},hex(t){if(arguments.length>0){return new q(t)}return o.to.hex(this.rgb().round().color)},rgbNumber(){const t=this.rgb().color;return(t[0]&255)<<16|(t[1]&255)<<8|t[2]&255},luminosity(){const t=this.rgb().color;const e=[];for(const[n,r]of t.entries()){const t=r/255;e[n]=t<=.03928?t/12.92:((t+.055)/1.055)**2.4}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast(t){const e=this.luminosity();const n=t.luminosity();if(e>n){return(e+.05)/(n+.05)}return(n+.05)/(e+.05)},level(t){const e=this.contrast(t);if(e>=7.1){return"AAA"}return e>=4.5?"AA":""},isDark(){const t=this.rgb().color;const e=(t[0]*299+t[1]*587+t[2]*114)/1e3;return e<128},isLight(){return!this.isDark()},negate(){const t=this.rgb();for(let e=0;e<3;e++){t.color[e]=255-t.color[e]}return t},lighten(t){const e=this.hsl();e.color[2]+=e.color[2]*t;return e},darken(t){const e=this.hsl();e.color[2]-=e.color[2]*t;return e},saturate(t){const e=this.hsl();e.color[1]+=e.color[1]*t;return e},desaturate(t){const e=this.hsl();e.color[1]-=e.color[1]*t;return e},whiten(t){const e=this.hwb();e.color[1]+=e.color[1]*t;return e},blacken(t){const e=this.hwb();e.color[2]+=e.color[2]*t;return e},grayscale(){const t=this.rgb().color;const e=t[0]*.3+t[1]*.59+t[2]*.11;return q.rgb(e,e,e)},fade(t){return this.alpha(this.valpha-this.valpha*t)},opaquer(t){return this.alpha(this.valpha+this.valpha*t)},rotate(t){const e=this.hsl();let n=e.color[0];n=(n+t)%360;n=n<0?360+n:n;e.color[0]=n;return e},mix(t,e){if(!t||!t.rgb){throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t)}const n=t.rgb();const r=this.rgb();const s=e===undefined?.5:e;const o=2*s-1;const a=n.alpha()-r.alpha();const i=((o*a===-1?o:(o+a)/(1+o*a))+1)/2;const l=1-i;return q.rgb(i*n.red()+l*r.red(),i*n.green()+l*r.green(),i*n.blue()+l*r.blue(),n.alpha()*s+r.alpha()*(1-s))}};for(const t of Object.keys(k)){if(M.includes(t)){continue}const e=k[t].channels;q.prototype[t]=function(){if(this.model===t){return new q(this)}if(arguments.length>0){return new q(arguments,t)}const n=typeof arguments[e]==="number"?e:this.valpha;return new q(E(k[this.model][t].raw(this.color)).concat(n),t)};q[t]=function(n){if(typeof n==="number"){n=N(w.call(arguments),e)}return new q(n,t)}}function x(t,e){return Number(t.toFixed(e))}function F(t){return function(e){return x(e,t)}}function A(t,e,n){t=Array.isArray(t)?t:[t];for(const r of t){(O[r]||(O[r]=[]))[e]=n}t=t[0];return function(r){let s;if(arguments.length>0){if(n){r=n(r)}s=this[t]();s.color[e]=r;return s}s=this[t]().color[e];if(n){s=n(s)}return s}}function z(t){return function(e){return Math.max(0,Math.min(t,e))}}function E(t){return Array.isArray(t)?t:[t]}function N(t,e){for(let n=0;n<e;n++){if(typeof t[n]!=="number"){t[n]=0}}return t}var I=q;export{I as c};
7
- //# sourceMappingURL=p-0c91e100.js.map