@esri/calcite-components 1.0.0-beta.83 → 1.0.0-beta.86

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 (1073) hide show
  1. package/dist/calcite/assets/date-picker/nls/th.json +1 -1
  2. package/dist/calcite/assets/icon/changeDetection16.json +1 -0
  3. package/dist/calcite/assets/icon/changeDetection24.json +1 -0
  4. package/dist/calcite/assets/icon/changeDetection32.json +1 -0
  5. package/dist/calcite/assets/icon/imageDisplayOrder16.json +1 -0
  6. package/dist/calcite/assets/icon/imageDisplayOrder24.json +1 -0
  7. package/dist/calcite/assets/icon/imageDisplayOrder32.json +1 -0
  8. package/dist/calcite/assets/icon/numberCircle416.json +1 -0
  9. package/dist/calcite/assets/icon/numberCircle424.json +1 -0
  10. package/dist/calcite/assets/icon/numberCircle432.json +1 -0
  11. package/dist/calcite/assets/icon/numberCircle516.json +1 -0
  12. package/dist/calcite/assets/icon/numberCircle524.json +1 -0
  13. package/dist/calcite/assets/icon/numberCircle532.json +1 -0
  14. package/dist/calcite/assets/icon/numberCircle616.json +1 -0
  15. package/dist/calcite/assets/icon/numberCircle624.json +1 -0
  16. package/dist/calcite/assets/icon/numberCircle632.json +1 -0
  17. package/dist/calcite/assets/icon/numberCircle716.json +1 -0
  18. package/dist/calcite/assets/icon/numberCircle724.json +1 -0
  19. package/dist/calcite/assets/icon/numberCircle732.json +1 -0
  20. package/dist/calcite/assets/icon/numberCircle816.json +1 -0
  21. package/dist/calcite/assets/icon/numberCircle824.json +1 -0
  22. package/dist/calcite/assets/icon/numberCircle832.json +1 -0
  23. package/dist/calcite/assets/icon/numberCircle916.json +1 -0
  24. package/dist/calcite/assets/icon/numberCircle924.json +1 -0
  25. package/dist/calcite/assets/icon/numberCircle932.json +1 -0
  26. package/dist/calcite/assets/icon/showMultipleLayersAtATime16.json +1 -0
  27. package/dist/calcite/assets/icon/showMultipleLayersAtATime24.json +1 -0
  28. package/dist/calcite/assets/icon/showMultipleLayersAtATime32.json +1 -0
  29. package/dist/calcite/assets/icon/showOneLayerAtATime16.json +1 -0
  30. package/dist/calcite/assets/icon/showOneLayerAtATime24.json +1 -0
  31. package/dist/calcite/assets/icon/showOneLayerAtATime32.json +1 -0
  32. package/dist/calcite/calcite.esm.js +2 -2
  33. package/dist/calcite/calcite.js +1 -1
  34. package/dist/calcite/index.esm.js +1 -1
  35. package/dist/calcite/{p-7d8fe7b3.system.entry.js → p-03005912.system.entry.js} +2 -2
  36. package/dist/calcite/{p-2c974b60.js → p-038a1a34.js} +1 -1
  37. package/dist/calcite/{p-07587a94.system.entry.js → p-05acf942.system.entry.js} +2 -2
  38. package/dist/calcite/{p-46d30c39.system.js → p-078aa8cf.system.js} +1 -1
  39. package/dist/calcite/p-098bf101.entry.js +6 -0
  40. package/dist/calcite/p-0ac22887.js +6 -0
  41. package/dist/calcite/p-0d0ab1c5.system.entry.js +6 -0
  42. package/dist/calcite/{p-f7546789.system.js → p-12bca4f1.system.js} +1 -1
  43. package/dist/calcite/{p-3962123d.system.entry.js → p-15a9e209.system.entry.js} +2 -2
  44. package/dist/calcite/{p-1bc2d58d.system.js → p-17bb1d46.system.js} +1 -1
  45. package/dist/calcite/p-17c8a622.system.entry.js +6 -0
  46. package/dist/calcite/p-1b79a3a3.entry.js +6 -0
  47. package/dist/calcite/p-1b939beb.system.entry.js +6 -0
  48. package/dist/calcite/p-1e7d3d02.system.entry.js +6 -0
  49. package/dist/calcite/{p-0d37d621.system.entry.js → p-1e9d27fe.system.entry.js} +3 -3
  50. package/dist/calcite/{p-2fcac2cf.system.entry.js → p-1ef82cc5.system.entry.js} +2 -2
  51. package/dist/calcite/p-1f0bf183.system.entry.js +6 -0
  52. package/dist/calcite/{p-fd70b6c1.entry.js → p-1f289404.entry.js} +2 -2
  53. package/dist/calcite/p-22217b06.entry.js +6 -0
  54. package/dist/calcite/p-247f1abc.entry.js +6 -0
  55. package/dist/calcite/p-27f31e04.js +6 -0
  56. package/dist/calcite/p-283ed748.entry.js +6 -0
  57. package/dist/calcite/p-29122323.system.entry.js +6 -0
  58. package/dist/calcite/{p-2f82a677.system.js → p-29c3c079.system.js} +1 -1
  59. package/dist/calcite/p-29c6691b.js +6 -0
  60. package/dist/calcite/{p-7a8cddad.js → p-2c78140e.js} +1 -1
  61. package/dist/calcite/{p-57ccba45.system.js → p-2ce0209d.system.js} +1 -1
  62. package/dist/calcite/p-2d556f94.system.entry.js +6 -0
  63. package/dist/calcite/p-2d7b7215.system.entry.js +6 -0
  64. package/dist/calcite/p-2efde396.js +6 -0
  65. package/dist/calcite/p-2f717afb.js +6 -0
  66. package/dist/calcite/{p-6bcb5a71.system.entry.js → p-2f906310.system.entry.js} +2 -2
  67. package/dist/calcite/{p-e321018b.js → p-336d62ab.js} +1 -1
  68. package/dist/calcite/p-33e02930.entry.js +6 -0
  69. package/dist/calcite/{p-834f407d.system.entry.js → p-36183756.system.entry.js} +2 -2
  70. package/dist/calcite/p-36ee6a02.entry.js +6 -0
  71. package/dist/calcite/p-37f621e1.entry.js +6 -0
  72. package/dist/calcite/p-386d256d.entry.js +6 -0
  73. package/dist/calcite/p-39201c6f.entry.js +6 -0
  74. package/dist/calcite/p-40825758.entry.js +6 -0
  75. package/dist/calcite/p-40ddce6a.system.entry.js +6 -0
  76. package/dist/calcite/{p-358cba5a.system.entry.js → p-4178c522.system.entry.js} +2 -2
  77. package/dist/calcite/p-451e4a81.entry.js +6 -0
  78. package/dist/calcite/p-498af5d7.system.entry.js +6 -0
  79. package/dist/calcite/{p-78f2801c.entry.js → p-4a1a8fac.entry.js} +2 -2
  80. package/dist/calcite/{p-5afb0fbb.js → p-4c3e960e.js} +2 -2
  81. package/dist/calcite/p-4c62aae1.system.js +6 -0
  82. package/dist/calcite/p-4f206065.system.js +6 -0
  83. package/dist/calcite/{p-1eb6cfb5.entry.js → p-52474c34.entry.js} +2 -2
  84. package/dist/calcite/{p-85a769d3.system.entry.js → p-55b9c3d8.system.entry.js} +2 -2
  85. package/dist/calcite/p-58ba388d.entry.js +6 -0
  86. package/dist/calcite/{p-9d3f8b0c.system.entry.js → p-62f31a5a.system.entry.js} +2 -2
  87. package/dist/calcite/{p-98dc9493.entry.js → p-645da33b.entry.js} +2 -2
  88. package/dist/calcite/{p-ba349f22.system.js → p-64abac3a.system.js} +1 -1
  89. package/dist/calcite/p-660b54aa.system.js +6 -0
  90. package/dist/calcite/{p-2785ecb9.system.js → p-661fe743.system.js} +2 -2
  91. package/dist/calcite/{p-2e57803f.entry.js → p-667c6be1.entry.js} +2 -2
  92. package/dist/calcite/{p-e117fad1.system.entry.js → p-670df541.system.entry.js} +2 -2
  93. package/dist/calcite/{p-f9687b03.system.js → p-694231fe.system.js} +1 -1
  94. package/dist/calcite/{p-462cefe9.system.entry.js → p-6abdcefa.system.entry.js} +2 -2
  95. package/dist/calcite/{p-9c85d763.system.entry.js → p-6c4c7404.system.entry.js} +2 -2
  96. package/dist/calcite/{p-fd5a2277.entry.js → p-6e59222f.entry.js} +2 -2
  97. package/dist/calcite/p-6f3fad62.system.entry.js +6 -0
  98. package/dist/calcite/{p-7bbfe1a2.system.entry.js → p-705dcfd0.system.entry.js} +2 -2
  99. package/dist/calcite/{p-c86b91ca.entry.js → p-7124aeac.entry.js} +2 -2
  100. package/dist/calcite/{p-59122590.entry.js → p-718bec4c.entry.js} +2 -2
  101. package/dist/calcite/p-71df706c.system.entry.js +6 -0
  102. package/dist/calcite/p-7285074f.entry.js +6 -0
  103. package/dist/calcite/{p-4620ae05.entry.js → p-72ac5927.entry.js} +2 -2
  104. package/dist/calcite/{p-ef4ca55d.entry.js → p-72d06cc6.entry.js} +2 -2
  105. package/dist/calcite/{p-292c567d.js → p-741a874b.js} +1 -1
  106. package/dist/calcite/{p-5ae3ce21.system.entry.js → p-7624aeb6.system.entry.js} +2 -2
  107. package/dist/calcite/{p-77762ff3.system.js → p-786ca76b.system.js} +1 -1
  108. package/dist/calcite/p-78f82837.system.entry.js +6 -0
  109. package/dist/calcite/{p-f46cf640.js → p-7bdab3f4.js} +1 -1
  110. package/dist/calcite/{p-900fd30e.js → p-7f519a6f.js} +2 -2
  111. package/dist/calcite/{p-d1d05643.entry.js → p-81460471.entry.js} +2 -2
  112. package/dist/calcite/p-822445af.entry.js +6 -0
  113. package/dist/calcite/p-82655fe7.entry.js +6 -0
  114. package/dist/calcite/{p-e9e34c7f.system.entry.js → p-82c99865.entry.js} +2 -2
  115. package/dist/calcite/{p-8e2129c6.system.entry.js → p-8381e935.system.entry.js} +2 -2
  116. package/dist/calcite/{p-1755cd6f.entry.js → p-85fab359.entry.js} +2 -2
  117. package/dist/calcite/{p-773b540e.system.entry.js → p-869ceaf2.system.entry.js} +2 -2
  118. package/dist/calcite/p-8701d6ec.js +6 -0
  119. package/dist/calcite/p-881346ec.system.entry.js +6 -0
  120. package/dist/calcite/{p-d901c470.system.js → p-8a1593db.system.js} +1 -1
  121. package/dist/calcite/{p-3f80afb9.system.entry.js → p-8b8580be.system.entry.js} +3 -3
  122. package/dist/calcite/{p-994d99ff.system.js → p-8d7bcbbe.system.js} +1 -1
  123. package/dist/calcite/{p-4a88016c.system.entry.js → p-8d90241c.system.entry.js} +2 -2
  124. package/dist/calcite/{p-f54288ad.js → p-8e5b28c2.js} +1 -1
  125. package/dist/calcite/{p-5e07a875.system.entry.js → p-8e8279db.system.entry.js} +2 -2
  126. package/dist/calcite/p-8e962e28.system.js +6 -0
  127. package/dist/calcite/{p-ae6f5622.js → p-8f789b45.js} +1 -1
  128. package/dist/calcite/{p-a1118db1.entry.js → p-8f8f1f3c.entry.js} +2 -2
  129. package/dist/calcite/{p-1ba93966.system.js → p-9191aae7.system.js} +1 -1
  130. package/dist/calcite/p-92c0a612.entry.js +6 -0
  131. package/dist/calcite/{p-8dfe7af3.js → p-93fb8320.js} +2 -2
  132. package/dist/calcite/{p-fba2fa9f.system.js → p-94e059ed.system.js} +2 -2
  133. package/dist/calcite/p-97f24602.entry.js +6 -0
  134. package/dist/calcite/{p-0804ce36.system.entry.js → p-97fef747.system.entry.js} +2 -2
  135. package/dist/calcite/p-99306484.entry.js +6 -0
  136. package/dist/calcite/{p-26526a6d.system.entry.js → p-9c3e33db.system.entry.js} +2 -2
  137. package/dist/calcite/{p-191d0802.system.js → p-9d82f6ba.system.js} +2 -2
  138. package/dist/calcite/p-9e7c867f.entry.js +6 -0
  139. package/dist/calcite/p-a1dec328.system.entry.js +6 -0
  140. package/dist/calcite/{p-1a5fc48b.entry.js → p-a2b65dca.entry.js} +2 -2
  141. package/dist/calcite/{p-df419c8b.entry.js → p-a5318c00.entry.js} +2 -2
  142. package/dist/calcite/p-a574d688.entry.js +6 -0
  143. package/dist/calcite/p-a6da6fa9.entry.js +6 -0
  144. package/dist/calcite/{p-0e1c259f.system.entry.js → p-a6ec6d30.system.entry.js} +2 -2
  145. package/dist/calcite/{p-5b60d64c.system.entry.js → p-a792b4d4.system.entry.js} +2 -2
  146. package/dist/calcite/p-a8d26072.entry.js +6 -0
  147. package/dist/calcite/p-a8e86b7c.system.js +6 -0
  148. package/dist/calcite/p-a930b4c7.system.entry.js +6 -0
  149. package/dist/calcite/p-aa40e505.entry.js +6 -0
  150. package/dist/calcite/p-ad42a290.system.entry.js +6 -0
  151. package/dist/calcite/{p-edf3436f.js → p-ae579245.js} +2 -2
  152. package/dist/calcite/p-afa96d7b.entry.js +6 -0
  153. package/dist/calcite/p-b3b7d99f.entry.js +6 -0
  154. package/dist/calcite/{p-4f82d10a.system.entry.js → p-b3c08277.system.entry.js} +2 -2
  155. package/dist/calcite/{p-3981a495.js → p-b4afbab0.js} +1 -1
  156. package/dist/calcite/{p-a75ad7cb.system.js → p-ba04d4a6.system.js} +1 -1
  157. package/dist/calcite/{p-2778cb53.entry.js → p-bae5371e.entry.js} +2 -2
  158. package/dist/calcite/p-bbad2c78.entry.js +6 -0
  159. package/dist/calcite/p-bbbf6fcb.system.entry.js +6 -0
  160. package/dist/calcite/p-bbc195d0.system.entry.js +6 -0
  161. package/dist/calcite/p-bc9c9c9b.js +6 -0
  162. package/dist/calcite/{p-e3076302.system.js → p-bdbeb0b8.system.js} +3 -3
  163. package/dist/calcite/{p-5904a047.entry.js → p-be0b7ae8.entry.js} +2 -2
  164. package/dist/calcite/{p-636e43ac.system.entry.js → p-bed13ccd.system.entry.js} +2 -2
  165. package/dist/calcite/p-c075111b.system.entry.js +6 -0
  166. package/dist/calcite/{p-ed0608ea.system.entry.js → p-c09197e1.system.entry.js} +2 -2
  167. package/dist/calcite/{p-6d41e372.system.entry.js → p-c3200434.system.entry.js} +2 -2
  168. package/dist/calcite/{p-c1548c19.js → p-c7e8f753.js} +2 -2
  169. package/dist/calcite/{p-eda11878.entry.js → p-cda3843c.entry.js} +2 -2
  170. package/dist/calcite/p-cfbd1180.entry.js +6 -0
  171. package/dist/calcite/p-d1fef3a5.entry.js +6 -0
  172. package/dist/calcite/{p-2fd30fee.entry.js → p-d313af3b.entry.js} +2 -2
  173. package/dist/calcite/{p-63d2bcec.system.entry.js → p-d69560ee.system.entry.js} +2 -2
  174. package/dist/calcite/{p-acafe8ca.system.js → p-d713b734.system.js} +1 -1
  175. package/dist/calcite/p-d7614205.entry.js +6 -0
  176. package/dist/calcite/{p-3b54c4a0.system.entry.js → p-d8cca171.system.entry.js} +2 -2
  177. package/dist/calcite/{p-9634f60d.entry.js → p-d8d3ee29.entry.js} +2 -2
  178. package/dist/calcite/p-d91ab8b3.system.entry.js +6 -0
  179. package/dist/calcite/p-da045e5a.system.js +6 -0
  180. package/dist/calcite/p-da603fb6.system.js +6 -0
  181. package/dist/calcite/{p-132b60fd.system.entry.js → p-dc5681bd.system.entry.js} +2 -2
  182. package/dist/calcite/{p-9ba769e3.system.entry.js → p-dda6305e.system.entry.js} +2 -2
  183. package/dist/calcite/{p-476e276f.entry.js → p-dfd66185.entry.js} +2 -2
  184. package/dist/calcite/{p-caea0782.js → p-e2a9bc3c.js} +1 -1
  185. package/dist/calcite/p-e4a9f3a3.entry.js +6 -0
  186. package/dist/calcite/p-e5100a68.system.entry.js +6 -0
  187. package/dist/calcite/p-e55af056.entry.js +6 -0
  188. package/dist/calcite/{p-4effc6db.js → p-e6ad54a7.js} +1 -1
  189. package/dist/calcite/{p-f1935a52.entry.js → p-ec0ff216.entry.js} +2 -2
  190. package/dist/calcite/{p-0cbdfc7e.entry.js → p-ee4221f2.entry.js} +2 -2
  191. package/dist/calcite/p-ef596bf4.system.js +6 -0
  192. package/dist/calcite/p-f00b1294.entry.js +6 -0
  193. package/dist/calcite/{p-feb71776.system.entry.js → p-f1b829e3.system.entry.js} +2 -2
  194. package/dist/calcite/p-f29e929e.system.entry.js +6 -0
  195. package/dist/calcite/{p-a73419ab.js → p-f54622d6.js} +1 -1
  196. package/dist/calcite/{p-ccb5a784.js → p-f70b3399.js} +1 -1
  197. package/dist/calcite/p-f8798ee9.system.js +6 -0
  198. package/dist/calcite/{p-45b6d321.entry.js → p-fcbb3104.entry.js} +2 -2
  199. package/dist/calcite/p-fe758da5.system.entry.js +6 -0
  200. package/dist/calcite/{p-515e5f7e.system.entry.js → p-ffc4d4f5.system.entry.js} +2 -2
  201. package/dist/cjs/{ExpandToggle-988c63cd.js → ExpandToggle-62479ccb.js} +5 -5
  202. package/dist/cjs/{Heading-19d7669b.js → Heading-f792c5a6.js} +3 -3
  203. package/dist/cjs/{array-d5bca414.js → array-b72d7dd3.js} +1 -1
  204. package/dist/cjs/calcite-accordion_2.cjs.entry.js +25 -16
  205. package/dist/cjs/calcite-action-bar.cjs.entry.js +16 -15
  206. package/dist/cjs/calcite-action-group.cjs.entry.js +11 -11
  207. package/dist/cjs/calcite-action-menu.cjs.entry.js +12 -12
  208. package/dist/cjs/calcite-action-pad.cjs.entry.js +15 -14
  209. package/dist/cjs/calcite-action.cjs.entry.js +17 -16
  210. package/dist/cjs/calcite-alert.cjs.entry.js +49 -25
  211. package/dist/cjs/calcite-avatar.cjs.entry.js +6 -6
  212. package/dist/cjs/calcite-block_2.cjs.entry.js +18 -12
  213. package/dist/cjs/calcite-button.cjs.entry.js +10 -9
  214. package/dist/cjs/calcite-card.cjs.entry.js +7 -7
  215. package/dist/cjs/calcite-checkbox.cjs.entry.js +7 -7
  216. package/dist/cjs/calcite-chip.cjs.entry.js +18 -9
  217. package/dist/cjs/calcite-color-picker_3.cjs.entry.js +41 -32
  218. package/dist/cjs/calcite-combobox_3.cjs.entry.js +96 -45
  219. package/dist/cjs/calcite-date-picker_4.cjs.entry.js +34 -15
  220. package/dist/cjs/calcite-dropdown_3.cjs.entry.js +63 -22
  221. package/dist/cjs/calcite-fab.cjs.entry.js +5 -5
  222. package/dist/cjs/calcite-filter.cjs.entry.js +7 -7
  223. package/dist/cjs/calcite-flow.cjs.entry.js +18 -11
  224. package/dist/cjs/calcite-graph_2.cjs.entry.js +10 -10
  225. package/dist/cjs/calcite-handle.cjs.entry.js +6 -5
  226. package/dist/cjs/calcite-icon.cjs.entry.js +5 -5
  227. package/dist/cjs/calcite-inline-editable.cjs.entry.js +7 -7
  228. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +37 -21
  229. package/dist/cjs/calcite-input-message.cjs.entry.js +4 -4
  230. package/dist/cjs/calcite-input-number.cjs.entry.js +531 -0
  231. package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +59 -46
  232. package/dist/cjs/calcite-input.cjs.entry.js +76 -48
  233. package/dist/cjs/calcite-label.cjs.entry.js +12 -8
  234. package/dist/cjs/calcite-link.cjs.entry.js +5 -5
  235. package/dist/cjs/calcite-list_3.cjs.entry.js +11 -11
  236. package/dist/cjs/calcite-loader.cjs.entry.js +9 -9
  237. package/dist/cjs/calcite-modal.cjs.entry.js +31 -22
  238. package/dist/cjs/calcite-notice.cjs.entry.js +21 -15
  239. package/dist/cjs/calcite-option_3.cjs.entry.js +10 -10
  240. package/dist/cjs/calcite-pagination.cjs.entry.js +13 -13
  241. package/dist/cjs/calcite-panel.cjs.entry.js +36 -25
  242. package/dist/cjs/calcite-pick-list_3.cjs.entry.js +25 -25
  243. package/dist/cjs/calcite-popover_2.cjs.entry.js +29 -25
  244. package/dist/cjs/calcite-progress.cjs.entry.js +5 -5
  245. package/dist/cjs/calcite-radio-button-group.cjs.entry.js +3 -3
  246. package/dist/cjs/calcite-radio-button.cjs.entry.js +8 -8
  247. package/dist/cjs/calcite-radio-group_2.cjs.entry.js +12 -9
  248. package/dist/cjs/calcite-rating.cjs.entry.js +26 -12
  249. package/dist/cjs/calcite-scrim.cjs.entry.js +2 -2
  250. package/dist/cjs/calcite-shell_3.cjs.entry.js +7 -7
  251. package/dist/cjs/calcite-sortable-list.cjs.entry.js +5 -5
  252. package/dist/cjs/calcite-split-button.cjs.entry.js +3 -3
  253. package/dist/cjs/calcite-stepper_2.cjs.entry.js +50 -17
  254. package/dist/cjs/calcite-switch.cjs.entry.js +7 -7
  255. package/dist/cjs/calcite-tab_4.cjs.entry.js +16 -16
  256. package/dist/cjs/calcite-tile-select_2.cjs.entry.js +6 -5
  257. package/dist/cjs/calcite-tile.cjs.entry.js +7 -7
  258. package/dist/cjs/calcite-tip_3.cjs.entry.js +7 -7
  259. package/dist/cjs/calcite-tooltip_2.cjs.entry.js +11 -11
  260. package/dist/cjs/calcite-tree_2.cjs.entry.js +15 -15
  261. package/dist/cjs/calcite-value-list_2.cjs.entry.js +99 -34
  262. package/dist/cjs/calcite.cjs.js +4 -4
  263. package/dist/cjs/{conditionalSlot-462ae1f4.js → conditionalSlot-d1eb82ce.js} +3 -3
  264. package/dist/cjs/{debounce-5127bc67.js → debounce-d2139fc6.js} +1 -1
  265. package/dist/cjs/{dom-b0904219.js → dom-99c1b44d.js} +3 -30
  266. package/dist/cjs/{forIn-265c8eb3.js → forIn-9ac96598.js} +2 -2
  267. package/dist/cjs/{form-4c32a5c7.js → form-4d1ef8c2.js} +8 -5
  268. package/dist/cjs/{guid-8af0f93c.js → guid-609f1c0d.js} +1 -1
  269. package/dist/cjs/{index-82ee13f7.js → index-68ddfe8e.js} +1 -1
  270. package/dist/cjs/index.cjs.js +1 -1
  271. package/dist/cjs/{interactive-15f9fd28.js → interactive-d1ef280c.js} +1 -1
  272. package/dist/cjs/{interfaces-86334104.js → interfaces-a3bdc804.js} +1 -1
  273. package/dist/cjs/key-017aa5b0.js +14 -0
  274. package/dist/cjs/{label-131d9cce.js → label-e24023c6.js} +2 -2
  275. package/dist/cjs/loader.cjs.js +4 -4
  276. package/dist/cjs/locale-2d8feb15.js +262 -0
  277. package/dist/cjs/{math-2f83830f.js → math-7fe3e64d.js} +1 -1
  278. package/dist/cjs/{observers-f672f664.js → observers-aa7367df.js} +1 -1
  279. package/dist/cjs/{popper-5ca144d4.js → popper-f29f9a3b.js} +2 -2
  280. package/dist/cjs/{resources-0de59f13.js → resources-0c0019fb.js} +13 -19
  281. package/dist/cjs/{resources-24a7ca1a.js → resources-9aaa6e0a.js} +3 -3
  282. package/dist/cjs/{resources-06f33bd4.js → resources-a7f0af25.js} +1 -1
  283. package/dist/cjs/{resources-08dc0a5e.js → resources-b4ed54b9.js} +1 -1
  284. package/dist/cjs/{sortable.esm-8e944897.js → sortable.esm-6dc17794.js} +1 -1
  285. package/dist/cjs/{utils-f3a37c0a.js → utils-53d98078.js} +1 -1
  286. package/dist/collection/collection-manifest.json +7 -1
  287. package/dist/collection/components/accordion/accordion.js +14 -14
  288. package/dist/collection/components/accordion/interfaces.js +1 -1
  289. package/dist/collection/components/accordion-item/accordion-item.css +55 -18
  290. package/dist/collection/components/accordion-item/accordion-item.js +84 -14
  291. package/dist/collection/components/action/action.css +37 -11
  292. package/dist/collection/components/action/action.js +24 -23
  293. package/dist/collection/components/action/resources.js +1 -1
  294. package/dist/collection/components/action-bar/action-bar.css +1 -0
  295. package/dist/collection/components/action-bar/action-bar.js +14 -13
  296. package/dist/collection/components/action-bar/resources.js +1 -1
  297. package/dist/collection/components/action-bar/utils.js +1 -1
  298. package/dist/collection/components/action-group/action-group.css +1 -1
  299. package/dist/collection/components/action-group/action-group.js +11 -11
  300. package/dist/collection/components/action-group/resources.js +1 -1
  301. package/dist/collection/components/action-menu/action-menu.css +2 -1
  302. package/dist/collection/components/action-menu/action-menu.js +12 -12
  303. package/dist/collection/components/action-menu/resources.js +1 -1
  304. package/dist/collection/components/action-pad/action-pad.css +1 -0
  305. package/dist/collection/components/action-pad/action-pad.js +16 -15
  306. package/dist/collection/components/action-pad/resources.js +1 -1
  307. package/dist/collection/components/alert/alert.css +26 -14
  308. package/dist/collection/components/alert/alert.js +111 -43
  309. package/dist/collection/components/alert/interfaces.js +1 -1
  310. package/dist/collection/components/alert/resources.js +4 -1
  311. package/dist/collection/components/avatar/avatar.js +7 -7
  312. package/dist/collection/components/avatar/utils.js +1 -1
  313. package/dist/collection/components/block/block.css +6 -2
  314. package/dist/collection/components/block/block.js +49 -6
  315. package/dist/collection/components/block/resources.js +2 -1
  316. package/dist/collection/components/block-section/block-section.css +6 -3
  317. package/dist/collection/components/block-section/block-section.js +1 -1
  318. package/dist/collection/components/block-section/interfaces.js +1 -1
  319. package/dist/collection/components/block-section/resources.js +1 -1
  320. package/dist/collection/components/button/button.css +115 -54
  321. package/dist/collection/components/button/button.js +3 -2
  322. package/dist/collection/components/button/interfaces.js +1 -1
  323. package/dist/collection/components/button/resources.js +1 -1
  324. package/dist/collection/components/card/card.css +15 -7
  325. package/dist/collection/components/card/card.js +1 -1
  326. package/dist/collection/components/card/resources.js +1 -1
  327. package/dist/collection/components/checkbox/checkbox.css +3 -2
  328. package/dist/collection/components/checkbox/checkbox.js +1 -1
  329. package/dist/collection/components/chip/chip.css +8 -2
  330. package/dist/collection/components/chip/chip.js +52 -4
  331. package/dist/collection/components/chip/interfaces.js +1 -1
  332. package/dist/collection/components/chip/resources.js +1 -1
  333. package/dist/collection/components/color-picker/color-picker.css +1 -0
  334. package/dist/collection/components/color-picker/color-picker.js +49 -23
  335. package/dist/collection/components/color-picker/interfaces.js +1 -1
  336. package/dist/collection/components/color-picker/resources.js +1 -1
  337. package/dist/collection/components/color-picker/utils.js +1 -1
  338. package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.js +19 -2
  339. package/dist/collection/components/color-picker-hex-input/resources.js +1 -1
  340. package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +1 -1
  341. package/dist/collection/components/color-picker-swatch/resources.js +1 -1
  342. package/dist/collection/components/combobox/combobox.css +10 -2
  343. package/dist/collection/components/combobox/combobox.js +179 -49
  344. package/dist/collection/components/combobox/interfaces.js +1 -1
  345. package/dist/collection/components/combobox/resources.js +3 -2
  346. package/dist/collection/components/combobox/utils.js +1 -1
  347. package/dist/collection/components/combobox-item/combobox-item.css +8 -2
  348. package/dist/collection/components/combobox-item/combobox-item.js +22 -2
  349. package/dist/collection/components/combobox-item/resources.js +1 -1
  350. package/dist/collection/components/combobox-item-group/combobox-item-group.css +6 -1
  351. package/dist/collection/components/combobox-item-group/combobox-item-group.js +1 -1
  352. package/dist/collection/components/combobox-item-group/resources.js +1 -1
  353. package/dist/collection/components/date-picker/assets/date-picker/nls/th.json +1 -1
  354. package/dist/collection/components/date-picker/date-picker.js +1 -1
  355. package/dist/collection/components/date-picker/interfaces.js +1 -1
  356. package/dist/collection/components/date-picker/resources.js +1 -1
  357. package/dist/collection/components/date-picker/utils.js +1 -1
  358. package/dist/collection/components/date-picker-day/date-picker-day.css +18 -9
  359. package/dist/collection/components/date-picker-day/date-picker-day.js +1 -1
  360. package/dist/collection/components/date-picker-month/date-picker-month.js +1 -1
  361. package/dist/collection/components/date-picker-month-header/date-picker-month-header.css +4 -2
  362. package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +25 -7
  363. package/dist/collection/components/date-picker-month-header/resources.js +6 -0
  364. package/dist/collection/components/dropdown/dropdown.css +10 -1
  365. package/dist/collection/components/dropdown/dropdown.js +130 -23
  366. package/dist/collection/components/dropdown/interfaces.js +1 -1
  367. package/dist/collection/components/dropdown/resources.js +4 -1
  368. package/dist/collection/components/dropdown-group/dropdown-group.js +1 -1
  369. package/dist/collection/components/dropdown-group/interfaces.js +1 -1
  370. package/dist/collection/components/dropdown-group/resources.js +1 -1
  371. package/dist/collection/components/dropdown-item/dropdown-item.css +16 -11
  372. package/dist/collection/components/dropdown-item/dropdown-item.js +3 -2
  373. package/dist/collection/components/dropdown-item/resources.js +1 -1
  374. package/dist/collection/components/fab/fab.js +1 -1
  375. package/dist/collection/components/fab/resources.js +1 -1
  376. package/dist/collection/components/filter/filter.css +1 -1
  377. package/dist/collection/components/filter/filter.js +1 -1
  378. package/dist/collection/components/filter/resources.js +1 -1
  379. package/dist/collection/components/flow/flow.js +17 -10
  380. package/dist/collection/components/flow/interfaces.js +1 -1
  381. package/dist/collection/components/flow/resources.js +1 -1
  382. package/dist/collection/components/functional/ExpandToggle.js +1 -1
  383. package/dist/collection/components/functional/Heading.js +2 -2
  384. package/dist/collection/components/graph/graph.js +1 -1
  385. package/dist/collection/components/graph/interfaces.js +1 -1
  386. package/dist/collection/components/graph/util.js +1 -1
  387. package/dist/collection/components/handle/handle.js +3 -2
  388. package/dist/collection/components/handle/resources.js +1 -1
  389. package/dist/collection/components/icon/assets/icon/changeDetection16.json +1 -0
  390. package/dist/collection/components/icon/assets/icon/changeDetection24.json +1 -0
  391. package/dist/collection/components/icon/assets/icon/changeDetection32.json +1 -0
  392. package/dist/collection/components/icon/assets/icon/imageDisplayOrder16.json +1 -0
  393. package/dist/collection/components/icon/assets/icon/imageDisplayOrder24.json +1 -0
  394. package/dist/collection/components/icon/assets/icon/imageDisplayOrder32.json +1 -0
  395. package/dist/collection/components/icon/assets/icon/numberCircle416.json +1 -0
  396. package/dist/collection/components/icon/assets/icon/numberCircle424.json +1 -0
  397. package/dist/collection/components/icon/assets/icon/numberCircle432.json +1 -0
  398. package/dist/collection/components/icon/assets/icon/numberCircle516.json +1 -0
  399. package/dist/collection/components/icon/assets/icon/numberCircle524.json +1 -0
  400. package/dist/collection/components/icon/assets/icon/numberCircle532.json +1 -0
  401. package/dist/collection/components/icon/assets/icon/numberCircle616.json +1 -0
  402. package/dist/collection/components/icon/assets/icon/numberCircle624.json +1 -0
  403. package/dist/collection/components/icon/assets/icon/numberCircle632.json +1 -0
  404. package/dist/collection/components/icon/assets/icon/numberCircle716.json +1 -0
  405. package/dist/collection/components/icon/assets/icon/numberCircle724.json +1 -0
  406. package/dist/collection/components/icon/assets/icon/numberCircle732.json +1 -0
  407. package/dist/collection/components/icon/assets/icon/numberCircle816.json +1 -0
  408. package/dist/collection/components/icon/assets/icon/numberCircle824.json +1 -0
  409. package/dist/collection/components/icon/assets/icon/numberCircle832.json +1 -0
  410. package/dist/collection/components/icon/assets/icon/numberCircle916.json +1 -0
  411. package/dist/collection/components/icon/assets/icon/numberCircle924.json +1 -0
  412. package/dist/collection/components/icon/assets/icon/numberCircle932.json +1 -0
  413. package/dist/collection/components/icon/assets/icon/showMultipleLayersAtATime16.json +1 -0
  414. package/dist/collection/components/icon/assets/icon/showMultipleLayersAtATime24.json +1 -0
  415. package/dist/collection/components/icon/assets/icon/showMultipleLayersAtATime32.json +1 -0
  416. package/dist/collection/components/icon/assets/icon/showOneLayerAtATime16.json +1 -0
  417. package/dist/collection/components/icon/assets/icon/showOneLayerAtATime24.json +1 -0
  418. package/dist/collection/components/icon/assets/icon/showOneLayerAtATime32.json +1 -0
  419. package/dist/collection/components/icon/icon.js +1 -1
  420. package/dist/collection/components/icon/resources.js +1 -1
  421. package/dist/collection/components/icon/utils.js +1 -1
  422. package/dist/collection/components/inline-editable/inline-editable.js +1 -1
  423. package/dist/collection/components/inline-editable/resources.js +1 -1
  424. package/dist/collection/components/input/input.css +33 -20
  425. package/dist/collection/components/input/input.js +151 -71
  426. package/dist/collection/components/input/interfaces.js +1 -1
  427. package/dist/collection/components/input/resources.js +1 -1
  428. package/dist/collection/components/input-date-picker/input-date-picker.js +46 -11
  429. package/dist/collection/components/input-date-picker/resources.js +9 -0
  430. package/dist/collection/components/input-message/input-message.js +1 -1
  431. package/dist/collection/components/input-message/interfaces.js +1 -1
  432. package/dist/collection/components/input-number/input-number.css +509 -0
  433. package/dist/collection/components/input-number/input-number.js +1251 -0
  434. package/dist/collection/components/input-number/interfaces.js +6 -0
  435. package/dist/collection/components/input-number/resources.js +27 -0
  436. package/dist/collection/components/input-time-picker/input-time-picker.js +45 -10
  437. package/dist/collection/components/interfaces.js +1 -1
  438. package/dist/collection/components/label/label.css +26 -6
  439. package/dist/collection/components/label/label.js +20 -13
  440. package/dist/collection/components/label/resources.js +1 -1
  441. package/dist/collection/components/link/link.css +8 -4
  442. package/dist/collection/components/link/link.js +1 -1
  443. package/dist/collection/components/list/list.js +5 -4
  444. package/dist/collection/components/list/resources.js +1 -1
  445. package/dist/collection/components/list-item/list-item.css +20 -9
  446. package/dist/collection/components/list-item/list-item.js +12 -12
  447. package/dist/collection/components/list-item/resources.js +1 -1
  448. package/dist/collection/components/list-item-group/list-item-group.js +3 -3
  449. package/dist/collection/components/list-item-group/resources.js +1 -1
  450. package/dist/collection/components/loader/loader.css +1 -1
  451. package/dist/collection/components/loader/loader.js +17 -17
  452. package/dist/collection/components/modal/interfaces.js +1 -1
  453. package/dist/collection/components/modal/modal.css +28 -17
  454. package/dist/collection/components/modal/modal.js +62 -30
  455. package/dist/collection/components/modal/resources.js +1 -1
  456. package/dist/collection/components/notice/notice.css +18 -10
  457. package/dist/collection/components/notice/notice.js +49 -22
  458. package/dist/collection/components/notice/resources.js +1 -1
  459. package/dist/collection/components/option/option.js +6 -6
  460. package/dist/collection/components/option-group/option-group.js +4 -4
  461. package/dist/collection/components/pagination/pagination.css +24 -13
  462. package/dist/collection/components/pagination/pagination.js +20 -20
  463. package/dist/collection/components/pagination/resources.js +1 -1
  464. package/dist/collection/components/panel/panel.css +10 -7
  465. package/dist/collection/components/panel/panel.js +114 -40
  466. package/dist/collection/components/panel/resources.js +2 -1
  467. package/dist/collection/components/pick-list/pick-list.js +18 -18
  468. package/dist/collection/components/pick-list/resources.js +1 -1
  469. package/dist/collection/components/pick-list/shared-list-logic.js +5 -1
  470. package/dist/collection/components/pick-list/shared-list-render.js +4 -15
  471. package/dist/collection/components/pick-list-group/pick-list-group.css +2 -1
  472. package/dist/collection/components/pick-list-group/pick-list-group.js +3 -3
  473. package/dist/collection/components/pick-list-group/resources.js +1 -1
  474. package/dist/collection/components/pick-list-item/pick-list-item.css +2 -1
  475. package/dist/collection/components/pick-list-item/pick-list-item.js +23 -23
  476. package/dist/collection/components/pick-list-item/resources.js +1 -1
  477. package/dist/collection/components/popover/PopoverManager.js +3 -4
  478. package/dist/collection/components/popover/popover.css +2 -1
  479. package/dist/collection/components/popover/popover.js +62 -37
  480. package/dist/collection/components/popover/resources.js +1 -1
  481. package/dist/collection/components/popover-manager/popover-manager.js +1 -1
  482. package/dist/collection/components/progress/progress.css +2 -1
  483. package/dist/collection/components/progress/progress.js +9 -9
  484. package/dist/collection/components/radio-button/radio-button.js +1 -1
  485. package/dist/collection/components/radio-button/resources.js +1 -1
  486. package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
  487. package/dist/collection/components/radio-group/interfaces.js +1 -1
  488. package/dist/collection/components/radio-group/radio-group.css +2 -1
  489. package/dist/collection/components/radio-group/radio-group.js +10 -4
  490. package/dist/collection/components/radio-group-item/radio-group-item.css +14 -0
  491. package/dist/collection/components/radio-group-item/radio-group-item.js +2 -2
  492. package/dist/collection/components/radio-group-item/resources.js +1 -1
  493. package/dist/collection/components/rating/rating.js +20 -6
  494. package/dist/collection/components/rating/resources.js +1 -1
  495. package/dist/collection/components/scrim/resources.js +1 -1
  496. package/dist/collection/components/scrim/scrim.js +1 -1
  497. package/dist/collection/components/select/resources.js +1 -1
  498. package/dist/collection/components/select/select.js +1 -1
  499. package/dist/collection/components/shell/resources.js +1 -1
  500. package/dist/collection/components/shell/shell.css +7 -3
  501. package/dist/collection/components/shell/shell.js +1 -1
  502. package/dist/collection/components/shell-center-row/resources.js +1 -1
  503. package/dist/collection/components/shell-center-row/shell-center-row.js +1 -1
  504. package/dist/collection/components/shell-panel/resources.js +1 -1
  505. package/dist/collection/components/shell-panel/shell-panel.css +11 -4
  506. package/dist/collection/components/shell-panel/shell-panel.js +1 -1
  507. package/dist/collection/components/slider/slider.css +18 -8
  508. package/dist/collection/components/slider/slider.js +2 -2
  509. package/dist/collection/components/sortable-list/resources.js +1 -1
  510. package/dist/collection/components/sortable-list/sortable-list.js +1 -1
  511. package/dist/collection/components/split-button/resources.js +1 -1
  512. package/dist/collection/components/split-button/split-button.js +1 -1
  513. package/dist/collection/components/stepper/interfaces.js +1 -1
  514. package/dist/collection/components/stepper/stepper.js +48 -9
  515. package/dist/collection/components/stepper-item/stepper-item.css +23 -15
  516. package/dist/collection/components/stepper-item/stepper-item.js +107 -12
  517. package/dist/collection/components/switch/switch.css +2 -1
  518. package/dist/collection/components/switch/switch.js +1 -1
  519. package/dist/collection/components/tab/interfaces.js +1 -1
  520. package/dist/collection/components/tab/tab.js +1 -1
  521. package/dist/collection/components/tab-nav/tab-nav.css +15 -4
  522. package/dist/collection/components/tab-nav/tab-nav.js +6 -6
  523. package/dist/collection/components/tab-title/tab-title.css +49 -13
  524. package/dist/collection/components/tab-title/tab-title.js +3 -4
  525. package/dist/collection/components/tabs/interfaces.js +1 -1
  526. package/dist/collection/components/tabs/resources.js +1 -1
  527. package/dist/collection/components/tabs/tabs.css +28 -0
  528. package/dist/collection/components/tabs/tabs.js +7 -6
  529. package/dist/collection/components/tile/resources.js +1 -1
  530. package/dist/collection/components/tile/tile.css +4 -2
  531. package/dist/collection/components/tile/tile.js +1 -1
  532. package/dist/collection/components/tile-select/interfaces.js +1 -1
  533. package/dist/collection/components/tile-select/resources.js +1 -1
  534. package/dist/collection/components/tile-select/tile-select.css +2 -1
  535. package/dist/collection/components/tile-select/tile-select.js +3 -2
  536. package/dist/collection/components/tile-select-group/interfaces.js +1 -1
  537. package/dist/collection/components/tile-select-group/tile-select-group.js +1 -1
  538. package/dist/collection/components/time-picker/resources.js +1 -1
  539. package/dist/collection/components/time-picker/time-picker.css +8 -5
  540. package/dist/collection/components/time-picker/time-picker.js +1 -1
  541. package/dist/collection/components/tip/resources.js +1 -1
  542. package/dist/collection/components/tip/tip.css +4 -2
  543. package/dist/collection/components/tip/tip.js +1 -1
  544. package/dist/collection/components/tip-group/tip-group.js +1 -1
  545. package/dist/collection/components/tip-manager/resources.js +1 -1
  546. package/dist/collection/components/tip-manager/tip-manager.css +2 -1
  547. package/dist/collection/components/tip-manager/tip-manager.js +1 -1
  548. package/dist/collection/components/tooltip/TooltipManager.js +2 -2
  549. package/dist/collection/components/tooltip/resources.js +1 -1
  550. package/dist/collection/components/tooltip/tooltip.js +12 -12
  551. package/dist/collection/components/tooltip-manager/tooltip-manager.js +1 -1
  552. package/dist/collection/components/tree/interfaces.js +1 -1
  553. package/dist/collection/components/tree/tree.css +3 -0
  554. package/dist/collection/components/tree/tree.js +8 -8
  555. package/dist/collection/components/tree-item/interfaces.js +1 -1
  556. package/dist/collection/components/tree-item/resources.js +1 -1
  557. package/dist/collection/components/tree-item/tree-item.css +22 -9
  558. package/dist/collection/components/tree-item/tree-item.js +8 -8
  559. package/dist/collection/components/value-list/interfaces.js +6 -0
  560. package/dist/collection/components/value-list/resources.js +1 -1
  561. package/dist/collection/components/value-list/utils.js +49 -0
  562. package/dist/collection/components/value-list/value-list.js +116 -26
  563. package/dist/collection/components/value-list-item/resources.js +1 -1
  564. package/dist/collection/components/value-list-item/value-list-item.css +2 -1
  565. package/dist/collection/components/value-list-item/value-list-item.js +18 -18
  566. package/dist/collection/utils/array.js +1 -1
  567. package/dist/collection/utils/conditionalSlot.js +1 -1
  568. package/dist/collection/utils/date.js +1 -1
  569. package/dist/collection/utils/dom.js +2 -28
  570. package/dist/collection/utils/filter.js +3 -3
  571. package/dist/collection/utils/form.js +6 -3
  572. package/dist/collection/utils/globalAttributes.js +1 -1
  573. package/dist/collection/utils/guid.js +1 -1
  574. package/dist/collection/utils/interactive.js +1 -1
  575. package/dist/collection/utils/key.js +1 -1
  576. package/dist/collection/utils/label.js +1 -1
  577. package/dist/collection/utils/locale.js +8 -9
  578. package/dist/collection/utils/math.js +1 -1
  579. package/dist/collection/utils/number.js +71 -8
  580. package/dist/collection/utils/observers.js +1 -1
  581. package/dist/collection/utils/openCloseComponent.js +6 -0
  582. package/dist/collection/utils/popper.js +1 -1
  583. package/dist/collection/utils/resources.js +1 -1
  584. package/dist/collection/utils/time.js +1 -1
  585. package/dist/components/ExpandToggle.js +1 -1
  586. package/dist/components/Heading.js +2 -2
  587. package/dist/components/action-group.js +4 -4
  588. package/dist/components/action-menu.js +5 -5
  589. package/dist/components/action.js +12 -11
  590. package/dist/components/array.js +1 -1
  591. package/dist/components/button.js +4 -3
  592. package/dist/components/calcite-accordion-item.js +19 -7
  593. package/dist/components/calcite-accordion.js +8 -8
  594. package/dist/components/calcite-action-bar.js +7 -6
  595. package/dist/components/calcite-action-group.js +1 -1
  596. package/dist/components/calcite-action-menu.js +1 -1
  597. package/dist/components/calcite-action-pad.js +7 -6
  598. package/dist/components/calcite-action.js +1 -1
  599. package/dist/components/calcite-alert.js +45 -21
  600. package/dist/components/calcite-avatar.js +3 -3
  601. package/dist/components/calcite-block-section.js +1 -1
  602. package/dist/components/calcite-block.js +14 -6
  603. package/dist/components/calcite-button.js +1 -1
  604. package/dist/components/calcite-card.js +2 -2
  605. package/dist/components/calcite-checkbox.js +1 -1
  606. package/dist/components/calcite-chip.js +1 -1
  607. package/dist/components/calcite-color-picker-hex-input.js +1 -1
  608. package/dist/components/calcite-color-picker-swatch.js +1 -1
  609. package/dist/components/calcite-color-picker.js +34 -24
  610. package/dist/components/calcite-combobox-item-group.js +2 -2
  611. package/dist/components/calcite-combobox-item.js +3 -2
  612. package/dist/components/calcite-combobox.js +85 -32
  613. package/dist/components/calcite-date-picker-day.js +1 -1
  614. package/dist/components/calcite-date-picker-month-header.js +1 -1
  615. package/dist/components/calcite-date-picker-month.js +1 -1
  616. package/dist/components/calcite-date-picker.js +1 -1
  617. package/dist/components/calcite-dropdown-group.js +1 -1
  618. package/dist/components/calcite-dropdown-item.js +4 -3
  619. package/dist/components/calcite-dropdown.js +1 -1
  620. package/dist/components/calcite-fab.js +1 -1
  621. package/dist/components/calcite-filter.js +1 -1
  622. package/dist/components/calcite-flow.js +17 -10
  623. package/dist/components/calcite-graph.js +1 -1
  624. package/dist/components/calcite-handle.js +1 -1
  625. package/dist/components/calcite-icon.js +1 -1
  626. package/dist/components/calcite-inline-editable.js +1 -1
  627. package/dist/components/calcite-input-date-picker.js +31 -14
  628. package/dist/components/calcite-input-message.js +1 -1
  629. package/dist/components/calcite-input-number.d.ts +11 -0
  630. package/dist/components/calcite-input-number.js +592 -0
  631. package/dist/components/calcite-input-time-picker.js +22 -9
  632. package/dist/components/calcite-input.js +1 -1
  633. package/dist/components/calcite-label.js +1 -1
  634. package/dist/components/calcite-link.js +1 -1
  635. package/dist/components/calcite-list-item-group.js +1 -1
  636. package/dist/components/calcite-list-item.js +3 -3
  637. package/dist/components/calcite-list.js +2 -2
  638. package/dist/components/calcite-loader.js +1 -1
  639. package/dist/components/calcite-modal.js +28 -18
  640. package/dist/components/calcite-notice.js +16 -9
  641. package/dist/components/calcite-option-group.js +2 -2
  642. package/dist/components/calcite-option.js +2 -2
  643. package/dist/components/calcite-pagination.js +9 -9
  644. package/dist/components/calcite-panel.js +31 -17
  645. package/dist/components/calcite-pick-list-group.js +1 -1
  646. package/dist/components/calcite-pick-list-item.js +1 -1
  647. package/dist/components/calcite-pick-list.js +9 -9
  648. package/dist/components/calcite-popover-manager.js +1 -1
  649. package/dist/components/calcite-popover.js +1 -1
  650. package/dist/components/calcite-progress.js +1 -1
  651. package/dist/components/calcite-radio-button-group.js +1 -1
  652. package/dist/components/calcite-radio-button.js +1 -1
  653. package/dist/components/calcite-radio-group-item.js +3 -3
  654. package/dist/components/calcite-radio-group.js +5 -2
  655. package/dist/components/calcite-rating.js +20 -6
  656. package/dist/components/calcite-scrim.js +1 -1
  657. package/dist/components/calcite-select.js +1 -1
  658. package/dist/components/calcite-shell-center-row.js +1 -1
  659. package/dist/components/calcite-shell-panel.js +1 -1
  660. package/dist/components/calcite-shell.js +1 -1
  661. package/dist/components/calcite-slider.js +3 -3
  662. package/dist/components/calcite-sortable-list.js +1 -1
  663. package/dist/components/calcite-split-button.js +1 -1
  664. package/dist/components/calcite-stepper-item.js +31 -7
  665. package/dist/components/calcite-stepper.js +19 -8
  666. package/dist/components/calcite-switch.js +1 -1
  667. package/dist/components/calcite-tab-nav.js +1 -1
  668. package/dist/components/calcite-tab-title.js +1 -1
  669. package/dist/components/calcite-tab.js +1 -1
  670. package/dist/components/calcite-tabs.js +1 -1
  671. package/dist/components/calcite-tile-select-group.js +1 -1
  672. package/dist/components/calcite-tile-select.js +3 -2
  673. package/dist/components/calcite-tile.js +1 -1
  674. package/dist/components/calcite-time-picker.js +1 -1
  675. package/dist/components/calcite-tip-group.js +1 -1
  676. package/dist/components/calcite-tip-manager.js +1 -1
  677. package/dist/components/calcite-tip.js +1 -1
  678. package/dist/components/calcite-tooltip-manager.js +1 -1
  679. package/dist/components/calcite-tooltip.js +8 -8
  680. package/dist/components/calcite-tree-item.js +7 -7
  681. package/dist/components/calcite-tree.js +5 -5
  682. package/dist/components/calcite-value-list-item.js +7 -7
  683. package/dist/components/calcite-value-list.js +89 -20
  684. package/dist/components/checkbox.js +1 -1
  685. package/dist/components/chip.js +15 -4
  686. package/dist/components/color-picker-hex-input.js +3 -2
  687. package/dist/components/color-picker-swatch.js +2 -2
  688. package/dist/components/conditionalSlot.js +1 -1
  689. package/dist/components/date-picker-day.js +1 -1
  690. package/dist/components/date-picker-month-header.js +27 -8
  691. package/dist/components/date-picker-month.js +1 -1
  692. package/dist/components/date-picker.js +1 -1
  693. package/dist/components/date.js +1 -1
  694. package/dist/components/debounce.js +1 -1
  695. package/dist/components/dom.js +3 -29
  696. package/dist/components/dropdown.js +55 -14
  697. package/dist/components/filter.js +1 -1
  698. package/dist/components/forIn.js +1 -1
  699. package/dist/components/form.js +7 -4
  700. package/dist/components/graph.js +1 -1
  701. package/dist/components/guid.js +1 -1
  702. package/dist/components/handle.js +3 -2
  703. package/dist/components/icon.js +1 -1
  704. package/dist/components/index.js +1 -1
  705. package/dist/components/input.js +59 -30
  706. package/dist/components/interactive.js +1 -1
  707. package/dist/components/interfaces.js +1 -1
  708. package/dist/components/interfaces2.js +1 -1
  709. package/dist/components/key.js +11 -0
  710. package/dist/components/label.js +2 -2
  711. package/dist/components/label2.js +10 -6
  712. package/dist/components/link.js +1 -1
  713. package/dist/components/loader.js +7 -7
  714. package/dist/components/locale.js +136 -8
  715. package/dist/components/math.js +1 -1
  716. package/dist/components/observers.js +1 -1
  717. package/dist/components/pick-list-item.js +7 -7
  718. package/dist/components/popover.js +25 -20
  719. package/dist/components/popper.js +1 -1
  720. package/dist/components/progress.js +4 -4
  721. package/dist/components/resources.js +1 -1
  722. package/dist/components/resources2.js +1 -1
  723. package/dist/components/resources3.js +1 -1
  724. package/dist/components/scrim.js +1 -1
  725. package/dist/components/shared-list-render.js +9 -16
  726. package/dist/components/sortable.esm.js +1 -1
  727. package/dist/components/switch.js +1 -1
  728. package/dist/components/tab-nav.js +6 -6
  729. package/dist/components/tab-title.js +3 -4
  730. package/dist/components/tab.js +1 -1
  731. package/dist/components/tabs.js +5 -4
  732. package/dist/components/tile.js +1 -1
  733. package/dist/components/time-picker.js +3 -2
  734. package/dist/components/utils.js +1 -1
  735. package/dist/components/utils2.js +1 -1
  736. package/dist/custom-elements/index.d.ts +6 -0
  737. package/dist/custom-elements/index.js +1628 -698
  738. package/dist/esm/{ExpandToggle-ce794961.js → ExpandToggle-7076d600.js} +5 -5
  739. package/dist/esm/{Heading-9ccb3452.js → Heading-5ccb3b17.js} +3 -3
  740. package/dist/esm/{array-7a76d321.js → array-48f23287.js} +1 -1
  741. package/dist/esm/calcite-accordion_2.entry.js +25 -16
  742. package/dist/esm/calcite-action-bar.entry.js +16 -15
  743. package/dist/esm/calcite-action-group.entry.js +11 -11
  744. package/dist/esm/calcite-action-menu.entry.js +12 -12
  745. package/dist/esm/calcite-action-pad.entry.js +15 -14
  746. package/dist/esm/calcite-action.entry.js +17 -16
  747. package/dist/esm/calcite-alert.entry.js +49 -25
  748. package/dist/esm/calcite-avatar.entry.js +6 -6
  749. package/dist/esm/calcite-block_2.entry.js +18 -12
  750. package/dist/esm/calcite-button.entry.js +10 -9
  751. package/dist/esm/calcite-card.entry.js +7 -7
  752. package/dist/esm/calcite-checkbox.entry.js +7 -7
  753. package/dist/esm/calcite-chip.entry.js +18 -9
  754. package/dist/esm/calcite-color-picker_3.entry.js +41 -32
  755. package/dist/esm/calcite-combobox_3.entry.js +96 -45
  756. package/dist/esm/calcite-date-picker_4.entry.js +34 -15
  757. package/dist/esm/calcite-dropdown_3.entry.js +63 -22
  758. package/dist/esm/calcite-fab.entry.js +5 -5
  759. package/dist/esm/calcite-filter.entry.js +7 -7
  760. package/dist/esm/calcite-flow.entry.js +18 -11
  761. package/dist/esm/calcite-graph_2.entry.js +10 -10
  762. package/dist/esm/calcite-handle.entry.js +6 -5
  763. package/dist/esm/calcite-icon.entry.js +5 -5
  764. package/dist/esm/calcite-inline-editable.entry.js +7 -7
  765. package/dist/esm/calcite-input-date-picker.entry.js +39 -23
  766. package/dist/esm/calcite-input-message.entry.js +4 -4
  767. package/dist/esm/calcite-input-number.entry.js +527 -0
  768. package/dist/esm/calcite-input-time-picker_2.entry.js +29 -16
  769. package/dist/esm/calcite-input.entry.js +65 -37
  770. package/dist/esm/calcite-label.entry.js +12 -8
  771. package/dist/esm/calcite-link.entry.js +5 -5
  772. package/dist/esm/calcite-list_3.entry.js +11 -11
  773. package/dist/esm/calcite-loader.entry.js +9 -9
  774. package/dist/esm/calcite-modal.entry.js +31 -22
  775. package/dist/esm/calcite-notice.entry.js +21 -15
  776. package/dist/esm/calcite-option_3.entry.js +10 -10
  777. package/dist/esm/calcite-pagination.entry.js +13 -13
  778. package/dist/esm/calcite-panel.entry.js +36 -25
  779. package/dist/esm/calcite-pick-list_3.entry.js +25 -25
  780. package/dist/esm/calcite-popover_2.entry.js +29 -25
  781. package/dist/esm/calcite-progress.entry.js +5 -5
  782. package/dist/esm/calcite-radio-button-group.entry.js +3 -3
  783. package/dist/esm/calcite-radio-button.entry.js +8 -8
  784. package/dist/esm/calcite-radio-group_2.entry.js +12 -9
  785. package/dist/esm/calcite-rating.entry.js +26 -12
  786. package/dist/esm/calcite-scrim.entry.js +2 -2
  787. package/dist/esm/calcite-shell_3.entry.js +7 -7
  788. package/dist/esm/calcite-sortable-list.entry.js +5 -5
  789. package/dist/esm/calcite-split-button.entry.js +3 -3
  790. package/dist/esm/calcite-stepper_2.entry.js +50 -17
  791. package/dist/esm/calcite-switch.entry.js +7 -7
  792. package/dist/esm/calcite-tab_4.entry.js +16 -16
  793. package/dist/esm/calcite-tile-select_2.entry.js +6 -5
  794. package/dist/esm/calcite-tile.entry.js +7 -7
  795. package/dist/esm/calcite-tip_3.entry.js +7 -7
  796. package/dist/esm/calcite-tooltip_2.entry.js +11 -11
  797. package/dist/esm/calcite-tree_2.entry.js +15 -15
  798. package/dist/esm/calcite-value-list_2.entry.js +99 -34
  799. package/dist/esm/calcite.js +4 -4
  800. package/dist/esm/{conditionalSlot-6be8f3bd.js → conditionalSlot-13c69fa9.js} +3 -3
  801. package/dist/esm/{debounce-9626aac0.js → debounce-bef6fc2c.js} +1 -1
  802. package/dist/esm/{dom-4caa79e4.js → dom-6c1f7204.js} +4 -30
  803. package/dist/esm/{forIn-091a9d50.js → forIn-566610cc.js} +2 -2
  804. package/dist/esm/{form-7c2e444b.js → form-115e3241.js} +8 -5
  805. package/dist/esm/{guid-27925469.js → guid-9ee41ac6.js} +1 -1
  806. package/dist/esm/{index-1e02e91b.js → index-dfcf10d7.js} +1 -1
  807. package/dist/esm/index.js +1 -1
  808. package/dist/esm/{interactive-32803ed8.js → interactive-2a03c362.js} +1 -1
  809. package/dist/esm/{interfaces-64ad1cde.js → interfaces-02cee59d.js} +1 -1
  810. package/dist/esm/key-1219c482.js +11 -0
  811. package/dist/esm/{label-ccf07634.js → label-b30a7cde.js} +2 -2
  812. package/dist/esm/loader.js +4 -4
  813. package/dist/esm/locale-98144f51.js +254 -0
  814. package/dist/esm/{math-351ff0de.js → math-7409ae0d.js} +1 -1
  815. package/dist/esm/{observers-c18e9524.js → observers-fa0db945.js} +1 -1
  816. package/dist/esm/{popper-44b3ba83.js → popper-f38ba1ab.js} +2 -2
  817. package/dist/esm/{resources-0aacb21d.js → resources-3157143b.js} +3 -3
  818. package/dist/esm/{resources-a32d1180.js → resources-3b67e62a.js} +1 -1
  819. package/dist/esm/{resources-a2cad43d.js → resources-7198828a.js} +1 -1
  820. package/dist/esm/{resources-529884cb.js → resources-ccd18bbb.js} +13 -20
  821. package/dist/esm/{sortable.esm-4e7d5c7b.js → sortable.esm-e7918a0d.js} +1 -1
  822. package/dist/esm/{utils-2f763d44.js → utils-06a51b70.js} +1 -1
  823. package/dist/esm-es5/{ExpandToggle-ce794961.js → ExpandToggle-7076d600.js} +2 -2
  824. package/dist/esm-es5/Heading-5ccb3b17.js +6 -0
  825. package/dist/esm-es5/{array-7a76d321.js → array-48f23287.js} +1 -1
  826. package/dist/esm-es5/calcite-accordion_2.entry.js +2 -2
  827. package/dist/esm-es5/calcite-action-bar.entry.js +2 -2
  828. package/dist/esm-es5/calcite-action-group.entry.js +2 -2
  829. package/dist/esm-es5/calcite-action-menu.entry.js +2 -2
  830. package/dist/esm-es5/calcite-action-pad.entry.js +3 -3
  831. package/dist/esm-es5/calcite-action.entry.js +2 -2
  832. package/dist/esm-es5/calcite-alert.entry.js +2 -2
  833. package/dist/esm-es5/calcite-avatar.entry.js +2 -2
  834. package/dist/esm-es5/calcite-block_2.entry.js +2 -2
  835. package/dist/esm-es5/calcite-button.entry.js +2 -2
  836. package/dist/esm-es5/calcite-card.entry.js +2 -2
  837. package/dist/esm-es5/calcite-checkbox.entry.js +2 -2
  838. package/dist/esm-es5/calcite-chip.entry.js +2 -2
  839. package/dist/esm-es5/calcite-color-picker_3.entry.js +2 -2
  840. package/dist/esm-es5/calcite-combobox_3.entry.js +2 -2
  841. package/dist/esm-es5/calcite-date-picker_4.entry.js +2 -2
  842. package/dist/esm-es5/calcite-dropdown_3.entry.js +3 -3
  843. package/dist/esm-es5/calcite-fab.entry.js +2 -2
  844. package/dist/esm-es5/calcite-filter.entry.js +2 -2
  845. package/dist/esm-es5/calcite-flow.entry.js +3 -3
  846. package/dist/esm-es5/calcite-graph_2.entry.js +2 -2
  847. package/dist/esm-es5/calcite-handle.entry.js +2 -2
  848. package/dist/esm-es5/calcite-icon.entry.js +2 -2
  849. package/dist/esm-es5/calcite-inline-editable.entry.js +2 -2
  850. package/dist/esm-es5/calcite-input-date-picker.entry.js +3 -3
  851. package/dist/esm-es5/calcite-input-message.entry.js +2 -2
  852. package/dist/esm-es5/calcite-input-number.entry.js +6 -0
  853. package/dist/esm-es5/calcite-input-time-picker_2.entry.js +2 -2
  854. package/dist/esm-es5/calcite-input.entry.js +2 -2
  855. package/dist/esm-es5/calcite-label.entry.js +2 -2
  856. package/dist/esm-es5/calcite-link.entry.js +3 -3
  857. package/dist/esm-es5/calcite-list_3.entry.js +2 -2
  858. package/dist/esm-es5/calcite-loader.entry.js +3 -3
  859. package/dist/esm-es5/calcite-modal.entry.js +2 -2
  860. package/dist/esm-es5/calcite-notice.entry.js +3 -3
  861. package/dist/esm-es5/calcite-option_3.entry.js +2 -2
  862. package/dist/esm-es5/calcite-pagination.entry.js +2 -2
  863. package/dist/esm-es5/calcite-panel.entry.js +3 -3
  864. package/dist/esm-es5/calcite-pick-list_3.entry.js +2 -2
  865. package/dist/esm-es5/calcite-popover_2.entry.js +2 -2
  866. package/dist/esm-es5/calcite-progress.entry.js +2 -2
  867. package/dist/esm-es5/calcite-radio-button-group.entry.js +2 -2
  868. package/dist/esm-es5/calcite-radio-button.entry.js +2 -2
  869. package/dist/esm-es5/calcite-radio-group_2.entry.js +3 -3
  870. package/dist/esm-es5/calcite-rating.entry.js +3 -3
  871. package/dist/esm-es5/calcite-scrim.entry.js +2 -2
  872. package/dist/esm-es5/calcite-shell_3.entry.js +2 -2
  873. package/dist/esm-es5/calcite-sortable-list.entry.js +2 -2
  874. package/dist/esm-es5/calcite-split-button.entry.js +2 -2
  875. package/dist/esm-es5/calcite-stepper_2.entry.js +2 -2
  876. package/dist/esm-es5/calcite-switch.entry.js +2 -2
  877. package/dist/esm-es5/calcite-tab_4.entry.js +3 -3
  878. package/dist/esm-es5/calcite-tile-select_2.entry.js +2 -2
  879. package/dist/esm-es5/calcite-tile.entry.js +2 -2
  880. package/dist/esm-es5/calcite-tip_3.entry.js +2 -2
  881. package/dist/esm-es5/calcite-tooltip_2.entry.js +2 -2
  882. package/dist/esm-es5/calcite-tree_2.entry.js +2 -2
  883. package/dist/esm-es5/calcite-value-list_2.entry.js +3 -3
  884. package/dist/esm-es5/calcite.js +2 -2
  885. package/dist/esm-es5/{conditionalSlot-6be8f3bd.js → conditionalSlot-13c69fa9.js} +2 -2
  886. package/dist/esm-es5/{debounce-9626aac0.js → debounce-bef6fc2c.js} +1 -1
  887. package/dist/esm-es5/dom-6c1f7204.js +6 -0
  888. package/dist/esm-es5/{forIn-091a9d50.js → forIn-566610cc.js} +2 -2
  889. package/dist/esm-es5/form-115e3241.js +6 -0
  890. package/dist/esm-es5/{guid-27925469.js → guid-9ee41ac6.js} +1 -1
  891. package/dist/esm-es5/{index-1e02e91b.js → index-dfcf10d7.js} +1 -1
  892. package/dist/esm-es5/index.js +1 -1
  893. package/dist/esm-es5/{interactive-32803ed8.js → interactive-2a03c362.js} +1 -1
  894. package/dist/esm-es5/{interfaces-64ad1cde.js → interfaces-02cee59d.js} +1 -1
  895. package/dist/esm-es5/key-1219c482.js +6 -0
  896. package/dist/esm-es5/{label-ccf07634.js → label-b30a7cde.js} +2 -2
  897. package/dist/esm-es5/loader.js +2 -2
  898. package/dist/esm-es5/locale-98144f51.js +6 -0
  899. package/dist/esm-es5/{math-351ff0de.js → math-7409ae0d.js} +1 -1
  900. package/dist/esm-es5/{observers-c18e9524.js → observers-fa0db945.js} +1 -1
  901. package/dist/esm-es5/{popper-44b3ba83.js → popper-f38ba1ab.js} +2 -2
  902. package/dist/esm-es5/{resources-0aacb21d.js → resources-3157143b.js} +2 -2
  903. package/dist/esm-es5/{resources-a32d1180.js → resources-3b67e62a.js} +1 -1
  904. package/dist/esm-es5/{resources-a2cad43d.js → resources-7198828a.js} +1 -1
  905. package/dist/esm-es5/resources-ccd18bbb.js +6 -0
  906. package/dist/esm-es5/{sortable.esm-4e7d5c7b.js → sortable.esm-e7918a0d.js} +1 -1
  907. package/dist/esm-es5/{utils-2f763d44.js → utils-06a51b70.js} +1 -1
  908. package/dist/extras/docs-json.json +1814 -407
  909. package/dist/loader/cdn.js +1 -1
  910. package/dist/loader/index.cjs.js +1 -1
  911. package/dist/loader/index.es2017.js +1 -1
  912. package/dist/loader/index.js +1 -1
  913. package/dist/types/components/accordion/accordion.d.ts +7 -7
  914. package/dist/types/components/accordion-item/accordion-item.d.ts +22 -4
  915. package/dist/types/components/action/action.d.ts +13 -15
  916. package/dist/types/components/action-bar/action-bar.d.ts +8 -8
  917. package/dist/types/components/action-group/action-group.d.ts +7 -7
  918. package/dist/types/components/action-menu/action-menu.d.ts +7 -7
  919. package/dist/types/components/action-pad/action-pad.d.ts +10 -10
  920. package/dist/types/components/alert/alert.d.ts +37 -21
  921. package/dist/types/components/alert/resources.d.ts +3 -0
  922. package/dist/types/components/avatar/avatar.d.ts +5 -5
  923. package/dist/types/components/block/block.d.ts +6 -0
  924. package/dist/types/components/block/resources.d.ts +1 -0
  925. package/dist/types/components/checkbox/checkbox.d.ts +1 -0
  926. package/dist/types/components/chip/chip.d.ts +9 -1
  927. package/dist/types/components/color-picker/color-picker.d.ts +8 -5
  928. package/dist/types/components/color-picker-hex-input/color-picker-hex-input.d.ts +2 -0
  929. package/dist/types/components/combobox/combobox.d.ts +29 -15
  930. package/dist/types/components/combobox/resources.d.ts +1 -0
  931. package/dist/types/components/combobox-item/combobox-item.d.ts +9 -1
  932. package/dist/types/components/date-picker/utils.d.ts +1 -1
  933. package/dist/types/components/date-picker-month-header/date-picker-month-header.d.ts +2 -0
  934. package/dist/types/components/date-picker-month-header/resources.d.ts +1 -0
  935. package/dist/types/components/dropdown/dropdown.d.ts +21 -5
  936. package/dist/types/components/dropdown/resources.d.ts +3 -0
  937. package/dist/types/components/flow/flow.d.ts +4 -1
  938. package/dist/types/components/input/input.d.ts +86 -40
  939. package/dist/types/components/input-date-picker/input-date-picker.d.ts +7 -1
  940. package/dist/types/components/input-date-picker/resources.d.ts +4 -0
  941. package/dist/types/components/input-number/input-number.d.ts +216 -0
  942. package/dist/types/components/input-number/interfaces.d.ts +1 -0
  943. package/dist/types/components/input-number/resources.d.ts +22 -0
  944. package/dist/types/components/input-time-picker/input-time-picker.d.ts +7 -1
  945. package/dist/types/components/label/label.d.ts +6 -2
  946. package/dist/types/components/list/list.d.ts +3 -2
  947. package/dist/types/components/list-item/list-item.d.ts +9 -9
  948. package/dist/types/components/list-item-group/list-item-group.d.ts +2 -2
  949. package/dist/types/components/loader/loader.d.ts +6 -6
  950. package/dist/types/components/modal/modal.d.ts +22 -16
  951. package/dist/types/components/notice/notice.d.ts +18 -12
  952. package/dist/types/components/option/option.d.ts +4 -4
  953. package/dist/types/components/option-group/option-group.d.ts +2 -2
  954. package/dist/types/components/pagination/pagination.d.ts +11 -11
  955. package/dist/types/components/panel/panel.d.ts +33 -21
  956. package/dist/types/components/panel/resources.d.ts +1 -0
  957. package/dist/types/components/pick-list/pick-list.d.ts +12 -12
  958. package/dist/types/components/pick-list/shared-list-logic.d.ts +1 -0
  959. package/dist/types/components/pick-list/shared-list-render.d.ts +2 -0
  960. package/dist/types/components/pick-list-group/pick-list-group.d.ts +2 -2
  961. package/dist/types/components/pick-list-item/pick-list-item.d.ts +16 -16
  962. package/dist/types/components/popover/popover.d.ts +23 -19
  963. package/dist/types/components/progress/progress.d.ts +5 -5
  964. package/dist/types/components/radio-button/radio-button.d.ts +1 -0
  965. package/dist/types/components/radio-group/radio-group.d.ts +3 -0
  966. package/dist/types/components/rating/rating.d.ts +2 -0
  967. package/dist/types/components/stepper/stepper.d.ts +7 -1
  968. package/dist/types/components/stepper-item/stepper-item.d.ts +22 -4
  969. package/dist/types/components/tabs/interfaces.d.ts +1 -1
  970. package/dist/types/components/tabs/tabs.d.ts +2 -1
  971. package/dist/types/components/tooltip/tooltip.d.ts +6 -6
  972. package/dist/types/components/tree/tree.d.ts +4 -4
  973. package/dist/types/components/tree-item/tree-item.d.ts +3 -3
  974. package/dist/types/components/value-list/interfaces.d.ts +1 -0
  975. package/dist/types/components/value-list/utils.d.ts +8 -0
  976. package/dist/types/components/value-list/value-list.d.ts +39 -9
  977. package/dist/types/components/value-list-item/value-list-item.d.ts +11 -11
  978. package/dist/types/components.d.ts +1063 -470
  979. package/dist/types/preact.d.ts +21 -6
  980. package/dist/types/utils/dom.d.ts +0 -8
  981. package/dist/types/utils/form.d.ts +1 -3
  982. package/dist/types/utils/locale.d.ts +1 -0
  983. package/dist/types/utils/number.d.ts +16 -0
  984. package/dist/types/utils/openCloseComponent.d.ts +26 -0
  985. package/hydrate/index.js +1741 -737
  986. package/package.json +27 -27
  987. package/readme.md +10 -2
  988. package/dist/calcite/p-004e3dc9.js +0 -6
  989. package/dist/calcite/p-08b6213a.system.js +0 -6
  990. package/dist/calcite/p-0f41fb58.entry.js +0 -6
  991. package/dist/calcite/p-0fc84480.js +0 -6
  992. package/dist/calcite/p-1571ede3.system.entry.js +0 -6
  993. package/dist/calcite/p-1a07da7e.system.js +0 -6
  994. package/dist/calcite/p-1f94715e.entry.js +0 -6
  995. package/dist/calcite/p-2111668f.system.entry.js +0 -6
  996. package/dist/calcite/p-23188966.entry.js +0 -6
  997. package/dist/calcite/p-24edad61.entry.js +0 -6
  998. package/dist/calcite/p-25fd5141.entry.js +0 -6
  999. package/dist/calcite/p-2609d345.system.entry.js +0 -6
  1000. package/dist/calcite/p-37c23e83.system.entry.js +0 -6
  1001. package/dist/calcite/p-3a256056.entry.js +0 -6
  1002. package/dist/calcite/p-3d4548a9.js +0 -6
  1003. package/dist/calcite/p-3f00dc7c.entry.js +0 -6
  1004. package/dist/calcite/p-41b0a2a1.system.js +0 -6
  1005. package/dist/calcite/p-4214c119.system.entry.js +0 -6
  1006. package/dist/calcite/p-47bf0f7d.entry.js +0 -6
  1007. package/dist/calcite/p-47dd3632.entry.js +0 -6
  1008. package/dist/calcite/p-4f71c68d.js +0 -6
  1009. package/dist/calcite/p-506f5631.system.entry.js +0 -6
  1010. package/dist/calcite/p-5207385b.system.entry.js +0 -6
  1011. package/dist/calcite/p-53b147dc.system.entry.js +0 -6
  1012. package/dist/calcite/p-59aae748.entry.js +0 -6
  1013. package/dist/calcite/p-5df0640c.system.entry.js +0 -6
  1014. package/dist/calcite/p-5eb016b6.system.entry.js +0 -6
  1015. package/dist/calcite/p-61483431.system.entry.js +0 -6
  1016. package/dist/calcite/p-623f6224.entry.js +0 -6
  1017. package/dist/calcite/p-64384786.entry.js +0 -6
  1018. package/dist/calcite/p-6531fb85.entry.js +0 -6
  1019. package/dist/calcite/p-67af4998.entry.js +0 -6
  1020. package/dist/calcite/p-67ef236d.entry.js +0 -6
  1021. package/dist/calcite/p-68e3013f.system.js +0 -6
  1022. package/dist/calcite/p-6a966c2f.entry.js +0 -6
  1023. package/dist/calcite/p-717fac51.entry.js +0 -6
  1024. package/dist/calcite/p-799f79af.entry.js +0 -6
  1025. package/dist/calcite/p-7a95bbeb.entry.js +0 -6
  1026. package/dist/calcite/p-7e576c74.system.entry.js +0 -6
  1027. package/dist/calcite/p-800a9250.entry.js +0 -6
  1028. package/dist/calcite/p-878d7c09.system.js +0 -6
  1029. package/dist/calcite/p-912c9e61.system.entry.js +0 -6
  1030. package/dist/calcite/p-940ac25d.system.entry.js +0 -6
  1031. package/dist/calcite/p-9ea395ee.js +0 -6
  1032. package/dist/calcite/p-a1176eac.system.entry.js +0 -6
  1033. package/dist/calcite/p-a3e19cec.entry.js +0 -6
  1034. package/dist/calcite/p-a5fd7a87.system.entry.js +0 -6
  1035. package/dist/calcite/p-a81ad35a.entry.js +0 -6
  1036. package/dist/calcite/p-a945b681.system.js +0 -6
  1037. package/dist/calcite/p-adc2b773.entry.js +0 -6
  1038. package/dist/calcite/p-c470cecf.entry.js +0 -6
  1039. package/dist/calcite/p-c5eec108.entry.js +0 -6
  1040. package/dist/calcite/p-c84f0dec.entry.js +0 -6
  1041. package/dist/calcite/p-c96917cb.system.js +0 -6
  1042. package/dist/calcite/p-cbe3c2c0.entry.js +0 -6
  1043. package/dist/calcite/p-ccb27d44.system.entry.js +0 -6
  1044. package/dist/calcite/p-db63dc35.system.entry.js +0 -6
  1045. package/dist/calcite/p-dc10e8bb.system.entry.js +0 -6
  1046. package/dist/calcite/p-ddb96773.system.js +0 -6
  1047. package/dist/calcite/p-e0ff045a.js +0 -6
  1048. package/dist/calcite/p-e6ef10e2.js +0 -6
  1049. package/dist/calcite/p-e7336cab.entry.js +0 -6
  1050. package/dist/calcite/p-ee47a382.system.entry.js +0 -6
  1051. package/dist/calcite/p-ee8f8d7e.entry.js +0 -6
  1052. package/dist/calcite/p-f313806e.entry.js +0 -6
  1053. package/dist/calcite/p-f39d0565.system.entry.js +0 -6
  1054. package/dist/calcite/p-f828bc9b.entry.js +0 -6
  1055. package/dist/calcite/p-f850e63f.system.js +0 -6
  1056. package/dist/calcite/p-f91e835d.entry.js +0 -6
  1057. package/dist/calcite/p-f96d2623.system.entry.js +0 -6
  1058. package/dist/calcite/p-faaa959a.entry.js +0 -6
  1059. package/dist/cjs/locale-6c28abd8.js +0 -131
  1060. package/dist/cjs/number-6f1151e7.js +0 -85
  1061. package/dist/collection/demos/_assets/demo-spacer.js +0 -17
  1062. package/dist/collection/demos/_assets/demo-template.js +0 -13
  1063. package/dist/collection/demos/_assets/head.js +0 -45
  1064. package/dist/collection/demos/_assets/locales.js +0 -223
  1065. package/dist/components/number.js +0 -77
  1066. package/dist/esm/locale-705ed382.js +0 -126
  1067. package/dist/esm/number-bb265f44.js +0 -77
  1068. package/dist/esm-es5/Heading-9ccb3452.js +0 -6
  1069. package/dist/esm-es5/dom-4caa79e4.js +0 -6
  1070. package/dist/esm-es5/form-7c2e444b.js +0 -6
  1071. package/dist/esm-es5/locale-705ed382.js +0 -6
  1072. package/dist/esm-es5/number-bb265f44.js +0 -6
  1073. package/dist/esm-es5/resources-529884cb.js +0 -6
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
+ * v1.0.0-beta.86
5
+ */
6
+ import{r as t,c as i,h as a,H as e,g as n}from"./p-e2a9bc3c.js";import{f as o,g as r,e as s,i as l}from"./p-bc9c9c9b.js";import{c}from"./p-7bdab3f4.js";import{c as d,d as m}from"./p-8701d6ec.js";import"./p-8e5b28c2.js";function h(t,i,a,e=20,n=0){let o=[];if(n>=e)return o;const r=t=>{const o=t.assignedNodes().filter((t=>1===t.nodeType));return o.length>0?h(o[0].parentElement,i,a,e,n+1):[]},s=Array.from(t.children||[]);for(const t of s)i(t)||(a(t)&&o.push(t),null!=t.shadowRoot?o.push(...h(t.shadowRoot,i,a,e,n+1)):"SLOT"===t.tagName?o.push(...r(t)):o.push(...h(t,i,a,e,n+1)));return o}function b(t){return t.hasAttribute("hidden")||t.hasAttribute("aria-hidden")&&"false"!==t.getAttribute("aria-hidden")||"none"===t.style.display||"0"===t.style.opacity||"hidden"===t.style.visibility||"collapse"===t.style.visibility}const p=t=>{return l(t)||"-1"!==(i=t).getAttribute("tabindex")&&!b(i)&&!function(t){return t.hasAttribute("disabled")||t.hasAttribute("aria-disabled")&&"false"!==t.getAttribute("aria-disabled")}(i)&&(i.hasAttribute("tabindex")||(i instanceof HTMLAnchorElement||i instanceof HTMLAreaElement)&&i.hasAttribute("href")||i instanceof HTMLButtonElement||i instanceof HTMLInputElement||i instanceof HTMLTextAreaElement||i instanceof HTMLSelectElement||i instanceof HTMLIFrameElement);var i},f=t=>h(t,b,p),u=class{constructor(a){t(this,a),this.calciteModalOpen=i(this,"calciteModalOpen",7),this.calciteModalClose=i(this,"calciteModalClose",7),this.active=!1,this.open=!1,this.beforeClose=()=>Promise.resolve(),this.disableCloseButton=!1,this.disableOutsideClose=!1,this.intlClose="Close",this.disableEscape=!1,this.scale="m",this.width="m",this.backgroundColor="white",this.noPadding=!1,this.hasFooter=!0,this.mutationObserver=c("mutation",(()=>this.updateFooterVisibility())),this.activeTransitionProp="opacity",this.transitionEnd=t=>{t.propertyName===this.activeTransitionProp&&(this.open||this.active?this.calciteModalOpen.emit():this.calciteModalClose.emit())},this.openEnd=()=>{this.setFocus(),this.el.removeEventListener("calciteModalOpen",this.openEnd)},this.handleOutsideClose=()=>{this.disableOutsideClose||this.close()},this.close=()=>this.beforeClose(this.el).then((()=>{this.active=!1,this.open=!1,o(this.previousActiveElement),this.removeOverflowHiddenClass()})),this.focusFirstElement=()=>{o(this.disableCloseButton?f(this.el)[0]:this.closeButtonEl)},this.focusLastElement=()=>{const t=f(this.el).filter((t=>!t.getAttribute("data-focus-fence")));o(t.length>0?t[t.length-1]:this.closeButtonEl)},this.updateFooterVisibility=()=>{this.hasFooter=!!r(this.el,["back","primary","secondary"])}}componentWillLoad(){(this.open||this.active)&&this.openModal()}connectedCallback(){var t;null===(t=this.mutationObserver)||void 0===t||t.observe(this.el,{childList:!0,subtree:!0}),this.updateFooterVisibility(),d(this)}disconnectedCallback(){var t;this.removeOverflowHiddenClass(),null===(t=this.mutationObserver)||void 0===t||t.disconnect(),m(this)}render(){return a(e,{"aria-describedby":this.contentId,"aria-labelledby":this.titleId,"aria-modal":"true",role:"dialog"},a("calcite-scrim",{class:"scrim",onClick:this.handleOutsideClose}),this.renderStyle(),a("div",{class:"modal",onTransitionEnd:this.transitionEnd},a("div",{"data-focus-fence":!0,onFocus:this.focusLastElement,tabindex:"0"}),a("div",{class:"header"},this.renderCloseButton(),a("header",{class:"title"},a("slot",{name:"header"}))),a("div",{class:{content:!0,"content--spaced":!this.noPadding,"content--no-footer":!this.hasFooter},ref:t=>this.modalContent=t},a("slot",{name:"content"})),this.renderFooter(),a("div",{"data-focus-fence":!0,onFocus:this.focusFirstElement,tabindex:"0"})))}renderFooter(){return this.hasFooter?a("div",{class:"footer",key:"footer"},a("span",{class:"back"},a("slot",{name:"back"})),a("span",{class:"secondary"},a("slot",{name:"secondary"})),a("span",{class:"primary"},a("slot",{name:"primary"}))):null}renderCloseButton(){return this.disableCloseButton?null:a("button",{"aria-label":this.intlClose,class:"close",key:"button",onClick:this.close,ref:t=>this.closeButtonEl=t,title:this.intlClose},a("calcite-icon",{icon:"x",scale:"s"===this.scale?"s":"m"===this.scale?"m":"l"===this.scale?"l":null}))}renderStyle(){return isNaN(parseInt(`${this.width}`))?null:a("style",null,`\n .modal {\n max-width: ${this.width}px !important;\n }\n @media screen and (max-width: ${this.width}px) {\n .modal {\n height: 100% !important;\n max-height: 100% !important;\n width: 100% !important;\n max-width: 100% !important;\n margin: 0 !important;\n border-radius: 0 !important;\n }\n .content {\n flex: 1 1 auto !important;\n max-height: unset !important;\n }\n }\n `)}handleEscape(t){!this.open&&!this.active||this.disableEscape||"Escape"!==t.key||this.close()}async focusElement(t){return t&&t.focus(),this.setFocus()}async setFocus(t){const i=this.closeButtonEl;return o("close-button"===t?i:f(this.el)[0]||i)}async scrollContent(t=0,i=0){this.modalContent&&(this.modalContent.scrollTo?this.modalContent.scrollTo({top:t,left:i,behavior:"smooth"}):(this.modalContent.scrollTop=t,this.modalContent.scrollLeft=i))}async toggleModal(t,i){t!==i&&(t?this.openModal():t||this.close())}openModal(){this.previousActiveElement=document.activeElement,this.el.addEventListener("calciteModalOpen",this.openEnd),this.active=!0,this.open=!0;const t=r(this.el,"header"),i=r(this.el,"content");this.titleId=s(t),this.contentId=s(i),document.documentElement.classList.add("overflow-hidden")}removeOverflowHiddenClass(){document.documentElement.classList.remove("overflow-hidden")}get el(){return n(this)}static get watchers(){return{active:["toggleModal"],open:["toggleModal"]}}};u.style="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-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:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:fixed;top:0px;right:0px;bottom:0px;left:0px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;overflow-y:hidden;color:var(--calcite-ui-text-2);opacity:0;visibility:hidden !important;-webkit-transition:visibility 0ms linear 300ms, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition:visibility 0ms linear 300ms, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);z-index:101}:host([scale=s]){--calcite-modal-padding:0.75rem;--calcite-modal-padding-large:1rem;--calcite-modal-title-text:var(--calcite-font-size-1);--calcite-modal-content-text:var(--calcite-font-size--1)}:host([scale=m]){--calcite-modal-padding:1rem;--calcite-modal-padding-large:1.25rem;--calcite-modal-title-text:var(--calcite-font-size-2);--calcite-modal-content-text:var(--calcite-font-size-0)}:host([scale=l]){--calcite-modal-padding:1.25rem;--calcite-modal-padding-large:1.5rem;--calcite-modal-title-text:var(--calcite-font-size-3);--calcite-modal-content-text:var(--calcite-font-size-1)}.scrim{--calcite-scrim-background:rgba(0, 0, 0, 0.75);position:fixed;top:0px;right:0px;bottom:0px;left:0px;display:-ms-flexbox;display:flex;overflow-y:hidden}.modal{pointer-events:none;float:none;margin:1.5rem;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;width:100%;-ms-flex-direction:column;flex-direction:column;overflow:hidden;border-radius:0.25rem;background-color:var(--calcite-ui-foreground-1);opacity:0;--tw-shadow:0 2px 12px -4px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.16);--tw-shadow-colored:0 2px 12px -4px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);z-index:102;-webkit-overflow-scrolling:touch;visibility:hidden;-webkit-transition:visibility 0ms linear 300ms, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), -webkit-transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition:visibility 0ms linear 300ms, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), -webkit-transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear 300ms, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear 300ms, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), -webkit-transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);-webkit-transform:translate3d(0, 20px, 0);transform:translate3d(0, 20px, 0)}:host([active]),:host([open]){opacity:1;visibility:visible !important;-webkit-transition-delay:0ms;transition-delay:0ms}:host([active]) .modal,:host([open]) .modal{pointer-events:auto;visibility:visible;opacity:1;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);-webkit-transition:visibility 0ms linear, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-width var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-height var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), -webkit-transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition:visibility 0ms linear, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-width var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-height var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), -webkit-transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-width var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-height var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-width var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-height var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), -webkit-transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);-webkit-transition-delay:0ms;transition-delay:0ms}.header{display:-ms-flexbox;display:flex;min-width:0px;max-width:100%;border-top-left-radius:0.25rem;border-top-right-radius:0.25rem;border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1);-ms-flex:0 0 auto;flex:0 0 auto;z-index:2}.close{-ms-flex-order:2;order:2;margin:0px;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-style:none;background-color:transparent;color:var(--calcite-ui-text-3);outline-color:transparent;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;border-start-end-radius:0.25rem;padding:var(--calcite-modal-padding);-ms-flex:0 0 auto;flex:0 0 auto}.close calcite-icon{pointer-events:none;vertical-align:-2px}.close:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.close:hover,.close:focus,.close:active{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}.title{-ms-flex-order:1;order:1;display:-ms-flexbox;display:flex;min-width:0px;-ms-flex-align:center;align-items:center;-ms-flex:1 1 auto;flex:1 1 auto;padding:var(--calcite-modal-padding) var(--calcite-modal-padding-large)}slot[name=header]::slotted(*),*::slotted([slot=header]){margin:0px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-1);font-size:var(--calcite-modal-title-text)}.content{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;display:block;height:100%;overflow:auto;background-color:var(--calcite-ui-foreground-1);padding:0px;max-height:calc(100vh - 12rem);z-index:1}.content--spaced{padding:var(--calcite-modal-padding) var(--calcite-modal-padding-large)}.content--no-footer{border-bottom-right-radius:0.25rem;border-bottom-left-radius:0.25rem}slot[name=content]::slotted(*),*::slotted([slot=content]){font-size:var(--calcite-modal-content-text)}:host([background-color=grey]) .content{background-color:var(--calcite-ui-background)}.footer{margin-top:auto;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;width:100%;-ms-flex-pack:justify;justify-content:space-between;border-bottom-right-radius:0.25rem;border-bottom-left-radius:0.25rem;border-width:0px;border-top-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1);-ms-flex:0 0 auto;flex:0 0 auto;padding:var(--calcite-modal-padding) var(--calcite-modal-padding-large);z-index:2}.footer--hide-back .back,.footer--hide-secondary .secondary{display:none}.back{display:block;-webkit-margin-end:auto;margin-inline-end:auto}.secondary{margin-left:0.25rem;margin-right:0.25rem;display:block}slot[name=primary]{display:block}:host([width=small]) .modal{width:auto}:host([width=s]) .modal{max-width:32rem}@media screen and (max-width: 35rem){:host([width=s]) .modal{margin:0px;height:100%;max-height:100%;width:100%;max-width:100%;border-radius:0px}:host([width=s]) .content{-ms-flex:1 1 auto;flex:1 1 auto;max-height:unset}:host([width=s][docked]){-ms-flex-align:end;align-items:flex-end}}:host([width=m]) .modal{max-width:48rem}@media screen and (max-width: 51rem){:host([width=m]) .modal{margin:0px;height:100%;max-height:100%;width:100%;max-width:100%;border-radius:0px}:host([width=m]) .content{-ms-flex:1 1 auto;flex:1 1 auto;max-height:unset}:host([width=m][docked]){-ms-flex-align:end;align-items:flex-end}}:host([width=l]) .modal{max-width:94rem}@media screen and (max-width: 97rem){:host([width=l]) .modal{margin:0px;height:100%;max-height:100%;width:100%;max-width:100%;border-radius:0px}:host([width=l]) .content{-ms-flex:1 1 auto;flex:1 1 auto;max-height:unset}:host([width=l][docked]){-ms-flex-align:end;align-items:flex-end}}:host([fullscreen]){background-color:transparent}:host([fullscreen]) .modal{margin:0px;height:100%;max-height:100%;width:100%;max-width:100%;-webkit-transform:translate3D(0, 20px, 0) scale(0.95);transform:translate3D(0, 20px, 0) scale(0.95)}:host([fullscreen]) .content{max-height:100%;-ms-flex:1 1 auto;flex:1 1 auto}:host([active][fullscreen]) .modal,:host([open][fullscreen]) .modal{-webkit-transform:translate3D(0, 0, 0) scale(1);transform:translate3D(0, 0, 0) scale(1)}:host([active][fullscreen]) .header,:host([open][fullscreen]) .header{border-radius:0}:host([active][fullscreen]) .footer,:host([open][fullscreen]) .footer{border-radius:0}:host([docked]) .modal{height:auto}:host([docked]) .content{height:auto;-ms-flex:1 1 auto;flex:1 1 auto}@media screen and (max-width: 860px){:host([docked]) .modal{border-radius:var(--calcite-border-radius) var(--calcite-border-radius) 0 0}:host([docked]) .close{border-start-end-radius:var(--calcite-border-radius)}}:host([color=red]) .modal{border-color:var(--calcite-ui-danger)}:host([color=blue]) .modal{border-color:var(--calcite-ui-info)}:host([color=red]) .modal,:host([color=blue]) .modal{border-width:0px;border-top-width:4px;border-style:solid}:host([color=red]) .header,:host([color=blue]) .header{border-radius:0.25rem;border-bottom-right-radius:0px;border-bottom-left-radius:0px}@media screen and (max-width: 860px){slot[name=header]::slotted(*),*::slotted([slot=header]){font-size:var(--calcite-font-size-1)}.footer{position:-webkit-sticky;position:sticky;bottom:0px}}@media screen and (max-width: 480px){.footer{-ms-flex-direction:column;flex-direction:column}.back,.secondary{margin:0px;margin-bottom:0.25rem}}";export{u as calcite_modal}
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-beta.83
4
+ * v1.0.0-beta.86
5
5
  */
