@esri/calcite-components 1.0.0-beta.67 → 1.0.0-beta.70

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 (1376) hide show
  1. package/CHANGELOG.md +1540 -0
  2. package/dist/calcite/assets/calcite-icon/checkExtent16.json +1 -0
  3. package/dist/calcite/assets/calcite-icon/checkExtent24.json +1 -0
  4. package/dist/calcite/assets/calcite-icon/checkExtent32.json +1 -0
  5. package/dist/calcite/assets/calcite-icon/driveTime16.json +1 -0
  6. package/dist/calcite/assets/calcite-icon/driveTime24.json +1 -0
  7. package/dist/calcite/assets/calcite-icon/driveTime32.json +1 -0
  8. package/dist/calcite/assets/calcite-icon/driveTimeLargest16.json +1 -0
  9. package/dist/calcite/assets/calcite-icon/driveTimeLargest24.json +1 -0
  10. package/dist/calcite/assets/calcite-icon/driveTimeLargest32.json +1 -0
  11. package/dist/calcite/assets/calcite-icon/driveTimeSmallest16.json +1 -0
  12. package/dist/calcite/assets/calcite-icon/driveTimeSmallest24.json +1 -0
  13. package/dist/calcite/assets/calcite-icon/driveTimeSmallest32.json +1 -0
  14. package/dist/calcite/assets/calcite-icon/driveTimeXBar16.json +1 -0
  15. package/dist/calcite/assets/calcite-icon/driveTimeXBar24.json +1 -0
  16. package/dist/calcite/assets/calcite-icon/driveTimeXBar32.json +1 -0
  17. package/dist/calcite/assets/calcite-icon/groupItems16.json +1 -0
  18. package/dist/calcite/assets/calcite-icon/groupItems24.json +1 -0
  19. package/dist/calcite/assets/calcite-icon/groupItems32.json +1 -0
  20. package/dist/calcite/assets/calcite-icon/groupLayoutElements16.json +1 -0
  21. package/dist/calcite/assets/calcite-icon/groupLayoutElements24.json +1 -0
  22. package/dist/calcite/assets/calcite-icon/groupLayoutElements32.json +1 -0
  23. package/dist/calcite/assets/calcite-icon/penMark16.json +1 -0
  24. package/dist/calcite/assets/calcite-icon/penMark24.json +1 -0
  25. package/dist/calcite/assets/calcite-icon/penMark32.json +1 -0
  26. package/dist/calcite/assets/calcite-icon/penMarkPlus16.json +1 -0
  27. package/dist/calcite/assets/calcite-icon/penMarkPlus24.json +1 -0
  28. package/dist/calcite/assets/calcite-icon/penMarkPlus32.json +1 -0
  29. package/dist/calcite/assets/calcite-icon/ringsLargest16.json +1 -0
  30. package/dist/calcite/assets/calcite-icon/ringsLargest24.json +1 -0
  31. package/dist/calcite/assets/calcite-icon/ringsLargest32.json +1 -0
  32. package/dist/calcite/assets/calcite-icon/ringsSmallest16.json +1 -0
  33. package/dist/calcite/assets/calcite-icon/ringsSmallest24.json +1 -0
  34. package/dist/calcite/assets/calcite-icon/ringsSmallest32.json +1 -0
  35. package/dist/calcite/assets/calcite-icon/ringsXBar16.json +1 -0
  36. package/dist/calcite/assets/calcite-icon/ringsXBar24.json +1 -0
  37. package/dist/calcite/assets/calcite-icon/ringsXBar32.json +1 -0
  38. package/dist/calcite/assets/calcite-icon/subscript16.json +1 -0
  39. package/dist/calcite/assets/calcite-icon/subscript24.json +1 -0
  40. package/dist/calcite/assets/calcite-icon/subscript32.json +1 -0
  41. package/dist/calcite/assets/calcite-icon/superscript16.json +1 -0
  42. package/dist/calcite/assets/calcite-icon/superscript24.json +1 -0
  43. package/dist/calcite/assets/calcite-icon/superscript32.json +1 -0
  44. package/dist/calcite/assets/calcite-icon/ungroupItems16.json +1 -0
  45. package/dist/calcite/assets/calcite-icon/ungroupItems24.json +1 -0
  46. package/dist/calcite/assets/calcite-icon/ungroupItems32.json +1 -0
  47. package/dist/calcite/assets/calcite-icon/ungroupLayoutElements16.json +1 -0
  48. package/dist/calcite/assets/calcite-icon/ungroupLayoutElements24.json +1 -0
  49. package/dist/calcite/assets/calcite-icon/ungroupLayoutElements32.json +1 -0
  50. package/dist/calcite/calcite.css +1 -1
  51. package/dist/calcite/calcite.esm.js +5 -1
  52. package/dist/calcite/calcite.js +1 -1
  53. package/dist/calcite/index.esm.js +4 -0
  54. package/dist/calcite/p-004460a0.system.entry.js +5 -0
  55. package/dist/calcite/p-044d603d.system.entry.js +5 -0
  56. package/dist/calcite/p-047e1000.system.entry.js +5 -0
  57. package/dist/calcite/p-05bf835f.js +5 -0
  58. package/dist/calcite/p-05da7439.entry.js +5 -0
  59. package/dist/calcite/p-08d707c4.entry.js +5 -0
  60. package/dist/calcite/p-10708f87.system.entry.js +5 -0
  61. package/dist/calcite/p-109049e6.system.entry.js +5 -0
  62. package/dist/calcite/p-127e3513.system.entry.js +5 -0
  63. package/dist/calcite/p-1434e37e.entry.js +5 -0
  64. package/dist/calcite/p-15f3a0d7.system.entry.js +5 -0
  65. package/dist/calcite/p-16bb48f6.system.entry.js +5 -0
  66. package/dist/calcite/p-16f2d814.system.entry.js +5 -0
  67. package/dist/calcite/p-1942876c.js +5 -0
  68. package/dist/calcite/p-1a962bdd.js +5 -0
  69. package/dist/calcite/p-1aa89347.system.entry.js +5 -0
  70. package/dist/calcite/p-1c8fe17f.system.entry.js +5 -0
  71. package/dist/calcite/p-1d6404b5.system.js +5 -0
  72. package/dist/calcite/p-1dd440e6.system.entry.js +5 -0
  73. package/dist/calcite/p-1fb7138b.js +5 -0
  74. package/dist/calcite/p-243d95ab.system.entry.js +5 -0
  75. package/dist/calcite/p-2451da5b.entry.js +5 -0
  76. package/dist/calcite/p-26508b91.js +5 -0
  77. package/dist/calcite/p-288bc438.system.js +5 -0
  78. package/dist/calcite/p-289bc56f.entry.js +5 -0
  79. package/dist/calcite/p-29771742.entry.js +5 -0
  80. package/dist/calcite/p-2a714a22.entry.js +5 -0
  81. package/dist/calcite/p-2aa3007a.entry.js +5 -0
  82. package/dist/calcite/p-2d09cc25.js +5 -0
  83. package/dist/calcite/p-2e29554c.js +5 -0
  84. package/dist/calcite/p-33226317.entry.js +5 -0
  85. package/dist/calcite/p-33802886.entry.js +5 -0
  86. package/dist/calcite/p-34e5baa7.system.js +5 -0
  87. package/dist/calcite/p-378ffa38.system.js +5 -0
  88. package/dist/calcite/p-38bd222a.entry.js +5 -0
  89. package/dist/calcite/p-3a592bf3.system.entry.js +5 -0
  90. package/dist/calcite/p-3dae9da3.js +5 -0
  91. package/dist/calcite/p-3e6fcede.entry.js +5 -0
  92. package/dist/calcite/p-4035444d.system.js +5 -0
  93. package/dist/calcite/p-4778c5cf.system.entry.js +5 -0
  94. package/dist/calcite/p-477bac2c.system.js +5 -0
  95. package/dist/calcite/p-4acfb654.entry.js +5 -0
  96. package/dist/calcite/p-4d11efdb.system.entry.js +5 -0
  97. package/dist/calcite/p-4de6f4fd.system.js +5 -0
  98. package/dist/calcite/p-4e16515a.system.entry.js +5 -0
  99. package/dist/calcite/p-4f1f83d2.entry.js +5 -0
  100. package/dist/calcite/p-502ea583.entry.js +5 -0
  101. package/dist/calcite/p-523bc291.system.js +5 -0
  102. package/dist/calcite/p-52cc870b.js +5 -0
  103. package/dist/calcite/p-54394dfe.system.entry.js +5 -0
  104. package/dist/calcite/p-56b352bf.system.js +5 -0
  105. package/dist/calcite/p-578509a8.entry.js +5 -0
  106. package/dist/calcite/p-592da79d.system.entry.js +5 -0
  107. package/dist/calcite/p-59a285d8.system.entry.js +5 -0
  108. package/dist/calcite/p-5c0c29bc.entry.js +5 -0
  109. package/dist/calcite/p-5eee672a.system.entry.js +5 -0
  110. package/dist/calcite/p-5efd81e1.entry.js +5 -0
  111. package/dist/calcite/p-5f2a9710.system.entry.js +5 -0
  112. package/dist/calcite/p-5f817b79.entry.js +5 -0
  113. package/dist/calcite/p-6296644b.entry.js +5 -0
  114. package/dist/calcite/p-63da2e34.system.entry.js +5 -0
  115. package/dist/calcite/p-63e60894.entry.js +5 -0
  116. package/dist/calcite/p-6484ffb7.system.entry.js +5 -0
  117. package/dist/calcite/p-659898bf.entry.js +5 -0
  118. package/dist/calcite/p-6a541e77.system.js +5 -0
  119. package/dist/calcite/p-6cc23c39.system.js +5 -0
  120. package/dist/calcite/p-6d44b7d9.system.js +5 -0
  121. package/dist/calcite/p-714ae4f6.entry.js +5 -0
  122. package/dist/calcite/p-72563742.js +5 -0
  123. package/dist/calcite/p-74f390e1.system.entry.js +5 -0
  124. package/dist/calcite/p-75264173.entry.js +5 -0
  125. package/dist/calcite/p-75955cef.entry.js +5 -0
  126. package/dist/calcite/p-765fb8ed.entry.js +5 -0
  127. package/dist/calcite/p-7ba971b5.system.entry.js +5 -0
  128. package/dist/calcite/p-7bb94bfa.entry.js +5 -0
  129. package/dist/calcite/p-7cbc72b6.system.entry.js +5 -0
  130. package/dist/calcite/p-7ed4c551.system.js +5 -0
  131. package/dist/calcite/p-81ab443c.entry.js +5 -0
  132. package/dist/calcite/p-82c6cd9a.entry.js +5 -0
  133. package/dist/calcite/p-8340b572.js +5 -0
  134. package/dist/calcite/p-840f2937.system.entry.js +5 -0
  135. package/dist/calcite/p-8445bc9c.system.entry.js +5 -0
  136. package/dist/calcite/p-85032edc.system.entry.js +5 -0
  137. package/dist/calcite/p-8603b2e1.entry.js +5 -0
  138. package/dist/calcite/p-8a63221d.js +5 -0
  139. package/dist/calcite/p-8b2ead09.system.entry.js +5 -0
  140. package/dist/calcite/p-8baa9ba4.entry.js +5 -0
  141. package/dist/calcite/p-8e252799.system.js +5 -0
  142. package/dist/calcite/p-8fef13ca.system.entry.js +5 -0
  143. package/dist/calcite/p-91645bf7.system.js +5 -0
  144. package/dist/calcite/p-9338b0bc.entry.js +5 -0
  145. package/dist/calcite/p-9577dfd9.entry.js +5 -0
  146. package/dist/calcite/p-95b9a0f2.system.entry.js +5 -0
  147. package/dist/calcite/p-968ea270.entry.js +5 -0
  148. package/dist/calcite/p-9abbbcbd.system.entry.js +5 -0
  149. package/dist/calcite/p-9be6633a.entry.js +5 -0
  150. package/dist/calcite/p-a0c02648.system.js +5 -0
  151. package/dist/calcite/p-a5269f14.system.entry.js +5 -0
  152. package/dist/calcite/p-a61d85db.system.entry.js +5 -0
  153. package/dist/calcite/p-a62de092.js +5 -0
  154. package/dist/calcite/p-a8dc2982.system.entry.js +5 -0
  155. package/dist/calcite/p-aa47308a.entry.js +5 -0
  156. package/dist/calcite/p-ac9607f2.system.js +11 -0
  157. package/dist/calcite/p-accdb0ce.js +5 -0
  158. package/dist/calcite/p-ace12b8d.entry.js +5 -0
  159. package/dist/calcite/p-aced5f01.entry.js +5 -0
  160. package/dist/calcite/p-aec398f3.system.entry.js +5 -0
  161. package/dist/calcite/p-b06207bb.js +5 -0
  162. package/dist/calcite/p-b1351c3e.system.entry.js +5 -0
  163. package/dist/calcite/p-b1a96c72.system.entry.js +5 -0
  164. package/dist/calcite/p-b1f88d45.system.js +5 -0
  165. package/dist/calcite/p-b2ab0485.js +5 -0
  166. package/dist/calcite/p-b4b1081f.system.entry.js +5 -0
  167. package/dist/calcite/p-b94bf8ac.system.entry.js +5 -0
  168. package/dist/calcite/p-c0e35328.entry.js +5 -0
  169. package/dist/calcite/p-c34c4414.system.js +5 -0
  170. package/dist/calcite/p-c3ba61ea.entry.js +5 -0
  171. package/dist/calcite/p-c4cb4fab.system.entry.js +5 -0
  172. package/dist/calcite/p-c5ec8d74.js +11 -0
  173. package/dist/calcite/p-c61ebee9.entry.js +5 -0
  174. package/dist/calcite/p-c87c04a9.entry.js +5 -0
  175. package/dist/calcite/p-ca3bb147.entry.js +5 -0
  176. package/dist/calcite/p-caf7085a.system.js +5 -0
  177. package/dist/calcite/p-cbe9f1a2.system.entry.js +5 -0
  178. package/dist/calcite/p-cbf6bb04.system.js +5 -0
  179. package/dist/calcite/p-cc788d2e.entry.js +5 -0
  180. package/dist/calcite/p-cced5508.system.entry.js +5 -0
  181. package/dist/calcite/p-cf03b144.system.entry.js +5 -0
  182. package/dist/calcite/p-d53cc958.js +5 -0
  183. package/dist/calcite/p-d550ee4d.entry.js +5 -0
  184. package/dist/calcite/p-d6e30c54.entry.js +5 -0
  185. package/dist/calcite/p-d6f20229.js +5 -0
  186. package/dist/calcite/p-db10485b.system.js +5 -0
  187. package/dist/calcite/p-dbe899c6.system.entry.js +5 -0
  188. package/dist/calcite/p-dd464e44.system.entry.js +5 -0
  189. package/dist/calcite/p-deb36fde.system.entry.js +5 -0
  190. package/dist/calcite/p-defcee80.system.entry.js +5 -0
  191. package/dist/calcite/p-dff7dc90.system.js +5 -0
  192. package/dist/calcite/p-e020662f.system.js +5 -0
  193. package/dist/calcite/p-e095517f.system.js +5 -0
  194. package/dist/calcite/p-e33fe285.system.entry.js +5 -0
  195. package/dist/calcite/p-e4acb5a8.js +5 -0
  196. package/dist/calcite/p-e52495d3.system.entry.js +5 -0
  197. package/dist/calcite/p-e5e3b591.entry.js +5 -0
  198. package/dist/calcite/p-e616f9b5.entry.js +5 -0
  199. package/dist/calcite/p-e6d05ad6.system.entry.js +5 -0
  200. package/dist/calcite/p-e70cb594.system.entry.js +5 -0
  201. package/dist/calcite/p-e956e279.js +5 -0
  202. package/dist/calcite/p-eada9cef.entry.js +5 -0
  203. package/dist/calcite/p-ecc00ef0.entry.js +5 -0
  204. package/dist/calcite/p-ed15771f.system.entry.js +5 -0
  205. package/dist/calcite/p-ed453bfb.entry.js +5 -0
  206. package/dist/calcite/p-ef39847e.entry.js +5 -0
  207. package/dist/calcite/p-efb2169a.entry.js +5 -0
  208. package/dist/calcite/p-f0338acf.system.entry.js +5 -0
  209. package/dist/calcite/p-f07d3627.js +5 -0
  210. package/dist/calcite/p-f1c5e7cf.entry.js +5 -0
  211. package/dist/calcite/p-f243b615.js +5 -0
  212. package/dist/calcite/p-f278dd53.entry.js +5 -0
  213. package/dist/calcite/p-f9c46578.entry.js +5 -0
  214. package/dist/calcite/p-fc47547f.system.entry.js +5 -0
  215. package/dist/calcite/p-fc643963.entry.js +5 -0
  216. package/dist/cjs/CalciteExpandToggle-5f60c98b.js +94 -0
  217. package/dist/cjs/CalciteHeading-112c19f9.js +19 -0
  218. package/dist/cjs/array-a5dedf5a.js +11 -0
  219. package/dist/cjs/calcite-accordion_2.cjs.entry.js +11 -4
  220. package/dist/cjs/calcite-action-bar.cjs.entry.js +12 -8
  221. package/dist/cjs/calcite-action-group.cjs.entry.js +9 -5
  222. package/dist/cjs/calcite-action-menu.cjs.entry.js +14 -8
  223. package/dist/cjs/calcite-action-pad.cjs.entry.js +10 -6
  224. package/dist/cjs/calcite-action.cjs.entry.js +11 -11
  225. package/dist/cjs/calcite-alert.cjs.entry.js +9 -5
  226. package/dist/cjs/calcite-avatar.cjs.entry.js +8 -4
  227. package/dist/cjs/calcite-block_2.cjs.entry.js +22 -17
  228. package/dist/cjs/calcite-button.cjs.entry.js +60 -39
  229. package/dist/cjs/calcite-card.cjs.entry.js +9 -5
  230. package/dist/cjs/calcite-checkbox.cjs.entry.js +38 -83
  231. package/dist/cjs/calcite-chip.cjs.entry.js +7 -3
  232. package/dist/cjs/calcite-color-picker_3.cjs.entry.js +39 -38
  233. package/dist/cjs/calcite-combobox_3.cjs.entry.js +87 -24
  234. package/dist/cjs/calcite-date-picker_4.cjs.entry.js +40 -18
  235. package/dist/cjs/calcite-dropdown_3.cjs.entry.js +47 -38
  236. package/dist/cjs/calcite-fab.cjs.entry.js +7 -3
  237. package/dist/cjs/calcite-filter.cjs.entry.js +52 -19
  238. package/dist/cjs/calcite-flow.cjs.entry.js +6 -2
  239. package/dist/cjs/calcite-graph_2.cjs.entry.js +62 -34
  240. package/dist/cjs/calcite-handle.cjs.entry.js +5 -1
  241. package/dist/cjs/calcite-icon.cjs.entry.js +8 -4
  242. package/dist/cjs/calcite-inline-editable.cjs.entry.js +58 -44
  243. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +87 -30
  244. package/dist/cjs/calcite-input-message.cjs.entry.js +7 -3
  245. package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +31 -18
  246. package/dist/cjs/calcite-input.cjs.entry.js +121 -80
  247. package/dist/cjs/calcite-label.cjs.entry.js +7 -3
  248. package/dist/cjs/calcite-link.cjs.entry.js +13 -3
  249. package/dist/cjs/calcite-list_3.cjs.entry.js +31 -6
  250. package/dist/cjs/calcite-loader.cjs.entry.js +7 -3
  251. package/dist/cjs/calcite-modal.cjs.entry.js +9 -5
  252. package/dist/cjs/calcite-notice.cjs.entry.js +9 -5
  253. package/dist/cjs/calcite-option_3.cjs.entry.js +46 -16
  254. package/dist/cjs/calcite-pagination.cjs.entry.js +7 -3
  255. package/dist/cjs/calcite-panel.cjs.entry.js +12 -7
  256. package/dist/cjs/calcite-pick-list_3.cjs.entry.js +12 -8
  257. package/dist/cjs/calcite-popover_2.cjs.entry.js +11 -7
  258. package/dist/cjs/calcite-progress.cjs.entry.js +5 -1
  259. package/dist/cjs/calcite-radio-button-group.cjs.entry.js +5 -1
  260. package/dist/cjs/calcite-radio-group_2.cjs.entry.js +37 -37
  261. package/dist/cjs/calcite-radio_2.cjs.entry.js +103 -97
  262. package/dist/cjs/calcite-rating.cjs.entry.js +27 -14
  263. package/dist/cjs/calcite-scrim.cjs.entry.js +5 -1
  264. package/dist/cjs/calcite-shell_3.cjs.entry.js +11 -6
  265. package/dist/cjs/calcite-sortable-list.cjs.entry.js +7 -3
  266. package/dist/cjs/calcite-split-button.cjs.entry.js +7 -3
  267. package/dist/cjs/calcite-stepper_2.cjs.entry.js +8 -4
  268. package/dist/cjs/calcite-switch.cjs.entry.js +31 -46
  269. package/dist/cjs/calcite-tab_4.cjs.entry.js +10 -6
  270. package/dist/cjs/calcite-tile-select_2.cjs.entry.js +9 -7
  271. package/dist/cjs/calcite-tile.cjs.entry.js +8 -4
  272. package/dist/cjs/calcite-tip_3.cjs.entry.js +9 -5
  273. package/dist/cjs/calcite-tooltip_2.cjs.entry.js +13 -8
  274. package/dist/cjs/calcite-tree_2.cjs.entry.js +24 -13
  275. package/dist/cjs/calcite-value-list_2.cjs.entry.js +12 -8
  276. package/dist/cjs/calcite.cjs.js +7 -3
  277. package/dist/cjs/debounce-95979061.js +495 -0
  278. package/dist/cjs/dom-19822169.js +170 -0
  279. package/dist/cjs/forIn-a5d553af.js +622 -0
  280. package/dist/cjs/form-a5b44a1f.js +179 -0
  281. package/dist/cjs/guid-b270f0db.js +20 -0
  282. package/dist/cjs/index-6b5d2de5.js +1718 -0
  283. package/dist/cjs/index.cjs.js +4 -0
  284. package/dist/cjs/interfaces-54651c1c.js +13 -0
  285. package/dist/cjs/key-8bfb93ec.js +37 -0
  286. package/dist/cjs/label-8e3552b2.js +87 -0
  287. package/dist/cjs/loader.cjs.js +7 -3
  288. package/dist/cjs/locale-69dc9583.js +123 -0
  289. package/dist/cjs/math-145c80e2.js +21 -0
  290. package/dist/cjs/number-e6448e15.js +45 -0
  291. package/dist/cjs/observers-41837607.js +22 -0
  292. package/dist/cjs/popper-87bf13e6.js +1790 -0
  293. package/dist/cjs/resources-3f7b51c8.js +232 -0
  294. package/dist/cjs/resources-407a4290.js +20 -0
  295. package/dist/cjs/resources-cd25dbae.js +346 -0
  296. package/dist/cjs/resources-ffe563a2.js +21 -0
  297. package/dist/cjs/sortable.esm-d7a4560b.js +3019 -0
  298. package/dist/cjs/utils-55d67711.js +123 -0
  299. package/dist/collection/collection-manifest.json +2 -2
  300. package/dist/collection/components/calcite-accordion/calcite-accordion.js +6 -2
  301. package/dist/collection/components/calcite-accordion/interfaces.js +4 -0
  302. package/dist/collection/components/calcite-accordion-item/calcite-accordion-item.js +15 -8
  303. package/dist/collection/components/calcite-action/calcite-action.css +17 -68
  304. package/dist/collection/components/calcite-action/calcite-action.js +38 -35
  305. package/dist/collection/components/calcite-action/resources.js +4 -0
  306. package/dist/collection/components/calcite-action-bar/calcite-action-bar.js +4 -0
  307. package/dist/collection/components/calcite-action-bar/resources.js +4 -0
  308. package/dist/collection/components/calcite-action-bar/utils.js +4 -0
  309. package/dist/collection/components/calcite-action-group/calcite-action-group.js +4 -0
  310. package/dist/collection/components/calcite-action-group/resources.js +4 -0
  311. package/dist/collection/components/calcite-action-menu/calcite-action-menu.js +10 -4
  312. package/dist/collection/components/calcite-action-menu/resources.js +4 -0
  313. package/dist/collection/components/calcite-action-pad/calcite-action-pad.js +4 -0
  314. package/dist/collection/components/calcite-action-pad/resources.js +4 -0
  315. package/dist/collection/components/calcite-alert/calcite-alert.css +0 -62
  316. package/dist/collection/components/calcite-alert/calcite-alert.js +10 -6
  317. package/dist/collection/components/calcite-alert/interfaces.js +4 -0
  318. package/dist/collection/components/calcite-alert/resources.js +4 -0
  319. package/dist/collection/components/calcite-avatar/calcite-avatar.js +4 -0
  320. package/dist/collection/components/calcite-avatar/utils.js +4 -0
  321. package/dist/collection/components/calcite-block/calcite-block.css +25 -22
  322. package/dist/collection/components/calcite-block/calcite-block.js +17 -15
  323. package/dist/collection/components/calcite-block/resources.js +8 -2
  324. package/dist/collection/components/calcite-block-section/calcite-block-section.css +1 -0
  325. package/dist/collection/components/calcite-block-section/calcite-block-section.js +4 -0
  326. package/dist/collection/components/calcite-block-section/interfaces.js +4 -0
  327. package/dist/collection/components/calcite-block-section/resources.js +4 -0
  328. package/dist/collection/components/calcite-button/calcite-button.css +20 -14
  329. package/dist/collection/components/calcite-button/calcite-button.js +37 -37
  330. package/dist/collection/components/calcite-button/interfaces.js +4 -0
  331. package/dist/collection/components/calcite-button/resources.js +4 -0
  332. package/dist/collection/components/calcite-card/calcite-card.js +12 -8
  333. package/dist/collection/components/calcite-card/resources.js +4 -0
  334. package/dist/collection/components/calcite-checkbox/calcite-checkbox.css +26 -12
  335. package/dist/collection/components/calcite-checkbox/calcite-checkbox.js +72 -117
  336. package/dist/collection/components/calcite-chip/calcite-chip.js +6 -2
  337. package/dist/collection/components/calcite-chip/interfaces.js +4 -0
  338. package/dist/collection/components/calcite-chip/resources.js +4 -0
  339. package/dist/collection/components/calcite-color-picker/calcite-color-picker.js +67 -62
  340. package/dist/collection/components/calcite-color-picker/interfaces.js +4 -0
  341. package/dist/collection/components/calcite-color-picker/resources.js +4 -0
  342. package/dist/collection/components/calcite-color-picker/utils.js +4 -0
  343. package/dist/collection/components/calcite-color-picker-hex-input/calcite-color-picker-hex-input.js +19 -19
  344. package/dist/collection/components/calcite-color-picker-hex-input/resources.js +4 -0
  345. package/dist/collection/components/calcite-color-picker-swatch/calcite-color-picker-swatch.js +6 -2
  346. package/dist/collection/components/calcite-color-picker-swatch/resources.js +4 -0
  347. package/dist/collection/components/calcite-combobox/calcite-combobox.css +32 -4
  348. package/dist/collection/components/calcite-combobox/calcite-combobox.js +149 -24
  349. package/dist/collection/components/calcite-combobox/interfaces.js +4 -0
  350. package/dist/collection/components/calcite-combobox/resources.js +4 -0
  351. package/dist/collection/components/calcite-combobox/utils.js +4 -0
  352. package/dist/collection/components/calcite-combobox-item/calcite-combobox-item.css +1 -1
  353. package/dist/collection/components/calcite-combobox-item/calcite-combobox-item.js +4 -0
  354. package/dist/collection/components/calcite-combobox-item/resources.js +4 -0
  355. package/dist/collection/components/calcite-combobox-item-group/calcite-combobox-item-group.js +4 -0
  356. package/dist/collection/components/calcite-combobox-item-group/resources.js +4 -0
  357. package/dist/collection/components/calcite-date-picker/calcite-date-picker.js +55 -21
  358. package/dist/collection/components/calcite-date-picker/interfaces.js +4 -0
  359. package/dist/collection/components/calcite-date-picker/resources.js +4 -0
  360. package/dist/collection/components/calcite-date-picker/utils.js +4 -0
  361. package/dist/collection/components/calcite-date-picker-day/calcite-date-picker-day.css +1 -1
  362. package/dist/collection/components/calcite-date-picker-day/calcite-date-picker-day.js +6 -2
  363. package/dist/collection/components/calcite-date-picker-month/calcite-date-picker-month.css +1 -1
  364. package/dist/collection/components/calcite-date-picker-month/calcite-date-picker-month.js +10 -6
  365. package/dist/collection/components/calcite-date-picker-month-header/calcite-date-picker-month-header.css +1 -1
  366. package/dist/collection/components/calcite-date-picker-month-header/calcite-date-picker-month-header.js +4 -0
  367. package/dist/collection/components/calcite-dropdown/calcite-dropdown.js +47 -36
  368. package/dist/collection/components/calcite-dropdown/interfaces.js +4 -0
  369. package/dist/collection/components/calcite-dropdown/resources.js +4 -0
  370. package/dist/collection/components/calcite-dropdown-group/calcite-dropdown-group.js +6 -2
  371. package/dist/collection/components/calcite-dropdown-group/interfaces.js +4 -0
  372. package/dist/collection/components/calcite-dropdown-group/resources.js +4 -0
  373. package/dist/collection/components/calcite-dropdown-item/calcite-dropdown-item.css +33 -27
  374. package/dist/collection/components/calcite-dropdown-item/calcite-dropdown-item.js +10 -6
  375. package/dist/collection/components/calcite-dropdown-item/resources.js +4 -0
  376. package/dist/collection/components/calcite-fab/calcite-fab.js +6 -2
  377. package/dist/collection/components/calcite-fab/resources.js +4 -0
  378. package/dist/collection/components/calcite-filter/calcite-filter.js +113 -20
  379. package/dist/collection/components/calcite-filter/resources.js +4 -0
  380. package/dist/collection/components/calcite-flow/calcite-flow.js +4 -0
  381. package/dist/collection/components/calcite-flow/interfaces.js +4 -0
  382. package/dist/collection/components/calcite-flow/resources.js +4 -0
  383. package/dist/collection/components/calcite-graph/calcite-graph.js +52 -6
  384. package/dist/collection/components/calcite-graph/interfaces.js +4 -0
  385. package/dist/collection/components/calcite-graph/util.js +5 -1
  386. package/dist/collection/components/calcite-handle/calcite-handle.js +6 -2
  387. package/dist/collection/components/calcite-handle/resources.js +4 -0
  388. package/dist/collection/components/calcite-icon/assets/calcite-icon/checkExtent16.json +1 -0
  389. package/dist/collection/components/calcite-icon/assets/calcite-icon/checkExtent24.json +1 -0
  390. package/dist/collection/components/calcite-icon/assets/calcite-icon/checkExtent32.json +1 -0
  391. package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTime16.json +1 -0
  392. package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTime24.json +1 -0
  393. package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTime32.json +1 -0
  394. package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeLargest16.json +1 -0
  395. package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeLargest24.json +1 -0
  396. package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeLargest32.json +1 -0
  397. package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeSmallest16.json +1 -0
  398. package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeSmallest24.json +1 -0
  399. package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeSmallest32.json +1 -0
  400. package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeXBar16.json +1 -0
  401. package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeXBar24.json +1 -0
  402. package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeXBar32.json +1 -0
  403. package/dist/collection/components/calcite-icon/assets/calcite-icon/groupItems16.json +1 -0
  404. package/dist/collection/components/calcite-icon/assets/calcite-icon/groupItems24.json +1 -0
  405. package/dist/collection/components/calcite-icon/assets/calcite-icon/groupItems32.json +1 -0
  406. package/dist/collection/components/calcite-icon/assets/calcite-icon/groupLayoutElements16.json +1 -0
  407. package/dist/collection/components/calcite-icon/assets/calcite-icon/groupLayoutElements24.json +1 -0
  408. package/dist/collection/components/calcite-icon/assets/calcite-icon/groupLayoutElements32.json +1 -0
  409. package/dist/collection/components/calcite-icon/assets/calcite-icon/penMark16.json +1 -0
  410. package/dist/collection/components/calcite-icon/assets/calcite-icon/penMark24.json +1 -0
  411. package/dist/collection/components/calcite-icon/assets/calcite-icon/penMark32.json +1 -0
  412. package/dist/collection/components/calcite-icon/assets/calcite-icon/penMarkPlus16.json +1 -0
  413. package/dist/collection/components/calcite-icon/assets/calcite-icon/penMarkPlus24.json +1 -0
  414. package/dist/collection/components/calcite-icon/assets/calcite-icon/penMarkPlus32.json +1 -0
  415. package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsLargest16.json +1 -0
  416. package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsLargest24.json +1 -0
  417. package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsLargest32.json +1 -0
  418. package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsSmallest16.json +1 -0
  419. package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsSmallest24.json +1 -0
  420. package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsSmallest32.json +1 -0
  421. package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsXBar16.json +1 -0
  422. package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsXBar24.json +1 -0
  423. package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsXBar32.json +1 -0
  424. package/dist/collection/components/calcite-icon/assets/calcite-icon/subscript16.json +1 -0
  425. package/dist/collection/components/calcite-icon/assets/calcite-icon/subscript24.json +1 -0
  426. package/dist/collection/components/calcite-icon/assets/calcite-icon/subscript32.json +1 -0
  427. package/dist/collection/components/calcite-icon/assets/calcite-icon/superscript16.json +1 -0
  428. package/dist/collection/components/calcite-icon/assets/calcite-icon/superscript24.json +1 -0
  429. package/dist/collection/components/calcite-icon/assets/calcite-icon/superscript32.json +1 -0
  430. package/dist/collection/components/calcite-icon/assets/calcite-icon/ungroupItems16.json +1 -0
  431. package/dist/collection/components/calcite-icon/assets/calcite-icon/ungroupItems24.json +1 -0
  432. package/dist/collection/components/calcite-icon/assets/calcite-icon/ungroupItems32.json +1 -0
  433. package/dist/collection/components/calcite-icon/assets/calcite-icon/ungroupLayoutElements16.json +1 -0
  434. package/dist/collection/components/calcite-icon/assets/calcite-icon/ungroupLayoutElements24.json +1 -0
  435. package/dist/collection/components/calcite-icon/assets/calcite-icon/ungroupLayoutElements32.json +1 -0
  436. package/dist/collection/components/calcite-icon/calcite-icon.js +4 -0
  437. package/dist/collection/components/calcite-icon/resources.js +4 -0
  438. package/dist/collection/components/calcite-icon/utils.js +4 -0
  439. package/dist/collection/components/calcite-inline-editable/calcite-inline-editable.css +8 -54
  440. package/dist/collection/components/calcite-inline-editable/calcite-inline-editable.js +61 -45
  441. package/dist/collection/components/calcite-inline-editable/resources.js +11 -7
  442. package/dist/collection/components/calcite-input/calcite-input.css +102 -68
  443. package/dist/collection/components/calcite-input/calcite-input.js +159 -90
  444. package/dist/collection/components/calcite-input/interfaces.js +4 -0
  445. package/dist/collection/components/calcite-input/resources.js +18 -12
  446. package/dist/collection/components/calcite-input-date-picker/calcite-input-date-picker.css +15 -0
  447. package/dist/collection/components/calcite-input-date-picker/calcite-input-date-picker.js +186 -59
  448. package/dist/collection/components/calcite-input-message/calcite-input-message.js +6 -2
  449. package/dist/collection/components/calcite-input-message/interfaces.js +4 -0
  450. package/dist/collection/components/calcite-input-time-picker/calcite-input-time-picker.css +15 -0
  451. package/dist/collection/components/calcite-input-time-picker/calcite-input-time-picker.js +50 -15
  452. package/dist/collection/components/calcite-label/calcite-label.js +6 -2
  453. package/dist/collection/components/calcite-label/resources.js +4 -0
  454. package/dist/collection/components/calcite-link/calcite-link.js +15 -1
  455. package/dist/collection/components/calcite-list/calcite-list.js +37 -1
  456. package/dist/collection/components/calcite-list/resources.js +4 -0
  457. package/dist/collection/components/calcite-list-item/calcite-list-item.css +7 -0
  458. package/dist/collection/components/calcite-list-item/calcite-list-item.js +34 -2
  459. package/dist/collection/components/calcite-list-item/resources.js +4 -0
  460. package/dist/collection/components/calcite-list-item-group/calcite-list-item-group.js +4 -0
  461. package/dist/collection/components/calcite-list-item-group/resources.js +4 -0
  462. package/dist/collection/components/calcite-loader/calcite-loader.css +3 -6
  463. package/dist/collection/components/calcite-loader/calcite-loader.js +4 -0
  464. package/dist/collection/components/calcite-modal/calcite-modal.js +6 -2
  465. package/dist/collection/components/calcite-modal/interfaces.js +4 -0
  466. package/dist/collection/components/calcite-modal/resources.js +4 -0
  467. package/dist/collection/components/calcite-notice/calcite-notice.css +18 -6
  468. package/dist/collection/components/calcite-notice/calcite-notice.js +6 -2
  469. package/dist/collection/components/calcite-notice/resources.js +4 -0
  470. package/dist/collection/components/calcite-option/calcite-option.js +6 -2
  471. package/dist/collection/components/calcite-option-group/calcite-option-group.js +6 -2
  472. package/dist/collection/components/calcite-pagination/calcite-pagination.js +12 -8
  473. package/dist/collection/components/calcite-pagination/resources.js +4 -0
  474. package/dist/collection/components/calcite-panel/calcite-panel.css +16 -6
  475. package/dist/collection/components/calcite-panel/calcite-panel.js +7 -2
  476. package/dist/collection/components/calcite-panel/resources.js +5 -0
  477. package/dist/collection/components/calcite-pick-list/calcite-pick-list.js +4 -0
  478. package/dist/collection/components/calcite-pick-list/resources.js +4 -0
  479. package/dist/collection/components/calcite-pick-list/shared-list-logic.js +4 -0
  480. package/dist/collection/components/calcite-pick-list/shared-list-render.js +4 -0
  481. package/dist/collection/components/calcite-pick-list-group/calcite-pick-list-group.js +4 -0
  482. package/dist/collection/components/calcite-pick-list-group/resources.js +4 -0
  483. package/dist/collection/components/calcite-pick-list-item/calcite-pick-list-item.js +14 -10
  484. package/dist/collection/components/calcite-pick-list-item/resources.js +4 -0
  485. package/dist/collection/components/calcite-popover/calcite-popover.css +1 -0
  486. package/dist/collection/components/calcite-popover/calcite-popover.js +13 -9
  487. package/dist/collection/components/calcite-popover/resources.js +4 -0
  488. package/dist/collection/components/calcite-popover-manager/calcite-popover-manager.js +6 -2
  489. package/dist/collection/components/calcite-progress/calcite-progress.js +4 -0
  490. package/dist/collection/components/calcite-radio/calcite-radio.js +8 -4
  491. package/dist/collection/components/calcite-radio-button/calcite-radio-button.css +18 -1
  492. package/dist/collection/components/calcite-radio-button/calcite-radio-button.js +115 -116
  493. package/dist/collection/components/calcite-radio-button/resources.js +5 -1
  494. package/dist/collection/components/calcite-radio-button-group/calcite-radio-button-group.js +4 -0
  495. package/dist/collection/components/calcite-radio-group/calcite-radio-group.css +15 -0
  496. package/dist/collection/components/calcite-radio-group/calcite-radio-group.js +70 -30
  497. package/dist/collection/components/calcite-radio-group/interfaces.js +4 -0
  498. package/dist/collection/components/calcite-radio-group-item/calcite-radio-group-item.css +1 -5
  499. package/dist/collection/components/calcite-radio-group-item/calcite-radio-group-item.js +6 -2
  500. package/dist/collection/components/calcite-radio-group-item/resources.js +4 -0
  501. package/dist/collection/components/calcite-rating/calcite-rating.css +15 -0
  502. package/dist/collection/components/calcite-rating/calcite-rating.js +65 -13
  503. package/dist/collection/components/calcite-rating/resources.js +4 -0
  504. package/dist/collection/components/calcite-scrim/calcite-scrim.js +6 -2
  505. package/dist/collection/components/calcite-scrim/resources.js +4 -0
  506. package/dist/collection/components/calcite-select/calcite-select.css +15 -0
  507. package/dist/collection/components/calcite-select/calcite-select.js +103 -13
  508. package/dist/collection/components/calcite-select/resources.js +4 -0
  509. package/dist/collection/components/calcite-shell/calcite-shell.css +11 -11
  510. package/dist/collection/components/calcite-shell/calcite-shell.js +4 -0
  511. package/dist/collection/components/calcite-shell/resources.js +4 -0
  512. package/dist/collection/components/calcite-shell-center-row/calcite-shell-center-row.js +4 -0
  513. package/dist/collection/components/calcite-shell-center-row/resources.js +4 -0
  514. package/dist/collection/components/calcite-shell-panel/calcite-shell-panel.css +38 -21
  515. package/dist/collection/components/calcite-shell-panel/calcite-shell-panel.js +6 -2
  516. package/dist/collection/components/calcite-shell-panel/resources.js +5 -0
  517. package/dist/collection/components/calcite-slider/calcite-slider.css +18 -4
  518. package/dist/collection/components/calcite-slider/calcite-slider.js +85 -24
  519. package/dist/collection/components/calcite-sortable-list/calcite-sortable-list.js +4 -0
  520. package/dist/collection/components/calcite-sortable-list/resources.js +4 -0
  521. package/dist/collection/components/calcite-split-button/calcite-split-button.js +6 -2
  522. package/dist/collection/components/calcite-split-button/resources.js +4 -0
  523. package/dist/collection/components/calcite-stepper/calcite-stepper.js +8 -4
  524. package/dist/collection/components/calcite-stepper-item/calcite-stepper-item.js +18 -14
  525. package/dist/collection/components/calcite-switch/calcite-switch.css +15 -0
  526. package/dist/collection/components/calcite-switch/calcite-switch.js +35 -62
  527. package/dist/collection/components/calcite-tab/calcite-tab.css +5 -0
  528. package/dist/collection/components/calcite-tab/calcite-tab.js +8 -4
  529. package/dist/collection/components/calcite-tab/interfaces.js +4 -0
  530. package/dist/collection/components/calcite-tab-nav/calcite-tab-nav.js +18 -14
  531. package/dist/collection/components/calcite-tab-title/calcite-tab-title.js +20 -16
  532. package/dist/collection/components/calcite-tabs/calcite-tabs.js +4 -0
  533. package/dist/collection/components/calcite-tabs/interfaces.js +4 -0
  534. package/dist/collection/components/calcite-tabs/resources.js +4 -0
  535. package/dist/collection/components/calcite-tile/calcite-tile.css +4 -0
  536. package/dist/collection/components/calcite-tile/calcite-tile.js +6 -2
  537. package/dist/collection/components/calcite-tile/resources.js +4 -0
  538. package/dist/collection/components/calcite-tile-select/calcite-tile-select.js +24 -11
  539. package/dist/collection/components/calcite-tile-select/interfaces.js +4 -0
  540. package/dist/collection/components/calcite-tile-select-group/calcite-tile-select-group.js +4 -0
  541. package/dist/collection/components/calcite-tile-select-group/interfaces.js +4 -0
  542. package/dist/collection/components/calcite-time-picker/calcite-time-picker.js +34 -30
  543. package/dist/collection/components/calcite-time-picker/resources.js +4 -0
  544. package/dist/collection/components/calcite-tip/calcite-tip.js +4 -0
  545. package/dist/collection/components/calcite-tip/resources.js +4 -0
  546. package/dist/collection/components/calcite-tip-group/calcite-tip-group.js +4 -0
  547. package/dist/collection/components/calcite-tip-manager/calcite-tip-manager.js +4 -0
  548. package/dist/collection/components/calcite-tip-manager/resources.js +4 -0
  549. package/dist/collection/components/calcite-tooltip/calcite-tooltip.js +9 -5
  550. package/dist/collection/components/calcite-tooltip/resources.js +4 -0
  551. package/dist/collection/components/calcite-tooltip-manager/calcite-tooltip-manager.js +9 -4
  552. package/dist/collection/components/calcite-tree/calcite-tree.js +14 -10
  553. package/dist/collection/components/calcite-tree/interfaces.js +4 -0
  554. package/dist/collection/components/calcite-tree-item/calcite-tree-item.css +47 -69
  555. package/dist/collection/components/calcite-tree-item/calcite-tree-item.js +39 -28
  556. package/dist/collection/components/calcite-tree-item/interfaces.js +4 -0
  557. package/dist/collection/components/calcite-tree-item/resources.js +4 -0
  558. package/dist/collection/components/calcite-value-list/calcite-value-list.js +4 -0
  559. package/dist/collection/components/calcite-value-list/resources.js +4 -0
  560. package/dist/collection/components/calcite-value-list-item/calcite-value-list-item.js +10 -6
  561. package/dist/collection/components/calcite-value-list-item/resources.js +4 -0
  562. package/dist/collection/components/functional/CalciteExpandToggle.js +4 -0
  563. package/dist/collection/components/functional/CalciteHeading.js +4 -0
  564. package/dist/collection/components/interfaces.js +4 -0
  565. package/dist/collection/utils/array.js +4 -0
  566. package/dist/collection/utils/date.js +4 -0
  567. package/dist/collection/utils/dom.js +4 -0
  568. package/dist/collection/utils/filter.js +4 -0
  569. package/dist/collection/utils/form.js +171 -14
  570. package/dist/collection/utils/guid.js +4 -0
  571. package/dist/collection/utils/key.js +4 -0
  572. package/dist/collection/utils/label.js +41 -8
  573. package/dist/collection/utils/locale.js +4 -0
  574. package/dist/collection/utils/math.js +15 -0
  575. package/dist/collection/utils/number.js +4 -3
  576. package/dist/collection/utils/observers.js +4 -0
  577. package/dist/collection/utils/popper.js +6 -2
  578. package/dist/collection/utils/resources.js +4 -0
  579. package/dist/collection/utils/time.js +4 -0
  580. package/dist/components/CalciteExpandToggle.js +87 -0
  581. package/dist/components/CalciteHeading.js +16 -0
  582. package/dist/components/array.js +9 -0
  583. package/dist/components/calcite-accordion-item.d.ts +11 -0
  584. package/dist/components/calcite-accordion-item.js +159 -0
  585. package/dist/components/calcite-accordion.d.ts +11 -0
  586. package/dist/components/calcite-accordion.js +170 -0
  587. package/dist/components/calcite-action-bar.d.ts +11 -0
  588. package/dist/components/calcite-action-bar.js +269 -0
  589. package/dist/components/calcite-action-group.d.ts +11 -0
  590. package/dist/components/calcite-action-group.js +10 -0
  591. package/dist/components/calcite-action-group2.js +138 -0
  592. package/dist/components/calcite-action-menu.d.ts +11 -0
  593. package/dist/components/calcite-action-menu.js +10 -0
  594. package/dist/components/calcite-action-menu2.js +357 -0
  595. package/dist/components/calcite-action-pad.d.ts +11 -0
  596. package/dist/components/calcite-action-pad.js +201 -0
  597. package/dist/components/calcite-action.d.ts +11 -0
  598. package/dist/components/calcite-action.js +10 -0
  599. package/dist/components/calcite-action2.js +186 -0
  600. package/dist/components/calcite-alert.d.ts +11 -0
  601. package/dist/components/calcite-alert.js +235 -0
  602. package/dist/components/calcite-avatar.d.ts +11 -0
  603. package/dist/components/calcite-avatar.js +174 -0
  604. package/dist/components/calcite-block-section.d.ts +11 -0
  605. package/dist/components/calcite-block-section.js +142 -0
  606. package/dist/components/calcite-block.d.ts +11 -0
  607. package/dist/components/calcite-block.js +217 -0
  608. package/dist/components/calcite-button.d.ts +11 -0
  609. package/dist/components/calcite-button.js +10 -0
  610. package/dist/components/calcite-button2.js +246 -0
  611. package/dist/components/calcite-card.d.ts +11 -0
  612. package/dist/components/calcite-card.js +165 -0
  613. package/dist/components/calcite-checkbox.d.ts +11 -0
  614. package/dist/components/calcite-checkbox.js +10 -0
  615. package/dist/components/calcite-checkbox2.js +156 -0
  616. package/dist/components/calcite-chip.d.ts +11 -0
  617. package/dist/components/calcite-chip.js +10 -0
  618. package/dist/components/calcite-chip2.js +124 -0
  619. package/dist/components/calcite-color-picker-hex-input.d.ts +11 -0
  620. package/dist/components/calcite-color-picker-hex-input.js +10 -0
  621. package/dist/components/calcite-color-picker-hex-input2.js +352 -0
  622. package/dist/components/calcite-color-picker-swatch.d.ts +11 -0
  623. package/dist/components/calcite-color-picker-swatch.js +10 -0
  624. package/dist/components/calcite-color-picker-swatch2.js +2179 -0
  625. package/dist/components/calcite-color-picker.d.ts +11 -0
  626. package/dist/components/calcite-color-picker.js +970 -0
  627. package/dist/components/calcite-combobox-item-group.d.ts +11 -0
  628. package/dist/components/calcite-combobox-item-group.js +71 -0
  629. package/dist/components/calcite-combobox-item.d.ts +11 -0
  630. package/dist/components/calcite-combobox-item.js +171 -0
  631. package/dist/components/calcite-combobox.d.ts +11 -0
  632. package/dist/components/calcite-combobox.js +936 -0
  633. package/dist/components/calcite-date-picker-day.d.ts +11 -0
  634. package/dist/components/calcite-date-picker-day.js +10 -0
  635. package/dist/components/calcite-date-picker-day2.js +102 -0
  636. package/dist/components/calcite-date-picker-month-header.d.ts +11 -0
  637. package/dist/components/calcite-date-picker-month-header.js +10 -0
  638. package/dist/components/calcite-date-picker-month-header2.js +173 -0
  639. package/dist/components/calcite-date-picker-month.d.ts +11 -0
  640. package/dist/components/calcite-date-picker-month.js +10 -0
  641. package/dist/components/calcite-date-picker-month2.js +316 -0
  642. package/dist/components/calcite-date-picker.d.ts +11 -0
  643. package/dist/components/calcite-date-picker.js +10 -0
  644. package/dist/components/calcite-date-picker2.js +507 -0
  645. package/dist/components/calcite-dropdown-group.d.ts +11 -0
  646. package/dist/components/calcite-dropdown-group.js +93 -0
  647. package/dist/components/calcite-dropdown-item.d.ts +11 -0
  648. package/dist/components/calcite-dropdown-item.js +205 -0
  649. package/dist/components/calcite-dropdown.d.ts +11 -0
  650. package/dist/components/calcite-dropdown.js +10 -0
  651. package/dist/components/calcite-dropdown2.js +393 -0
  652. package/dist/components/calcite-fab.d.ts +11 -0
  653. package/dist/components/calcite-fab.js +130 -0
  654. package/dist/components/calcite-filter.d.ts +11 -0
  655. package/dist/components/calcite-filter.js +10 -0
  656. package/dist/components/calcite-filter2.js +199 -0
  657. package/dist/components/calcite-flow.d.ts +11 -0
  658. package/dist/components/calcite-flow.js +141 -0
  659. package/dist/components/calcite-graph.d.ts +11 -0
  660. package/dist/components/calcite-graph.js +10 -0
  661. package/dist/components/calcite-graph2.js +216 -0
  662. package/dist/components/calcite-handle.d.ts +11 -0
  663. package/dist/components/calcite-handle.js +10 -0
  664. package/dist/components/calcite-handle2.js +110 -0
  665. package/dist/components/calcite-icon.d.ts +11 -0
  666. package/dist/components/calcite-icon.js +10 -0
  667. package/dist/components/calcite-icon2.js +188 -0
  668. package/dist/components/calcite-inline-editable.d.ts +11 -0
  669. package/dist/components/calcite-inline-editable.js +255 -0
  670. package/dist/components/calcite-input-date-picker.d.ts +11 -0
  671. package/dist/components/calcite-input-date-picker.js +530 -0
  672. package/dist/components/calcite-input-message.d.ts +11 -0
  673. package/dist/components/calcite-input-message.js +100 -0
  674. package/dist/components/calcite-input-time-picker.d.ts +11 -0
  675. package/dist/components/calcite-input-time-picker.js +291 -0
  676. package/dist/components/calcite-input.d.ts +11 -0
  677. package/dist/components/calcite-input.js +10 -0
  678. package/dist/components/calcite-input2.js +542 -0
  679. package/dist/components/calcite-label.d.ts +11 -0
  680. package/dist/components/calcite-label.js +10 -0
  681. package/dist/components/calcite-label2.js +84 -0
  682. package/dist/components/calcite-link.d.ts +11 -0
  683. package/dist/components/calcite-link.js +10 -0
  684. package/dist/components/calcite-link2.js +100 -0
  685. package/dist/components/calcite-list-item-group.d.ts +11 -0
  686. package/dist/components/calcite-list-item-group.js +60 -0
  687. package/dist/components/calcite-list-item.d.ts +11 -0
  688. package/dist/components/calcite-list-item.js +120 -0
  689. package/dist/components/calcite-list.d.ts +11 -0
  690. package/dist/components/calcite-list.js +62 -0
  691. package/dist/components/calcite-loader.d.ts +11 -0
  692. package/dist/components/calcite-loader.js +10 -0
  693. package/dist/components/calcite-loader2.js +110 -0
  694. package/dist/components/calcite-modal.d.ts +11 -0
  695. package/dist/components/calcite-modal.js +420 -0
  696. package/dist/components/calcite-notice.d.ts +11 -0
  697. package/dist/components/calcite-notice.js +143 -0
  698. package/dist/components/calcite-option-group.d.ts +11 -0
  699. package/dist/components/calcite-option-group.js +64 -0
  700. package/dist/components/calcite-option.d.ts +11 -0
  701. package/dist/components/calcite-option.js +110 -0
  702. package/dist/components/calcite-pagination.d.ts +11 -0
  703. package/dist/components/calcite-pagination.js +210 -0
  704. package/dist/components/calcite-panel.d.ts +11 -0
  705. package/dist/components/calcite-panel.js +313 -0
  706. package/dist/components/calcite-pick-list-group.d.ts +11 -0
  707. package/dist/components/calcite-pick-list-group.js +73 -0
  708. package/dist/components/calcite-pick-list-item.d.ts +11 -0
  709. package/dist/components/calcite-pick-list-item.js +10 -0
  710. package/dist/components/calcite-pick-list-item2.js +233 -0
  711. package/dist/components/calcite-pick-list.d.ts +11 -0
  712. package/dist/components/calcite-pick-list.js +199 -0
  713. package/dist/components/calcite-popover-manager.d.ts +11 -0
  714. package/dist/components/calcite-popover-manager.js +96 -0
  715. package/dist/components/calcite-popover.d.ts +11 -0
  716. package/dist/components/calcite-popover.js +10 -0
  717. package/dist/components/calcite-popover2.js +335 -0
  718. package/dist/components/calcite-progress.d.ts +11 -0
  719. package/dist/components/calcite-progress.js +10 -0
  720. package/dist/components/calcite-progress2.js +55 -0
  721. package/dist/components/calcite-radio-button-group.d.ts +11 -0
  722. package/dist/components/calcite-radio-button-group.js +119 -0
  723. package/dist/components/calcite-radio-button.d.ts +11 -0
  724. package/dist/components/calcite-radio-button.js +297 -0
  725. package/dist/components/calcite-radio-group-item.d.ts +11 -0
  726. package/dist/components/calcite-radio-group-item.js +142 -0
  727. package/dist/components/calcite-radio-group.d.ts +11 -0
  728. package/dist/components/calcite-radio-group.js +234 -0
  729. package/dist/components/calcite-radio.d.ts +11 -0
  730. package/dist/components/calcite-radio.js +10 -0
  731. package/dist/components/calcite-radio2.js +71 -0
  732. package/dist/components/calcite-rating.d.ts +11 -0
  733. package/dist/components/calcite-rating.js +174 -0
  734. package/dist/components/calcite-scrim.d.ts +11 -0
  735. package/dist/components/calcite-scrim.js +10 -0
  736. package/dist/components/calcite-scrim2.js +77 -0
  737. package/dist/components/calcite-select.d.ts +11 -0
  738. package/dist/components/calcite-select.js +253 -0
  739. package/dist/components/calcite-shell-center-row.d.ts +11 -0
  740. package/dist/components/calcite-shell-center-row.js +84 -0
  741. package/dist/components/calcite-shell-panel.d.ts +11 -0
  742. package/dist/components/calcite-shell-panel.js +104 -0
  743. package/dist/components/calcite-shell.d.ts +11 -0
  744. package/dist/components/calcite-shell.js +102 -0
  745. package/dist/components/calcite-slider.d.ts +11 -0
  746. package/dist/components/calcite-slider.js +767 -0
  747. package/dist/components/calcite-sortable-list.d.ts +11 -0
  748. package/dist/components/calcite-sortable-list.js +193 -0
  749. package/dist/components/calcite-split-button.d.ts +11 -0
  750. package/dist/components/calcite-split-button.js +130 -0
  751. package/dist/components/calcite-stepper-item.d.ts +11 -0
  752. package/dist/components/calcite-stepper-item.js +192 -0
  753. package/dist/components/calcite-stepper.d.ts +11 -0
  754. package/dist/components/calcite-stepper.js +250 -0
  755. package/dist/components/calcite-switch.d.ts +11 -0
  756. package/dist/components/calcite-switch.js +10 -0
  757. package/dist/components/calcite-switch2.js +144 -0
  758. package/dist/components/calcite-tab-nav.d.ts +11 -0
  759. package/dist/components/calcite-tab-nav.js +10 -0
  760. package/dist/components/calcite-tab-nav2.js +212 -0
  761. package/dist/components/calcite-tab-title.d.ts +11 -0
  762. package/dist/components/calcite-tab-title.js +10 -0
  763. package/dist/components/calcite-tab-title2.js +233 -0
  764. package/dist/components/calcite-tab.d.ts +11 -0
  765. package/dist/components/calcite-tab.js +10 -0
  766. package/dist/components/calcite-tab2.js +125 -0
  767. package/dist/components/calcite-tabs.d.ts +11 -0
  768. package/dist/components/calcite-tabs.js +10 -0
  769. package/dist/components/calcite-tabs2.js +186 -0
  770. package/dist/components/calcite-tile-select-group.d.ts +11 -0
  771. package/dist/components/calcite-tile-select-group.js +48 -0
  772. package/dist/components/calcite-tile-select.d.ts +11 -0
  773. package/dist/components/calcite-tile-select.js +219 -0
  774. package/dist/components/calcite-tile.d.ts +11 -0
  775. package/dist/components/calcite-tile.js +10 -0
  776. package/dist/components/calcite-tile2.js +101 -0
  777. package/dist/components/calcite-time-picker.d.ts +11 -0
  778. package/dist/components/calcite-time-picker.js +10 -0
  779. package/dist/components/calcite-time-picker2.js +710 -0
  780. package/dist/components/calcite-tip-group.d.ts +11 -0
  781. package/dist/components/calcite-tip-group.js +41 -0
  782. package/dist/components/calcite-tip-manager.d.ts +11 -0
  783. package/dist/components/calcite-tip-manager.js +221 -0
  784. package/dist/components/calcite-tip.d.ts +11 -0
  785. package/dist/components/calcite-tip.js +143 -0
  786. package/dist/components/calcite-tooltip-manager.d.ts +11 -0
  787. package/dist/components/calcite-tooltip-manager.js +10 -0
  788. package/dist/components/calcite-tooltip-manager2.js +171 -0
  789. package/dist/components/calcite-tooltip.d.ts +11 -0
  790. package/dist/components/calcite-tooltip.js +227 -0
  791. package/dist/components/calcite-tree-item.d.ts +11 -0
  792. package/dist/components/calcite-tree-item.js +313 -0
  793. package/dist/components/calcite-tree.d.ts +11 -0
  794. package/dist/components/calcite-tree.js +219 -0
  795. package/dist/components/calcite-value-list-item.d.ts +11 -0
  796. package/dist/components/calcite-value-list-item.js +183 -0
  797. package/dist/components/calcite-value-list.d.ts +11 -0
  798. package/dist/components/calcite-value-list.js +274 -0
  799. package/dist/components/date.js +159 -0
  800. package/dist/components/debounce.js +486 -0
  801. package/dist/components/dom.js +153 -0
  802. package/dist/components/forIn.js +619 -0
  803. package/dist/components/form.js +174 -0
  804. package/dist/components/guid.js +18 -0
  805. package/dist/components/index.d.ts +26 -0
  806. package/dist/components/index.js +5 -0
  807. package/dist/components/interfaces.js +13 -0
  808. package/dist/components/interfaces2.js +14 -0
  809. package/dist/components/key.js +33 -0
  810. package/dist/components/label.js +83 -0
  811. package/dist/components/locale.js +118 -0
  812. package/dist/components/math.js +18 -0
  813. package/dist/components/number.js +40 -0
  814. package/dist/components/observers.js +22 -0
  815. package/dist/components/popper.js +1785 -0
  816. package/dist/components/resources.js +24 -0
  817. package/dist/components/resources2.js +13 -0
  818. package/dist/components/resources3.js +18 -0
  819. package/dist/components/resources4.js +32 -0
  820. package/dist/components/shared-list-render.js +286 -0
  821. package/dist/components/sortable.esm.js +3017 -0
  822. package/dist/components/utils.js +113 -0
  823. package/dist/components/utils2.js +38 -0
  824. package/dist/custom-elements/index.js +1330 -884
  825. package/dist/esm/CalciteExpandToggle-677f2f8b.js +87 -0
  826. package/dist/esm/CalciteHeading-1d6cd311.js +16 -0
  827. package/dist/esm/array-91a648e2.js +9 -0
  828. package/dist/esm/calcite-accordion_2.entry.js +11 -4
  829. package/dist/esm/calcite-action-bar.entry.js +12 -8
  830. package/dist/esm/calcite-action-group.entry.js +9 -5
  831. package/dist/esm/calcite-action-menu.entry.js +14 -8
  832. package/dist/esm/calcite-action-pad.entry.js +10 -6
  833. package/dist/esm/calcite-action.entry.js +11 -11
  834. package/dist/esm/calcite-alert.entry.js +9 -5
  835. package/dist/esm/calcite-avatar.entry.js +8 -4
  836. package/dist/esm/calcite-block_2.entry.js +22 -17
  837. package/dist/esm/calcite-button.entry.js +60 -39
  838. package/dist/esm/calcite-card.entry.js +9 -5
  839. package/dist/esm/calcite-checkbox.entry.js +38 -83
  840. package/dist/esm/calcite-chip.entry.js +7 -3
  841. package/dist/esm/calcite-color-picker_3.entry.js +39 -38
  842. package/dist/esm/calcite-combobox_3.entry.js +87 -24
  843. package/dist/esm/calcite-date-picker_4.entry.js +40 -18
  844. package/dist/esm/calcite-dropdown_3.entry.js +47 -38
  845. package/dist/esm/calcite-fab.entry.js +7 -3
  846. package/dist/esm/calcite-filter.entry.js +52 -19
  847. package/dist/esm/calcite-flow.entry.js +6 -2
  848. package/dist/esm/calcite-graph_2.entry.js +62 -34
  849. package/dist/esm/calcite-handle.entry.js +5 -1
  850. package/dist/esm/calcite-icon.entry.js +8 -4
  851. package/dist/esm/calcite-inline-editable.entry.js +58 -44
  852. package/dist/esm/calcite-input-date-picker.entry.js +87 -30
  853. package/dist/esm/calcite-input-message.entry.js +7 -3
  854. package/dist/esm/calcite-input-time-picker_2.entry.js +31 -18
  855. package/dist/esm/calcite-input.entry.js +121 -80
  856. package/dist/esm/calcite-label.entry.js +7 -3
  857. package/dist/esm/calcite-link.entry.js +13 -3
  858. package/dist/esm/calcite-list_3.entry.js +31 -6
  859. package/dist/esm/calcite-loader.entry.js +7 -3
  860. package/dist/esm/calcite-modal.entry.js +9 -5
  861. package/dist/esm/calcite-notice.entry.js +9 -5
  862. package/dist/esm/calcite-option_3.entry.js +46 -16
  863. package/dist/esm/calcite-pagination.entry.js +7 -3
  864. package/dist/esm/calcite-panel.entry.js +12 -7
  865. package/dist/esm/calcite-pick-list_3.entry.js +12 -8
  866. package/dist/esm/calcite-popover_2.entry.js +11 -7
  867. package/dist/esm/calcite-progress.entry.js +5 -1
  868. package/dist/esm/calcite-radio-button-group.entry.js +5 -1
  869. package/dist/esm/calcite-radio-group_2.entry.js +37 -37
  870. package/dist/esm/calcite-radio_2.entry.js +103 -97
  871. package/dist/esm/calcite-rating.entry.js +27 -14
  872. package/dist/esm/calcite-scrim.entry.js +5 -1
  873. package/dist/esm/calcite-shell_3.entry.js +11 -6
  874. package/dist/esm/calcite-sortable-list.entry.js +7 -3
  875. package/dist/esm/calcite-split-button.entry.js +7 -3
  876. package/dist/esm/calcite-stepper_2.entry.js +8 -4
  877. package/dist/esm/calcite-switch.entry.js +31 -46
  878. package/dist/esm/calcite-tab_4.entry.js +10 -6
  879. package/dist/esm/calcite-tile-select_2.entry.js +9 -7
  880. package/dist/esm/calcite-tile.entry.js +8 -4
  881. package/dist/esm/calcite-tip_3.entry.js +9 -5
  882. package/dist/esm/calcite-tooltip_2.entry.js +13 -8
  883. package/dist/esm/calcite-tree_2.entry.js +24 -13
  884. package/dist/esm/calcite-value-list_2.entry.js +12 -8
  885. package/dist/esm/calcite.js +7 -3
  886. package/dist/esm/debounce-79648d42.js +486 -0
  887. package/dist/esm/dom-f24e866c.js +153 -0
  888. package/dist/esm/forIn-48d8fb84.js +619 -0
  889. package/dist/esm/form-160b0fb5.js +174 -0
  890. package/dist/esm/guid-196bd5ea.js +18 -0
  891. package/dist/esm/index-9de00868.js +1685 -0
  892. package/dist/esm/index.js +4 -1
  893. package/dist/esm/interfaces-51dc4e1b.js +13 -0
  894. package/dist/esm/key-69001a68.js +33 -0
  895. package/dist/esm/label-5559055d.js +83 -0
  896. package/dist/esm/loader.js +7 -3
  897. package/dist/esm/locale-6c1b85c7.js +118 -0
  898. package/dist/esm/math-456207f5.js +18 -0
  899. package/dist/esm/number-e7393766.js +40 -0
  900. package/dist/esm/observers-8f0bc419.js +20 -0
  901. package/dist/esm/popper-dc4b45cf.js +1785 -0
  902. package/dist/esm/resources-16a2a25a.js +325 -0
  903. package/dist/esm/resources-584acd9b.js +17 -0
  904. package/dist/esm/resources-7c6029b6.js +16 -0
  905. package/dist/esm/resources-bece7a88.js +216 -0
  906. package/dist/esm/sortable.esm-04824d33.js +3017 -0
  907. package/dist/esm/utils-6beb0662.js +113 -0
  908. package/dist/esm-es5/CalciteExpandToggle-677f2f8b.js +5 -0
  909. package/dist/esm-es5/CalciteHeading-1d6cd311.js +5 -0
  910. package/dist/esm-es5/array-91a648e2.js +5 -0
  911. package/dist/esm-es5/calcite-accordion_2.entry.js +5 -1
  912. package/dist/esm-es5/calcite-action-bar.entry.js +5 -1
  913. package/dist/esm-es5/calcite-action-group.entry.js +5 -1
  914. package/dist/esm-es5/calcite-action-menu.entry.js +5 -1
  915. package/dist/esm-es5/calcite-action-pad.entry.js +5 -1
  916. package/dist/esm-es5/calcite-action.entry.js +5 -1
  917. package/dist/esm-es5/calcite-alert.entry.js +5 -1
  918. package/dist/esm-es5/calcite-avatar.entry.js +5 -1
  919. package/dist/esm-es5/calcite-block_2.entry.js +5 -1
  920. package/dist/esm-es5/calcite-button.entry.js +5 -1
  921. package/dist/esm-es5/calcite-card.entry.js +5 -1
  922. package/dist/esm-es5/calcite-checkbox.entry.js +5 -1
  923. package/dist/esm-es5/calcite-chip.entry.js +5 -1
  924. package/dist/esm-es5/calcite-color-picker_3.entry.js +5 -1
  925. package/dist/esm-es5/calcite-combobox_3.entry.js +5 -1
  926. package/dist/esm-es5/calcite-date-picker_4.entry.js +5 -1
  927. package/dist/esm-es5/calcite-dropdown_3.entry.js +5 -1
  928. package/dist/esm-es5/calcite-fab.entry.js +5 -1
  929. package/dist/esm-es5/calcite-filter.entry.js +5 -1
  930. package/dist/esm-es5/calcite-flow.entry.js +5 -1
  931. package/dist/esm-es5/calcite-graph_2.entry.js +5 -1
  932. package/dist/esm-es5/calcite-handle.entry.js +5 -1
  933. package/dist/esm-es5/calcite-icon.entry.js +5 -1
  934. package/dist/esm-es5/calcite-inline-editable.entry.js +5 -1
  935. package/dist/esm-es5/calcite-input-date-picker.entry.js +5 -1
  936. package/dist/esm-es5/calcite-input-message.entry.js +5 -1
  937. package/dist/esm-es5/calcite-input-time-picker_2.entry.js +5 -1
  938. package/dist/esm-es5/calcite-input.entry.js +5 -1
  939. package/dist/esm-es5/calcite-label.entry.js +5 -1
  940. package/dist/esm-es5/calcite-link.entry.js +5 -1
  941. package/dist/esm-es5/calcite-list_3.entry.js +5 -1
  942. package/dist/esm-es5/calcite-loader.entry.js +5 -1
  943. package/dist/esm-es5/calcite-modal.entry.js +5 -1
  944. package/dist/esm-es5/calcite-notice.entry.js +5 -1
  945. package/dist/esm-es5/calcite-option_3.entry.js +5 -1
  946. package/dist/esm-es5/calcite-pagination.entry.js +5 -1
  947. package/dist/esm-es5/calcite-panel.entry.js +5 -1
  948. package/dist/esm-es5/calcite-pick-list_3.entry.js +5 -1
  949. package/dist/esm-es5/calcite-popover_2.entry.js +5 -1
  950. package/dist/esm-es5/calcite-progress.entry.js +5 -1
  951. package/dist/esm-es5/calcite-radio-button-group.entry.js +5 -1
  952. package/dist/esm-es5/calcite-radio-group_2.entry.js +5 -1
  953. package/dist/esm-es5/calcite-radio_2.entry.js +5 -1
  954. package/dist/esm-es5/calcite-rating.entry.js +5 -1
  955. package/dist/esm-es5/calcite-scrim.entry.js +5 -1
  956. package/dist/esm-es5/calcite-shell_3.entry.js +5 -1
  957. package/dist/esm-es5/calcite-sortable-list.entry.js +5 -1
  958. package/dist/esm-es5/calcite-split-button.entry.js +5 -1
  959. package/dist/esm-es5/calcite-stepper_2.entry.js +5 -1
  960. package/dist/esm-es5/calcite-switch.entry.js +5 -1
  961. package/dist/esm-es5/calcite-tab_4.entry.js +5 -1
  962. package/dist/esm-es5/calcite-tile-select_2.entry.js +5 -1
  963. package/dist/esm-es5/calcite-tile.entry.js +5 -1
  964. package/dist/esm-es5/calcite-tip_3.entry.js +5 -1
  965. package/dist/esm-es5/calcite-tooltip_2.entry.js +5 -1
  966. package/dist/esm-es5/calcite-tree_2.entry.js +5 -1
  967. package/dist/esm-es5/calcite-value-list_2.entry.js +5 -1
  968. package/dist/esm-es5/calcite.js +5 -1
  969. package/dist/esm-es5/debounce-79648d42.js +5 -0
  970. package/dist/esm-es5/dom-f24e866c.js +5 -0
  971. package/dist/esm-es5/forIn-48d8fb84.js +5 -0
  972. package/dist/esm-es5/form-160b0fb5.js +5 -0
  973. package/dist/esm-es5/guid-196bd5ea.js +5 -0
  974. package/dist/esm-es5/index-9de00868.js +5 -0
  975. package/dist/esm-es5/index.js +4 -0
  976. package/dist/esm-es5/interfaces-51dc4e1b.js +5 -0
  977. package/dist/esm-es5/key-69001a68.js +5 -0
  978. package/dist/esm-es5/label-5559055d.js +5 -0
  979. package/dist/esm-es5/loader.js +5 -1
  980. package/dist/esm-es5/locale-6c1b85c7.js +5 -0
  981. package/dist/esm-es5/math-456207f5.js +5 -0
  982. package/dist/esm-es5/number-e7393766.js +5 -0
  983. package/dist/esm-es5/observers-8f0bc419.js +5 -0
  984. package/dist/esm-es5/popper-dc4b45cf.js +5 -0
  985. package/dist/esm-es5/resources-16a2a25a.js +5 -0
  986. package/dist/esm-es5/resources-584acd9b.js +5 -0
  987. package/dist/esm-es5/resources-7c6029b6.js +5 -0
  988. package/dist/esm-es5/resources-bece7a88.js +5 -0
  989. package/dist/esm-es5/sortable.esm-04824d33.js +11 -0
  990. package/dist/esm-es5/utils-6beb0662.js +5 -0
  991. package/dist/extras/docs-json.json +858 -491
  992. package/dist/loader/cdn.js +4 -1
  993. package/dist/loader/index.cjs.js +4 -1
  994. package/dist/loader/index.es2017.js +4 -1
  995. package/dist/loader/index.js +4 -1
  996. package/dist/types/components/calcite-action/calcite-action.d.ts +2 -2
  997. package/dist/types/components/calcite-block/resources.d.ts +2 -0
  998. package/dist/types/components/calcite-button/calcite-button.d.ts +10 -3
  999. package/dist/types/components/calcite-checkbox/calcite-checkbox.d.ts +21 -22
  1000. package/dist/types/components/calcite-color-picker/calcite-color-picker.d.ts +1 -2
  1001. package/dist/types/components/calcite-combobox/calcite-combobox.d.ts +20 -2
  1002. package/dist/types/components/calcite-date-picker/calcite-date-picker.d.ts +20 -8
  1003. package/dist/types/components/calcite-dropdown/calcite-dropdown.d.ts +6 -4
  1004. package/dist/types/components/calcite-filter/calcite-filter.d.ts +24 -1
  1005. package/dist/types/components/calcite-graph/calcite-graph.d.ts +4 -0
  1006. package/dist/types/components/calcite-inline-editable/calcite-inline-editable.d.ts +5 -6
  1007. package/dist/types/components/calcite-input/calcite-input.d.ts +23 -12
  1008. package/dist/types/components/calcite-input/resources.d.ts +2 -0
  1009. package/dist/types/components/calcite-input-date-picker/calcite-input-date-picker.d.ts +38 -9
  1010. package/dist/types/components/calcite-input-time-picker/calcite-input-time-picker.d.ts +14 -5
  1011. package/dist/types/components/calcite-link/calcite-link.d.ts +2 -1
  1012. package/dist/types/components/calcite-list/calcite-list.d.ts +3 -0
  1013. package/dist/types/components/calcite-list-item/calcite-list-item.d.ts +3 -0
  1014. package/dist/types/components/calcite-modal/calcite-modal.d.ts +2 -2
  1015. package/dist/types/components/calcite-panel/resources.d.ts +1 -0
  1016. package/dist/types/components/calcite-radio-button/calcite-radio-button.d.ts +15 -16
  1017. package/dist/types/components/calcite-radio-group/calcite-radio-group.d.ts +14 -5
  1018. package/dist/types/components/calcite-rating/calcite-rating.d.ts +13 -2
  1019. package/dist/types/components/calcite-select/calcite-select.d.ts +20 -2
  1020. package/dist/types/components/calcite-shell-panel/resources.d.ts +1 -0
  1021. package/dist/types/components/calcite-slider/calcite-slider.d.ts +18 -4
  1022. package/dist/types/components/calcite-switch/calcite-switch.d.ts +11 -10
  1023. package/dist/types/components/calcite-tile-select/calcite-tile-select.d.ts +3 -3
  1024. package/dist/types/components/calcite-tree-item/calcite-tree-item.d.ts +2 -0
  1025. package/dist/types/components.d.ts +223 -30
  1026. package/dist/types/utils/form.d.ts +112 -1
  1027. package/dist/types/utils/label.d.ts +5 -0
  1028. package/dist/types/utils/math.d.ts +1 -0
  1029. package/dist/types/utils/number.d.ts +0 -1
  1030. package/dist/types/utils/popper.d.ts +1 -1
  1031. package/hydrate/index.js +1188 -719
  1032. package/package.json +43 -46
  1033. package/readme.md +5 -5
  1034. package/dist/calcite/p-00f2f64d.system.entry.js +0 -1
  1035. package/dist/calcite/p-010e5fb9.entry.js +0 -1
  1036. package/dist/calcite/p-03b25bb5.entry.js +0 -1
  1037. package/dist/calcite/p-058f3354.system.entry.js +0 -1
  1038. package/dist/calcite/p-0671d67f.entry.js +0 -1
  1039. package/dist/calcite/p-0a465f92.entry.js +0 -1
  1040. package/dist/calcite/p-0aa3fc7e.entry.js +0 -1
  1041. package/dist/calcite/p-0ae16e31.js +0 -1
  1042. package/dist/calcite/p-0b539bae.system.entry.js +0 -1
  1043. package/dist/calcite/p-0c356cca.entry.js +0 -1
  1044. package/dist/calcite/p-1114dae7.entry.js +0 -1
  1045. package/dist/calcite/p-14893331.system.entry.js +0 -1
  1046. package/dist/calcite/p-170fb8e8.system.entry.js +0 -1
  1047. package/dist/calcite/p-18a62b5e.js +0 -1
  1048. package/dist/calcite/p-19a2021f.entry.js +0 -1
  1049. package/dist/calcite/p-19ac376f.js +0 -1
  1050. package/dist/calcite/p-19d3b749.system.entry.js +0 -1
  1051. package/dist/calcite/p-1a53829b.system.entry.js +0 -1
  1052. package/dist/calcite/p-1c3c9e42.entry.js +0 -1
  1053. package/dist/calcite/p-1df0fd29.system.entry.js +0 -1
  1054. package/dist/calcite/p-203e04e5.entry.js +0 -1
  1055. package/dist/calcite/p-23b87c6a.system.entry.js +0 -1
  1056. package/dist/calcite/p-23edddc9.entry.js +0 -1
  1057. package/dist/calcite/p-2a9b4a25.system.js +0 -1
  1058. package/dist/calcite/p-2c235db8.system.js +0 -1
  1059. package/dist/calcite/p-2e9e2b7c.entry.js +0 -1
  1060. package/dist/calcite/p-30f1442b.js +0 -1
  1061. package/dist/calcite/p-32a0f498.entry.js +0 -1
  1062. package/dist/calcite/p-340e1f88.entry.js +0 -1
  1063. package/dist/calcite/p-3426e87b.system.js +0 -1
  1064. package/dist/calcite/p-354fbadd.js +0 -1
  1065. package/dist/calcite/p-38b3ff5f.system.entry.js +0 -1
  1066. package/dist/calcite/p-39b743d9.system.entry.js +0 -1
  1067. package/dist/calcite/p-3b55b390.entry.js +0 -1
  1068. package/dist/calcite/p-3cdef0cd.entry.js +0 -1
  1069. package/dist/calcite/p-43a9faca.js +0 -1
  1070. package/dist/calcite/p-44810e63.entry.js +0 -1
  1071. package/dist/calcite/p-482ec054.system.js +0 -1
  1072. package/dist/calcite/p-4936ee1a.entry.js +0 -1
  1073. package/dist/calcite/p-4a69f94f.entry.js +0 -1
  1074. package/dist/calcite/p-4bb3e49c.entry.js +0 -1
  1075. package/dist/calcite/p-4dc4c758.entry.js +0 -1
  1076. package/dist/calcite/p-4e3dcb60.entry.js +0 -1
  1077. package/dist/calcite/p-4f24139e.system.entry.js +0 -1
  1078. package/dist/calcite/p-4fce2a7a.system.js +0 -1
  1079. package/dist/calcite/p-4fda49e6.js +0 -1
  1080. package/dist/calcite/p-50ea2036.system.js +0 -1
  1081. package/dist/calcite/p-53caa311.system.js +0 -1
  1082. package/dist/calcite/p-55379ee6.system.entry.js +0 -1
  1083. package/dist/calcite/p-559ffa87.js +0 -1
  1084. package/dist/calcite/p-55f7adaa.system.entry.js +0 -1
  1085. package/dist/calcite/p-58421494.js +0 -1
  1086. package/dist/calcite/p-59f7b582.system.entry.js +0 -1
  1087. package/dist/calcite/p-5a1b0338.system.js +0 -1
  1088. package/dist/calcite/p-5eab55c1.entry.js +0 -1
  1089. package/dist/calcite/p-5f50d376.system.entry.js +0 -1
  1090. package/dist/calcite/p-62977e6b.system.entry.js +0 -1
  1091. package/dist/calcite/p-6350bcd3.system.js +0 -1
  1092. package/dist/calcite/p-65f4f1e9.entry.js +0 -1
  1093. package/dist/calcite/p-674bc090.system.js +0 -1
  1094. package/dist/calcite/p-675364da.system.entry.js +0 -1
  1095. package/dist/calcite/p-69837b80.entry.js +0 -1
  1096. package/dist/calcite/p-69e382de.entry.js +0 -1
  1097. package/dist/calcite/p-6a7d2f7c.entry.js +0 -1
  1098. package/dist/calcite/p-6cb2f24f.entry.js +0 -1
  1099. package/dist/calcite/p-6d98d9dc.system.entry.js +0 -1
  1100. package/dist/calcite/p-6edac967.system.entry.js +0 -1
  1101. package/dist/calcite/p-7521b7ab.system.entry.js +0 -1
  1102. package/dist/calcite/p-771da7ed.system.entry.js +0 -1
  1103. package/dist/calcite/p-79e0b61b.system.entry.js +0 -1
  1104. package/dist/calcite/p-7a241325.system.entry.js +0 -1
  1105. package/dist/calcite/p-7b71e1d4.js +0 -1
  1106. package/dist/calcite/p-7b856f76.system.entry.js +0 -1
  1107. package/dist/calcite/p-7c5c2b30.js +0 -1
  1108. package/dist/calcite/p-7e4036a3.system.entry.js +0 -1
  1109. package/dist/calcite/p-7e4be59e.system.entry.js +0 -1
  1110. package/dist/calcite/p-81371076.entry.js +0 -1
  1111. package/dist/calcite/p-8242ef10.entry.js +0 -1
  1112. package/dist/calcite/p-82a11724.system.js +0 -7
  1113. package/dist/calcite/p-835b14f7.system.entry.js +0 -1
  1114. package/dist/calcite/p-875b172e.entry.js +0 -1
  1115. package/dist/calcite/p-8958d1f6.system.js +0 -1
  1116. package/dist/calcite/p-8975e7c8.entry.js +0 -1
  1117. package/dist/calcite/p-8a16620b.system.js +0 -1
  1118. package/dist/calcite/p-8a30b93d.system.js +0 -1
  1119. package/dist/calcite/p-8cfab352.entry.js +0 -1
  1120. package/dist/calcite/p-8d5f5ebf.js +0 -1
  1121. package/dist/calcite/p-8d9bf455.entry.js +0 -1
  1122. package/dist/calcite/p-8dc31333.js +0 -1
  1123. package/dist/calcite/p-8e46c987.entry.js +0 -1
  1124. package/dist/calcite/p-8ef1afae.system.entry.js +0 -1
  1125. package/dist/calcite/p-8fb7b17f.system.entry.js +0 -1
  1126. package/dist/calcite/p-90b88d97.system.entry.js +0 -1
  1127. package/dist/calcite/p-90ee6b48.entry.js +0 -1
  1128. package/dist/calcite/p-93a7d961.system.entry.js +0 -1
  1129. package/dist/calcite/p-950bdd5b.system.entry.js +0 -1
  1130. package/dist/calcite/p-95dfb659.system.js +0 -1
  1131. package/dist/calcite/p-97b06cc3.entry.js +0 -1
  1132. package/dist/calcite/p-987310d2.system.js +0 -1
  1133. package/dist/calcite/p-9c371694.system.entry.js +0 -1
  1134. package/dist/calcite/p-a096738b.system.entry.js +0 -1
  1135. package/dist/calcite/p-a09cd797.entry.js +0 -1
  1136. package/dist/calcite/p-a0d4c79d.entry.js +0 -1
  1137. package/dist/calcite/p-a4e6e35b.js +0 -1
  1138. package/dist/calcite/p-a54a11ee.system.entry.js +0 -1
  1139. package/dist/calcite/p-a57a7f49.js +0 -7
  1140. package/dist/calcite/p-a6b26bd1.system.js +0 -1
  1141. package/dist/calcite/p-a75f07ae.entry.js +0 -1
  1142. package/dist/calcite/p-a83557c6.entry.js +0 -1
  1143. package/dist/calcite/p-a8650c17.system.js +0 -1
  1144. package/dist/calcite/p-ac44517b.system.entry.js +0 -1
  1145. package/dist/calcite/p-ad290529.system.entry.js +0 -1
  1146. package/dist/calcite/p-b10d0018.system.entry.js +0 -1
  1147. package/dist/calcite/p-b2425e21.js +0 -1
  1148. package/dist/calcite/p-b286e0a5.system.entry.js +0 -1
  1149. package/dist/calcite/p-b2a6687b.system.js +0 -1
  1150. package/dist/calcite/p-b2a79aa2.system.entry.js +0 -1
  1151. package/dist/calcite/p-b4cc79dc.system.js +0 -1
  1152. package/dist/calcite/p-bd291e00.entry.js +0 -1
  1153. package/dist/calcite/p-be531ce4.system.entry.js +0 -1
  1154. package/dist/calcite/p-be6b31d0.entry.js +0 -1
  1155. package/dist/calcite/p-bfca7d51.entry.js +0 -1
  1156. package/dist/calcite/p-c0ee1569.system.entry.js +0 -1
  1157. package/dist/calcite/p-c15a632e.system.entry.js +0 -1
  1158. package/dist/calcite/p-c23bfaf9.system.entry.js +0 -1
  1159. package/dist/calcite/p-c2cd9c1d.system.entry.js +0 -1
  1160. package/dist/calcite/p-c4953aa6.system.entry.js +0 -1
  1161. package/dist/calcite/p-c5257119.entry.js +0 -1
  1162. package/dist/calcite/p-c59d3bb3.system.entry.js +0 -1
  1163. package/dist/calcite/p-c95a18d4.entry.js +0 -1
  1164. package/dist/calcite/p-caf80cd7.js +0 -1
  1165. package/dist/calcite/p-cd8d0dda.entry.js +0 -1
  1166. package/dist/calcite/p-cebd4de5.js +0 -1
  1167. package/dist/calcite/p-cfdbd2e1.entry.js +0 -1
  1168. package/dist/calcite/p-d2907af5.entry.js +0 -1
  1169. package/dist/calcite/p-d2b9513d.entry.js +0 -1
  1170. package/dist/calcite/p-d53c2d2e.system.js +0 -1
  1171. package/dist/calcite/p-d5e63242.entry.js +0 -1
  1172. package/dist/calcite/p-d74caa31.system.entry.js +0 -1
  1173. package/dist/calcite/p-d78a24bb.entry.js +0 -1
  1174. package/dist/calcite/p-d7e0ef91.system.entry.js +0 -1
  1175. package/dist/calcite/p-d858b7ab.js +0 -1
  1176. package/dist/calcite/p-d8a015cb.system.entry.js +0 -1
  1177. package/dist/calcite/p-dc825c55.js +0 -1
  1178. package/dist/calcite/p-dcfa0bba.js +0 -1
  1179. package/dist/calcite/p-dd3f7c73.system.entry.js +0 -1
  1180. package/dist/calcite/p-dda58d1e.system.js +0 -1
  1181. package/dist/calcite/p-ddf50685.system.entry.js +0 -1
  1182. package/dist/calcite/p-de00c01f.entry.js +0 -1
  1183. package/dist/calcite/p-de9b7982.system.entry.js +0 -1
  1184. package/dist/calcite/p-defdc464.system.js +0 -1
  1185. package/dist/calcite/p-e87acd87.system.js +0 -1
  1186. package/dist/calcite/p-ea51eaaa.js +0 -1
  1187. package/dist/calcite/p-ebb0ef70.entry.js +0 -1
  1188. package/dist/calcite/p-ec397dae.entry.js +0 -1
  1189. package/dist/calcite/p-ef0ea98b.system.entry.js +0 -1
  1190. package/dist/calcite/p-ef38dee8.js +0 -1
  1191. package/dist/calcite/p-efe6556c.system.entry.js +0 -1
  1192. package/dist/calcite/p-f02d04ab.system.js +0 -1
  1193. package/dist/calcite/p-f1eddb0f.system.entry.js +0 -1
  1194. package/dist/calcite/p-f95c5864.entry.js +0 -1
  1195. package/dist/calcite/p-fc725435.entry.js +0 -1
  1196. package/dist/cjs/CalciteExpandToggle-b5735fd2.js +0 -90
  1197. package/dist/cjs/CalciteHeading-177f59f2.js +0 -15
  1198. package/dist/cjs/array-4fc5abfa.js +0 -7
  1199. package/dist/cjs/debounce-11980960.js +0 -491
  1200. package/dist/cjs/dom-c9cafa59.js +0 -166
  1201. package/dist/cjs/forIn-46535ded.js +0 -618
  1202. package/dist/cjs/form-432ae178.js +0 -18
  1203. package/dist/cjs/guid-4637ad8f.js +0 -16
  1204. package/dist/cjs/index-105d9087.js +0 -2062
  1205. package/dist/cjs/interfaces-bc0f5779.js +0 -9
  1206. package/dist/cjs/key-f470de4c.js +0 -33
  1207. package/dist/cjs/label-80f9023b.js +0 -54
  1208. package/dist/cjs/locale-eb4486ae.js +0 -119
  1209. package/dist/cjs/math-750406eb.js +0 -5
  1210. package/dist/cjs/number-77308374.js +0 -45
  1211. package/dist/cjs/observers-88b3a2d4.js +0 -18
  1212. package/dist/cjs/popper-a103e375.js +0 -1786
  1213. package/dist/cjs/resources-41daa7d4.js +0 -228
  1214. package/dist/cjs/resources-76637167.js +0 -17
  1215. package/dist/cjs/resources-ae299e51.js +0 -16
  1216. package/dist/cjs/resources-bbca3cea.js +0 -342
  1217. package/dist/cjs/sortable.esm-bcce1d94.js +0 -3015
  1218. package/dist/cjs/utils-d549a0a9.js +0 -119
  1219. package/dist/collection/components/calcite-label/interfaces.js +0 -1
  1220. package/dist/custom-elements/bundles/accordion.d.ts +0 -1
  1221. package/dist/custom-elements/bundles/accordion.js +0 -5
  1222. package/dist/custom-elements/bundles/action-bar.d.ts +0 -1
  1223. package/dist/custom-elements/bundles/action-bar.js +0 -5
  1224. package/dist/custom-elements/bundles/action-menu.d.ts +0 -1
  1225. package/dist/custom-elements/bundles/action-menu.js +0 -5
  1226. package/dist/custom-elements/bundles/action-pad.d.ts +0 -1
  1227. package/dist/custom-elements/bundles/action-pad.js +0 -5
  1228. package/dist/custom-elements/bundles/action.d.ts +0 -1
  1229. package/dist/custom-elements/bundles/action.js +0 -5
  1230. package/dist/custom-elements/bundles/alert.d.ts +0 -1
  1231. package/dist/custom-elements/bundles/alert.js +0 -5
  1232. package/dist/custom-elements/bundles/avatar.d.ts +0 -1
  1233. package/dist/custom-elements/bundles/avatar.js +0 -5
  1234. package/dist/custom-elements/bundles/block.d.ts +0 -1
  1235. package/dist/custom-elements/bundles/block.js +0 -5
  1236. package/dist/custom-elements/bundles/button.d.ts +0 -1
  1237. package/dist/custom-elements/bundles/button.js +0 -5
  1238. package/dist/custom-elements/bundles/card.d.ts +0 -1
  1239. package/dist/custom-elements/bundles/card.js +0 -5
  1240. package/dist/custom-elements/bundles/checkbox.d.ts +0 -1
  1241. package/dist/custom-elements/bundles/checkbox.js +0 -5
  1242. package/dist/custom-elements/bundles/chip.d.ts +0 -1
  1243. package/dist/custom-elements/bundles/chip.js +0 -5
  1244. package/dist/custom-elements/bundles/color-picker.d.ts +0 -1
  1245. package/dist/custom-elements/bundles/color-picker.js +0 -5
  1246. package/dist/custom-elements/bundles/combobox.d.ts +0 -1
  1247. package/dist/custom-elements/bundles/combobox.js +0 -5
  1248. package/dist/custom-elements/bundles/date-picker.d.ts +0 -1
  1249. package/dist/custom-elements/bundles/date-picker.js +0 -5
  1250. package/dist/custom-elements/bundles/dropdown.d.ts +0 -1
  1251. package/dist/custom-elements/bundles/dropdown.js +0 -5
  1252. package/dist/custom-elements/bundles/fab.d.ts +0 -1
  1253. package/dist/custom-elements/bundles/fab.js +0 -5
  1254. package/dist/custom-elements/bundles/flow.d.ts +0 -1
  1255. package/dist/custom-elements/bundles/flow.js +0 -5
  1256. package/dist/custom-elements/bundles/icon.d.ts +0 -1
  1257. package/dist/custom-elements/bundles/icon.js +0 -5
  1258. package/dist/custom-elements/bundles/inline-editable.d.ts +0 -1
  1259. package/dist/custom-elements/bundles/inline-editable.js +0 -5
  1260. package/dist/custom-elements/bundles/input-date-picker.d.ts +0 -1
  1261. package/dist/custom-elements/bundles/input-date-picker.js +0 -5
  1262. package/dist/custom-elements/bundles/input-message.d.ts +0 -1
  1263. package/dist/custom-elements/bundles/input-message.js +0 -5
  1264. package/dist/custom-elements/bundles/input-time-picker.d.ts +0 -1
  1265. package/dist/custom-elements/bundles/input-time-picker.js +0 -5
  1266. package/dist/custom-elements/bundles/input.d.ts +0 -1
  1267. package/dist/custom-elements/bundles/input.js +0 -5
  1268. package/dist/custom-elements/bundles/label.d.ts +0 -1
  1269. package/dist/custom-elements/bundles/label.js +0 -5
  1270. package/dist/custom-elements/bundles/link.d.ts +0 -1
  1271. package/dist/custom-elements/bundles/link.js +0 -5
  1272. package/dist/custom-elements/bundles/list.d.ts +0 -1
  1273. package/dist/custom-elements/bundles/list.js +0 -5
  1274. package/dist/custom-elements/bundles/loader.d.ts +0 -1
  1275. package/dist/custom-elements/bundles/loader.js +0 -5
  1276. package/dist/custom-elements/bundles/modal.d.ts +0 -1
  1277. package/dist/custom-elements/bundles/modal.js +0 -5
  1278. package/dist/custom-elements/bundles/notice.d.ts +0 -1
  1279. package/dist/custom-elements/bundles/notice.js +0 -5
  1280. package/dist/custom-elements/bundles/pagination.d.ts +0 -1
  1281. package/dist/custom-elements/bundles/pagination.js +0 -5
  1282. package/dist/custom-elements/bundles/panel.d.ts +0 -1
  1283. package/dist/custom-elements/bundles/panel.js +0 -5
  1284. package/dist/custom-elements/bundles/pick-list.d.ts +0 -1
  1285. package/dist/custom-elements/bundles/pick-list.js +0 -5
  1286. package/dist/custom-elements/bundles/popover.d.ts +0 -1
  1287. package/dist/custom-elements/bundles/popover.js +0 -5
  1288. package/dist/custom-elements/bundles/progress.d.ts +0 -1
  1289. package/dist/custom-elements/bundles/progress.js +0 -5
  1290. package/dist/custom-elements/bundles/radio-button-group.d.ts +0 -1
  1291. package/dist/custom-elements/bundles/radio-button-group.js +0 -5
  1292. package/dist/custom-elements/bundles/radio-button.d.ts +0 -1
  1293. package/dist/custom-elements/bundles/radio-button.js +0 -5
  1294. package/dist/custom-elements/bundles/radio-group.d.ts +0 -1
  1295. package/dist/custom-elements/bundles/radio-group.js +0 -5
  1296. package/dist/custom-elements/bundles/rating.d.ts +0 -1
  1297. package/dist/custom-elements/bundles/rating.js +0 -5
  1298. package/dist/custom-elements/bundles/scrim.d.ts +0 -1
  1299. package/dist/custom-elements/bundles/scrim.js +0 -5
  1300. package/dist/custom-elements/bundles/select.d.ts +0 -1
  1301. package/dist/custom-elements/bundles/select.js +0 -5
  1302. package/dist/custom-elements/bundles/shell.d.ts +0 -1
  1303. package/dist/custom-elements/bundles/shell.js +0 -5
  1304. package/dist/custom-elements/bundles/slider.d.ts +0 -1
  1305. package/dist/custom-elements/bundles/slider.js +0 -5
  1306. package/dist/custom-elements/bundles/sortable-list.d.ts +0 -1
  1307. package/dist/custom-elements/bundles/sortable-list.js +0 -5
  1308. package/dist/custom-elements/bundles/split-button.d.ts +0 -1
  1309. package/dist/custom-elements/bundles/split-button.js +0 -5
  1310. package/dist/custom-elements/bundles/stepper.d.ts +0 -1
  1311. package/dist/custom-elements/bundles/stepper.js +0 -5
  1312. package/dist/custom-elements/bundles/switch.d.ts +0 -1
  1313. package/dist/custom-elements/bundles/switch.js +0 -5
  1314. package/dist/custom-elements/bundles/tab.d.ts +0 -1
  1315. package/dist/custom-elements/bundles/tab.js +0 -5
  1316. package/dist/custom-elements/bundles/tile-select-group.d.ts +0 -1
  1317. package/dist/custom-elements/bundles/tile-select-group.js +0 -5
  1318. package/dist/custom-elements/bundles/tile.d.ts +0 -1
  1319. package/dist/custom-elements/bundles/tile.js +0 -5
  1320. package/dist/custom-elements/bundles/tip.d.ts +0 -1
  1321. package/dist/custom-elements/bundles/tip.js +0 -5
  1322. package/dist/custom-elements/bundles/tooltip.d.ts +0 -1
  1323. package/dist/custom-elements/bundles/tooltip.js +0 -5
  1324. package/dist/custom-elements/bundles/tree.d.ts +0 -1
  1325. package/dist/custom-elements/bundles/tree.js +0 -5
  1326. package/dist/custom-elements/bundles/value-list.d.ts +0 -1
  1327. package/dist/custom-elements/bundles/value-list.js +0 -5
  1328. package/dist/custom-elements/index.mjs +0 -24489
  1329. package/dist/custom-elements/utils.d.ts +0 -2
  1330. package/dist/custom-elements/utils.js +0 -11
  1331. package/dist/esm/CalciteExpandToggle-a149fed4.js +0 -83
  1332. package/dist/esm/CalciteHeading-29855e9f.js +0 -12
  1333. package/dist/esm/array-af19adb2.js +0 -5
  1334. package/dist/esm/debounce-047e09f4.js +0 -482
  1335. package/dist/esm/dom-b369a031.js +0 -149
  1336. package/dist/esm/forIn-d55260fc.js +0 -615
  1337. package/dist/esm/form-8aa0d95b.js +0 -16
  1338. package/dist/esm/guid-09142681.js +0 -14
  1339. package/dist/esm/index-f8f0bea7.js +0 -2029
  1340. package/dist/esm/interfaces-355fccb6.js +0 -9
  1341. package/dist/esm/key-ec82f942.js +0 -29
  1342. package/dist/esm/label-7b249c54.js +0 -50
  1343. package/dist/esm/locale-8436bbe1.js +0 -114
  1344. package/dist/esm/math-c8e7aa13.js +0 -3
  1345. package/dist/esm/number-358ca1d4.js +0 -39
  1346. package/dist/esm/observers-c93d4fe5.js +0 -16
  1347. package/dist/esm/popper-2757192a.js +0 -1781
  1348. package/dist/esm/resources-28d71943.js +0 -212
  1349. package/dist/esm/resources-82817f70.js +0 -13
  1350. package/dist/esm/resources-c651d73a.js +0 -321
  1351. package/dist/esm/resources-c72ebfea.js +0 -12
  1352. package/dist/esm/sortable.esm-2f5354d3.js +0 -3013
  1353. package/dist/esm/utils-60acc1d6.js +0 -109
  1354. package/dist/esm-es5/CalciteExpandToggle-a149fed4.js +0 -1
  1355. package/dist/esm-es5/CalciteHeading-29855e9f.js +0 -1
  1356. package/dist/esm-es5/array-af19adb2.js +0 -1
  1357. package/dist/esm-es5/debounce-047e09f4.js +0 -1
  1358. package/dist/esm-es5/dom-b369a031.js +0 -1
  1359. package/dist/esm-es5/forIn-d55260fc.js +0 -1
  1360. package/dist/esm-es5/form-8aa0d95b.js +0 -1
  1361. package/dist/esm-es5/guid-09142681.js +0 -1
  1362. package/dist/esm-es5/index-f8f0bea7.js +0 -1
  1363. package/dist/esm-es5/interfaces-355fccb6.js +0 -1
  1364. package/dist/esm-es5/key-ec82f942.js +0 -1
  1365. package/dist/esm-es5/label-7b249c54.js +0 -1
  1366. package/dist/esm-es5/locale-8436bbe1.js +0 -1
  1367. package/dist/esm-es5/math-c8e7aa13.js +0 -1
  1368. package/dist/esm-es5/number-358ca1d4.js +0 -1
  1369. package/dist/esm-es5/observers-c93d4fe5.js +0 -1
  1370. package/dist/esm-es5/popper-2757192a.js +0 -1
  1371. package/dist/esm-es5/resources-28d71943.js +0 -1
  1372. package/dist/esm-es5/resources-82817f70.js +0 -1
  1373. package/dist/esm-es5/resources-c651d73a.js +0 -1
  1374. package/dist/esm-es5/resources-c72ebfea.js +0 -1
  1375. package/dist/esm-es5/sortable.esm-2f5354d3.js +0 -7
  1376. package/dist/esm-es5/utils-60acc1d6.js +0 -1
