@esri/calcite-components 1.0.0-next.631 → 1.0.0-next.633

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 (677) 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-9e985ad3.js → p-004dc91c.js} +1 -1
  4. package/dist/calcite/{p-256dd63d.js → p-035fa26b.js} +1 -1
  5. package/dist/calcite/{p-c7d55f76.js → p-05c3789b.js} +1 -1
  6. package/dist/calcite/{p-09d0b7df.entry.js → p-09749684.entry.js} +2 -2
  7. package/dist/calcite/{p-fb7f07bc.entry.js → p-0d96f830.entry.js} +2 -2
  8. package/dist/calcite/p-0f31433c.entry.js +6 -0
  9. package/dist/calcite/{p-74f724b5.entry.js → p-12f64f8b.entry.js} +2 -2
  10. package/dist/calcite/{p-829c6736.entry.js → p-14a7da73.entry.js} +2 -2
  11. package/dist/calcite/{p-b600b3f2.entry.js → p-1806b759.entry.js} +2 -2
  12. package/dist/calcite/{p-c566271a.js → p-18b9b69e.js} +1 -1
  13. package/dist/calcite/{p-3d2bd3a6.entry.js → p-18f9b87b.entry.js} +2 -2
  14. package/dist/calcite/{p-a1a76d84.entry.js → p-1cebb96f.entry.js} +2 -2
  15. package/dist/calcite/{p-2122e0d1.js → p-22c8223d.js} +1 -1
  16. package/dist/calcite/{p-b2e36784.js → p-24681cc9.js} +1 -1
  17. package/dist/calcite/{p-d61be3b7.entry.js → p-266871ba.entry.js} +2 -2
  18. package/dist/calcite/{p-cb7557e3.entry.js → p-26b693c2.entry.js} +2 -2
  19. package/dist/calcite/{p-63c436be.entry.js → p-29cf00c4.entry.js} +2 -2
  20. package/dist/calcite/{p-640cf4fa.entry.js → p-2a52b1af.entry.js} +2 -2
  21. package/dist/calcite/{p-f5f0f20c.entry.js → p-2c730d84.entry.js} +2 -2
  22. package/dist/calcite/{p-471d7ed4.js → p-2c9d7402.js} +2 -2
  23. package/dist/calcite/{p-423f219f.entry.js → p-2ebffb8e.entry.js} +2 -2
  24. package/dist/calcite/{p-d1e085b3.entry.js → p-308ed699.entry.js} +2 -2
  25. package/dist/calcite/{p-e9ed1444.js → p-31090aba.js} +1 -1
  26. package/dist/calcite/{p-852c2b37.js → p-319d0fb7.js} +2 -2
  27. package/dist/calcite/{p-b02b3316.js → p-32abefe9.js} +1 -1
  28. package/dist/calcite/{p-e5b8fd94.entry.js → p-3bb21f63.entry.js} +2 -2
  29. package/dist/calcite/p-3cc531b1.entry.js +6 -0
  30. package/dist/calcite/{p-ac49a5fc.entry.js → p-3d69f172.entry.js} +2 -2
  31. package/dist/calcite/p-3e9f366c.entry.js +6 -0
  32. package/dist/calcite/{p-030f8c3f.js → p-3ed7f5b5.js} +2 -2
  33. package/dist/calcite/p-42f22b60.js +6 -0
  34. package/dist/calcite/{p-66124d87.entry.js → p-431e0692.entry.js} +2 -2
  35. package/dist/calcite/{p-ec473061.js → p-4794e7df.js} +1 -1
  36. package/dist/calcite/{p-ddb93587.js → p-498de00a.js} +2 -2
  37. package/dist/calcite/{p-ba4b8115.entry.js → p-49a5573d.entry.js} +2 -2
  38. package/dist/calcite/p-4ada52dc.entry.js +6 -0
  39. package/dist/calcite/{p-08a381ac.js → p-4f72fc01.js} +1 -1
  40. package/dist/calcite/p-513fef9a.js +6 -0
  41. package/dist/calcite/{p-941609dd.js → p-5215672d.js} +2 -2
  42. package/dist/calcite/p-58de9d51.entry.js +6 -0
  43. package/dist/calcite/{p-25a557a3.entry.js → p-5c05198d.entry.js} +2 -2
  44. package/dist/calcite/p-5f59c538.entry.js +6 -0
  45. package/dist/calcite/{p-f2b115a1.entry.js → p-69d9a248.entry.js} +2 -2
  46. package/dist/calcite/{p-cc4a1d2e.entry.js → p-6bc879e0.entry.js} +2 -2
  47. package/dist/calcite/{p-ee6ce295.entry.js → p-6f30e051.entry.js} +2 -2
  48. package/dist/calcite/{p-93bd2d29.entry.js → p-73f93e1c.entry.js} +2 -2
  49. package/dist/calcite/{p-b00b7eb4.entry.js → p-77658bab.entry.js} +2 -2
  50. package/dist/calcite/{p-a6ad1cf2.entry.js → p-7def899e.entry.js} +2 -2
  51. package/dist/calcite/{p-3b385f23.entry.js → p-8021f786.entry.js} +2 -2
  52. package/dist/calcite/{p-680c3505.entry.js → p-810fcf41.entry.js} +2 -2
  53. package/dist/calcite/p-83617657.entry.js +16 -0
  54. package/dist/calcite/{p-6765a427.entry.js → p-953012fa.entry.js} +2 -2
  55. package/dist/calcite/{p-0aef0b8f.js → p-a2ab3648.js} +2 -2
  56. package/dist/calcite/{p-401439ec.entry.js → p-a359b901.entry.js} +2 -2
  57. package/dist/calcite/{p-d3910b2c.entry.js → p-a6f1ebf6.entry.js} +2 -2
  58. package/dist/calcite/{p-c079c310.js → p-ab3812ba.js} +1 -1
  59. package/dist/calcite/{p-afc65e56.entry.js → p-ac3ace5c.entry.js} +2 -2
  60. package/dist/calcite/{p-d248def9.entry.js → p-ac5e38a2.entry.js} +2 -2
  61. package/dist/calcite/{p-529b296e.js → p-b672fd97.js} +2 -2
  62. package/dist/calcite/{p-2f873464.entry.js → p-b7fbe5a9.entry.js} +2 -2
  63. package/dist/calcite/{p-4db062a5.entry.js → p-bb73d51b.entry.js} +2 -2
  64. package/dist/calcite/{p-30cff6ab.entry.js → p-bbd46504.entry.js} +2 -2
  65. package/dist/calcite/p-c24271dc.entry.js +6 -0
  66. package/dist/calcite/{p-7677636b.js → p-c3d50492.js} +1 -1
  67. package/dist/calcite/{p-34b91fe7.js → p-c8640992.js} +1 -1
  68. package/dist/calcite/{p-1df431db.entry.js → p-cb016c52.entry.js} +2 -2
  69. package/dist/calcite/{p-f80307a8.entry.js → p-cc2c16c4.entry.js} +2 -2
  70. package/dist/calcite/{p-ec7b54ca.js → p-cfaa9ea8.js} +2 -2
  71. package/dist/calcite/p-d010539f.entry.js +6 -0
  72. package/dist/calcite/p-d0681fe7.js +6 -0
  73. package/dist/calcite/{p-1ed5c382.js → p-d17b8ee9.js} +2 -2
  74. package/dist/calcite/{p-2a5bd5de.js → p-d25a6228.js} +1 -1
  75. package/dist/calcite/{p-6c655030.entry.js → p-d26767ec.entry.js} +2 -2
  76. package/dist/calcite/{p-e2380d5f.entry.js → p-d2f83c6a.entry.js} +2 -2
  77. package/dist/calcite/p-d4246ab6.js +6 -0
  78. package/dist/calcite/{p-9ac63c64.entry.js → p-d52deb05.entry.js} +2 -2
  79. package/dist/calcite/{p-9eb0a60c.entry.js → p-d5a92819.entry.js} +2 -2
  80. package/dist/calcite/{p-0207a04b.entry.js → p-d728f7e7.entry.js} +2 -2
  81. package/dist/calcite/{p-69333e74.entry.js → p-d935cc1b.entry.js} +2 -2
  82. package/dist/calcite/{p-22a21d2f.entry.js → p-da667566.entry.js} +2 -2
  83. package/dist/calcite/{p-eccd1832.entry.js → p-db293e50.entry.js} +2 -2
  84. package/dist/calcite/{p-12c4354b.entry.js → p-dcad31e0.entry.js} +2 -2
  85. package/dist/calcite/{p-f0a5c1cf.entry.js → p-ddb1b9bb.entry.js} +2 -2
  86. package/dist/calcite/{p-b3f707d1.js → p-deb7df1e.js} +1 -1
  87. package/dist/calcite/p-e2db7cb6.entry.js +6 -0
  88. package/dist/calcite/{p-676113f7.entry.js → p-e64e5cdc.entry.js} +2 -2
  89. package/dist/calcite/{p-a5925283.entry.js → p-e8d83a55.entry.js} +2 -2
  90. package/dist/calcite/p-f61babd1.js +6 -0
  91. package/dist/calcite/{p-67c2d744.entry.js → p-fb3e8b9b.entry.js} +2 -2
  92. package/dist/cjs/{ExpandToggle-eec7a74a.js → ExpandToggle-3cab12e1.js} +5 -5
  93. package/dist/cjs/{Heading-96c57bf1.js → Heading-79adac08.js} +3 -3
  94. package/dist/cjs/{app-globals-36bb7e5f.js → app-globals-0e5a6ce5.js} +2 -2
  95. package/dist/cjs/{array-144c5568.js → array-6a2dea2c.js} +1 -1
  96. package/dist/cjs/calcite-accordion_2.cjs.entry.js +7 -7
  97. package/dist/cjs/calcite-action-bar.cjs.entry.js +11 -11
  98. package/dist/cjs/calcite-action-group.cjs.entry.js +9 -9
  99. package/dist/cjs/calcite-action-menu.cjs.entry.js +8 -8
  100. package/dist/cjs/calcite-action-pad.cjs.entry.js +10 -10
  101. package/dist/cjs/calcite-action.cjs.entry.js +7 -7
  102. package/dist/cjs/calcite-alert.cjs.entry.js +10 -10
  103. package/dist/cjs/calcite-avatar.cjs.entry.js +6 -6
  104. package/dist/cjs/calcite-block_2.cjs.entry.js +11 -12
  105. package/dist/cjs/calcite-button.cjs.entry.js +9 -9
  106. package/dist/cjs/calcite-card.cjs.entry.js +7 -7
  107. package/dist/cjs/calcite-checkbox.cjs.entry.js +9 -9
  108. package/dist/cjs/calcite-chip.cjs.entry.js +7 -7
  109. package/dist/cjs/calcite-color-picker_3.cjs.entry.js +10 -10
  110. package/dist/cjs/calcite-combobox_3.cjs.entry.js +14 -14
  111. package/dist/cjs/calcite-date-picker_4.cjs.entry.js +12 -12
  112. package/dist/cjs/calcite-dropdown_3.cjs.entry.js +11 -11
  113. package/dist/cjs/calcite-fab.cjs.entry.js +6 -6
  114. package/dist/cjs/calcite-filter.cjs.entry.js +9 -9
  115. package/dist/cjs/calcite-flow-item.cjs.entry.js +7 -7
  116. package/dist/cjs/calcite-flow.cjs.entry.js +3 -3
  117. package/dist/cjs/calcite-graph_2.cjs.entry.js +12 -12
  118. package/dist/cjs/calcite-handle.cjs.entry.js +5 -5
  119. package/dist/cjs/calcite-icon.cjs.entry.js +6 -6
  120. package/dist/cjs/calcite-inline-editable.cjs.entry.js +8 -8
  121. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +15 -15
  122. package/dist/cjs/calcite-input-message.cjs.entry.js +5 -5
  123. package/dist/cjs/calcite-input-number.cjs.entry.js +12 -12
  124. package/dist/cjs/calcite-input-text.cjs.entry.js +9 -9
  125. package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +11 -11
  126. package/dist/cjs/calcite-input.cjs.entry.js +12 -12
  127. package/dist/cjs/calcite-label.cjs.entry.js +6 -6
  128. package/dist/cjs/calcite-link.cjs.entry.js +6 -6
  129. package/dist/cjs/calcite-list_3.cjs.entry.js +10 -11
  130. package/dist/cjs/calcite-loader.cjs.entry.js +3 -3
  131. package/dist/cjs/calcite-modal.cjs.entry.js +1281 -134
  132. package/dist/cjs/calcite-notice.cjs.entry.js +8 -8
  133. package/dist/cjs/calcite-option_3.cjs.entry.js +9 -9
  134. package/dist/cjs/calcite-pagination.cjs.entry.js +8 -8
  135. package/dist/cjs/calcite-panel.cjs.entry.js +11 -11
  136. package/dist/cjs/calcite-pick-list_3.cjs.entry.js +33 -13
  137. package/dist/cjs/calcite-popover_2.cjs.entry.js +12 -13
  138. package/dist/cjs/calcite-progress.cjs.entry.js +2 -2
  139. package/dist/cjs/calcite-radio-button-group.cjs.entry.js +3 -3
  140. package/dist/cjs/calcite-radio-button.cjs.entry.js +9 -9
  141. package/dist/cjs/calcite-radio-group_2.cjs.entry.js +8 -8
  142. package/dist/cjs/calcite-rating.cjs.entry.js +9 -9
  143. package/dist/cjs/calcite-scrim.cjs.entry.js +2 -2
  144. package/dist/cjs/calcite-shell_3.cjs.entry.js +8 -8
  145. package/dist/cjs/calcite-sortable-list.cjs.entry.js +5 -5
  146. package/dist/cjs/calcite-split-button.cjs.entry.js +3 -3
  147. package/dist/cjs/calcite-stepper_2.cjs.entry.js +9 -9
  148. package/dist/cjs/calcite-switch.cjs.entry.js +9 -9
  149. package/dist/cjs/calcite-tab_4.cjs.entry.js +7 -7
  150. package/dist/cjs/calcite-tile-select_2.cjs.entry.js +4 -4
  151. package/dist/cjs/calcite-tile.cjs.entry.js +8 -8
  152. package/dist/cjs/calcite-tip_3.cjs.entry.js +54 -56
  153. package/dist/cjs/calcite-tooltip_2.cjs.entry.js +7 -7
  154. package/dist/cjs/calcite-tree_2.cjs.entry.js +8 -8
  155. package/dist/cjs/calcite-value-list_2.cjs.entry.js +30 -12
  156. package/dist/cjs/calcite.cjs.js +5 -5
  157. package/dist/cjs/{conditionalSlot-7f4a8e10.js → conditionalSlot-1322fc35.js} +13 -3
  158. package/dist/cjs/{debounce-3d8e527c.js → debounce-0f9e9abc.js} +1 -1
  159. package/dist/cjs/{dom-1c0b6833.js → dom-13de8dae.js} +3 -4
  160. package/dist/cjs/{filter-a043da6d.js → filter-b64d328c.js} +2 -2
  161. package/dist/cjs/{floating-ui-78db6436.js → floating-ui-81762090.js} +4 -4
  162. package/dist/cjs/{form-5cda2366.js → form-5d8e6d3d.js} +3 -3
  163. package/dist/cjs/{guid-0bb5fc1b.js → guid-4c424c40.js} +1 -1
  164. package/dist/cjs/{index-5bdde370.js → index-a6176241.js} +1 -1
  165. package/dist/cjs/index.cjs.js +1 -1
  166. package/dist/cjs/{interactive-19caf709.js → interactive-4c92331d.js} +1 -1
  167. package/dist/cjs/{interfaces-e83765f7.js → interfaces-31dee91d.js} +1 -1
  168. package/dist/cjs/{key-42ab632f.js → key-98575516.js} +1 -1
  169. package/dist/cjs/{label-2cc97ee2.js → label-40d2674d.js} +2 -2
  170. package/dist/cjs/loader.cjs.js +5 -5
  171. package/dist/cjs/{locale-e755b3f7.js → locale-59a564a4.js} +37 -49
  172. package/dist/cjs/{math-976c29c4.js → math-434fe599.js} +1 -1
  173. package/dist/cjs/{nonChromiumPlatformUtils-0e526ecf.js → nonChromiumPlatformUtils-4af36414.js} +6 -6
  174. package/dist/cjs/{observers-bcbecbbd.js → observers-5bc9fe46.js} +1 -1
  175. package/dist/cjs/{openCloseComponent-edbc7b2a.js → openCloseComponent-67cd4a5b.js} +1 -1
  176. package/dist/cjs/{resources-17fc0687.js → resources-69bd2041.js} +1 -1
  177. package/dist/cjs/{resources-511507b8.js → resources-73628073.js} +1 -1
  178. package/dist/cjs/{resources-749ca3c0.js → resources-a28e66cd.js} +1 -1
  179. package/dist/cjs/{resources-5fdad010.js → resources-a665ff66.js} +1 -3
  180. package/dist/cjs/{resources-1a9c1993.js → resources-aace079b.js} +3 -5
  181. package/dist/cjs/{resources-b4931f11.js → resources-e3e0e1e3.js} +39 -15
  182. package/dist/cjs/{sortable.esm-037a4c16.js → sortable.esm-c1959d54.js} +1 -1
  183. package/dist/cjs/{utils-ecc37d9b.js → utils-62376f8f.js} +1 -1
  184. package/dist/collection/components/accordion/accordion.js +1 -1
  185. package/dist/collection/components/accordion-item/accordion-item.js +1 -1
  186. package/dist/collection/components/accordion-item/resources.js +1 -1
  187. package/dist/collection/components/action/action.js +1 -1
  188. package/dist/collection/components/action/resources.js +1 -1
  189. package/dist/collection/components/action-bar/action-bar.js +1 -1
  190. package/dist/collection/components/action-bar/resources.js +1 -1
  191. package/dist/collection/components/action-bar/utils.js +1 -1
  192. package/dist/collection/components/action-group/action-group.js +1 -1
  193. package/dist/collection/components/action-group/resources.js +1 -1
  194. package/dist/collection/components/action-menu/action-menu.js +1 -1
  195. package/dist/collection/components/action-menu/resources.js +1 -1
  196. package/dist/collection/components/action-pad/action-pad.js +1 -1
  197. package/dist/collection/components/action-pad/resources.js +1 -1
  198. package/dist/collection/components/alert/alert.js +1 -1
  199. package/dist/collection/components/alert/interfaces.js +1 -1
  200. package/dist/collection/components/alert/resources.js +1 -1
  201. package/dist/collection/components/avatar/avatar.js +1 -1
  202. package/dist/collection/components/avatar/utils.js +1 -1
  203. package/dist/collection/components/block/block.js +3 -3
  204. package/dist/collection/components/block/resources.js +1 -2
  205. package/dist/collection/components/block-section/block-section.js +1 -1
  206. package/dist/collection/components/block-section/resources.js +1 -1
  207. package/dist/collection/components/button/button.js +1 -1
  208. package/dist/collection/components/button/resources.js +1 -1
  209. package/dist/collection/components/card/card.js +1 -1
  210. package/dist/collection/components/card/resources.js +1 -1
  211. package/dist/collection/components/checkbox/checkbox.js +1 -1
  212. package/dist/collection/components/chip/chip.js +1 -1
  213. package/dist/collection/components/chip/resources.js +1 -1
  214. package/dist/collection/components/color-picker/color-picker.js +1 -1
  215. package/dist/collection/components/color-picker/resources.js +1 -1
  216. package/dist/collection/components/color-picker/utils.js +1 -1
  217. package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.js +1 -1
  218. package/dist/collection/components/color-picker-hex-input/resources.js +1 -1
  219. package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +1 -1
  220. package/dist/collection/components/color-picker-swatch/resources.js +1 -1
  221. package/dist/collection/components/combobox/combobox.js +1 -1
  222. package/dist/collection/components/combobox/resources.js +1 -1
  223. package/dist/collection/components/combobox/utils.js +1 -1
  224. package/dist/collection/components/combobox-item/combobox-item.js +1 -1
  225. package/dist/collection/components/combobox-item/resources.js +1 -1
  226. package/dist/collection/components/combobox-item-group/combobox-item-group.js +1 -1
  227. package/dist/collection/components/combobox-item-group/resources.js +1 -1
  228. package/dist/collection/components/date-picker/date-picker.js +3 -3
  229. package/dist/collection/components/date-picker/resources.js +1 -2
  230. package/dist/collection/components/date-picker/utils.js +1 -1
  231. package/dist/collection/components/date-picker-day/date-picker-day.js +1 -1
  232. package/dist/collection/components/date-picker-month/date-picker-month.js +1 -1
  233. package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +1 -1
  234. package/dist/collection/components/date-picker-month-header/resources.js +1 -1
  235. package/dist/collection/components/dropdown/dropdown.js +1 -1
  236. package/dist/collection/components/dropdown/resources.js +1 -1
  237. package/dist/collection/components/dropdown-group/dropdown-group.js +1 -1
  238. package/dist/collection/components/dropdown-group/resources.js +1 -1
  239. package/dist/collection/components/dropdown-item/dropdown-item.js +1 -1
  240. package/dist/collection/components/dropdown-item/resources.js +1 -1
  241. package/dist/collection/components/fab/fab.js +1 -1
  242. package/dist/collection/components/fab/resources.js +1 -1
  243. package/dist/collection/components/filter/filter.js +2 -2
  244. package/dist/collection/components/filter/resources.js +1 -1
  245. package/dist/collection/components/flow/flow.js +1 -1
  246. package/dist/collection/components/flow/resources.js +1 -1
  247. package/dist/collection/components/flow-item/flow-item.js +1 -1
  248. package/dist/collection/components/flow-item/resources.js +1 -1
  249. package/dist/collection/components/functional/ExpandToggle.js +1 -1
  250. package/dist/collection/components/functional/Heading.js +2 -2
  251. package/dist/collection/components/graph/graph.js +1 -1
  252. package/dist/collection/components/graph/util.js +1 -1
  253. package/dist/collection/components/handle/handle.js +1 -1
  254. package/dist/collection/components/handle/resources.js +1 -1
  255. package/dist/collection/components/icon/icon.js +1 -1
  256. package/dist/collection/components/icon/resources.js +1 -1
  257. package/dist/collection/components/icon/utils.js +1 -1
  258. package/dist/collection/components/inline-editable/inline-editable.js +1 -1
  259. package/dist/collection/components/inline-editable/resources.js +1 -1
  260. package/dist/collection/components/input/input.js +1 -1
  261. package/dist/collection/components/input/resources.js +1 -1
  262. package/dist/collection/components/input-date-picker/input-date-picker.js +1 -1
  263. package/dist/collection/components/input-date-picker/resources.js +1 -1
  264. package/dist/collection/components/input-message/input-message.js +1 -1
  265. package/dist/collection/components/input-message/interfaces.js +1 -1
  266. package/dist/collection/components/input-number/input-number.js +1 -1
  267. package/dist/collection/components/input-number/resources.js +1 -1
  268. package/dist/collection/components/input-text/input-text.js +1 -1
  269. package/dist/collection/components/input-text/resources.js +1 -1
  270. package/dist/collection/components/input-time-picker/input-time-picker.js +1 -1
  271. package/dist/collection/components/label/label.js +1 -1
  272. package/dist/collection/components/label/resources.js +1 -1
  273. package/dist/collection/components/link/link.js +1 -1
  274. package/dist/collection/components/list/list.js +1 -1
  275. package/dist/collection/components/list/resources.js +1 -1
  276. package/dist/collection/components/list-item/list-item.js +1 -1
  277. package/dist/collection/components/list-item/resources.js +1 -1
  278. package/dist/collection/components/list-item-group/list-item-group.js +2 -3
  279. package/dist/collection/components/list-item-group/resources.js +1 -2
  280. package/dist/collection/components/loader/loader.js +1 -1
  281. package/dist/collection/components/modal/modal.js +15 -28
  282. package/dist/collection/components/modal/resources.js +1 -1
  283. package/dist/collection/components/notice/notice.js +1 -1
  284. package/dist/collection/components/notice/resources.js +1 -1
  285. package/dist/collection/components/option/option.js +1 -1
  286. package/dist/collection/components/option-group/option-group.js +1 -1
  287. package/dist/collection/components/pagination/pagination.js +1 -1
  288. package/dist/collection/components/pagination/resources.js +1 -1
  289. package/dist/collection/components/panel/panel.js +3 -3
  290. package/dist/collection/components/panel/resources.js +1 -2
  291. package/dist/collection/components/pick-list/pick-list.js +100 -2
  292. package/dist/collection/components/pick-list/resources.js +1 -1
  293. package/dist/collection/components/pick-list/shared-list-logic.js +31 -7
  294. package/dist/collection/components/pick-list/shared-list-render.js +3 -3
  295. package/dist/collection/components/pick-list-group/pick-list-group.js +2 -3
  296. package/dist/collection/components/pick-list-group/resources.js +1 -2
  297. package/dist/collection/components/pick-list-item/pick-list-item.js +1 -1
  298. package/dist/collection/components/pick-list-item/resources.js +1 -1
  299. package/dist/collection/components/popover/PopoverManager.js +1 -1
  300. package/dist/collection/components/popover/popover.js +3 -3
  301. package/dist/collection/components/popover/resources.js +1 -2
  302. package/dist/collection/components/popover-manager/popover-manager.js +1 -1
  303. package/dist/collection/components/progress/progress.js +1 -1
  304. package/dist/collection/components/radio-button/radio-button.js +1 -1
  305. package/dist/collection/components/radio-button/resources.js +1 -1
  306. package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
  307. package/dist/collection/components/radio-group/radio-group.js +1 -1
  308. package/dist/collection/components/radio-group-item/radio-group-item.js +1 -1
  309. package/dist/collection/components/radio-group-item/resources.js +1 -1
  310. package/dist/collection/components/rating/rating.js +1 -1
  311. package/dist/collection/components/rating/resources.js +1 -1
  312. package/dist/collection/components/scrim/resources.js +1 -1
  313. package/dist/collection/components/scrim/scrim.js +1 -1
  314. package/dist/collection/components/select/resources.js +1 -1
  315. package/dist/collection/components/select/select.js +1 -1
  316. package/dist/collection/components/shell/resources.js +1 -1
  317. package/dist/collection/components/shell/shell.js +1 -1
  318. package/dist/collection/components/shell-center-row/resources.js +1 -1
  319. package/dist/collection/components/shell-center-row/shell-center-row.js +1 -1
  320. package/dist/collection/components/shell-panel/resources.js +1 -1
  321. package/dist/collection/components/shell-panel/shell-panel.js +1 -1
  322. package/dist/collection/components/slider/resources.js +1 -1
  323. package/dist/collection/components/slider/slider.js +1 -1
  324. package/dist/collection/components/sortable-list/resources.js +1 -1
  325. package/dist/collection/components/sortable-list/sortable-list.js +1 -1
  326. package/dist/collection/components/split-button/resources.js +1 -1
  327. package/dist/collection/components/split-button/split-button.js +1 -1
  328. package/dist/collection/components/stepper/stepper.js +1 -1
  329. package/dist/collection/components/stepper-item/stepper-item.js +1 -1
  330. package/dist/collection/components/switch/switch.js +1 -1
  331. package/dist/collection/components/tab/tab.js +1 -1
  332. package/dist/collection/components/tab-nav/tab-nav.js +1 -1
  333. package/dist/collection/components/tab-title/tab-title.js +1 -1
  334. package/dist/collection/components/tabs/resources.js +1 -1
  335. package/dist/collection/components/tabs/tabs.js +1 -1
  336. package/dist/collection/components/tile/resources.js +1 -1
  337. package/dist/collection/components/tile/tile.js +1 -1
  338. package/dist/collection/components/tile-select/resources.js +1 -1
  339. package/dist/collection/components/tile-select/tile-select.js +1 -1
  340. package/dist/collection/components/tile-select-group/tile-select-group.js +1 -1
  341. package/dist/collection/components/time-picker/resources.js +1 -1
  342. package/dist/collection/components/time-picker/time-picker.js +1 -1
  343. package/dist/collection/components/tip/resources.js +1 -3
  344. package/dist/collection/components/tip/tip.js +3 -3
  345. package/dist/collection/components/tip-group/tip-group.js +1 -1
  346. package/dist/collection/components/tip-manager/resources.js +1 -2
  347. package/dist/collection/components/tip-manager/tip-manager.js +3 -3
  348. package/dist/collection/components/tooltip/TooltipManager.js +1 -1
  349. package/dist/collection/components/tooltip/resources.js +1 -1
  350. package/dist/collection/components/tooltip/tooltip.js +1 -1
  351. package/dist/collection/components/tooltip-manager/tooltip-manager.js +1 -1
  352. package/dist/collection/components/tree/interfaces.js +1 -1
  353. package/dist/collection/components/tree/tree.js +1 -1
  354. package/dist/collection/components/tree/utils.js +1 -1
  355. package/dist/collection/components/tree-item/resources.js +1 -1
  356. package/dist/collection/components/tree-item/tree-item.js +1 -1
  357. package/dist/collection/components/value-list/resources.js +1 -1
  358. package/dist/collection/components/value-list/utils.js +1 -1
  359. package/dist/collection/components/value-list/value-list.js +98 -2
  360. package/dist/collection/components/value-list-item/resources.js +1 -1
  361. package/dist/collection/components/value-list-item/value-list-item.js +1 -1
  362. package/dist/collection/utils/array.js +1 -1
  363. package/dist/collection/utils/conditionalSlot.js +11 -1
  364. package/dist/collection/utils/config.js +1 -1
  365. package/dist/collection/utils/date.js +1 -1
  366. package/dist/collection/utils/dom.js +29 -1
  367. package/dist/collection/utils/filter.js +1 -1
  368. package/dist/collection/utils/floating-ui/nonChromiumPlatformUtils.js +1 -1
  369. package/dist/collection/utils/floating-ui.js +1 -1
  370. package/dist/collection/utils/focusTrapComponent.js +53 -0
  371. package/dist/collection/utils/form.js +1 -1
  372. package/dist/collection/utils/globalAttributes.js +1 -1
  373. package/dist/collection/utils/globalScript.js +1 -1
  374. package/dist/collection/utils/guid.js +1 -1
  375. package/dist/collection/utils/interactive.js +1 -1
  376. package/dist/collection/utils/key.js +1 -1
  377. package/dist/collection/utils/label.js +1 -1
  378. package/dist/collection/utils/locale.js +3 -3
  379. package/dist/collection/utils/math.js +1 -1
  380. package/dist/collection/utils/number.js +33 -46
  381. package/dist/collection/utils/observers.js +1 -1
  382. package/dist/collection/utils/openCloseComponent.js +1 -1
  383. package/dist/collection/utils/resources.js +1 -1
  384. package/dist/collection/utils/t9n.js +1 -1
  385. package/dist/collection/utils/theme.js +1 -1
  386. package/dist/collection/utils/time.js +1 -1
  387. package/dist/components/ExpandToggle.js +1 -1
  388. package/dist/components/Heading.js +2 -2
  389. package/dist/components/action-group.js +1 -1
  390. package/dist/components/action-menu.js +1 -1
  391. package/dist/components/action.js +1 -1
  392. package/dist/components/array.js +1 -1
  393. package/dist/components/button.js +2 -2
  394. package/dist/components/calcite-accordion-item.js +1 -1
  395. package/dist/components/calcite-accordion.js +1 -1
  396. package/dist/components/calcite-action-bar.js +1 -1
  397. package/dist/components/calcite-action-group.js +1 -1
  398. package/dist/components/calcite-action-menu.js +1 -1
  399. package/dist/components/calcite-action-pad.js +1 -1
  400. package/dist/components/calcite-action.js +1 -1
  401. package/dist/components/calcite-alert.js +1 -1
  402. package/dist/components/calcite-avatar.js +1 -1
  403. package/dist/components/calcite-block-section.js +1 -1
  404. package/dist/components/calcite-block.js +2 -3
  405. package/dist/components/calcite-button.js +1 -1
  406. package/dist/components/calcite-card.js +1 -1
  407. package/dist/components/calcite-checkbox.js +1 -1
  408. package/dist/components/calcite-chip.js +1 -1
  409. package/dist/components/calcite-color-picker-hex-input.js +1 -1
  410. package/dist/components/calcite-color-picker-swatch.js +1 -1
  411. package/dist/components/calcite-color-picker.js +1 -1
  412. package/dist/components/calcite-combobox-item-group.js +1 -1
  413. package/dist/components/calcite-combobox-item.js +1 -1
  414. package/dist/components/calcite-combobox.js +1 -1
  415. package/dist/components/calcite-date-picker-day.js +1 -1
  416. package/dist/components/calcite-date-picker-month-header.js +1 -1
  417. package/dist/components/calcite-date-picker-month.js +1 -1
  418. package/dist/components/calcite-date-picker.js +1 -1
  419. package/dist/components/calcite-dropdown-group.js +1 -1
  420. package/dist/components/calcite-dropdown-item.js +1 -1
  421. package/dist/components/calcite-dropdown.js +1 -1
  422. package/dist/components/calcite-fab.js +1 -1
  423. package/dist/components/calcite-filter.js +1 -1
  424. package/dist/components/calcite-flow-item.js +1 -1
  425. package/dist/components/calcite-flow.js +1 -1
  426. package/dist/components/calcite-graph.js +1 -1
  427. package/dist/components/calcite-handle.js +1 -1
  428. package/dist/components/calcite-icon.js +1 -1
  429. package/dist/components/calcite-inline-editable.js +1 -1
  430. package/dist/components/calcite-input-date-picker.js +1 -1
  431. package/dist/components/calcite-input-message.js +1 -1
  432. package/dist/components/calcite-input-number.js +1 -1
  433. package/dist/components/calcite-input-text.js +1 -1
  434. package/dist/components/calcite-input-time-picker.js +1 -1
  435. package/dist/components/calcite-input.js +1 -1
  436. package/dist/components/calcite-label.js +1 -1
  437. package/dist/components/calcite-link.js +1 -1
  438. package/dist/components/calcite-list-item-group.js +2 -3
  439. package/dist/components/calcite-list-item.js +1 -1
  440. package/dist/components/calcite-list.js +1 -1
  441. package/dist/components/calcite-loader.js +1 -1
  442. package/dist/components/calcite-modal.js +1275 -128
  443. package/dist/components/calcite-notice.js +1 -1
  444. package/dist/components/calcite-option-group.js +1 -1
  445. package/dist/components/calcite-option.js +1 -1
  446. package/dist/components/calcite-pagination.js +1 -1
  447. package/dist/components/calcite-panel.js +1 -1
  448. package/dist/components/calcite-pick-list-group.js +3 -3
  449. package/dist/components/calcite-pick-list-item.js +1 -1
  450. package/dist/components/calcite-pick-list.js +25 -2
  451. package/dist/components/calcite-popover-manager.js +1 -1
  452. package/dist/components/calcite-popover.js +1 -1
  453. package/dist/components/calcite-progress.js +1 -1
  454. package/dist/components/calcite-radio-button-group.js +1 -1
  455. package/dist/components/calcite-radio-button.js +1 -1
  456. package/dist/components/calcite-radio-group-item.js +1 -1
  457. package/dist/components/calcite-radio-group.js +1 -1
  458. package/dist/components/calcite-rating.js +1 -1
  459. package/dist/components/calcite-scrim.js +1 -1
  460. package/dist/components/calcite-select.js +1 -1
  461. package/dist/components/calcite-shell-center-row.js +1 -1
  462. package/dist/components/calcite-shell-panel.js +1 -1
  463. package/dist/components/calcite-shell.js +1 -1
  464. package/dist/components/calcite-slider.js +2 -2
  465. package/dist/components/calcite-sortable-list.js +1 -1
  466. package/dist/components/calcite-split-button.js +1 -1
  467. package/dist/components/calcite-stepper-item.js +1 -1
  468. package/dist/components/calcite-stepper.js +1 -1
  469. package/dist/components/calcite-switch.js +1 -1
  470. package/dist/components/calcite-tab-nav.js +1 -1
  471. package/dist/components/calcite-tab-title.js +1 -1
  472. package/dist/components/calcite-tab.js +1 -1
  473. package/dist/components/calcite-tabs.js +1 -1
  474. package/dist/components/calcite-tile-select-group.js +1 -1
  475. package/dist/components/calcite-tile-select.js +1 -1
  476. package/dist/components/calcite-tile.js +1 -1
  477. package/dist/components/calcite-time-picker.js +1 -1
  478. package/dist/components/calcite-tip-group.js +1 -1
  479. package/dist/components/calcite-tip-manager.js +28 -3
  480. package/dist/components/calcite-tip.js +2 -4
  481. package/dist/components/calcite-tooltip-manager.js +1 -1
  482. package/dist/components/calcite-tooltip.js +1 -1
  483. package/dist/components/calcite-tree-item.js +2 -2
  484. package/dist/components/calcite-tree.js +2 -2
  485. package/dist/components/calcite-value-list-item.js +1 -1
  486. package/dist/components/calcite-value-list.js +23 -2
  487. package/dist/components/checkbox.js +1 -1
  488. package/dist/components/chip.js +1 -1
  489. package/dist/components/color-picker-hex-input.js +1 -1
  490. package/dist/components/color-picker-swatch.js +1 -1
  491. package/dist/components/conditionalSlot.js +11 -1
  492. package/dist/components/date-picker-day.js +2 -2
  493. package/dist/components/date-picker-month-header.js +2 -2
  494. package/dist/components/date-picker-month.js +1 -1
  495. package/dist/components/date-picker.js +2 -3
  496. package/dist/components/date.js +1 -1
  497. package/dist/components/debounce.js +1 -1
  498. package/dist/components/dom.js +2 -2
  499. package/dist/components/dropdown.js +1 -1
  500. package/dist/components/filter.js +2 -2
  501. package/dist/components/filter2.js +1 -1
  502. package/dist/components/floating-ui.js +2 -2
  503. package/dist/components/form.js +2 -2
  504. package/dist/components/graph.js +1 -1
  505. package/dist/components/guid.js +1 -1
  506. package/dist/components/handle.js +1 -1
  507. package/dist/components/icon.js +1 -1
  508. package/dist/components/index.js +1 -1
  509. package/dist/components/input.js +1 -1
  510. package/dist/components/interactive.js +1 -1
  511. package/dist/components/interfaces.js +1 -1
  512. package/dist/components/interfaces2.js +1 -1
  513. package/dist/components/key.js +1 -1
  514. package/dist/components/label.js +1 -1
  515. package/dist/components/label2.js +2 -2
  516. package/dist/components/link.js +1 -1
  517. package/dist/components/loader.js +1 -1
  518. package/dist/components/locale.js +35 -47
  519. package/dist/components/math.js +1 -1
  520. package/dist/components/nonChromiumPlatformUtils.js +1 -1
  521. package/dist/components/observers.js +1 -1
  522. package/dist/components/openCloseComponent.js +1 -1
  523. package/dist/components/panel.js +2 -3
  524. package/dist/components/pick-list-item.js +1 -1
  525. package/dist/components/popover.js +2 -3
  526. package/dist/components/progress.js +1 -1
  527. package/dist/components/resources.js +1 -1
  528. package/dist/components/resources2.js +2 -3
  529. package/dist/components/scrim.js +1 -1
  530. package/dist/components/shared-list-render.js +34 -10
  531. package/dist/components/sortable.esm.js +1 -1
  532. package/dist/components/switch.js +1 -1
  533. package/dist/components/tab-nav.js +2 -2
  534. package/dist/components/tab-title.js +1 -1
  535. package/dist/components/tab.js +1 -1
  536. package/dist/components/tabs.js +1 -1
  537. package/dist/components/tile.js +1 -1
  538. package/dist/components/time-picker.js +1 -1
  539. package/dist/components/tooltip.js +1 -1
  540. package/dist/components/utils.js +1 -1
  541. package/dist/components/utils2.js +1 -1
  542. package/dist/esm/{ExpandToggle-8d1a3315.js → ExpandToggle-c1666d9f.js} +5 -5
  543. package/dist/esm/{Heading-fdaf2441.js → Heading-6f3b27d7.js} +3 -3
  544. package/dist/esm/{app-globals-62f1ea5d.js → app-globals-dc53e887.js} +2 -2
  545. package/dist/esm/{array-a3f4690d.js → array-ec97ab21.js} +1 -1
  546. package/dist/esm/calcite-accordion_2.entry.js +7 -7
  547. package/dist/esm/calcite-action-bar.entry.js +11 -11
  548. package/dist/esm/calcite-action-group.entry.js +9 -9
  549. package/dist/esm/calcite-action-menu.entry.js +8 -8
  550. package/dist/esm/calcite-action-pad.entry.js +10 -10
  551. package/dist/esm/calcite-action.entry.js +7 -7
  552. package/dist/esm/calcite-alert.entry.js +10 -10
  553. package/dist/esm/calcite-avatar.entry.js +6 -6
  554. package/dist/esm/calcite-block_2.entry.js +11 -12
  555. package/dist/esm/calcite-button.entry.js +9 -9
  556. package/dist/esm/calcite-card.entry.js +7 -7
  557. package/dist/esm/calcite-checkbox.entry.js +9 -9
  558. package/dist/esm/calcite-chip.entry.js +7 -7
  559. package/dist/esm/calcite-color-picker_3.entry.js +10 -10
  560. package/dist/esm/calcite-combobox_3.entry.js +14 -14
  561. package/dist/esm/calcite-date-picker_4.entry.js +12 -12
  562. package/dist/esm/calcite-dropdown_3.entry.js +11 -11
  563. package/dist/esm/calcite-fab.entry.js +6 -6
  564. package/dist/esm/calcite-filter.entry.js +9 -9
  565. package/dist/esm/calcite-flow-item.entry.js +7 -7
  566. package/dist/esm/calcite-flow.entry.js +3 -3
  567. package/dist/esm/calcite-graph_2.entry.js +12 -12
  568. package/dist/esm/calcite-handle.entry.js +5 -5
  569. package/dist/esm/calcite-icon.entry.js +6 -6
  570. package/dist/esm/calcite-inline-editable.entry.js +8 -8
  571. package/dist/esm/calcite-input-date-picker.entry.js +15 -15
  572. package/dist/esm/calcite-input-message.entry.js +5 -5
  573. package/dist/esm/calcite-input-number.entry.js +12 -12
  574. package/dist/esm/calcite-input-text.entry.js +9 -9
  575. package/dist/esm/calcite-input-time-picker_2.entry.js +11 -11
  576. package/dist/esm/calcite-input.entry.js +12 -12
  577. package/dist/esm/calcite-label.entry.js +6 -6
  578. package/dist/esm/calcite-link.entry.js +6 -6
  579. package/dist/esm/calcite-list_3.entry.js +10 -11
  580. package/dist/esm/calcite-loader.entry.js +3 -3
  581. package/dist/esm/calcite-modal.entry.js +1281 -134
  582. package/dist/esm/calcite-notice.entry.js +8 -8
  583. package/dist/esm/calcite-option_3.entry.js +9 -9
  584. package/dist/esm/calcite-pagination.entry.js +8 -8
  585. package/dist/esm/calcite-panel.entry.js +11 -11
  586. package/dist/esm/calcite-pick-list_3.entry.js +33 -13
  587. package/dist/esm/calcite-popover_2.entry.js +12 -13
  588. package/dist/esm/calcite-progress.entry.js +2 -2
  589. package/dist/esm/calcite-radio-button-group.entry.js +3 -3
  590. package/dist/esm/calcite-radio-button.entry.js +9 -9
  591. package/dist/esm/calcite-radio-group_2.entry.js +8 -8
  592. package/dist/esm/calcite-rating.entry.js +9 -9
  593. package/dist/esm/calcite-scrim.entry.js +2 -2
  594. package/dist/esm/calcite-shell_3.entry.js +8 -8
  595. package/dist/esm/calcite-sortable-list.entry.js +5 -5
  596. package/dist/esm/calcite-split-button.entry.js +3 -3
  597. package/dist/esm/calcite-stepper_2.entry.js +9 -9
  598. package/dist/esm/calcite-switch.entry.js +9 -9
  599. package/dist/esm/calcite-tab_4.entry.js +7 -7
  600. package/dist/esm/calcite-tile-select_2.entry.js +4 -4
  601. package/dist/esm/calcite-tile.entry.js +8 -8
  602. package/dist/esm/calcite-tip_3.entry.js +54 -56
  603. package/dist/esm/calcite-tooltip_2.entry.js +7 -7
  604. package/dist/esm/calcite-tree_2.entry.js +8 -8
  605. package/dist/esm/calcite-value-list_2.entry.js +30 -12
  606. package/dist/esm/calcite.js +5 -5
  607. package/dist/esm/{conditionalSlot-7a623ab3.js → conditionalSlot-65d395e3.js} +13 -3
  608. package/dist/esm/{debounce-65d04f40.js → debounce-150a7fe8.js} +1 -1
  609. package/dist/esm/{dom-6ced0696.js → dom-cc5c3984.js} +4 -4
  610. package/dist/esm/{filter-a94d668f.js → filter-1ebb2c6b.js} +2 -2
  611. package/dist/esm/{floating-ui-88f3cab2.js → floating-ui-93789309.js} +4 -4
  612. package/dist/esm/{form-796899b4.js → form-255c911d.js} +3 -3
  613. package/dist/esm/{guid-4e7e998d.js → guid-f9660e6f.js} +1 -1
  614. package/dist/esm/{index-ee2154b8.js → index-d2393e84.js} +1 -1
  615. package/dist/esm/index.js +1 -1
  616. package/dist/esm/{interactive-c01b3adc.js → interactive-26a4cd50.js} +1 -1
  617. package/dist/esm/{interfaces-6e1adc71.js → interfaces-36e4a241.js} +1 -1
  618. package/dist/esm/{key-29710632.js → key-a4eb4c7a.js} +1 -1
  619. package/dist/esm/{label-d97fd95f.js → label-958c6dcb.js} +2 -2
  620. package/dist/esm/loader.js +5 -5
  621. package/dist/esm/{locale-9344d29f.js → locale-356e61ad.js} +37 -49
  622. package/dist/esm/{math-43507cd0.js → math-edfa7bd5.js} +1 -1
  623. package/dist/esm/{nonChromiumPlatformUtils-733b22ab.js → nonChromiumPlatformUtils-0826d52b.js} +6 -6
  624. package/dist/esm/{observers-3e969148.js → observers-8a9fc943.js} +1 -1
  625. package/dist/esm/{openCloseComponent-2c95053e.js → openCloseComponent-759e2351.js} +1 -1
  626. package/dist/esm/{resources-2c83579b.js → resources-03d3cf60.js} +2 -3
  627. package/dist/esm/{resources-07ad5aa9.js → resources-0fd6d659.js} +1 -1
  628. package/dist/esm/{resources-78c5b4d1.js → resources-64a95f35.js} +1 -1
  629. package/dist/esm/{resources-a8c464a5.js → resources-b9c5aaf9.js} +1 -1
  630. package/dist/esm/{resources-f36e2798.js → resources-c578caf8.js} +38 -15
  631. package/dist/esm/{resources-bc4bdc72.js → resources-d313bb62.js} +4 -5
  632. package/dist/esm/{sortable.esm-a5c12724.js → sortable.esm-6298e963.js} +1 -1
  633. package/dist/esm/{utils-e8657244.js → utils-18a922e5.js} +1 -1
  634. package/dist/extras/docs-json.json +131 -1
  635. package/dist/loader/cdn.js +1 -1
  636. package/dist/loader/index.cjs.js +1 -1
  637. package/dist/loader/index.es2017.js +1 -1
  638. package/dist/loader/index.js +1 -1
  639. package/dist/types/components/block/resources.d.ts +0 -1
  640. package/dist/types/components/date-picker/resources.d.ts +0 -1
  641. package/dist/types/components/functional/Heading.d.ts +1 -1
  642. package/dist/types/components/list-item-group/resources.d.ts +0 -1
  643. package/dist/types/components/modal/modal.d.ts +4 -4
  644. package/dist/types/components/panel/resources.d.ts +0 -1
  645. package/dist/types/components/pick-list/pick-list.d.ts +24 -0
  646. package/dist/types/components/pick-list/shared-list-logic.d.ts +4 -1
  647. package/dist/types/components/pick-list/shared-list-render.d.ts +4 -1
  648. package/dist/types/components/pick-list-group/resources.d.ts +0 -1
  649. package/dist/types/components/popover/resources.d.ts +0 -1
  650. package/dist/types/components/tip/resources.d.ts +0 -2
  651. package/dist/types/components/tip-manager/resources.d.ts +0 -1
  652. package/dist/types/components/value-list/value-list.d.ts +23 -0
  653. package/dist/types/components.d.ts +65 -1
  654. package/dist/types/preact.d.ts +4 -2
  655. package/dist/types/utils/conditionalSlot.d.ts +16 -0
  656. package/dist/types/utils/dom.d.ts +34 -0
  657. package/dist/types/utils/focusTrapComponent.d.ts +33 -0
  658. package/dist/types/utils/locale.d.ts +1 -2
  659. package/dist/types/utils/number.d.ts +13 -8
  660. package/hydrate/index.js +1453 -248
  661. package/package.json +2 -2
  662. package/dist/calcite/p-079e3c1e.js +0 -6
  663. package/dist/calcite/p-1993b247.js +0 -6
  664. package/dist/calcite/p-1a291a99.entry.js +0 -6
  665. package/dist/calcite/p-23f31b98.entry.js +0 -6
  666. package/dist/calcite/p-3a4f8c9a.entry.js +0 -6
  667. package/dist/calcite/p-5d9f0c37.entry.js +0 -6
  668. package/dist/calcite/p-8557fe8d.entry.js +0 -6
  669. package/dist/calcite/p-86c3dd63.entry.js +0 -6
  670. package/dist/calcite/p-8afa3d3c.js +0 -6
  671. package/dist/calcite/p-8d81edd4.entry.js +0 -6
  672. package/dist/calcite/p-9460a0c0.js +0 -6
  673. package/dist/calcite/p-9c6f7a63.entry.js +0 -6
  674. package/dist/calcite/p-a5fed565.entry.js +0 -6
  675. package/dist/calcite/p-b3571ee3.js +0 -6
  676. package/dist/calcite/p-e1084c73.entry.js +0 -6
  677. package/dist/components/resources3.js +0 -33
