@esri/calcite-components 1.0.0-next.293 → 1.0.0-next.294

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 (516) hide show
  1. package/CHANGELOG.md +18 -5
  2. package/dist/calcite/calcite.esm.js +1 -1
  3. package/dist/calcite/calcite.js +1 -1
  4. package/dist/calcite/{p-75793454.entry.js → p-0100aeb0.entry.js} +1 -1
  5. package/dist/calcite/p-05107123.entry.js +5 -0
  6. package/dist/calcite/{p-cbdf0e6c.js → p-05d1dfc6.js} +1 -1
  7. package/dist/calcite/{p-a8cd5cde.system.entry.js → p-06646eed.system.entry.js} +1 -1
  8. package/dist/calcite/{p-318e95d7.system.entry.js → p-09da1c54.system.entry.js} +1 -1
  9. package/dist/calcite/{p-727c8f36.system.entry.js → p-0d4e82ab.system.entry.js} +1 -1
  10. package/dist/calcite/{p-349333f8.system.entry.js → p-10759c71.system.entry.js} +2 -2
  11. package/dist/calcite/{p-32faf98b.system.entry.js → p-10de63d7.system.entry.js} +1 -1
  12. package/dist/calcite/p-11113310.entry.js +5 -0
  13. package/dist/calcite/{p-81a82d01.system.entry.js → p-12e1c83f.system.entry.js} +1 -1
  14. package/dist/calcite/p-1421e818.entry.js +5 -0
  15. package/dist/calcite/p-17e666d6.system.entry.js +5 -0
  16. package/dist/calcite/p-1e875199.entry.js +5 -0
  17. package/dist/calcite/{p-693a4d5f.entry.js → p-22ecf6df.entry.js} +1 -1
  18. package/dist/calcite/{p-72ffc6d7.entry.js → p-2418cceb.entry.js} +1 -1
  19. package/dist/calcite/{p-32fbf8cd.system.js → p-25a31861.system.js} +1 -1
  20. package/dist/calcite/{p-8655c0a1.entry.js → p-28261aae.entry.js} +1 -1
  21. package/dist/calcite/{p-9d3ee5cf.system.entry.js → p-2ecafa35.system.entry.js} +1 -1
  22. package/dist/calcite/{p-7f4a5f8e.system.entry.js → p-329e1831.system.entry.js} +2 -2
  23. package/dist/calcite/{p-95a3a0ce.entry.js → p-3383d9b4.entry.js} +1 -1
  24. package/dist/calcite/{p-87b93729.entry.js → p-36e5db45.entry.js} +1 -1
  25. package/dist/calcite/{p-bd555b2e.system.entry.js → p-38ee7306.system.entry.js} +1 -1
  26. package/dist/calcite/{p-8efb43fc.entry.js → p-3962cd38.entry.js} +1 -1
  27. package/dist/calcite/p-3994ac99.system.entry.js +5 -0
  28. package/dist/calcite/{p-9d83f268.system.entry.js → p-3bb30b44.system.entry.js} +1 -1
  29. package/dist/calcite/{p-bb916828.system.entry.js → p-3cf93a58.system.entry.js} +1 -1
  30. package/dist/calcite/{p-ff04f827.system.entry.js → p-3e438b5b.system.entry.js} +1 -1
  31. package/dist/calcite/{p-2920aa02.entry.js → p-3f1d1bad.entry.js} +1 -1
  32. package/dist/calcite/{p-69548a7d.system.entry.js → p-413b4857.system.entry.js} +1 -1
  33. package/dist/calcite/{p-da9603a3.entry.js → p-4185db77.entry.js} +1 -1
  34. package/dist/calcite/{p-4e06a168.entry.js → p-42128a12.entry.js} +1 -1
  35. package/dist/calcite/p-45257edb.js +5 -0
  36. package/dist/calcite/{p-5cb26137.system.entry.js → p-49d5ee42.system.entry.js} +1 -1
  37. package/dist/calcite/{p-5c221c33.system.entry.js → p-4c7e3915.system.entry.js} +1 -1
  38. package/dist/calcite/{p-26045881.entry.js → p-4ecd0331.entry.js} +1 -1
  39. package/dist/calcite/p-502736d8.system.entry.js +5 -0
  40. package/dist/calcite/{p-ac3d8784.entry.js → p-507b2cc4.entry.js} +1 -1
  41. package/dist/calcite/{p-34a6550f.system.entry.js → p-527146c8.system.entry.js} +1 -1
  42. package/dist/calcite/{p-f37563ac.system.entry.js → p-5322b333.system.entry.js} +1 -1
  43. package/dist/calcite/{p-a93678c6.system.entry.js → p-58716826.system.entry.js} +1 -1
  44. package/dist/calcite/{p-d7e5b807.system.entry.js → p-58e98b2d.system.entry.js} +1 -1
  45. package/dist/calcite/{p-1f99b038.entry.js → p-58eca102.entry.js} +1 -1
  46. package/dist/calcite/p-5e6d76dc.entry.js +5 -0
  47. package/dist/calcite/{p-9dbb69f7.entry.js → p-5efd7297.entry.js} +1 -1
  48. package/dist/calcite/{p-37cee0ea.entry.js → p-6621aee1.entry.js} +1 -1
  49. package/dist/calcite/{p-31c4a271.system.entry.js → p-684ccd4e.system.entry.js} +1 -1
  50. package/dist/calcite/{p-473cfb74.system.entry.js → p-6988c6b7.system.entry.js} +1 -1
  51. package/dist/calcite/{p-4c7e3d8e.system.entry.js → p-6c8a562f.system.entry.js} +1 -1
  52. package/dist/calcite/{p-18078190.entry.js → p-72fa390e.entry.js} +1 -1
  53. package/dist/calcite/{p-1aaf7f83.entry.js → p-75f714c9.entry.js} +1 -1
  54. package/dist/calcite/{p-41e9b889.entry.js → p-76ccd204.entry.js} +1 -1
  55. package/dist/calcite/{p-d7a7a544.system.entry.js → p-777c833f.system.entry.js} +1 -1
  56. package/dist/calcite/{p-7b01fe89.js → p-79cbbf2d.js} +1 -1
  57. package/dist/calcite/p-7a6c6382.entry.js +5 -0
  58. package/dist/calcite/p-7ade2294.system.entry.js +5 -0
  59. package/dist/calcite/{p-20042561.entry.js → p-7b869bc5.entry.js} +1 -1
  60. package/dist/calcite/{p-f4299b95.entry.js → p-7c37ca39.entry.js} +1 -1
  61. package/dist/calcite/{p-1b2c1f55.entry.js → p-7dd5c4e4.entry.js} +1 -1
  62. package/dist/calcite/{p-01c3783e.system.entry.js → p-8007a0b4.system.entry.js} +1 -1
  63. package/dist/calcite/{p-a20df95c.js → p-809ddb6a.js} +1 -1
  64. package/dist/calcite/{p-22ad79b1.entry.js → p-83302e1c.entry.js} +1 -1
  65. package/dist/calcite/{p-9358deb1.system.entry.js → p-83ccefba.system.entry.js} +1 -1
  66. package/dist/calcite/{p-530584ff.system.entry.js → p-8711a0ae.system.entry.js} +1 -1
  67. package/dist/calcite/{p-c0dd929a.entry.js → p-8953f712.entry.js} +1 -1
  68. package/dist/calcite/{p-c74fc589.system.js → p-89cdfa96.system.js} +1 -1
  69. package/dist/calcite/{p-b701101e.entry.js → p-8bc3e126.entry.js} +1 -1
  70. package/dist/calcite/{p-568ed3d6.system.entry.js → p-948aca0d.system.entry.js} +1 -1
  71. package/dist/calcite/{p-9e4f2697.system.entry.js → p-98789055.system.entry.js} +1 -1
  72. package/dist/calcite/p-99ff3a2f.entry.js +5 -0
  73. package/dist/calcite/{p-10ccc21d.entry.js → p-9affee61.entry.js} +1 -1
  74. package/dist/calcite/{p-99da965d.system.entry.js → p-9fa024e6.system.entry.js} +1 -1
  75. package/dist/calcite/{p-7b600760.entry.js → p-9fa5e356.entry.js} +1 -1
  76. package/dist/calcite/{p-021d44b7.system.entry.js → p-9fc0dc2c.system.entry.js} +1 -1
  77. package/dist/calcite/{p-67fd79db.entry.js → p-9fe349b9.entry.js} +1 -1
  78. package/dist/calcite/{p-0e30afe6.entry.js → p-a09634e2.entry.js} +1 -1
  79. package/dist/calcite/{p-361ddbb6.entry.js → p-a2cc027e.entry.js} +1 -1
  80. package/dist/calcite/{p-87e83c0d.system.entry.js → p-a5bfc29d.system.entry.js} +1 -1
  81. package/dist/calcite/{p-64d90b14.system.js → p-a7ba0292.system.js} +1 -1
  82. package/dist/calcite/{p-7c0debe0.system.entry.js → p-a8569c55.system.entry.js} +1 -1
  83. package/dist/calcite/p-b018fbbd.entry.js +5 -0
  84. package/dist/calcite/p-b1f88d45.system.js +5 -0
  85. package/dist/calcite/{p-eb3ee207.entry.js → p-b244a00c.entry.js} +1 -1
  86. package/dist/calcite/{p-57f5866d.system.entry.js → p-b41deed0.system.entry.js} +1 -1
  87. package/dist/calcite/{p-a7521c0d.entry.js → p-b42d730f.entry.js} +1 -1
  88. package/dist/calcite/p-b4960d06.system.js +5 -0
  89. package/dist/calcite/{p-ba9b4f62.system.entry.js → p-b4e7b593.system.entry.js} +1 -1
  90. package/dist/calcite/{p-0fc8b24c.system.entry.js → p-b8d040e5.system.entry.js} +1 -1
  91. package/dist/calcite/{p-175764f3.system.entry.js → p-ba1322e6.system.entry.js} +1 -1
  92. package/dist/calcite/{p-bfc162ee.system.entry.js → p-bbe2337b.system.entry.js} +2 -2
  93. package/dist/calcite/p-bbedf98c.entry.js +5 -0
  94. package/dist/calcite/{p-cb228ac0.entry.js → p-be52c734.entry.js} +1 -1
  95. package/dist/calcite/{p-3929447c.system.entry.js → p-bf25e278.system.entry.js} +1 -1
  96. package/dist/calcite/{p-fff0a881.entry.js → p-bf8b70a8.entry.js} +1 -1
  97. package/dist/calcite/p-c399cfce.entry.js +5 -0
  98. package/dist/calcite/{p-c3922ef7.system.entry.js → p-c48b4b7e.system.entry.js} +1 -1
  99. package/dist/calcite/p-c60e3a71.entry.js +5 -0
  100. package/dist/calcite/{p-050dc7e6.system.entry.js → p-c8e4117c.system.entry.js} +1 -1
  101. package/dist/calcite/{p-3ba8024a.system.entry.js → p-c99d8f9e.system.entry.js} +1 -1
  102. package/dist/calcite/{p-00d72f16.entry.js → p-c9ecea64.entry.js} +1 -1
  103. package/dist/calcite/{p-be3b0fee.entry.js → p-cacca548.entry.js} +1 -1
  104. package/dist/calcite/{p-93d8a7d5.entry.js → p-cb7b6425.entry.js} +1 -1
  105. package/dist/calcite/{p-f8d975a1.system.entry.js → p-cca94491.system.entry.js} +1 -1
  106. package/dist/calcite/{p-f141da0f.entry.js → p-cd41629f.entry.js} +1 -1
  107. package/dist/calcite/{p-7cdfec27.system.js → p-d11ad046.system.js} +1 -1
  108. package/dist/calcite/p-d4059426.entry.js +5 -0
  109. package/dist/calcite/{p-8fcfe861.js → p-d53cc958.js} +1 -1
  110. package/dist/calcite/{p-acaad99b.system.entry.js → p-daa110fe.system.entry.js} +1 -1
  111. package/dist/calcite/{p-fc4846f0.system.entry.js → p-dc99bb00.system.entry.js} +1 -1
  112. package/dist/calcite/{p-45d123be.system.entry.js → p-dcf30b00.system.entry.js} +1 -1
  113. package/dist/calcite/{p-c20278e8.system.entry.js → p-de3a04c2.system.entry.js} +1 -1
  114. package/dist/calcite/{p-fe52131d.entry.js → p-df9b4b76.entry.js} +1 -1
  115. package/dist/calcite/{p-9ac1fa0b.system.entry.js → p-e24b6c4a.system.entry.js} +1 -1
  116. package/dist/calcite/{p-3b17d8d0.system.js → p-e35e7216.system.js} +1 -1
  117. package/dist/calcite/{p-18574b32.entry.js → p-e382c4e9.entry.js} +1 -1
  118. package/dist/calcite/{p-f5d25746.system.entry.js → p-e40dd6fe.system.entry.js} +1 -1
  119. package/dist/calcite/{p-9caae570.entry.js → p-e5805bf1.entry.js} +1 -1
  120. package/dist/calcite/{p-e693758c.entry.js → p-e638ff0e.entry.js} +1 -1
  121. package/dist/calcite/{p-7839d1c9.entry.js → p-e7819705.entry.js} +1 -1
  122. package/dist/calcite/{p-d5d62977.entry.js → p-eccb140e.entry.js} +1 -1
  123. package/dist/calcite/p-eed43a57.system.entry.js +5 -0
  124. package/dist/calcite/{p-c57f8690.entry.js → p-f281f1e9.entry.js} +1 -1
  125. package/dist/calcite/{p-85a2bf7c.system.entry.js → p-f32e61bb.system.entry.js} +1 -1
  126. package/dist/calcite/p-f5bb39bb.js +5 -0
  127. package/dist/calcite/{p-e3a30266.system.entry.js → p-f6f4648e.system.entry.js} +1 -1
  128. package/dist/calcite/{p-51cb078a.entry.js → p-f93a7fce.entry.js} +1 -1
  129. package/dist/calcite/{p-e33a2dd2.system.entry.js → p-fba65e4a.system.entry.js} +1 -1
  130. package/dist/calcite/{p-cd8f7781.system.entry.js → p-fe16f05e.system.entry.js} +1 -1
  131. package/dist/cjs/{CalciteExpandToggle-0d802f83.js → CalciteExpandToggle-6a9f9858.js} +1 -1
  132. package/dist/cjs/{CalciteHeading-381b977d.js → CalciteHeading-363b0525.js} +1 -1
  133. package/dist/cjs/calcite-accordion_2.cjs.entry.js +1 -1
  134. package/dist/cjs/calcite-action-bar.cjs.entry.js +2 -2
  135. package/dist/cjs/calcite-action-group.cjs.entry.js +1 -1
  136. package/dist/cjs/calcite-action-menu.cjs.entry.js +1 -1
  137. package/dist/cjs/calcite-action-pad.cjs.entry.js +2 -2
  138. package/dist/cjs/calcite-action.cjs.entry.js +1 -1
  139. package/dist/cjs/calcite-alert.cjs.entry.js +1 -1
  140. package/dist/cjs/calcite-avatar.cjs.entry.js +1 -1
  141. package/dist/cjs/calcite-block_2.cjs.entry.js +3 -3
  142. package/dist/cjs/calcite-button.cjs.entry.js +1 -1
  143. package/dist/cjs/calcite-card.cjs.entry.js +2 -2
  144. package/dist/cjs/calcite-checkbox.cjs.entry.js +1 -1
  145. package/dist/cjs/calcite-chip.cjs.entry.js +1 -1
  146. package/dist/cjs/calcite-color-picker_3.cjs.entry.js +1 -1
  147. package/dist/cjs/calcite-combobox_3.cjs.entry.js +3 -3
  148. package/dist/cjs/calcite-date-picker_4.cjs.entry.js +3 -3
  149. package/dist/cjs/calcite-dropdown_3.cjs.entry.js +4 -4
  150. package/dist/cjs/calcite-fab.cjs.entry.js +1 -1
  151. package/dist/cjs/calcite-filter.cjs.entry.js +10 -7
  152. package/dist/cjs/calcite-flow.cjs.entry.js +1 -1
  153. package/dist/cjs/calcite-graph_2.cjs.entry.js +18 -10
  154. package/dist/cjs/calcite-handle.cjs.entry.js +1 -1
  155. package/dist/cjs/calcite-icon.cjs.entry.js +1 -1
  156. package/dist/cjs/calcite-inline-editable.cjs.entry.js +1 -1
  157. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +4 -4
  158. package/dist/cjs/calcite-input-message.cjs.entry.js +1 -1
  159. package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +1 -1
  160. package/dist/cjs/calcite-input.cjs.entry.js +31 -18
  161. package/dist/cjs/calcite-label.cjs.entry.js +1 -1
  162. package/dist/cjs/calcite-link.cjs.entry.js +1 -1
  163. package/dist/cjs/calcite-list_3.cjs.entry.js +2 -2
  164. package/dist/cjs/calcite-loader.cjs.entry.js +2 -2
  165. package/dist/cjs/calcite-modal.cjs.entry.js +1 -1
  166. package/dist/cjs/calcite-notice.cjs.entry.js +1 -1
  167. package/dist/cjs/calcite-option_3.cjs.entry.js +1 -1
  168. package/dist/cjs/calcite-pagination.cjs.entry.js +1 -1
  169. package/dist/cjs/calcite-panel.cjs.entry.js +3 -3
  170. package/dist/cjs/calcite-pick-list_3.cjs.entry.js +3 -3
  171. package/dist/cjs/calcite-popover_2.cjs.entry.js +4 -4
  172. package/dist/cjs/calcite-progress.cjs.entry.js +1 -1
  173. package/dist/cjs/calcite-radio-button-group.cjs.entry.js +1 -1
  174. package/dist/cjs/calcite-radio-group_2.cjs.entry.js +1 -1
  175. package/dist/cjs/calcite-radio_2.cjs.entry.js +1 -1
  176. package/dist/cjs/calcite-rating.cjs.entry.js +1 -1
  177. package/dist/cjs/calcite-scrim.cjs.entry.js +1 -1
  178. package/dist/cjs/calcite-shell_3.cjs.entry.js +1 -1
  179. package/dist/cjs/calcite-sortable-list.cjs.entry.js +1 -1
  180. package/dist/cjs/calcite-split-button.cjs.entry.js +1 -1
  181. package/dist/cjs/calcite-stepper_2.cjs.entry.js +1 -1
  182. package/dist/cjs/calcite-switch.cjs.entry.js +6 -1
  183. package/dist/cjs/calcite-tab_4.cjs.entry.js +1 -1
  184. package/dist/cjs/calcite-tile-select_2.cjs.entry.js +1 -1
  185. package/dist/cjs/calcite-tile.cjs.entry.js +2 -2
  186. package/dist/cjs/calcite-tip_3.cjs.entry.js +2 -2
  187. package/dist/cjs/calcite-tooltip_2.cjs.entry.js +3 -3
  188. package/dist/cjs/calcite-tree_2.cjs.entry.js +1 -1
  189. package/dist/cjs/calcite-value-list_2.cjs.entry.js +2 -2
  190. package/dist/cjs/calcite.cjs.js +3 -3
  191. package/dist/cjs/{index-1987a382.js → index-cee0daa9.js} +73 -64
  192. package/dist/cjs/loader.cjs.js +3 -3
  193. package/dist/cjs/{popper-cd9c0742.js → popper-87bf13e6.js} +2 -2
  194. package/dist/cjs/{resources-7dcd68d1.js → resources-38563593.js} +1 -1
  195. package/dist/cjs/{resources-d0619f6a.js → resources-f9c141d2.js} +1 -1
  196. package/dist/collection/collection-manifest.json +2 -2
  197. package/dist/collection/components/calcite-accordion/calcite-accordion.js +2 -2
  198. package/dist/collection/components/calcite-accordion-item/calcite-accordion-item.js +8 -8
  199. package/dist/collection/components/calcite-action/calcite-action.js +4 -4
  200. package/dist/collection/components/calcite-action-menu/calcite-action-menu.js +2 -2
  201. package/dist/collection/components/calcite-alert/calcite-alert.js +6 -6
  202. package/dist/collection/components/calcite-block/calcite-block.css +2 -2
  203. package/dist/collection/components/calcite-block/calcite-block.js +4 -4
  204. package/dist/collection/components/calcite-button/calcite-button.js +4 -4
  205. package/dist/collection/components/calcite-card/calcite-card.js +8 -8
  206. package/dist/collection/components/calcite-checkbox/calcite-checkbox.js +8 -8
  207. package/dist/collection/components/calcite-chip/calcite-chip.js +2 -2
  208. package/dist/collection/components/calcite-color-picker/calcite-color-picker.js +46 -46
  209. package/dist/collection/components/calcite-color-picker-hex-input/calcite-color-picker-hex-input.js +4 -4
  210. package/dist/collection/components/calcite-color-picker-swatch/calcite-color-picker-swatch.js +2 -2
  211. package/dist/collection/components/calcite-combobox/calcite-combobox.js +7 -7
  212. package/dist/collection/components/calcite-date-picker/calcite-date-picker.js +6 -6
  213. package/dist/collection/components/calcite-date-picker-day/calcite-date-picker-day.js +2 -2
  214. package/dist/collection/components/calcite-date-picker-month/calcite-date-picker-month.js +6 -6
  215. package/dist/collection/components/calcite-dropdown/calcite-dropdown.js +5 -5
  216. package/dist/collection/components/calcite-dropdown-group/calcite-dropdown-group.js +2 -2
  217. package/dist/collection/components/calcite-dropdown-item/calcite-dropdown-item.css +33 -27
  218. package/dist/collection/components/calcite-dropdown-item/calcite-dropdown-item.js +6 -6
  219. package/dist/collection/components/calcite-fab/calcite-fab.js +2 -2
  220. package/dist/collection/components/calcite-filter/calcite-filter.js +29 -11
  221. package/dist/collection/components/calcite-graph/calcite-graph.js +48 -6
  222. package/dist/collection/components/calcite-graph/util.js +1 -1
  223. package/dist/collection/components/calcite-handle/calcite-handle.js +2 -2
  224. package/dist/collection/components/calcite-inline-editable/calcite-inline-editable.js +12 -12
  225. package/dist/collection/components/calcite-input/calcite-input.js +42 -29
  226. package/dist/collection/components/calcite-input-date-picker/calcite-input-date-picker.js +11 -11
  227. package/dist/collection/components/calcite-input-message/calcite-input-message.js +2 -2
  228. package/dist/collection/components/calcite-label/calcite-label.js +2 -2
  229. package/dist/collection/components/calcite-loader/calcite-loader.css +0 -3
  230. package/dist/collection/components/calcite-modal/calcite-modal.js +2 -2
  231. package/dist/collection/components/calcite-notice/calcite-notice.js +2 -2
  232. package/dist/collection/components/calcite-option/calcite-option.js +2 -2
  233. package/dist/collection/components/calcite-option-group/calcite-option-group.js +2 -2
  234. package/dist/collection/components/calcite-pagination/calcite-pagination.js +8 -8
  235. package/dist/collection/components/calcite-panel/calcite-panel.css +6 -2
  236. package/dist/collection/components/calcite-pick-list-item/calcite-pick-list-item.js +10 -10
  237. package/dist/collection/components/calcite-popover/calcite-popover.js +9 -9
  238. package/dist/collection/components/calcite-popover-manager/calcite-popover-manager.js +2 -2
  239. package/dist/collection/components/calcite-radio/calcite-radio.js +4 -4
  240. package/dist/collection/components/calcite-radio-button/calcite-radio-button.js +12 -12
  241. package/dist/collection/components/calcite-radio-group-item/calcite-radio-group-item.js +2 -2
  242. package/dist/collection/components/calcite-rating/calcite-rating.js +4 -4
  243. package/dist/collection/components/calcite-scrim/calcite-scrim.js +2 -2
  244. package/dist/collection/components/calcite-select/calcite-select.js +2 -2
  245. package/dist/collection/components/calcite-slider/calcite-slider.css +2 -4
  246. package/dist/collection/components/calcite-slider/calcite-slider.js +3 -3
  247. package/dist/collection/components/calcite-split-button/calcite-split-button.js +2 -2
  248. package/dist/collection/components/calcite-stepper/calcite-stepper.js +4 -4
  249. package/dist/collection/components/calcite-stepper-item/calcite-stepper-item.js +14 -14
  250. package/dist/collection/components/calcite-switch/calcite-switch.js +8 -3
  251. package/dist/collection/components/calcite-tab/calcite-tab.js +4 -4
  252. package/dist/collection/components/calcite-tab-nav/calcite-tab-nav.js +14 -14
  253. package/dist/collection/components/calcite-tab-title/calcite-tab-title.js +16 -16
  254. package/dist/collection/components/calcite-tile/calcite-tile.css +4 -0
  255. package/dist/collection/components/calcite-tile/calcite-tile.js +2 -2
  256. package/dist/collection/components/calcite-time-picker/calcite-time-picker.js +30 -30
  257. package/dist/collection/components/calcite-tooltip/calcite-tooltip.js +5 -5
  258. package/dist/collection/components/calcite-tooltip-manager/calcite-tooltip-manager.js +2 -2
  259. package/dist/collection/components/calcite-tree/calcite-tree.js +10 -10
  260. package/dist/collection/components/calcite-tree-item/calcite-tree-item.js +20 -20
  261. package/dist/collection/components/calcite-value-list-item/calcite-value-list-item.js +6 -6
  262. package/dist/collection/utils/popper.js +2 -2
  263. package/dist/components/calcite-accordion-item.js +2 -2
  264. package/dist/components/calcite-accordion.js +2 -2
  265. package/dist/components/calcite-action-bar.js +2 -2
  266. package/dist/components/calcite-action-group2.js +2 -2
  267. package/dist/components/calcite-action-menu2.js +2 -2
  268. package/dist/components/calcite-action-pad.js +2 -2
  269. package/dist/components/calcite-action2.js +2 -2
  270. package/dist/components/calcite-alert.js +2 -2
  271. package/dist/components/calcite-avatar.js +2 -2
  272. package/dist/components/calcite-block-section.js +2 -2
  273. package/dist/components/calcite-block.js +3 -3
  274. package/dist/components/calcite-button2.js +2 -2
  275. package/dist/components/calcite-card.js +11 -5
  276. package/dist/components/calcite-checkbox2.js +2 -2
  277. package/dist/components/calcite-chip2.js +2 -2
  278. package/dist/components/calcite-color-picker-hex-input2.js +2 -2
  279. package/dist/components/calcite-color-picker-swatch2.js +2 -2
  280. package/dist/components/calcite-color-picker.js +2 -2
  281. package/dist/components/calcite-combobox-item-group.js +2 -2
  282. package/dist/components/calcite-combobox-item.js +2 -2
  283. package/dist/components/calcite-combobox.js +3 -3
  284. package/dist/components/calcite-date-picker-day2.js +2 -2
  285. package/dist/components/calcite-date-picker-month-header2.js +2 -2
  286. package/dist/components/calcite-date-picker-month2.js +2 -2
  287. package/dist/components/calcite-date-picker2.js +2 -2
  288. package/dist/components/calcite-dropdown-group.js +2 -2
  289. package/dist/components/calcite-dropdown-item.js +3 -3
  290. package/dist/components/calcite-dropdown2.js +3 -3
  291. package/dist/components/calcite-fab.js +2 -2
  292. package/dist/components/calcite-filter2.js +12 -9
  293. package/dist/components/calcite-flow.js +2 -2
  294. package/dist/components/calcite-graph2.js +20 -10
  295. package/dist/components/calcite-handle2.js +2 -2
  296. package/dist/components/calcite-icon2.js +2 -2
  297. package/dist/components/calcite-input-date-picker.js +3 -3
  298. package/dist/components/calcite-input-message.js +2 -2
  299. package/dist/components/calcite-input-time-picker.js +2 -2
  300. package/dist/components/calcite-input2.js +30 -17
  301. package/dist/components/calcite-label.js +1 -75
  302. package/dist/components/calcite-label2.js +81 -0
  303. package/dist/components/calcite-link2.js +2 -2
  304. package/dist/components/calcite-list-item-group.js +2 -2
  305. package/dist/components/calcite-list-item.js +2 -2
  306. package/dist/components/calcite-list.js +2 -2
  307. package/dist/components/calcite-loader2.js +3 -3
  308. package/dist/components/calcite-modal.js +2 -2
  309. package/dist/components/calcite-notice.js +2 -2
  310. package/dist/components/calcite-option-group.js +2 -2
  311. package/dist/components/calcite-option.js +2 -2
  312. package/dist/components/calcite-pagination.js +2 -2
  313. package/dist/components/calcite-panel.js +3 -3
  314. package/dist/components/calcite-pick-list-group.js +2 -2
  315. package/dist/components/calcite-pick-list-item2.js +2 -2
  316. package/dist/components/calcite-pick-list.js +2 -2
  317. package/dist/components/calcite-popover-manager.js +2 -2
  318. package/dist/components/calcite-popover2.js +3 -3
  319. package/dist/components/calcite-progress2.js +2 -2
  320. package/dist/components/calcite-radio-button-group.js +2 -2
  321. package/dist/components/calcite-radio-group-item.js +2 -2
  322. package/dist/components/calcite-radio-group.js +2 -2
  323. package/dist/components/calcite-radio2.js +2 -2
  324. package/dist/components/calcite-rating.js +2 -2
  325. package/dist/components/calcite-scrim2.js +2 -2
  326. package/dist/components/calcite-select.js +2 -2
  327. package/dist/components/calcite-shell-center-row.js +2 -2
  328. package/dist/components/calcite-shell-panel.js +2 -2
  329. package/dist/components/calcite-shell.js +2 -2
  330. package/dist/components/calcite-slider.js +4 -4
  331. package/dist/components/calcite-sortable-list.js +2 -2
  332. package/dist/components/calcite-split-button.js +2 -2
  333. package/dist/components/calcite-stepper-item.js +2 -2
  334. package/dist/components/calcite-stepper.js +2 -2
  335. package/dist/components/calcite-switch2.js +8 -3
  336. package/dist/components/calcite-tab-nav2.js +2 -2
  337. package/dist/components/calcite-tab-title2.js +2 -2
  338. package/dist/components/calcite-tab2.js +2 -2
  339. package/dist/components/calcite-tabs2.js +2 -2
  340. package/dist/components/calcite-tile-select-group.js +2 -2
  341. package/dist/components/calcite-tile-select.js +2 -2
  342. package/dist/components/calcite-tile2.js +3 -3
  343. package/dist/components/calcite-time-picker2.js +2 -2
  344. package/dist/components/calcite-tip-group.js +2 -2
  345. package/dist/components/calcite-tip-manager.js +2 -2
  346. package/dist/components/calcite-tip.js +2 -2
  347. package/dist/components/calcite-tooltip-manager2.js +2 -2
  348. package/dist/components/calcite-tooltip.js +3 -3
  349. package/dist/components/calcite-tree-item.js +2 -2
  350. package/dist/components/calcite-tree.js +2 -2
  351. package/dist/components/calcite-value-list-item.js +2 -2
  352. package/dist/components/calcite-value-list.js +2 -2
  353. package/dist/components/popper.js +2 -2
  354. package/dist/custom-elements/index.js +166 -137
  355. package/dist/esm/{CalciteExpandToggle-151a563a.js → CalciteExpandToggle-235a6bfd.js} +1 -1
  356. package/dist/esm/{CalciteHeading-1735f17a.js → CalciteHeading-dea3bd05.js} +1 -1
  357. package/dist/esm/calcite-accordion_2.entry.js +1 -1
  358. package/dist/esm/calcite-action-bar.entry.js +2 -2
  359. package/dist/esm/calcite-action-group.entry.js +1 -1
  360. package/dist/esm/calcite-action-menu.entry.js +1 -1
  361. package/dist/esm/calcite-action-pad.entry.js +2 -2
  362. package/dist/esm/calcite-action.entry.js +1 -1
  363. package/dist/esm/calcite-alert.entry.js +1 -1
  364. package/dist/esm/calcite-avatar.entry.js +1 -1
  365. package/dist/esm/calcite-block_2.entry.js +3 -3
  366. package/dist/esm/calcite-button.entry.js +1 -1
  367. package/dist/esm/calcite-card.entry.js +2 -2
  368. package/dist/esm/calcite-checkbox.entry.js +1 -1
  369. package/dist/esm/calcite-chip.entry.js +1 -1
  370. package/dist/esm/calcite-color-picker_3.entry.js +1 -1
  371. package/dist/esm/calcite-combobox_3.entry.js +3 -3
  372. package/dist/esm/calcite-date-picker_4.entry.js +3 -3
  373. package/dist/esm/calcite-dropdown_3.entry.js +4 -4
  374. package/dist/esm/calcite-fab.entry.js +1 -1
  375. package/dist/esm/calcite-filter.entry.js +10 -7
  376. package/dist/esm/calcite-flow.entry.js +1 -1
  377. package/dist/esm/calcite-graph_2.entry.js +18 -10
  378. package/dist/esm/calcite-handle.entry.js +1 -1
  379. package/dist/esm/calcite-icon.entry.js +1 -1
  380. package/dist/esm/calcite-inline-editable.entry.js +1 -1
  381. package/dist/esm/calcite-input-date-picker.entry.js +4 -4
  382. package/dist/esm/calcite-input-message.entry.js +1 -1
  383. package/dist/esm/calcite-input-time-picker_2.entry.js +1 -1
  384. package/dist/esm/calcite-input.entry.js +31 -18
  385. package/dist/esm/calcite-label.entry.js +1 -1
  386. package/dist/esm/calcite-link.entry.js +1 -1
  387. package/dist/esm/calcite-list_3.entry.js +2 -2
  388. package/dist/esm/calcite-loader.entry.js +2 -2
  389. package/dist/esm/calcite-modal.entry.js +1 -1
  390. package/dist/esm/calcite-notice.entry.js +1 -1
  391. package/dist/esm/calcite-option_3.entry.js +1 -1
  392. package/dist/esm/calcite-pagination.entry.js +1 -1
  393. package/dist/esm/calcite-panel.entry.js +3 -3
  394. package/dist/esm/calcite-pick-list_3.entry.js +3 -3
  395. package/dist/esm/calcite-popover_2.entry.js +4 -4
  396. package/dist/esm/calcite-progress.entry.js +1 -1
  397. package/dist/esm/calcite-radio-button-group.entry.js +1 -1
  398. package/dist/esm/calcite-radio-group_2.entry.js +1 -1
  399. package/dist/esm/calcite-radio_2.entry.js +1 -1
  400. package/dist/esm/calcite-rating.entry.js +1 -1
  401. package/dist/esm/calcite-scrim.entry.js +1 -1
  402. package/dist/esm/calcite-shell_3.entry.js +1 -1
  403. package/dist/esm/calcite-sortable-list.entry.js +1 -1
  404. package/dist/esm/calcite-split-button.entry.js +1 -1
  405. package/dist/esm/calcite-stepper_2.entry.js +1 -1
  406. package/dist/esm/calcite-switch.entry.js +6 -1
  407. package/dist/esm/calcite-tab_4.entry.js +1 -1
  408. package/dist/esm/calcite-tile-select_2.entry.js +1 -1
  409. package/dist/esm/calcite-tile.entry.js +2 -2
  410. package/dist/esm/calcite-tip_3.entry.js +2 -2
  411. package/dist/esm/calcite-tooltip_2.entry.js +3 -3
  412. package/dist/esm/calcite-tree_2.entry.js +1 -1
  413. package/dist/esm/calcite-value-list_2.entry.js +2 -2
  414. package/dist/esm/calcite.js +3 -3
  415. package/dist/esm/{index-d653c37f.js → index-66803519.js} +73 -64
  416. package/dist/esm/loader.js +3 -3
  417. package/dist/esm/{popper-7499ea4f.js → popper-dc4b45cf.js} +2 -2
  418. package/dist/esm/{resources-510eed1a.js → resources-8dd80c84.js} +1 -1
  419. package/dist/esm/{resources-3b481489.js → resources-c59a1a15.js} +1 -1
  420. package/dist/esm-es5/{CalciteExpandToggle-151a563a.js → CalciteExpandToggle-235a6bfd.js} +1 -1
  421. package/dist/esm-es5/{CalciteHeading-1735f17a.js → CalciteHeading-dea3bd05.js} +1 -1
  422. package/dist/esm-es5/calcite-accordion_2.entry.js +1 -1
  423. package/dist/esm-es5/calcite-action-bar.entry.js +1 -1
  424. package/dist/esm-es5/calcite-action-group.entry.js +1 -1
  425. package/dist/esm-es5/calcite-action-menu.entry.js +1 -1
  426. package/dist/esm-es5/calcite-action-pad.entry.js +1 -1
  427. package/dist/esm-es5/calcite-action.entry.js +1 -1
  428. package/dist/esm-es5/calcite-alert.entry.js +1 -1
  429. package/dist/esm-es5/calcite-avatar.entry.js +1 -1
  430. package/dist/esm-es5/calcite-block_2.entry.js +1 -1
  431. package/dist/esm-es5/calcite-button.entry.js +1 -1
  432. package/dist/esm-es5/calcite-card.entry.js +1 -1
  433. package/dist/esm-es5/calcite-checkbox.entry.js +1 -1
  434. package/dist/esm-es5/calcite-chip.entry.js +1 -1
  435. package/dist/esm-es5/calcite-color-picker_3.entry.js +1 -1
  436. package/dist/esm-es5/calcite-combobox_3.entry.js +1 -1
  437. package/dist/esm-es5/calcite-date-picker_4.entry.js +1 -1
  438. package/dist/esm-es5/calcite-dropdown_3.entry.js +1 -1
  439. package/dist/esm-es5/calcite-fab.entry.js +1 -1
  440. package/dist/esm-es5/calcite-filter.entry.js +1 -1
  441. package/dist/esm-es5/calcite-flow.entry.js +1 -1
  442. package/dist/esm-es5/calcite-graph_2.entry.js +1 -1
  443. package/dist/esm-es5/calcite-handle.entry.js +1 -1
  444. package/dist/esm-es5/calcite-icon.entry.js +1 -1
  445. package/dist/esm-es5/calcite-inline-editable.entry.js +1 -1
  446. package/dist/esm-es5/calcite-input-date-picker.entry.js +1 -1
  447. package/dist/esm-es5/calcite-input-message.entry.js +1 -1
  448. package/dist/esm-es5/calcite-input-time-picker_2.entry.js +1 -1
  449. package/dist/esm-es5/calcite-input.entry.js +1 -1
  450. package/dist/esm-es5/calcite-label.entry.js +1 -1
  451. package/dist/esm-es5/calcite-link.entry.js +1 -1
  452. package/dist/esm-es5/calcite-list_3.entry.js +1 -1
  453. package/dist/esm-es5/calcite-loader.entry.js +1 -1
  454. package/dist/esm-es5/calcite-modal.entry.js +1 -1
  455. package/dist/esm-es5/calcite-notice.entry.js +1 -1
  456. package/dist/esm-es5/calcite-option_3.entry.js +2 -2
  457. package/dist/esm-es5/calcite-pagination.entry.js +1 -1
  458. package/dist/esm-es5/calcite-panel.entry.js +1 -1
  459. package/dist/esm-es5/calcite-pick-list_3.entry.js +1 -1
  460. package/dist/esm-es5/calcite-popover_2.entry.js +1 -1
  461. package/dist/esm-es5/calcite-progress.entry.js +1 -1
  462. package/dist/esm-es5/calcite-radio-button-group.entry.js +1 -1
  463. package/dist/esm-es5/calcite-radio-group_2.entry.js +1 -1
  464. package/dist/esm-es5/calcite-radio_2.entry.js +1 -1
  465. package/dist/esm-es5/calcite-rating.entry.js +1 -1
  466. package/dist/esm-es5/calcite-scrim.entry.js +1 -1
  467. package/dist/esm-es5/calcite-shell_3.entry.js +1 -1
  468. package/dist/esm-es5/calcite-sortable-list.entry.js +1 -1
  469. package/dist/esm-es5/calcite-split-button.entry.js +1 -1
  470. package/dist/esm-es5/calcite-stepper_2.entry.js +1 -1
  471. package/dist/esm-es5/calcite-switch.entry.js +1 -1
  472. package/dist/esm-es5/calcite-tab_4.entry.js +1 -1
  473. package/dist/esm-es5/calcite-tile-select_2.entry.js +1 -1
  474. package/dist/esm-es5/calcite-tile.entry.js +1 -1
  475. package/dist/esm-es5/calcite-tip_3.entry.js +1 -1
  476. package/dist/esm-es5/calcite-tooltip_2.entry.js +2 -2
  477. package/dist/esm-es5/calcite-tree_2.entry.js +1 -1
  478. package/dist/esm-es5/calcite-value-list_2.entry.js +1 -1
  479. package/dist/esm-es5/calcite.js +1 -1
  480. package/dist/esm-es5/{index-d653c37f.js → index-66803519.js} +1 -1
  481. package/dist/esm-es5/loader.js +1 -1
  482. package/dist/esm-es5/popper-dc4b45cf.js +5 -0
  483. package/dist/esm-es5/{resources-510eed1a.js → resources-8dd80c84.js} +1 -1
  484. package/dist/esm-es5/{resources-3b481489.js → resources-c59a1a15.js} +1 -1
  485. package/dist/extras/docs-json.json +478 -422
  486. package/dist/types/components/calcite-filter/calcite-filter.d.ts +5 -1
  487. package/dist/types/components/calcite-graph/calcite-graph.d.ts +4 -0
  488. package/dist/types/components/calcite-input/calcite-input.d.ts +7 -1
  489. package/dist/types/components/calcite-modal/calcite-modal.d.ts +2 -2
  490. package/dist/types/components.d.ts +28 -4
  491. package/dist/types/utils/popper.d.ts +1 -1
  492. package/hydrate/index.js +82 -50
  493. package/package.json +10 -10
  494. package/readme.md +2 -2
  495. package/dist/calcite/p-07ba39b6.js +0 -5
  496. package/dist/calcite/p-0fb8cdc5.entry.js +0 -5
  497. package/dist/calcite/p-0fd333ff.entry.js +0 -5
  498. package/dist/calcite/p-24b86e03.entry.js +0 -5
  499. package/dist/calcite/p-29b110b2.entry.js +0 -5
  500. package/dist/calcite/p-34a1c944.entry.js +0 -5
  501. package/dist/calcite/p-378b83de.entry.js +0 -5
  502. package/dist/calcite/p-43494684.entry.js +0 -5
  503. package/dist/calcite/p-485062f4.system.entry.js +0 -5
  504. package/dist/calcite/p-61038b30.js +0 -5
  505. package/dist/calcite/p-728501db.system.js +0 -5
  506. package/dist/calcite/p-745e41ea.entry.js +0 -5
  507. package/dist/calcite/p-7a544774.system.entry.js +0 -5
  508. package/dist/calcite/p-9965ea81.system.js +0 -5
  509. package/dist/calcite/p-ba255377.entry.js +0 -5
  510. package/dist/calcite/p-bc02d9ef.system.entry.js +0 -5
  511. package/dist/calcite/p-bcc323ec.system.entry.js +0 -5
  512. package/dist/calcite/p-c1995144.system.entry.js +0 -5
  513. package/dist/calcite/p-c31243c5.entry.js +0 -5
  514. package/dist/calcite/p-de0f4633.entry.js +0 -5
  515. package/dist/calcite/p-e9044cc1.entry.js +0 -5
  516. package/dist/esm-es5/popper-7499ea4f.js +0 -5
