@esri/calcite-components 1.0.0-beta.65 → 1.0.0-beta.69

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 (1419) hide show
  1. package/CHANGELOG.md +100 -0
  2. package/dist/calcite/assets/calcite-icon/classifyObjects16.json +1 -0
  3. package/dist/calcite/assets/calcite-icon/classifyObjects24.json +1 -0
  4. package/dist/calcite/assets/calcite-icon/classifyObjects32.json +1 -0
  5. package/dist/calcite/assets/calcite-icon/classifyPixels16.json +1 -0
  6. package/dist/calcite/assets/calcite-icon/classifyPixels24.json +1 -0
  7. package/dist/calcite/assets/calcite-icon/classifyPixels32.json +1 -0
  8. package/dist/calcite/assets/calcite-icon/dataCloud16.json +1 -0
  9. package/dist/calcite/assets/calcite-icon/dataCloud24.json +1 -0
  10. package/dist/calcite/assets/calcite-icon/dataCloud32.json +1 -0
  11. package/dist/calcite/assets/calcite-icon/dataFolder16.json +1 -0
  12. package/dist/calcite/assets/calcite-icon/dataFolder24.json +1 -0
  13. package/dist/calcite/assets/calcite-icon/dataFolder32.json +1 -0
  14. package/dist/calcite/assets/calcite-icon/dataRaster16.json +1 -0
  15. package/dist/calcite/assets/calcite-icon/dataRaster24.json +1 -0
  16. package/dist/calcite/assets/calcite-icon/dataRaster32.json +1 -0
  17. package/dist/calcite/assets/calcite-icon/distributeHeightEvenly16.json +1 -0
  18. package/dist/calcite/assets/calcite-icon/distributeHeightEvenly24.json +1 -0
  19. package/dist/calcite/assets/calcite-icon/distributeHeightEvenly32.json +1 -0
  20. package/dist/calcite/assets/calcite-icon/distributeWidthEvenly16.json +1 -0
  21. package/dist/calcite/assets/calcite-icon/distributeWidthEvenly24.json +1 -0
  22. package/dist/calcite/assets/calcite-icon/distributeWidthEvenly32.json +1 -0
  23. package/dist/calcite/assets/calcite-icon/gridUnit16.json +1 -0
  24. package/dist/calcite/assets/calcite-icon/gridUnit24.json +1 -0
  25. package/dist/calcite/assets/calcite-icon/gridUnit32.json +1 -0
  26. package/dist/calcite/assets/calcite-icon/horizontalDistribute16.json +1 -0
  27. package/dist/calcite/assets/calcite-icon/horizontalDistribute24.json +1 -0
  28. package/dist/calcite/assets/calcite-icon/horizontalDistribute32.json +1 -0
  29. package/dist/calcite/assets/calcite-icon/imageChips16.json +1 -0
  30. package/dist/calcite/assets/calcite-icon/imageChips24.json +1 -0
  31. package/dist/calcite/assets/calcite-icon/imageChips32.json +1 -0
  32. package/dist/calcite/assets/calcite-icon/imageUnit16.json +1 -0
  33. package/dist/calcite/assets/calcite-icon/imageUnit24.json +1 -0
  34. package/dist/calcite/assets/calcite-icon/imageUnit32.json +1 -0
  35. package/dist/calcite/assets/calcite-icon/newTraining16.json +1 -0
  36. package/dist/calcite/assets/calcite-icon/newTraining24.json +1 -0
  37. package/dist/calcite/assets/calcite-icon/newTraining32.json +1 -0
  38. package/dist/calcite/assets/calcite-icon/penMark16.json +1 -0
  39. package/dist/calcite/assets/calcite-icon/penMark24.json +1 -0
  40. package/dist/calcite/assets/calcite-icon/penMark32.json +1 -0
  41. package/dist/calcite/assets/calcite-icon/penMarkPlus16.json +1 -0
  42. package/dist/calcite/assets/calcite-icon/penMarkPlus24.json +1 -0
  43. package/dist/calcite/assets/calcite-icon/penMarkPlus32.json +1 -0
  44. package/dist/calcite/assets/calcite-icon/retrain16.json +1 -0
  45. package/dist/calcite/assets/calcite-icon/retrain24.json +1 -0
  46. package/dist/calcite/assets/calcite-icon/retrain32.json +1 -0
  47. package/dist/calcite/assets/calcite-icon/smartForm16.json +1 -0
  48. package/dist/calcite/assets/calcite-icon/smartForm24.json +1 -0
  49. package/dist/calcite/assets/calcite-icon/smartForm32.json +1 -0
  50. package/dist/calcite/assets/calcite-icon/subscript16.json +1 -0
  51. package/dist/calcite/assets/calcite-icon/subscript24.json +1 -0
  52. package/dist/calcite/assets/calcite-icon/subscript32.json +1 -0
  53. package/dist/calcite/assets/calcite-icon/superscript16.json +1 -0
  54. package/dist/calcite/assets/calcite-icon/superscript24.json +1 -0
  55. package/dist/calcite/assets/calcite-icon/superscript32.json +1 -0
  56. package/dist/calcite/assets/calcite-icon/verticalDistribute16.json +1 -0
  57. package/dist/calcite/assets/calcite-icon/verticalDistribute24.json +1 -0
  58. package/dist/calcite/assets/calcite-icon/verticalDistribute32.json +1 -0
  59. package/dist/calcite/calcite.css +1 -1
  60. package/dist/calcite/calcite.esm.js +5 -1
  61. package/dist/calcite/calcite.js +1 -1
  62. package/dist/calcite/index.esm.js +4 -0
  63. package/dist/calcite/p-0100aeb0.entry.js +5 -0
  64. package/dist/calcite/p-03706508.system.entry.js +5 -0
  65. package/dist/calcite/p-05bf835f.js +5 -0
  66. package/dist/calcite/p-05d1dfc6.js +5 -0
  67. package/dist/calcite/p-06646eed.system.entry.js +5 -0
  68. package/dist/calcite/p-0797f73c.system.entry.js +5 -0
  69. package/dist/calcite/p-09e3fcfc.system.entry.js +5 -0
  70. package/dist/calcite/p-0ba6ede9.entry.js +5 -0
  71. package/dist/calcite/p-0ecd0204.system.entry.js +5 -0
  72. package/dist/calcite/p-0f3d73e3.system.entry.js +5 -0
  73. package/dist/calcite/p-10759c71.system.entry.js +5 -0
  74. package/dist/calcite/p-10de63d7.system.entry.js +5 -0
  75. package/dist/calcite/p-157d05ce.js +5 -0
  76. package/dist/calcite/p-15a45778.system.entry.js +5 -0
  77. package/dist/calcite/p-1d6404b5.system.js +5 -0
  78. package/dist/calcite/p-1e875199.entry.js +5 -0
  79. package/dist/calcite/p-1f7130a9.entry.js +5 -0
  80. package/dist/calcite/p-1fb7138b.js +5 -0
  81. package/dist/calcite/p-2418cceb.entry.js +5 -0
  82. package/dist/calcite/p-25a31861.system.js +5 -0
  83. package/dist/calcite/p-26508b91.js +5 -0
  84. package/dist/calcite/p-28261aae.entry.js +5 -0
  85. package/dist/calcite/p-3383d9b4.entry.js +5 -0
  86. package/dist/calcite/p-36e5db45.entry.js +5 -0
  87. package/dist/calcite/p-37859236.entry.js +5 -0
  88. package/dist/calcite/p-378ffa38.system.js +5 -0
  89. package/dist/calcite/p-38ee7306.system.entry.js +5 -0
  90. package/dist/calcite/p-38f09842.entry.js +5 -0
  91. package/dist/calcite/p-3962cd38.entry.js +5 -0
  92. package/dist/calcite/p-3bb30b44.system.entry.js +5 -0
  93. package/dist/calcite/p-3cf93a58.system.entry.js +5 -0
  94. package/dist/calcite/p-3dae9da3.js +5 -0
  95. package/dist/calcite/p-3e438b5b.system.entry.js +5 -0
  96. package/dist/calcite/p-3f1d1bad.entry.js +5 -0
  97. package/dist/calcite/p-4035444d.system.js +5 -0
  98. package/dist/calcite/p-413b4857.system.entry.js +5 -0
  99. package/dist/calcite/p-4185db77.entry.js +5 -0
  100. package/dist/calcite/p-45257edb.js +5 -0
  101. package/dist/calcite/p-47313747.system.js +5 -0
  102. package/dist/calcite/p-477bac2c.system.js +5 -0
  103. package/dist/calcite/p-49d5ee42.system.entry.js +5 -0
  104. package/dist/calcite/p-4c7e3915.system.entry.js +5 -0
  105. package/dist/calcite/p-4de6f4fd.system.js +5 -0
  106. package/dist/calcite/p-502736d8.system.entry.js +5 -0
  107. package/dist/calcite/p-507b2cc4.entry.js +5 -0
  108. package/dist/calcite/p-51bc5466.entry.js +5 -0
  109. package/dist/calcite/p-527146c8.system.entry.js +5 -0
  110. package/dist/calcite/p-52cc870b.js +5 -0
  111. package/dist/calcite/p-530b28e1.system.entry.js +5 -0
  112. package/dist/calcite/p-5322b333.system.entry.js +5 -0
  113. package/dist/calcite/p-56b352bf.system.js +5 -0
  114. package/dist/calcite/p-58e98b2d.system.entry.js +5 -0
  115. package/dist/calcite/p-58eca102.entry.js +5 -0
  116. package/dist/calcite/p-5ce47e9f.entry.js +5 -0
  117. package/dist/calcite/p-5efd7297.entry.js +5 -0
  118. package/dist/calcite/p-6621aee1.entry.js +5 -0
  119. package/dist/calcite/p-684ccd4e.system.entry.js +5 -0
  120. package/dist/calcite/p-6988c6b7.system.entry.js +5 -0
  121. package/dist/calcite/p-6a541e77.system.js +5 -0
  122. package/dist/calcite/p-6c8a562f.system.entry.js +5 -0
  123. package/dist/calcite/p-6cc23c39.system.js +5 -0
  124. package/dist/calcite/p-70cd1387.system.entry.js +5 -0
  125. package/dist/calcite/p-71ea4a6f.system.entry.js +5 -0
  126. package/dist/calcite/p-72563742.js +5 -0
  127. package/dist/calcite/p-72fa390e.entry.js +5 -0
  128. package/dist/calcite/p-75f714c9.entry.js +5 -0
  129. package/dist/calcite/p-76ccd204.entry.js +5 -0
  130. package/dist/calcite/p-79cbbf2d.js +5 -0
  131. package/dist/calcite/p-7a6c6382.entry.js +5 -0
  132. package/dist/calcite/p-7ade2294.system.entry.js +5 -0
  133. package/dist/calcite/p-7b869bc5.entry.js +5 -0
  134. package/dist/calcite/p-7b89726e.system.entry.js +5 -0
  135. package/dist/calcite/p-7c161518.system.entry.js +5 -0
  136. package/dist/calcite/p-7c37ca39.entry.js +5 -0
  137. package/dist/calcite/p-7dd5c4e4.entry.js +5 -0
  138. package/dist/calcite/p-7ed4c551.system.js +5 -0
  139. package/dist/calcite/p-809ddb6a.js +5 -0
  140. package/dist/calcite/p-83302e1c.entry.js +5 -0
  141. package/dist/calcite/p-83ccefba.system.entry.js +5 -0
  142. package/dist/calcite/p-86af9de1.entry.js +5 -0
  143. package/dist/calcite/p-8953f712.entry.js +5 -0
  144. package/dist/calcite/p-89cdfa96.system.js +5 -0
  145. package/dist/calcite/p-8a63221d.js +5 -0
  146. package/dist/calcite/p-8bc3e126.entry.js +5 -0
  147. package/dist/calcite/p-91645bf7.system.js +5 -0
  148. package/dist/calcite/p-91f046a2.entry.js +5 -0
  149. package/dist/calcite/p-98789055.system.entry.js +5 -0
  150. package/dist/calcite/p-98a632a4.system.entry.js +5 -0
  151. package/dist/calcite/p-9affee61.entry.js +5 -0
  152. package/dist/calcite/p-9f92ae58.system.entry.js +5 -0
  153. package/dist/calcite/p-9fa024e6.system.entry.js +5 -0
  154. package/dist/calcite/p-9fa5e356.entry.js +5 -0
  155. package/dist/calcite/p-9fa67508.entry.js +5 -0
  156. package/dist/calcite/p-9fc0dc2c.system.entry.js +5 -0
  157. package/dist/calcite/p-a09634e2.entry.js +5 -0
  158. package/dist/calcite/p-a0c02648.system.js +5 -0
  159. package/dist/calcite/p-a5bfc29d.system.entry.js +5 -0
  160. package/dist/calcite/p-a62de092.js +5 -0
  161. package/dist/calcite/p-a677e52e.entry.js +5 -0
  162. package/dist/calcite/p-a7ba0292.system.js +5 -0
  163. package/dist/calcite/p-a8569c55.system.entry.js +5 -0
  164. package/dist/calcite/p-aad45edf.system.js +5 -0
  165. package/dist/calcite/p-ac6b615b.entry.js +5 -0
  166. package/dist/calcite/p-ac9607f2.system.js +11 -0
  167. package/dist/calcite/p-accdb0ce.js +5 -0
  168. package/dist/calcite/p-b018fbbd.entry.js +5 -0
  169. package/dist/calcite/p-b06207bb.js +5 -0
  170. package/dist/calcite/p-b1f88d45.system.js +5 -0
  171. package/dist/calcite/p-b244a00c.entry.js +5 -0
  172. package/dist/calcite/p-b2ab0485.js +5 -0
  173. package/dist/calcite/p-b3d6ab12.system.entry.js +5 -0
  174. package/dist/calcite/p-b41deed0.system.entry.js +5 -0
  175. package/dist/calcite/p-b42d730f.entry.js +5 -0
  176. package/dist/calcite/p-b4960d06.system.js +5 -0
  177. package/dist/calcite/p-b4e7b593.system.entry.js +5 -0
  178. package/dist/calcite/p-b8d040e5.system.entry.js +5 -0
  179. package/dist/calcite/p-ba1322e6.system.entry.js +5 -0
  180. package/dist/calcite/p-bf25e278.system.entry.js +5 -0
  181. package/dist/calcite/p-bf8b70a8.entry.js +5 -0
  182. package/dist/calcite/p-c34c4414.system.js +5 -0
  183. package/dist/calcite/p-c399cfce.entry.js +5 -0
  184. package/dist/calcite/p-c4294f70.entry.js +5 -0
  185. package/dist/calcite/p-c48b4b7e.system.entry.js +5 -0
  186. package/dist/calcite/p-c5ec8d74.js +11 -0
  187. package/dist/calcite/p-c60e3a71.entry.js +5 -0
  188. package/dist/calcite/p-c8e4117c.system.entry.js +5 -0
  189. package/dist/calcite/p-c99d8f9e.system.entry.js +5 -0
  190. package/dist/calcite/p-c9ecea64.entry.js +5 -0
  191. package/dist/calcite/p-ca79fabf.system.entry.js +5 -0
  192. package/dist/calcite/p-cacca548.entry.js +5 -0
  193. package/dist/calcite/p-caf7085a.system.js +5 -0
  194. package/dist/calcite/p-cc4aeb6f.entry.js +5 -0
  195. package/dist/calcite/p-cca94491.system.entry.js +5 -0
  196. package/dist/calcite/p-cd41629f.entry.js +5 -0
  197. package/dist/calcite/p-d11ad046.system.js +5 -0
  198. package/dist/calcite/p-d35e423d.js +5 -0
  199. package/dist/calcite/p-d4059426.entry.js +5 -0
  200. package/dist/calcite/p-d53cc958.js +5 -0
  201. package/dist/calcite/p-d6048152.system.entry.js +5 -0
  202. package/dist/calcite/p-daa110fe.system.entry.js +5 -0
  203. package/dist/calcite/p-db10485b.system.js +5 -0
  204. package/dist/calcite/p-dc6aef8b.entry.js +5 -0
  205. package/dist/calcite/p-dcf30b00.system.entry.js +5 -0
  206. package/dist/calcite/p-de3a04c2.system.entry.js +5 -0
  207. package/dist/calcite/p-e020662f.system.js +5 -0
  208. package/dist/calcite/p-e35e7216.system.js +5 -0
  209. package/dist/calcite/p-e40dd6fe.system.entry.js +5 -0
  210. package/dist/calcite/p-e4acb5a8.js +5 -0
  211. package/dist/calcite/p-e638ff0e.entry.js +5 -0
  212. package/dist/calcite/p-e7819705.entry.js +5 -0
  213. package/dist/calcite/p-eccb140e.entry.js +5 -0
  214. package/dist/calcite/p-edf0f4f8.entry.js +5 -0
  215. package/dist/calcite/p-eed43a57.system.entry.js +5 -0
  216. package/dist/calcite/p-f0228763.entry.js +5 -0
  217. package/dist/calcite/p-f07d3627.js +5 -0
  218. package/dist/calcite/p-f243b615.js +5 -0
  219. package/dist/calcite/p-f281f1e9.entry.js +5 -0
  220. package/dist/calcite/p-f32e61bb.system.entry.js +5 -0
  221. package/dist/calcite/p-f5bb39bb.js +5 -0
  222. package/dist/calcite/p-f6f4648e.system.entry.js +5 -0
  223. package/dist/calcite/p-f93a7fce.entry.js +5 -0
  224. package/dist/calcite/p-fba65e4a.system.entry.js +5 -0
  225. package/dist/cjs/CalciteExpandToggle-6a9f9858.js +94 -0
  226. package/dist/cjs/CalciteHeading-363b0525.js +19 -0
  227. package/dist/cjs/array-a5dedf5a.js +11 -0
  228. package/dist/cjs/calcite-accordion_2.cjs.entry.js +10 -6
  229. package/dist/cjs/calcite-action-bar.cjs.entry.js +32 -26
  230. package/dist/cjs/calcite-action-group.cjs.entry.js +10 -6
  231. package/dist/cjs/calcite-action-menu.cjs.entry.js +15 -9
  232. package/dist/cjs/calcite-action-pad.cjs.entry.js +11 -7
  233. package/dist/cjs/calcite-action.cjs.entry.js +12 -12
  234. package/dist/cjs/calcite-alert.cjs.entry.js +10 -6
  235. package/dist/cjs/calcite-avatar.cjs.entry.js +9 -5
  236. package/dist/cjs/calcite-block_2.cjs.entry.js +38 -31
  237. package/dist/cjs/calcite-button.cjs.entry.js +63 -40
  238. package/dist/cjs/calcite-card.cjs.entry.js +10 -6
  239. package/dist/cjs/calcite-checkbox.cjs.entry.js +28 -35
  240. package/dist/cjs/calcite-chip.cjs.entry.js +8 -4
  241. package/dist/cjs/calcite-color-picker_3.cjs.entry.js +27 -20
  242. package/dist/cjs/calcite-combobox_3.cjs.entry.js +41 -34
  243. package/dist/cjs/calcite-date-picker_4.cjs.entry.js +19 -15
  244. package/dist/cjs/calcite-dropdown_3.cjs.entry.js +51 -42
  245. package/dist/cjs/calcite-fab.cjs.entry.js +8 -4
  246. package/dist/cjs/calcite-filter.cjs.entry.js +55 -22
  247. package/dist/cjs/calcite-flow.cjs.entry.js +7 -3
  248. package/dist/cjs/calcite-graph_2.cjs.entry.js +97 -40
  249. package/dist/cjs/calcite-handle.cjs.entry.js +6 -2
  250. package/dist/cjs/calcite-icon.cjs.entry.js +9 -5
  251. package/dist/cjs/calcite-inline-editable.cjs.entry.js +28 -17
  252. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +33 -23
  253. package/dist/cjs/calcite-input-message.cjs.entry.js +8 -4
  254. package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +26 -22
  255. package/dist/cjs/calcite-input.cjs.entry.js +55 -37
  256. package/dist/cjs/calcite-label.cjs.entry.js +20 -78
  257. package/dist/cjs/calcite-link.cjs.entry.js +14 -4
  258. package/dist/cjs/calcite-list_3.cjs.entry.js +33 -8
  259. package/dist/cjs/calcite-loader.cjs.entry.js +8 -4
  260. package/dist/cjs/calcite-modal.cjs.entry.js +10 -6
  261. package/dist/cjs/calcite-notice.cjs.entry.js +10 -6
  262. package/dist/cjs/calcite-option_3.cjs.entry.js +17 -15
  263. package/dist/cjs/calcite-pagination.cjs.entry.js +8 -4
  264. package/dist/cjs/calcite-panel.cjs.entry.js +12 -8
  265. package/dist/cjs/calcite-pick-list_3.cjs.entry.js +16 -12
  266. package/dist/cjs/calcite-popover_2.cjs.entry.js +12 -8
  267. package/dist/cjs/calcite-progress.cjs.entry.js +6 -2
  268. package/dist/cjs/calcite-radio-button-group.cjs.entry.js +6 -2
  269. package/dist/cjs/calcite-radio-group_2.cjs.entry.js +27 -25
  270. package/dist/cjs/calcite-radio_2.cjs.entry.js +57 -30
  271. package/dist/cjs/calcite-rating.cjs.entry.js +23 -11
  272. package/dist/cjs/calcite-scrim.cjs.entry.js +6 -2
  273. package/dist/cjs/calcite-shell_3.cjs.entry.js +10 -6
  274. package/dist/cjs/calcite-sortable-list.cjs.entry.js +27 -6
  275. package/dist/cjs/calcite-split-button.cjs.entry.js +8 -4
  276. package/dist/cjs/calcite-stepper_2.cjs.entry.js +11 -7
  277. package/dist/cjs/calcite-switch.cjs.entry.js +51 -39
  278. package/dist/cjs/calcite-tab_4.cjs.entry.js +15 -11
  279. package/dist/cjs/calcite-tile-select_2.cjs.entry.js +26 -9
  280. package/dist/cjs/calcite-tile.cjs.entry.js +9 -5
  281. package/dist/cjs/calcite-tip_3.cjs.entry.js +12 -8
  282. package/dist/cjs/calcite-tooltip_2.cjs.entry.js +15 -10
  283. package/dist/cjs/calcite-tree_2.cjs.entry.js +44 -13
  284. package/dist/cjs/calcite-value-list_2.cjs.entry.js +14 -10
  285. package/dist/cjs/calcite.cjs.js +7 -3
  286. package/dist/cjs/debounce-95979061.js +495 -0
  287. package/dist/cjs/dom-19822169.js +170 -0
  288. package/dist/cjs/forIn-a5d553af.js +622 -0
  289. package/dist/cjs/form-00fb301c.js +22 -0
  290. package/dist/cjs/guid-b270f0db.js +20 -0
  291. package/dist/cjs/index-cee0daa9.js +2075 -0
  292. package/dist/cjs/index.cjs.js +4 -0
  293. package/dist/cjs/interfaces-54651c1c.js +13 -0
  294. package/dist/cjs/key-8bfb93ec.js +37 -0
  295. package/dist/cjs/label-8e3552b2.js +87 -0
  296. package/dist/cjs/loader.cjs.js +7 -3
  297. package/dist/cjs/locale-69dc9583.js +123 -0
  298. package/dist/cjs/math-9d44163f.js +9 -0
  299. package/dist/cjs/number-e6448e15.js +45 -0
  300. package/dist/cjs/observers-41837607.js +22 -0
  301. package/dist/cjs/popper-87bf13e6.js +1790 -0
  302. package/dist/cjs/resources-38563593.js +232 -0
  303. package/dist/cjs/resources-407a4290.js +20 -0
  304. package/dist/cjs/resources-f9c141d2.js +346 -0
  305. package/dist/cjs/resources-ffe563a2.js +21 -0
  306. package/dist/cjs/sortable.esm-d7a4560b.js +3019 -0
  307. package/dist/cjs/utils-55d67711.js +123 -0
  308. package/dist/collection/collection-manifest.json +2 -2
  309. package/dist/collection/components/calcite-accordion/calcite-accordion.js +9 -2
  310. package/dist/collection/components/calcite-accordion/interfaces.js +4 -0
  311. package/dist/collection/components/calcite-accordion-item/calcite-accordion-item.js +15 -8
  312. package/dist/collection/components/calcite-action/calcite-action.css +18 -69
  313. package/dist/collection/components/calcite-action/calcite-action.js +39 -36
  314. package/dist/collection/components/calcite-action/resources.js +4 -0
  315. package/dist/collection/components/calcite-action-bar/calcite-action-bar.js +44 -19
  316. package/dist/collection/components/calcite-action-bar/resources.js +4 -0
  317. package/dist/collection/components/calcite-action-bar/utils.js +5 -0
  318. package/dist/collection/components/calcite-action-group/calcite-action-group.js +4 -0
  319. package/dist/collection/components/calcite-action-group/resources.js +4 -0
  320. package/dist/collection/components/calcite-action-menu/calcite-action-menu.js +10 -4
  321. package/dist/collection/components/calcite-action-menu/resources.js +4 -0
  322. package/dist/collection/components/calcite-action-pad/calcite-action-pad.js +4 -0
  323. package/dist/collection/components/calcite-action-pad/resources.js +4 -0
  324. package/dist/collection/components/calcite-alert/calcite-alert.css +0 -62
  325. package/dist/collection/components/calcite-alert/calcite-alert.js +10 -6
  326. package/dist/collection/components/calcite-alert/interfaces.js +4 -0
  327. package/dist/collection/components/calcite-alert/resources.js +4 -0
  328. package/dist/collection/components/calcite-avatar/calcite-avatar.js +4 -0
  329. package/dist/collection/components/calcite-avatar/utils.js +4 -0
  330. package/dist/collection/components/calcite-block/calcite-block.css +20 -2
  331. package/dist/collection/components/calcite-block/calcite-block.js +16 -11
  332. package/dist/collection/components/calcite-block/resources.js +8 -2
  333. package/dist/collection/components/calcite-block-section/calcite-block-section.css +1 -0
  334. package/dist/collection/components/calcite-block-section/calcite-block-section.js +20 -16
  335. package/dist/collection/components/calcite-block-section/interfaces.js +4 -0
  336. package/dist/collection/components/calcite-block-section/resources.js +4 -0
  337. package/dist/collection/components/calcite-button/calcite-button.js +42 -40
  338. package/dist/collection/components/calcite-button/interfaces.js +4 -0
  339. package/dist/collection/components/calcite-button/resources.js +4 -0
  340. package/dist/collection/components/calcite-card/calcite-card.js +13 -9
  341. package/dist/collection/components/calcite-card/resources.js +4 -0
  342. package/dist/collection/components/calcite-checkbox/calcite-checkbox.css +5 -2
  343. package/dist/collection/components/calcite-checkbox/calcite-checkbox.js +52 -47
  344. package/dist/collection/components/calcite-chip/calcite-chip.js +8 -3
  345. package/dist/collection/components/calcite-chip/interfaces.js +4 -0
  346. package/dist/collection/components/calcite-chip/resources.js +4 -0
  347. package/dist/collection/components/calcite-color-picker/calcite-color-picker.js +63 -56
  348. package/dist/collection/components/calcite-color-picker/interfaces.js +4 -0
  349. package/dist/collection/components/calcite-color-picker/resources.js +4 -0
  350. package/dist/collection/components/calcite-color-picker/utils.js +4 -0
  351. package/dist/collection/components/calcite-color-picker-hex-input/calcite-color-picker-hex-input.js +8 -4
  352. package/dist/collection/components/calcite-color-picker-hex-input/resources.js +4 -0
  353. package/dist/collection/components/calcite-color-picker-swatch/calcite-color-picker-swatch.js +6 -2
  354. package/dist/collection/components/calcite-color-picker-swatch/resources.js +4 -0
  355. package/dist/collection/components/calcite-combobox/calcite-combobox.css +20 -5
  356. package/dist/collection/components/calcite-combobox/calcite-combobox.js +41 -30
  357. package/dist/collection/components/calcite-combobox/interfaces.js +4 -0
  358. package/dist/collection/components/calcite-combobox/resources.js +4 -0
  359. package/dist/collection/components/calcite-combobox/utils.js +4 -0
  360. package/dist/collection/components/calcite-combobox-item/calcite-combobox-item.css +1 -1
  361. package/dist/collection/components/calcite-combobox-item/calcite-combobox-item.js +7 -0
  362. package/dist/collection/components/calcite-combobox-item/resources.js +4 -0
  363. package/dist/collection/components/calcite-combobox-item-group/calcite-combobox-item-group.js +7 -0
  364. package/dist/collection/components/calcite-combobox-item-group/resources.js +4 -0
  365. package/dist/collection/components/calcite-date-picker/calcite-date-picker.js +10 -6
  366. package/dist/collection/components/calcite-date-picker/interfaces.js +4 -0
  367. package/dist/collection/components/calcite-date-picker/resources.js +4 -0
  368. package/dist/collection/components/calcite-date-picker/utils.js +4 -0
  369. package/dist/collection/components/calcite-date-picker-day/calcite-date-picker-day.css +1 -1
  370. package/dist/collection/components/calcite-date-picker-day/calcite-date-picker-day.js +6 -2
  371. package/dist/collection/components/calcite-date-picker-month/calcite-date-picker-month.css +1 -1
  372. package/dist/collection/components/calcite-date-picker-month/calcite-date-picker-month.js +10 -6
  373. package/dist/collection/components/calcite-date-picker-month-header/calcite-date-picker-month-header.css +1 -1
  374. package/dist/collection/components/calcite-date-picker-month-header/calcite-date-picker-month-header.js +4 -0
  375. package/dist/collection/components/calcite-dropdown/calcite-dropdown.css +0 -1
  376. package/dist/collection/components/calcite-dropdown/calcite-dropdown.js +49 -37
  377. package/dist/collection/components/calcite-dropdown/interfaces.js +4 -0
  378. package/dist/collection/components/calcite-dropdown/resources.js +4 -0
  379. package/dist/collection/components/calcite-dropdown-group/calcite-dropdown-group.js +9 -2
  380. package/dist/collection/components/calcite-dropdown-group/interfaces.js +4 -0
  381. package/dist/collection/components/calcite-dropdown-group/resources.js +4 -0
  382. package/dist/collection/components/calcite-dropdown-item/calcite-dropdown-item.css +33 -27
  383. package/dist/collection/components/calcite-dropdown-item/calcite-dropdown-item.js +13 -6
  384. package/dist/collection/components/calcite-dropdown-item/resources.js +4 -0
  385. package/dist/collection/components/calcite-fab/calcite-fab.js +6 -2
  386. package/dist/collection/components/calcite-fab/resources.js +4 -0
  387. package/dist/collection/components/calcite-filter/calcite-filter.css +6 -1
  388. package/dist/collection/components/calcite-filter/calcite-filter.js +114 -23
  389. package/dist/collection/components/calcite-filter/resources.js +4 -0
  390. package/dist/collection/components/calcite-flow/calcite-flow.js +4 -0
  391. package/dist/collection/components/calcite-flow/interfaces.js +4 -0
  392. package/dist/collection/components/calcite-flow/resources.js +4 -0
  393. package/dist/collection/components/calcite-graph/calcite-graph.js +52 -6
  394. package/dist/collection/components/calcite-graph/interfaces.js +4 -0
  395. package/dist/collection/components/calcite-graph/util.js +5 -1
  396. package/dist/collection/components/calcite-handle/calcite-handle.js +6 -2
  397. package/dist/collection/components/calcite-handle/resources.js +4 -0
  398. package/dist/collection/components/calcite-icon/assets/calcite-icon/classifyObjects16.json +1 -0
  399. package/dist/collection/components/calcite-icon/assets/calcite-icon/classifyObjects24.json +1 -0
  400. package/dist/collection/components/calcite-icon/assets/calcite-icon/classifyObjects32.json +1 -0
  401. package/dist/collection/components/calcite-icon/assets/calcite-icon/classifyPixels16.json +1 -0
  402. package/dist/collection/components/calcite-icon/assets/calcite-icon/classifyPixels24.json +1 -0
  403. package/dist/collection/components/calcite-icon/assets/calcite-icon/classifyPixels32.json +1 -0
  404. package/dist/collection/components/calcite-icon/assets/calcite-icon/dataCloud16.json +1 -0
  405. package/dist/collection/components/calcite-icon/assets/calcite-icon/dataCloud24.json +1 -0
  406. package/dist/collection/components/calcite-icon/assets/calcite-icon/dataCloud32.json +1 -0
  407. package/dist/collection/components/calcite-icon/assets/calcite-icon/dataFolder16.json +1 -0
  408. package/dist/collection/components/calcite-icon/assets/calcite-icon/dataFolder24.json +1 -0
  409. package/dist/collection/components/calcite-icon/assets/calcite-icon/dataFolder32.json +1 -0
  410. package/dist/collection/components/calcite-icon/assets/calcite-icon/dataRaster16.json +1 -0
  411. package/dist/collection/components/calcite-icon/assets/calcite-icon/dataRaster24.json +1 -0
  412. package/dist/collection/components/calcite-icon/assets/calcite-icon/dataRaster32.json +1 -0
  413. package/dist/collection/components/calcite-icon/assets/calcite-icon/distributeHeightEvenly16.json +1 -0
  414. package/dist/collection/components/calcite-icon/assets/calcite-icon/distributeHeightEvenly24.json +1 -0
  415. package/dist/collection/components/calcite-icon/assets/calcite-icon/distributeHeightEvenly32.json +1 -0
  416. package/dist/collection/components/calcite-icon/assets/calcite-icon/distributeWidthEvenly16.json +1 -0
  417. package/dist/collection/components/calcite-icon/assets/calcite-icon/distributeWidthEvenly24.json +1 -0
  418. package/dist/collection/components/calcite-icon/assets/calcite-icon/distributeWidthEvenly32.json +1 -0
  419. package/dist/collection/components/calcite-icon/assets/calcite-icon/gridUnit16.json +1 -0
  420. package/dist/collection/components/calcite-icon/assets/calcite-icon/gridUnit24.json +1 -0
  421. package/dist/collection/components/calcite-icon/assets/calcite-icon/gridUnit32.json +1 -0
  422. package/dist/collection/components/calcite-icon/assets/calcite-icon/horizontalDistribute16.json +1 -0
  423. package/dist/collection/components/calcite-icon/assets/calcite-icon/horizontalDistribute24.json +1 -0
  424. package/dist/collection/components/calcite-icon/assets/calcite-icon/horizontalDistribute32.json +1 -0
  425. package/dist/collection/components/calcite-icon/assets/calcite-icon/imageChips16.json +1 -0
  426. package/dist/collection/components/calcite-icon/assets/calcite-icon/imageChips24.json +1 -0
  427. package/dist/collection/components/calcite-icon/assets/calcite-icon/imageChips32.json +1 -0
  428. package/dist/collection/components/calcite-icon/assets/calcite-icon/imageUnit16.json +1 -0
  429. package/dist/collection/components/calcite-icon/assets/calcite-icon/imageUnit24.json +1 -0
  430. package/dist/collection/components/calcite-icon/assets/calcite-icon/imageUnit32.json +1 -0
  431. package/dist/collection/components/calcite-icon/assets/calcite-icon/newTraining16.json +1 -0
  432. package/dist/collection/components/calcite-icon/assets/calcite-icon/newTraining24.json +1 -0
  433. package/dist/collection/components/calcite-icon/assets/calcite-icon/newTraining32.json +1 -0
  434. package/dist/collection/components/calcite-icon/assets/calcite-icon/penMark16.json +1 -0
  435. package/dist/collection/components/calcite-icon/assets/calcite-icon/penMark24.json +1 -0
  436. package/dist/collection/components/calcite-icon/assets/calcite-icon/penMark32.json +1 -0
  437. package/dist/collection/components/calcite-icon/assets/calcite-icon/penMarkPlus16.json +1 -0
  438. package/dist/collection/components/calcite-icon/assets/calcite-icon/penMarkPlus24.json +1 -0
  439. package/dist/collection/components/calcite-icon/assets/calcite-icon/penMarkPlus32.json +1 -0
  440. package/dist/collection/components/calcite-icon/assets/calcite-icon/retrain16.json +1 -0
  441. package/dist/collection/components/calcite-icon/assets/calcite-icon/retrain24.json +1 -0
  442. package/dist/collection/components/calcite-icon/assets/calcite-icon/retrain32.json +1 -0
  443. package/dist/collection/components/calcite-icon/assets/calcite-icon/smartForm16.json +1 -0
  444. package/dist/collection/components/calcite-icon/assets/calcite-icon/smartForm24.json +1 -0
  445. package/dist/collection/components/calcite-icon/assets/calcite-icon/smartForm32.json +1 -0
  446. package/dist/collection/components/calcite-icon/assets/calcite-icon/subscript16.json +1 -0
  447. package/dist/collection/components/calcite-icon/assets/calcite-icon/subscript24.json +1 -0
  448. package/dist/collection/components/calcite-icon/assets/calcite-icon/subscript32.json +1 -0
  449. package/dist/collection/components/calcite-icon/assets/calcite-icon/superscript16.json +1 -0
  450. package/dist/collection/components/calcite-icon/assets/calcite-icon/superscript24.json +1 -0
  451. package/dist/collection/components/calcite-icon/assets/calcite-icon/superscript32.json +1 -0
  452. package/dist/collection/components/calcite-icon/assets/calcite-icon/verticalDistribute16.json +1 -0
  453. package/dist/collection/components/calcite-icon/assets/calcite-icon/verticalDistribute24.json +1 -0
  454. package/dist/collection/components/calcite-icon/assets/calcite-icon/verticalDistribute32.json +1 -0
  455. package/dist/collection/components/calcite-icon/calcite-icon.js +4 -0
  456. package/dist/collection/components/calcite-icon/resources.js +4 -0
  457. package/dist/collection/components/calcite-icon/utils.js +4 -0
  458. package/dist/collection/components/calcite-inline-editable/calcite-inline-editable.js +56 -33
  459. package/dist/collection/components/calcite-inline-editable/resources.js +4 -0
  460. package/dist/collection/components/calcite-input/calcite-input.js +60 -42
  461. package/dist/collection/components/calcite-input/interfaces.js +4 -0
  462. package/dist/collection/components/calcite-input/resources.js +4 -0
  463. package/dist/collection/components/calcite-input-date-picker/calcite-input-date-picker.js +50 -24
  464. package/dist/collection/components/calcite-input-message/calcite-input-message.js +9 -2
  465. package/dist/collection/components/calcite-input-message/interfaces.js +4 -0
  466. package/dist/collection/components/calcite-input-time-picker/calcite-input-time-picker.js +21 -24
  467. package/dist/collection/components/calcite-label/calcite-label.css +11 -11
  468. package/dist/collection/components/calcite-label/calcite-label.js +29 -94
  469. package/dist/collection/components/calcite-label/resources.js +7 -0
  470. package/dist/collection/components/calcite-link/calcite-link.js +16 -2
  471. package/dist/collection/components/calcite-list/calcite-list.js +37 -1
  472. package/dist/collection/components/calcite-list/resources.js +4 -0
  473. package/dist/collection/components/calcite-list-item/calcite-list-item.js +35 -3
  474. package/dist/collection/components/calcite-list-item/resources.js +4 -0
  475. package/dist/collection/components/calcite-list-item-group/calcite-list-item-group.js +4 -0
  476. package/dist/collection/components/calcite-list-item-group/resources.js +4 -0
  477. package/dist/collection/components/calcite-loader/calcite-loader.css +3 -6
  478. package/dist/collection/components/calcite-loader/calcite-loader.js +4 -0
  479. package/dist/collection/components/calcite-modal/calcite-modal.js +6 -2
  480. package/dist/collection/components/calcite-modal/interfaces.js +4 -0
  481. package/dist/collection/components/calcite-modal/resources.js +4 -0
  482. package/dist/collection/components/calcite-notice/calcite-notice.css +18 -6
  483. package/dist/collection/components/calcite-notice/calcite-notice.js +6 -2
  484. package/dist/collection/components/calcite-notice/resources.js +4 -0
  485. package/dist/collection/components/calcite-option/calcite-option.js +6 -2
  486. package/dist/collection/components/calcite-option-group/calcite-option-group.js +9 -2
  487. package/dist/collection/components/calcite-pagination/calcite-pagination.js +12 -8
  488. package/dist/collection/components/calcite-pagination/resources.js +4 -0
  489. package/dist/collection/components/calcite-panel/calcite-panel.css +6 -5
  490. package/dist/collection/components/calcite-panel/calcite-panel.js +13 -8
  491. package/dist/collection/components/calcite-panel/resources.js +4 -0
  492. package/dist/collection/components/calcite-pick-list/calcite-pick-list.css +1 -1
  493. package/dist/collection/components/calcite-pick-list/calcite-pick-list.js +4 -0
  494. package/dist/collection/components/calcite-pick-list/resources.js +4 -0
  495. package/dist/collection/components/calcite-pick-list/shared-list-logic.js +4 -0
  496. package/dist/collection/components/calcite-pick-list/shared-list-render.js +4 -0
  497. package/dist/collection/components/calcite-pick-list-group/calcite-pick-list-group.js +4 -0
  498. package/dist/collection/components/calcite-pick-list-group/resources.js +4 -0
  499. package/dist/collection/components/calcite-pick-list-item/calcite-pick-list-item.js +14 -10
  500. package/dist/collection/components/calcite-pick-list-item/resources.js +4 -0
  501. package/dist/collection/components/calcite-popover/calcite-popover.js +16 -9
  502. package/dist/collection/components/calcite-popover/resources.js +4 -0
  503. package/dist/collection/components/calcite-popover-manager/calcite-popover-manager.js +6 -2
  504. package/dist/collection/components/calcite-progress/calcite-progress.js +4 -0
  505. package/dist/collection/components/calcite-radio/calcite-radio.js +8 -4
  506. package/dist/collection/components/calcite-radio-button/calcite-radio-button.js +86 -47
  507. package/dist/collection/components/calcite-radio-button/resources.js +4 -0
  508. package/dist/collection/components/calcite-radio-button-group/calcite-radio-button-group.js +7 -0
  509. package/dist/collection/components/calcite-radio-group/calcite-radio-group.js +23 -30
  510. package/dist/collection/components/calcite-radio-group/interfaces.js +4 -0
  511. package/dist/collection/components/calcite-radio-group-item/calcite-radio-group-item.css +1 -5
  512. package/dist/collection/components/calcite-radio-group-item/calcite-radio-group-item.js +6 -2
  513. package/dist/collection/components/calcite-radio-group-item/resources.js +4 -0
  514. package/dist/collection/components/calcite-rating/calcite-rating.js +24 -18
  515. package/dist/collection/components/calcite-rating/resources.js +4 -0
  516. package/dist/collection/components/calcite-scrim/calcite-scrim.js +9 -2
  517. package/dist/collection/components/calcite-scrim/resources.js +4 -0
  518. package/dist/collection/components/calcite-select/calcite-select.js +15 -16
  519. package/dist/collection/components/calcite-select/resources.js +4 -0
  520. package/dist/collection/components/calcite-shell/calcite-shell.js +6 -2
  521. package/dist/collection/components/calcite-shell/resources.js +4 -0
  522. package/dist/collection/components/calcite-shell-center-row/calcite-shell-center-row.js +5 -1
  523. package/dist/collection/components/calcite-shell-center-row/resources.js +4 -0
  524. package/dist/collection/components/calcite-shell-panel/calcite-shell-panel.js +5 -1
  525. package/dist/collection/components/calcite-shell-panel/resources.js +4 -0
  526. package/dist/collection/components/calcite-slider/calcite-slider.css +2 -4
  527. package/dist/collection/components/calcite-slider/calcite-slider.js +92 -35
  528. package/dist/collection/components/calcite-sortable-list/calcite-sortable-list.css +13 -0
  529. package/dist/collection/components/calcite-sortable-list/calcite-sortable-list.js +41 -2
  530. package/dist/collection/components/calcite-sortable-list/resources.js +8 -1
  531. package/dist/collection/components/calcite-split-button/calcite-split-button.js +9 -2
  532. package/dist/collection/components/calcite-split-button/resources.js +4 -0
  533. package/dist/collection/components/calcite-stepper/calcite-stepper.js +11 -4
  534. package/dist/collection/components/calcite-stepper-item/calcite-stepper-item.css +7 -7
  535. package/dist/collection/components/calcite-stepper-item/calcite-stepper-item.js +21 -14
  536. package/dist/collection/components/calcite-switch/calcite-switch.css +7 -7
  537. package/dist/collection/components/calcite-switch/calcite-switch.js +87 -47
  538. package/dist/collection/components/calcite-tab/calcite-tab.css +0 -1
  539. package/dist/collection/components/calcite-tab/calcite-tab.js +11 -4
  540. package/dist/collection/components/calcite-tab/interfaces.js +4 -0
  541. package/dist/collection/components/calcite-tab-nav/calcite-tab-nav.css +0 -1
  542. package/dist/collection/components/calcite-tab-nav/calcite-tab-nav.js +21 -14
  543. package/dist/collection/components/calcite-tab-title/calcite-tab-title.js +23 -16
  544. package/dist/collection/components/calcite-tabs/calcite-tabs.js +6 -1
  545. package/dist/collection/components/calcite-tabs/interfaces.js +4 -0
  546. package/dist/collection/components/calcite-tabs/resources.js +4 -0
  547. package/dist/collection/components/calcite-tile/calcite-tile.css +13 -0
  548. package/dist/collection/components/calcite-tile/calcite-tile.js +6 -2
  549. package/dist/collection/components/calcite-tile/resources.js +4 -0
  550. package/dist/collection/components/calcite-tile-select/calcite-tile-select.js +53 -12
  551. package/dist/collection/components/calcite-tile-select/interfaces.js +4 -0
  552. package/dist/collection/components/calcite-tile-select-group/calcite-tile-select-group.js +7 -0
  553. package/dist/collection/components/calcite-tile-select-group/interfaces.js +4 -0
  554. package/dist/collection/components/calcite-time-picker/calcite-time-picker.js +34 -30
  555. package/dist/collection/components/calcite-time-picker/resources.js +4 -0
  556. package/dist/collection/components/calcite-tip/calcite-tip.js +5 -0
  557. package/dist/collection/components/calcite-tip/resources.js +4 -0
  558. package/dist/collection/components/calcite-tip-group/calcite-tip-group.js +7 -0
  559. package/dist/collection/components/calcite-tip-manager/calcite-tip-manager.js +4 -0
  560. package/dist/collection/components/calcite-tip-manager/resources.js +4 -0
  561. package/dist/collection/components/calcite-tooltip/calcite-tooltip.js +12 -5
  562. package/dist/collection/components/calcite-tooltip/resources.js +4 -0
  563. package/dist/collection/components/calcite-tooltip-manager/calcite-tooltip-manager.js +9 -4
  564. package/dist/collection/components/calcite-tree/calcite-tree.js +14 -10
  565. package/dist/collection/components/calcite-tree/interfaces.js +4 -0
  566. package/dist/collection/components/calcite-tree-item/calcite-tree-item.js +59 -28
  567. package/dist/collection/components/calcite-tree-item/interfaces.js +4 -0
  568. package/dist/collection/components/calcite-tree-item/resources.js +4 -0
  569. package/dist/collection/components/calcite-value-list/calcite-value-list.js +5 -1
  570. package/dist/collection/components/calcite-value-list/resources.js +4 -0
  571. package/dist/collection/components/calcite-value-list-item/calcite-value-list-item.js +10 -6
  572. package/dist/collection/components/calcite-value-list-item/resources.js +4 -0
  573. package/dist/collection/components/functional/CalciteExpandToggle.js +4 -0
  574. package/dist/collection/components/functional/CalciteHeading.js +4 -0
  575. package/dist/collection/components/interfaces.js +4 -0
  576. package/dist/collection/utils/array.js +4 -0
  577. package/dist/collection/utils/date.js +4 -0
  578. package/dist/collection/utils/dom.js +4 -3
  579. package/dist/collection/utils/filter.js +5 -1
  580. package/dist/collection/utils/form.js +4 -0
  581. package/dist/collection/utils/guid.js +4 -0
  582. package/dist/collection/utils/key.js +4 -0
  583. package/dist/collection/utils/label.js +80 -0
  584. package/dist/collection/utils/locale.js +4 -0
  585. package/dist/collection/utils/math.js +4 -0
  586. package/dist/collection/utils/number.js +4 -3
  587. package/dist/collection/utils/observers.js +4 -0
  588. package/dist/collection/utils/popper.js +6 -2
  589. package/dist/collection/utils/resources.js +24 -3
  590. package/dist/collection/utils/time.js +4 -0
  591. package/dist/components/CalciteExpandToggle.js +87 -0
  592. package/dist/components/CalciteHeading.js +16 -0
  593. package/dist/components/array.js +9 -0
  594. package/dist/components/calcite-accordion-item.d.ts +11 -0
  595. package/dist/components/calcite-accordion-item.js +153 -0
  596. package/dist/components/calcite-accordion.d.ts +11 -0
  597. package/dist/components/calcite-accordion.js +167 -0
  598. package/dist/components/calcite-action-bar.d.ts +11 -0
  599. package/dist/components/calcite-action-bar.js +266 -0
  600. package/dist/components/calcite-action-group.d.ts +11 -0
  601. package/dist/components/calcite-action-group.js +10 -0
  602. package/dist/components/calcite-action-group2.js +135 -0
  603. package/dist/components/calcite-action-menu.d.ts +11 -0
  604. package/dist/components/calcite-action-menu.js +10 -0
  605. package/dist/components/calcite-action-menu2.js +354 -0
  606. package/dist/components/calcite-action-pad.d.ts +11 -0
  607. package/dist/components/calcite-action-pad.js +198 -0
  608. package/dist/components/calcite-action.d.ts +11 -0
  609. package/dist/components/calcite-action.js +10 -0
  610. package/dist/components/calcite-action2.js +183 -0
  611. package/dist/components/calcite-alert.d.ts +11 -0
  612. package/dist/components/calcite-alert.js +232 -0
  613. package/dist/components/calcite-avatar.d.ts +11 -0
  614. package/dist/components/calcite-avatar.js +171 -0
  615. package/dist/components/calcite-block-section.d.ts +11 -0
  616. package/dist/components/calcite-block-section.js +139 -0
  617. package/dist/components/calcite-block.d.ts +11 -0
  618. package/dist/components/calcite-block.js +216 -0
  619. package/dist/components/calcite-button.d.ts +11 -0
  620. package/dist/components/calcite-button.js +10 -0
  621. package/dist/components/calcite-button2.js +243 -0
  622. package/dist/components/calcite-card.d.ts +11 -0
  623. package/dist/components/calcite-card.js +162 -0
  624. package/dist/components/calcite-checkbox.d.ts +11 -0
  625. package/dist/components/calcite-checkbox.js +10 -0
  626. package/dist/components/calcite-checkbox2.js +203 -0
  627. package/dist/components/calcite-chip.d.ts +11 -0
  628. package/dist/components/calcite-chip.js +10 -0
  629. package/dist/components/calcite-chip2.js +121 -0
  630. package/dist/components/calcite-color-picker-hex-input.d.ts +11 -0
  631. package/dist/components/calcite-color-picker-hex-input.js +10 -0
  632. package/dist/components/calcite-color-picker-hex-input2.js +353 -0
  633. package/dist/components/calcite-color-picker-swatch.d.ts +11 -0
  634. package/dist/components/calcite-color-picker-swatch.js +10 -0
  635. package/dist/components/calcite-color-picker-swatch2.js +2176 -0
  636. package/dist/components/calcite-color-picker.d.ts +11 -0
  637. package/dist/components/calcite-color-picker.js +969 -0
  638. package/dist/components/calcite-combobox-item-group.d.ts +11 -0
  639. package/dist/components/calcite-combobox-item-group.js +68 -0
  640. package/dist/components/calcite-combobox-item.d.ts +11 -0
  641. package/dist/components/calcite-combobox-item.js +168 -0
  642. package/dist/components/calcite-combobox.d.ts +11 -0
  643. package/dist/components/calcite-combobox.js +873 -0
  644. package/dist/components/calcite-date-picker-day.d.ts +11 -0
  645. package/dist/components/calcite-date-picker-day.js +10 -0
  646. package/dist/components/calcite-date-picker-day2.js +99 -0
  647. package/dist/components/calcite-date-picker-month-header.d.ts +11 -0
  648. package/dist/components/calcite-date-picker-month-header.js +10 -0
  649. package/dist/components/calcite-date-picker-month-header2.js +170 -0
  650. package/dist/components/calcite-date-picker-month.d.ts +11 -0
  651. package/dist/components/calcite-date-picker-month.js +10 -0
  652. package/dist/components/calcite-date-picker-month2.js +313 -0
  653. package/dist/components/calcite-date-picker.d.ts +11 -0
  654. package/dist/components/calcite-date-picker.js +10 -0
  655. package/dist/components/calcite-date-picker2.js +486 -0
  656. package/dist/components/calcite-dropdown-group.d.ts +11 -0
  657. package/dist/components/calcite-dropdown-group.js +90 -0
  658. package/dist/components/calcite-dropdown-item.d.ts +11 -0
  659. package/dist/components/calcite-dropdown-item.js +202 -0
  660. package/dist/components/calcite-dropdown.d.ts +11 -0
  661. package/dist/components/calcite-dropdown.js +10 -0
  662. package/dist/components/calcite-dropdown2.js +390 -0
  663. package/dist/components/calcite-fab.d.ts +11 -0
  664. package/dist/components/calcite-fab.js +127 -0
  665. package/dist/components/calcite-filter.d.ts +11 -0
  666. package/dist/components/calcite-filter.js +10 -0
  667. package/dist/components/calcite-filter2.js +196 -0
  668. package/dist/components/calcite-flow.d.ts +11 -0
  669. package/dist/components/calcite-flow.js +138 -0
  670. package/dist/components/calcite-graph.d.ts +11 -0
  671. package/dist/components/calcite-graph.js +10 -0
  672. package/dist/components/calcite-graph2.js +213 -0
  673. package/dist/components/calcite-handle.d.ts +11 -0
  674. package/dist/components/calcite-handle.js +10 -0
  675. package/dist/components/calcite-handle2.js +107 -0
  676. package/dist/components/calcite-icon.d.ts +11 -0
  677. package/dist/components/calcite-icon.js +10 -0
  678. package/dist/components/calcite-icon2.js +185 -0
  679. package/dist/components/calcite-inline-editable.d.ts +11 -0
  680. package/dist/components/calcite-inline-editable.js +242 -0
  681. package/dist/components/calcite-input-date-picker.d.ts +11 -0
  682. package/dist/components/calcite-input-date-picker.js +471 -0
  683. package/dist/components/calcite-input-message.d.ts +11 -0
  684. package/dist/components/calcite-input-message.js +97 -0
  685. package/dist/components/calcite-input-time-picker.d.ts +11 -0
  686. package/dist/components/calcite-input-time-picker.js +278 -0
  687. package/dist/components/calcite-input.d.ts +11 -0
  688. package/dist/components/calcite-input.js +10 -0
  689. package/dist/components/calcite-input2.js +507 -0
  690. package/dist/components/calcite-label.d.ts +11 -0
  691. package/dist/components/calcite-label.js +10 -0
  692. package/dist/components/calcite-label2.js +81 -0
  693. package/dist/components/calcite-link.d.ts +11 -0
  694. package/dist/components/calcite-link.js +10 -0
  695. package/dist/components/calcite-link2.js +97 -0
  696. package/dist/components/calcite-list-item-group.d.ts +11 -0
  697. package/dist/components/calcite-list-item-group.js +57 -0
  698. package/dist/components/calcite-list-item.d.ts +11 -0
  699. package/dist/components/calcite-list-item.js +117 -0
  700. package/dist/components/calcite-list.d.ts +11 -0
  701. package/dist/components/calcite-list.js +59 -0
  702. package/dist/components/calcite-loader.d.ts +11 -0
  703. package/dist/components/calcite-loader.js +10 -0
  704. package/dist/components/calcite-loader2.js +107 -0
  705. package/dist/components/calcite-modal.d.ts +11 -0
  706. package/dist/components/calcite-modal.js +417 -0
  707. package/dist/components/calcite-notice.d.ts +11 -0
  708. package/dist/components/calcite-notice.js +140 -0
  709. package/dist/components/calcite-option-group.d.ts +11 -0
  710. package/dist/components/calcite-option-group.js +61 -0
  711. package/dist/components/calcite-option.d.ts +11 -0
  712. package/dist/components/calcite-option.js +107 -0
  713. package/dist/components/calcite-pagination.d.ts +11 -0
  714. package/dist/components/calcite-pagination.js +207 -0
  715. package/dist/components/calcite-panel.d.ts +11 -0
  716. package/dist/components/calcite-panel.js +309 -0
  717. package/dist/components/calcite-pick-list-group.d.ts +11 -0
  718. package/dist/components/calcite-pick-list-group.js +70 -0
  719. package/dist/components/calcite-pick-list-item.d.ts +11 -0
  720. package/dist/components/calcite-pick-list-item.js +10 -0
  721. package/dist/components/calcite-pick-list-item2.js +230 -0
  722. package/dist/components/calcite-pick-list.d.ts +11 -0
  723. package/dist/components/calcite-pick-list.js +196 -0
  724. package/dist/components/calcite-popover-manager.d.ts +11 -0
  725. package/dist/components/calcite-popover-manager.js +93 -0
  726. package/dist/components/calcite-popover.d.ts +11 -0
  727. package/dist/components/calcite-popover.js +10 -0
  728. package/dist/components/calcite-popover2.js +332 -0
  729. package/dist/components/calcite-progress.d.ts +11 -0
  730. package/dist/components/calcite-progress.js +10 -0
  731. package/dist/components/calcite-progress2.js +52 -0
  732. package/dist/components/calcite-radio-button-group.d.ts +11 -0
  733. package/dist/components/calcite-radio-button-group.js +116 -0
  734. package/dist/components/calcite-radio-button.d.ts +11 -0
  735. package/dist/components/calcite-radio-button.js +291 -0
  736. package/dist/components/calcite-radio-group-item.d.ts +11 -0
  737. package/dist/components/calcite-radio-group-item.js +139 -0
  738. package/dist/components/calcite-radio-group.d.ts +11 -0
  739. package/dist/components/calcite-radio-group.js +233 -0
  740. package/dist/components/calcite-radio.d.ts +11 -0
  741. package/dist/components/calcite-radio.js +10 -0
  742. package/dist/components/calcite-radio2.js +68 -0
  743. package/dist/components/calcite-rating.d.ts +11 -0
  744. package/dist/components/calcite-rating.js +160 -0
  745. package/dist/components/calcite-scrim.d.ts +11 -0
  746. package/dist/components/calcite-scrim.js +10 -0
  747. package/dist/components/calcite-scrim2.js +74 -0
  748. package/dist/components/calcite-select.d.ts +11 -0
  749. package/dist/components/calcite-select.js +221 -0
  750. package/dist/components/calcite-shell-center-row.d.ts +11 -0
  751. package/dist/components/calcite-shell-center-row.js +81 -0
  752. package/dist/components/calcite-shell-panel.d.ts +11 -0
  753. package/dist/components/calcite-shell-panel.js +100 -0
  754. package/dist/components/calcite-shell.d.ts +11 -0
  755. package/dist/components/calcite-shell.js +99 -0
  756. package/dist/components/calcite-slider.d.ts +11 -0
  757. package/dist/components/calcite-slider.js +746 -0
  758. package/dist/components/calcite-sortable-list.d.ts +11 -0
  759. package/dist/components/calcite-sortable-list.js +190 -0
  760. package/dist/components/calcite-split-button.d.ts +11 -0
  761. package/dist/components/calcite-split-button.js +127 -0
  762. package/dist/components/calcite-stepper-item.d.ts +11 -0
  763. package/dist/components/calcite-stepper-item.js +189 -0
  764. package/dist/components/calcite-stepper.d.ts +11 -0
  765. package/dist/components/calcite-stepper.js +247 -0
  766. package/dist/components/calcite-switch.d.ts +11 -0
  767. package/dist/components/calcite-switch.js +10 -0
  768. package/dist/components/calcite-switch2.js +167 -0
  769. package/dist/components/calcite-tab-nav.d.ts +11 -0
  770. package/dist/components/calcite-tab-nav.js +10 -0
  771. package/dist/components/calcite-tab-nav2.js +209 -0
  772. package/dist/components/calcite-tab-title.d.ts +11 -0
  773. package/dist/components/calcite-tab-title.js +10 -0
  774. package/dist/components/calcite-tab-title2.js +230 -0
  775. package/dist/components/calcite-tab.d.ts +11 -0
  776. package/dist/components/calcite-tab.js +10 -0
  777. package/dist/components/calcite-tab2.js +122 -0
  778. package/dist/components/calcite-tabs.d.ts +11 -0
  779. package/dist/components/calcite-tabs.js +10 -0
  780. package/dist/components/calcite-tabs2.js +183 -0
  781. package/dist/components/calcite-tile-select-group.d.ts +11 -0
  782. package/dist/components/calcite-tile-select-group.js +45 -0
  783. package/dist/components/calcite-tile-select.d.ts +11 -0
  784. package/dist/components/calcite-tile-select.js +218 -0
  785. package/dist/components/calcite-tile.d.ts +11 -0
  786. package/dist/components/calcite-tile.js +10 -0
  787. package/dist/components/calcite-tile2.js +98 -0
  788. package/dist/components/calcite-time-picker.d.ts +11 -0
  789. package/dist/components/calcite-time-picker.js +10 -0
  790. package/dist/components/calcite-time-picker2.js +707 -0
  791. package/dist/components/calcite-tip-group.d.ts +11 -0
  792. package/dist/components/calcite-tip-group.js +38 -0
  793. package/dist/components/calcite-tip-manager.d.ts +11 -0
  794. package/dist/components/calcite-tip-manager.js +218 -0
  795. package/dist/components/calcite-tip.d.ts +11 -0
  796. package/dist/components/calcite-tip.js +140 -0
  797. package/dist/components/calcite-tooltip-manager.d.ts +11 -0
  798. package/dist/components/calcite-tooltip-manager.js +10 -0
  799. package/dist/components/calcite-tooltip-manager2.js +168 -0
  800. package/dist/components/calcite-tooltip.d.ts +11 -0
  801. package/dist/components/calcite-tooltip.js +224 -0
  802. package/dist/components/calcite-tree-item.d.ts +11 -0
  803. package/dist/components/calcite-tree-item.js +310 -0
  804. package/dist/components/calcite-tree.d.ts +11 -0
  805. package/dist/components/calcite-tree.js +216 -0
  806. package/dist/components/calcite-value-list-item.d.ts +11 -0
  807. package/dist/components/calcite-value-list-item.js +180 -0
  808. package/dist/components/calcite-value-list.d.ts +11 -0
  809. package/dist/components/calcite-value-list.js +271 -0
  810. package/dist/components/date.js +159 -0
  811. package/dist/components/debounce.js +486 -0
  812. package/dist/components/dom.js +153 -0
  813. package/dist/components/forIn.js +619 -0
  814. package/dist/components/form.js +20 -0
  815. package/dist/components/guid.js +18 -0
  816. package/dist/components/index.d.ts +26 -0
  817. package/dist/components/index.js +5 -0
  818. package/dist/components/interfaces.js +13 -0
  819. package/dist/components/interfaces2.js +14 -0
  820. package/dist/components/key.js +33 -0
  821. package/dist/components/label.js +83 -0
  822. package/dist/components/locale.js +118 -0
  823. package/dist/components/math.js +7 -0
  824. package/dist/components/number.js +40 -0
  825. package/dist/components/observers.js +22 -0
  826. package/dist/components/popper.js +1785 -0
  827. package/dist/components/resources.js +24 -0
  828. package/dist/components/resources2.js +13 -0
  829. package/dist/components/resources3.js +18 -0
  830. package/dist/components/resources4.js +32 -0
  831. package/dist/components/shared-list-render.js +286 -0
  832. package/dist/components/sortable.esm.js +3017 -0
  833. package/dist/components/utils.js +113 -0
  834. package/dist/components/utils2.js +38 -0
  835. package/dist/custom-elements/index.js +5832 -5578
  836. package/dist/esm/CalciteExpandToggle-235a6bfd.js +87 -0
  837. package/dist/esm/CalciteHeading-dea3bd05.js +16 -0
  838. package/dist/esm/array-91a648e2.js +9 -0
  839. package/dist/esm/calcite-accordion_2.entry.js +10 -6
  840. package/dist/esm/calcite-action-bar.entry.js +32 -26
  841. package/dist/esm/calcite-action-group.entry.js +10 -6
  842. package/dist/esm/calcite-action-menu.entry.js +15 -9
  843. package/dist/esm/calcite-action-pad.entry.js +11 -7
  844. package/dist/esm/calcite-action.entry.js +12 -12
  845. package/dist/esm/calcite-alert.entry.js +10 -6
  846. package/dist/esm/calcite-avatar.entry.js +9 -5
  847. package/dist/esm/calcite-block_2.entry.js +38 -31
  848. package/dist/esm/calcite-button.entry.js +63 -40
  849. package/dist/esm/calcite-card.entry.js +10 -6
  850. package/dist/esm/calcite-checkbox.entry.js +28 -35
  851. package/dist/esm/calcite-chip.entry.js +8 -4
  852. package/dist/esm/calcite-color-picker_3.entry.js +27 -20
  853. package/dist/esm/calcite-combobox_3.entry.js +41 -34
  854. package/dist/esm/calcite-date-picker_4.entry.js +19 -15
  855. package/dist/esm/calcite-dropdown_3.entry.js +51 -42
  856. package/dist/esm/calcite-fab.entry.js +8 -4
  857. package/dist/esm/calcite-filter.entry.js +55 -22
  858. package/dist/esm/calcite-flow.entry.js +7 -3
  859. package/dist/esm/calcite-graph_2.entry.js +97 -40
  860. package/dist/esm/calcite-handle.entry.js +6 -2
  861. package/dist/esm/calcite-icon.entry.js +9 -5
  862. package/dist/esm/calcite-inline-editable.entry.js +28 -17
  863. package/dist/esm/calcite-input-date-picker.entry.js +33 -23
  864. package/dist/esm/calcite-input-message.entry.js +8 -4
  865. package/dist/esm/calcite-input-time-picker_2.entry.js +26 -22
  866. package/dist/esm/calcite-input.entry.js +55 -37
  867. package/dist/esm/calcite-label.entry.js +20 -78
  868. package/dist/esm/calcite-link.entry.js +14 -4
  869. package/dist/esm/calcite-list_3.entry.js +33 -8
  870. package/dist/esm/calcite-loader.entry.js +8 -4
  871. package/dist/esm/calcite-modal.entry.js +10 -6
  872. package/dist/esm/calcite-notice.entry.js +10 -6
  873. package/dist/esm/calcite-option_3.entry.js +17 -15
  874. package/dist/esm/calcite-pagination.entry.js +8 -4
  875. package/dist/esm/calcite-panel.entry.js +12 -8
  876. package/dist/esm/calcite-pick-list_3.entry.js +16 -12
  877. package/dist/esm/calcite-popover_2.entry.js +12 -8
  878. package/dist/esm/calcite-progress.entry.js +6 -2
  879. package/dist/esm/calcite-radio-button-group.entry.js +6 -2
  880. package/dist/esm/calcite-radio-group_2.entry.js +27 -25
  881. package/dist/esm/calcite-radio_2.entry.js +57 -30
  882. package/dist/esm/calcite-rating.entry.js +23 -11
  883. package/dist/esm/calcite-scrim.entry.js +6 -2
  884. package/dist/esm/calcite-shell_3.entry.js +10 -6
  885. package/dist/esm/calcite-sortable-list.entry.js +27 -6
  886. package/dist/esm/calcite-split-button.entry.js +8 -4
  887. package/dist/esm/calcite-stepper_2.entry.js +11 -7
  888. package/dist/esm/calcite-switch.entry.js +51 -39
  889. package/dist/esm/calcite-tab_4.entry.js +15 -11
  890. package/dist/esm/calcite-tile-select_2.entry.js +26 -9
  891. package/dist/esm/calcite-tile.entry.js +9 -5
  892. package/dist/esm/calcite-tip_3.entry.js +12 -8
  893. package/dist/esm/calcite-tooltip_2.entry.js +15 -10
  894. package/dist/esm/calcite-tree_2.entry.js +44 -13
  895. package/dist/esm/calcite-value-list_2.entry.js +14 -10
  896. package/dist/esm/calcite.js +7 -3
  897. package/dist/esm/debounce-79648d42.js +486 -0
  898. package/dist/esm/dom-f24e866c.js +153 -0
  899. package/dist/esm/forIn-48d8fb84.js +619 -0
  900. package/dist/esm/form-cee9f632.js +20 -0
  901. package/dist/esm/guid-196bd5ea.js +18 -0
  902. package/dist/esm/index-66803519.js +2042 -0
  903. package/dist/esm/index.js +4 -1
  904. package/dist/esm/interfaces-51dc4e1b.js +13 -0
  905. package/dist/esm/key-69001a68.js +33 -0
  906. package/dist/esm/label-5559055d.js +83 -0
  907. package/dist/esm/loader.js +7 -3
  908. package/dist/esm/locale-6c1b85c7.js +118 -0
  909. package/dist/esm/math-250d4476.js +7 -0
  910. package/dist/esm/number-e7393766.js +40 -0
  911. package/dist/esm/observers-8f0bc419.js +20 -0
  912. package/dist/esm/popper-dc4b45cf.js +1785 -0
  913. package/dist/esm/resources-584acd9b.js +17 -0
  914. package/dist/esm/resources-7c6029b6.js +16 -0
  915. package/dist/esm/resources-8dd80c84.js +325 -0
  916. package/dist/esm/resources-c59a1a15.js +216 -0
  917. package/dist/esm/sortable.esm-04824d33.js +3017 -0
  918. package/dist/esm/utils-6beb0662.js +113 -0
  919. package/dist/esm-es5/CalciteExpandToggle-235a6bfd.js +5 -0
  920. package/dist/esm-es5/CalciteHeading-dea3bd05.js +5 -0
  921. package/dist/esm-es5/array-91a648e2.js +5 -0
  922. package/dist/esm-es5/calcite-accordion_2.entry.js +5 -1
  923. package/dist/esm-es5/calcite-action-bar.entry.js +5 -1
  924. package/dist/esm-es5/calcite-action-group.entry.js +5 -1
  925. package/dist/esm-es5/calcite-action-menu.entry.js +5 -1
  926. package/dist/esm-es5/calcite-action-pad.entry.js +5 -1
  927. package/dist/esm-es5/calcite-action.entry.js +5 -1
  928. package/dist/esm-es5/calcite-alert.entry.js +5 -1
  929. package/dist/esm-es5/calcite-avatar.entry.js +5 -1
  930. package/dist/esm-es5/calcite-block_2.entry.js +5 -1
  931. package/dist/esm-es5/calcite-button.entry.js +5 -1
  932. package/dist/esm-es5/calcite-card.entry.js +5 -1
  933. package/dist/esm-es5/calcite-checkbox.entry.js +5 -1
  934. package/dist/esm-es5/calcite-chip.entry.js +5 -1
  935. package/dist/esm-es5/calcite-color-picker_3.entry.js +5 -1
  936. package/dist/esm-es5/calcite-combobox_3.entry.js +5 -1
  937. package/dist/esm-es5/calcite-date-picker_4.entry.js +5 -1
  938. package/dist/esm-es5/calcite-dropdown_3.entry.js +5 -1
  939. package/dist/esm-es5/calcite-fab.entry.js +5 -1
  940. package/dist/esm-es5/calcite-filter.entry.js +5 -1
  941. package/dist/esm-es5/calcite-flow.entry.js +5 -1
  942. package/dist/esm-es5/calcite-graph_2.entry.js +5 -1
  943. package/dist/esm-es5/calcite-handle.entry.js +5 -1
  944. package/dist/esm-es5/calcite-icon.entry.js +5 -1
  945. package/dist/esm-es5/calcite-inline-editable.entry.js +5 -1
  946. package/dist/esm-es5/calcite-input-date-picker.entry.js +5 -1
  947. package/dist/esm-es5/calcite-input-message.entry.js +5 -1
  948. package/dist/esm-es5/calcite-input-time-picker_2.entry.js +5 -1
  949. package/dist/esm-es5/calcite-input.entry.js +5 -1
  950. package/dist/esm-es5/calcite-label.entry.js +5 -1
  951. package/dist/esm-es5/calcite-link.entry.js +5 -1
  952. package/dist/esm-es5/calcite-list_3.entry.js +5 -1
  953. package/dist/esm-es5/calcite-loader.entry.js +5 -1
  954. package/dist/esm-es5/calcite-modal.entry.js +5 -1
  955. package/dist/esm-es5/calcite-notice.entry.js +5 -1
  956. package/dist/esm-es5/calcite-option_3.entry.js +5 -1
  957. package/dist/esm-es5/calcite-pagination.entry.js +5 -1
  958. package/dist/esm-es5/calcite-panel.entry.js +5 -1
  959. package/dist/esm-es5/calcite-pick-list_3.entry.js +5 -1
  960. package/dist/esm-es5/calcite-popover_2.entry.js +5 -1
  961. package/dist/esm-es5/calcite-progress.entry.js +5 -1
  962. package/dist/esm-es5/calcite-radio-button-group.entry.js +5 -1
  963. package/dist/esm-es5/calcite-radio-group_2.entry.js +5 -1
  964. package/dist/esm-es5/calcite-radio_2.entry.js +5 -1
  965. package/dist/esm-es5/calcite-rating.entry.js +5 -1
  966. package/dist/esm-es5/calcite-scrim.entry.js +5 -1
  967. package/dist/esm-es5/calcite-shell_3.entry.js +5 -1
  968. package/dist/esm-es5/calcite-sortable-list.entry.js +5 -1
  969. package/dist/esm-es5/calcite-split-button.entry.js +5 -1
  970. package/dist/esm-es5/calcite-stepper_2.entry.js +5 -1
  971. package/dist/esm-es5/calcite-switch.entry.js +5 -1
  972. package/dist/esm-es5/calcite-tab_4.entry.js +5 -1
  973. package/dist/esm-es5/calcite-tile-select_2.entry.js +5 -1
  974. package/dist/esm-es5/calcite-tile.entry.js +5 -1
  975. package/dist/esm-es5/calcite-tip_3.entry.js +5 -1
  976. package/dist/esm-es5/calcite-tooltip_2.entry.js +5 -1
  977. package/dist/esm-es5/calcite-tree_2.entry.js +5 -1
  978. package/dist/esm-es5/calcite-value-list_2.entry.js +5 -1
  979. package/dist/esm-es5/calcite.js +5 -1
  980. package/dist/esm-es5/debounce-79648d42.js +5 -0
  981. package/dist/esm-es5/dom-f24e866c.js +5 -0
  982. package/dist/esm-es5/forIn-48d8fb84.js +5 -0
  983. package/dist/esm-es5/form-cee9f632.js +5 -0
  984. package/dist/esm-es5/guid-196bd5ea.js +5 -0
  985. package/dist/esm-es5/index-66803519.js +5 -0
  986. package/dist/esm-es5/index.js +4 -0
  987. package/dist/esm-es5/interfaces-51dc4e1b.js +5 -0
  988. package/dist/esm-es5/key-69001a68.js +5 -0
  989. package/dist/esm-es5/label-5559055d.js +5 -0
  990. package/dist/esm-es5/loader.js +5 -1
  991. package/dist/esm-es5/locale-6c1b85c7.js +5 -0
  992. package/dist/esm-es5/math-250d4476.js +5 -0
  993. package/dist/esm-es5/number-e7393766.js +5 -0
  994. package/dist/esm-es5/observers-8f0bc419.js +5 -0
  995. package/dist/esm-es5/popper-dc4b45cf.js +5 -0
  996. package/dist/esm-es5/resources-584acd9b.js +5 -0
  997. package/dist/esm-es5/resources-7c6029b6.js +5 -0
  998. package/dist/esm-es5/resources-8dd80c84.js +5 -0
  999. package/dist/esm-es5/resources-c59a1a15.js +5 -0
  1000. package/dist/esm-es5/sortable.esm-04824d33.js +11 -0
  1001. package/dist/esm-es5/utils-6beb0662.js +5 -0
  1002. package/dist/extras/docs-json.json +1031 -528
  1003. package/dist/loader/cdn.js +4 -1
  1004. package/dist/loader/index.cjs.js +4 -1
  1005. package/dist/loader/index.d.ts +0 -1
  1006. package/dist/loader/index.es2017.js +4 -1
  1007. package/dist/loader/index.js +4 -1
  1008. package/dist/types/components/calcite-accordion/calcite-accordion.d.ts +3 -0
  1009. package/dist/types/components/calcite-accordion-item/calcite-accordion-item.d.ts +3 -0
  1010. package/dist/types/components/calcite-action/calcite-action.d.ts +3 -3
  1011. package/dist/types/components/calcite-action-bar/calcite-action-bar.d.ts +8 -5
  1012. package/dist/types/components/calcite-action-bar/utils.d.ts +1 -0
  1013. package/dist/types/components/calcite-block/calcite-block.d.ts +1 -1
  1014. package/dist/types/components/calcite-block/resources.d.ts +2 -0
  1015. package/dist/types/components/calcite-block-section/calcite-block-section.d.ts +1 -1
  1016. package/dist/types/components/calcite-button/calcite-button.d.ts +16 -3
  1017. package/dist/types/components/calcite-card/calcite-card.d.ts +1 -1
  1018. package/dist/types/components/calcite-checkbox/calcite-checkbox.d.ts +14 -5
  1019. package/dist/types/components/calcite-chip/calcite-chip.d.ts +2 -1
  1020. package/dist/types/components/calcite-color-picker/calcite-color-picker.d.ts +1 -1
  1021. package/dist/types/components/calcite-combobox/calcite-combobox.d.ts +8 -2
  1022. package/dist/types/components/calcite-combobox-item/calcite-combobox-item.d.ts +3 -0
  1023. package/dist/types/components/calcite-combobox-item-group/calcite-combobox-item-group.d.ts +3 -0
  1024. package/dist/types/components/calcite-dropdown/calcite-dropdown.d.ts +8 -5
  1025. package/dist/types/components/calcite-dropdown-group/calcite-dropdown-group.d.ts +3 -0
  1026. package/dist/types/components/calcite-dropdown-item/calcite-dropdown-item.d.ts +3 -0
  1027. package/dist/types/components/calcite-filter/calcite-filter.d.ts +26 -3
  1028. package/dist/types/components/calcite-graph/calcite-graph.d.ts +4 -0
  1029. package/dist/types/components/calcite-inline-editable/calcite-inline-editable.d.ts +8 -3
  1030. package/dist/types/components/calcite-input/calcite-input.d.ts +11 -2
  1031. package/dist/types/components/calcite-input-date-picker/calcite-input-date-picker.d.ts +6 -1
  1032. package/dist/types/components/calcite-input-message/calcite-input-message.d.ts +3 -0
  1033. package/dist/types/components/calcite-input-time-picker/calcite-input-time-picker.d.ts +6 -5
  1034. package/dist/types/components/calcite-label/calcite-label.d.ts +8 -5
  1035. package/dist/types/components/calcite-label/resources.d.ts +3 -0
  1036. package/dist/types/components/calcite-link/calcite-link.d.ts +3 -2
  1037. package/dist/types/components/calcite-list/calcite-list.d.ts +3 -0
  1038. package/dist/types/components/calcite-list-item/calcite-list-item.d.ts +4 -1
  1039. package/dist/types/components/calcite-modal/calcite-modal.d.ts +2 -2
  1040. package/dist/types/components/calcite-option-group/calcite-option-group.d.ts +3 -0
  1041. package/dist/types/components/calcite-panel/calcite-panel.d.ts +8 -7
  1042. package/dist/types/components/calcite-popover/calcite-popover.d.ts +3 -0
  1043. package/dist/types/components/calcite-radio-button/calcite-radio-button.d.ts +15 -5
  1044. package/dist/types/components/calcite-radio-button-group/calcite-radio-button-group.d.ts +3 -0
  1045. package/dist/types/components/calcite-radio-group/calcite-radio-group.d.ts +9 -3
  1046. package/dist/types/components/calcite-rating/calcite-rating.d.ts +6 -2
  1047. package/dist/types/components/calcite-scrim/calcite-scrim.d.ts +3 -0
  1048. package/dist/types/components/calcite-select/calcite-select.d.ts +8 -4
  1049. package/dist/types/components/calcite-shell/calcite-shell.d.ts +2 -2
  1050. package/dist/types/components/calcite-shell-center-row/calcite-shell-center-row.d.ts +1 -1
  1051. package/dist/types/components/calcite-shell-panel/calcite-shell-panel.d.ts +1 -1
  1052. package/dist/types/components/calcite-slider/calcite-slider.d.ts +29 -3
  1053. package/dist/types/components/calcite-sortable-list/calcite-sortable-list.d.ts +6 -1
  1054. package/dist/types/components/calcite-sortable-list/resources.d.ts +3 -0
  1055. package/dist/types/components/calcite-split-button/calcite-split-button.d.ts +3 -0
  1056. package/dist/types/components/calcite-stepper/calcite-stepper.d.ts +3 -0
  1057. package/dist/types/components/calcite-stepper-item/calcite-stepper-item.d.ts +3 -0
  1058. package/dist/types/components/calcite-switch/calcite-switch.d.ts +17 -6
  1059. package/dist/types/components/calcite-tab/calcite-tab.d.ts +3 -0
  1060. package/dist/types/components/calcite-tab-nav/calcite-tab-nav.d.ts +3 -0
  1061. package/dist/types/components/calcite-tab-title/calcite-tab-title.d.ts +3 -0
  1062. package/dist/types/components/calcite-tabs/calcite-tabs.d.ts +2 -1
  1063. package/dist/types/components/calcite-tile-select/calcite-tile-select.d.ts +13 -5
  1064. package/dist/types/components/calcite-tile-select-group/calcite-tile-select-group.d.ts +3 -0
  1065. package/dist/types/components/calcite-tip/calcite-tip.d.ts +1 -0
  1066. package/dist/types/components/calcite-tip-group/calcite-tip-group.d.ts +3 -0
  1067. package/dist/types/components/calcite-tooltip/calcite-tooltip.d.ts +3 -0
  1068. package/dist/types/components/calcite-tree-item/calcite-tree-item.d.ts +5 -1
  1069. package/dist/types/components/calcite-value-list/calcite-value-list.d.ts +1 -1
  1070. package/dist/types/components/interfaces.d.ts +1 -0
  1071. package/dist/types/components.d.ts +112 -16
  1072. package/dist/types/preact.d.ts +14 -9
  1073. package/dist/types/utils/dom.d.ts +0 -1
  1074. package/dist/types/utils/label.d.ts +35 -0
  1075. package/dist/types/utils/number.d.ts +0 -1
  1076. package/dist/types/utils/popper.d.ts +1 -1
  1077. package/dist/types/utils/resources.d.ts +7 -0
  1078. package/hydrate/index.js +5868 -5517
  1079. package/package.json +45 -46
  1080. package/readme.md +6 -6
  1081. package/dist/calcite/p-02c649a5.system.entry.js +0 -1
  1082. package/dist/calcite/p-02d538d1.entry.js +0 -1
  1083. package/dist/calcite/p-02f6769f.system.entry.js +0 -1
  1084. package/dist/calcite/p-04907920.entry.js +0 -1
  1085. package/dist/calcite/p-0ae16e31.js +0 -1
  1086. package/dist/calcite/p-0bc4ed41.system.entry.js +0 -1
  1087. package/dist/calcite/p-0e292642.system.entry.js +0 -1
  1088. package/dist/calcite/p-0ea81e18.entry.js +0 -1
  1089. package/dist/calcite/p-1020aed8.system.js +0 -1
  1090. package/dist/calcite/p-14928bee.entry.js +0 -1
  1091. package/dist/calcite/p-150bb224.entry.js +0 -1
  1092. package/dist/calcite/p-16b4f190.entry.js +0 -1
  1093. package/dist/calcite/p-18739e78.system.entry.js +0 -1
  1094. package/dist/calcite/p-18a62b5e.js +0 -1
  1095. package/dist/calcite/p-19029579.system.entry.js +0 -1
  1096. package/dist/calcite/p-19ac376f.js +0 -1
  1097. package/dist/calcite/p-1c01cf8d.system.entry.js +0 -1
  1098. package/dist/calcite/p-2189146d.entry.js +0 -1
  1099. package/dist/calcite/p-2321f7fa.system.entry.js +0 -1
  1100. package/dist/calcite/p-263e9c6f.js +0 -1
  1101. package/dist/calcite/p-27c361d6.system.entry.js +0 -1
  1102. package/dist/calcite/p-2a9b4a25.system.js +0 -1
  1103. package/dist/calcite/p-2c235db8.system.js +0 -1
  1104. package/dist/calcite/p-2e7b9eb8.system.js +0 -1
  1105. package/dist/calcite/p-305a19fa.entry.js +0 -1
  1106. package/dist/calcite/p-30c5505a.entry.js +0 -1
  1107. package/dist/calcite/p-3426e87b.system.js +0 -1
  1108. package/dist/calcite/p-34ca7837.entry.js +0 -1
  1109. package/dist/calcite/p-35123e65.system.entry.js +0 -1
  1110. package/dist/calcite/p-354fbadd.js +0 -1
  1111. package/dist/calcite/p-35808614.entry.js +0 -1
  1112. package/dist/calcite/p-366f02bb.system.entry.js +0 -1
  1113. package/dist/calcite/p-379334be.entry.js +0 -1
  1114. package/dist/calcite/p-3aa13327.system.entry.js +0 -1
  1115. package/dist/calcite/p-3bd42f9c.system.entry.js +0 -1
  1116. package/dist/calcite/p-3c9923f1.system.js +0 -1
  1117. package/dist/calcite/p-3ebef7b9.system.entry.js +0 -1
  1118. package/dist/calcite/p-3fbf2d34.system.entry.js +0 -1
  1119. package/dist/calcite/p-42da7fef.entry.js +0 -1
  1120. package/dist/calcite/p-43012e6b.entry.js +0 -1
  1121. package/dist/calcite/p-43a9faca.js +0 -1
  1122. package/dist/calcite/p-447a908d.system.entry.js +0 -1
  1123. package/dist/calcite/p-482ec054.system.js +0 -1
  1124. package/dist/calcite/p-4ae01d80.js +0 -1
  1125. package/dist/calcite/p-4bd1f1b7.system.entry.js +0 -1
  1126. package/dist/calcite/p-4bea77bd.entry.js +0 -1
  1127. package/dist/calcite/p-4f542f6c.system.entry.js +0 -1
  1128. package/dist/calcite/p-4fbdd4ed.system.entry.js +0 -1
  1129. package/dist/calcite/p-4fda49e6.js +0 -1
  1130. package/dist/calcite/p-50ea2036.system.js +0 -1
  1131. package/dist/calcite/p-5147562c.entry.js +0 -1
  1132. package/dist/calcite/p-526c2f38.entry.js +0 -1
  1133. package/dist/calcite/p-531b9a81.system.entry.js +0 -1
  1134. package/dist/calcite/p-53caa311.system.js +0 -1
  1135. package/dist/calcite/p-555f1009.entry.js +0 -1
  1136. package/dist/calcite/p-559ffa87.js +0 -1
  1137. package/dist/calcite/p-571c8d5f.system.entry.js +0 -1
  1138. package/dist/calcite/p-58421494.js +0 -1
  1139. package/dist/calcite/p-585030e9.entry.js +0 -1
  1140. package/dist/calcite/p-58cd3aa4.system.entry.js +0 -1
  1141. package/dist/calcite/p-58d7d786.entry.js +0 -1
  1142. package/dist/calcite/p-5a1b0338.system.js +0 -1
  1143. package/dist/calcite/p-5b3d5565.entry.js +0 -1
  1144. package/dist/calcite/p-5b7ef513.system.js +0 -1
  1145. package/dist/calcite/p-5bf979dd.system.entry.js +0 -1
  1146. package/dist/calcite/p-5c8268a5.system.entry.js +0 -1
  1147. package/dist/calcite/p-5e040210.system.entry.js +0 -1
  1148. package/dist/calcite/p-5eefa496.system.entry.js +0 -1
  1149. package/dist/calcite/p-61ef4e27.entry.js +0 -1
  1150. package/dist/calcite/p-637546fe.system.entry.js +0 -1
  1151. package/dist/calcite/p-66fb0f5c.system.entry.js +0 -1
  1152. package/dist/calcite/p-686d30d5.entry.js +0 -1
  1153. package/dist/calcite/p-6ce45b41.system.entry.js +0 -1
  1154. package/dist/calcite/p-6ded92ba.entry.js +0 -1
  1155. package/dist/calcite/p-6e967236.system.entry.js +0 -1
  1156. package/dist/calcite/p-706789ab.entry.js +0 -1
  1157. package/dist/calcite/p-7084ba72.system.entry.js +0 -1
  1158. package/dist/calcite/p-728c556a.system.entry.js +0 -1
  1159. package/dist/calcite/p-78114ad4.system.js +0 -1
  1160. package/dist/calcite/p-79783728.entry.js +0 -1
  1161. package/dist/calcite/p-7ac27798.entry.js +0 -1
  1162. package/dist/calcite/p-7c4f8734.entry.js +0 -1
  1163. package/dist/calcite/p-7c5b7019.system.entry.js +0 -1
  1164. package/dist/calcite/p-7ccd0a77.entry.js +0 -1
  1165. package/dist/calcite/p-7ec1a0b7.entry.js +0 -1
  1166. package/dist/calcite/p-8123a8de.system.entry.js +0 -1
  1167. package/dist/calcite/p-82a11724.system.js +0 -7
  1168. package/dist/calcite/p-83a36e7e.entry.js +0 -1
  1169. package/dist/calcite/p-86a81245.entry.js +0 -1
  1170. package/dist/calcite/p-8782aa79.entry.js +0 -1
  1171. package/dist/calcite/p-8958d1f6.system.js +0 -1
  1172. package/dist/calcite/p-8a30b93d.system.js +0 -1
  1173. package/dist/calcite/p-8edd2a46.entry.js +0 -1
  1174. package/dist/calcite/p-904e8561.system.entry.js +0 -1
  1175. package/dist/calcite/p-90dd374c.entry.js +0 -1
  1176. package/dist/calcite/p-92d12490.system.entry.js +0 -1
  1177. package/dist/calcite/p-95dfb659.system.js +0 -1
  1178. package/dist/calcite/p-96deb83e.entry.js +0 -1
  1179. package/dist/calcite/p-9705826b.system.entry.js +0 -1
  1180. package/dist/calcite/p-98093b17.system.js +0 -1
  1181. package/dist/calcite/p-992b162e.system.entry.js +0 -1
  1182. package/dist/calcite/p-a0eb3011.system.entry.js +0 -1
  1183. package/dist/calcite/p-a177a64e.system.entry.js +0 -1
  1184. package/dist/calcite/p-a283b1c6.entry.js +0 -1
  1185. package/dist/calcite/p-a30026d4.system.entry.js +0 -1
  1186. package/dist/calcite/p-a480f5f5.entry.js +0 -1
  1187. package/dist/calcite/p-a4e6e35b.js +0 -1
  1188. package/dist/calcite/p-a537ac9c.entry.js +0 -1
  1189. package/dist/calcite/p-a55bf19e.system.entry.js +0 -1
  1190. package/dist/calcite/p-a57a7f49.js +0 -7
  1191. package/dist/calcite/p-a6b26bd1.system.js +0 -1
  1192. package/dist/calcite/p-a7223dde.system.entry.js +0 -1
  1193. package/dist/calcite/p-a7a7301d.system.js +0 -1
  1194. package/dist/calcite/p-a8650c17.system.js +0 -1
  1195. package/dist/calcite/p-a9dc52c5.system.entry.js +0 -1
  1196. package/dist/calcite/p-a9fdf90b.entry.js +0 -1
  1197. package/dist/calcite/p-abde34ef.entry.js +0 -1
  1198. package/dist/calcite/p-ad0d9ffd.system.entry.js +0 -1
  1199. package/dist/calcite/p-ad6cf121.entry.js +0 -1
  1200. package/dist/calcite/p-b0f098a0.system.entry.js +0 -1
  1201. package/dist/calcite/p-b2425e21.js +0 -1
  1202. package/dist/calcite/p-b4f7d8b4.entry.js +0 -1
  1203. package/dist/calcite/p-b86463e6.system.entry.js +0 -1
  1204. package/dist/calcite/p-be34d9a6.js +0 -1
  1205. package/dist/calcite/p-c004bc39.entry.js +0 -1
  1206. package/dist/calcite/p-c280abae.js +0 -1
  1207. package/dist/calcite/p-c33e39c2.system.entry.js +0 -1
  1208. package/dist/calcite/p-c47fe2f9.js +0 -1
  1209. package/dist/calcite/p-c76539cc.system.js +0 -1
  1210. package/dist/calcite/p-c7ea4ec6.system.entry.js +0 -1
  1211. package/dist/calcite/p-caf80cd7.js +0 -1
  1212. package/dist/calcite/p-cc08771d.system.entry.js +0 -1
  1213. package/dist/calcite/p-cda2cefc.system.entry.js +0 -1
  1214. package/dist/calcite/p-cebd4de5.js +0 -1
  1215. package/dist/calcite/p-cf0cbd74.entry.js +0 -1
  1216. package/dist/calcite/p-d06530e0.js +0 -1
  1217. package/dist/calcite/p-d53c2d2e.system.js +0 -1
  1218. package/dist/calcite/p-d7b7568e.entry.js +0 -1
  1219. package/dist/calcite/p-d7cbb59a.system.entry.js +0 -1
  1220. package/dist/calcite/p-d81e8789.system.entry.js +0 -1
  1221. package/dist/calcite/p-d858b7ab.js +0 -1
  1222. package/dist/calcite/p-dbed3773.system.entry.js +0 -1
  1223. package/dist/calcite/p-dda58d1e.system.js +0 -1
  1224. package/dist/calcite/p-de09a642.entry.js +0 -1
  1225. package/dist/calcite/p-dea887e3.entry.js +0 -1
  1226. package/dist/calcite/p-defdc464.system.js +0 -1
  1227. package/dist/calcite/p-dfb998cc.js +0 -1
  1228. package/dist/calcite/p-e14d8072.entry.js +0 -1
  1229. package/dist/calcite/p-e55e3009.system.entry.js +0 -1
  1230. package/dist/calcite/p-ea51eaaa.js +0 -1
  1231. package/dist/calcite/p-eaf3e528.entry.js +0 -1
  1232. package/dist/calcite/p-ec7b5fc8.entry.js +0 -1
  1233. package/dist/calcite/p-ed1489e0.entry.js +0 -1
  1234. package/dist/calcite/p-eec0ed2d.entry.js +0 -1
  1235. package/dist/calcite/p-ef5258e2.entry.js +0 -1
  1236. package/dist/calcite/p-f2ac9b97.entry.js +0 -1
  1237. package/dist/calcite/p-f435f61e.entry.js +0 -1
  1238. package/dist/calcite/p-f83a9cac.system.entry.js +0 -1
  1239. package/dist/calcite/p-f9775a9d.entry.js +0 -1
  1240. package/dist/calcite/p-fd59e605.system.entry.js +0 -1
  1241. package/dist/cjs/CalciteExpandToggle-71691d9c.js +0 -88
  1242. package/dist/cjs/CalciteHeading-cf7944a6.js +0 -15
  1243. package/dist/cjs/array-4fc5abfa.js +0 -7
  1244. package/dist/cjs/debounce-11980960.js +0 -491
  1245. package/dist/cjs/dom-57231db9.js +0 -167
  1246. package/dist/cjs/forIn-46535ded.js +0 -618
  1247. package/dist/cjs/form-432ae178.js +0 -18
  1248. package/dist/cjs/guid-4637ad8f.js +0 -16
  1249. package/dist/cjs/index-98b8a879.js +0 -2055
  1250. package/dist/cjs/interfaces-bc0f5779.js +0 -9
  1251. package/dist/cjs/key-f470de4c.js +0 -33
  1252. package/dist/cjs/locale-eb4486ae.js +0 -119
  1253. package/dist/cjs/math-750406eb.js +0 -5
  1254. package/dist/cjs/number-77308374.js +0 -45
  1255. package/dist/cjs/observers-88b3a2d4.js +0 -18
  1256. package/dist/cjs/popper-501d0df7.js +0 -1786
  1257. package/dist/cjs/resources-3c13555a.js +0 -228
  1258. package/dist/cjs/resources-76637167.js +0 -17
  1259. package/dist/cjs/resources-ae299e51.js +0 -16
  1260. package/dist/cjs/resources-ca69ec04.js +0 -342
  1261. package/dist/cjs/sortable.esm-bcce1d94.js +0 -3015
  1262. package/dist/cjs/utils-d549a0a9.js +0 -119
  1263. package/dist/collection/components/calcite-label/interfaces.js +0 -1
  1264. package/dist/custom-elements/bundles/accordion.d.ts +0 -1
  1265. package/dist/custom-elements/bundles/accordion.js +0 -5
  1266. package/dist/custom-elements/bundles/action-bar.d.ts +0 -1
  1267. package/dist/custom-elements/bundles/action-bar.js +0 -5
  1268. package/dist/custom-elements/bundles/action-menu.d.ts +0 -1
  1269. package/dist/custom-elements/bundles/action-menu.js +0 -5
  1270. package/dist/custom-elements/bundles/action-pad.d.ts +0 -1
  1271. package/dist/custom-elements/bundles/action-pad.js +0 -5
  1272. package/dist/custom-elements/bundles/action.d.ts +0 -1
  1273. package/dist/custom-elements/bundles/action.js +0 -5
  1274. package/dist/custom-elements/bundles/alert.d.ts +0 -1
  1275. package/dist/custom-elements/bundles/alert.js +0 -5
  1276. package/dist/custom-elements/bundles/avatar.d.ts +0 -1
  1277. package/dist/custom-elements/bundles/avatar.js +0 -5
  1278. package/dist/custom-elements/bundles/block.d.ts +0 -1
  1279. package/dist/custom-elements/bundles/block.js +0 -5
  1280. package/dist/custom-elements/bundles/button.d.ts +0 -1
  1281. package/dist/custom-elements/bundles/button.js +0 -5
  1282. package/dist/custom-elements/bundles/card.d.ts +0 -1
  1283. package/dist/custom-elements/bundles/card.js +0 -5
  1284. package/dist/custom-elements/bundles/checkbox.d.ts +0 -1
  1285. package/dist/custom-elements/bundles/checkbox.js +0 -5
  1286. package/dist/custom-elements/bundles/chip.d.ts +0 -1
  1287. package/dist/custom-elements/bundles/chip.js +0 -5
  1288. package/dist/custom-elements/bundles/color-picker.d.ts +0 -1
  1289. package/dist/custom-elements/bundles/color-picker.js +0 -5
  1290. package/dist/custom-elements/bundles/combobox.d.ts +0 -1
  1291. package/dist/custom-elements/bundles/combobox.js +0 -5
  1292. package/dist/custom-elements/bundles/date-picker.d.ts +0 -1
  1293. package/dist/custom-elements/bundles/date-picker.js +0 -5
  1294. package/dist/custom-elements/bundles/dropdown.d.ts +0 -1
  1295. package/dist/custom-elements/bundles/dropdown.js +0 -5
  1296. package/dist/custom-elements/bundles/fab.d.ts +0 -1
  1297. package/dist/custom-elements/bundles/fab.js +0 -5
  1298. package/dist/custom-elements/bundles/flow.d.ts +0 -1
  1299. package/dist/custom-elements/bundles/flow.js +0 -5
  1300. package/dist/custom-elements/bundles/icon.d.ts +0 -1
  1301. package/dist/custom-elements/bundles/icon.js +0 -5
  1302. package/dist/custom-elements/bundles/inline-editable.d.ts +0 -1
  1303. package/dist/custom-elements/bundles/inline-editable.js +0 -5
  1304. package/dist/custom-elements/bundles/input-date-picker.d.ts +0 -1
  1305. package/dist/custom-elements/bundles/input-date-picker.js +0 -5
  1306. package/dist/custom-elements/bundles/input-message.d.ts +0 -1
  1307. package/dist/custom-elements/bundles/input-message.js +0 -5
  1308. package/dist/custom-elements/bundles/input-time-picker.d.ts +0 -1
  1309. package/dist/custom-elements/bundles/input-time-picker.js +0 -5
  1310. package/dist/custom-elements/bundles/input.d.ts +0 -1
  1311. package/dist/custom-elements/bundles/input.js +0 -5
  1312. package/dist/custom-elements/bundles/label.d.ts +0 -1
  1313. package/dist/custom-elements/bundles/label.js +0 -5
  1314. package/dist/custom-elements/bundles/link.d.ts +0 -1
  1315. package/dist/custom-elements/bundles/link.js +0 -5
  1316. package/dist/custom-elements/bundles/list.d.ts +0 -1
  1317. package/dist/custom-elements/bundles/list.js +0 -5
  1318. package/dist/custom-elements/bundles/loader.d.ts +0 -1
  1319. package/dist/custom-elements/bundles/loader.js +0 -5
  1320. package/dist/custom-elements/bundles/modal.d.ts +0 -1
  1321. package/dist/custom-elements/bundles/modal.js +0 -5
  1322. package/dist/custom-elements/bundles/notice.d.ts +0 -1
  1323. package/dist/custom-elements/bundles/notice.js +0 -5
  1324. package/dist/custom-elements/bundles/pagination.d.ts +0 -1
  1325. package/dist/custom-elements/bundles/pagination.js +0 -5
  1326. package/dist/custom-elements/bundles/panel.d.ts +0 -1
  1327. package/dist/custom-elements/bundles/panel.js +0 -5
  1328. package/dist/custom-elements/bundles/pick-list.d.ts +0 -1
  1329. package/dist/custom-elements/bundles/pick-list.js +0 -5
  1330. package/dist/custom-elements/bundles/popover.d.ts +0 -1
  1331. package/dist/custom-elements/bundles/popover.js +0 -5
  1332. package/dist/custom-elements/bundles/progress.d.ts +0 -1
  1333. package/dist/custom-elements/bundles/progress.js +0 -5
  1334. package/dist/custom-elements/bundles/radio-button-group.d.ts +0 -1
  1335. package/dist/custom-elements/bundles/radio-button-group.js +0 -5
  1336. package/dist/custom-elements/bundles/radio-button.d.ts +0 -1
  1337. package/dist/custom-elements/bundles/radio-button.js +0 -5
  1338. package/dist/custom-elements/bundles/radio-group.d.ts +0 -1
  1339. package/dist/custom-elements/bundles/radio-group.js +0 -5
  1340. package/dist/custom-elements/bundles/rating.d.ts +0 -1
  1341. package/dist/custom-elements/bundles/rating.js +0 -5
  1342. package/dist/custom-elements/bundles/scrim.d.ts +0 -1
  1343. package/dist/custom-elements/bundles/scrim.js +0 -5
  1344. package/dist/custom-elements/bundles/select.d.ts +0 -1
  1345. package/dist/custom-elements/bundles/select.js +0 -5
  1346. package/dist/custom-elements/bundles/shell.d.ts +0 -1
  1347. package/dist/custom-elements/bundles/shell.js +0 -5
  1348. package/dist/custom-elements/bundles/slider.d.ts +0 -1
  1349. package/dist/custom-elements/bundles/slider.js +0 -5
  1350. package/dist/custom-elements/bundles/sortable-list.d.ts +0 -1
  1351. package/dist/custom-elements/bundles/sortable-list.js +0 -5
  1352. package/dist/custom-elements/bundles/split-button.d.ts +0 -1
  1353. package/dist/custom-elements/bundles/split-button.js +0 -5
  1354. package/dist/custom-elements/bundles/stepper.d.ts +0 -1
  1355. package/dist/custom-elements/bundles/stepper.js +0 -5
  1356. package/dist/custom-elements/bundles/switch.d.ts +0 -1
  1357. package/dist/custom-elements/bundles/switch.js +0 -5
  1358. package/dist/custom-elements/bundles/tab.d.ts +0 -1
  1359. package/dist/custom-elements/bundles/tab.js +0 -5
  1360. package/dist/custom-elements/bundles/tile-select-group.d.ts +0 -1
  1361. package/dist/custom-elements/bundles/tile-select-group.js +0 -5
  1362. package/dist/custom-elements/bundles/tile.d.ts +0 -1
  1363. package/dist/custom-elements/bundles/tile.js +0 -5
  1364. package/dist/custom-elements/bundles/tip.d.ts +0 -1
  1365. package/dist/custom-elements/bundles/tip.js +0 -5
  1366. package/dist/custom-elements/bundles/tooltip.d.ts +0 -1
  1367. package/dist/custom-elements/bundles/tooltip.js +0 -5
  1368. package/dist/custom-elements/bundles/tree.d.ts +0 -1
  1369. package/dist/custom-elements/bundles/tree.js +0 -5
  1370. package/dist/custom-elements/bundles/value-list.d.ts +0 -1
  1371. package/dist/custom-elements/bundles/value-list.js +0 -5
  1372. package/dist/custom-elements/index.mjs +0 -24380
  1373. package/dist/custom-elements/utils.d.ts +0 -2
  1374. package/dist/custom-elements/utils.js +0 -11
  1375. package/dist/esm/CalciteExpandToggle-6c6992af.js +0 -82
  1376. package/dist/esm/CalciteHeading-ea5ec96c.js +0 -12
  1377. package/dist/esm/array-af19adb2.js +0 -5
  1378. package/dist/esm/debounce-047e09f4.js +0 -482
  1379. package/dist/esm/dom-0b02c0cf.js +0 -149
  1380. package/dist/esm/forIn-d55260fc.js +0 -615
  1381. package/dist/esm/form-8aa0d95b.js +0 -16
  1382. package/dist/esm/guid-09142681.js +0 -14
  1383. package/dist/esm/index-1554a132.js +0 -2022
  1384. package/dist/esm/interfaces-355fccb6.js +0 -9
  1385. package/dist/esm/key-ec82f942.js +0 -29
  1386. package/dist/esm/locale-8436bbe1.js +0 -114
  1387. package/dist/esm/math-c8e7aa13.js +0 -3
  1388. package/dist/esm/number-358ca1d4.js +0 -39
  1389. package/dist/esm/observers-c93d4fe5.js +0 -16
  1390. package/dist/esm/popper-ac27099f.js +0 -1781
  1391. package/dist/esm/resources-037b842c.js +0 -321
  1392. package/dist/esm/resources-82817f70.js +0 -13
  1393. package/dist/esm/resources-a7a29b39.js +0 -212
  1394. package/dist/esm/resources-c72ebfea.js +0 -12
  1395. package/dist/esm/sortable.esm-2f5354d3.js +0 -3013
  1396. package/dist/esm/utils-60acc1d6.js +0 -109
  1397. package/dist/esm-es5/CalciteExpandToggle-6c6992af.js +0 -1
  1398. package/dist/esm-es5/CalciteHeading-ea5ec96c.js +0 -1
  1399. package/dist/esm-es5/array-af19adb2.js +0 -1
  1400. package/dist/esm-es5/debounce-047e09f4.js +0 -1
  1401. package/dist/esm-es5/dom-0b02c0cf.js +0 -1
  1402. package/dist/esm-es5/forIn-d55260fc.js +0 -1
  1403. package/dist/esm-es5/form-8aa0d95b.js +0 -1
  1404. package/dist/esm-es5/guid-09142681.js +0 -1
  1405. package/dist/esm-es5/index-1554a132.js +0 -1
  1406. package/dist/esm-es5/interfaces-355fccb6.js +0 -1
  1407. package/dist/esm-es5/key-ec82f942.js +0 -1
  1408. package/dist/esm-es5/locale-8436bbe1.js +0 -1
  1409. package/dist/esm-es5/math-c8e7aa13.js +0 -1
  1410. package/dist/esm-es5/number-358ca1d4.js +0 -1
  1411. package/dist/esm-es5/observers-c93d4fe5.js +0 -1
  1412. package/dist/esm-es5/popper-ac27099f.js +0 -1
  1413. package/dist/esm-es5/resources-037b842c.js +0 -1
  1414. package/dist/esm-es5/resources-82817f70.js +0 -1
  1415. package/dist/esm-es5/resources-a7a29b39.js +0 -1
  1416. package/dist/esm-es5/resources-c72ebfea.js +0 -1
  1417. package/dist/esm-es5/sortable.esm-2f5354d3.js +0 -7
  1418. package/dist/esm-es5/utils-60acc1d6.js +0 -1
  1419. package/dist/types/components/calcite-label/interfaces.d.ts +0 -5
