@esri/calcite-components 1.0.0-beta.70 → 1.0.0-beta.74

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1018) hide show
  1. package/dist/calcite/assets/calcite-date-picker/nls/bg.json +31 -0
  2. package/dist/calcite/assets/calcite-icon/centerAlign16.json +1 -0
  3. package/dist/calcite/assets/calcite-icon/centerAlign24.json +1 -0
  4. package/dist/calcite/assets/calcite-icon/centerAlign32.json +1 -0
  5. package/dist/calcite/assets/calcite-icon/checkSquareF16.json +1 -0
  6. package/dist/calcite/assets/calcite-icon/checkSquareF24.json +1 -0
  7. package/dist/calcite/assets/calcite-icon/checkSquareF32.json +1 -0
  8. package/dist/calcite/assets/calcite-icon/cloudy16.json +1 -0
  9. package/dist/calcite/assets/calcite-icon/cloudy24.json +1 -0
  10. package/dist/calcite/assets/calcite-icon/cloudy32.json +1 -0
  11. package/dist/calcite/assets/calcite-icon/convert16.json +1 -0
  12. package/dist/calcite/assets/calcite-icon/convert24.json +1 -0
  13. package/dist/calcite/assets/calcite-icon/convert32.json +1 -0
  14. package/dist/calcite/assets/calcite-icon/displaySelectionLock16.json +1 -0
  15. package/dist/calcite/assets/calcite-icon/displaySelectionLock24.json +1 -0
  16. package/dist/calcite/assets/calcite-icon/displaySelectionLock32.json +1 -0
  17. package/dist/calcite/assets/calcite-icon/displaySelectionUnlock16.json +1 -0
  18. package/dist/calcite/assets/calcite-icon/displaySelectionUnlock24.json +1 -0
  19. package/dist/calcite/assets/calcite-icon/displaySelectionUnlock32.json +1 -0
  20. package/dist/calcite/assets/calcite-icon/driveTimeThreshold16.json +1 -0
  21. package/dist/calcite/assets/calcite-icon/driveTimeThreshold24.json +1 -0
  22. package/dist/calcite/assets/calcite-icon/driveTimeThreshold32.json +1 -0
  23. package/dist/calcite/assets/calcite-icon/explore16.json +1 -0
  24. package/dist/calcite/assets/calcite-icon/explore24.json +1 -0
  25. package/dist/calcite/assets/calcite-icon/explore32.json +1 -0
  26. package/dist/calcite/assets/calcite-icon/fog16.json +1 -0
  27. package/dist/calcite/assets/calcite-icon/fog24.json +1 -0
  28. package/dist/calcite/assets/calcite-icon/fog32.json +1 -0
  29. package/dist/calcite/assets/calcite-icon/formDropdown16.json +1 -0
  30. package/dist/calcite/assets/calcite-icon/formDropdown24.json +1 -0
  31. package/dist/calcite/assets/calcite-icon/formDropdown32.json +1 -0
  32. package/dist/calcite/assets/calcite-icon/heavyRain16.json +1 -0
  33. package/dist/calcite/assets/calcite-icon/heavyRain24.json +1 -0
  34. package/dist/calcite/assets/calcite-icon/heavyRain32.json +1 -0
  35. package/dist/calcite/assets/calcite-icon/heavySnow16.json +1 -0
  36. package/dist/calcite/assets/calcite-icon/heavySnow24.json +1 -0
  37. package/dist/calcite/assets/calcite-icon/heavySnow32.json +1 -0
  38. package/dist/calcite/assets/calcite-icon/language16.json +1 -0
  39. package/dist/calcite/assets/calcite-icon/language24.json +1 -0
  40. package/dist/calcite/assets/calcite-icon/language32.json +1 -0
  41. package/dist/calcite/assets/calcite-icon/languageTranslate16.json +1 -0
  42. package/dist/calcite/assets/calcite-icon/languageTranslate24.json +1 -0
  43. package/dist/calcite/assets/calcite-icon/languageTranslate32.json +1 -0
  44. package/dist/calcite/assets/calcite-icon/leftAlign16.json +1 -0
  45. package/dist/calcite/assets/calcite-icon/leftAlign24.json +1 -0
  46. package/dist/calcite/assets/calcite-icon/leftAlign32.json +1 -0
  47. package/dist/calcite/assets/calcite-icon/lightRain16.json +1 -0
  48. package/dist/calcite/assets/calcite-icon/lightRain24.json +1 -0
  49. package/dist/calcite/assets/calcite-icon/lightRain32.json +1 -0
  50. package/dist/calcite/assets/calcite-icon/lightSnow16.json +1 -0
  51. package/dist/calcite/assets/calcite-icon/lightSnow24.json +1 -0
  52. package/dist/calcite/assets/calcite-icon/lightSnow32.json +1 -0
  53. package/dist/calcite/assets/calcite-icon/lineSolid4.json +1 -0
  54. package/dist/calcite/assets/calcite-icon/partlyCloud16.json +1 -0
  55. package/dist/calcite/assets/calcite-icon/partlyCloud24.json +1 -0
  56. package/dist/calcite/assets/calcite-icon/partlyCloud32.json +1 -0
  57. package/dist/calcite/assets/calcite-icon/partlyCloudy16.json +1 -0
  58. package/dist/calcite/assets/calcite-icon/partlyCloudy24.json +1 -0
  59. package/dist/calcite/assets/calcite-icon/partlyCloudy32.json +1 -0
  60. package/dist/calcite/assets/calcite-icon/rain16.json +1 -0
  61. package/dist/calcite/assets/calcite-icon/rain24.json +1 -0
  62. package/dist/calcite/assets/calcite-icon/rain32.json +1 -0
  63. package/dist/calcite/assets/calcite-icon/rainSnow16.json +1 -0
  64. package/dist/calcite/assets/calcite-icon/rainSnow24.json +1 -0
  65. package/dist/calcite/assets/calcite-icon/rainSnow32.json +1 -0
  66. package/dist/calcite/assets/calcite-icon/rainThunder16.json +1 -0
  67. package/dist/calcite/assets/calcite-icon/rainThunder24.json +1 -0
  68. package/dist/calcite/assets/calcite-icon/rainThunder32.json +1 -0
  69. package/dist/calcite/assets/calcite-icon/rightAlign16.json +1 -0
  70. package/dist/calcite/assets/calcite-icon/rightAlign24.json +1 -0
  71. package/dist/calcite/assets/calcite-icon/rightAlign32.json +1 -0
  72. package/dist/calcite/assets/calcite-icon/ringsThreshold16.json +1 -0
  73. package/dist/calcite/assets/calcite-icon/ringsThreshold24.json +1 -0
  74. package/dist/calcite/assets/calcite-icon/ringsThreshold32.json +1 -0
  75. package/dist/calcite/assets/calcite-icon/screenshotMode16.json +1 -0
  76. package/dist/calcite/assets/calcite-icon/screenshotMode24.json +1 -0
  77. package/dist/calcite/assets/calcite-icon/screenshotMode32.json +1 -0
  78. package/dist/calcite/assets/calcite-icon/selectVisible16.json +1 -0
  79. package/dist/calcite/assets/calcite-icon/selectVisible24.json +1 -0
  80. package/dist/calcite/assets/calcite-icon/selectVisible32.json +1 -0
  81. package/dist/calcite/assets/calcite-icon/snow16.json +1 -0
  82. package/dist/calcite/assets/calcite-icon/snow24.json +1 -0
  83. package/dist/calcite/assets/calcite-icon/snow32.json +1 -0
  84. package/dist/calcite/assets/calcite-icon/snowThunder16.json +1 -0
  85. package/dist/calcite/assets/calcite-icon/snowThunder24.json +1 -0
  86. package/dist/calcite/assets/calcite-icon/snowThunder32.json +1 -0
  87. package/dist/calcite/assets/calcite-icon/squareF16.json +1 -0
  88. package/dist/calcite/assets/calcite-icon/squareF24.json +1 -0
  89. package/dist/calcite/assets/calcite-icon/squareF32.json +1 -0
  90. package/dist/calcite/assets/calcite-icon/terminal16.json +1 -0
  91. package/dist/calcite/assets/calcite-icon/terminal24.json +1 -0
  92. package/dist/calcite/assets/calcite-icon/terminal32.json +1 -0
  93. package/dist/calcite/assets/calcite-icon/touch16.json +1 -0
  94. package/dist/calcite/assets/calcite-icon/touch24.json +1 -0
  95. package/dist/calcite/assets/calcite-icon/touch32.json +1 -0
  96. package/dist/calcite/assets/calcite-icon/xHexagon16.json +1 -0
  97. package/dist/calcite/assets/calcite-icon/xHexagon24.json +1 -0
  98. package/dist/calcite/assets/calcite-icon/xHexagon32.json +1 -0
  99. package/dist/calcite/assets/calcite-icon/xHexagonF16.json +1 -0
  100. package/dist/calcite/assets/calcite-icon/xHexagonF24.json +1 -0
  101. package/dist/calcite/assets/calcite-icon/xHexagonF32.json +1 -0
  102. package/dist/calcite/assets/calcite-icon/xOctagonF16.json +1 -0
  103. package/dist/calcite/assets/calcite-icon/xOctagonF24.json +1 -0
  104. package/dist/calcite/assets/calcite-icon/xOctagonF32.json +1 -0
  105. package/dist/calcite/calcite.css +1 -1
  106. package/dist/calcite/calcite.esm.js +1 -1
  107. package/dist/calcite/calcite.js +1 -1
  108. package/dist/calcite/p-02589ad3.system.entry.js +5 -0
  109. package/dist/calcite/p-02856c5a.system.entry.js +5 -0
  110. package/dist/calcite/p-04bf9bca.system.entry.js +5 -0
  111. package/dist/calcite/p-05dc6806.entry.js +5 -0
  112. package/dist/calcite/p-088a096d.system.entry.js +5 -0
  113. package/dist/calcite/p-0af820bf.entry.js +5 -0
  114. package/dist/calcite/p-0b0ce9b2.system.entry.js +5 -0
  115. package/dist/calcite/p-0cf878ed.system.entry.js +5 -0
  116. package/dist/calcite/p-10f1a096.system.entry.js +5 -0
  117. package/dist/calcite/p-132d55c2.entry.js +5 -0
  118. package/dist/calcite/p-141c978b.system.entry.js +5 -0
  119. package/dist/calcite/p-14ff4cbd.system.js +5 -0
  120. package/dist/calcite/p-16cfe8e8.entry.js +5 -0
  121. package/dist/calcite/p-1894562d.system.entry.js +5 -0
  122. package/dist/calcite/p-1a5dae4a.entry.js +5 -0
  123. package/dist/calcite/p-1b3a66ec.system.entry.js +5 -0
  124. package/dist/calcite/p-1d7a9909.system.entry.js +5 -0
  125. package/dist/calcite/{p-7bb94bfa.entry.js → p-209f2049.entry.js} +1 -1
  126. package/dist/calcite/p-20d2db84.entry.js +5 -0
  127. package/dist/calcite/p-21f26f77.entry.js +5 -0
  128. package/dist/calcite/p-244e0b95.entry.js +5 -0
  129. package/dist/calcite/p-253efee4.entry.js +5 -0
  130. package/dist/calcite/p-2618de8a.entry.js +5 -0
  131. package/dist/calcite/p-273cd5ab.entry.js +5 -0
  132. package/dist/calcite/p-28adfebc.entry.js +5 -0
  133. package/dist/calcite/{p-6d44b7d9.system.js → p-28dea60a.system.js} +1 -1
  134. package/dist/calcite/p-2a8938c7.system.entry.js +5 -0
  135. package/dist/calcite/p-2c954eaa.system.entry.js +5 -0
  136. package/dist/calcite/p-325fcd0d.entry.js +5 -0
  137. package/dist/calcite/p-32f6f7df.entry.js +5 -0
  138. package/dist/calcite/{p-e956e279.js → p-32f7eb32.js} +1 -1
  139. package/dist/calcite/p-37bddb73.system.entry.js +5 -0
  140. package/dist/calcite/p-38e64c6b.entry.js +5 -0
  141. package/dist/calcite/p-3a20f93d.system.js +5 -0
  142. package/dist/calcite/p-3ab992ff.system.entry.js +5 -0
  143. package/dist/calcite/p-3b73b785.system.entry.js +5 -0
  144. package/dist/calcite/p-3b8f5ab8.system.entry.js +5 -0
  145. package/dist/calcite/p-3c34f20d.system.js +5 -0
  146. package/dist/calcite/p-3d4c34e5.js +5 -0
  147. package/dist/calcite/p-3e9e4992.entry.js +5 -0
  148. package/dist/calcite/p-41894582.js +5 -0
  149. package/dist/calcite/p-41e2198b.js +5 -0
  150. package/dist/calcite/p-436d9f0e.system.entry.js +5 -0
  151. package/dist/calcite/p-45bfe5bf.system.entry.js +5 -0
  152. package/dist/calcite/p-4659df78.entry.js +5 -0
  153. package/dist/calcite/p-46b63d75.entry.js +5 -0
  154. package/dist/calcite/p-4d22b788.entry.js +5 -0
  155. package/dist/calcite/p-513bc44f.system.entry.js +5 -0
  156. package/dist/calcite/p-51550014.entry.js +5 -0
  157. package/dist/calcite/p-51a85436.entry.js +5 -0
  158. package/dist/calcite/{p-523bc291.system.js → p-52871e84.system.js} +1 -1
  159. package/dist/calcite/p-54e271c9.system.entry.js +5 -0
  160. package/dist/calcite/p-57558d4b.entry.js +5 -0
  161. package/dist/calcite/p-59133b9b.entry.js +5 -0
  162. package/dist/calcite/p-5c256f31.system.entry.js +5 -0
  163. package/dist/calcite/p-5c3b9524.system.entry.js +5 -0
  164. package/dist/calcite/{p-2451da5b.entry.js → p-5df1936f.entry.js} +1 -1
  165. package/dist/calcite/p-6515e0a5.entry.js +5 -0
  166. package/dist/calcite/p-66ca7309.entry.js +5 -0
  167. package/dist/calcite/p-698167ac.entry.js +5 -0
  168. package/dist/calcite/p-781ebed0.system.js +5 -0
  169. package/dist/calcite/p-799f0655.entry.js +5 -0
  170. package/dist/calcite/p-7a28e833.system.entry.js +5 -0
  171. package/dist/calcite/p-7d355abe.system.entry.js +5 -0
  172. package/dist/calcite/p-7f32a681.system.entry.js +5 -0
  173. package/dist/calcite/p-7f5bd070.system.entry.js +5 -0
  174. package/dist/calcite/p-8468ddb0.system.entry.js +5 -0
  175. package/dist/calcite/p-85fb7bc0.entry.js +5 -0
  176. package/dist/calcite/p-869eb8f9.entry.js +5 -0
  177. package/dist/calcite/p-897fc280.system.entry.js +5 -0
  178. package/dist/calcite/p-8b145872.system.entry.js +5 -0
  179. package/dist/calcite/p-8d36bc7c.entry.js +5 -0
  180. package/dist/calcite/p-8e1945e3.entry.js +5 -0
  181. package/dist/calcite/{p-1434e37e.entry.js → p-8eafaf3f.entry.js} +1 -1
  182. package/dist/calcite/p-8ebed170.system.entry.js +5 -0
  183. package/dist/calcite/p-8f4ea148.system.entry.js +5 -0
  184. package/dist/calcite/p-99d29b5c.system.entry.js +5 -0
  185. package/dist/calcite/p-99d32fc3.system.js +5 -0
  186. package/dist/calcite/p-9b05c3fd.js +5 -0
  187. package/dist/calcite/p-9d81d229.entry.js +5 -0
  188. package/dist/calcite/p-a0043c61.entry.js +5 -0
  189. package/dist/calcite/p-a1f65f6e.entry.js +5 -0
  190. package/dist/calcite/p-a348ffb1.system.entry.js +5 -0
  191. package/dist/calcite/p-a4dec1f6.system.entry.js +5 -0
  192. package/dist/calcite/p-a9c50960.system.entry.js +5 -0
  193. package/dist/calcite/p-aaed1677.entry.js +5 -0
  194. package/dist/calcite/p-ac778725.system.entry.js +5 -0
  195. package/dist/calcite/p-ac8cf248.entry.js +5 -0
  196. package/dist/calcite/p-b1a43a5f.system.entry.js +5 -0
  197. package/dist/calcite/p-b4990fa4.system.entry.js +5 -0
  198. package/dist/calcite/p-b4d3f1c1.entry.js +5 -0
  199. package/dist/calcite/p-b80ab9ba.entry.js +5 -0
  200. package/dist/calcite/p-bb401f25.system.js +5 -0
  201. package/dist/calcite/p-bb9fb183.system.entry.js +5 -0
  202. package/dist/calcite/p-bc85a791.entry.js +5 -0
  203. package/dist/calcite/p-bda51610.entry.js +5 -0
  204. package/dist/calcite/p-c0ed9eff.entry.js +5 -0
  205. package/dist/calcite/p-c56f495f.system.js +5 -0
  206. package/dist/calcite/p-c7b8a068.entry.js +5 -0
  207. package/dist/calcite/p-cb9cd28c.system.entry.js +5 -0
  208. package/dist/calcite/p-cfcb2161.entry.js +5 -0
  209. package/dist/calcite/p-d1794edd.entry.js +5 -0
  210. package/dist/calcite/p-d578e568.system.entry.js +5 -0
  211. package/dist/calcite/p-d5d91f34.system.entry.js +5 -0
  212. package/dist/calcite/p-dba7c714.system.entry.js +5 -0
  213. package/dist/calcite/p-dd9f2e61.js +5 -0
  214. package/dist/calcite/p-e0fa3b13.system.entry.js +5 -0
  215. package/dist/calcite/{p-d6f20229.js → p-e1944963.js} +1 -1
  216. package/dist/calcite/p-e2094dff.system.entry.js +5 -0
  217. package/dist/calcite/p-e2ebc089.system.entry.js +5 -0
  218. package/dist/calcite/p-e426746f.system.entry.js +5 -0
  219. package/dist/calcite/p-e564004a.system.entry.js +5 -0
  220. package/dist/calcite/p-e606e9ae.system.entry.js +5 -0
  221. package/dist/calcite/{p-714ae4f6.entry.js → p-e63f0806.entry.js} +1 -1
  222. package/dist/calcite/p-e690993e.system.entry.js +5 -0
  223. package/dist/calcite/p-e6d14bc5.system.entry.js +5 -0
  224. package/dist/calcite/p-e87980ac.entry.js +5 -0
  225. package/dist/calcite/p-eea18662.entry.js +5 -0
  226. package/dist/calcite/p-ef6b4184.js +5 -0
  227. package/dist/calcite/p-f09810e7.entry.js +5 -0
  228. package/dist/calcite/p-f26cad61.system.entry.js +5 -0
  229. package/dist/calcite/p-f5469b62.system.entry.js +5 -0
  230. package/dist/calcite/p-f5739197.entry.js +5 -0
  231. package/dist/calcite/p-f6fc151d.system.entry.js +5 -0
  232. package/dist/calcite/p-f73124d0.entry.js +5 -0
  233. package/dist/calcite/p-f763b1e7.system.entry.js +5 -0
  234. package/dist/calcite/p-f90b2e7f.entry.js +5 -0
  235. package/dist/calcite/p-f95fb85f.entry.js +5 -0
  236. package/dist/calcite/p-fbcaa23c.system.js +5 -0
  237. package/dist/calcite/p-fcd62e97.js +5 -0
  238. package/dist/calcite/p-fdd3ea5e.entry.js +5 -0
  239. package/dist/calcite/p-fe3fff79.entry.js +5 -0
  240. package/dist/calcite/p-fee9511c.system.entry.js +5 -0
  241. package/dist/cjs/{CalciteExpandToggle-5f60c98b.js → CalciteExpandToggle-65468585.js} +2 -2
  242. package/dist/cjs/calcite-accordion_2.cjs.entry.js +6 -7
  243. package/dist/cjs/calcite-action-bar.cjs.entry.js +27 -3
  244. package/dist/cjs/calcite-action-group.cjs.entry.js +2 -2
  245. package/dist/cjs/calcite-action-menu.cjs.entry.js +2 -2
  246. package/dist/cjs/calcite-action-pad.cjs.entry.js +4 -9
  247. package/dist/cjs/calcite-action.cjs.entry.js +1 -1
  248. package/dist/cjs/calcite-alert.cjs.entry.js +26 -13
  249. package/dist/cjs/calcite-avatar.cjs.entry.js +4 -5
  250. package/dist/cjs/calcite-block_2.cjs.entry.js +10 -6
  251. package/dist/cjs/calcite-button.cjs.entry.js +12 -7
  252. package/dist/cjs/calcite-card.cjs.entry.js +3 -7
  253. package/dist/cjs/calcite-checkbox.cjs.entry.js +5 -5
  254. package/dist/cjs/calcite-chip.cjs.entry.js +4 -5
  255. package/dist/cjs/calcite-color-picker_3.cjs.entry.js +49 -45
  256. package/dist/cjs/calcite-combobox_3.cjs.entry.js +16 -19
  257. package/dist/cjs/calcite-date-picker_4.cjs.entry.js +53 -41
  258. package/dist/cjs/calcite-dropdown_3.cjs.entry.js +26 -29
  259. package/dist/cjs/calcite-fab.cjs.entry.js +4 -5
  260. package/dist/cjs/calcite-filter.cjs.entry.js +4 -19
  261. package/dist/cjs/calcite-flow.cjs.entry.js +1 -1
  262. package/dist/cjs/calcite-graph_2.cjs.entry.js +35 -23
  263. package/dist/cjs/calcite-handle.cjs.entry.js +1 -1
  264. package/dist/cjs/calcite-icon.cjs.entry.js +2 -2
  265. package/dist/cjs/calcite-inline-editable.cjs.entry.js +3 -3
  266. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +31 -14
  267. package/dist/cjs/calcite-input-message.cjs.entry.js +3 -4
  268. package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +378 -253
  269. package/dist/cjs/calcite-input.cjs.entry.js +58 -38
  270. package/dist/cjs/calcite-label.cjs.entry.js +2 -5
  271. package/dist/cjs/calcite-link.cjs.entry.js +3 -3
  272. package/dist/cjs/calcite-list_3.cjs.entry.js +4 -4
  273. package/dist/cjs/calcite-loader.cjs.entry.js +1 -1
  274. package/dist/cjs/calcite-modal.cjs.entry.js +5 -7
  275. package/dist/cjs/calcite-notice.cjs.entry.js +3 -4
  276. package/dist/cjs/calcite-option_3.cjs.entry.js +14 -12
  277. package/dist/cjs/calcite-pagination.cjs.entry.js +3 -6
  278. package/dist/cjs/calcite-panel.cjs.entry.js +10 -13
  279. package/dist/cjs/calcite-pick-list_3.cjs.entry.js +7 -8
  280. package/dist/cjs/calcite-popover_2.cjs.entry.js +7 -9
  281. package/dist/cjs/calcite-progress.cjs.entry.js +1 -1
  282. package/dist/cjs/calcite-radio-button-group.cjs.entry.js +1 -1
  283. package/dist/cjs/{calcite-radio_2.cjs.entry.js → calcite-radio-button.cjs.entry.js} +26 -57
  284. package/dist/cjs/calcite-radio-group_2.cjs.entry.js +27 -82
  285. package/dist/cjs/calcite-rating.cjs.entry.js +5 -6
  286. package/dist/cjs/calcite-scrim.cjs.entry.js +1 -1
  287. package/dist/cjs/calcite-shell_3.cjs.entry.js +170 -11
  288. package/dist/cjs/calcite-sortable-list.cjs.entry.js +1 -1
  289. package/dist/cjs/calcite-split-button.cjs.entry.js +4 -5
  290. package/dist/cjs/calcite-stepper_2.cjs.entry.js +6 -8
  291. package/dist/cjs/calcite-switch.cjs.entry.js +7 -9
  292. package/dist/cjs/calcite-tab_4.cjs.entry.js +9 -12
  293. package/dist/cjs/calcite-tile-select_2.cjs.entry.js +38 -5
  294. package/dist/cjs/calcite-tile.cjs.entry.js +2 -2
  295. package/dist/cjs/calcite-tip_3.cjs.entry.js +4 -4
  296. package/dist/cjs/calcite-tooltip_2.cjs.entry.js +7 -8
  297. package/dist/cjs/calcite-tree_2.cjs.entry.js +4 -6
  298. package/dist/cjs/calcite-value-list_2.cjs.entry.js +13 -6
  299. package/dist/cjs/calcite.cjs.js +2 -2
  300. package/dist/cjs/{dom-19822169.js → dom-0de9fb18.js} +39 -9
  301. package/dist/cjs/{form-a5b44a1f.js → form-4b7c317e.js} +1 -1
  302. package/dist/cjs/{label-8e3552b2.js → label-1bca211b.js} +5 -2
  303. package/dist/cjs/loader.cjs.js +2 -2
  304. package/dist/cjs/locale-02462821.js +128 -0
  305. package/dist/cjs/number-e813e801.js +84 -0
  306. package/dist/cjs/{popper-87bf13e6.js → popper-09105f6f.js} +118 -73
  307. package/dist/cjs/{resources-cd25dbae.js → resources-405cc2c4.js} +17 -6
  308. package/dist/cjs/{resources-3f7b51c8.js → resources-9f0994fb.js} +3 -2
  309. package/dist/collection/collection-manifest.json +6 -8
  310. package/dist/collection/components/calcite-accordion/calcite-accordion.css +8 -14
  311. package/dist/collection/components/calcite-accordion/calcite-accordion.js +2 -3
  312. package/dist/collection/components/calcite-accordion-item/calcite-accordion-item.css +41 -84
  313. package/dist/collection/components/calcite-accordion-item/calcite-accordion-item.js +2 -3
  314. package/dist/collection/components/calcite-action/calcite-action.css +51 -92
  315. package/dist/collection/components/calcite-action-bar/calcite-action-bar.css +12 -19
  316. package/dist/collection/components/calcite-action-bar/calcite-action-bar.js +3 -0
  317. package/dist/collection/components/calcite-action-group/calcite-action-group.css +10 -19
  318. package/dist/collection/components/calcite-action-menu/calcite-action-menu.css +16 -24
  319. package/dist/collection/components/calcite-action-pad/calcite-action-pad.css +33 -33
  320. package/dist/collection/components/calcite-action-pad/calcite-action-pad.js +2 -8
  321. package/dist/collection/components/calcite-alert/calcite-alert.css +110 -147
  322. package/dist/collection/components/calcite-alert/calcite-alert.js +50 -13
  323. package/dist/collection/components/calcite-avatar/calcite-avatar.css +13 -21
  324. package/dist/collection/components/calcite-avatar/calcite-avatar.js +2 -4
  325. package/dist/collection/components/calcite-block/calcite-block.css +52 -65
  326. package/dist/collection/components/calcite-block/calcite-block.js +8 -4
  327. package/dist/collection/components/calcite-block-section/calcite-block-section.css +32 -54
  328. package/dist/collection/components/calcite-block-section/calcite-block-section.js +1 -2
  329. package/dist/collection/components/calcite-button/calcite-button.css +107 -284
  330. package/dist/collection/components/calcite-button/calcite-button.js +9 -6
  331. package/dist/collection/components/calcite-button/resources.js +3 -1
  332. package/dist/collection/components/calcite-card/calcite-card.css +55 -67
  333. package/dist/collection/components/calcite-card/calcite-card.js +2 -6
  334. package/dist/collection/components/calcite-checkbox/calcite-checkbox.css +16 -25
  335. package/dist/collection/components/calcite-checkbox/calcite-checkbox.js +1 -1
  336. package/dist/collection/components/calcite-chip/calcite-chip.css +36 -80
  337. package/dist/collection/components/calcite-chip/calcite-chip.js +3 -5
  338. package/dist/collection/components/calcite-color-picker/calcite-color-picker.css +18 -49
  339. package/dist/collection/components/calcite-color-picker/calcite-color-picker.js +8 -12
  340. package/dist/collection/components/calcite-color-picker-hex-input/calcite-color-picker-hex-input.css +12 -18
  341. package/dist/collection/components/calcite-color-picker-hex-input/calcite-color-picker-hex-input.js +4 -6
  342. package/dist/collection/components/calcite-color-picker-swatch/calcite-color-picker-swatch.css +12 -19
  343. package/dist/collection/components/calcite-color-picker-swatch/resources.js +1 -1
  344. package/dist/collection/components/calcite-combobox/calcite-combobox.css +37 -60
  345. package/dist/collection/components/calcite-combobox/calcite-combobox.js +7 -8
  346. package/dist/collection/components/calcite-combobox/interfaces.d.js +1 -0
  347. package/dist/collection/components/calcite-combobox-item/calcite-combobox-item.css +41 -55
  348. package/dist/collection/components/calcite-combobox-item/calcite-combobox-item.js +1 -4
  349. package/dist/collection/components/calcite-combobox-item-group/calcite-combobox-item-group.css +15 -38
  350. package/dist/collection/components/calcite-combobox-item-group/calcite-combobox-item-group.js +2 -4
  351. package/dist/collection/components/calcite-date-picker/assets/calcite-date-picker/nls/bg.json +31 -0
  352. package/dist/collection/components/calcite-date-picker/calcite-date-picker.css +9 -15
  353. package/dist/collection/components/calcite-date-picker/calcite-date-picker.js +55 -17
  354. package/dist/collection/components/calcite-date-picker/resources.js +2 -1
  355. package/dist/collection/components/calcite-date-picker-day/calcite-date-picker-day.css +64 -68
  356. package/dist/collection/components/calcite-date-picker-day/calcite-date-picker-day.js +1 -2
  357. package/dist/collection/components/calcite-date-picker-month/calcite-date-picker-month.css +26 -32
  358. package/dist/collection/components/calcite-date-picker-month/calcite-date-picker-month.js +6 -9
  359. package/dist/collection/components/calcite-date-picker-month-header/calcite-date-picker-month-header.css +39 -57
  360. package/dist/collection/components/calcite-date-picker-month-header/calcite-date-picker-month-header.js +25 -11
  361. package/dist/collection/components/calcite-dropdown/calcite-dropdown.css +8 -48
  362. package/dist/collection/components/calcite-dropdown/calcite-dropdown.js +18 -19
  363. package/dist/collection/components/calcite-dropdown-group/calcite-dropdown-group.css +15 -21
  364. package/dist/collection/components/calcite-dropdown-group/calcite-dropdown-group.js +2 -3
  365. package/dist/collection/components/calcite-dropdown-item/calcite-dropdown-item.css +89 -183
  366. package/dist/collection/components/calcite-dropdown-item/calcite-dropdown-item.js +4 -8
  367. package/dist/collection/components/calcite-fab/calcite-fab.css +15 -17
  368. package/dist/collection/components/calcite-fab/calcite-fab.js +3 -4
  369. package/dist/collection/components/calcite-filter/calcite-filter.css +28 -56
  370. package/dist/collection/components/calcite-filter/calcite-filter.js +7 -43
  371. package/dist/collection/components/calcite-flow/calcite-flow.css +27 -35
  372. package/dist/collection/components/calcite-graph/calcite-graph.css +8 -15
  373. package/dist/collection/components/calcite-handle/calcite-handle.css +9 -19
  374. package/dist/collection/components/calcite-icon/assets/calcite-icon/centerAlign16.json +1 -0
  375. package/dist/collection/components/calcite-icon/assets/calcite-icon/centerAlign24.json +1 -0
  376. package/dist/collection/components/calcite-icon/assets/calcite-icon/centerAlign32.json +1 -0
  377. package/dist/collection/components/calcite-icon/assets/calcite-icon/checkSquareF16.json +1 -0
  378. package/dist/collection/components/calcite-icon/assets/calcite-icon/checkSquareF24.json +1 -0
  379. package/dist/collection/components/calcite-icon/assets/calcite-icon/checkSquareF32.json +1 -0
  380. package/dist/collection/components/calcite-icon/assets/calcite-icon/cloudy16.json +1 -0
  381. package/dist/collection/components/calcite-icon/assets/calcite-icon/cloudy24.json +1 -0
  382. package/dist/collection/components/calcite-icon/assets/calcite-icon/cloudy32.json +1 -0
  383. package/dist/collection/components/calcite-icon/assets/calcite-icon/convert16.json +1 -0
  384. package/dist/collection/components/calcite-icon/assets/calcite-icon/convert24.json +1 -0
  385. package/dist/collection/components/calcite-icon/assets/calcite-icon/convert32.json +1 -0
  386. package/dist/collection/components/calcite-icon/assets/calcite-icon/displaySelectionLock16.json +1 -0
  387. package/dist/collection/components/calcite-icon/assets/calcite-icon/displaySelectionLock24.json +1 -0
  388. package/dist/collection/components/calcite-icon/assets/calcite-icon/displaySelectionLock32.json +1 -0
  389. package/dist/collection/components/calcite-icon/assets/calcite-icon/displaySelectionUnlock16.json +1 -0
  390. package/dist/collection/components/calcite-icon/assets/calcite-icon/displaySelectionUnlock24.json +1 -0
  391. package/dist/collection/components/calcite-icon/assets/calcite-icon/displaySelectionUnlock32.json +1 -0
  392. package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeThreshold16.json +1 -0
  393. package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeThreshold24.json +1 -0
  394. package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeThreshold32.json +1 -0
  395. package/dist/collection/components/calcite-icon/assets/calcite-icon/explore16.json +1 -0
  396. package/dist/collection/components/calcite-icon/assets/calcite-icon/explore24.json +1 -0
  397. package/dist/collection/components/calcite-icon/assets/calcite-icon/explore32.json +1 -0
  398. package/dist/collection/components/calcite-icon/assets/calcite-icon/fog16.json +1 -0
  399. package/dist/collection/components/calcite-icon/assets/calcite-icon/fog24.json +1 -0
  400. package/dist/collection/components/calcite-icon/assets/calcite-icon/fog32.json +1 -0
  401. package/dist/collection/components/calcite-icon/assets/calcite-icon/formDropdown16.json +1 -0
  402. package/dist/collection/components/calcite-icon/assets/calcite-icon/formDropdown24.json +1 -0
  403. package/dist/collection/components/calcite-icon/assets/calcite-icon/formDropdown32.json +1 -0
  404. package/dist/collection/components/calcite-icon/assets/calcite-icon/heavyRain16.json +1 -0
  405. package/dist/collection/components/calcite-icon/assets/calcite-icon/heavyRain24.json +1 -0
  406. package/dist/collection/components/calcite-icon/assets/calcite-icon/heavyRain32.json +1 -0
  407. package/dist/collection/components/calcite-icon/assets/calcite-icon/heavySnow16.json +1 -0
  408. package/dist/collection/components/calcite-icon/assets/calcite-icon/heavySnow24.json +1 -0
  409. package/dist/collection/components/calcite-icon/assets/calcite-icon/heavySnow32.json +1 -0
  410. package/dist/collection/components/calcite-icon/assets/calcite-icon/language16.json +1 -0
  411. package/dist/collection/components/calcite-icon/assets/calcite-icon/language24.json +1 -0
  412. package/dist/collection/components/calcite-icon/assets/calcite-icon/language32.json +1 -0
  413. package/dist/collection/components/calcite-icon/assets/calcite-icon/languageTranslate16.json +1 -0
  414. package/dist/collection/components/calcite-icon/assets/calcite-icon/languageTranslate24.json +1 -0
  415. package/dist/collection/components/calcite-icon/assets/calcite-icon/languageTranslate32.json +1 -0
  416. package/dist/collection/components/calcite-icon/assets/calcite-icon/leftAlign16.json +1 -0
  417. package/dist/collection/components/calcite-icon/assets/calcite-icon/leftAlign24.json +1 -0
  418. package/dist/collection/components/calcite-icon/assets/calcite-icon/leftAlign32.json +1 -0
  419. package/dist/collection/components/calcite-icon/assets/calcite-icon/lightRain16.json +1 -0
  420. package/dist/collection/components/calcite-icon/assets/calcite-icon/lightRain24.json +1 -0
  421. package/dist/collection/components/calcite-icon/assets/calcite-icon/lightRain32.json +1 -0
  422. package/dist/collection/components/calcite-icon/assets/calcite-icon/lightSnow16.json +1 -0
  423. package/dist/collection/components/calcite-icon/assets/calcite-icon/lightSnow24.json +1 -0
  424. package/dist/collection/components/calcite-icon/assets/calcite-icon/lightSnow32.json +1 -0
  425. package/dist/collection/components/calcite-icon/assets/calcite-icon/lineSolid4.json +1 -0
  426. package/dist/collection/components/calcite-icon/assets/calcite-icon/partlyCloud16.json +1 -0
  427. package/dist/collection/components/calcite-icon/assets/calcite-icon/partlyCloud24.json +1 -0
  428. package/dist/collection/components/calcite-icon/assets/calcite-icon/partlyCloud32.json +1 -0
  429. package/dist/collection/components/calcite-icon/assets/calcite-icon/partlyCloudy16.json +1 -0
  430. package/dist/collection/components/calcite-icon/assets/calcite-icon/partlyCloudy24.json +1 -0
  431. package/dist/collection/components/calcite-icon/assets/calcite-icon/partlyCloudy32.json +1 -0
  432. package/dist/collection/components/calcite-icon/assets/calcite-icon/rain16.json +1 -0
  433. package/dist/collection/components/calcite-icon/assets/calcite-icon/rain24.json +1 -0
  434. package/dist/collection/components/calcite-icon/assets/calcite-icon/rain32.json +1 -0
  435. package/dist/collection/components/calcite-icon/assets/calcite-icon/rainSnow16.json +1 -0
  436. package/dist/collection/components/calcite-icon/assets/calcite-icon/rainSnow24.json +1 -0
  437. package/dist/collection/components/calcite-icon/assets/calcite-icon/rainSnow32.json +1 -0
  438. package/dist/collection/components/calcite-icon/assets/calcite-icon/rainThunder16.json +1 -0
  439. package/dist/collection/components/calcite-icon/assets/calcite-icon/rainThunder24.json +1 -0
  440. package/dist/collection/components/calcite-icon/assets/calcite-icon/rainThunder32.json +1 -0
  441. package/dist/collection/components/calcite-icon/assets/calcite-icon/rightAlign16.json +1 -0
  442. package/dist/collection/components/calcite-icon/assets/calcite-icon/rightAlign24.json +1 -0
  443. package/dist/collection/components/calcite-icon/assets/calcite-icon/rightAlign32.json +1 -0
  444. package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsThreshold16.json +1 -0
  445. package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsThreshold24.json +1 -0
  446. package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsThreshold32.json +1 -0
  447. package/dist/collection/components/calcite-icon/assets/calcite-icon/screenshotMode16.json +1 -0
  448. package/dist/collection/components/calcite-icon/assets/calcite-icon/screenshotMode24.json +1 -0
  449. package/dist/collection/components/calcite-icon/assets/calcite-icon/screenshotMode32.json +1 -0
  450. package/dist/collection/components/calcite-icon/assets/calcite-icon/selectVisible16.json +1 -0
  451. package/dist/collection/components/calcite-icon/assets/calcite-icon/selectVisible24.json +1 -0
  452. package/dist/collection/components/calcite-icon/assets/calcite-icon/selectVisible32.json +1 -0
  453. package/dist/collection/components/calcite-icon/assets/calcite-icon/snow16.json +1 -0
  454. package/dist/collection/components/calcite-icon/assets/calcite-icon/snow24.json +1 -0
  455. package/dist/collection/components/calcite-icon/assets/calcite-icon/snow32.json +1 -0
  456. package/dist/collection/components/calcite-icon/assets/calcite-icon/snowThunder16.json +1 -0
  457. package/dist/collection/components/calcite-icon/assets/calcite-icon/snowThunder24.json +1 -0
  458. package/dist/collection/components/calcite-icon/assets/calcite-icon/snowThunder32.json +1 -0
  459. package/dist/collection/components/calcite-icon/assets/calcite-icon/squareF16.json +1 -0
  460. package/dist/collection/components/calcite-icon/assets/calcite-icon/squareF24.json +1 -0
  461. package/dist/collection/components/calcite-icon/assets/calcite-icon/squareF32.json +1 -0
  462. package/dist/collection/components/calcite-icon/assets/calcite-icon/terminal16.json +1 -0
  463. package/dist/collection/components/calcite-icon/assets/calcite-icon/terminal24.json +1 -0
  464. package/dist/collection/components/calcite-icon/assets/calcite-icon/terminal32.json +1 -0
  465. package/dist/collection/components/calcite-icon/assets/calcite-icon/touch16.json +1 -0
  466. package/dist/collection/components/calcite-icon/assets/calcite-icon/touch24.json +1 -0
  467. package/dist/collection/components/calcite-icon/assets/calcite-icon/touch32.json +1 -0
  468. package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagon16.json +1 -0
  469. package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagon24.json +1 -0
  470. package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagon32.json +1 -0
  471. package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagonF16.json +1 -0
  472. package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagonF24.json +1 -0
  473. package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagonF32.json +1 -0
  474. package/dist/collection/components/calcite-icon/assets/calcite-icon/xOctagonF16.json +1 -0
  475. package/dist/collection/components/calcite-icon/assets/calcite-icon/xOctagonF24.json +1 -0
  476. package/dist/collection/components/calcite-icon/assets/calcite-icon/xOctagonF32.json +1 -0
  477. package/dist/collection/components/calcite-icon/calcite-icon.css +17 -15
  478. package/dist/collection/components/calcite-inline-editable/calcite-inline-editable.css +11 -14
  479. package/dist/collection/components/calcite-input/calcite-input.css +120 -268
  480. package/dist/collection/components/calcite-input/calcite-input.js +54 -33
  481. package/dist/collection/components/calcite-input-date-picker/calcite-input-date-picker.css +33 -47
  482. package/dist/collection/components/calcite-input-date-picker/calcite-input-date-picker.js +83 -10
  483. package/dist/collection/components/calcite-input-message/calcite-input-message.css +21 -33
  484. package/dist/collection/components/calcite-input-message/calcite-input-message.js +2 -4
  485. package/dist/collection/components/calcite-input-time-picker/calcite-input-time-picker.css +6 -12
  486. package/dist/collection/components/calcite-input-time-picker/calcite-input-time-picker.js +84 -80
  487. package/dist/collection/components/calcite-label/calcite-label.css +28 -42
  488. package/dist/collection/components/calcite-label/calcite-label.js +1 -4
  489. package/dist/collection/components/calcite-label/interfaces.js +1 -0
  490. package/dist/collection/components/calcite-link/calcite-link.css +31 -51
  491. package/dist/collection/components/calcite-link/calcite-link.js +1 -1
  492. package/dist/collection/components/calcite-list/calcite-list.css +14 -17
  493. package/dist/collection/components/calcite-list-item/calcite-list-item.css +28 -47
  494. package/dist/collection/components/calcite-list-item-group/calcite-list-item-group.css +12 -18
  495. package/dist/collection/components/calcite-loader/calcite-loader.css +47 -73
  496. package/dist/collection/components/calcite-modal/calcite-modal.css +107 -124
  497. package/dist/collection/components/calcite-modal/calcite-modal.js +4 -7
  498. package/dist/collection/components/calcite-notice/calcite-notice.css +66 -114
  499. package/dist/collection/components/calcite-notice/calcite-notice.js +2 -4
  500. package/dist/collection/components/calcite-option/calcite-option.css +6 -12
  501. package/dist/collection/components/calcite-option/calcite-option.js +3 -1
  502. package/dist/collection/components/calcite-option-group/calcite-option-group.css +6 -12
  503. package/dist/collection/components/calcite-pagination/calcite-pagination.css +26 -56
  504. package/dist/collection/components/calcite-pagination/calcite-pagination.js +2 -4
  505. package/dist/collection/components/calcite-panel/calcite-panel.css +64 -105
  506. package/dist/collection/components/calcite-panel/calcite-panel.js +10 -14
  507. package/dist/collection/components/calcite-panel/resources.js +1 -0
  508. package/dist/collection/components/calcite-pick-list/calcite-pick-list.css +21 -27
  509. package/dist/collection/components/calcite-pick-list/calcite-pick-list.js +12 -4
  510. package/dist/collection/components/calcite-pick-list/resources.js +1 -1
  511. package/dist/collection/components/calcite-pick-list/shared-list-logic.js +12 -2
  512. package/dist/collection/components/calcite-pick-list/shared-list-render.js +2 -3
  513. package/dist/collection/components/calcite-pick-list-group/calcite-pick-list-group.css +20 -34
  514. package/dist/collection/components/calcite-pick-list-group/calcite-pick-list-group.js +2 -5
  515. package/dist/collection/components/calcite-pick-list-item/calcite-pick-list-item.css +49 -67
  516. package/dist/collection/components/calcite-popover/calcite-popover.css +30 -39
  517. package/dist/collection/components/calcite-popover/calcite-popover.js +3 -6
  518. package/dist/collection/components/calcite-popover-manager/calcite-popover-manager.css +6 -12
  519. package/dist/collection/components/calcite-popover-manager/calcite-popover-manager.js +1 -1
  520. package/dist/collection/components/calcite-progress/calcite-progress.css +12 -21
  521. package/dist/collection/components/calcite-radio-button/calcite-radio-button.css +84 -14
  522. package/dist/collection/components/calcite-radio-button/calcite-radio-button.js +19 -10
  523. package/dist/collection/components/calcite-radio-button-group/calcite-radio-button-group.css +6 -15
  524. package/dist/collection/components/calcite-radio-group/calcite-radio-group.css +8 -16
  525. package/dist/collection/components/calcite-radio-group/calcite-radio-group.js +15 -18
  526. package/dist/collection/components/calcite-radio-group-item/calcite-radio-group-item.css +24 -31
  527. package/dist/collection/components/calcite-radio-group-item/calcite-radio-group-item.js +5 -60
  528. package/dist/collection/components/calcite-rating/calcite-rating.css +18 -43
  529. package/dist/collection/components/calcite-rating/calcite-rating.js +2 -5
  530. package/dist/collection/components/calcite-scrim/calcite-scrim.css +23 -31
  531. package/dist/collection/components/calcite-select/calcite-select.css +32 -61
  532. package/dist/collection/components/calcite-select/calcite-select.js +7 -8
  533. package/dist/collection/components/calcite-shell/calcite-shell.css +48 -44
  534. package/dist/collection/components/calcite-shell-center-row/calcite-shell-center-row.css +34 -46
  535. package/dist/collection/components/calcite-shell-center-row/calcite-shell-center-row.js +3 -5
  536. package/dist/collection/components/calcite-shell-panel/calcite-shell-panel.css +71 -42
  537. package/dist/collection/components/calcite-shell-panel/calcite-shell-panel.js +204 -6
  538. package/dist/collection/components/calcite-shell-panel/resources.js +5 -1
  539. package/dist/collection/components/calcite-slider/calcite-slider.css +167 -232
  540. package/dist/collection/components/calcite-slider/calcite-slider.js +65 -29
  541. package/dist/collection/components/calcite-sortable-list/calcite-sortable-list.css +6 -12
  542. package/dist/collection/components/calcite-split-button/calcite-split-button.css +16 -29
  543. package/dist/collection/components/calcite-split-button/calcite-split-button.js +29 -6
  544. package/dist/collection/components/calcite-stepper/calcite-stepper.css +13 -19
  545. package/dist/collection/components/calcite-stepper/calcite-stepper.js +1 -2
  546. package/dist/collection/components/calcite-stepper-item/calcite-stepper-item.css +56 -144
  547. package/dist/collection/components/calcite-stepper-item/calcite-stepper-item.js +3 -6
  548. package/dist/collection/components/calcite-switch/calcite-switch.css +31 -68
  549. package/dist/collection/components/calcite-switch/calcite-switch.js +3 -6
  550. package/dist/collection/components/calcite-tab/calcite-tab.css +15 -22
  551. package/dist/collection/components/calcite-tab-nav/calcite-tab-nav.css +18 -26
  552. package/dist/collection/components/calcite-tab-title/calcite-tab-title.css +56 -88
  553. package/dist/collection/components/calcite-tab-title/calcite-tab-title.js +5 -9
  554. package/dist/collection/components/calcite-tabs/calcite-tabs.css +8 -14
  555. package/dist/collection/components/calcite-tile/calcite-tile.css +57 -86
  556. package/dist/collection/components/calcite-tile-select/calcite-tile-select.css +57 -100
  557. package/dist/collection/components/calcite-tile-select/calcite-tile-select.js +21 -5
  558. package/dist/collection/components/calcite-tile-select/resources.js +20 -0
  559. package/dist/collection/components/calcite-tile-select-group/calcite-tile-select-group.css +6 -13
  560. package/dist/collection/components/calcite-time-picker/calcite-time-picker.css +62 -125
  561. package/dist/collection/components/calcite-time-picker/calcite-time-picker.js +263 -298
  562. package/dist/collection/components/calcite-time-picker/resources.js +15 -9
  563. package/dist/collection/components/calcite-tip/calcite-tip.css +25 -37
  564. package/dist/collection/components/calcite-tip-group/calcite-tip-group.css +9 -15
  565. package/dist/collection/components/calcite-tip-manager/calcite-tip-manager.css +41 -61
  566. package/dist/collection/components/calcite-tooltip/calcite-tooltip.css +17 -21
  567. package/dist/collection/components/calcite-tooltip/calcite-tooltip.js +1 -1
  568. package/dist/collection/components/calcite-tooltip-manager/calcite-tooltip-manager.css +6 -12
  569. package/dist/collection/components/calcite-tooltip-manager/calcite-tooltip-manager.js +2 -3
  570. package/dist/collection/components/calcite-tree/calcite-tree.css +6 -12
  571. package/dist/collection/components/calcite-tree-item/calcite-tree-item.css +31 -63
  572. package/dist/collection/components/calcite-tree-item/calcite-tree-item.js +1 -3
  573. package/dist/collection/components/calcite-value-list/calcite-value-list.css +22 -26
  574. package/dist/collection/components/calcite-value-list/calcite-value-list.js +22 -8
  575. package/dist/collection/components/calcite-value-list-item/calcite-value-list-item.css +27 -34
  576. package/dist/collection/components/functional/CalciteExpandToggle.js +1 -1
  577. package/dist/collection/demos/_assets/demo-form.js +23 -0
  578. package/dist/collection/demos/_assets/demo-template.js +13 -0
  579. package/dist/collection/demos/_assets/head.js +45 -0
  580. package/dist/collection/demos/_assets/locales.js +223 -0
  581. package/dist/collection/utils/conditionalSlot.js +26 -0
  582. package/dist/collection/utils/dom.js +39 -9
  583. package/dist/collection/utils/interactive.js +20 -0
  584. package/dist/collection/utils/key.js +0 -23
  585. package/dist/collection/utils/label.js +4 -1
  586. package/dist/collection/utils/locale.js +43 -38
  587. package/dist/collection/utils/number.js +52 -19
  588. package/dist/collection/utils/time.js +144 -36
  589. package/dist/components/CalciteExpandToggle.js +1 -1
  590. package/dist/components/calcite-accordion-item.js +2 -3
  591. package/dist/components/calcite-accordion.js +2 -3
  592. package/dist/components/calcite-action-bar.js +26 -2
  593. package/dist/components/calcite-action-group2.js +1 -1
  594. package/dist/components/calcite-action-menu2.js +1 -1
  595. package/dist/components/calcite-action-pad.js +3 -8
  596. package/dist/components/calcite-action2.js +1 -1
  597. package/dist/components/calcite-alert.js +27 -13
  598. package/dist/components/calcite-avatar.js +4 -5
  599. package/dist/components/calcite-block-section.js +3 -3
  600. package/dist/components/calcite-block.js +7 -3
  601. package/dist/components/calcite-button2.js +11 -6
  602. package/dist/components/calcite-card.js +3 -6
  603. package/dist/components/calcite-checkbox2.js +2 -2
  604. package/dist/components/calcite-chip2.js +4 -5
  605. package/dist/components/calcite-color-picker-hex-input2.js +5 -7
  606. package/dist/components/calcite-color-picker-swatch2.js +23 -15
  607. package/dist/components/calcite-color-picker.js +9 -12
  608. package/dist/components/calcite-combobox-item-group.js +3 -4
  609. package/dist/components/calcite-combobox-item.js +2 -4
  610. package/dist/components/calcite-combobox.js +8 -9
  611. package/dist/components/calcite-date-picker-day2.js +2 -3
  612. package/dist/components/calcite-date-picker-month-header2.js +9 -11
  613. package/dist/components/calcite-date-picker-month2.js +7 -10
  614. package/dist/components/calcite-date-picker2.js +34 -19
  615. package/dist/components/calcite-dropdown-group.js +3 -4
  616. package/dist/components/calcite-dropdown-item.js +5 -8
  617. package/dist/components/calcite-dropdown2.js +19 -19
  618. package/dist/components/calcite-fab.js +4 -5
  619. package/dist/components/calcite-filter2.js +4 -20
  620. package/dist/components/calcite-flow.js +1 -1
  621. package/dist/components/calcite-graph2.js +1 -1
  622. package/dist/components/calcite-handle2.js +1 -1
  623. package/dist/components/calcite-icon2.js +1 -1
  624. package/dist/components/calcite-inline-editable.js +1 -1
  625. package/dist/components/calcite-input-date-picker.js +28 -11
  626. package/dist/components/calcite-input-message.js +3 -4
  627. package/dist/components/calcite-input-time-picker.js +54 -52
  628. package/dist/components/calcite-input2.js +53 -33
  629. package/dist/components/calcite-label2.js +2 -4
  630. package/dist/components/calcite-link2.js +2 -2
  631. package/dist/components/calcite-list-item-group.js +1 -1
  632. package/dist/components/calcite-list-item.js +1 -1
  633. package/dist/components/calcite-list.js +1 -1
  634. package/dist/components/calcite-loader2.js +1 -1
  635. package/dist/components/calcite-modal.js +5 -7
  636. package/dist/components/calcite-notice.js +3 -4
  637. package/dist/components/calcite-option-group.js +1 -1
  638. package/dist/components/calcite-option.js +4 -2
  639. package/dist/components/calcite-pagination.js +3 -5
  640. package/dist/components/calcite-panel.js +10 -13
  641. package/dist/components/calcite-pick-list-group.js +3 -5
  642. package/dist/components/calcite-pick-list-item2.js +1 -1
  643. package/dist/components/calcite-pick-list.js +3 -2
  644. package/dist/components/calcite-popover-manager.js +2 -2
  645. package/dist/components/calcite-popover2.js +4 -6
  646. package/dist/components/calcite-progress2.js +1 -1
  647. package/dist/components/calcite-radio-button-group.js +1 -1
  648. package/dist/components/calcite-radio-button.js +19 -15
  649. package/dist/components/calcite-radio-group-item.js +6 -59
  650. package/dist/components/calcite-radio-group.js +16 -19
  651. package/dist/components/calcite-rating.js +2 -4
  652. package/dist/components/calcite-scrim2.js +1 -1
  653. package/dist/components/calcite-select.js +7 -7
  654. package/dist/components/calcite-shell-center-row.js +4 -5
  655. package/dist/components/calcite-shell-panel.js +171 -8
  656. package/dist/components/calcite-shell.js +1 -1
  657. package/dist/components/calcite-slider.js +24 -11
  658. package/dist/components/calcite-sortable-list.js +1 -1
  659. package/dist/components/calcite-split-button.js +5 -4
  660. package/dist/components/calcite-stepper-item.js +4 -6
  661. package/dist/components/calcite-stepper.js +2 -3
  662. package/dist/components/calcite-switch2.js +4 -6
  663. package/dist/components/calcite-tab-nav2.js +1 -1
  664. package/dist/components/calcite-tab-title2.js +6 -9
  665. package/dist/components/calcite-tab2.js +1 -1
  666. package/dist/components/calcite-tabs2.js +1 -1
  667. package/dist/components/calcite-tile-select-group.js +1 -1
  668. package/dist/components/calcite-tile-select.js +37 -4
  669. package/dist/components/calcite-tile2.js +1 -1
  670. package/dist/components/calcite-time-picker2.js +328 -196
  671. package/dist/components/calcite-tip-group.js +1 -1
  672. package/dist/components/calcite-tip-manager.js +1 -1
  673. package/dist/components/calcite-tip.js +1 -1
  674. package/dist/components/calcite-tooltip-manager2.js +3 -4
  675. package/dist/components/calcite-tooltip.js +2 -2
  676. package/dist/components/calcite-tree-item.js +2 -4
  677. package/dist/components/calcite-tree.js +1 -1
  678. package/dist/components/calcite-value-list-item.js +1 -1
  679. package/dist/components/calcite-value-list.js +11 -4
  680. package/dist/components/dom.js +39 -9
  681. package/dist/components/label.js +4 -1
  682. package/dist/components/locale.js +43 -38
  683. package/dist/components/number.js +57 -21
  684. package/dist/components/popper.js +117 -72
  685. package/dist/components/resources3.js +1 -1
  686. package/dist/components/shared-list-render.js +16 -6
  687. package/dist/custom-elements/index.d.ts +0 -6
  688. package/dist/custom-elements/index.js +1613 -1196
  689. package/dist/esm/{CalciteExpandToggle-677f2f8b.js → CalciteExpandToggle-48b6e955.js} +2 -2
  690. package/dist/esm/calcite-accordion_2.entry.js +5 -6
  691. package/dist/esm/calcite-action-bar.entry.js +28 -4
  692. package/dist/esm/calcite-action-group.entry.js +2 -2
  693. package/dist/esm/calcite-action-menu.entry.js +2 -2
  694. package/dist/esm/calcite-action-pad.entry.js +4 -9
  695. package/dist/esm/calcite-action.entry.js +1 -1
  696. package/dist/esm/calcite-alert.entry.js +26 -13
  697. package/dist/esm/calcite-avatar.entry.js +4 -5
  698. package/dist/esm/calcite-block_2.entry.js +10 -6
  699. package/dist/esm/calcite-button.entry.js +12 -7
  700. package/dist/esm/calcite-card.entry.js +3 -7
  701. package/dist/esm/calcite-checkbox.entry.js +5 -5
  702. package/dist/esm/calcite-chip.entry.js +4 -5
  703. package/dist/esm/calcite-color-picker_3.entry.js +36 -32
  704. package/dist/esm/calcite-combobox_3.entry.js +15 -18
  705. package/dist/esm/calcite-date-picker_4.entry.js +50 -38
  706. package/dist/esm/calcite-dropdown_3.entry.js +26 -29
  707. package/dist/esm/calcite-fab.entry.js +4 -5
  708. package/dist/esm/calcite-filter.entry.js +4 -19
  709. package/dist/esm/calcite-flow.entry.js +1 -1
  710. package/dist/esm/calcite-graph_2.entry.js +27 -15
  711. package/dist/esm/calcite-handle.entry.js +1 -1
  712. package/dist/esm/calcite-icon.entry.js +2 -2
  713. package/dist/esm/calcite-inline-editable.entry.js +3 -3
  714. package/dist/esm/calcite-input-date-picker.entry.js +31 -14
  715. package/dist/esm/calcite-input-message.entry.js +3 -4
  716. package/dist/esm/calcite-input-time-picker_2.entry.js +363 -238
  717. package/dist/esm/calcite-input.entry.js +57 -37
  718. package/dist/esm/calcite-label.entry.js +2 -5
  719. package/dist/esm/calcite-link.entry.js +3 -3
  720. package/dist/esm/calcite-list_3.entry.js +4 -4
  721. package/dist/esm/calcite-loader.entry.js +1 -1
  722. package/dist/esm/calcite-modal.entry.js +5 -7
  723. package/dist/esm/calcite-notice.entry.js +3 -4
  724. package/dist/esm/calcite-option_3.entry.js +14 -12
  725. package/dist/esm/calcite-pagination.entry.js +3 -6
  726. package/dist/esm/calcite-panel.entry.js +10 -13
  727. package/dist/esm/calcite-pick-list_3.entry.js +7 -8
  728. package/dist/esm/calcite-popover_2.entry.js +7 -9
  729. package/dist/esm/calcite-progress.entry.js +1 -1
  730. package/dist/esm/calcite-radio-button-group.entry.js +1 -1
  731. package/dist/esm/{calcite-radio_2.entry.js → calcite-radio-button.entry.js} +23 -53
  732. package/dist/esm/calcite-radio-group_2.entry.js +23 -78
  733. package/dist/esm/calcite-rating.entry.js +5 -6
  734. package/dist/esm/calcite-scrim.entry.js +1 -1
  735. package/dist/esm/calcite-shell_3.entry.js +171 -12
  736. package/dist/esm/calcite-sortable-list.entry.js +1 -1
  737. package/dist/esm/calcite-split-button.entry.js +4 -5
  738. package/dist/esm/calcite-stepper_2.entry.js +6 -8
  739. package/dist/esm/calcite-switch.entry.js +6 -8
  740. package/dist/esm/calcite-tab_4.entry.js +9 -12
  741. package/dist/esm/calcite-tile-select_2.entry.js +38 -5
  742. package/dist/esm/calcite-tile.entry.js +2 -2
  743. package/dist/esm/calcite-tip_3.entry.js +4 -4
  744. package/dist/esm/calcite-tooltip_2.entry.js +7 -8
  745. package/dist/esm/calcite-tree_2.entry.js +4 -6
  746. package/dist/esm/calcite-value-list_2.entry.js +13 -6
  747. package/dist/esm/calcite.js +2 -2
  748. package/dist/esm/{dom-f24e866c.js → dom-037dc374.js} +39 -9
  749. package/dist/esm/{form-160b0fb5.js → form-72369b73.js} +1 -1
  750. package/dist/esm/{label-5559055d.js → label-712646d2.js} +5 -2
  751. package/dist/esm/loader.js +2 -2
  752. package/dist/esm/locale-fc850b7c.js +123 -0
  753. package/dist/esm/number-8779395f.js +76 -0
  754. package/dist/esm/{popper-dc4b45cf.js → popper-7a7fd3b5.js} +118 -73
  755. package/dist/esm/{resources-16a2a25a.js → resources-03c0a433.js} +17 -7
  756. package/dist/esm/{resources-bece7a88.js → resources-90193940.js} +3 -2
  757. package/dist/esm-es5/CalciteExpandToggle-48b6e955.js +5 -0
  758. package/dist/esm-es5/calcite-accordion_2.entry.js +1 -1
  759. package/dist/esm-es5/calcite-action-bar.entry.js +2 -2
  760. package/dist/esm-es5/calcite-action-group.entry.js +1 -1
  761. package/dist/esm-es5/calcite-action-menu.entry.js +2 -2
  762. package/dist/esm-es5/calcite-action-pad.entry.js +1 -1
  763. package/dist/esm-es5/calcite-action.entry.js +2 -2
  764. package/dist/esm-es5/calcite-alert.entry.js +2 -2
  765. package/dist/esm-es5/calcite-avatar.entry.js +1 -1
  766. package/dist/esm-es5/calcite-block_2.entry.js +1 -1
  767. package/dist/esm-es5/calcite-button.entry.js +1 -1
  768. package/dist/esm-es5/calcite-card.entry.js +1 -1
  769. package/dist/esm-es5/calcite-checkbox.entry.js +2 -2
  770. package/dist/esm-es5/calcite-chip.entry.js +2 -2
  771. package/dist/esm-es5/calcite-color-picker_3.entry.js +1 -1
  772. package/dist/esm-es5/calcite-combobox_3.entry.js +2 -2
  773. package/dist/esm-es5/calcite-date-picker_4.entry.js +1 -1
  774. package/dist/esm-es5/calcite-dropdown_3.entry.js +2 -2
  775. package/dist/esm-es5/calcite-fab.entry.js +2 -2
  776. package/dist/esm-es5/calcite-filter.entry.js +2 -2
  777. package/dist/esm-es5/calcite-flow.entry.js +2 -2
  778. package/dist/esm-es5/calcite-graph_2.entry.js +2 -2
  779. package/dist/esm-es5/calcite-handle.entry.js +2 -2
  780. package/dist/esm-es5/calcite-icon.entry.js +2 -2
  781. package/dist/esm-es5/calcite-inline-editable.entry.js +2 -2
  782. package/dist/esm-es5/calcite-input-date-picker.entry.js +2 -2
  783. package/dist/esm-es5/calcite-input-message.entry.js +1 -1
  784. package/dist/esm-es5/calcite-input-time-picker_2.entry.js +2 -2
  785. package/dist/esm-es5/calcite-input.entry.js +2 -2
  786. package/dist/esm-es5/calcite-label.entry.js +1 -1
  787. package/dist/esm-es5/calcite-link.entry.js +2 -2
  788. package/dist/esm-es5/calcite-list_3.entry.js +2 -2
  789. package/dist/esm-es5/calcite-loader.entry.js +1 -1
  790. package/dist/esm-es5/calcite-modal.entry.js +2 -2
  791. package/dist/esm-es5/calcite-notice.entry.js +2 -2
  792. package/dist/esm-es5/calcite-option_3.entry.js +2 -2
  793. package/dist/esm-es5/calcite-pagination.entry.js +1 -1
  794. package/dist/esm-es5/calcite-panel.entry.js +1 -1
  795. package/dist/esm-es5/calcite-pick-list_3.entry.js +2 -2
  796. package/dist/esm-es5/calcite-popover_2.entry.js +2 -2
  797. package/dist/esm-es5/calcite-progress.entry.js +1 -1
  798. package/dist/esm-es5/calcite-radio-button-group.entry.js +1 -1
  799. package/dist/esm-es5/calcite-radio-button.entry.js +5 -0
  800. package/dist/esm-es5/calcite-radio-group_2.entry.js +2 -2
  801. package/dist/esm-es5/calcite-rating.entry.js +2 -2
  802. package/dist/esm-es5/calcite-scrim.entry.js +1 -1
  803. package/dist/esm-es5/calcite-shell_3.entry.js +1 -1
  804. package/dist/esm-es5/calcite-sortable-list.entry.js +1 -1
  805. package/dist/esm-es5/calcite-split-button.entry.js +1 -1
  806. package/dist/esm-es5/calcite-stepper_2.entry.js +2 -2
  807. package/dist/esm-es5/calcite-switch.entry.js +2 -2
  808. package/dist/esm-es5/calcite-tab_4.entry.js +1 -1
  809. package/dist/esm-es5/calcite-tile-select_2.entry.js +2 -2
  810. package/dist/esm-es5/calcite-tile.entry.js +1 -1
  811. package/dist/esm-es5/calcite-tip_3.entry.js +2 -2
  812. package/dist/esm-es5/calcite-tooltip_2.entry.js +2 -2
  813. package/dist/esm-es5/calcite-tree_2.entry.js +1 -1
  814. package/dist/esm-es5/calcite-value-list_2.entry.js +2 -2
  815. package/dist/esm-es5/calcite.js +1 -1
  816. package/dist/esm-es5/dom-037dc374.js +5 -0
  817. package/dist/esm-es5/{form-160b0fb5.js → form-72369b73.js} +1 -1
  818. package/dist/esm-es5/label-712646d2.js +5 -0
  819. package/dist/esm-es5/loader.js +1 -1
  820. package/dist/esm-es5/locale-fc850b7c.js +5 -0
  821. package/dist/esm-es5/number-8779395f.js +5 -0
  822. package/dist/esm-es5/popper-7a7fd3b5.js +5 -0
  823. package/dist/esm-es5/resources-03c0a433.js +5 -0
  824. package/dist/esm-es5/{resources-bece7a88.js → resources-90193940.js} +1 -1
  825. package/dist/extras/docs-json.json +265 -251
  826. package/dist/types/components/calcite-accordion/calcite-accordion.d.ts +1 -1
  827. package/dist/types/components/calcite-accordion-item/calcite-accordion-item.d.ts +1 -1
  828. package/dist/types/components/calcite-action-bar/calcite-action-bar.d.ts +2 -1
  829. package/dist/types/components/calcite-alert/calcite-alert.d.ts +8 -3
  830. package/dist/types/components/calcite-alert/interfaces.d.ts +1 -0
  831. package/dist/types/components/calcite-block/calcite-block.d.ts +1 -0
  832. package/dist/types/components/calcite-button/resources.d.ts +2 -0
  833. package/dist/types/components/calcite-color-picker/calcite-color-picker.d.ts +1 -1
  834. package/dist/types/components/calcite-date-picker/calcite-date-picker.d.ts +6 -0
  835. package/dist/types/components/calcite-date-picker/resources.d.ts +1 -0
  836. package/dist/types/components/calcite-date-picker-month-header/calcite-date-picker-month-header.d.ts +3 -1
  837. package/dist/types/components/calcite-filter/calcite-filter.d.ts +1 -10
  838. package/dist/types/components/calcite-input-date-picker/calcite-input-date-picker.d.ts +15 -0
  839. package/dist/types/components/calcite-input-time-picker/calcite-input-time-picker.d.ts +13 -5
  840. package/dist/types/components/calcite-panel/calcite-panel.d.ts +1 -1
  841. package/dist/types/components/calcite-panel/resources.d.ts +1 -0
  842. package/dist/types/components/calcite-pick-list/calcite-pick-list.d.ts +2 -1
  843. package/dist/types/components/calcite-pick-list/shared-list-logic.d.ts +1 -0
  844. package/dist/types/components/calcite-pick-list/shared-list-render.d.ts +2 -2
  845. package/dist/types/components/calcite-radio-button/calcite-radio-button.d.ts +1 -0
  846. package/dist/types/components/calcite-radio-group/calcite-radio-group.d.ts +1 -2
  847. package/dist/types/components/calcite-radio-group-item/calcite-radio-group-item.d.ts +0 -8
  848. package/dist/types/components/calcite-select/calcite-select.d.ts +1 -2
  849. package/dist/types/components/calcite-shell-panel/calcite-shell-panel.d.ts +31 -0
  850. package/dist/types/components/calcite-shell-panel/resources.d.ts +4 -0
  851. package/dist/types/components/calcite-slider/calcite-slider.d.ts +5 -0
  852. package/dist/types/components/calcite-split-button/calcite-split-button.d.ts +3 -0
  853. package/dist/types/components/calcite-tile-select/resources.d.ts +16 -0
  854. package/dist/types/components/calcite-time-picker/calcite-time-picker.d.ts +36 -24
  855. package/dist/types/components/calcite-time-picker/resources.d.ts +14 -8
  856. package/dist/types/components/calcite-value-list/calcite-value-list.d.ts +4 -2
  857. package/dist/types/components.d.ts +103 -114
  858. package/dist/types/preact.d.ts +2 -3
  859. package/dist/types/stencil-public-runtime.d.ts +6 -4
  860. package/dist/types/utils/conditionalSlot.d.ts +17 -0
  861. package/dist/types/utils/dom.d.ts +20 -3
  862. package/dist/types/utils/key.d.ts +0 -4
  863. package/dist/types/utils/label.d.ts +4 -0
  864. package/dist/types/utils/number.d.ts +4 -1
  865. package/dist/types/utils/time.d.ts +18 -5
  866. package/hydrate/index.js +1643 -1219
  867. package/package.json +37 -36
  868. package/readme.md +2 -2
  869. package/CHANGELOG.md +0 -1540
  870. package/dist/calcite/p-004460a0.system.entry.js +0 -5
  871. package/dist/calcite/p-044d603d.system.entry.js +0 -5
  872. package/dist/calcite/p-047e1000.system.entry.js +0 -5
  873. package/dist/calcite/p-05da7439.entry.js +0 -5
  874. package/dist/calcite/p-08d707c4.entry.js +0 -5
  875. package/dist/calcite/p-10708f87.system.entry.js +0 -5
  876. package/dist/calcite/p-109049e6.system.entry.js +0 -5
  877. package/dist/calcite/p-127e3513.system.entry.js +0 -5
  878. package/dist/calcite/p-15f3a0d7.system.entry.js +0 -5
  879. package/dist/calcite/p-16bb48f6.system.entry.js +0 -5
  880. package/dist/calcite/p-16f2d814.system.entry.js +0 -5
  881. package/dist/calcite/p-1942876c.js +0 -5
  882. package/dist/calcite/p-1a962bdd.js +0 -5
  883. package/dist/calcite/p-1aa89347.system.entry.js +0 -5
  884. package/dist/calcite/p-1c8fe17f.system.entry.js +0 -5
  885. package/dist/calcite/p-1dd440e6.system.entry.js +0 -5
  886. package/dist/calcite/p-243d95ab.system.entry.js +0 -5
  887. package/dist/calcite/p-289bc56f.entry.js +0 -5
  888. package/dist/calcite/p-29771742.entry.js +0 -5
  889. package/dist/calcite/p-2a714a22.entry.js +0 -5
  890. package/dist/calcite/p-2aa3007a.entry.js +0 -5
  891. package/dist/calcite/p-33226317.entry.js +0 -5
  892. package/dist/calcite/p-33802886.entry.js +0 -5
  893. package/dist/calcite/p-38bd222a.entry.js +0 -5
  894. package/dist/calcite/p-3a592bf3.system.entry.js +0 -5
  895. package/dist/calcite/p-3dae9da3.js +0 -5
  896. package/dist/calcite/p-3e6fcede.entry.js +0 -5
  897. package/dist/calcite/p-4035444d.system.js +0 -5
  898. package/dist/calcite/p-4778c5cf.system.entry.js +0 -5
  899. package/dist/calcite/p-4acfb654.entry.js +0 -5
  900. package/dist/calcite/p-4d11efdb.system.entry.js +0 -5
  901. package/dist/calcite/p-4e16515a.system.entry.js +0 -5
  902. package/dist/calcite/p-4f1f83d2.entry.js +0 -5
  903. package/dist/calcite/p-502ea583.entry.js +0 -5
  904. package/dist/calcite/p-52cc870b.js +0 -5
  905. package/dist/calcite/p-54394dfe.system.entry.js +0 -5
  906. package/dist/calcite/p-56b352bf.system.js +0 -5
  907. package/dist/calcite/p-578509a8.entry.js +0 -5
  908. package/dist/calcite/p-592da79d.system.entry.js +0 -5
  909. package/dist/calcite/p-59a285d8.system.entry.js +0 -5
  910. package/dist/calcite/p-5c0c29bc.entry.js +0 -5
  911. package/dist/calcite/p-5eee672a.system.entry.js +0 -5
  912. package/dist/calcite/p-5efd81e1.entry.js +0 -5
  913. package/dist/calcite/p-5f2a9710.system.entry.js +0 -5
  914. package/dist/calcite/p-5f817b79.entry.js +0 -5
  915. package/dist/calcite/p-6296644b.entry.js +0 -5
  916. package/dist/calcite/p-63da2e34.system.entry.js +0 -5
  917. package/dist/calcite/p-63e60894.entry.js +0 -5
  918. package/dist/calcite/p-6484ffb7.system.entry.js +0 -5
  919. package/dist/calcite/p-659898bf.entry.js +0 -5
  920. package/dist/calcite/p-6cc23c39.system.js +0 -5
  921. package/dist/calcite/p-72563742.js +0 -5
  922. package/dist/calcite/p-74f390e1.system.entry.js +0 -5
  923. package/dist/calcite/p-75264173.entry.js +0 -5
  924. package/dist/calcite/p-75955cef.entry.js +0 -5
  925. package/dist/calcite/p-765fb8ed.entry.js +0 -5
  926. package/dist/calcite/p-7ba971b5.system.entry.js +0 -5
  927. package/dist/calcite/p-7cbc72b6.system.entry.js +0 -5
  928. package/dist/calcite/p-81ab443c.entry.js +0 -5
  929. package/dist/calcite/p-82c6cd9a.entry.js +0 -5
  930. package/dist/calcite/p-840f2937.system.entry.js +0 -5
  931. package/dist/calcite/p-8445bc9c.system.entry.js +0 -5
  932. package/dist/calcite/p-85032edc.system.entry.js +0 -5
  933. package/dist/calcite/p-8603b2e1.entry.js +0 -5
  934. package/dist/calcite/p-8b2ead09.system.entry.js +0 -5
  935. package/dist/calcite/p-8baa9ba4.entry.js +0 -5
  936. package/dist/calcite/p-8e252799.system.js +0 -5
  937. package/dist/calcite/p-8fef13ca.system.entry.js +0 -5
  938. package/dist/calcite/p-91645bf7.system.js +0 -5
  939. package/dist/calcite/p-9338b0bc.entry.js +0 -5
  940. package/dist/calcite/p-9577dfd9.entry.js +0 -5
  941. package/dist/calcite/p-95b9a0f2.system.entry.js +0 -5
  942. package/dist/calcite/p-968ea270.entry.js +0 -5
  943. package/dist/calcite/p-9abbbcbd.system.entry.js +0 -5
  944. package/dist/calcite/p-9be6633a.entry.js +0 -5
  945. package/dist/calcite/p-a5269f14.system.entry.js +0 -5
  946. package/dist/calcite/p-a61d85db.system.entry.js +0 -5
  947. package/dist/calcite/p-a8dc2982.system.entry.js +0 -5
  948. package/dist/calcite/p-aa47308a.entry.js +0 -5
  949. package/dist/calcite/p-ace12b8d.entry.js +0 -5
  950. package/dist/calcite/p-aced5f01.entry.js +0 -5
  951. package/dist/calcite/p-aec398f3.system.entry.js +0 -5
  952. package/dist/calcite/p-b1351c3e.system.entry.js +0 -5
  953. package/dist/calcite/p-b1a96c72.system.entry.js +0 -5
  954. package/dist/calcite/p-b1f88d45.system.js +0 -5
  955. package/dist/calcite/p-b2ab0485.js +0 -5
  956. package/dist/calcite/p-b4b1081f.system.entry.js +0 -5
  957. package/dist/calcite/p-b94bf8ac.system.entry.js +0 -5
  958. package/dist/calcite/p-c0e35328.entry.js +0 -5
  959. package/dist/calcite/p-c34c4414.system.js +0 -5
  960. package/dist/calcite/p-c3ba61ea.entry.js +0 -5
  961. package/dist/calcite/p-c4cb4fab.system.entry.js +0 -5
  962. package/dist/calcite/p-c61ebee9.entry.js +0 -5
  963. package/dist/calcite/p-c87c04a9.entry.js +0 -5
  964. package/dist/calcite/p-ca3bb147.entry.js +0 -5
  965. package/dist/calcite/p-cbe9f1a2.system.entry.js +0 -5
  966. package/dist/calcite/p-cbf6bb04.system.js +0 -5
  967. package/dist/calcite/p-cc788d2e.entry.js +0 -5
  968. package/dist/calcite/p-cced5508.system.entry.js +0 -5
  969. package/dist/calcite/p-cf03b144.system.entry.js +0 -5
  970. package/dist/calcite/p-d53cc958.js +0 -5
  971. package/dist/calcite/p-d550ee4d.entry.js +0 -5
  972. package/dist/calcite/p-d6e30c54.entry.js +0 -5
  973. package/dist/calcite/p-dbe899c6.system.entry.js +0 -5
  974. package/dist/calcite/p-dd464e44.system.entry.js +0 -5
  975. package/dist/calcite/p-deb36fde.system.entry.js +0 -5
  976. package/dist/calcite/p-defcee80.system.entry.js +0 -5
  977. package/dist/calcite/p-dff7dc90.system.js +0 -5
  978. package/dist/calcite/p-e33fe285.system.entry.js +0 -5
  979. package/dist/calcite/p-e52495d3.system.entry.js +0 -5
  980. package/dist/calcite/p-e5e3b591.entry.js +0 -5
  981. package/dist/calcite/p-e616f9b5.entry.js +0 -5
  982. package/dist/calcite/p-e6d05ad6.system.entry.js +0 -5
  983. package/dist/calcite/p-e70cb594.system.entry.js +0 -5
  984. package/dist/calcite/p-eada9cef.entry.js +0 -5
  985. package/dist/calcite/p-ecc00ef0.entry.js +0 -5
  986. package/dist/calcite/p-ed15771f.system.entry.js +0 -5
  987. package/dist/calcite/p-ed453bfb.entry.js +0 -5
  988. package/dist/calcite/p-ef39847e.entry.js +0 -5
  989. package/dist/calcite/p-efb2169a.entry.js +0 -5
  990. package/dist/calcite/p-f0338acf.system.entry.js +0 -5
  991. package/dist/calcite/p-f07d3627.js +0 -5
  992. package/dist/calcite/p-f1c5e7cf.entry.js +0 -5
  993. package/dist/calcite/p-f278dd53.entry.js +0 -5
  994. package/dist/calcite/p-f9c46578.entry.js +0 -5
  995. package/dist/calcite/p-fc47547f.system.entry.js +0 -5
  996. package/dist/calcite/p-fc643963.entry.js +0 -5
  997. package/dist/cjs/key-8bfb93ec.js +0 -37
  998. package/dist/cjs/locale-69dc9583.js +0 -123
  999. package/dist/cjs/number-e6448e15.js +0 -45
  1000. package/dist/collection/components/calcite-radio/calcite-radio.css +0 -162
  1001. package/dist/collection/components/calcite-radio/calcite-radio.js +0 -169
  1002. package/dist/components/calcite-radio.d.ts +0 -11
  1003. package/dist/components/calcite-radio.js +0 -10
  1004. package/dist/components/calcite-radio2.js +0 -71
  1005. package/dist/components/key.js +0 -33
  1006. package/dist/esm/key-69001a68.js +0 -33
  1007. package/dist/esm/locale-6c1b85c7.js +0 -118
  1008. package/dist/esm/number-e7393766.js +0 -40
  1009. package/dist/esm-es5/CalciteExpandToggle-677f2f8b.js +0 -5
  1010. package/dist/esm-es5/calcite-radio_2.entry.js +0 -5
  1011. package/dist/esm-es5/dom-f24e866c.js +0 -5
  1012. package/dist/esm-es5/key-69001a68.js +0 -5
  1013. package/dist/esm-es5/label-5559055d.js +0 -5
  1014. package/dist/esm-es5/locale-6c1b85c7.js +0 -5
  1015. package/dist/esm-es5/number-e7393766.js +0 -5
  1016. package/dist/esm-es5/popper-dc4b45cf.js +0 -5
  1017. package/dist/esm-es5/resources-16a2a25a.js +0 -5
  1018. package/dist/types/components/calcite-radio/calcite-radio.d.ts +0 -22
