@esri/calcite-components 1.0.0-next.345 → 1.0.0-next.349

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 (307) hide show
  1. package/dist/calcite/calcite.css +1 -1
  2. package/dist/calcite/calcite.esm.js +1 -1
  3. package/dist/calcite/p-00d526f2.system.entry.js +5 -0
  4. package/dist/calcite/{p-8ebc2d51.entry.js → p-04cbeb2a.entry.js} +1 -1
  5. package/dist/calcite/{p-9d0b76a0.system.entry.js → p-05a069ad.system.entry.js} +1 -1
  6. package/dist/calcite/{p-1705739f.system.entry.js → p-05afd204.system.entry.js} +2 -2
  7. package/dist/calcite/{p-0ea8bce1.system.entry.js → p-070ce87b.system.entry.js} +1 -1
  8. package/dist/calcite/p-07284a52.system.js +5 -0
  9. package/dist/calcite/{p-8dbafcac.system.entry.js → p-0a65fbd6.system.entry.js} +1 -1
  10. package/dist/calcite/{p-130b7a05.system.entry.js → p-0dcf351d.system.entry.js} +1 -1
  11. package/dist/calcite/p-12c1a605.system.entry.js +5 -0
  12. package/dist/calcite/{p-0bb004b7.entry.js → p-1529e188.entry.js} +1 -1
  13. package/dist/calcite/p-18d9a261.system.js +1 -1
  14. package/dist/calcite/{p-11f99edf.system.entry.js → p-1a5bd3cd.system.entry.js} +1 -1
  15. package/dist/calcite/p-1ae01548.system.js +5 -0
  16. package/dist/calcite/{p-197226fa.entry.js → p-1ddaef77.entry.js} +1 -1
  17. package/dist/calcite/p-1e6a3265.entry.js +5 -0
  18. package/dist/calcite/{p-11b4f866.system.entry.js → p-20f933ec.system.entry.js} +1 -1
  19. package/dist/calcite/{p-2c6e9854.entry.js → p-21857b73.entry.js} +1 -1
  20. package/dist/calcite/{p-ff623944.entry.js → p-21aa0028.entry.js} +1 -1
  21. package/dist/calcite/p-26481e18.js +5 -0
  22. package/dist/calcite/{p-0f2b51bf.system.js → p-26755e82.system.js} +1 -1
  23. package/dist/calcite/{p-6d8a5959.entry.js → p-26ace86f.entry.js} +1 -1
  24. package/dist/calcite/{p-41cd5de3.system.entry.js → p-2c0832d4.system.entry.js} +1 -1
  25. package/dist/calcite/{p-0b2ac5d7.system.entry.js → p-30a5d7eb.system.entry.js} +1 -1
  26. package/dist/calcite/{p-1acfcee4.entry.js → p-389d11dd.entry.js} +1 -1
  27. package/dist/calcite/{p-e01985ce.system.entry.js → p-38b6901a.system.entry.js} +1 -1
  28. package/dist/calcite/{p-ec216f50.entry.js → p-39b7addd.entry.js} +1 -1
  29. package/dist/calcite/{p-4bedcfdd.system.entry.js → p-3e77da28.system.entry.js} +1 -1
  30. package/dist/calcite/{p-109fdcb4.system.entry.js → p-3ed7c8b9.system.entry.js} +1 -1
  31. package/dist/calcite/{p-fc9ea70f.system.entry.js → p-420e1500.system.entry.js} +1 -1
  32. package/dist/calcite/{p-42814ab6.system.entry.js → p-4308ccda.system.entry.js} +1 -1
  33. package/dist/calcite/p-4364e76a.system.js +5 -0
  34. package/dist/calcite/{p-e97696ee.system.entry.js → p-463b50b4.system.entry.js} +1 -1
  35. package/dist/calcite/{p-0c9ea65a.entry.js → p-4c902a9d.entry.js} +1 -1
  36. package/dist/calcite/p-4cf5bdd0.entry.js +5 -0
  37. package/dist/calcite/{p-d4561697.system.entry.js → p-4f1fd456.system.entry.js} +1 -1
  38. package/dist/calcite/p-5642e2bc.entry.js +5 -0
  39. package/dist/calcite/{p-82d19468.entry.js → p-56963201.entry.js} +1 -1
  40. package/dist/calcite/p-5ebc6442.system.entry.js +5 -0
  41. package/dist/calcite/{p-6691b847.system.entry.js → p-5f949b17.system.entry.js} +2 -2
  42. package/dist/calcite/{p-28729351.entry.js → p-6472926f.entry.js} +1 -1
  43. package/dist/calcite/{p-cac9db7d.entry.js → p-6a06c39d.entry.js} +1 -1
  44. package/dist/calcite/{p-0229a408.js → p-6d0d9bba.js} +1 -1
  45. package/dist/calcite/{p-ce704ece.js → p-7017ca05.js} +1 -1
  46. package/dist/calcite/{p-b311fec9.entry.js → p-7064b1e7.entry.js} +1 -1
  47. package/dist/calcite/{p-54d12b6f.entry.js → p-71da0971.entry.js} +1 -1
  48. package/dist/calcite/{p-ee7ba765.entry.js → p-7958e723.entry.js} +1 -1
  49. package/dist/calcite/{p-520f90ae.entry.js → p-7975c2f9.entry.js} +1 -1
  50. package/dist/calcite/{p-35aa821f.entry.js → p-7b709610.entry.js} +1 -1
  51. package/dist/calcite/{p-b3109189.system.entry.js → p-7e11faf9.system.entry.js} +1 -1
  52. package/dist/calcite/p-7fac1c07.entry.js +5 -0
  53. package/dist/calcite/{p-5a6ad843.system.entry.js → p-81fecc87.system.entry.js} +2 -2
  54. package/dist/calcite/{p-a4762e4a.system.entry.js → p-8abe0816.system.entry.js} +1 -1
  55. package/dist/calcite/{p-73dad5ab.system.entry.js → p-8ac0823e.system.entry.js} +1 -1
  56. package/dist/calcite/{p-e311dc47.entry.js → p-8d98d2a5.entry.js} +1 -1
  57. package/dist/calcite/{p-1749e1a2.system.entry.js → p-8ecae737.system.entry.js} +2 -2
  58. package/dist/calcite/{p-68c5432f.entry.js → p-90a47591.entry.js} +1 -1
  59. package/dist/calcite/{p-985ac8a8.system.entry.js → p-910e1235.system.entry.js} +1 -1
  60. package/dist/calcite/{p-51819373.entry.js → p-940d168f.entry.js} +1 -1
  61. package/dist/calcite/{p-9180be05.system.entry.js → p-95c01d5c.system.entry.js} +1 -1
  62. package/dist/calcite/{p-7cf59f80.system.entry.js → p-9b5bb8ad.system.entry.js} +1 -1
  63. package/dist/calcite/p-a391ef7c.entry.js +5 -0
  64. package/dist/calcite/{p-61c25508.system.entry.js → p-a495271b.system.entry.js} +1 -1
  65. package/dist/calcite/{p-527dfb9d.entry.js → p-a7a4f22d.entry.js} +1 -1
  66. package/dist/calcite/{p-afd8eb90.system.entry.js → p-a84c50db.system.entry.js} +1 -1
  67. package/dist/calcite/{p-bf38d77d.system.entry.js → p-b000a562.system.entry.js} +1 -1
  68. package/dist/calcite/{p-9ee56933.entry.js → p-b343bc29.entry.js} +1 -1
  69. package/dist/calcite/{p-899920c9.entry.js → p-b485b5c0.entry.js} +1 -1
  70. package/dist/calcite/p-bb4dcd31.js +5 -0
  71. package/dist/calcite/{p-65c6c5a7.entry.js → p-bd70cb32.entry.js} +1 -1
  72. package/dist/calcite/{p-4639388a.system.entry.js → p-c3fc696a.system.entry.js} +1 -1
  73. package/dist/calcite/{p-7fbab7bb.entry.js → p-ca9795e8.entry.js} +1 -1
  74. package/dist/calcite/{p-1ce0c26a.entry.js → p-cab448f5.entry.js} +1 -1
  75. package/dist/calcite/{p-523bc291.system.js → p-cbea8bac.system.js} +1 -1
  76. package/dist/calcite/{p-c1912740.system.entry.js → p-cdf1d141.system.entry.js} +1 -1
  77. package/dist/calcite/{p-531ddede.entry.js → p-cf9389d2.entry.js} +1 -1
  78. package/dist/calcite/{p-15c5e94c.system.entry.js → p-d0c41b96.system.entry.js} +1 -1
  79. package/dist/calcite/{p-e942dcc6.entry.js → p-d1d02a92.entry.js} +1 -1
  80. package/dist/calcite/{p-6e94b4ef.system.entry.js → p-d6d92f2c.system.entry.js} +1 -1
  81. package/dist/calcite/{p-6436b89b.system.entry.js → p-d791b8ed.system.entry.js} +1 -1
  82. package/dist/calcite/{p-496a04e4.system.entry.js → p-db18b0b9.system.entry.js} +1 -1
  83. package/dist/calcite/p-dbafbe0a.entry.js +5 -0
  84. package/dist/calcite/{p-6d42cf99.system.entry.js → p-dbc16f65.system.entry.js} +1 -1
  85. package/dist/calcite/{p-12a3d7b1.entry.js → p-dcaf145a.entry.js} +1 -1
  86. package/dist/calcite/{p-809eed64.system.entry.js → p-dd4d55d4.system.entry.js} +1 -1
  87. package/dist/calcite/{p-62e9b8a4.system.entry.js → p-dfc1ecd1.system.entry.js} +1 -1
  88. package/dist/calcite/{p-eae4d478.entry.js → p-e0bc9872.entry.js} +1 -1
  89. package/dist/calcite/{p-be7b205c.entry.js → p-e17f8834.entry.js} +1 -1
  90. package/dist/calcite/{p-92dea7f7.entry.js → p-e284b5b8.entry.js} +1 -1
  91. package/dist/calcite/{p-be589623.system.entry.js → p-e592e359.system.entry.js} +1 -1
  92. package/dist/calcite/{p-5c141491.entry.js → p-e9197eeb.entry.js} +1 -1
  93. package/dist/calcite/{p-b5cab90f.entry.js → p-ed64efc7.entry.js} +1 -1
  94. package/dist/calcite/p-f3b489d9.js +5 -0
  95. package/dist/calcite/{p-f3ec6f2c.entry.js → p-f45f88db.entry.js} +1 -1
  96. package/dist/calcite/{p-5c606052.system.entry.js → p-f844034a.system.entry.js} +2 -2
  97. package/dist/calcite/p-f87c1273.js +5 -0
  98. package/dist/calcite/{p-8dc9c530.system.entry.js → p-fa872404.system.entry.js} +2 -2
  99. package/dist/calcite/{p-3ba581cf.entry.js → p-fc57d215.entry.js} +1 -1
  100. package/dist/calcite/{p-35a5c74c.system.js → p-fc998713.system.js} +1 -1
  101. package/dist/calcite/{p-d30dc8bd.entry.js → p-fdba68b7.entry.js} +1 -1
  102. package/dist/calcite/{p-33fa07ab.system.entry.js → p-ffaaffcc.system.entry.js} +1 -1
  103. package/dist/calcite/{p-07779a47.entry.js → p-ffba00b9.entry.js} +1 -1
  104. package/dist/cjs/{CalciteExpandToggle-d654421a.js → CalciteExpandToggle-38ca208f.js} +1 -1
  105. package/dist/cjs/calcite-accordion_2.cjs.entry.js +1 -1
  106. package/dist/cjs/calcite-action-bar.cjs.entry.js +2 -2
  107. package/dist/cjs/calcite-action-group.cjs.entry.js +1 -1
  108. package/dist/cjs/calcite-action-menu.cjs.entry.js +1 -1
  109. package/dist/cjs/calcite-action-pad.cjs.entry.js +2 -2
  110. package/dist/cjs/calcite-alert.cjs.entry.js +1 -1
  111. package/dist/cjs/calcite-avatar.cjs.entry.js +1 -1
  112. package/dist/cjs/calcite-block_2.cjs.entry.js +1 -1
  113. package/dist/cjs/calcite-button.cjs.entry.js +2 -2
  114. package/dist/cjs/calcite-checkbox.cjs.entry.js +3 -3
  115. package/dist/cjs/calcite-chip.cjs.entry.js +1 -1
  116. package/dist/cjs/calcite-color-picker_3.cjs.entry.js +1 -1
  117. package/dist/cjs/calcite-combobox_3.cjs.entry.js +4 -4
  118. package/dist/cjs/calcite-date-picker_4.cjs.entry.js +8 -7
  119. package/dist/cjs/calcite-dropdown_3.cjs.entry.js +3 -3
  120. package/dist/cjs/calcite-fab.cjs.entry.js +1 -1
  121. package/dist/cjs/calcite-filter.cjs.entry.js +1 -1
  122. package/dist/cjs/calcite-graph_2.cjs.entry.js +3 -3
  123. package/dist/cjs/calcite-icon.cjs.entry.js +2 -2
  124. package/dist/cjs/calcite-inline-editable.cjs.entry.js +2 -2
  125. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +4 -4
  126. package/dist/cjs/calcite-input-message.cjs.entry.js +1 -1
  127. package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +3 -3
  128. package/dist/cjs/calcite-input.cjs.entry.js +6 -5
  129. package/dist/cjs/calcite-link.cjs.entry.js +1 -1
  130. package/dist/cjs/calcite-list_3.cjs.entry.js +1 -1
  131. package/dist/cjs/calcite-modal.cjs.entry.js +1 -1
  132. package/dist/cjs/calcite-notice.cjs.entry.js +1 -1
  133. package/dist/cjs/calcite-option_3.cjs.entry.js +3 -3
  134. package/dist/cjs/calcite-panel.cjs.entry.js +1 -1
  135. package/dist/cjs/calcite-pick-list_3.cjs.entry.js +3 -2
  136. package/dist/cjs/calcite-popover_2.cjs.entry.js +4 -4
  137. package/dist/cjs/calcite-radio-button.cjs.entry.js +3 -3
  138. package/dist/cjs/calcite-radio-group_2.cjs.entry.js +3 -3
  139. package/dist/cjs/calcite-rating.cjs.entry.js +3 -3
  140. package/dist/cjs/calcite-shell_3.cjs.entry.js +1 -1
  141. package/dist/cjs/calcite-stepper_2.cjs.entry.js +1 -1
  142. package/dist/cjs/calcite-switch.cjs.entry.js +3 -3
  143. package/dist/cjs/calcite-tab_4.cjs.entry.js +1 -1
  144. package/dist/cjs/calcite-tile.cjs.entry.js +1 -1
  145. package/dist/cjs/calcite-tip_3.cjs.entry.js +1 -1
  146. package/dist/cjs/calcite-tooltip_2.cjs.entry.js +4 -4
  147. package/dist/cjs/calcite-tree_2.cjs.entry.js +1 -1
  148. package/dist/cjs/calcite-value-list_2.cjs.entry.js +3 -2
  149. package/dist/cjs/{dom-19822169.js → dom-db7722f2.js} +25 -8
  150. package/dist/cjs/{form-a5b44a1f.js → form-ad18d4fc.js} +1 -1
  151. package/dist/cjs/{label-8e3552b2.js → label-4776bb0e.js} +5 -2
  152. package/dist/cjs/{popper-a7580aca.js → popper-ccef76e3.js} +1 -1
  153. package/dist/cjs/{resources-27b28faa.js → resources-8273cb31.js} +12 -1
  154. package/dist/collection/components/calcite-date-picker/calcite-date-picker.js +7 -6
  155. package/dist/collection/components/calcite-dropdown-group/calcite-dropdown-group.css +4 -0
  156. package/dist/collection/components/calcite-icon/calcite-icon.css +8 -0
  157. package/dist/collection/components/calcite-input/calcite-input.js +3 -2
  158. package/dist/collection/components/calcite-pick-list/calcite-pick-list.js +2 -1
  159. package/dist/collection/components/calcite-pick-list/shared-list-logic.js +10 -0
  160. package/dist/collection/components/calcite-popover/calcite-popover.js +1 -1
  161. package/dist/collection/components/calcite-popover-manager/calcite-popover-manager.js +1 -1
  162. package/dist/collection/components/calcite-tooltip/calcite-tooltip.js +1 -1
  163. package/dist/collection/components/calcite-tooltip-manager/calcite-tooltip-manager.js +1 -1
  164. package/dist/collection/components/calcite-value-list/calcite-value-list.js +2 -1
  165. package/dist/collection/utils/dom.js +25 -8
  166. package/dist/collection/utils/label.js +4 -1
  167. package/dist/components/calcite-date-picker2.js +7 -6
  168. package/dist/components/calcite-dropdown-group.js +1 -1
  169. package/dist/components/calcite-icon2.js +1 -1
  170. package/dist/components/calcite-input2.js +3 -2
  171. package/dist/components/calcite-pick-list.js +2 -1
  172. package/dist/components/calcite-popover-manager.js +1 -1
  173. package/dist/components/calcite-popover2.js +1 -1
  174. package/dist/components/calcite-tooltip-manager2.js +1 -1
  175. package/dist/components/calcite-tooltip.js +1 -1
  176. package/dist/components/calcite-value-list.js +2 -1
  177. package/dist/components/dom.js +25 -8
  178. package/dist/components/label.js +4 -1
  179. package/dist/components/shared-list-render.js +11 -1
  180. package/dist/custom-elements/index.js +57 -23
  181. package/dist/esm/{CalciteExpandToggle-c33bd6fd.js → CalciteExpandToggle-1b1bf600.js} +1 -1
  182. package/dist/esm/calcite-accordion_2.entry.js +1 -1
  183. package/dist/esm/calcite-action-bar.entry.js +2 -2
  184. package/dist/esm/calcite-action-group.entry.js +1 -1
  185. package/dist/esm/calcite-action-menu.entry.js +1 -1
  186. package/dist/esm/calcite-action-pad.entry.js +2 -2
  187. package/dist/esm/calcite-alert.entry.js +1 -1
  188. package/dist/esm/calcite-avatar.entry.js +1 -1
  189. package/dist/esm/calcite-block_2.entry.js +1 -1
  190. package/dist/esm/calcite-button.entry.js +2 -2
  191. package/dist/esm/calcite-checkbox.entry.js +3 -3
  192. package/dist/esm/calcite-chip.entry.js +1 -1
  193. package/dist/esm/calcite-color-picker_3.entry.js +1 -1
  194. package/dist/esm/calcite-combobox_3.entry.js +4 -4
  195. package/dist/esm/calcite-date-picker_4.entry.js +8 -7
  196. package/dist/esm/calcite-dropdown_3.entry.js +3 -3
  197. package/dist/esm/calcite-fab.entry.js +1 -1
  198. package/dist/esm/calcite-filter.entry.js +1 -1
  199. package/dist/esm/calcite-graph_2.entry.js +3 -3
  200. package/dist/esm/calcite-icon.entry.js +2 -2
  201. package/dist/esm/calcite-inline-editable.entry.js +2 -2
  202. package/dist/esm/calcite-input-date-picker.entry.js +4 -4
  203. package/dist/esm/calcite-input-message.entry.js +1 -1
  204. package/dist/esm/calcite-input-time-picker_2.entry.js +3 -3
  205. package/dist/esm/calcite-input.entry.js +6 -5
  206. package/dist/esm/calcite-link.entry.js +1 -1
  207. package/dist/esm/calcite-list_3.entry.js +1 -1
  208. package/dist/esm/calcite-modal.entry.js +1 -1
  209. package/dist/esm/calcite-notice.entry.js +1 -1
  210. package/dist/esm/calcite-option_3.entry.js +3 -3
  211. package/dist/esm/calcite-panel.entry.js +1 -1
  212. package/dist/esm/calcite-pick-list_3.entry.js +3 -2
  213. package/dist/esm/calcite-popover_2.entry.js +4 -4
  214. package/dist/esm/calcite-radio-button.entry.js +3 -3
  215. package/dist/esm/calcite-radio-group_2.entry.js +3 -3
  216. package/dist/esm/calcite-rating.entry.js +3 -3
  217. package/dist/esm/calcite-shell_3.entry.js +1 -1
  218. package/dist/esm/calcite-stepper_2.entry.js +1 -1
  219. package/dist/esm/calcite-switch.entry.js +3 -3
  220. package/dist/esm/calcite-tab_4.entry.js +1 -1
  221. package/dist/esm/calcite-tile.entry.js +1 -1
  222. package/dist/esm/calcite-tip_3.entry.js +1 -1
  223. package/dist/esm/calcite-tooltip_2.entry.js +4 -4
  224. package/dist/esm/calcite-tree_2.entry.js +1 -1
  225. package/dist/esm/calcite-value-list_2.entry.js +3 -2
  226. package/dist/esm/{dom-f24e866c.js → dom-e55f9eaf.js} +25 -8
  227. package/dist/esm/{form-160b0fb5.js → form-147bc6d7.js} +1 -1
  228. package/dist/esm/{label-5559055d.js → label-240ef148.js} +5 -2
  229. package/dist/esm/{popper-f5caedc4.js → popper-405efdae.js} +1 -1
  230. package/dist/esm/{resources-7501cc74.js → resources-a6abee37.js} +12 -2
  231. package/dist/esm-es5/{CalciteExpandToggle-c33bd6fd.js → CalciteExpandToggle-1b1bf600.js} +1 -1
  232. package/dist/esm-es5/calcite-accordion_2.entry.js +1 -1
  233. package/dist/esm-es5/calcite-action-bar.entry.js +1 -1
  234. package/dist/esm-es5/calcite-action-group.entry.js +1 -1
  235. package/dist/esm-es5/calcite-action-menu.entry.js +1 -1
  236. package/dist/esm-es5/calcite-action-pad.entry.js +1 -1
  237. package/dist/esm-es5/calcite-alert.entry.js +1 -1
  238. package/dist/esm-es5/calcite-avatar.entry.js +1 -1
  239. package/dist/esm-es5/calcite-block_2.entry.js +1 -1
  240. package/dist/esm-es5/calcite-button.entry.js +1 -1
  241. package/dist/esm-es5/calcite-checkbox.entry.js +1 -1
  242. package/dist/esm-es5/calcite-chip.entry.js +1 -1
  243. package/dist/esm-es5/calcite-color-picker_3.entry.js +1 -1
  244. package/dist/esm-es5/calcite-combobox_3.entry.js +1 -1
  245. package/dist/esm-es5/calcite-date-picker_4.entry.js +1 -1
  246. package/dist/esm-es5/calcite-dropdown_3.entry.js +1 -1
  247. package/dist/esm-es5/calcite-fab.entry.js +1 -1
  248. package/dist/esm-es5/calcite-filter.entry.js +1 -1
  249. package/dist/esm-es5/calcite-graph_2.entry.js +1 -1
  250. package/dist/esm-es5/calcite-icon.entry.js +1 -1
  251. package/dist/esm-es5/calcite-inline-editable.entry.js +1 -1
  252. package/dist/esm-es5/calcite-input-date-picker.entry.js +2 -2
  253. package/dist/esm-es5/calcite-input-message.entry.js +1 -1
  254. package/dist/esm-es5/calcite-input-time-picker_2.entry.js +1 -1
  255. package/dist/esm-es5/calcite-input.entry.js +1 -1
  256. package/dist/esm-es5/calcite-link.entry.js +1 -1
  257. package/dist/esm-es5/calcite-list_3.entry.js +1 -1
  258. package/dist/esm-es5/calcite-modal.entry.js +1 -1
  259. package/dist/esm-es5/calcite-notice.entry.js +1 -1
  260. package/dist/esm-es5/calcite-option_3.entry.js +1 -1
  261. package/dist/esm-es5/calcite-panel.entry.js +1 -1
  262. package/dist/esm-es5/calcite-pick-list_3.entry.js +1 -1
  263. package/dist/esm-es5/calcite-popover_2.entry.js +2 -2
  264. package/dist/esm-es5/calcite-radio-button.entry.js +1 -1
  265. package/dist/esm-es5/calcite-radio-group_2.entry.js +1 -1
  266. package/dist/esm-es5/calcite-rating.entry.js +1 -1
  267. package/dist/esm-es5/calcite-shell_3.entry.js +1 -1
  268. package/dist/esm-es5/calcite-stepper_2.entry.js +1 -1
  269. package/dist/esm-es5/calcite-switch.entry.js +1 -1
  270. package/dist/esm-es5/calcite-tab_4.entry.js +1 -1
  271. package/dist/esm-es5/calcite-tile.entry.js +1 -1
  272. package/dist/esm-es5/calcite-tip_3.entry.js +2 -2
  273. package/dist/esm-es5/calcite-tooltip_2.entry.js +1 -1
  274. package/dist/esm-es5/calcite-tree_2.entry.js +1 -1
  275. package/dist/esm-es5/calcite-value-list_2.entry.js +1 -1
  276. package/dist/esm-es5/dom-e55f9eaf.js +5 -0
  277. package/dist/esm-es5/{form-160b0fb5.js → form-147bc6d7.js} +1 -1
  278. package/dist/esm-es5/label-240ef148.js +5 -0
  279. package/dist/esm-es5/{popper-f5caedc4.js → popper-405efdae.js} +1 -1
  280. package/dist/esm-es5/resources-a6abee37.js +5 -0
  281. package/dist/extras/docs-json.json +8 -2
  282. package/dist/types/components/calcite-pick-list/calcite-pick-list.d.ts +1 -0
  283. package/dist/types/components/calcite-pick-list/shared-list-logic.d.ts +1 -0
  284. package/dist/types/components/calcite-value-list/calcite-value-list.d.ts +1 -0
  285. package/dist/types/utils/dom.d.ts +18 -3
  286. package/dist/types/utils/label.d.ts +4 -0
  287. package/hydrate/index.js +57 -23
  288. package/package.json +1 -1
  289. package/dist/calcite/p-12a2f2d9.entry.js +0 -5
  290. package/dist/calcite/p-16f89a95.entry.js +0 -5
  291. package/dist/calcite/p-1751551d.entry.js +0 -5
  292. package/dist/calcite/p-1942876c.js +0 -5
  293. package/dist/calcite/p-224a5f8d.system.entry.js +0 -5
  294. package/dist/calcite/p-394d8b91.entry.js +0 -5
  295. package/dist/calcite/p-3dae9da3.js +0 -5
  296. package/dist/calcite/p-3e646c9b.js +0 -5
  297. package/dist/calcite/p-42f853ae.system.entry.js +0 -5
  298. package/dist/calcite/p-52cc870b.js +0 -5
  299. package/dist/calcite/p-6cc23c39.system.js +0 -5
  300. package/dist/calcite/p-7677d70d.entry.js +0 -5
  301. package/dist/calcite/p-86e37e14.system.js +0 -5
  302. package/dist/calcite/p-ac03fd82.system.entry.js +0 -5
  303. package/dist/calcite/p-b28560f2.entry.js +0 -5
  304. package/dist/calcite/p-c34c4414.system.js +0 -5
  305. package/dist/esm-es5/dom-f24e866c.js +0 -5
  306. package/dist/esm-es5/label-5559055d.js +0 -5
  307. package/dist/esm-es5/resources-7501cc74.js +0 -5
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2021-12-28T22:02:15",
2
+ "timestamp": "2021-12-29T21:39:56",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "2.12.0",
@@ -7871,7 +7871,13 @@
7871
7871
  "methods": [],
