@six-group/ui-library 4.2.6 → 4.3.0

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 (1265) hide show
  1. package/dist/cjs/{form-control-de259450.js → form-control-b39f1df5.js} +2 -2
  2. package/dist/cjs/{form-control-de259450.js.map → form-control-b39f1df5.js.map} +1 -1
  3. package/dist/cjs/index-417a06c8.js +1948 -0
  4. package/dist/cjs/index-417a06c8.js.map +1 -0
  5. package/dist/cjs/loader.cjs.js +2 -2
  6. package/dist/cjs/six-alert.cjs.entry.js +2 -2
  7. package/dist/cjs/six-alert.cjs.entry.js.map +1 -1
  8. package/dist/cjs/six-avatar.cjs.entry.js +3 -3
  9. package/dist/cjs/six-avatar.cjs.entry.js.map +1 -1
  10. package/dist/cjs/six-badge.cjs.entry.js +3 -3
  11. package/dist/cjs/six-button.cjs.entry.js +4 -4
  12. package/dist/cjs/six-button.cjs.entry.js.map +1 -1
  13. package/dist/cjs/six-card.cjs.entry.js +2 -2
  14. package/dist/cjs/{six-checkbox_2.cjs.entry.js → six-checkbox.cjs.entry.js} +5 -69
  15. package/dist/cjs/six-checkbox.cjs.entry.js.map +1 -0
  16. package/dist/cjs/six-datepicker.cjs.entry.js +4 -4
  17. package/dist/cjs/six-datepicker.cjs.entry.js.map +1 -1
  18. package/dist/cjs/six-details.cjs.entry.js +4 -4
  19. package/dist/cjs/six-details.cjs.entry.js.map +1 -1
  20. package/dist/cjs/six-dialog.cjs.entry.js +3 -3
  21. package/dist/cjs/six-dialog.cjs.entry.js.map +1 -1
  22. package/dist/cjs/six-drawer.cjs.entry.js +3 -3
  23. package/dist/cjs/six-drawer.cjs.entry.js.map +1 -1
  24. package/dist/cjs/{six-dropdown_2.cjs.entry.js → six-dropdown_3.cjs.entry.js} +73 -9
  25. package/dist/cjs/six-dropdown_3.cjs.entry.js.map +1 -0
  26. package/dist/cjs/six-error-page.cjs.entry.js +2 -2
  27. package/dist/cjs/six-error.cjs.entry.js +2 -2
  28. package/dist/cjs/six-file-list-item.cjs.entry.js +3 -3
  29. package/dist/cjs/six-file-list-item.cjs.entry.js.map +1 -1
  30. package/dist/cjs/six-file-list.cjs.entry.js +2 -2
  31. package/dist/cjs/six-file-upload.cjs.entry.js +6 -9
  32. package/dist/cjs/six-file-upload.cjs.entry.js.map +1 -1
  33. package/dist/cjs/six-footer.cjs.entry.js +2 -2
  34. package/dist/cjs/six-group-label.cjs.entry.js +3 -3
  35. package/dist/cjs/six-header-dropdown-item.cjs.entry.js +45 -0
  36. package/dist/cjs/six-header-dropdown-item.cjs.entry.js.map +1 -0
  37. package/dist/cjs/six-header-item_2.cjs.entry.js +47 -0
  38. package/dist/cjs/six-header-item_2.cjs.entry.js.map +1 -0
  39. package/dist/cjs/six-header-menu-button.cjs.entry.js +23 -0
  40. package/dist/cjs/six-header-menu-button.cjs.entry.js.map +1 -0
  41. package/dist/cjs/six-header.cjs.entry.js +40 -31
  42. package/dist/cjs/six-header.cjs.entry.js.map +1 -1
  43. package/dist/cjs/six-icon-button.cjs.entry.js +11 -5
  44. package/dist/cjs/six-icon-button.cjs.entry.js.map +1 -1
  45. package/dist/cjs/six-icon.cjs.entry.js +3 -3
  46. package/dist/cjs/six-input.cjs.entry.js +5 -5
  47. package/dist/cjs/six-input.cjs.entry.js.map +1 -1
  48. package/dist/cjs/six-item-picker.cjs.entry.js +4 -4
  49. package/dist/cjs/six-language-switcher.cjs.entry.js +2 -2
  50. package/dist/cjs/six-layout-grid.cjs.entry.js +2 -2
  51. package/dist/cjs/six-main-container.cjs.entry.js +2 -2
  52. package/dist/cjs/six-menu-divider.cjs.entry.js +2 -2
  53. package/dist/cjs/six-menu-label.cjs.entry.js +2 -2
  54. package/dist/cjs/six-picto.cjs.entry.js +2 -2
  55. package/dist/cjs/six-progress-bar.cjs.entry.js +4 -4
  56. package/dist/cjs/six-progress-bar.cjs.entry.js.map +1 -1
  57. package/dist/cjs/six-progress-ring.cjs.entry.js +2 -2
  58. package/dist/cjs/six-radio.cjs.entry.js +3 -3
  59. package/dist/cjs/six-range.cjs.entry.js +4 -4
  60. package/dist/cjs/six-range.cjs.entry.js.map +1 -1
  61. package/dist/cjs/six-root.cjs.entry.js +2 -2
  62. package/dist/cjs/six-root.cjs.entry.js.map +1 -1
  63. package/dist/cjs/six-search-field.cjs.entry.js +2 -2
  64. package/dist/cjs/six-select.cjs.entry.js +8 -8
  65. package/dist/cjs/six-select.cjs.entry.js.map +1 -1
  66. package/dist/cjs/six-sidebar-item-group.cjs.entry.js +3 -3
  67. package/dist/cjs/six-sidebar-item-group.cjs.entry.js.map +1 -1
  68. package/dist/cjs/six-sidebar-item.cjs.entry.js +4 -4
  69. package/dist/cjs/six-sidebar-item.cjs.entry.js.map +1 -1
  70. package/dist/cjs/six-sidebar.cjs.entry.js +3 -3
  71. package/dist/cjs/six-spinner.cjs.entry.js +1 -1
  72. package/dist/cjs/six-stage-indicator.cjs.entry.js +1 -1
  73. package/dist/cjs/six-switch.cjs.entry.js +4 -4
  74. package/dist/cjs/six-tab-group.cjs.entry.js +3 -3
  75. package/dist/cjs/six-tab-group.cjs.entry.js.map +1 -1
  76. package/dist/cjs/six-tab-panel.cjs.entry.js +2 -2
  77. package/dist/cjs/six-tab.cjs.entry.js +3 -3
  78. package/dist/cjs/six-tab.cjs.entry.js.map +1 -1
  79. package/dist/cjs/six-tag.cjs.entry.js +3 -3
  80. package/dist/cjs/six-tag.cjs.entry.js.map +1 -1
  81. package/dist/cjs/six-textarea.cjs.entry.js +4 -4
  82. package/dist/cjs/six-tile.cjs.entry.js +6 -6
  83. package/dist/cjs/six-tile.cjs.entry.js.map +1 -1
  84. package/dist/cjs/six-timepicker.cjs.entry.js +3 -3
  85. package/dist/cjs/six-timepicker.cjs.entry.js.map +1 -1
  86. package/dist/cjs/six-tooltip.cjs.entry.js +3 -3
  87. package/dist/cjs/ui-library.cjs.js +10 -10
  88. package/dist/cjs/ui-library.cjs.js.map +1 -1
  89. package/dist/collection/collection-manifest.json +6 -2
  90. package/dist/collection/components/six-alert/six-alert.js +1 -1
  91. package/dist/collection/components/six-alert/six-alert.js.map +1 -1
  92. package/dist/collection/components/six-avatar/six-avatar.js +2 -2
  93. package/dist/collection/components/six-avatar/six-avatar.js.map +1 -1
  94. package/dist/collection/components/six-badge/six-badge.js +2 -2
  95. package/dist/collection/components/six-button/six-button.css +0 -4
  96. package/dist/collection/components/six-button/six-button.js +2 -2
  97. package/dist/collection/components/six-button/six-button.js.map +1 -1
  98. package/dist/collection/components/six-card/six-card.js +1 -1
  99. package/dist/collection/components/six-checkbox/six-checkbox.js +2 -2
  100. package/dist/collection/components/six-checkbox/six-checkbox.js.map +1 -1
  101. package/dist/collection/components/six-datepicker/six-datepicker.js +3 -3
  102. package/dist/collection/components/six-datepicker/six-datepicker.js.map +1 -1
  103. package/dist/collection/components/six-details/six-details.js +3 -3
  104. package/dist/collection/components/six-details/six-details.js.map +1 -1
  105. package/dist/collection/components/six-dialog/six-dialog.js +2 -2
  106. package/dist/collection/components/six-dialog/six-dialog.js.map +1 -1
  107. package/dist/collection/components/six-drawer/six-drawer.js +2 -2
  108. package/dist/collection/components/six-drawer/six-drawer.js.map +1 -1
  109. package/dist/collection/components/six-dropdown/six-dropdown.js +5 -5
  110. package/dist/collection/components/six-dropdown/six-dropdown.js.map +1 -1
  111. package/dist/collection/components/six-error/six-error.js +1 -1
  112. package/dist/collection/components/six-error-page/six-error-page.js +1 -1
  113. package/dist/collection/components/six-file-list/six-file-list.js +1 -1
  114. package/dist/collection/components/six-file-list-item/six-file-list-item.js +2 -2
  115. package/dist/collection/components/six-file-list-item/six-file-list-item.js.map +1 -1
  116. package/dist/collection/components/six-file-upload/six-file-upload.js +5 -8
  117. package/dist/collection/components/six-file-upload/six-file-upload.js.map +1 -1
  118. package/dist/collection/components/six-footer/six-footer.js +1 -1
  119. package/dist/collection/components/six-group-label/six-group-label.js +1 -1
  120. package/dist/collection/components/six-header/six-header.css +5 -29
  121. package/dist/collection/components/six-header/six-header.js +115 -47
  122. package/dist/collection/components/six-header/six-header.js.map +1 -1
  123. package/dist/collection/components/six-header-dropdown-item/six-header-dropdown-item.css +15 -0
  124. package/dist/collection/components/six-header-dropdown-item/six-header-dropdown-item.js +53 -0
  125. package/dist/collection/components/six-header-dropdown-item/six-header-dropdown-item.js.map +1 -0
  126. package/dist/collection/components/six-header-item/six-header-item.css +15 -0
  127. package/dist/collection/components/six-header-item/six-header-item.js +51 -0
  128. package/dist/collection/components/six-header-item/six-header-item.js.map +1 -0
  129. package/dist/collection/components/six-header-menu-button/six-header-menu-button.css +27 -0
  130. package/dist/collection/components/six-header-menu-button/six-header-menu-button.js +48 -0
  131. package/dist/collection/components/six-header-menu-button/six-header-menu-button.js.map +1 -0
  132. package/dist/collection/components/six-icon/six-icon.js +2 -2
  133. package/dist/collection/components/six-icon-button/six-icon-button.css +2 -1
  134. package/dist/collection/components/six-icon-button/six-icon-button.js +60 -3
  135. package/dist/collection/components/six-icon-button/six-icon-button.js.map +1 -1
  136. package/dist/collection/components/six-input/six-input.js +4 -4
  137. package/dist/collection/components/six-input/six-input.js.map +1 -1
  138. package/dist/collection/components/six-item-picker/six-item-picker.js +3 -3
  139. package/dist/collection/components/six-language-switcher/six-language-switcher.js +1 -1
  140. package/dist/collection/components/six-layout-grid/six-layout-grid.js +1 -1
  141. package/dist/collection/components/six-logo/six-logo.css +18 -0
  142. package/dist/collection/components/six-logo/six-logo.js +54 -0
  143. package/dist/collection/components/six-logo/six-logo.js.map +1 -0
  144. package/dist/collection/components/six-main-container/six-main-container.js +1 -1
  145. package/dist/collection/components/six-menu/six-menu.js +2 -2
  146. package/dist/collection/components/six-menu/six-menu.js.map +1 -1
  147. package/dist/collection/components/six-menu-divider/six-menu-divider.js +1 -1
  148. package/dist/collection/components/six-menu-item/six-menu-item.js +2 -2
  149. package/dist/collection/components/six-menu-item/six-menu-item.js.map +1 -1
  150. package/dist/collection/components/six-menu-label/six-menu-label.js +1 -1
  151. package/dist/collection/components/six-picto/six-picto.js +1 -1
  152. package/dist/collection/components/six-progress-bar/six-progress-bar.js +3 -3
  153. package/dist/collection/components/six-progress-bar/six-progress-bar.js.map +1 -1
  154. package/dist/collection/components/six-progress-ring/six-progress-ring.js +1 -1
  155. package/dist/collection/components/six-radio/six-radio.js +2 -2
  156. package/dist/collection/components/six-range/six-range.js +2 -2
  157. package/dist/collection/components/six-range/six-range.js.map +1 -1
  158. package/dist/collection/components/six-root/six-root.js +1 -1
  159. package/dist/collection/components/six-root/six-root.js.map +1 -1
  160. package/dist/collection/components/six-search-field/six-search-field.js +1 -1
  161. package/dist/collection/components/six-select/six-select.js +6 -6
  162. package/dist/collection/components/six-select/six-select.js.map +1 -1
  163. package/dist/collection/components/six-sidebar/six-sidebar.js +2 -2
  164. package/dist/collection/components/six-sidebar-item/six-sidebar-item.css +7 -0
  165. package/dist/collection/components/six-sidebar-item/six-sidebar-item.js +2 -2
  166. package/dist/collection/components/six-sidebar-item-group/six-sidebar-item-group.css +7 -0
  167. package/dist/collection/components/six-sidebar-item-group/six-sidebar-item-group.js +1 -1
  168. package/dist/collection/components/six-sidebar-item-group/six-sidebar-item-group.js.map +1 -1
  169. package/dist/collection/components/six-switch/six-switch.js +2 -2
  170. package/dist/collection/components/six-tab/six-tab.js +2 -2
  171. package/dist/collection/components/six-tab/six-tab.js.map +1 -1
  172. package/dist/collection/components/six-tab-group/six-tab-group.js +2 -2
  173. package/dist/collection/components/six-tab-group/six-tab-group.js.map +1 -1
  174. package/dist/collection/components/six-tab-panel/six-tab-panel.js +1 -1
  175. package/dist/collection/components/six-tag/six-tag.js +2 -2
  176. package/dist/collection/components/six-tag/six-tag.js.map +1 -1
  177. package/dist/collection/components/six-textarea/six-textarea.js +4 -4
  178. package/dist/collection/components/six-tile/six-tile.js +5 -5
  179. package/dist/collection/components/six-tile/six-tile.js.map +1 -1
  180. package/dist/collection/components/six-timepicker/six-timepicker.js +2 -2
  181. package/dist/collection/components/six-timepicker/six-timepicker.js.map +1 -1
  182. package/dist/collection/components/six-tooltip/six-tooltip.js +2 -2
  183. package/dist/collection/files/noto-sans-cyrillic-100-italic.woff +0 -0
  184. package/dist/collection/files/noto-sans-cyrillic-100-italic.woff2 +0 -0
  185. package/dist/collection/files/noto-sans-cyrillic-100-normal.woff +0 -0
  186. package/dist/collection/files/noto-sans-cyrillic-100-normal.woff2 +0 -0
  187. package/dist/collection/files/noto-sans-cyrillic-200-italic.woff +0 -0
  188. package/dist/collection/files/noto-sans-cyrillic-200-italic.woff2 +0 -0
  189. package/dist/collection/files/noto-sans-cyrillic-200-normal.woff +0 -0
  190. package/dist/collection/files/noto-sans-cyrillic-200-normal.woff2 +0 -0
  191. package/dist/collection/files/noto-sans-cyrillic-300-italic.woff +0 -0
  192. package/dist/collection/files/noto-sans-cyrillic-300-italic.woff2 +0 -0
  193. package/dist/collection/files/noto-sans-cyrillic-300-normal.woff +0 -0
  194. package/dist/collection/files/noto-sans-cyrillic-300-normal.woff2 +0 -0
  195. package/dist/collection/files/noto-sans-cyrillic-400-italic.woff +0 -0
  196. package/dist/collection/files/noto-sans-cyrillic-400-italic.woff2 +0 -0
  197. package/dist/collection/files/noto-sans-cyrillic-400-normal.woff +0 -0
  198. package/dist/collection/files/noto-sans-cyrillic-400-normal.woff2 +0 -0
  199. package/dist/collection/files/noto-sans-cyrillic-500-italic.woff +0 -0
  200. package/dist/collection/files/noto-sans-cyrillic-500-italic.woff2 +0 -0
  201. package/dist/collection/files/noto-sans-cyrillic-500-normal.woff +0 -0
  202. package/dist/collection/files/noto-sans-cyrillic-500-normal.woff2 +0 -0
  203. package/dist/collection/files/noto-sans-cyrillic-600-italic.woff +0 -0
  204. package/dist/collection/files/noto-sans-cyrillic-600-italic.woff2 +0 -0
  205. package/dist/collection/files/noto-sans-cyrillic-600-normal.woff +0 -0
  206. package/dist/collection/files/noto-sans-cyrillic-600-normal.woff2 +0 -0
  207. package/dist/collection/files/noto-sans-cyrillic-700-italic.woff +0 -0
  208. package/dist/collection/files/noto-sans-cyrillic-700-italic.woff2 +0 -0
  209. package/dist/collection/files/noto-sans-cyrillic-700-normal.woff +0 -0
  210. package/dist/collection/files/noto-sans-cyrillic-700-normal.woff2 +0 -0
  211. package/dist/collection/files/noto-sans-cyrillic-800-italic.woff +0 -0
  212. package/dist/collection/files/noto-sans-cyrillic-800-italic.woff2 +0 -0
  213. package/dist/collection/files/noto-sans-cyrillic-800-normal.woff +0 -0
  214. package/dist/collection/files/noto-sans-cyrillic-800-normal.woff2 +0 -0
  215. package/dist/collection/files/noto-sans-cyrillic-900-italic.woff +0 -0
  216. package/dist/collection/files/noto-sans-cyrillic-900-italic.woff2 +0 -0
  217. package/dist/collection/files/noto-sans-cyrillic-900-normal.woff +0 -0
  218. package/dist/collection/files/noto-sans-cyrillic-900-normal.woff2 +0 -0
  219. package/dist/collection/files/noto-sans-cyrillic-ext-100-italic.woff +0 -0
  220. package/dist/collection/files/noto-sans-cyrillic-ext-100-italic.woff2 +0 -0
  221. package/dist/collection/files/noto-sans-cyrillic-ext-100-normal.woff +0 -0
  222. package/dist/collection/files/noto-sans-cyrillic-ext-100-normal.woff2 +0 -0
  223. package/dist/collection/files/noto-sans-cyrillic-ext-200-italic.woff +0 -0
  224. package/dist/collection/files/noto-sans-cyrillic-ext-200-italic.woff2 +0 -0
  225. package/dist/collection/files/noto-sans-cyrillic-ext-200-normal.woff +0 -0
  226. package/dist/collection/files/noto-sans-cyrillic-ext-200-normal.woff2 +0 -0
  227. package/dist/collection/files/noto-sans-cyrillic-ext-300-italic.woff +0 -0
  228. package/dist/collection/files/noto-sans-cyrillic-ext-300-italic.woff2 +0 -0
  229. package/dist/collection/files/noto-sans-cyrillic-ext-300-normal.woff +0 -0
  230. package/dist/collection/files/noto-sans-cyrillic-ext-300-normal.woff2 +0 -0
  231. package/dist/collection/files/noto-sans-cyrillic-ext-400-italic.woff +0 -0
  232. package/dist/collection/files/noto-sans-cyrillic-ext-400-italic.woff2 +0 -0
  233. package/dist/collection/files/noto-sans-cyrillic-ext-400-normal.woff +0 -0
  234. package/dist/collection/files/noto-sans-cyrillic-ext-400-normal.woff2 +0 -0
  235. package/dist/collection/files/noto-sans-cyrillic-ext-500-italic.woff +0 -0
  236. package/dist/collection/files/noto-sans-cyrillic-ext-500-italic.woff2 +0 -0
  237. package/dist/collection/files/noto-sans-cyrillic-ext-500-normal.woff +0 -0
  238. package/dist/collection/files/noto-sans-cyrillic-ext-500-normal.woff2 +0 -0
  239. package/dist/collection/files/noto-sans-cyrillic-ext-600-italic.woff +0 -0
  240. package/dist/collection/files/noto-sans-cyrillic-ext-600-italic.woff2 +0 -0
  241. package/dist/collection/files/noto-sans-cyrillic-ext-600-normal.woff +0 -0
  242. package/dist/collection/files/noto-sans-cyrillic-ext-600-normal.woff2 +0 -0
  243. package/dist/collection/files/noto-sans-cyrillic-ext-700-italic.woff +0 -0
  244. package/dist/collection/files/noto-sans-cyrillic-ext-700-italic.woff2 +0 -0
  245. package/dist/collection/files/noto-sans-cyrillic-ext-700-normal.woff +0 -0
  246. package/dist/collection/files/noto-sans-cyrillic-ext-700-normal.woff2 +0 -0
  247. package/dist/collection/files/noto-sans-cyrillic-ext-800-italic.woff +0 -0
  248. package/dist/collection/files/noto-sans-cyrillic-ext-800-italic.woff2 +0 -0
  249. package/dist/collection/files/noto-sans-cyrillic-ext-800-normal.woff +0 -0
  250. package/dist/collection/files/noto-sans-cyrillic-ext-800-normal.woff2 +0 -0
  251. package/dist/collection/files/noto-sans-cyrillic-ext-900-italic.woff +0 -0
  252. package/dist/collection/files/noto-sans-cyrillic-ext-900-italic.woff2 +0 -0
  253. package/dist/collection/files/noto-sans-cyrillic-ext-900-normal.woff +0 -0
  254. package/dist/collection/files/noto-sans-cyrillic-ext-900-normal.woff2 +0 -0
  255. package/dist/collection/files/noto-sans-devanagari-100-italic.woff +0 -0
  256. package/dist/collection/files/noto-sans-devanagari-100-italic.woff2 +0 -0
  257. package/dist/collection/files/noto-sans-devanagari-100-normal.woff +0 -0
  258. package/dist/collection/files/noto-sans-devanagari-100-normal.woff2 +0 -0
  259. package/dist/collection/files/noto-sans-devanagari-200-italic.woff +0 -0
  260. package/dist/collection/files/noto-sans-devanagari-200-italic.woff2 +0 -0
  261. package/dist/collection/files/noto-sans-devanagari-200-normal.woff +0 -0
  262. package/dist/collection/files/noto-sans-devanagari-200-normal.woff2 +0 -0
  263. package/dist/collection/files/noto-sans-devanagari-300-italic.woff +0 -0
  264. package/dist/collection/files/noto-sans-devanagari-300-italic.woff2 +0 -0
  265. package/dist/collection/files/noto-sans-devanagari-300-normal.woff +0 -0
  266. package/dist/collection/files/noto-sans-devanagari-300-normal.woff2 +0 -0
  267. package/dist/collection/files/noto-sans-devanagari-400-italic.woff +0 -0
  268. package/dist/collection/files/noto-sans-devanagari-400-italic.woff2 +0 -0
  269. package/dist/collection/files/noto-sans-devanagari-400-normal.woff +0 -0
  270. package/dist/collection/files/noto-sans-devanagari-400-normal.woff2 +0 -0
  271. package/dist/collection/files/noto-sans-devanagari-500-italic.woff +0 -0
  272. package/dist/collection/files/noto-sans-devanagari-500-italic.woff2 +0 -0
  273. package/dist/collection/files/noto-sans-devanagari-500-normal.woff +0 -0
  274. package/dist/collection/files/noto-sans-devanagari-500-normal.woff2 +0 -0
  275. package/dist/collection/files/noto-sans-devanagari-600-italic.woff +0 -0
  276. package/dist/collection/files/noto-sans-devanagari-600-italic.woff2 +0 -0
  277. package/dist/collection/files/noto-sans-devanagari-600-normal.woff +0 -0
  278. package/dist/collection/files/noto-sans-devanagari-600-normal.woff2 +0 -0
  279. package/dist/collection/files/noto-sans-devanagari-700-italic.woff +0 -0
  280. package/dist/collection/files/noto-sans-devanagari-700-italic.woff2 +0 -0
  281. package/dist/collection/files/noto-sans-devanagari-700-normal.woff +0 -0
  282. package/dist/collection/files/noto-sans-devanagari-700-normal.woff2 +0 -0
  283. package/dist/collection/files/noto-sans-devanagari-800-italic.woff +0 -0
  284. package/dist/collection/files/noto-sans-devanagari-800-italic.woff2 +0 -0
  285. package/dist/collection/files/noto-sans-devanagari-800-normal.woff +0 -0
  286. package/dist/collection/files/noto-sans-devanagari-800-normal.woff2 +0 -0
  287. package/dist/collection/files/noto-sans-devanagari-900-italic.woff +0 -0
  288. package/dist/collection/files/noto-sans-devanagari-900-italic.woff2 +0 -0
  289. package/dist/collection/files/noto-sans-devanagari-900-normal.woff +0 -0
  290. package/dist/collection/files/noto-sans-devanagari-900-normal.woff2 +0 -0
  291. package/dist/collection/files/noto-sans-greek-100-italic.woff +0 -0
  292. package/dist/collection/files/noto-sans-greek-100-italic.woff2 +0 -0
  293. package/dist/collection/files/noto-sans-greek-100-normal.woff +0 -0
  294. package/dist/collection/files/noto-sans-greek-100-normal.woff2 +0 -0
  295. package/dist/collection/files/noto-sans-greek-200-italic.woff +0 -0
  296. package/dist/collection/files/noto-sans-greek-200-italic.woff2 +0 -0
  297. package/dist/collection/files/noto-sans-greek-200-normal.woff +0 -0
  298. package/dist/collection/files/noto-sans-greek-200-normal.woff2 +0 -0
  299. package/dist/collection/files/noto-sans-greek-300-italic.woff +0 -0
  300. package/dist/collection/files/noto-sans-greek-300-italic.woff2 +0 -0
  301. package/dist/collection/files/noto-sans-greek-300-normal.woff +0 -0
  302. package/dist/collection/files/noto-sans-greek-300-normal.woff2 +0 -0
  303. package/dist/collection/files/noto-sans-greek-400-italic.woff +0 -0
  304. package/dist/collection/files/noto-sans-greek-400-italic.woff2 +0 -0
  305. package/dist/collection/files/noto-sans-greek-400-normal.woff +0 -0
  306. package/dist/collection/files/noto-sans-greek-400-normal.woff2 +0 -0
  307. package/dist/collection/files/noto-sans-greek-500-italic.woff +0 -0
  308. package/dist/collection/files/noto-sans-greek-500-italic.woff2 +0 -0
  309. package/dist/collection/files/noto-sans-greek-500-normal.woff +0 -0
  310. package/dist/collection/files/noto-sans-greek-500-normal.woff2 +0 -0
  311. package/dist/collection/files/noto-sans-greek-600-italic.woff +0 -0
  312. package/dist/collection/files/noto-sans-greek-600-italic.woff2 +0 -0
  313. package/dist/collection/files/noto-sans-greek-600-normal.woff +0 -0
  314. package/dist/collection/files/noto-sans-greek-600-normal.woff2 +0 -0
  315. package/dist/collection/files/noto-sans-greek-700-italic.woff +0 -0
  316. package/dist/collection/files/noto-sans-greek-700-italic.woff2 +0 -0
  317. package/dist/collection/files/noto-sans-greek-700-normal.woff +0 -0
  318. package/dist/collection/files/noto-sans-greek-700-normal.woff2 +0 -0
  319. package/dist/collection/files/noto-sans-greek-800-italic.woff +0 -0
  320. package/dist/collection/files/noto-sans-greek-800-italic.woff2 +0 -0
  321. package/dist/collection/files/noto-sans-greek-800-normal.woff +0 -0
  322. package/dist/collection/files/noto-sans-greek-800-normal.woff2 +0 -0
  323. package/dist/collection/files/noto-sans-greek-900-italic.woff +0 -0
  324. package/dist/collection/files/noto-sans-greek-900-italic.woff2 +0 -0
  325. package/dist/collection/files/noto-sans-greek-900-normal.woff +0 -0
  326. package/dist/collection/files/noto-sans-greek-900-normal.woff2 +0 -0
  327. package/dist/collection/files/noto-sans-greek-ext-100-italic.woff +0 -0
  328. package/dist/collection/files/noto-sans-greek-ext-100-italic.woff2 +0 -0
  329. package/dist/collection/files/noto-sans-greek-ext-100-normal.woff +0 -0
  330. package/dist/collection/files/noto-sans-greek-ext-100-normal.woff2 +0 -0
  331. package/dist/collection/files/noto-sans-greek-ext-200-italic.woff +0 -0
  332. package/dist/collection/files/noto-sans-greek-ext-200-italic.woff2 +0 -0
  333. package/dist/collection/files/noto-sans-greek-ext-200-normal.woff +0 -0
  334. package/dist/collection/files/noto-sans-greek-ext-200-normal.woff2 +0 -0
  335. package/dist/collection/files/noto-sans-greek-ext-300-italic.woff +0 -0
  336. package/dist/collection/files/noto-sans-greek-ext-300-italic.woff2 +0 -0
  337. package/dist/collection/files/noto-sans-greek-ext-300-normal.woff +0 -0
  338. package/dist/collection/files/noto-sans-greek-ext-300-normal.woff2 +0 -0
  339. package/dist/collection/files/noto-sans-greek-ext-400-italic.woff +0 -0
  340. package/dist/collection/files/noto-sans-greek-ext-400-italic.woff2 +0 -0
  341. package/dist/collection/files/noto-sans-greek-ext-400-normal.woff +0 -0
  342. package/dist/collection/files/noto-sans-greek-ext-400-normal.woff2 +0 -0
  343. package/dist/collection/files/noto-sans-greek-ext-500-italic.woff +0 -0
  344. package/dist/collection/files/noto-sans-greek-ext-500-italic.woff2 +0 -0
  345. package/dist/collection/files/noto-sans-greek-ext-500-normal.woff +0 -0
  346. package/dist/collection/files/noto-sans-greek-ext-500-normal.woff2 +0 -0
  347. package/dist/collection/files/noto-sans-greek-ext-600-italic.woff +0 -0
  348. package/dist/collection/files/noto-sans-greek-ext-600-italic.woff2 +0 -0
  349. package/dist/collection/files/noto-sans-greek-ext-600-normal.woff +0 -0
  350. package/dist/collection/files/noto-sans-greek-ext-600-normal.woff2 +0 -0
  351. package/dist/collection/files/noto-sans-greek-ext-700-italic.woff +0 -0
  352. package/dist/collection/files/noto-sans-greek-ext-700-italic.woff2 +0 -0
  353. package/dist/collection/files/noto-sans-greek-ext-700-normal.woff +0 -0
  354. package/dist/collection/files/noto-sans-greek-ext-700-normal.woff2 +0 -0
  355. package/dist/collection/files/noto-sans-greek-ext-800-italic.woff +0 -0
  356. package/dist/collection/files/noto-sans-greek-ext-800-italic.woff2 +0 -0
  357. package/dist/collection/files/noto-sans-greek-ext-800-normal.woff +0 -0
  358. package/dist/collection/files/noto-sans-greek-ext-800-normal.woff2 +0 -0
  359. package/dist/collection/files/noto-sans-greek-ext-900-italic.woff +0 -0
  360. package/dist/collection/files/noto-sans-greek-ext-900-italic.woff2 +0 -0
  361. package/dist/collection/files/noto-sans-greek-ext-900-normal.woff +0 -0
  362. package/dist/collection/files/noto-sans-greek-ext-900-normal.woff2 +0 -0
  363. package/dist/collection/files/noto-sans-latin-100-italic.woff +0 -0
  364. package/dist/collection/files/noto-sans-latin-100-italic.woff2 +0 -0
  365. package/dist/collection/files/noto-sans-latin-100-normal.woff +0 -0
  366. package/dist/collection/files/noto-sans-latin-100-normal.woff2 +0 -0
  367. package/dist/collection/files/noto-sans-latin-200-italic.woff +0 -0
  368. package/dist/collection/files/noto-sans-latin-200-italic.woff2 +0 -0
  369. package/dist/collection/files/noto-sans-latin-200-normal.woff +0 -0
  370. package/dist/collection/files/noto-sans-latin-200-normal.woff2 +0 -0
  371. package/dist/collection/files/noto-sans-latin-300-italic.woff +0 -0
  372. package/dist/collection/files/noto-sans-latin-300-italic.woff2 +0 -0
  373. package/dist/collection/files/noto-sans-latin-300-normal.woff +0 -0
  374. package/dist/collection/files/noto-sans-latin-300-normal.woff2 +0 -0
  375. package/dist/collection/files/noto-sans-latin-400-italic.woff +0 -0
  376. package/dist/collection/files/noto-sans-latin-400-italic.woff2 +0 -0
  377. package/dist/collection/files/noto-sans-latin-400-normal.woff +0 -0
  378. package/dist/collection/files/noto-sans-latin-400-normal.woff2 +0 -0
  379. package/dist/collection/files/noto-sans-latin-500-italic.woff +0 -0
  380. package/dist/collection/files/noto-sans-latin-500-italic.woff2 +0 -0
  381. package/dist/collection/files/noto-sans-latin-500-normal.woff +0 -0
  382. package/dist/collection/files/noto-sans-latin-500-normal.woff2 +0 -0
  383. package/dist/collection/files/noto-sans-latin-600-italic.woff +0 -0
  384. package/dist/collection/files/noto-sans-latin-600-italic.woff2 +0 -0
  385. package/dist/collection/files/noto-sans-latin-600-normal.woff +0 -0
  386. package/dist/collection/files/noto-sans-latin-600-normal.woff2 +0 -0
  387. package/dist/collection/files/noto-sans-latin-700-italic.woff +0 -0
  388. package/dist/collection/files/noto-sans-latin-700-italic.woff2 +0 -0
  389. package/dist/collection/files/noto-sans-latin-700-normal.woff +0 -0
  390. package/dist/collection/files/noto-sans-latin-700-normal.woff2 +0 -0
  391. package/dist/collection/files/noto-sans-latin-800-italic.woff +0 -0
  392. package/dist/collection/files/noto-sans-latin-800-italic.woff2 +0 -0
  393. package/dist/collection/files/noto-sans-latin-800-normal.woff +0 -0
  394. package/dist/collection/files/noto-sans-latin-800-normal.woff2 +0 -0
  395. package/dist/collection/files/noto-sans-latin-900-italic.woff +0 -0
  396. package/dist/collection/files/noto-sans-latin-900-italic.woff2 +0 -0
  397. package/dist/collection/files/noto-sans-latin-900-normal.woff +0 -0
  398. package/dist/collection/files/noto-sans-latin-900-normal.woff2 +0 -0
  399. package/dist/collection/files/noto-sans-latin-ext-100-italic.woff +0 -0
  400. package/dist/collection/files/noto-sans-latin-ext-100-italic.woff2 +0 -0
  401. package/dist/collection/files/noto-sans-latin-ext-100-normal.woff +0 -0
  402. package/dist/collection/files/noto-sans-latin-ext-100-normal.woff2 +0 -0
  403. package/dist/collection/files/noto-sans-latin-ext-200-italic.woff +0 -0
  404. package/dist/collection/files/noto-sans-latin-ext-200-italic.woff2 +0 -0
  405. package/dist/collection/files/noto-sans-latin-ext-200-normal.woff +0 -0
  406. package/dist/collection/files/noto-sans-latin-ext-200-normal.woff2 +0 -0
  407. package/dist/collection/files/noto-sans-latin-ext-300-italic.woff +0 -0
  408. package/dist/collection/files/noto-sans-latin-ext-300-italic.woff2 +0 -0
  409. package/dist/collection/files/noto-sans-latin-ext-300-normal.woff +0 -0
  410. package/dist/collection/files/noto-sans-latin-ext-300-normal.woff2 +0 -0
  411. package/dist/collection/files/noto-sans-latin-ext-400-italic.woff +0 -0
  412. package/dist/collection/files/noto-sans-latin-ext-400-italic.woff2 +0 -0
  413. package/dist/collection/files/noto-sans-latin-ext-400-normal.woff +0 -0
  414. package/dist/collection/files/noto-sans-latin-ext-400-normal.woff2 +0 -0
  415. package/dist/collection/files/noto-sans-latin-ext-500-italic.woff +0 -0
  416. package/dist/collection/files/noto-sans-latin-ext-500-italic.woff2 +0 -0
  417. package/dist/collection/files/noto-sans-latin-ext-500-normal.woff +0 -0
  418. package/dist/collection/files/noto-sans-latin-ext-500-normal.woff2 +0 -0
  419. package/dist/collection/files/noto-sans-latin-ext-600-italic.woff +0 -0
  420. package/dist/collection/files/noto-sans-latin-ext-600-italic.woff2 +0 -0
  421. package/dist/collection/files/noto-sans-latin-ext-600-normal.woff +0 -0
  422. package/dist/collection/files/noto-sans-latin-ext-600-normal.woff2 +0 -0
  423. package/dist/collection/files/noto-sans-latin-ext-700-italic.woff +0 -0
  424. package/dist/collection/files/noto-sans-latin-ext-700-italic.woff2 +0 -0
  425. package/dist/collection/files/noto-sans-latin-ext-700-normal.woff +0 -0
  426. package/dist/collection/files/noto-sans-latin-ext-700-normal.woff2 +0 -0
  427. package/dist/collection/files/noto-sans-latin-ext-800-italic.woff +0 -0
  428. package/dist/collection/files/noto-sans-latin-ext-800-italic.woff2 +0 -0
  429. package/dist/collection/files/noto-sans-latin-ext-800-normal.woff +0 -0
  430. package/dist/collection/files/noto-sans-latin-ext-800-normal.woff2 +0 -0
  431. package/dist/collection/files/noto-sans-latin-ext-900-italic.woff +0 -0
  432. package/dist/collection/files/noto-sans-latin-ext-900-italic.woff2 +0 -0
  433. package/dist/collection/files/noto-sans-latin-ext-900-normal.woff +0 -0
  434. package/dist/collection/files/noto-sans-latin-ext-900-normal.woff2 +0 -0
  435. package/dist/collection/files/noto-sans-vietnamese-100-italic.woff +0 -0
  436. package/dist/collection/files/noto-sans-vietnamese-100-italic.woff2 +0 -0
  437. package/dist/collection/files/noto-sans-vietnamese-100-normal.woff +0 -0
  438. package/dist/collection/files/noto-sans-vietnamese-100-normal.woff2 +0 -0
  439. package/dist/collection/files/noto-sans-vietnamese-200-italic.woff +0 -0
  440. package/dist/collection/files/noto-sans-vietnamese-200-italic.woff2 +0 -0
  441. package/dist/collection/files/noto-sans-vietnamese-200-normal.woff +0 -0
  442. package/dist/collection/files/noto-sans-vietnamese-200-normal.woff2 +0 -0
  443. package/dist/collection/files/noto-sans-vietnamese-300-italic.woff +0 -0
  444. package/dist/collection/files/noto-sans-vietnamese-300-italic.woff2 +0 -0
  445. package/dist/collection/files/noto-sans-vietnamese-300-normal.woff +0 -0
  446. package/dist/collection/files/noto-sans-vietnamese-300-normal.woff2 +0 -0
  447. package/dist/collection/files/noto-sans-vietnamese-400-italic.woff +0 -0
  448. package/dist/collection/files/noto-sans-vietnamese-400-italic.woff2 +0 -0
  449. package/dist/collection/files/noto-sans-vietnamese-400-normal.woff +0 -0
  450. package/dist/collection/files/noto-sans-vietnamese-400-normal.woff2 +0 -0
  451. package/dist/collection/files/noto-sans-vietnamese-500-italic.woff +0 -0
  452. package/dist/collection/files/noto-sans-vietnamese-500-italic.woff2 +0 -0
  453. package/dist/collection/files/noto-sans-vietnamese-500-normal.woff +0 -0
  454. package/dist/collection/files/noto-sans-vietnamese-500-normal.woff2 +0 -0
  455. package/dist/collection/files/noto-sans-vietnamese-600-italic.woff +0 -0
  456. package/dist/collection/files/noto-sans-vietnamese-600-italic.woff2 +0 -0
  457. package/dist/collection/files/noto-sans-vietnamese-600-normal.woff +0 -0
  458. package/dist/collection/files/noto-sans-vietnamese-600-normal.woff2 +0 -0
  459. package/dist/collection/files/noto-sans-vietnamese-700-italic.woff +0 -0
  460. package/dist/collection/files/noto-sans-vietnamese-700-italic.woff2 +0 -0
  461. package/dist/collection/files/noto-sans-vietnamese-700-normal.woff +0 -0
  462. package/dist/collection/files/noto-sans-vietnamese-700-normal.woff2 +0 -0
  463. package/dist/collection/files/noto-sans-vietnamese-800-italic.woff +0 -0
  464. package/dist/collection/files/noto-sans-vietnamese-800-italic.woff2 +0 -0
  465. package/dist/collection/files/noto-sans-vietnamese-800-normal.woff +0 -0
  466. package/dist/collection/files/noto-sans-vietnamese-800-normal.woff2 +0 -0
  467. package/dist/collection/files/noto-sans-vietnamese-900-italic.woff +0 -0
  468. package/dist/collection/files/noto-sans-vietnamese-900-italic.woff2 +0 -0
  469. package/dist/collection/files/noto-sans-vietnamese-900-normal.woff +0 -0
  470. package/dist/collection/files/noto-sans-vietnamese-900-normal.woff2 +0 -0
  471. package/dist/components/index.js +8 -0
  472. package/dist/components/index.js.map +1 -1
  473. package/dist/components/six-alert.js +1 -1
  474. package/dist/components/six-alert.js.map +1 -1
  475. package/dist/components/six-avatar.js +2 -2
  476. package/dist/components/six-avatar.js.map +1 -1
  477. package/dist/components/six-badge.js +2 -2
  478. package/dist/components/six-button2.js +3 -3
  479. package/dist/components/six-button2.js.map +1 -1
  480. package/dist/components/six-card.js +1 -1
  481. package/dist/components/six-checkbox2.js +2 -2
  482. package/dist/components/six-checkbox2.js.map +1 -1
  483. package/dist/components/six-datepicker.js +3 -3
  484. package/dist/components/six-datepicker.js.map +1 -1
  485. package/dist/components/six-details2.js +3 -3
  486. package/dist/components/six-details2.js.map +1 -1
  487. package/dist/components/six-dialog.js +2 -2
  488. package/dist/components/six-dialog.js.map +1 -1
  489. package/dist/components/six-drawer.js +2 -2
  490. package/dist/components/six-drawer.js.map +1 -1
  491. package/dist/components/six-dropdown2.js +5 -5
  492. package/dist/components/six-dropdown2.js.map +1 -1
  493. package/dist/components/six-error-page.js +1 -1
  494. package/dist/components/six-error2.js +1 -1
  495. package/dist/components/six-file-list-item.js +2 -2
  496. package/dist/components/six-file-list-item.js.map +1 -1
  497. package/dist/components/six-file-list.js +1 -1
  498. package/dist/components/six-file-upload.js +5 -8
  499. package/dist/components/six-file-upload.js.map +1 -1
  500. package/dist/components/six-footer.js +1 -1
  501. package/dist/components/six-group-label.js +1 -1
  502. package/dist/components/six-header-dropdown-item.d.ts +11 -0
  503. package/dist/components/six-header-dropdown-item.js +103 -0
  504. package/dist/components/six-header-dropdown-item.js.map +1 -0
  505. package/dist/components/six-header-item.d.ts +11 -0
  506. package/dist/components/six-header-item.js +8 -0
  507. package/dist/components/six-header-item.js.map +1 -0
  508. package/dist/components/six-header-item2.js +39 -0
  509. package/dist/components/six-header-item2.js.map +1 -0
  510. package/dist/components/six-header-menu-button.d.ts +11 -0
  511. package/dist/components/six-header-menu-button.js +57 -0
  512. package/dist/components/six-header-menu-button.js.map +1 -0
  513. package/dist/components/six-header.js +64 -42
  514. package/dist/components/six-header.js.map +1 -1
  515. package/dist/components/six-icon-button2.js +14 -5
  516. package/dist/components/six-icon-button2.js.map +1 -1
  517. package/dist/components/six-icon2.js +2 -2
  518. package/dist/components/six-input2.js +3 -3
  519. package/dist/components/six-input2.js.map +1 -1
  520. package/dist/components/six-item-picker2.js +3 -3
  521. package/dist/components/six-language-switcher.js +1 -1
  522. package/dist/components/six-layout-grid.js +1 -1
  523. package/dist/components/six-logo.d.ts +11 -0
  524. package/dist/components/six-logo.js +8 -0
  525. package/dist/components/six-logo.js.map +1 -0
  526. package/dist/components/six-logo2.js +42 -0
  527. package/dist/components/six-logo2.js.map +1 -0
  528. package/dist/components/six-main-container.js +1 -1
  529. package/dist/components/six-menu-divider.js +1 -1
  530. package/dist/components/six-menu-item2.js +2 -2
  531. package/dist/components/six-menu-item2.js.map +1 -1
  532. package/dist/components/six-menu-label.js +1 -1
  533. package/dist/components/six-menu2.js +2 -2
  534. package/dist/components/six-menu2.js.map +1 -1
  535. package/dist/components/six-picto2.js +1 -1
  536. package/dist/components/six-progress-bar.js +3 -3
  537. package/dist/components/six-progress-bar.js.map +1 -1
  538. package/dist/components/six-progress-ring.js +1 -1
  539. package/dist/components/six-radio.js +2 -2
  540. package/dist/components/six-range.js +2 -2
  541. package/dist/components/six-range.js.map +1 -1
  542. package/dist/components/six-root.js +1 -1
  543. package/dist/components/six-root.js.map +1 -1
  544. package/dist/components/six-search-field.js +1 -1
  545. package/dist/components/six-select.js +6 -6
  546. package/dist/components/six-select.js.map +1 -1
  547. package/dist/components/six-sidebar-item-group.js +2 -2
  548. package/dist/components/six-sidebar-item-group.js.map +1 -1
  549. package/dist/components/six-sidebar-item.js +3 -3
  550. package/dist/components/six-sidebar-item.js.map +1 -1
  551. package/dist/components/six-sidebar.js +2 -2
  552. package/dist/components/six-switch.js +2 -2
  553. package/dist/components/six-tab-group.js +2 -2
  554. package/dist/components/six-tab-group.js.map +1 -1
  555. package/dist/components/six-tab-panel.js +1 -1
  556. package/dist/components/six-tab.js +2 -2
  557. package/dist/components/six-tab.js.map +1 -1
  558. package/dist/components/six-tag.js +2 -2
  559. package/dist/components/six-tag.js.map +1 -1
  560. package/dist/components/six-textarea.js +2 -2
  561. package/dist/components/six-tile.js +5 -5
  562. package/dist/components/six-tile.js.map +1 -1
  563. package/dist/components/six-timepicker2.js +2 -2
  564. package/dist/components/six-timepicker2.js.map +1 -1
  565. package/dist/components/six-tooltip2.js +2 -2
  566. package/dist/components.d.ts +34 -0
  567. package/dist/components.json +477 -32
  568. package/dist/esm/{form-control-30c5bd8b.js → form-control-ad1710bf.js} +2 -2
  569. package/dist/esm/{form-control-30c5bd8b.js.map → form-control-ad1710bf.js.map} +1 -1
  570. package/dist/esm/index-a7bee415.js +1919 -0
  571. package/dist/esm/index-a7bee415.js.map +1 -0
  572. package/dist/esm/loader.js +3 -3
  573. package/dist/esm/six-alert.entry.js +2 -2
  574. package/dist/esm/six-alert.entry.js.map +1 -1
  575. package/dist/esm/six-avatar.entry.js +3 -3
  576. package/dist/esm/six-avatar.entry.js.map +1 -1
  577. package/dist/esm/six-badge.entry.js +3 -3
  578. package/dist/esm/six-button.entry.js +4 -4
  579. package/dist/esm/six-button.entry.js.map +1 -1
  580. package/dist/esm/six-card.entry.js +2 -2
  581. package/dist/esm/{six-checkbox_2.entry.js → six-checkbox.entry.js} +7 -70
  582. package/dist/esm/six-checkbox.entry.js.map +1 -0
  583. package/dist/esm/six-datepicker.entry.js +4 -4
  584. package/dist/esm/six-datepicker.entry.js.map +1 -1
  585. package/dist/esm/six-details.entry.js +4 -4
  586. package/dist/esm/six-details.entry.js.map +1 -1
  587. package/dist/esm/six-dialog.entry.js +3 -3
  588. package/dist/esm/six-dialog.entry.js.map +1 -1
  589. package/dist/esm/six-drawer.entry.js +3 -3
  590. package/dist/esm/six-drawer.entry.js.map +1 -1
  591. package/dist/esm/{six-dropdown_2.entry.js → six-dropdown_3.entry.js} +73 -10
  592. package/dist/esm/six-dropdown_3.entry.js.map +1 -0
  593. package/dist/esm/six-error-page.entry.js +2 -2
  594. package/dist/esm/six-error.entry.js +2 -2
  595. package/dist/esm/six-file-list-item.entry.js +3 -3
  596. package/dist/esm/six-file-list-item.entry.js.map +1 -1
  597. package/dist/esm/six-file-list.entry.js +2 -2
  598. package/dist/esm/six-file-upload.entry.js +6 -9
  599. package/dist/esm/six-file-upload.entry.js.map +1 -1
  600. package/dist/esm/six-footer.entry.js +2 -2
  601. package/dist/esm/six-group-label.entry.js +3 -3
  602. package/dist/esm/six-header-dropdown-item.entry.js +41 -0
  603. package/dist/esm/six-header-dropdown-item.entry.js.map +1 -0
  604. package/dist/esm/six-header-item_2.entry.js +42 -0
  605. package/dist/esm/six-header-item_2.entry.js.map +1 -0
  606. package/dist/esm/six-header-menu-button.entry.js +19 -0
  607. package/dist/esm/six-header-menu-button.entry.js.map +1 -0
  608. package/dist/esm/six-header.entry.js +40 -31
  609. package/dist/esm/six-header.entry.js.map +1 -1
  610. package/dist/esm/six-icon-button.entry.js +11 -5
  611. package/dist/esm/six-icon-button.entry.js.map +1 -1
  612. package/dist/esm/six-icon.entry.js +3 -3
  613. package/dist/esm/six-input.entry.js +5 -5
  614. package/dist/esm/six-input.entry.js.map +1 -1
  615. package/dist/esm/six-item-picker.entry.js +4 -4
  616. package/dist/esm/six-language-switcher.entry.js +2 -2
  617. package/dist/esm/six-layout-grid.entry.js +2 -2
  618. package/dist/esm/six-main-container.entry.js +2 -2
  619. package/dist/esm/six-menu-divider.entry.js +2 -2
  620. package/dist/esm/six-menu-label.entry.js +2 -2
  621. package/dist/esm/six-picto.entry.js +2 -2
  622. package/dist/esm/six-progress-bar.entry.js +4 -4
  623. package/dist/esm/six-progress-bar.entry.js.map +1 -1
  624. package/dist/esm/six-progress-ring.entry.js +2 -2
  625. package/dist/esm/six-radio.entry.js +3 -3
  626. package/dist/esm/six-range.entry.js +4 -4
  627. package/dist/esm/six-range.entry.js.map +1 -1
  628. package/dist/esm/six-root.entry.js +2 -2
  629. package/dist/esm/six-root.entry.js.map +1 -1
  630. package/dist/esm/six-search-field.entry.js +2 -2
  631. package/dist/esm/six-select.entry.js +8 -8
  632. package/dist/esm/six-select.entry.js.map +1 -1
  633. package/dist/esm/six-sidebar-item-group.entry.js +3 -3
  634. package/dist/esm/six-sidebar-item-group.entry.js.map +1 -1
  635. package/dist/esm/six-sidebar-item.entry.js +4 -4
  636. package/dist/esm/six-sidebar-item.entry.js.map +1 -1
  637. package/dist/esm/six-sidebar.entry.js +3 -3
  638. package/dist/esm/six-spinner.entry.js +1 -1
  639. package/dist/esm/six-stage-indicator.entry.js +1 -1
  640. package/dist/esm/six-switch.entry.js +4 -4
  641. package/dist/esm/six-tab-group.entry.js +3 -3
  642. package/dist/esm/six-tab-group.entry.js.map +1 -1
  643. package/dist/esm/six-tab-panel.entry.js +2 -2
  644. package/dist/esm/six-tab.entry.js +3 -3
  645. package/dist/esm/six-tab.entry.js.map +1 -1
  646. package/dist/esm/six-tag.entry.js +3 -3
  647. package/dist/esm/six-tag.entry.js.map +1 -1
  648. package/dist/esm/six-textarea.entry.js +4 -4
  649. package/dist/esm/six-tile.entry.js +6 -6
  650. package/dist/esm/six-tile.entry.js.map +1 -1
  651. package/dist/esm/six-timepicker.entry.js +3 -3
  652. package/dist/esm/six-timepicker.entry.js.map +1 -1
  653. package/dist/esm/six-tooltip.entry.js +3 -3
  654. package/dist/esm/ui-library.js +11 -11
  655. package/dist/esm/ui-library.js.map +1 -1
  656. package/dist/types/components/six-file-upload/six-file-upload.d.ts +1 -1
  657. package/dist/types/components/six-header/six-header.d.ts +79 -18
  658. package/dist/types/components/six-header-dropdown-item/six-header-dropdown-item.d.ts +13 -0
  659. package/dist/types/components/six-header-item/six-header-item.d.ts +15 -0
  660. package/dist/types/components/six-header-menu-button/six-header-menu-button.d.ts +11 -0
  661. package/dist/types/components/six-icon-button/six-icon-button.d.ts +6 -0
  662. package/dist/types/components/six-logo/six-logo.d.ts +9 -0
  663. package/dist/types/components.d.ts +197 -5
  664. package/dist/types/stencil-public-runtime.d.ts +3 -10
  665. package/dist/types/utils/type-check.d.ts +1 -1
  666. package/dist/ui-library/files/noto-sans-cyrillic-100-italic.woff +0 -0
  667. package/dist/ui-library/files/noto-sans-cyrillic-100-italic.woff2 +0 -0
  668. package/dist/ui-library/files/noto-sans-cyrillic-100-normal.woff +0 -0
  669. package/dist/ui-library/files/noto-sans-cyrillic-100-normal.woff2 +0 -0
  670. package/dist/ui-library/files/noto-sans-cyrillic-200-italic.woff +0 -0
  671. package/dist/ui-library/files/noto-sans-cyrillic-200-italic.woff2 +0 -0
  672. package/dist/ui-library/files/noto-sans-cyrillic-200-normal.woff +0 -0
  673. package/dist/ui-library/files/noto-sans-cyrillic-200-normal.woff2 +0 -0
  674. package/dist/ui-library/files/noto-sans-cyrillic-300-italic.woff +0 -0
  675. package/dist/ui-library/files/noto-sans-cyrillic-300-italic.woff2 +0 -0
  676. package/dist/ui-library/files/noto-sans-cyrillic-300-normal.woff +0 -0
  677. package/dist/ui-library/files/noto-sans-cyrillic-300-normal.woff2 +0 -0
  678. package/dist/ui-library/files/noto-sans-cyrillic-400-italic.woff +0 -0
  679. package/dist/ui-library/files/noto-sans-cyrillic-400-italic.woff2 +0 -0
  680. package/dist/ui-library/files/noto-sans-cyrillic-400-normal.woff +0 -0
  681. package/dist/ui-library/files/noto-sans-cyrillic-400-normal.woff2 +0 -0
  682. package/dist/ui-library/files/noto-sans-cyrillic-500-italic.woff +0 -0
  683. package/dist/ui-library/files/noto-sans-cyrillic-500-italic.woff2 +0 -0
  684. package/dist/ui-library/files/noto-sans-cyrillic-500-normal.woff +0 -0
  685. package/dist/ui-library/files/noto-sans-cyrillic-500-normal.woff2 +0 -0
  686. package/dist/ui-library/files/noto-sans-cyrillic-600-italic.woff +0 -0
  687. package/dist/ui-library/files/noto-sans-cyrillic-600-italic.woff2 +0 -0
  688. package/dist/ui-library/files/noto-sans-cyrillic-600-normal.woff +0 -0
  689. package/dist/ui-library/files/noto-sans-cyrillic-600-normal.woff2 +0 -0
  690. package/dist/ui-library/files/noto-sans-cyrillic-700-italic.woff +0 -0
  691. package/dist/ui-library/files/noto-sans-cyrillic-700-italic.woff2 +0 -0
  692. package/dist/ui-library/files/noto-sans-cyrillic-700-normal.woff +0 -0
  693. package/dist/ui-library/files/noto-sans-cyrillic-700-normal.woff2 +0 -0
  694. package/dist/ui-library/files/noto-sans-cyrillic-800-italic.woff +0 -0
  695. package/dist/ui-library/files/noto-sans-cyrillic-800-italic.woff2 +0 -0
  696. package/dist/ui-library/files/noto-sans-cyrillic-800-normal.woff +0 -0
  697. package/dist/ui-library/files/noto-sans-cyrillic-800-normal.woff2 +0 -0
  698. package/dist/ui-library/files/noto-sans-cyrillic-900-italic.woff +0 -0
  699. package/dist/ui-library/files/noto-sans-cyrillic-900-italic.woff2 +0 -0
  700. package/dist/ui-library/files/noto-sans-cyrillic-900-normal.woff +0 -0
  701. package/dist/ui-library/files/noto-sans-cyrillic-900-normal.woff2 +0 -0
  702. package/dist/ui-library/files/noto-sans-cyrillic-ext-100-italic.woff +0 -0
  703. package/dist/ui-library/files/noto-sans-cyrillic-ext-100-italic.woff2 +0 -0
  704. package/dist/ui-library/files/noto-sans-cyrillic-ext-100-normal.woff +0 -0
  705. package/dist/ui-library/files/noto-sans-cyrillic-ext-100-normal.woff2 +0 -0
  706. package/dist/ui-library/files/noto-sans-cyrillic-ext-200-italic.woff +0 -0
  707. package/dist/ui-library/files/noto-sans-cyrillic-ext-200-italic.woff2 +0 -0
  708. package/dist/ui-library/files/noto-sans-cyrillic-ext-200-normal.woff +0 -0
  709. package/dist/ui-library/files/noto-sans-cyrillic-ext-200-normal.woff2 +0 -0
  710. package/dist/ui-library/files/noto-sans-cyrillic-ext-300-italic.woff +0 -0
  711. package/dist/ui-library/files/noto-sans-cyrillic-ext-300-italic.woff2 +0 -0
  712. package/dist/ui-library/files/noto-sans-cyrillic-ext-300-normal.woff +0 -0
  713. package/dist/ui-library/files/noto-sans-cyrillic-ext-300-normal.woff2 +0 -0
  714. package/dist/ui-library/files/noto-sans-cyrillic-ext-400-italic.woff +0 -0
  715. package/dist/ui-library/files/noto-sans-cyrillic-ext-400-italic.woff2 +0 -0
  716. package/dist/ui-library/files/noto-sans-cyrillic-ext-400-normal.woff +0 -0
  717. package/dist/ui-library/files/noto-sans-cyrillic-ext-400-normal.woff2 +0 -0
  718. package/dist/ui-library/files/noto-sans-cyrillic-ext-500-italic.woff +0 -0
  719. package/dist/ui-library/files/noto-sans-cyrillic-ext-500-italic.woff2 +0 -0
  720. package/dist/ui-library/files/noto-sans-cyrillic-ext-500-normal.woff +0 -0
  721. package/dist/ui-library/files/noto-sans-cyrillic-ext-500-normal.woff2 +0 -0
  722. package/dist/ui-library/files/noto-sans-cyrillic-ext-600-italic.woff +0 -0
  723. package/dist/ui-library/files/noto-sans-cyrillic-ext-600-italic.woff2 +0 -0
  724. package/dist/ui-library/files/noto-sans-cyrillic-ext-600-normal.woff +0 -0
  725. package/dist/ui-library/files/noto-sans-cyrillic-ext-600-normal.woff2 +0 -0
  726. package/dist/ui-library/files/noto-sans-cyrillic-ext-700-italic.woff +0 -0
  727. package/dist/ui-library/files/noto-sans-cyrillic-ext-700-italic.woff2 +0 -0
  728. package/dist/ui-library/files/noto-sans-cyrillic-ext-700-normal.woff +0 -0
  729. package/dist/ui-library/files/noto-sans-cyrillic-ext-700-normal.woff2 +0 -0
  730. package/dist/ui-library/files/noto-sans-cyrillic-ext-800-italic.woff +0 -0
  731. package/dist/ui-library/files/noto-sans-cyrillic-ext-800-italic.woff2 +0 -0
  732. package/dist/ui-library/files/noto-sans-cyrillic-ext-800-normal.woff +0 -0
  733. package/dist/ui-library/files/noto-sans-cyrillic-ext-800-normal.woff2 +0 -0
  734. package/dist/ui-library/files/noto-sans-cyrillic-ext-900-italic.woff +0 -0
  735. package/dist/ui-library/files/noto-sans-cyrillic-ext-900-italic.woff2 +0 -0
  736. package/dist/ui-library/files/noto-sans-cyrillic-ext-900-normal.woff +0 -0
  737. package/dist/ui-library/files/noto-sans-cyrillic-ext-900-normal.woff2 +0 -0
  738. package/dist/ui-library/files/noto-sans-devanagari-100-italic.woff +0 -0
  739. package/dist/ui-library/files/noto-sans-devanagari-100-italic.woff2 +0 -0
  740. package/dist/ui-library/files/noto-sans-devanagari-100-normal.woff +0 -0
  741. package/dist/ui-library/files/noto-sans-devanagari-100-normal.woff2 +0 -0
  742. package/dist/ui-library/files/noto-sans-devanagari-200-italic.woff +0 -0
  743. package/dist/ui-library/files/noto-sans-devanagari-200-italic.woff2 +0 -0
  744. package/dist/ui-library/files/noto-sans-devanagari-200-normal.woff +0 -0
  745. package/dist/ui-library/files/noto-sans-devanagari-200-normal.woff2 +0 -0
  746. package/dist/ui-library/files/noto-sans-devanagari-300-italic.woff +0 -0
  747. package/dist/ui-library/files/noto-sans-devanagari-300-italic.woff2 +0 -0
  748. package/dist/ui-library/files/noto-sans-devanagari-300-normal.woff +0 -0
  749. package/dist/ui-library/files/noto-sans-devanagari-300-normal.woff2 +0 -0
  750. package/dist/ui-library/files/noto-sans-devanagari-400-italic.woff +0 -0
  751. package/dist/ui-library/files/noto-sans-devanagari-400-italic.woff2 +0 -0
  752. package/dist/ui-library/files/noto-sans-devanagari-400-normal.woff +0 -0
  753. package/dist/ui-library/files/noto-sans-devanagari-400-normal.woff2 +0 -0
  754. package/dist/ui-library/files/noto-sans-devanagari-500-italic.woff +0 -0
  755. package/dist/ui-library/files/noto-sans-devanagari-500-italic.woff2 +0 -0
  756. package/dist/ui-library/files/noto-sans-devanagari-500-normal.woff +0 -0
  757. package/dist/ui-library/files/noto-sans-devanagari-500-normal.woff2 +0 -0
  758. package/dist/ui-library/files/noto-sans-devanagari-600-italic.woff +0 -0
  759. package/dist/ui-library/files/noto-sans-devanagari-600-italic.woff2 +0 -0
  760. package/dist/ui-library/files/noto-sans-devanagari-600-normal.woff +0 -0
  761. package/dist/ui-library/files/noto-sans-devanagari-600-normal.woff2 +0 -0
  762. package/dist/ui-library/files/noto-sans-devanagari-700-italic.woff +0 -0
  763. package/dist/ui-library/files/noto-sans-devanagari-700-italic.woff2 +0 -0
  764. package/dist/ui-library/files/noto-sans-devanagari-700-normal.woff +0 -0
  765. package/dist/ui-library/files/noto-sans-devanagari-700-normal.woff2 +0 -0
  766. package/dist/ui-library/files/noto-sans-devanagari-800-italic.woff +0 -0
  767. package/dist/ui-library/files/noto-sans-devanagari-800-italic.woff2 +0 -0
  768. package/dist/ui-library/files/noto-sans-devanagari-800-normal.woff +0 -0
  769. package/dist/ui-library/files/noto-sans-devanagari-800-normal.woff2 +0 -0
  770. package/dist/ui-library/files/noto-sans-devanagari-900-italic.woff +0 -0
  771. package/dist/ui-library/files/noto-sans-devanagari-900-italic.woff2 +0 -0
  772. package/dist/ui-library/files/noto-sans-devanagari-900-normal.woff +0 -0
  773. package/dist/ui-library/files/noto-sans-devanagari-900-normal.woff2 +0 -0
  774. package/dist/ui-library/files/noto-sans-greek-100-italic.woff +0 -0
  775. package/dist/ui-library/files/noto-sans-greek-100-italic.woff2 +0 -0
  776. package/dist/ui-library/files/noto-sans-greek-100-normal.woff +0 -0
  777. package/dist/ui-library/files/noto-sans-greek-100-normal.woff2 +0 -0
  778. package/dist/ui-library/files/noto-sans-greek-200-italic.woff +0 -0
  779. package/dist/ui-library/files/noto-sans-greek-200-italic.woff2 +0 -0
  780. package/dist/ui-library/files/noto-sans-greek-200-normal.woff +0 -0
  781. package/dist/ui-library/files/noto-sans-greek-200-normal.woff2 +0 -0
  782. package/dist/ui-library/files/noto-sans-greek-300-italic.woff +0 -0
  783. package/dist/ui-library/files/noto-sans-greek-300-italic.woff2 +0 -0
  784. package/dist/ui-library/files/noto-sans-greek-300-normal.woff +0 -0
  785. package/dist/ui-library/files/noto-sans-greek-300-normal.woff2 +0 -0
  786. package/dist/ui-library/files/noto-sans-greek-400-italic.woff +0 -0
  787. package/dist/ui-library/files/noto-sans-greek-400-italic.woff2 +0 -0
  788. package/dist/ui-library/files/noto-sans-greek-400-normal.woff +0 -0
  789. package/dist/ui-library/files/noto-sans-greek-400-normal.woff2 +0 -0
  790. package/dist/ui-library/files/noto-sans-greek-500-italic.woff +0 -0
  791. package/dist/ui-library/files/noto-sans-greek-500-italic.woff2 +0 -0
  792. package/dist/ui-library/files/noto-sans-greek-500-normal.woff +0 -0
  793. package/dist/ui-library/files/noto-sans-greek-500-normal.woff2 +0 -0
  794. package/dist/ui-library/files/noto-sans-greek-600-italic.woff +0 -0
  795. package/dist/ui-library/files/noto-sans-greek-600-italic.woff2 +0 -0
  796. package/dist/ui-library/files/noto-sans-greek-600-normal.woff +0 -0
  797. package/dist/ui-library/files/noto-sans-greek-600-normal.woff2 +0 -0
  798. package/dist/ui-library/files/noto-sans-greek-700-italic.woff +0 -0
  799. package/dist/ui-library/files/noto-sans-greek-700-italic.woff2 +0 -0
  800. package/dist/ui-library/files/noto-sans-greek-700-normal.woff +0 -0
  801. package/dist/ui-library/files/noto-sans-greek-700-normal.woff2 +0 -0
  802. package/dist/ui-library/files/noto-sans-greek-800-italic.woff +0 -0
  803. package/dist/ui-library/files/noto-sans-greek-800-italic.woff2 +0 -0
  804. package/dist/ui-library/files/noto-sans-greek-800-normal.woff +0 -0
  805. package/dist/ui-library/files/noto-sans-greek-800-normal.woff2 +0 -0
  806. package/dist/ui-library/files/noto-sans-greek-900-italic.woff +0 -0
  807. package/dist/ui-library/files/noto-sans-greek-900-italic.woff2 +0 -0
  808. package/dist/ui-library/files/noto-sans-greek-900-normal.woff +0 -0
  809. package/dist/ui-library/files/noto-sans-greek-900-normal.woff2 +0 -0
  810. package/dist/ui-library/files/noto-sans-greek-ext-100-italic.woff +0 -0
  811. package/dist/ui-library/files/noto-sans-greek-ext-100-italic.woff2 +0 -0
  812. package/dist/ui-library/files/noto-sans-greek-ext-100-normal.woff +0 -0
  813. package/dist/ui-library/files/noto-sans-greek-ext-100-normal.woff2 +0 -0
  814. package/dist/ui-library/files/noto-sans-greek-ext-200-italic.woff +0 -0
  815. package/dist/ui-library/files/noto-sans-greek-ext-200-italic.woff2 +0 -0
  816. package/dist/ui-library/files/noto-sans-greek-ext-200-normal.woff +0 -0
  817. package/dist/ui-library/files/noto-sans-greek-ext-200-normal.woff2 +0 -0
  818. package/dist/ui-library/files/noto-sans-greek-ext-300-italic.woff +0 -0
  819. package/dist/ui-library/files/noto-sans-greek-ext-300-italic.woff2 +0 -0
  820. package/dist/ui-library/files/noto-sans-greek-ext-300-normal.woff +0 -0
  821. package/dist/ui-library/files/noto-sans-greek-ext-300-normal.woff2 +0 -0
  822. package/dist/ui-library/files/noto-sans-greek-ext-400-italic.woff +0 -0
  823. package/dist/ui-library/files/noto-sans-greek-ext-400-italic.woff2 +0 -0
  824. package/dist/ui-library/files/noto-sans-greek-ext-400-normal.woff +0 -0
  825. package/dist/ui-library/files/noto-sans-greek-ext-400-normal.woff2 +0 -0
  826. package/dist/ui-library/files/noto-sans-greek-ext-500-italic.woff +0 -0
  827. package/dist/ui-library/files/noto-sans-greek-ext-500-italic.woff2 +0 -0
  828. package/dist/ui-library/files/noto-sans-greek-ext-500-normal.woff +0 -0
  829. package/dist/ui-library/files/noto-sans-greek-ext-500-normal.woff2 +0 -0
  830. package/dist/ui-library/files/noto-sans-greek-ext-600-italic.woff +0 -0
  831. package/dist/ui-library/files/noto-sans-greek-ext-600-italic.woff2 +0 -0
  832. package/dist/ui-library/files/noto-sans-greek-ext-600-normal.woff +0 -0
  833. package/dist/ui-library/files/noto-sans-greek-ext-600-normal.woff2 +0 -0
  834. package/dist/ui-library/files/noto-sans-greek-ext-700-italic.woff +0 -0
  835. package/dist/ui-library/files/noto-sans-greek-ext-700-italic.woff2 +0 -0
  836. package/dist/ui-library/files/noto-sans-greek-ext-700-normal.woff +0 -0
  837. package/dist/ui-library/files/noto-sans-greek-ext-700-normal.woff2 +0 -0
  838. package/dist/ui-library/files/noto-sans-greek-ext-800-italic.woff +0 -0
  839. package/dist/ui-library/files/noto-sans-greek-ext-800-italic.woff2 +0 -0
  840. package/dist/ui-library/files/noto-sans-greek-ext-800-normal.woff +0 -0
  841. package/dist/ui-library/files/noto-sans-greek-ext-800-normal.woff2 +0 -0
  842. package/dist/ui-library/files/noto-sans-greek-ext-900-italic.woff +0 -0
  843. package/dist/ui-library/files/noto-sans-greek-ext-900-italic.woff2 +0 -0
  844. package/dist/ui-library/files/noto-sans-greek-ext-900-normal.woff +0 -0
  845. package/dist/ui-library/files/noto-sans-greek-ext-900-normal.woff2 +0 -0
  846. package/dist/ui-library/files/noto-sans-latin-100-italic.woff +0 -0
  847. package/dist/ui-library/files/noto-sans-latin-100-italic.woff2 +0 -0
  848. package/dist/ui-library/files/noto-sans-latin-100-normal.woff +0 -0
  849. package/dist/ui-library/files/noto-sans-latin-100-normal.woff2 +0 -0
  850. package/dist/ui-library/files/noto-sans-latin-200-italic.woff +0 -0
  851. package/dist/ui-library/files/noto-sans-latin-200-italic.woff2 +0 -0
  852. package/dist/ui-library/files/noto-sans-latin-200-normal.woff +0 -0
  853. package/dist/ui-library/files/noto-sans-latin-200-normal.woff2 +0 -0
  854. package/dist/ui-library/files/noto-sans-latin-300-italic.woff +0 -0
  855. package/dist/ui-library/files/noto-sans-latin-300-italic.woff2 +0 -0
  856. package/dist/ui-library/files/noto-sans-latin-300-normal.woff +0 -0
  857. package/dist/ui-library/files/noto-sans-latin-300-normal.woff2 +0 -0
  858. package/dist/ui-library/files/noto-sans-latin-400-italic.woff +0 -0
  859. package/dist/ui-library/files/noto-sans-latin-400-italic.woff2 +0 -0
  860. package/dist/ui-library/files/noto-sans-latin-400-normal.woff +0 -0
  861. package/dist/ui-library/files/noto-sans-latin-400-normal.woff2 +0 -0
  862. package/dist/ui-library/files/noto-sans-latin-500-italic.woff +0 -0
  863. package/dist/ui-library/files/noto-sans-latin-500-italic.woff2 +0 -0
  864. package/dist/ui-library/files/noto-sans-latin-500-normal.woff +0 -0
  865. package/dist/ui-library/files/noto-sans-latin-500-normal.woff2 +0 -0
  866. package/dist/ui-library/files/noto-sans-latin-600-italic.woff +0 -0
  867. package/dist/ui-library/files/noto-sans-latin-600-italic.woff2 +0 -0
  868. package/dist/ui-library/files/noto-sans-latin-600-normal.woff +0 -0
  869. package/dist/ui-library/files/noto-sans-latin-600-normal.woff2 +0 -0
  870. package/dist/ui-library/files/noto-sans-latin-700-italic.woff +0 -0
  871. package/dist/ui-library/files/noto-sans-latin-700-italic.woff2 +0 -0
  872. package/dist/ui-library/files/noto-sans-latin-700-normal.woff +0 -0
  873. package/dist/ui-library/files/noto-sans-latin-700-normal.woff2 +0 -0
  874. package/dist/ui-library/files/noto-sans-latin-800-italic.woff +0 -0
  875. package/dist/ui-library/files/noto-sans-latin-800-italic.woff2 +0 -0
  876. package/dist/ui-library/files/noto-sans-latin-800-normal.woff +0 -0
  877. package/dist/ui-library/files/noto-sans-latin-800-normal.woff2 +0 -0
  878. package/dist/ui-library/files/noto-sans-latin-900-italic.woff +0 -0
  879. package/dist/ui-library/files/noto-sans-latin-900-italic.woff2 +0 -0
  880. package/dist/ui-library/files/noto-sans-latin-900-normal.woff +0 -0
  881. package/dist/ui-library/files/noto-sans-latin-900-normal.woff2 +0 -0
  882. package/dist/ui-library/files/noto-sans-latin-ext-100-italic.woff +0 -0
  883. package/dist/ui-library/files/noto-sans-latin-ext-100-italic.woff2 +0 -0
  884. package/dist/ui-library/files/noto-sans-latin-ext-100-normal.woff +0 -0
  885. package/dist/ui-library/files/noto-sans-latin-ext-100-normal.woff2 +0 -0
  886. package/dist/ui-library/files/noto-sans-latin-ext-200-italic.woff +0 -0
  887. package/dist/ui-library/files/noto-sans-latin-ext-200-italic.woff2 +0 -0
  888. package/dist/ui-library/files/noto-sans-latin-ext-200-normal.woff +0 -0
  889. package/dist/ui-library/files/noto-sans-latin-ext-200-normal.woff2 +0 -0
  890. package/dist/ui-library/files/noto-sans-latin-ext-300-italic.woff +0 -0
  891. package/dist/ui-library/files/noto-sans-latin-ext-300-italic.woff2 +0 -0
  892. package/dist/ui-library/files/noto-sans-latin-ext-300-normal.woff +0 -0
  893. package/dist/ui-library/files/noto-sans-latin-ext-300-normal.woff2 +0 -0
  894. package/dist/ui-library/files/noto-sans-latin-ext-400-italic.woff +0 -0
  895. package/dist/ui-library/files/noto-sans-latin-ext-400-italic.woff2 +0 -0
  896. package/dist/ui-library/files/noto-sans-latin-ext-400-normal.woff +0 -0
  897. package/dist/ui-library/files/noto-sans-latin-ext-400-normal.woff2 +0 -0
  898. package/dist/ui-library/files/noto-sans-latin-ext-500-italic.woff +0 -0
  899. package/dist/ui-library/files/noto-sans-latin-ext-500-italic.woff2 +0 -0
  900. package/dist/ui-library/files/noto-sans-latin-ext-500-normal.woff +0 -0
  901. package/dist/ui-library/files/noto-sans-latin-ext-500-normal.woff2 +0 -0
  902. package/dist/ui-library/files/noto-sans-latin-ext-600-italic.woff +0 -0
  903. package/dist/ui-library/files/noto-sans-latin-ext-600-italic.woff2 +0 -0
  904. package/dist/ui-library/files/noto-sans-latin-ext-600-normal.woff +0 -0
  905. package/dist/ui-library/files/noto-sans-latin-ext-600-normal.woff2 +0 -0
  906. package/dist/ui-library/files/noto-sans-latin-ext-700-italic.woff +0 -0
  907. package/dist/ui-library/files/noto-sans-latin-ext-700-italic.woff2 +0 -0
  908. package/dist/ui-library/files/noto-sans-latin-ext-700-normal.woff +0 -0
  909. package/dist/ui-library/files/noto-sans-latin-ext-700-normal.woff2 +0 -0
  910. package/dist/ui-library/files/noto-sans-latin-ext-800-italic.woff +0 -0
  911. package/dist/ui-library/files/noto-sans-latin-ext-800-italic.woff2 +0 -0
  912. package/dist/ui-library/files/noto-sans-latin-ext-800-normal.woff +0 -0
  913. package/dist/ui-library/files/noto-sans-latin-ext-800-normal.woff2 +0 -0
  914. package/dist/ui-library/files/noto-sans-latin-ext-900-italic.woff +0 -0
  915. package/dist/ui-library/files/noto-sans-latin-ext-900-italic.woff2 +0 -0
  916. package/dist/ui-library/files/noto-sans-latin-ext-900-normal.woff +0 -0
  917. package/dist/ui-library/files/noto-sans-latin-ext-900-normal.woff2 +0 -0
  918. package/dist/ui-library/files/noto-sans-vietnamese-100-italic.woff +0 -0
  919. package/dist/ui-library/files/noto-sans-vietnamese-100-italic.woff2 +0 -0
  920. package/dist/ui-library/files/noto-sans-vietnamese-100-normal.woff +0 -0
  921. package/dist/ui-library/files/noto-sans-vietnamese-100-normal.woff2 +0 -0
  922. package/dist/ui-library/files/noto-sans-vietnamese-200-italic.woff +0 -0
  923. package/dist/ui-library/files/noto-sans-vietnamese-200-italic.woff2 +0 -0
  924. package/dist/ui-library/files/noto-sans-vietnamese-200-normal.woff +0 -0
  925. package/dist/ui-library/files/noto-sans-vietnamese-200-normal.woff2 +0 -0
  926. package/dist/ui-library/files/noto-sans-vietnamese-300-italic.woff +0 -0
  927. package/dist/ui-library/files/noto-sans-vietnamese-300-italic.woff2 +0 -0
  928. package/dist/ui-library/files/noto-sans-vietnamese-300-normal.woff +0 -0
  929. package/dist/ui-library/files/noto-sans-vietnamese-300-normal.woff2 +0 -0
  930. package/dist/ui-library/files/noto-sans-vietnamese-400-italic.woff +0 -0
  931. package/dist/ui-library/files/noto-sans-vietnamese-400-italic.woff2 +0 -0
  932. package/dist/ui-library/files/noto-sans-vietnamese-400-normal.woff +0 -0
  933. package/dist/ui-library/files/noto-sans-vietnamese-400-normal.woff2 +0 -0
  934. package/dist/ui-library/files/noto-sans-vietnamese-500-italic.woff +0 -0
  935. package/dist/ui-library/files/noto-sans-vietnamese-500-italic.woff2 +0 -0
  936. package/dist/ui-library/files/noto-sans-vietnamese-500-normal.woff +0 -0
  937. package/dist/ui-library/files/noto-sans-vietnamese-500-normal.woff2 +0 -0
  938. package/dist/ui-library/files/noto-sans-vietnamese-600-italic.woff +0 -0
  939. package/dist/ui-library/files/noto-sans-vietnamese-600-italic.woff2 +0 -0
  940. package/dist/ui-library/files/noto-sans-vietnamese-600-normal.woff +0 -0
  941. package/dist/ui-library/files/noto-sans-vietnamese-600-normal.woff2 +0 -0
  942. package/dist/ui-library/files/noto-sans-vietnamese-700-italic.woff +0 -0
  943. package/dist/ui-library/files/noto-sans-vietnamese-700-italic.woff2 +0 -0
  944. package/dist/ui-library/files/noto-sans-vietnamese-700-normal.woff +0 -0
  945. package/dist/ui-library/files/noto-sans-vietnamese-700-normal.woff2 +0 -0
  946. package/dist/ui-library/files/noto-sans-vietnamese-800-italic.woff +0 -0
  947. package/dist/ui-library/files/noto-sans-vietnamese-800-italic.woff2 +0 -0
  948. package/dist/ui-library/files/noto-sans-vietnamese-800-normal.woff +0 -0
  949. package/dist/ui-library/files/noto-sans-vietnamese-800-normal.woff2 +0 -0
  950. package/dist/ui-library/files/noto-sans-vietnamese-900-italic.woff +0 -0
  951. package/dist/ui-library/files/noto-sans-vietnamese-900-italic.woff2 +0 -0
  952. package/dist/ui-library/files/noto-sans-vietnamese-900-normal.woff +0 -0
  953. package/dist/ui-library/files/noto-sans-vietnamese-900-normal.woff2 +0 -0
  954. package/dist/ui-library/index.esm.js.map +1 -1
  955. package/dist/ui-library/{p-d42f1ea9.entry.js → p-03acec96.entry.js} +2 -2
  956. package/dist/ui-library/{p-d42f1ea9.entry.js.map → p-03acec96.entry.js.map} +1 -1
  957. package/dist/ui-library/p-06ba4450.js.map +1 -1
  958. package/dist/ui-library/{p-b7c68f74.entry.js → p-06d562b7.entry.js} +2 -2
  959. package/dist/ui-library/{p-b7c68f74.entry.js.map → p-06d562b7.entry.js.map} +1 -1
  960. package/dist/ui-library/p-07b6203f.entry.js +2 -0
  961. package/dist/ui-library/{p-7c18b8ca.entry.js.map → p-07b6203f.entry.js.map} +1 -1
  962. package/dist/ui-library/{p-2386627e.entry.js → p-0a6b6429.entry.js} +2 -2
  963. package/dist/ui-library/{p-2386627e.entry.js.map → p-0a6b6429.entry.js.map} +1 -1
  964. package/dist/ui-library/p-0cebf1d2.js.map +1 -1
  965. package/dist/ui-library/p-14d09601.entry.js +2 -0
  966. package/dist/ui-library/{p-11344bb8.entry.js.map → p-14d09601.entry.js.map} +1 -1
  967. package/dist/ui-library/{p-45b0748e.entry.js → p-171df3ad.entry.js} +2 -2
  968. package/dist/ui-library/{p-45b0748e.entry.js.map → p-171df3ad.entry.js.map} +1 -1
  969. package/dist/ui-library/p-1cc3b56d.entry.js +2 -0
  970. package/dist/ui-library/{p-36d5f98a.entry.js.map → p-1cc3b56d.entry.js.map} +1 -1
  971. package/dist/ui-library/{p-7bdd1116.entry.js → p-1cd09d9b.entry.js} +2 -2
  972. package/dist/ui-library/{p-7bdd1116.entry.js.map → p-1cd09d9b.entry.js.map} +1 -1
  973. package/dist/ui-library/{p-416b0439.entry.js → p-1f7a0cb5.entry.js} +2 -2
  974. package/dist/ui-library/{p-416b0439.entry.js.map → p-1f7a0cb5.entry.js.map} +1 -1
  975. package/dist/ui-library/p-2355c444.entry.js +2 -0
  976. package/dist/ui-library/{p-347e568f.entry.js.map → p-2355c444.entry.js.map} +1 -1
  977. package/dist/ui-library/p-281ffc35.entry.js +2 -0
  978. package/dist/ui-library/p-281ffc35.entry.js.map +1 -0
  979. package/dist/ui-library/{p-c62893e5.entry.js → p-2ad904a7.entry.js} +2 -2
  980. package/dist/ui-library/{p-c62893e5.entry.js.map → p-2ad904a7.entry.js.map} +1 -1
  981. package/dist/ui-library/{p-b5acf54d.entry.js → p-30000e86.entry.js} +2 -2
  982. package/dist/ui-library/{p-b5acf54d.entry.js.map → p-30000e86.entry.js.map} +1 -1
  983. package/dist/ui-library/{p-4d89932f.entry.js → p-42cd3588.entry.js} +2 -2
  984. package/dist/ui-library/{p-4d89932f.entry.js.map → p-42cd3588.entry.js.map} +1 -1
  985. package/dist/ui-library/p-48118ce8.js +3 -0
  986. package/dist/ui-library/p-48118ce8.js.map +1 -0
  987. package/dist/ui-library/{p-b335ed9c.entry.js → p-49019d6c.entry.js} +2 -2
  988. package/dist/ui-library/{p-b335ed9c.entry.js.map → p-49019d6c.entry.js.map} +1 -1
  989. package/dist/ui-library/{p-c6464bfe.entry.js → p-4d72b179.entry.js} +2 -2
  990. package/dist/ui-library/{p-c6464bfe.entry.js.map → p-4d72b179.entry.js.map} +1 -1
  991. package/dist/ui-library/{p-d9586999.entry.js → p-4de4ee7a.entry.js} +2 -2
  992. package/dist/ui-library/{p-d9586999.entry.js.map → p-4de4ee7a.entry.js.map} +1 -1
  993. package/dist/ui-library/p-4edde816.entry.js +2 -0
  994. package/dist/ui-library/p-4edde816.entry.js.map +1 -0
  995. package/dist/ui-library/p-4f129bb3.entry.js +2 -0
  996. package/dist/ui-library/p-4f129bb3.entry.js.map +1 -0
  997. package/dist/ui-library/{p-3b5a76ea.entry.js → p-53867d77.entry.js} +2 -2
  998. package/dist/ui-library/{p-3b5a76ea.entry.js.map → p-53867d77.entry.js.map} +1 -1
  999. package/dist/ui-library/p-57ea4cb7.entry.js +2 -0
  1000. package/dist/ui-library/p-57ea4cb7.entry.js.map +1 -0
  1001. package/dist/ui-library/{p-a398e3eb.entry.js → p-5ece7986.entry.js} +2 -2
  1002. package/dist/ui-library/{p-a398e3eb.entry.js.map → p-5ece7986.entry.js.map} +1 -1
  1003. package/dist/ui-library/p-5f491974.entry.js +2 -0
  1004. package/dist/ui-library/p-5f491974.entry.js.map +1 -0
  1005. package/dist/ui-library/{p-b60c20aa.entry.js → p-5fc9cd7b.entry.js} +2 -2
  1006. package/dist/ui-library/{p-b60c20aa.entry.js.map → p-5fc9cd7b.entry.js.map} +1 -1
  1007. package/dist/ui-library/{p-4bc7bbdb.entry.js → p-618bf750.entry.js} +2 -2
  1008. package/dist/ui-library/{p-4bc7bbdb.entry.js.map → p-618bf750.entry.js.map} +1 -1
  1009. package/dist/ui-library/{p-63acceb6.entry.js → p-62a1f514.entry.js} +2 -2
  1010. package/dist/ui-library/{p-63acceb6.entry.js.map → p-62a1f514.entry.js.map} +1 -1
  1011. package/dist/ui-library/p-651293e7.js.map +1 -1
  1012. package/dist/ui-library/p-6513b8ce.entry.js +2 -0
  1013. package/dist/ui-library/{p-189602e4.entry.js.map → p-6513b8ce.entry.js.map} +1 -1
  1014. package/dist/ui-library/{p-47c84904.entry.js → p-6795e0a9.entry.js} +2 -2
  1015. package/dist/ui-library/{p-47c84904.entry.js.map → p-6795e0a9.entry.js.map} +1 -1
  1016. package/dist/ui-library/p-6ec126f7.entry.js +2 -0
  1017. package/dist/ui-library/{p-9cb83369.entry.js.map → p-6ec126f7.entry.js.map} +1 -1
  1018. package/dist/ui-library/p-705e3612.entry.js +2 -0
  1019. package/dist/ui-library/p-705e3612.entry.js.map +1 -0
  1020. package/dist/ui-library/{p-06ba653e.entry.js → p-70fac778.entry.js} +2 -2
  1021. package/dist/ui-library/{p-06ba653e.entry.js.map → p-70fac778.entry.js.map} +1 -1
  1022. package/dist/ui-library/{p-037afc74.entry.js → p-7afdff5c.entry.js} +2 -2
  1023. package/dist/ui-library/p-7afdff5c.entry.js.map +1 -0
  1024. package/dist/ui-library/{p-4963f03c.entry.js → p-7eb9ae75.entry.js} +2 -2
  1025. package/dist/ui-library/{p-4963f03c.entry.js.map → p-7eb9ae75.entry.js.map} +1 -1
  1026. package/dist/ui-library/p-7f856f00.js.map +1 -1
  1027. package/dist/ui-library/p-8227aaed.js.map +1 -1
  1028. package/dist/ui-library/p-842b492e.js.map +1 -1
  1029. package/dist/ui-library/p-862d474e.js.map +1 -1
  1030. package/dist/ui-library/{p-6f9153be.entry.js → p-870139dc.entry.js} +2 -2
  1031. package/dist/ui-library/{p-6f9153be.entry.js.map → p-870139dc.entry.js.map} +1 -1
  1032. package/dist/ui-library/p-8bfb4bfc.js.map +1 -1
  1033. package/dist/ui-library/{p-605bdd81.js → p-a04460e3.js} +2 -2
  1034. package/dist/ui-library/{p-605bdd81.js.map → p-a04460e3.js.map} +1 -1
  1035. package/dist/ui-library/p-a1502802.js.map +1 -1
  1036. package/dist/ui-library/{p-07c8de65.entry.js → p-a20a702a.entry.js} +2 -2
  1037. package/dist/ui-library/{p-07c8de65.entry.js.map → p-a20a702a.entry.js.map} +1 -1
  1038. package/dist/ui-library/p-adc65fc8.entry.js +2 -0
  1039. package/dist/ui-library/p-adc65fc8.entry.js.map +1 -0
  1040. package/dist/ui-library/{p-0c129b61.entry.js → p-afb15ea4.entry.js} +2 -2
  1041. package/dist/ui-library/{p-0c129b61.entry.js.map → p-afb15ea4.entry.js.map} +1 -1
  1042. package/dist/ui-library/p-b361d5da.entry.js +2 -0
  1043. package/dist/ui-library/{p-32e421a3.entry.js.map → p-b361d5da.entry.js.map} +1 -1
  1044. package/dist/ui-library/{p-99f6fe01.entry.js → p-bfb398c6.entry.js} +2 -2
  1045. package/dist/ui-library/{p-99f6fe01.entry.js.map → p-bfb398c6.entry.js.map} +1 -1
  1046. package/dist/ui-library/{p-d88b9c16.entry.js → p-cd65e3b2.entry.js} +2 -2
  1047. package/dist/ui-library/{p-d88b9c16.entry.js.map → p-cd65e3b2.entry.js.map} +1 -1
  1048. package/dist/ui-library/{p-a9e009af.entry.js → p-cd79700c.entry.js} +2 -2
  1049. package/dist/ui-library/{p-a9e009af.entry.js.map → p-cd79700c.entry.js.map} +1 -1
  1050. package/dist/ui-library/{p-419ed003.entry.js → p-cdc9224d.entry.js} +2 -2
  1051. package/dist/ui-library/{p-419ed003.entry.js.map → p-cdc9224d.entry.js.map} +1 -1
  1052. package/dist/ui-library/p-cdc94cd6.entry.js +2 -0
  1053. package/dist/ui-library/p-cdc94cd6.entry.js.map +1 -0
  1054. package/dist/ui-library/{p-8f1d3461.entry.js → p-d46acf21.entry.js} +2 -2
  1055. package/dist/ui-library/{p-8f1d3461.entry.js.map → p-d46acf21.entry.js.map} +1 -1
  1056. package/dist/ui-library/p-d67b8482.entry.js +2 -0
  1057. package/dist/ui-library/{p-030fa1fa.entry.js.map → p-d67b8482.entry.js.map} +1 -1
  1058. package/dist/ui-library/{p-1adc26f2.entry.js → p-db193a32.entry.js} +2 -2
  1059. package/dist/ui-library/{p-1adc26f2.entry.js.map → p-db193a32.entry.js.map} +1 -1
  1060. package/dist/ui-library/p-e080d5b6.js.map +1 -1
  1061. package/dist/ui-library/p-e1255160.js.map +1 -1
  1062. package/dist/ui-library/{p-fe89a7c4.entry.js → p-e1529ef6.entry.js} +2 -2
  1063. package/dist/ui-library/{p-fe89a7c4.entry.js.map → p-e1529ef6.entry.js.map} +1 -1
  1064. package/dist/ui-library/{p-e9b8ad98.entry.js → p-e181944f.entry.js} +2 -2
  1065. package/dist/ui-library/{p-e9b8ad98.entry.js.map → p-e181944f.entry.js.map} +1 -1
  1066. package/dist/ui-library/{p-d1a2f84b.entry.js → p-e6efc08a.entry.js} +2 -2
  1067. package/dist/ui-library/{p-d1a2f84b.entry.js.map → p-e6efc08a.entry.js.map} +1 -1
  1068. package/dist/ui-library/p-ea854ec5.entry.js +2 -0
  1069. package/dist/ui-library/p-ea854ec5.entry.js.map +1 -0
  1070. package/dist/ui-library/{p-63ee5e7e.entry.js → p-f12b22bc.entry.js} +2 -2
  1071. package/dist/ui-library/{p-63ee5e7e.entry.js.map → p-f12b22bc.entry.js.map} +1 -1
  1072. package/dist/ui-library/p-f136a6b2.js.map +1 -1
  1073. package/dist/ui-library/p-f9a1f6ab.entry.js +2 -0
  1074. package/dist/ui-library/p-f9a1f6ab.entry.js.map +1 -0
  1075. package/dist/ui-library/{p-cf109cbf.entry.js → p-ffce31da.entry.js} +2 -2
  1076. package/dist/ui-library/{p-cf109cbf.entry.js.map → p-ffce31da.entry.js.map} +1 -1
  1077. package/dist/ui-library/ui-library.css +1 -1
  1078. package/dist/ui-library/ui-library.esm.js +1 -1
  1079. package/dist/ui-library/ui-library.esm.js.map +1 -1
  1080. package/loader/cdn.js +1 -3
  1081. package/loader/index.cjs.js +1 -3
  1082. package/loader/index.d.ts +3 -0
  1083. package/loader/index.es2017.js +1 -3
  1084. package/loader/index.js +1 -3
  1085. package/package.json +6 -18
  1086. package/dist/cjs/index-1f707a55.js +0 -2718
  1087. package/dist/cjs/index-1f707a55.js.map +0 -1
  1088. package/dist/cjs/six-checkbox_2.cjs.entry.js.map +0 -1
  1089. package/dist/cjs/six-dropdown_2.cjs.entry.js.map +0 -1
  1090. package/dist/collection/components/six-alert/test/six-alert.spec.js +0 -25
  1091. package/dist/collection/components/six-alert/test/six-alert.spec.js.map +0 -1
  1092. package/dist/collection/components/six-avatar/test/six-avatar.spec.js +0 -26
  1093. package/dist/collection/components/six-avatar/test/six-avatar.spec.js.map +0 -1
  1094. package/dist/collection/components/six-badge/test/six-badge.spec.js +0 -20
  1095. package/dist/collection/components/six-badge/test/six-badge.spec.js.map +0 -1
  1096. package/dist/collection/components/six-button/test/six-button.spec.js +0 -69
  1097. package/dist/collection/components/six-button/test/six-button.spec.js.map +0 -1
  1098. package/dist/collection/components/six-card/test/six-card.spec.js +0 -18
  1099. package/dist/collection/components/six-card/test/six-card.spec.js.map +0 -1
  1100. package/dist/collection/components/six-checkbox/test/six-checkbox.spec.js +0 -83
  1101. package/dist/collection/components/six-checkbox/test/six-checkbox.spec.js.map +0 -1
  1102. package/dist/collection/components/six-datepicker/test/six-datepicker.spec.js +0 -26
  1103. package/dist/collection/components/six-datepicker/test/six-datepicker.spec.js.map +0 -1
  1104. package/dist/collection/components/six-details/test/six-details.spec.js +0 -36
  1105. package/dist/collection/components/six-details/test/six-details.spec.js.map +0 -1
  1106. package/dist/collection/components/six-dialog/test/six-dialog.spec.js +0 -34
  1107. package/dist/collection/components/six-dialog/test/six-dialog.spec.js.map +0 -1
  1108. package/dist/collection/components/six-drawer/test/six-drawer.spec.js +0 -34
  1109. package/dist/collection/components/six-drawer/test/six-drawer.spec.js.map +0 -1
  1110. package/dist/collection/components/six-dropdown/test/six-dropdown.spec.js +0 -147
  1111. package/dist/collection/components/six-dropdown/test/six-dropdown.spec.js.map +0 -1
  1112. package/dist/collection/components/six-error-page/test/six-error-page.spec.js +0 -240
  1113. package/dist/collection/components/six-error-page/test/six-error-page.spec.js.map +0 -1
  1114. package/dist/collection/components/six-file-list/test/six-file-list.spec.js +0 -67
  1115. package/dist/collection/components/six-file-list/test/six-file-list.spec.js.map +0 -1
  1116. package/dist/collection/components/six-file-list-item/test/six-file-list-item.spec.js +0 -169
  1117. package/dist/collection/components/six-file-list-item/test/six-file-list-item.spec.js.map +0 -1
  1118. package/dist/collection/components/six-file-upload/test/six-file-upload.spec.js +0 -266
  1119. package/dist/collection/components/six-file-upload/test/six-file-upload.spec.js.map +0 -1
  1120. package/dist/collection/components/six-footer/test/six-footer.spec.js +0 -21
  1121. package/dist/collection/components/six-footer/test/six-footer.spec.js.map +0 -1
  1122. package/dist/collection/components/six-group-label/test/six-group-label.spec.js +0 -45
  1123. package/dist/collection/components/six-group-label/test/six-group-label.spec.js.map +0 -1
  1124. package/dist/collection/components/six-icon/test/six-icon.spec.js +0 -20
  1125. package/dist/collection/components/six-icon/test/six-icon.spec.js.map +0 -1
  1126. package/dist/collection/components/six-icon-button/test/six-icon-button.spec.js +0 -23
  1127. package/dist/collection/components/six-icon-button/test/six-icon-button.spec.js.map +0 -1
  1128. package/dist/collection/components/six-input/test/six-input.spec.js +0 -39
  1129. package/dist/collection/components/six-input/test/six-input.spec.js.map +0 -1
  1130. package/dist/collection/components/six-item-picker/test/six-item-picker.spec.js +0 -90
  1131. package/dist/collection/components/six-item-picker/test/six-item-picker.spec.js.map +0 -1
  1132. package/dist/collection/components/six-language-switcher/test/six-language-switcher.spec.js +0 -196
  1133. package/dist/collection/components/six-language-switcher/test/six-language-switcher.spec.js.map +0 -1
  1134. package/dist/collection/components/six-layout-grid/test/six-layout-grid.spec.js +0 -18
  1135. package/dist/collection/components/six-layout-grid/test/six-layout-grid.spec.js.map +0 -1
  1136. package/dist/collection/components/six-main-container/test/six-main-container.spec.js +0 -22
  1137. package/dist/collection/components/six-main-container/test/six-main-container.spec.js.map +0 -1
  1138. package/dist/collection/components/six-menu/test/six-menu.spec.js +0 -93
  1139. package/dist/collection/components/six-menu/test/six-menu.spec.js.map +0 -1
  1140. package/dist/collection/components/six-menu-divider/test/six-menu-divider.spec.js +0 -18
  1141. package/dist/collection/components/six-menu-divider/test/six-menu-divider.spec.js.map +0 -1
  1142. package/dist/collection/components/six-menu-item/test/six-menu-item.spec.js +0 -33
  1143. package/dist/collection/components/six-menu-item/test/six-menu-item.spec.js.map +0 -1
  1144. package/dist/collection/components/six-menu-label/test/six-menu-label.spec.js +0 -20
  1145. package/dist/collection/components/six-menu-label/test/six-menu-label.spec.js.map +0 -1
  1146. package/dist/collection/components/six-picto/test/six-picto.spec.js +0 -33
  1147. package/dist/collection/components/six-picto/test/six-picto.spec.js.map +0 -1
  1148. package/dist/collection/components/six-progress-bar/test/six-progress-bar.spec.js +0 -24
  1149. package/dist/collection/components/six-progress-bar/test/six-progress-bar.spec.js.map +0 -1
  1150. package/dist/collection/components/six-progress-ring/test/six-progress-ring.spec.js +0 -26
  1151. package/dist/collection/components/six-progress-ring/test/six-progress-ring.spec.js.map +0 -1
  1152. package/dist/collection/components/six-radio/test/six-radio.spec.js +0 -63
  1153. package/dist/collection/components/six-radio/test/six-radio.spec.js.map +0 -1
  1154. package/dist/collection/components/six-range/test/six-range.spec.js +0 -34
  1155. package/dist/collection/components/six-range/test/six-range.spec.js.map +0 -1
  1156. package/dist/collection/components/six-root/test/six-root.spec.js +0 -36
  1157. package/dist/collection/components/six-root/test/six-root.spec.js.map +0 -1
  1158. package/dist/collection/components/six-search-field/test/six-search-field.spec.js +0 -22
  1159. package/dist/collection/components/six-search-field/test/six-search-field.spec.js.map +0 -1
  1160. package/dist/collection/components/six-select/test/six-select.spec.js +0 -102
  1161. package/dist/collection/components/six-select/test/six-select.spec.js.map +0 -1
  1162. package/dist/collection/components/six-select/test/util.spec.js +0 -103
  1163. package/dist/collection/components/six-select/test/util.spec.js.map +0 -1
  1164. package/dist/collection/components/six-sidebar/test/six-sidebar.spec.js +0 -22
  1165. package/dist/collection/components/six-sidebar/test/six-sidebar.spec.js.map +0 -1
  1166. package/dist/collection/components/six-sidebar-item/test/six-sidebar-item.spec.js +0 -50
  1167. package/dist/collection/components/six-sidebar-item/test/six-sidebar-item.spec.js.map +0 -1
  1168. package/dist/collection/components/six-sidebar-item-group/test/six-sidebar-item-group.spec.js +0 -53
  1169. package/dist/collection/components/six-sidebar-item-group/test/six-sidebar-item-group.spec.js.map +0 -1
  1170. package/dist/collection/components/six-spinner/test/six-spinner.spec.js +0 -37
  1171. package/dist/collection/components/six-spinner/test/six-spinner.spec.js.map +0 -1
  1172. package/dist/collection/components/six-stage-indicator/test/six-stage-indicator.spec.js +0 -117
  1173. package/dist/collection/components/six-stage-indicator/test/six-stage-indicator.spec.js.map +0 -1
  1174. package/dist/collection/components/six-switch/test/six-switch.spec.js +0 -73
  1175. package/dist/collection/components/six-switch/test/six-switch.spec.js.map +0 -1
  1176. package/dist/collection/components/six-tab-panel/test/six-tab-panel.spec.js +0 -20
  1177. package/dist/collection/components/six-tab-panel/test/six-tab-panel.spec.js.map +0 -1
  1178. package/dist/collection/components/six-tag/test/six-tag.spec.js +0 -54
  1179. package/dist/collection/components/six-tag/test/six-tag.spec.js.map +0 -1
  1180. package/dist/collection/components/six-textarea/test/six-textarea.spec.js +0 -119
  1181. package/dist/collection/components/six-textarea/test/six-textarea.spec.js.map +0 -1
  1182. package/dist/collection/components/six-tile/test/six-tile.spec.js +0 -69
  1183. package/dist/collection/components/six-tile/test/six-tile.spec.js.map +0 -1
  1184. package/dist/collection/components/six-timepicker/test/six-timepicker.spec.js +0 -496
  1185. package/dist/collection/components/six-timepicker/test/six-timepicker.spec.js.map +0 -1
  1186. package/dist/collection/components/six-tooltip/test/six-tooltip.spec.js +0 -28
  1187. package/dist/collection/components/six-tooltip/test/six-tooltip.spec.js.map +0 -1
  1188. package/dist/collection/files/file-list.json +0 -308
  1189. package/dist/collection/files/noto-sans-all-100-italic.woff +0 -0
  1190. package/dist/collection/files/noto-sans-all-100-normal.woff +0 -0
  1191. package/dist/collection/files/noto-sans-all-200-italic.woff +0 -0
  1192. package/dist/collection/files/noto-sans-all-200-normal.woff +0 -0
  1193. package/dist/collection/files/noto-sans-all-300-italic.woff +0 -0
  1194. package/dist/collection/files/noto-sans-all-300-normal.woff +0 -0
  1195. package/dist/collection/files/noto-sans-all-400-italic.woff +0 -0
  1196. package/dist/collection/files/noto-sans-all-400-normal.woff +0 -0
  1197. package/dist/collection/files/noto-sans-all-500-italic.woff +0 -0
  1198. package/dist/collection/files/noto-sans-all-500-normal.woff +0 -0
  1199. package/dist/collection/files/noto-sans-all-600-italic.woff +0 -0
  1200. package/dist/collection/files/noto-sans-all-600-normal.woff +0 -0
  1201. package/dist/collection/files/noto-sans-all-700-italic.woff +0 -0
  1202. package/dist/collection/files/noto-sans-all-700-normal.woff +0 -0
  1203. package/dist/collection/files/noto-sans-all-800-italic.woff +0 -0
  1204. package/dist/collection/files/noto-sans-all-800-normal.woff +0 -0
  1205. package/dist/collection/files/noto-sans-all-900-italic.woff +0 -0
  1206. package/dist/collection/files/noto-sans-all-900-normal.woff +0 -0
  1207. package/dist/collection/utils/date-util.spec.js +0 -995
  1208. package/dist/collection/utils/date-util.spec.js.map +0 -1
  1209. package/dist/collection/utils/scroll.spec.js +0 -122
  1210. package/dist/collection/utils/scroll.spec.js.map +0 -1
  1211. package/dist/collection/utils/time.util.spec.js +0 -368
  1212. package/dist/collection/utils/time.util.spec.js.map +0 -1
  1213. package/dist/esm/index-5390c1d6.js +0 -2689
  1214. package/dist/esm/index-5390c1d6.js.map +0 -1
  1215. package/dist/esm/polyfills/core-js.js +0 -11
  1216. package/dist/esm/polyfills/dom.js +0 -79
  1217. package/dist/esm/polyfills/es5-html-element.js +0 -1
  1218. package/dist/esm/polyfills/index.js +0 -34
  1219. package/dist/esm/polyfills/system.js +0 -6
  1220. package/dist/esm/six-checkbox_2.entry.js.map +0 -1
  1221. package/dist/esm/six-dropdown_2.entry.js.map +0 -1
  1222. package/dist/ui-library/files/file-list.json +0 -308
  1223. package/dist/ui-library/files/noto-sans-all-100-italic.woff +0 -0
  1224. package/dist/ui-library/files/noto-sans-all-100-normal.woff +0 -0
  1225. package/dist/ui-library/files/noto-sans-all-200-italic.woff +0 -0
  1226. package/dist/ui-library/files/noto-sans-all-200-normal.woff +0 -0
  1227. package/dist/ui-library/files/noto-sans-all-300-italic.woff +0 -0
  1228. package/dist/ui-library/files/noto-sans-all-300-normal.woff +0 -0
  1229. package/dist/ui-library/files/noto-sans-all-400-italic.woff +0 -0
  1230. package/dist/ui-library/files/noto-sans-all-400-normal.woff +0 -0
  1231. package/dist/ui-library/files/noto-sans-all-500-italic.woff +0 -0
  1232. package/dist/ui-library/files/noto-sans-all-500-normal.woff +0 -0
  1233. package/dist/ui-library/files/noto-sans-all-600-italic.woff +0 -0
  1234. package/dist/ui-library/files/noto-sans-all-600-normal.woff +0 -0
  1235. package/dist/ui-library/files/noto-sans-all-700-italic.woff +0 -0
  1236. package/dist/ui-library/files/noto-sans-all-700-normal.woff +0 -0
  1237. package/dist/ui-library/files/noto-sans-all-800-italic.woff +0 -0
  1238. package/dist/ui-library/files/noto-sans-all-800-normal.woff +0 -0
  1239. package/dist/ui-library/files/noto-sans-all-900-italic.woff +0 -0
  1240. package/dist/ui-library/files/noto-sans-all-900-normal.woff +0 -0
  1241. package/dist/ui-library/p-030fa1fa.entry.js +0 -2
  1242. package/dist/ui-library/p-037afc74.entry.js.map +0 -1
  1243. package/dist/ui-library/p-047d02ad.entry.js +0 -2
  1244. package/dist/ui-library/p-047d02ad.entry.js.map +0 -1
  1245. package/dist/ui-library/p-05eb1bab.js +0 -3
  1246. package/dist/ui-library/p-05eb1bab.js.map +0 -1
  1247. package/dist/ui-library/p-11344bb8.entry.js +0 -2
  1248. package/dist/ui-library/p-14e5fccc.entry.js +0 -2
  1249. package/dist/ui-library/p-14e5fccc.entry.js.map +0 -1
  1250. package/dist/ui-library/p-189602e4.entry.js +0 -2
  1251. package/dist/ui-library/p-32e421a3.entry.js +0 -2
  1252. package/dist/ui-library/p-347e568f.entry.js +0 -2
  1253. package/dist/ui-library/p-36d5f98a.entry.js +0 -2
  1254. package/dist/ui-library/p-37433242.entry.js +0 -2
  1255. package/dist/ui-library/p-37433242.entry.js.map +0 -1
  1256. package/dist/ui-library/p-6b40c40c.entry.js +0 -2
  1257. package/dist/ui-library/p-6b40c40c.entry.js.map +0 -1
  1258. package/dist/ui-library/p-7c18b8ca.entry.js +0 -2
  1259. package/dist/ui-library/p-96d441e9.entry.js +0 -2
  1260. package/dist/ui-library/p-96d441e9.entry.js.map +0 -1
  1261. package/dist/ui-library/p-9cb83369.entry.js +0 -2
  1262. package/dist/ui-library/p-e14d78e9.entry.js +0 -2
  1263. package/dist/ui-library/p-e14d78e9.entry.js.map +0 -1
  1264. package/dist/ui-library/p-ebbe9bdc.entry.js +0 -2
  1265. package/dist/ui-library/p-ebbe9bdc.entry.js.map +0 -1
