@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,31 +1,97 @@
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
6
  'use strict';
7
7
 
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
- const index = require('./index-06711fd4.js');
11
- const interactive = require('./interactive-251a436b.js');
12
- const loadable = require('./loadable-93fa1819.js');
13
- const dom = require('./dom-43e4f26f.js');
14
- const conditionalSlot = require('./conditionalSlot-8e686586.js');
15
- const Heading = require('./Heading-b526ff45.js');
16
- require('./resources-ac53ff3b.js');
17
- require('./guid-00fb951d.js');
18
- require('./observers-9985d188.js');
10
+ const index = require('./index-e480dbe3.js');
11
+ const interactive = require('./interactive-04cf9beb.js');
12
+ const observers = require('./observers-a2904f3c.js');
13
+ const dom = require('./dom-174e4de3.js');
14
+ const loadable = require('./loadable-c843838f.js');
15
+ const debounce = require('./debounce-891f5371.js');
16
+ require('./resources-0bb3a950.js');
17
+ require('./guid-bb54b501.js');
19
18
 
20
19
  const CSS$2 = {
21
- container: "container"
20
+ container: "container",
21
+ table: "table",
22
+ scrim: "scrim",
23
+ tableContainer: "table-container",
24
+ sticky: "sticky-pos"
25
+ };
26
+ const debounceTimeout = 100;
27
+
28
+ const listItemGroupSelector = "calcite-list-item-group";
29
+ const listItemSelector$1 = "calcite-list-item";
30
+ function getListItemChildren(event) {
31
+ const assignedElements = event.target.assignedElements({ flatten: true });
32
+ const listItemGroupChildren = assignedElements.filter((el) => el === null || el === void 0 ? void 0 : el.matches(listItemGroupSelector))
33
+ .map((group) => Array.from(group.querySelectorAll(listItemSelector$1)))
34
+ .reduce((previousValue, currentValue) => [...previousValue, ...currentValue], []);
35
+ const listItemChildren = assignedElements.filter((el) => el === null || el === void 0 ? void 0 : el.matches(listItemSelector$1));
36
+ return [...listItemGroupChildren, ...listItemChildren];
37
+ }
38
+ function updateListItemChildren(listItemChildren) {
39
+ listItemChildren.forEach((listItem) => {
40
+ listItem.setPosition = listItemChildren.indexOf(listItem) + 1;
41
+ listItem.setSize = listItemChildren.length;
42
+ });
43
+ }
44
+ function getDepth(element, includeGroup = false) {
45
+ const expression = includeGroup
46
+ ? "ancestor::calcite-list-item | ancestor::calcite-list-item-group"
47
+ : "ancestor::calcite-list-item";
48
+ const result = document.evaluate(expression, element, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
49
+ return result.snapshotLength;
50
+ }
51
+
52
+ const CSS$1 = {
53
+ container: "container",
54
+ containerBorderSelected: "container--border-selected",
55
+ containerBorderUnselected: "container--border-unselected",
56
+ contentContainer: "content-container",
57
+ contentContainerSelectable: "content-container--selectable",
58
+ contentContainerHasCenterContent: "content-container--has-center-content",
59
+ nestedContainer: "nested-container",
60
+ nestedContainerHidden: "nested-container--hidden",
61
+ content: "content",
62
+ actionsStart: "actions-start",
63
+ contentStart: "content-start",
64
+ label: "label",
65
+ description: "description",
66
+ contentEnd: "content-end",
67
+ actionsEnd: "actions-end",
68
+ selectionContainer: "selection-container",
69
+ openContainer: "open-container"
70
+ };
71
+ const SLOTS = {
72
+ actionsStart: "actions-start",
73
+ contentStart: "content-start",
74
+ contentEnd: "content-end",
75
+ actionsEnd: "actions-end"
76
+ };
77
+ const MAX_COLUMNS = 5;
78
+ const ICONS = {
79
+ selectedMultiple: "check-circle-f",
80
+ selectedSingle: "circle-f",
81
+ unselected: "blank",
82
+ closedLTR: "caret-right",
83
+ closedRTL: "caret-left",
84
+ open: "caret-down",
85
+ blank: "blank"
22
86
  };
23
87
 
24
- 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)}";
88
+ 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}";
25
89
 
