@esri/calcite-components 1.0.0-beta.64 → 1.0.0-beta.68

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