@@ -1,1786 +0,0 @@
1
- 'use strict';
2
-
3
- const dom = require('./dom-c9cafa59.js');
4
-
5
- var top = 'top';
6
- var bottom = 'bottom';
7
- var right = 'right';
8
- var left = 'left';
9
- var auto = 'auto';
10
- var basePlacements = [top, bottom, right, left];
11
- var start = 'start';
12
- var end = 'end';
13
- var clippingParents = 'clippingParents';
14
- var viewport = 'viewport';
15
- var popper = 'popper';
16
- var reference = 'reference';
17
- var variationPlacements = /*#__PURE__*/basePlacements.reduce(function (acc, placement) {
18
- return acc.concat([placement + "-" + start, placement + "-" + end]);
19
- }, []);
20
- var placements = /*#__PURE__*/[].concat(basePlacements, [auto]).reduce(function (acc, placement) {
21
- return acc.concat([placement, placement + "-" + start, placement + "-" + end]);
22
- }, []); // modifiers that need to read the DOM
23
-
24
- var beforeRead = 'beforeRead';
25
- var read = 'read';
26
- var afterRead = 'afterRead'; // pure-logic modifiers
27
-
28
- var beforeMain = 'beforeMain';
29
- var main = 'main';
30
- var afterMain = 'afterMain'; // modifier with the purpose to write to the DOM (or write into a framework state)
31
-
32
- var beforeWrite = 'beforeWrite';
33
- var write = 'write';
34
- var afterWrite = 'afterWrite';
35
- var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];
36
-
37
- function getNodeName(element) {
38
- return element ? (element.nodeName || '').toLowerCase() : null;
39
- }
40
-
41
- function getWindow(node) {
42
- if (node == null) {
43
- return window;
44
- }
45
-
46
- if (node.toString() !== '[object Window]') {
47
- var ownerDocument = node.ownerDocument;
48
- return ownerDocument ? ownerDocument.defaultView || window : window;
49
- }
50
-
51
- return node;
52
- }
53
-
54
- function isElement(node) {
55
- var OwnElement = getWindow(node).Element;
56
- return node instanceof OwnElement || node instanceof Element;
57
- }
58
-
59
- function isHTMLElement(node) {
60
- var OwnElement = getWindow(node).HTMLElement;
61
- return node instanceof OwnElement || node instanceof HTMLElement;
62
- }
63
-
64
- function isShadowRoot(node) {
65
- // IE 11 has no ShadowRoot
66
- if (typeof ShadowRoot === 'undefined') {
67
- return false;
68
- }
69
-
70
- var OwnElement = getWindow(node).ShadowRoot;
71
- return node instanceof OwnElement || node instanceof ShadowRoot;
72
- }
73
-
74
- // and applies them to the HTMLElements such as popper and arrow
75
-
76
- function applyStyles(_ref) {
77
- var state = _ref.state;
78
- Object.keys(state.elements).forEach(function (name) {
79
- var style = state.styles[name] || {};
80
- var attributes = state.attributes[name] || {};
81
- var element = state.elements[name]; // arrow is optional + virtual elements
82
-
83
- if (!isHTMLElement(element) || !getNodeName(element)) {
84
- return;
85
- } // Flow doesn't support to extend this property, but it's the most
86
- // effective way to apply styles to an HTMLElement
87
- // $FlowFixMe[cannot-write]
88
-
89
-
90
- Object.assign(element.style, style);
91
- Object.keys(attributes).forEach(function (name) {
92
- var value = attributes[name];
93
-
94
- if (value === false) {
95
- element.removeAttribute(name);
96
- } else {
97
- element.setAttribute(name, value === true ? '' : value);
98
- }
99
- });
100
- });
101
- }
102
-
103
- function effect$2(_ref2) {
104
- var state = _ref2.state;
105
- var initialStyles = {
106
- popper: {
107
- position: state.options.strategy,
108
- left: '0',
109
- top: '0',
110
- margin: '0'
111
- },
112
- arrow: {
113
- position: 'absolute'
114
- },
115
- reference: {}
116
- };
117
- Object.assign(state.elements.popper.style, initialStyles.popper);
118
- state.styles = initialStyles;
119
-
120
- if (state.elements.arrow) {
121
- Object.assign(state.elements.arrow.style, initialStyles.arrow);
122
- }
123
-
124
- return function () {
125
- Object.keys(state.elements).forEach(function (name) {
126
- var element = state.elements[name];
127
- var attributes = state.attributes[name] || {};
128
- var styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]); // Set all values to an empty string to unset them
129
-
130
- var style = styleProperties.reduce(function (style, property) {
131
- style[property] = '';
132
- return style;
133
- }, {}); // arrow is optional + virtual elements
134
-
135
- if (!isHTMLElement(element) || !getNodeName(element)) {
136
- return;
137
- }
138
-
139
- Object.assign(element.style, style);
140
- Object.keys(attributes).forEach(function (attribute) {
141
- element.removeAttribute(attribute);
142
- });
143
- });
144
- };
145
- } // eslint-disable-next-line import/no-unused-modules
146
-
147
-
148
- const applyStyles$1 = {
149
- name: 'applyStyles',
150
- enabled: true,
151
- phase: 'write',
152
- fn: applyStyles,
153
- effect: effect$2,
154
- requires: ['computeStyles']
155
- };
156
-
157
- function getBasePlacement(placement) {
158
- return placement.split('-')[0];
159
- }
160
-
161
- var round$1 = Math.round;
162
- function getBoundingClientRect(element, includeScale) {
163
- if (includeScale === void 0) {
164
- includeScale = false;
165
- }
166
-
167
- var rect = element.getBoundingClientRect();
168
- var scaleX = 1;
169
- var scaleY = 1;
170
-
171
- if (isHTMLElement(element) && includeScale) {
172
- var offsetHeight = element.offsetHeight;
173
- var offsetWidth = element.offsetWidth; // Do not attempt to divide by 0, otherwise we get `Infinity` as scale
174
- // Fallback to 1 in case both values are `0`
175
-
176
- if (offsetWidth > 0) {
177
- scaleX = rect.width / offsetWidth || 1;
178
- }
179
-
180
- if (offsetHeight > 0) {
181
- scaleY = rect.height / offsetHeight || 1;
182
- }
183
- }
184
-
185
- return {
186
- width: round$1(rect.width / scaleX),
187
- height: round$1(rect.height / scaleY),
188
- top: round$1(rect.top / scaleY),
189
- right: round$1(rect.right / scaleX),
190
- bottom: round$1(rect.bottom / scaleY),
191
- left: round$1(rect.left / scaleX),
192
- x: round$1(rect.left / scaleX),
193
- y: round$1(rect.top / scaleY)
194
- };
195
- }
196
-
197
- // means it doesn't take into account transforms.
198
-
199
- function getLayoutRect(element) {
200
- var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.
201
- // Fixes https://github.com/popperjs/popper-core/issues/1223
202
-
203
- var width = element.offsetWidth;
204
- var height = element.offsetHeight;
205
-
206
- if (Math.abs(clientRect.width - width) <= 1) {
207
- width = clientRect.width;
208
- }
209
-
210
- if (Math.abs(clientRect.height - height) <= 1) {
211
- height = clientRect.height;
212
- }
213
-
214
- return {
215
- x: element.offsetLeft,
216
- y: element.offsetTop,
217
- width: width,
218
- height: height
219
- };
220
- }
221
-
222
- function contains(parent, child) {
223
- var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method
224
-
225
- if (parent.contains(child)) {
226
- return true;
227
- } // then fallback to custom implementation with Shadow DOM support
228
- else if (rootNode && isShadowRoot(rootNode)) {
229
- var next = child;
230
-
231
- do {
232
- if (next && parent.isSameNode(next)) {
233
- return true;
234
- } // $FlowFixMe[prop-missing]: need a better way to handle this...
235
-
236
-
237
- next = next.parentNode || next.host;
238
- } while (next);
239
- } // Give up, the result is false
240
-
241
-
242
- return false;
243
- }
244
-
245
- function getComputedStyle(element) {
246
- return getWindow(element).getComputedStyle(element);
247
- }
248
-
249
- function isTableElement(element) {
250
- return ['table', 'td', 'th'].indexOf(getNodeName(element)) >= 0;
251
- }
252
-
253
- function getDocumentElement(element) {
254
- // $FlowFixMe[incompatible-return]: assume body is always available
255
- return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]
256
- element.document) || window.document).documentElement;
257
- }
258
-
259
- function getParentNode(element) {
260
- if (getNodeName(element) === 'html') {
261
- return element;
262
- }
263
-
264
- return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle
265
- // $FlowFixMe[incompatible-return]
266
- // $FlowFixMe[prop-missing]
267
- element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
268
- element.parentNode || ( // DOM Element detected
269
- isShadowRoot(element) ? element.host : null) || // ShadowRoot detected
270
- // $FlowFixMe[incompatible-call]: HTMLElement is a Node
271
- getDocumentElement(element) // fallback
272
-
273
- );
274
- }
275
-
276
- function getTrueOffsetParent(element) {
277
- if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837
278
- getComputedStyle(element).position === 'fixed') {
279
- return null;
280
- }
281
-
282
- return element.offsetParent;
283
- } // `.offsetParent` reports `null` for fixed elements, while absolute elements
284
- // return the containing block
285
-
286
-
287
- function getContainingBlock(element) {
288
- var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;
289
- var isIE = navigator.userAgent.indexOf('Trident') !== -1;
290
-
291
- if (isIE && isHTMLElement(element)) {
292
- // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport
293
- var elementCss = getComputedStyle(element);
294
-
295
- if (elementCss.position === 'fixed') {
296
- return null;
297
- }
298
- }
299
-
300
- var currentNode = getParentNode(element);
301
-
302
- while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
303
- var css = getComputedStyle(currentNode); // This is non-exhaustive but covers the most common CSS properties that
304
- // create a containing block.
305
- // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
306
-
307
- 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') {
308
- return currentNode;
309
- } else {
310
- currentNode = currentNode.parentNode;
311
- }
312
- }
313
-
314
- return null;
315
- } // Gets the closest ancestor positioned element. Handles some edge cases,
316
- // such as table ancestors and cross browser bugs.
317
-
318
-
319
- function getOffsetParent(element) {
320
- var window = getWindow(element);
321
- var offsetParent = getTrueOffsetParent(element);
322
-
323
- while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === 'static') {
324
- offsetParent = getTrueOffsetParent(offsetParent);
325
- }
326
-
327
- if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle(offsetParent).position === 'static')) {
328
- return window;
329
- }
330
-
331
- return offsetParent || getContainingBlock(element) || window;
332
- }
333
-
334
- function getMainAxisFromPlacement(placement) {
335
- return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
336
- }
337
-
338
- var max = Math.max;
339
- var min = Math.min;
340
- var round = Math.round;
341
-
342
- function within(min$1, value, max$1) {
343
- return max(min$1, min(value, max$1));
344
- }
345
-
346
- function getFreshSideObject() {
347
- return {
348
- top: 0,
349
- right: 0,
350
- bottom: 0,
351
- left: 0
352
- };
353
- }
354
-
355
- function mergePaddingObject(paddingObject) {
356
- return Object.assign({}, getFreshSideObject(), paddingObject);
357
- }
358
-
359
- function expandToHashMap(value, keys) {
360
- return keys.reduce(function (hashMap, key) {
361
- hashMap[key] = value;
362
- return hashMap;
363
- }, {});
364
- }
365
-
366
- var toPaddingObject = function toPaddingObject(padding, state) {
367
- padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {
368
- placement: state.placement
369
- })) : padding;
370
- return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
371
- };
372
-
373
- function arrow(_ref) {
374
- var _state$modifiersData$;
375
-
376
- var state = _ref.state,
377
- name = _ref.name,
378
- options = _ref.options;
379
- var arrowElement = state.elements.arrow;
380
- var popperOffsets = state.modifiersData.popperOffsets;
381
- var basePlacement = getBasePlacement(state.placement);
382
- var axis = getMainAxisFromPlacement(basePlacement);
383
- var isVertical = [left, right].indexOf(basePlacement) >= 0;
384
- var len = isVertical ? 'height' : 'width';
385
-
386
- if (!arrowElement || !popperOffsets) {
387
- return;
388
- }
389
-
390
- var paddingObject = toPaddingObject(options.padding, state);
391
- var arrowRect = getLayoutRect(arrowElement);
392
- var minProp = axis === 'y' ? top : left;
393
- var maxProp = axis === 'y' ? bottom : right;
394
- var endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets[axis] - state.rects.popper[len];
395
- var startDiff = popperOffsets[axis] - state.rects.reference[axis];
396
- var arrowOffsetParent = getOffsetParent(arrowElement);
397
- var clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;
398
- var centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the popper if the center point is
399
- // outside of the popper bounds
400
-
401
- var min = paddingObject[minProp];
402
- var max = clientSize - arrowRect[len] - paddingObject[maxProp];
403
- var center = clientSize / 2 - arrowRect[len] / 2 + centerToReference;
404
- var offset = within(min, center, max); // Prevents breaking syntax highlighting...
405
-
406
- var axisProp = axis;
407
- state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);
408
- }
409
-
410
- function effect$1(_ref2) {
411
- var state = _ref2.state,
412
- options = _ref2.options;
413
- var _options$element = options.element,
414
- arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;
415
-
416
- if (arrowElement == null) {
417
- return;
418
- } // CSS selector
419
-
420
-
421
- if (typeof arrowElement === 'string') {
422
- arrowElement = state.elements.popper.querySelector(arrowElement);
423
-
424
- if (!arrowElement) {
425
- return;
426
- }
427
- }
428
-
429
- if (!contains(state.elements.popper, arrowElement)) {
430
-
431
- return;
432
- }
433
-
434
- state.elements.arrow = arrowElement;
435
- } // eslint-disable-next-line import/no-unused-modules
436
-
437
-
438
- const arrow$1 = {
439
- name: 'arrow',
440
- enabled: true,
441
- phase: 'main',
442
- fn: arrow,
443
- effect: effect$1,
444
- requires: ['popperOffsets'],
445
- requiresIfExists: ['preventOverflow']
446
- };
447
-
448
- function getVariation(placement) {
449
- return placement.split('-')[1];
450
- }
451
-
452
- var unsetSides = {
453
- top: 'auto',
454
- right: 'auto',
455
- bottom: 'auto',
456
- left: 'auto'
457
- }; // Round the offsets to the nearest suitable subpixel based on the DPR.
458
- // Zooming can change the DPR, but it seems to report a value that will
459
- // cleanly divide the values into the appropriate subpixels.
460
-
461
- function roundOffsetsByDPR(_ref) {
462
- var x = _ref.x,
463
- y = _ref.y;
464
- var win = window;
465
- var dpr = win.devicePixelRatio || 1;
466
- return {
467
- x: round(round(x * dpr) / dpr) || 0,
468
- y: round(round(y * dpr) / dpr) || 0
469
- };
470
- }
471
-
472
- function mapToStyles(_ref2) {
473
- var _Object$assign2;
474
-
475
- var popper = _ref2.popper,
476
- popperRect = _ref2.popperRect,
477
- placement = _ref2.placement,
478
- variation = _ref2.variation,
479
- offsets = _ref2.offsets,
480
- position = _ref2.position,
481
- gpuAcceleration = _ref2.gpuAcceleration,
482
- adaptive = _ref2.adaptive,
483
- roundOffsets = _ref2.roundOffsets;
484
-
485
- var _ref3 = roundOffsets === true ? roundOffsetsByDPR(offsets) : typeof roundOffsets === 'function' ? roundOffsets(offsets) : offsets,
486
- _ref3$x = _ref3.x,
487
- x = _ref3$x === void 0 ? 0 : _ref3$x,
488
- _ref3$y = _ref3.y,
489
- y = _ref3$y === void 0 ? 0 : _ref3$y;
490
-
491
- var hasX = offsets.hasOwnProperty('x');
492
- var hasY = offsets.hasOwnProperty('y');
493
- var sideX = left;
494
- var sideY = top;
495
- var win = window;
496
-
497
- if (adaptive) {
498
- var offsetParent = getOffsetParent(popper);
499
- var heightProp = 'clientHeight';
500
- var widthProp = 'clientWidth';
501
-
502
- if (offsetParent === getWindow(popper)) {
503
- offsetParent = getDocumentElement(popper);
504
-
505
- if (getComputedStyle(offsetParent).position !== 'static' && position === 'absolute') {
506
- heightProp = 'scrollHeight';
507
- widthProp = 'scrollWidth';
508
- }
509
- } // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
510
-
511
-
512
- offsetParent = offsetParent;
513
-
514
- if (placement === top || (placement === left || placement === right) && variation === end) {
515
- sideY = bottom; // $FlowFixMe[prop-missing]
516
-
517
- y -= offsetParent[heightProp] - popperRect.height;
518
- y *= gpuAcceleration ? 1 : -1;
519
- }
520
-
521
- if (placement === left || (placement === top || placement === bottom) && variation === end) {
522
- sideX = right; // $FlowFixMe[prop-missing]
523
-
524
- x -= offsetParent[widthProp] - popperRect.width;
525
- x *= gpuAcceleration ? 1 : -1;
526
- }
527
- }
528
-
529
- var commonStyles = Object.assign({
530
- position: position
531
- }, adaptive && unsetSides);
532
-
533
- if (gpuAcceleration) {
534
- var _Object$assign;
535
-
536
- 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));
537
- }
538
-
539
- return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
540
- }
541
-
542
- function computeStyles(_ref4) {
543
- var state = _ref4.state,
544
- options = _ref4.options;
545
- var _options$gpuAccelerat = options.gpuAcceleration,
546
- gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
547
- _options$adaptive = options.adaptive,
548
- adaptive = _options$adaptive === void 0 ? true : _options$adaptive,
549
- _options$roundOffsets = options.roundOffsets,
550
- roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
551
-
552
- var commonStyles = {
553
- placement: getBasePlacement(state.placement),
554
- variation: getVariation(state.placement),
555
- popper: state.elements.popper,
556
- popperRect: state.rects.popper,
557
- gpuAcceleration: gpuAcceleration
558
- };
559
-
560
- if (state.modifiersData.popperOffsets != null) {
561
- state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
562
- offsets: state.modifiersData.popperOffsets,
563
- position: state.options.strategy,
564
- adaptive: adaptive,
565
- roundOffsets: roundOffsets
566
- })));
567
- }
568
-
569
- if (state.modifiersData.arrow != null) {
570
- state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
571
- offsets: state.modifiersData.arrow,
572
- position: 'absolute',
573
- adaptive: false,
574
- roundOffsets: roundOffsets
575
- })));
576
- }
577
-
578
- state.attributes.popper = Object.assign({}, state.attributes.popper, {
579
- 'data-popper-placement': state.placement
580
- });
581
- } // eslint-disable-next-line import/no-unused-modules
582
-
583
-
584
- const computeStyles$1 = {
585
- name: 'computeStyles',
586
- enabled: true,
587
- phase: 'beforeWrite',
588
- fn: computeStyles,
589
- data: {}
590
- };
591
-
592
- var passive = {
593
- passive: true
594
- };
595
-
596
- function effect(_ref) {
597
- var state = _ref.state,
598
- instance = _ref.instance,
599
- options = _ref.options;
600
- var _options$scroll = options.scroll,
601
- scroll = _options$scroll === void 0 ? true : _options$scroll,
602
- _options$resize = options.resize,
603
- resize = _options$resize === void 0 ? true : _options$resize;
604
- var window = getWindow(state.elements.popper);
605
- var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);
606
-
607
- if (scroll) {
608
- scrollParents.forEach(function (scrollParent) {
609
- scrollParent.addEventListener('scroll', instance.update, passive);
610
- });
611
- }
612
-
613
- if (resize) {
614
- window.addEventListener('resize', instance.update, passive);
615
- }
616
-
617
- return function () {
618
- if (scroll) {
619
- scrollParents.forEach(function (scrollParent) {
620
- scrollParent.removeEventListener('scroll', instance.update, passive);
621
- });
622
- }
623
-
624
- if (resize) {
625
- window.removeEventListener('resize', instance.update, passive);
626
- }
627
- };
628
- } // eslint-disable-next-line import/no-unused-modules
629
-
630
-
631
- const eventListeners = {
632
- name: 'eventListeners',
633
- enabled: true,
634
- phase: 'write',
635
- fn: function fn() {},
636
- effect: effect,
637
- data: {}
638
- };
639
-
640
- var hash$1 = {
641
- left: 'right',
642
- right: 'left',
643
- bottom: 'top',
644
- top: 'bottom'
645
- };
646
- function getOppositePlacement(placement) {
647
- return placement.replace(/left|right|bottom|top/g, function (matched) {
648
- return hash$1[matched];
649
- });
650
- }
651
-
652
- var hash = {
653
- start: 'end',
654
- end: 'start'
655
- };
656
- function getOppositeVariationPlacement(placement) {
657
- return placement.replace(/start|end/g, function (matched) {
658
- return hash[matched];
659
- });
660
- }
661
-
662
- function getWindowScroll(node) {
663
- var win = getWindow(node);
664
- var scrollLeft = win.pageXOffset;
665
- var scrollTop = win.pageYOffset;
666
- return {
667
- scrollLeft: scrollLeft,
668
- scrollTop: scrollTop
669
- };
670
- }
671
-
672
- function getWindowScrollBarX(element) {
673
- // If <html> has a CSS width greater than the viewport, then this will be
674
- // incorrect for RTL.
675
- // Popper 1 is broken in this case and never had a bug report so let's assume
676
- // it's not an issue. I don't think anyone ever specifies width on <html>
677
- // anyway.
678
- // Browsers where the left scrollbar doesn't cause an issue report `0` for
679
- // this (e.g. Edge 2019, IE11, Safari)
680
- return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;
681
- }
682
-
683
- function getViewportRect(element) {
684
- var win = getWindow(element);
685
- var html = getDocumentElement(element);
686
- var visualViewport = win.visualViewport;
687
- var width = html.clientWidth;
688
- var height = html.clientHeight;
689
- var x = 0;
690
- var y = 0; // NB: This isn't supported on iOS <= 12. If the keyboard is open, the popper
691
- // can be obscured underneath it.
692
- // Also, `html.clientHeight` adds the bottom bar height in Safari iOS, even
693
- // if it isn't open, so if this isn't available, the popper will be detected
694
- // to overflow the bottom of the screen too early.
695
-
696
- if (visualViewport) {
697
- width = visualViewport.width;
698
- height = visualViewport.height; // Uses Layout Viewport (like Chrome; Safari does not currently)
699
- // In Chrome, it returns a value very close to 0 (+/-) but contains rounding
700
- // errors due to floating point numbers, so we need to check precision.
701
- // Safari returns a number <= 0, usually < -1 when pinch-zoomed
702
- // Feature detection fails in mobile emulation mode in Chrome.
703
- // Math.abs(win.innerWidth / visualViewport.scale - visualViewport.width) <
704
- // 0.001
705
- // Fallback here: "Not Safari" userAgent
706
-
707
- if (!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)) {
708
- x = visualViewport.offsetLeft;
709
- y = visualViewport.offsetTop;
710
- }
711
- }
712
-
713
- return {
714
- width: width,
715
- height: height,
716
- x: x + getWindowScrollBarX(element),
717
- y: y
718
- };
719
- }
720
-
721
- // of the `<html>` and `<body>` rect bounds if horizontally scrollable
722
-
723
- function getDocumentRect(element) {
724
- var _element$ownerDocumen;
725
-
726
- var html = getDocumentElement(element);
727
- var winScroll = getWindowScroll(element);
728
- var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
729
- var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
730
- var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
731
- var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
732
- var y = -winScroll.scrollTop;
733
-
734
- if (getComputedStyle(body || html).direction === 'rtl') {
735
- x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
736
- }
737
-
738
- return {
739
- width: width,
740
- height: height,
741
- x: x,
742
- y: y
743
- };
744
- }
745
-
746
- function isScrollParent(element) {
747
- // Firefox wants us to check `-x` and `-y` variations as well
748
- var _getComputedStyle = getComputedStyle(element),
749
- overflow = _getComputedStyle.overflow,
750
- overflowX = _getComputedStyle.overflowX,
751
- overflowY = _getComputedStyle.overflowY;
752
-
753
- return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
754
- }
755
-
756
- function getScrollParent(node) {
757
- if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {
758
- // $FlowFixMe[incompatible-return]: assume body is always available
759
- return node.ownerDocument.body;
760
- }
761
-
762
- if (isHTMLElement(node) && isScrollParent(node)) {
763
- return node;
764
- }
765
-
766
- return getScrollParent(getParentNode(node));
767
- }
768
-
769
- /*
770
- given a DOM element, return the list of all scroll parents, up the list of ancesors
771
- until we get to the top window object. This list is what we attach scroll listeners
772
- to, because if any of these parent elements scroll, we'll need to re-calculate the
773
- reference element's position.
774
- */
775
-
776
- function listScrollParents(element, list) {
777
- var _element$ownerDocumen;
778
-
779
- if (list === void 0) {
780
- list = [];
781
- }
782
-
783
- var scrollParent = getScrollParent(element);
784
- var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);
785
- var win = getWindow(scrollParent);
786
- var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
787
- var updatedList = list.concat(target);
788
- return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
789
- updatedList.concat(listScrollParents(getParentNode(target)));
790
- }
791
-
792
- function rectToClientRect(rect) {
793
- return Object.assign({}, rect, {
794
- left: rect.x,
795
- top: rect.y,
796
- right: rect.x + rect.width,
797
- bottom: rect.y + rect.height
798
- });
799
- }
800
-
801
- function getInnerBoundingClientRect(element) {
802
- var rect = getBoundingClientRect(element);
803
- rect.top = rect.top + element.clientTop;
804
- rect.left = rect.left + element.clientLeft;
805
- rect.bottom = rect.top + element.clientHeight;
806
- rect.right = rect.left + element.clientWidth;
807
- rect.width = element.clientWidth;
808
- rect.height = element.clientHeight;
809
- rect.x = rect.left;
810
- rect.y = rect.top;
811
- return rect;
812
- }
813
-
814
- function getClientRectFromMixedType(element, clippingParent) {
815
- return clippingParent === viewport ? rectToClientRect(getViewportRect(element)) : isHTMLElement(clippingParent) ? getInnerBoundingClientRect(clippingParent) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
816
- } // A "clipping parent" is an overflowable container with the characteristic of
817
- // clipping (or hiding) overflowing elements with a position different from
818
- // `initial`
819
-
820
-
821
- function getClippingParents(element) {
822
- var clippingParents = listScrollParents(getParentNode(element));
823
- var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle(element).position) >= 0;
824
- var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
825
-
826
- if (!isElement(clipperElement)) {
827
- return [];
828
- } // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414
829
-
830
-
831
- return clippingParents.filter(function (clippingParent) {
832
- return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
833
- });
834
- } // Gets the maximum area that the element is visible in due to any number of
835
- // clipping parents
836
-
837
-
838
- function getClippingRect(element, boundary, rootBoundary) {
839
- var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);
840
- var clippingParents = [].concat(mainClippingParents, [rootBoundary]);
841
- var firstClippingParent = clippingParents[0];
842
- var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
843
- var rect = getClientRectFromMixedType(element, clippingParent);
844
- accRect.top = max(rect.top, accRect.top);
845
- accRect.right = min(rect.right, accRect.right);
846
- accRect.bottom = min(rect.bottom, accRect.bottom);
847
- accRect.left = max(rect.left, accRect.left);
848
- return accRect;
849
- }, getClientRectFromMixedType(element, firstClippingParent));
850
- clippingRect.width = clippingRect.right - clippingRect.left;
851
- clippingRect.height = clippingRect.bottom - clippingRect.top;
852
- clippingRect.x = clippingRect.left;
853
- clippingRect.y = clippingRect.top;
854
- return clippingRect;
855
- }
856
-
857
- function computeOffsets(_ref) {
858
- var reference = _ref.reference,
859
- element = _ref.element,
860
- placement = _ref.placement;
861
- var basePlacement = placement ? getBasePlacement(placement) : null;
862
- var variation = placement ? getVariation(placement) : null;
863
- var commonX = reference.x + reference.width / 2 - element.width / 2;
864
- var commonY = reference.y + reference.height / 2 - element.height / 2;
865
- var offsets;
866
-
867
- switch (basePlacement) {
868
- case top:
869
- offsets = {
870
- x: commonX,
871
- y: reference.y - element.height
872
- };
873
- break;
874
-
875
- case bottom:
876
- offsets = {
877
- x: commonX,
878
- y: reference.y + reference.height
879
- };
880
- break;
881
-
882
- case right:
883
- offsets = {
884
- x: reference.x + reference.width,
885
- y: commonY
886
- };
887
- break;
888
-
889
- case left:
890
- offsets = {
891
- x: reference.x - element.width,
892
- y: commonY
893
- };
894
- break;
895
-
896
- default:
897
- offsets = {
898
- x: reference.x,
899
- y: reference.y
900
- };
901
- }
902
-
903
- var mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null;
904
-
905
- if (mainAxis != null) {
906
- var len = mainAxis === 'y' ? 'height' : 'width';
907
-
908
- switch (variation) {
909
- case start:
910
- offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);
911
- break;
912
-
913
- case end:
914
- offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);
915
- break;
916
- }
917
- }
918
-
919
- return offsets;
920
- }
921
-
922
- function detectOverflow(state, options) {
923
- if (options === void 0) {
924
- options = {};
925
- }
926
-
927
- var _options = options,
928
- _options$placement = _options.placement,
929
- placement = _options$placement === void 0 ? state.placement : _options$placement,
930
- _options$boundary = _options.boundary,
931
- boundary = _options$boundary === void 0 ? clippingParents : _options$boundary,
932
- _options$rootBoundary = _options.rootBoundary,
933
- rootBoundary = _options$rootBoundary === void 0 ? viewport : _options$rootBoundary,
934
- _options$elementConte = _options.elementContext,
935
- elementContext = _options$elementConte === void 0 ? popper : _options$elementConte,
936
- _options$altBoundary = _options.altBoundary,
937
- altBoundary = _options$altBoundary === void 0 ? false : _options$altBoundary,
938
- _options$padding = _options.padding,
939
- padding = _options$padding === void 0 ? 0 : _options$padding;
940
- var paddingObject = mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
941
- var altContext = elementContext === popper ? reference : popper;
942
- var popperRect = state.rects.popper;
943
- var element = state.elements[altBoundary ? altContext : elementContext];
944
- var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary);
945
- var referenceClientRect = getBoundingClientRect(state.elements.reference);
946
- var popperOffsets = computeOffsets({
947
- reference: referenceClientRect,
948
- element: popperRect,
949
- strategy: 'absolute',
950
- placement: placement
951
- });
952
- var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));
953
- var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect
954
- // 0 or negative = within the clipping rect
955
-
956
- var overflowOffsets = {
957
- top: clippingClientRect.top - elementClientRect.top + paddingObject.top,
958
- bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,
959
- left: clippingClientRect.left - elementClientRect.left + paddingObject.left,
960
- right: elementClientRect.right - clippingClientRect.right + paddingObject.right
961
- };
962
- var offsetData = state.modifiersData.offset; // Offsets can be applied only to the popper element
963
-
964
- if (elementContext === popper && offsetData) {
965
- var offset = offsetData[placement];
966
- Object.keys(overflowOffsets).forEach(function (key) {
967
- var multiply = [right, bottom].indexOf(key) >= 0 ? 1 : -1;
968
- var axis = [top, bottom].indexOf(key) >= 0 ? 'y' : 'x';
969
- overflowOffsets[key] += offset[axis] * multiply;
970
- });
971
- }
972
-
973
- return overflowOffsets;
974
- }
975
-
976
- function computeAutoPlacement(state, options) {
977
- if (options === void 0) {
978
- options = {};
979
- }
980
-
981
- var _options = options,
982
- placement = _options.placement,
983
- boundary = _options.boundary,
984
- rootBoundary = _options.rootBoundary,
985
- padding = _options.padding,
986
- flipVariations = _options.flipVariations,
987
- _options$allowedAutoP = _options.allowedAutoPlacements,
988
- allowedAutoPlacements = _options$allowedAutoP === void 0 ? placements : _options$allowedAutoP;
989
- var variation = getVariation(placement);
990
- var placements$1 = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {
991
- return getVariation(placement) === variation;
992
- }) : basePlacements;
993
- var allowedPlacements = placements$1.filter(function (placement) {
994
- return allowedAutoPlacements.indexOf(placement) >= 0;
995
- });
996
-
997
- if (allowedPlacements.length === 0) {
998
- allowedPlacements = placements$1;
999
- } // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...
1000
-
1001
-
1002
- var overflows = allowedPlacements.reduce(function (acc, placement) {
1003
- acc[placement] = detectOverflow(state, {
1004
- placement: placement,
1005
- boundary: boundary,
1006
- rootBoundary: rootBoundary,
1007
- padding: padding
1008
- })[getBasePlacement(placement)];
1009
- return acc;
1010
- }, {});
1011
- return Object.keys(overflows).sort(function (a, b) {
1012
- return overflows[a] - overflows[b];
1013
- });
1014
- }
1015
-
1016
- function getExpandedFallbackPlacements(placement) {
1017
- if (getBasePlacement(placement) === auto) {
1018
- return [];
1019
- }
1020
-
1021
- var oppositePlacement = getOppositePlacement(placement);
1022
- return [getOppositeVariationPlacement(placement), oppositePlacement, getOppositeVariationPlacement(oppositePlacement)];
1023
- }
1024
-
1025
- function flip(_ref) {
1026
- var state = _ref.state,
1027
- options = _ref.options,
1028
- name = _ref.name;
1029
-
1030
- if (state.modifiersData[name]._skip) {
1031
- return;
1032
- }
1033
-
1034
- var _options$mainAxis = options.mainAxis,
1035
- checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,
1036
- _options$altAxis = options.altAxis,
1037
- checkAltAxis = _options$altAxis === void 0 ? true : _options$altAxis,
1038
- specifiedFallbackPlacements = options.fallbackPlacements,
1039
- padding = options.padding,
1040
- boundary = options.boundary,
1041
- rootBoundary = options.rootBoundary,
1042
- altBoundary = options.altBoundary,
1043
- _options$flipVariatio = options.flipVariations,
1044
- flipVariations = _options$flipVariatio === void 0 ? true : _options$flipVariatio,
1045
- allowedAutoPlacements = options.allowedAutoPlacements;
1046
- var preferredPlacement = state.options.placement;
1047
- var basePlacement = getBasePlacement(preferredPlacement);
1048
- var isBasePlacement = basePlacement === preferredPlacement;
1049
- var fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipVariations ? [getOppositePlacement(preferredPlacement)] : getExpandedFallbackPlacements(preferredPlacement));
1050
- var placements = [preferredPlacement].concat(fallbackPlacements).reduce(function (acc, placement) {
1051
- return acc.concat(getBasePlacement(placement) === auto ? computeAutoPlacement(state, {
1052
- placement: placement,
1053
- boundary: boundary,
1054
- rootBoundary: rootBoundary,
1055
- padding: padding,
1056
- flipVariations: flipVariations,
1057
- allowedAutoPlacements: allowedAutoPlacements
1058
- }) : placement);
1059
- }, []);
1060
- var referenceRect = state.rects.reference;
1061
- var popperRect = state.rects.popper;
1062
- var checksMap = new Map();
1063
- var makeFallbackChecks = true;
1064
- var firstFittingPlacement = placements[0];
1065
-
1066
- for (var i = 0; i < placements.length; i++) {
1067
- var placement = placements[i];
1068
-
1069
- var _basePlacement = getBasePlacement(placement);
1070
-
1071
- var isStartVariation = getVariation(placement) === start;
1072
- var isVertical = [top, bottom].indexOf(_basePlacement) >= 0;
1073
- var len = isVertical ? 'width' : 'height';
1074
- var overflow = detectOverflow(state, {
1075
- placement: placement,
1076
- boundary: boundary,
1077
- rootBoundary: rootBoundary,
1078
- altBoundary: altBoundary,
1079
- padding: padding
1080
- });
1081
- var mainVariationSide = isVertical ? isStartVariation ? right : left : isStartVariation ? bottom : top;
1082
-
1083
- if (referenceRect[len] > popperRect[len]) {
1084
- mainVariationSide = getOppositePlacement(mainVariationSide);
1085
- }
1086
-
1087
- var altVariationSide = getOppositePlacement(mainVariationSide);
1088
- var checks = [];
1089
-
1090
- if (checkMainAxis) {
1091
- checks.push(overflow[_basePlacement] <= 0);
1092
- }
1093
-
1094
- if (checkAltAxis) {
1095
- checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0);
1096
- }
1097
-
1098
- if (checks.every(function (check) {
1099
- return check;
1100
- })) {
1101
- firstFittingPlacement = placement;
1102
- makeFallbackChecks = false;
1103
- break;
1104
- }
1105
-
1106
- checksMap.set(placement, checks);
1107
- }
1108
-
1109
- if (makeFallbackChecks) {
1110
- // `2` may be desired in some cases – research later
1111
- var numberOfChecks = flipVariations ? 3 : 1;
1112
-
1113
- var _loop = function _loop(_i) {
1114
- var fittingPlacement = placements.find(function (placement) {
1115
- var checks = checksMap.get(placement);
1116
-
1117
- if (checks) {
1118
- return checks.slice(0, _i).every(function (check) {
1119
- return check;
1120
- });
1121
- }
1122
- });
1123
-
1124
- if (fittingPlacement) {
1125
- firstFittingPlacement = fittingPlacement;
1126
- return "break";
1127
- }
1128
- };
1129
-
1130
- for (var _i = numberOfChecks; _i > 0; _i--) {
1131
- var _ret = _loop(_i);
1132
-
1133
- if (_ret === "break") break;
1134
- }
1135
- }
1136
-
1137
- if (state.placement !== firstFittingPlacement) {
1138
- state.modifiersData[name]._skip = true;
1139
- state.placement = firstFittingPlacement;
1140
- state.reset = true;
1141
- }
1142
- } // eslint-disable-next-line import/no-unused-modules
1143
-
1144
-
1145
- const flip$1 = {
1146
- name: 'flip',
1147
- enabled: true,
1148
- phase: 'main',
1149
- fn: flip,
1150
- requiresIfExists: ['offset'],
1151
- data: {
1152
- _skip: false
1153
- }
1154
- };
1155
-
1156
- function getSideOffsets(overflow, rect, preventedOffsets) {
1157
- if (preventedOffsets === void 0) {
1158
- preventedOffsets = {
1159
- x: 0,
1160
- y: 0
1161
- };
1162
- }
1163
-
1164
- return {
1165
- top: overflow.top - rect.height - preventedOffsets.y,
1166
- right: overflow.right - rect.width + preventedOffsets.x,
1167
- bottom: overflow.bottom - rect.height + preventedOffsets.y,
1168
- left: overflow.left - rect.width - preventedOffsets.x
1169
- };
1170
- }
1171
-
1172
- function isAnySideFullyClipped(overflow) {
1173
- return [top, right, bottom, left].some(function (side) {
1174
- return overflow[side] >= 0;
1175
- });
1176
- }
1177
-
1178
- function hide(_ref) {
1179
- var state = _ref.state,
1180
- name = _ref.name;
1181
- var referenceRect = state.rects.reference;
1182
- var popperRect = state.rects.popper;
1183
- var preventedOffsets = state.modifiersData.preventOverflow;
1184
- var referenceOverflow = detectOverflow(state, {
1185
- elementContext: 'reference'
1186
- });
1187
- var popperAltOverflow = detectOverflow(state, {
1188
- altBoundary: true
1189
- });
1190
- var referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect);
1191
- var popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets);
1192
- var isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets);
1193
- var hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets);
1194
- state.modifiersData[name] = {
1195
- referenceClippingOffsets: referenceClippingOffsets,
1196
- popperEscapeOffsets: popperEscapeOffsets,
1197
- isReferenceHidden: isReferenceHidden,
1198
- hasPopperEscaped: hasPopperEscaped
1199
- };
1200
- state.attributes.popper = Object.assign({}, state.attributes.popper, {
1201
- 'data-popper-reference-hidden': isReferenceHidden,
1202
- 'data-popper-escaped': hasPopperEscaped
1203
- });
1204
- } // eslint-disable-next-line import/no-unused-modules
1205
-
1206
-
1207
- const hide$1 = {
1208
- name: 'hide',
1209
- enabled: true,
1210
- phase: 'main',
1211
- requiresIfExists: ['preventOverflow'],
1212
- fn: hide
1213
- };
1214
-
1215
- function distanceAndSkiddingToXY(placement, rects, offset) {
1216
- var basePlacement = getBasePlacement(placement);
1217
- var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;
1218
-
1219
- var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {
1220
- placement: placement
1221
- })) : offset,
1222
- skidding = _ref[0],
1223
- distance = _ref[1];
1224
-
1225
- skidding = skidding || 0;
1226
- distance = (distance || 0) * invertDistance;
1227
- return [left, right].indexOf(basePlacement) >= 0 ? {
1228
- x: distance,
1229
- y: skidding
1230
- } : {
1231
- x: skidding,
1232
- y: distance
1233
- };
1234
- }
1235
-
1236
- function offset(_ref2) {
1237
- var state = _ref2.state,
1238
- options = _ref2.options,
1239
- name = _ref2.name;
1240
- var _options$offset = options.offset,
1241
- offset = _options$offset === void 0 ? [0, 0] : _options$offset;
1242
- var data = placements.reduce(function (acc, placement) {
1243
- acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset);
1244
- return acc;
1245
- }, {});
1246
- var _data$state$placement = data[state.placement],
1247
- x = _data$state$placement.x,
1248
- y = _data$state$placement.y;
1249
-
1250
- if (state.modifiersData.popperOffsets != null) {
1251
- state.modifiersData.popperOffsets.x += x;
1252
- state.modifiersData.popperOffsets.y += y;
1253
- }
1254
-
1255
- state.modifiersData[name] = data;
1256
- } // eslint-disable-next-line import/no-unused-modules
1257
-
1258
-
1259
- const offset$1 = {
1260
- name: 'offset',
1261
- enabled: true,
1262
- phase: 'main',
1263
- requires: ['popperOffsets'],
1264
- fn: offset
1265
- };
1266
-
1267
- function popperOffsets(_ref) {
1268
- var state = _ref.state,
1269
- name = _ref.name;
1270
- // Offsets are the actual position the popper needs to have to be
1271
- // properly positioned near its reference element
1272
- // This is the most basic placement, and will be adjusted by
1273
- // the modifiers in the next step
1274
- state.modifiersData[name] = computeOffsets({
1275
- reference: state.rects.reference,
1276
- element: state.rects.popper,
1277
- strategy: 'absolute',
1278
- placement: state.placement
1279
- });
1280
- } // eslint-disable-next-line import/no-unused-modules
1281
-
1282
-
1283
- const popperOffsets$1 = {
1284
- name: 'popperOffsets',
1285
- enabled: true,
1286
- phase: 'read',
1287
- fn: popperOffsets,
1288
- data: {}
1289
- };
1290
-
1291
- function getAltAxis(axis) {
1292
- return axis === 'x' ? 'y' : 'x';
1293
- }
1294
-
1295
- function preventOverflow(_ref) {
1296
- var state = _ref.state,
1297
- options = _ref.options,
1298
- name = _ref.name;
1299
- var _options$mainAxis = options.mainAxis,
1300
- checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,
1301
- _options$altAxis = options.altAxis,
1302
- checkAltAxis = _options$altAxis === void 0 ? false : _options$altAxis,
1303
- boundary = options.boundary,
1304
- rootBoundary = options.rootBoundary,
1305
- altBoundary = options.altBoundary,
1306
- padding = options.padding,
1307
- _options$tether = options.tether,
1308
- tether = _options$tether === void 0 ? true : _options$tether,
1309
- _options$tetherOffset = options.tetherOffset,
1310
- tetherOffset = _options$tetherOffset === void 0 ? 0 : _options$tetherOffset;
1311
- var overflow = detectOverflow(state, {
1312
- boundary: boundary,
1313
- rootBoundary: rootBoundary,
1314
- padding: padding,
1315
- altBoundary: altBoundary
1316
- });
1317
- var basePlacement = getBasePlacement(state.placement);
1318
- var variation = getVariation(state.placement);
1319
- var isBasePlacement = !variation;
1320
- var mainAxis = getMainAxisFromPlacement(basePlacement);
1321
- var altAxis = getAltAxis(mainAxis);
1322
- var popperOffsets = state.modifiersData.popperOffsets;
1323
- var referenceRect = state.rects.reference;
1324
- var popperRect = state.rects.popper;
1325
- var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
1326
- placement: state.placement
1327
- })) : tetherOffset;
1328
- var data = {
1329
- x: 0,
1330
- y: 0
1331
- };
1332
-
1333
- if (!popperOffsets) {
1334
- return;
1335
- }
1336
-
1337
- if (checkMainAxis || checkAltAxis) {
1338
- var mainSide = mainAxis === 'y' ? top : left;
1339
- var altSide = mainAxis === 'y' ? bottom : right;
1340
- var len = mainAxis === 'y' ? 'height' : 'width';
1341
- var offset = popperOffsets[mainAxis];
1342
- var min$1 = popperOffsets[mainAxis] + overflow[mainSide];
1343
- var max$1 = popperOffsets[mainAxis] - overflow[altSide];
1344
- var additive = tether ? -popperRect[len] / 2 : 0;
1345
- var minLen = variation === start ? referenceRect[len] : popperRect[len];
1346
- var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
1347
- // outside the reference bounds
1348
-
1349
- var arrowElement = state.elements.arrow;
1350
- var arrowRect = tether && arrowElement ? getLayoutRect(arrowElement) : {
1351
- width: 0,
1352
- height: 0
1353
- };
1354
- var arrowPaddingObject = state.modifiersData['arrow#persistent'] ? state.modifiersData['arrow#persistent'].padding : getFreshSideObject();
1355
- var arrowPaddingMin = arrowPaddingObject[mainSide];
1356
- var arrowPaddingMax = arrowPaddingObject[altSide]; // If the reference length is smaller than the arrow length, we don't want
1357
- // to include its full size in the calculation. If the reference is small
1358
- // and near the edge of a boundary, the popper can overflow even if the
1359
- // reference is not overflowing as well (e.g. virtual elements with no
1360
- // width or height)
1361
-
1362
- var arrowLen = within(0, referenceRect[len], arrowRect[len]);
1363
- var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - tetherOffsetValue : minLen - arrowLen - arrowPaddingMin - tetherOffsetValue;
1364
- var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + tetherOffsetValue : maxLen + arrowLen + arrowPaddingMax + tetherOffsetValue;
1365
- var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);
1366
- var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;
1367
- var offsetModifierValue = state.modifiersData.offset ? state.modifiersData.offset[state.placement][mainAxis] : 0;
1368
- var tetherMin = popperOffsets[mainAxis] + minOffset - offsetModifierValue - clientOffset;
1369
- var tetherMax = popperOffsets[mainAxis] + maxOffset - offsetModifierValue;
1370
-
1371
- if (checkMainAxis) {
1372
- var preventedOffset = within(tether ? min(min$1, tetherMin) : min$1, offset, tether ? max(max$1, tetherMax) : max$1);
1373
- popperOffsets[mainAxis] = preventedOffset;
1374
- data[mainAxis] = preventedOffset - offset;
1375
- }
1376
-
1377
- if (checkAltAxis) {
1378
- var _mainSide = mainAxis === 'x' ? top : left;
1379
-
1380
- var _altSide = mainAxis === 'x' ? bottom : right;
1381
-
1382
- var _offset = popperOffsets[altAxis];
1383
-
1384
- var _min = _offset + overflow[_mainSide];
1385
-
1386
- var _max = _offset - overflow[_altSide];
1387
-
1388
- var _preventedOffset = within(tether ? min(_min, tetherMin) : _min, _offset, tether ? max(_max, tetherMax) : _max);
1389
-
1390
- popperOffsets[altAxis] = _preventedOffset;
1391
- data[altAxis] = _preventedOffset - _offset;
1392
- }
1393
- }
1394
-
1395
- state.modifiersData[name] = data;
1396
- } // eslint-disable-next-line import/no-unused-modules
1397
-
1398
-
1399
- const preventOverflow$1 = {
1400
- name: 'preventOverflow',
1401
- enabled: true,
1402
- phase: 'main',
1403
- fn: preventOverflow,
1404
- requiresIfExists: ['offset']
1405
- };
1406
-
1407
- function getHTMLElementScroll(element) {
1408
- return {
1409
- scrollLeft: element.scrollLeft,
1410
- scrollTop: element.scrollTop
1411
- };
1412
- }
1413
-
1414
- function getNodeScroll(node) {
1415
- if (node === getWindow(node) || !isHTMLElement(node)) {
1416
- return getWindowScroll(node);
1417
- } else {
1418
- return getHTMLElementScroll(node);
1419
- }
1420
- }
1421
-
1422
- function isElementScaled(element) {
1423
- var rect = element.getBoundingClientRect();
1424
- var scaleX = rect.width / element.offsetWidth || 1;
1425
- var scaleY = rect.height / element.offsetHeight || 1;
1426
- return scaleX !== 1 || scaleY !== 1;
1427
- } // Returns the composite rect of an element relative to its offsetParent.
1428
- // Composite means it takes into account transforms as well as layout.
1429
-
1430
-
1431
- function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
1432
- if (isFixed === void 0) {
1433
- isFixed = false;
1434
- }
1435
-
1436
- var isOffsetParentAnElement = isHTMLElement(offsetParent);
1437
- var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);
1438
- var documentElement = getDocumentElement(offsetParent);
1439
- var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled);
1440
- var scroll = {
1441
- scrollLeft: 0,
1442
- scrollTop: 0
1443
- };
1444
- var offsets = {
1445
- x: 0,
1446
- y: 0
1447
- };
1448
-
1449
- if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
1450
- if (getNodeName(offsetParent) !== 'body' || // https://github.com/popperjs/popper-core/issues/1078
1451
- isScrollParent(documentElement)) {
1452
- scroll = getNodeScroll(offsetParent);
1453
- }
1454
-
1455
- if (isHTMLElement(offsetParent)) {
1456
- offsets = getBoundingClientRect(offsetParent, true);
1457
- offsets.x += offsetParent.clientLeft;
1458
- offsets.y += offsetParent.clientTop;
1459
- } else if (documentElement) {
1460
- offsets.x = getWindowScrollBarX(documentElement);
1461
- }
1462
- }
1463
-
1464
- return {
1465
- x: rect.left + scroll.scrollLeft - offsets.x,
1466
- y: rect.top + scroll.scrollTop - offsets.y,
1467
- width: rect.width,
1468
- height: rect.height
1469
- };
1470
- }
1471
-
1472
- function order(modifiers) {
1473
- var map = new Map();
1474
- var visited = new Set();
1475
- var result = [];
1476
- modifiers.forEach(function (modifier) {
1477
- map.set(modifier.name, modifier);
1478
- }); // On visiting object, check for its dependencies and visit them recursively
1479
-
1480
- function sort(modifier) {
1481
- visited.add(modifier.name);
1482
- var requires = [].concat(modifier.requires || [], modifier.requiresIfExists || []);
1483
- requires.forEach(function (dep) {
1484
- if (!visited.has(dep)) {
1485
- var depModifier = map.get(dep);
1486
-
1487
- if (depModifier) {
1488
- sort(depModifier);
1489
- }
1490
- }
1491
- });
1492
- result.push(modifier);
1493
- }
1494
-
1495
- modifiers.forEach(function (modifier) {
1496
- if (!visited.has(modifier.name)) {
1497
- // check for visited object
1498
- sort(modifier);
1499
- }
1500
- });
1501
- return result;
1502
- }
1503
-
1504
- function orderModifiers(modifiers) {
1505
- // order based on dependencies
1506
- var orderedModifiers = order(modifiers); // order based on phase
1507
-
1508
- return modifierPhases.reduce(function (acc, phase) {
1509
- return acc.concat(orderedModifiers.filter(function (modifier) {
1510
- return modifier.phase === phase;
1511
- }));
1512
- }, []);
1513
- }
1514
-
1515
- function debounce(fn) {
1516
- var pending;
1517
- return function () {
1518
- if (!pending) {
1519
- pending = new Promise(function (resolve) {
1520
- Promise.resolve().then(function () {
1521
- pending = undefined;
1522
- resolve(fn());
1523
- });
1524
- });
1525
- }
1526
-
1527
- return pending;
1528
- };
1529
- }
1530
-
1531
- function mergeByName(modifiers) {
1532
- var merged = modifiers.reduce(function (merged, current) {
1533
- var existing = merged[current.name];
1534
- merged[current.name] = existing ? Object.assign({}, existing, current, {
1535
- options: Object.assign({}, existing.options, current.options),
1536
- data: Object.assign({}, existing.data, current.data)
1537
- }) : current;
1538
- return merged;
1539
- }, {}); // IE11 does not support Object.values
1540
-
1541
- return Object.keys(merged).map(function (key) {
1542
- return merged[key];
1543
- });
1544
- }
1545
-
1546
- var DEFAULT_OPTIONS = {
1547
- placement: 'bottom',
1548
- modifiers: [],
1549
- strategy: 'absolute'
1550
- };
1551
-
1552
- function areValidElements() {
1553
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1554
- args[_key] = arguments[_key];
1555
- }
1556
-
1557
- return !args.some(function (element) {
1558
- return !(element && typeof element.getBoundingClientRect === 'function');
1559
- });
1560
- }
1561
-
1562
- function popperGenerator(generatorOptions) {
1563
- if (generatorOptions === void 0) {
1564
- generatorOptions = {};
1565
- }
1566
-
1567
- var _generatorOptions = generatorOptions,
1568
- _generatorOptions$def = _generatorOptions.defaultModifiers,
1569
- defaultModifiers = _generatorOptions$def === void 0 ? [] : _generatorOptions$def,
1570
- _generatorOptions$def2 = _generatorOptions.defaultOptions,
1571
- defaultOptions = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS : _generatorOptions$def2;
1572
- return function createPopper(reference, popper, options) {
1573
- if (options === void 0) {
1574
- options = defaultOptions;
1575
- }
1576
-
1577
- var state = {
1578
- placement: 'bottom',
1579
- orderedModifiers: [],
1580
- options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),
1581
- modifiersData: {},
1582
- elements: {
1583
- reference: reference,
1584
- popper: popper
1585
- },
1586
- attributes: {},
1587
- styles: {}
1588
- };
1589
- var effectCleanupFns = [];
1590
- var isDestroyed = false;
1591
- var instance = {
1592
- state: state,
1593
- setOptions: function setOptions(setOptionsAction) {
1594
- var options = typeof setOptionsAction === 'function' ? setOptionsAction(state.options) : setOptionsAction;
1595
- cleanupModifierEffects();
1596
- state.options = Object.assign({}, defaultOptions, state.options, options);
1597
- state.scrollParents = {
1598
- reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
1599
- popper: listScrollParents(popper)
1600
- }; // Orders the modifiers based on their dependencies and `phase`
1601
- // properties
1602
-
1603
- var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers, state.options.modifiers))); // Strip out disabled modifiers
1604
-
1605
- state.orderedModifiers = orderedModifiers.filter(function (m) {
1606
- return m.enabled;
1607
- }); // Validate the provided modifiers so that the consumer will get warned
1608
-
1609
- runModifierEffects();
1610
- return instance.update();
1611
- },
1612
- // Sync update – it will always be executed, even if not necessary. This
1613
- // is useful for low frequency updates where sync behavior simplifies the
1614
- // logic.
1615
- // For high frequency updates (e.g. `resize` and `scroll` events), always
1616
- // prefer the async Popper#update method
1617
- forceUpdate: function forceUpdate() {
1618
- if (isDestroyed) {
1619
- return;
1620
- }
1621
-
1622
- var _state$elements = state.elements,
1623
- reference = _state$elements.reference,
1624
- popper = _state$elements.popper; // Don't proceed if `reference` or `popper` are not valid elements
1625
- // anymore
1626
-
1627
- if (!areValidElements(reference, popper)) {
1628
-
1629
- return;
1630
- } // Store the reference and popper rects to be read by modifiers
1631
-
1632
-
1633
- state.rects = {
1634
- reference: getCompositeRect(reference, getOffsetParent(popper), state.options.strategy === 'fixed'),
1635
- popper: getLayoutRect(popper)
1636
- }; // Modifiers have the ability to reset the current update cycle. The
1637
- // most common use case for this is the `flip` modifier changing the
1638
- // placement, which then needs to re-run all the modifiers, because the
1639
- // logic was previously ran for the previous placement and is therefore
1640
- // stale/incorrect
1641
-
1642
- state.reset = false;
1643
- state.placement = state.options.placement; // On each update cycle, the `modifiersData` property for each modifier
1644
- // is filled with the initial data specified by the modifier. This means
1645
- // it doesn't persist and is fresh on each update.
1646
- // To ensure persistent data, use `${name}#persistent`
1647
-
1648
- state.orderedModifiers.forEach(function (modifier) {
1649
- return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);
1650
- });
1651
-
1652
- for (var index = 0; index < state.orderedModifiers.length; index++) {
1653
-
1654
- if (state.reset === true) {
1655
- state.reset = false;
1656
- index = -1;
1657
- continue;
1658
- }
1659
-
1660
- var _state$orderedModifie = state.orderedModifiers[index],
1661
- fn = _state$orderedModifie.fn,
1662
- _state$orderedModifie2 = _state$orderedModifie.options,
1663
- _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2,
1664
- name = _state$orderedModifie.name;
1665
-
1666
- if (typeof fn === 'function') {
1667
- state = fn({
1668
- state: state,
1669
- options: _options,
1670
- name: name,
1671
- instance: instance
1672
- }) || state;
1673
- }
1674
- }
1675
- },
1676
- // Async and optimistically optimized update – it will not be executed if
1677
- // not necessary (debounced to run at most once-per-tick)
1678
- update: debounce(function () {
1679
- return new Promise(function (resolve) {
1680
- instance.forceUpdate();
1681
- resolve(state);
1682
- });
1683
- }),
1684
- destroy: function destroy() {
1685
- cleanupModifierEffects();
1686
- isDestroyed = true;
1687
- }
1688
- };
1689
-
1690
- if (!areValidElements(reference, popper)) {
1691
-
1692
- return instance;
1693
- }
1694
-
1695
- instance.setOptions(options).then(function (state) {
1696
- if (!isDestroyed && options.onFirstUpdate) {
1697
- options.onFirstUpdate(state);
1698
- }
1699
- }); // Modifiers have the ability to execute arbitrary code before the first
1700
- // update cycle runs. They will be executed in the same order as the update
1701
- // cycle. This is useful when a modifier adds some persistent data that
1702
- // other modifiers need to use, but the modifier is run after the dependent
1703
- // one.
1704
-
1705
- function runModifierEffects() {
1706
- state.orderedModifiers.forEach(function (_ref3) {
1707
- var name = _ref3.name,
1708
- _ref3$options = _ref3.options,
1709
- options = _ref3$options === void 0 ? {} : _ref3$options,
1710
- effect = _ref3.effect;
1711
-
1712
- if (typeof effect === 'function') {
1713
- var cleanupFn = effect({
1714
- state: state,
1715
- name: name,
1716
- instance: instance,
1717
- options: options
1718
- });
1719
-
1720
- var noopFn = function noopFn() {};
1721
-
1722
- effectCleanupFns.push(cleanupFn || noopFn);
1723
- }
1724
- });
1725
- }
1726
-
1727
- function cleanupModifierEffects() {
1728
- effectCleanupFns.forEach(function (fn) {
1729
- return fn();
1730
- });
1731
- effectCleanupFns = [];
1732
- }
1733
-
1734
- return instance;
1735
- };
1736
- }
1737
-
1738
- var defaultModifiers = [eventListeners, popperOffsets$1, computeStyles$1, applyStyles$1, offset$1, flip$1, preventOverflow$1, arrow$1, hide$1];
1739
- var createPopper$1 = /*#__PURE__*/popperGenerator({
1740
- defaultModifiers: defaultModifiers
1741
- }); // eslint-disable-next-line import/no-unused-modules
1742
-
1743
- const CSS = {
1744
- animation: "calcite-popper-anim",
1745
- animationActive: "calcite-popper-anim--active"
1746
- };
1747
- function getPlacement(el, placement) {
1748
- const placements = ["left", "right"];
1749
- const variations = ["start", "end"];
1750
- if (dom.getElementDir(el) === "rtl") {
1751
- placements.reverse();
1752
- variations.reverse();
1753
- }
1754
- return placement
1755
- .replace(/-leading/gi, `-${variations[0]}`)
1756
- .replace(/-trailing/gi, `-${variations[1]}`)
1757
- .replace(/leading/gi, placements[0])
1758
- .replace(/trailing/gi, placements[1]);
1759
- }
1760
- function createPopper({ referenceEl, el, placement, overlayPositioning = "absolute", modifiers }) {
1761
- if (!referenceEl) {
1762
- return null;
1763
- }
1764
- return createPopper$1(referenceEl, el, {
1765
- strategy: overlayPositioning,
1766
- placement: getPlacement(el, placement),
1767
- modifiers
1768
- });
1769
- }
1770
- function updatePopper({ el, modifiers, placement: PopperPlacement, popper }) {
1771
- const placement = getPlacement(el, PopperPlacement);
1772
- popper.setOptions({
1773
- modifiers,
1774
- placement
1775
- });
1776
- }
1777
- function hypotenuse(sideA, sideB) {
1778
- return Math.sqrt(Math.pow(sideA, 2) + Math.pow(sideB, 2));
1779
- }
1780
- const visiblePointerSize = 4;
1781
- const defaultOffsetDistance = Math.ceil(hypotenuse(visiblePointerSize, visiblePointerSize));
1782
-
1783
- exports.CSS = CSS;
1784
- exports.createPopper = createPopper;
1785
- exports.defaultOffsetDistance = defaultOffsetDistance;
1786
- exports.updatePopper = updatePopper;