@esri/calcite-components 1.0.0-next.636 → 1.0.0-next.638

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 (676) 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-f1c98c3e.entry.js → p-02047954.entry.js} +2 -2
  4. package/dist/calcite/{p-2437f9d8.js → p-038792c7.js} +1 -1
  5. package/dist/calcite/{p-67e64dc2.js → p-038a6fa4.js} +1 -1
  6. package/dist/calcite/{p-ea8f42de.entry.js → p-06812611.entry.js} +2 -2
  7. package/dist/calcite/{p-baf10b3e.entry.js → p-0729c007.entry.js} +2 -2
  8. package/dist/calcite/{p-cb623fb2.entry.js → p-09a131a3.entry.js} +2 -2
  9. package/dist/calcite/{p-86791119.entry.js → p-0deef856.entry.js} +2 -2
  10. package/dist/calcite/p-121c40d1.entry.js +6 -0
  11. package/dist/calcite/{p-e5a1b041.entry.js → p-1883d2c4.entry.js} +2 -2
  12. package/dist/calcite/{p-ac05b6c0.js → p-1b727713.js} +2 -2
  13. package/dist/calcite/{p-a994432e.entry.js → p-1ef7d617.entry.js} +2 -2
  14. package/dist/calcite/{p-fb990403.js → p-218a46f2.js} +2 -2
  15. package/dist/calcite/{p-b44544d1.entry.js → p-2498c02c.entry.js} +2 -2
  16. package/dist/calcite/{p-e7f64668.entry.js → p-2a3aa528.entry.js} +2 -2
  17. package/dist/calcite/{p-a3fe057c.js → p-2b541622.js} +2 -2
  18. package/dist/calcite/{p-5a614bb5.entry.js → p-301d0592.entry.js} +2 -2
  19. package/dist/calcite/{p-ff739aac.entry.js → p-39cb0f06.entry.js} +2 -2
  20. package/dist/calcite/p-3a9117af.entry.js +6 -0
  21. package/dist/calcite/p-41588a74.entry.js +6 -0
  22. package/dist/calcite/{p-57562b21.entry.js → p-4450921d.entry.js} +2 -2
  23. package/dist/calcite/{p-d34b3464.entry.js → p-49fcfa79.entry.js} +2 -2
  24. package/dist/calcite/{p-7cc61e30.entry.js → p-5281740b.entry.js} +2 -2
  25. package/dist/calcite/{p-769b7383.entry.js → p-56487e7c.entry.js} +2 -2
  26. package/dist/calcite/{p-33f5b8e6.entry.js → p-5839e44e.entry.js} +2 -2
  27. package/dist/calcite/{p-61cd280f.entry.js → p-63de534f.entry.js} +2 -2
  28. package/dist/calcite/{p-a8bb1274.js → p-653bacd0.js} +1 -1
  29. package/dist/calcite/{p-86d3b233.js → p-65610a13.js} +1 -1
  30. package/dist/calcite/{p-e87dcb61.entry.js → p-688afc51.entry.js} +2 -2
  31. package/dist/calcite/p-6ee73cef.entry.js +6 -0
  32. package/dist/calcite/{p-06e408e6.entry.js → p-707acddc.entry.js} +2 -2
  33. package/dist/calcite/{p-19966f31.js → p-707b571f.js} +1 -1
  34. package/dist/calcite/{p-771abcbf.js → p-72733b4b.js} +2 -2
  35. package/dist/calcite/{p-7a3df001.entry.js → p-751d0d84.entry.js} +2 -2
  36. package/dist/calcite/{p-ee221109.entry.js → p-773c0aec.entry.js} +2 -2
  37. package/dist/calcite/{p-968cfb07.entry.js → p-782710de.entry.js} +2 -2
  38. package/dist/calcite/{p-9ccc1023.js → p-7b26c461.js} +1 -1
  39. package/dist/calcite/{p-6936c2d5.entry.js → p-7bb57ce6.entry.js} +2 -2
  40. package/dist/calcite/{p-fe73616f.entry.js → p-7bdea57c.entry.js} +2 -2
  41. package/dist/calcite/p-7c01cc41.entry.js +6 -0
  42. package/dist/calcite/{p-dea1b58f.entry.js → p-7d4afae8.entry.js} +2 -2
  43. package/dist/calcite/{p-da8dd4c2.entry.js → p-84a41ede.entry.js} +2 -2
  44. package/dist/calcite/{p-ad8429bc.js → p-85b95a93.js} +1 -1
  45. package/dist/calcite/{p-71ad5676.entry.js → p-8792c54d.entry.js} +2 -2
  46. package/dist/calcite/{p-70b4e4ec.js → p-8acdb692.js} +2 -2
  47. package/dist/calcite/{p-57c084d2.js → p-8bfc8600.js} +2 -2
  48. package/dist/calcite/{p-60dd0565.entry.js → p-8f5b7ad7.entry.js} +2 -2
  49. package/dist/calcite/{p-98f019e1.entry.js → p-90bf4991.entry.js} +2 -2
  50. package/dist/calcite/{p-eeeee029.js → p-91b6a760.js} +1 -1
  51. package/dist/calcite/{p-a983d04b.entry.js → p-92853c92.entry.js} +2 -2
  52. package/dist/calcite/{p-333aa3fe.entry.js → p-929dd822.entry.js} +2 -2
  53. package/dist/calcite/{p-8a5f0d75.entry.js → p-97cddd85.entry.js} +2 -2
  54. package/dist/calcite/{p-3bcd7786.entry.js → p-9b807a5d.entry.js} +2 -2
  55. package/dist/calcite/{p-5a12a68e.entry.js → p-9c604442.entry.js} +2 -2
  56. package/dist/calcite/{p-0acb8cbe.js → p-9dcbec99.js} +2 -2
  57. package/dist/calcite/{p-ac445235.js → p-9e612ab9.js} +2 -2
  58. package/dist/calcite/{p-67ab44c2.entry.js → p-a1f3fb5d.entry.js} +2 -2
  59. package/dist/calcite/{p-edd4fc77.js → p-a4b4702f.js} +2 -2
  60. package/dist/calcite/p-a50474ff.js +6 -0
  61. package/dist/calcite/{p-ac7f4630.entry.js → p-afdc4ab2.entry.js} +2 -2
  62. package/dist/calcite/{p-0fc28e03.js → p-b0956c25.js} +1 -1
  63. package/dist/calcite/{p-2036d2fc.entry.js → p-b1cd14ff.entry.js} +2 -2
  64. package/dist/calcite/{p-5e5a9beb.entry.js → p-b2652091.entry.js} +2 -2
  65. package/dist/calcite/{p-514a00d8.entry.js → p-b5f23dca.entry.js} +2 -2
  66. package/dist/calcite/{p-b41e7e3a.js → p-b77440b4.js} +1 -1
  67. package/dist/calcite/{p-1bb7c568.entry.js → p-bb2cc5fd.entry.js} +2 -2
  68. package/dist/calcite/{p-859b6e39.entry.js → p-bf65c472.entry.js} +2 -2
  69. package/dist/calcite/{p-cac51a71.js → p-c31e5366.js} +2 -2
  70. package/dist/calcite/{p-4aced9e8.js → p-c48a762f.js} +1 -1
  71. package/dist/calcite/{p-00a97531.entry.js → p-c700cdb2.entry.js} +2 -2
  72. package/dist/calcite/{p-cfc1f51e.entry.js → p-c719f831.entry.js} +2 -2
  73. package/dist/calcite/{p-c87ae805.js → p-c7317507.js} +2 -2
  74. package/dist/calcite/{p-6ae0e5f3.js → p-c95e2b62.js} +1 -1
  75. package/dist/calcite/{p-a9d52a09.entry.js → p-cb0ac55a.entry.js} +2 -2
  76. package/dist/calcite/{p-13847681.entry.js → p-d00d92a6.entry.js} +2 -2
  77. package/dist/calcite/{p-753870d8.js → p-d1e4d33a.js} +1 -1
  78. package/dist/calcite/{p-f378eddf.entry.js → p-d256868d.entry.js} +2 -2
  79. package/dist/calcite/{p-5473e287.js → p-d374a27a.js} +1 -1
  80. package/dist/calcite/{p-de57d2c2.js → p-d3ebd2b4.js} +1 -1
  81. package/dist/calcite/p-de80cfeb.entry.js +6 -0
  82. package/dist/calcite/p-de8c0c8b.js +6 -0
  83. package/dist/calcite/{p-e5e9ccfe.js → p-dff92df6.js} +1 -1
  84. package/dist/calcite/{p-366980c1.js → p-e23682cb.js} +1 -1
  85. package/dist/calcite/{p-bf88462c.entry.js → p-e2bf34d5.entry.js} +2 -2
  86. package/dist/calcite/{p-02b1cbd1.entry.js → p-e4cc239e.entry.js} +2 -2
  87. package/dist/calcite/{p-8f02f472.entry.js → p-e593ff8e.entry.js} +2 -2
  88. package/dist/calcite/{p-26102edc.js → p-e8b253f8.js} +2 -2
  89. package/dist/calcite/{p-4c679a22.entry.js → p-eb04cc68.entry.js} +2 -2
  90. package/dist/calcite/{p-44006b68.entry.js → p-f0895d0c.entry.js} +2 -2
  91. package/dist/calcite/{p-53a19ef1.entry.js → p-f40b6e73.entry.js} +2 -2
  92. package/dist/calcite/{p-3cce5c8b.entry.js → p-f65834ce.entry.js} +2 -2
  93. package/dist/calcite/{p-8c770d77.entry.js → p-fc2d386e.entry.js} +2 -2
  94. package/dist/cjs/{ExpandToggle-54255b81.js → ExpandToggle-eec33090.js} +5 -5
  95. package/dist/cjs/{Heading-b526ff45.js → Heading-a5a05878.js} +2 -2
  96. package/dist/cjs/{app-globals-fba1cf21.js → app-globals-27fd708a.js} +2 -2
  97. package/dist/cjs/{array-dd1b7450.js → array-45177d9d.js} +1 -1
  98. package/dist/cjs/calcite-accordion_2.cjs.entry.js +7 -7
  99. package/dist/cjs/calcite-action-bar.cjs.entry.js +12 -12
  100. package/dist/cjs/calcite-action-group.cjs.entry.js +9 -9
  101. package/dist/cjs/calcite-action-menu.cjs.entry.js +9 -9
  102. package/dist/cjs/calcite-action-pad.cjs.entry.js +11 -11
  103. package/dist/cjs/calcite-action.cjs.entry.js +8 -8
  104. package/dist/cjs/calcite-alert.cjs.entry.js +24 -13
  105. package/dist/cjs/calcite-avatar.cjs.entry.js +6 -6
  106. package/dist/cjs/calcite-block_2.cjs.entry.js +11 -11
  107. package/dist/cjs/calcite-button.cjs.entry.js +10 -10
  108. package/dist/cjs/calcite-card.cjs.entry.js +7 -7
  109. package/dist/cjs/calcite-checkbox.cjs.entry.js +10 -10
  110. package/dist/cjs/calcite-chip.cjs.entry.js +8 -8
  111. package/dist/cjs/calcite-color-picker_3.cjs.entry.js +11 -11
  112. package/dist/cjs/calcite-combobox_3.cjs.entry.js +15 -15
  113. package/dist/cjs/calcite-date-picker_4.cjs.entry.js +11 -11
  114. package/dist/cjs/calcite-dropdown_3.cjs.entry.js +12 -12
  115. package/dist/cjs/calcite-fab.cjs.entry.js +7 -7
  116. package/dist/cjs/calcite-filter.cjs.entry.js +9 -9
  117. package/dist/cjs/calcite-flow-item.cjs.entry.js +8 -8
  118. package/dist/cjs/calcite-flow.cjs.entry.js +3 -3
  119. package/dist/cjs/calcite-graph_2.cjs.entry.js +13 -13
  120. package/dist/cjs/calcite-handle.cjs.entry.js +6 -6
  121. package/dist/cjs/calcite-icon.cjs.entry.js +6 -6
  122. package/dist/cjs/calcite-inline-editable.cjs.entry.js +9 -9
  123. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +16 -16
  124. package/dist/cjs/calcite-input-message.cjs.entry.js +5 -5
  125. package/dist/cjs/calcite-input-number.cjs.entry.js +13 -13
  126. package/dist/cjs/calcite-input-text.cjs.entry.js +10 -10
  127. package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +12 -12
  128. package/dist/cjs/calcite-input.cjs.entry.js +13 -13
  129. package/dist/cjs/calcite-label.cjs.entry.js +6 -6
  130. package/dist/cjs/calcite-link.cjs.entry.js +7 -7
  131. package/dist/cjs/calcite-list_3.cjs.entry.js +601 -80
  132. package/dist/cjs/calcite-loader.cjs.entry.js +3 -3
  133. package/dist/cjs/calcite-modal.cjs.entry.js +10 -10
  134. package/dist/cjs/calcite-notice.cjs.entry.js +9 -9
  135. package/dist/cjs/calcite-option_3.cjs.entry.js +10 -10
  136. package/dist/cjs/calcite-pagination.cjs.entry.js +8 -8
  137. package/dist/cjs/calcite-panel.cjs.entry.js +11 -11
  138. package/dist/cjs/calcite-pick-list_3.cjs.entry.js +13 -13
  139. package/dist/cjs/calcite-popover_2.cjs.entry.js +13 -13
  140. package/dist/cjs/calcite-progress.cjs.entry.js +2 -2
  141. package/dist/cjs/calcite-radio-button-group.cjs.entry.js +3 -3
  142. package/dist/cjs/calcite-radio-button.cjs.entry.js +10 -10
  143. package/dist/cjs/calcite-radio-group_2.cjs.entry.js +9 -9
  144. package/dist/cjs/calcite-rating.cjs.entry.js +10 -10
  145. package/dist/cjs/calcite-scrim.cjs.entry.js +2 -2
  146. package/dist/cjs/calcite-shell_3.cjs.entry.js +8 -8
  147. package/dist/cjs/calcite-sortable-list.cjs.entry.js +5 -5
  148. package/dist/cjs/calcite-split-button.cjs.entry.js +3 -3
  149. package/dist/cjs/calcite-stepper_2.cjs.entry.js +10 -10
  150. package/dist/cjs/calcite-switch.cjs.entry.js +10 -10
  151. package/dist/cjs/calcite-tab_4.cjs.entry.js +7 -7
  152. package/dist/cjs/calcite-tile-select_2.cjs.entry.js +5 -5
  153. package/dist/cjs/calcite-tile.cjs.entry.js +8 -8
  154. package/dist/cjs/calcite-tip_3.cjs.entry.js +8 -8
  155. package/dist/cjs/calcite-tooltip_2.cjs.entry.js +8 -8
  156. package/dist/cjs/calcite-tree_2.cjs.entry.js +8 -8
  157. package/dist/cjs/calcite-value-list_2.cjs.entry.js +13 -13
  158. package/dist/cjs/calcite.cjs.js +5 -5
  159. package/dist/cjs/{conditionalSlot-8e686586.js → conditionalSlot-e88e2e59.js} +3 -3
  160. package/dist/cjs/{debounce-5d63b0c7.js → debounce-891f5371.js} +1 -1
  161. package/dist/cjs/{dom-43e4f26f.js → dom-174e4de3.js} +32 -3
  162. package/dist/cjs/{filter-2dbf260f.js → filter-00b1cc29.js} +2 -2
  163. package/dist/cjs/{floating-ui-336cfe0f.js → floating-ui-92ee9a7e.js} +4 -4
  164. package/dist/cjs/{focusTrapComponent-cb5f94cb.js → focusTrapComponent-230b759a.js} +2 -2
  165. package/dist/cjs/{form-daaa94a8.js → form-d3d45193.js} +3 -3
  166. package/dist/cjs/{guid-00fb951d.js → guid-bb54b501.js} +1 -1
  167. package/dist/cjs/{index-06711fd4.js → index-e480dbe3.js} +1 -1
  168. package/dist/cjs/index.cjs.js +1 -1
  169. package/dist/cjs/{interactive-251a436b.js → interactive-04cf9beb.js} +1 -1
  170. package/dist/cjs/{interfaces-742bf539.js → interfaces-4b80f7e4.js} +1 -1
  171. package/dist/cjs/{key-24715b4c.js → key-11cdfcbf.js} +1 -1
  172. package/dist/cjs/{label-2d0404d3.js → label-60971c84.js} +2 -2
  173. package/dist/cjs/{loadable-93fa1819.js → loadable-c843838f.js} +1 -1
  174. package/dist/cjs/loader.cjs.js +5 -5
  175. package/dist/cjs/{locale-f1bc7145.js → locale-5d4c39fc.js} +4 -4
  176. package/dist/cjs/{math-d33c1733.js → math-d42026cc.js} +1 -1
  177. package/dist/cjs/{nonChromiumPlatformUtils-f8e45f33.js → nonChromiumPlatformUtils-162a5176.js} +6 -6
  178. package/dist/cjs/{observers-9985d188.js → observers-a2904f3c.js} +1 -1
  179. package/dist/cjs/{openCloseComponent-6000b95b.js → openCloseComponent-5a63ad6b.js} +1 -1
  180. package/dist/cjs/{resources-ac53ff3b.js → resources-0bb3a950.js} +1 -1
  181. package/dist/cjs/{resources-00983dc5.js → resources-18fb09be.js} +5 -5
  182. package/dist/cjs/{resources-fd8df720.js → resources-68a19f27.js} +1 -1
  183. package/dist/cjs/{resources-69981161.js → resources-b26a603c.js} +3 -3
  184. package/dist/cjs/{resources-496495ef.js → resources-b6e8bcc5.js} +1 -1
  185. package/dist/cjs/{resources-40a41e6b.js → resources-eb7b7720.js} +1 -1
  186. package/dist/cjs/{sortable.esm-15bf7700.js → sortable.esm-918eeb0a.js} +1 -1
  187. package/dist/cjs/{utils-c9f37d0d.js → utils-810aac67.js} +1 -1
  188. package/dist/collection/components/accordion/accordion.js +1 -1
  189. package/dist/collection/components/accordion-item/accordion-item.js +1 -1
  190. package/dist/collection/components/accordion-item/resources.js +1 -1
  191. package/dist/collection/components/action/action.js +1 -1
  192. package/dist/collection/components/action/resources.js +1 -1
  193. package/dist/collection/components/action-bar/action-bar.js +1 -1
  194. package/dist/collection/components/action-bar/resources.js +1 -1
  195. package/dist/collection/components/action-bar/utils.js +1 -1
  196. package/dist/collection/components/action-group/action-group.js +1 -1
  197. package/dist/collection/components/action-group/resources.js +1 -1
  198. package/dist/collection/components/action-menu/action-menu.js +1 -1
  199. package/dist/collection/components/action-menu/resources.js +1 -1
  200. package/dist/collection/components/action-pad/action-pad.js +1 -1
  201. package/dist/collection/components/action-pad/resources.js +1 -1
  202. package/dist/collection/components/alert/alert.css +9 -0
  203. package/dist/collection/components/alert/alert.js +12 -4
  204. package/dist/collection/components/alert/interfaces.js +1 -1
  205. package/dist/collection/components/alert/resources.js +3 -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.css +1 -1
  209. package/dist/collection/components/block/block.js +1 -1
  210. package/dist/collection/components/block/resources.js +1 -1
  211. package/dist/collection/components/block-section/block-section.js +1 -1
  212. package/dist/collection/components/block-section/resources.js +1 -1
  213. package/dist/collection/components/button/button.js +1 -1
  214. package/dist/collection/components/button/resources.js +1 -1
  215. package/dist/collection/components/card/card.js +1 -1
  216. package/dist/collection/components/card/resources.js +1 -1
  217. package/dist/collection/components/checkbox/checkbox.js +1 -1
  218. package/dist/collection/components/chip/chip.js +1 -1
  219. package/dist/collection/components/chip/resources.js +1 -1
  220. package/dist/collection/components/color-picker/color-picker.js +1 -1
  221. package/dist/collection/components/color-picker/resources.js +1 -1
  222. package/dist/collection/components/color-picker/utils.js +1 -1
  223. package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.js +1 -1
  224. package/dist/collection/components/color-picker-hex-input/resources.js +1 -1
  225. package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +1 -1
  226. package/dist/collection/components/color-picker-swatch/resources.js +1 -1
  227. package/dist/collection/components/combobox/combobox.js +1 -1
  228. package/dist/collection/components/combobox/resources.js +1 -1
  229. package/dist/collection/components/combobox/utils.js +1 -1
  230. package/dist/collection/components/combobox-item/combobox-item.js +1 -1
  231. package/dist/collection/components/combobox-item/resources.js +1 -1
  232. package/dist/collection/components/combobox-item-group/combobox-item-group.js +1 -1
  233. package/dist/collection/components/combobox-item-group/resources.js +1 -1
  234. package/dist/collection/components/date-picker/date-picker.js +1 -1
  235. package/dist/collection/components/date-picker/resources.js +1 -1
  236. package/dist/collection/components/date-picker/utils.js +1 -1
  237. package/dist/collection/components/date-picker-day/date-picker-day.js +1 -1
  238. package/dist/collection/components/date-picker-month/date-picker-month.js +1 -1
  239. package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +1 -1
  240. package/dist/collection/components/date-picker-month-header/resources.js +1 -1
  241. package/dist/collection/components/dropdown/dropdown.js +1 -1
  242. package/dist/collection/components/dropdown/resources.js +1 -1
  243. package/dist/collection/components/dropdown-group/dropdown-group.js +1 -1
  244. package/dist/collection/components/dropdown-group/resources.js +1 -1
  245. package/dist/collection/components/dropdown-item/dropdown-item.js +1 -1
  246. package/dist/collection/components/dropdown-item/resources.js +1 -1
  247. package/dist/collection/components/fab/fab.js +1 -1
  248. package/dist/collection/components/fab/resources.js +1 -1
  249. package/dist/collection/components/filter/filter.js +1 -1
  250. package/dist/collection/components/filter/resources.js +1 -1
  251. package/dist/collection/components/flow/flow.js +1 -1
  252. package/dist/collection/components/flow/resources.js +1 -1
  253. package/dist/collection/components/flow-item/flow-item.js +1 -1
  254. package/dist/collection/components/flow-item/resources.js +1 -1
  255. package/dist/collection/components/functional/ExpandToggle.js +1 -1
  256. package/dist/collection/components/functional/Heading.js +1 -1
  257. package/dist/collection/components/graph/graph.js +1 -1
  258. package/dist/collection/components/graph/util.js +1 -1
  259. package/dist/collection/components/handle/handle.js +1 -1
  260. package/dist/collection/components/handle/resources.js +1 -1
  261. package/dist/collection/components/icon/icon.js +1 -1
  262. package/dist/collection/components/icon/resources.js +1 -1
  263. package/dist/collection/components/icon/utils.js +1 -1
  264. package/dist/collection/components/inline-editable/inline-editable.js +1 -1
  265. package/dist/collection/components/inline-editable/resources.js +1 -1
  266. package/dist/collection/components/input/input.js +1 -1
  267. package/dist/collection/components/input/resources.js +1 -1
  268. package/dist/collection/components/input-date-picker/input-date-picker.js +1 -1
  269. package/dist/collection/components/input-date-picker/resources.js +1 -1
  270. package/dist/collection/components/input-message/input-message.js +1 -1
  271. package/dist/collection/components/input-message/interfaces.js +1 -1
  272. package/dist/collection/components/input-number/input-number.js +1 -1
  273. package/dist/collection/components/input-number/resources.js +1 -1
  274. package/dist/collection/components/input-text/input-text.js +1 -1
  275. package/dist/collection/components/input-text/resources.js +1 -1
  276. package/dist/collection/components/input-time-picker/input-time-picker.js +1 -1
  277. package/dist/collection/components/label/label.js +1 -1
  278. package/dist/collection/components/label/resources.js +1 -1
  279. package/dist/collection/components/link/link.js +1 -1
  280. package/dist/collection/components/list/list.css +21 -1
  281. package/dist/collection/components/list/list.js +517 -13
  282. package/dist/collection/components/list/resources.js +7 -2
  283. package/dist/collection/components/list-item/list-item.css +48 -23
  284. package/dist/collection/components/list-item/list-item.js +531 -40
  285. package/dist/collection/components/list-item/resources.js +18 -3
  286. package/dist/collection/components/list-item/utils.js +32 -0
  287. package/dist/collection/components/list-item-group/list-item-group.css +30 -8
  288. package/dist/collection/components/list-item-group/list-item-group.js +57 -9
  289. package/dist/collection/components/list-item-group/resources.js +3 -3
  290. package/dist/collection/components/loader/loader.js +1 -1
  291. package/dist/collection/components/modal/modal.js +1 -1
  292. package/dist/collection/components/modal/resources.js +1 -1
  293. package/dist/collection/components/notice/notice.js +1 -1
  294. package/dist/collection/components/notice/resources.js +1 -1
  295. package/dist/collection/components/option/option.js +1 -1
  296. package/dist/collection/components/option-group/option-group.js +1 -1
  297. package/dist/collection/components/pagination/pagination.js +1 -1
  298. package/dist/collection/components/pagination/resources.js +1 -1
  299. package/dist/collection/components/panel/panel.js +1 -1
  300. package/dist/collection/components/panel/resources.js +1 -1
  301. package/dist/collection/components/pick-list/pick-list.js +1 -1
  302. package/dist/collection/components/pick-list/resources.js +1 -1
  303. package/dist/collection/components/pick-list/shared-list-logic.js +1 -1
  304. package/dist/collection/components/pick-list/shared-list-render.js +1 -1
  305. package/dist/collection/components/pick-list-group/pick-list-group.js +1 -1
  306. package/dist/collection/components/pick-list-group/resources.js +1 -1
  307. package/dist/collection/components/pick-list-item/pick-list-item.js +1 -1
  308. package/dist/collection/components/pick-list-item/resources.js +1 -1
  309. package/dist/collection/components/popover/PopoverManager.js +1 -1
  310. package/dist/collection/components/popover/popover.js +1 -1
  311. package/dist/collection/components/popover/resources.js +1 -1
  312. package/dist/collection/components/popover-manager/popover-manager.js +1 -1
  313. package/dist/collection/components/progress/progress.js +1 -1
  314. package/dist/collection/components/radio-button/radio-button.js +1 -1
  315. package/dist/collection/components/radio-button/resources.js +1 -1
  316. package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
  317. package/dist/collection/components/radio-group/radio-group.js +1 -1
  318. package/dist/collection/components/radio-group-item/radio-group-item.js +1 -1
  319. package/dist/collection/components/radio-group-item/resources.js +1 -1
  320. package/dist/collection/components/rating/rating.js +1 -1
  321. package/dist/collection/components/rating/resources.js +1 -1
  322. package/dist/collection/components/scrim/resources.js +1 -1
  323. package/dist/collection/components/scrim/scrim.js +1 -1
  324. package/dist/collection/components/select/resources.js +1 -1
  325. package/dist/collection/components/select/select.js +1 -1
  326. package/dist/collection/components/shell/resources.js +1 -1
  327. package/dist/collection/components/shell/shell.js +1 -1
  328. package/dist/collection/components/shell-center-row/resources.js +1 -1
  329. package/dist/collection/components/shell-center-row/shell-center-row.js +1 -1
  330. package/dist/collection/components/shell-panel/resources.js +1 -1
  331. package/dist/collection/components/shell-panel/shell-panel.js +1 -1
  332. package/dist/collection/components/slider/resources.js +1 -1
  333. package/dist/collection/components/slider/slider.js +1 -1
  334. package/dist/collection/components/sortable-list/resources.js +1 -1
  335. package/dist/collection/components/sortable-list/sortable-list.js +1 -1
  336. package/dist/collection/components/split-button/resources.js +1 -1
  337. package/dist/collection/components/split-button/split-button.js +1 -1
  338. package/dist/collection/components/stepper/stepper.js +1 -1
  339. package/dist/collection/components/stepper-item/stepper-item.js +1 -1
  340. package/dist/collection/components/switch/switch.js +1 -1
  341. package/dist/collection/components/tab/tab.js +1 -1
  342. package/dist/collection/components/tab-nav/tab-nav.js +1 -1
  343. package/dist/collection/components/tab-title/tab-title.js +1 -1
  344. package/dist/collection/components/tabs/resources.js +1 -1
  345. package/dist/collection/components/tabs/tabs.js +1 -1
  346. package/dist/collection/components/tile/resources.js +1 -1
  347. package/dist/collection/components/tile/tile.js +1 -1
  348. package/dist/collection/components/tile-select/resources.js +1 -1
  349. package/dist/collection/components/tile-select/tile-select.js +1 -1
  350. package/dist/collection/components/tile-select-group/tile-select-group.js +1 -1
  351. package/dist/collection/components/time-picker/resources.js +1 -1
  352. package/dist/collection/components/time-picker/time-picker.js +1 -1
  353. package/dist/collection/components/tip/resources.js +1 -1
  354. package/dist/collection/components/tip/tip.js +1 -1
  355. package/dist/collection/components/tip-group/tip-group.js +1 -1
  356. package/dist/collection/components/tip-manager/resources.js +1 -1
  357. package/dist/collection/components/tip-manager/tip-manager.js +1 -1
  358. package/dist/collection/components/tooltip/TooltipManager.js +1 -1
  359. package/dist/collection/components/tooltip/resources.js +1 -1
  360. package/dist/collection/components/tooltip/tooltip.js +1 -1
  361. package/dist/collection/components/tooltip-manager/tooltip-manager.js +1 -1
  362. package/dist/collection/components/tree/interfaces.js +1 -1
  363. package/dist/collection/components/tree/tree.js +1 -1
  364. package/dist/collection/components/tree/utils.js +1 -1
  365. package/dist/collection/components/tree-item/resources.js +1 -1
  366. package/dist/collection/components/tree-item/tree-item.js +1 -1
  367. package/dist/collection/components/value-list/resources.js +1 -1
  368. package/dist/collection/components/value-list/utils.js +1 -1
  369. package/dist/collection/components/value-list/value-list.js +1 -1
  370. package/dist/collection/components/value-list-item/resources.js +1 -1
  371. package/dist/collection/components/value-list-item/value-list-item.js +1 -1
  372. package/dist/collection/utils/array.js +1 -1
  373. package/dist/collection/utils/conditionalSlot.js +1 -1
  374. package/dist/collection/utils/config.js +1 -1
  375. package/dist/collection/utils/date.js +1 -1
  376. package/dist/collection/utils/dom.js +1 -1
  377. package/dist/collection/utils/filter.js +1 -1
  378. package/dist/collection/utils/floating-ui/nonChromiumPlatformUtils.js +1 -1
  379. package/dist/collection/utils/floating-ui.js +1 -1
  380. package/dist/collection/utils/focusTrapComponent.js +1 -1
  381. package/dist/collection/utils/form.js +1 -1
  382. package/dist/collection/utils/globalAttributes.js +1 -1
  383. package/dist/collection/utils/globalScript.js +1 -1
  384. package/dist/collection/utils/guid.js +1 -1
  385. package/dist/collection/utils/interactive.js +1 -1
  386. package/dist/collection/utils/key.js +1 -1
  387. package/dist/collection/utils/label.js +1 -1
  388. package/dist/collection/utils/loadable.js +1 -1
  389. package/dist/collection/utils/locale.js +1 -1
  390. package/dist/collection/utils/math.js +1 -1
  391. package/dist/collection/utils/number.js +1 -1
  392. package/dist/collection/utils/observers.js +1 -1
  393. package/dist/collection/utils/openCloseComponent.js +1 -1
  394. package/dist/collection/utils/resources.js +1 -1
  395. package/dist/collection/utils/t9n.js +1 -1
  396. package/dist/collection/utils/theme.js +1 -1
  397. package/dist/collection/utils/time.js +1 -1
  398. package/dist/components/ExpandToggle.js +1 -1
  399. package/dist/components/Heading.js +1 -1
  400. package/dist/components/action-group.js +1 -1
  401. package/dist/components/action-menu.js +1 -1
  402. package/dist/components/action.js +1 -1
  403. package/dist/components/array.js +1 -1
  404. package/dist/components/button.js +2 -2
  405. package/dist/components/calcite-accordion-item.js +1 -1
  406. package/dist/components/calcite-accordion.js +1 -1
  407. package/dist/components/calcite-action-bar.js +1 -1
  408. package/dist/components/calcite-action-group.js +1 -1
  409. package/dist/components/calcite-action-menu.js +1 -1
  410. package/dist/components/calcite-action-pad.js +1 -1
  411. package/dist/components/calcite-action.js +1 -1
  412. package/dist/components/calcite-alert.js +16 -4
  413. package/dist/components/calcite-avatar.js +2 -2
  414. package/dist/components/calcite-block-section.js +1 -1
  415. package/dist/components/calcite-block.js +2 -2
  416. package/dist/components/calcite-button.js +1 -1
  417. package/dist/components/calcite-card.js +1 -1
  418. package/dist/components/calcite-checkbox.js +1 -1
  419. package/dist/components/calcite-chip.js +1 -1
  420. package/dist/components/calcite-color-picker-hex-input.js +1 -1
  421. package/dist/components/calcite-color-picker-swatch.js +1 -1
  422. package/dist/components/calcite-color-picker.js +1 -1
  423. package/dist/components/calcite-combobox-item-group.js +1 -1
  424. package/dist/components/calcite-combobox-item.js +1 -1
  425. package/dist/components/calcite-combobox.js +1 -1
  426. package/dist/components/calcite-date-picker-day.js +1 -1
  427. package/dist/components/calcite-date-picker-month-header.js +1 -1
  428. package/dist/components/calcite-date-picker-month.js +1 -1
  429. package/dist/components/calcite-date-picker.js +1 -1
  430. package/dist/components/calcite-dropdown-group.js +1 -1
  431. package/dist/components/calcite-dropdown-item.js +1 -1
  432. package/dist/components/calcite-dropdown.js +1 -1
  433. package/dist/components/calcite-fab.js +1 -1
  434. package/dist/components/calcite-filter.js +1 -1
  435. package/dist/components/calcite-flow-item.js +1 -1
  436. package/dist/components/calcite-flow.js +1 -1
  437. package/dist/components/calcite-graph.js +1 -1
  438. package/dist/components/calcite-handle.js +1 -1
  439. package/dist/components/calcite-icon.js +1 -1
  440. package/dist/components/calcite-inline-editable.js +1 -1
  441. package/dist/components/calcite-input-date-picker.js +1 -1
  442. package/dist/components/calcite-input-message.js +2 -2
  443. package/dist/components/calcite-input-number.js +2 -2
  444. package/dist/components/calcite-input-text.js +2 -2
  445. package/dist/components/calcite-input-time-picker.js +1 -1
  446. package/dist/components/calcite-input.js +1 -1
  447. package/dist/components/calcite-label.js +1 -1
  448. package/dist/components/calcite-link.js +1 -1
  449. package/dist/components/calcite-list-item-group.js +33 -12
  450. package/dist/components/calcite-list-item.js +294 -59
  451. package/dist/components/calcite-list.js +296 -12
  452. package/dist/components/calcite-loader.js +1 -1
  453. package/dist/components/calcite-modal.js +2 -2
  454. package/dist/components/calcite-notice.js +2 -2
  455. package/dist/components/calcite-option-group.js +1 -1
  456. package/dist/components/calcite-option.js +1 -1
  457. package/dist/components/calcite-pagination.js +1 -1
  458. package/dist/components/calcite-panel.js +1 -1
  459. package/dist/components/calcite-pick-list-group.js +2 -2
  460. package/dist/components/calcite-pick-list-item.js +1 -1
  461. package/dist/components/calcite-pick-list.js +2 -2
  462. package/dist/components/calcite-popover-manager.js +1 -1
  463. package/dist/components/calcite-popover.js +1 -1
  464. package/dist/components/calcite-progress.js +1 -1
  465. package/dist/components/calcite-radio-button-group.js +1 -1
  466. package/dist/components/calcite-radio-button.js +1 -1
  467. package/dist/components/calcite-radio-group-item.js +1 -1
  468. package/dist/components/calcite-radio-group.js +1 -1
  469. package/dist/components/calcite-rating.js +1 -1
  470. package/dist/components/calcite-scrim.js +1 -1
  471. package/dist/components/calcite-select.js +1 -1
  472. package/dist/components/calcite-shell-center-row.js +1 -1
  473. package/dist/components/calcite-shell-panel.js +1 -1
  474. package/dist/components/calcite-shell.js +1 -1
  475. package/dist/components/calcite-slider.js +2 -2
  476. package/dist/components/calcite-sortable-list.js +1 -1
  477. package/dist/components/calcite-split-button.js +1 -1
  478. package/dist/components/calcite-stepper-item.js +1 -1
  479. package/dist/components/calcite-stepper.js +1 -1
  480. package/dist/components/calcite-switch.js +1 -1
  481. package/dist/components/calcite-tab-nav.js +1 -1
  482. package/dist/components/calcite-tab-title.js +1 -1
  483. package/dist/components/calcite-tab.js +1 -1
  484. package/dist/components/calcite-tabs.js +1 -1
  485. package/dist/components/calcite-tile-select-group.js +1 -1
  486. package/dist/components/calcite-tile-select.js +1 -1
  487. package/dist/components/calcite-tile.js +1 -1
  488. package/dist/components/calcite-time-picker.js +1 -1
  489. package/dist/components/calcite-tip-group.js +1 -1
  490. package/dist/components/calcite-tip-manager.js +1 -1
  491. package/dist/components/calcite-tip.js +1 -1
  492. package/dist/components/calcite-tooltip-manager.js +1 -1
  493. package/dist/components/calcite-tooltip.js +1 -1
  494. package/dist/components/calcite-tree-item.js +2 -2
  495. package/dist/components/calcite-tree.js +2 -2
  496. package/dist/components/calcite-value-list-item.js +2 -2
  497. package/dist/components/calcite-value-list.js +1 -1
  498. package/dist/components/checkbox.js +1 -1
  499. package/dist/components/chip.js +1 -1
  500. package/dist/components/color-picker-hex-input.js +1 -1
  501. package/dist/components/color-picker-swatch.js +2 -2
  502. package/dist/components/conditionalSlot.js +1 -1
  503. package/dist/components/date-picker-day.js +2 -2
  504. package/dist/components/date-picker-month-header.js +2 -2
  505. package/dist/components/date-picker-month.js +1 -1
  506. package/dist/components/date-picker.js +1 -1
  507. package/dist/components/date.js +1 -1
  508. package/dist/components/debounce.js +1 -1
  509. package/dist/components/dom.js +30 -2
  510. package/dist/components/dropdown.js +1 -1
  511. package/dist/components/filter.js +1 -1
  512. package/dist/components/filter2.js +1 -1
  513. package/dist/components/floating-ui.js +2 -2
  514. package/dist/components/focusTrapComponent.js +1 -1
  515. package/dist/components/form.js +2 -2
  516. package/dist/components/graph.js +1 -1
  517. package/dist/components/guid.js +1 -1
  518. package/dist/components/handle.js +1 -1
  519. package/dist/components/icon.js +1 -1
  520. package/dist/components/index.js +1 -1
  521. package/dist/components/input.js +2 -2
  522. package/dist/components/interactive.js +1 -1
  523. package/dist/components/interfaces.js +1 -1
  524. package/dist/components/interfaces2.js +1 -1
  525. package/dist/components/key.js +1 -1
  526. package/dist/components/label.js +1 -1
  527. package/dist/components/label2.js +2 -2
  528. package/dist/components/link.js +1 -1
  529. package/dist/components/loadable.js +1 -1
  530. package/dist/components/loader.js +1 -1
  531. package/dist/components/locale.js +2 -2
  532. package/dist/components/math.js +1 -1
  533. package/dist/components/nonChromiumPlatformUtils.js +1 -1
  534. package/dist/components/observers.js +1 -1
  535. package/dist/components/openCloseComponent.js +1 -1
  536. package/dist/components/panel.js +1 -1
  537. package/dist/components/pick-list-item.js +2 -2
  538. package/dist/components/popover.js +1 -1
  539. package/dist/components/progress.js +1 -1
  540. package/dist/components/resources.js +62 -10
  541. package/dist/components/resources2.js +10 -6
  542. package/dist/components/resources3.js +15 -0
  543. package/dist/components/scrim.js +1 -1
  544. package/dist/components/shared-list-render.js +3 -3
  545. package/dist/components/sortable.esm.js +1 -1
  546. package/dist/components/switch.js +1 -1
  547. package/dist/components/tab-nav.js +2 -2
  548. package/dist/components/tab-title.js +1 -1
  549. package/dist/components/tab.js +1 -1
  550. package/dist/components/tabs.js +1 -1
  551. package/dist/components/tile.js +1 -1
  552. package/dist/components/time-picker.js +1 -1
  553. package/dist/components/tooltip.js +1 -1
  554. package/dist/components/utils.js +1 -1
  555. package/dist/components/utils2.js +1 -1
  556. package/dist/esm/{ExpandToggle-0d0a6dad.js → ExpandToggle-4fca7d3d.js} +5 -5
  557. package/dist/esm/{Heading-5e76b2b4.js → Heading-94ce749d.js} +2 -2
  558. package/dist/esm/{app-globals-bdafe203.js → app-globals-4523c4bb.js} +2 -2
  559. package/dist/esm/{array-a4e3b4cc.js → array-9d104dff.js} +1 -1
  560. package/dist/esm/calcite-accordion_2.entry.js +7 -7
  561. package/dist/esm/calcite-action-bar.entry.js +12 -12
  562. package/dist/esm/calcite-action-group.entry.js +9 -9
  563. package/dist/esm/calcite-action-menu.entry.js +9 -9
  564. package/dist/esm/calcite-action-pad.entry.js +11 -11
  565. package/dist/esm/calcite-action.entry.js +8 -8
  566. package/dist/esm/calcite-alert.entry.js +24 -13
  567. package/dist/esm/calcite-avatar.entry.js +6 -6
  568. package/dist/esm/calcite-block_2.entry.js +11 -11
  569. package/dist/esm/calcite-button.entry.js +10 -10
  570. package/dist/esm/calcite-card.entry.js +7 -7
  571. package/dist/esm/calcite-checkbox.entry.js +10 -10
  572. package/dist/esm/calcite-chip.entry.js +8 -8
  573. package/dist/esm/calcite-color-picker_3.entry.js +11 -11
  574. package/dist/esm/calcite-combobox_3.entry.js +15 -15
  575. package/dist/esm/calcite-date-picker_4.entry.js +11 -11
  576. package/dist/esm/calcite-dropdown_3.entry.js +12 -12
  577. package/dist/esm/calcite-fab.entry.js +7 -7
  578. package/dist/esm/calcite-filter.entry.js +9 -9
  579. package/dist/esm/calcite-flow-item.entry.js +8 -8
  580. package/dist/esm/calcite-flow.entry.js +3 -3
  581. package/dist/esm/calcite-graph_2.entry.js +13 -13
  582. package/dist/esm/calcite-handle.entry.js +6 -6
  583. package/dist/esm/calcite-icon.entry.js +6 -6
  584. package/dist/esm/calcite-inline-editable.entry.js +9 -9
  585. package/dist/esm/calcite-input-date-picker.entry.js +16 -16
  586. package/dist/esm/calcite-input-message.entry.js +5 -5
  587. package/dist/esm/calcite-input-number.entry.js +13 -13
  588. package/dist/esm/calcite-input-text.entry.js +10 -10
  589. package/dist/esm/calcite-input-time-picker_2.entry.js +12 -12
  590. package/dist/esm/calcite-input.entry.js +13 -13
  591. package/dist/esm/calcite-label.entry.js +6 -6
  592. package/dist/esm/calcite-link.entry.js +7 -7
  593. package/dist/esm/calcite-list_3.entry.js +601 -80
  594. package/dist/esm/calcite-loader.entry.js +3 -3
  595. package/dist/esm/calcite-modal.entry.js +10 -10
  596. package/dist/esm/calcite-notice.entry.js +9 -9
  597. package/dist/esm/calcite-option_3.entry.js +10 -10
  598. package/dist/esm/calcite-pagination.entry.js +8 -8
  599. package/dist/esm/calcite-panel.entry.js +11 -11
  600. package/dist/esm/calcite-pick-list_3.entry.js +13 -13
  601. package/dist/esm/calcite-popover_2.entry.js +13 -13
  602. package/dist/esm/calcite-progress.entry.js +2 -2
  603. package/dist/esm/calcite-radio-button-group.entry.js +3 -3
  604. package/dist/esm/calcite-radio-button.entry.js +10 -10
  605. package/dist/esm/calcite-radio-group_2.entry.js +9 -9
  606. package/dist/esm/calcite-rating.entry.js +10 -10
  607. package/dist/esm/calcite-scrim.entry.js +2 -2
  608. package/dist/esm/calcite-shell_3.entry.js +8 -8
  609. package/dist/esm/calcite-sortable-list.entry.js +5 -5
  610. package/dist/esm/calcite-split-button.entry.js +3 -3
  611. package/dist/esm/calcite-stepper_2.entry.js +10 -10
  612. package/dist/esm/calcite-switch.entry.js +10 -10
  613. package/dist/esm/calcite-tab_4.entry.js +7 -7
  614. package/dist/esm/calcite-tile-select_2.entry.js +5 -5
  615. package/dist/esm/calcite-tile.entry.js +8 -8
  616. package/dist/esm/calcite-tip_3.entry.js +8 -8
  617. package/dist/esm/calcite-tooltip_2.entry.js +8 -8
  618. package/dist/esm/calcite-tree_2.entry.js +8 -8
  619. package/dist/esm/calcite-value-list_2.entry.js +13 -13
  620. package/dist/esm/calcite.js +5 -5
  621. package/dist/esm/{conditionalSlot-d7042454.js → conditionalSlot-1620f1ad.js} +3 -3
  622. package/dist/esm/{debounce-5b813e28.js → debounce-0686d9a1.js} +1 -1
  623. package/dist/esm/{dom-1e25772a.js → dom-af8fc88b.js} +32 -4
  624. package/dist/esm/{filter-9f8f8154.js → filter-cbb2b874.js} +2 -2
  625. package/dist/esm/{floating-ui-133bb551.js → floating-ui-5919ed56.js} +4 -4
  626. package/dist/esm/{focusTrapComponent-579bde12.js → focusTrapComponent-8f434148.js} +2 -2
  627. package/dist/esm/{form-9a041e68.js → form-2aa6c9e9.js} +3 -3
  628. package/dist/esm/{guid-c42adc0b.js → guid-a32bfc37.js} +1 -1
  629. package/dist/esm/{index-43905a28.js → index-f5307217.js} +1 -1
  630. package/dist/esm/index.js +1 -1
  631. package/dist/esm/{interactive-dc49c49b.js → interactive-408a778e.js} +1 -1
  632. package/dist/esm/{interfaces-86bb76d1.js → interfaces-25274bad.js} +1 -1
  633. package/dist/esm/{key-a3cbc709.js → key-ff94e2df.js} +1 -1
  634. package/dist/esm/{label-7ab2f78b.js → label-c38a7e62.js} +2 -2
  635. package/dist/esm/{loadable-f9ca5c20.js → loadable-8dc52efb.js} +1 -1
  636. package/dist/esm/loader.js +5 -5
  637. package/dist/esm/{locale-a47c2f83.js → locale-d8acb890.js} +4 -4
  638. package/dist/esm/{math-75a0848f.js → math-06af2d12.js} +1 -1
  639. package/dist/esm/{nonChromiumPlatformUtils-50b180f8.js → nonChromiumPlatformUtils-3c8e691e.js} +6 -6
  640. package/dist/esm/{observers-10b6d9bf.js → observers-c4a710f2.js} +1 -1
  641. package/dist/esm/{openCloseComponent-90c0bc0f.js → openCloseComponent-10ccb926.js} +1 -1
  642. package/dist/esm/{resources-1d29b1a4.js → resources-295cd6ac.js} +5 -5
  643. package/dist/esm/{resources-10b5a81c.js → resources-2cf72e16.js} +1 -1
  644. package/dist/esm/{resources-12be96e6.js → resources-56be8d83.js} +1 -1
  645. package/dist/esm/{resources-9cfc185a.js → resources-a79f35f7.js} +1 -1
  646. package/dist/esm/{resources-30d36ead.js → resources-b5550e9c.js} +3 -3
  647. package/dist/esm/{resources-49545055.js → resources-f669fefd.js} +1 -1
  648. package/dist/esm/{sortable.esm-381fb2a0.js → sortable.esm-0eb8bd97.js} +1 -1
  649. package/dist/esm/{utils-42067c6f.js → utils-6c7a0dc5.js} +1 -1
  650. package/dist/extras/docs-json.json +375 -10
  651. package/dist/loader/cdn.js +1 -1
  652. package/dist/loader/index.cjs.js +1 -1
  653. package/dist/loader/index.es2017.js +1 -1
  654. package/dist/loader/index.js +1 -1
  655. package/dist/types/components/alert/alert.d.ts +3 -0
  656. package/dist/types/components/alert/resources.d.ts +2 -0
  657. package/dist/types/components/list/list.d.ts +85 -3
  658. package/dist/types/components/list/resources.d.ts +7 -0
  659. package/dist/types/components/list-item/interfaces.d.ts +6 -0
  660. package/dist/types/components/list-item/list-item.d.ts +95 -8
  661. package/dist/types/components/list-item/resources.d.ts +17 -2
  662. package/dist/types/components/list-item/utils.d.ts +3 -0
  663. package/dist/types/components/list-item-group/list-item-group.d.ts +11 -1
  664. package/dist/types/components/list-item-group/resources.d.ts +1 -1
  665. package/dist/types/components.d.ts +179 -5
  666. package/dist/types/preact.d.ts +8 -2
  667. package/hydrate/index.js +726 -134
  668. package/package.json +1 -1
  669. package/dist/calcite/p-33625802.entry.js +0 -6
  670. package/dist/calcite/p-46fb198b.entry.js +0 -6
  671. package/dist/calcite/p-578ba695.entry.js +0 -6
  672. package/dist/calcite/p-57b194ca.js +0 -6
  673. package/dist/calcite/p-75a3f683.entry.js +0 -6
  674. package/dist/calcite/p-ac9d8c2c.js +0 -6
  675. package/dist/calcite/p-b46a2676.entry.js +0 -6
  676. package/dist/calcite/p-ce88bc2d.entry.js +0 -6