@@ -1,12 +1,12 @@
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.631
4
+ * v1.0.0-next.633
5
5
  */
6
6
  import Sortable from "sortablejs";
7
7
  import { h } from "@stencil/core";
8
8
  import { CSS, ICON_TYPES } from "./resources";
9
- import { calciteListFocusOutHandler, calciteListItemChangeHandler, calciteInternalListItemValueChangeHandler, cleanUpObserver, deselectSiblingItems, deselectRemovedItems, getItemData, handleFilter, initialize, initializeObserver, keyDownHandler, mutationObserverCallback, removeItem, selectSiblings, setFocus, setUpItems, moveItemIndex } from "../pick-list/shared-list-logic";
9
+ import { calciteListFocusOutHandler, calciteListItemChangeHandler, calciteInternalListItemValueChangeHandler, cleanUpObserver, deselectSiblingItems, deselectRemovedItems, getItemData, handleFilter, handleFilterEvent, handleInitialFilter, initialize, initializeObserver, keyDownHandler, mutationObserverCallback, removeItem, selectSiblings, setFocus, setUpItems, moveItemIndex } from "../pick-list/shared-list-logic";
10
10
  import List from "../pick-list/shared-list-render";
11
11
  import { createObserver } from "../../utils/observers";
12
12
  import { updateHostInteraction } from "../../utils/interactive";
