@esri/calcite-components 1.0.0-next.688 → 1.0.0-next.689

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 (666) hide show
  1. package/dist/calcite/calcite.esm.js +2 -2
  2. package/dist/calcite/index.esm.js +1 -1
  3. package/dist/calcite/{p-8baf2174.js → p-054d38c2.js} +1 -1
  4. package/dist/calcite/{p-ba1b607b.entry.js → p-0670fece.entry.js} +2 -2
  5. package/dist/calcite/{p-53957a1e.js → p-0d1fee25.js} +1 -1
  6. package/dist/calcite/{p-05184915.entry.js → p-120c841f.entry.js} +2 -2
  7. package/dist/calcite/{p-bddc071d.entry.js → p-149ab82e.entry.js} +2 -2
  8. package/dist/calcite/p-1748e126.entry.js +6 -0
  9. package/dist/calcite/{p-fa950085.js → p-1889a50a.js} +1 -1
  10. package/dist/calcite/{p-30ef40e1.js → p-1bd32072.js} +2 -2
  11. package/dist/calcite/{p-ff3474f4.js → p-1cc9ea12.js} +1 -1
  12. package/dist/calcite/{p-7178dcd3.entry.js → p-24a1e4b0.entry.js} +2 -2
  13. package/dist/calcite/{p-ba4c3232.entry.js → p-262720cf.entry.js} +2 -2
  14. package/dist/calcite/{p-6e54b6f1.entry.js → p-2b379de2.entry.js} +2 -2
  15. package/dist/calcite/{p-1d439742.js → p-2b3acbc8.js} +1 -1
  16. package/dist/calcite/{p-b3f6da6b.entry.js → p-2beb10ba.entry.js} +2 -2
  17. package/dist/calcite/{p-e7becc39.js → p-2fbe2c72.js} +2 -2
  18. package/dist/calcite/{p-0e46f6c4.entry.js → p-300b0e74.entry.js} +2 -2
  19. package/dist/calcite/{p-ee7d445c.entry.js → p-3230f94d.entry.js} +2 -2
  20. package/dist/calcite/{p-29af00d6.entry.js → p-33710f7c.entry.js} +2 -2
  21. package/dist/calcite/{p-8c9948a1.entry.js → p-33daacd5.entry.js} +2 -2
  22. package/dist/calcite/{p-98d52cdb.entry.js → p-376ce480.entry.js} +2 -2
  23. package/dist/calcite/{p-a7c33fba.js → p-395e8a96.js} +2 -2
  24. package/dist/calcite/{p-0f3a7fea.entry.js → p-3d90cf7e.entry.js} +2 -2
  25. package/dist/calcite/{p-41a88ded.js → p-41cd4324.js} +1 -1
  26. package/dist/calcite/{p-e110ef0c.js → p-42d77ba5.js} +1 -1
  27. package/dist/calcite/{p-d23f9a48.js → p-456f9366.js} +2 -2
  28. package/dist/calcite/{p-e3a4daa5.js → p-486c4f42.js} +1 -1
  29. package/dist/calcite/{p-14a9ff2d.js → p-4da405bc.js} +1 -1
  30. package/dist/calcite/{p-4459ad18.entry.js → p-4e343b1b.entry.js} +2 -2
  31. package/dist/calcite/{p-7e7db5e0.entry.js → p-4e42d419.entry.js} +2 -2
  32. package/dist/calcite/{p-b717fef4.entry.js → p-4fc3e48c.entry.js} +2 -2
  33. package/dist/calcite/{p-7f8670b5.entry.js → p-55e053ad.entry.js} +2 -2
  34. package/dist/calcite/{p-03692eb4.entry.js → p-56e5d30a.entry.js} +2 -2
  35. package/dist/calcite/{p-6b28f89f.entry.js → p-575d134d.entry.js} +2 -2
  36. package/dist/calcite/{p-87812497.entry.js → p-578a8847.entry.js} +2 -2
  37. package/dist/calcite/{p-03b4a90c.entry.js → p-58375b6e.entry.js} +2 -2
  38. package/dist/calcite/{p-f54d786c.js → p-59a1b266.js} +2 -2
  39. package/dist/calcite/{p-3dd90e41.entry.js → p-59c0c139.entry.js} +2 -2
  40. package/dist/calcite/{p-90e490a8.entry.js → p-5a5ff62d.entry.js} +2 -2
  41. package/dist/calcite/{p-088a36fc.js → p-5a9ea46a.js} +1 -1
  42. package/dist/calcite/{p-9ddf235c.entry.js → p-5d02a7ae.entry.js} +2 -2
  43. package/dist/calcite/{p-6af4bd32.entry.js → p-61853608.entry.js} +2 -2
  44. package/dist/calcite/{p-c43e5fc1.entry.js → p-65fdd691.entry.js} +2 -2
  45. package/dist/calcite/{p-b8c6eef7.entry.js → p-6b4880f7.entry.js} +2 -2
  46. package/dist/calcite/{p-83f60e26.entry.js → p-6eda10b8.entry.js} +2 -2
  47. package/dist/calcite/{p-ce88d255.js → p-72115b6b.js} +1 -1
  48. package/dist/calcite/{p-50c38192.js → p-7262aafe.js} +1 -1
  49. package/dist/calcite/{p-6a3a7ac1.js → p-75387433.js} +2 -2
  50. package/dist/calcite/{p-b23ba5ee.entry.js → p-80286e62.entry.js} +2 -2
  51. package/dist/calcite/{p-7d764aa5.entry.js → p-81fcf4eb.entry.js} +2 -2
  52. package/dist/calcite/{p-170c416b.entry.js → p-859384c8.entry.js} +2 -2
  53. package/dist/calcite/{p-875c01df.js → p-85abf1cb.js} +2 -2
  54. package/dist/calcite/{p-ba346b28.js → p-87539809.js} +2 -2
  55. package/dist/calcite/{p-1beb4b96.js → p-87612240.js} +2 -2
  56. package/dist/calcite/{p-33707365.entry.js → p-891caed0.entry.js} +2 -2
  57. package/dist/calcite/{p-3f5784de.entry.js → p-8a1d5dee.entry.js} +2 -2
  58. package/dist/calcite/{p-36296a46.js → p-96d8a241.js} +1 -1
  59. package/dist/calcite/{p-8c22b4ba.entry.js → p-99c67887.entry.js} +2 -2
  60. package/dist/calcite/{p-25207c45.entry.js → p-9afce1f6.entry.js} +2 -2
  61. package/dist/calcite/{p-1bf6de03.js → p-9cf190dc.js} +2 -2
  62. package/dist/calcite/{p-7c004d7f.entry.js → p-a1ebe617.entry.js} +2 -2
  63. package/dist/calcite/{p-47708aa1.js → p-a385a70f.js} +2 -2
  64. package/dist/calcite/{p-d2539202.js → p-a66fde8e.js} +2 -2
  65. package/dist/calcite/{p-79f57550.js → p-ab7440a3.js} +2 -2
  66. package/dist/calcite/{p-0a44e1a0.entry.js → p-aba5f28e.entry.js} +2 -2
  67. package/dist/calcite/{p-57b1553f.entry.js → p-af322e22.entry.js} +2 -2
  68. package/dist/calcite/{p-614ab3a0.js → p-b0e47557.js} +1 -1
  69. package/dist/calcite/{p-a3202e3b.entry.js → p-b1239f27.entry.js} +2 -2
  70. package/dist/calcite/{p-3b297d55.entry.js → p-b2d38058.entry.js} +2 -2
  71. package/dist/calcite/{p-9c35ac3e.js → p-b368034c.js} +1 -1
  72. package/dist/calcite/{p-c5dae9bd.entry.js → p-b7bffea1.entry.js} +2 -2
  73. package/dist/calcite/p-ba060527.js +6 -0
  74. package/dist/calcite/{p-ce3753b3.entry.js → p-bd0e2ed1.entry.js} +2 -2
  75. package/dist/calcite/{p-fd49ba77.entry.js → p-bd6e6a6b.entry.js} +2 -2
  76. package/dist/calcite/{p-5f5ac1fb.entry.js → p-bdfcf4b8.entry.js} +2 -2
  77. package/dist/calcite/{p-425fdd87.entry.js → p-bf6880e2.entry.js} +2 -2
  78. package/dist/calcite/p-bf6884dd.js +6 -0
  79. package/dist/calcite/{p-082deb6e.entry.js → p-c4f6661a.entry.js} +2 -2
  80. package/dist/calcite/{p-bbe40e60.entry.js → p-c56a5e53.entry.js} +2 -2
  81. package/dist/calcite/{p-be647bb0.entry.js → p-c66cf075.entry.js} +2 -2
  82. package/dist/calcite/{p-96eea750.entry.js → p-ca5bbcf7.entry.js} +2 -2
  83. package/dist/calcite/{p-520e91fe.entry.js → p-cc13e1d7.entry.js} +2 -2
  84. package/dist/calcite/{p-ed75cb7c.entry.js → p-cd66ace2.entry.js} +2 -2
  85. package/dist/calcite/{p-fcf778e7.entry.js → p-d0f563e0.entry.js} +2 -2
  86. package/dist/calcite/{p-4e55e6b9.entry.js → p-d6f96d11.entry.js} +2 -2
  87. package/dist/calcite/{p-3c2cc334.js → p-d7120535.js} +2 -2
  88. package/dist/calcite/{p-39065362.entry.js → p-d76e7921.entry.js} +2 -2
  89. package/dist/calcite/{p-6bf81193.js → p-e0525143.js} +1 -1
  90. package/dist/calcite/{p-868cc943.entry.js → p-ec6f8310.entry.js} +2 -2
  91. package/dist/calcite/{p-7952623e.entry.js → p-ed3acefb.entry.js} +2 -2
  92. package/dist/calcite/{p-c58baaf1.entry.js → p-f4d5ebcc.entry.js} +2 -2
  93. package/dist/calcite/{p-885d36fc.entry.js → p-f705d519.entry.js} +2 -2
  94. package/dist/calcite/{p-93c297c2.entry.js → p-faede651.entry.js} +2 -2
  95. package/dist/cjs/{ExpandToggle-2f1975a8.js → ExpandToggle-f4786b5e.js} +5 -5
  96. package/dist/cjs/{Heading-ab835192.js → Heading-c29b23df.js} +2 -2
  97. package/dist/cjs/{app-globals-1e133316.js → app-globals-125764d1.js} +2 -2
  98. package/dist/cjs/{array-6a64003f.js → array-5f92afe4.js} +1 -1
  99. package/dist/cjs/calcite-accordion_2.cjs.entry.js +7 -7
  100. package/dist/cjs/calcite-action-bar.cjs.entry.js +15 -15
  101. package/dist/cjs/calcite-action-group.cjs.entry.js +12 -12
  102. package/dist/cjs/calcite-action-menu.cjs.entry.js +9 -9
  103. package/dist/cjs/calcite-action-pad.cjs.entry.js +14 -14
  104. package/dist/cjs/calcite-action.cjs.entry.js +11 -11
  105. package/dist/cjs/calcite-alert.cjs.entry.js +12 -12
  106. package/dist/cjs/calcite-avatar.cjs.entry.js +6 -6
  107. package/dist/cjs/calcite-block_2.cjs.entry.js +12 -12
  108. package/dist/cjs/calcite-button.cjs.entry.js +13 -13
  109. package/dist/cjs/calcite-card.cjs.entry.js +10 -10
  110. package/dist/cjs/calcite-checkbox.cjs.entry.js +10 -10
  111. package/dist/cjs/calcite-chip.cjs.entry.js +11 -11
  112. package/dist/cjs/calcite-color-picker_3.cjs.entry.js +14 -14
  113. package/dist/cjs/calcite-combobox_3.cjs.entry.js +18 -18
  114. package/dist/cjs/calcite-date-picker_4.cjs.entry.js +12 -12
  115. package/dist/cjs/calcite-dropdown_3.cjs.entry.js +12 -12
  116. package/dist/cjs/calcite-fab.cjs.entry.js +7 -7
  117. package/dist/cjs/calcite-filter.cjs.entry.js +13 -13
  118. package/dist/cjs/calcite-flow-item.cjs.entry.js +12 -12
  119. package/dist/cjs/calcite-flow.cjs.entry.js +3 -3
  120. package/dist/cjs/calcite-graph_2.cjs.entry.js +13 -13
  121. package/dist/cjs/calcite-handle.cjs.entry.js +6 -6
  122. package/dist/cjs/calcite-icon.cjs.entry.js +6 -6
  123. package/dist/cjs/calcite-inline-editable.cjs.entry.js +12 -12
  124. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +16 -16
  125. package/dist/cjs/calcite-input-message.cjs.entry.js +5 -5
  126. package/dist/cjs/calcite-input-number.cjs.entry.js +14 -14
  127. package/dist/cjs/calcite-input-text.cjs.entry.js +13 -13
  128. package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +13 -13
  129. package/dist/cjs/calcite-input.cjs.entry.js +14 -14
  130. package/dist/cjs/calcite-label.cjs.entry.js +6 -6
  131. package/dist/cjs/calcite-link.cjs.entry.js +7 -7
  132. package/dist/cjs/calcite-list_3.cjs.entry.js +9 -9
  133. package/dist/cjs/calcite-loader.cjs.entry.js +3 -3
  134. package/dist/cjs/calcite-modal.cjs.entry.js +13 -13
  135. package/dist/cjs/calcite-notice.cjs.entry.js +12 -12
  136. package/dist/cjs/calcite-option_3.cjs.entry.js +10 -10
  137. package/dist/cjs/calcite-pagination.cjs.entry.js +9 -9
  138. package/dist/cjs/calcite-panel.cjs.entry.js +14 -14
  139. package/dist/cjs/calcite-pick-list_3.cjs.entry.js +16 -16
  140. package/dist/cjs/calcite-popover.cjs.entry.js +15 -15
  141. package/dist/cjs/calcite-progress.cjs.entry.js +2 -2
  142. package/dist/cjs/calcite-radio-button-group.cjs.entry.js +3 -3
  143. package/dist/cjs/calcite-radio-button.cjs.entry.js +10 -10
  144. package/dist/cjs/calcite-radio-group_2.cjs.entry.js +9 -9
  145. package/dist/cjs/calcite-rating.cjs.entry.js +168 -67
  146. package/dist/cjs/calcite-scrim.cjs.entry.js +9 -9
  147. package/dist/cjs/calcite-shell_3.cjs.entry.js +8 -8
  148. package/dist/cjs/calcite-sortable-list.cjs.entry.js +5 -5
  149. package/dist/cjs/calcite-split-button.cjs.entry.js +3 -3
  150. package/dist/cjs/calcite-stepper_2.cjs.entry.js +10 -10
  151. package/dist/cjs/calcite-switch.cjs.entry.js +10 -10
  152. package/dist/cjs/calcite-tab_4.cjs.entry.js +7 -7
  153. package/dist/cjs/calcite-tile-select_2.cjs.entry.js +5 -5
  154. package/dist/cjs/calcite-tile.cjs.entry.js +8 -8
  155. package/dist/cjs/calcite-tip_3.cjs.entry.js +8 -8
  156. package/dist/cjs/calcite-tooltip.cjs.entry.js +8 -8
  157. package/dist/cjs/calcite-tree_2.cjs.entry.js +8 -8
  158. package/dist/cjs/calcite-value-list_2.cjs.entry.js +16 -16
  159. package/dist/cjs/calcite.cjs.js +5 -5
  160. package/dist/cjs/{conditionalSlot-a53d134c.js → conditionalSlot-065a02b4.js} +3 -3
  161. package/dist/cjs/{debounce-693cccee.js → debounce-1ed64f70.js} +1 -1
  162. package/dist/cjs/{dom-2db5c855.js → dom-6fbe7ece.js} +3 -3
  163. package/dist/cjs/{filter-28153bb2.js → filter-f0fb1c4b.js} +2 -2
  164. package/dist/cjs/{floating-ui-e70ae22d.js → floating-ui-4f9b605c.js} +4 -4
  165. package/dist/cjs/{focusTrapComponent-c906f778.js → focusTrapComponent-21e7afab.js} +2 -2
  166. package/dist/cjs/{form-132d25cc.js → form-92343eec.js} +3 -3
  167. package/dist/cjs/{guid-b1c57a9d.js → guid-504b7f27.js} +1 -1
  168. package/dist/cjs/{index-ca650359.js → index-d9b80b7d.js} +1 -1
  169. package/dist/cjs/index.cjs.js +1 -1
  170. package/dist/cjs/{interactive-63d6086f.js → interactive-ddb549b3.js} +1 -1
  171. package/dist/cjs/{key-daca21ec.js → key-b4976030.js} +1 -1
  172. package/dist/cjs/{label-53aedc4b.js → label-2dd814a6.js} +2 -2
  173. package/dist/cjs/{loadable-f17eb8de.js → loadable-a37932e6.js} +1 -1
  174. package/dist/cjs/loader.cjs.js +5 -5
  175. package/dist/cjs/{locale-635fc90b.js → locale-07381711.js} +4 -4
  176. package/dist/cjs/{math-06685661.js → math-1609a588.js} +1 -1
  177. package/dist/cjs/{nonChromiumPlatformUtils-9af29c60.js → nonChromiumPlatformUtils-93dd1ea8.js} +6 -6
  178. package/dist/cjs/{observers-1d66d5a8.js → observers-fbdf9162.js} +1 -1
  179. package/dist/cjs/{openCloseComponent-9efefc2b.js → openCloseComponent-fa52ef36.js} +2 -2
  180. package/dist/cjs/{resources-36d2967b.js → resources-20c56745.js} +1 -1
  181. package/dist/cjs/{resources-f90ea3f5.js → resources-398c5b5c.js} +1 -1
  182. package/dist/cjs/{resources-b73d9c4a.js → resources-61b8733c.js} +1 -1
  183. package/dist/cjs/{resources-82afd1a5.js → resources-91f13649.js} +5 -5
  184. package/dist/cjs/{resources-8087d6d8.js → resources-b4d34bc5.js} +1 -1
  185. package/dist/cjs/{resources-e5ef5941.js → resources-d123496e.js} +1 -1
  186. package/dist/cjs/{sortable.esm-2928f84b.js → sortable.esm-5e092384.js} +1 -1
  187. package/dist/cjs/{t9n-04ab4138.js → t9n-29be16fd.js} +3 -3
  188. package/dist/cjs/{utils-23374f68.js → utils-6659b4fc.js} +3 -3
  189. package/dist/cjs/{utils-f6c8c735.js → utils-d45a7093.js} +1 -1
  190. package/dist/collection/components/accordion/accordion.js +8 -5
  191. package/dist/collection/components/accordion-item/accordion-item.js +1 -1
  192. package/dist/collection/components/accordion-item/resources.js +1 -1
  193. package/dist/collection/components/action/action.js +1 -1
  194. package/dist/collection/components/action/resources.js +1 -1
  195. package/dist/collection/components/action-bar/action-bar.js +1 -1
  196. package/dist/collection/components/action-bar/resources.js +1 -1
  197. package/dist/collection/components/action-bar/utils.js +1 -1
  198. package/dist/collection/components/action-group/action-group.js +1 -1
  199. package/dist/collection/components/action-group/resources.js +1 -1
  200. package/dist/collection/components/action-menu/action-menu.js +1 -1
  201. package/dist/collection/components/action-menu/resources.js +1 -1
  202. package/dist/collection/components/action-pad/action-pad.js +1 -1
  203. package/dist/collection/components/action-pad/resources.js +1 -1
  204. package/dist/collection/components/alert/alert.js +1 -1
  205. package/dist/collection/components/alert/resources.js +1 -1
  206. package/dist/collection/components/avatar/avatar.js +1 -1
  207. package/dist/collection/components/avatar/utils.js +1 -1
  208. package/dist/collection/components/block/block.js +1 -1
  209. package/dist/collection/components/block/resources.js +1 -1
  210. package/dist/collection/components/block-section/block-section.js +1 -1
  211. package/dist/collection/components/block-section/resources.js +1 -1
  212. package/dist/collection/components/button/button.js +1 -1
  213. package/dist/collection/components/button/resources.js +1 -1
  214. package/dist/collection/components/card/card.js +1 -1
  215. package/dist/collection/components/card/resources.js +1 -1
  216. package/dist/collection/components/checkbox/checkbox.js +1 -1
  217. package/dist/collection/components/chip/chip.js +1 -1
  218. package/dist/collection/components/chip/resources.js +1 -1
  219. package/dist/collection/components/color-picker/color-picker.js +9 -6
  220. package/dist/collection/components/color-picker/resources.js +1 -1
  221. package/dist/collection/components/color-picker/utils.js +1 -1
  222. package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.js +1 -1
  223. package/dist/collection/components/color-picker-hex-input/resources.js +1 -1
  224. package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +1 -1
  225. package/dist/collection/components/color-picker-swatch/resources.js +1 -1
  226. package/dist/collection/components/combobox/combobox.js +1 -1
  227. package/dist/collection/components/combobox/resources.js +1 -1
  228. package/dist/collection/components/combobox/utils.js +1 -1
  229. package/dist/collection/components/combobox-item/combobox-item.js +1 -1
  230. package/dist/collection/components/combobox-item/resources.js +1 -1
  231. package/dist/collection/components/combobox-item-group/combobox-item-group.js +1 -1
  232. package/dist/collection/components/combobox-item-group/resources.js +1 -1
  233. package/dist/collection/components/date-picker/date-picker.js +1 -1
  234. package/dist/collection/components/date-picker/resources.js +1 -1
  235. package/dist/collection/components/date-picker/utils.js +1 -1
  236. package/dist/collection/components/date-picker-day/date-picker-day.js +1 -1
  237. package/dist/collection/components/date-picker-month/date-picker-month.js +1 -1
  238. package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +1 -1
  239. package/dist/collection/components/date-picker-month-header/resources.js +1 -1
  240. package/dist/collection/components/dropdown/dropdown.js +1 -1
  241. package/dist/collection/components/dropdown/resources.js +1 -1
  242. package/dist/collection/components/dropdown-group/dropdown-group.js +1 -1
  243. package/dist/collection/components/dropdown-group/resources.js +1 -1
  244. package/dist/collection/components/dropdown-item/dropdown-item.js +1 -1
  245. package/dist/collection/components/dropdown-item/resources.js +1 -1
  246. package/dist/collection/components/fab/fab.js +1 -1
  247. package/dist/collection/components/fab/resources.js +1 -1
  248. package/dist/collection/components/filter/filter.js +1 -1
  249. package/dist/collection/components/filter/resources.js +1 -1
  250. package/dist/collection/components/flow/flow.js +1 -1
  251. package/dist/collection/components/flow/resources.js +1 -1
  252. package/dist/collection/components/flow-item/flow-item.js +1 -1
  253. package/dist/collection/components/flow-item/resources.js +1 -1
  254. package/dist/collection/components/functional/ExpandToggle.js +1 -1
  255. package/dist/collection/components/functional/Heading.js +1 -1
  256. package/dist/collection/components/graph/graph.js +1 -1
  257. package/dist/collection/components/graph/util.js +1 -1
  258. package/dist/collection/components/handle/handle.js +1 -1
  259. package/dist/collection/components/handle/resources.js +1 -1
  260. package/dist/collection/components/icon/icon.js +1 -1
  261. package/dist/collection/components/icon/resources.js +1 -1
  262. package/dist/collection/components/icon/utils.js +1 -1
  263. package/dist/collection/components/inline-editable/inline-editable.js +1 -1
  264. package/dist/collection/components/inline-editable/resources.js +1 -1
  265. package/dist/collection/components/input/input.js +1 -1
  266. package/dist/collection/components/input/resources.js +1 -1
  267. package/dist/collection/components/input-date-picker/input-date-picker.js +1 -1
  268. package/dist/collection/components/input-date-picker/resources.js +1 -1
  269. package/dist/collection/components/input-message/input-message.js +1 -1
  270. package/dist/collection/components/input-message/interfaces.js +1 -1
  271. package/dist/collection/components/input-number/input-number.js +1 -1
  272. package/dist/collection/components/input-number/resources.js +1 -1
  273. package/dist/collection/components/input-text/input-text.js +1 -1
  274. package/dist/collection/components/input-text/resources.js +1 -1
  275. package/dist/collection/components/input-time-picker/input-time-picker.js +1 -1
  276. package/dist/collection/components/label/label.js +1 -1
  277. package/dist/collection/components/label/resources.js +1 -1
  278. package/dist/collection/components/link/link.js +1 -1
  279. package/dist/collection/components/list/list.js +1 -1
  280. package/dist/collection/components/list/resources.js +1 -1
  281. package/dist/collection/components/list-item/list-item.js +1 -1
  282. package/dist/collection/components/list-item/resources.js +1 -1
  283. package/dist/collection/components/list-item/utils.js +1 -1
  284. package/dist/collection/components/list-item-group/list-item-group.js +1 -1
  285. package/dist/collection/components/list-item-group/resources.js +1 -1
  286. package/dist/collection/components/loader/loader.js +1 -1
  287. package/dist/collection/components/modal/modal.js +1 -1
  288. package/dist/collection/components/modal/resources.js +1 -1
  289. package/dist/collection/components/notice/notice.js +1 -1
  290. package/dist/collection/components/notice/resources.js +1 -1
  291. package/dist/collection/components/option/option.js +1 -1
  292. package/dist/collection/components/option-group/option-group.js +1 -1
  293. package/dist/collection/components/pagination/pagination.js +1 -1
  294. package/dist/collection/components/pagination/resources.js +1 -1
  295. package/dist/collection/components/panel/panel.js +1 -1
  296. package/dist/collection/components/panel/resources.js +1 -1
  297. package/dist/collection/components/pick-list/pick-list.js +1 -1
  298. package/dist/collection/components/pick-list/resources.js +1 -1
  299. package/dist/collection/components/pick-list/shared-list-logic.js +1 -1
  300. package/dist/collection/components/pick-list/shared-list-render.js +1 -1
  301. package/dist/collection/components/pick-list-group/pick-list-group.js +1 -1
  302. package/dist/collection/components/pick-list-group/resources.js +1 -1
  303. package/dist/collection/components/pick-list-item/pick-list-item.js +1 -1
  304. package/dist/collection/components/pick-list-item/resources.js +1 -1
  305. package/dist/collection/components/popover/PopoverManager.js +1 -1
  306. package/dist/collection/components/popover/popover.js +1 -1
  307. package/dist/collection/components/popover/resources.js +1 -1
  308. package/dist/collection/components/progress/progress.js +1 -1
  309. package/dist/collection/components/radio-button/radio-button.js +1 -1
  310. package/dist/collection/components/radio-button/resources.js +1 -1
  311. package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
  312. package/dist/collection/components/radio-group/radio-group.js +8 -5
  313. package/dist/collection/components/radio-group-item/radio-group-item.js +1 -1
  314. package/dist/collection/components/radio-group-item/resources.js +1 -1
  315. package/dist/collection/components/rating/function/star.js +11 -0
  316. package/dist/collection/components/{radio-group → rating}/interfaces.js +0 -0
  317. package/dist/collection/components/rating/rating.css +13 -14
  318. package/dist/collection/components/rating/rating.js +259 -169
  319. package/dist/collection/components/resources.js +1 -1
  320. package/dist/collection/components/scrim/resources.js +1 -1
  321. package/dist/collection/components/scrim/scrim.js +1 -1
  322. package/dist/collection/components/select/resources.js +1 -1
  323. package/dist/collection/components/select/select.js +1 -1
  324. package/dist/collection/components/shell/resources.js +1 -1
  325. package/dist/collection/components/shell/shell.js +1 -1
  326. package/dist/collection/components/shell-center-row/resources.js +1 -1
  327. package/dist/collection/components/shell-center-row/shell-center-row.js +1 -1
  328. package/dist/collection/components/shell-panel/resources.js +1 -1
  329. package/dist/collection/components/shell-panel/shell-panel.js +1 -1
  330. package/dist/collection/components/slider/resources.js +1 -1
  331. package/dist/collection/components/slider/slider.js +1 -1
  332. package/dist/collection/components/sortable-list/resources.js +1 -1
  333. package/dist/collection/components/sortable-list/sortable-list.js +1 -1
  334. package/dist/collection/components/split-button/resources.js +1 -1
  335. package/dist/collection/components/split-button/split-button.js +1 -1
  336. package/dist/collection/components/stepper/stepper.js +1 -1
  337. package/dist/collection/components/stepper-item/stepper-item.js +1 -1
  338. package/dist/collection/components/switch/switch.js +2 -2
  339. package/dist/collection/components/tab/tab.js +1 -1
  340. package/dist/collection/components/tab-nav/tab-nav.js +1 -1
  341. package/dist/collection/components/tab-title/tab-title.js +1 -1
  342. package/dist/collection/components/tabs/resources.js +1 -1
  343. package/dist/collection/components/tabs/tabs.js +1 -1
  344. package/dist/collection/components/tile/resources.js +1 -1
  345. package/dist/collection/components/tile/tile.js +1 -1
  346. package/dist/collection/components/tile-select/resources.js +1 -1
  347. package/dist/collection/components/tile-select/tile-select.js +1 -1
  348. package/dist/collection/components/tile-select-group/tile-select-group.js +1 -1
  349. package/dist/collection/components/time-picker/resources.js +1 -1
  350. package/dist/collection/components/time-picker/time-picker.js +1 -1
  351. package/dist/collection/components/tip/resources.js +1 -1
  352. package/dist/collection/components/tip/tip.js +1 -1
  353. package/dist/collection/components/tip-group/tip-group.js +1 -1
  354. package/dist/collection/components/tip-manager/resources.js +1 -1
  355. package/dist/collection/components/tip-manager/tip-manager.js +1 -1
  356. package/dist/collection/components/tooltip/TooltipManager.js +1 -1
  357. package/dist/collection/components/tooltip/resources.js +1 -1
  358. package/dist/collection/components/tooltip/tooltip.js +1 -1
  359. package/dist/collection/components/tree/tree.js +1 -1
  360. package/dist/collection/components/tree/utils.js +1 -1
  361. package/dist/collection/components/tree-item/resources.js +1 -1
  362. package/dist/collection/components/tree-item/tree-item.js +1 -1
  363. package/dist/collection/components/value-list/resources.js +1 -1
  364. package/dist/collection/components/value-list/utils.js +1 -1
  365. package/dist/collection/components/value-list/value-list.js +1 -1
  366. package/dist/collection/components/value-list-item/resources.js +1 -1
  367. package/dist/collection/components/value-list-item/value-list-item.js +1 -1
  368. package/dist/collection/utils/array.js +1 -1
  369. package/dist/collection/utils/conditionalSlot.js +1 -1
  370. package/dist/collection/utils/config.js +1 -1
  371. package/dist/collection/utils/date.js +1 -1
  372. package/dist/collection/utils/dom.js +1 -1
  373. package/dist/collection/utils/filter.js +1 -1
  374. package/dist/collection/utils/floating-ui/nonChromiumPlatformUtils.js +1 -1
  375. package/dist/collection/utils/floating-ui.js +1 -1
  376. package/dist/collection/utils/focusTrapComponent.js +1 -1
  377. package/dist/collection/utils/form.js +1 -1
  378. package/dist/collection/utils/globalAttributes.js +1 -1
  379. package/dist/collection/utils/globalScript.js +1 -1
  380. package/dist/collection/utils/guid.js +1 -1
  381. package/dist/collection/utils/interactive.js +1 -1
  382. package/dist/collection/utils/key.js +1 -1
  383. package/dist/collection/utils/label.js +1 -1
  384. package/dist/collection/utils/loadable.js +1 -1
  385. package/dist/collection/utils/locale.js +1 -1
  386. package/dist/collection/utils/math.js +1 -1
  387. package/dist/collection/utils/number.js +1 -1
  388. package/dist/collection/utils/observers.js +1 -1
  389. package/dist/collection/utils/openCloseComponent.js +1 -1
  390. package/dist/collection/utils/resources.js +1 -1
  391. package/dist/collection/utils/t9n.js +1 -1
  392. package/dist/collection/utils/theme.js +1 -1
  393. package/dist/collection/utils/time.js +1 -1
  394. package/dist/components/ExpandToggle.js +1 -1
  395. package/dist/components/Heading.js +1 -1
  396. package/dist/components/action-group.js +1 -1
  397. package/dist/components/action-menu.js +1 -1
  398. package/dist/components/action.js +1 -1
  399. package/dist/components/array.js +1 -1
  400. package/dist/components/button.js +1 -1
  401. package/dist/components/calcite-accordion-item.js +1 -1
  402. package/dist/components/calcite-accordion.js +1 -1
  403. package/dist/components/calcite-action-bar.js +1 -1
  404. package/dist/components/calcite-action-group.js +1 -1
  405. package/dist/components/calcite-action-menu.js +1 -1
  406. package/dist/components/calcite-action-pad.js +1 -1
  407. package/dist/components/calcite-action.js +1 -1
  408. package/dist/components/calcite-alert.js +1 -1
  409. package/dist/components/calcite-avatar.js +1 -1
  410. package/dist/components/calcite-block-section.js +1 -1
  411. package/dist/components/calcite-block.js +1 -1
  412. package/dist/components/calcite-button.js +1 -1
  413. package/dist/components/calcite-card.js +1 -1
  414. package/dist/components/calcite-checkbox.js +1 -1
  415. package/dist/components/calcite-chip.js +1 -1
  416. package/dist/components/calcite-color-picker-hex-input.js +1 -1
  417. package/dist/components/calcite-color-picker-swatch.js +1 -1
  418. package/dist/components/calcite-color-picker.js +1 -1
  419. package/dist/components/calcite-combobox-item-group.js +1 -1
  420. package/dist/components/calcite-combobox-item.js +1 -1
  421. package/dist/components/calcite-combobox.js +1 -1
  422. package/dist/components/calcite-date-picker-day.js +1 -1
  423. package/dist/components/calcite-date-picker-month-header.js +1 -1
  424. package/dist/components/calcite-date-picker-month.js +1 -1
  425. package/dist/components/calcite-date-picker.js +1 -1
  426. package/dist/components/calcite-dropdown-group.js +1 -1
  427. package/dist/components/calcite-dropdown-item.js +1 -1
  428. package/dist/components/calcite-dropdown.js +1 -1
  429. package/dist/components/calcite-fab.js +1 -1
  430. package/dist/components/calcite-filter.js +1 -1
  431. package/dist/components/calcite-flow-item.js +1 -1
  432. package/dist/components/calcite-flow.js +1 -1
  433. package/dist/components/calcite-graph.js +1 -1
  434. package/dist/components/calcite-handle.js +1 -1
  435. package/dist/components/calcite-icon.js +1 -1
  436. package/dist/components/calcite-inline-editable.js +1 -1
  437. package/dist/components/calcite-input-date-picker.js +1 -1
  438. package/dist/components/calcite-input-message.js +1 -1
  439. package/dist/components/calcite-input-number.js +1 -1
  440. package/dist/components/calcite-input-text.js +1 -1
  441. package/dist/components/calcite-input-time-picker.js +1 -1
  442. package/dist/components/calcite-input.js +1 -1
  443. package/dist/components/calcite-label.js +1 -1
  444. package/dist/components/calcite-link.js +1 -1
  445. package/dist/components/calcite-list-item-group.js +1 -1
  446. package/dist/components/calcite-list-item.js +1 -1
  447. package/dist/components/calcite-list.js +1 -1
  448. package/dist/components/calcite-loader.js +1 -1
  449. package/dist/components/calcite-modal.js +1 -1
  450. package/dist/components/calcite-notice.js +1 -1
  451. package/dist/components/calcite-option-group.js +1 -1
  452. package/dist/components/calcite-option.js +1 -1
  453. package/dist/components/calcite-pagination.js +1 -1
  454. package/dist/components/calcite-panel.js +1 -1
  455. package/dist/components/calcite-pick-list-group.js +1 -1
  456. package/dist/components/calcite-pick-list-item.js +1 -1
  457. package/dist/components/calcite-pick-list.js +1 -1
  458. package/dist/components/calcite-popover.js +1 -1
  459. package/dist/components/calcite-progress.js +1 -1
  460. package/dist/components/calcite-radio-button-group.js +1 -1
  461. package/dist/components/calcite-radio-button.js +1 -1
  462. package/dist/components/calcite-radio-group-item.js +1 -1
  463. package/dist/components/calcite-radio-group.js +1 -1
  464. package/dist/components/calcite-rating.js +166 -66
  465. package/dist/components/calcite-scrim.js +1 -1
  466. package/dist/components/calcite-select.js +1 -1
  467. package/dist/components/calcite-shell-center-row.js +1 -1
  468. package/dist/components/calcite-shell-panel.js +1 -1
  469. package/dist/components/calcite-shell.js +1 -1
  470. package/dist/components/calcite-slider.js +1 -1
  471. package/dist/components/calcite-sortable-list.js +1 -1
  472. package/dist/components/calcite-split-button.js +1 -1
  473. package/dist/components/calcite-stepper-item.js +1 -1
  474. package/dist/components/calcite-stepper.js +1 -1
  475. package/dist/components/calcite-switch.js +1 -1
  476. package/dist/components/calcite-tab-nav.js +1 -1
  477. package/dist/components/calcite-tab-title.js +1 -1
  478. package/dist/components/calcite-tab.js +1 -1
  479. package/dist/components/calcite-tabs.js +1 -1
  480. package/dist/components/calcite-tile-select-group.js +1 -1
  481. package/dist/components/calcite-tile-select.js +1 -1
  482. package/dist/components/calcite-tile.js +1 -1
  483. package/dist/components/calcite-time-picker.js +1 -1
  484. package/dist/components/calcite-tip-group.js +1 -1
  485. package/dist/components/calcite-tip-manager.js +1 -1
  486. package/dist/components/calcite-tip.js +1 -1
  487. package/dist/components/calcite-tooltip.js +1 -1
  488. package/dist/components/calcite-tree-item.js +1 -1
  489. package/dist/components/calcite-tree.js +1 -1
  490. package/dist/components/calcite-value-list-item.js +1 -1
  491. package/dist/components/calcite-value-list.js +1 -1
  492. package/dist/components/checkbox.js +1 -1
  493. package/dist/components/chip.js +1 -1
  494. package/dist/components/color-picker-hex-input.js +1 -1
  495. package/dist/components/color-picker-swatch.js +1 -1
  496. package/dist/components/conditionalSlot.js +1 -1
  497. package/dist/components/date-picker-day.js +1 -1
  498. package/dist/components/date-picker-month-header.js +1 -1
  499. package/dist/components/date-picker-month.js +1 -1
  500. package/dist/components/date-picker.js +1 -1
  501. package/dist/components/date.js +1 -1
  502. package/dist/components/debounce.js +1 -1
  503. package/dist/components/dom.js +1 -1
  504. package/dist/components/dropdown.js +1 -1
  505. package/dist/components/filter.js +1 -1
  506. package/dist/components/filter2.js +1 -1
  507. package/dist/components/floating-ui.js +1 -1
  508. package/dist/components/focusTrapComponent.js +1 -1
  509. package/dist/components/form.js +1 -1
  510. package/dist/components/graph.js +1 -1
  511. package/dist/components/guid.js +1 -1
  512. package/dist/components/handle.js +1 -1
  513. package/dist/components/icon.js +1 -1
  514. package/dist/components/index.js +1 -1
  515. package/dist/components/input.js +1 -1
  516. package/dist/components/interactive.js +1 -1
  517. package/dist/components/key.js +1 -1
  518. package/dist/components/label.js +1 -1
  519. package/dist/components/label2.js +1 -1
  520. package/dist/components/link.js +1 -1
  521. package/dist/components/loadable.js +1 -1
  522. package/dist/components/loader.js +1 -1
  523. package/dist/components/locale.js +1 -1
  524. package/dist/components/math.js +1 -1
  525. package/dist/components/nonChromiumPlatformUtils.js +1 -1
  526. package/dist/components/observers.js +1 -1
  527. package/dist/components/openCloseComponent.js +1 -1
  528. package/dist/components/panel.js +1 -1
  529. package/dist/components/pick-list-item.js +1 -1
  530. package/dist/components/popover.js +1 -1
  531. package/dist/components/progress.js +1 -1
  532. package/dist/components/resources.js +1 -1
  533. package/dist/components/resources2.js +1 -1
  534. package/dist/components/resources3.js +1 -1
  535. package/dist/components/resources4.js +1 -1
  536. package/dist/components/scrim.js +1 -1
  537. package/dist/components/shared-list-render.js +1 -1
  538. package/dist/components/sortable.esm.js +1 -1
  539. package/dist/components/switch.js +1 -1
  540. package/dist/components/t9n.js +1 -1
  541. package/dist/components/tab-nav.js +1 -1
  542. package/dist/components/tab-title.js +1 -1
  543. package/dist/components/tab.js +1 -1
  544. package/dist/components/tabs.js +1 -1
  545. package/dist/components/tile.js +1 -1
  546. package/dist/components/time-picker.js +1 -1
  547. package/dist/components/tooltip.js +1 -1
  548. package/dist/components/utils.js +1 -1
  549. package/dist/components/utils2.js +1 -1
  550. package/dist/esm/{ExpandToggle-15065447.js → ExpandToggle-7bd95431.js} +5 -5
  551. package/dist/esm/{Heading-9b5fbace.js → Heading-494a55dd.js} +2 -2
  552. package/dist/esm/{app-globals-04237413.js → app-globals-acca29b6.js} +2 -2
  553. package/dist/esm/{array-5620c9b1.js → array-e666de36.js} +1 -1
  554. package/dist/esm/calcite-accordion_2.entry.js +7 -7
  555. package/dist/esm/calcite-action-bar.entry.js +15 -15
  556. package/dist/esm/calcite-action-group.entry.js +12 -12
  557. package/dist/esm/calcite-action-menu.entry.js +9 -9
  558. package/dist/esm/calcite-action-pad.entry.js +14 -14
  559. package/dist/esm/calcite-action.entry.js +11 -11
  560. package/dist/esm/calcite-alert.entry.js +12 -12
  561. package/dist/esm/calcite-avatar.entry.js +6 -6
  562. package/dist/esm/calcite-block_2.entry.js +12 -12
  563. package/dist/esm/calcite-button.entry.js +13 -13
  564. package/dist/esm/calcite-card.entry.js +10 -10
  565. package/dist/esm/calcite-checkbox.entry.js +10 -10
  566. package/dist/esm/calcite-chip.entry.js +11 -11
  567. package/dist/esm/calcite-color-picker_3.entry.js +14 -14
  568. package/dist/esm/calcite-combobox_3.entry.js +18 -18
  569. package/dist/esm/calcite-date-picker_4.entry.js +12 -12
  570. package/dist/esm/calcite-dropdown_3.entry.js +12 -12
  571. package/dist/esm/calcite-fab.entry.js +7 -7
  572. package/dist/esm/calcite-filter.entry.js +13 -13
  573. package/dist/esm/calcite-flow-item.entry.js +12 -12
  574. package/dist/esm/calcite-flow.entry.js +3 -3
  575. package/dist/esm/calcite-graph_2.entry.js +13 -13
  576. package/dist/esm/calcite-handle.entry.js +6 -6
  577. package/dist/esm/calcite-icon.entry.js +6 -6
  578. package/dist/esm/calcite-inline-editable.entry.js +12 -12
  579. package/dist/esm/calcite-input-date-picker.entry.js +16 -16
  580. package/dist/esm/calcite-input-message.entry.js +5 -5
  581. package/dist/esm/calcite-input-number.entry.js +14 -14
  582. package/dist/esm/calcite-input-text.entry.js +13 -13
  583. package/dist/esm/calcite-input-time-picker_2.entry.js +13 -13
  584. package/dist/esm/calcite-input.entry.js +14 -14
  585. package/dist/esm/calcite-label.entry.js +6 -6
  586. package/dist/esm/calcite-link.entry.js +7 -7
  587. package/dist/esm/calcite-list_3.entry.js +9 -9
  588. package/dist/esm/calcite-loader.entry.js +3 -3
  589. package/dist/esm/calcite-modal.entry.js +13 -13
  590. package/dist/esm/calcite-notice.entry.js +12 -12
  591. package/dist/esm/calcite-option_3.entry.js +10 -10
  592. package/dist/esm/calcite-pagination.entry.js +9 -9
  593. package/dist/esm/calcite-panel.entry.js +14 -14
  594. package/dist/esm/calcite-pick-list_3.entry.js +16 -16
  595. package/dist/esm/calcite-popover.entry.js +15 -15
  596. package/dist/esm/calcite-progress.entry.js +2 -2
  597. package/dist/esm/calcite-radio-button-group.entry.js +3 -3
  598. package/dist/esm/calcite-radio-button.entry.js +10 -10
  599. package/dist/esm/calcite-radio-group_2.entry.js +9 -9
  600. package/dist/esm/calcite-rating.entry.js +168 -67
  601. package/dist/esm/calcite-scrim.entry.js +9 -9
  602. package/dist/esm/calcite-shell_3.entry.js +8 -8
  603. package/dist/esm/calcite-sortable-list.entry.js +5 -5
  604. package/dist/esm/calcite-split-button.entry.js +3 -3
  605. package/dist/esm/calcite-stepper_2.entry.js +10 -10
  606. package/dist/esm/calcite-switch.entry.js +10 -10
  607. package/dist/esm/calcite-tab_4.entry.js +7 -7
  608. package/dist/esm/calcite-tile-select_2.entry.js +5 -5
  609. package/dist/esm/calcite-tile.entry.js +8 -8
  610. package/dist/esm/calcite-tip_3.entry.js +8 -8
  611. package/dist/esm/calcite-tooltip.entry.js +8 -8
  612. package/dist/esm/calcite-tree_2.entry.js +8 -8
  613. package/dist/esm/calcite-value-list_2.entry.js +16 -16
  614. package/dist/esm/calcite.js +5 -5
  615. package/dist/esm/{conditionalSlot-6b3ef2f2.js → conditionalSlot-b8bdd052.js} +3 -3
  616. package/dist/esm/{debounce-b264a4e1.js → debounce-98073f50.js} +1 -1
  617. package/dist/esm/{dom-de5aecd4.js → dom-d94df9a5.js} +3 -3
  618. package/dist/esm/{filter-9ed111dd.js → filter-ca34d28b.js} +2 -2
  619. package/dist/esm/{floating-ui-f26fc166.js → floating-ui-97c4fec9.js} +4 -4
  620. package/dist/esm/{focusTrapComponent-9000a762.js → focusTrapComponent-7fd24756.js} +2 -2
  621. package/dist/esm/{form-b78dc36a.js → form-ac890af0.js} +3 -3
  622. package/dist/esm/{guid-8f7fe7c8.js → guid-230be676.js} +1 -1
  623. package/dist/esm/{index-060a705f.js → index-5f7cf6ee.js} +1 -1
  624. package/dist/esm/index.js +1 -1
  625. package/dist/esm/{interactive-ae092e9c.js → interactive-c75d1eb9.js} +1 -1
  626. package/dist/esm/{key-5ec4c2bc.js → key-dbd13dac.js} +1 -1
  627. package/dist/esm/{label-80f7ccf8.js → label-197f2352.js} +2 -2
  628. package/dist/esm/{loadable-750111ac.js → loadable-7da1063b.js} +1 -1
  629. package/dist/esm/loader.js +5 -5
  630. package/dist/esm/{locale-e208823a.js → locale-e606392b.js} +4 -4
  631. package/dist/esm/{math-777c49fc.js → math-95335d1b.js} +1 -1
  632. package/dist/esm/{nonChromiumPlatformUtils-fd8e55ff.js → nonChromiumPlatformUtils-a252d3f4.js} +6 -6
  633. package/dist/esm/{observers-5c7edd4c.js → observers-3a4fc545.js} +1 -1
  634. package/dist/esm/{openCloseComponent-094d088c.js → openCloseComponent-50a476fd.js} +2 -2
  635. package/dist/esm/{resources-8414d284.js → resources-6f8b45fa.js} +1 -1
  636. package/dist/esm/{resources-367d3b9d.js → resources-752aeb79.js} +1 -1
  637. package/dist/esm/{resources-3eaa39ad.js → resources-90fbff17.js} +1 -1
  638. package/dist/esm/{resources-75b6a96e.js → resources-b03b6aa5.js} +1 -1
  639. package/dist/esm/{resources-50606976.js → resources-db712a6e.js} +1 -1
  640. package/dist/esm/{resources-ac2d82f7.js → resources-faebb08d.js} +5 -5
  641. package/dist/esm/{sortable.esm-501b5d17.js → sortable.esm-031a6a08.js} +1 -1
  642. package/dist/esm/{t9n-f24b458f.js → t9n-db099d35.js} +3 -3
  643. package/dist/esm/{utils-499a2ba7.js → utils-798690fd.js} +1 -1
  644. package/dist/esm/{utils-ed7335dc.js → utils-ad3257f2.js} +3 -3
  645. package/dist/extras/docs-json.json +14 -28
  646. package/dist/loader/cdn.js +1 -1
  647. package/dist/loader/index.cjs.js +1 -1
  648. package/dist/loader/index.es2017.js +1 -1
  649. package/dist/loader/index.js +1 -1
  650. package/dist/types/components/accordion/accordion.d.ts +3 -3
  651. package/dist/types/components/accordion/interfaces.d.ts +0 -1
  652. package/dist/types/components/color-picker/color-picker.d.ts +3 -5
  653. package/dist/types/components/color-picker/interfaces.d.ts +0 -1
  654. package/dist/types/components/interfaces.d.ts +1 -1
  655. package/dist/types/components/radio-group/radio-group.d.ts +2 -3
  656. package/dist/types/components/rating/function/star.d.ts +3 -0
  657. package/dist/types/components/rating/interfaces.d.ts +18 -0
  658. package/dist/types/components/rating/rating.d.ts +42 -31
  659. package/dist/types/components/switch/switch.d.ts +0 -2
  660. package/dist/types/components.d.ts +17 -12
  661. package/hydrate/index.js +166 -65
  662. package/package.json +1 -1
  663. package/dist/calcite/p-3564b9e0.js +0 -6
  664. package/dist/calcite/p-9d604886.entry.js +0 -6
  665. package/dist/calcite/p-c99a1393.js +0 -6
  666. package/dist/types/components/radio-group/interfaces.d.ts +0 -1
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.688
4
+ * v1.0.0-next.689
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client/index.js';
7
7
  import { g as guid } from './guid.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.688