@@ -1,27 +1,93 @@
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.636
4
+ * v1.0.0-next.638
5
5
  */
6
- import { r as registerInstance, h, H as Host, g as getElement } from './index-43905a28.js';
7
- import { u as updateHostInteraction } from './interactive-dc49c49b.js';
8
- import { s as setUpLoadableComponent, a as setComponentLoaded, c as componentLoaded } from './loadable-f9ca5c20.js';
9
- import { g as getSlotted } from './dom-1e25772a.js';
10
- import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot-d7042454.js';
11
- import { H as Heading, c as constrainHeadingLevel } from './Heading-5e76b2b4.js';
12
- import './resources-12be96e6.js';
13
- import './guid-c42adc0b.js';
14
- import './observers-10b6d9bf.js';
6
+ import { r as registerInstance, c as createEvent, h, g as getElement, H as Host } from './index-f5307217.js';
7
+ import { u as updateHostInteraction } from './interactive-408a778e.js';
8
+ import { c as createObserver } from './observers-c4a710f2.js';
9
+ import { t as toAriaBoolean, a as getElementDir } from './dom-af8fc88b.js';
10
+ import { s as setUpLoadableComponent, a as setComponentLoaded, c as componentLoaded } from './loadable-8dc52efb.js';
11
+ import { d as debounce } from './debounce-0686d9a1.js';
12
+ import './resources-56be8d83.js';
13
+ import './guid-a32bfc37.js';
15
14
 
