@esri/calcite-components 1.0.0-next.282 → 1.0.0-next.283

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 (845) hide show
  1. package/CHANGELOG.md +56 -6
  2. package/dist/calcite/assets/calcite-icon/beacon16.json +1 -0
  3. package/dist/calcite/assets/calcite-icon/beacon24.json +1 -0
  4. package/dist/calcite/assets/calcite-icon/beacon32.json +1 -0
  5. package/dist/calcite/assets/calcite-icon/dataMagnifyingGlass16.json +1 -0
  6. package/dist/calcite/assets/calcite-icon/dataMagnifyingGlass24.json +1 -0
  7. package/dist/calcite/assets/calcite-icon/dataMagnifyingGlass32.json +1 -0
  8. package/dist/calcite/assets/calcite-icon/diamond16.json +1 -0
  9. package/dist/calcite/assets/calcite-icon/diamond24.json +1 -0
  10. package/dist/calcite/assets/calcite-icon/diamond32.json +1 -0
  11. package/dist/calcite/assets/calcite-icon/drivingDistance16.json +1 -0
  12. package/dist/calcite/assets/calcite-icon/drivingDistance24.json +1 -0
  13. package/dist/calcite/assets/calcite-icon/drivingDistance32.json +1 -0
  14. package/dist/calcite/assets/calcite-icon/drivingTime16.json +1 -0
  15. package/dist/calcite/assets/calcite-icon/drivingTime24.json +1 -0
  16. package/dist/calcite/assets/calcite-icon/drivingTime32.json +1 -0
  17. package/dist/calcite/assets/calcite-icon/featureDisplayOrder16.json +1 -0
  18. package/dist/calcite/assets/calcite-icon/featureDisplayOrder24.json +1 -0
  19. package/dist/calcite/assets/calcite-icon/featureDisplayOrder32.json +1 -0
  20. package/dist/calcite/assets/calcite-icon/fileMagnifyingGlass16.json +1 -1
  21. package/dist/calcite/assets/calcite-icon/fileMagnifyingGlass24.json +1 -1
  22. package/dist/calcite/assets/calcite-icon/fileMagnifyingGlass32.json +1 -1
  23. package/dist/calcite/assets/calcite-icon/fingerprint16.json +1 -0
  24. package/dist/calcite/assets/calcite-icon/fingerprint24.json +1 -0
  25. package/dist/calcite/assets/calcite-icon/fingerprint32.json +1 -0
  26. package/dist/calcite/assets/calcite-icon/hideEmpty24.json +1 -1
  27. package/dist/calcite/assets/calcite-icon/hideEmpty32.json +1 -1
  28. package/dist/calcite/assets/calcite-icon/lassoSelect16.json +1 -0
  29. package/dist/calcite/assets/calcite-icon/lassoSelect24.json +1 -0
  30. package/dist/calcite/assets/calcite-icon/lassoSelect32.json +1 -0
  31. package/dist/calcite/assets/calcite-icon/mobileVibrate16.json +1 -0
  32. package/dist/calcite/assets/calcite-icon/mobileVibrate24.json +1 -0
  33. package/dist/calcite/assets/calcite-icon/mobileVibrate32.json +1 -0
  34. package/dist/calcite/assets/calcite-icon/orientedImageryWidget16.json +1 -0
  35. package/dist/calcite/assets/calcite-icon/orientedImageryWidget24.json +1 -0
  36. package/dist/calcite/assets/calcite-icon/orientedImageryWidget32.json +1 -0
  37. package/dist/calcite/assets/calcite-icon/package16.json +1 -0
  38. package/dist/calcite/assets/calcite-icon/package24.json +1 -0
  39. package/dist/calcite/assets/calcite-icon/package32.json +1 -0
  40. package/dist/calcite/assets/calcite-icon/processingTemplates16.json +1 -0
  41. package/dist/calcite/assets/calcite-icon/processingTemplates24.json +1 -0
  42. package/dist/calcite/assets/calcite-icon/processingTemplates32.json +1 -0
  43. package/dist/calcite/assets/calcite-icon/ruralDrivingDistance16.json +1 -0
  44. package/dist/calcite/assets/calcite-icon/ruralDrivingDistance24.json +1 -0
  45. package/dist/calcite/assets/calcite-icon/ruralDrivingDistance32.json +1 -0
  46. package/dist/calcite/assets/calcite-icon/ruralDrivingTime16.json +1 -0
  47. package/dist/calcite/assets/calcite-icon/ruralDrivingTime24.json +1 -0
  48. package/dist/calcite/assets/calcite-icon/ruralDrivingTime32.json +1 -0
  49. package/dist/calcite/assets/calcite-icon/search16.json +1 -1
  50. package/dist/calcite/assets/calcite-icon/search24.json +1 -1
  51. package/dist/calcite/assets/calcite-icon/search32.json +1 -1
  52. package/dist/calcite/assets/calcite-icon/sensor16.json +1 -0
  53. package/dist/calcite/assets/calcite-icon/sensor21.json +1 -0
  54. package/dist/calcite/assets/calcite-icon/sensor24.json +1 -0
  55. package/dist/calcite/assets/calcite-icon/sensor32.json +1 -0
  56. package/dist/calcite/assets/calcite-icon/sensor48.json +1 -0
  57. package/dist/calcite/assets/calcite-icon/sensor64.json +1 -0
  58. package/dist/calcite/assets/calcite-icon/showColumn16.json +1 -0
  59. package/dist/calcite/assets/calcite-icon/showColumn24.json +1 -0
  60. package/dist/calcite/assets/calcite-icon/showColumn32.json +1 -0
  61. package/dist/calcite/assets/calcite-icon/speechBubbleCheck16.json +1 -0
  62. package/dist/calcite/assets/calcite-icon/speechBubbleCheck24.json +1 -0
  63. package/dist/calcite/assets/calcite-icon/speechBubbleCheck32.json +1 -0
  64. package/dist/calcite/assets/calcite-icon/thumbsDown16.json +1 -0
  65. package/dist/calcite/assets/calcite-icon/thumbsDown24.json +1 -0
  66. package/dist/calcite/assets/calcite-icon/thumbsDown32.json +1 -0
  67. package/dist/calcite/assets/calcite-icon/truckingDistance16.json +1 -0
  68. package/dist/calcite/assets/calcite-icon/truckingDistance24.json +1 -0
  69. package/dist/calcite/assets/calcite-icon/truckingDistance32.json +1 -0
  70. package/dist/calcite/assets/calcite-icon/truckingTime16.json +1 -0
  71. package/dist/calcite/assets/calcite-icon/truckingTime24.json +1 -0
  72. package/dist/calcite/assets/calcite-icon/truckingTime32.json +1 -0
  73. package/dist/calcite/assets/calcite-icon/walkingDistance16.json +1 -0
  74. package/dist/calcite/assets/calcite-icon/walkingDistance24.json +1 -0
  75. package/dist/calcite/assets/calcite-icon/walkingDistance32.json +1 -0
  76. package/dist/calcite/assets/calcite-icon/walkingTime16.json +1 -0
  77. package/dist/calcite/assets/calcite-icon/walkingTime24.json +1 -0
  78. package/dist/calcite/assets/calcite-icon/walkingTime32.json +1 -0
  79. package/dist/calcite/assets/calcite-icon/wifi16.json +1 -0
  80. package/dist/calcite/assets/calcite-icon/wifi24.json +1 -0
  81. package/dist/calcite/assets/calcite-icon/wifi32.json +1 -0
  82. package/dist/calcite/calcite.css +1 -1
  83. package/dist/calcite/calcite.esm.js +1 -1
  84. package/dist/calcite/calcite.js +1 -1
  85. package/dist/calcite/p-00f2f64d.system.entry.js +1 -0
  86. package/dist/calcite/p-058f3354.system.entry.js +1 -0
  87. package/dist/calcite/p-088c0c7a.entry.js +1 -0
  88. package/dist/calcite/p-0b539bae.system.entry.js +1 -0
  89. package/dist/calcite/{p-e14d8072.entry.js → p-1436091f.entry.js} +1 -1
  90. package/dist/calcite/{p-6e2cc57d.system.entry.js → p-14893331.system.entry.js} +1 -1
  91. package/dist/calcite/p-15df41f1.entry.js +1 -0
  92. package/dist/calcite/{p-19029579.system.entry.js → p-170fb8e8.system.entry.js} +1 -1
  93. package/dist/calcite/p-17b48d4d.system.entry.js +1 -0
  94. package/dist/calcite/p-186faf42.system.entry.js +1 -0
  95. package/dist/calcite/{p-cda2cefc.system.entry.js → p-19d3b749.system.entry.js} +1 -1
  96. package/dist/calcite/p-1a53829b.system.entry.js +1 -0
  97. package/dist/calcite/p-1bf298c2.entry.js +1 -0
  98. package/dist/calcite/p-1c3f7bb2.entry.js +1 -0
  99. package/dist/calcite/p-1df0fd29.system.entry.js +1 -0
  100. package/dist/calcite/{p-5247249f.system.entry.js → p-23b87c6a.system.entry.js} +1 -1
  101. package/dist/calcite/{p-263e9c6f.js → p-30f1442b.js} +0 -0
  102. package/dist/calcite/{p-11e329ff.entry.js → p-31962890.entry.js} +1 -1
  103. package/dist/calcite/p-33f60ee2.entry.js +1 -0
  104. package/dist/calcite/{p-5c8268a5.system.entry.js → p-39b743d9.system.entry.js} +1 -1
  105. package/dist/calcite/p-3c0315f6.entry.js +1 -0
  106. package/dist/calcite/p-3c6b85d2.entry.js +1 -0
  107. package/dist/calcite/p-41ad9e5a.entry.js +1 -0
  108. package/dist/calcite/p-43a9faca.js +1 -0
  109. package/dist/calcite/p-44c0b088.entry.js +1 -0
  110. package/dist/calcite/p-46f1277f.entry.js +1 -0
  111. package/dist/calcite/p-484d449e.entry.js +1 -0
  112. package/dist/calcite/{p-ec7b5fc8.entry.js → p-4a41b489.entry.js} +1 -1
  113. package/dist/calcite/p-4ee7aac6.entry.js +1 -0
  114. package/dist/calcite/p-4f24139e.system.entry.js +1 -0
  115. package/dist/calcite/{p-5b7ef513.system.js → p-4fce2a7a.system.js} +1 -1
  116. package/dist/calcite/p-52ae0e4a.entry.js +1 -0
  117. package/dist/calcite/p-55379ee6.system.entry.js +1 -0
  118. package/dist/calcite/{p-531b9a81.system.entry.js → p-55f7adaa.system.entry.js} +1 -1
  119. package/dist/calcite/{p-728c556a.system.entry.js → p-59f7b582.system.entry.js} +1 -1
  120. package/dist/calcite/p-5b2e8494.entry.js +1 -0
  121. package/dist/calcite/{p-61ef4e27.entry.js → p-5d57b25e.entry.js} +1 -1
  122. package/dist/calcite/p-5f50d376.system.entry.js +1 -0
  123. package/dist/calcite/{p-f9775a9d.entry.js → p-61471d5c.entry.js} +1 -1
  124. package/dist/calcite/p-62977e6b.system.entry.js +1 -0
  125. package/dist/calcite/p-6350bcd3.system.js +1 -0
  126. package/dist/calcite/p-66798503.entry.js +1 -0
  127. package/dist/calcite/p-674bc090.system.js +1 -0
  128. package/dist/calcite/{p-b86463e6.system.entry.js → p-675364da.system.entry.js} +1 -1
  129. package/dist/calcite/p-68206a3f.entry.js +1 -0
  130. package/dist/calcite/{p-35808614.entry.js → p-6b82c386.entry.js} +1 -1
  131. package/dist/calcite/p-6d98d9dc.system.entry.js +1 -0
  132. package/dist/calcite/{p-7084ba72.system.entry.js → p-6edac967.system.entry.js} +1 -1
  133. package/dist/calcite/p-74d42e2c.entry.js +1 -0
  134. package/dist/calcite/p-7506e28d.entry.js +1 -0
  135. package/dist/calcite/p-7521b7ab.system.entry.js +1 -0
  136. package/dist/calcite/p-753db53b.entry.js +1 -0
  137. package/dist/calcite/{p-0143d80a.system.entry.js → p-771da7ed.system.entry.js} +1 -1
  138. package/dist/calcite/{p-526c2f38.entry.js → p-77a53b72.entry.js} +1 -1
  139. package/dist/calcite/{p-245028cc.entry.js → p-77f3da33.entry.js} +1 -1
  140. package/dist/calcite/{p-0bc4ed41.system.entry.js → p-79e0b61b.system.entry.js} +1 -1
  141. package/dist/calcite/p-7a241325.system.entry.js +1 -0
  142. package/dist/calcite/p-7b71e1d4.js +1 -0
  143. package/dist/calcite/{p-9705826b.system.entry.js → p-7b856f76.system.entry.js} +1 -1
  144. package/dist/calcite/p-7c5c2b30.js +1 -0
  145. package/dist/calcite/p-7d1978f4.entry.js +1 -0
  146. package/dist/calcite/p-7d61c919.entry.js +1 -0
  147. package/dist/calcite/{p-e5a03e6b.system.entry.js → p-7e4be59e.system.entry.js} +1 -1
  148. package/dist/calcite/p-7ec8ab00.entry.js +1 -0
  149. package/dist/calcite/{p-8782aa79.entry.js → p-82be2fac.entry.js} +1 -1
  150. package/dist/calcite/{p-3ebef7b9.system.entry.js → p-835b14f7.system.entry.js} +1 -1
  151. package/dist/calcite/p-8943850c.entry.js +1 -0
  152. package/dist/calcite/p-8958d1f6.system.js +1 -0
  153. package/dist/calcite/p-8a16620b.system.js +1 -0
  154. package/dist/calcite/{p-585030e9.entry.js → p-8bce0bbf.entry.js} +1 -1
  155. package/dist/calcite/p-8c9b39be.system.js +1 -0
  156. package/dist/calcite/p-8d57e974.entry.js +1 -0
  157. package/dist/calcite/p-8d5f5ebf.js +1 -0
  158. package/dist/calcite/{p-becd3d35.js → p-8dc31333.js} +1 -1
  159. package/dist/calcite/p-8ef1afae.system.entry.js +1 -0
  160. package/dist/calcite/p-8fb7b17f.system.entry.js +1 -0
  161. package/dist/calcite/p-90b88d97.system.entry.js +1 -0
  162. package/dist/calcite/p-93dffbbd.entry.js +1 -0
  163. package/dist/calcite/p-950bdd5b.system.entry.js +1 -0
  164. package/dist/calcite/{p-a460e3dc.entry.js → p-95550217.entry.js} +1 -1
  165. package/dist/calcite/p-987310d2.system.js +1 -0
  166. package/dist/calcite/{p-14928bee.entry.js → p-99ce9de6.entry.js} +1 -1
  167. package/dist/calcite/p-9c371694.system.entry.js +1 -0
  168. package/dist/calcite/p-a096738b.system.entry.js +1 -0
  169. package/dist/calcite/p-a4d3e67f.entry.js +1 -0
  170. package/dist/calcite/p-a54a11ee.system.entry.js +1 -0
  171. package/dist/calcite/p-ac44517b.system.entry.js +1 -0
  172. package/dist/calcite/{p-3780d211.system.entry.js → p-ad290529.system.entry.js} +1 -1
  173. package/dist/calcite/{p-58d7d786.entry.js → p-aec1c004.entry.js} +1 -1
  174. package/dist/calcite/p-b10d0018.system.entry.js +1 -0
  175. package/dist/calcite/p-b286e0a5.system.entry.js +1 -0
  176. package/dist/calcite/p-b2a79aa2.system.entry.js +1 -0
  177. package/dist/calcite/p-b4cc79dc.system.js +1 -0
  178. package/dist/calcite/p-ba77eb78.entry.js +1 -0
  179. package/dist/calcite/{p-87524717.entry.js → p-bbffc12a.entry.js} +1 -1
  180. package/dist/calcite/{p-5e040210.system.entry.js → p-c0ee1569.system.entry.js} +1 -1
  181. package/dist/calcite/p-c15a632e.system.entry.js +1 -0
  182. package/dist/calcite/{p-4eabe0d4.system.entry.js → p-c23bfaf9.system.entry.js} +1 -1
  183. package/dist/calcite/p-c2cd9c1d.system.entry.js +1 -0
  184. package/dist/calcite/{p-eaf3e528.entry.js → p-c3a502d6.entry.js} +1 -1
  185. package/dist/calcite/{p-7d11fed5.system.entry.js → p-c4953aa6.system.entry.js} +1 -1
  186. package/dist/calcite/p-c5216cf9.entry.js +1 -0
  187. package/dist/calcite/p-c59d3bb3.system.entry.js +1 -0
  188. package/dist/calcite/p-c79fd1e1.entry.js +1 -0
  189. package/dist/calcite/p-c7d85b95.system.entry.js +1 -0
  190. package/dist/calcite/p-cb603214.entry.js +1 -0
  191. package/dist/calcite/p-cc7664db.entry.js +1 -0
  192. package/dist/calcite/{p-fd59e605.system.entry.js → p-d164c2f2.system.entry.js} +1 -1
  193. package/dist/calcite/p-d63d1c19.entry.js +1 -0
  194. package/dist/calcite/p-d74caa31.system.entry.js +1 -0
  195. package/dist/calcite/p-d7e0ef91.system.entry.js +1 -0
  196. package/dist/calcite/{p-02c649a5.system.entry.js → p-d8a015cb.system.entry.js} +1 -1
  197. package/dist/calcite/{p-ed1489e0.entry.js → p-d99dc0c0.entry.js} +1 -1
  198. package/dist/calcite/{p-150bb224.entry.js → p-dc043b78.entry.js} +1 -1
  199. package/dist/calcite/{p-c47fe2f9.js → p-dc825c55.js} +1 -1
  200. package/dist/calcite/p-dcfa0bba.js +1 -0
  201. package/dist/calcite/{p-a177a64e.system.entry.js → p-dd3f7c73.system.entry.js} +1 -1
  202. package/dist/calcite/{p-92d12490.system.entry.js → p-ddf50685.system.entry.js} +1 -1
  203. package/dist/calcite/p-de9b7982.system.entry.js +1 -0
  204. package/dist/calcite/{p-ac49579e.entry.js → p-df949bcc.entry.js} +1 -1
  205. package/dist/calcite/{p-79783728.entry.js → p-e1392ddf.entry.js} +1 -1
  206. package/dist/calcite/p-e3781613.entry.js +1 -0
  207. package/dist/calcite/{p-3c9923f1.system.js → p-e87acd87.system.js} +0 -0
  208. package/dist/calcite/p-ed68dd02.entry.js +1 -0
  209. package/dist/calcite/p-eea35b03.entry.js +1 -0
  210. package/dist/calcite/p-ef0ea98b.system.entry.js +1 -0
  211. package/dist/calcite/p-ef38dee8.js +1 -0
  212. package/dist/calcite/p-efe6556c.system.entry.js +1 -0
  213. package/dist/calcite/p-f02d04ab.system.js +1 -0
  214. package/dist/calcite/p-f1eca44a.entry.js +1 -0
  215. package/dist/calcite/{p-0e11eed4.system.entry.js → p-f1eddb0f.system.entry.js} +1 -1
  216. package/dist/calcite/{p-706789ab.entry.js → p-faac0f15.entry.js} +1 -1
  217. package/dist/calcite/p-fbf4ad06.entry.js +1 -0
  218. package/dist/cjs/{CalciteExpandToggle-f2905eb5.js → CalciteExpandToggle-b5735fd2.js} +5 -3
  219. package/dist/cjs/{CalciteHeading-cf7944a6.js → CalciteHeading-177f59f2.js} +1 -1
  220. package/dist/cjs/calcite-accordion_2.cjs.entry.js +5 -9
  221. package/dist/cjs/calcite-action-bar.cjs.entry.js +40 -26
  222. package/dist/cjs/calcite-action-group.cjs.entry.js +2 -2
  223. package/dist/cjs/calcite-action-menu.cjs.entry.js +5 -3
  224. package/dist/cjs/calcite-action-pad.cjs.entry.js +4 -3
  225. package/dist/cjs/calcite-action.cjs.entry.js +10 -6
  226. package/dist/cjs/calcite-alert.cjs.entry.js +3 -3
  227. package/dist/cjs/calcite-avatar.cjs.entry.js +2 -2
  228. package/dist/cjs/calcite-block_2.cjs.entry.js +19 -21
  229. package/dist/cjs/calcite-button.cjs.entry.js +20 -10
  230. package/dist/cjs/calcite-card.cjs.entry.js +2 -2
  231. package/dist/cjs/calcite-checkbox.cjs.entry.js +18 -29
  232. package/dist/cjs/calcite-chip.cjs.entry.js +5 -2
  233. package/dist/cjs/calcite-color-picker_3.cjs.entry.js +19 -12
  234. package/dist/cjs/calcite-combobox_3.cjs.entry.js +24 -25
  235. package/dist/cjs/calcite-date-picker_4.cjs.entry.js +19 -13
  236. package/dist/cjs/calcite-dropdown_3.cjs.entry.js +10 -5
  237. package/dist/cjs/calcite-fab.cjs.entry.js +3 -2
  238. package/dist/cjs/calcite-filter.cjs.entry.js +6 -8
  239. package/dist/cjs/calcite-flow.cjs.entry.js +7 -4
  240. package/dist/cjs/calcite-graph_2.cjs.entry.js +103 -69
  241. package/dist/cjs/calcite-handle.cjs.entry.js +2 -1
  242. package/dist/cjs/calcite-icon.cjs.entry.js +11 -12
  243. package/dist/cjs/calcite-inline-editable.cjs.entry.js +21 -15
  244. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +77 -62
  245. package/dist/cjs/calcite-input-message.cjs.entry.js +3 -2
  246. package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +27 -41
  247. package/dist/cjs/calcite-input.cjs.entry.js +20 -6
  248. package/dist/cjs/calcite-label.cjs.entry.js +17 -75
  249. package/dist/cjs/calcite-link.cjs.entry.js +10 -2
  250. package/dist/cjs/calcite-list_3.cjs.entry.js +3 -3
  251. package/dist/cjs/calcite-loader.cjs.entry.js +3 -1
  252. package/dist/cjs/calcite-modal.cjs.entry.js +21 -10
  253. package/dist/cjs/calcite-notice.cjs.entry.js +3 -3
  254. package/dist/cjs/calcite-option_3.cjs.entry.js +25 -21
  255. package/dist/cjs/calcite-pagination.cjs.entry.js +4 -4
  256. package/dist/cjs/calcite-panel.cjs.entry.js +6 -5
  257. package/dist/cjs/calcite-pick-list_3.cjs.entry.js +12 -8
  258. package/dist/cjs/calcite-popover_2.cjs.entry.js +11 -4
  259. package/dist/cjs/calcite-progress.cjs.entry.js +1 -1
  260. package/dist/cjs/calcite-radio-button-group.cjs.entry.js +1 -1
  261. package/dist/cjs/calcite-radio-group_2.cjs.entry.js +33 -33
  262. package/dist/cjs/calcite-radio_2.cjs.entry.js +47 -24
  263. package/dist/cjs/calcite-rating.cjs.entry.js +23 -14
  264. package/dist/cjs/calcite-scrim.cjs.entry.js +1 -1
  265. package/dist/cjs/calcite-shell_3.cjs.entry.js +11 -2
  266. package/dist/cjs/calcite-sortable-list.cjs.entry.js +31 -8
  267. package/dist/cjs/calcite-split-button.cjs.entry.js +9 -2
  268. package/dist/cjs/calcite-stepper_2.cjs.entry.js +3 -3
  269. package/dist/cjs/calcite-switch.cjs.entry.js +41 -37
  270. package/dist/cjs/calcite-tab_4.cjs.entry.js +20 -19
  271. package/dist/cjs/calcite-tile-select_2.cjs.entry.js +3 -2
  272. package/dist/cjs/calcite-tile.cjs.entry.js +11 -4
  273. package/dist/cjs/calcite-tip_3.cjs.entry.js +17 -8
  274. package/dist/cjs/calcite-tooltip_2.cjs.entry.js +4 -3
  275. package/dist/cjs/calcite-tree_2.cjs.entry.js +49 -16
  276. package/dist/cjs/calcite-value-list_2.cjs.entry.js +12 -4
  277. package/dist/cjs/calcite.cjs.js +3 -3
  278. package/dist/cjs/{dom-57231db9.js → dom-c9cafa59.js} +6 -7
  279. package/dist/cjs/{index-98b8a879.js → index-105d9087.js} +7 -0
  280. package/dist/cjs/label-80f9023b.js +54 -0
  281. package/dist/cjs/loader.cjs.js +3 -3
  282. package/dist/cjs/observers-88b3a2d4.js +18 -0
  283. package/dist/cjs/{popper-f5801759.js → popper-a103e375.js} +24 -14
  284. package/dist/cjs/{resources-76d0fe7f.js → resources-41daa7d4.js} +2 -7
  285. package/dist/cjs/{resources-c4efb8e1.js → resources-bbca3cea.js} +6 -4
  286. package/dist/collection/collection-manifest.json +1 -1
  287. package/dist/collection/components/calcite-accordion/calcite-accordion.js +3 -0
  288. package/dist/collection/components/calcite-accordion-item/calcite-accordion-item.css +8 -8
  289. package/dist/collection/components/calcite-accordion-item/calcite-accordion-item.js +6 -7
  290. package/dist/collection/components/calcite-action/calcite-action.css +1 -1
  291. package/dist/collection/components/calcite-action/calcite-action.js +9 -5
  292. package/dist/collection/components/calcite-action-bar/calcite-action-bar.js +61 -27
  293. package/dist/collection/components/calcite-action-bar/utils.js +1 -0
  294. package/dist/collection/components/calcite-action-menu/calcite-action-menu.js +4 -2
  295. package/dist/collection/components/calcite-action-pad/calcite-action-pad.js +2 -1
  296. package/dist/collection/components/calcite-alert/calcite-alert.js +2 -2
  297. package/dist/collection/components/calcite-block/calcite-block.css +10 -7
  298. package/dist/collection/components/calcite-block/calcite-block.js +2 -2
  299. package/dist/collection/components/calcite-block-section/calcite-block-section.js +17 -22
  300. package/dist/collection/components/calcite-button/calcite-button.js +25 -14
  301. package/dist/collection/components/calcite-card/calcite-card.js +1 -1
  302. package/dist/collection/components/calcite-checkbox/calcite-checkbox.css +1 -1
  303. package/dist/collection/components/calcite-checkbox/calcite-checkbox.js +25 -41
  304. package/dist/collection/components/calcite-chip/calcite-chip.js +11 -6
  305. package/dist/collection/components/calcite-color-picker/calcite-color-picker.js +17 -10
  306. package/dist/collection/components/calcite-combobox/calcite-combobox.css +3 -1
  307. package/dist/collection/components/calcite-combobox/calcite-combobox.js +26 -24
  308. package/dist/collection/components/calcite-combobox-item/calcite-combobox-item.js +3 -0
  309. package/dist/collection/components/calcite-combobox-item-group/calcite-combobox-item-group.js +3 -0
  310. package/dist/collection/components/calcite-date-picker/calcite-date-picker.js +9 -4
  311. package/dist/collection/components/calcite-date-picker/utils.js +1 -6
  312. package/dist/collection/components/calcite-date-picker-day/calcite-date-picker-day.js +2 -1
  313. package/dist/collection/components/calcite-date-picker-month/calcite-date-picker-month.js +18 -15
  314. package/dist/collection/components/calcite-dropdown/calcite-dropdown.js +12 -6
  315. package/dist/collection/components/calcite-dropdown-group/calcite-dropdown-group.js +3 -0
  316. package/dist/collection/components/calcite-dropdown-item/calcite-dropdown-item.js +7 -3
  317. package/dist/collection/components/calcite-fab/calcite-fab.js +2 -1
  318. package/dist/collection/components/calcite-filter/calcite-filter.css +6 -1
  319. package/dist/collection/components/calcite-filter/calcite-filter.js +4 -8
  320. package/dist/collection/components/calcite-flow/calcite-flow.js +6 -3
  321. package/dist/collection/components/calcite-handle/calcite-handle.js +2 -1
  322. package/dist/collection/components/calcite-icon/assets/calcite-icon/beacon16.json +1 -0
  323. package/dist/collection/components/calcite-icon/assets/calcite-icon/beacon24.json +1 -0
  324. package/dist/collection/components/calcite-icon/assets/calcite-icon/beacon32.json +1 -0
  325. package/dist/collection/components/calcite-icon/assets/calcite-icon/dataMagnifyingGlass16.json +1 -0
  326. package/dist/collection/components/calcite-icon/assets/calcite-icon/dataMagnifyingGlass24.json +1 -0
  327. package/dist/collection/components/calcite-icon/assets/calcite-icon/dataMagnifyingGlass32.json +1 -0
  328. package/dist/collection/components/calcite-icon/assets/calcite-icon/diamond16.json +1 -0
  329. package/dist/collection/components/calcite-icon/assets/calcite-icon/diamond24.json +1 -0
  330. package/dist/collection/components/calcite-icon/assets/calcite-icon/diamond32.json +1 -0
  331. package/dist/collection/components/calcite-icon/assets/calcite-icon/drivingDistance16.json +1 -0
  332. package/dist/collection/components/calcite-icon/assets/calcite-icon/drivingDistance24.json +1 -0
  333. package/dist/collection/components/calcite-icon/assets/calcite-icon/drivingDistance32.json +1 -0
  334. package/dist/collection/components/calcite-icon/assets/calcite-icon/drivingTime16.json +1 -0
  335. package/dist/collection/components/calcite-icon/assets/calcite-icon/drivingTime24.json +1 -0
  336. package/dist/collection/components/calcite-icon/assets/calcite-icon/drivingTime32.json +1 -0
  337. package/dist/collection/components/calcite-icon/assets/calcite-icon/featureDisplayOrder16.json +1 -0
  338. package/dist/collection/components/calcite-icon/assets/calcite-icon/featureDisplayOrder24.json +1 -0
  339. package/dist/collection/components/calcite-icon/assets/calcite-icon/featureDisplayOrder32.json +1 -0
  340. package/dist/collection/components/calcite-icon/assets/calcite-icon/fileMagnifyingGlass16.json +1 -1
  341. package/dist/collection/components/calcite-icon/assets/calcite-icon/fileMagnifyingGlass24.json +1 -1
  342. package/dist/collection/components/calcite-icon/assets/calcite-icon/fileMagnifyingGlass32.json +1 -1
  343. package/dist/collection/components/calcite-icon/assets/calcite-icon/fingerprint16.json +1 -0
  344. package/dist/collection/components/calcite-icon/assets/calcite-icon/fingerprint24.json +1 -0
  345. package/dist/collection/components/calcite-icon/assets/calcite-icon/fingerprint32.json +1 -0
  346. package/dist/collection/components/calcite-icon/assets/calcite-icon/hideEmpty24.json +1 -1
  347. package/dist/collection/components/calcite-icon/assets/calcite-icon/hideEmpty32.json +1 -1
  348. package/dist/collection/components/calcite-icon/assets/calcite-icon/lassoSelect16.json +1 -0
  349. package/dist/collection/components/calcite-icon/assets/calcite-icon/lassoSelect24.json +1 -0
  350. package/dist/collection/components/calcite-icon/assets/calcite-icon/lassoSelect32.json +1 -0
  351. package/dist/collection/components/calcite-icon/assets/calcite-icon/mobileVibrate16.json +1 -0
  352. package/dist/collection/components/calcite-icon/assets/calcite-icon/mobileVibrate24.json +1 -0
  353. package/dist/collection/components/calcite-icon/assets/calcite-icon/mobileVibrate32.json +1 -0
  354. package/dist/collection/components/calcite-icon/assets/calcite-icon/orientedImageryWidget16.json +1 -0
  355. package/dist/collection/components/calcite-icon/assets/calcite-icon/orientedImageryWidget24.json +1 -0
  356. package/dist/collection/components/calcite-icon/assets/calcite-icon/orientedImageryWidget32.json +1 -0
  357. package/dist/collection/components/calcite-icon/assets/calcite-icon/package16.json +1 -0
  358. package/dist/collection/components/calcite-icon/assets/calcite-icon/package24.json +1 -0
  359. package/dist/collection/components/calcite-icon/assets/calcite-icon/package32.json +1 -0
  360. package/dist/collection/components/calcite-icon/assets/calcite-icon/processingTemplates16.json +1 -0
  361. package/dist/collection/components/calcite-icon/assets/calcite-icon/processingTemplates24.json +1 -0
  362. package/dist/collection/components/calcite-icon/assets/calcite-icon/processingTemplates32.json +1 -0
  363. package/dist/collection/components/calcite-icon/assets/calcite-icon/ruralDrivingDistance16.json +1 -0
  364. package/dist/collection/components/calcite-icon/assets/calcite-icon/ruralDrivingDistance24.json +1 -0
  365. package/dist/collection/components/calcite-icon/assets/calcite-icon/ruralDrivingDistance32.json +1 -0
  366. package/dist/collection/components/calcite-icon/assets/calcite-icon/ruralDrivingTime16.json +1 -0
  367. package/dist/collection/components/calcite-icon/assets/calcite-icon/ruralDrivingTime24.json +1 -0
  368. package/dist/collection/components/calcite-icon/assets/calcite-icon/ruralDrivingTime32.json +1 -0
  369. package/dist/collection/components/calcite-icon/assets/calcite-icon/search16.json +1 -1
  370. package/dist/collection/components/calcite-icon/assets/calcite-icon/search24.json +1 -1
  371. package/dist/collection/components/calcite-icon/assets/calcite-icon/search32.json +1 -1
  372. package/dist/collection/components/calcite-icon/assets/calcite-icon/sensor16.json +1 -0
  373. package/dist/collection/components/calcite-icon/assets/calcite-icon/sensor21.json +1 -0
  374. package/dist/collection/components/calcite-icon/assets/calcite-icon/sensor24.json +1 -0
  375. package/dist/collection/components/calcite-icon/assets/calcite-icon/sensor32.json +1 -0
  376. package/dist/collection/components/calcite-icon/assets/calcite-icon/sensor48.json +1 -0
  377. package/dist/collection/components/calcite-icon/assets/calcite-icon/sensor64.json +1 -0
  378. package/dist/collection/components/calcite-icon/assets/calcite-icon/showColumn16.json +1 -0
  379. package/dist/collection/components/calcite-icon/assets/calcite-icon/showColumn24.json +1 -0
  380. package/dist/collection/components/calcite-icon/assets/calcite-icon/showColumn32.json +1 -0
  381. package/dist/collection/components/calcite-icon/assets/calcite-icon/speechBubbleCheck16.json +1 -0
  382. package/dist/collection/components/calcite-icon/assets/calcite-icon/speechBubbleCheck24.json +1 -0
  383. package/dist/collection/components/calcite-icon/assets/calcite-icon/speechBubbleCheck32.json +1 -0
  384. package/dist/collection/components/calcite-icon/assets/calcite-icon/thumbsDown16.json +1 -0
  385. package/dist/collection/components/calcite-icon/assets/calcite-icon/thumbsDown24.json +1 -0
  386. package/dist/collection/components/calcite-icon/assets/calcite-icon/thumbsDown32.json +1 -0
  387. package/dist/collection/components/calcite-icon/assets/calcite-icon/truckingDistance16.json +1 -0
  388. package/dist/collection/components/calcite-icon/assets/calcite-icon/truckingDistance24.json +1 -0
  389. package/dist/collection/components/calcite-icon/assets/calcite-icon/truckingDistance32.json +1 -0
  390. package/dist/collection/components/calcite-icon/assets/calcite-icon/truckingTime16.json +1 -0
  391. package/dist/collection/components/calcite-icon/assets/calcite-icon/truckingTime24.json +1 -0
  392. package/dist/collection/components/calcite-icon/assets/calcite-icon/truckingTime32.json +1 -0
  393. package/dist/collection/components/calcite-icon/assets/calcite-icon/walkingDistance16.json +1 -0
  394. package/dist/collection/components/calcite-icon/assets/calcite-icon/walkingDistance24.json +1 -0
  395. package/dist/collection/components/calcite-icon/assets/calcite-icon/walkingDistance32.json +1 -0
  396. package/dist/collection/components/calcite-icon/assets/calcite-icon/walkingTime16.json +1 -0
  397. package/dist/collection/components/calcite-icon/assets/calcite-icon/walkingTime24.json +1 -0
  398. package/dist/collection/components/calcite-icon/assets/calcite-icon/walkingTime32.json +1 -0
  399. package/dist/collection/components/calcite-icon/assets/calcite-icon/wifi16.json +1 -0
  400. package/dist/collection/components/calcite-icon/assets/calcite-icon/wifi24.json +1 -0
  401. package/dist/collection/components/calcite-icon/assets/calcite-icon/wifi32.json +1 -0
  402. package/dist/collection/components/calcite-icon/calcite-icon.js +9 -11
  403. package/dist/collection/components/calcite-inline-editable/calcite-inline-editable.js +39 -21
  404. package/dist/collection/components/calcite-input/calcite-input.css +4 -0
  405. package/dist/collection/components/calcite-input/calcite-input.js +27 -10
  406. package/dist/collection/components/calcite-input-date-picker/calcite-input-date-picker.js +96 -65
  407. package/dist/collection/components/calcite-input-message/calcite-input-message.js +5 -1
  408. package/dist/collection/components/calcite-input-time-picker/calcite-input-time-picker.js +15 -26
  409. package/dist/collection/components/calcite-label/calcite-label.css +11 -11
  410. package/dist/collection/components/calcite-label/calcite-label.js +31 -94
  411. package/dist/collection/components/calcite-label/resources.js +2 -2
  412. package/dist/collection/components/calcite-link/calcite-link.js +13 -4
  413. package/dist/collection/components/calcite-list-item/calcite-list-item.js +3 -6
  414. package/dist/collection/components/calcite-loader/calcite-loader.js +5 -2
  415. package/dist/collection/components/calcite-modal/calcite-modal.js +35 -19
  416. package/dist/collection/components/calcite-notice/calcite-notice.js +3 -3
  417. package/dist/collection/components/calcite-option/calcite-option.js +6 -3
  418. package/dist/collection/components/calcite-option-group/calcite-option-group.js +3 -0
  419. package/dist/collection/components/calcite-pagination/calcite-pagination.js +4 -4
  420. package/dist/collection/components/calcite-panel/calcite-panel.css +11 -11
  421. package/dist/collection/components/calcite-panel/calcite-panel.js +11 -9
  422. package/dist/collection/components/calcite-pick-list/calcite-pick-list.css +1 -1
  423. package/dist/collection/components/calcite-pick-list/calcite-pick-list.js +6 -3
  424. package/dist/collection/components/calcite-pick-list/shared-list-logic.js +4 -2
  425. package/dist/collection/components/calcite-pick-list-group/calcite-pick-list-group.css +10 -7
  426. package/dist/collection/components/calcite-pick-list-item/calcite-pick-list-item.js +4 -3
  427. package/dist/collection/components/calcite-popover/calcite-popover.js +9 -3
  428. package/dist/collection/components/calcite-popover-manager/calcite-popover-manager.js +7 -2
  429. package/dist/collection/components/calcite-radio/calcite-radio.js +5 -5
  430. package/dist/collection/components/calcite-radio-button/calcite-radio-button.js +48 -31
  431. package/dist/collection/components/calcite-radio-button-group/calcite-radio-button-group.js +5 -5
  432. package/dist/collection/components/calcite-radio-group/calcite-radio-group.js +31 -39
  433. package/dist/collection/components/calcite-radio-group-item/calcite-radio-group-item.js +12 -11
  434. package/dist/collection/components/calcite-rating/calcite-rating.js +23 -20
  435. package/dist/collection/components/calcite-scrim/calcite-scrim.js +3 -0
  436. package/dist/collection/components/calcite-select/calcite-select.js +22 -23
  437. package/dist/collection/components/calcite-shell/calcite-shell.js +16 -4
  438. package/dist/collection/components/calcite-shell-center-row/calcite-shell-center-row.js +1 -1
  439. package/dist/collection/components/calcite-shell-panel/calcite-shell-panel.js +1 -1
  440. package/dist/collection/components/calcite-slider/calcite-slider.css +7 -5
  441. package/dist/collection/components/calcite-slider/calcite-slider.js +130 -85
  442. package/dist/collection/components/calcite-sortable-list/calcite-sortable-list.css +13 -0
  443. package/dist/collection/components/calcite-sortable-list/calcite-sortable-list.js +48 -7
  444. package/dist/collection/components/calcite-sortable-list/resources.js +4 -1
  445. package/dist/collection/components/calcite-split-button/calcite-split-button.js +17 -5
  446. package/dist/collection/components/calcite-stepper/calcite-stepper.js +3 -0
  447. package/dist/collection/components/calcite-stepper-item/calcite-stepper-item.css +7 -7
  448. package/dist/collection/components/calcite-stepper-item/calcite-stepper-item.js +3 -0
  449. package/dist/collection/components/calcite-switch/calcite-switch.css +7 -7
  450. package/dist/collection/components/calcite-switch/calcite-switch.js +83 -51
  451. package/dist/collection/components/calcite-tab/calcite-tab.css +0 -1
  452. package/dist/collection/components/calcite-tab/calcite-tab.js +3 -0
  453. package/dist/collection/components/calcite-tab-nav/calcite-tab-nav.css +0 -1
  454. package/dist/collection/components/calcite-tab-nav/calcite-tab-nav.js +7 -7
  455. package/dist/collection/components/calcite-tab-title/calcite-tab-title.js +17 -10
  456. package/dist/collection/components/calcite-tabs/calcite-tabs.js +3 -2
  457. package/dist/collection/components/calcite-tile/calcite-tile.css +9 -0
  458. package/dist/collection/components/calcite-tile/calcite-tile.js +12 -4
  459. package/dist/collection/components/calcite-tile-select/calcite-tile-select.js +5 -1
  460. package/dist/collection/components/calcite-tile-select-group/calcite-tile-select-group.js +3 -0
  461. package/dist/collection/components/calcite-time-picker/calcite-time-picker.js +15 -25
  462. package/dist/collection/components/calcite-tip/calcite-tip.css +10 -7
  463. package/dist/collection/components/calcite-tip/calcite-tip.js +8 -2
  464. package/dist/collection/components/calcite-tip-group/calcite-tip-group.js +3 -0
  465. package/dist/collection/components/calcite-tip-manager/calcite-tip-manager.css +12 -8
  466. package/dist/collection/components/calcite-tip-manager/calcite-tip-manager.js +10 -5
  467. package/dist/collection/components/calcite-tooltip/calcite-tooltip.js +5 -1
  468. package/dist/collection/components/calcite-tree-item/calcite-tree-item.css +120 -223
  469. package/dist/collection/components/calcite-tree-item/calcite-tree-item.js +39 -9
  470. package/dist/collection/components/calcite-tree-item/resources.js +9 -5
  471. package/dist/collection/components/calcite-value-list/calcite-value-list.js +6 -3
  472. package/dist/collection/components/calcite-value-list-item/calcite-value-list-item.js +7 -2
  473. package/dist/collection/components/functional/CalciteExpandToggle.js +2 -1
  474. package/dist/collection/utils/dom.js +0 -3
  475. package/dist/collection/utils/filter.js +1 -1
  476. package/dist/collection/utils/label.js +47 -0
  477. package/dist/collection/utils/observers.js +15 -0
  478. package/dist/collection/utils/resources.js +20 -3
  479. package/dist/custom-elements/bundles/pick-list.js +2 -2
  480. package/dist/custom-elements/bundles/value-list.js +2 -2
  481. package/dist/custom-elements/index.js +5794 -5548
  482. package/dist/custom-elements/index.mjs +5794 -5548
  483. package/dist/esm/{CalciteExpandToggle-476279ee.js → CalciteExpandToggle-a149fed4.js} +5 -4
  484. package/dist/esm/{CalciteHeading-ea5ec96c.js → CalciteHeading-29855e9f.js} +1 -1
  485. package/dist/esm/calcite-accordion_2.entry.js +5 -9
  486. package/dist/esm/calcite-action-bar.entry.js +40 -26
  487. package/dist/esm/calcite-action-group.entry.js +2 -2
  488. package/dist/esm/calcite-action-menu.entry.js +5 -3
  489. package/dist/esm/calcite-action-pad.entry.js +4 -3
  490. package/dist/esm/calcite-action.entry.js +10 -6
  491. package/dist/esm/calcite-alert.entry.js +3 -3
  492. package/dist/esm/calcite-avatar.entry.js +2 -2
  493. package/dist/esm/calcite-block_2.entry.js +19 -21
  494. package/dist/esm/calcite-button.entry.js +20 -10
  495. package/dist/esm/calcite-card.entry.js +2 -2
  496. package/dist/esm/calcite-checkbox.entry.js +18 -29
  497. package/dist/esm/calcite-chip.entry.js +5 -2
  498. package/dist/esm/calcite-color-picker_3.entry.js +19 -12
  499. package/dist/esm/calcite-combobox_3.entry.js +24 -25
  500. package/dist/esm/calcite-date-picker_4.entry.js +19 -13
  501. package/dist/esm/calcite-dropdown_3.entry.js +10 -5
  502. package/dist/esm/calcite-fab.entry.js +3 -2
  503. package/dist/esm/calcite-filter.entry.js +6 -8
  504. package/dist/esm/calcite-flow.entry.js +7 -4
  505. package/dist/esm/calcite-graph_2.entry.js +103 -69
  506. package/dist/esm/calcite-handle.entry.js +2 -1
  507. package/dist/esm/calcite-icon.entry.js +11 -12
  508. package/dist/esm/calcite-inline-editable.entry.js +21 -15
  509. package/dist/esm/calcite-input-date-picker.entry.js +77 -62
  510. package/dist/esm/calcite-input-message.entry.js +3 -2
  511. package/dist/esm/calcite-input-time-picker_2.entry.js +27 -41
  512. package/dist/esm/calcite-input.entry.js +20 -6
  513. package/dist/esm/calcite-label.entry.js +17 -75
  514. package/dist/esm/calcite-link.entry.js +10 -2
  515. package/dist/esm/calcite-list_3.entry.js +3 -3
  516. package/dist/esm/calcite-loader.entry.js +3 -1
  517. package/dist/esm/calcite-modal.entry.js +21 -10
  518. package/dist/esm/calcite-notice.entry.js +3 -3
  519. package/dist/esm/calcite-option_3.entry.js +25 -21
  520. package/dist/esm/calcite-pagination.entry.js +4 -4
  521. package/dist/esm/calcite-panel.entry.js +6 -5
  522. package/dist/esm/calcite-pick-list_3.entry.js +12 -8
  523. package/dist/esm/calcite-popover_2.entry.js +11 -4
  524. package/dist/esm/calcite-progress.entry.js +1 -1
  525. package/dist/esm/calcite-radio-button-group.entry.js +1 -1
  526. package/dist/esm/calcite-radio-group_2.entry.js +33 -33
  527. package/dist/esm/calcite-radio_2.entry.js +47 -24
  528. package/dist/esm/calcite-rating.entry.js +23 -14
  529. package/dist/esm/calcite-scrim.entry.js +1 -1
  530. package/dist/esm/calcite-shell_3.entry.js +11 -2
  531. package/dist/esm/calcite-sortable-list.entry.js +31 -8
  532. package/dist/esm/calcite-split-button.entry.js +9 -2
  533. package/dist/esm/calcite-stepper_2.entry.js +3 -3
  534. package/dist/esm/calcite-switch.entry.js +41 -37
  535. package/dist/esm/calcite-tab_4.entry.js +20 -19
  536. package/dist/esm/calcite-tile-select_2.entry.js +3 -2
  537. package/dist/esm/calcite-tile.entry.js +11 -4
  538. package/dist/esm/calcite-tip_3.entry.js +17 -8
  539. package/dist/esm/calcite-tooltip_2.entry.js +4 -3
  540. package/dist/esm/calcite-tree_2.entry.js +49 -16
  541. package/dist/esm/calcite-value-list_2.entry.js +12 -4
  542. package/dist/esm/calcite.js +3 -3
  543. package/dist/esm/{dom-0b02c0cf.js → dom-b369a031.js} +7 -7
  544. package/dist/esm/{index-1554a132.js → index-f8f0bea7.js} +7 -0
  545. package/dist/esm/label-7b249c54.js +50 -0
  546. package/dist/esm/loader.js +3 -3
  547. package/dist/esm/observers-c93d4fe5.js +16 -0
  548. package/dist/esm/{popper-58fae6b8.js → popper-2757192a.js} +24 -14
  549. package/dist/esm/{resources-91bd199f.js → resources-28d71943.js} +3 -8
  550. package/dist/esm/{resources-1a6ba3ca.js → resources-c651d73a.js} +6 -4
  551. package/dist/esm-es5/CalciteExpandToggle-a149fed4.js +1 -0
  552. package/dist/esm-es5/{CalciteHeading-ea5ec96c.js → CalciteHeading-29855e9f.js} +1 -1
  553. package/dist/esm-es5/calcite-accordion_2.entry.js +1 -1
  554. package/dist/esm-es5/calcite-action-bar.entry.js +1 -1
  555. package/dist/esm-es5/calcite-action-group.entry.js +1 -1
  556. package/dist/esm-es5/calcite-action-menu.entry.js +1 -1
  557. package/dist/esm-es5/calcite-action-pad.entry.js +1 -1
  558. package/dist/esm-es5/calcite-action.entry.js +1 -1
  559. package/dist/esm-es5/calcite-alert.entry.js +1 -1
  560. package/dist/esm-es5/calcite-avatar.entry.js +1 -1
  561. package/dist/esm-es5/calcite-block_2.entry.js +1 -1
  562. package/dist/esm-es5/calcite-button.entry.js +1 -1
  563. package/dist/esm-es5/calcite-card.entry.js +1 -1
  564. package/dist/esm-es5/calcite-checkbox.entry.js +1 -1
  565. package/dist/esm-es5/calcite-chip.entry.js +1 -1
  566. package/dist/esm-es5/calcite-color-picker_3.entry.js +1 -1
  567. package/dist/esm-es5/calcite-combobox_3.entry.js +1 -1
  568. package/dist/esm-es5/calcite-date-picker_4.entry.js +1 -1
  569. package/dist/esm-es5/calcite-dropdown_3.entry.js +1 -1
  570. package/dist/esm-es5/calcite-fab.entry.js +1 -1
  571. package/dist/esm-es5/calcite-filter.entry.js +1 -1
  572. package/dist/esm-es5/calcite-flow.entry.js +1 -1
  573. package/dist/esm-es5/calcite-graph_2.entry.js +1 -1
  574. package/dist/esm-es5/calcite-handle.entry.js +1 -1
  575. package/dist/esm-es5/calcite-icon.entry.js +1 -1
  576. package/dist/esm-es5/calcite-inline-editable.entry.js +1 -1
  577. package/dist/esm-es5/calcite-input-date-picker.entry.js +1 -1
  578. package/dist/esm-es5/calcite-input-message.entry.js +1 -1
  579. package/dist/esm-es5/calcite-input-time-picker_2.entry.js +1 -1
  580. package/dist/esm-es5/calcite-input.entry.js +1 -1
  581. package/dist/esm-es5/calcite-label.entry.js +1 -1
  582. package/dist/esm-es5/calcite-link.entry.js +1 -1
  583. package/dist/esm-es5/calcite-list_3.entry.js +1 -1
  584. package/dist/esm-es5/calcite-loader.entry.js +1 -1
  585. package/dist/esm-es5/calcite-modal.entry.js +1 -1
  586. package/dist/esm-es5/calcite-notice.entry.js +1 -1
  587. package/dist/esm-es5/calcite-option_3.entry.js +1 -1
  588. package/dist/esm-es5/calcite-pagination.entry.js +1 -1
  589. package/dist/esm-es5/calcite-panel.entry.js +1 -1
  590. package/dist/esm-es5/calcite-pick-list_3.entry.js +1 -1
  591. package/dist/esm-es5/calcite-popover_2.entry.js +1 -1
  592. package/dist/esm-es5/calcite-progress.entry.js +1 -1
  593. package/dist/esm-es5/calcite-radio-button-group.entry.js +1 -1
  594. package/dist/esm-es5/calcite-radio-group_2.entry.js +1 -1
  595. package/dist/esm-es5/calcite-radio_2.entry.js +1 -1
  596. package/dist/esm-es5/calcite-rating.entry.js +1 -1
  597. package/dist/esm-es5/calcite-scrim.entry.js +1 -1
  598. package/dist/esm-es5/calcite-shell_3.entry.js +1 -1
  599. package/dist/esm-es5/calcite-sortable-list.entry.js +1 -1
  600. package/dist/esm-es5/calcite-split-button.entry.js +1 -1
  601. package/dist/esm-es5/calcite-stepper_2.entry.js +1 -1
  602. package/dist/esm-es5/calcite-switch.entry.js +1 -1
  603. package/dist/esm-es5/calcite-tab_4.entry.js +1 -1
  604. package/dist/esm-es5/calcite-tile-select_2.entry.js +1 -1
  605. package/dist/esm-es5/calcite-tile.entry.js +1 -1
  606. package/dist/esm-es5/calcite-tip_3.entry.js +1 -1
  607. package/dist/esm-es5/calcite-tooltip_2.entry.js +1 -1
  608. package/dist/esm-es5/calcite-tree_2.entry.js +1 -1
  609. package/dist/esm-es5/calcite-value-list_2.entry.js +1 -1
  610. package/dist/esm-es5/calcite.js +1 -1
  611. package/dist/esm-es5/dom-b369a031.js +1 -0
  612. package/dist/esm-es5/{index-1554a132.js → index-f8f0bea7.js} +0 -0
  613. package/dist/esm-es5/label-7b249c54.js +1 -0
  614. package/dist/esm-es5/loader.js +1 -1
  615. package/dist/esm-es5/observers-c93d4fe5.js +1 -0
  616. package/dist/esm-es5/popper-2757192a.js +1 -0
  617. package/dist/esm-es5/resources-28d71943.js +1 -0
  618. package/dist/esm-es5/resources-c651d73a.js +1 -0
  619. package/dist/extras/docs-json.json +679 -440
  620. package/dist/types/components/calcite-accordion/calcite-accordion.d.ts +3 -0
  621. package/dist/types/components/calcite-accordion-item/calcite-accordion-item.d.ts +4 -0
  622. package/dist/types/components/calcite-action/calcite-action.d.ts +3 -2
  623. package/dist/types/components/calcite-action-bar/calcite-action-bar.d.ts +11 -6
  624. package/dist/types/components/calcite-action-bar/utils.d.ts +1 -0
  625. package/dist/types/components/calcite-action-menu/calcite-action-menu.d.ts +1 -0
  626. package/dist/types/components/calcite-action-pad/calcite-action-pad.d.ts +1 -0
  627. package/dist/types/components/calcite-alert/calcite-alert.d.ts +1 -1
  628. package/dist/types/components/calcite-block/calcite-block.d.ts +1 -1
  629. package/dist/types/components/calcite-block-section/calcite-block-section.d.ts +1 -3
  630. package/dist/types/components/calcite-button/calcite-button.d.ts +11 -7
  631. package/dist/types/components/calcite-card/calcite-card.d.ts +1 -1
  632. package/dist/types/components/calcite-checkbox/calcite-checkbox.d.ts +11 -7
  633. package/dist/types/components/calcite-chip/calcite-chip.d.ts +6 -3
  634. package/dist/types/components/calcite-color-picker/calcite-color-picker.d.ts +1 -0
  635. package/dist/types/components/calcite-combobox/calcite-combobox.d.ts +11 -4
  636. package/dist/types/components/calcite-combobox-item/calcite-combobox-item.d.ts +3 -0
  637. package/dist/types/components/calcite-combobox-item-group/calcite-combobox-item-group.d.ts +3 -0
  638. package/dist/types/components/calcite-date-picker/calcite-date-picker.d.ts +2 -2
  639. package/dist/types/components/calcite-date-picker-day/calcite-date-picker-day.d.ts +1 -0
  640. package/dist/types/components/calcite-date-picker-month/calcite-date-picker-month.d.ts +3 -1
  641. package/dist/types/components/calcite-dropdown/calcite-dropdown.d.ts +5 -2
  642. package/dist/types/components/calcite-dropdown-group/calcite-dropdown-group.d.ts +3 -0
  643. package/dist/types/components/calcite-dropdown-item/calcite-dropdown-item.d.ts +5 -1
  644. package/dist/types/components/calcite-fab/calcite-fab.d.ts +1 -0
  645. package/dist/types/components/calcite-filter/calcite-filter.d.ts +3 -5
  646. package/dist/types/components/calcite-flow/calcite-flow.d.ts +1 -1
  647. package/dist/types/components/calcite-handle/calcite-handle.d.ts +1 -0
  648. package/dist/types/components/calcite-inline-editable/calcite-inline-editable.d.ts +8 -3
  649. package/dist/types/components/calcite-input/calcite-input.d.ts +8 -5
  650. package/dist/types/components/calcite-input-date-picker/calcite-input-date-picker.d.ts +13 -12
  651. package/dist/types/components/calcite-input-message/calcite-input-message.d.ts +4 -0
  652. package/dist/types/components/calcite-input-time-picker/calcite-input-time-picker.d.ts +8 -6
  653. package/dist/types/components/calcite-label/calcite-label.d.ts +9 -6
  654. package/dist/types/components/calcite-label/resources.d.ts +3 -0
  655. package/dist/types/components/calcite-link/calcite-link.d.ts +3 -2
  656. package/dist/types/components/calcite-list-item/calcite-list-item.d.ts +2 -2
  657. package/dist/types/components/calcite-loader/calcite-loader.d.ts +1 -1
  658. package/dist/types/components/calcite-modal/calcite-modal.d.ts +5 -5
  659. package/dist/types/components/calcite-notice/calcite-notice.d.ts +2 -2
  660. package/dist/types/components/calcite-option-group/calcite-option-group.d.ts +3 -0
  661. package/dist/types/components/calcite-pagination/calcite-pagination.d.ts +2 -2
  662. package/dist/types/components/calcite-panel/calcite-panel.d.ts +9 -7
  663. package/dist/types/components/calcite-pick-list/calcite-pick-list.d.ts +3 -1
  664. package/dist/types/components/calcite-pick-list-item/calcite-pick-list-item.d.ts +2 -1
  665. package/dist/types/components/calcite-popover/calcite-popover.d.ts +6 -0
  666. package/dist/types/components/calcite-popover-manager/calcite-popover-manager.d.ts +1 -1
  667. package/dist/types/components/calcite-radio/calcite-radio.d.ts +3 -3
  668. package/dist/types/components/calcite-radio-button/calcite-radio-button.d.ts +10 -4
  669. package/dist/types/components/calcite-radio-button-group/calcite-radio-button-group.d.ts +4 -1
  670. package/dist/types/components/calcite-radio-group/calcite-radio-group.d.ts +11 -5
  671. package/dist/types/components/calcite-radio-group-item/calcite-radio-group-item.d.ts +1 -2
  672. package/dist/types/components/calcite-rating/calcite-rating.d.ts +7 -2
  673. package/dist/types/components/calcite-scrim/calcite-scrim.d.ts +3 -0
  674. package/dist/types/components/calcite-select/calcite-select.d.ts +9 -4
  675. package/dist/types/components/calcite-shell/calcite-shell.d.ts +3 -3
  676. package/dist/types/components/calcite-shell-center-row/calcite-shell-center-row.d.ts +1 -1
  677. package/dist/types/components/calcite-shell-panel/calcite-shell-panel.d.ts +1 -1
  678. package/dist/types/components/calcite-slider/calcite-slider.d.ts +36 -9
  679. package/dist/types/components/calcite-sortable-list/calcite-sortable-list.d.ts +7 -2
  680. package/dist/types/components/calcite-sortable-list/resources.d.ts +3 -0
  681. package/dist/types/components/calcite-split-button/calcite-split-button.d.ts +6 -3
  682. package/dist/types/components/calcite-stepper/calcite-stepper.d.ts +3 -0
  683. package/dist/types/components/calcite-stepper-item/calcite-stepper-item.d.ts +3 -0
  684. package/dist/types/components/calcite-switch/calcite-switch.d.ts +19 -7
  685. package/dist/types/components/calcite-tab/calcite-tab.d.ts +3 -0
  686. package/dist/types/components/calcite-tab-nav/calcite-tab-nav.d.ts +4 -1
  687. package/dist/types/components/calcite-tab-title/calcite-tab-title.d.ts +6 -3
  688. package/dist/types/components/calcite-tabs/calcite-tabs.d.ts +3 -2
  689. package/dist/types/components/calcite-tile/calcite-tile.d.ts +2 -2
  690. package/dist/types/components/calcite-tile-select/calcite-tile-select.d.ts +4 -0
  691. package/dist/types/components/calcite-tile-select-group/calcite-tile-select-group.d.ts +3 -0
  692. package/dist/types/components/calcite-time-picker/calcite-time-picker.d.ts +1 -0
  693. package/dist/types/components/calcite-tip/calcite-tip.d.ts +2 -1
  694. package/dist/types/components/calcite-tip-group/calcite-tip-group.d.ts +3 -0
  695. package/dist/types/components/calcite-tip-manager/calcite-tip-manager.d.ts +3 -1
  696. package/dist/types/components/calcite-tooltip/calcite-tooltip.d.ts +4 -0
  697. package/dist/types/components/calcite-tree-item/calcite-tree-item.d.ts +3 -1
  698. package/dist/types/components/calcite-tree-item/resources.d.ts +4 -0
  699. package/dist/types/components/calcite-value-list/calcite-value-list.d.ts +3 -1
  700. package/dist/types/components/calcite-value-list-item/calcite-value-list-item.d.ts +5 -0
  701. package/dist/types/components/interfaces.d.ts +1 -0
  702. package/dist/types/components.d.ts +266 -115
  703. package/dist/types/preact.d.ts +4 -3
  704. package/dist/types/stencil-public-runtime.d.ts +1 -0
  705. package/dist/types/utils/date.d.ts +5 -0
  706. package/dist/types/utils/dom.d.ts +0 -1
  707. package/dist/types/utils/label.d.ts +30 -0
  708. package/dist/types/utils/observers.d.ts +13 -0
  709. package/dist/types/utils/resources.d.ts +7 -0
  710. package/hydrate/index.js +6083 -5737
  711. package/package.json +31 -32
  712. package/readme.md +5 -3
  713. package/dist/calcite/assets/calcite-icon/checkSquareF16.json +0 -1
  714. package/dist/calcite/assets/calcite-icon/checkSquareF24.json +0 -1
  715. package/dist/calcite/assets/calcite-icon/checkSquareF32.json +0 -1
  716. package/dist/calcite/assets/calcite-icon/lineSolid4.json +0 -1
  717. package/dist/calcite/assets/calcite-icon/squareF16.json +0 -1
  718. package/dist/calcite/assets/calcite-icon/squareF24.json +0 -1
  719. package/dist/calcite/assets/calcite-icon/squareF32.json +0 -1
  720. package/dist/calcite/assets/calcite-icon/xHexagon16.json +0 -1
  721. package/dist/calcite/assets/calcite-icon/xHexagon24.json +0 -1
  722. package/dist/calcite/assets/calcite-icon/xHexagon32.json +0 -1
  723. package/dist/calcite/assets/calcite-icon/xHexagonF16.json +0 -1
  724. package/dist/calcite/assets/calcite-icon/xHexagonF24.json +0 -1
  725. package/dist/calcite/assets/calcite-icon/xHexagonF32.json +0 -1
  726. package/dist/calcite/assets/calcite-icon/xOctagonF16.json +0 -1
  727. package/dist/calcite/assets/calcite-icon/xOctagonF24.json +0 -1
  728. package/dist/calcite/assets/calcite-icon/xOctagonF32.json +0 -1
  729. package/dist/calcite/p-00483db2.entry.js +0 -1
  730. package/dist/calcite/p-02d538d1.entry.js +0 -1
  731. package/dist/calcite/p-047a81a3.system.entry.js +0 -1
  732. package/dist/calcite/p-05b94f96.system.entry.js +0 -1
  733. package/dist/calcite/p-08c520ab.entry.js +0 -1
  734. package/dist/calcite/p-093611e5.system.entry.js +0 -1
  735. package/dist/calcite/p-0db1b60a.entry.js +0 -1
  736. package/dist/calcite/p-0fb670d4.entry.js +0 -1
  737. package/dist/calcite/p-10f7294b.entry.js +0 -1
  738. package/dist/calcite/p-13ef1b53.system.js +0 -1
  739. package/dist/calcite/p-16b4f190.entry.js +0 -1
  740. package/dist/calcite/p-1a106eeb.system.js +0 -1
  741. package/dist/calcite/p-203a6353.system.entry.js +0 -1
  742. package/dist/calcite/p-27c361d6.system.entry.js +0 -1
  743. package/dist/calcite/p-2b637119.entry.js +0 -1
  744. package/dist/calcite/p-2be18acb.system.entry.js +0 -1
  745. package/dist/calcite/p-2c7e7100.entry.js +0 -1
  746. package/dist/calcite/p-2ef13248.system.entry.js +0 -1
  747. package/dist/calcite/p-3201ae19.system.entry.js +0 -1
  748. package/dist/calcite/p-32a36f7a.system.entry.js +0 -1
  749. package/dist/calcite/p-34ca7837.entry.js +0 -1
  750. package/dist/calcite/p-34f29ea4.system.entry.js +0 -1
  751. package/dist/calcite/p-34fb1f25.entry.js +0 -1
  752. package/dist/calcite/p-3673cde7.system.entry.js +0 -1
  753. package/dist/calcite/p-3a65f811.entry.js +0 -1
  754. package/dist/calcite/p-3be4b9aa.entry.js +0 -1
  755. package/dist/calcite/p-42da7fef.entry.js +0 -1
  756. package/dist/calcite/p-43012e6b.entry.js +0 -1
  757. package/dist/calcite/p-4a26a904.entry.js +0 -1
  758. package/dist/calcite/p-4be58665.entry.js +0 -1
  759. package/dist/calcite/p-4f499010.system.entry.js +0 -1
  760. package/dist/calcite/p-4fbdd4ed.system.entry.js +0 -1
  761. package/dist/calcite/p-50e479d9.entry.js +0 -1
  762. package/dist/calcite/p-5239d659.entry.js +0 -1
  763. package/dist/calcite/p-5299b13b.entry.js +0 -1
  764. package/dist/calcite/p-5375184d.system.entry.js +0 -1
  765. package/dist/calcite/p-586505c4.system.entry.js +0 -1
  766. package/dist/calcite/p-5890d56b.system.js +0 -1
  767. package/dist/calcite/p-5923992e.js +0 -1
  768. package/dist/calcite/p-64f42357.system.js +0 -1
  769. package/dist/calcite/p-6653b14e.entry.js +0 -1
  770. package/dist/calcite/p-66c45300.entry.js +0 -1
  771. package/dist/calcite/p-69c1ee7c.system.entry.js +0 -1
  772. package/dist/calcite/p-6c65d998.entry.js +0 -1
  773. package/dist/calcite/p-6e967236.system.entry.js +0 -1
  774. package/dist/calcite/p-72d6bba0.entry.js +0 -1
  775. package/dist/calcite/p-74c79844.system.entry.js +0 -1
  776. package/dist/calcite/p-74f6edf8.system.entry.js +0 -1
  777. package/dist/calcite/p-83c7204d.system.entry.js +0 -1
  778. package/dist/calcite/p-96deb83e.entry.js +0 -1
  779. package/dist/calcite/p-9d316477.system.entry.js +0 -1
  780. package/dist/calcite/p-a17fdd4d.system.entry.js +0 -1
  781. package/dist/calcite/p-a77b1cd0.entry.js +0 -1
  782. package/dist/calcite/p-a7a7301d.system.js +0 -1
  783. package/dist/calcite/p-a9dc52c5.system.entry.js +0 -1
  784. package/dist/calcite/p-aac1ce8a.system.entry.js +0 -1
  785. package/dist/calcite/p-ae2a0fdc.entry.js +0 -1
  786. package/dist/calcite/p-b4c1be3b.system.entry.js +0 -1
  787. package/dist/calcite/p-bb8ace16.js +0 -1
  788. package/dist/calcite/p-bd9a1bcb.system.entry.js +0 -1
  789. package/dist/calcite/p-c1089d9c.system.entry.js +0 -1
  790. package/dist/calcite/p-cd5299e3.system.entry.js +0 -1
  791. package/dist/calcite/p-ce1adba4.entry.js +0 -1
  792. package/dist/calcite/p-d06342ab.entry.js +0 -1
  793. package/dist/calcite/p-d06530e0.js +0 -1
  794. package/dist/calcite/p-d0f23a93.entry.js +0 -1
  795. package/dist/calcite/p-d54b30f0.js +0 -1
  796. package/dist/calcite/p-d5bd3f04.entry.js +0 -1
  797. package/dist/calcite/p-d716f0ee.system.entry.js +0 -1
  798. package/dist/calcite/p-d7b7568e.entry.js +0 -1
  799. package/dist/calcite/p-d7cbb59a.system.entry.js +0 -1
  800. package/dist/calcite/p-d81e8789.system.entry.js +0 -1
  801. package/dist/calcite/p-dbf798b1.system.entry.js +0 -1
  802. package/dist/calcite/p-e220ebdc.system.js +0 -1
  803. package/dist/calcite/p-ea8a5460.entry.js +0 -1
  804. package/dist/calcite/p-eb33c37f.entry.js +0 -1
  805. package/dist/calcite/p-eeb197c7.entry.js +0 -1
  806. package/dist/calcite/p-eeb4e8f1.system.entry.js +0 -1
  807. package/dist/calcite/p-f6d07921.entry.js +0 -1
  808. package/dist/calcite/p-f9f26b76.system.entry.js +0 -1
  809. package/dist/calcite/p-ff47c7f0.entry.js +0 -1
  810. package/dist/collection/components/calcite-icon/assets/calcite-icon/checkSquareF16.json +0 -1
  811. package/dist/collection/components/calcite-icon/assets/calcite-icon/checkSquareF24.json +0 -1
  812. package/dist/collection/components/calcite-icon/assets/calcite-icon/checkSquareF32.json +0 -1
  813. package/dist/collection/components/calcite-icon/assets/calcite-icon/lineSolid4.json +0 -1
  814. package/dist/collection/components/calcite-icon/assets/calcite-icon/squareF16.json +0 -1
  815. package/dist/collection/components/calcite-icon/assets/calcite-icon/squareF24.json +0 -1
  816. package/dist/collection/components/calcite-icon/assets/calcite-icon/squareF32.json +0 -1
  817. package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagon16.json +0 -1
  818. package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagon24.json +0 -1
  819. package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagon32.json +0 -1
  820. package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagonF16.json +0 -1
  821. package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagonF24.json +0 -1
  822. package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagonF32.json +0 -1
  823. package/dist/collection/components/calcite-icon/assets/calcite-icon/xOctagonF16.json +0 -1
  824. package/dist/collection/components/calcite-icon/assets/calcite-icon/xOctagonF24.json +0 -1
  825. package/dist/collection/components/calcite-icon/assets/calcite-icon/xOctagonF32.json +0 -1
  826. package/dist/collection/components/calcite-label/interfaces.js +0 -1
  827. package/dist/collection/components/calcite-test/interfaces.js +0 -1
  828. package/dist/collection/components/functional/CalciteContentArea.js +0 -54
  829. package/dist/collection/demos/_assets/createAlert.js +0 -16
  830. package/dist/collection/demos/_assets/demo-spacer.js +0 -17
  831. package/dist/collection/demos/_assets/demo-template.js +0 -13
  832. package/dist/collection/demos/_assets/demoPageReloader.js +0 -10
  833. package/dist/collection/demos/_assets/head.js +0 -51
  834. package/dist/collection/demos/_assets/loadingButton.js +0 -5
  835. package/dist/collection/demos/_assets/locales.js +0 -50
  836. package/dist/collection/demos/_assets/toggleBodyTheme.js +0 -13
  837. package/dist/collection/demos/_assets/toggles.js +0 -50
  838. package/dist/collection/demos/_assets/validateInput.js +0 -111
  839. package/dist/esm-es5/CalciteExpandToggle-476279ee.js +0 -1
  840. package/dist/esm-es5/dom-0b02c0cf.js +0 -1
  841. package/dist/esm-es5/popper-58fae6b8.js +0 -1
  842. package/dist/esm-es5/resources-1a6ba3ca.js +0 -1
  843. package/dist/esm-es5/resources-91bd199f.js +0 -1
  844. package/dist/types/components/calcite-label/interfaces.d.ts +0 -5
  845. package/dist/types/components/functional/CalciteContentArea.d.ts +0 -15