4
+ * v1.0.0-next.689
5
5
  */
6
6
  import { I as Input, d as defineCustomElement$1 } from './input.js';
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.688
4
+ * v1.0.0-next.689
5
5
  */
6
6
  import { L as Label, d as defineCustomElement$1 } from './label.js';
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.688
4
+ * v1.0.0-next.689
5
5
  */
6
6
  import { L as Link, d as defineCustomElement$1 } from './link.js';
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.688
4
+ * v1.0.0-next.689
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client/index.js';
7
7
  import { u as updateHostInteraction } from './interactive.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.688
4
+ * v1.0.0-next.689
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client/index.js';
7
7
  import { g as getListItemChildren, u as updateListItemChildren, a as getDepth, C as CSS, I as ICONS, S as SLOTS } from './resources2.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.688
4
+ * v1.0.0-next.689
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client/index.js';
7
7
  import { u as updateHostInteraction } from './interactive.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.688
4
+ * v1.0.0-next.689
5
5
  */
6
6
  import { L as Loader, d as defineCustomElement$1 } from './loader.js';
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.688
4
+ * v1.0.0-next.689
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client/index.js';
7
7
  import { b as getSlotted, h as focusElement, j as ensureId } from './dom.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.688
4
+ * v1.0.0-next.689
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client/index.js';
7
7
  import { K as KindIcons } from './resources.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.688