@@ -1,5 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- */
5
- import{r as t,c as i,h as e,H as c,g as n}from"./p-cbdf0e6c.js";import{T as a,s as l,c as s,d as r,a as o,C as u}from"./p-52cc870b.js";import{g as p,n as h}from"./p-72563742.js";import{c as d,d as m,g as b}from"./p-2ba00b89.js";import{d as f,g,l as _}from"./p-f07d3627.js";import{h as x}from"./p-d35e423d.js";import{i as w,p as v,s as y}from"./p-b2ab0485.js";import"./p-8a63221d.js";const k={tel:"phone",password:"lock",email:"email-address",date:"calendar",time:"clock",search:"search"};let z=class{constructor(e){t(this,e),this.calciteInputFocus=i(this,"calciteInputFocus",7),this.calciteInputBlur=i(this,"calciteInputBlur",7),this.calciteInputInput=i(this,"calciteInputInput",7),this.calciteInputChange=i(this,"calciteInputChange",7),this.alignment="start",this.autofocus=!1,this.clearable=!1,this.disabled=!1,this.groupSeparator=!1,this.intlLoading=a.loading,this.iconFlipRtl=!1,this.loading=!1,this.locale=document.documentElement.lang||"en",this.localeFormat=!1,this.numberButtonType="vertical",this.readOnly=!1,this.required=!1,this.scale="m",this.status="idle",this.type="text",this.childElType="input",this.clearInputValue=t=>{this.setValue(null,t,!0)},this.inputBlurHandler=()=>{"number"===this.type&&this.setLocalizedValue(this.value),this.calciteInputBlur.emit({element:this.childEl,value:this.value}),this.preFocusValue!==this.value&&this.calciteInputChange.emit()},this.inputFocusHandler=t=>{t.target!==this.slottedActionEl&&this.setFocus(),this.calciteInputFocus.emit({element:this.childEl,value:this.value}),this.preFocusValue=this.value},this.inputInputHandler=t=>{this.disabled||this.readOnly||this.setValue(t.target.value,t)},this.inputKeyDownHandler=t=>{this.disabled||this.readOnly||"Enter"===t.key&&this.calciteInputChange.emit()},this.inputNumberInputHandler=t=>{if(this.disabled||this.readOnly)return;const i=t.target.value,e=f(i,this.locale);"insertFromPaste"===t.inputType?(w(e)||t.preventDefault(),this.setValue(v(e),t),this.childNumberEl.value=this.localizedValue):this.setValue(f(i,this.locale),t)},this.inputNumberKeyDownHandler=t=>{if("number"!==this.type||this.disabled||this.readOnly)return;if("ArrowUp"===t.key)return void this.nudgeNumberValue("up",t);if("ArrowDown"===t.key)return void this.nudgeNumberValue("down",t);const i=[...h,"ArrowLeft","ArrowRight","Backspace","Delete","Enter","Escape","Tab","-"];if(t.altKey||t.ctrlKey||t.metaKey)return;const e=t.shiftKey&&"Tab"===t.key;if(i.includes(t.key)&&(!t.shiftKey||e))return void("Enter"===t.key&&this.calciteInputChange.emit());const c=g(this.locale);if(t.key===c){if(!this.value&&!this.childNumberEl.value)return;if(this.value&&-1===this.childNumberEl.value.indexOf(c))return}t.preventDefault()},this.nudgeNumberValue=(t,i)=>{if("number"!==this.type)return;const e=this.value,c=this.maxString?parseFloat(this.maxString):null,n=this.minString?parseFloat(this.minString):null,a="any"===this.step?1:Math.abs(this.step||1),l=e&&""!==e?parseFloat(e):0;let s=e;"up"===t&&(!c&&0!==c||l<c)&&(s=(l+a).toString()),"down"===t&&(!n&&0!==n||l>n)&&(s=(l-a).toString()),this.setValue(s,i,!0)},this.numberButtonClickHandler=t=>{t.preventDefault(),this.nudgeNumberValue(t.target.dataset.adjustment,t)},this.reset=t=>{"number"===this.type&&t.preventDefault(),this.setValue(this.defaultValue,t)},this.setChildElRef=t=>{this.childEl=t},this.setChildNumberElRef=t=>{this.childNumberEl=t},this.setLocalizedValue=t=>{this.localizedValue=_(t,this.locale,this.groupSeparator)},this.setValue=(t,i,e=!1)=>{const c=this.value;if(this.value="number"===this.type?y(t):t,"number"===this.type&&this.setLocalizedValue(this.value),i){if("number"===this.type&&(null==t?void 0:t.endsWith(".")))return;this.calciteInputInput.emit({element:this.childEl,nativeEvent:i,value:t}).defaultPrevented?(this.value=c,this.setLocalizedValue(c)):e&&this.calciteInputChange.emit()}}}disabledWatcher(){this.setDisabledAction()}maxWatcher(){var t;this.maxString=(null===(t=this.max)||void 0===t?void 0:t.toString())||null}minWatcher(){var t;this.minString=(null===(t=this.min)||void 0===t?void 0:t.toString())||null}valueWatcher(t){"number"===this.type&&this.localizedValue!==_(t,this.locale)?this.setLocalizedValue(t):this.childEl&&this.childEl.value!==t&&(this.childEl.value=t)}updateRequestedIcon(){this.requestedIcon=l(k,this.icon,this.type)}get isClearable(){var t;return!this.isTextarea&&(this.clearable||"search"===this.type)&&(null===(t=this.value)||void 0===t?void 0:t.length)>0}get isTextarea(){return"textarea"===this.childElType}connectedCallback(){var t;this.form=s(this.el,"form"),null===(t=this.form)||void 0===t||t.addEventListener("reset",this.reset),this.scale=r(this.el,"scale",this.scale),this.status=r(this.el,"status",this.status),"number"===this.type&&this.value&&(w(this.value)?this.localizedValue=_(this.value,this.locale,this.groupSeparator):this.value=void 0),d(this)}disconnectedCallback(){var t;null===(t=this.form)||void 0===t||t.removeEventListener("reset",this.reset),m(this)}componentWillLoad(){var t,i;this.childElType="textarea"===this.type?"textarea":"input",this.defaultValue=this.value,this.maxString=null===(t=this.max)||void 0===t?void 0:t.toString(),this.minString=null===(i=this.min)||void 0===i?void 0:i.toString(),this.requestedIcon=l(k,this.icon,this.type)}componentDidLoad(){this.slottedActionEl=this.el.querySelector("[slot=action]"),this.setDisabledAction(),"number"===this.type&&this.childEl&&(this.childEl.style.cssText=x)}componentShouldUpdate(t,i,e){return!("number"===this.type&&"value"===e&&t&&!w(t)&&(this.value=i,1))}keyDownHandler(t){this.readOnly||this.disabled||this.isClearable&&"Escape"===p(t.key)&&(this.clearInputValue(t),t.preventDefault())}async setFocus(){var t,i;"number"===this.type?null===(t=this.childNumberEl)||void 0===t||t.focus():null===(i=this.childEl)||void 0===i||i.focus()}onLabelClick(){this.setFocus()}setDisabledAction(){if(!this.slottedActionEl)return;const t=this.slottedActionEl;this.disabled?t.setAttribute("disabled",""):t.removeAttribute("disabled")}render(){const t=o(this.el),i=e("div",{class:"calcite-input__loader"},e("calcite-progress",{label:this.intlLoading,type:"indeterminate"})),n=e("button",{class:"calcite-input__clear-button",disabled:this.disabled||this.readOnly,onClick:this.clearInputValue,tabIndex:this.disabled?-1:0,type:"button"},e("calcite-icon",{icon:"x",scale:"s"})),a=e("calcite-icon",{class:"calcite-input__icon",dir:t,flipRtl:this.iconFlipRtl,icon:this.requestedIcon,scale:"s"}),l="horizontal"===this.numberButtonType,s=e("button",{class:{"calcite-input__number-button-item":!0,"calcite-input__number-button-item--horizontal":l},"data-adjustment":"up",disabled:this.disabled||this.readOnly,onClick:this.numberButtonClickHandler,tabIndex:-1,type:"button"},e("calcite-icon",{icon:"chevron-up",scale:"s"})),r=e("button",{class:{"calcite-input__number-button-item":!0,"calcite-input__number-button-item--horizontal":l},"data-adjustment":"down",disabled:this.disabled||this.readOnly,onClick:this.numberButtonClickHandler,tabIndex:-1,type:"button"},e("calcite-icon",{icon:"chevron-down",scale:"s"})),p=e("div",{class:"calcite-input__number-button-wrapper"},s,r),h=e("div",{class:"calcite-input__prefix"},this.prefixText),d=e("div",{class:"calcite-input__suffix"},this.suffixText),m="number"===this.type?e("input",{"aria-label":b(this),autofocus:!!this.autofocus||null,defaultValue:this.defaultValue,disabled:!!this.disabled||null,key:"localized-input",maxLength:this.maxLength,minLength:this.minLength,name:void 0,onBlur:this.inputBlurHandler,onFocus:this.inputFocusHandler,onInput:this.inputNumberInputHandler,onKeyDown:this.inputNumberKeyDownHandler,placeholder:this.placeholder||"",readOnly:this.readOnly,ref:this.setChildNumberElRef,tabIndex:this.disabled?-1:0,type:"text",value:this.localizedValue}):null,f=[e(this.childElType,{"aria-label":b(this),autofocus:!!this.autofocus||null,defaultValue:this.defaultValue,disabled:!!this.disabled||null,max:this.maxString,maxLength:this.maxLength,min:this.minString,minLength:this.minLength,name:this.name,onBlur:this.inputBlurHandler,onFocus:this.inputFocusHandler,onInput:this.inputInputHandler,onKeyDown:this.inputKeyDownHandler,placeholder:this.placeholder||"",readOnly:this.readOnly,ref:this.setChildElRef,required:!!this.required||null,step:this.step,tabIndex:this.disabled||"number"===this.type?-1:null,type:this.type,value:this.value}),this.isTextarea?e("div",{class:"calcite-input__resize-icon-wrapper"},e("calcite-icon",{icon:"chevron-down",scale:"s"})):null];return e(c,{onClick:this.inputFocusHandler},e("div",{class:{"calcite-input__wrapper":!0,[u.rtl]:"rtl"===t},dir:t},"number"===this.type&&"horizontal"===this.numberButtonType?r:null,this.prefixText?h:null,e("div",{class:"calcite-input__element-wrapper"},m,f,this.isClearable?n:null,this.requestedIcon?a:null,this.loading?i:null),e("div",{class:"calcite-input__action-wrapper"},e("slot",{name:"action"})),"number"===this.type&&"vertical"===this.numberButtonType?p:null,this.suffixText?d:null,"number"===this.type&&"horizontal"===this.numberButtonType?s:null))}get el(){return n(this)}static get watchers(){return{disabled:["disabledWatcher"],max:["maxWatcher"],min:["minWatcher"],value:["valueWatcher"],icon:["updateRequestedIcon"],type:["updateRequestedIcon"]}}};z.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)}}.sc-calcite-input:root{--calcite-animation-timing:300ms}.calcite-animate.sc-calcite-input{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.sc-calcite-input{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down.sc-calcite-input{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up.sc-calcite-input{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale.sc-calcite-input{-webkit-animation-name:in-scale;animation-name:in-scale}.sc-calcite-input:root{--calcite-popper-transition:150ms ease-in-out}[hidden].sc-calcite-input-h{display:none}[scale=s].sc-calcite-input-h input.sc-calcite-input,[scale=s].sc-calcite-input-h .calcite-input__prefix.sc-calcite-input,[scale=s].sc-calcite-input-h .calcite-input__suffix.sc-calcite-input{font-size:var(--calcite-font-size--2);line-height:1rem;padding:0.5rem;height:1.5rem}[scale=s].sc-calcite-input-h textarea.sc-calcite-input{height:1.5rem;min-height:1.5rem}[scale=s].sc-calcite-input-h .calcite-input__number-button-wrapper.sc-calcite-input,[scale=s].sc-calcite-input-h .calcite-input__action-wrapper.sc-calcite-input calcite-button.sc-calcite-input,[scale=s].sc-calcite-input-h .calcite-input__action-wrapper.sc-calcite-input calcite-button.sc-calcite-input button.sc-calcite-input{height:1.5rem}[scale=s].sc-calcite-input-h input[type=file].sc-calcite-input{height:1.5rem}[scale=s].sc-calcite-input-h .calcite-input__clear-button.sc-calcite-input{min-height:1.5rem;min-width:1.5rem}[scale=s].sc-calcite-input-h textarea.sc-calcite-input{font-size:var(--calcite-font-size--2);line-height:1rem;padding-top:0.25rem;padding-bottom:0.25rem;padding-left:0.5rem;padding-right:0.5rem;height:auto}[scale=m].sc-calcite-input-h input.sc-calcite-input,[scale=m].sc-calcite-input-h .calcite-input__prefix.sc-calcite-input,[scale=m].sc-calcite-input-h .calcite-input__suffix.sc-calcite-input{font-size:var(--calcite-font-size--1);line-height:1rem;padding:0.75rem;height:2rem}[scale=m].sc-calcite-input-h textarea.sc-calcite-input{min-height:2rem}[scale=m].sc-calcite-input-h .calcite-input__number-button-wrapper.sc-calcite-input,[scale=m].sc-calcite-input-h .calcite-input__action-wrapper.sc-calcite-input calcite-button.sc-calcite-input,[scale=m].sc-calcite-input-h .calcite-input__action-wrapper.sc-calcite-input calcite-button.sc-calcite-input button.sc-calcite-input{height:2rem}[scale=m].sc-calcite-input-h input[type=file].sc-calcite-input{height:2rem}[scale=m].sc-calcite-input-h .calcite-input__clear-button.sc-calcite-input{min-height:2rem;min-width:2rem}[scale=m].sc-calcite-input-h textarea.sc-calcite-input{font-size:var(--calcite-font-size--1);line-height:1rem;padding-top:0.5rem;padding-bottom:0.5rem;padding-left:0.75rem;padding-right:0.75rem;height:auto}[scale=l].sc-calcite-input-h input.sc-calcite-input,[scale=l].sc-calcite-input-h .calcite-input__prefix.sc-calcite-input,[scale=l].sc-calcite-input-h .calcite-input__suffix.sc-calcite-input{font-size:var(--calcite-font-size-0);line-height:1.25rem;padding:1rem;height:2.75rem}[scale=l].sc-calcite-input-h textarea.sc-calcite-input{min-height:2.75rem}[scale=l].sc-calcite-input-h .calcite-input__number-button-wrapper.sc-calcite-input,[scale=l].sc-calcite-input-h .calcite-input__action-wrapper.sc-calcite-input calcite-button.sc-calcite-input,[scale=l].sc-calcite-input-h .calcite-input__action-wrapper.sc-calcite-input calcite-button.sc-calcite-input button.sc-calcite-input{height:2.75rem}[scale=l].sc-calcite-input-h input[type=file].sc-calcite-input{height:2.75rem}[scale=l].sc-calcite-input-h .calcite-input__clear-button.sc-calcite-input{min-height:2.75rem;min-width:2.75rem}[scale=l].sc-calcite-input-h textarea.sc-calcite-input{font-size:var(--calcite-font-size-0);line-height:1.25rem;padding-top:0.75rem;padding-bottom:0.75rem;padding-left:1rem;padding-right:1rem;height:auto}[disabled].sc-calcite-input-h{pointer-events:none}[disabled].sc-calcite-input-h .calcite-input__wrapper.sc-calcite-input{pointer-events:none;--text-opacity:var(--calcite-ui-opacity-disabled)}[disabled].sc-calcite-input-h button.sc-calcite-input,[disabled].sc-calcite-input-h textarea.sc-calcite-input,[disabled].sc-calcite-input-h input.sc-calcite-input{pointer-events:none}[disabled].sc-calcite-input-h textarea.sc-calcite-input{resize:none}.sc-calcite-input-h textarea.sc-calcite-input,.sc-calcite-input-h input.sc-calcite-input{-webkit-transition:150ms ease-in-out, height 0s;transition:150ms ease-in-out, height 0s;-webkit-appearance:none;width:100%;border-radius:0;position:relative;max-height:100%;max-width:100%;margin:0;font-weight:var(--calcite-font-weight-normal);font-family:inherit;-ms-flex:1 1 0%;flex:1 1 0%;display:-ms-flexbox;display:flex;color:var(--calcite-ui-text-1);-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1)}.sc-calcite-input-h input[type=search].sc-calcite-input::-webkit-search-decoration{-webkit-appearance:none}.sc-calcite-input-h input.sc-calcite-input,.sc-calcite-input-h textarea.sc-calcite-input{color:var(--calcite-ui-text-1);border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input)}.sc-calcite-input-h input.sc-calcite-input:-ms-input-placeholder,.sc-calcite-input-h textarea.sc-calcite-input:-ms-input-placeholder{color:var(--calcite-ui-text-3);font-weight:var(--calcite-font-weight-normal)}.sc-calcite-input-h input.sc-calcite-input::-ms-input-placeholder,.sc-calcite-input-h textarea.sc-calcite-input::-ms-input-placeholder{color:var(--calcite-ui-text-3);font-weight:var(--calcite-font-weight-normal)}.sc-calcite-input-h input.sc-calcite-input::placeholder,.sc-calcite-input-h input.sc-calcite-input:-ms-input-placeholder,.sc-calcite-input-h input.sc-calcite-input::-ms-input-placeholder,.sc-calcite-input-h textarea.sc-calcite-input::placeholder,.sc-calcite-input-h textarea.sc-calcite-input:-ms-input-placeholder,.sc-calcite-input-h textarea.sc-calcite-input::-ms-input-placeholder{color:var(--calcite-ui-text-3);font-weight:var(--calcite-font-weight-normal)}.sc-calcite-input-h input.sc-calcite-input:focus,.sc-calcite-input-h textarea.sc-calcite-input:focus{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-text-1)}.sc-calcite-input-h input[readonly].sc-calcite-input,.sc-calcite-input-h textarea[readonly].sc-calcite-input{background-color:var(--calcite-ui-background)}.sc-calcite-input-h input[readonly].sc-calcite-input:focus,.sc-calcite-input-h textarea[readonly].sc-calcite-input:focus{color:var(--calcite-ui-text-1)}.sc-calcite-input-h calcite-icon.sc-calcite-input{color:var(--calcite-ui-text-3)}.sc-calcite-input-h textarea.sc-calcite-input,.sc-calcite-input-h input.sc-calcite-input{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}.sc-calcite-input-h textarea.sc-calcite-input:focus,.sc-calcite-input-h input.sc-calcite-input:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}[status=invalid].sc-calcite-input-h input.sc-calcite-input,[status=invalid].sc-calcite-input-h textarea.sc-calcite-input{border-color:var(--calcite-ui-danger)}[status=invalid].sc-calcite-input-h input.sc-calcite-input:focus,[status=invalid].sc-calcite-input-h textarea.sc-calcite-input:focus{outline:2px solid var(--calcite-ui-danger);outline-offset:-2px}[scale=s].sc-calcite-input-h .calcite-input__icon.sc-calcite-input{left:0.5rem}[scale=s].sc-calcite-input-h .calcite--rtl.sc-calcite-input .calcite-input__icon.sc-calcite-input{left:unset;right:0.5rem}[scale=m].sc-calcite-input-h .calcite-input__icon.sc-calcite-input{left:0.75rem}[scale=m].sc-calcite-input-h .calcite--rtl.sc-calcite-input .calcite-input__icon.sc-calcite-input{left:unset;right:0.75rem}[scale=l].sc-calcite-input-h .calcite-input__icon.sc-calcite-input{left:1rem}[scale=l].sc-calcite-input-h .calcite--rtl.sc-calcite-input .calcite-input__icon.sc-calcite-input{left:unset;right:1rem}[icon][scale=s].sc-calcite-input-h input.sc-calcite-input{padding-left:2rem}[icon][scale=s].sc-calcite-input-h .calcite--rtl.sc-calcite-input input.sc-calcite-input{padding-right:2rem;padding-left:0.5rem}[icon][scale=m].sc-calcite-input-h input.sc-calcite-input{padding-left:2.5rem}[icon][scale=m].sc-calcite-input-h .calcite--rtl.sc-calcite-input input.sc-calcite-input{padding-right:2.5rem;padding-left:0.5rem}[icon][scale=l].sc-calcite-input-h input.sc-calcite-input{padding-left:3rem}[icon][scale=l].sc-calcite-input-h .calcite--rtl.sc-calcite-input input.sc-calcite-input{padding-right:3rem;padding-left:0.5rem}.calcite-input__element-wrapper.sc-calcite-input{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex:1 1 0%;flex:1 1 0%;position:relative;-ms-flex-order:3;order:3}.calcite-input__icon.sc-calcite-input{display:block;position:absolute;pointer-events:none;z-index:10;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}input[type=text].sc-calcite-input::-ms-clear,input[type=text].sc-calcite-input::-ms-reveal{display:none;width:0;height:0}input[type=search].sc-calcite-input::-webkit-search-decoration,input[type=search].sc-calcite-input::-webkit-search-cancel-button,input[type=search].sc-calcite-input::-webkit-search-results-button,input[type=search].sc-calcite-input::-webkit-search-results-decoration,input[type=date].sc-calcite-input::-webkit-clear-button,input[type=time].sc-calcite-input::-webkit-clear-button{display:none}.calcite-input__clear-button.sc-calcite-input{pointer-events:initial;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;display:-ms-flexbox;display:flex;-ms-flex-item-align:stretch;align-self:stretch;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;min-height:100%;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);border-left-width:0;-ms-flex-order:4;order:4;margin:0}.calcite-input__clear-button.sc-calcite-input:hover{background-color:var(--calcite-ui-foreground-2);-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}.calcite-input__clear-button.sc-calcite-input:hover calcite-icon.sc-calcite-input{color:var(--calcite-ui-text-1);-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}.calcite-input__clear-button.sc-calcite-input:active{background-color:var(--calcite-ui-foreground-3)}.calcite-input__clear-button.sc-calcite-input:active calcite-icon.sc-calcite-input{color:var(--calcite-ui-text-1)}.calcite-input__clear-button.sc-calcite-input:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.calcite-input__clear-button.sc-calcite-input:disabled{opacity:var(--calcite-ui-opacity-disabled)}.calcite--rtl.sc-calcite-input .calcite-input__clear-button.sc-calcite-input{border-left-color:var(--calcite-ui-border-input);border-width:1px;border-right-width:0}.calcite-input__loader.sc-calcite-input{top:1px;left:1px;right:1px;display:block;pointer-events:none;position:absolute}.calcite-input__action-wrapper.sc-calcite-input{display:-ms-flexbox;display:flex;-ms-flex-order:7;order:7}.calcite-input__prefix.sc-calcite-input,.calcite-input__suffix.sc-calcite-input{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:center;align-content:center;height:auto;min-height:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-box-sizing:border-box;box-sizing:border-box;font-weight:var(--calcite-font-weight-medium);border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-background);color:var(--calcite-ui-text-2);line-height:1;word-wrap:break-word;overflow-wrap:break-word}.calcite-input__prefix.sc-calcite-input{-ms-flex-order:2;order:2;border-right-width:0}.calcite-input__suffix.sc-calcite-input{-ms-flex-order:5;order:5;border-left-width:0}.calcite--rtl.sc-calcite-input .calcite-input__prefix.sc-calcite-input{border-right-width:1px;border-left-width:0}.calcite--rtl.sc-calcite-input .calcite-input__suffix.sc-calcite-input{border-left-width:1px;border-right-width:0}[alignment=start].sc-calcite-input-h textarea.sc-calcite-input,[alignment=start].sc-calcite-input-h input.sc-calcite-input{text-align:left}[alignment=start].sc-calcite-input-h .calcite--rtl.sc-calcite-input textarea.sc-calcite-input,[alignment=start].sc-calcite-input-h .calcite--rtl.sc-calcite-input input.sc-calcite-input{text-align:right}[alignment=end].sc-calcite-input-h textarea.sc-calcite-input,[alignment=end].sc-calcite-input-h input.sc-calcite-input{text-align:right}[alignment=end].sc-calcite-input-h .calcite--rtl.sc-calcite-input textarea.sc-calcite-input,[alignment=end].sc-calcite-input-h .calcite--rtl.sc-calcite-input input.sc-calcite-input{text-align:left}.sc-calcite-input-h input[type=number].sc-calcite-input{-moz-appearance:textfield}.sc-calcite-input-h input[type=number].sc-calcite-input::-webkit-inner-spin-button,.sc-calcite-input-h input[type=number].sc-calcite-input::-webkit-outer-spin-button{-webkit-appearance:none;-moz-appearance:textfield;margin:0}.calcite-input__number-button-wrapper.sc-calcite-input{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;pointer-events:none;-ms-flex-order:6;order:6;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}[number-button-type=vertical].sc-calcite-input-h .calcite-input__wrapper.sc-calcite-input{-ms-flex-direction:row;flex-direction:row;display:-ms-flexbox;display:flex}[number-button-type=vertical].sc-calcite-input-h input.sc-calcite-input,[number-button-type=vertical].sc-calcite-input-h textarea.sc-calcite-input{-ms-flex-order:2;order:2}[number-button-type=horizontal].sc-calcite-input-h .calcite--rtl.sc-calcite-input .calcite-input__number-button-item[data-adjustment=down].sc-calcite-input calcite-icon.sc-calcite-input{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}[number-button-type=horizontal].sc-calcite-input-h .calcite--rtl.sc-calcite-input .calcite-input__number-button-item[data-adjustment=up].sc-calcite-input calcite-icon.sc-calcite-input{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.calcite-input__number-button-item.calcite-input__number-button-item--horizontal[data-adjustment=down].sc-calcite-input,.calcite-input__number-button-item.calcite-input__number-button-item--horizontal[data-adjustment=up].sc-calcite-input{min-height:100%;max-height:100%;-ms-flex-order:1;order:1;-ms-flex-item-align:stretch;align-self:stretch}.calcite-input__number-button-item.calcite-input__number-button-item--horizontal[data-adjustment=down].sc-calcite-input calcite-icon.sc-calcite-input,.calcite-input__number-button-item.calcite-input__number-button-item--horizontal[data-adjustment=up].sc-calcite-input calcite-icon.sc-calcite-input{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.calcite-input__number-button-item.calcite-input__number-button-item--horizontal[data-adjustment=down].sc-calcite-input{border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);border-right-width:0}.calcite-input__number-button-item.calcite-input__number-button-item--horizontal[data-adjustment=down].sc-calcite-input:hover{background-color:var(--calcite-ui-foreground-2)}.calcite-input__number-button-item.calcite-input__number-button-item--horizontal[data-adjustment=down].sc-calcite-input:hover calcite-icon.sc-calcite-input{color:var(--calcite-ui-text-1)}.calcite-input__number-button-item.calcite-input__number-button-item--horizontal[data-adjustment=up].sc-calcite-input{-ms-flex-order:5;order:5}.calcite-input__number-button-item.calcite-input__number-button-item--horizontal[data-adjustment=up].sc-calcite-input:hover{background-color:var(--calcite-ui-foreground-2)}.calcite-input__number-button-item.calcite-input__number-button-item--horizontal[data-adjustment=up].sc-calcite-input:hover calcite-icon.sc-calcite-input{color:var(--calcite-ui-text-1)}[number-button-type=vertical].sc-calcite-input-h .calcite-input__number-button-item[data-adjustment=down].sc-calcite-input:hover{background-color:var(--calcite-ui-foreground-2)}[number-button-type=vertical].sc-calcite-input-h .calcite-input__number-button-item[data-adjustment=down].sc-calcite-input:hover calcite-icon.sc-calcite-input{color:var(--calcite-ui-text-1)}[number-button-type=vertical].sc-calcite-input-h .calcite-input__number-button-item[data-adjustment=up].sc-calcite-input:hover{background-color:var(--calcite-ui-foreground-2)}[number-button-type=vertical].sc-calcite-input-h .calcite-input__number-button-item[data-adjustment=up].sc-calcite-input:hover calcite-icon.sc-calcite-input{color:var(--calcite-ui-text-1)}.calcite--rtl.sc-calcite-input .calcite-input__number-button-item.calcite-input__number-button-item--horizontal[data-adjustment=down].sc-calcite-input{border-width:1px;border-left-width:0;border-color:var(--calcite-ui-border-input)}.calcite--rtl.sc-calcite-input .calcite-input__number-button-item.calcite-input__number-button-item--horizontal[data-adjustment=up].sc-calcite-input{border-width:1px;border-right-width:0;border-color:var(--calcite-ui-border-input)}[number-button-type=vertical].sc-calcite-input-h .calcite-input__number-button-item[data-adjustment=down].sc-calcite-input,[number-button-type=vertical].sc-calcite-input-h .calcite--rtl.sc-calcite-input .calcite-input__number-button-item[data-adjustment=down].sc-calcite-input{border-top-width:0}.calcite-input__number-button-item.sc-calcite-input{max-height:50%;min-height:50%;pointer-events:initial;display:-ms-flexbox;display:flex;-ms-flex-item-align:center;align-self:center;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;padding-top:0;padding-bottom:0;padding-left:0.5rem;padding-right:0.5rem;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);border-left-width:0;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s;margin:0}.calcite-input__number-button-item.sc-calcite-input calcite-icon.sc-calcite-input{pointer-events:none;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}.calcite-input__number-button-item.sc-calcite-input:focus{background-color:var(--calcite-ui-foreground-2)}.calcite-input__number-button-item.sc-calcite-input:focus calcite-icon.sc-calcite-input{color:var(--calcite-ui-text-1)}.calcite-input__number-button-item.sc-calcite-input:active{background-color:var(--calcite-ui-foreground-3)}[number-button-type=vertical].sc-calcite-input-h .calcite--rtl.sc-calcite-input .calcite-input__number-button-item.sc-calcite-input{border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);border-right-width:0}.calcite-input__wrapper.sc-calcite-input{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;position:relative}.sc-calcite-input-h input.sc-calcite-input::-webkit-calendar-picker-indicator{display:none}.sc-calcite-input-h input[type=date].sc-calcite-input::-webkit-input-placeholder{visibility:hidden !important}.sc-calcite-input-h textarea.sc-calcite-input::-webkit-resizer{-webkit-box-sizing:border-box;box-sizing:border-box;position:absolute;bottom:0;right:0;padding-top:0;padding-bottom:0;padding-left:0.25rem;padding-right:0.25rem}@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none){.calcite-input__resize-icon-wrapper.sc-calcite-input{display:none}}.calcite-input__resize-icon-wrapper.sc-calcite-input{bottom:2px;right:2px;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-3);position:absolute;z-index:10;pointer-events:none;width:0.75rem;height:0.75rem}.calcite-input__resize-icon-wrapper.sc-calcite-input calcite-icon.sc-calcite-input{bottom:0.25rem;right:0.25rem;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.calcite--rtl.sc-calcite-input textarea.sc-calcite-input::-webkit-resizer{right:unset;left:0}.calcite--rtl.sc-calcite-input .calcite-input__resize-icon-wrapper.sc-calcite-input{left:2px;right:unset}.calcite--rtl.sc-calcite-input .calcite-input__resize-icon-wrapper.sc-calcite-input calcite-icon.sc-calcite-input{bottom:0.25rem;right:0.25rem;-webkit-transform:rotate(45deg);transform:rotate(45deg)}[type=color].sc-calcite-input-h input.sc-calcite-input{padding:0.25rem}[type=file].sc-calcite-input-h input.sc-calcite-input{background-color:var(--calcite-ui-foreground-1);cursor:pointer;border-width:1px;border-style:dashed;border-color:var(--calcite-ui-border-input);text-align:center}[type=file][scale=s].sc-calcite-input-h input.sc-calcite-input{padding-top:1px;padding-bottom:1px;padding-left:0.5rem;padding-right:0.5rem}[type=file][scale=m].sc-calcite-input-h input.sc-calcite-input{padding-top:0.25rem;padding-bottom:0.25rem;padding-left:0.75rem;padding-right:0.75rem}[type=file][scale=l].sc-calcite-input-h input.sc-calcite-input{padding-top:0.5rem;padding-bottom:0.5rem;padding-left:1rem;padding-right:1rem}.no-bottom-border.sc-calcite-input-h input.sc-calcite-input.sc-calcite-input{border-bottom-width:0}.border-t-color-1.sc-calcite-input-h input.sc-calcite-input.sc-calcite-input{border-top-color:var(--calcite-ui-border-1)}";export{z as calcite_input}
@@ -1,5 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- */
5
- import{a as getElementDir}from"./dom-f24e866c.js";var top="top";var bottom="bottom";var right="right";var left="left";var auto="auto";var basePlacements=[top,bottom,right,left];var start="start";var end="end";var clippingParents="clippingParents";var viewport="viewport";var popper="popper";var reference="reference";var variationPlacements=basePlacements.reduce((function(e,t){return e.concat([t+"-"+start,t+"-"+end])}),[]);var placements=[].concat(basePlacements,[auto]).reduce((function(e,t){return e.concat([t,t+"-"+start,t+"-"+end])}),[]);var beforeRead="beforeRead";var read="read";var afterRead="afterRead";var beforeMain="beforeMain";var main="main";var afterMain="afterMain";var beforeWrite="beforeWrite";var write="write";var afterWrite="afterWrite";var modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite];function getNodeName(e){return e?(e.nodeName||"").toLowerCase():null}function getWindow(e){if(e==null){return window}if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t?t.defaultView||window:window}return e}function isElement(e){var t=getWindow(e).Element;return e instanceof t||e instanceof Element}function isHTMLElement(e){var t=getWindow(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function isShadowRoot(e){if(typeof ShadowRoot==="undefined"){return false}var t=getWindow(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function applyStyles(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{};var n=t.attributes[e]||{};var a=t.elements[e];if(!isHTMLElement(a)||!getNodeName(a)){return}Object.assign(a.style,r);Object.keys(n).forEach((function(e){var t=n[e];if(t===false){a.removeAttribute(e)}else{a.setAttribute(e,t===true?"":t)}}))}))}function effect$2(e){var t=e.state;var r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,r.popper);t.styles=r;if(t.elements.arrow){Object.assign(t.elements.arrow.style,r.arrow)}return function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e];var a=t.attributes[e]||{};var o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]);var i=o.reduce((function(e,t){e[t]="";return e}),{});if(!isHTMLElement(n)||!getNodeName(n)){return}Object.assign(n.style,i);Object.keys(a).forEach((function(e){n.removeAttribute(e)}))}))}}var applyStyles$1={name:"applyStyles",enabled:true,phase:"write",fn:applyStyles,effect:effect$2,requires:["computeStyles"]};function getBasePlacement(e){return e.split("-")[0]}function getBoundingClientRect(e,t){var r=e.getBoundingClientRect();var n=1;var a=1;return{width:r.width/n,height:r.height/a,top:r.top/a,right:r.right/n,bottom:r.bottom/a,left:r.left/n,x:r.left/n,y:r.top/a}}function getLayoutRect(e){var t=getBoundingClientRect(e);var r=e.offsetWidth;var n=e.offsetHeight;if(Math.abs(t.width-r)<=1){r=t.width}if(Math.abs(t.height-n)<=1){n=t.height}return{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function contains(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t)){return true}else if(r&&isShadowRoot(r)){var n=t;do{if(n&&e.isSameNode(n)){return true}n=n.parentNode||n.host}while(n)}return false}function getComputedStyle(e){return getWindow(e).getComputedStyle(e)}function isTableElement(e){return["table","td","th"].indexOf(getNodeName(e))>=0}function getDocumentElement(e){return((isElement(e)?e.ownerDocument:e.document)||window.document).documentElement}function getParentNode(e){if(getNodeName(e)==="html"){return e}return e.assignedSlot||e.parentNode||(isShadowRoot(e)?e.host:null)||getDocumentElement(e)}function getTrueOffsetParent(e){if(!isHTMLElement(e)||getComputedStyle(e).position==="fixed"){return null}return e.offsetParent}function getContainingBlock(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1;var r=navigator.userAgent.indexOf("Trident")!==-1;if(r&&isHTMLElement(e)){var n=getComputedStyle(e);if(n.position==="fixed"){return null}}var a=getParentNode(e);while(isHTMLElement(a)&&["html","body"].indexOf(getNodeName(a))<0){var o=getComputedStyle(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none"){return a}else{a=a.parentNode}}return null}function getOffsetParent(e){var t=getWindow(e);var r=getTrueOffsetParent(e);while(r&&isTableElement(r)&&getComputedStyle(r).position==="static"){r=getTrueOffsetParent(r)}if(r&&(getNodeName(r)==="html"||getNodeName(r)==="body"&&getComputedStyle(r).position==="static")){return t}return r||getContainingBlock(e)||t}function getMainAxisFromPlacement(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}var max=Math.max;var min=Math.min;var round=Math.round;function within(e,t,r){return max(e,min(t,r))}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(e){return Object.assign({},getFreshSideObject(),e)}function expandToHashMap(e,t){return t.reduce((function(t,r){t[r]=e;return t}),{})}var toPaddingObject=function e(t,r){t=typeof t==="function"?t(Object.assign({},r.rects,{placement:r.placement})):t;return mergePaddingObject(typeof t!=="number"?t:expandToHashMap(t,basePlacements))};function arrow(e){var t;var r=e.state,n=e.name,a=e.options;var o=r.elements.arrow;var i=r.modifiersData.popperOffsets;var s=getBasePlacement(r.placement);var f=getMainAxisFromPlacement(s);var l=[left,right].indexOf(s)>=0;var c=l?"height":"width";if(!o||!i){return}var p=toPaddingObject(a.padding,r);var u=getLayoutRect(o);var d=f==="y"?top:left;var v=f==="y"?bottom:right;var m=r.rects.reference[c]+r.rects.reference[f]-i[f]-r.rects.popper[c];var g=i[f]-r.rects.reference[f];var h=getOffsetParent(o);var y=h?f==="y"?h.clientHeight||0:h.clientWidth||0:0;var b=m/2-g/2;var w=p[d];var O=y-u[c]-p[v];var P=y/2-u[c]/2+b;var x=within(w,P,O);var S=f;r.modifiersData[n]=(t={},t[S]=x,t.centerOffset=x-P,t)}function effect$1(e){var t=e.state,r=e.options;var n=r.element,a=n===void 0?"[data-popper-arrow]":n;if(a==null){return}if(typeof a==="string"){a=t.elements.popper.querySelector(a);if(!a){return}}if(!contains(t.elements.popper,a)){return}t.elements.arrow=a}var arrow$1={name:"arrow",enabled:true,phase:"main",fn:arrow,effect:effect$1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function getVariation(e){return e.split("-")[1]}var unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(e){var t=e.x,r=e.y;var n=window;var a=n.devicePixelRatio||1;return{x:round(round(t*a)/a)||0,y:round(round(r*a)/a)||0}}function mapToStyles(e){var t;var r=e.popper,n=e.popperRect,a=e.placement,o=e.variation,i=e.offsets,s=e.position,f=e.gpuAcceleration,l=e.adaptive,c=e.roundOffsets;var p=c===true?roundOffsetsByDPR(i):typeof c==="function"?c(i):i,u=p.x,d=u===void 0?0:u,v=p.y,m=v===void 0?0:v;var g=i.hasOwnProperty("x");var h=i.hasOwnProperty("y");var y=left;var b=top;var w=window;if(l){var O=getOffsetParent(r);var P="clientHeight";var x="clientWidth";if(O===getWindow(r)){O=getDocumentElement(r);if(getComputedStyle(O).position!=="static"&&s==="absolute"){P="scrollHeight";x="scrollWidth"}}O=O;if(a===top||(a===left||a===right)&&o===end){b=bottom;m-=O[P]-n.height;m*=f?1:-1}if(a===left||(a===top||a===bottom)&&o===end){y=right;d-=O[x]-n.width;d*=f?1:-1}}var S=Object.assign({position:s},l&&unsetSides);if(f){var E;return Object.assign({},S,(E={},E[b]=h?"0":"",E[y]=g?"0":"",E.transform=(w.devicePixelRatio||1)<=1?"translate("+d+"px, "+m+"px)":"translate3d("+d+"px, "+m+"px, 0)",E))}return Object.assign({},S,(t={},t[b]=h?m+"px":"",t[y]=g?d+"px":"",t.transform="",t))}function computeStyles(e){var t=e.state,r=e.options;var n=r.gpuAcceleration,a=n===void 0?true:n,o=r.adaptive,i=o===void 0?true:o,s=r.roundOffsets,f=s===void 0?true:s;var l={placement:getBasePlacement(t.placement),variation:getVariation(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a};if(t.modifiersData.popperOffsets!=null){t.styles.popper=Object.assign({},t.styles.popper,mapToStyles(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:f})))}if(t.modifiersData.arrow!=null){t.styles.arrow=Object.assign({},t.styles.arrow,mapToStyles(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:false,roundOffsets:f})))}t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var computeStyles$1={name:"computeStyles",enabled:true,phase:"beforeWrite",fn:computeStyles,data:{}};var passive={passive:true};function effect(e){var t=e.state,r=e.instance,n=e.options;var a=n.scroll,o=a===void 0?true:a,i=n.resize,s=i===void 0?true:i;var f=getWindow(t.elements.popper);var l=[].concat(t.scrollParents.reference,t.scrollParents.popper);if(o){l.forEach((function(e){e.addEventListener("scroll",r.update,passive)}))}if(s){f.addEventListener("resize",r.update,passive)}return function(){if(o){l.forEach((function(e){e.removeEventListener("scroll",r.update,passive)}))}if(s){f.removeEventListener("resize",r.update,passive)}}}var eventListeners={name:"eventListeners",enabled:true,phase:"write",fn:function e(){},effect:effect,data:{}};var hash$1={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(e){return e.replace(/left|right|bottom|top/g,(function(e){return hash$1[e]}))}var hash={start:"end",end:"start"};function getOppositeVariationPlacement(e){return e.replace(/start|end/g,(function(e){return hash[e]}))}function getWindowScroll(e){var t=getWindow(e);var r=t.pageXOffset;var n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function getWindowScrollBarX(e){return getBoundingClientRect(getDocumentElement(e)).left+getWindowScroll(e).scrollLeft}function getViewportRect(e){var t=getWindow(e);var r=getDocumentElement(e);var n=t.visualViewport;var a=r.clientWidth;var o=r.clientHeight;var i=0;var s=0;if(n){a=n.width;o=n.height;if(!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)){i=n.offsetLeft;s=n.offsetTop}}return{width:a,height:o,x:i+getWindowScrollBarX(e),y:s}}function getDocumentRect(e){var t;var r=getDocumentElement(e);var n=getWindowScroll(e);var a=(t=e.ownerDocument)==null?void 0:t.body;var o=max(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0);var i=max(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0);var s=-n.scrollLeft+getWindowScrollBarX(e);var f=-n.scrollTop;if(getComputedStyle(a||r).direction==="rtl"){s+=max(r.clientWidth,a?a.clientWidth:0)-o}return{width:o,height:i,x:s,y:f}}function isScrollParent(e){var t=getComputedStyle(e),r=t.overflow,n=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function getScrollParent(e){if(["html","body","#document"].indexOf(getNodeName(e))>=0){return e.ownerDocument.body}if(isHTMLElement(e)&&isScrollParent(e)){return e}return getScrollParent(getParentNode(e))}function listScrollParents(e,t){var r;if(t===void 0){t=[]}var n=getScrollParent(e);var a=n===((r=e.ownerDocument)==null?void 0:r.body);var o=getWindow(n);var i=a?[o].concat(o.visualViewport||[],isScrollParent(n)?n:[]):n;var s=t.concat(i);return a?s:s.concat(listScrollParents(getParentNode(i)))}function rectToClientRect(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function getInnerBoundingClientRect(e){var t=getBoundingClientRect(e);t.top=t.top+e.clientTop;t.left=t.left+e.clientLeft;t.bottom=t.top+e.clientHeight;t.right=t.left+e.clientWidth;t.width=e.clientWidth;t.height=e.clientHeight;t.x=t.left;t.y=t.top;return t}function getClientRectFromMixedType(e,t){return t===viewport?rectToClientRect(getViewportRect(e)):isHTMLElement(t)?getInnerBoundingClientRect(t):rectToClientRect(getDocumentRect(getDocumentElement(e)))}function getClippingParents(e){var t=listScrollParents(getParentNode(e));var r=["absolute","fixed"].indexOf(getComputedStyle(e).position)>=0;var n=r&&isHTMLElement(e)?getOffsetParent(e):e;if(!isElement(n)){return[]}return t.filter((function(e){return isElement(e)&&contains(e,n)&&getNodeName(e)!=="body"}))}function getClippingRect(e,t,r){var n=t==="clippingParents"?getClippingParents(e):[].concat(t);var a=[].concat(n,[r]);var o=a[0];var i=a.reduce((function(t,r){var n=getClientRectFromMixedType(e,r);t.top=max(n.top,t.top);t.right=min(n.right,t.right);t.bottom=min(n.bottom,t.bottom);t.left=max(n.left,t.left);return t}),getClientRectFromMixedType(e,o));i.width=i.right-i.left;i.height=i.bottom-i.top;i.x=i.left;i.y=i.top;return i}function computeOffsets(e){var t=e.reference,r=e.element,n=e.placement;var a=n?getBasePlacement(n):null;var o=n?getVariation(n):null;var i=t.x+t.width/2-r.width/2;var s=t.y+t.height/2-r.height/2;var f;switch(a){case top:f={x:i,y:t.y-r.height};break;case bottom:f={x:i,y:t.y+t.height};break;case right:f={x:t.x+t.width,y:s};break;case left:f={x:t.x-r.width,y:s};break;default:f={x:t.x,y:t.y}}var l=a?getMainAxisFromPlacement(a):null;if(l!=null){var c=l==="y"?"height":"width";switch(o){case start:f[l]=f[l]-(t[c]/2-r[c]/2);break;case end:f[l]=f[l]+(t[c]/2-r[c]/2);break}}return f}function detectOverflow(e,t){if(t===void 0){t={}}var r=t,n=r.placement,a=n===void 0?e.placement:n,o=r.boundary,i=o===void 0?clippingParents:o,s=r.rootBoundary,f=s===void 0?viewport:s,l=r.elementContext,c=l===void 0?popper:l,p=r.altBoundary,u=p===void 0?false:p,d=r.padding,v=d===void 0?0:d;var m=mergePaddingObject(typeof v!=="number"?v:expandToHashMap(v,basePlacements));var g=c===popper?reference:popper;var h=e.rects.popper;var y=e.elements[u?g:c];var b=getClippingRect(isElement(y)?y:y.contextElement||getDocumentElement(e.elements.popper),i,f);var w=getBoundingClientRect(e.elements.reference);var O=computeOffsets({reference:w,element:h,strategy:"absolute",placement:a});var P=rectToClientRect(Object.assign({},h,O));var x=c===popper?P:w;var S={top:b.top-x.top+m.top,bottom:x.bottom-b.bottom+m.bottom,left:b.left-x.left+m.left,right:x.right-b.right+m.right};var E=e.modifiersData.offset;if(c===popper&&E){var M=E[a];Object.keys(S).forEach((function(e){var t=[right,bottom].indexOf(e)>=0?1:-1;var r=[top,bottom].indexOf(e)>=0?"y":"x";S[e]+=M[r]*t}))}return S}function computeAutoPlacement(e,t){if(t===void 0){t={}}var r=t,n=r.placement,a=r.boundary,o=r.rootBoundary,i=r.padding,s=r.flipVariations,f=r.allowedAutoPlacements,l=f===void 0?placements:f;var c=getVariation(n);var p=c?s?variationPlacements:variationPlacements.filter((function(e){return getVariation(e)===c})):basePlacements;var u=p.filter((function(e){return l.indexOf(e)>=0}));if(u.length===0){u=p}var d=u.reduce((function(t,r){t[r]=detectOverflow(e,{placement:r,boundary:a,rootBoundary:o,padding:i})[getBasePlacement(r)];return t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}function getExpandedFallbackPlacements(e){if(getBasePlacement(e)===auto){return[]}var t=getOppositePlacement(e);return[getOppositeVariationPlacement(e),t,getOppositeVariationPlacement(t)]}function flip(e){var t=e.state,r=e.options,n=e.name;if(t.modifiersData[n]._skip){return}var a=r.mainAxis,o=a===void 0?true:a,i=r.altAxis,s=i===void 0?true:i,f=r.fallbackPlacements,l=r.padding,c=r.boundary,p=r.rootBoundary,u=r.altBoundary,d=r.flipVariations,v=d===void 0?true:d,m=r.allowedAutoPlacements;var g=t.options.placement;var h=getBasePlacement(g);var y=h===g;var b=f||(y||!v?[getOppositePlacement(g)]:getExpandedFallbackPlacements(g));var w=[g].concat(b).reduce((function(e,r){return e.concat(getBasePlacement(r)===auto?computeAutoPlacement(t,{placement:r,boundary:c,rootBoundary:p,padding:l,flipVariations:v,allowedAutoPlacements:m}):r)}),[]);var O=t.rects.reference;var P=t.rects.popper;var x=new Map;var S=true;var E=w[0];for(var M=0;M<w.length;M++){var T=w[M];var R=getBasePlacement(T);var C=getVariation(T)===start;var D=[top,bottom].indexOf(R)>=0;var B=D?"width":"height";var L=detectOverflow(t,{placement:T,boundary:c,rootBoundary:p,altBoundary:u,padding:l});var j=D?C?right:left:C?bottom:top;if(O[B]>P[B]){j=getOppositePlacement(j)}var W=getOppositePlacement(j);var N=[];if(o){N.push(L[R]<=0)}if(s){N.push(L[j]<=0,L[W]<=0)}if(N.every((function(e){return e}))){E=T;S=false;break}x.set(T,N)}if(S){var A=v?3:1;var H=function e(t){var r=w.find((function(e){var r=x.get(e);if(r){return r.slice(0,t).every((function(e){return e}))}}));if(r){E=r;return"break"}};for(var k=A;k>0;k--){var $=H(k);if($==="break")break}}if(t.placement!==E){t.modifiersData[n]._skip=true;t.placement=E;t.reset=true}}var flip$1={name:"flip",enabled:true,phase:"main",fn:flip,requiresIfExists:["offset"],data:{_skip:false}};function getSideOffsets(e,t,r){if(r===void 0){r={x:0,y:0}}return{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function isAnySideFullyClipped(e){return[top,right,bottom,left].some((function(t){return e[t]>=0}))}function hide(e){var t=e.state,r=e.name;var n=t.rects.reference;var a=t.rects.popper;var o=t.modifiersData.preventOverflow;var i=detectOverflow(t,{elementContext:"reference"});var s=detectOverflow(t,{altBoundary:true});var f=getSideOffsets(i,n);var l=getSideOffsets(s,a,o);var c=isAnySideFullyClipped(f);var p=isAnySideFullyClipped(l);t.modifiersData[r]={referenceClippingOffsets:f,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:p};t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":p})}var hide$1={name:"hide",enabled:true,phase:"main",requiresIfExists:["preventOverflow"],fn:hide};function distanceAndSkiddingToXY(e,t,r){var n=getBasePlacement(e);var a=[left,top].indexOf(n)>=0?-1:1;var o=typeof r==="function"?r(Object.assign({},t,{placement:e})):r,i=o[0],s=o[1];i=i||0;s=(s||0)*a;return[left,right].indexOf(n)>=0?{x:s,y:i}:{x:i,y:s}}function offset(e){var t=e.state,r=e.options,n=e.name;var a=r.offset,o=a===void 0?[0,0]:a;var i=placements.reduce((function(e,r){e[r]=distanceAndSkiddingToXY(r,t.rects,o);return e}),{});var s=i[t.placement],f=s.x,l=s.y;if(t.modifiersData.popperOffsets!=null){t.modifiersData.popperOffsets.x+=f;t.modifiersData.popperOffsets.y+=l}t.modifiersData[n]=i}var offset$1={name:"offset",enabled:true,phase:"main",requires:["popperOffsets"],fn:offset};function popperOffsets(e){var t=e.state,r=e.name;t.modifiersData[r]=computeOffsets({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var popperOffsets$1={name:"popperOffsets",enabled:true,phase:"read",fn:popperOffsets,data:{}};function getAltAxis(e){return e==="x"?"y":"x"}function preventOverflow(e){var t=e.state,r=e.options,n=e.name;var a=r.mainAxis,o=a===void 0?true:a,i=r.altAxis,s=i===void 0?false:i,f=r.boundary,l=r.rootBoundary,c=r.altBoundary,p=r.padding,u=r.tether,d=u===void 0?true:u,v=r.tetherOffset,m=v===void 0?0:v;var g=detectOverflow(t,{boundary:f,rootBoundary:l,padding:p,altBoundary:c});var h=getBasePlacement(t.placement);var y=getVariation(t.placement);var b=!y;var w=getMainAxisFromPlacement(h);var O=getAltAxis(w);var P=t.modifiersData.popperOffsets;var x=t.rects.reference;var S=t.rects.popper;var E=typeof m==="function"?m(Object.assign({},t.rects,{placement:t.placement})):m;var M={x:0,y:0};if(!P){return}if(o||s){var T=w==="y"?top:left;var R=w==="y"?bottom:right;var C=w==="y"?"height":"width";var D=P[w];var B=P[w]+g[T];var L=P[w]-g[R];var j=d?-S[C]/2:0;var W=y===start?x[C]:S[C];var N=y===start?-S[C]:-x[C];var A=t.elements.arrow;var H=d&&A?getLayoutRect(A):{width:0,height:0};var k=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:getFreshSideObject();var $=k[T];var V=k[R];var F=within(0,x[C],H[C]);var q=b?x[C]/2-j-F-$-E:W-F-$-E;var I=b?-x[C]/2+j+F+V+E:N+F+V+E;var X=t.elements.arrow&&getOffsetParent(t.elements.arrow);var U=X?w==="y"?X.clientTop||0:X.clientLeft||0:0;var z=t.modifiersData.offset?t.modifiersData.offset[t.placement][w]:0;var _=P[w]+q-z-U;var Y=P[w]+I-z;if(o){var G=within(d?min(B,_):B,D,d?max(L,Y):L);P[w]=G;M[w]=G-D}if(s){var J=w==="x"?top:left;var K=w==="x"?bottom:right;var Q=P[O];var Z=Q+g[J];var ee=Q-g[K];var te=within(d?min(Z,_):Z,Q,d?max(ee,Y):ee);P[O]=te;M[O]=te-Q}}t.modifiersData[n]=M}var preventOverflow$1={name:"preventOverflow",enabled:true,phase:"main",fn:preventOverflow,requiresIfExists:["offset"]};function getHTMLElementScroll(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function getNodeScroll(e){if(e===getWindow(e)||!isHTMLElement(e)){return getWindowScroll(e)}else{return getHTMLElementScroll(e)}}function isElementScaled(e){var t=e.getBoundingClientRect();var r=t.width/e.offsetWidth||1;var n=t.height/e.offsetHeight||1;return r!==1||n!==1}function getCompositeRect(e,t,r){if(r===void 0){r=false}var n=isHTMLElement(t);isHTMLElement(t)&&isElementScaled(t);var a=getDocumentElement(t);var o=getBoundingClientRect(e);var i={scrollLeft:0,scrollTop:0};var s={x:0,y:0};if(n||!n&&!r){if(getNodeName(t)!=="body"||isScrollParent(a)){i=getNodeScroll(t)}if(isHTMLElement(t)){s=getBoundingClientRect(t);s.x+=t.clientLeft;s.y+=t.clientTop}else if(a){s.x=getWindowScrollBarX(a)}}return{x:o.left+i.scrollLeft-s.x,y:o.top+i.scrollTop-s.y,width:o.width,height:o.height}}function order(e){var t=new Map;var r=new Set;var n=[];e.forEach((function(e){t.set(e.name,e)}));function a(e){r.add(e.name);var o=[].concat(e.requires||[],e.requiresIfExists||[]);o.forEach((function(e){if(!r.has(e)){var n=t.get(e);if(n){a(n)}}}));n.push(e)}e.forEach((function(e){if(!r.has(e.name)){a(e)}}));return n}function orderModifiers(e){var t=order(e);return modifierPhases.reduce((function(e,r){return e.concat(t.filter((function(e){return e.phase===r})))}),[])}function debounce(e){var t;return function(){if(!t){t=new Promise((function(r){Promise.resolve().then((function(){t=undefined;r(e())}))}))}return t}}function mergeByName(e){var t=e.reduce((function(e,t){var r=e[t.name];e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t;return e}),{});return Object.keys(t).map((function(e){return t[e]}))}var DEFAULT_OPTIONS={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++){t[r]=arguments[r]}return!t.some((function(e){return!(e&&typeof e.getBoundingClientRect==="function")}))}function popperGenerator(e){if(e===void 0){e={}}var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,a=t.defaultOptions,o=a===void 0?DEFAULT_OPTIONS:a;return function e(t,r,a){if(a===void 0){a=o}var i={placement:"bottom",orderedModifiers:[],options:Object.assign({},DEFAULT_OPTIONS,o),modifiersData:{},elements:{reference:t,popper:r},attributes:{},styles:{}};var s=[];var f=false;var l={state:i,setOptions:function e(a){var s=typeof a==="function"?a(i.options):a;p();i.options=Object.assign({},o,i.options,s);i.scrollParents={reference:isElement(t)?listScrollParents(t):t.contextElement?listScrollParents(t.contextElement):[],popper:listScrollParents(r)};var f=orderModifiers(mergeByName([].concat(n,i.options.modifiers)));i.orderedModifiers=f.filter((function(e){return e.enabled}));c();return l.update()},forceUpdate:function e(){if(f){return}var t=i.elements,r=t.reference,n=t.popper;if(!areValidElements(r,n)){return}i.rects={reference:getCompositeRect(r,getOffsetParent(n),i.options.strategy==="fixed"),popper:getLayoutRect(n)};i.reset=false;i.placement=i.options.placement;i.orderedModifiers.forEach((function(e){return i.modifiersData[e.name]=Object.assign({},e.data)}));for(var a=0;a<i.orderedModifiers.length;a++){if(i.reset===true){i.reset=false;a=-1;continue}var o=i.orderedModifiers[a],s=o.fn,c=o.options,p=c===void 0?{}:c,u=o.name;if(typeof s==="function"){i=s({state:i,options:p,name:u,instance:l})||i}}},update:debounce((function(){return new Promise((function(e){l.forceUpdate();e(i)}))})),destroy:function e(){p();f=true}};if(!areValidElements(t,r)){return l}l.setOptions(a).then((function(e){if(!f&&a.onFirstUpdate){a.onFirstUpdate(e)}}));function c(){i.orderedModifiers.forEach((function(e){var t=e.name,r=e.options,n=r===void 0?{}:r,a=e.effect;if(typeof a==="function"){var o=a({state:i,name:t,instance:l,options:n});var f=function e(){};s.push(o||f)}}))}function p(){s.forEach((function(e){return e()}));s=[]}return l}}var defaultModifiers=[eventListeners,popperOffsets$1,computeStyles$1,applyStyles$1,offset$1,flip$1,preventOverflow$1,arrow$1,hide$1];var createPopper$1=popperGenerator({defaultModifiers:defaultModifiers});var CSS={animation:"calcite-popper-anim",animationActive:"calcite-popper-anim--active"};function getPlacement(e,t){var r=["left","right"];var n=["start","end"];if(getElementDir(e)==="rtl"){r.reverse();n.reverse()}return t.replace(/-leading/gi,"-"+n[0]).replace(/-trailing/gi,"-"+n[1]).replace(/leading/gi,r[0]).replace(/trailing/gi,r[1])}function createPopper(e){var t=e.referenceEl,r=e.el,n=e.placement,a=e.overlayPositioning,o=a===void 0?"absolute":a,i=e.modifiers;if(!t){return null}return createPopper$1(t,r,{strategy:o,placement:getPlacement(r,n),modifiers:i})}function updatePopper(e){var t=e.el,r=e.modifiers,n=e.placement,a=e.popper;var o=getPlacement(t,n);a.setOptions({modifiers:r,placement:o})}function hypotenuse(e,t){return Math.sqrt(Math.pow(e,2)+Math.pow(t,2))}var visiblePointerSize=4;var defaultOffsetDistance=Math.ceil(hypotenuse(visiblePointerSize,visiblePointerSize));export{CSS as C,createPopper as c,defaultOffsetDistance as d,updatePopper as u};