90
+ const listItemSelector = "calcite-list-item";
26
91
  const List = class {
27
92
  constructor(hostRef) {
28
93
  index.registerInstance(this, hostRef);
94
+ this.calciteListFilter = index.createEvent(this, "calciteListFilter", 6);
29
95
  // --------------------------------------------------------------------------
30
96
  //
31
97
  // Properties
@@ -35,21 +101,240 @@ const List = class {
35
101
  * When `true`, interaction is prevented and the component is displayed with lower opacity.
36
102
  */
37
103
  this.disabled = false;
104
+ /**
105
+ * When true, an input appears at the top of the list that can be used by end users to filter items in the list.
106
+ */
107
+ this.filterEnabled = false;
108
+ /**
109
+ * **read-only** The currently filtered items
110
+ *
111
+ * @readonly
112
+ */
113
+ this.filteredItems = [];
114
+ /**
115
+ * **read-only** The currently filtered items
116
+ *
117
+ * @readonly
118
+ */
119
+ this.filteredData = [];
120
+ /**
121
+ * When true, content is waiting to be loaded. This state shows a busy indicator.
122
+ */
123
+ this.loading = false;
124
+ /**
125
+ * One of the items within the list can be opened.
126
+ *
127
+ * @internal
128
+ */
129
+ this.openable = false;
130
+ /**
131
+ * **read-only** The currently selected items
132
+ *
133
+ * @readonly
134
+ */
135
+ this.selectedItems = [];
136
+ /**
137
+ * 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
138
+ */
139
+ this.selectionMode = "none";
140
+ /**
141
+ * specify the selection appearance - icon (displays a checkmark or dot), border (displays a border), defaults to icon
142
+ */
143
+ this.selectionAppearance = "icon";
144
+ this.listItems = [];
145
+ this.enabledListItems = [];
146
+ this.mutationObserver = observers.createObserver("mutation", () => this.updateListItems());
147
+ this.dataForFilter = [];
148
+ // --------------------------------------------------------------------------
149
+ //
150
+ // Private Methods
151
+ //
152
+ // --------------------------------------------------------------------------
153
+ this.handleDefaultSlotChange = (event) => {
154
+ updateListItemChildren(getListItemChildren(event));
155
+ };
156
+ this.setActiveListItem = () => {
157
+ const { enabledListItems } = this;
158
+ if (!enabledListItems.some((item) => item.active)) {
159
+ if (enabledListItems[0]) {
160
+ enabledListItems[0].active = true;
161
+ }
162
+ }
163
+ };
164
+ this.updateSelectedItems = debounce.debounce(() => {
165
+ this.selectedItems = this.enabledListItems.filter((item) => item.selected);
166
+ }, debounceTimeout);
167
+ this.updateFilteredItems = debounce.debounce(() => {
168
+ const { listItems, filteredData, filterText } = this;
169
+ const values = filteredData.map((item) => item.value);
170
+ const groups = new Set();
171
+ const filteredItems = (listItems === null || listItems === void 0 ? void 0 : listItems.filter((item) => {
172
+ const parent = item.parentElement;
173
+ const grouped = parent.matches("calcite-list-item-group");
174
+ if (grouped) {
175
+ groups.add(parent);
176
+ }
177
+ const matches = filterText ? values.includes(item.value) : true;
178
+ item.hidden = !matches;
179
+ return matches;
180
+ })) || [];
181
+ this.filteredItems = filteredItems;
182
+ groups.forEach((group) => {
183
+ const hasAtLeastOneMatch = filteredItems.some((item) => group.contains(item));
184
+ group.hidden = !hasAtLeastOneMatch;
185
+ if (!hasAtLeastOneMatch) {
186
+ return;
187
+ }
188
+ const parentItem = group.closest("calcite-list-item");
189
+ if (parentItem) {
190
+ parentItem.hidden = false;
191
+ if (filteredItems.includes(parentItem)) {
192
+ Array.from(group.querySelectorAll("calcite-list-item")).forEach((child) => (child.hidden = false));
193
+ }
194
+ }
195
+ });
196
+ groups.clear();
197
+ });
198
+ this.handleFilter = (event) => {
199
+ event.stopPropagation();
200
+ const { filteredItems, value } = event.currentTarget;
201
+ this.filteredData = filteredItems;
202
+ this.filterText = value;
203
+ this.updateFilteredItems();
204
+ this.calciteListFilter.emit();
205
+ };
206
+ this.getItemData = () => {
207
+ return this.listItems.map((item) => ({
208
+ label: item.label,
209
+ description: item.description,
210
+ metadata: item.metadata,
211
+ value: item.value
212
+ }));
213
+ };
214
+ this.updateListItems = debounce.debounce(() => {
215
+ const { selectionAppearance, selectionMode } = this;
216
+ const items = this.queryListItems();
217
+ items.forEach((item) => {
218
+ item.selectionAppearance = selectionAppearance;
219
+ item.selectionMode = selectionMode;
220
+ });
221
+ this.listItems = items;
222
+ this.enabledListItems = items.filter((item) => !item.disabled);
223
+ if (this.filterEnabled) {
224
+ this.dataForFilter = this.getItemData();
225
+ }
226
+ this.setActiveListItem();
227
+ this.updateSelectedItems();
228
+ this.updateFilteredItems();
229
+ }, debounceTimeout);
230
+ this.queryListItems = () => {
231
+ return Array.from(this.el.querySelectorAll(listItemSelector));
232
+ };
233
+ this.focusRow = (focusEl) => {
234
+ const { enabledListItems } = this;
235
+ if (!focusEl) {
236
+ return;
237
+ }
238
+ enabledListItems.forEach((listItem) => (listItem.active = listItem === focusEl));
239
+ focusEl.setFocus();
240
+ };
241
+ this.isNavigable = (listItem) => {
242
+ var _a;
243
+ const parentListItemEl = (_a = listItem.parentElement) === null || _a === void 0 ? void 0 : _a.closest(listItemSelector);
244
+ if (!parentListItemEl) {
245
+ return true;
246
+ }
247
+ return parentListItemEl.open && this.isNavigable(parentListItemEl);
248
+ };
249
+ this.handleListKeydown = (event) => {
250
+ const { key } = event;
251
+ const filteredItems = this.enabledListItems.filter((listItem) => this.isNavigable(listItem));
252
+ const currentIndex = filteredItems.findIndex((listItem) => listItem.active);
253
+ if (key === "ArrowDown") {
254
+ event.preventDefault();
255
+ const nextIndex = currentIndex + 1;
256
+ if (filteredItems[nextIndex]) {
257
+ this.focusRow(filteredItems[nextIndex]);
258
+ }
259
+ }
260
+ else if (key === "ArrowUp") {
261
+ event.preventDefault();
262
+ const prevIndex = currentIndex - 1;
263
+ if (filteredItems[prevIndex]) {
264
+ this.focusRow(filteredItems[prevIndex]);
265
+ }
266
+ }
267
+ else if (key === "Home") {
268
+ event.preventDefault();
269
+ const homeItem = filteredItems[0];
270
+ if (homeItem) {
271
+ this.focusRow(homeItem);
272
+ }
273
+ }
274
+ else if (key === "End") {
275
+ event.preventDefault();
276
+ const endItem = filteredItems[filteredItems.length - 1];
277
+ if (endItem) {
278
+ this.focusRow(endItem);
279
+ }
280
+ }
281
+ };
282
+ }
283
+ handleFilterEnabledChange() {
284
+ this.updateListItems();
285
+ }
286
+ handleSelectionAppearanceChange() {
287
+ this.updateListItems();
288
+ }
289
+ handleCalciteInternalFocusPreviousItem(event) {
290
+ event.stopPropagation();
291
+ const { enabledListItems } = this;
292
+ const currentIndex = enabledListItems.findIndex((listItem) => listItem.active);
293
+ const prevIndex = currentIndex - 1;
294
+ if (enabledListItems[prevIndex]) {
295
+ this.focusRow(enabledListItems[prevIndex]);
296
+ }
297
+ }
298
+ handleCalciteListItemSelect(event) {
299
+ const target = event.target;
300
+ const { listItems, selectionMode } = this;
301
+ listItems.forEach((listItem) => {
302
+ listItem.active = listItem === target;
303
+ if (selectionMode === "single") {
304
+ listItem.selected = listItem === target;
305
+ }
306
+ });
307
+ this.updateSelectedItems();
38
308
  }
39
309
  //--------------------------------------------------------------------------
40
310
  //
41
311
  // Lifecycle
42
312
  //
43
313
  //--------------------------------------------------------------------------
314
+ connectedCallback() {
315
+ var _a;
316
+ (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
317
+ this.updateListItems();
318
+ }
319
+ disconnectedCallback() {
320
+ var _a;
321
+ (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
322
+ }
44
323
  componentWillLoad() {
45
324
  loadable.setUpLoadableComponent(this);
46
325
  }
47
- componentDidLoad() {
48
- loadable.setComponentLoaded(this);
49
- }
50
326
  componentDidRender() {
51
327
  interactive.updateHostInteraction(this);
52
328
  }
329
+ componentDidLoad() {
330
+ loadable.setComponentLoaded(this);
331
+ const { filterEl } = this;
332
+ const filteredItems = filterEl === null || filterEl === void 0 ? void 0 : filterEl.filteredItems;
333
+ if (filteredItems) {
334
+ this.filteredData = filteredItems;
335
+ }
336
+ this.updateFilteredItems();
337
+ }
53
338
  // --------------------------------------------------------------------------
54
339
  //
55
340
  // Public Methods
@@ -57,9 +342,9 @@ const List = class {
57
342
  // --------------------------------------------------------------------------
58
343
  /** Sets focus on the component. */
59
344
  async setFocus() {
345
+ var _a;
60
346
  await loadable.componentLoaded(this);
61
- const firstListItem = this.el.querySelector(`calcite-list-item:not([non-interactive])`);
62
- firstListItem === null || firstListItem === void 0 ? void 0 : firstListItem.setFocus();
347
+ (_a = this.enabledListItems.find((listItem) => listItem.active)) === null || _a === void 0 ? void 0 : _a.setFocus();
63
348
  }
64
349
  // --------------------------------------------------------------------------
65
350
  //
@@ -67,57 +352,227 @@ const List = class {
67
352
  //
68
353
  // --------------------------------------------------------------------------
69
354
  render() {
70
- return (index.h(index.Host, { role: "list" }, index.h("div", { class: CSS$2.container }, index.h("slot", null))));
355
+ const { loading, label, disabled, dataForFilter, filterEnabled, filterPlaceholder, filterText } = this;
356
+ return (index.h("div", { class: CSS$2.container }, loading ? index.h("calcite-scrim", { class: CSS$2.scrim, loading: loading }) : null, index.h("table", { "aria-busy": dom.toAriaBoolean(loading), "aria-label": label || "", class: CSS$2.table, onKeyDown: this.handleListKeydown, role: "treegrid" }, filterEnabled ? (index.h("thead", null, index.h("tr", { class: { [CSS$2.sticky]: true } }, index.h("th", { colSpan: MAX_COLUMNS }, index.h("calcite-filter", { "aria-label": filterPlaceholder, disabled: loading || disabled, items: dataForFilter, onCalciteFilterChange: this.handleFilter, placeholder: filterPlaceholder, ref: (el) => (this.filterEl = el), value: filterText }))))) : null, index.h("tbody", { class: CSS$2.tableContainer }, index.h("slot", { onSlotchange: this.handleDefaultSlotChange })))));
71
357
  }
72
358
  get el() { return index.getElement(this); }
359
+ static get watchers() { return {
360
+ "filterEnabled": ["handleFilterEnabledChange"],
361
+ "selectionMode": ["handleSelectionAppearanceChange"],
362
+ "selectionAppearance": ["handleSelectionAppearanceChange"]
363
+ }; }
73
364
  };
74
365
  List.style = listCss;
75
366
 
76
- const CSS$1 = {
77
- container: "container",
78
- contentContainer: "content-container",
79
- nestedContainer: "nested-container",
80
- contentContainerButton: "content-container--button",
81
- content: "content",
82
- actionsStart: "actions-start",
83
- contentStart: "content-start",
84
- label: "label",
85
- description: "description",
86
- contentEnd: "content-end",
87
- actionsEnd: "actions-end",
88
- hasCenterContent: "has-center-content"
89
- };
90
- const SLOTS = {
91
- actionsStart: "actions-start",
92
- contentStart: "content-start",
93
- contentEnd: "content-end",
94
- actionsEnd: "actions-end"
95
- };
96
-
97
- 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}";
367
+ 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}";
98
368
 
369
+ const focusMap = new Map();
370
+ const listSelector = "calcite-list";
99
371
  const ListItem = class {
100
372
  constructor(hostRef) {
101
373
  index.registerInstance(this, hostRef);
374
+ this.calciteListItemSelect = index.createEvent(this, "calciteListItemSelect", 6);
375
+ this.calciteInternalListItemSelect = index.createEvent(this, "calciteInternalListItemSelect", 6);
376
+ this.calciteInternalFocusPreviousItem = index.createEvent(this, "calciteInternalFocusPreviousItem", 6);
102
377
  // --------------------------------------------------------------------------
103
378
  //
104
379
  // Properties
105
380
  //
106
381
  // --------------------------------------------------------------------------
107
382
  /**
108
- * When `true`, prevents the content of the component from user interaction.
383
+ * Sets the item as focusable. Only one item should be focusable within a list.
384
+ *
385
+ * @internal
109
386
  */
110
- this.nonInteractive = false;
387
+ this.active = false;
111
388
  /**
112
389
  * When `true`, interaction is prevented and the component is displayed with lower opacity.
113
390
  */
114
391
  this.disabled = false;
392
+ /**
393
+ * When `true`, prevents the content of the component from user interaction.
394
+ *
395
+ * @deprecated no longer necessary.
396
+ */
397
+ this.nonInteractive = false;
398
+ /**
399
+ * When true, item is open to show child components.
400
+ */
401
+ this.open = false;
402
+ /**
403
+ * Used to specify the aria-setsize attribute to define the number of items in the current set of list for accessibility.
404
+ *
405
+ * @internal
406
+ */
407
+ this.setSize = null;
408
+ /**
409
+ * Used to specify the aria-posinset attribute to define the number or position in the current set of list items for accessibility.
410
+ *
411
+ * @internal
412
+ */
413
+ this.setPosition = null;
414
+ /**
415
+ * When true, the component is selected.
416
+ */
417
+ this.selected = false;
418
+ /**
419
+ * 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
420
+ *
421
+ * @internal
422
+ */
423
+ this.selectionMode = null;
424
+ /**
425
+ * specify the selection appearance - icon (displays a checkmark or dot), border (displays a border), defaults to icon
426
+ *
427
+ * @internal
428
+ */
429
+ this.selectionAppearance = null;
430
+ this.level = null;
431
+ this.visualLevel = null;
432
+ this.openable = false;
433
+ this.hasActionsStart = false;
434
+ this.hasActionsEnd = false;
435
+ this.hasContentStart = false;
436
+ this.hasContentEnd = false;
437
+ // --------------------------------------------------------------------------
438
+ //
439
+ // Private Methods
440
+ //
441
+ // --------------------------------------------------------------------------
442
+ this.handleActionsStartSlotChange = (event) => {
443
+ const elements = event.target.assignedElements({
444
+ flatten: true
445
+ });
446
+ this.hasActionsStart = !!elements.length;
447
+ };
448
+ this.handleActionsEndSlotChange = (event) => {
449
+ const elements = event.target.assignedElements({
450
+ flatten: true
451
+ });
452
+ this.hasActionsEnd = !!elements.length;
453
+ };
454
+ this.handleContentStartSlotChange = (event) => {
455
+ const elements = event.target.assignedElements({
456
+ flatten: true
457
+ });
458
+ this.hasContentStart = !!elements.length;
459
+ };
460
+ this.handleContentEndSlotChange = (event) => {
461
+ const elements = event.target.assignedElements({
462
+ flatten: true
463
+ });
464
+ this.hasContentEnd = !!elements.length;
465
+ };
466
+ this.handleDefaultSlotChange = (event) => {
467
+ const { parentListEl } = this;
468
+ const listItemChildren = getListItemChildren(event);
469
+ updateListItemChildren(listItemChildren);
470
+ const openable = !!listItemChildren.length;
471
+ if (openable && parentListEl && !parentListEl.openable) {
472
+ parentListEl.openable = true;
473
+ }
474
+ this.openable = openable;
475
+ if (!openable) {
476
+ this.open = false;
477
+ }
478
+ };
479
+ this.toggleOpen = () => {
480
+ this.open = !this.open;
481
+ };
482
+ this.toggleSelected = () => {
483
+ if (this.disabled) {
484
+ return;
485
+ }
486
+ if (this.selectionMode !== "none") {
487
+ this.selected = !this.selected;
488
+ }
489
+ this.calciteListItemSelect.emit();
490
+ };
491
+ this.handleItemKeyDown = (event) => {
492
+ const { key } = event;
493
+ const composedPath = event.composedPath();
494
+ const { containerEl, contentEl, actionsStartEl, actionsEndEl, open, openable } = this;
495
+ const cells = [actionsStartEl, contentEl, actionsEndEl].filter(Boolean);
496
+ const currentIndex = cells.findIndex((cell) => composedPath.includes(cell));
497
+ if (key === " ") {
498
+ event.preventDefault();
499
+ this.toggleSelected();
500
+ }
501
+ else if (key === "ArrowRight") {
502
+ event.preventDefault();
503
+ const nextIndex = currentIndex + 1;
504
+ if (currentIndex === -1) {
505
+ if (!open && openable) {
506
+ this.open = true;
507
+ this.focusCell(null);
508
+ }
509
+ else if (cells[0]) {
510
+ this.focusCell(cells[0]);
511
+ }
512
+ }
513
+ else if (cells[currentIndex] && cells[nextIndex]) {
514
+ this.focusCell(cells[nextIndex]);
515
+ }
516
+ }
517
+ else if (key === "ArrowLeft") {
518
+ event.preventDefault();
519
+ const prevIndex = currentIndex - 1;
520
+ if (currentIndex === -1) {
521
+ this.focusCell(null);
522
+ if (open && openable) {
523
+ this.open = false;
524
+ }
525
+ else {
526
+ this.calciteInternalFocusPreviousItem.emit();
527
+ }
528
+ }
529
+ else if (currentIndex === 0) {
530
+ this.focusCell(null);
531
+ containerEl.focus();
532
+ }
533
+ else if (cells[currentIndex] && cells[prevIndex]) {
534
+ this.focusCell(cells[prevIndex]);
535
+ }
536
+ }
537
+ };
538
+ this.focusCellNull = () => {
539
+ this.focusCell(null);
540
+ };
541
+ this.focusCell = (focusEl, saveFocusIndex = true) => {
542
+ const { contentEl, actionsStartEl, actionsEndEl, parentListEl } = this;
543
+ if (saveFocusIndex) {
544
+ focusMap.set(parentListEl, null);
545
+ }
546
+ [actionsStartEl, contentEl, actionsEndEl].filter(Boolean).forEach((tableCell, cellIndex) => {
547
+ const tabIndexAttr = "tabindex";
548
+ if (tableCell === focusEl) {
549
+ tableCell.setAttribute(tabIndexAttr, "0");
550
+ saveFocusIndex && focusMap.set(parentListEl, cellIndex);
551
+ }
552
+ else {
553
+ tableCell.removeAttribute(tabIndexAttr);
554
+ }
555
+ });
556
+ focusEl === null || focusEl === void 0 ? void 0 : focusEl.focus();
557
+ };
558
+ }
559
+ activeHandler(active) {
560
+ if (!active) {
561
+ this.focusCell(null, false);
562
+ }
563
+ }
564
+ handleSelectedChange(value) {
565
+ if (value) {
566
+ this.calciteInternalListItemSelect.emit();
567
+ }
568
+ }
569
+ connectedCallback() {
570
+ const { el } = this;
571
+ this.parentListEl = el.closest(listSelector);
572
+ this.level = getDepth(el) + 1;
573
+ this.visualLevel = getDepth(el, true);
574
+ this.setSelectionDefaults();
115
575
  }
116
- //--------------------------------------------------------------------------
117
- //
118
- // Lifecycle
119
- //
120
- //--------------------------------------------------------------------------
121
576
  componentWillLoad() {
122
577
  loadable.setUpLoadableComponent(this);
123
578
  }
@@ -125,13 +580,7 @@ const ListItem = class {
125
580
  loadable.setComponentLoaded(this);
126
581
  }
127
582
  componentDidRender() {
128
- interactive.updateHostInteraction(this);
129
- }
130
- connectedCallback() {
131
- conditionalSlot.connectConditionalSlotComponent(this);
132
- }
133
- disconnectedCallback() {
134
- conditionalSlot.disconnectConditionalSlotComponent(this);
583
+ interactive.updateHostInteraction(this, "managed");
135
584
  }
136
585
  // --------------------------------------------------------------------------
137
586
  //
@@ -140,62 +589,138 @@ const ListItem = class {
140
589
  // --------------------------------------------------------------------------
141
590
  /** Sets focus on the component. */
142
591
  async setFocus() {
143
- var _a;
144
592
  await loadable.componentLoaded(this);
145
- (_a = this.focusEl) === null || _a === void 0 ? void 0 : _a.focus();
593
+ const { containerEl, contentEl, actionsStartEl, actionsEndEl, parentListEl } = this;
594
+ const focusIndex = focusMap.get(parentListEl);
595
+ if (typeof focusIndex === "number") {
596
+ const cells = [actionsStartEl, contentEl, actionsEndEl].filter(Boolean);
597
+ if (cells[focusIndex]) {
598
+ this.focusCell(cells[focusIndex]);
599
+ }
600
+ else {
601
+ containerEl === null || containerEl === void 0 ? void 0 : containerEl.focus();
602
+ }
603
+ return;
604
+ }
605
+ containerEl === null || containerEl === void 0 ? void 0 : containerEl.focus();
146
606
  }
147
607
  // --------------------------------------------------------------------------
148
608
  //
149
609
  // Render Methods
150
610
  //
151
611
  // --------------------------------------------------------------------------
612
+ renderSelected() {
613
+ const { selected, selectionMode, selectionAppearance } = this;
614
+ if (selectionMode === "none" || selectionAppearance === "border") {
615
+ return null;
616
+ }
617
+ return (index.h("td", { class: CSS$1.selectionContainer, key: "selection-container", onClick: this.toggleSelected }, index.h("calcite-icon", { icon: selected
618
+ ? selectionMode === "multiple"
619
+ ? ICONS.selectedMultiple
620
+ : ICONS.selectedSingle
621
+ : ICONS.unselected, scale: "s" })));
622
+ }
623
+ renderOpen() {
624
+ const { el, open, openable, parentListEl } = this;
625
+ const dir = dom.getElementDir(el);
626
+ return openable ? (index.h("td", { class: CSS$1.openContainer, key: "open-container", onClick: this.toggleOpen }, index.h("calcite-icon", { icon: open ? ICONS.open : dir === "rtl" ? ICONS.closedRTL : ICONS.closedLTR, scale: "s" }))) : (parentListEl === null || parentListEl === void 0 ? void 0 : parentListEl.openable) ? (index.h("td", { class: CSS$1.openContainer, key: "open-container", onClick: this.toggleSelected }, index.h("calcite-icon", { icon: ICONS.blank, scale: "s" }))) : null;
627
+ }
152
628
  renderActionsStart() {
153
- const { el } = this;
154
- return dom.getSlotted(el, SLOTS.actionsStart) ? (index.h("div", { class: CSS$1.actionsStart }, index.h("slot", { name: SLOTS.actionsStart }))) : null;
629
+ const { label, hasActionsStart } = this;
630
+ return (index.h("td", { "aria-label": label, class: CSS$1.actionsStart, hidden: !hasActionsStart, key: "actions-start-container", ref: (el) => (this.actionsStartEl = el), role: "gridcell" }, index.h("slot", { name: SLOTS.actionsStart, onSlotchange: this.handleActionsStartSlotChange })));
155
631
  }
156
632
  renderActionsEnd() {
157
- const { el } = this;
158
- return dom.getSlotted(el, SLOTS.actionsEnd) ? (index.h("div", { class: CSS$1.actionsEnd }, index.h("slot", { name: SLOTS.actionsEnd }))) : null;
633
+ const { label, hasActionsEnd } = this;
634
+ return (index.h("td", { "aria-label": label, class: CSS$1.actionsEnd, hidden: !hasActionsEnd, key: "actions-end-container", ref: (el) => (this.actionsEndEl = el), role: "gridcell" }, index.h("slot", { name: SLOTS.actionsEnd, onSlotchange: this.handleActionsEndSlotChange })));
159
635
  }
160
636
  renderContentStart() {
161
- const { el } = this;
162
- return dom.getSlotted(el, SLOTS.contentStart) ? (index.h("div", { class: CSS$1.contentStart }, index.h("slot", { name: SLOTS.contentStart }))) : null;
637
+ const { hasContentStart } = this;
638
+ return (index.h("div", { class: CSS$1.contentStart, hidden: !hasContentStart }, index.h("slot", { name: SLOTS.contentStart, onSlotchange: this.handleContentStartSlotChange })));
163
639
  }
164
640
  renderContentEnd() {
165
- const { el } = this;
166
- return dom.getSlotted(el, SLOTS.contentEnd) ? (index.h("div", { class: CSS$1.contentEnd }, index.h("slot", { name: SLOTS.contentEnd }))) : null;
641
+ const { hasContentEnd } = this;
642
+ return (index.h("div", { class: CSS$1.contentEnd, hidden: !hasContentEnd }, index.h("slot", { name: SLOTS.contentEnd, onSlotchange: this.handleContentEndSlotChange })));
167
643
  }
168
644
  renderContent() {
169
645
  const { label, description } = this;
170
- return !!label || !!description ? (index.h("div", { class: CSS$1.content }, label ? index.h("div", { class: CSS$1.label }, label) : null, description ? index.h("div", { class: CSS$1.description }, description) : null)) : null;
646
+ return !!label || !!description ? (index.h("div", { class: CSS$1.content, key: "content" }, label ? (index.h("div", { class: CSS$1.label, key: "label" }, label)) : null, description ? (index.h("div", { class: CSS$1.description, key: "description" }, description)) : null)) : null;
171
647
  }
172
648
  renderContentContainer() {
173
- const { description, disabled, label, nonInteractive } = this;
649
+ const { description, label, selectionMode } = this;
174
650
  const hasCenterContent = !!label || !!description;
175
651
  const content = [this.renderContentStart(), this.renderContent(), this.renderContentEnd()];
176
- return !nonInteractive ? (index.h("button", { class: {
652
+ return (index.h("td", { "aria-label": label, class: {
177
653
  [CSS$1.contentContainer]: true,
178
- [CSS$1.contentContainerButton]: true,
179
- [CSS$1.hasCenterContent]: hasCenterContent
180
- }, disabled: disabled, ref: (focusEl) => (this.focusEl = focusEl) }, content)) : (index.h("div", { class: { [CSS$1.contentContainer]: true, [CSS$1.hasCenterContent]: hasCenterContent }, ref: () => (this.focusEl = null) }, content));
654
+ [CSS$1.contentContainerSelectable]: selectionMode !== "none",
655
+ [CSS$1.contentContainerHasCenterContent]: hasCenterContent
656
+ }, key: "content-container", onClick: this.toggleSelected, ref: (el) => (this.contentEl = el), role: "gridcell" }, content));
181
657
  }
182
658
  render() {
183
- return (index.h(index.Host, { role: "listitem" }, index.h("div", { class: CSS$1.container }, this.renderActionsStart(), this.renderContentContainer(), this.renderActionsEnd()), index.h("div", { class: CSS$1.nestedContainer }, index.h("slot", null))));
659
+ const { openable, open, level, setPosition, setSize, active, label, selected, selectionAppearance, selectionMode } = this;
660
+ const showBorder = selectionMode !== "none" && selectionAppearance === "border";
661
+ const borderSelected = showBorder && selected;
662
+ const borderUnselected = showBorder && !selected;
663
+ return (index.h(index.Host, null, index.h("tr", { "aria-expanded": openable ? dom.toAriaBoolean(open) : null, "aria-label": label, "aria-level": level, "aria-posinset": setPosition, "aria-selected": dom.toAriaBoolean(selected), "aria-setsize": setSize, class: {
664
+ [CSS$1.container]: true,
665
+ [CSS$1.containerBorderSelected]: borderSelected,
666
+ [CSS$1.containerBorderUnselected]: borderUnselected
667
+ }, 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()), index.h("div", { class: {
668
+ [CSS$1.nestedContainer]: true,
669
+ [CSS$1.nestedContainerHidden]: openable && !open
670
+ } }, index.h("slot", { onSlotchange: this.handleDefaultSlotChange }))));
671
+ }
672
+ setSelectionDefaults() {
673
+ const { parentListEl, selectionMode, selectionAppearance } = this;
674
+ if (!parentListEl) {
675
+ return;
676
+ }
677
+ if (!selectionMode) {
678
+ this.selectionMode = parentListEl.selectionMode;
679
+ }
680
+ if (!selectionAppearance) {
681
+ this.selectionAppearance = parentListEl.selectionAppearance;
682
+ }
184
683
  }
185
684
  get el() { return index.getElement(this); }
685
+ static get watchers() { return {
686
+ "active": ["activeHandler"],
687
+ "selected": ["handleSelectedChange"]
688
+ }; }
186
689
  };
187
690
  ListItem.style = listItemCss;
188
691
 
189
692
  const CSS = {
190
- heading: "heading",
191
- container: "container"
693
+ container: "container",
694
+ heading: "heading"
192
695
  };
193
696
 
194
- 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}";
697
+ 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)}";
195
698
 
196
699
  const ListItemGroup = class {
197
700
  constructor(hostRef) {
198
701
  index.registerInstance(this, hostRef);
702
+ // --------------------------------------------------------------------------
703
+ //
704
+ // Properties
705
+ //
706
+ // --------------------------------------------------------------------------
707
+ /**
708
+ * When true, interaction is prevented and the component is displayed with lower opacity.
709
+ */
710
+ this.disabled = false;
711
+ this.visualLevel = null;
712
+ }
713
+ // --------------------------------------------------------------------------
714
+ //
715
+ // Lifecycle
716
+ //
717
+ // --------------------------------------------------------------------------
718
+ connectedCallback() {
719
+ const { el } = this;
720
+ this.visualLevel = getDepth(el, true);
721
+ }
722
+ componentDidRender() {
723
+ interactive.updateHostInteraction(this);
199
724
  }
200
725
  // --------------------------------------------------------------------------
201
726
  //
@@ -203,12 +728,8 @@ const ListItemGroup = class {
203
728
  //
204
729
  // --------------------------------------------------------------------------
205
730
  render() {
206
- var _a;
207
- const { el, heading, headingLevel } = this;
208
- const parentLevel = (_a = el.closest("calcite-list, calcite-list-item-group")) === null || _a === void 0 ? void 0 : _a.headingLevel;
209
- const relativeLevel = parentLevel ? Heading.constrainHeadingLevel(parentLevel + 1) : null;
210
- const level = headingLevel || relativeLevel;
211
- return (index.h(index.Host, null, heading ? (index.h(Heading.Heading, { class: CSS.heading, level: level }, heading)) : null, index.h("div", { class: CSS.container, role: "group" }, index.h("slot", null))));
731
+ const { heading, visualLevel } = this;
732
+ return (index.h(index.Host, null, index.h("tr", { class: CSS.container, style: { "--calcite-list-item-spacing-indent-multiplier": `${visualLevel}` } }, index.h("td", { class: CSS.heading, colSpan: MAX_COLUMNS }, heading)), index.h("slot", null)));
212
733
  }
213
734
  get el() { return index.getElement(this); }
214
735
  };