4
+ * v1.0.0-next.689
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, h, Fragment } from '@stencil/core/internal/client/index.js';
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.688
4
+ * v1.0.0-next.689
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client/index.js';
7
7
  import { c as createObserver } from './observers.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.688
4
+ * v1.0.0-next.689
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, h, Fragment } from '@stencil/core/internal/client/index.js';
7
7
  import { n as numberStringFormatter, c as connectLocalized, d as disconnectLocalized } from './locale.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.688
4
+ * v1.0.0-next.689
5
5
  */
6
6
  import { P as Panel, d as defineCustomElement$1 } from './panel.js';
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.688
4
+ * v1.0.0-next.689
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, h, Fragment } from '@stencil/core/internal/client/index.js';
7
7
  import { C as CSS, S as SLOTS } from './resources4.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.688
4
+ * v1.0.0-next.689
5
5
  */
6
6
  import { P as PickListItem, d as defineCustomElement$1 } from './pick-list-item.js';
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.688
4
+ * v1.0.0-next.689
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client/index.js';
7
7
  import { I as ICON_TYPES } from './resources3.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.688
4
+ * v1.0.0-next.689
5
5
  */
6
6
  import { P as Popover, d as defineCustomElement$1 } from './popover.js';
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.688
4
+ * v1.0.0-next.689
5
5
  */