@@ -30,6 +30,18 @@ export class ValueList {
30
30
  * When `true`, `calcite-value-list-item`s are sortable via a draggable button.
31
31
  */
32
32
  this.dragEnabled = false;
33
+ /**
34
+ * **read-only** The currently filtered items
35
+ *
36
+ * @readonly
37
+ */
38
+ this.filteredItems = [];
39
+ /**
40
+ * **read-only** The currently filtered items
41
+ *
42
+ * @readonly
43
+ */
44
+ this.filteredData = [];
33
45
  /**
34
46
  * When `true`, an input appears at the top of the component that can be used by end users to filter list items.
35
47
  */
@@ -61,10 +73,14 @@ export class ValueList {
61
73
  this.setFilterEl = (el) => {
62
74
  this.filterEl = el;
63
75
  };
76
+ this.setFilteredItems = (filteredItems) => {
77
+ this.filteredItems = filteredItems;
78
+ };
64
79
  this.deselectRemovedItems = deselectRemovedItems.bind(this);
65
80
  this.deselectSiblingItems = deselectSiblingItems.bind(this);
66
81
  this.selectSiblings = selectSiblings.bind(this);
67
82
  this.handleFilter = handleFilter.bind(this);
83
+ this.handleFilterEvent = handleFilterEvent.bind(this);
68
84
  this.getItemData = getItemData.bind(this);
69
85
  this.keyDownHandler = (event) => {
70
86
  if (event.defaultPrevented) {
@@ -125,6 +141,7 @@ export class ValueList {
125
141
  }
126
142
  componentDidLoad() {
127
143
  this.setUpDragAndDrop();
144
+ handleInitialFilter.call(this);
128
145
  }
129
146
  componentDidRender() {
130
147
  updateHostInteraction(this);
@@ -281,6 +298,53 @@ export class ValueList {
281
298
  "reflect": true,
282
299
  "defaultValue": "false"
283
300
  },
301
+ "filteredItems": {
302
+ "type": "unknown",
303
+ "mutable": true,
304
+ "complexType": {
305
+ "original": "HTMLCalciteValueListItemElement[]",
306
+ "resolved": "HTMLCalciteValueListItemElement[]",
307
+ "references": {
308
+ "HTMLCalciteValueListItemElement": {
309
+ "location": "global"
310
+ }
311
+ }
312
+ },
313
+ "required": false,
314
+ "optional": false,
315
+ "docs": {
316
+ "tags": [{
317
+ "name": "readonly",
318
+ "text": undefined
319
+ }],
320
+ "text": "**read-only** The currently filtered items"
321
+ },
322
+ "defaultValue": "[]"
323
+ },
324
+ "filteredData": {
325
+ "type": "unknown",
326
+ "mutable": true,
327
+ "complexType": {
328
+ "original": "ItemData",
329
+ "resolved": "{ label: string; description: string; metadata: Record<string, unknown>; value: string; }[]",
330
+ "references": {
331
+ "ItemData": {
332
+ "location": "import",
333
+ "path": "../pick-list/shared-list-logic"
334
+ }
335
+ }
336
+ },
337
+ "required": false,
338
+ "optional": false,
339
+ "docs": {
340
+ "tags": [{
341
+ "name": "readonly",
342
+ "text": undefined
343
+ }],
344
+ "text": "**read-only** The currently filtered items"
345
+ },
346
+ "defaultValue": "[]"
347
+ },
284
348
  "filterEnabled": {
285
349
  "type": "boolean",
286
350
  "mutable": false,
@@ -316,6 +380,23 @@ export class ValueList {
316
380
  "attribute": "filter-placeholder",
317
381
  "reflect": true
318
382
  },
383
+ "filterText": {
384
+ "type": "string",
385
+ "mutable": true,
386
+ "complexType": {
387
+ "original": "string",
388
+ "resolved": "string",
389
+ "references": {}
390
+ },
391
+ "required": false,
392
+ "optional": false,
393
+ "docs": {
394
+ "tags": [],
395
+ "text": "Text for the filter input field."
396
+ },
397
+ "attribute": "filter-text",
398
+ "reflect": true
399
+ },
319
400
  "group": {
320
401
  "type": "string",
321
402
  "mutable": false,
@@ -501,6 +582,21 @@ export class ValueList {
501
582
  "resolved": "any[]",
502
583
  "references": {}
503
584
  }
585
+ }, {
586
+ "method": "calciteListFilter",
587
+ "name": "calciteListFilter",
588
+ "bubbles": true,
589
+ "cancelable": false,
590
+ "composed": true,
591
+ "docs": {
592
+ "tags": [],
593
+ "text": "Emits when a filter has changed."
594
+ },
595
+ "complexType": {
596
+ "original": "void",
597
+ "resolved": "void",
598
+ "references": {}
599
+ }
504
600
  }];
505
601
  }
506
602
  static get methods() {
@@ -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.631
4
+ * v1.0.0-next.633
5
5
  */
6
6
  export const ICONS = {
7
7
  drag: "drag"
@@ -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.631
4
+ * v1.0.0-next.633
5
5
  */
6
6
  import { h, Host } from "@stencil/core";
7
7
  import { ICON_TYPES } from "../pick-list/resources";
@@ -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.631
4
+ * v1.0.0-next.633
5
5
  */
6
6
  export function getRoundRobinIndex(index, total) {
7
7
  return (index + total) % total;
@@ -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.631
4
+ * v1.0.0-next.633
5
5
  */
6
6
  import { forceUpdate } from "@stencil/core";
7
7
  import { createObserver } from "./observers";
@@ -12,6 +12,11 @@ const observerOptions = { childList: true };
12
12
  * Helper to set up a conditional slot component on connectedCallback.
13
13
  *
14
14
  * @param component
15
+ * @deprecated Use `onSlotchange` event with `slotChangeHasAssignedElement` DOM utility instead.
16
+ *
17
+ * ```
18
+ * <slot onSlotchange={(event) => this.mySlotHasElement = slotChangeHasAssignedElement(event)} />}
19
+ * ```
15
20
  */
16
21
  export function connectConditionalSlotComponent(component) {
17
22
  if (!mutationObserver) {
@@ -23,6 +28,11 @@ export function connectConditionalSlotComponent(component) {
23
28
  * Helper to tear down a conditional slot component on disconnectedCallback.
24
29
  *
25
30
  * @param component
31
+ * @deprecated Use `onSlotchange` event with `slotChangeHasAssignedElement` DOM utility instead.
32
+ *
33
+ * ```
34
+ * <slot onSlotchange={(event) => this.mySlotHasElement = slotChangeHasAssignedElement(event)} />}
35
+ * ```
26
36
  */
27
37
  export function disconnectConditionalSlotComponent(component) {
28
38
  observed.delete(component.el);
@@ -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.631
4
+ * v1.0.0-next.633
5
5
  */
6
6
  /**
7
7
  * This module helps users provide custom configuration for component internals.
@@ -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.631
4
+ * v1.0.0-next.633
5
5
  */
6
6
  import { numberStringFormatter } from "./locale";
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.631
4
+ * v1.0.0-next.633
5
5
  */
6
6
  import { CSS_UTILITY } from "./resources";
7
7
  import { guid } from "./guid";
@@ -193,6 +193,34 @@ export function intersects(rect1, rect2) {
193
193
  export function toAriaBoolean(value) {
194
194
  return Boolean(value).toString();
195
195
  }
196
+ /**
197
+ * This helper returns `true` if the target `slot` element from the `onSlotchange` event has an assigned element.
198
+ *
199
+ * ```
200
+ * <slot onSlotchange={(event) => this.mySlotHasElement = slotChangeHasAssignedElement(event)} />}
201
+ * ```
202
+ *
203
+ * @param event
204
+ * @returns {boolean} Whether the slot has any assigned elements.
205
+ */
206
+ export function slotChangeHasAssignedElement(event) {
207
+ return !!slotChangeGetAssignedElements(event).length;
208
+ }
209
+ /**
210
+ * This helper returns the assigned elements on a `slot` element from the `onSlotchange` event.
211
+ *
212
+ * ```
213
+ * <slot onSlotchange={(event) => this.mySlotElements = slotChangeGetAssignedElements(event)} />}
214
+ * ```
215
+ *
216
+ * @param event
217
+ * @returns {boolean} Whether the slot has any assigned elements.
218
+ */
219
+ export function slotChangeGetAssignedElements(event) {
220
+ return event.target.assignedElements({
221
+ flatten: true
222
+ });
223
+ }
196
224
  /**
197
225
  * This helper returns true if the pointer event fired from the primary button of the device.
198
226
  *
@@ -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.631
4
+ * v1.0.0-next.633
5
5
  */
6
6
  import { escapeRegExp, forIn } from "lodash-es";
7
7
  export const filter = (data, value) => {
@@ -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.631
4
+ * v1.0.0-next.633
5
5
  */
6
6
  import { rectToClientRect } from "@floating-ui/core";
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.631
4
+ * v1.0.0-next.633
5
5
  */
6
6
  import { arrow, autoPlacement, autoUpdate, computePosition, flip, hide, offset, platform, shift } from "@floating-ui/dom";
7
7
  import { closestElementCrossShadowBoundary, getElementDir } from "./dom";
@@ -0,0 +1,53 @@
1
+ /*!
2
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
+ * v1.0.0-next.633
5
+ */
6
+ import { createFocusTrap } from "focus-trap";
7
+ import { focusElement } from "./dom";
8
+ /**
9
+ * Helper to set up focus trap component.
10
+ *
11
+ * @param component
12
+ */
13
+ export function connectFocusTrap(component) {
14
+ const { focusTrapEl } = component;
15
+ if (!focusTrapEl) {
16
+ return;
17
+ }
18
+ if (focusTrapEl.tabIndex == null) {
19
+ focusTrapEl.tabIndex = -1;
20
+ }
21
+ const focusTrapOptions = {
22
+ allowOutsideClick: true,
23
+ clickOutsideDeactivates: false,
24
+ escapeDeactivates: false,
25
+ fallbackFocus: focusTrapEl,
26
+ setReturnFocus: (el) => {
27
+ focusElement(el);
28
+ return false;
29
+ },
30
+ tabbableOptions: {
31
+ getShadowRoot: true
32
+ }
33
+ };
34
+ component.focusTrap = createFocusTrap(focusTrapEl, focusTrapOptions);
35
+ }
36
+ /**
37
+ * Helper to activate focus trap component.
38
+ *
39
+ * @param component
40
+ */
41
+ export function activateFocusTrap(component) {
42
+ var _a;
43
+ (_a = component.focusTrap) === null || _a === void 0 ? void 0 : _a.activate();
44
+ }
45
+ /**
46
+ * Helper to tear deactivate focus trap component.
47
+ *
48
+ * @param component
49
+ */
50
+ export function deactivateFocusTrap(component) {
51
+ var _a;
52
+ (_a = component.focusTrap) === null || _a === void 0 ? void 0 : _a.deactivate();
53
+ }
@@ -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.631
4
+ * v1.0.0-next.633
5
5
  */
6
6
  import { closestElementCrossShadowBoundary } from "./dom";
7
7
  import { h } from "@stencil/core";
@@ -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.631
4
+ * v1.0.0-next.633
5
5
  */
6
6
  import { createObserver } from "./observers";
7
7
  const allowedGlobalAttributes = ["lang"];
@@ -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.631
4
+ * v1.0.0-next.633
5
5
  */
6
6
  import { initThemeChangeEvent } from "./theme";
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.631
4
+ * v1.0.0-next.633
5
5
  */
6
6
  function gen(counts) {
7
7
  return counts
@@ -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.631
4
+ * v1.0.0-next.633
5
5
  */
6
6
  function noopClick() {
7
7
  /** noop */
@@ -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.631
4
+ * v1.0.0-next.633
5
5
  */
6
6
  export function isActivationKey(key) {
7
7
  return key === "Enter" || key === " ";
@@ -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.631
4
+ * v1.0.0-next.633
5
5
  */
6
6
  import { closestElementCrossShadowBoundary, queryElementRoots } from "./dom";
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.631
4
+ * v1.0.0-next.633
5
5
  */
6
6
  import { BigDecimal, isValidNumber, sanitizeExponentialNumberString } from "./number";
7
7
  import { createObserver } from "./observers";
@@ -188,7 +188,7 @@ function getLocale(component) {
188
188
  /**
189
189
  * This util formats and parses numbers for localization
190
190
  */
191
- class NumberStringFormat {
191
+ export class NumberStringFormat {
192
192
  constructor() {
193
193
  this.delocalize = (numberString) =>
194
194
  // For performance, (de)localization is skipped if the formatter isn't initialized.
@@ -205,7 +205,7 @@ class NumberStringFormat {
205
205
  this.localize = (numberString) => this._numberFormatOptions
206
206
  ? sanitizeExponentialNumberString(numberString, (nonExpoNumString) => isValidNumber(nonExpoNumString.trim())
207
207
  ? new BigDecimal(nonExpoNumString.trim())
208
- .format(this._numberFormatter)
208
+ .format(this)
209
209
  .replace(new RegExp(`[${this._actualGroup}]`, "g"), this._group)
210
210
  : nonExpoNumString)
211
211
  : numberString;
@@ -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.631
4
+ * v1.0.0-next.633
5
5
  */
6
6
  export const clamp = (value, min, max) => Math.max(min, Math.min(value, max));
7
7
  export const decimalPlaces = (value) => {
@@ -1,13 +1,18 @@
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.631
4
+ * v1.0.0-next.633
5
5
  */
6
6
  import { numberKeys } from "./key";
7
- import { numberStringFormatter } from "./locale";
7
+ const defaultMinusSignRegex = new RegExp("-", "g");
8
+ const unnecessaryDecimalRegex = new RegExp("\\.?0+$");
8
9
  // adopted from https://stackoverflow.com/a/66939244
9
10
  export class BigDecimal {
10
11
  constructor(input) {
12
+ this.add = (num) => BigDecimal.fromBigInt(this.value + new BigDecimal(num).value);
13
+ this.subtract = (num) => BigDecimal.fromBigInt(this.value - new BigDecimal(num).value);
14
+ this.multiply = (num) => BigDecimal._divRound(this.value * new BigDecimal(num).value, BigDecimal.SHIFT);
15
+ this.divide = (num) => BigDecimal._divRound(this.value * BigDecimal.SHIFT, new BigDecimal(num).value);
11
16
  if (input instanceof BigDecimal) {
12
17
  return input;
13
18
  }
@@ -17,65 +22,47 @@ export class BigDecimal {
17
22
  BigInt(BigDecimal.ROUNDED && decimals[BigDecimal.DECIMALS] >= "5");
18
23
  this.isNegative = input.charAt(0) === "-";
19
24
  }
20
- static _divRound(dividend, divisor) {
21
- return BigDecimal.fromBigInt(dividend / divisor + (BigDecimal.ROUNDED ? ((dividend * BigInt(2)) / divisor) % BigInt(2) : BigInt(0)));
22
- }
23
- static fromBigInt(bigint) {
24
- return Object.assign(Object.create(BigDecimal.prototype), { value: bigint });
25
- }
26
- toString() {
25
+ getIntegersAndDecimals() {
27
26
  const s = this.value
28
27
  .toString()
29
- .replace(new RegExp("-", "g"), "")
28
+ .replace(defaultMinusSignRegex, "")
30
29
  .padStart(BigDecimal.DECIMALS + 1, "0");
31
- const i = s.slice(0, -BigDecimal.DECIMALS);
32
- const d = s.slice(-BigDecimal.DECIMALS).replace(/\.?0+$/, "");
33
- const value = i.concat(d.length ? "." + d : "");
34
- return `${this.isNegative ? "-" : ""}${value}`;
30
+ const integers = s.slice(0, -BigDecimal.DECIMALS);
31
+ const decimals = s.slice(-BigDecimal.DECIMALS).replace(unnecessaryDecimalRegex, "");
32
+ return { integers, decimals };
33
+ }
34
+ toString() {
35
+ const { integers, decimals } = this.getIntegersAndDecimals();
36
+ return `${this.isNegative ? "-" : ""}${integers}${decimals.length ? "." + decimals : ""}`;
35
37
  }
36
38
  formatToParts(formatter) {
37
- const s = this.value
38
- .toString()
39
- .replace(new RegExp("-", "g"), "")
40
- .padStart(BigDecimal.DECIMALS + 1, "0");
41
- const i = s.slice(0, -BigDecimal.DECIMALS);
42
- const d = s.slice(-BigDecimal.DECIMALS).replace(/\.?0+$/, "");
43
- const parts = formatter.formatToParts(BigInt(i));
44
- this.isNegative && parts.unshift({ type: "minusSign", value: numberStringFormatter.minusSign });
45
- if (d.length) {
46
- parts.push({ type: "decimal", value: numberStringFormatter.decimal });
47
- d.split("").forEach((char) => parts.push({ type: "fraction", value: char }));
39
+ const { integers, decimals } = this.getIntegersAndDecimals();
40
+ const parts = formatter.numberFormatter.formatToParts(BigInt(integers));
41
+ this.isNegative && parts.unshift({ type: "minusSign", value: formatter.minusSign });
42
+ if (decimals.length) {
43
+ parts.push({ type: "decimal", value: formatter.decimal });
44
+ decimals.split("").forEach((char) => parts.push({ type: "fraction", value: char }));
48
45
  }
49
46
  return parts;
50
47
  }
51
48
  format(formatter) {
52
- const s = this.value
53
- .toString()
54
- .replace(new RegExp("-", "g"), "")
55
- .padStart(BigDecimal.DECIMALS + 1, "0");
56
- const i = s.slice(0, -BigDecimal.DECIMALS);
57
- const d = s.slice(-BigDecimal.DECIMALS).replace(/\.?0+$/, "");
58
- const iFormatted = `${this.isNegative ? numberStringFormatter.minusSign : ""}${formatter.format(BigInt(i))}`;
59
- const dFormatted = d.length ? `${numberStringFormatter.decimal}${formatter.format(BigInt(d))}` : "";
60
- return `${iFormatted}${dFormatted}`;
61
- }
62
- add(num) {
63
- return BigDecimal.fromBigInt(this.value + new BigDecimal(num).value);
64
- }
65
- subtract(num) {
66
- return BigDecimal.fromBigInt(this.value - new BigDecimal(num).value);
67
- }
68
- multiply(num) {
69
- return BigDecimal._divRound(this.value * new BigDecimal(num).value, BigDecimal.SHIFT);
70
- }
71
- divide(num) {
72
- return BigDecimal._divRound(this.value * BigDecimal.SHIFT, new BigDecimal(num).value);
49
+ const { integers, decimals } = this.getIntegersAndDecimals();
50
+ const integersFormatted = `${this.isNegative ? formatter.minusSign : ""}${formatter.numberFormatter.format(BigInt(integers))}`;
51
+ const decimalsFormatted = decimals.length
52
+ ? `${formatter.decimal}${decimals
53
+ .split("")
54
+ .map((char) => formatter.numberFormatter.format(Number(char)))
55
+ .join("")}`
56
+ : "";
57
+ return `${integersFormatted}${decimalsFormatted}`;
73
58
  }
74
59
  }
75
60
  // Configuration: constants
76
61
  BigDecimal.DECIMALS = 100; // number of decimals on all instances
77
62
  BigDecimal.ROUNDED = true; // numbers are truncated (false) or rounded (true)
78
63
  BigDecimal.SHIFT = BigInt("1" + "0".repeat(BigDecimal.DECIMALS)); // derived constant
64
+ BigDecimal._divRound = (dividend, divisor) => BigDecimal.fromBigInt(dividend / divisor + (BigDecimal.ROUNDED ? ((dividend * BigInt(2)) / divisor) % BigInt(2) : BigInt(0)));
65
+ BigDecimal.fromBigInt = (bigint) => Object.assign(Object.create(BigDecimal.prototype), { value: bigint });
79
66
  export function isValidNumber(numberString) {
80
67
  return !(!numberString || isNaN(Number(numberString)));
81
68
  }
@@ -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.631
4
+ * v1.0.0-next.633
5
5
  */
6
6
  import { Build } from "@stencil/core";
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.631
4
+ * v1.0.0-next.633
5
5
  */
6
6
  const componentToTransitionListeners = new WeakMap();
7
7
  function transitionStart(event) {
@@ -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.631
4
+ * v1.0.0-next.633
5
5
  */
6
6
  export const autoTheme = "calcite-theme-auto";
7
7
  export const darkTheme = "calcite-theme-dark";
@@ -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.631
4
+ * v1.0.0-next.633
5
5
  */
6
6
  import { getAssetPath } from "@stencil/core";
7
7
  import { getSupportedLocale } from "./locale";
@@ -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.631
4
+ * v1.0.0-next.633
5
5
  */
6
6
  import { autoTheme, darkTheme } from "./resources";
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.631
4
+ * v1.0.0-next.633
5
5
  */
6
6
  import { isValidNumber } from "./number";
7
7
  import { getSupportedLocale, getSupportedNumberingSystem } from "./locale";