@esri/calcite-components 1.0.0-beta.75 → 1.0.0-beta.76

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 (557) hide show
  1. package/dist/calcite/assets/calcite-date-picker/nls/pt-BR.json +31 -0
  2. package/dist/calcite/assets/calcite-date-picker/nls/pt-PT.json +3 -3
  3. package/dist/calcite/assets/calcite-icon/clipboard16.json +1 -0
  4. package/dist/calcite/assets/calcite-icon/clipboard24.json +1 -0
  5. package/dist/calcite/assets/calcite-icon/clipboard32.json +1 -0
  6. package/dist/calcite/assets/calcite-icon/folders16.json +1 -0
  7. package/dist/calcite/assets/calcite-icon/folders24.json +1 -0
  8. package/dist/calcite/assets/calcite-icon/folders32.json +1 -0
  9. package/dist/calcite/assets/calcite-icon/initiative16.json +1 -0
  10. package/dist/calcite/assets/calcite-icon/initiative24.json +1 -0
  11. package/dist/calcite/assets/calcite-icon/initiative32.json +1 -0
  12. package/dist/calcite/assets/calcite-icon/initiativeTemplate16.json +1 -0
  13. package/dist/calcite/assets/calcite-icon/initiativeTemplate24.json +1 -0
  14. package/dist/calcite/assets/calcite-icon/initiativeTemplate32.json +1 -0
  15. package/dist/calcite/assets/calcite-icon/multipleVariables16.json +1 -0
  16. package/dist/calcite/assets/calcite-icon/multipleVariables24.json +1 -0
  17. package/dist/calcite/assets/calcite-icon/multipleVariables32.json +1 -0
  18. package/dist/calcite/assets/calcite-icon/paletteCheck16.json +1 -0
  19. package/dist/calcite/assets/calcite-icon/paletteCheck24.json +1 -0
  20. package/dist/calcite/assets/calcite-icon/paletteCheck32.json +1 -0
  21. package/dist/calcite/assets/calcite-icon/pentagon16.json +1 -0
  22. package/dist/calcite/assets/calcite-icon/pentagon24.json +1 -0
  23. package/dist/calcite/assets/calcite-icon/pentagon32.json +1 -0
  24. package/dist/calcite/assets/calcite-icon/puzzlePiece16.json +1 -0
  25. package/dist/calcite/assets/calcite-icon/puzzlePiece24.json +1 -0
  26. package/dist/calcite/assets/calcite-icon/puzzlePiece32.json +1 -0
  27. package/dist/calcite/assets/calcite-icon/ribbonRosette16.json +1 -0
  28. package/dist/calcite/assets/calcite-icon/ribbonRosette24.json +1 -0
  29. package/dist/calcite/assets/calcite-icon/ribbonRosette32.json +1 -0
  30. package/dist/calcite/assets/calcite-icon/speechBubbleExclamation16.json +1 -0
  31. package/dist/calcite/assets/calcite-icon/speechBubbleExclamation24.json +1 -0
  32. package/dist/calcite/assets/calcite-icon/speechBubbleExclamation32.json +1 -0
  33. package/dist/calcite/assets/calcite-icon/survey16.json +1 -0
  34. package/dist/calcite/assets/calcite-icon/survey24.json +1 -0
  35. package/dist/calcite/assets/calcite-icon/survey32.json +1 -0
  36. package/dist/calcite/calcite.esm.js +1 -1
  37. package/dist/calcite/calcite.js +1 -1
  38. package/dist/calcite/{p-86b63ebb.system.entry.js → p-010b6b91.system.entry.js} +1 -1
  39. package/dist/calcite/p-015d6a24.entry.js +5 -0
  40. package/dist/calcite/p-0459ae3e.system.entry.js +5 -0
  41. package/dist/calcite/{p-0164361f.system.entry.js → p-07603601.system.entry.js} +1 -1
  42. package/dist/calcite/{p-e426746f.system.entry.js → p-0926320c.system.entry.js} +1 -1
  43. package/dist/calcite/{p-1668089f.entry.js → p-09bd0204.entry.js} +1 -1
  44. package/dist/calcite/{p-9e2c9752.entry.js → p-0c20a4e3.entry.js} +1 -1
  45. package/dist/calcite/{p-8604c625.system.entry.js → p-0d61e540.system.entry.js} +1 -1
  46. package/dist/calcite/{p-a99c8ebf.system.js → p-10e3f599.system.js} +1 -1
  47. package/dist/calcite/p-1199ec78.entry.js +5 -0
  48. package/dist/calcite/p-13f9119c.js +5 -0
  49. package/dist/calcite/{p-e5420c67.entry.js → p-150e45ec.entry.js} +1 -1
  50. package/dist/calcite/{p-5d7da300.system.entry.js → p-15eebdf8.system.entry.js} +1 -1
  51. package/dist/calcite/{p-49782820.entry.js → p-16a27151.entry.js} +1 -1
  52. package/dist/calcite/p-18259377.entry.js +5 -0
  53. package/dist/calcite/{p-baca86e3.entry.js → p-1a907c90.entry.js} +1 -1
  54. package/dist/calcite/p-1ce851da.js +5 -0
  55. package/dist/calcite/{p-fee9511c.system.entry.js → p-21e8e1e9.system.entry.js} +1 -1
  56. package/dist/calcite/{p-5d12a140.entry.js → p-2328c2ec.entry.js} +1 -1
  57. package/dist/calcite/{p-f1dc4798.entry.js → p-24765b5e.entry.js} +1 -1
  58. package/dist/calcite/{p-5b8404de.entry.js → p-2718a51a.entry.js} +1 -1
  59. package/dist/calcite/{p-8e1945e3.entry.js → p-2be7746c.entry.js} +1 -1
  60. package/dist/calcite/p-2d88c0ba.entry.js +5 -0
  61. package/dist/calcite/{p-7bdeb3ba.system.entry.js → p-353015b6.system.entry.js} +1 -1
  62. package/dist/calcite/{p-869eb8f9.entry.js → p-385f6cb9.entry.js} +1 -1
  63. package/dist/calcite/{p-b1a43a5f.system.entry.js → p-3e59c8ef.system.entry.js} +1 -1
  64. package/dist/calcite/{p-617c3f30.system.entry.js → p-3f6a6851.system.entry.js} +1 -1
  65. package/dist/calcite/{p-0a85cd8c.system.entry.js → p-3f792e3d.system.entry.js} +1 -1
  66. package/dist/calcite/{p-6fb9fef5.entry.js → p-408408d6.entry.js} +1 -1
  67. package/dist/calcite/{p-63f8783a.entry.js → p-42ac867a.entry.js} +1 -1
  68. package/dist/calcite/{p-2218fef5.entry.js → p-4340f6ed.entry.js} +1 -1
  69. package/dist/calcite/{p-44aa1db4.system.js → p-48fae9a9.system.js} +1 -1
  70. package/dist/calcite/{p-04bf684c.entry.js → p-4b7ff039.entry.js} +1 -1
  71. package/dist/calcite/{p-66ca7309.entry.js → p-4edc43c1.entry.js} +1 -1
  72. package/dist/calcite/p-4fc8341b.system.entry.js +5 -0
  73. package/dist/calcite/{p-40c3d7a6.system.entry.js → p-510ef2b7.system.entry.js} +1 -1
  74. package/dist/calcite/{p-7743a8d0.system.entry.js → p-5248d5fb.system.entry.js} +1 -1
  75. package/dist/calcite/p-54c3ea44.system.entry.js +5 -0
  76. package/dist/calcite/p-55c884ba.entry.js +5 -0
  77. package/dist/calcite/p-5660811e.entry.js +5 -0
  78. package/dist/calcite/p-5833a3af.entry.js +5 -0
  79. package/dist/calcite/p-59c6c9a0.entry.js +5 -0
  80. package/dist/calcite/{p-3cdf0ad5.system.entry.js → p-5cd2ff4e.system.entry.js} +1 -1
  81. package/dist/calcite/p-5f129d47.entry.js +5 -0
  82. package/dist/calcite/{p-d14265f3.entry.js → p-635594b8.entry.js} +1 -1
  83. package/dist/calcite/{p-58eb8460.entry.js → p-65ba6a8f.entry.js} +1 -1
  84. package/dist/calcite/{p-786b8250.entry.js → p-672ec03a.entry.js} +1 -1
  85. package/dist/calcite/{p-8709d314.system.entry.js → p-67cd9e12.system.entry.js} +1 -1
  86. package/dist/calcite/{p-0cb38659.system.entry.js → p-6a5a4922.system.entry.js} +1 -1
  87. package/dist/calcite/{p-fdd3ea5e.entry.js → p-6a797e80.entry.js} +1 -1
  88. package/dist/calcite/p-6b529df3.system.entry.js +5 -0
  89. package/dist/calcite/{p-6afd69dc.system.entry.js → p-6c4eb127.system.entry.js} +1 -1
  90. package/dist/calcite/{p-7d4316a1.system.entry.js → p-6d5c2fce.system.entry.js} +1 -1
  91. package/dist/calcite/{p-bde80af8.entry.js → p-6ee036b3.entry.js} +1 -1
  92. package/dist/calcite/{p-2e324a56.system.entry.js → p-71b6bc4c.system.entry.js} +1 -1
  93. package/dist/calcite/{p-e83a5fe4.system.entry.js → p-7266c359.system.entry.js} +1 -1
  94. package/dist/calcite/p-72951ce3.system.entry.js +5 -0
  95. package/dist/calcite/{p-141c978b.system.entry.js → p-75cda5de.system.entry.js} +1 -1
  96. package/dist/calcite/p-75df0e8f.entry.js +5 -0
  97. package/dist/calcite/p-79ba0ff5.js +5 -0
  98. package/dist/calcite/{p-04bf9bca.system.entry.js → p-7b2f2117.system.entry.js} +1 -1
  99. package/dist/calcite/{p-cfcb2161.entry.js → p-7b341154.entry.js} +1 -1
  100. package/dist/calcite/p-7e9189e8.system.entry.js +5 -0
  101. package/dist/calcite/{p-12142a2c.system.entry.js → p-80e56ba6.system.entry.js} +1 -1
  102. package/dist/calcite/{p-06dbe76a.system.entry.js → p-8124f6cc.system.entry.js} +1 -1
  103. package/dist/calcite/{p-754809de.entry.js → p-81dc55fa.entry.js} +1 -1
  104. package/dist/calcite/p-82e0b30e.entry.js +5 -0
  105. package/dist/calcite/{p-c5463268.system.entry.js → p-8446d974.system.entry.js} +1 -1
  106. package/dist/calcite/{p-c1c37da9.entry.js → p-852a718f.entry.js} +1 -1
  107. package/dist/calcite/p-8647d09e.entry.js +5 -0
  108. package/dist/calcite/{p-b86f0930.system.entry.js → p-888ce316.system.entry.js} +1 -1
  109. package/dist/calcite/{p-01b7adb5.js → p-8bfa00bc.js} +1 -1
  110. package/dist/calcite/{p-e1491358.system.entry.js → p-8d1564c5.system.entry.js} +1 -1
  111. package/dist/calcite/{p-2297db38.entry.js → p-8d437ca2.entry.js} +1 -1
  112. package/dist/calcite/{p-af669f43.entry.js → p-8f6aac19.entry.js} +1 -1
  113. package/dist/calcite/{p-bc85a791.entry.js → p-903c016f.entry.js} +1 -1
  114. package/dist/calcite/{p-70dd483b.system.js → p-9217d4ef.system.js} +1 -1
  115. package/dist/calcite/p-92901db9.entry.js +5 -0
  116. package/dist/calcite/{p-34e5baa7.system.js → p-94cfc34a.system.js} +1 -1
  117. package/dist/calcite/p-95810140.system.js +5 -0
  118. package/dist/calcite/p-95a3bcff.system.entry.js +5 -0
  119. package/dist/calcite/p-95b7c39a.system.entry.js +5 -0
  120. package/dist/calcite/p-983287ce.system.js +5 -0
  121. package/dist/calcite/{p-5a77fd17.entry.js → p-9ef989e2.entry.js} +1 -1
  122. package/dist/calcite/p-9f1c59ec.entry.js +5 -0
  123. package/dist/calcite/p-a37ecb59.entry.js +5 -0
  124. package/dist/calcite/{p-8f2c68f4.system.entry.js → p-a468d651.system.entry.js} +1 -1
  125. package/dist/calcite/{p-be231b84.entry.js → p-a77a8427.entry.js} +1 -1
  126. package/dist/calcite/{p-e4862fff.entry.js → p-a7dfed2f.entry.js} +1 -1
  127. package/dist/calcite/{p-92d9b81d.system.entry.js → p-a809abbd.system.entry.js} +1 -1
  128. package/dist/calcite/p-a859ccd4.system.js +5 -0
  129. package/dist/calcite/p-abf93e8f.system.js +5 -0
  130. package/dist/calcite/{p-82491929.entry.js → p-ac8c0493.entry.js} +1 -1
  131. package/dist/calcite/{p-2e351904.system.entry.js → p-ad2fd769.system.entry.js} +1 -1
  132. package/dist/calcite/{p-1804c868.system.entry.js → p-af5e11c9.system.entry.js} +1 -1
  133. package/dist/calcite/p-af75a72b.js +5 -0
  134. package/dist/calcite/p-b0ab09d3.system.entry.js +5 -0
  135. package/dist/calcite/p-b4a80f18.system.entry.js +5 -0
  136. package/dist/calcite/{p-9ca6c750.system.entry.js → p-b519a98e.system.entry.js} +1 -1
  137. package/dist/calcite/{p-b002b038.entry.js → p-b5781bda.entry.js} +1 -1
  138. package/dist/calcite/p-b8a670cc.entry.js +5 -0
  139. package/dist/calcite/{p-e5526c34.entry.js → p-ba6b0f09.entry.js} +1 -1
  140. package/dist/calcite/{p-da470de7.entry.js → p-bd289892.entry.js} +1 -1
  141. package/dist/calcite/p-c36161b9.system.entry.js +5 -0
  142. package/dist/calcite/{p-900e18a5.system.entry.js → p-c525d974.system.entry.js} +1 -1
  143. package/dist/calcite/{p-513bc44f.system.entry.js → p-c5e8d437.system.entry.js} +1 -1
  144. package/dist/calcite/{p-af84fa29.system.entry.js → p-cb02295b.system.entry.js} +1 -1
  145. package/dist/calcite/{p-10b1b39a.system.entry.js → p-d2931c8e.system.entry.js} +1 -1
  146. package/dist/calcite/{p-9d7102c0.entry.js → p-d2ebedc0.entry.js} +1 -1
  147. package/dist/calcite/{p-f4d9c369.system.entry.js → p-d3316626.system.entry.js} +1 -1
  148. package/dist/calcite/p-da987587.system.entry.js +5 -0
  149. package/dist/calcite/p-dadb1104.system.entry.js +5 -0
  150. package/dist/calcite/p-dae2daf0.entry.js +5 -0
  151. package/dist/calcite/{p-f5739197.entry.js → p-dc24f809.entry.js} +1 -1
  152. package/dist/calcite/p-de10a37b.entry.js +5 -0
  153. package/dist/calcite/{p-fe3fff79.entry.js → p-e54a3620.entry.js} +1 -1
  154. package/dist/calcite/p-e93a418e.system.entry.js +5 -0
  155. package/dist/calcite/{p-54edaa0d.entry.js → p-ea2b09ba.entry.js} +1 -1
  156. package/dist/calcite/{p-f7572da7.entry.js → p-ebd8eef3.entry.js} +1 -1
  157. package/dist/calcite/p-ec2d6c5f.system.entry.js +5 -0
  158. package/dist/calcite/{p-f26cad61.system.entry.js → p-ef779e80.system.entry.js} +1 -1
  159. package/dist/calcite/{p-243985d8.system.entry.js → p-f2508455.system.entry.js} +1 -1
  160. package/dist/calcite/{p-146d8510.entry.js → p-f45eae85.entry.js} +1 -1
  161. package/dist/calcite/{p-2e29554c.js → p-fb3f5251.js} +1 -1
  162. package/dist/calcite/{p-14e47d1b.js → p-fbf74b6d.js} +1 -1
  163. package/dist/calcite/{p-f763b1e7.system.entry.js → p-fc04e52b.system.entry.js} +1 -1
  164. package/dist/calcite/p-fc2f135e.system.entry.js +5 -0
  165. package/dist/calcite/{p-54bb21f5.system.entry.js → p-fe28891b.system.entry.js} +1 -1
  166. package/dist/calcite/{p-f24ddc56.system.entry.js → p-feacdfdf.system.entry.js} +1 -1
  167. package/dist/cjs/{CalciteExpandToggle-d24fed0e.js → CalciteExpandToggle-f1e05027.js} +1 -1
  168. package/dist/cjs/{CalciteHeading-112c19f9.js → CalciteHeading-d797719f.js} +1 -1
  169. package/dist/cjs/calcite-accordion_2.cjs.entry.js +7 -4
  170. package/dist/cjs/calcite-action-bar.cjs.entry.js +3 -3
  171. package/dist/cjs/calcite-action-group.cjs.entry.js +2 -2
  172. package/dist/cjs/calcite-action-menu.cjs.entry.js +3 -6
  173. package/dist/cjs/calcite-action-pad.cjs.entry.js +3 -3
  174. package/dist/cjs/calcite-action.cjs.entry.js +2 -2
  175. package/dist/cjs/calcite-alert.cjs.entry.js +6 -8
  176. package/dist/cjs/calcite-avatar.cjs.entry.js +1 -1
  177. package/dist/cjs/calcite-block_2.cjs.entry.js +4 -4
  178. package/dist/cjs/calcite-button.cjs.entry.js +1 -1
  179. package/dist/cjs/calcite-card.cjs.entry.js +2 -2
  180. package/dist/cjs/calcite-checkbox.cjs.entry.js +2 -2
  181. package/dist/cjs/calcite-chip.cjs.entry.js +3 -3
  182. package/dist/cjs/calcite-color-picker_3.cjs.entry.js +2 -2
  183. package/dist/cjs/calcite-combobox_3.cjs.entry.js +4 -4
  184. package/dist/cjs/calcite-date-picker_4.cjs.entry.js +5 -5
  185. package/dist/cjs/calcite-dropdown_3.cjs.entry.js +3 -3
  186. package/dist/cjs/calcite-fab.cjs.entry.js +1 -1
  187. package/dist/cjs/calcite-filter.cjs.entry.js +1 -1
  188. package/dist/cjs/calcite-flow.cjs.entry.js +1 -1
  189. package/dist/cjs/calcite-graph_2.cjs.entry.js +10 -6
  190. package/dist/cjs/calcite-handle.cjs.entry.js +1 -1
  191. package/dist/cjs/calcite-icon.cjs.entry.js +1 -1
  192. package/dist/cjs/calcite-inline-editable.cjs.entry.js +39 -14
  193. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +3 -3
  194. package/dist/cjs/calcite-input-message.cjs.entry.js +1 -1
  195. package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +3 -3
  196. package/dist/cjs/calcite-input.cjs.entry.js +13 -18
  197. package/dist/cjs/calcite-label.cjs.entry.js +5 -2
  198. package/dist/cjs/calcite-link.cjs.entry.js +1 -1
  199. package/dist/cjs/calcite-list_3.cjs.entry.js +3 -3
  200. package/dist/cjs/calcite-loader.cjs.entry.js +1 -1
  201. package/dist/cjs/calcite-modal.cjs.entry.js +3 -3
  202. package/dist/cjs/calcite-notice.cjs.entry.js +7 -9
  203. package/dist/cjs/calcite-option_3.cjs.entry.js +2 -2
  204. package/dist/cjs/calcite-pagination.cjs.entry.js +1 -1
  205. package/dist/cjs/calcite-panel.cjs.entry.js +21 -5
  206. package/dist/cjs/calcite-pick-list_3.cjs.entry.js +4 -4
  207. package/dist/cjs/calcite-popover_2.cjs.entry.js +2 -2
  208. package/dist/cjs/calcite-progress.cjs.entry.js +1 -1
  209. package/dist/cjs/calcite-radio-button-group.cjs.entry.js +14 -1
  210. package/dist/cjs/calcite-radio-button.cjs.entry.js +2 -6
  211. package/dist/cjs/calcite-radio-group_2.cjs.entry.js +2 -2
  212. package/dist/cjs/calcite-rating.cjs.entry.js +3 -3
  213. package/dist/cjs/calcite-scrim.cjs.entry.js +1 -1
  214. package/dist/cjs/calcite-shell_3.cjs.entry.js +9 -6
  215. package/dist/cjs/calcite-sortable-list.cjs.entry.js +1 -1
  216. package/dist/cjs/calcite-split-button.cjs.entry.js +1 -1
  217. package/dist/cjs/calcite-stepper_2.cjs.entry.js +1 -1
  218. package/dist/cjs/calcite-switch.cjs.entry.js +3 -3
  219. package/dist/cjs/calcite-tab_4.cjs.entry.js +2 -2
  220. package/dist/cjs/calcite-tile-select_2.cjs.entry.js +1 -1
  221. package/dist/cjs/calcite-tile.cjs.entry.js +2 -2
  222. package/dist/cjs/calcite-tip_3.cjs.entry.js +3 -3
  223. package/dist/cjs/calcite-tooltip_2.cjs.entry.js +3 -3
  224. package/dist/cjs/calcite-tree_2.cjs.entry.js +17 -10
  225. package/dist/cjs/calcite-value-list_2.cjs.entry.js +4 -4
  226. package/dist/cjs/calcite.cjs.js +3 -3
  227. package/dist/cjs/{conditionalSlot-92505fba.js → conditionalSlot-20745612.js} +1 -1
  228. package/dist/cjs/{form-237cf392.js → form-55a71663.js} +1 -1
  229. package/dist/cjs/{index-6b5d2de5.js → index-8b0d388b.js} +0 -5
  230. package/dist/cjs/loader.cjs.js +3 -3
  231. package/dist/cjs/{resources-11763017.js → resources-6af71952.js} +4 -1
  232. package/dist/cjs/{resources-95073e41.js → resources-f6847c67.js} +1 -1
  233. package/dist/collection/collection-manifest.json +1 -1
  234. package/dist/collection/components/accordion/interfaces.js +1 -0
  235. package/dist/collection/components/alert/interfaces.js +7 -0
  236. package/dist/collection/components/block-section/interfaces.js +1 -0
  237. package/dist/collection/components/button/interfaces.js +1 -0
  238. package/dist/collection/components/calcite-accordion/calcite-accordion.css +5 -5
  239. package/dist/collection/components/calcite-accordion/calcite-accordion.js +5 -1
  240. package/dist/collection/components/calcite-accordion-item/calcite-accordion-item.css +2 -16
  241. package/dist/collection/components/calcite-action/calcite-action.css +3 -1
  242. package/dist/collection/components/calcite-action-menu/calcite-action-menu.js +1 -4
  243. package/dist/collection/components/calcite-alert/calcite-alert.css +1 -0
  244. package/dist/collection/components/calcite-alert/calcite-alert.js +8 -7
  245. package/dist/collection/components/calcite-block/calcite-block.css +1 -0
  246. package/dist/collection/components/calcite-chip/calcite-chip.css +1 -0
  247. package/dist/collection/components/calcite-color-picker/calcite-color-picker.css +1 -0
  248. package/dist/collection/components/calcite-combobox/calcite-combobox.css +1 -1
  249. package/dist/collection/components/calcite-date-picker/assets/calcite-date-picker/nls/pt-BR.json +31 -0
  250. package/dist/collection/components/calcite-date-picker/assets/calcite-date-picker/nls/pt-PT.json +3 -3
  251. package/dist/collection/components/calcite-date-picker/utils.js +3 -0
  252. package/dist/collection/components/calcite-date-picker-day/calcite-date-picker-day.css +1 -0
  253. package/dist/collection/components/calcite-date-picker-month-header/calcite-date-picker-month-header.css +1 -0
  254. package/dist/collection/components/calcite-dropdown/calcite-dropdown.css +1 -0
  255. package/dist/collection/components/calcite-dropdown/calcite-dropdown.js +2 -2
  256. package/dist/collection/components/calcite-icon/assets/calcite-icon/clipboard16.json +1 -0
  257. package/dist/collection/components/calcite-icon/assets/calcite-icon/clipboard24.json +1 -0
  258. package/dist/collection/components/calcite-icon/assets/calcite-icon/clipboard32.json +1 -0
  259. package/dist/collection/components/calcite-icon/assets/calcite-icon/folders16.json +1 -0
  260. package/dist/collection/components/calcite-icon/assets/calcite-icon/folders24.json +1 -0
  261. package/dist/collection/components/calcite-icon/assets/calcite-icon/folders32.json +1 -0
  262. package/dist/collection/components/calcite-icon/assets/calcite-icon/initiative16.json +1 -0
  263. package/dist/collection/components/calcite-icon/assets/calcite-icon/initiative24.json +1 -0
  264. package/dist/collection/components/calcite-icon/assets/calcite-icon/initiative32.json +1 -0
  265. package/dist/collection/components/calcite-icon/assets/calcite-icon/initiativeTemplate16.json +1 -0
  266. package/dist/collection/components/calcite-icon/assets/calcite-icon/initiativeTemplate24.json +1 -0
  267. package/dist/collection/components/calcite-icon/assets/calcite-icon/initiativeTemplate32.json +1 -0
  268. package/dist/collection/components/calcite-icon/assets/calcite-icon/multipleVariables16.json +1 -0
  269. package/dist/collection/components/calcite-icon/assets/calcite-icon/multipleVariables24.json +1 -0
  270. package/dist/collection/components/calcite-icon/assets/calcite-icon/multipleVariables32.json +1 -0
  271. package/dist/collection/components/calcite-icon/assets/calcite-icon/paletteCheck16.json +1 -0
  272. package/dist/collection/components/calcite-icon/assets/calcite-icon/paletteCheck24.json +1 -0
  273. package/dist/collection/components/calcite-icon/assets/calcite-icon/paletteCheck32.json +1 -0
  274. package/dist/collection/components/calcite-icon/assets/calcite-icon/pentagon16.json +1 -0
  275. package/dist/collection/components/calcite-icon/assets/calcite-icon/pentagon24.json +1 -0
  276. package/dist/collection/components/calcite-icon/assets/calcite-icon/pentagon32.json +1 -0
  277. package/dist/collection/components/calcite-icon/assets/calcite-icon/puzzlePiece16.json +1 -0
  278. package/dist/collection/components/calcite-icon/assets/calcite-icon/puzzlePiece24.json +1 -0
  279. package/dist/collection/components/calcite-icon/assets/calcite-icon/puzzlePiece32.json +1 -0
  280. package/dist/collection/components/calcite-icon/assets/calcite-icon/ribbonRosette16.json +1 -0
  281. package/dist/collection/components/calcite-icon/assets/calcite-icon/ribbonRosette24.json +1 -0
  282. package/dist/collection/components/calcite-icon/assets/calcite-icon/ribbonRosette32.json +1 -0
  283. package/dist/collection/components/calcite-icon/assets/calcite-icon/speechBubbleExclamation16.json +1 -0
  284. package/dist/collection/components/calcite-icon/assets/calcite-icon/speechBubbleExclamation24.json +1 -0
  285. package/dist/collection/components/calcite-icon/assets/calcite-icon/speechBubbleExclamation32.json +1 -0
  286. package/dist/collection/components/calcite-icon/assets/calcite-icon/survey16.json +1 -0
  287. package/dist/collection/components/calcite-icon/assets/calcite-icon/survey24.json +1 -0
  288. package/dist/collection/components/calcite-icon/assets/calcite-icon/survey32.json +1 -0
  289. package/dist/collection/components/calcite-inline-editable/calcite-inline-editable.js +39 -14
  290. package/dist/collection/components/calcite-input/calcite-input.js +12 -17
  291. package/dist/collection/components/calcite-label/calcite-label.js +8 -2
  292. package/dist/collection/components/calcite-modal/calcite-modal.js +1 -1
  293. package/dist/collection/components/calcite-notice/calcite-notice.css +1 -0
  294. package/dist/collection/components/calcite-notice/calcite-notice.js +4 -6
  295. package/dist/collection/components/calcite-panel/calcite-panel.css +1 -0
  296. package/dist/collection/components/calcite-panel/calcite-panel.js +41 -5
  297. package/dist/collection/components/calcite-radio-button/calcite-radio-button.js +0 -4
  298. package/dist/collection/components/calcite-radio-button-group/calcite-radio-button-group.js +13 -0
  299. package/dist/collection/components/calcite-rating/calcite-rating.css +1 -0
  300. package/dist/collection/components/calcite-shell/calcite-shell.js +9 -7
  301. package/dist/collection/components/calcite-slider/calcite-slider.css +1 -0
  302. package/dist/collection/components/calcite-slider/calcite-slider.js +7 -3
  303. package/dist/collection/components/calcite-switch/calcite-switch.css +5 -0
  304. package/dist/collection/components/calcite-tab-nav/calcite-tab-nav.css +1 -0
  305. package/dist/collection/components/calcite-time-picker/calcite-time-picker.js +1 -1
  306. package/dist/collection/components/calcite-tooltip/calcite-tooltip.js +4 -4
  307. package/dist/collection/components/calcite-tree-item/calcite-tree-item.css +5 -0
  308. package/dist/collection/components/calcite-tree-item/calcite-tree-item.js +16 -7
  309. package/dist/collection/components/calcite-value-list-item/calcite-value-list-item.css +1 -0
  310. package/dist/collection/components/chip/interfaces.js +1 -0
  311. package/dist/collection/components/color-picker/interfaces.js +1 -0
  312. package/dist/collection/components/color-picker/utils.js +107 -0
  313. package/dist/collection/components/combobox/interfaces.js +1 -0
  314. package/dist/collection/components/date-picker/interfaces.js +1 -0
  315. package/dist/collection/components/date-picker/utils.js +53 -0
  316. package/dist/collection/components/dropdown/interfaces.js +1 -0
  317. package/dist/collection/components/dropdown-group/interfaces.js +1 -0
  318. package/dist/collection/components/functional/Heading.js +9 -0
  319. package/dist/collection/components/graph/interfaces.js +1 -0
  320. package/dist/collection/components/input/interfaces.js +1 -0
  321. package/dist/collection/components/modal/interfaces.js +1 -0
  322. package/dist/collection/components/pagination/pagination.js +201 -0
  323. package/dist/collection/components/pagination/resources.js +14 -0
  324. package/dist/collection/components/pick-list/pick-list.js +192 -0
  325. package/dist/collection/components/pick-list/resources.js +15 -0
  326. package/dist/collection/components/pick-list/shared-list-logic.js +269 -0
  327. package/dist/collection/components/pick-list/shared-list-render.js +25 -0
  328. package/dist/collection/components/radio-group/interfaces.js +1 -0
  329. package/dist/collection/components/tab/interfaces.js +1 -0
  330. package/dist/collection/components/tabs/interfaces.js +1 -0
  331. package/dist/collection/components/tile-select/interfaces.js +1 -0
  332. package/dist/collection/components/tile-select-group/interfaces.js +1 -0
  333. package/dist/collection/components/tree/interfaces.js +8 -0
  334. package/dist/collection/components/tree-item/interfaces.js +1 -0
  335. package/dist/collection/components/value-list/resources.js +11 -0
  336. package/dist/collection/components/value-list/value-list.js +266 -0
  337. package/dist/components/calcite-accordion-item.js +1 -1
  338. package/dist/components/calcite-accordion.js +5 -2
  339. package/dist/components/calcite-action-menu2.js +1 -4
  340. package/dist/components/calcite-action2.js +1 -1
  341. package/dist/components/calcite-alert.js +6 -8
  342. package/dist/components/calcite-block.js +1 -1
  343. package/dist/components/calcite-chip2.js +1 -1
  344. package/dist/components/calcite-color-picker.js +1 -1
  345. package/dist/components/calcite-combobox.js +1 -1
  346. package/dist/components/calcite-date-picker-day2.js +1 -1
  347. package/dist/components/calcite-date-picker-month-header2.js +1 -1
  348. package/dist/components/calcite-date-picker2.js +3 -0
  349. package/dist/components/calcite-dropdown2.js +3 -3
  350. package/dist/components/calcite-inline-editable.js +39 -14
  351. package/dist/components/calcite-input2.js +12 -17
  352. package/dist/components/calcite-label2.js +4 -1
  353. package/dist/components/calcite-modal.js +1 -1
  354. package/dist/components/calcite-notice.js +5 -7
  355. package/dist/components/calcite-panel.js +20 -3
  356. package/dist/components/calcite-radio-button-group.js +13 -0
  357. package/dist/components/calcite-radio-button.js +0 -4
  358. package/dist/components/calcite-rating.js +1 -1
  359. package/dist/components/calcite-shell.js +7 -4
  360. package/dist/components/calcite-slider.js +8 -4
  361. package/dist/components/calcite-switch2.js +1 -1
  362. package/dist/components/calcite-tab-nav2.js +1 -1
  363. package/dist/components/calcite-time-picker2.js +1 -1
  364. package/dist/components/calcite-tooltip.js +2 -2
  365. package/dist/components/calcite-tree-item.js +15 -8
  366. package/dist/components/calcite-value-list-item.js +1 -1
  367. package/dist/custom-elements/index.js +148 -90
  368. package/dist/esm/{CalciteExpandToggle-cff030be.js → CalciteExpandToggle-3ebdb3a6.js} +1 -1
  369. package/dist/esm/{CalciteHeading-1d6cd311.js → CalciteHeading-fa0da825.js} +1 -1
  370. package/dist/esm/calcite-accordion_2.entry.js +7 -4
  371. package/dist/esm/calcite-action-bar.entry.js +3 -3
  372. package/dist/esm/calcite-action-group.entry.js +2 -2
  373. package/dist/esm/calcite-action-menu.entry.js +3 -6
  374. package/dist/esm/calcite-action-pad.entry.js +3 -3
  375. package/dist/esm/calcite-action.entry.js +2 -2
  376. package/dist/esm/calcite-alert.entry.js +7 -9
  377. package/dist/esm/calcite-avatar.entry.js +1 -1
  378. package/dist/esm/calcite-block_2.entry.js +4 -4
  379. package/dist/esm/calcite-button.entry.js +1 -1
  380. package/dist/esm/calcite-card.entry.js +2 -2
  381. package/dist/esm/calcite-checkbox.entry.js +2 -2
  382. package/dist/esm/calcite-chip.entry.js +3 -3
  383. package/dist/esm/calcite-color-picker_3.entry.js +2 -2
  384. package/dist/esm/calcite-combobox_3.entry.js +4 -4
  385. package/dist/esm/calcite-date-picker_4.entry.js +5 -5
  386. package/dist/esm/calcite-dropdown_3.entry.js +4 -4
  387. package/dist/esm/calcite-fab.entry.js +1 -1
  388. package/dist/esm/calcite-filter.entry.js +1 -1
  389. package/dist/esm/calcite-flow.entry.js +1 -1
  390. package/dist/esm/calcite-graph_2.entry.js +10 -6
  391. package/dist/esm/calcite-handle.entry.js +1 -1
  392. package/dist/esm/calcite-icon.entry.js +1 -1
  393. package/dist/esm/calcite-inline-editable.entry.js +40 -15
  394. package/dist/esm/calcite-input-date-picker.entry.js +3 -3
  395. package/dist/esm/calcite-input-message.entry.js +1 -1
  396. package/dist/esm/calcite-input-time-picker_2.entry.js +3 -3
  397. package/dist/esm/calcite-input.entry.js +14 -19
  398. package/dist/esm/calcite-label.entry.js +5 -2
  399. package/dist/esm/calcite-link.entry.js +1 -1
  400. package/dist/esm/calcite-list_3.entry.js +3 -3
  401. package/dist/esm/calcite-loader.entry.js +1 -1
  402. package/dist/esm/calcite-modal.entry.js +3 -3
  403. package/dist/esm/calcite-notice.entry.js +7 -9
  404. package/dist/esm/calcite-option_3.entry.js +2 -2
  405. package/dist/esm/calcite-pagination.entry.js +1 -1
  406. package/dist/esm/calcite-panel.entry.js +21 -5
  407. package/dist/esm/calcite-pick-list_3.entry.js +4 -4
  408. package/dist/esm/calcite-popover_2.entry.js +2 -2
  409. package/dist/esm/calcite-progress.entry.js +1 -1
  410. package/dist/esm/calcite-radio-button-group.entry.js +14 -1
  411. package/dist/esm/calcite-radio-button.entry.js +2 -6
  412. package/dist/esm/calcite-radio-group_2.entry.js +2 -2
  413. package/dist/esm/calcite-rating.entry.js +3 -3
  414. package/dist/esm/calcite-scrim.entry.js +1 -1
  415. package/dist/esm/calcite-shell_3.entry.js +9 -6
  416. package/dist/esm/calcite-sortable-list.entry.js +1 -1
  417. package/dist/esm/calcite-split-button.entry.js +1 -1
  418. package/dist/esm/calcite-stepper_2.entry.js +1 -1
  419. package/dist/esm/calcite-switch.entry.js +3 -3
  420. package/dist/esm/calcite-tab_4.entry.js +2 -2
  421. package/dist/esm/calcite-tile-select_2.entry.js +1 -1
  422. package/dist/esm/calcite-tile.entry.js +2 -2
  423. package/dist/esm/calcite-tip_3.entry.js +3 -3
  424. package/dist/esm/calcite-tooltip_2.entry.js +3 -3
  425. package/dist/esm/calcite-tree_2.entry.js +17 -10
  426. package/dist/esm/calcite-value-list_2.entry.js +4 -4
  427. package/dist/esm/calcite.js +3 -3
  428. package/dist/esm/{conditionalSlot-9e7d8609.js → conditionalSlot-0e575a09.js} +1 -1
  429. package/dist/esm/{form-f90706b4.js → form-42bda668.js} +1 -1
  430. package/dist/esm/{index-9de00868.js → index-c4b90cce.js} +0 -5
  431. package/dist/esm/loader.js +3 -3
  432. package/dist/esm/{resources-95c5e8a6.js → resources-3c05dd64.js} +1 -1
  433. package/dist/esm/{resources-c768953c.js → resources-704f6b2d.js} +4 -1
  434. package/dist/esm-es5/{CalciteExpandToggle-cff030be.js → CalciteExpandToggle-3ebdb3a6.js} +1 -1
  435. package/dist/esm-es5/{CalciteHeading-1d6cd311.js → CalciteHeading-fa0da825.js} +1 -1
  436. package/dist/esm-es5/calcite-accordion_2.entry.js +1 -1
  437. package/dist/esm-es5/calcite-action-bar.entry.js +2 -2
  438. package/dist/esm-es5/calcite-action-group.entry.js +1 -1
  439. package/dist/esm-es5/calcite-action-menu.entry.js +2 -2
  440. package/dist/esm-es5/calcite-action-pad.entry.js +2 -2
  441. package/dist/esm-es5/calcite-action.entry.js +1 -1
  442. package/dist/esm-es5/calcite-alert.entry.js +1 -1
  443. package/dist/esm-es5/calcite-avatar.entry.js +1 -1
  444. package/dist/esm-es5/calcite-block_2.entry.js +1 -1
  445. package/dist/esm-es5/calcite-button.entry.js +1 -1
  446. package/dist/esm-es5/calcite-card.entry.js +1 -1
  447. package/dist/esm-es5/calcite-checkbox.entry.js +1 -1
  448. package/dist/esm-es5/calcite-chip.entry.js +1 -1
  449. package/dist/esm-es5/calcite-color-picker_3.entry.js +1 -1
  450. package/dist/esm-es5/calcite-combobox_3.entry.js +1 -1
  451. package/dist/esm-es5/calcite-date-picker_4.entry.js +1 -1
  452. package/dist/esm-es5/calcite-dropdown_3.entry.js +1 -1
  453. package/dist/esm-es5/calcite-fab.entry.js +2 -2
  454. package/dist/esm-es5/calcite-filter.entry.js +1 -1
  455. package/dist/esm-es5/calcite-flow.entry.js +1 -1
  456. package/dist/esm-es5/calcite-graph_2.entry.js +1 -1
  457. package/dist/esm-es5/calcite-handle.entry.js +1 -1
  458. package/dist/esm-es5/calcite-icon.entry.js +1 -1
  459. package/dist/esm-es5/calcite-inline-editable.entry.js +1 -1
  460. package/dist/esm-es5/calcite-input-date-picker.entry.js +1 -1
  461. package/dist/esm-es5/calcite-input-message.entry.js +1 -1
  462. package/dist/esm-es5/calcite-input-time-picker_2.entry.js +1 -1
  463. package/dist/esm-es5/calcite-input.entry.js +1 -1
  464. package/dist/esm-es5/calcite-label.entry.js +1 -1
  465. package/dist/esm-es5/calcite-link.entry.js +1 -1
  466. package/dist/esm-es5/calcite-list_3.entry.js +1 -1
  467. package/dist/esm-es5/calcite-loader.entry.js +1 -1
  468. package/dist/esm-es5/calcite-modal.entry.js +1 -1
  469. package/dist/esm-es5/calcite-notice.entry.js +1 -1
  470. package/dist/esm-es5/calcite-option_3.entry.js +1 -1
  471. package/dist/esm-es5/calcite-pagination.entry.js +1 -1
  472. package/dist/esm-es5/calcite-panel.entry.js +2 -2
  473. package/dist/esm-es5/calcite-pick-list_3.entry.js +1 -1
  474. package/dist/esm-es5/calcite-popover_2.entry.js +2 -2
  475. package/dist/esm-es5/calcite-progress.entry.js +1 -1
  476. package/dist/esm-es5/calcite-radio-button-group.entry.js +1 -1
  477. package/dist/esm-es5/calcite-radio-button.entry.js +1 -1
  478. package/dist/esm-es5/calcite-radio-group_2.entry.js +1 -1
  479. package/dist/esm-es5/calcite-rating.entry.js +2 -2
  480. package/dist/esm-es5/calcite-scrim.entry.js +1 -1
  481. package/dist/esm-es5/calcite-shell_3.entry.js +1 -1
  482. package/dist/esm-es5/calcite-sortable-list.entry.js +1 -1
  483. package/dist/esm-es5/calcite-split-button.entry.js +1 -1
  484. package/dist/esm-es5/calcite-stepper_2.entry.js +1 -1
  485. package/dist/esm-es5/calcite-switch.entry.js +2 -2
  486. package/dist/esm-es5/calcite-tab_4.entry.js +1 -1
  487. package/dist/esm-es5/calcite-tile-select_2.entry.js +1 -1
  488. package/dist/esm-es5/calcite-tile.entry.js +1 -1
  489. package/dist/esm-es5/calcite-tip_3.entry.js +1 -1
  490. package/dist/esm-es5/calcite-tooltip_2.entry.js +1 -1
  491. package/dist/esm-es5/calcite-tree_2.entry.js +1 -1
  492. package/dist/esm-es5/calcite-value-list_2.entry.js +1 -1
  493. package/dist/esm-es5/calcite.js +1 -1
  494. package/dist/esm-es5/{conditionalSlot-9e7d8609.js → conditionalSlot-0e575a09.js} +1 -1
  495. package/dist/esm-es5/{form-f90706b4.js → form-42bda668.js} +1 -1
  496. package/dist/esm-es5/{index-9de00868.js → index-c4b90cce.js} +1 -1
  497. package/dist/esm-es5/loader.js +1 -1
  498. package/dist/esm-es5/{resources-95c5e8a6.js → resources-3c05dd64.js} +1 -1
  499. package/dist/esm-es5/resources-704f6b2d.js +5 -0
  500. package/dist/extras/docs-json.json +22 -5
  501. package/dist/types/components/calcite-alert/calcite-alert.d.ts +0 -3
  502. package/dist/types/components/calcite-inline-editable/calcite-inline-editable.d.ts +3 -1
  503. package/dist/types/components/calcite-input/calcite-input.d.ts +1 -4
  504. package/dist/types/components/calcite-label/calcite-label.d.ts +4 -1
  505. package/dist/types/components/calcite-notice/calcite-notice.d.ts +0 -3
  506. package/dist/types/components/calcite-panel/calcite-panel.d.ts +12 -0
  507. package/dist/types/components/calcite-radio-button-group/calcite-radio-button-group.d.ts +2 -0
  508. package/dist/types/components/calcite-slider/calcite-slider.d.ts +1 -0
  509. package/dist/types/components/calcite-tooltip/calcite-tooltip.d.ts +2 -2
  510. package/dist/types/components/calcite-tree-item/calcite-tree-item.d.ts +2 -0
  511. package/dist/types/components.d.ts +10 -4
  512. package/hydrate/index.js +164 -94
  513. package/package.json +22 -18
  514. package/readme.md +2 -6
  515. package/dist/calcite/p-06fbc0f2.system.entry.js +0 -5
  516. package/dist/calcite/p-08be120f.entry.js +0 -5
  517. package/dist/calcite/p-0b552c00.system.entry.js +0 -5
  518. package/dist/calcite/p-14ca5cdf.system.entry.js +0 -5
  519. package/dist/calcite/p-20e3fc50.entry.js +0 -5
  520. package/dist/calcite/p-288bc438.system.js +0 -5
  521. package/dist/calcite/p-32d61433.system.entry.js +0 -5
  522. package/dist/calcite/p-39d4d1b1.system.entry.js +0 -5
  523. package/dist/calcite/p-500300b5.entry.js +0 -5
  524. package/dist/calcite/p-5f5bfaa5.entry.js +0 -5
  525. package/dist/calcite/p-647d22ef.js +0 -5
  526. package/dist/calcite/p-64a5e88c.entry.js +0 -5
  527. package/dist/calcite/p-6969dabb.entry.js +0 -5
  528. package/dist/calcite/p-7165e37e.entry.js +0 -5
  529. package/dist/calcite/p-78725919.entry.js +0 -5
  530. package/dist/calcite/p-7a6c932d.system.entry.js +0 -5
  531. package/dist/calcite/p-8340b572.js +0 -5
  532. package/dist/calcite/p-8ba8a357.system.js +0 -5
  533. package/dist/calcite/p-8e4aa7f7.entry.js +0 -5
  534. package/dist/calcite/p-9716c57c.entry.js +0 -5
  535. package/dist/calcite/p-97375cc0.entry.js +0 -5
  536. package/dist/calcite/p-99422223.system.entry.js +0 -5
  537. package/dist/calcite/p-99d32fc3.system.js +0 -5
  538. package/dist/calcite/p-9f49c4fe.system.entry.js +0 -5
  539. package/dist/calcite/p-a50e52f1.entry.js +0 -5
  540. package/dist/calcite/p-ab14b0a2.system.js +0 -5
  541. package/dist/calcite/p-abe7730b.entry.js +0 -5
  542. package/dist/calcite/p-b9a47a94.system.entry.js +0 -5
  543. package/dist/calcite/p-b9adf89d.system.entry.js +0 -5
  544. package/dist/calcite/p-bd576ae0.system.entry.js +0 -5
  545. package/dist/calcite/p-c5b3d90c.entry.js +0 -5
  546. package/dist/calcite/p-c6cb0aa2.entry.js +0 -5
  547. package/dist/calcite/p-cd9d106b.system.entry.js +0 -5
  548. package/dist/calcite/p-dba7c714.system.entry.js +0 -5
  549. package/dist/calcite/p-e5c2a6eb.entry.js +0 -5
  550. package/dist/calcite/p-e63f0806.entry.js +0 -5
  551. package/dist/calcite/p-e8e0f3b7.js +0 -5
  552. package/dist/calcite/p-ea510477.js +0 -5
  553. package/dist/calcite/p-ee14736a.entry.js +0 -5
  554. package/dist/calcite/p-f12c35de.system.entry.js +0 -5
  555. package/dist/calcite/p-fbd68dbf.system.entry.js +0 -5
  556. package/dist/calcite/p-ff04cfb1.system.entry.js +0 -5
  557. package/dist/esm-es5/resources-c768953c.js +0 -5