@@ -1,2718 +0,0 @@
1
- 'use strict';
2
-
3
- function _interopNamespace(e) {
4
- if (e && e.__esModule) return e;
5
- var n = Object.create(null);
6
- if (e) {
7
- Object.keys(e).forEach(function (k) {
8
- if (k !== 'default') {
9
- var d = Object.getOwnPropertyDescriptor(e, k);
10
- Object.defineProperty(n, k, d.get ? d : {
11
- enumerable: true,
12
- get: function () {
13
- return e[k];
14
- }
15
- });
16
- }
17
- });
18
- }
19
- n['default'] = e;
20
- return Object.freeze(n);
21
- }
22
-
23
- const NAMESPACE = 'ui-library';
24
- const BUILD = /* ui-library */ { 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: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: true, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, 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: false, watchCallback: true };
25
-
26
- /**
27
- * Virtual DOM patching algorithm based on Snabbdom by
28
- * Simon Friis Vindum (@paldepind)
29
- * Licensed under the MIT License
30
- * https://github.com/snabbdom/snabbdom/blob/master/LICENSE
31
- *
32
- * Modified for Stencil's renderer and slot projection
33
- */
34
- let scopeId;
35
- let contentRef;
36
- let hostTagName;
37
- let useNativeShadowDom = false;
38
- let checkSlotFallbackVisibility = false;
39
- let checkSlotRelocate = false;
40
- let isSvgMode = false;
41
- let queuePending = false;
42
- const createTime = (fnName, tagName = '') => {
43
- {
44
- return () => {
45
- return;
46
- };
47
- }
48
- };
49
- const uniqueTime = (key, measureText) => {
50
- {
51
- return () => {
52
- return;
53
- };
54
- }
55
- };
56
- const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
57
- /**
58
- * Constant for styles to be globally applied to `slot-fb` elements for pseudo-slot behavior.
59
- *
60
- * Two cascading rules must be used instead of a `:not()` selector due to Stencil browser
61
- * support as of Stencil v4.
62
- */
63
- const SLOT_FB_CSS = 'slot-fb{display:contents}slot-fb[hidden]{display:none}';
64
- /**
65
- * Default style mode id
66
- */
67
- /**
68
- * Reusable empty obj/array
69
- * Don't add values to these!!
70
- */
71
- const EMPTY_OBJ = {};
72
- /**
73
- * Namespaces
74
- */
75
- const SVG_NS = 'http://www.w3.org/2000/svg';
76
- const HTML_NS = 'http://www.w3.org/1999/xhtml';
77
- const isDef = (v) => v != null;
78
- /**
79
- * Check whether a value is a 'complex type', defined here as an object or a
80
- * function.
81
- *
82
- * @param o the value to check
83
- * @returns whether it's a complex type or not
84
- */
85
- const isComplexType = (o) => {
86
- // https://jsperf.com/typeof-fn-object/5
87
- o = typeof o;
88
- return o === 'object' || o === 'function';
89
- };
90
- /**
91
- * Helper method for querying a `meta` tag that contains a nonce value
92
- * out of a DOM's head.
93
- *
94
- * @param doc The DOM containing the `head` to query against
95
- * @returns The content of the meta tag representing the nonce value, or `undefined` if no tag
96
- * exists or the tag has no content.
97
- */
98
- function queryNonceMetaTagContent(doc) {
99
- var _a, _b, _c;
100
- return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;
101
- }
102
- /**
103
- * Production h() function based on Preact by
104
- * Jason Miller (@developit)
105
- * Licensed under the MIT License
106
- * https://github.com/developit/preact/blob/master/LICENSE
107
- *
108
- * Modified for Stencil's compiler and vdom
109
- */
110
- // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, child?: d.ChildType): d.VNode;
111
- // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
112
- const h = (nodeName, vnodeData, ...children) => {
113
- let child = null;
114
- let key = null;
115
- let slotName = null;
116
- let simple = false;
117
- let lastSimple = false;
118
- const vNodeChildren = [];
119
- const walk = (c) => {
120
- for (let i = 0; i < c.length; i++) {
121
- child = c[i];
122
- if (Array.isArray(child)) {
123
- walk(child);
124
- }
125
- else if (child != null && typeof child !== 'boolean') {
126
- if ((simple = typeof nodeName !== 'function' && !isComplexType(child))) {
127
- child = String(child);
128
- }
129
- if (simple && lastSimple) {
130
- // If the previous child was simple (string), we merge both
131
- vNodeChildren[vNodeChildren.length - 1].$text$ += child;
132
- }
133
- else {
134
- // Append a new vNode, if it's text, we create a text vNode
135
- vNodeChildren.push(simple ? newVNode(null, child) : child);
136
- }
137
- lastSimple = simple;
138
- }
139
- }
140
- };
141
- walk(children);
142
- if (vnodeData) {
143
- if (vnodeData.key) {
144
- key = vnodeData.key;
145
- }
146
- if (vnodeData.name) {
147
- slotName = vnodeData.name;
148
- }
149
- // normalize class / className attributes
150
- {
151
- const classData = vnodeData.className || vnodeData.class;
152
- if (classData) {
153
- vnodeData.class =
154
- typeof classData !== 'object'
155
- ? classData
156
- : Object.keys(classData)
157
- .filter((k) => classData[k])
158
- .join(' ');
159
- }
160
- }
161
- }
162
- if (typeof nodeName === 'function') {
163
- // nodeName is a functional component
164
- return nodeName(vnodeData === null ? {} : vnodeData, vNodeChildren, vdomFnUtils);
165
- }
166
- const vnode = newVNode(nodeName, null);
167
- vnode.$attrs$ = vnodeData;
168
- if (vNodeChildren.length > 0) {
169
- vnode.$children$ = vNodeChildren;
170
- }
171
- {
172
- vnode.$key$ = key;
173
- }
174
- {
175
- vnode.$name$ = slotName;
176
- }
177
- return vnode;
178
- };
179
- /**
180
- * A utility function for creating a virtual DOM node from a tag and some
181
- * possible text content.
182
- *
183
- * @param tag the tag for this element
184
- * @param text possible text content for the node
185
- * @returns a newly-minted virtual DOM node
186
- */
187
- const newVNode = (tag, text) => {
188
- const vnode = {
189
- $flags$: 0,
190
- $tag$: tag,
191
- $text$: text,
192
- $elm$: null,
193
- $children$: null,
194
- };
195
- {
196
- vnode.$attrs$ = null;
197
- }
198
- {
199
- vnode.$key$ = null;
200
- }
201
- {
202
- vnode.$name$ = null;
203
- }
204
- return vnode;
205
- };
206
- const Host = {};
207
- /**
208
- * Check whether a given node is a Host node or not
209
- *
210
- * @param node the virtual DOM node to check
211
- * @returns whether it's a Host node or not
212
- */
213
- const isHost = (node) => node && node.$tag$ === Host;
214
- /**
215
- * Implementation of {@link d.FunctionalUtilities} for Stencil's VDom.
216
- *
217
- * Note that these functions convert from {@link d.VNode} to
218
- * {@link d.ChildNode} to give functional component developers a friendly
219
- * interface.
220
- */
221
- const vdomFnUtils = {
222
- forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
223
- map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate),
224
- };
225
- /**
226
- * Convert a {@link d.VNode} to a {@link d.ChildNode} in order to present a
227
- * friendlier public interface (hence, 'convertToPublic').
228
- *
229
- * @param node the virtual DOM node to convert
230
- * @returns a converted child node
231
- */
232
- const convertToPublic = (node) => ({
233
- vattrs: node.$attrs$,
234
- vchildren: node.$children$,
235
- vkey: node.$key$,
236
- vname: node.$name$,
237
- vtag: node.$tag$,
238
- vtext: node.$text$,
239
- });
240
- /**
241
- * Convert a {@link d.ChildNode} back to an equivalent {@link d.VNode} in
242
- * order to use the resulting object in the virtual DOM. The initial object was
243
- * likely created as part of presenting a public API, so converting it back
244
- * involved making it 'private' again (hence, `convertToPrivate`).
245
- *
246
- * @param node the child node to convert
247
- * @returns a converted virtual DOM node
248
- */
249
- const convertToPrivate = (node) => {
250
- if (typeof node.vtag === 'function') {
251
- const vnodeData = Object.assign({}, node.vattrs);
252
- if (node.vkey) {
253
- vnodeData.key = node.vkey;
254
- }
255
- if (node.vname) {
256
- vnodeData.name = node.vname;
257
- }
258
- return h(node.vtag, vnodeData, ...(node.vchildren || []));
259
- }
260
- const vnode = newVNode(node.vtag, node.vtext);
261
- vnode.$attrs$ = node.vattrs;
262
- vnode.$children$ = node.vchildren;
263
- vnode.$key$ = node.vkey;
264
- vnode.$name$ = node.vname;
265
- return vnode;
266
- };
267
- /**
268
- * Parse a new property value for a given property type.
269
- *
270
- * While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
271
- * it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
272
- * 1. `any`, the type given to `propValue` in the function signature
273
- * 2. the type stored from `propType`.
274
- *
275
- * This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
276
- *
277
- * Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
278
- * a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
279
- * based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
280
- * ```tsx
281
- * <my-cmp prop-val={0}></my-cmp>
282
- * ```
283
- *
284
- * HTML prop values on the other hand, will always a string
285
- *
286
- * @param propValue the new value to coerce to some type
287
- * @param propType the type of the prop, expressed as a binary number
288
- * @returns the parsed/coerced value
289
- */
290
- const parsePropertyValue = (propValue, propType) => {
291
- // ensure this value is of the correct prop type
292
- if (propValue != null && !isComplexType(propValue)) {
293
- if (propType & 4 /* MEMBER_FLAGS.Boolean */) {
294
- // per the HTML spec, any string value means it is a boolean true value
295
- // but we'll cheat here and say that the string "false" is the boolean false
296
- return propValue === 'false' ? false : propValue === '' || !!propValue;
297
- }
298
- if (propType & 2 /* MEMBER_FLAGS.Number */) {
299
- // force it to be a number
300
- return parseFloat(propValue);
301
- }
302
- if (propType & 1 /* MEMBER_FLAGS.String */) {
303
- // could have been passed as a number or boolean
304
- // but we still want it as a string
305
- return String(propValue);
306
- }
307
- // redundant return here for better minification
308
- return propValue;
309
- }
310
- // not sure exactly what type we want
311
- // so no need to change to a different type
312
- return propValue;
313
- };
314
- const getElement = (ref) => (getHostRef(ref).$hostElement$ );
315
- const createEvent = (ref, name, flags) => {
316
- const elm = getElement(ref);
317
- return {
318
- emit: (detail) => {
319
- return emitEvent(elm, name, {
320
- bubbles: !!(flags & 4 /* EVENT_FLAGS.Bubbles */),
321
- composed: !!(flags & 2 /* EVENT_FLAGS.Composed */),
322
- cancelable: !!(flags & 1 /* EVENT_FLAGS.Cancellable */),
323
- detail,
324
- });
325
- },
326
- };
327
- };
328
- /**
329
- * Helper function to create & dispatch a custom Event on a provided target
330
- * @param elm the target of the Event
331
- * @param name the name to give the custom Event
332
- * @param opts options for configuring a custom Event
333
- * @returns the custom Event
334
- */
335
- const emitEvent = (elm, name, opts) => {
336
- const ev = plt.ce(name, opts);
337
- elm.dispatchEvent(ev);
338
- return ev;
339
- };
340
- const rootAppliedStyles = /*@__PURE__*/ new WeakMap();
341
- const registerStyle = (scopeId, cssText, allowCS) => {
342
- let style = styles.get(scopeId);
343
- if (supportsConstructableStylesheets && allowCS) {
344
- style = (style || new CSSStyleSheet());
345
- if (typeof style === 'string') {
346
- style = cssText;
347
- }
348
- else {
349
- style.replaceSync(cssText);
350
- }
351
- }
352
- else {
353
- style = cssText;
354
- }
355
- styles.set(scopeId, style);
356
- };
357
- const addStyle = (styleContainerNode, cmpMeta, mode) => {
358
- var _a;
359
- const scopeId = getScopeId(cmpMeta);
360
- const style = styles.get(scopeId);
361
- // if an element is NOT connected then getRootNode() will return the wrong root node
362
- // so the fallback is to always use the document for the root node in those cases
363
- styleContainerNode = styleContainerNode.nodeType === 11 /* NODE_TYPE.DocumentFragment */ ? styleContainerNode : doc;
364
- if (style) {
365
- if (typeof style === 'string') {
366
- styleContainerNode = styleContainerNode.head || styleContainerNode;
367
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
368
- let styleElm;
369
- if (!appliedStyles) {
370
- rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
371
- }
372
- if (!appliedStyles.has(scopeId)) {
373
- {
374
- styleElm = doc.createElement('style');
375
- styleElm.innerHTML = style;
376
- // Apply CSP nonce to the style tag if it exists
377
- const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
378
- if (nonce != null) {
379
- styleElm.setAttribute('nonce', nonce);
380
- }
381
- styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
382
- }
383
- // Add styles for `slot-fb` elements if we're using slots outside the Shadow DOM
384
- if (cmpMeta.$flags$ & 4 /* CMP_FLAGS.hasSlotRelocation */) {
385
- styleElm.innerHTML += SLOT_FB_CSS;
386
- }
387
- if (appliedStyles) {
388
- appliedStyles.add(scopeId);
389
- }
390
- }
391
- }
392
- else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
393
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
394
- }
395
- }
396
- return scopeId;
397
- };
398
- const attachStyles = (hostRef) => {
399
- const cmpMeta = hostRef.$cmpMeta$;
400
- const elm = hostRef.$hostElement$;
401
- const flags = cmpMeta.$flags$;
402
- const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
403
- const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
404
- if (flags & 10 /* CMP_FLAGS.needsScopedEncapsulation */) {
405
- // only required when we're NOT using native shadow dom (slot)
406
- // or this browser doesn't support native shadow dom
407
- // and this host element was NOT created with SSR
408
- // let's pick out the inner content for slot projection
409
- // create a node to represent where the original
410
- // content was first placed, which is useful later on
411
- // DOM WRITE!!
412
- elm['s-sc'] = scopeId;
413
- elm.classList.add(scopeId + '-h');
414
- if (flags & 2 /* CMP_FLAGS.scopedCssEncapsulation */) {
415
- elm.classList.add(scopeId + '-s');
416
- }
417
- }
418
- endAttachStyles();
419
- };
420
- const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
421
- /**
422
- * Production setAccessor() function based on Preact by
423
- * Jason Miller (@developit)
424
- * Licensed under the MIT License
425
- * https://github.com/developit/preact/blob/master/LICENSE
426
- *
427
- * Modified for Stencil's compiler and vdom
428
- */
429
- /**
430
- * When running a VDom render set properties present on a VDom node onto the
431
- * corresponding HTML element.
432
- *
433
- * Note that this function has special functionality for the `class`,
434
- * `style`, `key`, and `ref` attributes, as well as event handlers (like
435
- * `onClick`, etc). All others are just passed through as-is.
436
- *
437
- * @param elm the HTMLElement onto which attributes should be set
438
- * @param memberName the name of the attribute to set
439
- * @param oldValue the old value for the attribute
440
- * @param newValue the new value for the attribute
441
- * @param isSvg whether we're in an svg context or not
442
- * @param flags bitflags for Vdom variables
443
- */
444
- const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
445
- if (oldValue !== newValue) {
446
- let isProp = isMemberInElement(elm, memberName);
447
- let ln = memberName.toLowerCase();
448
- if (memberName === 'class') {
449
- const classList = elm.classList;
450
- const oldClasses = parseClassList(oldValue);
451
- const newClasses = parseClassList(newValue);
452
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
453
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
454
- }
455
- else if (memberName === 'style') {
456
- // update style attribute, css properties and values
457
- {
458
- for (const prop in oldValue) {
459
- if (!newValue || newValue[prop] == null) {
460
- if (prop.includes('-')) {
461
- elm.style.removeProperty(prop);
462
- }
463
- else {
464
- elm.style[prop] = '';
465
- }
466
- }
467
- }
468
- }
469
- for (const prop in newValue) {
470
- if (!oldValue || newValue[prop] !== oldValue[prop]) {
471
- if (prop.includes('-')) {
472
- elm.style.setProperty(prop, newValue[prop]);
473
- }
474
- else {
475
- elm.style[prop] = newValue[prop];
476
- }
477
- }
478
- }
479
- }
480
- else if (memberName === 'key')
481
- ;
482
- else if (memberName === 'ref') {
483
- // minifier will clean this up
484
- if (newValue) {
485
- newValue(elm);
486
- }
487
- }
488
- else if ((!isProp ) &&
489
- memberName[0] === 'o' &&
490
- memberName[1] === 'n') {
491
- // Event Handlers
492
- // so if the member name starts with "on" and the 3rd characters is
493
- // a capital letter, and it's not already a member on the element,
494
- // then we're assuming it's an event listener
495
- if (memberName[2] === '-') {
496
- // on- prefixed events
497
- // allows to be explicit about the dom event to listen without any magic
498
- // under the hood:
499
- // <my-cmp on-click> // listens for "click"
500
- // <my-cmp on-Click> // listens for "Click"
501
- // <my-cmp on-ionChange> // listens for "ionChange"
502
- // <my-cmp on-EVENTS> // listens for "EVENTS"
503
- memberName = memberName.slice(3);
504
- }
505
- else if (isMemberInElement(win, ln)) {
506
- // standard event
507
- // the JSX attribute could have been "onMouseOver" and the
508
- // member name "onmouseover" is on the window's prototype
509
- // so let's add the listener "mouseover", which is all lowercased
510
- memberName = ln.slice(2);
511
- }
512
- else {
513
- // custom event
514
- // the JSX attribute could have been "onMyCustomEvent"
515
- // so let's trim off the "on" prefix and lowercase the first character
516
- // and add the listener "myCustomEvent"
517
- // except for the first character, we keep the event name case
518
- memberName = ln[2] + memberName.slice(3);
519
- }
520
- if (oldValue || newValue) {
521
- // Need to account for "capture" events.
522
- // If the event name ends with "Capture", we'll update the name to remove
523
- // the "Capture" suffix and make sure the event listener is setup to handle the capture event.
524
- const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
525
- // Make sure we only replace the last instance of "Capture"
526
- memberName = memberName.replace(CAPTURE_EVENT_REGEX, '');
527
- if (oldValue) {
528
- plt.rel(elm, memberName, oldValue, capture);
529
- }
530
- if (newValue) {
531
- plt.ael(elm, memberName, newValue, capture);
532
- }
533
- }
534
- }
535
- else {
536
- // Set property if it exists and it's not a SVG
537
- const isComplex = isComplexType(newValue);
538
- if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
539
- try {
540
- if (!elm.tagName.includes('-')) {
541
- const n = newValue == null ? '' : newValue;
542
- // Workaround for Safari, moving the <input> caret when re-assigning the same valued
543
- if (memberName === 'list') {
544
- isProp = false;
545
- }
546
- else if (oldValue == null || elm[memberName] != n) {
547
- elm[memberName] = n;
548
- }
549
- }
550
- else {
551
- elm[memberName] = newValue;
552
- }
553
- }
554
- catch (e) {
555
- /**
556
- * in case someone tries to set a read-only property, e.g. "namespaceURI", we just ignore it
557
- */
558
- }
559
- }
560
- if (newValue == null || newValue === false) {
561
- if (newValue !== false || elm.getAttribute(memberName) === '') {
562
- {
563
- elm.removeAttribute(memberName);
564
- }
565
- }
566
- }
567
- else if ((!isProp || flags & 4 /* VNODE_FLAGS.isHost */ || isSvg) && !isComplex) {
568
- newValue = newValue === true ? '' : newValue;
569
- {
570
- elm.setAttribute(memberName, newValue);
571
- }
572
- }
573
- }
574
- }
575
- };
576
- const parseClassListRegex = /\s/;
577
- /**
578
- * Parsed a string of classnames into an array
579
- * @param value className string, e.g. "foo bar baz"
580
- * @returns list of classes, e.g. ["foo", "bar", "baz"]
581
- */
582
- const parseClassList = (value) => (!value ? [] : value.split(parseClassListRegex));
583
- const CAPTURE_EVENT_SUFFIX = 'Capture';
584
- const CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + '$');
585
- const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
586
- // if the element passed in is a shadow root, which is a document fragment
587
- // then we want to be adding attrs/props to the shadow root's "host" element
588
- // if it's not a shadow root, then we add attrs/props to the same element
589
- const elm = newVnode.$elm$.nodeType === 11 /* NODE_TYPE.DocumentFragment */ && newVnode.$elm$.host
590
- ? newVnode.$elm$.host
591
- : newVnode.$elm$;
592
- const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
593
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
594
- {
595
- // remove attributes no longer present on the vnode by setting them to undefined
596
- for (memberName in oldVnodeAttrs) {
597
- if (!(memberName in newVnodeAttrs)) {
598
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], undefined, isSvgMode, newVnode.$flags$);
599
- }
600
- }
601
- }
602
- // add new & update changed attributes
603
- for (memberName in newVnodeAttrs) {
604
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$);
605
- }
606
- };
607
- /**
608
- * Create a DOM Node corresponding to one of the children of a given VNode.
609
- *
610
- * @param oldParentVNode the parent VNode from the previous render
611
- * @param newParentVNode the parent VNode from the current render
612
- * @param childIndex the index of the VNode, in the _new_ parent node's
613
- * children, for which we will create a new DOM node
614
- * @param parentElm the parent DOM node which our new node will be a child of
615
- * @returns the newly created node
616
- */
617
- const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
618
- // tslint:disable-next-line: prefer-const
619
- const newVNode = newParentVNode.$children$[childIndex];
620
- let i = 0;
621
- let elm;
622
- let childNode;
623
- let oldVNode;
624
- if (!useNativeShadowDom) {
625
- // remember for later we need to check to relocate nodes
626
- checkSlotRelocate = true;
627
- if (newVNode.$tag$ === 'slot') {
628
- if (scopeId) {
629
- // scoped css needs to add its scoped id to the parent element
630
- parentElm.classList.add(scopeId + '-s');
631
- }
632
- newVNode.$flags$ |= newVNode.$children$
633
- ? // slot element has fallback content
634
- 2 /* VNODE_FLAGS.isSlotFallback */
635
- : // slot element does not have fallback content
636
- 1 /* VNODE_FLAGS.isSlotReference */;
637
- }
638
- }
639
- if (newVNode.$text$ !== null) {
640
- // create text node
641
- elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
642
- }
643
- else if (newVNode.$flags$ & 1 /* VNODE_FLAGS.isSlotReference */) {
644
- // create a slot reference node
645
- elm = newVNode.$elm$ =
646
- doc.createTextNode('');
647
- }
648
- else {
649
- if (!isSvgMode) {
650
- isSvgMode = newVNode.$tag$ === 'svg';
651
- }
652
- // create element
653
- elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$flags$ & 2 /* VNODE_FLAGS.isSlotFallback */
654
- ? 'slot-fb'
655
- : newVNode.$tag$)
656
- );
657
- if (isSvgMode && newVNode.$tag$ === 'foreignObject') {
658
- isSvgMode = false;
659
- }
660
- // add css classes, attrs, props, listeners, etc.
661
- {
662
- updateElement(null, newVNode, isSvgMode);
663
- }
664
- if (isDef(scopeId) && elm['s-si'] !== scopeId) {
665
- // if there is a scopeId and this is the initial render
666
- // then let's add the scopeId as a css class
667
- elm.classList.add((elm['s-si'] = scopeId));
668
- }
669
- if (newVNode.$children$) {
670
- for (i = 0; i < newVNode.$children$.length; ++i) {
671
- // create the node
672
- childNode = createElm(oldParentVNode, newVNode, i, elm);
673
- // return node could have been null
674
- if (childNode) {
675
- // append our new node
676
- elm.appendChild(childNode);
677
- }
678
- }
679
- }
680
- {
681
- if (newVNode.$tag$ === 'svg') {
682
- // Only reset the SVG context when we're exiting <svg> element
683
- isSvgMode = false;
684
- }
685
- else if (elm.tagName === 'foreignObject') {
686
- // Reenter SVG context when we're exiting <foreignObject> element
687
- isSvgMode = true;
688
- }
689
- }
690
- }
691
- // This needs to always happen so we can hide nodes that are projected
692
- // to another component but don't end up in a slot
693
- elm['s-hn'] = hostTagName;
694
- {
695
- if (newVNode.$flags$ & (2 /* VNODE_FLAGS.isSlotFallback */ | 1 /* VNODE_FLAGS.isSlotReference */)) {
696
- // remember the content reference comment
697
- elm['s-sr'] = true;
698
- // remember the content reference comment
699
- elm['s-cr'] = contentRef;
700
- // remember the slot name, or empty string for default slot
701
- elm['s-sn'] = newVNode.$name$ || '';
702
- // check if we've got an old vnode for this slot
703
- oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
704
- if (oldVNode && oldVNode.$tag$ === newVNode.$tag$ && oldParentVNode.$elm$) {
705
- {
706
- // we've got an old slot vnode and the wrapper is being replaced
707
- // so let's move the old slot content back to its original location
708
- putBackInOriginalLocation(oldParentVNode.$elm$, false);
709
- }
710
- }
711
- }
712
- }
713
- return elm;
714
- };
715
- const putBackInOriginalLocation = (parentElm, recursive) => {
716
- plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
717
- const oldSlotChildNodes = parentElm.childNodes;
718
- for (let i = oldSlotChildNodes.length - 1; i >= 0; i--) {
719
- const childNode = oldSlotChildNodes[i];
720
- if (childNode['s-hn'] !== hostTagName && childNode['s-ol']) {
721
- // and relocate it back to it's original location
722
- parentReferenceNode(childNode).insertBefore(childNode, referenceNode(childNode));
723
- // remove the old original location comment entirely
724
- // later on the patch function will know what to do
725
- // and move this to the correct spot if need be
726
- childNode['s-ol'].remove();
727
- childNode['s-ol'] = undefined;
728
- // Reset so we can correctly move the node around again.
729
- childNode['s-sh'] = undefined;
730
- checkSlotRelocate = true;
731
- }
732
- if (recursive) {
733
- putBackInOriginalLocation(childNode, recursive);
734
- }
735
- }
736
- plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
737
- };
738
- /**
739
- * Create DOM nodes corresponding to a list of {@link d.Vnode} objects and
740
- * add them to the DOM in the appropriate place.
741
- *
742
- * @param parentElm the DOM node which should be used as a parent for the new
743
- * DOM nodes
744
- * @param before a child of the `parentElm` which the new children should be
745
- * inserted before (optional)
746
- * @param parentVNode the parent virtual DOM node
747
- * @param vnodes the new child virtual DOM nodes to produce DOM nodes for
748
- * @param startIdx the index in the child virtual DOM nodes at which to start
749
- * creating DOM nodes (inclusive)
750
- * @param endIdx the index in the child virtual DOM nodes at which to stop
751
- * creating DOM nodes (inclusive)
752
- */
753
- const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
754
- let containerElm = ((parentElm['s-cr'] && parentElm['s-cr'].parentNode) || parentElm);
755
- let childNode;
756
- if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
757
- containerElm = containerElm.shadowRoot;
758
- }
759
- for (; startIdx <= endIdx; ++startIdx) {
760
- if (vnodes[startIdx]) {
761
- childNode = createElm(null, parentVNode, startIdx, parentElm);
762
- if (childNode) {
763
- vnodes[startIdx].$elm$ = childNode;
764
- containerElm.insertBefore(childNode, referenceNode(before) );
765
- }
766
- }
767
- }
768
- };
769
- /**
770
- * Remove the DOM elements corresponding to a list of {@link d.VNode} objects.
771
- * This can be used to, for instance, clean up after a list of children which
772
- * should no longer be shown.
773
- *
774
- * This function also handles some of Stencil's slot relocation logic.
775
- *
776
- * @param vnodes a list of virtual DOM nodes to remove
777
- * @param startIdx the index at which to start removing nodes (inclusive)
778
- * @param endIdx the index at which to stop removing nodes (inclusive)
779
- */
780
- const removeVnodes = (vnodes, startIdx, endIdx) => {
781
- for (let index = startIdx; index <= endIdx; ++index) {
782
- const vnode = vnodes[index];
783
- if (vnode) {
784
- const elm = vnode.$elm$;
785
- nullifyVNodeRefs(vnode);
786
- if (elm) {
787
- {
788
- // we're removing this element
789
- // so it's possible we need to show slot fallback content now
790
- checkSlotFallbackVisibility = true;
791
- if (elm['s-ol']) {
792
- // remove the original location comment
793
- elm['s-ol'].remove();
794
- }
795
- else {
796
- // it's possible that child nodes of the node
797
- // that's being removed are slot nodes
798
- putBackInOriginalLocation(elm, true);
799
- }
800
- }
801
- // remove the vnode's element from the dom
802
- elm.remove();
803
- }
804
- }
805
- }
806
- };
807
- /**
808
- * Reconcile the children of a new VNode with the children of an old VNode by
809
- * traversing the two collections of children, identifying nodes that are
810
- * conserved or changed, calling out to `patch` to make any necessary
811
- * updates to the DOM, and rearranging DOM nodes as needed.
812
- *
813
- * The algorithm for reconciling children works by analyzing two 'windows' onto
814
- * the two arrays of children (`oldCh` and `newCh`). We keep track of the
815
- * 'windows' by storing start and end indices and references to the
816
- * corresponding array entries. Initially the two 'windows' are basically equal
817
- * to the entire array, but we progressively narrow the windows until there are
818
- * no children left to update by doing the following:
819
- *
820
- * 1. Skip any `null` entries at the beginning or end of the two arrays, so
821
- * that if we have an initial array like the following we'll end up dealing
822
- * only with a window bounded by the highlighted elements:
823
- *
824
- * [null, null, VNode1 , ... , VNode2, null, null]
825
- * ^^^^^^ ^^^^^^
826
- *
827
- * 2. Check to see if the elements at the head and tail positions are equal
828
- * across the windows. This will basically detect elements which haven't
829
- * been added, removed, or changed position, i.e. if you had the following
830
- * VNode elements (represented as HTML):
831
- *
832
- * oldVNode: `<div><p><span>HEY</span></p></div>`
833
- * newVNode: `<div><p><span>THERE</span></p></div>`
834
- *
835
- * Then when comparing the children of the `<div>` tag we check the equality
836
- * of the VNodes corresponding to the `<p>` tags and, since they are the
837
- * same tag in the same position, we'd be able to avoid completely
838
- * re-rendering the subtree under them with a new DOM element and would just
839
- * call out to `patch` to handle reconciling their children and so on.
840
- *
841
- * 3. Check, for both windows, to see if the element at the beginning of the
842
- * window corresponds to the element at the end of the other window. This is
843
- * a heuristic which will let us identify _some_ situations in which
844
- * elements have changed position, for instance it _should_ detect that the
845
- * children nodes themselves have not changed but merely moved in the
846
- * following example:
847
- *
848
- * oldVNode: `<div><element-one /><element-two /></div>`
849
- * newVNode: `<div><element-two /><element-one /></div>`
850
- *
851
- * If we find cases like this then we also need to move the concrete DOM
852
- * elements corresponding to the moved children to write the re-order to the
853
- * DOM.
854
- *
855
- * 4. Finally, if VNodes have the `key` attribute set on them we check for any
856
- * nodes in the old children which have the same key as the first element in
857
- * our window on the new children. If we find such a node we handle calling
858
- * out to `patch`, moving relevant DOM nodes, and so on, in accordance with
859
- * what we find.
860
- *
861
- * Finally, once we've narrowed our 'windows' to the point that either of them
862
- * collapse (i.e. they have length 0) we then handle any remaining VNode
863
- * insertion or deletion that needs to happen to get a DOM state that correctly
864
- * reflects the new child VNodes. If, for instance, after our window on the old
865
- * children has collapsed we still have more nodes on the new children that
866
- * we haven't dealt with yet then we need to add them, or if the new children
867
- * collapse but we still have unhandled _old_ children then we need to make
868
- * sure the corresponding DOM nodes are removed.
869
- *
870
- * @param parentElm the node into which the parent VNode is rendered
871
- * @param oldCh the old children of the parent node
872
- * @param newVNode the new VNode which will replace the parent
873
- * @param newCh the new children of the parent node
874
- * @param isInitialRender whether or not this is the first render of the vdom
875
- */
876
- const updateChildren = (parentElm, oldCh, newVNode, newCh, isInitialRender = false) => {
877
- let oldStartIdx = 0;
878
- let newStartIdx = 0;
879
- let idxInOld = 0;
880
- let i = 0;
881
- let oldEndIdx = oldCh.length - 1;
882
- let oldStartVnode = oldCh[0];
883
- let oldEndVnode = oldCh[oldEndIdx];
884
- let newEndIdx = newCh.length - 1;
885
- let newStartVnode = newCh[0];
886
- let newEndVnode = newCh[newEndIdx];
887
- let node;
888
- let elmToMove;
889
- while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
890
- if (oldStartVnode == null) {
891
- // VNode might have been moved left
892
- oldStartVnode = oldCh[++oldStartIdx];
893
- }
894
- else if (oldEndVnode == null) {
895
- oldEndVnode = oldCh[--oldEndIdx];
896
- }
897
- else if (newStartVnode == null) {
898
- newStartVnode = newCh[++newStartIdx];
899
- }
900
- else if (newEndVnode == null) {
901
- newEndVnode = newCh[--newEndIdx];
902
- }
903
- else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
904
- // if the start nodes are the same then we should patch the new VNode
905
- // onto the old one, and increment our `newStartIdx` and `oldStartIdx`
906
- // indices to reflect that. We don't need to move any DOM Nodes around
907
- // since things are matched up in order.
908
- patch(oldStartVnode, newStartVnode, isInitialRender);
909
- oldStartVnode = oldCh[++oldStartIdx];
910
- newStartVnode = newCh[++newStartIdx];
911
- }
912
- else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
913
- // likewise, if the end nodes are the same we patch new onto old and
914
- // decrement our end indices, and also likewise in this case we don't
915
- // need to move any DOM Nodes.
916
- patch(oldEndVnode, newEndVnode, isInitialRender);
917
- oldEndVnode = oldCh[--oldEndIdx];
918
- newEndVnode = newCh[--newEndIdx];
919
- }
920
- else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
921
- // case: "Vnode moved right"
922
- //
923
- // We've found that the last node in our window on the new children is
924
- // the same VNode as the _first_ node in our window on the old children
925
- // we're dealing with now. Visually, this is the layout of these two
926
- // nodes:
927
- //
928
- // newCh: [..., newStartVnode , ... , newEndVnode , ...]
929
- // ^^^^^^^^^^^
930
- // oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
931
- // ^^^^^^^^^^^^^
932
- //
933
- // In this situation we need to patch `newEndVnode` onto `oldStartVnode`
934
- // and move the DOM element for `oldStartVnode`.
935
- if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
936
- putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
937
- }
938
- patch(oldStartVnode, newEndVnode, isInitialRender);
939
- // We need to move the element for `oldStartVnode` into a position which
940
- // will be appropriate for `newEndVnode`. For this we can use
941
- // `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a
942
- // sibling for `oldEndVnode.$elm$` then we want to move the DOM node for
943
- // `oldStartVnode` between `oldEndVnode` and it's sibling, like so:
944
- //
945
- // <old-start-node />
946
- // <some-intervening-node />
947
- // <old-end-node />
948
- // <!-- -> <-- `oldStartVnode.$elm$` should be inserted here
949
- // <next-sibling />
950
- //
951
- // If instead `oldEndVnode.$elm$` has no sibling then we just want to put
952
- // the node for `oldStartVnode` at the end of the children of
953
- // `parentElm`. Luckily, `Node.nextSibling` will return `null` if there
954
- // aren't any siblings, and passing `null` to `Node.insertBefore` will
955
- // append it to the children of the parent element.
956
- parentElm.insertBefore(oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
957
- oldStartVnode = oldCh[++oldStartIdx];
958
- newEndVnode = newCh[--newEndIdx];
959
- }
960
- else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
961
- // case: "Vnode moved left"
962
- //
963
- // We've found that the first node in our window on the new children is
964
- // the same VNode as the _last_ node in our window on the old children.
965
- // Visually, this is the layout of these two nodes:
966
- //
967
- // newCh: [..., newStartVnode , ... , newEndVnode , ...]
968
- // ^^^^^^^^^^^^^
969
- // oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
970
- // ^^^^^^^^^^^
971
- //
972
- // In this situation we need to patch `newStartVnode` onto `oldEndVnode`
973
- // (which will handle updating any changed attributes, reconciling their
974
- // children etc) but we also need to move the DOM node to which
975
- // `oldEndVnode` corresponds.
976
- if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
977
- putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
978
- }
979
- patch(oldEndVnode, newStartVnode, isInitialRender);
980
- // We've already checked above if `oldStartVnode` and `newStartVnode` are
981
- // the same node, so since we're here we know that they are not. Thus we
982
- // can move the element for `oldEndVnode` _before_ the element for
983
- // `oldStartVnode`, leaving `oldStartVnode` to be reconciled in the
984
- // future.
985
- parentElm.insertBefore(oldEndVnode.$elm$, oldStartVnode.$elm$);
986
- oldEndVnode = oldCh[--oldEndIdx];
987
- newStartVnode = newCh[++newStartIdx];
988
- }
989
- else {
990
- // Here we do some checks to match up old and new nodes based on the
991
- // `$key$` attribute, which is set by putting a `key="my-key"` attribute
992
- // in the JSX for a DOM element in the implementation of a Stencil
993
- // component.
994
- //
995
- // First we check to see if there are any nodes in the array of old
996
- // children which have the same key as the first node in the new
997
- // children.
998
- idxInOld = -1;
999
- {
1000
- for (i = oldStartIdx; i <= oldEndIdx; ++i) {
1001
- if (oldCh[i] && oldCh[i].$key$ !== null && oldCh[i].$key$ === newStartVnode.$key$) {
1002
- idxInOld = i;
1003
- break;
1004
- }
1005
- }
1006
- }
1007
- if (idxInOld >= 0) {
1008
- // We found a node in the old children which matches up with the first
1009
- // node in the new children! So let's deal with that
1010
- elmToMove = oldCh[idxInOld];
1011
- if (elmToMove.$tag$ !== newStartVnode.$tag$) {
1012
- // the tag doesn't match so we'll need a new DOM element
1013
- node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld, parentElm);
1014
- }
1015
- else {
1016
- patch(elmToMove, newStartVnode, isInitialRender);
1017
- // invalidate the matching old node so that we won't try to update it
1018
- // again later on
1019
- oldCh[idxInOld] = undefined;
1020
- node = elmToMove.$elm$;
1021
- }
1022
- newStartVnode = newCh[++newStartIdx];
1023
- }
1024
- else {
1025
- // We either didn't find an element in the old children that matches
1026
- // the key of the first new child OR the build is not using `key`
1027
- // attributes at all. In either case we need to create a new element
1028
- // for the new node.
1029
- node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx, parentElm);
1030
- newStartVnode = newCh[++newStartIdx];
1031
- }
1032
- if (node) {
1033
- // if we created a new node then handle inserting it to the DOM
1034
- {
1035
- parentReferenceNode(oldStartVnode.$elm$).insertBefore(node, referenceNode(oldStartVnode.$elm$));
1036
- }
1037
- }
1038
- }
1039
- }
1040
- if (oldStartIdx > oldEndIdx) {
1041
- // we have some more new nodes to add which don't match up with old nodes
1042
- addVnodes(parentElm, newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$, newVNode, newCh, newStartIdx, newEndIdx);
1043
- }
1044
- else if (newStartIdx > newEndIdx) {
1045
- // there are nodes in the `oldCh` array which no longer correspond to nodes
1046
- // in the new array, so lets remove them (which entails cleaning up the
1047
- // relevant DOM nodes)
1048
- removeVnodes(oldCh, oldStartIdx, oldEndIdx);
1049
- }
1050
- };
1051
- /**
1052
- * Compare two VNodes to determine if they are the same
1053
- *
1054
- * **NB**: This function is an equality _heuristic_ based on the available
1055
- * information set on the two VNodes and can be misleading under certain
1056
- * circumstances. In particular, if the two nodes do not have `key` attrs
1057
- * (available under `$key$` on VNodes) then the function falls back on merely
1058
- * checking that they have the same tag.
1059
- *
1060
- * So, in other words, if `key` attrs are not set on VNodes which may be
1061
- * changing order within a `children` array or something along those lines then
1062
- * we could obtain a false negative and then have to do needless re-rendering
1063
- * (i.e. we'd say two VNodes aren't equal when in fact they should be).
1064
- *
1065
- * @param leftVNode the first VNode to check
1066
- * @param rightVNode the second VNode to check
1067
- * @param isInitialRender whether or not this is the first render of the vdom
1068
- * @returns whether they're equal or not
1069
- */
1070
- const isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
1071
- // compare if two vnode to see if they're "technically" the same
1072
- // need to have the same element tag, and same key to be the same
1073
- if (leftVNode.$tag$ === rightVNode.$tag$) {
1074
- if (leftVNode.$tag$ === 'slot') {
1075
- return leftVNode.$name$ === rightVNode.$name$;
1076
- }
1077
- // this will be set if JSX tags in the build have `key` attrs set on them
1078
- // we only want to check this if we're not on the first render since on
1079
- // first render `leftVNode.$key$` will always be `null`, so we can be led
1080
- // astray and, for instance, accidentally delete a DOM node that we want to
1081
- // keep around.
1082
- if (!isInitialRender) {
1083
- return leftVNode.$key$ === rightVNode.$key$;
1084
- }
1085
- return true;
1086
- }
1087
- return false;
1088
- };
1089
- const referenceNode = (node) => {
1090
- // this node was relocated to a new location in the dom
1091
- // because of some other component's slot
1092
- // but we still have an html comment in place of where
1093
- // it's original location was according to it's original vdom
1094
- return (node && node['s-ol']) || node;
1095
- };
1096
- const parentReferenceNode = (node) => (node['s-ol'] ? node['s-ol'] : node).parentNode;
1097
- /**
1098
- * Handle reconciling an outdated VNode with a new one which corresponds to
1099
- * it. This function handles flushing updates to the DOM and reconciling the
1100
- * children of the two nodes (if any).
1101
- *
1102
- * @param oldVNode an old VNode whose DOM element and children we want to update
1103
- * @param newVNode a new VNode representing an updated version of the old one
1104
- * @param isInitialRender whether or not this is the first render of the vdom
1105
- */
1106
- const patch = (oldVNode, newVNode, isInitialRender = false) => {
1107
- const elm = (newVNode.$elm$ = oldVNode.$elm$);
1108
- const oldChildren = oldVNode.$children$;
1109
- const newChildren = newVNode.$children$;
1110
- const tag = newVNode.$tag$;
1111
- const text = newVNode.$text$;
1112
- let defaultHolder;
1113
- if (text === null) {
1114
- {
1115
- // test if we're rendering an svg element, or still rendering nodes inside of one
1116
- // only add this to the when the compiler sees we're using an svg somewhere
1117
- isSvgMode = tag === 'svg' ? true : tag === 'foreignObject' ? false : isSvgMode;
1118
- }
1119
- {
1120
- if (tag === 'slot' && !useNativeShadowDom) ;
1121
- else {
1122
- // either this is the first render of an element OR it's an update
1123
- // AND we already know it's possible it could have changed
1124
- // this updates the element's css classes, attrs, props, listeners, etc.
1125
- updateElement(oldVNode, newVNode, isSvgMode);
1126
- }
1127
- }
1128
- if (oldChildren !== null && newChildren !== null) {
1129
- // looks like there's child vnodes for both the old and new vnodes
1130
- // so we need to call `updateChildren` to reconcile them
1131
- updateChildren(elm, oldChildren, newVNode, newChildren, isInitialRender);
1132
- }
1133
- else if (newChildren !== null) {
1134
- // no old child vnodes, but there are new child vnodes to add
1135
- if (oldVNode.$text$ !== null) {
1136
- // the old vnode was text, so be sure to clear it out
1137
- elm.textContent = '';
1138
- }
1139
- // add the new vnode children
1140
- addVnodes(elm, null, newVNode, newChildren, 0, newChildren.length - 1);
1141
- }
1142
- else if (oldChildren !== null) {
1143
- // no new child vnodes, but there are old child vnodes to remove
1144
- removeVnodes(oldChildren, 0, oldChildren.length - 1);
1145
- }
1146
- if (isSvgMode && tag === 'svg') {
1147
- isSvgMode = false;
1148
- }
1149
- }
1150
- else if ((defaultHolder = elm['s-cr'])) {
1151
- // this element has slotted content
1152
- defaultHolder.parentNode.textContent = text;
1153
- }
1154
- else if (oldVNode.$text$ !== text) {
1155
- // update the text content for the text only vnode
1156
- // and also only if the text is different than before
1157
- elm.data = text;
1158
- }
1159
- };
1160
- /**
1161
- * Adjust the `.hidden` property as-needed on any nodes in a DOM subtree which
1162
- * are slot fallbacks nodes.
1163
- *
1164
- * A slot fallback node should be visible by default. Then, it should be
1165
- * conditionally hidden if:
1166
- *
1167
- * - it has a sibling with a `slot` property set to its slot name or if
1168
- * - it is a default fallback slot node, in which case we hide if it has any
1169
- * content
1170
- *
1171
- * @param elm the element of interest
1172
- */
1173
- const updateFallbackSlotVisibility = (elm) => {
1174
- const childNodes = elm.childNodes;
1175
- for (const childNode of childNodes) {
1176
- if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1177
- if (childNode['s-sr']) {
1178
- // this is a slot fallback node
1179
- // get the slot name for this slot reference node
1180
- const slotName = childNode['s-sn'];
1181
- // by default always show a fallback slot node
1182
- // then hide it if there are other slots in the light dom
1183
- childNode.hidden = false;
1184
- // we need to check all of its sibling nodes in order to see if
1185
- // `childNode` should be hidden
1186
- for (const siblingNode of childNodes) {
1187
- // Don't check the node against itself
1188
- if (siblingNode !== childNode) {
1189
- if (siblingNode['s-hn'] !== childNode['s-hn'] || slotName !== '') {
1190
- // this sibling node is from a different component OR is a named
1191
- // fallback slot node
1192
- if (siblingNode.nodeType === 1 /* NODE_TYPE.ElementNode */ &&
1193
- (slotName === siblingNode.getAttribute('slot') || slotName === siblingNode['s-sn'])) {
1194
- childNode.hidden = true;
1195
- break;
1196
- }
1197
- }
1198
- else {
1199
- // this is a default fallback slot node
1200
- // any element or text node (with content)
1201
- // should hide the default fallback slot node
1202
- if (siblingNode.nodeType === 1 /* NODE_TYPE.ElementNode */ ||
1203
- (siblingNode.nodeType === 3 /* NODE_TYPE.TextNode */ && siblingNode.textContent.trim() !== '')) {
1204
- childNode.hidden = true;
1205
- break;
1206
- }
1207
- }
1208
- }
1209
- }
1210
- }
1211
- // keep drilling down
1212
- updateFallbackSlotVisibility(childNode);
1213
- }
1214
- }
1215
- };
1216
- /**
1217
- * Component-global information about nodes which are either currently being
1218
- * relocated or will be shortly.
1219
- */
1220
- const relocateNodes = [];
1221
- /**
1222
- * Mark the contents of a slot for relocation via adding references to them to
1223
- * the {@link relocateNodes} data structure. The actual work of relocating them
1224
- * will then be handled in {@link renderVdom}.
1225
- *
1226
- * @param elm a render node whose child nodes need to be relocated
1227
- */
1228
- const markSlotContentForRelocation = (elm) => {
1229
- // tslint:disable-next-line: prefer-const
1230
- let node;
1231
- let hostContentNodes;
1232
- let j;
1233
- for (const childNode of elm.childNodes) {
1234
- // we need to find child nodes which are slot references so we can then try
1235
- // to match them up with nodes that need to be relocated
1236
- if (childNode['s-sr'] && (node = childNode['s-cr']) && node.parentNode) {
1237
- // first get the content reference comment node ('s-cr'), then we get
1238
- // its parent, which is where all the host content is now
1239
- hostContentNodes = node.parentNode.childNodes;
1240
- const slotName = childNode['s-sn'];
1241
- // iterate through all the nodes under the location where the host was
1242
- // originally rendered
1243
- for (j = hostContentNodes.length - 1; j >= 0; j--) {
1244
- node = hostContentNodes[j];
1245
- // check that the node is not a content reference node or a node
1246
- // reference and then check that the host name does not match that of
1247
- // childNode.
1248
- // In addition, check that the slot either has not already been relocated, or
1249
- // that its current location's host is not childNode's host. This is essentially
1250
- // a check so that we don't try to relocate (and then hide) a node that is already
1251
- // where it should be.
1252
- if (!node['s-cn'] &&
1253
- !node['s-nr'] &&
1254
- node['s-hn'] !== childNode['s-hn'] &&
1255
- (!BUILD.experimentalSlotFixes )) {
1256
- // if `node` is located in the slot that `childNode` refers to (via the
1257
- // `'s-sn'` property) then we need to relocate it from it's current spot
1258
- // (under the host element parent) to the right slot location
1259
- if (isNodeLocatedInSlot(node, slotName)) {
1260
- // it's possible we've already decided to relocate this node
1261
- let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1262
- // made some changes to slots
1263
- // let's make sure we also double check
1264
- // fallbacks are correctly hidden or shown
1265
- checkSlotFallbackVisibility = true;
1266
- // ensure that the slot-name attr is correct
1267
- node['s-sn'] = node['s-sn'] || slotName;
1268
- if (relocateNodeData) {
1269
- relocateNodeData.$nodeToRelocate$['s-sh'] = childNode['s-hn'];
1270
- // we marked this node for relocation previously but didn't find
1271
- // out the slot reference node to which it needs to be relocated
1272
- // so write it down now!
1273
- relocateNodeData.$slotRefNode$ = childNode;
1274
- }
1275
- else {
1276
- node['s-sh'] = childNode['s-hn'];
1277
- // add to our list of nodes to relocate
1278
- relocateNodes.push({
1279
- $slotRefNode$: childNode,
1280
- $nodeToRelocate$: node,
1281
- });
1282
- }
1283
- if (node['s-sr']) {
1284
- relocateNodes.map((relocateNode) => {
1285
- if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node['s-sn'])) {
1286
- relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1287
- if (relocateNodeData && !relocateNode.$slotRefNode$) {
1288
- relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
1289
- }
1290
- }
1291
- });
1292
- }
1293
- }
1294
- else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
1295
- // the node is not found within the slot (`childNode`) that we're
1296
- // currently looking at, so we stick it into `relocateNodes` to
1297
- // handle later. If we never find a home for this element then
1298
- // we'll need to hide it
1299
- relocateNodes.push({
1300
- $nodeToRelocate$: node,
1301
- });
1302
- }
1303
- }
1304
- }
1305
- }
1306
- // if we're dealing with any type of element (capable of itself being a
1307
- // slot reference or containing one) then we recur
1308
- if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1309
- markSlotContentForRelocation(childNode);
1310
- }
1311
- }
1312
- };
1313
- /**
1314
- * Check whether a node is located in a given named slot.
1315
- *
1316
- * @param nodeToRelocate the node of interest
1317
- * @param slotName the slot name to check
1318
- * @returns whether the node is located in the slot or not
1319
- */
1320
- const isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
1321
- if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1322
- if (nodeToRelocate.getAttribute('slot') === null && slotName === '') {
1323
- // if the node doesn't have a slot attribute, and the slot we're checking
1324
- // is not a named slot, then we assume the node should be within the slot
1325
- return true;
1326
- }
1327
- if (nodeToRelocate.getAttribute('slot') === slotName) {
1328
- return true;
1329
- }
1330
- return false;
1331
- }
1332
- if (nodeToRelocate['s-sn'] === slotName) {
1333
- return true;
1334
- }
1335
- return slotName === '';
1336
- };
1337
- /**
1338
- * 'Nullify' any VDom `ref` callbacks on a VDom node or its children by calling
1339
- * them with `null`. This signals that the DOM element corresponding to the VDom
1340
- * node has been removed from the DOM.
1341
- *
1342
- * @param vNode a virtual DOM node
1343
- */
1344
- const nullifyVNodeRefs = (vNode) => {
1345
- {
1346
- vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
1347
- vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
1348
- }
1349
- };
1350
- /**
1351
- * The main entry point for Stencil's virtual DOM-based rendering engine
1352
- *
1353
- * Given a {@link d.HostRef} container and some virtual DOM nodes, this
1354
- * function will handle creating a virtual DOM tree with a single root, patching
1355
- * the current virtual DOM tree onto an old one (if any), dealing with slot
1356
- * relocation, and reflecting attributes.
1357
- *
1358
- * @param hostRef data needed to root and render the virtual DOM tree, such as
1359
- * the DOM node into which it should be rendered.
1360
- * @param renderFnResults the virtual DOM nodes to be rendered
1361
- * @param isInitialLoad whether or not this is the first call after page load
1362
- */
1363
- const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1364
- var _a, _b, _c, _d;
1365
- const hostElm = hostRef.$hostElement$;
1366
- const cmpMeta = hostRef.$cmpMeta$;
1367
- const oldVNode = hostRef.$vnode$ || newVNode(null, null);
1368
- // if `renderFnResults` is a Host node then we can use it directly. If not,
1369
- // we need to call `h` again to wrap the children of our component in a
1370
- // 'dummy' Host node (well, an empty vnode) since `renderVdom` assumes
1371
- // implicitly that the top-level vdom node is 1) an only child and 2)
1372
- // contains attrs that need to be set on the host element.
1373
- const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
1374
- hostTagName = hostElm.tagName;
1375
- if (cmpMeta.$attrsToReflect$) {
1376
- rootVnode.$attrs$ = rootVnode.$attrs$ || {};
1377
- cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
1378
- }
1379
- // On the first render and *only* on the first render we want to check for
1380
- // any attributes set on the host element which are also set on the vdom
1381
- // node. If we find them, we override the value on the VDom node attrs with
1382
- // the value from the host element, which allows developers building apps
1383
- // with Stencil components to override e.g. the `role` attribute on a
1384
- // component even if it's already set on the `Host`.
1385
- if (isInitialLoad && rootVnode.$attrs$) {
1386
- for (const key of Object.keys(rootVnode.$attrs$)) {
1387
- // We have a special implementation in `setAccessor` for `style` and
1388
- // `class` which reconciles values coming from the VDom with values
1389
- // already present on the DOM element, so we don't want to override those
1390
- // attributes on the VDom tree with values from the host element if they
1391
- // are present.
1392
- //
1393
- // Likewise, `ref` and `key` are special internal values for the Stencil
1394
- // runtime and we don't want to override those either.
1395
- if (hostElm.hasAttribute(key) && !['key', 'ref', 'style', 'class'].includes(key)) {
1396
- rootVnode.$attrs$[key] = hostElm[key];
1397
- }
1398
- }
1399
- }
1400
- rootVnode.$tag$ = null;
1401
- rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
1402
- hostRef.$vnode$ = rootVnode;
1403
- rootVnode.$elm$ = oldVNode.$elm$ = (hostElm.shadowRoot || hostElm );
1404
- {
1405
- scopeId = hostElm['s-sc'];
1406
- }
1407
- useNativeShadowDom = (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) !== 0;
1408
- {
1409
- contentRef = hostElm['s-cr'];
1410
- // always reset
1411
- checkSlotFallbackVisibility = false;
1412
- }
1413
- // synchronous patch
1414
- patch(oldVNode, rootVnode, isInitialLoad);
1415
- {
1416
- // while we're moving nodes around existing nodes, temporarily disable
1417
- // the disconnectCallback from working
1418
- plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
1419
- if (checkSlotRelocate) {
1420
- markSlotContentForRelocation(rootVnode.$elm$);
1421
- for (const relocateData of relocateNodes) {
1422
- const nodeToRelocate = relocateData.$nodeToRelocate$;
1423
- if (!nodeToRelocate['s-ol']) {
1424
- // add a reference node marking this node's original location
1425
- // keep a reference to this node for later lookups
1426
- const orgLocationNode = doc.createTextNode('');
1427
- orgLocationNode['s-nr'] = nodeToRelocate;
1428
- nodeToRelocate.parentNode.insertBefore((nodeToRelocate['s-ol'] = orgLocationNode), nodeToRelocate);
1429
- }
1430
- }
1431
- for (const relocateData of relocateNodes) {
1432
- const nodeToRelocate = relocateData.$nodeToRelocate$;
1433
- const slotRefNode = relocateData.$slotRefNode$;
1434
- if (slotRefNode) {
1435
- const parentNodeRef = slotRefNode.parentNode;
1436
- // When determining where to insert content, the most simple case would be
1437
- // to relocate the node immediately following the slot reference node. We do this
1438
- // by getting a reference to the node immediately following the slot reference node
1439
- // since we will use `insertBefore` to manipulate the DOM.
1440
- //
1441
- // If there is no node immediately following the slot reference node, then we will just
1442
- // end up appending the node as the last child of the parent.
1443
- let insertBeforeNode = slotRefNode.nextSibling;
1444
- // If the node we're currently planning on inserting the new node before is an element,
1445
- // we need to do some additional checks to make sure we're inserting the node in the correct order.
1446
- // The use case here would be that we have multiple nodes being relocated to the same slot. So, we want
1447
- // to make sure they get inserted into their new how in the same order they were declared in their original location.
1448
- //
1449
- // TODO(STENCIL-914): Remove `experimentalSlotFixes` check
1450
- {
1451
- let orgLocationNode = (_a = nodeToRelocate['s-ol']) === null || _a === void 0 ? void 0 : _a.previousSibling;
1452
- while (orgLocationNode) {
1453
- let refNode = (_b = orgLocationNode['s-nr']) !== null && _b !== void 0 ? _b : null;
1454
- if (refNode && refNode['s-sn'] === nodeToRelocate['s-sn'] && parentNodeRef === refNode.parentNode) {
1455
- refNode = refNode.nextSibling;
1456
- if (!refNode || !refNode['s-nr']) {
1457
- insertBeforeNode = refNode;
1458
- break;
1459
- }
1460
- }
1461
- orgLocationNode = orgLocationNode.previousSibling;
1462
- }
1463
- }
1464
- if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) ||
1465
- nodeToRelocate.nextSibling !== insertBeforeNode) {
1466
- // we've checked that it's worth while to relocate
1467
- // since that the node to relocate
1468
- // has a different next sibling or parent relocated
1469
- if (nodeToRelocate !== insertBeforeNode) {
1470
- if (!nodeToRelocate['s-hn'] && nodeToRelocate['s-ol']) {
1471
- // probably a component in the index.html that doesn't have its hostname set
1472
- nodeToRelocate['s-hn'] = nodeToRelocate['s-ol'].parentNode.nodeName;
1473
- }
1474
- // Add it back to the dom but in its new home
1475
- // If we get to this point and `insertBeforeNode` is `null`, that means
1476
- // we're just going to append the node as the last child of the parent. Passing
1477
- // `null` as the second arg here will trigger that behavior.
1478
- parentNodeRef.insertBefore(nodeToRelocate, insertBeforeNode);
1479
- // Reset the `hidden` value back to what it was defined as originally
1480
- // This solves a problem where a `slot` is dynamically rendered and `hidden` may have
1481
- // been set on content originally, but now it has a slot to go to so it should have
1482
- // the value it was defined as having in the DOM, not what we overrode it to.
1483
- if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1484
- nodeToRelocate.hidden = (_c = nodeToRelocate['s-ih']) !== null && _c !== void 0 ? _c : false;
1485
- }
1486
- }
1487
- }
1488
- }
1489
- else {
1490
- // this node doesn't have a slot home to go to, so let's hide it
1491
- if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1492
- // Store the initial value of `hidden` so we can reset it later when
1493
- // moving nodes around.
1494
- if (isInitialLoad) {
1495
- nodeToRelocate['s-ih'] = (_d = nodeToRelocate.hidden) !== null && _d !== void 0 ? _d : false;
1496
- }
1497
- nodeToRelocate.hidden = true;
1498
- }
1499
- }
1500
- }
1501
- }
1502
- if (checkSlotFallbackVisibility) {
1503
- updateFallbackSlotVisibility(rootVnode.$elm$);
1504
- }
1505
- // done moving nodes around
1506
- // allow the disconnect callback to work again
1507
- plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
1508
- // always reset
1509
- relocateNodes.length = 0;
1510
- }
1511
- // Clear the content ref so we don't create a memory leak
1512
- contentRef = undefined;
1513
- };
1514
- const attachToAncestor = (hostRef, ancestorComponent) => {
1515
- if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
1516
- ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
1517
- }
1518
- };
1519
- const scheduleUpdate = (hostRef, isInitialLoad) => {
1520
- {
1521
- hostRef.$flags$ |= 16 /* HOST_FLAGS.isQueuedForUpdate */;
1522
- }
1523
- if (hostRef.$flags$ & 4 /* HOST_FLAGS.isWaitingForChildren */) {
1524
- hostRef.$flags$ |= 512 /* HOST_FLAGS.needsRerender */;
1525
- return;
1526
- }
1527
- attachToAncestor(hostRef, hostRef.$ancestorComponent$);
1528
- // there is no ancestor component or the ancestor component
1529
- // has already fired off its lifecycle update then
1530
- // fire off the initial update
1531
- const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
1532
- return writeTask(dispatch) ;
1533
- };
1534
- /**
1535
- * Dispatch initial-render and update lifecycle hooks, enqueuing calls to
1536
- * component lifecycle methods like `componentWillLoad` as well as
1537
- * {@link updateComponent}, which will kick off the virtual DOM re-render.
1538
- *
1539
- * @param hostRef a reference to a host DOM node
1540
- * @param isInitialLoad whether we're on the initial load or not
1541
- * @returns an empty Promise which is used to enqueue a series of operations for
1542
- * the component
1543
- */
1544
- const dispatchHooks = (hostRef, isInitialLoad) => {
1545
- const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
1546
- const instance = hostRef.$lazyInstance$ ;
1547
- // We're going to use this variable together with `enqueue` to implement a
1548
- // little promise-based queue. We start out with it `undefined`. When we add
1549
- // the first function to the queue we'll set this variable to be that
1550
- // function's return value. When we attempt to add subsequent values to the
1551
- // queue we'll check that value and, if it was a `Promise`, we'll then chain
1552
- // the new function off of that `Promise` using `.then()`. This will give our
1553
- // queue two nice properties:
1554
- //
1555
- // 1. If all functions added to the queue are synchronous they'll be called
1556
- // synchronously right away.
1557
- // 2. If all functions added to the queue are asynchronous they'll all be
1558
- // called in order after `dispatchHooks` exits.
1559
- let maybePromise;
1560
- if (isInitialLoad) {
1561
- {
1562
- hostRef.$flags$ |= 256 /* HOST_FLAGS.isListenReady */;
1563
- if (hostRef.$queuedListeners$) {
1564
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
1565
- hostRef.$queuedListeners$ = undefined;
1566
- }
1567
- }
1568
- {
1569
- // If `componentWillLoad` returns a `Promise` then we want to wait on
1570
- // whatever's going on in that `Promise` before we launch into
1571
- // rendering the component, doing other lifecycle stuff, etc. So
1572
- // in that case we assign the returned promise to the variable we
1573
- // declared above to hold a possible 'queueing' Promise
1574
- maybePromise = safeCall(instance, 'componentWillLoad');
1575
- }
1576
- }
1577
- endSchedule();
1578
- return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
1579
- };
1580
- /**
1581
- * This function uses a Promise to implement a simple first-in, first-out queue
1582
- * of functions to be called.
1583
- *
1584
- * The queue is ordered on the basis of the first argument. If it's
1585
- * `undefined`, then nothing is on the queue yet, so the provided function can
1586
- * be called synchronously (although note that this function may return a
1587
- * `Promise`). The idea is that then the return value of that enqueueing
1588
- * operation is kept around, so that if it was a `Promise` then subsequent
1589
- * functions can be enqueued by calling this function again with that `Promise`
1590
- * as the first argument.
1591
- *
1592
- * @param maybePromise either a `Promise` which should resolve before the next function is called or an 'empty' sentinel
1593
- * @param fn a function to enqueue
1594
- * @returns either a `Promise` or the return value of the provided function
1595
- */
1596
- const enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn) : fn();
1597
- /**
1598
- * Check that a value is a `Promise`. To check, we first see if the value is an
1599
- * instance of the `Promise` global. In a few circumstances, in particular if
1600
- * the global has been overwritten, this is could be misleading, so we also do
1601
- * a little 'duck typing' check to see if the `.then` property of the value is
1602
- * defined and a function.
1603
- *
1604
- * @param maybePromise it might be a promise!
1605
- * @returns whether it is or not
1606
- */
1607
- const isPromisey = (maybePromise) => maybePromise instanceof Promise ||
1608
- (maybePromise && maybePromise.then && typeof maybePromise.then === 'function');
1609
- /**
1610
- * Update a component given reference to its host elements and so on.
1611
- *
1612
- * @param hostRef an object containing references to the element's host node,
1613
- * VDom nodes, and other metadata
1614
- * @param instance a reference to the underlying host element where it will be
1615
- * rendered
1616
- * @param isInitialLoad whether or not this function is being called as part of
1617
- * the first render cycle
1618
- */
1619
- const updateComponent = async (hostRef, instance, isInitialLoad) => {
1620
- var _a;
1621
- const elm = hostRef.$hostElement$;
1622
- const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
1623
- const rc = elm['s-rc'];
1624
- if (isInitialLoad) {
1625
- // DOM WRITE!
1626
- attachStyles(hostRef);
1627
- }
1628
- const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$);
1629
- {
1630
- callRender(hostRef, instance, elm, isInitialLoad);
1631
- }
1632
- if (rc) {
1633
- // ok, so turns out there are some child host elements
1634
- // waiting on this parent element to load
1635
- // let's fire off all update callbacks waiting
1636
- rc.map((cb) => cb());
1637
- elm['s-rc'] = undefined;
1638
- }
1639
- endRender();
1640
- endUpdate();
1641
- {
1642
- const childrenPromises = (_a = elm['s-p']) !== null && _a !== void 0 ? _a : [];
1643
- const postUpdate = () => postUpdateComponent(hostRef);
1644
- if (childrenPromises.length === 0) {
1645
- postUpdate();
1646
- }
1647
- else {
1648
- Promise.all(childrenPromises).then(postUpdate);
1649
- hostRef.$flags$ |= 4 /* HOST_FLAGS.isWaitingForChildren */;
1650
- childrenPromises.length = 0;
1651
- }
1652
- }
1653
- };
1654
- /**
1655
- * Handle making the call to the VDom renderer with the proper context given
1656
- * various build variables
1657
- *
1658
- * @param hostRef an object containing references to the element's host node,
1659
- * VDom nodes, and other metadata
1660
- * @param instance a reference to the underlying host element where it will be
1661
- * rendered
1662
- * @param elm the Host element for the component
1663
- * @param isInitialLoad whether or not this function is being called as part of
1664
- * @returns an empty promise
1665
- */
1666
- const callRender = (hostRef, instance, elm, isInitialLoad) => {
1667
- try {
1668
- /**
1669
- * minification optimization: `allRenderFn` is `true` if all components have a `render`
1670
- * method, so we can call the method immediately. If not, check before calling it.
1671
- */
1672
- instance = instance.render() ;
1673
- {
1674
- hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
1675
- }
1676
- {
1677
- hostRef.$flags$ |= 2 /* HOST_FLAGS.hasRendered */;
1678
- }
1679
- {
1680
- {
1681
- // looks like we've got child nodes to render into this host element
1682
- // or we need to update the css class/attrs on the host element
1683
- // DOM WRITE!
1684
- {
1685
- renderVdom(hostRef, instance, isInitialLoad);
1686
- }
1687
- }
1688
- }
1689
- }
1690
- catch (e) {
1691
- consoleError(e, hostRef.$hostElement$);
1692
- }
1693
- return null;
1694
- };
1695
- const postUpdateComponent = (hostRef) => {
1696
- const tagName = hostRef.$cmpMeta$.$tagName$;
1697
- const elm = hostRef.$hostElement$;
1698
- const endPostUpdate = createTime('postUpdate', tagName);
1699
- const instance = hostRef.$lazyInstance$ ;
1700
- const ancestorComponent = hostRef.$ancestorComponent$;
1701
- {
1702
- safeCall(instance, 'componentDidRender');
1703
- }
1704
- if (!(hostRef.$flags$ & 64 /* HOST_FLAGS.hasLoadedComponent */)) {
1705
- hostRef.$flags$ |= 64 /* HOST_FLAGS.hasLoadedComponent */;
1706
- {
1707
- // DOM WRITE!
1708
- addHydratedFlag(elm);
1709
- }
1710
- {
1711
- safeCall(instance, 'componentDidLoad');
1712
- }
1713
- endPostUpdate();
1714
- {
1715
- hostRef.$onReadyResolve$(elm);
1716
- if (!ancestorComponent) {
1717
- appDidLoad();
1718
- }
1719
- }
1720
- }
1721
- else {
1722
- {
1723
- safeCall(instance, 'componentDidUpdate');
1724
- }
1725
- endPostUpdate();
1726
- }
1727
- {
1728
- hostRef.$onInstanceResolve$(elm);
1729
- }
1730
- // load events fire from bottom to top
1731
- // the deepest elements load first then bubbles up
1732
- {
1733
- if (hostRef.$onRenderResolve$) {
1734
- hostRef.$onRenderResolve$();
1735
- hostRef.$onRenderResolve$ = undefined;
1736
- }
1737
- if (hostRef.$flags$ & 512 /* HOST_FLAGS.needsRerender */) {
1738
- nextTick(() => scheduleUpdate(hostRef, false));
1739
- }
1740
- hostRef.$flags$ &= ~(4 /* HOST_FLAGS.isWaitingForChildren */ | 512 /* HOST_FLAGS.needsRerender */);
1741
- }
1742
- // ( •_•)
1743
- // ( •_•)>⌐■-■
1744
- // (⌐■_■)
1745
- };
1746
- const appDidLoad = (who) => {
1747
- // on appload
1748
- // we have finish the first big initial render
1749
- {
1750
- addHydratedFlag(doc.documentElement);
1751
- }
1752
- nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } }));
1753
- };
1754
- /**
1755
- * Allows to safely call a method, e.g. `componentDidLoad`, on an instance,
1756
- * e.g. custom element node. If a build figures out that e.g. no component
1757
- * has a `componentDidLoad` method, the instance method gets removed from the
1758
- * output bundle and this function returns `undefined`.
1759
- * @param instance any object that may or may not contain methods
1760
- * @param method method name
1761
- * @param arg single arbitrary argument
1762
- * @returns result of method call if it exists, otherwise `undefined`
1763
- */
1764
- const safeCall = (instance, method, arg) => {
1765
- if (instance && instance[method]) {
1766
- try {
1767
- return instance[method](arg);
1768
- }
1769
- catch (e) {
1770
- consoleError(e);
1771
- }
1772
- }
1773
- return undefined;
1774
- };
1775
- const addHydratedFlag = (elm) => elm.classList.add('hydrated')
1776
- ;
1777
- const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1778
- const setValue = (ref, propName, newVal, cmpMeta) => {
1779
- // check our new property value against our internal value
1780
- const hostRef = getHostRef(ref);
1781
- const elm = hostRef.$hostElement$ ;
1782
- const oldVal = hostRef.$instanceValues$.get(propName);
1783
- const flags = hostRef.$flags$;
1784
- const instance = hostRef.$lazyInstance$ ;
1785
- newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
1786
- // explicitly check for NaN on both sides, as `NaN === NaN` is always false
1787
- const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1788
- const didValueChange = newVal !== oldVal && !areBothNaN;
1789
- if ((!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) || oldVal === undefined) && didValueChange) {
1790
- // gadzooks! the property's value has changed!!
1791
- // set our new value!
1792
- hostRef.$instanceValues$.set(propName, newVal);
1793
- if (instance) {
1794
- // get an array of method names of watch functions to call
1795
- if (cmpMeta.$watchers$ && flags & 128 /* HOST_FLAGS.isWatchReady */) {
1796
- const watchMethods = cmpMeta.$watchers$[propName];
1797
- if (watchMethods) {
1798
- // this instance is watching for when this property changed
1799
- watchMethods.map((watchMethodName) => {
1800
- try {
1801
- // fire off each of the watch methods that are watching this property
1802
- instance[watchMethodName](newVal, oldVal, propName);
1803
- }
1804
- catch (e) {
1805
- consoleError(e, elm);
1806
- }
1807
- });
1808
- }
1809
- }
1810
- if ((flags & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
1811
- // looks like this value actually changed, so we've got work to do!
1812
- // but only if we've already rendered, otherwise just chill out
1813
- // queue that we need to do an update, but don't worry about queuing
1814
- // up millions cuz this function ensures it only runs once
1815
- scheduleUpdate(hostRef, false);
1816
- }
1817
- }
1818
- }
1819
- };
1820
- /**
1821
- * Attach a series of runtime constructs to a compiled Stencil component
1822
- * constructor, including getters and setters for the `@Prop` and `@State`
1823
- * decorators, callbacks for when attributes change, and so on.
1824
- *
1825
- * @param Cstr the constructor for a component that we need to process
1826
- * @param cmpMeta metadata collected previously about the component
1827
- * @param flags a number used to store a series of bit flags
1828
- * @returns a reference to the same constructor passed in (but now mutated)
1829
- */
1830
- const proxyComponent = (Cstr, cmpMeta, flags) => {
1831
- var _a;
1832
- const prototype = Cstr.prototype;
1833
- if (cmpMeta.$members$) {
1834
- if (Cstr.watchers) {
1835
- cmpMeta.$watchers$ = Cstr.watchers;
1836
- }
1837
- // It's better to have a const than two Object.entries()
1838
- const members = Object.entries(cmpMeta.$members$);
1839
- members.map(([memberName, [memberFlags]]) => {
1840
- if ((memberFlags & 31 /* MEMBER_FLAGS.Prop */ ||
1841
- ((flags & 2 /* PROXY_FLAGS.proxyState */) && memberFlags & 32 /* MEMBER_FLAGS.State */))) {
1842
- // proxyComponent - prop
1843
- Object.defineProperty(prototype, memberName, {
1844
- get() {
1845
- // proxyComponent, get value
1846
- return getValue(this, memberName);
1847
- },
1848
- set(newValue) {
1849
- // proxyComponent, set value
1850
- setValue(this, memberName, newValue, cmpMeta);
1851
- },
1852
- configurable: true,
1853
- enumerable: true,
1854
- });
1855
- }
1856
- else if (flags & 1 /* PROXY_FLAGS.isElementConstructor */ &&
1857
- memberFlags & 64 /* MEMBER_FLAGS.Method */) {
1858
- // proxyComponent - method
1859
- Object.defineProperty(prototype, memberName, {
1860
- value(...args) {
1861
- var _a;
1862
- const ref = getHostRef(this);
1863
- return (_a = ref === null || ref === void 0 ? void 0 : ref.$onInstancePromise$) === null || _a === void 0 ? void 0 : _a.then(() => { var _a; return (_a = ref.$lazyInstance$) === null || _a === void 0 ? void 0 : _a[memberName](...args); });
1864
- },
1865
- });
1866
- }
1867
- });
1868
- if ((flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
1869
- const attrNameToPropName = new Map();
1870
- prototype.attributeChangedCallback = function (attrName, oldValue, newValue) {
1871
- plt.jmp(() => {
1872
- var _a;
1873
- const propName = attrNameToPropName.get(attrName);
1874
- // In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
1875
- // in the case where an attribute was set inline.
1876
- // ```html
1877
- // <my-component some-attribute="some-value"></my-component>
1878
- // ```
1879
- //
1880
- // There is an edge case where a developer sets the attribute inline on a custom element and then
1881
- // programmatically changes it before it has been upgraded as shown below:
1882
- //
1883
- // ```html
1884
- // <!-- this component has _not_ been upgraded yet -->
1885
- // <my-component id="test" some-attribute="some-value"></my-component>
1886
- // <script>
1887
- // // grab non-upgraded component
1888
- // el = document.querySelector("#test");
1889
- // el.someAttribute = "another-value";
1890
- // // upgrade component
1891
- // customElements.define('my-component', MyComponent);
1892
- // </script>
1893
- // ```
1894
- // In this case if we do not un-shadow here and use the value of the shadowing property, attributeChangedCallback
1895
- // will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
1896
- // to the value that was set inline i.e. "some-value" from above example. When
1897
- // the connectedCallback attempts to un-shadow it will use "some-value" as the initial value rather than "another-value"
1898
- //
1899
- // The case where the attribute was NOT set inline but was not set programmatically shall be handled/un-shadowed
1900
- // by connectedCallback as this attributeChangedCallback will not fire.
1901
- //
1902
- // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1903
- //
1904
- // TODO(STENCIL-16) we should think about whether or not we actually want to be reflecting the attributes to
1905
- // properties here given that this goes against best practices outlined here
1906
- // https://developers.google.com/web/fundamentals/web-components/best-practices#avoid-reentrancy
1907
- if (this.hasOwnProperty(propName)) {
1908
- newValue = this[propName];
1909
- delete this[propName];
1910
- }
1911
- else if (prototype.hasOwnProperty(propName) &&
1912
- typeof this[propName] === 'number' &&
1913
- this[propName] == newValue) {
1914
- // if the propName exists on the prototype of `Cstr`, this update may be a result of Stencil using native
1915
- // APIs to reflect props as attributes. Calls to `setAttribute(someElement, propName)` will result in
1916
- // `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
1917
- return;
1918
- }
1919
- else if (propName == null) {
1920
- // At this point we should know this is not a "member", so we can treat it like watching an attribute
1921
- // on a vanilla web component
1922
- const hostRef = getHostRef(this);
1923
- const flags = hostRef === null || hostRef === void 0 ? void 0 : hostRef.$flags$;
1924
- // We only want to trigger the callback(s) if:
1925
- // 1. The instance is ready
1926
- // 2. The watchers are ready
1927
- // 3. The value has changed
1928
- if (flags &&
1929
- !(flags & 8 /* HOST_FLAGS.isConstructingInstance */) &&
1930
- flags & 128 /* HOST_FLAGS.isWatchReady */ &&
1931
- newValue !== oldValue) {
1932
- const instance = hostRef.$lazyInstance$ ;
1933
- const entry = (_a = cmpMeta.$watchers$) === null || _a === void 0 ? void 0 : _a[attrName];
1934
- entry === null || entry === void 0 ? void 0 : entry.forEach((callbackName) => {
1935
- if (instance[callbackName] != null) {
1936
- instance[callbackName].call(instance, newValue, oldValue, attrName);
1937
- }
1938
- });
1939
- }
1940
- return;
1941
- }
1942
- this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
1943
- });
1944
- };
1945
- // Create an array of attributes to observe
1946
- // This list in comprised of all strings used within a `@Watch()` decorator
1947
- // on a component as well as any Stencil-specific "members" (`@Prop()`s and `@State()`s).
1948
- // As such, there is no way to guarantee type-safety here that a user hasn't entered
1949
- // an invalid attribute.
1950
- Cstr.observedAttributes = Array.from(new Set([
1951
- ...Object.keys((_a = cmpMeta.$watchers$) !== null && _a !== void 0 ? _a : {}),
1952
- ...members
1953
- .filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */)
1954
- .map(([propName, m]) => {
1955
- var _a;
1956
- const attrName = m[1] || propName;
1957
- attrNameToPropName.set(attrName, propName);
1958
- if (m[0] & 512 /* MEMBER_FLAGS.ReflectAttr */) {
1959
- (_a = cmpMeta.$attrsToReflect$) === null || _a === void 0 ? void 0 : _a.push([propName, attrName]);
1960
- }
1961
- return attrName;
1962
- }),
1963
- ]));
1964
- }
1965
- }
1966
- return Cstr;
1967
- };
1968
- /**
1969
- * Initialize a Stencil component given a reference to its host element, its
1970
- * runtime bookkeeping data structure, runtime metadata about the component,
1971
- * and (optionally) an HMR version ID.
1972
- *
1973
- * @param elm a host element
1974
- * @param hostRef the element's runtime bookkeeping object
1975
- * @param cmpMeta runtime metadata for the Stencil component
1976
- * @param hmrVersionId an (optional) HMR version ID
1977
- */
1978
- const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1979
- let Cstr;
1980
- // initializeComponent
1981
- if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
1982
- // Let the runtime know that the component has been initialized
1983
- hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
1984
- const bundleId = cmpMeta.$lazyBundleId$;
1985
- if (bundleId) {
1986
- // lazy loaded components
1987
- // request the component's implementation to be
1988
- // wired up with the host element
1989
- Cstr = loadModule(cmpMeta);
1990
- if (Cstr.then) {
1991
- // Await creates a micro-task avoid if possible
1992
- const endLoad = uniqueTime();
1993
- Cstr = await Cstr;
1994
- endLoad();
1995
- }
1996
- if (!Cstr.isProxied) {
1997
- // we've never proxied this Constructor before
1998
- // let's add the getters/setters to its prototype before
1999
- // the first time we create an instance of the implementation
2000
- {
2001
- cmpMeta.$watchers$ = Cstr.watchers;
2002
- }
2003
- proxyComponent(Cstr, cmpMeta, 2 /* PROXY_FLAGS.proxyState */);
2004
- Cstr.isProxied = true;
2005
- }
2006
- const endNewInstance = createTime('createInstance', cmpMeta.$tagName$);
2007
- // ok, time to construct the instance
2008
- // but let's keep track of when we start and stop
2009
- // so that the getters/setters don't incorrectly step on data
2010
- {
2011
- hostRef.$flags$ |= 8 /* HOST_FLAGS.isConstructingInstance */;
2012
- }
2013
- // construct the lazy-loaded component implementation
2014
- // passing the hostRef is very important during
2015
- // construction in order to directly wire together the
2016
- // host element and the lazy-loaded instance
2017
- try {
2018
- new Cstr(hostRef);
2019
- }
2020
- catch (e) {
2021
- consoleError(e);
2022
- }
2023
- {
2024
- hostRef.$flags$ &= ~8 /* HOST_FLAGS.isConstructingInstance */;
2025
- }
2026
- {
2027
- hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */;
2028
- }
2029
- endNewInstance();
2030
- fireConnectedCallback(hostRef.$lazyInstance$);
2031
- }
2032
- else {
2033
- // sync constructor component
2034
- Cstr = elm.constructor;
2035
- // wait for the CustomElementRegistry to mark the component as ready before setting `isWatchReady`. Otherwise,
2036
- // watchers may fire prematurely if `customElements.get()`/`customElements.whenDefined()` resolves _before_
2037
- // Stencil has completed instantiating the component.
2038
- customElements.whenDefined(cmpMeta.$tagName$).then(() => (hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */));
2039
- }
2040
- if (Cstr.style) {
2041
- // this component has styles but we haven't registered them yet
2042
- let style = Cstr.style;
2043
- const scopeId = getScopeId(cmpMeta);
2044
- if (!styles.has(scopeId)) {
2045
- const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
2046
- registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */));
2047
- endRegisterStyles();
2048
- }
2049
- }
2050
- }
2051
- // we've successfully created a lazy instance
2052
- const ancestorComponent = hostRef.$ancestorComponent$;
2053
- const schedule = () => scheduleUpdate(hostRef, true);
2054
- if (ancestorComponent && ancestorComponent['s-rc']) {
2055
- // this is the initial load and this component it has an ancestor component
2056
- // but the ancestor component has NOT fired its will update lifecycle yet
2057
- // so let's just cool our jets and wait for the ancestor to continue first
2058
- // this will get fired off when the ancestor component
2059
- // finally gets around to rendering its lazy self
2060
- // fire off the initial update
2061
- ancestorComponent['s-rc'].push(schedule);
2062
- }
2063
- else {
2064
- schedule();
2065
- }
2066
- };
2067
- const fireConnectedCallback = (instance) => {
2068
- {
2069
- safeCall(instance, 'connectedCallback');
2070
- }
2071
- };
2072
- const connectedCallback = (elm) => {
2073
- if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
2074
- const hostRef = getHostRef(elm);
2075
- const cmpMeta = hostRef.$cmpMeta$;
2076
- const endConnected = createTime('connectedCallback', cmpMeta.$tagName$);
2077
- if (!(hostRef.$flags$ & 1 /* HOST_FLAGS.hasConnected */)) {
2078
- // first time this component has connected
2079
- hostRef.$flags$ |= 1 /* HOST_FLAGS.hasConnected */;
2080
- {
2081
- // initUpdate
2082
- // if the slot polyfill is required we'll need to put some nodes
2083
- // in here to act as original content anchors as we move nodes around
2084
- // host element has been connected to the DOM
2085
- if ((// TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
2086
- cmpMeta.$flags$ & (4 /* CMP_FLAGS.hasSlotRelocation */ | 8 /* CMP_FLAGS.needsShadowDomShim */))) {
2087
- setContentReference(elm);
2088
- }
2089
- }
2090
- {
2091
- // find the first ancestor component (if there is one) and register
2092
- // this component as one of the actively loading child components for its ancestor
2093
- let ancestorComponent = elm;
2094
- while ((ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host)) {
2095
- // climb up the ancestors looking for the first
2096
- // component that hasn't finished its lifecycle update yet
2097
- if (ancestorComponent['s-p']) {
2098
- // we found this components first ancestor component
2099
- // keep a reference to this component's ancestor component
2100
- attachToAncestor(hostRef, (hostRef.$ancestorComponent$ = ancestorComponent));
2101
- break;
2102
- }
2103
- }
2104
- }
2105
- // Lazy properties
2106
- // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
2107
- if (cmpMeta.$members$) {
2108
- Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
2109
- if (memberFlags & 31 /* MEMBER_FLAGS.Prop */ && elm.hasOwnProperty(memberName)) {
2110
- const value = elm[memberName];
2111
- delete elm[memberName];
2112
- elm[memberName] = value;
2113
- }
2114
- });
2115
- }
2116
- {
2117
- initializeComponent(elm, hostRef, cmpMeta);
2118
- }
2119
- }
2120
- else {
2121
- // not the first time this has connected
2122
- // reattach any event listeners to the host
2123
- // since they would have been removed when disconnected
2124
- addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
2125
- // fire off connectedCallback() on component instance
2126
- if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) {
2127
- fireConnectedCallback(hostRef.$lazyInstance$);
2128
- }
2129
- else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
2130
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
2131
- }
2132
- }
2133
- endConnected();
2134
- }
2135
- };
2136
- const setContentReference = (elm) => {
2137
- // only required when we're NOT using native shadow dom (slot)
2138
- // or this browser doesn't support native shadow dom
2139
- // and this host element was NOT created with SSR
2140
- // let's pick out the inner content for slot projection
2141
- // create a node to represent where the original
2142
- // content was first placed, which is useful later on
2143
- const contentRefElm = (elm['s-cr'] = doc.createComment(''));
2144
- contentRefElm['s-cn'] = true;
2145
- elm.insertBefore(contentRefElm, elm.firstChild);
2146
- };
2147
- const disconnectInstance = (instance) => {
2148
- {
2149
- safeCall(instance, 'disconnectedCallback');
2150
- }
2151
- };
2152
- const disconnectedCallback = async (elm) => {
2153
- if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
2154
- const hostRef = getHostRef(elm);
2155
- {
2156
- if (hostRef.$rmListeners$) {
2157
- hostRef.$rmListeners$.map((rmListener) => rmListener());
2158
- hostRef.$rmListeners$ = undefined;
2159
- }
2160
- }
2161
- if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) {
2162
- disconnectInstance(hostRef.$lazyInstance$);
2163
- }
2164
- else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
2165
- hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
2166
- }
2167
- }
2168
- };
2169
- const bootstrapLazy = (lazyBundles, options = {}) => {
2170
- var _a;
2171
- const endBootstrap = createTime();
2172
- const cmpTags = [];
2173
- const exclude = options.exclude || [];
2174
- const customElements = win.customElements;
2175
- const head = doc.head;
2176
- const metaCharset = /*@__PURE__*/ head.querySelector('meta[charset]');
2177
- const dataStyles = /*@__PURE__*/ doc.createElement('style');
2178
- const deferredConnectedCallbacks = [];
2179
- let appLoadFallback;
2180
- let isBootstrapping = true;
2181
- Object.assign(plt, options);
2182
- plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
2183
- let hasSlotRelocation = false;
2184
- lazyBundles.map((lazyBundle) => {
2185
- lazyBundle[1].map((compactMeta) => {
2186
- var _a;
2187
- const cmpMeta = {
2188
- $flags$: compactMeta[0],
2189
- $tagName$: compactMeta[1],
2190
- $members$: compactMeta[2],
2191
- $listeners$: compactMeta[3],
2192
- };
2193
- // Check if we are using slots outside the shadow DOM in this component.
2194
- // We'll use this information later to add styles for `slot-fb` elements
2195
- if (cmpMeta.$flags$ & 4 /* CMP_FLAGS.hasSlotRelocation */) {
2196
- hasSlotRelocation = true;
2197
- }
2198
- {
2199
- cmpMeta.$members$ = compactMeta[2];
2200
- }
2201
- {
2202
- cmpMeta.$listeners$ = compactMeta[3];
2203
- }
2204
- {
2205
- cmpMeta.$attrsToReflect$ = [];
2206
- }
2207
- {
2208
- cmpMeta.$watchers$ = (_a = compactMeta[4]) !== null && _a !== void 0 ? _a : {};
2209
- }
2210
- const tagName = cmpMeta.$tagName$;
2211
- const HostElement = class extends HTMLElement {
2212
- // StencilLazyHost
2213
- constructor(self) {
2214
- // @ts-ignore
2215
- super(self);
2216
- self = this;
2217
- registerHost(self, cmpMeta);
2218
- if (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) {
2219
- // this component is using shadow dom
2220
- // and this browser supports shadow dom
2221
- // add the read-only property "shadowRoot" to the host element
2222
- // adding the shadow root build conditionals to minimize runtime
2223
- {
2224
- {
2225
- self.attachShadow({ mode: 'open' });
2226
- }
2227
- }
2228
- }
2229
- }
2230
- connectedCallback() {
2231
- if (appLoadFallback) {
2232
- clearTimeout(appLoadFallback);
2233
- appLoadFallback = null;
2234
- }
2235
- if (isBootstrapping) {
2236
- // connectedCallback will be processed once all components have been registered
2237
- deferredConnectedCallbacks.push(this);
2238
- }
2239
- else {
2240
- plt.jmp(() => connectedCallback(this));
2241
- }
2242
- }
2243
- disconnectedCallback() {
2244
- plt.jmp(() => disconnectedCallback(this));
2245
- }
2246
- componentOnReady() {
2247
- return getHostRef(this).$onReadyPromise$;
2248
- }
2249
- };
2250
- cmpMeta.$lazyBundleId$ = lazyBundle[0];
2251
- if (!exclude.includes(tagName) && !customElements.get(tagName)) {
2252
- cmpTags.push(tagName);
2253
- customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* PROXY_FLAGS.isElementConstructor */));
2254
- }
2255
- });
2256
- });
2257
- // Only bother generating CSS if we have components
2258
- // TODO(STENCIL-1118): Add test cases for CSS content based on conditionals
2259
- if (cmpTags.length > 0) {
2260
- // Add styles for `slot-fb` elements if any of our components are using slots outside the Shadow DOM
2261
- if (hasSlotRelocation) {
2262
- dataStyles.textContent += SLOT_FB_CSS;
2263
- }
2264
- // Add hydration styles
2265
- {
2266
- dataStyles.textContent += cmpTags + HYDRATED_CSS;
2267
- }
2268
- // If we have styles, add them to the DOM
2269
- if (dataStyles.innerHTML.length) {
2270
- dataStyles.setAttribute('data-styles', '');
2271
- // Apply CSP nonce to the style tag if it exists
2272
- const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
2273
- if (nonce != null) {
2274
- dataStyles.setAttribute('nonce', nonce);
2275
- }
2276
- // Insert the styles into the document head
2277
- // NOTE: this _needs_ to happen last so we can ensure the nonce (and other attributes) are applied
2278
- head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
2279
- }
2280
- }
2281
- // Process deferred connectedCallbacks now all components have been registered
2282
- isBootstrapping = false;
2283
- if (deferredConnectedCallbacks.length) {
2284
- deferredConnectedCallbacks.map((host) => host.connectedCallback());
2285
- }
2286
- else {
2287
- {
2288
- plt.jmp(() => (appLoadFallback = setTimeout(appDidLoad, 30)));
2289
- }
2290
- }
2291
- // Fallback appLoad event
2292
- endBootstrap();
2293
- };
2294
- const addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
2295
- if (listeners) {
2296
- listeners.map(([flags, name, method]) => {
2297
- const target = getHostListenerTarget(elm, flags) ;
2298
- const handler = hostListenerProxy(hostRef, method);
2299
- const opts = hostListenerOpts(flags);
2300
- plt.ael(target, name, handler, opts);
2301
- (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
2302
- });
2303
- }
2304
- };
2305
- const hostListenerProxy = (hostRef, methodName) => (ev) => {
2306
- try {
2307
- {
2308
- if (hostRef.$flags$ & 256 /* HOST_FLAGS.isListenReady */) {
2309
- // instance is ready, let's call it's member method for this event
2310
- hostRef.$lazyInstance$[methodName](ev);
2311
- }
2312
- else {
2313
- (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
2314
- }
2315
- }
2316
- }
2317
- catch (e) {
2318
- consoleError(e);
2319
- }
2320
- };
2321
- const getHostListenerTarget = (elm, flags) => {
2322
- if (flags & 8 /* LISTENER_FLAGS.TargetWindow */)
2323
- return win;
2324
- return elm;
2325
- };
2326
- // prettier-ignore
2327
- const hostListenerOpts = (flags) => supportsListenerOptions
2328
- ? ({
2329
- passive: (flags & 1 /* LISTENER_FLAGS.Passive */) !== 0,
2330
- capture: (flags & 2 /* LISTENER_FLAGS.Capture */) !== 0,
2331
- })
2332
- : (flags & 2 /* LISTENER_FLAGS.Capture */) !== 0;
2333
- /**
2334
- * Assigns the given value to the nonce property on the runtime platform object.
2335
- * During runtime, this value is used to set the nonce attribute on all dynamically created script and style tags.
2336
- * @param nonce The value to be assigned to the platform nonce property.
2337
- * @returns void
2338
- */
2339
- const setNonce = (nonce) => (plt.$nonce$ = nonce);
2340
- /**
2341
- * A WeakMap mapping runtime component references to their corresponding host reference
2342
- * instances.
2343
- *
2344
- * **Note**: If we're in an HMR context we need to store a reference to this
2345
- * value on `window` in order to maintain the mapping of {@link d.RuntimeRef}
2346
- * to {@link d.HostRef} across HMR updates.
2347
- *
2348
- * This is necessary because when HMR updates for a component are processed by
2349
- * the browser-side dev server client the JS bundle for that component is
2350
- * re-fetched. Since the module containing {@link hostRefs} is included in
2351
- * that bundle, if we do not store a reference to it the new iteration of the
2352
- * component will not have access to the previous hostRef map, leading to a
2353
- * bug where the new version of the component cannot properly initialize.
2354
- */
2355
- const hostRefs = new WeakMap();
2356
- /**
2357
- * Given a {@link d.RuntimeRef} retrieve the corresponding {@link d.HostRef}
2358
- *
2359
- * @param ref the runtime ref of interest
2360
- * @returns the Host reference (if found) or undefined
2361
- */
2362
- const getHostRef = (ref) => hostRefs.get(ref);
2363
- /**
2364
- * Register a lazy instance with the {@link hostRefs} object so it's
2365
- * corresponding {@link d.HostRef} can be retrieved later.
2366
- *
2367
- * @param lazyInstance the lazy instance of interest
2368
- * @param hostRef that instances `HostRef` object
2369
- * @returns a reference to the host ref WeakMap
2370
- */
2371
- const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
2372
- /**
2373
- * Register a host element for a Stencil component, setting up various metadata
2374
- * and callbacks based on {@link BUILD} flags as well as the component's runtime
2375
- * metadata.
2376
- *
2377
- * @param hostElement the host element to register
2378
- * @param cmpMeta runtime metadata for that component
2379
- * @returns a reference to the host ref WeakMap
2380
- */
2381
- const registerHost = (hostElement, cmpMeta) => {
2382
- const hostRef = {
2383
- $flags$: 0,
2384
- $hostElement$: hostElement,
2385
- $cmpMeta$: cmpMeta,
2386
- $instanceValues$: new Map(),
2387
- };
2388
- {
2389
- hostRef.$onInstancePromise$ = new Promise((r) => (hostRef.$onInstanceResolve$ = r));
2390
- }
2391
- {
2392
- hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
2393
- hostElement['s-p'] = [];
2394
- hostElement['s-rc'] = [];
2395
- }
2396
- addHostEventListeners(hostElement, hostRef, cmpMeta.$listeners$);
2397
- return hostRefs.set(hostElement, hostRef);
2398
- };
2399
- const isMemberInElement = (elm, memberName) => memberName in elm;
2400
- const consoleError = (e, el) => (0, console.error)(e, el);
2401
- const cmpModules = /*@__PURE__*/ new Map();
2402
- const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
2403
- // loadModuleImport
2404
- const exportName = cmpMeta.$tagName$.replace(/-/g, '_');
2405
- const bundleId = cmpMeta.$lazyBundleId$;
2406
- const module = cmpModules.get(bundleId) ;
2407
- if (module) {
2408
- return module[exportName];
2409
- }
2410
-
2411
- if (!hmrVersionId || !BUILD.hotModuleReplacement) {
2412
- const processMod = importedModule => {
2413
- cmpModules.set(bundleId, importedModule);
2414
- return importedModule[exportName];
2415
- }
2416
- switch(bundleId) {
2417
-
2418
- case 'six-alert.cjs':
2419
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2420
- /* webpackMode: "lazy" */
2421
- './six-alert.cjs.entry.js')); }).then(processMod, consoleError);
2422
- case 'six-avatar.cjs':
2423
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2424
- /* webpackMode: "lazy" */
2425
- './six-avatar.cjs.entry.js')); }).then(processMod, consoleError);
2426
- case 'six-badge.cjs':
2427
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2428
- /* webpackMode: "lazy" */
2429
- './six-badge.cjs.entry.js')); }).then(processMod, consoleError);
2430
- case 'six-card.cjs':
2431
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2432
- /* webpackMode: "lazy" */
2433
- './six-card.cjs.entry.js')); }).then(processMod, consoleError);
2434
- case 'six-datepicker.cjs':
2435
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2436
- /* webpackMode: "lazy" */
2437
- './six-datepicker.cjs.entry.js')); }).then(processMod, consoleError);
2438
- case 'six-dialog.cjs':
2439
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2440
- /* webpackMode: "lazy" */
2441
- './six-dialog.cjs.entry.js')); }).then(processMod, consoleError);
2442
- case 'six-drawer.cjs':
2443
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2444
- /* webpackMode: "lazy" */
2445
- './six-drawer.cjs.entry.js')); }).then(processMod, consoleError);
2446
- case 'six-error-page.cjs':
2447
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2448
- /* webpackMode: "lazy" */
2449
- './six-error-page.cjs.entry.js')); }).then(processMod, consoleError);
2450
- case 'six-file-list.cjs':
2451
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2452
- /* webpackMode: "lazy" */
2453
- './six-file-list.cjs.entry.js')); }).then(processMod, consoleError);
2454
- case 'six-file-list-item.cjs':
2455
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2456
- /* webpackMode: "lazy" */
2457
- './six-file-list-item.cjs.entry.js')); }).then(processMod, consoleError);
2458
- case 'six-file-upload.cjs':
2459
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2460
- /* webpackMode: "lazy" */
2461
- './six-file-upload.cjs.entry.js')); }).then(processMod, consoleError);
2462
- case 'six-footer.cjs':
2463
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2464
- /* webpackMode: "lazy" */
2465
- './six-footer.cjs.entry.js')); }).then(processMod, consoleError);
2466
- case 'six-group-label.cjs':
2467
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2468
- /* webpackMode: "lazy" */
2469
- './six-group-label.cjs.entry.js')); }).then(processMod, consoleError);
2470
- case 'six-header.cjs':
2471
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2472
- /* webpackMode: "lazy" */
2473
- './six-header.cjs.entry.js')); }).then(processMod, consoleError);
2474
- case 'six-language-switcher.cjs':
2475
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2476
- /* webpackMode: "lazy" */
2477
- './six-language-switcher.cjs.entry.js')); }).then(processMod, consoleError);
2478
- case 'six-layout-grid.cjs':
2479
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2480
- /* webpackMode: "lazy" */
2481
- './six-layout-grid.cjs.entry.js')); }).then(processMod, consoleError);
2482
- case 'six-main-container.cjs':
2483
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2484
- /* webpackMode: "lazy" */
2485
- './six-main-container.cjs.entry.js')); }).then(processMod, consoleError);
2486
- case 'six-menu-divider.cjs':
2487
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2488
- /* webpackMode: "lazy" */
2489
- './six-menu-divider.cjs.entry.js')); }).then(processMod, consoleError);
2490
- case 'six-menu-label.cjs':
2491
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2492
- /* webpackMode: "lazy" */
2493
- './six-menu-label.cjs.entry.js')); }).then(processMod, consoleError);
2494
- case 'six-progress-bar.cjs':
2495
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2496
- /* webpackMode: "lazy" */
2497
- './six-progress-bar.cjs.entry.js')); }).then(processMod, consoleError);
2498
- case 'six-progress-ring.cjs':
2499
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2500
- /* webpackMode: "lazy" */
2501
- './six-progress-ring.cjs.entry.js')); }).then(processMod, consoleError);
2502
- case 'six-radio.cjs':
2503
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2504
- /* webpackMode: "lazy" */
2505
- './six-radio.cjs.entry.js')); }).then(processMod, consoleError);
2506
- case 'six-range.cjs':
2507
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2508
- /* webpackMode: "lazy" */
2509
- './six-range.cjs.entry.js')); }).then(processMod, consoleError);
2510
- case 'six-root.cjs':
2511
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2512
- /* webpackMode: "lazy" */
2513
- './six-root.cjs.entry.js')); }).then(processMod, consoleError);
2514
- case 'six-search-field.cjs':
2515
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2516
- /* webpackMode: "lazy" */
2517
- './six-search-field.cjs.entry.js')); }).then(processMod, consoleError);
2518
- case 'six-select.cjs':
2519
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2520
- /* webpackMode: "lazy" */
2521
- './six-select.cjs.entry.js')); }).then(processMod, consoleError);
2522
- case 'six-sidebar.cjs':
2523
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2524
- /* webpackMode: "lazy" */
2525
- './six-sidebar.cjs.entry.js')); }).then(processMod, consoleError);
2526
- case 'six-sidebar-item.cjs':
2527
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2528
- /* webpackMode: "lazy" */
2529
- './six-sidebar-item.cjs.entry.js')); }).then(processMod, consoleError);
2530
- case 'six-sidebar-item-group.cjs':
2531
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2532
- /* webpackMode: "lazy" */
2533
- './six-sidebar-item-group.cjs.entry.js')); }).then(processMod, consoleError);
2534
- case 'six-switch.cjs':
2535
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2536
- /* webpackMode: "lazy" */
2537
- './six-switch.cjs.entry.js')); }).then(processMod, consoleError);
2538
- case 'six-tab.cjs':
2539
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2540
- /* webpackMode: "lazy" */
2541
- './six-tab.cjs.entry.js')); }).then(processMod, consoleError);
2542
- case 'six-tab-group.cjs':
2543
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2544
- /* webpackMode: "lazy" */
2545
- './six-tab-group.cjs.entry.js')); }).then(processMod, consoleError);
2546
- case 'six-tab-panel.cjs':
2547
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2548
- /* webpackMode: "lazy" */
2549
- './six-tab-panel.cjs.entry.js')); }).then(processMod, consoleError);
2550
- case 'six-tag.cjs':
2551
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2552
- /* webpackMode: "lazy" */
2553
- './six-tag.cjs.entry.js')); }).then(processMod, consoleError);
2554
- case 'six-textarea.cjs':
2555
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2556
- /* webpackMode: "lazy" */
2557
- './six-textarea.cjs.entry.js')); }).then(processMod, consoleError);
2558
- case 'six-tile.cjs':
2559
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2560
- /* webpackMode: "lazy" */
2561
- './six-tile.cjs.entry.js')); }).then(processMod, consoleError);
2562
- case 'six-button.cjs':
2563
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2564
- /* webpackMode: "lazy" */
2565
- './six-button.cjs.entry.js')); }).then(processMod, consoleError);
2566
- case 'six-details.cjs':
2567
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2568
- /* webpackMode: "lazy" */
2569
- './six-details.cjs.entry.js')); }).then(processMod, consoleError);
2570
- case 'six-picto.cjs':
2571
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2572
- /* webpackMode: "lazy" */
2573
- './six-picto.cjs.entry.js')); }).then(processMod, consoleError);
2574
- case 'six-stage-indicator.cjs':
2575
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2576
- /* webpackMode: "lazy" */
2577
- './six-stage-indicator.cjs.entry.js')); }).then(processMod, consoleError);
2578
- case 'six-timepicker.cjs':
2579
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2580
- /* webpackMode: "lazy" */
2581
- './six-timepicker.cjs.entry.js')); }).then(processMod, consoleError);
2582
- case 'six-dropdown_2.cjs':
2583
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2584
- /* webpackMode: "lazy" */
2585
- './six-dropdown_2.cjs.entry.js')); }).then(processMod, consoleError);
2586
- case 'six-item-picker.cjs':
2587
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2588
- /* webpackMode: "lazy" */
2589
- './six-item-picker.cjs.entry.js')); }).then(processMod, consoleError);
2590
- case 'six-tooltip.cjs':
2591
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2592
- /* webpackMode: "lazy" */
2593
- './six-tooltip.cjs.entry.js')); }).then(processMod, consoleError);
2594
- case 'six-spinner.cjs':
2595
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2596
- /* webpackMode: "lazy" */
2597
- './six-spinner.cjs.entry.js')); }).then(processMod, consoleError);
2598
- case 'six-checkbox_2.cjs':
2599
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2600
- /* webpackMode: "lazy" */
2601
- './six-checkbox_2.cjs.entry.js')); }).then(processMod, consoleError);
2602
- case 'six-input.cjs':
2603
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2604
- /* webpackMode: "lazy" */
2605
- './six-input.cjs.entry.js')); }).then(processMod, consoleError);
2606
- case 'six-icon-button.cjs':
2607
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2608
- /* webpackMode: "lazy" */
2609
- './six-icon-button.cjs.entry.js')); }).then(processMod, consoleError);
2610
- case 'six-error.cjs':
2611
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2612
- /* webpackMode: "lazy" */
2613
- './six-error.cjs.entry.js')); }).then(processMod, consoleError);
2614
- case 'six-icon.cjs':
2615
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2616
- /* webpackMode: "lazy" */
2617
- './six-icon.cjs.entry.js')); }).then(processMod, consoleError);
2618
- }
2619
- }
2620
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2621
- /* @vite-ignore */
2622
- /* webpackInclude: /\.entry\.js$/ */
2623
- /* webpackExclude: /\.system\.entry\.js$/ */
2624
- /* webpackMode: "lazy" */
2625
- `./${bundleId}.entry.js${''}`)); }).then((importedModule) => {
2626
- {
2627
- cmpModules.set(bundleId, importedModule);
2628
- }
2629
- return importedModule[exportName];
2630
- }, consoleError);
2631
- };
2632
- const styles = /*@__PURE__*/ new Map();
2633
- const win = typeof window !== 'undefined' ? window : {};
2634
- const doc = win.document || { head: {} };
2635
- const plt = {
2636
- $flags$: 0,
2637
- $resourcesUrl$: '',
2638
- jmp: (h) => h(),
2639
- raf: (h) => requestAnimationFrame(h),
2640
- ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
2641
- rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
2642
- ce: (eventName, opts) => new CustomEvent(eventName, opts),
2643
- };
2644
- const supportsListenerOptions = /*@__PURE__*/ (() => {
2645
- let supportsListenerOptions = false;
2646
- try {
2647
- doc.addEventListener('e', null, Object.defineProperty({}, 'passive', {
2648
- get() {
2649
- supportsListenerOptions = true;
2650
- },
2651
- }));
2652
- }
2653
- catch (e) { }
2654
- return supportsListenerOptions;
2655
- })();
2656
- const promiseResolve = (v) => Promise.resolve(v);
2657
- const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
2658
- try {
2659
- new CSSStyleSheet();
2660
- return typeof new CSSStyleSheet().replaceSync === 'function';
2661
- }
2662
- catch (e) { }
2663
- return false;
2664
- })()
2665
- ;
2666
- const queueDomReads = [];
2667
- const queueDomWrites = [];
2668
- const queueTask = (queue, write) => (cb) => {
2669
- queue.push(cb);
2670
- if (!queuePending) {
2671
- queuePending = true;
2672
- if (write && plt.$flags$ & 4 /* PLATFORM_FLAGS.queueSync */) {
2673
- nextTick(flush);
2674
- }
2675
- else {
2676
- plt.raf(flush);
2677
- }
2678
- }
2679
- };
2680
- const consume = (queue) => {
2681
- for (let i = 0; i < queue.length; i++) {
2682
- try {
2683
- queue[i](performance.now());
2684
- }
2685
- catch (e) {
2686
- consoleError(e);
2687
- }
2688
- }
2689
- queue.length = 0;
2690
- };
2691
- const flush = () => {
2692
- // always force a bunch of medium callbacks to run, but still have
2693
- // a throttle on how many can run in a certain time
2694
- // DOM READS!!!
2695
- consume(queueDomReads);
2696
- // DOM WRITES!!!
2697
- {
2698
- consume(queueDomWrites);
2699
- if ((queuePending = queueDomReads.length > 0)) {
2700
- // still more to do yet, but we've run out of time
2701
- // let's let this thing cool off and try again in the next tick
2702
- plt.raf(flush);
2703
- }
2704
- }
2705
- };
2706
- const nextTick = (cb) => promiseResolve().then(cb);
2707
- const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
2708
-
2709
- exports.Host = Host;
2710
- exports.bootstrapLazy = bootstrapLazy;
2711
- exports.createEvent = createEvent;
2712
- exports.getElement = getElement;
2713
- exports.h = h;
2714
- exports.promiseResolve = promiseResolve;
2715
- exports.registerInstance = registerInstance;
2716
- exports.setNonce = setNonce;
2717
-
2718
- //# sourceMappingURL=index-1f707a55.js.map