6
- import{a as t}from"./p-9ea395ee.js";var n="top",e="bottom",r="right",o="left",i=[n,e,r,o],a=i.reduce((function(t,n){return t.concat([n+"-start",n+"-end"])}),[]),u=[].concat(i,["auto"]).reduce((function(t,n){return t.concat([n,n+"-start",n+"-end"])}),[]),f=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function c(t){return t?(t.nodeName||"").toLowerCase():null}function s(t){if(null==t)return window;if("[object Window]"!==t.toString()){var n=t.ownerDocument;return n&&n.defaultView||window}return t}function p(t){return t instanceof s(t).Element||t instanceof Element}function l(t){return t instanceof s(t).HTMLElement||t instanceof HTMLElement}function d(t){return"undefined"!=typeof ShadowRoot&&(t instanceof s(t).ShadowRoot||t instanceof ShadowRoot)}function v(t){return t.split("-")[0]}var b=Math.max,m=Math.min,h=Math.round;function y(t,n){void 0===n&&(n=!1);var e=t.getBoundingClientRect(),r=1,o=1;if(l(t)&&n){var i=t.offsetHeight,a=t.offsetWidth;a>0&&(r=h(e.width)/a||1),i>0&&(o=h(e.height)/i||1)}return{width:e.width/r,height:e.height/o,top:e.top/o,right:e.right/r,bottom:e.bottom/o,left:e.left/r,x:e.left/r,y:e.top/o}}function g(t){var n=y(t),e=t.offsetWidth,r=t.offsetHeight;return Math.abs(n.width-e)<=1&&(e=n.width),Math.abs(n.height-r)<=1&&(r=n.height),{x:t.offsetLeft,y:t.offsetTop,width:e,height:r}}function x(t,n){var e=n.getRootNode&&n.getRootNode();if(t.contains(n))return!0;if(e&&d(e)){var r=n;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function w(t){return s(t).getComputedStyle(t)}function O(t){return["table","td","th"].indexOf(c(t))>=0}function j(t){return((p(t)?t.ownerDocument:t.document)||window.document).documentElement}function M(t){return"html"===c(t)?t:t.assignedSlot||t.parentNode||(d(t)?t.host:null)||j(t)}function k(t){return l(t)&&"fixed"!==w(t).position?t.offsetParent:null}function E(t){for(var n=s(t),e=k(t);e&&O(e)&&"static"===w(e).position;)e=k(e);return e&&("html"===c(e)||"body"===c(e)&&"static"===w(e).position)?n:e||function(t){var n=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&l(t)&&"fixed"===w(t).position)return null;var e=M(t);for(d(e)&&(e=e.host);l(e)&&["html","body"].indexOf(c(e))<0;){var r=w(e);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||n&&"filter"===r.willChange||n&&r.filter&&"none"!==r.filter)return e;e=e.parentNode}return null}(t)||n}function P(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function A(t,n,e){return b(t,m(n,e))}function q(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function B(t,n){return n.reduce((function(n,e){return n[e]=t,n}),{})}function R(t){return t.split("-")[1]}var S={top:"auto",right:"auto",bottom:"auto",left:"auto"};function T(t){var i,a=t.popper,u=t.popperRect,f=t.placement,c=t.variation,p=t.offsets,l=t.position,d=t.gpuAcceleration,v=t.adaptive,b=t.roundOffsets,m=t.isFixed,y=p.x,g=void 0===y?0:y,x=p.y,O=void 0===x?0:x,M="function"==typeof b?b({x:g,y:O}):{x:g,y:O};g=M.x,O=M.y;var k=p.hasOwnProperty("x"),P=p.hasOwnProperty("y"),A=o,q=n,B=window;if(v){var R=E(a),T="clientHeight",W="clientWidth";R===s(a)&&"static"!==w(R=j(a)).position&&"absolute"===l&&(T="scrollHeight",W="scrollWidth"),R=R,(f===n||(f===o||f===r)&&"end"===c)&&(q=e,O-=(m&&R===B&&B.visualViewport?B.visualViewport.height:R[T])-u.height,O*=d?1:-1),f!==o&&(f!==n&&f!==e||"end"!==c)||(A=r,g-=(m&&R===B&&B.visualViewport?B.visualViewport.width:R[W])-u.width,g*=d?1:-1)}var I,L=Object.assign({position:l},v&&S),$=!0===b?function(t){var n=t.y,e=window.devicePixelRatio||1;return{x:h(t.x*e)/e||0,y:h(n*e)/e||0}}({x:g,y:O}):{x:g,y:O};return g=$.x,O=$.y,Object.assign({},L,d?((I={})[q]=P?"0":"",I[A]=k?"0":"",I.transform=(B.devicePixelRatio||1)<=1?"translate("+g+"px, "+O+"px)":"translate3d("+g+"px, "+O+"px, 0)",I):((i={})[q]=P?O+"px":"",i[A]=k?g+"px":"",i.transform="",i))}var W={passive:!0},I={left:"right",right:"left",bottom:"top",top:"bottom"};function L(t){return t.replace(/left|right|bottom|top/g,(function(t){return I[t]}))}var $={start:"end",end:"start"};function H(t){return t.replace(/start|end/g,(function(t){return $[t]}))}function C(t){var n=s(t);return{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function z(t){return y(j(t)).left+C(t).scrollLeft}function D(t){var n=w(t);return/auto|scroll|overlay|hidden/.test(n.overflow+n.overflowY+n.overflowX)}function F(t){return["html","body","#document"].indexOf(c(t))>=0?t.ownerDocument.body:l(t)&&D(t)?t:F(M(t))}function U(t,n){var e;void 0===n&&(n=[]);var r=F(t),o=r===(null==(e=t.ownerDocument)?void 0:e.body),i=s(r),a=o?[i].concat(i.visualViewport||[],D(r)?r:[]):r,u=n.concat(a);return o?u:u.concat(U(M(a)))}function V(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function _(t,n){return"viewport"===n?V(function(t){var n=s(t),e=j(t),r=n.visualViewport,o=e.clientWidth,i=e.clientHeight,a=0,u=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,u=r.offsetTop)),{width:o,height:i,x:a+z(t),y:u}}(t)):p(n)?function(t){var n=y(t);return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}(n):V(function(t){var n,e=j(t),r=C(t),o=null==(n=t.ownerDocument)?void 0:n.body,i=b(e.scrollWidth,e.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=b(e.scrollHeight,e.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),u=-r.scrollLeft+z(t),f=-r.scrollTop;return"rtl"===w(o||e).direction&&(u+=b(e.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:u,y:f}}(j(t)))}function G(t){var i,a=t.reference,u=t.element,f=t.placement,c=f?v(f):null,s=f?R(f):null,p=a.x+a.width/2-u.width/2,l=a.y+a.height/2-u.height/2;switch(c){case n:i={x:p,y:a.y-u.height};break;case e:i={x:p,y:a.y+a.height};break;case r:i={x:a.x+a.width,y:l};break;case o:i={x:a.x-u.width,y:l};break;default:i={x:a.x,y:a.y}}var d=c?P(c):null;if(null!=d){var b="y"===d?"height":"width";switch(s){case"start":i[d]=i[d]-(a[b]/2-u[b]/2);break;case"end":i[d]=i[d]+(a[b]/2-u[b]/2)}}return i}function J(t,o){void 0===o&&(o={});var a=o.placement,u=void 0===a?t.placement:a,f=o.boundary,s=void 0===f?"clippingParents":f,d=o.rootBoundary,v=void 0===d?"viewport":d,h=o.elementContext,g=void 0===h?"popper":h,O=o.altBoundary,k=void 0!==O&&O,P=o.padding,A=void 0===P?0:P,R=q("number"!=typeof A?A:B(A,i)),S=t.rects.popper,T=t.elements[k?"popper"===g?"reference":"popper":g],W=function(t,n,e){var r="clippingParents"===n?function(t){var n=U(M(t)),e=["absolute","fixed"].indexOf(w(t).position)>=0&&l(t)?E(t):t;return p(e)?n.filter((function(t){return p(t)&&x(t,e)&&"body"!==c(t)})):[]}(t):[].concat(n),o=[].concat(r,[e]),i=o.reduce((function(n,e){var r=_(t,e);return n.top=b(r.top,n.top),n.right=m(r.right,n.right),n.bottom=m(r.bottom,n.bottom),n.left=b(r.left,n.left),n}),_(t,o[0]));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}(p(T)?T:T.contextElement||j(t.elements.popper),s,v),I=y(t.elements.reference),L=G({reference:I,element:S,strategy:"absolute",placement:u}),$=V(Object.assign({},S,L)),H="popper"===g?$:I,C={top:W.top-H.top+R.top,bottom:H.bottom-W.bottom+R.bottom,left:W.left-H.left+R.left,right:H.right-W.right+R.right},z=t.modifiersData.offset;if("popper"===g&&z){var D=z[u];Object.keys(C).forEach((function(t){var o=[r,e].indexOf(t)>=0?1:-1,i=[n,e].indexOf(t)>=0?"y":"x";C[t]+=D[i]*o}))}return C}function K(t,n){void 0===n&&(n={});var e=n.boundary,r=n.rootBoundary,o=n.padding,f=n.flipVariations,c=n.allowedAutoPlacements,s=void 0===c?u:c,p=R(n.placement),l=p?f?a:a.filter((function(t){return R(t)===p})):i,d=l.filter((function(t){return s.indexOf(t)>=0}));0===d.length&&(d=l);var b=d.reduce((function(n,i){return n[i]=J(t,{placement:i,boundary:e,rootBoundary:r,padding:o})[v(i)],n}),{});return Object.keys(b).sort((function(t,n){return b[t]-b[n]}))}function N(t,n,e){return void 0===e&&(e={x:0,y:0}),{top:t.top-n.height-e.y,right:t.right-n.width+e.x,bottom:t.bottom-n.height+e.y,left:t.left-n.width-e.x}}function Q(t){return[n,r,e,o].some((function(n){return t[n]>=0}))}function X(t,n,e){void 0===e&&(e=!1);var r,o,i=l(n),a=l(n)&&function(t){var n=t.getBoundingClientRect(),e=h(n.width)/t.offsetWidth||1,r=h(n.height)/t.offsetHeight||1;return 1!==e||1!==r}(n),u=j(n),f=y(t,a),p={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(i||!i&&!e)&&(("body"!==c(n)||D(u))&&(p=(r=n)!==s(r)&&l(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:C(r)),l(n)?((d=y(n,!0)).x+=n.clientLeft,d.y+=n.clientTop):u&&(d.x=z(u))),{x:f.left+p.scrollLeft-d.x,y:f.top+p.scrollTop-d.y,width:f.width,height:f.height}}function Y(t){var n=new Map,e=new Set,r=[];function o(t){e.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!e.has(t)){var r=n.get(t);r&&o(r)}})),r.push(t)}return t.forEach((function(t){n.set(t.name,t)})),t.forEach((function(t){e.has(t.name)||o(t)})),r}var Z={placement:"bottom",modifiers:[],strategy:"absolute"};function tt(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return!n.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function nt(t){void 0===t&&(t={});var n=t.defaultModifiers,e=void 0===n?[]:n,r=t.defaultOptions,o=void 0===r?Z:r;return function(t,n,r){void 0===r&&(r=o);var i,a,u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Z,o),modifiersData:{},elements:{reference:t,popper:n},attributes:{},styles:{}},c=[],s=!1,l={state:u,setOptions:function(r){var i="function"==typeof r?r(u.options):r;d(),u.options=Object.assign({},o,u.options,i),u.scrollParents={reference:p(t)?U(t):t.contextElement?U(t.contextElement):[],popper:U(n)};var a,s,v=function(t){var n=Y(t);return f.reduce((function(t,e){return t.concat(n.filter((function(t){return t.phase===e})))}),[])}((a=[].concat(e,u.options.modifiers),s=a.reduce((function(t,n){var e=t[n.name];return t[n.name]=e?Object.assign({},e,n,{options:Object.assign({},e.options,n.options),data:Object.assign({},e.data,n.data)}):n,t}),{}),Object.keys(s).map((function(t){return s[t]}))));return u.orderedModifiers=v.filter((function(t){return t.enabled})),u.orderedModifiers.forEach((function(t){var n=t.options,e=t.effect;if("function"==typeof e){var r=e({state:u,name:t.name,instance:l,options:void 0===n?{}:n});c.push(r||function(){})}})),l.update()},forceUpdate:function(){if(!s){var t=u.elements,n=t.reference,e=t.popper;if(tt(n,e)){u.rects={reference:X(n,E(e),"fixed"===u.options.strategy),popper:g(e)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach((function(t){return u.modifiersData[t.name]=Object.assign({},t.data)}));for(var r=0;r<u.orderedModifiers.length;r++)if(!0!==u.reset){var o=u.orderedModifiers[r],i=o.fn,a=o.options;"function"==typeof i&&(u=i({state:u,options:void 0===a?{}:a,name:o.name,instance:l})||u)}else u.reset=!1,r=-1}}},update:(i=function(){return new Promise((function(t){l.forceUpdate(),t(u)}))},function(){return a||(a=new Promise((function(t){Promise.resolve().then((function(){a=void 0,t(i())}))}))),a}),destroy:function(){d(),s=!0}};if(!tt(t,n))return l;function d(){c.forEach((function(t){return t()})),c=[]}return l.setOptions(r).then((function(t){!s&&r.onFirstUpdate&&r.onFirstUpdate(t)})),l}}var et=nt({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var n=t.state,e=t.instance,r=t.options,o=r.scroll,i=void 0===o||o,a=r.resize,u=void 0===a||a,f=s(n.elements.popper),c=[].concat(n.scrollParents.reference,n.scrollParents.popper);return i&&c.forEach((function(t){t.addEventListener("scroll",e.update,W)})),u&&f.addEventListener("resize",e.update,W),function(){i&&c.forEach((function(t){t.removeEventListener("scroll",e.update,W)})),u&&f.removeEventListener("resize",e.update,W)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var n=t.state;n.modifiersData[t.name]=G({reference:n.rects.reference,element:n.rects.popper,strategy:"absolute",placement:n.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var n=t.state,e=t.options,r=e.gpuAcceleration,o=void 0===r||r,i=e.adaptive,a=void 0===i||i,u=e.roundOffsets,f=void 0===u||u,c={placement:v(n.placement),variation:R(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:o,isFixed:"fixed"===n.options.strategy};null!=n.modifiersData.popperOffsets&&(n.styles.popper=Object.assign({},n.styles.popper,T(Object.assign({},c,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:a,roundOffsets:f})))),null!=n.modifiersData.arrow&&(n.styles.arrow=Object.assign({},n.styles.arrow,T(Object.assign({},c,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var n=t.state;Object.keys(n.elements).forEach((function(t){var e=n.styles[t]||{},r=n.attributes[t]||{},o=n.elements[t];l(o)&&c(o)&&(Object.assign(o.style,e),Object.keys(r).forEach((function(t){var n=r[t];!1===n?o.removeAttribute(t):o.setAttribute(t,!0===n?"":n)})))}))},effect:function(t){var n=t.state,e={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,e.popper),n.styles=e,n.elements.arrow&&Object.assign(n.elements.arrow.style,e.arrow),function(){Object.keys(n.elements).forEach((function(t){var r=n.elements[t],o=n.attributes[t]||{},i=Object.keys(n.styles.hasOwnProperty(t)?n.styles[t]:e[t]).reduce((function(t,n){return t[n]="",t}),{});l(r)&&c(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(t){r.removeAttribute(t)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,i=t.name,a=t.options.offset,f=void 0===a?[0,0]:a,c=u.reduce((function(t,i){return t[i]=function(t,e,i){var a=v(t),u=[o,n].indexOf(a)>=0?-1:1,f="function"==typeof i?i(Object.assign({},e,{placement:t})):i,c=f[0],s=f[1];return c=c||0,s=(s||0)*u,[o,r].indexOf(a)>=0?{x:s,y:c}:{x:c,y:s}}(i,e.rects,f),t}),{}),s=c[e.placement],p=s.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=s.x,e.modifiersData.popperOffsets.y+=p),e.modifiersData[i]=c}},{name:"flip",enabled:!0,phase:"main",fn:function(t){var i=t.state,a=t.options,u=t.name;if(!i.modifiersData[u]._skip){for(var f=a.mainAxis,c=void 0===f||f,s=a.altAxis,p=void 0===s||s,l=a.fallbackPlacements,d=a.padding,b=a.boundary,m=a.rootBoundary,h=a.altBoundary,y=a.flipVariations,g=void 0===y||y,x=a.allowedAutoPlacements,w=i.options.placement,O=v(w),j=l||(O!==w&&g?function(t){if("auto"===v(t))return[];var n=L(t);return[H(t),n,H(n)]}(w):[L(w)]),M=[w].concat(j).reduce((function(t,n){return t.concat("auto"===v(n)?K(i,{placement:n,boundary:b,rootBoundary:m,padding:d,flipVariations:g,allowedAutoPlacements:x}):n)}),[]),k=i.rects.reference,E=i.rects.popper,P=new Map,A=!0,q=M[0],B=0;B<M.length;B++){var S=M[B],T=v(S),W="start"===R(S),I=[n,e].indexOf(T)>=0,$=I?"width":"height",C=J(i,{placement:S,boundary:b,rootBoundary:m,altBoundary:h,padding:d}),z=I?W?r:o:W?e:n;k[$]>E[$]&&(z=L(z));var D=L(z),F=[];if(c&&F.push(C[T]<=0),p&&F.push(C[z]<=0,C[D]<=0),F.every((function(t){return t}))){q=S,A=!1;break}P.set(S,F)}if(A)for(var U=function(t){var n=M.find((function(n){var e=P.get(n);if(e)return e.slice(0,t).every((function(t){return t}))}));if(n)return q=n,"break"},V=g?3:1;V>0&&"break"!==U(V);V--);i.placement!==q&&(i.modifiersData[u]._skip=!0,i.placement=q,i.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var i=t.state,a=t.options,u=t.name,f=a.mainAxis,c=void 0===f||f,s=a.altAxis,p=void 0!==s&&s,l=a.tether,d=void 0===l||l,h=a.tetherOffset,y=void 0===h?0:h,x=J(i,{boundary:a.boundary,rootBoundary:a.rootBoundary,padding:a.padding,altBoundary:a.altBoundary}),w=v(i.placement),O=R(i.placement),j=!O,M=P(w),k="x"===M?"y":"x",q=i.modifiersData.popperOffsets,B=i.rects.reference,S=i.rects.popper,T="function"==typeof y?y(Object.assign({},i.rects,{placement:i.placement})):y,W="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),I=i.modifiersData.offset?i.modifiersData.offset[i.placement]:null,L={x:0,y:0};if(q){if(c){var $,H="y"===M?n:o,C="y"===M?e:r,z="y"===M?"height":"width",D=q[M],F=D+x[H],U=D-x[C],V=d?-S[z]/2:0,_="start"===O?B[z]:S[z],G="start"===O?-S[z]:-B[z],K=i.elements.arrow,N=d&&K?g(K):{width:0,height:0},Q=i.modifiersData["arrow#persistent"]?i.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},X=Q[H],Y=Q[C],Z=A(0,B[z],N[z]),tt=j?B[z]/2-V-Z-X-W.mainAxis:_-Z-X-W.mainAxis,nt=j?-B[z]/2+V+Z+Y+W.mainAxis:G+Z+Y+W.mainAxis,et=i.elements.arrow&&E(i.elements.arrow),rt=null!=($=null==I?void 0:I[M])?$:0,ot=D+nt-rt,it=A(d?m(F,D+tt-rt-(et?"y"===M?et.clientTop||0:et.clientLeft||0:0)):F,D,d?b(U,ot):U);q[M]=it,L[M]=it-D}if(p){var at,ut=q[k],ft="y"===k?"height":"width",ct=ut+x["x"===M?n:o],st=ut-x["x"===M?e:r],pt=-1!==[n,o].indexOf(w),lt=null!=(at=null==I?void 0:I[k])?at:0,dt=pt?ct:ut-B[ft]-S[ft]-lt+W.altAxis,vt=pt?ut+B[ft]+S[ft]-lt-W.altAxis:st,bt=d&&pt?function(t,n,e){var r=A(t,n,e);return r>e?e:r}(dt,ut,vt):A(d?dt:ct,ut,d?vt:st);q[k]=bt,L[k]=bt-ut}i.modifiersData[u]=L}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(t){var a,u=t.state,f=t.name,c=t.options,s=u.elements.arrow,p=u.modifiersData.popperOffsets,l=v(u.placement),d=P(l),b=[o,r].indexOf(l)>=0?"height":"width";if(s&&p){var m=function(t,n){return q("number"!=typeof(t="function"==typeof t?t(Object.assign({},n.rects,{placement:n.placement})):t)?t:B(t,i))}(c.padding,u),h=g(s),y="y"===d?n:o,x="y"===d?e:r,w=u.rects.reference[b]+u.rects.reference[d]-p[d]-u.rects.popper[b],O=p[d]-u.rects.reference[d],j=E(s),M=j?"y"===d?j.clientHeight||0:j.clientWidth||0:0,k=M/2-h[b]/2+(w/2-O/2),R=A(m[y],k,M-h[b]-m[x]);u.modifiersData[f]=((a={})[d]=R,a.centerOffset=R-k,a)}},effect:function(t){var n=t.state,e=t.options.element,r=void 0===e?"[data-popper-arrow]":e;null!=r&&("string"!=typeof r||(r=n.elements.popper.querySelector(r)))&&x(n.elements.popper,r)&&(n.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var n=t.state,e=t.name,r=n.rects.reference,o=n.rects.popper,i=n.modifiersData.preventOverflow,a=J(n,{elementContext:"reference"}),u=J(n,{altBoundary:!0}),f=N(a,r),c=N(u,o,i),s=Q(f),p=Q(c);n.modifiersData[e]={referenceClippingOffsets:f,popperEscapeOffsets:c,isReferenceHidden:s,hasPopperEscaped:p},n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-reference-hidden":s,"data-popper-escaped":p})}}]});const rt=["top","bottom","right","left","top-start","top-end","bottom-start","bottom-end","right-start","right-end","left-start","left-end"],ot="bottom-leading",it=["top-start","top","top-end","bottom-start","bottom","bottom-end"],at={animation:"calcite-popper-anim",animationActive:"calcite-popper-anim--active"};function ut(t,n){const e=t.filter((t=>rt.includes(t)));return e.length!==t.length&&console.warn(`${n.tagName}: Invalid value found in: flipPlacements. Try any of these: ${rt.map((t=>`"${t}"`)).join(", ").trim()}`,{el:n}),e}function ft(n,e){const r=["left","right"],o=["start","end"];return"rtl"===t(n)&&(r.reverse(),o.reverse()),e.replace(/-leading/gi,`-${o[0]}`).replace(/-trailing/gi,`-${o[1]}`).replace(/leading/gi,r[0]).replace(/trailing/gi,r[1])}function ct({referenceEl:t,el:n,placement:e,overlayPositioning:r="absolute",modifiers:o}){return t?et(t,n,{strategy:r,placement:ft(n,e),modifiers:o}):null}async function st({el:t,modifiers:n,placement:e,popper:r}){const o=ft(t,e);await r.setOptions({modifiers:n,placement:o})}const pt=Math.ceil((4,Math.sqrt(Math.pow(4,2)+Math.pow(4,2))));export{at as C,pt as a,ct as c,ot as d,ut as f,it as p,st as u}
6
+ import{a as t}from"./p-bc9c9c9b.js";var n="top",e="bottom",r="right",o="left",i=[n,e,r,o],a=i.reduce((function(t,n){return t.concat([n+"-start",n+"-end"])}),[]),u=[].concat(i,["auto"]).reduce((function(t,n){return t.concat([n,n+"-start",n+"-end"])}),[]),f=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function c(t){return t?(t.nodeName||"").toLowerCase():null}function s(t){if(null==t)return window;if("[object Window]"!==t.toString()){var n=t.ownerDocument;return n&&n.defaultView||window}return t}function p(t){return t instanceof s(t).Element||t instanceof Element}function l(t){return t instanceof s(t).HTMLElement||t instanceof HTMLElement}function d(t){return"undefined"!=typeof ShadowRoot&&(t instanceof s(t).ShadowRoot||t instanceof ShadowRoot)}function v(t){return t.split("-")[0]}var b=Math.max,m=Math.min,h=Math.round;function y(t,n){void 0===n&&(n=!1);var e=t.getBoundingClientRect(),r=1,o=1;if(l(t)&&n){var i=t.offsetHeight,a=t.offsetWidth;a>0&&(r=h(e.width)/a||1),i>0&&(o=h(e.height)/i||1)}return{width:e.width/r,height:e.height/o,top:e.top/o,right:e.right/r,bottom:e.bottom/o,left:e.left/r,x:e.left/r,y:e.top/o}}function g(t){var n=y(t),e=t.offsetWidth,r=t.offsetHeight;return Math.abs(n.width-e)<=1&&(e=n.width),Math.abs(n.height-r)<=1&&(r=n.height),{x:t.offsetLeft,y:t.offsetTop,width:e,height:r}}function x(t,n){var e=n.getRootNode&&n.getRootNode();if(t.contains(n))return!0;if(e&&d(e)){var r=n;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function w(t){return s(t).getComputedStyle(t)}function O(t){return["table","td","th"].indexOf(c(t))>=0}function j(t){return((p(t)?t.ownerDocument:t.document)||window.document).documentElement}function M(t){return"html"===c(t)?t:t.assignedSlot||t.parentNode||(d(t)?t.host:null)||j(t)}function k(t){return l(t)&&"fixed"!==w(t).position?t.offsetParent:null}function E(t){for(var n=s(t),e=k(t);e&&O(e)&&"static"===w(e).position;)e=k(e);return e&&("html"===c(e)||"body"===c(e)&&"static"===w(e).position)?n:e||function(t){var n=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&l(t)&&"fixed"===w(t).position)return null;var e=M(t);for(d(e)&&(e=e.host);l(e)&&["html","body"].indexOf(c(e))<0;){var r=w(e);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||n&&"filter"===r.willChange||n&&r.filter&&"none"!==r.filter)return e;e=e.parentNode}return null}(t)||n}function P(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function A(t,n,e){return b(t,m(n,e))}function q(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function B(t,n){return n.reduce((function(n,e){return n[e]=t,n}),{})}function R(t){return t.split("-")[1]}var S={top:"auto",right:"auto",bottom:"auto",left:"auto"};function T(t){var i,a=t.popper,u=t.popperRect,f=t.placement,c=t.variation,p=t.offsets,l=t.position,d=t.gpuAcceleration,v=t.adaptive,b=t.roundOffsets,m=t.isFixed,y=p.x,g=void 0===y?0:y,x=p.y,O=void 0===x?0:x,M="function"==typeof b?b({x:g,y:O}):{x:g,y:O};g=M.x,O=M.y;var k=p.hasOwnProperty("x"),P=p.hasOwnProperty("y"),A=o,q=n,B=window;if(v){var R=E(a),T="clientHeight",W="clientWidth";R===s(a)&&"static"!==w(R=j(a)).position&&"absolute"===l&&(T="scrollHeight",W="scrollWidth"),R=R,(f===n||(f===o||f===r)&&"end"===c)&&(q=e,O-=(m&&R===B&&B.visualViewport?B.visualViewport.height:R[T])-u.height,O*=d?1:-1),f!==o&&(f!==n&&f!==e||"end"!==c)||(A=r,g-=(m&&R===B&&B.visualViewport?B.visualViewport.width:R[W])-u.width,g*=d?1:-1)}var I,L=Object.assign({position:l},v&&S),$=!0===b?function(t){var n=t.y,e=window.devicePixelRatio||1;return{x:h(t.x*e)/e||0,y:h(n*e)/e||0}}({x:g,y:O}):{x:g,y:O};return g=$.x,O=$.y,Object.assign({},L,d?((I={})[q]=P?"0":"",I[A]=k?"0":"",I.transform=(B.devicePixelRatio||1)<=1?"translate("+g+"px, "+O+"px)":"translate3d("+g+"px, "+O+"px, 0)",I):((i={})[q]=P?O+"px":"",i[A]=k?g+"px":"",i.transform="",i))}var W={passive:!0},I={left:"right",right:"left",bottom:"top",top:"bottom"};function L(t){return t.replace(/left|right|bottom|top/g,(function(t){return I[t]}))}var $={start:"end",end:"start"};function H(t){return t.replace(/start|end/g,(function(t){return $[t]}))}function C(t){var n=s(t);return{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function z(t){return y(j(t)).left+C(t).scrollLeft}function D(t){var n=w(t);return/auto|scroll|overlay|hidden/.test(n.overflow+n.overflowY+n.overflowX)}function F(t){return["html","body","#document"].indexOf(c(t))>=0?t.ownerDocument.body:l(t)&&D(t)?t:F(M(t))}function U(t,n){var e;void 0===n&&(n=[]);var r=F(t),o=r===(null==(e=t.ownerDocument)?void 0:e.body),i=s(r),a=o?[i].concat(i.visualViewport||[],D(r)?r:[]):r,u=n.concat(a);return o?u:u.concat(U(M(a)))}function V(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function _(t,n){return"viewport"===n?V(function(t){var n=s(t),e=j(t),r=n.visualViewport,o=e.clientWidth,i=e.clientHeight,a=0,u=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,u=r.offsetTop)),{width:o,height:i,x:a+z(t),y:u}}(t)):p(n)?function(t){var n=y(t);return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}(n):V(function(t){var n,e=j(t),r=C(t),o=null==(n=t.ownerDocument)?void 0:n.body,i=b(e.scrollWidth,e.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=b(e.scrollHeight,e.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),u=-r.scrollLeft+z(t),f=-r.scrollTop;return"rtl"===w(o||e).direction&&(u+=b(e.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:u,y:f}}(j(t)))}function G(t){var i,a=t.reference,u=t.element,f=t.placement,c=f?v(f):null,s=f?R(f):null,p=a.x+a.width/2-u.width/2,l=a.y+a.height/2-u.height/2;switch(c){case n:i={x:p,y:a.y-u.height};break;case e:i={x:p,y:a.y+a.height};break;case r:i={x:a.x+a.width,y:l};break;case o:i={x:a.x-u.width,y:l};break;default:i={x:a.x,y:a.y}}var d=c?P(c):null;if(null!=d){var b="y"===d?"height":"width";switch(s){case"start":i[d]=i[d]-(a[b]/2-u[b]/2);break;case"end":i[d]=i[d]+(a[b]/2-u[b]/2)}}return i}function J(t,o){void 0===o&&(o={});var a=o.placement,u=void 0===a?t.placement:a,f=o.boundary,s=void 0===f?"clippingParents":f,d=o.rootBoundary,v=void 0===d?"viewport":d,h=o.elementContext,g=void 0===h?"popper":h,O=o.altBoundary,k=void 0!==O&&O,P=o.padding,A=void 0===P?0:P,R=q("number"!=typeof A?A:B(A,i)),S=t.rects.popper,T=t.elements[k?"popper"===g?"reference":"popper":g],W=function(t,n,e){var r="clippingParents"===n?function(t){var n=U(M(t)),e=["absolute","fixed"].indexOf(w(t).position)>=0&&l(t)?E(t):t;return p(e)?n.filter((function(t){return p(t)&&x(t,e)&&"body"!==c(t)})):[]}(t):[].concat(n),o=[].concat(r,[e]),i=o.reduce((function(n,e){var r=_(t,e);return n.top=b(r.top,n.top),n.right=m(r.right,n.right),n.bottom=m(r.bottom,n.bottom),n.left=b(r.left,n.left),n}),_(t,o[0]));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}(p(T)?T:T.contextElement||j(t.elements.popper),s,v),I=y(t.elements.reference),L=G({reference:I,element:S,strategy:"absolute",placement:u}),$=V(Object.assign({},S,L)),H="popper"===g?$:I,C={top:W.top-H.top+R.top,bottom:H.bottom-W.bottom+R.bottom,left:W.left-H.left+R.left,right:H.right-W.right+R.right},z=t.modifiersData.offset;if("popper"===g&&z){var D=z[u];Object.keys(C).forEach((function(t){var o=[r,e].indexOf(t)>=0?1:-1,i=[n,e].indexOf(t)>=0?"y":"x";C[t]+=D[i]*o}))}return C}function K(t,n){void 0===n&&(n={});var e=n.boundary,r=n.rootBoundary,o=n.padding,f=n.flipVariations,c=n.allowedAutoPlacements,s=void 0===c?u:c,p=R(n.placement),l=p?f?a:a.filter((function(t){return R(t)===p})):i,d=l.filter((function(t){return s.indexOf(t)>=0}));0===d.length&&(d=l);var b=d.reduce((function(n,i){return n[i]=J(t,{placement:i,boundary:e,rootBoundary:r,padding:o})[v(i)],n}),{});return Object.keys(b).sort((function(t,n){return b[t]-b[n]}))}function N(t,n,e){return void 0===e&&(e={x:0,y:0}),{top:t.top-n.height-e.y,right:t.right-n.width+e.x,bottom:t.bottom-n.height+e.y,left:t.left-n.width-e.x}}function Q(t){return[n,r,e,o].some((function(n){return t[n]>=0}))}function X(t,n,e){void 0===e&&(e=!1);var r,o,i=l(n),a=l(n)&&function(t){var n=t.getBoundingClientRect(),e=h(n.width)/t.offsetWidth||1,r=h(n.height)/t.offsetHeight||1;return 1!==e||1!==r}(n),u=j(n),f=y(t,a),p={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(i||!i&&!e)&&(("body"!==c(n)||D(u))&&(p=(r=n)!==s(r)&&l(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:C(r)),l(n)?((d=y(n,!0)).x+=n.clientLeft,d.y+=n.clientTop):u&&(d.x=z(u))),{x:f.left+p.scrollLeft-d.x,y:f.top+p.scrollTop-d.y,width:f.width,height:f.height}}function Y(t){var n=new Map,e=new Set,r=[];function o(t){e.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!e.has(t)){var r=n.get(t);r&&o(r)}})),r.push(t)}return t.forEach((function(t){n.set(t.name,t)})),t.forEach((function(t){e.has(t.name)||o(t)})),r}var Z={placement:"bottom",modifiers:[],strategy:"absolute"};function tt(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return!n.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function nt(t){void 0===t&&(t={});var n=t.defaultModifiers,e=void 0===n?[]:n,r=t.defaultOptions,o=void 0===r?Z:r;return function(t,n,r){void 0===r&&(r=o);var i,a,u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Z,o),modifiersData:{},elements:{reference:t,popper:n},attributes:{},styles:{}},c=[],s=!1,l={state:u,setOptions:function(r){var i="function"==typeof r?r(u.options):r;d(),u.options=Object.assign({},o,u.options,i),u.scrollParents={reference:p(t)?U(t):t.contextElement?U(t.contextElement):[],popper:U(n)};var a,s,v=function(t){var n=Y(t);return f.reduce((function(t,e){return t.concat(n.filter((function(t){return t.phase===e})))}),[])}((a=[].concat(e,u.options.modifiers),s=a.reduce((function(t,n){var e=t[n.name];return t[n.name]=e?Object.assign({},e,n,{options:Object.assign({},e.options,n.options),data:Object.assign({},e.data,n.data)}):n,t}),{}),Object.keys(s).map((function(t){return s[t]}))));return u.orderedModifiers=v.filter((function(t){return t.enabled})),u.orderedModifiers.forEach((function(t){var n=t.options,e=t.effect;if("function"==typeof e){var r=e({state:u,name:t.name,instance:l,options:void 0===n?{}:n});c.push(r||function(){})}})),l.update()},forceUpdate:function(){if(!s){var t=u.elements,n=t.reference,e=t.popper;if(tt(n,e)){u.rects={reference:X(n,E(e),"fixed"===u.options.strategy),popper:g(e)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach((function(t){return u.modifiersData[t.name]=Object.assign({},t.data)}));for(var r=0;r<u.orderedModifiers.length;r++)if(!0!==u.reset){var o=u.orderedModifiers[r],i=o.fn,a=o.options;"function"==typeof i&&(u=i({state:u,options:void 0===a?{}:a,name:o.name,instance:l})||u)}else u.reset=!1,r=-1}}},update:(i=function(){return new Promise((function(t){l.forceUpdate(),t(u)}))},function(){return a||(a=new Promise((function(t){Promise.resolve().then((function(){a=void 0,t(i())}))}))),a}),destroy:function(){d(),s=!0}};if(!tt(t,n))return l;function d(){c.forEach((function(t){return t()})),c=[]}return l.setOptions(r).then((function(t){!s&&r.onFirstUpdate&&r.onFirstUpdate(t)})),l}}var et=nt({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var n=t.state,e=t.instance,r=t.options,o=r.scroll,i=void 0===o||o,a=r.resize,u=void 0===a||a,f=s(n.elements.popper),c=[].concat(n.scrollParents.reference,n.scrollParents.popper);return i&&c.forEach((function(t){t.addEventListener("scroll",e.update,W)})),u&&f.addEventListener("resize",e.update,W),function(){i&&c.forEach((function(t){t.removeEventListener("scroll",e.update,W)})),u&&f.removeEventListener("resize",e.update,W)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var n=t.state;n.modifiersData[t.name]=G({reference:n.rects.reference,element:n.rects.popper,strategy:"absolute",placement:n.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var n=t.state,e=t.options,r=e.gpuAcceleration,o=void 0===r||r,i=e.adaptive,a=void 0===i||i,u=e.roundOffsets,f=void 0===u||u,c={placement:v(n.placement),variation:R(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:o,isFixed:"fixed"===n.options.strategy};null!=n.modifiersData.popperOffsets&&(n.styles.popper=Object.assign({},n.styles.popper,T(Object.assign({},c,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:a,roundOffsets:f})))),null!=n.modifiersData.arrow&&(n.styles.arrow=Object.assign({},n.styles.arrow,T(Object.assign({},c,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var n=t.state;Object.keys(n.elements).forEach((function(t){var e=n.styles[t]||{},r=n.attributes[t]||{},o=n.elements[t];l(o)&&c(o)&&(Object.assign(o.style,e),Object.keys(r).forEach((function(t){var n=r[t];!1===n?o.removeAttribute(t):o.setAttribute(t,!0===n?"":n)})))}))},effect:function(t){var n=t.state,e={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,e.popper),n.styles=e,n.elements.arrow&&Object.assign(n.elements.arrow.style,e.arrow),function(){Object.keys(n.elements).forEach((function(t){var r=n.elements[t],o=n.attributes[t]||{},i=Object.keys(n.styles.hasOwnProperty(t)?n.styles[t]:e[t]).reduce((function(t,n){return t[n]="",t}),{});l(r)&&c(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(t){r.removeAttribute(t)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,i=t.name,a=t.options.offset,f=void 0===a?[0,0]:a,c=u.reduce((function(t,i){return t[i]=function(t,e,i){var a=v(t),u=[o,n].indexOf(a)>=0?-1:1,f="function"==typeof i?i(Object.assign({},e,{placement:t})):i,c=f[0],s=f[1];return c=c||0,s=(s||0)*u,[o,r].indexOf(a)>=0?{x:s,y:c}:{x:c,y:s}}(i,e.rects,f),t}),{}),s=c[e.placement],p=s.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=s.x,e.modifiersData.popperOffsets.y+=p),e.modifiersData[i]=c}},{name:"flip",enabled:!0,phase:"main",fn:function(t){var i=t.state,a=t.options,u=t.name;if(!i.modifiersData[u]._skip){for(var f=a.mainAxis,c=void 0===f||f,s=a.altAxis,p=void 0===s||s,l=a.fallbackPlacements,d=a.padding,b=a.boundary,m=a.rootBoundary,h=a.altBoundary,y=a.flipVariations,g=void 0===y||y,x=a.allowedAutoPlacements,w=i.options.placement,O=v(w),j=l||(O!==w&&g?function(t){if("auto"===v(t))return[];var n=L(t);return[H(t),n,H(n)]}(w):[L(w)]),M=[w].concat(j).reduce((function(t,n){return t.concat("auto"===v(n)?K(i,{placement:n,boundary:b,rootBoundary:m,padding:d,flipVariations:g,allowedAutoPlacements:x}):n)}),[]),k=i.rects.reference,E=i.rects.popper,P=new Map,A=!0,q=M[0],B=0;B<M.length;B++){var S=M[B],T=v(S),W="start"===R(S),I=[n,e].indexOf(T)>=0,$=I?"width":"height",C=J(i,{placement:S,boundary:b,rootBoundary:m,altBoundary:h,padding:d}),z=I?W?r:o:W?e:n;k[$]>E[$]&&(z=L(z));var D=L(z),F=[];if(c&&F.push(C[T]<=0),p&&F.push(C[z]<=0,C[D]<=0),F.every((function(t){return t}))){q=S,A=!1;break}P.set(S,F)}if(A)for(var U=function(t){var n=M.find((function(n){var e=P.get(n);if(e)return e.slice(0,t).every((function(t){return t}))}));if(n)return q=n,"break"},V=g?3:1;V>0&&"break"!==U(V);V--);i.placement!==q&&(i.modifiersData[u]._skip=!0,i.placement=q,i.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var i=t.state,a=t.options,u=t.name,f=a.mainAxis,c=void 0===f||f,s=a.altAxis,p=void 0!==s&&s,l=a.tether,d=void 0===l||l,h=a.tetherOffset,y=void 0===h?0:h,x=J(i,{boundary:a.boundary,rootBoundary:a.rootBoundary,padding:a.padding,altBoundary:a.altBoundary}),w=v(i.placement),O=R(i.placement),j=!O,M=P(w),k="x"===M?"y":"x",q=i.modifiersData.popperOffsets,B=i.rects.reference,S=i.rects.popper,T="function"==typeof y?y(Object.assign({},i.rects,{placement:i.placement})):y,W="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),I=i.modifiersData.offset?i.modifiersData.offset[i.placement]:null,L={x:0,y:0};if(q){if(c){var $,H="y"===M?n:o,C="y"===M?e:r,z="y"===M?"height":"width",D=q[M],F=D+x[H],U=D-x[C],V=d?-S[z]/2:0,_="start"===O?B[z]:S[z],G="start"===O?-S[z]:-B[z],K=i.elements.arrow,N=d&&K?g(K):{width:0,height:0},Q=i.modifiersData["arrow#persistent"]?i.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},X=Q[H],Y=Q[C],Z=A(0,B[z],N[z]),tt=j?B[z]/2-V-Z-X-W.mainAxis:_-Z-X-W.mainAxis,nt=j?-B[z]/2+V+Z+Y+W.mainAxis:G+Z+Y+W.mainAxis,et=i.elements.arrow&&E(i.elements.arrow),rt=null!=($=null==I?void 0:I[M])?$:0,ot=D+nt-rt,it=A(d?m(F,D+tt-rt-(et?"y"===M?et.clientTop||0:et.clientLeft||0:0)):F,D,d?b(U,ot):U);q[M]=it,L[M]=it-D}if(p){var at,ut=q[k],ft="y"===k?"height":"width",ct=ut+x["x"===M?n:o],st=ut-x["x"===M?e:r],pt=-1!==[n,o].indexOf(w),lt=null!=(at=null==I?void 0:I[k])?at:0,dt=pt?ct:ut-B[ft]-S[ft]-lt+W.altAxis,vt=pt?ut+B[ft]+S[ft]-lt-W.altAxis:st,bt=d&&pt?function(t,n,e){var r=A(t,n,e);return r>e?e:r}(dt,ut,vt):A(d?dt:ct,ut,d?vt:st);q[k]=bt,L[k]=bt-ut}i.modifiersData[u]=L}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(t){var a,u=t.state,f=t.name,c=t.options,s=u.elements.arrow,p=u.modifiersData.popperOffsets,l=v(u.placement),d=P(l),b=[o,r].indexOf(l)>=0?"height":"width";if(s&&p){var m=function(t,n){return q("number"!=typeof(t="function"==typeof t?t(Object.assign({},n.rects,{placement:n.placement})):t)?t:B(t,i))}(c.padding,u),h=g(s),y="y"===d?n:o,x="y"===d?e:r,w=u.rects.reference[b]+u.rects.reference[d]-p[d]-u.rects.popper[b],O=p[d]-u.rects.reference[d],j=E(s),M=j?"y"===d?j.clientHeight||0:j.clientWidth||0:0,k=M/2-h[b]/2+(w/2-O/2),R=A(m[y],k,M-h[b]-m[x]);u.modifiersData[f]=((a={})[d]=R,a.centerOffset=R-k,a)}},effect:function(t){var n=t.state,e=t.options.element,r=void 0===e?"[data-popper-arrow]":e;null!=r&&("string"!=typeof r||(r=n.elements.popper.querySelector(r)))&&x(n.elements.popper,r)&&(n.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var n=t.state,e=t.name,r=n.rects.reference,o=n.rects.popper,i=n.modifiersData.preventOverflow,a=J(n,{elementContext:"reference"}),u=J(n,{altBoundary:!0}),f=N(a,r),c=N(u,o,i),s=Q(f),p=Q(c);n.modifiersData[e]={referenceClippingOffsets:f,popperEscapeOffsets:c,isReferenceHidden:s,hasPopperEscaped:p},n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-reference-hidden":s,"data-popper-escaped":p})}}]});const rt=["top","bottom","right","left","top-start","top-end","bottom-start","bottom-end","right-start","right-end","left-start","left-end"],ot="bottom-leading",it=["top-start","top","top-end","bottom-start","bottom","bottom-end"],at={animation:"calcite-popper-anim",animationActive:"calcite-popper-anim--active"};function ut(t,n){const e=t.filter((t=>rt.includes(t)));return e.length!==t.length&&console.warn(`${n.tagName}: Invalid value found in: flipPlacements. Try any of these: ${rt.map((t=>`"${t}"`)).join(", ").trim()}`,{el:n}),e}function ft(n,e){const r=["left","right"],o=["start","end"];return"rtl"===t(n)&&(r.reverse(),o.reverse()),e.replace(/-leading/gi,`-${o[0]}`).replace(/-trailing/gi,`-${o[1]}`).replace(/leading/gi,r[0]).replace(/trailing/gi,r[1])}function ct({referenceEl:t,el:n,placement:e,overlayPositioning:r="absolute",modifiers:o}){return t?et(t,n,{strategy:r,placement:ft(n,e),modifiers:o}):null}async function st({el:t,modifiers:n,placement:e,popper:r}){const o=ft(t,e);await r.setOptions({modifiers:n,placement:o})}const pt=Math.ceil((4,Math.sqrt(Math.pow(4,2)+Math.pow(4,2))));export{at as C,pt as a,ct as c,ot as d,ut as f,it as p,st as u}
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-beta.83
4
+ * v1.0.0-beta.86
5
5
  */
6
- System.register(["./p-ddb96773.system.js"],(function(e){"use strict";var t,n;return{setters:[function(e){t=e.q;n=e.c}],execute:function(){e({c:f,d:m,g:b});var r="calciteInternalLabelClick";var a=e("l","calciteInternalLabelConnected");var i=e("a","calciteInternaLabelDisconnected");var l="calcite-label";var c=new WeakMap;var o=new WeakMap;var s=new WeakMap;var v=new Set;var d=function(e){var r=e.id;var a=r&&t(e,{selector:"".concat(l,'[for="').concat(r,'"]')});if(a){return a}var i=n(e,l);if(!i||u(i,e)){return null}return i};function u(e,t){var n;var r="custom-element-ancestor-check";var a=function(r){r.stopImmediatePropagation();var a=r.composedPath();n=a.slice(a.indexOf(t),a.indexOf(e))};e.addEventListener(r,a,{once:true});t.dispatchEvent(new CustomEvent(r,{composed:true,bubbles:true}));e.removeEventListener(r,a);var i=n.filter((function(n){return n!==t&&n!==e})).filter((function(e){var t;return(t=e.tagName)===null||t===void 0?void 0:t.includes("-")}));return i.length>0}function f(e){var t=d(e.el);if(c.has(t)||!t&&v.has(e)){return}var n=L.bind(e);if(t){e.labelEl=t;var l=E.bind(e);c.set(e.labelEl,l);e.labelEl.addEventListener(r,l);v.delete(e);document.removeEventListener(a,o.get(e));s.set(e,n);document.addEventListener(i,n)}else if(!v.has(e)){n();document.removeEventListener(i,s.get(e))}}function m(e){v.delete(e);document.removeEventListener(a,o.get(e));document.removeEventListener(i,s.get(e));o.delete(e);s.delete(e);if(!e.labelEl){return}var t=c.get(e.labelEl);e.labelEl.removeEventListener(r,t);c.delete(e.labelEl)}function b(e){var t,n;return e.label||((n=(t=e.labelEl)===null||t===void 0?void 0:t.textContent)===null||n===void 0?void 0:n.trim())||""}function E(e){if(this.disabled){return}var t=this.el.contains(e.detail.sourceEvent.target);if(t){return}this.onLabelClick(e)}function h(){if(v.has(this)){f(this)}}function L(){v.add(this);var e=o.get(this)||h.bind(this);o.set(this,e);document.addEventListener(a,e)}}}}));
6
+ System.register(["./p-4c62aae1.system.js"],(function(e){"use strict";var t,n;return{setters:[function(e){t=e.q;n=e.c}],execute:function(){e({c:f,d:m,g:b});var r="calciteInternalLabelClick";var a=e("l","calciteInternalLabelConnected");var i=e("a","calciteInternaLabelDisconnected");var l="calcite-label";var c=new WeakMap;var o=new WeakMap;var s=new WeakMap;var v=new Set;var u=function(e){var r=e.id;var a=r&&t(e,{selector:"".concat(l,'[for="').concat(r,'"]')});if(a){return a}var i=n(e,l);if(!i||d(i,e)){return null}return i};function d(e,t){var n;var r="custom-element-ancestor-check";var a=function(r){r.stopImmediatePropagation();var a=r.composedPath();n=a.slice(a.indexOf(t),a.indexOf(e))};e.addEventListener(r,a,{once:true});t.dispatchEvent(new CustomEvent(r,{composed:true,bubbles:true}));e.removeEventListener(r,a);var i=n.filter((function(n){return n!==t&&n!==e})).filter((function(e){var t;return(t=e.tagName)===null||t===void 0?void 0:t.includes("-")}));return i.length>0}function f(e){var t=u(e.el);if(c.has(t)||!t&&v.has(e)){return}var n=L.bind(e);if(t){e.labelEl=t;var l=E.bind(e);c.set(e.labelEl,l);e.labelEl.addEventListener(r,l);v.delete(e);document.removeEventListener(a,o.get(e));s.set(e,n);document.addEventListener(i,n)}else if(!v.has(e)){n();document.removeEventListener(i,s.get(e))}}function m(e){v.delete(e);document.removeEventListener(a,o.get(e));document.removeEventListener(i,s.get(e));o.delete(e);s.delete(e);if(!e.labelEl){return}var t=c.get(e.labelEl);e.labelEl.removeEventListener(r,t);c.delete(e.labelEl)}function b(e){var t,n;return e.label||((n=(t=e.labelEl)===null||t===void 0?void 0:t.textContent)===null||n===void 0?void 0:n.trim())||""}function E(e){if(this.disabled){return}var t=this.el.contains(e.detail.sourceEvent.target);if(t){return}this.onLabelClick(e)}function h(){if(v.has(this)){f(this)}}function L(){v.add(this);var e=o.get(this)||h.bind(this);o.set(this,e);document.addEventListener(a,e)}}}}));
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
+ * v1.0.0-beta.86
5
+ */
6
+ import{r as t,c as e,h as i,H as a,g as n}from"./p-e2a9bc3c.js";import{f as o,n as r,g as c,a as s,C as l,t as m,j as h}from"./p-bc9c9c9b.js";import{c as d,d as f}from"./p-8701d6ec.js";import"./p-8e5b28c2.js";import"./p-7bdab3f4.js";var p;!function(t){t.Single="single",t.Multi="multi",t.Children="children",t.MultiChildren="multi-children",t.Ancestors="ancestors"}(p||(p={}));const b=class{constructor(i){t(this,i),this.calciteTreeSelect=e(this,"calciteTreeSelect",7),this.lines=!1,this.inputEnabled=!1,this.scale="m",this.selectionMode=p.Single}componentWillRender(){const t=this.el.parentElement.closest("calcite-tree");this.lines=t?t.lines:this.lines,this.scale=t?t.scale:this.scale,this.selectionMode=t?t.selectionMode:this.selectionMode,this.child=!!t}render(){return i(a,{"aria-multiselectable":this.child?void 0:(this.selectionMode===p.Multi||this.selectionMode===p.MultiChildren).toString(),role:this.child?void 0:"tree",tabIndex:this.getRootTabIndex()},i("slot",null))}onFocus(){if(!this.child){const t=this.el.querySelector("calcite-tree-item[selected]")||this.el.querySelector("calcite-tree-item");o(t)}}onFocusIn(t){(t.relatedTarget===this.el||!this.el.contains(t.relatedTarget))&&this.el.removeAttribute("tabindex")}onFocusOut(t){!this.el.contains(t.relatedTarget)&&(this.el.tabIndex=this.getRootTabIndex())}onClick(t){const e=t.target,i=r(e.querySelectorAll("calcite-tree-item"));if(this.child)return;if(this.child||(t.preventDefault(),t.stopPropagation()),this.selectionMode===p.Ancestors&&!this.child)return void this.updateAncestorTree(t);const a=t.detail.modifyCurrentSelection&&(this.selectionMode===p.Multi||this.selectionMode===p.MultiChildren),n=this.selectionMode===p.MultiChildren||this.selectionMode===p.Children,o=!a&&((this.selectionMode===p.Single||this.selectionMode===p.Multi)&&i.length<=0||this.selectionMode===p.Children||this.selectionMode===p.MultiChildren),c=this.selectionMode===p.Children||this.selectionMode===p.MultiChildren;if(!this.child){const s=[];null!==this.selectionMode&&(!e.hasChildren||e.hasChildren&&(this.selectionMode===p.Children||this.selectionMode===p.MultiChildren))&&s.push(e),n&&i.forEach((t=>{s.push(t)})),o&&r(this.el.querySelectorAll("calcite-tree-item[selected]")).forEach((t=>{s.includes(t)||(t.selected=!1)})),c&&!t.detail.forceToggle&&(e.expanded=!0),a&&window.getSelection().removeAllRanges(),s.forEach(a&&e.selected||n&&t.detail.forceToggle?t=>{t.selected=!1}:t=>{t.selected=!0})}this.calciteTreeSelect.emit({selected:r(this.el.querySelectorAll("calcite-tree-item")).filter((t=>t.selected))}),t.stopPropagation()}keyDownHandler(t){var e;const i=this.el.closest("calcite-tree:not([child])"),a=t.target;if(i===this.el&&"CALCITE-TREE-ITEM"===a.tagName&&this.el.contains(a))switch(t.key){case"ArrowDown":const i=a.nextElementSibling;i&&i.matches("calcite-tree-item")&&(i.focus(),t.preventDefault());break;case"ArrowLeft":if(a.hasChildren&&a.expanded){a.expanded=!1,t.preventDefault();break}const n=a.parentElement.closest("calcite-tree-item");if(n&&(!a.hasChildren||!1===a.expanded)){n.focus(),t.preventDefault();break}break;case"ArrowRight":if(!a.hasChildren)break;a.expanded&&document.activeElement===a?(null===(e=a.querySelector("calcite-tree-item"))||void 0===e||e.focus(),t.preventDefault()):(a.expanded=!0,t.preventDefault());break;case"ArrowUp":const o=a.previousElementSibling;o&&o.matches("calcite-tree-item")&&(o.focus(),t.preventDefault())}}updateAncestorTree(t){const e=t.target,i=e.querySelectorAll("calcite-tree-item"),a=[];let n=e.parentElement.closest("calcite-tree-item");for(;n;)a.push(n),n=n.parentElement.closest("calcite-tree-item");e.selected=!e.selected,e.indeterminate=!1,(null==i?void 0:i.length)&&i.forEach((t=>{t.selected=e.selected,t.indeterminate=!1})),a&&a.forEach((t=>{const e=r(t.querySelectorAll("calcite-tree-item")),i=e.filter((t=>t.selected));if(0===i.length)return t.selected=!1,void(t.indeterminate=!1);const a=i.length<e.length;t.indeterminate=a,t.selected=!a})),this.calciteTreeSelect.emit({selected:r(this.el.querySelectorAll("calcite-tree-item")).filter((t=>t.selected))})}getRootTabIndex(){return this.child?-1:0}get el(){return n(this)}};b.style="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-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:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:block}:host(:focus){outline:2px solid transparent;outline-offset:2px}";const k=class{constructor(i){t(this,i),this.calciteInternalTreeItemSelect=e(this,"calciteInternalTreeItemSelect",7),this.selected=!1,this.expanded=!1,this.parentExpanded=!1,this.depth=-1,this.hasChildren=null,this.iconClickHandler=t=>{t.stopPropagation(),this.expanded=!this.expanded},this.childrenClickHandler=t=>t.stopPropagation(),this.updateParentIsExpanded=(t,e)=>{c(t,"children",{all:!0,selector:"calcite-tree-item"}).forEach((t=>t.parentExpanded=e))},this.updateAncestorTree=()=>{if(this.selected&&this.selectionMode===p.Ancestors){const t=[];let e=this.parentTreeItem;for(;e;)t.push(e),e=e.parentElement.closest("calcite-tree-item");t.forEach((t=>t.indeterminate=!0))}}}expandedHandler(t){this.updateParentIsExpanded(this.el,t)}getselectionMode(){this.isSelectionMultiLike=this.selectionMode===p.Multi||this.selectionMode===p.MultiChildren}connectedCallback(){if(this.parentTreeItem=this.el.parentElement.closest("calcite-tree-item"),this.parentTreeItem){const{expanded:t}=this.parentTreeItem;this.updateParentIsExpanded(this.parentTreeItem,t)}d(this)}disconnectedCallback(){f(this)}componentWillRender(){this.hasChildren=!!this.el.querySelector("calcite-tree"),this.depth=0;let t,e=this.el.closest("calcite-tree");if(e)for(this.selectionMode=e.selectionMode,this.scale=e.scale||"m",this.lines=e.lines;e&&(t=e.parentElement.closest("calcite-tree"),t!==e);)e=t,this.depth=this.depth+1}componentDidLoad(){this.updateAncestorTree()}render(){const t="rtl"===s(this.el),e=this.selectionMode===p.Single||this.selectionMode===p.Children,n=this.selectionMode===p.Multi||this.selectionMode===p.MultiChildren,o=this.hasChildren?i("calcite-icon",{class:{chevron:!0,[l.rtl]:t},"data-test-id":"icon",icon:"chevron-right",onClick:this.iconClickHandler,scale:"s"}):null,r=i("slot",{key:"default-slot"}),c=this.selectionMode===p.Ancestors?i("label",{class:"checkbox-label",key:"checkbox-label"},i("calcite-checkbox",{checked:this.selected,class:"checkbox","data-test-id":"checkbox",indeterminate:this.hasChildren&&this.indeterminate,scale:this.scale,tabIndex:-1}),r):null,h=e?"bullet-point":n?"check":null,d=h?i("calcite-icon",{class:{"bullet-point":"bullet-point"===h,checkmark:"check"===h,[l.rtl]:t},icon:h,scale:"s"}):null,f=!(this.parentExpanded||1===this.depth);return i(a,{"aria-expanded":this.hasChildren?m(this.expanded):void 0,"aria-hidden":m(f),"aria-selected":this.selected?"true":n?"false":void 0,"calcite-hydrated-hidden":f,role:"treeitem",tabindex:this.parentExpanded||1===this.depth?"0":"-1"},i("div",{class:{"node-container":!0,[l.rtl]:t},"data-selection-mode":this.selectionMode,ref:t=>this.defaultSlotWrapper=t},o,d,c||r),i("div",{class:{"children-container":!0,[l.rtl]:t},"data-test-id":"calcite-tree-children",onClick:this.childrenClickHandler,ref:t=>this.childrenSlotWrapper=t,role:this.hasChildren?"group":void 0},i("slot",{name:"children"})))}onClick(t){const[e]=h(this.el,"a");e&&"a"!==t.composedPath()[0].tagName.toLowerCase()&&window.open(e.href,""===e.target?"_self":e.target),this.calciteInternalTreeItemSelect.emit({modifyCurrentSelection:this.selectionMode===p.Ancestors||this.isSelectionMultiLike,forceToggle:!1})}keyDownHandler(t){let e;switch(t.key){case" ":this.calciteInternalTreeItemSelect.emit({modifyCurrentSelection:this.isSelectionMultiLike,forceToggle:!1}),t.preventDefault();break;case"Enter":const i=r(this.el.children).find((t=>t.matches("a")));i?(i.click(),this.selected=!0):this.calciteInternalTreeItemSelect.emit({modifyCurrentSelection:this.isSelectionMultiLike,forceToggle:!1}),t.preventDefault();break;case"Home":e=this.el.closest("calcite-tree:not([child])");const a=e.querySelector("calcite-tree-item");null==a||a.focus();break;case"End":e=this.el.closest("calcite-tree:not([child])");let n=e.children[e.children.length-1],o=r(n.children).find((t=>t.matches("calcite-tree")));for(;o;)n=o.children[e.children.length-1],o=r(n.children).find((t=>t.matches("calcite-tree")));null==n||n.focus()}}get el(){return n(this)}static get watchers(){return{expanded:["expandedHandler"],selectionMode:["getselectionMode"]}}};k.style='@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-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:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:block;max-width:100%;cursor:pointer;color:var(--calcite-ui-text-3)}:host([calcite-hydrated-hidden]){visibility:hidden !important;pointer-events:none}:host([scale=s]){font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s]) .node-container{--calcite-tree-padding-y:0.25rem}:host([scale=s]) .node-container .checkbox,:host([scale=s]) .node-container .chevron,:host([scale=s]) .node-container .checkmark,:host([scale=s]) .node-container .bullet-point{margin-inline:0.25rem}:host([scale=m]){font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]) .node-container{--calcite-tree-padding-y:0.5rem}:host([scale=m]) .node-container .checkbox,:host([scale=m]) .node-container .chevron,:host([scale=m]) .node-container .checkmark,:host([scale=m]) .node-container .bullet-point{margin-inline:0.5rem}:host([scale=l]){font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]) .node-container{--calcite-tree-padding-y:0.75rem}:host([scale=l]) .node-container .checkbox,:host([scale=l]) .node-container .chevron,:host([scale=l]) .node-container .checkmark,:host([scale=l]) .node-container .bullet-point{margin-inline:0.75rem}:host([lines]) .children-container:after{position:absolute;top:0px;width:1px;transition-property:color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;-webkit-transition-property:color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, -webkit-text-decoration-color;-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:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;height:96%;content:"";background-color:var(--calcite-ui-border-2);z-index:-1}:host(:not([lines])) .node-container:after{display:none}::slotted(*){min-width:0px;max-width:100%;overflow-wrap:break-word;color:inherit;text-decoration:none !important}::slotted(*):hover{text-decoration:none !important}::slotted(a){width:100%;-webkit-text-decoration-line:none;text-decoration-line:none}:host{outline-color:transparent}:host(:focus){outline:2px solid transparent;outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.checkbox{line-height:0}.checkbox-label{pointer-events:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.checkbox:focus{outline:2px solid transparent;outline-offset:2px}.children-container{position:relative;height:0px;overflow:hidden;-webkit-margin-start:1.25rem;margin-inline-start:1.25rem;-webkit-transform:scaleY(0);transform:scaleY(0);opacity:0;-webkit-transition:var(--calcite-animation-timing) cubic-bezier(0.215, 0.44, 0.42, 0.88), opacity var(--calcite-animation-timing) cubic-bezier(0.215, 0.44, 0.42, 0.88), all var(--calcite-animation-timing) ease-in-out;transition:var(--calcite-animation-timing) cubic-bezier(0.215, 0.44, 0.42, 0.88), opacity var(--calcite-animation-timing) cubic-bezier(0.215, 0.44, 0.42, 0.88), all var(--calcite-animation-timing) ease-in-out;-webkit-transform-origin:top;transform-origin:top}:host([expanded])>.children-container{-webkit-transform:scaleY(1);transform:scaleY(1);opacity:1;height:auto}.node-container{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:var(--calcite-tree-padding-y) 0}.node-container .checkmark,.node-container .bullet-point{opacity:0;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;color:var(--calcite-ui-border-1)}.node-container:hover .checkmark,.node-container:hover .bullet-point,:host([selected]) .node-container:hover .checkmark,:host([selected]) .node-container:hover .bullet-point,:host(:focus) .node-container .checkmark,:host(:focus) .node-container .bullet-point{opacity:1}:host([selected])>.node-container,:host([selected])>.node-container:hover{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}:host([selected])>.node-container .bullet-point,:host([selected])>.node-container .checkmark,:host([selected])>.node-container:hover .bullet-point,:host([selected])>.node-container:hover .checkmark{opacity:1;color:var(--calcite-ui-brand)}:host(:not([has-children])):host([scale=s])>.node-container[data-selection-mode=ancestors] .checkbox{-webkit-padding-start:1.25rem;padding-inline-start:1.25rem}:host(:not([has-children])):host([scale=m])>.node-container[data-selection-mode=ancestors] .checkbox{-webkit-padding-start:1.5rem;padding-inline-start:1.5rem}:host(:not([has-children])):host([scale=l])>.node-container[data-selection-mode=ancestors] .checkbox{-webkit-padding-start:1.75rem;padding-inline-start:1.75rem}:host([has-children])>.node-container[data-selection-mode=ancestors] .checkbox{-webkit-margin-start:0;margin-inline-start:0}:host([has-children])>.node-container .bullet-point,:host([has-children])>.node-container .checkmark{display:none}:host([has-children][expanded]:not([selected]))>.node-container ::slotted(*){font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}:host([has-children][selected])>.node-container[data-selection-mode=children],:host([has-children][selected])>.node-container[data-selection-mode=multi-children]{color:var(--calcite-ui-brand)}.chevron{position:relative;-ms-flex-item-align:center;align-self:center;color:var(--calcite-ui-text-3);-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;-ms-flex:0 0 auto;flex:0 0 auto;-webkit-transform:rotate(0deg);transform:rotate(0deg)}.calcite--rtl .chevron{-webkit-transform:rotate(180deg);transform:rotate(180deg)}:host([expanded])>.node-container>.chevron{-webkit-transform:rotate(90deg);transform:rotate(90deg)}:host([selected]) .checkmark,:host([selected]) .bullet-point{color:var(--calcite-ui-brand)}';export{b as calcite_tree,k as calcite_tree_item}
@@ -2,5 +2,5 @@ var __awaiter=this&&this.__awaiter||function(t,a,n,e){function i(t){return t ins
2
2
  /*!
3
3
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
4
4
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
5
- * v1.0.0-beta.83
6
- */System.register(["./p-994d99ff.system.js","./p-ddb96773.system.js","./p-a75ad7cb.system.js","./p-77762ff3.system.js"],(function(t){"use strict";var a,n,e,i,r;return{setters:[function(t){a=t.r;n=t.h;e=t.g},function(t){i=t.f},function(t){r=t.u},function(){}],execute:function(){var o={button:"button"};var s={plus:"plus"};var c="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-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:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;background-color:transparent}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}calcite-button{--tw-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}calcite-button:hover{--tw-shadow:0 12px 32px -2px rgba(0, 0, 0, 0.1), 0 4px 20px 0 rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 12px 32px -2px var(--tw-shadow-color), 0 4px 20px 0 var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}calcite-button:active{--tw-shadow:0 2px 12px -4px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.16);--tw-shadow-colored:0 2px 12px -4px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}";var l=t("calcite_fab",function(){function t(t){a(this,t);this.appearance="outline";this.color="neutral";this.disabled=false;this.icon=s.plus;this.loading=false;this.scale="m";this.textEnabled=false}t.prototype.componentDidRender=function(){r(this)};t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){i(this.buttonEl);return[2]}))}))};t.prototype.render=function(){var t=this;var a=this,e=a.appearance,i=a.color,r=a.disabled,s=a.loading,c=a.scale,l=a.textEnabled,p=a.icon,f=a.label,u=a.text;var w=!l?f||u||null:null;return n("calcite-button",{appearance:e==="solid"?"solid":"outline",class:o.button,color:i,disabled:r,iconStart:p,label:f,loading:s,ref:function(a){t.buttonEl=a},round:true,scale:c,title:w,type:"button",width:"auto"},this.textEnabled?this.text:null)};Object.defineProperty(t.prototype,"el",{get:function(){return e(this)},enumerable:false,configurable:true});return t}());l.style=c}}}));
5
+ * v1.0.0-beta.86
6
+ */System.register(["./p-8d7bcbbe.system.js","./p-4c62aae1.system.js","./p-ba04d4a6.system.js","./p-786ca76b.system.js"],(function(t){"use strict";var a,n,e,i,r;return{setters:[function(t){a=t.r;n=t.h;e=t.g},function(t){i=t.f},function(t){r=t.u},function(){}],execute:function(){var o={button:"button"};var s={plus:"plus"};var c="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-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:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;background-color:transparent}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}calcite-button{--tw-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}calcite-button:hover{--tw-shadow:0 12px 32px -2px rgba(0, 0, 0, 0.1), 0 4px 20px 0 rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 12px 32px -2px var(--tw-shadow-color), 0 4px 20px 0 var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}calcite-button:active{--tw-shadow:0 2px 12px -4px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.16);--tw-shadow-colored:0 2px 12px -4px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}";var l=t("calcite_fab",function(){function t(t){a(this,t);this.appearance="outline";this.color="neutral";this.disabled=false;this.icon=s.plus;this.loading=false;this.scale="m";this.textEnabled=false}t.prototype.componentDidRender=function(){r(this)};t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){i(this.buttonEl);return[2]}))}))};t.prototype.render=function(){var t=this;var a=this,e=a.appearance,i=a.color,r=a.disabled,s=a.loading,c=a.scale,l=a.textEnabled,p=a.icon,u=a.label,w=a.text;var d=!l?u||w||null:null;return n("calcite-button",{appearance:e==="solid"?"solid":"outline",class:o.button,color:i,disabled:r,iconStart:p,label:u,loading:s,ref:function(a){t.buttonEl=a},round:true,scale:c,title:d,type:"button",width:"auto"},this.textEnabled?this.text:null)};Object.defineProperty(t.prototype,"el",{get:function(){return e(this)},enumerable:false,configurable:true});return t}());l.style=c}}}));
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
+ * v1.0.0-beta.86
5
+ */
6
+ import{r as t,c as e,h as i,g as n}from"./p-e2a9bc3c.js";import{a,f as r,b as s}from"./p-bc9c9c9b.js";import{n as o,C as l,p as c,c as h,i as u,a as d,r as m,b as f}from"./p-8f789b45.js";import{c as p}from"./p-2c78140e.js";import{u as b}from"./p-e6ad54a7.js";import{d as g,i as w}from"./p-f70b3399.js";import"./p-8e5b28c2.js";function y(t,e,i){return t(i={path:e,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},i.exports),i.exports}var v={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},k=y((function(t){var e=Array.prototype.concat,i=Array.prototype.slice,n=t.exports=function(t){for(var n,a=[],r=0,s=t.length;r<s;r++){var o=t[r];(n=o)&&"string"!=typeof n&&(n instanceof Array||Array.isArray(n)||n.length>=0&&(n.splice instanceof Function||Object.getOwnPropertyDescriptor(n,n.length-1)&&"String"!==n.constructor.name))?a=e.call(a,i.call(o)):a.push(o)}return a};n.wrap=function(t){return function(){return t(n(arguments))}}})),x=y((function(t){var e=Object.hasOwnProperty,i={};for(var n in v)e.call(v,n)&&(i[v[n]]=n);var a=t.exports={to:{},get:{}};function r(t,e,i){return Math.min(Math.max(e,t),i)}function s(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}a.get=function(t){var e,i;switch(t.substring(0,3).toLowerCase()){case"hsl":e=a.get.hsl(t),i="hsl";break;case"hwb":e=a.get.hwb(t),i="hwb";break;default:e=a.get.rgb(t),i="rgb"}return e?{model:i,value:e}:null},a.get.rgb=function(t){if(!t)return null;var i,n,a,s=[0,0,0,1];if(i=t.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(a=i[2],i=i[1],n=0;n<3;n++){var o=2*n;s[n]=parseInt(i.slice(o,o+2),16)}a&&(s[3]=parseInt(a,16)/255)}else if(i=t.match(/^#([a-f0-9]{3,4})$/i)){for(a=(i=i[1])[3],n=0;n<3;n++)s[n]=parseInt(i[n]+i[n],16);a&&(s[3]=parseInt(a+a,16)/255)}else if(i=t.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(n=0;n<3;n++)s[n]=parseInt(i[n+1],0);i[4]&&(s[3]=i[5]?.01*parseFloat(i[4]):parseFloat(i[4]))}else{if(!(i=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(i=t.match(/^(\w+)$/))?"transparent"===i[1]?[0,0,0,0]:e.call(v,i[1])?((s=v[i[1]])[3]=1,s):null:null;for(n=0;n<3;n++)s[n]=Math.round(2.55*parseFloat(i[n+1]));i[4]&&(s[3]=i[5]?.01*parseFloat(i[4]):parseFloat(i[4]))}for(n=0;n<3;n++)s[n]=r(s[n],0,255);return s[3]=r(s[3],0,1),s},a.get.hsl=function(t){if(!t)return null;var e=t.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(e){var i=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,r(parseFloat(e[2]),0,100),r(parseFloat(e[3]),0,100),r(isNaN(i)?1:i,0,1)]}return null},a.get.hwb=function(t){if(!t)return null;var e=t.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(e){var i=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,r(parseFloat(e[2]),0,100),r(parseFloat(e[3]),0,100),r(isNaN(i)?1:i,0,1)]}return null},a.to.hex=function(){var t=k(arguments);return"#"+s(t[0])+s(t[1])+s(t[2])+(t[3]<1?s(Math.round(255*t[3])):"")},a.to.rgb=function(){var t=k(arguments);return t.length<4||1===t[3]?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"},a.to.rgb.percent=function(){var t=k(arguments),e=Math.round(t[0]/255*100),i=Math.round(t[1]/255*100),n=Math.round(t[2]/255*100);return t.length<4||1===t[3]?"rgb("+e+"%, "+i+"%, "+n+"%)":"rgba("+e+"%, "+i+"%, "+n+"%, "+t[3]+")"},a.to.hsl=function(){var t=k(arguments);return t.length<4||1===t[3]?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"},a.to.hwb=function(){var t=k(arguments),e="";return t.length>=4&&1!==t[3]&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"},a.to.keyword=function(t){return i[t.slice(0,3)]}})),D={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const M={};for(const t of Object.keys(D))M[D[t]]=t;const C={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var S=C;for(const t of Object.keys(C)){if(!("channels"in C[t]))throw new Error("missing channels property: "+t);if(!("labels"in C[t]))throw new Error("missing channel labels property: "+t);if(C[t].labels.length!==C[t].channels)throw new Error("channel and label counts mismatch: "+t);const{channels:e,labels:i}=C[t];delete C[t].channels,delete C[t].labels,Object.defineProperty(C[t],"channels",{value:e}),Object.defineProperty(C[t],"labels",{value:i})}function j(t,e){return function(i){return e(t(i))}}function F(t,e){const i=[e[t].parent,t];let n=S[e[t].parent][t],a=e[t].parent;for(;e[a].parent;)i.unshift(e[a].parent),n=j(S[e[a].parent][a],n),a=e[a].parent;return n.conversion=i,n}C.rgb.hsl=function(t){const e=t[0]/255,i=t[1]/255,n=t[2]/255,a=Math.min(e,i,n),r=Math.max(e,i,n),s=r-a;let o,l;r===a?o=0:e===r?o=(i-n)/s:i===r?o=2+(n-e)/s:n===r&&(o=4+(e-i)/s),o=Math.min(60*o,360),o<0&&(o+=360);const c=(a+r)/2;return l=r===a?0:c<=.5?s/(r+a):s/(2-r-a),[o,100*l,100*c]},C.rgb.hsv=function(t){let e,i,n,a,r;const s=t[0]/255,o=t[1]/255,l=t[2]/255,c=Math.max(s,o,l),h=c-Math.min(s,o,l),u=function(t){return(c-t)/6/h+.5};return 0===h?(a=0,r=0):(r=h/c,e=u(s),i=u(o),n=u(l),s===c?a=n-i:o===c?a=1/3+e-n:l===c&&(a=2/3+i-e),a<0?a+=1:a>1&&(a-=1)),[360*a,100*r,100*c]},C.rgb.hwb=function(t){const e=t[0],i=t[1];let n=t[2];const a=C.rgb.hsl(t)[0],r=1/255*Math.min(e,Math.min(i,n));return n=1-1/255*Math.max(e,Math.max(i,n)),[a,100*r,100*n]},C.rgb.cmyk=function(t){const e=t[0]/255,i=t[1]/255,n=t[2]/255,a=Math.min(1-e,1-i,1-n);return[100*((1-e-a)/(1-a)||0),100*((1-i-a)/(1-a)||0),100*((1-n-a)/(1-a)||0),100*a]},C.rgb.keyword=function(t){const e=M[t];if(e)return e;let i,n=1/0;for(const e of Object.keys(D)){const s=((a=t)[0]-(r=D[e])[0])**2+(a[1]-r[1])**2+(a[2]-r[2])**2;s<n&&(n=s,i=e)}var a,r;return i},C.keyword.rgb=function(t){return D[t]},C.rgb.xyz=function(t){let e=t[0]/255,i=t[1]/255,n=t[2]/255;return e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,i=i>.04045?((i+.055)/1.055)**2.4:i/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,[100*(.4124*e+.3576*i+.1805*n),100*(.2126*e+.7152*i+.0722*n),100*(.0193*e+.1192*i+.9505*n)]},C.rgb.lab=function(t){const e=C.rgb.xyz(t);let i=e[0],n=e[1],a=e[2];return i/=95.047,n/=100,a/=108.883,i=i>.008856?i**(1/3):7.787*i+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,a=a>.008856?a**(1/3):7.787*a+16/116,[116*n-16,500*(i-n),200*(n-a)]},C.hsl.rgb=function(t){const e=t[0]/360,i=t[1]/100,n=t[2]/100;let a,r,s;if(0===i)return s=255*n,[s,s,s];a=n<.5?n*(1+i):n+i-n*i;const o=2*n-a,l=[0,0,0];for(let t=0;t<3;t++)r=e+1/3*-(t-1),r<0&&r++,r>1&&r--,s=6*r<1?o+6*(a-o)*r:2*r<1?a:3*r<2?o+(a-o)*(2/3-r)*6:o,l[t]=255*s;return l},C.hsl.hsv=function(t){const e=t[0];let i=t[1]/100,n=t[2]/100,a=i;const r=Math.max(n,.01);return n*=2,i*=n<=1?n:2-n,a*=r<=1?r:2-r,[e,100*(0===n?2*a/(r+a):2*i/(n+i)),(n+i)/2*100]},C.hsv.rgb=function(t){const e=t[0]/60,i=t[1]/100;let n=t[2]/100;const a=Math.floor(e)%6,r=e-Math.floor(e),s=255*n*(1-i),o=255*n*(1-i*r),l=255*n*(1-i*(1-r));switch(n*=255,a){case 0:return[n,l,s];case 1:return[o,n,s];case 2:return[s,n,l];case 3:return[s,o,n];case 4:return[l,s,n];case 5:return[n,s,o]}},C.hsv.hsl=function(t){const e=t[0],i=t[1]/100,n=t[2]/100,a=Math.max(n,.01);let r,s;s=(2-i)*n;const o=(2-i)*a;return r=i*a,r/=o<=1?o:2-o,r=r||0,s/=2,[e,100*r,100*s]},C.hwb.rgb=function(t){const e=t[0]/360;let i=t[1]/100,n=t[2]/100;const a=i+n;let r;a>1&&(i/=a,n/=a);const s=Math.floor(6*e),o=1-n;r=6*e-s,0!=(1&s)&&(r=1-r);const l=i+r*(o-i);let c,h,u;switch(s){default:case 6:case 0:c=o,h=l,u=i;break;case 1:c=l,h=o,u=i;break;case 2:c=i,h=o,u=l;break;case 3:c=i,h=l,u=o;break;case 4:c=l,h=i,u=o;break;case 5:c=o,h=i,u=l}return[255*c,255*h,255*u]},C.cmyk.rgb=function(t){const e=t[1]/100,i=t[2]/100,n=t[3]/100;return[255*(1-Math.min(1,t[0]/100*(1-n)+n)),255*(1-Math.min(1,e*(1-n)+n)),255*(1-Math.min(1,i*(1-n)+n))]},C.xyz.rgb=function(t){const e=t[0]/100,i=t[1]/100,n=t[2]/100;let a,r,s;return a=3.2406*e+-1.5372*i+-.4986*n,r=-.9689*e+1.8758*i+.0415*n,s=.0557*e+-.204*i+1.057*n,a=a>.0031308?1.055*a**(1/2.4)-.055:12.92*a,r=r>.0031308?1.055*r**(1/2.4)-.055:12.92*r,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,a=Math.min(Math.max(0,a),1),r=Math.min(Math.max(0,r),1),s=Math.min(Math.max(0,s),1),[255*a,255*r,255*s]},C.xyz.lab=function(t){let e=t[0],i=t[1],n=t[2];return e/=95.047,i/=100,n/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,i=i>.008856?i**(1/3):7.787*i+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,[116*i-16,500*(e-i),200*(i-n)]},C.lab.xyz=function(t){let e,i,n;i=(t[0]+16)/116,e=t[1]/500+i,n=i-t[2]/200;const a=i**3,r=e**3,s=n**3;return i=a>.008856?a:(i-16/116)/7.787,e=r>.008856?r:(e-16/116)/7.787,n=s>.008856?s:(n-16/116)/7.787,e*=95.047,i*=100,n*=108.883,[e,i,n]},C.lab.lch=function(t){const e=t[0],i=t[1],n=t[2];let a;return a=360*Math.atan2(n,i)/2/Math.PI,a<0&&(a+=360),[e,Math.sqrt(i*i+n*n),a]},C.lch.lab=function(t){const e=t[1],i=t[2]/360*2*Math.PI;return[t[0],e*Math.cos(i),e*Math.sin(i)]},C.rgb.ansi16=function(t,e=null){const[i,n,a]=t;let r=null===e?C.rgb.hsv(t)[2]:e;if(r=Math.round(r/50),0===r)return 30;let s=30+(Math.round(a/255)<<2|Math.round(n/255)<<1|Math.round(i/255));return 2===r&&(s+=60),s},C.hsv.ansi16=function(t){return C.rgb.ansi16(C.hsv.rgb(t),t[2])},C.rgb.ansi256=function(t){const e=t[0],i=t[1],n=t[2];return e===i&&i===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(i/255*5)+Math.round(n/255*5)},C.ansi16.rgb=function(t){let e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];const i=.5*(1+~~(t>50));return[(1&e)*i*255,(e>>1&1)*i*255,(e>>2&1)*i*255]},C.ansi256.rgb=function(t){if(t>=232){const e=10*(t-232)+8;return[e,e,e]}let e;return t-=16,[Math.floor(t/36)/5*255,Math.floor((e=t%36)/6)/5*255,e%6/5*255]},C.rgb.hex=function(t){const e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},C.hex.rgb=function(t){const e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let i=e[0];3===e[0].length&&(i=i.split("").map((t=>t+t)).join(""));const n=parseInt(i,16);return[n>>16&255,n>>8&255,255&n]},C.rgb.hcg=function(t){const e=t[0]/255,i=t[1]/255,n=t[2]/255,a=Math.max(Math.max(e,i),n),r=Math.min(Math.min(e,i),n),s=a-r;let o,l;return o=s<1?r/(1-s):0,l=s<=0?0:a===e?(i-n)/s%6:a===i?2+(n-e)/s:4+(e-i)/s,l/=6,l%=1,[360*l,100*s,100*o]},C.hsl.hcg=function(t){const e=t[1]/100,i=t[2]/100,n=i<.5?2*e*i:2*e*(1-i);let a=0;return n<1&&(a=(i-.5*n)/(1-n)),[t[0],100*n,100*a]},C.hsv.hcg=function(t){const e=t[2]/100,i=t[1]/100*e;let n=0;return i<1&&(n=(e-i)/(1-i)),[t[0],100*i,100*n]},C.hcg.rgb=function(t){const e=t[1]/100,i=t[2]/100;if(0===e)return[255*i,255*i,255*i];const n=[0,0,0],a=t[0]/360%1*6,r=a%1,s=1-r;let o=0;switch(Math.floor(a)){case 0:n[0]=1,n[1]=r,n[2]=0;break;case 1:n[0]=s,n[1]=1,n[2]=0;break;case 2:n[0]=0,n[1]=1,n[2]=r;break;case 3:n[0]=0,n[1]=s,n[2]=1;break;case 4:n[0]=r,n[1]=0,n[2]=1;break;default:n[0]=1,n[1]=0,n[2]=s}return o=(1-e)*i,[255*(e*n[0]+o),255*(e*n[1]+o),255*(e*n[2]+o)]},C.hcg.hsv=function(t){const e=t[1]/100,i=e+t[2]/100*(1-e);let n=0;return i>0&&(n=e/i),[t[0],100*n,100*i]},C.hcg.hsl=function(t){const e=t[1]/100,i=t[2]/100*(1-e)+.5*e;let n=0;return i>0&&i<.5?n=e/(2*i):i>=.5&&i<1&&(n=e/(2*(1-i))),[t[0],100*n,100*i]},C.hcg.hwb=function(t){const e=t[1]/100,i=e+t[2]/100*(1-e);return[t[0],100*(i-e),100*(1-i)]},C.hwb.hcg=function(t){const e=1-t[2]/100,i=e-t[1]/100;let n=0;return i<1&&(n=(e-i)/(1-i)),[t[0],100*i,100*n]},C.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},C.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},C.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},C.gray.hsl=function(t){return[0,0,t[0]]},C.gray.hsv=C.gray.hsl,C.gray.hwb=function(t){return[0,100,t[0]]},C.gray.cmyk=function(t){return[0,0,0,t[0]]},C.gray.lab=function(t){return[t[0],0,0]},C.gray.hex=function(t){const e=255&Math.round(t[0]/100*255),i=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(i.length)+i},C.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]};const A={};Object.keys(S).forEach((t=>{A[t]={},Object.defineProperty(A[t],"channels",{value:S[t].channels}),Object.defineProperty(A[t],"labels",{value:S[t].labels});const e=function(t){const e=function(t){const e=function(){const t={},e=Object.keys(S);for(let i=e.length,n=0;n<i;n++)t[e[n]]={distance:-1,parent:null};return t}(),i=[t];for(e[t].distance=0;i.length;){const t=i.pop(),n=Object.keys(S[t]);for(let a=n.length,r=0;r<a;r++){const a=n[r],s=e[a];-1===s.distance&&(s.distance=e[t].distance+1,s.parent=t,i.unshift(a))}}return e}(t),i={},n=Object.keys(e);for(let t=n.length,a=0;a<t;a++){const t=n[a];null!==e[t].parent&&(i[t]=F(t,e))}return i}(t);Object.keys(e).forEach((i=>{const n=e[i];A[t][i]=function(t){const e=function(...e){const i=e[0];if(null==i)return i;i.length>1&&(e=i);const n=t(e);if("object"==typeof n)for(let t=n.length,e=0;e<t;e++)n[e]=Math.round(n[e]);return n};return"conversion"in t&&(e.conversion=t.conversion),e}(n),A[t][i].raw=function(t){const e=function(...e){const i=e[0];return null==i?i:(i.length>1&&(e=i),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}(n)}))}));var _=A;const O=["keyword","gray","hex"],q={};for(const t of Object.keys(_))q[[..._[t].labels].sort().join("")]=t;const $={};function z(t,e){if(!(this instanceof z))return new z(t,e);if(e&&e in O&&(e=null),e&&!(e in _))throw new Error("Unknown model: "+e);let i,n;if(null==t)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof z)this.model=t.model,this.color=[...t.color],this.valpha=t.valpha;else if("string"==typeof t){const e=x.get(t);if(null===e)throw new Error("Unable to parse color from string: "+t);this.model=e.model,n=_[this.model].channels,this.color=e.value.slice(0,n),this.valpha="number"==typeof e.value[n]?e.value[n]:1}else if(t.length>0){this.model=e||"rgb",n=_[this.model].channels;const i=Array.prototype.slice.call(t,0,n);this.color=H(i,n),this.valpha="number"==typeof t[n]?t[n]:1}else if("number"==typeof t)this.model="rgb",this.color=[t>>16&255,t>>8&255,255&t],this.valpha=1;else{this.valpha=1;const e=Object.keys(t);"alpha"in t&&(e.splice(e.indexOf("alpha"),1),this.valpha="number"==typeof t.alpha?t.alpha:0);const n=e.sort().join("");if(!(n in q))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=q[n];const{labels:a}=_[this.model],r=[];for(i=0;i<a.length;i++)r.push(t[a[i]]);this.color=H(r)}if($[this.model])for(n=_[this.model].channels,i=0;i<n;i++){const t=$[this.model][i];t&&(this.color[i]=t(this.color[i]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}z.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(t){let e=this.model in x.to?this:this.rgb();e=e.round("number"==typeof t?t:1);const i=1===e.valpha?e.color:[...e.color,this.valpha];return x.to[e.model](i)},percentString(t){const e=this.rgb().round("number"==typeof t?t:1),i=1===e.valpha?e.color:[...e.color,this.valpha];return x.to.rgb.percent(i)},array(){return 1===this.valpha?[...this.color]:[...this.color,this.valpha]},object(){const t={},{channels:e}=_[this.model],{labels:i}=_[this.model];for(let n=0;n<e;n++)t[i[n]]=this.color[n];return 1!==this.valpha&&(t.alpha=this.valpha),t},unitArray(){const t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,1!==this.valpha&&t.push(this.valpha),t},unitObject(){const t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,1!==this.valpha&&(t.alpha=this.valpha),t},round(t){return t=Math.max(t||0,0),new z([...this.color.map(E(t)),this.valpha],this.model)},alpha(t){return void 0!==t?new z([...this.color,Math.max(0,Math.min(1,t))],this.model):this.valpha},red:I("rgb",0,N(255)),green:I("rgb",1,N(255)),blue:I("rgb",2,N(255)),hue:I(["hsl","hsv","hsl","hwb","hcg"],0,(t=>(t%360+360)%360)),saturationl:I("hsl",1,N(100)),lightness:I("hsl",2,N(100)),saturationv:I("hsv",1,N(100)),value:I("hsv",2,N(100)),chroma:I("hcg",1,N(100)),gray:I("hcg",2,N(100)),white:I("hwb",1,N(100)),wblack:I("hwb",2,N(100)),cyan:I("cmyk",0,N(100)),magenta:I("cmyk",1,N(100)),yellow:I("cmyk",2,N(100)),black:I("cmyk",3,N(100)),x:I("xyz",0,N(95.047)),y:I("xyz",1,N(100)),z:I("xyz",2,N(108.833)),l:I("lab",0,N(100)),a:I("lab",1),b:I("lab",2),keyword(t){return void 0!==t?new z(t):_[this.model].keyword(this.color)},hex(t){return void 0!==t?new z(t):x.to.hex(this.rgb().round().color)},hexa(t){if(void 0!==t)return new z(t);const e=this.rgb().round().color;let i=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===i.length&&(i="0"+i),x.to.hex(e)+i},rgbNumber(){const t=this.rgb().color;return(255&t[0])<<16|(255&t[1])<<8|255&t[2]},luminosity(){const t=this.rgb().color,e=[];for(const[i,n]of t.entries()){const t=n/255;e[i]=t<=.04045?t/12.92:((t+.055)/1.055)**2.4}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast(t){const e=this.luminosity(),i=t.luminosity();return e>i?(e+.05)/(i+.05):(i+.05)/(e+.05)},level(t){const e=this.contrast(t);return e>=7?"AAA":e>=4.5?"AA":""},isDark(){const t=this.rgb().color;return(2126*t[0]+7152*t[1]+722*t[2])/1e4<128},isLight(){return!this.isDark()},negate(){const t=this.rgb();for(let e=0;e<3;e++)t.color[e]=255-t.color[e];return t},lighten(t){const e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken(t){const e=this.hsl();return e.color[2]-=e.color[2]*t,e},saturate(t){const e=this.hsl();return e.color[1]+=e.color[1]*t,e},desaturate(t){const e=this.hsl();return e.color[1]-=e.color[1]*t,e},whiten(t){const e=this.hwb();return e.color[1]+=e.color[1]*t,e},blacken(t){const e=this.hwb();return e.color[2]+=e.color[2]*t,e},grayscale(){const t=this.rgb().color,e=.3*t[0]+.59*t[1]+.11*t[2];return z.rgb(e,e,e)},fade(t){return this.alpha(this.valpha-this.valpha*t)},opaquer(t){return this.alpha(this.valpha+this.valpha*t)},rotate(t){const e=this.hsl();let i=e.color[0];return i=(i+t)%360,i=i<0?360+i:i,e.color[0]=i,e},mix(t,e){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);const i=t.rgb(),n=this.rgb(),a=void 0===e?.5:e,r=2*a-1,s=i.alpha()-n.alpha(),o=((r*s==-1?r:(r+s)/(1+r*s))+1)/2,l=1-o;return z.rgb(o*i.red()+l*n.red(),o*i.green()+l*n.green(),o*i.blue()+l*n.blue(),i.alpha()*a+n.alpha()*(1-a))}};for(const t of Object.keys(_)){if(O.includes(t))continue;const{channels:e}=_[t];z.prototype[t]=function(...e){return this.model===t?new z(this):new z(e.length>0?e:[...(i=_[this.model][t].raw(this.color),Array.isArray(i)?i:[i]),this.valpha],t);var i},z[t]=function(...i){let n=i[0];return"number"==typeof n&&(n=H(i,e)),new z(n,t)}}function E(t){return function(e){return function(t,e){return Number(t.toFixed(e))}(e,t)}}function I(t,e,i){t=Array.isArray(t)?t:[t];for(const n of t)($[n]||($[n]=[]))[e]=i;return t=t[0],function(n){let a;return void 0!==n?(i&&(n=i(n)),a=this[t](),a.color[e]=n,a):(a=this[t]().color[e],i&&(a=i(a)),a)}}function N(t){return function(e){return Math.max(0,Math.min(t,e))}}function H(t,e){for(let i=0;i<e;i++)"number"!=typeof t[i]&&(t[i]=0);return t}var K=z;const R=K("#007AC2"),U={r:255,g:255,b:255},V={h:360,s:100,v:100},L={s:{slider:{height:10,width:160},colorField:{height:80,width:160},thumb:{radius:8}},m:{slider:{height:14,width:272},colorField:{height:150,width:272},thumb:{radius:10}},l:{slider:{height:16,width:464},colorField:{height:200,width:464},thumb:{radius:12}}},P=o(R.hex()),B=class{constructor(n){var r,s,c,h;t(this,n),this.calciteColorPickerChange=e(this,"calciteColorPickerChange",7),this.calciteColorPickerInput=e(this,"calciteColorPickerInput",7),this.allowEmpty=!1,this.appearance="default",this.color=R,this.disabled=!1,this.format="auto",this.hideHex=!1,this.hideChannels=!1,this.hideSaved=!1,this.intlB="B",this.intlBlue="Blue",this.intlDeleteColor="Delete color",this.intlG="G",this.intlGreen="Green",this.intlH="H",this.intlHsv="HSV",this.intlHex="Hex",this.intlHue="Hue",this.intlNoColor="No color",this.intlR="R",this.intlRed="Red",this.intlRgb="RGB",this.intlS="S",this.intlSaturation="Saturation",this.intlSaveColor="Save color",this.intlSaved="Saved",this.intlV="V",this.intlValue="Value",this.scale="m",this.value=P,this.colorFieldAndSliderHovered=!1,this.hueThumbState="idle",this.internalColorUpdateContext=null,this.mode=l.HEX,this.shiftKeyChannelAdjustment=0,this.sliderThumbState="idle",this.colorFieldAndSliderInteractive=!1,this.channelMode="rgb",this.channels=this.toChannels(R),this.dimensions=L.m,this.savedColors=[],this.handleTabActivate=t=>{this.channelMode=t.currentTarget.getAttribute("data-color-mode"),this.updateChannelsFromColor(this.color)},this.handleColorFieldScopeKeyDown=t=>{const e=t.key,i={ArrowUp:{x:0,y:-10},ArrowRight:{x:10,y:0},ArrowDown:{x:0,y:10},ArrowLeft:{x:-10,y:0}};i[e]&&(t.preventDefault(),this.scopeOrientation="ArrowDown"===e||"ArrowUp"===e?"vertical":"horizontal",this.captureColorFieldColor(this.colorFieldScopeLeft+i[e].x||0,this.colorFieldScopeTop+i[e].y||0,!1))},this.handleHueScopeKeyDown=t=>{const e=t.shiftKey?10:1,i=t.key,n={ArrowUp:1,ArrowRight:1,ArrowDown:-1,ArrowLeft:-1};if(n[i]){t.preventDefault();const a=n[i]*e,r=this.baseColorFieldColor.hue(),s=this.baseColorFieldColor.hue(r+a);this.internalColorSet(s,!1)}},this.handleHexInputChange=t=>{t.stopPropagation();const{allowEmpty:e,color:i}=this,n=t.target.value;!e||n?n!==(i&&o(i.hex()))&&this.internalColorSet(K(n)):this.internalColorSet(null)},this.handleSavedColorSelect=t=>{this.internalColorSet(K(t.currentTarget.color))},this.handleChannelInput=t=>{const e=t.currentTarget,i=t.detail.nativeEvent.target,n=Number(e.getAttribute("data-channel-index")),a="rgb"===this.channelMode?U[Object.keys(U)[n]]:V[Object.keys(V)[n]];let r;if(this.allowEmpty&&!e.value)r="";else{const t=Number(e.value)+this.shiftKeyChannelAdjustment;r=p(t,0,a).toString()}e.value=r,i.value=r},this.handleChannelChange=t=>{const e=t.currentTarget,i=Number(e.getAttribute("data-channel-index")),n=[...this.channels];if(this.allowEmpty&&!e.value)return this.channels=[null,null,null],void this.internalColorSet(null);n[i]=Number(e.value),this.updateColorFromChannels(n)},this.handleSavedColorKeyDown=t=>{" "!==t.key&&"Enter"!==t.key||(t.preventDefault(),t.stopPropagation(),this.handleSavedColorSelect(t))},this.handleColorFieldAndSliderPointerLeave=()=>{this.colorFieldAndSliderInteractive=!1,this.colorFieldAndSliderHovered=!1,"drag"!==this.sliderThumbState&&"drag"!==this.hueThumbState&&(this.hueThumbState="idle",this.sliderThumbState="idle",this.drawColorFieldAndSlider())},this.handleColorFieldAndSliderPointerDown=t=>{var e,i;const{offsetX:n,offsetY:a}=t,r=this.getCanvasRegion(a);"color-field"===r?(this.hueThumbState="drag",this.captureColorFieldColor(n,a),null===(e=this.colorFieldScopeNode)||void 0===e||e.focus()):"slider"===r&&(this.sliderThumbState="drag",this.captureHueSliderColor(n),null===(i=this.hueScopeNode)||void 0===i||i.focus()),t.preventDefault(),document.addEventListener("pointermove",this.globalPointerMoveHandler),document.addEventListener("pointerup",this.globalPointerUpHandler,{once:!0}),this.activeColorFieldAndSliderRect=this.fieldAndSliderRenderingContext.canvas.getBoundingClientRect()},this.globalPointerUpHandler=()=>{const t="drag"===this.sliderThumbState||"drag"===this.hueThumbState;this.hueThumbState="idle",this.sliderThumbState="idle",this.activeColorFieldAndSliderRect=null,this.drawColorFieldAndSlider(),t&&this.calciteColorPickerChange.emit()},this.globalPointerMoveHandler=t=>{const{el:e,dimensions:i}=this,n="drag"===this.hueThumbState;if(!e.isConnected||"drag"!==this.sliderThumbState&&!n)return;let a,r;const s=this.activeColorFieldAndSliderRect,{clientX:o,clientY:l}=t;if(this.colorFieldAndSliderHovered)a=o-s.x,r=l-s.y;else{const t=i.colorField.width,e=i.colorField.height,n=i.slider.height;a=o<s.x+t&&o>s.x?o-s.x:o<s.x?0:t-1,r=l<s.y+e+n&&l>s.y?l-s.y:l<s.y?0:e+n}n?this.captureColorFieldColor(a,r,!1):this.captureHueSliderColor(a)},this.handleColorFieldAndSliderPointerEnterOrMove=({offsetX:t,offsetY:e})=>{const{dimensions:{colorField:i,slider:n,thumb:a}}=this;this.colorFieldAndSliderInteractive=e<=i.height+n.height,this.colorFieldAndSliderHovered=!0;const r=this.getCanvasRegion(e);if("color-field"===r){const n=this.hueThumbState,r=this.baseColorFieldColor.hsv(),s=Math.round(r.saturationv()/(V.s/i.width)),o=Math.round(i.height-r.value()/(V.v/i.height)),l=this.containsPoint(t,e,s,o,a.radius);let c=!1;"idle"===n&&l?(this.hueThumbState="hover",c=!0):"hover"!==n||l||(this.hueThumbState="idle",c=!0),"drag"!==this.hueThumbState&&c&&this.drawColorFieldAndSlider()}else if("slider"===r){const r=this.baseColorFieldColor.hsv().saturationv(100).value(100),s=this.sliderThumbState,o=Math.round(r.hue()/(360/n.width)),l=Math.round((n.height+this.getSliderCapSpacing())/2)+i.height,c=this.containsPoint(t,e,o,l,a.radius);let h=!1;"idle"===s&&c?(this.sliderThumbState="hover",h=!0):"hover"!==s||c||(this.sliderThumbState="idle",h=!0),"drag"!==this.sliderThumbState&&h&&this.drawColorFieldAndSlider()}},this.storeColorFieldScope=t=>{this.colorFieldScopeNode=t},this.storeHueScope=t=>{this.hueScopeNode=t},this.renderChannelsTabTitle=t=>{const{channelMode:e,intlRgb:n,intlHsv:a}=this;return i("calcite-tab-title",{active:t===e,class:"color-mode","data-color-mode":t,key:t,onCalciteTabsActivate:this.handleTabActivate},"rgb"===t?n:a)},this.renderChannelsTab=t=>{const{channelMode:e,channels:n,intlB:r,intlBlue:s,intlG:o,intlGreen:l,intlH:c,intlHue:h,intlR:u,intlRed:d,intlS:m,intlSaturation:f,intlV:p,intlValue:b}=this,g=t===e,w="rgb"===t,y=w?[u,o,r]:[c,m,p],v=w?[d,l,s]:[h,f,b],k=a(this.el);return i("calcite-tab",{active:g,class:"control",key:t},i("div",{class:"channels",dir:"ltr"},n.map(((t,e)=>this.renderChannel(t,e,y[e],v[e],k)))))},this.renderChannel=(t,e,n,a,r)=>i("calcite-input",{class:"channel","data-channel-index":e,dir:r,label:a,numberButtonType:"none",numberingSystem:this.numberingSystem,onCalciteInputChange:this.handleChannelChange,onCalciteInputInput:this.handleChannelInput,onKeyDown:this.handleKeyDown,prefixText:n,scale:"l"===this.scale?"m":"s",type:"number",value:null==t?void 0:t.toString()}),this.deleteColor=()=>{const t=this.color.hex();if(!(this.savedColors.indexOf(t)>-1))return;const e=this.savedColors.filter((e=>e!==t));this.savedColors=e,this.storageId&&localStorage.setItem(`calcite-color-${this.storageId}`,JSON.stringify(e))},this.saveColor=()=>{const t=this.color.hex();if(this.savedColors.indexOf(t)>-1)return;const e=[...this.savedColors,t];this.savedColors=e,this.storageId&&localStorage.setItem(`calcite-color-${this.storageId}`,JSON.stringify(e))},this.drawColorFieldAndSlider=(r=()=>{this.fieldAndSliderRenderingContext&&(this.drawColorField(),this.drawHueSlider())},c=!0,h=!0,w(s)&&(c="leading"in s?!!s.leading:c,h="trailing"in s?!!s.trailing:h),g(r,16,{leading:c,maxWait:16,trailing:h})),this.captureColorFieldColor=(t,e,i=!0)=>{const{dimensions:{colorField:{height:n,width:a}}}=this,r=Math.round(V.s/a*t),s=Math.round(V.v/n*(n-e));this.internalColorSet(this.baseColorFieldColor.hsv().saturationv(r).value(s),i)},this.initColorFieldAndSlider=t=>{this.fieldAndSliderRenderingContext=t.getContext("2d"),this.updateCanvasSize(t)}}handleColorChange(t,e){this.drawColorFieldAndSlider(),this.updateChannelsFromColor(t),this.previousColor=e}handleFormatChange(t){this.setMode(t),this.internalColorSet(this.color,!1,"internal")}handleScaleChange(t="m"){var e;this.updateDimensions(t),this.updateCanvasSize(null===(e=this.fieldAndSliderRenderingContext)||void 0===e?void 0:e.canvas)}handleValueChange(t,e){const{allowEmpty:i,format:n}=this;let a=!1;if(!i||t){const i=c(t);if(!i||"auto"!==n&&i!==n)return this.showIncompatibleColorWarning(t,n),void(this.value=e);a=this.mode!==i,this.setMode(i)}const r="drag"===this.sliderThumbState||"drag"===this.hueThumbState;if("initial"===this.internalColorUpdateContext)return;if("user-interaction"===this.internalColorUpdateContext)return this.calciteColorPickerInput.emit(),void(r||this.calciteColorPickerChange.emit());const s=i&&!t?null:K(t),o=!h(s,this.color);(a||o)&&this.internalColorSet(s,!0,"internal")}get baseColorFieldColor(){return this.color||this.previousColor||R}handleChannelKeyUpOrDown(t){this.shiftKeyChannelAdjustment=0;const e=t.key;if("ArrowUp"!==e&&"ArrowDown"!==e||!t.composedPath().some((t=>{var e;return null===(e=t.classList)||void 0===e?void 0:e.contains("channel")})))return;const{shiftKey:i}=t;if(t.preventDefault(),!this.color)return this.internalColorSet(this.previousColor),void t.stopPropagation();this.shiftKeyChannelAdjustment="ArrowUp"===e&&i?9:"ArrowDown"===e&&i?-9:0}async setFocus(){return r(this.colorFieldScopeNode)}componentWillLoad(){const{allowEmpty:t,color:e,format:i,value:n}=this,a=t&&!n,r=c(n),s=a||"auto"===i&&r||i===r,o=a?null:s?K(n):e;s||this.showIncompatibleColorWarning(n,i),this.setMode(i),this.internalColorSet(o,!1,"initial"),this.updateDimensions(this.scale);const l=`calcite-color-${this.storageId}`;this.storageId&&localStorage.getItem(l)&&(this.savedColors=JSON.parse(localStorage.getItem(l)))}disconnectedCallback(){document.removeEventListener("pointermove",this.globalPointerMoveHandler),document.removeEventListener("pointerup",this.globalPointerUpHandler)}componentDidRender(){b(this)}render(){const{allowEmpty:t,color:e,intlDeleteColor:n,hideHex:a,hideChannels:r,hideSaved:s,intlHex:o,intlSaved:l,intlSaveColor:c,savedColors:h,scale:u}=this,d=e?e.hex():null,m="l"===u?"m":"s",{colorFieldAndSliderInteractive:f,colorFieldScopeTop:p,colorFieldScopeLeft:b,hueScopeLeft:g,hueScopeTop:w,scopeOrientation:y,dimensions:{colorField:{height:v,width:k},slider:{height:x}}}=this,D=null!=w?w:x/2+v,M=null!=g?g:k*R.hue()/V.h,C=null===e,S="vertical"===y;return i("div",{class:"container"},i("div",{class:"color-field-and-slider-wrap"},i("canvas",{class:{"color-field-and-slider":!0,"color-field-and-slider--interactive":f},onPointerDown:this.handleColorFieldAndSliderPointerDown,onPointerEnter:this.handleColorFieldAndSliderPointerEnterOrMove,onPointerLeave:this.handleColorFieldAndSliderPointerLeave,onPointerMove:this.handleColorFieldAndSliderPointerEnterOrMove,ref:this.initColorFieldAndSlider}),i("div",{"aria-label":S?this.intlValue:this.intlSaturation,"aria-valuemax":S?V.v:V.s,"aria-valuemin":"0","aria-valuenow":(S?null==e?void 0:e.saturationv():null==e?void 0:e.value())||"0",class:{scope:!0,"scope--color-field":!0},onKeyDown:this.handleColorFieldScopeKeyDown,ref:this.storeColorFieldScope,role:"slider",style:{top:`${p||0}px`,left:`${b||0}px`},tabindex:"0"}),i("div",{"aria-label":this.intlHue,"aria-valuemax":V.h,"aria-valuemin":"0","aria-valuenow":(null==e?void 0:e.round().hue())||R.round().hue(),class:{scope:!0,"scope--hue":!0},onKeyDown:this.handleHueScopeKeyDown,ref:this.storeHueScope,role:"slider",style:{top:`${D}px`,left:`${M}px`},tabindex:"0"})),a&&r?null:i("div",{class:{"control-section":!0,section:!0}},a?null:i("div",{class:"color-hex-options"},i("span",{class:{header:!0,"header--hex":!0}},o),i("calcite-color-picker-hex-input",{allowEmpty:t,class:"control",numberingSystem:this.numberingSystem,onCalciteColorPickerHexInputChange:this.handleHexInputChange,scale:m,value:d})),r?null:i("calcite-tabs",{class:{"color-mode-container":!0,"section--split":!0},scale:m},i("calcite-tab-nav",{slot:"tab-nav"},this.renderChannelsTabTitle("rgb"),this.renderChannelsTabTitle("hsv")),this.renderChannelsTab("rgb"),this.renderChannelsTab("hsv"))),s?null:i("div",{class:{"saved-colors-section":!0,section:!0}},i("div",{class:"header"},i("label",null,l),i("div",{class:"saved-colors-buttons"},i("calcite-button",{appearance:"transparent",class:"delete-color",color:"neutral",disabled:C,iconStart:"minus",label:n,onClick:this.deleteColor,scale:m,type:"button"}),i("calcite-button",{appearance:"transparent",class:"save-color",color:"neutral",disabled:C,iconStart:"plus",label:c,onClick:this.saveColor,scale:m,type:"button"}))),h.length>0?i("div",{class:"saved-colors"},[...h.map((t=>i("calcite-color-picker-swatch",{active:d===t,class:"saved-color",color:t,key:t,onClick:this.handleSavedColorSelect,onKeyDown:this.handleSavedColorKeyDown,scale:u,tabIndex:0})))]):null))}handleKeyDown(t){"Enter"===t.key&&t.preventDefault()}showIncompatibleColorWarning(t,e){console.warn(`ignoring color value (${t}) as it is not compatible with the current format (${e})`)}setMode(t){this.mode="auto"===t?this.mode:t}captureHueSliderColor(t){const{dimensions:{slider:{width:e}}}=this;this.internalColorSet(this.baseColorFieldColor.hue(360/e*t),!1)}getCanvasRegion(t){const{dimensions:{colorField:{height:e},slider:{height:i}}}=this;return t<=e?"color-field":t<=e+i?"slider":"none"}internalColorSet(t,e=!0,i="user-interaction"){e&&h(t,this.color)||(this.internalColorUpdateContext=i,this.color=t,this.value=this.toValue(t),this.internalColorUpdateContext=null)}toValue(t,e=this.mode){if(!t)return null;if(e.includes("hex"))return o(t.round().hex());if(e.includes("-css"))return t[e.replace("-css","").replace("a","")]().round().string();const i=t[e]().round().object();return e.endsWith("a")&&(i.a=i.alpha,delete i.alpha),i}getSliderCapSpacing(){const{dimensions:{slider:{height:t},thumb:{radius:e}}}=this;return 2*e-t}updateDimensions(t="m"){this.dimensions=L[t]}drawColorField(){const t=this.fieldAndSliderRenderingContext,{dimensions:{colorField:{height:e,width:i}}}=this;t.fillStyle=this.baseColorFieldColor.hsv().saturationv(100).value(100).string(),t.fillRect(0,0,i,e);const n=t.createLinearGradient(0,0,i,0);n.addColorStop(0,"rgba(255,255,255,1)"),n.addColorStop(1,"rgba(255,255,255,0)"),t.fillStyle=n,t.fillRect(0,0,i,e);const a=t.createLinearGradient(0,0,0,e);a.addColorStop(0,"rgba(0,0,0,0)"),a.addColorStop(1,"rgba(0,0,0,1)"),t.fillStyle=a,t.fillRect(0,0,i,e),this.drawActiveColorFieldColor()}setCanvasContextSize(t,{height:e,width:i}){const n=window.devicePixelRatio||1;t.width=i*n,t.height=e*n,t.style.height=`${e}px`,t.style.width=`${i}px`,t.getContext("2d").scale(n,n)}updateCanvasSize(t){t&&(this.setCanvasContextSize(t,{width:this.dimensions.colorField.width,height:this.dimensions.colorField.height+this.dimensions.slider.height+2*this.getSliderCapSpacing()}),this.drawColorFieldAndSlider())}containsPoint(t,e,i,n,a){return Math.pow(t-i,2)+Math.pow(e-n,2)<=Math.pow(a,2)}drawActiveColorFieldColor(){const{color:t}=this;if(!t)return;const e=t.hsv(),{dimensions:{colorField:{height:i,width:n},thumb:{radius:a}}}=this,r=e.saturationv()/(V.s/n),s=i-e.value()/(V.v/i);requestAnimationFrame((()=>{this.colorFieldScopeLeft=r,this.colorFieldScopeTop=s})),this.drawThumb(this.fieldAndSliderRenderingContext,a,r,s,e,this.hueThumbState)}drawThumb(t,e,i,n,a,r){const s=2*Math.PI;t.beginPath(),t.arc(i,n,e,0,s),t.shadowBlur="hover"===r?32:16,t.shadowColor=`rgba(0, 0, 0, ${"drag"===r?.32:.16})`,t.fillStyle="#fff",t.fill(),t.beginPath(),t.arc(i,n,e-3,0,s),t.shadowBlur=0,t.shadowColor="transparent",t.fillStyle=a.rgb().string(),t.fill()}drawActiveHueSliderColor(){const{color:t}=this;if(!t)return;const e=t.hsv().saturationv(100).value(100),{dimensions:{colorField:{height:i},slider:{height:n,width:a},thumb:{radius:r}}}=this,s=e.hue()/(360/a),o=n/2+i;requestAnimationFrame((()=>{this.hueScopeLeft=s,this.hueScopeTop=o})),this.drawThumb(this.fieldAndSliderRenderingContext,r,s,o,e,this.sliderThumbState)}drawHueSlider(){const t=this.fieldAndSliderRenderingContext,{dimensions:{colorField:{height:e},slider:{height:i,width:n}}}=this,a=t.createLinearGradient(0,0,n,0),r=["red","yellow","lime","cyan","blue","magenta","red"],s=1/(r.length-1);let o=0;r.forEach((t=>{a.addColorStop(o,K(t).string()),o+=s})),t.fillStyle=a,t.clearRect(0,e,n,i+2*this.getSliderCapSpacing()),t.fillRect(0,e,n,i),this.drawActiveHueSliderColor()}updateColorFromChannels(t){this.internalColorSet(K(t,this.channelMode))}updateChannelsFromColor(t){this.channels=t?this.toChannels(t):[null,null,null]}toChannels(t){const{channelMode:e}=this;return t[e]().array().map((t=>Math.floor(t)))}get el(){return n(this)}static get watchers(){return{color:["handleColorChange"],format:["handleFormatChange"],scale:["handleScaleChange"],value:["handleValueChange"]}}};B.style="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-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:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:inline-block;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([scale=s]) .container{width:160px}:host([scale=s]) .saved-colors{grid-template-columns:repeat(auto-fill, minmax(20px, 1fr))}:host([scale=s]) .channels{-ms-flex-direction:column;flex-direction:column}:host([scale=s]) .channel{width:100%;margin-bottom:4px}:host([scale=s]) .channel:last-child{margin-bottom:0}:host([scale=m]) .container{width:272px}:host([scale=l]) .header{padding-bottom:0px}:host([scale=l]){font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]) .container{width:464px}:host([scale=l]) .color-field-and-slider{margin-bottom:-20px}:host([scale=l]) .section{padding:0 16px 16px}:host([scale=l]) .section:first-of-type{padding-top:16px}:host([scale=l]) .saved-colors{grid-template-columns:repeat(auto-fill, minmax(28px, 1fr));grid-gap:12px;padding-top:16px}:host([scale=l]) .control-section{-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:baseline;align-items:baseline}:host([scale=l]) .control-section>:nth-child(2){-webkit-margin-start:12px;margin-inline-start:12px}:host([scale=l]) .color-hex-options{display:-ms-flexbox;display:flex;-ms-flex-negative:1;flex-shrink:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:distribute;justify-content:space-around;min-height:98px;width:160px}:host([scale=l]) .color-mode-container{-ms-flex-negative:3;flex-shrink:3}:host([appearance=minimal]) .container{border:none}.container{background-color:var(--calcite-ui-foreground-1);display:inline-block;border:1px solid var(--calcite-ui-border-1)}.color-field-and-slider-wrap{position:relative}.scope{pointer-events:none;position:absolute;font-size:var(--calcite-font-size--1);outline-color:transparent;outline-offset:14px}.scope:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:16px}.color-field-and-slider{margin-bottom:-16px;-ms-touch-action:none;touch-action:none}.color-field-and-slider--interactive{cursor:pointer}.control-section{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap}.section{padding:0 12px 12px}.section:first-of-type{padding-top:12px}.color-hex-options,.section--split{-ms-flex-positive:1;flex-grow:1}.header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;padding-bottom:0.25rem;color:var(--calcite-ui-text-1)}.header--hex,.color-mode-container{padding-top:12px}.channels{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.channel{width:31%}.saved-colors{padding-top:12px;display:grid;grid-template-columns:repeat(auto-fill, minmax(24px, 1fr));grid-gap:8px;width:100%}.saved-colors-buttons{display:-ms-flexbox;display:flex}.saved-color{outline-offset:0;outline-color:transparent;cursor:pointer}.saved-color:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.saved-color:hover{-webkit-transition:outline-color var(--calcite-internal-animation-timing-fast) ease-in-out;transition:outline-color var(--calcite-internal-animation-timing-fast) ease-in-out;outline:2px solid var(--calcite-ui-border-2);outline-offset:2px}";const T=K(),G=class{constructor(i){t(this,i),this.calciteColorPickerHexInputChange=e(this,"calciteColorPickerHexInputChange",7),this.allowEmpty=!1,this.intlHex="Hex",this.intlNoColor="No color",this.scale="m",this.value=o(T.hex()),this.onCalciteInternalInputBlur=()=>{const t=this.inputNode,e=t.value,i=`#${e}`;this.allowEmpty&&!e||u(i)&&d(i)||(t.value=this.allowEmpty&&!this.internalColor?"":this.formatForInternalInput(m(this.internalColor.object())))},this.onInputChange=()=>{this.internalSetValue(this.inputNode.value,this.value)},this.internalColor=T,this.previousNonNullValue=this.value,this.storeInputRef=t=>{this.inputNode=t}}connectedCallback(){const{allowEmpty:t,value:e}=this;if(e){const t=o(e);u(t)&&this.internalSetValue(t,t,!1)}else t&&this.internalSetValue(null,null,!1)}handleValueChange(t,e){this.internalSetValue(t,e,!1)}onInputKeyDown(t){const{altKey:e,ctrlKey:i,metaKey:n,shiftKey:a}=t,{internalColor:r,value:s}=this,l=t.key;if("Tab"===l||"Enter"===l)return void this.onInputChange();const c=this.value;if("ArrowDown"===l||"ArrowUp"===l)return s?(this.internalSetValue(o(this.nudgeRGBChannels(r,(a?10:1)*("ArrowUp"===l?1:-1)).hex()),c),void t.preventDefault()):(this.internalSetValue(this.previousNonNullValue,c),void t.preventDefault());const h=e||i||n,u=1===l.length,d=f.test(l);!u||h||d||t.preventDefault()}render(){const{intlHex:t,value:e}=this,n=this.formatForInternalInput(e);return i("div",{class:"container"},i("calcite-input",{class:"input",label:t,maxLength:6,numberingSystem:this.numberingSystem,onCalciteInputChange:this.onInputChange,onCalciteInternalInputBlur:this.onCalciteInternalInputBlur,onKeyDown:this.handleKeyDown,prefixText:"#",ref:this.storeInputRef,scale:this.scale,value:n}),n?i("calcite-color-picker-swatch",{active:!0,class:"preview",color:`#${n}`,scale:this.scale}):null)}async setFocus(){r(this.inputNode)}internalSetValue(t,e,i=!0){if(t){const e=o(t);if(u(e)){const{internalColor:t}=this,n=!t||e!==o(t.hex());return this.internalColor=K(e),this.previousNonNullValue=e,this.value=e,void(n&&i&&this.calciteColorPickerHexInputChange.emit())}}else if(this.allowEmpty)return this.internalColor=null,this.value=null,void(i&&this.calciteColorPickerHexInputChange.emit());this.value=e}formatForInternalInput(t){return t?t.replace("#",""):""}nudgeRGBChannels(t,e){return K.rgb(t.array().map((t=>t+e)))}handleKeyDown(t){"Enter"===t.key&&t.preventDefault()}get el(){return n(this)}static get watchers(){return{value:["handleValueChange"]}}};G.style="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-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:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:block}.container{display:inline-grid;width:100%;-ms-flex-align:center;align-items:center;grid-template-columns:1fr auto}.preview{grid-column:2/3;pointer-events:none;margin-top:0px;margin-bottom:0px;margin-left:0.25rem;margin-right:0.25rem;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;z-index:1}.preview,.input{grid-row:1}.input{grid-column:1/3;width:100%;text-transform:uppercase}";const J=class{constructor(e){t(this,e),this.active=!1,this.scale="m"}handleColorChange(t){this.internalColor=K(t)}componentWillLoad(){this.handleColorChange(this.color)}render(){const{active:t,el:e,internalColor:n}=this,a=t?"100%":"0",r=n.hex(),o="light"===s(e)?"rgba(0, 0, 0, 0.3)":"rgba(255, 255, 255, 0.15)";return i("svg",{class:"swatch",xmlns:"http://www.w3.org/2000/svg"},i("title",null,r),i("rect",{fill:r,height:"100%",id:"swatch",rx:a,stroke:o,"stroke-width":"2",style:{"clip-path":`inset(0 round ${a})`},width:"100%"}))}get el(){return n(this)}static get watchers(){return{color:["handleColorChange"]}}};J.style="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-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:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:relative;display:-ms-inline-flexbox;display:inline-flex}:host([scale=s]){height:1.25rem;width:1.25rem}:host([scale=m]){height:1.5rem;width:1.5rem}:host([scale=l]){height:2rem;width:2rem}.swatch{overflow:visible;height:inherit;width:inherit}.swatch rect{-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.no-color-icon{position:absolute;top:0px;right:0px;bottom:0px;left:0px;height:100%;width:100%}";export{B as calcite_color_picker,G as calcite_color_picker_hex_input,J as calcite_color_picker_swatch}
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-beta.83
4
+ * v1.0.0-beta.86
5
5
  */
6
- System.register(["./p-994d99ff.system.js"],(function(t){"use strict";var a,i,n;return{setters:[function(t){a=t.r;i=t.h;n=t.g}],execute:function(){var e={scrim:"scrim",content:"content"};var r={loading:"Loading"};var o="@-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:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-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:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:absolute;top:0px;right:0px;bottom:0px;left:0px;z-index:50;display:-ms-flexbox;display:flex;height:100%;width:100%;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:stretch;align-items:stretch}@-webkit-keyframes calcite-scrim-fade-in{0%{--tw-bg-opacity:0}100%{--tw-text-opacity:1}}@keyframes calcite-scrim-fade-in{0%{--tw-bg-opacity:0}100%{--tw-text-opacity:1}}.scrim{position:absolute;top:0px;right:0px;bottom:0px;left:0px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-line-pack:center;align-content:center;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;overflow:hidden;-webkit-animation:calcite-scrim-fade-in var(--calcite-internal-animation-timing-medium) ease-in-out;animation:calcite-scrim-fade-in var(--calcite-internal-animation-timing-medium) ease-in-out;background-color:var(--calcite-scrim-background)}.content{padding:1rem}";var c=t("calcite_scrim",function(){function t(t){a(this,t);this.intlLoading=r.loading;this.loading=false}t.prototype.render=function(){var t=this,a=t.el,n=t.loading,r=t.intlLoading;var o=a.innerHTML.trim().length>0;var c=n?i("calcite-loader",{active:true,label:r}):null;var l=o?i("div",{class:e.content},i("slot",null)):null;return i("div",{class:e.scrim},c,l)};Object.defineProperty(t.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});return t}());c.style=o}}}));
6
+ System.register(["./p-8d7bcbbe.system.js"],(function(t){"use strict";var a,i,n;return{setters:[function(t){a=t.r;i=t.h;n=t.g}],execute:function(){var e={scrim:"scrim",content:"content"};var r={loading:"Loading"};var o="@-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:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-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:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:absolute;top:0px;right:0px;bottom:0px;left:0px;z-index:50;display:-ms-flexbox;display:flex;height:100%;width:100%;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:stretch;align-items:stretch}@-webkit-keyframes calcite-scrim-fade-in{0%{--tw-bg-opacity:0}100%{--tw-text-opacity:1}}@keyframes calcite-scrim-fade-in{0%{--tw-bg-opacity:0}100%{--tw-text-opacity:1}}.scrim{position:absolute;top:0px;right:0px;bottom:0px;left:0px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-line-pack:center;align-content:center;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;overflow:hidden;-webkit-animation:calcite-scrim-fade-in var(--calcite-internal-animation-timing-medium) ease-in-out;animation:calcite-scrim-fade-in var(--calcite-internal-animation-timing-medium) ease-in-out;background-color:var(--calcite-scrim-background)}.content{padding:1rem}";var c=t("calcite_scrim",function(){function t(t){a(this,t);this.intlLoading=r.loading;this.loading=false}t.prototype.render=function(){var t=this,a=t.el,n=t.loading,r=t.intlLoading;var o=a.innerHTML.trim().length>0;var c=n?i("calcite-loader",{active:true,label:r}):null;var l=o?i("div",{class:e.content},i("slot",null)):null;return i("div",{class:e.scrim},c,l)};Object.defineProperty(t.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});return t}());c.style=o}}}));
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-beta.83
4
+ * v1.0.0-beta.86
5
5
  */
6
- System.register(["./p-ba349f22.system.js"],(function(r){"use strict";var t,e,n,o,u;return{setters:[function(r){t=r.i;e=r.b;n=r.c;o=r.r;u=r.f}],execute:function(){r("f",Tr);var a=r("i",Array.isArray);function c(r){return r}var i="[object AsyncFunction]",f="[object Function]",b="[object GeneratorFunction]",l="[object Proxy]";function v(r){if(!t(r)){return false}var n=e(r);return n==f||n==b||n==i||n==l}var y=9007199254740991;var j=/^(?:0|[1-9]\d*)$/;function p(r,t){var e=typeof r;t=t==null?y:t;return!!t&&(e=="number"||e!="symbol"&&j.test(r))&&(r>-1&&r%1==0&&r<t)}var s=9007199254740991;function d(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=s}function m(r){return r!=null&&d(r.length)&&!v(r)}var A=Object.prototype;function h(r){var t=r&&r.constructor,e=typeof t=="function"&&t.prototype||A;return r===e}function g(r,t){var e=-1,n=Array(r);while(++e<r){n[e]=t(e)}return n}var O="[object Arguments]";function w(r){return n(r)&&e(r)==O}var F=Object.prototype;var x=F.hasOwnProperty;var T=F.propertyIsEnumerable;var B=w(function(){return arguments}())?w:function(r){return n(r)&&x.call(r,"callee")&&!T.call(r,"callee")};function I(){return false}var P=typeof r=="object"&&r&&!r.nodeType&&r;var S=P&&typeof module=="object"&&module&&!module.nodeType&&module;var U=S&&S.exports===P;var E=U?o.Buffer:undefined;var k=E?E.isBuffer:undefined;var q=k||I;var D="[object Arguments]",M="[object Array]",C="[object Boolean]",G="[object Date]",L="[object Error]",N="[object Function]",R="[object Map]",V="[object Number]",W="[object Object]",$="[object RegExp]",z="[object Set]",H="[object String]",J="[object WeakMap]";var K="[object ArrayBuffer]",Q="[object DataView]",X="[object Float32Array]",Y="[object Float64Array]",Z="[object Int8Array]",_="[object Int16Array]",rr="[object Int32Array]",tr="[object Uint8Array]",er="[object Uint8ClampedArray]",nr="[object Uint16Array]",or="[object Uint32Array]";var ur={};ur[X]=ur[Y]=ur[Z]=ur[_]=ur[rr]=ur[tr]=ur[er]=ur[nr]=ur[or]=true;ur[D]=ur[M]=ur[K]=ur[C]=ur[Q]=ur[G]=ur[L]=ur[N]=ur[R]=ur[V]=ur[W]=ur[$]=ur[z]=ur[H]=ur[J]=false;function ar(r){return n(r)&&d(r.length)&&!!ur[e(r)]}function cr(r){return function(t){return r(t)}}var ir=typeof r=="object"&&r&&!r.nodeType&&r;var fr=ir&&typeof module=="object"&&module&&!module.nodeType&&module;var br=fr&&fr.exports===ir;var lr=br&&u.process;var vr=function(){try{var r=fr&&fr.require&&fr.require("util").types;if(r){return r}return lr&&lr.binding&&lr.binding("util")}catch(r){}}();var yr=vr&&vr.isTypedArray;var jr=yr?cr(yr):ar;var pr=Object.prototype;var sr=pr.hasOwnProperty;function dr(r,t){var e=a(r),n=!e&&B(r),o=!e&&!n&&q(r),u=!e&&!n&&!o&&jr(r),c=e||n||o||u,i=c?g(r.length,String):[],f=i.length;for(var b in r){if((t||sr.call(r,b))&&!(c&&(b=="length"||o&&(b=="offset"||b=="parent")||u&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||p(b,f)))){i.push(b)}}return i}function mr(r){var t=[];if(r!=null){for(var e in Object(r)){t.push(e)}}return t}var Ar=Object.prototype;var hr=Ar.hasOwnProperty;function gr(r){if(!t(r)){return mr(r)}var e=h(r),n=[];for(var o in r){if(!(o=="constructor"&&(e||!hr.call(r,o)))){n.push(o)}}return n}function Or(r){return m(r)?dr(r,true):gr(r)}function wr(r){return function(t,e,n){var o=-1,u=Object(t),a=n(t),c=a.length;while(c--){var i=a[r?c:++o];if(e(u[i],i,u)===false){break}}return t}}var Fr=wr();function xr(r){return typeof r=="function"?r:c}function Tr(r,t){return r==null?r:Fr(r,xr(t),Or)}}}}));
6
+ System.register(["./p-64abac3a.system.js"],(function(r){"use strict";var t,e,n,o,u;return{setters:[function(r){t=r.i;e=r.b;n=r.c;o=r.r;u=r.f}],execute:function(){r("f",Tr);var a=r("i",Array.isArray);function c(r){return r}var i="[object AsyncFunction]",f="[object Function]",b="[object GeneratorFunction]",l="[object Proxy]";function v(r){if(!t(r)){return false}var n=e(r);return n==f||n==b||n==i||n==l}var y=9007199254740991;var j=/^(?:0|[1-9]\d*)$/;function p(r,t){var e=typeof r;t=t==null?y:t;return!!t&&(e=="number"||e!="symbol"&&j.test(r))&&(r>-1&&r%1==0&&r<t)}var s=9007199254740991;function d(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=s}function m(r){return r!=null&&d(r.length)&&!v(r)}var A=Object.prototype;function h(r){var t=r&&r.constructor,e=typeof t=="function"&&t.prototype||A;return r===e}function g(r,t){var e=-1,n=Array(r);while(++e<r){n[e]=t(e)}return n}var O="[object Arguments]";function w(r){return n(r)&&e(r)==O}var F=Object.prototype;var x=F.hasOwnProperty;var T=F.propertyIsEnumerable;var B=w(function(){return arguments}())?w:function(r){return n(r)&&x.call(r,"callee")&&!T.call(r,"callee")};function I(){return false}var P=typeof r=="object"&&r&&!r.nodeType&&r;var S=P&&typeof module=="object"&&module&&!module.nodeType&&module;var U=S&&S.exports===P;var E=U?o.Buffer:undefined;var k=E?E.isBuffer:undefined;var q=k||I;var D="[object Arguments]",M="[object Array]",C="[object Boolean]",G="[object Date]",L="[object Error]",N="[object Function]",R="[object Map]",V="[object Number]",W="[object Object]",$="[object RegExp]",z="[object Set]",H="[object String]",J="[object WeakMap]";var K="[object ArrayBuffer]",Q="[object DataView]",X="[object Float32Array]",Y="[object Float64Array]",Z="[object Int8Array]",_="[object Int16Array]",rr="[object Int32Array]",tr="[object Uint8Array]",er="[object Uint8ClampedArray]",nr="[object Uint16Array]",or="[object Uint32Array]";var ur={};ur[X]=ur[Y]=ur[Z]=ur[_]=ur[rr]=ur[tr]=ur[er]=ur[nr]=ur[or]=true;ur[D]=ur[M]=ur[K]=ur[C]=ur[Q]=ur[G]=ur[L]=ur[N]=ur[R]=ur[V]=ur[W]=ur[$]=ur[z]=ur[H]=ur[J]=false;function ar(r){return n(r)&&d(r.length)&&!!ur[e(r)]}function cr(r){return function(t){return r(t)}}var ir=typeof r=="object"&&r&&!r.nodeType&&r;var fr=ir&&typeof module=="object"&&module&&!module.nodeType&&module;var br=fr&&fr.exports===ir;var lr=br&&u.process;var vr=function(){try{var r=fr&&fr.require&&fr.require("util").types;if(r){return r}return lr&&lr.binding&&lr.binding("util")}catch(r){}}();var yr=vr&&vr.isTypedArray;var jr=yr?cr(yr):ar;var pr=Object.prototype;var sr=pr.hasOwnProperty;function dr(r,t){var e=a(r),n=!e&&B(r),o=!e&&!n&&q(r),u=!e&&!n&&!o&&jr(r),c=e||n||o||u,i=c?g(r.length,String):[],f=i.length;for(var b in r){if((t||sr.call(r,b))&&!(c&&(b=="length"||o&&(b=="offset"||b=="parent")||u&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||p(b,f)))){i.push(b)}}return i}function mr(r){var t=[];if(r!=null){for(var e in Object(r)){t.push(e)}}return t}var Ar=Object.prototype;var hr=Ar.hasOwnProperty;function gr(r){if(!t(r)){return mr(r)}var e=h(r),n=[];for(var o in r){if(!(o=="constructor"&&(e||!hr.call(r,o)))){n.push(o)}}return n}function Or(r){return m(r)?dr(r,true):gr(r)}function wr(r){return function(t,e,n){var o=-1,u=Object(t),a=n(t),c=a.length;while(c--){var i=a[r?c:++o];if(e(u[i],i,u)===false){break}}return t}}var Fr=wr();function xr(r){return typeof r=="function"?r:c}function Tr(r,t){return r==null?r:Fr(r,xr(t),Or)}}}}));
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
+ * v1.0.0-beta.86
5
+ */
6
+ import{r as t,c as e,h as i,H as a,g as s}from"./p-e2a9bc3c.js";import{s as n,t as o,g as l}from"./p-bc9c9c9b.js";import{S as r}from"./p-b4afbab0.js";import"./p-8e5b28c2.js";const c={slow:14e3,medium:1e4,fast:6e3},d=class{constructor(i){t(this,i),this.calciteAlertBeforeClose=e(this,"calciteAlertBeforeClose",7),this.calciteAlertClose=e(this,"calciteAlertClose",7),this.calciteAlertBeforeOpen=e(this,"calciteAlertBeforeOpen",7),this.calciteAlertOpen=e(this,"calciteAlertOpen",7),this.calciteInternalAlertSync=e(this,"calciteInternalAlertSync",7),this.calciteInternalAlertRegister=e(this,"calciteInternalAlertRegister",7),this.active=!1,this.autoDismiss=!1,this.autoDismissDuration=this.autoDismiss?"medium":null,this.color="blue",this.intlClose="Close",this.placement="bottom",this.scale="m",this.queue=[],this.queueLength=0,this.queued=!1,this.setContainerDiv=t=>{this.containerDiv=t,this.containerDiv.addEventListener("transitionrun",this.transitionRunHandler)},this.autoDismissTimeoutId=null,this.trackTimer=Date.now(),this.activeTransitionProp="opacity",this.closeAlert=()=>{this.autoDismissTimeoutId=null,this.queued=!1,this.active=!1,this.queue=this.queue.filter((t=>t!==this.el)),this.determineActiveAlert(),this.calciteInternalAlertSync.emit({queue:this.queue})},this.transitionRunHandler=t=>{t.propertyName===this.activeTransitionProp&&this.emitOpenCloseEvent(this.active?"beforeOpen":"beforeClose")},this.transitionEnd=t=>{t.propertyName===this.activeTransitionProp&&this.emitOpenCloseEvent(this.active?"open":"close")}}watchActive(){this.active&&!this.queued&&this.calciteInternalAlertRegister.emit(),this.active||(this.queue=this.queue.filter((t=>t!==this.el)),this.calciteInternalAlertSync.emit({queue:this.queue}))}updateRequestedIcon(){this.requestedIcon=n(r,this.icon,this.color)}updateDuration(){this.autoDismiss&&this.autoDismissTimeoutId&&(window.clearTimeout(this.autoDismissTimeoutId),this.autoDismissTimeoutId=window.setTimeout((()=>this.closeAlert()),c[this.autoDismissDuration]-(Date.now()-this.trackTimer)))}connectedCallback(){this.active&&!this.queued&&this.calciteInternalAlertRegister.emit()}componentWillLoad(){this.requestedIcon=n(r,this.icon,this.color)}disconnectedCallback(){window.clearTimeout(this.autoDismissTimeoutId),this.containerDiv&&this.containerDiv.removeEventListener("transitionrun",this.transitionRunHandler)}render(){const t=i("button",{"aria-label":this.intlClose,class:"alert-close",onClick:this.closeAlert,ref:t=>this.closeButton=t,type:"button"},i("calcite-icon",{icon:"x",scale:"l"===this.scale?"m":"s"})),e="+"+(this.queueLength>2?this.queueLength-1:1),s=i("div",{class:(this.queueLength>1?"active ":"")+"alert-queue-count"},i("calcite-chip",{scale:this.scale,value:e},e)),{active:n,autoDismiss:l,label:r,placement:c,queued:d,requestedIcon:m}=this,h=l?"alert":"alertdialog",u=!n;return i(a,{"aria-hidden":o(u),"aria-label":r,"calcite-hydrated-hidden":u,role:h},i("div",{class:{container:!0,queued:d,[c]:!0},onTransitionEnd:this.transitionEnd,ref:this.setContainerDiv},m?i("div",{class:"alert-icon"},i("calcite-icon",{icon:m,scale:"l"===this.scale?"m":"s"})):null,i("div",{class:"alert-content"},i("slot",{name:"title"}),i("slot",{name:"message"}),i("slot",{name:"link"})),s,l?null:t,n&&!d&&l?i("div",{class:"alert-dismiss-progress"}):null))}alertSync(t){this.queue!==t.detail.queue&&(this.queue=t.detail.queue),this.queueLength=this.queue.length,this.determineActiveAlert(),t.stopPropagation()}alertRegister(){this.active&&!this.queue.includes(this.el)&&(this.queued=!0,this.queue.push(this.el)),this.calciteInternalAlertSync.emit({queue:this.queue}),this.determineActiveAlert()}async setFocus(){const t=l(this.el,{selector:"calcite-link"});(this.closeButton||t)&&(t?t.setFocus():this.closeButton&&this.closeButton.focus())}determineActiveAlert(){var t;(null===(t=this.queue)||void 0===t?void 0:t[0])===this.el&&(this.openAlert(),this.autoDismiss&&!this.autoDismissTimeoutId&&(this.trackTimer=Date.now(),this.autoDismissTimeoutId=window.setTimeout((()=>this.closeAlert()),c[this.autoDismissDuration])))}openAlert(){window.clearTimeout(this.queueTimeout),this.queueTimeout=window.setTimeout((()=>this.queued=!1),300)}emitOpenCloseEvent(t){const e={el:this.el,queue:this.queue},i={beforeOpen:()=>this.calciteAlertBeforeOpen.emit(e),open:()=>this.calciteAlertOpen.emit(e),beforeClose:()=>this.calciteAlertBeforeClose.emit(e),close:()=>this.calciteAlertClose.emit(e)};(i[t]||i["The component state is unknown."])()}get el(){return s(this)}static get watchers(){return{active:["watchActive"],icon:["updateRequestedIcon"],color:["updateRequestedIcon"],autoDismissDuration:["updateDuration"]}}};d.style='@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-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:var(--calcite-animation-timing)}: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]){margin-bottom:0.25rem;font-size:var(--calcite-font-size-1);line-height:1.375}: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{--calcite-alert-edge-distance:2rem;display:block}:host .container{pointer-events:none;position:fixed;margin-top:0px;margin-bottom:0px;margin-left:auto;margin-right:auto;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background-color:var(--calcite-ui-foreground-1);opacity:0;--tw-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);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:calc(100% - (var(--calcite-alert-edge-distance) * 2 + 2px));max-height:0;z-index:101;-webkit-transition:var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), all var(--calcite-animation-timing) ease-in-out;transition:var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), all var(--calcite-animation-timing) ease-in-out}:host .container.bottom,:host .container.top{inset-inline-end:0;inset-inline-start:0}:host .container[class*=bottom]{-webkit-transform:translate3d(0, var(--calcite-alert-edge-distance), 0);transform:translate3d(0, var(--calcite-alert-edge-distance), 0);inset-block-end:var(--calcite-alert-edge-distance)}:host .container[class*=top]{-webkit-transform:translate3d(0, calc(-1 * var(--calcite-alert-edge-distance)), 0);transform:translate3d(0, calc(-1 * var(--calcite-alert-edge-distance)), 0);inset-block-start:var(--calcite-alert-edge-distance)}:host .container[class*=-start]{inset-inline-start:var(--calcite-alert-edge-distance);inset-inline-end:auto}:host .container[class*=-end]{inset-inline-end:var(--calcite-alert-edge-distance);inset-inline-start:auto}:host([calcite-hydrated-hidden]){visibility:hidden !important;pointer-events:none}.container{display:-ms-flexbox;display:flex;width:100%;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.alert-close{outline-color:transparent}.alert-close:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}:host([active]) .container:not(.queued){max-height:100%;border-top-width:2px;opacity:1;pointer-events:initial}:host([active]) .container:not(.queued)[class*=bottom]{-webkit-transform:translate3d(0, calc(-1 * var(--calcite-alert-edge-distance)), inherit);transform:translate3d(0, calc(-1 * var(--calcite-alert-edge-distance)), inherit)}:host([active]) .container:not(.queued)[class*=top]{-webkit-transform:translate3d(0, var(--calcite-alert-edge-distance), inherit);transform:translate3d(0, var(--calcite-alert-edge-distance), inherit)}slot[name=title]::slotted(*),*::slotted([slot=title]){font-size:var(--calcite-font-size-0);line-height:1.375;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}slot[name=message]::slotted(*),*::slotted([slot=message]){margin:0px;display:inline;font-size:var(--calcite-font-size--1);line-height:1.375;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-2);-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}slot[name=link]::slotted(*),*::slotted([slot=link]){display:-ms-inline-flexbox;display:inline-flex;color:var(--calcite-ui-text-link)}.alert-content{-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding:var(--calcite-alert-spacing-token-small) var(--calcite-alert-spacing-token-large);-ms-flex:0 0 auto;flex:0 0 auto;overflow-wrap:break-word;background-color:var(--calcite-ui-foreground-1);-ms-flex:1 1 auto;flex:1 1 auto;min-width:0;padding-block:var(--calcite-alert-spacing-token-small);padding-inline:0 var(--calcite-alert-spacing-token-small);border-bottom-left-radius:var(--calcite-border-radius);border-bottom-right-radius:var(--calcite-border-radius)}.alert-content:first-of-type:not(:only-child){-webkit-padding-start:var(--calcite-alert-spacing-token-large);padding-inline-start:var(--calcite-alert-spacing-token-large)}.alert-content:only-child{padding:var(--calcite-alert-spacing-token-small)}.alert-icon{-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding:var(--calcite-alert-spacing-token-small) var(--calcite-alert-spacing-token-large);-ms-flex:0 0 auto;flex:0 0 auto;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-item-align:stretch;align-self:stretch;background-color:var(--calcite-ui-foreground-1);padding-top:0px;padding-bottom:0px}.alert-close{-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding:var(--calcite-alert-spacing-token-small) var(--calcite-alert-spacing-token-large);-ms-flex:0 0 auto;flex:0 0 auto;cursor:pointer;-ms-flex-item-align:stretch;align-self:stretch;overflow:hidden;border-style:none;background-color:var(--calcite-ui-foreground-1);padding-top:0px;padding-bottom:0px;color:var(--calcite-ui-text-3);outline:2px solid transparent;outline-offset:2px;border-end-end-radius:var(--calcite-border-radius)}.alert-close:hover,.alert-close:focus{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}.alert-close:active{background-color:var(--calcite-ui-foreground-3)}.alert-queue-count{visibility:hidden;display:-ms-flexbox;display:flex;cursor:default;-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;background-color:var(--calcite-ui-foreground-1);text-align:center;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2);opacity:0;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;border-left:0px solid transparent;border-right:0px solid transparent;border-top-right-radius:0}.alert-queue-count.active{visibility:visible;opacity:1}:host([auto-dismiss])>.alert-queue-count{-webkit-border-end:0px solid transparent;border-inline-end:0px solid transparent}.alert-dismiss-progress{position:absolute;left:0px;right:0px;display:block;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{position:absolute;top:0px;display:block;height:2px;content:"";background-color:var(--calcite-alert-dismiss-progress-background);z-index:104;inset-inline-end:0}: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:0px;opacity:0.75}100%{width:100%;opacity:1}}@keyframes dismissProgress{0%{width:0px;opacity:0.75}100%{width:100%;opacity:1}}';export{d as calcite_alert}
@@ -0,0 +1,6 @@
1
+ var __awaiter=this&&this.__awaiter||function(e,t,i,n){function a(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,r){function o(e){try{c(n.next(e))}catch(e){r(e)}}function l(e){try{c(n["throw"](e))}catch(e){r(e)}}function c(e){e.done?i(e.value):a(e.value).then(o,l)}c((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,a,r,o;return o={next: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 c([e,t])}}function c(o){if(n)throw new TypeError("Generator is already executing.");while(i)try{if(n=1,a&&(r=o[0]&2?a["return"]:o[0]?a["throw"]||((r=a["return"])&&r.call(a),0):a.next)&&!(r=r.call(a,o[1])).done)return r;if(a=0,r)o=[o[0]&2,r.value];switch(o[0]){case 0:case 1:r=o;break;case 4:i.label++;return{value:o[1],done:false};case 5:i.label++;a=o[1];o=[0];continue;case 7:o=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(o[0]===6||o[0]===2)){i=0;continue}if(o[0]===3&&(!r||o[1]>r[0]&&o[1]<r[3])){i.label=o[1];break}if(o[0]===6&&i.label<r[1]){i.label=r[1];r=o;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(o);break}if(r[2])i.ops.pop();i.trys.pop();continue}o=t.call(e,i)}catch(e){o=[6,e];a=0}finally{n=r=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};
2
+ /*!
3
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
4
+ * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
5
+ * v1.0.0-beta.86
6
+ */System.register(["./p-8d7bcbbe.system.js","./p-4c62aae1.system.js","./p-da045e5a.system.js","./p-694231fe.system.js","./p-ef596bf4.system.js","./p-ba04d4a6.system.js","./p-29c3c079.system.js","./p-786ca76b.system.js"],(function(e){"use strict";var t,i,n,a,r,o,l,c,s,d,h,u,m,f;return{setters:[function(e){t=e.r;i=e.c;n=e.h;a=e.F;r=e.g},function(e){o=e.a;l=e.g;c=e.t},function(e){s=e.H},function(e){d=e.S},function(e){h=e.c;u=e.d},function(e){m=e.u},function(e){f=e.c},function(){}],execute:function(){var p={backButton:"back-button",container:"container",header:"header",heading:"heading",summary:"summary",description:"description",headerContent:"header-content",headerActions:"header-actions",headerActionsEnd:"header-actions--end",headerActionsStart:"header-actions--start",contentWrapper:"content-wrapper",contentContainer:"content-container",contentHeight:"content-height",fabContainer:"fab-container",footer:"footer",menuContainer:"menu-container",menuButton:"menu-button",menu:"menu",menuOpen:"menu--open"};var b={close:"x",menu:"ellipsis",backLeft:"chevron-left",backRight:"chevron-right"};var v={headerActionsStart:"header-actions-start",headerActionsEnd:"header-actions-end",headerMenuActions:"header-menu-actions",headerContent:"header-content",fab:"fab",footer:"footer",footerActions:"footer-actions"};var g={back:"Back",close:"Close",open:"Open",options:"Options"};var x=3;var w="@-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:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-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:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:relative;display:-ms-flexbox;display:flex;width:100%;-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden;--calcite-min-header-height:calc(var(--calcite-icon-size) * 3);--calcite-panel-max-height:unset;--calcite-panel-width:100%;--calcite-panel-min-width:unset;--calcite-panel-max-width:unset}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.header{margin:0px;display:-ms-flexbox;display:flex;-ms-flex-line-pack:justify;align-content:space-between;-ms-flex-align:center;align-items:center;fill:var(--calcite-ui-text-2);color:var(--calcite-ui-text-2)}.heading{margin:0px;padding:0px;font-weight:var(--calcite-font-weight-medium)}.header .heading{-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}.container{margin:0px;display:-ms-flexbox;display:flex;width:100%;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:stretch;align-items:stretch;background-color:var(--calcite-ui-background);padding:0px;max-height:var(--calcite-panel-max-height);width:var(--calcite-panel-width);max-width:var(--calcite-panel-max-width);min-width:var(--calcite-panel-min-width);-webkit-transition:max-height var(--calcite-animation-timing), width var(--calcite-animation-timing);transition:max-height var(--calcite-animation-timing), width var(--calcite-animation-timing)}:host([height-scale=s]){--calcite-panel-max-height:40vh}:host([height-scale=m]){--calcite-panel-max-height:60vh}:host([height-scale=l]){--calcite-panel-max-height:80vh}:host([width-scale=s]){--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 12vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 300px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 150px)}:host([width-scale=m]){--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 20vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 420px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 240px)}:host([width-scale=l]){--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 45vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 680px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 340px)}.container[hidden]{display:none}:host([loading]) .container,:host([disabled]) .container{position:relative;z-index:1}.header{border-bottom:1px solid;position:-webkit-sticky;position:sticky;top:0px;width:100%;-ms-flex-align:stretch;align-items:stretch;-ms-flex-pack:start;justify-content:flex-start;background-color:var(--calcite-ui-foreground-1);border-bottom-color:var(--calcite-ui-border-3);-ms-flex:0 0 auto;flex:0 0 auto;z-index:2}.header-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden;padding-left:0.75rem;padding-right:0.75rem;padding-top:0.875rem;padding-bottom:0.875rem;-webkit-margin-end:auto;margin-inline-end:auto}.header-content .heading,.header-content .description{display:block;overflow-wrap:break-word;padding:0px}.header-content .heading{margin-left:0px;margin-right:0px;margin-top:0px;margin-bottom:0.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-medium)}.header-content .heading:only-child{margin-bottom:0px}.header-content .description{font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-ui-text-2)}.back-button{border-width:0px;border-style:solid;border-color:var(--calcite-ui-border-3);border-inline-end-width:1px}.header-actions{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:stretch;align-items:stretch}.header-actions--end,.menu-container:only-child{-webkit-margin-start:auto;margin-inline-start:auto}.menu-button{position:relative;height:100%;-ms-flex:0 1 auto;flex:0 1 auto;-ms-flex-item-align:stretch;align-self:stretch}.menu{min-width:10rem;-ms-flex-flow:column nowrap;flex-flow:column nowrap}.content-wrapper{overflow:auto}.content-height{height:100%}.content-container{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:stretch;align-items:stretch;background-color:var(--calcite-ui-background);z-index:1}.footer{border-top:1px solid;position:-webkit-sticky;position:sticky;bottom:0px;display:-ms-flexbox;display:flex;width:100%;-ms-flex-pack:space-evenly;justify-content:space-evenly;background-color:var(--calcite-ui-foreground-1);border-top-color:var(--calcite-ui-border-3);-ms-flex:0 0 auto;flex:0 0 auto;min-height:3rem;padding:0.5rem}.fab-container{position:-webkit-sticky;position:sticky;bottom:0px;left:0px;right:0px;margin-top:0px;margin-bottom:0px;margin-left:auto;margin-right:auto;display:block;padding:0.5rem;width:-moz-fit-content;width:-webkit-fit-content;width:fit-content;z-index:1}";var y=e("calcite_panel",function(){function e(e){var n=this;t(this,e);this.calcitePanelDismiss=i(this,"calcitePanelDismiss",7);this.calcitePanelDismissedChange=i(this,"calcitePanelDismissedChange",7);this.calcitePanelScroll=i(this,"calcitePanelScroll",7);this.calcitePanelBackClick=i(this,"calcitePanelBackClick",7);this.dismissed=false;this.closed=false;this.disabled=false;this.dismissible=false;this.closable=false;this.showBackButton=false;this.loading=false;this.menuOpen=false;this.resizeObserver=f("resize",(function(){return n.resizeHandler()}));this.resizeHandler=function(){var e=n.panelScrollEl;if(!e||typeof e.scrollHeight!=="number"||typeof e.offsetHeight!=="number"){return}e.tabIndex=e.scrollHeight>e.offsetHeight?0:-1};this.setContainerRef=function(e){n.containerEl=e};this.setDismissRef=function(e){n.dismissButtonEl=e};this.setBackRef=function(e){n.backButtonEl=e};this.panelKeyDownHandler=function(e){if(e.key==="Escape"){n.dismiss()}};this.dismiss=function(){n.dismissed=true;n.closed=true;n.calcitePanelDismiss.emit()};this.panelScrollHandler=function(){n.calcitePanelScroll.emit()};this.backButtonClick=function(){n.calcitePanelBackClick.emit()};this.setPanelScrollEl=function(e){var t,i;n.panelScrollEl=e;(t=n.resizeObserver)===null||t===void 0?void 0:t.disconnect();if(e){(i=n.resizeObserver)===null||i===void 0?void 0:i.observe(e);n.resizeHandler()}}}e.prototype.dismissedHandler=function(){this.calcitePanelDismissedChange.emit()};e.prototype.componentDidRender=function(){m(this)};e.prototype.connectedCallback=function(){h(this)};e.prototype.disconnectedCallback=function(){var e;u(this);(e=this.resizeObserver)===null||e===void 0?void 0:e.disconnect()};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i,n;return __generator(this,(function(a){if(e==="dismiss-button"){(t=this.dismissButtonEl)===null||t===void 0?void 0:t.setFocus();return[2]}if(e==="back-button"){(i=this.backButtonEl)===null||i===void 0?void 0:i.setFocus();return[2]}(n=this.containerEl)===null||n===void 0?void 0:n.focus();return[2]}))}))};e.prototype.scrollContentTo=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(i){(t=this.panelScrollEl)===null||t===void 0?void 0:t.scrollTo(e);return[2]}))}))};e.prototype.renderBackButton=function(){var e=this.el;var t=o(e)==="rtl";var i=this,a=i.showBackButton,r=i.intlBack,l=i.backButtonClick;var c=r||g.back;var s=t?b.backRight:b.backLeft;return a?n("calcite-action",{"aria-label":c,class:p.backButton,icon:s,key:"back-button",onClick:l,ref:this.setBackRef,scale:"s",slot:v.headerActionsStart,text:c}):null};e.prototype.renderHeaderContent=function(){var e=this,t=e.heading,i=e.headingLevel,a=e.summary,r=e.description;var o=t?n(s,{class:p.heading,level:i||x},t):null;var l=r||a?n("span",{class:p.description},r||a):null;return o||l?n("div",{class:p.headerContent,key:"header-content"},o,l):null};e.prototype.renderHeaderSlottedContent=function(){return n("div",{class:p.headerContent,key:"slotted-header-content"},n("slot",{name:v.headerContent}))};e.prototype.renderHeaderStartActions=function(){var e;var t=this.el;var i=l(t,v.headerActionsStart);return i?n("div",{class:(e={},e[p.headerActionsStart]=true,e[p.headerActions]=true,e),key:"header-actions-start"},n("slot",{name:v.headerActionsStart})):null};e.prototype.renderHeaderActionsEnd=function(){var e;var t=this,i=t.dismiss,a=t.dismissible,r=t.el,o=t.intlClose,c=t.closable;var s=o||g.close;var d=c||a?n("calcite-action",{"aria-label":s,icon:b.close,onClick:i,ref:this.setDismissRef,text:s}):null;var h=n("slot",{name:v.headerActionsEnd});var u=l(r,v.headerActionsEnd);return u||d?n("div",{class:(e={},e[p.headerActionsEnd]=true,e[p.headerActions]=true,e),key:"header-actions-end"},h,d):null};e.prototype.renderMenu=function(){var e=this,t=e.el,i=e.intlOptions,a=e.menuOpen;var r=l(t,v.headerMenuActions);return r?n("calcite-action-menu",{flipPlacements:["top","bottom"],key:"menu",label:i||g.options,open:a,placement:"bottom-end"},n("calcite-action",{icon:b.menu,slot:d.trigger,text:i||g.options}),n("slot",{name:v.headerMenuActions})):null};e.prototype.renderHeaderNode=function(){var e=this,t=e.el,i=e.showBackButton;var a=this.renderBackButton();var r=l(t,v.headerContent);var o=r?this.renderHeaderSlottedContent():this.renderHeaderContent();var c=this.renderHeaderStartActions();var s=this.renderHeaderActionsEnd();var d=this.renderMenu();return c||o||s||d||i?n("header",{class:p.header},a,c,o,s,d):null};e.prototype.renderFooterNode=function(){var e=this.el;var t=l(e,v.footer);var i=l(e,v.footerActions);return t||i?n("footer",{class:p.footer,key:"footer"},t?n("slot",{key:"footer-slot",name:v.footer}):null,i?n("slot",{key:"footer-actions-slot",name:v.footerActions}):null):null};e.prototype.renderContent=function(){var e,t;var i=this.el;var a=l(i,v.fab);var r=n("slot",{key:"default-slot"});var o="content-wrapper";return a?n("div",{class:(e={},e[p.contentWrapper]=true,e[p.contentHeight]=true,e),key:o,onScroll:this.panelScrollHandler,ref:this.setPanelScrollEl},n("section",{class:p.contentContainer},r),this.renderFab()):n("section",{class:(t={},t[p.contentWrapper]=true,t[p.contentContainer]=true,t),key:o,onScroll:this.panelScrollHandler,ref:this.setPanelScrollEl},r)};e.prototype.renderFab=function(){return n("div",{class:p.fabContainer},n("slot",{name:v.fab}))};e.prototype.render=function(){var e=this,t=e.dismissed,i=e.dismissible,r=e.loading,o=e.panelKeyDownHandler,l=e.closed,s=e.closable;var d=n("article",{"aria-busy":c(r),class:p.container,hidden:(s||i)&&(l||t),onKeyDown:o,ref:this.setContainerRef,tabIndex:s||i?0:-1},this.renderHeaderNode(),this.renderContent(),this.renderFooterNode());return n(a,null,r?n("calcite-scrim",{loading:r}):null,d)};Object.defineProperty(e.prototype,"el",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{dismissed:["dismissedHandler"],closed:["dismissedHandler"]}},enumerable:false,configurable:true});return e}());y.style=w}}}));