16
15
  const CSS$2 = {
17
- container: "container"
16
+ container: "container",
17
+ table: "table",
18
+ scrim: "scrim",
19
+ tableContainer: "table-container",
20
+ sticky: "sticky-pos"
21
+ };
22
+ const debounceTimeout = 100;
23
+
24
+ const listItemGroupSelector = "calcite-list-item-group";
25
+ const listItemSelector$1 = "calcite-list-item";
26
+ function getListItemChildren(event) {
27
+ const assignedElements = event.target.assignedElements({ flatten: true });
28
+ const listItemGroupChildren = assignedElements.filter((el) => el === null || el === void 0 ? void 0 : el.matches(listItemGroupSelector))
29
+ .map((group) => Array.from(group.querySelectorAll(listItemSelector$1)))
30
+ .reduce((previousValue, currentValue) => [...previousValue, ...currentValue], []);
31
+ const listItemChildren = assignedElements.filter((el) => el === null || el === void 0 ? void 0 : el.matches(listItemSelector$1));
32
+ return [...listItemGroupChildren, ...listItemChildren];
33
+ }
34
+ function updateListItemChildren(listItemChildren) {
35
+ listItemChildren.forEach((listItem) => {
36
+ listItem.setPosition = listItemChildren.indexOf(listItem) + 1;
37
+ listItem.setSize = listItemChildren.length;
38
+ });
39
+ }
40
+ function getDepth(element, includeGroup = false) {
41
+ const expression = includeGroup
42
+ ? "ancestor::calcite-list-item | ancestor::calcite-list-item-group"
43
+ : "ancestor::calcite-list-item";
44
+ const result = document.evaluate(expression, element, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
45
+ return result.snapshotLength;
46
+ }
47
+
48
+ const CSS$1 = {
49
+ container: "container",
50
+ containerBorderSelected: "container--border-selected",
51
+ containerBorderUnselected: "container--border-unselected",
52
+ contentContainer: "content-container",
53
+ contentContainerSelectable: "content-container--selectable",
54
+ contentContainerHasCenterContent: "content-container--has-center-content",
55
+ nestedContainer: "nested-container",
56
+ nestedContainerHidden: "nested-container--hidden",
57
+ content: "content",
58
+ actionsStart: "actions-start",
59
+ contentStart: "content-start",
60
+ label: "label",
61
+ description: "description",
62
+ contentEnd: "content-end",
63
+ actionsEnd: "actions-end",
64
+ selectionContainer: "selection-container",
65
+ openContainer: "open-container"
66
+ };
67
+ const SLOTS = {
68
+ actionsStart: "actions-start",
69
+ contentStart: "content-start",
70
+ contentEnd: "content-end",
71
+ actionsEnd: "actions-end"
72
+ };
73
+ const MAX_COLUMNS = 5;
74
+ const ICONS = {
75
+ selectedMultiple: "check-circle-f",
76
+ selectedSingle: "circle-f",
77
+ unselected: "blank",
78
+ closedLTR: "caret-right",
79
+ closedRTL: "caret-left",
80
+ open: "caret-down",
81
+ blank: "blank"
18
82
  };
19
83
 
20
- const listCss = "@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.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}: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{display:block}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.container{box-sizing:border-box;display:flex;inline-size:100%;flex-direction:column;background-color:transparent}.container *{box-sizing:border-box}::slotted(calcite-list-item){margin-block-end:1px;--tw-shadow:0 1px 0 var(--calcite-ui-border-3);--tw-shadow-colored:0 1px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}::slotted(calcite-list-item:last-child){--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}";
84
+ const listCss = "@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.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}: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{display:block}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.container{position:relative}.table-container{position:relative;z-index:1;box-sizing:border-box;display:flex;inline-size:100%;flex-direction:column;background-color:transparent}.table-container *{box-sizing:border-box}.table{inline-size:100%}::slotted(calcite-list-item){margin-block-end:1px;--tw-shadow:0 1px 0 var(--calcite-ui-border-3);--tw-shadow-colored:0 1px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}::slotted(calcite-list-item:last-child){--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.sticky-pos{position:sticky;inset-block-start:0px;z-index:300}calcite-filter{margin-block-end:1px}";
21
85
 
86
+ const listItemSelector = "calcite-list-item";
22
87
  const List = class {
23
88
  constructor(hostRef) {
24
89
  registerInstance(this, hostRef);
90
+ this.calciteListFilter = createEvent(this, "calciteListFilter", 6);
25
91
  // --------------------------------------------------------------------------
26
92
  //
27
93
  // Properties
@@ -31,21 +97,240 @@ const List = class {
31
97
  * When `true`, interaction is prevented and the component is displayed with lower opacity.
32
98
  */
33
99
  this.disabled = false;
100
+ /**
101
+ * When true, an input appears at the top of the list that can be used by end users to filter items in the list.
102
+ */
103
+ this.filterEnabled = false;
104
+ /**
105
+ * **read-only** The currently filtered items
106
+ *
107
+ * @readonly
108
+ */
109
+ this.filteredItems = [];
110
+ /**
111
+ * **read-only** The currently filtered items
112
+ *
113
+ * @readonly
114
+ */
115
+ this.filteredData = [];
116
+ /**
117
+ * When true, content is waiting to be loaded. This state shows a busy indicator.
118
+ */
119
+ this.loading = false;
120
+ /**
121
+ * One of the items within the list can be opened.
122
+ *
123
+ * @internal
124
+ */
125
+ this.openable = false;
126
+ /**
127
+ * **read-only** The currently selected items
128
+ *
129
+ * @readonly
130
+ */
131
+ this.selectedItems = [];
132
+ /**
133
+ * specify the selection mode - multiple (allow any number of (or no) selected items), single (allow and require one selected item), none (no selected items), defaults to single
134
+ */
135
+ this.selectionMode = "none";
136
+ /**
137
+ * specify the selection appearance - icon (displays a checkmark or dot), border (displays a border), defaults to icon
138
+ */
139
+ this.selectionAppearance = "icon";
140
+ this.listItems = [];
141
+ this.enabledListItems = [];
142
+ this.mutationObserver = createObserver("mutation", () => this.updateListItems());
143
+ this.dataForFilter = [];
144
+ // --------------------------------------------------------------------------
145
+ //
146
+ // Private Methods
147
+ //
148
+ // --------------------------------------------------------------------------
149
+ this.handleDefaultSlotChange = (event) => {
150
+ updateListItemChildren(getListItemChildren(event));
151
+ };
152
+ this.setActiveListItem = () => {
153
+ const { enabledListItems } = this;
154
+ if (!enabledListItems.some((item) => item.active)) {
155
+ if (enabledListItems[0]) {
156
+ enabledListItems[0].active = true;
157
+ }
158
+ }
159
+ };
160
+ this.updateSelectedItems = debounce(() => {
161
+ this.selectedItems = this.enabledListItems.filter((item) => item.selected);
162
+ }, debounceTimeout);
163
+ this.updateFilteredItems = debounce(() => {
164
+ const { listItems, filteredData, filterText } = this;
165
+ const values = filteredData.map((item) => item.value);
166
+ const groups = new Set();
167
+ const filteredItems = (listItems === null || listItems === void 0 ? void 0 : listItems.filter((item) => {
168
+ const parent = item.parentElement;
169
+ const grouped = parent.matches("calcite-list-item-group");
170
+ if (grouped) {
171
+ groups.add(parent);
172
+ }
173
+ const matches = filterText ? values.includes(item.value) : true;
174
+ item.hidden = !matches;
175
+ return matches;
176
+ })) || [];
177
+ this.filteredItems = filteredItems;
178
+ groups.forEach((group) => {
179
+ const hasAtLeastOneMatch = filteredItems.some((item) => group.contains(item));
180
+ group.hidden = !hasAtLeastOneMatch;
181
+ if (!hasAtLeastOneMatch) {
182
+ return;
183
+ }
184
+ const parentItem = group.closest("calcite-list-item");
185
+ if (parentItem) {
186
+ parentItem.hidden = false;
187
+ if (filteredItems.includes(parentItem)) {
188
+ Array.from(group.querySelectorAll("calcite-list-item")).forEach((child) => (child.hidden = false));
189
+ }
190
+ }
191
+ });
192
+ groups.clear();
193
+ });
194
+ this.handleFilter = (event) => {
195
+ event.stopPropagation();
196
+ const { filteredItems, value } = event.currentTarget;
197
+ this.filteredData = filteredItems;
198
+ this.filterText = value;
199
+ this.updateFilteredItems();
200
+ this.calciteListFilter.emit();
201
+ };
202
+ this.getItemData = () => {
203
+ return this.listItems.map((item) => ({
204
+ label: item.label,
205
+ description: item.description,
206
+ metadata: item.metadata,
207
+ value: item.value
208
+ }));
209
+ };
210
+ this.updateListItems = debounce(() => {
211
+ const { selectionAppearance, selectionMode } = this;
212
+ const items = this.queryListItems();
213
+ items.forEach((item) => {
214
+ item.selectionAppearance = selectionAppearance;
215
+ item.selectionMode = selectionMode;
216
+ });
217
+ this.listItems = items;
218
+ this.enabledListItems = items.filter((item) => !item.disabled);
219
+ if (this.filterEnabled) {
220
+ this.dataForFilter = this.getItemData();
221
+ }
222
+ this.setActiveListItem();
223
+ this.updateSelectedItems();
224
+ this.updateFilteredItems();
225
+ }, debounceTimeout);
226
+ this.queryListItems = () => {
227
+ return Array.from(this.el.querySelectorAll(listItemSelector));
228
+ };
229
+ this.focusRow = (focusEl) => {
230
+ const { enabledListItems } = this;
231
+ if (!focusEl) {
232
+ return;
233
+ }
234
+ enabledListItems.forEach((listItem) => (listItem.active = listItem === focusEl));
235
+ focusEl.setFocus();
236
+ };
237
+ this.isNavigable = (listItem) => {
238
+ var _a;
239
+ const parentListItemEl = (_a = listItem.parentElement) === null || _a === void 0 ? void 0 : _a.closest(listItemSelector);
240
+ if (!parentListItemEl) {
241
+ return true;
242
+ }
243
+ return parentListItemEl.open && this.isNavigable(parentListItemEl);
244
+ };
245
+ this.handleListKeydown = (event) => {
246
+ const { key } = event;
247
+ const filteredItems = this.enabledListItems.filter((listItem) => this.isNavigable(listItem));
248
+ const currentIndex = filteredItems.findIndex((listItem) => listItem.active);
249
+ if (key === "ArrowDown") {
250
+ event.preventDefault();
251
+ const nextIndex = currentIndex + 1;
252
+ if (filteredItems[nextIndex]) {
253
+ this.focusRow(filteredItems[nextIndex]);
254
+ }
255
+ }
256
+ else if (key === "ArrowUp") {
257
+ event.preventDefault();
258
+ const prevIndex = currentIndex - 1;
259
+ if (filteredItems[prevIndex]) {
260
+ this.focusRow(filteredItems[prevIndex]);
261
+ }
262
+ }
263
+ else if (key === "Home") {
264
+ event.preventDefault();
265
+ const homeItem = filteredItems[0];
266
+ if (homeItem) {
267
+ this.focusRow(homeItem);
268
+ }
269
+ }
270
+ else if (key === "End") {
271
+ event.preventDefault();
272
+ const endItem = filteredItems[filteredItems.length - 1];
273
+ if (endItem) {
274
+ this.focusRow(endItem);
275
+ }
276
+ }
277
+ };
278
+ }
279
+ handleFilterEnabledChange() {
280
+ this.updateListItems();
281
+ }
282
+ handleSelectionAppearanceChange() {
283
+ this.updateListItems();
284
+ }
285
+ handleCalciteInternalFocusPreviousItem(event) {
286
+ event.stopPropagation();
287
+ const { enabledListItems } = this;
288
+ const currentIndex = enabledListItems.findIndex((listItem) => listItem.active);
289
+ const prevIndex = currentIndex - 1;
290
+ if (enabledListItems[prevIndex]) {
291
+ this.focusRow(enabledListItems[prevIndex]);
292
+ }
293
+ }
294
+ handleCalciteListItemSelect(event) {
295
+ const target = event.target;
296
+ const { listItems, selectionMode } = this;
297
+ listItems.forEach((listItem) => {
298
+ listItem.active = listItem === target;
299
+ if (selectionMode === "single") {
300
+ listItem.selected = listItem === target;
301
+ }
302
+ });
303
+ this.updateSelectedItems();
34
304
  }
35
305
  //--------------------------------------------------------------------------
36
306
  //
37
307
  // Lifecycle
38
308
  //
39
309
  //--------------------------------------------------------------------------
310
+ connectedCallback() {
311
+ var _a;
312
+ (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
313
+ this.updateListItems();
314
+ }
315
+ disconnectedCallback() {
316
+ var _a;
317
+ (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
318
+ }
40
319
  componentWillLoad() {
41
320
  setUpLoadableComponent(this);
42
321
  }
43
- componentDidLoad() {
44
- setComponentLoaded(this);
45
- }
46
322
  componentDidRender() {
47
323
  updateHostInteraction(this);
48
324
  }
325
+ componentDidLoad() {
326
+ setComponentLoaded(this);
327
+ const { filterEl } = this;
328
+ const filteredItems = filterEl === null || filterEl === void 0 ? void 0 : filterEl.filteredItems;
329
+ if (filteredItems) {
330
+ this.filteredData = filteredItems;
331
+ }
332
+ this.updateFilteredItems();
333
+ }
49
334
  // --------------------------------------------------------------------------
50
335
  //
51
336
  // Public Methods
@@ -53,9 +338,9 @@ const List = class {
53
338
  // --------------------------------------------------------------------------
54
339
  /** Sets focus on the component. */
55
340
  async setFocus() {
341
+ var _a;
56
342
  await componentLoaded(this);
57
- const firstListItem = this.el.querySelector(`calcite-list-item:not([non-interactive])`);
58
- firstListItem === null || firstListItem === void 0 ? void 0 : firstListItem.setFocus();
343
+ (_a = this.enabledListItems.find((listItem) => listItem.active)) === null || _a === void 0 ? void 0 : _a.setFocus();
59
344
  }
60
345
  // --------------------------------------------------------------------------
61
346
  //
@@ -63,57 +348,227 @@ const List = class {
63
348
  //
64
349
  // --------------------------------------------------------------------------
65
350
  render() {
66
- return (h(Host, { role: "list" }, h("div", { class: CSS$2.container }, h("slot", null))));
351
+ const { loading, label, disabled, dataForFilter, filterEnabled, filterPlaceholder, filterText } = this;
352
+ return (h("div", { class: CSS$2.container }, loading ? h("calcite-scrim", { class: CSS$2.scrim, loading: loading }) : null, h("table", { "aria-busy": toAriaBoolean(loading), "aria-label": label || "", class: CSS$2.table, onKeyDown: this.handleListKeydown, role: "treegrid" }, filterEnabled ? (h("thead", null, h("tr", { class: { [CSS$2.sticky]: true } }, h("th", { colSpan: MAX_COLUMNS }, h("calcite-filter", { "aria-label": filterPlaceholder, disabled: loading || disabled, items: dataForFilter, onCalciteFilterChange: this.handleFilter, placeholder: filterPlaceholder, ref: (el) => (this.filterEl = el), value: filterText }))))) : null, h("tbody", { class: CSS$2.tableContainer }, h("slot", { onSlotchange: this.handleDefaultSlotChange })))));
67
353
  }
68
354
  get el() { return getElement(this); }
355
+ static get watchers() { return {
356
+ "filterEnabled": ["handleFilterEnabledChange"],
357
+ "selectionMode": ["handleSelectionAppearanceChange"],
358
+ "selectionAppearance": ["handleSelectionAppearanceChange"]
359
+ }; }
69
360
  };
70
361
  List.style = listCss;
71
362
 
72
- const CSS$1 = {
73
- container: "container",
74
- contentContainer: "content-container",
75
- nestedContainer: "nested-container",
76
- contentContainerButton: "content-container--button",
77
- content: "content",
78
- actionsStart: "actions-start",
79
- contentStart: "content-start",
80
- label: "label",
81
- description: "description",
82
- contentEnd: "content-end",
83
- actionsEnd: "actions-end",
84
- hasCenterContent: "has-center-content"
85
- };
86
- const SLOTS = {
87
- actionsStart: "actions-start",
88
- contentStart: "content-start",
89
- contentEnd: "content-end",
90
- actionsEnd: "actions-end"
91
- };
92
-
93
- const listItemCss = "@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.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}: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{display:flex;flex-direction:column}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.container{box-sizing:border-box;display:flex;flex:1 1 0%;background-color:var(--calcite-ui-foreground-1);font-family:var(--calcite-sans-family)}.container *{box-sizing:border-box}.nested-container{display:flex;flex-direction:column;background-color:var(--calcite-ui-foreground-1)}.content-container{display:flex;flex:1 1 auto;align-items:stretch;padding:0px;font-family:var(--calcite-sans-family);font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-2);outline-color:transparent}.content-container--button{cursor:pointer;border-style:none;background-color:var(--calcite-ui-foreground-1);outline-color:transparent;text-align:initial}.content-container--button:hover{background-color:var(--calcite-ui-foreground-2)}.content-container--button:hover .label,.content-container--button:hover .description{color:var(--calcite-ui-text-1)}.content-container--button:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.content-container--button .content-start,.content-container--button .content-end{pointer-events:none}.content{display:flex;flex:1 1 auto;flex-direction:column;justify-content:center;padding-inline:0.75rem;padding-block:0.5rem;font-size:var(--calcite-font-size--2);line-height:1.375}.label,.description{font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal);word-wrap:break-word;word-break:break-word}.label:only-child,.description:only-child{margin:0px;padding-block:0.25rem}.label{color:var(--calcite-ui-text-1)}.description{margin-block-start:0.125rem;color:var(--calcite-ui-text-3)}.content-start{justify-content:flex-start}.content-end{justify-content:flex-end}.content-start,.content-end{flex:1 1 auto}.has-center-content .content-start,.has-center-content .content-end{flex:0 1 auto}.actions-start,.actions-end,.content-start,.content-end{display:flex;align-items:center}.content-start ::slotted(calcite-icon),.content-end ::slotted(calcite-icon){margin-inline:0.75rem;align-self:center}.actions-start ::slotted(calcite-action),.actions-end ::slotted(calcite-action){align-self:stretch;color:inherit}::slotted(calcite-list-item-group),::slotted(calcite-list-item){padding-inline-start:0.5rem}";
363
+ const listItemCss = "@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.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}: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{display:flex;flex-direction:column;--calcite-list-item-icon-color:var(--calcite-ui-brand);--calcite-list-item-spacing-indent:1rem}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.container{box-sizing:border-box;display:flex;flex:1 1 0%;background-color:var(--calcite-ui-foreground-1);font-family:var(--calcite-sans-family);padding-inline-start:calc(var(--calcite-list-item-spacing-indent) * var(--calcite-list-item-spacing-indent-multiplier))}.container *{box-sizing:border-box}.container--border-selected{border-inline-start:4px solid var(--calcite-ui-brand)}.container--border-unselected{border-inline-start:4px solid transparent}.nested-container{display:flex;flex-direction:column;background-color:var(--calcite-ui-foreground-1)}.nested-container--hidden{display:none}.content-container{display:flex;flex:1 1 auto;align-items:stretch;padding:0px;font-family:var(--calcite-sans-family);font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-2)}.content-container--selectable{cursor:pointer}tr,td{outline-color:transparent}tr:focus,td:focus{z-index:300;outline:2px solid var(--calcite-ui-brand)}.content{display:flex;flex:1 1 auto;flex-direction:column;justify-content:center;padding-inline:0.75rem;padding-block:0.5rem;font-size:var(--calcite-font-size--2);line-height:1.375}.label,.description{font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal);word-wrap:break-word;word-break:break-word}.label:only-child,.description:only-child{margin:0px;padding-block:0.25rem}.label{color:var(--calcite-ui-text-1)}.description{margin-block-start:0.125rem;color:var(--calcite-ui-text-3)}.content-start{justify-content:flex-start}.content-end{justify-content:flex-end}.content-start,.content-end{flex:1 1 auto}.content-container--has-center-content .content-start,.content-container--has-center-content .content-end{flex:0 1 auto}.selection-container{display:flex;padding-inline:0.75rem;color:var(--calcite-list-item-icon-color)}.actions-start,.actions-end,.content-start,.content-end,.selection-container,.open-container{display:flex;align-items:center}.open-container,.selection-container{cursor:pointer}.content-start ::slotted(calcite-icon),.content-end ::slotted(calcite-icon){margin-inline:0.75rem;align-self:center}.actions-start ::slotted(calcite-action),.actions-end ::slotted(calcite-action){align-self:stretch;color:inherit}::slotted(calcite-list-item){border-width:0px;border-block-start-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}[hidden]{display:none}";
94
364
 
365
+ const focusMap = new Map();
366
+ const listSelector = "calcite-list";
95
367
  const ListItem = class {
96
368
  constructor(hostRef) {
97
369
  registerInstance(this, hostRef);
370
+ this.calciteListItemSelect = createEvent(this, "calciteListItemSelect", 6);
371
+ this.calciteInternalListItemSelect = createEvent(this, "calciteInternalListItemSelect", 6);
372
+ this.calciteInternalFocusPreviousItem = createEvent(this, "calciteInternalFocusPreviousItem", 6);
98
373
  // --------------------------------------------------------------------------
99
374
  //
100
375
  // Properties
101
376
  //
102
377
  // --------------------------------------------------------------------------
103
378
  /**
104
- * When `true`, prevents the content of the component from user interaction.
379
+ * Sets the item as focusable. Only one item should be focusable within a list.
380
+ *
381
+ * @internal
105
382
  */
106
- this.nonInteractive = false;
383
+ this.active = false;
107
384
  /**
108
385
  * When `true`, interaction is prevented and the component is displayed with lower opacity.
109
386
  */
110
387
  this.disabled = false;
388
+ /**
389
+ * When `true`, prevents the content of the component from user interaction.
390
+ *
391
+ * @deprecated no longer necessary.
392
+ */
393
+ this.nonInteractive = false;
394
+ /**
395
+ * When true, item is open to show child components.
396
+ */
397
+ this.open = false;
398
+ /**
399
+ * Used to specify the aria-setsize attribute to define the number of items in the current set of list for accessibility.
400
+ *
401
+ * @internal
402
+ */
403
+ this.setSize = null;
404
+ /**
405
+ * Used to specify the aria-posinset attribute to define the number or position in the current set of list items for accessibility.
406
+ *
407
+ * @internal
408
+ */
409
+ this.setPosition = null;
410
+ /**
411
+ * When true, the component is selected.
412
+ */
413
+ this.selected = false;
414
+ /**
415
+ * specify the selection mode - multiple (allow any number of (or no) selected items), single (allow and require one selected item), none (no selected items), defaults to single
416
+ *
417
+ * @internal
418
+ */
419
+ this.selectionMode = null;
420
+ /**
421
+ * specify the selection appearance - icon (displays a checkmark or dot), border (displays a border), defaults to icon
422
+ *
423
+ * @internal
424
+ */
425
+ this.selectionAppearance = null;
426
+ this.level = null;
427
+ this.visualLevel = null;
428
+ this.openable = false;
429
+ this.hasActionsStart = false;
430
+ this.hasActionsEnd = false;
431
+ this.hasContentStart = false;
432
+ this.hasContentEnd = false;
433
+ // --------------------------------------------------------------------------
434
+ //
435
+ // Private Methods
436
+ //
437
+ // --------------------------------------------------------------------------
438
+ this.handleActionsStartSlotChange = (event) => {
439
+ const elements = event.target.assignedElements({
440
+ flatten: true
441
+ });
442
+ this.hasActionsStart = !!elements.length;
443
+ };
444
+ this.handleActionsEndSlotChange = (event) => {
445
+ const elements = event.target.assignedElements({
446
+ flatten: true
447
+ });
448
+ this.hasActionsEnd = !!elements.length;
449
+ };
450
+ this.handleContentStartSlotChange = (event) => {
451
+ const elements = event.target.assignedElements({
452
+ flatten: true
453
+ });
454
+ this.hasContentStart = !!elements.length;
455
+ };
456
+ this.handleContentEndSlotChange = (event) => {
457
+ const elements = event.target.assignedElements({
458
+ flatten: true
459
+ });
460
+ this.hasContentEnd = !!elements.length;
461
+ };
462
+ this.handleDefaultSlotChange = (event) => {
463
+ const { parentListEl } = this;
464
+ const listItemChildren = getListItemChildren(event);
465
+ updateListItemChildren(listItemChildren);
466
+ const openable = !!listItemChildren.length;
467
+ if (openable && parentListEl && !parentListEl.openable) {
468
+ parentListEl.openable = true;
469
+ }
470
+ this.openable = openable;
471
+ if (!openable) {
472
+ this.open = false;
473
+ }
474
+ };
475
+ this.toggleOpen = () => {
476
+ this.open = !this.open;
477
+ };
478
+ this.toggleSelected = () => {
479
+ if (this.disabled) {
480
+ return;
481
+ }
482
+ if (this.selectionMode !== "none") {
483
+ this.selected = !this.selected;
484
+ }
485
+ this.calciteListItemSelect.emit();
486
+ };
487
+ this.handleItemKeyDown = (event) => {
488
+ const { key } = event;
489
+ const composedPath = event.composedPath();
490
+ const { containerEl, contentEl, actionsStartEl, actionsEndEl, open, openable } = this;
491
+ const cells = [actionsStartEl, contentEl, actionsEndEl].filter(Boolean);
492
+ const currentIndex = cells.findIndex((cell) => composedPath.includes(cell));
493
+ if (key === " ") {
494
+ event.preventDefault();
495
+ this.toggleSelected();
496
+ }
497
+ else if (key === "ArrowRight") {
498
+ event.preventDefault();
499
+ const nextIndex = currentIndex + 1;
500
+ if (currentIndex === -1) {
501
+ if (!open && openable) {
502
+ this.open = true;
503
+ this.focusCell(null);
504
+ }
505
+ else if (cells[0]) {
506
+ this.focusCell(cells[0]);
507
+ }
508
+ }
509
+ else if (cells[currentIndex] && cells[nextIndex]) {
510
+ this.focusCell(cells[nextIndex]);
511
+ }
512
+ }
513
+ else if (key === "ArrowLeft") {
514
+ event.preventDefault();
515
+ const prevIndex = currentIndex - 1;
516
+ if (currentIndex === -1) {
517
+ this.focusCell(null);
518
+ if (open && openable) {
519
+ this.open = false;
520
+ }
521
+ else {
522
+ this.calciteInternalFocusPreviousItem.emit();
523
+ }
524
+ }
525
+ else if (currentIndex === 0) {
526
+ this.focusCell(null);
527
+ containerEl.focus();
528
+ }
529
+ else if (cells[currentIndex] && cells[prevIndex]) {
530
+ this.focusCell(cells[prevIndex]);
531
+ }
532
+ }
533
+ };
534
+ this.focusCellNull = () => {
535
+ this.focusCell(null);
536
+ };
537
+ this.focusCell = (focusEl, saveFocusIndex = true) => {
538
+ const { contentEl, actionsStartEl, actionsEndEl, parentListEl } = this;
539
+ if (saveFocusIndex) {
540
+ focusMap.set(parentListEl, null);
541
+ }
542
+ [actionsStartEl, contentEl, actionsEndEl].filter(Boolean).forEach((tableCell, cellIndex) => {
543
+ const tabIndexAttr = "tabindex";
544
+ if (tableCell === focusEl) {
545
+ tableCell.setAttribute(tabIndexAttr, "0");
546
+ saveFocusIndex && focusMap.set(parentListEl, cellIndex);
547
+ }
548
+ else {
549
+ tableCell.removeAttribute(tabIndexAttr);
550
+ }
551
+ });
552
+ focusEl === null || focusEl === void 0 ? void 0 : focusEl.focus();
553
+ };
554
+ }
555
+ activeHandler(active) {
556
+ if (!active) {
557
+ this.focusCell(null, false);
558
+ }
559
+ }
560
+ handleSelectedChange(value) {
561
+ if (value) {
562
+ this.calciteInternalListItemSelect.emit();
563
+ }
564
+ }
565
+ connectedCallback() {
566
+ const { el } = this;
567
+ this.parentListEl = el.closest(listSelector);
568
+ this.level = getDepth(el) + 1;
569
+ this.visualLevel = getDepth(el, true);
570
+ this.setSelectionDefaults();
111
571
  }
112
- //--------------------------------------------------------------------------
113
- //
114
- // Lifecycle
115
- //
116
- //--------------------------------------------------------------------------
117
572
  componentWillLoad() {
118
573
  setUpLoadableComponent(this);
119
574
  }
@@ -121,13 +576,7 @@ const ListItem = class {
121
576
  setComponentLoaded(this);
122
577
  }
123
578
  componentDidRender() {
124
- updateHostInteraction(this);
125
- }
126
- connectedCallback() {
127
- connectConditionalSlotComponent(this);
128
- }
129
- disconnectedCallback() {
130
- disconnectConditionalSlotComponent(this);
579
+ updateHostInteraction(this, "managed");
131
580
  }
132
581
  // --------------------------------------------------------------------------
133
582
  //
@@ -136,62 +585,138 @@ const ListItem = class {
136
585
  // --------------------------------------------------------------------------
137
586
  /** Sets focus on the component. */
138
587
  async setFocus() {
139
- var _a;
140
588
  await componentLoaded(this);
141
- (_a = this.focusEl) === null || _a === void 0 ? void 0 : _a.focus();
589
+ const { containerEl, contentEl, actionsStartEl, actionsEndEl, parentListEl } = this;
590
+ const focusIndex = focusMap.get(parentListEl);
591
+ if (typeof focusIndex === "number") {
592
+ const cells = [actionsStartEl, contentEl, actionsEndEl].filter(Boolean);
593
+ if (cells[focusIndex]) {
594
+ this.focusCell(cells[focusIndex]);
595
+ }
596
+ else {
597
+ containerEl === null || containerEl === void 0 ? void 0 : containerEl.focus();
598
+ }
599
+ return;
600
+ }
601
+ containerEl === null || containerEl === void 0 ? void 0 : containerEl.focus();
142
602
  }
143
603
  // --------------------------------------------------------------------------
144
604
  //
145
605
  // Render Methods
146
606
  //
147
607
  // --------------------------------------------------------------------------
608
+ renderSelected() {
609
+ const { selected, selectionMode, selectionAppearance } = this;
610
+ if (selectionMode === "none" || selectionAppearance === "border") {
611
+ return null;
612
+ }
613
+ return (h("td", { class: CSS$1.selectionContainer, key: "selection-container", onClick: this.toggleSelected }, h("calcite-icon", { icon: selected
614
+ ? selectionMode === "multiple"
615
+ ? ICONS.selectedMultiple
616
+ : ICONS.selectedSingle
617
+ : ICONS.unselected, scale: "s" })));
618
+ }
619
+ renderOpen() {
620
+ const { el, open, openable, parentListEl } = this;
621
+ const dir = getElementDir(el);
622
+ return openable ? (h("td", { class: CSS$1.openContainer, key: "open-container", onClick: this.toggleOpen }, h("calcite-icon", { icon: open ? ICONS.open : dir === "rtl" ? ICONS.closedRTL : ICONS.closedLTR, scale: "s" }))) : (parentListEl === null || parentListEl === void 0 ? void 0 : parentListEl.openable) ? (h("td", { class: CSS$1.openContainer, key: "open-container", onClick: this.toggleSelected }, h("calcite-icon", { icon: ICONS.blank, scale: "s" }))) : null;
623
+ }
148
624
  renderActionsStart() {
149
- const { el } = this;
150
- return getSlotted(el, SLOTS.actionsStart) ? (h("div", { class: CSS$1.actionsStart }, h("slot", { name: SLOTS.actionsStart }))) : null;
625
+ const { label, hasActionsStart } = this;
626
+ return (h("td", { "aria-label": label, class: CSS$1.actionsStart, hidden: !hasActionsStart, key: "actions-start-container", ref: (el) => (this.actionsStartEl = el), role: "gridcell" }, h("slot", { name: SLOTS.actionsStart, onSlotchange: this.handleActionsStartSlotChange })));
151
627
  }
152
628
  renderActionsEnd() {
153
- const { el } = this;
154
- return getSlotted(el, SLOTS.actionsEnd) ? (h("div", { class: CSS$1.actionsEnd }, h("slot", { name: SLOTS.actionsEnd }))) : null;
629
+ const { label, hasActionsEnd } = this;
630
+ return (h("td", { "aria-label": label, class: CSS$1.actionsEnd, hidden: !hasActionsEnd, key: "actions-end-container", ref: (el) => (this.actionsEndEl = el), role: "gridcell" }, h("slot", { name: SLOTS.actionsEnd, onSlotchange: this.handleActionsEndSlotChange })));
155
631
  }
156
632
  renderContentStart() {
157
- const { el } = this;
158
- return getSlotted(el, SLOTS.contentStart) ? (h("div", { class: CSS$1.contentStart }, h("slot", { name: SLOTS.contentStart }))) : null;
633
+ const { hasContentStart } = this;
634
+ return (h("div", { class: CSS$1.contentStart, hidden: !hasContentStart }, h("slot", { name: SLOTS.contentStart, onSlotchange: this.handleContentStartSlotChange })));
159
635
  }
160
636
  renderContentEnd() {
161
- const { el } = this;
162
- return getSlotted(el, SLOTS.contentEnd) ? (h("div", { class: CSS$1.contentEnd }, h("slot", { name: SLOTS.contentEnd }))) : null;
637
+ const { hasContentEnd } = this;
638
+ return (h("div", { class: CSS$1.contentEnd, hidden: !hasContentEnd }, h("slot", { name: SLOTS.contentEnd, onSlotchange: this.handleContentEndSlotChange })));
163
639
  }
164
640
  renderContent() {
165
641
  const { label, description } = this;
166
- return !!label || !!description ? (h("div", { class: CSS$1.content }, label ? h("div", { class: CSS$1.label }, label) : null, description ? h("div", { class: CSS$1.description }, description) : null)) : null;
642
+ return !!label || !!description ? (h("div", { class: CSS$1.content, key: "content" }, label ? (h("div", { class: CSS$1.label, key: "label" }, label)) : null, description ? (h("div", { class: CSS$1.description, key: "description" }, description)) : null)) : null;
167
643
  }
168
644
  renderContentContainer() {
169
- const { description, disabled, label, nonInteractive } = this;
645
+ const { description, label, selectionMode } = this;
170
646
  const hasCenterContent = !!label || !!description;
171
647
  const content = [this.renderContentStart(), this.renderContent(), this.renderContentEnd()];
172
- return !nonInteractive ? (h("button", { class: {
648
+ return (h("td", { "aria-label": label, class: {
173
649
  [CSS$1.contentContainer]: true,
174
- [CSS$1.contentContainerButton]: true,
175
- [CSS$1.hasCenterContent]: hasCenterContent
176
- }, disabled: disabled, ref: (focusEl) => (this.focusEl = focusEl) }, content)) : (h("div", { class: { [CSS$1.contentContainer]: true, [CSS$1.hasCenterContent]: hasCenterContent }, ref: () => (this.focusEl = null) }, content));
650
+ [CSS$1.contentContainerSelectable]: selectionMode !== "none",
651
+ [CSS$1.contentContainerHasCenterContent]: hasCenterContent
652
+ }, key: "content-container", onClick: this.toggleSelected, ref: (el) => (this.contentEl = el), role: "gridcell" }, content));
177
653
  }
178
654
  render() {
179
- return (h(Host, { role: "listitem" }, h("div", { class: CSS$1.container }, this.renderActionsStart(), this.renderContentContainer(), this.renderActionsEnd()), h("div", { class: CSS$1.nestedContainer }, h("slot", null))));
655
+ const { openable, open, level, setPosition, setSize, active, label, selected, selectionAppearance, selectionMode } = this;
656
+ const showBorder = selectionMode !== "none" && selectionAppearance === "border";
657
+ const borderSelected = showBorder && selected;
658
+ const borderUnselected = showBorder && !selected;
659
+ return (h(Host, null, h("tr", { "aria-expanded": openable ? toAriaBoolean(open) : null, "aria-label": label, "aria-level": level, "aria-posinset": setPosition, "aria-selected": toAriaBoolean(selected), "aria-setsize": setSize, class: {
660
+ [CSS$1.container]: true,
661
+ [CSS$1.containerBorderSelected]: borderSelected,
662
+ [CSS$1.containerBorderUnselected]: borderUnselected
663
+ }, onFocus: this.focusCellNull, onKeyDown: this.handleItemKeyDown, ref: (el) => (this.containerEl = el), role: "row", style: { "--calcite-list-item-spacing-indent-multiplier": `${this.visualLevel}` }, tabIndex: active ? 0 : -1 }, this.renderSelected(), this.renderOpen(), this.renderActionsStart(), this.renderContentContainer(), this.renderActionsEnd()), h("div", { class: {
664
+ [CSS$1.nestedContainer]: true,
665
+ [CSS$1.nestedContainerHidden]: openable && !open
666
+ } }, h("slot", { onSlotchange: this.handleDefaultSlotChange }))));
667
+ }
668
+ setSelectionDefaults() {
669
+ const { parentListEl, selectionMode, selectionAppearance } = this;
670
+ if (!parentListEl) {
671
+ return;
672
+ }
673
+ if (!selectionMode) {
674
+ this.selectionMode = parentListEl.selectionMode;
675
+ }
676
+ if (!selectionAppearance) {
677
+ this.selectionAppearance = parentListEl.selectionAppearance;
678
+ }
180
679
  }
181
680
  get el() { return getElement(this); }
681
+ static get watchers() { return {
682
+ "active": ["activeHandler"],
683
+ "selected": ["handleSelectedChange"]
684
+ }; }
182
685
  };
183
686
  ListItem.style = listItemCss;
184
687
 
185
688
  const CSS = {
186
- heading: "heading",
187
- container: "container"
689
+ container: "container",
690
+ heading: "heading"
188
691
  };
189
692
 
190
- const listItemGroupCss = "@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.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:flex;flex-direction:column}.heading{margin:0px;display:flex;flex:1 1 0%;background-color:var(--calcite-ui-foreground-2);padding:0.75rem;font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-bold);color:var(--calcite-ui-text-2)}.container{display:flex;inline-size:100%;flex-direction:column;background-color:var(--calcite-ui-foreground-1)}::slotted(calcite-list-item-group){padding-inline-start:0.5rem}";
693
+ const listItemGroupCss = "@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.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}: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{display:flex;flex-direction:column;background-color:var(--calcite-ui-foreground-1);--calcite-list-item-spacing-indent:1rem}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.container{margin:0px;display:flex;flex:1 1 0%;background-color:var(--calcite-ui-foreground-2);padding:0.75rem;font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-bold);color:var(--calcite-ui-text-2)}.heading{padding-inline-start:calc(var(--calcite-list-item-spacing-indent) * var(--calcite-list-item-spacing-indent-multiplier))}::slotted(calcite-list-item){margin-block-end:1px;--tw-shadow:0 1px 0 var(--calcite-ui-border-3);--tw-shadow-colored:0 1px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}::slotted(calcite-list-item:last-child){--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}";
191
694
 
192
695
  const ListItemGroup = class {
193
696
  constructor(hostRef) {
194
697
  registerInstance(this, hostRef);
698
+ // --------------------------------------------------------------------------
699
+ //
700
+ // Properties
701
+ //
702
+ // --------------------------------------------------------------------------
703
+ /**
704
+ * When true, interaction is prevented and the component is displayed with lower opacity.
705
+ */
706
+ this.disabled = false;
707
+ this.visualLevel = null;
708
+ }
709
+ // --------------------------------------------------------------------------
710
+ //
711
+ // Lifecycle
712
+ //
713
+ // --------------------------------------------------------------------------
714
+ connectedCallback() {
715
+ const { el } = this;
716
+ this.visualLevel = getDepth(el, true);
717
+ }
718
+ componentDidRender() {
719
+ updateHostInteraction(this);
195
720
  }
196
721
  // --------------------------------------------------------------------------
197
722
  //
@@ -199,12 +724,8 @@ const ListItemGroup = class {
199
724
  //
200
725
  // --------------------------------------------------------------------------
201
726
  render() {
202
- var _a;
203
- const { el, heading, headingLevel } = this;
204
- const parentLevel = (_a = el.closest("calcite-list, calcite-list-item-group")) === null || _a === void 0 ? void 0 : _a.headingLevel;
205
- const relativeLevel = parentLevel ? constrainHeadingLevel(parentLevel + 1) : null;
206
- const level = headingLevel || relativeLevel;
207
- return (h(Host, null, heading ? (h(Heading, { class: CSS.heading, level: level }, heading)) : null, h("div", { class: CSS.container, role: "group" }, h("slot", null))));
727
+ const { heading, visualLevel } = this;
728
+ return (h(Host, null, h("tr", { class: CSS.container, style: { "--calcite-list-item-spacing-indent-multiplier": `${visualLevel}` } }, h("td", { class: CSS.heading, colSpan: MAX_COLUMNS }, heading)), h("slot", null)));
208
729
  }
209
730
  get el() { return getElement(this); }
210
731
  };