@@ -0,0 +1,192 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ import { Component, Element, Event, Listen, Method, Prop, State, h } from "@stencil/core";
8
+ import { ICON_TYPES } from "./resources";
9
+ import { calciteListItemChangeHandler, calciteListItemValueChangeHandler, cleanUpObserver, deselectSiblingItems, deselectRemovedItems, getItemData, handleFilter, calciteListFocusOutHandler, initialize, initializeObserver, mutationObserverCallback, selectSiblings, setUpItems, keyDownHandler, setFocus, removeItem } from "./shared-list-logic";
10
+ import List from "./shared-list-render";
11
+ import { createObserver } from "../../utils/observers";
12
+ /**
13
+ * @slot - A slot for adding `calcite-pick-list-item` elements or `calcite-pick-list-group` elements. Items are displayed as a vertical list.
14
+ * @slot menu-actions - A slot for adding a button + menu combo for performing actions like sorting.
15
+ */
16
+ let PickList = class PickList {
17
+ constructor() {
18
+ // --------------------------------------------------------------------------
19
+ //
20
+ // Properties
21
+ //
22
+ // --------------------------------------------------------------------------
23
+ /**
24
+ * When true, disabled prevents interaction. This state shows items with lower opacity/grayed.
25
+ */
26
+ this.disabled = false;
27
+ /**
28
+ * When true, an input appears at the top of the list that can be used by end users to filter items in the list.
29
+ */
30
+ this.filterEnabled = false;
31
+ /**
32
+ * When true, content is waiting to be loaded. This state shows a busy indicator.
33
+ */
34
+ this.loading = false;
35
+ /**
36
+ * Multiple works similar to standard radio buttons and checkboxes.
37
+ * When true, a user can select multiple items at a time.
38
+ * When false, only a single item can be selected at a time
39
+ * and selecting a new item will deselect any other selected items.
40
+ */
41
+ this.multiple = false;
42
+ /**
43
+ * When true and single-selection is enabled, the selection will change when navigating items via the keyboard.
44
+ */
45
+ this.selectionFollowsFocus = false;
46
+ // --------------------------------------------------------------------------
47
+ //
48
+ // Private Properties
49
+ //
50
+ // --------------------------------------------------------------------------
51
+ this.selectedValues = new Map();
52
+ this.dataForFilter = [];
53
+ this.lastSelectedItem = null;
54
+ this.mutationObserver = createObserver("mutation", mutationObserverCallback.bind(this));
55
+ this.setFilterEl = (el) => {
56
+ this.filterEl = el;
57
+ };
58
+ this.deselectRemovedItems = deselectRemovedItems.bind(this);
59
+ this.deselectSiblingItems = deselectSiblingItems.bind(this);
60
+ this.selectSiblings = selectSiblings.bind(this);
61
+ this.handleFilter = handleFilter.bind(this);
62
+ this.getItemData = getItemData.bind(this);
63
+ this.keyDownHandler = keyDownHandler.bind(this);
64
+ }
65
+ // --------------------------------------------------------------------------
66
+ //
67
+ // Lifecycle
68
+ //
69
+ // --------------------------------------------------------------------------
70
+ connectedCallback() {
71
+ initialize.call(this);
72
+ initializeObserver.call(this);
73
+ }
74
+ disconnectedCallback() {
75
+ cleanUpObserver.call(this);
76
+ }
77
+ calciteListItemRemoveHandler(event) {
78
+ removeItem.call(this, event);
79
+ }
80
+ calciteListItemChangeHandler(event) {
81
+ calciteListItemChangeHandler.call(this, event);
82
+ }
83
+ calciteListItemPropsChangeHandler(event) {
84
+ event.stopPropagation();
85
+ this.setUpFilter();
86
+ }
87
+ calciteListItemValueChangeHandler(event) {
88
+ calciteListItemValueChangeHandler.call(this, event);
89
+ }
90
+ calciteListFocusOutHandler(event) {
91
+ calciteListFocusOutHandler.call(this, event);
92
+ }
93
+ // --------------------------------------------------------------------------
94
+ //
95
+ // Private Methods
96
+ //
97
+ // --------------------------------------------------------------------------
98
+ setUpItems() {
99
+ setUpItems.call(this, "calcite-pick-list-item");
100
+ }
101
+ setUpFilter() {
102
+ if (this.filterEnabled) {
103
+ this.dataForFilter = this.getItemData();
104
+ }
105
+ }
106
+ // --------------------------------------------------------------------------
107
+ //
108
+ // Public Methods
109
+ //
110
+ // --------------------------------------------------------------------------
111
+ /** Returns the currently selected items */
112
+ async getSelectedItems() {
113
+ return this.selectedValues;
114
+ }
115
+ /** Sets focus on the component. */
116
+ async setFocus(focusId) {
117
+ return setFocus.call(this, focusId);
118
+ }
119
+ // --------------------------------------------------------------------------
120
+ //
121
+ // Render Methods
122
+ //
123
+ // --------------------------------------------------------------------------
124
+ getIconType() {
125
+ return this.multiple ? ICON_TYPES.square : ICON_TYPES.circle;
126
+ }
127
+ render() {
128
+ return h(List, { onKeyDown: this.keyDownHandler, props: this });
129
+ }
130
+ };
131
+ __decorate([
132
+ Prop({ reflect: true })
133
+ ], PickList.prototype, "disabled", void 0);
134
+ __decorate([
135
+ Prop({ reflect: true })
136
+ ], PickList.prototype, "filterEnabled", void 0);
137
+ __decorate([
138
+ Prop({ reflect: true })
139
+ ], PickList.prototype, "filterPlaceholder", void 0);
140
+ __decorate([
141
+ Prop()
142
+ ], PickList.prototype, "headingLevel", void 0);
143
+ __decorate([
144
+ Prop({ reflect: true })
145
+ ], PickList.prototype, "loading", void 0);
146
+ __decorate([
147
+ Prop({ reflect: true })
148
+ ], PickList.prototype, "multiple", void 0);
149
+ __decorate([
150
+ Prop()
151
+ ], PickList.prototype, "selectionFollowsFocus", void 0);
152
+ __decorate([
153
+ State()
154
+ ], PickList.prototype, "selectedValues", void 0);
155
+ __decorate([
156
+ State()
157
+ ], PickList.prototype, "dataForFilter", void 0);
158
+ __decorate([
159
+ Element()
160
+ ], PickList.prototype, "el", void 0);
161
+ __decorate([
162
+ Event()
163
+ ], PickList.prototype, "calciteListChange", void 0);
164
+ __decorate([
165
+ Listen("calciteListItemRemove")
166
+ ], PickList.prototype, "calciteListItemRemoveHandler", null);
167
+ __decorate([
168
+ Listen("calciteListItemChange")
169
+ ], PickList.prototype, "calciteListItemChangeHandler", null);
170
+ __decorate([
171
+ Listen("calciteListItemPropsChange")
172
+ ], PickList.prototype, "calciteListItemPropsChangeHandler", null);
173
+ __decorate([
174
+ Listen("calciteListItemValueChange")
175
+ ], PickList.prototype, "calciteListItemValueChangeHandler", null);
176
+ __decorate([
177
+ Listen("focusout")
178
+ ], PickList.prototype, "calciteListFocusOutHandler", null);
179
+ __decorate([
180
+ Method()
181
+ ], PickList.prototype, "getSelectedItems", null);
182
+ __decorate([
183
+ Method()
184
+ ], PickList.prototype, "setFocus", null);
185
+ PickList = __decorate([
186
+ Component({
187
+ tag: "calcite-pick-list",
188
+ styleUrl: "pick-list.scss",
189
+ shadow: true
190
+ })
191
+ ], PickList);
192
+ export { PickList };
@@ -0,0 +1,15 @@
1
+ export const CSS = {
2
+ sticky: "sticky-pos"
3
+ };
4
+ export var ICON_TYPES;
5
+ (function (ICON_TYPES) {
6
+ ICON_TYPES["circle"] = "circle";
7
+ ICON_TYPES["square"] = "square";
8
+ ICON_TYPES["grip"] = "grip";
9
+ })(ICON_TYPES || (ICON_TYPES = {}));
10
+ export const TEXT = {
11
+ filterResults: "Filter results"
12
+ };
13
+ export const SLOTS = {
14
+ menuActions: "menu-actions"
15
+ };
@@ -0,0 +1,269 @@
1
+ import { debounce } from "lodash-es";
2
+ import { focusElement, getSlotted } from "../../utils/dom";
3
+ import { getRoundRobinIndex } from "../../utils/array";
4
+ export function mutationObserverCallback() {
5
+ this.setUpItems();
6
+ this.setUpFilter();
7
+ this.deselectRemovedItems();
8
+ }
9
+ const SUPPORTED_ARROW_KEYS = ["ArrowUp", "ArrowDown"];
10
+ // --------------------------------------------------------------------------
11
+ //
12
+ // Lifecycle
13
+ //
14
+ // --------------------------------------------------------------------------
15
+ export function initialize() {
16
+ this.setUpItems();
17
+ this.setUpFilter();
18
+ this.emitCalciteListChange = debounce(internalCalciteListChangeEvent.bind(this), 0);
19
+ }
20
+ export function initializeObserver() {
21
+ var _a;
22
+ (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
23
+ }
24
+ export function cleanUpObserver() {
25
+ var _a;
26
+ (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
27
+ }
28
+ // --------------------------------------------------------------------------
29
+ //
30
+ // Listeners
31
+ //
32
+ // --------------------------------------------------------------------------
33
+ export function calciteListItemChangeHandler(event) {
34
+ const { selectedValues } = this;
35
+ const { item, value, selected, shiftPressed } = event.detail;
36
+ if (selected) {
37
+ if (this.multiple && shiftPressed) {
38
+ this.selectSiblings(item);
39
+ }
40
+ if (!this.multiple) {
41
+ this.deselectSiblingItems(item);
42
+ }
43
+ selectedValues.set(value, item);
44
+ }
45
+ else {
46
+ selectedValues.delete(value);
47
+ if (this.multiple && shiftPressed) {
48
+ this.selectSiblings(item, true);
49
+ }
50
+ }
51
+ if (!this.multiple) {
52
+ toggleSingleSelectItemTabbing(item, selected);
53
+ if (selected) {
54
+ focusElement(item);
55
+ }
56
+ }
57
+ this.lastSelectedItem = item;
58
+ this.emitCalciteListChange();
59
+ }
60
+ export function calciteListItemValueChangeHandler(event) {
61
+ event.stopPropagation();
62
+ const oldValue = event.detail.oldValue;
63
+ const selectedValues = this.selectedValues;
64
+ if (selectedValues.has(oldValue)) {
65
+ const item = selectedValues.get(oldValue);
66
+ selectedValues.delete(oldValue);
67
+ selectedValues.set(event.detail.newValue, item);
68
+ }
69
+ }
70
+ // --------------------------------------------------------------------------
71
+ //
72
+ // Private Methods
73
+ //
74
+ // --------------------------------------------------------------------------
75
+ function isValidNavigationKey(key) {
76
+ return !!SUPPORTED_ARROW_KEYS.find((k) => k === key);
77
+ }
78
+ export function calciteListFocusOutHandler(event) {
79
+ const { el, items, multiple, selectedValues } = this;
80
+ if (multiple) {
81
+ return;
82
+ }
83
+ const focusedInside = !!el.contains(event.relatedTarget);
84
+ if (focusedInside) {
85
+ toggleSingleSelectItemTabbing(event.target, false);
86
+ return;
87
+ }
88
+ items.forEach((item) => toggleSingleSelectItemTabbing(item, selectedValues.size === 0 ? event.target === item : item.selected));
89
+ }
90
+ export function keyDownHandler(event) {
91
+ const { key, target } = event;
92
+ if (!isValidNavigationKey(key)) {
93
+ return;
94
+ }
95
+ const { items, multiple, selectionFollowsFocus } = this;
96
+ const { length: totalItems } = items;
97
+ const currentIndex = items.indexOf(target);
98
+ if (!totalItems || currentIndex === -1) {
99
+ return;
100
+ }
101
+ event.preventDefault();
102
+ const index = getRoundRobinIndex(currentIndex + (key === "ArrowUp" ? -1 : 1), totalItems);
103
+ const item = items[index];
104
+ items.forEach((i) => toggleSingleSelectItemTabbing(i, i === item));
105
+ if (!multiple && selectionFollowsFocus) {
106
+ item.selected = true;
107
+ }
108
+ focusElement(item);
109
+ }
110
+ export function internalCalciteListChangeEvent() {
111
+ this.calciteListChange.emit(this.selectedValues);
112
+ }
113
+ export function removeItem(event) {
114
+ if (event.defaultPrevented) {
115
+ return;
116
+ }
117
+ const item = event.target;
118
+ const selectedValues = this.selectedValues;
119
+ if (item.parentElement.tagName === "CALCITE-PICK-LIST-GROUP") {
120
+ item.parentElement.remove();
121
+ Array.from(item.parentElement.children).forEach((item) => selectedValues.delete(item.value));
122
+ }
123
+ else {
124
+ item.remove();
125
+ selectedValues.delete(item.value);
126
+ }
127
+ this.emitCalciteListChange();
128
+ }
129
+ function toggleSingleSelectItemTabbing(item, selectable) {
130
+ // using attribute intentionally
131
+ if (selectable) {
132
+ item.removeAttribute("tabindex");
133
+ }
134
+ else {
135
+ item.setAttribute("tabindex", "-1");
136
+ }
137
+ }
138
+ export async function setFocus(focusId) {
139
+ if (this.filterEnabled && focusId === "filter") {
140
+ await focusElement(this.filterEl);
141
+ return;
142
+ }
143
+ const { items, multiple, selectionFollowsFocus } = this;
144
+ if (items.length === 0) {
145
+ return;
146
+ }
147
+ if (multiple) {
148
+ return items[0].setFocus();
149
+ }
150
+ const focusTarget = items.find((item) => item.selected) || items[0];
151
+ if (selectionFollowsFocus) {
152
+ focusTarget.selected = true;
153
+ }
154
+ return focusTarget.setFocus();
155
+ }
156
+ export function setUpItems(tagName) {
157
+ this.items = Array.from(this.el.querySelectorAll(tagName));
158
+ let hasSelected = false;
159
+ const { items } = this;
160
+ items.forEach((item) => {
161
+ item.icon = this.getIconType();
162
+ if (!this.multiple) {
163
+ item.disableDeselect = true;
164
+ toggleSingleSelectItemTabbing(item, false);
165
+ }
166
+ if (item.selected) {
167
+ hasSelected = true;
168
+ toggleSingleSelectItemTabbing(item, true);
169
+ this.selectedValues.set(item.value, item);
170
+ }
171
+ });
172
+ const [first] = items;
173
+ if (!hasSelected && first) {
174
+ toggleSingleSelectItemTabbing(first, true);
175
+ }
176
+ }
177
+ export function setUpFilter() {
178
+ if (this.filterEnabled) {
179
+ this.dataForFilter = this.getItemData();
180
+ }
181
+ }
182
+ export function deselectRemovedItems() {
183
+ const selectedValues = this.selectedValues;
184
+ const itemValues = this.items.map(({ value }) => value);
185
+ selectedValues.forEach((selectedItem) => {
186
+ if (!itemValues.includes(selectedItem.value)) {
187
+ this.selectedValues.delete(selectedItem.value);
188
+ }
189
+ });
190
+ }
191
+ export function deselectSiblingItems(item) {
192
+ this.items.forEach((currentItem) => {
193
+ if (currentItem.value !== item.value) {
194
+ currentItem.toggleSelected(false);
195
+ if (this.selectedValues.has(currentItem.value)) {
196
+ this.selectedValues.delete(currentItem.value);
197
+ }
198
+ }
199
+ });
200
+ }
201
+ export function selectSiblings(item, deselect = false) {
202
+ if (!this.lastSelectedItem) {
203
+ return;
204
+ }
205
+ const { items } = this;
206
+ const start = items.findIndex((currentItem) => {
207
+ return currentItem.value === this.lastSelectedItem.value;
208
+ });
209
+ const end = items.findIndex((currentItem) => {
210
+ return currentItem.value === item.value;
211
+ });
212
+ items.slice(Math.min(start, end), Math.max(start, end)).forEach((currentItem) => {
213
+ currentItem.toggleSelected(!deselect);
214
+ if (!deselect) {
215
+ this.selectedValues.set(currentItem.value, currentItem);
216
+ }
217
+ else {
218
+ this.selectedValues.delete(currentItem.value);
219
+ }
220
+ });
221
+ }
222
+ let groups;
223
+ export function handleFilter(event) {
224
+ const { filteredItems } = event.currentTarget;
225
+ const values = filteredItems.map((item) => item.value);
226
+ let hasSelectedMatch = false;
227
+ if (!groups) {
228
+ groups = new Set();
229
+ }
230
+ const matchedItems = this.items.filter((item) => {
231
+ const parent = item.parentElement;
232
+ const grouped = parent.matches("calcite-pick-list-group");
233
+ if (grouped) {
234
+ groups.add(parent);
235
+ }
236
+ const matches = values.includes(item.value);
237
+ item.hidden = !matches;
238
+ if (!hasSelectedMatch) {
239
+ hasSelectedMatch = matches && item.selected;
240
+ }
241
+ return matches;
242
+ });
243
+ groups.forEach((group) => {
244
+ const hasAtLeastOneMatch = matchedItems.some((item) => group.contains(item));
245
+ group.hidden = !hasAtLeastOneMatch;
246
+ if (!hasAtLeastOneMatch) {
247
+ return;
248
+ }
249
+ const parentItem = getSlotted(group, "parent-item");
250
+ if (parentItem) {
251
+ parentItem.hidden = false;
252
+ if (matchedItems.includes(parentItem)) {
253
+ Array.from(group.children).forEach((child) => (child.hidden = false));
254
+ }
255
+ }
256
+ });
257
+ groups.clear();
258
+ if (matchedItems.length > 0 && !hasSelectedMatch && !this.multiple) {
259
+ toggleSingleSelectItemTabbing(matchedItems[0], true);
260
+ }
261
+ }
262
+ export function getItemData() {
263
+ return this.items.map((item) => ({
264
+ label: item.label,
265
+ description: item.description,
266
+ metadata: item.metadata,
267
+ value: item.value
268
+ }));
269
+ }
@@ -0,0 +1,25 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { h, Host } from "@stencil/core";
13
+ import { CSS, SLOTS } from "./resources";
14
+ export const List = (_a) => {
15
+ var { props: { disabled, loading, filterEnabled, dataForFilter, handleFilter, filterPlaceholder, setFilterEl } } = _a, rest = __rest(_a, ["props"]);
16
+ const defaultSlot = h("slot", null);
17
+ return (h(Host, Object.assign({ "aria-busy": loading.toString(), "aria-disabled": disabled.toString(), role: "menu" }, rest),
18
+ h("section", null,
19
+ h("header", { class: { [CSS.sticky]: true } },
20
+ filterEnabled ? (h("calcite-filter", { "aria-label": filterPlaceholder, disabled: loading || disabled, items: dataForFilter, onCalciteFilterChange: handleFilter, placeholder: filterPlaceholder, ref: setFilterEl })) : null,
21
+ h("slot", { name: SLOTS.menuActions })),
22
+ loading || disabled ? h("calcite-scrim", { loading: loading }) : null,
23
+ defaultSlot)));
24
+ };
25
+ export default List;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ export var TreeSelectionMode;
2
+ (function (TreeSelectionMode) {
3
+ TreeSelectionMode["Single"] = "single";
4
+ TreeSelectionMode["Multi"] = "multi";
5
+ TreeSelectionMode["Children"] = "children";
6
+ TreeSelectionMode["MultiChildren"] = "multi-children";
7
+ TreeSelectionMode["Ancestors"] = "ancestors";
8
+ })(TreeSelectionMode || (TreeSelectionMode = {}));
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,11 @@
1
+ export const CSS = {
2
+ container: "container",
3
+ handle: "handle"
4
+ };
5
+ export var ICON_TYPES;
6
+ (function (ICON_TYPES) {
7
+ ICON_TYPES["grip"] = "grip";
8
+ })(ICON_TYPES || (ICON_TYPES = {}));
9
+ export const TEXT = {
10
+ filterResults: "Filter results"
11
+ };