@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,2029 +0,0 @@
1
- const NAMESPACE = 'calcite';
2
-
3
- let scopeId;
4
- let contentRef;
5
- let hostTagName;
6
- let useNativeShadowDom = false;
7
- let checkSlotFallbackVisibility = false;
8
- let checkSlotRelocate = false;
9
- let isSvgMode = false;
10
- let queuePending = false;
11
- const win = typeof window !== 'undefined' ? window : {};
12
- const doc = win.document || { head: {} };
13
- const plt = {
14
- $flags$: 0,
15
- $resourcesUrl$: '',
16
- jmp: (h) => h(),
17
- raf: (h) => requestAnimationFrame(h),
18
- ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
19
- rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
20
- ce: (eventName, opts) => new CustomEvent(eventName, opts),
21
- };
22
- const supportsShadow = true;
23
- const promiseResolve = (v) => Promise.resolve(v);
24
- const supportsConstructibleStylesheets = /*@__PURE__*/ (() => {
25
- try {
26
- new CSSStyleSheet();
27
- return typeof new CSSStyleSheet().replace === 'function';
28
- }
29
- catch (e) { }
30
- return false;
31
- })()
32
- ;
33
- const addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
34
- if (listeners) {
35
- listeners.map(([flags, name, method]) => {
36
- const target = getHostListenerTarget(elm, flags) ;
37
- const handler = hostListenerProxy(hostRef, method);
38
- const opts = hostListenerOpts(flags);
39
- plt.ael(target, name, handler, opts);
40
- (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
41
- });
42
- }
43
- };
44
- const hostListenerProxy = (hostRef, methodName) => (ev) => {
45
- try {
46
- {
47
- if (hostRef.$flags$ & 256 /* isListenReady */) {
48
- // instance is ready, let's call it's member method for this event
49
- hostRef.$lazyInstance$[methodName](ev);
50
- }
51
- else {
52
- (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
53
- }
54
- }
55
- }
56
- catch (e) {
57
- consoleError(e);
58
- }
59
- };
60
- const getHostListenerTarget = (elm, flags) => {
61
- if (flags & 4 /* TargetDocument */)
62
- return doc;
63
- if (flags & 8 /* TargetWindow */)
64
- return win;
65
- if (flags & 16 /* TargetBody */)
66
- return doc.body;
67
- return elm;
68
- };
69
- // prettier-ignore
70
- const hostListenerOpts = (flags) => (flags & 2 /* Capture */) !== 0;
71
- const CONTENT_REF_ID = 'r';
72
- const ORG_LOCATION_ID = 'o';
73
- const SLOT_NODE_ID = 's';
74
- const TEXT_NODE_ID = 't';
75
- const HYDRATE_ID = 's-id';
76
- const HYDRATED_STYLE_ID = 'sty-id';
77
- const HYDRATE_CHILD_ID = 'c-id';
78
- const HYDRATED_CSS = '{visibility:hidden}[calcite-hydrated]{visibility:inherit}';
79
- const XLINK_NS = 'http://www.w3.org/1999/xlink';
80
- const createTime = (fnName, tagName = '') => {
81
- {
82
- return () => {
83
- return;
84
- };
85
- }
86
- };
87
- const uniqueTime = (key, measureText) => {
88
- {
89
- return () => {
90
- return;
91
- };
92
- }
93
- };
94
- const rootAppliedStyles = new WeakMap();
95
- const registerStyle = (scopeId, cssText, allowCS) => {
96
- let style = styles.get(scopeId);
97
- if (supportsConstructibleStylesheets && allowCS) {
98
- style = (style || new CSSStyleSheet());
99
- style.replace(cssText);
100
- }
101
- else {
102
- style = cssText;
103
- }
104
- styles.set(scopeId, style);
105
- };
106
- const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
107
- let scopeId = getScopeId(cmpMeta);
108
- let style = styles.get(scopeId);
109
- // if an element is NOT connected then getRootNode() will return the wrong root node
110
- // so the fallback is to always use the document for the root node in those cases
111
- styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
112
- if (style) {
113
- if (typeof style === 'string') {
114
- styleContainerNode = styleContainerNode.head || styleContainerNode;
115
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
116
- let styleElm;
117
- if (!appliedStyles) {
118
- rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
119
- }
120
- if (!appliedStyles.has(scopeId)) {
121
- if (styleContainerNode.host &&
122
- (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId}"]`))) {
123
- // This is only happening on native shadow-dom, do not needs CSS var shim
124
- styleElm.innerHTML = style;
125
- }
126
- else {
127
- {
128
- styleElm = doc.createElement('style');
129
- styleElm.innerHTML = style;
130
- }
131
- styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
132
- }
133
- if (appliedStyles) {
134
- appliedStyles.add(scopeId);
135
- }
136
- }
137
- }
138
- else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
139
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
140
- }
141
- }
142
- return scopeId;
143
- };
144
- const attachStyles = (hostRef) => {
145
- const cmpMeta = hostRef.$cmpMeta$;
146
- const elm = hostRef.$hostElement$;
147
- const flags = cmpMeta.$flags$;
148
- const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
149
- const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
150
- if (flags & 10 /* needsScopedEncapsulation */) {
151
- // only required when we're NOT using native shadow dom (slot)
152
- // or this browser doesn't support native shadow dom
153
- // and this host element was NOT created with SSR
154
- // let's pick out the inner content for slot projection
155
- // create a node to represent where the original
156
- // content was first placed, which is useful later on
157
- // DOM WRITE!!
158
- elm['s-sc'] = scopeId;
159
- elm.classList.add(scopeId + '-h');
160
- if (flags & 2 /* scopedCssEncapsulation */) {
161
- elm.classList.add(scopeId + '-s');
162
- }
163
- }
164
- endAttachStyles();
165
- };
166
- const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
167
- const convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, '$1{');
168
- /**
169
- * Default style mode id
170
- */
171
- /**
172
- * Reusable empty obj/array
173
- * Don't add values to these!!
174
- */
175
- const EMPTY_OBJ = {};
176
- /**
177
- * Namespaces
178
- */
179
- const SVG_NS = 'http://www.w3.org/2000/svg';
180
- const HTML_NS = 'http://www.w3.org/1999/xhtml';
181
- const isDef = (v) => v != null;
182
- const isComplexType = (o) => {
183
- // https://jsperf.com/typeof-fn-object/5
184
- o = typeof o;
185
- return o === 'object' || o === 'function';
186
- };
187
- /**
188
- * Production h() function based on Preact by
189
- * Jason Miller (@developit)
190
- * Licensed under the MIT License
191
- * https://github.com/developit/preact/blob/master/LICENSE
192
- *
193
- * Modified for Stencil's compiler and vdom
194
- */
195
- // const stack: any[] = [];
196
- // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, child?: d.ChildType): d.VNode;
197
- // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
198
- const h = (nodeName, vnodeData, ...children) => {
199
- let child = null;
200
- let key = null;
201
- let slotName = null;
202
- let simple = false;
203
- let lastSimple = false;
204
- let vNodeChildren = [];
205
- const walk = (c) => {
206
- for (let i = 0; i < c.length; i++) {
207
- child = c[i];
208
- if (Array.isArray(child)) {
209
- walk(child);
210
- }
211
- else if (child != null && typeof child !== 'boolean') {
212
- if ((simple = typeof nodeName !== 'function' && !isComplexType(child))) {
213
- child = String(child);
214
- }
215
- if (simple && lastSimple) {
216
- // If the previous child was simple (string), we merge both
217
- vNodeChildren[vNodeChildren.length - 1].$text$ += child;
218
- }
219
- else {
220
- // Append a new vNode, if it's text, we create a text vNode
221
- vNodeChildren.push(simple ? newVNode(null, child) : child);
222
- }
223
- lastSimple = simple;
224
- }
225
- }
226
- };
227
- walk(children);
228
- if (vnodeData) {
229
- // normalize class / classname attributes
230
- if (vnodeData.key) {
231
- key = vnodeData.key;
232
- }
233
- if (vnodeData.name) {
234
- slotName = vnodeData.name;
235
- }
236
- {
237
- const classData = vnodeData.className || vnodeData.class;
238
- if (classData) {
239
- vnodeData.class =
240
- typeof classData !== 'object'
241
- ? classData
242
- : Object.keys(classData)
243
- .filter((k) => classData[k])
244
- .join(' ');
245
- }
246
- }
247
- }
248
- if (typeof nodeName === 'function') {
249
- // nodeName is a functional component
250
- return nodeName(vnodeData === null ? {} : vnodeData, vNodeChildren, vdomFnUtils);
251
- }
252
- const vnode = newVNode(nodeName, null);
253
- vnode.$attrs$ = vnodeData;
254
- if (vNodeChildren.length > 0) {
255
- vnode.$children$ = vNodeChildren;
256
- }
257
- {
258
- vnode.$key$ = key;
259
- }
260
- {
261
- vnode.$name$ = slotName;
262
- }
263
- return vnode;
264
- };
265
- const newVNode = (tag, text) => {
266
- const vnode = {
267
- $flags$: 0,
268
- $tag$: tag,
269
- $text$: text,
270
- $elm$: null,
271
- $children$: null,
272
- };
273
- {
274
- vnode.$attrs$ = null;
275
- }
276
- {
277
- vnode.$key$ = null;
278
- }
279
- {
280
- vnode.$name$ = null;
281
- }
282
- return vnode;
283
- };
284
- const Host = {};
285
- const isHost = (node) => node && node.$tag$ === Host;
286
- const vdomFnUtils = {
287
- forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
288
- map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate),
289
- };
290
- const convertToPublic = (node) => ({
291
- vattrs: node.$attrs$,
292
- vchildren: node.$children$,
293
- vkey: node.$key$,
294
- vname: node.$name$,
295
- vtag: node.$tag$,
296
- vtext: node.$text$,
297
- });
298
- const convertToPrivate = (node) => {
299
- if (typeof node.vtag === 'function') {
300
- const vnodeData = Object.assign({}, node.vattrs);
301
- if (node.vkey) {
302
- vnodeData.key = node.vkey;
303
- }
304
- if (node.vname) {
305
- vnodeData.name = node.vname;
306
- }
307
- return h(node.vtag, vnodeData, ...(node.vchildren || []));
308
- }
309
- const vnode = newVNode(node.vtag, node.vtext);
310
- vnode.$attrs$ = node.vattrs;
311
- vnode.$children$ = node.vchildren;
312
- vnode.$key$ = node.vkey;
313
- vnode.$name$ = node.vname;
314
- return vnode;
315
- };
316
- /**
317
- * Production setAccessor() function based on Preact by
318
- * Jason Miller (@developit)
319
- * Licensed under the MIT License
320
- * https://github.com/developit/preact/blob/master/LICENSE
321
- *
322
- * Modified for Stencil's compiler and vdom
323
- */
324
- const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
325
- if (oldValue !== newValue) {
326
- let isProp = isMemberInElement(elm, memberName);
327
- let ln = memberName.toLowerCase();
328
- if (memberName === 'class') {
329
- const classList = elm.classList;
330
- const oldClasses = parseClassList(oldValue);
331
- const newClasses = parseClassList(newValue);
332
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
333
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
334
- }
335
- else if (memberName === 'style') {
336
- // update style attribute, css properties and values
337
- {
338
- for (const prop in oldValue) {
339
- if (!newValue || newValue[prop] == null) {
340
- if (prop.includes('-')) {
341
- elm.style.removeProperty(prop);
342
- }
343
- else {
344
- elm.style[prop] = '';
345
- }
346
- }
347
- }
348
- }
349
- for (const prop in newValue) {
350
- if (!oldValue || newValue[prop] !== oldValue[prop]) {
351
- if (prop.includes('-')) {
352
- elm.style.setProperty(prop, newValue[prop]);
353
- }
354
- else {
355
- elm.style[prop] = newValue[prop];
356
- }
357
- }
358
- }
359
- }
360
- else if (memberName === 'key')
361
- ;
362
- else if (memberName === 'ref') {
363
- // minifier will clean this up
364
- if (newValue) {
365
- newValue(elm);
366
- }
367
- }
368
- else if ((!isProp ) &&
369
- memberName[0] === 'o' &&
370
- memberName[1] === 'n') {
371
- // Event Handlers
372
- // so if the member name starts with "on" and the 3rd characters is
373
- // a capital letter, and it's not already a member on the element,
374
- // then we're assuming it's an event listener
375
- if (memberName[2] === '-') {
376
- // on- prefixed events
377
- // allows to be explicit about the dom event to listen without any magic
378
- // under the hood:
379
- // <my-cmp on-click> // listens for "click"
380
- // <my-cmp on-Click> // listens for "Click"
381
- // <my-cmp on-ionChange> // listens for "ionChange"
382
- // <my-cmp on-EVENTS> // listens for "EVENTS"
383
- memberName = memberName.slice(3);
384
- }
385
- else if (isMemberInElement(win, ln)) {
386
- // standard event
387
- // the JSX attribute could have been "onMouseOver" and the
388
- // member name "onmouseover" is on the window's prototype
389
- // so let's add the listener "mouseover", which is all lowercased
390
- memberName = ln.slice(2);
391
- }
392
- else {
393
- // custom event
394
- // the JSX attribute could have been "onMyCustomEvent"
395
- // so let's trim off the "on" prefix and lowercase the first character
396
- // and add the listener "myCustomEvent"
397
- // except for the first character, we keep the event name case
398
- memberName = ln[2] + memberName.slice(3);
399
- }
400
- if (oldValue) {
401
- plt.rel(elm, memberName, oldValue, false);
402
- }
403
- if (newValue) {
404
- plt.ael(elm, memberName, newValue, false);
405
- }
406
- }
407
- else {
408
- // Set property if it exists and it's not a SVG
409
- const isComplex = isComplexType(newValue);
410
- if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
411
- try {
412
- if (!elm.tagName.includes('-')) {
413
- let n = newValue == null ? '' : newValue;
414
- // Workaround for Safari, moving the <input> caret when re-assigning the same valued
415
- if (memberName === 'list') {
416
- isProp = false;
417
- // tslint:disable-next-line: triple-equals
418
- }
419
- else if (oldValue == null || elm[memberName] != n) {
420
- elm[memberName] = n;
421
- }
422
- }
423
- else {
424
- elm[memberName] = newValue;
425
- }
426
- }
427
- catch (e) { }
428
- }
429
- /**
430
- * Need to manually update attribute if:
431
- * - memberName is not an attribute
432
- * - if we are rendering the host element in order to reflect attribute
433
- * - if it's a SVG, since properties might not work in <svg>
434
- * - if the newValue is null/undefined or 'false'.
435
- */
436
- let xlink = false;
437
- {
438
- if (ln !== (ln = ln.replace(/^xlink\:?/, ''))) {
439
- memberName = ln;
440
- xlink = true;
441
- }
442
- }
443
- if (newValue == null || newValue === false) {
444
- if (newValue !== false || elm.getAttribute(memberName) === '') {
445
- if (xlink) {
446
- elm.removeAttributeNS(XLINK_NS, memberName);
447
- }
448
- else {
449
- elm.removeAttribute(memberName);
450
- }
451
- }
452
- }
453
- else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
454
- newValue = newValue === true ? '' : newValue;
455
- if (xlink) {
456
- elm.setAttributeNS(XLINK_NS, memberName, newValue);
457
- }
458
- else {
459
- elm.setAttribute(memberName, newValue);
460
- }
461
- }
462
- }
463
- }
464
- };
465
- const parseClassListRegex = /\s/;
466
- const parseClassList = (value) => (!value ? [] : value.split(parseClassListRegex));
467
- const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
468
- // if the element passed in is a shadow root, which is a document fragment
469
- // then we want to be adding attrs/props to the shadow root's "host" element
470
- // if it's not a shadow root, then we add attrs/props to the same element
471
- const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host
472
- ? newVnode.$elm$.host
473
- : newVnode.$elm$;
474
- const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
475
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
476
- {
477
- // remove attributes no longer present on the vnode by setting them to undefined
478
- for (memberName in oldVnodeAttrs) {
479
- if (!(memberName in newVnodeAttrs)) {
480
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], undefined, isSvgMode, newVnode.$flags$);
481
- }
482
- }
483
- }
484
- // add new & update changed attributes
485
- for (memberName in newVnodeAttrs) {
486
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$);
487
- }
488
- };
489
- const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
490
- // tslint:disable-next-line: prefer-const
491
- let newVNode = newParentVNode.$children$[childIndex];
492
- let i = 0;
493
- let elm;
494
- let childNode;
495
- let oldVNode;
496
- if (!useNativeShadowDom) {
497
- // remember for later we need to check to relocate nodes
498
- checkSlotRelocate = true;
499
- if (newVNode.$tag$ === 'slot') {
500
- if (scopeId) {
501
- // scoped css needs to add its scoped id to the parent element
502
- parentElm.classList.add(scopeId + '-s');
503
- }
504
- newVNode.$flags$ |= newVNode.$children$
505
- ? // slot element has fallback content
506
- 2 /* isSlotFallback */
507
- : // slot element does not have fallback content
508
- 1 /* isSlotReference */;
509
- }
510
- }
511
- if (newVNode.$text$ !== null) {
512
- // create text node
513
- elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
514
- }
515
- else if (newVNode.$flags$ & 1 /* isSlotReference */) {
516
- // create a slot reference node
517
- elm = newVNode.$elm$ =
518
- doc.createTextNode('');
519
- }
520
- else {
521
- if (!isSvgMode) {
522
- isSvgMode = newVNode.$tag$ === 'svg';
523
- }
524
- // create element
525
- elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$flags$ & 2 /* isSlotFallback */
526
- ? 'slot-fb'
527
- : newVNode.$tag$)
528
- );
529
- if (isSvgMode && newVNode.$tag$ === 'foreignObject') {
530
- isSvgMode = false;
531
- }
532
- // add css classes, attrs, props, listeners, etc.
533
- {
534
- updateElement(null, newVNode, isSvgMode);
535
- }
536
- if (isDef(scopeId) && elm['s-si'] !== scopeId) {
537
- // if there is a scopeId and this is the initial render
538
- // then let's add the scopeId as a css class
539
- elm.classList.add((elm['s-si'] = scopeId));
540
- }
541
- if (newVNode.$children$) {
542
- for (i = 0; i < newVNode.$children$.length; ++i) {
543
- // create the node
544
- childNode = createElm(oldParentVNode, newVNode, i, elm);
545
- // return node could have been null
546
- if (childNode) {
547
- // append our new node
548
- elm.appendChild(childNode);
549
- }
550
- }
551
- }
552
- {
553
- if (newVNode.$tag$ === 'svg') {
554
- // Only reset the SVG context when we're exiting <svg> element
555
- isSvgMode = false;
556
- }
557
- else if (elm.tagName === 'foreignObject') {
558
- // Reenter SVG context when we're exiting <foreignObject> element
559
- isSvgMode = true;
560
- }
561
- }
562
- }
563
- {
564
- elm['s-hn'] = hostTagName;
565
- if (newVNode.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
566
- // remember the content reference comment
567
- elm['s-sr'] = true;
568
- // remember the content reference comment
569
- elm['s-cr'] = contentRef;
570
- // remember the slot name, or empty string for default slot
571
- elm['s-sn'] = newVNode.$name$ || '';
572
- // check if we've got an old vnode for this slot
573
- oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
574
- if (oldVNode && oldVNode.$tag$ === newVNode.$tag$ && oldParentVNode.$elm$) {
575
- // we've got an old slot vnode and the wrapper is being replaced
576
- // so let's move the old slot content back to it's original location
577
- putBackInOriginalLocation(oldParentVNode.$elm$, false);
578
- }
579
- }
580
- }
581
- return elm;
582
- };
583
- const putBackInOriginalLocation = (parentElm, recursive) => {
584
- plt.$flags$ |= 1 /* isTmpDisconnected */;
585
- const oldSlotChildNodes = parentElm.childNodes;
586
- for (let i = oldSlotChildNodes.length - 1; i >= 0; i--) {
587
- const childNode = oldSlotChildNodes[i];
588
- if (childNode['s-hn'] !== hostTagName && childNode['s-ol']) {
589
- // // this child node in the old element is from another component
590
- // // remove this node from the old slot's parent
591
- // childNode.remove();
592
- // and relocate it back to it's original location
593
- parentReferenceNode(childNode).insertBefore(childNode, referenceNode(childNode));
594
- // remove the old original location comment entirely
595
- // later on the patch function will know what to do
596
- // and move this to the correct spot in need be
597
- childNode['s-ol'].remove();
598
- childNode['s-ol'] = undefined;
599
- checkSlotRelocate = true;
600
- }
601
- if (recursive) {
602
- putBackInOriginalLocation(childNode, recursive);
603
- }
604
- }
605
- plt.$flags$ &= ~1 /* isTmpDisconnected */;
606
- };
607
- const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
608
- let containerElm = ((parentElm['s-cr'] && parentElm['s-cr'].parentNode) || parentElm);
609
- let childNode;
610
- if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
611
- containerElm = containerElm.shadowRoot;
612
- }
613
- for (; startIdx <= endIdx; ++startIdx) {
614
- if (vnodes[startIdx]) {
615
- childNode = createElm(null, parentVNode, startIdx, parentElm);
616
- if (childNode) {
617
- vnodes[startIdx].$elm$ = childNode;
618
- containerElm.insertBefore(childNode, referenceNode(before) );
619
- }
620
- }
621
- }
622
- };
623
- const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
624
- for (; startIdx <= endIdx; ++startIdx) {
625
- if ((vnode = vnodes[startIdx])) {
626
- elm = vnode.$elm$;
627
- callNodeRefs(vnode);
628
- {
629
- // we're removing this element
630
- // so it's possible we need to show slot fallback content now
631
- checkSlotFallbackVisibility = true;
632
- if (elm['s-ol']) {
633
- // remove the original location comment
634
- elm['s-ol'].remove();
635
- }
636
- else {
637
- // it's possible that child nodes of the node
638
- // that's being removed are slot nodes
639
- putBackInOriginalLocation(elm, true);
640
- }
641
- }
642
- // remove the vnode's element from the dom
643
- elm.remove();
644
- }
645
- }
646
- };
647
- const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
648
- let oldStartIdx = 0;
649
- let newStartIdx = 0;
650
- let idxInOld = 0;
651
- let i = 0;
652
- let oldEndIdx = oldCh.length - 1;
653
- let oldStartVnode = oldCh[0];
654
- let oldEndVnode = oldCh[oldEndIdx];
655
- let newEndIdx = newCh.length - 1;
656
- let newStartVnode = newCh[0];
657
- let newEndVnode = newCh[newEndIdx];
658
- let node;
659
- let elmToMove;
660
- while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
661
- if (oldStartVnode == null) {
662
- // Vnode might have been moved left
663
- oldStartVnode = oldCh[++oldStartIdx];
664
- }
665
- else if (oldEndVnode == null) {
666
- oldEndVnode = oldCh[--oldEndIdx];
667
- }
668
- else if (newStartVnode == null) {
669
- newStartVnode = newCh[++newStartIdx];
670
- }
671
- else if (newEndVnode == null) {
672
- newEndVnode = newCh[--newEndIdx];
673
- }
674
- else if (isSameVnode(oldStartVnode, newStartVnode)) {
675
- patch(oldStartVnode, newStartVnode);
676
- oldStartVnode = oldCh[++oldStartIdx];
677
- newStartVnode = newCh[++newStartIdx];
678
- }
679
- else if (isSameVnode(oldEndVnode, newEndVnode)) {
680
- patch(oldEndVnode, newEndVnode);
681
- oldEndVnode = oldCh[--oldEndIdx];
682
- newEndVnode = newCh[--newEndIdx];
683
- }
684
- else if (isSameVnode(oldStartVnode, newEndVnode)) {
685
- // Vnode moved right
686
- if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
687
- putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
688
- }
689
- patch(oldStartVnode, newEndVnode);
690
- parentElm.insertBefore(oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
691
- oldStartVnode = oldCh[++oldStartIdx];
692
- newEndVnode = newCh[--newEndIdx];
693
- }
694
- else if (isSameVnode(oldEndVnode, newStartVnode)) {
695
- // Vnode moved left
696
- if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
697
- putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
698
- }
699
- patch(oldEndVnode, newStartVnode);
700
- parentElm.insertBefore(oldEndVnode.$elm$, oldStartVnode.$elm$);
701
- oldEndVnode = oldCh[--oldEndIdx];
702
- newStartVnode = newCh[++newStartIdx];
703
- }
704
- else {
705
- // createKeyToOldIdx
706
- idxInOld = -1;
707
- {
708
- for (i = oldStartIdx; i <= oldEndIdx; ++i) {
709
- if (oldCh[i] && oldCh[i].$key$ !== null && oldCh[i].$key$ === newStartVnode.$key$) {
710
- idxInOld = i;
711
- break;
712
- }
713
- }
714
- }
715
- if (idxInOld >= 0) {
716
- elmToMove = oldCh[idxInOld];
717
- if (elmToMove.$tag$ !== newStartVnode.$tag$) {
718
- node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld, parentElm);
719
- }
720
- else {
721
- patch(elmToMove, newStartVnode);
722
- oldCh[idxInOld] = undefined;
723
- node = elmToMove.$elm$;
724
- }
725
- newStartVnode = newCh[++newStartIdx];
726
- }
727
- else {
728
- // new element
729
- node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx, parentElm);
730
- newStartVnode = newCh[++newStartIdx];
731
- }
732
- if (node) {
733
- {
734
- parentReferenceNode(oldStartVnode.$elm$).insertBefore(node, referenceNode(oldStartVnode.$elm$));
735
- }
736
- }
737
- }
738
- }
739
- if (oldStartIdx > oldEndIdx) {
740
- addVnodes(parentElm, newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$, newVNode, newCh, newStartIdx, newEndIdx);
741
- }
742
- else if (newStartIdx > newEndIdx) {
743
- removeVnodes(oldCh, oldStartIdx, oldEndIdx);
744
- }
745
- };
746
- const isSameVnode = (vnode1, vnode2) => {
747
- // compare if two vnode to see if they're "technically" the same
748
- // need to have the same element tag, and same key to be the same
749
- if (vnode1.$tag$ === vnode2.$tag$) {
750
- if (vnode1.$tag$ === 'slot') {
751
- return vnode1.$name$ === vnode2.$name$;
752
- }
753
- {
754
- return vnode1.$key$ === vnode2.$key$;
755
- }
756
- }
757
- return false;
758
- };
759
- const referenceNode = (node) => {
760
- // this node was relocated to a new location in the dom
761
- // because of some other component's slot
762
- // but we still have an html comment in place of where
763
- // it's original location was according to it's original vdom
764
- return (node && node['s-ol']) || node;
765
- };
766
- const parentReferenceNode = (node) => (node['s-ol'] ? node['s-ol'] : node).parentNode;
767
- const patch = (oldVNode, newVNode) => {
768
- const elm = (newVNode.$elm$ = oldVNode.$elm$);
769
- const oldChildren = oldVNode.$children$;
770
- const newChildren = newVNode.$children$;
771
- const tag = newVNode.$tag$;
772
- const text = newVNode.$text$;
773
- let defaultHolder;
774
- if (text === null) {
775
- {
776
- // test if we're rendering an svg element, or still rendering nodes inside of one
777
- // only add this to the when the compiler sees we're using an svg somewhere
778
- isSvgMode = tag === 'svg' ? true : tag === 'foreignObject' ? false : isSvgMode;
779
- }
780
- // element node
781
- {
782
- if (tag === 'slot')
783
- ;
784
- else {
785
- // either this is the first render of an element OR it's an update
786
- // AND we already know it's possible it could have changed
787
- // this updates the element's css classes, attrs, props, listeners, etc.
788
- updateElement(oldVNode, newVNode, isSvgMode);
789
- }
790
- }
791
- if (oldChildren !== null && newChildren !== null) {
792
- // looks like there's child vnodes for both the old and new vnodes
793
- updateChildren(elm, oldChildren, newVNode, newChildren);
794
- }
795
- else if (newChildren !== null) {
796
- // no old child vnodes, but there are new child vnodes to add
797
- if (oldVNode.$text$ !== null) {
798
- // the old vnode was text, so be sure to clear it out
799
- elm.textContent = '';
800
- }
801
- // add the new vnode children
802
- addVnodes(elm, null, newVNode, newChildren, 0, newChildren.length - 1);
803
- }
804
- else if (oldChildren !== null) {
805
- // no new child vnodes, but there are old child vnodes to remove
806
- removeVnodes(oldChildren, 0, oldChildren.length - 1);
807
- }
808
- if (isSvgMode && tag === 'svg') {
809
- isSvgMode = false;
810
- }
811
- }
812
- else if ((defaultHolder = elm['s-cr'])) {
813
- // this element has slotted content
814
- defaultHolder.parentNode.textContent = text;
815
- }
816
- else if (oldVNode.$text$ !== text) {
817
- // update the text content for the text only vnode
818
- // and also only if the text is different than before
819
- elm.data = text;
820
- }
821
- };
822
- const updateFallbackSlotVisibility = (elm) => {
823
- // tslint:disable-next-line: prefer-const
824
- let childNodes = elm.childNodes;
825
- let childNode;
826
- let i;
827
- let ilen;
828
- let j;
829
- let slotNameAttr;
830
- let nodeType;
831
- for (i = 0, ilen = childNodes.length; i < ilen; i++) {
832
- childNode = childNodes[i];
833
- if (childNode.nodeType === 1 /* ElementNode */) {
834
- if (childNode['s-sr']) {
835
- // this is a slot fallback node
836
- // get the slot name for this slot reference node
837
- slotNameAttr = childNode['s-sn'];
838
- // by default always show a fallback slot node
839
- // then hide it if there are other slots in the light dom
840
- childNode.hidden = false;
841
- for (j = 0; j < ilen; j++) {
842
- nodeType = childNodes[j].nodeType;
843
- if (childNodes[j]['s-hn'] !== childNode['s-hn'] || slotNameAttr !== '') {
844
- // this sibling node is from a different component OR is a named fallback slot node
845
- if (nodeType === 1 /* ElementNode */ && slotNameAttr === childNodes[j].getAttribute('slot')) {
846
- childNode.hidden = true;
847
- break;
848
- }
849
- }
850
- else {
851
- // this is a default fallback slot node
852
- // any element or text node (with content)
853
- // should hide the default fallback slot node
854
- if (nodeType === 1 /* ElementNode */ ||
855
- (nodeType === 3 /* TextNode */ && childNodes[j].textContent.trim() !== '')) {
856
- childNode.hidden = true;
857
- break;
858
- }
859
- }
860
- }
861
- }
862
- // keep drilling down
863
- updateFallbackSlotVisibility(childNode);
864
- }
865
- }
866
- };
867
- const relocateNodes = [];
868
- const relocateSlotContent = (elm) => {
869
- // tslint:disable-next-line: prefer-const
870
- let childNode;
871
- let node;
872
- let hostContentNodes;
873
- let slotNameAttr;
874
- let relocateNodeData;
875
- let j;
876
- let i = 0;
877
- let childNodes = elm.childNodes;
878
- let ilen = childNodes.length;
879
- for (; i < ilen; i++) {
880
- childNode = childNodes[i];
881
- if (childNode['s-sr'] && (node = childNode['s-cr']) && node.parentNode) {
882
- // first got the content reference comment node
883
- // then we got it's parent, which is where all the host content is in now
884
- hostContentNodes = node.parentNode.childNodes;
885
- slotNameAttr = childNode['s-sn'];
886
- for (j = hostContentNodes.length - 1; j >= 0; j--) {
887
- node = hostContentNodes[j];
888
- if (!node['s-cn'] && !node['s-nr'] && node['s-hn'] !== childNode['s-hn']) {
889
- // let's do some relocating to its new home
890
- // but never relocate a content reference node
891
- // that is suppose to always represent the original content location
892
- if (isNodeLocatedInSlot(node, slotNameAttr)) {
893
- // it's possible we've already decided to relocate this node
894
- relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
895
- // made some changes to slots
896
- // let's make sure we also double check
897
- // fallbacks are correctly hidden or shown
898
- checkSlotFallbackVisibility = true;
899
- node['s-sn'] = node['s-sn'] || slotNameAttr;
900
- if (relocateNodeData) {
901
- // previously we never found a slot home for this node
902
- // but turns out we did, so let's remember it now
903
- relocateNodeData.$slotRefNode$ = childNode;
904
- }
905
- else {
906
- // add to our list of nodes to relocate
907
- relocateNodes.push({
908
- $slotRefNode$: childNode,
909
- $nodeToRelocate$: node,
910
- });
911
- }
912
- if (node['s-sr']) {
913
- relocateNodes.map((relocateNode) => {
914
- if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node['s-sn'])) {
915
- relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
916
- if (relocateNodeData && !relocateNode.$slotRefNode$) {
917
- relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
918
- }
919
- }
920
- });
921
- }
922
- }
923
- else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
924
- // so far this element does not have a slot home, not setting slotRefNode on purpose
925
- // if we never find a home for this element then we'll need to hide it
926
- relocateNodes.push({
927
- $nodeToRelocate$: node,
928
- });
929
- }
930
- }
931
- }
932
- }
933
- if (childNode.nodeType === 1 /* ElementNode */) {
934
- relocateSlotContent(childNode);
935
- }
936
- }
937
- };
938
- const isNodeLocatedInSlot = (nodeToRelocate, slotNameAttr) => {
939
- if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
940
- if (nodeToRelocate.getAttribute('slot') === null && slotNameAttr === '') {
941
- return true;
942
- }
943
- if (nodeToRelocate.getAttribute('slot') === slotNameAttr) {
944
- return true;
945
- }
946
- return false;
947
- }
948
- if (nodeToRelocate['s-sn'] === slotNameAttr) {
949
- return true;
950
- }
951
- return slotNameAttr === '';
952
- };
953
- const callNodeRefs = (vNode) => {
954
- {
955
- vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
956
- vNode.$children$ && vNode.$children$.map(callNodeRefs);
957
- }
958
- };
959
- const renderVdom = (hostRef, renderFnResults) => {
960
- const hostElm = hostRef.$hostElement$;
961
- const cmpMeta = hostRef.$cmpMeta$;
962
- const oldVNode = hostRef.$vnode$ || newVNode(null, null);
963
- const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
964
- hostTagName = hostElm.tagName;
965
- if (cmpMeta.$attrsToReflect$) {
966
- rootVnode.$attrs$ = rootVnode.$attrs$ || {};
967
- cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
968
- }
969
- rootVnode.$tag$ = null;
970
- rootVnode.$flags$ |= 4 /* isHost */;
971
- hostRef.$vnode$ = rootVnode;
972
- rootVnode.$elm$ = oldVNode.$elm$ = (hostElm.shadowRoot || hostElm );
973
- {
974
- scopeId = hostElm['s-sc'];
975
- }
976
- {
977
- contentRef = hostElm['s-cr'];
978
- useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
979
- // always reset
980
- checkSlotFallbackVisibility = false;
981
- }
982
- // synchronous patch
983
- patch(oldVNode, rootVnode);
984
- {
985
- // while we're moving nodes around existing nodes, temporarily disable
986
- // the disconnectCallback from working
987
- plt.$flags$ |= 1 /* isTmpDisconnected */;
988
- if (checkSlotRelocate) {
989
- relocateSlotContent(rootVnode.$elm$);
990
- let relocateData;
991
- let nodeToRelocate;
992
- let orgLocationNode;
993
- let parentNodeRef;
994
- let insertBeforeNode;
995
- let refNode;
996
- let i = 0;
997
- for (; i < relocateNodes.length; i++) {
998
- relocateData = relocateNodes[i];
999
- nodeToRelocate = relocateData.$nodeToRelocate$;
1000
- if (!nodeToRelocate['s-ol']) {
1001
- // add a reference node marking this node's original location
1002
- // keep a reference to this node for later lookups
1003
- orgLocationNode =
1004
- doc.createTextNode('');
1005
- orgLocationNode['s-nr'] = nodeToRelocate;
1006
- nodeToRelocate.parentNode.insertBefore((nodeToRelocate['s-ol'] = orgLocationNode), nodeToRelocate);
1007
- }
1008
- }
1009
- for (i = 0; i < relocateNodes.length; i++) {
1010
- relocateData = relocateNodes[i];
1011
- nodeToRelocate = relocateData.$nodeToRelocate$;
1012
- if (relocateData.$slotRefNode$) {
1013
- // by default we're just going to insert it directly
1014
- // after the slot reference node
1015
- parentNodeRef = relocateData.$slotRefNode$.parentNode;
1016
- insertBeforeNode = relocateData.$slotRefNode$.nextSibling;
1017
- orgLocationNode = nodeToRelocate['s-ol'];
1018
- while ((orgLocationNode = orgLocationNode.previousSibling)) {
1019
- refNode = orgLocationNode['s-nr'];
1020
- if (refNode && refNode['s-sn'] === nodeToRelocate['s-sn'] && parentNodeRef === refNode.parentNode) {
1021
- refNode = refNode.nextSibling;
1022
- if (!refNode || !refNode['s-nr']) {
1023
- insertBeforeNode = refNode;
1024
- break;
1025
- }
1026
- }
1027
- }
1028
- if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) ||
1029
- nodeToRelocate.nextSibling !== insertBeforeNode) {
1030
- // we've checked that it's worth while to relocate
1031
- // since that the node to relocate
1032
- // has a different next sibling or parent relocated
1033
- if (nodeToRelocate !== insertBeforeNode) {
1034
- if (!nodeToRelocate['s-hn'] && nodeToRelocate['s-ol']) {
1035
- // probably a component in the index.html that doesn't have it's hostname set
1036
- nodeToRelocate['s-hn'] = nodeToRelocate['s-ol'].parentNode.nodeName;
1037
- }
1038
- // add it back to the dom but in its new home
1039
- parentNodeRef.insertBefore(nodeToRelocate, insertBeforeNode);
1040
- }
1041
- }
1042
- }
1043
- else {
1044
- // this node doesn't have a slot home to go to, so let's hide it
1045
- if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1046
- nodeToRelocate.hidden = true;
1047
- }
1048
- }
1049
- }
1050
- }
1051
- if (checkSlotFallbackVisibility) {
1052
- updateFallbackSlotVisibility(rootVnode.$elm$);
1053
- }
1054
- // done moving nodes around
1055
- // allow the disconnect callback to work again
1056
- plt.$flags$ &= ~1 /* isTmpDisconnected */;
1057
- // always reset
1058
- relocateNodes.length = 0;
1059
- }
1060
- };
1061
- const getElement = (ref) => (getHostRef(ref).$hostElement$ );
1062
- const createEvent = (ref, name, flags) => {
1063
- const elm = getElement(ref);
1064
- return {
1065
- emit: (detail) => {
1066
- return emitEvent(elm, name, {
1067
- bubbles: !!(flags & 4 /* Bubbles */),
1068
- composed: !!(flags & 2 /* Composed */),
1069
- cancelable: !!(flags & 1 /* Cancellable */),
1070
- detail,
1071
- });
1072
- },
1073
- };
1074
- };
1075
- /**
1076
- * Helper function to create & dispatch a custom Event on a provided target
1077
- * @param elm the target of the Event
1078
- * @param name the name to give the custom Event
1079
- * @param opts options for configuring a custom Event
1080
- * @returns the custom Event
1081
- */
1082
- const emitEvent = (elm, name, opts) => {
1083
- const ev = plt.ce(name, opts);
1084
- elm.dispatchEvent(ev);
1085
- return ev;
1086
- };
1087
- const attachToAncestor = (hostRef, ancestorComponent) => {
1088
- if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
1089
- ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
1090
- }
1091
- };
1092
- const scheduleUpdate = (hostRef, isInitialLoad) => {
1093
- {
1094
- hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
1095
- }
1096
- if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
1097
- hostRef.$flags$ |= 512 /* needsRerender */;
1098
- return;
1099
- }
1100
- attachToAncestor(hostRef, hostRef.$ancestorComponent$);
1101
- // there is no ancestor component or the ancestor component
1102
- // has already fired off its lifecycle update then
1103
- // fire off the initial update
1104
- const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
1105
- return writeTask(dispatch) ;
1106
- };
1107
- const dispatchHooks = (hostRef, isInitialLoad) => {
1108
- const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
1109
- const instance = hostRef.$lazyInstance$ ;
1110
- let promise;
1111
- if (isInitialLoad) {
1112
- {
1113
- hostRef.$flags$ |= 256 /* isListenReady */;
1114
- if (hostRef.$queuedListeners$) {
1115
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
1116
- hostRef.$queuedListeners$ = null;
1117
- }
1118
- }
1119
- {
1120
- promise = safeCall(instance, 'componentWillLoad');
1121
- }
1122
- }
1123
- {
1124
- promise = then(promise, () => safeCall(instance, 'componentWillRender'));
1125
- }
1126
- endSchedule();
1127
- return then(promise, () => updateComponent(hostRef, instance, isInitialLoad));
1128
- };
1129
- const updateComponent = async (hostRef, instance, isInitialLoad) => {
1130
- // updateComponent
1131
- const elm = hostRef.$hostElement$;
1132
- const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
1133
- const rc = elm['s-rc'];
1134
- if (isInitialLoad) {
1135
- // DOM WRITE!
1136
- attachStyles(hostRef);
1137
- }
1138
- const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$);
1139
- {
1140
- callRender(hostRef, instance);
1141
- }
1142
- if (rc) {
1143
- // ok, so turns out there are some child host elements
1144
- // waiting on this parent element to load
1145
- // let's fire off all update callbacks waiting
1146
- rc.map((cb) => cb());
1147
- elm['s-rc'] = undefined;
1148
- }
1149
- endRender();
1150
- endUpdate();
1151
- {
1152
- const childrenPromises = elm['s-p'];
1153
- const postUpdate = () => postUpdateComponent(hostRef);
1154
- if (childrenPromises.length === 0) {
1155
- postUpdate();
1156
- }
1157
- else {
1158
- Promise.all(childrenPromises).then(postUpdate);
1159
- hostRef.$flags$ |= 4 /* isWaitingForChildren */;
1160
- childrenPromises.length = 0;
1161
- }
1162
- }
1163
- };
1164
- const callRender = (hostRef, instance, elm) => {
1165
- try {
1166
- instance = instance.render() ;
1167
- {
1168
- hostRef.$flags$ &= ~16 /* isQueuedForUpdate */;
1169
- }
1170
- {
1171
- hostRef.$flags$ |= 2 /* hasRendered */;
1172
- }
1173
- {
1174
- {
1175
- // looks like we've got child nodes to render into this host element
1176
- // or we need to update the css class/attrs on the host element
1177
- // DOM WRITE!
1178
- {
1179
- renderVdom(hostRef, instance);
1180
- }
1181
- }
1182
- }
1183
- }
1184
- catch (e) {
1185
- consoleError(e, hostRef.$hostElement$);
1186
- }
1187
- return null;
1188
- };
1189
- const postUpdateComponent = (hostRef) => {
1190
- const tagName = hostRef.$cmpMeta$.$tagName$;
1191
- const elm = hostRef.$hostElement$;
1192
- const endPostUpdate = createTime('postUpdate', tagName);
1193
- const instance = hostRef.$lazyInstance$ ;
1194
- const ancestorComponent = hostRef.$ancestorComponent$;
1195
- {
1196
- safeCall(instance, 'componentDidRender');
1197
- }
1198
- if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
1199
- hostRef.$flags$ |= 64 /* hasLoadedComponent */;
1200
- {
1201
- // DOM WRITE!
1202
- addHydratedFlag(elm);
1203
- }
1204
- {
1205
- safeCall(instance, 'componentDidLoad');
1206
- }
1207
- endPostUpdate();
1208
- {
1209
- hostRef.$onReadyResolve$(elm);
1210
- if (!ancestorComponent) {
1211
- appDidLoad();
1212
- }
1213
- }
1214
- }
1215
- else {
1216
- {
1217
- safeCall(instance, 'componentDidUpdate');
1218
- }
1219
- endPostUpdate();
1220
- }
1221
- {
1222
- hostRef.$onInstanceResolve$(elm);
1223
- }
1224
- // load events fire from bottom to top
1225
- // the deepest elements load first then bubbles up
1226
- {
1227
- if (hostRef.$onRenderResolve$) {
1228
- hostRef.$onRenderResolve$();
1229
- hostRef.$onRenderResolve$ = undefined;
1230
- }
1231
- if (hostRef.$flags$ & 512 /* needsRerender */) {
1232
- nextTick(() => scheduleUpdate(hostRef, false));
1233
- }
1234
- hostRef.$flags$ &= ~(4 /* isWaitingForChildren */ | 512 /* needsRerender */);
1235
- }
1236
- // ( •_•)
1237
- // ( •_•)>⌐■-■
1238
- // (⌐■_■)
1239
- };
1240
- const forceUpdate = (ref) => {
1241
- {
1242
- const hostRef = getHostRef(ref);
1243
- const isConnected = hostRef.$hostElement$.isConnected;
1244
- if (isConnected &&
1245
- (hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1246
- scheduleUpdate(hostRef, false);
1247
- }
1248
- // Returns "true" when the forced update was successfully scheduled
1249
- return isConnected;
1250
- }
1251
- };
1252
- const appDidLoad = (who) => {
1253
- // on appload
1254
- // we have finish the first big initial render
1255
- {
1256
- addHydratedFlag(doc.documentElement);
1257
- }
1258
- nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } }));
1259
- };
1260
- const safeCall = (instance, method, arg) => {
1261
- if (instance && instance[method]) {
1262
- try {
1263
- return instance[method](arg);
1264
- }
1265
- catch (e) {
1266
- consoleError(e);
1267
- }
1268
- }
1269
- return undefined;
1270
- };
1271
- const then = (promise, thenFn) => {
1272
- return promise && promise.then ? promise.then(thenFn) : thenFn();
1273
- };
1274
- const addHydratedFlag = (elm) => elm.setAttribute('calcite-hydrated', '')
1275
- ;
1276
- const initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
1277
- const endHydrate = createTime('hydrateClient', tagName);
1278
- const shadowRoot = hostElm.shadowRoot;
1279
- const childRenderNodes = [];
1280
- const slotNodes = [];
1281
- const shadowRootNodes = shadowRoot ? [] : null;
1282
- const vnode = (hostRef.$vnode$ = newVNode(tagName, null));
1283
- if (!plt.$orgLocNodes$) {
1284
- initializeDocumentHydrate(doc.body, (plt.$orgLocNodes$ = new Map()));
1285
- }
1286
- hostElm[HYDRATE_ID] = hostId;
1287
- hostElm.removeAttribute(HYDRATE_ID);
1288
- clientHydrate(vnode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, hostElm, hostId);
1289
- childRenderNodes.map((c) => {
1290
- const orgLocationId = c.$hostId$ + '.' + c.$nodeId$;
1291
- const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
1292
- const node = c.$elm$;
1293
- if (orgLocationNode && supportsShadow && orgLocationNode['s-en'] === '') {
1294
- orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
1295
- }
1296
- if (!shadowRoot) {
1297
- node['s-hn'] = tagName;
1298
- if (orgLocationNode) {
1299
- node['s-ol'] = orgLocationNode;
1300
- node['s-ol']['s-nr'] = node;
1301
- }
1302
- }
1303
- plt.$orgLocNodes$.delete(orgLocationId);
1304
- });
1305
- if (shadowRoot) {
1306
- shadowRootNodes.map((shadowRootNode) => {
1307
- if (shadowRootNode) {
1308
- shadowRoot.appendChild(shadowRootNode);
1309
- }
1310
- });
1311
- }
1312
- endHydrate();
1313
- };
1314
- const clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId) => {
1315
- let childNodeType;
1316
- let childIdSplt;
1317
- let childVNode;
1318
- let i;
1319
- if (node.nodeType === 1 /* ElementNode */) {
1320
- childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
1321
- if (childNodeType) {
1322
- // got the node data from the element's attribute
1323
- // `${hostId}.${nodeId}.${depth}.${index}`
1324
- childIdSplt = childNodeType.split('.');
1325
- if (childIdSplt[0] === hostId || childIdSplt[0] === '0') {
1326
- childVNode = {
1327
- $flags$: 0,
1328
- $hostId$: childIdSplt[0],
1329
- $nodeId$: childIdSplt[1],
1330
- $depth$: childIdSplt[2],
1331
- $index$: childIdSplt[3],
1332
- $tag$: node.tagName.toLowerCase(),
1333
- $elm$: node,
1334
- $attrs$: null,
1335
- $children$: null,
1336
- $key$: null,
1337
- $name$: null,
1338
- $text$: null,
1339
- };
1340
- childRenderNodes.push(childVNode);
1341
- node.removeAttribute(HYDRATE_CHILD_ID);
1342
- // this is a new child vnode
1343
- // so ensure its parent vnode has the vchildren array
1344
- if (!parentVNode.$children$) {
1345
- parentVNode.$children$ = [];
1346
- }
1347
- // add our child vnode to a specific index of the vnode's children
1348
- parentVNode.$children$[childVNode.$index$] = childVNode;
1349
- // this is now the new parent vnode for all the next child checks
1350
- parentVNode = childVNode;
1351
- if (shadowRootNodes && childVNode.$depth$ === '0') {
1352
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
1353
- }
1354
- }
1355
- }
1356
- // recursively drill down, end to start so we can remove nodes
1357
- for (i = node.childNodes.length - 1; i >= 0; i--) {
1358
- clientHydrate(parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node.childNodes[i], hostId);
1359
- }
1360
- if (node.shadowRoot) {
1361
- // keep drilling down through the shadow root nodes
1362
- for (i = node.shadowRoot.childNodes.length - 1; i >= 0; i--) {
1363
- clientHydrate(parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node.shadowRoot.childNodes[i], hostId);
1364
- }
1365
- }
1366
- }
1367
- else if (node.nodeType === 8 /* CommentNode */) {
1368
- // `${COMMENT_TYPE}.${hostId}.${nodeId}.${depth}.${index}`
1369
- childIdSplt = node.nodeValue.split('.');
1370
- if (childIdSplt[1] === hostId || childIdSplt[1] === '0') {
1371
- // comment node for either the host id or a 0 host id
1372
- childNodeType = childIdSplt[0];
1373
- childVNode = {
1374
- $flags$: 0,
1375
- $hostId$: childIdSplt[1],
1376
- $nodeId$: childIdSplt[2],
1377
- $depth$: childIdSplt[3],
1378
- $index$: childIdSplt[4],
1379
- $elm$: node,
1380
- $attrs$: null,
1381
- $children$: null,
1382
- $key$: null,
1383
- $name$: null,
1384
- $tag$: null,
1385
- $text$: null,
1386
- };
1387
- if (childNodeType === TEXT_NODE_ID) {
1388
- childVNode.$elm$ = node.nextSibling;
1389
- if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {
1390
- childVNode.$text$ = childVNode.$elm$.textContent;
1391
- childRenderNodes.push(childVNode);
1392
- // remove the text comment since it's no longer needed
1393
- node.remove();
1394
- if (!parentVNode.$children$) {
1395
- parentVNode.$children$ = [];
1396
- }
1397
- parentVNode.$children$[childVNode.$index$] = childVNode;
1398
- if (shadowRootNodes && childVNode.$depth$ === '0') {
1399
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
1400
- }
1401
- }
1402
- }
1403
- else if (childVNode.$hostId$ === hostId) {
1404
- // this comment node is specifcally for this host id
1405
- if (childNodeType === SLOT_NODE_ID) {
1406
- // `${SLOT_NODE_ID}.${hostId}.${nodeId}.${depth}.${index}.${slotName}`;
1407
- childVNode.$tag$ = 'slot';
1408
- if (childIdSplt[5]) {
1409
- node['s-sn'] = childVNode.$name$ = childIdSplt[5];
1410
- }
1411
- else {
1412
- node['s-sn'] = '';
1413
- }
1414
- node['s-sr'] = true;
1415
- if (shadowRootNodes) {
1416
- // browser support shadowRoot and this is a shadow dom component
1417
- // create an actual slot element
1418
- childVNode.$elm$ = doc.createElement(childVNode.$tag$);
1419
- if (childVNode.$name$) {
1420
- // add the slot name attribute
1421
- childVNode.$elm$.setAttribute('name', childVNode.$name$);
1422
- }
1423
- // insert the new slot element before the slot comment
1424
- node.parentNode.insertBefore(childVNode.$elm$, node);
1425
- // remove the slot comment since it's not needed for shadow
1426
- node.remove();
1427
- if (childVNode.$depth$ === '0') {
1428
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
1429
- }
1430
- }
1431
- slotNodes.push(childVNode);
1432
- if (!parentVNode.$children$) {
1433
- parentVNode.$children$ = [];
1434
- }
1435
- parentVNode.$children$[childVNode.$index$] = childVNode;
1436
- }
1437
- else if (childNodeType === CONTENT_REF_ID) {
1438
- // `${CONTENT_REF_ID}.${hostId}`;
1439
- if (shadowRootNodes) {
1440
- // remove the content ref comment since it's not needed for shadow
1441
- node.remove();
1442
- }
1443
- else {
1444
- hostElm['s-cr'] = node;
1445
- node['s-cn'] = true;
1446
- }
1447
- }
1448
- }
1449
- }
1450
- }
1451
- else if (parentVNode && parentVNode.$tag$ === 'style') {
1452
- const vnode = newVNode(null, node.textContent);
1453
- vnode.$elm$ = node;
1454
- vnode.$index$ = '0';
1455
- parentVNode.$children$ = [vnode];
1456
- }
1457
- };
1458
- const initializeDocumentHydrate = (node, orgLocNodes) => {
1459
- if (node.nodeType === 1 /* ElementNode */) {
1460
- let i = 0;
1461
- for (; i < node.childNodes.length; i++) {
1462
- initializeDocumentHydrate(node.childNodes[i], orgLocNodes);
1463
- }
1464
- if (node.shadowRoot) {
1465
- for (i = 0; i < node.shadowRoot.childNodes.length; i++) {
1466
- initializeDocumentHydrate(node.shadowRoot.childNodes[i], orgLocNodes);
1467
- }
1468
- }
1469
- }
1470
- else if (node.nodeType === 8 /* CommentNode */) {
1471
- const childIdSplt = node.nodeValue.split('.');
1472
- if (childIdSplt[0] === ORG_LOCATION_ID) {
1473
- orgLocNodes.set(childIdSplt[1] + '.' + childIdSplt[2], node);
1474
- node.nodeValue = '';
1475
- // useful to know if the original location is
1476
- // the root light-dom of a shadow dom component
1477
- node['s-en'] = childIdSplt[3];
1478
- }
1479
- }
1480
- };
1481
- const parsePropertyValue = (propValue, propType) => {
1482
- // ensure this value is of the correct prop type
1483
- if (propValue != null && !isComplexType(propValue)) {
1484
- if (propType & 4 /* Boolean */) {
1485
- // per the HTML spec, any string value means it is a boolean true value
1486
- // but we'll cheat here and say that the string "false" is the boolean false
1487
- return propValue === 'false' ? false : propValue === '' || !!propValue;
1488
- }
1489
- if (propType & 2 /* Number */) {
1490
- // force it to be a number
1491
- return parseFloat(propValue);
1492
- }
1493
- if (propType & 1 /* String */) {
1494
- // could have been passed as a number or boolean
1495
- // but we still want it as a string
1496
- return String(propValue);
1497
- }
1498
- // redundant return here for better minification
1499
- return propValue;
1500
- }
1501
- // not sure exactly what type we want
1502
- // so no need to change to a different type
1503
- return propValue;
1504
- };
1505
- const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1506
- const setValue = (ref, propName, newVal, cmpMeta) => {
1507
- // check our new property value against our internal value
1508
- const hostRef = getHostRef(ref);
1509
- const elm = hostRef.$hostElement$ ;
1510
- const oldVal = hostRef.$instanceValues$.get(propName);
1511
- const flags = hostRef.$flags$;
1512
- const instance = hostRef.$lazyInstance$ ;
1513
- newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
1514
- if ((!(flags & 8 /* isConstructingInstance */) || oldVal === undefined) && newVal !== oldVal) {
1515
- // gadzooks! the property's value has changed!!
1516
- // set our new value!
1517
- hostRef.$instanceValues$.set(propName, newVal);
1518
- if (instance) {
1519
- // get an array of method names of watch functions to call
1520
- if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
1521
- const watchMethods = cmpMeta.$watchers$[propName];
1522
- if (watchMethods) {
1523
- // this instance is watching for when this property changed
1524
- watchMethods.map((watchMethodName) => {
1525
- try {
1526
- // fire off each of the watch methods that are watching this property
1527
- instance[watchMethodName](newVal, oldVal, propName);
1528
- }
1529
- catch (e) {
1530
- consoleError(e, elm);
1531
- }
1532
- });
1533
- }
1534
- }
1535
- if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1536
- if (instance.componentShouldUpdate) {
1537
- if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
1538
- return;
1539
- }
1540
- }
1541
- // looks like this value actually changed, so we've got work to do!
1542
- // but only if we've already rendered, otherwise just chill out
1543
- // queue that we need to do an update, but don't worry about queuing
1544
- // up millions cuz this function ensures it only runs once
1545
- scheduleUpdate(hostRef, false);
1546
- }
1547
- }
1548
- }
1549
- };
1550
- const proxyComponent = (Cstr, cmpMeta, flags) => {
1551
- if (cmpMeta.$members$) {
1552
- if (Cstr.watchers) {
1553
- cmpMeta.$watchers$ = Cstr.watchers;
1554
- }
1555
- // It's better to have a const than two Object.entries()
1556
- const members = Object.entries(cmpMeta.$members$);
1557
- const prototype = Cstr.prototype;
1558
- members.map(([memberName, [memberFlags]]) => {
1559
- if ((memberFlags & 31 /* Prop */ ||
1560
- ((flags & 2 /* proxyState */) && memberFlags & 32 /* State */))) {
1561
- // proxyComponent - prop
1562
- Object.defineProperty(prototype, memberName, {
1563
- get() {
1564
- // proxyComponent, get value
1565
- return getValue(this, memberName);
1566
- },
1567
- set(newValue) {
1568
- // proxyComponent, set value
1569
- setValue(this, memberName, newValue, cmpMeta);
1570
- },
1571
- configurable: true,
1572
- enumerable: true,
1573
- });
1574
- }
1575
- else if (flags & 1 /* isElementConstructor */ &&
1576
- memberFlags & 64 /* Method */) {
1577
- // proxyComponent - method
1578
- Object.defineProperty(prototype, memberName, {
1579
- value(...args) {
1580
- const ref = getHostRef(this);
1581
- return ref.$onInstancePromise$.then(() => ref.$lazyInstance$[memberName](...args));
1582
- },
1583
- });
1584
- }
1585
- });
1586
- if ((flags & 1 /* isElementConstructor */)) {
1587
- const attrNameToPropName = new Map();
1588
- prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
1589
- plt.jmp(() => {
1590
- const propName = attrNameToPropName.get(attrName);
1591
- // In a webcomponent lifecyle the attributeChangedCallback runs prior to connectedCallback
1592
- // in the case where an attribute was set inline.
1593
- // ```html
1594
- // <my-component some-attribute="some-value"></my-component>
1595
- // ```
1596
- //
1597
- // There is an edge case where a developer sets the attribute inline on a custom element and then programatically
1598
- // changes it before it has been upgraded as shown below:
1599
- //
1600
- // ```html
1601
- // <!-- this component has _not_ been upgraded yet -->
1602
- // <my-component id="test" some-attribute="some-value"></my-component>
1603
- // <script>
1604
- // // grab non-upgraded component
1605
- // el = document.querySelector("#test");
1606
- // el.someAttribute = "another-value";
1607
- // // upgrade component
1608
- // cutsomElements.define('my-component', MyComponent);
1609
- // </script>
1610
- // ```
1611
- // In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
1612
- // will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
1613
- // to the value that was set inline i.e. "some-value" from above example. When
1614
- // the connectedCallback attempts to unshadow it will use "some-value" as the intial value rather than "another-value"
1615
- //
1616
- // The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
1617
- // by connectedCallback as this attributeChangedCallback will not fire.
1618
- //
1619
- // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1620
- //
1621
- // TODO(STENCIL-16) we should think about whether or not we actually want to be reflecting the attributes to
1622
- // properties here given that this goes against best practices outlined here
1623
- // https://developers.google.com/web/fundamentals/web-components/best-practices#avoid-reentrancy
1624
- if (this.hasOwnProperty(propName)) {
1625
- newValue = this[propName];
1626
- delete this[propName];
1627
- }
1628
- this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
1629
- });
1630
- };
1631
- // create an array of attributes to observe
1632
- // and also create a map of html attribute name to js property name
1633
- Cstr.observedAttributes = members
1634
- .filter(([_, m]) => m[0] & 15 /* HasAttribute */) // filter to only keep props that should match attributes
1635
- .map(([propName, m]) => {
1636
- const attrName = m[1] || propName;
1637
- attrNameToPropName.set(attrName, propName);
1638
- if (m[0] & 512 /* ReflectAttr */) {
1639
- cmpMeta.$attrsToReflect$.push([propName, attrName]);
1640
- }
1641
- return attrName;
1642
- });
1643
- }
1644
- }
1645
- return Cstr;
1646
- };
1647
- const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
1648
- // initializeComponent
1649
- if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
1650
- {
1651
- // we haven't initialized this element yet
1652
- hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1653
- // lazy loaded components
1654
- // request the component's implementation to be
1655
- // wired up with the host element
1656
- Cstr = loadModule(cmpMeta);
1657
- if (Cstr.then) {
1658
- // Await creates a micro-task avoid if possible
1659
- const endLoad = uniqueTime();
1660
- Cstr = await Cstr;
1661
- endLoad();
1662
- }
1663
- if (!Cstr.isProxied) {
1664
- // we've never proxied this Constructor before
1665
- // let's add the getters/setters to its prototype before
1666
- // the first time we create an instance of the implementation
1667
- {
1668
- cmpMeta.$watchers$ = Cstr.watchers;
1669
- }
1670
- proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
1671
- Cstr.isProxied = true;
1672
- }
1673
- const endNewInstance = createTime('createInstance', cmpMeta.$tagName$);
1674
- // ok, time to construct the instance
1675
- // but let's keep track of when we start and stop
1676
- // so that the getters/setters don't incorrectly step on data
1677
- {
1678
- hostRef.$flags$ |= 8 /* isConstructingInstance */;
1679
- }
1680
- // construct the lazy-loaded component implementation
1681
- // passing the hostRef is very important during
1682
- // construction in order to directly wire together the
1683
- // host element and the lazy-loaded instance
1684
- try {
1685
- new Cstr(hostRef);
1686
- }
1687
- catch (e) {
1688
- consoleError(e);
1689
- }
1690
- {
1691
- hostRef.$flags$ &= ~8 /* isConstructingInstance */;
1692
- }
1693
- {
1694
- hostRef.$flags$ |= 128 /* isWatchReady */;
1695
- }
1696
- endNewInstance();
1697
- fireConnectedCallback(hostRef.$lazyInstance$);
1698
- }
1699
- if (Cstr.style) {
1700
- // this component has styles but we haven't registered them yet
1701
- let style = Cstr.style;
1702
- const scopeId = getScopeId(cmpMeta);
1703
- if (!styles.has(scopeId)) {
1704
- const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
1705
- registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
1706
- endRegisterStyles();
1707
- }
1708
- }
1709
- }
1710
- // we've successfully created a lazy instance
1711
- const ancestorComponent = hostRef.$ancestorComponent$;
1712
- const schedule = () => scheduleUpdate(hostRef, true);
1713
- if (ancestorComponent && ancestorComponent['s-rc']) {
1714
- // this is the intial load and this component it has an ancestor component
1715
- // but the ancestor component has NOT fired its will update lifecycle yet
1716
- // so let's just cool our jets and wait for the ancestor to continue first
1717
- // this will get fired off when the ancestor component
1718
- // finally gets around to rendering its lazy self
1719
- // fire off the initial update
1720
- ancestorComponent['s-rc'].push(schedule);
1721
- }
1722
- else {
1723
- schedule();
1724
- }
1725
- };
1726
- const fireConnectedCallback = (instance) => {
1727
- {
1728
- safeCall(instance, 'connectedCallback');
1729
- }
1730
- };
1731
- const connectedCallback = (elm) => {
1732
- if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1733
- const hostRef = getHostRef(elm);
1734
- const cmpMeta = hostRef.$cmpMeta$;
1735
- const endConnected = createTime('connectedCallback', cmpMeta.$tagName$);
1736
- if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
1737
- // first time this component has connected
1738
- hostRef.$flags$ |= 1 /* hasConnected */;
1739
- let hostId;
1740
- {
1741
- hostId = elm.getAttribute(HYDRATE_ID);
1742
- if (hostId) {
1743
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
1744
- const scopeId = addStyle(elm.shadowRoot, cmpMeta);
1745
- elm.classList.remove(scopeId + '-h', scopeId + '-s');
1746
- }
1747
- initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);
1748
- }
1749
- }
1750
- if (!hostId) {
1751
- // initUpdate
1752
- // if the slot polyfill is required we'll need to put some nodes
1753
- // in here to act as original content anchors as we move nodes around
1754
- // host element has been connected to the DOM
1755
- if ((cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */))) {
1756
- setContentReference(elm);
1757
- }
1758
- }
1759
- {
1760
- // find the first ancestor component (if there is one) and register
1761
- // this component as one of the actively loading child components for its ancestor
1762
- let ancestorComponent = elm;
1763
- while ((ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host)) {
1764
- // climb up the ancestors looking for the first
1765
- // component that hasn't finished its lifecycle update yet
1766
- if ((ancestorComponent.nodeType === 1 /* ElementNode */ &&
1767
- ancestorComponent.hasAttribute('s-id') &&
1768
- ancestorComponent['s-p']) ||
1769
- ancestorComponent['s-p']) {
1770
- // we found this components first ancestor component
1771
- // keep a reference to this component's ancestor component
1772
- attachToAncestor(hostRef, (hostRef.$ancestorComponent$ = ancestorComponent));
1773
- break;
1774
- }
1775
- }
1776
- }
1777
- // Lazy properties
1778
- // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1779
- if (cmpMeta.$members$) {
1780
- Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1781
- if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
1782
- const value = elm[memberName];
1783
- delete elm[memberName];
1784
- elm[memberName] = value;
1785
- }
1786
- });
1787
- }
1788
- {
1789
- initializeComponent(elm, hostRef, cmpMeta);
1790
- }
1791
- }
1792
- else {
1793
- // not the first time this has connected
1794
- // reattach any event listeners to the host
1795
- // since they would have been removed when disconnected
1796
- addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1797
- // fire off connectedCallback() on component instance
1798
- fireConnectedCallback(hostRef.$lazyInstance$);
1799
- }
1800
- endConnected();
1801
- }
1802
- };
1803
- const setContentReference = (elm) => {
1804
- // only required when we're NOT using native shadow dom (slot)
1805
- // or this browser doesn't support native shadow dom
1806
- // and this host element was NOT created with SSR
1807
- // let's pick out the inner content for slot projection
1808
- // create a node to represent where the original
1809
- // content was first placed, which is useful later on
1810
- const contentRefElm = (elm['s-cr'] = doc.createComment(''));
1811
- contentRefElm['s-cn'] = true;
1812
- elm.insertBefore(contentRefElm, elm.firstChild);
1813
- };
1814
- const disconnectedCallback = (elm) => {
1815
- if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1816
- const hostRef = getHostRef(elm);
1817
- const instance = hostRef.$lazyInstance$ ;
1818
- {
1819
- if (hostRef.$rmListeners$) {
1820
- hostRef.$rmListeners$.map((rmListener) => rmListener());
1821
- hostRef.$rmListeners$ = undefined;
1822
- }
1823
- }
1824
- {
1825
- safeCall(instance, 'disconnectedCallback');
1826
- }
1827
- }
1828
- };
1829
- const bootstrapLazy = (lazyBundles, options = {}) => {
1830
- const endBootstrap = createTime();
1831
- const cmpTags = [];
1832
- const exclude = options.exclude || [];
1833
- const customElements = win.customElements;
1834
- const head = doc.head;
1835
- const metaCharset = /*@__PURE__*/ head.querySelector('meta[charset]');
1836
- const visibilityStyle = /*@__PURE__*/ doc.createElement('style');
1837
- const deferredConnectedCallbacks = [];
1838
- const styles = /*@__PURE__*/ doc.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
1839
- let appLoadFallback;
1840
- let isBootstrapping = true;
1841
- let i = 0;
1842
- Object.assign(plt, options);
1843
- plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
1844
- {
1845
- // If the app is already hydrated there is not point to disable the
1846
- // async queue. This will improve the first input delay
1847
- plt.$flags$ |= 2 /* appLoaded */;
1848
- }
1849
- {
1850
- for (; i < styles.length; i++) {
1851
- registerStyle(styles[i].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles[i].innerHTML), true);
1852
- }
1853
- }
1854
- lazyBundles.map((lazyBundle) => lazyBundle[1].map((compactMeta) => {
1855
- const cmpMeta = {
1856
- $flags$: compactMeta[0],
1857
- $tagName$: compactMeta[1],
1858
- $members$: compactMeta[2],
1859
- $listeners$: compactMeta[3],
1860
- };
1861
- {
1862
- cmpMeta.$members$ = compactMeta[2];
1863
- }
1864
- {
1865
- cmpMeta.$listeners$ = compactMeta[3];
1866
- }
1867
- {
1868
- cmpMeta.$attrsToReflect$ = [];
1869
- }
1870
- {
1871
- cmpMeta.$watchers$ = {};
1872
- }
1873
- const tagName = cmpMeta.$tagName$;
1874
- const HostElement = class extends HTMLElement {
1875
- // StencilLazyHost
1876
- constructor(self) {
1877
- // @ts-ignore
1878
- super(self);
1879
- self = this;
1880
- registerHost(self, cmpMeta);
1881
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
1882
- // this component is using shadow dom
1883
- // and this browser supports shadow dom
1884
- // add the read-only property "shadowRoot" to the host element
1885
- // adding the shadow root build conditionals to minimize runtime
1886
- {
1887
- {
1888
- self.attachShadow({ mode: 'open' });
1889
- }
1890
- }
1891
- }
1892
- }
1893
- connectedCallback() {
1894
- if (appLoadFallback) {
1895
- clearTimeout(appLoadFallback);
1896
- appLoadFallback = null;
1897
- }
1898
- if (isBootstrapping) {
1899
- // connectedCallback will be processed once all components have been registered
1900
- deferredConnectedCallbacks.push(this);
1901
- }
1902
- else {
1903
- plt.jmp(() => connectedCallback(this));
1904
- }
1905
- }
1906
- disconnectedCallback() {
1907
- plt.jmp(() => disconnectedCallback(this));
1908
- }
1909
- componentOnReady() {
1910
- return getHostRef(this).$onReadyPromise$;
1911
- }
1912
- };
1913
- cmpMeta.$lazyBundleId$ = lazyBundle[0];
1914
- if (!exclude.includes(tagName) && !customElements.get(tagName)) {
1915
- cmpTags.push(tagName);
1916
- customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */));
1917
- }
1918
- }));
1919
- {
1920
- visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
1921
- visibilityStyle.setAttribute('data-styles', '');
1922
- head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
1923
- }
1924
- // Process deferred connectedCallbacks now all components have been registered
1925
- isBootstrapping = false;
1926
- if (deferredConnectedCallbacks.length) {
1927
- deferredConnectedCallbacks.map((host) => host.connectedCallback());
1928
- }
1929
- else {
1930
- {
1931
- plt.jmp(() => (appLoadFallback = setTimeout(appDidLoad, 30)));
1932
- }
1933
- }
1934
- // Fallback appLoad event
1935
- endBootstrap();
1936
- };
1937
- const getAssetPath = (path) => {
1938
- const assetUrl = new URL(path, plt.$resourcesUrl$);
1939
- return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
1940
- };
1941
- const Fragment = (_, children) => children;
1942
- const hostRefs = new WeakMap();
1943
- const getHostRef = (ref) => hostRefs.get(ref);
1944
- const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
1945
- const registerHost = (elm, cmpMeta) => {
1946
- const hostRef = {
1947
- $flags$: 0,
1948
- $hostElement$: elm,
1949
- $cmpMeta$: cmpMeta,
1950
- $instanceValues$: new Map(),
1951
- };
1952
- {
1953
- hostRef.$onInstancePromise$ = new Promise((r) => (hostRef.$onInstanceResolve$ = r));
1954
- }
1955
- {
1956
- hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
1957
- elm['s-p'] = [];
1958
- elm['s-rc'] = [];
1959
- }
1960
- addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1961
- return hostRefs.set(elm, hostRef);
1962
- };
1963
- const isMemberInElement = (elm, memberName) => memberName in elm;
1964
- const consoleError = (e, el) => (0, console.error)(e, el);
1965
- const cmpModules = /*@__PURE__*/ new Map();
1966
- const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1967
- // loadModuleImport
1968
- const exportName = cmpMeta.$tagName$.replace(/-/g, '_');
1969
- const bundleId = cmpMeta.$lazyBundleId$;
1970
- const module = cmpModules.get(bundleId) ;
1971
- if (module) {
1972
- return module[exportName];
1973
- }
1974
- return import(
1975
- /* webpackInclude: /\.entry\.js$/ */
1976
- /* webpackExclude: /\.system\.entry\.js$/ */
1977
- /* webpackMode: "lazy" */
1978
- `./${bundleId}.entry.js${''}`).then((importedModule) => {
1979
- {
1980
- cmpModules.set(bundleId, importedModule);
1981
- }
1982
- return importedModule[exportName];
1983
- }, consoleError);
1984
- };
1985
- const styles = new Map();
1986
- const queueDomReads = [];
1987
- const queueDomWrites = [];
1988
- const queueTask = (queue, write) => (cb) => {
1989
- queue.push(cb);
1990
- if (!queuePending) {
1991
- queuePending = true;
1992
- if (write && plt.$flags$ & 4 /* queueSync */) {
1993
- nextTick(flush);
1994
- }
1995
- else {
1996
- plt.raf(flush);
1997
- }
1998
- }
1999
- };
2000
- const consume = (queue) => {
2001
- for (let i = 0; i < queue.length; i++) {
2002
- try {
2003
- queue[i](performance.now());
2004
- }
2005
- catch (e) {
2006
- consoleError(e);
2007
- }
2008
- }
2009
- queue.length = 0;
2010
- };
2011
- const flush = () => {
2012
- // always force a bunch of medium callbacks to run, but still have
2013
- // a throttle on how many can run in a certain time
2014
- // DOM READS!!!
2015
- consume(queueDomReads);
2016
- // DOM WRITES!!!
2017
- {
2018
- consume(queueDomWrites);
2019
- if ((queuePending = queueDomReads.length > 0)) {
2020
- // still more to do yet, but we've run out of time
2021
- // let's let this thing cool off and try again in the next tick
2022
- plt.raf(flush);
2023
- }
2024
- }
2025
- };
2026
- const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
2027
- const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
2028
-
2029
- export { Fragment as F, Host as H, NAMESPACE as N, getAssetPath as a, bootstrapLazy as b, createEvent as c, doc as d, forceUpdate as f, getElement as g, h, promiseResolve as p, registerInstance as r };