@@ -1 +1 @@
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}}};import{r as registerInstance,c as createEvent,h,F as Fragment,g as getElement}from"./index-1554a132.js";import{C as CSS,I as ICONS,S as SLOTS}from"./resources-82817f70.js";import{a as getSlotted,f as focusElement}from"./dom-0b02c0cf.js";import{g as getRoundRobinIndex}from"./array-af19adb2.js";import{g as guid}from"./guid-09142681.js";var calciteActionMenuCss="@-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 SUPPORTED_BUTTON_NAV_KEYS=["ArrowUp","ArrowDown"];var SUPPORTED_MENU_NAV_KEYS=["ArrowUp","ArrowDown","End","Home"];var CalciteActionMenu=function(){function e(e){var t=this;registerInstance(this,e);this.calciteActionMenuOpenChange=createEvent(this,"calciteActionMenuOpenChange",7);this.expanded=false;this.open=false;this.overlayPositioning="absolute";this.placement="auto";this.actionElements=[];this.mutationObserver=new MutationObserver((function(){return t.getActions()}));this.guid="calcite-action-menu-"+guid();this.menuId=this.guid+"-menu";this.menuButtonId=this.guid+"-menu-button";this.activeMenuItemIndex=-1;this.connectMenuButtonEl=function(){var e=t,n=e.el,i=e.menuButtonId,o=e.menuId,a=e.open,r=e.label;var l=getSlotted(n,SLOTS.trigger)||t.defaultMenuButtonEl;if(t.menuButtonEl===l){return}t.disconnectMenuButtonEl();t.menuButtonEl=l;t.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=i}if(!l.label){l.label=r}if(!l.text){l.text=r}l.addEventListener("click",t.menuButtonClick);l.addEventListener("keydown",t.menuButtonKeyDown);l.addEventListener("keyup",t.menuButtonKeyUp)};this.disconnectMenuButtonEl=function(){var e=t.menuButtonEl;if(!e){return}e.removeEventListener("click",t.menuButtonClick);e.removeEventListener("keydown",t.menuButtonKeyDown);e.removeEventListener("keyup",t.menuButtonKeyUp)};this.setDefaultMenuButtonEl=function(e){t.defaultMenuButtonEl=e;t.connectMenuButtonEl()};this.handleCalciteActionClick=function(){t.open=false;t.setFocus()};this.menuButtonClick=function(){t.toggleOpen()};this.setTooltipReferenceElement=function(){var e=t,n=e.el,i=e.expanded,o=e.menuButtonEl;var a=getSlotted(n,SLOTS.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=!i?o:null}};this.updateAction=function(e,n){var i=t,o=i.guid,a=i.activeMenuItemIndex;var r=o+"-action-"+n;e.tabIndex=-1;e.setAttribute("role","menuitem");if(!e.id){e.id=r}e.active=n===a};this.updateActions=function(e){e===null||e===void 0?void 0:e.forEach(t.updateAction)};this.getActions=function(){var e=t.el;var n=t.getAssignedElements().filter((function(e){return e.tagName==="CALCITE-ACTION"&&e.slot!=="trigger"}));var i=n.length?n:Array.from(e.querySelectorAll("calcite-action:not([slot=trigger])"));t.updateActions(i);t.actionElements=i;t.connectMenuButtonEl()};this.menuButtonKeyUp=function(e){var n=e.key;var i=t.actionElements;if(!t.isValidKey(n,SUPPORTED_BUTTON_NAV_KEYS)){return}e.preventDefault();if(!i.length){return}t.toggleOpen(true);t.handleActionNavigation(n,i)};this.menuButtonKeyDown=function(e){var n=e.key;if(!t.isValidKey(n,SUPPORTED_BUTTON_NAV_KEYS)){return}e.preventDefault()};this.menuActionsContainerKeyDown=function(e){var n=e.key;var i=t,o=i.actionElements,a=i.activeMenuItemIndex;if(n==="Tab"){t.open=false;return}if(n===" "||n==="Enter"){e.preventDefault();var r=o[a];r?r.click():t.toggleOpen(false);return}if(t.isValidKey(n,SUPPORTED_MENU_NAV_KEYS)){e.preventDefault()}};this.menuActionsContainerKeyUp=function(e){var n=e.key;var i=t.actionElements;if(n==="Escape"){t.toggleOpen(false);return}if(!t.isValidKey(n,SUPPORTED_MENU_NAV_KEYS)){return}e.preventDefault();if(!i.length){return}t.handleActionNavigation(n,i)};this.handleActionNavigation=function(e,n){var i=t.activeMenuItemIndex;if(e==="Home"){t.activeMenuItemIndex=0}if(e==="End"){t.activeMenuItemIndex=n.length-1}if(e==="ArrowUp"){t.activeMenuItemIndex=getRoundRobinIndex(Math.max(i-1,-1),n.length)}if(e==="ArrowDown"){t.activeMenuItemIndex=getRoundRobinIndex(i+1,n.length)}};this.toggleOpenEnd=function(){t.setFocus();t.el.removeEventListener("calcitePopoverOpen",t.toggleOpenEnd)};this.toggleOpen=function(e){if(e===void 0){e=!t.open}t.el.addEventListener("calcitePopoverOpen",t.toggleOpenEnd);t.open=e}}e.prototype.connectedCallback=function(){this.mutationObserver.observe(this.el,{childList:true,subtree:true});this.getActions()};e.prototype.disconnectedCallback=function(){this.mutationObserver.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){focusElement(this.open?this.menuEl:this.menuButtonEl);return[2]}))}))};e.prototype.renderMenuButton=function(){var e=this,t=e.el,n=e.label,i=e.scale;var o=h("slot",{name:SLOTS.trigger},h("calcite-action",{class:CSS.defaultTrigger,icon:ICONS.menu,ref:this.setDefaultMenuButtonEl,scale:i,text:n}));return getSlotted(t,SLOTS.tooltip)?h("calcite-tooltip-manager",null,o):o};e.prototype.renderMenuItems=function(){var e=this;var t=this,n=t.actionElements,i=t.activeMenuItemIndex,o=t.open,a=t.menuId,r=t.menuButtonEl,l=t.label,s=t.placement,c=t.overlayPositioning;var u=n[i];var f=(u===null||u===void 0?void 0:u.id)||null;return h("calcite-popover",{disablePointer:true,label:l,offsetDistance:0,open:o,overlayPositioning:c,placement:s,referenceElement:r},h("div",{"aria-activedescendant":f,"aria-labelledby":r===null||r===void 0?void 0:r.id,class:CSS.menu,id:a,onClick:this.handleCalciteActionClick,onKeyDown:this.menuActionsContainerKeyDown,onKeyUp:this.menuActionsContainerKeyUp,ref:function(t){return e.menuEl=t},role:"menu",tabIndex:-1},h("slot",null)))};e.prototype.render=function(){return h(Fragment,null,this.renderMenuButton(),this.renderMenuItems(),h("slot",{name:SLOTS.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 getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{expanded:["expandedHandler"],open:["openHandler"],activeMenuItemIndex:["activeMenuItemIndexHandler"]}},enumerable:false,configurable:true});return e}();CalciteActionMenu.style=calciteActionMenuCss;export{CalciteActionMenu as calcite_action_menu};
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}}};import{r as registerInstance,c as createEvent,h,F as Fragment,g as getElement}from"./index-f8f0bea7.js";import{C as CSS,I as ICONS,S as SLOTS}from"./resources-82817f70.js";import{a as getSlotted,f as focusElement}from"./dom-b369a031.js";import{g as getRoundRobinIndex}from"./array-af19adb2.js";import{g as guid}from"./guid-09142681.js";import{c as createObserver}from"./observers-c93d4fe5.js";var calciteActionMenuCss="@-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 SUPPORTED_BUTTON_NAV_KEYS=["ArrowUp","ArrowDown"];var SUPPORTED_MENU_NAV_KEYS=["ArrowUp","ArrowDown","End","Home"];var CalciteActionMenu=function(){function e(e){var t=this;registerInstance(this,e);this.calciteActionMenuOpenChange=createEvent(this,"calciteActionMenuOpenChange",7);this.expanded=false;this.open=false;this.overlayPositioning="absolute";this.placement="auto";this.actionElements=[];this.mutationObserver=createObserver("mutation",(function(){return t.getActions()}));this.guid="calcite-action-menu-"+guid();this.menuId=this.guid+"-menu";this.menuButtonId=this.guid+"-menu-button";this.activeMenuItemIndex=-1;this.connectMenuButtonEl=function(){var e=t,n=e.el,i=e.menuButtonId,o=e.menuId,a=e.open,r=e.label;var l=getSlotted(n,SLOTS.trigger)||t.defaultMenuButtonEl;if(t.menuButtonEl===l){return}t.disconnectMenuButtonEl();t.menuButtonEl=l;t.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=i}if(!l.label){l.label=r}if(!l.text){l.text=r}l.addEventListener("click",t.menuButtonClick);l.addEventListener("keydown",t.menuButtonKeyDown);l.addEventListener("keyup",t.menuButtonKeyUp)};this.disconnectMenuButtonEl=function(){var e=t.menuButtonEl;if(!e){return}e.removeEventListener("click",t.menuButtonClick);e.removeEventListener("keydown",t.menuButtonKeyDown);e.removeEventListener("keyup",t.menuButtonKeyUp)};this.setDefaultMenuButtonEl=function(e){t.defaultMenuButtonEl=e;t.connectMenuButtonEl()};this.handleCalciteActionClick=function(){t.open=false;t.setFocus()};this.menuButtonClick=function(){t.toggleOpen()};this.setTooltipReferenceElement=function(){var e=t,n=e.el,i=e.expanded,o=e.menuButtonEl;var a=getSlotted(n,SLOTS.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=!i?o:null}};this.updateAction=function(e,n){var i=t,o=i.guid,a=i.activeMenuItemIndex;var r=o+"-action-"+n;e.tabIndex=-1;e.setAttribute("role","menuitem");if(!e.id){e.id=r}e.active=n===a};this.updateActions=function(e){e===null||e===void 0?void 0:e.forEach(t.updateAction)};this.getActions=function(){var e=t.el;var n=t.getAssignedElements().filter((function(e){return e.tagName==="CALCITE-ACTION"&&e.slot!=="trigger"}));var i=n.length?n:Array.from(e.querySelectorAll("calcite-action:not([slot=trigger])"));t.updateActions(i);t.actionElements=i;t.connectMenuButtonEl()};this.menuButtonKeyUp=function(e){var n=e.key;var i=t.actionElements;if(!t.isValidKey(n,SUPPORTED_BUTTON_NAV_KEYS)){return}e.preventDefault();if(!i.length){return}t.toggleOpen(true);t.handleActionNavigation(n,i)};this.menuButtonKeyDown=function(e){var n=e.key;if(!t.isValidKey(n,SUPPORTED_BUTTON_NAV_KEYS)){return}e.preventDefault()};this.menuActionsContainerKeyDown=function(e){var n=e.key;var i=t,o=i.actionElements,a=i.activeMenuItemIndex;if(n==="Tab"){t.open=false;return}if(n===" "||n==="Enter"){e.preventDefault();var r=o[a];r?r.click():t.toggleOpen(false);return}if(t.isValidKey(n,SUPPORTED_MENU_NAV_KEYS)){e.preventDefault()}};this.menuActionsContainerKeyUp=function(e){var n=e.key;var i=t.actionElements;if(n==="Escape"){t.toggleOpen(false);return}if(!t.isValidKey(n,SUPPORTED_MENU_NAV_KEYS)){return}e.preventDefault();if(!i.length){return}t.handleActionNavigation(n,i)};this.handleActionNavigation=function(e,n){var i=t.activeMenuItemIndex;if(e==="Home"){t.activeMenuItemIndex=0}if(e==="End"){t.activeMenuItemIndex=n.length-1}if(e==="ArrowUp"){t.activeMenuItemIndex=getRoundRobinIndex(Math.max(i-1,-1),n.length)}if(e==="ArrowDown"){t.activeMenuItemIndex=getRoundRobinIndex(i+1,n.length)}};this.toggleOpenEnd=function(){t.setFocus();t.el.removeEventListener("calcitePopoverOpen",t.toggleOpenEnd)};this.toggleOpen=function(e){if(e===void 0){e=!t.open}t.el.addEventListener("calcitePopoverOpen",t.toggleOpenEnd);t.open=e}}e.prototype.connectedCallback=function(){this.mutationObserver.observe(this.el,{childList:true,subtree:true});this.getActions()};e.prototype.disconnectedCallback=function(){this.mutationObserver.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){focusElement(this.open?this.menuEl:this.menuButtonEl);return[2]}))}))};e.prototype.renderMenuButton=function(){var e=this,t=e.el,n=e.label,i=e.scale;var o=h("slot",{name:SLOTS.trigger},h("calcite-action",{class:CSS.defaultTrigger,icon:ICONS.menu,ref:this.setDefaultMenuButtonEl,scale:i,text:n}));return getSlotted(t,SLOTS.tooltip)?h("calcite-tooltip-manager",null,o):o};e.prototype.renderMenuItems=function(){var e=this;var t=this,n=t.actionElements,i=t.activeMenuItemIndex,o=t.open,a=t.menuId,r=t.menuButtonEl,l=t.label,s=t.placement,c=t.overlayPositioning;var u=n[i];var f=(u===null||u===void 0?void 0:u.id)||null;return h("calcite-popover",{disablePointer:true,label:l,offsetDistance:0,open:o,overlayPositioning:c,placement:s,referenceElement:r},h("div",{"aria-activedescendant":f,"aria-labelledby":r===null||r===void 0?void 0:r.id,class:CSS.menu,id:a,onClick:this.handleCalciteActionClick,onKeyDown:this.menuActionsContainerKeyDown,onKeyUp:this.menuActionsContainerKeyUp,ref:function(t){return e.menuEl=t},role:"menu",tabIndex:-1},h("slot",null)))};e.prototype.render=function(){return h(Fragment,null,this.renderMenuButton(),this.renderMenuItems(),h("slot",{name:SLOTS.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 getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{expanded:["expandedHandler"],open:["openHandler"],activeMenuItemIndex:["activeMenuItemIndexHandler"]}},enumerable:false,configurable:true});return e}();CalciteActionMenu.style=calciteActionMenuCss;export{CalciteActionMenu as calcite_action_menu};
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,a,n){function i(t){return t instanceof a?t:new a((function(e){e(t)}))}return new(a||(a=Promise))((function(a,o){function r(t){try{c(n.next(t))}catch(t){o(t)}}function l(t){try{c(n["throw"](t))}catch(t){o(t)}}function c(t){t.done?a(t.value):i(t.value).then(r,l)}c((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var a={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,r;return r={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function l(t){return function(e){return c([t,e])}}function c(r){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,i&&(o=r[0]&2?i["return"]:r[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;if(i=0,o)r=[r[0]&2,o.value];switch(r[0]){case 0:case 1:o=r;break;case 4:a.label++;return{value:r[1],done:false};case 5:a.label++;i=r[1];r=[0];continue;case 7:r=a.ops.pop();a.trys.pop();continue;default:if(!(o=a.trys,o=o.length>0&&o[o.length-1])&&(r[0]===6||r[0]===2)){a=0;continue}if(r[0]===3&&(!o||r[1]>o[0]&&r[1]<o[3])){a.label=r[1];break}if(r[0]===6&&a.label<o[1]){a.label=o[1];o=r;break}if(o&&a.label<o[2]){a.label=o[2];a.ops.push(r);break}if(o[2])a.ops.pop();a.trys.pop();continue}r=e.call(t,a)}catch(t){r=[6,t];i=0}finally{n=o=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-1554a132.js";import{t as toggleChildActionText,C as CalciteExpandToggle}from"./CalciteExpandToggle-476279ee.js";import{f as focusElement,a as getSlotted,g as getElementDir,C as CSS_UTILITY}from"./dom-0b02c0cf.js";import"./resources-82817f70.js";import"./resources-c72ebfea.js";import"./guid-09142681.js";var CSS={actionGroupBottom:"action-group--bottom",container:"container"};var TEXT={expand:"Expand",collapse:"Collapse"};var SLOTS={expandTooltip:"expand-tooltip"};var calciteActionPadCss="@-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:block;-webkit-animation:in var(--calcite-animation-timing) ease-in-out;animation:in var(--calcite-animation-timing) ease-in-out;border-radius:0.125rem}:host([expanded]){max-width:20vw}::slotted(calcite-action-group){border-width:0;border-bottom-width:1px;border-color:var(--calcite-ui-border-3);border-style:solid;padding-bottom:0;padding-top:0}.container{-ms-flex-direction:column;flex-direction:column;display:-ms-inline-flexbox;display:inline-flex;overflow-y:auto;border-radius:0.25rem;background-color:var(--calcite-ui-background);-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);max-width:15vw}.action-group--bottom{-ms-flex-positive:1;flex-grow:1;-ms-flex-pack:end;justify-content:flex-end;padding-bottom:0}:host([layout=horizontal]) .container{-ms-flex-direction:row;flex-direction:row;max-width:unset}:host([layout=horizontal]) .container .action-group--bottom{padding:0}:host([layout=horizontal]) .container ::slotted(calcite-action-group){border-width:0;border-right-width:1px;padding:0}:host([layout=horizontal]) .container.calcite--rtl ::slotted(calcite-action-group){border-width:0;border-left-width:1px}::slotted(calcite-action-group:last-child){border-bottom-width:0}";var CalciteActionPad=function(){function t(t){var e=this;registerInstance(this,t);this.calciteActionPadToggle=createEvent(this,"calciteActionPadToggle",7);this.expandDisabled=false;this.expanded=false;this.layout="vertical";this.actionMenuOpenChangeHandler=function(t){if(t.detail){var a=t.composedPath();Array.from(e.el.querySelectorAll("calcite-action-group")).forEach((function(t){if(!a.includes(t)){t.menuOpen=false}}))}};this.toggleExpand=function(){e.expanded=!e.expanded};this.setExpandToggleRef=function(t){e.expandToggleEl=t}}t.prototype.expandHandler=function(t){if(!t){toggleChildActionText({parent:this.el,expanded:this.expanded})}};t.prototype.expandedHandler=function(t){if(!this.expandDisabled){toggleChildActionText({parent:this.el,expanded:t})}this.calciteActionPadToggle.emit()};t.prototype.componentWillLoad=function(){var t=this,e=t.el,a=t.expandDisabled,n=t.expanded;if(!a){toggleChildActionText({parent:e,expanded:n})}};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:if(!(t==="expand-toggle"))return[3,2];return[4,focusElement(this.expandToggleEl)];case 1:e.sent();return[2];case 2:this.el.focus();return[2]}}))}))};t.prototype.renderBottomActionGroup=function(){var t=this,e=t.expanded,a=t.expandDisabled,n=t.intlExpand,i=t.intlCollapse,o=t.el,r=t.position,l=t.toggleExpand,c=t.scale;var s=getSlotted(o,SLOTS.expandTooltip);var p=n||TEXT.expand;var d=i||TEXT.collapse;var u=!a?h(CalciteExpandToggle,{el:o,expanded:e,intlCollapse:d,intlExpand:p,position:r,ref:this.setExpandToggleRef,scale:c,toggle:l,tooltip:s}):null;return u?h("calcite-action-group",{class:CSS.actionGroupBottom,scale:c},h("slot",{name:SLOTS.expandTooltip}),u):null};t.prototype.render=function(){var t;var e=getElementDir(this.el)==="rtl";var a=(t={},t[CSS.container]=true,t[CSS_UTILITY.rtl]=e,t);return h(Host,{onCalciteActionMenuOpenChange:this.actionMenuOpenChangeHandler},h("div",{class:a},h("slot",null),this.renderBottomActionGroup()))};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{expandDisabled:["expandHandler"],expanded:["expandedHandler"]}},enumerable:false,configurable:true});return t}();CalciteActionPad.style=calciteActionPadCss;export{CalciteActionPad as calcite_action_pad};
1
+ var __awaiter=this&&this.__awaiter||function(t,e,a,n){function i(t){return t instanceof a?t:new a((function(e){e(t)}))}return new(a||(a=Promise))((function(a,o){function r(t){try{c(n.next(t))}catch(t){o(t)}}function l(t){try{c(n["throw"](t))}catch(t){o(t)}}function c(t){t.done?a(t.value):i(t.value).then(r,l)}c((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var a={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,r;return r={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function l(t){return function(e){return c([t,e])}}function c(r){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,i&&(o=r[0]&2?i["return"]:r[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;if(i=0,o)r=[r[0]&2,o.value];switch(r[0]){case 0:case 1:o=r;break;case 4:a.label++;return{value:r[1],done:false};case 5:a.label++;i=r[1];r=[0];continue;case 7:r=a.ops.pop();a.trys.pop();continue;default:if(!(o=a.trys,o=o.length>0&&o[o.length-1])&&(r[0]===6||r[0]===2)){a=0;continue}if(r[0]===3&&(!o||r[1]>o[0]&&r[1]<o[3])){a.label=r[1];break}if(r[0]===6&&a.label<o[1]){a.label=o[1];o=r;break}if(o&&a.label<o[2]){a.label=o[2];a.ops.push(r);break}if(o[2])a.ops.pop();a.trys.pop();continue}r=e.call(t,a)}catch(t){r=[6,t];i=0}finally{n=o=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-f8f0bea7.js";import{t as toggleChildActionText,C as CalciteExpandToggle}from"./CalciteExpandToggle-a149fed4.js";import{f as focusElement,a as getSlotted,g as getElementDir,C as CSS_UTILITY}from"./dom-b369a031.js";import"./resources-82817f70.js";import"./resources-c72ebfea.js";import"./guid-09142681.js";var CSS={actionGroupBottom:"action-group--bottom",container:"container"};var TEXT={expand:"Expand",collapse:"Collapse"};var SLOTS={expandTooltip:"expand-tooltip"};var calciteActionPadCss="@-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:block;-webkit-animation:in var(--calcite-animation-timing) ease-in-out;animation:in var(--calcite-animation-timing) ease-in-out;border-radius:0.125rem}:host([expanded]){max-width:20vw}::slotted(calcite-action-group){border-width:0;border-bottom-width:1px;border-color:var(--calcite-ui-border-3);border-style:solid;padding-bottom:0;padding-top:0}.container{-ms-flex-direction:column;flex-direction:column;display:-ms-inline-flexbox;display:inline-flex;overflow-y:auto;border-radius:0.25rem;background-color:var(--calcite-ui-background);-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);max-width:15vw}.action-group--bottom{-ms-flex-positive:1;flex-grow:1;-ms-flex-pack:end;justify-content:flex-end;padding-bottom:0}:host([layout=horizontal]) .container{-ms-flex-direction:row;flex-direction:row;max-width:unset}:host([layout=horizontal]) .container .action-group--bottom{padding:0}:host([layout=horizontal]) .container ::slotted(calcite-action-group){border-width:0;border-right-width:1px;padding:0}:host([layout=horizontal]) .container.calcite--rtl ::slotted(calcite-action-group){border-width:0;border-left-width:1px}::slotted(calcite-action-group:last-child){border-bottom-width:0}";var CalciteActionPad=function(){function t(t){var e=this;registerInstance(this,t);this.calciteActionPadToggle=createEvent(this,"calciteActionPadToggle",7);this.expandDisabled=false;this.expanded=false;this.layout="vertical";this.actionMenuOpenChangeHandler=function(t){if(t.detail){var a=t.composedPath();Array.from(e.el.querySelectorAll("calcite-action-group")).forEach((function(t){if(!a.includes(t)){t.menuOpen=false}}))}};this.toggleExpand=function(){e.expanded=!e.expanded};this.setExpandToggleRef=function(t){e.expandToggleEl=t}}t.prototype.expandHandler=function(t){if(!t){toggleChildActionText({parent:this.el,expanded:this.expanded})}};t.prototype.expandedHandler=function(t){if(!this.expandDisabled){toggleChildActionText({parent:this.el,expanded:t})}this.calciteActionPadToggle.emit()};t.prototype.componentWillLoad=function(){var t=this,e=t.el,a=t.expandDisabled,n=t.expanded;if(!a){toggleChildActionText({parent:e,expanded:n})}};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:if(!(t==="expand-toggle"))return[3,2];return[4,focusElement(this.expandToggleEl)];case 1:e.sent();return[2];case 2:this.el.focus();return[2]}}))}))};t.prototype.renderBottomActionGroup=function(){var t=this,e=t.expanded,a=t.expandDisabled,n=t.intlExpand,i=t.intlCollapse,o=t.el,r=t.position,l=t.toggleExpand,c=t.scale;var s=getSlotted(o,SLOTS.expandTooltip);var p=n||TEXT.expand;var d=i||TEXT.collapse;var u=!a?h(CalciteExpandToggle,{el:o,expanded:e,intlCollapse:d,intlExpand:p,position:r,ref:this.setExpandToggleRef,scale:c,toggle:l,tooltip:s}):null;return u?h("calcite-action-group",{class:CSS.actionGroupBottom,scale:c},h("slot",{name:SLOTS.expandTooltip}),u):null};t.prototype.render=function(){var t;var e=getElementDir(this.el)==="rtl";var a=(t={},t[CSS.container]=true,t[CSS_UTILITY.rtl]=e,t);return h(Host,{onCalciteActionMenuOpenChange:this.actionMenuOpenChangeHandler},h("div",{class:a},h("slot",null),this.renderBottomActionGroup()))};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{expandDisabled:["expandHandler"],expanded:["expandedHandler"]}},enumerable:false,configurable:true});return t}();CalciteActionPad.style=calciteActionPadCss;export{CalciteActionPad as calcite_action_pad};
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,i,n){function o(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,a){function r(t){try{l(n.next(t))}catch(t){a(t)}}function c(t){try{l(n["throw"](t))}catch(t){a(t)}}function l(t){t.done?i(t.value):o(t.value).then(r,c)}l((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,o,a,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 l([t,e])}}function l(r){if(n)throw new TypeError("Generator is already executing.");while(i)try{if(n=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:i.label++;return{value:r[1],done:false};case 5:i.label++;o=r[1];r=[0];continue;case 7:r=i.ops.pop();i.trys.pop();continue;default:if(!(a=i.trys,a=a.length>0&&a[a.length-1])&&(r[0]===6||r[0]===2)){i=0;continue}if(r[0]===3&&(!a||r[1]>a[0]&&r[1]<a[3])){i.label=r[1];break}if(r[0]===6&&i.label<a[1]){i.label=a[1];a=r;break}if(a&&i.label<a[2]){i.label=a[2];i.ops.push(r);break}if(a[2])i.ops.pop();i.trys.pop();continue}r=e.call(t,i)}catch(t){r=[6,t];o=0}finally{n=a=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,f as forceUpdate,h,H as Host,g as getElement}from"./index-1554a132.js";import{g as getElementDir,C as CSS_UTILITY}from"./dom-0b02c0cf.js";import"./guid-09142681.js";var CSS={button:"button",buttonTextVisible:"button--text-visible",buttonCompact:"button--compact",iconContainer:"icon-container",slotContainer:"slot-container",slotContainerHidden:"slot-container--hidden",textContainer:"text-container",textContainerVisible:"text-container--visible"};var TEXT={loading:"Loading"};var calciteActionCss='@-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;background-color:transparent}:host([disabled]){pointer-events:none}.button{background-color:var(--calcite-ui-foreground-1);border-style:none;cursor:pointer;fill:var(--calcite-ui-text-3);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;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start;margin:0;position:relative;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-3);width:auto;font-family:inherit;text-align:unset}.button:hover{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1);fill:var(--calcite-ui-text-1)}.button:focus{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1);fill:var(--calcite-ui-text-1);outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.button:active{background-color:var(--calcite-ui-foreground-3)}.button .icon-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;margin:0;pointer-events:none;min-width:1rem;min-height:1rem}.button .text-container{line-height:1rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0;width:0;opacity:0;-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-duration:150ms;transition-duration:150ms;-webkit-transition-property:opacity;transition-property:opacity;-webkit-transition-property:margin;transition-property:margin;-webkit-transition-property:width;transition-property:width}.button .text-container--visible{-ms-flex:1 1 auto;flex:1 1 auto;opacity:1;width:auto}:host([scale=s]) .button{font-weight:var(--calcite-font-weight-normal);padding:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s]) .button--text-visible .icon-container{margin-right:0.5rem}:host([scale=m]) .button{font-weight:var(--calcite-font-weight-normal);padding:1rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]) .button--text-visible .icon-container{margin-right:0.75rem}:host([scale=l]) .button{font-weight:var(--calcite-font-weight-normal);padding:1.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]) .button--text-visible .icon-container{margin-right:1rem}:host([alignment=center]) .button{-ms-flex-pack:center;justify-content:center;width:100%}:host([alignment=end]) .button{-ms-flex-pack:end;justify-content:flex-end}:host([alignment=end]) .button .text-container--visible{-ms-flex:0 1 auto;flex:0 1 auto}:host([scale=s][compact]) .button,:host([scale=m][compact]) .button,:host([scale=l][compact]) .button{padding-left:0;padding-right:0}.slot-container{display:-ms-flexbox;display:flex}.slot-container--hidden{display:none}.button--text-visible{width:100%}.button--text-visible .icon-container{margin:0}.button--text-visible .text-container--visible{margin:0;margin-right:0.5rem}.button--text-visible.calcite--rtl .text-container--visible{margin:0;margin-left:0.5rem}:host([scale=s]) .button--text-visible.calcite--rtl .icon-container{margin:0;margin-left:0.5rem}:host([scale=m]) .button--text-visible.calcite--rtl .icon-container{margin:0;margin-left:0.75rem}:host([scale=l]) .button--text-visible.calcite--rtl .icon-container{margin:0;margin-left:1rem}:host([active]) .button,:host([active]) .button:hover,:host([active]) .button:focus,:host([active][loading]) .button{color:var(--calcite-ui-text-1);fill:var(--calcite-ui-text-1);background-color:var(--calcite-ui-foreground-3)}:host([active]) .button:active{background-color:var(--calcite-ui-foreground-1)}:host([appearance=clear]) .button{background-color:transparent;-webkit-transition-property:-webkit-box-shadow;transition-property:-webkit-box-shadow;transition-property:box-shadow;transition-property:box-shadow, -webkit-box-shadow;-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([appearance=clear]) .button:hover,:host([appearance=clear]) .button:focus{background-color:transparent;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-border-1) inset;box-shadow:0 0 0 2px var(--calcite-ui-border-1) inset}:host([active][appearance=clear]) .button,:host([active][appearance=clear]) .button:hover,:host([active][appearance=clear]) .button:focus{color:var(--calcite-ui-text-1);fill:var(--calcite-ui-text-1);background-color:var(--calcite-ui-foreground-3)}:host([appearance=clear][loading]) .button,:host([appearance=clear][disabled]) .button{background-color:transparent}:host([loading]) .button,:host([loading]) .button:hover,:host([loading]) .button:focus{background-color:var(--calcite-ui-foreground-1)}:host([loading]) .button .text-container,:host([loading]) .button:hover .text-container,:host([loading]) .button:focus .text-container{opacity:var(--calcite-ui-opacity-disabled)}:host([loading]) calcite-loader[inline]{margin-right:0;color:var(--calcite-ui-text-3)}:host([disabled]) .button,:host([disabled]) .button:hover,:host([disabled]) .button:focus{cursor:default;opacity:var(--calcite-ui-opacity-disabled);background-color:var(--calcite-ui-foreground-1)}:host([disabled][active]) .button,:host([disabled][active]) .button:hover,:host([disabled][active]) .button:focus{opacity:var(--calcite-ui-opacity-disabled);background-color:var(--calcite-ui-foreground-3)}:host([indicator]) .button--text-visible,:host([indicator][scale=s]) .button--text-visible,:host([indicator][scale=l]) .button--text-visible{padding-right:1rem}:host([indicator]) .button::after{content:"";position:absolute;border-width:2px;background-color:var(--calcite-ui-brand);border-radius:9999px;height:0.5rem;width:0.5rem;z-index:10;border-color:var(--calcite-ui-foreground-1);bottom:0.5rem;right:0.5rem}:host([indicator][scale=s]) .button::after{bottom:0.25rem;right:0.25rem}:host([indicator][scale=l]) .button::after{bottom:0.5rem;right:0.5rem}:host([indicator]) .calcite--rtl::after{right:auto;left:0.25rem}:host([indicator]) .button--text-visible.calcite--rtl{padding-right:0.75rem;padding-left:1rem}:host([indicator]) .button:hover::after,:host([indicator]) .button:focus::after{border-color:var(--calcite-ui-foreground-1)}:host([indicator][active]) .button::after{border-color:var(--calcite-ui-foreground-3)}:host([indicator]) .button--text-visible::after,:host([indicator][scale=s]) .button--text-visible::after,:host([indicator][scale=l]) .button--text-visible::after{bottom:auto;right:0.5rem}:host([indicator]) .button--text-visible.calcite--rtl::after,:host([indicator][scale=s]) .button--text-visible.calcite--rtl::after,:host([indicator][scale=l]) .button--text-visible.calcite--rtl::after{right:auto;left:0.5rem}';var CalciteAction=function(){function t(t){var e=this;registerInstance(this,t);this.calciteActionClick=createEvent(this,"calciteActionClick",7);this.appearance="solid";this.active=false;this.compact=false;this.disabled=false;this.indicator=false;this.intlLoading=TEXT.loading;this.loading=false;this.scale="m";this.textEnabled=false;this.observer=new MutationObserver((function(){return forceUpdate(e)}));this.calciteActionClickHandler=function(){if(!e.disabled){e.calciteActionClick.emit()}}}t.prototype.connectedCallback=function(){this.observer.observe(this.el,{childList:true,subtree:true})};t.prototype.disconnectedCallback=function(){this.observer.disconnect()};t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.buttonEl.focus();return[2]}))}))};t.prototype.renderTextContainer=function(){var t;var e=this,i=e.text,n=e.textEnabled;var o=(t={},t[CSS.textContainer]=true,t[CSS.textContainerVisible]=n,t);return i?h("div",{class:o,key:"text-container"},i):null};t.prototype.renderIconContainer=function(){var t;var e;var i=this,n=i.loading,o=i.icon,a=i.scale,r=i.el,c=i.intlLoading;var l=a==="l"?"m":"s";var s=n?h("calcite-loader",{active:true,inline:true,label:c,scale:l}):null;var u=o?h("calcite-icon",{icon:o,scale:l}):null;var b=s||u;var d=b||((e=r.children)===null||e===void 0?void 0:e.length);var f=h("div",{class:(t={},t[CSS.slotContainer]=true,t[CSS.slotContainerHidden]=n,t)},h("slot",null));return d?h("div",{"aria-hidden":"true",class:CSS.iconContainer,key:"icon-container"},b,f):null};t.prototype.render=function(){var t;var e=this;var i=this,n=i.compact,o=i.disabled,a=i.loading,r=i.el,c=i.textEnabled,l=i.label,s=i.text;var u=l||s;var b=getElementDir(r)==="rtl";var d=(t={},t[CSS.button]=true,t[CSS.buttonTextVisible]=c,t[CSS.buttonCompact]=n,t[CSS_UTILITY.rtl]=b,t);return h(Host,{onClick:this.calciteActionClickHandler},h("button",{"aria-busy":a.toString(),"aria-disabled":o.toString(),"aria-label":u,class:d,disabled:o,ref:function(t){return e.buttonEl=t}},this.renderIconContainer(),this.renderTextContainer()))};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();CalciteAction.style=calciteActionCss;export{CalciteAction as calcite_action};
1
+ var __awaiter=this&&this.__awaiter||function(t,e,i,n){function o(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,a){function r(t){try{l(n.next(t))}catch(t){a(t)}}function c(t){try{l(n["throw"](t))}catch(t){a(t)}}function l(t){t.done?i(t.value):o(t.value).then(r,c)}l((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,o,a,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 l([t,e])}}function l(r){if(n)throw new TypeError("Generator is already executing.");while(i)try{if(n=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:i.label++;return{value:r[1],done:false};case 5:i.label++;o=r[1];r=[0];continue;case 7:r=i.ops.pop();i.trys.pop();continue;default:if(!(a=i.trys,a=a.length>0&&a[a.length-1])&&(r[0]===6||r[0]===2)){i=0;continue}if(r[0]===3&&(!a||r[1]>a[0]&&r[1]<a[3])){i.label=r[1];break}if(r[0]===6&&i.label<a[1]){i.label=a[1];a=r;break}if(a&&i.label<a[2]){i.label=a[2];i.ops.push(r);break}if(a[2])i.ops.pop();i.trys.pop();continue}r=e.call(t,i)}catch(t){r=[6,t];o=0}finally{n=a=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,H as Host,g as getElement,f as forceUpdate}from"./index-f8f0bea7.js";import{g as getElementDir,C as CSS_UTILITY}from"./dom-b369a031.js";import{c as createObserver}from"./observers-c93d4fe5.js";import"./guid-09142681.js";var CSS={button:"button",buttonTextVisible:"button--text-visible",buttonCompact:"button--compact",iconContainer:"icon-container",slotContainer:"slot-container",slotContainerHidden:"slot-container--hidden",textContainer:"text-container",textContainerVisible:"text-container--visible"};var TEXT={loading:"Loading"};var calciteActionCss='@-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;background-color:transparent}:host([disabled]){pointer-events:none}.button{background-color:var(--calcite-ui-foreground-1);border-style:none;cursor:pointer;fill:var(--calcite-ui-text-3);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;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start;margin:0;position:relative;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-3);width:auto;font-family:inherit;text-align:unset}.button:hover{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1);fill:var(--calcite-ui-text-1)}.button:focus{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1);fill:var(--calcite-ui-text-1);outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.button:active{background-color:var(--calcite-ui-foreground-3)}.button .icon-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;margin:0;pointer-events:none;min-width:1rem;min-height:1rem}.button .text-container{line-height:1rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0;width:0;opacity:0;-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-duration:150ms;transition-duration:150ms;-webkit-transition-property:opacity;transition-property:opacity;-webkit-transition-property:margin;transition-property:margin;-webkit-transition-property:width;transition-property:width}.button .text-container--visible{-ms-flex:1 1 auto;flex:1 1 auto;opacity:1;width:auto}:host([scale=s]) .button{font-weight:var(--calcite-font-weight-normal);padding:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s]) .button--text-visible .icon-container{margin-right:0.5rem}:host([scale=m]) .button{font-weight:var(--calcite-font-weight-normal);padding:1rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]) .button--text-visible .icon-container{margin-right:0.75rem}:host([scale=l]) .button{font-weight:var(--calcite-font-weight-normal);padding:1.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]) .button--text-visible .icon-container{margin-right:1rem}:host([alignment=center]) .button{-ms-flex-pack:center;justify-content:center}:host([alignment=end]) .button{-ms-flex-pack:end;justify-content:flex-end}:host([alignment=center]) .button .text-container--visible,:host([alignment=end]) .button .text-container--visible{-ms-flex:0 1 auto;flex:0 1 auto}:host([scale=s][compact]) .button,:host([scale=m][compact]) .button,:host([scale=l][compact]) .button{padding-left:0;padding-right:0}.slot-container{display:-ms-flexbox;display:flex}.slot-container--hidden{display:none}.button--text-visible{width:100%}.button--text-visible .icon-container{margin:0}.button--text-visible .text-container--visible{margin:0;margin-right:0.5rem}.button--text-visible.calcite--rtl .text-container--visible{margin:0;margin-left:0.5rem}:host([scale=s]) .button--text-visible.calcite--rtl .icon-container{margin:0;margin-left:0.5rem}:host([scale=m]) .button--text-visible.calcite--rtl .icon-container{margin:0;margin-left:0.75rem}:host([scale=l]) .button--text-visible.calcite--rtl .icon-container{margin:0;margin-left:1rem}:host([active]) .button,:host([active]) .button:hover,:host([active]) .button:focus,:host([active][loading]) .button{color:var(--calcite-ui-text-1);fill:var(--calcite-ui-text-1);background-color:var(--calcite-ui-foreground-3)}:host([active]) .button:active{background-color:var(--calcite-ui-foreground-1)}:host([appearance=clear]) .button{background-color:transparent;-webkit-transition-property:-webkit-box-shadow;transition-property:-webkit-box-shadow;transition-property:box-shadow;transition-property:box-shadow, -webkit-box-shadow;-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([appearance=clear]) .button:hover,:host([appearance=clear]) .button:focus{background-color:transparent;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-border-1) inset;box-shadow:0 0 0 2px var(--calcite-ui-border-1) inset}:host([active][appearance=clear]) .button,:host([active][appearance=clear]) .button:hover,:host([active][appearance=clear]) .button:focus{color:var(--calcite-ui-text-1);fill:var(--calcite-ui-text-1);background-color:var(--calcite-ui-foreground-3)}:host([appearance=clear][loading]) .button,:host([appearance=clear][disabled]) .button{background-color:transparent}:host([loading]) .button,:host([loading]) .button:hover,:host([loading]) .button:focus{background-color:var(--calcite-ui-foreground-1)}:host([loading]) .button .text-container,:host([loading]) .button:hover .text-container,:host([loading]) .button:focus .text-container{opacity:var(--calcite-ui-opacity-disabled)}:host([loading]) calcite-loader[inline]{margin-right:0;color:var(--calcite-ui-text-3)}:host([disabled]) .button,:host([disabled]) .button:hover,:host([disabled]) .button:focus{cursor:default;opacity:var(--calcite-ui-opacity-disabled);background-color:var(--calcite-ui-foreground-1)}:host([disabled][active]) .button,:host([disabled][active]) .button:hover,:host([disabled][active]) .button:focus{opacity:var(--calcite-ui-opacity-disabled);background-color:var(--calcite-ui-foreground-3)}:host([indicator]) .button--text-visible,:host([indicator][scale=s]) .button--text-visible,:host([indicator][scale=l]) .button--text-visible{padding-right:1rem}:host([indicator]) .button::after{content:"";position:absolute;border-width:2px;background-color:var(--calcite-ui-brand);border-radius:9999px;height:0.5rem;width:0.5rem;z-index:10;border-color:var(--calcite-ui-foreground-1);bottom:0.5rem;right:0.5rem}:host([indicator][scale=s]) .button::after{bottom:0.25rem;right:0.25rem}:host([indicator][scale=l]) .button::after{bottom:0.5rem;right:0.5rem}:host([indicator]) .calcite--rtl::after{right:auto;left:0.25rem}:host([indicator]) .button--text-visible.calcite--rtl{padding-right:0.75rem;padding-left:1rem}:host([indicator]) .button:hover::after,:host([indicator]) .button:focus::after{border-color:var(--calcite-ui-foreground-1)}:host([indicator][active]) .button::after{border-color:var(--calcite-ui-foreground-3)}:host([indicator]) .button--text-visible::after,:host([indicator][scale=s]) .button--text-visible::after,:host([indicator][scale=l]) .button--text-visible::after{bottom:auto;right:0.5rem}:host([indicator]) .button--text-visible.calcite--rtl::after,:host([indicator][scale=s]) .button--text-visible.calcite--rtl::after,:host([indicator][scale=l]) .button--text-visible.calcite--rtl::after{right:auto;left:0.5rem}';var CalciteAction=function(){function t(t){var e=this;registerInstance(this,t);this.calciteActionClick=createEvent(this,"calciteActionClick",7);this.appearance="solid";this.active=false;this.compact=false;this.disabled=false;this.indicator=false;this.intlLoading=TEXT.loading;this.loading=false;this.scale="m";this.textEnabled=false;this.mutationObserver=createObserver("mutation",(function(){return forceUpdate(e)}));this.calciteActionClickHandler=function(){if(!e.disabled){e.calciteActionClick.emit()}}}t.prototype.connectedCallback=function(){var t;(t=this.mutationObserver)===null||t===void 0?void 0:t.observe(this.el,{childList:true,subtree:true})};t.prototype.disconnectedCallback=function(){var t;(t=this.mutationObserver)===null||t===void 0?void 0:t.disconnect()};t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.buttonEl.focus();return[2]}))}))};t.prototype.renderTextContainer=function(){var t;var e=this,i=e.text,n=e.textEnabled;var o=(t={},t[CSS.textContainer]=true,t[CSS.textContainerVisible]=n,t);return i?h("div",{class:o,key:"text-container"},i):null};t.prototype.renderIconContainer=function(){var t;var e;var i=this,n=i.loading,o=i.icon,a=i.scale,r=i.el,c=i.intlLoading;var l=a==="l"?"m":"s";var s=n?h("calcite-loader",{active:true,inline:true,label:c,scale:l}):null;var u=o?h("calcite-icon",{icon:o,scale:l}):null;var b=s||u;var d=b||((e=r.children)===null||e===void 0?void 0:e.length);var f=h("div",{class:(t={},t[CSS.slotContainer]=true,t[CSS.slotContainerHidden]=n,t)},h("slot",null));return d?h("div",{"aria-hidden":"true",class:CSS.iconContainer,key:"icon-container"},b,f):null};t.prototype.render=function(){var t;var e=this;var i=this,n=i.compact,o=i.disabled,a=i.loading,r=i.el,c=i.textEnabled,l=i.label,s=i.text;var u=l||s;var b=getElementDir(r)==="rtl";var d=(t={},t[CSS.button]=true,t[CSS.buttonTextVisible]=c,t[CSS.buttonCompact]=n,t[CSS_UTILITY.rtl]=b,t);return h(Host,{onClick:this.calciteActionClickHandler},h("button",{"aria-busy":a.toString(),"aria-disabled":o.toString(),"aria-label":u,class:d,disabled:o,ref:function(t){return e.buttonEl=t}},this.renderIconContainer(),this.renderTextContainer()))};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();CalciteAction.style=calciteActionCss;export{CalciteAction as calcite_action};
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,i,a){function r(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,s){function o(e){try{n(a.next(e))}catch(e){s(e)}}function l(e){try{n(a["throw"](e))}catch(e){s(e)}}function n(e){e.done?i(e.value):r(e.value).then(o,l)}n((a=a.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},a,r,s,o;return o={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function l(e){return function(t){return n([e,t])}}function n(o){if(a)throw new TypeError("Generator is already executing.");while(i)try{if(a=1,r&&(s=o[0]&2?r["return"]:o[0]?r["throw"]||((s=r["return"])&&s.call(r),0):r.next)&&!(s=s.call(r,o[1])).done)return s;if(r=0,s)o=[o[0]&2,s.value];switch(o[0]){case 0:case 1:s=o;break;case 4:i.label++;return{value:o[1],done:false};case 5:i.label++;r=o[1];o=[0];continue;case 7:o=i.ops.pop();i.trys.pop();continue;default:if(!(s=i.trys,s=s.length>0&&s[s.length-1])&&(o[0]===6||o[0]===2)){i=0;continue}if(o[0]===3&&(!s||o[1]>s[0]&&o[1]<s[3])){i.label=o[1];break}if(o[0]===6&&i.label<s[1]){i.label=s[1];s=o;break}if(s&&i.label<s[2]){i.label=s[2];i.ops.push(o);break}if(s[2])i.ops.pop();i.trys.pop();continue}o=t.call(e,i)}catch(e){o=[6,e];r=0}finally{a=s=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-1554a132.js";import{s as setRequestedIcon,g as getElementDir,C as CSS_UTILITY}from"./dom-0b02c0cf.js";import{S as StatusIcons}from"./interfaces-355fccb6.js";import"./guid-09142681.js";var TEXT={intlClose:"Close"};var DURATIONS={slow:14e3,medium:1e4,fast:6e3};var SLOTS={title:"title",message:"message",link:"link"};var calciteAlertCss='@-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}@media only screen and (max-width: 860px){:host .container{width:100%;max-width:100%;border-radius:0}}.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}@media only screen and (max-width: 860px){:host([active]) .container:not(.queued){-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}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)}@media only screen and (max-width: 860px){.alert-content{padding:1rem}}.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)}@media only screen and (max-width: 860px){.alert-content{padding:var(--calcite-alert-spacing-token-large) var(--calcite-alert-spacing-token-small) var(--calcite-alert-spacing-token-large) 0}}.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)}@media only screen and (max-width: 860px){.calcite--rtl .alert-content{padding:var(--calcite-alert-spacing-token-large) 0 var(--calcite-alert-spacing-token-large) var(--calcite-alert-spacing-token-small)}}.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)}@media only screen and (max-width: 860px){.alert-icon{padding:1rem}}@media only screen and (min-width: 860px){.alert-icon{border-bottom-left-radius:var(--calcite-border-radius)}}.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)}@media only screen and (max-width: 860px){.alert-close{padding:1rem}}.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)}@media only screen and (max-width: 860px){.alert-close{border-radius:0}}.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}@media only screen and (min-width: 860px){.alert-queue-count.active{border-bottom-right-radius:var(--calcite-border-radius)}}: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}}';var CalciteAlert=function(){function e(e){var t=this;registerInstance(this,e);this.calciteAlertClose=createEvent(this,"calciteAlertClose",7);this.calciteAlertOpen=createEvent(this,"calciteAlertOpen",7);this.calciteAlertSync=createEvent(this,"calciteAlertSync",7);this.calciteAlertRegister=createEvent(this,"calciteAlertRegister",7);this.active=false;this.autoDismiss=false;this.autoDismissDuration=this.autoDismiss?"medium":null;this.color="blue";this.intlClose=TEXT.intlClose;this.scale="m";this.queue=[];this.queueLength=0;this.queued=false;this.closeAlert=function(){t.queued=false;t.active=false;t.queue=t.queue.filter((function(e){return e!==t.el}));t.determineActiveAlert();t.calciteAlertSync.emit({queue:t.queue});t.calciteAlertClose.emit({el:t.el,queue:t.queue})}}e.prototype.watchActive=function(){var e=this;if(this.active&&!this.queued){this.calciteAlertRegister.emit()}if(!this.active){this.queue=this.queue.filter((function(t){return t!==e.el}));this.calciteAlertSync.emit({queue:this.queue})}};e.prototype.updateRequestedIcon=function(){this.requestedIcon=setRequestedIcon(StatusIcons,this.icon,this.color)};e.prototype.connectedCallback=function(){if(this.active&&!this.queued){this.calciteAlertRegister.emit()}};e.prototype.componentWillLoad=function(){this.requestedIcon=setRequestedIcon(StatusIcons,this.icon,this.color)};e.prototype.componentDidLoad=function(){this.alertLinkEl=this.el.querySelectorAll("calcite-link")[0]};e.prototype.render=function(){var e;var t=this;var i=getElementDir(this.el);var a=h("button",{"aria-label":this.intlClose,class:"alert-close",onClick:this.closeAlert,ref:function(e){return t.closeButton=e},type:"button"},h("calcite-icon",{icon:"x",scale:this.scale==="l"?"m":"s"}));var r="+"+(this.queueLength>2?this.queueLength-1:1);var s=h("div",{class:(this.queueLength>1?"active ":"")+"alert-queue-count"},h("calcite-chip",{scale:this.scale,value:r},r));var o=this,l=o.active,n=o.autoDismiss,c=o.label,u=o.queued,d=o.requestedIcon;var m=h("div",{class:"alert-dismiss-progress"});var p=n?"alert":"alertdialog";var f=!l;return h(Host,{"aria-hidden":f.toString(),"aria-label":c,"calcite-hydrated-hidden":f,role:p},h("div",{class:(e={container:true,queued:u},e[CSS_UTILITY.rtl]=i==="rtl",e)},d?h("div",{class:"alert-icon"},h("calcite-icon",{icon:d,scale:this.scale==="l"?"m":"s"})):null,h("div",{class:"alert-content"},h("slot",{name:SLOTS.title}),h("slot",{name:SLOTS.message}),h("slot",{name:SLOTS.link})),s,!n?a:null,l&&!u&&n?m:null))};e.prototype.alertSync=function(e){if(this.queue!==e.detail.queue){this.queue=e.detail.queue}this.queueLength=this.queue.length;this.determineActiveAlert()};e.prototype.alertRegister=function(){if(this.active&&!this.queue.includes(this.el)){this.queued=true;this.queue.push(this.el)}this.calciteAlertSync.emit({queue:this.queue});this.determineActiveAlert()};e.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(!this.closeButton&&!this.alertLinkEl){return[2]}else if(this.alertLinkEl){this.alertLinkEl.setFocus()}else if(this.closeButton){this.closeButton.focus()}return[2]}))}))};e.prototype.determineActiveAlert=function(){var e=this;var t;if(((t=this.queue)===null||t===void 0?void 0:t[0])===this.el){this.openAlert();clearTimeout(this.autoDismissTimeout);if(this.autoDismiss){this.autoDismissTimeout=window.setTimeout((function(){return e.closeAlert()}),DURATIONS[this.autoDismissDuration])}}else{return}};e.prototype.openAlert=function(){var e=this;clearTimeout(this.queueTimeout);this.queueTimeout=window.setTimeout((function(){return e.queued=false}),300);this.calciteAlertOpen.emit({el:this.el,queue:this.queue})};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{active:["watchActive"],icon:["updateRequestedIcon"],color:["updateRequestedIcon"]}},enumerable:false,configurable:true});return e}();CalciteAlert.style=calciteAlertCss;export{CalciteAlert as calcite_alert};
1
+ var __awaiter=this&&this.__awaiter||function(e,t,i,a){function r(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,s){function o(e){try{n(a.next(e))}catch(e){s(e)}}function l(e){try{n(a["throw"](e))}catch(e){s(e)}}function n(e){e.done?i(e.value):r(e.value).then(o,l)}n((a=a.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},a,r,s,o;return o={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function l(e){return function(t){return n([e,t])}}function n(o){if(a)throw new TypeError("Generator is already executing.");while(i)try{if(a=1,r&&(s=o[0]&2?r["return"]:o[0]?r["throw"]||((s=r["return"])&&s.call(r),0):r.next)&&!(s=s.call(r,o[1])).done)return s;if(r=0,s)o=[o[0]&2,s.value];switch(o[0]){case 0:case 1:s=o;break;case 4:i.label++;return{value:o[1],done:false};case 5:i.label++;r=o[1];o=[0];continue;case 7:o=i.ops.pop();i.trys.pop();continue;default:if(!(s=i.trys,s=s.length>0&&s[s.length-1])&&(o[0]===6||o[0]===2)){i=0;continue}if(o[0]===3&&(!s||o[1]>s[0]&&o[1]<s[3])){i.label=o[1];break}if(o[0]===6&&i.label<s[1]){i.label=s[1];s=o;break}if(s&&i.label<s[2]){i.label=s[2];i.ops.push(o);break}if(s[2])i.ops.pop();i.trys.pop();continue}o=t.call(e,i)}catch(e){o=[6,e];r=0}finally{a=s=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-f8f0bea7.js";import{s as setRequestedIcon,g as getElementDir,C as CSS_UTILITY}from"./dom-b369a031.js";import{S as StatusIcons}from"./interfaces-355fccb6.js";import"./guid-09142681.js";var TEXT={intlClose:"Close"};var DURATIONS={slow:14e3,medium:1e4,fast:6e3};var SLOTS={title:"title",message:"message",link:"link"};var calciteAlertCss='@-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}@media only screen and (max-width: 860px){:host .container{width:100%;max-width:100%;border-radius:0}}.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}@media only screen and (max-width: 860px){:host([active]) .container:not(.queued){-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}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)}@media only screen and (max-width: 860px){.alert-content{padding:1rem}}.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)}@media only screen and (max-width: 860px){.alert-content{padding:var(--calcite-alert-spacing-token-large) var(--calcite-alert-spacing-token-small) var(--calcite-alert-spacing-token-large) 0}}.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)}@media only screen and (max-width: 860px){.calcite--rtl .alert-content{padding:var(--calcite-alert-spacing-token-large) 0 var(--calcite-alert-spacing-token-large) var(--calcite-alert-spacing-token-small)}}.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)}@media only screen and (max-width: 860px){.alert-icon{padding:1rem}}@media only screen and (min-width: 860px){.alert-icon{border-bottom-left-radius:var(--calcite-border-radius)}}.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)}@media only screen and (max-width: 860px){.alert-close{padding:1rem}}.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)}@media only screen and (max-width: 860px){.alert-close{border-radius:0}}.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}@media only screen and (min-width: 860px){.alert-queue-count.active{border-bottom-right-radius:var(--calcite-border-radius)}}: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}}';var CalciteAlert=function(){function e(e){var t=this;registerInstance(this,e);this.calciteAlertClose=createEvent(this,"calciteAlertClose",7);this.calciteAlertOpen=createEvent(this,"calciteAlertOpen",7);this.calciteAlertSync=createEvent(this,"calciteAlertSync",7);this.calciteAlertRegister=createEvent(this,"calciteAlertRegister",7);this.active=false;this.autoDismiss=false;this.autoDismissDuration=this.autoDismiss?"medium":null;this.color="blue";this.intlClose=TEXT.intlClose;this.scale="m";this.queue=[];this.queueLength=0;this.queued=false;this.closeAlert=function(){t.queued=false;t.active=false;t.queue=t.queue.filter((function(e){return e!==t.el}));t.determineActiveAlert();t.calciteAlertSync.emit({queue:t.queue});t.calciteAlertClose.emit({el:t.el,queue:t.queue})}}e.prototype.watchActive=function(){var e=this;if(this.active&&!this.queued){this.calciteAlertRegister.emit()}if(!this.active){this.queue=this.queue.filter((function(t){return t!==e.el}));this.calciteAlertSync.emit({queue:this.queue})}};e.prototype.updateRequestedIcon=function(){this.requestedIcon=setRequestedIcon(StatusIcons,this.icon,this.color)};e.prototype.connectedCallback=function(){if(this.active&&!this.queued){this.calciteAlertRegister.emit()}};e.prototype.componentWillLoad=function(){this.requestedIcon=setRequestedIcon(StatusIcons,this.icon,this.color)};e.prototype.componentDidLoad=function(){this.alertLinkEl=this.el.querySelectorAll("calcite-link")[0]};e.prototype.render=function(){var e;var t=this;var i=getElementDir(this.el);var a=h("button",{"aria-label":this.intlClose,class:"alert-close",onClick:this.closeAlert,ref:function(e){return t.closeButton=e},type:"button"},h("calcite-icon",{icon:"x",scale:this.scale==="l"?"m":"s"}));var r="+"+(this.queueLength>2?this.queueLength-1:1);var s=h("div",{class:(this.queueLength>1?"active ":"")+"alert-queue-count"},h("calcite-chip",{scale:this.scale,value:r},r));var o=this,l=o.active,n=o.autoDismiss,c=o.label,u=o.queued,d=o.requestedIcon;var m=h("div",{class:"alert-dismiss-progress"});var p=n?"alert":"alertdialog";var f=!l;return h(Host,{"aria-hidden":f.toString(),"aria-label":c,"calcite-hydrated-hidden":f,role:p},h("div",{class:(e={container:true,queued:u},e[CSS_UTILITY.rtl]=i==="rtl",e)},d?h("div",{class:"alert-icon"},h("calcite-icon",{icon:d,scale:this.scale==="l"?"m":"s"})):null,h("div",{class:"alert-content"},h("slot",{name:SLOTS.title}),h("slot",{name:SLOTS.message}),h("slot",{name:SLOTS.link})),s,!n?a:null,l&&!u&&n?m:null))};e.prototype.alertSync=function(e){if(this.queue!==e.detail.queue){this.queue=e.detail.queue}this.queueLength=this.queue.length;this.determineActiveAlert()};e.prototype.alertRegister=function(){if(this.active&&!this.queue.includes(this.el)){this.queued=true;this.queue.push(this.el)}this.calciteAlertSync.emit({queue:this.queue});this.determineActiveAlert()};e.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(!this.closeButton&&!this.alertLinkEl){return[2]}else if(this.alertLinkEl){this.alertLinkEl.setFocus()}else if(this.closeButton){this.closeButton.focus()}return[2]}))}))};e.prototype.determineActiveAlert=function(){var e=this;var t;if(((t=this.queue)===null||t===void 0?void 0:t[0])===this.el){this.openAlert();clearTimeout(this.autoDismissTimeout);if(this.autoDismiss){this.autoDismissTimeout=window.setTimeout((function(){return e.closeAlert()}),DURATIONS[this.autoDismissDuration])}}else{return}};e.prototype.openAlert=function(){var e=this;clearTimeout(this.queueTimeout);this.queueTimeout=window.setTimeout((function(){return e.queued=false}),300);this.calciteAlertOpen.emit({el:this.el,queue:this.queue})};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{active:["watchActive"],icon:["updateRequestedIcon"],color:["updateRequestedIcon"]}},enumerable:false,configurable:true});return e}();CalciteAlert.style=calciteAlertCss;export{CalciteAlert as calcite_alert};
@@ -1 +1 @@
1
- import{r as registerInstance,h,g as getElement}from"./index-1554a132.js";import{g as getElementDir,b as getThemeName}from"./dom-0b02c0cf.js";import{h as hexToRGB,i as isValidHex}from"./utils-60acc1d6.js";import"./guid-09142681.js";function stringToHex(t){var e=0;for(var a=0;a<t.length;a++){e=t.charCodeAt(a)+((e<<5)-e)}var i="#";for(var r=0;r<3;r++){var n=e>>r*8&255;i+=("00"+n.toString(16)).substr(-2)}return i}function rgbToHue(t){var e=t.r,a=t.g,i=t.b;e/=255;a/=255;i/=255;var r=Math.max(e,a,i);var n=Math.min(e,a,i);var s=r-n;if(r===n){return 0}var o=(r+n)/2;switch(r){case e:o=(a-i)/s+(a<i?6:0);break;case a:o=(i-e)/s+2;break;case i:o=(e-a)/s+4;break}return Math.round(o*60)}function hexToHue(t){return rgbToHue(hexToRGB(t))}var calciteAvatarCss="@-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-inline-flexbox;display:inline-flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;border-radius:50%;overflow:hidden}:host([scale=s]){width:1.5rem;height:1.5rem;font-size:var(--calcite-font-size--3)}:host([scale=m]){width:2rem;height:2rem;font-size:var(--calcite-font-size--2)}:host([scale=l]){width:2.75rem;height:2.75rem;font-size:var(--calcite-font-size-0)}.icon{display:-ms-flexbox;display:flex}.background{width:100%;height:100%;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border-radius:50%}.initials{font-weight:var(--calcite-font-weight-bold);text-transform:uppercase;color:var(--calcite-ui-text-3)}.thumbnail{width:100%;height:100%;border-radius:50%}";var CalciteAvatar=function(){function t(t){registerInstance(this,t);this.scale="m";this.error=false}t.prototype.render=function(){return this.determineContent()};t.prototype.determineContent=function(){var t=this;var e=getElementDir(this.el);if(this.thumbnail&&!this.error){return h("img",{alt:"",class:"thumbnail",dir:e,onError:function(){return t.error=true},src:this.thumbnail})}var a=this.generateInitials();var i=this.generateFillColor();return h("span",{class:"background",dir:e,style:{backgroundColor:i}},a?h("span",{"aria-hidden":"true",class:"initials"},a):h("calcite-icon",{class:"icon",icon:"user",scale:this.scale}))};t.prototype.generateFillColor=function(){var t=this,e=t.userId,a=t.username,i=t.fullName,r=t.el;var n=getThemeName(r);var s=e&&"#"+e.substr(e.length-6);var o=a||i||"";var l=s&&isValidHex(s)?s:stringToHex(o);if(!e&&!o||!isValidHex(l)){return"var(--calcite-ui-foreground-2)"}var c=hexToHue(l);var m=n==="dark"?20:90;return"hsl("+c+", 60%, "+m+"%)"};t.prototype.generateInitials=function(){var t=this,e=t.fullName,a=t.username;if(e){return e.trim().split(" ").map((function(t){return t.substring(0,1)})).join("")}else if(a){return a.substring(0,2)}return false};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();CalciteAvatar.style=calciteAvatarCss;export{CalciteAvatar as calcite_avatar};
1
+ import{r as registerInstance,h,g as getElement}from"./index-f8f0bea7.js";import{g as getElementDir,b as getThemeName}from"./dom-b369a031.js";import{h as hexToRGB,i as isValidHex}from"./utils-60acc1d6.js";import"./guid-09142681.js";function stringToHex(t){var e=0;for(var a=0;a<t.length;a++){e=t.charCodeAt(a)+((e<<5)-e)}var i="#";for(var r=0;r<3;r++){var n=e>>r*8&255;i+=("00"+n.toString(16)).substr(-2)}return i}function rgbToHue(t){var e=t.r,a=t.g,i=t.b;e/=255;a/=255;i/=255;var r=Math.max(e,a,i);var n=Math.min(e,a,i);var s=r-n;if(r===n){return 0}var o=(r+n)/2;switch(r){case e:o=(a-i)/s+(a<i?6:0);break;case a:o=(i-e)/s+2;break;case i:o=(e-a)/s+4;break}return Math.round(o*60)}function hexToHue(t){return rgbToHue(hexToRGB(t))}var calciteAvatarCss="@-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-inline-flexbox;display:inline-flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;border-radius:50%;overflow:hidden}:host([scale=s]){width:1.5rem;height:1.5rem;font-size:var(--calcite-font-size--3)}:host([scale=m]){width:2rem;height:2rem;font-size:var(--calcite-font-size--2)}:host([scale=l]){width:2.75rem;height:2.75rem;font-size:var(--calcite-font-size-0)}.icon{display:-ms-flexbox;display:flex}.background{width:100%;height:100%;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border-radius:50%}.initials{font-weight:var(--calcite-font-weight-bold);text-transform:uppercase;color:var(--calcite-ui-text-3)}.thumbnail{width:100%;height:100%;border-radius:50%}";var CalciteAvatar=function(){function t(t){registerInstance(this,t);this.scale="m";this.error=false}t.prototype.render=function(){return this.determineContent()};t.prototype.determineContent=function(){var t=this;var e=getElementDir(this.el);if(this.thumbnail&&!this.error){return h("img",{alt:"",class:"thumbnail",dir:e,onError:function(){return t.error=true},src:this.thumbnail})}var a=this.generateInitials();var i=this.generateFillColor();return h("span",{class:"background",dir:e,style:{backgroundColor:i}},a?h("span",{"aria-hidden":"true",class:"initials"},a):h("calcite-icon",{class:"icon",icon:"user",scale:this.scale}))};t.prototype.generateFillColor=function(){var t=this,e=t.userId,a=t.username,i=t.fullName,r=t.el;var n=getThemeName(r);var s=e&&"#"+e.substr(e.length-6);var o=a||i||"";var l=s&&isValidHex(s)?s:stringToHex(o);if(!e&&!o||!isValidHex(l)){return"var(--calcite-ui-foreground-2)"}var c=hexToHue(l);var m=n==="dark"?20:90;return"hsl("+c+", 60%, "+m+"%)"};t.prototype.generateInitials=function(){var t=this,e=t.fullName,a=t.username;if(e){return e.trim().split(" ").map((function(t){return t.substring(0,1)})).join("")}else if(a){return a.substring(0,2)}return false};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();CalciteAvatar.style=calciteAvatarCss;export{CalciteAvatar as calcite_avatar};
@@ -1 +1 @@
1
- import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-1554a132.js";import{a as getSlotted,g as getElementDir,C as CSS_UTILITY}from"./dom-0b02c0cf.js";import{C as CalciteHeading}from"./CalciteHeading-ea5ec96c.js";import"./guid-09142681.js";var CSS$1={article:"article",content:"content",headerContainer:"header-container",icon:"icon",statusIcon:"status-icon",toggle:"toggle",toggleIcon:"toggle-icon",title:"title",heading:"heading",header:"header",button:"button",summary:"summary",controlContainer:"control-container",valid:"valid",invalid:"invalid"};var TEXT$1={collapse:"Collapse",expand:"Expand",loading:"Loading",options:"Options"};var SLOTS={icon:"icon",control:"control",headerMenuActions:"header-menu-actions"};var ICONS$1={opened:"chevron-up",closed:"chevron-down",valid:"check-circle",invalid:"exclamation-mark-triangle"};var HEADING_LEVEL=4;var calciteBlockCss='@-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}:host{--calcite-icon-size:1rem;--calcite-spacing-eighth:0.125rem;--calcite-spacing-quarter:0.25rem;--calcite-spacing-half:0.5rem;--calcite-spacing-three-quarters:0.75rem;--calcite-spacing:1rem;--calcite-spacing-plus-quarter:1.25rem;--calcite-spacing-plus-half:1.5rem;--calcite-spacing-double:2rem;--calcite-menu-min-width:10rem;--calcite-header-min-height:3rem;--calcite-footer-min-height:3rem}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0;-ms-flex-direction:column;flex-direction:column;padding:0;-webkit-transition-property:margin;transition-property:margin;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.215, 0.440, 0.420, 0.880);transition-timing-function:cubic-bezier(0.215, 0.440, 0.420, 0.880);border-width:0;border-bottom-width:1px;border-color:var(--calcite-ui-border-3);border-style:solid;-ms-flex-preferred-size:auto;flex-basis:auto}.header{margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;color:var(--calcite-ui-text-2);fill:var(--calcite-ui-text-2)}.heading{padding:0;margin:0;font-weight:var(--calcite-font-weight-medium);line-height:1.5}.header .heading{-ms-flex:1 0 auto;flex:1 0 auto;padding:var(--calcite-spacing-half) var(--calcite-spacing-half)}h1.heading{font-size:var(--calcite-font-size-2)}h2.heading{font-size:var(--calcite-font-size-1)}h3.heading{font-size:var(--calcite-font-size-0)}h4.heading,h5.heading{font-size:var(--calcite-font-size--1)}.header{-ms-flex-pack:start;justify-content:flex-start;padding:0}.header,.toggle{grid-area:header}.header-container{display:grid;-ms-flex-align:stretch;align-items:stretch;grid-template:auto/auto 1fr auto auto;grid-template-areas:"handle header control menu";grid-column:header-start/menu-end;grid-row:1/2}.header-container>.header{padding-top:0.75rem;padding-bottom:0.75rem;padding-left:0;padding-right:0}.toggle{display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-pack:justify;justify-content:space-between;font-family:inherit;-ms-flex-align:center;align-items:center;margin:0;padding-top:0.75rem;padding-bottom:0.75rem;padding-left:0;padding-right:0;border-style:none;cursor:pointer;text-align:left;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;background-color:transparent}.toggle:hover{background-color:var(--calcite-ui-foreground-2)}.toggle:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}calcite-loader[inline]{grid-area:control;align-self:center}calcite-handle{grid-area:handle}.title{margin:0;padding-left:1rem;padding-right:1rem;padding-top:0;padding-bottom:0}.header .title .heading{padding:0;font-size:var(--calcite-font-size--1);color:var(--calcite-ui-text-2);font-weight:var(--calcite-font-weight-medium);word-wrap:break-word;word-break:break-word;line-height:1.25;-webkit-transition-property:color;transition-property:color;-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)}.summary{padding:0;font-size:var(--calcite-font-size--2);color:var(--calcite-ui-text-3);margin-top:0.125rem;word-wrap:break-word;word-break:break-word}.icon{margin-left:0.75rem}.status-icon.valid{color:var(--calcite-ui-success)}.status-icon.invalid{color:var(--calcite-ui-danger)}.toggle-icon{margin-right:1rem;-ms-flex-item-align:center;align-self:center;color:var(--calcite-ui-text-3);-webkit-transition-property:color;transition-property:color;-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)}.toggle:hover .toggle-icon{color:var(--calcite-ui-text-1)}.content{padding-left:0.75rem;padding-right:0.75rem;padding-top:0.5rem;padding-bottom:0.5rem;position:relative;-webkit-animation:in var(--calcite-animation-timing) ease-in-out;animation:in var(--calcite-animation-timing) ease-in-out}.control-container{display:-ms-flexbox;display:flex;margin:0;grid-area:control}calcite-action-menu{grid-area:menu}.calcite--rtl .toggle-icon{margin-right:0;margin-left:1rem}.calcite--rtl .icon{margin-left:0;margin-right:0.75rem}:host([open]){margin-top:0.5rem;margin-bottom:0.5rem}:host([open]) .header .title .heading{color:var(--calcite-ui-text-1)}:host([disabled]){pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;user-select:none}:host([disabled]) .header-container{opacity:0.5}:host([drag-handle]) .calcite--rtl .title{padding-left:0;padding-right:0.25rem}';var CalciteBlock=function(){function e(e){var t=this;registerInstance(this,e);this.calciteBlockToggle=createEvent(this,"calciteBlockToggle",7);this.collapsible=false;this.disabled=false;this.dragHandle=false;this.intlLoading=TEXT$1.loading;this.intlOptions=TEXT$1.options;this.loading=false;this.open=false;this.onHeaderClick=function(){t.open=!t.open;t.calciteBlockToggle.emit()}}e.prototype.renderScrim=function(){var e=this,t=e.disabled,i=e.loading;var a=h("slot",null);return[i||t?h("calcite-scrim",{loading:i}):null,a]};e.prototype.renderIcon=function(){var e;var t;var i=this,a=i.el,n=i.status;var o=(t=ICONS$1[n])!==null&&t!==void 0?t:false;var r=getSlotted(a,SLOTS.icon)||o;var l=!o?h("slot",{name:SLOTS.icon}):h("calcite-icon",{class:(e={},e[CSS$1.statusIcon]=true,e[CSS$1.valid]=n=="valid",e[CSS$1.invalid]=n=="invalid",e),icon:o,scale:"m"});return r?h("div",{class:CSS$1.icon},l):null};e.prototype.render=function(){var e;var t=this,i=t.collapsible,a=t.disabled,n=t.el,o=t.heading,r=t.intlCollapse,l=t.intlExpand,c=t.loading,s=t.open,d=t.summary,m=t.intlLoading,g=t.headingLevel;var p=s?r||TEXT$1.collapse:l||TEXT$1.expand;var u=h("header",{class:CSS$1.header},this.renderIcon(),h("div",{class:CSS$1.title},h(CalciteHeading,{class:CSS$1.heading,level:g||HEADING_LEVEL},o),d?h("div",{class:CSS$1.summary},d):null));var f=!!getSlotted(n,SLOTS.control);var b=!!getSlotted(n,SLOTS.headerMenuActions);var v=s?ICONS$1.opened:ICONS$1.closed;var w=h("div",{class:CSS$1.headerContainer},this.dragHandle?h("calcite-handle",null):null,i?h("button",{"aria-expanded":i?s.toString():null,"aria-label":p,class:CSS$1.toggle,onClick:this.onHeaderClick,title:p},u,!f&&!b?h("calcite-icon",{"aria-hidden":"true",class:CSS$1.toggleIcon,icon:v,scale:"s"}):null):u,c?h("calcite-loader",{inline:true,"is-active":true,label:m}):f?h("div",{class:CSS$1.controlContainer},h("slot",{name:SLOTS.control})):null,b?h("calcite-action-menu",{label:this.intlOptions||TEXT$1.options},h("slot",{name:SLOTS.headerMenuActions})):null);var k=getElementDir(n)==="rtl";return h(Host,{tabIndex:a?-1:null},h("article",{"aria-busy":c.toString(),class:(e={},e[CSS$1.article]=true,e[CSS_UTILITY.rtl]=k,e)},w,h("div",{class:CSS$1.content,hidden:!s},this.renderScrim())))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();CalciteBlock.style=calciteBlockCss;var CSS={content:"content",invalid:"invalid",toggle:"toggle",toggleSwitch:"toggle--switch",toggleSwitchContent:"toggle--switch__content",toggleSwitchText:"toggle--switch__text",sectionHeader:"section-header",sectionHeaderText:"section-header__text",statusIcon:"status-icon",valid:"valid"};var TEXT={collapse:"Collapse",expand:"Expand"};var ICONS={menuOpen:"chevron-down",menuClosedLeft:"chevron-left",menuClosedRight:"chevron-right",valid:"check-circle",invalid:"exclamation-mark-triangle"};var calciteBlockSectionCss="@-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{-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);display:block}:host([open]){border-style:solid;border-width:0;border-bottom-color:var(--calcite-ui-border-3);border-bottom-width:1px}:host(:last-child){border-bottom-width:0}.toggle{background-color:transparent;border-width:0;color:var(--calcite-ui-text-2);font-family:var(--calcite-sans-family);font-weight:var(--calcite-font-weight-medium);width:100%}.toggle--switch,.section-header{-ms-flex-align:center;align-items:center;cursor:pointer;display:-ms-flexbox;display:flex;margin-left:0;margin-right:0;margin-top:0.25rem;margin-bottom:0.25rem;padding-left:0;padding-right:0;padding-top:0.5rem;padding-bottom:0.5rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:var(--calcite-font-size--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}.toggle--switch:focus,.section-header:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.toggle--switch:hover,.section-header:hover{color:var(--calcite-ui-text-1)}.section-header .status-icon{-ms-flex-item-align:end;align-self:flex-end}.section-header__text{-ms-flex:1 1 auto;flex:1 1 auto;margin-left:0.75rem;margin-right:0.75rem;margin-top:0;margin-bottom:0;text-align:initial}.toggle--switch calcite-switch{pointer-events:none;margin-left:0.25rem}.toggle--switch .status-icon{margin-left:0.5rem}.toggle--switch__content{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex:1 1 auto;flex:1 1 auto}.status-icon.valid{color:var(--calcite-ui-success)}.status-icon.invalid{color:var(--calcite-ui-danger)}.calcite--rtl .toggle--switch calcite-switch{margin-left:0;margin-right:0.25rem}.calcite--rtl .toggle--switch .status-icon{margin-left:0;margin-right:0.5rem}";var CalciteBlockSection=function(){function e(e){var t=this;registerInstance(this,e);this.calciteBlockSectionToggle=createEvent(this,"calciteBlockSectionToggle",7);this.open=false;this.toggleDisplay="button";this.toggleSection=function(){t.open=!t.open;t.calciteBlockSectionToggle.emit()}}e.prototype.handleHeaderLabelKeyDown=function(e){if(e.key===" "||e.key==="Enter"){e.preventDefault();e.stopPropagation();this.click()}};e.prototype.renderStatusIcon=function(){var e;var t;var i=this.status;var a=(t=ICONS[i])!==null&&t!==void 0?t:false;var n=(e={},e[CSS.statusIcon]=true,e[CSS.valid]=i=="valid",e[CSS.invalid]=i=="invalid",e);return!!a?h("calcite-icon",{class:n,icon:a,scale:"s"}):null};e.prototype.render=function(){var e,t,i;var a=this,n=a.el,o=a.intlCollapse,r=a.intlExpand,l=a.open,c=a.text,s=a.toggleDisplay;var d=getElementDir(n);var m=l?ICONS.menuOpen:d==="rtl"?ICONS.menuClosedLeft:ICONS.menuClosedRight;var g=l?o||TEXT.collapse:r||TEXT.expand;var p=s==="switch"?h("label",{"aria-label":g,class:(e={},e[CSS.toggle]=true,e[CSS.toggleSwitch]=true,e),onKeyDown:this.handleHeaderLabelKeyDown,tabIndex:0,title:g},h("div",{class:CSS.toggleSwitchContent},h("span",{class:CSS.toggleSwitchText},c)),h("calcite-switch",{onCalciteSwitchChange:this.toggleSection,scale:"s",switched:l,tabIndex:-1}),this.renderStatusIcon()):h("button",{"aria-label":g,class:(t={},t[CSS.sectionHeader]=true,t[CSS.toggle]=true,t),name:g,onClick:this.toggleSection,onKeyDown:this.handleHeaderLabelKeyDown},h("calcite-icon",{icon:m,scale:"s"}),h("span",{class:CSS.sectionHeaderText},c),this.renderStatusIcon());return h("section",{"aria-expanded":l.toString(),class:(i={},i[CSS_UTILITY.rtl]=d==="rtl",i)},p,h("div",{class:CSS.content,hidden:!l},h("slot",null)))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();CalciteBlockSection.style=calciteBlockSectionCss;export{CalciteBlock as calcite_block,CalciteBlockSection as calcite_block_section};
1
+ import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-f8f0bea7.js";import{a as getSlotted,g as getElementDir,C as CSS_UTILITY}from"./dom-b369a031.js";import{C as CalciteHeading}from"./CalciteHeading-29855e9f.js";import"./guid-09142681.js";var CSS$1={article:"article",content:"content",headerContainer:"header-container",icon:"icon",statusIcon:"status-icon",toggle:"toggle",toggleIcon:"toggle-icon",title:"title",heading:"heading",header:"header",button:"button",summary:"summary",controlContainer:"control-container",valid:"valid",invalid:"invalid"};var TEXT$1={collapse:"Collapse",expand:"Expand",loading:"Loading",options:"Options"};var SLOTS={icon:"icon",control:"control",headerMenuActions:"header-menu-actions"};var ICONS$1={opened:"chevron-up",closed:"chevron-down",valid:"check-circle",invalid:"exclamation-mark-triangle"};var HEADING_LEVEL=4;var calciteBlockCss='@-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}:host{--calcite-icon-size:1rem;--calcite-spacing-eighth:0.125rem;--calcite-spacing-quarter:0.25rem;--calcite-spacing-half:0.5rem;--calcite-spacing-three-quarters:0.75rem;--calcite-spacing:1rem;--calcite-spacing-plus-quarter:1.25rem;--calcite-spacing-plus-half:1.5rem;--calcite-spacing-double:2rem;--calcite-menu-min-width:10rem;--calcite-header-min-height:3rem;--calcite-footer-min-height:3rem}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0;-ms-flex-direction:column;flex-direction:column;padding:0;-webkit-transition-property:margin;transition-property:margin;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.215, 0.440, 0.420, 0.880);transition-timing-function:cubic-bezier(0.215, 0.440, 0.420, 0.880);border-width:0;border-bottom-width:1px;border-color:var(--calcite-ui-border-3);border-style:solid;-ms-flex-preferred-size:auto;flex-basis:auto}.header{margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:justify;align-content:space-between;color:var(--calcite-ui-text-2);}.heading{font-weight:var(--calcite-font-weight-medium);margin:0;padding:0}.header .heading{-ms-flex:1 1 auto;flex:1 1 auto;padding:0.5rem}h1.heading{font-size:var(--calcite-font-size-2);line-height:1.5rem}h2.heading{font-size:var(--calcite-font-size-1);line-height:1.5rem}h3.heading{font-size:var(--calcite-font-size-0);line-height:1.25rem}h4.heading,h5.heading{font-size:var(--calcite-font-size--1);line-height:1rem}.header{-ms-flex-pack:start;justify-content:flex-start;padding:0}.header,.toggle{grid-area:header}.header-container{display:grid;-ms-flex-align:stretch;align-items:stretch;grid-template:auto/auto 1fr auto auto;grid-template-areas:"handle header control menu";grid-column:header-start/menu-end;grid-row:1/2}.header-container>.header{padding-top:0.75rem;padding-bottom:0.75rem;padding-left:0;padding-right:0}.toggle{display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-pack:justify;justify-content:space-between;font-family:inherit;-ms-flex-align:center;align-items:center;margin:0;padding-top:0.75rem;padding-bottom:0.75rem;padding-left:0;padding-right:0;border-style:none;cursor:pointer;text-align:left;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;background-color:transparent}.toggle:hover{background-color:var(--calcite-ui-foreground-2)}.toggle:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}calcite-loader[inline]{grid-area:control;align-self:center}calcite-handle{grid-area:handle}.title{margin:0;padding-left:1rem;padding-right:1rem;padding-top:0;padding-bottom:0}.header .title .heading{padding:0;font-size:var(--calcite-font-size--1);color:var(--calcite-ui-text-2);font-weight:var(--calcite-font-weight-medium);word-wrap:break-word;word-break:break-word;line-height:1.25;-webkit-transition-property:color;transition-property:color;-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)}.summary{padding:0;font-size:var(--calcite-font-size--2);color:var(--calcite-ui-text-3);margin-top:0.125rem;word-wrap:break-word;word-break:break-word}.icon{margin-left:0.75rem}.status-icon.valid{color:var(--calcite-ui-success)}.status-icon.invalid{color:var(--calcite-ui-danger)}.toggle-icon{margin-right:1rem;-ms-flex-item-align:center;align-self:center;color:var(--calcite-ui-text-3);-webkit-transition-property:color;transition-property:color;-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)}.toggle:hover .toggle-icon{color:var(--calcite-ui-text-1)}.content{padding-left:0.75rem;padding-right:0.75rem;padding-top:0.5rem;padding-bottom:0.5rem;position:relative;-webkit-animation:in var(--calcite-animation-timing) ease-in-out;animation:in var(--calcite-animation-timing) ease-in-out}.control-container{display:-ms-flexbox;display:flex;margin:0;grid-area:control}calcite-action-menu{grid-area:menu}.calcite--rtl .toggle-icon{margin-right:0;margin-left:1rem}.calcite--rtl .icon{margin-left:0;margin-right:0.75rem}:host([open]){margin-top:0.5rem;margin-bottom:0.5rem}:host([open]) .header .title .heading{color:var(--calcite-ui-text-1)}:host([disabled]){pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;user-select:none}:host([disabled]) .header-container{opacity:0.5}:host([drag-handle]) .calcite--rtl .title{padding-left:0;padding-right:0.25rem}';var CalciteBlock=function(){function e(e){var t=this;registerInstance(this,e);this.calciteBlockToggle=createEvent(this,"calciteBlockToggle",7);this.collapsible=false;this.disabled=false;this.dragHandle=false;this.intlLoading=TEXT$1.loading;this.intlOptions=TEXT$1.options;this.loading=false;this.open=false;this.onHeaderClick=function(){t.open=!t.open;t.calciteBlockToggle.emit()}}e.prototype.renderScrim=function(){var e=this,t=e.disabled,i=e.loading;var a=h("slot",null);return[i||t?h("calcite-scrim",{loading:i}):null,a]};e.prototype.renderIcon=function(){var e;var t;var i=this,a=i.el,n=i.status;var o=(t=ICONS$1[n])!==null&&t!==void 0?t:false;var r=getSlotted(a,SLOTS.icon)||o;var l=!o?h("slot",{name:SLOTS.icon}):h("calcite-icon",{class:(e={},e[CSS$1.statusIcon]=true,e[CSS$1.valid]=n=="valid",e[CSS$1.invalid]=n=="invalid",e),icon:o,scale:"m"});return r?h("div",{class:CSS$1.icon},l):null};e.prototype.render=function(){var e;var t=this,i=t.collapsible,a=t.disabled,n=t.el,o=t.heading,r=t.intlCollapse,l=t.intlExpand,c=t.loading,s=t.open,m=t.summary,d=t.intlLoading,g=t.headingLevel;var p=s?r||TEXT$1.collapse:l||TEXT$1.expand;var u=h("header",{class:CSS$1.header},this.renderIcon(),h("div",{class:CSS$1.title},h(CalciteHeading,{class:CSS$1.heading,level:g||HEADING_LEVEL},o),m?h("div",{class:CSS$1.summary},m):null));var f=!!getSlotted(n,SLOTS.control);var b=!!getSlotted(n,SLOTS.headerMenuActions);var v=s?ICONS$1.opened:ICONS$1.closed;var w=h("div",{class:CSS$1.headerContainer},this.dragHandle?h("calcite-handle",null):null,i?h("button",{"aria-expanded":i?s.toString():null,"aria-label":p,class:CSS$1.toggle,onClick:this.onHeaderClick,title:p},u,!f&&!b?h("calcite-icon",{"aria-hidden":"true",class:CSS$1.toggleIcon,icon:v,scale:"s"}):null):u,c?h("calcite-loader",{inline:true,"is-active":true,label:d}):f?h("div",{class:CSS$1.controlContainer},h("slot",{name:SLOTS.control})):null,b?h("calcite-action-menu",{label:this.intlOptions||TEXT$1.options},h("slot",{name:SLOTS.headerMenuActions})):null);var k=getElementDir(n)==="rtl";return h(Host,{tabIndex:a?-1:null},h("article",{"aria-busy":c.toString(),class:(e={},e[CSS$1.article]=true,e[CSS_UTILITY.rtl]=k,e)},w,h("div",{class:CSS$1.content,hidden:!s},this.renderScrim())))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();CalciteBlock.style=calciteBlockCss;var CSS={content:"content",invalid:"invalid",toggle:"toggle",toggleSwitch:"toggle--switch",toggleSwitchContent:"toggle--switch__content",toggleSwitchText:"toggle--switch__text",sectionHeader:"section-header",sectionHeaderText:"section-header__text",statusIcon:"status-icon",valid:"valid"};var TEXT={collapse:"Collapse",expand:"Expand"};var ICONS={menuOpen:"chevron-down",menuClosedLeft:"chevron-left",menuClosedRight:"chevron-right",valid:"check-circle",invalid:"exclamation-mark-triangle"};var calciteBlockSectionCss="@-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{-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);display:block}:host([open]){border-style:solid;border-width:0;border-bottom-color:var(--calcite-ui-border-3);border-bottom-width:1px}:host(:last-child){border-bottom-width:0}.toggle{background-color:transparent;border-width:0;color:var(--calcite-ui-text-2);font-family:var(--calcite-sans-family);font-weight:var(--calcite-font-weight-medium);width:100%}.toggle--switch,.section-header{-ms-flex-align:center;align-items:center;cursor:pointer;display:-ms-flexbox;display:flex;margin-left:0;margin-right:0;margin-top:0.25rem;margin-bottom:0.25rem;padding-left:0;padding-right:0;padding-top:0.5rem;padding-bottom:0.5rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:var(--calcite-font-size--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}.toggle--switch:focus,.section-header:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.toggle--switch:hover,.section-header:hover{color:var(--calcite-ui-text-1)}.section-header .status-icon{-ms-flex-item-align:end;align-self:flex-end}.section-header__text{-ms-flex:1 1 auto;flex:1 1 auto;margin-left:0.75rem;margin-right:0.75rem;margin-top:0;margin-bottom:0;text-align:initial}.toggle--switch calcite-switch{pointer-events:none;margin-left:0.25rem}.toggle--switch .status-icon{margin-left:0.5rem}.toggle--switch__content{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex:1 1 auto;flex:1 1 auto}.status-icon.valid{color:var(--calcite-ui-success)}.status-icon.invalid{color:var(--calcite-ui-danger)}.calcite--rtl .toggle--switch calcite-switch{margin-left:0;margin-right:0.25rem}.calcite--rtl .toggle--switch .status-icon{margin-left:0;margin-right:0.5rem}";var CalciteBlockSection=function(){function e(e){var t=this;registerInstance(this,e);this.calciteBlockSectionToggle=createEvent(this,"calciteBlockSectionToggle",7);this.open=false;this.toggleDisplay="button";this.handleHeaderKeyDown=function(e){if(e.key===" "||e.key==="Enter"){t.toggleSection();e.preventDefault();e.stopPropagation()}};this.toggleSection=function(){t.open=!t.open;t.calciteBlockSectionToggle.emit()}}e.prototype.renderStatusIcon=function(){var e;var t;var i=this.status;var a=(t=ICONS[i])!==null&&t!==void 0?t:false;var n=(e={},e[CSS.statusIcon]=true,e[CSS.valid]=i=="valid",e[CSS.invalid]=i=="invalid",e);return!!a?h("calcite-icon",{class:n,icon:a,scale:"s"}):null};e.prototype.render=function(){var e,t,i;var a=this,n=a.el,o=a.intlCollapse,r=a.intlExpand,l=a.open,c=a.text,s=a.toggleDisplay;var m=getElementDir(n);var d=l?ICONS.menuOpen:m==="rtl"?ICONS.menuClosedLeft:ICONS.menuClosedRight;var g=l?o||TEXT.collapse:r||TEXT.expand;var p=s==="switch"?h("div",{"aria-label":g,class:(e={},e[CSS.toggle]=true,e[CSS.toggleSwitch]=true,e),onClick:this.toggleSection,onKeyDown:this.handleHeaderKeyDown,tabIndex:0,title:g},h("div",{class:CSS.toggleSwitchContent},h("span",{class:CSS.toggleSwitchText},c)),h("calcite-switch",{checked:l,label:g,scale:"s",tabIndex:-1}),this.renderStatusIcon()):h("button",{"aria-label":g,class:(t={},t[CSS.sectionHeader]=true,t[CSS.toggle]=true,t),name:g,onClick:this.toggleSection},h("calcite-icon",{icon:d,scale:"s"}),h("span",{class:CSS.sectionHeaderText},c),this.renderStatusIcon());return h("section",{"aria-expanded":l.toString(),class:(i={},i[CSS_UTILITY.rtl]=m==="rtl",i)},p,h("div",{class:CSS.content,hidden:!l},h("slot",null)))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();CalciteBlockSection.style=calciteBlockSectionCss;export{CalciteBlock as calcite_block,CalciteBlockSection as calcite_block_section};
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,a,o){function n(t){return t instanceof a?t:new a((function(e){e(t)}))}return new(a||(a=Promise))((function(a,r){function i(t){try{l(o.next(t))}catch(t){r(t)}}function c(t){try{l(o["throw"](t))}catch(t){r(t)}}function l(t){t.done?a(t.value):n(t.value).then(i,c)}l((o=o.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var a={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},o,n,r,i;return i={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function c(t){return function(e){return l([t,e])}}function l(i){if(o)throw new TypeError("Generator is already executing.");while(a)try{if(o=1,n&&(r=i[0]&2?n["return"]:i[0]?n["throw"]||((r=n["return"])&&r.call(n),0):n.next)&&!(r=r.call(n,i[1])).done)return r;if(n=0,r)i=[i[0]&2,r.value];switch(i[0]){case 0:case 1:r=i;break;case 4:a.label++;return{value:i[1],done:false};case 5:a.label++;n=i[1];i=[0];continue;case 7:i=a.ops.pop();a.trys.pop();continue;default:if(!(r=a.trys,r=r.length>0&&r[r.length-1])&&(i[0]===6||i[0]===2)){a=0;continue}if(i[0]===3&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(i[0]===6&&a.label<r[1]){a.label=r[1];r=i;break}if(r&&a.label<r[2]){a.label=r[2];a.ops.push(i);break}if(r[2])a.ops.pop();a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t];n=0}finally{o=r=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:true}}};import{r as registerInstance,h,g as getElement}from"./index-1554a132.js";import{q as queryElementRoots,c as closestElementCrossShadowBoundary,g as getElementDir,C as CSS_UTILITY}from"./dom-0b02c0cf.js";import"./guid-09142681.js";var CSS={buttonLoader:"calcite-button--loader",content:"content",contentSlotted:"content--slotted",icon:"icon",iconStart:"icon--start",iconEnd:"icon--end",loadingIn:"loading-in",loadingOut:"loading-out"};var TEXT={loading:"Loading"};var calciteButtonCss="@-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(.calcite-inline-editable__enable-editing-button)) button,:host([appearance=transparent]:not(.calcite-inline-editable__enable-editing-button)) a{background-color:transparent}:host([appearance=transparent]:not(.calcite-inline-editable__enable-editing-button)) button:hover,:host([appearance=transparent]:not(.calcite-inline-editable__enable-editing-button)) button:focus,:host([appearance=transparent]:not(.calcite-inline-editable__enable-editing-button)) a:hover,:host([appearance=transparent]:not(.calcite-inline-editable__enable-editing-button)) a:focus{background-color:var(--calcite-button-transparent-hover)}:host([appearance=transparent]:not(.calcite-inline-editable__enable-editing-button)) button:active,:host([appearance=transparent]:not(.calcite-inline-editable__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(.calcite-inline-editable__cancel-editing-button)) button,:host([appearance=transparent][color=neutral]:not(.calcite-inline-editable__cancel-editing-button)) a,:host([appearance=transparent][color=neutral]:not(.calcite-inline-editable__cancel-editing-button)) calcite-loader{color:var(--calcite-ui-text-1)}:host([appearance=transparent][color=neutral].calcite-inline-editable__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].calcite-inline-editable__cancel-editing-button) button:not(.content--slotted){--calcite-button-padding-y:0}:host([appearance=transparent][color=neutral].calcite-inline-editable__cancel-editing-button) button:hover{color:var(--calcite-ui-text-1)}:host([appearance=transparent][color=neutral].calcite-inline-editable__enable-editing-button) button{background-color:transparent}: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}";var CalciteButton=function(){function t(t){var e=this;registerInstance(this,t);this.alignment="center";this.appearance="solid";this.color="blue";this.intlLoading=TEXT.loading;this.loading=false;this.round=false;this.scale="m";this.splitChild=false;this.width="auto";this.childElType="button";this.hasContent=false;this.hasLoader=false;this.handleClick=function(t){var a=e,o=a.childElType,n=a.form,r=a.el,i=a.type;if(o==="button"&&i!=="button"){var c=n?queryElementRoots(r,"#"+n):closestElementCrossShadowBoundary(r,"form");if(c){var l=c.onsubmit;switch(i){case"submit":if(l){l()}else if(c.checkValidity()){c.submit()}else{c.reportValidity()}break;case"reset":c.reset();break}}t.preventDefault()}}}t.prototype.loadingChanged=function(t,e){var a=this;if(!!t&&!e){this.hasLoader=true}if(!t&&!!e){window.setTimeout((function(){a.hasLoader=false}),300)}};t.prototype.connectedCallback=function(){this.childElType=this.href?"a":"button";this.hasLoader=this.loading;this.setupTextContentObserver()};t.prototype.disconnectedCallback=function(){this.observer.disconnect()};t.prototype.componentWillLoad=function(){{this.updateHasContent();if(this.childElType==="button"&&!this.type){this.type="submit"}}};t.prototype.render=function(){var t,e,a;var o=this;var n=getElementDir(this.el);var r=this.childElType;var i=h("div",{class:CSS.buttonLoader},this.hasLoader?h("calcite-loader",{active:true,class:this.loading?CSS.loadingIn:CSS.loadingOut,inline:true,label:this.intlLoading,scale:"m"}):null);var c=h("calcite-icon",{class:(t={},t[CSS.icon]=true,t[CSS.iconStart]=true,t),flipRtl:this.iconFlipRtl==="start"||this.iconFlipRtl==="both",icon:this.iconStart,scale:"s"});var l=h("calcite-icon",{class:(e={},e[CSS.icon]=true,e[CSS.iconEnd]=true,e),flipRtl:this.iconFlipRtl==="end"||this.iconFlipRtl==="both",icon:this.iconEnd,scale:"s"});var s=h("span",{class:CSS.content},h("slot",null));return h(r,{"aria-label":this.label,class:(a={},a[CSS_UTILITY.rtl]=n==="rtl",a[CSS.contentSlotted]=this.hasContent,a),disabled:this.disabled||this.loading,href:this.childElType==="a"&&this.href,name:this.childElType==="button"&&this.name,onClick:this.handleClick,ref:function(t){return o.childEl=t},rel:this.childElType==="a"&&this.rel,tabIndex:this.disabled||this.loading?-1:null,target:this.childElType==="a"&&this.target,type:this.childElType==="button"&&this.type},i,this.iconStart?c:null,this.hasContent?s:null,this.iconEnd?l:null)};t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.childEl.focus();return[2]}))}))};t.prototype.updateHasContent=function(){var t,e;var a=this.el.textContent.trim().length>0||this.el.childNodes.length>0;this.hasContent=this.el.childNodes.length===1&&((t=this.el.childNodes[0])===null||t===void 0?void 0:t.nodeName)==="#text"?((e=this.el.textContent)===null||e===void 0?void 0:e.trim().length)>0:a};t.prototype.setupTextContentObserver=function(){var t=this;{this.observer=new MutationObserver((function(){t.updateHasContent()}));this.observer.observe(this.el,{childList:true,subtree:true})}};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{loading:["loadingChanged"]}},enumerable:false,configurable:true});return t}();CalciteButton.style=calciteButtonCss;export{CalciteButton as calcite_button};
1
+ var __awaiter=this&&this.__awaiter||function(t,e,a,o){function n(t){return t instanceof a?t:new a((function(e){e(t)}))}return new(a||(a=Promise))((function(a,r){function i(t){try{l(o.next(t))}catch(t){r(t)}}function c(t){try{l(o["throw"](t))}catch(t){r(t)}}function l(t){t.done?a(t.value):n(t.value).then(i,c)}l((o=o.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var a={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},o,n,r,i;return i={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function c(t){return function(e){return l([t,e])}}function l(i){if(o)throw new TypeError("Generator is already executing.");while(a)try{if(o=1,n&&(r=i[0]&2?n["return"]:i[0]?n["throw"]||((r=n["return"])&&r.call(n),0):n.next)&&!(r=r.call(n,i[1])).done)return r;if(n=0,r)i=[i[0]&2,r.value];switch(i[0]){case 0:case 1:r=i;break;case 4:a.label++;return{value:i[1],done:false};case 5:a.label++;n=i[1];i=[0];continue;case 7:i=a.ops.pop();a.trys.pop();continue;default:if(!(r=a.trys,r=r.length>0&&r[r.length-1])&&(i[0]===6||i[0]===2)){a=0;continue}if(i[0]===3&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(i[0]===6&&a.label<r[1]){a.label=r[1];r=i;break}if(r&&a.label<r[2]){a.label=r[2];a.ops.push(i);break}if(r[2])a.ops.pop();a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t];n=0}finally{o=r=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:true}}};import{r as registerInstance,h,g as getElement}from"./index-f8f0bea7.js";import{q as queryElementRoots,c as closestElementCrossShadowBoundary,g as getElementDir,C as CSS_UTILITY}from"./dom-b369a031.js";import{c as connectLabel,d as disconnectLabel,g as getLabelText}from"./label-7b249c54.js";import{c as createObserver}from"./observers-c93d4fe5.js";import"./guid-09142681.js";var CSS={buttonLoader:"calcite-button--loader",content:"content",contentSlotted:"content--slotted",icon:"icon",iconStart:"icon--start",iconEnd:"icon--end",loadingIn:"loading-in",loadingOut:"loading-out"};var TEXT={loading:"Loading"};var calciteButtonCss="@-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(.calcite-inline-editable__enable-editing-button)) button,:host([appearance=transparent]:not(.calcite-inline-editable__enable-editing-button)) a{background-color:transparent}:host([appearance=transparent]:not(.calcite-inline-editable__enable-editing-button)) button:hover,:host([appearance=transparent]:not(.calcite-inline-editable__enable-editing-button)) button:focus,:host([appearance=transparent]:not(.calcite-inline-editable__enable-editing-button)) a:hover,:host([appearance=transparent]:not(.calcite-inline-editable__enable-editing-button)) a:focus{background-color:var(--calcite-button-transparent-hover)}:host([appearance=transparent]:not(.calcite-inline-editable__enable-editing-button)) button:active,:host([appearance=transparent]:not(.calcite-inline-editable__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(.calcite-inline-editable__cancel-editing-button)) button,:host([appearance=transparent][color=neutral]:not(.calcite-inline-editable__cancel-editing-button)) a,:host([appearance=transparent][color=neutral]:not(.calcite-inline-editable__cancel-editing-button)) calcite-loader{color:var(--calcite-ui-text-1)}:host([appearance=transparent][color=neutral].calcite-inline-editable__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].calcite-inline-editable__cancel-editing-button) button:not(.content--slotted){--calcite-button-padding-y:0}:host([appearance=transparent][color=neutral].calcite-inline-editable__cancel-editing-button) button:hover{color:var(--calcite-ui-text-1)}:host([appearance=transparent][color=neutral].calcite-inline-editable__enable-editing-button) button{background-color:transparent}: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}";var CalciteButton=function(){function t(t){var e=this;registerInstance(this,t);this.alignment="center";this.appearance="solid";this.color="blue";this.disabled=false;this.intlLoading=TEXT.loading;this.loading=false;this.round=false;this.scale="m";this.splitChild=false;this.width="auto";this.mutationObserver=createObserver("mutation",(function(){return e.updateHasContent()}));this.childElType="button";this.hasContent=false;this.hasLoader=false;this.onLabelClick=function(t){e.handleClick(t);e.setFocus()};this.handleClick=function(t){var a=e,o=a.childElType,n=a.form,r=a.el,i=a.type;if(o==="button"&&i!=="button"){var c=n?queryElementRoots(r,"#"+n):closestElementCrossShadowBoundary(r,"form");if(c){var l=c.onsubmit;switch(i){case"submit":if(l){l()}else if(c.checkValidity()){c.submit()}else{c.reportValidity()}break;case"reset":c.reset();break}}t.preventDefault()}}}t.prototype.loadingChanged=function(t,e){var a=this;if(!!t&&!e){this.hasLoader=true}if(!t&&!!e){window.setTimeout((function(){a.hasLoader=false}),300)}};t.prototype.connectedCallback=function(){this.childElType=this.href?"a":"button";this.hasLoader=this.loading;this.setupTextContentObserver();connectLabel(this)};t.prototype.disconnectedCallback=function(){var t;(t=this.mutationObserver)===null||t===void 0?void 0:t.disconnect();disconnectLabel(this)};t.prototype.componentWillLoad=function(){{this.updateHasContent();if(this.childElType==="button"&&!this.type){this.type="submit"}}};t.prototype.render=function(){var t,e,a;var o=this;var n=getElementDir(this.el);var r=this.childElType;var i=h("div",{class:CSS.buttonLoader},this.hasLoader?h("calcite-loader",{active:true,class:this.loading?CSS.loadingIn:CSS.loadingOut,inline:true,label:this.intlLoading,scale:"m"}):null);var c=h("calcite-icon",{class:(t={},t[CSS.icon]=true,t[CSS.iconStart]=true,t),flipRtl:this.iconFlipRtl==="start"||this.iconFlipRtl==="both",icon:this.iconStart,scale:"s"});var l=h("calcite-icon",{class:(e={},e[CSS.icon]=true,e[CSS.iconEnd]=true,e),flipRtl:this.iconFlipRtl==="end"||this.iconFlipRtl==="both",icon:this.iconEnd,scale:"s"});var s=h("span",{class:CSS.content},h("slot",null));return h(r,{"aria-label":getLabelText(this),class:(a={},a[CSS_UTILITY.rtl]=n==="rtl",a[CSS.contentSlotted]=this.hasContent,a),disabled:this.disabled||this.loading,href:this.childElType==="a"&&this.href,name:this.childElType==="button"&&this.name,onClick:this.handleClick,ref:function(t){return o.childEl=t},rel:this.childElType==="a"&&this.rel,tabIndex:this.disabled||this.loading?-1:null,target:this.childElType==="a"&&this.target,type:this.childElType==="button"&&this.type},i,this.iconStart?c:null,this.hasContent?s:null,this.iconEnd?l:null)};t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.childEl.focus();return[2]}))}))};t.prototype.updateHasContent=function(){var t,e;var a=this.el.textContent.trim().length>0||this.el.childNodes.length>0;this.hasContent=this.el.childNodes.length===1&&((t=this.el.childNodes[0])===null||t===void 0?void 0:t.nodeName)==="#text"?((e=this.el.textContent)===null||e===void 0?void 0:e.trim().length)>0:a};t.prototype.setupTextContentObserver=function(){var t;(t=this.mutationObserver)===null||t===void 0?void 0:t.observe(this.el,{childList:true,subtree:true})};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{loading:["loadingChanged"]}},enumerable:false,configurable:true});return t}();CalciteButton.style=calciteButtonCss;export{CalciteButton as calcite_button};
@@ -1 +1 @@
1
- import{r as registerInstance,c as createEvent,h,g as getElement}from"./index-1554a132.js";import{g as getElementDir,C as CSS_UTILITY}from"./dom-0b02c0cf.js";import{g as getKey}from"./key-ec82f942.js";import"./guid-09142681.js";var CSS={container:"container",header:"header",footer:"footer",title:"title",subtitle:"subtitle",thumbnailWrapper:"thumbnail-wrapper",checkboxWrapper:"checkbox-wrapper"};var SLOTS={thumbnail:"thumbnail",title:"title",subtitle:"subtitle",footerLeading:"footer-leading",footerTrailing:"footer-trailing"};var TEXT={select:"Select",deselect:"Deselect",loading:"Loading"};var calciteCardCss="@-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{max-width:100%;display:block}:host .calcite-card-container{display:-ms-flexbox;display:flex;height:100%;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;background-color:var(--calcite-ui-foreground-1);-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);position:relative;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-2);color:var(--calcite-ui-text-3);-webkit-box-shadow:none;box-shadow:none}:host .calcite-card-container:hover{-webkit-box-shadow:0 4px 16px 0 rgba(0, 0, 0, 0.08), 0 2px 8px 0 rgba(0, 0, 0, 0.04);box-shadow:0 4px 16px 0 rgba(0, 0, 0, 0.08), 0 2px 8px 0 rgba(0, 0, 0, 0.04);z-index:1}:host .calcite-card-container:active{-webkit-box-shadow:0 1px 6px -1px rgba(0, 0, 0, 0.16), 0 1px 2px -1px rgba(0, 0, 0, 0.08);box-shadow:0 1px 6px -1px rgba(0, 0, 0, 0.16), 0 1px 2px -1px rgba(0, 0, 0, 0.08);-webkit-transition-duration:75ms;transition-duration:75ms;z-index:1}.container{-ms-flex:1 1 auto;flex:1 1 auto;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host([loading]) .calcite-card-container *:not(calcite-loader):not(.calcite-card-loader-container){opacity:0;pointer-events:none}:host([loading]) .calcite-card-loader-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;position:absolute;top:0;right:0;bottom:0;left:0}.header,.footer{padding-top:0.75rem;padding-bottom:0.25rem;padding-left:0.75rem;padding-right:0.75rem;display:-ms-flexbox;display:flex}.header{-ms-flex-direction:column;flex-direction:column}.footer{padding-top:0.25rem;padding-bottom:0.75rem;padding-left:0.75rem;padding-right:0.75rem;-ms-flex-direction:row;flex-direction:row;-ms-flex-line-pack:justify;align-content:space-between;-ms-flex-pack:justify;justify-content:space-between;margin-top:auto}.card-content{padding:0.75rem;color:var(--calcite-ui-text-3);font-size:var(--calcite-font-size--2);line-height:1.375}:host([selectable]) .calcite-card-container:active{-webkit-box-shadow:0 1px 6px -1px rgba(0, 0, 0, 0.16), 0 1px 2px -1px rgba(0, 0, 0, 0.08);box-shadow:0 1px 6px -1px rgba(0, 0, 0, 0.16), 0 1px 2px -1px rgba(0, 0, 0, 0.08)}:host([selected]) .calcite-card-container{border-color:var(--calcite-ui-brand)}slot[name=title]::slotted(*),*::slotted([slot=title]){font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1);margin:0;font-size:var(--calcite-font-size--1);line-height:1.375}slot[name=subtitle]::slotted(*),*::slotted([slot=subtitle]){font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-2);margin:0;margin-top:0.5rem;font-size:var(--calcite-font-size--2);line-height:1.375}slot[name=thumbnail]::slotted(img),img::slotted([slot=thumbnail]){max-width:100%;min-width:100%}slot[name=footer-leading]::slotted(*),*::slotted([slot=footer-leading]){-ms-flex-item-align:center;align-self:center;font-size:var(--calcite-font-size--2);line-height:1.375;-webkit-margin-end:auto;margin-inline-end:auto}slot[name=footer-trailing]::slotted(*),*::slotted([slot=footer-trailing]){-ms-flex-item-align:center;align-self:center;font-size:var(--calcite-font-size--2);line-height:1.375}.thumbnail-wrapper{font-size:var(--calcite-font-size-0);line-height:1.375}.checkbox-wrapper{position:absolute;margin:0;padding:0;top:0.5rem;right:0.5rem}.calcite--rtl .checkbox-wrapper{right:auto;left:0.5rem}";var CalciteCard=function(){function e(e){var t=this;registerInstance(this,e);this.calciteCardSelect=createEvent(this,"calciteCardSelect",7);this.loading=false;this.selected=false;this.selectable=false;this.intlLoading=TEXT.loading;this.intlSelect=TEXT.select;this.intlDeselect=TEXT.deselect;this.cardSelectClick=function(){t.selectCard()};this.cardSelectKeyDown=function(e){switch(getKey(e.key)){case" ":case"Enter":t.selectCard();e.preventDefault();break}}}e.prototype.render=function(){var e,t;var i=getElementDir(this.el);return h("div",{class:(e={"calcite-card-container":true},e[CSS_UTILITY.rtl]=i==="rtl",e)},this.loading?h("div",{class:"calcite-card-loader-container"},h("calcite-loader",{active:true,label:this.intlLoading})):null,h("section",{"aria-busy":this.loading.toString(),class:(t={},t[CSS.container]=true,t)},this.selectable?this.renderCheckbox():null,this.renderThumbnail(),this.renderHeader(),h("div",{class:"card-content"},h("slot",null)),this.renderFooter()))};e.prototype.selectCard=function(){this.selected=!this.selected;this.calciteCardSelect.emit()};e.prototype.renderThumbnail=function(){var e=this.el.querySelector("[slot="+SLOTS.thumbnail+"]");return e?h("div",{class:CSS.thumbnailWrapper},h("slot",{name:SLOTS.thumbnail})):null};e.prototype.renderCheckbox=function(){var e=this.selected?this.intlDeselect:this.intlSelect;return h("label",{"aria-label":e,class:CSS.checkboxWrapper,onClick:this.cardSelectClick,onKeyDown:this.cardSelectKeyDown,title:e},h("calcite-checkbox",{checked:this.selected}))};e.prototype.renderHeader=function(){var e=this.el.querySelector("[slot="+SLOTS.title+"]");var t=this.el.querySelector("[slot="+SLOTS.subtitle+"]");var i=e||t;return i?h("header",{class:CSS.header},h("slot",{name:SLOTS.title}),h("slot",{name:SLOTS.subtitle})):null};e.prototype.renderFooter=function(){var e=this.el.querySelector("[slot="+SLOTS.footerLeading+"]");var t=this.el.querySelector("[slot="+SLOTS.footerTrailing+"]");var i=e||t;return i?h("footer",{class:CSS.footer},h("slot",{name:SLOTS.footerLeading}),h("slot",{name:SLOTS.footerTrailing})):null};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();CalciteCard.style=calciteCardCss;export{CalciteCard as calcite_card};
1
+ import{r as registerInstance,c as createEvent,h,g as getElement}from"./index-f8f0bea7.js";import{g as getElementDir,C as CSS_UTILITY}from"./dom-b369a031.js";import{g as getKey}from"./key-ec82f942.js";import"./guid-09142681.js";var CSS={container:"container",header:"header",footer:"footer",title:"title",subtitle:"subtitle",thumbnailWrapper:"thumbnail-wrapper",checkboxWrapper:"checkbox-wrapper"};var SLOTS={thumbnail:"thumbnail",title:"title",subtitle:"subtitle",footerLeading:"footer-leading",footerTrailing:"footer-trailing"};var TEXT={select:"Select",deselect:"Deselect",loading:"Loading"};var calciteCardCss="@-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{max-width:100%;display:block}:host .calcite-card-container{display:-ms-flexbox;display:flex;height:100%;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;background-color:var(--calcite-ui-foreground-1);-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);position:relative;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-2);color:var(--calcite-ui-text-3);-webkit-box-shadow:none;box-shadow:none}:host .calcite-card-container:hover{-webkit-box-shadow:0 4px 16px 0 rgba(0, 0, 0, 0.08), 0 2px 8px 0 rgba(0, 0, 0, 0.04);box-shadow:0 4px 16px 0 rgba(0, 0, 0, 0.08), 0 2px 8px 0 rgba(0, 0, 0, 0.04);z-index:1}:host .calcite-card-container:active{-webkit-box-shadow:0 1px 6px -1px rgba(0, 0, 0, 0.16), 0 1px 2px -1px rgba(0, 0, 0, 0.08);box-shadow:0 1px 6px -1px rgba(0, 0, 0, 0.16), 0 1px 2px -1px rgba(0, 0, 0, 0.08);-webkit-transition-duration:75ms;transition-duration:75ms;z-index:1}.container{-ms-flex:1 1 auto;flex:1 1 auto;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host([loading]) .calcite-card-container *:not(calcite-loader):not(.calcite-card-loader-container){opacity:0;pointer-events:none}:host([loading]) .calcite-card-loader-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;position:absolute;top:0;right:0;bottom:0;left:0}.header,.footer{padding-top:0.75rem;padding-bottom:0.25rem;padding-left:0.75rem;padding-right:0.75rem;display:-ms-flexbox;display:flex}.header{-ms-flex-direction:column;flex-direction:column}.footer{padding-top:0.25rem;padding-bottom:0.75rem;padding-left:0.75rem;padding-right:0.75rem;-ms-flex-direction:row;flex-direction:row;-ms-flex-line-pack:justify;align-content:space-between;-ms-flex-pack:justify;justify-content:space-between;margin-top:auto}.card-content{padding:0.75rem;color:var(--calcite-ui-text-3);font-size:var(--calcite-font-size--2);line-height:1.375}:host([selectable]) .calcite-card-container:active{-webkit-box-shadow:0 1px 6px -1px rgba(0, 0, 0, 0.16), 0 1px 2px -1px rgba(0, 0, 0, 0.08);box-shadow:0 1px 6px -1px rgba(0, 0, 0, 0.16), 0 1px 2px -1px rgba(0, 0, 0, 0.08)}:host([selected]) .calcite-card-container{border-color:var(--calcite-ui-brand)}slot[name=title]::slotted(*),*::slotted([slot=title]){font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1);margin:0;font-size:var(--calcite-font-size--1);line-height:1.375}slot[name=subtitle]::slotted(*),*::slotted([slot=subtitle]){font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-2);margin:0;margin-top:0.5rem;font-size:var(--calcite-font-size--2);line-height:1.375}slot[name=thumbnail]::slotted(img),img::slotted([slot=thumbnail]){max-width:100%;min-width:100%}slot[name=footer-leading]::slotted(*),*::slotted([slot=footer-leading]){-ms-flex-item-align:center;align-self:center;font-size:var(--calcite-font-size--2);line-height:1.375;-webkit-margin-end:auto;margin-inline-end:auto}slot[name=footer-trailing]::slotted(*),*::slotted([slot=footer-trailing]){-ms-flex-item-align:center;align-self:center;font-size:var(--calcite-font-size--2);line-height:1.375}.thumbnail-wrapper{font-size:var(--calcite-font-size-0);line-height:1.375}.checkbox-wrapper{position:absolute;margin:0;padding:0;top:0.5rem;right:0.5rem}.calcite--rtl .checkbox-wrapper{right:auto;left:0.5rem}";var CalciteCard=function(){function e(e){var t=this;registerInstance(this,e);this.calciteCardSelect=createEvent(this,"calciteCardSelect",7);this.loading=false;this.selected=false;this.selectable=false;this.intlLoading=TEXT.loading;this.intlSelect=TEXT.select;this.intlDeselect=TEXT.deselect;this.cardSelectClick=function(){t.selectCard()};this.cardSelectKeyDown=function(e){switch(getKey(e.key)){case" ":case"Enter":t.selectCard();e.preventDefault();break}}}e.prototype.render=function(){var e,t;var a=getElementDir(this.el);return h("div",{class:(e={"calcite-card-container":true},e[CSS_UTILITY.rtl]=a==="rtl",e)},this.loading?h("div",{class:"calcite-card-loader-container"},h("calcite-loader",{active:true,label:this.intlLoading})):null,h("section",{"aria-busy":this.loading.toString(),class:(t={},t[CSS.container]=true,t)},this.selectable?this.renderCheckbox():null,this.renderThumbnail(),this.renderHeader(),h("div",{class:"card-content"},h("slot",null)),this.renderFooter()))};e.prototype.selectCard=function(){this.selected=!this.selected;this.calciteCardSelect.emit()};e.prototype.renderThumbnail=function(){var e=this.el.querySelector("[slot="+SLOTS.thumbnail+"]");return e?h("div",{class:CSS.thumbnailWrapper},h("slot",{name:SLOTS.thumbnail})):null};e.prototype.renderCheckbox=function(){var e=this.selected?this.intlDeselect:this.intlSelect;return h("label",{"aria-label":e,class:CSS.checkboxWrapper,onClick:this.cardSelectClick,onKeyDown:this.cardSelectKeyDown,title:e},h("calcite-checkbox",{checked:this.selected}))};e.prototype.renderHeader=function(){var e=this.el.querySelector("[slot="+SLOTS.title+"]");var t=this.el.querySelector("[slot="+SLOTS.subtitle+"]");var a=e||t;return a?h("header",{class:CSS.header},h("slot",{name:SLOTS.title}),h("slot",{name:SLOTS.subtitle})):null};e.prototype.renderFooter=function(){var e=this.el.querySelector("[slot="+SLOTS.footerLeading+"]");var t=this.el.querySelector("[slot="+SLOTS.footerTrailing+"]");var a=e||t;return a?h("footer",{class:CSS.footer},h("slot",{name:SLOTS.footerLeading}),h("slot",{name:SLOTS.footerTrailing})):null};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();CalciteCard.style=calciteCardCss;export{CalciteCard as calcite_card};