bromcom-ui 2.3.55 → 2.3.59

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 (1277) hide show
  1. package/dist/bromcom-ui/app-globals-0f993ce5.js +3 -0
  2. package/dist/{esm → bromcom-ui}/bcm-alert.entry.js +3 -22
  3. package/dist/{esm → bromcom-ui}/bcm-autocomplete.entry.js +2 -2
  4. package/dist/{esm → bromcom-ui}/bcm-avatar.entry.js +2 -2
  5. package/dist/bromcom-ui/bcm-badge.entry.js +45 -0
  6. package/dist/{esm → bromcom-ui}/bcm-breadcrumb.entry.js +2 -2
  7. package/dist/bromcom-ui/bcm-button.entry.js +242 -0
  8. package/dist/{esm → bromcom-ui}/bcm-card-footer.entry.js +1 -1
  9. package/dist/{esm → bromcom-ui}/bcm-card-header.entry.js +1 -1
  10. package/dist/{esm → bromcom-ui}/bcm-card.entry.js +2 -2
  11. package/dist/{esm → bromcom-ui}/bcm-checkbox-group.entry.js +3 -3
  12. package/dist/{cjs/bcm-checkbox.cjs.entry.js → bromcom-ui/bcm-checkbox-lite.entry.js} +21 -121
  13. package/dist/{esm → bromcom-ui}/bcm-checkbox.entry.js +3 -4
  14. package/dist/{esm → bromcom-ui}/bcm-collapse-group.entry.js +2 -2
  15. package/dist/{esm → bromcom-ui}/bcm-collapse.entry.js +2 -2
  16. package/dist/{esm → bromcom-ui}/bcm-colorpicker.entry.js +5 -5
  17. package/dist/{esm → bromcom-ui}/bcm-comment-editor.entry.js +2 -2
  18. package/dist/{esm → bromcom-ui}/bcm-comment-group.entry.js +2 -2
  19. package/dist/{esm → bromcom-ui}/bcm-comment.entry.js +2 -2
  20. package/dist/{esm → bromcom-ui}/bcm-content.entry.js +2 -2
  21. package/dist/{esm → bromcom-ui}/bcm-date-picker.entry.js +31 -28
  22. package/dist/{esm/bcm-datetime-picker_2.entry.js → bromcom-ui/bcm-datetime-picker.entry.js} +46 -150
  23. package/dist/bromcom-ui/bcm-divider.entry.js +24 -0
  24. package/dist/{esm → bromcom-ui}/bcm-dropdown-button.entry.js +2 -2
  25. package/dist/{esm/bcm-dropdown-group_2.entry.js → bromcom-ui/bcm-dropdown-group.entry.js} +3 -36
  26. package/dist/bromcom-ui/bcm-dropdown-item.entry.js +37 -0
  27. package/dist/{esm → bromcom-ui}/bcm-dropdown-list.entry.js +2 -2
  28. package/dist/{esm → bromcom-ui}/bcm-dropdown.entry.js +3 -3
  29. package/dist/bromcom-ui/bcm-empty.entry.js +67 -0
  30. package/dist/{esm → bromcom-ui}/bcm-error-layout.entry.js +2 -2
  31. package/dist/{esm → bromcom-ui}/bcm-footer.entry.js +2 -2
  32. package/dist/{esm → bromcom-ui}/bcm-form-group.entry.js +1 -1
  33. package/dist/{collection/components/organism/form/form.js → bromcom-ui/bcm-form.entry.js} +59 -216
  34. package/dist/{esm → bromcom-ui}/bcm-header.entry.js +2 -2
  35. package/dist/{esm/bcm-badge_20.entry.js → bromcom-ui/bcm-icon.entry.js} +7 -3894
  36. package/dist/bromcom-ui/bcm-input.entry.js +379 -0
  37. package/dist/bromcom-ui/bcm-label.entry.js +565 -0
  38. package/dist/{esm → bromcom-ui}/bcm-link.entry.js +2 -2
  39. package/dist/bromcom-ui/bcm-list-item.entry.js +93 -0
  40. package/dist/bromcom-ui/bcm-list-select.entry.js +658 -0
  41. package/dist/bromcom-ui/bcm-list.entry.js +1205 -0
  42. package/dist/bromcom-ui/bcm-listbox-group.entry.js +26 -0
  43. package/dist/bromcom-ui/bcm-listbox-item.entry.js +159 -0
  44. package/dist/{collection/components/organism/listbox/listbox.js → bromcom-ui/bcm-listbox.entry.js} +56 -1107
  45. package/dist/{esm/bcm-menu-group_2.entry.js → bromcom-ui/bcm-menu-group.entry.js} +3 -85
  46. package/dist/bromcom-ui/bcm-menu-item.entry.js +86 -0
  47. package/dist/{esm → bromcom-ui}/bcm-menu.entry.js +2 -2
  48. package/dist/{esm → bromcom-ui}/bcm-message.entry.js +2 -2
  49. package/dist/bromcom-ui/bcm-modal.entry.js +193 -0
  50. package/dist/{esm → bromcom-ui}/bcm-notification.entry.js +2 -2
  51. package/dist/{esm → bromcom-ui}/bcm-popconfirm-box.entry.js +3 -3
  52. package/dist/{esm → bromcom-ui}/bcm-popconfirm.entry.js +5 -5
  53. package/dist/{esm → bromcom-ui}/bcm-popover-box.entry.js +3 -3
  54. package/dist/{esm → bromcom-ui}/bcm-popover.entry.js +5 -5
  55. package/dist/{esm → bromcom-ui}/bcm-progress.entry.js +2 -2
  56. package/dist/{esm/bcm-pulldown-group_2.entry.js → bromcom-ui/bcm-pulldown-group.entry.js} +4 -58
  57. package/dist/bromcom-ui/bcm-pulldown-item.entry.js +58 -0
  58. package/dist/{esm → bromcom-ui}/bcm-pulldown.entry.js +3 -3
  59. package/dist/bromcom-ui/bcm-radio-group.entry.js +120 -0
  60. package/dist/bromcom-ui/bcm-radio.entry.js +99 -0
  61. package/dist/{esm → bromcom-ui}/bcm-result.entry.js +2 -2
  62. package/dist/bromcom-ui/bcm-search.entry.js +162 -0
  63. package/dist/{esm → bromcom-ui}/bcm-select-box.entry.js +2 -2
  64. package/dist/{esm → bromcom-ui}/bcm-select-group.entry.js +2 -2
  65. package/dist/{esm → bromcom-ui}/bcm-select-option.entry.js +2 -2
  66. package/dist/{esm → bromcom-ui}/bcm-select.entry.js +71 -11
  67. package/dist/{esm → bromcom-ui}/bcm-selecto.entry.js +2 -2
  68. package/dist/{esm → bromcom-ui}/bcm-slider.entry.js +2 -2
  69. package/dist/{esm → bromcom-ui}/bcm-sub-comment.entry.js +2 -2
  70. package/dist/bromcom-ui/bcm-switch.entry.js +82 -0
  71. package/dist/bromcom-ui/bcm-tab-pane.entry.js +47 -0
  72. package/dist/bromcom-ui/bcm-tab.entry.js +68 -0
  73. package/dist/bromcom-ui/bcm-tabs-content.entry.js +39 -0
  74. package/dist/bromcom-ui/bcm-tabs.entry.js +357 -0
  75. package/dist/bromcom-ui/bcm-tag.entry.js +102 -0
  76. package/dist/bromcom-ui/bcm-text.entry.js +23 -0
  77. package/dist/{esm → bromcom-ui}/bcm-textarea.entry.js +7 -5
  78. package/dist/{esm → bromcom-ui}/bcm-time-picker.entry.js +2 -2
  79. package/dist/{esm → bromcom-ui}/bcm-timeline-item.entry.js +2 -2
  80. package/dist/{esm → bromcom-ui}/bcm-timeline.entry.js +2 -2
  81. package/dist/bromcom-ui/bcm-tooltip-box.entry.js +32 -0
  82. package/dist/bromcom-ui/bcm-tooltip.entry.js +138 -0
  83. package/dist/{esm → bromcom-ui}/bcm-treeview-group.entry.js +1 -1
  84. package/dist/bromcom-ui/bcm-treeview-item.entry.js +354 -0
  85. package/dist/{collection/components/organism/treeview/treeview.js → bromcom-ui/bcm-treeview.entry.js} +36 -907
  86. package/dist/{esm → bromcom-ui}/bcm-upload.entry.js +3 -3
  87. package/dist/bromcom-ui/bromcom-ui.css +411 -1
  88. package/dist/bromcom-ui/bromcom-ui.esm.js +122 -1
  89. package/dist/bromcom-ui/css-shim-af10229c.js +4 -0
  90. package/dist/bromcom-ui/datetime-helper-c373f888.js +5 -0
  91. package/dist/bromcom-ui/dom-424264d0.js +73 -0
  92. package/dist/{esm/element-dragger-03ac2a5e.js → bromcom-ui/element-dragger-e40f0410.js} +1 -1
  93. package/dist/{cjs/index-ce8878ec.js → bromcom-ui/index-0a7820ca.js} +1269 -202
  94. package/dist/bromcom-ui/index-43956e3c.js +99 -0
  95. package/dist/{esm/index-8fe7aea4.js → bromcom-ui/index-9dbea026.js} +1268 -171
  96. package/dist/bromcom-ui/index.esm.js +1 -0
  97. package/dist/{esm/popover-placement-a4ab1587.js → bromcom-ui/popover-placement-fb1f91e9.js} +4 -0
  98. package/dist/bromcom-ui/shadow-css-3ef739e8.js +383 -0
  99. package/dist/{esm → bromcom-ui}/types-0e4b533d.js +0 -0
  100. package/dist/{collection/components/organism/tabs/types.js → bromcom-ui/types-4b11eac9.js} +5 -3
  101. package/dist/{collection/components/molecules/alert/types.js → bromcom-ui/types-911a8837.js} +4 -2
  102. package/dist/{esm → bromcom-ui}/types-acccf7c5.js +0 -0
  103. package/dist/bromcom-ui/utils-1feb01eb.js +435 -0
  104. package/dist/types/assets/icons/index.d.ts +0 -0
  105. package/dist/types/assets/icons/index.example.d.ts +0 -0
  106. package/dist/types/components/atoms/avatar/avatar.d.ts +0 -0
  107. package/dist/types/components/atoms/badge/badge.d.ts +0 -0
  108. package/dist/types/components/atoms/button/button.d.ts +0 -0
  109. package/dist/types/components/atoms/divider/divider.d.ts +0 -0
  110. package/dist/types/components/atoms/icon/icon.d.ts +0 -0
  111. package/dist/types/components/atoms/icon/types.d.ts +0 -0
  112. package/dist/types/components/atoms/label/label.d.ts +16 -0
  113. package/dist/types/components/atoms/tag/tag.d.ts +0 -0
  114. package/dist/types/components/atoms/text/text.d.ts +0 -0
  115. package/dist/types/components/molecules/card/card-footer.d.ts +0 -0
  116. package/dist/types/components/molecules/card/card-header.d.ts +0 -0
  117. package/dist/types/components/molecules/card/card.d.ts +0 -0
  118. package/dist/types/components/molecules/checkbox/checkbox.d.ts +0 -0
  119. package/dist/types/components/molecules/checkbox/group.d.ts +1 -0
  120. package/dist/types/components/molecules/input/input.d.ts +2 -0
  121. package/dist/types/components/molecules/list/list-select.d.ts +24 -4
  122. package/dist/types/components/molecules/list/list.d.ts +13 -3
  123. package/dist/types/components/molecules/radio/group.d.ts +1 -0
  124. package/dist/types/components/molecules/radio/radio.d.ts +0 -0
  125. package/dist/types/components/molecules/select/group.d.ts +0 -0
  126. package/dist/types/components/molecules/select/option.d.ts +0 -0
  127. package/dist/types/components/molecules/select/select.d.ts +1 -0
  128. package/dist/types/components/molecules/switch/switch.d.ts +1 -0
  129. package/dist/types/components/molecules/textarea/textarea.d.ts +3 -2
  130. package/dist/types/components/organism/colorpicker/colorpicker.d.ts +1 -0
  131. package/dist/types/components/organism/date-picker/date-picker.d.ts +10 -6
  132. package/dist/types/components/organism/datetime-picker/datetime-picker.d.ts +2 -1
  133. package/dist/types/components/organism/listbox/listbox.d.ts +1 -0
  134. package/dist/types/components.d.ts +99 -16
  135. package/dist/types/global/variables/colors.d.ts +0 -0
  136. package/dist/types/helper/color-helper.d.ts +9 -0
  137. package/dist/types/helper/datetime-helper.d.ts +3 -0
  138. package/dist/types/helper/generate.d.ts +10 -0
  139. package/dist/types/helper/number-helper.d.ts +9 -0
  140. package/dist/types/helper/string-helper.d.ts +20 -0
  141. package/dist/types/helper/validators.d.ts +8 -0
  142. package/dist/types/index.d.ts +0 -0
  143. package/dist/types/models/bcm-types.d.ts +19 -0
  144. package/dist/types/models/bcm.d.ts +447 -0
  145. package/dist/types/stencil-public-runtime.d.ts +0 -0
  146. package/dist/types/templates/caption-template.d.ts +12 -0
  147. package/dist/types/templates/label-template.d.ts +12 -0
  148. package/dist/types/templates/slot-template.d.ts +8 -0
  149. package/dist/types/utils/utils.d.ts +1 -0
  150. package/loader/cdn.js +0 -0
  151. package/loader/index.cjs.js +0 -0
  152. package/loader/index.d.ts +0 -0
  153. package/loader/index.es2017.js +0 -0
  154. package/loader/index.js +0 -0
  155. package/loader/package.json +0 -0
  156. package/package.json +1 -1
  157. package/dist/bromcom-ui/p-013b6f5d.entry.js +0 -1
  158. package/dist/bromcom-ui/p-0532e299.entry.js +0 -1
  159. package/dist/bromcom-ui/p-05dfc182.entry.js +0 -1
  160. package/dist/bromcom-ui/p-09753e05.js +0 -1
  161. package/dist/bromcom-ui/p-0aa53bdb.entry.js +0 -1
  162. package/dist/bromcom-ui/p-0d336381.entry.js +0 -1
  163. package/dist/bromcom-ui/p-0fe77770.entry.js +0 -1
  164. package/dist/bromcom-ui/p-1010be41.entry.js +0 -1
  165. package/dist/bromcom-ui/p-1a2724a0.entry.js +0 -1
  166. package/dist/bromcom-ui/p-23ccff3f.entry.js +0 -1
  167. package/dist/bromcom-ui/p-26b3d5d0.entry.js +0 -1
  168. package/dist/bromcom-ui/p-2ae07b1f.entry.js +0 -1
  169. package/dist/bromcom-ui/p-2c1ee381.entry.js +0 -1
  170. package/dist/bromcom-ui/p-312efff7.js +0 -1
  171. package/dist/bromcom-ui/p-41294024.entry.js +0 -1
  172. package/dist/bromcom-ui/p-4396ee3b.entry.js +0 -1
  173. package/dist/bromcom-ui/p-48f8b33d.entry.js +0 -1
  174. package/dist/bromcom-ui/p-4b7f14ed.entry.js +0 -1
  175. package/dist/bromcom-ui/p-4ee0f5c4.entry.js +0 -1
  176. package/dist/bromcom-ui/p-50580ac4.entry.js +0 -1
  177. package/dist/bromcom-ui/p-5525b672.js +0 -7
  178. package/dist/bromcom-ui/p-571107a7.entry.js +0 -1
  179. package/dist/bromcom-ui/p-5982a2e1.entry.js +0 -1
  180. package/dist/bromcom-ui/p-607bc9b3.entry.js +0 -1
  181. package/dist/bromcom-ui/p-6355c903.entry.js +0 -1
  182. package/dist/bromcom-ui/p-659fce56.entry.js +0 -1
  183. package/dist/bromcom-ui/p-6bd805f1.entry.js +0 -1
  184. package/dist/bromcom-ui/p-6e0d3067.js +0 -1
  185. package/dist/bromcom-ui/p-6eddfb28.entry.js +0 -1
  186. package/dist/bromcom-ui/p-774ff4d9.entry.js +0 -1
  187. package/dist/bromcom-ui/p-77a480ff.entry.js +0 -1
  188. package/dist/bromcom-ui/p-79f77a4d.js +0 -1
  189. package/dist/bromcom-ui/p-7fc06a7b.entry.js +0 -1
  190. package/dist/bromcom-ui/p-8742c05d.entry.js +0 -1
  191. package/dist/bromcom-ui/p-8ed8d879.entry.js +0 -1
  192. package/dist/bromcom-ui/p-97013a5a.js +0 -1
  193. package/dist/bromcom-ui/p-9725508b.entry.js +0 -1
  194. package/dist/bromcom-ui/p-9856b79e.entry.js +0 -1
  195. package/dist/bromcom-ui/p-9e193345.entry.js +0 -1
  196. package/dist/bromcom-ui/p-a176d328.entry.js +0 -1
  197. package/dist/bromcom-ui/p-a18a0cc4.entry.js +0 -1
  198. package/dist/bromcom-ui/p-a3f2bfe9.entry.js +0 -1
  199. package/dist/bromcom-ui/p-b83043bf.entry.js +0 -1
  200. package/dist/bromcom-ui/p-b92324e7.js +0 -1
  201. package/dist/bromcom-ui/p-ba219861.entry.js +0 -1
  202. package/dist/bromcom-ui/p-bb49c421.entry.js +0 -1
  203. package/dist/bromcom-ui/p-c09bb845.entry.js +0 -1
  204. package/dist/bromcom-ui/p-c2a3c41d.entry.js +0 -1
  205. package/dist/bromcom-ui/p-c715e9e7.entry.js +0 -1
  206. package/dist/bromcom-ui/p-cdfd9ba0.entry.js +0 -1
  207. package/dist/bromcom-ui/p-cf6b0656.entry.js +0 -1
  208. package/dist/bromcom-ui/p-d1bdf91a.entry.js +0 -1
  209. package/dist/bromcom-ui/p-d68393d5.entry.js +0 -1
  210. package/dist/bromcom-ui/p-d9d9fea9.entry.js +0 -1
  211. package/dist/bromcom-ui/p-e183b88c.entry.js +0 -1
  212. package/dist/bromcom-ui/p-e27793a8.entry.js +0 -1
  213. package/dist/bromcom-ui/p-e67780b6.entry.js +0 -1
  214. package/dist/bromcom-ui/p-ea6f25da.js +0 -1
  215. package/dist/bromcom-ui/p-ea886a39.entry.js +0 -1
  216. package/dist/bromcom-ui/p-ec5940fe.entry.js +0 -1
  217. package/dist/bromcom-ui/p-ef334301.entry.js +0 -1
  218. package/dist/bromcom-ui/p-f3dc9291.entry.js +0 -1
  219. package/dist/bromcom-ui/p-f464fd90.entry.js +0 -1
  220. package/dist/bromcom-ui/p-ff737d35.entry.js +0 -1
  221. package/dist/cjs/bcm-alert.cjs.entry.js +0 -105
  222. package/dist/cjs/bcm-autocomplete.cjs.entry.js +0 -136
  223. package/dist/cjs/bcm-avatar.cjs.entry.js +0 -67
  224. package/dist/cjs/bcm-badge_20.cjs.entry.js +0 -9310
  225. package/dist/cjs/bcm-breadcrumb.cjs.entry.js +0 -55
  226. package/dist/cjs/bcm-card-footer.cjs.entry.js +0 -16
  227. package/dist/cjs/bcm-card-header.cjs.entry.js +0 -16
  228. package/dist/cjs/bcm-card.cjs.entry.js +0 -38
  229. package/dist/cjs/bcm-checkbox-group.cjs.entry.js +0 -273
  230. package/dist/cjs/bcm-collapse-group.cjs.entry.js +0 -48
  231. package/dist/cjs/bcm-collapse.cjs.entry.js +0 -44
  232. package/dist/cjs/bcm-colorpicker.cjs.entry.js +0 -414
  233. package/dist/cjs/bcm-comment-editor.cjs.entry.js +0 -36
  234. package/dist/cjs/bcm-comment-group.cjs.entry.js +0 -29
  235. package/dist/cjs/bcm-comment.cjs.entry.js +0 -82
  236. package/dist/cjs/bcm-content.cjs.entry.js +0 -19
  237. package/dist/cjs/bcm-date-picker.cjs.entry.js +0 -126
  238. package/dist/cjs/bcm-datetime-picker_2.cjs.entry.js +0 -1367
  239. package/dist/cjs/bcm-dropdown-button.cjs.entry.js +0 -90
  240. package/dist/cjs/bcm-dropdown-group_2.cjs.entry.js +0 -96
  241. package/dist/cjs/bcm-dropdown-list.cjs.entry.js +0 -73
  242. package/dist/cjs/bcm-dropdown.cjs.entry.js +0 -65
  243. package/dist/cjs/bcm-empty_6.cjs.entry.js +0 -2319
  244. package/dist/cjs/bcm-error-layout.cjs.entry.js +0 -59
  245. package/dist/cjs/bcm-footer.cjs.entry.js +0 -19
  246. package/dist/cjs/bcm-form-group.cjs.entry.js +0 -26
  247. package/dist/cjs/bcm-header.cjs.entry.js +0 -19
  248. package/dist/cjs/bcm-link.cjs.entry.js +0 -22
  249. package/dist/cjs/bcm-menu-group_2.cjs.entry.js +0 -182
  250. package/dist/cjs/bcm-menu.cjs.entry.js +0 -79
  251. package/dist/cjs/bcm-message.cjs.entry.js +0 -80
  252. package/dist/cjs/bcm-notification.cjs.entry.js +0 -84
  253. package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +0 -51
  254. package/dist/cjs/bcm-popconfirm.cjs.entry.js +0 -132
  255. package/dist/cjs/bcm-popover-box.cjs.entry.js +0 -36
  256. package/dist/cjs/bcm-popover.cjs.entry.js +0 -136
  257. package/dist/cjs/bcm-progress.cjs.entry.js +0 -113
  258. package/dist/cjs/bcm-pulldown-group_2.cjs.entry.js +0 -166
  259. package/dist/cjs/bcm-pulldown.cjs.entry.js +0 -110
  260. package/dist/cjs/bcm-result.cjs.entry.js +0 -61
  261. package/dist/cjs/bcm-select-box.cjs.entry.js +0 -35
  262. package/dist/cjs/bcm-select-group.cjs.entry.js +0 -26
  263. package/dist/cjs/bcm-select-option.cjs.entry.js +0 -32
  264. package/dist/cjs/bcm-select.cjs.entry.js +0 -1051
  265. package/dist/cjs/bcm-selecto.cjs.entry.js +0 -33
  266. package/dist/cjs/bcm-slider.cjs.entry.js +0 -453
  267. package/dist/cjs/bcm-sub-comment.cjs.entry.js +0 -75
  268. package/dist/cjs/bcm-switch.cjs.entry.js +0 -86
  269. package/dist/cjs/bcm-textarea.cjs.entry.js +0 -136
  270. package/dist/cjs/bcm-time-picker.cjs.entry.js +0 -92
  271. package/dist/cjs/bcm-timeline-item.cjs.entry.js +0 -39
  272. package/dist/cjs/bcm-timeline.cjs.entry.js +0 -54
  273. package/dist/cjs/bcm-tooltip-box.cjs.entry.js +0 -36
  274. package/dist/cjs/bcm-treeview-group.cjs.entry.js +0 -19
  275. package/dist/cjs/bcm-upload.cjs.entry.js +0 -219
  276. package/dist/cjs/bromcom-ui.cjs.js +0 -19
  277. package/dist/cjs/colors-7fb8d76f.js +0 -220
  278. package/dist/cjs/element-dragger-36fcb296.js +0 -271
  279. package/dist/cjs/index-2f62bdaf.js +0 -66
  280. package/dist/cjs/index.cjs.js +0 -2
  281. package/dist/cjs/loader.cjs.js +0 -21
  282. package/dist/cjs/popover-placement-ac023521.js +0 -87
  283. package/dist/cjs/types-6c34b66c.js +0 -16
  284. package/dist/cjs/types-a3c1999a.js +0 -9
  285. package/dist/cjs/utils-43fda566.js +0 -150
  286. package/dist/collection/assets/fonts/fontawesome/webfonts/fa-brands-400.svg +0 -3717
  287. package/dist/collection/assets/fonts/fontawesome/webfonts/fa-duotone-900.svg +0 -15326
  288. package/dist/collection/assets/fonts/fontawesome/webfonts/fa-light-300.svg +0 -12420
  289. package/dist/collection/assets/fonts/fontawesome/webfonts/fa-regular-400.svg +0 -11323
  290. package/dist/collection/assets/fonts/fontawesome/webfonts/fa-solid-900.svg +0 -9653
  291. package/dist/collection/assets/icons/index.example.js +0 -92
  292. package/dist/collection/assets/icons/index.js +0 -4492
  293. package/dist/collection/assets/icons/svg/animated/default/loading.svg +0 -4
  294. package/dist/collection/assets/icons/svg/default/12/component-check-disabled.svg +0 -3
  295. package/dist/collection/assets/icons/svg/default/12/component-check.svg +0 -3
  296. package/dist/collection/assets/icons/svg/fill/24/account-book.svg +0 -5
  297. package/dist/collection/assets/icons/svg/fill/24/alert.svg +0 -5
  298. package/dist/collection/assets/icons/svg/fill/24/alipay-circle.svg +0 -5
  299. package/dist/collection/assets/icons/svg/fill/24/alipay-square.svg +0 -5
  300. package/dist/collection/assets/icons/svg/fill/24/aliwangwang.svg +0 -5
  301. package/dist/collection/assets/icons/svg/fill/24/amazon-circle.svg +0 -5
  302. package/dist/collection/assets/icons/svg/fill/24/amazon-square.svg +0 -5
  303. package/dist/collection/assets/icons/svg/fill/24/android.svg +0 -5
  304. package/dist/collection/assets/icons/svg/fill/24/api.svg +0 -5
  305. package/dist/collection/assets/icons/svg/fill/24/apple.svg +0 -5
  306. package/dist/collection/assets/icons/svg/fill/24/appstore.svg +0 -5
  307. package/dist/collection/assets/icons/svg/fill/24/audio.svg +0 -5
  308. package/dist/collection/assets/icons/svg/fill/24/backward.svg +0 -5
  309. package/dist/collection/assets/icons/svg/fill/24/bank.svg +0 -5
  310. package/dist/collection/assets/icons/svg/fill/24/behance-circle.svg +0 -5
  311. package/dist/collection/assets/icons/svg/fill/24/behance-square.svg +0 -5
  312. package/dist/collection/assets/icons/svg/fill/24/bell.svg +0 -5
  313. package/dist/collection/assets/icons/svg/fill/24/book.svg +0 -5
  314. package/dist/collection/assets/icons/svg/fill/24/box-plot.svg +0 -5
  315. package/dist/collection/assets/icons/svg/fill/24/bug.svg +0 -6
  316. package/dist/collection/assets/icons/svg/fill/24/build.svg +0 -5
  317. package/dist/collection/assets/icons/svg/fill/24/bulb.svg +0 -5
  318. package/dist/collection/assets/icons/svg/fill/24/calculator.svg +0 -5
  319. package/dist/collection/assets/icons/svg/fill/24/calendar.svg +0 -5
  320. package/dist/collection/assets/icons/svg/fill/24/camera.svg +0 -5
  321. package/dist/collection/assets/icons/svg/fill/24/car.svg +0 -5
  322. package/dist/collection/assets/icons/svg/fill/24/caret-down.svg +0 -5
  323. package/dist/collection/assets/icons/svg/fill/24/caret-left.svg +0 -5
  324. package/dist/collection/assets/icons/svg/fill/24/caret-right.svg +0 -5
  325. package/dist/collection/assets/icons/svg/fill/24/caret-up.svg +0 -5
  326. package/dist/collection/assets/icons/svg/fill/24/carry-out.svg +0 -5
  327. package/dist/collection/assets/icons/svg/fill/24/check-circle.svg +0 -5
  328. package/dist/collection/assets/icons/svg/fill/24/check-square.svg +0 -5
  329. package/dist/collection/assets/icons/svg/fill/24/chrome.svg +0 -5
  330. package/dist/collection/assets/icons/svg/fill/24/ci-circle.svg +0 -5
  331. package/dist/collection/assets/icons/svg/fill/24/clipboard.svg +0 -11
  332. package/dist/collection/assets/icons/svg/fill/24/clock-circle.svg +0 -5
  333. package/dist/collection/assets/icons/svg/fill/24/close-circle.svg +0 -5
  334. package/dist/collection/assets/icons/svg/fill/24/close-square.svg +0 -5
  335. package/dist/collection/assets/icons/svg/fill/24/cloud.svg +0 -5
  336. package/dist/collection/assets/icons/svg/fill/24/code-sandbox-circle.svg +0 -5
  337. package/dist/collection/assets/icons/svg/fill/24/code-sandbox-square.svg +0 -5
  338. package/dist/collection/assets/icons/svg/fill/24/code.svg +0 -5
  339. package/dist/collection/assets/icons/svg/fill/24/codepen-circle.svg +0 -5
  340. package/dist/collection/assets/icons/svg/fill/24/codepen-square.svg +0 -5
  341. package/dist/collection/assets/icons/svg/fill/24/compass.svg +0 -5
  342. package/dist/collection/assets/icons/svg/fill/24/contacts.svg +0 -5
  343. package/dist/collection/assets/icons/svg/fill/24/container.svg +0 -5
  344. package/dist/collection/assets/icons/svg/fill/24/control.svg +0 -5
  345. package/dist/collection/assets/icons/svg/fill/24/copy.svg +0 -5
  346. package/dist/collection/assets/icons/svg/fill/24/copyright-circle.svg +0 -5
  347. package/dist/collection/assets/icons/svg/fill/24/credit-card.svg +0 -5
  348. package/dist/collection/assets/icons/svg/fill/24/crown.svg +0 -5
  349. package/dist/collection/assets/icons/svg/fill/24/customer-service.svg +0 -5
  350. package/dist/collection/assets/icons/svg/fill/24/dashboard.svg +0 -5
  351. package/dist/collection/assets/icons/svg/fill/24/database.svg +0 -5
  352. package/dist/collection/assets/icons/svg/fill/24/delete.svg +0 -5
  353. package/dist/collection/assets/icons/svg/fill/24/diff.svg +0 -5
  354. package/dist/collection/assets/icons/svg/fill/24/dingtalk-circle.svg +0 -5
  355. package/dist/collection/assets/icons/svg/fill/24/dingtalk-square.svg +0 -5
  356. package/dist/collection/assets/icons/svg/fill/24/dislike.svg +0 -5
  357. package/dist/collection/assets/icons/svg/fill/24/dollar-circle.svg +0 -5
  358. package/dist/collection/assets/icons/svg/fill/24/down-circle.svg +0 -5
  359. package/dist/collection/assets/icons/svg/fill/24/down-square.svg +0 -5
  360. package/dist/collection/assets/icons/svg/fill/24/dribbble-circle.svg +0 -5
  361. package/dist/collection/assets/icons/svg/fill/24/dribbble-square.svg +0 -5
  362. package/dist/collection/assets/icons/svg/fill/24/dropbox-circle.svg +0 -5
  363. package/dist/collection/assets/icons/svg/fill/24/dropbox-square.svg +0 -5
  364. package/dist/collection/assets/icons/svg/fill/24/edit.svg +0 -5
  365. package/dist/collection/assets/icons/svg/fill/24/environment.svg +0 -5
  366. package/dist/collection/assets/icons/svg/fill/24/euro-circle.svg +0 -5
  367. package/dist/collection/assets/icons/svg/fill/24/exclamation-circle.svg +0 -5
  368. package/dist/collection/assets/icons/svg/fill/24/experiment.svg +0 -5
  369. package/dist/collection/assets/icons/svg/fill/24/eye-invisible.svg +0 -6
  370. package/dist/collection/assets/icons/svg/fill/24/eye.svg +0 -5
  371. package/dist/collection/assets/icons/svg/fill/24/facebook.svg +0 -5
  372. package/dist/collection/assets/icons/svg/fill/24/fast-backward.svg +0 -5
  373. package/dist/collection/assets/icons/svg/fill/24/fast-forward.svg +0 -5
  374. package/dist/collection/assets/icons/svg/fill/24/file-add.svg +0 -5
  375. package/dist/collection/assets/icons/svg/fill/24/file-excel.svg +0 -5
  376. package/dist/collection/assets/icons/svg/fill/24/file-exclamation.svg +0 -5
  377. package/dist/collection/assets/icons/svg/fill/24/file-image.svg +0 -5
  378. package/dist/collection/assets/icons/svg/fill/24/file-markdown.svg +0 -5
  379. package/dist/collection/assets/icons/svg/fill/24/file-pdf.svg +0 -5
  380. package/dist/collection/assets/icons/svg/fill/24/file-ppt.svg +0 -5
  381. package/dist/collection/assets/icons/svg/fill/24/file-text.svg +0 -5
  382. package/dist/collection/assets/icons/svg/fill/24/file-unknown.svg +0 -5
  383. package/dist/collection/assets/icons/svg/fill/24/file-word.svg +0 -5
  384. package/dist/collection/assets/icons/svg/fill/24/file-zip.svg +0 -5
  385. package/dist/collection/assets/icons/svg/fill/24/file.svg +0 -5
  386. package/dist/collection/assets/icons/svg/fill/24/filter.svg +0 -5
  387. package/dist/collection/assets/icons/svg/fill/24/fire.svg +0 -5
  388. package/dist/collection/assets/icons/svg/fill/24/flag.svg +0 -5
  389. package/dist/collection/assets/icons/svg/fill/24/folder-add.svg +0 -5
  390. package/dist/collection/assets/icons/svg/fill/24/folder-open.svg +0 -5
  391. package/dist/collection/assets/icons/svg/fill/24/folder.svg +0 -5
  392. package/dist/collection/assets/icons/svg/fill/24/forward.svg +0 -5
  393. package/dist/collection/assets/icons/svg/fill/24/frown.svg +0 -5
  394. package/dist/collection/assets/icons/svg/fill/24/fund.svg +0 -5
  395. package/dist/collection/assets/icons/svg/fill/24/funnel-plot.svg +0 -5
  396. package/dist/collection/assets/icons/svg/fill/24/gift.svg +0 -5
  397. package/dist/collection/assets/icons/svg/fill/24/github.svg +0 -5
  398. package/dist/collection/assets/icons/svg/fill/24/gitlab.svg +0 -5
  399. package/dist/collection/assets/icons/svg/fill/24/golden.svg +0 -5
  400. package/dist/collection/assets/icons/svg/fill/24/google-circle.svg +0 -5
  401. package/dist/collection/assets/icons/svg/fill/24/google-plus-circle.svg +0 -5
  402. package/dist/collection/assets/icons/svg/fill/24/google-plus-square.svg +0 -5
  403. package/dist/collection/assets/icons/svg/fill/24/google-square.svg +0 -5
  404. package/dist/collection/assets/icons/svg/fill/24/hdd.svg +0 -5
  405. package/dist/collection/assets/icons/svg/fill/24/heart.svg +0 -5
  406. package/dist/collection/assets/icons/svg/fill/24/highlight.svg +0 -5
  407. package/dist/collection/assets/icons/svg/fill/24/home.svg +0 -5
  408. package/dist/collection/assets/icons/svg/fill/24/hourglass.svg +0 -5
  409. package/dist/collection/assets/icons/svg/fill/24/html5.svg +0 -5
  410. package/dist/collection/assets/icons/svg/fill/24/idcard.svg +0 -5
  411. package/dist/collection/assets/icons/svg/fill/24/ie-circle.svg +0 -5
  412. package/dist/collection/assets/icons/svg/fill/24/ie-square.svg +0 -5
  413. package/dist/collection/assets/icons/svg/fill/24/info-circle.svg +0 -5
  414. package/dist/collection/assets/icons/svg/fill/24/instagram.svg +0 -5
  415. package/dist/collection/assets/icons/svg/fill/24/insurance.svg +0 -5
  416. package/dist/collection/assets/icons/svg/fill/24/interaction.svg +0 -5
  417. package/dist/collection/assets/icons/svg/fill/24/layout.svg +0 -5
  418. package/dist/collection/assets/icons/svg/fill/24/left-circle.svg +0 -5
  419. package/dist/collection/assets/icons/svg/fill/24/left-square.svg +0 -5
  420. package/dist/collection/assets/icons/svg/fill/24/like.svg +0 -5
  421. package/dist/collection/assets/icons/svg/fill/24/linkedin.svg +0 -5
  422. package/dist/collection/assets/icons/svg/fill/24/lock.svg +0 -5
  423. package/dist/collection/assets/icons/svg/fill/24/mail.svg +0 -5
  424. package/dist/collection/assets/icons/svg/fill/24/medicine-box.svg +0 -5
  425. package/dist/collection/assets/icons/svg/fill/24/medium-circle.svg +0 -5
  426. package/dist/collection/assets/icons/svg/fill/24/medium-square.svg +0 -5
  427. package/dist/collection/assets/icons/svg/fill/24/meh.svg +0 -5
  428. package/dist/collection/assets/icons/svg/fill/24/message.svg +0 -5
  429. package/dist/collection/assets/icons/svg/fill/24/minus-circle.svg +0 -5
  430. package/dist/collection/assets/icons/svg/fill/24/minus-square.svg +0 -5
  431. package/dist/collection/assets/icons/svg/fill/24/mobile.svg +0 -5
  432. package/dist/collection/assets/icons/svg/fill/24/money-collect.svg +0 -5
  433. package/dist/collection/assets/icons/svg/fill/24/notification.svg +0 -5
  434. package/dist/collection/assets/icons/svg/fill/24/pause-circle.svg +0 -5
  435. package/dist/collection/assets/icons/svg/fill/24/pay-circle.svg +0 -5
  436. package/dist/collection/assets/icons/svg/fill/24/phone.svg +0 -5
  437. package/dist/collection/assets/icons/svg/fill/24/picture.svg +0 -5
  438. package/dist/collection/assets/icons/svg/fill/24/pie-chart.svg +0 -5
  439. package/dist/collection/assets/icons/svg/fill/24/play-circle.svg +0 -5
  440. package/dist/collection/assets/icons/svg/fill/24/play-square.svg +0 -5
  441. package/dist/collection/assets/icons/svg/fill/24/plus-circle.svg +0 -5
  442. package/dist/collection/assets/icons/svg/fill/24/plus-square.svg +0 -5
  443. package/dist/collection/assets/icons/svg/fill/24/pound-circle.svg +0 -5
  444. package/dist/collection/assets/icons/svg/fill/24/printer.svg +0 -5
  445. package/dist/collection/assets/icons/svg/fill/24/profile.svg +0 -5
  446. package/dist/collection/assets/icons/svg/fill/24/project.svg +0 -5
  447. package/dist/collection/assets/icons/svg/fill/24/property-safety.svg +0 -5
  448. package/dist/collection/assets/icons/svg/fill/24/pushpin.svg +0 -5
  449. package/dist/collection/assets/icons/svg/fill/24/qq-circle.svg +0 -5
  450. package/dist/collection/assets/icons/svg/fill/24/qq-square.svg +0 -5
  451. package/dist/collection/assets/icons/svg/fill/24/question-circle.svg +0 -5
  452. package/dist/collection/assets/icons/svg/fill/24/read.svg +0 -5
  453. package/dist/collection/assets/icons/svg/fill/24/reconciliation.svg +0 -5
  454. package/dist/collection/assets/icons/svg/fill/24/red-envelope.svg +0 -5
  455. package/dist/collection/assets/icons/svg/fill/24/reddit-circle.svg +0 -5
  456. package/dist/collection/assets/icons/svg/fill/24/reddit-square.svg +0 -5
  457. package/dist/collection/assets/icons/svg/fill/24/rest.svg +0 -5
  458. package/dist/collection/assets/icons/svg/fill/24/right-circle.svg +0 -5
  459. package/dist/collection/assets/icons/svg/fill/24/right-square.svg +0 -5
  460. package/dist/collection/assets/icons/svg/fill/24/rocket.svg +0 -5
  461. package/dist/collection/assets/icons/svg/fill/24/safety-certificate.svg +0 -5
  462. package/dist/collection/assets/icons/svg/fill/24/save.svg +0 -5
  463. package/dist/collection/assets/icons/svg/fill/24/schedule.svg +0 -5
  464. package/dist/collection/assets/icons/svg/fill/24/security-scan.svg +0 -5
  465. package/dist/collection/assets/icons/svg/fill/24/setting.svg +0 -5
  466. package/dist/collection/assets/icons/svg/fill/24/shop.svg +0 -5
  467. package/dist/collection/assets/icons/svg/fill/24/shopping.svg +0 -5
  468. package/dist/collection/assets/icons/svg/fill/24/sketch-circle.svg +0 -5
  469. package/dist/collection/assets/icons/svg/fill/24/sketch-square.svg +0 -5
  470. package/dist/collection/assets/icons/svg/fill/24/skin.svg +0 -5
  471. package/dist/collection/assets/icons/svg/fill/24/skype.svg +0 -5
  472. package/dist/collection/assets/icons/svg/fill/24/slack-circle.svg +0 -5
  473. package/dist/collection/assets/icons/svg/fill/24/slack-square.svg +0 -5
  474. package/dist/collection/assets/icons/svg/fill/24/sliders.svg +0 -5
  475. package/dist/collection/assets/icons/svg/fill/24/smile.svg +0 -5
  476. package/dist/collection/assets/icons/svg/fill/24/snippets.svg +0 -5
  477. package/dist/collection/assets/icons/svg/fill/24/sound.svg +0 -5
  478. package/dist/collection/assets/icons/svg/fill/24/star.svg +0 -5
  479. package/dist/collection/assets/icons/svg/fill/24/step-backward.svg +0 -5
  480. package/dist/collection/assets/icons/svg/fill/24/step-forward.svg +0 -5
  481. package/dist/collection/assets/icons/svg/fill/24/stop.svg +0 -5
  482. package/dist/collection/assets/icons/svg/fill/24/switcher.svg +0 -5
  483. package/dist/collection/assets/icons/svg/fill/24/tablet.svg +0 -5
  484. package/dist/collection/assets/icons/svg/fill/24/tag.svg +0 -5
  485. package/dist/collection/assets/icons/svg/fill/24/tags.svg +0 -5
  486. package/dist/collection/assets/icons/svg/fill/24/taobao-circle.svg +0 -5
  487. package/dist/collection/assets/icons/svg/fill/24/taobao-square.svg +0 -5
  488. package/dist/collection/assets/icons/svg/fill/24/thunderbolt.svg +0 -5
  489. package/dist/collection/assets/icons/svg/fill/24/tool.svg +0 -5
  490. package/dist/collection/assets/icons/svg/fill/24/trademark-circle.svg +0 -5
  491. package/dist/collection/assets/icons/svg/fill/24/trophy.svg +0 -5
  492. package/dist/collection/assets/icons/svg/fill/24/twitter-circle.svg +0 -5
  493. package/dist/collection/assets/icons/svg/fill/24/twitter-square.svg +0 -5
  494. package/dist/collection/assets/icons/svg/fill/24/unlock.svg +0 -5
  495. package/dist/collection/assets/icons/svg/fill/24/up-circle.svg +0 -5
  496. package/dist/collection/assets/icons/svg/fill/24/up-square.svg +0 -5
  497. package/dist/collection/assets/icons/svg/fill/24/usb.svg +0 -5
  498. package/dist/collection/assets/icons/svg/fill/24/video-camera.svg +0 -5
  499. package/dist/collection/assets/icons/svg/fill/24/wallet.svg +0 -5
  500. package/dist/collection/assets/icons/svg/fill/24/warning.svg +0 -5
  501. package/dist/collection/assets/icons/svg/fill/24/wechat.svg +0 -5
  502. package/dist/collection/assets/icons/svg/fill/24/weibo-circle.svg +0 -5
  503. package/dist/collection/assets/icons/svg/fill/24/weibo-square.svg +0 -5
  504. package/dist/collection/assets/icons/svg/fill/24/windows.svg +0 -5
  505. package/dist/collection/assets/icons/svg/fill/24/yahoo.svg +0 -5
  506. package/dist/collection/assets/icons/svg/fill/24/youtube.svg +0 -5
  507. package/dist/collection/assets/icons/svg/fill/24/yuque.svg +0 -5
  508. package/dist/collection/assets/icons/svg/fill/24/zhihu-circle.svg +0 -5
  509. package/dist/collection/assets/icons/svg/fill/24/zhihu-square.svg +0 -5
  510. package/dist/collection/assets/icons/svg/multi-color/24/account-book.svg +0 -7
  511. package/dist/collection/assets/icons/svg/multi-color/24/alert.svg +0 -6
  512. package/dist/collection/assets/icons/svg/multi-color/24/api.svg +0 -6
  513. package/dist/collection/assets/icons/svg/multi-color/24/appstore.svg +0 -6
  514. package/dist/collection/assets/icons/svg/multi-color/24/audio.svg +0 -7
  515. package/dist/collection/assets/icons/svg/multi-color/24/bank.svg +0 -6
  516. package/dist/collection/assets/icons/svg/multi-color/24/bell.svg +0 -6
  517. package/dist/collection/assets/icons/svg/multi-color/24/book.svg +0 -7
  518. package/dist/collection/assets/icons/svg/multi-color/24/box-plot.svg +0 -6
  519. package/dist/collection/assets/icons/svg/multi-color/24/bug.svg +0 -6
  520. package/dist/collection/assets/icons/svg/multi-color/24/build.svg +0 -6
  521. package/dist/collection/assets/icons/svg/multi-color/24/bulb.svg +0 -6
  522. package/dist/collection/assets/icons/svg/multi-color/24/calculator.svg +0 -7
  523. package/dist/collection/assets/icons/svg/multi-color/24/calendar.svg +0 -6
  524. package/dist/collection/assets/icons/svg/multi-color/24/camera.svg +0 -7
  525. package/dist/collection/assets/icons/svg/multi-color/24/car.svg +0 -8
  526. package/dist/collection/assets/icons/svg/multi-color/24/carry-out.svg +0 -7
  527. package/dist/collection/assets/icons/svg/multi-color/24/check-circle.svg +0 -7
  528. package/dist/collection/assets/icons/svg/multi-color/24/check-square.svg +0 -7
  529. package/dist/collection/assets/icons/svg/multi-color/24/ci.svg +0 -7
  530. package/dist/collection/assets/icons/svg/multi-color/24/clock-circle.svg +0 -7
  531. package/dist/collection/assets/icons/svg/multi-color/24/close-circle.svg +0 -7
  532. package/dist/collection/assets/icons/svg/multi-color/24/close-square.svg +0 -7
  533. package/dist/collection/assets/icons/svg/multi-color/24/cloud.svg +0 -6
  534. package/dist/collection/assets/icons/svg/multi-color/24/code.svg +0 -7
  535. package/dist/collection/assets/icons/svg/multi-color/24/compass.svg +0 -7
  536. package/dist/collection/assets/icons/svg/multi-color/24/contacts.svg +0 -8
  537. package/dist/collection/assets/icons/svg/multi-color/24/container.svg +0 -8
  538. package/dist/collection/assets/icons/svg/multi-color/24/control.svg +0 -8
  539. package/dist/collection/assets/icons/svg/multi-color/24/copy.svg +0 -7
  540. package/dist/collection/assets/icons/svg/multi-color/24/copyright.svg +0 -7
  541. package/dist/collection/assets/icons/svg/multi-color/24/credit-card.svg +0 -7
  542. package/dist/collection/assets/icons/svg/multi-color/24/crown.svg +0 -8
  543. package/dist/collection/assets/icons/svg/multi-color/24/customer-service.svg +0 -6
  544. package/dist/collection/assets/icons/svg/multi-color/24/dashboard.svg +0 -8
  545. package/dist/collection/assets/icons/svg/multi-color/24/database.svg +0 -7
  546. package/dist/collection/assets/icons/svg/multi-color/24/delete.svg +0 -6
  547. package/dist/collection/assets/icons/svg/multi-color/24/diff-1.svg +0 -8
  548. package/dist/collection/assets/icons/svg/multi-color/24/diff.svg +0 -8
  549. package/dist/collection/assets/icons/svg/multi-color/24/dislike.svg +0 -6
  550. package/dist/collection/assets/icons/svg/multi-color/24/dollar-circle.svg +0 -8
  551. package/dist/collection/assets/icons/svg/multi-color/24/down-circle.svg +0 -7
  552. package/dist/collection/assets/icons/svg/multi-color/24/down-square.svg +0 -7
  553. package/dist/collection/assets/icons/svg/multi-color/24/edit.svg +0 -6
  554. package/dist/collection/assets/icons/svg/multi-color/24/environment.svg +0 -7
  555. package/dist/collection/assets/icons/svg/multi-color/24/euro-circle.svg +0 -7
  556. package/dist/collection/assets/icons/svg/multi-color/24/exclamation-circle.svg +0 -7
  557. package/dist/collection/assets/icons/svg/multi-color/24/experiment.svg +0 -7
  558. package/dist/collection/assets/icons/svg/multi-color/24/eye-invisible.svg +0 -9
  559. package/dist/collection/assets/icons/svg/multi-color/24/eye.svg +0 -8
  560. package/dist/collection/assets/icons/svg/multi-color/24/file-add.svg +0 -7
  561. package/dist/collection/assets/icons/svg/multi-color/24/file-excel.svg +0 -7
  562. package/dist/collection/assets/icons/svg/multi-color/24/file-exclamation.svg +0 -7
  563. package/dist/collection/assets/icons/svg/multi-color/24/file-image.svg +0 -7
  564. package/dist/collection/assets/icons/svg/multi-color/24/file-markdown.svg +0 -7
  565. package/dist/collection/assets/icons/svg/multi-color/24/file-pdf.svg +0 -9
  566. package/dist/collection/assets/icons/svg/multi-color/24/file-ppt.svg +0 -8
  567. package/dist/collection/assets/icons/svg/multi-color/24/file-text.svg +0 -7
  568. package/dist/collection/assets/icons/svg/multi-color/24/file-unknown.svg +0 -7
  569. package/dist/collection/assets/icons/svg/multi-color/24/file-word.svg +0 -7
  570. package/dist/collection/assets/icons/svg/multi-color/24/file-zip.svg +0 -8
  571. package/dist/collection/assets/icons/svg/multi-color/24/file.svg +0 -6
  572. package/dist/collection/assets/icons/svg/multi-color/24/filter.svg +0 -6
  573. package/dist/collection/assets/icons/svg/multi-color/24/fire.svg +0 -6
  574. package/dist/collection/assets/icons/svg/multi-color/24/flag.svg +0 -7
  575. package/dist/collection/assets/icons/svg/multi-color/24/folder-add.svg +0 -7
  576. package/dist/collection/assets/icons/svg/multi-color/24/folder-open.svg +0 -6
  577. package/dist/collection/assets/icons/svg/multi-color/24/folder.svg +0 -6
  578. package/dist/collection/assets/icons/svg/multi-color/24/frown.svg +0 -7
  579. package/dist/collection/assets/icons/svg/multi-color/24/fund.svg +0 -7
  580. package/dist/collection/assets/icons/svg/multi-color/24/funnel-plot.svg +0 -6
  581. package/dist/collection/assets/icons/svg/multi-color/24/gift.svg +0 -6
  582. package/dist/collection/assets/icons/svg/multi-color/24/gold.svg +0 -6
  583. package/dist/collection/assets/icons/svg/multi-color/24/hdd.svg +0 -7
  584. package/dist/collection/assets/icons/svg/multi-color/24/heart.svg +0 -6
  585. package/dist/collection/assets/icons/svg/multi-color/24/highlight.svg +0 -6
  586. package/dist/collection/assets/icons/svg/multi-color/24/home.svg +0 -6
  587. package/dist/collection/assets/icons/svg/multi-color/24/hourglass.svg +0 -6
  588. package/dist/collection/assets/icons/svg/multi-color/24/html5.svg +0 -7
  589. package/dist/collection/assets/icons/svg/multi-color/24/idcard.svg +0 -8
  590. package/dist/collection/assets/icons/svg/multi-color/24/info-circle.svg +0 -7
  591. package/dist/collection/assets/icons/svg/multi-color/24/insurance.svg +0 -6
  592. package/dist/collection/assets/icons/svg/multi-color/24/interaction.svg +0 -7
  593. package/dist/collection/assets/icons/svg/multi-color/24/layout.svg +0 -6
  594. package/dist/collection/assets/icons/svg/multi-color/24/left-circle.svg +0 -7
  595. package/dist/collection/assets/icons/svg/multi-color/24/left-square.svg +0 -7
  596. package/dist/collection/assets/icons/svg/multi-color/24/like.svg +0 -6
  597. package/dist/collection/assets/icons/svg/multi-color/24/lock.svg +0 -7
  598. package/dist/collection/assets/icons/svg/multi-color/24/mail.svg +0 -7
  599. package/dist/collection/assets/icons/svg/multi-color/24/medicine-box.svg +0 -7
  600. package/dist/collection/assets/icons/svg/multi-color/24/meh.svg +0 -7
  601. package/dist/collection/assets/icons/svg/multi-color/24/message.svg +0 -8
  602. package/dist/collection/assets/icons/svg/multi-color/24/minus-circle.svg +0 -7
  603. package/dist/collection/assets/icons/svg/multi-color/24/minus-square.svg +0 -7
  604. package/dist/collection/assets/icons/svg/multi-color/24/mobile.svg +0 -7
  605. package/dist/collection/assets/icons/svg/multi-color/24/money-collect.svg +0 -7
  606. package/dist/collection/assets/icons/svg/multi-color/24/notification.svg +0 -6
  607. package/dist/collection/assets/icons/svg/multi-color/24/pause-circle.svg +0 -7
  608. package/dist/collection/assets/icons/svg/multi-color/24/phone.svg +0 -6
  609. package/dist/collection/assets/icons/svg/multi-color/24/picture.svg +0 -9
  610. package/dist/collection/assets/icons/svg/multi-color/24/pie-chart.svg +0 -9
  611. package/dist/collection/assets/icons/svg/multi-color/24/play-circle.svg +0 -7
  612. package/dist/collection/assets/icons/svg/multi-color/24/play-square.svg +0 -7
  613. package/dist/collection/assets/icons/svg/multi-color/24/plus-circle.svg +0 -7
  614. package/dist/collection/assets/icons/svg/multi-color/24/plus-square.svg +0 -7
  615. package/dist/collection/assets/icons/svg/multi-color/24/pound-circle.svg +0 -7
  616. package/dist/collection/assets/icons/svg/multi-color/24/printer.svg +0 -7
  617. package/dist/collection/assets/icons/svg/multi-color/24/profile.svg +0 -7
  618. package/dist/collection/assets/icons/svg/multi-color/24/project.svg +0 -7
  619. package/dist/collection/assets/icons/svg/multi-color/24/property-safety.svg +0 -7
  620. package/dist/collection/assets/icons/svg/multi-color/24/pushpin.svg +0 -6
  621. package/dist/collection/assets/icons/svg/multi-color/24/question-circle.svg +0 -7
  622. package/dist/collection/assets/icons/svg/multi-color/24/reconciliation.svg +0 -9
  623. package/dist/collection/assets/icons/svg/multi-color/24/red-envelope.svg +0 -8
  624. package/dist/collection/assets/icons/svg/multi-color/24/rest.svg +0 -7
  625. package/dist/collection/assets/icons/svg/multi-color/24/right-circle.svg +0 -7
  626. package/dist/collection/assets/icons/svg/multi-color/24/right-square.svg +0 -7
  627. package/dist/collection/assets/icons/svg/multi-color/24/rocket.svg +0 -7
  628. package/dist/collection/assets/icons/svg/multi-color/24/safety-certificate.svg +0 -7
  629. package/dist/collection/assets/icons/svg/multi-color/24/save.svg +0 -7
  630. package/dist/collection/assets/icons/svg/multi-color/24/schedule.svg +0 -8
  631. package/dist/collection/assets/icons/svg/multi-color/24/security-scan.svg +0 -8
  632. package/dist/collection/assets/icons/svg/multi-color/24/setting.svg +0 -8
  633. package/dist/collection/assets/icons/svg/multi-color/24/shop.svg +0 -6
  634. package/dist/collection/assets/icons/svg/multi-color/24/shopping.svg +0 -6
  635. package/dist/collection/assets/icons/svg/multi-color/24/skin.svg +0 -6
  636. package/dist/collection/assets/icons/svg/multi-color/24/sliders.svg +0 -6
  637. package/dist/collection/assets/icons/svg/multi-color/24/smile.svg +0 -7
  638. package/dist/collection/assets/icons/svg/multi-color/24/snippets.svg +0 -6
  639. package/dist/collection/assets/icons/svg/multi-color/24/sound.svg +0 -6
  640. package/dist/collection/assets/icons/svg/multi-color/24/star.svg +0 -6
  641. package/dist/collection/assets/icons/svg/multi-color/24/stop.svg +0 -6
  642. package/dist/collection/assets/icons/svg/multi-color/24/switcher.svg +0 -8
  643. package/dist/collection/assets/icons/svg/multi-color/24/tablet.svg +0 -7
  644. package/dist/collection/assets/icons/svg/multi-color/24/tag.svg +0 -7
  645. package/dist/collection/assets/icons/svg/multi-color/24/tags.svg +0 -8
  646. package/dist/collection/assets/icons/svg/multi-color/24/thunderbolt.svg +0 -6
  647. package/dist/collection/assets/icons/svg/multi-color/24/tool.svg +0 -6
  648. package/dist/collection/assets/icons/svg/multi-color/24/trademark-circle.svg +0 -8
  649. package/dist/collection/assets/icons/svg/multi-color/24/trophy.svg +0 -6
  650. package/dist/collection/assets/icons/svg/multi-color/24/unlock.svg +0 -7
  651. package/dist/collection/assets/icons/svg/multi-color/24/up-circle.svg +0 -7
  652. package/dist/collection/assets/icons/svg/multi-color/24/up-square.svg +0 -7
  653. package/dist/collection/assets/icons/svg/multi-color/24/usb.svg +0 -7
  654. package/dist/collection/assets/icons/svg/multi-color/24/video-camera.svg +0 -7
  655. package/dist/collection/assets/icons/svg/multi-color/24/wallet.svg +0 -8
  656. package/dist/collection/assets/icons/svg/multi-color/24/warning.svg +0 -7
  657. package/dist/collection/assets/icons/svg/outlined/24/account-book-1.svg +0 -5
  658. package/dist/collection/assets/icons/svg/outlined/24/alert.svg +0 -5
  659. package/dist/collection/assets/icons/svg/outlined/24/alibaba.svg +0 -5
  660. package/dist/collection/assets/icons/svg/outlined/24/align-center.svg +0 -5
  661. package/dist/collection/assets/icons/svg/outlined/24/align-left.svg +0 -5
  662. package/dist/collection/assets/icons/svg/outlined/24/align-right.svg +0 -5
  663. package/dist/collection/assets/icons/svg/outlined/24/alipay-circle.svg +0 -5
  664. package/dist/collection/assets/icons/svg/outlined/24/alipay.svg +0 -5
  665. package/dist/collection/assets/icons/svg/outlined/24/aliwangwang.svg +0 -5
  666. package/dist/collection/assets/icons/svg/outlined/24/aliyun.svg +0 -5
  667. package/dist/collection/assets/icons/svg/outlined/24/amazon.svg +0 -5
  668. package/dist/collection/assets/icons/svg/outlined/24/android.svg +0 -5
  669. package/dist/collection/assets/icons/svg/outlined/24/ant-cloud.svg +0 -5
  670. package/dist/collection/assets/icons/svg/outlined/24/ant-design.svg +0 -5
  671. package/dist/collection/assets/icons/svg/outlined/24/apartment.svg +0 -5
  672. package/dist/collection/assets/icons/svg/outlined/24/api.svg +0 -5
  673. package/dist/collection/assets/icons/svg/outlined/24/apple.svg +0 -5
  674. package/dist/collection/assets/icons/svg/outlined/24/appstore.svg +0 -5
  675. package/dist/collection/assets/icons/svg/outlined/24/area-chart.svg +0 -5
  676. package/dist/collection/assets/icons/svg/outlined/24/arrow-down.svg +0 -5
  677. package/dist/collection/assets/icons/svg/outlined/24/arrow-left.svg +0 -5
  678. package/dist/collection/assets/icons/svg/outlined/24/arrow-right.svg +0 -5
  679. package/dist/collection/assets/icons/svg/outlined/24/arrow-up.svg +0 -5
  680. package/dist/collection/assets/icons/svg/outlined/24/arrows-alt.svg +0 -5
  681. package/dist/collection/assets/icons/svg/outlined/24/audio.svg +0 -5
  682. package/dist/collection/assets/icons/svg/outlined/24/audit.svg +0 -5
  683. package/dist/collection/assets/icons/svg/outlined/24/backward.svg +0 -5
  684. package/dist/collection/assets/icons/svg/outlined/24/bank.svg +0 -5
  685. package/dist/collection/assets/icons/svg/outlined/24/bar-chart.svg +0 -5
  686. package/dist/collection/assets/icons/svg/outlined/24/barcode.svg +0 -5
  687. package/dist/collection/assets/icons/svg/outlined/24/bars.svg +0 -5
  688. package/dist/collection/assets/icons/svg/outlined/24/behance-square.svg +0 -5
  689. package/dist/collection/assets/icons/svg/outlined/24/behance.svg +0 -5
  690. package/dist/collection/assets/icons/svg/outlined/24/bell.svg +0 -5
  691. package/dist/collection/assets/icons/svg/outlined/24/bg-colors.svg +0 -5
  692. package/dist/collection/assets/icons/svg/outlined/24/block.svg +0 -5
  693. package/dist/collection/assets/icons/svg/outlined/24/bold.svg +0 -5
  694. package/dist/collection/assets/icons/svg/outlined/24/book.svg +0 -5
  695. package/dist/collection/assets/icons/svg/outlined/24/border-bottom.svg +0 -5
  696. package/dist/collection/assets/icons/svg/outlined/24/border-horizontal.svg +0 -5
  697. package/dist/collection/assets/icons/svg/outlined/24/border-inner.svg +0 -5
  698. package/dist/collection/assets/icons/svg/outlined/24/border-left.svg +0 -5
  699. package/dist/collection/assets/icons/svg/outlined/24/border-outer.svg +0 -5
  700. package/dist/collection/assets/icons/svg/outlined/24/border-right.svg +0 -5
  701. package/dist/collection/assets/icons/svg/outlined/24/border-top.svg +0 -5
  702. package/dist/collection/assets/icons/svg/outlined/24/border-verticle.svg +0 -5
  703. package/dist/collection/assets/icons/svg/outlined/24/border.svg +0 -5
  704. package/dist/collection/assets/icons/svg/outlined/24/box-plot.svg +0 -5
  705. package/dist/collection/assets/icons/svg/outlined/24/branches.svg +0 -5
  706. package/dist/collection/assets/icons/svg/outlined/24/bug.svg +0 -6
  707. package/dist/collection/assets/icons/svg/outlined/24/build.svg +0 -5
  708. package/dist/collection/assets/icons/svg/outlined/24/bulb.svg +0 -5
  709. package/dist/collection/assets/icons/svg/outlined/24/calculator.svg +0 -5
  710. package/dist/collection/assets/icons/svg/outlined/24/calendar.svg +0 -5
  711. package/dist/collection/assets/icons/svg/outlined/24/camera.svg +0 -5
  712. package/dist/collection/assets/icons/svg/outlined/24/car.svg +0 -5
  713. package/dist/collection/assets/icons/svg/outlined/24/caret-down.svg +0 -5
  714. package/dist/collection/assets/icons/svg/outlined/24/caret-left.svg +0 -5
  715. package/dist/collection/assets/icons/svg/outlined/24/caret-right.svg +0 -5
  716. package/dist/collection/assets/icons/svg/outlined/24/caret-up.svg +0 -5
  717. package/dist/collection/assets/icons/svg/outlined/24/carry-out.svg +0 -5
  718. package/dist/collection/assets/icons/svg/outlined/24/check-circle.svg +0 -6
  719. package/dist/collection/assets/icons/svg/outlined/24/check-square.svg +0 -6
  720. package/dist/collection/assets/icons/svg/outlined/24/check.svg +0 -5
  721. package/dist/collection/assets/icons/svg/outlined/24/chrome.svg +0 -5
  722. package/dist/collection/assets/icons/svg/outlined/24/ci.svg +0 -5
  723. package/dist/collection/assets/icons/svg/outlined/24/clock-circle.svg +0 -6
  724. package/dist/collection/assets/icons/svg/outlined/24/close-circle.svg +0 -6
  725. package/dist/collection/assets/icons/svg/outlined/24/close-panel.svg +0 -5
  726. package/dist/collection/assets/icons/svg/outlined/24/close-square.svg +0 -6
  727. package/dist/collection/assets/icons/svg/outlined/24/close.svg +0 -6
  728. package/dist/collection/assets/icons/svg/outlined/24/cloud-download.svg +0 -6
  729. package/dist/collection/assets/icons/svg/outlined/24/cloud-server.svg +0 -7
  730. package/dist/collection/assets/icons/svg/outlined/24/cloud-sync.svg +0 -6
  731. package/dist/collection/assets/icons/svg/outlined/24/cloud-upload.svg +0 -6
  732. package/dist/collection/assets/icons/svg/outlined/24/cloud.svg +0 -5
  733. package/dist/collection/assets/icons/svg/outlined/24/cluster.svg +0 -5
  734. package/dist/collection/assets/icons/svg/outlined/24/code-sandbox.svg +0 -5
  735. package/dist/collection/assets/icons/svg/outlined/24/code.svg +0 -5
  736. package/dist/collection/assets/icons/svg/outlined/24/codepen-circle.svg +0 -5
  737. package/dist/collection/assets/icons/svg/outlined/24/codepen.svg +0 -5
  738. package/dist/collection/assets/icons/svg/outlined/24/coffee.svg +0 -5
  739. package/dist/collection/assets/icons/svg/outlined/24/colum-height.svg +0 -5
  740. package/dist/collection/assets/icons/svg/outlined/24/column-width.svg +0 -5
  741. package/dist/collection/assets/icons/svg/outlined/24/compass.svg +0 -5
  742. package/dist/collection/assets/icons/svg/outlined/24/contacts.svg +0 -5
  743. package/dist/collection/assets/icons/svg/outlined/24/container.svg +0 -5
  744. package/dist/collection/assets/icons/svg/outlined/24/control.svg +0 -5
  745. package/dist/collection/assets/icons/svg/outlined/24/copy.svg +0 -5
  746. package/dist/collection/assets/icons/svg/outlined/24/copyright.svg +0 -5
  747. package/dist/collection/assets/icons/svg/outlined/24/credit-card.svg +0 -5
  748. package/dist/collection/assets/icons/svg/outlined/24/crown.svg +0 -5
  749. package/dist/collection/assets/icons/svg/outlined/24/customer-service.svg +0 -5
  750. package/dist/collection/assets/icons/svg/outlined/24/dash.svg +0 -5
  751. package/dist/collection/assets/icons/svg/outlined/24/dashboard.svg +0 -5
  752. package/dist/collection/assets/icons/svg/outlined/24/database.svg +0 -5
  753. package/dist/collection/assets/icons/svg/outlined/24/delete.svg +0 -5
  754. package/dist/collection/assets/icons/svg/outlined/24/deployment-unit.svg +0 -5
  755. package/dist/collection/assets/icons/svg/outlined/24/desktop.svg +0 -5
  756. package/dist/collection/assets/icons/svg/outlined/24/diff.svg +0 -5
  757. package/dist/collection/assets/icons/svg/outlined/24/dingding.svg +0 -5
  758. package/dist/collection/assets/icons/svg/outlined/24/disconnect.svg +0 -5
  759. package/dist/collection/assets/icons/svg/outlined/24/dislike.svg +0 -5
  760. package/dist/collection/assets/icons/svg/outlined/24/dollar.svg +0 -5
  761. package/dist/collection/assets/icons/svg/outlined/24/dot-chart.svg +0 -5
  762. package/dist/collection/assets/icons/svg/outlined/24/double-left.svg +0 -5
  763. package/dist/collection/assets/icons/svg/outlined/24/double-right.svg +0 -5
  764. package/dist/collection/assets/icons/svg/outlined/24/down-circle.svg +0 -6
  765. package/dist/collection/assets/icons/svg/outlined/24/down-square.svg +0 -6
  766. package/dist/collection/assets/icons/svg/outlined/24/down.svg +0 -5
  767. package/dist/collection/assets/icons/svg/outlined/24/download.svg +0 -5
  768. package/dist/collection/assets/icons/svg/outlined/24/drag.svg +0 -5
  769. package/dist/collection/assets/icons/svg/outlined/24/dribbble-square.svg +0 -5
  770. package/dist/collection/assets/icons/svg/outlined/24/dribbble.svg +0 -5
  771. package/dist/collection/assets/icons/svg/outlined/24/dropbox.svg +0 -5
  772. package/dist/collection/assets/icons/svg/outlined/24/edit.svg +0 -5
  773. package/dist/collection/assets/icons/svg/outlined/24/ellipsis.svg +0 -5
  774. package/dist/collection/assets/icons/svg/outlined/24/enter.svg +0 -5
  775. package/dist/collection/assets/icons/svg/outlined/24/environment.svg +0 -5
  776. package/dist/collection/assets/icons/svg/outlined/24/euro.svg +0 -5
  777. package/dist/collection/assets/icons/svg/outlined/24/exception.svg +0 -5
  778. package/dist/collection/assets/icons/svg/outlined/24/exclamation-circle.svg +0 -6
  779. package/dist/collection/assets/icons/svg/outlined/24/exclamation.svg +0 -5
  780. package/dist/collection/assets/icons/svg/outlined/24/experiment.svg +0 -5
  781. package/dist/collection/assets/icons/svg/outlined/24/export.svg +0 -5
  782. package/dist/collection/assets/icons/svg/outlined/24/eye-invisible.svg +0 -6
  783. package/dist/collection/assets/icons/svg/outlined/24/eye.svg +0 -5
  784. package/dist/collection/assets/icons/svg/outlined/24/facebook.svg +0 -5
  785. package/dist/collection/assets/icons/svg/outlined/24/fall.svg +0 -5
  786. package/dist/collection/assets/icons/svg/outlined/24/fast-backward.svg +0 -5
  787. package/dist/collection/assets/icons/svg/outlined/24/fast-forward.svg +0 -5
  788. package/dist/collection/assets/icons/svg/outlined/24/file-add.svg +0 -5
  789. package/dist/collection/assets/icons/svg/outlined/24/file-done.svg +0 -5
  790. package/dist/collection/assets/icons/svg/outlined/24/file-excel.svg +0 -5
  791. package/dist/collection/assets/icons/svg/outlined/24/file-excel2.svg +0 -8
  792. package/dist/collection/assets/icons/svg/outlined/24/file-exclamation.svg +0 -5
  793. package/dist/collection/assets/icons/svg/outlined/24/file-image.svg +0 -5
  794. package/dist/collection/assets/icons/svg/outlined/24/file-jpg.svg +0 -5
  795. package/dist/collection/assets/icons/svg/outlined/24/file-markdown.svg +0 -5
  796. package/dist/collection/assets/icons/svg/outlined/24/file-pdf.svg +0 -5
  797. package/dist/collection/assets/icons/svg/outlined/24/file-ppt.svg +0 -5
  798. package/dist/collection/assets/icons/svg/outlined/24/file-protect.svg +0 -5
  799. package/dist/collection/assets/icons/svg/outlined/24/file-search.svg +0 -5
  800. package/dist/collection/assets/icons/svg/outlined/24/file-sync.svg +0 -5
  801. package/dist/collection/assets/icons/svg/outlined/24/file-text.svg +0 -5
  802. package/dist/collection/assets/icons/svg/outlined/24/file-unknown.svg +0 -5
  803. package/dist/collection/assets/icons/svg/outlined/24/file-word.svg +0 -5
  804. package/dist/collection/assets/icons/svg/outlined/24/file-zip.svg +0 -5
  805. package/dist/collection/assets/icons/svg/outlined/24/file.svg +0 -5
  806. package/dist/collection/assets/icons/svg/outlined/24/filter.svg +0 -5
  807. package/dist/collection/assets/icons/svg/outlined/24/fire.svg +0 -5
  808. package/dist/collection/assets/icons/svg/outlined/24/flag.svg +0 -5
  809. package/dist/collection/assets/icons/svg/outlined/24/folder-add.svg +0 -5
  810. package/dist/collection/assets/icons/svg/outlined/24/folder-open.svg +0 -5
  811. package/dist/collection/assets/icons/svg/outlined/24/folder.svg +0 -5
  812. package/dist/collection/assets/icons/svg/outlined/24/font-colors.svg +0 -5
  813. package/dist/collection/assets/icons/svg/outlined/24/font-size.svg +0 -5
  814. package/dist/collection/assets/icons/svg/outlined/24/fork.svg +0 -5
  815. package/dist/collection/assets/icons/svg/outlined/24/form.svg +0 -6
  816. package/dist/collection/assets/icons/svg/outlined/24/forward.svg +0 -5
  817. package/dist/collection/assets/icons/svg/outlined/24/frown.svg +0 -5
  818. package/dist/collection/assets/icons/svg/outlined/24/fullscreen-exit.svg +0 -5
  819. package/dist/collection/assets/icons/svg/outlined/24/fullscreen.svg +0 -5
  820. package/dist/collection/assets/icons/svg/outlined/24/fund.svg +0 -5
  821. package/dist/collection/assets/icons/svg/outlined/24/funnel-plot.svg +0 -5
  822. package/dist/collection/assets/icons/svg/outlined/24/gateway.svg +0 -5
  823. package/dist/collection/assets/icons/svg/outlined/24/gift.svg +0 -5
  824. package/dist/collection/assets/icons/svg/outlined/24/github.svg +0 -5
  825. package/dist/collection/assets/icons/svg/outlined/24/gitlab.svg +0 -5
  826. package/dist/collection/assets/icons/svg/outlined/24/global.svg +0 -5
  827. package/dist/collection/assets/icons/svg/outlined/24/gold.svg +0 -5
  828. package/dist/collection/assets/icons/svg/outlined/24/google-plus.svg +0 -5
  829. package/dist/collection/assets/icons/svg/outlined/24/google.svg +0 -5
  830. package/dist/collection/assets/icons/svg/outlined/24/hdd.svg +0 -5
  831. package/dist/collection/assets/icons/svg/outlined/24/heart.svg +0 -5
  832. package/dist/collection/assets/icons/svg/outlined/24/heat-map.svg +0 -5
  833. package/dist/collection/assets/icons/svg/outlined/24/highlight.svg +0 -5
  834. package/dist/collection/assets/icons/svg/outlined/24/history.svg +0 -5
  835. package/dist/collection/assets/icons/svg/outlined/24/home.svg +0 -5
  836. package/dist/collection/assets/icons/svg/outlined/24/hourglass.svg +0 -5
  837. package/dist/collection/assets/icons/svg/outlined/24/html5.svg +0 -5
  838. package/dist/collection/assets/icons/svg/outlined/24/idcard.svg +0 -5
  839. package/dist/collection/assets/icons/svg/outlined/24/ie.svg +0 -5
  840. package/dist/collection/assets/icons/svg/outlined/24/import.svg +0 -5
  841. package/dist/collection/assets/icons/svg/outlined/24/inbox.svg +0 -5
  842. package/dist/collection/assets/icons/svg/outlined/24/info-circle.svg +0 -6
  843. package/dist/collection/assets/icons/svg/outlined/24/info.svg +0 -5
  844. package/dist/collection/assets/icons/svg/outlined/24/instagram.svg +0 -5
  845. package/dist/collection/assets/icons/svg/outlined/24/insurance.svg +0 -5
  846. package/dist/collection/assets/icons/svg/outlined/24/interation.svg +0 -5
  847. package/dist/collection/assets/icons/svg/outlined/24/issues-close.svg +0 -5
  848. package/dist/collection/assets/icons/svg/outlined/24/italic.svg +0 -5
  849. package/dist/collection/assets/icons/svg/outlined/24/key.svg +0 -5
  850. package/dist/collection/assets/icons/svg/outlined/24/laptop.svg +0 -5
  851. package/dist/collection/assets/icons/svg/outlined/24/layout.svg +0 -5
  852. package/dist/collection/assets/icons/svg/outlined/24/left-circle.svg +0 -6
  853. package/dist/collection/assets/icons/svg/outlined/24/left-square.svg +0 -6
  854. package/dist/collection/assets/icons/svg/outlined/24/left.svg +0 -5
  855. package/dist/collection/assets/icons/svg/outlined/24/like.svg +0 -5
  856. package/dist/collection/assets/icons/svg/outlined/24/line-chart.svg +0 -5
  857. package/dist/collection/assets/icons/svg/outlined/24/line-height.svg +0 -5
  858. package/dist/collection/assets/icons/svg/outlined/24/line.svg +0 -5
  859. package/dist/collection/assets/icons/svg/outlined/24/link.svg +0 -5
  860. package/dist/collection/assets/icons/svg/outlined/24/linkedin.svg +0 -5
  861. package/dist/collection/assets/icons/svg/outlined/24/loading-3-quarters.svg +0 -5
  862. package/dist/collection/assets/icons/svg/outlined/24/loading.svg +0 -5
  863. package/dist/collection/assets/icons/svg/outlined/24/lock.svg +0 -5
  864. package/dist/collection/assets/icons/svg/outlined/24/login.svg +0 -5
  865. package/dist/collection/assets/icons/svg/outlined/24/logout.svg +0 -5
  866. package/dist/collection/assets/icons/svg/outlined/24/mail.svg +0 -5
  867. package/dist/collection/assets/icons/svg/outlined/24/man.svg +0 -5
  868. package/dist/collection/assets/icons/svg/outlined/24/medicine-box.svg +0 -5
  869. package/dist/collection/assets/icons/svg/outlined/24/medium-workmark.svg +0 -10
  870. package/dist/collection/assets/icons/svg/outlined/24/medium.svg +0 -5
  871. package/dist/collection/assets/icons/svg/outlined/24/meh.svg +0 -5
  872. package/dist/collection/assets/icons/svg/outlined/24/menu-fold.svg +0 -5
  873. package/dist/collection/assets/icons/svg/outlined/24/menu-unfold.svg +0 -5
  874. package/dist/collection/assets/icons/svg/outlined/24/menu.svg +0 -5
  875. package/dist/collection/assets/icons/svg/outlined/24/message.svg +0 -5
  876. package/dist/collection/assets/icons/svg/outlined/24/minus-circle.svg +0 -6
  877. package/dist/collection/assets/icons/svg/outlined/24/minus-square.svg +0 -6
  878. package/dist/collection/assets/icons/svg/outlined/24/minus.svg +0 -5
  879. package/dist/collection/assets/icons/svg/outlined/24/mobile.svg +0 -5
  880. package/dist/collection/assets/icons/svg/outlined/24/money-collect.svg +0 -5
  881. package/dist/collection/assets/icons/svg/outlined/24/monitor.svg +0 -5
  882. package/dist/collection/assets/icons/svg/outlined/24/more.svg +0 -5
  883. package/dist/collection/assets/icons/svg/outlined/24/notification.svg +0 -5
  884. package/dist/collection/assets/icons/svg/outlined/24/number.svg +0 -5
  885. package/dist/collection/assets/icons/svg/outlined/24/open-panel.svg +0 -5
  886. package/dist/collection/assets/icons/svg/outlined/24/ordered-list.svg +0 -5
  887. package/dist/collection/assets/icons/svg/outlined/24/paper-clip.svg +0 -5
  888. package/dist/collection/assets/icons/svg/outlined/24/pause-circle.svg +0 -5
  889. package/dist/collection/assets/icons/svg/outlined/24/pause.svg +0 -5
  890. package/dist/collection/assets/icons/svg/outlined/24/pay-circle.svg +0 -5
  891. package/dist/collection/assets/icons/svg/outlined/24/percentage.svg +0 -5
  892. package/dist/collection/assets/icons/svg/outlined/24/phone.svg +0 -5
  893. package/dist/collection/assets/icons/svg/outlined/24/pic-center.svg +0 -5
  894. package/dist/collection/assets/icons/svg/outlined/24/pic-left.svg +0 -5
  895. package/dist/collection/assets/icons/svg/outlined/24/pic-right.svg +0 -5
  896. package/dist/collection/assets/icons/svg/outlined/24/picture.svg +0 -5
  897. package/dist/collection/assets/icons/svg/outlined/24/pie-chart.svg +0 -5
  898. package/dist/collection/assets/icons/svg/outlined/24/play-circle.svg +0 -6
  899. package/dist/collection/assets/icons/svg/outlined/24/play-square.svg +0 -6
  900. package/dist/collection/assets/icons/svg/outlined/24/plus-circle.svg +0 -6
  901. package/dist/collection/assets/icons/svg/outlined/24/plus-square.svg +0 -6
  902. package/dist/collection/assets/icons/svg/outlined/24/plus.svg +0 -6
  903. package/dist/collection/assets/icons/svg/outlined/24/pound.svg +0 -5
  904. package/dist/collection/assets/icons/svg/outlined/24/poweroff.svg +0 -5
  905. package/dist/collection/assets/icons/svg/outlined/24/printer.svg +0 -5
  906. package/dist/collection/assets/icons/svg/outlined/24/profile.svg +0 -5
  907. package/dist/collection/assets/icons/svg/outlined/24/project.svg +0 -5
  908. package/dist/collection/assets/icons/svg/outlined/24/property-safety.svg +0 -5
  909. package/dist/collection/assets/icons/svg/outlined/24/pull-request.svg +0 -5
  910. package/dist/collection/assets/icons/svg/outlined/24/pushpin.svg +0 -5
  911. package/dist/collection/assets/icons/svg/outlined/24/qq.svg +0 -5
  912. package/dist/collection/assets/icons/svg/outlined/24/qrcode.svg +0 -5
  913. package/dist/collection/assets/icons/svg/outlined/24/question-circle.svg +0 -6
  914. package/dist/collection/assets/icons/svg/outlined/24/question.svg +0 -5
  915. package/dist/collection/assets/icons/svg/outlined/24/radar-chart.svg +0 -5
  916. package/dist/collection/assets/icons/svg/outlined/24/radius-bottomleft.svg +0 -5
  917. package/dist/collection/assets/icons/svg/outlined/24/radius-bottomright.svg +0 -5
  918. package/dist/collection/assets/icons/svg/outlined/24/radius-setting.svg +0 -5
  919. package/dist/collection/assets/icons/svg/outlined/24/radius-upleft.svg +0 -5
  920. package/dist/collection/assets/icons/svg/outlined/24/radius-upright.svg +0 -5
  921. package/dist/collection/assets/icons/svg/outlined/24/read.svg +0 -5
  922. package/dist/collection/assets/icons/svg/outlined/24/reconciliation.svg +0 -5
  923. package/dist/collection/assets/icons/svg/outlined/24/red-envelope.svg +0 -5
  924. package/dist/collection/assets/icons/svg/outlined/24/reddit.svg +0 -5
  925. package/dist/collection/assets/icons/svg/outlined/24/redo.svg +0 -5
  926. package/dist/collection/assets/icons/svg/outlined/24/reload.svg +0 -5
  927. package/dist/collection/assets/icons/svg/outlined/24/rest.svg +0 -6
  928. package/dist/collection/assets/icons/svg/outlined/24/retweet.svg +0 -5
  929. package/dist/collection/assets/icons/svg/outlined/24/right-circle.svg +0 -6
  930. package/dist/collection/assets/icons/svg/outlined/24/right-square.svg +0 -6
  931. package/dist/collection/assets/icons/svg/outlined/24/right.svg +0 -5
  932. package/dist/collection/assets/icons/svg/outlined/24/rise.svg +0 -5
  933. package/dist/collection/assets/icons/svg/outlined/24/robot.svg +0 -5
  934. package/dist/collection/assets/icons/svg/outlined/24/rocket.svg +0 -5
  935. package/dist/collection/assets/icons/svg/outlined/24/rollback.svg +0 -5
  936. package/dist/collection/assets/icons/svg/outlined/24/safety-certificate.svg +0 -5
  937. package/dist/collection/assets/icons/svg/outlined/24/safety.svg +0 -6
  938. package/dist/collection/assets/icons/svg/outlined/24/save.svg +0 -5
  939. package/dist/collection/assets/icons/svg/outlined/24/scan.svg +0 -5
  940. package/dist/collection/assets/icons/svg/outlined/24/schedule.svg +0 -5
  941. package/dist/collection/assets/icons/svg/outlined/24/scissor.svg +0 -5
  942. package/dist/collection/assets/icons/svg/outlined/24/search.svg +0 -5
  943. package/dist/collection/assets/icons/svg/outlined/24/security-scan.svg +0 -5
  944. package/dist/collection/assets/icons/svg/outlined/24/select.svg +0 -5
  945. package/dist/collection/assets/icons/svg/outlined/24/send.svg +0 -3
  946. package/dist/collection/assets/icons/svg/outlined/24/setting.svg +0 -5
  947. package/dist/collection/assets/icons/svg/outlined/24/shake.svg +0 -5
  948. package/dist/collection/assets/icons/svg/outlined/24/share-alt.svg +0 -5
  949. package/dist/collection/assets/icons/svg/outlined/24/shop.svg +0 -5
  950. package/dist/collection/assets/icons/svg/outlined/24/shopping-cart.svg +0 -5
  951. package/dist/collection/assets/icons/svg/outlined/24/shopping.svg +0 -5
  952. package/dist/collection/assets/icons/svg/outlined/24/shrink.svg +0 -5
  953. package/dist/collection/assets/icons/svg/outlined/24/sketch.svg +0 -5
  954. package/dist/collection/assets/icons/svg/outlined/24/skin.svg +0 -5
  955. package/dist/collection/assets/icons/svg/outlined/24/skype.svg +0 -5
  956. package/dist/collection/assets/icons/svg/outlined/24/slack-square.svg +0 -5
  957. package/dist/collection/assets/icons/svg/outlined/24/slack.svg +0 -5
  958. package/dist/collection/assets/icons/svg/outlined/24/sliders.svg +0 -5
  959. package/dist/collection/assets/icons/svg/outlined/24/small-dash.svg +0 -5
  960. package/dist/collection/assets/icons/svg/outlined/24/smile.svg +0 -5
  961. package/dist/collection/assets/icons/svg/outlined/24/snippets.svg +0 -5
  962. package/dist/collection/assets/icons/svg/outlined/24/solution.svg +0 -5
  963. package/dist/collection/assets/icons/svg/outlined/24/sort-ascending.svg +0 -5
  964. package/dist/collection/assets/icons/svg/outlined/24/sort-descending.svg +0 -5
  965. package/dist/collection/assets/icons/svg/outlined/24/sound.svg +0 -5
  966. package/dist/collection/assets/icons/svg/outlined/24/star.svg +0 -5
  967. package/dist/collection/assets/icons/svg/outlined/24/step-backward.svg +0 -5
  968. package/dist/collection/assets/icons/svg/outlined/24/step-forward.svg +0 -5
  969. package/dist/collection/assets/icons/svg/outlined/24/stock.svg +0 -5
  970. package/dist/collection/assets/icons/svg/outlined/24/stop.svg +0 -5
  971. package/dist/collection/assets/icons/svg/outlined/24/strikethrough.svg +0 -5
  972. package/dist/collection/assets/icons/svg/outlined/24/swap-left.svg +0 -5
  973. package/dist/collection/assets/icons/svg/outlined/24/swap-right.svg +0 -5
  974. package/dist/collection/assets/icons/svg/outlined/24/swap.svg +0 -5
  975. package/dist/collection/assets/icons/svg/outlined/24/switcher.svg +0 -5
  976. package/dist/collection/assets/icons/svg/outlined/24/sync.svg +0 -5
  977. package/dist/collection/assets/icons/svg/outlined/24/table.svg +0 -5
  978. package/dist/collection/assets/icons/svg/outlined/24/tablet.svg +0 -5
  979. package/dist/collection/assets/icons/svg/outlined/24/tag.svg +0 -5
  980. package/dist/collection/assets/icons/svg/outlined/24/tags.svg +0 -5
  981. package/dist/collection/assets/icons/svg/outlined/24/taobao-circle.svg +0 -5
  982. package/dist/collection/assets/icons/svg/outlined/24/taobao.svg +0 -5
  983. package/dist/collection/assets/icons/svg/outlined/24/team.svg +0 -5
  984. package/dist/collection/assets/icons/svg/outlined/24/thunderbolt.svg +0 -5
  985. package/dist/collection/assets/icons/svg/outlined/24/to-top.svg +0 -5
  986. package/dist/collection/assets/icons/svg/outlined/24/tool.svg +0 -5
  987. package/dist/collection/assets/icons/svg/outlined/24/trademark.svg +0 -5
  988. package/dist/collection/assets/icons/svg/outlined/24/transaction.svg +0 -5
  989. package/dist/collection/assets/icons/svg/outlined/24/trophy.svg +0 -5
  990. package/dist/collection/assets/icons/svg/outlined/24/twitter.svg +0 -5
  991. package/dist/collection/assets/icons/svg/outlined/24/underline.svg +0 -5
  992. package/dist/collection/assets/icons/svg/outlined/24/undo.svg +0 -5
  993. package/dist/collection/assets/icons/svg/outlined/24/unlock.svg +0 -5
  994. package/dist/collection/assets/icons/svg/outlined/24/unordered-list.svg +0 -5
  995. package/dist/collection/assets/icons/svg/outlined/24/up-circle.svg +0 -6
  996. package/dist/collection/assets/icons/svg/outlined/24/up-square.svg +0 -6
  997. package/dist/collection/assets/icons/svg/outlined/24/up.svg +0 -5
  998. package/dist/collection/assets/icons/svg/outlined/24/upload.svg +0 -5
  999. package/dist/collection/assets/icons/svg/outlined/24/usb.svg +0 -5
  1000. package/dist/collection/assets/icons/svg/outlined/24/user-add.svg +0 -5
  1001. package/dist/collection/assets/icons/svg/outlined/24/user-delete.svg +0 -5
  1002. package/dist/collection/assets/icons/svg/outlined/24/user.svg +0 -5
  1003. package/dist/collection/assets/icons/svg/outlined/24/usergroup-add.svg +0 -5
  1004. package/dist/collection/assets/icons/svg/outlined/24/usergroup-delete.svg +0 -5
  1005. package/dist/collection/assets/icons/svg/outlined/24/vertical-align-bottom.svg +0 -5
  1006. package/dist/collection/assets/icons/svg/outlined/24/vertical-align-middle.svg +0 -5
  1007. package/dist/collection/assets/icons/svg/outlined/24/vertical-align-top.svg +0 -5
  1008. package/dist/collection/assets/icons/svg/outlined/24/vertical-left.svg +0 -5
  1009. package/dist/collection/assets/icons/svg/outlined/24/vertical-right.svg +0 -5
  1010. package/dist/collection/assets/icons/svg/outlined/24/video-camera.svg +0 -5
  1011. package/dist/collection/assets/icons/svg/outlined/24/wallet.svg +0 -5
  1012. package/dist/collection/assets/icons/svg/outlined/24/warning.svg +0 -5
  1013. package/dist/collection/assets/icons/svg/outlined/24/wechat.svg +0 -5
  1014. package/dist/collection/assets/icons/svg/outlined/24/weibo-circle.svg +0 -5
  1015. package/dist/collection/assets/icons/svg/outlined/24/weibo-square.svg +0 -5
  1016. package/dist/collection/assets/icons/svg/outlined/24/weibo.svg +0 -5
  1017. package/dist/collection/assets/icons/svg/outlined/24/wifi.svg +0 -5
  1018. package/dist/collection/assets/icons/svg/outlined/24/windows.svg +0 -5
  1019. package/dist/collection/assets/icons/svg/outlined/24/woman.svg +0 -5
  1020. package/dist/collection/assets/icons/svg/outlined/24/yahoo.svg +0 -5
  1021. package/dist/collection/assets/icons/svg/outlined/24/youtube.svg +0 -5
  1022. package/dist/collection/assets/icons/svg/outlined/24/yuque.svg +0 -5
  1023. package/dist/collection/assets/icons/svg/outlined/24/zhihu.svg +0 -5
  1024. package/dist/collection/assets/icons/svg/outlined/24/zoom-in.svg +0 -5
  1025. package/dist/collection/assets/icons/svg/outlined/24/zoom-out.svg +0 -5
  1026. package/dist/collection/bromcom.js +0 -42
  1027. package/dist/collection/collection-manifest.json +0 -95
  1028. package/dist/collection/components/atoms/avatar/avatar.css +0 -109
  1029. package/dist/collection/components/atoms/avatar/avatar.js +0 -200
  1030. package/dist/collection/components/atoms/badge/badge.css +0 -129
  1031. package/dist/collection/components/atoms/badge/badge.js +0 -167
  1032. package/dist/collection/components/atoms/badge/types.js +0 -1
  1033. package/dist/collection/components/atoms/button/button.js +0 -372
  1034. package/dist/collection/components/atoms/button/buttons.css +0 -508
  1035. package/dist/collection/components/atoms/button/types.js +0 -176
  1036. package/dist/collection/components/atoms/divider/divider.css +0 -80
  1037. package/dist/collection/components/atoms/divider/divider.js +0 -82
  1038. package/dist/collection/components/atoms/icon/icon.css +0 -121
  1039. package/dist/collection/components/atoms/icon/icon.js +0 -311
  1040. package/dist/collection/components/atoms/icon/types.js +0 -11
  1041. package/dist/collection/components/atoms/link/link.css +0 -81
  1042. package/dist/collection/components/atoms/link/link.js +0 -93
  1043. package/dist/collection/components/atoms/tag/tag.css +0 -235
  1044. package/dist/collection/components/atoms/tag/tag.js +0 -311
  1045. package/dist/collection/components/atoms/tag/types.js +0 -26
  1046. package/dist/collection/components/atoms/text/text.css +0 -122
  1047. package/dist/collection/components/atoms/text/text.js +0 -101
  1048. package/dist/collection/components/molecules/alert/alert.css +0 -145
  1049. package/dist/collection/components/molecules/alert/alert.js +0 -268
  1050. package/dist/collection/components/molecules/breadcrumb/breadcrumb.css +0 -140
  1051. package/dist/collection/components/molecules/breadcrumb/breadcrumb.js +0 -129
  1052. package/dist/collection/components/molecules/card/card-footer.js +0 -8
  1053. package/dist/collection/components/molecules/card/card-header.js +0 -8
  1054. package/dist/collection/components/molecules/card/card.css +0 -90
  1055. package/dist/collection/components/molecules/card/card.js +0 -84
  1056. package/dist/collection/components/molecules/checkbox/checkbox-lite.js +0 -248
  1057. package/dist/collection/components/molecules/checkbox/checkbox.css +0 -322
  1058. package/dist/collection/components/molecules/checkbox/checkbox.js +0 -511
  1059. package/dist/collection/components/molecules/checkbox/group.css +0 -190
  1060. package/dist/collection/components/molecules/checkbox/group.js +0 -750
  1061. package/dist/collection/components/molecules/checkbox/types.js +0 -26
  1062. package/dist/collection/components/molecules/collapse/collapse.css +0 -119
  1063. package/dist/collection/components/molecules/collapse/collapse.js +0 -154
  1064. package/dist/collection/components/molecules/collapse/group.js +0 -123
  1065. package/dist/collection/components/molecules/comment/comment-editor.css +0 -77
  1066. package/dist/collection/components/molecules/comment/comment-editor.js +0 -141
  1067. package/dist/collection/components/molecules/comment/comment-group.css +0 -71
  1068. package/dist/collection/components/molecules/comment/comment-group.js +0 -66
  1069. package/dist/collection/components/molecules/comment/comment.css +0 -125
  1070. package/dist/collection/components/molecules/comment/comment.js +0 -318
  1071. package/dist/collection/components/molecules/comment/sub-comment.css +0 -105
  1072. package/dist/collection/components/molecules/comment/sub-comment.js +0 -272
  1073. package/dist/collection/components/molecules/comment/types.js +0 -8
  1074. package/dist/collection/components/molecules/dropdown/dropdown-button.css +0 -312
  1075. package/dist/collection/components/molecules/dropdown/dropdown-button.js +0 -364
  1076. package/dist/collection/components/molecules/dropdown/dropdown-group.css +0 -166
  1077. package/dist/collection/components/molecules/dropdown/dropdown-group.js +0 -203
  1078. package/dist/collection/components/molecules/dropdown/dropdown-item.css +0 -115
  1079. package/dist/collection/components/molecules/dropdown/dropdown-item.js +0 -186
  1080. package/dist/collection/components/molecules/dropdown/dropdown-list.css +0 -64
  1081. package/dist/collection/components/molecules/dropdown/dropdown-list.js +0 -143
  1082. package/dist/collection/components/molecules/dropdown/dropdown.css +0 -97
  1083. package/dist/collection/components/molecules/dropdown/dropdown.js +0 -226
  1084. package/dist/collection/components/molecules/dropdown/types.js +0 -12
  1085. package/dist/collection/components/molecules/empty/empty.css +0 -87
  1086. package/dist/collection/components/molecules/empty/empty.js +0 -143
  1087. package/dist/collection/components/molecules/empty/static/default.svg +0 -5
  1088. package/dist/collection/components/molecules/empty/static/simple.svg +0 -9
  1089. package/dist/collection/components/molecules/empty/types.js +0 -17
  1090. package/dist/collection/components/molecules/error-layout/error-layout.css +0 -66
  1091. package/dist/collection/components/molecules/error-layout/error-layout.js +0 -162
  1092. package/dist/collection/components/molecules/error-layout/types.js +0 -1
  1093. package/dist/collection/components/molecules/input/input.css +0 -368
  1094. package/dist/collection/components/molecules/input/input.js +0 -1114
  1095. package/dist/collection/components/molecules/list/list-item.css +0 -303
  1096. package/dist/collection/components/molecules/list/list-item.js +0 -357
  1097. package/dist/collection/components/molecules/list/list-select.css +0 -448
  1098. package/dist/collection/components/molecules/list/list-select.js +0 -1141
  1099. package/dist/collection/components/molecules/list/list.css +0 -220
  1100. package/dist/collection/components/molecules/list/list.js +0 -2183
  1101. package/dist/collection/components/molecules/list/types.js +0 -1
  1102. package/dist/collection/components/molecules/message/message.css +0 -98
  1103. package/dist/collection/components/molecules/message/message.js +0 -208
  1104. package/dist/collection/components/molecules/message/types.js +0 -10
  1105. package/dist/collection/components/molecules/modal/modal-content.js +0 -34
  1106. package/dist/collection/components/molecules/modal/modal-header.js +0 -34
  1107. package/dist/collection/components/molecules/modal/modal.css +0 -204
  1108. package/dist/collection/components/molecules/modal/modal.js +0 -467
  1109. package/dist/collection/components/molecules/modal/model-footer.js +0 -34
  1110. package/dist/collection/components/molecules/modal/types.js +0 -28
  1111. package/dist/collection/components/molecules/notification/notification.css +0 -116
  1112. package/dist/collection/components/molecules/notification/notification.js +0 -230
  1113. package/dist/collection/components/molecules/notification/types.js +0 -11
  1114. package/dist/collection/components/molecules/popconfirm/popconfirm-box.css +0 -207
  1115. package/dist/collection/components/molecules/popconfirm/popconfirm-box.js +0 -234
  1116. package/dist/collection/components/molecules/popconfirm/popconfirm.css +0 -207
  1117. package/dist/collection/components/molecules/popconfirm/popconfirm.js +0 -389
  1118. package/dist/collection/components/molecules/popover/popover-box.css +0 -203
  1119. package/dist/collection/components/molecules/popover/popover-box.js +0 -146
  1120. package/dist/collection/components/molecules/popover/popover.css +0 -203
  1121. package/dist/collection/components/molecules/popover/popover.js +0 -338
  1122. package/dist/collection/components/molecules/progress/progress.css +0 -146
  1123. package/dist/collection/components/molecules/progress/progress.js +0 -296
  1124. package/dist/collection/components/molecules/radio/group.css +0 -132
  1125. package/dist/collection/components/molecules/radio/group.js +0 -545
  1126. package/dist/collection/components/molecules/radio/radio.css +0 -186
  1127. package/dist/collection/components/molecules/radio/radio.js +0 -318
  1128. package/dist/collection/components/molecules/radio/types.js +0 -26
  1129. package/dist/collection/components/molecules/result/result.css +0 -97
  1130. package/dist/collection/components/molecules/result/result.js +0 -130
  1131. package/dist/collection/components/molecules/result/types.js +0 -18
  1132. package/dist/collection/components/molecules/search/search.css +0 -64
  1133. package/dist/collection/components/molecules/search/search.js +0 -483
  1134. package/dist/collection/components/molecules/select/group.css +0 -77
  1135. package/dist/collection/components/molecules/select/group.js +0 -84
  1136. package/dist/collection/components/molecules/select/option.css +0 -97
  1137. package/dist/collection/components/molecules/select/option.js +0 -138
  1138. package/dist/collection/components/molecules/select/select-box.css +0 -74
  1139. package/dist/collection/components/molecules/select/select-box.js +0 -90
  1140. package/dist/collection/components/molecules/select/select.css +0 -298
  1141. package/dist/collection/components/molecules/select/select.js +0 -2091
  1142. package/dist/collection/components/molecules/slider/slider.css +0 -394
  1143. package/dist/collection/components/molecules/slider/slider.js +0 -712
  1144. package/dist/collection/components/molecules/slider/types.js +0 -8
  1145. package/dist/collection/components/molecules/switch/switch.css +0 -241
  1146. package/dist/collection/components/molecules/switch/switch.js +0 -486
  1147. package/dist/collection/components/molecules/textarea/textarea.css +0 -294
  1148. package/dist/collection/components/molecules/textarea/textarea.js +0 -647
  1149. package/dist/collection/components/molecules/timeline/timeline-item.css +0 -187
  1150. package/dist/collection/components/molecules/timeline/timeline-item.js +0 -148
  1151. package/dist/collection/components/molecules/timeline/timeline.css +0 -138
  1152. package/dist/collection/components/molecules/timeline/timeline.js +0 -111
  1153. package/dist/collection/components/molecules/tooltip/tooltip-box.css +0 -195
  1154. package/dist/collection/components/molecules/tooltip/tooltip-box.js +0 -127
  1155. package/dist/collection/components/molecules/tooltip/tooltip.css +0 -192
  1156. package/dist/collection/components/molecules/tooltip/tooltip.js +0 -325
  1157. package/dist/collection/components/molecules/upload/errors.js +0 -8
  1158. package/dist/collection/components/molecules/upload/types.js +0 -9
  1159. package/dist/collection/components/molecules/upload/upload.css +0 -130
  1160. package/dist/collection/components/molecules/upload/upload.js +0 -403
  1161. package/dist/collection/components/organism/autocomplete/autocomplete.css +0 -101
  1162. package/dist/collection/components/organism/autocomplete/autocomplete.js +0 -385
  1163. package/dist/collection/components/organism/colorpicker/colorpicker.css +0 -246
  1164. package/dist/collection/components/organism/colorpicker/colorpicker.js +0 -746
  1165. package/dist/collection/components/organism/colorpicker/static/chess.png +0 -0
  1166. package/dist/collection/components/organism/colorpicker/static/color.svg +0 -14
  1167. package/dist/collection/components/organism/colorpicker/static/colors.svg +0 -16
  1168. package/dist/collection/components/organism/date-picker/date-picker.css +0 -70
  1169. package/dist/collection/components/organism/date-picker/date-picker.js +0 -607
  1170. package/dist/collection/components/organism/datetime-picker/datetime-picker.css +0 -414
  1171. package/dist/collection/components/organism/datetime-picker/datetime-picker.js +0 -1828
  1172. package/dist/collection/components/organism/datetime-picker/types.js +0 -35
  1173. package/dist/collection/components/organism/form/form-group.css +0 -64
  1174. package/dist/collection/components/organism/form/form-group.js +0 -116
  1175. package/dist/collection/components/organism/form/form.css +0 -65
  1176. package/dist/collection/components/organism/listbox/listbox-group.css +0 -72
  1177. package/dist/collection/components/organism/listbox/listbox-group.js +0 -89
  1178. package/dist/collection/components/organism/listbox/listbox-item.css +0 -202
  1179. package/dist/collection/components/organism/listbox/listbox-item.js +0 -639
  1180. package/dist/collection/components/organism/listbox/listbox.css +0 -298
  1181. package/dist/collection/components/organism/listbox/types.js +0 -7
  1182. package/dist/collection/components/organism/menu/menu-group.css +0 -101
  1183. package/dist/collection/components/organism/menu/menu-group.js +0 -211
  1184. package/dist/collection/components/organism/menu/menu-item.css +0 -96
  1185. package/dist/collection/components/organism/menu/menu-item.js +0 -172
  1186. package/dist/collection/components/organism/menu/menu.css +0 -69
  1187. package/dist/collection/components/organism/menu/menu.js +0 -189
  1188. package/dist/collection/components/organism/pulldown/pulldown-group.css +0 -163
  1189. package/dist/collection/components/organism/pulldown/pulldown-group.js +0 -256
  1190. package/dist/collection/components/organism/pulldown/pulldown-item.css +0 -110
  1191. package/dist/collection/components/organism/pulldown/pulldown-item.js +0 -179
  1192. package/dist/collection/components/organism/pulldown/pulldown.css +0 -87
  1193. package/dist/collection/components/organism/pulldown/pulldown.js +0 -226
  1194. package/dist/collection/components/organism/selecto/selecto.css +0 -0
  1195. package/dist/collection/components/organism/selecto/selecto.js +0 -75
  1196. package/dist/collection/components/organism/selecto/types.js +0 -1
  1197. package/dist/collection/components/organism/tabs/tab-pane.css +0 -75
  1198. package/dist/collection/components/organism/tabs/tab-pane.js +0 -154
  1199. package/dist/collection/components/organism/tabs/tab.css +0 -243
  1200. package/dist/collection/components/organism/tabs/tab.js +0 -291
  1201. package/dist/collection/components/organism/tabs/tabs-content.css +0 -69
  1202. package/dist/collection/components/organism/tabs/tabs-content.js +0 -133
  1203. package/dist/collection/components/organism/tabs/tabs.css +0 -145
  1204. package/dist/collection/components/organism/tabs/tabs.js +0 -782
  1205. package/dist/collection/components/organism/time-picker/time-picker.css +0 -70
  1206. package/dist/collection/components/organism/time-picker/time-picker.js +0 -427
  1207. package/dist/collection/components/organism/treeview/treeview-group.css +0 -0
  1208. package/dist/collection/components/organism/treeview/treeview-group.js +0 -14
  1209. package/dist/collection/components/organism/treeview/treeview-item.css +0 -251
  1210. package/dist/collection/components/organism/treeview/treeview-item.js +0 -975
  1211. package/dist/collection/components/organism/treeview/treeview.css +0 -123
  1212. package/dist/collection/components/organism/treeview/types.js +0 -7
  1213. package/dist/collection/global/variables/colors.js +0 -216
  1214. package/dist/collection/index.js +0 -1
  1215. package/dist/collection/stories/atoms/avatar/avatar.stories.js +0 -80
  1216. package/dist/collection/stories/atoms/badge/badge.stories.js +0 -79
  1217. package/dist/collection/stories/atoms/button/button.stories.js +0 -156
  1218. package/dist/collection/stories/atoms/divider/divider.stories.js +0 -85
  1219. package/dist/collection/stories/atoms/icon/icon.stories.js +0 -94
  1220. package/dist/collection/stories/atoms/link/link.stories.js +0 -53
  1221. package/dist/collection/stories/atoms/tag/tag.stories.js +0 -82
  1222. package/dist/collection/stories/atoms/text/text.stories.js +0 -62
  1223. package/dist/collection/stories/molecules/alert/alert.stories.js +0 -143
  1224. package/dist/collection/stories/molecules/breadcrumb/breadcrumb.stories.js +0 -84
  1225. package/dist/collection/stories/molecules/card/card.stories.js +0 -47
  1226. package/dist/collection/stories/molecules/checkbox/checkbox.stories.js +0 -197
  1227. package/dist/collection/stories/molecules/collapse/collapse.stories.js +0 -74
  1228. package/dist/collection/stories/molecules/comment/comment.stories.js +0 -42
  1229. package/dist/collection/stories/molecules/dropdown/dropdown.stories.js +0 -241
  1230. package/dist/collection/stories/molecules/empty/empty.stories.js +0 -56
  1231. package/dist/collection/stories/molecules/input/input.stories.js +0 -320
  1232. package/dist/collection/stories/molecules/message/message.stories.js +0 -67
  1233. package/dist/collection/stories/molecules/modal/modal.stories.js +0 -124
  1234. package/dist/collection/stories/molecules/notification/notification.stories.js +0 -85
  1235. package/dist/collection/stories/molecules/popconfirm/popconfirm.stories.js +0 -158
  1236. package/dist/collection/stories/molecules/popover/popover.stories.js +0 -124
  1237. package/dist/collection/stories/molecules/progress/progress.stories.js +0 -97
  1238. package/dist/collection/stories/molecules/radio/radio.stories.js +0 -140
  1239. package/dist/collection/stories/molecules/result/result.stories.js +0 -100
  1240. package/dist/collection/stories/molecules/select/select.stories.js +0 -659
  1241. package/dist/collection/stories/molecules/slider/slider.stories.js +0 -139
  1242. package/dist/collection/stories/molecules/switch/switch.stories.js +0 -121
  1243. package/dist/collection/stories/molecules/textarea/textarea.stories.js +0 -190
  1244. package/dist/collection/stories/molecules/timeline/timeline.stories.js +0 -57
  1245. package/dist/collection/stories/molecules/tooltip/tooltip.stories.js +0 -114
  1246. package/dist/collection/stories/molecules/upload/upload.stories.js +0 -99
  1247. package/dist/collection/stories/organism/autocomplete/autocomplete.stories.js +0 -1028
  1248. package/dist/collection/stories/organism/datepicker/datepicker.stories.js +0 -26
  1249. package/dist/collection/stories/organism/datetimepicker/datetimepicker.stories.js +0 -26
  1250. package/dist/collection/stories/organism/listbox/listbox.stories.js +0 -647
  1251. package/dist/collection/stories/organism/menu/menu.stories.js +0 -150
  1252. package/dist/collection/stories/organism/pulldown/pulldown.stories.js +0 -149
  1253. package/dist/collection/stories/organism/tabs/tabs.stories.js +0 -142
  1254. package/dist/collection/stories/organism/timepicker/timepicker.stories.js +0 -26
  1255. package/dist/collection/stories/organism/treeview/treeview.stories.js +0 -587
  1256. package/dist/collection/types/index.js +0 -1
  1257. package/dist/collection/utils/element-dragger.js +0 -270
  1258. package/dist/collection/utils/popover-placement.js +0 -86
  1259. package/dist/collection/utils/utils.js +0 -193
  1260. package/dist/collection/utils/validation.js +0 -36
  1261. package/dist/esm/bcm-empty_6.entry.js +0 -2310
  1262. package/dist/esm/bcm-switch.entry.js +0 -82
  1263. package/dist/esm/bcm-tooltip-box.entry.js +0 -32
  1264. package/dist/esm/bromcom-ui.js +0 -17
  1265. package/dist/esm/colors-7c7b35e9.js +0 -218
  1266. package/dist/esm/index-e58a2d48.js +0 -64
  1267. package/dist/esm/index.js +0 -1
  1268. package/dist/esm/loader.js +0 -17
  1269. package/dist/esm/polyfills/core-js.js +0 -11
  1270. package/dist/esm/polyfills/css-shim.js +0 -1
  1271. package/dist/esm/polyfills/dom.js +0 -79
  1272. package/dist/esm/polyfills/es5-html-element.js +0 -1
  1273. package/dist/esm/polyfills/index.js +0 -34
  1274. package/dist/esm/polyfills/system.js +0 -6
  1275. package/dist/esm/utils-b7fba7c4.js +0 -142
  1276. package/dist/index.cjs.js +0 -1
  1277. package/dist/index.js +0 -1