6
6
  import { P as Progress, d as defineCustomElement$1 } from './progress.js';
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.688
4
+ * v1.0.0-next.689
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client/index.js';
7
7
  import { c as createObserver } from './observers.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.688
4
+ * v1.0.0-next.689
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client/index.js';
7
7
  import { g as guid } from './guid.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.688
4
+ * v1.0.0-next.689
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client/index.js';
7
7
  import { g as getElementProp, t as toAriaBoolean } from './dom.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.688
4
+ * v1.0.0-next.689
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, h, Host, Build } from '@stencil/core/internal/client/index.js';
7
7
  import { c as getElementDir } from './dom.js';
@@ -1,21 +1,26 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.688
4
+ * v1.0.0-next.689
5
5
  */
6
- import { proxyCustomElement, HTMLElement, createEvent, h, Fragment } from '@stencil/core/internal/client/index.js';
6
+ import { h, proxyCustomElement, HTMLElement, createEvent, Host } from '@stencil/core/internal/client/index.js';
7
7
  import { g as guid } from './guid.js';
8
8
  import { c as connectLabel, d as disconnectLabel } from './label2.js';
9
9
  import { c as connectForm, d as disconnectForm, H as HiddenFormInputSlot } from './form.js';
10
10
  import { u as updateHostInteraction } from './interactive.js';
