@esri/calcite-components 1.0.0-next.435 → 1.0.0-next.436

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 (793) hide show
  1. package/dist/calcite/calcite.esm.js +2 -2
  2. package/dist/calcite/calcite.js +1 -1
  3. package/dist/calcite/index.esm.js +1 -1
  4. package/dist/calcite/{p-bff29448.js → p-01896fd4.js} +2 -2
  5. package/dist/calcite/p-01beb78e.entry.js +6 -0
  6. package/dist/calcite/{p-d0c354c5.system.entry.js → p-01e0ea00.system.entry.js} +2 -2
  7. package/dist/calcite/{p-4d11d926.entry.js → p-072cfa7c.entry.js} +2 -2
  8. package/dist/calcite/p-0903259d.js +6 -0
  9. package/dist/calcite/{p-ce4870cb.entry.js → p-09d0f74c.entry.js} +2 -2
  10. package/dist/calcite/{p-d4005830.system.entry.js → p-0a446921.system.entry.js} +2 -2
  11. package/dist/calcite/{p-3b14719a.system.js → p-0bad0648.system.js} +2 -2
  12. package/dist/calcite/{p-2e3ba750.system.js → p-0c3d7027.system.js} +1 -1
  13. package/dist/calcite/{p-1ffbe2e8.system.entry.js → p-0d064624.system.entry.js} +2 -2
  14. package/dist/calcite/{p-2bac077a.entry.js → p-1094ec5d.entry.js} +2 -2
  15. package/dist/calcite/{p-21dd264f.entry.js → p-10b8c23b.entry.js} +2 -2
  16. package/dist/calcite/{p-dc2798b6.entry.js → p-118743e0.entry.js} +2 -2
  17. package/dist/calcite/{p-953fb9e4.js → p-11cddc8b.js} +1 -1
  18. package/dist/calcite/{p-f420d962.system.js → p-136c60ed.system.js} +1 -1
  19. package/dist/calcite/{p-a68c44fd.system.js → p-15253f29.system.js} +2 -2
  20. package/dist/calcite/{p-0d69cbea.system.entry.js → p-16188d42.system.entry.js} +2 -2
  21. package/dist/calcite/{p-f5c2a8c6.system.entry.js → p-1758ba0c.system.entry.js} +2 -2
  22. package/dist/calcite/{p-bf612aaf.system.entry.js → p-17bd1c59.system.entry.js} +2 -2
  23. package/dist/calcite/{p-cb16ebf9.system.entry.js → p-1bd1be87.system.entry.js} +2 -2
  24. package/dist/calcite/p-1c4ac136.system.js +6 -0
  25. package/dist/calcite/{p-07e5cd9f.system.js → p-1c95cf8c.system.js} +1 -1
  26. package/dist/calcite/p-1e8de44b.system.js +6 -0
  27. package/dist/calcite/{p-4deae5f0.system.js → p-1f052b07.system.js} +1 -1
  28. package/dist/calcite/{p-0f8c5c70.js → p-2144c465.js} +1 -1
  29. package/dist/calcite/{p-b387cc6c.entry.js → p-215a7a26.entry.js} +2 -2
  30. package/dist/calcite/{p-48fc9dec.entry.js → p-21b5d432.entry.js} +2 -2
  31. package/dist/calcite/{p-da5dddde.system.entry.js → p-229df190.system.entry.js} +2 -2
  32. package/dist/calcite/{p-31dd395f.entry.js → p-23114517.entry.js} +2 -2
  33. package/dist/calcite/{p-cf00ea27.entry.js → p-24c9ff8f.entry.js} +2 -2
  34. package/dist/calcite/{p-76249049.entry.js → p-264a79a4.entry.js} +2 -2
  35. package/dist/calcite/{p-d24f9791.system.entry.js → p-29714080.system.entry.js} +2 -2
  36. package/dist/calcite/{p-26f2cfe0.system.entry.js → p-2af989e8.system.entry.js} +2 -2
  37. package/dist/calcite/{p-1964fd8c.system.entry.js → p-2ceb38e5.system.entry.js} +2 -2
  38. package/dist/calcite/{p-911d1537.entry.js → p-2deb7785.entry.js} +2 -2
  39. package/dist/calcite/{p-62e18123.system.entry.js → p-2ea67f20.system.entry.js} +2 -2
  40. package/dist/calcite/p-3095f1e3.entry.js +6 -0
  41. package/dist/calcite/{p-8c04b7a1.entry.js → p-31d7698d.entry.js} +2 -2
  42. package/dist/calcite/{p-9d1a127d.system.entry.js → p-324ac3d2.system.entry.js} +3 -3
  43. package/dist/calcite/{p-93f66903.entry.js → p-329e0f51.entry.js} +2 -2
  44. package/dist/calcite/{p-a816e2ce.js → p-3510fa71.js} +2 -2
  45. package/dist/calcite/{p-832e9af4.system.entry.js → p-385137f0.system.entry.js} +2 -2
  46. package/dist/calcite/{p-62b2f7b4.system.js → p-387e544e.system.js} +3 -3
  47. package/dist/calcite/{p-51905a71.system.js → p-3cafd292.system.js} +2 -2
  48. package/dist/calcite/{p-4230d6ec.entry.js → p-3d6df883.entry.js} +2 -2
  49. package/dist/calcite/p-3d753766.js +6 -0
  50. package/dist/calcite/{p-5d4963f5.entry.js → p-3f446bd7.entry.js} +2 -2
  51. package/dist/calcite/{p-027d4d70.system.entry.js → p-3fb42604.system.entry.js} +2 -2
  52. package/dist/calcite/{p-75077703.entry.js → p-405bc02e.entry.js} +2 -2
  53. package/dist/calcite/{p-6e825589.js → p-4319fd69.js} +1 -1
  54. package/dist/calcite/{p-421e35a0.system.entry.js → p-43df6fe6.system.entry.js} +2 -2
  55. package/dist/calcite/{p-d395c721.system.entry.js → p-449f6dde.system.entry.js} +2 -2
  56. package/dist/calcite/p-45afde8a.entry.js +6 -0
  57. package/dist/calcite/{p-8b73e447.js → p-471e8664.js} +1 -1
  58. package/dist/calcite/{p-b4cac207.js → p-48928af4.js} +1 -1
  59. package/dist/calcite/{p-32187c6a.system.entry.js → p-498c65b8.system.entry.js} +3 -3
  60. package/dist/calcite/{p-0f15b5bc.entry.js → p-4a288f53.entry.js} +2 -2
  61. package/dist/calcite/{p-1e230caa.entry.js → p-4ab29ce6.entry.js} +2 -2
  62. package/dist/calcite/{p-c5eaf1cf.entry.js → p-4b74c5bd.entry.js} +2 -2
  63. package/dist/calcite/{p-36afb7db.system.js → p-4c279bed.system.js} +1 -1
  64. package/dist/calcite/{p-ffe6222c.system.entry.js → p-4cc8e1b8.system.entry.js} +2 -2
  65. package/dist/calcite/{p-81d865b0.entry.js → p-4d541197.entry.js} +2 -2
  66. package/dist/calcite/{p-fcf4a8a6.entry.js → p-4f0be0e4.entry.js} +2 -2
  67. package/dist/calcite/{p-30f9b044.entry.js → p-51b0ab77.entry.js} +2 -2
  68. package/dist/calcite/{p-4dec6f4c.system.entry.js → p-52e47b08.system.entry.js} +2 -2
  69. package/dist/calcite/{p-172166d5.js → p-532914b2.js} +1 -1
  70. package/dist/calcite/{p-6defafc5.system.entry.js → p-53c740ee.system.entry.js} +2 -2
  71. package/dist/calcite/{p-f421fb6b.system.js → p-599490d6.system.js} +2 -2
  72. package/dist/calcite/{p-97b468e7.system.js → p-60428290.system.js} +1 -1
  73. package/dist/calcite/{p-9f8ffc60.system.entry.js → p-60730151.system.entry.js} +2 -2
  74. package/dist/calcite/{p-622bf705.entry.js → p-61ebdcc1.entry.js} +2 -2
  75. package/dist/calcite/p-63969736.js +6 -0
  76. package/dist/calcite/{p-3b6dc03b.entry.js → p-649f353a.entry.js} +2 -2
  77. package/dist/calcite/{p-673f6afb.system.entry.js → p-66107341.system.entry.js} +2 -2
  78. package/dist/calcite/{p-d8e4f845.system.entry.js → p-664591c5.system.entry.js} +2 -2
  79. package/dist/calcite/{p-10f4d19c.system.entry.js → p-6989db71.system.entry.js} +2 -2
  80. package/dist/calcite/{p-554e4d89.entry.js → p-6acc01be.entry.js} +2 -2
  81. package/dist/calcite/{p-98e64c50.system.entry.js → p-6edd152f.system.entry.js} +2 -2
  82. package/dist/calcite/{p-cabaea13.entry.js → p-72bb9bfc.entry.js} +2 -2
  83. package/dist/calcite/{p-81184124.system.entry.js → p-77213fb5.system.entry.js} +2 -2
  84. package/dist/calcite/{p-968ede34.entry.js → p-7785f8ba.entry.js} +2 -2
  85. package/dist/calcite/{p-3cc9c2d9.system.entry.js → p-7a6d1df1.system.entry.js} +2 -2
  86. package/dist/calcite/{p-62788599.entry.js → p-7c304106.entry.js} +2 -2
  87. package/dist/calcite/{p-e2af35c9.entry.js → p-7c35b370.entry.js} +2 -2
  88. package/dist/calcite/{p-48dfda99.entry.js → p-7d6bde4d.entry.js} +2 -2
  89. package/dist/calcite/{p-8d1f74be.entry.js → p-7da98f84.entry.js} +2 -2
  90. package/dist/calcite/{p-fb700215.entry.js → p-7e0b55b7.entry.js} +2 -2
  91. package/dist/calcite/{p-3e4fa6ce.entry.js → p-802685a1.entry.js} +2 -2
  92. package/dist/calcite/{p-d394bcf0.system.js → p-84688d6b.system.js} +2 -2
  93. package/dist/calcite/{p-2ac90f19.entry.js → p-84df8bc5.entry.js} +2 -2
  94. package/dist/calcite/{p-0e12a1d2.entry.js → p-86325829.entry.js} +2 -2
  95. package/dist/calcite/{p-2bae9ff1.js → p-89075e58.js} +1 -1
  96. package/dist/calcite/{p-612a155a.js → p-8a1059ae.js} +1 -1
  97. package/dist/calcite/{p-8dc863d4.system.entry.js → p-8c886619.system.entry.js} +2 -2
  98. package/dist/calcite/{p-44b2d0b4.entry.js → p-8d614a52.entry.js} +2 -2
  99. package/dist/calcite/{p-4b473d96.entry.js → p-962e4f9c.entry.js} +2 -2
  100. package/dist/calcite/{p-88342bb9.entry.js → p-97d5fc7e.entry.js} +2 -2
  101. package/dist/calcite/{p-48bd2b43.js → p-9906ae4f.js} +1 -1
  102. package/dist/calcite/{p-0ce4488f.entry.js → p-9be97a37.entry.js} +2 -2
  103. package/dist/calcite/{p-9fe815b9.system.entry.js → p-9c39c320.system.entry.js} +3 -3
  104. package/dist/calcite/{p-b1341660.system.entry.js → p-9c7b8f16.system.entry.js} +2 -2
  105. package/dist/calcite/{p-822a4090.entry.js → p-9e38dbad.entry.js} +2 -2
  106. package/dist/calcite/{p-b5606943.system.js → p-9f40b372.system.js} +2 -2
  107. package/dist/calcite/{p-deb560de.system.entry.js → p-a24f8fc5.system.entry.js} +2 -2
  108. package/dist/calcite/{p-72b053f6.system.js → p-a3a0e475.system.js} +1 -1
  109. package/dist/calcite/{p-c680d1ab.js → p-a596c586.js} +2 -2
  110. package/dist/calcite/{p-8dcdf658.system.entry.js → p-a67c35df.system.entry.js} +3 -3
  111. package/dist/calcite/{p-6bbd290e.system.js → p-a6924e02.system.js} +1 -1
  112. package/dist/calcite/{p-747d365b.system.entry.js → p-a880bf6a.system.entry.js} +2 -2
  113. package/dist/calcite/{p-a34eb44c.js → p-aae4f9e1.js} +1 -1
  114. package/dist/calcite/{p-c69b4da9.js → p-abf183cf.js} +1 -1
  115. package/dist/calcite/{p-fc5558e5.system.entry.js → p-ac46590c.system.entry.js} +2 -2
  116. package/dist/calcite/{p-f9ff8aba.system.js → p-acd4f257.system.js} +2 -2
  117. package/dist/calcite/{p-ac3be2eb.system.entry.js → p-af18dee3.system.entry.js} +2 -2
  118. package/dist/calcite/{p-696ff386.js → p-b29a9fd6.js} +1 -1
  119. package/dist/calcite/{p-5171d80f.entry.js → p-b2f780b3.entry.js} +2 -2
  120. package/dist/calcite/{p-e69c2e64.system.entry.js → p-b4a271ca.system.entry.js} +2 -2
  121. package/dist/calcite/{p-818186a0.entry.js → p-b67901f1.entry.js} +2 -2
  122. package/dist/calcite/{p-7926a37c.js → p-b717d135.js} +2 -2
  123. package/dist/calcite/p-b99af251.system.entry.js +6 -0
  124. package/dist/calcite/{p-6e94751b.system.js → p-beb16df5.system.js} +1 -1
  125. package/dist/calcite/{p-1eebd037.system.js → p-c219d946.system.js} +1 -1
  126. package/dist/calcite/{p-621f70be.system.entry.js → p-c305b034.system.entry.js} +2 -2
  127. package/dist/calcite/{p-5fbccf6e.entry.js → p-c4dce0b2.entry.js} +2 -2
  128. package/dist/calcite/{p-574551b6.system.entry.js → p-c543a842.system.entry.js} +2 -2
  129. package/dist/calcite/{p-56b16b5e.system.entry.js → p-c5e200bc.system.entry.js} +2 -2
  130. package/dist/calcite/{p-1c5c3e23.system.entry.js → p-c7c09908.system.entry.js} +2 -2
  131. package/dist/calcite/p-c9db56ca.js +6 -0
  132. package/dist/calcite/{p-e0d5bc84.system.entry.js → p-cb8872fb.system.entry.js} +2 -2
  133. package/dist/calcite/{p-0b7d96ce.system.entry.js → p-cbed6cd8.system.entry.js} +2 -2
  134. package/dist/calcite/{p-70cfad8d.entry.js → p-cd456538.entry.js} +2 -2
  135. package/dist/calcite/{p-aff6a808.system.entry.js → p-ce2859a3.system.entry.js} +2 -2
  136. package/dist/calcite/{p-1a8a389b.entry.js → p-d106ec41.entry.js} +2 -2
  137. package/dist/calcite/{p-2db292f3.system.entry.js → p-d3806fd3.system.entry.js} +2 -2
  138. package/dist/calcite/{p-fa510d7f.entry.js → p-d383bf47.entry.js} +2 -2
  139. package/dist/calcite/{p-10e19646.js → p-d3be29c9.js} +2 -2
  140. package/dist/calcite/{p-4c3f9dbd.entry.js → p-d4591287.entry.js} +2 -2
  141. package/dist/calcite/{p-f4e70d57.entry.js → p-d4ccfa6c.entry.js} +2 -2
  142. package/dist/calcite/{p-7e3226f9.system.js → p-d5648c54.system.js} +1 -1
  143. package/dist/calcite/{p-f80c738f.system.js → p-d7e8aeba.system.js} +1 -1
  144. package/dist/calcite/p-d8597a8b.entry.js +6 -0
  145. package/dist/calcite/{p-a71be600.system.entry.js → p-d8affbb6.system.entry.js} +2 -2
  146. package/dist/calcite/{p-0dac08bb.system.entry.js → p-dc3f657a.system.entry.js} +2 -2
  147. package/dist/calcite/{p-7a3673aa.entry.js → p-dc75747e.entry.js} +2 -2
  148. package/dist/calcite/{p-67ce75e4.system.entry.js → p-e14d05f8.system.entry.js} +2 -2
  149. package/dist/calcite/{p-4ab09db2.system.entry.js → p-e1dbeafe.system.entry.js} +2 -2
  150. package/dist/calcite/{p-e070519f.js → p-e2793dc4.js} +1 -1
  151. package/dist/calcite/{p-021a42fc.system.js → p-e3b88b1b.system.js} +2 -2
  152. package/dist/calcite/{p-339e6a0c.system.js → p-e5b22261.system.js} +1 -1
  153. package/dist/calcite/{p-a6666a56.entry.js → p-e7c018f7.entry.js} +2 -2
  154. package/dist/calcite/{p-1f01d791.system.entry.js → p-ecb94ca0.system.entry.js} +2 -2
  155. package/dist/calcite/{p-833a37a8.system.js → p-edbd45b5.system.js} +2 -2
  156. package/dist/calcite/{p-0a7f37a5.entry.js → p-f1051dcd.entry.js} +2 -2
  157. package/dist/calcite/{p-1d2dd594.entry.js → p-f10c7872.entry.js} +2 -2
  158. package/dist/calcite/{p-0e48eab7.system.entry.js → p-f30ce972.system.entry.js} +2 -2
  159. package/dist/calcite/{p-ed386ce4.js → p-f3a86fac.js} +2 -2
  160. package/dist/calcite/{p-a6ee0a59.system.entry.js → p-f4655098.system.entry.js} +2 -2
  161. package/dist/calcite/{p-8b7d097b.system.entry.js → p-f4af9274.system.entry.js} +2 -2
  162. package/dist/calcite/{p-9ea8e4ed.system.entry.js → p-f56e11f2.system.entry.js} +2 -2
  163. package/dist/calcite/{p-a0c53c8b.system.entry.js → p-f60b721c.system.entry.js} +2 -2
  164. package/dist/calcite/{p-d33bb8c8.system.entry.js → p-f60cc31c.system.entry.js} +2 -2
  165. package/dist/calcite/{p-233bcc9c.system.js → p-f98601b9.system.js} +1 -1
  166. package/dist/calcite/{p-2ae88c8f.entry.js → p-fe9975ba.entry.js} +2 -2
  167. package/dist/calcite/{p-a39cf0d6.js → p-ff661471.js} +2 -2
  168. package/dist/cjs/{ExpandToggle-1494ad99.js → ExpandToggle-de724d16.js} +5 -5
  169. package/dist/cjs/{Heading-817ff8e1.js → Heading-2a23603a.js} +2 -2
  170. package/dist/cjs/{array-f99be68b.js → array-5d825eb7.js} +1 -1
  171. package/dist/cjs/calcite-accordion_2.cjs.entry.js +4 -4
  172. package/dist/cjs/calcite-action-bar.cjs.entry.js +10 -10
  173. package/dist/cjs/calcite-action-group.cjs.entry.js +8 -8
  174. package/dist/cjs/calcite-action-menu.cjs.entry.js +8 -8
  175. package/dist/cjs/calcite-action-pad.cjs.entry.js +9 -9
  176. package/dist/cjs/calcite-action.cjs.entry.js +4 -4
  177. package/dist/cjs/calcite-alert.cjs.entry.js +5 -5
  178. package/dist/cjs/calcite-avatar.cjs.entry.js +5 -5
  179. package/dist/cjs/calcite-block_2.cjs.entry.js +8 -8
  180. package/dist/cjs/calcite-button.cjs.entry.js +7 -7
  181. package/dist/cjs/calcite-card.cjs.entry.js +6 -6
  182. package/dist/cjs/calcite-checkbox.cjs.entry.js +7 -7
  183. package/dist/cjs/calcite-chip.cjs.entry.js +6 -6
  184. package/dist/cjs/calcite-color-picker_3.cjs.entry.js +51 -69
  185. package/dist/cjs/calcite-combobox_3.cjs.entry.js +12 -12
  186. package/dist/cjs/calcite-date-picker_4.cjs.entry.js +9 -9
  187. package/dist/cjs/calcite-dropdown_3.cjs.entry.js +7 -7
  188. package/dist/cjs/calcite-fab.cjs.entry.js +5 -5
  189. package/dist/cjs/calcite-filter.cjs.entry.js +7 -7
  190. package/dist/cjs/calcite-flow.cjs.entry.js +3 -3
  191. package/dist/cjs/calcite-graph_2.cjs.entry.js +9 -9
  192. package/dist/cjs/calcite-handle.cjs.entry.js +2 -2
  193. package/dist/cjs/calcite-icon.cjs.entry.js +5 -5
  194. package/dist/cjs/calcite-inline-editable.cjs.entry.js +7 -7
  195. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +11 -11
  196. package/dist/cjs/calcite-input-message.cjs.entry.js +4 -4
  197. package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +8 -8
  198. package/dist/cjs/calcite-input.cjs.entry.js +11 -11
  199. package/dist/cjs/calcite-label.cjs.entry.js +5 -5
  200. package/dist/cjs/calcite-link.cjs.entry.js +5 -5
  201. package/dist/cjs/calcite-list_3.cjs.entry.js +8 -8
  202. package/dist/cjs/calcite-loader.cjs.entry.js +3 -3
  203. package/dist/cjs/calcite-modal.cjs.entry.js +6 -6
  204. package/dist/cjs/calcite-notice.cjs.entry.js +7 -7
  205. package/dist/cjs/calcite-option_3.cjs.entry.js +8 -8
  206. package/dist/cjs/calcite-pagination.cjs.entry.js +2 -2
  207. package/dist/cjs/calcite-panel.cjs.entry.js +9 -9
  208. package/dist/cjs/calcite-pick-list_3.cjs.entry.js +11 -11
  209. package/dist/cjs/calcite-popover_2.cjs.entry.js +6 -6
  210. package/dist/cjs/calcite-progress.cjs.entry.js +2 -2
  211. package/dist/cjs/calcite-radio-button-group.cjs.entry.js +3 -3
  212. package/dist/cjs/calcite-radio-button.cjs.entry.js +8 -8
  213. package/dist/cjs/calcite-radio-group_2.cjs.entry.js +7 -7
  214. package/dist/cjs/calcite-rating.cjs.entry.js +7 -7
  215. package/dist/cjs/calcite-scrim.cjs.entry.js +2 -2
  216. package/dist/cjs/calcite-shell_3.cjs.entry.js +7 -7
  217. package/dist/cjs/calcite-sortable-list.cjs.entry.js +5 -5
  218. package/dist/cjs/calcite-split-button.cjs.entry.js +3 -3
  219. package/dist/cjs/calcite-stepper_2.cjs.entry.js +5 -5
  220. package/dist/cjs/calcite-switch.cjs.entry.js +7 -7
  221. package/dist/cjs/calcite-tab_4.cjs.entry.js +6 -6
  222. package/dist/cjs/calcite-tile-select_2.cjs.entry.js +4 -4
  223. package/dist/cjs/calcite-tile.cjs.entry.js +7 -7
  224. package/dist/cjs/calcite-tip_3.cjs.entry.js +7 -7
  225. package/dist/cjs/calcite-tooltip_2.cjs.entry.js +5 -5
  226. package/dist/cjs/calcite-tree_2.cjs.entry.js +6 -6
  227. package/dist/cjs/calcite-value-list_2.cjs.entry.js +11 -11
  228. package/dist/cjs/calcite.cjs.js +2 -2
  229. package/dist/cjs/{conditionalSlot-f529eb64.js → conditionalSlot-c821ec43.js} +3 -3
  230. package/dist/cjs/{debounce-982cc743.js → debounce-0e26fff9.js} +1 -1
  231. package/dist/cjs/{dom-b7585761.js → dom-7162dbf7.js} +2 -2
  232. package/dist/cjs/{forIn-766acb45.js → forIn-430123d7.js} +2 -2
  233. package/dist/cjs/{form-8227d5f2.js → form-dbecf590.js} +3 -3
  234. package/dist/cjs/{guid-3508d85f.js → guid-f2fb842c.js} +1 -1
  235. package/dist/cjs/{index-1ba9b2b3.js → index-16639dbc.js} +1 -1
  236. package/dist/cjs/index.cjs.js +1 -1
  237. package/dist/cjs/{interactive-967866b3.js → interactive-9212dc29.js} +1 -1
  238. package/dist/cjs/{interfaces-b08478bc.js → interfaces-ea081143.js} +1 -1
  239. package/dist/cjs/{label-134871d4.js → label-bc13f583.js} +2 -2
  240. package/dist/cjs/loader.cjs.js +2 -2
  241. package/dist/cjs/{locale-0383a1d4.js → locale-466d1fa2.js} +2 -2
  242. package/dist/cjs/{math-9c574711.js → math-8e338983.js} +1 -1
  243. package/dist/cjs/{number-0aa03957.js → number-99c4937b.js} +1 -1
  244. package/dist/cjs/{observers-95f229a8.js → observers-f214f4fc.js} +1 -1
  245. package/dist/cjs/{popper-51b0b89d.js → popper-44d8219e.js} +2 -2
  246. package/dist/cjs/{resources-b51291a2.js → resources-43cd0a1f.js} +3 -3
  247. package/dist/cjs/{resources-974e9023.js → resources-95e76ad9.js} +1 -1
  248. package/dist/cjs/{resources-10e59f40.js → resources-a780442d.js} +5 -5
  249. package/dist/cjs/{resources-5d8575b6.js → resources-aba05911.js} +1 -1
  250. package/dist/cjs/{sortable.esm-d40ba463.js → sortable.esm-721ce856.js} +1 -1
  251. package/dist/cjs/{utils-0de9edc0.js → utils-f3c67432.js} +1 -1
  252. package/dist/collection/components/accordion/accordion.js +1 -1
  253. package/dist/collection/components/accordion/interfaces.js +1 -1
  254. package/dist/collection/components/accordion-item/accordion-item.js +1 -1
  255. package/dist/collection/components/action/action.js +1 -1
  256. package/dist/collection/components/action/resources.js +1 -1
  257. package/dist/collection/components/action-bar/action-bar.js +1 -1
  258. package/dist/collection/components/action-bar/resources.js +1 -1
  259. package/dist/collection/components/action-bar/utils.js +1 -1
  260. package/dist/collection/components/action-group/action-group.js +1 -1
  261. package/dist/collection/components/action-group/resources.js +1 -1
  262. package/dist/collection/components/action-menu/action-menu.js +1 -1
  263. package/dist/collection/components/action-menu/resources.js +1 -1
  264. package/dist/collection/components/action-pad/action-pad.js +1 -1
  265. package/dist/collection/components/action-pad/resources.js +1 -1
  266. package/dist/collection/components/alert/alert.js +1 -1
  267. package/dist/collection/components/alert/interfaces.js +1 -1
  268. package/dist/collection/components/alert/resources.js +1 -1
  269. package/dist/collection/components/avatar/avatar.js +1 -1
  270. package/dist/collection/components/avatar/utils.js +1 -1
  271. package/dist/collection/components/block/block.js +1 -1
  272. package/dist/collection/components/block/resources.js +1 -1
  273. package/dist/collection/components/block-section/block-section.js +1 -1
  274. package/dist/collection/components/block-section/interfaces.js +1 -1
  275. package/dist/collection/components/block-section/resources.js +1 -1
  276. package/dist/collection/components/button/button.js +1 -1
  277. package/dist/collection/components/button/interfaces.js +1 -1
  278. package/dist/collection/components/button/resources.js +1 -1
  279. package/dist/collection/components/card/card.js +1 -1
  280. package/dist/collection/components/card/resources.js +1 -1
  281. package/dist/collection/components/checkbox/checkbox.js +1 -1
  282. package/dist/collection/components/chip/chip.js +1 -1
  283. package/dist/collection/components/chip/interfaces.js +1 -1
  284. package/dist/collection/components/chip/resources.js +1 -1
  285. package/dist/collection/components/color-picker/color-picker.js +7 -15
  286. package/dist/collection/components/color-picker/interfaces.js +1 -1
  287. package/dist/collection/components/color-picker/resources.js +1 -1
  288. package/dist/collection/components/color-picker/utils.js +1 -1
  289. package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.js +39 -49
  290. package/dist/collection/components/color-picker-hex-input/resources.js +1 -1
  291. package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +1 -1
  292. package/dist/collection/components/color-picker-swatch/resources.js +1 -1
  293. package/dist/collection/components/combobox/combobox.js +1 -1
  294. package/dist/collection/components/combobox/interfaces.js +1 -1
  295. package/dist/collection/components/combobox/resources.js +1 -1
  296. package/dist/collection/components/combobox/utils.js +1 -1
  297. package/dist/collection/components/combobox-item/combobox-item.js +1 -1
  298. package/dist/collection/components/combobox-item/resources.js +1 -1
  299. package/dist/collection/components/combobox-item-group/combobox-item-group.js +1 -1
  300. package/dist/collection/components/combobox-item-group/resources.js +1 -1
  301. package/dist/collection/components/date-picker/date-picker.js +1 -1
  302. package/dist/collection/components/date-picker/interfaces.js +1 -1
  303. package/dist/collection/components/date-picker/resources.js +1 -1
  304. package/dist/collection/components/date-picker/utils.js +1 -1
  305. package/dist/collection/components/date-picker-day/date-picker-day.js +1 -1
  306. package/dist/collection/components/date-picker-month/date-picker-month.js +1 -1
  307. package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +1 -1
  308. package/dist/collection/components/dropdown/dropdown.js +1 -1
  309. package/dist/collection/components/dropdown/interfaces.js +1 -1
  310. package/dist/collection/components/dropdown/resources.js +1 -1
  311. package/dist/collection/components/dropdown-group/dropdown-group.js +1 -1
  312. package/dist/collection/components/dropdown-group/interfaces.js +1 -1
  313. package/dist/collection/components/dropdown-group/resources.js +1 -1
  314. package/dist/collection/components/dropdown-item/dropdown-item.js +1 -1
  315. package/dist/collection/components/dropdown-item/resources.js +1 -1
  316. package/dist/collection/components/fab/fab.js +1 -1
  317. package/dist/collection/components/fab/resources.js +1 -1
  318. package/dist/collection/components/filter/filter.js +1 -1
  319. package/dist/collection/components/filter/resources.js +1 -1
  320. package/dist/collection/components/flow/flow.js +1 -1
  321. package/dist/collection/components/flow/interfaces.js +1 -1
  322. package/dist/collection/components/flow/resources.js +1 -1
  323. package/dist/collection/components/functional/ExpandToggle.js +1 -1
  324. package/dist/collection/components/functional/Heading.js +1 -1
  325. package/dist/collection/components/graph/graph.js +1 -1
  326. package/dist/collection/components/graph/interfaces.js +1 -1
  327. package/dist/collection/components/graph/util.js +1 -1
  328. package/dist/collection/components/handle/handle.js +1 -1
  329. package/dist/collection/components/handle/resources.js +1 -1
  330. package/dist/collection/components/icon/icon.js +1 -1
  331. package/dist/collection/components/icon/resources.js +1 -1
  332. package/dist/collection/components/icon/utils.js +1 -1
  333. package/dist/collection/components/inline-editable/inline-editable.js +1 -1
  334. package/dist/collection/components/inline-editable/resources.js +1 -1
  335. package/dist/collection/components/input/input.js +1 -1
  336. package/dist/collection/components/input/interfaces.js +1 -1
  337. package/dist/collection/components/input/resources.js +1 -1
  338. package/dist/collection/components/input-date-picker/input-date-picker.js +1 -1
  339. package/dist/collection/components/input-message/input-message.js +1 -1
  340. package/dist/collection/components/input-message/interfaces.js +1 -1
  341. package/dist/collection/components/input-time-picker/input-time-picker.js +1 -1
  342. package/dist/collection/components/interfaces.js +1 -1
  343. package/dist/collection/components/label/label.js +1 -1
  344. package/dist/collection/components/label/resources.js +1 -1
  345. package/dist/collection/components/link/link.js +1 -1
  346. package/dist/collection/components/list/list.js +1 -1
  347. package/dist/collection/components/list/resources.js +1 -1
  348. package/dist/collection/components/list-item/list-item.js +1 -1
  349. package/dist/collection/components/list-item/resources.js +1 -1
  350. package/dist/collection/components/list-item-group/list-item-group.js +1 -1
  351. package/dist/collection/components/list-item-group/resources.js +1 -1
  352. package/dist/collection/components/loader/loader.js +1 -1
  353. package/dist/collection/components/modal/interfaces.js +1 -1
  354. package/dist/collection/components/modal/modal.js +1 -1
  355. package/dist/collection/components/modal/resources.js +1 -1
  356. package/dist/collection/components/notice/notice.js +1 -1
  357. package/dist/collection/components/notice/resources.js +1 -1
  358. package/dist/collection/components/option/option.js +1 -1
  359. package/dist/collection/components/option-group/option-group.js +1 -1
  360. package/dist/collection/components/pagination/pagination.js +1 -1
  361. package/dist/collection/components/pagination/resources.js +1 -1
  362. package/dist/collection/components/panel/panel.js +1 -1
  363. package/dist/collection/components/panel/resources.js +1 -1
  364. package/dist/collection/components/pick-list/pick-list.js +1 -1
  365. package/dist/collection/components/pick-list/resources.js +1 -1
  366. package/dist/collection/components/pick-list/shared-list-logic.js +1 -1
  367. package/dist/collection/components/pick-list/shared-list-render.js +1 -1
  368. package/dist/collection/components/pick-list-group/pick-list-group.js +1 -1
  369. package/dist/collection/components/pick-list-group/resources.js +1 -1
  370. package/dist/collection/components/pick-list-item/pick-list-item.js +1 -1
  371. package/dist/collection/components/pick-list-item/resources.js +1 -1
  372. package/dist/collection/components/popover/popover.js +1 -1
  373. package/dist/collection/components/popover/resources.js +1 -1
  374. package/dist/collection/components/popover-manager/popover-manager.js +1 -1
  375. package/dist/collection/components/progress/progress.js +1 -1
  376. package/dist/collection/components/radio-button/radio-button.js +1 -1
  377. package/dist/collection/components/radio-button/resources.js +1 -1
  378. package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
  379. package/dist/collection/components/radio-group/interfaces.js +1 -1
  380. package/dist/collection/components/radio-group/radio-group.js +1 -1
  381. package/dist/collection/components/radio-group-item/radio-group-item.js +1 -1
  382. package/dist/collection/components/radio-group-item/resources.js +1 -1
  383. package/dist/collection/components/rating/rating.js +1 -1
  384. package/dist/collection/components/rating/resources.js +1 -1
  385. package/dist/collection/components/scrim/resources.js +1 -1
  386. package/dist/collection/components/scrim/scrim.js +1 -1
  387. package/dist/collection/components/select/resources.js +1 -1
  388. package/dist/collection/components/select/select.js +1 -1
  389. package/dist/collection/components/shell/resources.js +1 -1
  390. package/dist/collection/components/shell/shell.js +1 -1
  391. package/dist/collection/components/shell-center-row/resources.js +1 -1
  392. package/dist/collection/components/shell-center-row/shell-center-row.js +1 -1
  393. package/dist/collection/components/shell-panel/resources.js +1 -1
  394. package/dist/collection/components/shell-panel/shell-panel.js +1 -1
  395. package/dist/collection/components/slider/slider.js +1 -1
  396. package/dist/collection/components/sortable-list/resources.js +1 -1
  397. package/dist/collection/components/sortable-list/sortable-list.js +1 -1
  398. package/dist/collection/components/split-button/resources.js +1 -1
  399. package/dist/collection/components/split-button/split-button.js +1 -1
  400. package/dist/collection/components/stepper/stepper.js +1 -1
  401. package/dist/collection/components/stepper-item/stepper-item.js +1 -1
  402. package/dist/collection/components/switch/switch.js +1 -1
  403. package/dist/collection/components/tab/interfaces.js +1 -1
  404. package/dist/collection/components/tab/tab.js +1 -1
  405. package/dist/collection/components/tab-nav/tab-nav.js +1 -1
  406. package/dist/collection/components/tab-title/tab-title.js +1 -1
  407. package/dist/collection/components/tabs/interfaces.js +1 -1
  408. package/dist/collection/components/tabs/resources.js +1 -1
  409. package/dist/collection/components/tabs/tabs.js +1 -1
  410. package/dist/collection/components/tile/resources.js +1 -1
  411. package/dist/collection/components/tile/tile.js +1 -1
  412. package/dist/collection/components/tile-select/interfaces.js +1 -1
  413. package/dist/collection/components/tile-select/resources.js +1 -1
  414. package/dist/collection/components/tile-select/tile-select.js +1 -1
  415. package/dist/collection/components/tile-select-group/interfaces.js +1 -1
  416. package/dist/collection/components/tile-select-group/tile-select-group.js +1 -1
  417. package/dist/collection/components/time-picker/resources.js +1 -1
  418. package/dist/collection/components/time-picker/time-picker.js +1 -1
  419. package/dist/collection/components/tip/resources.js +1 -1
  420. package/dist/collection/components/tip/tip.js +1 -1
  421. package/dist/collection/components/tip-group/tip-group.js +1 -1
  422. package/dist/collection/components/tip-manager/resources.js +1 -1
  423. package/dist/collection/components/tip-manager/tip-manager.js +1 -1
  424. package/dist/collection/components/tooltip/resources.js +1 -1
  425. package/dist/collection/components/tooltip/tooltip.js +1 -1
  426. package/dist/collection/components/tooltip-manager/tooltip-manager.js +1 -1
  427. package/dist/collection/components/tree/interfaces.js +1 -1
  428. package/dist/collection/components/tree/tree.js +1 -1
  429. package/dist/collection/components/tree-item/interfaces.js +1 -1
  430. package/dist/collection/components/tree-item/resources.js +1 -1
  431. package/dist/collection/components/tree-item/tree-item.js +1 -1
  432. package/dist/collection/components/value-list/resources.js +1 -1
  433. package/dist/collection/components/value-list/value-list.js +1 -1
  434. package/dist/collection/components/value-list-item/resources.js +1 -1
  435. package/dist/collection/components/value-list-item/value-list-item.js +1 -1
  436. package/dist/collection/utils/array.js +1 -1
  437. package/dist/collection/utils/conditionalSlot.js +1 -1
  438. package/dist/collection/utils/date.js +1 -1
  439. package/dist/collection/utils/dom.js +1 -1
  440. package/dist/collection/utils/filter.js +1 -1
  441. package/dist/collection/utils/form.js +1 -1
  442. package/dist/collection/utils/globalAttributes.js +1 -1
  443. package/dist/collection/utils/guid.js +1 -1
  444. package/dist/collection/utils/interactive.js +1 -1
  445. package/dist/collection/utils/key.js +1 -1
  446. package/dist/collection/utils/label.js +1 -1
  447. package/dist/collection/utils/locale.js +1 -1
  448. package/dist/collection/utils/math.js +1 -1
  449. package/dist/collection/utils/number.js +1 -1
  450. package/dist/collection/utils/observers.js +1 -1
  451. package/dist/collection/utils/popper.js +1 -1
  452. package/dist/collection/utils/resources.js +1 -1
  453. package/dist/collection/utils/time.js +1 -1
  454. package/dist/components/ExpandToggle.js +1 -1
  455. package/dist/components/Heading.js +1 -1
  456. package/dist/components/action-group.js +1 -1
  457. package/dist/components/action-menu.js +1 -1
  458. package/dist/components/action.js +1 -1
  459. package/dist/components/array.js +1 -1
  460. package/dist/components/button.js +1 -1
  461. package/dist/components/calcite-accordion-item.js +1 -1
  462. package/dist/components/calcite-accordion.js +1 -1
  463. package/dist/components/calcite-action-bar.js +1 -1
  464. package/dist/components/calcite-action-group.js +1 -1
  465. package/dist/components/calcite-action-menu.js +1 -1
  466. package/dist/components/calcite-action-pad.js +1 -1
  467. package/dist/components/calcite-action.js +1 -1
  468. package/dist/components/calcite-alert.js +1 -1
  469. package/dist/components/calcite-avatar.js +1 -1
  470. package/dist/components/calcite-block-section.js +1 -1
  471. package/dist/components/calcite-block.js +1 -1
  472. package/dist/components/calcite-button.js +1 -1
  473. package/dist/components/calcite-card.js +1 -1
  474. package/dist/components/calcite-checkbox.js +1 -1
  475. package/dist/components/calcite-chip.js +1 -1
  476. package/dist/components/calcite-color-picker-hex-input.js +1 -1
  477. package/dist/components/calcite-color-picker-swatch.js +1 -1
  478. package/dist/components/calcite-color-picker.js +7 -15
  479. package/dist/components/calcite-combobox-item-group.js +1 -1
  480. package/dist/components/calcite-combobox-item.js +1 -1
  481. package/dist/components/calcite-combobox.js +1 -1
  482. package/dist/components/calcite-date-picker-day.js +1 -1
  483. package/dist/components/calcite-date-picker-month-header.js +1 -1
  484. package/dist/components/calcite-date-picker-month.js +1 -1
  485. package/dist/components/calcite-date-picker.js +1 -1
  486. package/dist/components/calcite-dropdown-group.js +1 -1
  487. package/dist/components/calcite-dropdown-item.js +1 -1
  488. package/dist/components/calcite-dropdown.js +1 -1
  489. package/dist/components/calcite-fab.js +1 -1
  490. package/dist/components/calcite-filter.js +1 -1
  491. package/dist/components/calcite-flow.js +1 -1
  492. package/dist/components/calcite-graph.js +1 -1
  493. package/dist/components/calcite-handle.js +1 -1
  494. package/dist/components/calcite-icon.js +1 -1
  495. package/dist/components/calcite-inline-editable.js +1 -1
  496. package/dist/components/calcite-input-date-picker.js +1 -1
  497. package/dist/components/calcite-input-message.js +1 -1
  498. package/dist/components/calcite-input-time-picker.js +1 -1
  499. package/dist/components/calcite-input.js +1 -1
  500. package/dist/components/calcite-label.js +1 -1
  501. package/dist/components/calcite-link.js +1 -1
  502. package/dist/components/calcite-list-item-group.js +1 -1
  503. package/dist/components/calcite-list-item.js +1 -1
  504. package/dist/components/calcite-list.js +1 -1
  505. package/dist/components/calcite-loader.js +1 -1
  506. package/dist/components/calcite-modal.js +1 -1
  507. package/dist/components/calcite-notice.js +1 -1
  508. package/dist/components/calcite-option-group.js +1 -1
  509. package/dist/components/calcite-option.js +1 -1
  510. package/dist/components/calcite-pagination.js +1 -1
  511. package/dist/components/calcite-panel.js +1 -1
  512. package/dist/components/calcite-pick-list-group.js +1 -1
  513. package/dist/components/calcite-pick-list-item.js +1 -1
  514. package/dist/components/calcite-pick-list.js +1 -1
  515. package/dist/components/calcite-popover-manager.js +1 -1
  516. package/dist/components/calcite-popover.js +1 -1
  517. package/dist/components/calcite-progress.js +1 -1
  518. package/dist/components/calcite-radio-button-group.js +1 -1
  519. package/dist/components/calcite-radio-button.js +1 -1
  520. package/dist/components/calcite-radio-group-item.js +1 -1
  521. package/dist/components/calcite-radio-group.js +1 -1
  522. package/dist/components/calcite-rating.js +1 -1
  523. package/dist/components/calcite-scrim.js +1 -1
  524. package/dist/components/calcite-select.js +1 -1
  525. package/dist/components/calcite-shell-center-row.js +1 -1
  526. package/dist/components/calcite-shell-panel.js +1 -1
  527. package/dist/components/calcite-shell.js +1 -1
  528. package/dist/components/calcite-slider.js +1 -1
  529. package/dist/components/calcite-sortable-list.js +1 -1
  530. package/dist/components/calcite-split-button.js +1 -1
  531. package/dist/components/calcite-stepper-item.js +1 -1
  532. package/dist/components/calcite-stepper.js +1 -1
  533. package/dist/components/calcite-switch.js +1 -1
  534. package/dist/components/calcite-tab-nav.js +1 -1
  535. package/dist/components/calcite-tab-title.js +1 -1
  536. package/dist/components/calcite-tab.js +1 -1
  537. package/dist/components/calcite-tabs.js +1 -1
  538. package/dist/components/calcite-tile-select-group.js +1 -1
  539. package/dist/components/calcite-tile-select.js +1 -1
  540. package/dist/components/calcite-tile.js +1 -1
  541. package/dist/components/calcite-time-picker.js +1 -1
  542. package/dist/components/calcite-tip-group.js +1 -1
  543. package/dist/components/calcite-tip-manager.js +1 -1
  544. package/dist/components/calcite-tip.js +1 -1
  545. package/dist/components/calcite-tooltip-manager.js +1 -1
  546. package/dist/components/calcite-tooltip.js +1 -1
  547. package/dist/components/calcite-tree-item.js +1 -1
  548. package/dist/components/calcite-tree.js +1 -1
  549. package/dist/components/calcite-value-list-item.js +1 -1
  550. package/dist/components/calcite-value-list.js +1 -1
  551. package/dist/components/checkbox.js +1 -1
  552. package/dist/components/chip.js +1 -1
  553. package/dist/components/color-picker-hex-input.js +39 -49
  554. package/dist/components/color-picker-swatch.js +1 -1
  555. package/dist/components/conditionalSlot.js +1 -1
  556. package/dist/components/date-picker-day.js +1 -1
  557. package/dist/components/date-picker-month-header.js +1 -1
  558. package/dist/components/date-picker-month.js +1 -1
  559. package/dist/components/date-picker.js +1 -1
  560. package/dist/components/date.js +1 -1
  561. package/dist/components/debounce.js +1 -1
  562. package/dist/components/dom.js +1 -1
  563. package/dist/components/dropdown.js +1 -1
  564. package/dist/components/filter.js +1 -1
  565. package/dist/components/forIn.js +1 -1
  566. package/dist/components/form.js +1 -1
  567. package/dist/components/graph.js +1 -1
  568. package/dist/components/guid.js +1 -1
  569. package/dist/components/handle.js +1 -1
  570. package/dist/components/icon.js +1 -1
  571. package/dist/components/index.js +1 -1
  572. package/dist/components/input.js +1 -1
  573. package/dist/components/interactive.js +1 -1
  574. package/dist/components/interfaces.js +1 -1
  575. package/dist/components/interfaces2.js +1 -1
  576. package/dist/components/label.js +1 -1
  577. package/dist/components/label2.js +1 -1
  578. package/dist/components/link.js +1 -1
  579. package/dist/components/loader.js +1 -1
  580. package/dist/components/locale.js +1 -1
  581. package/dist/components/math.js +1 -1
  582. package/dist/components/number.js +1 -1
  583. package/dist/components/observers.js +1 -1
  584. package/dist/components/pick-list-item.js +1 -1
  585. package/dist/components/popover.js +1 -1
  586. package/dist/components/popper.js +1 -1
  587. package/dist/components/progress.js +1 -1
  588. package/dist/components/resources.js +1 -1
  589. package/dist/components/resources2.js +1 -1
  590. package/dist/components/resources3.js +1 -1
  591. package/dist/components/resources4.js +1 -1
  592. package/dist/components/resources5.js +1 -1
  593. package/dist/components/scrim.js +1 -1
  594. package/dist/components/shared-list-render.js +1 -1
  595. package/dist/components/sortable.esm.js +1 -1
  596. package/dist/components/switch.js +1 -1
  597. package/dist/components/tab-nav.js +1 -1
  598. package/dist/components/tab-title.js +1 -1
  599. package/dist/components/tab.js +1 -1
  600. package/dist/components/tabs.js +1 -1
  601. package/dist/components/tile.js +1 -1
  602. package/dist/components/time-picker.js +1 -1
  603. package/dist/components/tooltip-manager.js +1 -1
  604. package/dist/components/utils.js +1 -1
  605. package/dist/components/utils2.js +1 -1
  606. package/dist/custom-elements/index.js +44 -62
  607. package/dist/esm/{ExpandToggle-d1a28bdb.js → ExpandToggle-ca18a67c.js} +5 -5
  608. package/dist/esm/{Heading-82c4b013.js → Heading-f11ebf9e.js} +2 -2
  609. package/dist/esm/{array-0164f269.js → array-4f83f24b.js} +1 -1
  610. package/dist/esm/calcite-accordion_2.entry.js +4 -4
  611. package/dist/esm/calcite-action-bar.entry.js +10 -10
  612. package/dist/esm/calcite-action-group.entry.js +8 -8
  613. package/dist/esm/calcite-action-menu.entry.js +8 -8
  614. package/dist/esm/calcite-action-pad.entry.js +9 -9
  615. package/dist/esm/calcite-action.entry.js +4 -4
  616. package/dist/esm/calcite-alert.entry.js +5 -5
  617. package/dist/esm/calcite-avatar.entry.js +5 -5
  618. package/dist/esm/calcite-block_2.entry.js +8 -8
  619. package/dist/esm/calcite-button.entry.js +7 -7
  620. package/dist/esm/calcite-card.entry.js +6 -6
  621. package/dist/esm/calcite-checkbox.entry.js +7 -7
  622. package/dist/esm/calcite-chip.entry.js +6 -6
  623. package/dist/esm/calcite-color-picker_3.entry.js +51 -69
  624. package/dist/esm/calcite-combobox_3.entry.js +12 -12
  625. package/dist/esm/calcite-date-picker_4.entry.js +9 -9
  626. package/dist/esm/calcite-dropdown_3.entry.js +7 -7
  627. package/dist/esm/calcite-fab.entry.js +5 -5
  628. package/dist/esm/calcite-filter.entry.js +7 -7
  629. package/dist/esm/calcite-flow.entry.js +3 -3
  630. package/dist/esm/calcite-graph_2.entry.js +9 -9
  631. package/dist/esm/calcite-handle.entry.js +2 -2
  632. package/dist/esm/calcite-icon.entry.js +5 -5
  633. package/dist/esm/calcite-inline-editable.entry.js +7 -7
  634. package/dist/esm/calcite-input-date-picker.entry.js +11 -11
  635. package/dist/esm/calcite-input-message.entry.js +4 -4
  636. package/dist/esm/calcite-input-time-picker_2.entry.js +8 -8
  637. package/dist/esm/calcite-input.entry.js +11 -11
  638. package/dist/esm/calcite-label.entry.js +5 -5
  639. package/dist/esm/calcite-link.entry.js +5 -5
  640. package/dist/esm/calcite-list_3.entry.js +8 -8
  641. package/dist/esm/calcite-loader.entry.js +3 -3
  642. package/dist/esm/calcite-modal.entry.js +6 -6
  643. package/dist/esm/calcite-notice.entry.js +7 -7
  644. package/dist/esm/calcite-option_3.entry.js +8 -8
  645. package/dist/esm/calcite-pagination.entry.js +2 -2
  646. package/dist/esm/calcite-panel.entry.js +9 -9
  647. package/dist/esm/calcite-pick-list_3.entry.js +11 -11
  648. package/dist/esm/calcite-popover_2.entry.js +6 -6
  649. package/dist/esm/calcite-progress.entry.js +2 -2
  650. package/dist/esm/calcite-radio-button-group.entry.js +3 -3
  651. package/dist/esm/calcite-radio-button.entry.js +8 -8
  652. package/dist/esm/calcite-radio-group_2.entry.js +7 -7
  653. package/dist/esm/calcite-rating.entry.js +7 -7
  654. package/dist/esm/calcite-scrim.entry.js +2 -2
  655. package/dist/esm/calcite-shell_3.entry.js +7 -7
  656. package/dist/esm/calcite-sortable-list.entry.js +5 -5
  657. package/dist/esm/calcite-split-button.entry.js +3 -3
  658. package/dist/esm/calcite-stepper_2.entry.js +5 -5
  659. package/dist/esm/calcite-switch.entry.js +7 -7
  660. package/dist/esm/calcite-tab_4.entry.js +6 -6
  661. package/dist/esm/calcite-tile-select_2.entry.js +4 -4
  662. package/dist/esm/calcite-tile.entry.js +7 -7
  663. package/dist/esm/calcite-tip_3.entry.js +7 -7
  664. package/dist/esm/calcite-tooltip_2.entry.js +5 -5
  665. package/dist/esm/calcite-tree_2.entry.js +6 -6
  666. package/dist/esm/calcite-value-list_2.entry.js +11 -11
  667. package/dist/esm/calcite.js +2 -2
  668. package/dist/esm/{conditionalSlot-af628418.js → conditionalSlot-d5448f14.js} +3 -3
  669. package/dist/esm/{debounce-1ede02a9.js → debounce-7b126cc6.js} +1 -1
  670. package/dist/esm/{dom-6fe68fed.js → dom-1a733a04.js} +2 -2
  671. package/dist/esm/{forIn-588cba28.js → forIn-869d35ab.js} +2 -2
  672. package/dist/esm/{form-9e1071b9.js → form-a5480679.js} +3 -3
  673. package/dist/esm/{guid-b2303677.js → guid-115dda47.js} +1 -1
  674. package/dist/esm/{index-bb233658.js → index-44d9ef4d.js} +1 -1
  675. package/dist/esm/index.js +1 -1
  676. package/dist/esm/{interactive-f49ffc06.js → interactive-c581ef5d.js} +1 -1
  677. package/dist/esm/{interfaces-40e6e165.js → interfaces-7e63df65.js} +1 -1
  678. package/dist/esm/{label-b1f878b5.js → label-95e51ad2.js} +2 -2
  679. package/dist/esm/loader.js +2 -2
  680. package/dist/esm/{locale-bb59facb.js → locale-188b012c.js} +2 -2
  681. package/dist/esm/{math-f47b54ec.js → math-162ce8de.js} +1 -1
  682. package/dist/esm/{number-8026d17c.js → number-a279d402.js} +1 -1
  683. package/dist/esm/{observers-c49d1477.js → observers-145fb88a.js} +1 -1
  684. package/dist/esm/{popper-a55a532b.js → popper-d87672bd.js} +2 -2
  685. package/dist/esm/{resources-9fe24ed6.js → resources-59117fa5.js} +1 -1
  686. package/dist/esm/{resources-1a0e1a6f.js → resources-62d2964f.js} +1 -1
  687. package/dist/esm/{resources-41376b69.js → resources-9a693aa0.js} +3 -3
  688. package/dist/esm/{resources-c1dac82e.js → resources-e891ec3e.js} +5 -5
  689. package/dist/esm/{sortable.esm-a4a61dd1.js → sortable.esm-67a99cb6.js} +1 -1
  690. package/dist/esm/{utils-16d61ace.js → utils-99714bbf.js} +1 -1
  691. package/dist/esm-es5/{ExpandToggle-d1a28bdb.js → ExpandToggle-ca18a67c.js} +2 -2
  692. package/dist/esm-es5/{Heading-82c4b013.js → Heading-f11ebf9e.js} +2 -2
  693. package/dist/esm-es5/{array-0164f269.js → array-4f83f24b.js} +1 -1
  694. package/dist/esm-es5/calcite-accordion_2.entry.js +2 -2
  695. package/dist/esm-es5/calcite-action-bar.entry.js +2 -2
  696. package/dist/esm-es5/calcite-action-group.entry.js +2 -2
  697. package/dist/esm-es5/calcite-action-menu.entry.js +3 -3
  698. package/dist/esm-es5/calcite-action-pad.entry.js +3 -3
  699. package/dist/esm-es5/calcite-action.entry.js +2 -2
  700. package/dist/esm-es5/calcite-alert.entry.js +2 -2
  701. package/dist/esm-es5/calcite-avatar.entry.js +2 -2
  702. package/dist/esm-es5/calcite-block_2.entry.js +2 -2
  703. package/dist/esm-es5/calcite-button.entry.js +2 -2
  704. package/dist/esm-es5/calcite-card.entry.js +2 -2
  705. package/dist/esm-es5/calcite-checkbox.entry.js +2 -2
  706. package/dist/esm-es5/calcite-chip.entry.js +2 -2
  707. package/dist/esm-es5/calcite-color-picker_3.entry.js +2 -2
  708. package/dist/esm-es5/calcite-combobox_3.entry.js +2 -2
  709. package/dist/esm-es5/calcite-date-picker_4.entry.js +2 -2
  710. package/dist/esm-es5/calcite-dropdown_3.entry.js +2 -2
  711. package/dist/esm-es5/calcite-fab.entry.js +2 -2
  712. package/dist/esm-es5/calcite-filter.entry.js +2 -2
  713. package/dist/esm-es5/calcite-flow.entry.js +2 -2
  714. package/dist/esm-es5/calcite-graph_2.entry.js +2 -2
  715. package/dist/esm-es5/calcite-handle.entry.js +2 -2
  716. package/dist/esm-es5/calcite-icon.entry.js +2 -2
  717. package/dist/esm-es5/calcite-inline-editable.entry.js +2 -2
  718. package/dist/esm-es5/calcite-input-date-picker.entry.js +2 -2
  719. package/dist/esm-es5/calcite-input-message.entry.js +2 -2
  720. package/dist/esm-es5/calcite-input-time-picker_2.entry.js +2 -2
  721. package/dist/esm-es5/calcite-input.entry.js +2 -2
  722. package/dist/esm-es5/calcite-label.entry.js +2 -2
  723. package/dist/esm-es5/calcite-link.entry.js +3 -3
  724. package/dist/esm-es5/calcite-list_3.entry.js +2 -2
  725. package/dist/esm-es5/calcite-loader.entry.js +2 -2
  726. package/dist/esm-es5/calcite-modal.entry.js +2 -2
  727. package/dist/esm-es5/calcite-notice.entry.js +2 -2
  728. package/dist/esm-es5/calcite-option_3.entry.js +2 -2
  729. package/dist/esm-es5/calcite-pagination.entry.js +2 -2
  730. package/dist/esm-es5/calcite-panel.entry.js +2 -2
  731. package/dist/esm-es5/calcite-pick-list_3.entry.js +2 -2
  732. package/dist/esm-es5/calcite-popover_2.entry.js +2 -2
  733. package/dist/esm-es5/calcite-progress.entry.js +2 -2
  734. package/dist/esm-es5/calcite-radio-button-group.entry.js +2 -2
  735. package/dist/esm-es5/calcite-radio-button.entry.js +2 -2
  736. package/dist/esm-es5/calcite-radio-group_2.entry.js +2 -2
  737. package/dist/esm-es5/calcite-rating.entry.js +2 -2
  738. package/dist/esm-es5/calcite-scrim.entry.js +2 -2
  739. package/dist/esm-es5/calcite-shell_3.entry.js +2 -2
  740. package/dist/esm-es5/calcite-sortable-list.entry.js +2 -2
  741. package/dist/esm-es5/calcite-split-button.entry.js +2 -2
  742. package/dist/esm-es5/calcite-stepper_2.entry.js +2 -2
  743. package/dist/esm-es5/calcite-switch.entry.js +2 -2
  744. package/dist/esm-es5/calcite-tab_4.entry.js +2 -2
  745. package/dist/esm-es5/calcite-tile-select_2.entry.js +2 -2
  746. package/dist/esm-es5/calcite-tile.entry.js +2 -2
  747. package/dist/esm-es5/calcite-tip_3.entry.js +2 -2
  748. package/dist/esm-es5/calcite-tooltip_2.entry.js +2 -2
  749. package/dist/esm-es5/calcite-tree_2.entry.js +2 -2
  750. package/dist/esm-es5/calcite-value-list_2.entry.js +2 -2
  751. package/dist/esm-es5/calcite.js +2 -2
  752. package/dist/esm-es5/{conditionalSlot-af628418.js → conditionalSlot-d5448f14.js} +2 -2
  753. package/dist/esm-es5/{debounce-1ede02a9.js → debounce-7b126cc6.js} +1 -1
  754. package/dist/esm-es5/{dom-6fe68fed.js → dom-1a733a04.js} +2 -2
  755. package/dist/esm-es5/{forIn-588cba28.js → forIn-869d35ab.js} +2 -2
  756. package/dist/esm-es5/{form-9e1071b9.js → form-a5480679.js} +2 -2
  757. package/dist/esm-es5/{guid-b2303677.js → guid-115dda47.js} +1 -1
  758. package/dist/esm-es5/{index-bb233658.js → index-44d9ef4d.js} +1 -1
  759. package/dist/esm-es5/index.js +1 -1
  760. package/dist/esm-es5/{interactive-f49ffc06.js → interactive-c581ef5d.js} +1 -1
  761. package/dist/esm-es5/{interfaces-40e6e165.js → interfaces-7e63df65.js} +1 -1
  762. package/dist/esm-es5/{label-b1f878b5.js → label-95e51ad2.js} +2 -2
  763. package/dist/esm-es5/loader.js +2 -2
  764. package/dist/esm-es5/{locale-bb59facb.js → locale-188b012c.js} +2 -2
  765. package/dist/esm-es5/{math-f47b54ec.js → math-162ce8de.js} +1 -1
  766. package/dist/esm-es5/{number-8026d17c.js → number-a279d402.js} +1 -1
  767. package/dist/esm-es5/{observers-c49d1477.js → observers-145fb88a.js} +1 -1
  768. package/dist/esm-es5/{popper-a55a532b.js → popper-d87672bd.js} +2 -2
  769. package/dist/esm-es5/{resources-9fe24ed6.js → resources-59117fa5.js} +1 -1
  770. package/dist/esm-es5/{resources-1a0e1a6f.js → resources-62d2964f.js} +1 -1
  771. package/dist/esm-es5/{resources-41376b69.js → resources-9a693aa0.js} +2 -2
  772. package/dist/esm-es5/{resources-c1dac82e.js → resources-e891ec3e.js} +2 -2
  773. package/dist/esm-es5/{sortable.esm-a4a61dd1.js → sortable.esm-67a99cb6.js} +1 -1
  774. package/dist/esm-es5/{utils-16d61ace.js → utils-99714bbf.js} +1 -1
  775. package/dist/extras/docs-json.json +1 -1
  776. package/dist/loader/cdn.js +1 -1
  777. package/dist/loader/index.cjs.js +1 -1
  778. package/dist/loader/index.es2017.js +1 -1
  779. package/dist/loader/index.js +1 -1
  780. package/dist/types/components/color-picker-hex-input/color-picker-hex-input.d.ts +1 -0
  781. package/hydrate/index.js +44 -62
  782. package/package.json +1 -1
  783. package/dist/calcite/p-14e14d92.js +0 -6
  784. package/dist/calcite/p-457c92f7.js +0 -6
  785. package/dist/calcite/p-51b36548.system.js +0 -6
  786. package/dist/calcite/p-5a8ab8fc.js +0 -6
  787. package/dist/calcite/p-80312273.entry.js +0 -6
  788. package/dist/calcite/p-88d7ad65.system.js +0 -6
  789. package/dist/calcite/p-92f34e86.entry.js +0 -6
  790. package/dist/calcite/p-95f9902c.js +0 -6
  791. package/dist/calcite/p-9b92b990.system.entry.js +0 -6
  792. package/dist/calcite/p-aacc19af.entry.js +0 -6
  793. package/dist/calcite/p-acf60eed.entry.js +0 -6