@@ -0,0 +1,1790 @@
1
+ /*!
2
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
+ */
5
+ 'use strict';
6
+
7
+ const dom = require('./dom-19822169.js');
8
+
9
+ var top = 'top';
10
+ var bottom = 'bottom';
11
+ var right = 'right';
12
+ var left = 'left';
13
+ var auto = 'auto';
14
+ var basePlacements = [top, bottom, right, left];
15
+ var start = 'start';
16
+ var end = 'end';
17
+ var clippingParents = 'clippingParents';
18
+ var viewport = 'viewport';
19
+ var popper = 'popper';
20
+ var reference = 'reference';
21
+ var variationPlacements = /*#__PURE__*/basePlacements.reduce(function (acc, placement) {
22
+ return acc.concat([placement + "-" + start, placement + "-" + end]);
23
+ }, []);
24
+ var placements = /*#__PURE__*/[].concat(basePlacements, [auto]).reduce(function (acc, placement) {
25
+ return acc.concat([placement, placement + "-" + start, placement + "-" + end]);
26
+ }, []); // modifiers that need to read the DOM
27
+
28
+ var beforeRead = 'beforeRead';
29
+ var read = 'read';
30
+ var afterRead = 'afterRead'; // pure-logic modifiers
31
+
32
+ var beforeMain = 'beforeMain';
33
+ var main = 'main';
34
+ var afterMain = 'afterMain'; // modifier with the purpose to write to the DOM (or write into a framework state)
35
+
36
+ var beforeWrite = 'beforeWrite';
37
+ var write = 'write';
38
+ var afterWrite = 'afterWrite';
39
+ var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];
40
+
41
+ function getNodeName(element) {
42
+ return element ? (element.nodeName || '').toLowerCase() : null;
43
+ }
44
+
45
+ function getWindow(node) {
46
+ if (node == null) {
47
+ return window;
48
+ }
49
+
50
+ if (node.toString() !== '[object Window]') {
51
+ var ownerDocument = node.ownerDocument;
52
+ return ownerDocument ? ownerDocument.defaultView || window : window;
53
+ }
54
+
55
+ return node;
56
+ }
57
+
58
+ function isElement(node) {
59
+ var OwnElement = getWindow(node).Element;
60
+ return node instanceof OwnElement || node instanceof Element;
61
+ }
62
+
63
+ function isHTMLElement(node) {
64
+ var OwnElement = getWindow(node).HTMLElement;
65
+ return node instanceof OwnElement || node instanceof HTMLElement;
66
+ }
67
+
68
+ function isShadowRoot(node) {
69
+ // IE 11 has no ShadowRoot
70
+ if (typeof ShadowRoot === 'undefined') {
71
+ return false;
72
+ }
73
+
74
+ var OwnElement = getWindow(node).ShadowRoot;
75
+ return node instanceof OwnElement || node instanceof ShadowRoot;
76
+ }
77
+
78
+ // and applies them to the HTMLElements such as popper and arrow
79
+
80
+ function applyStyles(_ref) {
81
+ var state = _ref.state;
82
+ Object.keys(state.elements).forEach(function (name) {
83
+ var style = state.styles[name] || {};
84
+ var attributes = state.attributes[name] || {};
85
+ var element = state.elements[name]; // arrow is optional + virtual elements
86
+
87
+ if (!isHTMLElement(element) || !getNodeName(element)) {
88
+ return;
89
+ } // Flow doesn't support to extend this property, but it's the most
90
+ // effective way to apply styles to an HTMLElement
91
+ // $FlowFixMe[cannot-write]
92
+
93
+
94
+ Object.assign(element.style, style);
95
+ Object.keys(attributes).forEach(function (name) {
96
+ var value = attributes[name];
97
+
98
+ if (value === false) {
99
+ element.removeAttribute(name);
100
+ } else {
101
+ element.setAttribute(name, value === true ? '' : value);
102
+ }
103
+ });
104
+ });
105
+ }
106
+
107
+ function effect$2(_ref2) {
108
+ var state = _ref2.state;
109
+ var initialStyles = {
110
+ popper: {
111
+ position: state.options.strategy,
112
+ left: '0',
113
+ top: '0',
114
+ margin: '0'
115
+ },
116
+ arrow: {
117
+ position: 'absolute'
118
+ },
119
+ reference: {}
120
+ };
121
+ Object.assign(state.elements.popper.style, initialStyles.popper);
122
+ state.styles = initialStyles;
123
+
124
+ if (state.elements.arrow) {
125
+ Object.assign(state.elements.arrow.style, initialStyles.arrow);
126
+ }
127
+
128
+ return function () {
129
+ Object.keys(state.elements).forEach(function (name) {
130
+ var element = state.elements[name];
131
+ var attributes = state.attributes[name] || {};
132
+ var styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]); // Set all values to an empty string to unset them
133
+
134
+ var style = styleProperties.reduce(function (style, property) {
135
+ style[property] = '';
136
+ return style;
137
+ }, {}); // arrow is optional + virtual elements
138
+
139
+ if (!isHTMLElement(element) || !getNodeName(element)) {
140
+ return;
141
+ }
142
+
143
+ Object.assign(element.style, style);
144
+ Object.keys(attributes).forEach(function (attribute) {
145
+ element.removeAttribute(attribute);
146
+ });
147
+ });
148
+ };
149
+ } // eslint-disable-next-line import/no-unused-modules
150
+
151
+
152
+ const applyStyles$1 = {
153
+ name: 'applyStyles',
154
+ enabled: true,
155
+ phase: 'write',
156
+ fn: applyStyles,
157
+ effect: effect$2,
158
+ requires: ['computeStyles']
159
+ };
160
+
161
+ function getBasePlacement(placement) {
162
+ return placement.split('-')[0];
163
+ }
164
+
165
+ // import { isHTMLElement } from './instanceOf';
166
+ function getBoundingClientRect(element, // eslint-disable-next-line unused-imports/no-unused-vars
167
+ includeScale) {
168
+
169
+ var rect = element.getBoundingClientRect();
170
+ var scaleX = 1;
171
+ var scaleY = 1; // FIXME:
172
+ // `offsetWidth` returns an integer while `getBoundingClientRect`
173
+ // returns a float. This results in `scaleX` or `scaleY` being
174
+ // non-1 when it should be for elements that aren't a full pixel in
175
+ // width or height.
176
+ // if (isHTMLElement(element) && includeScale) {
177
+ // const offsetHeight = element.offsetHeight;
178
+ // const offsetWidth = element.offsetWidth;
179
+ // // Do not attempt to divide by 0, otherwise we get `Infinity` as scale
180
+ // // Fallback to 1 in case both values are `0`
181
+ // if (offsetWidth > 0) {
182
+ // scaleX = rect.width / offsetWidth || 1;
183
+ // }
184
+ // if (offsetHeight > 0) {
185
+ // scaleY = rect.height / offsetHeight || 1;
186
+ // }
187
+ // }
188
+
189
+ return {
190
+ width: rect.width / scaleX,
191
+ height: rect.height / scaleY,
192
+ top: rect.top / scaleY,
193
+ right: rect.right / scaleX,
194
+ bottom: rect.bottom / scaleY,
195
+ left: rect.left / scaleX,
196
+ x: rect.left / scaleX,
197
+ y: rect.top / scaleY
198
+ };
199
+ }
200
+
201
+ // means it doesn't take into account transforms.
202
+
203
+ function getLayoutRect(element) {
204
+ var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.
205
+ // Fixes https://github.com/popperjs/popper-core/issues/1223
206
+
207
+ var width = element.offsetWidth;
208
+ var height = element.offsetHeight;
209
+
210
+ if (Math.abs(clientRect.width - width) <= 1) {
211
+ width = clientRect.width;
212
+ }
213
+
214
+ if (Math.abs(clientRect.height - height) <= 1) {
215
+ height = clientRect.height;
216
+ }
217
+
218
+ return {
219
+ x: element.offsetLeft,
220
+ y: element.offsetTop,
221
+ width: width,
222
+ height: height
223
+ };
224
+ }
225
+
226
+ function contains(parent, child) {
227
+ var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method
228
+
229
+ if (parent.contains(child)) {
230
+ return true;
231
+ } // then fallback to custom implementation with Shadow DOM support
232
+ else if (rootNode && isShadowRoot(rootNode)) {
233
+ var next = child;
234
+
235
+ do {
236
+ if (next && parent.isSameNode(next)) {
237
+ return true;
238
+ } // $FlowFixMe[prop-missing]: need a better way to handle this...
239
+
240
+
241
+ next = next.parentNode || next.host;
242
+ } while (next);
243
+ } // Give up, the result is false
244
+
245
+
246
+ return false;
247
+ }
248
+
249
+ function getComputedStyle(element) {
250
+ return getWindow(element).getComputedStyle(element);
251
+ }
252
+
253
+ function isTableElement(element) {
254
+ return ['table', 'td', 'th'].indexOf(getNodeName(element)) >= 0;
255
+ }
256
+
257
+ function getDocumentElement(element) {
258
+ // $FlowFixMe[incompatible-return]: assume body is always available
259
+ return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]
260
+ element.document) || window.document).documentElement;
261
+ }
262
+
263
+ function getParentNode(element) {
264
+ if (getNodeName(element) === 'html') {
265
+ return element;
266
+ }
267
+
268
+ return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle
269
+ // $FlowFixMe[incompatible-return]
270
+ // $FlowFixMe[prop-missing]
271
+ element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
272
+ element.parentNode || ( // DOM Element detected
273
+ isShadowRoot(element) ? element.host : null) || // ShadowRoot detected
274
+ // $FlowFixMe[incompatible-call]: HTMLElement is a Node
275
+ getDocumentElement(element) // fallback
276
+
277
+ );
278
+ }
279
+
280
+ function getTrueOffsetParent(element) {
281
+ if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837
282
+ getComputedStyle(element).position === 'fixed') {
283
+ return null;
284
+ }
285
+
286
+ return element.offsetParent;
287
+ } // `.offsetParent` reports `null` for fixed elements, while absolute elements
288
+ // return the containing block
289
+
290
+
291
+ function getContainingBlock(element) {
292
+ var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;
293
+ var isIE = navigator.userAgent.indexOf('Trident') !== -1;
294
+
295
+ if (isIE && isHTMLElement(element)) {
296
+ // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport
297
+ var elementCss = getComputedStyle(element);
298
+
299
+ if (elementCss.position === 'fixed') {
300
+ return null;
301
+ }
302
+ }
303
+
304
+ var currentNode = getParentNode(element);
305
+
306
+ while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
307
+ var css = getComputedStyle(currentNode); // This is non-exhaustive but covers the most common CSS properties that
308
+ // create a containing block.
309
+ // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
310
+
311
+ if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {
312
+ return currentNode;
313
+ } else {
314
+ currentNode = currentNode.parentNode;
315
+ }
316
+ }
317
+
318
+ return null;
319
+ } // Gets the closest ancestor positioned element. Handles some edge cases,
320
+ // such as table ancestors and cross browser bugs.
321
+
322
+
323
+ function getOffsetParent(element) {
324
+ var window = getWindow(element);
325
+ var offsetParent = getTrueOffsetParent(element);
326
+
327
+ while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === 'static') {
328
+ offsetParent = getTrueOffsetParent(offsetParent);
329
+ }
330
+
331
+ if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle(offsetParent).position === 'static')) {
332
+ return window;
333
+ }
334
+
335
+ return offsetParent || getContainingBlock(element) || window;
336
+ }
337
+
338
+ function getMainAxisFromPlacement(placement) {
339
+ return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
340
+ }
341
+
342
+ var max = Math.max;
343
+ var min = Math.min;
344
+ var round = Math.round;
345
+
346
+ function within(min$1, value, max$1) {
347
+ return max(min$1, min(value, max$1));
348
+ }
349
+
350
+ function getFreshSideObject() {
351
+ return {
352
+ top: 0,
353
+ right: 0,
354
+ bottom: 0,
355
+ left: 0
356
+ };
357
+ }
358
+
359
+ function mergePaddingObject(paddingObject) {
360
+ return Object.assign({}, getFreshSideObject(), paddingObject);
361
+ }
362
+
363
+ function expandToHashMap(value, keys) {
364
+ return keys.reduce(function (hashMap, key) {
365
+ hashMap[key] = value;
366
+ return hashMap;
367
+ }, {});
368
+ }
369
+
370
+ var toPaddingObject = function toPaddingObject(padding, state) {
371
+ padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {
372
+ placement: state.placement
373
+ })) : padding;
374
+ return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
375
+ };
376
+
377
+ function arrow(_ref) {
378
+ var _state$modifiersData$;
379
+
380
+ var state = _ref.state,
381
+ name = _ref.name,
382
+ options = _ref.options;
383
+ var arrowElement = state.elements.arrow;
384
+ var popperOffsets = state.modifiersData.popperOffsets;
385
+ var basePlacement = getBasePlacement(state.placement);
386
+ var axis = getMainAxisFromPlacement(basePlacement);
387
+ var isVertical = [left, right].indexOf(basePlacement) >= 0;
388
+ var len = isVertical ? 'height' : 'width';
389
+
390
+ if (!arrowElement || !popperOffsets) {
391
+ return;
392
+ }
393
+
394
+ var paddingObject = toPaddingObject(options.padding, state);
395
+ var arrowRect = getLayoutRect(arrowElement);
396
+ var minProp = axis === 'y' ? top : left;
397
+ var maxProp = axis === 'y' ? bottom : right;
398
+ var endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets[axis] - state.rects.popper[len];
399
+ var startDiff = popperOffsets[axis] - state.rects.reference[axis];
400
+ var arrowOffsetParent = getOffsetParent(arrowElement);
401
+ var clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;
402
+ var centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the popper if the center point is
403
+ // outside of the popper bounds
404
+
405
+ var min = paddingObject[minProp];
406
+ var max = clientSize - arrowRect[len] - paddingObject[maxProp];
407
+ var center = clientSize / 2 - arrowRect[len] / 2 + centerToReference;
408
+ var offset = within(min, center, max); // Prevents breaking syntax highlighting...
409
+
410
+ var axisProp = axis;
411
+ state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);
412
+ }
413
+
414
+ function effect$1(_ref2) {
415
+ var state = _ref2.state,
416
+ options = _ref2.options;
417
+ var _options$element = options.element,
418
+ arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;
419
+
420
+ if (arrowElement == null) {
421
+ return;
422
+ } // CSS selector
423
+
424
+
425
+ if (typeof arrowElement === 'string') {
426
+ arrowElement = state.elements.popper.querySelector(arrowElement);
427
+
428
+ if (!arrowElement) {
429
+ return;
430
+ }
431
+ }
432
+
433
+ if (!contains(state.elements.popper, arrowElement)) {
434
+
435
+ return;
436
+ }
437
+
438
+ state.elements.arrow = arrowElement;
439
+ } // eslint-disable-next-line import/no-unused-modules
440
+
441
+
442
+ const arrow$1 = {
443
+ name: 'arrow',
444
+ enabled: true,
445
+ phase: 'main',
446
+ fn: arrow,
447
+ effect: effect$1,
448
+ requires: ['popperOffsets'],
449
+ requiresIfExists: ['preventOverflow']
450
+ };
451
+
452
+ function getVariation(placement) {
453
+ return placement.split('-')[1];
454
+ }
455
+
456
+ var unsetSides = {
457
+ top: 'auto',
458
+ right: 'auto',
459
+ bottom: 'auto',
460
+ left: 'auto'
461
+ }; // Round the offsets to the nearest suitable subpixel based on the DPR.
462
+ // Zooming can change the DPR, but it seems to report a value that will
463
+ // cleanly divide the values into the appropriate subpixels.
464
+
465
+ function roundOffsetsByDPR(_ref) {
466
+ var x = _ref.x,
467
+ y = _ref.y;
468
+ var win = window;
469
+ var dpr = win.devicePixelRatio || 1;
470
+ return {
471
+ x: round(round(x * dpr) / dpr) || 0,
472
+ y: round(round(y * dpr) / dpr) || 0
473
+ };
474
+ }
475
+
476
+ function mapToStyles(_ref2) {
477
+ var _Object$assign2;
478
+
479
+ var popper = _ref2.popper,
480
+ popperRect = _ref2.popperRect,
481
+ placement = _ref2.placement,
482
+ variation = _ref2.variation,
483
+ offsets = _ref2.offsets,
484
+ position = _ref2.position,
485
+ gpuAcceleration = _ref2.gpuAcceleration,
486
+ adaptive = _ref2.adaptive,
487
+ roundOffsets = _ref2.roundOffsets;
488
+
489
+ var _ref3 = roundOffsets === true ? roundOffsetsByDPR(offsets) : typeof roundOffsets === 'function' ? roundOffsets(offsets) : offsets,
490
+ _ref3$x = _ref3.x,
491
+ x = _ref3$x === void 0 ? 0 : _ref3$x,
492
+ _ref3$y = _ref3.y,
493
+ y = _ref3$y === void 0 ? 0 : _ref3$y;
494
+
495
+ var hasX = offsets.hasOwnProperty('x');
496
+ var hasY = offsets.hasOwnProperty('y');
497
+ var sideX = left;
498
+ var sideY = top;
499
+ var win = window;
500
+
501
+ if (adaptive) {
502
+ var offsetParent = getOffsetParent(popper);
503
+ var heightProp = 'clientHeight';
504
+ var widthProp = 'clientWidth';
505
+
506
+ if (offsetParent === getWindow(popper)) {
507
+ offsetParent = getDocumentElement(popper);
508
+
509
+ if (getComputedStyle(offsetParent).position !== 'static' && position === 'absolute') {
510
+ heightProp = 'scrollHeight';
511
+ widthProp = 'scrollWidth';
512
+ }
513
+ } // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
514
+
515
+
516
+ offsetParent = offsetParent;
517
+
518
+ if (placement === top || (placement === left || placement === right) && variation === end) {
519
+ sideY = bottom; // $FlowFixMe[prop-missing]
520
+
521
+ y -= offsetParent[heightProp] - popperRect.height;
522
+ y *= gpuAcceleration ? 1 : -1;
523
+ }
524
+
525
+ if (placement === left || (placement === top || placement === bottom) && variation === end) {
526
+ sideX = right; // $FlowFixMe[prop-missing]
527
+
528
+ x -= offsetParent[widthProp] - popperRect.width;
529
+ x *= gpuAcceleration ? 1 : -1;
530
+ }
531
+ }
532
+
533
+ var commonStyles = Object.assign({
534
+ position: position
535
+ }, adaptive && unsetSides);
536
+
537
+ if (gpuAcceleration) {
538
+ var _Object$assign;
539
+
540
+ return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
541
+ }
542
+
543
+ return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
544
+ }
545
+
546
+ function computeStyles(_ref4) {
547
+ var state = _ref4.state,
548
+ options = _ref4.options;
549
+ var _options$gpuAccelerat = options.gpuAcceleration,
550
+ gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
551
+ _options$adaptive = options.adaptive,
552
+ adaptive = _options$adaptive === void 0 ? true : _options$adaptive,
553
+ _options$roundOffsets = options.roundOffsets,
554
+ roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
555
+
556
+ var commonStyles = {
557
+ placement: getBasePlacement(state.placement),
558
+ variation: getVariation(state.placement),
559
+ popper: state.elements.popper,
560
+ popperRect: state.rects.popper,
561
+ gpuAcceleration: gpuAcceleration
562
+ };
563
+
564
+ if (state.modifiersData.popperOffsets != null) {
565
+ state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
566
+ offsets: state.modifiersData.popperOffsets,
567
+ position: state.options.strategy,
568
+ adaptive: adaptive,
569
+ roundOffsets: roundOffsets
570
+ })));
571
+ }
572
+
573
+ if (state.modifiersData.arrow != null) {
574
+ state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
575
+ offsets: state.modifiersData.arrow,
576
+ position: 'absolute',
577
+ adaptive: false,
578
+ roundOffsets: roundOffsets
579
+ })));
580
+ }
581
+
582
+ state.attributes.popper = Object.assign({}, state.attributes.popper, {
583
+ 'data-popper-placement': state.placement
584
+ });
585
+ } // eslint-disable-next-line import/no-unused-modules
586
+
587
+
588
+ const computeStyles$1 = {
589
+ name: 'computeStyles',
590
+ enabled: true,
591
+ phase: 'beforeWrite',
592
+ fn: computeStyles,
593
+ data: {}
594
+ };
595
+
596
+ var passive = {
597
+ passive: true
598
+ };
599
+
600
+ function effect(_ref) {
601
+ var state = _ref.state,
602
+ instance = _ref.instance,
603
+ options = _ref.options;
604
+ var _options$scroll = options.scroll,
605
+ scroll = _options$scroll === void 0 ? true : _options$scroll,
606
+ _options$resize = options.resize,
607
+ resize = _options$resize === void 0 ? true : _options$resize;
608
+ var window = getWindow(state.elements.popper);
609
+ var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);
610
+
611
+ if (scroll) {
612
+ scrollParents.forEach(function (scrollParent) {
613
+ scrollParent.addEventListener('scroll', instance.update, passive);
614
+ });
615
+ }
616
+
617
+ if (resize) {
618
+ window.addEventListener('resize', instance.update, passive);
619
+ }
620
+
621
+ return function () {
622
+ if (scroll) {
623
+ scrollParents.forEach(function (scrollParent) {
624
+ scrollParent.removeEventListener('scroll', instance.update, passive);
625
+ });
626
+ }
627
+
628
+ if (resize) {
629
+ window.removeEventListener('resize', instance.update, passive);
630
+ }
631
+ };
632
+ } // eslint-disable-next-line import/no-unused-modules
633
+
634
+
635
+ const eventListeners = {
636
+ name: 'eventListeners',
637
+ enabled: true,
638
+ phase: 'write',
639
+ fn: function fn() {},
640
+ effect: effect,
641
+ data: {}
642
+ };
643
+
644
+ var hash$1 = {
645
+ left: 'right',
646
+ right: 'left',
647
+ bottom: 'top',
648
+ top: 'bottom'
649
+ };
650
+ function getOppositePlacement(placement) {
651
+ return placement.replace(/left|right|bottom|top/g, function (matched) {
652
+ return hash$1[matched];
653
+ });
654
+ }
655
+
656
+ var hash = {
657
+ start: 'end',
658
+ end: 'start'
659
+ };
660
+ function getOppositeVariationPlacement(placement) {
661
+ return placement.replace(/start|end/g, function (matched) {
662
+ return hash[matched];
663
+ });
664
+ }
665
+
666
+ function getWindowScroll(node) {
667
+ var win = getWindow(node);
668
+ var scrollLeft = win.pageXOffset;
669
+ var scrollTop = win.pageYOffset;
670
+ return {
671
+ scrollLeft: scrollLeft,
672
+ scrollTop: scrollTop
673
+ };
674
+ }
675
+
676
+ function getWindowScrollBarX(element) {
677
+ // If <html> has a CSS width greater than the viewport, then this will be
678
+ // incorrect for RTL.
679
+ // Popper 1 is broken in this case and never had a bug report so let's assume
680
+ // it's not an issue. I don't think anyone ever specifies width on <html>
681
+ // anyway.
682
+ // Browsers where the left scrollbar doesn't cause an issue report `0` for
683
+ // this (e.g. Edge 2019, IE11, Safari)
684
+ return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;
685
+ }
686
+
687
+ function getViewportRect(element) {
688
+ var win = getWindow(element);
689
+ var html = getDocumentElement(element);
690
+ var visualViewport = win.visualViewport;
691
+ var width = html.clientWidth;
692
+ var height = html.clientHeight;
693
+ var x = 0;
694
+ var y = 0; // NB: This isn't supported on iOS <= 12. If the keyboard is open, the popper
695
+ // can be obscured underneath it.
696
+ // Also, `html.clientHeight` adds the bottom bar height in Safari iOS, even
697
+ // if it isn't open, so if this isn't available, the popper will be detected
698
+ // to overflow the bottom of the screen too early.
699
+
700
+ if (visualViewport) {
701
+ width = visualViewport.width;
702
+ height = visualViewport.height; // Uses Layout Viewport (like Chrome; Safari does not currently)
703
+ // In Chrome, it returns a value very close to 0 (+/-) but contains rounding
704
+ // errors due to floating point numbers, so we need to check precision.
705
+ // Safari returns a number <= 0, usually < -1 when pinch-zoomed
706
+ // Feature detection fails in mobile emulation mode in Chrome.
707
+ // Math.abs(win.innerWidth / visualViewport.scale - visualViewport.width) <
708
+ // 0.001
709
+ // Fallback here: "Not Safari" userAgent
710
+
711
+ if (!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)) {
712
+ x = visualViewport.offsetLeft;
713
+ y = visualViewport.offsetTop;
714
+ }
715
+ }
716
+
717
+ return {
718
+ width: width,
719
+ height: height,
720
+ x: x + getWindowScrollBarX(element),
721
+ y: y
722
+ };
723
+ }
724
+
725
+ // of the `<html>` and `<body>` rect bounds if horizontally scrollable
726
+
727
+ function getDocumentRect(element) {
728
+ var _element$ownerDocumen;
729
+
730
+ var html = getDocumentElement(element);
731
+ var winScroll = getWindowScroll(element);
732
+ var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
733
+ var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
734
+ var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
735
+ var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
736
+ var y = -winScroll.scrollTop;
737
+
738
+ if (getComputedStyle(body || html).direction === 'rtl') {
739
+ x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
740
+ }
741
+
742
+ return {
743
+ width: width,
744
+ height: height,
745
+ x: x,
746
+ y: y
747
+ };
748
+ }
749
+
750
+ function isScrollParent(element) {
751
+ // Firefox wants us to check `-x` and `-y` variations as well
752
+ var _getComputedStyle = getComputedStyle(element),
753
+ overflow = _getComputedStyle.overflow,
754
+ overflowX = _getComputedStyle.overflowX,
755
+ overflowY = _getComputedStyle.overflowY;
756
+
757
+ return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
758
+ }
759
+
760
+ function getScrollParent(node) {
761
+ if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {
762
+ // $FlowFixMe[incompatible-return]: assume body is always available
763
+ return node.ownerDocument.body;
764
+ }
765
+
766
+ if (isHTMLElement(node) && isScrollParent(node)) {
767
+ return node;
768
+ }
769
+
770
+ return getScrollParent(getParentNode(node));
771
+ }
772
+
773
+ /*
774
+ given a DOM element, return the list of all scroll parents, up the list of ancesors
775
+ until we get to the top window object. This list is what we attach scroll listeners
776
+ to, because if any of these parent elements scroll, we'll need to re-calculate the
777
+ reference element's position.
778
+ */
779
+
780
+ function listScrollParents(element, list) {
781
+ var _element$ownerDocumen;
782
+
783
+ if (list === void 0) {
784
+ list = [];
785
+ }
786
+
787
+ var scrollParent = getScrollParent(element);
788
+ var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);
789
+ var win = getWindow(scrollParent);
790
+ var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
791
+ var updatedList = list.concat(target);
792
+ return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
793
+ updatedList.concat(listScrollParents(getParentNode(target)));
794
+ }
795
+
796
+ function rectToClientRect(rect) {
797
+ return Object.assign({}, rect, {
798
+ left: rect.x,
799
+ top: rect.y,
800
+ right: rect.x + rect.width,
801
+ bottom: rect.y + rect.height
802
+ });
803
+ }
804
+
805
+ function getInnerBoundingClientRect(element) {
806
+ var rect = getBoundingClientRect(element);
807
+ rect.top = rect.top + element.clientTop;
808
+ rect.left = rect.left + element.clientLeft;
809
+ rect.bottom = rect.top + element.clientHeight;
810
+ rect.right = rect.left + element.clientWidth;
811
+ rect.width = element.clientWidth;
812
+ rect.height = element.clientHeight;
813
+ rect.x = rect.left;
814
+ rect.y = rect.top;
815
+ return rect;
816
+ }
817
+
818
+ function getClientRectFromMixedType(element, clippingParent) {
819
+ return clippingParent === viewport ? rectToClientRect(getViewportRect(element)) : isHTMLElement(clippingParent) ? getInnerBoundingClientRect(clippingParent) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
820
+ } // A "clipping parent" is an overflowable container with the characteristic of
821
+ // clipping (or hiding) overflowing elements with a position different from
822
+ // `initial`
823
+
824
+
825
+ function getClippingParents(element) {
826
+ var clippingParents = listScrollParents(getParentNode(element));
827
+ var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle(element).position) >= 0;
828
+ var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
829
+
830
+ if (!isElement(clipperElement)) {
831
+ return [];
832
+ } // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414
833
+
834
+
835
+ return clippingParents.filter(function (clippingParent) {
836
+ return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
837
+ });
838
+ } // Gets the maximum area that the element is visible in due to any number of
839
+ // clipping parents
840
+
841
+
842
+ function getClippingRect(element, boundary, rootBoundary) {
843
+ var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);
844
+ var clippingParents = [].concat(mainClippingParents, [rootBoundary]);
845
+ var firstClippingParent = clippingParents[0];
846
+ var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
847
+ var rect = getClientRectFromMixedType(element, clippingParent);
848
+ accRect.top = max(rect.top, accRect.top);
849
+ accRect.right = min(rect.right, accRect.right);
850
+ accRect.bottom = min(rect.bottom, accRect.bottom);
851
+ accRect.left = max(rect.left, accRect.left);
852
+ return accRect;
853
+ }, getClientRectFromMixedType(element, firstClippingParent));
854
+ clippingRect.width = clippingRect.right - clippingRect.left;
855
+ clippingRect.height = clippingRect.bottom - clippingRect.top;
856
+ clippingRect.x = clippingRect.left;
857
+ clippingRect.y = clippingRect.top;
858
+ return clippingRect;
859
+ }
860
+
861
+ function computeOffsets(_ref) {
862
+ var reference = _ref.reference,
863
+ element = _ref.element,
864
+ placement = _ref.placement;
865
+ var basePlacement = placement ? getBasePlacement(placement) : null;
866
+ var variation = placement ? getVariation(placement) : null;
867
+ var commonX = reference.x + reference.width / 2 - element.width / 2;
868
+ var commonY = reference.y + reference.height / 2 - element.height / 2;
869
+ var offsets;
870
+
871
+ switch (basePlacement) {
872
+ case top:
873
+ offsets = {
874
+ x: commonX,
875
+ y: reference.y - element.height
876
+ };
877
+ break;
878
+
879
+ case bottom:
880
+ offsets = {
881
+ x: commonX,
882
+ y: reference.y + reference.height
883
+ };
884
+ break;
885
+
886
+ case right:
887
+ offsets = {
888
+ x: reference.x + reference.width,
889
+ y: commonY
890
+ };
891
+ break;
892
+
893
+ case left:
894
+ offsets = {
895
+ x: reference.x - element.width,
896
+ y: commonY
897
+ };
898
+ break;
899
+
900
+ default:
901
+ offsets = {
902
+ x: reference.x,
903
+ y: reference.y
904
+ };
905
+ }
906
+
907
+ var mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null;
908
+
909
+ if (mainAxis != null) {
910
+ var len = mainAxis === 'y' ? 'height' : 'width';
911
+
912
+ switch (variation) {
913
+ case start:
914
+ offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);
915
+ break;
916
+
917
+ case end:
918
+ offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);
919
+ break;
920
+ }
921
+ }
922
+
923
+ return offsets;
924
+ }
925
+
926
+ function detectOverflow(state, options) {
927
+ if (options === void 0) {
928
+ options = {};
929
+ }
930
+
931
+ var _options = options,
932
+ _options$placement = _options.placement,
933
+ placement = _options$placement === void 0 ? state.placement : _options$placement,
934
+ _options$boundary = _options.boundary,
935
+ boundary = _options$boundary === void 0 ? clippingParents : _options$boundary,
936
+ _options$rootBoundary = _options.rootBoundary,
937
+ rootBoundary = _options$rootBoundary === void 0 ? viewport : _options$rootBoundary,
938
+ _options$elementConte = _options.elementContext,
939
+ elementContext = _options$elementConte === void 0 ? popper : _options$elementConte,
940
+ _options$altBoundary = _options.altBoundary,
941
+ altBoundary = _options$altBoundary === void 0 ? false : _options$altBoundary,
942
+ _options$padding = _options.padding,
943
+ padding = _options$padding === void 0 ? 0 : _options$padding;
944
+ var paddingObject = mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
945
+ var altContext = elementContext === popper ? reference : popper;
946
+ var popperRect = state.rects.popper;
947
+ var element = state.elements[altBoundary ? altContext : elementContext];
948
+ var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary);
949
+ var referenceClientRect = getBoundingClientRect(state.elements.reference);
950
+ var popperOffsets = computeOffsets({
951
+ reference: referenceClientRect,
952
+ element: popperRect,
953
+ strategy: 'absolute',
954
+ placement: placement
955
+ });
956
+ var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));
957
+ var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect
958
+ // 0 or negative = within the clipping rect
959
+
960
+ var overflowOffsets = {
961
+ top: clippingClientRect.top - elementClientRect.top + paddingObject.top,
962
+ bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,
963
+ left: clippingClientRect.left - elementClientRect.left + paddingObject.left,
964
+ right: elementClientRect.right - clippingClientRect.right + paddingObject.right
965
+ };
966
+ var offsetData = state.modifiersData.offset; // Offsets can be applied only to the popper element
967
+
968
+ if (elementContext === popper && offsetData) {
969
+ var offset = offsetData[placement];
970
+ Object.keys(overflowOffsets).forEach(function (key) {
971
+ var multiply = [right, bottom].indexOf(key) >= 0 ? 1 : -1;
972
+ var axis = [top, bottom].indexOf(key) >= 0 ? 'y' : 'x';
973
+ overflowOffsets[key] += offset[axis] * multiply;
974
+ });
975
+ }
976
+
977
+ return overflowOffsets;
978
+ }
979
+
980
+ function computeAutoPlacement(state, options) {
981
+ if (options === void 0) {
982
+ options = {};
983
+ }
984
+
985
+ var _options = options,
986
+ placement = _options.placement,
987
+ boundary = _options.boundary,
988
+ rootBoundary = _options.rootBoundary,
989
+ padding = _options.padding,
990
+ flipVariations = _options.flipVariations,
991
+ _options$allowedAutoP = _options.allowedAutoPlacements,
992
+ allowedAutoPlacements = _options$allowedAutoP === void 0 ? placements : _options$allowedAutoP;
993
+ var variation = getVariation(placement);
994
+ var placements$1 = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {
995
+ return getVariation(placement) === variation;
996
+ }) : basePlacements;
997
+ var allowedPlacements = placements$1.filter(function (placement) {
998
+ return allowedAutoPlacements.indexOf(placement) >= 0;
999
+ });
1000
+
1001
+ if (allowedPlacements.length === 0) {
1002
+ allowedPlacements = placements$1;
1003
+ } // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...
1004
+
1005
+
1006
+ var overflows = allowedPlacements.reduce(function (acc, placement) {
1007
+ acc[placement] = detectOverflow(state, {
1008
+ placement: placement,
1009
+ boundary: boundary,
1010
+ rootBoundary: rootBoundary,
1011
+ padding: padding
1012
+ })[getBasePlacement(placement)];
1013
+ return acc;
1014
+ }, {});
1015
+ return Object.keys(overflows).sort(function (a, b) {
1016
+ return overflows[a] - overflows[b];
1017
+ });
1018
+ }
1019
+
1020
+ function getExpandedFallbackPlacements(placement) {
1021
+ if (getBasePlacement(placement) === auto) {
1022
+ return [];
1023
+ }
1024
+
1025
+ var oppositePlacement = getOppositePlacement(placement);
1026
+ return [getOppositeVariationPlacement(placement), oppositePlacement, getOppositeVariationPlacement(oppositePlacement)];
1027
+ }
1028
+
1029
+ function flip(_ref) {
1030
+ var state = _ref.state,
1031
+ options = _ref.options,
1032
+ name = _ref.name;
1033
+
1034
+ if (state.modifiersData[name]._skip) {
1035
+ return;
1036
+ }
1037
+
1038
+ var _options$mainAxis = options.mainAxis,
1039
+ checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,
1040
+ _options$altAxis = options.altAxis,
1041
+ checkAltAxis = _options$altAxis === void 0 ? true : _options$altAxis,
1042
+ specifiedFallbackPlacements = options.fallbackPlacements,
1043
+ padding = options.padding,
1044
+ boundary = options.boundary,
1045
+ rootBoundary = options.rootBoundary,
1046
+ altBoundary = options.altBoundary,
1047
+ _options$flipVariatio = options.flipVariations,
1048
+ flipVariations = _options$flipVariatio === void 0 ? true : _options$flipVariatio,
1049
+ allowedAutoPlacements = options.allowedAutoPlacements;
1050
+ var preferredPlacement = state.options.placement;
1051
+ var basePlacement = getBasePlacement(preferredPlacement);
1052
+ var isBasePlacement = basePlacement === preferredPlacement;
1053
+ var fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipVariations ? [getOppositePlacement(preferredPlacement)] : getExpandedFallbackPlacements(preferredPlacement));
1054
+ var placements = [preferredPlacement].concat(fallbackPlacements).reduce(function (acc, placement) {
1055
+ return acc.concat(getBasePlacement(placement) === auto ? computeAutoPlacement(state, {
1056
+ placement: placement,
1057
+ boundary: boundary,
1058
+ rootBoundary: rootBoundary,
1059
+ padding: padding,
1060
+ flipVariations: flipVariations,
1061
+ allowedAutoPlacements: allowedAutoPlacements
1062
+ }) : placement);
1063
+ }, []);
1064
+ var referenceRect = state.rects.reference;
1065
+ var popperRect = state.rects.popper;
1066
+ var checksMap = new Map();
1067
+ var makeFallbackChecks = true;
1068
+ var firstFittingPlacement = placements[0];
1069
+
1070
+ for (var i = 0; i < placements.length; i++) {
1071
+ var placement = placements[i];
1072
+
1073
+ var _basePlacement = getBasePlacement(placement);
1074
+
1075
+ var isStartVariation = getVariation(placement) === start;
1076
+ var isVertical = [top, bottom].indexOf(_basePlacement) >= 0;
1077
+ var len = isVertical ? 'width' : 'height';
1078
+ var overflow = detectOverflow(state, {
1079
+ placement: placement,
1080
+ boundary: boundary,
1081
+ rootBoundary: rootBoundary,
1082
+ altBoundary: altBoundary,
1083
+ padding: padding
1084
+ });
1085
+ var mainVariationSide = isVertical ? isStartVariation ? right : left : isStartVariation ? bottom : top;
1086
+
1087
+ if (referenceRect[len] > popperRect[len]) {
1088
+ mainVariationSide = getOppositePlacement(mainVariationSide);
1089
+ }
1090
+
1091
+ var altVariationSide = getOppositePlacement(mainVariationSide);
1092
+ var checks = [];
1093
+
1094
+ if (checkMainAxis) {
1095
+ checks.push(overflow[_basePlacement] <= 0);
1096
+ }
1097
+
1098
+ if (checkAltAxis) {
1099
+ checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0);
1100
+ }
1101
+
1102
+ if (checks.every(function (check) {
1103
+ return check;
1104
+ })) {
1105
+ firstFittingPlacement = placement;
1106
+ makeFallbackChecks = false;
1107
+ break;
1108
+ }
1109
+
1110
+ checksMap.set(placement, checks);
1111
+ }
1112
+
1113
+ if (makeFallbackChecks) {
1114
+ // `2` may be desired in some cases – research later
1115
+ var numberOfChecks = flipVariations ? 3 : 1;
1116
+
1117
+ var _loop = function _loop(_i) {
1118
+ var fittingPlacement = placements.find(function (placement) {
1119
+ var checks = checksMap.get(placement);
1120
+
1121
+ if (checks) {
1122
+ return checks.slice(0, _i).every(function (check) {
1123
+ return check;
1124
+ });
1125
+ }
1126
+ });
1127
+
1128
+ if (fittingPlacement) {
1129
+ firstFittingPlacement = fittingPlacement;
1130
+ return "break";
1131
+ }
1132
+ };
1133
+
1134
+ for (var _i = numberOfChecks; _i > 0; _i--) {
1135
+ var _ret = _loop(_i);
1136
+
1137
+ if (_ret === "break") break;
1138
+ }
1139
+ }
1140
+
1141
+ if (state.placement !== firstFittingPlacement) {
1142
+ state.modifiersData[name]._skip = true;
1143
+ state.placement = firstFittingPlacement;
1144
+ state.reset = true;
1145
+ }
1146
+ } // eslint-disable-next-line import/no-unused-modules
1147
+
1148
+
1149
+ const flip$1 = {
1150
+ name: 'flip',
1151
+ enabled: true,
1152
+ phase: 'main',
1153
+ fn: flip,
1154
+ requiresIfExists: ['offset'],
1155
+ data: {
1156
+ _skip: false
1157
+ }
1158
+ };
1159
+
1160
+ function getSideOffsets(overflow, rect, preventedOffsets) {
1161
+ if (preventedOffsets === void 0) {
1162
+ preventedOffsets = {
1163
+ x: 0,
1164
+ y: 0
1165
+ };
1166
+ }
1167
+
1168
+ return {
1169
+ top: overflow.top - rect.height - preventedOffsets.y,
1170
+ right: overflow.right - rect.width + preventedOffsets.x,
1171
+ bottom: overflow.bottom - rect.height + preventedOffsets.y,
1172
+ left: overflow.left - rect.width - preventedOffsets.x
1173
+ };
1174
+ }
1175
+
1176
+ function isAnySideFullyClipped(overflow) {
1177
+ return [top, right, bottom, left].some(function (side) {
1178
+ return overflow[side] >= 0;
1179
+ });
1180
+ }
1181
+
1182
+ function hide(_ref) {
1183
+ var state = _ref.state,
1184
+ name = _ref.name;
1185
+ var referenceRect = state.rects.reference;
1186
+ var popperRect = state.rects.popper;
1187
+ var preventedOffsets = state.modifiersData.preventOverflow;
1188
+ var referenceOverflow = detectOverflow(state, {
1189
+ elementContext: 'reference'
1190
+ });
1191
+ var popperAltOverflow = detectOverflow(state, {
1192
+ altBoundary: true
1193
+ });
1194
+ var referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect);
1195
+ var popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets);
1196
+ var isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets);
1197
+ var hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets);
1198
+ state.modifiersData[name] = {
1199
+ referenceClippingOffsets: referenceClippingOffsets,
1200
+ popperEscapeOffsets: popperEscapeOffsets,
1201
+ isReferenceHidden: isReferenceHidden,
1202
+ hasPopperEscaped: hasPopperEscaped
1203
+ };
1204
+ state.attributes.popper = Object.assign({}, state.attributes.popper, {
1205
+ 'data-popper-reference-hidden': isReferenceHidden,
1206
+ 'data-popper-escaped': hasPopperEscaped
1207
+ });
1208
+ } // eslint-disable-next-line import/no-unused-modules
1209
+
1210
+
1211
+ const hide$1 = {
1212
+ name: 'hide',
1213
+ enabled: true,
1214
+ phase: 'main',
1215
+ requiresIfExists: ['preventOverflow'],
1216
+ fn: hide
1217
+ };
1218
+
1219
+ function distanceAndSkiddingToXY(placement, rects, offset) {
1220
+ var basePlacement = getBasePlacement(placement);
1221
+ var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;
1222
+
1223
+ var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {
1224
+ placement: placement
1225
+ })) : offset,
1226
+ skidding = _ref[0],
1227
+ distance = _ref[1];
1228
+
1229
+ skidding = skidding || 0;
1230
+ distance = (distance || 0) * invertDistance;
1231
+ return [left, right].indexOf(basePlacement) >= 0 ? {
1232
+ x: distance,
1233
+ y: skidding
1234
+ } : {
1235
+ x: skidding,
1236
+ y: distance
1237
+ };
1238
+ }
1239
+
1240
+ function offset(_ref2) {
1241
+ var state = _ref2.state,
1242
+ options = _ref2.options,
1243
+ name = _ref2.name;
1244
+ var _options$offset = options.offset,
1245
+ offset = _options$offset === void 0 ? [0, 0] : _options$offset;
1246
+ var data = placements.reduce(function (acc, placement) {
1247
+ acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset);
1248
+ return acc;
1249
+ }, {});
1250
+ var _data$state$placement = data[state.placement],
1251
+ x = _data$state$placement.x,
1252
+ y = _data$state$placement.y;
1253
+
1254
+ if (state.modifiersData.popperOffsets != null) {
1255
+ state.modifiersData.popperOffsets.x += x;
1256
+ state.modifiersData.popperOffsets.y += y;
1257
+ }
1258
+
1259
+ state.modifiersData[name] = data;
1260
+ } // eslint-disable-next-line import/no-unused-modules
1261
+
1262
+
1263
+ const offset$1 = {
1264
+ name: 'offset',
1265
+ enabled: true,
1266
+ phase: 'main',
1267
+ requires: ['popperOffsets'],
1268
+ fn: offset
1269
+ };
1270
+
1271
+ function popperOffsets(_ref) {
1272
+ var state = _ref.state,
1273
+ name = _ref.name;
1274
+ // Offsets are the actual position the popper needs to have to be
1275
+ // properly positioned near its reference element
1276
+ // This is the most basic placement, and will be adjusted by
1277
+ // the modifiers in the next step
1278
+ state.modifiersData[name] = computeOffsets({
1279
+ reference: state.rects.reference,
1280
+ element: state.rects.popper,
1281
+ strategy: 'absolute',
1282
+ placement: state.placement
1283
+ });
1284
+ } // eslint-disable-next-line import/no-unused-modules
1285
+
1286
+
1287
+ const popperOffsets$1 = {
1288
+ name: 'popperOffsets',
1289
+ enabled: true,
1290
+ phase: 'read',
1291
+ fn: popperOffsets,
1292
+ data: {}
1293
+ };
1294
+
1295
+ function getAltAxis(axis) {
1296
+ return axis === 'x' ? 'y' : 'x';
1297
+ }
1298
+
1299
+ function preventOverflow(_ref) {
1300
+ var state = _ref.state,
1301
+ options = _ref.options,
1302
+ name = _ref.name;
1303
+ var _options$mainAxis = options.mainAxis,
1304
+ checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,
1305
+ _options$altAxis = options.altAxis,
1306
+ checkAltAxis = _options$altAxis === void 0 ? false : _options$altAxis,
1307
+ boundary = options.boundary,
1308
+ rootBoundary = options.rootBoundary,
1309
+ altBoundary = options.altBoundary,
1310
+ padding = options.padding,
1311
+ _options$tether = options.tether,
1312
+ tether = _options$tether === void 0 ? true : _options$tether,
1313
+ _options$tetherOffset = options.tetherOffset,
1314
+ tetherOffset = _options$tetherOffset === void 0 ? 0 : _options$tetherOffset;
1315
+ var overflow = detectOverflow(state, {
1316
+ boundary: boundary,
1317
+ rootBoundary: rootBoundary,
1318
+ padding: padding,
1319
+ altBoundary: altBoundary
1320
+ });
1321
+ var basePlacement = getBasePlacement(state.placement);
1322
+ var variation = getVariation(state.placement);
1323
+ var isBasePlacement = !variation;
1324
+ var mainAxis = getMainAxisFromPlacement(basePlacement);
1325
+ var altAxis = getAltAxis(mainAxis);
1326
+ var popperOffsets = state.modifiersData.popperOffsets;
1327
+ var referenceRect = state.rects.reference;
1328
+ var popperRect = state.rects.popper;
1329
+ var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
1330
+ placement: state.placement
1331
+ })) : tetherOffset;
1332
+ var data = {
1333
+ x: 0,
1334
+ y: 0
1335
+ };
1336
+
1337
+ if (!popperOffsets) {
1338
+ return;
1339
+ }
1340
+
1341
+ if (checkMainAxis || checkAltAxis) {
1342
+ var mainSide = mainAxis === 'y' ? top : left;
1343
+ var altSide = mainAxis === 'y' ? bottom : right;
1344
+ var len = mainAxis === 'y' ? 'height' : 'width';
1345
+ var offset = popperOffsets[mainAxis];
1346
+ var min$1 = popperOffsets[mainAxis] + overflow[mainSide];
1347
+ var max$1 = popperOffsets[mainAxis] - overflow[altSide];
1348
+ var additive = tether ? -popperRect[len] / 2 : 0;
1349
+ var minLen = variation === start ? referenceRect[len] : popperRect[len];
1350
+ var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
1351
+ // outside the reference bounds
1352
+
1353
+ var arrowElement = state.elements.arrow;
1354
+ var arrowRect = tether && arrowElement ? getLayoutRect(arrowElement) : {
1355
+ width: 0,
1356
+ height: 0
1357
+ };
1358
+ var arrowPaddingObject = state.modifiersData['arrow#persistent'] ? state.modifiersData['arrow#persistent'].padding : getFreshSideObject();
1359
+ var arrowPaddingMin = arrowPaddingObject[mainSide];
1360
+ var arrowPaddingMax = arrowPaddingObject[altSide]; // If the reference length is smaller than the arrow length, we don't want
1361
+ // to include its full size in the calculation. If the reference is small
1362
+ // and near the edge of a boundary, the popper can overflow even if the
1363
+ // reference is not overflowing as well (e.g. virtual elements with no
1364
+ // width or height)
1365
+
1366
+ var arrowLen = within(0, referenceRect[len], arrowRect[len]);
1367
+ var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - tetherOffsetValue : minLen - arrowLen - arrowPaddingMin - tetherOffsetValue;
1368
+ var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + tetherOffsetValue : maxLen + arrowLen + arrowPaddingMax + tetherOffsetValue;
1369
+ var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);
1370
+ var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;
1371
+ var offsetModifierValue = state.modifiersData.offset ? state.modifiersData.offset[state.placement][mainAxis] : 0;
1372
+ var tetherMin = popperOffsets[mainAxis] + minOffset - offsetModifierValue - clientOffset;
1373
+ var tetherMax = popperOffsets[mainAxis] + maxOffset - offsetModifierValue;
1374
+
1375
+ if (checkMainAxis) {
1376
+ var preventedOffset = within(tether ? min(min$1, tetherMin) : min$1, offset, tether ? max(max$1, tetherMax) : max$1);
1377
+ popperOffsets[mainAxis] = preventedOffset;
1378
+ data[mainAxis] = preventedOffset - offset;
1379
+ }
1380
+
1381
+ if (checkAltAxis) {
1382
+ var _mainSide = mainAxis === 'x' ? top : left;
1383
+
1384
+ var _altSide = mainAxis === 'x' ? bottom : right;
1385
+
1386
+ var _offset = popperOffsets[altAxis];
1387
+
1388
+ var _min = _offset + overflow[_mainSide];
1389
+
1390
+ var _max = _offset - overflow[_altSide];
1391
+
1392
+ var _preventedOffset = within(tether ? min(_min, tetherMin) : _min, _offset, tether ? max(_max, tetherMax) : _max);
1393
+
1394
+ popperOffsets[altAxis] = _preventedOffset;
1395
+ data[altAxis] = _preventedOffset - _offset;
1396
+ }
1397
+ }
1398
+
1399
+ state.modifiersData[name] = data;
1400
+ } // eslint-disable-next-line import/no-unused-modules
1401
+
1402
+
1403
+ const preventOverflow$1 = {
1404
+ name: 'preventOverflow',
1405
+ enabled: true,
1406
+ phase: 'main',
1407
+ fn: preventOverflow,
1408
+ requiresIfExists: ['offset']
1409
+ };
1410
+
1411
+ function getHTMLElementScroll(element) {
1412
+ return {
1413
+ scrollLeft: element.scrollLeft,
1414
+ scrollTop: element.scrollTop
1415
+ };
1416
+ }
1417
+
1418
+ function getNodeScroll(node) {
1419
+ if (node === getWindow(node) || !isHTMLElement(node)) {
1420
+ return getWindowScroll(node);
1421
+ } else {
1422
+ return getHTMLElementScroll(node);
1423
+ }
1424
+ }
1425
+
1426
+ function isElementScaled(element) {
1427
+ var rect = element.getBoundingClientRect();
1428
+ var scaleX = rect.width / element.offsetWidth || 1;
1429
+ var scaleY = rect.height / element.offsetHeight || 1;
1430
+ return scaleX !== 1 || scaleY !== 1;
1431
+ } // Returns the composite rect of an element relative to its offsetParent.
1432
+ // Composite means it takes into account transforms as well as layout.
1433
+
1434
+
1435
+ function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
1436
+ if (isFixed === void 0) {
1437
+ isFixed = false;
1438
+ }
1439
+
1440
+ var isOffsetParentAnElement = isHTMLElement(offsetParent);
1441
+ isHTMLElement(offsetParent) && isElementScaled(offsetParent);
1442
+ var documentElement = getDocumentElement(offsetParent);
1443
+ var rect = getBoundingClientRect(elementOrVirtualElement);
1444
+ var scroll = {
1445
+ scrollLeft: 0,
1446
+ scrollTop: 0
1447
+ };
1448
+ var offsets = {
1449
+ x: 0,
1450
+ y: 0
1451
+ };
1452
+
1453
+ if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
1454
+ if (getNodeName(offsetParent) !== 'body' || // https://github.com/popperjs/popper-core/issues/1078
1455
+ isScrollParent(documentElement)) {
1456
+ scroll = getNodeScroll(offsetParent);
1457
+ }
1458
+
1459
+ if (isHTMLElement(offsetParent)) {
1460
+ offsets = getBoundingClientRect(offsetParent);
1461
+ offsets.x += offsetParent.clientLeft;
1462
+ offsets.y += offsetParent.clientTop;
1463
+ } else if (documentElement) {
1464
+ offsets.x = getWindowScrollBarX(documentElement);
1465
+ }
1466
+ }
1467
+
1468
+ return {
1469
+ x: rect.left + scroll.scrollLeft - offsets.x,
1470
+ y: rect.top + scroll.scrollTop - offsets.y,
1471
+ width: rect.width,
1472
+ height: rect.height
1473
+ };
1474
+ }
1475
+
1476
+ function order(modifiers) {
1477
+ var map = new Map();
1478
+ var visited = new Set();
1479
+ var result = [];
1480
+ modifiers.forEach(function (modifier) {
1481
+ map.set(modifier.name, modifier);
1482
+ }); // On visiting object, check for its dependencies and visit them recursively
1483
+
1484
+ function sort(modifier) {
1485
+ visited.add(modifier.name);
1486
+ var requires = [].concat(modifier.requires || [], modifier.requiresIfExists || []);
1487
+ requires.forEach(function (dep) {
1488
+ if (!visited.has(dep)) {
1489
+ var depModifier = map.get(dep);
1490
+
1491
+ if (depModifier) {
1492
+ sort(depModifier);
1493
+ }
1494
+ }
1495
+ });
1496
+ result.push(modifier);
1497
+ }
1498
+
1499
+ modifiers.forEach(function (modifier) {
1500
+ if (!visited.has(modifier.name)) {
1501
+ // check for visited object
1502
+ sort(modifier);
1503
+ }
1504
+ });
1505
+ return result;
1506
+ }
1507
+
1508
+ function orderModifiers(modifiers) {
1509
+ // order based on dependencies
1510
+ var orderedModifiers = order(modifiers); // order based on phase
1511
+
1512
+ return modifierPhases.reduce(function (acc, phase) {
1513
+ return acc.concat(orderedModifiers.filter(function (modifier) {
1514
+ return modifier.phase === phase;
1515
+ }));
1516
+ }, []);
1517
+ }
1518
+
1519
+ function debounce(fn) {
1520
+ var pending;
1521
+ return function () {
1522
+ if (!pending) {
1523
+ pending = new Promise(function (resolve) {
1524
+ Promise.resolve().then(function () {
1525
+ pending = undefined;
1526
+ resolve(fn());
1527
+ });
1528
+ });
1529
+ }
1530
+
1531
+ return pending;
1532
+ };
1533
+ }
1534
+
1535
+ function mergeByName(modifiers) {
1536
+ var merged = modifiers.reduce(function (merged, current) {
1537
+ var existing = merged[current.name];
1538
+ merged[current.name] = existing ? Object.assign({}, existing, current, {
1539
+ options: Object.assign({}, existing.options, current.options),
1540
+ data: Object.assign({}, existing.data, current.data)
1541
+ }) : current;
1542
+ return merged;
1543
+ }, {}); // IE11 does not support Object.values
1544
+
1545
+ return Object.keys(merged).map(function (key) {
1546
+ return merged[key];
1547
+ });
1548
+ }
1549
+
1550
+ var DEFAULT_OPTIONS = {
1551
+ placement: 'bottom',
1552
+ modifiers: [],
1553
+ strategy: 'absolute'
1554
+ };
1555
+
1556
+ function areValidElements() {
1557
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1558
+ args[_key] = arguments[_key];
1559
+ }
1560
+
1561
+ return !args.some(function (element) {
1562
+ return !(element && typeof element.getBoundingClientRect === 'function');
1563
+ });
1564
+ }
1565
+
1566
+ function popperGenerator(generatorOptions) {
1567
+ if (generatorOptions === void 0) {
1568
+ generatorOptions = {};
1569
+ }
1570
+
1571
+ var _generatorOptions = generatorOptions,
1572
+ _generatorOptions$def = _generatorOptions.defaultModifiers,
1573
+ defaultModifiers = _generatorOptions$def === void 0 ? [] : _generatorOptions$def,
1574
+ _generatorOptions$def2 = _generatorOptions.defaultOptions,
1575
+ defaultOptions = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS : _generatorOptions$def2;
1576
+ return function createPopper(reference, popper, options) {
1577
+ if (options === void 0) {
1578
+ options = defaultOptions;
1579
+ }
1580
+
1581
+ var state = {
1582
+ placement: 'bottom',
1583
+ orderedModifiers: [],
1584
+ options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),
1585
+ modifiersData: {},
1586
+ elements: {
1587
+ reference: reference,
1588
+ popper: popper
1589
+ },
1590
+ attributes: {},
1591
+ styles: {}
1592
+ };
1593
+ var effectCleanupFns = [];
1594
+ var isDestroyed = false;
1595
+ var instance = {
1596
+ state: state,
1597
+ setOptions: function setOptions(setOptionsAction) {
1598
+ var options = typeof setOptionsAction === 'function' ? setOptionsAction(state.options) : setOptionsAction;
1599
+ cleanupModifierEffects();
1600
+ state.options = Object.assign({}, defaultOptions, state.options, options);
1601
+ state.scrollParents = {
1602
+ reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
1603
+ popper: listScrollParents(popper)
1604
+ }; // Orders the modifiers based on their dependencies and `phase`
1605
+ // properties
1606
+
1607
+ var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers, state.options.modifiers))); // Strip out disabled modifiers
1608
+
1609
+ state.orderedModifiers = orderedModifiers.filter(function (m) {
1610
+ return m.enabled;
1611
+ }); // Validate the provided modifiers so that the consumer will get warned
1612
+
1613
+ runModifierEffects();
1614
+ return instance.update();
1615
+ },
1616
+ // Sync update – it will always be executed, even if not necessary. This
1617
+ // is useful for low frequency updates where sync behavior simplifies the
1618
+ // logic.
1619
+ // For high frequency updates (e.g. `resize` and `scroll` events), always
1620
+ // prefer the async Popper#update method
1621
+ forceUpdate: function forceUpdate() {
1622
+ if (isDestroyed) {
1623
+ return;
1624
+ }
1625
+
1626
+ var _state$elements = state.elements,
1627
+ reference = _state$elements.reference,
1628
+ popper = _state$elements.popper; // Don't proceed if `reference` or `popper` are not valid elements
1629
+ // anymore
1630
+
1631
+ if (!areValidElements(reference, popper)) {
1632
+
1633
+ return;
1634
+ } // Store the reference and popper rects to be read by modifiers
1635
+
1636
+
1637
+ state.rects = {
1638
+ reference: getCompositeRect(reference, getOffsetParent(popper), state.options.strategy === 'fixed'),
1639
+ popper: getLayoutRect(popper)
1640
+ }; // Modifiers have the ability to reset the current update cycle. The
1641
+ // most common use case for this is the `flip` modifier changing the
1642
+ // placement, which then needs to re-run all the modifiers, because the
1643
+ // logic was previously ran for the previous placement and is therefore
1644
+ // stale/incorrect
1645
+
1646
+ state.reset = false;
1647
+ state.placement = state.options.placement; // On each update cycle, the `modifiersData` property for each modifier
1648
+ // is filled with the initial data specified by the modifier. This means
1649
+ // it doesn't persist and is fresh on each update.
1650
+ // To ensure persistent data, use `${name}#persistent`
1651
+
1652
+ state.orderedModifiers.forEach(function (modifier) {
1653
+ return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);
1654
+ });
1655
+
1656
+ for (var index = 0; index < state.orderedModifiers.length; index++) {
1657
+
1658
+ if (state.reset === true) {
1659
+ state.reset = false;
1660
+ index = -1;
1661
+ continue;
1662
+ }
1663
+
1664
+ var _state$orderedModifie = state.orderedModifiers[index],
1665
+ fn = _state$orderedModifie.fn,
1666
+ _state$orderedModifie2 = _state$orderedModifie.options,
1667
+ _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2,
1668
+ name = _state$orderedModifie.name;
1669
+
1670
+ if (typeof fn === 'function') {
1671
+ state = fn({
1672
+ state: state,
1673
+ options: _options,
1674
+ name: name,
1675
+ instance: instance
1676
+ }) || state;
1677
+ }
1678
+ }
1679
+ },
1680
+ // Async and optimistically optimized update – it will not be executed if
1681
+ // not necessary (debounced to run at most once-per-tick)
1682
+ update: debounce(function () {
1683
+ return new Promise(function (resolve) {
1684
+ instance.forceUpdate();
1685
+ resolve(state);
1686
+ });
1687
+ }),
1688
+ destroy: function destroy() {
1689
+ cleanupModifierEffects();
1690
+ isDestroyed = true;
1691
+ }
1692
+ };
1693
+
1694
+ if (!areValidElements(reference, popper)) {
1695
+
1696
+ return instance;
1697
+ }
1698
+
1699
+ instance.setOptions(options).then(function (state) {
1700
+ if (!isDestroyed && options.onFirstUpdate) {
1701
+ options.onFirstUpdate(state);
1702
+ }
1703
+ }); // Modifiers have the ability to execute arbitrary code before the first
1704
+ // update cycle runs. They will be executed in the same order as the update
1705
+ // cycle. This is useful when a modifier adds some persistent data that
1706
+ // other modifiers need to use, but the modifier is run after the dependent
1707
+ // one.
1708
+
1709
+ function runModifierEffects() {
1710
+ state.orderedModifiers.forEach(function (_ref3) {
1711
+ var name = _ref3.name,
1712
+ _ref3$options = _ref3.options,
1713
+ options = _ref3$options === void 0 ? {} : _ref3$options,
1714
+ effect = _ref3.effect;
1715
+
1716
+ if (typeof effect === 'function') {
1717
+ var cleanupFn = effect({
1718
+ state: state,
1719
+ name: name,
1720
+ instance: instance,
1721
+ options: options
1722
+ });
1723
+
1724
+ var noopFn = function noopFn() {};
1725
+
1726
+ effectCleanupFns.push(cleanupFn || noopFn);
1727
+ }
1728
+ });
1729
+ }
1730
+
1731
+ function cleanupModifierEffects() {
1732
+ effectCleanupFns.forEach(function (fn) {
1733
+ return fn();
1734
+ });
1735
+ effectCleanupFns = [];
1736
+ }
1737
+
1738
+ return instance;
1739
+ };
1740
+ }
1741
+
1742
+ var defaultModifiers = [eventListeners, popperOffsets$1, computeStyles$1, applyStyles$1, offset$1, flip$1, preventOverflow$1, arrow$1, hide$1];
1743
+ var createPopper$1 = /*#__PURE__*/popperGenerator({
1744
+ defaultModifiers: defaultModifiers
1745
+ }); // eslint-disable-next-line import/no-unused-modules
1746
+
1747
+ const CSS = {
1748
+ animation: "calcite-popper-anim",
1749
+ animationActive: "calcite-popper-anim--active"
1750
+ };
1751
+ function getPlacement(el, placement) {
1752
+ const placements = ["left", "right"];
1753
+ const variations = ["start", "end"];
1754
+ if (dom.getElementDir(el) === "rtl") {
1755
+ placements.reverse();
1756
+ variations.reverse();
1757
+ }
1758
+ return placement
1759
+ .replace(/-leading/gi, `-${variations[0]}`)
1760
+ .replace(/-trailing/gi, `-${variations[1]}`)
1761
+ .replace(/leading/gi, placements[0])
1762
+ .replace(/trailing/gi, placements[1]);
1763
+ }
1764
+ function createPopper({ referenceEl, el, placement, overlayPositioning = "absolute", modifiers }) {
1765
+ if (!referenceEl) {
1766
+ return null;
1767
+ }
1768
+ return createPopper$1(referenceEl, el, {
1769
+ strategy: overlayPositioning,
1770
+ placement: getPlacement(el, placement),
1771
+ modifiers
1772
+ });
1773
+ }
1774
+ async function updatePopper({ el, modifiers, placement: PopperPlacement, popper }) {
1775
+ const placement = getPlacement(el, PopperPlacement);
1776
+ await popper.setOptions({
1777
+ modifiers,
1778
+ placement
1779
+ });
1780
+ }
1781
+ function hypotenuse(sideA, sideB) {
1782
+ return Math.sqrt(Math.pow(sideA, 2) + Math.pow(sideB, 2));
1783
+ }
1784
+ const visiblePointerSize = 4;
1785
+ const defaultOffsetDistance = Math.ceil(hypotenuse(visiblePointerSize, visiblePointerSize));
1786
+
1787
+ exports.CSS = CSS;
1788
+ exports.createPopper = createPopper;
1789
+ exports.defaultOffsetDistance = defaultOffsetDistance;
1790
+ exports.updatePopper = updatePopper;