@@ -1,5 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- */
5
- import{r as t,h as e,H as a,g as i}from"./p-2e29554c.js";import{g as n}from"./p-8a63221d.js";import{d as o,u as r,c as s,C as l}from"./p-d53cc958.js";import{q as c}from"./p-52cc870b.js";import{g as p}from"./p-72563742.js";const m="data-calcite-tooltip-reference";let f=class{constructor(e){t(this,e),this.offsetDistance=o,this.offsetSkidding=0,this.open=!1,this.overlayPositioning="absolute",this.placement="auto",this.guid=`calcite-tooltip-${n()}`,this.setUpReferenceElement=()=>{this.removeReferences(),this.effectiveReferenceElement=this.getReferenceElement();const{el:t,referenceElement:e,effectiveReferenceElement:a}=this;e&&!a&&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.addReferences=()=>{const{effectiveReferenceElement:t}=this;if(!t)return;const e=this.getId();t.setAttribute(m,e),t.setAttribute("aria-describedby",e)},this.removeReferences=()=>{const{effectiveReferenceElement:t}=this;t&&(t.removeAttribute(m),t.removeAttribute("aria-describedby"))},this.show=()=>{this.open=!0},this.hide=()=>{this.open=!1}}offsetDistanceOffsetHandler(){this.reposition()}offsetSkiddingHandler(){this.reposition()}openHandler(){this.reposition()}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:a}=this,i=this.getModifiers();t?await r({el:e,modifiers:i,placement:a,popper:t}):this.createPopper()}getReferenceElement(){const{referenceElement:t,el:e}=this;return("string"==typeof t?c(e,`#${t}`):t)||null}getModifiers(){const{arrowEl:t,offsetDistance:e,offsetSkidding:a}=this;return[{name:"arrow",enabled:!0,options:{element:t}},{name:"offset",enabled:!0,options:{offset:[a,e]}}]}createPopper(){this.destroyPopper();const{el:t,placement:e,effectiveReferenceElement:a,overlayPositioning:i}=this,n=this.getModifiers();this.popper=s({el:t,modifiers:n,placement:e,overlayPositioning:i,referenceEl:a})}destroyPopper(){const{popper:t}=this;t&&t.destroy(),this.popper=null}render(){const{effectiveReferenceElement:t,label:i,open:n}=this,o=t&&n,r=!o;return e(a,{"aria-hidden":r.toString(),"aria-label":i,"calcite-hydrated-hidden":r,id:this.getId(),role:"tooltip"},e("div",{class:{[l.animation]:!0,[l.animationActive]:o}},e("div",{class:"arrow",ref:t=>this.arrowEl=t}),e("div",{class:"container"},e("slot",null))))}get el(){return i(this)}static get watchers(){return{offsetDistance:["offsetDistanceOffsetHandler"],offsetSkidding:["offsetSkiddingHandler"],open:["openHandler"],placement:["placementHandler"],referenceElement:["referenceElementHandler"]}}};f.style='@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name: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:999;-webkit-transform:scale(0);transform:scale(0)}.calcite-popper-anim{position:relative;z-index:1;-webkit-transition:var(--calcite-popper-transition);transition:var(--calcite-popper-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}:host([data-popper-placement^=bottom]) .calcite-popper-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}:host([data-popper-placement^=top]) .calcite-popper-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}:host([data-popper-placement^=left]) .calcite-popper-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}:host([data-popper-placement^=right]) .calcite-popper-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}:host([data-popper-placement]) .calcite-popper-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}.arrow,.arrow::before{position:absolute;width:8px;height:8px;z-index:-1}.arrow::before{content:"";-webkit-box-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);box-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);-webkit-transform:rotate(45deg);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}.container{position:relative;background-color:var(--calcite-ui-foreground-1);display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-direction:column;flex-direction:column;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1);padding-top:0.75rem;padding-bottom:0.75rem;padding-left:1rem;padding-right:1rem;overflow:hidden;font-size:var(--calcite-font-size--2);line-height:1.375;border-radius:0.25rem;max-width:20rem;max-height:20rem}.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)}';let h=class{constructor(e){t(this,e),this.hoverTimeouts=new WeakMap,this.selector=`[${m}]`,this.queryTooltip=t=>{var e;const{selector:a,el:i}=this,n=null===(e=t.closest(a))||void 0===e?void 0:e.getAttribute(m);return c(i,`#${n}`)},this.clearHoverTimeout=t=>{const{hoverTimeouts:e}=this;e.has(t)&&(window.clearTimeout(e.get(t)),e.delete(t))},this.closeExistingTooltip=()=>{const{tooltipEl:t}=this;t&&this.toggleTooltip(t,!1)},this.focusTooltip=({tooltip:t,value:e})=>{this.closeExistingTooltip(),e&&this.clearHoverTimeout(t),this.toggleTooltip(t,e)},this.toggleTooltip=(t,e)=>{t.open=e,e&&(this.tooltipEl=t)},this.hoverToggle=({tooltip:t,value:e})=>{const{hoverTimeouts:a}=this;a.delete(t),e&&this.closeExistingTooltip(),this.toggleTooltip(t,e)},this.hoverTooltip=({tooltip:t,value:e})=>{this.clearHoverTimeout(t);const{hoverTimeouts:a}=this,i=window.setTimeout((()=>this.hoverToggle({tooltip:t,value:e})),500);a.set(t,i)},this.activeTooltipHover=t=>{const{tooltipEl:e,hoverTimeouts:a}=this,{type:i}=t;e&&("mouseover"===i&&t.composedPath().includes(e)?this.clearHoverTimeout(e):"mouseout"!==i||a.has(e)||this.hoverTooltip({tooltip:e,value:!1}))},this.hoverEvent=(t,e)=>{const a=this.queryTooltip(t.target);this.activeTooltipHover(t),a&&this.hoverTooltip({tooltip:a,value:e})},this.focusEvent=(t,e)=>{const a=this.queryTooltip(t.target);a&&a!==this.clickedTooltip?this.focusTooltip({tooltip:a,value:e}):this.clickedTooltip=null}}render(){return e("slot",null)}keyUpHandler(t){if("Escape"===p(t.key)){const{tooltipEl:t}=this;t&&(this.clearHoverTimeout(t),this.toggleTooltip(t,!1))}}mouseEnterShow(t){this.hoverEvent(t,!0)}mouseLeaveHide(t){this.hoverEvent(t,!1)}clickHandler(t){const e=this.queryTooltip(t.target);this.clickedTooltip=e,e&&this.toggleTooltip(e,!1)}focusShow(t){this.focusEvent(t,!0)}blurHide(t){this.focusEvent(t,!1)}get el(){return i(this)}};h.style="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:block}";export{f as calcite_tooltip,h as calcite_tooltip_manager}
@@ -1,5 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- */
5
- import{g as n}from"./p-8a63221d.js";const t={autoTheme:"calcite-theme-auto",darkTheme:"calcite-theme-dark",lightTheme:"calcite-theme-light",rtl:"calcite--rtl"},r={loading:"Loading"};function u(t){return t?t.id=t.id||`${t.tagName.toLowerCase()}-${n()}`:""}function o(n){return Array.isArray(n)?n:Array.from(n)}function e(n){return d(n,`.${t.darkTheme}`)?"dark":"light"}function i(n){const t=d(n,"[dir]");return t?t.getAttribute("dir"):"ltr"}function c(n,t,r){const u=n.closest(`[${t}]`);return u?u.getAttribute(t):r}function a(n){return n.getRootNode()}function l(n){return n.host||null}function s(n,t){return function n(r,u){if(!r)return u;r.assignedSlot&&(r=r.assignedSlot);const o=a(r),e=Array.from(o.querySelectorAll(t)).filter((n=>!u.includes(n)));u=[...u,...e];const i=l(o);return i?n(i,u):u}(n,[])}function f(n,t){return function n(r){if(!r)return null;r.assignedSlot&&(r=r.assignedSlot);const u=a(r),o=u.querySelector(t),e=l(u);return o||(e?n(e):null)}(n)}function d(n,t){return function n(r){return r?r.closest(t)||n(l(a(r))):null}(n)}function h(n){return"function"==typeof(null==n?void 0:n.setFocus)}async function y(n){if(n)return h(n)?n.setFocus():n.focus()}function g(n,t,r){const u=`[slot="${t}"]`;return(null==r?void 0:r.all)?function(n,t,r){let u=Array.from(n.querySelectorAll(t));u=r&&!1===r.direct?u:u.filter((t=>t.parentElement===n));const o=null==r?void 0:r.selector;return o?u.map((n=>Array.from(n.querySelectorAll(o)))).reduce(((n,t)=>[...n,...t]),[]).filter((n=>!!n)):u}(n,u,r):function(n,t,r){let u=n.querySelector(t);u=r&&!1===r.direct||(null==u?void 0:u.parentElement)===n?u:null;const o=null==r?void 0:r.selector;return o?u.querySelector(o):u}(n,u,r)}function m(n,t){return Array.from(n.children).filter((n=>n.matches(t)))}function v(n,t,r){return"string"==typeof t&&""!==t?t:""===t?n[r]:void 0}function A(n,t){return!(t.left>n.right||t.right<n.left||t.top>n.bottom||t.bottom<n.top)}export{t as C,r as T,i as a,e as b,d as c,c as d,u as e,y as f,g,s as h,h as i,A as j,m as k,o as n,f as q,v as s}
@@ -1,5 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,i,n){function a(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,o){function r(t){try{c(n.next(t))}catch(t){o(t)}}function s(t){try{c(n["throw"](t))}catch(t){o(t)}}function c(t){t.done?i(t.value):a(t.value).then(r,s)}c((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,r;return r={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function s(t){return function(e){return c([t,e])}}function c(r){if(n)throw new TypeError("Generator is already executing.");while(i)try{if(n=1,a&&(o=r[0]&2?a["return"]:r[0]?a["throw"]||((o=a["return"])&&o.call(a),0):a.next)&&!(o=o.call(a,r[1])).done)return o;if(a=0,o)r=[r[0]&2,o.value];switch(r[0]){case 0:case 1:o=r;break;case 4:i.label++;return{value:r[1],done:false};case 5:i.label++;a=r[1];r=[0];continue;case 7:r=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(r[0]===6||r[0]===2)){i=0;continue}if(r[0]===3&&(!o||r[1]>o[0]&&r[1]<o[3])){i.label=r[1];break}if(r[0]===6&&i.label<o[1]){i.label=o[1];o=r;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(r);break}if(o[2])i.ops.pop();i.trys.pop();continue}r=e.call(t,i)}catch(t){r=[6,t];a=0}finally{n=o=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,e){for(var i=0,n=e.length,a=t.length;i<n;i++,a++)t[a]=e[i];return t};
2
- /*!
3
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
4
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
5
- */System.register(["./p-288bc438.system.js","./p-1d6404b5.system.js","./p-6a541e77.system.js","./p-6cc23c39.system.js","./p-56b352bf.system.js","./p-b1f88d45.system.js","./p-e020662f.system.js","./p-c34c4414.system.js","./p-523bc291.system.js","./p-db10485b.system.js"],(function(t){"use strict";var e,i,n,a,o,r,s,c,l,p,m,u,d,f,h,b,v,x,g,y,w,k,I,C,D,E,_;return{setters:[function(t){e=t.r;i=t.c;n=t.h;a=t.H;o=t.g},function(t){r=t.a;s=t.S;c=t.d},function(t){l=t.i;p=t.f},function(t){m=t.n;u=t.a;d=t.d;f=t.C},function(t){h=t.g},function(t){b=t.u;v=t.c;x=t.C},function(t){g=t.g},function(t){y=t.c;w=t.d;k=t.g},function(t){I=t.c;C=t.a;D=t.d;E=t.H},function(t){_=t.c}],execute:function(){function H(t,e){var i=-1,n=t==null?0:t.length,a=Array(n);while(++i<n){a[i]=e(t[i],i,t)}return a}var A=1/0;var S=s?s.prototype:undefined,L=S?S.toString:undefined;function M(t){if(typeof t=="string"){return t}if(l(t)){return H(t,M)+""}if(r(t)){return L?L.call(t):""}var e=t+"";return e=="0"&&1/t==-A?"-0":e}function O(t){return t==null?"":M(t)}var z=/[\\^$.*+?()[\]{}|]/g,F=RegExp(z.source);function P(t){t=O(t);return t&&F.test(t)?t.replace(z,"\\$&"):t}var T=function(t,e){var i=P(e);var n=new RegExp(i,"i");if(t.length===0){console.warn("No data was passed to the filter function.\n The data argument should be an array of objects")}var a=function(t,e){var i;if((i=t)===null||i===void 0?void 0:i.constant){return true}var n=false;p(t,(function(t){if(typeof t==="function"){return}if(Array.isArray(t)||typeof t==="object"&&t!==null){if(a(t,e)){n=true}}else if(e.test(t)){n=true}}));return n};var o=t.filter((function(t){return a(t,n)}));return o};var j="CALCITE-COMBOBOX-ITEM";var V="CALCITE-COMBOBOX-ITEM-GROUP";var N=j+", "+V;var B="bottom-leading";function R(t){var e,i;var n=(e=t.parentElement)===null||e===void 0?void 0:e.closest(N);var a=(i=n===null||n===void 0?void 0:n.parentElement)===null||i===void 0?void 0:i.closest(N);return[n,a].filter((function(t){return t}))}function q(t){var e;return((e=t.ancestors)===null||e===void 0?void 0:e.filter((function(t){return t.nodeName==="CALCITE-COMBOBOX-ITEM"})))||[]}function X(t){return m(t.querySelectorAll("calcite-combobox-item"))}function Y(t){var e=m(t.querySelectorAll("calcite-combobox-item"));return e.filter((function(t){return t.selected})).length>0}function G(t){var e=document.evaluate("ancestor::calcite-combobox-item | ancestor::calcite-combobox-item-group",t,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);return e.snapshotLength}var U="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:block;position:relative}:host([disabled]){pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:0.5}:host([scale=s]){font-size:var(--calcite-font-size--2);--calcite-combobox-item-spacing-unit-l:0.5rem;--calcite-combobox-item-spacing-unit-s:0.25rem;--calcite-combobox-input-height:1.5rem}:host([scale=m]){font-size:var(--calcite-font-size--1);--calcite-combobox-item-spacing-unit-l:0.75rem;--calcite-combobox-item-spacing-unit-s:0.5rem;--calcite-combobox-input-height:2rem}:host([scale=l]){font-size:var(--calcite-font-size-0);--calcite-combobox-item-spacing-unit-l:1rem;--calcite-combobox-item-spacing-unit-s:0.75rem;--calcite-combobox-input-height:2.75rem}.wrapper{display:-ms-flexbox;display:flex;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-1);outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);padding:0 var(--calcite-combobox-item-spacing-unit-l) 0 var(--calcite-combobox-item-spacing-unit-l)}:host(:focus-within) .wrapper,.wrapper--active{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.wrapper--single{padding:0 var(--calcite-combobox-item-spacing-unit-l);cursor:pointer;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.grid-input{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;padding:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.input{-ms-flex-positive:1;flex-grow:1;font-family:inherit;padding:0;background-color:transparent;border-style:none;color:var(--calcite-ui-text-1);-webkit-appearance:none;-moz-appearance:none;appearance:none;font-size:inherit;height:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height);min-width:120px;margin-bottom:var(--calcite-combobox-item-spacing-unit-s)}.input:focus{outline:2px solid transparent;outline-offset:2px}.input--transparent{opacity:0}.input--single{margin-bottom:0;margin-top:0;padding:0}.wrapper--active .input-single{cursor:text}.input--hidden{width:0;min-width:0;opacity:0;pointer-events:none}.input--icon{padding:0 var(--calcite-combobox-item-spacing-unit-l)}.input-wrap{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1}.input-wrap--single{-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden}.label{padding:0;display:-ms-flexbox;display:flex;font-weight:var(--calcite-font-weight-normal);-ms-flex:1 1 auto;flex:1 1 auto;pointer-events:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;height:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height)}.label--spaced{padding-top:0;padding-bottom:0;padding-left:var(--calcite-combobox-item-spacing-unit-l);padding-right:var(--calcite-combobox-item-spacing-unit-l)}.icon-end,.icon-start{cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;width:1rem}.icon-end{-ms-flex:none;flex:none}.popper-container{width:100%;display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0);visibility:hidden;pointer-events:none}.popper-container .calcite-popper-anim{position:relative;z-index:1;-webkit-transition:var(--calcite-popper-transition);transition:var(--calcite-popper-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}.popper-container[data-popper-placement^=bottom] .calcite-popper-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}.popper-container[data-popper-placement^=top] .calcite-popper-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}.popper-container[data-popper-placement^=left] .calcite-popper-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}.popper-container[data-popper-placement^=right] .calcite-popper-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}.popper-container[data-popper-placement] .calcite-popper-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}.popper-container--active{pointer-events:initial;visibility:visible}.screen-readers-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.list-container{overflow-y:auto;max-height:100vh;background-color:var(--calcite-ui-foreground-1);width:var(--calcite-dropdown-width)}.list{display:block;margin:0;padding:0}.list--hide{height:0;overflow:hidden}.chip{margin:calc(var(--calcite-combobox-item-spacing-unit-s) / 2) var(--calcite-combobox-item-spacing-unit-s) calc(var(--calcite-combobox-item-spacing-unit-s) / 2) 0;max-width:100%}.chip--active{background-color:var(--calcite-ui-foreground-3)}.chip:last-child{margin-right:0}.chip--rtl{margin-right:unset;margin-left:var(--calcite-combobox-item-spacing-unit-l)}.chip--rtl:last-child{margin-left:0}.item{display:block}::slotted(input[slot=hidden-form-input]){bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";var W=function(t){return t.tagName===V};var $=t("calcite_combobox",function(){function t(t){var n=this;e(this,t);this.calciteLookupChange=i(this,"calciteLookupChange",7);this.calciteComboboxChange=i(this,"calciteComboboxChange",7);this.calciteComboboxFilterChange=i(this,"calciteComboboxFilterChange",7);this.calciteComboboxChipDismiss=i(this,"calciteComboboxChipDismiss",7);this.calciteComboboxOpen=i(this,"calciteComboboxOpen",7);this.calciteComboboxClose=i(this,"calciteComboboxClose",7);this.active=false;this.disabled=false;this.maxItems=0;this.overlayPositioning="absolute";this.required=false;this.selectionMode="multi";this.scale="m";this.value=null;this.internalValueChangeFlag=false;this.items=[];this.groupItems=[];this.selectedItems=[];this.visibleItems=[];this.hideList=!this.active;this.activeItemIndex=-1;this.activeChipIndex=-1;this.activeDescendant="";this.text="";this.open=this.active;this.maxScrollerHeight=0;this.textInput=null;this.mutationObserver=_("mutation",(function(){return n.updateItems()}));this.guid=g();this.inputHeight=0;this.ignoreSelectedEventsFlag=false;this.activeTransitionProp="opacity";this.getValue=function(){var t=n.selectedItems.map((function(t){return t===null||t===void 0?void 0:t.value.toString()}));return(t===null||t===void 0?void 0:t.length)?t.length>1?t:t[0]:""};this.onLabelClick=function(){n.setFocus()};this.keydownHandler=function(t){var e=h(t.key,u(n.el));switch(e){case"Tab":n.activeChipIndex=-1;n.activeItemIndex=-1;if(n.allowCustomValues&&n.text){n.addCustomChip(n.text,true);t.preventDefault()}else{n.active=false}break;case"ArrowLeft":n.previousChip();break;case"ArrowRight":n.nextChip();break;case"ArrowUp":t.preventDefault();n.active=true;n.shiftActiveItemIndex(-1);break;case"ArrowDown":t.preventDefault();n.active=true;n.shiftActiveItemIndex(1);break;case"Home":n.active=true;n.updateActiveItemIndex(0);break;case"End":n.active=true;n.updateActiveItemIndex(n.visibleItems.length-1);break;case"Escape":n.active=false;break;case"Enter":if(n.activeItemIndex>-1){n.toggleSelection(n.visibleItems[n.activeItemIndex])}else if(n.activeChipIndex>-1){n.removeActiveChip()}else if(n.allowCustomValues&&n.text){n.addCustomChip(n.text,true)}break;case"Delete":case"Backspace":if(n.activeChipIndex>-1){n.removeActiveChip()}else if(!n.text&&n.isMulti()){n.removeLastChip()}break;default:if(!n.active){n.setFocus()}break}};this.toggleCloseEnd=function(){n.hideList=true;n.el.removeEventListener("calciteComboboxClose",n.toggleCloseEnd)};this.toggleOpenEnd=function(){n.hideList=false;n.el.removeEventListener("calciteComboboxOpen",n.toggleOpenEnd)};this.transitionEnd=function(t){if(t.propertyName===n.activeTransitionProp){n.active?n.calciteComboboxOpen.emit():n.calciteComboboxClose.emit()}};this.setMaxScrollerHeight=function(){if(n.active){n.maxScrollerHeight=n.getMaxScrollerHeight(n.getCombinedItems())}};this.calciteChipDismissHandler=function(t,e){n.active=false;var i=n.items.find((function(t){return t===e}));if(i){n.toggleSelection(i,false)}n.calciteComboboxChipDismiss.emit(t.detail)};this.setFocusClick=function(t){if(t.composedPath().some((function(t){return t.tagName==="CALCITE-CHIP"}))){return}n.setFocus()};this.setInactiveIfNotContained=function(t){var e=t.composedPath();if(!n.active||e.includes(n.el)||e.includes(n.referenceEl)){return}if(n.allowCustomValues&&n.text){n.addCustomChip(n.text)}if(n.selectionMode==="single"){if(n.textInput){n.textInput.value=""}n.text="";n.filterItems("");n.updateActiveItemIndex(-1)}n.active=false};this.setMenuEl=function(t){n.menuEl=t};this.setListContainerEl=function(t){n.listContainerEl=t};this.setReferenceEl=function(t){n.referenceEl=t};this.inputHandler=function(t){var e=t.target.value;n.text=e;n.filterItems(e);if(e){n.activeChipIndex=-1}};this.filterItems=function(){var t=function(t,e){return t&&e.some((function(e){var i=e.label,n=e.value;if(W(t)){return n===t.label||n===t.label}return n===t.textLabel||n===t.value||i===t.textLabel||i===t.value}))};return c((function(e){var i=T(n.data,e);var a=n.getCombinedItems();a.forEach((function(e){var n=!t(e,i);e.hidden=n;var a=e.ancestors,o=a[0],r=a[1];if(t(o,i)||t(r,i)){e.hidden=false}if(!n){e.ancestors.forEach((function(t){return t.hidden=false}))}}));n.visibleItems=n.getVisibleItems();n.calciteComboboxFilterChange.emit({visibleItems:__spreadArray([],n.visibleItems),text:e})}),100)}();this.internalCalciteLookupChangeEvent=function(){n.calciteLookupChange.emit(n.selectedItems)};this.emitCalciteLookupChange=c(this.internalCalciteLookupChangeEvent,0);this.internalComboboxChangeEvent=function(){var t=n.selectedItems;n.calciteComboboxChange.emit({selectedItems:t})};this.emitComboboxChange=c(this.internalComboboxChangeEvent,0);this.updateItems=function(){n.items=n.getItems();n.groupItems=n.getGroupItems();n.data=n.getData();n.selectedItems=n.getSelectedItems();n.visibleItems=n.getVisibleItems();n.needsIcon=n.getNeedsIcon();if(!n.allowCustomValues){n.setMaxScrollerHeight()}};this.comboboxFocusHandler=function(){var t;n.active=true;(t=n.textInput)===null||t===void 0?void 0:t.focus()};this.comboboxBlurHandler=function(t){n.setInactiveIfNotContained(t)}}t.prototype.activeHandler=function(t,e){var i=this;if(e&&!t){this.el.addEventListener("calciteComboboxClose",this.toggleCloseEnd);this.open=false}else if(!e&&t){this.el.addEventListener("calciteComboboxOpen",this.toggleOpenEnd);requestAnimationFrame((function(){i.reposition();i.setMaxScrollerHeight();i.open=true}))}this.reposition();this.setMaxScrollerHeight()};t.prototype.maxItemsHandler=function(){this.setMaxScrollerHeight()};t.prototype.valueHandler=function(t){if(!this.internalValueChangeFlag){var e=this.getItems();if(Array.isArray(t)){e.forEach((function(e){return e.selected=t.includes(e.value)}))}else if(t){e.forEach((function(e){return e.selected=t===e.value}))}else{e.forEach((function(t){return t.selected=false}))}this.updateItems()}};t.prototype.documentClickHandler=function(t){this.setInactiveIfNotContained(t)};t.prototype.calciteComboboxItemChangeHandler=function(t){if(this.ignoreSelectedEventsFlag){return}var e=t.target;this.toggleSelection(e,e.selected)};t.prototype.reposition=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,n,a;return __generator(this,(function(o){switch(o.label){case 0:t=this,e=t.popper,i=t.menuEl;n=this.getModifiers();if(!e)return[3,2];return[4,b({el:i,modifiers:n,placement:B,popper:e})];case 1:a=o.sent();return[3,3];case 2:a=this.createPopper();o.label=3;case 3:a;return[2]}}))}))};t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){this.active=true;(t=this.textInput)===null||t===void 0?void 0:t.focus();this.activeChipIndex=-1;this.activeItemIndex=-1;return[2]}))}))};t.prototype.connectedCallback=function(){var t;this.internalValueChangeFlag=true;this.value=this.getValue();this.internalValueChangeFlag=false;(t=this.mutationObserver)===null||t===void 0?void 0:t.observe(this.el,{childList:true,subtree:true});this.createPopper();y(this);I(this)};t.prototype.componentWillLoad=function(){this.updateItems()};t.prototype.componentDidLoad=function(){C(this,this.getValue())};t.prototype.componentDidRender=function(){if(this.el.offsetHeight!==this.inputHeight){this.reposition();this.inputHeight=this.el.offsetHeight}};t.prototype.disconnectedCallback=function(){var t;(t=this.mutationObserver)===null||t===void 0?void 0:t.disconnect();this.destroyPopper();w(this);D(this)};t.prototype.selectedItemsHandler=function(){this.internalValueChangeFlag=true;this.value=this.getValue();this.internalValueChangeFlag=false};t.prototype.textHandler=function(){this.updateActiveItemIndex(-1)};t.prototype.getModifiers=function(){var t={name:"flip",enabled:true};t.options={fallbackPlacements:["top-start","top","top-end","bottom-start","bottom","bottom-end"]};return[t]};t.prototype.createPopper=function(){this.destroyPopper();var t=this,e=t.menuEl,i=t.referenceEl,n=t.overlayPositioning;var a=this.getModifiers();this.popper=v({el:e,modifiers:a,overlayPositioning:n,placement:B,referenceEl:i})};t.prototype.destroyPopper=function(){var t=this.popper;if(t){t.destroy()}this.popper=null};t.prototype.getMaxScrollerHeight=function(t){var e=this;var i=this.maxItems;var n=0;var a=0;t.forEach((function(t){if(n<i&&i>0){var o=e.calculateSingleItemHeight(t);if(o>0){a+=o;n++}}}));return a};t.prototype.calculateSingleItemHeight=function(t){var e=t.offsetHeight;var i=Array.from(t.querySelectorAll(N));i.map((function(t){return t===null||t===void 0?void 0:t.offsetHeight})).forEach((function(t){e-=t}));return e};t.prototype.getCombinedItems=function(){return __spreadArray(__spreadArray([],this.groupItems),this.items)};t.prototype.toggleSelection=function(t,e){if(e===void 0){e=!t.selected}if(!t){return}if(this.isMulti()){t.selected=e;this.updateAncestors(t);this.selectedItems=this.getSelectedItems();this.emitCalciteLookupChange();this.emitComboboxChange();this.resetText();this.filterItems("")}else{this.ignoreSelectedEventsFlag=true;this.items.forEach((function(i){return i.selected=i===t?e:false}));this.ignoreSelectedEventsFlag=false;this.selectedItems=this.getSelectedItems();this.emitComboboxChange();if(this.textInput){this.textInput.value=t.textLabel}this.active=false;this.updateActiveItemIndex(-1);this.resetText();this.filterItems("")}};t.prototype.updateAncestors=function(t){if(this.selectionMode!=="ancestors"){return}var e=q(t);var i=X(t);if(t.selected){e.forEach((function(t){t.selected=true}))}else{i.forEach((function(t){return t.selected=false}));__spreadArray([],e).forEach((function(t){if(!Y(t)){t.selected=false}}))}};t.prototype.getVisibleItems=function(){return this.items.filter((function(t){return!t.hidden}))};t.prototype.getSelectedItems=function(){var t=this;return!this.isMulti()?[this.items.find((function(t){return t.selected}))]:this.items.filter((function(e){return e.selected&&(t.selectionMode!=="ancestors"||!Y(e))})).sort((function(e,i){var n=t.selectedItems.indexOf(e);var a=t.selectedItems.indexOf(i);if(n>-1&&a>-1){return n-a}return a-n}))};t.prototype.getData=function(){return this.items.map((function(t){return{constant:t.constant,value:t.value,label:t.textLabel,guid:t.guid}}))};t.prototype.getNeedsIcon=function(){return this.selectionMode==="single"&&this.items.some((function(t){return t.icon}))};t.prototype.resetText=function(){if(this.textInput){this.textInput.value=""}this.text=""};t.prototype.getItems=function(){var t=Array.from(this.el.querySelectorAll(j));return t.filter((function(t){return!t.disabled}))};t.prototype.getGroupItems=function(){return Array.from(this.el.querySelectorAll(V))};t.prototype.addCustomChip=function(t,e){var i=this.items.find((function(e){return e.textLabel===t}));if(i){this.toggleSelection(i,true)}else{var n=document.createElement(j);n.value=t;n.textLabel=t;n.guid=g();n.selected=true;this.el.appendChild(n);this.resetText();if(e){this.setFocus()}this.updateItems();this.filterItems("");this.emitCalciteLookupChange();this.emitComboboxChange()}};t.prototype.removeActiveChip=function(){this.toggleSelection(this.selectedItems[this.activeChipIndex],false);this.setFocus()};t.prototype.removeLastChip=function(){this.toggleSelection(this.selectedItems[this.selectedItems.length-1],false);this.setFocus()};t.prototype.previousChip=function(){if(this.text){return}var t=this.selectedItems.length-1;var e=this.activeChipIndex;this.activeChipIndex=e===-1?t:Math.max(e-1,0);this.updateActiveItemIndex(-1);this.focusChip()};t.prototype.nextChip=function(){if(this.text||this.activeChipIndex===-1){return}var t=this.selectedItems.length-1;var e=this.activeChipIndex+1;if(e>t){this.activeChipIndex=-1;this.setFocus()}else{this.activeChipIndex=e;this.focusChip()}this.updateActiveItemIndex(-1)};t.prototype.focusChip=function(){var t;var e=(t=this.selectedItems[this.activeChipIndex])===null||t===void 0?void 0:t.guid;var i=this.referenceEl.querySelector("#chip-"+e);i===null||i===void 0?void 0:i.setFocus()};t.prototype.shiftActiveItemIndex=function(t){var e=this.visibleItems.length;var i=(this.activeItemIndex+e+t)%e;this.updateActiveItemIndex(i);var n=this.visibleItems[this.activeItemIndex];var a=this.calculateSingleItemHeight(n);var o=this.listContainerEl,r=o.offsetHeight,s=o.scrollTop;if(r+s<n.offsetTop+a){this.listContainerEl.scrollTop=n.offsetTop-r+a}else if(n.offsetTop<s){this.listContainerEl.scrollTop=n.offsetTop}};t.prototype.updateActiveItemIndex=function(t){var e;this.activeItemIndex=t;var i=null;this.visibleItems.forEach((function(e,n){if(n===t){e.active=true;i=e.guid}else{e.active=false}}));this.activeDescendant=i;if(this.activeItemIndex>-1){this.activeChipIndex=-1;(e=this.textInput)===null||e===void 0?void 0:e.focus()}};t.prototype.isMulti=function(){return this.selectionMode!=="single"};t.prototype.renderChips=function(){var t=this;var e=this,i=e.activeChipIndex,a=e.scale,o=e.selectionMode,r=e.el;var s=u(r);return this.selectedItems.map((function(e,r){var c={chip:true,"chip--active":i===r,"chip--rtl":s==="rtl"};var l=__spreadArray([],q(e)).reverse();var p=__spreadArray(__spreadArray([],l),[e]).map((function(t){return t.textLabel}));var m=o!=="ancestors"?e.textLabel:p.join(" / ");return n("calcite-chip",{"aria-label":m,class:c,dismissLabel:"remove tag",dismissible:true,icon:e.icon,id:"chip-"+e.guid,key:e.textLabel,onCalciteChipDismiss:function(i){return t.calciteChipDismissHandler(i,e)},scale:a,title:m,value:e.value},m)}))};t.prototype.renderInput=function(){var t=this;var e=this,i=e.active,a=e.disabled,o=e.placeholder,r=e.selectionMode,s=e.needsIcon,c=e.selectedItems;var l=r==="single";var p=c[0];var m=!i&&l&&!!p;return n("span",{class:{"input-wrap":true,"input-wrap--single":l}},m&&n("span",{class:{label:true,"label--spaced":s},key:"label",onFocus:this.comboboxFocusHandler,tabindex:"0"},p.textLabel),n("input",{"aria-activedescendant":this.activeDescendant,"aria-autocomplete":"list","aria-controls":g,"aria-label":k(this),class:{input:true,"input--single":true,"input--transparent":this.activeChipIndex>-1,"input--hidden":m,"input--icon":l&&s},disabled:a,id:g+"-input",key:"input",onBlur:this.comboboxBlurHandler,onFocus:this.comboboxFocusHandler,onInput:this.inputHandler,placeholder:o,ref:function(e){return t.textInput=e},type:"text"}))};t.prototype.renderListBoxOptions=function(){return this.visibleItems.map((function(t){return n("li",{"aria-selected":(!!t.selected).toString(),id:t.guid,role:"option",tabindex:"-1"},t.textLabel)}))};t.prototype.renderPopperContainer=function(){var t;var e=this,i=e.active,a=e.maxScrollerHeight,o=e.setMenuEl,r=e.setListContainerEl,s=e.hideList,c=e.open;var l=(t={"list-container":true},t[x.animation]=true,t[x.animationActive]=i,t);var p={maxHeight:a>0?a+"px":""};return n("div",{"aria-hidden":"true",class:{"popper-container":true,"popper-container--active":c},ref:o},n("div",{class:l,onTransitionEnd:this.transitionEnd,ref:r,style:p},n("ul",{class:{list:true,"list--hide":s}},n("slot",null))))};t.prototype.renderIconStart=function(){var t=this,e=t.selectionMode,i=t.needsIcon,a=t.selectedItems;var o=a[0];return e==="single"&&i&&n("span",{class:"icon-start"},(o===null||o===void 0?void 0:o.icon)&&n("calcite-icon",{class:"selected-icon",icon:o.icon,scale:"s"}))};t.prototype.renderIconEnd=function(){return n("span",{class:"icon-end"},n("calcite-icon",{icon:"chevron-down",scale:"s"}))};t.prototype.render=function(){var t=this,e=t.guid,i=t.open,o=t.label;var r=this.selectionMode==="single";var s=e+"-label";return n(a,{onKeyDown:this.keydownHandler},n("div",{"aria-autocomplete":"list","aria-expanded":i.toString(),"aria-haspopup":"listbox","aria-labelledby":s,"aria-owns":e,class:{wrapper:true,"wrapper--single":r||!this.selectedItems.length,"wrapper--active":i},onClick:this.setFocusClick,ref:this.setReferenceEl,role:"combobox"},n("div",{class:"grid-input"},this.renderIconStart(),!r&&this.renderChips(),n("label",{class:"screen-readers-only",htmlFor:e+"-input",id:s},o),this.renderInput()),this.renderIconEnd()),n("ul",{"aria-labelledby":s,"aria-multiselectable":"true",class:"screen-readers-only",id:e,role:"listbox",tabIndex:-1},this.renderListBoxOptions()),this.renderPopperContainer(),n(E,{component:this}))};Object.defineProperty(t.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{active:["activeHandler"],maxItems:["maxItemsHandler"],value:["valueHandler"],selectedItems:["selectedItemsHandler"],text:["textHandler"]}},enumerable:false,configurable:true});return t}());$.style=U;var K={icon:"icon",iconActive:"icon--active",custom:"icon--custom",dot:"icon--dot",single:"label--single",label:"label",active:"label--active",selected:"label--selected",title:"title",textContainer:"text-container"};var J='@charset "UTF-8";@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}.scale--s{font-size:var(--calcite-font-size--2);line-height:1rem;--calcite-combobox-item-spacing-unit-l:0.5rem;--calcite-combobox-item-spacing-unit-s:0.25rem;--calcite-combobox-item-spacing-indent:0.5rem}.scale--m{font-size:var(--calcite-font-size--1);line-height:1rem;--calcite-combobox-item-spacing-unit-l:0.75rem;--calcite-combobox-item-spacing-unit-s:0.5rem;--calcite-combobox-item-spacing-indent:0.75rem}.scale--l{font-size:var(--calcite-font-size-0);line-height:1.25rem;--calcite-combobox-item-spacing-unit-l:1rem;--calcite-combobox-item-spacing-unit-s:0.75rem;--calcite-combobox-item-spacing-indent:1rem}.container{--calcite-combobox-item-indent-value:calc(\n var(--calcite-combobox-item-spacing-indent) * var(--calcite-combobox-item-spacing-indent-multiplier)\n );--calcite-combobox-item-indent-start:var(--calcite-combobox-item-indent-value);--calcite-combobox-item-indent-end:unset}.calcite--rtl{--calcite-combobox-item-indent-start:unset;--calcite-combobox-item-indent-end:var(--calcite-combobox-item-indent-value)}:host(:focus){-webkit-box-shadow:none;box-shadow:none}:host,ul{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin:0;padding:0;outline:2px solid transparent;outline-offset:2px}.label{display:-ms-flexbox;display:flex;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;min-width:100%;-ms-flex-align:center;align-items:center;color:var(--calcite-ui-text-3);cursor:pointer;position:relative;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;text-decoration:none;padding:var(--calcite-combobox-item-spacing-unit-s) var(--calcite-combobox-item-spacing-unit-l)}:host([disabled]) .label{cursor:default}.label--selected{color:var(--calcite-ui-text-1);font-weight:var(--calcite-font-weight-medium)}.label--active{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.label:hover,.label:active{color:var(--calcite-ui-text-1);background-color:var(--calcite-ui-foreground-2);-webkit-box-shadow:none;box-shadow:none;text-decoration:none}.title{padding:0 var(--calcite-combobox-item-spacing-unit-l)}.icon{display:-ms-inline-flexbox;display:inline-flex;opacity:0;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);color:var(--calcite-ui-border-1)}.icon--indent{padding-left:var(--calcite-combobox-item-indent-start);padding-right:var(--calcite-combobox-item-indent-end)}.icon--custom{margin-top:-1px;color:var(--calcite-ui-text-3)}.icon--active{color:var(--calcite-ui-text-1)}.icon--dot{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end;width:var(--calcite-combobox-item-spacing-unit-l)}.icon--dot:before{content:"•"}.calcite--rtl .icon--dot:before{text-align:right}.label--active .icon{opacity:1}.label--selected .icon{opacity:1;color:var(--calcite-ui-brand)}:host(:hover[disabled]) .icon{opacity:1}';var Q=t("calcite_combobox_item",function(){function t(t){var n=this;e(this,t);this.calciteComboboxItemChange=i(this,"calciteComboboxItemChange",7);this.disabled=false;this.selected=false;this.active=false;this.guid=g();this.scale="m";this.itemClickHandler=function(t){t.preventDefault();if(n.disabled){return}n.selected=!n.selected}}t.prototype.selectedWatchHandler=function(){this.calciteComboboxItemChange.emit(this.el)};t.prototype.connectedCallback=function(){this.ancestors=R(this.el);this.scale=d(this.el,"scale",this.scale)};t.prototype.componentWillLoad=function(){this.hasDefaultSlot=this.el.querySelector(":not([slot])")!==null};t.prototype.toggleSelected=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.disabled){return[2]}this.selected=typeof t==="boolean"?t:!this.selected;return[2]}))}))};t.prototype.renderIcon=function(t){var e,i;var a=this,o=a.icon,r=a.disabled,s=a.selected;var c=K.icon+"--indent";var l=t?"dot":"check";var p=r?"circle-disallowed":l;var m=t&&!o&&!r;return m?n("span",{class:(e={},e[K.icon]=true,e[K.dot]=true,e[c]=true,e)}):n("calcite-icon",{class:(i={},i[K.icon]=!o,i[K.custom]=!!o,i[K.iconActive]=o&&s,i[c]=true,i),icon:o||p,scale:"s"})};t.prototype.renderChildren=function(){if(!this.hasDefaultSlot){return null}return n("ul",null,n("slot",null))};t.prototype.render=function(){var t;var e=d(this.el,"selection-mode","multi")==="single";var i=u(this.el);var o=(t={},t[f.rtl]=i==="rtl",t[K.label]=true,t[K.selected]=this.selected,t[K.active]=this.active,t[K.single]=e,t);var r=G(this.el);return n(a,{"aria-hidden":"true"},n("div",{class:"container scale--"+this.scale,style:{"--calcite-combobox-item-spacing-indent-multiplier":""+r}},n("li",{class:o,id:this.guid,onClick:this.itemClickHandler},this.renderIcon(e),n("span",{class:K.title},this.textLabel)),this.renderChildren()))};Object.defineProperty(t.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{selected:["selectedWatchHandler"]}},enumerable:false,configurable:true});return t}());Q.style=J;var Z={list:"list",label:"label",title:"title"};var tt="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{--calcite-combobox-item-indent-start-1:var(--calcite-combobox-item-spacing-indent-1);--calcite-combobox-item-indent-end-1:unset;--calcite-combobox-item-indent-start-2:var(--calcite-combobox-item-spacing-indent-2);--calcite-combobox-item-indent-end-2:unset}.scale--s{font-size:var(--calcite-font-size--2);line-height:1rem;--calcite-combobox-item-spacing-unit-l:0.5rem;--calcite-combobox-item-spacing-unit-s:0.25rem;--calcite-combobox-item-spacing-indent-1:0.5rem;--calcite-combobox-item-spacing-indent-2:1rem}.scale--m{font-size:var(--calcite-font-size--1);line-height:1rem;--calcite-combobox-item-spacing-unit-l:0.75rem;--calcite-combobox-item-spacing-unit-s:0.5rem;--calcite-combobox-item-spacing-indent-1:0.75rem;--calcite-combobox-item-spacing-indent-2:1.5rem}.scale--l{font-size:var(--calcite-font-size-0);line-height:1.25rem;--calcite-combobox-item-spacing-unit-l:1rem;--calcite-combobox-item-spacing-unit-s:0.75rem;--calcite-combobox-item-spacing-indent-1:1rem;--calcite-combobox-item-spacing-indent-2:2rem}.calcite--rtl{--calcite-combobox-item-indent-start-1:unset;--calcite-combobox-item-indent-end-1:var(--calcite-combobox-item-spacing-indent-1);--calcite-combobox-item-indent-start-2:unset;--calcite-combobox-item-indent-end-2:var(--calcite-combobox-item-spacing-indent-2)}:host,.list{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin:0;padding:0;outline:2px solid transparent;outline-offset:2px}.label{-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;max-width:100%;min-width:0;color:var(--calcite-ui-text-3);display:-ms-flexbox;display:flex}.label--indent-1{padding-left:var(--calcite-combobox-item-indent-start-1);padding-right:var(--calcite-combobox-item-indent-end-1)}.label--indent-2{padding-left:var(--calcite-combobox-item-indent-start-2);padding-right:var(--calcite-combobox-item-indent-end-2)}.title{border:0 solid;display:block;-ms-flex:1 1 0%;flex:1 1 0%;border-bottom-color:var(--calcite-ui-border-3);border-bottom-width:1px;color:var(--calcite-ui-text-2);font-weight:var(--calcite-font-weight-bold);word-wrap:break-word;word-break:break-word;padding:var(--calcite-combobox-item-spacing-unit-l) 0;margin-left:var(--calcite-combobox-item-spacing-unit-s);margin-right:var(--calcite-combobox-item-spacing-unit-s)}";var et=t("calcite_combobox_item_group",function(){function t(t){e(this,t);this.guid=g();this.scale="m"}t.prototype.connectedCallback=function(){this.ancestors=R(this.el);this.scale=d(this.el,"scale",this.scale)};t.prototype.render=function(){var t,e;var i=this,a=i.el,o=i.scale;var r=u(a);var s=Z.label+"--indent-"+G(a);return n("ul",{"aria-labelledby":this.guid,class:(t={},t[Z.list]=true,t[f.rtl]=r==="rtl",t["scale--"+o]=true,t),role:"group"},n("li",{class:(e={},e[Z.label]=true,e[s]=true,e),id:this.guid,role:"presentation"},n("span",{class:Z.title},this.label)),n("slot",null))};Object.defineProperty(t.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});return t}());et.style=tt}}}));
@@ -1,5 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- */
5
- System.register([],(function(r){"use strict";return{execute:function(){r({g:t,i:e});function t(r,t){var e={Up:"ArrowUp",Down:"ArrowDown",Left:"ArrowLeft",Right:"ArrowRight",Spacebar:" ",Esc:"Escape"};var n=e[r]||r;var o=t==="rtl";if(o&&n==="ArrowLeft"){return"ArrowRight"}if(o&&n==="ArrowRight"){return"ArrowLeft"}return n}function e(r){r=t(r);return r==="Enter"||r===" "}var n=r("n",["0","1","2","3","4","5","6","7","8","9"])}}}));
@@ -1,5 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- */
5
- import{r as t,h as e,g as a}from"./p-2e29554c.js";import{c as o,a as n,C as r}from"./p-52cc870b.js";import{c,d as i,g as s}from"./p-3dae9da3.js";import{c as l}from"./p-e4acb5a8.js";import"./p-8a63221d.js";!function(t){function e(t,e,a){throw new t("Failed to execute 'requestSubmit' on 'HTMLFormElement': "+e+".",a)}"function"!=typeof t.requestSubmit&&(t.requestSubmit=function(t){t?(function(t,a){t instanceof HTMLElement||e(TypeError,"parameter 1 is not of type 'HTMLElement'"),"submit"==t.type||e(TypeError,"The specified element is not a submit button"),t.form==a||e(DOMException,"The specified element is not owned by this form element","NotFoundError")}(t,this),t.click()):((t=document.createElement("input")).type="submit",t.hidden=!0,this.appendChild(t),t.click(),this.removeChild(t))})}(HTMLFormElement.prototype);let p=class{constructor(e){t(this,e),this.alignment="center",this.appearance="solid",this.color="blue",this.disabled=!1,this.intlLoading="Loading",this.loading=!1,this.round=!1,this.scale="m",this.splitChild=!1,this.width="auto",this.mutationObserver=l("mutation",(()=>this.updateHasContent())),this.childElType="button",this.hasContent=!1,this.hasLoader=!1,this.handleClick=()=>{const{childElType:t,formEl:e,type:a}=this;"button"===t&&"button"!==a&&("submit"===a?null==e||e.requestSubmit():"reset"===a&&(null==e||e.reset()))}}hrefHandler(t){this.childElType=t?"a":"button"}loadingChanged(t,e){t&&!e&&(this.hasLoader=!0),!t&&e&&window.setTimeout((()=>{this.hasLoader=!1}),300)}connectedCallback(){this.childElType=this.href?"a":"button",this.hasLoader=this.loading,this.setupTextContentObserver(),c(this),this.formEl=o(this.el,this.form?`#${this.form}`:"form")}disconnectedCallback(){var t;null===(t=this.mutationObserver)||void 0===t||t.disconnect(),i(this),this.formEl=null}componentWillLoad(){this.updateHasContent(),"button"!==this.childElType||this.type||(this.type="submit")}render(){const t=n(this.el),a=this.childElType,o=e("div",{class:"calcite-button--loader"},this.hasLoader?e("calcite-loader",{active:!0,class:this.loading?"loading-in":"loading-out",inline:!0,label:this.intlLoading,scale:"m"}):null),c=e("calcite-icon",{class:{icon:!0,"icon--start":!0},flipRtl:"start"===this.iconFlipRtl||"both"===this.iconFlipRtl,icon:this.iconStart,scale:"s"}),i=e("calcite-icon",{class:{icon:!0,"icon--end":!0},flipRtl:"end"===this.iconFlipRtl||"both"===this.iconFlipRtl,icon:this.iconEnd,scale:"s"}),l=e("span",{class:"content"},e("slot",null));return e(a,{"aria-label":s(this),class:{[r.rtl]:"rtl"===t,"content--slotted":this.hasContent},disabled:this.disabled||this.loading,href:"a"===this.childElType&&this.href,name:"button"===this.childElType&&this.name,onClick:this.handleClick,ref:t=>this.childEl=t,rel:"a"===this.childElType&&this.rel,tabIndex:this.disabled||this.loading?-1:null,target:"a"===this.childElType&&this.target,type:"button"===this.childElType&&this.type},o,this.iconStart?c:null,this.hasContent?l:null,this.iconEnd?i:null)}async setFocus(){this.childEl.focus()}updateHasContent(){var t,e;const a=this.el.textContent.trim().length>0||this.el.childNodes.length>0;this.hasContent=1===this.el.childNodes.length&&"#text"===(null===(t=this.el.childNodes[0])||void 0===t?void 0:t.nodeName)?(null===(e=this.el.textContent)||void 0===e?void 0:e.trim().length)>0:a}setupTextContentObserver(){var t;null===(t=this.mutationObserver)||void 0===t||t.observe(this.el,{childList:!0,subtree:!0})}onLabelClick(){this.handleClick(),this.setFocus()}get el(){return a(this)}static get watchers(){return{href:["hrefHandler"],loading:["loadingChanged"]}}};p.style="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:inline-block;width:auto;vertical-align:middle}:host([round]){border-radius:50px}:host([round]) a,:host([round]) button{border-radius:50px}:host button,:host a{outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}:host button:focus,:host a:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}:host button,:host a{--calcite-button-content-margin:0.5rem;--calcite-button-padding-x:7px;--calcite-button-padding-y:3px;padding:var(--calcite-button-padding-y) var(--calcite-button-padding-x) var(--calcite-button-padding-y) var(--calcite-button-padding-x);position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;text-decoration:none;width:100%;height:100%;border-radius:0;border-style:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:inherit;font-weight:var(--calcite-font-weight-normal);-webkit-transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out, -webkit-box-shadow 0.15s ease-in-out;transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out, -webkit-box-shadow 0.15s ease-in-out;transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out, -webkit-box-shadow 0.15s ease-in-out}:host button:hover,:host a:hover{text-decoration:none}.content{display:-ms-flexbox;display:flex;-ms-flex-preferred-size:auto;flex-basis:auto;margin-left:var(--calcite-button-content-margin);margin-right:var(--calcite-button-content-margin)}:host([scale=m]) button,:host([scale=m]) a{--calcite-button-content-margin:0.75rem}:host([scale=l]) button,:host([scale=l]) a{--calcite-button-content-margin:1rem}:host(:not([icon-start])) .content{margin-left:unset}:host(:not([icon-end])) .content{margin-right:unset}:host([icon-start]:not([icon-end])) .calcite--rtl .content{margin-left:unset;margin-right:var(--calcite-button-content-margin)}:host([icon-end]:not([icon-start])) .calcite--rtl .content{margin-right:unset;margin-left:var(--calcite-button-content-margin)}:host([width=auto]){width:auto}:host([width=half]){width:50%}:host([width=full]){width:100%}:host([alignment=center]:not([width=auto])) a,:host([alignment=center]:not([width=auto])) button{-ms-flex-pack:center;justify-content:center}:host([alignment=start]:not([width=auto])) a,:host([alignment=start]:not([width=auto])) button{-ms-flex-pack:start;justify-content:flex-start}:host([alignment=end]:not([width=auto])) a,:host([alignment=end]:not([width=auto])) button{-ms-flex-pack:end;justify-content:flex-end}:host([alignment*=space-between]:not([width=auto])) a,:host([alignment*=space-between]:not([width=auto])) button{-ms-flex-pack:justify;justify-content:space-between}:host([alignment=icon-start-space-between]:not([width=auto])) .icon--start{margin-right:auto}:host([alignment=icon-start-space-between]:not([width=auto])) a,:host([alignment=icon-start-space-between]:not([width=auto])) button{text-align:unset}:host([alignment=icon-end-space-between]:not([width=auto])) .icon--end{margin-left:auto}:host([alignment=icon-end-space-between]:not([width=auto])) a,:host([alignment=icon-end-space-between]:not([width=auto])) button{text-align:unset}:host([alignment=icon-start-space-between]:not([width=auto])) .calcite--rtl .icon--start{margin-right:unset;margin-left:auto}:host([alignment=icon-end-space-between]:not([width=auto])) .calcite--rtl .icon--end{margin-left:unset;margin-right:auto}:host([alignment=center]) a:not(.content--slotted) .icon--start+.icon--end,:host([alignment=center]) button:not(.content--slotted) .icon--start+.icon--end{margin-left:var(--calcite-button-content-margin)}:host([alignment=center]) a.calcite--rtl:not(.content--slotted) .icon--start+.icon--end,:host([alignment=center]) button.calcite--rtl:not(.content--slotted) .icon--start+.icon--end{margin-left:unset;margin-right:var(--calcite-button-content-margin)}.icon{display:-ms-inline-flexbox;display:inline-flex;position:relative;margin:0;font-weight:var(--calcite-font-weight-normal);line-height:inherit}:host([loading]),:host([disabled]){pointer-events:none}:host([loading]) button,:host([loading]) a,:host([disabled]) button,:host([disabled]) a{pointer-events:none;opacity:var(--calcite-ui-opacity-disabled)}@-webkit-keyframes loader-in{0%{width:0;opacity:0;-webkit-transform:scale(0.5);transform:scale(0.5)}100%{width:1em;opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes loader-in{0%{width:0;opacity:0;-webkit-transform:scale(0.5);transform:scale(0.5)}100%{width:1em;opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes loader-out{0%{width:1em;opacity:1;-webkit-transform:scale(1);transform:scale(1)}100%{width:0;opacity:0;-webkit-transform:scale(0.5);transform:scale(0.5)}}@keyframes loader-out{0%{width:1em;opacity:1;-webkit-transform:scale(1);transform:scale(1)}100%{width:0;opacity:0;-webkit-transform:scale(0.5);transform:scale(0.5)}}.calcite-button--loader{display:-ms-flexbox;display:flex}.calcite-button--loader calcite-loader{margin:0;-webkit-transition:width 300ms ease-in-out, opacity 300ms ease-in-out, -webkit-transform 300ms ease-in-out;transition:width 300ms ease-in-out, opacity 300ms ease-in-out, -webkit-transform 300ms ease-in-out;transition:width 300ms ease-in-out, opacity 300ms ease-in-out, transform 300ms ease-in-out;transition:width 300ms ease-in-out, opacity 300ms ease-in-out, transform 300ms ease-in-out, -webkit-transform 300ms ease-in-out}.calcite-button--loader calcite-loader.loading-in{-webkit-animation-name:loader-in;animation-name:loader-in;-webkit-animation-duration:310ms;animation-duration:310ms}.calcite-button--loader calcite-loader.loading-out{-webkit-animation-name:loader-out;animation-name:loader-out;-webkit-animation-duration:310ms;animation-duration:310ms}:host([loading]) button.content--slotted .calcite-button--loader calcite-loader,:host([loading]) a.content--slotted .calcite-button--loader calcite-loader{-webkit-margin-end:var(--calcite-button-content-margin);margin-inline-end:var(--calcite-button-content-margin)}:host([loading]) button:not(.content--slotted) .icon--start,:host([loading]) button:not(.content--slotted) .icon--end,:host([loading]) a:not(.content--slotted) .icon--start,:host([loading]) a:not(.content--slotted) .icon--end{display:none}:host([appearance=solid]) button,:host([appearance=solid]) a{border-width:1px;border-style:solid;border-color:transparent}:host([appearance=solid][color=blue]) button,:host([appearance=solid][color=blue]) a{color:var(--calcite-ui-text-inverse);background-color:var(--calcite-ui-brand)}:host([appearance=solid][color=blue]) button:hover,:host([appearance=solid][color=blue]) button:focus,:host([appearance=solid][color=blue]) a:hover,:host([appearance=solid][color=blue]) a:focus{background-color:var(--calcite-ui-brand-hover)}:host([appearance=solid][color=blue]) button:active,:host([appearance=solid][color=blue]) a:active{background-color:var(--calcite-ui-brand-press)}:host([appearance=solid][color=blue]) button calcite-loader,:host([appearance=solid][color=blue]) a calcite-loader{color:var(--calcite-ui-text-inverse)}:host([appearance=solid][color=red]) button,:host([appearance=solid][color=red]) a{color:var(--calcite-ui-text-inverse);background-color:var(--calcite-ui-danger)}:host([appearance=solid][color=red]) button:hover,:host([appearance=solid][color=red]) button:focus,:host([appearance=solid][color=red]) a:hover,:host([appearance=solid][color=red]) a:focus{background-color:var(--calcite-ui-danger-hover)}:host([appearance=solid][color=red]) button:active,:host([appearance=solid][color=red]) a:active{background-color:var(--calcite-ui-danger-press)}:host([appearance=solid][color=red]) button calcite-loader,:host([appearance=solid][color=red]) a calcite-loader{color:var(--calcite-ui-text-inverse)}:host([appearance=solid][color=neutral]) button,:host([appearance=solid][color=neutral]) a{color:var(--calcite-ui-text-1);background-color:var(--calcite-ui-foreground-3)}:host([appearance=solid][color=neutral]) button:hover,:host([appearance=solid][color=neutral]) button:focus,:host([appearance=solid][color=neutral]) a:hover,:host([appearance=solid][color=neutral]) a:focus{background-color:var(--calcite-ui-foreground-2)}:host([appearance=solid][color=neutral]) button:active,:host([appearance=solid][color=neutral]) a:active{background-color:var(--calcite-ui-foreground-1)}:host([appearance=solid][color=neutral]) button calcite-loader,:host([appearance=solid][color=neutral]) a calcite-loader{color:var(--calcite-ui-text-1)}:host([appearance=solid][color=inverse]) button,:host([appearance=solid][color=inverse]) a{color:var(--calcite-ui-text-inverse);background-color:var(--calcite-ui-inverse)}:host([appearance=solid][color=inverse]) button:hover,:host([appearance=solid][color=inverse]) button:focus,:host([appearance=solid][color=inverse]) a:hover,:host([appearance=solid][color=inverse]) a:focus{background-color:var(--calcite-ui-inverse-hover)}:host([appearance=solid][color=inverse]) button:active,:host([appearance=solid][color=inverse]) a:active{background-color:var(--calcite-ui-inverse-press)}:host([appearance=solid][color=inverse]) button calcite-loader,:host([appearance=solid][color=inverse]) a calcite-loader{color:var(--calcite-ui-text-inverse)}:host([appearance=outline]) button,:host([appearance=outline]) a{background-color:var(--calcite-ui-foreground-1);border-width:1px;border-style:solid;-webkit-box-shadow:inset 0 0 0 1px transparent;box-shadow:inset 0 0 0 1px transparent}:host([appearance=outline][color=blue]) button,:host([appearance=outline][color=blue]) a{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-brand)}:host([appearance=outline][color=blue]) button:hover,:host([appearance=outline][color=blue]) a:hover{border-color:var(--calcite-ui-brand-hover);color:var(--calcite-ui-brand-hover);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-brand-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand-hover)}:host([appearance=outline][color=blue]) button:focus,:host([appearance=outline][color=blue]) a:focus{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-brand);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-brand);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}:host([appearance=outline][color=blue]) button:active,:host([appearance=outline][color=blue]) a:active{border-color:var(--calcite-ui-brand-press);color:var(--calcite-ui-brand-press);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-brand-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand-press)}:host([appearance=outline][color=blue]) button calcite-loader,:host([appearance=outline][color=blue]) a calcite-loader{color:var(--calcite-ui-brand)}:host([appearance=outline][color=red]) button,:host([appearance=outline][color=red]) a{border-color:var(--calcite-ui-danger);color:var(--calcite-ui-danger)}:host([appearance=outline][color=red]) button:hover,:host([appearance=outline][color=red]) a:hover{border-color:var(--calcite-ui-danger-hover);color:var(--calcite-ui-danger-hover);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-danger-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-danger-hover)}:host([appearance=outline][color=red]) button:focus,:host([appearance=outline][color=red]) a:focus{border-color:var(--calcite-ui-danger);color:var(--calcite-ui-danger);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-danger);box-shadow:inset 0 0 0 2px var(--calcite-ui-danger)}:host([appearance=outline][color=red]) button:active,:host([appearance=outline][color=red]) a:active{border-color:var(--calcite-ui-danger-press);color:var(--calcite-ui-danger-press);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-danger-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-danger-press)}:host([appearance=outline][color=red]) button calcite-loader,:host([appearance=outline][color=red]) a calcite-loader{color:var(--calcite-ui-danger)}:host([appearance=outline][color=neutral]) button,:host([appearance=outline][color=neutral]) a{color:var(--calcite-ui-text-1);border-color:var(--calcite-ui-foreground-3)}:host([appearance=outline][color=neutral]) button:hover,:host([appearance=outline][color=neutral]) a:hover{-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-foreground-3);box-shadow:inset 0 0 0 1px var(--calcite-ui-foreground-3)}:host([appearance=outline][color=neutral]) button:focus,:host([appearance=outline][color=neutral]) a:focus{-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3);box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3)}:host([appearance=outline][color=neutral]) button:active,:host([appearance=outline][color=neutral]) a:active{-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3);box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3)}:host([appearance=outline][color=neutral]) button calcite-loader,:host([appearance=outline][color=neutral]) a calcite-loader{color:var(--calcite-ui-text-1)}:host([appearance=outline][color=inverse]) button,:host([appearance=outline][color=inverse]) a{color:var(--calcite-ui-text-1);border-color:var(--calcite-ui-inverse)}:host([appearance=outline][color=inverse]) button:hover,:host([appearance=outline][color=inverse]) a:hover{border-color:var(--calcite-ui-inverse-hover);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-inverse-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-inverse-hover)}:host([appearance=outline][color=inverse]) button:focus,:host([appearance=outline][color=inverse]) a:focus{border-color:var(--calcite-ui-inverse);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse);box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse)}:host([appearance=outline][color=inverse]) button:active,:host([appearance=outline][color=inverse]) a:active{border-color:var(--calcite-ui-inverse-press);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse-press)}:host([appearance=outline][color=inverse]) button calcite-loader,:host([appearance=outline][color=inverse]) a calcite-loader{color:var(--calcite-ui-text-1)}:host([appearance=clear]) button,:host([appearance=clear]) a{background-color:transparent;border-width:1px;border-style:solid;-webkit-box-shadow:inset 0 0 0 1px transparent;box-shadow:inset 0 0 0 1px transparent}:host([appearance=clear][color=blue]) button,:host([appearance=clear][color=blue]) a{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-brand)}:host([appearance=clear][color=blue]) button:hover,:host([appearance=clear][color=blue]) a:hover{border-color:var(--calcite-ui-brand-hover);color:var(--calcite-ui-brand-hover);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-brand-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand-hover)}:host([appearance=clear][color=blue]) button:focus,:host([appearance=clear][color=blue]) a:focus{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-brand);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-brand);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}:host([appearance=clear][color=blue]) button:active,:host([appearance=clear][color=blue]) a:active{border-color:var(--calcite-ui-brand-press);color:var(--calcite-ui-brand-press);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-brand-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand-press)}:host([appearance=clear][color=blue]) button calcite-loader,:host([appearance=clear][color=blue]) a calcite-loader{color:var(--calcite-ui-brand)}:host([appearance=clear][color=red]) button,:host([appearance=clear][color=red]) a{border-color:var(--calcite-ui-danger);color:var(--calcite-ui-danger)}:host([appearance=clear][color=red]) button:hover,:host([appearance=clear][color=red]) a:hover{border-color:var(--calcite-ui-danger-hover);color:var(--calcite-ui-danger-hover);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-danger-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-danger-hover)}:host([appearance=clear][color=red]) button:focus,:host([appearance=clear][color=red]) a:focus{border-color:var(--calcite-ui-danger);color:var(--calcite-ui-danger);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-danger);box-shadow:inset 0 0 0 2px var(--calcite-ui-danger)}:host([appearance=clear][color=red]) button:active,:host([appearance=clear][color=red]) a:active{border-color:var(--calcite-ui-danger-press);color:var(--calcite-ui-danger-press);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-danger-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-danger-press)}:host([appearance=clear][color=red]) button calcite-loader,:host([appearance=clear][color=red]) a calcite-loader{color:var(--calcite-ui-danger)}:host([appearance=clear][color=neutral]) button,:host([appearance=clear][color=neutral]) a{color:var(--calcite-ui-text-1);border-color:var(--calcite-ui-foreground-3)}:host([appearance=clear][color=neutral]) button:hover,:host([appearance=clear][color=neutral]) a:hover{-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-foreground-3);box-shadow:inset 0 0 0 1px var(--calcite-ui-foreground-3)}:host([appearance=clear][color=neutral]) button:focus,:host([appearance=clear][color=neutral]) a:focus{-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3);box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3)}:host([appearance=clear][color=neutral]) button:active,:host([appearance=clear][color=neutral]) a:active{-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3);box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3)}:host([appearance=clear][color=neutral]) button calcite-loader,:host([appearance=clear][color=neutral]) a calcite-loader{color:var(--calcite-ui-text-1)}:host([appearance=clear][color=inverse]) button,:host([appearance=clear][color=inverse]) a{color:var(--calcite-ui-text-1);border-color:var(--calcite-ui-inverse)}:host([appearance=clear][color=inverse]) button:hover,:host([appearance=clear][color=inverse]) a:hover{border-color:var(--calcite-ui-inverse-hover);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-inverse-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-inverse-hover)}:host([appearance=clear][color=inverse]) button:focus,:host([appearance=clear][color=inverse]) a:focus{border-color:var(--calcite-ui-inverse);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse);box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse)}:host([appearance=clear][color=inverse]) button:active,:host([appearance=clear][color=inverse]) a:active{border-color:var(--calcite-ui-inverse-press);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse-press)}:host([appearance=clear][color=inverse]) button calcite-loader,:host([appearance=clear][color=inverse]) a calcite-loader{color:var(--calcite-ui-text-1)}:host([appearance=outline][split-child=primary]) button,:host([appearance=clear][split-child=primary]) button{border-right-width:0;border-left-width:1px}:host([appearance=outline][split-child=primary]) button.calcite--rtl,:host([appearance=clear][split-child=primary]) button.calcite--rtl{border-left-width:0;border-right-width:1px}:host([appearance=outline][split-child=secondary]) button,:host([appearance=clear][split-child=secondary]) button{border-left-width:0;border-right-width:1px}:host([appearance=outline][split-child=secondary]) button.calcite--rtl,:host([appearance=clear][split-child=secondary]) button.calcite--rtl{border-right-width:0;border-left-width:1px}:host([appearance=transparent]:not(.enable-editing-button)) button,:host([appearance=transparent]:not(.enable-editing-button)) a{background-color:transparent}:host([appearance=transparent]:not(.enable-editing-button)) button:hover,:host([appearance=transparent]:not(.enable-editing-button)) button:focus,:host([appearance=transparent]:not(.enable-editing-button)) a:hover,:host([appearance=transparent]:not(.enable-editing-button)) a:focus{background-color:var(--calcite-button-transparent-hover)}:host([appearance=transparent]:not(.enable-editing-button)) button:active,:host([appearance=transparent]:not(.enable-editing-button)) a:active{background-color:var(--calcite-button-transparent-press)}:host([appearance=transparent][color=blue]) button,:host([appearance=transparent][color=blue]) a{color:var(--calcite-ui-brand)}:host([appearance=transparent][color=blue]) button:hover,:host([appearance=transparent][color=blue]) a:hover{color:var(--calcite-ui-brand-hover)}:host([appearance=transparent][color=blue]) button:focus,:host([appearance=transparent][color=blue]) a:focus{color:var(--calcite-ui-brand)}:host([appearance=transparent][color=blue]) button:active,:host([appearance=transparent][color=blue]) a:active{color:var(--calcite-ui-brand-press)}:host([appearance=transparent][color=blue]) button calcite-loader,:host([appearance=transparent][color=blue]) a calcite-loader{color:var(--calcite-ui-brand)}:host([appearance=transparent][color=red]) button,:host([appearance=transparent][color=red]) a{color:var(--calcite-ui-danger)}:host([appearance=transparent][color=red]) button:hover,:host([appearance=transparent][color=red]) a:hover{color:var(--calcite-ui-danger-hover)}:host([appearance=transparent][color=red]) button:focus,:host([appearance=transparent][color=red]) a:focus{color:var(--calcite-ui-danger)}:host([appearance=transparent][color=red]) button:active,:host([appearance=transparent][color=red]) a:active{color:var(--calcite-ui-danger-press)}:host([appearance=transparent][color=red]) button calcite-loader,:host([appearance=transparent][color=red]) a calcite-loader{color:var(--calcite-ui-danger)}:host([appearance=transparent][color=neutral]:not(.cancel-editing-button)) button,:host([appearance=transparent][color=neutral]:not(.cancel-editing-button)) a,:host([appearance=transparent][color=neutral]:not(.cancel-editing-button)) calcite-loader{color:var(--calcite-ui-text-1)}:host([appearance=transparent][color=neutral].cancel-editing-button) button{color:var(--calcite-ui-text-3);border-top-width:1px;border-top-color:var(--calcite-ui-border-input);border-bottom-width:1px;border-bottom-color:var(--calcite-ui-border-input);border-bottom-style:solid;border-top-style:solid}:host([appearance=transparent][color=neutral].cancel-editing-button) button:not(.content--slotted){--calcite-button-padding-y:0}:host([appearance=transparent][color=neutral].cancel-editing-button) button:hover{color:var(--calcite-ui-text-1)}:host([appearance=transparent][color=neutral].enable-editing-button) button{background-color:transparent}:host(.confirm-changes-button) button:focus,:host(.cancel-editing-button) button:focus,:host(.enable-editing-button) button:focus{outline-offset:-2px}:host([appearance=transparent][color=inverse]) button,:host([appearance=transparent][color=inverse]) a,:host([appearance=transparent][color=inverse]) calcite-loader{color:var(--calcite-ui-text-inverse)}:host([scale=s]) button.content--slotted,:host([scale=s]) a.content--slotted{font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s][appearance=transparent]) button.content--slotted,:host([scale=s][appearance=transparent]) a.content--slotted{--calcite-button-padding-x:0.5rem;--calcite-button-padding-y:0.25rem}:host([scale=m]) button.content--slotted,:host([scale=m]) a.content--slotted{--calcite-button-padding-x:11px;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]:not([appearance=transparent])) button.content--slotted,:host([scale=m]:not([appearance=transparent])) a.content--slotted{--calcite-button-padding-y:7px}:host([scale=m][appearance=transparent]) button.content--slotted,:host([scale=m][appearance=transparent]) a.content--slotted{--calcite-button-padding-x:0.75rem;--calcite-button-padding-y:0.5rem}:host([scale=l]) button.content--slotted,:host([scale=l]) a.content--slotted{--calcite-button-padding-x:15px;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]:not([appearance=transparent])) button.content--slotted,:host([scale=l]:not([appearance=transparent])) a.content--slotted{--calcite-button-padding-y:11px}:host([scale=l][appearance=transparent]) button.content--slotted,:host([scale=l][appearance=transparent]) a.content--slotted{--calcite-button-padding-x:1rem;--calcite-button-padding-y:0.75rem}:host([scale=s]) button:not(.content--slotted),:host([scale=s]) a:not(.content--slotted){--calcite-button-padding-x:0.125rem;--calcite-button-padding-y:3px;font-size:var(--calcite-font-size-0);line-height:1.25rem;width:1.5rem;min-height:1.5rem}:host([scale=s][appearance=transparent]) button:not(.content--slotted),:host([scale=s][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-y:0.25rem}:host([scale=m]) button:not(.content--slotted),:host([scale=m]) a:not(.content--slotted){--calcite-button-padding-x:0.125rem;--calcite-button-padding-y:7px;font-size:var(--calcite-font-size-0);line-height:1.25rem;width:2rem;min-height:2rem}:host([scale=m][appearance=transparent]) button:not(.content--slotted),:host([scale=m][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-y:0.5rem}:host([scale=l]) button:not(.content--slotted),:host([scale=l]) a:not(.content--slotted){--calcite-button-padding-x:0.125rem;--calcite-button-padding-y:9px;font-size:var(--calcite-font-size-0);line-height:1.25rem;width:2.75rem;min-height:2.75rem}:host([scale=l][appearance=transparent]) button:not(.content--slotted),:host([scale=l][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-y:0.625rem}:host([scale=s][icon-start][icon-end]) button:not(.content--slotted),:host([scale=s][icon-start][icon-end]) a:not(.content--slotted){--calcite-button-padding-x:23px;font-size:var(--calcite-font-size-0);line-height:1.25rem;height:1.5rem}:host([scale=s][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=s][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-x:1.5rem}:host([scale=m][icon-start][icon-end]) button:not(.content--slotted),:host([scale=m][icon-start][icon-end]) a:not(.content--slotted){--calcite-button-padding-x:2rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;height:2rem}:host([scale=m][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=m][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-x:33px}:host([scale=l][icon-start][icon-end]) button:not(.content--slotted),:host([scale=l][icon-start][icon-end]) a:not(.content--slotted){--calcite-button-padding-x:43px;font-size:var(--calcite-font-size-0);line-height:1.25rem;height:2.75rem}:host([scale=l][icon-start][icon-end]) button:not(.content--slotted) .icon--start+.icon--end,:host([scale=l][icon-start][icon-end]) a:not(.content--slotted) .icon--start+.icon--end{-webkit-margin-start:1rem;margin-inline-start:1rem}:host([scale=l][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=l][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-x:2.75rem}";export{p as calcite_button}
@@ -1,5 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,i,n){function a(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,r){function o(t){try{s(n.next(t))}catch(t){r(t)}}function c(t){try{s(n["throw"](t))}catch(t){r(t)}}function s(t){t.done?i(t.value):a(t.value).then(o,c)}s((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,a,r,o;return o={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function c(t){return function(e){return s([t,e])}}function s(o){if(n)throw new TypeError("Generator is already executing.");while(i)try{if(n=1,a&&(r=o[0]&2?a["return"]:o[0]?a["throw"]||((r=a["return"])&&r.call(a),0):a.next)&&!(r=r.call(a,o[1])).done)return r;if(a=0,r)o=[o[0]&2,r.value];switch(o[0]){case 0:case 1:r=o;break;case 4:i.label++;return{value:o[1],done:false};case 5:i.label++;a=o[1];o=[0];continue;case 7:o=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(o[0]===6||o[0]===2)){i=0;continue}if(o[0]===3&&(!r||o[1]>r[0]&&o[1]<r[3])){i.label=o[1];break}if(o[0]===6&&i.label<r[1]){i.label=r[1];r=o;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(o);break}if(r[2])i.ops.pop();i.trys.pop();continue}o=e.call(t,i)}catch(t){o=[6,t];a=0}finally{n=r=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};
2
- /*!
3
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
4
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
5
- */System.register(["./p-288bc438.system.js","./p-6cc23c39.system.js","./p-56b352bf.system.js","./p-c34c4414.system.js","./p-523bc291.system.js","./p-e020662f.system.js"],(function(t){"use strict";var e,i,n,a,r,o,c,s,l,h,u,d,p,b,m;return{setters:[function(t){e=t.r;i=t.c;n=t.h;a=t.H;r=t.g},function(t){o=t.f;c=t.a;s=t.C},function(t){l=t.g},function(t){h=t.c;u=t.d;d=t.g},function(t){p=t.c;b=t.d;m=t.H},function(){}],execute:function(){var f="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host([scale=s]) .container{height:0.75rem}:host([scale=s]) .track{width:1.5rem;height:0.75rem}:host([scale=s]) .handle{width:0.5rem;height:0.5rem}:host([scale=m]) .container{height:1rem}:host([scale=m]) .track{width:2rem;height:1rem}:host([scale=m]) .handle{width:0.75rem;height:0.75rem}:host([scale=l]) .container{height:1.5rem}:host([scale=l]) .track{width:3rem;height:1.5rem}:host([scale=l]) .handle{width:1.25rem;height:1.25rem}:host{display:inline-block;position:relative;width:auto;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;tap-highlight-color:transparent}:host([disabled]){opacity:var(--calcite-ui-opacity-disabled);pointer-events:none;cursor:default}:host{outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;width:auto}:host(:focus){outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.track{position:relative;display:inline-block;vertical-align:top;background-color:var(--calcite-ui-foreground-2);border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-2);-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);border-radius:9999px}.handle{position:absolute;display:block;right:auto;background-color:var(--calcite-ui-foreground-1);border-width:2px;border-style:solid;border-color:var(--calcite-ui-border-input);-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);border-radius:9999px;pointer-events:none;top:-1px;left:-1px}:host(:hover) .handle,:host(:focus) .handle{border-color:var(--calcite-ui-brand);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-brand);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand)}:host([checked]) .track{background-color:var(--calcite-ui-brand);border-color:var(--calcite-ui-brand-hover)}:host([checked]) .handle{left:auto;border-color:var(--calcite-ui-brand);right:-1px}:host([checked]:hover) .track{background-color:var(--calcite-ui-brand);border-color:var(--calcite-ui-brand-hover)}:host([checked]:hover) .handle{border-color:var(--calcite-ui-brand-hover);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-brand-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand-hover)}.calcite--rtl .handle{left:auto;right:-1px}:host([checked]) .calcite--rtl .handle{right:auto;left:-1px}:host([checked]:active) .calcite--rtl .handle{right:auto;left:-1px}:host([checked]:focus) .calcite--rtl .handle{right:auto;left:-1px}::slotted(input[slot=hidden-form-input]){bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";var w=t("calcite_switch",function(){function t(t){var n=this;e(this,t);this.calciteSwitchChange=i(this,"calciteSwitchChange",7);this.disabled=false;this.scale="m";this.switched=false;this.checked=false;this.keyDownHandler=function(t){var e=l(t.key);if(!n.disabled&&(e===" "||e==="Enter")){n.toggle()}};this.clickHandler=function(){n.toggle()};this.setSwitchEl=function(t){n.switchEl=t}}t.prototype.disabledWatcher=function(t){this.tabindex=t?-1:0};t.prototype.switchedWatcher=function(t){this.checked=t};t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){o(this.switchEl);return[2]}))}))};t.prototype.onLabelClick=function(){if(!this.disabled){this.toggle();this.setFocus()}};t.prototype.toggle=function(){this.checked=!this.checked;this.calciteSwitchChange.emit({switched:this.checked})};t.prototype.connectedCallback=function(){var t=this.checked||this.switched;if(t){this.switched=this.checked=t}h(this);p(this)};t.prototype.disconnectedCallback=function(){u(this);b(this)};t.prototype.componentWillLoad=function(){this.tabindex=this.el.getAttribute("tabindex")||this.disabled?-1:0};t.prototype.render=function(){var t;var e=c(this.el);return n(a,{onKeyDown:this.keyDownHandler},n("div",{"aria-checked":this.checked.toString(),"aria-label":d(this),class:(t={container:true},t[s.rtl]=e==="rtl",t),onClick:this.clickHandler,ref:this.setSwitchEl,role:"switch",tabindex:this.tabindex},n("div",{class:"track"},n("div",{class:"handle"})),n(m,{component:this})))};Object.defineProperty(t.prototype,"el",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{disabled:["disabledWatcher"],switched:["switchedWatcher"]}},enumerable:false,configurable:true});return t}());w.style=f}}}));
@@ -1,5 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,i,n){function a(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,o){function r(t){try{s(n.next(t))}catch(t){o(t)}}function c(t){try{s(n["throw"](t))}catch(t){o(t)}}function s(t){t.done?i(t.value):a(t.value).then(r,c)}s((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,r;return r={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function c(t){return function(e){return s([t,e])}}function s(r){if(n)throw new TypeError("Generator is already executing.");while(i)try{if(n=1,a&&(o=r[0]&2?a["return"]:r[0]?a["throw"]||((o=a["return"])&&o.call(a),0):a.next)&&!(o=o.call(a,r[1])).done)return o;if(a=0,o)r=[r[0]&2,o.value];switch(r[0]){case 0:case 1:o=r;break;case 4:i.label++;return{value:r[1],done:false};case 5:i.label++;a=r[1];r=[0];continue;case 7:r=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(r[0]===6||r[0]===2)){i=0;continue}if(r[0]===3&&(!o||r[1]>o[0]&&r[1]<o[3])){i.label=r[1];break}if(r[0]===6&&i.label<o[1]){i.label=o[1];o=r;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(r);break}if(o[2])i.ops.pop();i.trys.pop();continue}r=e.call(t,i)}catch(t){r=[6,t];a=0}finally{n=o=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};
2
- /*!
3
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
4
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
5
- */System.register(["./p-288bc438.system.js","./p-6cc23c39.system.js","./p-e020662f.system.js"],(function(t){"use strict";var e,i,n,a,o,r,c;return{setters:[function(t){e=t.r;i=t.c;n=t.h;a=t.g},function(t){o=t.a;r=t.C},function(t){c=t.g}],execute:function(){var s="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}.root{background-color:var(--calcite-ui-foreground-1);-webkit-box-shadow:0 0 0 1px var(--calcite-ui-border-2);box-shadow:0 0 0 1px var(--calcite-ui-border-2);-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:inline-block;height:100%;max-width:300px;padding:0.75rem;position:relative;-webkit-transition:150ms ease-in-out;transition:150ms ease-in-out;vertical-align:top;z-index:10}:host{display:block}:host(:hover) .root{z-index:20;-webkit-box-shadow:0 0 0 1px var(--calcite-ui-border-1);box-shadow:0 0 0 1px var(--calcite-ui-border-1)}:host([checked]) .root{z-index:30;-webkit-box-shadow:0 0 0 1px var(--calcite-ui-brand);box-shadow:0 0 0 1px var(--calcite-ui-brand)}.root.focused{z-index:30}:host(:not([input-enabled]):hover) .root{-webkit-box-shadow:0 0 0 1px var(--calcite-ui-brand);box-shadow:0 0 0 1px var(--calcite-ui-brand)}:host(:not([input-enabled])) .root.focused{-webkit-box-shadow:0 0 0 1px var(--calcite-ui-brand), inset 0 0 0 2px var(--calcite-ui-foreground-1), inset 0 0 0 5px var(--calcite-ui-brand);box-shadow:0 0 0 1px var(--calcite-ui-brand), inset 0 0 0 2px var(--calcite-ui-foreground-1), inset 0 0 0 5px var(--calcite-ui-brand)}:host([width=full]) .root{max-width:none;display:-ms-flexbox;display:flex}:host([width=full]) calcite-tile{-ms-flex:1 1 auto;flex:1 1 auto}:host([input-alignment=start][width=full]) calcite-tile{-ms-flex-order:1;order:1;-webkit-margin-start:0.75rem;margin-inline-start:0.75rem}:host(:not([input-enabled])) ::slotted(calcite-checkbox),:host(:not([input-enabled])) ::slotted(calcite-radio-button){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}:host([heading]:not([icon]):not([description])) .root{-ms-flex-align:center;align-items:center}:host([width=auto][input-enabled][input-alignment=start][icon][heading][description]) .root,:host([width=auto][input-enabled][input-alignment=start]:not([icon])[heading]:not([description])) .root{display:inline-grid;grid-gap:0.75rem;grid-template-columns:-webkit-max-content 1fr;grid-template-columns:max-content 1fr}:host([width=auto][input-enabled][input-alignment=start][icon][heading][description]) ::slotted(calcite-checkbox),:host([width=auto][input-enabled][input-alignment=start][icon][heading][description]) ::slotted(calcite-radio-button),:host([width=auto][input-enabled][input-alignment=start]:not([icon])[heading]:not([description])) ::slotted(calcite-checkbox),:host([width=auto][input-enabled][input-alignment=start]:not([icon])[heading]:not([description])) ::slotted(calcite-radio-button){-ms-flex-order:0;order:0}:host([width=auto][input-enabled][input-alignment=start][icon][heading][description]) calcite-tile,:host([width=auto][input-enabled][input-alignment=start]:not([icon])[heading]:not([description])) calcite-tile{-ms-flex-order:1;order:1}:host([input-enabled][input-alignment=start][icon][heading]:not([description])) ::slotted(calcite-checkbox),:host([input-enabled][input-alignment=start][icon][heading]:not([description])) ::slotted(calcite-radio-button){position:absolute;top:0.75rem;left:0.75rem}:host([input-enabled][input-alignment=start][icon][heading]:not([description])) .calcite--rtl ::slotted(calcite-checkbox),:host([input-enabled][input-alignment=start][icon][heading]:not([description])) .calcite--rtl ::slotted(calcite-radio-button){right:0.75rem;left:unset}:host([input-enabled][input-alignment=end][icon][heading]) ::slotted(calcite-checkbox),:host([input-enabled][input-alignment=end][icon][heading]) ::slotted(calcite-radio-button){position:absolute;top:0.75rem;right:0.75rem}:host([input-enabled][input-alignment=end][icon][heading]) .calcite--rtl ::slotted(calcite-checkbox),:host([input-enabled][input-alignment=end][icon][heading]) .calcite--rtl ::slotted(calcite-radio-button){right:unset;left:0.75rem}:host([input-enabled][input-alignment=end][heading]:not([icon]):not([description])) .root{display:inline-grid;grid-gap:0.75rem;grid-template-columns:-webkit-max-content 1fr;grid-template-columns:max-content 1fr}:host([input-enabled][input-alignment=end][heading]:not([icon]):not([description])) ::slotted(calcite-checkbox),:host([input-enabled][input-alignment=end][heading]:not([icon]):not([description])) ::slotted(calcite-radio-button){justify-self:flex-end}:host([hidden]){display:none}:host([disabled]){opacity:var(--calcite-ui-opacity-disabled);pointer-events:none}";var l=t("calcite_tile_select",function(){function t(t){e(this,t);this.calciteTileSelectChange=i(this,"calciteTileSelectChange",7);this.checked=false;this.disabled=false;this.hidden=false;this.inputEnabled=false;this.inputAlignment="start";this.type="radio";this.width="auto";this.guid="calcite-tile-select-"+c();this.focused=false}t.prototype.checkedChanged=function(t){this.input.checked=t};t.prototype.nameChanged=function(t){this.input.name=t};t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.input.setFocus();return[2]}))}))};t.prototype.checkboxChangeHandler=function(t){var e=t.target;if(e===this.input){this.checked=e.checked}t.stopPropagation();this.calciteTileSelectChange.emit()};t.prototype.checkboxFocusBlurHandler=function(t){var e=t.target;if(e===this.input){this.focused=t.detail}t.stopPropagation()};t.prototype.radioButtonChangeHandler=function(t){var e=t.target;if(e===this.input){this.checked=e.checked}t.stopPropagation();this.calciteTileSelectChange.emit()};t.prototype.radioButtonCheckedChangeHandler=function(t){var e=t.target;if(e===this.input){this.checked=e.checked}t.stopPropagation()};t.prototype.radioButtonFocusBlurHandler=function(t){var e=t.target;if(e===this.input){this.focused=e.focused}t.stopPropagation()};t.prototype.click=function(t){var e=t.target;var i=["calcite-tile","calcite-tile-select"];if(i.includes(e.localName)){this.input.click()}};t.prototype.mouseenter=function(){if(this.input.localName==="calcite-radio-button"){this.input.hovered=true}if(this.input.localName==="calcite-checkbox"){this.input.hovered=true}};t.prototype.mouseleave=function(){if(this.input.localName==="calcite-radio-button"){this.input.hovered=false}if(this.input.localName==="calcite-checkbox"){this.input.hovered=false}};t.prototype.connectedCallback=function(){this.renderInput()};t.prototype.disconnectedCallback=function(){this.input.parentNode.removeChild(this.input)};t.prototype.renderInput=function(){this.input=document.createElement(this.type==="radio"?"calcite-radio-button":"calcite-checkbox");this.input.checked=this.checked;this.input.disabled=this.disabled;this.input.hidden=this.hidden;this.input.id=this.guid;this.input.label=this.heading||this.name||"";if(this.name){this.input.name=this.name}if(this.value){this.input.value=this.value!=null?this.value.toString():""}this.el.insertAdjacentElement("beforeend",this.input)};t.prototype.render=function(){var t;var e=o(this.el);return n("div",{class:(t={focused:this.focused,root:true},t[r.rtl]=e==="rtl",t)},n("calcite-tile",{active:this.checked,description:this.description,embed:true,heading:this.heading,icon:this.icon}),n("slot",null))};Object.defineProperty(t.prototype,"el",{get:function(){return a(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{checked:["checkedChanged"],name:["nameChanged"]}},enumerable:false,configurable:true});return t}());l.style=s;var d="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}:host ::slotted(calcite-tile-select){margin-right:1px;margin-bottom:1px}:host([layout=vertical]){-ms-flex-direction:column;flex-direction:column}";var p=t("calcite_tile_select_group",function(){function t(t){e(this,t);this.layout="horizontal"}t.prototype.render=function(){return n("slot",null)};return t}());p.style=d}}}));
@@ -1,5 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- */
5
- import{r as t,h as e,F as a,g as i,c as n}from"./p-2e29554c.js";import{g as o,a as l,C as r}from"./p-52cc870b.js";import"./p-8a63221d.js";let s=class{constructor(e){t(this,e),this.contentBehind=!1}renderHeader(){return o(this.el,"header")?e("slot",{name:"header"}):null}renderContent(){return this.contentBehind?[e("div",{class:{content:!0,"content--behind":!!this.contentBehind}},e("slot",null)),e("slot",{name:"center-row"})]:[e("div",{class:"content"},e("slot",null),e("slot",{name:"center-row"}))]}renderFooter(){return o(this.el,"footer")?e("div",{class:"footer"},e("slot",{name:"footer"})):null}renderMain(){const t=o(this.el,"primary-panel");return e("div",{class:{main:!0,"main--reversed":"end"===(null==t?void 0:t.position)}},e("slot",{name:"primary-panel"}),this.renderContent(),e("slot",{name:"contextual-panel"}))}render(){return e(a,null,this.renderHeader(),this.renderMain(),this.renderFooter())}get el(){return i(this)}};s.style="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{width:100%;height:100%;position:absolute;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden;top:0;right:0;bottom:0;left:0;--calcite-shell-tip-spacing:26vw}.main{height:100%;width:100%;-ms-flex:1 1 auto;flex:1 1 auto;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;position:relative;-ms-flex-pack:justify;justify-content:space-between;overflow:hidden}.main--reversed{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;height:100%;overflow:auto;width:100%}.content ::slotted(calcite-shell-center-row),.content ::slotted(calcite-panel),.content ::slotted(calcite-flow){-ms-flex-item-align:stretch;align-self:stretch;-ms-flex:1 1 auto;flex:1 1 auto;max-height:unset}.content--behind{border-width:0;position:absolute;top:0;right:0;bottom:0;left:0;z-index:0;display:initial}::slotted(calcite-shell-center-row){width:unset}::slotted(.header .heading){font-weight:var(--calcite-font-weight-normal);font-size:var(--calcite-font-size--2);line-height:1.375}::slotted(calcite-shell-panel),::slotted(calcite-shell-center-row){position:relative;z-index:1}::slotted(calcite-panel),::slotted(calcite-flow){border-width:1px;border-color:var(--calcite-ui-border-3);border-style:solid;border-left-width:0;border-right-width:0}slot[name=center-row]::slotted(calcite-shell-center-row:not([detached])){border-left-width:1px;border-right-width:1px;border-color:var(--calcite-ui-border-3)}::slotted(calcite-tip-manager){border-radius:0.25rem;-webkit-box-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);box-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);position:absolute;-webkit-animation:in-up var(--calcite-animation-timing) ease-in-out;animation:in-up var(--calcite-animation-timing) ease-in-out;-webkit-box-sizing:border-box;box-sizing:border-box;bottom:0.5rem;left:var(--calcite-shell-tip-spacing);right:var(--calcite-shell-tip-spacing);z-index:2}";let c=class{constructor(e){t(this,e),this.detached=!1,this.heightScale="s",this.position="end"}render(){const{el:t}=this,i="rtl"===l(t),n=e("div",{class:{content:!0,[r.rtl]:i}},e("slot",null)),s=o(t,"action-bar"),c=[s?e("div",{class:{"action-bar-container":!0,[r.rtl]:i}},e("slot",{name:"action-bar"})):null,n];return"end"===(null==s?void 0:s.position)&&c.reverse(),e(a,null,c)}get el(){return i(this)}};c.style="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden;background-color:transparent}.content{display:-ms-flexbox;display:flex;height:100%;margin:0;overflow:hidden;width:100%;-ms-flex:1 0 0px;flex:1 0 0}.action-bar-container{display:-ms-flexbox;display:flex}:host([detached]){border-width:0;border-radius:0.25rem;-webkit-box-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);box-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);margin-top:0.5rem;margin-bottom:1.5rem;margin-left:0.5rem;margin-right:0.5rem;-webkit-animation:in-up var(--calcite-animation-timing) ease-in-out;animation:in-up var(--calcite-animation-timing) ease-in-out}:host([position=end]){-ms-flex-item-align:end;align-self:flex-end}:host([position=start]){-ms-flex-item-align:start;align-self:flex-start}:host([height-scale=s]){height:33.333333%}:host([height-scale=m]){height:70%}:host([height-scale=l]){height:100%}:host([height-scale=l][detached]){height:calc(100% - 2rem)}::slotted(calcite-panel){width:100%;height:100%}::slotted(calcite-action-bar){border-right-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}::slotted(calcite-action-bar[position=end]){border-left-width:0;border-right-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}.calcite--rtl ::slotted(calcite-action-bar){border-right-width:0;border-left-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}.calcite--rtl ::slotted(calcite-action-bar[position=end]){border-left-width:0;border-right-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}";let d=class{constructor(e){t(this,e),this.calciteShellPanelToggle=n(this,"calciteShellPanelToggle",7),this.collapsed=!1,this.detached=!1,this.detachedHeightScale="l",this.widthScale="m"}watchHandler(){this.calciteShellPanelToggle.emit()}renderHeader(){const{el:t}=this;return o(t,"header")?e("div",{class:"content__header"},e("slot",{name:"header"})):null}render(){const{collapsed:t,detached:a,position:i}=this,n=e("div",{class:{content:!0,"content--detached":a},hidden:t},this.renderHeader(),e("div",{class:"content__body"},e("slot",null))),o=[e("slot",{name:"action-bar"}),n];return"end"===i&&o.reverse(),e("div",{class:{container:!0}},o)}get el(){return i(this)}static get watchers(){return{collapsed:["watchHandler"]}}};d.style="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch;-ms-flex:0 1 auto;flex:0 1 auto;--calcite-shell-panel-detached-max-height:unset}.container{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch;background-color:transparent;-ms-flex:1 1 auto;flex:1 1 auto;pointer-events:none;color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}.container *{-webkit-box-sizing:border-box;box-sizing:border-box}::slotted(calcite-panel),::slotted(calcite-flow){-ms-flex:1 1 auto;flex:1 1 auto;height:100%;width:100%;max-height:unset;max-width:unset}::slotted(.calcite-match-height){display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden}.content{-ms-flex-align:stretch;align-items:stretch;-ms-flex-item-align:stretch;align-self:stretch;background-color:var(--calcite-ui-background);display:-ms-flexbox;display:flex;padding:0;pointer-events:auto;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;width:var(--calcite-shell-panel-width);max-width:var(--calcite-shell-panel-max-width);min-width:var(--calcite-shell-panel-min-width);-webkit-transition:max-height 150ms ease-in-out, max-width 150ms ease-in-out;transition:max-height 150ms ease-in-out, max-width 150ms ease-in-out}.content__header{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex:0 1 auto;flex:0 1 auto;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:stretch;align-items:stretch}.content__body{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;overflow:hidden}:host([width-scale=s]) .content{--calcite-shell-panel-width:calc(var(--calcite-panel-width-multiplier) * 12vw);--calcite-shell-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 300px);--calcite-shell-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 150px)}:host([width-scale=m]) .content{--calcite-shell-panel-width:calc(var(--calcite-panel-width-multiplier) * 20vw);--calcite-shell-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 420px);--calcite-shell-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 240px)}:host([width-scale=l]) .content{--calcite-shell-panel-width:calc(var(--calcite-panel-width-multiplier) * 45vw);--calcite-shell-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 680px);--calcite-shell-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 340px)}:host([detached-height-scale=s]) .content--detached{--calcite-shell-panel-detached-max-height:40vh}:host([detached-height-scale=m]) .content--detached{--calcite-shell-panel-detached-max-height:60vh}:host([detached-height-scale=l]) .content--detached{--calcite-shell-panel-detached-max-height:80vh}.content--detached{border-radius:0.25rem;-webkit-box-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);box-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);height:auto;overflow:hidden;margin-top:0.5rem;margin-bottom:auto;margin-left:0.5rem;margin-right:0.5rem;max-height:var(--calcite-shell-panel-detached-max-height)}.content--detached ::slotted(calcite-panel),.content--detached ::slotted(calcite-flow){max-height:unset}:host([position=start]) .content--detached ::slotted(calcite-panel),:host([position=start]) .content--detached ::slotted(calcite-flow),:host([position=end]) .content--detached ::slotted(calcite-panel),:host([position=end]) .content--detached ::slotted(calcite-flow){border-style:none}.content[hidden]{display:none}slot[name=action-bar]::slotted(calcite-action-bar),.content ::slotted(calcite-flow),.content ::slotted(calcite-panel){border-width:1px;border-color:var(--calcite-ui-border-3);border-style:solid}:host([position=start]) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=start]) .content ::slotted(calcite-flow),:host([position=start]) .content ::slotted(calcite-panel){-webkit-border-start:none;border-inline-start:none}:host([position=end]) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=end]) .content ::slotted(calcite-flow),:host([position=end]) .content ::slotted(calcite-panel){-webkit-border-end:none;border-inline-end:none}";export{s as calcite_shell,c as calcite_shell_center_row,d as calcite_shell_panel}
@@ -1,5 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,a,r){function i(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function o(e){try{c(r.next(e))}catch(e){n(e)}}function s(e){try{c(r["throw"](e))}catch(e){n(e)}}function c(e){e.done?a(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var a={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},r,i,n,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(o){if(r)throw new TypeError("Generator is already executing.");while(a)try{if(r=1,i&&(n=o[0]&2?i["return"]:o[0]?i["throw"]||((n=i["return"])&&n.call(i),0):i.next)&&!(n=n.call(i,o[1])).done)return n;if(i=0,n)o=[o[0]&2,n.value];switch(o[0]){case 0:case 1:n=o;break;case 4:a.label++;return{value:o[1],done:false};case 5:a.label++;i=o[1];o=[0];continue;case 7:o=a.ops.pop();a.trys.pop();continue;default:if(!(n=a.trys,n=n.length>0&&n[n.length-1])&&(o[0]===6||o[0]===2)){a=0;continue}if(o[0]===3&&(!n||o[1]>n[0]&&o[1]<n[3])){a.label=o[1];break}if(o[0]===6&&a.label<n[1]){a.label=n[1];n=o;break}if(n&&a.label<n[2]){a.label=n[2];a.ops.push(o);break}if(n[2])a.ops.pop();a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e];i=0}finally{r=n=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t){for(var a=0,r=t.length,i=e.length;a<r;a++,i++)e[i]=t[a];return e};
2
- /*!
3
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
4
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
5
- */System.register(["./p-288bc438.system.js","./p-dff7dc90.system.js","./p-6cc23c39.system.js","./p-56b352bf.system.js","./p-34e5baa7.system.js","./p-4035444d.system.js","./p-91645bf7.system.js","./p-e020662f.system.js"],(function(e){"use strict";var t,a,r,i,n,o,s,c,l,d,h,u,f,p,g,v,m,D,y,b,w,x,k,A;return{setters:[function(e){t=e.r;a=e.c;r=e.h;i=e.H;n=e.g;o=e.F},function(e){s=e.T;c=e.c;l=e.d;d=e.a;h=e.b;u=e.g;f=e.H;p=e.s;g=e.i;v=e.l;m=e.e;D=e.n;y=e.f;b=e.h},function(e){w=e.a;x=e.C},function(e){k=e.g},function(e){A=e.C},function(){},function(){},function(){}],execute:function(){var R="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:inline-block;vertical-align:top;width:100%;position:relative;overflow:visible;border-radius:0;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-2);background-color:var(--calcite-ui-foreground-1)}:host([scale=s]){max-width:216px}:host([scale=m]){max-width:286px}:host([scale=l]){max-width:398px}";var _=e("calcite_date_picker",function(){function e(e){var r=this;t(this,e);this.calciteDatePickerChange=a(this,"calciteDatePickerChange",7);this.calciteDatePickerRangeChange=a(this,"calciteDatePickerRangeChange",7);this.intlPrevMonth=s.prevMonth;this.intlNextMonth=s.nextMonth;this.locale=document.documentElement.lang||"en";this.scale="m";this.range=false;this.proximitySelectionDisabled=false;this.keyUpHandler=function(e){if(k(e.key)==="Escape"){r.reset()}};this.monthHeaderSelectChange=function(e){var t=new Date(e.detail);if(!r.range){r.activeDate=t}else{if(r.activeRange==="end"){r.activeEndDate=t}else{r.activeStartDate=t}r.mostRecentRangeValue=t}};this.monthActiveDateChange=function(e){var t=new Date(e.detail);if(!r.range){r.activeDate=t}else{if(r.activeRange==="end"){r.activeEndDate=t}else{r.activeStartDate=t}r.mostRecentRangeValue=t}};this.monthHoverChange=function(e){if(!r.startAsDate){r.hoverRange=undefined;return}var t=new Date(e.detail);r.hoverRange={focused:r.activeRange||"start",start:r.startAsDate,end:r.endAsDate};if(!r.proximitySelectionDisabled){if(r.endAsDate){var a=c(t,r.startAsDate);var i=c(t,r.endAsDate);if(i>0){r.hoverRange.end=t;r.hoverRange.focused="end"}else if(a<0){r.hoverRange.start=t;r.hoverRange.focused="start"}else if(a>i){r.hoverRange.start=t;r.hoverRange.focused="start"}else{r.hoverRange.end=t;r.hoverRange.focused="end"}}else{if(t<r.startAsDate){r.hoverRange={focused:"start",start:t,end:r.startAsDate}}else{r.hoverRange.end=t;r.hoverRange.focused="end"}}}else{if(!r.endAsDate){if(t<r.startAsDate){r.hoverRange={focused:"start",start:t,end:r.startAsDate}}else{r.hoverRange.end=t;r.hoverRange.focused="end"}}else{r.hoverRange=undefined}}};this.monthMouseOutChange=function(){if(r.hoverRange){r.hoverRange=undefined}};this.reset=function(){var e,t,a,i,n,o;if(!Array.isArray(r.valueAsDate)&&r.valueAsDate&&((e=r.valueAsDate)===null||e===void 0?void 0:e.getTime())!==((t=r.activeDate)===null||t===void 0?void 0:t.getTime())){r.activeDate=new Date(r.valueAsDate)}if(r.startAsDate&&((a=r.startAsDate)===null||a===void 0?void 0:a.getTime())!==((i=r.activeStartDate)===null||i===void 0?void 0:i.getTime())){r.activeStartDate=new Date(r.startAsDate)}if(r.endAsDate&&((n=r.endAsDate)===null||n===void 0?void 0:n.getTime())!==((o=r.activeEndDate)===null||o===void 0?void 0:o.getTime())){r.activeEndDate=new Date(r.endAsDate)}};this.monthDateChange=function(e){var t=new Date(e.detail);if(!r.range){r.value=l(t);r.activeDate=t;return}if(!r.startAsDate||!r.endAsDate&&t<r.startAsDate){if(r.startAsDate){r.setEndDate(new Date(r.startAsDate))}if(r.activeRange=="end"){r.setEndDate(t)}else{r.setStartDate(t)}}else if(!r.endAsDate){r.setEndDate(t)}else{if(!r.proximitySelectionDisabled){if(r.activeRange){if(r.activeRange=="end"){r.setEndDate(t)}else{r.setStartDate(t)}}else{var a=c(t,r.startAsDate);var i=c(t,r.endAsDate);if(i===0||a<0){r.setStartDate(t)}else if(a===0||i<0){r.setEndDate(t)}else if(a<i){r.setStartDate(t)}else{r.setEndDate(t)}}}else{r.setStartDate(t);r.endAsDate=r.activeEndDate=r.end=undefined}}}}e.prototype.handleValueAsDate=function(e){if(!Array.isArray(e)&&e&&e!==this.activeDate){this.activeDate=e;this.calciteDatePickerChange.emit(e)}};e.prototype.handleRangeChange=function(){var e=this,t=e.startAsDate,a=e.endAsDate;this.activeEndDate=a;this.activeStartDate=t};e.prototype.connectedCallback=function(){if(Array.isArray(this.value)){this.valueAsDate=this.value.map((function(e){return d(e)}));this.start=this.value[0];this.end=this.value[1]}else if(this.value){this.valueAsDate=d(this.value)}if(this.start){this.setStartAsDate(d(this.start))}if(this.end){this.setEndAsDate(d(this.end))}if(this.min){this.minAsDate=d(this.min)}if(this.max){this.maxAsDate=d(this.max)}};e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.loadLocaleData()];case 1:e.sent();return[2]}}))}))};e.prototype.render=function(){var e;var t=h(this.range?this.startAsDate:this.valueAsDate,this.minAsDate,this.maxAsDate);var a=this.range?this.getActiveStartDate(t,this.minAsDate,this.maxAsDate):this.getActiveDate(t,this.minAsDate,this.maxAsDate);var n=a;var o=this.range?h(this.endAsDate,this.minAsDate,this.maxAsDate):null;var s=this.getActiveEndDate(o,this.minAsDate,this.maxAsDate);if((this.activeRange==="end"||((e=this.hoverRange)===null||e===void 0?void 0:e.focused)==="end"&&(!this.proximitySelectionDisabled||o))&&s){n=s}if(this.range&&this.mostRecentRangeValue){n=this.mostRecentRangeValue}var c=this.range&&this.activeRange?this.activeRange==="start"?this.minAsDate:t||this.minAsDate:this.minAsDate;var l=this.range&&this.activeRange?this.activeRange==="start"?o||this.maxAsDate:this.maxAsDate:this.maxAsDate;var d=w(this.el);return r(i,{onBlur:this.reset,onKeyUp:this.keyUpHandler,role:"application"},this.renderCalendar(n,d,l,c,t,o))};e.prototype.valueHandler=function(e){if(Array.isArray(e)){this.valueAsDate=e.map((function(e){return d(e)}));this.start=e[0];this.end=e[1]}else if(e){this.valueAsDate=d(e);this.start="";this.end=""}};e.prototype.startWatcher=function(e){this.setStartAsDate(d(e))};e.prototype.endWatcher=function(e){this.setEndAsDate(d(e))};e.prototype.loadLocaleData=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(a){switch(a.label){case 0:e=this.locale;t=this;return[4,u(e)];case 1:t.localeData=a.sent();return[2]}}))}))};e.prototype.renderCalendar=function(e,t,a,i,n,o){return this.localeData&&[r("calcite-date-picker-month-header",{activeDate:e,dir:t,headingLevel:this.headingLevel||f,intlNextMonth:this.intlNextMonth,intlPrevMonth:this.intlPrevMonth,localeData:this.localeData,max:a,min:i,onCalciteDatePickerSelect:this.monthHeaderSelectChange,scale:this.scale,selectedDate:this.activeRange==="end"?o:n||new Date}),r("calcite-date-picker-month",{activeDate:e,dir:t,endDate:this.range?o:undefined,hoverRange:this.hoverRange,localeData:this.localeData,max:a,min:i,onCalciteDatePickerActiveDateChange:this.monthActiveDateChange,onCalciteDatePickerHover:this.monthHoverChange,onCalciteDatePickerMouseOut:this.monthMouseOutChange,onCalciteDatePickerSelect:this.monthDateChange,scale:this.scale,selectedDate:this.activeRange==="end"?o:n,startDate:this.range?n:undefined})]};e.prototype.setStartAsDate=function(e,t){this.startAsDate=e;this.mostRecentRangeValue=this.startAsDate;if(t){this.calciteDatePickerRangeChange.emit({startDate:e,endDate:this.endAsDate})}};e.prototype.setEndAsDate=function(e,t){this.endAsDate=e;this.mostRecentRangeValue=this.endAsDate;if(t){this.calciteDatePickerRangeChange.emit({startDate:this.startAsDate,endDate:e})}};e.prototype.setEndDate=function(e){this.end=l(e);this.setEndAsDate(e,true);this.activeEndDate=e};e.prototype.setStartDate=function(e){this.start=l(e);this.setStartAsDate(e,true);this.activeStartDate=e};e.prototype.getActiveDate=function(e,t,a){return h(this.activeDate,t,a)||e||h(new Date,t,a)};e.prototype.getActiveStartDate=function(e,t,a){return h(this.activeStartDate,t,a)||e||h(new Date,t,a)};e.prototype.getActiveEndDate=function(e,t,a){return h(this.activeEndDate,t,a)||e||h(new Date,t,a)};Object.defineProperty(e,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{valueAsDate:["handleValueAsDate"],startAsDate:["handleRangeChange"],endAsDate:["handleRangeChange"],value:["valueHandler"],start:["startWatcher"],end:["endWatcher"],locale:["loadLocaleData"]}},enumerable:false,configurable:true});return e}());_.style=R;var S="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;outline:2px solid transparent;outline-offset:2px;color:var(--calcite-ui-text-3);cursor:pointer;min-width:0;width:14.2857142857%}.day-v-wrapper{-ms-flex:1 1 auto;flex:1 1 auto}.day-wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center}.day{display:-ms-flexbox;display:flex;border-radius:9999px;font-size:var(--calcite-font-size--2);line-height:1rem;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;line-height:1;color:var(--calcite-ui-text-3);-webkit-transition-property:all;transition-property:all;opacity:var(--calcite-ui-opacity-disabled);background:none;-webkit-box-shadow:0 0 0 2px transparent, 0 0 0 0px transparent;box-shadow:0 0 0 2px transparent, 0 0 0 0px transparent}.text{margin-top:1px;margin-right:0;margin-bottom:0;margin-left:1px}:host([scale=s]) .day-v-wrapper{padding-top:0.125rem;padding-bottom:0.125rem}:host([scale=s]) .day-wrapper{padding:0}:host([scale=s]) .day{height:27px;width:27px;font-size:var(--calcite-font-size--2)}:host([scale=m]) .day-v-wrapper{padding-top:0.25rem;padding-bottom:0.25rem}:host([scale=m]) .day-wrapper{padding-left:0.25rem;padding-right:0.25rem}:host([scale=m]) .day{height:33px;width:33px;font-size:var(--calcite-font-size--1)}:host([scale=l]) .day-v-wrapper{padding-top:0.25rem;padding-bottom:0.25rem}:host([scale=l]) .day-wrapper{padding-left:0.25rem;padding-right:0.25rem}:host([scale=l]) .day{height:43px;width:43px;font-size:var(--calcite-font-size-0)}:host([current-month]) .day{opacity:1}:host([disabled]){cursor:default;opacity:0.25}:host(:hover:not([disabled])) .day,:host([active]:not([range])) .day{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}:host(:focus),:host([active]){z-index:1}:host(:focus:not([disabled])) .day{-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);box-shadow:0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand)}:host([selected]) .day{font-weight:var(--calcite-font-weight-medium);background-color:var(--calcite-ui-brand) !important;color:var(--calcite-ui-foreground-1) !important;z-index:1}:host([range][selected]) .day-wrapper{background-color:var(--calcite-ui-foreground-current)}:host([start-of-range]) :not(.calcite--rtl) .day-wrapper,:host([end-of-range]) .calcite--rtl .day-wrapper{border-top-left-radius:40%;border-bottom-left-radius:40%;-webkit-box-shadow:inset 4px 0 var(--calcite-ui-foreground-1);box-shadow:inset 4px 0 var(--calcite-ui-foreground-1)}:host([start-of-range]) :not(.calcite--rtl) .day,:host([end-of-range]) .calcite--rtl .day{opacity:1}:host([start-of-range]:not(:focus)) :not(.calcite--rtl) .day,:host([end-of-range]:not(:focus)) .calcite--rtl .day{-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-1);box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host([end-of-range]) :not(.calcite--rtl) .day-wrapper,:host([start-of-range]) .calcite--rtl .day-wrapper{border-top-right-radius:40%;border-bottom-right-radius:40%;-webkit-box-shadow:inset -4px 0 var(--calcite-ui-foreground-1);box-shadow:inset -4px 0 var(--calcite-ui-foreground-1)}:host([end-of-range]) :not(.calcite--rtl) .day,:host([start-of-range]) .calcite--rtl .day{opacity:1}:host([end-of-range]:not(:focus)) :not(.calcite--rtl) .day,:host([start-of-range]:not(:focus)) .calcite--rtl .day{-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-1);box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host([end-of-range][scale=l]) :not(.calcite--rtl) .day-wrapper,:host([start-of-range][scale=l]) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset -8px 0 var(--calcite-ui-foreground-1);box-shadow:inset -8px 0 var(--calcite-ui-foreground-1)}:host([start-of-range][scale=l]) :not(.calcite--rtl) .day-wrapper,:host([end-of-range][scale=l]) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset 8px 0 var(--calcite-ui-foreground-1);box-shadow:inset 8px 0 var(--calcite-ui-foreground-1)}:host([highlighted]) .day-wrapper{background-color:var(--calcite-ui-foreground-current)}:host([highlighted]) .day-wrapper .day{color:var(--calcite-ui-text-1)}:host([highlighted]:not([active]:focus)) .day{border-radius:0;color:var(--calcite-ui-text-1)}:host([range-hover]:not([selected])) .day-wrapper{background-color:var(--calcite-ui-foreground-2)}:host([range-hover]:not([selected])) .day{border-radius:0}:host([end-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper,:host([start-of-range][range-hover]) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, left top, right top, from(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-2)), to(var(--calcite-ui-foreground-2)));background-image:linear-gradient(to right, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2));border-radius:0;-webkit-box-shadow:none;box-shadow:none}:host([start-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper,:host([end-of-range][range-hover]) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, right top, left top, from(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-2)), to(var(--calcite-ui-foreground-2)));background-image:linear-gradient(to left, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2));border-radius:0;-webkit-box-shadow:none;box-shadow:none}:host(:hover[end-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper,:host(:hover[start-of-range][range-hover]) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, left top, right top, from(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-1)), to(var(--calcite-ui-foreground-1)));background-image:linear-gradient(to right, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-1));border-radius:0;-webkit-box-shadow:none;box-shadow:none}:host(:hover[start-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper,:host(:hover[end-of-range][range-hover]) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, right top, left top, from(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-1)), to(var(--calcite-ui-foreground-1)));background-image:linear-gradient(to left, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-1));border-radius:0;-webkit-box-shadow:none;box-shadow:none}:host(:hover[range-hover]:not([selected]).focused--end) :not(.calcite--rtl) .day-wrapper,:host(:hover[range-hover]:not([selected]).focused--start) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, left top, right top, from(var(--calcite-ui-foreground-2)), color-stop(var(--calcite-ui-foreground-2)), color-stop(var(--calcite-ui-foreground-current)), to(var(--calcite-ui-foreground-current)));background-image:linear-gradient(to right, var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current))}:host(:hover[range-hover]:not([selected]).focused--end) :not(.calcite--rtl) .day,:host(:hover[range-hover]:not([selected]).focused--start) .calcite--rtl .day{border-radius:9999px;opacity:1;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-1);box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host(:hover[range-hover]:not([selected]).focused--start) :not(.calcite--rtl) .day-wrapper,:host(:hover[range-hover]:not([selected]).focused--end) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, left top, right top, from(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-2)), to(var(--calcite-ui-foreground-2)));background-image:linear-gradient(to right, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2))}:host(:hover[range-hover]:not([selected]).focused--start) :not(.calcite--rtl) .day,:host(:hover[range-hover]:not([selected]).focused--end) .calcite--rtl .day{border-radius:9999px;opacity:1;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-1);box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host(:hover[range-hover]:not([selected]).focused--start.hover--outside-range) :not(.calcite--rtl) .day-wrapper,:host(:hover[range-hover]:not([selected]).focused--end.hover--outside-range) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, left top, right top, from(var(--calcite-ui-foreground-1)), color-stop(var(--calcite-ui-foreground-1)), color-stop(var(--calcite-ui-foreground-2)), to(var(--calcite-ui-foreground-2)));background-image:linear-gradient(to right, var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2))}:host(:hover[range-hover]:not([selected]).focused--start.hover--outside-range) :not(.calcite--rtl) .day,:host(:hover[range-hover]:not([selected]).focused--end.hover--outside-range) .calcite--rtl .day{border-radius:9999px;opacity:1;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-1);box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host(:hover[range-hover]:not([selected]).focused--end.hover--outside-range) :not(.calcite--rtl) .day-wrapper,:host(:hover[range-hover]:not([selected]).focused--start.hover--outside-range) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, left top, right top, from(var(--calcite-ui-foreground-2)), color-stop(var(--calcite-ui-foreground-2)), color-stop(var(--calcite-ui-foreground-1)), to(var(--calcite-ui-foreground-1)));background-image:linear-gradient(to right, var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-1))}:host(:hover[range-hover]:not([selected]).focused--end.hover--outside-range) :not(.calcite--rtl) .day,:host(:hover[range-hover]:not([selected]).focused--start.hover--outside-range) .calcite--rtl .day{border-radius:9999px;opacity:1;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-1);box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host(:hover[start-of-range].hover--inside-range.focused--end) .day-wrapper,:host(:hover[end-of-range].hover--inside-range.focused--start) .day-wrapper{background-image:none}:host([start-of-range].hover--inside-range.focused--end) .day-wrapper,:host([end-of-range].hover--inside-range.focused--start) .day-wrapper{background-color:var(--calcite-ui-foreground-2)}:host([highlighted]:last-child) :not(.calcite--rtl) .day-wrapper,:host([range-hover]:last-child) :not(.calcite--rtl) .day-wrapper,:host([highlighted]:first-child) .calcite--rtl .day-wrapper,:host([range-hover]:first-child) .calcite--rtl .day-wrapper{border-top-right-radius:45%;border-bottom-right-radius:45%;-webkit-box-shadow:inset -4px 0px 0px 0px var(--calcite-ui-foreground-1);box-shadow:inset -4px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([highlighted]:first-child) :not(.calcite--rtl) .day-wrapper,:host([range-hover]:first-child) :not(.calcite--rtl) .day-wrapper,:host([highlighted]:last-child) .calcite--rtl .day-wrapper,:host([range-hover]:last-child) .calcite--rtl .day-wrapper{border-top-left-radius:45%;border-bottom-left-radius:45%;-webkit-box-shadow:inset 4px 0px 0px 0px var(--calcite-ui-foreground-1);box-shadow:inset 4px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([scale=s][highlighted]:last-child) :not(.calcite--rtl) .day-wrapper,:host([scale=s][range-hover]:last-child) :not(.calcite--rtl) .day-wrapper,:host([scale=s][highlighted]:first-child) .calcite--rtl .day-wrapper,:host([scale=s][range-hover]:first-child) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset -1px 0px 0px 0px var(--calcite-ui-foreground-1);box-shadow:inset -1px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([scale=s][highlighted]:first-child) :not(.calcite--rtl) .day-wrapper,:host([scale=s][range-hover]:first-child) :not(.calcite--rtl) .day-wrapper,:host([scale=s][highlighted]:last-child) .calcite--rtl .day-wrapper,:host([scale=s][range-hover]:last-child) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset 1px 0px 0px 0px var(--calcite-ui-foreground-1);box-shadow:inset 1px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([scale=l][highlighted]:first-child) :not(.calcite--rtl) .day-wrapper,:host([scale=l][range-hover]:first-child) :not(.calcite--rtl) .day-wrapper,:host([scale=l][highlighted]:last-child) .calcite--rtl .day-wrapper,:host([scale=l][range-hover]:last-child) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset 6px 0px 0px 0px var(--calcite-ui-foreground-1);box-shadow:inset 6px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([scale=l][highlighted]:last-child) :not(.calcite--rtl) .day-wrapper,:host([scale=l][range-hover]:last-child) :not(.calcite--rtl) .day-wrapper,:host([scale=l][highlighted]:first-child) .calcite--rtl .day-wrapper,:host([scale=l][range-hover]:first-child) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset -6px 0px 0px 0px var(--calcite-ui-foreground-1);box-shadow:inset -6px 0px 0px 0px var(--calcite-ui-foreground-1)}";var M=e("calcite_date_picker_day",function(){function e(e){var r=this;t(this,e);this.calciteDaySelect=a(this,"calciteDaySelect",7);this.calciteDayHover=a(this,"calciteDayHover",7);this.disabled=false;this.currentMonth=false;this.selected=false;this.highlighted=false;this.range=false;this.startOfRange=false;this.endOfRange=false;this.rangeHover=false;this.active=false;this.onClick=function(){!r.disabled&&r.calciteDaySelect.emit()};this.keyDownHandler=function(e){var t=k(e.key);if(t===" "||t==="Enter"){!r.disabled&&r.calciteDaySelect.emit()}}}e.prototype.mouseoverHandler=function(){this.calciteDayHover.emit({disabled:this.disabled})};e.prototype.render=function(){var e;var t=this;var a=String(this.day).split("").map((function(e){return t.localeData.numerals[e]})).join("");var n=w(this.el);return r(i,{onClick:this.onClick,onKeyDown:this.keyDownHandler,role:"gridcell",tabindex:this.active?0:-1},r("div",{class:(e={"day-v-wrapper":true},e[x.rtl]=n==="rtl",e)},r("div",{class:"day-wrapper"},r("span",{class:"day"},r("span",{class:"text"},a)))))};Object.defineProperty(e.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});return e}());M.style=S;var C="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}.calender{margin-bottom:0.25rem}.week-headers{display:-ms-flexbox;display:flex;border-width:0;border-top-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);padding-top:0;padding-bottom:0;padding-left:0.25rem;padding-right:0.25rem}.week-header{color:var(--calcite-ui-text-3);text-align:center;font-weight:var(--calcite-font-weight-bold);width:14.2857142857%}:host([scale=s]) .week-header{font-size:var(--calcite-font-size--2);line-height:1rem;padding-top:0.5rem;padding-bottom:0.75rem;padding-left:0;padding-right:0}:host([scale=m]) .week-header{font-size:var(--calcite-font-size--2);line-height:1rem;padding-top:0.75rem;padding-bottom:1rem;padding-left:0;padding-right:0}:host([scale=l]) .week-header{font-size:var(--calcite-font-size--1);line-height:1rem;padding-top:1rem;padding-bottom:1.25rem;padding-left:0;padding-right:0}.week-days{outline:2px solid transparent;outline-offset:2px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;padding-top:0;padding-bottom:0;padding-left:6px;padding-right:6px}";var P=e("calcite_date_picker_month",function(){function e(e){var r=this;t(this,e);this.calciteDatePickerSelect=a(this,"calciteDatePickerSelect",7);this.calciteDatePickerHover=a(this,"calciteDatePickerHover",7);this.calciteDatePickerActiveDateChange=a(this,"calciteDatePickerActiveDateChange",7);this.calciteDatePickerMouseOut=a(this,"calciteDatePickerMouseOut",7);this.activeDate=new Date;this.keyDownHandler=function(e){var t=r.el.dir==="rtl";switch(k(e.key)){case"ArrowUp":e.preventDefault();r.addDays(-7);break;case"ArrowRight":e.preventDefault();r.addDays(t?-1:1);break;case"ArrowDown":e.preventDefault();r.addDays(7);break;case"ArrowLeft":e.preventDefault();r.addDays(t?1:-1);break;case"PageUp":e.preventDefault();r.addMonths(-1);break;case"PageDown":e.preventDefault();r.addMonths(1);break;case"Home":e.preventDefault();r.activeDate.setDate(1);r.addDays();break;case"End":e.preventDefault();r.activeDate.setDate(new Date(r.activeDate.getFullYear(),r.activeDate.getMonth()+1,0).getDate());r.addDays();break;case"Enter":case" ":e.preventDefault();break;case"Tab":r.activeFocus=false}};this.disableActiveFocus=function(){r.activeFocus=false};this.dayHover=function(e){var t=e.target;if(e.detail.disabled){r.calciteDatePickerMouseOut.emit()}else{r.calciteDatePickerHover.emit(t.value)}};this.daySelect=function(e){var t=e.target;r.calciteDatePickerSelect.emit(t.value)}}e.prototype.mouseoutHandler=function(){this.calciteDatePickerMouseOut.emit()};e.prototype.render=function(){var e=this;var t=this.activeDate.getMonth();var a=this.activeDate.getFullYear();var n=this.localeData.weekStart%7;var o=this.localeData.days,s=o.abbreviated,c=o.short,l=o.narrow;var d=this.scale==="s"?l||c||s:c||s||l;var h=__spreadArray(__spreadArray([],d.slice(n,7)),d.slice(0,n));var u=this.getCurrentMonthDays(t,a);var f=this.getPrevMonthdays(t,a,n);var g=this.getNextMonthDays(t,a,n);var v=w(this.el);var m=__spreadArray(__spreadArray(__spreadArray([],f.map((function(r){var i=new Date(a,t-1,r);return e.renderDateDay(false,r,v,i)}))),u.map((function(r){var i=new Date(a,t,r);var n=p(i,e.activeDate);return e.renderDateDay(n,r,v,i,true,true)}))),g.map((function(r){var i=new Date(a,t+1,r);return e.renderDateDay(false,r,v,i)})));var D=[];for(var y=0;y<m.length;y+=7){D.push(m.slice(y,y+7))}return r(i,{onFocusOut:this.disableActiveFocus,onKeyDown:this.keyDownHandler},r("div",{class:"calender",role:"grid"},r("div",{class:"week-headers",role:"row"},h.map((function(e){return r("span",{class:"week-header",role:"columnheader"},e)}))),D.map((function(e){return r("div",{class:"week-days",role:"row"},e)}))))};e.prototype.addMonths=function(e){var t=new Date(this.activeDate);t.setMonth(this.activeDate.getMonth()+e);this.calciteDatePickerActiveDateChange.emit(h(t,this.min,this.max));this.activeFocus=true};e.prototype.addDays=function(e){if(e===void 0){e=0}var t=new Date(this.activeDate);t.setDate(this.activeDate.getDate()+e);this.calciteDatePickerActiveDateChange.emit(h(t,this.min,this.max));this.activeFocus=true};e.prototype.getPrevMonthdays=function(e,t,a){var r=new Date(t,e,0);var i=r.getDate();var n=r.getDay();var o=[];if(n-6===a){return o}for(var s=r.getDay();s>=a;s--){o.push(i-s)}return o};e.prototype.getCurrentMonthDays=function(e,t){var a=new Date(t,e+1,0).getDate();var r=[];for(var i=0;i<a;i++){r.push(i+1)}return r};e.prototype.getNextMonthDays=function(e,t,a){var r=new Date(t,e+1,0).getDay();var i=[];if(r===(a+6)%7){return i}for(var n=0;n<(6-(r-a))%7;n++){i.push(n+1)}return i};e.prototype.betweenSelectedRange=function(e){return!!(this.startDate&&this.endDate&&e>this.startDate&&e<this.endDate&&!this.isRangeHover(e))};e.prototype.isSelected=function(e){return!!(p(e,this.selectedDate)||this.startDate&&p(e,this.startDate)||this.endDate&&p(e,this.endDate))};e.prototype.isStartOfRange=function(e){return!!(this.startDate&&!p(this.startDate,this.endDate)&&p(this.startDate,e)&&!this.isEndOfRange(e))};e.prototype.isEndOfRange=function(e){return!!(this.endDate&&!p(this.startDate,this.endDate)&&p(this.endDate,e)||!this.endDate&&this.hoverRange&&p(this.startDate,this.hoverRange.end)&&p(e,this.hoverRange.end))};e.prototype.renderDateDay=function(e,t,a,i,n,o){var s=this;var c;var l=this.isFocusedOnStart();var d=this.isHoverInRange()||!this.endDate&&this.hoverRange&&p((c=this.hoverRange)===null||c===void 0?void 0:c.end,this.startDate);return r("calcite-date-picker-day",{active:e,class:{"hover--inside-range":this.startDate&&d,"hover--outside-range":this.startDate&&!d,"focused--start":l,"focused--end":!l},currentMonth:n,day:t,dir:a,disabled:!g(i,this.min,this.max),endOfRange:this.isEndOfRange(i),highlighted:this.betweenSelectedRange(i),key:i.toDateString(),localeData:this.localeData,onCalciteDayHover:this.dayHover,onCalciteDaySelect:this.daySelect,range:!!this.startDate&&!!this.endDate&&!p(this.startDate,this.endDate),rangeHover:this.isRangeHover(i),ref:function(t){if(o&&e&&s.activeFocus){t===null||t===void 0?void 0:t.focus()}},scale:this.scale,selected:this.isSelected(i),startOfRange:this.isStartOfRange(i),value:i})};e.prototype.isFocusedOnStart=function(){var e;return((e=this.hoverRange)===null||e===void 0?void 0:e.focused)==="start"};e.prototype.isHoverInRange=function(){if(!this.hoverRange){return false}var e=this.hoverRange,t=e.start,a=e.end;return!!(!this.isFocusedOnStart()&&this.startDate&&(!this.endDate||a<this.endDate)||this.isFocusedOnStart()&&this.startDate&&t>this.startDate)};e.prototype.isRangeHover=function(e){if(!this.hoverRange){return false}var t=this.hoverRange,a=t.start,r=t.end;var i=this.isFocusedOnStart();var n=this.isHoverInRange();var o=n&&(!i&&e>this.startDate&&(e<r||p(e,r))||i&&e<this.endDate&&(e>a||p(e,a)));var s=!n&&(!i&&e>=this.endDate&&(e<r||p(e,r))||i&&(e<this.startDate||this.endDate&&p(e,this.startDate))&&(e>a||p(e,a)));return o||s};Object.defineProperty(e.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});return e}());P.style=C;var H="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:block}.header{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding-top:0;padding-bottom:0;padding-left:0.25rem;padding-right:0.25rem}:host([scale=s]) .text{font-size:var(--calcite-font-size--1);line-height:1rem;margin-top:0.5rem;margin-bottom:0.5rem}:host([scale=s]) .chevron{height:2.25rem}:host([scale=m]) .text{font-size:var(--calcite-font-size-0);line-height:1.25rem;margin-top:0.75rem;margin-bottom:0.75rem}:host([scale=m]) .chevron{height:3rem}:host([scale=l]) .text{font-size:var(--calcite-font-size-1);line-height:1.5rem;margin-top:1rem;margin-bottom:1rem}:host([scale=l]) .chevron{height:3.5rem}.chevron{color:var(--calcite-ui-text-3);-ms-flex-positive:0;flex-grow:0;-webkit-box-sizing:content-box;box-sizing:content-box;outline:2px solid transparent;outline-offset:2px;padding-left:0.25rem;padding-right:0.25rem;margin-left:-0.25rem;margin-right:-0.25rem;border-style:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background-color:var(--calcite-ui-foreground-1);cursor:pointer;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;width:14.2857142857%}.chevron:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.chevron:hover,.chevron:focus{color:var(--calcite-ui-text-1);background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1)}.chevron:active{background-color:var(--calcite-ui-foreground-3)}.chevron[aria-disabled=true]{pointer-events:none;opacity:0}.text{-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;line-height:1;margin-top:auto;margin-bottom:auto;text-align:center;width:100%}.text--reverse{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.month,.year,.suffix{color:var(--calcite-ui-text-1);background-color:var(--calcite-ui-foreground-1);font-weight:var(--calcite-font-weight-medium);line-height:1.25;margin-left:0.25rem;margin-right:0.25rem;margin-top:auto;margin-bottom:auto;display:inline-block;font-size:inherit}.year{font-family:inherit;text-align:center;border-style:none;width:3rem;background-color:transparent;position:relative;outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;z-index:2}.year:hover{-webkit-transition-duration:100ms;transition-duration:100ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-property:outline-color;transition-property:outline-color;outline:2px solid var(--calcite-ui-border-2);outline-offset:2px}.year:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.year--suffix{width:4rem;text-align:left}.year-wrap{position:relative}.suffix{position:absolute;width:4rem;white-space:nowrap;text-align:left;top:0;left:0}.suffix__invisible{visibility:hidden}";var E=e("calcite_date_picker_month_header",function(){function e(e){var r=this;t(this,e);this.calciteDatePickerSelect=a(this,"calciteDatePickerSelect",7);this.onYearKey=function(e){var t=e.target.value;switch(k(e.key)){case"ArrowDown":e.preventDefault();r.setYear(t,-1);break;case"ArrowUp":e.preventDefault();r.setYear(t,1);break}};this.yearChanged=function(e){r.setYear(e.target.value)};this.prevMonthClick=function(e){r.handleArrowClick(e,r.prevMonthDate)};this.prevMonthKeydown=function(e){var t=k(e.key);if(t===" "||t==="Enter"){r.prevMonthClick(e)}};this.nextMonthClick=function(e){r.handleArrowClick(e,r.nextMonthDate)};this.nextMonthKeydown=function(e){var t=k(e.key);if(t===" "||t==="Enter"){r.nextMonthClick(e)}};this.handleArrowClick=function(e,t){e===null||e===void 0?void 0:e.preventDefault();e.stopPropagation();r.calciteDatePickerSelect.emit(t)}}e.prototype.connectedCallback=function(){this.setNextPrevMonthDates()};e.prototype.render=function(){var e=w(this.el);return r("div",{class:"header",dir:e},this.renderContent(e))};e.prototype.renderContent=function(e){var t=this;var a;if(!this.activeDate||!this.localeData){return null}var i=this.activeDate.getMonth();var n=this.localeData,s=n.months,c=n.unitOrder;var l=(s.wide||s.narrow||s.abbreviated)[i];var d=v(this.activeDate.getFullYear(),this.localeData);var h=this.scale==="l"?"m":"s";var u=m(c);var f=u.indexOf("y")<u.indexOf("m");var p=(a=this.localeData.year)===null||a===void 0?void 0:a.suffix;return r(o,null,r("a",{"aria-disabled":(this.prevMonthDate.getMonth()===i).toString(),"aria-label":this.intlPrevMonth,class:"chevron",href:"#",onClick:this.prevMonthClick,onKeyDown:this.prevMonthKeydown,role:"button",tabindex:this.prevMonthDate.getMonth()===i?-1:0},r("calcite-icon",{dir:e,"flip-rtl":true,icon:"chevron-left",scale:h})),r("div",{class:{text:true,"text--reverse":f}},r(A,{class:"month",level:this.headingLevel},l),r("span",{class:"year-wrap"},r("input",{class:{year:true,"year--suffix":!!p},inputmode:"numeric",maxlength:"4",minlength:"1",onChange:this.yearChanged,onKeyDown:this.onYearKey,pattern:"\\d*",ref:function(e){return t.yearInput=e},type:"text",value:d}),p&&r("span",{class:"suffix"},r("span",{"aria-hidden":"true",class:"suffix__invisible"},d)," "+p))),r("a",{"aria-disabled":(this.nextMonthDate.getMonth()===i).toString(),"aria-label":this.intlNextMonth,class:"chevron",href:"#",onClick:this.nextMonthClick,onKeyDown:this.nextMonthKeydown,role:"button",tabindex:this.nextMonthDate.getMonth()===i?-1:0},r("calcite-icon",{dir:e,"flip-rtl":true,icon:"chevron-right",scale:h})))};e.prototype.setNextPrevMonthDates=function(){if(!this.activeDate){return}this.nextMonthDate=h(D(this.activeDate),this.min,this.max);this.prevMonthDate=h(y(this.activeDate),this.min,this.max)};e.prototype.setYear=function(e,t){if(t===void 0){t=0}var a=this,r=a.min,i=a.max,n=a.activeDate,o=a.localeData,s=a.yearInput;var c=b(e,o);var l=c.toString().length;var d=isNaN(c)?false:c+t;var u=d&&(!r||r.getFullYear()<=d)&&(!i||i.getFullYear()>=d);if(d&&u&&l===e.length){var f=new Date(n);f.setFullYear(d);var p=h(f,r,i);this.calciteDatePickerSelect.emit(p);s.value=v(p.getFullYear(),o)}else{s.value=v(n.getFullYear(),o)}};Object.defineProperty(e.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{min:["setNextPrevMonthDates"],max:["setNextPrevMonthDates"],activeDate:["setNextPrevMonthDates"]}},enumerable:false,configurable:true});return e}());E.style=H}}}));
@@ -1,5 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- */
5
- import{r as i,c as t,h as a,g as e,H as o}from"./p-2e29554c.js";import{g as c}from"./p-72563742.js";import{d as n,a as r,C as s}from"./p-52cc870b.js";import"./p-8a63221d.js";let l=class{constructor(a){i(this,a),this.calciteAccordionChange=t(this,"calciteAccordionChange",7),this.appearance="default",this.iconPosition="end",this.iconType="chevron",this.scale="m",this.selectionMode="multi",this.items=[],this.sorted=!1,this.sortItems=i=>i.sort(((i,t)=>i.position-t.position)).map((i=>i.item))}componentDidLoad(){this.sorted||(this.items=this.sortItems(this.items),this.sorted=!0)}render(){return a("slot",null)}calciteAccordionItemKeyEvent(i){if(this.el===i.detail.parent){const t=c(i.detail.item.key),a=i.target,e=0===this.itemIndex(a),o=this.itemIndex(a)===this.items.length-1;switch(t){case"ArrowDown":o?this.focusFirstItem():this.focusNextItem(a);break;case"ArrowUp":e?this.focusLastItem():this.focusPrevItem(a);break;case"Home":this.focusFirstItem();break;case"End":this.focusLastItem()}}}registerCalciteAccordionItem(i){const t={item:i.target,parent:i.detail.parent,position:i.detail.position};this.el===t.parent&&this.items.push(t)}updateActiveItemOnChange(i){this.requestedAccordionItem=i.detail.requestedAccordionItem,this.calciteAccordionChange.emit({requestedAccordionItem:this.requestedAccordionItem})}focusFirstItem(){this.focusElement(this.items[0])}focusLastItem(){this.focusElement(this.items[this.items.length-1])}focusNextItem(i){const t=this.itemIndex(i);this.focusElement(this.items[t+1]||this.items[0])}focusPrevItem(i){const t=this.itemIndex(i);this.focusElement(this.items[t-1]||this.items[this.items.length-1])}itemIndex(i){return this.items.indexOf(i)}focusElement(i){i.focus()}get el(){return e(this)}};l.style="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host([scale=s]){--calcite-accordion-item-spacing-unit:0.25rem;--calcite-accordion-icon-margin:0.5rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]){--calcite-accordion-item-spacing-unit:0.5rem;--calcite-accordion-icon-margin:0.75rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){--calcite-accordion-item-spacing-unit:0.75rem;--calcite-accordion-icon-margin:1rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host{display:block;position:relative;max-width:100%;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-2);border-bottom-width:0;line-height:1.5rem;--calcite-accordion-item-border:var(--calcite-ui-border-2);--calcite-accordion-item-background:var(--calcite-ui-foreground-1)}:host([appearance=minimal]){--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0;border-color:transparent}:host([appearance=transparent]){border-color:transparent;--calcite-accordion-item-border:transparent;--calcite-accordion-item-background:transparent}";let m=class{constructor(a){i(this,a),this.calciteAccordionItemKeyEvent=t(this,"calciteAccordionItemKeyEvent",7),this.calciteAccordionItemSelect=t(this,"calciteAccordionItemSelect",7),this.calciteAccordionItemClose=t(this,"calciteAccordionItemClose",7),this.calciteAccordionItemRegister=t(this,"calciteAccordionItemRegister",7),this.active=!1,this.iconPosition="end",this.itemHeaderClickHandler=()=>this.emitRequestedItem()}connectedCallback(){this.parent=this.el.parentElement,this.selectionMode=n(this.el,"selection-mode","multi"),this.iconType=n(this.el,"icon-type","chevron"),this.iconPosition=n(this.el,"icon-position",this.iconPosition)}componentDidLoad(){this.itemPosition=this.getItemPosition(),this.calciteAccordionItemRegister.emit({parent:this.parent,position:this.itemPosition})}render(){const i=r(this.el),t=a("calcite-icon",{class:"accordion-item-icon",icon:this.icon,scale:"s"});return a(o,{"aria-expanded":this.active.toString(),tabindex:"0"},a("div",{class:{[`icon-position--${this.iconPosition}`]:!0,[`icon-type--${this.iconType}`]:!0}},a("div",{class:{"accordion-item-header":!0,[s.rtl]:"rtl"===i},onClick:this.itemHeaderClickHandler},this.icon?t:null,a("div",{class:"accordion-item-header-text"},a("span",{class:"accordion-item-title"},this.itemTitle),this.itemSubtitle?a("span",{class:"accordion-item-subtitle"},this.itemSubtitle):null),a("calcite-icon",{class:"accordion-item-expand-icon",icon:"chevron"===this.iconType?"chevronDown":"caret"===this.iconType?"caretDown":this.active?"minus":"plus",scale:"s"})),a("div",{class:"accordion-item-content"},a("slot",null))))}keyDownHandler(i){if(i.target===this.el)switch(c(i.key)){case" ":case"Enter":this.emitRequestedItem(),i.preventDefault();break;case"ArrowUp":case"ArrowDown":case"Home":case"End":this.calciteAccordionItemKeyEvent.emit({parent:this.parent,item:i}),i.preventDefault()}}updateActiveItemOnChange(i){this.requestedAccordionItem=i.detail.requestedAccordionItem,this.el.parentNode===this.requestedAccordionItem.parentNode&&this.determineActiveItem()}determineActiveItem(){switch(this.selectionMode){case"multi":this.el===this.requestedAccordionItem&&(this.active=!this.active);break;case"single":this.active=this.el===this.requestedAccordionItem&&!this.active;break;case"single-persist":this.active=this.el===this.requestedAccordionItem}}emitRequestedItem(){this.calciteAccordionItemSelect.emit({requestedAccordionItem:this.el})}getItemPosition(){return Array.prototype.indexOf.call(this.parent.querySelectorAll("calcite-accordion-item"),this.el)}get el(){return e(this)}};m.style="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}.icon-position--end,.icon-position--start{--calcite-accordion-item-icon-rotation:-90deg;--calcite-accordion-item-active-icon-rotation:0;--calcite-accordion-item-icon-rotation-rtl:90deg;--calcite-accordion-item-active-icon-rotation-rtl:0}.icon-position--start{--calcite-accordion-item-flex-direction:row-reverse;--calcite-accordion-item-icon-spacing-start:0;--calcite-accordion-item-icon-spacing-end:var(--calcite-accordion-icon-margin)}.icon-position--end{--calcite-accordion-item-flex-direction:row;--calcite-accordion-item-icon-spacing-start:var(--calcite-accordion-icon-margin);--calcite-accordion-item-icon-spacing-end:0}.icon-position--end:not(.icon-type--plus-minus){--calcite-accordion-item-icon-rotation:0;--calcite-accordion-item-active-icon-rotation:180deg;--calcite-accordion-item-icon-rotation-rtl:0;--calcite-accordion-item-active-icon-rotation-rtl:-180deg}:host{--calcite-accordion-item-background:var(--calcite-ui-foreground-1)}:host-context([appearance=minimal]){--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0}:host-context([appearance=transparent]){--calcite-accordion-item-border:transparent;--calcite-accordion-item-background:transparent}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;text-decoration:none;outline:2px solid transparent;outline-offset:2px;position:relative;color:var(--calcite-ui-text-3);background-color:var(--calcite-accordion-item-background);--calcite-accordion-item-border:var(--calcite-ui-border-2)}:host .accordion-item-header{outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}:host(:focus) .accordion-item-header{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}:host([active]){color:var(--calcite-ui-text-1)}:host([active]) .accordion-item-content{display:block;color:var(--calcite-ui-text-1)}:host([active]) .accordion-item-header{border-bottom-color:transparent}:host .accordion-item-header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;cursor:pointer;-ms-flex-direction:var(--calcite-accordion-item-flex-direction);flex-direction:var(--calcite-accordion-item-flex-direction)}:host .accordion-item-icon{display:-ms-inline-flexbox;display:inline-flex;position:relative;margin:0;color:var(--calcite-ui-text-3);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);margin-right:var(--calcite-accordion-item-icon-spacing-start);margin-left:var(--calcite-accordion-item-icon-spacing-end)}.calcite--rtl .accordion-item-icon{margin-left:var(--calcite-accordion-item-icon-spacing-start);margin-right:var(--calcite-accordion-item-icon-spacing-end)}:host .accordion-item-content,:host .accordion-item-header{padding:var(--calcite-accordion-item-padding);border-bottom:1px solid var(--calcite-accordion-item-border)}:host .accordion-item-header *{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host .accordion-item-content{display:none;color:var(--calcite-ui-text-3);padding-top:0;text-align:initial}:host .accordion-item-expand-icon{color:var(--calcite-ui-text-3);margin-left:var(--calcite-accordion-item-icon-spacing-start);margin-right:var(--calcite-accordion-item-icon-spacing-end);-webkit-transform:rotate(var(--calcite-accordion-item-icon-rotation));transform:rotate(var(--calcite-accordion-item-icon-rotation))}.calcite--rtl .accordion-item-expand-icon{margin-left:var(--calcite-accordion-item-icon-spacing-end);margin-right:var(--calcite-accordion-item-icon-spacing-start);-webkit-transform:rotate(var(--calcite-accordion-item-icon-rotation-rtl));transform:rotate(var(--calcite-accordion-item-icon-rotation-rtl))}:host([active]) .accordion-item-expand-icon{color:var(--calcite-ui-text-1);-webkit-transform:rotate(var(--calcite-accordion-item-active-icon-rotation));transform:rotate(var(--calcite-accordion-item-active-icon-rotation))}:host([active]) .calcite--rtl .accordion-item-expand-icon{-webkit-transform:rotate(var(--calcite-accordion-item-active-icon-rotation-rtl));transform:rotate(var(--calcite-accordion-item-active-icon-rotation-rtl))}:host .accordion-item-header-text{-ms-flex-direction:column;flex-direction:column;-ms-flex-positive:1;flex-grow:1;margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;margin-right:auto;text-align:initial}.calcite--rtl .accordion-item-header-text{margin-right:0;margin-left:auto}:host .accordion-item-title,:host .accordion-item-subtitle{display:-ms-flexbox;display:flex;width:100%}:host .accordion-item-title{color:var(--calcite-ui-text-2);font-weight:var(--calcite-font-weight-medium)}:host .accordion-item-subtitle{color:var(--calcite-ui-text-3);margin-top:0.25rem}.calcite--rtl .accordion-item-title{margin-right:0;margin-left:auto}:host(:focus) .accordion-item-title,:host(:hover) .accordion-item-title{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-icon,:host(:hover) .accordion-item-icon{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-expand-icon,:host(:hover) .accordion-item-expand-icon{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-subtitle,:host(:hover) .accordion-item-subtitle{color:var(--calcite-ui-text-2)}:host(:focus) .accordion-item-title,:host(:active) .accordion-item-title,:host([active]) .accordion-item-title{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-icon,:host(:active) .accordion-item-icon,:host([active]) .accordion-item-icon{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-expand-icon,:host(:active) .accordion-item-expand-icon,:host([active]) .accordion-item-expand-icon{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-subtitle,:host(:active) .accordion-item-subtitle,:host([active]) .accordion-item-subtitle{color:var(--calcite-ui-text-2)}";export{l as calcite_accordion,m as calcite_accordion_item}
@@ -1,5 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,n,i){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function r(e){try{s(i.next(e))}catch(e){a(e)}}function l(e){try{s(i["throw"](e))}catch(e){a(e)}}function s(e){e.done?n(e.value):o(e.value).then(r,l)}s((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,o,a,r;return r={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function l(e){return function(t){return s([e,t])}}function s(r){if(i)throw new TypeError("Generator is already executing.");while(n)try{if(i=1,o&&(a=r[0]&2?o["return"]:r[0]?o["throw"]||((a=o["return"])&&a.call(o),0):o.next)&&!(a=a.call(o,r[1])).done)return a;if(o=0,a)r=[r[0]&2,a.value];switch(r[0]){case 0:case 1:a=r;break;case 4:n.label++;return{value:r[1],done:false};case 5:n.label++;o=r[1];r=[0];continue;case 7:r=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(r[0]===6||r[0]===2)){n=0;continue}if(r[0]===3&&(!a||r[1]>a[0]&&r[1]<a[3])){n.label=r[1];break}if(r[0]===6&&n.label<a[1]){n.label=a[1];a=r;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(r);break}if(a[2])n.ops.pop();n.trys.pop();continue}r=t.call(e,n)}catch(e){r=[6,e];o=0}finally{i=a=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};
2
- /*!
3
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
4
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
5
- */System.register(["./p-288bc438.system.js","./p-a0c02648.system.js","./p-6cc23c39.system.js","./p-4de6f4fd.system.js","./p-e020662f.system.js","./p-db10485b.system.js"],(function(e){"use strict";var t,n,i,o,a,r,l,s,c,u,f,m,p;return{setters:[function(e){t=e.r;n=e.c;i=e.h;o=e.F;a=e.g},function(e){r=e.C;l=e.I;s=e.S},function(e){c=e.g;u=e.f},function(e){f=e.g},function(e){m=e.g},function(e){p=e.c}],execute:function(){var d="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;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:-ms-flexbox;display:flex;outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;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{-ms-flex-item-align:stretch;align-self:stretch;-ms-flex:0 1 auto;flex:0 1 auto;height:100%;position:relative}slot[name=trigger]::slotted(calcite-action),calcite-action::slotted([slot=trigger]){-ms-flex-item-align:stretch;align-self:stretch;-ms-flex:0 1 auto;flex:0 1 auto;height:100%;position:relative}.menu{-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;outline:2px solid transparent;outline-offset:2px}";var h=["ArrowUp","ArrowDown"];var v=["ArrowUp","ArrowDown","End","Home"];var y=e("calcite_action_menu",function(){function e(e){var i=this;t(this,e);this.calciteActionMenuOpenChange=n(this,"calciteActionMenuOpenChange",7);this.expanded=false;this.open=false;this.overlayPositioning="absolute";this.placement="auto";this.actionElements=[];this.mutationObserver=p("mutation",(function(){return i.getActions()}));this.guid="calcite-action-menu-"+m();this.menuId=this.guid+"-menu";this.menuButtonId=this.guid+"-menu-button";this.activeMenuItemIndex=-1;this.connectMenuButtonEl=function(){var e=i,t=e.el,n=e.menuButtonId,o=e.menuId,a=e.open,r=e.label;var l=c(t,s.trigger)||i.defaultMenuButtonEl;if(i.menuButtonEl===l){return}i.disconnectMenuButtonEl();i.menuButtonEl=l;i.setTooltipReferenceElement();if(!l){return}l.active=a;l.setAttribute("aria-controls",o);l.setAttribute("aria-expanded",a.toString());l.setAttribute("aria-haspopup","true");if(!l.id){l.id=n}if(!l.label){l.label=r}if(!l.text){l.text=r}l.addEventListener("click",i.menuButtonClick);l.addEventListener("keydown",i.menuButtonKeyDown);l.addEventListener("keyup",i.menuButtonKeyUp)};this.disconnectMenuButtonEl=function(){var e=i.menuButtonEl;if(!e){return}e.removeEventListener("click",i.menuButtonClick);e.removeEventListener("keydown",i.menuButtonKeyDown);e.removeEventListener("keyup",i.menuButtonKeyUp)};this.setDefaultMenuButtonEl=function(e){i.defaultMenuButtonEl=e;i.connectMenuButtonEl()};this.handleCalciteActionClick=function(){i.open=false;i.setFocus()};this.menuButtonClick=function(){i.toggleOpen()};this.setTooltipReferenceElement=function(){var e=i,t=e.el,n=e.expanded,o=e.menuButtonEl;var a=c(t,s.tooltip);var r=(a===null||a===void 0?void 0:a.tagName)==="SLOT"?a.assignedElements()[0]:a;if((r===null||r===void 0?void 0:r.tagName)==="CALCITE-TOOLTIP"){r.referenceElement=!n?o:null}};this.updateAction=function(e,t){var n=i,o=n.guid,a=n.activeMenuItemIndex;var r=o+"-action-"+t;e.tabIndex=-1;e.setAttribute("role","menuitem");if(!e.id){e.id=r}e.active=t===a};this.updateActions=function(e){e===null||e===void 0?void 0:e.forEach(i.updateAction)};this.getActions=function(){var e=i.el;var t=i.getAssignedElements().filter((function(e){return e.tagName==="CALCITE-ACTION"&&e.slot!=="trigger"}));var n=t.length?t:Array.from(e.querySelectorAll("calcite-action:not([slot=trigger])"));i.updateActions(n);i.actionElements=n;i.connectMenuButtonEl()};this.menuButtonKeyUp=function(e){var t=e.key;var n=i.actionElements;if(!i.isValidKey(t,h)){return}e.preventDefault();if(!n.length){return}i.toggleOpen(true);i.handleActionNavigation(t,n)};this.menuButtonKeyDown=function(e){var t=e.key;if(!i.isValidKey(t,h)){return}e.preventDefault()};this.menuActionsContainerKeyDown=function(e){var t=e.key;var n=i,o=n.actionElements,a=n.activeMenuItemIndex;if(t==="Tab"){i.open=false;return}if(t===" "||t==="Enter"){e.preventDefault();var r=o[a];r?r.click():i.toggleOpen(false);return}if(i.isValidKey(t,v)){e.preventDefault()}};this.menuActionsContainerKeyUp=function(e){var t=e.key;var n=i.actionElements;if(t==="Escape"){i.toggleOpen(false);return}if(!i.isValidKey(t,v)){return}e.preventDefault();if(!n.length){return}i.handleActionNavigation(t,n)};this.handleActionNavigation=function(e,t){var n=i.activeMenuItemIndex;if(e==="Home"){i.activeMenuItemIndex=0}if(e==="End"){i.activeMenuItemIndex=t.length-1}if(e==="ArrowUp"){i.activeMenuItemIndex=f(Math.max(n-1,-1),t.length)}if(e==="ArrowDown"){i.activeMenuItemIndex=f(n+1,t.length)}};this.toggleOpenEnd=function(){i.setFocus();i.el.removeEventListener("calcitePopoverOpen",i.toggleOpenEnd)};this.toggleOpen=function(e){if(e===void 0){e=!i.open}i.el.addEventListener("calcitePopoverOpen",i.toggleOpenEnd);i.open=e}}e.prototype.connectedCallback=function(){var e;(e=this.mutationObserver)===null||e===void 0?void 0:e.observe(this.el,{childList:true,subtree:true});this.getActions()};e.prototype.disconnectedCallback=function(){var e;(e=this.mutationObserver)===null||e===void 0?void 0:e.disconnect();this.disconnectMenuButtonEl()};e.prototype.expandedHandler=function(){this.open=false;this.setTooltipReferenceElement()};e.prototype.openHandler=function(e){this.activeMenuItemIndex=this.open?0:-1;if(this.menuButtonEl){this.menuButtonEl.active=e}this.calciteActionMenuOpenChange.emit(e)};e.prototype.closeCalciteActionMenuOnClick=function(e){var t=e.composedPath();if(t.includes(this.el)){return}this.open=false};e.prototype.activeMenuItemIndexHandler=function(){this.updateActions(this.actionElements)};e.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){u(this.open?this.menuEl:this.menuButtonEl);return[2]}))}))};e.prototype.renderMenuButton=function(){var e=this,t=e.el,n=e.label,o=e.scale;var a=i("slot",{name:s.trigger},i("calcite-action",{class:r.defaultTrigger,icon:l.menu,ref:this.setDefaultMenuButtonEl,scale:o,text:n}));return c(t,s.tooltip)?i("calcite-tooltip-manager",null,a):a};e.prototype.renderMenuItems=function(){var e=this;var t=this,n=t.actionElements,o=t.activeMenuItemIndex,a=t.open,l=t.menuId,s=t.menuButtonEl,c=t.label,u=t.placement,f=t.overlayPositioning;var m=n[o];var p=(m===null||m===void 0?void 0:m.id)||null;return i("calcite-popover",{disablePointer:true,label:c,offsetDistance:0,open:a,overlayPositioning:f,placement:u,referenceElement:s},i("div",{"aria-activedescendant":p,"aria-labelledby":s===null||s===void 0?void 0:s.id,class:r.menu,id:l,onClick:this.handleCalciteActionClick,onKeyDown:this.menuActionsContainerKeyDown,onKeyUp:this.menuActionsContainerKeyUp,ref:function(t){return e.menuEl=t},role:"menu",tabIndex:-1},i("slot",null)))};e.prototype.render=function(){return i(o,null,this.renderMenuButton(),this.renderMenuItems(),i("slot",{name:s.tooltip}))};e.prototype.getAssignedElements=function(){return Array.from(this.el.querySelectorAll("slot")).map((function(e){return e.assignedElements({flatten:true})})).reduce((function(e,t){return e.concat(t)}),[])};e.prototype.isValidKey=function(e,t){return!!t.find((function(t){return t===e}))};Object.defineProperty(e.prototype,"el",{get:function(){return a(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{expanded:["expandedHandler"],open:["openHandler"],activeMenuItemIndex:["activeMenuItemIndexHandler"]}},enumerable:false,configurable:true});return e}());y.style=d}}}));
@@ -1,5 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- */
5
- import{r as t,c as e,h as i,H as a,g as s}from"./p-2e29554c.js";import{s as o,a as l,C as r}from"./p-52cc870b.js";import{S as n}from"./p-1fb7138b.js";import"./p-8a63221d.js";const c={slow:14e3,medium:1e4,fast:6e3};let m=class{constructor(i){t(this,i),this.calciteAlertClose=e(this,"calciteAlertClose",7),this.calciteAlertOpen=e(this,"calciteAlertOpen",7),this.calciteAlertSync=e(this,"calciteAlertSync",7),this.calciteAlertRegister=e(this,"calciteAlertRegister",7),this.active=!1,this.autoDismiss=!1,this.autoDismissDuration=this.autoDismiss?"medium":null,this.color="blue",this.intlClose="Close",this.scale="m",this.queue=[],this.queueLength=0,this.queued=!1,this.closeAlert=()=>{this.queued=!1,this.active=!1,this.queue=this.queue.filter((t=>t!==this.el)),this.determineActiveAlert(),this.calciteAlertSync.emit({queue:this.queue}),this.calciteAlertClose.emit({el:this.el,queue:this.queue})}}watchActive(){this.active&&!this.queued&&this.calciteAlertRegister.emit(),this.active||(this.queue=this.queue.filter((t=>t!==this.el)),this.calciteAlertSync.emit({queue:this.queue}))}updateRequestedIcon(){this.requestedIcon=o(n,this.icon,this.color)}connectedCallback(){this.active&&!this.queued&&this.calciteAlertRegister.emit()}componentWillLoad(){this.requestedIcon=o(n,this.icon,this.color)}componentDidLoad(){this.alertLinkEl=this.el.querySelectorAll("calcite-link")[0]}render(){const t=l(this.el),e=i("button",{"aria-label":this.intlClose,class:"alert-close",onClick:this.closeAlert,ref:t=>this.closeButton=t,type:"button"},i("calcite-icon",{icon:"x",scale:"l"===this.scale?"m":"s"})),s="+"+(this.queueLength>2?this.queueLength-1:1),o=i("div",{class:(this.queueLength>1?"active ":"")+"alert-queue-count"},i("calcite-chip",{scale:this.scale,value:s},s)),{active:n,autoDismiss:c,label:m,queued:d,requestedIcon:h}=this,u=i("div",{class:"alert-dismiss-progress"}),p=c?"alert":"alertdialog",g=!n;return i(a,{"aria-hidden":g.toString(),"aria-label":m,"calcite-hydrated-hidden":g,role:p},i("div",{class:{container:!0,queued:d,[r.rtl]:"rtl"===t}},h?i("div",{class:"alert-icon"},i("calcite-icon",{icon:h,scale:"l"===this.scale?"m":"s"})):null,i("div",{class:"alert-content"},i("slot",{name:"title"}),i("slot",{name:"message"}),i("slot",{name:"link"})),o,c?null:e,n&&!d&&c?u:null))}alertSync(t){this.queue!==t.detail.queue&&(this.queue=t.detail.queue),this.queueLength=this.queue.length,this.determineActiveAlert()}alertRegister(){this.active&&!this.queue.includes(this.el)&&(this.queued=!0,this.queue.push(this.el)),this.calciteAlertSync.emit({queue:this.queue}),this.determineActiveAlert()}async setFocus(){(this.closeButton||this.alertLinkEl)&&(this.alertLinkEl?this.alertLinkEl.setFocus():this.closeButton&&this.closeButton.focus())}determineActiveAlert(){var t;(null===(t=this.queue)||void 0===t?void 0:t[0])===this.el&&(this.openAlert(),clearTimeout(this.autoDismissTimeout),this.autoDismiss&&(this.autoDismissTimeout=window.setTimeout((()=>this.closeAlert()),c[this.autoDismissDuration])))}openAlert(){clearTimeout(this.queueTimeout),this.queueTimeout=window.setTimeout((()=>this.queued=!1),300),this.calciteAlertOpen.emit({el:this.el,queue:this.queue})}get el(){return s(this)}static get watchers(){return{active:["watchActive"],icon:["updateRequestedIcon"],color:["updateRequestedIcon"]}}};m.style='@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host([scale=s]){--calcite-alert-width:40em;--calcite-alert-spacing-token-small:0.5rem;--calcite-alert-spacing-token-large:0.75rem}:host([scale=s]) slot[name=title]::slotted(*),:host([scale=s]) *::slotted([slot=title]){font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=s]) slot[name=message]::slotted(*),:host([scale=s]) *::slotted([slot=message]){font-size:var(--calcite-font-size--2);line-height:1.375}:host([scale=s]) slot[name=link]::slotted(*),:host([scale=s]) *::slotted([slot=link]){font-size:var(--calcite-font-size--2);line-height:1.375}:host([scale=s]) .alert-queue-count{margin-left:0.5rem;margin-right:0.5rem}:host([scale=s]) .container{--calcite-alert-min-height:3.5rem}:host([scale=s]) .alert-close{padding:0.5rem}:host([scale=m]){--calcite-alert-width:50em;--calcite-alert-spacing-token-small:0.75rem;--calcite-alert-spacing-token-large:1rem}:host([scale=m]) slot[name=title]::slotted(*),:host([scale=m]) *::slotted([slot=title]){font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=m]) slot[name=message]::slotted(*),:host([scale=m]) *::slotted([slot=message]){font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) slot[name=link]::slotted(*),:host([scale=m]) *::slotted([slot=link]){font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) .alert-queue-count{margin-left:0.75rem;margin-right:0.75rem}:host([scale=m]) .container{--calcite-alert-min-height:4.1875rem}:host([scale=l]){--calcite-alert-width:60em;--calcite-alert-spacing-token-small:1rem;--calcite-alert-spacing-token-large:1.25rem}:host([scale=l]) slot[name=title]::slotted(*),:host([scale=l]) *::slotted([slot=title]){font-size:var(--calcite-font-size-1);line-height:1.375;margin-bottom:0.25rem}:host([scale=l]) slot[name=message]::slotted(*),:host([scale=l]) *::slotted([slot=message]){font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) slot[name=link]::slotted(*),:host([scale=l]) *::slotted([slot=link]){font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) .alert-queue-count{margin-left:1rem;margin-right:1rem}:host([scale=l]) .container{--calcite-alert-min-height:5.625rem}:host{display:block}:host .container{-webkit-box-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);box-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);display:-ms-flexbox;display:flex;position:fixed;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;pointer-events:none;margin-top:0;margin-bottom:0;margin-left:auto;margin-right:auto;background-color:var(--calcite-ui-foreground-1);opacity:0;left:0;right:0;bottom:0;border-radius:var(--calcite-border-radius);border-top:0px solid transparent;border-left:1px solid var(--calcite-ui-border-3);border-right:1px solid var(--calcite-ui-border-3);border-bottom:1px solid var(--calcite-ui-border-3);min-height:var(--calcite-alert-min-height);width:var(--calcite-alert-width);max-width:90%;max-height:0;z-index:101;-webkit-transform:translate3d(0, 1.5rem, 0);transform:translate3d(0, 1.5rem, 0);-webkit-transition:300ms cubic-bezier(0.215, 0.44, 0.42, 0.88), opacity 300ms cubic-bezier(0.215, 0.44, 0.42, 0.88), all 0.15s ease-in-out;transition:300ms cubic-bezier(0.215, 0.44, 0.42, 0.88), opacity 300ms cubic-bezier(0.215, 0.44, 0.42, 0.88), all 0.15s ease-in-out}.container{display:-ms-flexbox;display:flex;width:100%;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.alert-close{outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}.alert-close:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}:host([active]) .container:not(.queued){opacity:1;max-height:100%;border-top-width:2px;-webkit-transform:translate3d(0, -1.5rem, 0);transform:translate3d(0, -1.5rem, 0);pointer-events:initial}slot[name=title]::slotted(*),*::slotted([slot=title]){font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-0);line-height:1.375;color:var(--calcite-ui-text-1)}slot[name=message]::slotted(*),*::slotted([slot=message]){display:inline;margin:0;margin-right:0.5rem;font-weight:var(--calcite-font-weight-normal);font-size:var(--calcite-font-size--1);line-height:1.375;color:var(--calcite-ui-text-2)}slot[name=link]::slotted(*),*::slotted([slot=link]){color:var(--calcite-ui-text-link);display:-ms-inline-flexbox;display:inline-flex}.calcite--rtl slot[name=message]::slotted(*),.calcite--rtl *::slotted([slot=message]){margin-left:0.5rem;margin-right:unset}.alert-content{padding:var(--calcite-alert-spacing-token-small) var(--calcite-alert-spacing-token-large);-ms-flex:0 0 auto;flex:0 0 auto;-webkit-transition:all 0.15s ease-in-out;transition:all 0.15s ease-in-out;word-wrap:break-word;overflow-wrap:break-word;background-color:var(--calcite-ui-foreground-1);-ms-flex:1 1 auto;flex:1 1 auto;min-width:0;padding:var(--calcite-alert-spacing-token-small) var(--calcite-alert-spacing-token-small) var(--calcite-alert-spacing-token-small) 0;border-bottom-left-radius:var(--calcite-border-radius);border-bottom-right-radius:var(--calcite-border-radius)}.alert-content:first-of-type:not(:only-child){padding-left:var(--calcite-alert-spacing-token-large)}.alert-content:only-child{padding:var(--calcite-alert-spacing-token-small)}.calcite--rtl .alert-content{padding:var(--calcite-alert-spacing-token-small) 0 var(--calcite-alert-spacing-token-small) var(--calcite-alert-spacing-token-small)}.calcite--rtl .alert-content:first-of-type:not(:only-child){padding-right:var(--calcite-alert-spacing-token-large)}.alert-icon{padding:var(--calcite-alert-spacing-token-small) var(--calcite-alert-spacing-token-large);-ms-flex:0 0 auto;flex:0 0 auto;-webkit-transition:all 0.15s ease-in-out;transition:all 0.15s ease-in-out;padding-top:0;padding-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-item-align:stretch;align-self:stretch;-ms-flex-align:center;align-items:center;background-color:var(--calcite-ui-foreground-1)}.alert-close{padding:var(--calcite-alert-spacing-token-small) var(--calcite-alert-spacing-token-large);-ms-flex:0 0 auto;flex:0 0 auto;-webkit-transition:all 0.15s ease-in-out;transition:all 0.15s ease-in-out;padding-top:0;padding-bottom:0;-ms-flex-item-align:stretch;align-self:stretch;background-color:var(--calcite-ui-foreground-1);border-style:none;outline:2px solid transparent;outline-offset:2px;cursor:pointer;color:var(--calcite-ui-text-3);overflow:hidden;border-bottom-right-radius:var(--calcite-border-radius)}.alert-close:hover,.alert-close:focus{color:var(--calcite-ui-text-1);background-color:var(--calcite-ui-foreground-2)}.alert-close:active{background-color:var(--calcite-ui-foreground-3)}.calcite--rtl .alert-close{border-bottom-left-radius:var(--calcite-border-radius);border-bottom-right-radius:unset}.alert-queue-count{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:distribute;justify-content:space-around;-ms-flex-item-align:stretch;align-self:stretch;overflow:hidden;visibility:hidden;font-weight:var(--calcite-font-weight-medium);text-align:center;color:var(--calcite-ui-text-2);background-color:var(--calcite-ui-foreground-1);opacity:0;cursor:default;border-left:0px solid transparent;border-right:0px solid transparent;border-top-right-radius:0;-webkit-transition:all 0.15s ease-in-out;transition:all 0.15s ease-in-out}.alert-queue-count.active{visibility:visible;opacity:1}:host([auto-dismiss])>.alert-queue-count{border-right:0px solid transparent}:host([auto-dismiss]) .calcite--rtl>.alert-queue-count{border-left:0px solid transparent}.alert-dismiss-progress{display:block;position:absolute;left:0;right:0;width:100%;overflow:hidden;top:-2px;height:2px;z-index:103;border-radius:var(--calcite-border-radius) var(--calcite-border-radius) 0 0}.alert-dismiss-progress:after{top:0;right:0;display:block;position:absolute;height:2px;content:"";background-color:var(--calcite-alert-dismiss-progress-background);z-index:104}.calcite--rtl .alert-dismiss-progress:after{left:0;right:initial}:host([color=blue]) .container{border-top-color:var(--calcite-ui-info)}:host([color=blue]) .container .alert-icon{color:var(--calcite-ui-info)}:host([color=red]) .container{border-top-color:var(--calcite-ui-danger)}:host([color=red]) .container .alert-icon{color:var(--calcite-ui-danger)}:host([color=yellow]) .container{border-top-color:var(--calcite-ui-warning)}:host([color=yellow]) .container .alert-icon{color:var(--calcite-ui-warning)}:host([color=green]) .container{border-top-color:var(--calcite-ui-success)}:host([color=green]) .container .alert-icon{color:var(--calcite-ui-success)}:host([auto-dismiss-duration=fast]) .alert-dismiss-progress:after{-webkit-animation:dismissProgress 6000ms ease-out;animation:dismissProgress 6000ms ease-out}:host([auto-dismiss-duration=medium]) .alert-dismiss-progress:after{-webkit-animation:dismissProgress 10000ms ease-out;animation:dismissProgress 10000ms ease-out}:host([auto-dismiss-duration=slow]) .alert-dismiss-progress:after{-webkit-animation:dismissProgress 14000ms ease-out;animation:dismissProgress 14000ms ease-out}@-webkit-keyframes dismissProgress{0%{width:0;opacity:0.75}100%{width:100%;opacity:1}}@keyframes dismissProgress{0%{width:0;opacity:0.75}100%{width:100%;opacity:1}}';export{m as calcite_alert}