11
- import { i as isActivationKey } from './key.js';
12
11
  import { c as connectLocalized, d as disconnectLocalized } from './locale.js';
13
- import { c as connectMessages, s as setUpMessages, d as disconnectMessages, u as updateMessages } from './t9n.js';
12
+ import { u as updateMessages, c as connectMessages, s as setUpMessages, d as disconnectMessages } from './t9n.js';
14
13
  import { a as setUpLoadableComponent, s as setComponentLoaded, c as componentLoaded } from './loadable.js';
15
14
  import { d as defineCustomElement$3 } from './chip.js';
16
15
  import { d as defineCustomElement$2 } from './icon.js';
17
16
 
18
- const ratingCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity: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;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:600}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{position:relative;display:flex;align-items:center;inline-size:-moz-fit-content;inline-size:fit-content}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([scale=s]){block-size:1.5rem;--calcite-rating-spacing-unit:0.25rem}:host([scale=m]){block-size:2rem;--calcite-rating-spacing-unit:0.5rem}:host([scale=l]){block-size:2.75rem;--calcite-rating-spacing-unit:0.75rem}:host([read-only]){pointer-events:none}.fieldset{margin:0px;display:flex;border-width:0px;padding:0px}.wrapper{display:inline-block;margin-inline-end:var(--calcite-rating-spacing-unit)}.star{position:relative;display:flex;cursor:pointer;outline-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;color:var(--calcite-ui-border-input)}.focused{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.average,.fraction{color:var(--calcite-ui-warning)}.hovered,.selected,:host([read-only]) .average,:host([read-only]) .fraction{color:var(--calcite-ui-brand)}:host .fraction{pointer-events:none;position:absolute;inset-block-start:0px;overflow:hidden;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;inset-inline-start:0}calcite-chip{pointer-events:none;cursor:default}.number--average{font-weight:var(--calcite-font-weight-bold)}.number--count{color:var(--calcite-ui-text-2);font-style:italic}.number--count:not(:first-child){margin-inline-start:var(--calcite-rating-spacing-unit)}.visually-hidden{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
17
+ const StarIcon = ({ full, scale, partial }) => (h("calcite-icon", { ...{
18
+ class: partial ? undefined : "icon",
19
+ icon: full ? "star-f" : "star",
20
+ scale
21
+ } }));
22
+
23
+ const ratingCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity: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;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:600}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{position:relative;display:flex;align-items:center;inline-size:-moz-fit-content;inline-size:fit-content}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([scale=s]){block-size:1.5rem;--calcite-rating-spacing-unit:0.25rem}:host([scale=m]){block-size:2rem;--calcite-rating-spacing-unit:0.5rem}:host([scale=l]){block-size:2.75rem;--calcite-rating-spacing-unit:0.75rem}:host([read-only]){pointer-events:none}.fieldset{margin:0;display:flex;border-width:0;padding:0;align-items:center;gap:var(--calcite-rating-spacing-unit)}.wrapper{display:inline-block}.star{transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;position:relative;display:flex;flex-direction:column;cursor:pointer;color:var(--calcite-ui-border-input)}.focused{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.average,.fraction{color:var(--calcite-ui-warning)}.hovered,.selected{color:var(--calcite-ui-brand)}.fraction{transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;position:absolute;pointer-events:none;inset-block-start:0;overflow:hidden;inset-inline-start:0}calcite-chip{pointer-events:none;cursor:default}.number--average{font-weight:bold}.number--count{color:var(--calcite-ui-text-2);font-style:italic}.number--count:not(:first-child){margin-inline-start:var(--calcite-rating-spacing-unit)}.visually-hidden{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
19
24
 
20
25
  const Rating = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
21
26
  constructor() {
@@ -23,33 +28,104 @@ const Rating = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
23
28
  this.__registerHost();
24
29
  this.__attachShadow();
25
30
  this.calciteRatingChange = createEvent(this, "calciteRatingChange", 6);
26
- this.onKeyboardPressed = (event) => {
27
- if (!this.required && isActivationKey(event.key)) {
28
- event.preventDefault();
29
- this.updateValue(0);
30
- }
31
+ this.handleRatingPointerOver = () => {
32
+ this.isKeyboardInteraction = false;
31
33
  };
32
- this.onFocusChange = (selectedRatingValue) => {
34
+ this.handleRatingPointerOut = () => {
35
+ this.isKeyboardInteraction = true;
36
+ this.hoverValue = null;
37
+ this.focusValue = null;
38
+ this.hasFocus = false;
39
+ };
40
+ this.handleRatingFocusIn = () => {
41
+ const selectedInput = this.value > 0 ? this.value - 1 : 0;
42
+ const focusInput = this.inputRefs[selectedInput];
43
+ const focusValue = Number(focusInput.value);
44
+ focusInput.select();
45
+ this.focusValue = focusValue;
46
+ this.hoverValue = focusValue;
33
47
  this.hasFocus = true;
34
- if (!this.required && this.focusValue === selectedRatingValue) {
35
- this.updateValue(0);
48
+ };
49
+ this.handleRatingFocusLeave = () => {
50
+ this.focusValue = null;
51
+ this.hoverValue = null;
52
+ this.hasFocus = false;
53
+ };
54
+ this.handleHostKeyDown = () => {
55
+ this.isKeyboardInteraction = true;
56
+ };
57
+ this.handleInputKeyDown = (event) => {
58
+ const target = event.currentTarget;
59
+ const inputVal = Number(target.value);
60
+ const key = event.key;
61
+ const numberKey = key == " " ? undefined : Number(key);
62
+ this.emit = true;
63
+ if (isNaN(numberKey)) {
64
+ switch (key) {
65
+ case "Enter":
66
+ case " ":
67
+ this.value = !this.required && this.value === inputVal ? 0 : inputVal;
68
+ break;
69
+ case "ArrowLeft":
70
+ this.value = inputVal - 1;
71
+ break;
72
+ case "ArrowRight":
73
+ this.value = inputVal + 1;
74
+ break;
75
+ case "Tab":
76
+ if (this.hasFocus) {
77
+ this.hasFocus = false;
78
+ this.focusValue = null;
79
+ this.hoverValue = null;
80
+ }
81
+ }
36
82
  }
37
83
  else {
38
- this.focusValue = selectedRatingValue;
84
+ if (!this.required && numberKey >= 0 && numberKey <= this.max) {
85
+ this.value = numberKey;
86
+ }
87
+ else if (this.required && numberKey > 0 && numberKey <= this.max) {
88
+ this.value = numberKey;
89
+ }
90
+ }
91
+ };
92
+ this.handleInputChange = (event) => {
93
+ if (this.isKeyboardInteraction === true) {
94
+ const inputVal = Number(event.target["value"]);
95
+ this.focusValue = inputVal;
96
+ this.hoverValue = inputVal;
97
+ this.value = inputVal;
39
98
  }
40
99
  };
100
+ this.handleLabelPointerOver = (event) => {
101
+ const target = event.currentTarget;
102
+ const newPointerValue = Number(target.firstChild["value"] || 0);
103
+ this.hoverValue = newPointerValue;
104
+ this.focusValue = null;
105
+ };
106
+ this.handleLabelPointerDown = (event) => {
107
+ const target = event.currentTarget;
108
+ const inputVal = Number(target.firstChild["value"] || 0);
109
+ this.focusValue = null;
110
+ this.hoverValue = null;
111
+ this.emit = true;
112
+ this.value = !this.required && this.value === inputVal ? 0 : inputVal;
113
+ };
114
+ this.emit = false;
41
115
  this.guid = `calcite-ratings-${guid()}`;
42
- this.scale = "m";
43
- this.value = 0;
44
- this.readOnly = false;
45
- this.disabled = false;
46
- this.showChip = false;
47
- this.count = undefined;
116
+ this.isKeyboardInteraction = true;
117
+ this.max = 5;
48
118
  this.average = undefined;
49
- this.name = undefined;
119
+ this.count = undefined;
120
+ this.disabled = false;
50
121
  this.messages = undefined;
51
122
  this.messageOverrides = undefined;
123
+ this.name = undefined;
124
+ this.readOnly = false;
52
125
  this.required = false;
126
+ this.scale = "m";
127
+ this.showChip = false;
128
+ this.value = 0;
53
129
  this.effectiveLocale = "";
54
130
  this.defaultMessages = undefined;
55
131
  this.hoverValue = undefined;
@@ -59,6 +135,17 @@ const Rating = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
59
135
  onMessagesChange() {
60
136
  /* wired up by t9n util */
61
137
  }
138
+ handleValueUpdate(newValue) {
139
+ this.hoverValue = newValue;
140
+ this.focusValue = newValue;
141
+ if (this.emit) {
142
+ this.calciteRatingChange.emit();
143
+ }
144
+ this.emit = false;
145
+ }
146
+ effectiveLocaleChange() {
147
+ updateMessages(this, this.effectiveLocale);
148
+ }
62
149
  //--------------------------------------------------------------------------
63
150
  //
64
151
  // Lifecycle
@@ -73,6 +160,41 @@ const Rating = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
73
160
  async componentWillLoad() {
74
161
  await setUpMessages(this);
75
162
  setUpLoadableComponent(this);
163
+ this.inputRefs = Array(this.max);
164
+ }
165
+ componentWillRender() {
166
+ this.starsMap = Array.from({ length: this.max }, (_, i) => {
167
+ const value = i + 1;
168
+ const average = !this.focusValue &&
169
+ !this.hoverValue &&
170
+ this.average &&
171
+ !this.value &&
172
+ value <= this.average;
173
+ const checked = value === this.value;
174
+ const focused = this.isKeyboardInteraction && this.hasFocus && this.focusValue === value;
175
+ const fraction = this.average && this.average + 1 - value;
176
+ const hovered = value <= this.hoverValue;
177
+ const id = `${this.guid}-${value}`;
178
+ const partial = !this.focusValue &&
179
+ !this.hoverValue &&
180
+ !this.value &&
181
+ !hovered &&
182
+ fraction > 0 &&
183
+ fraction < 1;
184
+ const selected = this.value >= value;
185
+ return {
186
+ average,
187
+ checked,
188
+ focused,
189
+ fraction,
190
+ hovered,
191
+ id,
192
+ idx: i,
193
+ partial,
194
+ selected,
195
+ value
196
+ };
197
+ });
76
198
  }
77
199
  componentDidLoad() {
78
200
  setComponentLoaded(this);
@@ -86,37 +208,21 @@ const Rating = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
86
208
  componentDidRender() {
87
209
  updateHostInteraction(this);
88
210
  }
89
- //--------------------------------------------------------------------------
90
- //
91
- // Event Listeners
92
- //
93
- //--------------------------------------------------------------------------
94
- blurHandler() {
95
- this.hasFocus = false;
96
- }
97
- // --------------------------------------------------------------------------
98
- //
99
- // Render Methods
100
- //
101
- // --------------------------------------------------------------------------
102
- renderStars() {
103
- return [1, 2, 3, 4, 5].map((i) => {
104
- const selected = this.value >= i;
105
- const average = this.average && !this.value && i <= this.average;
106
- const hovered = i <= this.hoverValue;
107
- const fraction = this.average && this.average + 1 - i;
108
- const partial = !this.value && !hovered && fraction > 0 && fraction < 1;
109
- const focused = this.hasFocus && this.focusValue === i;
110
- return (h("span", { class: { wrapper: true } }, h("label", { class: { star: true, focused, selected, average, hovered, partial }, htmlFor: `${this.guid}-${i}`, onPointerOver: () => {
111
- this.hoverValue = i;
112
- } }, h("calcite-icon", { "aria-hidden": "true", class: "icon", icon: selected || average || this.readOnly ? "star-f" : "star", scale: this.scale }), partial && (h("div", { class: "fraction", style: { width: `${fraction * 100}%` } }, h("calcite-icon", { icon: "star-f", scale: this.scale }))), h("span", { class: "visually-hidden" }, this.messages.stars.replace("${num}", `${i}`))), h("input", { checked: i === this.value, class: "visually-hidden", disabled: this.disabled || this.readOnly, id: `${this.guid}-${i}`, name: this.guid, onChange: () => this.updateValue(i), onClick: (event) =>
113
- // click is fired from the component's label, so we treat this as an internal event
114
- event.stopPropagation(), onFocus: () => this.onFocusChange(i), onKeyDown: this.onKeyboardPressed, ref: (el) => (i === 1 || i === this.value) && (this.inputFocusRef = el), type: "radio", value: i })));
115
- });
116
- }
117
211
  render() {
118
- const { disabled, messages, showChip, scale, count, average } = this;
119
- return (h(Fragment, null, h("fieldset", { class: "fieldset", disabled: disabled, onBlur: () => (this.hoverValue = null), onPointerLeave: () => (this.hoverValue = null), onTouchEnd: () => (this.hoverValue = null) }, h("legend", { class: "visually-hidden" }, messages.rating), this.renderStars()), (count || average) && showChip ? (h("calcite-chip", { scale: scale, value: count?.toString() }, !!average && h("span", { class: "number--average" }, average.toString()), !!count && h("span", { class: "number--count" }, "(", count?.toString(), ")"))) : null, h(HiddenFormInputSlot, { component: this })));
212
+ return (h(Host, { onBlur: this.handleRatingFocusLeave, onFocus: this.handleRatingFocusIn, onKeyDown: this.handleHostKeyDown, onPointerOut: this.handleRatingPointerOut, onPointerOver: this.handleRatingPointerOver }, h("span", { class: "wrapper" }, h("fieldset", { class: "fieldset", disabled: this.disabled }, h("legend", { class: "visually-hidden" }, this.messages.rating), this.starsMap.map(({ average, checked, focused, fraction, hovered, id, idx, partial, selected, value }) => {
213
+ return (h("label", { class: {
214
+ star: true,
215
+ focused,
216
+ selected,
217
+ hovered,
218
+ average,
219
+ partial
220
+ }, htmlFor: id, onPointerDown: this.handleLabelPointerDown, onPointerOver: this.handleLabelPointerOver }, h("input", { checked: checked, class: "visually-hidden", disabled: this.disabled || this.readOnly, id: id, name: this.guid, onChange: this.handleInputChange, onKeyDown: this.handleInputKeyDown, ref: (el) => {
221
+ this.inputRefs[idx] = el;
222
+ return ((value === 1 || value === this.value) &&
223
+ (this.inputFocusRef = el));
224
+ }, type: "radio", value: value }), h(StarIcon, { full: selected || average, scale: this.scale }), partial && (h("div", { class: "fraction", style: { width: `${fraction * 100}%` } }, h(StarIcon, { full: true, partial: true, scale: this.scale }))), h("span", { class: "visually-hidden" }, this.messages.stars.replace("${num}", `${value}`))));
225
+ }), (this.count || this.average) && this.showChip ? (h("calcite-chip", { scale: this.scale, value: this.count?.toString() }, !!this.average && h("span", { class: "number--average" }, this.average.toString()), !!this.count && h("span", { class: "number--count" }, "(", this.count?.toString(), ")"))) : null), h(HiddenFormInputSlot, { component: this }))));
120
226
  }
121
227
  //--------------------------------------------------------------------------
122
228
  //
@@ -126,10 +232,6 @@ const Rating = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
126
232
  onLabelClick() {
127
233
  this.setFocus();
128
234
  }
129
- updateValue(value) {
130
- this.value = value;
131
- this.calciteRatingChange.emit();
132
- }
133
235
  //--------------------------------------------------------------------------
134
236
  //
135
237
  // Public Methods
@@ -140,35 +242,33 @@ const Rating = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
140
242
  await componentLoaded(this);
141
243
  this.inputFocusRef?.focus();
142
244
  }
143
- effectiveLocaleChange() {
144
- updateMessages(this, this.effectiveLocale);
145
- }
146
245
  static get assetsDirs() { return ["assets"]; }
147
246
  get el() { return this; }
148
247
  static get watchers() { return {
149
248
  "messageOverrides": ["onMessagesChange"],
249
+ "value": ["handleValueUpdate"],
150
250
  "effectiveLocale": ["effectiveLocaleChange"]
151
251
  }; }
152
252
  static get style() { return ratingCss; }
153
253
  }, [1, "calcite-rating", {
154
- "scale": [513],
155
- "value": [1538],
156
- "readOnly": [516, "read-only"],
157
- "disabled": [516],
158
- "showChip": [516, "show-chip"],
159
- "count": [514],
160
254
  "average": [514],
161
- "name": [513],
255
+ "count": [514],
256
+ "disabled": [516],
162
257
  "messages": [1040],
163
258
  "messageOverrides": [1040],
259
+ "name": [513],
260
+ "readOnly": [516, "read-only"],
164
261
  "required": [516],
262
+ "scale": [513],
263
+ "showChip": [516, "show-chip"],
264
+ "value": [1538],
165
265
  "effectiveLocale": [32],
166
266
  "defaultMessages": [32],
167
267
  "hoverValue": [32],
168
268
  "focusValue": [32],
169
269
  "hasFocus": [32],
170
270
  "setFocus": [64]
171
- }, [[0, "blur", "blurHandler"]]]);
271
+ }]);
172
272
  function defineCustomElement$1() {
173
273
  if (typeof customElements === "undefined") {
174
274
  return;
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.688
4
+ * v1.0.0-next.689
5
5
  */
6
6
  import { S as Scrim, d as defineCustomElement$1 } from './scrim.js';
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.688
4
+ * v1.0.0-next.689
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, h, Fragment } from '@stencil/core/internal/client/index.js';
7
7
  import { h as focusElement } from './dom.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.688
4
+ * v1.0.0-next.689
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, h, Fragment } from '@stencil/core/internal/client/index.js';
7
7
  import { b as getSlotted } from './dom.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.688
4
+ * v1.0.0-next.689
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, h, forceUpdate } from '@stencil/core/internal/client/index.js';
7
7
  import { c as getElementDir, i as isPrimaryPointerButton, b as getSlotted } from './dom.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.688
4
+ * v1.0.0-next.689
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, h, Fragment } from '@stencil/core/internal/client/index.js';
7
7
  import { b as getSlotted } from './dom.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.688
4
+ * v1.0.0-next.689
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client/index.js';
7
7
  import { g as guid } from './guid.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.688
4
+ * v1.0.0-next.689
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client/index.js';
7
7
  import { S as Sortable } from './sortable.esm.js';