7872
7872
  "events": [],
7873
7873
  "listeners": [],
7874
- "styles": [],
7874
+ "styles": [
7875
+ {
7876
+ "name": "--calcite-ui-icon-color",
7877
+ "annotation": "prop",
7878
+ "docs": "the color of the icon. Defaults to 'currentColor'."
7879
+ }
7880
+ ],
7875
7881
  "slots": [],
7876
7882
  "parts": [],
7877
7883
  "dependents": [
@@ -60,6 +60,7 @@ export declare class CalcitePickList<ItemElement extends HTMLCalcitePickListItem
60
60
  setUpItems(): void;
61
61
  setUpFilter(): void;
62
62
  setFilterEl: (el: HTMLCalciteFilterElement) => void;
63
+ deselectRemovedItems: any;
63
64
  deselectSiblingItems: any;
64
65
  selectSiblings: any;
65
66
  handleFilter: any;
@@ -17,6 +17,7 @@ export declare function removeItem<T extends Lists, U extends ListItemElement<T>
17
17
  export declare function setFocus<T extends Lists>(this: List<T>, focusId: ListFocusId): Promise<void>;
18
18
  export declare function setUpItems<T extends Lists>(this: List<T>, tagName: T extends CalcitePickList ? "calcite-pick-list-item" : "calcite-value-list-item"): void;
19
19
  export declare function setUpFilter<T extends Lists>(this: List<T>): void;
20
+ export declare function deselectRemovedItems<T extends Lists>(this: List<T>): void;
20
21
  export declare function deselectSiblingItems<T extends Lists>(this: List<T>, item: ListItemElement<T>): void;
21
22
  export declare function selectSiblings<T extends Lists>(this: List<T>, item: ListItemElement<T>, deselect?: boolean): void;
22
23
  export declare function handleFilter<T extends Lists>(this: List<T>, event: CustomEvent): void;
@@ -73,6 +73,7 @@ export declare class CalciteValueList<ItemElement extends HTMLCalciteValueListIt
73
73
  setFilterEl: (el: HTMLCalciteFilterElement) => void;
74
74
  setUpDragAndDrop(): void;
75
75
  cleanUpDragAndDrop(): void;
76
+ deselectRemovedItems: any;
76
77
  deselectSiblingItems: any;
77
78
  selectSiblings: any;
78
79
  handleFilter: any;
@@ -13,8 +13,23 @@ export declare function getElementDir(el: HTMLElement): Direction;
13
13
  export declare function getElementProp(el: Element, prop: string, fallbackValue: any): any;
14
14
  export declare function getRootNode(el: Element): HTMLDocument | ShadowRoot;
15
15
  export declare function getHost(root: HTMLDocument | ShadowRoot): Element | null;
16
+ /**
17
+ * This helper queries an element's rootNodes and any ancestor rootNodes.
18
+ *
19
+ * @returns {Element[]} The elements.
20
+ */
16
21
  export declare function queryElementsRoots<T extends Element = Element>(element: Element, selector: string): T[];
17
- export declare function queryElementRoots<T extends Element = Element>(element: Element, selector: string): T | null;
22
+ /**
23
+ * This helper queries an element's rootNode and any ancestor rootNodes.
24
+ *
25
+ * If both an 'id' and 'selector' are supplied, 'id' will take precedence over 'selector'.
26
+ *
27
+ * @returns {Element} The element.
28
+ */
29
+ export declare function queryElementRoots<T extends Element = Element>(element: Element, { selector, id }: {
30
+ selector?: string;
31
+ id?: string;
32
+ }): T | null;
18
33
  export declare function closestElementCrossShadowBoundary<T extends Element = Element>(element: Element, selector: string): T | null;
19
34
  export interface CalciteFocusableElement extends HTMLElement {
20
35
  setFocus?: () => Promise<void>;
@@ -26,10 +41,10 @@ interface GetSlottedOptions {
26
41
  direct?: boolean;
27
42
  selector?: string;
28
43
  }
29
- export declare function getSlotted<T extends Element = Element>(element: Element, slotName: string, options: GetSlottedOptions & {
44
+ export declare function getSlotted<T extends Element = Element>(element: Element, slotName: string | string[], options: GetSlottedOptions & {
30
45
  all: true;
31
46
  }): T[];
32
- export declare function getSlotted<T extends Element = Element>(element: Element, slotName: string, options?: GetSlottedOptions): T | null;
47
+ export declare function getSlotted<T extends Element = Element>(element: Element, slotName: string | string[], options?: GetSlottedOptions): T | null;
33
48
  export declare function filterDirectChildren<T extends Element>(el: Element, selector: string): T[];
34
49
  export declare function setRequestedIcon(iconObject: Record<string, string>, iconValue: string | boolean, matchedValue: string): string;
35
50
  export declare function intersects(rect1: DOMRect, rect2: DOMRect): boolean;
@@ -1,4 +1,8 @@
1
1
  export interface LabelableComponent {
2
+ /**
3
+ * When true, disabled prevents interaction.
4
+ */
5
+ disabled: boolean;
2
6
  /**
3
7
  * The host element.
4
8
  */
package/hydrate/index.js CHANGED
@@ -5710,7 +5710,8 @@ function nodeListToArray(nodeList) {
5710
5710
  return Array.isArray(nodeList) ? nodeList : Array.from(nodeList);
5711
5711
  }
5712
5712
  function getThemeName(el) {
5713
- return closestElementCrossShadowBoundary(el, `.${CSS_UTILITY.darkTheme}`) ? "dark" : "light";
5713
+ const closestElWithTheme = closestElementCrossShadowBoundary(el, `.${CSS_UTILITY.darkTheme}, .${CSS_UTILITY.lightTheme}`);
5714
+ return (closestElWithTheme === null || closestElWithTheme === void 0 ? void 0 : closestElWithTheme.classList.contains("calcite-theme-dark")) ? "dark" : "light";
5714
5715
  }
5715
5716
  function getElementDir(el) {
5716
5717
  const prop = "dir";
@@ -5729,10 +5730,14 @@ function getRootNode(el) {
5729
5730
  function getHost(root) {
5730
5731
  return root.host || null;
5731
5732
  }
5732
- // Queries an element's rootNode and any ancestor rootNodes.
5733
- // based on https://stackoverflow.com/q/54520554/194216
5733
+ /**
5734
+ * This helper queries an element's rootNodes and any ancestor rootNodes.
5735
+ *
5736
+ * @returns {Element[]} The elements.
5737
+ */
5734
5738
  function queryElementsRoots(element, selector) {
5735
5739
  // Gets the rootNode and any ancestor rootNodes (shadowRoot or document) of an element and queries them for a selector.
5740
+ // Based on: https://stackoverflow.com/q/54520554/194216
5736
5741
  function queryFromAll(el, allResults) {
5737
5742
  if (!el) {
5738
5743
  return allResults;
@@ -5749,10 +5754,16 @@ function queryElementsRoots(element, selector) {
5749
5754
  }
5750
5755
  return queryFromAll(element, []);
5751
5756
  }
5752
- // Queries an element's rootNode and any ancestor rootNodes.
5753
- // based on https://stackoverflow.com/q/54520554/194216
5754
- function queryElementRoots(element, selector) {
5757
+ /**
5758
+ * This helper queries an element's rootNode and any ancestor rootNodes.
5759
+ *
5760
+ * If both an 'id' and 'selector' are supplied, 'id' will take precedence over 'selector'.
5761
+ *
5762
+ * @returns {Element} The element.
5763
+ */
5764
+ function queryElementRoots(element, { selector, id }) {
5755
5765
  // Gets the rootNode and any ancestor rootNodes (shadowRoot or document) of an element and queries them for a selector.
5766
+ // Based on: https://stackoverflow.com/q/54520554/194216
5756
5767
  function queryFrom(el) {
5757
5768
  if (!el) {
5758
5769
  return null;
@@ -5761,7 +5772,11 @@ function queryElementRoots(element, selector) {
5761
5772
  el = el.assignedSlot;
5762
5773
  }
5763
5774
  const rootNode = getRootNode(el);
5764
- const found = rootNode.querySelector(selector);
5775
+ const found = id
5776
+ ? rootNode.getElementById(id)
5777
+ : selector
5778
+ ? rootNode.querySelector(selector)
5779
+ : null;
5765
5780
  const host = getHost(rootNode);
5766
5781
  return found ? found : host ? queryFrom(host) : null;
5767
5782
  }
@@ -5784,7 +5799,9 @@ async function focusElement(el) {
5784
5799
  return isCalciteFocusable(el) ? el.setFocus() : el.focus();
5785
5800
  }
5786
5801
  function getSlotted(element, slotName, options) {
5787
- const slotSelector = `[slot="${slotName}"]`;
5802
+ const slotSelector = Array.isArray(slotName)
5803
+ ? slotName.map((name) => `[slot="${name}"]`).join(",")
5804
+ : `[slot="${slotName}"]`;
5788
5805
  if (options === null || options === void 0 ? void 0 : options.all) {
5789
5806
  return queryMultiple(element, slotSelector, options);
5790
5807
  }
@@ -9059,7 +9076,7 @@ const labelTagName = "calcite-label";
9059
9076
  const onLabelClickMap = new WeakMap();
9060
9077
  const findLabelForComponent = (componentEl) => {
9061
9078
  const { id } = componentEl;
9062
- const forLabel = id && queryElementRoots(componentEl, `${labelTagName}[for="${id}"]`);
9079
+ const forLabel = id && queryElementRoots(componentEl, { selector: `${labelTagName}[for="${id}"]` });
9063
9080
  if (forLabel) {
9064
9081
  return forLabel;
9065
9082
  }
@@ -9119,6 +9136,9 @@ function getLabelText(component) {
9119
9136
  return component.label || ((_b = (_a = component.labelEl) === null || _a === void 0 ? void 0 : _a.textContent) === null || _b === void 0 ? void 0 : _b.trim()) || "";
9120
9137
  }
9121
9138
  function onLabelClick(event) {
9139
+ if (this.disabled) {
9140
+ return;
9141
+ }
9122
9142
  const containedLabelableChildClicked = this.el.contains(event.detail.sourceEvent.target);
9123
9143
  if (containedLabelableChildClicked) {
9124
9144
  return;
@@ -16401,8 +16421,9 @@ class CalciteDatePicker {
16401
16421
  this.monthDateChange = (e) => {
16402
16422
  const date = new Date(e.detail);
16403
16423
  if (!this.range) {
16404
- this.value = dateToISO(date);
16405
- this.activeDate = date;
16424
+ this.value = date ? dateToISO(date) : "";
16425
+ this.valueAsDate = date || null;
16426
+ this.activeDate = date || null;
16406
16427
  return;
16407
16428
  }
16408
16429
  if (!this.startAsDate || (!this.endAsDate && date < this.startAsDate)) {
@@ -16592,14 +16613,14 @@ class CalciteDatePicker {
16592
16613
  }
16593
16614
  }
16594
16615
  setEndDate(date) {
16595
- this.end = dateToISO(date);
16616
+ this.end = date ? dateToISO(date) : "";
16596
16617
  this.setEndAsDate(date, true);
16597
- this.activeEndDate = date;
16618
+ this.activeEndDate = date || null;
16598
16619
  }
16599
16620
  setStartDate(date) {
16600
- this.start = dateToISO(date);
16621
+ this.start = date ? dateToISO(date) : "";
16601
16622
  this.setStartAsDate(date, true);
16602
- this.activeStartDate = date;
16623
+ this.activeStartDate = date || null;
16603
16624
  }
16604
16625
  /**
16605
16626
  * Get an active date using the value, or current date as default
@@ -17565,7 +17586,7 @@ const CSS$A = {
17565
17586
  containerLarge: "container--l"
17566
17587
  };
17567
17588
 
17568
- const calciteDropdownGroupCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-dropdown-group:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-dropdown-group{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*/.calcite-animate__in.sc-calcite-dropdown-group{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-dropdown-group{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-dropdown-group{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-dropdown-group{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-dropdown-group:root{--calcite-popper-transition:150ms ease-in-out}/*!@:host([hidden])*/[hidden].sc-calcite-dropdown-group-h{display:none}/*!@.container--s*/.container--s.sc-calcite-dropdown-group{font-size:var(--calcite-font-size--2);line-height:1rem}/*!@.container--s .dropdown-title*/.container--s.sc-calcite-dropdown-group .dropdown-title.sc-calcite-dropdown-group{padding:0.5rem}/*!@.container--m*/.container--m.sc-calcite-dropdown-group{font-size:var(--calcite-font-size--1);line-height:1rem}/*!@.container--m .dropdown-title*/.container--m.sc-calcite-dropdown-group .dropdown-title.sc-calcite-dropdown-group{padding:0.75rem}/*!@.container--l*/.container--l.sc-calcite-dropdown-group{font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@.container--l .dropdown-title*/.container--l.sc-calcite-dropdown-group .dropdown-title.sc-calcite-dropdown-group{padding:1rem}/*!@.dropdown-title*/.dropdown-title.sc-calcite-dropdown-group{margin-bottom:-1px;display:block;cursor:default;overflow-wrap:break-word;border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);font-weight:var(--calcite-font-weight-bold);color:var(--calcite-ui-text-2)}/*!@.dropdown-separator*/.dropdown-separator.sc-calcite-dropdown-group{display:block;height:1px;background-color:var(--calcite-ui-border-3)}";
17589
+ const calciteDropdownGroupCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-dropdown-group:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-dropdown-group{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*/.calcite-animate__in.sc-calcite-dropdown-group{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-dropdown-group{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-dropdown-group{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-dropdown-group{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-dropdown-group:root{--calcite-popper-transition:150ms ease-in-out}/*!@:host([hidden])*/[hidden].sc-calcite-dropdown-group-h{display:none}/*!@:host*/.sc-calcite-dropdown-group-h{display:block}/*!@.container--s*/.container--s.sc-calcite-dropdown-group{font-size:var(--calcite-font-size--2);line-height:1rem}/*!@.container--s .dropdown-title*/.container--s.sc-calcite-dropdown-group .dropdown-title.sc-calcite-dropdown-group{padding:0.5rem}/*!@.container--m*/.container--m.sc-calcite-dropdown-group{font-size:var(--calcite-font-size--1);line-height:1rem}/*!@.container--m .dropdown-title*/.container--m.sc-calcite-dropdown-group .dropdown-title.sc-calcite-dropdown-group{padding:0.75rem}/*!@.container--l*/.container--l.sc-calcite-dropdown-group{font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@.container--l .dropdown-title*/.container--l.sc-calcite-dropdown-group .dropdown-title.sc-calcite-dropdown-group{padding:1rem}/*!@.dropdown-title*/.dropdown-title.sc-calcite-dropdown-group{margin-bottom:-1px;display:block;cursor:default;overflow-wrap:break-word;border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);font-weight:var(--calcite-font-weight-bold);color:var(--calcite-ui-text-2)}/*!@.dropdown-separator*/.dropdown-separator.sc-calcite-dropdown-group{display:block;height:1px;background-color:var(--calcite-ui-border-3)}";
17569
17590
 
17570
17591
  /**
17571
17592
  * @slot - A slot for adding `calcite-dropdown-item`s.
@@ -18460,7 +18481,7 @@ const scaleToPx = {
18460
18481
  l: 32
18461
18482
  };
18462
18483
 
18463
- const calciteIconCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-icon:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-icon{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*/.calcite-animate__in.sc-calcite-icon{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-icon{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-icon{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-icon{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-icon:root{--calcite-popper-transition:150ms ease-in-out}/*!@:host([hidden])*/[hidden].sc-calcite-icon-h{display:none}/*!@:host*/.sc-calcite-icon-h{display:-ms-inline-flexbox;display:inline-flex}/*!@:host([scale=s])*/[scale=s].sc-calcite-icon-h{height:1rem;width:1rem;min-width:1rem;min-height:1rem}/*!@:host([scale=m])*/[scale=m].sc-calcite-icon-h{height:1.5rem;width:1.5rem;min-width:1.5rem;min-height:1.5rem}/*!@:host([scale=l])*/[scale=l].sc-calcite-icon-h{height:2rem;width:2rem;min-width:2rem;min-height:2rem}/*!@.flip-rtl*/.flip-rtl.sc-calcite-icon{-webkit-transform:scaleX(-1);transform:scaleX(-1)}/*!@.svg*/.svg.sc-calcite-icon{display:block}";
18484
+ const calciteIconCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-icon:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-icon{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*/.calcite-animate__in.sc-calcite-icon{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-icon{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-icon{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-icon{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-icon:root{--calcite-popper-transition:150ms ease-in-out}/*!@:host([hidden])*/[hidden].sc-calcite-icon-h{display:none}/*!@:host*/.sc-calcite-icon-h{display:-ms-inline-flexbox;display:inline-flex;color:var(--calcite-ui-icon-color)}/*!@:host([scale=s])*/[scale=s].sc-calcite-icon-h{height:1rem;width:1rem;min-width:1rem;min-height:1rem}/*!@:host([scale=m])*/[scale=m].sc-calcite-icon-h{height:1.5rem;width:1.5rem;min-width:1.5rem;min-height:1.5rem}/*!@:host([scale=l])*/[scale=l].sc-calcite-icon-h{height:2rem;width:2rem;min-width:2rem;min-height:2rem}/*!@.flip-rtl*/.flip-rtl.sc-calcite-icon{-webkit-transform:scaleX(-1);transform:scaleX(-1)}/*!@.svg*/.svg.sc-calcite-icon{display:block}";
18464
18485
 
18465
18486
  class CalciteIcon {
18466
18487
  constructor(hostRef) {
@@ -19094,11 +19115,12 @@ class CalciteInput {
19094
19115
  //
19095
19116
  //--------------------------------------------------------------------------
19096
19117
  connectedCallback() {
19097
- var _a;
19098
19118
  this.scale = getElementProp(this.el, "scale", this.scale);
19099
19119
  this.status = getElementProp(this.el, "status", this.status);
19100
19120
  this.inlineEditableEl = this.el.closest("calcite-inline-editable");
19101
- this.editingEnabled = (_a = this.inlineEditableEl) === null || _a === void 0 ? void 0 : _a.editingEnabled;
19121
+ if (this.inlineEditableEl) {
19122
+ this.editingEnabled = this.inlineEditableEl.editingEnabled || false;
19123
+ }
19102
19124
  if (this.type === "number" && this.value) {
19103
19125
  if (isValidNumber(this.value)) {
19104
19126
  this.localizedValue = localizeNumberString(this.value, this.locale, this.groupSeparator);
@@ -21778,6 +21800,7 @@ const SLOTS$b = {
21778
21800
  function mutationObserverCallback() {
21779
21801
  this.setUpItems();
21780
21802
  this.setUpFilter();
21803
+ this.deselectRemovedItems();
21781
21804
  }
21782
21805
  const SUPPORTED_ARROW_KEYS = ["ArrowUp", "ArrowDown"];
21783
21806
  // --------------------------------------------------------------------------
@@ -21947,6 +21970,15 @@ function setUpItems(tagName) {
21947
21970
  toggleSingleSelectItemTabbing(first, true);
21948
21971
  }
21949
21972
  }
21973
+ function deselectRemovedItems() {
21974
+ const selectedValues = this.selectedValues;
21975
+ const itemValues = this.items.map(({ value }) => value);
21976
+ selectedValues.forEach((selectedItem) => {
21977
+ if (!itemValues.includes(selectedItem.value)) {
21978
+ this.selectedValues.delete(selectedItem.value);
21979
+ }
21980
+ });
21981
+ }
21950
21982
  function deselectSiblingItems(item) {
21951
21983
  this.items.forEach((currentItem) => {
21952
21984
  if (currentItem.value !== item.value) {
@@ -22100,6 +22132,7 @@ class CalcitePickList {
22100
22132
  this.setFilterEl = (el) => {
22101
22133
  this.filterEl = el;
22102
22134
  };
22135
+ this.deselectRemovedItems = deselectRemovedItems.bind(this);
22103
22136
  this.deselectSiblingItems = deselectSiblingItems.bind(this);
22104
22137
  this.selectSiblings = selectSiblings.bind(this);
22105
22138
  this.handleFilter = handleFilter.bind(this);
@@ -22648,7 +22681,7 @@ class CalcitePopover {
22648
22681
  getReferenceElement() {
22649
22682
  const { referenceElement, el } = this;
22650
22683
  return ((typeof referenceElement === "string"
22651
- ? queryElementRoots(el, `#${referenceElement}`)
22684
+ ? queryElementRoots(el, { id: referenceElement })
22652
22685
  : referenceElement) || null);
22653
22686
  }
22654
22687
  getModifiers() {
@@ -22796,7 +22829,7 @@ class CalcitePopoverManager {
22796
22829
  var _a;
22797
22830
  const { selector, el } = this;
22798
22831
  const id = (_a = element.closest(selector)) === null || _a === void 0 ? void 0 : _a.getAttribute(POPOVER_REFERENCE);
22799
- return queryElementRoots(el, `#${id}`);
22832
+ return queryElementRoots(el, { id });
22800
22833
  };
22801
22834
  }
22802
22835
  // --------------------------------------------------------------------------
@@ -31053,7 +31086,7 @@ class CalciteTooltip {
31053
31086
  getReferenceElement() {
31054
31087
  const { referenceElement, el } = this;
31055
31088
  return ((typeof referenceElement === "string"
31056
- ? queryElementRoots(el, `#${referenceElement}`)
31089
+ ? queryElementRoots(el, { id: referenceElement })
31057
31090
  : referenceElement) || null);
31058
31091
  }
31059
31092
  getModifiers() {
@@ -31164,7 +31197,7 @@ class CalciteTooltipManager {
31164
31197
  var _a;
31165
31198
  const { selector, el } = this;
31166
31199
  const id = (_a = element.closest(selector)) === null || _a === void 0 ? void 0 : _a.getAttribute(TOOLTIP_REFERENCE);
31167
- return queryElementRoots(el, `#${id}`);
31200
+ return queryElementRoots(el, { id });
31168
31201
  };
31169
31202
  this.clearHoverTimeout = (tooltip) => {
31170
31203
  const { hoverTimeouts } = this;
@@ -31848,6 +31881,7 @@ class CalciteValueList {
31848
31881
  this.setFilterEl = (el) => {
31849
31882
  this.filterEl = el;
31850
31883
  };
31884
+ this.deselectRemovedItems = deselectRemovedItems.bind(this);
31851
31885
  this.deselectSiblingItems = deselectSiblingItems.bind(this);
31852
31886
  this.selectSiblings = selectSiblings.bind(this);
31853
31887
  this.handleFilter = handleFilter.bind(this);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esri/calcite-components",
3
- "version": "1.0.0-next.345",
3
+ "version": "1.0.0-next.349",
4
4
  "description": "Web Components for Esri's Calcite Design System.",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -1,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 n,g as a}from"./p-2e29554c.js";import{T as o,s as r,d as s,a as l,C as c}from"./p-52cc870b.js";import{c as h,d as u,g as d}from"./p-3dae9da3.js";import{c as m,d as p,H as b}from"./p-1942876c.js";import{d as f,g,l as x}from"./p-8396a2d2.js";import{i as w,p as v,s as y,n as k}from"./p-91300144.js";import{d as z}from"./p-2d09cc25.js";import"./p-8a63221d.js";const D={tel:"phone",password:"lock",email:"email-address",date:"calendar",time:"clock",search:"search"};let j=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.hidden=!1,this.intlLoading=o.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.editingEnabled=!1,this.type="text",this.value="",this.childElType="input",this.keyDownHandler=t=>{"ArrowUp"===t.key&&t.preventDefault(),this.readOnly||this.disabled||this.isClearable&&"Escape"===t.key&&(this.clearInputValue(t),t.preventDefault())},this.clearInputValue=t=>{this.setValue("",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=[...k,"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 n=g(this.locale);if(t.key===n){if(!this.value&&!this.childNumberEl.value)return;if(this.value&&-1===this.childNumberEl.value.indexOf(n))return}t.preventDefault()},this.nudgeNumberValue=(t,i)=>{if(i instanceof KeyboardEvent&&i.repeat||"number"!==this.type)return;const e=this.maxString?parseFloat(this.maxString):null,n=this.minString?parseFloat(this.minString):null;this.incrementOrDecrementNumberValue(t,e,n,i);let a=!0;this.nudgeNumberValueIntervalId=setInterval((()=>{a?a=!1:this.incrementOrDecrementNumberValue(t,e,n,i)}),100)},this.numberButtonMouseUpAndMouseOutHandler=()=>{clearInterval(this.nudgeNumberValueIntervalId)},this.numberButtonMouseDownHandler=t=>{t.preventDefault(),this.nudgeNumberValue(t.target.dataset.adjustment,t)},this.setChildElRef=t=>{this.childEl=t},this.setChildNumberElRef=t=>{this.childNumberEl=t},this.setLocalizedValue=t=>{this.localizedValue=x(t,this.locale,this.groupSeparator)},this.setValue=(t,i,e=!1)=>{const n=this.value;if("number"===this.type){const i=y(t);this.value=i,this.setLocalizedValue(i)}else this.value=t;i&&(this.calciteInputInput.emit({element:this.childEl,nativeEvent:i,value:this.value}).defaultPrevented?(this.value=n,this.setLocalizedValue(n)):e&&this.calciteInputChange.emit())},this.inputKeyUpHandler=()=>{clearInterval(this.nudgeNumberValueIntervalId)}}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){null!=t?"number"===this.type&&this.localizedValue!==x(t,this.locale)?this.setLocalizedValue(t):this.childEl&&this.childEl.value!==t&&(this.childEl.value=t):this.value=""}updateRequestedIcon(){this.requestedIcon=r(D,this.icon,this.type)}get isClearable(){return!this.isTextarea&&(this.clearable||"search"===this.type)&&this.value.length>0}get isTextarea(){return"textarea"===this.childElType}connectedCallback(){var t;this.scale=s(this.el,"scale",this.scale),this.status=s(this.el,"status",this.status),this.inlineEditableEl=this.el.closest("calcite-inline-editable"),this.editingEnabled=null===(t=this.inlineEditableEl)||void 0===t?void 0:t.editingEnabled,"number"===this.type&&this.value&&(w(this.value)?this.localizedValue=x(this.value,this.locale,this.groupSeparator):this.value=""),h(this),m(this)}disconnectedCallback(){u(this),p(this)}componentWillLoad(){var t,i;this.childElType="textarea"===this.type?"textarea":"input",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=r(D,this.icon,this.type)}componentDidLoad(){this.slottedActionEl=this.el.querySelector("[slot=action]"),this.setDisabledAction()}componentShouldUpdate(t,i,e){return!("number"===this.type&&"value"===e&&t&&!w(t)&&(this.value=i,1))}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()}incrementOrDecrementNumberValue(t,i,e,n){const{value:a}=this,o="any"===this.step?1:Math.abs(this.step||1),r=a&&""!==a?parseFloat(a):0,s=r+o*("up"===t?1:-1),l="number"==typeof e&&!isNaN(e)&&s<e||"number"==typeof i&&!isNaN(i)&&s>i?r:s,c=z(r),h=z(o);this.setValue(l.toFixed(Math.max(c,h)),n,!0)}onFormReset(){this.setValue(this.defaultValue)}syncHiddenFormInput(t){var i,e,n,a;"number"===this.type?(t.type="number",t.min=null!==(e=null===(i=this.min)||void 0===i?void 0:i.toString(10))&&void 0!==e?e:"",t.max=null!==(a=null===(n=this.max)||void 0===n?void 0:n.toString(10))&&void 0!==a?a:""):"text"===this.type?(t.type="text",null!=this.minLength&&(t.minLength=this.minLength),null!=this.maxLength&&(t.maxLength=this.maxLength)):"password"===this.type&&(t.type="password")}setDisabledAction(){if(!this.slottedActionEl)return;const t=this.slottedActionEl;this.disabled?t.setAttribute("disabled",""):t.removeAttribute("disabled")}render(){const t=l(this.el),i=e("div",{class:"loader"},e("calcite-progress",{label:this.intlLoading,type:"indeterminate"})),a=e("button",{class:"clear-button",disabled:this.disabled||this.readOnly,onClick:this.clearInputValue,tabIndex:this.disabled?-1:0,type:"button"},e("calcite-icon",{icon:"x",scale:"s"})),o=e("calcite-icon",{class:"icon",flipRtl:this.iconFlipRtl,icon:this.requestedIcon,scale:"s"}),r="horizontal"===this.numberButtonType,s=e("button",{class:{"number-button-item":!0,"number-button-item--horizontal":r},"data-adjustment":"up",disabled:this.disabled||this.readOnly,onMouseDown:this.numberButtonMouseDownHandler,onMouseOut:this.numberButtonMouseUpAndMouseOutHandler,onMouseUp:this.numberButtonMouseUpAndMouseOutHandler,tabIndex:-1,type:"button"},e("calcite-icon",{icon:"chevron-up",scale:"s"})),h=e("button",{class:{"number-button-item":!0,"number-button-item--horizontal":r},"data-adjustment":"down",disabled:this.disabled||this.readOnly,onMouseDown:this.numberButtonMouseDownHandler,onMouseOut:this.numberButtonMouseUpAndMouseOutHandler,onMouseUp:this.numberButtonMouseUpAndMouseOutHandler,tabIndex:-1,type:"button"},e("calcite-icon",{icon:"chevron-down",scale:"s"})),u=e("div",{class:"number-button-wrapper"},s,h),m=e("div",{class:"prefix"},this.prefixText),p=e("div",{class:"suffix"},this.suffixText),f="number"===this.type?e("input",{"aria-label":d(this),autofocus:!!this.autofocus||null,defaultValue:this.defaultValue,disabled:!!this.disabled||null,enterKeyHint:this.el.enterKeyHint,inputMode:this.el.inputMode,key:"localized-input",maxLength:this.maxLength,minLength:this.minLength,name:void 0,onBlur:this.inputBlurHandler,onFocus:this.inputFocusHandler,onInput:this.inputNumberInputHandler,onKeyDown:this.inputNumberKeyDownHandler,onKeyUp:this.inputKeyUpHandler,placeholder:this.placeholder||"",readOnly:this.readOnly,ref:this.setChildNumberElRef,type:"text",value:this.localizedValue}):null,g="number"!==this.type?[e(this.childElType,{"aria-label":d(this),autofocus:!!this.autofocus||null,class:{"editing-enabled":this.editingEnabled,"inline-child":!!this.inlineEditableEl},defaultValue:this.defaultValue,disabled:!!this.disabled||null,enterKeyHint:this.el.enterKeyHint,inputMode:this.el.inputMode,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,onKeyUp:this.inputKeyUpHandler,placeholder:this.placeholder||"",readOnly:this.readOnly,ref:this.setChildElRef,required:!!this.required||null,step:this.step,tabIndex:this.disabled||this.inlineEditableEl&&!this.editingEnabled?-1:null,type:this.type,value:this.value}),this.isTextarea?e("div",{class:"resize-icon-wrapper"},e("calcite-icon",{icon:"chevron-down",scale:"s"})):null]:null;return e(n,{onClick:this.inputFocusHandler,onKeyDown:this.keyDownHandler},e("div",{class:{wrapper:!0,[c.rtl]:"rtl"===t}},"number"!==this.type||"horizontal"!==this.numberButtonType||this.readOnly?null:h,this.prefixText?m:null,e("div",{class:"element-wrapper"},f,g,this.isClearable?a:null,this.requestedIcon?o:null,this.loading?i:null),e("div",{class:"action-wrapper"},e("slot",{name:"action"})),"number"!==this.type||"vertical"!==this.numberButtonType||this.readOnly?null:u,this.suffixText?p:null,"number"!==this.type||"horizontal"!==this.numberButtonType||this.readOnly?null:s,e(b,{component:this})))}get el(){return a(this)}static get watchers(){return{disabled:["disabledWatcher"],max:["maxWatcher"],min:["minWatcher"],value:["valueWatcher"],icon:["updateRequestedIcon"],type:["updateRequestedIcon"]}}};j.style="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host([scale=s]) input,:host([scale=s]) .prefix,:host([scale=s]) .suffix{height:1.5rem;padding:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s]) textarea{height:1.5rem;min-height:1.5rem}:host([scale=s]) .number-button-wrapper,:host([scale=s]) .action-wrapper calcite-button,:host([scale=s]) .action-wrapper calcite-button button{height:1.5rem}:host([scale=s]) input[type=file]{height:1.5rem}:host([scale=s]) .clear-button{min-height:1.5rem;min-width:1.5rem}:host([scale=s]) textarea{height:auto;padding-top:0.25rem;padding-bottom:0.25rem;padding-left:0.5rem;padding-right:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]) input,:host([scale=m]) .prefix,:host([scale=m]) .suffix{height:2rem;padding:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]) textarea{min-height:2rem}:host([scale=m]) .number-button-wrapper,:host([scale=m]) .action-wrapper calcite-button,:host([scale=m]) .action-wrapper calcite-button button{height:2rem}:host([scale=m]) input[type=file]{height:2rem}:host([scale=m]) .clear-button{min-height:2rem;min-width:2rem}:host([scale=m]) textarea{height:auto;padding-top:0.5rem;padding-bottom:0.5rem;padding-left:0.75rem;padding-right:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]) input,:host([scale=l]) .prefix,:host([scale=l]) .suffix{height:2.75rem;padding:1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]) textarea{min-height:2.75rem}:host([scale=l]) .number-button-wrapper,:host([scale=l]) .action-wrapper calcite-button,:host([scale=l]) .action-wrapper calcite-button button{height:2.75rem}:host([scale=l]) input[type=file]{height:2.75rem}:host([scale=l]) .clear-button{min-height:2.75rem;min-width:2.75rem}:host([scale=l]) textarea{height:auto;padding-top:0.75rem;padding-bottom:0.75rem;padding-left:1rem;padding-right:1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([disabled]){pointer-events:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) .wrapper{pointer-events:none;--tw-text-opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) button,:host([disabled]) textarea,:host([disabled]) input{pointer-events:none}:host([disabled]) textarea{resize:none}:host textarea,:host input{-webkit-transition:150ms ease-in-out, height 0s;transition:150ms ease-in-out, height 0s;-webkit-appearance:none;position:relative;margin:0px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;max-height:100%;width:100%;max-width:100%;-ms-flex:1 1 0%;flex:1 1 0%;border-radius:0px;background-color:var(--calcite-ui-foreground-1);font-family:inherit;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-1)}:host input[type=search]::-webkit-search-decoration{-webkit-appearance:none}:host input,:host textarea{border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);color:var(--calcite-ui-text-1)}:host input:-ms-input-placeholder,:host textarea:-ms-input-placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}:host input::-ms-input-placeholder,:host textarea::-ms-input-placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}:host input::placeholder,:host input:-ms-input-placeholder,:host input::-ms-input-placeholder,:host textarea::placeholder,:host textarea:-ms-input-placeholder,:host textarea::-ms-input-placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}:host input:focus,:host textarea:focus{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-text-1)}:host input[readonly],:host textarea[readonly]{background-color:var(--calcite-ui-background);font-weight:var(--calcite-font-weight-medium)}:host input[readonly]:focus,:host textarea[readonly]:focus{color:var(--calcite-ui-text-1)}:host calcite-icon{color:var(--calcite-ui-text-3)}:host textarea,:host 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}:host textarea:focus,:host input:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}:host([status=invalid]) input,:host([status=invalid]) textarea{border-color:var(--calcite-ui-danger)}:host([status=invalid]) input:focus,:host([status=invalid]) textarea:focus{outline:2px solid var(--calcite-ui-danger);outline-offset:-2px}:host([scale=s]) .icon{inset-inline-start:0.5rem}:host([scale=m]) .icon{inset-inline-start:0.75rem}:host([scale=l]) .icon{inset-inline-start:1rem}:host([icon][scale=s]) input{-webkit-padding-start:2rem;padding-inline-start:2rem}:host([icon][scale=m]) input{-webkit-padding-start:2.5rem;padding-inline-start:2.5rem}:host([icon][scale=l]) input{-webkit-padding-start:3rem;padding-inline-start:3rem}.element-wrapper{position:relative;-ms-flex-order:3;order:3;display:-ms-inline-flexbox;display:inline-flex;-ms-flex:1 1 0%;flex:1 1 0%;-ms-flex-align:center;align-items:center}.icon{pointer-events:none;position:absolute;z-index:10;display:block;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:var(--calcite-animation-timing);transition-duration:var(--calcite-animation-timing);-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}input[type=text]::-ms-clear,input[type=text]::-ms-reveal{display:none;height:0px;width:0px}input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration,input[type=date]::-webkit-clear-button,input[type=time]::-webkit-clear-button{display:none}.clear-button{pointer-events:initial;-ms-flex-order:4;order:4;margin:0px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;min-height:100%;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-item-align:stretch;align-self:stretch;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;border-inline-start-width:0px}.clear-button:hover{background-color:var(--calcite-ui-foreground-2);-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:var(--calcite-animation-timing);transition-duration:var(--calcite-animation-timing);-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}.clear-button:hover calcite-icon{color:var(--calcite-ui-text-1);-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:var(--calcite-animation-timing);transition-duration:var(--calcite-animation-timing);-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}.clear-button:active{background-color:var(--calcite-ui-foreground-3)}.clear-button:active calcite-icon{color:var(--calcite-ui-text-1)}.clear-button:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.clear-button:disabled{opacity:var(--calcite-ui-opacity-disabled)}.loader{top:1px;left:1px;right:1px;pointer-events:none;position:absolute;display:block}.action-wrapper{-ms-flex-order:7;order:7;display:-ms-flexbox;display:flex}.prefix,.suffix{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;height:auto;min-height:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-ms-flex-line-pack:center;align-content:center;-ms-flex-align:center;align-items:center;overflow-wrap:break-word;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-background);font-weight:var(--calcite-font-weight-medium);line-height:1;color:var(--calcite-ui-text-2)}.prefix{-ms-flex-order:2;order:2;border-inline-end-width:0px}.suffix{-ms-flex-order:5;order:5;border-inline-start-width:0px}:host([alignment=start]) textarea,:host([alignment=start]) input{text-align:start}:host([alignment=end]) textarea,:host([alignment=end]) input{text-align:end}:host input[type=number]{-moz-appearance:textfield}:host input[type=number]::-webkit-inner-spin-button,:host input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;-moz-appearance:textfield;margin:0px}.number-button-wrapper{pointer-events:none;-ms-flex-order:6;order:6;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:var(--calcite-animation-timing);transition-duration:var(--calcite-animation-timing);-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}:host([number-button-type=vertical]) .wrapper{-ms-flex-direction:row;flex-direction:row;display:-ms-flexbox;display:flex}:host([number-button-type=vertical]) input,:host([number-button-type=vertical]) textarea{-ms-flex-order:2;order:2}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=down] calcite-icon{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=up] calcite-icon{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.number-button-item.number-button-item--horizontal[data-adjustment=down],.number-button-item.number-button-item--horizontal[data-adjustment=up]{-ms-flex-order:1;order:1;max-height:100%;min-height:100%;-ms-flex-item-align:stretch;align-self:stretch}.number-button-item.number-button-item--horizontal[data-adjustment=down] calcite-icon,.number-button-item.number-button-item--horizontal[data-adjustment=up] calcite-icon{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.number-button-item.number-button-item--horizontal[data-adjustment=down]{border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);border-inline-end-width:0px}.number-button-item.number-button-item--horizontal[data-adjustment=down]:hover{background-color:var(--calcite-ui-foreground-2)}.number-button-item.number-button-item--horizontal[data-adjustment=down]:hover calcite-icon{color:var(--calcite-ui-text-1)}.number-button-item.number-button-item--horizontal[data-adjustment=up]{-ms-flex-order:5;order:5}.number-button-item.number-button-item--horizontal[data-adjustment=up]:hover{background-color:var(--calcite-ui-foreground-2)}.number-button-item.number-button-item--horizontal[data-adjustment=up]:hover calcite-icon{color:var(--calcite-ui-text-1)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]:hover{background-color:var(--calcite-ui-foreground-2)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]:hover calcite-icon{color:var(--calcite-ui-text-1)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]:hover{background-color:var(--calcite-ui-foreground-2)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]:hover calcite-icon{color:var(--calcite-ui-text-1)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]{border-top-width:0px}.number-button-item{max-height:50%;min-height:50%;pointer-events:initial;margin:0px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-item-align:center;align-self:center;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);padding-top:0px;padding-bottom:0px;padding-left:0.5rem;padding-right:0.5rem;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:var(--calcite-animation-timing);transition-duration:var(--calcite-animation-timing);-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s;border-inline-start-width:0px}.number-button-item calcite-icon{pointer-events:none;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:var(--calcite-animation-timing);transition-duration:var(--calcite-animation-timing);-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}.number-button-item:focus{background-color:var(--calcite-ui-foreground-2)}.number-button-item:focus calcite-icon{color:var(--calcite-ui-text-1)}.number-button-item:active{background-color:var(--calcite-ui-foreground-3)}.wrapper{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}:host input::-webkit-calendar-picker-indicator{display:none}:host input[type=date]::-webkit-input-placeholder{visibility:hidden !important}:host textarea::-webkit-resizer{position:absolute;bottom:0px;-webkit-box-sizing:border-box;box-sizing:border-box;padding-top:0px;padding-bottom:0px;padding-left:0.25rem;padding-right:0.25rem;inset-inline-end:0}.resize-icon-wrapper{bottom:2px;inset-inline-end:2px;pointer-events:none;position:absolute;z-index:10;height:0.75rem;width:0.75rem;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-3)}.resize-icon-wrapper calcite-icon{bottom:0.25rem;inset-inline-end:0.25rem;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.calcite--rtl .resize-icon-wrapper calcite-icon{-webkit-transform:rotate(45deg);transform:rotate(45deg)}:host([type=color]) input{padding:0.25rem}:host([type=file]) input{cursor:pointer;border-width:1px;border-style:dashed;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);text-align:center}:host([type=file][scale=s]) input{padding-top:1px;padding-bottom:1px;padding-left:0.5rem;padding-right:0.5rem}:host([type=file][scale=m]) input{padding-top:0.25rem;padding-bottom:0.25rem;padding-left:0.75rem;padding-right:0.75rem}:host([type=file][scale=l]) input{padding-top:0.5rem;padding-bottom:0.5rem;padding-left:1rem;padding-right:1rem}:host(.no-bottom-border) input{border-bottom-width:0px}:host(.border-top-color-one) input{border-top-color:var(--calcite-ui-border-1)}:host .inline-child{background-color:transparent;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:var(--calcite-animation-timing);transition-duration:var(--calcite-animation-timing);-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}:host .inline-child .editing-enabled{background-color:inherit}:host .inline-child:not(.editing-enabled){display:-ms-flexbox;display:flex;cursor:pointer;border-color:transparent;-webkit-padding-start:0;padding-inline-start:0}::slotted(input[slot=hidden-form-input]){bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";export{j 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{r as t,h as a,H as i,g as e}from"./p-2e29554c.js";import{g as n}from"./p-8a63221d.js";import{d as r,u as o,c as s,C as c}from"./p-0229a408.js";import{q as l}from"./p-52cc870b.js";const m="data-calcite-tooltip-reference";let p=class{constructor(a){t(this,a),this.offsetDistance=r,this.offsetSkidding=0,this.open=!1,this.overlayPositioning="absolute",this.placement="auto",this.guid=`calcite-tooltip-${n()}`,this.setUpReferenceElement=()=>{this.removeReferences(),this.effectiveReferenceElement=this.getReferenceElement();const{el:t,referenceElement:a,effectiveReferenceElement:i}=this;a&&!i&&console.warn(`${t.tagName}: reference-element id "${a}" was not found.`,{el:t}),this.addReferences(),this.createPopper()},this.getId=()=>this.el.id||this.guid,this.addReferences=()=>{const{effectiveReferenceElement:t}=this;if(!t)return;const a=this.getId();t.setAttribute(m,a),t.setAttribute("aria-describedby",a)},this.removeReferences=()=>{const{effectiveReferenceElement:t}=this;t&&(t.removeAttribute(m),t.removeAttribute("aria-describedby"))},this.show=()=>{this.open=!0},this.hide=()=>{this.open=!1}}offsetDistanceOffsetHandler(){this.reposition()}offsetSkiddingHandler(){this.reposition()}openHandler(){this.reposition()}placementHandler(){this.reposition()}referenceElementHandler(){this.setUpReferenceElement()}componentWillLoad(){this.setUpReferenceElement()}componentDidLoad(){this.reposition()}disconnectedCallback(){this.removeReferences(),this.destroyPopper()}async reposition(){const{popper:t,el:a,placement:i}=this,e=this.getModifiers();t?await o({el:a,modifiers:e,placement:i,popper:t}):this.createPopper()}getReferenceElement(){const{referenceElement:t,el:a}=this;return("string"==typeof t?l(a,`#${t}`):t)||null}getModifiers(){const{arrowEl:t,offsetDistance:a,offsetSkidding:i}=this;return[{name:"arrow",enabled:!0,options:{element:t}},{name:"offset",enabled:!0,options:{offset:[i,a]}}]}createPopper(){this.destroyPopper();const{el:t,placement:a,effectiveReferenceElement:i,overlayPositioning:e}=this,n=this.getModifiers();this.popper=s({el:t,modifiers:n,placement:a,overlayPositioning:e,referenceEl:i})}destroyPopper(){const{popper:t}=this;t&&t.destroy(),this.popper=null}render(){const{effectiveReferenceElement:t,label:e,open:n}=this,r=t&&n,o=!r;return a(i,{"aria-hidden":o.toString(),"aria-label":e,"calcite-hydrated-hidden":o,id:this.getId(),role:"tooltip"},a("div",{class:{[c.animation]:!0,[c.animationActive]:r}},a("div",{class:"arrow",ref:t=>this.arrowEl=t}),a("div",{class:"container"},a("slot",null))))}get el(){return e(this)}static get watchers(){return{offsetDistance:["offsetDistanceOffsetHandler"],offsetSkidding:["offsetSkiddingHandler"],open:["openHandler"],placement:["placementHandler"],referenceElement:["referenceElementHandler"]}}};p.style='@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:block;position:absolute;z-index:999;-webkit-transform:scale(0);transform:scale(0)}.calcite-popper-anim{position:relative;z-index:1;-webkit-transition:var(--calcite-popper-transition);transition:var(--calcite-popper-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}:host([data-popper-placement^=bottom]) .calcite-popper-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}:host([data-popper-placement^=top]) .calcite-popper-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}:host([data-popper-placement^=left]) .calcite-popper-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}:host([data-popper-placement^=right]) .calcite-popper-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}:host([data-popper-placement]) .calcite-popper-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}.arrow,.arrow::before{position:absolute;width:8px;height:8px;z-index:-1}.arrow::before{content:"";--tw-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);--tw-shadow-colored:0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);-webkit-transform:rotate(45deg);transform:rotate(45deg);background:var(--calcite-ui-foreground-1)}:host([data-popper-placement^=top]) .arrow{bottom:-4px}:host([data-popper-placement^=bottom]) .arrow{top:-4px}:host([data-popper-placement^=left]) .arrow{right:-4px}:host([data-popper-placement^=right]) .arrow{left:-4px}.container{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:start;justify-content:flex-start;border-radius:0.25rem;background-color:var(--calcite-ui-foreground-1);padding-top:0.75rem;padding-bottom:0.75rem;padding-left:1rem;padding-right:1rem;font-size:var(--calcite-font-size--2);line-height:1.375;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1);overflow:hidden;max-width:20rem;max-height:20rem}.calcite-popper-anim{border-radius:0.25rem;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1)}.arrow::before{outline:1px solid var(--calcite-ui-border-3)}';let f=class{constructor(a){t(this,a),this.hoverTimeouts=new WeakMap,this.selector=`[${m}]`,this.queryTooltip=t=>{var a;const{selector:i,el:e}=this,n=null===(a=t.closest(i))||void 0===a?void 0:a.getAttribute(m);return l(e,`#${n}`)},this.clearHoverTimeout=t=>{const{hoverTimeouts:a}=this;a.has(t)&&(window.clearTimeout(a.get(t)),a.delete(t))},this.closeExistingTooltip=()=>{const{tooltipEl:t}=this;t&&this.toggleTooltip(t,!1)},this.focusTooltip=({tooltip:t,value:a})=>{this.closeExistingTooltip(),a&&this.clearHoverTimeout(t),this.toggleTooltip(t,a)},this.toggleTooltip=(t,a)=>{t.open=a,a&&(this.tooltipEl=t)},this.hoverToggle=({tooltip:t,value:a})=>{const{hoverTimeouts:i}=this;i.delete(t),a&&this.closeExistingTooltip(),this.toggleTooltip(t,a)},this.hoverTooltip=({tooltip:t,value:a})=>{this.clearHoverTimeout(t);const{hoverTimeouts:i}=this,e=window.setTimeout((()=>this.hoverToggle({tooltip:t,value:a})),500);i.set(t,e)},this.activeTooltipHover=t=>{const{tooltipEl:a,hoverTimeouts:i}=this,{type:e}=t;a&&("mouseover"===e&&t.composedPath().includes(a)?this.clearHoverTimeout(a):"mouseout"!==e||i.has(a)||this.hoverTooltip({tooltip:a,value:!1}))},this.hoverEvent=(t,a)=>{const i=this.queryTooltip(t.target);this.activeTooltipHover(t),i&&this.hoverTooltip({tooltip:i,value:a})},this.focusEvent=(t,a)=>{const i=this.queryTooltip(t.target);i&&i!==this.clickedTooltip?this.focusTooltip({tooltip:i,value:a}):this.clickedTooltip=null}}render(){return a("slot",null)}keyUpHandler(t){if("Escape"===t.key){const{tooltipEl:t}=this;t&&(this.clearHoverTimeout(t),this.toggleTooltip(t,!1))}}mouseEnterShow(t){this.hoverEvent(t,!0)}mouseLeaveHide(t){this.hoverEvent(t,!1)}clickHandler(t){const a=this.queryTooltip(t.target);this.clickedTooltip=a,a&&this.toggleTooltip(a,!1)}focusShow(t){this.focusEvent(t,!0)}blurHide(t){this.focusEvent(t,!1)}get el(){return e(this)}};f.style="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:block}";export{p as calcite_tooltip,f as calcite_tooltip_manager}
@@ -1,5 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- */
5
- import{r as t,c as a,h as i,g as e,F as n}from"./p-2e29554c.js";import{m as r,d as o,s,h as c,g as l,k as m,i as d,a as h,c as f,r as p,b,e as u,l as w,f as g,j as x,I as k,L as y,T as v,n as D,C as _,S as z}from"./p-3e646c9b.js";import{c as C}from"./p-e4acb5a8.js";import{g as H}from"./p-52cc870b.js";import{C as I,c as j}from"./p-8340b572.js";import"./p-accdb0ce.js";import"./p-b06207bb.js";import"./p-8a63221d.js";let L=class{constructor(i){t(this,i),this.calciteListChange=a(this,"calciteListChange",7),this.disabled=!1,this.filterEnabled=!1,this.loading=!1,this.multiple=!1,this.selectionFollowsFocus=!1,this.selectedValues=new Map,this.dataForFilter=[],this.lastSelectedItem=null,this.mutationObserver=C("mutation",r.bind(this)),this.setFilterEl=t=>{this.filterEl=t},this.deselectSiblingItems=o.bind(this),this.selectSiblings=s.bind(this),this.handleFilter=c.bind(this),this.getItemData=l.bind(this),this.keyDownHandler=m.bind(this)}connectedCallback(){d.call(this),h.call(this)}disconnectedCallback(){f.call(this)}calciteListItemRemoveHandler(t){p.call(this,t)}calciteListItemChangeHandler(t){b.call(this,t)}calciteListItemPropsChangeHandler(t){t.stopPropagation(),this.setUpFilter()}calciteListItemValueChangeHandler(t){u.call(this,t)}calciteListFocusOutHandler(t){w.call(this,t)}setUpItems(){g.call(this,"calcite-pick-list-item")}setUpFilter(){this.filterEnabled&&(this.dataForFilter=this.getItemData())}async getSelectedItems(){return this.selectedValues}async setFocus(t){return x.call(this,t)}getIconType(){return this.multiple?k.square:k.circle}render(){return i(y,{onKeyDown:this.keyDownHandler,props:this})}get el(){return e(this)}};L.style="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:1;flex-grow:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:stretch;align-items:stretch;background-color:transparent;font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-ui-text-2)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host([filter-enabled]) header{margin-bottom:0.25rem;display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch;-ms-flex-pack:end;justify-content:flex-end;background-color:var(--calcite-ui-foreground-1);--tw-shadow:0 1px 0 var(--calcite-ui-border-3);--tw-shadow-colored:0 1px 0 var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([filter-enabled]) header.sticky-pos{position:-webkit-sticky;position:sticky;top:0px;z-index:1}calcite-filter{margin-bottom:0px}:host([loading][disabled]){min-height:2rem}";let W=class{constructor(a){t(this,a)}render(){var t;const{el:a,groupTitle:e,headingLevel:r}=this,o={container:!0,"container--indented":null!==H(a,"parent-item")},s=e,c=null===(t=a.closest("calcite-pick-list"))||void 0===t?void 0:t.headingLevel,l=c?j(c+1):null;return i(n,null,s?i(I,{class:"heading",level:r||l||3},s):null,i("slot",{name:"parent-item"}),i("section",{class:o},i("slot",null)))}get el(){return e(this)}};W.style="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{margin-bottom:0.25rem;-webkit-box-sizing:border-box;box-sizing:border-box;display:block;background-color:transparent;font-size:var(--calcite-font-size--1);color:var(--calcite-ui-text-2)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host(:last-child){margin-bottom:0px}.header{margin:0px;display:-ms-flexbox;display:flex;-ms-flex-line-pack:justify;align-content:space-between;-ms-flex-align:center;align-items:center;fill:var(--calcite-ui-text-2);color:var(--calcite-ui-text-2)}.heading{margin:0px;padding:0px;font-weight:var(--calcite-font-weight-medium)}.header .heading{-ms-flex:1 1 auto;flex:1 1 auto;padding:0.5rem}h1.heading{font-size:var(--calcite-font-size-2);line-height:1.5rem}h2.heading{font-size:var(--calcite-font-size-1);line-height:1.5rem}h3.heading{font-size:var(--calcite-font-size-0);line-height:1.25rem}h4.heading,h5.heading{font-size:var(--calcite-font-size--1);line-height:1rem}h3.heading{margin-top:0.5rem;margin-bottom:0.5rem;margin-left:1rem;margin-right:1rem;font-size:var(--calcite-font-size--1);line-height:1.375;color:var(--calcite-ui-text-3)}.container--indented{-webkit-margin-start:1.5rem;margin-inline-start:1.5rem}";let F=class{constructor(i){t(this,i),this.calciteListItemChange=a(this,"calciteListItemChange",7),this.calciteListItemRemove=a(this,"calciteListItemRemove",7),this.calciteListItemPropsChange=a(this,"calciteListItemPropsChange",7),this.calciteListItemValueChange=a(this,"calciteListItemValueChange",7),this.disabled=!1,this.disableDeselect=!1,this.nonInteractive=!1,this.icon=null,this.removable=!1,this.selected=!1,this.intlRemove=v.remove,this.pickListClickHandler=t=>{this.disabled||this.disableDeselect&&this.selected||this.nonInteractive||(this.shiftPressed=t.shiftKey,this.selected=!this.selected)},this.pickListKeyDownHandler=t=>{if(" "===t.key){if(t.preventDefault(),this.disableDeselect&&this.selected||this.nonInteractive)return;this.selected=!this.selected}},this.removeClickHandler=()=>{this.calciteListItemRemove.emit()}}descriptionWatchHandler(){this.calciteListItemPropsChange.emit()}labelWatchHandler(){this.calciteListItemPropsChange.emit()}metadataWatchHandler(){this.calciteListItemPropsChange.emit()}selectedWatchHandler(){this.calciteListItemChange.emit({item:this.el,value:this.value,selected:this.selected,shiftPressed:this.shiftPressed}),this.shiftPressed=!1}valueWatchHandler(t,a){this.calciteListItemValueChange.emit({oldValue:a,newValue:t})}async toggleSelected(t){this.disabled||(this.selected="boolean"==typeof t?t:!this.selected)}async setFocus(){var t;null===(t=this.focusEl)||void 0===t||t.focus()}renderIcon(){const{icon:t}=this;return t?i("span",{class:{[_.icon]:!0,[_.iconDot]:t===k.circle},onClick:this.pickListClickHandler},t===k.square?i("calcite-icon",{icon:D.checked,scale:"s"}):null):null}renderRemoveAction(){return this.removable?i("calcite-action",{class:_.remove,icon:D.remove,onCalciteActionClick:this.removeClickHandler,slot:z.actionsEnd,text:this.intlRemove}):null}renderActionsStart(){const{el:t}=this;return H(t,z.actionsStart)?i("div",{class:{[_.actions]:!0,[_.actionsStart]:!0}},i("slot",{name:z.actionsStart})):null}renderActionsEnd(){const{el:t,removable:a}=this;return H(t,z.actionsEnd)||a?i("div",{class:{[_.actions]:!0,[_.actionsEnd]:!0}},i("slot",{name:z.actionsEnd}),this.renderRemoveAction()):null}render(){const{description:t,label:a}=this;return i(n,null,this.renderIcon(),this.renderActionsStart(),i("label",{"aria-label":a,class:_.label,onClick:this.pickListClickHandler,onKeyDown:this.pickListKeyDownHandler,ref:t=>this.focusEl=t,tabIndex:0},i("div",{"aria-checked":this.selected.toString(),class:_.textContainer,role:"menuitemcheckbox"},i("span",{class:_.title},a),t?i("span",{class:_.description},t):null)),this.renderActionsEnd())}get el(){return e(this)}static get watchers(){return{description:["descriptionWatchHandler"],label:["labelWatchHandler"],metadata:["metadataWatchHandler"],selected:["selectedWatchHandler"],value:["valueWatchHandler"]}}};F.style='@charset "UTF-8";@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{margin:0px;margin-bottom:1px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch;background-color:var(--calcite-ui-foreground-1);font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-ui-text-1);--tw-shadow:0 1px 0 var(--calcite-ui-border-3);--tw-shadow-colored:0 1px 0 var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);-webkit-transition:background-color 150ms ease-in-out;transition:background-color 150ms ease-in-out;-webkit-animation:calcite-fade-in 150ms ease-in-out;animation:calcite-fade-in 150ms ease-in-out}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}.label{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;cursor:pointer;-ms-flex-align:center;align-items:center;background-color:transparent;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}.label:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.label:hover{background-color:var(--calcite-ui-foreground-2)}:host([non-interactive]:hover){background-color:var(--calcite-ui-foreground-1)}:host([non-interactive]) .label,:host([non-interactive]) .icon{pointer-events:none}.icon{margin-top:0px;margin-bottom:0px;display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-align:center;align-items:center;padding:0.25rem;color:var(--calcite-ui-brand);-ms-flex:0 0 auto;flex:0 0 auto;line-height:0}.icon:hover{background-color:var(--calcite-ui-foreground-2)}.icon-dot{display:-ms-flexbox;display:flex;width:1.5rem;-ms-flex-align:center;align-items:center;padding:0.5rem}.icon-dot:before{opacity:0;content:"•"}.icon calcite-icon{opacity:0}:host([selected]) .icon-dot:before,:host([selected]) .icon calcite-icon{-webkit-transition:opacity 150ms ease-in-out;transition:opacity 150ms ease-in-out;opacity:1}.text-container{pointer-events:none;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;padding-top:0.5rem;padding-bottom:0.5rem;padding-left:0.75rem;padding-right:0.75rem;font-size:var(--calcite-font-size--2);line-height:1.375;word-wrap:break-word;word-break:break-word;overflow:hidden}.title{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-1)}.description{margin-top:0.125rem;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}.actions{margin:0px;display:-ms-flexbox;display:flex;-ms-flex:0 1 auto;flex:0 1 auto;-ms-flex-align:stretch;align-items:stretch;-ms-flex-pack:end;justify-content:flex-end}.actions--start~.label{-webkit-padding-start:0.25rem;padding-inline-start:0.25rem}';export{L as calcite_pick_list,W as calcite_pick_list_group,F as calcite_pick_list_item}
@@ -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{c as n}from"./p-52cc870b.js";import{h as t}from"./p-2e29554c.js";function e(n){return"checked"in n}const o=new WeakMap,i=new WeakSet;function r(t){const{el:o,value:r}=t,s=n(o,"form");if(!s||function(n,t){const e="calciteInternalFormComponentRegister";let o=!1;return n.addEventListener(e,(n=>{o=n.composedPath().some((n=>i.has(n))),n.stopPropagation()}),{once:!0}),t.dispatchEvent(new CustomEvent(e,{bubbles:!0,composed:!0})),o}(s,o))return;t.formEl=s,t.defaultValue=r,e(t)&&(t.defaultChecked=t.checked);const u=(t.onFormReset||c).bind(t);s.addEventListener("reset",u),i.add(o)}function c(){e(this)?this.checked=this.defaultChecked:this.value=this.defaultValue}function s(n){const{el:t,formEl:e}=n;if(!e)return;const r=o.get(t);e.removeEventListener("reset",r),o.delete(t),n.formEl=null,i.delete(t)}function u(n,t){n.defaultValue=t}function l(n,t,o){var i;const{defaultValue:r,disabled:c,name:s,required:u}=n;t.defaultValue=r,t.disabled=c,t.name=s,t.required=u,t.tabIndex=-1,e(n)?(t.defaultChecked=n.defaultChecked,t.value=n.checked?o||"on":"",c||n.checked||(t.disabled=!0)):t.value=o||"",null===(i=n.syncHiddenFormInput)||void 0===i||i.call(n,t)}const a=({component:n})=>(function(n){const{el:t,formEl:e,name:o,value:i}=n,{ownerDocument:r}=t,c=t.querySelectorAll('input[slot="hidden-form-input"]');if(!e||!o)return void c.forEach((n=>n.remove()));const s=Array.isArray(i)?i:[i],u=[],a=new Set;let f;c.forEach((t=>{const e=s.find((n=>n==t.value));null!=e?(a.add(e),l(n,t,e)):u.push(t)})),s.forEach((t=>{if(a.has(t))return;let e=u.pop();e||(e=r.createElement("input"),e.slot="hidden-form-input"),f||(f=r.createDocumentFragment()),f.append(e),l(n,e,t)})),f&&t.append(f),u.forEach((n=>n.remove()))}(n),t("slot",{name:"hidden-form-input"}));export{a as H,u as a,r as c,s as d}