package/hydrate/index.js CHANGED
@@ -1,7 +1,7 @@
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-next.435
4
+ * v1.0.0-next.436
5
5
  */
6
6
  'use strict';
7
7
 
@@ -12750,14 +12750,10 @@ class ColorPicker {
12750
12750
  this.drawColorFieldAndSlider();
12751
12751
  this.updateChannelsFromColor(color);
12752
12752
  this.previousColor = oldColor;
12753
- if (this.internalColorUpdateContext) {
12754
- return;
12755
- }
12756
- this.value = this.toValue(color);
12757
12753
  }
12758
12754
  handleFormatChange(format) {
12759
12755
  this.setMode(format);
12760
- this.value = this.toValue(this.color);
12756
+ this.internalColorSet(this.color, false);
12761
12757
  }
12762
12758
  handleScaleChange(scale = "m") {
12763
12759
  this.updateDimensions(scale);
@@ -12777,10 +12773,10 @@ class ColorPicker {
12777
12773
  this.setMode(nextMode);
12778
12774
  }
12779
12775
  const dragging = this.sliderThumbState === "drag" || this.hueThumbState === "drag";
12780
- if (this.internalColorUpdateContext) {
12781
- if (this.internalColorUpdateContext === "initial") {
12782
- return;
12783
- }
12776
+ if (this.internalColorUpdateContext === "initial") {
12777
+ return;
12778
+ }
12779
+ if (this.internalColorUpdateContext === "internal") {
12784
12780
  this.calciteColorPickerInput.emit();
12785
12781
  if (!dragging) {
12786
12782
  this.calciteColorPickerChange.emit();
@@ -12790,11 +12786,7 @@ class ColorPicker {
12790
12786
  const color$1 = allowEmpty && !value ? null : color(value);
12791
12787
  const colorChanged = !colorEqual(color$1, this.color);
12792
12788
  if (modeChanged || colorChanged) {
12793
- this.color = color$1;
12794
- this.calciteColorPickerInput.emit();
12795
- if (!dragging) {
12796
- this.calciteColorPickerChange.emit();
12797
- }
12789
+ this.internalColorSet(color$1);
12798
12790
  }
12799
12791
  }
12800
12792
  //--------------------------------------------------------------------------
@@ -13179,32 +13171,13 @@ class ColorPickerHexInput {
13179
13171
  : this.formatForInternalInput(rgbToHex(this.internalColor.object()));
13180
13172
  };
13181
13173
  this.onInputChange = () => {
13182
- const inputValue = this.inputNode.value;
13183
- let value;
13184
- if (inputValue) {
13185
- const hex = inputValue;
13186
- const color = hexToRGB(`#${hex}`);
13187
- if (!color) {
13188
- return;
13189
- }
13190
- value = normalizeHex(hex);
13191
- }
13192
- else if (this.allowEmpty) {
13193
- value = null;
13194
- }
13195
- this.value = value;
13196
- this.calciteColorPickerHexInputChange.emit();
13174
+ this.internalSetValue(this.inputNode.value, this.value);
13197
13175
  };
13198
13176
  /**
13199
13177
  * The last valid/selected color. Used as a fallback if an invalid hex code is entered.
13200
13178
  */
13201
13179
  this.internalColor = DEFAULT_COLOR;
13202
13180
  this.previousNonNullValue = this.value;
13203
- //--------------------------------------------------------------------------
13204
- //
13205
- // Private Methods
13206
- //
13207
- //--------------------------------------------------------------------------
13208
13181
  this.storeInputRef = (node) => {
13209
13182
  this.inputNode = node;
13210
13183
  };
@@ -13219,38 +13192,16 @@ class ColorPickerHexInput {
13219
13192
  if (value) {
13220
13193
  const normalized = normalizeHex(value);
13221
13194
  if (isValidHex(normalized)) {
13222
- this.internalColor = color(normalized);
13223
- this.value = normalized;
13195
+ this.internalSetValue(normalized, normalized, false);
13224
13196
  }
13225
13197
  return;
13226
13198
  }
13227
13199
  if (allowEmpty) {
13228
- this.internalColor = null;
13229
- this.value = null;
13200
+ this.internalSetValue(null, null, false);
13230
13201
  }
13231
13202
  }
13232
13203
  handleValueChange(value, oldValue) {
13233
- if (value) {
13234
- const normalized = normalizeHex(value);
13235
- if (isValidHex(normalized)) {
13236
- const { internalColor } = this;
13237
- const changed = !internalColor || normalized !== normalizeHex(internalColor.hex());
13238
- this.internalColor = color(normalized);
13239
- this.previousNonNullValue = normalized;
13240
- this.value = normalized;
13241
- if (changed) {
13242
- this.calciteColorPickerHexInputChange.emit();
13243
- }
13244
- return;
13245
- }
13246
- }
13247
- else if (this.allowEmpty) {
13248
- this.internalColor = null;
13249
- this.value = null;
13250
- this.calciteColorPickerHexInputChange.emit();
13251
- return;
13252
- }
13253
- this.value = oldValue;
13204
+ this.internalSetValue(value, oldValue, false);
13254
13205
  }
13255
13206
  // using @Listen as a workaround for VDOM listener not firing
13256
13207
  onInputKeyDown(event) {
@@ -13262,15 +13213,16 @@ class ColorPickerHexInput {
13262
13213
  return;
13263
13214
  }
13264
13215
  const isNudgeKey = key === "ArrowDown" || key === "ArrowUp";
13216
+ const oldValue = this.value;
13265
13217
  if (isNudgeKey) {
13266
13218
  if (!value) {
13267
- this.value = this.previousNonNullValue;
13219
+ this.internalSetValue(this.previousNonNullValue, oldValue);
13268
13220
  event.preventDefault();
13269
13221
  return;
13270
13222
  }
13271
13223
  const direction = key === "ArrowUp" ? 1 : -1;
13272
13224
  const bump = shiftKey ? 10 : 1;
13273
- this.value = normalizeHex(this.nudgeRGBChannels(internalColor, bump * direction).hex());
13225
+ this.internalSetValue(normalizeHex(this.nudgeRGBChannels(internalColor, bump * direction).hex()), oldValue);
13274
13226
  event.preventDefault();
13275
13227
  return;
13276
13228
  }
@@ -13300,6 +13252,36 @@ class ColorPickerHexInput {
13300
13252
  async setFocus() {
13301
13253
  focusElement(this.inputNode);
13302
13254
  }
13255
+ //--------------------------------------------------------------------------
13256
+ //
13257
+ // Private Methods
13258
+ //
13259
+ //--------------------------------------------------------------------------
13260
+ internalSetValue(value, oldValue, emit = true) {
13261
+ if (value) {
13262
+ const normalized = normalizeHex(value);
13263
+ if (isValidHex(normalized)) {
13264
+ const { internalColor } = this;
13265
+ const changed = !internalColor || normalized !== normalizeHex(internalColor.hex());
13266
+ this.internalColor = color(normalized);
13267
+ this.previousNonNullValue = normalized;
13268
+ this.value = normalized;
13269
+ if (changed && emit) {
13270
+ this.calciteColorPickerHexInputChange.emit();
13271
+ }
13272
+ return;
13273
+ }
13274
+ }
13275
+ else if (this.allowEmpty) {
13276
+ this.internalColor = null;
13277
+ this.value = null;
13278
+ if (emit) {
13279
+ this.calciteColorPickerHexInputChange.emit();
13280
+ }
13281
+ return;
13282
+ }
13283
+ this.value = oldValue;
13284
+ }
13303
13285
  formatForInternalInput(hex) {
13304
13286
  return hex ? hex.replace("#", "") : "";
13305
13287
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esri/calcite-components",
3
- "version": "1.0.0-next.435",
3
+ "version": "1.0.0-next.436",
4
4
  "description": "Web Components for Esri's Calcite Design System.",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -1,6 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.435
5
- */
6
- import{c as n}from"./p-ed386ce4.js";import{h as t}from"./p-953fb9e4.js";function e(n){return"checked"in n}const o=new WeakMap,i=new WeakSet;function r(t){const{el:o,value:r}=t,c=n(o,"form");if(!c||function(n,t){const e="calciteInternalFormComponentRegister";let o=!1;return n.addEventListener(e,(n=>{o=n.composedPath().some((n=>i.has(n))),n.stopPropagation()}),{once:!0}),t.dispatchEvent(new CustomEvent(e,{bubbles:!0,composed:!0})),o}(c,o))return;t.formEl=c,t.defaultValue=r,e(t)&&(t.defaultChecked=t.checked);const u=(t.onFormReset||s).bind(t);c.addEventListener("reset",u),i.add(o)}function s(){e(this)?this.checked=this.defaultChecked:this.value=this.defaultValue}function c(n){const{el:t,formEl:e}=n;if(!e)return;const r=o.get(t);e.removeEventListener("reset",r),o.delete(t),n.formEl=null,i.delete(t)}function u(n,t){n.defaultValue=t}function l(n,t,o){var i;const{defaultValue:r,disabled:s,name:c,required:u}=n;t.defaultValue=r,t.disabled=s,t.name=c,t.required=u,t.tabIndex=-1,e(n)?(t.defaultChecked=n.defaultChecked,t.value=n.checked?o||"on":"",s||n.checked||(t.disabled=!0)):t.value=o||"",null===(i=n.syncHiddenFormInput)||void 0===i||i.call(n,t)}const f=({component:n})=>(function(n){const{el:t,formEl:e,name:o,value:i}=n,{ownerDocument:r}=t,s=t.querySelectorAll('input[slot="hidden-form-input"]');if(!e||!o)return void s.forEach((n=>n.remove()));const c=Array.isArray(i)?i:[i],u=[],f=new Set;let a;s.forEach((t=>{const e=c.find((n=>n==t.value));null!=e?(f.add(e),l(n,t,e)):u.push(t)})),c.forEach((t=>{if(f.has(t))return;let e=u.pop();e||(e=r.createElement("input"),e.slot="hidden-form-input"),a||(a=r.createDocumentFragment()),a.append(e),l(n,e,t)})),a&&t.append(a),u.forEach((n=>n.remove()))}(n),t("slot",{name:"hidden-form-input"}));export{f as H,u as a,r as c,c as d}
@@ -1,6 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.435
5
- */
6
- import{h as t}from"./p-953fb9e4.js";function e(t){return Math.min(Math.max(Math.ceil(t),1),6)}const r=(e,r)=>{const n=`h${e.level}`;return delete e.level,t(n,Object.assign({},e),r)};export{r as H,e as c}
@@ -1,6 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.435
5
- */
6
- System.register(["./p-f80c738f.system.js"],(function(r){"use strict";var t,n;return{setters:[function(r){t=r.a;n=r.b}],execute:function(){r({d:a,g:f,l:c});var e=r("a",["ar","bg","bs","ca","cs","da","de","de-CH","el","en","en-AU","en-CA","en-GB","es","es-MX","et","fi","fr","fr-CH","he","hi","hr","hu","id","it","it-CH","ja","ko","lt","lv","mk","nb","nl","pl","pt","pt-PT","ro","ru","sk","sl","sr","sv","th","tr","uk","vi","zh-CN","zh-HK","zh-TW"]);function u(r){return new Intl.NumberFormat(r,{minimumFractionDigits:0,maximumFractionDigits:20})}function a(r,n){return t(r,(function(r){if(r){var t=i(n);var e=f(n);var u=r.split("");var a=u.lastIndexOf(e);var c=u.map((function(r,n){if(r===t||r===e&&n!==a){return""}return r})).reduce((function(r,t){return r+t})).replace(e,".");return isNaN(Number(c))?r:c}return r}))}function i(r){var t=u(r);var n=t.formatToParts(1234567.8);var e=n.find((function(r){return r.type==="group"})).value;return e.trim().length===0?" ":e}function f(r){var t=u(r);var n=t.formatToParts(1234567.8);var e=n.find((function(r){return r.type==="decimal"})).value;return e.trim().length===0?" ":e}function c(r,e,a){if(a===void 0){a=false}return t(r,(function(r){if(r){var t=Number(n(r));if(!isNaN(t)){var c=u(e);var o=c.formatToParts(t);var s=o.map((function(r){var t=r.type,n=r.value;switch(t){case"group":return a?i(e):"";case"decimal":return f(e);default:return n}})).reduce((function(r,t){return r+t}));return s}return r}}))}}}}));
@@ -1,6 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.435
5
- */
6
- import{f as t}from"./p-953fb9e4.js";import{c as o}from"./p-48bd2b43.js";const n=new Set;let s;const c={childList:!0};function f(t){s||(s=o("mutation",r)),s.observe(t.el,c)}function i(t){n.delete(t.el),r(s.takeRecords()),s.disconnect();for(const[t]of n.entries())s.observe(t,c)}function r(o){o.forEach((({target:o})=>{t(o)}))}export{f as c,i as d}
@@ -1,6 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.435
5
- */
6
- import{r as t,c as e,h as i,H as a,g as n}from"./p-953fb9e4.js";import{f as o,n as r,g as c,a as s,C as l,k as m}from"./p-ed386ce4.js";import{c as d,d as h}from"./p-5a8ab8fc.js";import"./p-c69b4da9.js";import"./p-48bd2b43.js";var f;!function(t){t.Single="single",t.Multi="multi",t.Children="children",t.MultiChildren="multi-children",t.Ancestors="ancestors"}(f||(f={}));const p=class{constructor(i){t(this,i),this.calciteTreeSelect=e(this,"calciteTreeSelect",7),this.lines=!1,this.inputEnabled=!1,this.scale="m",this.selectionMode=f.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===f.Multi||this.selectionMode===f.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===f.Ancestors&&!this.child)return void this.updateAncestorTree(t);const a=t.detail.modifyCurrentSelection&&(this.selectionMode===f.Multi||this.selectionMode===f.MultiChildren),n=this.selectionMode===f.MultiChildren||this.selectionMode===f.Children,o=!a&&((this.selectionMode===f.Single||this.selectionMode===f.Multi)&&i.length<=0||this.selectionMode===f.Children||this.selectionMode===f.MultiChildren),c=this.selectionMode===f.Children||this.selectionMode===f.MultiChildren;if(!this.child){const s=[];null!==this.selectionMode&&(!e.hasChildren||e.hasChildren&&(this.selectionMode===f.Children||this.selectionMode===f.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))})}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)}};p.style="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing: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;outline:2px solid transparent;outline-offset:2px}";const b=class{constructor(i){t(this,i),this.calciteTreeItemSelect=e(this,"calciteTreeItemSelect",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===f.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===f.Multi||this.selectionMode===f.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(){h(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===f.Single||this.selectionMode===f.Children,n=this.selectionMode===f.Multi||this.selectionMode===f.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===f.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,m=e?"bullet-point":n?"check":null,d=m?i("calcite-icon",{class:{"bullet-point":"bullet-point"===m,checkmark:"check"===m,[l.rtl]:t},icon:m,scale:"s"}):null,h=!(this.parentExpanded||1===this.depth);return i(a,{"aria-expanded":this.hasChildren?this.expanded.toString():void 0,"aria-hidden":h.toString(),"aria-selected":this.selected?"true":n?"false":void 0,"calcite-hydrated-hidden":h,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]=m(this.el,"a");e&&"a"!==t.composedPath()[0].tagName.toLowerCase()&&window.open(e.href,""===e.target?"_self":e.target),this.calciteTreeItemSelect.emit({modifyCurrentSelection:this.selectionMode===f.Ancestors||this.isSelectionMultiLike,forceToggle:!1})}keyDownHandler(t){let e;switch(t.key){case" ":this.calciteTreeItemSelect.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.calciteTreeItemSelect.emit({modifyCurrentSelection:this.isSelectionMultiLike,forceToggle:!1}),t.preventDefault();break;case"Home":e=this.el.closest("calcite-tree:not([child])"),e.querySelector("calcite-tree-item").focus();break;case"End":e=this.el.closest("calcite-tree:not([child])");let a=e.children[e.children.length-1],n=r(a.children).find((t=>t.matches("calcite-tree")));for(;n;)a=n.children[e.children.length-1],n=r(a.children).find((t=>t.matches("calcite-tree")));a.focus()}}get el(){return n(this)}static get watchers(){return{expanded:["expandedHandler"],selectionMode:["getselectionMode"]}}};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;max-width:100%;cursor:pointer;color:var(--calcite-ui-text-3);outline:2px solid transparent;outline-offset:2px}: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-property:all;transition-property:all;-webkit-transition-duration:var(--calcite-animation-timing);transition-duration:var(--calcite-animation-timing);-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay: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-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}:host(:focus){outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.checkbox{outline:2px solid transparent;outline-offset:2px;line-height:0}.checkbox-label{pointer-events:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.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-property:all;transition-property:all;-webkit-transition-duration:var(--calcite-animation-timing);transition-duration:var(--calcite-animation-timing);-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay: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-property:all;transition-property:all;-webkit-transition-duration:var(--calcite-animation-timing);transition-duration:var(--calcite-animation-timing);-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay: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{p as calcite_tree,b as calcite_tree_item}
@@ -1,6 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.435
5
- */
6
- System.register(["./p-f9ff8aba.system.js"],(function(e){"use strict";var t,n;return{setters:[function(e){t=e.q;n=e.c}],execute:function(){e({c:s,d:d,g:f});var r="calciteInternalLabelClick";var a=e("l","calciteInternalLabelConnected");var i=e("a","calciteInternaLabelDisconnected");var l="calcite-label";var c=new WeakMap;var o=new Set;var v=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 s(e){var t=v(e.el);if(c.has(t)){return}var n=m.bind(e);var l=E.bind(e);if(t){var u=function(){e.labelEl=t;var n=b.bind(e);c.set(e.labelEl,n);e.labelEl.addEventListener(r,n)};u();o.delete(e);document.removeEventListener(a,n);document.addEventListener(i,l)}else if(!t&&!o.has(e)){l();document.removeEventListener(i,l)}}function d(e){var t=m.bind(e);var n=E.bind(e);o.delete(e);document.removeEventListener(a,t);document.removeEventListener(i,n);if(!e.labelEl){return}var l=c.get(e.labelEl);e.labelEl.removeEventListener(r,l);c.delete(e.labelEl)}function f(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 b(e){if(this.disabled){return}var t=this.el.contains(e.detail.sourceEvent.target);if(t){return}this.onLabelClick(e)}function m(){if(o.has(this)){s(this)}}function E(){o.add(this);var e=m.bind(this);document.addEventListener(a,e)}}}}));
@@ -1,6 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.435
5
- */
6
- import{a as t,r as a,h as i,H as n,g as e}from"./p-953fb9e4.js";import{a as r}from"./p-ed386ce4.js";import{c as s}from"./p-48bd2b43.js";import"./p-c69b4da9.js";const o={},c={},l={s:16,m:24,l:32};const m=class{constructor(t){a(this,t),this.icon=null,this.flipRtl=!1,this.scale="m",this.visible=!1}connectedCallback(){this.waitUntilVisible((()=>{this.visible=!0,this.loadIconPathData()}))}disconnectedCallback(){var t;null===(t=this.intersectionObserver)||void 0===t||t.disconnect(),this.intersectionObserver=null}async componentWillLoad(){this.loadIconPathData()}render(){const{el:t,flipRtl:a,pathData:e,scale:s,textLabel:o}=this,c=r(t),m=l[s],h=!!o,f=[].concat(e||"");return i(n,{"aria-hidden":(!h).toString(),"aria-label":h?o:null,role:h?"img":null},i("svg",{class:{"flip-rtl":"rtl"===c&&a,svg:!0},fill:"currentColor",height:"100%",viewBox:`0 0 ${m} ${m}`,width:"100%",xmlns:"http://www.w3.org/2000/svg"},f.map((t=>i("path","string"==typeof t?{d:t}:{d:t.d,opacity:"opacity"in t?t.opacity:1})))))}async loadIconPathData(){const{icon:a,scale:i,visible:n}=this;a&&n&&(this.pathData=await async function({icon:a,scale:i}){const n=l[i],e=function(t){const a=!isNaN(Number(t.charAt(0))),i=t.split("-");return 1===i.length?a?`i${t}`:t:i.map(((t,i)=>0===i?a?`i${t.toUpperCase()}`:t:t.charAt(0).toUpperCase()+t.slice(1))).join("")}(a),r="F"===e.charAt(e.length-1),s=`${r?e.substring(0,e.length-1):e}${n}${r?"F":""}`;if(o[s])return o[s];c[s]||(c[s]=fetch(t(`./assets/icon/${s}.json`)).then((t=>t.json())).catch((()=>(console.error(`"${s}" is not a valid calcite-ui-icon name`),""))));const m=await c[s];return o[s]=m,m}({icon:a,scale:i}))}waitUntilVisible(t){this.intersectionObserver=s("intersection",(a=>{a.forEach((a=>{a.isIntersecting&&(this.intersectionObserver.disconnect(),this.intersectionObserver=null,t())}))}),{rootMargin:"50px"}),this.intersectionObserver?this.intersectionObserver.observe(this.el):t()}static get assetsDirs(){return["assets"]}get el(){return e(this)}static get watchers(){return{icon:["loadIconPathData"],scale:["loadIconPathData"]}}};m.style="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing: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-inline-flexbox;display:inline-flex;color:var(--calcite-ui-icon-color)}:host([scale=s]){height:1rem;width:1rem;min-width:1rem;min-height:1rem}:host([scale=m]){height:1.5rem;width:1.5rem;min-width:1.5rem;min-height:1.5rem}:host([scale=l]){height:2rem;width:2rem;min-width:2rem;min-height:2rem}.flip-rtl{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.svg{display:block}";export{m as calcite_icon}
@@ -1,6 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.435
5
- */
6
- import{q as n,c as e}from"./p-ed386ce4.js";const t="calciteInternalLabelConnected",c="calciteInternaLabelDisconnected",o=new WeakMap,a=new Set;function l(t){const c=(t=>{const{id:c}=t,o=c&&n(t,{selector:`calcite-label[for="${c}"]`});if(o)return o;const a=e(t,"calcite-label");return!a||function(n,e){let t;const c="custom-element-ancestor-check",o=c=>{c.stopImmediatePropagation();const o=c.composedPath();t=o.slice(o.indexOf(e),o.indexOf(n))};return n.addEventListener(c,o,{once:!0}),e.dispatchEvent(new CustomEvent(c,{composed:!0,bubbles:!0})),n.removeEventListener(c,o),t.filter((t=>t!==e&&t!==n)).filter((n=>{var e;return null===(e=n.tagName)||void 0===e?void 0:e.includes("-")})).length>0}(a,t)?null:a})(t.el);if(o.has(c))return;const l=u.bind(t),i=d.bind(t);c?((()=>{t.labelEl=c;const n=r.bind(t);o.set(t.labelEl,n),t.labelEl.addEventListener("calciteInternalLabelClick",n)})(),a.delete(t),document.removeEventListener("calciteInternalLabelConnected",l),document.addEventListener("calciteInternaLabelDisconnected",i)):c||a.has(t)||(i(),document.removeEventListener("calciteInternaLabelDisconnected",i))}function i(n){const e=u.bind(n),t=d.bind(n);if(a.delete(n),document.removeEventListener("calciteInternalLabelConnected",e),document.removeEventListener("calciteInternaLabelDisconnected",t),!n.labelEl)return;const c=o.get(n.labelEl);n.labelEl.removeEventListener("calciteInternalLabelClick",c),o.delete(n.labelEl)}function s(n){var e,t;return n.label||(null===(t=null===(e=n.labelEl)||void 0===e?void 0:e.textContent)||void 0===t?void 0:t.trim())||""}function r(n){this.disabled||this.el.contains(n.detail.sourceEvent.target)||this.onLabelClick(n)}function u(){a.has(this)&&l(this)}function d(){a.add(this);const n=u.bind(this);document.addEventListener("calciteInternalLabelConnected",n)}export{c as a,l as c,i as d,s as g,t as l}
@@ -1,6 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,r,a){function n(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function o(e){try{s(a.next(e))}catch(e){i(e)}}function l(e){try{s(a["throw"](e))}catch(e){i(e)}}function s(e){e.done?r(e.value):n(e.value).then(o,l)}s((a=a.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},a,n,i,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 s([e,t])}}function s(o){if(a)throw new TypeError("Generator is already executing.");while(r)try{if(a=1,n&&(i=o[0]&2?n["return"]:o[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;if(n=0,i)o=[o[0]&2,i.value];switch(o[0]){case 0:case 1:i=o;break;case 4:r.label++;return{value:o[1],done:false};case 5:r.label++;n=o[1];o=[0];continue;case 7:o=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){r.label=o[1];break}if(o[0]===6&&r.label<i[1]){r.label=i[1];i=o;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(o);break}if(i[2])r.ops.pop();r.trys.pop();continue}o=t.call(e,r)}catch(e){o=[6,e];n=0}finally{a=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var a=0,n=t.length,i;a<n;a++){if(i||!(a in t)){if(!i)i=Array.prototype.slice.call(t,0,a);i[a]=t[a]}}return e.concat(i||Array.prototype.slice.call(t))};
2
- /*!
3
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
4
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
5
- * v1.0.0-next.435
6
- */System.register(["./p-233bcc9c.system.js","./p-f9ff8aba.system.js","./p-36afb7db.system.js","./p-07e5cd9f.system.js","./p-7e3226f9.system.js","./p-1eebd037.system.js","./p-2e3ba750.system.js"],(function(e){"use strict";var t,r,a,n,i,o,l,s,c,h,u,d,v,f,p,m,g,b,y;return{setters:[function(e){t=e.r;r=e.c;a=e.h;n=e.g},function(e){i=e.f;o=e.b},function(e){l=e.n;s=e.C;c=e.p;h=e.c;u=e.i;d=e.a;v=e.r;f=e.h;p=e.b},function(e){m=e.c},function(e){g=e.u},function(e){b=e.d;y=e.i},function(){}],execute:function(){var w="Expected a function";function C(e,t,r){var a=true,n=true;if(typeof e!="function"){throw new TypeError(w)}if(y(r)){a="leading"in r?!!r.leading:a;n="trailing"in r?!!r.trailing:n}return b(e,t,{leading:a,maxWait:t,trailing:n})}function k(e,t,r){return r={path:t,exports:{},require:function(e,t){return x()}},e(r,r.exports),r.exports}function x(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var S={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};var M=function e(t){if(!t||typeof t==="string"){return false}return t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&t.constructor.name!=="String")};var D=k((function(e){var t=Array.prototype.concat;var r=Array.prototype.slice;var a=e.exports=function e(a){var n=[];for(var i=0,o=a.length;i<o;i++){var l=a[i];if(M(l)){n=t.call(n,r.call(l))}else{n.push(l)}}return n};a.wrap=function(e){return function(){return e(a(arguments))}}}));var F=k((function(e){var t=Object.hasOwnProperty;var r={};for(var a in S){if(t.call(S,a)){r[S[a]]=a}}var n=e.exports={to:{},get:{}};n.get=function(e){var t=e.substring(0,3).toLowerCase();var r;var a;switch(t){case"hsl":r=n.get.hsl(e);a="hsl";break;case"hwb":r=n.get.hwb(e);a="hwb";break;default:r=n.get.rgb(e);a="rgb";break}if(!r){return null}return{model:a,value:r}};n.get.rgb=function(e){if(!e){return null}var r=/^#([a-f0-9]{3,4})$/i;var a=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i;var n=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/;var o=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/;var l=/^(\w+)$/;var s=[0,0,0,1];var c;var h;var u;if(c=e.match(a)){u=c[2];c=c[1];for(h=0;h<3;h++){var d=h*2;s[h]=parseInt(c.slice(d,d+2),16)}if(u){s[3]=parseInt(u,16)/255}}else if(c=e.match(r)){c=c[1];u=c[3];for(h=0;h<3;h++){s[h]=parseInt(c[h]+c[h],16)}if(u){s[3]=parseInt(u+u,16)/255}}else if(c=e.match(n)){for(h=0;h<3;h++){s[h]=parseInt(c[h+1],0)}if(c[4]){if(c[5]){s[3]=parseFloat(c[4])*.01}else{s[3]=parseFloat(c[4])}}}else if(c=e.match(o)){for(h=0;h<3;h++){s[h]=Math.round(parseFloat(c[h+1])*2.55)}if(c[4]){if(c[5]){s[3]=parseFloat(c[4])*.01}else{s[3]=parseFloat(c[4])}}}else if(c=e.match(l)){if(c[1]==="transparent"){return[0,0,0,0]}if(!t.call(S,c[1])){return null}s=S[c[1]];s[3]=1;return s}else{return null}for(h=0;h<3;h++){s[h]=i(s[h],0,255)}s[3]=i(s[3],0,1);return s};n.get.hsl=function(e){if(!e){return null}var t=/^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*)?\)$/;var r=e.match(t);if(r){var a=parseFloat(r[4]);var n=(parseFloat(r[1])%360+360)%360;var o=i(parseFloat(r[2]),0,100);var l=i(parseFloat(r[3]),0,100);var s=i(isNaN(a)?1:a,0,1);return[n,o,l,s]}return null};n.get.hwb=function(e){if(!e){return null}var t=/^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*)?\)$/;var r=e.match(t);if(r){var a=parseFloat(r[4]);var n=(parseFloat(r[1])%360+360)%360;var o=i(parseFloat(r[2]),0,100);var l=i(parseFloat(r[3]),0,100);var s=i(isNaN(a)?1:a,0,1);return[n,o,l,s]}return null};n.to.hex=function(){var e=D(arguments);return"#"+o(e[0])+o(e[1])+o(e[2])+(e[3]<1?o(Math.round(e[3]*255)):"")};n.to.rgb=function(){var e=D(arguments);return e.length<4||e[3]===1?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"};n.to.rgb.percent=function(){var e=D(arguments);var t=Math.round(e[0]/255*100);var r=Math.round(e[1]/255*100);var a=Math.round(e[2]/255*100);return e.length<4||e[3]===1?"rgb("+t+"%, "+r+"%, "+a+"%)":"rgba("+t+"%, "+r+"%, "+a+"%, "+e[3]+")"};n.to.hsl=function(){var e=D(arguments);return e.length<4||e[3]===1?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"};n.to.hwb=function(){var e=D(arguments);var t="";if(e.length>=4&&e[3]!==1){t=", "+e[3]}return"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"};n.to.keyword=function(e){return r[e.slice(0,3)]};function i(e,t,r){return Math.min(Math.max(t,e),r)}function o(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}}));var A={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};var I={};for(var _=0,j=Object.keys(A);_<j.length;_++){var T=j[_];I[A[T]]=T}var H={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 O=H;for(var E=0,P=Object.keys(H);E<P.length;E++){var R=P[E];if(!("channels"in H[R])){throw new Error("missing channels property: "+R)}if(!("labels"in H[R])){throw new Error("missing channel labels property: "+R)}if(H[R].labels.length!==H[R].channels){throw new Error("channel and label counts mismatch: "+R)}var N=H[R],z=N.channels,L=N.labels;delete H[R].channels;delete H[R].labels;Object.defineProperty(H[R],"channels",{value:z});Object.defineProperty(H[R],"labels",{value:L})}H.rgb.hsl=function(e){var t=e[0]/255;var r=e[1]/255;var a=e[2]/255;var n=Math.min(t,r,a);var i=Math.max(t,r,a);var o=i-n;var l;var s;if(i===n){l=0}else if(t===i){l=(r-a)/o}else if(r===i){l=2+(a-t)/o}else if(a===i){l=4+(t-r)/o}l=Math.min(l*60,360);if(l<0){l+=360}var c=(n+i)/2;if(i===n){s=0}else if(c<=.5){s=o/(i+n)}else{s=o/(2-i-n)}return[l,s*100,c*100]};H.rgb.hsv=function(e){var t;var r;var a;var n;var i;var o=e[0]/255;var l=e[1]/255;var s=e[2]/255;var c=Math.max(o,l,s);var h=c-Math.min(o,l,s);var u=function(e){return(c-e)/6/h+1/2};if(h===0){n=0;i=0}else{i=h/c;t=u(o);r=u(l);a=u(s);if(o===c){n=a-r}else if(l===c){n=1/3+t-a}else if(s===c){n=2/3+r-t}if(n<0){n+=1}else if(n>1){n-=1}}return[n*360,i*100,c*100]};H.rgb.hwb=function(e){var t=e[0];var r=e[1];var a=e[2];var n=H.rgb.hsl(e)[0];var i=1/255*Math.min(t,Math.min(r,a));a=1-1/255*Math.max(t,Math.max(r,a));return[n,i*100,a*100]};H.rgb.cmyk=function(e){var t=e[0]/255;var r=e[1]/255;var a=e[2]/255;var n=Math.min(1-t,1-r,1-a);var i=(1-t-n)/(1-n)||0;var o=(1-r-n)/(1-n)||0;var l=(1-a-n)/(1-n)||0;return[i*100,o*100,l*100,n*100]};function q(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}H.rgb.keyword=function(e){var t=I[e];if(t){return t}var r=Infinity;var a;for(var n=0,i=Object.keys(A);n<i.length;n++){var o=i[n];var l=A[o];var s=q(e,l);if(s<r){r=s;a=o}}return a};H.keyword.rgb=function(e){return A[e]};H.rgb.xyz=function(e){var t=e[0]/255;var r=e[1]/255;var a=e[2]/255;t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92;r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92;a=a>.04045?Math.pow((a+.055)/1.055,2.4):a/12.92;var n=t*.4124+r*.3576+a*.1805;var i=t*.2126+r*.7152+a*.0722;var o=t*.0193+r*.1192+a*.9505;return[n*100,i*100,o*100]};H.rgb.lab=function(e){var t=H.rgb.xyz(e);var r=t[0];var a=t[1];var n=t[2];r/=95.047;a/=100;n/=108.883;r=r>.008856?Math.pow(r,1/3):7.787*r+16/116;a=a>.008856?Math.pow(a,1/3):7.787*a+16/116;n=n>.008856?Math.pow(n,1/3):7.787*n+16/116;var i=116*a-16;var o=500*(r-a);var l=200*(a-n);return[i,o,l]};H.hsl.rgb=function(e){var t=e[0]/360;var r=e[1]/100;var a=e[2]/100;var n;var i;var o;if(r===0){o=a*255;return[o,o,o]}if(a<.5){n=a*(1+r)}else{n=a+r-a*r}var l=2*a-n;var s=[0,0,0];for(var c=0;c<3;c++){i=t+1/3*-(c-1);if(i<0){i++}if(i>1){i--}if(6*i<1){o=l+(n-l)*6*i}else if(2*i<1){o=n}else if(3*i<2){o=l+(n-l)*(2/3-i)*6}else{o=l}s[c]=o*255}return s};H.hsl.hsv=function(e){var t=e[0];var r=e[1]/100;var a=e[2]/100;var n=r;var i=Math.max(a,.01);a*=2;r*=a<=1?a:2-a;n*=i<=1?i:2-i;var o=(a+r)/2;var l=a===0?2*n/(i+n):2*r/(a+r);return[t,l*100,o*100]};H.hsv.rgb=function(e){var t=e[0]/60;var r=e[1]/100;var a=e[2]/100;var n=Math.floor(t)%6;var i=t-Math.floor(t);var o=255*a*(1-r);var l=255*a*(1-r*i);var s=255*a*(1-r*(1-i));a*=255;switch(n){case 0:return[a,s,o];case 1:return[l,a,o];case 2:return[o,a,s];case 3:return[o,l,a];case 4:return[s,o,a];case 5:return[a,o,l]}};H.hsv.hsl=function(e){var t=e[0];var r=e[1]/100;var a=e[2]/100;var n=Math.max(a,.01);var i;var o;o=(2-r)*a;var l=(2-r)*n;i=r*n;i/=l<=1?l:2-l;i=i||0;o/=2;return[t,i*100,o*100]};H.hwb.rgb=function(e){var t=e[0]/360;var r=e[1]/100;var a=e[2]/100;var n=r+a;var i;if(n>1){r/=n;a/=n}var o=Math.floor(6*t);var l=1-a;i=6*t-o;if((o&1)!==0){i=1-i}var s=r+i*(l-r);var c;var h;var u;switch(o){default:case 6:case 0:c=l;h=s;u=r;break;case 1:c=s;h=l;u=r;break;case 2:c=r;h=l;u=s;break;case 3:c=r;h=s;u=l;break;case 4:c=s;h=r;u=l;break;case 5:c=l;h=r;u=s;break}return[c*255,h*255,u*255]};H.cmyk.rgb=function(e){var t=e[0]/100;var r=e[1]/100;var a=e[2]/100;var n=e[3]/100;var i=1-Math.min(1,t*(1-n)+n);var o=1-Math.min(1,r*(1-n)+n);var l=1-Math.min(1,a*(1-n)+n);return[i*255,o*255,l*255]};H.xyz.rgb=function(e){var t=e[0]/100;var r=e[1]/100;var a=e[2]/100;var n;var i;var o;n=t*3.2406+r*-1.5372+a*-.4986;i=t*-.9689+r*1.8758+a*.0415;o=t*.0557+r*-.204+a*1.057;n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*12.92;i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92;o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92;n=Math.min(Math.max(0,n),1);i=Math.min(Math.max(0,i),1);o=Math.min(Math.max(0,o),1);return[n*255,i*255,o*255]};H.xyz.lab=function(e){var t=e[0];var r=e[1];var a=e[2];t/=95.047;r/=100;a/=108.883;t=t>.008856?Math.pow(t,1/3):7.787*t+16/116;r=r>.008856?Math.pow(r,1/3):7.787*r+16/116;a=a>.008856?Math.pow(a,1/3):7.787*a+16/116;var n=116*r-16;var i=500*(t-r);var o=200*(r-a);return[n,i,o]};H.lab.xyz=function(e){var t=e[0];var r=e[1];var a=e[2];var n;var i;var o;i=(t+16)/116;n=r/500+i;o=i-a/200;var l=Math.pow(i,3);var s=Math.pow(n,3);var c=Math.pow(o,3);i=l>.008856?l:(i-16/116)/7.787;n=s>.008856?s:(n-16/116)/7.787;o=c>.008856?c:(o-16/116)/7.787;n*=95.047;i*=100;o*=108.883;return[n,i,o]};H.lab.lch=function(e){var t=e[0];var r=e[1];var a=e[2];var n;var i=Math.atan2(a,r);n=i*360/2/Math.PI;if(n<0){n+=360}var o=Math.sqrt(r*r+a*a);return[t,o,n]};H.lch.lab=function(e){var t=e[0];var r=e[1];var a=e[2];var n=a/360*2*Math.PI;var i=r*Math.cos(n);var o=r*Math.sin(n);return[t,i,o]};H.rgb.ansi16=function(e,t){if(t===void 0){t=null}var r=e[0],a=e[1],n=e[2];var i=t===null?H.rgb.hsv(e)[2]:t;i=Math.round(i/50);if(i===0){return 30}var o=30+(Math.round(n/255)<<2|Math.round(a/255)<<1|Math.round(r/255));if(i===2){o+=60}return o};H.hsv.ansi16=function(e){return H.rgb.ansi16(H.hsv.rgb(e),e[2])};H.rgb.ansi256=function(e){var t=e[0];var r=e[1];var a=e[2];if(t===r&&r===a){if(t<8){return 16}if(t>248){return 231}return Math.round((t-8)/247*24)+232}var n=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(a/255*5);return n};H.ansi16.rgb=function(e){var t=e%10;if(t===0||t===7){if(e>50){t+=3.5}t=t/10.5*255;return[t,t,t]}var r=(~~(e>50)+1)*.5;var a=(t&1)*r*255;var n=(t>>1&1)*r*255;var i=(t>>2&1)*r*255;return[a,n,i]};H.ansi256.rgb=function(e){if(e>=232){var t=(e-232)*10+8;return[t,t,t]}e-=16;var r;var a=Math.floor(e/36)/5*255;var n=Math.floor((r=e%36)/6)/5*255;var i=r%6/5*255;return[a,n,i]};H.rgb.hex=function(e){var t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255);var r=t.toString(16).toUpperCase();return"000000".substring(r.length)+r};H.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t){return[0,0,0]}var r=t[0];if(t[0].length===3){r=r.split("").map((function(e){return e+e})).join("")}var a=parseInt(r,16);var n=a>>16&255;var i=a>>8&255;var o=a&255;return[n,i,o]};H.rgb.hcg=function(e){var t=e[0]/255;var r=e[1]/255;var a=e[2]/255;var n=Math.max(Math.max(t,r),a);var i=Math.min(Math.min(t,r),a);var o=n-i;var l;var s;if(o<1){l=i/(1-o)}else{l=0}if(o<=0){s=0}else if(n===t){s=(r-a)/o%6}else if(n===r){s=2+(a-t)/o}else{s=4+(t-r)/o}s/=6;s%=1;return[s*360,o*100,l*100]};H.hsl.hcg=function(e){var t=e[1]/100;var r=e[2]/100;var a=r<.5?2*t*r:2*t*(1-r);var n=0;if(a<1){n=(r-.5*a)/(1-a)}return[e[0],a*100,n*100]};H.hsv.hcg=function(e){var t=e[1]/100;var r=e[2]/100;var a=t*r;var n=0;if(a<1){n=(r-a)/(1-a)}return[e[0],a*100,n*100]};H.hcg.rgb=function(e){var t=e[0]/360;var r=e[1]/100;var a=e[2]/100;if(r===0){return[a*255,a*255,a*255]}var n=[0,0,0];var i=t%1*6;var o=i%1;var l=1-o;var s=0;switch(Math.floor(i)){case 0:n[0]=1;n[1]=o;n[2]=0;break;case 1:n[0]=l;n[1]=1;n[2]=0;break;case 2:n[0]=0;n[1]=1;n[2]=o;break;case 3:n[0]=0;n[1]=l;n[2]=1;break;case 4:n[0]=o;n[1]=0;n[2]=1;break;default:n[0]=1;n[1]=0;n[2]=l}s=(1-r)*a;return[(r*n[0]+s)*255,(r*n[1]+s)*255,(r*n[2]+s)*255]};H.hcg.hsv=function(e){var t=e[1]/100;var r=e[2]/100;var a=t+r*(1-t);var n=0;if(a>0){n=t/a}return[e[0],n*100,a*100]};H.hcg.hsl=function(e){var t=e[1]/100;var r=e[2]/100;var a=r*(1-t)+.5*t;var n=0;if(a>0&&a<.5){n=t/(2*a)}else if(a>=.5&&a<1){n=t/(2*(1-a))}return[e[0],n*100,a*100]};H.hcg.hwb=function(e){var t=e[1]/100;var r=e[2]/100;var a=t+r*(1-t);return[e[0],(a-t)*100,(1-a)*100]};H.hwb.hcg=function(e){var t=e[1]/100;var r=e[2]/100;var a=1-r;var n=a-t;var i=0;if(n<1){i=(a-n)/(1-n)}return[e[0],n*100,i*100]};H.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};H.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};H.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};H.gray.hsl=function(e){return[0,0,e[0]]};H.gray.hsv=H.gray.hsl;H.gray.hwb=function(e){return[0,100,e[0]]};H.gray.cmyk=function(e){return[0,0,0,e[0]]};H.gray.lab=function(e){return[e[0],0,0]};H.gray.hex=function(e){var t=Math.round(e[0]/100*255)&255;var r=(t<<16)+(t<<8)+t;var a=r.toString(16).toUpperCase();return"000000".substring(a.length)+a};H.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]};function U(){var e={};var t=Object.keys(O);for(var r=t.length,a=0;a<r;a++){e[t[a]]={distance:-1,parent:null}}return e}function K(e){var t=U();var r=[e];t[e].distance=0;while(r.length){var a=r.pop();var n=Object.keys(O[a]);for(var i=n.length,o=0;o<i;o++){var l=n[o];var s=t[l];if(s.distance===-1){s.distance=t[a].distance+1;s.parent=a;r.unshift(l)}}}return t}function V(e,t){return function(r){return t(e(r))}}function B(e,t){var r=[t[e].parent,e];var a=O[t[e].parent][e];var n=t[e].parent;while(t[n].parent){r.unshift(t[n].parent);a=V(O[t[n].parent][n],a);n=t[n].parent}a.conversion=r;return a}var G=function(e){var t=K(e);var r={};var a=Object.keys(t);for(var n=a.length,i=0;i<n;i++){var o=a[i];var l=t[o];if(l.parent===null){continue}r[o]=B(o,t)}return r};var W={};var $=Object.keys(O);function J(e){var t=function(){var t=[];for(var r=0;r<arguments.length;r++){t[r]=arguments[r]}var a=t[0];if(a===undefined||a===null){return a}if(a.length>1){t=a}return e(t)};if("conversion"in e){t.conversion=e.conversion}return t}function X(e){var t=function(){var t=[];for(var r=0;r<arguments.length;r++){t[r]=arguments[r]}var a=t[0];if(a===undefined||a===null){return a}if(a.length>1){t=a}var n=e(t);if(typeof n==="object"){for(var i=n.length,o=0;o<i;o++){n[o]=Math.round(n[o])}}return n};if("conversion"in e){t.conversion=e.conversion}return t}$.forEach((function(e){W[e]={};Object.defineProperty(W[e],"channels",{value:O[e].channels});Object.defineProperty(W[e],"labels",{value:O[e].labels});var t=G(e);var r=Object.keys(t);r.forEach((function(r){var a=t[r];W[e][r]=X(a);W[e][r].raw=J(a)}))}));var Y=W;var Q=[].slice;var Z=["keyword","gray","hex"];var ee={};for(var te=0,re=Object.keys(Y);te<re.length;te++){var R=re[te];ee[Q.call(Y[R].labels).sort().join("")]=R}var ae={};function ne(e,t){if(!(this instanceof ne)){return new ne(e,t)}if(t&&t in Z){t=null}if(t&&!(t in Y)){throw new Error("Unknown model: "+t)}var r;var a;if(e==null){this.model="rgb";this.color=[0,0,0];this.valpha=1}else if(e instanceof ne){this.model=e.model;this.color=e.color.slice();this.valpha=e.valpha}else if(typeof e==="string"){var n=F.get(e);if(n===null){throw new Error("Unable to parse color from string: "+e)}this.model=n.model;a=Y[this.model].channels;this.color=n.value.slice(0,a);this.valpha=typeof n.value[a]==="number"?n.value[a]:1}else if(e.length>0){this.model=t||"rgb";a=Y[this.model].channels;var i=Q.call(e,0,a);this.color=ve(i,a);this.valpha=typeof e[a]==="number"?e[a]:1}else if(typeof e==="number"){this.model="rgb";this.color=[e>>16&255,e>>8&255,e&255];this.valpha=1}else{this.valpha=1;var o=Object.keys(e);if("alpha"in e){o.splice(o.indexOf("alpha"),1);this.valpha=typeof e.alpha==="number"?e.alpha:0}var l=o.sort().join("");if(!(l in ee)){throw new Error("Unable to parse color from object: "+JSON.stringify(e))}this.model=ee[l];var s=Y[this.model].labels;var c=[];for(r=0;r<s.length;r++){c.push(e[s[r]])}this.color=ve(c)}if(ae[this.model]){a=Y[this.model].channels;for(r=0;r<a;r++){var h=ae[this.model][r];if(h){this.color[r]=h(this.color[r])}}}this.valpha=Math.max(0,Math.min(1,this.valpha));if(Object.freeze){Object.freeze(this)}}ne.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(e){var t=this.model in F.to?this:this.rgb();t=t.round(typeof e==="number"?e:1);var r=t.valpha===1?t.color:t.color.concat(this.valpha);return F.to[t.model](r)},percentString:function(e){var t=this.rgb().round(typeof e==="number"?e:1);var r=t.valpha===1?t.color:t.color.concat(this.valpha);return F.to.rgb.percent(r)},array:function(){return this.valpha===1?this.color.slice():this.color.concat(this.valpha)},object:function(){var e={};var t=Y[this.model].channels;var r=Y[this.model].labels;for(var a=0;a<t;a++){e[r[a]]=this.color[a]}if(this.valpha!==1){e.alpha=this.valpha}return e},unitArray:function(){var e=this.rgb().color;e[0]/=255;e[1]/=255;e[2]/=255;if(this.valpha!==1){e.push(this.valpha)}return e},unitObject:function(){var e=this.rgb().object();e.r/=255;e.g/=255;e.b/=255;if(this.valpha!==1){e.alpha=this.valpha}return e},round:function(e){e=Math.max(e||0,0);return new ne(this.color.map(ce(e)).concat(this.valpha),this.model)},alpha:function(e){if(arguments.length>0){return new ne(this.color.concat(Math.max(0,Math.min(1,e))),this.model)}return this.valpha},red:he("rgb",0,ue(255)),green:he("rgb",1,ue(255)),blue:he("rgb",2,ue(255)),hue:he(["hsl","hsv","hsl","hwb","hcg"],0,(function(e){return(e%360+360)%360})),saturationl:he("hsl",1,ue(100)),lightness:he("hsl",2,ue(100)),saturationv:he("hsv",1,ue(100)),value:he("hsv",2,ue(100)),chroma:he("hcg",1,ue(100)),gray:he("hcg",2,ue(100)),white:he("hwb",1,ue(100)),wblack:he("hwb",2,ue(100)),cyan:he("cmyk",0,ue(100)),magenta:he("cmyk",1,ue(100)),yellow:he("cmyk",2,ue(100)),black:he("cmyk",3,ue(100)),x:he("xyz",0,ue(100)),y:he("xyz",1,ue(100)),z:he("xyz",2,ue(100)),l:he("lab",0,ue(100)),a:he("lab",1),b:he("lab",2),keyword:function(e){if(arguments.length>0){return new ne(e)}return Y[this.model].keyword(this.color)},hex:function(e){if(arguments.length>0){return new ne(e)}return F.to.hex(this.rgb().round().color)},hexa:function(e){if(arguments.length>0){return new ne(e)}var t=this.rgb().round().color;var r=Math.round(this.valpha*255).toString(16).toUpperCase();if(r.length===1){r="0"+r}return F.to.hex(t)+r},rgbNumber:function(){var e=this.rgb().color;return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255},luminosity:function(){var e=this.rgb().color;var t=[];for(var r=0,a=e.entries();r<a.length;r++){var n=a[r],i=n[0],o=n[1];var l=o/255;t[i]=l<=.03928?l/12.92:Math.pow((l+.055)/1.055,2.4)}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity();var r=e.luminosity();if(t>r){return(t+.05)/(r+.05)}return(r+.05)/(t+.05)},level:function(e){var t=this.contrast(e);if(t>=7.1){return"AAA"}return t>=4.5?"AA":""},isDark:function(){var e=this.rgb().color;var t=(e[0]*299+e[1]*587+e[2]*114)/1e3;return t<128},isLight:function(){return!this.isDark()},negate:function(){var e=this.rgb();for(var t=0;t<3;t++){e.color[t]=255-e.color[t]}return e},lighten:function(e){var t=this.hsl();t.color[2]+=t.color[2]*e;return t},darken:function(e){var t=this.hsl();t.color[2]-=t.color[2]*e;return t},saturate:function(e){var t=this.hsl();t.color[1]+=t.color[1]*e;return t},desaturate:function(e){var t=this.hsl();t.color[1]-=t.color[1]*e;return t},whiten:function(e){var t=this.hwb();t.color[1]+=t.color[1]*e;return t},blacken:function(e){var t=this.hwb();t.color[2]+=t.color[2]*e;return t},grayscale:function(){var e=this.rgb().color;var t=e[0]*.3+e[1]*.59+e[2]*.11;return ne.rgb(t,t,t)},fade:function(e){return this.alpha(this.valpha-this.valpha*e)},opaquer:function(e){return this.alpha(this.valpha+this.valpha*e)},rotate:function(e){var t=this.hsl();var r=t.color[0];r=(r+e)%360;r=r<0?360+r:r;t.color[0]=r;return t},mix:function(e,t){if(!e||!e.rgb){throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e)}var r=e.rgb();var a=this.rgb();var n=t===undefined?.5:t;var i=2*n-1;var o=r.alpha()-a.alpha();var l=((i*o===-1?i:(i+o)/(1+i*o))+1)/2;var s=1-l;return ne.rgb(l*r.red()+s*a.red(),l*r.green()+s*a.green(),l*r.blue()+s*a.blue(),r.alpha()*n+a.alpha()*(1-n))}};var ie=function(e){if(Z.includes(e)){return"continue"}var t=Y[e].channels;ne.prototype[e]=function(){if(this.model===e){return new ne(this)}if(arguments.length>0){return new ne(arguments,e)}var r=typeof arguments[t]==="number"?t:this.valpha;return new ne(de(Y[this.model][e].raw(this.color)).concat(r),e)};ne[e]=function(r){if(typeof r==="number"){r=ve(Q.call(arguments),t)}return new ne(r,e)}};for(var oe=0,le=Object.keys(Y);oe<le.length;oe++){var R=le[oe];ie(R)}function se(e,t){return Number(e.toFixed(t))}function ce(e){return function(t){return se(t,e)}}function he(e,t,r){e=Array.isArray(e)?e:[e];for(var a=0,n=e;a<n.length;a++){var i=n[a];(ae[i]||(ae[i]=[]))[t]=r}e=e[0];return function(a){var n;if(arguments.length>0){if(r){a=r(a)}n=this[e]();n.color[t]=a;return n}n=this[e]().color[t];if(r){n=r(n)}return n}}function ue(e){return function(t){return Math.max(0,Math.min(e,t))}}function de(e){return Array.isArray(e)?e:[e]}function ve(e,t){for(var r=0;r<t;r++){if(typeof e[r]!=="number"){e[r]=0}}return e}var fe=ne;var pe={container:"container",controlSection:"control-section",hexOptions:"color-hex-options",section:"section",header:"header",control:"control",splitSection:"section--split",colorModeContainer:"color-mode-container",colorMode:"color-mode",channels:"channels",channel:"channel",savedColors:"saved-colors",savedColorsSection:"saved-colors-section",saveColor:"save-color",deleteColor:"delete-color",savedColorsButtons:"saved-colors-buttons",headerHex:"header--hex",colorFieldAndSlider:"color-field-and-slider",colorFieldAndSliderInteractive:"color-field-and-slider--interactive",colorFieldAndSliderWrap:"color-field-and-slider-wrap",scope:"scope",hueScope:"scope--hue",colorFieldScope:"scope--color-field",savedColor:"saved-color"};var me=fe("#007AC2");var ge="calcite-color-";var be={r:255,g:255,b:255};var ye={h:360,s:100,v:100};var we={b:"B",blue:"Blue",deleteColor:"Delete color",g:"G",green:"Green",h:"H",hsv:"HSV",hex:"Hex",hue:"Hue",noColor:"No color",r:"R",red:"Red",rgb:"RGB",s:"S",saturation:"Saturation",saveColor:"Save color",saved:"Saved",v:"V",value:"Value"};var Ce={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}}};var ke="@-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;margin-bottom:0px;margin-right:0px;height:0.5rem;width:0.5rem;padding:0px;font-size:var(--calcite-font-size--1);outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;margin-top:-0.25rem;margin-left:-0.25rem;outline-offset:10px}.scope:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:12px}.color-field-and-slider{margin-bottom:-16px}.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;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;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}";var xe=16;var Se=l(me.hex());var Me="auto";var De=e("calcite_color_picker",function(){function e(e){var n=this;t(this,e);this.calciteColorPickerChange=r(this,"calciteColorPickerChange",7);this.calciteColorPickerInput=r(this,"calciteColorPickerInput",7);this.allowEmpty=false;this.appearance="default";this.color=me;this.disabled=false;this.format=Me;this.hideHex=false;this.hideChannels=false;this.hideSaved=false;this.intlB=we.b;this.intlBlue=we.blue;this.intlDeleteColor=we.deleteColor;this.intlG=we.g;this.intlGreen=we.green;this.intlH=we.h;this.intlHsv=we.hsv;this.intlHex=we.hex;this.intlHue=we.hue;this.intlNoColor=we.noColor;this.intlR=we.r;this.intlRed=we.red;this.intlRgb=we.rgb;this.intlS=we.s;this.intlSaturation=we.saturation;this.intlSaveColor=we.saveColor;this.intlSaved=we.saved;this.intlV=we.v;this.intlValue=we.value;this.scale="m";this.value=Se;this.colorFieldAndSliderHovered=false;this.hueThumbState="idle";this.internalColorUpdateContext=null;this.mode=s.HEX;this.shiftKeyChannelAdjustment=0;this.sliderThumbState="idle";this.colorFieldAndSliderInteractive=false;this.channelMode="rgb";this.channels=this.toChannels(me);this.dimensions=Ce.m;this.savedColors=[];this.handleTabActivate=function(e){n.channelMode=e.currentTarget.getAttribute("data-color-mode");n.updateChannelsFromColor(n.color)};this.handleColorFieldScopeKeyDown=function(e){var t=e.key;var r={ArrowUp:{x:0,y:-10},ArrowRight:{x:10,y:0},ArrowDown:{x:0,y:10},ArrowLeft:{x:-10,y:0}};if(r[t]){e.preventDefault();n.scopeOrientation=t==="ArrowDown"||t==="ArrowUp"?"vertical":"horizontal";n.captureColorFieldColor(n.colorFieldScopeLeft+r[t].x||0,n.colorFieldScopeTop+r[t].y||0,false)}};this.handleHueScopeKeyDown=function(e){var t=e.shiftKey?10:1;var r=e.key;var a={ArrowUp:1,ArrowRight:1,ArrowDown:-1,ArrowLeft:-1};if(a[r]){e.preventDefault();var i=a[r]*t;var o=n.baseColorFieldColor.hue();var l=n.baseColorFieldColor.hue(o+i);n.internalColorSet(l,false)}};this.handleHexInputChange=function(e){e.stopPropagation();var t=n,r=t.allowEmpty,a=t.color;var i=e.target;var o=i.value;if(r&&!o){n.internalColorSet(null);return}var s=a&&l(a.hex());if(o!==s){n.internalColorSet(fe(o))}};this.handleSavedColorSelect=function(e){var t=e.currentTarget;n.internalColorSet(fe(t.color))};this.handleChannelInput=function(e){var t=e.currentTarget;var r=e.detail.nativeEvent.target;var a=Number(t.getAttribute("data-channel-index"));var i=n.channelMode==="rgb"?be[Object.keys(be)[a]]:ye[Object.keys(ye)[a]];var o;if(n.allowEmpty&&!t.value){o=""}else{var l=Number(t.value)+n.shiftKeyChannelAdjustment;var s=m(l,0,i);o=s.toString()}t.value=o;r.value=o};this.handleChannelChange=function(e){var t=e.currentTarget;var r=Number(t.getAttribute("data-channel-index"));var a=__spreadArray([],n.channels,true);var i=n.allowEmpty&&!t.value;if(i){n.channels=[null,null,null];n.internalColorSet(null);return}a[r]=Number(t.value);n.updateColorFromChannels(a)};this.handleSavedColorKeyDown=function(e){if(e.key===" "||e.key==="Enter"){e.preventDefault();e.stopPropagation();n.handleSavedColorSelect(e)}};this.handleColorFieldAndSliderMouseLeave=function(){n.colorFieldAndSliderInteractive=false;n.colorFieldAndSliderHovered=false;if(n.sliderThumbState!=="drag"&&n.hueThumbState!=="drag"){n.hueThumbState="idle";n.sliderThumbState="idle";n.drawColorFieldAndSlider()}};this.handleColorFieldAndSliderMouseDown=function(e){var t=e.offsetX,r=e.offsetY;var a=n.getCanvasRegion(r);if(a==="color-field"){n.hueThumbState="drag";n.captureColorFieldColor(t,r);n.colorFieldScopeNode.focus()}else if(a==="slider"){n.sliderThumbState="drag";n.captureHueSliderColor(t);n.hueScopeNode.focus()}e.preventDefault();document.addEventListener("mousemove",n.globalMouseMoveHandler);document.addEventListener("mouseup",n.globalMouseUpHandler,{once:true});n.activeColorFieldAndSliderRect=n.fieldAndSliderRenderingContext.canvas.getBoundingClientRect()};this.globalMouseUpHandler=function(){var e=n.sliderThumbState==="drag"||n.hueThumbState==="drag";n.hueThumbState="idle";n.sliderThumbState="idle";n.activeColorFieldAndSliderRect=null;n.drawColorFieldAndSlider();if(e){n.calciteColorPickerChange.emit()}};this.globalMouseMoveHandler=function(e){var t=n,r=t.el,a=t.dimensions;var i=n.sliderThumbState==="drag";var o=n.hueThumbState==="drag";if(!r.isConnected||!i&&!o){return}var l;var s;var c=n.activeColorFieldAndSliderRect;var h=e.clientX,u=e.clientY;if(n.colorFieldAndSliderHovered){l=h-c.x;s=u-c.y}else{var d=a.colorField.width;var v=a.colorField.height;var f=a.slider.height;if(h<c.x+d&&h>c.x){l=h-c.x}else if(h<c.x){l=0}else{l=d}if(u<c.y+v+f&&u>c.y){s=u-c.y}else if(u<c.y){s=0}else{s=v+f}}if(o){n.captureColorFieldColor(l,s,false)}else{n.captureHueSliderColor(l)}};this.handleColorFieldAndSliderMouseEnterOrMove=function(e){var t=e.offsetX,r=e.offsetY;var a=n.dimensions,i=a.colorField,o=a.slider,l=a.thumb;n.colorFieldAndSliderInteractive=r<=i.height+o.height;n.colorFieldAndSliderHovered=true;var s=n.getCanvasRegion(r);if(s==="color-field"){var c=n.hueThumbState;var h=n.baseColorFieldColor.hsv();var u=Math.round(h.saturationv()/(ye.s/i.width));var d=Math.round(i.height-h.value()/(ye.v/i.height));var v=n.containsPoint(t,r,u,d,l.radius);var f=false;if(c==="idle"&&v){n.hueThumbState="hover";f=true}else if(c==="hover"&&!v){n.hueThumbState="idle";f=true}if(n.hueThumbState!=="drag"){if(f){n.drawColorFieldAndSlider()}}}else if(s==="slider"){var p=n.baseColorFieldColor.hsv().saturationv(100).value(100);var m=n.sliderThumbState;var g=Math.round(p.hue()/(360/o.width));var b=Math.round((o.height+n.getSliderCapSpacing())/2)+i.height;var y=n.containsPoint(t,r,g,b,l.radius);var w=false;if(m==="idle"&&y){n.sliderThumbState="hover";w=true}else if(m==="hover"&&!y){n.sliderThumbState="idle";w=true}if(n.sliderThumbState!=="drag"){if(w){n.drawColorFieldAndSlider()}}}};this.storeColorFieldScope=function(e){n.colorFieldScopeNode=e};this.storeHueScope=function(e){n.hueScopeNode=e};this.renderChannelsTabTitle=function(e){var t=n,r=t.channelMode,i=t.intlRgb,o=t.intlHsv;var l=e===r;var s=e==="rgb"?i:o;return a("calcite-tab-title",{active:l,class:pe.colorMode,"data-color-mode":e,key:e,onCalciteTabsActivate:n.handleTabActivate},s)};this.renderChannelsTab=function(e){var t=n,r=t.channelMode,i=t.channels,o=t.intlB,l=t.intlBlue,s=t.intlG,c=t.intlGreen,h=t.intlH,u=t.intlHue,d=t.intlR,v=t.intlRed,f=t.intlS,p=t.intlSaturation,m=t.intlV,g=t.intlValue;var b=e===r;var y=e==="rgb";var w=y?[d,s,o]:[h,f,m];var C=y?[v,c,l]:[u,p,g];return a("calcite-tab",{active:b,class:pe.control,key:e},a("div",{class:pe.channels},i.map((function(e,t){return n.renderChannel(e,t,w[t],C[t])}))))};this.renderChannel=function(e,t,r,i){return a("calcite-input",{class:pe.channel,"data-channel-index":t,label:i,numberButtonType:"none",onCalciteInputChange:n.handleChannelChange,onCalciteInputInput:n.handleChannelInput,prefixText:r,scale:n.scale==="l"?"m":"s",type:"number",value:e===null||e===void 0?void 0:e.toString()})};this.deleteColor=function(){var e=n.color.hex();var t=n.savedColors.indexOf(e)>-1;if(!t){return}var r=n.savedColors.filter((function(t){return t!==e}));n.savedColors=r;var a="".concat(ge).concat(n.storageId);if(n.storageId){localStorage.setItem(a,JSON.stringify(r))}};this.saveColor=function(){var e=n.color.hex();var t=n.savedColors.indexOf(e)>-1;if(t){return}var r=__spreadArray(__spreadArray([],n.savedColors,true),[e],false);n.savedColors=r;var a="".concat(ge).concat(n.storageId);if(n.storageId){localStorage.setItem(a,JSON.stringify(r))}};this.drawColorFieldAndSlider=C((function(){if(!n.fieldAndSliderRenderingContext){return}n.drawColorField();n.drawHueSlider()}),xe);this.captureColorFieldColor=function(e,t,r){if(r===void 0){r=true}var a=n.dimensions.colorField,i=a.height,o=a.width;var l=Math.round(ye.s/o*e);var s=Math.round(ye.v/i*(i-t));n.internalColorSet(n.baseColorFieldColor.hsv().saturationv(l).value(s),r)};this.initColorFieldAndSlider=function(e){n.fieldAndSliderRenderingContext=e.getContext("2d");n.setCanvasContextSize(e,{width:n.dimensions.colorField.width,height:n.dimensions.colorField.height+n.dimensions.slider.height+n.getSliderCapSpacing()*2});n.drawColorFieldAndSlider()}}e.prototype.handleColorChange=function(e,t){this.drawColorFieldAndSlider();this.updateChannelsFromColor(e);this.previousColor=t;if(this.internalColorUpdateContext){return}this.value=this.toValue(e)};e.prototype.handleFormatChange=function(e){this.setMode(e);this.value=this.toValue(this.color)};e.prototype.handleScaleChange=function(e){if(e===void 0){e="m"}this.updateDimensions(e)};e.prototype.handleValueChange=function(e,t){var r=this,a=r.allowEmpty,n=r.format;var i=!a||e;var o=false;if(i){var l=c(e);if(!l||n!=="auto"&&l!==n){this.showIncompatibleColorWarning(e,n);this.value=t;return}o=this.mode!==l;this.setMode(l)}var s=this.sliderThumbState==="drag"||this.hueThumbState==="drag";if(this.internalColorUpdateContext){if(this.internalColorUpdateContext==="initial"){return}this.calciteColorPickerInput.emit();if(!s){this.calciteColorPickerChange.emit()}return}var u=a&&!e?null:fe(e);var d=!h(u,this.color);if(o||d){this.color=u;this.calciteColorPickerInput.emit();if(!s){this.calciteColorPickerChange.emit()}}};Object.defineProperty(e.prototype,"baseColorFieldColor",{get:function(){return this.color||this.previousColor||me},enumerable:false,configurable:true});e.prototype.handleChannelKeyUpOrDown=function(e){this.shiftKeyChannelAdjustment=0;var t=e.key;if(t!=="ArrowUp"&&t!=="ArrowDown"||!e.composedPath().some((function(e){var t;return(t=e.classList)===null||t===void 0?void 0:t.contains(pe.channel)}))){return}var r=e.shiftKey;e.preventDefault();if(!this.color){this.internalColorSet(this.previousColor);e.stopPropagation();return}var a=9;this.shiftKeyChannelAdjustment=t==="ArrowUp"&&r?a:t==="ArrowDown"&&r?-a:0};e.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,i(this.colorFieldScopeNode)]}))}))};e.prototype.componentWillLoad=function(){var e=this,t=e.allowEmpty,r=e.color,a=e.format,n=e.value;var i=t&&!n;var o=c(n);var l=i||a==="auto"&&o||a===o;var s=i?null:l?fe(n):r;if(!l){this.showIncompatibleColorWarning(n,a)}this.setMode(a);this.internalColorSet(s,false,"initial");this.updateDimensions(this.scale);var h="".concat(ge).concat(this.storageId);if(this.storageId&&localStorage.getItem(h)){this.savedColors=JSON.parse(localStorage.getItem(h))}};e.prototype.disconnectedCallback=function(){document.removeEventListener("mousemove",this.globalMouseMoveHandler);document.removeEventListener("mouseup",this.globalMouseUpHandler)};e.prototype.componentDidRender=function(){g(this)};e.prototype.render=function(){var e,t,r,n,i,o,l;var s=this;var c=this,h=c.allowEmpty,u=c.color,d=c.intlDeleteColor,v=c.hideHex,f=c.hideChannels,p=c.hideSaved,m=c.intlHex,g=c.intlSaved,b=c.intlSaveColor,y=c.savedColors,w=c.scale;var C=u?u.hex():null;var k=w==="l"?"m":"s";var x=this,S=x.colorFieldAndSliderInteractive,M=x.colorFieldScopeTop,D=x.colorFieldScopeLeft,F=x.hueScopeLeft,A=x.hueScopeTop,I=x.scopeOrientation,_=x.dimensions,j=_.colorField,T=j.height,H=j.width,O=_.slider.height;var E=A!==null&&A!==void 0?A:O/2+T;var P=F!==null&&F!==void 0?F:H*me.hue()/ye.h;var R=u===null;var N=I==="vertical";return a("div",{class:pe.container},a("div",{class:pe.colorFieldAndSliderWrap},a("canvas",{class:(e={},e[pe.colorFieldAndSlider]=true,e[pe.colorFieldAndSliderInteractive]=S,e),onMouseDown:this.handleColorFieldAndSliderMouseDown,onMouseEnter:this.handleColorFieldAndSliderMouseEnterOrMove,onMouseLeave:this.handleColorFieldAndSliderMouseLeave,onMouseMove:this.handleColorFieldAndSliderMouseEnterOrMove,ref:this.initColorFieldAndSlider}),a("div",{"aria-label":N?this.intlValue:this.intlSaturation,"aria-valuemax":N?ye.v:ye.s,"aria-valuemin":"0","aria-valuenow":(N?u===null||u===void 0?void 0:u.saturationv():u===null||u===void 0?void 0:u.value())||"0",class:(t={},t[pe.scope]=true,t[pe.colorFieldScope]=true,t),onKeyDown:this.handleColorFieldScopeKeyDown,ref:this.storeColorFieldScope,role:"slider",style:{top:"".concat(M||0,"px"),left:"".concat(D||0,"px")},tabindex:"0"}),a("div",{"aria-label":this.intlHue,"aria-valuemax":ye.h,"aria-valuemin":"0","aria-valuenow":(u===null||u===void 0?void 0:u.round().hue())||me.round().hue(),class:(r={},r[pe.scope]=true,r[pe.hueScope]=true,r),onKeyDown:this.handleHueScopeKeyDown,ref:this.storeHueScope,role:"slider",style:{top:"".concat(E,"px"),left:"".concat(P,"px")},tabindex:"0"})),v&&f?null:a("div",{class:(n={},n[pe.controlSection]=true,n[pe.section]=true,n)},v?null:a("div",{class:pe.hexOptions},a("span",{class:(i={},i[pe.header]=true,i[pe.headerHex]=true,i)},m),a("calcite-color-picker-hex-input",{allowEmpty:h,class:pe.control,onCalciteColorPickerHexInputChange:this.handleHexInputChange,scale:k,value:C})),f?null:a("calcite-tabs",{class:(o={},o[pe.colorModeContainer]=true,o[pe.splitSection]=true,o),scale:k},a("calcite-tab-nav",{slot:"tab-nav"},this.renderChannelsTabTitle("rgb"),this.renderChannelsTabTitle("hsv")),this.renderChannelsTab("rgb"),this.renderChannelsTab("hsv"))),p?null:a("div",{class:(l={},l[pe.savedColorsSection]=true,l[pe.section]=true,l)},a("div",{class:pe.header},a("label",null,g),a("div",{class:pe.savedColorsButtons},a("calcite-button",{appearance:"transparent",class:pe.deleteColor,color:"neutral",disabled:R,iconStart:"minus",label:d,onClick:this.deleteColor,scale:k,type:"button"}),a("calcite-button",{appearance:"transparent",class:pe.saveColor,color:"neutral",disabled:R,iconStart:"plus",label:b,onClick:this.saveColor,scale:k,type:"button"}))),y.length>0?a("div",{class:pe.savedColors},__spreadArray([],y.map((function(e){return a("calcite-color-picker-swatch",{active:C===e,class:pe.savedColor,color:e,key:e,onClick:s.handleSavedColorSelect,onKeyDown:s.handleSavedColorKeyDown,scale:w,tabIndex:0})})),true)):null))};e.prototype.showIncompatibleColorWarning=function(e,t){console.warn("ignoring color value (".concat(e,") as it is not compatible with the current format (").concat(t,")"))};e.prototype.setMode=function(e){this.mode=e==="auto"?this.mode:e};e.prototype.captureHueSliderColor=function(e){var t=this.dimensions.slider.width;var r=360/t*e;this.internalColorSet(this.baseColorFieldColor.hue(r),false)};e.prototype.getCanvasRegion=function(e){var t=this.dimensions,r=t.colorField.height,a=t.slider.height;if(e<=r){return"color-field"}if(e<=r+a){return"slider"}return"none"};e.prototype.internalColorSet=function(e,t,r){if(t===void 0){t=true}if(r===void 0){r="internal"}if(t&&h(e,this.color)){return}this.internalColorUpdateContext=r;this.color=e;this.value=this.toValue(e);this.internalColorUpdateContext=null};e.prototype.toValue=function(e,t){if(t===void 0){t=this.mode}if(!e){return null}var r="hex";if(t.includes(r)){return l(e.round()[r]())}if(t.includes("-css")){return e[t.replace("-css","").replace("a","")]().round().string()}var a=e[t]().round().object();if(t.endsWith("a")){a.a=a.alpha;delete a.alpha}return a};e.prototype.getSliderCapSpacing=function(){var e=this.dimensions,t=e.slider.height,r=e.thumb.radius;return r*2-t};e.prototype.updateDimensions=function(e){if(e===void 0){e="m"}this.dimensions=Ce[e]};e.prototype.drawColorField=function(){var e=this.fieldAndSliderRenderingContext;var t=this.dimensions.colorField,r=t.height,a=t.width;e.fillStyle=this.baseColorFieldColor.hsv().saturationv(100).value(100).string();e.fillRect(0,0,a,r);var n=e.createLinearGradient(0,0,a,0);n.addColorStop(0,"rgba(255,255,255,1)");n.addColorStop(1,"rgba(255,255,255,0)");e.fillStyle=n;e.fillRect(0,0,a,r);var i=e.createLinearGradient(0,0,0,r);i.addColorStop(0,"rgba(0,0,0,0)");i.addColorStop(1,"rgba(0,0,0,1)");e.fillStyle=i;e.fillRect(0,0,a,r);this.drawActiveColorFieldColor()};e.prototype.setCanvasContextSize=function(e,t){var r=t.height,a=t.width;var n=window.devicePixelRatio||1;e.width=a*n;e.height=r*n;e.style.height="".concat(r,"px");e.style.width="".concat(a,"px");var i=e.getContext("2d");i.scale(n,n)};e.prototype.containsPoint=function(e,t,r,a,n){return Math.pow(e-r,2)+Math.pow(t-a,2)<=Math.pow(n,2)};e.prototype.drawActiveColorFieldColor=function(){var e=this;var t=this.color;if(!t){return}var r=t.hsv();var a=this.dimensions,n=a.colorField,i=n.height,o=n.width,l=a.thumb.radius;var s=r.saturationv()/(ye.s/o);var c=i-r.value()/(ye.v/i);requestAnimationFrame((function(){e.colorFieldScopeLeft=s;e.colorFieldScopeTop=c}));this.drawThumb(this.fieldAndSliderRenderingContext,l,s,c,r,this.hueThumbState)};e.prototype.drawThumb=function(e,t,r,a,n,i){var o=0;var l=2*Math.PI;e.beginPath();e.arc(r,a,t,o,l);e.shadowBlur=i==="hover"?32:16;e.shadowColor="rgba(0, 0, 0, ".concat(i==="drag"?.32:.16,")");e.fillStyle="#fff";e.fill();e.beginPath();e.arc(r,a,t-3,o,l);e.shadowBlur=0;e.shadowColor="transparent";e.fillStyle=n.rgb().string();e.fill()};e.prototype.drawActiveHueSliderColor=function(){var e=this;var t=this.color;if(!t){return}var r=t.hsv().saturationv(100).value(100);var a=this.dimensions,n=a.colorField.height,i=a.slider,o=i.height,l=i.width,s=a.thumb.radius;var c=r.hue()/(360/l);var h=o/2+n;requestAnimationFrame((function(){e.hueScopeLeft=c;e.hueScopeTop=h}));this.drawThumb(this.fieldAndSliderRenderingContext,s,c,h,r,this.sliderThumbState)};e.prototype.drawHueSlider=function(){var e=this.fieldAndSliderRenderingContext;var t=this.dimensions,r=t.colorField.height,a=t.slider,n=a.height,i=a.width;var o=e.createLinearGradient(0,0,i,0);var l=["red","yellow","lime","cyan","blue","magenta","red"];var s=1/(l.length-1);var c=0;l.forEach((function(e){o.addColorStop(c,fe(e).string());c+=s}));e.fillStyle=o;e.clearRect(0,r,i,n+this.getSliderCapSpacing()*2);e.fillRect(0,r,i,n);this.drawActiveHueSliderColor()};e.prototype.updateColorFromChannels=function(e){this.internalColorSet(fe(e,this.channelMode))};e.prototype.updateChannelsFromColor=function(e){this.channels=e?this.toChannels(e):[null,null,null]};e.prototype.toChannels=function(e){var t=this.channelMode;return e[t]().array().map((function(e){return Math.floor(e)}))};Object.defineProperty(e.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{color:["handleColorChange"],format:["handleFormatChange"],scale:["handleScaleChange"],value:["handleValueChange"]}},enumerable:false,configurable:true});return e}());De.style=ke;var Fe={container:"container",preview:"preview",input:"input"};var Ae="@-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}";var Ie=fe();var _e=e("calcite_color_picker_hex_input",function(){function e(e){var a=this;t(this,e);this.calciteColorPickerHexInputChange=r(this,"calciteColorPickerHexInputChange",7);this.allowEmpty=false;this.intlHex=we.hex;this.intlNoColor=we.noColor;this.scale="m";this.value=l(Ie.hex());this.onCalciteInputBlur=function(){var e=a.inputNode;var t=e.value;var r="#".concat(t);var n=a.allowEmpty&&!t;if(n||u(r)&&d(r)){return}e.value=a.allowEmpty&&!a.internalColor?"":a.formatForInternalInput(v(a.internalColor.object()))};this.onInputChange=function(){var e=a.inputNode.value;var t;if(e){var r=e;var n=f("#".concat(r));if(!n){return}t=l(r)}else if(a.allowEmpty){t=null}a.value=t;a.calciteColorPickerHexInputChange.emit()};this.internalColor=Ie;this.previousNonNullValue=this.value;this.storeInputRef=function(e){a.inputNode=e}}e.prototype.connectedCallback=function(){var e=this,t=e.allowEmpty,r=e.value;if(r){var a=l(r);if(u(a)){this.internalColor=fe(a);this.value=a}return}if(t){this.internalColor=null;this.value=null}};e.prototype.handleValueChange=function(e,t){if(e){var r=l(e);if(u(r)){var a=this.internalColor;var n=!a||r!==l(a.hex());this.internalColor=fe(r);this.previousNonNullValue=r;this.value=r;if(n){this.calciteColorPickerHexInputChange.emit()}return}}else if(this.allowEmpty){this.internalColor=null;this.value=null;this.calciteColorPickerHexInputChange.emit();return}this.value=t};e.prototype.onInputKeyDown=function(e){var t=e.altKey,r=e.ctrlKey,a=e.metaKey,n=e.shiftKey;var i=this,o=i.internalColor,s=i.value;var c=e.key;if(c==="Tab"||c==="Enter"){this.onInputChange();return}var h=c==="ArrowDown"||c==="ArrowUp";if(h){if(!s){this.value=this.previousNonNullValue;e.preventDefault();return}var u=c==="ArrowUp"?1:-1;var d=n?10:1;this.value=l(this.nudgeRGBChannels(o,d*u).hex());e.preventDefault();return}var v=t||r||a;var f=c.length===1;var m=p.test(c);if(f&&!v&&!m){e.preventDefault()}};e.prototype.render=function(){var e=this,t=e.intlHex,r=e.value;var n=this.formatForInternalInput(r);return a("div",{class:Fe.container},a("calcite-input",{class:Fe.input,label:t,maxLength:6,onCalciteInputBlur:this.onCalciteInputBlur,onCalciteInputChange:this.onInputChange,prefixText:"#",ref:this.storeInputRef,scale:this.scale,value:n}),n?a("calcite-color-picker-swatch",{active:true,class:Fe.preview,color:"#".concat(n),scale:this.scale}):null)};e.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){i(this.inputNode);return[2]}))}))};e.prototype.formatForInternalInput=function(e){return e?e.replace("#",""):""};e.prototype.nudgeRGBChannels=function(e,t){return fe.rgb(e.array().map((function(e){return e+t})))};Object.defineProperty(e.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{value:["handleValueChange"]}},enumerable:false,configurable:true});return e}());_e.style=Ae;var je={swatch:"swatch",noColorIcon:"no-color-icon"};var Te={borderLight:"rgba(0, 0, 0, 0.3)",borderDark:"rgba(255, 255, 255, 0.15)"};var He="@-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%}";var Oe=e("calcite_color_picker_swatch",function(){function e(e){t(this,e);this.active=false;this.scale="m"}e.prototype.handleColorChange=function(e){this.internalColor=fe(e)};e.prototype.componentWillLoad=function(){this.handleColorChange(this.color)};e.prototype.render=function(){var e=this,t=e.active,r=e.el,n=e.internalColor;var i=t?"100%":"0";var l=n.hex();var s=o(r);var c=s==="light"?Te.borderLight:Te.borderDark;return a("svg",{class:je.swatch,xmlns:"http://www.w3.org/2000/svg"},a("title",null,l),a("rect",{fill:l,height:"100%",id:"swatch",rx:i,stroke:c,"stroke-width":"2",style:{"clip-path":"inset(0 round ".concat(i,")")},width:"100%"}))};Object.defineProperty(e.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{color:["handleColorChange"]}},enumerable:false,configurable:true});return e}());Oe.style=He}}}));