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

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