@@ -1,15 +1,24 @@
1
1
  const NAMESPACE = 'bromcom-ui';
2
+ const BUILD = /* bromcom-ui */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: true, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: true, cmpWillUpdate: true, connectedCallback: true, constructableCSS: false, cssAnnotations: true, cssVarShim: false, devTools: true, disconnectedCallback: true, dynamicImportShim: false, element: false, event: true, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: true, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, initializeNextTick: false, isDebug: false, isDev: true, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: true, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, safari10: false, scoped: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, shadowDomShim: false, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
3
+ const Env = /* bromcom-ui */ {};
2
4
 
3
5
  let scopeId;
4
6
  let contentRef;
5
7
  let hostTagName;
8
+ let customError;
9
+ let i = 0;
6
10
  let useNativeShadowDom = false;
7
11
  let checkSlotFallbackVisibility = false;
8
12
  let checkSlotRelocate = false;
9
13
  let isSvgMode = false;
14
+ let renderingRef = null;
15
+ let queueCongestion = 0;
10
16
  let queuePending = false;
11
17
  const win = typeof window !== 'undefined' ? window : {};
18
+ const CSS = BUILD.cssVarShim ? win.CSS : null;
12
19
  const doc = win.document || { head: {} };
20
+ const H = (win.HTMLElement || class {
21
+ });
13
22
  const plt = {
14
23
  $flags$: 0,
15
24
  $resourcesUrl$: '',
@@ -19,8 +28,22 @@ const plt = {
19
28
  rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
20
29
  ce: (eventName, opts) => new CustomEvent(eventName, opts),
21
30
  };
31
+ const supportsShadow = BUILD.shadowDomShim && BUILD.shadowDom ? /*@__PURE__*/ (() => (doc.head.attachShadow + '').indexOf('[native') > -1)() : true;
32
+ const supportsListenerOptions = /*@__PURE__*/ (() => {
33
+ let supportsListenerOptions = false;
34
+ try {
35
+ doc.addEventListener('e', null, Object.defineProperty({}, 'passive', {
36
+ get() {
37
+ supportsListenerOptions = true;
38
+ },
39
+ }));
40
+ }
41
+ catch (e) { }
42
+ return supportsListenerOptions;
43
+ })();
22
44
  const promiseResolve = (v) => Promise.resolve(v);
23
- const supportsConstructibleStylesheets = /*@__PURE__*/ (() => {
45
+ const supportsConstructibleStylesheets = BUILD.constructableCSS
46
+ ? /*@__PURE__*/ (() => {
24
47
  try {
25
48
  new CSSStyleSheet();
26
49
  return true;
@@ -28,11 +51,31 @@ const supportsConstructibleStylesheets = /*@__PURE__*/ (() => {
28
51
  catch (e) { }
29
52
  return false;
30
53
  })()
31
- ;
54
+ : false;
55
+ const Context = {};
32
56
  const addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
33
- if ( listeners) {
57
+ if (BUILD.hostListener && listeners) {
58
+ // this is called immediately within the element's constructor
59
+ // initialize our event listeners on the host element
60
+ // we do this now so that we can listen to events that may
61
+ // have fired even before the instance is ready
62
+ if (BUILD.hostListenerTargetParent) {
63
+ // this component may have event listeners that should be attached to the parent
64
+ if (attachParentListeners) {
65
+ // this is being ran from within the connectedCallback
66
+ // which is important so that we know the host element actually has a parent element
67
+ // filter out the listeners to only have the ones that ARE being attached to the parent
68
+ listeners = listeners.filter(([flags]) => flags & 32 /* TargetParent */);
69
+ }
70
+ else {
71
+ // this is being ran from within the component constructor
72
+ // everything BUT the parent element listeners should be attached at this time
73
+ // filter out the listeners that are NOT being attached to the parent
74
+ listeners = listeners.filter(([flags]) => !(flags & 32 /* TargetParent */));
75
+ }
76
+ }
34
77
  listeners.map(([flags, name, method]) => {
35
- const target = getHostListenerTarget(elm, flags) ;
78
+ const target = BUILD.hostListenerTarget ? getHostListenerTarget(elm, flags) : elm;
36
79
  const handler = hostListenerProxy(hostRef, method);
37
80
  const opts = hostListenerOpts(flags);
38
81
  plt.ael(target, name, handler, opts);
@@ -42,7 +85,7 @@ const addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) =
42
85
  };
43
86
  const hostListenerProxy = (hostRef, methodName) => (ev) => {
44
87
  try {
45
- {
88
+ if (BUILD.lazyLoad) {
46
89
  if (hostRef.$flags$ & 256 /* isListenReady */) {
47
90
  // instance is ready, let's call it's member method for this event
48
91
  hostRef.$lazyInstance$[methodName](ev);
@@ -51,36 +94,127 @@ const hostListenerProxy = (hostRef, methodName) => (ev) => {
51
94
  (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
52
95
  }
53
96
  }
97
+ else {
98
+ hostRef.$hostElement$[methodName](ev);
99
+ }
54
100
  }
55
101
  catch (e) {
56
102
  consoleError(e);
57
103
  }
58
104
  };
59
105
  const getHostListenerTarget = (elm, flags) => {
60
- if ( flags & 4 /* TargetDocument */)
106
+ if (BUILD.hostListenerTargetDocument && flags & 4 /* TargetDocument */)
61
107
  return doc;
62
- if ( flags & 8 /* TargetWindow */)
108
+ if (BUILD.hostListenerTargetWindow && flags & 8 /* TargetWindow */)
63
109
  return win;
110
+ if (BUILD.hostListenerTargetBody && flags & 16 /* TargetBody */)
111
+ return doc.body;
112
+ if (BUILD.hostListenerTargetParent && flags & 32 /* TargetParent */)
113
+ return elm.parentElement;
64
114
  return elm;
65
115
  };
66
116
  // prettier-ignore
67
- const hostListenerOpts = (flags) => (flags & 2 /* Capture */) !== 0;
117
+ const hostListenerOpts = (flags) => supportsListenerOptions
118
+ ? ({
119
+ passive: (flags & 1 /* Passive */) !== 0,
120
+ capture: (flags & 2 /* Capture */) !== 0,
121
+ })
122
+ : (flags & 2 /* Capture */) !== 0;
123
+ const CONTENT_REF_ID = 'r';
124
+ const ORG_LOCATION_ID = 'o';
125
+ const SLOT_NODE_ID = 's';
126
+ const TEXT_NODE_ID = 't';
127
+ const HYDRATE_ID = 's-id';
128
+ const HYDRATED_STYLE_ID = 'sty-id';
129
+ const HYDRATE_CHILD_ID = 'c-id';
68
130
  const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
69
131
  const XLINK_NS = 'http://www.w3.org/1999/xlink';
70
132
  const createTime = (fnName, tagName = '') => {
71
- {
133
+ if (BUILD.profile && performance.mark) {
134
+ const key = `st:${fnName}:${tagName}:${i++}`;
135
+ // Start
136
+ performance.mark(key);
137
+ // End
138
+ return () => performance.measure(`[Stencil] ${fnName}() <${tagName}>`, key);
139
+ }
140
+ else {
72
141
  return () => {
73
142
  return;
74
143
  };
75
144
  }
76
145
  };
77
146
  const uniqueTime = (key, measureText) => {
78
- {
147
+ if (BUILD.profile && performance.mark) {
148
+ if (performance.getEntriesByName(key).length === 0) {
149
+ performance.mark(key);
150
+ }
151
+ return () => {
152
+ if (performance.getEntriesByName(measureText).length === 0) {
153
+ performance.measure(measureText, key);
154
+ }
155
+ };
156
+ }
157
+ else {
79
158
  return () => {
80
159
  return;
81
160
  };
82
161
  }
83
162
  };
163
+ const inspect = (ref) => {
164
+ const hostRef = getHostRef(ref);
165
+ if (!hostRef) {
166
+ return undefined;
167
+ }
168
+ const flags = hostRef.$flags$;
169
+ const hostElement = hostRef.$hostElement$;
170
+ return {
171
+ renderCount: hostRef.$renderCount$,
172
+ flags: {
173
+ hasRendered: !!(flags & 2 /* hasRendered */),
174
+ hasConnected: !!(flags & 1 /* hasConnected */),
175
+ isWaitingForChildren: !!(flags & 4 /* isWaitingForChildren */),
176
+ isConstructingInstance: !!(flags & 8 /* isConstructingInstance */),
177
+ isQueuedForUpdate: !!(flags & 16 /* isQueuedForUpdate */),
178
+ hasInitializedComponent: !!(flags & 32 /* hasInitializedComponent */),
179
+ hasLoadedComponent: !!(flags & 64 /* hasLoadedComponent */),
180
+ isWatchReady: !!(flags & 128 /* isWatchReady */),
181
+ isListenReady: !!(flags & 256 /* isListenReady */),
182
+ needsRerender: !!(flags & 512 /* needsRerender */),
183
+ },
184
+ instanceValues: hostRef.$instanceValues$,
185
+ ancestorComponent: hostRef.$ancestorComponent$,
186
+ hostElement,
187
+ lazyInstance: hostRef.$lazyInstance$,
188
+ vnode: hostRef.$vnode$,
189
+ modeName: hostRef.$modeName$,
190
+ onReadyPromise: hostRef.$onReadyPromise$,
191
+ onReadyResolve: hostRef.$onReadyResolve$,
192
+ onInstancePromise: hostRef.$onInstancePromise$,
193
+ onInstanceResolve: hostRef.$onInstanceResolve$,
194
+ onRenderResolve: hostRef.$onRenderResolve$,
195
+ queuedListeners: hostRef.$queuedListeners$,
196
+ rmListeners: hostRef.$rmListeners$,
197
+ ['s-id']: hostElement['s-id'],
198
+ ['s-cr']: hostElement['s-cr'],
199
+ ['s-lr']: hostElement['s-lr'],
200
+ ['s-p']: hostElement['s-p'],
201
+ ['s-rc']: hostElement['s-rc'],
202
+ ['s-sc']: hostElement['s-sc'],
203
+ };
204
+ };
205
+ const installDevTools = () => {
206
+ if (BUILD.devTools) {
207
+ const stencil = (win.stencil = win.stencil || {});
208
+ const originalInspect = stencil.inspect;
209
+ stencil.inspect = (ref) => {
210
+ let result = inspect(ref);
211
+ if (!result && typeof originalInspect === 'function') {
212
+ result = originalInspect(ref);
213
+ }
214
+ return result;
215
+ };
216
+ }
217
+ };
84
218
  const rootAppliedStyles = new WeakMap();
85
219
  const registerStyle = (scopeId, cssText, allowCS) => {
86
220
  let style = styles.get(scopeId);
@@ -94,8 +228,11 @@ const registerStyle = (scopeId, cssText, allowCS) => {
94
228
  styles.set(scopeId, style);
95
229
  };
96
230
  const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
97
- let scopeId = getScopeId(cmpMeta);
231
+ let scopeId = getScopeId(cmpMeta, mode);
98
232
  let style = styles.get(scopeId);
233
+ if (!BUILD.attachStyles) {
234
+ return scopeId;
235
+ }
99
236
  // if an element is NOT connected then getRootNode() will return the wrong root node
100
237
  // so the fallback is to always use the document for the root node in those cases
101
238
  styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
@@ -108,11 +245,29 @@ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
108
245
  rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
109
246
  }
110
247
  if (!appliedStyles.has(scopeId)) {
111
- {
112
- {
248
+ if (BUILD.hydrateClientSide && styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId}"]`))) {
249
+ // This is only happening on native shadow-dom, do not needs CSS var shim
250
+ styleElm.innerHTML = style;
251
+ }
252
+ else {
253
+ if (BUILD.cssVarShim && plt.$cssShim$) {
254
+ styleElm = plt.$cssShim$.createHostStyle(hostElm, scopeId, style, !!(cmpMeta.$flags$ & 10 /* needsScopedEncapsulation */));
255
+ const newScopeId = styleElm['s-sc'];
256
+ if (newScopeId) {
257
+ scopeId = newScopeId;
258
+ // we don't want to add this styleID to the appliedStyles Set
259
+ // since the cssVarShim might need to apply several different
260
+ // stylesheets for the same component
261
+ appliedStyles = null;
262
+ }
263
+ }
264
+ else {
113
265
  styleElm = doc.createElement('style');
114
266
  styleElm.innerHTML = style;
115
267
  }
268
+ if (BUILD.hydrateServerSide || BUILD.hotModuleReplacement) {
269
+ styleElm.setAttribute(HYDRATED_STYLE_ID, scopeId);
270
+ }
116
271
  styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
117
272
  }
118
273
  if (appliedStyles) {
@@ -120,7 +275,7 @@ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
120
275
  }
121
276
  }
122
277
  }
123
- else if ( !styleContainerNode.adoptedStyleSheets.includes(style)) {
278
+ else if (BUILD.constructableCSS && !styleContainerNode.adoptedStyleSheets.includes(style)) {
124
279
  styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
125
280
  }
126
281
  }
@@ -131,8 +286,8 @@ const attachStyles = (hostRef) => {
131
286
  const elm = hostRef.$hostElement$;
132
287
  const flags = cmpMeta.$flags$;
133
288
  const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
134
- const scopeId = addStyle( elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
135
- if ( flags & 10 /* needsScopedEncapsulation */) {
289
+ const scopeId = addStyle(BUILD.shadowDom && supportsShadow && elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta, hostRef.$modeName$, elm);
290
+ if ((BUILD.shadowDom || BUILD.scoped) && BUILD.cssAnnotations && flags & 10 /* needsScopedEncapsulation */) {
136
291
  // only required when we're NOT using native shadow dom (slot)
137
292
  // or this browser doesn't support native shadow dom
138
293
  // and this host element was NOT created with SSR
@@ -142,10 +297,19 @@ const attachStyles = (hostRef) => {
142
297
  // DOM WRITE!!
143
298
  elm['s-sc'] = scopeId;
144
299
  elm.classList.add(scopeId + '-h');
300
+ if (BUILD.scoped && flags & 2 /* scopedCssEncapsulation */) {
301
+ elm.classList.add(scopeId + '-s');
302
+ }
145
303
  }
146
304
  endAttachStyles();
147
305
  };
148
- const getScopeId = (cmp, mode) => 'sc-' + ( cmp.$tagName$);
306
+ const getScopeId = (cmp, mode) => 'sc-' + (BUILD.mode && mode && cmp.$flags$ & 32 /* hasMode */ ? cmp.$tagName$ + '-' + mode : cmp.$tagName$);
307
+ const convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, '$1{');
308
+ // Private
309
+ const computeMode = (elm) => modeResolutionChain.map(h => h(elm)).find(m => !!m);
310
+ // Public
311
+ const setMode = (handler) => modeResolutionChain.push(handler);
312
+ const getMode = (ref) => getHostRef(ref).$modeName$;
149
313
  /**
150
314
  * Default style mode id
151
315
  */
@@ -193,6 +357,11 @@ const h = (nodeName, vnodeData, ...children) => {
193
357
  if ((simple = typeof nodeName !== 'function' && !isComplexType(child))) {
194
358
  child = String(child);
195
359
  }
360
+ else if (BUILD.isDev && typeof nodeName !== 'function' && child.$flags$ === undefined) {
361
+ consoleDevError(`vNode passed as children has unexpected type.
362
+ Make sure it's using the correct h() function.
363
+ Empty objects can also be the cause, look for JSX comments that became objects.`);
364
+ }
196
365
  if (simple && lastSimple) {
197
366
  // If the previous child was simple (string), we merge both
198
367
  vNodeChildren[vNodeChildren.length - 1].$text$ += child;
@@ -207,14 +376,17 @@ const h = (nodeName, vnodeData, ...children) => {
207
376
  };
208
377
  walk(children);
209
378
  if (vnodeData) {
379
+ if (BUILD.isDev && nodeName === 'input') {
380
+ validateInputProperties(vnodeData);
381
+ }
210
382
  // normalize class / classname attributes
211
- if ( vnodeData.key) {
383
+ if (BUILD.vdomKey && vnodeData.key) {
212
384
  key = vnodeData.key;
213
385
  }
214
- if ( vnodeData.name) {
386
+ if (BUILD.slotRelocation && vnodeData.name) {
215
387
  slotName = vnodeData.name;
216
388
  }
217
- {
389
+ if (BUILD.vdomClass) {
218
390
  const classData = vnodeData.className || vnodeData.class;
219
391
  if (classData) {
220
392
  vnodeData.class =
@@ -226,7 +398,12 @@ const h = (nodeName, vnodeData, ...children) => {
226
398
  }
227
399
  }
228
400
  }
229
- if ( typeof nodeName === 'function') {
401
+ if (BUILD.isDev && vNodeChildren.some(isHost)) {
402
+ consoleDevError(`The <Host> must be the single root component. Make sure:
403
+ - You are NOT using hostData() and <Host> in the same component.
404
+ - <Host> is used once, and it's the single root component of the render() function.`);
405
+ }
406
+ if (BUILD.vdomFunctional && typeof nodeName === 'function') {
230
407
  // nodeName is a functional component
231
408
  return nodeName(vnodeData === null ? {} : vnodeData, vNodeChildren, vdomFnUtils);
232
409
  }
@@ -235,10 +412,10 @@ const h = (nodeName, vnodeData, ...children) => {
235
412
  if (vNodeChildren.length > 0) {
236
413
  vnode.$children$ = vNodeChildren;
237
414
  }
238
- {
415
+ if (BUILD.vdomKey) {
239
416
  vnode.$key$ = key;
240
417
  }
241
- {
418
+ if (BUILD.slotRelocation) {
242
419
  vnode.$name$ = slotName;
243
420
  }
244
421
  return vnode;
@@ -251,13 +428,13 @@ const newVNode = (tag, text) => {
251
428
  $elm$: null,
252
429
  $children$: null,
253
430
  };
254
- {
431
+ if (BUILD.vdomAttribute) {
255
432
  vnode.$attrs$ = null;
256
433
  }
257
- {
434
+ if (BUILD.vdomKey) {
258
435
  vnode.$key$ = null;
259
436
  }
260
- {
437
+ if (BUILD.slotRelocation) {
261
438
  vnode.$name$ = null;
262
439
  }
263
440
  return vnode;
@@ -294,6 +471,20 @@ const convertToPrivate = (node) => {
294
471
  vnode.$name$ = node.vname;
295
472
  return vnode;
296
473
  };
474
+ const validateInputProperties = (vnodeData) => {
475
+ const props = Object.keys(vnodeData);
476
+ const typeIndex = props.indexOf('type');
477
+ const minIndex = props.indexOf('min');
478
+ const maxIndex = props.indexOf('max');
479
+ const stepIndex = props.indexOf('min');
480
+ const value = props.indexOf('value');
481
+ if (value === -1) {
482
+ return;
483
+ }
484
+ if (value < typeIndex || value < minIndex || value < maxIndex || value < stepIndex) {
485
+ consoleDevWarn(`The "value" prop of <input> should be set after "min", "max", "type" and "step"`);
486
+ }
487
+ };
297
488
  /**
298
489
  * Production setAccessor() function based on Preact by
299
490
  * Jason Miller (@developit)
@@ -306,19 +497,19 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
306
497
  if (oldValue !== newValue) {
307
498
  let isProp = isMemberInElement(elm, memberName);
308
499
  let ln = memberName.toLowerCase();
309
- if ( memberName === 'class') {
500
+ if (BUILD.vdomClass && memberName === 'class') {
310
501
  const classList = elm.classList;
311
502
  const oldClasses = parseClassList(oldValue);
312
503
  const newClasses = parseClassList(newValue);
313
504
  classList.remove(...oldClasses.filter(c => c && !newClasses.includes(c)));
314
505
  classList.add(...newClasses.filter(c => c && !oldClasses.includes(c)));
315
506
  }
316
- else if ( memberName === 'style') {
507
+ else if (BUILD.vdomStyle && memberName === 'style') {
317
508
  // update style attribute, css properties and values
318
- {
509
+ if (BUILD.updatable) {
319
510
  for (const prop in oldValue) {
320
511
  if (!newValue || newValue[prop] == null) {
321
- if ( prop.includes('-')) {
512
+ if (!BUILD.hydrateServerSide && prop.includes('-')) {
322
513
  elm.style.removeProperty(prop);
323
514
  }
324
515
  else {
@@ -329,7 +520,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
329
520
  }
330
521
  for (const prop in newValue) {
331
522
  if (!oldValue || newValue[prop] !== oldValue[prop]) {
332
- if ( prop.includes('-')) {
523
+ if (!BUILD.hydrateServerSide && prop.includes('-')) {
333
524
  elm.style.setProperty(prop, newValue[prop]);
334
525
  }
335
526
  else {
@@ -338,15 +529,15 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
338
529
  }
339
530
  }
340
531
  }
341
- else if ( memberName === 'key')
532
+ else if (BUILD.vdomKey && memberName === 'key')
342
533
  ;
343
- else if ( memberName === 'ref') {
534
+ else if (BUILD.vdomRef && memberName === 'ref') {
344
535
  // minifier will clean this up
345
536
  if (newValue) {
346
537
  newValue(elm);
347
538
  }
348
539
  }
349
- else if ( ( !isProp ) && memberName[0] === 'o' && memberName[1] === 'n') {
540
+ else if (BUILD.vdomListener && (BUILD.lazyLoad ? !isProp : !elm.__lookupSetter__(memberName)) && memberName[0] === 'o' && memberName[1] === 'n') {
350
541
  // Event Handlers
351
542
  // so if the member name starts with "on" and the 3rd characters is
352
543
  // a capital letter, and it's not already a member on the element,
@@ -383,7 +574,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
383
574
  plt.ael(elm, memberName, newValue, false);
384
575
  }
385
576
  }
386
- else {
577
+ else if (BUILD.vdomPropOrAttr) {
387
578
  // Set property if it exists and it's not a SVG
388
579
  const isComplex = isComplexType(newValue);
389
580
  if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
@@ -413,7 +604,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
413
604
  * - if the newValue is null/undefined or 'false'.
414
605
  */
415
606
  let xlink = false;
416
- {
607
+ if (BUILD.vdomXlink) {
417
608
  if (ln !== (ln = ln.replace(/^xlink\:?/, ''))) {
418
609
  memberName = ln;
419
610
  xlink = true;
@@ -421,7 +612,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
421
612
  }
422
613
  if (newValue == null || newValue === false) {
423
614
  if (newValue !== false || elm.getAttribute(memberName) === '') {
424
- if ( xlink) {
615
+ if (BUILD.vdomXlink && xlink) {
425
616
  elm.removeAttributeNS(XLINK_NS, memberName);
426
617
  }
427
618
  else {
@@ -431,7 +622,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
431
622
  }
432
623
  else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
433
624
  newValue = newValue === true ? '' : newValue;
434
- if ( xlink) {
625
+ if (BUILD.vdomXlink && xlink) {
435
626
  elm.setAttributeNS(XLINK_NS, memberName, newValue);
436
627
  }
437
628
  else {
@@ -450,7 +641,7 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
450
641
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
451
642
  const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
452
643
  const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
453
- {
644
+ if (BUILD.updatable) {
454
645
  // remove attributes no longer present on the vnode by setting them to undefined
455
646
  for (memberName in oldVnodeAttrs) {
456
647
  if (!(memberName in newVnodeAttrs)) {
@@ -470,7 +661,7 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
470
661
  let elm;
471
662
  let childNode;
472
663
  let oldVNode;
473
- if ( !useNativeShadowDom) {
664
+ if (BUILD.slotRelocation && !useNativeShadowDom) {
474
665
  // remember for later we need to check to relocate nodes
475
666
  checkSlotRelocate = true;
476
667
  if (newVNode.$tag$ === 'slot') {
@@ -485,29 +676,33 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
485
676
  1 /* isSlotReference */;
486
677
  }
487
678
  }
488
- if ( newVNode.$text$ !== null) {
679
+ if (BUILD.isDev && newVNode.$elm$) {
680
+ consoleDevError(`The JSX ${newVNode.$text$ !== null ? `"${newVNode.$text$}" text` : `"${newVNode.$tag$}" element`} node should not be shared within the same renderer. The renderer caches element lookups in order to improve performance. However, a side effect from this is that the exact same JSX node should not be reused. For more information please see https://stenciljs.com/docs/templating-jsx#avoid-shared-jsx-nodes`);
681
+ }
682
+ if (BUILD.vdomText && newVNode.$text$ !== null) {
489
683
  // create text node
490
684
  elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
491
685
  }
492
- else if ( newVNode.$flags$ & 1 /* isSlotReference */) {
686
+ else if (BUILD.slotRelocation && newVNode.$flags$ & 1 /* isSlotReference */) {
493
687
  // create a slot reference node
494
- elm = newVNode.$elm$ = doc.createTextNode('');
688
+ elm = newVNode.$elm$ = BUILD.isDebug || BUILD.hydrateServerSide ? slotReferenceDebugNode(newVNode) : doc.createTextNode('');
495
689
  }
496
690
  else {
497
- if ( !isSvgMode) {
691
+ if (BUILD.svg && !isSvgMode) {
498
692
  isSvgMode = newVNode.$tag$ === 'svg';
499
693
  }
500
694
  // create element
501
- elm = newVNode.$elm$ = ( doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$flags$ & 2 /* isSlotFallback */ ? 'slot-fb' : newVNode.$tag$)
502
- );
503
- if ( isSvgMode && newVNode.$tag$ === 'foreignObject') {
695
+ elm = newVNode.$elm$ = (BUILD.svg
696
+ ? doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, BUILD.slotRelocation && newVNode.$flags$ & 2 /* isSlotFallback */ ? 'slot-fb' : newVNode.$tag$)
697
+ : doc.createElement(BUILD.slotRelocation && newVNode.$flags$ & 2 /* isSlotFallback */ ? 'slot-fb' : newVNode.$tag$));
698
+ if (BUILD.svg && isSvgMode && newVNode.$tag$ === 'foreignObject') {
504
699
  isSvgMode = false;
505
700
  }
506
701
  // add css classes, attrs, props, listeners, etc.
507
- {
702
+ if (BUILD.vdomAttribute) {
508
703
  updateElement(null, newVNode, isSvgMode);
509
704
  }
510
- if ( isDef(scopeId) && elm['s-si'] !== scopeId) {
705
+ if ((BUILD.shadowDom || BUILD.scoped) && isDef(scopeId) && elm['s-si'] !== scopeId) {
511
706
  // if there is a scopeId and this is the initial render
512
707
  // then let's add the scopeId as a css class
513
708
  elm.classList.add((elm['s-si'] = scopeId));
@@ -523,7 +718,7 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
523
718
  }
524
719
  }
525
720
  }
526
- {
721
+ if (BUILD.svg) {
527
722
  if (newVNode.$tag$ === 'svg') {
528
723
  // Only reset the SVG context when we're exiting <svg> element
529
724
  isSvgMode = false;
@@ -534,7 +729,7 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
534
729
  }
535
730
  }
536
731
  }
537
- {
732
+ if (BUILD.slotRelocation) {
538
733
  elm['s-hn'] = hostTagName;
539
734
  if (newVNode.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
540
735
  // remember the content reference comment
@@ -579,9 +774,9 @@ const putBackInOriginalLocation = (parentElm, recursive) => {
579
774
  plt.$flags$ &= ~1 /* isTmpDisconnected */;
580
775
  };
581
776
  const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
582
- let containerElm = (( parentElm['s-cr'] && parentElm['s-cr'].parentNode) || parentElm);
777
+ let containerElm = ((BUILD.slotRelocation && parentElm['s-cr'] && parentElm['s-cr'].parentNode) || parentElm);
583
778
  let childNode;
584
- if ( containerElm.shadowRoot && containerElm.tagName === hostTagName) {
779
+ if (BUILD.shadowDom && containerElm.shadowRoot && containerElm.tagName === hostTagName) {
585
780
  containerElm = containerElm.shadowRoot;
586
781
  }
587
782
  for (; startIdx <= endIdx; ++startIdx) {
@@ -589,7 +784,7 @@ const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) =>
589
784
  childNode = createElm(null, parentVNode, startIdx, parentElm);
590
785
  if (childNode) {
591
786
  vnodes[startIdx].$elm$ = childNode;
592
- containerElm.insertBefore(childNode, referenceNode(before) );
787
+ containerElm.insertBefore(childNode, BUILD.slotRelocation ? referenceNode(before) : before);
593
788
  }
594
789
  }
595
790
  }
@@ -599,7 +794,7 @@ const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
599
794
  if ((vnode = vnodes[startIdx])) {
600
795
  elm = vnode.$elm$;
601
796
  callNodeRefs(vnode);
602
- {
797
+ if (BUILD.slotRelocation) {
603
798
  // we're removing this element
604
799
  // so it's possible we need to show slot fallback content now
605
800
  checkSlotFallbackVisibility = true;
@@ -657,7 +852,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
657
852
  }
658
853
  else if (isSameVnode(oldStartVnode, newEndVnode)) {
659
854
  // Vnode moved right
660
- if ( (oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
855
+ if (BUILD.slotRelocation && (oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
661
856
  putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
662
857
  }
663
858
  patch(oldStartVnode, newEndVnode);
@@ -667,7 +862,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
667
862
  }
668
863
  else if (isSameVnode(oldEndVnode, newStartVnode)) {
669
864
  // Vnode moved left
670
- if ( (oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
865
+ if (BUILD.slotRelocation && (oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
671
866
  putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
672
867
  }
673
868
  patch(oldEndVnode, newStartVnode);
@@ -678,7 +873,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
678
873
  else {
679
874
  // createKeyToOldIdx
680
875
  idxInOld = -1;
681
- {
876
+ if (BUILD.vdomKey) {
682
877
  for (i = oldStartIdx; i <= oldEndIdx; ++i) {
683
878
  if (oldCh[i] && oldCh[i].$key$ !== null && oldCh[i].$key$ === newStartVnode.$key$) {
684
879
  idxInOld = i;
@@ -686,7 +881,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
686
881
  }
687
882
  }
688
883
  }
689
- if ( idxInOld >= 0) {
884
+ if (BUILD.vdomKey && idxInOld >= 0) {
690
885
  elmToMove = oldCh[idxInOld];
691
886
  if (elmToMove.$tag$ !== newStartVnode.$tag$) {
692
887
  node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld, parentElm);
@@ -704,16 +899,19 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
704
899
  newStartVnode = newCh[++newStartIdx];
705
900
  }
706
901
  if (node) {
707
- {
902
+ if (BUILD.slotRelocation) {
708
903
  parentReferenceNode(oldStartVnode.$elm$).insertBefore(node, referenceNode(oldStartVnode.$elm$));
709
904
  }
905
+ else {
906
+ oldStartVnode.$elm$.parentNode.insertBefore(node, oldStartVnode.$elm$);
907
+ }
710
908
  }
711
909
  }
712
910
  }
713
911
  if (oldStartIdx > oldEndIdx) {
714
912
  addVnodes(parentElm, newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$, newVNode, newCh, newStartIdx, newEndIdx);
715
913
  }
716
- else if ( newStartIdx > newEndIdx) {
914
+ else if (BUILD.updatable && newStartIdx > newEndIdx) {
717
915
  removeVnodes(oldCh, oldStartIdx, oldEndIdx);
718
916
  }
719
917
  };
@@ -721,12 +919,13 @@ const isSameVnode = (vnode1, vnode2) => {
721
919
  // compare if two vnode to see if they're "technically" the same
722
920
  // need to have the same element tag, and same key to be the same
723
921
  if (vnode1.$tag$ === vnode2.$tag$) {
724
- if ( vnode1.$tag$ === 'slot') {
922
+ if (BUILD.slotRelocation && vnode1.$tag$ === 'slot') {
725
923
  return vnode1.$name$ === vnode2.$name$;
726
924
  }
727
- {
925
+ if (BUILD.vdomKey) {
728
926
  return vnode1.$key$ === vnode2.$key$;
729
927
  }
928
+ return true;
730
929
  }
731
930
  return false;
732
931
  };
@@ -745,15 +944,15 @@ const patch = (oldVNode, newVNode) => {
745
944
  const tag = newVNode.$tag$;
746
945
  const text = newVNode.$text$;
747
946
  let defaultHolder;
748
- if ( text === null) {
749
- {
947
+ if (!BUILD.vdomText || text === null) {
948
+ if (BUILD.svg) {
750
949
  // test if we're rendering an svg element, or still rendering nodes inside of one
751
950
  // only add this to the when the compiler sees we're using an svg somewhere
752
951
  isSvgMode = tag === 'svg' ? true : tag === 'foreignObject' ? false : isSvgMode;
753
952
  }
754
953
  // element node
755
- {
756
- if ( tag === 'slot')
954
+ if (BUILD.vdomAttribute || BUILD.reflect) {
955
+ if (BUILD.slot && tag === 'slot')
757
956
  ;
758
957
  else {
759
958
  // either this is the first render of an element OR it's an update
@@ -762,32 +961,32 @@ const patch = (oldVNode, newVNode) => {
762
961
  updateElement(oldVNode, newVNode, isSvgMode);
763
962
  }
764
963
  }
765
- if ( oldChildren !== null && newChildren !== null) {
964
+ if (BUILD.updatable && oldChildren !== null && newChildren !== null) {
766
965
  // looks like there's child vnodes for both the old and new vnodes
767
966
  updateChildren(elm, oldChildren, newVNode, newChildren);
768
967
  }
769
968
  else if (newChildren !== null) {
770
969
  // no old child vnodes, but there are new child vnodes to add
771
- if ( oldVNode.$text$ !== null) {
970
+ if (BUILD.updatable && BUILD.vdomText && oldVNode.$text$ !== null) {
772
971
  // the old vnode was text, so be sure to clear it out
773
972
  elm.textContent = '';
774
973
  }
775
974
  // add the new vnode children
776
975
  addVnodes(elm, null, newVNode, newChildren, 0, newChildren.length - 1);
777
976
  }
778
- else if ( oldChildren !== null) {
977
+ else if (BUILD.updatable && oldChildren !== null) {
779
978
  // no new child vnodes, but there are old child vnodes to remove
780
979
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
781
980
  }
782
- if ( isSvgMode && tag === 'svg') {
981
+ if (BUILD.svg && isSvgMode && tag === 'svg') {
783
982
  isSvgMode = false;
784
983
  }
785
984
  }
786
- else if ( (defaultHolder = elm['s-cr'])) {
985
+ else if (BUILD.vdomText && BUILD.slotRelocation && (defaultHolder = elm['s-cr'])) {
787
986
  // this element has slotted content
788
987
  defaultHolder.parentNode.textContent = text;
789
988
  }
790
- else if ( oldVNode.$text$ !== text) {
989
+ else if (BUILD.vdomText && oldVNode.$text$ !== text) {
791
990
  // update the text content for the text only vnode
792
991
  // and also only if the text is different than before
793
992
  elm.data = text;
@@ -927,7 +1126,7 @@ const isNodeLocatedInSlot = (nodeToRelocate, slotNameAttr) => {
927
1126
  return slotNameAttr === '';
928
1127
  };
929
1128
  const callNodeRefs = (vNode) => {
930
- {
1129
+ if (BUILD.vdomRef) {
931
1130
  vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
932
1131
  vNode.$children$ && vNode.$children$.map(callNodeRefs);
933
1132
  }
@@ -938,26 +1137,41 @@ const renderVdom = (hostRef, renderFnResults) => {
938
1137
  const oldVNode = hostRef.$vnode$ || newVNode(null, null);
939
1138
  const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
940
1139
  hostTagName = hostElm.tagName;
941
- if ( cmpMeta.$attrsToReflect$) {
1140
+ // <Host> runtime check
1141
+ if (BUILD.isDev && Array.isArray(renderFnResults) && renderFnResults.some(isHost)) {
1142
+ throw new Error(`The <Host> must be the single root component.
1143
+ Looks like the render() function of "${hostTagName.toLowerCase()}" is returning an array that contains the <Host>.
1144
+
1145
+ The render() function should look like this instead:
1146
+
1147
+ render() {
1148
+ // Do not return an array
1149
+ return (
1150
+ <Host>{content}</Host>
1151
+ );
1152
+ }
1153
+ `);
1154
+ }
1155
+ if (BUILD.reflect && cmpMeta.$attrsToReflect$) {
942
1156
  rootVnode.$attrs$ = rootVnode.$attrs$ || {};
943
1157
  cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
944
1158
  }
945
1159
  rootVnode.$tag$ = null;
946
1160
  rootVnode.$flags$ |= 4 /* isHost */;
947
1161
  hostRef.$vnode$ = rootVnode;
948
- rootVnode.$elm$ = oldVNode.$elm$ = ( hostElm.shadowRoot || hostElm );
949
- {
1162
+ rootVnode.$elm$ = oldVNode.$elm$ = (BUILD.shadowDom ? hostElm.shadowRoot || hostElm : hostElm);
1163
+ if (BUILD.scoped || BUILD.shadowDom) {
950
1164
  scopeId = hostElm['s-sc'];
951
1165
  }
952
- {
1166
+ if (BUILD.slotRelocation) {
953
1167
  contentRef = hostElm['s-cr'];
954
- useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
1168
+ useNativeShadowDom = supportsShadow && (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
955
1169
  // always reset
956
1170
  checkSlotFallbackVisibility = false;
957
1171
  }
958
1172
  // synchronous patch
959
1173
  patch(oldVNode, rootVnode);
960
- {
1174
+ if (BUILD.slotRelocation) {
961
1175
  // while we're moving nodes around existing nodes, temporarily disable
962
1176
  // the disconnectCallback from working
963
1177
  plt.$flags$ |= 1 /* isTmpDisconnected */;
@@ -976,7 +1190,7 @@ const renderVdom = (hostRef, renderFnResults) => {
976
1190
  if (!nodeToRelocate['s-ol']) {
977
1191
  // add a reference node marking this node's original location
978
1192
  // keep a reference to this node for later lookups
979
- orgLocationNode = doc.createTextNode('');
1193
+ orgLocationNode = BUILD.isDebug || BUILD.hydrateServerSide ? originalLocationDebugNode(nodeToRelocate) : doc.createTextNode('');
980
1194
  orgLocationNode['s-nr'] = nodeToRelocate;
981
1195
  nodeToRelocate.parentNode.insertBefore((nodeToRelocate['s-ol'] = orgLocationNode), nodeToRelocate);
982
1196
  }
@@ -1032,11 +1246,18 @@ const renderVdom = (hostRef, renderFnResults) => {
1032
1246
  relocateNodes.length = 0;
1033
1247
  }
1034
1248
  };
1035
- const getElement = (ref) => ( getHostRef(ref).$hostElement$ );
1249
+ // slot comment debug nodes only created with the `--debug` flag
1250
+ // otherwise these nodes are text nodes w/out content
1251
+ const slotReferenceDebugNode = (slotVNode) => doc.createComment(`<slot${slotVNode.$name$ ? ' name="' + slotVNode.$name$ + '"' : ''}> (host=${hostTagName.toLowerCase()})`);
1252
+ const originalLocationDebugNode = (nodeToRelocate) => doc.createComment(`org-location for ` + (nodeToRelocate.localName ? `<${nodeToRelocate.localName}> (host=${nodeToRelocate['s-hn']})` : `[${nodeToRelocate.textContent}]`));
1253
+ const getElement = (ref) => (BUILD.lazyLoad ? getHostRef(ref).$hostElement$ : ref);
1036
1254
  const createEvent = (ref, name, flags) => {
1037
1255
  const elm = getElement(ref);
1038
1256
  return {
1039
1257
  emit: (detail) => {
1258
+ if (BUILD.isDev && !elm.isConnected) {
1259
+ consoleDevWarn(`The "${name}" event was emitted, but the dispatcher node is no longer connected to the dom.`);
1260
+ }
1040
1261
  return emitEvent(elm, name, {
1041
1262
  bubbles: !!(flags & 4 /* Bubbles */),
1042
1263
  composed: !!(flags & 2 /* Composed */),
@@ -1052,15 +1273,15 @@ const emitEvent = (elm, name, opts) => {
1052
1273
  return ev;
1053
1274
  };
1054
1275
  const attachToAncestor = (hostRef, ancestorComponent) => {
1055
- if ( ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
1276
+ if (BUILD.asyncLoading && ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
1056
1277
  ancestorComponent['s-p'].push(new Promise(r => (hostRef.$onRenderResolve$ = r)));
1057
1278
  }
1058
1279
  };
1059
1280
  const scheduleUpdate = (hostRef, isInitialLoad) => {
1060
- {
1281
+ if (BUILD.taskQueue && BUILD.updatable) {
1061
1282
  hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
1062
1283
  }
1063
- if ( hostRef.$flags$ & 4 /* isWaitingForChildren */) {
1284
+ if (BUILD.asyncLoading && hostRef.$flags$ & 4 /* isWaitingForChildren */) {
1064
1285
  hostRef.$flags$ |= 512 /* needsRerender */;
1065
1286
  return;
1066
1287
  }
@@ -1069,30 +1290,34 @@ const scheduleUpdate = (hostRef, isInitialLoad) => {
1069
1290
  // has already fired off its lifecycle update then
1070
1291
  // fire off the initial update
1071
1292
  const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
1072
- return writeTask(dispatch) ;
1293
+ return BUILD.taskQueue ? writeTask(dispatch) : dispatch();
1073
1294
  };
1074
1295
  const dispatchHooks = (hostRef, isInitialLoad) => {
1296
+ const elm = hostRef.$hostElement$;
1075
1297
  const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
1076
- const instance = hostRef.$lazyInstance$ ;
1298
+ const instance = BUILD.lazyLoad ? hostRef.$lazyInstance$ : elm;
1077
1299
  let promise;
1078
1300
  if (isInitialLoad) {
1079
- {
1301
+ if (BUILD.lazyLoad && BUILD.hostListener) {
1080
1302
  hostRef.$flags$ |= 256 /* isListenReady */;
1081
1303
  if (hostRef.$queuedListeners$) {
1082
1304
  hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
1083
1305
  hostRef.$queuedListeners$ = null;
1084
1306
  }
1085
1307
  }
1086
- {
1308
+ emitLifecycleEvent(elm, 'componentWillLoad');
1309
+ if (BUILD.cmpWillLoad) {
1087
1310
  promise = safeCall(instance, 'componentWillLoad');
1088
1311
  }
1089
1312
  }
1090
1313
  else {
1091
- {
1314
+ emitLifecycleEvent(elm, 'componentWillUpdate');
1315
+ if (BUILD.cmpWillUpdate) {
1092
1316
  promise = safeCall(instance, 'componentWillUpdate');
1093
1317
  }
1094
1318
  }
1095
- {
1319
+ emitLifecycleEvent(elm, 'componentWillRender');
1320
+ if (BUILD.cmpWillRender) {
1096
1321
  promise = then(promise, () => safeCall(instance, 'componentWillRender'));
1097
1322
  }
1098
1323
  endSchedule();
@@ -1103,22 +1328,56 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
1103
1328
  const elm = hostRef.$hostElement$;
1104
1329
  const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
1105
1330
  const rc = elm['s-rc'];
1106
- if ( isInitialLoad) {
1331
+ if (BUILD.style && isInitialLoad) {
1107
1332
  // DOM WRITE!
1108
1333
  attachStyles(hostRef);
1109
1334
  }
1110
1335
  const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$);
1111
- {
1112
- {
1336
+ if (BUILD.isDev) {
1337
+ hostRef.$flags$ |= 1024 /* devOnRender */;
1338
+ }
1339
+ if (BUILD.hasRenderFn || BUILD.reflect) {
1340
+ if (BUILD.vdomRender || BUILD.reflect) {
1113
1341
  // looks like we've got child nodes to render into this host element
1114
1342
  // or we need to update the css class/attrs on the host element
1115
1343
  // DOM WRITE!
1116
- {
1344
+ if (BUILD.hydrateServerSide) {
1345
+ renderVdom(hostRef, await callRender(hostRef, instance));
1346
+ }
1347
+ else {
1117
1348
  renderVdom(hostRef, callRender(hostRef, instance));
1118
1349
  }
1119
1350
  }
1351
+ else {
1352
+ elm.textContent = callRender(hostRef, instance);
1353
+ }
1354
+ }
1355
+ if (BUILD.cssVarShim && plt.$cssShim$) {
1356
+ plt.$cssShim$.updateHost(elm);
1357
+ }
1358
+ if (BUILD.isDev) {
1359
+ hostRef.$renderCount$++;
1360
+ hostRef.$flags$ &= ~1024 /* devOnRender */;
1361
+ }
1362
+ if (BUILD.hydrateServerSide) {
1363
+ try {
1364
+ // manually connected child components during server-side hydrate
1365
+ serverSideConnected(elm);
1366
+ if (isInitialLoad) {
1367
+ // using only during server-side hydrate
1368
+ if (hostRef.$cmpMeta$.$flags$ & 1 /* shadowDomEncapsulation */) {
1369
+ elm['s-en'] = '';
1370
+ }
1371
+ else if (hostRef.$cmpMeta$.$flags$ & 2 /* scopedCssEncapsulation */) {
1372
+ elm['s-en'] = 'c';
1373
+ }
1374
+ }
1375
+ }
1376
+ catch (e) {
1377
+ consoleError(e, elm);
1378
+ }
1120
1379
  }
1121
- if ( rc) {
1380
+ if (BUILD.asyncLoading && rc) {
1122
1381
  // ok, so turns out there are some child host elements
1123
1382
  // waiting on this parent element to load
1124
1383
  // let's fire off all update callbacks waiting
@@ -1127,7 +1386,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
1127
1386
  }
1128
1387
  endRender();
1129
1388
  endUpdate();
1130
- {
1389
+ if (BUILD.asyncLoading) {
1131
1390
  const childrenPromises = elm['s-p'];
1132
1391
  const postUpdate = () => postUpdateComponent(hostRef);
1133
1392
  if (childrenPromises.length === 0) {
@@ -1139,60 +1398,101 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
1139
1398
  childrenPromises.length = 0;
1140
1399
  }
1141
1400
  }
1401
+ else {
1402
+ postUpdateComponent(hostRef);
1403
+ }
1142
1404
  };
1143
1405
  const callRender = (hostRef, instance) => {
1406
+ // in order for bundlers to correctly treeshake the BUILD object
1407
+ // we need to ensure BUILD is not deoptimized within a try/catch
1408
+ // https://rollupjs.org/guide/en/#treeshake tryCatchDeoptimization
1409
+ const allRenderFn = BUILD.allRenderFn ? true : false;
1410
+ const lazyLoad = BUILD.lazyLoad ? true : false;
1411
+ const taskQueue = BUILD.taskQueue ? true : false;
1412
+ const updatable = BUILD.updatable ? true : false;
1144
1413
  try {
1145
- instance = instance.render() ;
1146
- {
1414
+ renderingRef = instance;
1415
+ instance = allRenderFn ? instance.render() : instance.render && instance.render();
1416
+ if (updatable && taskQueue) {
1147
1417
  hostRef.$flags$ &= ~16 /* isQueuedForUpdate */;
1148
1418
  }
1149
- {
1419
+ if (updatable || lazyLoad) {
1150
1420
  hostRef.$flags$ |= 2 /* hasRendered */;
1151
1421
  }
1152
1422
  }
1153
1423
  catch (e) {
1154
1424
  consoleError(e, hostRef.$hostElement$);
1155
1425
  }
1426
+ renderingRef = null;
1156
1427
  return instance;
1157
1428
  };
1429
+ const getRenderingRef = () => renderingRef;
1158
1430
  const postUpdateComponent = (hostRef) => {
1159
1431
  const tagName = hostRef.$cmpMeta$.$tagName$;
1160
1432
  const elm = hostRef.$hostElement$;
1161
1433
  const endPostUpdate = createTime('postUpdate', tagName);
1162
- const instance = hostRef.$lazyInstance$ ;
1434
+ const instance = BUILD.lazyLoad ? hostRef.$lazyInstance$ : elm;
1163
1435
  const ancestorComponent = hostRef.$ancestorComponent$;
1164
- {
1436
+ if (BUILD.cmpDidRender) {
1437
+ if (BUILD.isDev) {
1438
+ hostRef.$flags$ |= 1024 /* devOnRender */;
1439
+ }
1165
1440
  safeCall(instance, 'componentDidRender');
1441
+ if (BUILD.isDev) {
1442
+ hostRef.$flags$ &= ~1024 /* devOnRender */;
1443
+ }
1166
1444
  }
1445
+ emitLifecycleEvent(elm, 'componentDidRender');
1167
1446
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
1168
1447
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
1169
- {
1448
+ if (BUILD.asyncLoading && BUILD.cssAnnotations) {
1170
1449
  // DOM WRITE!
1171
1450
  addHydratedFlag(elm);
1172
1451
  }
1173
- {
1452
+ if (BUILD.cmpDidLoad) {
1453
+ if (BUILD.isDev) {
1454
+ hostRef.$flags$ |= 2048 /* devOnDidLoad */;
1455
+ }
1174
1456
  safeCall(instance, 'componentDidLoad');
1457
+ if (BUILD.isDev) {
1458
+ hostRef.$flags$ &= ~2048 /* devOnDidLoad */;
1459
+ }
1175
1460
  }
1461
+ emitLifecycleEvent(elm, 'componentDidLoad');
1176
1462
  endPostUpdate();
1177
- {
1463
+ if (BUILD.asyncLoading) {
1178
1464
  hostRef.$onReadyResolve$(elm);
1179
1465
  if (!ancestorComponent) {
1180
- appDidLoad();
1466
+ appDidLoad(tagName);
1181
1467
  }
1182
1468
  }
1183
1469
  }
1184
1470
  else {
1185
- {
1471
+ if (BUILD.cmpDidUpdate) {
1472
+ // we've already loaded this component
1473
+ // fire off the user's componentDidUpdate method (if one was provided)
1474
+ // componentDidUpdate runs AFTER render() has been called
1475
+ // and all child components have finished updating
1476
+ if (BUILD.isDev) {
1477
+ hostRef.$flags$ |= 1024 /* devOnRender */;
1478
+ }
1186
1479
  safeCall(instance, 'componentDidUpdate');
1480
+ if (BUILD.isDev) {
1481
+ hostRef.$flags$ &= ~1024 /* devOnRender */;
1482
+ }
1187
1483
  }
1484
+ emitLifecycleEvent(elm, 'componentDidUpdate');
1188
1485
  endPostUpdate();
1189
1486
  }
1190
- {
1487
+ if (BUILD.hotModuleReplacement) {
1488
+ elm['s-hmr-load'] && elm['s-hmr-load']();
1489
+ }
1490
+ if (BUILD.method && BUILD.lazyLoad) {
1191
1491
  hostRef.$onInstanceResolve$(elm);
1192
1492
  }
1193
1493
  // load events fire from bottom to top
1194
1494
  // the deepest elements load first then bubbles up
1195
- {
1495
+ if (BUILD.asyncLoading) {
1196
1496
  if (hostRef.$onRenderResolve$) {
1197
1497
  hostRef.$onRenderResolve$();
1198
1498
  hostRef.$onRenderResolve$ = undefined;
@@ -1207,7 +1507,7 @@ const postUpdateComponent = (hostRef) => {
1207
1507
  // (⌐■_■)
1208
1508
  };
1209
1509
  const forceUpdate = (ref) => {
1210
- {
1510
+ if (BUILD.updatable) {
1211
1511
  const hostRef = getHostRef(ref);
1212
1512
  const isConnected = hostRef.$hostElement$.isConnected;
1213
1513
  if (isConnected && (hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
@@ -1216,14 +1516,21 @@ const forceUpdate = (ref) => {
1216
1516
  // Returns "true" when the forced update was successfully scheduled
1217
1517
  return isConnected;
1218
1518
  }
1519
+ return false;
1219
1520
  };
1220
1521
  const appDidLoad = (who) => {
1221
1522
  // on appload
1222
1523
  // we have finish the first big initial render
1223
- {
1524
+ if (BUILD.cssAnnotations) {
1224
1525
  addHydratedFlag(doc.documentElement);
1225
1526
  }
1527
+ if (BUILD.asyncQueue) {
1528
+ plt.$flags$ |= 2 /* appLoaded */;
1529
+ }
1226
1530
  nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } }));
1531
+ if (BUILD.profile && performance.measure) {
1532
+ performance.measure(`[Stencil] ${NAMESPACE} initial load (by ${who})`, 'st:app:start');
1533
+ }
1227
1534
  };
1228
1535
  const safeCall = (instance, method, arg) => {
1229
1536
  if (instance && instance[method]) {
@@ -1239,20 +1546,248 @@ const safeCall = (instance, method, arg) => {
1239
1546
  const then = (promise, thenFn) => {
1240
1547
  return promise && promise.then ? promise.then(thenFn) : thenFn();
1241
1548
  };
1242
- const addHydratedFlag = (elm) => ( elm.classList.add('hydrated') );
1549
+ const emitLifecycleEvent = (elm, lifecycleName) => {
1550
+ if (BUILD.lifecycleDOMEvents) {
1551
+ emitEvent(elm, 'stencil_' + lifecycleName, {
1552
+ bubbles: true,
1553
+ composed: true,
1554
+ detail: {
1555
+ namespace: NAMESPACE,
1556
+ },
1557
+ });
1558
+ }
1559
+ };
1560
+ const addHydratedFlag = (elm) => (BUILD.hydratedClass ? elm.classList.add('hydrated') : BUILD.hydratedAttribute ? elm.setAttribute('hydrated', '') : undefined);
1561
+ const serverSideConnected = (elm) => {
1562
+ const children = elm.children;
1563
+ if (children != null) {
1564
+ for (let i = 0, ii = children.length; i < ii; i++) {
1565
+ const childElm = children[i];
1566
+ if (typeof childElm.connectedCallback === 'function') {
1567
+ childElm.connectedCallback();
1568
+ }
1569
+ serverSideConnected(childElm);
1570
+ }
1571
+ }
1572
+ };
1573
+ const initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
1574
+ const endHydrate = createTime('hydrateClient', tagName);
1575
+ const shadowRoot = hostElm.shadowRoot;
1576
+ const childRenderNodes = [];
1577
+ const slotNodes = [];
1578
+ const shadowRootNodes = BUILD.shadowDom && shadowRoot ? [] : null;
1579
+ const vnode = (hostRef.$vnode$ = newVNode(tagName, null));
1580
+ if (!plt.$orgLocNodes$) {
1581
+ initializeDocumentHydrate(doc.body, (plt.$orgLocNodes$ = new Map()));
1582
+ }
1583
+ hostElm[HYDRATE_ID] = hostId;
1584
+ hostElm.removeAttribute(HYDRATE_ID);
1585
+ clientHydrate(vnode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, hostElm, hostId);
1586
+ childRenderNodes.map(c => {
1587
+ const orgLocationId = c.$hostId$ + '.' + c.$nodeId$;
1588
+ const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
1589
+ const node = c.$elm$;
1590
+ if (orgLocationNode && supportsShadow && orgLocationNode['s-en'] === '') {
1591
+ orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
1592
+ }
1593
+ if (!shadowRoot) {
1594
+ node['s-hn'] = tagName;
1595
+ if (orgLocationNode) {
1596
+ node['s-ol'] = orgLocationNode;
1597
+ node['s-ol']['s-nr'] = node;
1598
+ }
1599
+ }
1600
+ plt.$orgLocNodes$.delete(orgLocationId);
1601
+ });
1602
+ if (BUILD.shadowDom && shadowRoot) {
1603
+ shadowRootNodes.map(shadowRootNode => {
1604
+ if (shadowRootNode) {
1605
+ shadowRoot.appendChild(shadowRootNode);
1606
+ }
1607
+ });
1608
+ }
1609
+ endHydrate();
1610
+ };
1611
+ const clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId) => {
1612
+ let childNodeType;
1613
+ let childIdSplt;
1614
+ let childVNode;
1615
+ let i;
1616
+ if (node.nodeType === 1 /* ElementNode */) {
1617
+ childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
1618
+ if (childNodeType) {
1619
+ // got the node data from the element's attribute
1620
+ // `${hostId}.${nodeId}.${depth}.${index}`
1621
+ childIdSplt = childNodeType.split('.');
1622
+ if (childIdSplt[0] === hostId || childIdSplt[0] === '0') {
1623
+ childVNode = {
1624
+ $flags$: 0,
1625
+ $hostId$: childIdSplt[0],
1626
+ $nodeId$: childIdSplt[1],
1627
+ $depth$: childIdSplt[2],
1628
+ $index$: childIdSplt[3],
1629
+ $tag$: node.tagName.toLowerCase(),
1630
+ $elm$: node,
1631
+ $attrs$: null,
1632
+ $children$: null,
1633
+ $key$: null,
1634
+ $name$: null,
1635
+ $text$: null,
1636
+ };
1637
+ childRenderNodes.push(childVNode);
1638
+ node.removeAttribute(HYDRATE_CHILD_ID);
1639
+ // this is a new child vnode
1640
+ // so ensure its parent vnode has the vchildren array
1641
+ if (!parentVNode.$children$) {
1642
+ parentVNode.$children$ = [];
1643
+ }
1644
+ // add our child vnode to a specific index of the vnode's children
1645
+ parentVNode.$children$[childVNode.$index$] = childVNode;
1646
+ // this is now the new parent vnode for all the next child checks
1647
+ parentVNode = childVNode;
1648
+ if (shadowRootNodes && childVNode.$depth$ === '0') {
1649
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
1650
+ }
1651
+ }
1652
+ }
1653
+ // recursively drill down, end to start so we can remove nodes
1654
+ for (i = node.childNodes.length - 1; i >= 0; i--) {
1655
+ clientHydrate(parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node.childNodes[i], hostId);
1656
+ }
1657
+ if (node.shadowRoot) {
1658
+ // keep drilling down through the shadow root nodes
1659
+ for (i = node.shadowRoot.childNodes.length - 1; i >= 0; i--) {
1660
+ clientHydrate(parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node.shadowRoot.childNodes[i], hostId);
1661
+ }
1662
+ }
1663
+ }
1664
+ else if (node.nodeType === 8 /* CommentNode */) {
1665
+ // `${COMMENT_TYPE}.${hostId}.${nodeId}.${depth}.${index}`
1666
+ childIdSplt = node.nodeValue.split('.');
1667
+ if (childIdSplt[1] === hostId || childIdSplt[1] === '0') {
1668
+ // comment node for either the host id or a 0 host id
1669
+ childNodeType = childIdSplt[0];
1670
+ childVNode = {
1671
+ $flags$: 0,
1672
+ $hostId$: childIdSplt[1],
1673
+ $nodeId$: childIdSplt[2],
1674
+ $depth$: childIdSplt[3],
1675
+ $index$: childIdSplt[4],
1676
+ $elm$: node,
1677
+ $attrs$: null,
1678
+ $children$: null,
1679
+ $key$: null,
1680
+ $name$: null,
1681
+ $tag$: null,
1682
+ $text$: null,
1683
+ };
1684
+ if (childNodeType === TEXT_NODE_ID) {
1685
+ childVNode.$elm$ = node.nextSibling;
1686
+ if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {
1687
+ childVNode.$text$ = childVNode.$elm$.textContent;
1688
+ childRenderNodes.push(childVNode);
1689
+ // remove the text comment since it's no longer needed
1690
+ node.remove();
1691
+ if (!parentVNode.$children$) {
1692
+ parentVNode.$children$ = [];
1693
+ }
1694
+ parentVNode.$children$[childVNode.$index$] = childVNode;
1695
+ if (shadowRootNodes && childVNode.$depth$ === '0') {
1696
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
1697
+ }
1698
+ }
1699
+ }
1700
+ else if (childVNode.$hostId$ === hostId) {
1701
+ // this comment node is specifcally for this host id
1702
+ if (childNodeType === SLOT_NODE_ID) {
1703
+ // `${SLOT_NODE_ID}.${hostId}.${nodeId}.${depth}.${index}.${slotName}`;
1704
+ childVNode.$tag$ = 'slot';
1705
+ if (childIdSplt[5]) {
1706
+ node['s-sn'] = childVNode.$name$ = childIdSplt[5];
1707
+ }
1708
+ else {
1709
+ node['s-sn'] = '';
1710
+ }
1711
+ node['s-sr'] = true;
1712
+ if (BUILD.shadowDom && shadowRootNodes) {
1713
+ // browser support shadowRoot and this is a shadow dom component
1714
+ // create an actual slot element
1715
+ childVNode.$elm$ = doc.createElement(childVNode.$tag$);
1716
+ if (childVNode.$name$) {
1717
+ // add the slot name attribute
1718
+ childVNode.$elm$.setAttribute('name', childVNode.$name$);
1719
+ }
1720
+ // insert the new slot element before the slot comment
1721
+ node.parentNode.insertBefore(childVNode.$elm$, node);
1722
+ // remove the slot comment since it's not needed for shadow
1723
+ node.remove();
1724
+ if (childVNode.$depth$ === '0') {
1725
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
1726
+ }
1727
+ }
1728
+ slotNodes.push(childVNode);
1729
+ if (!parentVNode.$children$) {
1730
+ parentVNode.$children$ = [];
1731
+ }
1732
+ parentVNode.$children$[childVNode.$index$] = childVNode;
1733
+ }
1734
+ else if (childNodeType === CONTENT_REF_ID) {
1735
+ // `${CONTENT_REF_ID}.${hostId}`;
1736
+ if (BUILD.shadowDom && shadowRootNodes) {
1737
+ // remove the content ref comment since it's not needed for shadow
1738
+ node.remove();
1739
+ }
1740
+ else if (BUILD.slotRelocation) {
1741
+ hostElm['s-cr'] = node;
1742
+ node['s-cn'] = true;
1743
+ }
1744
+ }
1745
+ }
1746
+ }
1747
+ }
1748
+ else if (parentVNode && parentVNode.$tag$ === 'style') {
1749
+ const vnode = newVNode(null, node.textContent);
1750
+ vnode.$elm$ = node;
1751
+ vnode.$index$ = '0';
1752
+ parentVNode.$children$ = [vnode];
1753
+ }
1754
+ };
1755
+ const initializeDocumentHydrate = (node, orgLocNodes) => {
1756
+ if (node.nodeType === 1 /* ElementNode */) {
1757
+ let i = 0;
1758
+ for (; i < node.childNodes.length; i++) {
1759
+ initializeDocumentHydrate(node.childNodes[i], orgLocNodes);
1760
+ }
1761
+ if (node.shadowRoot) {
1762
+ for (i = 0; i < node.shadowRoot.childNodes.length; i++) {
1763
+ initializeDocumentHydrate(node.shadowRoot.childNodes[i], orgLocNodes);
1764
+ }
1765
+ }
1766
+ }
1767
+ else if (node.nodeType === 8 /* CommentNode */) {
1768
+ const childIdSplt = node.nodeValue.split('.');
1769
+ if (childIdSplt[0] === ORG_LOCATION_ID) {
1770
+ orgLocNodes.set(childIdSplt[1] + '.' + childIdSplt[2], node);
1771
+ node.nodeValue = '';
1772
+ // useful to know if the original location is
1773
+ // the root light-dom of a shadow dom component
1774
+ node['s-en'] = childIdSplt[3];
1775
+ }
1776
+ }
1777
+ };
1243
1778
  const parsePropertyValue = (propValue, propType) => {
1244
1779
  // ensure this value is of the correct prop type
1245
1780
  if (propValue != null && !isComplexType(propValue)) {
1246
- if ( propType & 4 /* Boolean */) {
1781
+ if (BUILD.propBoolean && propType & 4 /* Boolean */) {
1247
1782
  // per the HTML spec, any string value means it is a boolean true value
1248
1783
  // but we'll cheat here and say that the string "false" is the boolean false
1249
1784
  return propValue === 'false' ? false : propValue === '' || !!propValue;
1250
1785
  }
1251
- if ( propType & 2 /* Number */) {
1786
+ if (BUILD.propNumber && propType & 2 /* Number */) {
1252
1787
  // force it to be a number
1253
1788
  return parseFloat(propValue);
1254
1789
  }
1255
- if ( propType & 1 /* String */) {
1790
+ if (BUILD.propString && propType & 1 /* String */) {
1256
1791
  // could have been passed as a number or boolean
1257
1792
  // but we still want it as a string
1258
1793
  return String(propValue);
@@ -1268,18 +1803,26 @@ const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propNam
1268
1803
  const setValue = (ref, propName, newVal, cmpMeta) => {
1269
1804
  // check our new property value against our internal value
1270
1805
  const hostRef = getHostRef(ref);
1271
- const elm = hostRef.$hostElement$ ;
1806
+ const elm = BUILD.lazyLoad ? hostRef.$hostElement$ : ref;
1272
1807
  const oldVal = hostRef.$instanceValues$.get(propName);
1273
1808
  const flags = hostRef.$flags$;
1274
- const instance = hostRef.$lazyInstance$ ;
1809
+ const instance = BUILD.lazyLoad ? hostRef.$lazyInstance$ : elm;
1275
1810
  newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
1276
- if (( !(flags & 8 /* isConstructingInstance */) || oldVal === undefined) && newVal !== oldVal) {
1811
+ if ((!BUILD.lazyLoad || !(flags & 8 /* isConstructingInstance */) || oldVal === undefined) && newVal !== oldVal) {
1277
1812
  // gadzooks! the property's value has changed!!
1278
1813
  // set our new value!
1279
1814
  hostRef.$instanceValues$.set(propName, newVal);
1280
- if ( instance) {
1815
+ if (BUILD.isDev) {
1816
+ if (hostRef.$flags$ & 1024 /* devOnRender */) {
1817
+ consoleDevWarn(`The state/prop "${propName}" changed during rendering. This can potentially lead to infinite-loops and other bugs.`, '\nElement', elm, '\nNew value', newVal, '\nOld value', oldVal);
1818
+ }
1819
+ else if (hostRef.$flags$ & 2048 /* devOnDidLoad */) {
1820
+ consoleDevWarn(`The state/prop "${propName}" changed during "componentDidLoad()", this triggers extra re-renders, try to setup on "componentWillLoad()"`, '\nElement', elm, '\nNew value', newVal, '\nOld value', oldVal);
1821
+ }
1822
+ }
1823
+ if (!BUILD.lazyLoad || instance) {
1281
1824
  // get an array of method names of watch functions to call
1282
- if ( cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
1825
+ if (BUILD.watchCallback && cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
1283
1826
  const watchMethods = cmpMeta.$watchers$[propName];
1284
1827
  if (watchMethods) {
1285
1828
  // this instance is watching for when this property changed
@@ -1294,7 +1837,12 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
1294
1837
  });
1295
1838
  }
1296
1839
  }
1297
- if ( (flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1840
+ if (BUILD.updatable && (flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1841
+ if (BUILD.cmpShouldUpdate && instance.componentShouldUpdate) {
1842
+ if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
1843
+ return;
1844
+ }
1845
+ }
1298
1846
  // looks like this value actually changed, so we've got work to do!
1299
1847
  // but only if we've already rendered, otherwise just chill out
1300
1848
  // queue that we need to do an update, but don't worry about queuing
@@ -1305,15 +1853,15 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
1305
1853
  }
1306
1854
  };
1307
1855
  const proxyComponent = (Cstr, cmpMeta, flags) => {
1308
- if ( cmpMeta.$members$) {
1309
- if ( Cstr.watchers) {
1856
+ if (BUILD.member && cmpMeta.$members$) {
1857
+ if (BUILD.watchCallback && Cstr.watchers) {
1310
1858
  cmpMeta.$watchers$ = Cstr.watchers;
1311
1859
  }
1312
1860
  // It's better to have a const than two Object.entries()
1313
1861
  const members = Object.entries(cmpMeta.$members$);
1314
1862
  const prototype = Cstr.prototype;
1315
1863
  members.map(([memberName, [memberFlags]]) => {
1316
- if ( (memberFlags & 31 /* Prop */ || (( flags & 2 /* proxyState */) && memberFlags & 32 /* State */))) {
1864
+ if ((BUILD.prop || BUILD.state) && (memberFlags & 31 /* Prop */ || ((!BUILD.lazyLoad || flags & 2 /* proxyState */) && memberFlags & 32 /* State */))) {
1317
1865
  // proxyComponent - prop
1318
1866
  Object.defineProperty(prototype, memberName, {
1319
1867
  get() {
@@ -1321,6 +1869,15 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1321
1869
  return getValue(this, memberName);
1322
1870
  },
1323
1871
  set(newValue) {
1872
+ if (
1873
+ // only during dev time
1874
+ BUILD.isDev &&
1875
+ // we are proxing the instance (not element)
1876
+ (flags & 1 /* isElementConstructor */) === 0 &&
1877
+ // the member is a non-mutable prop
1878
+ (memberFlags & (31 /* Prop */ | 1024 /* Mutable */)) === 31 /* Prop */) {
1879
+ consoleDevWarn(`@Prop() "${memberName}" on "${cmpMeta.$tagName$}" cannot be modified.\nFurther information: https://stenciljs.com/docs/properties#prop-mutability`);
1880
+ }
1324
1881
  // proxyComponent, set value
1325
1882
  setValue(this, memberName, newValue, cmpMeta);
1326
1883
  },
@@ -1328,7 +1885,7 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1328
1885
  enumerable: true,
1329
1886
  });
1330
1887
  }
1331
- else if ( flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
1888
+ else if (BUILD.lazyLoad && BUILD.method && flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
1332
1889
  // proxyComponent - method
1333
1890
  Object.defineProperty(prototype, memberName, {
1334
1891
  value(...args) {
@@ -1338,7 +1895,7 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1338
1895
  });
1339
1896
  }
1340
1897
  });
1341
- if ( ( flags & 1 /* isElementConstructor */)) {
1898
+ if (BUILD.observeAttribute && (!BUILD.lazyLoad || flags & 1 /* isElementConstructor */)) {
1342
1899
  const attrNameToPropName = new Map();
1343
1900
  prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
1344
1901
  plt.jmp(() => {
@@ -1353,7 +1910,7 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1353
1910
  .map(([propName, m]) => {
1354
1911
  const attrName = m[1] || propName;
1355
1912
  attrNameToPropName.set(attrName, propName);
1356
- if ( m[0] & 512 /* ReflectAttr */) {
1913
+ if (BUILD.reflect && m[0] & 512 /* ReflectAttr */) {
1357
1914
  cmpMeta.$attrsToReflect$.push([propName, attrName]);
1358
1915
  }
1359
1916
  return attrName;
@@ -1364,25 +1921,28 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1364
1921
  };
1365
1922
  const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
1366
1923
  // initializeComponent
1367
- if ( (hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
1368
- {
1924
+ if ((BUILD.lazyLoad || BUILD.hydrateServerSide || BUILD.style) && (hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
1925
+ if (BUILD.lazyLoad || BUILD.hydrateClientSide) {
1369
1926
  // we haven't initialized this element yet
1370
1927
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1371
1928
  // lazy loaded components
1372
1929
  // request the component's implementation to be
1373
1930
  // wired up with the host element
1374
- Cstr = loadModule(cmpMeta);
1931
+ Cstr = loadModule(cmpMeta, hostRef, hmrVersionId);
1375
1932
  if (Cstr.then) {
1376
1933
  // Await creates a micro-task avoid if possible
1377
- const endLoad = uniqueTime();
1934
+ const endLoad = uniqueTime(`st:load:${cmpMeta.$tagName$}:${hostRef.$modeName$}`, `[Stencil] Load module for <${cmpMeta.$tagName$}>`);
1378
1935
  Cstr = await Cstr;
1379
1936
  endLoad();
1380
1937
  }
1381
- if ( !Cstr.isProxied) {
1938
+ if ((BUILD.isDev || BUILD.isDebug) && !Cstr) {
1939
+ throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
1940
+ }
1941
+ if (BUILD.member && !Cstr.isProxied) {
1382
1942
  // we'eve never proxied this Constructor before
1383
1943
  // let's add the getters/setters to its prototype before
1384
1944
  // the first time we create an instance of the implementation
1385
- {
1945
+ if (BUILD.watchCallback) {
1386
1946
  cmpMeta.$watchers$ = Cstr.watchers;
1387
1947
  }
1388
1948
  proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
@@ -1392,7 +1952,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
1392
1952
  // ok, time to construct the instance
1393
1953
  // but let's keep track of when we start and stop
1394
1954
  // so that the getters/setters don't incorrectly step on data
1395
- {
1955
+ if (BUILD.member) {
1396
1956
  hostRef.$flags$ |= 8 /* isConstructingInstance */;
1397
1957
  }
1398
1958
  // construct the lazy-loaded component implementation
@@ -1405,21 +1965,35 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
1405
1965
  catch (e) {
1406
1966
  consoleError(e);
1407
1967
  }
1408
- {
1968
+ if (BUILD.member) {
1409
1969
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
1410
1970
  }
1411
- {
1971
+ if (BUILD.watchCallback) {
1412
1972
  hostRef.$flags$ |= 128 /* isWatchReady */;
1413
1973
  }
1414
1974
  endNewInstance();
1415
1975
  fireConnectedCallback(hostRef.$lazyInstance$);
1416
1976
  }
1417
- if ( Cstr.style) {
1977
+ else {
1978
+ // sync constructor component
1979
+ Cstr = elm.constructor;
1980
+ hostRef.$flags$ |= 128 /* isWatchReady */ | 32 /* hasInitializedComponent */;
1981
+ }
1982
+ if (BUILD.style && Cstr.style) {
1418
1983
  // this component has styles but we haven't registered them yet
1419
1984
  let style = Cstr.style;
1420
- const scopeId = getScopeId(cmpMeta);
1985
+ if (BUILD.mode && typeof style !== 'string') {
1986
+ style = style[(hostRef.$modeName$ = computeMode(elm))];
1987
+ if (BUILD.hydrateServerSide && hostRef.$modeName$) {
1988
+ elm.setAttribute('s-mode', hostRef.$modeName$);
1989
+ }
1990
+ }
1991
+ const scopeId = getScopeId(cmpMeta, hostRef.$modeName$);
1421
1992
  if (!styles.has(scopeId)) {
1422
1993
  const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
1994
+ if (!BUILD.hydrateServerSide && BUILD.shadowDom && BUILD.shadowDomShim && cmpMeta.$flags$ & 8 /* needsShadowDomShim */) {
1995
+ style = await import('./shadow-css-3ef739e8.js').then(m => m.scopeCss(style, scopeId, false));
1996
+ }
1423
1997
  registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
1424
1998
  endRegisterStyles();
1425
1999
  }
@@ -1428,7 +2002,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
1428
2002
  // we've successfully created a lazy instance
1429
2003
  const ancestorComponent = hostRef.$ancestorComponent$;
1430
2004
  const schedule = () => scheduleUpdate(hostRef, true);
1431
- if ( ancestorComponent && ancestorComponent['s-rc']) {
2005
+ if (BUILD.asyncLoading && ancestorComponent && ancestorComponent['s-rc']) {
1432
2006
  // this is the intial load and this component it has an ancestor component
1433
2007
  // but the ancestor component has NOT fired its will update lifecycle yet
1434
2008
  // so let's just cool our jets and wait for the ancestor to continue first
@@ -1442,7 +2016,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
1442
2016
  }
1443
2017
  };
1444
2018
  const fireConnectedCallback = (instance) => {
1445
- {
2019
+ if (BUILD.lazyLoad && BUILD.connectedCallback) {
1446
2020
  safeCall(instance, 'connectedCallback');
1447
2021
  }
1448
2022
  };
@@ -1451,26 +2025,41 @@ const connectedCallback = (elm) => {
1451
2025
  const hostRef = getHostRef(elm);
1452
2026
  const cmpMeta = hostRef.$cmpMeta$;
1453
2027
  const endConnected = createTime('connectedCallback', cmpMeta.$tagName$);
2028
+ if (BUILD.hostListenerTargetParent) {
2029
+ // only run if we have listeners being attached to a parent
2030
+ addHostEventListeners(elm, hostRef, cmpMeta.$listeners$, true);
2031
+ }
1454
2032
  if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
1455
2033
  // first time this component has connected
1456
2034
  hostRef.$flags$ |= 1 /* hasConnected */;
1457
- {
2035
+ let hostId;
2036
+ if (BUILD.hydrateClientSide) {
2037
+ hostId = elm.getAttribute(HYDRATE_ID);
2038
+ if (hostId) {
2039
+ if (BUILD.shadowDom && supportsShadow && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
2040
+ const scopeId = BUILD.mode ? addStyle(elm.shadowRoot, cmpMeta, elm.getAttribute('s-mode')) : addStyle(elm.shadowRoot, cmpMeta);
2041
+ elm.classList.remove(scopeId + '-h', scopeId + '-s');
2042
+ }
2043
+ initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);
2044
+ }
2045
+ }
2046
+ if (BUILD.slotRelocation && !hostId) {
1458
2047
  // initUpdate
1459
2048
  // if the slot polyfill is required we'll need to put some nodes
1460
2049
  // in here to act as original content anchors as we move nodes around
1461
2050
  // host element has been connected to the DOM
1462
- if ( ( cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */))) {
2051
+ if (BUILD.hydrateServerSide || ((BUILD.slot || BUILD.shadowDom) && cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */))) {
1463
2052
  setContentReference(elm);
1464
2053
  }
1465
2054
  }
1466
- {
2055
+ if (BUILD.asyncLoading) {
1467
2056
  // find the first ancestor component (if there is one) and register
1468
2057
  // this component as one of the actively loading child components for its ancestor
1469
2058
  let ancestorComponent = elm;
1470
2059
  while ((ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host)) {
1471
2060
  // climb up the ancestors looking for the first
1472
2061
  // component that hasn't finished its lifecycle update yet
1473
- if (
2062
+ if ((BUILD.hydrateClientSide && ancestorComponent.nodeType === 1 /* ElementNode */ && ancestorComponent.hasAttribute('s-id') && ancestorComponent['s-p']) ||
1474
2063
  ancestorComponent['s-p']) {
1475
2064
  // we found this components first ancestor component
1476
2065
  // keep a reference to this component's ancestor component
@@ -1481,7 +2070,7 @@ const connectedCallback = (elm) => {
1481
2070
  }
1482
2071
  // Lazy properties
1483
2072
  // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1484
- if ( cmpMeta.$members$) {
2073
+ if (BUILD.prop && BUILD.lazyLoad && !BUILD.hydrateServerSide && cmpMeta.$members$) {
1485
2074
  Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1486
2075
  if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
1487
2076
  const value = elm[memberName];
@@ -1490,7 +2079,14 @@ const connectedCallback = (elm) => {
1490
2079
  }
1491
2080
  });
1492
2081
  }
1493
- {
2082
+ if (BUILD.initializeNextTick) {
2083
+ // connectedCallback, taskQueue, initialLoad
2084
+ // angular sets attribute AFTER connectCallback
2085
+ // https://github.com/angular/angular/issues/18909
2086
+ // https://github.com/angular/angular/issues/19940
2087
+ nextTick(() => initializeComponent(elm, hostRef, cmpMeta));
2088
+ }
2089
+ else {
1494
2090
  initializeComponent(elm, hostRef, cmpMeta);
1495
2091
  }
1496
2092
  }
@@ -1498,7 +2094,7 @@ const connectedCallback = (elm) => {
1498
2094
  // not the first time this has connected
1499
2095
  // reattach any event listeners to the host
1500
2096
  // since they would have been removed when disconnected
1501
- addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
2097
+ addHostEventListeners(elm, hostRef, cmpMeta.$listeners$, false);
1502
2098
  // fire off connectedCallback() on component instance
1503
2099
  fireConnectedCallback(hostRef.$lazyInstance$);
1504
2100
  }
@@ -1512,27 +2108,231 @@ const setContentReference = (elm) => {
1512
2108
  // let's pick out the inner content for slot projection
1513
2109
  // create a node to represent where the original
1514
2110
  // content was first placed, which is useful later on
1515
- const contentRefElm = (elm['s-cr'] = doc.createComment( ''));
2111
+ const contentRefElm = (elm['s-cr'] = doc.createComment(BUILD.isDebug ? `content-ref (host=${elm.localName})` : ''));
1516
2112
  contentRefElm['s-cn'] = true;
1517
2113
  elm.insertBefore(contentRefElm, elm.firstChild);
1518
2114
  };
1519
2115
  const disconnectedCallback = (elm) => {
1520
2116
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1521
2117
  const hostRef = getHostRef(elm);
1522
- const instance = hostRef.$lazyInstance$ ;
1523
- {
2118
+ const instance = BUILD.lazyLoad ? hostRef.$lazyInstance$ : elm;
2119
+ if (BUILD.hostListener) {
1524
2120
  if (hostRef.$rmListeners$) {
1525
2121
  hostRef.$rmListeners$.map(rmListener => rmListener());
1526
2122
  hostRef.$rmListeners$ = undefined;
1527
2123
  }
1528
2124
  }
1529
- {
2125
+ // clear CSS var-shim tracking
2126
+ if (BUILD.cssVarShim && plt.$cssShim$) {
2127
+ plt.$cssShim$.removeHost(elm);
2128
+ }
2129
+ if (BUILD.lazyLoad && BUILD.disconnectedCallback) {
1530
2130
  safeCall(instance, 'disconnectedCallback');
1531
2131
  }
2132
+ if (BUILD.cmpDidUnload) {
2133
+ safeCall(instance, 'componentDidUnload');
2134
+ }
2135
+ }
2136
+ };
2137
+ const defineCustomElement = (Cstr, compactMeta) => {
2138
+ customElements.define(compactMeta[1], proxyCustomElement(Cstr, compactMeta));
2139
+ };
2140
+ const proxyCustomElement = (Cstr, compactMeta) => {
2141
+ const cmpMeta = {
2142
+ $flags$: compactMeta[0],
2143
+ $tagName$: compactMeta[1],
2144
+ };
2145
+ if (BUILD.member) {
2146
+ cmpMeta.$members$ = compactMeta[2];
2147
+ }
2148
+ if (BUILD.hostListener) {
2149
+ cmpMeta.$listeners$ = compactMeta[3];
2150
+ }
2151
+ if (BUILD.watchCallback) {
2152
+ cmpMeta.$watchers$ = Cstr.$watchers$;
2153
+ }
2154
+ if (BUILD.reflect) {
2155
+ cmpMeta.$attrsToReflect$ = [];
2156
+ }
2157
+ if (BUILD.shadowDom && !supportsShadow && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
2158
+ cmpMeta.$flags$ |= 8 /* needsShadowDomShim */;
1532
2159
  }
2160
+ const originalConnectedCallback = Cstr.prototype.connectedCallback;
2161
+ const originalDisconnectedCallback = Cstr.prototype.disconnectedCallback;
2162
+ Object.assign(Cstr.prototype, {
2163
+ __registerHost() {
2164
+ registerHost(this, cmpMeta);
2165
+ },
2166
+ connectedCallback() {
2167
+ connectedCallback(this);
2168
+ if (BUILD.connectedCallback && originalConnectedCallback) {
2169
+ originalConnectedCallback.call(this);
2170
+ }
2171
+ },
2172
+ disconnectedCallback() {
2173
+ disconnectedCallback(this);
2174
+ if (BUILD.disconnectedCallback && originalDisconnectedCallback) {
2175
+ originalDisconnectedCallback.call(this);
2176
+ }
2177
+ },
2178
+ });
2179
+ Cstr.is = cmpMeta.$tagName$;
2180
+ return proxyComponent(Cstr, cmpMeta, 1 /* isElementConstructor */ | 2 /* proxyState */);
2181
+ };
2182
+ const forceModeUpdate = (elm) => {
2183
+ if (BUILD.style && BUILD.mode && !BUILD.lazyLoad) {
2184
+ const mode = computeMode(elm);
2185
+ const hostRef = getHostRef(elm);
2186
+ if (hostRef.$modeName$ !== mode) {
2187
+ const cmpMeta = hostRef.$cmpMeta$;
2188
+ const oldScopeId = elm['s-sc'];
2189
+ const scopeId = getScopeId(cmpMeta, mode);
2190
+ const style = elm.constructor.style[mode];
2191
+ const flags = cmpMeta.$flags$;
2192
+ if (style) {
2193
+ if (!styles.has(scopeId)) {
2194
+ registerStyle(scopeId, style, !!(flags & 1 /* shadowDomEncapsulation */));
2195
+ }
2196
+ hostRef.$modeName$ = mode;
2197
+ elm.classList.remove(oldScopeId + '-h', oldScopeId + '-s');
2198
+ attachStyles(hostRef);
2199
+ forceUpdate(elm);
2200
+ }
2201
+ }
2202
+ }
2203
+ };
2204
+ const attachShadow = (el) => {
2205
+ if (supportsShadow) {
2206
+ el.attachShadow({ mode: 'open' });
2207
+ }
2208
+ else {
2209
+ el.shadowRoot = el;
2210
+ }
2211
+ };
2212
+ const hmrStart = (elm, cmpMeta, hmrVersionId) => {
2213
+ // ¯\_(ツ)_/¯
2214
+ const hostRef = getHostRef(elm);
2215
+ // reset state flags to only have been connected
2216
+ hostRef.$flags$ = 1 /* hasConnected */;
2217
+ // TODO
2218
+ // detatch any event listeners that may have been added
2219
+ // because we're not passing an exact event name it'll
2220
+ // remove all of this element's event, which is good
2221
+ // create a callback for when this component finishes hmr
2222
+ elm['s-hmr-load'] = () => {
2223
+ // finished hmr for this element
2224
+ delete elm['s-hmr-load'];
2225
+ };
2226
+ // re-initialize the component
2227
+ initializeComponent(elm, hostRef, cmpMeta, hmrVersionId);
2228
+ };
2229
+ const patchCloneNode = (HostElementPrototype) => {
2230
+ const orgCloneNode = HostElementPrototype.cloneNode;
2231
+ HostElementPrototype.cloneNode = function (deep) {
2232
+ const srcNode = this;
2233
+ const isShadowDom = BUILD.shadowDom ? srcNode.shadowRoot && supportsShadow : false;
2234
+ const clonedNode = orgCloneNode.call(srcNode, isShadowDom ? deep : false);
2235
+ if (BUILD.slot && !isShadowDom && deep) {
2236
+ let i = 0;
2237
+ let slotted, nonStencilNode;
2238
+ let stencilPrivates = ['s-id', 's-cr', 's-lr', 's-rc', 's-sc', 's-p', 's-cn', 's-sr', 's-sn', 's-hn', 's-ol', 's-nr', 's-si'];
2239
+ for (; i < srcNode.childNodes.length; i++) {
2240
+ slotted = srcNode.childNodes[i]['s-nr'];
2241
+ nonStencilNode = stencilPrivates.every((privateField) => !srcNode.childNodes[i][privateField]);
2242
+ if (slotted) {
2243
+ if (BUILD.appendChildSlotFix && clonedNode.__appendChild) {
2244
+ clonedNode.__appendChild(slotted.cloneNode(true));
2245
+ }
2246
+ else {
2247
+ clonedNode.appendChild(slotted.cloneNode(true));
2248
+ }
2249
+ }
2250
+ if (nonStencilNode) {
2251
+ clonedNode.appendChild(srcNode.childNodes[i].cloneNode(true));
2252
+ }
2253
+ }
2254
+ }
2255
+ return clonedNode;
2256
+ };
2257
+ };
2258
+ const patchSlotAppendChild = (HostElementPrototype) => {
2259
+ HostElementPrototype.__appendChild = HostElementPrototype.appendChild;
2260
+ HostElementPrototype.appendChild = function (newChild) {
2261
+ const slotName = (newChild['s-sn'] = getSlotName(newChild));
2262
+ const slotNode = getHostSlotNode(this.childNodes, slotName);
2263
+ if (slotNode) {
2264
+ const slotChildNodes = getHostSlotChildNodes(slotNode, slotName);
2265
+ const appendAfter = slotChildNodes[slotChildNodes.length - 1];
2266
+ return appendAfter.parentNode.insertBefore(newChild, appendAfter.nextSibling);
2267
+ }
2268
+ return this.__appendChild(newChild);
2269
+ };
2270
+ };
2271
+ const patchChildSlotNodes = (elm, cmpMeta) => {
2272
+ class FakeNodeList extends Array {
2273
+ item(n) {
2274
+ return this[n];
2275
+ }
2276
+ }
2277
+ if (cmpMeta.$flags$ & 8 /* needsShadowDomShim */) {
2278
+ const childNodesFn = elm.__lookupGetter__('childNodes');
2279
+ Object.defineProperty(elm, 'children', {
2280
+ get() {
2281
+ return this.childNodes.map((n) => n.nodeType === 1);
2282
+ },
2283
+ });
2284
+ Object.defineProperty(elm, 'childElementCount', {
2285
+ get() {
2286
+ return elm.children.length;
2287
+ },
2288
+ });
2289
+ Object.defineProperty(elm, 'childNodes', {
2290
+ get() {
2291
+ const childNodes = childNodesFn.call(this);
2292
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0 && getHostRef(this).$flags$ & 2 /* hasRendered */) {
2293
+ const result = new FakeNodeList();
2294
+ for (let i = 0; i < childNodes.length; i++) {
2295
+ const slot = childNodes[i]['s-nr'];
2296
+ if (slot) {
2297
+ result.push(slot);
2298
+ }
2299
+ }
2300
+ return result;
2301
+ }
2302
+ return FakeNodeList.from(childNodes);
2303
+ },
2304
+ });
2305
+ }
2306
+ };
2307
+ const getSlotName = (node) => node['s-sn'] || (node.nodeType === 1 && node.getAttribute('slot')) || '';
2308
+ const getHostSlotNode = (childNodes, slotName) => {
2309
+ let i = 0;
2310
+ let childNode;
2311
+ for (; i < childNodes.length; i++) {
2312
+ childNode = childNodes[i];
2313
+ if (childNode['s-sr'] && childNode['s-sn'] === slotName) {
2314
+ return childNode;
2315
+ }
2316
+ childNode = getHostSlotNode(childNode.childNodes, slotName);
2317
+ if (childNode) {
2318
+ return childNode;
2319
+ }
2320
+ }
2321
+ return null;
2322
+ };
2323
+ const getHostSlotChildNodes = (n, slotName) => {
2324
+ const childNodes = [n];
2325
+ while ((n = n.nextSibling) && n['s-sn'] === slotName) {
2326
+ childNodes.push(n);
2327
+ }
2328
+ return childNodes;
1533
2329
  };
1534
2330
  const bootstrapLazy = (lazyBundles, options = {}) => {
1535
- const endBootstrap = createTime();
2331
+ if (BUILD.profile && performance.mark) {
2332
+ performance.mark('st:app:start');
2333
+ }
2334
+ installDevTools();
2335
+ const endBootstrap = createTime('bootstrapLazy');
1536
2336
  const cmpTags = [];
1537
2337
  const exclude = options.exclude || [];
1538
2338
  const customElements = win.customElements;
@@ -1540,10 +2340,27 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1540
2340
  const metaCharset = /*@__PURE__*/ head.querySelector('meta[charset]');
1541
2341
  const visibilityStyle = /*@__PURE__*/ doc.createElement('style');
1542
2342
  const deferredConnectedCallbacks = [];
2343
+ const styles = /*@__PURE__*/ doc.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
1543
2344
  let appLoadFallback;
1544
2345
  let isBootstrapping = true;
2346
+ let i = 0;
1545
2347
  Object.assign(plt, options);
1546
2348
  plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
2349
+ if (BUILD.asyncQueue) {
2350
+ if (options.syncQueue) {
2351
+ plt.$flags$ |= 4 /* queueSync */;
2352
+ }
2353
+ }
2354
+ if (BUILD.hydrateClientSide) {
2355
+ // If the app is already hydrated there is not point to disable the
2356
+ // async queue. This will improve the first input delay
2357
+ plt.$flags$ |= 2 /* appLoaded */;
2358
+ }
2359
+ if (BUILD.hydrateClientSide && BUILD.shadowDom) {
2360
+ for (; i < styles.length; i++) {
2361
+ registerStyle(styles[i].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles[i].innerHTML), true);
2362
+ }
2363
+ }
1547
2364
  lazyBundles.map(lazyBundle => lazyBundle[1].map(compactMeta => {
1548
2365
  const cmpMeta = {
1549
2366
  $flags$: compactMeta[0],
@@ -1551,19 +2368,22 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1551
2368
  $members$: compactMeta[2],
1552
2369
  $listeners$: compactMeta[3],
1553
2370
  };
1554
- {
2371
+ if (BUILD.member) {
1555
2372
  cmpMeta.$members$ = compactMeta[2];
1556
2373
  }
1557
- {
2374
+ if (BUILD.hostListener) {
1558
2375
  cmpMeta.$listeners$ = compactMeta[3];
1559
2376
  }
1560
- {
2377
+ if (BUILD.reflect) {
1561
2378
  cmpMeta.$attrsToReflect$ = [];
1562
2379
  }
1563
- {
2380
+ if (BUILD.watchCallback) {
1564
2381
  cmpMeta.$watchers$ = {};
1565
2382
  }
1566
- const tagName = cmpMeta.$tagName$;
2383
+ if (BUILD.shadowDom && !supportsShadow && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
2384
+ cmpMeta.$flags$ |= 8 /* needsShadowDomShim */;
2385
+ }
2386
+ const tagName = BUILD.transformTagName && options.transformTagName ? options.transformTagName(cmpMeta.$tagName$) : cmpMeta.$tagName$;
1567
2387
  const HostElement = class extends HTMLElement {
1568
2388
  // StencilLazyHost
1569
2389
  constructor(self) {
@@ -1571,16 +2391,28 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1571
2391
  super(self);
1572
2392
  self = this;
1573
2393
  registerHost(self, cmpMeta);
1574
- if ( cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
2394
+ if (BUILD.shadowDom && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
1575
2395
  // this component is using shadow dom
1576
2396
  // and this browser supports shadow dom
1577
2397
  // add the read-only property "shadowRoot" to the host element
1578
2398
  // adding the shadow root build conditionals to minimize runtime
1579
- {
1580
- {
2399
+ if (supportsShadow) {
2400
+ if (BUILD.shadowDelegatesFocus) {
2401
+ self.attachShadow({
2402
+ mode: 'open',
2403
+ delegatesFocus: !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */),
2404
+ });
2405
+ }
2406
+ else {
1581
2407
  self.attachShadow({ mode: 'open' });
1582
2408
  }
1583
2409
  }
2410
+ else if (!BUILD.hydrateServerSide && !('shadowRoot' in self)) {
2411
+ self.shadowRoot = self;
2412
+ }
2413
+ }
2414
+ if (BUILD.slotChildNodesFix) {
2415
+ patchChildSlotNodes(self, cmpMeta);
1584
2416
  }
1585
2417
  }
1586
2418
  connectedCallback() {
@@ -1603,13 +2435,24 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1603
2435
  return getHostRef(this).$onReadyPromise$;
1604
2436
  }
1605
2437
  };
2438
+ if (BUILD.cloneNodeFix) {
2439
+ patchCloneNode(HostElement.prototype);
2440
+ }
2441
+ if (BUILD.appendChildSlotFix) {
2442
+ patchSlotAppendChild(HostElement.prototype);
2443
+ }
2444
+ if (BUILD.hotModuleReplacement) {
2445
+ HostElement.prototype['s-hmr'] = function (hmrVersionId) {
2446
+ hmrStart(this, cmpMeta, hmrVersionId);
2447
+ };
2448
+ }
1606
2449
  cmpMeta.$lazyBundleId$ = lazyBundle[0];
1607
2450
  if (!exclude.includes(tagName) && !customElements.get(tagName)) {
1608
2451
  cmpTags.push(tagName);
1609
2452
  customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */));
1610
2453
  }
1611
2454
  }));
1612
- {
2455
+ if (BUILD.hydratedClass || BUILD.hydratedAttribute) {
1613
2456
  visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
1614
2457
  visibilityStyle.setAttribute('data-styles', '');
1615
2458
  head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
@@ -1620,7 +2463,10 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1620
2463
  deferredConnectedCallbacks.map(host => host.connectedCallback());
1621
2464
  }
1622
2465
  else {
1623
- {
2466
+ if (BUILD.profile) {
2467
+ plt.jmp(() => (appLoadFallback = setTimeout(appDidLoad, 30, 'timeout')));
2468
+ }
2469
+ else {
1624
2470
  plt.jmp(() => (appLoadFallback = setTimeout(appDidLoad, 30)));
1625
2471
  }
1626
2472
  }
@@ -1631,6 +2477,196 @@ const getAssetPath = (path) => {
1631
2477
  const assetUrl = new URL(path, plt.$resourcesUrl$);
1632
2478
  return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
1633
2479
  };
2480
+ const setAssetPath = (path) => (plt.$resourcesUrl$ = path);
2481
+ const getConnect = (_ref, tagName) => {
2482
+ const componentOnReady = () => {
2483
+ let elm = doc.querySelector(tagName);
2484
+ if (!elm) {
2485
+ elm = doc.createElement(tagName);
2486
+ doc.body.appendChild(elm);
2487
+ }
2488
+ return typeof elm.componentOnReady === 'function' ? elm.componentOnReady() : Promise.resolve(elm);
2489
+ };
2490
+ const create = (...args) => {
2491
+ return componentOnReady().then(el => el.create(...args));
2492
+ };
2493
+ return {
2494
+ create,
2495
+ componentOnReady,
2496
+ };
2497
+ };
2498
+ const getContext = (_elm, context) => {
2499
+ if (context in Context) {
2500
+ return Context[context];
2501
+ }
2502
+ else if (context === 'window') {
2503
+ return win;
2504
+ }
2505
+ else if (context === 'document') {
2506
+ return doc;
2507
+ }
2508
+ else if (context === 'isServer' || context === 'isPrerender') {
2509
+ return BUILD.hydrateServerSide ? true : false;
2510
+ }
2511
+ else if (context === 'isClient') {
2512
+ return BUILD.hydrateServerSide ? false : true;
2513
+ }
2514
+ else if (context === 'resourcesUrl' || context === 'publicPath') {
2515
+ return getAssetPath('.');
2516
+ }
2517
+ else if (context === 'queue') {
2518
+ return {
2519
+ write: writeTask,
2520
+ read: readTask,
2521
+ tick: {
2522
+ then(cb) {
2523
+ return nextTick(cb);
2524
+ },
2525
+ },
2526
+ };
2527
+ }
2528
+ return undefined;
2529
+ };
2530
+ const insertVdomAnnotations = (doc, staticComponents) => {
2531
+ if (doc != null) {
2532
+ const docData = {
2533
+ hostIds: 0,
2534
+ rootLevelIds: 0,
2535
+ staticComponents: new Set(staticComponents),
2536
+ };
2537
+ const orgLocationNodes = [];
2538
+ parseVNodeAnnotations(doc, doc.body, docData, orgLocationNodes);
2539
+ orgLocationNodes.forEach(orgLocationNode => {
2540
+ if (orgLocationNode != null) {
2541
+ const nodeRef = orgLocationNode['s-nr'];
2542
+ let hostId = nodeRef['s-host-id'];
2543
+ let nodeId = nodeRef['s-node-id'];
2544
+ let childId = `${hostId}.${nodeId}`;
2545
+ if (hostId == null) {
2546
+ hostId = 0;
2547
+ docData.rootLevelIds++;
2548
+ nodeId = docData.rootLevelIds;
2549
+ childId = `${hostId}.${nodeId}`;
2550
+ if (nodeRef.nodeType === 1 /* ElementNode */) {
2551
+ nodeRef.setAttribute(HYDRATE_CHILD_ID, childId);
2552
+ }
2553
+ else if (nodeRef.nodeType === 3 /* TextNode */) {
2554
+ if (hostId === 0) {
2555
+ const textContent = nodeRef.nodeValue.trim();
2556
+ if (textContent === '') {
2557
+ // useless whitespace node at the document root
2558
+ orgLocationNode.remove();
2559
+ return;
2560
+ }
2561
+ }
2562
+ const commentBeforeTextNode = doc.createComment(childId);
2563
+ commentBeforeTextNode.nodeValue = `${TEXT_NODE_ID}.${childId}`;
2564
+ nodeRef.parentNode.insertBefore(commentBeforeTextNode, nodeRef);
2565
+ }
2566
+ }
2567
+ let orgLocationNodeId = `${ORG_LOCATION_ID}.${childId}`;
2568
+ const orgLocationParentNode = orgLocationNode.parentElement;
2569
+ if (orgLocationParentNode) {
2570
+ if (orgLocationParentNode['s-en'] === '') {
2571
+ // ending with a "." means that the parent element
2572
+ // of this node's original location is a SHADOW dom element
2573
+ // and this node is apart of the root level light dom
2574
+ orgLocationNodeId += `.`;
2575
+ }
2576
+ else if (orgLocationParentNode['s-en'] === 'c') {
2577
+ // ending with a ".c" means that the parent element
2578
+ // of this node's original location is a SCOPED element
2579
+ // and this node is apart of the root level light dom
2580
+ orgLocationNodeId += `.c`;
2581
+ }
2582
+ }
2583
+ orgLocationNode.nodeValue = orgLocationNodeId;
2584
+ }
2585
+ });
2586
+ }
2587
+ };
2588
+ const parseVNodeAnnotations = (doc, node, docData, orgLocationNodes) => {
2589
+ if (node == null) {
2590
+ return;
2591
+ }
2592
+ if (node['s-nr'] != null) {
2593
+ orgLocationNodes.push(node);
2594
+ }
2595
+ if (node.nodeType === 1 /* ElementNode */) {
2596
+ node.childNodes.forEach(childNode => {
2597
+ const hostRef = getHostRef(childNode);
2598
+ if (hostRef != null && !docData.staticComponents.has(childNode.nodeName.toLowerCase())) {
2599
+ const cmpData = {
2600
+ nodeIds: 0,
2601
+ };
2602
+ insertVNodeAnnotations(doc, childNode, hostRef.$vnode$, docData, cmpData);
2603
+ }
2604
+ parseVNodeAnnotations(doc, childNode, docData, orgLocationNodes);
2605
+ });
2606
+ }
2607
+ };
2608
+ const insertVNodeAnnotations = (doc, hostElm, vnode, docData, cmpData) => {
2609
+ if (vnode != null) {
2610
+ const hostId = ++docData.hostIds;
2611
+ hostElm.setAttribute(HYDRATE_ID, hostId);
2612
+ if (hostElm['s-cr'] != null) {
2613
+ hostElm['s-cr'].nodeValue = `${CONTENT_REF_ID}.${hostId}`;
2614
+ }
2615
+ if (vnode.$children$ != null) {
2616
+ const depth = 0;
2617
+ vnode.$children$.forEach((vnodeChild, index) => {
2618
+ insertChildVNodeAnnotations(doc, vnodeChild, cmpData, hostId, depth, index);
2619
+ });
2620
+ }
2621
+ if (hostElm && vnode && vnode.$elm$ && !hostElm.hasAttribute('c-id')) {
2622
+ const parent = hostElm.parentElement;
2623
+ if (parent && parent.childNodes) {
2624
+ const parentChildNodes = Array.from(parent.childNodes);
2625
+ const comment = parentChildNodes.find(node => node.nodeType === 8 /* CommentNode */ && node['s-sr']);
2626
+ if (comment) {
2627
+ const index = parentChildNodes.indexOf(hostElm) - 1;
2628
+ vnode.$elm$.setAttribute(HYDRATE_CHILD_ID, `${comment['s-host-id']}.${comment['s-node-id']}.0.${index}`);
2629
+ }
2630
+ }
2631
+ }
2632
+ }
2633
+ };
2634
+ const insertChildVNodeAnnotations = (doc, vnodeChild, cmpData, hostId, depth, index) => {
2635
+ const childElm = vnodeChild.$elm$;
2636
+ if (childElm == null) {
2637
+ return;
2638
+ }
2639
+ const nodeId = cmpData.nodeIds++;
2640
+ const childId = `${hostId}.${nodeId}.${depth}.${index}`;
2641
+ childElm['s-host-id'] = hostId;
2642
+ childElm['s-node-id'] = nodeId;
2643
+ if (childElm.nodeType === 1 /* ElementNode */) {
2644
+ childElm.setAttribute(HYDRATE_CHILD_ID, childId);
2645
+ }
2646
+ else if (childElm.nodeType === 3 /* TextNode */) {
2647
+ const parentNode = childElm.parentNode;
2648
+ const nodeName = parentNode.nodeName;
2649
+ if (nodeName !== 'STYLE' && nodeName !== 'SCRIPT') {
2650
+ const textNodeId = `${TEXT_NODE_ID}.${childId}`;
2651
+ const commentBeforeTextNode = doc.createComment(textNodeId);
2652
+ parentNode.insertBefore(commentBeforeTextNode, childElm);
2653
+ }
2654
+ }
2655
+ else if (childElm.nodeType === 8 /* CommentNode */) {
2656
+ if (childElm['s-sr']) {
2657
+ const slotName = childElm['s-sn'] || '';
2658
+ const slotNodeId = `${SLOT_NODE_ID}.${childId}.${slotName}`;
2659
+ childElm.nodeValue = slotNodeId;
2660
+ }
2661
+ }
2662
+ if (vnodeChild.$children$ != null) {
2663
+ const childDepth = depth + 1;
2664
+ vnodeChild.$children$.forEach((vnode, index) => {
2665
+ insertChildVNodeAnnotations(doc, vnode, cmpData, hostId, childDepth, index);
2666
+ });
2667
+ }
2668
+ };
2669
+ const Fragment = (_, children) => children;
1634
2670
  const hostRefs = new WeakMap();
1635
2671
  const getHostRef = (ref) => hostRefs.get(ref);
1636
2672
  const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
@@ -1641,25 +2677,39 @@ const registerHost = (elm, cmpMeta) => {
1641
2677
  $cmpMeta$: cmpMeta,
1642
2678
  $instanceValues$: new Map(),
1643
2679
  };
1644
- {
2680
+ if (BUILD.isDev) {
2681
+ hostRef.$renderCount$ = 0;
2682
+ }
2683
+ if (BUILD.method && BUILD.lazyLoad) {
1645
2684
  hostRef.$onInstancePromise$ = new Promise(r => (hostRef.$onInstanceResolve$ = r));
1646
2685
  }
1647
- {
2686
+ if (BUILD.asyncLoading) {
1648
2687
  hostRef.$onReadyPromise$ = new Promise(r => (hostRef.$onReadyResolve$ = r));
1649
2688
  elm['s-p'] = [];
1650
2689
  elm['s-rc'] = [];
1651
2690
  }
1652
- addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
2691
+ addHostEventListeners(elm, hostRef, cmpMeta.$listeners$, false);
1653
2692
  return hostRefs.set(elm, hostRef);
1654
2693
  };
1655
2694
  const isMemberInElement = (elm, memberName) => memberName in elm;
1656
- const consoleError = (e, el) => ( 0, console.error)(e, el);
2695
+ const consoleError = (e, el) => (customError || console.error)(e, el);
2696
+ const STENCIL_DEV_MODE = BUILD.isTesting
2697
+ ? ['STENCIL:'] // E2E testing
2698
+ : ['%cstencil', 'color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px'];
2699
+ const consoleDevError = (...m) => console.error(...STENCIL_DEV_MODE, ...m);
2700
+ const consoleDevWarn = (...m) => console.warn(...STENCIL_DEV_MODE, ...m);
2701
+ const consoleDevInfo = (...m) => console.info(...STENCIL_DEV_MODE, ...m);
2702
+ const setErrorHandler = (handler) => customError = handler;
1657
2703
  const cmpModules = /*@__PURE__*/ new Map();
1658
2704
  const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1659
2705
  // loadModuleImport
1660
2706
  const exportName = cmpMeta.$tagName$.replace(/-/g, '_');
1661
2707
  const bundleId = cmpMeta.$lazyBundleId$;
1662
- const module = cmpModules.get(bundleId) ;
2708
+ if (BUILD.isDev && typeof bundleId !== 'string') {
2709
+ consoleDevError(`Trying to lazily load component <${cmpMeta.$tagName$}> with style mode "${hostRef.$modeName$}", but it does not exist.`);
2710
+ return undefined;
2711
+ }
2712
+ const module = !BUILD.hotModuleReplacement ? cmpModules.get(bundleId) : false;
1663
2713
  if (module) {
1664
2714
  return module[exportName];
1665
2715
  }
@@ -1667,16 +2717,18 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1667
2717
  /* webpackInclude: /\.entry\.js$/ */
1668
2718
  /* webpackExclude: /\.system\.entry\.js$/ */
1669
2719
  /* webpackMode: "lazy" */
1670
- `./${bundleId}.entry.js${ ''}`).then(importedModule => {
1671
- {
2720
+ `./${bundleId}.entry.js${BUILD.hotModuleReplacement && hmrVersionId ? '?s-hmr=' + hmrVersionId : ''}`).then(importedModule => {
2721
+ if (!BUILD.hotModuleReplacement) {
1672
2722
  cmpModules.set(bundleId, importedModule);
1673
2723
  }
1674
2724
  return importedModule[exportName];
1675
2725
  }, consoleError);
1676
2726
  };
1677
2727
  const styles = new Map();
2728
+ const modeResolutionChain = [];
1678
2729
  const queueDomReads = [];
1679
2730
  const queueDomWrites = [];
2731
+ const queueDomWritesLow = [];
1680
2732
  const queueTask = (queue, write) => (cb) => {
1681
2733
  queue.push(cb);
1682
2734
  if (!queuePending) {
@@ -1700,13 +2752,51 @@ const consume = (queue) => {
1700
2752
  }
1701
2753
  queue.length = 0;
1702
2754
  };
2755
+ const consumeTimeout = (queue, timeout) => {
2756
+ let i = 0;
2757
+ let ts = 0;
2758
+ while (i < queue.length && (ts = performance.now()) < timeout) {
2759
+ try {
2760
+ queue[i++](ts);
2761
+ }
2762
+ catch (e) {
2763
+ consoleError(e);
2764
+ }
2765
+ }
2766
+ if (i === queue.length) {
2767
+ queue.length = 0;
2768
+ }
2769
+ else if (i !== 0) {
2770
+ queue.splice(0, i);
2771
+ }
2772
+ };
1703
2773
  const flush = () => {
2774
+ if (BUILD.asyncQueue) {
2775
+ queueCongestion++;
2776
+ }
1704
2777
  // always force a bunch of medium callbacks to run, but still have
1705
2778
  // a throttle on how many can run in a certain time
1706
2779
  // DOM READS!!!
1707
2780
  consume(queueDomReads);
1708
2781
  // DOM WRITES!!!
1709
- {
2782
+ if (BUILD.asyncQueue) {
2783
+ const timeout = (plt.$flags$ & 6 /* queueMask */) === 2 /* appLoaded */ ? performance.now() + 14 * Math.ceil(queueCongestion * (1.0 / 10.0)) : Infinity;
2784
+ consumeTimeout(queueDomWrites, timeout);
2785
+ consumeTimeout(queueDomWritesLow, timeout);
2786
+ if (queueDomWrites.length > 0) {
2787
+ queueDomWritesLow.push(...queueDomWrites);
2788
+ queueDomWrites.length = 0;
2789
+ }
2790
+ if ((queuePending = queueDomReads.length + queueDomWrites.length + queueDomWritesLow.length > 0)) {
2791
+ // still more to do yet, but we've run out of time
2792
+ // let's let this thing cool off and try again in the next tick
2793
+ plt.raf(flush);
2794
+ }
2795
+ else {
2796
+ queueCongestion = 0;
2797
+ }
2798
+ }
2799
+ else {
1710
2800
  consume(queueDomWrites);
1711
2801
  if ((queuePending = queueDomReads.length > 0)) {
1712
2802
  // still more to do yet, but we've run out of time
@@ -1716,6 +2806,13 @@ const flush = () => {
1716
2806
  }
1717
2807
  };
1718
2808
  const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
2809
+ const readTask = /*@__PURE__*/ queueTask(queueDomReads, false);
1719
2810
  const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
2811
+ const Build = {
2812
+ isDev: BUILD.isDev ? true : false,
2813
+ isBrowser: true,
2814
+ isServer: false,
2815
+ isTesting: BUILD.isTesting ? true : false,
2816
+ };
1720
2817
 
1721
- export { Host as H, getAssetPath as a, bootstrapLazy as b, createEvent as c, forceUpdate as f, getElement as g, h, promiseResolve as p, registerInstance as r };
2818
+ export { BUILD as B, CSS as C, H, NAMESPACE as N, promiseResolve as a, bootstrapLazy as b, consoleDevInfo as c, doc as d, createEvent as e, Host as f, getElement as g, h, getAssetPath as i, forceUpdate as j, plt as p, registerInstance as r, win as w };